@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20250307.0 → 0.0.0-nightly-20250308.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (223) hide show
  1. package/build/track-changes.js +1 -1
  2. package/dist/index.js +3 -3
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/bg.js +1 -1
  12. package/dist/translations/bg.umd.js +1 -1
  13. package/dist/translations/bn.js +1 -1
  14. package/dist/translations/bn.umd.js +1 -1
  15. package/dist/translations/bs.js +1 -1
  16. package/dist/translations/bs.umd.js +1 -1
  17. package/dist/translations/ca.js +1 -1
  18. package/dist/translations/ca.umd.js +1 -1
  19. package/dist/translations/cs.js +1 -1
  20. package/dist/translations/cs.umd.js +1 -1
  21. package/dist/translations/da.js +1 -1
  22. package/dist/translations/da.umd.js +1 -1
  23. package/dist/translations/de-ch.js +1 -1
  24. package/dist/translations/de-ch.umd.js +1 -1
  25. package/dist/translations/de.js +1 -1
  26. package/dist/translations/de.umd.js +1 -1
  27. package/dist/translations/el.js +1 -1
  28. package/dist/translations/el.umd.js +1 -1
  29. package/dist/translations/en-au.js +1 -1
  30. package/dist/translations/en-au.umd.js +1 -1
  31. package/dist/translations/en-gb.js +1 -1
  32. package/dist/translations/en-gb.umd.js +1 -1
  33. package/dist/translations/en.js +1 -1
  34. package/dist/translations/en.umd.js +1 -1
  35. package/dist/translations/eo.js +1 -1
  36. package/dist/translations/eo.umd.js +1 -1
  37. package/dist/translations/es-co.js +1 -1
  38. package/dist/translations/es-co.umd.js +1 -1
  39. package/dist/translations/es.js +1 -1
  40. package/dist/translations/es.umd.js +1 -1
  41. package/dist/translations/et.js +1 -1
  42. package/dist/translations/et.umd.js +1 -1
  43. package/dist/translations/eu.js +1 -1
  44. package/dist/translations/eu.umd.js +1 -1
  45. package/dist/translations/fa.js +1 -1
  46. package/dist/translations/fa.umd.js +1 -1
  47. package/dist/translations/fi.js +1 -1
  48. package/dist/translations/fi.umd.js +1 -1
  49. package/dist/translations/fr.js +1 -1
  50. package/dist/translations/fr.umd.js +1 -1
  51. package/dist/translations/gl.js +1 -1
  52. package/dist/translations/gl.umd.js +1 -1
  53. package/dist/translations/gu.js +1 -1
  54. package/dist/translations/gu.umd.js +1 -1
  55. package/dist/translations/he.js +1 -1
  56. package/dist/translations/he.umd.js +1 -1
  57. package/dist/translations/hi.js +1 -1
  58. package/dist/translations/hi.umd.js +1 -1
  59. package/dist/translations/hr.js +1 -1
  60. package/dist/translations/hr.umd.js +1 -1
  61. package/dist/translations/hu.js +1 -1
  62. package/dist/translations/hu.umd.js +1 -1
  63. package/dist/translations/hy.js +1 -1
  64. package/dist/translations/hy.umd.js +1 -1
  65. package/dist/translations/id.js +1 -1
  66. package/dist/translations/id.umd.js +1 -1
  67. package/dist/translations/it.js +1 -1
  68. package/dist/translations/it.umd.js +1 -1
  69. package/dist/translations/ja.js +1 -1
  70. package/dist/translations/ja.umd.js +1 -1
  71. package/dist/translations/jv.js +1 -1
  72. package/dist/translations/jv.umd.js +1 -1
  73. package/dist/translations/kk.js +1 -1
  74. package/dist/translations/kk.umd.js +1 -1
  75. package/dist/translations/km.js +1 -1
  76. package/dist/translations/km.umd.js +1 -1
  77. package/dist/translations/kn.js +1 -1
  78. package/dist/translations/kn.umd.js +1 -1
  79. package/dist/translations/ko.js +1 -1
  80. package/dist/translations/ko.umd.js +1 -1
  81. package/dist/translations/ku.js +1 -1
  82. package/dist/translations/ku.umd.js +1 -1
  83. package/dist/translations/lt.js +1 -1
  84. package/dist/translations/lt.umd.js +1 -1
  85. package/dist/translations/lv.js +1 -1
  86. package/dist/translations/lv.umd.js +1 -1
  87. package/dist/translations/ms.js +1 -1
  88. package/dist/translations/ms.umd.js +1 -1
  89. package/dist/translations/nb.js +1 -1
  90. package/dist/translations/nb.umd.js +1 -1
  91. package/dist/translations/ne.js +1 -1
  92. package/dist/translations/ne.umd.js +1 -1
  93. package/dist/translations/nl.js +1 -1
  94. package/dist/translations/nl.umd.js +1 -1
  95. package/dist/translations/no.js +1 -1
  96. package/dist/translations/no.umd.js +1 -1
  97. package/dist/translations/oc.js +1 -1
  98. package/dist/translations/oc.umd.js +1 -1
  99. package/dist/translations/pl.js +1 -1
  100. package/dist/translations/pl.umd.js +1 -1
  101. package/dist/translations/pt-br.js +1 -1
  102. package/dist/translations/pt-br.umd.js +1 -1
  103. package/dist/translations/pt.js +1 -1
  104. package/dist/translations/pt.umd.js +1 -1
  105. package/dist/translations/ro.js +1 -1
  106. package/dist/translations/ro.umd.js +1 -1
  107. package/dist/translations/ru.js +1 -1
  108. package/dist/translations/ru.umd.js +1 -1
  109. package/dist/translations/si.js +1 -1
  110. package/dist/translations/si.umd.js +1 -1
  111. package/dist/translations/sk.js +1 -1
  112. package/dist/translations/sk.umd.js +1 -1
  113. package/dist/translations/sl.js +1 -1
  114. package/dist/translations/sl.umd.js +1 -1
  115. package/dist/translations/sq.js +1 -1
  116. package/dist/translations/sq.umd.js +1 -1
  117. package/dist/translations/sr-latn.js +1 -1
  118. package/dist/translations/sr-latn.umd.js +1 -1
  119. package/dist/translations/sr.js +1 -1
  120. package/dist/translations/sr.umd.js +1 -1
  121. package/dist/translations/sv.js +1 -1
  122. package/dist/translations/sv.umd.js +1 -1
  123. package/dist/translations/th.js +1 -1
  124. package/dist/translations/th.umd.js +1 -1
  125. package/dist/translations/ti.js +1 -1
  126. package/dist/translations/ti.umd.js +1 -1
  127. package/dist/translations/tk.js +1 -1
  128. package/dist/translations/tk.umd.js +1 -1
  129. package/dist/translations/tr.js +1 -1
  130. package/dist/translations/tr.umd.js +1 -1
  131. package/dist/translations/tt.js +1 -1
  132. package/dist/translations/tt.umd.js +1 -1
  133. package/dist/translations/ug.js +1 -1
  134. package/dist/translations/ug.umd.js +1 -1
  135. package/dist/translations/uk.js +1 -1
  136. package/dist/translations/uk.umd.js +1 -1
  137. package/dist/translations/ur.js +1 -1
  138. package/dist/translations/ur.umd.js +1 -1
  139. package/dist/translations/uz.js +1 -1
  140. package/dist/translations/uz.umd.js +1 -1
  141. package/dist/translations/vi.js +1 -1
  142. package/dist/translations/vi.umd.js +1 -1
  143. package/dist/translations/zh-cn.js +1 -1
  144. package/dist/translations/zh-cn.umd.js +1 -1
  145. package/dist/translations/zh.js +1 -1
  146. package/dist/translations/zh.umd.js +1 -1
  147. package/package.json +26 -26
  148. package/src/commands/acceptsuggestioncommand.js +1 -1
  149. package/src/commands/discardsuggestioncommand.js +1 -1
  150. package/src/commands/executeonallsuggestionscommand.js +1 -1
  151. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  152. package/src/commands/previewfinalcontentcommand.js +1 -1
  153. package/src/commands/trackchangescommand.js +1 -1
  154. package/src/index.js +1 -1
  155. package/src/integrations/aiassistant.js +1 -1
  156. package/src/integrations/alignment.js +1 -1
  157. package/src/integrations/basicstyles.js +1 -1
  158. package/src/integrations/blockquote.js +1 -1
  159. package/src/integrations/bookmark.js +1 -1
  160. package/src/integrations/casechange.js +1 -1
  161. package/src/integrations/ckbox.js +1 -1
  162. package/src/integrations/codeblock.js +1 -1
  163. package/src/integrations/comments.js +1 -1
  164. package/src/integrations/deletecommand.js +1 -1
  165. package/src/integrations/emoji.js +1 -1
  166. package/src/integrations/entercommand.js +1 -1
  167. package/src/integrations/findandreplace.js +1 -1
  168. package/src/integrations/font.js +1 -1
  169. package/src/integrations/formatpainter.js +1 -1
  170. package/src/integrations/heading.js +1 -1
  171. package/src/integrations/highlight.js +1 -1
  172. package/src/integrations/horizontalline.js +1 -1
  173. package/src/integrations/htmlembed.js +1 -1
  174. package/src/integrations/image.js +1 -1
  175. package/src/integrations/imagereplace.js +1 -1
  176. package/src/integrations/imagestyle.js +1 -1
  177. package/src/integrations/importword.js +1 -1
  178. package/src/integrations/indent.js +1 -1
  179. package/src/integrations/inputcommand.js +1 -1
  180. package/src/integrations/legacylist.js +1 -1
  181. package/src/integrations/legacylistproperties.js +1 -1
  182. package/src/integrations/link.js +1 -1
  183. package/src/integrations/list.js +1 -1
  184. package/src/integrations/listproperties.js +1 -1
  185. package/src/integrations/mediaembed.js +1 -1
  186. package/src/integrations/mention.js +1 -1
  187. package/src/integrations/mergefields.js +1 -1
  188. package/src/integrations/multilevellist.js +1 -1
  189. package/src/integrations/pagebreak.js +1 -1
  190. package/src/integrations/paragraph.js +1 -1
  191. package/src/integrations/removeformat.js +1 -1
  192. package/src/integrations/replacesourcecommand.js +1 -1
  193. package/src/integrations/restrictededitingmode.js +1 -1
  194. package/src/integrations/shiftentercommand.js +1 -1
  195. package/src/integrations/standardeditingmode.js +1 -1
  196. package/src/integrations/style.js +1 -1
  197. package/src/integrations/table.js +1 -1
  198. package/src/integrations/tablecaption.js +1 -1
  199. package/src/integrations/tableclipboard.js +1 -1
  200. package/src/integrations/tablecolumnresize.js +1 -1
  201. package/src/integrations/tableheadings.js +1 -1
  202. package/src/integrations/tablemergesplit.js +1 -1
  203. package/src/integrations/tableofcontents.js +1 -1
  204. package/src/integrations/tableproperties.js +1 -1
  205. package/src/integrations/template.js +1 -1
  206. package/src/integrations/title.js +1 -1
  207. package/src/integrations/undo.js +1 -1
  208. package/src/integrations/uploadcare.js +1 -1
  209. package/src/integrations/utils.js +1 -1
  210. package/src/suggestion.js +2 -2
  211. package/src/suggestiondescriptionfactory.js +1 -1
  212. package/src/trackchanges.js +1 -1
  213. package/src/trackchangesdata.js +1 -1
  214. package/src/trackchangesediting.js +1 -1
  215. package/src/trackchangespreview.js +1 -1
  216. package/src/trackchangesui.js +1 -1
  217. package/src/ui/suggestioncontroller.js +2 -2
  218. package/src/ui/view/basesuggestionthreadview.js +1 -1
  219. package/src/ui/view/suggestionthreadview.js +1 -1
  220. package/src/ui/view/suggestionview.js +1 -1
  221. package/src/ui/view/trackchangespreviewview.js +1 -1
  222. package/src/utils/common-translations.js +1 -1
  223. package/src/utils/utils.js +1 -1
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x339021,Plugin as _0x54e516,PendingActions as _0x5cb8b7}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x1a1d2d,ObservableMixin as _0x1f73ca,uid as _0x5310dd,priorities as _0x2800bb,insertToPriorityArray as _0x33918d,logWarning as _0x5b3cf6,getEnvKeystrokeText as _0x5f531a,FocusTracker as _0xc2e669,KeystrokeHandler as _0x5188e6,Collection as _0x2e0cef}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x35d65b,IconCancel as _0x12bc4e,IconTrackChanges as _0xd8a762}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x1f08af,View as _0x1d3524,ViewCollection as _0x10e58e,FocusCycler as _0x279a0f,ViewModel as _0x4e4f6a,createDropdown as _0x56e766,SplitButtonView as _0x5c40a3,addListToDropdown as _0x3efabf,MenuBarMenuView as _0x1aee17,MenuBarMenuListView as _0x2d7c81,ListSeparatorView as _0x36879a,MenuBarMenuListItemView as _0x4592f0,MenuBarMenuListItemButtonView as _0x89f640,BodyCollection as _0x36cf22,Dialog as _0x7a5ccd}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x25323f,hashObject as _0x52257a,surroundingMarkersDetector as _0x492d76,FOCUS_ANNOTATION_KEYSTROKE as _0x295ed7,AriaDescriptionView as _0xa50ecc,setupThreadKeyboardNavigation as _0x82ff32,trimHtml as ti,UserView as _0xecee32,LateFocusButtonView as _0x2f4a77,getDateTimeFormatter as _0x31fc8e,getAllMarkersDomElementsSorted as _0x1cd5aa,sanitizeEditorConfig as _0x3a3895}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x27bc06,LiveRange as _0x6b53b6,LivePosition as _0x5f2a4a,DowncastWriter as _0x162b19}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x63d294,toWidget as _0x2b5ac0}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x6a5ce,set as _0x4e20bb,isEqual as _0x14f7b8,unset as _0x5e6601,omit as Vt}from'es-toolkit/compat';import{Delete as _0x2df60f,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x188e6c,ShiftEnter as _0x234e13}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends _0x339021{['_enabledCommands'];constructor(_0x1bd0fb,_0x2a3ba2){super(_0x1bd0fb),this['_enabledCommands']=_0x2a3ba2,this['value']=!0x1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){this['value']=!this['value'],this['value']?this['_disableUnsupportedCommands']():this['_enableCommands']();}['_disableUnsupportedCommands'](){for(const _0xc8d74e of this['editor']['commands']['commands']())_0xc8d74e['affectsData']&&!this['_enabledCommands']['has'](_0xc8d74e)&&_0xc8d74e['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x1424ad of this['editor']['commands']['commands']())_0x1424ad['affectsData']&&!this['_enabledCommands']['has'](_0x1424ad)&&_0x1424ad['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x339021{['_suggestions'];constructor(_0x50fb57,_0x39e0c5){super(_0x50fb57),this['_suggestions']=_0x39e0c5,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xaf32da){const _0x2ea87e=this['_suggestions']['get'](_0xaf32da);if(!_0x2ea87e)throw new _0x1a1d2d('track-changes-accept-suggestion-not-found',this);const _0x245d01=_0x2ea87e['getRanges']();this['editor']['model']['canEditAt'](_0x245d01)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x2ea87e);}}class R extends _0x339021{['_suggestions'];constructor(_0x41a300,_0x7f9379){super(_0x41a300),this['_suggestions']=_0x7f9379,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x57f837){const _0x56713a=this['_suggestions']['get'](_0x57f837);if(!_0x56713a)throw new _0x1a1d2d('track-changes-discard-suggestion-not-found',this);const _0x2868d5=_0x56713a['getRanges']();this['editor']['model']['canEditAt'](_0x2868d5)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x56713a);}}function ls(_0x5064cd,_0x55d046){let _0x224d04='';return _0x224d04+=_0x5064cd['split']('*')['map']((_0x35b9e9,_0x4cca93)=>_0x4cca93%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x35b9e9)+'</span>':nn(_0x35b9e9))['join'](''),_0x55d046&&(_0x224d04+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x55d046['value']+'\x22\x20title=\x22'+_0x55d046['title']+'\x22></span>'),_0x224d04;}function nn(_0xb70e70){const _0x19e495=document['createElement']('span');return _0x19e495['innerText']=_0xb70e70,_0x19e495['innerHTML'];}function ts(_0x5b4072){return _0x5b4072['sort']((_0x25fbcc,_0x16855d)=>'deletion'==_0x25fbcc['type']&&'deletion'!=_0x16855d['type']?-0x1:'deletion'!=_0x25fbcc['type']&&'deletion'==_0x16855d['type']?0x1:0x0);}function Zt(_0x302872,_0x167e4f){let _0x514081,_0x37c761=0x0;const _0x3a09ee=[],_0x56beb1=_0x167e4f['schema'];for(;_0x37c761<_0x302872['length'];){const _0x4e49a8=_0x302872[_0x37c761],_0x22eac5=_0x302872[_0x37c761+0x1];_0x514081||(_0x514081=_0x167e4f['createPositionBefore'](_0x4e49a8)),on(_0x167e4f,_0x4e49a8,_0x22eac5)||(_0x3a09ee['push'](_0x167e4f['createRange'](_0x514081,_0x56beb1['isObject'](_0x4e49a8)?_0x167e4f['createPositionAfter'](_0x4e49a8):_0x167e4f['createPositionAt'](_0x4e49a8,'end'))),_0x514081=null),_0x37c761++;}return _0x3a09ee;}function on(_0x42525e,_0x452977,_0x3b51c0){if(!_0x3b51c0)return!0x1;const _0x42f5f4=_0x42525e['createPositionAfter'](_0x452977),_0x8f397a=_0x42525e['createPositionBefore'](_0x3b51c0);return _0x42f5f4['isTouching'](_0x8f397a);}function rs(_0x21ad31,_0x25830a,_0x1d393e){for(;_0x1d393e['length'];){const _0x2f1885=_0x1d393e['splice'](0x0,0x64);_0x21ad31['change'](()=>{for(const _0xad5de5 of _0x2f1885)_0xad5de5['isInContent']&&_0x25830a['execute'](_0xad5de5['id']);});}}class x extends _0x339021{['_command'];['_suggestions'];constructor(_0x55adde,_0x5dda6c,_0xc1d87c){super(_0x55adde),this['_command']=_0x5dda6c,this['_suggestions']=_0xc1d87c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2c876c=Array['from'](this['_suggestions']['values']())['some'](_0x361d94=>_0x361d94['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x2c876c;}['execute'](){const _0x3a077a=ts(Array['from'](this['_suggestions']['values']()));for(const _0x3bf183 of _0x3a077a){const _0x577d01=_0x3bf183['getRanges']();if(!this['editor']['model']['canEditAt'](_0x577d01))return;}rs(this['editor']['model'],this['_command'],_0x3a077a);}}class E extends _0x339021{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0xd61ae8,_0x1f4d19,_0x36487e){super(_0xd61ae8),this['_command']=_0x1f4d19,this['_suggestions']=_0x36487e,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0xf2ae9d=this['editor']['model']['document']['selection'],_0x3e1164=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x40893b,_0x30513a){const _0x376647=Array['from'](_0x40893b['getRanges']()),_0xafb41e=new Set();for(const _0xe27cad of _0x30513a)if(_0xe27cad['isInContent']){for(const _0xe4d634 of _0x376647)for(const _0x36b3c7 of _0xe27cad['getRanges']())(_0xe4d634['isIntersecting'](_0x36b3c7)||_0x40893b['isCollapsed']&&!_0xe27cad['isMultiRange']&&_0xe27cad['next']&&_0x36b3c7['end']['isTouching'](_0xe4d634['start']))&&_0xafb41e['add'](_0xe27cad);}return _0xafb41e;}(_0xf2ae9d,_0x3e1164),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x4a770e=ts(Array['from'](this['_selectedSuggestions']));for(const _0x37fa16 of _0x4a770e){const _0x484cb4=_0x37fa16['getRanges']();if(!this['editor']['model']['canEditAt'](_0x484cb4))return;}rs(this['editor']['model'],this['_command'],_0x4a770e);}}class o extends/* #__PURE__ -- @preserve */
24
- _0x1f73ca(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x18f43a,_0x5064dd){super(),this['id']=_0x5064dd['id'],this['type']=_0x5064dd['type'],this['subType']=_0x5064dd['subType']||null,this['author']=_0x5064dd['author'],this['creator']=_0x5064dd['creator']||_0x5064dd['author'],this['isExternal']=Boolean(_0x5064dd['attributes']&&_0x5064dd['attributes']['@external']),this['data']=null,this['_model']=_0x18f43a,this['_onAccept']=_0x5064dd['onAccept'],this['_onDiscard']=_0x5064dd['onDiscard'],this['_onAttributesChange']=_0x5064dd['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x5064dd['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get['head'](){let _0x352eb2=this;for(;_0x352eb2['previous'];)_0x352eb2=_0x352eb2['previous'];return _0x352eb2;}get['hasComments'](){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get['isMultiRange'](){if(0x0==this['_markerNames']['size'])return!0x1;return 0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get['isInContent'](){return null!==this['getFirstMarker']();}['addMarkerName'](_0x1c5bbc){this['_markerNames']['add'](_0x1c5bbc);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x9dae32=>this['_model']['markers']['get'](_0x9dae32))['filter'](_0x1351b7=>_0x1351b7);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x3b7733=>{for(const _0x2982cf of this['getMarkers']())_0x3b7733['removeMarker'](_0x2982cf);}),this['_markerNames']['clear']();}['removeMarker'](_0x116504){this['_model']['change'](_0x5d4c82=>{_0x5d4c82['removeMarker'](_0x116504);}),this['_markerNames']['delete'](_0x116504);}['addRange'](_0x30a89d){const _0x99073b='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x99073b),this['_model']['change'](_0x29e695=>{_0x29e695['addMarker'](_0x99073b,{'range':_0x30a89d,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x3da057){for(const _0xb35ed7 of this['getRanges']())if(_0xb35ed7['isIntersecting'](_0x3da057))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x522bb4=>_0x522bb4['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x147791,_0x1fe7dc)=>[..._0x147791,..._0x1fe7dc['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x967300=this['getRanges']();if(0x1!=_0x967300['length'])return null;const _0x3c8b4b=_0x967300[0x0],_0x4b2683=_0x3c8b4b['start']['nodeAfter'],_0x13d60a=_0x3c8b4b['end']['nodeBefore'];return _0x4b2683 instanceof _0x27bc06?_0x4b2683!=_0x13d60a?null:_0x4b2683:null;}['accept'](){this['_onAccept'](this['getRanges'](),this['data'],this['attributes']),this['removeMarkers']();}['discard'](){this['_onDiscard'](this['getRanges'](),this['data'],this['attributes']),this['removeMarkers']();}['getAllAdjacentSuggestions'](){const _0x2d8656=[];let _0x324c30=this['head'];for(;_0x324c30;)_0x2d8656['push'](_0x324c30),_0x324c30=_0x324c30['next'];return _0x2d8656;}['setAttribute'](_0x12578a,_0x1a9594){const _0xf4b7b4=_0x6a5ce(this['attributes']);_0x4e20bb(_0xf4b7b4,_0x12578a,_0x1a9594),_0x14f7b8(_0xf4b7b4,this['attributes'])||(this['attributes']=_0xf4b7b4,this['_onAttributesChange'](_0xf4b7b4));}['removeAttribute'](_0x2c8028){const _0x137ce6=_0x6a5ce(this['attributes']);_0x5e6601(_0x137ce6,_0x2c8028),_0x14f7b8(_0x137ce6,this['attributes'])||(this['attributes']=_0x137ce6,this['_onAttributesChange'](this['attributes']));}['toJSON'](){return{'id':this['id'],'type':this['subType']?this['type']+':'+this['subType']:this['type'],'authorId':this['creator']['id'],'createdAt':this['createdAt'],'hasComments':this['hasComments'],'data':this['data'],'attributes':this['attributes']};}static['getMultiRangeId'](){return _0x5310dd()['substr'](0x1,0x5);}}function c(_0x187131,_0x4ef276,_0x50d876){const _0x4fd597=_0x187131['t'],t=_0x187131['t'];switch(_0x4ef276){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x50d876);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x50d876);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x50d876);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x50d876);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x50d876);case'*Format:*\x20change\x20table\x20properties':return t('*Format:*\x20change\x20table\x20properties');case'*Format:*\x20change\x20table\x20cell\x20properties':return t('*Format:*\x20change\x20table\x20cell\x20properties');case'*Format:*\x20insert\x20into\x20%0':return t('*Format:*\x20insert\x20into\x20%0',_0x50d876);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x50d876);case'*Replace\x20image*':return t('*Replace\x20image*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x50d876);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x50d876);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x50d876);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x50d876);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x50d876);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x50d876);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x50d876);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x50d876);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x50d876);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x50d876);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x50d876);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x50d876);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x50d876);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x50d876);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x50d876);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x50d876);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x50d876);case'*Remove\x20highlight*':return t('*Remove\x20highlight*');case'FORMAT_HIGHLIGHT':return t({'string':'highlight','id':'FORMAT_HIGHLIGHT'});case'FORMAT_RESTRICTED_ENABLED':return t({'string':'*Enable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_ENABLED'});case'FORMAT_RESTRICTED_DISABLED':return t({'string':'*Disable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_DISABLED'});case'ELEMENT_TABLE':return t({'string':'table','plural':'%0\x20tables','id':'ELEMENT_TABLE'},_0x50d876);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x50d876);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x50d876);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x50d876);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x50d876);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x50d876);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_CAPTION':return t({'string':'caption','id':'ELEMENT_CAPTION'});case'ELEMENT_HORIZONTAL_LINE':return t({'string':'horizontal\x20line','plural':'%0\x20horizontal\x20lines','id':'ELEMENT_HORIZONTAL_LINE'},_0x50d876);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x50d876);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x50d876);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x50d876);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x50d876);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x50d876);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x50d876);case'FORMAT_ALIGNMENT':return t({'string':'alignment','id':'FORMAT_ALIGNMENT'});case'FORMAT_ALIGN_TO_LEFT':return t({'string':'align\x20to\x20left','id':'FORMAT_ALIGN_TO_LEFT'});case'FORMAT_ALIGN_TO_RIGHT':return t({'string':'align\x20to\x20right','id':'FORMAT_ALIGN_TO_RIGHT'});case'FORMAT_ALIGN_TO_CENTER':return t({'string':'align\x20to\x20center','id':'FORMAT_ALIGN_TO_CENTER'});case'FORMAT_JUSTIFY_TEXT':return t({'string':'justify','id':'FORMAT_JUSTIFY_TEXT'});case'FORMAT_BOLD':return t({'string':'bold','id':'FORMAT_BOLD'});case'FORMAT_ITALIC':return t({'string':'italic','id':'FORMAT_ITALIC'});case'FORMAT_UNDERLINE':return t({'string':'underline','id':'FORMAT_UNDERLINE'});case'FORMAT_CODE':return t({'string':'code','id':'FORMAT_CODE'});case'FORMAT_STRIKETHROUGH':return t({'string':'strikethrough','id':'FORMAT_STRIKETHROUGH'});case'FORMAT_SUBSCRIPT':return t({'string':'subscript','id':'FORMAT_SUBSCRIPT'});case'FORMAT_SUPERSCRIPT':return t({'string':'superscript','id':'FORMAT_SUPERSCRIPT'});case'ELEMENT_BLOCK_QUOTE':return t({'string':'block\x20quote','id':'ELEMENT_BLOCK_QUOTE'});case'ELEMENT_CODE_BLOCK':return t({'string':'code\x20block','plural':'%0\x20code\x20blocks','id':'ELEMENT_CODE_BLOCK'},_0x50d876);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x50d876);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x50d876);case'ELEMENT_TABLE_ROW_WITH_TEXT':return t({'string':'table\x20row\x20*with\x20text*\x20%1','plural':'%0\x20table\x20rows\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_ROW_WITH_TEXT'},_0x50d876);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x50d876);case'ELEMENT_TABLE_COLUMN_WITH_TEXT':return t({'string':'table\x20column\x20*with\x20text*\x20%1','plural':'%0\x20table\x20columns\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_COLUMN_WITH_TEXT'},_0x50d876);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x50d876);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x50d876);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0x50d876);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x50d876);case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return _0x4fd597({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x50d876);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x4fd597({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x50d876);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x50d876);case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'},_0x50d876);case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'},_0x50d876);case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'SUGGESTION_THREAD_ARIA_LABEL':return t({'string':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20reply.\x20%3','plural':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20replies.\x20%3','id':'SUGGESTION_THREAD_ARIA_LABEL'},_0x50d876);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x4ef276;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x55444a,_0x4b108c){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x55444a,this['_locale']=_0x4b108c;}['getDescriptions'](_0x34b855){const _0x49983a=[],_0x280062=new Set(),_0x44ac03=new Set();for(let _0x41b852=0x0;_0x41b852<_0x34b855['length'];_0x41b852++){const _0x5919b3=_0x34b855[_0x41b852];if(!_0x5919b3['isInContent'])continue;const _0x1877de=this['_handleCustomCallbackDescription'](_0x5919b3);if(_0x1877de){if(null!=_0x5919b3['subType']){if(_0x280062['has'](_0x5919b3['subType']))continue;_0x280062['add'](_0x5919b3['subType']);}_0x49983a['push'](_0x1877de);}else{if('attribute'!=_0x5919b3['type'])'insertion'!=_0x5919b3['type']&&'deletion'!=_0x5919b3['type']||this['_handleInsertRemoveSuggestionDescription'](_0x49983a,_0x5919b3,_0x34b855[_0x41b852+0x1]);else{const _0x13a2ce=_0x5919b3['data']['key'];if(_0x44ac03['has'](_0x13a2ce))continue;_0x44ac03['add'](_0x5919b3['data']['key']),_0x13a2ce==u?this['_handleRenameSuggestionDescription'](_0x49983a,_0x5919b3):this['_handleAttributeSuggestionDescription'](_0x49983a,_0x5919b3);}}}return this['_resolveDescriptionItems'](_0x49983a);}['registerDescriptionCallback'](_0x22d146){this['_customCallbacks']['push'](_0x22d146);}['registerElementLabel'](_0xf6e3f,_0x1112a0,_0x16b30b=_0x2800bb['normal']){'function'==typeof _0xf6e3f?_0x33918d(this['_itemLabelsCallbacks'],{'matchingCallback':_0xf6e3f,'label':_0x1112a0,'priority':_0x16b30b}):this['_itemLabels']['set'](_0xf6e3f,_0x1112a0);}['registerAttributeLabel'](_0x313001,_0xda37b1){this['_attributeLabels']['set'](_0x313001,_0xda37b1);}['getItemLabel'](_0x59dfeb,_0x15dc1c=0x1){let _0x2be99a;for(const _0x48a3f9 of this['_itemLabelsCallbacks'])if(_0x48a3f9['matchingCallback'](_0x59dfeb)){_0x2be99a=_0x48a3f9['label'];break;}return _0x2be99a||(_0x2be99a=this['_itemLabels']['get'](_0x59dfeb['name'])),_0x2be99a?_0x2be99a(_0x15dc1c):0x1!==_0x15dc1c?_0x15dc1c+'\x20'+_0x59dfeb['name']+'s':''+_0x59dfeb['name'];}['_addDescriptionItems'](_0x4f0f29,_0x4aa198){const _0x2b22cd=_0x4aa198['getFirstRange']()['getWalker'](),_0x91aa22='insertion'==_0x4aa198['type']?'add':'remove';for(const _0x1c5e21 of _0x2b22cd){const _0x385214=_0x1c5e21['item'],_0x5f30a3=_0x4f0f29[_0x4f0f29['length']-0x1];if(_0x385214['is']('$textProxy'))_0x5f30a3&&_0x5f30a3['type']['indexOf']('Container')>-0x1&&_0x4f0f29['pop'](),_0x5f30a3&&'text'==_0x5f30a3['type']?_0x5f30a3[_0x91aa22]+=_0x385214['data']:_0x4f0f29['push']({'type':'text','add':'add'==_0x91aa22?_0x385214['data']:'','remove':'remove'==_0x91aa22?_0x385214['data']:''});else{if(this['_schema']['isObject'](_0x385214)){const _0xb4d4ea=_0x385214;if(_0x5f30a3&&_0x5f30a3['type']['indexOf']('Container')>-0x1&&_0x4f0f29['pop'](),'elementEnd'==_0x1c5e21['type'])continue;_0x5f30a3&&_0x5f30a3['type']==_0x91aa22+'Object'&&_0x5f30a3['element']['name']==_0xb4d4ea['name']?_0x5f30a3['quantity']++:_0x4f0f29['push']({'type':_0x91aa22+'Object','element':_0xb4d4ea,'quantity':0x1}),_0x2b22cd['skip'](_0x2680eb=>!('elementEnd'==_0x2680eb['type']&&_0x2680eb['item']==_0x385214));}else{if(this['_schema']['checkChild'](_0x385214,'$text')||_0x385214['is']('element','softBreak')){const _0x443f49=_0x385214;if('add'==_0x91aa22&&'elementStart'==_0x1c5e21['type']||'remove'==_0x91aa22&&'elementEnd'==_0x1c5e21['type'])continue;if(_0x5f30a3&&-0x1==_0x5f30a3['type']['indexOf']('Container')){'text'==_0x5f30a3['type']&&(_0x5f30a3[_0x91aa22]+='\x0a');continue;}let _0x55b93c;if(_0x55b93c='add'==_0x91aa22?_0x443f49['nextSibling']&&!this['_schema']['isObject'](_0x443f49['nextSibling'])?_0x443f49['nextSibling']:null:_0x443f49['previousSibling']&&!this['_schema']['isObject'](_0x443f49['previousSibling'])?_0x443f49['previousSibling']:null,_0x443f49['isEmpty']||_0x55b93c&&_0x55b93c['isEmpty']){const _0x262032=_0x55b93c&&_0x55b93c['isEmpty']?_0x55b93c:_0x443f49;_0x5f30a3&&_0x5f30a3['type']==_0x91aa22+'EmptyContainer'&&_0x5f30a3['element']['name']==_0x262032['name']?_0x5f30a3['quantity']++:_0x4f0f29['push']({'type':_0x91aa22+'EmptyContainer','element':_0x262032,'quantity':0x1});}else _0x4f0f29['push']({'type':_0x91aa22+'Container','element':_0x443f49});}}}}}['_resolveDescriptionItems'](_0x4823b5){const _0x5a2c4b=this['_locale'],_0x28c703=[],_0x175b2f=[],_0x2fe0d0=[];for(const _0x282f74 of _0x4823b5)switch(_0x282f74['type']){case'text':if(_0x282f74['add']=_0x282f74['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x282f74['remove']=_0x282f74['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x282f74['add']&&''!=_0x282f74['remove']){_0x28c703['push']({'type':'replace','content':c(_0x5a2c4b,'REPLACE_TEXT',['\x22'+_0x282f74['remove']+'\x22','\x22'+_0x282f74['add']+'\x22'])});continue;}if(null!=_0x282f74['add']['match'](/^ +$/)){_0x28c703['push']({'type':'insertion','content':c(_0x5a2c4b,'*Insert:*\x20%0',c(_0x5a2c4b,'ELEMENT_SPACE',_0x282f74['add']['length']))});continue;}if(null!=_0x282f74['remove']['match'](/^ +$/)){_0x28c703['push']({'type':'deletion','content':c(_0x5a2c4b,'*Remove:*\x20%0',c(_0x5a2c4b,'ELEMENT_SPACE',_0x282f74['remove']['length']))});continue;}if(''!=_0x282f74['add']){_0x28c703['push']({'type':'insertion','content':c(_0x5a2c4b,'*Insert:*\x20%0','\x22'+_0x282f74['add']+'\x22')});continue;}_0x28c703['push']({'type':'deletion','content':c(_0x5a2c4b,'*Remove:*\x20%0','\x22'+_0x282f74['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x28c703['push']({'type':'insertion','content':c(_0x5a2c4b,'*Insert:*\x20%0',this['getItemLabel'](_0x282f74['element'],_0x282f74['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x28c703['push']({'type':'deletion','content':c(_0x5a2c4b,'*Remove:*\x20%0',this['getItemLabel'](_0x282f74['element'],_0x282f74['quantity']))});continue;case'addContainer':_0x28c703['push']({'type':'insertion','content':c(_0x5a2c4b,'*Split:*\x20%0',this['getItemLabel'](_0x282f74['element'],_0x282f74['quantity']))});continue;case'removeContainer':_0x28c703['push']({'type':'deletion','content':c(_0x5a2c4b,'*Merge:*\x20%0',this['getItemLabel'](_0x282f74['element'],_0x282f74['quantity']))});continue;case'addFormat':_0x175b2f['push'](_0x282f74['key']);continue;case'removeFormat':_0x2fe0d0['push'](_0x282f74['key']);continue;default:_0x28c703['push'](_0x282f74);}if(_0x175b2f['length']){const _0x5c3232=_0x175b2f['map'](_0x30a5dd=>this['_attributeLabels']['has'](_0x30a5dd)?this['_attributeLabels']['get'](_0x30a5dd):_0x30a5dd)['join'](',\x20');_0x28c703['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x5c3232)});}if(_0x2fe0d0['length']){const _0x3665ad=_0x2fe0d0['map'](_0x5d3abe=>this['_attributeLabels']['has'](_0x5d3abe)?this['_attributeLabels']['get'](_0x5d3abe):_0x5d3abe)['join'](',\x20');_0x28c703['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x3665ad)});}return _0x28c703;}['_handleCustomCallbackDescription'](_0x581997){for(const _0x5c7e05 of this['_customCallbacks']){const _0x5cef61=_0x5c7e05(_0x581997);if(_0x5cef61&&'type'in _0x5cef61)return _0x5cef61;}}['_handleAttributeSuggestionDescription'](_0x54b160,_0x5a1354){const _0x394ce4=_0x5a1354['data'],_0x21cddd=void 0x0===_0x394ce4['newValue']?'removeFormat':'addFormat';_0x54b160['push']({'type':_0x21cddd,'key':_0x394ce4['key']});}['_handleRenameSuggestionDescription'](_0x164e18,_0x408d1e){_0x164e18['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x408d1e['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0xfdb9b3,_0x2aa70e,_0xd279ab){if(this['_addDescriptionItems'](_0xfdb9b3,_0x2aa70e),_0xd279ab&&_0xd279ab['getFirstRange']()&&!_0x2aa70e['getFirstRange']()['end']['isEqual'](_0xd279ab['getFirstRange']()['start'])){const _0x49912e=_0xfdb9b3[_0xfdb9b3['length']-0x1],_0x5ba878='insertion'==_0x2aa70e['type']?'add':'remove';_0x49912e&&'text'==_0x49912e['type']&&(_0x49912e[_0x5ba878]+='\x0a');}}}class U extends _0x54e516{['afterInit'](){const _0x4df0c1=this['editor'],_0x3c8605=_0x4df0c1['plugins']['get']('TrackChangesEditing');_0x4df0c1['commands']['get']('showAIAssistant')&&_0x3c8605['enableCommand']('showAIAssistant');}}class V extends _0x54e516{['afterInit'](){const _0x5bcb7a=this['editor'],_0x27c914=_0x5bcb7a['locale'];if(!_0x5bcb7a['plugins']['has']('AlignmentEditing'))return;const _0x38cb29=_0x5bcb7a['plugins']['get']('TrackChangesEditing');_0x38cb29['enableDefaultAttributesIntegration']('alignment'),_0x38cb29['registerBlockAttribute']('alignment'),_0x38cb29['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x27c914,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3b9f13=this['editor'],_0x11f74f=_0x3b9f13['locale'];_0x3b9f13['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ae088=>{if('formatBlock'!=_0x4ae088['type'])return;const {data:_0xe2b854}=_0x4ae088;if(_0xe2b854&&'alignment'==_0xe2b854['commandName']){const _0x2b7b5d=_0xe2b854['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x11f74f,'*Format:*\x20%0',function(_0x2a1dcc){switch(_0x2a1dcc){case'left':return c(_0x11f74f,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x11f74f,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x11f74f,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x11f74f,'FORMAT_JUSTIFY_TEXT');}}(_0x2b7b5d))};}});}}const Yt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x54e516{['afterInit'](){const _0x13604a=this['editor'],_0xd94fcb=_0x13604a['plugins']['get']('TrackChangesEditing'),_0x3444f4=_0x13604a['locale'];for(const _0x21dd72 of Yt){if(!_0x13604a['plugins']['has'](_0x21dd72))continue;const _0x1d346a=_0x21dd72['slice'](0x0,-0x7)['toLowerCase'](),_0x33c7ea='FORMAT_'+_0x1d346a['toUpperCase']();_0xd94fcb['enableDefaultAttributesIntegration'](_0x1d346a),_0xd94fcb['registerInlineAttribute'](_0x1d346a),_0xd94fcb['descriptionFactory']['registerAttributeLabel'](_0x1d346a,c(_0x3444f4,_0x33c7ea));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x54528d=this['editor'],_0xcd0815=_0x54528d['locale'],_0x34b329=_0x54528d['plugins']['get']('TrackChangesEditing');function _0x2e1ec8(_0x4a2c71,_0x2d2aea){_0x34b329['descriptionFactory']['registerDescriptionCallback'](_0x3db755=>{if('formatInline'!=_0x3db755['type'])return;const {data:_0x4a4067}=_0x3db755;return _0x4a4067&&_0x4a4067['commandName']===_0x4a2c71?_0x4a4067['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0xcd0815,'*Format:*\x20%0',_0x2d2aea)}:{'type':'format','content':c(_0xcd0815,'*Remove\x20format:*\x20%0',_0x2d2aea)}:void 0x0;});}_0x2e1ec8('bold',c(_0xcd0815,'FORMAT_BOLD')),_0x2e1ec8('italic',c(_0xcd0815,'FORMAT_ITALIC')),_0x2e1ec8('underline',c(_0xcd0815,'FORMAT_UNDERLINE')),_0x2e1ec8('code',c(_0xcd0815,'FORMAT_CODE')),_0x2e1ec8('strikethrough',c(_0xcd0815,'FORMAT_STRIKETHROUGH')),_0x2e1ec8('subscript',c(_0xcd0815,'FORMAT_SUBSCRIPT')),_0x2e1ec8('superscript',c(_0xcd0815,'FORMAT_SUPERSCRIPT'));}}class G extends _0x54e516{['afterInit'](){const _0x26df81=this['editor'],_0xacf354=_0x26df81['locale'];if(!_0x26df81['plugins']['has']('BlockQuoteEditing'))return;const _0x2dedab=_0x26df81['plugins']['get']('TrackChangesEditing'),_0x48a969=this['editor']['commands']['get']('blockQuote');_0x2dedab['enableCommand']('blockQuote',(_0x5a13d0,_0x4978f4={})=>{const _0x2a21f0=this['editor']['model']['document']['selection'],_0x557aa5=_0x4978f4&&void 0x0!==_0x4978f4['forceValue']?_0x4978f4['forceValue']:!_0x48a969['value'];let _0x54910f=[];if(_0x557aa5){const _0x2200a0=Array['from'](_0x2a21f0['getSelectedBlocks']())['filter'](_0x38897b=>to(_0x38897b)||function(_0x25f992,_0x3f69b6){const _0x5c98ee=_0x3f69b6['checkChild'](_0x25f992['parent'],'blockQuote'),_0x3980ce=_0x3f69b6['checkChild'](['$root','blockQuote'],_0x25f992);return _0x5c98ee&&_0x3980ce;}(_0x38897b,this['editor']['model']['schema']));_0x54910f=Zt(_0x2200a0,_0x26df81['model']);}else{const _0x7a984a=Array['from'](_0x2a21f0['getSelectedBlocks']())['filter'](_0x4e6b80=>to(_0x4e6b80));_0x54910f=Zt(_0x7a984a,_0x26df81['model']);}_0x26df81['model']['change'](()=>{for(const _0x516101 of _0x54910f)_0x2dedab['markBlockFormat'](_0x516101,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x557aa5}]});});}),_0x2dedab['descriptionFactory']['registerDescriptionCallback'](_0x55312d=>{const {data:_0x465cbb}=_0x55312d;if(_0x465cbb&&'blockQuote'==_0x465cbb['commandName']){const _0x2588c1=c(_0xacf354,'ELEMENT_BLOCK_QUOTE');return _0x465cbb['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0xacf354,'*Set\x20format:*\x20%0',_0x2588c1)}:{'type':'format','content':c(_0xacf354,'*Remove\x20format:*\x20%0',_0x2588c1)};}});}}function to(_0x15754c){return'blockQuote'==_0x15754c['parent']['name'];}class L extends _0x54e516{['afterInit'](){const _0x2fd2bf=this['editor'],_0x5f5444=_0x2fd2bf['locale'],_0x16b2b4=_0x2fd2bf['plugins']['get']('TrackChangesEditing');_0x2fd2bf['plugins']['has']('BookmarkEditing')&&(_0x16b2b4['enableCommand']('insertBookmark'),_0x16b2b4['enableDefaultAttributesIntegration']('updateBookmark'),_0x16b2b4['registerBlockAttribute']('bookmarkId'),_0x16b2b4['descriptionFactory']['registerDescriptionCallback'](_0xd9294=>{if('insertion'!=_0xd9294['type']&&'deletion'!=_0xd9294['type']&&'attribute'!=_0xd9294['type'])return;const _0xe68bb9=_0xd9294['getContainedElement']();if(null==_0xe68bb9)return;if(!_0xe68bb9['is']('element','bookmark'))return;const _0x363d57=_0xe68bb9['getAttribute']('bookmarkId');if('insertion'==_0xd9294['type'])return{'type':'insertion','content':c(_0x5f5444,'*Insert:*\x20%0','\x22'+_0x363d57+'\x22\x20'+c(_0x5f5444,'ELEMENT_BOOKMARK'))};if('deletion'==_0xd9294['type'])return{'type':'deletion','content':c(_0x5f5444,'*Remove:*\x20%0','\x22'+_0x363d57+'\x22\x20'+c(_0x5f5444,'ELEMENT_BOOKMARK'))};const {data:_0x42d126}=_0xd9294;if(!_0x42d126||'bookmarkId'!=_0x42d126['key'])return;return{'type':'format','content':c(_0x5f5444,'*Set\x20bookmark:*\x20%0','\x22'+_0x42d126['newValue']+'\x22')};}));}}class J extends _0x54e516{['afterInit'](){const _0x4b6545=this['editor'];_0x4b6545['plugins']['has']('CaseChange')&&(_0x4b6545['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x4b6545['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x4b6545['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x54e516{['afterInit'](){const _0x132cf5=this['editor'];_0x132cf5['commands']['get']('ckbox')&&_0x132cf5['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x54e516{['afterInit'](){const _0x41be2c=this['editor'];if(!_0x41be2c['plugins']['has']('CodeBlock'))return;const _0x4c8819=_0x41be2c['plugins']['get']('TrackChangesEditing'),_0x1d4e6b=_0x41be2c['locale'],_0x9038a9=_0x41be2c['config']['get']('codeBlock')['languages'],_0xa5f17=_0x41be2c['commands']['get']('codeBlock');_0x4c8819['enableCommand']('indentCodeBlock'),_0x4c8819['enableCommand']('outdentCodeBlock'),_0x4c8819['enableCommand']('codeBlock',(_0x1053d7,_0x1e5264={})=>{const _0xb07d28=_0x41be2c['model'],_0x21a124=_0x41be2c['model']['document']['selection'],_0x248029=_0x1e5264&&void 0x0!==_0x1e5264['forceValue']?_0x1e5264['forceValue']:!_0xa5f17['value'];let _0x4fb890;_0x1e5264['language']||(_0x1e5264['language']=_0x9038a9[0x0]['language']),_0x4fb890=_0x248029?Array['from'](_0x21a124['getSelectedBlocks']())['filter'](_0x73bfcd=>oo(_0x73bfcd)||function(_0x4457fb,_0x432006){if(_0x4457fb['is']('rootElement')||_0x432006['isLimit'](_0x4457fb))return!0x1;return _0x432006['checkChild'](_0x4457fb['parent'],'codeBlock');}(_0x73bfcd,_0xb07d28['schema'])):Array['from'](_0x21a124['getSelectedBlocks']())['filter'](_0x34b965=>oo(_0x34b965));const _0x57bc71=Zt(_0x4fb890,_0xb07d28);_0xb07d28['change'](()=>{for(const _0x3efd9d of _0x57bc71)_0x4c8819['markBlockFormat'](_0x3efd9d,{'commandName':'codeBlock','commandParams':[{..._0x1e5264,'forceValue':_0x248029}],'formatGroupId':'blockName'});});}),(_0x4c8819['descriptionFactory']['registerElementLabel']('codeBlock',_0xb90e13=>c(_0x1d4e6b,'ELEMENT_CODE_BLOCK',_0xb90e13)),_0x4c8819['descriptionFactory']['registerDescriptionCallback'](_0x250b53=>{if('formatBlock'!=_0x250b53['type'])return;const _0x27be56=_0x1d4e6b['t'],{data:_0x151e0a}=_0x250b53;if(!_0x151e0a||'codeBlock'!=_0x151e0a['commandName'])return;const _0x2fe561=_0x151e0a['commandParams'][0x0]['language'],_0x52abc8=_0x27be56(_0x9038a9['find'](_0xb26b59=>_0xb26b59['language']===_0x2fe561)['label'])['toLowerCase']();return _0x151e0a['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x1d4e6b,'*Set\x20format:*\x20%0',c(_0x1d4e6b,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x52abc8+')')}:{'type':'format','content':c(_0x1d4e6b,'*Remove\x20format:*\x20%0',c(_0x1d4e6b,'ELEMENT_CODE_BLOCK',0x1))};}));}}function oo(_0x2b2d4f){return'codeBlock'==_0x2b2d4f['name'];}class q extends _0x54e516{['afterInit'](){const _0x2fa257=this['editor'];if(!_0x2fa257['plugins']['has']('CommentsEditing'))return;_0x2fa257['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x70a83b,_0x4e329f,_0xbbc976){const _0x17643b=[];for(const _0x5037fb of _0x4e329f['getItems']())_0x5037fb['hasAttribute'](_0x70a83b)&&_0x17643b['push'](_0xbbc976['createRangeOn'](_0x5037fb));return _0x17643b;}function De(_0x32981e,_0x3a3275,{showActiveMarker:_0x5df6e9=!0x0}={}){const _0x491807=_0x32981e['plugins']['get']('TrackChangesEditing');return(_0x39117f,_0x442e45,_0x93903c)=>{if(!_0x93903c['consumable']['test'](_0x442e45['markerRange'],_0x39117f['name']))return;const _0x180556=_0x442e45['markerRange']['getWalker'](),_0x1ee0e4=_0x442e45['markerRange']['start'],_0x40ac2e=_0x32981e['model']['schema'];let _0x2590d5=null,_0x42954b=null,_0x5a3a14=!0x1,_0x15a723=!0x1;for(const _0x13b583 of _0x180556){const _0x462a92=_0x13b583['item'];_0x5a3a14=_0x5a3a14||_0x40ac2e['isContent'](_0x462a92);const _0x49d3a4=_0x93903c['mapper']['toViewElement'](_0x462a92);if(_0x49d3a4&&_0x49d3a4['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x13b583['type']&&(_0x40ac2e['isBlock'](_0x462a92)&&!_0x40ac2e['isLimit'](_0x462a92)&&(_0x462a92['nextSibling']||_0x1ee0e4['isAtEnd']?_0x2590d5&&_0x2590d5['parent']==_0x462a92||(_0x2590d5=_0x462a92,_0x5e3c23(_0x13b583['previousPosition']),_0x15a723=!0x0):_0x42954b=_0x42954b||_0x13b583['previousPosition']));}function _0x5e3c23(_0x4d499c){const {authorId:_0x4479c6}=_0x491807['_splitMarkerName'](_0x442e45['markerName']),_0x469cbe=_0x93903c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3a3275,'data-author-id':_0x4479c6}),_0x409f43=_0x93903c['mapper']['toViewPosition'](_0x4d499c);_0x5df6e9&&_0x491807['activeMarkers']['includes'](_0x442e45['markerName'])&&_0x93903c['writer']['addClass']('ck-suggestion-marker--active',_0x469cbe),_0x93903c['writer']['insert'](_0x409f43,_0x469cbe),_0x93903c['mapper']['bindElementToMarker'](_0x469cbe,_0x442e45['markerName']);}_0x5a3a14||_0x15a723||!_0x42954b||_0x5e3c23(_0x42954b);};}class z extends _0x54e516{static get['requires'](){return[_0x2df60f];}['init'](){const _0x42d46c=this['editor'],_0x1e986e=_0x42d46c['plugins']['get']('TrackChangesEditing');_0x1e986e['enableCommand']('delete');const _0x35473e=_0x42d46c['commands']['get']('deleteForward');_0x1e986e['enableCommand']('deleteForward',(_0x54a6d8,_0x4d6572={})=>{const _0x14d6e4=_0x42d46c['model']['createSelection'](_0x42d46c['model']['document']['selection']);_0x14d6e4['isCollapsed']&&_0x42d46c['model']['modifySelection'](_0x14d6e4,{'direction':'forward','unit':_0x4d6572['unit']});const _0x4e95b1=_0x14d6e4['getFirstRange'](),_0x41c475=_0x6b53b6['fromRange'](_0x4e95b1);let _0x173fc8;_0x54a6d8(_0x4d6572),_0x173fc8='$graveyard'==_0x41c475['root']['rootName']?_0x42d46c['model']['createRange'](_0x4e95b1['start']):_0x42d46c['model']['createRange'](_0x41c475['start'],_0x41c475['end']),_0x41c475['detach'](),_0x42d46c['model']['enqueueChange'](_0x35473e['buffer']['batch'],_0x2e5fbc=>{_0x35473e['buffer']['lock'](),_0x2e5fbc['setSelection'](_0x2e5fbc['createRange'](_0x173fc8['end'])),_0x35473e['buffer']['unlock']();});}),_0x42d46c['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x42d46c,'merge'),{'priority':'high'}),_0x42d46c['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x3e2814,_0x117fde,_0x52b11d)=>{_0x52b11d['options']['showSuggestionHighlights']&&De(_0x42d46c,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x3e2814,_0x117fde,_0x52b11d);},{'priority':'high'}),_0x42d46c['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x489cb3,_0x138155,_0x38367a)=>{const _0x38ef57=_0x38367a['mapper']['markerNameToElements'](_0x138155['markerName']);if(_0x38ef57){for(const _0x515334 of _0x38ef57)_0x515334['is']('uiElement')&&(_0x38367a['mapper']['unbindElementFromMarkerName'](_0x515334,_0x138155['markerName']),_0x38367a['writer']['remove'](_0x515334));}},{'priority':'high'});}}class W extends _0x54e516{['afterInit'](){const _0x51320a=this['editor'];if(!_0x51320a['plugins']['has']('ListEditing'))return;const _0x249b7b=_0x51320a['locale'],_0x463ec9=_0x51320a['plugins']['get']('TrackChangesEditing'),_0x36cca9=_0x51320a['plugins']['has']('TodoListEditing'),_0x4961ea=!!_0x51320a['config']['get']('list.multiBlock');function _0x205899(_0x1b282e){return{'type':'format','content':''+c(_0x249b7b,'*Set\x20format:*\x20%0',_0x1b282e)};}function _0x3c8f83(_0x594079){return{'type':'format','content':''+c(_0x249b7b,'*Remove\x20format:*\x20%0',_0x594079)};}_0x463ec9['enableDefaultAttributesIntegration']('numberedList'),_0x463ec9['enableDefaultAttributesIntegration']('bulletedList'),_0x463ec9['enableDefaultAttributesIntegration']('customNumberedList'),_0x463ec9['enableDefaultAttributesIntegration']('customBulletedList'),_0x463ec9['enableDefaultAttributesIntegration']('indentList'),_0x463ec9['enableDefaultAttributesIntegration']('outdentList'),_0x463ec9['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x463ec9['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x463ec9['registerBlockAttribute']('listItemId'),_0x463ec9['registerBlockAttribute']('listType'),_0x463ec9['registerBlockAttribute']('listIndent'),_0x4961ea&&(_0x463ec9['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x463ec9['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x36cca9&&(_0x463ec9['enableDefaultAttributesIntegration']('todoList'),_0x463ec9['enableDefaultAttributesIntegration']('checkTodoList'),_0x463ec9['registerBlockAttribute']('todoListChecked'),_0x463ec9['descriptionFactory']['registerDescriptionCallback'](_0x1d5941=>{const {data:_0x1bc5e4}=_0x1d5941;if(_0x1bc5e4&&'todoListChecked'==_0x1bc5e4['key'])return{'type':'format','content':_0x1bc5e4['newValue']?c(_0x249b7b,'*Check\x20item*'):c(_0x249b7b,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x506d79=>{if(_0x506d79['batch']['isUndo'])return!0x1;let _0x2cf2e4=!0x1;const _0x2e1e9f=_0x463ec9['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x156659=>'todoListChecked'===_0x463ec9['_getAttributeKey'](_0x156659));for(const _0x5085b0 of _0x2e1e9f){'todo'!=_0x5085b0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x463ec9['_findSuggestions'](_0x5085b0['getFirstRange'](),'attribute')['find'](_0x46be1b=>'listType'===_0x463ec9['_getAttributeKey'](_0x46be1b['suggestion']))||(_0x506d79['removeMarker'](_0x5085b0['getFirstMarker']()),_0x2cf2e4=!0x0));}return _0x2cf2e4;})),_0x463ec9['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x249b7b,'FORMAT_INDENT'));const _0x1e3590={'type':'format','content':''};_0x463ec9['descriptionFactory']['registerDescriptionCallback'](_0x1f0189=>{const {data:_0x1c684e}=_0x1f0189;if(!_0x1c684e||'listType'!=_0x1c684e['key'])return;let _0xf96e6b=_0x1f0189['head'];for(;_0xf96e6b;){if(_0xf96e6b['data']&&(('listStyle'==_0xf96e6b['data']['key']||'listMarkerStyle'==_0xf96e6b['data']['key'])&&(_0xf96e6b['data']['newValue']&&'default'!=_0xf96e6b['data']['newValue']||'default'!=_0xf96e6b['data']['oldValue']&&!_0x1c684e['newValue'])||!_0x4961ea&&_0xf96e6b['data']['key']==u))return _0x1e3590;_0xf96e6b=_0xf96e6b['next'];}if(null==_0x1c684e['newValue'])switch(_0x1c684e['oldValue']){case'bulleted':return _0x3c8f83(c(_0x249b7b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3c8f83(c(_0x249b7b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3c8f83(c(_0x249b7b,'ELEMENT_TODO_LIST'));}switch(_0x1c684e['newValue']){case'bulleted':return _0x205899(c(_0x249b7b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x205899(c(_0x249b7b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x205899(c(_0x249b7b,'ELEMENT_TODO_LIST'));}}),_0x463ec9['descriptionFactory']['registerDescriptionCallback'](_0x232750=>{const {data:_0x461334}=_0x232750;if(_0x461334&&'listIndent'==_0x461334['key'])return null==_0x461334['newValue']||null==_0x461334['oldValue']&&0x0==_0x461334['newValue']?_0x1e3590:void 0x0;}),_0x463ec9['descriptionFactory']['registerDescriptionCallback'](_0x1f0b57=>{if('attribute'!=_0x1f0b57['type'])return;const {data:_0x3a4843}=_0x1f0b57;if(!_0x3a4843||'listItemId'!=_0x3a4843['key'])return;const _0x48928c=Te(_0x1f0b57);return'newValue'==_0x48928c?{'type':'format','content':c(_0x249b7b,'*Merge:*\x20list\x20item')}:'oldValue'==_0x48928c?{'type':'format','content':c(_0x249b7b,'*Split:*\x20list\x20item')}:_0x1e3590;}),_0x51320a['model']['document']['registerPostFixer'](_0x26e947=>this['listItemIdFixer'](_0x26e947)),_0x51320a['model']['document']['registerPostFixer'](_0x7e678d=>this['noTrackChangesFixer'](_0x7e678d)),_0x51320a['model']['document']['on']('change:data',(_0x40c398,_0x402857)=>{if(_0x402857['isUndo']||!_0x402857['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x460212){if(_0x460212['batch']['isUndo']||!_0x460212['batch']['isLocal'])return!0x1;let _0x552d4e=!0x1;const _0x2e55d4=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3ec905=>_0x3ec905['data']&&'listItemId'==_0x3ec905['data']['key'])['filter'](_0x4f2456=>_0x4f2456['data']['newValue']&&_0x4f2456['data']['oldValue']);for(const _0x4465bb of _0x2e55d4)Te(_0x4465bb)||(_0x460212['removeMarker'](_0x4465bb['getFirstMarker']()),_0x552d4e=!0x0);return _0x552d4e;}['noTrackChangesFixer'](_0x3ea00f){if(_0x3ea00f['batch']['isUndo']||!_0x3ea00f['batch']['isLocal'])return!0x1;const _0x568211=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x568211['trackChangesCommand']['value'])return!0x1;let _0x4e27a3=!0x1;const _0xb47a8a=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x1e9966=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x28f3e5=>'attribute'==_0x28f3e5['type'])['filter'](_0x4fa606=>_0xb47a8a['includes'](_0x4fa606['attributeKey']));if(0x0==_0x1e9966['length'])return _0x4e27a3;for(const _0x4f7dd4 of _0x1e9966){const _0x431f50=_0x568211['_findSuggestions'](_0x4f7dd4['range'],'attribute')['filter'](_0x37528a=>!_0x37528a['meta']['isNextTo'])['map'](_0x56ba13=>_0x56ba13['suggestion'])['filter'](_0x3c1342=>{const _0x372d7e=_0x568211['_getAttributeKey'](_0x3c1342);return _0xb47a8a['includes'](_0x372d7e);});if(_0x431f50['length']){for(const _0x2975a0 of _0x431f50)_0x3ea00f['removeMarker'](_0x2975a0['getFirstMarker']());_0x4e27a3=!0x0;}}return _0x4e27a3;}['assureChains'](){const _0x131ec3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x567eb5=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x19a234;const _0x3143aa=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5d652f=>{if(_0x5d652f['data']['oldRange']||!_0x5d652f['data']['newRange'])return null;if(!_0x5d652f['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x13768a}=_0x131ec3['_splitMarkerName'](_0x5d652f['name']);if(!_0x131ec3['hasSuggestion'](_0x13768a))return null;const _0x4ac01d=_0x131ec3['getSuggestion'](_0x13768a);return _0x567eb5['includes'](_0x4ac01d['data']['key']);})['map'](_0xc6cd97=>{const {id:_0x3a85c2}=_0x131ec3['_splitMarkerName'](_0xc6cd97['name']),_0x15bc85=_0x131ec3['getSuggestion'](_0x3a85c2);return _0x19a234=_0x15bc85['attributes']['groupId'],_0x15bc85['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x3143aa['size'])return;const _0x29d59c=_0x131ec3['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x588231=>'attribute'==_0x588231['type']&&_0x588231['data']&&_0x567eb5['includes'](_0x588231['data']['key'])&&_0x588231['attributes']['groupId']!=_0x19a234)['map'](_0x5dbfc0=>({'listItem':_0x5dbfc0['getFirstRange']()['start']['nodeAfter'],'groupId':_0x5dbfc0['attributes']['groupId']})),_0x2e4ce=new Set();for(const {groupId:_0x5e5c6f,listItem:_0x2938c6}of _0x29d59c)_0x3143aa['has'](_0x2938c6)&&_0x2e4ce['add'](_0x5e5c6f);for(const _0x7efa08 of _0x131ec3['getSuggestions']())_0x2e4ce['has'](_0x7efa08['attributes']['groupId'])&&_0x7efa08['setAttribute']('groupId',_0x19a234);}['_supportLegacySuggestions'](){const _0xa344ae=this['editor'],_0x24fbf2=_0xa344ae['locale'],_0x487bf0=_0xa344ae['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x487bf0['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x3a8765,_0x147bfe){const _0x4d885b=[];for(let _0x5993aa of _0x3a8765)_0x5993aa['start']['nodeAfter']===_0x5993aa['end']['parent']&&(_0x5993aa=_0xa344ae['model']['createRange'](_0xa344ae['model']['createPositionAt'](_0x5993aa['start']['nodeAfter'],0x0))),_0x4d885b['push'](_0x5993aa);_0xa344ae['model']['change'](_0x122114=>{const _0x58830a=_0xa344ae['model']['document']['selection'],_0x67f8d2=Array['from'](_0x58830a['getRanges']())['map'](_0x4d6662=>_0x6b53b6['fromRange'](_0x4d6662));_0x122114['setSelection'](_0x4d885b),_0xa344ae['commands']['get'](_0x147bfe['commandName'])['refresh'](),_0x147bfe['commandParams']['push']({'forceDefaultExecution':!0x0}),_0xa344ae['execute'](_0x147bfe['commandName'],..._0x147bfe['commandParams']),_0x122114['setSelection'](_0x67f8d2);for(const _0x251f6a of _0x67f8d2)_0x251f6a['detach']();});}),_0x487bf0['descriptionFactory']['registerElementLabel'](function(_0x491474){const _0x51fe30=!_0xa344ae['model']['schema']['isObject'](_0x491474),_0xfc517a=_0x491474['previousSibling'],_0x4eb874=_0x491474['nextSibling'],_0x2ca5f3=_0x491474['getAttribute']('listItemId'),_0x547167=!_0xfc517a||_0xfc517a['getAttribute']('listItemId')!==_0x2ca5f3,_0x447cb1=!_0x4eb874||_0x4eb874['getAttribute']('listItemId')!==_0x2ca5f3;return _0x51fe30&&Boolean(_0x2ca5f3)&&_0x547167&&_0x447cb1;},_0x4b9562=>c(_0x24fbf2,'ELEMENT_LIST_ITEM',_0x4b9562));}['_registerLegacyDescription'](){const _0x1d7802=this['editor'],_0x51d5db=_0x1d7802['locale'];function _0x2f621e(_0x41d96f){const _0x10a3ad=_0x1d7802['commands']['get']('bulletedList')['value'],_0x5385ba=_0x1d7802['commands']['get']('numberedList')['value'];return'numberedList'===_0x41d96f?_0x10a3ad:_0x5385ba;}_0x1d7802['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x3f8c01){if('formatBlock'!=_0x3f8c01['type'])return;const {data:_0x42c00c}=_0x3f8c01;if(!_0x42c00c)return;let _0x54145e,_0x2cede8,_0x125f50,_0x5650e8;switch(_0x42c00c['commandName']){case'bulletedList':_0x125f50=_0x42c00c['commandParams'][0x0]['forceValue'],_0x5650e8=_0x2f621e(_0x42c00c['commandName']),_0x54145e=_0x125f50?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5650e8&&_0x1d7802['config']['get']('list.multiBlock')||(_0x54145e='*Change\x20to:*\x20%0'),_0x2cede8={'type':'format','content':c(_0x51d5db,_0x54145e,c(_0x51d5db,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x125f50=_0x42c00c['commandParams'][0x0]['forceValue'],_0x5650e8=_0x2f621e(_0x42c00c['commandName']),_0x54145e=_0x125f50?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5650e8&&_0x1d7802['config']['get']('list.multiBlock')||(_0x54145e='*Change\x20to:*\x20%0'),_0x2cede8={'type':'format','content':c(_0x51d5db,_0x54145e,c(_0x51d5db,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x54145e='*Indent:*\x20%0',_0x2cede8={'type':'format','content':c(_0x51d5db,_0x54145e,c(_0x51d5db,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x54145e=function(_0x3abb90){const _0x56892a=_0x3abb90['getFirstRange']();let _0x4a003e=_0x56892a['start']['nodeAfter'];for(;_0x4a003e&&_0x56892a['containsItem'](_0x4a003e);){if(_0x4a003e['getAttribute']('listIndent')>0x0)return!0x1;_0x4a003e=_0x4a003e['nextSibling'];}return!0x0;}(_0x3f8c01)?c(_0x51d5db,'*Format:*\x20remove\x20from\x20%0',c(_0x51d5db,function(_0x25558a){return'ELEMENT_'+_0x25558a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x3f8c01))):c(_0x51d5db,'*Outdent:*\x20%0',c(_0x51d5db,'ELEMENT_LIST_ITEM')),_0x2cede8={'type':'format','content':_0x54145e};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x42c00c['multipleBlocks']&&(_0x54145e='*Merge:*\x20%0',_0x2cede8={'type':'deletion','content':c(_0x51d5db,_0x54145e,c(_0x51d5db,'ELEMENT_LIST_ITEM'))});}return _0x2cede8;});}}function Te(_0x2ee48d){let _0x27a74f=_0x2ee48d['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x27a74f;){const _0x4ccc55=_0x27a74f['getAttribute']('listItemId');if(!_0x4ccc55)return!0x1;if(_0x4ccc55==_0x2ee48d['data']['newValue'])return'newValue';if(_0x4ccc55==_0x2ee48d['data']['oldValue'])return'oldValue';_0x27a74f=_0x27a74f['previousSibling'];}return!0x1;}class Se extends _0x54e516{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x58fe5a=this['editor']['config']['get']('list.properties'),_0xb174b1=this['editor']['plugins']['get']('TrackChangesEditing');_0x58fe5a['styles']&&(_0xb174b1['enableDefaultAttributesIntegration']('listStyle'),_0xb174b1['registerBlockAttribute']('listStyle')),_0x58fe5a['reversed']&&(_0xb174b1['enableDefaultAttributesIntegration']('listReversed'),_0xb174b1['registerBlockAttribute']('listReversed')),_0x58fe5a['startIndex']&&(_0xb174b1['enableDefaultAttributesIntegration']('listStart'),_0xb174b1['registerBlockAttribute']('listStart'));const _0x19822e={'type':'format','content':''};_0xb174b1['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x229fa4=this['editor']['locale'];_0xb174b1['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x229fa4,'FORMAT_LIST_REVERSED')),_0xb174b1['descriptionFactory']['registerDescriptionCallback'](_0x1b7514=>{const {data:_0x2fbd86}=_0x1b7514;if(_0x2fbd86&&'listReversed'==_0x2fbd86['key'])return null==_0x2fbd86['newValue']||0x0==_0x2fbd86['newValue']&&null==_0x2fbd86['oldValue']?_0x19822e:void 0x0;}),_0xb174b1['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x229fa4,'FORMAT_LIST_START')),_0xb174b1['descriptionFactory']['registerDescriptionCallback'](_0xd167dd=>{const {data:_0x200840}=_0xd167dd;if(_0x200840&&'listStart'==_0x200840['key'])return null==_0x200840['newValue']||0x1==_0x200840['newValue']&&null==_0x200840['oldValue']?_0x19822e:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x54823e=>{if(_0x54823e['batch']['isUndo'])return!0x1;let _0x88c17=!0x1;const _0x315b7c=_0xb174b1['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4f82b8=>{const _0x38183c=_0xb174b1['_getAttributeKey'](_0x4f82b8);return'listStart'==_0x38183c||'listReversed'==_0x38183c;});for(const _0xb75c23 of _0x315b7c){const _0x3d39d8=_0xb75c23['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x3d39d8||'customNumbered'==_0x3d39d8)continue;_0xb174b1['_findSuggestions'](_0xb75c23['getFirstRange'](),'attribute')['find'](_0x25d09d=>'listType'==_0xb174b1['_getAttributeKey'](_0x25d09d['suggestion']))||(_0x54823e['removeMarker'](_0xb75c23['getFirstMarker']()),_0x88c17=!0x0);}return _0x88c17;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x540d0d){const _0x4ad1ec=this['editor']['locale'],{data:_0x2592ac}=_0x540d0d,_0xb9c62={'type':'format','content':''};if(!_0x2592ac||'listStyle'!=_0x2592ac['key'])return;if(!_0x2592ac['oldValue'])return'default'==_0x2592ac['newValue']?_0xb9c62:{'type':'format','content':''+c(_0x4ad1ec,'*Set\x20format:*\x20%0',c(_0x4ad1ec,this['_getTranslationKeyForListStyle'](_0x2592ac['newValue'])))};if(!_0x2592ac['newValue']){if('default'==_0x2592ac['oldValue'])return _0xb9c62;let _0x589e2a=_0x540d0d['head'];for(;_0x589e2a;){if(_0x589e2a['data']&&'listType'==_0x589e2a['data']['key']&&_0x589e2a['data']['newValue'])return _0xb9c62;_0x589e2a=_0x589e2a['next'];}return{'type':'format','content':''+c(_0x4ad1ec,'*Remove\x20format:*\x20%0',c(_0x4ad1ec,this['_getTranslationKeyForListStyle'](_0x2592ac['oldValue'])))};}if('default'!=_0x2592ac['newValue'])return{'type':'format','content':''+c(_0x4ad1ec,'*Set\x20format:*\x20%0',c(_0x4ad1ec,this['_getTranslationKeyForListStyle'](_0x2592ac['newValue'])))};let _0x51de1f=_0x540d0d['head'];for(;_0x51de1f;){if(_0x51de1f['data']&&'listType'==_0x51de1f['data']['key']&&_0x51de1f['data']['newValue']&&_0x51de1f['data']['oldValue'])return _0xb9c62;_0x51de1f=_0x51de1f['next'];}return{'type':'format','content':c(_0x4ad1ec,'*Set\x20format:*\x20%0',c(_0x4ad1ec,'ELEMENT_'+_0x540d0d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x328ffd=this['editor'],_0x4bed79=_0x328ffd['locale'];_0x328ffd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x48b06b=>{if('formatBlock'!=_0x48b06b['type'])return;const {data:_0x30531b}=_0x48b06b;if(!_0x30531b)return;let _0x45fbf8,_0xfe63e7;switch(_0x30531b['commandName']){case'listStyle':_0x45fbf8='*Change\x20to:*\x20%0',_0xfe63e7={'type':'format','content':c(_0x4bed79,_0x45fbf8,c(_0x4bed79,this['_getTranslationKeyForListStyle'](_0x30531b['commandParams'][0x0]['type'])))};break;case'listReversed':_0x45fbf8=_0x30531b['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xfe63e7={'type':'format','content':c(_0x4bed79,_0x45fbf8)};break;case'listStart':_0x45fbf8='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xfe63e7={'type':'format','content':c(_0x4bed79,_0x45fbf8,_0x30531b['commandParams'][0x0]['startIndex'])};}return _0xfe63e7;});}['_getTranslationKeyForListStyle'](_0x1ce6da){return'ELEMENT_'+function(_0xbec727){if(_e['includes'](_0xbec727))return'bulleted';if(Re['includes'](_0xbec727))return'numbered';return null;}(_0x1ce6da)['toUpperCase']()+'_LIST_'+_0x1ce6da['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x54e516{['afterInit'](){const _0x4f0808=this['editor'];_0x4f0808['commands']['get']('emoji')&&_0x4f0808['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x54e516{static get['requires'](){return[_0x188e6c];}['init'](){const _0x5d67e8=this['editor'],_0x4af2b1=_0x5d67e8['plugins']['get']('TrackChangesEditing'),_0x4d1dc2=_0x5d67e8['commands']['get']('enter');_0x4af2b1['enableCommand']('enter',()=>{_0x5d67e8['model']['change'](_0x59a6aa=>{const _0x30f200=_0x5d67e8['model']['document']['selection'],_0x49b0ab=_0x30f200['getFirstPosition'](),_0x52aa46=_0x6b53b6['fromRange'](_0x30f200['getFirstRange']());if(_0x4d1dc2['enterBlock'](_0x59a6aa)){const _0x3f6c34=_0x5d67e8['model']['createPositionAt'](_0x49b0ab['parent']['nextSibling'],0x0),_0x15891a=_0x59a6aa['createRange'](_0x49b0ab,_0x3f6c34);_0x4af2b1['markInsertion'](_0x15891a);}else _0x59a6aa['setSelection'](_0x59a6aa['createRange'](_0x52aa46['end']));_0x52aa46['detach'](),_0x4d1dc2['fire']('afterExecute',{'writer':_0x59a6aa});});}),_0x5d67e8['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x5d67e8,'split'),{'priority':'high'}),_0x5d67e8['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x340f7a,_0x116936,_0x2a4f59)=>{const _0x5972ea=_0x2a4f59['mapper']['markerNameToElements'](_0x116936['markerName']);if(_0x5972ea){for(const _0x658fcc of _0x5972ea)_0x658fcc['hasClass']('ck-suggestion-marker-split')&&(_0x2a4f59['mapper']['unbindElementFromMarkerName'](_0x658fcc,_0x116936['markerName']),_0x2a4f59['writer']['remove'](_0x658fcc));}},{'priority':'high'}),_0x5d67e8['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x390ca0,_0x3896d1,_0x52ee20)=>{_0x52ee20['options']['showSuggestionHighlights']&&De(_0x5d67e8,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x390ca0,_0x3896d1,_0x52ee20);},{'priority':'high'});}}class Z extends _0x54e516{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x3d9ceb=this['editor']['plugins']['get']('TrackChangesEditing');_0x3d9ceb['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x3d9ceb['enableCommand']('findNext'),_0x3d9ceb['enableCommand']('findPrevious'),_0x3d9ceb['enableCommand']('replace'),_0x3d9ceb['enableCommand']('replaceAll');}['handleFindCommand'](_0x377ba4,_0x2ce9dd,_0x2b6d3b={}){const _0x1fda50=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x377ba4(_0x14113d=>{let _0x5e0eb1=('string'==typeof _0x2ce9dd?_0x1fda50['findByTextCallback'](_0x2ce9dd,_0x2b6d3b):_0x2ce9dd)(_0x14113d);Array['isArray'](_0x5e0eb1)&&(_0x5e0eb1={'results':_0x5e0eb1,'searchText':'string'==typeof _0x2ce9dd?_0x2ce9dd:''});const _0x41b709=_0x5e0eb1['results']['filter'](_0x20f875=>!0x1===this['_isInDeletionRange'](_0x20f875,_0x14113d['item']));return{..._0x5e0eb1,'results':_0x41b709};},_0x2b6d3b);}['_isInDeletionRange'](_0x2a4276,_0x24b92c){const _0x50012e=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x24b92c,_0x2a4276['start']),this['editor']['model']['createPositionAt'](_0x24b92c,_0x2a4276['end']));for(const _0x50f012 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x50012e['getIntersection'](_0x50f012['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x54e516{['afterInit'](){const _0x439ad8=this['editor']['locale'],_0x2a18ee=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0xf22c72,commandName:_0x314c97}of eo)this['editor']['plugins']['has'](_0xf22c72)&&(_0x2a18ee['enableDefaultAttributesIntegration'](_0x314c97),_0x2a18ee['registerInlineAttribute'](_0x314c97));_0x2a18ee['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x439ad8,'FORMAT_FONT_SIZE')),_0x2a18ee['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x439ad8,'FORMAT_FONT_FAMILY')),_0x2a18ee['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x439ad8,'FORMAT_FONT_COLOR')),_0x2a18ee['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x439ad8,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4b1bb8=this['editor'],_0x3e296f=_0x4b1bb8['locale'];_0x4b1bb8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x348e56=>{const _0x274b50=_0x3e296f['t'];if('formatInline'!=_0x348e56['type'])return;const {data:_0x2ca4f6}=_0x348e56;if(null!=_0x2ca4f6){if('fontSize'==_0x2ca4f6['commandName']){const _0x136aa3=_0x2ca4f6['commandParams'][0x0]['value'];if(_0x136aa3){const _0x2ae783=_0x274b50(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x2f520e=>_0x2f520e['model']==_0x136aa3)['title'])['toLowerCase']();return{'type':'format','content':c(_0x3e296f,'*Set\x20font\x20size:*\x20%0',_0x2ae783)};}return{'type':'format','content':c(_0x3e296f,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x2ca4f6['commandName']){const _0x42fa0f=_0x2ca4f6['commandParams'][0x0]['value'];return _0x42fa0f?{'type':'format','content':c(_0x3e296f,'*Set\x20font\x20family:*\x20%0',_0x42fa0f)}:{'type':'format','content':c(_0x3e296f,'*Reset\x20font\x20family*')};}if('fontColor'==_0x2ca4f6['commandName']){const _0x43b5a2=_0x2ca4f6['commandParams'][0x0]['value'];if(_0x43b5a2){const _0x332f61=_0x1f08af(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5196ff=>_0x5196ff['model']==_0x43b5a2);let _0x416a01=_0x43b5a2,_0x37b5b8='';return _0x332f61&&(_0x416a01=_0x332f61['label'],_0x37b5b8=_0x274b50(_0x416a01)['toLowerCase']()),{'type':'format','content':c(_0x3e296f,'*Set\x20font\x20color:*\x20%0',_0x37b5b8)['trim'](),'color':{'value':_0x43b5a2,'title':_0x37b5b8||_0x416a01}};}return{'type':'format','content':c(_0x3e296f,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x2ca4f6['commandName']){const _0x3375c0=_0x2ca4f6['commandParams'][0x0]['value'];if(_0x3375c0){const _0xe46e00=_0x1f08af(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x5b9f5c=>_0x5b9f5c['model']==_0x3375c0);let _0x2d90f8=_0x3375c0,_0x520cd6='';return _0xe46e00&&(_0x2d90f8=_0xe46e00['label'],_0x520cd6=_0x274b50(_0x2d90f8)['toLowerCase']()),{'type':'format','content':c(_0x3e296f,'*Set\x20font\x20background\x20color:*\x20%0',_0x520cd6)['trim'](),'color':{'value':_0x3375c0,'title':_0x520cd6||_0x2d90f8}};}return{'type':'format','content':c(_0x3e296f,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x54e516{['afterInit'](){const _0x2b261b=this['editor'],_0x2df8c2=_0x2b261b['plugins']['get']('TrackChangesEditing'),_0x1d258d=_0x2b261b['commands']['get']('copyFormat'),_0xcc9435=_0x2b261b['commands']['get']('pasteFormat');_0x1d258d&&_0xcc9435&&(_0x2df8c2['enableDefaultAttributesIntegration']('pasteFormat'),_0x2df8c2['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x130bc9=this['editor'],_0x18f523=_0x130bc9['locale'];_0x130bc9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x49612c=>{if('formatBlock'!=_0x49612c['type']&&'formatInline'!=_0x49612c['type'])return;const {data:_0xd449eb}=_0x49612c;if(_0xd449eb&&'pasteFormat'===_0xd449eb['commandName']){const _0xe55b59=[],_0x49a1d5=_0xd449eb['commandParams'][0x0];for(const [_0x29697e,_0x3b9588]of Object['entries'](_0x49a1d5))_0xe55b59['push'](ro(_0x130bc9,_0x29697e,_0x3b9588));return _0xe55b59['length']?{'type':'format','content':c(_0x18f523,'*Set\x20format\x20to:*\x20%0',_0xe55b59['join'](',\x20'))}:{'type':'format','content':c(_0x18f523,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x3a4ddf,_0x45e11b,_0x1d29e3){const _0x47344a=_0x3a4ddf['locale']['t'],_0xf29f4b=_0x45e11b['split'](/(?=[A-Z])/)['join']('\x20'),_0x3dcac7=_0x47344a(_0xf29f4b['charAt'](0x0)['toUpperCase']()+_0xf29f4b['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x1d29e3)return _0x3dcac7;if('fontColor'===_0x45e11b||'fontBackgroundColor'===_0x45e11b){const _0x59dad3=_0x1f08af(_0x3a4ddf['config']['get']('fontColor.colors'))['find'](_0x12c41a=>_0x12c41a['model']==_0x1d29e3);return _0x3dcac7+'\x20('+(_0x59dad3?_0x47344a(_0x59dad3['label'])['toLowerCase']():_0x1d29e3)+')';}if('fontSize'===_0x45e11b&&isNaN(parseFloat(_0x1d29e3))){const _0x48714b=_0x3a4ddf['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x3a4ddf['config']['get']('fontSize.options'))['find'](_0x139e68=>_0x139e68['model']==_0x1d29e3);return _0x3dcac7+'\x20('+(_0x48714b?_0x47344a(_0x48714b['title'])['toLowerCase']():_0x1d29e3)+')';}return _0x3dcac7+'\x20('+_0x1d29e3+')';}class nt extends _0x54e516{['_headingOptions'];['afterInit'](){const _0x4e1cd9=this['editor'];if(!_0x4e1cd9['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x4e1cd9['config']['get']('heading.options');const _0x2a54d7=_0x4e1cd9['locale'],_0x335325=_0x4e1cd9['plugins']['get']('TrackChangesEditing');_0x335325['enableDefaultAttributesIntegration']('heading');for(const _0x17f254 of this['_headingOptions'])'paragraph'!=_0x17f254['model']&&_0x335325['descriptionFactory']['registerElementLabel'](_0x17f254['model'],_0x294671=>{const _0x134ee3=this['_getHeadingLevel'](_0x17f254['model']);return null!==_0x134ee3?_0x1ee86e(_0x294671,_0x134ee3):_0x423a8b(_0x294671,_0x17f254['title']);});function _0x1ee86e(_0x20a719,_0x299e98){return c(_0x2a54d7,'ELEMENT_HEADING',[_0x20a719,_0x299e98]);}function _0x423a8b(_0x2b1a2c,_0xd02ea4){return c(_0x2a54d7,'ELEMENT_HEADING_CUSTOM',[_0x2b1a2c,_0xd02ea4]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x20f6c7=this['editor'],_0x2cea5a=_0x20f6c7['locale'];function _0x325fcd(_0x29b94b,_0x515b18){return c(_0x2cea5a,'ELEMENT_HEADING_CUSTOM',[_0x29b94b,_0x515b18]);}_0x20f6c7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x178c73=>{if('formatBlock'!=_0x178c73['type'])return;const {data:_0xd3e04b}=_0x178c73;if(_0xd3e04b&&'heading'==_0xd3e04b['commandName']){const _0x3d4079=_0xd3e04b['commandParams'][0x0]['value'],_0x1061e9=this['_getHeadingLevel'](_0x3d4079);if(null!==_0x1061e9)return{'type':'format','content':c(_0x2cea5a,'*Change\x20to:*\x20%0',(_0x3cb013=0x1,_0x11bea7=_0x1061e9,c(_0x2cea5a,'ELEMENT_HEADING',[_0x3cb013,_0x11bea7])))};const _0x50de85=this['_headingOptions']['find'](_0x3e71f9=>_0x3e71f9['model']===_0x3d4079)['title'];return{'type':'format','content':c(_0x2cea5a,'*Change\x20to:*\x20%0',_0x325fcd(0x1,_0x50de85))};}var _0x3cb013,_0x11bea7;});}['_getHeadingLevel'](_0x4a636b){const _0x3a7f99=_0x4a636b['match'](/^heading(\d+)/);if(_0x3a7f99)return _0x3a7f99[0x1];const _0x1d12d3=this['_headingOptions']?.['find'](_0x2dceea=>_0x2dceea['model']==_0x4a636b);if(_0x1d12d3&&_0x1d12d3['view']){const _0x208ded=_0x1d12d3['view'],_0x5c76ab=(_0x208ded['name']??_0x208ded)['match'](/^h(\d+)/);if(_0x5c76ab)return _0x5c76ab[0x1];}return null;}}class it extends _0x54e516{['afterInit'](){const _0x4b9431=this['editor'];if(!_0x4b9431['plugins']['has']('HighlightEditing'))return;const _0x5379cd=_0x4b9431['plugins']['get']('TrackChangesEditing'),_0x553f8c=_0x4b9431['locale'];_0x5379cd['enableDefaultAttributesIntegration']('highlight'),_0x5379cd['registerInlineAttribute']('highlight'),_0x5379cd['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x553f8c,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2ccf72=this['editor'],_0x19b130=_0x2ccf72['locale'];_0x2ccf72['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4741f5=>{if('formatInline'!=_0x4741f5['type'])return;const {data:_0x29abfd}=_0x4741f5;if(_0x29abfd&&'highlight'==_0x29abfd['commandName']){const _0x36bdd0=_0x19b130['t'],_0x109dcd=_0x29abfd['commandParams'][0x0]['value'];if(_0x109dcd){const _0x5a206a=_0x2ccf72['config']['get']('highlight.options')['find'](_0x34c732=>_0x34c732['model']==_0x109dcd),_0x3198f0=_0x36bdd0(_0x5a206a['title'])['toLowerCase']();return{'type':'format','content':c(_0x19b130,'*Set\x20highlight:*\x20%0',_0x3198f0),'color':{'value':_0x5a206a['color'],'title':_0x5a206a['title']}};}return{'type':'format','content':c(_0x19b130,'*Remove\x20highlight*',c(_0x19b130,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x54e516{['afterInit'](){const _0x1346f5=this['editor'];if(!_0x1346f5['plugins']['has']('HorizontalLineEditing'))return;_0x1346f5['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x5ec215=_0x1346f5['plugins']['get']('TrackChangesEditing'),_0x473541=_0x1346f5['locale'];_0x5ec215['descriptionFactory']['registerElementLabel']('horizontalLine',_0x932b7f=>c(_0x473541,'ELEMENT_HORIZONTAL_LINE',_0x932b7f)),_0x1346f5['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x4dd9db,{writer:_0x1eb596,options:_0x4fcc0b})=>{if(!_0x4fcc0b['showSuggestionHighlights'])return null;const _0x4cc111=_0x1eb596['createContainerElement']('div'),_0x3a4b40=_0x1eb596['createEmptyElement']('hr');return _0x1eb596['addClass']('ck-horizontal-line',_0x4cc111),_0x1eb596['insert'](_0x1eb596['createPositionAt'](_0x4cc111,0x0),_0x3a4b40),_0x4cc111;},'converterPriority':'high'});}}class ot extends _0x54e516{['afterInit'](){const _0x445d07=this['editor'];if(!_0x445d07['plugins']['has']('HtmlEmbed'))return;const _0x479464=_0x445d07['plugins']['get']('TrackChangesEditing'),_0x589d62=_0x445d07['locale'];_0x479464['descriptionFactory']['registerElementLabel']('rawHtml',_0x4124a5=>c(_0x589d62,'ELEMENT_HTML_EMBED',_0x4124a5)),_0x479464['enableDefaultAttributesIntegration']('htmlEmbed'),_0x479464['registerBlockAttribute']('value'),_0x479464['descriptionFactory']['registerDescriptionCallback'](_0x4a361d=>{if('attribute'!=_0x4a361d['type'])return;const {data:_0x2ee5a5}=_0x4a361d;if(_0x2ee5a5&&'value'==_0x2ee5a5['key']&&_0x4a361d['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0xa547b6=c(_0x589d62,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x589d62,'*Change\x20%0\x20content*',_0xa547b6)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x56e3ba=this['editor'],_0x37a2bf=_0x56e3ba['locale'];_0x56e3ba['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x54b2b9=>{if('formatBlock'!=_0x54b2b9['type'])return;const {data:_0x568d2f}=_0x54b2b9;if(_0x568d2f&&'htmlEmbed'==_0x568d2f['commandName']){const _0x5c2b97=c(_0x37a2bf,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x37a2bf,'*Change\x20%0\x20content*',_0x5c2b97)};}});}}class rt extends _0x54e516{['afterInit'](){const _0x50b853=this['editor'];if(!_0x50b853['plugins']['has']('ImageEditing'))return;const _0x1b4885=_0x50b853['plugins']['get']('TrackChangesEditing'),_0x2c0f96=_0x50b853['plugins']['get']('ImageUtils'),_0xec6e6f=_0x50b853['locale'];_0x1b4885['enableCommand']('insertImage'),_0x1b4885['descriptionFactory']['registerElementLabel']('imageBlock',_0xe117a3=>c(_0xec6e6f,'ELEMENT_IMAGE',_0xe117a3)),_0x1b4885['descriptionFactory']['registerElementLabel']('imageInline',_0x3b99f7=>c(_0xec6e6f,'ELEMENT_INLINE_IMAGE',_0x3b99f7)),_0x1b4885['descriptionFactory']['registerElementLabel']('caption',()=>c(_0xec6e6f,'ELEMENT_CAPTION')),_0x50b853['plugins']['has']('ImageUploadEditing')&&_0x1b4885['enableCommand']('uploadImage'),_0x50b853['plugins']['has']('ImageBlockEditing')&&_0x50b853['plugins']['has']('ImageInlineEditing')&&(_0x1b4885['enableCommand']('imageTypeInline',(_0x2a1f49,_0x209f78)=>{const _0x53b23c=_0x2c0f96['getClosestSelectedImageElement'](_0x50b853['model']['document']['selection']);_0x50b853['model']['change'](()=>{_0x1b4885['markBlockFormat'](_0x53b23c,{'commandName':'imageTypeInline','commandParams':[_0x209f78]},[],'convertBlockImageToInline');});}),_0x1b4885['enableCommand']('imageTypeBlock',(_0xbe2552,_0x5b4523)=>{_0x50b853['model']['change'](_0x58b183=>{let _0x2d4b85=_0x2c0f96['getClosestSelectedImageElement'](_0x50b853['model']['document']['selection']),_0x6d213=_0x58b183['createRangeOn'](_0x2d4b85);const _0x37fab1=_0x5f2a4a['fromPosition'](_0x6d213['start'],'toPrevious'),_0x5943fe=_0x5f2a4a['fromPosition'](_0x6d213['end'],'toNext');_0x1b4885['forceDefaultExecution'](()=>_0xbe2552(_0x5b4523)),_0x2d4b85=_0x2c0f96['getClosestSelectedImageElement'](_0x50b853['model']['document']['selection']),_0x6d213=_0x58b183['createRangeOn'](_0x2d4b85);const _0x4cc52d=_0x58b183['createRange'](_0x37fab1,_0x5943fe);_0x37fab1['detach'](),_0x5943fe['detach'](),_0x1b4885['markBlockFormat'](_0x2d4b85,{'commandName':'imageTypeInline','commandParams':[_0x5b4523]},[],'convertInlineImageToBlock'),_0x4cc52d['start']['isBefore'](_0x6d213['start'])&&_0x1b4885['markInsertion'](_0x58b183['createRange'](_0x4cc52d['start'],_0x6d213['start']),'convertInlineImageToBlock'),_0x6d213['end']['isBefore'](_0x4cc52d['end'])&&_0x1b4885['markInsertion'](_0x58b183['createRange'](_0x6d213['end'],_0x4cc52d['end']),'convertInlineImageToBlock');});}),_0x1b4885['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x1b4885['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x1b4885['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x1b4885['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x1b4885['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x1b4885['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x5dd896])=>{const _0x38d622=_0x1b4885['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x59294d=_0x5dd896['start'],_0x1077a2=_0x5dd896['end'];const _0x51e011=_0x50b853['model']['schema']['getNearestSelectionRange'](_0x59294d,'backward'),_0x43888b=_0x50b853['model']['schema']['getNearestSelectionRange'](_0x1077a2,'forward');_0x51e011['isCollapsed']&&(_0x59294d=_0x51e011['start']),_0x43888b['isCollapsed']&&(_0x1077a2=_0x43888b['end']),_0x38d622([_0x50b853['model']['createRange'](_0x59294d,_0x1077a2)]);}),_0x1b4885['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x1784b8),_0x1b4885['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x1784b8)),_0x50b853['plugins']['has']('ImageCaptionEditing')&&(_0x1b4885['enableCommand']('toggleImageCaption',(_0xd66e9d,_0x478354)=>{const _0x1bd7dc=_0x50b853['plugins']['get']('ImageCaptionUtils');let _0x4e292d=_0x2c0f96['getClosestSelectedImageElement'](_0x50b853['model']['document']['selection']),_0x52ded6=_0x1bd7dc['getCaptionFromImageModelElement'](_0x4e292d);_0x50b853['model']['change'](()=>{if(_0x52ded6)return void _0x1b4885['markDeletion'](_0x50b853['model']['createRangeOn'](_0x52ded6));const _0x47b6f6=_0x2c0f96['isBlockImage'](_0x4e292d);_0xd66e9d(_0x478354),_0x4e292d=_0x2c0f96['getClosestSelectedImageElement'](_0x50b853['model']['document']['selection']),_0x52ded6=_0x1bd7dc['getCaptionFromImageModelElement'](_0x4e292d),_0x1b4885['markInsertion'](_0x50b853['model']['createRangeOn'](_0x52ded6),_0x47b6f6?null:'imageCaption');});}),_0x1b4885['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x1784b8));const _0xe0b9a5=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x435095(_0x58b1ee,_0x5346d2){const _0x57381a=_0xe0b9a5['findIndex'](({type:_0x45fe3c,subType:_0x3accb2})=>_0x58b1ee['type']==_0x45fe3c&&_0x58b1ee['subType']==_0x3accb2),_0x74494f=_0xe0b9a5['findIndex'](({type:_0x4a58f2,subType:_0x10f4a3})=>_0x5346d2['type']==_0x4a58f2&&_0x5346d2['subType']==_0x10f4a3);if(_0x57381a<0x0||_0x74494f<0x0)return!0x1;const _0x383ff5=_0x58b1ee['getFirstRange'](),_0x1eced9=_0x5346d2['getFirstRange']();if((0x0==_0x57381a||0x1==_0x57381a)&&0x2==_0x74494f&&_0x383ff5['isIntersecting'](_0x1eced9))return!0x0;if(0x2==_0x57381a&&0x3==_0x74494f){const _0x47f0c9=_0x1b4885['_findSuggestions'](_0x383ff5,'insertion')['filter'](({suggestion:_0x398807,meta:_0x2a2802})=>_0x2a2802['isOwn']&&'convertInlineImageToBlock'==_0x398807['subType']);if(_0x47f0c9['length']>0x1&&_0x1eced9['end']['isEqual'](_0x383ff5['start']))return!0x0;if(0x1==_0x47f0c9['length']&&(_0x383ff5['start']['isEqual'](_0x1eced9['end'])||_0x383ff5['end']['isEqual'](_0x1eced9['start'])))return!0x0;}if(0x3==_0x57381a&&0x3==_0x74494f&&_0x383ff5['start']['isBefore'](_0x1eced9['start'])){const _0x2140c5=_0x383ff5['end']['nodeAfter'],_0x3c6c63=_0x1eced9['start']['nodeBefore'];return _0x2c0f96['isBlockImage'](_0x2140c5)&&_0x2140c5===_0x3c6c63;}return!0x1;}function _0x1784b8(_0x3d7d27,_0x14078d){return _0x435095(_0x3d7d27,_0x14078d)?[_0x3d7d27,_0x14078d]:_0x435095(_0x14078d,_0x3d7d27)?[_0x14078d,_0x3d7d27]:null;}_0x50b853['plugins']['has']('ImageResize')&&(_0x1b4885['enableDefaultAttributesIntegration']('resizeImage'),_0x1b4885['registerBlockAttribute']('resizedWidth'),_0x1b4885['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0xec6e6f,'FORMAT_IMAGE_SIZE'))),_0x50b853['plugins']['has']('ImageTextAlternativeEditing')&&(_0x1b4885['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x1b4885['registerBlockAttribute']('alt')),_0x50b853['plugins']['has']('PictureEditing')&&(_0x1b4885['registerBlockAttribute']('sources'),_0x1b4885['descriptionFactory']['registerDescriptionCallback'](_0x1cc340=>{if('attribute'!=_0x1cc340['type'])return;const {data:_0x5cbd6e}=_0x1cc340;return _0x5cbd6e&&'sources'==_0x5cbd6e['key']?{'type':'format','content':''}:void 0x0;})),_0x50b853['plugins']['has']('ImageSizeAttributes')&&(_0x1b4885['registerBlockAttribute']('width'),_0x1b4885['registerBlockAttribute']('height'),_0x1b4885['descriptionFactory']['registerDescriptionCallback'](_0x35203a=>{if('attribute'!=_0x35203a['type'])return;const {data:_0x91d6c6}=_0x35203a;return!_0x91d6c6||'width'!=_0x91d6c6['key']&&'height'!=_0x91d6c6['key']?void 0x0:{'type':'format','content':''};})),_0x1b4885['descriptionFactory']['registerDescriptionCallback'](_0x53a08c=>{if(!!_0xe0b9a5['find'](({type:_0x5973fa,subType:_0x56c994})=>_0x53a08c['type']==_0x5973fa&&_0x53a08c['subType']==_0x56c994))return _0x53a08c['previous']?{}:void 0x0;}),_0x1b4885['descriptionFactory']['registerDescriptionCallback'](_0x731ce1=>{if('insertion'==_0x731ce1['type']||'deletion'==_0x731ce1['type']){const _0x3d7fc0=_0x731ce1['getContainedElement']();if(_0x3d7fc0&&_0x3d7fc0['is']('element','caption'))return{'type':'insertion'==_0x731ce1['type']?'addObject':'removeObject','element':_0x3d7fc0,'quantity':0x1};}}),_0x1b4885['descriptionFactory']['registerDescriptionCallback'](_0x1ac9d4=>'formatBlock'==_0x1ac9d4['type']&&'convertInlineImageToBlock'==_0x1ac9d4['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x1ac9d4['type']&&'convertBlockImageToInline'==_0x1ac9d4['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x1b4885['descriptionFactory']['registerDescriptionCallback'](_0x5d8f14=>{if('attribute'!=_0x5d8f14['type'])return;const {data:_0x552a8c}=_0x5d8f14;if(!_0x552a8c||'alt'!=_0x552a8c['key'])return;const _0x4348f0=_0x552a8c['newValue'];return _0x4348f0?{'type':'format','content':c(_0xec6e6f,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4348f0+'\x22')}:{'type':'format','content':c(_0xec6e6f,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5deea2=this['editor'],_0x46b111=_0x5deea2['locale'];_0x5deea2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e4698=>{if('formatBlock'!=_0x5e4698['type']&&'formatInline'!=_0x5e4698['type'])return;const {data:_0x4b8706}=_0x5e4698;if(_0x4b8706){if('imageTextAlternative'==_0x4b8706['commandName']){const _0x1366c2=_0x4b8706['commandParams'][0x0]['newValue'];return _0x1366c2?{'type':'format','content':c(_0x46b111,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1366c2+'\x22')}:{'type':'format','content':c(_0x46b111,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x4b8706['commandName']){const _0x26e7c3=_0x4b8706['commandParams'][0x0]['width'];return _0x26e7c3?{'type':'format','content':c(_0x46b111,'*Set\x20image\x20width:*\x20%0',_0x26e7c3)}:{'type':'format','content':c(_0x46b111,'*Reset\x20image\x20width*')};}}});}}class at extends _0x54e516{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x7da5d5=this['editor']['locale'],_0x1545ac=this['editor']['plugins']['get']('TrackChangesEditing');_0x1545ac['enableDefaultAttributesIntegration']('replaceImageSource'),_0x1545ac['registerBlockAttribute']('src'),_0x1545ac['descriptionFactory']['registerDescriptionCallback'](_0xa11b84=>{if('attribute'!=_0xa11b84['type'])return;const {data:_0xe0ca60}=_0xa11b84;return _0xe0ca60&&'src'==_0xe0ca60['key']?_0xe0ca60['newValue']&&_0xe0ca60['oldValue']?{'type':'format','content':c(_0x7da5d5,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1d7f65=this['editor']['plugins']['get']('TrackChangesEditing');_0x1d7f65['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x1d7f65['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1d7f65['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x1d7f65['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x36f852=this['editor'],_0x175362=_0x36f852['locale'];_0x36f852['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x124387=>{if('formatBlock'!=_0x124387['type']&&'formatInline'!=_0x124387['type'])return;const {data:_0x3b2603}=_0x124387;if(!_0x3b2603||'replaceImageSource'!=_0x3b2603['commandName'])return;return{'type':'format','content':c(_0x175362,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x54e516{['afterInit'](){const _0x581a89=this['editor'];if(!_0x581a89['plugins']['has']('ImageStyleEditing'))return;const _0x3fdd93=_0x581a89['plugins']['get']('TrackChangesEditing'),_0x45b710=_0x581a89['plugins']['get']('ImageUtils'),_0x4384f3={};_0x3fdd93['enableCommand']('imageStyle',(_0x4df839,_0x1aa050)=>{const _0x36b5b6=_0x581a89['plugins']['get']('Users')['me'],_0x2a5bc4=_0x581a89['commands']['get']('imageStyle');let _0x11937d=_0x45b710['getClosestSelectedImageElement'](_0x581a89['model']['document']['selection']),_0x20386b=_0x581a89['model']['createRangeOn'](_0x11937d),_0x4133a3=_0x2a5bc4['value'];if(_0x4133a3==_0x1aa050['value'])return;const _0x236af4={'commandName':'imageStyle','commandParams':[_0x1aa050],'formatGroupId':_0x5310dd()};_0x581a89['model']['change'](()=>{if(_0x3fdd93['getSuggestions']()['filter'](_0x29a050=>_0x29a050['isInContent']&&_0x36b5b6==_0x29a050['author']&&('formatBlock'==_0x29a050['type']||'formatInline'==_0x29a050['type'])&&('imageStylePreApply'==_0x29a050['subType']||'imageStylePostApply'==_0x29a050['subType'])&&_0x29a050['getFirstRange']()['isEqual'](_0x20386b))['forEach'](_0x4044ac=>_0x3fdd93['discardSuggestion'](_0x4044ac['head'])),_0x11937d=_0x45b710['getClosestSelectedImageElement'](_0x581a89['model']['document']['selection']),_0x20386b=_0x581a89['model']['createRangeOn'](_0x11937d),_0x2a5bc4['refresh'](),_0x581a89['commands']['get']('imageTypeInline')['refresh'](),_0x581a89['commands']['get']('imageTypeBlock')['refresh'](),_0x4133a3=_0x2a5bc4['value'],_0x4133a3!=_0x1aa050['value'])return _0x45b710['isInlineImage'](_0x11937d)&&_0x2a5bc4['shouldConvertImageType'](_0x1aa050['value'],_0x11937d)?(_0x4df839({..._0x1aa050,'setImageSizes':!0x1}),_0x11937d=_0x45b710['getClosestSelectedImageElement'](_0x581a89['model']['document']['selection']),void _0x3fdd93['markBlockFormat'](_0x11937d,{..._0x236af4,'commandReversedParams':[{'value':_0x4133a3||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x45b710['isBlockImage'](_0x11937d)?_0x3fdd93['markBlockFormat'](_0x11937d,_0x236af4,[],'imageStylePostApply'):_0x3fdd93['markInlineFormat'](_0x20386b,_0x236af4,'imageStylePostApply'));});});for(const _0x248ca7 of _0x581a89['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x4384f3[_0x248ca7['name']]=_0x248ca7['title']['toLowerCase']();_0x3fdd93['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x3fdd93['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x3fdd93['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x3fdd93['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x3ad40f])=>{_0x45b710['setImageNaturalSizeAttributes'](_0x3ad40f['getContainedElement']());}),_0x3fdd93['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x5d851f,_0x4e1a66)=>{_0x3fdd93['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x5d851f,{'commandName':_0x4e1a66['commandName'],'commandParams':_0x4e1a66['commandReversedParams']});}),_0x3fdd93['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x5654d2,_0x8fc1c0){if(_0x5e9737(_0x5654d2,_0x8fc1c0))return[_0x5654d2,_0x8fc1c0];if(_0x5e9737(_0x8fc1c0,_0x5654d2))return[_0x8fc1c0,_0x5654d2];return null;});const _0x4a5d32=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5e9737(_0x1a7b97,_0x59d1ed){const _0x1f6689=_0x4a5d32['findIndex'](({type:_0x14e55a,subType:_0x345029})=>_0x1a7b97['type']==_0x14e55a&&_0x1a7b97['subType']==_0x345029),_0x581375=_0x4a5d32['findIndex'](({type:_0x1806ff,subType:_0x3ebfd0})=>_0x59d1ed['type']==_0x1806ff&&_0x59d1ed['subType']==_0x3ebfd0);if(_0x1f6689<0x0||_0x581375<0x0)return!0x1;const _0x4d9001=_0x1a7b97['getFirstRange'](),_0x4dd7bf=_0x59d1ed['getFirstRange']();if((0x0==_0x1f6689||0x1==_0x1f6689)&&0x2==_0x581375&&_0x4d9001['isIntersecting'](_0x4dd7bf))return!0x0;if(0x2==_0x1f6689&&0x3==_0x581375){const _0xca8079=_0x3fdd93['_findSuggestions'](_0x4d9001,'insertion')['filter'](({suggestion:_0x4842d2,meta:_0x3da657})=>_0x3da657['isOwn']&&'convertInlineImageToBlock'==_0x4842d2['subType']);if(_0xca8079['length']>0x1&&_0x4dd7bf['end']['isEqual'](_0x4d9001['start']))return!0x0;if(0x1==_0xca8079['length']&&(_0x4d9001['start']['isEqual'](_0x4dd7bf['end'])||_0x4d9001['end']['isEqual'](_0x4dd7bf['start'])))return!0x0;}if(0x3==_0x1f6689&&0x3==_0x581375&&_0x4d9001['start']['isBefore'](_0x4dd7bf['start'])){const _0x58e256=_0x4d9001['end']['nodeAfter'],_0x568668=_0x4dd7bf['start']['nodeBefore'];return _0x45b710['isBlockImage'](_0x58e256)&&_0x58e256===_0x568668;}return!0x1;}_0x581a89['model']['document']['registerPostFixer'](()=>{let _0x370213=!0x1;const _0x4a3b35=Array['from'](_0x581a89['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x43703d,data:_0x3f10a7}of _0x4a3b35){const {group:_0x5e508e,type:_0x5ede1e,subType:_0x29ed4a,id:_0x27af7f}=_0x3fdd93['_splitMarkerName'](_0x43703d);if('suggestion'==_0x5e508e&&_0x3fdd93['hasSuggestion'](_0x27af7f)){if('formatBlock'==_0x5ede1e&&('imageStylePreApply'==_0x29ed4a||'imageStylePostApply'==_0x29ed4a)){const _0x20a519=_0x3fdd93['getSuggestion'](_0x27af7f);if(_0x3f10a7['newRange']){const _0x1341e2=_0x20a519['getFirstRange']()['getContainedElement']();if(_0x45b710['isBlockImage'](_0x1341e2))continue;_0x3fdd93['discardSuggestion'](_0x20a519),_0x370213=!0x0;}}if('insertion'==_0x5ede1e&&'imageCaption'==_0x29ed4a&&!_0x3f10a7['newRange']){const _0x22ce69=_0x3fdd93['getSuggestion'](_0x27af7f);_0x22ce69['next']&&_0x22ce69['next']['isInContent']&&(_0x3fdd93['discardSuggestion'](_0x22ce69['next']),_0x370213=!0x0);}}}return _0x370213;}),this['_registerLegacyDescription'](_0x4384f3);}['_registerLegacyDescription'](_0x5933a3){const _0x4d8cdf=this['editor'],_0xaa817a=_0x4d8cdf['locale'];_0x4d8cdf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47f28a=>{if('formatBlock'!=_0x47f28a['type']&&'formatInline'!=_0x47f28a['type'])return;const {data:_0xd01ca6}=_0x47f28a;if(!_0xd01ca6||'imageStyle'!=_0xd01ca6['commandName'])return;const _0xf8c97c=_0xd01ca6['commandParams'][0x0]['value'];return _0x412262('side'===_0xf8c97c?c(_0xaa817a,'FORMAT_SIDE_IMAGE'):_0x5933a3[_0xf8c97c]||_0xf8c97c);function _0x412262(_0x2b4151){return{'type':'format','content':c(_0xaa817a,'*Format:*\x20%0',_0x2b4151)};}});}}class ut extends _0x54e516{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x3b45a5){super(_0x3b45a5),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x1d9c0a=this['editor'],_0x3deca9=_0x1d9c0a['commands']['get']('importWord'),_0x411a12=_0x1d9c0a['commands']['get']('trackChanges');_0x3deca9&&(_0x3deca9['on']('execute',(_0x2c0852,[,_0x19a8a5])=>{this['_trackChangesValueDuringImport']=_0x411a12['value'],_0x19a8a5['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x3deca9,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x3deca9,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x411a12['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x1d9c0a['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x3ffd72,_0x375a00){const {suggestions:_0x11da7d}=_0x375a00,_0x3033d5=this['editor']['commands']['get']('trackChanges'),_0x4cc731=_0x3033d5['value'];this['_trackChangesValueDuringImport']!==_0x4cc731&&(_0x3033d5['execute'](),this['_trackChangesExecuted']=!0x0),_0x11da7d&&_0x11da7d['forEach'](({id:_0x3337de,type:_0x394838,author:_0x2bbe62,created_at:_0x56f334})=>{const _0x4030ac={'id':_0x3337de,'type':_0x394838,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x2bbe62,'createdAt':_0x56f334?new Date(_0x56f334):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x4030ac);});}}class ft extends _0x54e516{['afterInit'](){const _0x1ac5c5=this['editor'],_0x4b4b63=_0x1ac5c5['plugins']['get']('TrackChangesEditing');if(_0x1ac5c5['plugins']['has']('IndentEditing')&&(_0x4b4b63['enableCommand']('indent'),_0x4b4b63['enableCommand']('outdent')),_0x1ac5c5['plugins']['has']('IndentBlock')){for(const _0x1a6c77 of['indentBlock','outdentBlock'])_0x4b4b63['enableDefaultAttributesIntegration'](_0x1a6c77);}const _0x513c16=_0x1ac5c5['locale'];_0x4b4b63['registerBlockAttribute']('blockIndent'),_0x4b4b63['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x513c16,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x500f3f=this['editor'],_0x5cbb10=_0x500f3f['locale'],_0x11fc01=_0x500f3f['plugins']['get']('TrackChangesEditing');_0x11fc01['descriptionFactory']['registerDescriptionCallback'](_0x1c5939=>{if('formatBlock'!=_0x1c5939['type'])return;const {data:_0x2cfd5b}=_0x1c5939;if(!_0x2cfd5b)return;if('indentBlock'!=_0x2cfd5b['commandName']&&'outdentBlock'!=_0x2cfd5b['commandName'])return;const _0xed8370=_0x1c5939['getItems']()[0x0],_0x2403c0=_0x11fc01['descriptionFactory']['getItemLabel'](_0xed8370);return'indentBlock'==_0x2cfd5b['commandName']?{'type':'format','content':c(_0x5cbb10,'*Indent:*\x20%0',_0x2403c0)}:'outdentBlock'==_0x2cfd5b['commandName']?{'type':'format','content':c(_0x5cbb10,'*Outdent:*\x20%0',_0x2403c0)}:void 0x0;});}}class ht extends _0x54e516{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x54e516{['afterInit'](){const _0x10e3cd=this['editor'];if(!_0x10e3cd['plugins']['has']('LinkEditing'))return;const _0x353522=_0x10e3cd['plugins']['get']('TrackChangesEditing'),_0x26b3d2=_0x10e3cd['commands']['get']('link');_0x353522['enableDefaultAttributesIntegration']('link'),_0x353522['enableDefaultAttributesIntegration']('unlink'),_0x353522['registerInlineAttribute']('linkHref');for(const _0x3689e4 of _0x26b3d2['manualDecorators'])_0x353522['registerInlineAttribute'](_0x3689e4['id']),_0x353522['descriptionFactory']['registerAttributeLabel'](_0x3689e4['id'],'link\x20('+_0x3689e4['label']['toLowerCase']()+')');_0x353522['descriptionFactory']['registerDescriptionCallback'](_0x1749fe=>{if('attribute'!=_0x1749fe['type'])return;const {data:_0x356445}=_0x1749fe;if(!_0x356445||'linkHref'!=_0x356445['key'])return;const _0x7d1b44=_0x356445['newValue'],_0x1dff5a=_0x10e3cd['locale'];return{'type':'format','content':null==_0x7d1b44?c(_0x1dff5a,'*Remove\x20link*'):c(_0x1dff5a,'*Set\x20link:*\x20%0','\x22'+_0x7d1b44+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1cf27c=this['editor'],_0x5473f2=_0x1cf27c['locale'];_0x1cf27c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3dbc20=>{if('formatInline'!=_0x3dbc20['type'])return;const {data:_0x3bc987}=_0x3dbc20;if(_0x3bc987){if('link'==_0x3bc987['commandName']){const _0x1f7ef6=_0x3bc987['commandParams'][0x0];return{'type':'format','content':c(_0x5473f2,'*Set\x20link:*\x20%0','\x22'+_0x1f7ef6+'\x22')};}return'unlink'==_0x3bc987['commandName']?{'type':'format','content':c(_0x5473f2,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x54e516{['afterInit'](){const _0x2f4ece=this['editor'],_0x25c4ba=_0x2f4ece['locale'];if(!_0x2f4ece['plugins']['has']('LegacyListEditing'))return;const _0x45ad6c=_0x2f4ece['plugins']['get']('TrackChangesEditing'),_0xe3bd95=_0x2f4ece['plugins']['has']('LegacyTodoListEditing');function _0x2a4df8(_0x37b33c){return()=>{const _0x584051=_0x2f4ece['model']['document']['selection'],_0x745e04=_0x2f4ece['commands']['get'](_0x37b33c);if(_0x745e04['value'])return void _0x2f4ece['execute']('paragraph',{});const _0x293f19=_0x37b33c['slice'](0x0,-0x4),_0x555129=function(_0x105e07,_0x2ec108,_0x4daf81){let _0x2ed37f=Array['from'](_0x105e07)['filter'](_0x192a7a=>function(_0x4f5023,_0x49fd04){return _0x49fd04['checkChild'](_0x4f5023['parent'],'listItem')&&!_0x49fd04['isObject'](_0x4f5023);}(_0x192a7a,_0x4daf81));_0x2ed37f=_0x2ed37f['filter'](_0x2f4f3b=>!_0x2f4f3b['is']('element','listItem')||_0x2f4f3b['getAttribute']('listType')!=_0x2ec108);const _0x5e9fea=new Set();for(const _0x3928d2 of _0x2ed37f)_0x3928d2['is']('element','listItem')?_0x5e9fea['add'](Le(_0x3928d2)):_0x5e9fea['add'](_0x3928d2);return Array['from'](_0x5e9fea);}(_0x584051['getSelectedBlocks'](),_0x293f19,_0x2f4ece['model']['schema']);_0x2f4ece['model']['change'](()=>{for(const _0x1b859b of _0x555129)_0x45ad6c['markBlockFormat'](_0x1b859b,{'commandName':_0x37b33c,'commandParams':[{'forceValue':!_0x745e04['value']}],'formatGroupId':'blockName'},Ee(_0x1b859b));});};}function _0x241079(_0xfe8c57){return()=>{const _0x2a929b=function(_0x291ac9){let _0x3324b8=Array['from'](_0x291ac9);const _0x4a106d=_0x3324b8['findIndex'](_0x2fff79=>'listItem'!=_0x2fff79['name']);return _0x4a106d>-0x1&&(_0x3324b8=_0x3324b8['slice'](0x0,_0x4a106d)),_0x3324b8;}(_0x2f4ece['model']['document']['selection']['getSelectedBlocks']()),_0x1d3e55=_0x2f4ece['model']['createRange'](_0x2f4ece['model']['createPositionAt'](_0x2a929b[0x0],'before'),_0x2f4ece['model']['createPositionAt'](_0x2a929b[_0x2a929b['length']-0x1],'end'));_0x2f4ece['model']['change'](()=>{_0x45ad6c['markBlockFormat'](_0x1d3e55,{'commandName':_0xfe8c57,'commandParams':[],'formatGroupId':'listIndent'},function(_0x338abd){const _0x5bfe51=new Set();for(const _0x2f67c4 of _0x338abd){let _0x52975e=_0x2f67c4['nextSibling'];for(;_0x52975e&&_0x52975e['getAttribute']('listIndent')>_0x2f67c4['getAttribute']('listIndent');)_0x5bfe51['add'](_0x52975e),_0x52975e=_0x52975e['nextSibling'];}return Array['from'](_0x5bfe51);}(_0x2a929b));});};}_0x45ad6c['enableCommand']('numberedList',_0x2a4df8('numberedList')),_0x45ad6c['enableCommand']('bulletedList',_0x2a4df8('bulletedList')),_0xe3bd95&&_0x45ad6c['enableCommand']('todoList',_0x2a4df8('todoList')),_0x45ad6c['enableCommand']('indentList',_0x241079('indentList')),_0x45ad6c['enableCommand']('outdentList',_0x241079('outdentList')),_0xe3bd95&&_0x45ad6c['enableCommand']('checkTodoList',()=>{const _0x19e0f1=_0x2f4ece['commands']['get']('checkTodoList'),_0x545458=Array['from'](_0x19e0f1['_selectedElements']);_0x545458['filter'](_0x3c82fc=>_0x3c82fc['getAttribute']('todoListChecked')!=_0x19e0f1['value']),_0x2f4ece['model']['change'](()=>{for(const _0x3d377f of _0x545458)_0x45ad6c['markBlockFormat'](_0x3d377f,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x19e0f1['value']}]});});}),_0x45ad6c['descriptionFactory']['registerElementLabel']('listItem',_0x355fdc=>c(_0x25c4ba,'ELEMENT_LIST_ITEM',_0x355fdc)),_0x45ad6c['descriptionFactory']['registerDescriptionCallback'](_0x442e5f=>{if('formatBlock'!=_0x442e5f['type']&&'formatInline'!=_0x442e5f['type'])return;const {data:_0x4b3ca8}=_0x442e5f;if(_0x4b3ca8){if('numberedList'==_0x4b3ca8['commandName']||'bulletedList'==_0x4b3ca8['commandName']||'todoList'==_0x4b3ca8['commandName'])switch(_0x4b3ca8['commandName']['replace']('List','')){case'bulleted':return _0x136aab(c(_0x25c4ba,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x136aab(c(_0x25c4ba,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x136aab(c(_0x25c4ba,'ELEMENT_TODO_LIST'));}if('indentList'==_0x4b3ca8['commandName'])return{'type':'format','content':c(_0x25c4ba,'*Indent:*\x20%0',c(_0x25c4ba,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x4b3ca8['commandName'])return{'type':'format','content':c(_0x25c4ba,'*Outdent:*\x20%0',c(_0x25c4ba,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x4b3ca8['commandName'])return _0x4b3ca8['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x25c4ba,'*Check\x20item*')}:{'type':'format','content':c(_0x25c4ba,'*Uncheck\x20item*')};}function _0x136aab(_0x3549e3){return{'type':'format','content':c(_0x25c4ba,'*Change\x20to:*\x20%0',_0x3549e3)};}});}}function Le(_0x185305){const _0x3f4edd=_0x185305['getAttribute']('listIndent');if(0x0==_0x3f4edd)return _0x185305;let _0x2aeed7=_0x185305;for(;_0x185305['previousSibling']&&_0x185305['previousSibling']['is']('element','listItem');){const _0x10a1a4=_0x185305['previousSibling']['getAttribute']('listIndent');if(_0x10a1a4==_0x3f4edd)_0x2aeed7=_0x185305['previousSibling'];else{if(_0x10a1a4<_0x3f4edd)break;}_0x185305=_0x185305['previousSibling'];}return _0x2aeed7;}function Ee(_0x3050d4){const _0x2327da=[];if(_0x3050d4['is']('element','listItem')&&_0x3050d4['getAttribute']('listIndent')>0x0){let _0x5f2bfe=_0x3050d4['nextSibling'];for(;_0x5f2bfe&&'listItem'==_0x5f2bfe['name']&&_0x5f2bfe['getAttribute']('listIndent')==_0x3050d4['getAttribute']('listIndent');)_0x2327da['push'](_0x5f2bfe),_0x5f2bfe=_0x5f2bfe['nextSibling'];}return _0x2327da;}class Q extends _0x54e516{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x5e09b2=this['editor']['config']['get']('list.properties'),_0x4eb49f=this['editor']['plugins']['get']('TrackChangesEditing');_0x5e09b2['styles']&&_0x4eb49f['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x5e09b2['reversed']&&_0x4eb49f['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x5e09b2['startIndex']&&_0x4eb49f['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x4eb49f['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x175a06,_0x56e36c={}){const _0x40f9c1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x502e25=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x40f9c1['markMultiRangeBlockFormat'](_0x502e25,{'commandName':'listStyle','commandParams':[{'type':_0x56e36c['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x39dc12,_0x5c70f5={}){const _0x405832=this['editor']['plugins']['get']('TrackChangesEditing'),_0x27daa3=this['_getSuggestionBlocks'](_0x28e00e=>_0x28e00e['is']('element','listItem')&&'numbered'===_0x28e00e['getAttribute']('listType'));if(_0x27daa3['length']<0x1)return;const _0x448063=_0x27daa3['map'](_0x3be051=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3be051,'before'),this['editor']['model']['createPositionAt'](_0x3be051,0x0)));this['editor']['model']['change'](()=>{_0x405832['markMultiRangeBlockFormat'](_0x448063,{'commandName':'listReversed','commandParams':[{'reversed':_0x5c70f5['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x33151f,_0x154e90={}){const _0x3ee840=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4eec60=this['_getSuggestionBlocks'](_0x42c0c0=>_0x42c0c0['is']('element','listItem')&&'numbered'===_0x42c0c0['getAttribute']('listType'));if(_0x4eec60['length']<0x1)return;const _0x414ccc=_0x4eec60['map'](_0x395f93=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x395f93,'before'),this['editor']['model']['createPositionAt'](_0x395f93,0x0)));this['editor']['model']['change'](()=>{_0x3ee840['markMultiRangeBlockFormat'](_0x414ccc,{'commandName':'listStart','commandParams':[{'startIndex':_0x154e90['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x6827cd){if('formatBlock'!=_0x6827cd['type']&&'formatInline'!=_0x6827cd['type'])return;const _0x4c7202=this['editor']['locale'],{data:_0x2e8d91}=_0x6827cd;if(!_0x2e8d91)return;let _0x364a95,_0x14f1ec;switch(_0x2e8d91['commandName']){case'listStyle':_0x364a95='*Change\x20to:*\x20%0',_0x14f1ec={'type':'format','content':c(_0x4c7202,_0x364a95,c(_0x4c7202,this['_getTranslationKeyForListStyle'](_0x2e8d91['commandParams'][0x0]['type'])))};break;case'listReversed':_0x364a95=_0x2e8d91['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x14f1ec={'type':'format','content':c(_0x4c7202,_0x364a95)};break;case'listStart':_0x364a95='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x14f1ec={'type':'format','content':c(_0x4c7202,_0x364a95,_0x2e8d91['commandParams'][0x0]['startIndex'])};}return _0x14f1ec;}['_getSuggestionBlocksForListStyle'](){const _0xa05aba=this['editor']['plugins']['get']('LegacyListUtils');let _0x392dc8=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x392dc8[0x0]?.['is']('element','listItem')&&_0x392dc8['unshift'](..._0xa05aba['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x392dc8[_0x392dc8['length']-0x1]?.['is']('element','listItem')&&_0x392dc8['push'](..._0xa05aba['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x392dc8=[...new Set(_0x392dc8)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x392dc8=_0x392dc8['filter'](_0x113a83=>_0x113a83['is']('element','listItem'))),_0x392dc8;}['_getSuggestionBlocks'](_0x383697){const _0xddde37=this['editor']['plugins']['get']('LegacyListUtils');let _0x3f40bd=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x383697)['map'](_0x49403b=>{const _0x464718=this['editor']['model']['createPositionAt'](_0x49403b,0x0);return[..._0xddde37['getSiblingNodes'](_0x464718,'backward'),..._0xddde37['getSiblingNodes'](_0x464718,'forward')];})['flat']();return _0x3f40bd=[...new Set(_0x3f40bd)],_0x3f40bd;}['_getTranslationKeyForListStyle'](_0x431ecc){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x431ecc)||'default')['toUpperCase']()+'_LIST_'+_0x431ecc['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x54e516{['afterInit'](){const _0x3432e5=this['editor'];if(!_0x3432e5['plugins']['has']('MediaEmbedEditing'))return;const _0x59621e=_0x3432e5['plugins']['get']('TrackChangesEditing'),_0x1d952e=_0x3432e5['locale'];_0x59621e['enableCommand']('mediaEmbed'),_0x59621e['descriptionFactory']['registerElementLabel']('media',_0x59205c=>c(_0x1d952e,'ELEMENT_MEDIA',_0x59205c)),_0x3432e5['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x1ec68b,{writer:_0x575d20,options:_0x5d05c8})=>{if(_0x5d05c8['showSuggestionHighlights'])return _0x575d20['createEmptyElement']('div');},'converterPriority':'high'}),_0x3432e5['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3647cd,_0x2ad2b7,_0x11ef59)=>{_0x11ef59['options']['showSuggestionHighlights']&&_0x3647cd['stop']();},{'priority':'high'});}}class pt extends _0x54e516{['afterInit'](){const _0x5302b9=this['editor'];_0x5302b9['plugins']['has']('MentionEditing')&&_0x5302b9['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x54e516{['afterInit'](){const _0x2acb6a=this['editor'];if(!_0x2acb6a['plugins']['has']('MergeFieldsEditing'))return;const _0x439ef0=_0x2acb6a['plugins']['get']('TrackChangesEditing'),_0x1b6497=_0x2acb6a['locale'];_0x439ef0['enableCommand']('insertMergeField'),_0x439ef0['enableCommand']('insertMergeFieldBlock'),_0x439ef0['enableCommand']('insertMergeFieldImage'),_0x439ef0['descriptionFactory']['registerElementLabel']('mergeField',_0x244b31=>c(_0x1b6497,'ELEMENT_MERGE_FIELD',_0x244b31)),_0x439ef0['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x2bbd38=>c(_0x1b6497,'ELEMENT_MERGE_FIELD',_0x2bbd38)),_0x439ef0['descriptionFactory']['registerDescriptionCallback'](_0x1e98fb=>{if('insertion'!=_0x1e98fb['type']&&'deletion'!=_0x1e98fb['type'])return;const _0x4ed6e8=_0x1e98fb['getContainedElement']();if(null==_0x4ed6e8)return;const _0xdff7ee=_0x2acb6a['plugins']['get']('MergeFieldsEditing');let _0x2320c7;switch(_0xdff7ee['getMergeFieldType'](_0x4ed6e8)){case null:return;case'image':{const _0x369fd0=_0xdff7ee['unwrapAffixes'](_0x4ed6e8['getAttribute']('src'));_0x2320c7=_0xdff7ee['getLabel'](_0x369fd0)||_0x369fd0;break;}default:{const _0x48ba6b=_0x4ed6e8['getAttribute']('id');_0x2320c7=_0xdff7ee['getLabel'](_0x48ba6b)||_0x48ba6b;break;}}return'insertion'==_0x1e98fb['type']?{'type':'insertion','content':c(_0x1b6497,'*Insert:*\x20%0','\x22'+_0x2320c7+'\x22\x20'+c(_0x1b6497,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x1b6497,'*Remove:*\x20%0','\x22'+_0x2320c7+'\x22\x20'+c(_0x1b6497,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x54e516{['afterInit'](){const _0x395a80=this['editor'],_0x3e4a6a=_0x395a80['plugins']['get']('TrackChangesEditing');_0x395a80['plugins']['has']('MultiLevelList')&&(_0x3e4a6a['enableDefaultAttributesIntegration']('multiLevelList'),_0x3e4a6a['registerBlockAttribute']('listMarkerStyle'),_0x3e4a6a['descriptionFactory']['registerDescriptionCallback'](_0x29122a=>this['handleDescriptions'](_0x29122a)));}['handleDescriptions'](_0x292118){const _0x46b1af=this['editor']['locale'],{data:_0x21b92c}=_0x292118,_0x1b578f={'type':'format','content':''};if(_0x21b92c&&'listMarkerStyle'==_0x21b92c['key']){if(!_0x21b92c['oldValue'])return{'type':'format','content':c(_0x46b1af,'*Set\x20format:*\x20%0',c(_0x46b1af,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x21b92c['newValue']+')'};if(!_0x21b92c['newValue']){let _0x6beec2=_0x292118['head'];for(;_0x6beec2;){if(_0x6beec2['data']&&'listType'==_0x6beec2['data']['key']&&_0x6beec2['data']['newValue'])return _0x1b578f;_0x6beec2=_0x6beec2['next'];}return{'type':'format','content':c(_0x46b1af,'*Remove\x20format:*\x20%0',c(_0x46b1af,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x21b92c['oldValue']+')'};}}}}class bt extends _0x54e516{['afterInit'](){const _0x3285d9=this['editor'];if(!_0x3285d9['plugins']['has']('PageBreakEditing'))return;_0x3285d9['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x2205d4=_0x3285d9['plugins']['get']('TrackChangesEditing'),_0x4e5f6b=_0x3285d9['locale'];_0x2205d4['descriptionFactory']['registerElementLabel']('pageBreak',_0x24a536=>c(_0x4e5f6b,'ELEMENT_PAGE_BREAK',_0x24a536));}}class yt extends _0x54e516{['afterInit'](){const _0x2d46fe=this['editor'];if(!_0x2d46fe['plugins']['has']('Paragraph'))return;const _0x164f2b=_0x2d46fe['locale'],_0x6bbb4c=_0x2d46fe['plugins']['get']('TrackChangesEditing');_0x6bbb4c['descriptionFactory']['registerElementLabel']('paragraph',_0x4772ed=>c(_0x164f2b,'ELEMENT_PARAGRAPH',_0x4772ed)),_0x6bbb4c['enableDefaultAttributesIntegration']('paragraph'),_0x6bbb4c['enableCommand']('insertParagraph'),_0x2d46fe['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x2d46fe),{'priority':'highest'}),_0x2d46fe['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xdab8cb,_0x163797,_0x579a89)=>{_0x579a89['options']['showSuggestionHighlights']&&nr(_0x2d46fe,{'showActiveMarker':!0x1})(_0xdab8cb,_0x163797,_0x579a89);},{'priority':'highest'});const _0x5d6b35=_0x6bbb4c['descriptionFactory'];_0x5d6b35['registerDescriptionCallback'](_0x506297=>{if('insertion'!==_0x506297['type'])return;const {start:_0x3c6f64,end:_0x33ab9d}=_0x506297['getFirstRange']();if(!_0x3c6f64['isTouching'](_0x33ab9d)||!_0x3c6f64['nodeAfter'])return;const _0x2fb320=_0x2d46fe['model']['schema'],_0x414a5c=_0x3c6f64['nodeAfter'];return _0x2fb320['isBlock'](_0x414a5c)&&!_0x2fb320['isLimit'](_0x414a5c)&&_0x2fb320['checkChild'](_0x414a5c,'$text')?{'type':'insertion','content':c(_0x164f2b,'*Insert:*\x20%0',_0x5d6b35['getItemLabel'](_0x414a5c,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x398dd5=this['editor'],_0x1768bd=_0x398dd5['locale'];_0x398dd5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5ebbb8=>{if('formatBlock'!=_0x5ebbb8['type'])return;const {data:_0x1c5eff}=_0x5ebbb8;return _0x1c5eff&&'paragraph'==_0x1c5eff['commandName']?{'type':'format','content':c(_0x1768bd,'*Change\x20to:*\x20%0',c(_0x1768bd,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x34082d,{showActiveMarker:_0x74b031=!0x0}={}){return(_0x52537,_0x1b7b80,_0x23c0c8)=>{const _0x272420=_0x34082d['plugins']['get']('TrackChangesEditing'),_0x354e2a=_0x1b7b80['markerRange']['start'],_0x767106=_0x1b7b80['markerRange']['end'],_0x23648c=_0x34082d['model']['schema'];if(!_0x354e2a['isTouching'](_0x767106)||!_0x354e2a['nodeAfter'])return;const _0x470616=_0x354e2a['nodeAfter'];if(_0x23648c['isBlock'](_0x470616)&&!_0x23648c['isLimit'](_0x470616)&&_0x23648c['checkChild'](_0x470616,'$text')){if(!_0x23c0c8['consumable']['consume'](_0x1b7b80['markerRange'],_0x52537['name']))return;const {authorId:_0x3f89fd}=_0x272420['_splitMarkerName'](_0x1b7b80['markerName']),_0x50c60c=_0x23c0c8['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x3f89fd}),_0x350cea=_0x23c0c8['mapper']['toViewPosition'](_0x767106);_0x74b031&&_0x272420['activeMarkers']['includes'](_0x1b7b80['markerName'])&&_0x23c0c8['writer']['addClass']('ck-suggestion-marker--active',_0x50c60c),_0x23c0c8['writer']['insert'](_0x350cea,_0x50c60c),_0x23c0c8['mapper']['bindElementToMarker'](_0x50c60c,_0x1b7b80['markerName']);}};}class jt extends _0x54e516{['afterInit'](){const _0x460827=this['editor'];_0x460827['commands']['get']('replaceSource')&&_0x460827['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x54e516{['afterInit'](){const _0x2165d7=this['editor'];if(!_0x2165d7['plugins']['has']('RemoveFormatEditing'))return;_0x2165d7['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3027bd=this['editor'];_0x3027bd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47ce44=>{if('formatBlock'!=_0x47ce44['type']&&'formatInline'!=_0x47ce44['type'])return;const {data:_0x39d965}=_0x47ce44;return _0x39d965&&'removeFormat'==_0x39d965['commandName']?{'type':'format','content':c(_0x3027bd['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x54e516{['afterInit'](){const _0x295b5c=this['editor'];if(!_0x295b5c['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x64d6c6=_0x295b5c['plugins']['get']('TrackChangesEditing');_0x64d6c6['enableCommand']('goToPreviousRestrictedEditingException'),_0x64d6c6['enableCommand']('goToNextRestrictedEditingException');const _0x290e76=_0x295b5c['plugins']['get']('RestrictedEditingModeEditing');_0x290e76['enableCommand']('trackChanges'),_0x290e76['enableCommand']('acceptSuggestion'),_0x290e76['enableCommand']('discardSuggestion'),_0x290e76['enableCommand']('acceptAllSuggestions'),_0x290e76['enableCommand']('discardAllSuggestions'),_0x290e76['enableCommand']('acceptSelectedSuggestions'),_0x290e76['enableCommand']('discardSelectedSuggestions');}}class It extends _0x54e516{static get['requires'](){return[_0x234e13];}['init'](){const _0x470e33=this['editor'],_0x590c7c=_0x470e33['plugins']['get']('TrackChangesEditing');_0x590c7c['enableCommand']('shiftEnter'),_0x470e33['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x470e33),{'priority':'high'}),_0x470e33['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x470e33),{'priority':'high'}),_0x470e33['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xe1a9c8,_0x4f1582,_0x1711d5)=>{_0x1711d5['options']['showSuggestionHighlights']&&je(_0x470e33,{'showActiveMarker':!0x1})(_0xe1a9c8,_0x4f1582,_0x1711d5);}),_0x590c7c['descriptionFactory']['registerElementLabel']('softBreak',_0x401d11=>c(_0x470e33['locale'],'ELEMENT_LINE_BREAK',_0x401d11));}}function je(_0x30a66e,{showActiveMarker:_0x197c2c=!0x0}={}){return(_0x2fa739,_0xd454d5,_0xb88249)=>{const _0x64fb9=_0x30a66e['plugins']['get']('TrackChangesEditing');if(!_0xb88249['consumable']['test'](_0xd454d5['markerRange'],_0x2fa739['name']))return;const _0x180f69=_0x30a66e['model'];for(const _0xb717de of _0xd454d5['markerRange']['getItems']()){if(!_0xb717de['is']('element','softBreak'))continue;const _0x1ee932='deletion'==_0xd454d5['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x381a1f}=_0x64fb9['_splitMarkerName'](_0xd454d5['markerName']),_0x29cce5=_0xb88249['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1ee932,'data-author-id':_0x381a1f}),_0x48855d=_0xb88249['mapper']['toViewPosition'](_0x180f69['createPositionBefore'](_0xb717de));_0x197c2c&&_0x64fb9['activeMarkers']['includes'](_0xd454d5['markerName'])&&_0xb88249['writer']['addClass']('ck-suggestion-marker--active',_0x29cce5),_0xb88249['writer']['insert'](_0x48855d,_0x29cce5),_0xb88249['mapper']['bindElementToMarker'](_0x29cce5,_0xd454d5['markerName']);}};}class _t extends _0x54e516{['afterInit'](){const _0xd3420a=this['editor'],_0x136536=_0xd3420a['model'],_0x58932a=_0xd3420a['locale'];if(!_0xd3420a['plugins']['has']('StandardEditingModeEditing'))return;const _0x2251d5=_0xd3420a['plugins']['get']('TrackChangesEditing'),_0x57c475='restrictedEditingException',_0x6e1c93=_0xd3420a['commands']['get'](_0x57c475);_0x2251d5['enableCommand'](_0x57c475,(_0x1b6e96,_0x4ce493={})=>{const _0x2b4c96=_0x136536['document']['selection'];if(_0x2b4c96['isCollapsed'])return void _0x1b6e96(_0x4ce493);const _0x5028a8=void 0x0!==_0x4ce493['forceValue']?_0x4ce493['forceValue']:!_0x6e1c93['value'];_0x136536['change'](()=>{const _0x1ea533=Array['from'](_0x2b4c96['getRanges']());for(const _0x1ef7d9 of _0x1ea533){const _0x585777=_0x5028a8?[_0x1ef7d9]:io(_0x57c475,_0x1ef7d9,_0x136536);for(const _0x1aaa87 of _0x585777)_0x2251d5['markInlineFormat'](_0x1aaa87,{'commandName':_0x57c475,'commandParams':[{'forceValue':_0x5028a8}]});}});}),_0x2251d5['descriptionFactory']['registerDescriptionCallback'](_0x4c3b46=>{if('formatBlock'!=_0x4c3b46['type']&&'formatInline'!=_0x4c3b46['type'])return;const {data:_0x5dfcbe}=_0x4c3b46;return _0x5dfcbe&&_0x5dfcbe['commandName']==_0x57c475?_0x5dfcbe['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x58932a,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x58932a,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x54e516{['afterInit'](){const _0x275a70=this['editor'];if(!_0x275a70['plugins']['has']('Style')||!_0x275a70['plugins']['has']('DataSchema'))return;const _0x14f997=_0x275a70['plugins']['get']('TrackChangesEditing'),_0x4a1bdc=_0x275a70['locale'],_0x41ccdd=_0x275a70['config']['get']('style')||{},_0x3e03b8=_0x275a70['plugins']['get']('GeneralHtmlSupport'),_0xdbff85=_0x275a70['plugins']['get']('StyleUtils')['normalizeConfig'](_0x275a70['plugins']['get']('DataSchema'),_0x41ccdd['definitions']);_0x14f997['enableDefaultAttributesIntegration']('style');const _0x4e50ed=new Set();for(const _0x4ab677 of _0xdbff85['block']){const _0x178a56=_0x3e03b8['getGhsAttributeNameForElement'](_0x4ab677['element']);_0x4e50ed['add'](_0x178a56);}const _0x7b19e8=new Set();for(const _0x42a256 of _0xdbff85['inline']){const _0x15a200=_0x3e03b8['getGhsAttributeNameForElement'](_0x42a256['element']);_0x7b19e8['add'](_0x15a200);for(const _0x21850c of _0x42a256['ghsAttributes'])_0x7b19e8['add'](_0x21850c);}for(const _0x418751 of _0x4e50ed)_0x14f997['registerBlockAttribute'](_0x418751),_0x14f997['descriptionFactory']['registerAttributeLabel'](_0x418751,c(_0x4a1bdc,'FORMAT_STYLE'));for(const _0x574826 of _0x7b19e8)_0x14f997['registerInlineAttribute'](_0x574826),_0x14f997['descriptionFactory']['registerAttributeLabel'](_0x574826,c(_0x4a1bdc,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x46c24b=this['editor'],_0x507c62=_0x46c24b['locale'];_0x46c24b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1bd029=>{if('formatBlock'!=_0x1bd029['type']&&'formatInline'!=_0x1bd029['type'])return;const {data:_0xc1b25f}=_0x1bd029;return _0xc1b25f&&'style'===_0xc1b25f['commandName']?_0xc1b25f['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x507c62,'*Set\x20format:*\x20%0',_0xc1b25f['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x507c62,'*Remove\x20format:*\x20%0',_0xc1b25f['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x54e516{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x4522f4){super(_0x4522f4),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x3dce3d=this['editor'],_0xad29da=_0x3dce3d['model']['document']['selection'];if(!_0x3dce3d['plugins']['has']('TableEditing'))return;const _0x1bad00=_0x3dce3d['locale'],_0x28abe2=_0x3dce3d['plugins']['get']('TrackChangesEditing'),_0x43c3df=_0x3dce3d['plugins']['get']('TableUtils');_0x28abe2['descriptionFactory']['registerElementLabel']('table',_0x46bbf8=>c(_0x1bad00,'ELEMENT_TABLE',_0x46bbf8)),this['_setupColumnsRowsFixing'](),_0x28abe2['enableCommand']('insertTable'),_0x28abe2['enableCommand']('selectTableRow'),_0x28abe2['enableCommand']('selectTableColumn');for(const _0x468bc4 of['insertTableRowAbove','insertTableRowBelow']){const _0x45d9e4=_0x3dce3d['commands']['get'](_0x468bc4);_0x28abe2['enableCommand'](_0x468bc4,_0x466a40=>{_0x3dce3d['model']['change'](_0x4ee05e=>{_0x466a40();const _0x6f4ffa='above'===_0x45d9e4['order'],_0x57ab84=_0x43c3df['getSelectionAffectedTableCells'](_0xad29da),_0x4b25be=_0x43c3df['getRowIndexes'](_0x57ab84),_0x370e=_0x6f4ffa?_0x4b25be['first']-0x1:_0x4b25be['last']+0x1,_0x4154e0=_0x57ab84[0x0]['findAncestor']('table'),_0x2b4e9d=_0x43c3df['createTableWalker'](_0x4154e0,{'startRow':_0x370e,'endRow':_0x370e}),_0xd1d777=Array['from'](_0x2b4e9d)['map'](_0x52dd98=>_0x4ee05e['createRangeOn'](_0x52dd98['cell']));_0x28abe2['markMultiRangeInsertion'](_0xd1d777,'tableRow');});});}for(const _0x56fb0c of['insertTableColumnLeft','insertTableColumnRight']){const _0x4d17e0=_0x3dce3d['commands']['get'](_0x56fb0c);_0x28abe2['enableCommand'](_0x56fb0c,_0x109f3e=>{_0x3dce3d['model']['change'](_0x3ccff8=>{_0x109f3e();const _0xcc0f5f='left'===_0x4d17e0['order'],_0xbc7ed0=_0x43c3df['getSelectionAffectedTableCells'](_0xad29da),_0x2e88d9=_0x43c3df['getColumnIndexes'](_0xbc7ed0),_0x3dc501=_0xcc0f5f?_0x2e88d9['first']-0x1:_0x2e88d9['last']+0x1,_0x4bd094=_0xbc7ed0[0x0]['findAncestor']('table'),_0x35264a=_0x43c3df['createTableWalker'](_0x4bd094,{'startRow':0x0,'column':_0x3dc501,'includeAllSlots':!0x1}),_0x43552d=Array['from'](_0x35264a)['map'](_0xc9554a=>_0x3ccff8['createRangeOn'](_0xc9554a['cell']));_0x28abe2['markMultiRangeInsertion'](_0x43552d,'tableColumn');});});}for(const _0x269604 of['removeTableRow','removeTableColumn']){const _0x3b169c=_0x269604['substr'](0xb),_0x5f1610=_0x3b169c['toLowerCase'](),_0x1d66bc=_0x5f1610['substr'](0x0,0x3)+'span',_0x1a95d3='table'+_0x3b169c,_0x21cc06='min'+_0x3b169c,_0x16d055='max'+_0x3b169c;_0x28abe2['enableCommand'](_0x269604,()=>{_0x3dce3d['model']['change'](_0x4e8ed7=>{const _0x6e002b=_0x43c3df['getSelectionAffectedTableCells'](_0xad29da),_0x4b1a4c=_0x6e002b[0x0]['findAncestor']('table');let _0x13ba22;if('removeTableRow'==_0x269604){const _0x613953=_0x43c3df['getRowIndexes'](_0x6e002b);_0x13ba22={'startRow':_0x613953['first'],'endRow':_0x613953['last'],'includeAllSlots':!0x0};}else{const _0x356d6b=_0x43c3df['getColumnIndexes'](_0x6e002b);_0x13ba22={'startColumn':_0x356d6b['first'],'endColumn':_0x356d6b['last'],'includeAllSlots':!0x0};}const _0x51c12c=_0x43c3df['createTableWalker'](_0x4b1a4c,_0x13ba22),_0x584cd8=Array['from'](_0x51c12c)['map'](({cell:_0x268e3a})=>_0x268e3a),_0x468a61=Ne(_0x584cd8['filter'](_0x2a116c=>_0x2a116c['hasAttribute'](_0x1d66bc))),_0xe3ee6e=Ne(_0x584cd8['filter'](_0x2ebb37=>!_0x2ebb37['hasAttribute'](_0x1d66bc)))['map'](_0x2f17a9=>_0x4e8ed7['createRangeOn'](_0x2f17a9)),_0x2d82da=_0x28abe2['markMultiRangeDeletion'](_0xe3ee6e,_0x1a95d3);if(_0x2d82da&&('tableRow'==_0x2d82da['subType']||'tableColumn'==_0x2d82da['subType'])){const _0x1c8467=this['_getSuggestionCoords'](_0x2d82da);for(const _0x20ad8a of _0x468a61){const _0x442cf4=_0x4e8ed7['createRangeOn'](_0x20ad8a),_0x44170c=_0x43c3df['getCellLocation'](_0x20ad8a),_0x76d9d0=_0x20ad8a['getAttribute'](_0x1d66bc)-0x1,_0x16116c=_0x1c8467[_0x21cc06],_0x1e8c00=_0x1c8467[_0x16d055];_0x16116c<=_0x44170c[_0x5f1610]&&_0x44170c[_0x5f1610]+_0x76d9d0<=_0x1e8c00&&_0x2d82da['addRange'](_0x442cf4);}}});});}function _0x42db65(_0x33fcf){const _0x5662c1=Array['from'](_0xad29da['getRanges']())['map'](_0x4228c0=>_0x6b53b6['fromRange'](_0x4228c0));_0x3dce3d['model']['change'](_0x58a7ea=>{const _0x4c0dcb=_0x58a7ea['batch'];_0x33fcf=_0x33fcf['filter'](_0xf04095=>'$graveyard'!=_0xf04095['root']['rootName']),_0x58a7ea['setSelection'](_0x33fcf),_0x3dce3d['commands']['get']('removeTableRow')['refresh'](),_0x3dce3d['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x3dce3d['model']['enqueueChange'](()=>{_0x3dce3d['model']['enqueueChange'](_0x4c0dcb,_0x56cfe7=>{const _0x1a58ae=_0x5662c1['filter'](_0x33af8f=>'$graveyard'!=_0x33af8f['root']['rootName']);_0x1a58ae['length']>0x0&&_0x56cfe7['setSelection'](_0x1a58ae);for(const _0x5c4569 of _0x5662c1)_0x5c4569['detach']();});});});}function _0x445929(_0xbee443){_0x3dce3d['model']['change'](_0x38060b=>{const _0x3f3855=Array['from'](_0xad29da['getRanges']())['map'](_0x26706f=>_0x6b53b6['fromRange'](_0x26706f)),_0x5deced=[];for(const _0x486667 of _0xbee443)for(const _0x531095 of _0x486667['getItems']({'shallow':!0x0}))_0x5deced['push'](_0x531095);for(const _0x220bbd of _0x5deced)'$graveyard'!=_0x220bbd['root']['rootName']&&(_0x38060b['setSelection'](_0x38060b['createPositionAt'](_0x220bbd,0x0)),_0x3dce3d['commands']['get']('removeTableColumn')['refresh'](),_0x3dce3d['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x15f97a=_0x3f3855['filter'](_0x289df5=>'$graveyard'!=_0x289df5['root']['rootName']);_0x15f97a['length']>0x0&&_0x38060b['setSelection'](_0x15f97a);for(const _0xa6f4fc of _0x3f3855)_0xa6f4fc['detach']();});}function _0x345d84(_0xdc1fbd,_0x5e0716){return _0x5e0716['every'](_0x5ec983=>_0xdc1fbd['some'](_0x8ea47c=>_0x8ea47c['end']['isEqual'](_0x5ec983['start'])||_0x5ec983['end']['isEqual'](_0x8ea47c['start'])));}function _0x5cc46c(_0x14846b,_0x2cd9ba){return!_0x14846b['some'](_0xf47474=>_0x2cd9ba['some'](_0x31af85=>_0xf47474['isIntersecting'](_0x31af85)))&&_0x14846b['some'](_0x5df7f7=>_0x2cd9ba['some'](_0x126dac=>_0x5df7f7['end']['isTouching'](_0x126dac['start'])));}_0x3dce3d['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x279365,_0x334999,_0x3d71e9)=>{if(!_0x3d71e9['options']['showSuggestionHighlights'])return;const _0x33e9cc=_0x334999['item'];if(!_0x33e9cc)return;const _0x52f529=_0x3d71e9['mapper']['toViewElement'](_0x33e9cc);function _0xe60cac(_0x5eef72){return Array['isArray'](_0x5eef72)?_0x5eef72:[_0x5eef72];}_0x52f529&&'tableCell'===_0x33e9cc['name']&&_0x63d294(_0x52f529,_0x3d71e9['writer'],(_0x3197b3,_0x144e8d,_0x2bf1d3)=>_0x2bf1d3['addClass'](_0xe60cac(_0x144e8d['classes']),_0x3197b3),(_0x21a52d,_0x17d09e,_0x30afdb)=>_0x30afdb['removeClass'](_0xe60cac(_0x17d09e['classes']),_0x21a52d));},{'priority':'highest'}),_0x28abe2['descriptionFactory']['registerDescriptionCallback'](_0x4df445=>{if('insertion'!=_0x4df445['type']&&'deletion'!=_0x4df445['type'])return;const _0x377ac2=_0x4df445['getContainedElement']();if(null!=_0x377ac2&&_0x377ac2['is']('element','table')){if('insertion'==_0x4df445['type']){const _0x561206=_0x4df445['getItems']()['filter'](_0x10c621=>_0x10c621['is']('$textProxy'))['map'](_0x3901dc=>_0x3901dc['data']);if(_0x561206['length'])return{'type':'insertion','content':c(_0x1bad00,'*Insert:*\x20%0',c(_0x1bad00,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x561206['join']('\x20')+'\x22'))};}if('deletion'==_0x4df445['type']){const _0x21ad63=_0x4df445['getItems']()['filter'](_0x22b1ff=>_0x22b1ff['is']('$textProxy'))['map'](_0x58ce8c=>_0x58ce8c['data']);if(_0x21ad63['length'])return{'type':'deletion','content':c(_0x1bad00,'*Remove:*\x20%0',c(_0x1bad00,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x21ad63['join']('\x20')+'\x22'))};}}}),_0x28abe2['descriptionFactory']['registerDescriptionCallback'](_0x2a0abc=>{if('tableRow'==_0x2a0abc['subType']){const _0xaa9b78=_0x2a0abc['getItems']()['filter'](_0x115684=>_0x115684['is']('$textProxy'))['map'](_0x535aa3=>_0x535aa3['data']),_0xa5dee=this['_getSuggestionCoords'](_0x2a0abc),_0x1ed3cd=_0xa5dee['maxRow']-_0xa5dee['minRow']+0x1;if('insertion'==_0x2a0abc['type'])return _0xaa9b78['length']?{'type':'insertion','content':c(_0x1bad00,'*Insert:*\x20%0',c(_0x1bad00,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1ed3cd,'\x22'+_0xaa9b78['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x1bad00,'*Insert:*\x20%0',c(_0x1bad00,'ELEMENT_TABLE_ROW',_0x1ed3cd))};if('deletion'==_0x2a0abc['type'])return _0xaa9b78['length']?{'type':'deletion','content':c(_0x1bad00,'*Remove:*\x20%0',c(_0x1bad00,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1ed3cd,'\x22'+_0xaa9b78['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x1bad00,'*Remove:*\x20%0',c(_0x1bad00,'ELEMENT_TABLE_ROW',_0x1ed3cd))};}if('tableColumn'==_0x2a0abc['subType']){const _0x11cbe1=_0x2a0abc['getItems']()['filter'](_0x216425=>_0x216425['is']('$textProxy'))['map'](_0x2e9fba=>_0x2e9fba['data']),_0x55c22a=this['_getSuggestionCoords'](_0x2a0abc),_0x35c5ba=_0x55c22a['maxColumn']-_0x55c22a['minColumn']+0x1;if('insertion'==_0x2a0abc['type'])return _0x11cbe1['length']?{'type':'insertion','content':c(_0x1bad00,'*Insert:*\x20%0',c(_0x1bad00,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x35c5ba,'\x22'+_0x11cbe1['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x1bad00,'*Insert:*\x20%0',c(_0x1bad00,'ELEMENT_TABLE_COLUMN',_0x35c5ba))};if('deletion'==_0x2a0abc['type'])return _0x11cbe1['length']?{'type':'deletion','content':c(_0x1bad00,'*Remove:*\x20%0',c(_0x1bad00,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x35c5ba,'\x22'+_0x11cbe1['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x1bad00,'*Remove:*\x20%0',c(_0x1bad00,'ELEMENT_TABLE_COLUMN',_0x35c5ba))};}}),_0x28abe2['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x42db65),_0x28abe2['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x42db65),_0x28abe2['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x445929),_0x28abe2['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x445929),_0x28abe2['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x345d84),_0x28abe2['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x345d84),_0x28abe2['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x5cc46c),_0x28abe2['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x5cc46c);}['_acceptFormatSuggestionCallbackFactory'](){const _0x33671b=this['editor'],_0x68625d=_0x33671b['model']['document']['selection'];return(_0x238dfd,_0x1d2b9a)=>{_0x33671b['model']['change'](_0xf235fb=>{const {commandName:_0x50a967,commandParams:_0x5d5445}=_0x1d2b9a;let _0x7ae8bd=_0x238dfd[0x0]['end']['nodeBefore'];_0x5d5445&&_0x5d5445[0x0]&&!0x1===_0x5d5445[0x0]['forceValue']&&(_0x7ae8bd=_0x238dfd[0x0]['start']['nodeAfter']);const _0x5b9fac=_0xf235fb['createRangeIn'](_0x7ae8bd);if('$graveyard'==_0x5b9fac['root']['rootName'])return;const _0x260b5=Array['from'](_0x68625d['getRanges']())['map'](_0x5d12ee=>_0x6b53b6['fromRange'](_0x5d12ee));_0xf235fb['setSelection'](_0x5b9fac),_0x33671b['commands']['get'](_0x50a967)['refresh'](),_0x5d5445['push']({'forceDefaultExecution':!0x0}),_0x33671b['execute'](_0x50a967,..._0x5d5445);const _0x54fc91=_0x260b5['filter'](_0x6b3759=>'$graveyard'!=_0x6b3759['root']['rootName']);_0x54fc91['length']>0x0&&_0xf235fb['setSelection'](_0x54fc91);for(const _0x29c578 of _0x260b5)_0x29c578['detach']();});};}['_getCoordsForCells'](_0x9ecf06){const _0x395b28=this['editor']['plugins']['get']('TableUtils');let _0x236a77=Number['MAX_SAFE_INTEGER'],_0x5355f4=Number['MIN_SAFE_INTEGER'],_0x11f2bb=Number['MAX_SAFE_INTEGER'],_0x201cc8=Number['MIN_SAFE_INTEGER'];for(const _0x4272cd of _0x9ecf06){if('$graveyard'==_0x4272cd['root']['rootName'])continue;const {row:_0x331d03,column:_0x1cc977}=_0x395b28['getCellLocation'](_0x4272cd),_0x4b7c3e=_0x4272cd['hasAttribute']('rowspan')?_0x4272cd['getAttribute']('rowspan')-0x1:0x0,_0x5059dc=_0x4272cd['hasAttribute']('colspan')?_0x4272cd['getAttribute']('colspan')-0x1:0x0;_0x236a77=_0x331d03<_0x236a77?_0x331d03:_0x236a77,_0x5355f4=_0x331d03+_0x4b7c3e>_0x5355f4?_0x331d03+_0x4b7c3e:_0x5355f4,_0x11f2bb=_0x1cc977<_0x11f2bb?_0x1cc977:_0x11f2bb,_0x201cc8=_0x1cc977+_0x5059dc>_0x201cc8?_0x1cc977+_0x5059dc:_0x201cc8;}return{'minRow':_0x236a77,'maxRow':_0x5355f4,'minColumn':_0x11f2bb,'maxColumn':_0x201cc8};}['_setupColumnsRowsFixing'](){const _0x473546=this['editor'],_0x1ea255=_0x473546['plugins']['get']('TrackChangesEditing'),_0x2ab439=_0x473546['plugins']['get']('TableUtils');_0x473546['model']['document']['on']('change:data',()=>{const _0x10453b=Array['from'](_0x473546['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x279521,data:_0x4c8ace}of _0x10453b){const {group:_0x307b30,id:_0x3a7ce3,subType:_0x3efc31}=_0x1ea255['_splitMarkerName'](_0x279521);if('suggestion'!=_0x307b30)continue;if(null!=_0x4c8ace['oldRange'])continue;const _0x328204=_0x1ea255['getSuggestion'](_0x3a7ce3);this['_tablePostFixingSubtypes']['includes'](_0x3efc31)&&this['_tableSuggestions']['add'](_0x328204);}},{'priority':'low'});const _0x2c3700=(_0x1ca25e,_0x38929d)=>{let _0x29d262=!0x1;const _0x3930a1=_0x38929d['createRangeOn'](_0x1ca25e),_0x179467=_0x1ca25e['findAncestor']('table'),_0x1abe0f=_0x2ab439['getCellLocation'](_0x1ca25e);for(const _0x5944eb of this['_tableSuggestions']){const _0x468dba=_0x5944eb['subType'],_0xa7a532=_0x468dba['startsWith']('tablePaste'),_0x212657=_0x468dba['substr'](_0xa7a532?0xa:0x5),_0x57fea7=_0x212657['toLowerCase'](),_0x19e70a=_0x57fea7['substr'](0x0,0x3)+'span',_0x277d84='min'+_0x212657,_0x2f0ade='max'+_0x212657;if(!_0x5944eb['isInContent'])continue;if(_0x179467!=_0x5944eb['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x5944eb['isIntersectingWithRange'](_0x3930a1))continue;const _0xc866aa=_0x1ca25e['hasAttribute'](_0x19e70a)?_0x1ca25e['getAttribute'](_0x19e70a)-0x1:0x0,_0x4202b6=this['_getSuggestionCoords'](_0x5944eb),_0x3ce6ac=_0x4202b6[_0x277d84],_0x446cf9=_0x4202b6[_0x2f0ade];_0x3ce6ac<=_0x1abe0f[_0x57fea7]&&_0x1abe0f[_0x57fea7]+_0xc866aa<=_0x446cf9&&(_0x5944eb['addRange'](_0x3930a1),_0x29d262=!0x0);}return _0x29d262;};_0x473546['model']['document']['registerPostFixer'](_0x558f6e=>{let _0x3243d8=!0x1;for(const _0xd3e8a3 of _0x473546['model']['document']['differ']['getChanges']())if('insert'==_0xd3e8a3['type']){if('tableRow'==_0xd3e8a3['name']){for(const _0x54c9a6 of _0xd3e8a3['position']['nodeAfter']['getChildren']())_0x3243d8=_0x3243d8||_0x2c3700(_0x54c9a6,_0x558f6e);}else'tableCell'==_0xd3e8a3['name']&&(_0x3243d8=_0x3243d8||_0x2c3700(_0xd3e8a3['position']['nodeAfter'],_0x558f6e));}return _0x3243d8;});}['_getSuggestionCoords'](_0x55a51e){return this['_getCoordsForCells'](_0x55a51e['getRanges']()['map'](_0x5ee454=>_0x5ee454['start']['nodeAfter']));}}function Ne(_0x4994a3){return Array['from'](new Set(_0x4994a3)['values']());}class Nt extends _0x54e516{static get['requires'](){return[Ct];}['afterInit'](){const _0x16f874=this['editor'],_0x1cfe17=_0x16f874['model']['document']['selection'],_0x189cec=_0x16f874['locale'];if(!_0x16f874['plugins']['has']('TableEditing'))return;const _0x2cdd17=_0x16f874['plugins']['get']('TrackChangesEditing'),_0x4a81c7=_0x16f874['plugins']['get']('TableUtils'),_0xfb8382=_0x16f874['plugins']['get'](Ct);_0xfb8382['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x2cdd17['enableCommand']('mergeTableCells',()=>{const _0x339f00=_0x4a81c7['getSelectionAffectedTableCells'](_0x16f874['model']['document']['selection']);_0x16f874['model']['change'](()=>{_0x2cdd17['markMultiRangeBlockFormat'](_0x339f00,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x16f874['commands']['get']('mergeTableCells')['on']('execute',(_0x420ff3,_0x564416)=>{_0x16f874['commands']['get']('trackChanges')['value']&&(_0x564416['length']>0x0&&_0x564416[_0x564416['length']-0x1]&&_0x564416[_0x564416['length']-0x1]['forceDefaultExecution']||_0x2cdd17['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x420ff3['stop']());},{'priority':'highest'});for(const _0x18be57 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x31a9a9=_0x16f874['commands']['get'](_0x18be57);_0x2cdd17['enableCommand'](_0x18be57,()=>{const _0x4ce0da=_0x16f874['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x39e6ac=>_0x39e6ac['is']('element','tableCell')),_0x43fa91=_0x31a9a9['value'];_0x16f874['model']['change'](()=>{_0x2cdd17['markMultiRangeBlockFormat']([_0x4ce0da,_0x43fa91],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x15f509 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x3caca8=_0x16f874['commands']['get'](_0x15f509);_0x2cdd17['enableCommand'](_0x15f509,()=>{const _0x301596=_0x4a81c7['getSelectionAffectedTableCells'](_0x16f874['model']['document']['selection'])[0x0],_0x2d3091=_0x301596['findAncestor']('table'),{column:_0x26dd1c,row:_0x4cf5cc}=_0x4a81c7['getCellLocation'](_0x301596);let _0x4a9622=[];if('horizontally'==_0x3caca8['direction']){const _0x50c070=_0x4a81c7['createTableWalker'](_0x2d3091,{'startRow':_0x4cf5cc,'endRow':_0x4cf5cc,'includeAllSlots':!0x0});_0x4a9622=Array['from'](_0x50c070)['map'](_0x5d32da=>_0x5d32da['cell']);}else{const _0x354c5c=_0x4a81c7['createTableWalker'](_0x2d3091,{'column':_0x26dd1c,'includeAllSlots':!0x0});_0x4a9622=Array['from'](_0x354c5c)['map'](_0x42c882=>_0x42c882['cell']);}_0x16f874['model']['change'](_0x14452b=>{_0x2cdd17['markBlockFormat'](_0x14452b['createRangeOn'](_0x301596),{'commandName':_0x15f509,'commandParams':[]},_0x4a9622,_0x15f509);});});}_0x2cdd17['descriptionFactory']['registerDescriptionCallback'](_0x29adb6=>{if('formatBlock'!=_0x29adb6['type']&&'formatInline'!=_0x29adb6['type'])return;const {data:_0x189612}=_0x29adb6;return _0x189612&&'mergeTableCells'==_0x189612['commandName']?{'type':'format','content':c(_0x189cec,'*Merge\x20cells*')}:void 0x0;}),_0x2cdd17['descriptionFactory']['registerDescriptionCallback'](_0x75c29e=>{if('formatBlock'!=_0x75c29e['type']&&'formatInline'!=_0x75c29e['type'])return;const {data:_0x49d675}=_0x75c29e;return _0x49d675?'splitTableCellVertically'==_0x49d675['commandName']?{'type':'format','content':c(_0x189cec,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x49d675['commandName']?{'type':'format','content':c(_0x189cec,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x40d4fb=_0xfb8382['_acceptFormatSuggestionCallbackFactory']();for(const _0xcc93db of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x2cdd17['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xcc93db,'accept',_0x40d4fb);for(const _0x320b14 of['splitTableCellVertically','splitTableCellHorizontally'])_0x2cdd17['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x320b14,'accept',_0x40d4fb);_0x2cdd17['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x446311=>{_0x16f874['model']['change'](_0x465ce3=>{const _0x4ff0f9=Array['from'](_0x1cfe17['getRanges']())['map'](_0x159b8a=>_0x6b53b6['fromRange'](_0x159b8a));_0x465ce3['setSelection'](_0x446311),_0x16f874['commands']['get']('mergeTableCells')['refresh'](),_0x16f874['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x138eb1=_0x4ff0f9['filter'](_0x3d142b=>'$graveyard'!=_0x3d142b['root']['rootName']);_0x138eb1['length']>0x0&&_0x465ce3['setSelection'](_0x138eb1);for(const _0x164206 of _0x4ff0f9)_0x164206['detach']();});});for(const _0x508bad of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x18249e=_0x16f874['commands']['get'](_0x508bad);_0x18249e['on']('set:isEnabled',(_0x569ebe,_0x1587a3,_0x303f0b)=>{if(_0x303f0b){const _0x444d01=_0x16f874['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2d77cb=>_0x2d77cb['is']('element','tableCell'));this['_areMergableCells'](_0x18249e['value'],_0x444d01)||(_0x569ebe['return']=!0x1,_0x569ebe['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x15d2a8=this['editor']['commands']['get']('mergeTableCells'),_0xe898c4=this['editor']['plugins']['get']('TableUtils');if(!_0x15d2a8['isEnabled'])return!0x1;const _0x98e43a=_0xe898c4['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x161a4b of _0x98e43a)for(const _0x557d56 of _0x98e43a)if(_0x161a4b!=_0x557d56&&!this['_areMergableCells'](_0x161a4b,_0x557d56))return!0x1;return!0x0;}['_areMergableCells'](_0x573c36,_0x2a9d78){const _0x344515=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1e422f=this['editor']['model']['createRangeOn'](_0x573c36),_0x21ec30=this['editor']['model']['createRangeOn'](_0x2a9d78),_0x48fcce=new Set(),_0x6f1efb=new Set();for(const _0x259e81 of _0x344515['getSuggestions']())if(('insertion'==_0x259e81['type']||'deletion'==_0x259e81['type']||'mergeTableCells'==_0x259e81['subType'])&&_0x259e81['isInContent']){for(const _0x532854 of _0x259e81['getRanges']())_0x532854['containsRange'](_0x1e422f,!0x0)&&_0x48fcce['add'](_0x259e81['type']+':'+_0x259e81['author']['id']),_0x532854['containsRange'](_0x21ec30,!0x0)&&_0x6f1efb['add'](_0x259e81['type']+':'+_0x259e81['author']['id']);}if(_0x48fcce['size']!=_0x6f1efb['size'])return!0x1;for(const _0x19489b of _0x48fcce)if(!_0x6f1efb['has'](_0x19489b))return!0x1;return!0x0;}}class Dt extends _0x54e516{static get['requires'](){return[Ct];}['afterInit'](){const _0x1d7eb9=this['editor'];if(!_0x1d7eb9['plugins']['has']('TableEditing'))return;const _0x258e30=_0x1d7eb9['locale'],_0x103a0d=_0x1d7eb9['plugins']['get']('TrackChangesEditing');_0x103a0d['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x103a0d['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x103a0d['registerBlockAttribute']('headingRows'),_0x103a0d['registerBlockAttribute']('headingColumns'),_0x103a0d['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x258e30,'FORMAT_HEADER_ROW')),_0x103a0d['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x258e30,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x23c6ca=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4dfa16=this['editor']['plugins']['get']('TableUtils'),_0x2744a5=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x46d97a({showActiveMarker:_0x2055c3=!0x0,setDataAttribute:_0x42b2e5=!0x0}={}){return(_0x12dd40,_0x32456f,_0x5e20a4)=>{const {type:_0x1a5bff,id:_0x8300cb}=_0x23c6ca['_splitMarkerName'](_0x32456f['markerName']),_0xbc0a55=_0x23c6ca['getSuggestion'](_0x8300cb),_0x2e9699=_0xbc0a55['data'];if('formatBlock'!=_0xbc0a55['type']||!_0x2e9699||'setTableColumnHeader'!=_0x2e9699['commandName'])return;if(_0x32456f['item'])return void _0x12dd40['stop']();if(!_0x5e20a4['consumable']['consume'](_0x32456f['markerRange'],_0x12dd40['name']))return;const _0x51bc1a=_0x32456f['markerRange']['start']['nodeAfter'],_0x19875b=_0x32456f['markerRange']['end']['nodeBefore'],_0x3b242d=_0x51bc1a['parent']['parent'],{column:_0x134a9f}=_0x4dfa16['getCellLocation'](_0x51bc1a),{column:_0x1b090a}=_0x4dfa16['getCellLocation'](_0x19875b);for(let _0x2749f6=_0x134a9f;_0x2749f6<=_0x1b090a;_0x2749f6++){const _0x1bb56e=_0x4dfa16['createTableWalker'](_0x3b242d,{'column':_0x2749f6,'includeAllSlots':!0x1});for(const _0xff811d of _0x1bb56e){const _0x55d971=_0xff811d['cell'],_0x4786d2=_0x5e20a4['mapper']['toViewElement'](_0x55d971);_0x5e20a4['writer']['addClass']('ck-suggestion-marker-'+_0x1a5bff,_0x4786d2),_0x42b2e5&&_0x5e20a4['writer']['setAttribute']('data-suggestion',_0x8300cb,_0x4786d2),_0x5e20a4['mapper']['bindElementToMarker'](_0x4786d2,_0x32456f['markerName']),_0x2055c3&&(_0x23c6ca['activeMarkers']['includes'](_0x32456f['markerName'])?_0x5e20a4['writer']['addClass']('ck-suggestion-marker--active',_0x4786d2):_0x5e20a4['writer']['removeClass']('ck-suggestion-marker--active',_0x4786d2));}}};}_0x23c6ca['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x2744a5),_0x23c6ca['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x2744a5),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x46d97a(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2d595f,_0x2359f3,_0x2f5695)=>{_0x2f5695['options']['showSuggestionHighlights']&&_0x46d97a({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x2d595f,_0x2359f3,_0x2f5695);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x4d32c6,_0x34d5d3,_0x1a62f9)=>{const {type:_0x1a7cd7,id:_0x411ecf}=_0x23c6ca['_splitMarkerName'](_0x34d5d3['markerName']),_0x8a031e=_0x23c6ca['getSuggestion'](_0x411ecf),_0x1fcbb0=_0x8a031e['data'];if('formatBlock'!=_0x8a031e['type']||!_0x1fcbb0||'setTableColumnHeader'!=_0x1fcbb0['commandName'])return;const _0x452d5a=_0x1a62f9['mapper']['markerNameToElements'](_0x34d5d3['markerName']);if(_0x452d5a){for(const _0x33ddf4 of _0x452d5a)_0x1a62f9['writer']['removeClass']('ck-suggestion-marker-'+_0x1a7cd7,_0x33ddf4),_0x1a62f9['writer']['removeClass']('ck-suggestion-marker--active',_0x33ddf4),_0x1a62f9['writer']['removeAttribute']('data-suggestion',_0x33ddf4),_0x1a62f9['mapper']['unbindElementFromMarkerName'](_0x33ddf4,_0x34d5d3['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3bba6f=this['editor'],_0x4b30f4=_0x3bba6f['locale'];function _0x5d333e(_0x3d2517){return{'type':'format','content':c(_0x4b30f4,'*Format:*\x20%0',_0x3d2517)};}_0x3bba6f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x38d3f4=>{if('formatBlock'!=_0x38d3f4['type'])return;const {data:_0x516279}=_0x38d3f4;if(_0x516279){if('setTableRowHeader'==_0x516279['commandName']){const _0x112282=_0x516279['commandParams'][0x0]['forceValue'];return _0x5d333e(c(_0x4b30f4,_0x112282?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x516279['commandName']){const _0x369a18=_0x516279['commandParams'][0x0]['forceValue'];return _0x5d333e(c(_0x4b30f4,_0x369a18?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x593270=>[_0x593270,null]));class Mt extends _0x54e516{static get['requires'](){return[Ct];}['afterInit'](){const _0x3c0d57=this['editor'];if(!_0x3c0d57['plugins']['has']('TableClipboard'))return;const _0x417ed4=_0x3c0d57['plugins']['get']('TrackChangesEditing'),_0x36ce93=_0x3c0d57['plugins']['get']('TableUtils'),_0x3a5d4f=_0x3c0d57['plugins']['get'](Ct),_0x5b2b9d=_0x3c0d57['plugins']['get']('TableClipboard');_0x3a5d4f['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x3c0d57['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x3c0d57['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x36d71f=null;_0x3c0d57['model']['on']('insertContent',(_0x397315,_0x2c689e)=>{const [_0x46e92b,_0x53a959]=_0x2c689e,_0x14a6fe=_0x2c689e[_0x2c689e['length']-0x1];_0x14a6fe&&_0x14a6fe['forceDefaultExecution']||_0x417ed4['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0xf9ff36,_0x363ab6,_0x6767a0,_0x435ed3,_0x34411b){if(_0x363ab6&&!_0x363ab6['is']('documentSelection'))return!0x1;const _0x26d85e=_0x34411b['getTableIfOnlyTableInContent'](_0xf9ff36,_0x6767a0);if(!_0x26d85e||!Ue(_0x26d85e,void 0x0,_0x435ed3))return!0x1;const _0x34e2ef=_0x435ed3['getSelectionAffectedTableCells'](_0x6767a0['document']['selection']);if(!_0x34e2ef['length'])return!0x1;const _0x4f61ca=_0x34e2ef[0x0]['findAncestor']('table'),_0x91d11f=_0x435ed3['getRowIndexes'](_0x34e2ef),_0x1f6001=_0x435ed3['getColumnIndexes'](_0x34e2ef),_0x5dfe6c={'startRow':_0x91d11f['first'],'endRow':_0x91d11f['last'],'startColumn':_0x1f6001['first'],'endColumn':_0x1f6001['last']};return 0x1==_0x34e2ef['length']&&(_0x5dfe6c['endRow']+=_0x435ed3['getRows'](_0x26d85e)-0x1,_0x5dfe6c['endColumn']+=_0x435ed3['getColumns'](_0x26d85e)-0x1),Ue(_0x4f61ca,_0x5dfe6c,_0x435ed3);}(_0x46e92b,_0x53a959,_0x3c0d57['model'],_0x36ce93,_0x5b2b9d)&&(_0x397315['stop'](),_0x36d71f={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x3c0d57['model']['change'](()=>{_0x3c0d57['model']['insertContent'](_0x2c689e[0x0],_0x2c689e[0x1],_0x2c689e[0x2],{'forceDefaultExecution':!0x0});const _0x506bd0=_0x5310dd(),{rowInsertionRanges:_0x50af2a,columnInsertionRanges:_0x5c52a8,insertionRanges:_0x3fdfd9,deletionRanges:_0x3e9b2d,cells:_0x136596}=_0x36d71f;_0x50af2a['length']&&_0x417ed4['markMultiRangeInsertion'](_0x50af2a,'tablePasteRow',{'tablePasteChainId':_0x506bd0}),_0x5c52a8['length']&&_0x417ed4['markMultiRangeInsertion'](_0x5c52a8,'tablePasteColumn',{'tablePasteChainId':_0x506bd0}),_0x3fdfd9['length']&&(_0x417ed4['markMultiRangeInsertion'](_0x3fdfd9,'tablePaste',{'tablePasteChainId':_0x506bd0,'skipNestingCheck':!0x0}),_0x3fdfd9['forEach'](_0x1c7bc5=>_0x1c7bc5['detach']?.())),_0x3e9b2d['length']&&(_0x417ed4['markMultiRangeDeletion'](_0x3e9b2d,'tablePaste',{'tablePasteChainId':_0x506bd0,'skipNestingCheck':!0x0}),_0x3e9b2d['forEach'](_0x5e2a85=>_0x5e2a85['detach']?.()));const _0x5aac76=_0x417ed4['markMultiRangeBlockFormat'](_0x136596['map'](({element:_0x50c006})=>_0x50c006),{'formatGroupId':_0x5310dd()},[],'tablePasteCell',{'tablePasteChainId':_0x506bd0});if(_0x5aac76){const _0x24043c=_0x5aac76['getMarkers'](),_0x1b890f=[];for(const {element:_0x2ab80d,attributes:_0x59def1}of _0x136596){if(!_0x59def1)continue;const _0x5351de=_0x3c0d57['model']['createRangeOn'](_0x2ab80d),_0x8055f6=_0x24043c['find'](_0x5c71fe=>_0x5c71fe['getRange']()['isEqual'](_0x5351de));_0x8055f6&&_0x1b890f['push']([_0x8055f6['name'],_0x59def1]);}_0x1b890f['length']&&_0x5aac76['setAttribute']('markerAttributes',Object['fromEntries'](_0x1b890f));}_0x36d71f=null;}));},{'priority':_0x2800bb['high']+0xa}),_0x3c0d57['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x4649f3,_0x42c700)=>{const [_0x3bac00,_0x5b588b,,_0x53c5fb]=_0x42c700;if(!_0x36d71f)return;_0x4649f3['stop']();const _0x37acf5=_0x3bac00['cell'],_0x30f77b=_0x5b588b,_0x58cdb6=Oe(_0x37acf5),_0x368b2e=Oe(_0x30f77b);_0x4649f3['return']=_0x37acf5;let _0x512c77=null,_0x46c362=null;if(_0x368b2e||_0x58cdb6){if(_0x58cdb6&&!_0x368b2e){_0x53c5fb['remove'](_0x37acf5['getChild'](0x0));for(const _0x698492 of Array['from'](_0x30f77b['getChildren']()))_0x53c5fb['insert'](_0x698492,_0x37acf5,'end');const _0x5287ea=_0x36d71f['rowInsertionIndexes']['includes'](_0x3bac00['row']),_0x53ad88=_0x36d71f['columnInsertionIndexes']['includes'](_0x3bac00['column']);_0x5287ea||_0x53ad88||(_0x512c77=_0x6b53b6['fromRange'](_0x53c5fb['createRangeIn'](_0x37acf5)));}else _0x368b2e&&!_0x58cdb6&&(_0x46c362=_0x53c5fb['createRangeIn'](_0x37acf5));}else{const _0x2bf929=_0x53c5fb['createElement']('tableCellSuggestion'),_0x4d6c06=_0x53c5fb['createElement']('tableCellSuggestion');_0x53c5fb['wrap'](_0x53c5fb['createRangeIn'](_0x37acf5),_0x4d6c06),_0x53c5fb['insert'](_0x2bf929,_0x37acf5,0x0);for(const _0x1dac04 of Array['from'](_0x30f77b['getChildren']()))_0x53c5fb['insert'](_0x1dac04,_0x2bf929,'end');_0x512c77=_0x6b53b6['fromRange'](_0x53c5fb['createRangeOn'](_0x2bf929)),_0x46c362=_0x6b53b6['fromRange'](_0x53c5fb['createRangeOn'](_0x4d6c06));}const _0x3b90fe=Array['from'](_0x30f77b['getAttributes']())['filter'](([_0x4a4a3c])=>Be['includes'](_0x4a4a3c));_0x36d71f['cells']['push']({'element':_0x37acf5,'attributes':_0x3b90fe['length']?Object['fromEntries'](_0x3b90fe):null}),_0x512c77&&_0x36d71f['insertionRanges']['push'](_0x512c77),_0x46c362&&_0x36d71f['deletionRanges']['push'](_0x46c362);},{'priority':'high'}),_0x36ce93['on']('insertColumns',(_0x398cbe,_0x2c0855)=>{const [_0x32d4d2,_0x250bb4={}]=_0x2c0855;if(!_0x36d71f)return;const _0x2dc524=_0x250bb4['at']||0x0,_0x51aed9=_0x250bb4['columns']||0x1;_0x36d71f['columnInsertionIndexes']=new Array(_0x51aed9)['fill'](_0x2dc524)['map']((_0x4255bc,_0x40eae7)=>_0x4255bc+_0x40eae7);for(const {cell:_0x3ecffa}of _0x36ce93['createTableWalker'](_0x32d4d2,{'startColumn':_0x2dc524,'endColumn':_0x2dc524+_0x51aed9-0x1}))_0x36d71f['columnInsertionRanges']['push'](_0x3c0d57['model']['createRangeOn'](_0x3ecffa));},{'priority':'low'}),_0x36ce93['on']('insertRows',(_0x368771,_0x2a1c9b)=>{const [_0x394a3b,_0x46ce80={}]=_0x2a1c9b;if(!_0x36d71f)return;const _0x226871=_0x46ce80['at']||0x0,_0x59a2b9=_0x46ce80['rows']||0x1;_0x36d71f['rowInsertionIndexes']=new Array(_0x59a2b9)['fill'](_0x226871)['map']((_0x4f0179,_0x4335d1)=>_0x4f0179+_0x4335d1);for(const {cell:_0x5e8dbf}of _0x36ce93['createTableWalker'](_0x394a3b,{'startRow':_0x226871,'endRow':_0x226871+_0x59a2b9-0x1}))_0x36d71f['rowInsertionRanges']['push'](_0x3c0d57['model']['createRangeOn'](_0x5e8dbf));},{'priority':'low'}),_0x417ed4['descriptionFactory']['registerDescriptionCallback'](_0x1235de=>{if(_0x1235de['subType']&&_0x1235de['subType']['startsWith']('tablePaste'))return _0x1235de['previous']?{}:{'type':'insertion','content':c(_0x3c0d57['locale'],'*Replace\x20table\x20cells*')};});const _0x50a128=()=>!0x1;for(const _0x51926b of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x417ed4['_suggestionFactory']['registerCustomCallback']('insertion',_0x51926b,'join',_0x50a128),_0x417ed4['_suggestionFactory']['registerCustomCallback']('deletion',_0x51926b,'join',_0x50a128),_0x417ed4['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x51926b,'join',_0x50a128);_0x417ed4['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x50a128),_0x417ed4['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x3994d3,_0x3755e5,_0x4f4018)=>{const _0x23f182=_0x3994d3['map'](_0x55f569=>_0x55f569['getContainedElement']())['filter'](_0x3e0522=>_0x3e0522),_0x3dfcd8=new Map(_0x23f182['map'](_0x16059f=>[_0x16059f,null]));if(_0x36d71f){for(const {element:_0x420b9e,attributes:_0x53cee3}of _0x36d71f['cells'])_0x53cee3&&_0x3dfcd8['set'](_0x420b9e,_0x53cee3);}else{if(_0x4f4018&&_0x4f4018['markerAttributes'])for(const [_0x1cbc5b,_0x1d81d2]of Object['entries'](_0x4f4018['markerAttributes'])){const _0x52e044=_0x3c0d57['model']['markers']['get'](_0x1cbc5b),_0x12f7d9=_0x52e044?_0x52e044['getRange']()['getContainedElement']():null;_0x12f7d9&&_0x3dfcd8['set'](_0x12f7d9,_0x1d81d2);}}_0x3c0d57['model']['change'](_0x3c28be=>{for(const [_0x3105b9,_0x5d71c1]of _0x3dfcd8)_0x3c28be['setAttributes']({...xe,..._0x5d71c1},_0x3105b9);});});const _0x26af16=(_0x2aebd4,_0x307705)=>{_0x417ed4['_suggestionFactory']['registerCustomCallback'](_0x2aebd4,'tablePaste',_0x307705,(_0x167e3e,_0x35bab5,_0x302706)=>{_0x3c0d57['model']['change'](_0x4e2f07=>{const _0x11bc43=[];for(const _0x29e830 of _0x167e3e){const _0x45383c=_0x29e830['start']['nodeAfter'];_0x45383c['is']('element','tableCellSuggestion')&&_0x11bc43['push'](_0x45383c);}_0x417ed4['_suggestionFactory']['getSuggestionCallback'](_0x2aebd4,null,_0x307705)(_0x167e3e,_0x35bab5,_0x302706);for(const _0x1f794a of _0x11bc43)'$graveyard'!=_0x1f794a['root']['rootName']&&_0x4e2f07['unwrap'](_0x1f794a);});});};_0x26af16('insertion','accept'),_0x26af16('insertion','discard'),_0x26af16('deletion','accept'),_0x26af16('deletion','discard'),_0x417ed4['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x56a900=>{const _0x2b56d0=_0x56a900['map'](_0x92b069=>_0x92b069['getContainedElement']()),_0x158c28=_0x2b56d0[0x0]['findAncestor']('table'),{minRow:_0x495106,maxRow:_0x47793e}=_0x3a5d4f['_getCoordsForCells'](_0x2b56d0);_0x36ce93['removeRows'](_0x158c28,{'at':_0x495106,'rows':_0x47793e-_0x495106+0x1});}),_0x417ed4['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x480e9a=>{const _0x6a1677=_0x480e9a['map'](_0x288893=>_0x288893['getContainedElement']()),_0x69e176=_0x6a1677[0x0]['findAncestor']('table'),{minColumn:_0x23d9df,maxColumn:_0x168ff0}=_0x3a5d4f['_getCoordsForCells'](_0x6a1677);_0x36ce93['removeColumns'](_0x69e176,{'at':_0x23d9df,'columns':_0x168ff0-_0x23d9df+0x1});});const _0x1d79f1=(_0x205450,_0x525376)=>{if(!_0x525376['subType']||!_0x525376['subType']['startsWith']('tablePaste'))return;const _0x5b96e2=_0x525376['attributes']['tablePasteChainId'],_0x3beac1=_0x417ed4['getSuggestions']()['filter'](_0x33a56b=>_0x33a56b['isInContent']&&_0x33a56b['attributes']&&_0x33a56b['attributes']['tablePasteChainId']==_0x5b96e2);_0x3beac1['length']&&_0x525376['getAllAdjacentSuggestions']()['length']!=_0x3beac1['length']&&_0x3beac1['reduce']((_0xd4bcbf,_0x45776f)=>(_0xd4bcbf['next']=_0x45776f,_0x45776f['previous']=_0xd4bcbf,_0x45776f));};function _0x1f763d(_0x444160,_0x33b2ba=!0x0){const {id:_0x728fba,authorId:_0xe11c63}=_0x417ed4['_splitMarkerName'](_0x444160['markerName']),_0x4d13c1=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x494dc2=_0x417ed4['activeMarkers']['includes'](_0x444160['markerName']);return _0x494dc2&&_0x4d13c1['push']('ck-suggestion-marker--active'),{'classes':_0x4d13c1,'attributes':{'data-suggestion':_0x728fba,'data-author-id':_0xe11c63},'priority':_0x494dc2&&_0x33b2ba?0xbc2:0xbb8};}_0x417ed4['on']('suggestionLoaded',_0x1d79f1,{'priority':'high'}),_0x417ed4['on']('suggestionUnloaded',_0x1d79f1,{'priority':'high'}),_0x3c0d57['model']['document']['registerPostFixer'](()=>{let _0x3863fc=!0x1;const _0x41a261=Array['from'](_0x3c0d57['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x147ef6,data:_0x23c08d}of _0x41a261){const {group:_0x15ee5b,type:_0x2feadf,id:_0x3e2ca0}=_0x417ed4['_splitMarkerName'](_0x147ef6);if('suggestion'!=_0x15ee5b||'deletion'!=_0x2feadf||_0x23c08d['oldRange'])continue;if(!_0x417ed4['hasSuggestion'](_0x3e2ca0))continue;const _0x306b77=_0x417ed4['getSuggestion'](_0x3e2ca0)['getRanges'](),_0xf22f22=_0x3c0d57['plugins']['get']('Users')['me'];for(const _0x306831 of _0x417ed4['getSuggestions']()){if(!_0x306831['isInContent']||_0x306831['author']!=_0xf22f22)continue;if('formatBlock'!=_0x306831['type']||'tablePasteCell'!=_0x306831['subType'])continue;if(_0x306831['getRanges']()['every'](_0x5cd5b0=>_0x306b77['some'](_0x537f5e=>_0x537f5e['containsRange'](_0x5cd5b0,!0x0)))){for(const _0x2a53a9 of _0x306831['getAllAdjacentSuggestions']())_0x2a53a9['isInContent']&&(_0x2a53a9['discard'](),_0x3863fc=!0x0);}}}return _0x3863fc;}),_0x3c0d57['model']['document']['registerPostFixer'](_0x5768e0=>{const _0x49b519=_0x3c0d57['commands']['get']('redo');if(!_0x49b519||!_0x49b519['_createdBatches']['has'](_0x5768e0['batch']))return!0x1;let _0x216185=!0x1;const _0xa23237=_0x3c0d57['plugins']['get']('Users')['me'],_0x52d263=_0x3c0d57['model']['document']['differ']['getChanges'](),_0x5124ec=Array['from'](_0x3c0d57['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x4693ba,data:_0x56d024})=>{const {group:_0x20e584,subType:_0x4301ad,authorId:_0x4ab268}=_0x417ed4['_splitMarkerName'](_0x4693ba);return'suggestion'==_0x20e584&&'tablePaste'==_0x4301ad&&_0x4ab268==_0xa23237['id']&&!_0x56d024['oldRange'];});for(const _0x35a309 of _0x52d263){if('insert'!=_0x35a309['type']||'tableCellSuggestion'!=_0x35a309['name']||0x1!=_0x35a309['length'])continue;const _0x326979=_0x5768e0['createRange'](_0x35a309['position'],_0x35a309['position']['getShiftedBy'](0x1));if(!_0x5124ec['find'](({data:_0x54e454})=>_0x54e454['newRange']['isEqual'](_0x326979))){for(const {name:_0x461ce0,data:_0x2e9df0}of _0x5124ec)if(_0x326979['containsRange'](_0x2e9df0['newRange'])){_0x5768e0['updateMarker'](_0x461ce0,{'range':_0x326979}),_0x216185=!0x0;break;}}}return _0x216185;}),_0x3c0d57['model']['document']['registerPostFixer'](_0x1147f1=>{let _0x468758=!0x1;const _0x538c96=_0x3c0d57['plugins']['get']('Users')['me'],_0x15ced6=_0x417ed4['getSuggestions']()['filter'](_0x426a27=>_0x426a27['isInContent']&&_0x426a27['author']==_0x538c96),_0x3cc81b=new Set(),_0x254a6b=new Set();for(const _0x2bb7c4 of _0x15ced6)if('tablePaste'==_0x2bb7c4['subType'])for(const _0x218e21 of _0x2bb7c4['getMarkers']()){const _0x470ed5=_0x218e21['getRange']()['getContainedElement']();if(_0x470ed5){if(_0x470ed5['is']('element','tableCellSuggestion')&&Oe(_0x470ed5)){_0x2bb7c4['removeMarker'](_0x218e21['name']),_0x3cc81b['add'](_0x470ed5),_0x468758=!0x0;const _0x523e6f=_0x470ed5['nextSibling'],_0xab002b=_0x470ed5['previousSibling'],_0x13efb2=_0x523e6f&&_0x523e6f['is']('element','tableCellSuggestion'),_0x4ce264=_0xab002b&&_0xab002b['is']('element','tableCellSuggestion');_0x13efb2&&!_0x3cc81b['has'](_0x523e6f)&&_0x254a6b['add'](_0x523e6f),_0x4ce264&&!_0x3cc81b['has'](_0xab002b)&&_0x254a6b['add'](_0xab002b);}else _0x470ed5['is']('element','paragraph')&&_0x470ed5['isEmpty']&&(_0x2bb7c4['removeMarker'](_0x218e21['name']),_0x468758=!0x0);}}else{if('tablePasteCell'==_0x2bb7c4['subType']){if(!_0x2bb7c4['attributes']||!_0x2bb7c4['attributes']['tablePasteChainId'])continue;const _0x2e3eaf=_0x2bb7c4['attributes']['markerAttributes'];if(_0x2e3eaf&&Object['keys'](_0x2e3eaf)['length'])continue;const _0x2ecf09=_0x2bb7c4['attributes']['tablePasteChainId'];let _0x4c4d60=!0x0,_0x367165=!0x0;for(const _0x18db75 of _0x15ced6)if(_0x18db75['subType']&&_0x18db75['subType']['startsWith']('tablePaste')){if(!_0x18db75['attributes']['tablePasteChainId']){_0x367165=!0x1;break;}if(_0x18db75['id']!=_0x2bb7c4['id']&&_0x18db75['attributes']['tablePasteChainId']==_0x2ecf09){_0x4c4d60=!0x1;break;}}_0x367165&&_0x4c4d60&&(_0x2bb7c4['removeMarkers'](),_0x468758=!0x0);}}for(const _0x3d80e1 of _0x3cc81b)_0x1147f1['remove'](_0x3d80e1);for(const _0x1d3c5e of _0x254a6b)_0x1147f1['unwrap'](_0x1d3c5e);return _0x468758;}),_0x3c0d57['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x56a836=>_0x1f763d(_0x56a836),'converterPriority':'high'}),_0x3c0d57['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x178470,_0x38f9b7)=>_0x38f9b7['options']['showSuggestionHighlights']?_0x1f763d(_0x178470,!0x1):null,'converterPriority':'high'});const _0x27a881=_0x3c0d57['editing']['view'];this['listenTo'](_0x27a881['document'],'clipboardOutput',(_0xa38c5d,_0x3b5b82)=>{const _0xf563d9=[];for(const _0xa5d82f of _0x27a881['createRangeIn'](_0x3b5b82['content'])['getItems']())_0xa5d82f['is']('element','suggestion-td')&&_0xf563d9['push'](_0xa5d82f);_0x27a881['change'](_0x540864=>{for(const _0xdbac5a of _0xf563d9)_0x540864['move'](_0x540864['createRangeIn'](_0xdbac5a),_0x540864['createPositionBefore'](_0xdbac5a)),_0x540864['remove'](_0xdbac5a);});});}}function Oe(_0xf166b4){if(_0xf166b4['isEmpty'])return!0x0;const _0xa19683=_0xf166b4['getChild'](0x0);return _0xa19683['is']('element','paragraph')&&_0xa19683['isEmpty'];}function Ue(_0x89ffb9,_0x33538a={},_0x18395b){for(const {isAnchor:_0x4cb5c3,cellHeight:_0x1dc547,cellWidth:_0x57f88d}of _0x18395b['createTableWalker'](_0x89ffb9,{'includeAllSlots':!0x0,..._0x33538a}))if(!_0x4cb5c3||0x1!=_0x1dc547||0x1!=_0x57f88d)return!0x1;return!0x0;}class $t extends _0x54e516{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x37afda=this['editor']['plugins']['get']('TrackChangesEditing');_0x37afda['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x37afda['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x37afda['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x37afda['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x37afda['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x37afda['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x87ed47,_0x36fc61){const _0x2c46e5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2c0cc6=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x11828f=_0x36fc61['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x2be5c7=_0x2c0cc6['getColumnGroupElement'](_0x11828f);let _0x146d30=_0x2be5c7?_0x2c0cc6['getTableColumnsWidths'](_0x2be5c7):null,_0x4e5401=_0x11828f['getAttribute']('tableWidth')||null;const _0x315e7f=_0x36fc61['tableWidth']||_0x4e5401,_0x4e9b60=_0x36fc61['columnWidths']||_0x146d30,_0x11824e=this['editor']['plugins']['get']('Users')['me'];for(const _0x48e76a of _0x2c46e5['getSuggestions']()){const _0x1daa20=_0x48e76a['getContainedElement']();if('resizeTable'===_0x48e76a['subType']&&_0x1daa20===_0x11828f){_0x48e76a['author']!==_0x11824e&&_0x48e76a['discard']();const _0x42bcec=_0x48e76a['data']['commandParams'];_0x4e5401=_0x42bcec[0x0]['tableWidth'],_0x146d30=_0x42bcec[0x0]['columnWidths'];break;}}_0x87ed47({'table':_0x11828f,'tableWidth':_0x315e7f,'columnWidths':_0x4e9b60}),_0x2c46e5['markBlockFormat'](_0x11828f,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x4e5401,'columnWidths':_0x146d30}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x54d51e){if('formatBlock'!=_0x54d51e['type']&&'formatInline'!=_0x54d51e['type'])return;const {data:_0x1d7a56}=_0x54d51e;if(_0x1d7a56&&'resizeTable'===_0x1d7a56['formatGroupId']){const _0x384960='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x384960)};}}}class Bt extends _0x54e516{['afterInit'](){const _0x310a83=this['editor'];_0x310a83['plugins']['has']('Template')&&_0x310a83['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x54e516{['afterInit'](){const _0x19a4e4=this['editor'];if(!_0x19a4e4['commands']['get']('insertTableOfContents'))return;_0x19a4e4['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x123976=_0x19a4e4['plugins']['get']('TrackChangesEditing'),_0x3a2b4c=_0x19a4e4['locale'];_0x123976['descriptionFactory']['registerElementLabel']('tableOfContents',_0x478182=>c(_0x3a2b4c,'ELEMENT_TABLE_OF_CONTENTS',_0x478182));}}class Rt extends _0x54e516{['afterInit'](){const _0x1509bf=this['editor'];if(!_0x1509bf['plugins']['has']('Title'))return;const _0x1d051f=_0x1509bf['plugins']['get']('TrackChangesEditing');_0x1d051f['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x1509bf['locale'],'ELEMENT_TITLE')),_0x1509bf['model']['document']['registerPostFixer'](_0x26ce2a=>{let _0x1e2dfc=!0x1;const _0x4f0d81=Array['from'](_0x1509bf['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3743f8,data:_0x555a27}of _0x4f0d81){const {group:_0x29de50}=_0x1d051f['_splitMarkerName'](_0x3743f8);if('suggestion'!==_0x29de50||!_0x555a27['newRange'])continue;const _0x5a923b=_0x555a27['newRange'],_0x2e0096=_0x5a923b['end']['nodeBefore'];if(!_0x2e0096||!_0x2e0096['is']('element','title-content'))continue;if(!_0x5a923b['start']['isTouching'](_0x5a923b['end']))continue;const _0x599c77=_0x1509bf['model']['schema']['getNearestSelectionRange'](_0x5a923b['end'],'forward');if(_0x599c77&&_0x599c77['isCollapsed']){const _0x533b33=_0x26ce2a['createRange'](_0x5a923b['start'],_0x599c77['start']);_0x533b33['isEqual'](_0x5a923b)||(_0x26ce2a['updateMarker'](_0x3743f8,{'range':_0x533b33}),_0x1e2dfc=!0x0);}_0x1e2dfc||(_0x26ce2a['removeMarker'](_0x3743f8),_0x1e2dfc=!0x0);}return _0x1e2dfc;});}}class xt extends _0x54e516{['afterInit'](){const _0x1c0bc3=this['editor'],_0x3cf4f8=_0x1c0bc3['plugins']['get']('TrackChangesEditing');_0x1c0bc3['plugins']['has']('Uploadcare')&&(_0x3cf4f8['enableCommand']('uploadcare'),_0x1c0bc3['plugins']['has']('UploadcareImageEdit')&&(_0x3cf4f8['enableCommand']('uploadcareImageEdit'),_0x3cf4f8['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x3cf4f8['registerBlockAttribute']('uploadcareImageId'),_0x3cf4f8['descriptionFactory']['registerDescriptionCallback'](_0x19775f=>{if('attribute'!=_0x19775f['type'])return;const {data:_0xa4f5c0}=_0x19775f;return _0xa4f5c0&&'uploadcareImageId'==_0xa4f5c0['key']?{'type':'format','content':''}:void 0x0;})));}}class Tt extends _0x54e516{['afterInit'](){const _0x313f25=this['editor'],_0x1d7a6b=_0x313f25['plugins']['get']('TrackChangesEditing');_0x313f25['plugins']['has']('UndoEditing')&&(_0x1d7a6b['enableCommand']('undo'),_0x1d7a6b['enableCommand']('redo'));}}class Et extends _0x54e516{static get['requires'](){return[Ct];}['afterInit'](){const _0x1b9650=this['editor'];if(!_0x1b9650['plugins']['has']('TableCaptionEditing'))return;_0x1b9650['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ut extends _0x54e516{['tableProperties'];['tableCellProperties'];constructor(_0x103880){super(_0x103880),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x34940b=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x2f6621 of this['tableProperties'])_0x34940b['enableCommand'](_0x2f6621,(_0x6f244e,_0x133526)=>{const _0x596914=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x2f6621,[_0x596914],this['tableProperties'],'tableProperties',_0x6f244e,_0x133526);});_0x34940b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x34940b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x34940b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x3e786c,_0xe7a2f0)=>this['handleDiscardAction'](this['tableProperties'],_0x3e786c,_0xe7a2f0)),_0x34940b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0xc8ab38 of this['tableCellProperties'])_0x34940b['enableCommand'](_0xc8ab38,(_0x2b3db3,_0x353a2d)=>{const _0x9f2226=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0xc8ab38,_0x9f2226,this['tableCellProperties'],'tableCellProperties',_0x2b3db3,_0x353a2d);});_0x34940b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x34940b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x34940b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x2b8c07,_0x1074d5)=>this['handleDiscardAction'](this['tableCellProperties'],_0x2b8c07,_0x1074d5)),_0x34940b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x34940b['descriptionFactory']['registerDescriptionCallback'](_0x39809f=>this['handleSuggestionDescription'](_0x39809f));}['_handlePropertyChange'](_0x36d99a,_0x314aa9,_0x479580,_0x222a44,_0x36961a,_0x5add81){const _0x1d3485=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x5add81['batch'],()=>{for(const _0x43996c of _0x314aa9){if(this['_getSuggestion'](_0x43996c,_0x222a44))_0x36961a(_0x5add81);else{const _0x2a2260={};for(const _0x3f3572 of _0x479580){const _0x261840=_0x43996c['getAttribute'](_0x3f3572);void 0x0!==_0x261840&&(_0x2a2260[_0x3f3572]=_0x261840);}_0x36961a(_0x5add81),_0x1d3485['markBlockFormat'](_0x43996c,{'commandParams':[_0x2a2260]},[],_0x222a44);}}});}['handleDiscardAction'](_0x3c4070,_0x3a1e4,_0x2cc784){const _0x4d7c48=_0x3a1e4[0x0]['start']['nodeAfter'],_0x574e9f=_0x2cc784['commandParams'][0x0];this['editor']['model']['change'](_0x32f683=>{for(const _0x5d1041 of _0x3c4070)void 0x0!==_0x574e9f[_0x5d1041]?_0x32f683['setAttribute'](_0x5d1041,_0x574e9f[_0x5d1041],_0x4d7c48):_0x32f683['removeAttribute'](_0x5d1041,_0x4d7c48);});}['handleSuggestionDescription'](_0x1fcde6){if(_0x1fcde6['data'])switch(_0x1fcde6['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0xe58193,_0x2a39b2){const _0x1898d1=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x1f69e5 of _0x1898d1['getSuggestions']({'skipNotAttached':!0x0})){const _0x38350e=_0x1f69e5['getContainedElement']();if(_0x1f69e5['subType']===_0x2a39b2&&_0x38350e===_0xe58193)return _0x1f69e5;}return null;}}const u='$elementName';class p extends _0x54e516{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x25323f,_0x5cb8b7,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,et,nt,it,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,_t,vt,Ct,Nt,Dt,Et,Mt,$t,Ot,Ut,Bt,Rt,xt,Tt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x57f53e){super(_0x57f53e),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x3f9304,_0x12b8e0,_0x3d7813,_0x387fc2)=>{this['_model']['change'](()=>{for(const _0x514a79 of[..._0x387fc2,..._0x3d7813])this['_model']['markers']['has'](_0x514a79)&&_0x57f53e['editing']['reconvertMarker'](_0x514a79);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ft(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x57f53e['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0x57f53e['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x57f53e['config']['get']('trackChanges.trackFormatChanges'),_0x57f53e['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x57f53e['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x57f53e,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x236a90=this['editor'],_0x522909=(_0x5cfb83,_0x554f57)=>{if('attribute'!=_0x5cfb83)return'ck-suggestion-marker-'+_0x5cfb83;const _0x21e6a1=_0x554f57['split']('|')[0x0];return this['_isBlockAttribute'](_0x21e6a1)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x236a90['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x4f1f66=>{const {id:_0x33d03c,authorId:_0x4d1cd8,type:_0x56cb5c,subType:_0xcbce7f}=this['_splitMarkerName'](_0x4f1f66['markerName']),_0x2c8ba9=['ck-suggestion-marker',_0x522909(_0x56cb5c,_0xcbce7f)];let _0x7cbba8=0xbb8;return this['activeMarkers']['includes'](_0x4f1f66['markerName'])&&(_0x2c8ba9['push']('ck-suggestion-marker--active'),_0x7cbba8=0xbc2),'deletion'==_0x56cb5c&&(_0x7cbba8+=0x5),{'classes':_0x2c8ba9,'attributes':{'data-suggestion':_0x33d03c,'data-author-id':_0x4d1cd8},'priority':_0x7cbba8};}}),_0x236a90['conversion']['for']('dataDowncast')['add'](_0x1954dc=>{_0x1954dc['on']('addMarker:suggestion',(_0x567562,_0x438616,_0x8da66c)=>{if(!_0x8da66c['options']['showSuggestionHighlights'])return;const _0x29e4c9=_0x438616['item'];if(!_0x29e4c9)return;const _0x50dcc5=_0x8da66c['mapper']['toViewElement'](_0x29e4c9);_0x236a90['model']['schema']['isObject'](_0x29e4c9)&&_0x50dcc5&&!_0x50dcc5['getCustomProperty']('widget')&&_0x50dcc5['is']('containerElement')&&_0x2b5ac0(_0x50dcc5,_0x8da66c['writer']);},{'priority':'high'});}),_0x236a90['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x2418f6,_0x28a411)=>{if(!_0x28a411['options']['showSuggestionHighlights'])return null;const {type:_0x2addab,subType:_0x20be98}=this['_splitMarkerName'](_0x2418f6['markerName']);return{'classes':['ck-suggestion-marker',_0x522909(_0x2addab,_0x20be98)],'priority':0xbb8};}});const _0x516a6e=({showActiveMarkers:_0x47d27c=!0x0,isAttributeSuggestion:_0x5efb22=!0x1}={})=>(_0x6e2367,_0x3efe9b,_0x24a084)=>{if(!_0x3efe9b['item'])return;const {id:_0x34dfae,authorId:_0x253e1}=this['_splitMarkerName'](_0x3efe9b['markerName']);if(_0x5efb22){const _0x279f44=this['_suggestions']['get'](_0x34dfae),_0x4d2829=this['_getAttributeKey'](_0x279f44);if(!this['_isBlockAttribute'](_0x4d2829))return;}if(_0x3efe9b['item']['is']('selection'))return void _0x24a084['consumable']['consume'](_0x3efe9b['item'],_0x6e2367['name']);const _0x2dfa0a=_0x24a084['mapper']['toViewElement'](_0x3efe9b['item']);if(_0x3efe9b['item']['is']('element')&&_0x236a90['model']['schema']['isBlock'](_0x3efe9b['item'])&&!_0x2dfa0a['getCustomProperty']('addHighlight')){_0x24a084['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x2dfa0a),_0x24a084['writer']['setAttribute']('data-suggestion',_0x34dfae,_0x2dfa0a),_0x24a084['writer']['setAttribute']('data-author-id',_0x253e1,_0x2dfa0a),_0x24a084['mapper']['bindElementToMarker'](_0x2dfa0a,_0x3efe9b['markerName']),_0x47d27c&&(this['activeMarkers']['includes'](_0x3efe9b['markerName'])?_0x24a084['writer']['addClass']('ck-suggestion-marker--active',_0x2dfa0a):_0x24a084['writer']['removeClass']('ck-suggestion-marker--active',_0x2dfa0a));for(const _0x57d39d of _0x236a90['model']['createRangeIn'](_0x3efe9b['item'])['getItems']())_0x24a084['consumable']['consume'](_0x57d39d,_0x6e2367['name']);_0x24a084['consumable']['consume'](_0x3efe9b['item'],_0x6e2367['name']);}};_0x236a90['conversion']['for']('dataDowncast')['add'](_0xfe0c82=>{_0xfe0c82['on']('addMarker:suggestion:formatBlock',(_0x33b300,_0x19cc47,_0x1edae9)=>{_0x1edae9['options']['showSuggestionHighlights']&&_0x516a6e({'showActiveMarkers':!0x1})(_0x33b300,_0x19cc47,_0x1edae9);},{'priority':'highest'});}),_0x236a90['conversion']['for']('dataDowncast')['add'](_0x2e9bad=>{_0x2e9bad['on']('addMarker:suggestion:attribute',(_0x104054,_0x5438c5,_0x38f92a)=>{_0x38f92a['options']['showSuggestionHighlights']&&_0x516a6e({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x104054,_0x5438c5,_0x38f92a);},{'priority':'highest'});}),_0x236a90['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x3849c7,_0x4be598)=>_0x4be598['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x3849c7['substr'](0xb)}}),_0x236a90['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x387a16,{writer:_0x4649bb})=>{let _0x32f2ec='suggestion:'+_0x387a16['getAttribute']('suggestion-type')+':'+_0x387a16['getAttribute']('id');return _0x387a16['getAttribute']('marker-count')&&(_0x32f2ec+=':'+_0x387a16['getAttribute']('marker-count')),_0x4649bb['createElement']('$marker',{'data-name':_0x32f2ec});}}),_0x236a90['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x236a90['conversion']['for']('editingDowncast')['add'](_0x1920eb=>{_0x1920eb['on']('addMarker:suggestion:formatBlock',_0x516a6e(),{'priority':'high'});}),_0x236a90['conversion']['for']('editingDowncast')['add'](_0x265c97=>{_0x265c97['on']('addMarker:suggestion:attribute',_0x516a6e({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x236a90['conversion']['for']('editingDowncast')['add'](_0x470f64=>{_0x470f64['on']('removeMarker:suggestion:formatBlock',(_0xdfa3b4,_0x5a38b9,_0x476001)=>{const _0x4c1e4e=_0x476001['mapper']['markerNameToElements'](_0x5a38b9['markerName']);if(_0x4c1e4e){for(const _0x21ad1b of _0x4c1e4e)_0x21ad1b['getCustomProperty']('addHighlight')||(_0x476001['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x21ad1b),_0x476001['writer']['removeAttribute']('data-suggestion',_0x21ad1b),_0x476001['writer']['removeAttribute']('data-author-id',_0x21ad1b),_0x476001['mapper']['unbindElementFromMarkerName'](_0x21ad1b,_0x5a38b9['markerName']));}},{'priority':'high'});}),_0x236a90['conversion']['for']('editingDowncast')['add'](_0x226007=>{_0x226007['on']('removeMarker:suggestion:attribute',(_0x3aa953,_0x47cccd,_0xc172ef)=>{const _0x13be75=_0xc172ef['mapper']['markerNameToElements'](_0x47cccd['markerName']);if(!_0x13be75)return;const {id:_0x3499d9}=this['_splitMarkerName'](_0x47cccd['markerName']),_0x56c703=this['_suggestions']['get'](_0x3499d9),_0x7f952b=this['_getAttributeKey'](_0x56c703);if(this['_isBlockAttribute'](_0x7f952b)){for(const _0x3ab2e0 of _0x13be75)_0x3ab2e0['getCustomProperty']('addHighlight')||(_0xc172ef['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3ab2e0),_0xc172ef['writer']['removeAttribute']('data-suggestion',_0x3ab2e0),_0xc172ef['writer']['removeAttribute']('data-author-id',_0x3ab2e0),_0xc172ef['mapper']['unbindElementFromMarkerName'](_0x3ab2e0,_0x47cccd['markerName']));}},{'priority':'high'});}),_0x236a90['model']['document']['registerPostFixer'](_0x48ce19=>{let _0x286aeb=!0x1;const _0x50aae7=Array['from'](_0x236a90['model']['document']['differ']['getChangedMarkers']()),_0x377b46=new Set();for(const {name:_0x47fc23,data:_0x26fa5e}of _0x50aae7){const {group:_0x390df0,type:_0x2a9ee1,subType:_0x1638fe,id:_0xfacd4d}=this['_splitMarkerName'](_0x47fc23);if('suggestion'!==_0x390df0)continue;const _0x27bcde=this['_suggestions']['get'](_0xfacd4d);if(null!=_0x26fa5e['newRange']){'formatInline'==_0x2a9ee1&&(_0x286aeb=_0x286aeb||Lt(_0x26fa5e['newRange'],_0x47fc23,_0x48ce19,_0x236a90['model']['schema']));const _0x707966='attribute'==_0x2a9ee1&&this['_isBlockAttribute'](_0x1638fe['split']('|')[0x0]);if(_0x26fa5e['newRange']['isCollapsed']||'$graveyard'==_0x26fa5e['newRange']['root']['rootName']||'formatBlock'==_0x2a9ee1&&!Kt(_0x26fa5e['newRange'])||_0x707966&&!Kt(_0x26fa5e['newRange'])||'deletion'==_0x2a9ee1&&!(!Gt(_0x229c80=_0x26fa5e['newRange'])&&!function(_0x1c981a){return _0x1c981a['start']['parent']==_0x1c981a['end']['nodeBefore']&&_0x1c981a['start']['isAtEnd'];}(_0x229c80)))_0x48ce19['removeMarker'](_0x47fc23),_0x286aeb=!0x0;else{if(!_0x27bcde||!_0x27bcde['isInContent'])continue;if(_0x26fa5e['newRange']&&_0x26fa5e['oldRange']&&_0x26fa5e['newRange']['isEqual'](_0x26fa5e['oldRange']))continue;_0x377b46['add'](_0x27bcde);}}}var _0x229c80;return _0x377b46['size']>0x0&&(_0x286aeb=!!this['_joinWithAdjacentSuggestions'](_0x377b46)||_0x286aeb),_0x286aeb;}),_0x236a90['model']['document']['registerPostFixer'](_0x241db6=>{let _0x2214e0=!0x1;for(const _0xfff78e of _0x236a90['model']['document']['differ']['getChanges']())if('insert'==_0xfff78e['type'])for(const _0x100b13 of this['_suggestions']['values']()){if(_0x100b13['isMultiRange']||!_0x100b13['isInContent'])continue;const _0x34d917='formatBlock'==_0x100b13['type'],_0x3a76c8=this['_getAttributeKey'](_0x100b13),_0x38d5b1=_0x3a76c8&&this['_isBlockAttribute'](_0x3a76c8);if(!_0x34d917&&!_0x38d5b1)continue;const _0x5a6a38=_0x100b13['getFirstRange']();if(_0x5a6a38['start']['parent']!=_0x5a6a38['end']['parent']&&!_0x5a6a38['end']['isAtEnd']){const _0x1c3f91=_0x236a90['model']['createPositionAt'](_0x5a6a38['start']['nodeAfter'],'end'),_0x1ee40a=_0x236a90['model']['createRange'](_0x5a6a38['start'],_0x1c3f91);_0x241db6['updateMarker'](_0x100b13['getFirstMarker'](),{'range':_0x1ee40a}),_0x2214e0=!0x0;}}return _0x2214e0;}),_0x236a90['model']['document']['registerPostFixer'](_0x19aeb2=>this['_processAttributeChanges'](_0x19aeb2)),_0x236a90['model']['document']['registerPostFixer'](_0x594003=>!_0x594003['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x594003)),_0x236a90['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x236a90['model']['document']['on']('change:data',(_0x817efe,_0xfee1a8)=>{if(!_0xfee1a8['isLocal']||_0xfee1a8['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x26a1e6=_0x236a90['model']['document']['differ']['getChanges']();if(0x0==_0x26a1e6['length'])return;const _0x341607=[],_0xe957e6=_0x26a1e6['filter'](_0x2fcc89=>'attribute'==_0x2fcc89['type']),_0x515572=_0x26a1e6['filter'](_0x3a950a=>'insert'==_0x3a950a['type']&&'$text'!=_0x3a950a['name']);for(const _0x5a6c87 of _0xe957e6)this['_isRegisteredAttribute'](_0x5a6c87['attributeKey'])&&_0x341607['push']({'key':_0x5a6c87['attributeKey'],'newValue':_0x5a6c87['attributeNewValue'],'oldValue':_0x5a6c87['attributeOldValue'],'range':Ht(_0x5a6c87['range'],_0x236a90['model'])});for(const _0x5dec17 of _0x515572){if('rename'!=_0x5dec17['action']&&'refresh'!=_0x5dec17['action'])continue;const _0x49619f=qt(_0x5dec17['position']['nodeAfter'],_0x236a90['model']),_0x49560e=_0x5dec17['before'];'rename'==_0x5dec17['action']&&_0x341607['push']({'key':u,'newValue':_0x5dec17['name'],'oldValue':_0x49560e['name'],'range':_0x49619f});for(const [_0x5e923e,_0x2905d8]of _0x49560e['attributes']){if(!this['_isRegisteredAttribute'](_0x5e923e))continue;const _0x542361=_0x5dec17['attributes']['get'](_0x5e923e);_0x2905d8!==_0x542361&&_0x341607['push']({'key':_0x5e923e,'newValue':_0x542361,'oldValue':_0x2905d8,'range':_0x49619f});}for(const [_0x2db9fe,_0x1f736d]of _0x5dec17['attributes'])this['_isRegisteredAttribute'](_0x2db9fe)&&(_0x49560e['attributes']['has'](_0x2db9fe)||_0x341607['push']({'key':_0x2db9fe,'newValue':_0x1f736d,'oldValue':null,'range':_0x49619f}));}0x0!=_0x341607['length']&&_0x236a90['model']['enqueueChange'](_0xfee1a8,_0x495381=>{const _0x1b1022=_0x5310dd();for(const {range:_0x12812e,key:_0x2f961a,oldValue:_0x3a83c5,newValue:_0x468c}of _0x341607)this['markAttributeChange'](_0x12812e,_0x2f961a,_0x3a83c5,_0x468c,{'groupId':_0x1b1022});this['_reduceExistingSuggestions'](_0x495381,_0x341607);});},{'priority':'lowest'}),_0x236a90['model']['markers']['on']('update:suggestion',(_0x1defa4,_0x1d5d91,_0x52b951)=>{if(null==_0x52b951){const {id:_0x17afca}=this['_splitMarkerName'](_0x1d5d91['name']),_0x3c901f=this['_suggestions']['get'](_0x17afca);_0x3c901f&&_0x3c901f['addMarkerName'](_0x1d5d91['name']);}}),_0x236a90['model']['document']['on']('change:data',()=>{const _0x950b78=Array['from'](_0x236a90['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5c5051=>'suggestion'===this['_splitMarkerName'](_0x5c5051['name'])['group']);if(0x0===_0x950b78['length'])return;_0x950b78['sort']((_0x1989f3,_0x14ff54)=>{const _0x38606a=_0x1989f3['data']['oldRange'],_0x259a00=_0x14ff54['data']['oldRange'];return null===_0x38606a&&null===_0x259a00?0x0:null===_0x38606a&&null!==_0x259a00?-0x1:null!==_0x38606a&&null===_0x259a00?0x1:_0x38606a['start']['isBefore'](_0x259a00['start'])?-0x1:0x1;});const _0x149475=new Set(),_0x47258d=new Set();for(const {name:_0x30ca30,data:_0x197749}of _0x950b78){const {id:_0x23fadd}=this['_splitMarkerName'](_0x30ca30);if(null===_0x197749['oldRange']){const _0x55fcc8=this['_handleNewSuggestionMarker'](_0x30ca30);_0x47258d['add'](_0x55fcc8);}else{const _0x499246=this['_suggestions']['get'](_0x23fadd);null!==_0x197749['newRange']||_0x499246['isInContent']?(_0x149475['add'](_0x499246['head']),_0x47258d['add'](_0x499246)):this['_removeSuggestion'](_0x499246);}}_0x47258d['size']>0x0&&this['_refreshSuggestionsChain'](_0x47258d);for(const _0x37bec2 of _0x149475)this['fire']('suggestionChanged',_0x37bec2);}),_0x236a90['model']['on']('applyOperation',(_0x50cfbd,_0x5c07f0)=>{const _0x1c34cd=_0x5c07f0[0x0];if(!this['_suggestions']['size'])return;if(!_0x1c34cd['isDocumentOperation'])return;if(_0x1c34cd['batch']['isUndo']||!_0x1c34cd['batch']['isLocal'])return;let _0x599fb0,_0x1e10e8;switch(_0x1c34cd['type']){case'insert':_0x599fb0=_0x236a90['model']['createPositionAt'](_0x1c34cd['position']),_0x1e10e8=_0x599fb0['getShiftedBy'](_0x1c34cd['howMany']);break;case'split':_0x599fb0=_0x236a90['model']['createPositionAt'](_0x1c34cd['splitPosition']),_0x1e10e8=_0x236a90['model']['createPositionAt'](_0x1c34cd['moveTargetPosition']);break;case'move':_0x599fb0=_0x236a90['model']['createPositionAt'](_0x1c34cd['targetPosition']),_0x1e10e8=_0x599fb0['getShiftedBy'](_0x1c34cd['howMany']);break;default:return;}const _0x394e27=_0x236a90['model']['createRange'](_0x599fb0,_0x1e10e8);_0x236a90['model']['change'](()=>{for(const {suggestion:_0x2911c8,meta:_0xc98454}of this['_findSuggestions'](_0x394e27)){if(_0x2911c8['isMultiRange'])continue;if('formatInline'==_0x2911c8['type'])continue;const _0x37fe9d=this['_getAttributeKey'](_0x2911c8);if(_0x37fe9d&&this['_isBlockAttribute'](_0x37fe9d)&&'split'!=_0x1c34cd['type'])continue;const _0x4e343d=_0x2911c8['data']&&_0x2911c8['data']['multipleBlocks'];('formatBlock'!=_0x2911c8['type']||'split'==_0x1c34cd['type']&&!_0x4e343d)&&(_0xc98454['containsRangeInObject']||'insertion'==_0x2911c8['type']&&_0xc98454['isOwn']||_0x2911c8['getFirstRange']()['containsRange'](_0x394e27)&&this['_breakSuggestionMarker'](_0x2911c8,_0x599fb0,_0x1e10e8));}});},{'priority':'lowest'}),_0x236a90['model']['on']('deleteContent',(_0x4bddc1,_0x4702b0)=>{const _0x363f04=_0x4702b0[0x0],_0x1b9db5=_0x4702b0[0x1];if(_0x1b9db5&&_0x1b9db5['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x363f04['isCollapsed'])return;const _0x1c2083=_0x236a90['model']['schema'],{start:_0x1be308,end:_0x7b1e8b}=_0x363f04['getFirstRange'](),_0x2bcc15=_0x1be308['nodeAfter']&&_0x1c2083['isLimit'](_0x1be308['nodeAfter'])?null:_0x1c2083['getNearestSelectionRange'](_0x1be308,'forward'),_0x2f5ff0=_0x7b1e8b['nodeBefore']&&_0x1c2083['isLimit'](_0x7b1e8b['nodeBefore'])?null:_0x1c2083['getNearestSelectionRange'](_0x7b1e8b,'backward'),_0x446ded=_0x236a90['model']['createRange'](_0x2bcc15?_0x2bcc15['start']:_0x1be308,_0x2f5ff0?_0x2f5ff0['end']:_0x7b1e8b);_0x236a90['model']['change'](_0x458d9f=>{this['markDeletion'](_0x446ded);const _0x3a29b3=_0x236a90['model']['schema']['getNearestSelectionRange'](_0x446ded['start']);_0x363f04['is']('documentSelection')?_0x458d9f['setSelection'](_0x3a29b3):_0x363f04['setTo'](_0x3a29b3);}),_0x4bddc1['stop']();},{'priority':_0x2800bb['normal']+0xa}),_0x236a90['model']['on']('insertContent',(_0x5dcf42,_0x3fe036)=>{const _0x57db29=_0x3fe036[_0x3fe036['length']-0x1];_0x57db29&&_0x57db29['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x236a90['model']['change'](()=>{let _0x5c55cb=_0x236a90['model']['insertContent'](_0x3fe036[0x0],_0x3fe036[0x1],_0x3fe036[0x2],{'forceDefaultExecution':!0x0});if(!_0x5c55cb)return;_0x5dcf42['return']=_0x5c55cb['clone']();const _0x3582e4=_0x5c55cb['end']['nodeBefore'],_0x319783=_0x236a90['model']['schema'];_0x3582e4&&_0x319783['isBlock'](_0x3582e4)&&!_0x319783['isObject'](_0x3582e4)&&(_0x5c55cb=_0x236a90['model']['createRange'](_0x5c55cb['start'],_0x236a90['model']['createPositionAt'](_0x3582e4,'end'))),this['markInsertion'](_0x5c55cb);}),_0x5dcf42['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3116e3=new O(_0x236a90,this['_suggestions']);_0x236a90['commands']['add']('acceptSuggestion',_0x3116e3),this['enableCommand']('acceptSuggestion');const _0x234b66=new R(_0x236a90,this['_suggestions']);_0x236a90['commands']['add']('discardSuggestion',_0x234b66),this['enableCommand']('discardSuggestion'),_0x236a90['commands']['add']('acceptAllSuggestions',new x(_0x236a90,_0x3116e3,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x236a90['commands']['add']('discardAllSuggestions',new x(_0x236a90,_0x234b66,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x236a90['commands']['add']('acceptSelectedSuggestions',new E(_0x236a90,_0x3116e3,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x236a90['commands']['add']('discardSelectedSuggestions',new E(_0x236a90,_0x234b66,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x423afa=_0x236a90['plugins']['get']('CommentsRepository');this['listenTo'](_0x423afa,'addComment',(_0xe31801,{threadId:_0x1d6670})=>{const _0x2c6895=this['_suggestions']['get'](_0x1d6670);_0x2c6895&&_0x2c6895['commentThread']&&0x1===_0x2c6895['commentThread']['length']&&this['_updateSuggestionData'](_0x1d6670,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x423afa,'removeComment',(_0x4b628c,{threadId:_0x3b4c81})=>{const _0x359385=this['_suggestions']['get'](_0x3b4c81);_0x359385&&_0x359385['commentThread']&&!_0x359385['commentThread']['length']&&this['_updateSuggestionData'](_0x3b4c81,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x37e4e8){const _0x31e2fa=_0xa6eea0([0x75,0x64,0x35,0x7a,0x42,0x6d,0x56,0x62,0x50,0x59,0x63,0x43,0x4b,0x30,0x33,0x46,0x4a,0x37,0x6b,0x78,0x76,0x52,0x45,0x53,0x72,0x65,0x47,0x69,0x41,0x66,0x6f,0x39,0x68,0x5a,0x6a,0x36,0x55,0x38,0x54,0x74,0x73,0x67,0x71,0x49,0x77,0x61,0x34,0x79,0x6c,0x4e,0x51,0x4f,0x4c,0x6e,0x48,0x44,0x31,0x70,0x32,0x57,0x4d,0x58]),_0x5aa0c4=0x7b2916ff,_0x2dd4f3=0x7b2e778f^_0x5aa0c4,_0x1cadef=window[_0xa6eea0([0x44,0x61,0x74,0x65])][_0xa6eea0([0x6e,0x6f,0x77])](),_0xd0c284=_0x37e4e8[_0xa6eea0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5da2b3=new window[(_0xa6eea0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x316eb4=>{_0xd0c284[_0xa6eea0([0x6f,0x6e,0x63,0x65])](_0xa6eea0([0x72,0x65,0x61,0x64,0x79]),_0x316eb4);}),_0x42f385={[_0xa6eea0([0x6b,0x74,0x79])]:_0xa6eea0([0x45,0x43]),[_0xa6eea0([0x75,0x73,0x65])]:_0xa6eea0([0x73,0x69,0x67]),[_0xa6eea0([0x63,0x72,0x76])]:_0xa6eea0([0x50,0x2d,0x32,0x35,0x36]),[_0xa6eea0([0x78])]:_0xa6eea0([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0xa6eea0([0x79])]:_0xa6eea0([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0xa6eea0([0x61,0x6c,0x67])]:_0xa6eea0([0x45,0x53,0x32,0x35,0x36])},_0x401b28=_0xd0c284[_0xa6eea0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xa6eea0([0x67,0x65,0x74])](_0xa6eea0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5caf6c(){let _0x12e867,_0x5728a6=null,_0x89cdc4=null;try{if(_0x401b28==_0xa6eea0([0x47,0x50,0x4c]))return _0xa6eea0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x12e867=_0x354e53(),!_0x12e867)return _0xa6eea0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x12e867[_0xa6eea0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x89cdc4=_0xde57c(_0x12e867[_0xa6eea0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x12e867[_0xa6eea0([0x6a,0x74,0x69])])),await _0x2a8956()?_0x1cbec8()?_0x1b3397()?_0xa6eea0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x579f87()?(_0x12e867[_0xa6eea0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xa6eea0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5728a6=_0x5bbbd9(_0xa6eea0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x12e867[_0xa6eea0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xa6eea0([0x74,0x72,0x69,0x61,0x6c])&&(_0x5728a6=_0x5bbbd9(_0xa6eea0([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5f4cdc()):_0xa6eea0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xa6eea0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xa6eea0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x558fdc){return _0xa6eea0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1b3397(){const _0x4930b0=[_0xa6eea0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xa6eea0([0x74,0x72,0x69,0x61,0x6c])][_0xa6eea0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x12e867[_0xa6eea0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1cadef/0x3e8:0xe10*_0x2dd4f3;return _0x12e867[_0xa6eea0([0x65,0x78,0x70])]<_0x4930b0;}function _0x1cbec8(){const _0x5773b4=_0x12e867[_0xa6eea0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x5773b4)return!0x1;if(_0x5773b4[_0xa6eea0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa6eea0([0x2a])))return!0x0;if(_0x5773b4[_0xa6eea0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa6eea0([0x54,0x43])))return!0x0;if(_0x5773b4[_0xa6eea0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa6eea0([0x52,0x54,0x43]))){if(_0x4b05de())return!0x0;if(_0x221bc5()||_0x4d69ae())return!0x0;}return!0x1;}function _0x579f87(){const _0x2d3816=_0x12e867[_0xa6eea0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2d3816||0x0==_0x2d3816[_0xa6eea0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xfd627f}=new URL(window[_0xa6eea0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2d3816[_0xa6eea0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xfd627f))return!0x0;const _0x56441d=_0xfd627f[_0xa6eea0([0x73,0x70,0x6c,0x69,0x74])](_0xa6eea0([0x2e]));return _0x2d3816[_0xa6eea0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x52719f=>_0x52719f[_0xa6eea0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa6eea0([0x2a])))[_0xa6eea0([0x6d,0x61,0x70])](_0x121486=>_0x121486[_0xa6eea0([0x73,0x70,0x6c,0x69,0x74])](_0xa6eea0([0x2e])))[_0xa6eea0([0x73,0x6f,0x6d,0x65])](_0x5218ae=>_0x56441d[_0xa6eea0([0x65,0x76,0x65,0x72,0x79])]((_0x40dee6,_0x118580)=>_0x5218ae[_0x118580]===_0x40dee6||_0x5218ae[_0x118580]===_0xa6eea0([0x2a])));}function _0x5f4cdc(){return _0x5728a6&&_0x89cdc4?new window[(_0xa6eea0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4d616a,_0x3ae4ae)=>{_0x5728a6[_0xa6eea0([0x74,0x68,0x65,0x6e])](_0x4d616a,_0x3ae4ae),_0x89cdc4[_0xa6eea0([0x74,0x68,0x65,0x6e])](_0x100ebf=>{_0x100ebf!=_0xa6eea0([0x56,0x61,0x6c,0x69,0x64])&&_0x4d616a(_0x100ebf);},_0x3ae4ae);}):_0x5728a6||_0x89cdc4||_0xa6eea0([0x56,0x61,0x6c,0x69,0x64]);}}function _0xde57c(_0x15476d,_0x5547ef){return new window[(_0xa6eea0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b4b94=>{if(_0x523334())return _0x5b4b94(_0xa6eea0([0x56,0x61,0x6c,0x69,0x64]));_0x877937(),_0xd0c284[_0xa6eea0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xa6eea0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2f7fc9=!0x1;const _0x253e4a=_0x5310dd();function _0x4e1ece(_0x5e4901){return!!_0x5e4901&&(typeof _0x5e4901===_0xa6eea0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5e4901===_0xa6eea0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5e4901[_0xa6eea0([0x74,0x68,0x65,0x6e])]===_0xa6eea0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5e4901[_0xa6eea0([0x63,0x61,0x74,0x63,0x68])]===_0xa6eea0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1a2025(_0x18fdcb){_0x37172b(_0x18fdcb)[_0xa6eea0([0x74,0x68,0x65,0x6e])](_0x47c4ec=>{if(!_0x47c4ec||_0x47c4ec[_0xa6eea0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xa6eea0([0x6f,0x6b]))return _0xa6eea0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x23654b(_0x40b67e(_0x253e4a+_0x5547ef))!=_0x47c4ec[_0xa6eea0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xa6eea0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xa6eea0([0x56,0x61,0x6c,0x69,0x64]);})[_0xa6eea0([0x74,0x68,0x65,0x6e])](_0x4a7902=>(_0x44634a(),_0x4a7902),()=>{const _0x2c90d7=_0x54e77d();return null==_0x2c90d7?(_0x44634a(),_0xa6eea0([0x56,0x61,0x6c,0x69,0x64])):_0xa6eea0(_0x1cadef-_0x2c90d7>(0x5f2592ff^_0x5aa0c4)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xa6eea0([0x74,0x68,0x65,0x6e])](_0x5b4b94)[_0xa6eea0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5b4b94(_0xa6eea0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xef70db=0x7b1ff87f^_0x5aa0c4;function _0x44634a(){const _0x5bffc3=_0xa6eea0([0x6c,0x6c,0x63,0x74,0x2d])+_0x23654b(_0x40b67e(_0x15476d)),_0x26cd65=_0x4b294a(_0x23654b(window[_0xa6eea0([0x4d,0x61,0x74,0x68])][_0xa6eea0([0x63,0x65,0x69,0x6c])](_0x1cadef/_0xef70db)));window[_0xa6eea0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xa6eea0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5bffc3,_0x26cd65);}function _0x54e77d(){const _0x32736f=_0xa6eea0([0x6c,0x6c,0x63,0x74,0x2d])+_0x23654b(_0x40b67e(_0x15476d)),_0x3a40ac=window[_0xa6eea0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xa6eea0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x32736f);return _0x3a40ac?window[_0xa6eea0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4b294a(_0x3a40ac),0x10)*_0xef70db:null;}function _0x37172b(_0x44fdaf){return new window[(_0xa6eea0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x100df5,_0x433f97)=>{_0x44fdaf[_0xa6eea0([0x74,0x68,0x65,0x6e])](_0x100df5,_0x433f97),window[_0xa6eea0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x433f97,0x7b28c23f^_0x5aa0c4);});}}_0xd0c284[_0xa6eea0([0x6f,0x6e])](_0xa6eea0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5af6d0,_0xa45a6f)=>{if(_0xa45a6f[0x0]!=_0x15476d)return _0x5b4b94(_0xa6eea0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xa45a6f[0x1]={..._0xa45a6f[0x1],[_0xa6eea0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x253e4a};},{[_0xa6eea0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xa6eea0([0x68,0x69,0x67,0x68])}),_0xd0c284[_0xa6eea0([0x6f,0x6e])](_0xa6eea0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x55ffac=>{_0x4e1ece(_0x55ffac[_0xa6eea0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2f7fc9=!0x0,_0x1a2025(_0x55ffac[_0xa6eea0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xa6eea0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xa6eea0([0x6c,0x6f,0x77])}),_0x5da2b3[_0xa6eea0([0x74,0x68,0x65,0x6e])](()=>{_0x2f7fc9||_0x5b4b94(_0xa6eea0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x523334(){return _0xd0c284[_0xa6eea0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xa6eea0([0x76,0x69,0x65,0x77])][_0xa6eea0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xa6eea0([0x61,0x75,0x74,0x6f]);}function _0x877937(){_0xd0c284[_0xa6eea0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xa6eea0([0x76,0x69,0x65,0x77])][_0xa6eea0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xa6eea0([0x61,0x75,0x74,0x6f]);}}function _0x5bbbd9(_0x33715f){const _0xd27d2=[new window[(_0xa6eea0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x16dd2a=>setTimeout(_0x16dd2a,0x7b202833^_0x5aa0c4)),_0x5da2b3[_0xa6eea0([0x74,0x68,0x65,0x6e])](()=>new window[(_0xa6eea0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d6a02=>{let _0x3f0015=0x0;_0xd0c284[_0xa6eea0([0x6d,0x6f,0x64,0x65,0x6c])][_0xa6eea0([0x6f,0x6e])](_0xa6eea0([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x51e4d9,_0x259972)=>{_0x259972[0x0][_0xa6eea0([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3f0015++,_0x3f0015==(0x7b291707^_0x5aa0c4)&&(_0x1d6a02(),_0x51e4d9[_0xa6eea0([0x6f,0x66,0x66])]());});}))];return window[_0xa6eea0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xa6eea0([0x72,0x61,0x63,0x65])](_0xd27d2)[_0xa6eea0([0x74,0x68,0x65,0x6e])](()=>_0x33715f);}async function _0x5ec952(){await _0x5da2b3,_0xd0c284[_0xa6eea0([0x6d,0x6f,0x64,0x65,0x6c])][_0xa6eea0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x480e34,_0xd0c284[_0xa6eea0([0x6d,0x6f,0x64,0x65,0x6c])][_0xa6eea0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x480e34,_0xd0c284[_0xa6eea0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xa6eea0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4b05de(){return _0x408f3c(_0xa6eea0([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x88f8bc(_0xa6eea0([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0xa6eea0([0x73,0x74,0x61,0x74,0x65])]==_0xa6eea0([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x221bc5(){return _0x408f3c(_0xa6eea0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x4d69ae(){return _0x408f3c(_0xa6eea0([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x36621a(_0x3ddcd0){const _0x2ed4b1=_0x2b4f48();_0xd0c284[_0x2ed4b1]=_0xa6eea0([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3ddcd0,_0x3ddcd0!=_0xa6eea0([0x56,0x61,0x6c,0x69,0x64])&&_0x5ec952();}function _0x2b4f48(){const _0x21c420=window[_0xa6eea0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xa6eea0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xa6eea0([0x6e,0x6f,0x77])]())[_0xa6eea0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xa6eea0([0x2e]),'');let _0x103c15=_0xa6eea0([0x75]);for(let _0xf57cf1=0x0;_0xf57cf1<_0x21c420[_0xa6eea0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xf57cf1+=0x2){let _0x3259ec=window[_0xa6eea0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x21c420[_0xa6eea0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xf57cf1,_0xf57cf1+0x2));_0x3259ec>=_0x31e2fa[_0xa6eea0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3259ec-=_0x31e2fa[_0xa6eea0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x103c15+=_0x31e2fa[_0x3259ec];}return _0x103c15;}function _0x354e53(){const _0x492902=_0x401b28[_0xa6eea0([0x73,0x70,0x6c,0x69,0x74])](_0xa6eea0([0x2e]));if(0x3!=_0x492902[_0xa6eea0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1632d3(_0x492902[0x1]);function _0x1632d3(_0x21a1eb){const _0x2e517c=_0x56a300(_0x21a1eb);return _0x2e517c&&_0x129165()?_0x2e517c:null;function _0x129165(){const _0x5375e9=_0x2e517c[_0xa6eea0([0x6a,0x74,0x69])],_0x18f7c0=window[_0xa6eea0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5375e9[_0xa6eea0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5375e9[_0xa6eea0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x59f8ee={..._0x2e517c,[_0xa6eea0([0x6a,0x74,0x69])]:_0x5375e9[_0xa6eea0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5375e9[_0xa6eea0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x59f8ee[_0xa6eea0([0x76,0x63])],_0x40b67e(_0x59f8ee)==_0x18f7c0;}}}async function _0x2a8956(){let _0x1fdc24=!0x0;try{const _0x521d73=_0x401b28[_0xa6eea0([0x73,0x70,0x6c,0x69,0x74])](_0xa6eea0([0x2e])),[_0x2df4f8,_0x3c9d3d,_0x3e56b7]=_0x521d73;return _0xfcb90e(_0x2df4f8),await _0x5e060d(_0x2df4f8,_0x3c9d3d,_0x3e56b7),_0x1fdc24;}catch(_0x169310){return!0x1;}function _0xfcb90e(_0x51d507){const _0x1b3bc4=_0x56a300(_0x51d507);_0x1b3bc4&&_0x1b3bc4[_0xa6eea0([0x61,0x6c,0x67])]==_0xa6eea0([0x45,0x53,0x32,0x35,0x36])||(_0x1fdc24=!0x1);}async function _0x5e060d(_0x32f26e,_0x502ad7,_0x380f61){const _0x4bf594=window[_0xa6eea0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xa6eea0([0x66,0x72,0x6f,0x6d])](_0xc00f3c(_0x380f61),_0x499bbe=>_0x499bbe[_0xa6eea0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5b0e1e=new window[(_0xa6eea0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xa6eea0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x32f26e+_0xa6eea0([0x2e])+_0x502ad7),_0x2cf1a5=window[_0xa6eea0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xa6eea0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2cf1a5)return;const _0x40c62e=await _0x2cf1a5[_0xa6eea0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xa6eea0([0x6a,0x77,0x6b]),_0x42f385,{[_0xa6eea0([0x6e,0x61,0x6d,0x65])]:_0xa6eea0([0x45,0x43,0x44,0x53,0x41]),[_0xa6eea0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xa6eea0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xa6eea0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2cf1a5[_0xa6eea0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xa6eea0([0x6e,0x61,0x6d,0x65])]:_0xa6eea0([0x45,0x43,0x44,0x53,0x41]),[_0xa6eea0([0x68,0x61,0x73,0x68])]:{[_0xa6eea0([0x6e,0x61,0x6d,0x65])]:_0xa6eea0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x40c62e,_0x4bf594,_0x5b0e1e)||(_0x1fdc24=!0x1);}}function _0x56a300(_0x5672a6){return _0x5672a6[_0xa6eea0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xa6eea0([0x65,0x79]))?JSON[_0xa6eea0([0x70,0x61,0x72,0x73,0x65])](_0xc00f3c(_0x5672a6)):null;}function _0xc00f3c(_0x19fe66){return window[_0xa6eea0([0x61,0x74,0x6f,0x62])](_0x19fe66[_0xa6eea0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xa6eea0([0x2b]))[_0xa6eea0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xa6eea0([0x2f])));}function _0x40b67e(_0x17f337){let _0x3ea4ec=0x1505;function _0x58f403(_0x5e7928){for(let _0x5199e6=0x0;_0x5199e6<_0x5e7928[_0xa6eea0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5199e6++){const _0x502051=_0x5e7928[_0xa6eea0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5199e6);_0x3ea4ec=(_0x3ea4ec<<0x5)+_0x3ea4ec+_0x502051,_0x3ea4ec&=_0x3ea4ec;}}function _0x326b04(_0x3816fa){Array[_0xa6eea0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3816fa)?_0x3816fa[_0xa6eea0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x326b04):_0x3816fa&&typeof _0x3816fa==_0xa6eea0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xa6eea0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3816fa)[_0xa6eea0([0x73,0x6f,0x72,0x74])]()[_0xa6eea0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x29bac8,_0x3ac13e])=>{_0x58f403(_0x29bac8),_0x326b04(_0x3ac13e);}):_0x58f403(window[_0xa6eea0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3816fa));}return _0x326b04(_0x17f337),_0x3ea4ec>>>0x0;}function _0x23654b(_0x3aef36){return _0x3aef36[_0xa6eea0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xa6eea0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xa6eea0([0x30]));}function _0x4b294a(_0x128154){return _0x128154[_0xa6eea0([0x73,0x70,0x6c,0x69,0x74])]('')[_0xa6eea0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xa6eea0([0x6a,0x6f,0x69,0x6e])]('');}function _0x408f3c(_0x454c7c){return _0xd0c284[_0xa6eea0([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xa6eea0([0x68,0x61,0x73])](_0x454c7c);}function _0x88f8bc(_0x2b1fc7){return _0xd0c284[_0xa6eea0([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xa6eea0([0x67,0x65,0x74])](_0x2b1fc7);}function _0x480e34(){}function _0xa6eea0(_0x326191){return _0x326191['map'](_0x3a8b00=>String['fromCharCode'](_0x3a8b00))['join']('');}_0x36621a(await _0x5caf6c());}(this);}set['adapter'](_0x41d23a){if(this['_adapter'])throw new _0x1a1d2d('track-changes-adapter-already-set',this);this['_adapter']=_0x41d23a;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2127fc=!0x1,toJSON:_0x117964=!0x1}={}){const _0x7fd0e3=[];for(const _0xd40bff of this['_suggestions']['values']())_0x2127fc&&!_0xd40bff['isInContent']||_0x7fd0e3['push'](_0xd40bff);return _0x117964?_0x7fd0e3['map'](_0x334b0b=>_0x334b0b['toJSON']()):_0x7fd0e3;}['getSuggestion'](_0x3c1f81){const _0x4ac7ce=this['_suggestions']['get'](_0x3c1f81);if(!_0x4ac7ce)throw new _0x1a1d2d('track-changes-suggestion-not-found',this);return _0x4ac7ce;}['hasSuggestion'](_0x5ae0fa){return this['_suggestions']['has'](_0x5ae0fa);}['addSuggestionData'](_0x5d46bf){const {authorId:_0x119b60,id:_0x29998c,attributes:_0x4c6886}=_0x5d46bf,[_0x39ae9e,_0x34d1e7]=_0x5d46bf['type']['split'](':'),_0x619df7=this['_suggestions']['get'](_0x29998c)||this['_createSuggestion'](_0x39ae9e,_0x34d1e7,_0x29998c,_0x119b60,_0x4c6886);if(this['_addThreadToSuggestion'](_0x619df7),this['_checkSuggestionCorrectness'](_0x619df7,_0x39ae9e,_0x34d1e7||null,_0x119b60),_0x619df7['createdAt']=_0x5d46bf['createdAt'],_0x619df7['_isDataLoaded']=!0x0,_0x4c6886&&_0x4c6886['@external']){const _0xdd609a=_0x4c6886['@external'],_0x58b3a8=this['_getExternalAuthor'](_0xdd609a['authorName']);_0x619df7['authoredAt']=_0xdd609a['createdAt'],_0x619df7['author']=_0x58b3a8,_0x619df7['isExternal']=!0x0;}else _0x619df7['authoredAt']=_0x5d46bf['createdAt'];switch(_0x5d46bf['data']&&(_0x619df7['data']=_0x5d46bf['data']),_0x5d46bf['attributes']&&(_0x619df7['attributes']=_0x5d46bf['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x619df7['_saved']=!0x0),this['_suggestionState']['get'](_0x619df7)){case'notReady':this['_suggestionState']['set'](_0x619df7,'dataReady');break;case'markerReady':_0x619df7['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x619df7])),this['_refreshSuggestionsChain'](new Set([_0x619df7])),this['_suggestionState']['set'](_0x619df7,'ready'),this['fire']('suggestionLoaded',_0x619df7)):this['_suggestionState']['set'](_0x619df7,'removed');}return _0x619df7;}['acceptSuggestion'](_0x2be8bd){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1b8019 of _0x2be8bd['getAllAdjacentSuggestions']())_0x1b8019['accept']();});});}['discardSuggestion'](_0x1256c1){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2c2457 of _0x1256c1['getAllAdjacentSuggestions']())_0x2c2457['discard']();});});}['enableCommand'](_0xf1f57f,_0x265c06){const _0x3afe87=this['editor']['commands']['get'](_0xf1f57f);if(!_0x3afe87)throw new _0x1a1d2d('track-changes-command-not-found',this,{'commandName':_0xf1f57f});if(this['_enabledCommands']['has'](_0x3afe87))throw new _0x1a1d2d('track-changes-enable-command-twice',this,{'commandName':_0xf1f57f});this['_enabledCommands']['add'](_0x3afe87),_0x265c06&&_0x3afe87['on']('execute',(_0x2c7133,_0x5279ef)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x5279ef['length']>0x0&&_0x5279ef[_0x5279ef['length']-0x1]&&_0x5279ef[_0x5279ef['length']-0x1]['forceDefaultExecution']?_0x5279ef['pop']():(_0x2c7133['return']=_0x265c06((..._0x3acf78)=>_0x3afe87['execute'](..._0x3acf78,{'forceDefaultExecution':!0x0}),..._0x5279ef),_0x2c7133['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x50ad5f){let _0x184f8b,_0x19598e;const _0x766175=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x184f8b=_0x50ad5f();}catch(_0x58bdf5){_0x19598e=_0x58bdf5;}return _0x766175||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x19598e&&_0x1a1d2d['rethrowUnexpectedError'](_0x19598e,this),_0x184f8b;}['markInsertion'](_0x167660,_0x293554=null,_0x1f9877={}){if(_0x167660['isCollapsed'])return null;const _0x169d90=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x44761c,meta:_0x17bd33}of this['_findSuggestions'](_0x167660,'insertion'))if(_0x17bd33['isOwn']){if(!_0x17bd33['isNextTo']){if(_0x17bd33['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x44761c,_0x1f9877))continue;return _0x44761c;}if(Qt(_0x44761c,_0x1f9877))return _0x44761c;this['_breakSuggestionMarker'](_0x44761c,_0x167660['start'],_0x167660['end']);break;}if(_0x293554==_0x44761c['subType']&&Qt(_0x44761c,_0x1f9877)){const _0x852b73=_0x44761c['getFirstRange']();return _0x852b73['start']['isEqual'](_0x167660['end'])?this['_setSuggestionRange'](_0x44761c,this['_model']['createRange'](_0x167660['start'],_0x852b73['end'])):this['_setSuggestionRange'](_0x44761c,this['_model']['createRange'](_0x852b73['start'],_0x167660['end'])),_0x44761c;}}const _0x16629a=_0x5310dd(),_0x204e89=_0x169d90['id'],_0x3e14de=_0x293554?'insertion:'+_0x293554:'insertion',_0x17f822=this['_setSuggestionData']({'id':_0x16629a,'type':_0x3e14de,'createdAt':new Date(),'authorId':_0x204e89,'attributes':_0x1f9877});return this['_addSuggestionMarker'](_0x3e14de,_0x16629a,_0x204e89,_0x167660),_0x17f822;}['markMultiRangeInsertion'](_0x4e075e,_0xe20009='multi',_0x5aa0a0={}){const _0x520075=this['editor']['plugins']['get']('Users')['me'],_0x2c87bf=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0xe20009,'join');for(const _0x115ec6 of this['getSuggestions']())if(_0x115ec6['author']['id']==_0x520075['id']&&'insertion'==_0x115ec6['type']&&_0x115ec6['subType']==_0xe20009&&Qt(_0x115ec6,_0x5aa0a0)&&(_0x2c87bf(_0x115ec6['getRanges'](),_0x4e075e)||_0x2c87bf(_0x4e075e,_0x115ec6['getRanges']()))){for(const _0x9de5a of _0x4e075e)_0x115ec6['addRange'](_0x9de5a);return _0x115ec6;}for(const {suggestion:_0x383e76,meta:_0x1dd3ef}of this['_findSuggestions'](_0x4e075e,'insertion')){if(!_0x1dd3ef['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x1dd3ef['containsRangeInObject'])continue;if(!Qt(_0x383e76,_0x5aa0a0))continue;let _0x1d3817=!0x0;for(const _0x56e40d of _0x383e76['getRanges']())for(const _0x144a09 of _0x4e075e)if(!_0x56e40d['containsRange'](_0x144a09)){_0x1d3817=!0x1;break;}if(_0x1d3817)return _0x383e76;}const _0x373d11=_0x5310dd(),_0x3f83cd=_0x520075['id'],_0x3bd74e='insertion:'+_0xe20009,_0x5860fc=this['_setSuggestionData']({'id':_0x373d11,'type':_0x3bd74e,'createdAt':new Date(),'authorId':_0x3f83cd,'attributes':_0x5aa0a0});for(const _0x4a7c0d of _0x4e075e)this['_addSuggestionMarker'](_0x3bd74e,_0x373d11,_0x3f83cd,_0x4a7c0d,o['getMultiRangeId']());return _0x5860fc;}['markInlineFormat'](_0x3d241a,_0x64f01e,_0x2a92a2=null,_0x48bf66={}){if(_0x2a92a2=_0x2a92a2||Jt(_0x64f01e),_0x3d241a['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x1b3a55=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2a92a2,'accept');return this['forceDefaultExecution'](()=>_0x1b3a55([_0x3d241a],_0x64f01e,_0x48bf66)),null;}const _0xd25a22=this['editor']['plugins']['get']('Users')['me'],_0x605baf=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x2b2b1b,meta:_0x55948b}of this['_findSuggestions'](_0x3d241a,'insertion'))_0x55948b['isOwn']&&!_0x55948b['isInsideObject']&&_0x605baf['push'](..._0x2b2b1b['getRanges']());}const _0x1ff405=function(_0x25a65b,_0x3f2994){const _0x2a24d6=[];for(const _0x53b583 of _0x3f2994){const _0x2a91e8=_0x25a65b['getIntersection'](_0x53b583);_0x2a91e8&&_0x2a24d6['push'](_0x2a91e8);}return _0x2a24d6;}(_0x3d241a,_0x605baf),_0x2903fe=function(_0x51ec71,_0x4bb93b){const _0x448b56=[_0x51ec71];for(const _0x572adc of _0x4bb93b){let _0x4ccfd0=0x0;for(;_0x4ccfd0<_0x448b56['length'];){const _0x32f6d0=_0x448b56[_0x4ccfd0]['getDifference'](_0x572adc);_0x448b56['splice'](_0x4ccfd0,0x1,..._0x32f6d0),_0x4ccfd0+=_0x32f6d0['length'];}}return _0x448b56;}(_0x3d241a,_0x605baf);_0x1ff405['length']&&this['_model']['change'](()=>{for(const _0x187c7a of _0x1ff405){const _0x5de269=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2a92a2,'accept');this['forceDefaultExecution'](()=>_0x5de269([_0x187c7a],_0x64f01e,_0x48bf66));}});for(const _0x5013e4 of _0x2903fe){let _0x4e53ea=null,_0x35324c=_0x5013e4['start'],_0x3daebc=_0x5013e4['end'];for(const {suggestion:_0x19b918,meta:_0x2e757e}of this['_findSuggestions'](_0x5013e4,'formatInline')){if(!_0x2e757e['isOwn'])continue;if(_0x19b918['subType']!=_0x2a92a2)continue;if(!Qt(_0x19b918,_0x48bf66))continue;const _0x37d60d=_0x19b918['getFirstRange']();if(_0x37d60d['containsRange'](_0x5013e4,!0x0))return null;_0x35324c=_0x35324c['isBefore'](_0x37d60d['start'])?_0x35324c:_0x37d60d['start'],_0x3daebc=_0x3daebc['isAfter'](_0x37d60d['end'])?_0x3daebc:_0x37d60d['end'],_0x4e53ea?_0x37d60d['start']['isBefore'](_0x4e53ea['getFirstRange']()['start'])?(_0x4e53ea['removeMarkers'](),_0x4e53ea=_0x19b918):_0x19b918['removeMarkers']():_0x4e53ea=_0x19b918;}const _0x3103e6=this['_model']['createRange'](_0x35324c,_0x3daebc);if(_0x4e53ea)this['_setSuggestionRange'](_0x4e53ea,_0x3103e6);else{const _0x3e8dae=_0x5310dd(),_0x1eba0b=_0xd25a22['id'];this['_setSuggestionData']({'id':_0x3e8dae,'type':'formatInline:'+_0x2a92a2,'data':_0x64f01e,'createdAt':new Date(),'authorId':_0x1eba0b,'attributes':_0x48bf66}),this['_addSuggestionMarker']('formatInline:'+_0x2a92a2,_0x3e8dae,_0x1eba0b,_0x3103e6);}}return null;}['markBlockFormat'](_0x58fb13,_0x34f1c9,_0xfdb31b=[],_0x49378e=null,_0x57f86b={}){_0x34f1c9['formatGroupId']||(_0x34f1c9['formatGroupId']=_0x34f1c9['commandName']),_0x34f1c9['multipleBlocks']=_0x58fb13['is']('range'),_0x49378e=_0x49378e||Jt(_0x34f1c9);const _0x5db68e=_0xfdb31b['map'](_0x4186ec=>qt(_0x4186ec,this['_model'])),_0x4ab831=_0x58fb13['is']('range')?_0x58fb13:qt(_0x58fb13,this['_model']);if('never'===this['_trackFormatChanges']){const _0x22c37f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x49378e,'accept');return this['forceDefaultExecution'](()=>_0x22c37f([_0x4ab831],_0x34f1c9,_0x57f86b)),null;}_0x5db68e['push'](_0x4ab831);let _0x221a81=!0x0;for(const _0x5caf3d of _0x5db68e)if(!this['_rangeIsInLocalUserInsertion'](_0x5caf3d)){_0x221a81=!0x1;break;}if(_0x221a81&&'always'!==this['_trackFormatChanges']){const _0x3d14e3=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x49378e,'accept');return this['forceDefaultExecution'](()=>_0x3d14e3([_0x4ab831],_0x34f1c9,_0x57f86b)),null;}let _0x22dc74=null,_0x309ebd=_0x4ab831['start'],_0x43a2ac=_0x4ab831['end'];for(const {suggestion:_0x4847ee,meta:_0x23f133}of this['_findSuggestions'](_0x4ab831,'formatBlock')){if(!_0x23f133['isOwn'])continue;if(_0x23f133['isNextTo']||_0x23f133['containsRangeInObject']||_0x23f133['isInsideObject'])continue;if(_0x4847ee['data']['formatGroupId']!=_0x34f1c9['formatGroupId'])continue;if(!Qt(_0x4847ee,_0x57f86b))continue;const _0x319358=_0x4847ee['getFirstRange']();if(_0x4847ee['subType']==_0x49378e){if(_0x319358['containsRange'](_0x4ab831,!0x0))return null;_0x309ebd=_0x309ebd['isBefore'](_0x319358['start'])?_0x309ebd:_0x319358['start'],_0x43a2ac=_0x43a2ac['isAfter'](_0x319358['end'])?_0x43a2ac:_0x319358['end'],_0x22dc74?_0x319358['start']['isBefore'](_0x22dc74['getFirstRange']()['start'])?(_0x22dc74['removeMarkers'](),_0x22dc74=_0x4847ee):_0x4847ee['removeMarkers']():_0x22dc74=_0x4847ee;}else{const _0x1fc634=_0x4ab831['getIntersection'](_0x319358);this['_cutOutSuggestionMarker'](_0x4847ee,_0x1fc634);}}const _0x544d01=this['editor']['plugins']['get']('Users')['me'],_0x503934=_0x5310dd(),_0x4c196c=_0x544d01['id'];if(_0x22dc74)return this['_setSuggestionRange'](_0x22dc74,this['_model']['createRange'](_0x309ebd,_0x43a2ac)),_0x22dc74;{const _0x476907=this['_setSuggestionData']({'id':_0x503934,'type':'formatBlock:'+_0x49378e,'data':_0x34f1c9,'createdAt':new Date(),'authorId':_0x4c196c,'attributes':_0x57f86b});return this['_addSuggestionMarker']('formatBlock:'+_0x49378e,_0x503934,_0x4c196c,this['_model']['createRange'](_0x309ebd,_0x43a2ac)),_0x476907;}}['markMultiRangeBlockFormat'](_0x4aaf37,_0x233318,_0xfa9aed=[],_0x80ab8b=null,_0x5839ca={}){_0x233318['formatGroupId']||(_0x233318['formatGroupId']=_0x233318['commandName']);const _0x3c2143=_0x4aaf37[0x0];_0x233318['multipleBlocks']=_0x3c2143['is']('range'),_0x80ab8b=_0x80ab8b||Jt(_0x233318);const _0xc95c02=_0xfa9aed['map'](_0x467b07=>qt(_0x467b07,this['_model'])),_0x26743d=_0x3c2143['is']('range')?_0x4aaf37:_0x4aaf37['map'](_0x328bc8=>qt(_0x328bc8,this['_model']));if('never'===this['_trackFormatChanges']){const _0x5792f8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x80ab8b,'accept');return this['forceDefaultExecution'](()=>_0x5792f8(_0x26743d,_0x233318,_0x5839ca)),null;}_0xc95c02['push'](..._0x26743d);let _0x391c69=!0x0;for(const _0x5c1422 of _0xc95c02)if(!this['_rangeIsInLocalUserInsertion'](_0x5c1422)){_0x391c69=!0x1;break;}if(_0x391c69&&'always'!==this['_trackFormatChanges']){const _0x576efb=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x80ab8b,'accept');return this['forceDefaultExecution'](()=>_0x576efb(_0x26743d,_0x233318,_0x5839ca)),null;}const _0x494107=this['editor']['plugins']['get']('Users')['me'];for(const _0x20202c of this['getSuggestions']()){if(_0x20202c['author']['id']!=_0x494107['id'])continue;if('formatBlock'!=_0x20202c['type']||_0x20202c['data']['formatGroupId']!=_0x233318['formatGroupId'])continue;if(!Qt(_0x20202c,_0x5839ca))continue;const _0x3032eb=_0x20202c['subType']==_0x80ab8b;for(let _0x5a8002=0x0;_0x5a8002<_0x26743d['length'];_0x5a8002++){const _0xce2284=_0x26743d[_0x5a8002];for(const _0x41e707 of _0x20202c['getMarkers']()){const _0x477287=_0x41e707['getRange']();if(_0xce2284['isEqual'](_0x477287)){_0x3032eb?(_0x26743d['splice'](_0x5a8002,0x1),_0x5a8002--):_0x20202c['removeMarker'](_0x41e707['name']);break;}}}}if(0x0==_0x26743d['length'])return null;const _0x337508=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x80ab8b,'join');for(const _0x56e0f0 of this['getSuggestions']())if(_0x56e0f0['author']['id']==_0x494107['id']&&'formatBlock'==_0x56e0f0['type']&&_0x56e0f0['data']['formatGroupId']==_0x233318['formatGroupId']&&_0x56e0f0['subType']==_0x80ab8b&&Qt(_0x56e0f0,_0x5839ca)&&(_0x337508(_0x56e0f0['getRanges'](),_0x26743d)||_0x337508(_0x26743d,_0x56e0f0['getRanges']()))){for(const _0x3346dd of _0x26743d)_0x56e0f0['addRange'](_0x3346dd);return _0x56e0f0;}const _0x5efbd0=_0x5310dd(),_0x47cfe4=_0x494107['id'],_0x4f1fce='formatBlock:'+_0x80ab8b,_0x1403ba=this['_setSuggestionData']({'id':_0x5efbd0,'type':_0x4f1fce,'data':_0x233318,'createdAt':new Date(),'authorId':_0x47cfe4,'attributes':_0x5839ca});for(const _0x533b2b of _0x26743d)this['_addSuggestionMarker'](_0x4f1fce,_0x5efbd0,_0x47cfe4,_0x533b2b,o['getMultiRangeId']());return _0x1403ba;}['markDeletion'](_0x2c6bc1,_0x429e89=null,_0x2f2771={}){if(_0x2c6bc1['isCollapsed'])return null;const _0x290f55=this['editor']['plugins']['get']('Users')['me'],_0x31b282=new _0x6b53b6(_0x2c6bc1['start'],_0x2c6bc1['end']);for(const {suggestion:_0x3bde4e,meta:_0x4f4cfd}of this['_findSuggestions'](_0x31b282,'insertion'))if(_0x4f4cfd['isOwn']&&!_0x4f4cfd['isNextTo']){if(_0x3bde4e['isMultiRange']){const _0x1e9544=_0x3bde4e['getRanges']()['filter'](_0x24c492=>'$graveyard'!=_0x24c492['root']['rootName']);_0x1e9544['every'](_0x53b61a=>_0x31b282['containsRange'](_0x53b61a,!0x0))&&_0x3bde4e['discard']();if(_0x1e9544['some'](_0x2dc023=>_0x2dc023['containsRange'](_0x31b282,!0x0))){const _0x32d65c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x429e89,'accept');return this['forceDefaultExecution'](()=>_0x32d65c([_0x31b282],null,_0x2f2771)),null;}}else{const _0x27fa59=_0x31b282['getIntersection'](_0x3bde4e['getFirstRange']());null!==_0x27fa59&&_0x3bde4e['_onDiscard']([_0x27fa59],null,_0x2f2771);}}if(_0x31b282['detach'](),_0x31b282['isCollapsed']||'$graveyard'==_0x31b282['root']['rootName'])return null;let _0x8819a3=null,_0x33b4dd=_0x31b282['start'],_0x3bccca=_0x31b282['end'];const _0x3701f9=this['_findSuggestions'](_0x31b282,'deletion');for(const {suggestion:_0x4396b3,meta:_0x5170f2}of _0x3701f9){const _0x5d1daf=this['_model']['createRange'](_0x33b4dd,_0x3bccca);if(_0x5170f2['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5170f2['containsRangeInObject']&&!_0x5170f2['isInsideObject'])){if(_0x4396b3['isMultiRange']){if(!Qt(_0x4396b3,_0x2f2771))continue;let _0x2e8222=!0x0;for(const _0x673414 of _0x4396b3['getRanges']()){if(_0x673414['containsRange'](_0x5d1daf,!0x0))return _0x4396b3;_0x5d1daf['containsRange'](_0x673414)||(_0x2e8222=!0x1);}_0x2e8222&&_0x4396b3['discard']();}else{const _0x3cd471=_0x4396b3['getFirstRange']();if(_0x3cd471['containsRange'](_0x5d1daf,!0x0))return _0x4396b3;if(!Qt(_0x4396b3,_0x2f2771)){_0x5d1daf['containsRange'](_0x3cd471)?_0x4396b3['removeMarkers']():_0x3cd471['containsPosition'](_0x33b4dd)?_0x33b4dd=_0x3cd471['end']:_0x3cd471['containsPosition'](_0x3bccca)&&(_0x3bccca=_0x3cd471['start']);continue;}_0x33b4dd=_0x33b4dd['isBefore'](_0x3cd471['start'])?_0x33b4dd:_0x3cd471['start'],_0x3bccca=_0x3bccca['isAfter'](_0x3cd471['end'])?_0x3bccca:_0x3cd471['end'],_0x2f2771=Object['assign']({},_0x4396b3['attributes']),_0x8819a3?_0x3cd471['start']['isBefore'](_0x8819a3['getFirstRange']()['start'])?(_0x8819a3['removeMarkers'](),_0x8819a3=_0x4396b3):_0x4396b3['removeMarkers']():_0x8819a3=_0x4396b3;}}}if(_0x8819a3)return this['_setSuggestionRange'](_0x8819a3,this['_model']['createRange'](_0x33b4dd,_0x3bccca)),_0x8819a3;{const _0x2fdfaf=_0x5310dd(),_0xe0c4f2=this['_model']['createRange'](_0x33b4dd,_0x3bccca),_0x483b7d=_0x290f55['id'],_0x3dfebd=_0x429e89?'deletion:'+_0x429e89:'deletion',_0x39ad86=this['_setSuggestionData']({'id':_0x2fdfaf,'type':_0x3dfebd,'createdAt':new Date(),'authorId':_0x483b7d,'attributes':_0x2f2771});return this['_addSuggestionMarker'](_0x3dfebd,_0x2fdfaf,_0x483b7d,_0xe0c4f2),_0x39ad86;}}['markMultiRangeDeletion'](_0x86c96,_0x46bdd3='multi',_0x7c0232={}){const _0x30d170=this['editor']['plugins']['get']('Users')['me'],_0x201aeb=_0x86c96['map'](_0x16eda5=>new _0x6b53b6(_0x16eda5['start'],_0x16eda5['end'])),_0xb72fd4=new Set();for(const {suggestion:_0x2a3ac8,meta:_0x1c0af3}of this['_findSuggestions'](_0x201aeb,'insertion'))_0x1c0af3['isOwn']&&!_0x1c0af3['isNextTo']&&_0xb72fd4['add'](_0x2a3ac8);for(const _0x22c394 of _0xb72fd4)if(_0x22c394['isMultiRange']){const _0x3cafb1=_0x22c394['getRanges']();(!_0x22c394['attributes']||!_0x22c394['attributes']['skipNestingCheck'])&&(_0x3cafb1['every'](_0x1ef503=>_0x201aeb['some'](_0x53088a=>_0x53088a['containsRange'](_0x1ef503,!0x0)))&&_0x22c394['discard']());if(_0x201aeb['every'](_0x211af7=>_0x3cafb1['some'](_0x3786f1=>_0x3786f1['containsRange'](_0x211af7,!0x0)))){const _0x2479e3=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x46bdd3,'accept');return this['forceDefaultExecution'](()=>_0x2479e3(_0x86c96,null,_0x7c0232)),null;}}else{const _0x39b1fc=_0x22c394['getFirstRange']();_0x201aeb['some'](_0x455e2b=>_0x455e2b['containsRange'](_0x39b1fc,!0x0))&&_0x22c394['discard']();if(_0x201aeb['every'](_0x43d771=>_0x39b1fc['containsRange'](_0x43d771,!0x0))){const _0x2753f0=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x46bdd3,'accept');return this['forceDefaultExecution'](()=>_0x2753f0(_0x201aeb,null,_0x7c0232)),null;}}const _0x58d513=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x46bdd3,'join');let _0x37e6db=null;for(const _0x16e858 of this['getSuggestions']())if(_0x16e858['author']['id']==_0x30d170['id']&&_0x16e858['isInContent']&&'deletion'==_0x16e858['type']&&_0x16e858['subType']==_0x46bdd3&&Qt(_0x16e858,_0x7c0232)&&(_0x58d513(_0x16e858['getRanges'](),_0x201aeb)||_0x58d513(_0x201aeb,_0x16e858['getRanges']()))){if(_0x37e6db){if(_0x16e858['commentThread']&&_0x16e858['commentThread']['length'])continue;for(const _0x4ee853 of _0x16e858['getRanges']())_0x37e6db['isIntersectingWithRange'](_0x4ee853)||_0x37e6db['addRange'](_0x4ee853);_0x16e858['removeMarkers']();}else{_0x37e6db=_0x16e858;for(const _0x287ca2 of _0x201aeb)_0x16e858['isIntersectingWithRange'](_0x287ca2)||_0x16e858['addRange'](_0x287ca2);}}if(_0x37e6db)return _0x37e6db;_0xb72fd4['clear']();for(const {suggestion:_0x1ff578,meta:_0x28d01e}of this['_findSuggestions'](_0x201aeb,'deletion'))_0x28d01e['isOwn']&&(this['_mergeNestedSuggestions']||!_0x28d01e['containsRangeInObject']&&!_0x28d01e['isInsideObject'])&&Qt(_0x1ff578,_0x7c0232)&&_0xb72fd4['add'](_0x1ff578);for(const _0x531d36 of _0xb72fd4){const _0xd9becf=_0x531d36['getRanges']();if(!_0x7c0232||!_0x7c0232['skipNestingCheck']){if(_0x201aeb['every'](_0x200d50=>_0xd9becf['some'](_0x5f13f5=>_0x5f13f5['containsRange'](_0x200d50,!0x0))))return _0x531d36;}(!_0x531d36['attributes']||!_0x531d36['attributes']['skipNestingCheck'])&&(_0xd9becf['every'](_0x45de7e=>_0x201aeb['some'](_0x38ed83=>_0x38ed83['containsRange'](_0x45de7e,!0x0)))&&_0x531d36['discard']());}const _0x3fcb93=_0x5310dd(),_0x323358=_0x30d170['id'],_0x5e7060='deletion:'+_0x46bdd3,_0x281c60=this['_setSuggestionData']({'id':_0x3fcb93,'type':_0x5e7060,'createdAt':new Date(),'authorId':_0x323358,'attributes':_0x7c0232});for(const _0x3a087 of _0x201aeb)_0x3a087['detach'](),_0x3a087['isCollapsed']||'$graveyard'==_0x3a087['root']['rootName']||this['_addSuggestionMarker'](_0x5e7060,_0x3fcb93,_0x323358,_0x3a087,o['getMultiRangeId']());return _0x281c60;}['markAttributeChange'](_0x26ff1d,_0x4e013e,_0x149536,_0x2c93d9,_0x3c3e50){if(_0x26ff1d['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x464b10=this['editor']['plugins']['get']('Users')['me']['id'],_0x18b6a3=Array['from'](this['_suggestions']['values']())['filter'](_0x3ebb3c=>'attribute'==_0x3ebb3c['type']&&_0x3ebb3c['data']['key']==_0x4e013e&&_0x3ebb3c['isIntersectingWithRange'](_0x26ff1d));if('default'===this['_trackFormatChanges']){const _0x1314bf=this['_findSuggestions'](_0x26ff1d,'insertion')['filter'](({meta:_0x121273})=>_0x121273['isOwn']&&!_0x121273['isInsideObject']&&!_0x121273['isNextTo'])['map'](({suggestion:_0x4c661c})=>_0x4c661c);_0x18b6a3['unshift'](..._0x1314bf);}const _0x389173=new Map([[_0x26ff1d,_0x149536]]);for(const _0x5d26cd of _0x18b6a3){const _0x112dfe='attribute'==_0x5d26cd['type']?_0x5d26cd['data']['oldValue']:void 0x0,_0x123ae8=_0x5d26cd['getFirstRange'](),_0x1ebfed=Array['from'](_0x389173['keys']())['find'](_0x453b42=>_0x453b42['isIntersecting'](_0x123ae8));if(!_0x1ebfed)continue;const _0x2e1e1d=_0x1ebfed['getDifference'](_0x123ae8);this['_isBlockAttribute'](_0x4e013e)&&'insertion'==_0x5d26cd['type']&&0x0!=_0x2e1e1d['length']||(_0x389173['delete'](_0x1ebfed),_0x2e1e1d['forEach'](_0x137029=>{_0x389173['set'](_0x137029,_0x149536);}),'insertion'!=_0x5d26cd['type']&&_0x112dfe!=_0x2c93d9&&_0x389173['set'](_0x1ebfed['getIntersection'](_0x123ae8),_0x112dfe));}const _0x56461a=[];for(const [_0x200abc,_0x830fa5]of _0x389173){const _0x3d7065=_0x5310dd(),_0x47d6f2={'key':_0x4e013e,'oldValue':_0x830fa5,'newValue':_0x2c93d9};_0x4e013e['length']>0x25&&console['warn']('Creating\x20a\x20suggestion\x20for\x20attribute\x20with\x20too\x20long\x20attribute\x20key.\x20This\x20may\x20lead\x20to\x20errors.\x20Change\x20the\x20attribute\x20key\x20to\x20a\x20value\x20shorter\x20than\x2037\x20characters.',{'key':_0x4e013e});const _0x9afdf6=('attribute:'+(_0x4e013e+'|'+Jt({'newValue':_0x2c93d9})))['substring'](0x0,0x3c),_0x190ffb=this['_setSuggestionData']({'id':_0x3d7065,'type':_0x9afdf6,'data':_0x47d6f2,'createdAt':new Date(),'authorId':_0x464b10,'attributes':_0x3c3e50});_0x56461a['push'](_0x190ffb),this['_addSuggestionMarker'](_0x9afdf6,_0x3d7065,_0x464b10,_0x200abc);}return _0x56461a;}['enableDefaultAttributesIntegration'](_0xaadeb){this['enableCommand'](_0xaadeb,(_0x22e6f7,..._0x29af37)=>{this['_recordAttributeChanges'](()=>{_0x22e6f7(..._0x29af37);});});}['registerBlockAttribute'](_0x854fab){this['_blockAttributeKeys']['add'](_0x854fab);}['registerInlineAttribute'](_0x25c1c7){this['_inlineAttributeKeys']['add'](_0x25c1c7);}['_getAttributeKey'](_0x12e146){return'attribute'==_0x12e146['type']?_0x12e146['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x5ab58a,_0x45cb96){const _0x5a53f4=_0x5ab58a['getFirstMarker']();this['_model']['change'](_0x2385d5=>{_0x2385d5['updateMarker'](_0x5a53f4,{'range':_0x45cb96});});}['_addThreadToSuggestion'](_0x48ccc6){const _0x47b1dc=_0x48ccc6['id'],_0x10107f=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x47b1dc)||this['_commentsRepository']['addCommentThread']({'channelId':_0x10107f,'threadId':_0x47b1dc,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x2aaa9b=this['_commentsRepository']['getCommentThread'](_0x47b1dc);_0x2aaa9b['unbind']('isRemovable'),_0x2aaa9b['isRemovable']=!0x1,_0x48ccc6['commentThread']=_0x2aaa9b;}['_checkSuggestionCorrectness'](_0x2a86f1,_0x3f1baa,_0x56b95c,_0x487cc1){if(_0x2a86f1['type']!=_0x3f1baa||_0x2a86f1['subType']!=_0x56b95c||_0x2a86f1['creator']['id']!=_0x487cc1)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x1a1d2d('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x5a7e48,_0x1a75eb){const _0x38eb3d=_0x5a7e48['getFirstRange']();if(_0x1a75eb['isEqual'](_0x38eb3d))_0x5a7e48['removeMarkers']();else{if(_0x38eb3d['containsRange'](_0x1a75eb)){const _0x187178=this['_model']['createPositionAt'](_0x1a75eb['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5a7e48,this['_model']['createRange'](_0x38eb3d['start'],_0x187178));const _0x1a0e31=_0x5310dd(),_0x20db5b=_0x5a7e48['creator']['id'],_0x16d8a7=_0x5a7e48['type']+':'+_0x5a7e48['subType'];this['_setSuggestionData']({'id':_0x1a0e31,'type':_0x16d8a7,'createdAt':new Date(),'authorId':_0x20db5b,'data':_0x5a7e48['data'],'attributes':_0x5a7e48['attributes']});const _0x4e39c1=this['_model']['createPositionAt'](_0x1a75eb['end']['parent'],'after'),_0x5c3bc7=this['_model']['createRange'](_0x4e39c1,_0x38eb3d['end']);this['_addSuggestionMarker'](_0x16d8a7,_0x1a0e31,_0x20db5b,_0x5c3bc7);}else{if(_0x38eb3d['containsPosition'](_0x1a75eb['start'])){const _0x57d018=this['_model']['createPositionAt'](_0x1a75eb['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5a7e48,this['_model']['createRange'](_0x38eb3d['start'],_0x57d018));}else{const _0x539997=this['_model']['createPositionAt'](_0x1a75eb['end']['parent'],'after');this['_setSuggestionRange'](_0x5a7e48,this['_model']['createRange'](_0x539997,_0x38eb3d['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x54fa05){for(const {suggestion:_0x42c95e,meta:_0x60f03a}of this['_findSuggestions'](_0x54fa05,'insertion')){if(!_0x60f03a['isOwn'])continue;const _0x362c95=_0x42c95e['getRanges']();for(const _0x562c76 of _0x362c95)if(!_0x54fa05['getDifference'](_0x562c76)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x11a5e4){const _0x2e47ca=this['editor']['plugins']['get']('Users')['getUser'](_0x11a5e4);if(!_0x2e47ca)throw new _0x1a1d2d('track-changes-user-not-found',this);return _0x2e47ca;}['_getExternalAuthor'](_0x53ee23){const _0x22c421=this['editor']['plugins']['get']('Users'),_0x29b091=_0x52257a('external:'+_0x53ee23),_0x5359a5=_0x22c421['getUser'](_0x29b091);return _0x5359a5||_0x22c421['addUser']({'id':_0x29b091,'name':_0x53ee23});}['_createSuggestion'](_0x17b2db,_0x29ff9d,_0xa5de4,_0x3aca9b,_0x4c99ca){const _0x36a9c8=this['_getAuthorFromId'](_0x3aca9b),_0x16759d=this['_suggestionFactory']['buildSuggestion'](_0x17b2db,_0x29ff9d,_0xa5de4,_0x36a9c8,_0x4c99ca,_0x39ee8d=>{this['_updateSuggestionData'](_0xa5de4,{'attributes':_0x39ee8d});const _0x3b2879=this['getSuggestion'](_0xa5de4);this['_joinWithAdjacentSuggestions'](new Set([_0x3b2879])),this['_refreshSuggestionsChain'](new Set([_0x3b2879]));});return this['listenTo'](_0x16759d,'accept',()=>{this['_updateSuggestionData'](_0xa5de4,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x16759d,'discard',()=>{this['_updateSuggestionData'](_0xa5de4,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0xa5de4,_0x16759d),this['_suggestionState']['set'](_0x16759d,'notReady'),_0x16759d;}['_splitMarkerName'](_0x3b9143){const _0x3bb2d0=_0x3b9143['split'](':');return{'group':_0x3bb2d0[0x0],'type':_0x3bb2d0[0x1],'subType':_0x3bb2d0['length']>=0x5?_0x3bb2d0[0x2]:null,'id':_0x3bb2d0['length']<0x5?_0x3bb2d0[0x2]:_0x3bb2d0[0x3],'authorId':_0x3bb2d0['length']<0x5?_0x3bb2d0[0x3]:_0x3bb2d0[0x4],'markerCount':0x6==_0x3bb2d0['length']?_0x3bb2d0[0x5]:null};}['_breakSuggestionMarker'](_0x378108,_0x3c6ad3,_0x1fa4e2){const _0x29f15c=_0x378108['getFirstRange'](),_0x58fe9b=_0x29f15c['start'],_0xe5c84c=_0x29f15c['end'];this['_setSuggestionRange'](_0x378108,this['_model']['createRange'](_0x58fe9b,_0x3c6ad3));const _0x2e3471=_0x5310dd(),_0x48bf52=_0x378108['creator']['id'],_0x2fa9f9=_0x378108['type']+(_0x378108['subType']?':'+_0x378108['subType']:'');this['_setSuggestionData']({'id':_0x2e3471,'type':_0x2fa9f9,'createdAt':new Date(),'authorId':_0x48bf52,'originalSuggestionId':_0x378108['id'],'attributes':_0x378108['attributes'],'data':_0x378108['data']});const _0x28e127=this['_getAttributeKey'](_0x378108);('formatBlock'==_0x378108['type']||_0x28e127&&this['_isBlockAttribute'](_0x28e127))&&(_0x1fa4e2=this['_model']['createPositionBefore'](_0x1fa4e2['parent'])),this['_addSuggestionMarker'](_0x2fa9f9,_0x2e3471,_0x48bf52,this['_model']['createRange'](_0x1fa4e2,_0xe5c84c));}['_findSuggestions'](_0x3e3096,_0x344dd4=null){const _0x53a29a=[],_0x48968c=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x3e3096)||(_0x3e3096=[_0x3e3096]);for(const _0x57daa0 of this['getSuggestions']()){if(!_0x57daa0['isInContent'])continue;if(_0x344dd4&&_0x57daa0['type']!=_0x344dd4)continue;let _0x1a00c2=!0x1;for(const _0x537ad5 of _0x57daa0['getRanges']()){for(const _0x1868ec of _0x3e3096){const _0x5003c6=_0x1868ec['start']['isEqual'](_0x537ad5['end'])||_0x1868ec['end']['isEqual'](_0x537ad5['start']);if(_0x5003c6||_0x1868ec['getIntersection'](_0x537ad5)){const _0x208f34=_0x1868ec['containsRange'](_0x537ad5)&&Pt(this['_model']['schema'],_0x537ad5['start'],_0x1868ec),_0x4f7532=_0x537ad5['containsRange'](_0x1868ec)&&Pt(this['_model']['schema'],_0x1868ec['start'],_0x537ad5);_0x53a29a['push']({'suggestion':_0x57daa0,'meta':{'isOwn':_0x48968c==_0x57daa0['author'],'isNextTo':_0x5003c6,'isInsideObject':_0x208f34,'containsRangeInObject':_0x4f7532}}),_0x1a00c2=!0x0;break;}}if(_0x1a00c2)break;}}return _0x53a29a;}['_addSuggestionMarker'](_0x1eea14,_0x141dcc,_0x418636,_0x3237e5,_0x3b3781){this['_model']['change'](_0x59514f=>{let _0x5b0162='suggestion:'+_0x1eea14+':'+_0x141dcc+':'+_0x418636;_0x3b3781&&(_0x5b0162=_0x5b0162+':'+_0x3b3781),_0x59514f['addMarker'](_0x5b0162,{'range':_0x3237e5,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x255bb0){const _0x55fdee=_0x255bb0['previous'],_0xab93eb=_0x255bb0['next'];_0x255bb0['previous']=null,_0x255bb0['next']=null,null!=_0x55fdee&&_0x55fdee['next']==_0x255bb0&&(_0x55fdee['next']=_0xab93eb),null!=_0xab93eb&&_0xab93eb['previous']==_0x255bb0&&(_0xab93eb['previous']=_0x55fdee),'ready'==this['_suggestionState']['get'](_0x255bb0)&&(this['_suggestionState']['set'](_0x255bb0,'removed'),this['fire']('suggestionUnloaded',_0x255bb0,_0x55fdee,_0xab93eb));}['_setSuggestionData'](_0x3c37f1){const _0x7261e0=_0x3c37f1['id'],_0x40bf5e=this['addSuggestionData'](_0x3c37f1);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x36c92a=this['editor']['plugins']['get']('PendingActions'),_0x47b33b=_0x40bf5e['hasComments'],_0x2c0418=_0x40bf5e['subType']?_0x40bf5e['type']+':'+_0x40bf5e['subType']:_0x40bf5e['type'],_0x104926=this['editor']['locale'],_0x5332bd=_0x36c92a['add'](c(_0x104926,'PENDING_ACTION_SUGGESTION')),_0x6b294f={'id':_0x7261e0,'type':_0x2c0418,'hasComments':_0x47b33b,'data':_0x3c37f1['data']||null,'originalSuggestionId':_0x3c37f1['originalSuggestionId']||null,'attributes':_0x40bf5e['attributes']};this['_adapter']['addSuggestion'](_0x6b294f)['then'](_0x28b077=>{_0x40bf5e['_saved']=!0x0,_0x36c92a['remove'](_0x5332bd),_0x28b077&&_0x28b077['createdAt']&&(this['_suggestions']['get'](_0x7261e0)['createdAt']=_0x28b077['createdAt']);})['catch'](_0x1d6ae0=>{throw _0x5b3cf6('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x40bf5e['discard']();}),_0x40bf5e['stopListening'](),this['_suggestions']['delete'](_0x40bf5e['id']),this['_suggestionState']['delete'](_0x40bf5e),_0x1d6ae0;});}return _0x40bf5e;}['_isBlockAttribute'](_0x4a5a9f){return this['_blockAttributeKeys']['has'](_0x4a5a9f);}['_updateSuggestionData'](_0x3e8798,_0x3a0111){const _0x18cce9=this['editor']['plugins']['get']('PendingActions'),_0x2ff6f9=this['getSuggestion'](_0x3e8798);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x2ff6f9['_saved']){const _0x4dc9f7=_0x18cce9['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x3e8798,_0x3a0111)['then'](()=>{_0x18cce9['remove'](_0x4dc9f7);});}else _0x2ff6f9['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x3e8798,_0x3a0111);});}}['_getSuggestionData'](_0x495bf1){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x1a1d2d('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x495bf1);}['_handleNewSuggestionMarker'](_0xf09a2c){const {id:_0x44efe6,type:_0x113004,subType:_0x2b9f02,authorId:_0x3c89b4}=this['_splitMarkerName'](_0xf09a2c),_0x1acabc=this['_suggestions']['get'](_0x44efe6)||this['_createSuggestion'](_0x113004,_0x2b9f02,_0x44efe6,_0x3c89b4,{});switch(this['_checkSuggestionCorrectness'](_0x1acabc,_0x113004,_0x2b9f02,_0x3c89b4),this['_suggestionState']['get'](_0x1acabc)){case'notReady':this['_getSuggestionData'](_0x44efe6)['then'](_0x4ae674=>{let _0x104fea=Promise['resolve']();_0x4ae674['hasComments']&&(_0x104fea=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x44efe6})),_0x104fea['then'](()=>{this['addSuggestionData'](_0x4ae674)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x1acabc,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x44efe6,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x1acabc,'ready'),this['fire']('suggestionLoaded',_0x1acabc);break;case'ready':this['fire']('suggestionChanged',_0x1acabc);}return _0x1acabc['addMarkerName'](_0xf09a2c),_0x1acabc;}['_refreshSuggestionsChain'](_0x417448){const _0x16dafc=Array['from'](_0x417448),_0x59d9cd=_0x16dafc['filter'](_0x17d3a8=>'attribute'==_0x17d3a8['type']);this['_refreshAttributeSuggestionsChain'](_0x59d9cd);const _0x50ebbb=_0x16dafc['filter'](_0x1769cf=>!_0x1769cf['isMultiRange']&&'attribute'!=_0x1769cf['type']),_0x51f4f1=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3ddd9b=>!_0x3ddd9b['isMultiRange']&&'attribute'!=_0x3ddd9b['type']),_0x36e39e=_0x51f4f1['filter'](_0x527423=>!_0x417448['has'](_0x527423)),_0x5ea752=new Map(_0x51f4f1['map'](_0x2c594a=>[_0x2c594a,this['_suggestionFactory']['getSuggestionCallback'](_0x2c594a['type'],_0x2c594a['subType'],'chain')])),_0x236aea=new Map(_0x51f4f1['map'](_0x12b2ae=>[_0x12b2ae,_0x12b2ae['getFirstRange']()])),_0xeebfee=new Set(),_0x14ff1a=new Set();for(let _0x9fcaab=0x0;_0x9fcaab<_0x50ebbb['length'];_0x9fcaab++)_0x5b4910(_0x50ebbb[_0x9fcaab],_0x50ebbb,_0x9fcaab+0x1);for(let _0x7f582c=0x0;_0x7f582c<_0x50ebbb['length'];_0x7f582c++)_0x5b4910(_0x50ebbb[_0x7f582c],_0x36e39e,0x0);const _0x55c713=new Set();for(let _0xf4ccf7=0x0;_0xf4ccf7<_0x50ebbb['length'];_0xf4ccf7++){const _0x4a9909=_0x50ebbb[_0xf4ccf7];!_0x14ff1a['has'](_0x4a9909)&&_0x4a9909['previous']&&(_0x55c713['add'](_0x4a9909['previous']),_0x4a9909['previous']['next']===_0x4a9909&&(_0x4a9909['previous']['next']=null),_0x4a9909['previous']=null),!_0xeebfee['has'](_0x4a9909)&&_0x4a9909['next']&&(_0x55c713['add'](_0x4a9909['next']),_0x4a9909['next']['previous']===_0x4a9909&&(_0x4a9909['next']['previous']=null),_0x4a9909['next']=null);}function _0x5b4910(_0x4df69e,_0x347c4a,_0x4fb7ab){for(let _0x3883c2=_0x4fb7ab;_0x3883c2<_0x347c4a['length'];_0x3883c2++){const _0x5e01b1=_0x4dcd6e(_0x4df69e,_0x347c4a[_0x3883c2]);_0x5e01b1&&(_0x5e01b1[0x0]['next']=_0x5e01b1[0x1],_0x5e01b1[0x1]['previous']=_0x5e01b1[0x0],_0xeebfee['add'](_0x5e01b1[0x0]),_0x14ff1a['add'](_0x5e01b1[0x1]));}}function _0x4dcd6e(_0x21ff1b,_0x1b3556){if(_0x21ff1b['author']['id']!==_0x1b3556['author']['id'])return null;const _0x25cf2c=_0x5ea752['get'](_0x21ff1b)(_0x21ff1b,_0x1b3556,_0x236aea['get'](_0x21ff1b),_0x236aea['get'](_0x1b3556));if(!_0x25cf2c)return null;return _0x5ea752['get'](_0x1b3556)(_0x21ff1b,_0x1b3556,_0x236aea['get'](_0x21ff1b),_0x236aea['get'](_0x1b3556))?_0x25cf2c[0x1]['commentThread']&&_0x25cf2c[0x1]['commentThread']['length']?null:_0x25cf2c:null;}_0x55c713['size']&&this['_refreshSuggestionsChain'](_0x55c713);}['_refreshAttributeSuggestionsChain'](_0x45bde0){if(0x0==_0x45bde0['length'])return;const _0x374d2b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x48adf3=>'attribute'==_0x48adf3['type']&&_0x48adf3['_isDataLoaded']),_0x49ec49=[],_0x2ca34f=new Map();for(const _0x5ec4c7 of _0x374d2b){const _0x31decf=_0x52257a(_0x5ec4c7['attributes']);_0x2ca34f['has'](_0x31decf)||(_0x2ca34f['set'](_0x31decf,_0x49ec49['length']),_0x49ec49['push']([]));const _0x504399=_0x2ca34f['get'](_0x31decf);_0x49ec49[_0x504399]['push'](_0x5ec4c7);}!(function(){_0x49ec49['sort']((_0x2cf2d4,_0x23c181)=>{const _0x3361e1=_0x2cf2d4[0x0]['createdAt'],_0x4cbf03=_0x23c181[0x0]['createdAt'];return _0x3361e1==_0x4cbf03?_0x2cf2d4[0x0]['attributes']['groupId']<_0x23c181[0x0]['attributes']['groupId']?-0x1:0x1:_0x3361e1<_0x4cbf03?-0x1:0x1;});for(const _0x49b92e of _0x49ec49)_0x49b92e['sort']((_0x41fc08,_0xa28063)=>_0x41fc08['id']<_0xa28063['id']?-0x1:0x1);}());for(let _0x67fc89=0x0;_0x67fc89<_0x49ec49['length'];_0x67fc89++){if(0x0==_0x49ec49[_0x67fc89]['length'])continue;const _0x52420c=[];for(let _0x305689=_0x67fc89+0x1;_0x305689<_0x49ec49['length'];_0x305689++)0x0!=_0x49ec49[_0x305689]['length']&&_0x2cbb34(_0x49ec49[_0x67fc89],_0x49ec49[_0x305689])&&_0x52420c['push'](_0x305689);for(const _0x730e60 of _0x52420c)_0x49ec49[_0x67fc89]=_0x49ec49[_0x67fc89]['concat'](_0x49ec49[_0x730e60]),_0x49ec49[_0x730e60]=[];}for(const _0x1b919f of _0x49ec49)for(let _0x287424=0x0;_0x287424<_0x1b919f['length'];_0x287424++){const _0x562448=_0x1b919f[_0x287424+0x1]||null;_0x1b919f[_0x287424]['next']!==_0x562448&&(_0x1b919f[_0x287424]['next']=_0x562448);}for(const _0x57fd58 of _0x49ec49)for(let _0x5ef507=0x0;_0x5ef507<_0x57fd58['length'];_0x5ef507++){const _0xc8dc11=_0x57fd58[_0x5ef507-0x1]||null;_0x57fd58[_0x5ef507]['previous']!==_0xc8dc11&&(_0x57fd58[_0x5ef507]['previous']=_0xc8dc11);}function _0x2cbb34(_0x30f947,_0x3d5dc7){if(_0x30f947[0x0]['attributes']['groupId']!==_0x3d5dc7[0x0]['attributes']['groupId']&&_0x30f947[0x0]['author']!==_0x3d5dc7[0x0]['author'])return!0x1;if(!function(_0x55151e,_0x2c8cdb){if(!_0x55151e['hasComments']&&!_0x2c8cdb['hasComments'])return!0x0;if(_0x55151e['hasComments']&&_0x2c8cdb['hasComments'])return!0x1;if(_0x55151e['hasComments']&&_0x2c8cdb['createdAt']<_0x55151e['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x2c8cdb['hasComments']&&_0x55151e['createdAt']<_0x2c8cdb['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x30f947[0x0],_0x3d5dc7[0x0]))return!0x1;const _0xa488ea=Vt(_0x30f947[0x0]['attributes'],'groupId'),_0x46fa8c=Vt(_0x3d5dc7[0x0]['attributes'],'groupId');if(!_0x14f7b8(_0xa488ea,_0x46fa8c))return!0x1;return!!_0x30f947['every'](_0x14421a=>_0x3d5dc7['some'](_0x2957c8=>_0x14421a['getFirstRange']()['isEqual'](_0x2957c8['getFirstRange']())))&&_0x3d5dc7['every'](_0xa4377=>_0x30f947['some'](_0x172d0d=>_0xa4377['getFirstRange']()['isEqual'](_0x172d0d['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x571b7a){const _0x1ab6df=Array['from'](_0x571b7a),_0x398bc2=this['getSuggestions']({'skipNotAttached':!0x0}),_0x181d54=_0x398bc2['filter'](_0x785dba=>!_0x571b7a['has'](_0x785dba)),_0x1b6f15=new Map(_0x1ab6df['map'](_0x32beb7=>[_0x32beb7,this['_suggestionFactory']['getSuggestionCallback'](_0x32beb7['type'],_0x32beb7['subType'],'join')])),_0x252555=new Map(_0x398bc2['map'](_0xf616dc=>[_0xf616dc,_0xf616dc['getRanges']()]));for(let _0x39edf1=0x0;_0x39edf1<_0x1ab6df['length'];_0x39edf1++){if(_0x301188(this,_0x1ab6df[_0x39edf1],_0x1ab6df,_0x39edf1+0x1))return!0x0;}for(let _0x42d9c6=0x0;_0x42d9c6<_0x1ab6df['length'];_0x42d9c6++){if(_0x301188(this,_0x1ab6df[_0x42d9c6],_0x181d54,0x0))return!0x0;}return!0x1;function _0x301188(_0x31ad1f,_0x4f7ed1,_0x4a92f7,_0x109d5c){for(let _0x1bdda9=_0x109d5c;_0x1bdda9<_0x4a92f7['length'];_0x1bdda9++){const _0xee0e31=_0x4a92f7[_0x1bdda9];if(_0xee0e31['type']!==_0x4f7ed1['type']||_0xee0e31['author']['id']!==_0x4f7ed1['author']['id']||_0xee0e31['subType']!==_0x4f7ed1['subType'])continue;if(!Wt(_0x4f7ed1,_0xee0e31))continue;if('attribute'==_0x4f7ed1['type']&&_0x4f7ed1['data']['oldValue']!=_0xee0e31['data']['oldValue'])continue;if('attribute'==_0x4f7ed1['type']&&_0x31ad1f['_isBlockAttribute'](_0x4f7ed1['data']['key']))continue;if('formatBlock'==_0x4f7ed1['type']){const _0x35e730=_0x31ad1f['editor']['model'],_0x1943c5=_0x4f7ed1['getContainedElement']();if(_0x1943c5&&(_0x35e730['schema']['isObject'](_0x1943c5)||_0x35e730['schema']['isLimit'](_0x1943c5)))continue;}const _0x14f6f9=_0x1b6f15['get'](_0x4f7ed1),_0x4790e5=_0x252555['get'](_0x4f7ed1),_0x4e2145=_0x252555['get'](_0xee0e31),_0x3766f2=_0x4f7ed1['commentThread']&&_0x4f7ed1['commentThread']['length'],_0x33e50c=_0xee0e31['commentThread']&&_0xee0e31['commentThread']['length'];if(!_0x3766f2&&_0x14f6f9(_0x4e2145,_0x4790e5))return _0x31ad1f['_joinSuggestions'](_0xee0e31,_0x4f7ed1),_0x252555['delete'](_0x4f7ed1),!0x0;if(!_0x33e50c&&_0x14f6f9(_0x4790e5,_0x4e2145))return _0x31ad1f['_joinSuggestions'](_0x4f7ed1,_0xee0e31),_0x252555['delete'](_0xee0e31),!0x0;}return!0x1;}}['_joinSuggestions'](_0x48587e,_0x4f0a86){if(_0x48587e['isMultiRange']){for(const _0x5959fe of _0x4f0a86['getRanges']())_0x48587e['addRange'](_0x5959fe);}else{const _0x397a88=_0x4f0a86['getFirstRange']()['end'];this['_setSuggestionRange'](_0x48587e,this['_model']['createRange'](_0x48587e['getFirstRange']()['start'],_0x397a88));}_0x4f0a86['removeMarkers']();}['_getMarkerAnnouncementText'](_0x78d68d,_0x5d2bce,_0x2ef3ef){const _0x38362e=_0x78d68d['startsWith']('format')||_0x78d68d['startsWith']('attribute')?'FORMATTING':_0x78d68d['toUpperCase']();return c(this['editor']['locale'],_0x5d2bce+'_'+_0x38362e+'_SUGGESTION_ANNOUNCEMENT',_0x2ef3ef);}['_initAriaMarkerChangeAnnouncements'](){const _0x4826ef=this['editor'];if(!_0x4826ef['ui'])return;const {ariaLiveAnnouncer:_0x1862c3}=_0x4826ef['ui'];_0x492d76(this['_model'],({left:_0x324b89,entered:_0x4d7bd4})=>{for(const _0x3a450f of _0x324b89){const {group:_0x2f5c6a,type:_0x87a2c2}=this['_splitMarkerName'](_0x3a450f['name']);if('suggestion'===_0x2f5c6a){_0x1862c3['announce'](this['_getMarkerAnnouncementText'](_0x87a2c2,'LEAVE'));break;}}for(const _0xe8455 of _0x4d7bd4){const {group:_0x13f74a,type:_0x49a2c6}=this['_splitMarkerName'](_0xe8455['name']);if('suggestion'===_0x13f74a){_0x1862c3['announce'](this['_getMarkerAnnouncementText'](_0x49a2c6,'ENTER',_0x5f531a(_0x295ed7)));break;}}});}['_processAttributeChanges'](_0xc1e6fb){if(this['_recordAttributeSuggestions'])return!0x1;const _0x1f009e=this['editor'],_0x1a312a=_0x1f009e['model']['document']['differ']['getChanges']();if(0x0==_0x1a312a['length'])return!0x1;const _0x13e79f=[],_0xb3cc9c=_0x1a312a['filter'](_0x5a2c48=>'attribute'==_0x5a2c48['type']),_0x13484e=_0x1a312a['filter'](_0x4e4bcf=>'insert'==_0x4e4bcf['type']&&'$text'!=_0x4e4bcf['name']),_0x24f756=_0x1a312a['filter'](_0x5a0ea2=>'remove'==_0x5a0ea2['type']&&'$text'!=_0x5a0ea2['name']);for(const _0x4d3e56 of _0xb3cc9c)_0x13e79f['push']({'key':_0x4d3e56['attributeKey'],'newValue':_0x4d3e56['attributeNewValue'],'oldValue':_0x4d3e56['attributeOldValue'],'range':Ht(_0x4d3e56['range'],_0x1f009e['model'])});for(const _0x1c7a4f of _0x13484e){const _0x4567b9=_0x24f756['find'](_0x2d5880=>_0x2d5880['position']['isEqual'](_0x1c7a4f['position']));_0x4567b9&&_0x13e79f['push']({'key':u,'newValue':_0x1c7a4f['name'],'oldValue':_0x4567b9['name'],'range':_0x1f009e['model']['createRangeOn'](_0x1c7a4f['position']['nodeAfter'])});}return 0x0!=_0x13e79f['length']&&this['_reduceExistingSuggestions'](_0xc1e6fb,_0x13e79f);}['_processAttributeSuggestions'](_0x1f2349){let _0x4300b7=!0x1;const _0x16b392=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x336d98=>_0x336d98['data']['newRange']&&_0x336d98['name']['startsWith']('suggestion:attribute:'));for(const _0x34469c of _0x16b392){const {subType:_0x531aa7,id:_0x445525}=this['_splitMarkerName'](_0x34469c['name']),_0x566817=_0x531aa7['split']('|')[0x0];for(const _0x5359dd of this['getSuggestions']({'skipNotAttached':!0x0}))_0x5359dd['id']!=_0x445525&&'attribute'==_0x5359dd['type']&&_0x5359dd['data']&&_0x5359dd['data']['key']==_0x566817&&_0x5359dd['getFirstRange']()['isIntersecting'](_0x34469c['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x5359dd,_0x34469c['data']['newRange'],_0x1f2349),_0x4300b7=!0x0);}return _0x4300b7;}['_recordAttributeChanges'](_0x2c9cc3){this['_recordAttributeSuggestions']=!0x0,_0x2c9cc3();}['_isRegisteredAttribute'](_0x1a942e){const _0x241ee7=this['_isBlockAttribute'](_0x1a942e),_0x2c61c8=this['_inlineAttributeKeys']['has'](_0x1a942e);return _0x241ee7||_0x2c61c8;}['_reduceExistingSuggestions'](_0x445186,_0x57d3b5){if(0x0==_0x57d3b5['length'])return!0x1;let _0x215001=!0x1;for(const _0x5529d9 of _0x57d3b5){const _0xb939d7=this['_findSuggestions'](_0x5529d9['range'],'attribute')['filter'](_0x1e8106=>!_0x1e8106['meta']['isNextTo'])['map'](_0x29eb70=>_0x29eb70['suggestion']),_0x470d6b=_0x52257a({'newValue':_0x5529d9['newValue']});_0xb939d7['filter'](_0x32dc25=>{const [_0x368e1b,_0x49daac]=_0x32dc25['subType']['split']('|');return _0x368e1b==_0x5529d9['key']&&_0x49daac!=_0x470d6b;})['forEach'](_0x111a95=>{this['_reduceSuggestionAttributeRange'](_0x111a95,_0x5529d9['range'],_0x445186),_0x215001=!0x0;});}return _0x215001;}['_reduceSuggestionAttributeRange'](_0x2fd416,_0x2efe6d,_0x540bbf){const _0x3ef289=_0x2fd416['getFirstRange']()['getDifference'](_0x2efe6d);0x0!==_0x3ef289['length']?0x1!==_0x3ef289['length']?this['_breakSuggestionMarker'](_0x2fd416,_0x2efe6d['start'],_0x2efe6d['end']):this['_setSuggestionRange'](_0x2fd416,_0x3ef289[0x0]):_0x540bbf['removeMarker'](_0x2fd416['getFirstMarker']());}}class Ft{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x298275){this['_editor']=_0x298275,this['_model']=_0x298275['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0xb525f3,_0x414f3c,_0x1048d8,_0x2cf7b0,_0x581797,_0x4ce114){return new o(this['_model'],{'type':_0xb525f3,'subType':_0x414f3c,'id':_0x1048d8,'author':_0x2cf7b0,'creator':_0x2cf7b0,'attributes':_0x581797,'onAttributesChange':_0x4ce114,'onAccept':(..._0x1021f6)=>this['getSuggestionCallback'](_0xb525f3,_0x414f3c,'accept')(..._0x1021f6),'onDiscard':(..._0x3e2c03)=>this['getSuggestionCallback'](_0xb525f3,_0x414f3c,'discard')(..._0x3e2c03)});}['registerCustomCallback'](_0x3b4ff5,_0x44a51b,_0x221312,_0x4a1e4f){const _0x22738f=_0x3b4ff5+':'+_0x44a51b+':'+_0x221312;this['_customCallbacks']['set'](_0x22738f,_0x4a1e4f);}['getSuggestionCallback'](_0x274e23,_0x13a3dd,_0x12ff8e){const _0x8a21d5=_0x274e23+':'+_0x13a3dd+':'+_0x12ff8e;return this['_customCallbacks']['get'](_0x8a21d5)||this['_defaultCallbacks']['get'](_0x274e23+':'+_0x12ff8e);}['_registerDefaultCallbacks'](){const _0x3b1fa8=()=>!0x1,_0x26d747=_0x11d751=>{_0x11d751['sort']((_0x23b4c3,_0x134d8b)=>_0x23b4c3['start']['isBefore'](_0x134d8b['start'])?0x1:-0x1),this['_model']['change'](_0x40f1fa=>{for(const _0x49f0bf of _0x11d751){let _0x2eabf2;_0x2eabf2=_0x49f0bf['end']['isAtEnd']&&_0x49f0bf['end']['parent']==_0x49f0bf['start']['nodeAfter']?_0x40f1fa['createSelection'](_0x49f0bf['start']['nodeAfter'],'on'):_0x40f1fa['createSelection'](_0x49f0bf),this['_model']['deleteContent'](_0x2eabf2,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x597225=(_0x147b8f,_0xf7c17f)=>{_0xf7c17f&&this['_model']['change'](_0x53b0ea=>{const {commandName:_0x31b34d,commandParams:_0x3fd41a=[]}=_0xf7c17f,_0x5e21a7=_0x147b8f['map'](_0x34de76=>(Gt(_0x34de76)&&(_0x34de76=this['_model']['createRange'](_0x34de76['end'])),_0x34de76))['filter'](_0x5cda2a=>'$graveyard'!==_0x5cda2a['root']['rootName']);if(_0x5e21a7['length']<0x1)return;const _0x55e436=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x45329d=>_0x6b53b6['fromRange'](_0x45329d));_0x53b0ea['setSelection'](_0x5e21a7);for(const _0x47ca9b of this['_editor']['commands']['commands']())_0x47ca9b['refresh']();_0x3fd41a['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x31b34d,..._0x3fd41a);const _0x37039a=_0x55e436['filter'](_0x1c713b=>'$graveyard'!=_0x1c713b['root']['rootName']);_0x37039a['length']>0x0&&_0x53b0ea['setSelection'](_0x37039a);for(const _0x127e35 of _0x55e436)_0x127e35['detach']();});},_0x152216=(_0x389eff,_0x418f2a)=>0x1==_0x389eff['length']&&0x1==_0x418f2a['length']&&_0x389eff[0x0]['end']['isEqual'](_0x418f2a[0x0]['start']),_0x523d0b=(_0x4727b7,_0x1acb8d,_0x299167,_0x4bb721)=>zt(_0x4727b7,_0x1acb8d,_0x299167,_0x4bb721)?[_0x4727b7,_0x1acb8d]:zt(_0x1acb8d,_0x4727b7,_0x4bb721,_0x299167)?[_0x1acb8d,_0x4727b7]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x3b1fa8),this['_defaultCallbacks']['set']('insertion:discard',_0x26d747),this['_defaultCallbacks']['set']('insertion:join',_0x152216),this['_defaultCallbacks']['set']('insertion:chain',_0x523d0b),this['_defaultCallbacks']['set']('deletion:accept',_0x26d747),this['_defaultCallbacks']['set']('deletion:discard',_0x3b1fa8),this['_defaultCallbacks']['set']('deletion:join',_0x152216),this['_defaultCallbacks']['set']('deletion:chain',_0x523d0b),this['_defaultCallbacks']['set']('formatInline:accept',_0x597225),this['_defaultCallbacks']['set']('formatInline:discard',_0x3b1fa8),this['_defaultCallbacks']['set']('formatInline:join',_0x152216),this['_defaultCallbacks']['set']('formatInline:chain',_0x3b1fa8),this['_defaultCallbacks']['set']('formatBlock:accept',_0x597225),this['_defaultCallbacks']['set']('formatBlock:discard',_0x3b1fa8),this['_defaultCallbacks']['set']('formatBlock:join',_0x152216),this['_defaultCallbacks']['set']('formatBlock:chain',_0x3b1fa8),this['_defaultCallbacks']['set']('attribute:accept',_0x3b1fa8),this['_defaultCallbacks']['set']('attribute:discard',(_0x436b3a,_0x279568)=>{if(!_0x279568)return;const _0x41ce90=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x2983fd=>{if(_0x279568['key']==u)for(const _0x3b2683 of _0x436b3a){const _0xc54ba4=_0x3b2683['start']['nodeAfter'],_0x5069ff=_0x279568['oldValue'];_0x2983fd['rename'](_0xc54ba4,_0x5069ff);}else{if(_0x41ce90['_isBlockAttribute'](_0x279568['key'])){for(const _0x527fc1 of _0x436b3a)void 0x0!==_0x279568['oldValue']?_0x2983fd['setAttribute'](_0x279568['key'],_0x279568['oldValue'],_0x527fc1['start']['nodeAfter']):_0x2983fd['removeAttribute'](_0x279568['key'],_0x527fc1['start']['nodeAfter']);}else{for(const _0x4037a1 of _0x436b3a)_0x279568['oldValue']?_0x2983fd['setAttribute'](_0x279568['key'],_0x279568['oldValue'],_0x4037a1):_0x2983fd['removeAttribute'](_0x279568['key'],_0x4037a1);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x152216);}}function Pt(_0xc7906b,_0x26d94c,_0x35a008){for(const _0x5a7276 of _0x26d94c['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5a7276['root']==_0x5a7276)return!0x1;if(!_0x35a008['containsItem'](_0x5a7276))return!0x1;if(_0xc7906b['isObject'](_0x5a7276)||_0xc7906b['isLimit'](_0x5a7276))return!0x0;}return!0x1;}function Gt(_0x546605){return _0x546605['end']['parent']==_0x546605['start']['nodeAfter']&&_0x546605['end']['isAtStart'];}function Lt(_0x5a8e55,_0x17d046,_0x101fe7,_0x2c33ba){const _0x2f57dd=_0x71dbc4=>!_0x71dbc4['item']['is']('$textProxy')&&!_0x2c33ba['isObject'](_0x71dbc4['item']),_0x3f30c7=_0x5a8e55['start']['getLastMatchingPosition'](_0x2f57dd),_0x50b724=_0x5a8e55['end']['getLastMatchingPosition'](_0x2f57dd,{'direction':'backward'});return(!_0x5a8e55['start']['isEqual'](_0x3f30c7)||!_0x5a8e55['end']['isEqual'](_0x50b724))&&(_0x3f30c7['isBefore'](_0x50b724)?_0x101fe7['updateMarker'](_0x17d046,{'range':_0x101fe7['createRange'](_0x3f30c7,_0x50b724)}):_0x101fe7['removeMarker'](_0x17d046),!0x0);}function Jt(_0x592e1d){return _0x52257a(_0x592e1d);}function Kt(_0x5763d8){const _0x4de1a2=_0x5763d8['start']['nodeAfter'];return _0x4de1a2&&_0x4de1a2['is']('element');}function Ht(_0x50c932,_0x44cca1){return null==_0x50c932['end']['nodeBefore']&&_0x50c932['end']['parent']==_0x50c932['start']['nodeAfter']?qt(_0x50c932['start']['nodeAfter'],_0x44cca1):_0x50c932;}function qt(_0x47b298,_0x136b8b){const _0x6f71f4=_0x136b8b['schema']['isObject'](_0x47b298)||_0x136b8b['schema']['isSelectable'](_0x47b298);return _0x136b8b['createRange'](_0x136b8b['createPositionAt'](_0x47b298,'before'),_0x6f71f4?_0x136b8b['createPositionAfter'](_0x47b298):_0x136b8b['createPositionAt'](_0x47b298,'end'));}function zt(_0x3d0438,_0x4732a3,_0x5e0635,_0xde191d){return!!Wt(_0x3d0438,_0x4732a3)&&_0x5e0635['end']['isEqual'](_0xde191d['start']);}function Wt(_0x548420,_0x1580d7){if(!_0x548420['_isDataLoaded']||!_0x1580d7['_isDataLoaded'])return!0x1;const _0xa93a0=new Set(Object['keys'](_0x548420['attributes'])),_0x53781c=new Set(Object['keys'](_0x1580d7['attributes']));if(_0xa93a0['delete']('groupId'),_0x53781c['delete']('groupId'),0x0==_0xa93a0['size']&&0x0==_0x53781c['size'])return!0x0;if(_0xa93a0['size']!=_0x53781c['size'])return!0x1;const _0x90eb32={..._0x548420['attributes']},_0x255736={..._0x1580d7['attributes']};return delete _0x90eb32['groupId'],delete _0x255736['groupId'],JSON['stringify'](_0x90eb32)==JSON['stringify'](_0x255736);}function Qt(_0x44b136,_0x402039){const _0x21905b=Xt(_0x44b136['attributes']),_0x200556=Xt(_0x402039);if(!_0x44b136['_isDataLoaded'])return!0x1;for(const _0x4fae30 of Object['keys'](_0x200556))if(!_0x14f7b8(_0x21905b[_0x4fae30],_0x200556[_0x4fae30]))return!0x1;return!0x0;}function Xt(_0xe56fc9){const _0x5a5d21=Object['assign']({},_0xe56fc9);return delete _0x5a5d21['skipNestingCheck'],delete _0x5a5d21['tablePasteChainId'],_0x5a5d21;}class pe extends/* #__PURE__ -- @preserve */
25
- _0x1f73ca(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x138465,_0x4bad6b,_0x11fed1,_0x338f64){super(),this['model']=_0x4bad6b,this['view']=_0x11fed1,this['commentThreadController']=_0x338f64,this['_editor']=_0x138465,this['_acceptCommand']=_0x138465['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x138465['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x177990,_0x4e219e)=>_0x177990||_0x4e219e),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x590079=>_0x590079&&this['_editor']['model']['canEditAt'](_0x4bad6b['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x730845=>_0x730845&&this['_editor']['model']['canEditAt'](_0x4bad6b['getRanges']())),this['_pendingAction']=null,_0x11fed1['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x11fed1,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x11fed1,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x11fed1,'change:isDirty',()=>{_0x11fed1['isDirty']?this['_setPendingAction']():this['_removePendingAction']();});}['acceptSuggestion'](){this['_acceptCommand']['execute'](this['model']['id']);}['discardSuggestion'](){this['_discardCommand']['execute'](this['model']['id']);}['destroy'](){this['view']['unbind']('isEnabled'),this['view']['unbind']('canAccept'),this['view']['unbind']('canDiscard'),this['stopListening'](),this['commentThreadController']['destroy'](),this['_pendingAction']&&this['_removePendingAction']();}['_setPendingAction'](){const _0x1b5344=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x1b5344);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x1d3524{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x5efcfa,_0x3fd104,_0x4da3e8,_0x1a8747){super(_0x5efcfa),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0xa50ecc(_0x5efcfa,c(_0x5efcfa,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x3fd104['authoredAt']),this['bind']('authoredAt')['to'](_0x3fd104),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['bind']('ariaLabel')['to'](this,'length',_0x3fd104,'authoredAt',this,'descriptionParts',(_0x3696c5,_0x202f9a,_0x334543)=>{const _0x5e31fd=_0x334543['map'](_0x24e203=>ls(_0x24e203['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x3696c5-0x1,_0x3fd104['author']['name'],_0x202f9a?_0x1a8747['formatDateTime'](_0x202f9a):'',new DOMParser()['parseFromString'](_0x5e31fd,'text/html')['body']['textContent']]);}),this['focusables']=new _0x10e58e(),this['focusTracker']=new _0xc2e669(),this['keystrokes']=new _0x5188e6(),this['focusCycler']=new _0x279a0f({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x574cef=>_0x574cef['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x3fd104,this['_localUser']=_0x4da3e8,this['_config']=_0x1a8747,_0x1a8747['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x82ff32(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x397c0a}=this['_config'];this['commentsListView']=new _0x397c0a(this['locale'],this['_model']['commentThread'],Object['assign']({'CommentView':this['_config']['CommentView']},this['_config'])),this['commentsListView']['delegate']('removeComment')['to'](this),this['commentsListView']['delegate']('updateComment')['to'](this),this['commentsListView']['bind']('isActive')['to'](this),this['set']('length',this['commentsListView']['length']+0x1),this['bind']('length')['to'](this['commentsListView'],'length',_0x17e14e=>_0x17e14e+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x40dc1f,_0x5e16ad)=>_0x40dc1f||!!_0x5e16ad);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x4ab846}=this['_config'],_0x3c0d55=new _0x4ab846(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0xf2a2f=_0x3c0d55['commentInputView'];return _0x3c0d55['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0xf2a2f,'value',(_0x2076f1,_0x1abf3f,_0x480261)=>!!_0x480261||_0x2076f1&&!_0x1abf3f),_0xf2a2f['on']('submit',(_0xca709c,_0x205cf0)=>{this['fire']('addComment',_0x205cf0),_0xf2a2f['editor']['setData']('');}),_0xf2a2f['on']('cancel',()=>this['focus']()),_0xf2a2f['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x3c0d55;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x43d9cf,_0x1b67de,_0x411ff2,_0x1b7584){super(_0x43d9cf,_0x1b67de,_0x411ff2,_0x1b7584),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x346671=>_0x346671&&_0x346671[0x0]?_0x346671[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3acfc8,_0x4039a6)=>{let _0x2c3e4a='';for(const _0x2ad023 of _0x3acfc8)_0x2c3e4a+='<p>'+ls(_0x2ad023['content'],_0x2ad023['color'])+'</p>';return _0x4039a6?_0x2c3e4a:ti(_0x2c3e4a,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x1b7584['SuggestionView'](_0x43d9cf,_0x1b67de,{'formatDateTime':_0x1b7584['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x583ce0=this['bindTemplate'],_0x4c6823=[this['suggestionView']];return this['commentsListView']&&_0x4c6823['push'](this['commentsListView']),this['commentThreadInputView']&&_0x4c6823['push'](this['commentThreadInputView']),_0x4c6823['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x583ce0['if']('isActive','ck-suggestion-wrapper--active'),_0x583ce0['to']('type',_0x3d3331=>'ck-suggestion-'+_0x3d3331),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x583ce0['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x4c6823};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class we extends _0x1d3524{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x4c3d06,_0x53d039,_0x5ec176){super(_0x4c3d06),this['_model']=_0x53d039,this['_config']=_0x5ec176,this['set']('description',''),this['bind']('authoredAt')['to'](_0x53d039),this['acceptButton']=this['_createButton'](c(_0x4c3d06,'Accept\x20suggestion'),_0x35d65b,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x4c3d06,'Discard\x20suggestion'),_0x12bc4e,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0xecee32(_0x4c3d06,_0x53d039['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x10e58e([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0xc2e669(),this['keystrokes']=new _0x5188e6(),this['focusCycler']=new _0x279a0f({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x23e813=>_0x23e813['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x2392b4=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x2392b4['innerHTML']=this['description'],this['on']('change:description',(_0x48f625,_0x15b37f,_0x3012d8)=>{_0x2392b4['innerHTML']=_0x3012d8;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x400184=this['bindTemplate'],_0x516ddd=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x400184['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x400184['to']('authoredAt',_0x46219a=>this['_config']['formatDateTime'](_0x46219a))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0x516ddd['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x516ddd}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x5c010e,_0x593078,_0x207e0f,_0x7d77a,_0x32994e){const _0x16942d=new _0x2f4a77(this['locale']);return _0x16942d['set']({'label':_0x5c010e,'icon':_0x593078,'tooltip':!0x0,'tooltipPosition':_0x32994e}),_0x16942d['extendTemplate']({'attributes':{'class':_0x207e0f}}),_0x16942d['on']('execute',()=>{this['fire'](_0x7d77a,this['_model']['id']);}),_0x16942d;}['_setupKeyboardNavigation'](){const _0x2863b9=this['element'];this['keystrokes']['listenTo'](_0x2863b9);for(const _0x191588 of this['focusables'])this['focusTracker']['add'](_0x191588['element']),this['keystrokes']['listenTo'](_0x191588['element']);this['keystrokes']['set']('enter',(_0x5195b0,_0x5e306e)=>{_0x2863b9===_0x5195b0['target']&&(this['focusCycler']['focusFirst'](),_0x5e306e());}),this['keystrokes']['set']('esc',(_0x563d99,_0x460757)=>{_0x2863b9!==_0x563d99['target']&&(this['focus'](),_0x460757());});}}class d extends _0x54e516{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x25323f,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1a8b6c){super(_0x1a8b6c),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0xda7927=this['editor']['config'];_0xda7927['define']('trackChanges.SuggestionThreadView',fe),_0xda7927['define']('trackChanges.SuggestionView',we),_0xda7927['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0xda7927['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x394fc4,_0x4f1f25){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x1d1bf2,_0x164bd8]of this['_handleControllerBuffer']){const _0x5acc99=this['_suggestionToController']['has'](_0x1d1bf2);_0x5acc99||_0x164bd8?_0x5acc99&&_0x164bd8&&this['_destroyController'](_0x1d1bf2):this['_initializeController'](_0x1d1bf2);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x394fc4,_0x4f1f25);}['init'](){const _0x500011=this['editor'],_0x45850b=_0x500011['plugins']['get']('TrackChangesEditing'),_0x1bed96=_0x500011['plugins']['get']('Annotations'),_0x14fb3b=_0x500011['plugins']['get']('EditorAnnotations'),_0x20793a=_0x500011['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x14fb3b['addSourceCollector'](()=>{const _0x65493c=[];for(const [_0x55eb1c,_0x2a9050]of Array['from'](this['_suggestionToController'])){const _0x1525db=_0x55eb1c['getAllAdjacentSuggestions'](),_0x3152bc=[];for(const _0x2d16e9 of _0x1525db){if(!_0x2d16e9['isInContent'])continue;if(_0x2d16e9['isMultiRange']){_0x3152bc['push'](..._0x2d16e9['getRanges']());continue;}const _0x47b2e9=_0x2d16e9['getFirstRange']();if(_0x3152bc['length']>0x0){const _0x4cee85=_0x3152bc[0x0]['getJoined'](_0x47b2e9);if(_0x4cee85){_0x3152bc[0x0]=_0x4cee85;continue;}}_0x3152bc['push'](_0x47b2e9);}_0x65493c['push']([_0x2a9050['view'],_0x3152bc]);}return _0x65493c;}),this['listenTo'](_0x45850b,'suggestionLoaded',(_0xbb7b25,_0x1965b9)=>{this['listenTo'](_0x1965b9,'change:previous',(_0x328e37,_0x16a004,_0x540536,_0x326c57)=>{_0x1965b9['isInContent']&&(null==_0x540536?(this['_updateController'](_0x326c57['head']),this['_handleSuggestionControllerDelayed'](_0x1965b9,!0x1)):(this['_updateController'](_0x540536['head']),null==_0x326c57&&this['_handleSuggestionControllerDelayed'](_0x1965b9,!0x0)));}),null!==_0x1965b9['previous']?this['_updateController'](_0x1965b9['head']):this['_handleSuggestionControllerDelayed'](_0x1965b9,!0x1);}),this['listenTo'](_0x45850b,'suggestionUnloaded',(_0x5cea6a,_0x2b1da8,_0x5a3e02)=>{this['stopListening'](_0x2b1da8,'change:previous'),this['_handleControllerBuffer']['delete'](_0x2b1da8),this['_suggestionToController']['has'](_0x2b1da8)&&this['_destroyController'](_0x2b1da8),_0x5a3e02&&this['_updateController'](_0x5a3e02['head']);}),this['listenTo'](_0x45850b,'suggestionChanged',(_0x4a0794,_0x5d6f85)=>{this['_updateController'](_0x5d6f85);}),this['listenTo'](_0x1bed96,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x20793a,'addComment',(_0x1ed433,{threadId:_0x1ce766,isFromAdapter:_0x1dd39e})=>{if(_0x1dd39e||!_0x45850b['hasSuggestion'](_0x1ce766))return;const _0x52c591=_0x45850b['getSuggestion'](_0x1ce766);this['_suggestionToController']['get'](_0x52c591)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x50dbb8=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3919e6;for(const _0x2bc92f in _0x50dbb8){const _0x24d510=_0x2bc92f,_0x31b777=_0x50dbb8[_0x24d510];if('trackChangesLicenseKeyValid'==_0x31b777||'trackChangesLicenseKeyInvalid'==_0x31b777||'trackChangesLicenseKeyExpired'==_0x31b777||'trackChangesLicenseKeyDomainLimit'==_0x31b777||'trackChangesLicenseKeyNotAllowed'==_0x31b777||'trackChangesLicenseKeyEvaluationLimit'==_0x31b777||'trackChangesLicenseKeyTrialLimit'==_0x31b777||'trackChangesLicenseKeyUsageLimit'==_0x31b777){delete _0x50dbb8[_0x24d510],_0x3919e6=_0x31b777,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x3919e6&&_0x50dbb8['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x3919e6&&_0x50dbb8['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x3919e6&&_0x50dbb8['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x3919e6&&_0x50dbb8['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x3919e6&&_0x50dbb8['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x3919e6&&_0x50dbb8['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x3919e6&&_0x50dbb8['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x588185=this['editor']['plugins']['get']('Annotations'),_0x17645b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3a431f=Array['from'](_0x588185['activeAnnotations'],_0x4f26b3=>_0x4f26b3['innerView'])['filter'](_0x1e7b62=>this['_viewToController']['has'](_0x1e7b62)),_0x5de93d=[];for(const _0x2fdb8b of _0x3a431f){const _0xc7b842=this['_viewToController']['get'](_0x2fdb8b)['model']['getAllAdjacentSuggestions']();_0x5de93d['push'](..._0xc7b842['reduce']((_0x209820,_0x585b24)=>[..._0x209820,..._0x585b24['getMarkerNames']()],[]));}_0x17645b['activeMarkers']=_0x5de93d;}['_addUIComponentsToFactory'](){const _0x3f461e=this['editor'],_0xcf1027=_0x3f461e['locale'],_0x4fc038=c(_0xcf1027,'Track\x20changes'),_0x29b82c=new _0x2e0cef([{'type':'switchbutton','model':new _0x4e4f6a({'withText':!0x0,'isToggleable':!0x0,'label':_0x4fc038,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x4e4f6a({'withText':!0x0,'label':c(_0xcf1027,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4e4f6a({'withText':!0x0,'label':c(_0xcf1027,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4e4f6a({'withText':!0x0,'label':c(_0xcf1027,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4e4f6a({'withText':!0x0,'label':c(_0xcf1027,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x3f461e['plugins']['has']('TrackChangesPreview')&&_0x29b82c['addMany']([{'type':'separator'},{'type':'button','model':new _0x4e4f6a({'withText':!0x0,'label':c(_0xcf1027,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x19072c of _0x29b82c)if(ke(_0x19072c)){const _0x360bee=_0x3f461e['commands']['get'](_0x19072c['model']['commandName']);_0x19072c['model']['bind']('isOn','isEnabled')['to'](_0x360bee,'value','isEnabled');}_0x3f461e['ui']['componentFactory']['add']('trackChanges',_0x1d0388=>this['_createToolbarButton'](_0x1d0388,_0x29b82c,_0x4fc038)),_0x3f461e['ui']['componentFactory']['add']('menuBar:trackChanges',_0x21640a=>this['_createMenuBarMenu'](_0x21640a,_0x29b82c,_0x4fc038));}['_createToolbarButton'](_0xb14fb7,_0x5189f7,_0x21d81c){const _0x5eae1f=_0x56e766(_0xb14fb7,_0x5c40a3),_0x5c7cb4=this['editor']['commands']['get']('trackChanges');_0x5eae1f['buttonView']['set']({'tooltip':_0x21d81c,'label':_0x21d81c,'icon':_0xd8a762}),_0x5eae1f['buttonView']['bind']('isOn')['to'](_0x5c7cb4,'value'),_0x5eae1f['buttonView']['on']('execute',()=>{_0x5c7cb4['execute'](),this['editor']['editing']['view']['focus']();}),_0x3efabf(_0x5eae1f,_0x5189f7,{'role':'menu'});const _0x423edc=[];for(const _0x2549ca of _0x5189f7)ke(_0x2549ca)&&_0x423edc['push'](this['editor']['commands']['get'](_0x2549ca['model']['commandName']));const _0x531684=_0x5eae1f['buttonView'];return _0x531684['actionView']['unbind']('isEnabled'),_0x531684['arrowView']['unbind']('isEnabled'),_0x531684['actionView']['bind']('isEnabled')['to'](_0x5c7cb4,'isEnabled'),_0x531684['arrowView']['bind']('isEnabled')['toMany'](_0x423edc,'isEnabled',(..._0x46ab7f)=>_0x46ab7f['some'](_0xc82994=>_0xc82994)),_0x5eae1f['on']('execute',_0x24539c=>{this['editor']['execute'](_0x24539c['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x5eae1f;}['_createMenuBarMenu'](_0x46a053,_0x2d498a,_0x1714b5){const _0x3ebaf4=new _0x1aee17(_0x46a053),_0x1b5bc7=this['editor']['commands']['get']('trackChanges');_0x3ebaf4['buttonView']['set']({'label':_0x1714b5,'icon':_0xd8a762});const _0x36a975=new _0x2d7c81(_0x46a053);for(const _0x593f76 of _0x2d498a){if('separator'==_0x593f76['type']){_0x36a975['items']['add'](new _0x36879a(_0x46a053));continue;}const _0x276e36=new _0x4592f0(_0x46a053,_0x3ebaf4),_0x33b7c7=new _0x89f640(_0x46a053),_0x10d4fb=_0x593f76['model'];_0x33b7c7['bind'](...Object['keys'](_0x10d4fb))['to'](_0x10d4fb),_0x33b7c7['delegate']('execute')['to'](_0x3ebaf4),_0x33b7c7['on']('execute',()=>{this['editor']['execute'](_0x10d4fb['commandName']),this['editor']['editing']['view']['focus']();}),_0x276e36['children']['add'](_0x33b7c7),_0x36a975['items']['add'](_0x276e36);}return _0x3ebaf4['bind']('isEnabled')['to'](_0x1b5bc7,'isEnabled'),_0x3ebaf4['panelView']['children']['add'](_0x36a975),_0x3ebaf4;}['_initializeController'](_0x84336c){const _0x4e91bc=this['editor'],_0x2a4e4b=_0x4e91bc['config'],_0x3b6817=_0x4e91bc['plugins']['get']('Annotations'),_0x1fac0a=_0x4e91bc['plugins']['get']('CommentsRepository'),_0x17d464=_0x4e91bc['plugins']['get']('EditorAnnotations'),_0x4978f1=_0x4e91bc['plugins']['get'](_0x25323f)['me'],_0x2dc753=_0x2a4e4b['get']('trackChanges')['SuggestionThreadView'],_0x4a2187=_0x2a4e4b['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x23fa84,CommentThreadInputView:_0x56c5b0}=_0x4e91bc['plugins']['get']('CommentsUI');let _0x361464,_0x116799,_0x3834a1;this['_annotationViews']['has'](_0x84336c['id'])?(_0x116799=this['_annotationViews']['get'](_0x84336c['id']),_0x361464=_0x116799['mainView']):(_0x361464=new _0x2dc753(_0x4e91bc['locale'],_0x84336c,_0x4978f1,{'disableComments':this['_disableComments'],'editorConfig':{..._0x2a4e4b['get']('comments.editorConfig'),'licenseKey':_0x2a4e4b['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x2a4e4b['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x2a4e4b['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x2a4e4b['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x31fc8e(_0x2a4e4b['get']('locale')),'CommentView':_0x2a4e4b['get']('comments')['CommentView'],'CommentsListView':_0x23fa84,'CommentThreadInputView':_0x56c5b0,'SuggestionView':_0x4a2187}),_0x361464['suggestionView']['acceptButton']['on']('execute',()=>{_0x4e91bc['editing']['view']['focus']();}),_0x361464['suggestionView']['discardButton']['on']('execute',()=>{_0x4e91bc['editing']['view']['focus']();}),_0x116799=_0x3b6817['createAnnotationView'](this['editor']['locale'],_0x361464),_0x116799['bind']('isDirty')['to'](_0x361464,'isDirty'),_0x116799['bind']('length')['to'](_0x361464),_0x116799['bind']('type')['to'](_0x361464,'type',_0x3201ab=>'suggestion-'+_0x3201ab),_0x361464['on']('escape',()=>{_0x3834a1['fire']('escape');}),this['_annotationViews']['set'](_0x84336c['id'],_0x116799));const _0x1ec94c=_0x1fac0a['createCommentThreadController'](_0x84336c['commentThread'],_0x361464),_0x35cdfa=new pe(_0x4e91bc,_0x84336c,_0x361464,_0x1ec94c),_0x3ee3c8=_0x84336c['getAllAdjacentSuggestions']()['filter'](_0x542498=>_0x542498['isInContent']);_0x361464['descriptionParts']=_0x4e91bc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x3ee3c8),this['_suggestionToController']['set'](_0x84336c,_0x35cdfa),this['_viewToController']['set'](_0x361464,_0x35cdfa),_0x3834a1=_0x3b6817['createAnnotation']({'view':_0x116799,'target':()=>{const _0x1aa890=[],_0x19d2e3=_0x84336c['getAllAdjacentSuggestions']()['filter'](_0x31bba0=>_0x31bba0['isInContent']);for(const _0x5cb6bf of _0x19d2e3)_0x1aa890['push'](..._0x5cb6bf['getMarkers']());return _0x1cd5aa(_0x4e91bc['editing'],_0x1aa890);},'type':()=>'suggestion-'+_0x35cdfa['view']['type']}),_0x1fac0a['_bindAnnotationToEditors'](_0x361464,_0x3834a1),_0x3b6817['add'](_0x3834a1),_0x17d464['registerAnnotation'](_0x3834a1);}['_destroyController'](_0x5e4fa0){const _0xbaa07c=this['editor']['plugins']['get']('CommentsRepository'),_0x46b779=this['editor']['plugins']['get']('Annotations'),_0x379604=this['_suggestionToController']['get'](_0x5e4fa0),_0x27bdc1=_0x379604['view'],_0x18ee01=_0x46b779['getByInnerView'](_0x27bdc1);_0xbaa07c['_unbindEditors'](_0x27bdc1),_0x18ee01&&_0x46b779['remove'](_0x18ee01),this['_suggestionToController']['delete'](_0x5e4fa0),this['_viewToController']['delete'](_0x27bdc1),_0x379604['destroy']();}['_updateController'](_0x26e460){if(!_0x26e460['isInContent']||!this['_suggestionToController']['has'](_0x26e460))return;const _0x34f603=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3600af=this['_suggestionToController']['get'](_0x26e460),_0x5a4f6e=_0x26e460['getAllAdjacentSuggestions']();_0x3600af['view']['descriptionParts']=_0x34f603['descriptionFactory']['getDescriptions'](_0x5a4f6e);}['destroy'](){for(const _0x35b041 of this['_suggestionToController']['keys']())this['_destroyController'](_0x35b041);for(const _0x2573cc of this['_annotationViews']['values']())_0x2573cc['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0xc30b38){return'model'in _0xc30b38;}class k extends _0x54e516{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x504270){this['editor']['plugins']['get'](p)['adapter']=_0x504270;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x3da1ac){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x3da1ac);}['getSuggestions']({skipNotAttached:_0x258b96=!0x1,toJSON:_0x11a7aa=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x258b96,'toJSON':_0x11a7aa});}['getSuggestion'](_0xc31a46){return this['editor']['plugins']['get'](p)['getSuggestion'](_0xc31a46);}}const w=['Pagination'];class T extends _0x54e516{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x1b3ce8=this['editor'];if(_0x1b3ce8['config']['define']('trackChangesData.editorCreator',_0x2b1cdb=>{const _0x3a850d=_0x1b3ce8['model']['document']['getRootNames']()['reduce']((_0xdb57fa,_0x28fcf8)=>(_0xdb57fa[_0x28fcf8]='',_0xdb57fa),{});return _0x1b3ce8['constructor']['create'](_0x3a850d,_0x2b1cdb);}),'function'!=typeof _0x1b3ce8['config']['get']('trackChangesData')['editorCreator'])throw new _0x1a1d2d('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x6c22bc){return N(this['editor'],!0x0,_0x6c22bc);}['getDataWithDiscardedSuggestions'](_0x29975b){return N(this['editor'],!0x1,_0x29975b);}}class D extends _0x54e516{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x56190f){function _0x504eab(_0x516c06){return _0x516c06['map'](_0x4e23df=>String['fromCharCode'](_0x4e23df))['join']('');}super(_0x56190f),this['result']='end',_0x56190f[_0x504eab([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x504eab([0x76,0x69,0x65,0x77])][_0x504eab([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x504eab([0x61,0x75,0x74,0x6f]),_0x56190f[_0x504eab([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x504eab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x504eab([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x504eab([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x504eab([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function Fe(_0x4eb909){return void 0x0!==_0x4eb909['getRootsAttributes'];}async function N(_0x4acc15,_0x2335fe,_0x344d4e){const _0xfaf3af=_0x3a3895(_0x4acc15,w);_0xfaf3af['plugins']['push'](p,D),_0xfaf3af['rootsAttributes']=Fe(_0x4acc15)?_0x4acc15['getRootsAttributes']():void 0x0;const _0x9259e8=document['createDocumentFragment'](),_0x23f7be=_0x4acc15['config']['get']('trackChangesData')['editorCreator'],_0x18a595=await _0x23f7be(_0xfaf3af,()=>function(_0x285b33){const _0x191604=document['createElement']('div');return _0x285b33['appendChild'](_0x191604),_0x191604;}(_0x9259e8));!function(_0x5dc601,_0x4d0445){const _0x37911a=_0x5dc601['model']['document']['getRootNames']()['reduce']((_0xec86aa,_0x2d7908)=>(_0xec86aa[_0x2d7908]=_0x5dc601['data']['get']({'rootName':_0x2d7908}),_0xec86aa),{}),_0x229b56=_0x5dc601['plugins']['get']('Users')['users']['map'](_0x40c6fc=>({'id':_0x40c6fc['id'],'name':_0x40c6fc['name']})),_0x106864=_0x5dc601['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x149ccd=_0x5dc601['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x110776=_0x4d0445['plugins']['get']('Users'),_0x24c2ed=_0x4d0445['plugins']['get']('TrackChangesEditing'),_0x40cefd=_0x4d0445['plugins']['get']('CommentsRepository');for(const _0x53e7d4 of _0x40cefd['getCommentThreads']())_0x53e7d4['remove']();for(const _0x15627f of _0x229b56)_0x110776['getUser'](_0x15627f['id'])||_0x110776['addUser'](_0x15627f);_0x110776['me']||_0x110776['useAnonymousUser']();for(const _0x505f5c of _0x149ccd)_0x40cefd['addCommentThread'](_0x505f5c);for(const _0x15b863 of _0x106864)_0x24c2ed['addSuggestionData'](_0x15b863);_0x4d0445['data']['set'](_0x37911a);}(_0x4acc15,_0x18a595),_0x18a595['execute'](_0x2335fe?'acceptAllSuggestions':'discardAllSuggestions');const _0x97e301=Fe(_0x18a595)?_0x18a595['getFullData'](_0x344d4e):_0x18a595['data']['get'](_0x344d4e);return await _0x18a595['destroy'](),_0x97e301;}class Me extends _0x1d3524{['options'];constructor(_0x271eb3,_0x1d6d3a){super(_0x271eb3),this['options']=_0x1d6d3a,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}['setPreviewData'](_0x234434,_0x5e87e5){if(!this['element'])return;const _0x3b5e36=[];for(const [_0x42eeca,_0x9e5758]of _0x234434){const _0x5586d3=document['createElement']('div');_0x5586d3['setAttribute']('data-ck-root-name',_0x42eeca),_0x5586d3['className']=_0x9e5758['classes']+'\x20ck-track-changes-preview__root-container',_0x5586d3['innerHTML']=_0x9e5758['content'],_0x3b5e36['push'](_0x5586d3);}_0x5e87e5(this['element'],_0x3b5e36),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x339021{constructor(_0x4c9206){super(_0x4c9206),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x4c2e03=this['editor'],_0x25a92a=_0x4c2e03['locale'],_0x5ae96f=_0x4c2e03['plugins']['get']('Dialog');let _0x26935d;const _0xfdaab7=function(_0x1c75af){const _0x3b3523={};if('editables'in _0x1c75af['ui']['view']){for(const [_0x54edcc,_0x2db791]of Object['entries'](_0x1c75af['ui']['view']['editables']))_0x3b3523[_0x54edcc]=_0x2db791['element'];}else _0x3b3523[_0x1c75af['model']['document']['getRootNames']()[0x0]]=_0x1c75af['ui']['view']['editable']['element'];return _0x3b3523;}(_0x4c2e03),_0x18f08d=function(_0x50210a){let _0x167956=0x0;for(const _0x48fc4d of Object['values'](_0x50210a))_0x167956=Math['max'](_0x167956,_0x48fc4d['getBoundingClientRect']()['width']);let _0x1ad214=0x0;for(const _0x37c7fe of Object['values'](_0x50210a))_0x1ad214+=_0x37c7fe['getBoundingClientRect']()['height'];const _0xc6f730=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x262dc2=Math['min'](_0x1ad214,_0xc6f730);return{'width':_0x167956,'height':_0x262dc2};}(_0xfdaab7);_0x5ae96f['show']({'id':'finalContentPreview','title':c(_0x25a92a,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x25a92a,{'dialogRects':_0x18f08d}),'onHide':()=>{_0x26935d['detachFromDom']();},'onShow':()=>{_0x4c2e03['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x57b65c=>{const _0x31e62a=this['_standarizeRootsData'](_0x57b65c,_0x4c2e03,_0xfdaab7);_0x5ae96f['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x31e62a,_0x4c2e03['config']['get']('trackChanges.preview.renderFunction'));}),_0x26935d=new _0x36cf22(_0x25a92a,[_0x5ae96f['view']]),_0x26935d['attachToDom'](),_0x26935d['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x4c2e03['once']('destroy',()=>{_0x26935d['detachFromDom']();});const _0x5e1a21=_0x5ae96f['view']['headerView']['class'];_0x5ae96f['view']['headerView']['class']=_0x5e1a21?_0x5e1a21+'\x20ck-reset_all':'ck-reset_all',_0x5ae96f['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x5ae96f['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x525773=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x48d997=_0x525773['previewMode'],_0x2fe4c4={};if('$labels'===_0x48d997){for(const _0x2ba6a5 of _0x525773['getMergeFieldsIds']())_0x2fe4c4[_0x2ba6a5]=_0x525773['getLabel'](_0x2ba6a5)||_0x2ba6a5;}else{const _0x4ebb07='$defaultValues'===_0x48d997?_0x525773['getDefaultValues']():_0x525773['getDataSetValues'](_0x48d997,!0x0);for(const _0x29a617 of Object['entries'](_0x4ebb07)){const [_0x14961d,_0x4c7a97]=_0x29a617;_0x2fe4c4[_0x14961d]=null!==_0x4c7a97?_0x4c7a97:_0x525773['getLabel'](_0x14961d)||_0x14961d;}}return{'mergeFieldsData':_0x2fe4c4};}['_standarizeRootsData'](_0x1bf31d,_0x1a8131,_0x499892){let _0x9a7f03;if('string'==typeof _0x1bf31d){const _0x47bff7=_0x1a8131['model']['document']['getRootNames']()[0x0];_0x9a7f03={[_0x47bff7]:_0x1bf31d};}else _0x9a7f03=_0x1bf31d;const _0x1a8454=this['_fixMediaEmbeds'](_0x9a7f03,_0x1a8131),_0x42d372=function(_0x17ce85,_0x3d7f10){for(const [_0x535b86,_0x2dd2c0]of _0x17ce85)_0x2dd2c0['classes']=_0x3d7f10[_0x535b86]['classList']['value']['replace']('ck-focused','');return _0x17ce85;}(this['_sortRoots'](_0x1a8131)['reduce']((_0x4ab4d2,_0x19ae69)=>(_0x4ab4d2['push']([_0x19ae69,{'content':_0x1a8454[_0x19ae69],'classes':''}]),_0x4ab4d2),[]),_0x499892);return _0x42d372;}['_fixMediaEmbeds'](_0x1b561a,_0x5b4309){if(!_0x5b4309['plugins']['has']('MediaEmbedEditing'))return _0x1b561a;const _0x26b909=_0x5b4309['plugins']['get']('MediaEmbedEditing');for(const [_0x295c07,_0x2144cd]of Object['entries'](_0x1b561a)){const _0x35b78a=document['createElement']('div');_0x35b78a['innerHTML']=_0x2144cd,(_0x35b78a['querySelectorAll']('figure.media')['forEach'](_0x3b3ca4=>{const _0x553701=_0x3b3ca4['querySelector']('oembed');if(_0x553701){const _0x4d602b=_0x553701['getAttribute']('url');if(_0x4d602b){const _0x441745=_0x26b909['registry']['getMediaViewElement'](new _0x162b19(_0x5b4309['editing']['view']['document']),_0x4d602b,{'elementName':'','renderForEditingView':!0x0}),_0x519d67=document['createElement']('div');_0x519d67['classList']['add']('ck-media__wrapper'),_0x441745['render'](_0x519d67,_0x5b4309['editing']['view']['domConverter']),_0x553701['replaceWith'](_0x519d67);}}}),_0x1b561a[_0x295c07]=_0x35b78a['innerHTML']);}return _0x1b561a;}['_sortRoots'](_0x1d9e88){if(!function(_0x3c1480){return void 0x0!==_0x3c1480['getRootsAttributes'];}(_0x1d9e88))return _0x1d9e88['model']['document']['getRootNames']();const _0x331ad4=[],_0x13c807=new Map();for(const _0x386ec9 of _0x1d9e88['model']['document']['getRootNames']()){const _0xf1a4f=_0x1d9e88['editing']['view']['getDomRoot'](_0x386ec9)['getClientRects']()['item'](0x0);_0x331ad4['push'](_0x386ec9),_0x13c807['set'](_0x386ec9,_0xf1a4f);}return _0x331ad4['sort']((_0x310132,_0x25d822)=>{const _0x20ce32=_0x13c807['get'](_0x310132),_0x3c217c=_0x13c807['get'](_0x25d822);return _0x20ce32['y']-_0x3c217c['y']||_0x20ce32['x']-_0x3c217c['x'];}),_0x331ad4;}}class te extends _0x54e516{static get['requires'](){return[T,_0x7a5ccd];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4f0b56){super(_0x4f0b56),_0x4f0b56['commands']['add']('previewFinalContent',new re(this['editor'])),_0x4f0b56['config']['define']('trackChanges.preview.renderFunction',(_0x5031a9,_0x3e4963)=>{for(const _0x3a6c5e of _0x3e4963)_0x5031a9['appendChild'](_0x3a6c5e);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
23
+ import{Command as _0x56aab9,Plugin as _0x497417,PendingActions as _0x1b0060}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x3e1147,ObservableMixin as _0x3c6964,uid as _0x437d48,priorities as _0x2c349d,insertToPriorityArray as _0x32ae33,logWarning as _0xebf613,getEnvKeystrokeText as _0x4d9260,FocusTracker as _0x1dba1d,KeystrokeHandler as _0x124a9a,Collection as _0x2aba35}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x26076b,IconCancel as _0x37583a,IconTrackChanges as _0x30a5bc}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x2b8a4e,View as _0x21b685,ViewCollection as _0x308d50,FocusCycler as _0x4943f7,ViewModel as _0x201032,createDropdown as _0x532b40,SplitButtonView as _0x8f7f98,addListToDropdown as _0x3635e7,MenuBarMenuView as _0x1d74c1,MenuBarMenuListView as _0x57f2d6,ListSeparatorView as _0x5008e8,MenuBarMenuListItemView as _0x4cd13d,MenuBarMenuListItemButtonView as _0x8bc95,BodyCollection as _0x58d82f,Dialog as _0x2dc774}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x508eb0,hashObject as _0x255576,surroundingMarkersDetector as _0xb9afc5,FOCUS_ANNOTATION_KEYSTROKE as _0xc56237,AriaDescriptionView as _0x5d8842,setupThreadKeyboardNavigation as _0xc54641,trimHtml as ti,UserView as _0x1b6fe0,LateFocusButtonView as _0x31bf54,getDateTimeFormatter as _0x479f58,getAllMarkersDomElementsSorted as _0x2f9556,sanitizeEditorConfig as _0x241a54}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x4c76ec,LiveRange as _0x4a3ae4,LivePosition as _0x3bdfd3,DowncastWriter as _0x5a1ade}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x4cb2df,toWidget as _0x5667c3}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x4bb98d,set as _0x3bfc9c,isEqual as _0x36c7b1,unset as _0x45e267,omit as Vt}from'es-toolkit/compat';import{Delete as _0x59b0bd,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x4709a6,ShiftEnter as _0x386113}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends _0x56aab9{['_enabledCommands'];constructor(_0x57c4c2,_0x10ecba){super(_0x57c4c2),this['_enabledCommands']=_0x10ecba,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 _0x1f4111 of this['editor']['commands']['commands']())_0x1f4111['affectsData']&&!this['_enabledCommands']['has'](_0x1f4111)&&_0x1f4111['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x2684c2 of this['editor']['commands']['commands']())_0x2684c2['affectsData']&&!this['_enabledCommands']['has'](_0x2684c2)&&_0x2684c2['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x56aab9{['_suggestions'];constructor(_0x3d8217,_0x5401f8){super(_0x3d8217),this['_suggestions']=_0x5401f8,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5cf318){const _0x25bc08=this['_suggestions']['get'](_0x5cf318);if(!_0x25bc08)throw new _0x3e1147('track-changes-accept-suggestion-not-found',this);const _0x5f568a=_0x25bc08['getRanges']();this['editor']['model']['canEditAt'](_0x5f568a)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x25bc08);}}class R extends _0x56aab9{['_suggestions'];constructor(_0x2595c2,_0x160bbc){super(_0x2595c2),this['_suggestions']=_0x160bbc,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x367c33){const _0x35bc67=this['_suggestions']['get'](_0x367c33);if(!_0x35bc67)throw new _0x3e1147('track-changes-discard-suggestion-not-found',this);const _0x418faf=_0x35bc67['getRanges']();this['editor']['model']['canEditAt'](_0x418faf)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x35bc67);}}function ls(_0x3d3545,_0x20554a){let _0x2734b8='';return _0x2734b8+=_0x3d3545['split']('*')['map']((_0x34fcc1,_0x5464e8)=>_0x5464e8%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x34fcc1)+'</span>':nn(_0x34fcc1))['join'](''),_0x20554a&&(_0x2734b8+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x20554a['value']+'\x22\x20title=\x22'+_0x20554a['title']+'\x22></span>'),_0x2734b8;}function nn(_0xdf5944){const _0x5030ff=document['createElement']('span');return _0x5030ff['innerText']=_0xdf5944,_0x5030ff['innerHTML'];}function ts(_0x3fd4b6){return _0x3fd4b6['sort']((_0x38e73d,_0x1041b8)=>'deletion'==_0x38e73d['type']&&'deletion'!=_0x1041b8['type']?-0x1:'deletion'!=_0x38e73d['type']&&'deletion'==_0x1041b8['type']?0x1:0x0);}function Zt(_0x49df4c,_0x2f31e8){let _0x50b129,_0x371f74=0x0;const _0x2ebcb5=[],_0x27e762=_0x2f31e8['schema'];for(;_0x371f74<_0x49df4c['length'];){const _0x35f6ff=_0x49df4c[_0x371f74],_0x265a86=_0x49df4c[_0x371f74+0x1];_0x50b129||(_0x50b129=_0x2f31e8['createPositionBefore'](_0x35f6ff)),on(_0x2f31e8,_0x35f6ff,_0x265a86)||(_0x2ebcb5['push'](_0x2f31e8['createRange'](_0x50b129,_0x27e762['isObject'](_0x35f6ff)?_0x2f31e8['createPositionAfter'](_0x35f6ff):_0x2f31e8['createPositionAt'](_0x35f6ff,'end'))),_0x50b129=null),_0x371f74++;}return _0x2ebcb5;}function on(_0x235cdd,_0x4b2654,_0x22ddcf){if(!_0x22ddcf)return!0x1;const _0x135d39=_0x235cdd['createPositionAfter'](_0x4b2654),_0x4044c7=_0x235cdd['createPositionBefore'](_0x22ddcf);return _0x135d39['isTouching'](_0x4044c7);}function rs(_0x3d0f37,_0x5381b2,_0x2450a3){for(;_0x2450a3['length'];){const _0x552197=_0x2450a3['splice'](0x0,0x64);_0x3d0f37['change'](()=>{for(const _0x2d6d78 of _0x552197)_0x2d6d78['isInContent']&&_0x5381b2['execute'](_0x2d6d78['id']);});}}class x extends _0x56aab9{['_command'];['_suggestions'];constructor(_0x3dd0a9,_0x3ca707,_0x3209fa){super(_0x3dd0a9),this['_command']=_0x3ca707,this['_suggestions']=_0x3209fa,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x16f701=Array['from'](this['_suggestions']['values']())['some'](_0x12e239=>_0x12e239['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x16f701;}['execute'](){const _0x5382a2=ts(Array['from'](this['_suggestions']['values']()));for(const _0x59fb41 of _0x5382a2){const _0x4a19d9=_0x59fb41['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4a19d9))return;}rs(this['editor']['model'],this['_command'],_0x5382a2);}}class E extends _0x56aab9{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x1afd08,_0x3b2dd7,_0x4c0d5e){super(_0x1afd08),this['_command']=_0x3b2dd7,this['_suggestions']=_0x4c0d5e,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2f00d=this['editor']['model']['document']['selection'],_0x10bc6d=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x958096,_0x4e0236){const _0x41b047=Array['from'](_0x958096['getRanges']()),_0x286786=new Set();for(const _0x292d60 of _0x4e0236)if(_0x292d60['isInContent']){for(const _0xc5c6b0 of _0x41b047)for(const _0xf0b5ec of _0x292d60['getRanges']())(_0xc5c6b0['isIntersecting'](_0xf0b5ec)||_0x958096['isCollapsed']&&!_0x292d60['isMultiRange']&&_0x292d60['next']&&_0xf0b5ec['end']['isTouching'](_0xc5c6b0['start']))&&_0x286786['add'](_0x292d60);}return _0x286786;}(_0x2f00d,_0x10bc6d),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x8969b3=ts(Array['from'](this['_selectedSuggestions']));for(const _0x198f9f of _0x8969b3){const _0x42286e=_0x198f9f['getRanges']();if(!this['editor']['model']['canEditAt'](_0x42286e))return;}rs(this['editor']['model'],this['_command'],_0x8969b3);}}class o extends/* #__PURE__ -- @preserve */
24
+ _0x3c6964(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x2e8c9b,_0x4f4026){super(),this['id']=_0x4f4026['id'],this['type']=_0x4f4026['type'],this['subType']=_0x4f4026['subType']||null,this['author']=_0x4f4026['author'],this['creator']=_0x4f4026['creator']||_0x4f4026['author'],this['isExternal']=Boolean(_0x4f4026['attributes']&&_0x4f4026['attributes']['@external']),this['data']=null,this['_model']=_0x2e8c9b,this['_onAccept']=_0x4f4026['onAccept'],this['_onDiscard']=_0x4f4026['onDiscard'],this['_onAttributesChange']=_0x4f4026['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x4f4026['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 _0x32d530=this;for(;_0x32d530['previous'];)_0x32d530=_0x32d530['previous'];return _0x32d530;}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'](_0x543b63){this['_markerNames']['add'](_0x543b63);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x43ea49=>this['_model']['markers']['get'](_0x43ea49))['filter'](_0x3cb838=>_0x3cb838);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x343814=>{for(const _0x4c703b of this['getMarkers']())_0x343814['removeMarker'](_0x4c703b);}),this['_markerNames']['clear']();}['removeMarker'](_0x59a3a3){this['_model']['change'](_0x5de48d=>{_0x5de48d['removeMarker'](_0x59a3a3);}),this['_markerNames']['delete'](_0x59a3a3);}['addRange'](_0x13a1e4){const _0xf2bac='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0xf2bac),this['_model']['change'](_0x10f8ae=>{_0x10f8ae['addMarker'](_0xf2bac,{'range':_0x13a1e4,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x58070f){for(const _0x1cf67 of this['getRanges']())if(_0x1cf67['isIntersecting'](_0x58070f))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x14d198=>_0x14d198['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x50baef,_0x1ccf59)=>[..._0x50baef,..._0x1ccf59['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x6ba020=this['getRanges']();if(0x1!=_0x6ba020['length'])return null;const _0x3dd76b=_0x6ba020[0x0],_0x4add06=_0x3dd76b['start']['nodeAfter'],_0x38ab1b=_0x3dd76b['end']['nodeBefore'];return _0x4add06 instanceof _0x4c76ec?_0x4add06!=_0x38ab1b?null:_0x4add06: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 _0x508256=[];let _0x3353ec=this['head'];for(;_0x3353ec;)_0x508256['push'](_0x3353ec),_0x3353ec=_0x3353ec['next'];return _0x508256;}['setAttribute'](_0x549a43,_0x21c0fa){const _0x3b098b=_0x4bb98d(this['attributes']);_0x3bfc9c(_0x3b098b,_0x549a43,_0x21c0fa),_0x36c7b1(_0x3b098b,this['attributes'])||(this['attributes']=_0x3b098b,this['_onAttributesChange'](_0x3b098b));}['removeAttribute'](_0x137058){const _0x105651=_0x4bb98d(this['attributes']);_0x45e267(_0x105651,_0x137058),_0x36c7b1(_0x105651,this['attributes'])||(this['attributes']=_0x105651,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 _0x437d48()['substr'](0x1,0x5);}}function c(_0x50722b,_0x4ae536,_0x56f11e){const _0x143474=_0x50722b['t'],t=_0x50722b['t'];switch(_0x4ae536){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',_0x56f11e);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x56f11e);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x56f11e);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x56f11e);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x56f11e);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',_0x56f11e);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x56f11e);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',_0x56f11e);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x56f11e);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x56f11e);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x56f11e);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x56f11e);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x56f11e);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x56f11e);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x56f11e);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x56f11e);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x56f11e);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x56f11e);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x56f11e);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x56f11e);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x56f11e);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x56f11e);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x56f11e);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x56f11e);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'},_0x56f11e);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x56f11e);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x56f11e);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x56f11e);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x56f11e);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x56f11e);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'},_0x56f11e);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x56f11e);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x56f11e);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x56f11e);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x56f11e);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'},_0x56f11e);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x56f11e);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'},_0x56f11e);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'},_0x56f11e);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x56f11e);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'},_0x56f11e);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x56f11e);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'},_0x56f11e);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x56f11e);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x56f11e);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'},_0x56f11e);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x56f11e);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 _0x143474({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x56f11e);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x143474({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x56f11e);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x56f11e);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'},_0x56f11e);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'},_0x56f11e);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'},_0x56f11e);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x4ae536;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x574a10,_0x16fbd5){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x574a10,this['_locale']=_0x16fbd5;}['getDescriptions'](_0x75cc2f){const _0x4c9e91=[],_0x36c47e=new Set(),_0x4fab8a=new Set();for(let _0x404872=0x0;_0x404872<_0x75cc2f['length'];_0x404872++){const _0x596b13=_0x75cc2f[_0x404872];if(!_0x596b13['isInContent'])continue;const _0x4d0164=this['_handleCustomCallbackDescription'](_0x596b13);if(_0x4d0164){if(null!=_0x596b13['subType']){if(_0x36c47e['has'](_0x596b13['subType']))continue;_0x36c47e['add'](_0x596b13['subType']);}_0x4c9e91['push'](_0x4d0164);}else{if('attribute'!=_0x596b13['type'])'insertion'!=_0x596b13['type']&&'deletion'!=_0x596b13['type']||this['_handleInsertRemoveSuggestionDescription'](_0x4c9e91,_0x596b13,_0x75cc2f[_0x404872+0x1]);else{const _0x1be294=_0x596b13['data']['key'];if(_0x4fab8a['has'](_0x1be294))continue;_0x4fab8a['add'](_0x596b13['data']['key']),_0x1be294==u?this['_handleRenameSuggestionDescription'](_0x4c9e91,_0x596b13):this['_handleAttributeSuggestionDescription'](_0x4c9e91,_0x596b13);}}}return this['_resolveDescriptionItems'](_0x4c9e91);}['registerDescriptionCallback'](_0x566a7e){this['_customCallbacks']['push'](_0x566a7e);}['registerElementLabel'](_0x267d37,_0x26da06,_0x279c99=_0x2c349d['normal']){'function'==typeof _0x267d37?_0x32ae33(this['_itemLabelsCallbacks'],{'matchingCallback':_0x267d37,'label':_0x26da06,'priority':_0x279c99}):this['_itemLabels']['set'](_0x267d37,_0x26da06);}['registerAttributeLabel'](_0x5506cb,_0x4c2591){this['_attributeLabels']['set'](_0x5506cb,_0x4c2591);}['getItemLabel'](_0xe3fea9,_0x4a7a60=0x1){let _0x4cf823;for(const _0x313960 of this['_itemLabelsCallbacks'])if(_0x313960['matchingCallback'](_0xe3fea9)){_0x4cf823=_0x313960['label'];break;}return _0x4cf823||(_0x4cf823=this['_itemLabels']['get'](_0xe3fea9['name'])),_0x4cf823?_0x4cf823(_0x4a7a60):0x1!==_0x4a7a60?_0x4a7a60+'\x20'+_0xe3fea9['name']+'s':''+_0xe3fea9['name'];}['_addDescriptionItems'](_0x597c47,_0x44998d){const _0xb39176=_0x44998d['getFirstRange']()['getWalker'](),_0x3a2b45='insertion'==_0x44998d['type']?'add':'remove';for(const _0x561add of _0xb39176){const _0xf3a9b5=_0x561add['item'],_0x5543b7=_0x597c47[_0x597c47['length']-0x1];if(_0xf3a9b5['is']('$textProxy'))_0x5543b7&&_0x5543b7['type']['indexOf']('Container')>-0x1&&_0x597c47['pop'](),_0x5543b7&&'text'==_0x5543b7['type']?_0x5543b7[_0x3a2b45]+=_0xf3a9b5['data']:_0x597c47['push']({'type':'text','add':'add'==_0x3a2b45?_0xf3a9b5['data']:'','remove':'remove'==_0x3a2b45?_0xf3a9b5['data']:''});else{if(this['_schema']['isObject'](_0xf3a9b5)){const _0x3f6c62=_0xf3a9b5;if(_0x5543b7&&_0x5543b7['type']['indexOf']('Container')>-0x1&&_0x597c47['pop'](),'elementEnd'==_0x561add['type'])continue;_0x5543b7&&_0x5543b7['type']==_0x3a2b45+'Object'&&_0x5543b7['element']['name']==_0x3f6c62['name']?_0x5543b7['quantity']++:_0x597c47['push']({'type':_0x3a2b45+'Object','element':_0x3f6c62,'quantity':0x1}),_0xb39176['skip'](_0x2a2852=>!('elementEnd'==_0x2a2852['type']&&_0x2a2852['item']==_0xf3a9b5));}else{if(this['_schema']['checkChild'](_0xf3a9b5,'$text')||_0xf3a9b5['is']('element','softBreak')){const _0x143e97=_0xf3a9b5;if('add'==_0x3a2b45&&'elementStart'==_0x561add['type']||'remove'==_0x3a2b45&&'elementEnd'==_0x561add['type'])continue;if(_0x5543b7&&-0x1==_0x5543b7['type']['indexOf']('Container')){'text'==_0x5543b7['type']&&(_0x5543b7[_0x3a2b45]+='\x0a');continue;}let _0x555c92;if(_0x555c92='add'==_0x3a2b45?_0x143e97['nextSibling']&&!this['_schema']['isObject'](_0x143e97['nextSibling'])?_0x143e97['nextSibling']:null:_0x143e97['previousSibling']&&!this['_schema']['isObject'](_0x143e97['previousSibling'])?_0x143e97['previousSibling']:null,_0x143e97['isEmpty']||_0x555c92&&_0x555c92['isEmpty']){const _0x224da9=_0x555c92&&_0x555c92['isEmpty']?_0x555c92:_0x143e97;_0x5543b7&&_0x5543b7['type']==_0x3a2b45+'EmptyContainer'&&_0x5543b7['element']['name']==_0x224da9['name']?_0x5543b7['quantity']++:_0x597c47['push']({'type':_0x3a2b45+'EmptyContainer','element':_0x224da9,'quantity':0x1});}else _0x597c47['push']({'type':_0x3a2b45+'Container','element':_0x143e97});}}}}}['_resolveDescriptionItems'](_0x5161a8){const _0x4bbe73=this['_locale'],_0x47c849=[],_0x14c878=[],_0x140eb9=[];for(const _0x162830 of _0x5161a8)switch(_0x162830['type']){case'text':if(_0x162830['add']=_0x162830['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x162830['remove']=_0x162830['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x162830['add']&&''!=_0x162830['remove']){_0x47c849['push']({'type':'replace','content':c(_0x4bbe73,'REPLACE_TEXT',['\x22'+_0x162830['remove']+'\x22','\x22'+_0x162830['add']+'\x22'])});continue;}if(null!=_0x162830['add']['match'](/^ +$/)){_0x47c849['push']({'type':'insertion','content':c(_0x4bbe73,'*Insert:*\x20%0',c(_0x4bbe73,'ELEMENT_SPACE',_0x162830['add']['length']))});continue;}if(null!=_0x162830['remove']['match'](/^ +$/)){_0x47c849['push']({'type':'deletion','content':c(_0x4bbe73,'*Remove:*\x20%0',c(_0x4bbe73,'ELEMENT_SPACE',_0x162830['remove']['length']))});continue;}if(''!=_0x162830['add']){_0x47c849['push']({'type':'insertion','content':c(_0x4bbe73,'*Insert:*\x20%0','\x22'+_0x162830['add']+'\x22')});continue;}_0x47c849['push']({'type':'deletion','content':c(_0x4bbe73,'*Remove:*\x20%0','\x22'+_0x162830['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x47c849['push']({'type':'insertion','content':c(_0x4bbe73,'*Insert:*\x20%0',this['getItemLabel'](_0x162830['element'],_0x162830['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x47c849['push']({'type':'deletion','content':c(_0x4bbe73,'*Remove:*\x20%0',this['getItemLabel'](_0x162830['element'],_0x162830['quantity']))});continue;case'addContainer':_0x47c849['push']({'type':'insertion','content':c(_0x4bbe73,'*Split:*\x20%0',this['getItemLabel'](_0x162830['element'],_0x162830['quantity']))});continue;case'removeContainer':_0x47c849['push']({'type':'deletion','content':c(_0x4bbe73,'*Merge:*\x20%0',this['getItemLabel'](_0x162830['element'],_0x162830['quantity']))});continue;case'addFormat':_0x14c878['push'](_0x162830['key']);continue;case'removeFormat':_0x140eb9['push'](_0x162830['key']);continue;default:_0x47c849['push'](_0x162830);}if(_0x14c878['length']){const _0x1ca433=_0x14c878['map'](_0x5e6a03=>this['_attributeLabels']['has'](_0x5e6a03)?this['_attributeLabels']['get'](_0x5e6a03):_0x5e6a03)['join'](',\x20');_0x47c849['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x1ca433)});}if(_0x140eb9['length']){const _0x1db79b=_0x140eb9['map'](_0x46ce3b=>this['_attributeLabels']['has'](_0x46ce3b)?this['_attributeLabels']['get'](_0x46ce3b):_0x46ce3b)['join'](',\x20');_0x47c849['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x1db79b)});}return _0x47c849;}['_handleCustomCallbackDescription'](_0x51fd18){for(const _0x4fcfa2 of this['_customCallbacks']){const _0x4d68e9=_0x4fcfa2(_0x51fd18);if(_0x4d68e9&&'type'in _0x4d68e9)return _0x4d68e9;}}['_handleAttributeSuggestionDescription'](_0x5be881,_0x21f7a9){const _0x152c3f=_0x21f7a9['data'],_0x5997cc=void 0x0===_0x152c3f['newValue']?'removeFormat':'addFormat';_0x5be881['push']({'type':_0x5997cc,'key':_0x152c3f['key']});}['_handleRenameSuggestionDescription'](_0x2c9661,_0x3c1d04){_0x2c9661['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x3c1d04['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x499efa,_0x4714b3,_0x970cd2){if(this['_addDescriptionItems'](_0x499efa,_0x4714b3),_0x970cd2&&_0x970cd2['getFirstRange']()&&!_0x4714b3['getFirstRange']()['end']['isEqual'](_0x970cd2['getFirstRange']()['start'])){const _0x2526d6=_0x499efa[_0x499efa['length']-0x1],_0x283bdc='insertion'==_0x4714b3['type']?'add':'remove';_0x2526d6&&'text'==_0x2526d6['type']&&(_0x2526d6[_0x283bdc]+='\x0a');}}}class U extends _0x497417{['afterInit'](){const _0xd90418=this['editor'],_0x38107d=_0xd90418['plugins']['get']('TrackChangesEditing');_0xd90418['commands']['get']('showAIAssistant')&&_0x38107d['enableCommand']('showAIAssistant');}}class V extends _0x497417{['afterInit'](){const _0x1a589e=this['editor'],_0x325dbb=_0x1a589e['locale'];if(!_0x1a589e['plugins']['has']('AlignmentEditing'))return;const _0x4ae2ee=_0x1a589e['plugins']['get']('TrackChangesEditing');_0x4ae2ee['enableDefaultAttributesIntegration']('alignment'),_0x4ae2ee['registerBlockAttribute']('alignment'),_0x4ae2ee['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x325dbb,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x307f50=this['editor'],_0xf01bb=_0x307f50['locale'];_0x307f50['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3d1be0=>{if('formatBlock'!=_0x3d1be0['type'])return;const {data:_0x1902f3}=_0x3d1be0;if(_0x1902f3&&'alignment'==_0x1902f3['commandName']){const _0x1b6a8d=_0x1902f3['commandParams'][0x0]['value'];return{'type':'format','content':c(_0xf01bb,'*Format:*\x20%0',function(_0x317b1b){switch(_0x317b1b){case'left':return c(_0xf01bb,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0xf01bb,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0xf01bb,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0xf01bb,'FORMAT_JUSTIFY_TEXT');}}(_0x1b6a8d))};}});}}const Yt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x497417{['afterInit'](){const _0xe078c3=this['editor'],_0x519f9a=_0xe078c3['plugins']['get']('TrackChangesEditing'),_0x475915=_0xe078c3['locale'];for(const _0x397b58 of Yt){if(!_0xe078c3['plugins']['has'](_0x397b58))continue;const _0xb03000=_0x397b58['slice'](0x0,-0x7)['toLowerCase'](),_0x36ca12='FORMAT_'+_0xb03000['toUpperCase']();_0x519f9a['enableDefaultAttributesIntegration'](_0xb03000),_0x519f9a['registerInlineAttribute'](_0xb03000),_0x519f9a['descriptionFactory']['registerAttributeLabel'](_0xb03000,c(_0x475915,_0x36ca12));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x51f9f2=this['editor'],_0xbee918=_0x51f9f2['locale'],_0x4fbfec=_0x51f9f2['plugins']['get']('TrackChangesEditing');function _0x1de9c4(_0x496f51,_0x2cd611){_0x4fbfec['descriptionFactory']['registerDescriptionCallback'](_0x2c7318=>{if('formatInline'!=_0x2c7318['type'])return;const {data:_0x3ebab3}=_0x2c7318;return _0x3ebab3&&_0x3ebab3['commandName']===_0x496f51?_0x3ebab3['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0xbee918,'*Format:*\x20%0',_0x2cd611)}:{'type':'format','content':c(_0xbee918,'*Remove\x20format:*\x20%0',_0x2cd611)}:void 0x0;});}_0x1de9c4('bold',c(_0xbee918,'FORMAT_BOLD')),_0x1de9c4('italic',c(_0xbee918,'FORMAT_ITALIC')),_0x1de9c4('underline',c(_0xbee918,'FORMAT_UNDERLINE')),_0x1de9c4('code',c(_0xbee918,'FORMAT_CODE')),_0x1de9c4('strikethrough',c(_0xbee918,'FORMAT_STRIKETHROUGH')),_0x1de9c4('subscript',c(_0xbee918,'FORMAT_SUBSCRIPT')),_0x1de9c4('superscript',c(_0xbee918,'FORMAT_SUPERSCRIPT'));}}class G extends _0x497417{['afterInit'](){const _0xa0b1dd=this['editor'],_0xb92c21=_0xa0b1dd['locale'];if(!_0xa0b1dd['plugins']['has']('BlockQuoteEditing'))return;const _0x5c33a4=_0xa0b1dd['plugins']['get']('TrackChangesEditing'),_0x4fcabb=this['editor']['commands']['get']('blockQuote');_0x5c33a4['enableCommand']('blockQuote',(_0x2c66f5,_0x3da2f4={})=>{const _0x37d3fa=this['editor']['model']['document']['selection'],_0x54f115=_0x3da2f4&&void 0x0!==_0x3da2f4['forceValue']?_0x3da2f4['forceValue']:!_0x4fcabb['value'];let _0x36ee71=[];if(_0x54f115){const _0x564466=Array['from'](_0x37d3fa['getSelectedBlocks']())['filter'](_0x365bba=>to(_0x365bba)||function(_0x5e4dc2,_0x239bee){const _0x442c3c=_0x239bee['checkChild'](_0x5e4dc2['parent'],'blockQuote'),_0x4ca012=_0x239bee['checkChild'](['$root','blockQuote'],_0x5e4dc2);return _0x442c3c&&_0x4ca012;}(_0x365bba,this['editor']['model']['schema']));_0x36ee71=Zt(_0x564466,_0xa0b1dd['model']);}else{const _0x19693d=Array['from'](_0x37d3fa['getSelectedBlocks']())['filter'](_0x5435b3=>to(_0x5435b3));_0x36ee71=Zt(_0x19693d,_0xa0b1dd['model']);}_0xa0b1dd['model']['change'](()=>{for(const _0x26d8ec of _0x36ee71)_0x5c33a4['markBlockFormat'](_0x26d8ec,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x54f115}]});});}),_0x5c33a4['descriptionFactory']['registerDescriptionCallback'](_0x53f1d7=>{const {data:_0x335849}=_0x53f1d7;if(_0x335849&&'blockQuote'==_0x335849['commandName']){const _0x361c4d=c(_0xb92c21,'ELEMENT_BLOCK_QUOTE');return _0x335849['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0xb92c21,'*Set\x20format:*\x20%0',_0x361c4d)}:{'type':'format','content':c(_0xb92c21,'*Remove\x20format:*\x20%0',_0x361c4d)};}});}}function to(_0x208b22){return'blockQuote'==_0x208b22['parent']['name'];}class L extends _0x497417{['afterInit'](){const _0x31b626=this['editor'],_0x482bab=_0x31b626['locale'],_0x4d0fc2=_0x31b626['plugins']['get']('TrackChangesEditing');_0x31b626['plugins']['has']('BookmarkEditing')&&(_0x4d0fc2['enableCommand']('insertBookmark'),_0x4d0fc2['enableDefaultAttributesIntegration']('updateBookmark'),_0x4d0fc2['registerBlockAttribute']('bookmarkId'),_0x4d0fc2['descriptionFactory']['registerDescriptionCallback'](_0xb0a656=>{if('insertion'!=_0xb0a656['type']&&'deletion'!=_0xb0a656['type']&&'attribute'!=_0xb0a656['type'])return;const _0x39dd4e=_0xb0a656['getContainedElement']();if(null==_0x39dd4e)return;if(!_0x39dd4e['is']('element','bookmark'))return;const _0x59a3cd=_0x39dd4e['getAttribute']('bookmarkId');if('insertion'==_0xb0a656['type'])return{'type':'insertion','content':c(_0x482bab,'*Insert:*\x20%0','\x22'+_0x59a3cd+'\x22\x20'+c(_0x482bab,'ELEMENT_BOOKMARK'))};if('deletion'==_0xb0a656['type'])return{'type':'deletion','content':c(_0x482bab,'*Remove:*\x20%0','\x22'+_0x59a3cd+'\x22\x20'+c(_0x482bab,'ELEMENT_BOOKMARK'))};const {data:_0x416f8a}=_0xb0a656;if(!_0x416f8a||'bookmarkId'!=_0x416f8a['key'])return;return{'type':'format','content':c(_0x482bab,'*Set\x20bookmark:*\x20%0','\x22'+_0x416f8a['newValue']+'\x22')};}));}}class J extends _0x497417{['afterInit'](){const _0x1e1875=this['editor'];_0x1e1875['plugins']['has']('CaseChange')&&(_0x1e1875['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x1e1875['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x1e1875['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x497417{['afterInit'](){const _0xaffd5d=this['editor'];_0xaffd5d['commands']['get']('ckbox')&&_0xaffd5d['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x497417{['afterInit'](){const _0x1a6158=this['editor'];if(!_0x1a6158['plugins']['has']('CodeBlock'))return;const _0x35ac03=_0x1a6158['plugins']['get']('TrackChangesEditing'),_0x9331ff=_0x1a6158['locale'],_0x2598f3=_0x1a6158['config']['get']('codeBlock')['languages'],_0x4003fe=_0x1a6158['commands']['get']('codeBlock');_0x35ac03['enableCommand']('indentCodeBlock'),_0x35ac03['enableCommand']('outdentCodeBlock'),_0x35ac03['enableCommand']('codeBlock',(_0x4e68b1,_0x581fdc={})=>{const _0x467a42=_0x1a6158['model'],_0x563866=_0x1a6158['model']['document']['selection'],_0x39b02d=_0x581fdc&&void 0x0!==_0x581fdc['forceValue']?_0x581fdc['forceValue']:!_0x4003fe['value'];let _0x4dcd1d;_0x581fdc['language']||(_0x581fdc['language']=_0x2598f3[0x0]['language']),_0x4dcd1d=_0x39b02d?Array['from'](_0x563866['getSelectedBlocks']())['filter'](_0x3701a8=>oo(_0x3701a8)||function(_0xa3735d,_0x5d609c){if(_0xa3735d['is']('rootElement')||_0x5d609c['isLimit'](_0xa3735d))return!0x1;return _0x5d609c['checkChild'](_0xa3735d['parent'],'codeBlock');}(_0x3701a8,_0x467a42['schema'])):Array['from'](_0x563866['getSelectedBlocks']())['filter'](_0x378762=>oo(_0x378762));const _0x398eec=Zt(_0x4dcd1d,_0x467a42);_0x467a42['change'](()=>{for(const _0x5e1ff8 of _0x398eec)_0x35ac03['markBlockFormat'](_0x5e1ff8,{'commandName':'codeBlock','commandParams':[{..._0x581fdc,'forceValue':_0x39b02d}],'formatGroupId':'blockName'});});}),(_0x35ac03['descriptionFactory']['registerElementLabel']('codeBlock',_0x5339b5=>c(_0x9331ff,'ELEMENT_CODE_BLOCK',_0x5339b5)),_0x35ac03['descriptionFactory']['registerDescriptionCallback'](_0x1ffa73=>{if('formatBlock'!=_0x1ffa73['type'])return;const _0x30b21d=_0x9331ff['t'],{data:_0x43f09a}=_0x1ffa73;if(!_0x43f09a||'codeBlock'!=_0x43f09a['commandName'])return;const _0x555bd6=_0x43f09a['commandParams'][0x0]['language'],_0x15dd9e=_0x30b21d(_0x2598f3['find'](_0x8b0a8b=>_0x8b0a8b['language']===_0x555bd6)['label'])['toLowerCase']();return _0x43f09a['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x9331ff,'*Set\x20format:*\x20%0',c(_0x9331ff,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x15dd9e+')')}:{'type':'format','content':c(_0x9331ff,'*Remove\x20format:*\x20%0',c(_0x9331ff,'ELEMENT_CODE_BLOCK',0x1))};}));}}function oo(_0x2e08bf){return'codeBlock'==_0x2e08bf['name'];}class q extends _0x497417{['afterInit'](){const _0x2e9af1=this['editor'];if(!_0x2e9af1['plugins']['has']('CommentsEditing'))return;_0x2e9af1['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x35e93f,_0x1a23b9,_0x486c27){const _0x45edc5=[];for(const _0xc8f920 of _0x1a23b9['getItems']())_0xc8f920['hasAttribute'](_0x35e93f)&&_0x45edc5['push'](_0x486c27['createRangeOn'](_0xc8f920));return _0x45edc5;}function De(_0x410f13,_0x4f8982,{showActiveMarker:_0x30c2fb=!0x0}={}){const _0x495ca6=_0x410f13['plugins']['get']('TrackChangesEditing');return(_0x3c776a,_0xb89886,_0x4e0e15)=>{if(!_0x4e0e15['consumable']['test'](_0xb89886['markerRange'],_0x3c776a['name']))return;const _0x3f051a=_0xb89886['markerRange']['getWalker'](),_0xff70d0=_0xb89886['markerRange']['start'],_0xf94acf=_0x410f13['model']['schema'];let _0x18b5e5=null,_0x4b8231=null,_0x4ea1ae=!0x1,_0x147533=!0x1;for(const _0x5a01c6 of _0x3f051a){const _0x56d300=_0x5a01c6['item'];_0x4ea1ae=_0x4ea1ae||_0xf94acf['isContent'](_0x56d300);const _0x2c2f66=_0x4e0e15['mapper']['toViewElement'](_0x56d300);if(_0x2c2f66&&_0x2c2f66['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5a01c6['type']&&(_0xf94acf['isBlock'](_0x56d300)&&!_0xf94acf['isLimit'](_0x56d300)&&(_0x56d300['nextSibling']||_0xff70d0['isAtEnd']?_0x18b5e5&&_0x18b5e5['parent']==_0x56d300||(_0x18b5e5=_0x56d300,_0x333c06(_0x5a01c6['previousPosition']),_0x147533=!0x0):_0x4b8231=_0x4b8231||_0x5a01c6['previousPosition']));}function _0x333c06(_0x52439d){const {authorId:_0x5700bb}=_0x495ca6['_splitMarkerName'](_0xb89886['markerName']),_0x3d2128=_0x4e0e15['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4f8982,'data-author-id':_0x5700bb}),_0x5327e9=_0x4e0e15['mapper']['toViewPosition'](_0x52439d);_0x30c2fb&&_0x495ca6['activeMarkers']['includes'](_0xb89886['markerName'])&&_0x4e0e15['writer']['addClass']('ck-suggestion-marker--active',_0x3d2128),_0x4e0e15['writer']['insert'](_0x5327e9,_0x3d2128),_0x4e0e15['mapper']['bindElementToMarker'](_0x3d2128,_0xb89886['markerName']);}_0x4ea1ae||_0x147533||!_0x4b8231||_0x333c06(_0x4b8231);};}class z extends _0x497417{static get['requires'](){return[_0x59b0bd];}['init'](){const _0x31e33c=this['editor'],_0x216c36=_0x31e33c['plugins']['get']('TrackChangesEditing');_0x216c36['enableCommand']('delete');const _0x1d7ef4=_0x31e33c['commands']['get']('deleteForward');_0x216c36['enableCommand']('deleteForward',(_0x1f72cd,_0x46d0e3={})=>{const _0x10717=_0x31e33c['model']['createSelection'](_0x31e33c['model']['document']['selection']);_0x10717['isCollapsed']&&_0x31e33c['model']['modifySelection'](_0x10717,{'direction':'forward','unit':_0x46d0e3['unit']});const _0x5c95b0=_0x10717['getFirstRange'](),_0x528e03=_0x4a3ae4['fromRange'](_0x5c95b0);let _0xd46aac;_0x1f72cd(_0x46d0e3),_0xd46aac='$graveyard'==_0x528e03['root']['rootName']?_0x31e33c['model']['createRange'](_0x5c95b0['start']):_0x31e33c['model']['createRange'](_0x528e03['start'],_0x528e03['end']),_0x528e03['detach'](),_0x31e33c['model']['enqueueChange'](_0x1d7ef4['buffer']['batch'],_0x38d408=>{_0x1d7ef4['buffer']['lock'](),_0x38d408['setSelection'](_0x38d408['createRange'](_0xd46aac['end'])),_0x1d7ef4['buffer']['unlock']();});}),_0x31e33c['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x31e33c,'merge'),{'priority':'high'}),_0x31e33c['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x33cdef,_0xa303f,_0x58de42)=>{_0x58de42['options']['showSuggestionHighlights']&&De(_0x31e33c,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x33cdef,_0xa303f,_0x58de42);},{'priority':'high'}),_0x31e33c['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x266421,_0x434296,_0x55111f)=>{const _0x8abddf=_0x55111f['mapper']['markerNameToElements'](_0x434296['markerName']);if(_0x8abddf){for(const _0x3bb504 of _0x8abddf)_0x3bb504['is']('uiElement')&&(_0x55111f['mapper']['unbindElementFromMarkerName'](_0x3bb504,_0x434296['markerName']),_0x55111f['writer']['remove'](_0x3bb504));}},{'priority':'high'});}}class W extends _0x497417{['afterInit'](){const _0x5d021a=this['editor'];if(!_0x5d021a['plugins']['has']('ListEditing'))return;const _0x5bbb98=_0x5d021a['locale'],_0x394cef=_0x5d021a['plugins']['get']('TrackChangesEditing'),_0x256392=_0x5d021a['plugins']['has']('TodoListEditing'),_0x47f74b=!!_0x5d021a['config']['get']('list.multiBlock');function _0x27c325(_0x245126){return{'type':'format','content':''+c(_0x5bbb98,'*Set\x20format:*\x20%0',_0x245126)};}function _0x3e1b03(_0x12fdc7){return{'type':'format','content':''+c(_0x5bbb98,'*Remove\x20format:*\x20%0',_0x12fdc7)};}_0x394cef['enableDefaultAttributesIntegration']('numberedList'),_0x394cef['enableDefaultAttributesIntegration']('bulletedList'),_0x394cef['enableDefaultAttributesIntegration']('customNumberedList'),_0x394cef['enableDefaultAttributesIntegration']('customBulletedList'),_0x394cef['enableDefaultAttributesIntegration']('indentList'),_0x394cef['enableDefaultAttributesIntegration']('outdentList'),_0x394cef['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x394cef['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x394cef['registerBlockAttribute']('listItemId'),_0x394cef['registerBlockAttribute']('listType'),_0x394cef['registerBlockAttribute']('listIndent'),_0x47f74b&&(_0x394cef['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x394cef['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x256392&&(_0x394cef['enableDefaultAttributesIntegration']('todoList'),_0x394cef['enableDefaultAttributesIntegration']('checkTodoList'),_0x394cef['registerBlockAttribute']('todoListChecked'),_0x394cef['descriptionFactory']['registerDescriptionCallback'](_0x4993c2=>{const {data:_0x393207}=_0x4993c2;if(_0x393207&&'todoListChecked'==_0x393207['key'])return{'type':'format','content':_0x393207['newValue']?c(_0x5bbb98,'*Check\x20item*'):c(_0x5bbb98,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x2b407d=>{if(_0x2b407d['batch']['isUndo'])return!0x1;let _0x358a20=!0x1;const _0x1c87bc=_0x394cef['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x41e7ec=>'todoListChecked'===_0x394cef['_getAttributeKey'](_0x41e7ec));for(const _0x3e9187 of _0x1c87bc){'todo'!=_0x3e9187['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x394cef['_findSuggestions'](_0x3e9187['getFirstRange'](),'attribute')['find'](_0x52eebe=>'listType'===_0x394cef['_getAttributeKey'](_0x52eebe['suggestion']))||(_0x2b407d['removeMarker'](_0x3e9187['getFirstMarker']()),_0x358a20=!0x0));}return _0x358a20;})),_0x394cef['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x5bbb98,'FORMAT_INDENT'));const _0x3e3f90={'type':'format','content':''};_0x394cef['descriptionFactory']['registerDescriptionCallback'](_0x58b293=>{const {data:_0x33eeb9}=_0x58b293;if(!_0x33eeb9||'listType'!=_0x33eeb9['key'])return;let _0x173107=_0x58b293['head'];for(;_0x173107;){if(_0x173107['data']&&(('listStyle'==_0x173107['data']['key']||'listMarkerStyle'==_0x173107['data']['key'])&&(_0x173107['data']['newValue']&&'default'!=_0x173107['data']['newValue']||'default'!=_0x173107['data']['oldValue']&&!_0x33eeb9['newValue'])||!_0x47f74b&&_0x173107['data']['key']==u))return _0x3e3f90;_0x173107=_0x173107['next'];}if(null==_0x33eeb9['newValue'])switch(_0x33eeb9['oldValue']){case'bulleted':return _0x3e1b03(c(_0x5bbb98,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3e1b03(c(_0x5bbb98,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3e1b03(c(_0x5bbb98,'ELEMENT_TODO_LIST'));}switch(_0x33eeb9['newValue']){case'bulleted':return _0x27c325(c(_0x5bbb98,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x27c325(c(_0x5bbb98,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x27c325(c(_0x5bbb98,'ELEMENT_TODO_LIST'));}}),_0x394cef['descriptionFactory']['registerDescriptionCallback'](_0x5aa04d=>{const {data:_0x165f6d}=_0x5aa04d;if(_0x165f6d&&'listIndent'==_0x165f6d['key'])return null==_0x165f6d['newValue']||null==_0x165f6d['oldValue']&&0x0==_0x165f6d['newValue']?_0x3e3f90:void 0x0;}),_0x394cef['descriptionFactory']['registerDescriptionCallback'](_0x66f312=>{if('attribute'!=_0x66f312['type'])return;const {data:_0x244675}=_0x66f312;if(!_0x244675||'listItemId'!=_0x244675['key'])return;const _0x32ed57=Te(_0x66f312);return'newValue'==_0x32ed57?{'type':'format','content':c(_0x5bbb98,'*Merge:*\x20list\x20item')}:'oldValue'==_0x32ed57?{'type':'format','content':c(_0x5bbb98,'*Split:*\x20list\x20item')}:_0x3e3f90;}),_0x5d021a['model']['document']['registerPostFixer'](_0x8873b8=>this['listItemIdFixer'](_0x8873b8)),_0x5d021a['model']['document']['registerPostFixer'](_0x5365de=>this['noTrackChangesFixer'](_0x5365de)),_0x5d021a['model']['document']['on']('change:data',(_0x5e968c,_0xd70612)=>{if(_0xd70612['isUndo']||!_0xd70612['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x107bdf){if(_0x107bdf['batch']['isUndo']||!_0x107bdf['batch']['isLocal'])return!0x1;let _0x998d44=!0x1;const _0x546feb=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1cba09=>_0x1cba09['data']&&'listItemId'==_0x1cba09['data']['key'])['filter'](_0x292fb5=>_0x292fb5['data']['newValue']&&_0x292fb5['data']['oldValue']);for(const _0x45b239 of _0x546feb)Te(_0x45b239)||(_0x107bdf['removeMarker'](_0x45b239['getFirstMarker']()),_0x998d44=!0x0);return _0x998d44;}['noTrackChangesFixer'](_0x48bb11){if(_0x48bb11['batch']['isUndo']||!_0x48bb11['batch']['isLocal'])return!0x1;const _0x3ac9bf=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x3ac9bf['trackChangesCommand']['value'])return!0x1;let _0x1e4487=!0x1;const _0x4b3241=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x351975=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x523596=>'attribute'==_0x523596['type'])['filter'](_0x16655e=>_0x4b3241['includes'](_0x16655e['attributeKey']));if(0x0==_0x351975['length'])return _0x1e4487;for(const _0x5ae26e of _0x351975){const _0x11ede3=_0x3ac9bf['_findSuggestions'](_0x5ae26e['range'],'attribute')['filter'](_0x1a922b=>!_0x1a922b['meta']['isNextTo'])['map'](_0x5c3637=>_0x5c3637['suggestion'])['filter'](_0xb249f6=>{const _0x743dcd=_0x3ac9bf['_getAttributeKey'](_0xb249f6);return _0x4b3241['includes'](_0x743dcd);});if(_0x11ede3['length']){for(const _0x1ae818 of _0x11ede3)_0x48bb11['removeMarker'](_0x1ae818['getFirstMarker']());_0x1e4487=!0x0;}}return _0x1e4487;}['assureChains'](){const _0x67c012=this['editor']['plugins']['get']('TrackChangesEditing'),_0x353bf6=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0xf25f81;const _0x453549=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5bab5c=>{if(_0x5bab5c['data']['oldRange']||!_0x5bab5c['data']['newRange'])return null;if(!_0x5bab5c['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x4e0564}=_0x67c012['_splitMarkerName'](_0x5bab5c['name']);if(!_0x67c012['hasSuggestion'](_0x4e0564))return null;const _0x58fcef=_0x67c012['getSuggestion'](_0x4e0564);return _0x353bf6['includes'](_0x58fcef['data']['key']);})['map'](_0x298885=>{const {id:_0x1612a7}=_0x67c012['_splitMarkerName'](_0x298885['name']),_0x367c31=_0x67c012['getSuggestion'](_0x1612a7);return _0xf25f81=_0x367c31['attributes']['groupId'],_0x367c31['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x453549['size'])return;const _0x37f251=_0x67c012['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x56e9b7=>'attribute'==_0x56e9b7['type']&&_0x56e9b7['data']&&_0x353bf6['includes'](_0x56e9b7['data']['key'])&&_0x56e9b7['attributes']['groupId']!=_0xf25f81)['map'](_0x217d31=>({'listItem':_0x217d31['getFirstRange']()['start']['nodeAfter'],'groupId':_0x217d31['attributes']['groupId']})),_0x5d707d=new Set();for(const {groupId:_0x1bdc49,listItem:_0x12c7d1}of _0x37f251)_0x453549['has'](_0x12c7d1)&&_0x5d707d['add'](_0x1bdc49);for(const _0x12b2d3 of _0x67c012['getSuggestions']())_0x5d707d['has'](_0x12b2d3['attributes']['groupId'])&&_0x12b2d3['setAttribute']('groupId',_0xf25f81);}['_supportLegacySuggestions'](){const _0x4bc5ba=this['editor'],_0x48d5dc=_0x4bc5ba['locale'],_0x5d5287=_0x4bc5ba['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x5d5287['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x3c5f85,_0x2389e0){const _0x401a03=[];for(let _0x7cd5c3 of _0x3c5f85)_0x7cd5c3['start']['nodeAfter']===_0x7cd5c3['end']['parent']&&(_0x7cd5c3=_0x4bc5ba['model']['createRange'](_0x4bc5ba['model']['createPositionAt'](_0x7cd5c3['start']['nodeAfter'],0x0))),_0x401a03['push'](_0x7cd5c3);_0x4bc5ba['model']['change'](_0x4e8ed3=>{const _0x19dae1=_0x4bc5ba['model']['document']['selection'],_0x863760=Array['from'](_0x19dae1['getRanges']())['map'](_0xd7350f=>_0x4a3ae4['fromRange'](_0xd7350f));_0x4e8ed3['setSelection'](_0x401a03),_0x4bc5ba['commands']['get'](_0x2389e0['commandName'])['refresh'](),_0x2389e0['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4bc5ba['execute'](_0x2389e0['commandName'],..._0x2389e0['commandParams']),_0x4e8ed3['setSelection'](_0x863760);for(const _0x25c073 of _0x863760)_0x25c073['detach']();});}),_0x5d5287['descriptionFactory']['registerElementLabel'](function(_0x3dcf98){const _0x8cef0f=!_0x4bc5ba['model']['schema']['isObject'](_0x3dcf98),_0x28e395=_0x3dcf98['previousSibling'],_0x5740c8=_0x3dcf98['nextSibling'],_0x26fbe4=_0x3dcf98['getAttribute']('listItemId'),_0x157ef7=!_0x28e395||_0x28e395['getAttribute']('listItemId')!==_0x26fbe4,_0x19286f=!_0x5740c8||_0x5740c8['getAttribute']('listItemId')!==_0x26fbe4;return _0x8cef0f&&Boolean(_0x26fbe4)&&_0x157ef7&&_0x19286f;},_0x3c91ad=>c(_0x48d5dc,'ELEMENT_LIST_ITEM',_0x3c91ad));}['_registerLegacyDescription'](){const _0xc7fc49=this['editor'],_0x73005=_0xc7fc49['locale'];function _0xcfdc5f(_0x519e81){const _0x267c8b=_0xc7fc49['commands']['get']('bulletedList')['value'],_0x12d4d6=_0xc7fc49['commands']['get']('numberedList')['value'];return'numberedList'===_0x519e81?_0x267c8b:_0x12d4d6;}_0xc7fc49['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x373fe3){if('formatBlock'!=_0x373fe3['type'])return;const {data:_0x28667e}=_0x373fe3;if(!_0x28667e)return;let _0x4e582f,_0x2bed78,_0x37abd0,_0x3a4c7b;switch(_0x28667e['commandName']){case'bulletedList':_0x37abd0=_0x28667e['commandParams'][0x0]['forceValue'],_0x3a4c7b=_0xcfdc5f(_0x28667e['commandName']),_0x4e582f=_0x37abd0?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3a4c7b&&_0xc7fc49['config']['get']('list.multiBlock')||(_0x4e582f='*Change\x20to:*\x20%0'),_0x2bed78={'type':'format','content':c(_0x73005,_0x4e582f,c(_0x73005,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x37abd0=_0x28667e['commandParams'][0x0]['forceValue'],_0x3a4c7b=_0xcfdc5f(_0x28667e['commandName']),_0x4e582f=_0x37abd0?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3a4c7b&&_0xc7fc49['config']['get']('list.multiBlock')||(_0x4e582f='*Change\x20to:*\x20%0'),_0x2bed78={'type':'format','content':c(_0x73005,_0x4e582f,c(_0x73005,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x4e582f='*Indent:*\x20%0',_0x2bed78={'type':'format','content':c(_0x73005,_0x4e582f,c(_0x73005,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x4e582f=function(_0x2c3453){const _0x1888bc=_0x2c3453['getFirstRange']();let _0x38d2b8=_0x1888bc['start']['nodeAfter'];for(;_0x38d2b8&&_0x1888bc['containsItem'](_0x38d2b8);){if(_0x38d2b8['getAttribute']('listIndent')>0x0)return!0x1;_0x38d2b8=_0x38d2b8['nextSibling'];}return!0x0;}(_0x373fe3)?c(_0x73005,'*Format:*\x20remove\x20from\x20%0',c(_0x73005,function(_0x196016){return'ELEMENT_'+_0x196016['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x373fe3))):c(_0x73005,'*Outdent:*\x20%0',c(_0x73005,'ELEMENT_LIST_ITEM')),_0x2bed78={'type':'format','content':_0x4e582f};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x28667e['multipleBlocks']&&(_0x4e582f='*Merge:*\x20%0',_0x2bed78={'type':'deletion','content':c(_0x73005,_0x4e582f,c(_0x73005,'ELEMENT_LIST_ITEM'))});}return _0x2bed78;});}}function Te(_0x241ebf){let _0x4b81fc=_0x241ebf['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x4b81fc;){const _0x181a44=_0x4b81fc['getAttribute']('listItemId');if(!_0x181a44)return!0x1;if(_0x181a44==_0x241ebf['data']['newValue'])return'newValue';if(_0x181a44==_0x241ebf['data']['oldValue'])return'oldValue';_0x4b81fc=_0x4b81fc['previousSibling'];}return!0x1;}class Se extends _0x497417{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x30f352=this['editor']['config']['get']('list.properties'),_0x28da3d=this['editor']['plugins']['get']('TrackChangesEditing');_0x30f352['styles']&&(_0x28da3d['enableDefaultAttributesIntegration']('listStyle'),_0x28da3d['registerBlockAttribute']('listStyle')),_0x30f352['reversed']&&(_0x28da3d['enableDefaultAttributesIntegration']('listReversed'),_0x28da3d['registerBlockAttribute']('listReversed')),_0x30f352['startIndex']&&(_0x28da3d['enableDefaultAttributesIntegration']('listStart'),_0x28da3d['registerBlockAttribute']('listStart'));const _0x335367={'type':'format','content':''};_0x28da3d['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4fe731=this['editor']['locale'];_0x28da3d['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x4fe731,'FORMAT_LIST_REVERSED')),_0x28da3d['descriptionFactory']['registerDescriptionCallback'](_0x5679c4=>{const {data:_0x473b39}=_0x5679c4;if(_0x473b39&&'listReversed'==_0x473b39['key'])return null==_0x473b39['newValue']||0x0==_0x473b39['newValue']&&null==_0x473b39['oldValue']?_0x335367:void 0x0;}),_0x28da3d['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x4fe731,'FORMAT_LIST_START')),_0x28da3d['descriptionFactory']['registerDescriptionCallback'](_0x5b5012=>{const {data:_0x1208ce}=_0x5b5012;if(_0x1208ce&&'listStart'==_0x1208ce['key'])return null==_0x1208ce['newValue']||0x1==_0x1208ce['newValue']&&null==_0x1208ce['oldValue']?_0x335367:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x40ae24=>{if(_0x40ae24['batch']['isUndo'])return!0x1;let _0x5d821f=!0x1;const _0x29d22b=_0x28da3d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xf590fd=>{const _0x4313fd=_0x28da3d['_getAttributeKey'](_0xf590fd);return'listStart'==_0x4313fd||'listReversed'==_0x4313fd;});for(const _0x29a8e8 of _0x29d22b){const _0x3edb5a=_0x29a8e8['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x3edb5a||'customNumbered'==_0x3edb5a)continue;_0x28da3d['_findSuggestions'](_0x29a8e8['getFirstRange'](),'attribute')['find'](_0x1df758=>'listType'==_0x28da3d['_getAttributeKey'](_0x1df758['suggestion']))||(_0x40ae24['removeMarker'](_0x29a8e8['getFirstMarker']()),_0x5d821f=!0x0);}return _0x5d821f;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x503578){const _0x483391=this['editor']['locale'],{data:_0x38db9a}=_0x503578,_0x5abe2a={'type':'format','content':''};if(!_0x38db9a||'listStyle'!=_0x38db9a['key'])return;if(!_0x38db9a['oldValue'])return'default'==_0x38db9a['newValue']?_0x5abe2a:{'type':'format','content':''+c(_0x483391,'*Set\x20format:*\x20%0',c(_0x483391,this['_getTranslationKeyForListStyle'](_0x38db9a['newValue'])))};if(!_0x38db9a['newValue']){if('default'==_0x38db9a['oldValue'])return _0x5abe2a;let _0x2e9cc8=_0x503578['head'];for(;_0x2e9cc8;){if(_0x2e9cc8['data']&&'listType'==_0x2e9cc8['data']['key']&&_0x2e9cc8['data']['newValue'])return _0x5abe2a;_0x2e9cc8=_0x2e9cc8['next'];}return{'type':'format','content':''+c(_0x483391,'*Remove\x20format:*\x20%0',c(_0x483391,this['_getTranslationKeyForListStyle'](_0x38db9a['oldValue'])))};}if('default'!=_0x38db9a['newValue'])return{'type':'format','content':''+c(_0x483391,'*Set\x20format:*\x20%0',c(_0x483391,this['_getTranslationKeyForListStyle'](_0x38db9a['newValue'])))};let _0x23ec11=_0x503578['head'];for(;_0x23ec11;){if(_0x23ec11['data']&&'listType'==_0x23ec11['data']['key']&&_0x23ec11['data']['newValue']&&_0x23ec11['data']['oldValue'])return _0x5abe2a;_0x23ec11=_0x23ec11['next'];}return{'type':'format','content':c(_0x483391,'*Set\x20format:*\x20%0',c(_0x483391,'ELEMENT_'+_0x503578['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1cd6eb=this['editor'],_0x520c1d=_0x1cd6eb['locale'];_0x1cd6eb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c162c=>{if('formatBlock'!=_0x5c162c['type'])return;const {data:_0x2a079d}=_0x5c162c;if(!_0x2a079d)return;let _0x4e42d1,_0x55208c;switch(_0x2a079d['commandName']){case'listStyle':_0x4e42d1='*Change\x20to:*\x20%0',_0x55208c={'type':'format','content':c(_0x520c1d,_0x4e42d1,c(_0x520c1d,this['_getTranslationKeyForListStyle'](_0x2a079d['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4e42d1=_0x2a079d['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x55208c={'type':'format','content':c(_0x520c1d,_0x4e42d1)};break;case'listStart':_0x4e42d1='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x55208c={'type':'format','content':c(_0x520c1d,_0x4e42d1,_0x2a079d['commandParams'][0x0]['startIndex'])};}return _0x55208c;});}['_getTranslationKeyForListStyle'](_0x655ea6){return'ELEMENT_'+function(_0x407a1d){if(_e['includes'](_0x407a1d))return'bulleted';if(Re['includes'](_0x407a1d))return'numbered';return null;}(_0x655ea6)['toUpperCase']()+'_LIST_'+_0x655ea6['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x497417{['afterInit'](){const _0x34fbd7=this['editor'];_0x34fbd7['commands']['get']('emoji')&&_0x34fbd7['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x497417{static get['requires'](){return[_0x4709a6];}['init'](){const _0x21faba=this['editor'],_0x11ffb1=_0x21faba['plugins']['get']('TrackChangesEditing'),_0x501b75=_0x21faba['commands']['get']('enter');_0x11ffb1['enableCommand']('enter',()=>{_0x21faba['model']['change'](_0x5a5f27=>{const _0xa5b664=_0x21faba['model']['document']['selection'],_0x13a2af=_0xa5b664['getFirstPosition'](),_0x56de74=_0x4a3ae4['fromRange'](_0xa5b664['getFirstRange']());if(_0x501b75['enterBlock'](_0x5a5f27)){const _0x480efd=_0x21faba['model']['createPositionAt'](_0x13a2af['parent']['nextSibling'],0x0),_0x27d95e=_0x5a5f27['createRange'](_0x13a2af,_0x480efd);_0x11ffb1['markInsertion'](_0x27d95e);}else _0x5a5f27['setSelection'](_0x5a5f27['createRange'](_0x56de74['end']));_0x56de74['detach'](),_0x501b75['fire']('afterExecute',{'writer':_0x5a5f27});});}),_0x21faba['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x21faba,'split'),{'priority':'high'}),_0x21faba['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x5be870,_0x1e3b03,_0x1a6a17)=>{const _0x77a3af=_0x1a6a17['mapper']['markerNameToElements'](_0x1e3b03['markerName']);if(_0x77a3af){for(const _0x20839b of _0x77a3af)_0x20839b['hasClass']('ck-suggestion-marker-split')&&(_0x1a6a17['mapper']['unbindElementFromMarkerName'](_0x20839b,_0x1e3b03['markerName']),_0x1a6a17['writer']['remove'](_0x20839b));}},{'priority':'high'}),_0x21faba['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x44cebf,_0x52deff,_0x4ab227)=>{_0x4ab227['options']['showSuggestionHighlights']&&De(_0x21faba,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x44cebf,_0x52deff,_0x4ab227);},{'priority':'high'});}}class Z extends _0x497417{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x7d9966=this['editor']['plugins']['get']('TrackChangesEditing');_0x7d9966['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x7d9966['enableCommand']('findNext'),_0x7d9966['enableCommand']('findPrevious'),_0x7d9966['enableCommand']('replace'),_0x7d9966['enableCommand']('replaceAll');}['handleFindCommand'](_0x47d516,_0x2837c7,_0x22f325={}){const _0x598052=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x47d516(_0x3319fd=>{let _0xe931c1=('string'==typeof _0x2837c7?_0x598052['findByTextCallback'](_0x2837c7,_0x22f325):_0x2837c7)(_0x3319fd);Array['isArray'](_0xe931c1)&&(_0xe931c1={'results':_0xe931c1,'searchText':'string'==typeof _0x2837c7?_0x2837c7:''});const _0x36b7a6=_0xe931c1['results']['filter'](_0x87bb11=>!0x1===this['_isInDeletionRange'](_0x87bb11,_0x3319fd['item']));return{..._0xe931c1,'results':_0x36b7a6};},_0x22f325);}['_isInDeletionRange'](_0x47349c,_0x50af8a){const _0x5e57e7=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x50af8a,_0x47349c['start']),this['editor']['model']['createPositionAt'](_0x50af8a,_0x47349c['end']));for(const _0x372946 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x5e57e7['getIntersection'](_0x372946['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x497417{['afterInit'](){const _0x29ce68=this['editor']['locale'],_0x15d757=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x26ed34,commandName:_0x4aaa5b}of eo)this['editor']['plugins']['has'](_0x26ed34)&&(_0x15d757['enableDefaultAttributesIntegration'](_0x4aaa5b),_0x15d757['registerInlineAttribute'](_0x4aaa5b));_0x15d757['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x29ce68,'FORMAT_FONT_SIZE')),_0x15d757['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x29ce68,'FORMAT_FONT_FAMILY')),_0x15d757['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x29ce68,'FORMAT_FONT_COLOR')),_0x15d757['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x29ce68,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x47640e=this['editor'],_0x3a04d2=_0x47640e['locale'];_0x47640e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a938d=>{const _0x386961=_0x3a04d2['t'];if('formatInline'!=_0x1a938d['type'])return;const {data:_0x3bfb6a}=_0x1a938d;if(null!=_0x3bfb6a){if('fontSize'==_0x3bfb6a['commandName']){const _0x1db730=_0x3bfb6a['commandParams'][0x0]['value'];if(_0x1db730){const _0x2209dd=_0x386961(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4007dd=>_0x4007dd['model']==_0x1db730)['title'])['toLowerCase']();return{'type':'format','content':c(_0x3a04d2,'*Set\x20font\x20size:*\x20%0',_0x2209dd)};}return{'type':'format','content':c(_0x3a04d2,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x3bfb6a['commandName']){const _0x7e547f=_0x3bfb6a['commandParams'][0x0]['value'];return _0x7e547f?{'type':'format','content':c(_0x3a04d2,'*Set\x20font\x20family:*\x20%0',_0x7e547f)}:{'type':'format','content':c(_0x3a04d2,'*Reset\x20font\x20family*')};}if('fontColor'==_0x3bfb6a['commandName']){const _0x2d6dbe=_0x3bfb6a['commandParams'][0x0]['value'];if(_0x2d6dbe){const _0x98a38=_0x2b8a4e(this['editor']['config']['get']('fontColor.colors'))['find'](_0x439a14=>_0x439a14['model']==_0x2d6dbe);let _0x5ead2a=_0x2d6dbe,_0x5be48d='';return _0x98a38&&(_0x5ead2a=_0x98a38['label'],_0x5be48d=_0x386961(_0x5ead2a)['toLowerCase']()),{'type':'format','content':c(_0x3a04d2,'*Set\x20font\x20color:*\x20%0',_0x5be48d)['trim'](),'color':{'value':_0x2d6dbe,'title':_0x5be48d||_0x5ead2a}};}return{'type':'format','content':c(_0x3a04d2,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x3bfb6a['commandName']){const _0x333b3b=_0x3bfb6a['commandParams'][0x0]['value'];if(_0x333b3b){const _0x5a4254=_0x2b8a4e(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x591bfc=>_0x591bfc['model']==_0x333b3b);let _0x2d7359=_0x333b3b,_0x241e77='';return _0x5a4254&&(_0x2d7359=_0x5a4254['label'],_0x241e77=_0x386961(_0x2d7359)['toLowerCase']()),{'type':'format','content':c(_0x3a04d2,'*Set\x20font\x20background\x20color:*\x20%0',_0x241e77)['trim'](),'color':{'value':_0x333b3b,'title':_0x241e77||_0x2d7359}};}return{'type':'format','content':c(_0x3a04d2,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x497417{['afterInit'](){const _0xe582f=this['editor'],_0x561fa0=_0xe582f['plugins']['get']('TrackChangesEditing'),_0x35800d=_0xe582f['commands']['get']('copyFormat'),_0x3637de=_0xe582f['commands']['get']('pasteFormat');_0x35800d&&_0x3637de&&(_0x561fa0['enableDefaultAttributesIntegration']('pasteFormat'),_0x561fa0['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x43c8d6=this['editor'],_0x363e49=_0x43c8d6['locale'];_0x43c8d6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b4d85=>{if('formatBlock'!=_0x5b4d85['type']&&'formatInline'!=_0x5b4d85['type'])return;const {data:_0x360239}=_0x5b4d85;if(_0x360239&&'pasteFormat'===_0x360239['commandName']){const _0x298d70=[],_0x3f3873=_0x360239['commandParams'][0x0];for(const [_0x2afe21,_0x538377]of Object['entries'](_0x3f3873))_0x298d70['push'](ro(_0x43c8d6,_0x2afe21,_0x538377));return _0x298d70['length']?{'type':'format','content':c(_0x363e49,'*Set\x20format\x20to:*\x20%0',_0x298d70['join'](',\x20'))}:{'type':'format','content':c(_0x363e49,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x13eca1,_0x7261e3,_0x57a85b){const _0x25ddfc=_0x13eca1['locale']['t'],_0x26e8ba=_0x7261e3['split'](/(?=[A-Z])/)['join']('\x20'),_0x3acf72=_0x25ddfc(_0x26e8ba['charAt'](0x0)['toUpperCase']()+_0x26e8ba['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x57a85b)return _0x3acf72;if('fontColor'===_0x7261e3||'fontBackgroundColor'===_0x7261e3){const _0x28b6a1=_0x2b8a4e(_0x13eca1['config']['get']('fontColor.colors'))['find'](_0x183d70=>_0x183d70['model']==_0x57a85b);return _0x3acf72+'\x20('+(_0x28b6a1?_0x25ddfc(_0x28b6a1['label'])['toLowerCase']():_0x57a85b)+')';}if('fontSize'===_0x7261e3&&isNaN(parseFloat(_0x57a85b))){const _0xb193f4=_0x13eca1['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x13eca1['config']['get']('fontSize.options'))['find'](_0x45c8c0=>_0x45c8c0['model']==_0x57a85b);return _0x3acf72+'\x20('+(_0xb193f4?_0x25ddfc(_0xb193f4['title'])['toLowerCase']():_0x57a85b)+')';}return _0x3acf72+'\x20('+_0x57a85b+')';}class nt extends _0x497417{['_headingOptions'];['afterInit'](){const _0x1fd968=this['editor'];if(!_0x1fd968['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x1fd968['config']['get']('heading.options');const _0x26a846=_0x1fd968['locale'],_0x11bb63=_0x1fd968['plugins']['get']('TrackChangesEditing');_0x11bb63['enableDefaultAttributesIntegration']('heading');for(const _0x311449 of this['_headingOptions'])'paragraph'!=_0x311449['model']&&_0x11bb63['descriptionFactory']['registerElementLabel'](_0x311449['model'],_0x45b198=>{const _0x15d4c6=this['_getHeadingLevel'](_0x311449['model']);return null!==_0x15d4c6?_0x599ad3(_0x45b198,_0x15d4c6):_0x39bcf7(_0x45b198,_0x311449['title']);});function _0x599ad3(_0x3da5e2,_0x318050){return c(_0x26a846,'ELEMENT_HEADING',[_0x3da5e2,_0x318050]);}function _0x39bcf7(_0x19fb3c,_0x18310b){return c(_0x26a846,'ELEMENT_HEADING_CUSTOM',[_0x19fb3c,_0x18310b]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4cdc1f=this['editor'],_0xe39338=_0x4cdc1f['locale'];function _0x555f7d(_0x1c1b10,_0x58abe9){return c(_0xe39338,'ELEMENT_HEADING_CUSTOM',[_0x1c1b10,_0x58abe9]);}_0x4cdc1f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x581bbc=>{if('formatBlock'!=_0x581bbc['type'])return;const {data:_0x4968bf}=_0x581bbc;if(_0x4968bf&&'heading'==_0x4968bf['commandName']){const _0x49d743=_0x4968bf['commandParams'][0x0]['value'],_0x2eb5a2=this['_getHeadingLevel'](_0x49d743);if(null!==_0x2eb5a2)return{'type':'format','content':c(_0xe39338,'*Change\x20to:*\x20%0',(_0x3cb6ac=0x1,_0x10a9ca=_0x2eb5a2,c(_0xe39338,'ELEMENT_HEADING',[_0x3cb6ac,_0x10a9ca])))};const _0x17e393=this['_headingOptions']['find'](_0x54ce8=>_0x54ce8['model']===_0x49d743)['title'];return{'type':'format','content':c(_0xe39338,'*Change\x20to:*\x20%0',_0x555f7d(0x1,_0x17e393))};}var _0x3cb6ac,_0x10a9ca;});}['_getHeadingLevel'](_0x51df3f){const _0x111014=_0x51df3f['match'](/^heading(\d+)/);if(_0x111014)return _0x111014[0x1];const _0x18cd49=this['_headingOptions']?.['find'](_0x5f1adc=>_0x5f1adc['model']==_0x51df3f);if(_0x18cd49&&_0x18cd49['view']){const _0x1cd46f=_0x18cd49['view'],_0x118ffc=(_0x1cd46f['name']??_0x1cd46f)['match'](/^h(\d+)/);if(_0x118ffc)return _0x118ffc[0x1];}return null;}}class it extends _0x497417{['afterInit'](){const _0x36eba6=this['editor'];if(!_0x36eba6['plugins']['has']('HighlightEditing'))return;const _0x200eb0=_0x36eba6['plugins']['get']('TrackChangesEditing'),_0x4fe571=_0x36eba6['locale'];_0x200eb0['enableDefaultAttributesIntegration']('highlight'),_0x200eb0['registerInlineAttribute']('highlight'),_0x200eb0['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x4fe571,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2df12f=this['editor'],_0x23ec56=_0x2df12f['locale'];_0x2df12f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x376654=>{if('formatInline'!=_0x376654['type'])return;const {data:_0x3d4e73}=_0x376654;if(_0x3d4e73&&'highlight'==_0x3d4e73['commandName']){const _0x5c69f1=_0x23ec56['t'],_0x528588=_0x3d4e73['commandParams'][0x0]['value'];if(_0x528588){const _0x5c9567=_0x2df12f['config']['get']('highlight.options')['find'](_0x1ec86c=>_0x1ec86c['model']==_0x528588),_0xb875cc=_0x5c69f1(_0x5c9567['title'])['toLowerCase']();return{'type':'format','content':c(_0x23ec56,'*Set\x20highlight:*\x20%0',_0xb875cc),'color':{'value':_0x5c9567['color'],'title':_0x5c9567['title']}};}return{'type':'format','content':c(_0x23ec56,'*Remove\x20highlight*',c(_0x23ec56,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x497417{['afterInit'](){const _0x2094a2=this['editor'];if(!_0x2094a2['plugins']['has']('HorizontalLineEditing'))return;_0x2094a2['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x94e799=_0x2094a2['plugins']['get']('TrackChangesEditing'),_0x3dc907=_0x2094a2['locale'];_0x94e799['descriptionFactory']['registerElementLabel']('horizontalLine',_0x3de609=>c(_0x3dc907,'ELEMENT_HORIZONTAL_LINE',_0x3de609)),_0x2094a2['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x40d38e,{writer:_0x4b5a71,options:_0x11667b})=>{if(!_0x11667b['showSuggestionHighlights'])return null;const _0x295b00=_0x4b5a71['createContainerElement']('div'),_0xde3210=_0x4b5a71['createEmptyElement']('hr');return _0x4b5a71['addClass']('ck-horizontal-line',_0x295b00),_0x4b5a71['insert'](_0x4b5a71['createPositionAt'](_0x295b00,0x0),_0xde3210),_0x295b00;},'converterPriority':'high'});}}class ot extends _0x497417{['afterInit'](){const _0xf7f8ff=this['editor'];if(!_0xf7f8ff['plugins']['has']('HtmlEmbed'))return;const _0x504bc4=_0xf7f8ff['plugins']['get']('TrackChangesEditing'),_0x305c53=_0xf7f8ff['locale'];_0x504bc4['descriptionFactory']['registerElementLabel']('rawHtml',_0x55bf57=>c(_0x305c53,'ELEMENT_HTML_EMBED',_0x55bf57)),_0x504bc4['enableDefaultAttributesIntegration']('htmlEmbed'),_0x504bc4['registerBlockAttribute']('value'),_0x504bc4['descriptionFactory']['registerDescriptionCallback'](_0x41980d=>{if('attribute'!=_0x41980d['type'])return;const {data:_0x4d03c4}=_0x41980d;if(_0x4d03c4&&'value'==_0x4d03c4['key']&&_0x41980d['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x43435f=c(_0x305c53,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x305c53,'*Change\x20%0\x20content*',_0x43435f)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x58956a=this['editor'],_0x5844e6=_0x58956a['locale'];_0x58956a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x39a720=>{if('formatBlock'!=_0x39a720['type'])return;const {data:_0x10898b}=_0x39a720;if(_0x10898b&&'htmlEmbed'==_0x10898b['commandName']){const _0x43f069=c(_0x5844e6,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x5844e6,'*Change\x20%0\x20content*',_0x43f069)};}});}}class rt extends _0x497417{['afterInit'](){const _0x2740a5=this['editor'];if(!_0x2740a5['plugins']['has']('ImageEditing'))return;const _0x560543=_0x2740a5['plugins']['get']('TrackChangesEditing'),_0x7f6537=_0x2740a5['plugins']['get']('ImageUtils'),_0xc0af58=_0x2740a5['locale'];_0x560543['enableCommand']('insertImage'),_0x560543['descriptionFactory']['registerElementLabel']('imageBlock',_0x3245fd=>c(_0xc0af58,'ELEMENT_IMAGE',_0x3245fd)),_0x560543['descriptionFactory']['registerElementLabel']('imageInline',_0x56cbca=>c(_0xc0af58,'ELEMENT_INLINE_IMAGE',_0x56cbca)),_0x560543['descriptionFactory']['registerElementLabel']('caption',()=>c(_0xc0af58,'ELEMENT_CAPTION')),_0x2740a5['plugins']['has']('ImageUploadEditing')&&_0x560543['enableCommand']('uploadImage'),_0x2740a5['plugins']['has']('ImageBlockEditing')&&_0x2740a5['plugins']['has']('ImageInlineEditing')&&(_0x560543['enableCommand']('imageTypeInline',(_0xaf3c8c,_0x539fdf)=>{const _0x463556=_0x7f6537['getClosestSelectedImageElement'](_0x2740a5['model']['document']['selection']);_0x2740a5['model']['change'](()=>{_0x560543['markBlockFormat'](_0x463556,{'commandName':'imageTypeInline','commandParams':[_0x539fdf]},[],'convertBlockImageToInline');});}),_0x560543['enableCommand']('imageTypeBlock',(_0x3d2c04,_0x2dd6ba)=>{_0x2740a5['model']['change'](_0x4913dc=>{let _0x4ac038=_0x7f6537['getClosestSelectedImageElement'](_0x2740a5['model']['document']['selection']),_0x22a925=_0x4913dc['createRangeOn'](_0x4ac038);const _0x5e439c=_0x3bdfd3['fromPosition'](_0x22a925['start'],'toPrevious'),_0x43ff75=_0x3bdfd3['fromPosition'](_0x22a925['end'],'toNext');_0x560543['forceDefaultExecution'](()=>_0x3d2c04(_0x2dd6ba)),_0x4ac038=_0x7f6537['getClosestSelectedImageElement'](_0x2740a5['model']['document']['selection']),_0x22a925=_0x4913dc['createRangeOn'](_0x4ac038);const _0x3ce65d=_0x4913dc['createRange'](_0x5e439c,_0x43ff75);_0x5e439c['detach'](),_0x43ff75['detach'](),_0x560543['markBlockFormat'](_0x4ac038,{'commandName':'imageTypeInline','commandParams':[_0x2dd6ba]},[],'convertInlineImageToBlock'),_0x3ce65d['start']['isBefore'](_0x22a925['start'])&&_0x560543['markInsertion'](_0x4913dc['createRange'](_0x3ce65d['start'],_0x22a925['start']),'convertInlineImageToBlock'),_0x22a925['end']['isBefore'](_0x3ce65d['end'])&&_0x560543['markInsertion'](_0x4913dc['createRange'](_0x22a925['end'],_0x3ce65d['end']),'convertInlineImageToBlock');});}),_0x560543['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x560543['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x560543['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x560543['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x560543['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x560543['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x188b8f])=>{const _0x155a26=_0x560543['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x4abc0e=_0x188b8f['start'],_0x19a9eb=_0x188b8f['end'];const _0x5cc560=_0x2740a5['model']['schema']['getNearestSelectionRange'](_0x4abc0e,'backward'),_0x1c70fd=_0x2740a5['model']['schema']['getNearestSelectionRange'](_0x19a9eb,'forward');_0x5cc560['isCollapsed']&&(_0x4abc0e=_0x5cc560['start']),_0x1c70fd['isCollapsed']&&(_0x19a9eb=_0x1c70fd['end']),_0x155a26([_0x2740a5['model']['createRange'](_0x4abc0e,_0x19a9eb)]);}),_0x560543['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x16f10c),_0x560543['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x16f10c)),_0x2740a5['plugins']['has']('ImageCaptionEditing')&&(_0x560543['enableCommand']('toggleImageCaption',(_0x6f1640,_0x2d71bc)=>{const _0x65fe04=_0x2740a5['plugins']['get']('ImageCaptionUtils');let _0xad0444=_0x7f6537['getClosestSelectedImageElement'](_0x2740a5['model']['document']['selection']),_0x3f6252=_0x65fe04['getCaptionFromImageModelElement'](_0xad0444);_0x2740a5['model']['change'](()=>{if(_0x3f6252)return void _0x560543['markDeletion'](_0x2740a5['model']['createRangeOn'](_0x3f6252));const _0x103220=_0x7f6537['isBlockImage'](_0xad0444);_0x6f1640(_0x2d71bc),_0xad0444=_0x7f6537['getClosestSelectedImageElement'](_0x2740a5['model']['document']['selection']),_0x3f6252=_0x65fe04['getCaptionFromImageModelElement'](_0xad0444),_0x560543['markInsertion'](_0x2740a5['model']['createRangeOn'](_0x3f6252),_0x103220?null:'imageCaption');});}),_0x560543['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x16f10c));const _0x390474=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x81eac3(_0x16cac1,_0x4a85a1){const _0x3bc80c=_0x390474['findIndex'](({type:_0x139b82,subType:_0x25cf43})=>_0x16cac1['type']==_0x139b82&&_0x16cac1['subType']==_0x25cf43),_0x38faec=_0x390474['findIndex'](({type:_0x28313e,subType:_0x20a916})=>_0x4a85a1['type']==_0x28313e&&_0x4a85a1['subType']==_0x20a916);if(_0x3bc80c<0x0||_0x38faec<0x0)return!0x1;const _0x1df146=_0x16cac1['getFirstRange'](),_0x21485d=_0x4a85a1['getFirstRange']();if((0x0==_0x3bc80c||0x1==_0x3bc80c)&&0x2==_0x38faec&&_0x1df146['isIntersecting'](_0x21485d))return!0x0;if(0x2==_0x3bc80c&&0x3==_0x38faec){const _0x3ccd52=_0x560543['_findSuggestions'](_0x1df146,'insertion')['filter'](({suggestion:_0x3667ce,meta:_0x2d5bb6})=>_0x2d5bb6['isOwn']&&'convertInlineImageToBlock'==_0x3667ce['subType']);if(_0x3ccd52['length']>0x1&&_0x21485d['end']['isEqual'](_0x1df146['start']))return!0x0;if(0x1==_0x3ccd52['length']&&(_0x1df146['start']['isEqual'](_0x21485d['end'])||_0x1df146['end']['isEqual'](_0x21485d['start'])))return!0x0;}if(0x3==_0x3bc80c&&0x3==_0x38faec&&_0x1df146['start']['isBefore'](_0x21485d['start'])){const _0x43a630=_0x1df146['end']['nodeAfter'],_0x449c46=_0x21485d['start']['nodeBefore'];return _0x7f6537['isBlockImage'](_0x43a630)&&_0x43a630===_0x449c46;}return!0x1;}function _0x16f10c(_0x5961fc,_0x46285e){return _0x81eac3(_0x5961fc,_0x46285e)?[_0x5961fc,_0x46285e]:_0x81eac3(_0x46285e,_0x5961fc)?[_0x46285e,_0x5961fc]:null;}_0x2740a5['plugins']['has']('ImageResize')&&(_0x560543['enableDefaultAttributesIntegration']('resizeImage'),_0x560543['registerBlockAttribute']('resizedWidth'),_0x560543['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0xc0af58,'FORMAT_IMAGE_SIZE'))),_0x2740a5['plugins']['has']('ImageTextAlternativeEditing')&&(_0x560543['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x560543['registerBlockAttribute']('alt')),_0x2740a5['plugins']['has']('PictureEditing')&&(_0x560543['registerBlockAttribute']('sources'),_0x560543['descriptionFactory']['registerDescriptionCallback'](_0x568f4e=>{if('attribute'!=_0x568f4e['type'])return;const {data:_0x39b7ce}=_0x568f4e;return _0x39b7ce&&'sources'==_0x39b7ce['key']?{'type':'format','content':''}:void 0x0;})),_0x2740a5['plugins']['has']('ImageSizeAttributes')&&(_0x560543['registerBlockAttribute']('width'),_0x560543['registerBlockAttribute']('height'),_0x560543['descriptionFactory']['registerDescriptionCallback'](_0x1afde8=>{if('attribute'!=_0x1afde8['type'])return;const {data:_0x521c47}=_0x1afde8;return!_0x521c47||'width'!=_0x521c47['key']&&'height'!=_0x521c47['key']?void 0x0:{'type':'format','content':''};})),_0x560543['descriptionFactory']['registerDescriptionCallback'](_0x2c322a=>{if(!!_0x390474['find'](({type:_0x1fa962,subType:_0x3247f5})=>_0x2c322a['type']==_0x1fa962&&_0x2c322a['subType']==_0x3247f5))return _0x2c322a['previous']?{}:void 0x0;}),_0x560543['descriptionFactory']['registerDescriptionCallback'](_0x475b2f=>{if('insertion'==_0x475b2f['type']||'deletion'==_0x475b2f['type']){const _0x1cea59=_0x475b2f['getContainedElement']();if(_0x1cea59&&_0x1cea59['is']('element','caption'))return{'type':'insertion'==_0x475b2f['type']?'addObject':'removeObject','element':_0x1cea59,'quantity':0x1};}}),_0x560543['descriptionFactory']['registerDescriptionCallback'](_0x58948f=>'formatBlock'==_0x58948f['type']&&'convertInlineImageToBlock'==_0x58948f['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x58948f['type']&&'convertBlockImageToInline'==_0x58948f['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x560543['descriptionFactory']['registerDescriptionCallback'](_0x2d5431=>{if('attribute'!=_0x2d5431['type'])return;const {data:_0x17a8fb}=_0x2d5431;if(!_0x17a8fb||'alt'!=_0x17a8fb['key'])return;const _0x273e1c=_0x17a8fb['newValue'];return _0x273e1c?{'type':'format','content':c(_0xc0af58,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x273e1c+'\x22')}:{'type':'format','content':c(_0xc0af58,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x146bf3=this['editor'],_0x118da2=_0x146bf3['locale'];_0x146bf3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2915ce=>{if('formatBlock'!=_0x2915ce['type']&&'formatInline'!=_0x2915ce['type'])return;const {data:_0x4f9152}=_0x2915ce;if(_0x4f9152){if('imageTextAlternative'==_0x4f9152['commandName']){const _0x12ae5e=_0x4f9152['commandParams'][0x0]['newValue'];return _0x12ae5e?{'type':'format','content':c(_0x118da2,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x12ae5e+'\x22')}:{'type':'format','content':c(_0x118da2,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x4f9152['commandName']){const _0x3dda3f=_0x4f9152['commandParams'][0x0]['width'];return _0x3dda3f?{'type':'format','content':c(_0x118da2,'*Set\x20image\x20width:*\x20%0',_0x3dda3f)}:{'type':'format','content':c(_0x118da2,'*Reset\x20image\x20width*')};}}});}}class at extends _0x497417{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0xebd67f=this['editor']['locale'],_0x53fea9=this['editor']['plugins']['get']('TrackChangesEditing');_0x53fea9['enableDefaultAttributesIntegration']('replaceImageSource'),_0x53fea9['registerBlockAttribute']('src'),_0x53fea9['descriptionFactory']['registerDescriptionCallback'](_0x4556a7=>{if('attribute'!=_0x4556a7['type'])return;const {data:_0x3b7048}=_0x4556a7;return _0x3b7048&&'src'==_0x3b7048['key']?_0x3b7048['newValue']&&_0x3b7048['oldValue']?{'type':'format','content':c(_0xebd67f,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xa8e31=this['editor']['plugins']['get']('TrackChangesEditing');_0xa8e31['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0xa8e31['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xa8e31['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0xa8e31['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d5ecb=this['editor'],_0x2d630b=_0x2d5ecb['locale'];_0x2d5ecb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x16decd=>{if('formatBlock'!=_0x16decd['type']&&'formatInline'!=_0x16decd['type'])return;const {data:_0x1e3085}=_0x16decd;if(!_0x1e3085||'replaceImageSource'!=_0x1e3085['commandName'])return;return{'type':'format','content':c(_0x2d630b,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x497417{['afterInit'](){const _0x52fba8=this['editor'];if(!_0x52fba8['plugins']['has']('ImageStyleEditing'))return;const _0x50cae9=_0x52fba8['plugins']['get']('TrackChangesEditing'),_0x2cbabc=_0x52fba8['plugins']['get']('ImageUtils'),_0x25091d={};_0x50cae9['enableCommand']('imageStyle',(_0xa64b53,_0x3657e8)=>{const _0x508b51=_0x52fba8['plugins']['get']('Users')['me'],_0x522813=_0x52fba8['commands']['get']('imageStyle');let _0x2d02c9=_0x2cbabc['getClosestSelectedImageElement'](_0x52fba8['model']['document']['selection']),_0x46793d=_0x52fba8['model']['createRangeOn'](_0x2d02c9),_0x2f3e03=_0x522813['value'];if(_0x2f3e03==_0x3657e8['value'])return;const _0x1b2fcc={'commandName':'imageStyle','commandParams':[_0x3657e8],'formatGroupId':_0x437d48()};_0x52fba8['model']['change'](()=>{if(_0x50cae9['getSuggestions']()['filter'](_0x23a8ce=>_0x23a8ce['isInContent']&&_0x508b51==_0x23a8ce['author']&&('formatBlock'==_0x23a8ce['type']||'formatInline'==_0x23a8ce['type'])&&('imageStylePreApply'==_0x23a8ce['subType']||'imageStylePostApply'==_0x23a8ce['subType'])&&_0x23a8ce['getFirstRange']()['isEqual'](_0x46793d))['forEach'](_0x1601ed=>_0x50cae9['discardSuggestion'](_0x1601ed['head'])),_0x2d02c9=_0x2cbabc['getClosestSelectedImageElement'](_0x52fba8['model']['document']['selection']),_0x46793d=_0x52fba8['model']['createRangeOn'](_0x2d02c9),_0x522813['refresh'](),_0x52fba8['commands']['get']('imageTypeInline')['refresh'](),_0x52fba8['commands']['get']('imageTypeBlock')['refresh'](),_0x2f3e03=_0x522813['value'],_0x2f3e03!=_0x3657e8['value'])return _0x2cbabc['isInlineImage'](_0x2d02c9)&&_0x522813['shouldConvertImageType'](_0x3657e8['value'],_0x2d02c9)?(_0xa64b53({..._0x3657e8,'setImageSizes':!0x1}),_0x2d02c9=_0x2cbabc['getClosestSelectedImageElement'](_0x52fba8['model']['document']['selection']),void _0x50cae9['markBlockFormat'](_0x2d02c9,{..._0x1b2fcc,'commandReversedParams':[{'value':_0x2f3e03||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x2cbabc['isBlockImage'](_0x2d02c9)?_0x50cae9['markBlockFormat'](_0x2d02c9,_0x1b2fcc,[],'imageStylePostApply'):_0x50cae9['markInlineFormat'](_0x46793d,_0x1b2fcc,'imageStylePostApply'));});});for(const _0x339e88 of _0x52fba8['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x25091d[_0x339e88['name']]=_0x339e88['title']['toLowerCase']();_0x50cae9['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x50cae9['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x50cae9['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x50cae9['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x574536])=>{_0x2cbabc['setImageNaturalSizeAttributes'](_0x574536['getContainedElement']());}),_0x50cae9['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x192dcf,_0x3c0ac8)=>{_0x50cae9['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x192dcf,{'commandName':_0x3c0ac8['commandName'],'commandParams':_0x3c0ac8['commandReversedParams']});}),_0x50cae9['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x30f6d8,_0xc42b9d){if(_0x5047dd(_0x30f6d8,_0xc42b9d))return[_0x30f6d8,_0xc42b9d];if(_0x5047dd(_0xc42b9d,_0x30f6d8))return[_0xc42b9d,_0x30f6d8];return null;});const _0x489257=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5047dd(_0x461799,_0x182b14){const _0x9d8456=_0x489257['findIndex'](({type:_0x321771,subType:_0x52c52f})=>_0x461799['type']==_0x321771&&_0x461799['subType']==_0x52c52f),_0x4d4945=_0x489257['findIndex'](({type:_0x31b6c7,subType:_0x1b0b42})=>_0x182b14['type']==_0x31b6c7&&_0x182b14['subType']==_0x1b0b42);if(_0x9d8456<0x0||_0x4d4945<0x0)return!0x1;const _0x46e4ad=_0x461799['getFirstRange'](),_0x3be8f2=_0x182b14['getFirstRange']();if((0x0==_0x9d8456||0x1==_0x9d8456)&&0x2==_0x4d4945&&_0x46e4ad['isIntersecting'](_0x3be8f2))return!0x0;if(0x2==_0x9d8456&&0x3==_0x4d4945){const _0x23a89e=_0x50cae9['_findSuggestions'](_0x46e4ad,'insertion')['filter'](({suggestion:_0x3c89b4,meta:_0x574f93})=>_0x574f93['isOwn']&&'convertInlineImageToBlock'==_0x3c89b4['subType']);if(_0x23a89e['length']>0x1&&_0x3be8f2['end']['isEqual'](_0x46e4ad['start']))return!0x0;if(0x1==_0x23a89e['length']&&(_0x46e4ad['start']['isEqual'](_0x3be8f2['end'])||_0x46e4ad['end']['isEqual'](_0x3be8f2['start'])))return!0x0;}if(0x3==_0x9d8456&&0x3==_0x4d4945&&_0x46e4ad['start']['isBefore'](_0x3be8f2['start'])){const _0x3b96da=_0x46e4ad['end']['nodeAfter'],_0x1ed4dc=_0x3be8f2['start']['nodeBefore'];return _0x2cbabc['isBlockImage'](_0x3b96da)&&_0x3b96da===_0x1ed4dc;}return!0x1;}_0x52fba8['model']['document']['registerPostFixer'](()=>{let _0x4e5d17=!0x1;const _0x4d828c=Array['from'](_0x52fba8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2c7aca,data:_0xcda04}of _0x4d828c){const {group:_0x143c57,type:_0x514e23,subType:_0x3c9b7b,id:_0x41f764}=_0x50cae9['_splitMarkerName'](_0x2c7aca);if('suggestion'==_0x143c57&&_0x50cae9['hasSuggestion'](_0x41f764)){if('formatBlock'==_0x514e23&&('imageStylePreApply'==_0x3c9b7b||'imageStylePostApply'==_0x3c9b7b)){const _0x33a9c0=_0x50cae9['getSuggestion'](_0x41f764);if(_0xcda04['newRange']){const _0x2bb90f=_0x33a9c0['getFirstRange']()['getContainedElement']();if(_0x2cbabc['isBlockImage'](_0x2bb90f))continue;_0x50cae9['discardSuggestion'](_0x33a9c0),_0x4e5d17=!0x0;}}if('insertion'==_0x514e23&&'imageCaption'==_0x3c9b7b&&!_0xcda04['newRange']){const _0x44cccb=_0x50cae9['getSuggestion'](_0x41f764);_0x44cccb['next']&&_0x44cccb['next']['isInContent']&&(_0x50cae9['discardSuggestion'](_0x44cccb['next']),_0x4e5d17=!0x0);}}}return _0x4e5d17;}),this['_registerLegacyDescription'](_0x25091d);}['_registerLegacyDescription'](_0x2ebf70){const _0xf5703d=this['editor'],_0x5445ff=_0xf5703d['locale'];_0xf5703d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1bdfea=>{if('formatBlock'!=_0x1bdfea['type']&&'formatInline'!=_0x1bdfea['type'])return;const {data:_0xa1fd64}=_0x1bdfea;if(!_0xa1fd64||'imageStyle'!=_0xa1fd64['commandName'])return;const _0x3821fb=_0xa1fd64['commandParams'][0x0]['value'];return _0x336348('side'===_0x3821fb?c(_0x5445ff,'FORMAT_SIDE_IMAGE'):_0x2ebf70[_0x3821fb]||_0x3821fb);function _0x336348(_0x1fa2b3){return{'type':'format','content':c(_0x5445ff,'*Format:*\x20%0',_0x1fa2b3)};}});}}class ut extends _0x497417{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x332d23){super(_0x332d23),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x323dee=this['editor'],_0x431540=_0x323dee['commands']['get']('importWord'),_0x1afb06=_0x323dee['commands']['get']('trackChanges');_0x431540&&(_0x431540['on']('execute',(_0x1cd3d9,[,_0x122ab4])=>{this['_trackChangesValueDuringImport']=_0x1afb06['value'],_0x122ab4['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x431540,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x431540,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x1afb06['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x323dee['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x356061,_0x3e3039){const {suggestions:_0x583313}=_0x3e3039,_0x405e30=this['editor']['commands']['get']('trackChanges'),_0x33c755=_0x405e30['value'];this['_trackChangesValueDuringImport']!==_0x33c755&&(_0x405e30['execute'](),this['_trackChangesExecuted']=!0x0),_0x583313&&_0x583313['forEach'](({id:_0x3b345e,type:_0x14cc00,author:_0x18bef1,created_at:_0x1d3153})=>{const _0x12e05f={'id':_0x3b345e,'type':_0x14cc00,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x18bef1,'createdAt':_0x1d3153?new Date(_0x1d3153):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x12e05f);});}}class ft extends _0x497417{['afterInit'](){const _0x14f382=this['editor'],_0x4c2e06=_0x14f382['plugins']['get']('TrackChangesEditing');if(_0x14f382['plugins']['has']('IndentEditing')&&(_0x4c2e06['enableCommand']('indent'),_0x4c2e06['enableCommand']('outdent')),_0x14f382['plugins']['has']('IndentBlock')){for(const _0x109ccd of['indentBlock','outdentBlock'])_0x4c2e06['enableDefaultAttributesIntegration'](_0x109ccd);}const _0x119542=_0x14f382['locale'];_0x4c2e06['registerBlockAttribute']('blockIndent'),_0x4c2e06['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x119542,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d29af=this['editor'],_0x58335a=_0x4d29af['locale'],_0xd7995=_0x4d29af['plugins']['get']('TrackChangesEditing');_0xd7995['descriptionFactory']['registerDescriptionCallback'](_0x58f90f=>{if('formatBlock'!=_0x58f90f['type'])return;const {data:_0x937792}=_0x58f90f;if(!_0x937792)return;if('indentBlock'!=_0x937792['commandName']&&'outdentBlock'!=_0x937792['commandName'])return;const _0x250879=_0x58f90f['getItems']()[0x0],_0x26d207=_0xd7995['descriptionFactory']['getItemLabel'](_0x250879);return'indentBlock'==_0x937792['commandName']?{'type':'format','content':c(_0x58335a,'*Indent:*\x20%0',_0x26d207)}:'outdentBlock'==_0x937792['commandName']?{'type':'format','content':c(_0x58335a,'*Outdent:*\x20%0',_0x26d207)}:void 0x0;});}}class ht extends _0x497417{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x497417{['afterInit'](){const _0x5a2d9e=this['editor'];if(!_0x5a2d9e['plugins']['has']('LinkEditing'))return;const _0x3ea2b7=_0x5a2d9e['plugins']['get']('TrackChangesEditing'),_0x209bd2=_0x5a2d9e['commands']['get']('link');_0x3ea2b7['enableDefaultAttributesIntegration']('link'),_0x3ea2b7['enableDefaultAttributesIntegration']('unlink'),_0x3ea2b7['registerInlineAttribute']('linkHref');for(const _0x30f39f of _0x209bd2['manualDecorators'])_0x3ea2b7['registerInlineAttribute'](_0x30f39f['id']),_0x3ea2b7['descriptionFactory']['registerAttributeLabel'](_0x30f39f['id'],'link\x20('+_0x30f39f['label']['toLowerCase']()+')');_0x3ea2b7['descriptionFactory']['registerDescriptionCallback'](_0x1aef97=>{if('attribute'!=_0x1aef97['type'])return;const {data:_0x336f6b}=_0x1aef97;if(!_0x336f6b||'linkHref'!=_0x336f6b['key'])return;const _0x5ab8ea=_0x336f6b['newValue'],_0x115c84=_0x5a2d9e['locale'];return{'type':'format','content':null==_0x5ab8ea?c(_0x115c84,'*Remove\x20link*'):c(_0x115c84,'*Set\x20link:*\x20%0','\x22'+_0x5ab8ea+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4cd2c4=this['editor'],_0x18267c=_0x4cd2c4['locale'];_0x4cd2c4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x29d2ba=>{if('formatInline'!=_0x29d2ba['type'])return;const {data:_0x418950}=_0x29d2ba;if(_0x418950){if('link'==_0x418950['commandName']){const _0x28b9ff=_0x418950['commandParams'][0x0];return{'type':'format','content':c(_0x18267c,'*Set\x20link:*\x20%0','\x22'+_0x28b9ff+'\x22')};}return'unlink'==_0x418950['commandName']?{'type':'format','content':c(_0x18267c,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x497417{['afterInit'](){const _0x28220a=this['editor'],_0x5dd332=_0x28220a['locale'];if(!_0x28220a['plugins']['has']('LegacyListEditing'))return;const _0x581fff=_0x28220a['plugins']['get']('TrackChangesEditing'),_0x39bdc2=_0x28220a['plugins']['has']('LegacyTodoListEditing');function _0x5f488e(_0x4db299){return()=>{const _0x14f49f=_0x28220a['model']['document']['selection'],_0x5d62b9=_0x28220a['commands']['get'](_0x4db299);if(_0x5d62b9['value'])return void _0x28220a['execute']('paragraph',{});const _0x164f22=_0x4db299['slice'](0x0,-0x4),_0x45f260=function(_0x230749,_0x482852,_0x23ddb7){let _0x2e3e2e=Array['from'](_0x230749)['filter'](_0x37d10a=>function(_0x14da46,_0xc74728){return _0xc74728['checkChild'](_0x14da46['parent'],'listItem')&&!_0xc74728['isObject'](_0x14da46);}(_0x37d10a,_0x23ddb7));_0x2e3e2e=_0x2e3e2e['filter'](_0x1bb902=>!_0x1bb902['is']('element','listItem')||_0x1bb902['getAttribute']('listType')!=_0x482852);const _0x3b98d5=new Set();for(const _0x55ea6a of _0x2e3e2e)_0x55ea6a['is']('element','listItem')?_0x3b98d5['add'](Le(_0x55ea6a)):_0x3b98d5['add'](_0x55ea6a);return Array['from'](_0x3b98d5);}(_0x14f49f['getSelectedBlocks'](),_0x164f22,_0x28220a['model']['schema']);_0x28220a['model']['change'](()=>{for(const _0x3c5edb of _0x45f260)_0x581fff['markBlockFormat'](_0x3c5edb,{'commandName':_0x4db299,'commandParams':[{'forceValue':!_0x5d62b9['value']}],'formatGroupId':'blockName'},Ee(_0x3c5edb));});};}function _0x5337a7(_0x109d26){return()=>{const _0x1a710f=function(_0x417939){let _0x1f48ed=Array['from'](_0x417939);const _0x461f31=_0x1f48ed['findIndex'](_0x1351d=>'listItem'!=_0x1351d['name']);return _0x461f31>-0x1&&(_0x1f48ed=_0x1f48ed['slice'](0x0,_0x461f31)),_0x1f48ed;}(_0x28220a['model']['document']['selection']['getSelectedBlocks']()),_0x41b469=_0x28220a['model']['createRange'](_0x28220a['model']['createPositionAt'](_0x1a710f[0x0],'before'),_0x28220a['model']['createPositionAt'](_0x1a710f[_0x1a710f['length']-0x1],'end'));_0x28220a['model']['change'](()=>{_0x581fff['markBlockFormat'](_0x41b469,{'commandName':_0x109d26,'commandParams':[],'formatGroupId':'listIndent'},function(_0x331514){const _0xe20851=new Set();for(const _0x521f09 of _0x331514){let _0x4d9c03=_0x521f09['nextSibling'];for(;_0x4d9c03&&_0x4d9c03['getAttribute']('listIndent')>_0x521f09['getAttribute']('listIndent');)_0xe20851['add'](_0x4d9c03),_0x4d9c03=_0x4d9c03['nextSibling'];}return Array['from'](_0xe20851);}(_0x1a710f));});};}_0x581fff['enableCommand']('numberedList',_0x5f488e('numberedList')),_0x581fff['enableCommand']('bulletedList',_0x5f488e('bulletedList')),_0x39bdc2&&_0x581fff['enableCommand']('todoList',_0x5f488e('todoList')),_0x581fff['enableCommand']('indentList',_0x5337a7('indentList')),_0x581fff['enableCommand']('outdentList',_0x5337a7('outdentList')),_0x39bdc2&&_0x581fff['enableCommand']('checkTodoList',()=>{const _0x2a96cb=_0x28220a['commands']['get']('checkTodoList'),_0x5c8fc2=Array['from'](_0x2a96cb['_selectedElements']);_0x5c8fc2['filter'](_0x2a3a0a=>_0x2a3a0a['getAttribute']('todoListChecked')!=_0x2a96cb['value']),_0x28220a['model']['change'](()=>{for(const _0x467c5a of _0x5c8fc2)_0x581fff['markBlockFormat'](_0x467c5a,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2a96cb['value']}]});});}),_0x581fff['descriptionFactory']['registerElementLabel']('listItem',_0x10c444=>c(_0x5dd332,'ELEMENT_LIST_ITEM',_0x10c444)),_0x581fff['descriptionFactory']['registerDescriptionCallback'](_0x4608cf=>{if('formatBlock'!=_0x4608cf['type']&&'formatInline'!=_0x4608cf['type'])return;const {data:_0x2fe2ee}=_0x4608cf;if(_0x2fe2ee){if('numberedList'==_0x2fe2ee['commandName']||'bulletedList'==_0x2fe2ee['commandName']||'todoList'==_0x2fe2ee['commandName'])switch(_0x2fe2ee['commandName']['replace']('List','')){case'bulleted':return _0x762c6f(c(_0x5dd332,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x762c6f(c(_0x5dd332,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x762c6f(c(_0x5dd332,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2fe2ee['commandName'])return{'type':'format','content':c(_0x5dd332,'*Indent:*\x20%0',c(_0x5dd332,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2fe2ee['commandName'])return{'type':'format','content':c(_0x5dd332,'*Outdent:*\x20%0',c(_0x5dd332,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2fe2ee['commandName'])return _0x2fe2ee['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x5dd332,'*Check\x20item*')}:{'type':'format','content':c(_0x5dd332,'*Uncheck\x20item*')};}function _0x762c6f(_0x330474){return{'type':'format','content':c(_0x5dd332,'*Change\x20to:*\x20%0',_0x330474)};}});}}function Le(_0x2e2c86){const _0x524576=_0x2e2c86['getAttribute']('listIndent');if(0x0==_0x524576)return _0x2e2c86;let _0x143f32=_0x2e2c86;for(;_0x2e2c86['previousSibling']&&_0x2e2c86['previousSibling']['is']('element','listItem');){const _0x17ebd9=_0x2e2c86['previousSibling']['getAttribute']('listIndent');if(_0x17ebd9==_0x524576)_0x143f32=_0x2e2c86['previousSibling'];else{if(_0x17ebd9<_0x524576)break;}_0x2e2c86=_0x2e2c86['previousSibling'];}return _0x143f32;}function Ee(_0x4a5ffb){const _0x324150=[];if(_0x4a5ffb['is']('element','listItem')&&_0x4a5ffb['getAttribute']('listIndent')>0x0){let _0x671fb0=_0x4a5ffb['nextSibling'];for(;_0x671fb0&&'listItem'==_0x671fb0['name']&&_0x671fb0['getAttribute']('listIndent')==_0x4a5ffb['getAttribute']('listIndent');)_0x324150['push'](_0x671fb0),_0x671fb0=_0x671fb0['nextSibling'];}return _0x324150;}class Q extends _0x497417{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x56b575=this['editor']['config']['get']('list.properties'),_0x14960f=this['editor']['plugins']['get']('TrackChangesEditing');_0x56b575['styles']&&_0x14960f['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x56b575['reversed']&&_0x14960f['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x56b575['startIndex']&&_0x14960f['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x14960f['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x91457e,_0x3b226c={}){const _0x462fcf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2bec99=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x462fcf['markMultiRangeBlockFormat'](_0x2bec99,{'commandName':'listStyle','commandParams':[{'type':_0x3b226c['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x43cb39,_0x24795e={}){const _0xa53abf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x8f2e8=this['_getSuggestionBlocks'](_0x1fb64c=>_0x1fb64c['is']('element','listItem')&&'numbered'===_0x1fb64c['getAttribute']('listType'));if(_0x8f2e8['length']<0x1)return;const _0x226a74=_0x8f2e8['map'](_0x22d1ec=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x22d1ec,'before'),this['editor']['model']['createPositionAt'](_0x22d1ec,0x0)));this['editor']['model']['change'](()=>{_0xa53abf['markMultiRangeBlockFormat'](_0x226a74,{'commandName':'listReversed','commandParams':[{'reversed':_0x24795e['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x28da4c,_0x25708c={}){const _0x334166=this['editor']['plugins']['get']('TrackChangesEditing'),_0x41641e=this['_getSuggestionBlocks'](_0x234219=>_0x234219['is']('element','listItem')&&'numbered'===_0x234219['getAttribute']('listType'));if(_0x41641e['length']<0x1)return;const _0x2eb365=_0x41641e['map'](_0x3bb46a=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3bb46a,'before'),this['editor']['model']['createPositionAt'](_0x3bb46a,0x0)));this['editor']['model']['change'](()=>{_0x334166['markMultiRangeBlockFormat'](_0x2eb365,{'commandName':'listStart','commandParams':[{'startIndex':_0x25708c['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0xd2140b){if('formatBlock'!=_0xd2140b['type']&&'formatInline'!=_0xd2140b['type'])return;const _0x2716be=this['editor']['locale'],{data:_0x295872}=_0xd2140b;if(!_0x295872)return;let _0x13c0df,_0x52fb77;switch(_0x295872['commandName']){case'listStyle':_0x13c0df='*Change\x20to:*\x20%0',_0x52fb77={'type':'format','content':c(_0x2716be,_0x13c0df,c(_0x2716be,this['_getTranslationKeyForListStyle'](_0x295872['commandParams'][0x0]['type'])))};break;case'listReversed':_0x13c0df=_0x295872['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x52fb77={'type':'format','content':c(_0x2716be,_0x13c0df)};break;case'listStart':_0x13c0df='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x52fb77={'type':'format','content':c(_0x2716be,_0x13c0df,_0x295872['commandParams'][0x0]['startIndex'])};}return _0x52fb77;}['_getSuggestionBlocksForListStyle'](){const _0x1c2c20=this['editor']['plugins']['get']('LegacyListUtils');let _0x3e4d90=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x3e4d90[0x0]?.['is']('element','listItem')&&_0x3e4d90['unshift'](..._0x1c2c20['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x3e4d90[_0x3e4d90['length']-0x1]?.['is']('element','listItem')&&_0x3e4d90['push'](..._0x1c2c20['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x3e4d90=[...new Set(_0x3e4d90)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x3e4d90=_0x3e4d90['filter'](_0x5d8e6d=>_0x5d8e6d['is']('element','listItem'))),_0x3e4d90;}['_getSuggestionBlocks'](_0x17cef4){const _0x5645a4=this['editor']['plugins']['get']('LegacyListUtils');let _0x304e40=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x17cef4)['map'](_0x148792=>{const _0x373563=this['editor']['model']['createPositionAt'](_0x148792,0x0);return[..._0x5645a4['getSiblingNodes'](_0x373563,'backward'),..._0x5645a4['getSiblingNodes'](_0x373563,'forward')];})['flat']();return _0x304e40=[...new Set(_0x304e40)],_0x304e40;}['_getTranslationKeyForListStyle'](_0x2e5625){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x2e5625)||'default')['toUpperCase']()+'_LIST_'+_0x2e5625['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x497417{['afterInit'](){const _0x540935=this['editor'];if(!_0x540935['plugins']['has']('MediaEmbedEditing'))return;const _0x532102=_0x540935['plugins']['get']('TrackChangesEditing'),_0x18649e=_0x540935['locale'];_0x532102['enableCommand']('mediaEmbed'),_0x532102['descriptionFactory']['registerElementLabel']('media',_0x3c563d=>c(_0x18649e,'ELEMENT_MEDIA',_0x3c563d)),_0x540935['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4bca41,{writer:_0x1b84d3,options:_0x43d1b9})=>{if(_0x43d1b9['showSuggestionHighlights'])return _0x1b84d3['createEmptyElement']('div');},'converterPriority':'high'}),_0x540935['data']['downcastDispatcher']['on']('attribute:url:media',(_0x272a10,_0x36f2dd,_0xf9ec3a)=>{_0xf9ec3a['options']['showSuggestionHighlights']&&_0x272a10['stop']();},{'priority':'high'});}}class pt extends _0x497417{['afterInit'](){const _0x93ea4c=this['editor'];_0x93ea4c['plugins']['has']('MentionEditing')&&_0x93ea4c['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x497417{['afterInit'](){const _0x39b4a7=this['editor'];if(!_0x39b4a7['plugins']['has']('MergeFieldsEditing'))return;const _0xf7417d=_0x39b4a7['plugins']['get']('TrackChangesEditing'),_0x1a1bf9=_0x39b4a7['locale'];_0xf7417d['enableCommand']('insertMergeField'),_0xf7417d['enableCommand']('insertMergeFieldBlock'),_0xf7417d['enableCommand']('insertMergeFieldImage'),_0xf7417d['descriptionFactory']['registerElementLabel']('mergeField',_0x44ea0e=>c(_0x1a1bf9,'ELEMENT_MERGE_FIELD',_0x44ea0e)),_0xf7417d['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x4ef31b=>c(_0x1a1bf9,'ELEMENT_MERGE_FIELD',_0x4ef31b)),_0xf7417d['descriptionFactory']['registerDescriptionCallback'](_0x2202ab=>{if('insertion'!=_0x2202ab['type']&&'deletion'!=_0x2202ab['type'])return;const _0x6a03c2=_0x2202ab['getContainedElement']();if(null==_0x6a03c2)return;const _0x15b306=_0x39b4a7['plugins']['get']('MergeFieldsEditing');let _0x510c28;switch(_0x15b306['getMergeFieldType'](_0x6a03c2)){case null:return;case'image':{const _0xe8cbbc=_0x15b306['unwrapAffixes'](_0x6a03c2['getAttribute']('src'));_0x510c28=_0x15b306['getLabel'](_0xe8cbbc)||_0xe8cbbc;break;}default:{const _0x54b6b6=_0x6a03c2['getAttribute']('id');_0x510c28=_0x15b306['getLabel'](_0x54b6b6)||_0x54b6b6;break;}}return'insertion'==_0x2202ab['type']?{'type':'insertion','content':c(_0x1a1bf9,'*Insert:*\x20%0','\x22'+_0x510c28+'\x22\x20'+c(_0x1a1bf9,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x1a1bf9,'*Remove:*\x20%0','\x22'+_0x510c28+'\x22\x20'+c(_0x1a1bf9,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x497417{['afterInit'](){const _0x292a3d=this['editor'],_0x316493=_0x292a3d['plugins']['get']('TrackChangesEditing');_0x292a3d['plugins']['has']('MultiLevelList')&&(_0x316493['enableDefaultAttributesIntegration']('multiLevelList'),_0x316493['registerBlockAttribute']('listMarkerStyle'),_0x316493['descriptionFactory']['registerDescriptionCallback'](_0x17b035=>this['handleDescriptions'](_0x17b035)));}['handleDescriptions'](_0x55d774){const _0xd73d96=this['editor']['locale'],{data:_0x8d7b28}=_0x55d774,_0x24c426={'type':'format','content':''};if(_0x8d7b28&&'listMarkerStyle'==_0x8d7b28['key']){if(!_0x8d7b28['oldValue'])return{'type':'format','content':c(_0xd73d96,'*Set\x20format:*\x20%0',c(_0xd73d96,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x8d7b28['newValue']+')'};if(!_0x8d7b28['newValue']){let _0x2f27b2=_0x55d774['head'];for(;_0x2f27b2;){if(_0x2f27b2['data']&&'listType'==_0x2f27b2['data']['key']&&_0x2f27b2['data']['newValue'])return _0x24c426;_0x2f27b2=_0x2f27b2['next'];}return{'type':'format','content':c(_0xd73d96,'*Remove\x20format:*\x20%0',c(_0xd73d96,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x8d7b28['oldValue']+')'};}}}}class bt extends _0x497417{['afterInit'](){const _0x1699d4=this['editor'];if(!_0x1699d4['plugins']['has']('PageBreakEditing'))return;_0x1699d4['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x1417d3=_0x1699d4['plugins']['get']('TrackChangesEditing'),_0x9411a6=_0x1699d4['locale'];_0x1417d3['descriptionFactory']['registerElementLabel']('pageBreak',_0x1355c8=>c(_0x9411a6,'ELEMENT_PAGE_BREAK',_0x1355c8));}}class yt extends _0x497417{['afterInit'](){const _0x35508e=this['editor'];if(!_0x35508e['plugins']['has']('Paragraph'))return;const _0x438045=_0x35508e['locale'],_0x3405c2=_0x35508e['plugins']['get']('TrackChangesEditing');_0x3405c2['descriptionFactory']['registerElementLabel']('paragraph',_0x1bd9eb=>c(_0x438045,'ELEMENT_PARAGRAPH',_0x1bd9eb)),_0x3405c2['enableDefaultAttributesIntegration']('paragraph'),_0x3405c2['enableCommand']('insertParagraph'),_0x35508e['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x35508e),{'priority':'highest'}),_0x35508e['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xb5426b,_0x5070db,_0x197155)=>{_0x197155['options']['showSuggestionHighlights']&&nr(_0x35508e,{'showActiveMarker':!0x1})(_0xb5426b,_0x5070db,_0x197155);},{'priority':'highest'});const _0x488b45=_0x3405c2['descriptionFactory'];_0x488b45['registerDescriptionCallback'](_0x3f3152=>{if('insertion'!==_0x3f3152['type'])return;const {start:_0x2994df,end:_0x3ce17d}=_0x3f3152['getFirstRange']();if(!_0x2994df['isTouching'](_0x3ce17d)||!_0x2994df['nodeAfter'])return;const _0x4787e7=_0x35508e['model']['schema'],_0x500a2e=_0x2994df['nodeAfter'];return _0x4787e7['isBlock'](_0x500a2e)&&!_0x4787e7['isLimit'](_0x500a2e)&&_0x4787e7['checkChild'](_0x500a2e,'$text')?{'type':'insertion','content':c(_0x438045,'*Insert:*\x20%0',_0x488b45['getItemLabel'](_0x500a2e,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xa50824=this['editor'],_0x3026f2=_0xa50824['locale'];_0xa50824['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x37ac25=>{if('formatBlock'!=_0x37ac25['type'])return;const {data:_0x579744}=_0x37ac25;return _0x579744&&'paragraph'==_0x579744['commandName']?{'type':'format','content':c(_0x3026f2,'*Change\x20to:*\x20%0',c(_0x3026f2,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x3b22ed,{showActiveMarker:_0x40e101=!0x0}={}){return(_0x29f70b,_0x335fda,_0x5b3c99)=>{const _0x539128=_0x3b22ed['plugins']['get']('TrackChangesEditing'),_0x1ecac0=_0x335fda['markerRange']['start'],_0x575a41=_0x335fda['markerRange']['end'],_0x2e57e9=_0x3b22ed['model']['schema'];if(!_0x1ecac0['isTouching'](_0x575a41)||!_0x1ecac0['nodeAfter'])return;const _0xeb324d=_0x1ecac0['nodeAfter'];if(_0x2e57e9['isBlock'](_0xeb324d)&&!_0x2e57e9['isLimit'](_0xeb324d)&&_0x2e57e9['checkChild'](_0xeb324d,'$text')){if(!_0x5b3c99['consumable']['consume'](_0x335fda['markerRange'],_0x29f70b['name']))return;const {authorId:_0x1183df}=_0x539128['_splitMarkerName'](_0x335fda['markerName']),_0x3417bd=_0x5b3c99['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x1183df}),_0x18abec=_0x5b3c99['mapper']['toViewPosition'](_0x575a41);_0x40e101&&_0x539128['activeMarkers']['includes'](_0x335fda['markerName'])&&_0x5b3c99['writer']['addClass']('ck-suggestion-marker--active',_0x3417bd),_0x5b3c99['writer']['insert'](_0x18abec,_0x3417bd),_0x5b3c99['mapper']['bindElementToMarker'](_0x3417bd,_0x335fda['markerName']);}};}class jt extends _0x497417{['afterInit'](){const _0x95d584=this['editor'];_0x95d584['commands']['get']('replaceSource')&&_0x95d584['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x497417{['afterInit'](){const _0xb84cd9=this['editor'];if(!_0xb84cd9['plugins']['has']('RemoveFormatEditing'))return;_0xb84cd9['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4f432e=this['editor'];_0x4f432e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x195e26=>{if('formatBlock'!=_0x195e26['type']&&'formatInline'!=_0x195e26['type'])return;const {data:_0x55d8d2}=_0x195e26;return _0x55d8d2&&'removeFormat'==_0x55d8d2['commandName']?{'type':'format','content':c(_0x4f432e['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x497417{['afterInit'](){const _0x1c71f4=this['editor'];if(!_0x1c71f4['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x449c42=_0x1c71f4['plugins']['get']('TrackChangesEditing');_0x449c42['enableCommand']('goToPreviousRestrictedEditingException'),_0x449c42['enableCommand']('goToNextRestrictedEditingException');const _0x5be652=_0x1c71f4['plugins']['get']('RestrictedEditingModeEditing');_0x5be652['enableCommand']('trackChanges'),_0x5be652['enableCommand']('acceptSuggestion'),_0x5be652['enableCommand']('discardSuggestion'),_0x5be652['enableCommand']('acceptAllSuggestions'),_0x5be652['enableCommand']('discardAllSuggestions'),_0x5be652['enableCommand']('acceptSelectedSuggestions'),_0x5be652['enableCommand']('discardSelectedSuggestions');}}class It extends _0x497417{static get['requires'](){return[_0x386113];}['init'](){const _0x302e52=this['editor'],_0x24dbd8=_0x302e52['plugins']['get']('TrackChangesEditing');_0x24dbd8['enableCommand']('shiftEnter'),_0x302e52['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x302e52),{'priority':'high'}),_0x302e52['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x302e52),{'priority':'high'}),_0x302e52['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x37ad9f,_0x41bfbd,_0x3d943a)=>{_0x3d943a['options']['showSuggestionHighlights']&&je(_0x302e52,{'showActiveMarker':!0x1})(_0x37ad9f,_0x41bfbd,_0x3d943a);}),_0x24dbd8['descriptionFactory']['registerElementLabel']('softBreak',_0x5bd8fe=>c(_0x302e52['locale'],'ELEMENT_LINE_BREAK',_0x5bd8fe));}}function je(_0x53250e,{showActiveMarker:_0xecbf9a=!0x0}={}){return(_0xdf344,_0x3e9b48,_0x2e5416)=>{const _0x1de849=_0x53250e['plugins']['get']('TrackChangesEditing');if(!_0x2e5416['consumable']['test'](_0x3e9b48['markerRange'],_0xdf344['name']))return;const _0x1b20b1=_0x53250e['model'];for(const _0x47e400 of _0x3e9b48['markerRange']['getItems']()){if(!_0x47e400['is']('element','softBreak'))continue;const _0x192731='deletion'==_0x3e9b48['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x30edfd}=_0x1de849['_splitMarkerName'](_0x3e9b48['markerName']),_0x100cb2=_0x2e5416['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x192731,'data-author-id':_0x30edfd}),_0x475b22=_0x2e5416['mapper']['toViewPosition'](_0x1b20b1['createPositionBefore'](_0x47e400));_0xecbf9a&&_0x1de849['activeMarkers']['includes'](_0x3e9b48['markerName'])&&_0x2e5416['writer']['addClass']('ck-suggestion-marker--active',_0x100cb2),_0x2e5416['writer']['insert'](_0x475b22,_0x100cb2),_0x2e5416['mapper']['bindElementToMarker'](_0x100cb2,_0x3e9b48['markerName']);}};}class _t extends _0x497417{['afterInit'](){const _0x15aef6=this['editor'],_0x5bb3af=_0x15aef6['model'],_0x3c2bd0=_0x15aef6['locale'];if(!_0x15aef6['plugins']['has']('StandardEditingModeEditing'))return;const _0x424318=_0x15aef6['plugins']['get']('TrackChangesEditing'),_0x520021='restrictedEditingException',_0x348141=_0x15aef6['commands']['get'](_0x520021);_0x424318['enableCommand'](_0x520021,(_0x27c7d5,_0x2708e4={})=>{const _0x449144=_0x5bb3af['document']['selection'];if(_0x449144['isCollapsed'])return void _0x27c7d5(_0x2708e4);const _0x303c2a=void 0x0!==_0x2708e4['forceValue']?_0x2708e4['forceValue']:!_0x348141['value'];_0x5bb3af['change'](()=>{const _0x4bfdc8=Array['from'](_0x449144['getRanges']());for(const _0x56b606 of _0x4bfdc8){const _0x2ee0ac=_0x303c2a?[_0x56b606]:io(_0x520021,_0x56b606,_0x5bb3af);for(const _0x33f34d of _0x2ee0ac)_0x424318['markInlineFormat'](_0x33f34d,{'commandName':_0x520021,'commandParams':[{'forceValue':_0x303c2a}]});}});}),_0x424318['descriptionFactory']['registerDescriptionCallback'](_0x22ca31=>{if('formatBlock'!=_0x22ca31['type']&&'formatInline'!=_0x22ca31['type'])return;const {data:_0x499822}=_0x22ca31;return _0x499822&&_0x499822['commandName']==_0x520021?_0x499822['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x3c2bd0,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x3c2bd0,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x497417{['afterInit'](){const _0x535c91=this['editor'];if(!_0x535c91['plugins']['has']('Style')||!_0x535c91['plugins']['has']('DataSchema'))return;const _0x48b89d=_0x535c91['plugins']['get']('TrackChangesEditing'),_0x5e8ee5=_0x535c91['locale'],_0x393866=_0x535c91['config']['get']('style')||{},_0x25ab02=_0x535c91['plugins']['get']('GeneralHtmlSupport'),_0x492e4a=_0x535c91['plugins']['get']('StyleUtils')['normalizeConfig'](_0x535c91['plugins']['get']('DataSchema'),_0x393866['definitions']);_0x48b89d['enableDefaultAttributesIntegration']('style');const _0x27012a=new Set();for(const _0x27b557 of _0x492e4a['block']){const _0x59bf34=_0x25ab02['getGhsAttributeNameForElement'](_0x27b557['element']);_0x27012a['add'](_0x59bf34);}const _0x564812=new Set();for(const _0x86d43e of _0x492e4a['inline']){const _0xf914b6=_0x25ab02['getGhsAttributeNameForElement'](_0x86d43e['element']);_0x564812['add'](_0xf914b6);for(const _0x188521 of _0x86d43e['ghsAttributes'])_0x564812['add'](_0x188521);}for(const _0x1f7557 of _0x27012a)_0x48b89d['registerBlockAttribute'](_0x1f7557),_0x48b89d['descriptionFactory']['registerAttributeLabel'](_0x1f7557,c(_0x5e8ee5,'FORMAT_STYLE'));for(const _0x2425db of _0x564812)_0x48b89d['registerInlineAttribute'](_0x2425db),_0x48b89d['descriptionFactory']['registerAttributeLabel'](_0x2425db,c(_0x5e8ee5,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1c1b73=this['editor'],_0x5bc995=_0x1c1b73['locale'];_0x1c1b73['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5768dc=>{if('formatBlock'!=_0x5768dc['type']&&'formatInline'!=_0x5768dc['type'])return;const {data:_0x402b2c}=_0x5768dc;return _0x402b2c&&'style'===_0x402b2c['commandName']?_0x402b2c['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x5bc995,'*Set\x20format:*\x20%0',_0x402b2c['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x5bc995,'*Remove\x20format:*\x20%0',_0x402b2c['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x497417{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x295015){super(_0x295015),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x10d90e=this['editor'],_0x4b6214=_0x10d90e['model']['document']['selection'];if(!_0x10d90e['plugins']['has']('TableEditing'))return;const _0x2fa482=_0x10d90e['locale'],_0x22b2c7=_0x10d90e['plugins']['get']('TrackChangesEditing'),_0x17c520=_0x10d90e['plugins']['get']('TableUtils');_0x22b2c7['descriptionFactory']['registerElementLabel']('table',_0x47854d=>c(_0x2fa482,'ELEMENT_TABLE',_0x47854d)),this['_setupColumnsRowsFixing'](),_0x22b2c7['enableCommand']('insertTable'),_0x22b2c7['enableCommand']('selectTableRow'),_0x22b2c7['enableCommand']('selectTableColumn');for(const _0x17ecba of['insertTableRowAbove','insertTableRowBelow']){const _0x8997a7=_0x10d90e['commands']['get'](_0x17ecba);_0x22b2c7['enableCommand'](_0x17ecba,_0x397074=>{_0x10d90e['model']['change'](_0x37d1af=>{_0x397074();const _0x133378='above'===_0x8997a7['order'],_0x583f8b=_0x17c520['getSelectionAffectedTableCells'](_0x4b6214),_0x6a5293=_0x17c520['getRowIndexes'](_0x583f8b),_0x4d1829=_0x133378?_0x6a5293['first']-0x1:_0x6a5293['last']+0x1,_0x350cd2=_0x583f8b[0x0]['findAncestor']('table'),_0xd2c860=_0x17c520['createTableWalker'](_0x350cd2,{'startRow':_0x4d1829,'endRow':_0x4d1829}),_0x7215bf=Array['from'](_0xd2c860)['map'](_0x44b8fc=>_0x37d1af['createRangeOn'](_0x44b8fc['cell']));_0x22b2c7['markMultiRangeInsertion'](_0x7215bf,'tableRow');});});}for(const _0x4623a3 of['insertTableColumnLeft','insertTableColumnRight']){const _0x267455=_0x10d90e['commands']['get'](_0x4623a3);_0x22b2c7['enableCommand'](_0x4623a3,_0x13c627=>{_0x10d90e['model']['change'](_0x3e7534=>{_0x13c627();const _0x413d6e='left'===_0x267455['order'],_0x482d00=_0x17c520['getSelectionAffectedTableCells'](_0x4b6214),_0x42128b=_0x17c520['getColumnIndexes'](_0x482d00),_0x11e841=_0x413d6e?_0x42128b['first']-0x1:_0x42128b['last']+0x1,_0x5b54cc=_0x482d00[0x0]['findAncestor']('table'),_0x3fd67d=_0x17c520['createTableWalker'](_0x5b54cc,{'startRow':0x0,'column':_0x11e841,'includeAllSlots':!0x1}),_0xf392ab=Array['from'](_0x3fd67d)['map'](_0xd608d1=>_0x3e7534['createRangeOn'](_0xd608d1['cell']));_0x22b2c7['markMultiRangeInsertion'](_0xf392ab,'tableColumn');});});}for(const _0x1f2a11 of['removeTableRow','removeTableColumn']){const _0x92f051=_0x1f2a11['substr'](0xb),_0x48c6ec=_0x92f051['toLowerCase'](),_0x11f8fb=_0x48c6ec['substr'](0x0,0x3)+'span',_0x19d7de='table'+_0x92f051,_0xea9475='min'+_0x92f051,_0x4d2702='max'+_0x92f051;_0x22b2c7['enableCommand'](_0x1f2a11,()=>{_0x10d90e['model']['change'](_0x244d04=>{const _0x3f202e=_0x17c520['getSelectionAffectedTableCells'](_0x4b6214),_0x3ab090=_0x3f202e[0x0]['findAncestor']('table');let _0x1565f1;if('removeTableRow'==_0x1f2a11){const _0x1bd924=_0x17c520['getRowIndexes'](_0x3f202e);_0x1565f1={'startRow':_0x1bd924['first'],'endRow':_0x1bd924['last'],'includeAllSlots':!0x0};}else{const _0x36ea14=_0x17c520['getColumnIndexes'](_0x3f202e);_0x1565f1={'startColumn':_0x36ea14['first'],'endColumn':_0x36ea14['last'],'includeAllSlots':!0x0};}const _0x378ec8=_0x17c520['createTableWalker'](_0x3ab090,_0x1565f1),_0x2bac34=Array['from'](_0x378ec8)['map'](({cell:_0x26a643})=>_0x26a643),_0x5c0d52=Ne(_0x2bac34['filter'](_0x181113=>_0x181113['hasAttribute'](_0x11f8fb))),_0x5c71d8=Ne(_0x2bac34['filter'](_0x5518c3=>!_0x5518c3['hasAttribute'](_0x11f8fb)))['map'](_0x2d2e9b=>_0x244d04['createRangeOn'](_0x2d2e9b)),_0xe9f557=_0x22b2c7['markMultiRangeDeletion'](_0x5c71d8,_0x19d7de);if(_0xe9f557&&('tableRow'==_0xe9f557['subType']||'tableColumn'==_0xe9f557['subType'])){const _0xcead87=this['_getSuggestionCoords'](_0xe9f557);for(const _0x4fcfb8 of _0x5c0d52){const _0x557547=_0x244d04['createRangeOn'](_0x4fcfb8),_0x21292b=_0x17c520['getCellLocation'](_0x4fcfb8),_0x3e10bc=_0x4fcfb8['getAttribute'](_0x11f8fb)-0x1,_0x58501c=_0xcead87[_0xea9475],_0x20d28b=_0xcead87[_0x4d2702];_0x58501c<=_0x21292b[_0x48c6ec]&&_0x21292b[_0x48c6ec]+_0x3e10bc<=_0x20d28b&&_0xe9f557['addRange'](_0x557547);}}});});}function _0x1ace20(_0x37fa2a){const _0x2831ac=Array['from'](_0x4b6214['getRanges']())['map'](_0x4a07c5=>_0x4a3ae4['fromRange'](_0x4a07c5));_0x10d90e['model']['change'](_0x140090=>{const _0x116f37=_0x140090['batch'];_0x37fa2a=_0x37fa2a['filter'](_0x1a556c=>'$graveyard'!=_0x1a556c['root']['rootName']),_0x140090['setSelection'](_0x37fa2a),_0x10d90e['commands']['get']('removeTableRow')['refresh'](),_0x10d90e['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x10d90e['model']['enqueueChange'](()=>{_0x10d90e['model']['enqueueChange'](_0x116f37,_0x551208=>{const _0x696c0b=_0x2831ac['filter'](_0x1ff20f=>'$graveyard'!=_0x1ff20f['root']['rootName']);_0x696c0b['length']>0x0&&_0x551208['setSelection'](_0x696c0b);for(const _0x17fe44 of _0x2831ac)_0x17fe44['detach']();});});});}function _0x45518a(_0x2ff8e5){_0x10d90e['model']['change'](_0x3c8a72=>{const _0x386f95=Array['from'](_0x4b6214['getRanges']())['map'](_0x1658d1=>_0x4a3ae4['fromRange'](_0x1658d1)),_0x2c7798=[];for(const _0x5eda56 of _0x2ff8e5)for(const _0x5b211a of _0x5eda56['getItems']({'shallow':!0x0}))_0x2c7798['push'](_0x5b211a);for(const _0x58cbf7 of _0x2c7798)'$graveyard'!=_0x58cbf7['root']['rootName']&&(_0x3c8a72['setSelection'](_0x3c8a72['createPositionAt'](_0x58cbf7,0x0)),_0x10d90e['commands']['get']('removeTableColumn')['refresh'](),_0x10d90e['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x49d834=_0x386f95['filter'](_0x4e4dcd=>'$graveyard'!=_0x4e4dcd['root']['rootName']);_0x49d834['length']>0x0&&_0x3c8a72['setSelection'](_0x49d834);for(const _0x1e9bae of _0x386f95)_0x1e9bae['detach']();});}function _0x58c618(_0x5361f0,_0x5bc632){return _0x5bc632['every'](_0x402bd0=>_0x5361f0['some'](_0x8f89e8=>_0x8f89e8['end']['isEqual'](_0x402bd0['start'])||_0x402bd0['end']['isEqual'](_0x8f89e8['start'])));}function _0x2d01c8(_0x2276af,_0x30c4b0){return!_0x2276af['some'](_0x496776=>_0x30c4b0['some'](_0x3edd22=>_0x496776['isIntersecting'](_0x3edd22)))&&_0x2276af['some'](_0x13fcd2=>_0x30c4b0['some'](_0x5351bf=>_0x13fcd2['end']['isTouching'](_0x5351bf['start'])));}_0x10d90e['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4b3045,_0x3f1c36,_0xb6f349)=>{if(!_0xb6f349['options']['showSuggestionHighlights'])return;const _0x13e86c=_0x3f1c36['item'];if(!_0x13e86c)return;const _0x2b3497=_0xb6f349['mapper']['toViewElement'](_0x13e86c);function _0x1c6b63(_0x467728){return Array['isArray'](_0x467728)?_0x467728:[_0x467728];}_0x2b3497&&'tableCell'===_0x13e86c['name']&&_0x4cb2df(_0x2b3497,_0xb6f349['writer'],(_0x3d1707,_0x37e254,_0x1d7893)=>_0x1d7893['addClass'](_0x1c6b63(_0x37e254['classes']),_0x3d1707),(_0x3680fd,_0xf465ea,_0x296559)=>_0x296559['removeClass'](_0x1c6b63(_0xf465ea['classes']),_0x3680fd));},{'priority':'highest'}),_0x22b2c7['descriptionFactory']['registerDescriptionCallback'](_0x423e2a=>{if('insertion'!=_0x423e2a['type']&&'deletion'!=_0x423e2a['type'])return;const _0x46b62a=_0x423e2a['getContainedElement']();if(null!=_0x46b62a&&_0x46b62a['is']('element','table')){if('insertion'==_0x423e2a['type']){const _0x3987e6=_0x423e2a['getItems']()['filter'](_0xae0fd8=>_0xae0fd8['is']('$textProxy'))['map'](_0x331f29=>_0x331f29['data']);if(_0x3987e6['length'])return{'type':'insertion','content':c(_0x2fa482,'*Insert:*\x20%0',c(_0x2fa482,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3987e6['join']('\x20')+'\x22'))};}if('deletion'==_0x423e2a['type']){const _0x26c813=_0x423e2a['getItems']()['filter'](_0x3cb6b6=>_0x3cb6b6['is']('$textProxy'))['map'](_0x21263d=>_0x21263d['data']);if(_0x26c813['length'])return{'type':'deletion','content':c(_0x2fa482,'*Remove:*\x20%0',c(_0x2fa482,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x26c813['join']('\x20')+'\x22'))};}}}),_0x22b2c7['descriptionFactory']['registerDescriptionCallback'](_0x5309f6=>{if('tableRow'==_0x5309f6['subType']){const _0x3d5c4a=_0x5309f6['getItems']()['filter'](_0x30571f=>_0x30571f['is']('$textProxy'))['map'](_0x42db3f=>_0x42db3f['data']),_0x304366=this['_getSuggestionCoords'](_0x5309f6),_0x542d19=_0x304366['maxRow']-_0x304366['minRow']+0x1;if('insertion'==_0x5309f6['type'])return _0x3d5c4a['length']?{'type':'insertion','content':c(_0x2fa482,'*Insert:*\x20%0',c(_0x2fa482,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x542d19,'\x22'+_0x3d5c4a['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x2fa482,'*Insert:*\x20%0',c(_0x2fa482,'ELEMENT_TABLE_ROW',_0x542d19))};if('deletion'==_0x5309f6['type'])return _0x3d5c4a['length']?{'type':'deletion','content':c(_0x2fa482,'*Remove:*\x20%0',c(_0x2fa482,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x542d19,'\x22'+_0x3d5c4a['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x2fa482,'*Remove:*\x20%0',c(_0x2fa482,'ELEMENT_TABLE_ROW',_0x542d19))};}if('tableColumn'==_0x5309f6['subType']){const _0x3f25c1=_0x5309f6['getItems']()['filter'](_0x44a9a4=>_0x44a9a4['is']('$textProxy'))['map'](_0x22a850=>_0x22a850['data']),_0x4a2613=this['_getSuggestionCoords'](_0x5309f6),_0x399caa=_0x4a2613['maxColumn']-_0x4a2613['minColumn']+0x1;if('insertion'==_0x5309f6['type'])return _0x3f25c1['length']?{'type':'insertion','content':c(_0x2fa482,'*Insert:*\x20%0',c(_0x2fa482,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x399caa,'\x22'+_0x3f25c1['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x2fa482,'*Insert:*\x20%0',c(_0x2fa482,'ELEMENT_TABLE_COLUMN',_0x399caa))};if('deletion'==_0x5309f6['type'])return _0x3f25c1['length']?{'type':'deletion','content':c(_0x2fa482,'*Remove:*\x20%0',c(_0x2fa482,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x399caa,'\x22'+_0x3f25c1['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x2fa482,'*Remove:*\x20%0',c(_0x2fa482,'ELEMENT_TABLE_COLUMN',_0x399caa))};}}),_0x22b2c7['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x1ace20),_0x22b2c7['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x1ace20),_0x22b2c7['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x45518a),_0x22b2c7['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x45518a),_0x22b2c7['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x58c618),_0x22b2c7['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x58c618),_0x22b2c7['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x2d01c8),_0x22b2c7['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x2d01c8);}['_acceptFormatSuggestionCallbackFactory'](){const _0x3d0b0a=this['editor'],_0x13d5e6=_0x3d0b0a['model']['document']['selection'];return(_0x26d150,_0x38c609)=>{_0x3d0b0a['model']['change'](_0x19d7d2=>{const {commandName:_0x5ef0ab,commandParams:_0x45310a}=_0x38c609;let _0x5461ad=_0x26d150[0x0]['end']['nodeBefore'];_0x45310a&&_0x45310a[0x0]&&!0x1===_0x45310a[0x0]['forceValue']&&(_0x5461ad=_0x26d150[0x0]['start']['nodeAfter']);const _0x576c61=_0x19d7d2['createRangeIn'](_0x5461ad);if('$graveyard'==_0x576c61['root']['rootName'])return;const _0x315b70=Array['from'](_0x13d5e6['getRanges']())['map'](_0x9cc85a=>_0x4a3ae4['fromRange'](_0x9cc85a));_0x19d7d2['setSelection'](_0x576c61),_0x3d0b0a['commands']['get'](_0x5ef0ab)['refresh'](),_0x45310a['push']({'forceDefaultExecution':!0x0}),_0x3d0b0a['execute'](_0x5ef0ab,..._0x45310a);const _0x497be9=_0x315b70['filter'](_0x3160cd=>'$graveyard'!=_0x3160cd['root']['rootName']);_0x497be9['length']>0x0&&_0x19d7d2['setSelection'](_0x497be9);for(const _0x2a06a9 of _0x315b70)_0x2a06a9['detach']();});};}['_getCoordsForCells'](_0x3792a4){const _0x27a45a=this['editor']['plugins']['get']('TableUtils');let _0x5dc8fc=Number['MAX_SAFE_INTEGER'],_0x9f5636=Number['MIN_SAFE_INTEGER'],_0x49576f=Number['MAX_SAFE_INTEGER'],_0x23cc87=Number['MIN_SAFE_INTEGER'];for(const _0x4e6128 of _0x3792a4){if('$graveyard'==_0x4e6128['root']['rootName'])continue;const {row:_0x57b480,column:_0x500c7b}=_0x27a45a['getCellLocation'](_0x4e6128),_0x361cc9=_0x4e6128['hasAttribute']('rowspan')?_0x4e6128['getAttribute']('rowspan')-0x1:0x0,_0xa47726=_0x4e6128['hasAttribute']('colspan')?_0x4e6128['getAttribute']('colspan')-0x1:0x0;_0x5dc8fc=_0x57b480<_0x5dc8fc?_0x57b480:_0x5dc8fc,_0x9f5636=_0x57b480+_0x361cc9>_0x9f5636?_0x57b480+_0x361cc9:_0x9f5636,_0x49576f=_0x500c7b<_0x49576f?_0x500c7b:_0x49576f,_0x23cc87=_0x500c7b+_0xa47726>_0x23cc87?_0x500c7b+_0xa47726:_0x23cc87;}return{'minRow':_0x5dc8fc,'maxRow':_0x9f5636,'minColumn':_0x49576f,'maxColumn':_0x23cc87};}['_setupColumnsRowsFixing'](){const _0x199fe8=this['editor'],_0x1ecf4a=_0x199fe8['plugins']['get']('TrackChangesEditing'),_0x4bb148=_0x199fe8['plugins']['get']('TableUtils');_0x199fe8['model']['document']['on']('change:data',()=>{const _0x41850a=Array['from'](_0x199fe8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4bba8e,data:_0x134d92}of _0x41850a){const {group:_0x32a967,id:_0x3f42e7,subType:_0x3d477b}=_0x1ecf4a['_splitMarkerName'](_0x4bba8e);if('suggestion'!=_0x32a967)continue;if(null!=_0x134d92['oldRange'])continue;const _0xefbc7a=_0x1ecf4a['getSuggestion'](_0x3f42e7);this['_tablePostFixingSubtypes']['includes'](_0x3d477b)&&this['_tableSuggestions']['add'](_0xefbc7a);}},{'priority':'low'});const _0x13b45e=(_0x574a71,_0x5b0f7f)=>{let _0x3f067b=!0x1;const _0x230d80=_0x5b0f7f['createRangeOn'](_0x574a71),_0x8d71cd=_0x574a71['findAncestor']('table'),_0x5826c6=_0x4bb148['getCellLocation'](_0x574a71);for(const _0x2e9b74 of this['_tableSuggestions']){const _0x5b5087=_0x2e9b74['subType'],_0x5ba0eb=_0x5b5087['startsWith']('tablePaste'),_0x641788=_0x5b5087['substr'](_0x5ba0eb?0xa:0x5),_0x2901a3=_0x641788['toLowerCase'](),_0x431c04=_0x2901a3['substr'](0x0,0x3)+'span',_0x2b462c='min'+_0x641788,_0xfd14aa='max'+_0x641788;if(!_0x2e9b74['isInContent'])continue;if(_0x8d71cd!=_0x2e9b74['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x2e9b74['isIntersectingWithRange'](_0x230d80))continue;const _0x55877c=_0x574a71['hasAttribute'](_0x431c04)?_0x574a71['getAttribute'](_0x431c04)-0x1:0x0,_0x20372d=this['_getSuggestionCoords'](_0x2e9b74),_0x199fee=_0x20372d[_0x2b462c],_0x135e65=_0x20372d[_0xfd14aa];_0x199fee<=_0x5826c6[_0x2901a3]&&_0x5826c6[_0x2901a3]+_0x55877c<=_0x135e65&&(_0x2e9b74['addRange'](_0x230d80),_0x3f067b=!0x0);}return _0x3f067b;};_0x199fe8['model']['document']['registerPostFixer'](_0x1c2dcf=>{let _0xbfdf52=!0x1;for(const _0x4d38bd of _0x199fe8['model']['document']['differ']['getChanges']())if('insert'==_0x4d38bd['type']){if('tableRow'==_0x4d38bd['name']){for(const _0x5cbe96 of _0x4d38bd['position']['nodeAfter']['getChildren']())_0xbfdf52=_0xbfdf52||_0x13b45e(_0x5cbe96,_0x1c2dcf);}else'tableCell'==_0x4d38bd['name']&&(_0xbfdf52=_0xbfdf52||_0x13b45e(_0x4d38bd['position']['nodeAfter'],_0x1c2dcf));}return _0xbfdf52;});}['_getSuggestionCoords'](_0x221e4c){return this['_getCoordsForCells'](_0x221e4c['getRanges']()['map'](_0x119ae8=>_0x119ae8['start']['nodeAfter']));}}function Ne(_0x35f607){return Array['from'](new Set(_0x35f607)['values']());}class Nt extends _0x497417{static get['requires'](){return[Ct];}['afterInit'](){const _0x255772=this['editor'],_0x19d8f4=_0x255772['model']['document']['selection'],_0x378e07=_0x255772['locale'];if(!_0x255772['plugins']['has']('TableEditing'))return;const _0x5f2279=_0x255772['plugins']['get']('TrackChangesEditing'),_0x21ca12=_0x255772['plugins']['get']('TableUtils'),_0xe0e6a0=_0x255772['plugins']['get'](Ct);_0xe0e6a0['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x5f2279['enableCommand']('mergeTableCells',()=>{const _0x1512d5=_0x21ca12['getSelectionAffectedTableCells'](_0x255772['model']['document']['selection']);_0x255772['model']['change'](()=>{_0x5f2279['markMultiRangeBlockFormat'](_0x1512d5,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x255772['commands']['get']('mergeTableCells')['on']('execute',(_0x1f1435,_0x420db1)=>{_0x255772['commands']['get']('trackChanges')['value']&&(_0x420db1['length']>0x0&&_0x420db1[_0x420db1['length']-0x1]&&_0x420db1[_0x420db1['length']-0x1]['forceDefaultExecution']||_0x5f2279['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x1f1435['stop']());},{'priority':'highest'});for(const _0x24a8d3 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x358ded=_0x255772['commands']['get'](_0x24a8d3);_0x5f2279['enableCommand'](_0x24a8d3,()=>{const _0x3e400b=_0x255772['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x193d27=>_0x193d27['is']('element','tableCell')),_0x3ce0bb=_0x358ded['value'];_0x255772['model']['change'](()=>{_0x5f2279['markMultiRangeBlockFormat']([_0x3e400b,_0x3ce0bb],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x50621c of['splitTableCellVertically','splitTableCellHorizontally']){const _0x141481=_0x255772['commands']['get'](_0x50621c);_0x5f2279['enableCommand'](_0x50621c,()=>{const _0x59e500=_0x21ca12['getSelectionAffectedTableCells'](_0x255772['model']['document']['selection'])[0x0],_0x2cc027=_0x59e500['findAncestor']('table'),{column:_0x1c0929,row:_0xdaf2a4}=_0x21ca12['getCellLocation'](_0x59e500);let _0x20de0e=[];if('horizontally'==_0x141481['direction']){const _0x5ef3f2=_0x21ca12['createTableWalker'](_0x2cc027,{'startRow':_0xdaf2a4,'endRow':_0xdaf2a4,'includeAllSlots':!0x0});_0x20de0e=Array['from'](_0x5ef3f2)['map'](_0x4e3460=>_0x4e3460['cell']);}else{const _0x43095f=_0x21ca12['createTableWalker'](_0x2cc027,{'column':_0x1c0929,'includeAllSlots':!0x0});_0x20de0e=Array['from'](_0x43095f)['map'](_0x5e3ed6=>_0x5e3ed6['cell']);}_0x255772['model']['change'](_0x1e525c=>{_0x5f2279['markBlockFormat'](_0x1e525c['createRangeOn'](_0x59e500),{'commandName':_0x50621c,'commandParams':[]},_0x20de0e,_0x50621c);});});}_0x5f2279['descriptionFactory']['registerDescriptionCallback'](_0x145d19=>{if('formatBlock'!=_0x145d19['type']&&'formatInline'!=_0x145d19['type'])return;const {data:_0x47b6b3}=_0x145d19;return _0x47b6b3&&'mergeTableCells'==_0x47b6b3['commandName']?{'type':'format','content':c(_0x378e07,'*Merge\x20cells*')}:void 0x0;}),_0x5f2279['descriptionFactory']['registerDescriptionCallback'](_0x5f501e=>{if('formatBlock'!=_0x5f501e['type']&&'formatInline'!=_0x5f501e['type'])return;const {data:_0x4e0f01}=_0x5f501e;return _0x4e0f01?'splitTableCellVertically'==_0x4e0f01['commandName']?{'type':'format','content':c(_0x378e07,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x4e0f01['commandName']?{'type':'format','content':c(_0x378e07,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x279617=_0xe0e6a0['_acceptFormatSuggestionCallbackFactory']();for(const _0x5f375d of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x5f2279['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5f375d,'accept',_0x279617);for(const _0x4219d0 of['splitTableCellVertically','splitTableCellHorizontally'])_0x5f2279['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4219d0,'accept',_0x279617);_0x5f2279['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x317630=>{_0x255772['model']['change'](_0xdf2fda=>{const _0x20acf9=Array['from'](_0x19d8f4['getRanges']())['map'](_0x3e00c7=>_0x4a3ae4['fromRange'](_0x3e00c7));_0xdf2fda['setSelection'](_0x317630),_0x255772['commands']['get']('mergeTableCells')['refresh'](),_0x255772['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x55b3a4=_0x20acf9['filter'](_0x245632=>'$graveyard'!=_0x245632['root']['rootName']);_0x55b3a4['length']>0x0&&_0xdf2fda['setSelection'](_0x55b3a4);for(const _0x4470c5 of _0x20acf9)_0x4470c5['detach']();});});for(const _0x415365 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0xd4562e=_0x255772['commands']['get'](_0x415365);_0xd4562e['on']('set:isEnabled',(_0x409e3f,_0x3e21db,_0x212e93)=>{if(_0x212e93){const _0x48fe1e=_0x255772['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1a2f18=>_0x1a2f18['is']('element','tableCell'));this['_areMergableCells'](_0xd4562e['value'],_0x48fe1e)||(_0x409e3f['return']=!0x1,_0x409e3f['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x25f166=this['editor']['commands']['get']('mergeTableCells'),_0x452be7=this['editor']['plugins']['get']('TableUtils');if(!_0x25f166['isEnabled'])return!0x1;const _0x53fc0f=_0x452be7['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x52b0a0 of _0x53fc0f)for(const _0x493bcd of _0x53fc0f)if(_0x52b0a0!=_0x493bcd&&!this['_areMergableCells'](_0x52b0a0,_0x493bcd))return!0x1;return!0x0;}['_areMergableCells'](_0x168178,_0x4a814d){const _0xdd3c40=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5f0192=this['editor']['model']['createRangeOn'](_0x168178),_0x4da47c=this['editor']['model']['createRangeOn'](_0x4a814d),_0xa5fb88=new Set(),_0x156f92=new Set();for(const _0x5b885d of _0xdd3c40['getSuggestions']())if(('insertion'==_0x5b885d['type']||'deletion'==_0x5b885d['type']||'mergeTableCells'==_0x5b885d['subType'])&&_0x5b885d['isInContent']){for(const _0x4e6b99 of _0x5b885d['getRanges']())_0x4e6b99['containsRange'](_0x5f0192,!0x0)&&_0xa5fb88['add'](_0x5b885d['type']+':'+_0x5b885d['author']['id']),_0x4e6b99['containsRange'](_0x4da47c,!0x0)&&_0x156f92['add'](_0x5b885d['type']+':'+_0x5b885d['author']['id']);}if(_0xa5fb88['size']!=_0x156f92['size'])return!0x1;for(const _0x40c5c1 of _0xa5fb88)if(!_0x156f92['has'](_0x40c5c1))return!0x1;return!0x0;}}class Dt extends _0x497417{static get['requires'](){return[Ct];}['afterInit'](){const _0x2a2c47=this['editor'];if(!_0x2a2c47['plugins']['has']('TableEditing'))return;const _0x16de78=_0x2a2c47['locale'],_0x11bdc2=_0x2a2c47['plugins']['get']('TrackChangesEditing');_0x11bdc2['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x11bdc2['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x11bdc2['registerBlockAttribute']('headingRows'),_0x11bdc2['registerBlockAttribute']('headingColumns'),_0x11bdc2['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x16de78,'FORMAT_HEADER_ROW')),_0x11bdc2['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x16de78,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3ccbcb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x59cea8=this['editor']['plugins']['get']('TableUtils'),_0x4c1ff1=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0xc724cf({showActiveMarker:_0x2f89ad=!0x0,setDataAttribute:_0x49aeae=!0x0}={}){return(_0x47bdea,_0x1c5310,_0x3dd361)=>{const {type:_0x1a1395,id:_0x20e345}=_0x3ccbcb['_splitMarkerName'](_0x1c5310['markerName']),_0xd231d5=_0x3ccbcb['getSuggestion'](_0x20e345),_0x3c8e6b=_0xd231d5['data'];if('formatBlock'!=_0xd231d5['type']||!_0x3c8e6b||'setTableColumnHeader'!=_0x3c8e6b['commandName'])return;if(_0x1c5310['item'])return void _0x47bdea['stop']();if(!_0x3dd361['consumable']['consume'](_0x1c5310['markerRange'],_0x47bdea['name']))return;const _0x46f9f4=_0x1c5310['markerRange']['start']['nodeAfter'],_0x3b2cb6=_0x1c5310['markerRange']['end']['nodeBefore'],_0x2740bc=_0x46f9f4['parent']['parent'],{column:_0x31d273}=_0x59cea8['getCellLocation'](_0x46f9f4),{column:_0x3797b5}=_0x59cea8['getCellLocation'](_0x3b2cb6);for(let _0x451653=_0x31d273;_0x451653<=_0x3797b5;_0x451653++){const _0x27f919=_0x59cea8['createTableWalker'](_0x2740bc,{'column':_0x451653,'includeAllSlots':!0x1});for(const _0x376c2f of _0x27f919){const _0x2e3ac3=_0x376c2f['cell'],_0x4aec6e=_0x3dd361['mapper']['toViewElement'](_0x2e3ac3);_0x3dd361['writer']['addClass']('ck-suggestion-marker-'+_0x1a1395,_0x4aec6e),_0x49aeae&&_0x3dd361['writer']['setAttribute']('data-suggestion',_0x20e345,_0x4aec6e),_0x3dd361['mapper']['bindElementToMarker'](_0x4aec6e,_0x1c5310['markerName']),_0x2f89ad&&(_0x3ccbcb['activeMarkers']['includes'](_0x1c5310['markerName'])?_0x3dd361['writer']['addClass']('ck-suggestion-marker--active',_0x4aec6e):_0x3dd361['writer']['removeClass']('ck-suggestion-marker--active',_0x4aec6e));}}};}_0x3ccbcb['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4c1ff1),_0x3ccbcb['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4c1ff1),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0xc724cf(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3a1d,_0x20863f,_0x3ae79f)=>{_0x3ae79f['options']['showSuggestionHighlights']&&_0xc724cf({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x3a1d,_0x20863f,_0x3ae79f);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x1ddc68,_0xf5e8a1,_0x2b79df)=>{const {type:_0x46be74,id:_0x23828f}=_0x3ccbcb['_splitMarkerName'](_0xf5e8a1['markerName']),_0x8119f2=_0x3ccbcb['getSuggestion'](_0x23828f),_0x49ee1e=_0x8119f2['data'];if('formatBlock'!=_0x8119f2['type']||!_0x49ee1e||'setTableColumnHeader'!=_0x49ee1e['commandName'])return;const _0x2bf86b=_0x2b79df['mapper']['markerNameToElements'](_0xf5e8a1['markerName']);if(_0x2bf86b){for(const _0x46512b of _0x2bf86b)_0x2b79df['writer']['removeClass']('ck-suggestion-marker-'+_0x46be74,_0x46512b),_0x2b79df['writer']['removeClass']('ck-suggestion-marker--active',_0x46512b),_0x2b79df['writer']['removeAttribute']('data-suggestion',_0x46512b),_0x2b79df['mapper']['unbindElementFromMarkerName'](_0x46512b,_0xf5e8a1['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3776d9=this['editor'],_0x4c2447=_0x3776d9['locale'];function _0x590ee6(_0x2c1920){return{'type':'format','content':c(_0x4c2447,'*Format:*\x20%0',_0x2c1920)};}_0x3776d9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a4078=>{if('formatBlock'!=_0x2a4078['type'])return;const {data:_0x2f6bcb}=_0x2a4078;if(_0x2f6bcb){if('setTableRowHeader'==_0x2f6bcb['commandName']){const _0x4e7da9=_0x2f6bcb['commandParams'][0x0]['forceValue'];return _0x590ee6(c(_0x4c2447,_0x4e7da9?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x2f6bcb['commandName']){const _0x38ec24=_0x2f6bcb['commandParams'][0x0]['forceValue'];return _0x590ee6(c(_0x4c2447,_0x38ec24?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x1c9dbd=>[_0x1c9dbd,null]));class Mt extends _0x497417{static get['requires'](){return[Ct];}['afterInit'](){const _0x41bf85=this['editor'];if(!_0x41bf85['plugins']['has']('TableClipboard'))return;const _0x44ca03=_0x41bf85['plugins']['get']('TrackChangesEditing'),_0x3b715b=_0x41bf85['plugins']['get']('TableUtils'),_0x41d668=_0x41bf85['plugins']['get'](Ct),_0x186375=_0x41bf85['plugins']['get']('TableClipboard');_0x41d668['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x41bf85['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x41bf85['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x5805e7=null;_0x41bf85['model']['on']('insertContent',(_0x4b61b6,_0x20282e)=>{const [_0x5942fe,_0x5099a3]=_0x20282e,_0x41eb45=_0x20282e[_0x20282e['length']-0x1];_0x41eb45&&_0x41eb45['forceDefaultExecution']||_0x44ca03['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x1c57c2,_0x58aeed,_0x2a9e9b,_0x3b81eb,_0x1f3d1d){if(_0x58aeed&&!_0x58aeed['is']('documentSelection'))return!0x1;const _0x5a5191=_0x1f3d1d['getTableIfOnlyTableInContent'](_0x1c57c2,_0x2a9e9b);if(!_0x5a5191||!Ue(_0x5a5191,void 0x0,_0x3b81eb))return!0x1;const _0x2c3c12=_0x3b81eb['getSelectionAffectedTableCells'](_0x2a9e9b['document']['selection']);if(!_0x2c3c12['length'])return!0x1;const _0x4024ac=_0x2c3c12[0x0]['findAncestor']('table'),_0x459955=_0x3b81eb['getRowIndexes'](_0x2c3c12),_0x57bb30=_0x3b81eb['getColumnIndexes'](_0x2c3c12),_0x3657f8={'startRow':_0x459955['first'],'endRow':_0x459955['last'],'startColumn':_0x57bb30['first'],'endColumn':_0x57bb30['last']};return 0x1==_0x2c3c12['length']&&(_0x3657f8['endRow']+=_0x3b81eb['getRows'](_0x5a5191)-0x1,_0x3657f8['endColumn']+=_0x3b81eb['getColumns'](_0x5a5191)-0x1),Ue(_0x4024ac,_0x3657f8,_0x3b81eb);}(_0x5942fe,_0x5099a3,_0x41bf85['model'],_0x3b715b,_0x186375)&&(_0x4b61b6['stop'](),_0x5805e7={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x41bf85['model']['change'](()=>{_0x41bf85['model']['insertContent'](_0x20282e[0x0],_0x20282e[0x1],_0x20282e[0x2],{'forceDefaultExecution':!0x0});const _0x5c9bee=_0x437d48(),{rowInsertionRanges:_0x223b25,columnInsertionRanges:_0x33f89a,insertionRanges:_0x1dcf25,deletionRanges:_0x2690db,cells:_0x534200}=_0x5805e7;_0x223b25['length']&&_0x44ca03['markMultiRangeInsertion'](_0x223b25,'tablePasteRow',{'tablePasteChainId':_0x5c9bee}),_0x33f89a['length']&&_0x44ca03['markMultiRangeInsertion'](_0x33f89a,'tablePasteColumn',{'tablePasteChainId':_0x5c9bee}),_0x1dcf25['length']&&(_0x44ca03['markMultiRangeInsertion'](_0x1dcf25,'tablePaste',{'tablePasteChainId':_0x5c9bee,'skipNestingCheck':!0x0}),_0x1dcf25['forEach'](_0x59335c=>_0x59335c['detach']?.())),_0x2690db['length']&&(_0x44ca03['markMultiRangeDeletion'](_0x2690db,'tablePaste',{'tablePasteChainId':_0x5c9bee,'skipNestingCheck':!0x0}),_0x2690db['forEach'](_0x5a6e63=>_0x5a6e63['detach']?.()));const _0x262b90=_0x44ca03['markMultiRangeBlockFormat'](_0x534200['map'](({element:_0x4000ec})=>_0x4000ec),{'formatGroupId':_0x437d48()},[],'tablePasteCell',{'tablePasteChainId':_0x5c9bee});if(_0x262b90){const _0x2a8a2d=_0x262b90['getMarkers'](),_0x8d023a=[];for(const {element:_0x2b07fc,attributes:_0x117892}of _0x534200){if(!_0x117892)continue;const _0x1cd829=_0x41bf85['model']['createRangeOn'](_0x2b07fc),_0x54e7aa=_0x2a8a2d['find'](_0x3d2cdd=>_0x3d2cdd['getRange']()['isEqual'](_0x1cd829));_0x54e7aa&&_0x8d023a['push']([_0x54e7aa['name'],_0x117892]);}_0x8d023a['length']&&_0x262b90['setAttribute']('markerAttributes',Object['fromEntries'](_0x8d023a));}_0x5805e7=null;}));},{'priority':_0x2c349d['high']+0xa}),_0x41bf85['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x22d65a,_0x21c9a9)=>{const [_0x157e73,_0x16097f,,_0x422f74]=_0x21c9a9;if(!_0x5805e7)return;_0x22d65a['stop']();const _0x59e827=_0x157e73['cell'],_0x5260eb=_0x16097f,_0x194f6e=Oe(_0x59e827),_0x26474d=Oe(_0x5260eb);_0x22d65a['return']=_0x59e827;let _0x569ea4=null,_0x11187b=null;if(_0x26474d||_0x194f6e){if(_0x194f6e&&!_0x26474d){_0x422f74['remove'](_0x59e827['getChild'](0x0));for(const _0x252c23 of Array['from'](_0x5260eb['getChildren']()))_0x422f74['insert'](_0x252c23,_0x59e827,'end');const _0x5b02ac=_0x5805e7['rowInsertionIndexes']['includes'](_0x157e73['row']),_0x1aaedd=_0x5805e7['columnInsertionIndexes']['includes'](_0x157e73['column']);_0x5b02ac||_0x1aaedd||(_0x569ea4=_0x4a3ae4['fromRange'](_0x422f74['createRangeIn'](_0x59e827)));}else _0x26474d&&!_0x194f6e&&(_0x11187b=_0x422f74['createRangeIn'](_0x59e827));}else{const _0x3875b1=_0x422f74['createElement']('tableCellSuggestion'),_0x49d215=_0x422f74['createElement']('tableCellSuggestion');_0x422f74['wrap'](_0x422f74['createRangeIn'](_0x59e827),_0x49d215),_0x422f74['insert'](_0x3875b1,_0x59e827,0x0);for(const _0xf50b56 of Array['from'](_0x5260eb['getChildren']()))_0x422f74['insert'](_0xf50b56,_0x3875b1,'end');_0x569ea4=_0x4a3ae4['fromRange'](_0x422f74['createRangeOn'](_0x3875b1)),_0x11187b=_0x4a3ae4['fromRange'](_0x422f74['createRangeOn'](_0x49d215));}const _0x5f19f0=Array['from'](_0x5260eb['getAttributes']())['filter'](([_0x2223e2])=>Be['includes'](_0x2223e2));_0x5805e7['cells']['push']({'element':_0x59e827,'attributes':_0x5f19f0['length']?Object['fromEntries'](_0x5f19f0):null}),_0x569ea4&&_0x5805e7['insertionRanges']['push'](_0x569ea4),_0x11187b&&_0x5805e7['deletionRanges']['push'](_0x11187b);},{'priority':'high'}),_0x3b715b['on']('insertColumns',(_0x21cc9a,_0x2fe555)=>{const [_0x3663ef,_0x101193={}]=_0x2fe555;if(!_0x5805e7)return;const _0x3778f5=_0x101193['at']||0x0,_0x5da36b=_0x101193['columns']||0x1;_0x5805e7['columnInsertionIndexes']=new Array(_0x5da36b)['fill'](_0x3778f5)['map']((_0x471883,_0x407536)=>_0x471883+_0x407536);for(const {cell:_0x5c109e}of _0x3b715b['createTableWalker'](_0x3663ef,{'startColumn':_0x3778f5,'endColumn':_0x3778f5+_0x5da36b-0x1}))_0x5805e7['columnInsertionRanges']['push'](_0x41bf85['model']['createRangeOn'](_0x5c109e));},{'priority':'low'}),_0x3b715b['on']('insertRows',(_0x50c1ab,_0xf2edbd)=>{const [_0x299e4e,_0x282611={}]=_0xf2edbd;if(!_0x5805e7)return;const _0x2a169d=_0x282611['at']||0x0,_0x209d3f=_0x282611['rows']||0x1;_0x5805e7['rowInsertionIndexes']=new Array(_0x209d3f)['fill'](_0x2a169d)['map']((_0x1ca879,_0x3c75a5)=>_0x1ca879+_0x3c75a5);for(const {cell:_0x4553aa}of _0x3b715b['createTableWalker'](_0x299e4e,{'startRow':_0x2a169d,'endRow':_0x2a169d+_0x209d3f-0x1}))_0x5805e7['rowInsertionRanges']['push'](_0x41bf85['model']['createRangeOn'](_0x4553aa));},{'priority':'low'}),_0x44ca03['descriptionFactory']['registerDescriptionCallback'](_0x19b060=>{if(_0x19b060['subType']&&_0x19b060['subType']['startsWith']('tablePaste'))return _0x19b060['previous']?{}:{'type':'insertion','content':c(_0x41bf85['locale'],'*Replace\x20table\x20cells*')};});const _0x2fcc9d=()=>!0x1;for(const _0x47b933 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x44ca03['_suggestionFactory']['registerCustomCallback']('insertion',_0x47b933,'join',_0x2fcc9d),_0x44ca03['_suggestionFactory']['registerCustomCallback']('deletion',_0x47b933,'join',_0x2fcc9d),_0x44ca03['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x47b933,'join',_0x2fcc9d);_0x44ca03['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x2fcc9d),_0x44ca03['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x17237b,_0x1b2fb6,_0x2518e9)=>{const _0x4ec44d=_0x17237b['map'](_0x4a0f93=>_0x4a0f93['getContainedElement']())['filter'](_0x3e956e=>_0x3e956e),_0x522421=new Map(_0x4ec44d['map'](_0x1eed45=>[_0x1eed45,null]));if(_0x5805e7){for(const {element:_0x2b4863,attributes:_0x2e7f00}of _0x5805e7['cells'])_0x2e7f00&&_0x522421['set'](_0x2b4863,_0x2e7f00);}else{if(_0x2518e9&&_0x2518e9['markerAttributes'])for(const [_0x13db8f,_0x50651c]of Object['entries'](_0x2518e9['markerAttributes'])){const _0x47f55b=_0x41bf85['model']['markers']['get'](_0x13db8f),_0x332d54=_0x47f55b?_0x47f55b['getRange']()['getContainedElement']():null;_0x332d54&&_0x522421['set'](_0x332d54,_0x50651c);}}_0x41bf85['model']['change'](_0x62ee1c=>{for(const [_0x471828,_0x6249ab]of _0x522421)_0x62ee1c['setAttributes']({...xe,..._0x6249ab},_0x471828);});});const _0xb95a29=(_0x54aaf2,_0x2434f5)=>{_0x44ca03['_suggestionFactory']['registerCustomCallback'](_0x54aaf2,'tablePaste',_0x2434f5,(_0x283535,_0x36eb41,_0xc0b8bf)=>{_0x41bf85['model']['change'](_0x3fb44b=>{const _0xbe6698=[];for(const _0x11a6dc of _0x283535){const _0x816f80=_0x11a6dc['start']['nodeAfter'];_0x816f80['is']('element','tableCellSuggestion')&&_0xbe6698['push'](_0x816f80);}_0x44ca03['_suggestionFactory']['getSuggestionCallback'](_0x54aaf2,null,_0x2434f5)(_0x283535,_0x36eb41,_0xc0b8bf);for(const _0xafee55 of _0xbe6698)'$graveyard'!=_0xafee55['root']['rootName']&&_0x3fb44b['unwrap'](_0xafee55);});});};_0xb95a29('insertion','accept'),_0xb95a29('insertion','discard'),_0xb95a29('deletion','accept'),_0xb95a29('deletion','discard'),_0x44ca03['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x27a06b=>{const _0x235eeb=_0x27a06b['map'](_0x190e8b=>_0x190e8b['getContainedElement']()),_0x2af87f=_0x235eeb[0x0]['findAncestor']('table'),{minRow:_0x5ab5c8,maxRow:_0x2c8a9d}=_0x41d668['_getCoordsForCells'](_0x235eeb);_0x3b715b['removeRows'](_0x2af87f,{'at':_0x5ab5c8,'rows':_0x2c8a9d-_0x5ab5c8+0x1});}),_0x44ca03['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x54f17e=>{const _0x119ccb=_0x54f17e['map'](_0x3a5785=>_0x3a5785['getContainedElement']()),_0x3ae8b7=_0x119ccb[0x0]['findAncestor']('table'),{minColumn:_0x37c177,maxColumn:_0x1a9403}=_0x41d668['_getCoordsForCells'](_0x119ccb);_0x3b715b['removeColumns'](_0x3ae8b7,{'at':_0x37c177,'columns':_0x1a9403-_0x37c177+0x1});});const _0x54ec8b=(_0x4d4c37,_0x15e9ea)=>{if(!_0x15e9ea['subType']||!_0x15e9ea['subType']['startsWith']('tablePaste'))return;const _0x275826=_0x15e9ea['attributes']['tablePasteChainId'],_0x1e47ee=_0x44ca03['getSuggestions']()['filter'](_0x3d4a90=>_0x3d4a90['isInContent']&&_0x3d4a90['attributes']&&_0x3d4a90['attributes']['tablePasteChainId']==_0x275826);_0x1e47ee['length']&&_0x15e9ea['getAllAdjacentSuggestions']()['length']!=_0x1e47ee['length']&&_0x1e47ee['reduce']((_0x50bfa7,_0x37aff0)=>(_0x50bfa7['next']=_0x37aff0,_0x37aff0['previous']=_0x50bfa7,_0x37aff0));};function _0x32b28a(_0x385b02,_0x4fa3e9=!0x0){const {id:_0x158b3e,authorId:_0x3369d4}=_0x44ca03['_splitMarkerName'](_0x385b02['markerName']),_0x6dbbbb=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x5e3ab8=_0x44ca03['activeMarkers']['includes'](_0x385b02['markerName']);return _0x5e3ab8&&_0x6dbbbb['push']('ck-suggestion-marker--active'),{'classes':_0x6dbbbb,'attributes':{'data-suggestion':_0x158b3e,'data-author-id':_0x3369d4},'priority':_0x5e3ab8&&_0x4fa3e9?0xbc2:0xbb8};}_0x44ca03['on']('suggestionLoaded',_0x54ec8b,{'priority':'high'}),_0x44ca03['on']('suggestionUnloaded',_0x54ec8b,{'priority':'high'}),_0x41bf85['model']['document']['registerPostFixer'](()=>{let _0x1fe455=!0x1;const _0x144024=Array['from'](_0x41bf85['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2ea27b,data:_0x3c2baa}of _0x144024){const {group:_0x8686dc,type:_0x491d72,id:_0x115d51}=_0x44ca03['_splitMarkerName'](_0x2ea27b);if('suggestion'!=_0x8686dc||'deletion'!=_0x491d72||_0x3c2baa['oldRange'])continue;if(!_0x44ca03['hasSuggestion'](_0x115d51))continue;const _0x10de32=_0x44ca03['getSuggestion'](_0x115d51)['getRanges'](),_0x288345=_0x41bf85['plugins']['get']('Users')['me'];for(const _0x449618 of _0x44ca03['getSuggestions']()){if(!_0x449618['isInContent']||_0x449618['author']!=_0x288345)continue;if('formatBlock'!=_0x449618['type']||'tablePasteCell'!=_0x449618['subType'])continue;if(_0x449618['getRanges']()['every'](_0x3c209d=>_0x10de32['some'](_0x295c6c=>_0x295c6c['containsRange'](_0x3c209d,!0x0)))){for(const _0x20dd48 of _0x449618['getAllAdjacentSuggestions']())_0x20dd48['isInContent']&&(_0x20dd48['discard'](),_0x1fe455=!0x0);}}}return _0x1fe455;}),_0x41bf85['model']['document']['registerPostFixer'](_0x2477fa=>{const _0x5f3dc2=_0x41bf85['commands']['get']('redo');if(!_0x5f3dc2||!_0x5f3dc2['_createdBatches']['has'](_0x2477fa['batch']))return!0x1;let _0x1ebc12=!0x1;const _0x486106=_0x41bf85['plugins']['get']('Users')['me'],_0x30130e=_0x41bf85['model']['document']['differ']['getChanges'](),_0x28e4c1=Array['from'](_0x41bf85['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0xdb23c4,data:_0x6163fb})=>{const {group:_0x396da1,subType:_0x1f0612,authorId:_0x164467}=_0x44ca03['_splitMarkerName'](_0xdb23c4);return'suggestion'==_0x396da1&&'tablePaste'==_0x1f0612&&_0x164467==_0x486106['id']&&!_0x6163fb['oldRange'];});for(const _0x559edb of _0x30130e){if('insert'!=_0x559edb['type']||'tableCellSuggestion'!=_0x559edb['name']||0x1!=_0x559edb['length'])continue;const _0x58af86=_0x2477fa['createRange'](_0x559edb['position'],_0x559edb['position']['getShiftedBy'](0x1));if(!_0x28e4c1['find'](({data:_0x513e0a})=>_0x513e0a['newRange']['isEqual'](_0x58af86))){for(const {name:_0x2c77aa,data:_0xf306da}of _0x28e4c1)if(_0x58af86['containsRange'](_0xf306da['newRange'])){_0x2477fa['updateMarker'](_0x2c77aa,{'range':_0x58af86}),_0x1ebc12=!0x0;break;}}}return _0x1ebc12;}),_0x41bf85['model']['document']['registerPostFixer'](_0x4a090c=>{let _0x36d2f2=!0x1;const _0xd822dd=_0x41bf85['plugins']['get']('Users')['me'],_0x48d845=_0x44ca03['getSuggestions']()['filter'](_0x396dc7=>_0x396dc7['isInContent']&&_0x396dc7['author']==_0xd822dd),_0x265ed8=new Set(),_0x2ba6b2=new Set();for(const _0x35e10a of _0x48d845)if('tablePaste'==_0x35e10a['subType'])for(const _0x5a9e2d of _0x35e10a['getMarkers']()){const _0x4cb35f=_0x5a9e2d['getRange']()['getContainedElement']();if(_0x4cb35f){if(_0x4cb35f['is']('element','tableCellSuggestion')&&Oe(_0x4cb35f)){_0x35e10a['removeMarker'](_0x5a9e2d['name']),_0x265ed8['add'](_0x4cb35f),_0x36d2f2=!0x0;const _0x279b8f=_0x4cb35f['nextSibling'],_0x541daa=_0x4cb35f['previousSibling'],_0x16422b=_0x279b8f&&_0x279b8f['is']('element','tableCellSuggestion'),_0x347c66=_0x541daa&&_0x541daa['is']('element','tableCellSuggestion');_0x16422b&&!_0x265ed8['has'](_0x279b8f)&&_0x2ba6b2['add'](_0x279b8f),_0x347c66&&!_0x265ed8['has'](_0x541daa)&&_0x2ba6b2['add'](_0x541daa);}else _0x4cb35f['is']('element','paragraph')&&_0x4cb35f['isEmpty']&&(_0x35e10a['removeMarker'](_0x5a9e2d['name']),_0x36d2f2=!0x0);}}else{if('tablePasteCell'==_0x35e10a['subType']){if(!_0x35e10a['attributes']||!_0x35e10a['attributes']['tablePasteChainId'])continue;const _0xd53fe9=_0x35e10a['attributes']['markerAttributes'];if(_0xd53fe9&&Object['keys'](_0xd53fe9)['length'])continue;const _0x46ab93=_0x35e10a['attributes']['tablePasteChainId'];let _0x2320b3=!0x0,_0x3d6b6e=!0x0;for(const _0x18f7d2 of _0x48d845)if(_0x18f7d2['subType']&&_0x18f7d2['subType']['startsWith']('tablePaste')){if(!_0x18f7d2['attributes']['tablePasteChainId']){_0x3d6b6e=!0x1;break;}if(_0x18f7d2['id']!=_0x35e10a['id']&&_0x18f7d2['attributes']['tablePasteChainId']==_0x46ab93){_0x2320b3=!0x1;break;}}_0x3d6b6e&&_0x2320b3&&(_0x35e10a['removeMarkers'](),_0x36d2f2=!0x0);}}for(const _0x1051a9 of _0x265ed8)_0x4a090c['remove'](_0x1051a9);for(const _0x5bfa44 of _0x2ba6b2)_0x4a090c['unwrap'](_0x5bfa44);return _0x36d2f2;}),_0x41bf85['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x556eeb=>_0x32b28a(_0x556eeb),'converterPriority':'high'}),_0x41bf85['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2ca812,_0x59f5d9)=>_0x59f5d9['options']['showSuggestionHighlights']?_0x32b28a(_0x2ca812,!0x1):null,'converterPriority':'high'});const _0xcb1a48=_0x41bf85['editing']['view'];this['listenTo'](_0xcb1a48['document'],'clipboardOutput',(_0x293ccf,_0x452bd3)=>{const _0x261aea=[];for(const _0x51d7bd of _0xcb1a48['createRangeIn'](_0x452bd3['content'])['getItems']())_0x51d7bd['is']('element','suggestion-td')&&_0x261aea['push'](_0x51d7bd);_0xcb1a48['change'](_0x502ece=>{for(const _0x2e706d of _0x261aea)_0x502ece['move'](_0x502ece['createRangeIn'](_0x2e706d),_0x502ece['createPositionBefore'](_0x2e706d)),_0x502ece['remove'](_0x2e706d);});});}}function Oe(_0x14c010){if(_0x14c010['isEmpty'])return!0x0;const _0x812f1a=_0x14c010['getChild'](0x0);return _0x812f1a['is']('element','paragraph')&&_0x812f1a['isEmpty'];}function Ue(_0x3cfcba,_0x2fafe0={},_0x51cc3f){for(const {isAnchor:_0x130155,cellHeight:_0x43a278,cellWidth:_0x1dba69}of _0x51cc3f['createTableWalker'](_0x3cfcba,{'includeAllSlots':!0x0,..._0x2fafe0}))if(!_0x130155||0x1!=_0x43a278||0x1!=_0x1dba69)return!0x1;return!0x0;}class $t extends _0x497417{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0xad4ed5=this['editor']['plugins']['get']('TrackChangesEditing');_0xad4ed5['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0xad4ed5['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0xad4ed5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xad4ed5['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0xad4ed5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0xad4ed5['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x12a089,_0x5a32d9){const _0x3bd5d2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x267edb=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x10fe61=_0x5a32d9['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x22f17c=_0x267edb['getColumnGroupElement'](_0x10fe61);let _0x52484b=_0x22f17c?_0x267edb['getTableColumnsWidths'](_0x22f17c):null,_0x202df5=_0x10fe61['getAttribute']('tableWidth')||null;const _0x344354=_0x5a32d9['tableWidth']||_0x202df5,_0x1bfd71=_0x5a32d9['columnWidths']||_0x52484b,_0x2e6a3d=this['editor']['plugins']['get']('Users')['me'];for(const _0x2f7aec of _0x3bd5d2['getSuggestions']()){const _0x52e525=_0x2f7aec['getContainedElement']();if('resizeTable'===_0x2f7aec['subType']&&_0x52e525===_0x10fe61){_0x2f7aec['author']!==_0x2e6a3d&&_0x2f7aec['discard']();const _0x30da5a=_0x2f7aec['data']['commandParams'];_0x202df5=_0x30da5a[0x0]['tableWidth'],_0x52484b=_0x30da5a[0x0]['columnWidths'];break;}}_0x12a089({'table':_0x10fe61,'tableWidth':_0x344354,'columnWidths':_0x1bfd71}),_0x3bd5d2['markBlockFormat'](_0x10fe61,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x202df5,'columnWidths':_0x52484b}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x57c927){if('formatBlock'!=_0x57c927['type']&&'formatInline'!=_0x57c927['type'])return;const {data:_0x3b8002}=_0x57c927;if(_0x3b8002&&'resizeTable'===_0x3b8002['formatGroupId']){const _0x37f70a='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x37f70a)};}}}class Bt extends _0x497417{['afterInit'](){const _0xe749f8=this['editor'];_0xe749f8['plugins']['has']('Template')&&_0xe749f8['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x497417{['afterInit'](){const _0x3e7ead=this['editor'];if(!_0x3e7ead['commands']['get']('insertTableOfContents'))return;_0x3e7ead['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x5c2737=_0x3e7ead['plugins']['get']('TrackChangesEditing'),_0x498fa2=_0x3e7ead['locale'];_0x5c2737['descriptionFactory']['registerElementLabel']('tableOfContents',_0x430a70=>c(_0x498fa2,'ELEMENT_TABLE_OF_CONTENTS',_0x430a70));}}class Rt extends _0x497417{['afterInit'](){const _0x15476e=this['editor'];if(!_0x15476e['plugins']['has']('Title'))return;const _0xc22c38=_0x15476e['plugins']['get']('TrackChangesEditing');_0xc22c38['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x15476e['locale'],'ELEMENT_TITLE')),_0x15476e['model']['document']['registerPostFixer'](_0xa82681=>{let _0x3a4fa3=!0x1;const _0x43b6bc=Array['from'](_0x15476e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x58fcaa,data:_0x2c477b}of _0x43b6bc){const {group:_0x18d516}=_0xc22c38['_splitMarkerName'](_0x58fcaa);if('suggestion'!==_0x18d516||!_0x2c477b['newRange'])continue;const _0x28cdb4=_0x2c477b['newRange'],_0x55ce82=_0x28cdb4['end']['nodeBefore'];if(!_0x55ce82||!_0x55ce82['is']('element','title-content'))continue;if(!_0x28cdb4['start']['isTouching'](_0x28cdb4['end']))continue;const _0x4d4ef2=_0x15476e['model']['schema']['getNearestSelectionRange'](_0x28cdb4['end'],'forward');if(_0x4d4ef2&&_0x4d4ef2['isCollapsed']){const _0x3c8252=_0xa82681['createRange'](_0x28cdb4['start'],_0x4d4ef2['start']);_0x3c8252['isEqual'](_0x28cdb4)||(_0xa82681['updateMarker'](_0x58fcaa,{'range':_0x3c8252}),_0x3a4fa3=!0x0);}_0x3a4fa3||(_0xa82681['removeMarker'](_0x58fcaa),_0x3a4fa3=!0x0);}return _0x3a4fa3;});}}class xt extends _0x497417{['afterInit'](){const _0x50f4b8=this['editor'],_0x4b38d7=_0x50f4b8['plugins']['get']('TrackChangesEditing');_0x50f4b8['plugins']['has']('Uploadcare')&&(_0x4b38d7['enableCommand']('uploadcare'),_0x50f4b8['plugins']['has']('UploadcareImageEdit')&&(_0x4b38d7['enableCommand']('uploadcareImageEdit'),_0x4b38d7['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x4b38d7['registerBlockAttribute']('uploadcareImageId'),_0x4b38d7['descriptionFactory']['registerDescriptionCallback'](_0x2c91de=>{if('attribute'!=_0x2c91de['type'])return;const {data:_0x33b034}=_0x2c91de;return _0x33b034&&'uploadcareImageId'==_0x33b034['key']?{'type':'format','content':''}:void 0x0;})));}}class Tt extends _0x497417{['afterInit'](){const _0x1e99a4=this['editor'],_0x32bc15=_0x1e99a4['plugins']['get']('TrackChangesEditing');_0x1e99a4['plugins']['has']('UndoEditing')&&(_0x32bc15['enableCommand']('undo'),_0x32bc15['enableCommand']('redo'));}}class Et extends _0x497417{static get['requires'](){return[Ct];}['afterInit'](){const _0x5ef09c=this['editor'];if(!_0x5ef09c['plugins']['has']('TableCaptionEditing'))return;_0x5ef09c['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ut extends _0x497417{['tableProperties'];['tableCellProperties'];constructor(_0x47865b){super(_0x47865b),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 _0x1d45b7=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x4fa9f2 of this['tableProperties'])_0x1d45b7['enableCommand'](_0x4fa9f2,(_0x5041f4,_0x2fc95a)=>{const _0x5cfdd1=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x4fa9f2,[_0x5cfdd1],this['tableProperties'],'tableProperties',_0x5041f4,_0x2fc95a);});_0x1d45b7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x1d45b7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1d45b7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x391d53,_0x222397)=>this['handleDiscardAction'](this['tableProperties'],_0x391d53,_0x222397)),_0x1d45b7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x48675f of this['tableCellProperties'])_0x1d45b7['enableCommand'](_0x48675f,(_0x19a467,_0x2af7e6)=>{const _0x12b99=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x48675f,_0x12b99,this['tableCellProperties'],'tableCellProperties',_0x19a467,_0x2af7e6);});_0x1d45b7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x1d45b7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1d45b7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x5f2aff,_0x4acdbb)=>this['handleDiscardAction'](this['tableCellProperties'],_0x5f2aff,_0x4acdbb)),_0x1d45b7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x1d45b7['descriptionFactory']['registerDescriptionCallback'](_0xf7ba07=>this['handleSuggestionDescription'](_0xf7ba07));}['_handlePropertyChange'](_0x2ed84e,_0x4c009f,_0x2ee711,_0x46d454,_0x199ea1,_0x59c915){const _0x462293=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x59c915['batch'],()=>{for(const _0x201e08 of _0x4c009f){if(this['_getSuggestion'](_0x201e08,_0x46d454))_0x199ea1(_0x59c915);else{const _0x12150c={};for(const _0x54119a of _0x2ee711){const _0x4880a6=_0x201e08['getAttribute'](_0x54119a);void 0x0!==_0x4880a6&&(_0x12150c[_0x54119a]=_0x4880a6);}_0x199ea1(_0x59c915),_0x462293['markBlockFormat'](_0x201e08,{'commandParams':[_0x12150c]},[],_0x46d454);}}});}['handleDiscardAction'](_0x44b79c,_0x5a78f0,_0x4eb0f1){const _0x4bf687=_0x5a78f0[0x0]['start']['nodeAfter'],_0x59e7dc=_0x4eb0f1['commandParams'][0x0];this['editor']['model']['change'](_0x46d41e=>{for(const _0x14a294 of _0x44b79c)void 0x0!==_0x59e7dc[_0x14a294]?_0x46d41e['setAttribute'](_0x14a294,_0x59e7dc[_0x14a294],_0x4bf687):_0x46d41e['removeAttribute'](_0x14a294,_0x4bf687);});}['handleSuggestionDescription'](_0x1f7766){if(_0x1f7766['data'])switch(_0x1f7766['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'](_0x508e90,_0x27d3d5){const _0x4ebd56=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x2c83a3 of _0x4ebd56['getSuggestions']({'skipNotAttached':!0x0})){const _0x2691c0=_0x2c83a3['getContainedElement']();if(_0x2c83a3['subType']===_0x27d3d5&&_0x2691c0===_0x508e90)return _0x2c83a3;}return null;}}const u='$elementName';class p extends _0x497417{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x508eb0,_0x1b0060,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,et,nt,it,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,_t,vt,Ct,Nt,Dt,Et,Mt,$t,Ot,Ut,Bt,Rt,xt,Tt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x29a838){super(_0x29a838),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x353465,_0x2879f3,_0x2965a7,_0x1ab6bf)=>{this['_model']['change'](()=>{for(const _0x1e91a5 of[..._0x1ab6bf,..._0x2965a7])this['_model']['markers']['has'](_0x1e91a5)&&_0x29a838['editing']['reconvertMarker'](_0x1e91a5);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ft(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x29a838['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(),_0x29a838['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x29a838['config']['get']('trackChanges.trackFormatChanges'),_0x29a838['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x29a838['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x29a838,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x5deeac=this['editor'],_0x51d895=(_0x328a3a,_0x3b7f1c)=>{if('attribute'!=_0x328a3a)return'ck-suggestion-marker-'+_0x328a3a;const _0x3495dc=_0x3b7f1c['split']('|')[0x0];return this['_isBlockAttribute'](_0x3495dc)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x5deeac['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x289d5d=>{const {id:_0x51effb,authorId:_0x2bcf9,type:_0x4235f9,subType:_0x3ce50b}=this['_splitMarkerName'](_0x289d5d['markerName']),_0x32de20=['ck-suggestion-marker',_0x51d895(_0x4235f9,_0x3ce50b)];let _0x439827=0xbb8;return this['activeMarkers']['includes'](_0x289d5d['markerName'])&&(_0x32de20['push']('ck-suggestion-marker--active'),_0x439827=0xbc2),'deletion'==_0x4235f9&&(_0x439827+=0x5),{'classes':_0x32de20,'attributes':{'data-suggestion':_0x51effb,'data-author-id':_0x2bcf9},'priority':_0x439827};}}),_0x5deeac['conversion']['for']('dataDowncast')['add'](_0x4320cf=>{_0x4320cf['on']('addMarker:suggestion',(_0x2cd748,_0x58a3bd,_0x25cd6b)=>{if(!_0x25cd6b['options']['showSuggestionHighlights'])return;const _0x56eb67=_0x58a3bd['item'];if(!_0x56eb67)return;const _0x2e70aa=_0x25cd6b['mapper']['toViewElement'](_0x56eb67);_0x5deeac['model']['schema']['isObject'](_0x56eb67)&&_0x2e70aa&&!_0x2e70aa['getCustomProperty']('widget')&&_0x2e70aa['is']('containerElement')&&_0x5667c3(_0x2e70aa,_0x25cd6b['writer']);},{'priority':'high'});}),_0x5deeac['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x58b598,_0x18ebac)=>{if(!_0x18ebac['options']['showSuggestionHighlights'])return null;const {type:_0xaa22ac,subType:_0x318656}=this['_splitMarkerName'](_0x58b598['markerName']);return{'classes':['ck-suggestion-marker',_0x51d895(_0xaa22ac,_0x318656)],'priority':0xbb8};}});const _0x47bf7a=({showActiveMarkers:_0x13938e=!0x0,isAttributeSuggestion:_0x12f9e2=!0x1}={})=>(_0x4ed864,_0x372086,_0x245552)=>{if(!_0x372086['item'])return;const {id:_0x5d4b11,authorId:_0x4cad8c}=this['_splitMarkerName'](_0x372086['markerName']);if(_0x12f9e2){const _0x46e925=this['_suggestions']['get'](_0x5d4b11),_0x4a014f=this['_getAttributeKey'](_0x46e925);if(!this['_isBlockAttribute'](_0x4a014f))return;}if(_0x372086['item']['is']('selection'))return void _0x245552['consumable']['consume'](_0x372086['item'],_0x4ed864['name']);const _0x4f7dcc=_0x245552['mapper']['toViewElement'](_0x372086['item']);if(_0x372086['item']['is']('element')&&_0x5deeac['model']['schema']['isBlock'](_0x372086['item'])&&!_0x4f7dcc['getCustomProperty']('addHighlight')){_0x245552['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x4f7dcc),_0x245552['writer']['setAttribute']('data-suggestion',_0x5d4b11,_0x4f7dcc),_0x245552['writer']['setAttribute']('data-author-id',_0x4cad8c,_0x4f7dcc),_0x245552['mapper']['bindElementToMarker'](_0x4f7dcc,_0x372086['markerName']),_0x13938e&&(this['activeMarkers']['includes'](_0x372086['markerName'])?_0x245552['writer']['addClass']('ck-suggestion-marker--active',_0x4f7dcc):_0x245552['writer']['removeClass']('ck-suggestion-marker--active',_0x4f7dcc));for(const _0x42da6b of _0x5deeac['model']['createRangeIn'](_0x372086['item'])['getItems']())_0x245552['consumable']['consume'](_0x42da6b,_0x4ed864['name']);_0x245552['consumable']['consume'](_0x372086['item'],_0x4ed864['name']);}};_0x5deeac['conversion']['for']('dataDowncast')['add'](_0x25e5f0=>{_0x25e5f0['on']('addMarker:suggestion:formatBlock',(_0x25143e,_0x4deed1,_0x50f958)=>{_0x50f958['options']['showSuggestionHighlights']&&_0x47bf7a({'showActiveMarkers':!0x1})(_0x25143e,_0x4deed1,_0x50f958);},{'priority':'highest'});}),_0x5deeac['conversion']['for']('dataDowncast')['add'](_0x24e0c7=>{_0x24e0c7['on']('addMarker:suggestion:attribute',(_0x4eb423,_0x543d52,_0x12e22c)=>{_0x12e22c['options']['showSuggestionHighlights']&&_0x47bf7a({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x4eb423,_0x543d52,_0x12e22c);},{'priority':'highest'});}),_0x5deeac['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x13328f,_0x46f47a)=>_0x46f47a['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x13328f['substr'](0xb)}}),_0x5deeac['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5e609f,{writer:_0x99df0d})=>{let _0x3eb24f='suggestion:'+_0x5e609f['getAttribute']('suggestion-type')+':'+_0x5e609f['getAttribute']('id');return _0x5e609f['getAttribute']('marker-count')&&(_0x3eb24f+=':'+_0x5e609f['getAttribute']('marker-count')),_0x99df0d['createElement']('$marker',{'data-name':_0x3eb24f});}}),_0x5deeac['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x5deeac['conversion']['for']('editingDowncast')['add'](_0x267b36=>{_0x267b36['on']('addMarker:suggestion:formatBlock',_0x47bf7a(),{'priority':'high'});}),_0x5deeac['conversion']['for']('editingDowncast')['add'](_0x590ca0=>{_0x590ca0['on']('addMarker:suggestion:attribute',_0x47bf7a({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x5deeac['conversion']['for']('editingDowncast')['add'](_0x32f95f=>{_0x32f95f['on']('removeMarker:suggestion:formatBlock',(_0x33de96,_0x27870c,_0x391f30)=>{const _0x5ba507=_0x391f30['mapper']['markerNameToElements'](_0x27870c['markerName']);if(_0x5ba507){for(const _0x539e92 of _0x5ba507)_0x539e92['getCustomProperty']('addHighlight')||(_0x391f30['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x539e92),_0x391f30['writer']['removeAttribute']('data-suggestion',_0x539e92),_0x391f30['writer']['removeAttribute']('data-author-id',_0x539e92),_0x391f30['mapper']['unbindElementFromMarkerName'](_0x539e92,_0x27870c['markerName']));}},{'priority':'high'});}),_0x5deeac['conversion']['for']('editingDowncast')['add'](_0xbedb4e=>{_0xbedb4e['on']('removeMarker:suggestion:attribute',(_0x4d8cb6,_0x41623f,_0x46deec)=>{const _0x3e23c3=_0x46deec['mapper']['markerNameToElements'](_0x41623f['markerName']);if(!_0x3e23c3)return;const {id:_0x3bad43}=this['_splitMarkerName'](_0x41623f['markerName']),_0x51ffc6=this['_suggestions']['get'](_0x3bad43),_0x444861=this['_getAttributeKey'](_0x51ffc6);if(this['_isBlockAttribute'](_0x444861)){for(const _0x1f9682 of _0x3e23c3)_0x1f9682['getCustomProperty']('addHighlight')||(_0x46deec['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1f9682),_0x46deec['writer']['removeAttribute']('data-suggestion',_0x1f9682),_0x46deec['writer']['removeAttribute']('data-author-id',_0x1f9682),_0x46deec['mapper']['unbindElementFromMarkerName'](_0x1f9682,_0x41623f['markerName']));}},{'priority':'high'});}),_0x5deeac['model']['document']['registerPostFixer'](_0x1dea20=>{let _0x4af7bc=!0x1;const _0x433d8c=Array['from'](_0x5deeac['model']['document']['differ']['getChangedMarkers']()),_0x12f2c3=new Set();for(const {name:_0x420470,data:_0x4f8f50}of _0x433d8c){const {group:_0x3589d6,type:_0x3754ec,subType:_0x121f08,id:_0x3bcd33}=this['_splitMarkerName'](_0x420470);if('suggestion'!==_0x3589d6)continue;const _0xecc204=this['_suggestions']['get'](_0x3bcd33);if(null!=_0x4f8f50['newRange']){'formatInline'==_0x3754ec&&(_0x4af7bc=_0x4af7bc||Lt(_0x4f8f50['newRange'],_0x420470,_0x1dea20,_0x5deeac['model']['schema']));const _0x5b31ef='attribute'==_0x3754ec&&this['_isBlockAttribute'](_0x121f08['split']('|')[0x0]);if(_0x4f8f50['newRange']['isCollapsed']||'$graveyard'==_0x4f8f50['newRange']['root']['rootName']||'formatBlock'==_0x3754ec&&!Kt(_0x4f8f50['newRange'])||_0x5b31ef&&!Kt(_0x4f8f50['newRange'])||'deletion'==_0x3754ec&&!(!Gt(_0x59372e=_0x4f8f50['newRange'])&&!function(_0x1e4a25){return _0x1e4a25['start']['parent']==_0x1e4a25['end']['nodeBefore']&&_0x1e4a25['start']['isAtEnd'];}(_0x59372e)))_0x1dea20['removeMarker'](_0x420470),_0x4af7bc=!0x0;else{if(!_0xecc204||!_0xecc204['isInContent'])continue;if(_0x4f8f50['newRange']&&_0x4f8f50['oldRange']&&_0x4f8f50['newRange']['isEqual'](_0x4f8f50['oldRange']))continue;_0x12f2c3['add'](_0xecc204);}}}var _0x59372e;return _0x12f2c3['size']>0x0&&(_0x4af7bc=!!this['_joinWithAdjacentSuggestions'](_0x12f2c3)||_0x4af7bc),_0x4af7bc;}),_0x5deeac['model']['document']['registerPostFixer'](_0x442b8d=>{let _0x4bd7b0=!0x1;for(const _0x1364ec of _0x5deeac['model']['document']['differ']['getChanges']())if('insert'==_0x1364ec['type'])for(const _0x37cbe3 of this['_suggestions']['values']()){if(_0x37cbe3['isMultiRange']||!_0x37cbe3['isInContent'])continue;const _0x42934b='formatBlock'==_0x37cbe3['type'],_0x250fe2=this['_getAttributeKey'](_0x37cbe3),_0x592882=_0x250fe2&&this['_isBlockAttribute'](_0x250fe2);if(!_0x42934b&&!_0x592882)continue;const _0x317582=_0x37cbe3['getFirstRange']();if(_0x317582['start']['parent']!=_0x317582['end']['parent']&&!_0x317582['end']['isAtEnd']){const _0x32848d=_0x5deeac['model']['createPositionAt'](_0x317582['start']['nodeAfter'],'end'),_0x573bb6=_0x5deeac['model']['createRange'](_0x317582['start'],_0x32848d);_0x442b8d['updateMarker'](_0x37cbe3['getFirstMarker'](),{'range':_0x573bb6}),_0x4bd7b0=!0x0;}}return _0x4bd7b0;}),_0x5deeac['model']['document']['registerPostFixer'](_0x2c2d4c=>this['_processAttributeChanges'](_0x2c2d4c)),_0x5deeac['model']['document']['registerPostFixer'](_0x187d50=>!_0x187d50['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x187d50)),_0x5deeac['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x5deeac['model']['document']['on']('change:data',(_0xb398c1,_0x414b37)=>{if(!_0x414b37['isLocal']||_0x414b37['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x39a1a7=_0x5deeac['model']['document']['differ']['getChanges']();if(0x0==_0x39a1a7['length'])return;const _0x52b3c8=[],_0x1200a9=_0x39a1a7['filter'](_0x39c23d=>'attribute'==_0x39c23d['type']),_0x4c5d14=_0x39a1a7['filter'](_0x275e96=>'insert'==_0x275e96['type']&&'$text'!=_0x275e96['name']);for(const _0x4f6653 of _0x1200a9)this['_isRegisteredAttribute'](_0x4f6653['attributeKey'])&&_0x52b3c8['push']({'key':_0x4f6653['attributeKey'],'newValue':_0x4f6653['attributeNewValue'],'oldValue':_0x4f6653['attributeOldValue'],'range':Ht(_0x4f6653['range'],_0x5deeac['model'])});for(const _0x115cd2 of _0x4c5d14){if('rename'!=_0x115cd2['action']&&'refresh'!=_0x115cd2['action'])continue;const _0x419977=qt(_0x115cd2['position']['nodeAfter'],_0x5deeac['model']),_0x5f1a2f=_0x115cd2['before'];'rename'==_0x115cd2['action']&&_0x52b3c8['push']({'key':u,'newValue':_0x115cd2['name'],'oldValue':_0x5f1a2f['name'],'range':_0x419977});for(const [_0x459787,_0x463238]of _0x5f1a2f['attributes']){if(!this['_isRegisteredAttribute'](_0x459787))continue;const _0x36ca2d=_0x115cd2['attributes']['get'](_0x459787);_0x463238!==_0x36ca2d&&_0x52b3c8['push']({'key':_0x459787,'newValue':_0x36ca2d,'oldValue':_0x463238,'range':_0x419977});}for(const [_0x390e87,_0xed09aa]of _0x115cd2['attributes'])this['_isRegisteredAttribute'](_0x390e87)&&(_0x5f1a2f['attributes']['has'](_0x390e87)||_0x52b3c8['push']({'key':_0x390e87,'newValue':_0xed09aa,'oldValue':null,'range':_0x419977}));}0x0!=_0x52b3c8['length']&&_0x5deeac['model']['enqueueChange'](_0x414b37,_0x71aa9f=>{const _0x14da8b=_0x437d48();for(const {range:_0x1f57d6,key:_0xc83f2f,oldValue:_0x55eb5f,newValue:_0x1d873b}of _0x52b3c8)this['markAttributeChange'](_0x1f57d6,_0xc83f2f,_0x55eb5f,_0x1d873b,{'groupId':_0x14da8b});this['_reduceExistingSuggestions'](_0x71aa9f,_0x52b3c8);});},{'priority':'lowest'}),_0x5deeac['model']['markers']['on']('update:suggestion',(_0xdb95d9,_0x412be1,_0x585291)=>{if(null==_0x585291){const {id:_0x41df29}=this['_splitMarkerName'](_0x412be1['name']),_0x1ea4e7=this['_suggestions']['get'](_0x41df29);_0x1ea4e7&&_0x1ea4e7['addMarkerName'](_0x412be1['name']);}}),_0x5deeac['model']['document']['on']('change:data',()=>{const _0x5dad79=Array['from'](_0x5deeac['model']['document']['differ']['getChangedMarkers']())['filter'](_0x2c6321=>'suggestion'===this['_splitMarkerName'](_0x2c6321['name'])['group']);if(0x0===_0x5dad79['length'])return;_0x5dad79['sort']((_0x226686,_0x14be82)=>{const _0x3a2e5b=_0x226686['data']['oldRange'],_0x1bb217=_0x14be82['data']['oldRange'];return null===_0x3a2e5b&&null===_0x1bb217?0x0:null===_0x3a2e5b&&null!==_0x1bb217?-0x1:null!==_0x3a2e5b&&null===_0x1bb217?0x1:_0x3a2e5b['start']['isBefore'](_0x1bb217['start'])?-0x1:0x1;});const _0xc472c3=new Set(),_0x3db215=new Set();for(const {name:_0x10aac0,data:_0x450821}of _0x5dad79){const {id:_0x416335}=this['_splitMarkerName'](_0x10aac0);if(null===_0x450821['oldRange']){const _0xeede1c=this['_handleNewSuggestionMarker'](_0x10aac0);_0x3db215['add'](_0xeede1c);}else{const _0x447f5c=this['_suggestions']['get'](_0x416335);null!==_0x450821['newRange']||_0x447f5c['isInContent']?(_0xc472c3['add'](_0x447f5c['head']),_0x3db215['add'](_0x447f5c)):this['_removeSuggestion'](_0x447f5c);}}_0x3db215['size']>0x0&&this['_refreshSuggestionsChain'](_0x3db215);for(const _0x568095 of _0xc472c3)this['fire']('suggestionChanged',_0x568095);}),_0x5deeac['model']['on']('applyOperation',(_0x19a21b,_0x48948e)=>{const _0x5c6035=_0x48948e[0x0];if(!this['_suggestions']['size'])return;if(!_0x5c6035['isDocumentOperation'])return;if(_0x5c6035['batch']['isUndo']||!_0x5c6035['batch']['isLocal'])return;let _0x419eba,_0xc9a53b;switch(_0x5c6035['type']){case'insert':_0x419eba=_0x5deeac['model']['createPositionAt'](_0x5c6035['position']),_0xc9a53b=_0x419eba['getShiftedBy'](_0x5c6035['howMany']);break;case'split':_0x419eba=_0x5deeac['model']['createPositionAt'](_0x5c6035['splitPosition']),_0xc9a53b=_0x5deeac['model']['createPositionAt'](_0x5c6035['moveTargetPosition']);break;case'move':_0x419eba=_0x5deeac['model']['createPositionAt'](_0x5c6035['targetPosition']),_0xc9a53b=_0x419eba['getShiftedBy'](_0x5c6035['howMany']);break;default:return;}const _0x30b402=_0x5deeac['model']['createRange'](_0x419eba,_0xc9a53b);_0x5deeac['model']['change'](()=>{for(const {suggestion:_0xc76f9a,meta:_0x45e3e7}of this['_findSuggestions'](_0x30b402)){if(_0xc76f9a['isMultiRange'])continue;if('formatInline'==_0xc76f9a['type'])continue;const _0x31d1ad=this['_getAttributeKey'](_0xc76f9a);if(_0x31d1ad&&this['_isBlockAttribute'](_0x31d1ad)&&'split'!=_0x5c6035['type'])continue;const _0x4be939=_0xc76f9a['data']&&_0xc76f9a['data']['multipleBlocks'];('formatBlock'!=_0xc76f9a['type']||'split'==_0x5c6035['type']&&!_0x4be939)&&(_0x45e3e7['containsRangeInObject']||'insertion'==_0xc76f9a['type']&&_0x45e3e7['isOwn']||_0xc76f9a['getFirstRange']()['containsRange'](_0x30b402)&&this['_breakSuggestionMarker'](_0xc76f9a,_0x419eba,_0xc9a53b));}});},{'priority':'lowest'}),_0x5deeac['model']['on']('deleteContent',(_0x4becdc,_0x368651)=>{const _0x28437a=_0x368651[0x0],_0x62f5e2=_0x368651[0x1];if(_0x62f5e2&&_0x62f5e2['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x28437a['isCollapsed'])return;const _0x262714=_0x5deeac['model']['schema'],{start:_0x3905e6,end:_0x1e10b6}=_0x28437a['getFirstRange'](),_0x4028d6=_0x3905e6['nodeAfter']&&_0x262714['isLimit'](_0x3905e6['nodeAfter'])?null:_0x262714['getNearestSelectionRange'](_0x3905e6,'forward'),_0x581f1c=_0x1e10b6['nodeBefore']&&_0x262714['isLimit'](_0x1e10b6['nodeBefore'])?null:_0x262714['getNearestSelectionRange'](_0x1e10b6,'backward'),_0x372cd3=_0x5deeac['model']['createRange'](_0x4028d6?_0x4028d6['start']:_0x3905e6,_0x581f1c?_0x581f1c['end']:_0x1e10b6);_0x5deeac['model']['change'](_0x3974dd=>{this['markDeletion'](_0x372cd3);const _0x9e963=_0x5deeac['model']['schema']['getNearestSelectionRange'](_0x372cd3['start']);_0x28437a['is']('documentSelection')?_0x3974dd['setSelection'](_0x9e963):_0x28437a['setTo'](_0x9e963);}),_0x4becdc['stop']();},{'priority':_0x2c349d['normal']+0xa}),_0x5deeac['model']['on']('insertContent',(_0xb1a1c5,_0x37d4db)=>{const _0x143148=_0x37d4db[_0x37d4db['length']-0x1];_0x143148&&_0x143148['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x5deeac['model']['change'](()=>{let _0x5b0ae8=_0x5deeac['model']['insertContent'](_0x37d4db[0x0],_0x37d4db[0x1],_0x37d4db[0x2],{'forceDefaultExecution':!0x0});if(!_0x5b0ae8)return;_0xb1a1c5['return']=_0x5b0ae8['clone']();const _0x4b3164=_0x5b0ae8['end']['nodeBefore'],_0xd54f7=_0x5deeac['model']['schema'];_0x4b3164&&_0xd54f7['isBlock'](_0x4b3164)&&!_0xd54f7['isObject'](_0x4b3164)&&(_0x5b0ae8=_0x5deeac['model']['createRange'](_0x5b0ae8['start'],_0x5deeac['model']['createPositionAt'](_0x4b3164,'end'))),this['markInsertion'](_0x5b0ae8);}),_0xb1a1c5['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x51b816=new O(_0x5deeac,this['_suggestions']);_0x5deeac['commands']['add']('acceptSuggestion',_0x51b816),this['enableCommand']('acceptSuggestion');const _0x33a2f4=new R(_0x5deeac,this['_suggestions']);_0x5deeac['commands']['add']('discardSuggestion',_0x33a2f4),this['enableCommand']('discardSuggestion'),_0x5deeac['commands']['add']('acceptAllSuggestions',new x(_0x5deeac,_0x51b816,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x5deeac['commands']['add']('discardAllSuggestions',new x(_0x5deeac,_0x33a2f4,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x5deeac['commands']['add']('acceptSelectedSuggestions',new E(_0x5deeac,_0x51b816,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x5deeac['commands']['add']('discardSelectedSuggestions',new E(_0x5deeac,_0x33a2f4,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x3565d5=_0x5deeac['plugins']['get']('CommentsRepository');this['listenTo'](_0x3565d5,'addComment',(_0x5addea,{threadId:_0x35b8fd})=>{const _0x4a34ab=this['_suggestions']['get'](_0x35b8fd);_0x4a34ab&&_0x4a34ab['commentThread']&&0x1===_0x4a34ab['commentThread']['length']&&this['_updateSuggestionData'](_0x35b8fd,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x3565d5,'removeComment',(_0x4c9768,{threadId:_0x1096e8})=>{const _0x5b523a=this['_suggestions']['get'](_0x1096e8);_0x5b523a&&_0x5b523a['commentThread']&&!_0x5b523a['commentThread']['length']&&this['_updateSuggestionData'](_0x1096e8,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x17f881){const _0xcc8f39=_0x4f2da2([0x53,0x79,0x66,0x72,0x71,0x30,0x6b,0x4d,0x54,0x55,0x31,0x44,0x62,0x36,0x35,0x33,0x69,0x46,0x74,0x50,0x4b,0x4c,0x6c,0x68,0x70,0x78,0x64,0x65,0x63,0x38,0x73,0x6f,0x61,0x37,0x32,0x59,0x34,0x58,0x57,0x39,0x75,0x7a,0x6e,0x51,0x47,0x67,0x52,0x76,0x45,0x43,0x6a,0x77,0x4f,0x4e,0x49,0x4a,0x5a,0x56,0x48,0x41,0x6d,0x42]),_0x1f3de2=0x125a7558,_0x979288=0x125d14d0^_0x1f3de2,_0x20599e=window[_0x4f2da2([0x44,0x61,0x74,0x65])][_0x4f2da2([0x6e,0x6f,0x77])](),_0x52abba=_0x17f881[_0x4f2da2([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x12d515=new window[(_0x4f2da2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xe3726=>{_0x52abba[_0x4f2da2([0x6f,0x6e,0x63,0x65])](_0x4f2da2([0x72,0x65,0x61,0x64,0x79]),_0xe3726);}),_0x475279={[_0x4f2da2([0x6b,0x74,0x79])]:_0x4f2da2([0x45,0x43]),[_0x4f2da2([0x75,0x73,0x65])]:_0x4f2da2([0x73,0x69,0x67]),[_0x4f2da2([0x63,0x72,0x76])]:_0x4f2da2([0x50,0x2d,0x32,0x35,0x36]),[_0x4f2da2([0x78])]:_0x4f2da2([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]),[_0x4f2da2([0x79])]:_0x4f2da2([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]),[_0x4f2da2([0x61,0x6c,0x67])]:_0x4f2da2([0x45,0x53,0x32,0x35,0x36])},_0x605f97=_0x52abba[_0x4f2da2([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4f2da2([0x67,0x65,0x74])](_0x4f2da2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xfd0252(){let _0x50941c,_0x4bf3e6=null,_0x1c0810=null;try{if(_0x605f97==_0x4f2da2([0x47,0x50,0x4c]))return _0x4f2da2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x50941c=_0x280113(),!_0x50941c)return _0x4f2da2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x50941c[_0x4f2da2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1c0810=_0x1d1a33(_0x50941c[_0x4f2da2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x50941c[_0x4f2da2([0x6a,0x74,0x69])])),await _0x31ac81()?_0x58082c()?_0x24c902()?_0x4f2da2([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x45a842()?(_0x50941c[_0x4f2da2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4f2da2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4bf3e6=_0x406cf5(_0x4f2da2([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x50941c[_0x4f2da2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4f2da2([0x74,0x72,0x69,0x61,0x6c])&&(_0x4bf3e6=_0x406cf5(_0x4f2da2([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3a1187()):_0x4f2da2([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4f2da2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4f2da2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x52fdba){return _0x4f2da2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x24c902(){const _0xdbd70d=[_0x4f2da2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4f2da2([0x74,0x72,0x69,0x61,0x6c])][_0x4f2da2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x50941c[_0x4f2da2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x20599e/0x3e8:0xe10*_0x979288;return _0x50941c[_0x4f2da2([0x65,0x78,0x70])]<_0xdbd70d;}function _0x58082c(){const _0x3fd2e4=_0x50941c[_0x4f2da2([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3fd2e4)return!0x1;if(_0x3fd2e4[_0x4f2da2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f2da2([0x2a])))return!0x0;if(_0x3fd2e4[_0x4f2da2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f2da2([0x54,0x43])))return!0x0;if(_0x3fd2e4[_0x4f2da2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f2da2([0x52,0x54,0x43]))){if(_0xae7fb6())return!0x0;if(_0x2cc6f7()||_0x27dc66())return!0x0;}return!0x1;}function _0x45a842(){const _0x11dd7d=_0x50941c[_0x4f2da2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x11dd7d||0x0==_0x11dd7d[_0x4f2da2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x414171}=new URL(window[_0x4f2da2([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x11dd7d[_0x4f2da2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x414171))return!0x0;const _0x11395a=_0x414171[_0x4f2da2([0x73,0x70,0x6c,0x69,0x74])](_0x4f2da2([0x2e]));return _0x11dd7d[_0x4f2da2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x448f23=>_0x448f23[_0x4f2da2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f2da2([0x2a])))[_0x4f2da2([0x6d,0x61,0x70])](_0x14e891=>_0x14e891[_0x4f2da2([0x73,0x70,0x6c,0x69,0x74])](_0x4f2da2([0x2e])))[_0x4f2da2([0x73,0x6f,0x6d,0x65])](_0x5ac538=>_0x11395a[_0x4f2da2([0x65,0x76,0x65,0x72,0x79])]((_0x1f4889,_0x36f9dc)=>_0x5ac538[_0x36f9dc]===_0x1f4889||_0x5ac538[_0x36f9dc]===_0x4f2da2([0x2a])));}function _0x3a1187(){return _0x4bf3e6&&_0x1c0810?new window[(_0x4f2da2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3c5e39,_0xa32954)=>{_0x4bf3e6[_0x4f2da2([0x74,0x68,0x65,0x6e])](_0x3c5e39,_0xa32954),_0x1c0810[_0x4f2da2([0x74,0x68,0x65,0x6e])](_0x5107b9=>{_0x5107b9!=_0x4f2da2([0x56,0x61,0x6c,0x69,0x64])&&_0x3c5e39(_0x5107b9);},_0xa32954);}):_0x4bf3e6||_0x1c0810||_0x4f2da2([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1d1a33(_0x1a156b,_0x17b964){return new window[(_0x4f2da2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d9a22=>{if(_0x4aaefa())return _0x4d9a22(_0x4f2da2([0x56,0x61,0x6c,0x69,0x64]));_0x56e51b(),_0x52abba[_0x4f2da2([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4f2da2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2b90da=!0x1;const _0x48fa34=_0x437d48();function _0x2a7974(_0x4fe51e){return!!_0x4fe51e&&(typeof _0x4fe51e===_0x4f2da2([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4fe51e===_0x4f2da2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4fe51e[_0x4f2da2([0x74,0x68,0x65,0x6e])]===_0x4f2da2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4fe51e[_0x4f2da2([0x63,0x61,0x74,0x63,0x68])]===_0x4f2da2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x130810(_0x3fa228){_0x2efe17(_0x3fa228)[_0x4f2da2([0x74,0x68,0x65,0x6e])](_0x382cdd=>{if(!_0x382cdd||_0x382cdd[_0x4f2da2([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4f2da2([0x6f,0x6b]))return _0x4f2da2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x463ad4(_0x2509e5(_0x48fa34+_0x17b964))!=_0x382cdd[_0x4f2da2([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4f2da2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4f2da2([0x56,0x61,0x6c,0x69,0x64]);})[_0x4f2da2([0x74,0x68,0x65,0x6e])](_0x33b7bf=>(_0x20f740(),_0x33b7bf),()=>{const _0x34ed7e=_0x2fd5b4();return null==_0x34ed7e?(_0x20f740(),_0x4f2da2([0x56,0x61,0x6c,0x69,0x64])):_0x4f2da2(_0x20599e-_0x34ed7e>(0x3656f158^_0x1f3de2)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4f2da2([0x74,0x68,0x65,0x6e])](_0x4d9a22)[_0x4f2da2([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4d9a22(_0x4f2da2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4b37f2=0x126c9bd8^_0x1f3de2;function _0x20f740(){const _0x291df1=_0x4f2da2([0x6c,0x6c,0x63,0x74,0x2d])+_0x463ad4(_0x2509e5(_0x1a156b)),_0x55c090=_0x45b094(_0x463ad4(window[_0x4f2da2([0x4d,0x61,0x74,0x68])][_0x4f2da2([0x63,0x65,0x69,0x6c])](_0x20599e/_0x4b37f2)));window[_0x4f2da2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4f2da2([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x291df1,_0x55c090);}function _0x2fd5b4(){const _0x93b40a=_0x4f2da2([0x6c,0x6c,0x63,0x74,0x2d])+_0x463ad4(_0x2509e5(_0x1a156b)),_0x2af2a6=window[_0x4f2da2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4f2da2([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x93b40a);return _0x2af2a6?window[_0x4f2da2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x45b094(_0x2af2a6),0x10)*_0x4b37f2:null;}function _0x2efe17(_0xec68b3){return new window[(_0x4f2da2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x58cd99,_0x2ffbfc)=>{_0xec68b3[_0x4f2da2([0x74,0x68,0x65,0x6e])](_0x58cd99,_0x2ffbfc),window[_0x4f2da2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2ffbfc,0x125ba198^_0x1f3de2);});}}_0x52abba[_0x4f2da2([0x6f,0x6e])](_0x4f2da2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x574834,_0x160bf5)=>{if(_0x160bf5[0x0]!=_0x1a156b)return _0x4d9a22(_0x4f2da2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x160bf5[0x1]={..._0x160bf5[0x1],[_0x4f2da2([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x48fa34};},{[_0x4f2da2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4f2da2([0x68,0x69,0x67,0x68])}),_0x52abba[_0x4f2da2([0x6f,0x6e])](_0x4f2da2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x12d2b7=>{_0x2a7974(_0x12d2b7[_0x4f2da2([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2b90da=!0x0,_0x130810(_0x12d2b7[_0x4f2da2([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4f2da2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4f2da2([0x6c,0x6f,0x77])}),_0x12d515[_0x4f2da2([0x74,0x68,0x65,0x6e])](()=>{_0x2b90da||_0x4d9a22(_0x4f2da2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4aaefa(){return _0x52abba[_0x4f2da2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4f2da2([0x76,0x69,0x65,0x77])][_0x4f2da2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4f2da2([0x61,0x75,0x74,0x6f]);}function _0x56e51b(){_0x52abba[_0x4f2da2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4f2da2([0x76,0x69,0x65,0x77])][_0x4f2da2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4f2da2([0x61,0x75,0x74,0x6f]);}}function _0x406cf5(_0x236f3f){const _0x526519=[new window[(_0x4f2da2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2d93fd=>setTimeout(_0x2d93fd,0x12534b94^_0x1f3de2)),_0x12d515[_0x4f2da2([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4f2da2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e07c6=>{let _0x16ca6d=0x0;_0x52abba[_0x4f2da2([0x6d,0x6f,0x64,0x65,0x6c])][_0x4f2da2([0x6f,0x6e])](_0x4f2da2([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1ccae2,_0x397ce5)=>{_0x397ce5[0x0][_0x4f2da2([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x16ca6d++,_0x16ca6d==(0x125a74a0^_0x1f3de2)&&(_0x4e07c6(),_0x1ccae2[_0x4f2da2([0x6f,0x66,0x66])]());});}))];return window[_0x4f2da2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4f2da2([0x72,0x61,0x63,0x65])](_0x526519)[_0x4f2da2([0x74,0x68,0x65,0x6e])](()=>_0x236f3f);}async function _0xf6fbfb(){await _0x12d515,_0x52abba[_0x4f2da2([0x6d,0x6f,0x64,0x65,0x6c])][_0x4f2da2([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4e26f2,_0x52abba[_0x4f2da2([0x6d,0x6f,0x64,0x65,0x6c])][_0x4f2da2([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4e26f2,_0x52abba[_0x4f2da2([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4f2da2([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xae7fb6(){return _0x4db4b5(_0x4f2da2([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2b78ba(_0x4f2da2([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4f2da2([0x73,0x74,0x61,0x74,0x65])]==_0x4f2da2([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x2cc6f7(){return _0x4db4b5(_0x4f2da2([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 _0x27dc66(){return _0x4db4b5(_0x4f2da2([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x7fad4c(_0x540864){const _0x45b3c8=_0x2e82e7();_0x52abba[_0x45b3c8]=_0x4f2da2([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x540864,_0x540864!=_0x4f2da2([0x56,0x61,0x6c,0x69,0x64])&&_0xf6fbfb();}function _0x2e82e7(){const _0xe92774=window[_0x4f2da2([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4f2da2([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4f2da2([0x6e,0x6f,0x77])]())[_0x4f2da2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4f2da2([0x2e]),'');let _0x22d53a=_0x4f2da2([0x53]);for(let _0x361e14=0x0;_0x361e14<_0xe92774[_0x4f2da2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x361e14+=0x2){let _0x23c5e3=window[_0x4f2da2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xe92774[_0x4f2da2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x361e14,_0x361e14+0x2));_0x23c5e3>=_0xcc8f39[_0x4f2da2([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x23c5e3-=_0xcc8f39[_0x4f2da2([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x22d53a+=_0xcc8f39[_0x23c5e3];}return _0x22d53a;}function _0x280113(){const _0x2500bb=_0x605f97[_0x4f2da2([0x73,0x70,0x6c,0x69,0x74])](_0x4f2da2([0x2e]));if(0x3!=_0x2500bb[_0x4f2da2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x258dd4(_0x2500bb[0x1]);function _0x258dd4(_0x5eed21){const _0x6cfb1f=_0x1346f9(_0x5eed21);return _0x6cfb1f&&_0x5536b0()?_0x6cfb1f:null;function _0x5536b0(){const _0x3b1a95=_0x6cfb1f[_0x4f2da2([0x6a,0x74,0x69])],_0x1ff955=window[_0x4f2da2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3b1a95[_0x4f2da2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3b1a95[_0x4f2da2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x31fbd6={..._0x6cfb1f,[_0x4f2da2([0x6a,0x74,0x69])]:_0x3b1a95[_0x4f2da2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3b1a95[_0x4f2da2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x31fbd6[_0x4f2da2([0x76,0x63])],_0x2509e5(_0x31fbd6)==_0x1ff955;}}}async function _0x31ac81(){let _0x5cbffc=!0x0;try{const _0x2ee265=_0x605f97[_0x4f2da2([0x73,0x70,0x6c,0x69,0x74])](_0x4f2da2([0x2e])),[_0x5ce15f,_0x350740,_0x54146a]=_0x2ee265;return _0x2f22e8(_0x5ce15f),await _0x520bf3(_0x5ce15f,_0x350740,_0x54146a),_0x5cbffc;}catch(_0x3c6125){return!0x1;}function _0x2f22e8(_0x549fba){const _0x3694da=_0x1346f9(_0x549fba);_0x3694da&&_0x3694da[_0x4f2da2([0x61,0x6c,0x67])]==_0x4f2da2([0x45,0x53,0x32,0x35,0x36])||(_0x5cbffc=!0x1);}async function _0x520bf3(_0x1e43be,_0x3a5f9e,_0x1747f7){const _0xb4d8f0=window[_0x4f2da2([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4f2da2([0x66,0x72,0x6f,0x6d])](_0xb92a02(_0x1747f7),_0x5b52ee=>_0x5b52ee[_0x4f2da2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4ba875=new window[(_0x4f2da2([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4f2da2([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1e43be+_0x4f2da2([0x2e])+_0x3a5f9e),_0x58edd5=window[_0x4f2da2([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4f2da2([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x58edd5)return;const _0x165606=await _0x58edd5[_0x4f2da2([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4f2da2([0x6a,0x77,0x6b]),_0x475279,{[_0x4f2da2([0x6e,0x61,0x6d,0x65])]:_0x4f2da2([0x45,0x43,0x44,0x53,0x41]),[_0x4f2da2([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4f2da2([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4f2da2([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x58edd5[_0x4f2da2([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4f2da2([0x6e,0x61,0x6d,0x65])]:_0x4f2da2([0x45,0x43,0x44,0x53,0x41]),[_0x4f2da2([0x68,0x61,0x73,0x68])]:{[_0x4f2da2([0x6e,0x61,0x6d,0x65])]:_0x4f2da2([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x165606,_0xb4d8f0,_0x4ba875)||(_0x5cbffc=!0x1);}}function _0x1346f9(_0x25c537){return _0x25c537[_0x4f2da2([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4f2da2([0x65,0x79]))?JSON[_0x4f2da2([0x70,0x61,0x72,0x73,0x65])](_0xb92a02(_0x25c537)):null;}function _0xb92a02(_0x19391d){return window[_0x4f2da2([0x61,0x74,0x6f,0x62])](_0x19391d[_0x4f2da2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4f2da2([0x2b]))[_0x4f2da2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4f2da2([0x2f])));}function _0x2509e5(_0x2a383c){let _0x40c7f4=0x1505;function _0xa72dee(_0x2d23a0){for(let _0x249e61=0x0;_0x249e61<_0x2d23a0[_0x4f2da2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x249e61++){const _0xe5a327=_0x2d23a0[_0x4f2da2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x249e61);_0x40c7f4=(_0x40c7f4<<0x5)+_0x40c7f4+_0xe5a327,_0x40c7f4&=_0x40c7f4;}}function _0x310d58(_0x23abd4){Array[_0x4f2da2([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x23abd4)?_0x23abd4[_0x4f2da2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x310d58):_0x23abd4&&typeof _0x23abd4==_0x4f2da2([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4f2da2([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x23abd4)[_0x4f2da2([0x73,0x6f,0x72,0x74])]()[_0x4f2da2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x111246,_0x15cf3c])=>{_0xa72dee(_0x111246),_0x310d58(_0x15cf3c);}):_0xa72dee(window[_0x4f2da2([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x23abd4));}return _0x310d58(_0x2a383c),_0x40c7f4>>>0x0;}function _0x463ad4(_0x5b6930){return _0x5b6930[_0x4f2da2([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4f2da2([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4f2da2([0x30]));}function _0x45b094(_0x42e059){return _0x42e059[_0x4f2da2([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4f2da2([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4f2da2([0x6a,0x6f,0x69,0x6e])]('');}function _0x4db4b5(_0x12c2f3){return _0x52abba[_0x4f2da2([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4f2da2([0x68,0x61,0x73])](_0x12c2f3);}function _0x2b78ba(_0x5cc423){return _0x52abba[_0x4f2da2([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4f2da2([0x67,0x65,0x74])](_0x5cc423);}function _0x4e26f2(){}function _0x4f2da2(_0x580ffc){return _0x580ffc['map'](_0x273f6b=>String['fromCharCode'](_0x273f6b))['join']('');}_0x7fad4c(await _0xfd0252());}(this);}set['adapter'](_0x3917a8){if(this['_adapter'])throw new _0x3e1147('track-changes-adapter-already-set',this);this['_adapter']=_0x3917a8;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x52b9b7=!0x1,toJSON:_0x53398a=!0x1}={}){const _0x2caec0=[];for(const _0x4c024e of this['_suggestions']['values']())_0x52b9b7&&!_0x4c024e['isInContent']||_0x2caec0['push'](_0x4c024e);return _0x53398a?_0x2caec0['map'](_0x2fa74f=>_0x2fa74f['toJSON']()):_0x2caec0;}['getSuggestion'](_0x3bdaf6){const _0x43d145=this['_suggestions']['get'](_0x3bdaf6);if(!_0x43d145)throw new _0x3e1147('track-changes-suggestion-not-found',this);return _0x43d145;}['hasSuggestion'](_0x265ef2){return this['_suggestions']['has'](_0x265ef2);}['addSuggestionData'](_0x30aa57){const {authorId:_0x373aba,id:_0x5bd5b2,attributes:_0x403d6d}=_0x30aa57,[_0x18dff0,_0x55441d]=_0x30aa57['type']['split'](':'),_0x5acb6c=this['_suggestions']['get'](_0x5bd5b2)||this['_createSuggestion'](_0x18dff0,_0x55441d,_0x5bd5b2,_0x373aba,_0x403d6d);if(this['_addThreadToSuggestion'](_0x5acb6c),this['_checkSuggestionCorrectness'](_0x5acb6c,_0x18dff0,_0x55441d||null,_0x373aba),_0x5acb6c['createdAt']=_0x30aa57['createdAt'],_0x5acb6c['_isDataLoaded']=!0x0,_0x403d6d&&_0x403d6d['@external']){const _0x4ba81d=_0x403d6d['@external'],_0x14cc7b=this['_getExternalAuthor'](_0x4ba81d['authorName']);_0x5acb6c['authoredAt']=_0x4ba81d['createdAt'],_0x5acb6c['author']=_0x14cc7b,_0x5acb6c['isExternal']=!0x0;}else _0x5acb6c['authoredAt']=_0x30aa57['createdAt'];switch(_0x30aa57['data']&&(_0x5acb6c['data']=_0x30aa57['data']),_0x30aa57['attributes']&&(_0x5acb6c['attributes']=_0x30aa57['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x5acb6c['_saved']=!0x0),this['_suggestionState']['get'](_0x5acb6c)){case'notReady':this['_suggestionState']['set'](_0x5acb6c,'dataReady');break;case'markerReady':_0x5acb6c['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x5acb6c])),this['_refreshSuggestionsChain'](new Set([_0x5acb6c])),this['_suggestionState']['set'](_0x5acb6c,'ready'),this['fire']('suggestionLoaded',_0x5acb6c)):this['_suggestionState']['set'](_0x5acb6c,'removed');}return _0x5acb6c;}['acceptSuggestion'](_0x3ee8df){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x41931f of _0x3ee8df['getAllAdjacentSuggestions']())_0x41931f['accept']();});});}['discardSuggestion'](_0x11c6f8){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x45b835 of _0x11c6f8['getAllAdjacentSuggestions']())_0x45b835['discard']();});});}['enableCommand'](_0x3bc312,_0x3df545){const _0x460d17=this['editor']['commands']['get'](_0x3bc312);if(!_0x460d17)throw new _0x3e1147('track-changes-command-not-found',this,{'commandName':_0x3bc312});if(this['_enabledCommands']['has'](_0x460d17))throw new _0x3e1147('track-changes-enable-command-twice',this,{'commandName':_0x3bc312});this['_enabledCommands']['add'](_0x460d17),_0x3df545&&_0x460d17['on']('execute',(_0x125d36,_0x37adb9)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x37adb9['length']>0x0&&_0x37adb9[_0x37adb9['length']-0x1]&&_0x37adb9[_0x37adb9['length']-0x1]['forceDefaultExecution']?_0x37adb9['pop']():(_0x125d36['return']=_0x3df545((..._0x5ebc8f)=>_0x460d17['execute'](..._0x5ebc8f,{'forceDefaultExecution':!0x0}),..._0x37adb9),_0x125d36['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x3cf525){let _0x40563c,_0x19103e;const _0x3b3093=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x40563c=_0x3cf525();}catch(_0x406f19){_0x19103e=_0x406f19;}return _0x3b3093||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x19103e&&_0x3e1147['rethrowUnexpectedError'](_0x19103e,this),_0x40563c;}['markInsertion'](_0x1238b1,_0x56a853=null,_0xb49a43={}){if(_0x1238b1['isCollapsed'])return null;const _0x127222=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x3f3848,meta:_0x50526a}of this['_findSuggestions'](_0x1238b1,'insertion'))if(_0x50526a['isOwn']){if(!_0x50526a['isNextTo']){if(_0x50526a['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x3f3848,_0xb49a43))continue;return _0x3f3848;}if(Qt(_0x3f3848,_0xb49a43))return _0x3f3848;this['_breakSuggestionMarker'](_0x3f3848,_0x1238b1['start'],_0x1238b1['end']);break;}if(_0x56a853==_0x3f3848['subType']&&Qt(_0x3f3848,_0xb49a43)){const _0x792c89=_0x3f3848['getFirstRange']();return _0x792c89['start']['isEqual'](_0x1238b1['end'])?this['_setSuggestionRange'](_0x3f3848,this['_model']['createRange'](_0x1238b1['start'],_0x792c89['end'])):this['_setSuggestionRange'](_0x3f3848,this['_model']['createRange'](_0x792c89['start'],_0x1238b1['end'])),_0x3f3848;}}const _0x245e43=_0x437d48(),_0x450f88=_0x127222['id'],_0x34f055=_0x56a853?'insertion:'+_0x56a853:'insertion',_0x756ef2=this['_setSuggestionData']({'id':_0x245e43,'type':_0x34f055,'createdAt':new Date(),'authorId':_0x450f88,'attributes':_0xb49a43});return this['_addSuggestionMarker'](_0x34f055,_0x245e43,_0x450f88,_0x1238b1),_0x756ef2;}['markMultiRangeInsertion'](_0x5c5da0,_0x3e7c71='multi',_0x27c850={}){const _0x1c41ca=this['editor']['plugins']['get']('Users')['me'],_0x3e47eb=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x3e7c71,'join');for(const _0x9dc198 of this['getSuggestions']())if(_0x9dc198['author']['id']==_0x1c41ca['id']&&'insertion'==_0x9dc198['type']&&_0x9dc198['subType']==_0x3e7c71&&Qt(_0x9dc198,_0x27c850)&&(_0x3e47eb(_0x9dc198['getRanges'](),_0x5c5da0)||_0x3e47eb(_0x5c5da0,_0x9dc198['getRanges']()))){for(const _0x298273 of _0x5c5da0)_0x9dc198['addRange'](_0x298273);return _0x9dc198;}for(const {suggestion:_0x10955c,meta:_0x153e9b}of this['_findSuggestions'](_0x5c5da0,'insertion')){if(!_0x153e9b['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x153e9b['containsRangeInObject'])continue;if(!Qt(_0x10955c,_0x27c850))continue;let _0x3d04a7=!0x0;for(const _0x2d8674 of _0x10955c['getRanges']())for(const _0x437439 of _0x5c5da0)if(!_0x2d8674['containsRange'](_0x437439)){_0x3d04a7=!0x1;break;}if(_0x3d04a7)return _0x10955c;}const _0x311789=_0x437d48(),_0x12c8bd=_0x1c41ca['id'],_0x59eeef='insertion:'+_0x3e7c71,_0x2669a9=this['_setSuggestionData']({'id':_0x311789,'type':_0x59eeef,'createdAt':new Date(),'authorId':_0x12c8bd,'attributes':_0x27c850});for(const _0x4862cb of _0x5c5da0)this['_addSuggestionMarker'](_0x59eeef,_0x311789,_0x12c8bd,_0x4862cb,o['getMultiRangeId']());return _0x2669a9;}['markInlineFormat'](_0x3100d4,_0x4f7301,_0x1f2b53=null,_0x5c0c54={}){if(_0x1f2b53=_0x1f2b53||Jt(_0x4f7301),_0x3100d4['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x2f085f=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1f2b53,'accept');return this['forceDefaultExecution'](()=>_0x2f085f([_0x3100d4],_0x4f7301,_0x5c0c54)),null;}const _0x41cac3=this['editor']['plugins']['get']('Users')['me'],_0x5f37f3=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x589a60,meta:_0x2ff504}of this['_findSuggestions'](_0x3100d4,'insertion'))_0x2ff504['isOwn']&&!_0x2ff504['isInsideObject']&&_0x5f37f3['push'](..._0x589a60['getRanges']());}const _0x5665d3=function(_0x504e45,_0x3825cf){const _0x49f33b=[];for(const _0x49c99a of _0x3825cf){const _0x563375=_0x504e45['getIntersection'](_0x49c99a);_0x563375&&_0x49f33b['push'](_0x563375);}return _0x49f33b;}(_0x3100d4,_0x5f37f3),_0xbc8520=function(_0x67cadd,_0x114c0d){const _0xf1b2ee=[_0x67cadd];for(const _0x112b0a of _0x114c0d){let _0x1ba8a4=0x0;for(;_0x1ba8a4<_0xf1b2ee['length'];){const _0x5b94e1=_0xf1b2ee[_0x1ba8a4]['getDifference'](_0x112b0a);_0xf1b2ee['splice'](_0x1ba8a4,0x1,..._0x5b94e1),_0x1ba8a4+=_0x5b94e1['length'];}}return _0xf1b2ee;}(_0x3100d4,_0x5f37f3);_0x5665d3['length']&&this['_model']['change'](()=>{for(const _0x5bd2ce of _0x5665d3){const _0x812022=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1f2b53,'accept');this['forceDefaultExecution'](()=>_0x812022([_0x5bd2ce],_0x4f7301,_0x5c0c54));}});for(const _0x4e5ac9 of _0xbc8520){let _0x2f8ad2=null,_0x46f38a=_0x4e5ac9['start'],_0x40d58c=_0x4e5ac9['end'];for(const {suggestion:_0x7977b9,meta:_0x39ee3f}of this['_findSuggestions'](_0x4e5ac9,'formatInline')){if(!_0x39ee3f['isOwn'])continue;if(_0x7977b9['subType']!=_0x1f2b53)continue;if(!Qt(_0x7977b9,_0x5c0c54))continue;const _0x190042=_0x7977b9['getFirstRange']();if(_0x190042['containsRange'](_0x4e5ac9,!0x0))return null;_0x46f38a=_0x46f38a['isBefore'](_0x190042['start'])?_0x46f38a:_0x190042['start'],_0x40d58c=_0x40d58c['isAfter'](_0x190042['end'])?_0x40d58c:_0x190042['end'],_0x2f8ad2?_0x190042['start']['isBefore'](_0x2f8ad2['getFirstRange']()['start'])?(_0x2f8ad2['removeMarkers'](),_0x2f8ad2=_0x7977b9):_0x7977b9['removeMarkers']():_0x2f8ad2=_0x7977b9;}const _0x559a98=this['_model']['createRange'](_0x46f38a,_0x40d58c);if(_0x2f8ad2)this['_setSuggestionRange'](_0x2f8ad2,_0x559a98);else{const _0x8041a3=_0x437d48(),_0x3a8590=_0x41cac3['id'];this['_setSuggestionData']({'id':_0x8041a3,'type':'formatInline:'+_0x1f2b53,'data':_0x4f7301,'createdAt':new Date(),'authorId':_0x3a8590,'attributes':_0x5c0c54}),this['_addSuggestionMarker']('formatInline:'+_0x1f2b53,_0x8041a3,_0x3a8590,_0x559a98);}}return null;}['markBlockFormat'](_0x435a67,_0x5cf08e,_0x9e7b09=[],_0x29f871=null,_0x176948={}){_0x5cf08e['formatGroupId']||(_0x5cf08e['formatGroupId']=_0x5cf08e['commandName']),_0x5cf08e['multipleBlocks']=_0x435a67['is']('range'),_0x29f871=_0x29f871||Jt(_0x5cf08e);const _0x1abed7=_0x9e7b09['map'](_0x2a0d02=>qt(_0x2a0d02,this['_model'])),_0x398f1a=_0x435a67['is']('range')?_0x435a67:qt(_0x435a67,this['_model']);if('never'===this['_trackFormatChanges']){const _0x32b96c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x29f871,'accept');return this['forceDefaultExecution'](()=>_0x32b96c([_0x398f1a],_0x5cf08e,_0x176948)),null;}_0x1abed7['push'](_0x398f1a);let _0x47081e=!0x0;for(const _0x111721 of _0x1abed7)if(!this['_rangeIsInLocalUserInsertion'](_0x111721)){_0x47081e=!0x1;break;}if(_0x47081e&&'always'!==this['_trackFormatChanges']){const _0x1ac1a7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x29f871,'accept');return this['forceDefaultExecution'](()=>_0x1ac1a7([_0x398f1a],_0x5cf08e,_0x176948)),null;}let _0x33bc3f=null,_0x3db96b=_0x398f1a['start'],_0x1ff511=_0x398f1a['end'];for(const {suggestion:_0x214e40,meta:_0x574d07}of this['_findSuggestions'](_0x398f1a,'formatBlock')){if(!_0x574d07['isOwn'])continue;if(_0x574d07['isNextTo']||_0x574d07['containsRangeInObject']||_0x574d07['isInsideObject'])continue;if(_0x214e40['data']['formatGroupId']!=_0x5cf08e['formatGroupId'])continue;if(!Qt(_0x214e40,_0x176948))continue;const _0x5a0eec=_0x214e40['getFirstRange']();if(_0x214e40['subType']==_0x29f871){if(_0x5a0eec['containsRange'](_0x398f1a,!0x0))return null;_0x3db96b=_0x3db96b['isBefore'](_0x5a0eec['start'])?_0x3db96b:_0x5a0eec['start'],_0x1ff511=_0x1ff511['isAfter'](_0x5a0eec['end'])?_0x1ff511:_0x5a0eec['end'],_0x33bc3f?_0x5a0eec['start']['isBefore'](_0x33bc3f['getFirstRange']()['start'])?(_0x33bc3f['removeMarkers'](),_0x33bc3f=_0x214e40):_0x214e40['removeMarkers']():_0x33bc3f=_0x214e40;}else{const _0x21094c=_0x398f1a['getIntersection'](_0x5a0eec);this['_cutOutSuggestionMarker'](_0x214e40,_0x21094c);}}const _0xf6d99c=this['editor']['plugins']['get']('Users')['me'],_0x467f15=_0x437d48(),_0x4e3bca=_0xf6d99c['id'];if(_0x33bc3f)return this['_setSuggestionRange'](_0x33bc3f,this['_model']['createRange'](_0x3db96b,_0x1ff511)),_0x33bc3f;{const _0x210b03=this['_setSuggestionData']({'id':_0x467f15,'type':'formatBlock:'+_0x29f871,'data':_0x5cf08e,'createdAt':new Date(),'authorId':_0x4e3bca,'attributes':_0x176948});return this['_addSuggestionMarker']('formatBlock:'+_0x29f871,_0x467f15,_0x4e3bca,this['_model']['createRange'](_0x3db96b,_0x1ff511)),_0x210b03;}}['markMultiRangeBlockFormat'](_0x5caedc,_0x6484be,_0x40818f=[],_0x165c65=null,_0x1dfd29={}){_0x6484be['formatGroupId']||(_0x6484be['formatGroupId']=_0x6484be['commandName']);const _0x3b1aa3=_0x5caedc[0x0];_0x6484be['multipleBlocks']=_0x3b1aa3['is']('range'),_0x165c65=_0x165c65||Jt(_0x6484be);const _0x3b672d=_0x40818f['map'](_0x599061=>qt(_0x599061,this['_model'])),_0xa2755e=_0x3b1aa3['is']('range')?_0x5caedc:_0x5caedc['map'](_0x27574d=>qt(_0x27574d,this['_model']));if('never'===this['_trackFormatChanges']){const _0x4a3933=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x165c65,'accept');return this['forceDefaultExecution'](()=>_0x4a3933(_0xa2755e,_0x6484be,_0x1dfd29)),null;}_0x3b672d['push'](..._0xa2755e);let _0x435b70=!0x0;for(const _0x18ce87 of _0x3b672d)if(!this['_rangeIsInLocalUserInsertion'](_0x18ce87)){_0x435b70=!0x1;break;}if(_0x435b70&&'always'!==this['_trackFormatChanges']){const _0x57e43e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x165c65,'accept');return this['forceDefaultExecution'](()=>_0x57e43e(_0xa2755e,_0x6484be,_0x1dfd29)),null;}const _0x3305cd=this['editor']['plugins']['get']('Users')['me'];for(const _0x1e265b of this['getSuggestions']()){if(_0x1e265b['author']['id']!=_0x3305cd['id'])continue;if('formatBlock'!=_0x1e265b['type']||_0x1e265b['data']['formatGroupId']!=_0x6484be['formatGroupId'])continue;if(!Qt(_0x1e265b,_0x1dfd29))continue;const _0x482132=_0x1e265b['subType']==_0x165c65;for(let _0xa6f304=0x0;_0xa6f304<_0xa2755e['length'];_0xa6f304++){const _0x2687f0=_0xa2755e[_0xa6f304];for(const _0x27f3a1 of _0x1e265b['getMarkers']()){const _0x5249d1=_0x27f3a1['getRange']();if(_0x2687f0['isEqual'](_0x5249d1)){_0x482132?(_0xa2755e['splice'](_0xa6f304,0x1),_0xa6f304--):_0x1e265b['removeMarker'](_0x27f3a1['name']);break;}}}}if(0x0==_0xa2755e['length'])return null;const _0x3f0f32=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x165c65,'join');for(const _0x30dcd5 of this['getSuggestions']())if(_0x30dcd5['author']['id']==_0x3305cd['id']&&'formatBlock'==_0x30dcd5['type']&&_0x30dcd5['data']['formatGroupId']==_0x6484be['formatGroupId']&&_0x30dcd5['subType']==_0x165c65&&Qt(_0x30dcd5,_0x1dfd29)&&(_0x3f0f32(_0x30dcd5['getRanges'](),_0xa2755e)||_0x3f0f32(_0xa2755e,_0x30dcd5['getRanges']()))){for(const _0x318d25 of _0xa2755e)_0x30dcd5['addRange'](_0x318d25);return _0x30dcd5;}const _0x59c4d4=_0x437d48(),_0x33cb15=_0x3305cd['id'],_0x4b0a86='formatBlock:'+_0x165c65,_0x3eafad=this['_setSuggestionData']({'id':_0x59c4d4,'type':_0x4b0a86,'data':_0x6484be,'createdAt':new Date(),'authorId':_0x33cb15,'attributes':_0x1dfd29});for(const _0x5177c5 of _0xa2755e)this['_addSuggestionMarker'](_0x4b0a86,_0x59c4d4,_0x33cb15,_0x5177c5,o['getMultiRangeId']());return _0x3eafad;}['markDeletion'](_0x543e67,_0x29ff98=null,_0x6b0e64={}){if(_0x543e67['isCollapsed'])return null;const _0x5551f0=this['editor']['plugins']['get']('Users')['me'],_0x5d12f8=new _0x4a3ae4(_0x543e67['start'],_0x543e67['end']);for(const {suggestion:_0x1c0fc4,meta:_0xeef348}of this['_findSuggestions'](_0x5d12f8,'insertion'))if(_0xeef348['isOwn']&&!_0xeef348['isNextTo']){if(_0x1c0fc4['isMultiRange']){const _0x4626d3=_0x1c0fc4['getRanges']()['filter'](_0x563f18=>'$graveyard'!=_0x563f18['root']['rootName']);_0x4626d3['every'](_0x2773ba=>_0x5d12f8['containsRange'](_0x2773ba,!0x0))&&_0x1c0fc4['discard']();if(_0x4626d3['some'](_0x39b4c3=>_0x39b4c3['containsRange'](_0x5d12f8,!0x0))){const _0x2d9174=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x29ff98,'accept');return this['forceDefaultExecution'](()=>_0x2d9174([_0x5d12f8],null,_0x6b0e64)),null;}}else{const _0x542e87=_0x5d12f8['getIntersection'](_0x1c0fc4['getFirstRange']());null!==_0x542e87&&_0x1c0fc4['_onDiscard']([_0x542e87],null,_0x6b0e64);}}if(_0x5d12f8['detach'](),_0x5d12f8['isCollapsed']||'$graveyard'==_0x5d12f8['root']['rootName'])return null;let _0x15199d=null,_0x1781cc=_0x5d12f8['start'],_0x4e8b97=_0x5d12f8['end'];const _0x2c9d41=this['_findSuggestions'](_0x5d12f8,'deletion');for(const {suggestion:_0x3e2892,meta:_0x3afc2b}of _0x2c9d41){const _0x45fb0e=this['_model']['createRange'](_0x1781cc,_0x4e8b97);if(_0x3afc2b['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3afc2b['containsRangeInObject']&&!_0x3afc2b['isInsideObject'])){if(_0x3e2892['isMultiRange']){if(!Qt(_0x3e2892,_0x6b0e64))continue;let _0x566820=!0x0;for(const _0xad6a08 of _0x3e2892['getRanges']()){if(_0xad6a08['containsRange'](_0x45fb0e,!0x0))return _0x3e2892;_0x45fb0e['containsRange'](_0xad6a08)||(_0x566820=!0x1);}_0x566820&&_0x3e2892['discard']();}else{const _0x4cfbb2=_0x3e2892['getFirstRange']();if(_0x4cfbb2['containsRange'](_0x45fb0e,!0x0))return _0x3e2892;if(!Qt(_0x3e2892,_0x6b0e64)){_0x45fb0e['containsRange'](_0x4cfbb2)?_0x3e2892['removeMarkers']():_0x4cfbb2['containsPosition'](_0x1781cc)?_0x1781cc=_0x4cfbb2['end']:_0x4cfbb2['containsPosition'](_0x4e8b97)&&(_0x4e8b97=_0x4cfbb2['start']);continue;}_0x1781cc=_0x1781cc['isBefore'](_0x4cfbb2['start'])?_0x1781cc:_0x4cfbb2['start'],_0x4e8b97=_0x4e8b97['isAfter'](_0x4cfbb2['end'])?_0x4e8b97:_0x4cfbb2['end'],_0x6b0e64=Object['assign']({},_0x3e2892['attributes']),_0x15199d?_0x4cfbb2['start']['isBefore'](_0x15199d['getFirstRange']()['start'])?(_0x15199d['removeMarkers'](),_0x15199d=_0x3e2892):_0x3e2892['removeMarkers']():_0x15199d=_0x3e2892;}}}if(_0x15199d)return this['_setSuggestionRange'](_0x15199d,this['_model']['createRange'](_0x1781cc,_0x4e8b97)),_0x15199d;{const _0xc4d184=_0x437d48(),_0x238369=this['_model']['createRange'](_0x1781cc,_0x4e8b97),_0x458950=_0x5551f0['id'],_0x4aa9b5=_0x29ff98?'deletion:'+_0x29ff98:'deletion',_0x5ee797=this['_setSuggestionData']({'id':_0xc4d184,'type':_0x4aa9b5,'createdAt':new Date(),'authorId':_0x458950,'attributes':_0x6b0e64});return this['_addSuggestionMarker'](_0x4aa9b5,_0xc4d184,_0x458950,_0x238369),_0x5ee797;}}['markMultiRangeDeletion'](_0x4a883f,_0x37ce86='multi',_0x146653={}){const _0x52e49b=this['editor']['plugins']['get']('Users')['me'],_0x1ebfdd=_0x4a883f['map'](_0x4feda3=>new _0x4a3ae4(_0x4feda3['start'],_0x4feda3['end'])),_0x1cab5a=new Set();for(const {suggestion:_0x19d5a5,meta:_0x27c0ef}of this['_findSuggestions'](_0x1ebfdd,'insertion'))_0x27c0ef['isOwn']&&!_0x27c0ef['isNextTo']&&_0x1cab5a['add'](_0x19d5a5);for(const _0x179de1 of _0x1cab5a)if(_0x179de1['isMultiRange']){const _0x14d90e=_0x179de1['getRanges']();(!_0x179de1['attributes']||!_0x179de1['attributes']['skipNestingCheck'])&&(_0x14d90e['every'](_0x496829=>_0x1ebfdd['some'](_0x3ea8e7=>_0x3ea8e7['containsRange'](_0x496829,!0x0)))&&_0x179de1['discard']());if(_0x1ebfdd['every'](_0x24dc60=>_0x14d90e['some'](_0x577c2a=>_0x577c2a['containsRange'](_0x24dc60,!0x0)))){const _0x5e8d89=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x37ce86,'accept');return this['forceDefaultExecution'](()=>_0x5e8d89(_0x4a883f,null,_0x146653)),null;}}else{const _0x4f7648=_0x179de1['getFirstRange']();_0x1ebfdd['some'](_0x1b678d=>_0x1b678d['containsRange'](_0x4f7648,!0x0))&&_0x179de1['discard']();if(_0x1ebfdd['every'](_0x8de3c2=>_0x4f7648['containsRange'](_0x8de3c2,!0x0))){const _0x48499c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x37ce86,'accept');return this['forceDefaultExecution'](()=>_0x48499c(_0x1ebfdd,null,_0x146653)),null;}}const _0x376a78=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x37ce86,'join');let _0x3e4e91=null;for(const _0x374412 of this['getSuggestions']())if(_0x374412['author']['id']==_0x52e49b['id']&&_0x374412['isInContent']&&'deletion'==_0x374412['type']&&_0x374412['subType']==_0x37ce86&&Qt(_0x374412,_0x146653)&&(_0x376a78(_0x374412['getRanges'](),_0x1ebfdd)||_0x376a78(_0x1ebfdd,_0x374412['getRanges']()))){if(_0x3e4e91){if(_0x374412['commentThread']&&_0x374412['commentThread']['length'])continue;for(const _0x3532b3 of _0x374412['getRanges']())_0x3e4e91['isIntersectingWithRange'](_0x3532b3)||_0x3e4e91['addRange'](_0x3532b3);_0x374412['removeMarkers']();}else{_0x3e4e91=_0x374412;for(const _0x83250c of _0x1ebfdd)_0x374412['isIntersectingWithRange'](_0x83250c)||_0x374412['addRange'](_0x83250c);}}if(_0x3e4e91)return _0x3e4e91;_0x1cab5a['clear']();for(const {suggestion:_0x5550e4,meta:_0x3762ec}of this['_findSuggestions'](_0x1ebfdd,'deletion'))_0x3762ec['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3762ec['containsRangeInObject']&&!_0x3762ec['isInsideObject'])&&Qt(_0x5550e4,_0x146653)&&_0x1cab5a['add'](_0x5550e4);for(const _0x160ca7 of _0x1cab5a){const _0x3aa97e=_0x160ca7['getRanges']();if(!_0x146653||!_0x146653['skipNestingCheck']){if(_0x1ebfdd['every'](_0x553067=>_0x3aa97e['some'](_0x112217=>_0x112217['containsRange'](_0x553067,!0x0))))return _0x160ca7;}(!_0x160ca7['attributes']||!_0x160ca7['attributes']['skipNestingCheck'])&&(_0x3aa97e['every'](_0x1982a0=>_0x1ebfdd['some'](_0x3ef504=>_0x3ef504['containsRange'](_0x1982a0,!0x0)))&&_0x160ca7['discard']());}const _0x5ae395=_0x437d48(),_0x51ea50=_0x52e49b['id'],_0x574f08='deletion:'+_0x37ce86,_0x325fb0=this['_setSuggestionData']({'id':_0x5ae395,'type':_0x574f08,'createdAt':new Date(),'authorId':_0x51ea50,'attributes':_0x146653});for(const _0x48c37e of _0x1ebfdd)_0x48c37e['detach'](),_0x48c37e['isCollapsed']||'$graveyard'==_0x48c37e['root']['rootName']||this['_addSuggestionMarker'](_0x574f08,_0x5ae395,_0x51ea50,_0x48c37e,o['getMultiRangeId']());return _0x325fb0;}['markAttributeChange'](_0x1a939a,_0x351d2a,_0x360ce1,_0x14db33,_0x40b0b9){if(_0x1a939a['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x1b3aec=this['editor']['plugins']['get']('Users')['me']['id'],_0x1986e8=Array['from'](this['_suggestions']['values']())['filter'](_0x5e54f8=>'attribute'==_0x5e54f8['type']&&_0x5e54f8['data']['key']==_0x351d2a&&_0x5e54f8['isIntersectingWithRange'](_0x1a939a));if('default'===this['_trackFormatChanges']){const _0x57b3ae=this['_findSuggestions'](_0x1a939a,'insertion')['filter'](({meta:_0x3a0f4e})=>_0x3a0f4e['isOwn']&&!_0x3a0f4e['isInsideObject']&&!_0x3a0f4e['isNextTo'])['map'](({suggestion:_0x1c64b1})=>_0x1c64b1);_0x1986e8['unshift'](..._0x57b3ae);}const _0x18246c=new Map([[_0x1a939a,_0x360ce1]]);for(const _0xd5634b of _0x1986e8){const _0x4dca0f='attribute'==_0xd5634b['type']?_0xd5634b['data']['oldValue']:void 0x0,_0x4650a3=_0xd5634b['getFirstRange'](),_0x52102b=Array['from'](_0x18246c['keys']())['find'](_0x4fa4b3=>_0x4fa4b3['isIntersecting'](_0x4650a3));if(!_0x52102b)continue;const _0x58e452=_0x52102b['getDifference'](_0x4650a3);this['_isBlockAttribute'](_0x351d2a)&&'insertion'==_0xd5634b['type']&&0x0!=_0x58e452['length']||(_0x18246c['delete'](_0x52102b),_0x58e452['forEach'](_0x26583a=>{_0x18246c['set'](_0x26583a,_0x360ce1);}),'insertion'!=_0xd5634b['type']&&_0x4dca0f!=_0x14db33&&_0x18246c['set'](_0x52102b['getIntersection'](_0x4650a3),_0x4dca0f));}const _0x2f8cb5=[];for(const [_0x393c11,_0x31f40c]of _0x18246c){const _0x3e297d=_0x437d48(),_0x5d6c5d={'key':_0x351d2a,'oldValue':_0x31f40c,'newValue':_0x14db33};_0x351d2a['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':_0x351d2a});const _0x3b84de=('attribute:'+(_0x351d2a+'|'+Jt({'newValue':_0x14db33})))['substring'](0x0,0x3c),_0x4fb672=this['_setSuggestionData']({'id':_0x3e297d,'type':_0x3b84de,'data':_0x5d6c5d,'createdAt':new Date(),'authorId':_0x1b3aec,'attributes':_0x40b0b9});_0x2f8cb5['push'](_0x4fb672),this['_addSuggestionMarker'](_0x3b84de,_0x3e297d,_0x1b3aec,_0x393c11);}return _0x2f8cb5;}['enableDefaultAttributesIntegration'](_0x304cb6){this['enableCommand'](_0x304cb6,(_0xb7bc29,..._0x257c92)=>{this['_recordAttributeChanges'](()=>{_0xb7bc29(..._0x257c92);});});}['registerBlockAttribute'](_0x406b53){this['_blockAttributeKeys']['add'](_0x406b53);}['registerInlineAttribute'](_0x369170){this['_inlineAttributeKeys']['add'](_0x369170);}['_getAttributeKey'](_0x2a8ba8){return'attribute'==_0x2a8ba8['type']?_0x2a8ba8['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x3e675c,_0x4b498c){const _0x48fcc5=_0x3e675c['getFirstMarker']();this['_model']['change'](_0x47008a=>{_0x47008a['updateMarker'](_0x48fcc5,{'range':_0x4b498c});});}['_addThreadToSuggestion'](_0x13d466){const _0x584fe0=_0x13d466['id'],_0x352518=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x584fe0)||this['_commentsRepository']['addCommentThread']({'channelId':_0x352518,'threadId':_0x584fe0,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3d0723=this['_commentsRepository']['getCommentThread'](_0x584fe0);_0x3d0723['unbind']('isRemovable'),_0x3d0723['isRemovable']=!0x1,_0x13d466['commentThread']=_0x3d0723;}['_checkSuggestionCorrectness'](_0x3f3725,_0x4f7d88,_0x23c773,_0x15c892){if(_0x3f3725['type']!=_0x4f7d88||_0x3f3725['subType']!=_0x23c773||_0x3f3725['creator']['id']!=_0x15c892)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x3e1147('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3f634b,_0x27324f){const _0x4691f6=_0x3f634b['getFirstRange']();if(_0x27324f['isEqual'](_0x4691f6))_0x3f634b['removeMarkers']();else{if(_0x4691f6['containsRange'](_0x27324f)){const _0x124a8c=this['_model']['createPositionAt'](_0x27324f['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3f634b,this['_model']['createRange'](_0x4691f6['start'],_0x124a8c));const _0x50b1c2=_0x437d48(),_0x56dcb3=_0x3f634b['creator']['id'],_0x22c022=_0x3f634b['type']+':'+_0x3f634b['subType'];this['_setSuggestionData']({'id':_0x50b1c2,'type':_0x22c022,'createdAt':new Date(),'authorId':_0x56dcb3,'data':_0x3f634b['data'],'attributes':_0x3f634b['attributes']});const _0x2bb214=this['_model']['createPositionAt'](_0x27324f['end']['parent'],'after'),_0x3cf8b3=this['_model']['createRange'](_0x2bb214,_0x4691f6['end']);this['_addSuggestionMarker'](_0x22c022,_0x50b1c2,_0x56dcb3,_0x3cf8b3);}else{if(_0x4691f6['containsPosition'](_0x27324f['start'])){const _0x3cbf65=this['_model']['createPositionAt'](_0x27324f['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3f634b,this['_model']['createRange'](_0x4691f6['start'],_0x3cbf65));}else{const _0x2a7de2=this['_model']['createPositionAt'](_0x27324f['end']['parent'],'after');this['_setSuggestionRange'](_0x3f634b,this['_model']['createRange'](_0x2a7de2,_0x4691f6['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x17ee5f){for(const {suggestion:_0x2578b8,meta:_0x44da5e}of this['_findSuggestions'](_0x17ee5f,'insertion')){if(!_0x44da5e['isOwn'])continue;const _0x338862=_0x2578b8['getRanges']();for(const _0x24dac0 of _0x338862)if(!_0x17ee5f['getDifference'](_0x24dac0)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x364ca1){const _0x2a8bfb=this['editor']['plugins']['get']('Users')['getUser'](_0x364ca1);if(!_0x2a8bfb)throw new _0x3e1147('track-changes-user-not-found',this);return _0x2a8bfb;}['_getExternalAuthor'](_0x50ee9e){const _0x33823e=this['editor']['plugins']['get']('Users'),_0x556740=_0x255576('external:'+_0x50ee9e),_0x4d9a3b=_0x33823e['getUser'](_0x556740);return _0x4d9a3b||_0x33823e['addUser']({'id':_0x556740,'name':_0x50ee9e});}['_createSuggestion'](_0x23956f,_0x2077a0,_0x20ac92,_0x407ed2,_0x818119){const _0x3c2bcb=this['_getAuthorFromId'](_0x407ed2),_0x4eff96=this['_suggestionFactory']['buildSuggestion'](_0x23956f,_0x2077a0,_0x20ac92,_0x3c2bcb,_0x818119,_0x95af95=>{this['_updateSuggestionData'](_0x20ac92,{'attributes':_0x95af95});const _0x32b61e=this['getSuggestion'](_0x20ac92);this['_joinWithAdjacentSuggestions'](new Set([_0x32b61e])),this['_refreshSuggestionsChain'](new Set([_0x32b61e]));});return this['listenTo'](_0x4eff96,'accept',()=>{this['_updateSuggestionData'](_0x20ac92,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x4eff96,'discard',()=>{this['_updateSuggestionData'](_0x20ac92,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x20ac92,_0x4eff96),this['_suggestionState']['set'](_0x4eff96,'notReady'),_0x4eff96;}['_splitMarkerName'](_0x31743b){const _0x30e8f1=_0x31743b['split'](':');return{'group':_0x30e8f1[0x0],'type':_0x30e8f1[0x1],'subType':_0x30e8f1['length']>=0x5?_0x30e8f1[0x2]:null,'id':_0x30e8f1['length']<0x5?_0x30e8f1[0x2]:_0x30e8f1[0x3],'authorId':_0x30e8f1['length']<0x5?_0x30e8f1[0x3]:_0x30e8f1[0x4],'markerCount':0x6==_0x30e8f1['length']?_0x30e8f1[0x5]:null};}['_breakSuggestionMarker'](_0x58ed1f,_0x56db30,_0x18f507){const _0x5cda3f=_0x58ed1f['getFirstRange'](),_0x4aff68=_0x5cda3f['start'],_0x5826d9=_0x5cda3f['end'];this['_setSuggestionRange'](_0x58ed1f,this['_model']['createRange'](_0x4aff68,_0x56db30));const _0x3c9765=_0x437d48(),_0x3b65a7=_0x58ed1f['creator']['id'],_0x6e66be=_0x58ed1f['type']+(_0x58ed1f['subType']?':'+_0x58ed1f['subType']:'');this['_setSuggestionData']({'id':_0x3c9765,'type':_0x6e66be,'createdAt':new Date(),'authorId':_0x3b65a7,'originalSuggestionId':_0x58ed1f['id'],'attributes':_0x58ed1f['attributes'],'data':_0x58ed1f['data']});const _0x58e9a8=this['_getAttributeKey'](_0x58ed1f);('formatBlock'==_0x58ed1f['type']||_0x58e9a8&&this['_isBlockAttribute'](_0x58e9a8))&&(_0x18f507=this['_model']['createPositionBefore'](_0x18f507['parent'])),this['_addSuggestionMarker'](_0x6e66be,_0x3c9765,_0x3b65a7,this['_model']['createRange'](_0x18f507,_0x5826d9));}['_findSuggestions'](_0x47b719,_0x3bcb33=null){const _0x5dbdf9=[],_0xbfc1c7=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x47b719)||(_0x47b719=[_0x47b719]);for(const _0x540e2e of this['getSuggestions']()){if(!_0x540e2e['isInContent'])continue;if(_0x3bcb33&&_0x540e2e['type']!=_0x3bcb33)continue;let _0x2b4dcd=!0x1;for(const _0x439f68 of _0x540e2e['getRanges']()){for(const _0x5d6b1f of _0x47b719){const _0x2c380a=_0x5d6b1f['start']['isEqual'](_0x439f68['end'])||_0x5d6b1f['end']['isEqual'](_0x439f68['start']);if(_0x2c380a||_0x5d6b1f['getIntersection'](_0x439f68)){const _0x5841ff=_0x5d6b1f['containsRange'](_0x439f68)&&Pt(this['_model']['schema'],_0x439f68['start'],_0x5d6b1f),_0x2d8b99=_0x439f68['containsRange'](_0x5d6b1f)&&Pt(this['_model']['schema'],_0x5d6b1f['start'],_0x439f68);_0x5dbdf9['push']({'suggestion':_0x540e2e,'meta':{'isOwn':_0xbfc1c7==_0x540e2e['author'],'isNextTo':_0x2c380a,'isInsideObject':_0x5841ff,'containsRangeInObject':_0x2d8b99}}),_0x2b4dcd=!0x0;break;}}if(_0x2b4dcd)break;}}return _0x5dbdf9;}['_addSuggestionMarker'](_0x315750,_0x13d2f3,_0xa50bd8,_0x3a96d1,_0x234124){this['_model']['change'](_0x16f042=>{let _0x57fe0e='suggestion:'+_0x315750+':'+_0x13d2f3+':'+_0xa50bd8;_0x234124&&(_0x57fe0e=_0x57fe0e+':'+_0x234124),_0x16f042['addMarker'](_0x57fe0e,{'range':_0x3a96d1,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0xc8152){const _0x1e8059=_0xc8152['previous'],_0x39d4b8=_0xc8152['next'];_0xc8152['previous']=null,_0xc8152['next']=null,null!=_0x1e8059&&_0x1e8059['next']==_0xc8152&&(_0x1e8059['next']=_0x39d4b8),null!=_0x39d4b8&&_0x39d4b8['previous']==_0xc8152&&(_0x39d4b8['previous']=_0x1e8059),'ready'==this['_suggestionState']['get'](_0xc8152)&&(this['_suggestionState']['set'](_0xc8152,'removed'),this['fire']('suggestionUnloaded',_0xc8152,_0x1e8059,_0x39d4b8));}['_setSuggestionData'](_0x4b50b9){const _0x14997d=_0x4b50b9['id'],_0x122be8=this['addSuggestionData'](_0x4b50b9);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0xdd86bc=this['editor']['plugins']['get']('PendingActions'),_0x3bd76b=_0x122be8['hasComments'],_0x12d0bd=_0x122be8['subType']?_0x122be8['type']+':'+_0x122be8['subType']:_0x122be8['type'],_0xc15c69=this['editor']['locale'],_0x57fc72=_0xdd86bc['add'](c(_0xc15c69,'PENDING_ACTION_SUGGESTION')),_0x4e6685={'id':_0x14997d,'type':_0x12d0bd,'hasComments':_0x3bd76b,'data':_0x4b50b9['data']||null,'originalSuggestionId':_0x4b50b9['originalSuggestionId']||null,'attributes':_0x122be8['attributes']};this['_adapter']['addSuggestion'](_0x4e6685)['then'](_0x536009=>{_0x122be8['_saved']=!0x0,_0xdd86bc['remove'](_0x57fc72),_0x536009&&_0x536009['createdAt']&&(this['_suggestions']['get'](_0x14997d)['createdAt']=_0x536009['createdAt']);})['catch'](_0x12ea32=>{throw _0xebf613('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x122be8['discard']();}),_0x122be8['stopListening'](),this['_suggestions']['delete'](_0x122be8['id']),this['_suggestionState']['delete'](_0x122be8),_0x12ea32;});}return _0x122be8;}['_isBlockAttribute'](_0x12db3b){return this['_blockAttributeKeys']['has'](_0x12db3b);}['_updateSuggestionData'](_0x4905c3,_0x12601d){const _0x3ca537=this['editor']['plugins']['get']('PendingActions'),_0x42f927=this['getSuggestion'](_0x4905c3);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x42f927['_saved']){const _0x108221=_0x3ca537['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4905c3,_0x12601d)['then'](()=>{_0x3ca537['remove'](_0x108221);});}else _0x42f927['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4905c3,_0x12601d);});}}['_getSuggestionData'](_0x58a850){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x3e1147('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x58a850);}['_handleNewSuggestionMarker'](_0x5a0a45){const {id:_0x5df88a,type:_0x2865ce,subType:_0x4b95f9,authorId:_0x5603a4}=this['_splitMarkerName'](_0x5a0a45),_0x4da7e4=this['_suggestions']['get'](_0x5df88a)||this['_createSuggestion'](_0x2865ce,_0x4b95f9,_0x5df88a,_0x5603a4,{});switch(this['_checkSuggestionCorrectness'](_0x4da7e4,_0x2865ce,_0x4b95f9,_0x5603a4),this['_suggestionState']['get'](_0x4da7e4)){case'notReady':this['_getSuggestionData'](_0x5df88a)['then'](_0x570d46=>{let _0x59c211=Promise['resolve']();_0x570d46['hasComments']&&(_0x59c211=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x5df88a})),_0x59c211['then'](()=>{this['addSuggestionData'](_0x570d46)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x4da7e4,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x5df88a,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x4da7e4,'ready'),this['fire']('suggestionLoaded',_0x4da7e4);break;case'ready':this['fire']('suggestionChanged',_0x4da7e4);}return _0x4da7e4['addMarkerName'](_0x5a0a45),_0x4da7e4;}['_refreshSuggestionsChain'](_0x513f2c){const _0x48a4e9=Array['from'](_0x513f2c),_0x471c74=_0x48a4e9['filter'](_0x34d0e7=>'attribute'==_0x34d0e7['type']);this['_refreshAttributeSuggestionsChain'](_0x471c74);const _0x5dcda8=_0x48a4e9['filter'](_0xc90d72=>!_0xc90d72['isMultiRange']&&'attribute'!=_0xc90d72['type']),_0xfba0b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x227837=>!_0x227837['isMultiRange']&&'attribute'!=_0x227837['type']),_0x5e6b11=_0xfba0b['filter'](_0xf05f4e=>!_0x513f2c['has'](_0xf05f4e)),_0x39e703=new Map(_0xfba0b['map'](_0x443be7=>[_0x443be7,this['_suggestionFactory']['getSuggestionCallback'](_0x443be7['type'],_0x443be7['subType'],'chain')])),_0x46cc2d=new Map(_0xfba0b['map'](_0x14af02=>[_0x14af02,_0x14af02['getFirstRange']()])),_0x4e0329=new Set(),_0x10cde3=new Set();for(let _0x5d455c=0x0;_0x5d455c<_0x5dcda8['length'];_0x5d455c++)_0x288ccf(_0x5dcda8[_0x5d455c],_0x5dcda8,_0x5d455c+0x1);for(let _0x4b4750=0x0;_0x4b4750<_0x5dcda8['length'];_0x4b4750++)_0x288ccf(_0x5dcda8[_0x4b4750],_0x5e6b11,0x0);const _0x5131d5=new Set();for(let _0x8be1c=0x0;_0x8be1c<_0x5dcda8['length'];_0x8be1c++){const _0x39410a=_0x5dcda8[_0x8be1c];!_0x10cde3['has'](_0x39410a)&&_0x39410a['previous']&&(_0x5131d5['add'](_0x39410a['previous']),_0x39410a['previous']['next']===_0x39410a&&(_0x39410a['previous']['next']=null),_0x39410a['previous']=null),!_0x4e0329['has'](_0x39410a)&&_0x39410a['next']&&(_0x5131d5['add'](_0x39410a['next']),_0x39410a['next']['previous']===_0x39410a&&(_0x39410a['next']['previous']=null),_0x39410a['next']=null);}function _0x288ccf(_0x2340cb,_0x14e324,_0x34f6fb){for(let _0xf9b653=_0x34f6fb;_0xf9b653<_0x14e324['length'];_0xf9b653++){const _0x3d6193=_0xe6c073(_0x2340cb,_0x14e324[_0xf9b653]);_0x3d6193&&(_0x3d6193[0x0]['next']=_0x3d6193[0x1],_0x3d6193[0x1]['previous']=_0x3d6193[0x0],_0x4e0329['add'](_0x3d6193[0x0]),_0x10cde3['add'](_0x3d6193[0x1]));}}function _0xe6c073(_0x22ffb3,_0x341de3){if(_0x22ffb3['author']['id']!==_0x341de3['author']['id'])return null;const _0x1dce4e=_0x39e703['get'](_0x22ffb3)(_0x22ffb3,_0x341de3,_0x46cc2d['get'](_0x22ffb3),_0x46cc2d['get'](_0x341de3));if(!_0x1dce4e)return null;return _0x39e703['get'](_0x341de3)(_0x22ffb3,_0x341de3,_0x46cc2d['get'](_0x22ffb3),_0x46cc2d['get'](_0x341de3))?_0x1dce4e[0x1]['commentThread']&&_0x1dce4e[0x1]['commentThread']['length']?null:_0x1dce4e:null;}_0x5131d5['size']&&this['_refreshSuggestionsChain'](_0x5131d5);}['_refreshAttributeSuggestionsChain'](_0x581525){if(0x0==_0x581525['length'])return;const _0x1c13fc=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4a4e59=>'attribute'==_0x4a4e59['type']&&_0x4a4e59['_isDataLoaded']),_0x3b47e3=[],_0x566935=new Map();for(const _0xcced87 of _0x1c13fc){const _0x1a371d=_0x255576(_0xcced87['attributes']);_0x566935['has'](_0x1a371d)||(_0x566935['set'](_0x1a371d,_0x3b47e3['length']),_0x3b47e3['push']([]));const _0x1dfdc0=_0x566935['get'](_0x1a371d);_0x3b47e3[_0x1dfdc0]['push'](_0xcced87);}!(function(){_0x3b47e3['sort']((_0x1d08c1,_0x3ec4c4)=>{const _0x2bd50d=_0x1d08c1[0x0]['createdAt'],_0xd6b5cb=_0x3ec4c4[0x0]['createdAt'];return _0x2bd50d==_0xd6b5cb?_0x1d08c1[0x0]['attributes']['groupId']<_0x3ec4c4[0x0]['attributes']['groupId']?-0x1:0x1:_0x2bd50d<_0xd6b5cb?-0x1:0x1;});for(const _0x4b9cc1 of _0x3b47e3)_0x4b9cc1['sort']((_0x5d8ab0,_0x7504e6)=>_0x5d8ab0['id']<_0x7504e6['id']?-0x1:0x1);}());for(let _0x4d457d=0x0;_0x4d457d<_0x3b47e3['length'];_0x4d457d++){if(0x0==_0x3b47e3[_0x4d457d]['length'])continue;const _0x4b2800=[];for(let _0x59a975=_0x4d457d+0x1;_0x59a975<_0x3b47e3['length'];_0x59a975++)0x0!=_0x3b47e3[_0x59a975]['length']&&_0xee9d72(_0x3b47e3[_0x4d457d],_0x3b47e3[_0x59a975])&&_0x4b2800['push'](_0x59a975);for(const _0x490cd1 of _0x4b2800)_0x3b47e3[_0x4d457d]=_0x3b47e3[_0x4d457d]['concat'](_0x3b47e3[_0x490cd1]),_0x3b47e3[_0x490cd1]=[];}for(const _0x29b897 of _0x3b47e3)for(let _0x3f6b9d=0x0;_0x3f6b9d<_0x29b897['length'];_0x3f6b9d++){const _0xc85e17=_0x29b897[_0x3f6b9d+0x1]||null;_0x29b897[_0x3f6b9d]['next']!==_0xc85e17&&(_0x29b897[_0x3f6b9d]['next']=_0xc85e17);}for(const _0xbe5662 of _0x3b47e3)for(let _0x205362=0x0;_0x205362<_0xbe5662['length'];_0x205362++){const _0x39ed62=_0xbe5662[_0x205362-0x1]||null;_0xbe5662[_0x205362]['previous']!==_0x39ed62&&(_0xbe5662[_0x205362]['previous']=_0x39ed62);}function _0xee9d72(_0x400569,_0x3f850a){if(_0x400569[0x0]['attributes']['groupId']!==_0x3f850a[0x0]['attributes']['groupId']&&_0x400569[0x0]['author']!==_0x3f850a[0x0]['author'])return!0x1;if(!function(_0x3fe990,_0x136dba){if(!_0x3fe990['hasComments']&&!_0x136dba['hasComments'])return!0x0;if(_0x3fe990['hasComments']&&_0x136dba['hasComments'])return!0x1;if(_0x3fe990['hasComments']&&_0x136dba['createdAt']<_0x3fe990['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x136dba['hasComments']&&_0x3fe990['createdAt']<_0x136dba['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x400569[0x0],_0x3f850a[0x0]))return!0x1;const _0x50ee0d=Vt(_0x400569[0x0]['attributes'],'groupId'),_0x167215=Vt(_0x3f850a[0x0]['attributes'],'groupId');if(!_0x36c7b1(_0x50ee0d,_0x167215))return!0x1;return!!_0x400569['every'](_0x2d2b2e=>_0x3f850a['some'](_0x4172b3=>_0x2d2b2e['getFirstRange']()['isEqual'](_0x4172b3['getFirstRange']())))&&_0x3f850a['every'](_0x421fd4=>_0x400569['some'](_0x293ff8=>_0x421fd4['getFirstRange']()['isEqual'](_0x293ff8['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0xe5e2ca){const _0x40a468=Array['from'](_0xe5e2ca),_0x3bbca4=this['getSuggestions']({'skipNotAttached':!0x0}),_0x11a8a5=_0x3bbca4['filter'](_0x4716c6=>!_0xe5e2ca['has'](_0x4716c6)),_0x3e8fa9=new Map(_0x40a468['map'](_0x16987c=>[_0x16987c,this['_suggestionFactory']['getSuggestionCallback'](_0x16987c['type'],_0x16987c['subType'],'join')])),_0x4e376b=new Map(_0x3bbca4['map'](_0x1eb7a9=>[_0x1eb7a9,_0x1eb7a9['getRanges']()]));for(let _0x501e90=0x0;_0x501e90<_0x40a468['length'];_0x501e90++){if(_0x1405b3(this,_0x40a468[_0x501e90],_0x40a468,_0x501e90+0x1))return!0x0;}for(let _0x4929ad=0x0;_0x4929ad<_0x40a468['length'];_0x4929ad++){if(_0x1405b3(this,_0x40a468[_0x4929ad],_0x11a8a5,0x0))return!0x0;}return!0x1;function _0x1405b3(_0x47aff5,_0x40268a,_0x18d226,_0x36fb0d){for(let _0x4368b4=_0x36fb0d;_0x4368b4<_0x18d226['length'];_0x4368b4++){const _0x197e50=_0x18d226[_0x4368b4];if(_0x197e50['type']!==_0x40268a['type']||_0x197e50['author']['id']!==_0x40268a['author']['id']||_0x197e50['subType']!==_0x40268a['subType'])continue;if(!Wt(_0x40268a,_0x197e50))continue;if('attribute'==_0x40268a['type']&&_0x40268a['data']['oldValue']!=_0x197e50['data']['oldValue'])continue;if('attribute'==_0x40268a['type']&&_0x47aff5['_isBlockAttribute'](_0x40268a['data']['key']))continue;if('formatBlock'==_0x40268a['type']){const _0x4d8036=_0x47aff5['editor']['model'],_0xcc2276=_0x40268a['getContainedElement']();if(_0xcc2276&&(_0x4d8036['schema']['isObject'](_0xcc2276)||_0x4d8036['schema']['isLimit'](_0xcc2276)))continue;}const _0x1a110d=_0x3e8fa9['get'](_0x40268a),_0x5f359d=_0x4e376b['get'](_0x40268a),_0x30534d=_0x4e376b['get'](_0x197e50),_0x24ae7d=_0x40268a['commentThread']&&_0x40268a['commentThread']['length'],_0x318ed5=_0x197e50['commentThread']&&_0x197e50['commentThread']['length'];if(!_0x24ae7d&&_0x1a110d(_0x30534d,_0x5f359d))return _0x47aff5['_joinSuggestions'](_0x197e50,_0x40268a),_0x4e376b['delete'](_0x40268a),!0x0;if(!_0x318ed5&&_0x1a110d(_0x5f359d,_0x30534d))return _0x47aff5['_joinSuggestions'](_0x40268a,_0x197e50),_0x4e376b['delete'](_0x197e50),!0x0;}return!0x1;}}['_joinSuggestions'](_0x35d553,_0x5c4862){if(_0x35d553['isMultiRange']){for(const _0x419b22 of _0x5c4862['getRanges']())_0x35d553['addRange'](_0x419b22);}else{const _0x3f4d9d=_0x5c4862['getFirstRange']()['end'];this['_setSuggestionRange'](_0x35d553,this['_model']['createRange'](_0x35d553['getFirstRange']()['start'],_0x3f4d9d));}_0x5c4862['removeMarkers']();}['_getMarkerAnnouncementText'](_0x2083db,_0x334072,_0x5192f6){const _0x402571=_0x2083db['startsWith']('format')||_0x2083db['startsWith']('attribute')?'FORMATTING':_0x2083db['toUpperCase']();return c(this['editor']['locale'],_0x334072+'_'+_0x402571+'_SUGGESTION_ANNOUNCEMENT',_0x5192f6);}['_initAriaMarkerChangeAnnouncements'](){const _0x11459a=this['editor'];if(!_0x11459a['ui'])return;const {ariaLiveAnnouncer:_0x1f61b6}=_0x11459a['ui'];_0xb9afc5(this['_model'],({left:_0x42485e,entered:_0x27de9d})=>{for(const _0x56e218 of _0x42485e){const {group:_0x560c83,type:_0x20fe0f}=this['_splitMarkerName'](_0x56e218['name']);if('suggestion'===_0x560c83){_0x1f61b6['announce'](this['_getMarkerAnnouncementText'](_0x20fe0f,'LEAVE'));break;}}for(const _0x222602 of _0x27de9d){const {group:_0x5e747a,type:_0x31a84a}=this['_splitMarkerName'](_0x222602['name']);if('suggestion'===_0x5e747a){_0x1f61b6['announce'](this['_getMarkerAnnouncementText'](_0x31a84a,'ENTER',_0x4d9260(_0xc56237)));break;}}});}['_processAttributeChanges'](_0xecd8b0){if(this['_recordAttributeSuggestions'])return!0x1;const _0x12aa3a=this['editor'],_0x5a544a=_0x12aa3a['model']['document']['differ']['getChanges']();if(0x0==_0x5a544a['length'])return!0x1;const _0x1a5f72=[],_0xe6c40b=_0x5a544a['filter'](_0xcc87d5=>'attribute'==_0xcc87d5['type']),_0x30ced9=_0x5a544a['filter'](_0x20b4fd=>'insert'==_0x20b4fd['type']&&'$text'!=_0x20b4fd['name']),_0x2a9d76=_0x5a544a['filter'](_0x515adc=>'remove'==_0x515adc['type']&&'$text'!=_0x515adc['name']);for(const _0x24cd4c of _0xe6c40b)_0x1a5f72['push']({'key':_0x24cd4c['attributeKey'],'newValue':_0x24cd4c['attributeNewValue'],'oldValue':_0x24cd4c['attributeOldValue'],'range':Ht(_0x24cd4c['range'],_0x12aa3a['model'])});for(const _0x256284 of _0x30ced9){const _0x11042e=_0x2a9d76['find'](_0x85c4b1=>_0x85c4b1['position']['isEqual'](_0x256284['position']));_0x11042e&&_0x1a5f72['push']({'key':u,'newValue':_0x256284['name'],'oldValue':_0x11042e['name'],'range':_0x12aa3a['model']['createRangeOn'](_0x256284['position']['nodeAfter'])});}return 0x0!=_0x1a5f72['length']&&this['_reduceExistingSuggestions'](_0xecd8b0,_0x1a5f72);}['_processAttributeSuggestions'](_0x53be6c){let _0x160bef=!0x1;const _0x1d5108=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3e32b0=>_0x3e32b0['data']['newRange']&&_0x3e32b0['name']['startsWith']('suggestion:attribute:'));for(const _0x2b1a3a of _0x1d5108){const {subType:_0x438504,id:_0x20fb07}=this['_splitMarkerName'](_0x2b1a3a['name']),_0x994a4=_0x438504['split']('|')[0x0];for(const _0x476bd2 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x476bd2['id']!=_0x20fb07&&'attribute'==_0x476bd2['type']&&_0x476bd2['data']&&_0x476bd2['data']['key']==_0x994a4&&_0x476bd2['getFirstRange']()['isIntersecting'](_0x2b1a3a['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x476bd2,_0x2b1a3a['data']['newRange'],_0x53be6c),_0x160bef=!0x0);}return _0x160bef;}['_recordAttributeChanges'](_0x5a42af){this['_recordAttributeSuggestions']=!0x0,_0x5a42af();}['_isRegisteredAttribute'](_0x6b4edb){const _0x3622f0=this['_isBlockAttribute'](_0x6b4edb),_0x1bacf3=this['_inlineAttributeKeys']['has'](_0x6b4edb);return _0x3622f0||_0x1bacf3;}['_reduceExistingSuggestions'](_0x3e0e10,_0x353034){if(0x0==_0x353034['length'])return!0x1;let _0x277270=!0x1;for(const _0x5b7253 of _0x353034){const _0x30a8f5=this['_findSuggestions'](_0x5b7253['range'],'attribute')['filter'](_0x209a49=>!_0x209a49['meta']['isNextTo'])['map'](_0x35acd8=>_0x35acd8['suggestion']),_0x6a378e=_0x255576({'newValue':_0x5b7253['newValue']});_0x30a8f5['filter'](_0x33022f=>{const [_0x497fdd,_0x5e4a17]=_0x33022f['subType']['split']('|');return _0x497fdd==_0x5b7253['key']&&_0x5e4a17!=_0x6a378e;})['forEach'](_0x65d79c=>{this['_reduceSuggestionAttributeRange'](_0x65d79c,_0x5b7253['range'],_0x3e0e10),_0x277270=!0x0;});}return _0x277270;}['_reduceSuggestionAttributeRange'](_0x400c22,_0x3e4190,_0x2e2215){const _0x28d9ec=_0x400c22['getFirstRange']()['getDifference'](_0x3e4190);0x0!==_0x28d9ec['length']?0x1!==_0x28d9ec['length']?this['_breakSuggestionMarker'](_0x400c22,_0x3e4190['start'],_0x3e4190['end']):this['_setSuggestionRange'](_0x400c22,_0x28d9ec[0x0]):_0x2e2215['removeMarker'](_0x400c22['getFirstMarker']());}}class Ft{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x39cfad){this['_editor']=_0x39cfad,this['_model']=_0x39cfad['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x168d50,_0x4e3fb0,_0xbf9450,_0xe2a9cb,_0x2da1c3,_0x1645ff){return new o(this['_model'],{'type':_0x168d50,'subType':_0x4e3fb0,'id':_0xbf9450,'author':_0xe2a9cb,'creator':_0xe2a9cb,'attributes':_0x2da1c3,'onAttributesChange':_0x1645ff,'onAccept':(..._0x5004f4)=>this['getSuggestionCallback'](_0x168d50,_0x4e3fb0,'accept')(..._0x5004f4),'onDiscard':(..._0x366afb)=>this['getSuggestionCallback'](_0x168d50,_0x4e3fb0,'discard')(..._0x366afb)});}['registerCustomCallback'](_0xae6f84,_0xb52e9e,_0x3464b1,_0x430ff1){const _0x14a863=_0xae6f84+':'+_0xb52e9e+':'+_0x3464b1;this['_customCallbacks']['set'](_0x14a863,_0x430ff1);}['getSuggestionCallback'](_0x46dc5e,_0x1c87bf,_0x174f06){const _0x5b0d3b=_0x46dc5e+':'+_0x1c87bf+':'+_0x174f06;return this['_customCallbacks']['get'](_0x5b0d3b)||this['_defaultCallbacks']['get'](_0x46dc5e+':'+_0x174f06);}['_registerDefaultCallbacks'](){const _0x380899=()=>!0x1,_0x14774f=_0x4ebb63=>{_0x4ebb63['sort']((_0x5aed03,_0x575716)=>_0x5aed03['start']['isBefore'](_0x575716['start'])?0x1:-0x1),this['_model']['change'](_0x301481=>{for(const _0x587c92 of _0x4ebb63){let _0x11626f;_0x11626f=_0x587c92['end']['isAtEnd']&&_0x587c92['end']['parent']==_0x587c92['start']['nodeAfter']?_0x301481['createSelection'](_0x587c92['start']['nodeAfter'],'on'):_0x301481['createSelection'](_0x587c92),this['_model']['deleteContent'](_0x11626f,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x24b9b9=(_0x9b91b6,_0x17e2b7)=>{_0x17e2b7&&this['_model']['change'](_0x13f946=>{const {commandName:_0x3777e2,commandParams:_0x27bcc1=[]}=_0x17e2b7,_0xabed50=_0x9b91b6['map'](_0x9ae006=>(Gt(_0x9ae006)&&(_0x9ae006=this['_model']['createRange'](_0x9ae006['end'])),_0x9ae006))['filter'](_0x3da860=>'$graveyard'!==_0x3da860['root']['rootName']);if(_0xabed50['length']<0x1)return;const _0x1990c7=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x2182b8=>_0x4a3ae4['fromRange'](_0x2182b8));_0x13f946['setSelection'](_0xabed50);for(const _0x53b404 of this['_editor']['commands']['commands']())_0x53b404['refresh']();_0x27bcc1['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x3777e2,..._0x27bcc1);const _0x3ad409=_0x1990c7['filter'](_0xe41017=>'$graveyard'!=_0xe41017['root']['rootName']);_0x3ad409['length']>0x0&&_0x13f946['setSelection'](_0x3ad409);for(const _0x2f2391 of _0x1990c7)_0x2f2391['detach']();});},_0x680dd3=(_0x28f48a,_0x4f04c5)=>0x1==_0x28f48a['length']&&0x1==_0x4f04c5['length']&&_0x28f48a[0x0]['end']['isEqual'](_0x4f04c5[0x0]['start']),_0x309886=(_0x23f548,_0x189741,_0x30d75c,_0x5b58f2)=>zt(_0x23f548,_0x189741,_0x30d75c,_0x5b58f2)?[_0x23f548,_0x189741]:zt(_0x189741,_0x23f548,_0x5b58f2,_0x30d75c)?[_0x189741,_0x23f548]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x380899),this['_defaultCallbacks']['set']('insertion:discard',_0x14774f),this['_defaultCallbacks']['set']('insertion:join',_0x680dd3),this['_defaultCallbacks']['set']('insertion:chain',_0x309886),this['_defaultCallbacks']['set']('deletion:accept',_0x14774f),this['_defaultCallbacks']['set']('deletion:discard',_0x380899),this['_defaultCallbacks']['set']('deletion:join',_0x680dd3),this['_defaultCallbacks']['set']('deletion:chain',_0x309886),this['_defaultCallbacks']['set']('formatInline:accept',_0x24b9b9),this['_defaultCallbacks']['set']('formatInline:discard',_0x380899),this['_defaultCallbacks']['set']('formatInline:join',_0x680dd3),this['_defaultCallbacks']['set']('formatInline:chain',_0x380899),this['_defaultCallbacks']['set']('formatBlock:accept',_0x24b9b9),this['_defaultCallbacks']['set']('formatBlock:discard',_0x380899),this['_defaultCallbacks']['set']('formatBlock:join',_0x680dd3),this['_defaultCallbacks']['set']('formatBlock:chain',_0x380899),this['_defaultCallbacks']['set']('attribute:accept',_0x380899),this['_defaultCallbacks']['set']('attribute:discard',(_0x3e6f54,_0x58353d)=>{if(!_0x58353d)return;const _0x967fa8=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x50c1c2=>{if(_0x58353d['key']==u)for(const _0x579abb of _0x3e6f54){const _0x1f435a=_0x579abb['start']['nodeAfter'],_0x5b7d48=_0x58353d['oldValue'];_0x50c1c2['rename'](_0x1f435a,_0x5b7d48);}else{if(_0x967fa8['_isBlockAttribute'](_0x58353d['key'])){for(const _0x15008b of _0x3e6f54)void 0x0!==_0x58353d['oldValue']?_0x50c1c2['setAttribute'](_0x58353d['key'],_0x58353d['oldValue'],_0x15008b['start']['nodeAfter']):_0x50c1c2['removeAttribute'](_0x58353d['key'],_0x15008b['start']['nodeAfter']);}else{for(const _0x142f61 of _0x3e6f54)_0x58353d['oldValue']?_0x50c1c2['setAttribute'](_0x58353d['key'],_0x58353d['oldValue'],_0x142f61):_0x50c1c2['removeAttribute'](_0x58353d['key'],_0x142f61);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x680dd3);}}function Pt(_0x255e5c,_0x32570e,_0x3790ce){for(const _0x5f253d of _0x32570e['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5f253d['root']==_0x5f253d)return!0x1;if(!_0x3790ce['containsItem'](_0x5f253d))return!0x1;if(_0x255e5c['isObject'](_0x5f253d)||_0x255e5c['isLimit'](_0x5f253d))return!0x0;}return!0x1;}function Gt(_0x24f0d3){return _0x24f0d3['end']['parent']==_0x24f0d3['start']['nodeAfter']&&_0x24f0d3['end']['isAtStart'];}function Lt(_0x15ddea,_0x16c027,_0x14671b,_0x5024ba){const _0x3a288b=_0x5ca522=>!_0x5ca522['item']['is']('$textProxy')&&!_0x5024ba['isObject'](_0x5ca522['item']),_0x24faac=_0x15ddea['start']['getLastMatchingPosition'](_0x3a288b),_0x433076=_0x15ddea['end']['getLastMatchingPosition'](_0x3a288b,{'direction':'backward'});return(!_0x15ddea['start']['isEqual'](_0x24faac)||!_0x15ddea['end']['isEqual'](_0x433076))&&(_0x24faac['isBefore'](_0x433076)?_0x14671b['updateMarker'](_0x16c027,{'range':_0x14671b['createRange'](_0x24faac,_0x433076)}):_0x14671b['removeMarker'](_0x16c027),!0x0);}function Jt(_0x4ae5e6){return _0x255576(_0x4ae5e6);}function Kt(_0x6ae894){const _0x106007=_0x6ae894['start']['nodeAfter'];return _0x106007&&_0x106007['is']('element');}function Ht(_0x5850dd,_0x3b4737){return null==_0x5850dd['end']['nodeBefore']&&_0x5850dd['end']['parent']==_0x5850dd['start']['nodeAfter']?qt(_0x5850dd['start']['nodeAfter'],_0x3b4737):_0x5850dd;}function qt(_0x253dcd,_0x26d1c7){const _0x77a615=_0x26d1c7['schema']['isObject'](_0x253dcd)||_0x26d1c7['schema']['isSelectable'](_0x253dcd);return _0x26d1c7['createRange'](_0x26d1c7['createPositionAt'](_0x253dcd,'before'),_0x77a615?_0x26d1c7['createPositionAfter'](_0x253dcd):_0x26d1c7['createPositionAt'](_0x253dcd,'end'));}function zt(_0x3eef8b,_0x48c434,_0x43f8d7,_0x53ebf5){return!!Wt(_0x3eef8b,_0x48c434)&&_0x43f8d7['end']['isEqual'](_0x53ebf5['start']);}function Wt(_0x55088b,_0x18916f){if(!_0x55088b['_isDataLoaded']||!_0x18916f['_isDataLoaded'])return!0x1;const _0x7d9ed2=new Set(Object['keys'](_0x55088b['attributes'])),_0x24385d=new Set(Object['keys'](_0x18916f['attributes']));if(_0x7d9ed2['delete']('groupId'),_0x24385d['delete']('groupId'),0x0==_0x7d9ed2['size']&&0x0==_0x24385d['size'])return!0x0;if(_0x7d9ed2['size']!=_0x24385d['size'])return!0x1;const _0x31cc68={..._0x55088b['attributes']},_0xb1ffc1={..._0x18916f['attributes']};return delete _0x31cc68['groupId'],delete _0xb1ffc1['groupId'],JSON['stringify'](_0x31cc68)==JSON['stringify'](_0xb1ffc1);}function Qt(_0x1396f4,_0x258a1c){const _0x28a27c=Xt(_0x1396f4['attributes']),_0x3cb0a5=Xt(_0x258a1c);if(!_0x1396f4['_isDataLoaded'])return!0x1;for(const _0xf3637a of Object['keys'](_0x3cb0a5))if(!_0x36c7b1(_0x28a27c[_0xf3637a],_0x3cb0a5[_0xf3637a]))return!0x1;return!0x0;}function Xt(_0xf45741){const _0x5c8721=Object['assign']({},_0xf45741);return delete _0x5c8721['skipNestingCheck'],delete _0x5c8721['tablePasteChainId'],_0x5c8721;}class pe extends/* #__PURE__ -- @preserve */
25
+ _0x3c6964(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x30e87c,_0x2362be,_0x3da385,_0x16dc40){super(),this['model']=_0x2362be,this['view']=_0x3da385,this['commentThreadController']=_0x16dc40,this['_editor']=_0x30e87c,this['_acceptCommand']=_0x30e87c['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x30e87c['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x1f78b1,_0x3195f9)=>_0x1f78b1||_0x3195f9),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x2c96c1=>_0x2c96c1&&this['_editor']['model']['canEditAt'](_0x2362be['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x867a1a=>_0x867a1a&&this['_editor']['model']['canEditAt'](_0x2362be['getRanges']())),this['_pendingAction']=null,_0x3da385['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x3da385,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x3da385,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x3da385,'change:isDirty',()=>{_0x3da385['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 _0x4888c3=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x4888c3);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x21b685{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x1427e4,_0x35cf9a,_0x5ab542,_0x1544c9){super(_0x1427e4),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x5d8842(_0x1427e4,c(_0x1427e4,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x35cf9a['authoredAt']),this['bind']('authoredAt')['to'](_0x35cf9a),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',_0x35cf9a,'authoredAt',this,'descriptionParts',(_0x17cc3d,_0x5a5424,_0x4c343b)=>{const _0x17e78c=_0x4c343b['map'](_0x10ab30=>ls(_0x10ab30['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x17cc3d-0x1,_0x35cf9a['author']['name'],_0x5a5424?_0x1544c9['formatDateTime'](_0x5a5424):'',new DOMParser()['parseFromString'](_0x17e78c,'text/html')['body']['textContent']]);}),this['focusables']=new _0x308d50(),this['focusTracker']=new _0x1dba1d(),this['keystrokes']=new _0x124a9a(),this['focusCycler']=new _0x4943f7({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x11908a=>_0x11908a['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x35cf9a,this['_localUser']=_0x5ab542,this['_config']=_0x1544c9,_0x1544c9['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0xc54641(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x592f64}=this['_config'];this['commentsListView']=new _0x592f64(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',_0x1e2928=>_0x1e2928+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x3f961e,_0x351c0a)=>_0x3f961e||!!_0x351c0a);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x4d1433}=this['_config'],_0xe26d1a=new _0x4d1433(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x48c02b=_0xe26d1a['commentInputView'];return _0xe26d1a['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x48c02b,'value',(_0x1aea98,_0xb734e2,_0x369238)=>!!_0x369238||_0x1aea98&&!_0xb734e2),_0x48c02b['on']('submit',(_0x2daad8,_0x4d1879)=>{this['fire']('addComment',_0x4d1879),_0x48c02b['editor']['setData']('');}),_0x48c02b['on']('cancel',()=>this['focus']()),_0x48c02b['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0xe26d1a;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x1a8599,_0xc7295,_0x545b4f,_0x1a0380){super(_0x1a8599,_0xc7295,_0x545b4f,_0x1a0380),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x4c92e0=>_0x4c92e0&&_0x4c92e0[0x0]?_0x4c92e0[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x25587a,_0x5b9cae)=>{let _0x57da3e='';for(const _0x36bd73 of _0x25587a)_0x57da3e+='<p>'+ls(_0x36bd73['content'],_0x36bd73['color'])+'</p>';return _0x5b9cae?_0x57da3e:ti(_0x57da3e,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x1a0380['SuggestionView'](_0x1a8599,_0xc7295,{'formatDateTime':_0x1a0380['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 _0x29ed74=this['bindTemplate'],_0x5b7659=[this['suggestionView']];return this['commentsListView']&&_0x5b7659['push'](this['commentsListView']),this['commentThreadInputView']&&_0x5b7659['push'](this['commentThreadInputView']),_0x5b7659['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x29ed74['if']('isActive','ck-suggestion-wrapper--active'),_0x29ed74['to']('type',_0x3554df=>'ck-suggestion-'+_0x3554df),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':_0x29ed74['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x5b7659};}['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 _0x21b685{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x428443,_0x281e2f,_0x1fd33f){super(_0x428443),this['_model']=_0x281e2f,this['_config']=_0x1fd33f,this['set']('description',''),this['bind']('authoredAt')['to'](_0x281e2f),this['acceptButton']=this['_createButton'](c(_0x428443,'Accept\x20suggestion'),_0x26076b,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x428443,'Discard\x20suggestion'),_0x37583a,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x1b6fe0(_0x428443,_0x281e2f['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x308d50([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x1dba1d(),this['keystrokes']=new _0x124a9a(),this['focusCycler']=new _0x4943f7({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x13c625=>_0x13c625['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x5ad924=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x5ad924['innerHTML']=this['description'],this['on']('change:description',(_0x56de8b,_0x2989bb,_0x2a987e)=>{_0x5ad924['innerHTML']=_0x2a987e;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x1316ff=this['bindTemplate'],_0x308f41=[{'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':_0x1316ff['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x1316ff['to']('authoredAt',_0x5184db=>this['_config']['formatDateTime'](_0x5184db))}]}]},{'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']&&_0x308f41['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':_0x308f41}]};}['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'](_0x3f6786,_0xb978c4,_0x41504a,_0x1a33e0,_0x3bfe57){const _0x2492e9=new _0x31bf54(this['locale']);return _0x2492e9['set']({'label':_0x3f6786,'icon':_0xb978c4,'tooltip':!0x0,'tooltipPosition':_0x3bfe57}),_0x2492e9['extendTemplate']({'attributes':{'class':_0x41504a}}),_0x2492e9['on']('execute',()=>{this['fire'](_0x1a33e0,this['_model']['id']);}),_0x2492e9;}['_setupKeyboardNavigation'](){const _0x41beaf=this['element'];this['keystrokes']['listenTo'](_0x41beaf);for(const _0x304f40 of this['focusables'])this['focusTracker']['add'](_0x304f40['element']),this['keystrokes']['listenTo'](_0x304f40['element']);this['keystrokes']['set']('enter',(_0x18919d,_0x491dd9)=>{_0x41beaf===_0x18919d['target']&&(this['focusCycler']['focusFirst'](),_0x491dd9());}),this['keystrokes']['set']('esc',(_0x1dea4f,_0xf80dd4)=>{_0x41beaf!==_0x1dea4f['target']&&(this['focus'](),_0xf80dd4());});}}class d extends _0x497417{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x508eb0,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x48a51c){super(_0x48a51c),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4881e8=this['editor']['config'];_0x4881e8['define']('trackChanges.SuggestionThreadView',fe),_0x4881e8['define']('trackChanges.SuggestionView',we),_0x4881e8['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4881e8['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x27d4d7,_0x26d2c3){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x3eb036,_0x167a65]of this['_handleControllerBuffer']){const _0x171617=this['_suggestionToController']['has'](_0x3eb036);_0x171617||_0x167a65?_0x171617&&_0x167a65&&this['_destroyController'](_0x3eb036):this['_initializeController'](_0x3eb036);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x27d4d7,_0x26d2c3);}['init'](){const _0x2c4b19=this['editor'],_0x4f1677=_0x2c4b19['plugins']['get']('TrackChangesEditing'),_0x4d9d1b=_0x2c4b19['plugins']['get']('Annotations'),_0x2efaa7=_0x2c4b19['plugins']['get']('EditorAnnotations'),_0x50d990=_0x2c4b19['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x2efaa7['addSourceCollector'](()=>{const _0xf46ce7=[];for(const [_0x2ea13d,_0x5ac413]of Array['from'](this['_suggestionToController'])){const _0x3df12b=_0x2ea13d['getAllAdjacentSuggestions'](),_0x48cf6e=[];for(const _0x340b4a of _0x3df12b){if(!_0x340b4a['isInContent'])continue;if(_0x340b4a['isMultiRange']){_0x48cf6e['push'](..._0x340b4a['getRanges']());continue;}const _0x44f75e=_0x340b4a['getFirstRange']();if(_0x48cf6e['length']>0x0){const _0x7bba7=_0x48cf6e[0x0]['getJoined'](_0x44f75e);if(_0x7bba7){_0x48cf6e[0x0]=_0x7bba7;continue;}}_0x48cf6e['push'](_0x44f75e);}_0xf46ce7['push']([_0x5ac413['view'],_0x48cf6e]);}return _0xf46ce7;}),this['listenTo'](_0x4f1677,'suggestionLoaded',(_0x44ce68,_0x26d280)=>{this['listenTo'](_0x26d280,'change:previous',(_0xf87914,_0x3429e2,_0x5f3682,_0x894bc5)=>{_0x26d280['isInContent']&&(null==_0x5f3682?(this['_updateController'](_0x894bc5['head']),this['_handleSuggestionControllerDelayed'](_0x26d280,!0x1)):(this['_updateController'](_0x5f3682['head']),null==_0x894bc5&&this['_handleSuggestionControllerDelayed'](_0x26d280,!0x0)));}),null!==_0x26d280['previous']?this['_updateController'](_0x26d280['head']):this['_handleSuggestionControllerDelayed'](_0x26d280,!0x1);}),this['listenTo'](_0x4f1677,'suggestionUnloaded',(_0x12e2fe,_0x1af1d8,_0x49209a)=>{this['stopListening'](_0x1af1d8,'change:previous'),this['_handleControllerBuffer']['delete'](_0x1af1d8),this['_suggestionToController']['has'](_0x1af1d8)&&this['_destroyController'](_0x1af1d8),_0x49209a&&this['_updateController'](_0x49209a['head']);}),this['listenTo'](_0x4f1677,'suggestionChanged',(_0x498026,_0x1aaa18)=>{this['_updateController'](_0x1aaa18);}),this['listenTo'](_0x4d9d1b,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x50d990,'addComment',(_0x1216cd,{threadId:_0x5cb319,isFromAdapter:_0x37e195})=>{if(_0x37e195||!_0x4f1677['hasSuggestion'](_0x5cb319))return;const _0x552887=_0x4f1677['getSuggestion'](_0x5cb319);this['_suggestionToController']['get'](_0x552887)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x22fdfe=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3e240d;for(const _0x57fb31 in _0x22fdfe){const _0x563b76=_0x57fb31,_0x3f278f=_0x22fdfe[_0x563b76];if('trackChangesLicenseKeyValid'==_0x3f278f||'trackChangesLicenseKeyInvalid'==_0x3f278f||'trackChangesLicenseKeyExpired'==_0x3f278f||'trackChangesLicenseKeyDomainLimit'==_0x3f278f||'trackChangesLicenseKeyNotAllowed'==_0x3f278f||'trackChangesLicenseKeyEvaluationLimit'==_0x3f278f||'trackChangesLicenseKeyTrialLimit'==_0x3f278f||'trackChangesLicenseKeyUsageLimit'==_0x3f278f){delete _0x22fdfe[_0x563b76],_0x3e240d=_0x3f278f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x3e240d&&_0x22fdfe['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x3e240d&&_0x22fdfe['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x3e240d&&_0x22fdfe['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x3e240d&&_0x22fdfe['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x3e240d&&_0x22fdfe['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x3e240d&&_0x22fdfe['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x3e240d&&_0x22fdfe['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x2ebc27=this['editor']['plugins']['get']('Annotations'),_0x355e90=this['editor']['plugins']['get']('TrackChangesEditing'),_0x457517=Array['from'](_0x2ebc27['activeAnnotations'],_0x6b0105=>_0x6b0105['innerView'])['filter'](_0x18a851=>this['_viewToController']['has'](_0x18a851)),_0x497bd5=[];for(const _0x4ea2ec of _0x457517){const _0x5cc917=this['_viewToController']['get'](_0x4ea2ec)['model']['getAllAdjacentSuggestions']();_0x497bd5['push'](..._0x5cc917['reduce']((_0x2ffe88,_0x3750dd)=>[..._0x2ffe88,..._0x3750dd['getMarkerNames']()],[]));}_0x355e90['activeMarkers']=_0x497bd5;}['_addUIComponentsToFactory'](){const _0x5efd0a=this['editor'],_0x3f50e7=_0x5efd0a['locale'],_0x4cdd5a=c(_0x3f50e7,'Track\x20changes'),_0x12cb3f=new _0x2aba35([{'type':'switchbutton','model':new _0x201032({'withText':!0x0,'isToggleable':!0x0,'label':_0x4cdd5a,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x201032({'withText':!0x0,'label':c(_0x3f50e7,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x201032({'withText':!0x0,'label':c(_0x3f50e7,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x201032({'withText':!0x0,'label':c(_0x3f50e7,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x201032({'withText':!0x0,'label':c(_0x3f50e7,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x5efd0a['plugins']['has']('TrackChangesPreview')&&_0x12cb3f['addMany']([{'type':'separator'},{'type':'button','model':new _0x201032({'withText':!0x0,'label':c(_0x3f50e7,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x38c8b7 of _0x12cb3f)if(ke(_0x38c8b7)){const _0x33e4a2=_0x5efd0a['commands']['get'](_0x38c8b7['model']['commandName']);_0x38c8b7['model']['bind']('isOn','isEnabled')['to'](_0x33e4a2,'value','isEnabled');}_0x5efd0a['ui']['componentFactory']['add']('trackChanges',_0x17eb5=>this['_createToolbarButton'](_0x17eb5,_0x12cb3f,_0x4cdd5a)),_0x5efd0a['ui']['componentFactory']['add']('menuBar:trackChanges',_0x4cc57f=>this['_createMenuBarMenu'](_0x4cc57f,_0x12cb3f,_0x4cdd5a));}['_createToolbarButton'](_0x11a67d,_0x23399b,_0x59830e){const _0x2ddd48=_0x532b40(_0x11a67d,_0x8f7f98),_0x1cbb6b=this['editor']['commands']['get']('trackChanges');_0x2ddd48['buttonView']['set']({'tooltip':_0x59830e,'label':_0x59830e,'icon':_0x30a5bc}),_0x2ddd48['buttonView']['bind']('isOn')['to'](_0x1cbb6b,'value'),_0x2ddd48['buttonView']['on']('execute',()=>{_0x1cbb6b['execute'](),this['editor']['editing']['view']['focus']();}),_0x3635e7(_0x2ddd48,_0x23399b,{'role':'menu'});const _0x10bb19=[];for(const _0x1e2806 of _0x23399b)ke(_0x1e2806)&&_0x10bb19['push'](this['editor']['commands']['get'](_0x1e2806['model']['commandName']));const _0x5c7b6d=_0x2ddd48['buttonView'];return _0x5c7b6d['actionView']['unbind']('isEnabled'),_0x5c7b6d['arrowView']['unbind']('isEnabled'),_0x5c7b6d['actionView']['bind']('isEnabled')['to'](_0x1cbb6b,'isEnabled'),_0x5c7b6d['arrowView']['bind']('isEnabled')['toMany'](_0x10bb19,'isEnabled',(..._0x1d6cde)=>_0x1d6cde['some'](_0xaaa6ab=>_0xaaa6ab)),_0x2ddd48['on']('execute',_0x503946=>{this['editor']['execute'](_0x503946['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x2ddd48;}['_createMenuBarMenu'](_0x2768dd,_0x322f48,_0x307984){const _0x1ec8dc=new _0x1d74c1(_0x2768dd),_0x2d1fd6=this['editor']['commands']['get']('trackChanges');_0x1ec8dc['buttonView']['set']({'label':_0x307984,'icon':_0x30a5bc});const _0x4152bc=new _0x57f2d6(_0x2768dd);for(const _0x6874b4 of _0x322f48){if('separator'==_0x6874b4['type']){_0x4152bc['items']['add'](new _0x5008e8(_0x2768dd));continue;}const _0xa56f3c=new _0x4cd13d(_0x2768dd,_0x1ec8dc),_0x8bb478=new _0x8bc95(_0x2768dd),_0x5f2ca8=_0x6874b4['model'];_0x8bb478['bind'](...Object['keys'](_0x5f2ca8))['to'](_0x5f2ca8),_0x8bb478['delegate']('execute')['to'](_0x1ec8dc),_0x8bb478['on']('execute',()=>{this['editor']['execute'](_0x5f2ca8['commandName']),this['editor']['editing']['view']['focus']();}),_0xa56f3c['children']['add'](_0x8bb478),_0x4152bc['items']['add'](_0xa56f3c);}return _0x1ec8dc['bind']('isEnabled')['to'](_0x2d1fd6,'isEnabled'),_0x1ec8dc['panelView']['children']['add'](_0x4152bc),_0x1ec8dc;}['_initializeController'](_0x2780a8){const _0xdd13f6=this['editor'],_0x4b2e16=_0xdd13f6['config'],_0x562c04=_0xdd13f6['plugins']['get']('Annotations'),_0x39135b=_0xdd13f6['plugins']['get']('CommentsRepository'),_0x2fb9f9=_0xdd13f6['plugins']['get']('EditorAnnotations'),_0x2f7347=_0xdd13f6['plugins']['get'](_0x508eb0)['me'],_0x3a1e59=_0x4b2e16['get']('trackChanges')['SuggestionThreadView'],_0x220416=_0x4b2e16['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x14e371,CommentThreadInputView:_0x2a8f12}=_0xdd13f6['plugins']['get']('CommentsUI');let _0x35521a,_0x1a5f78,_0x44f841;this['_annotationViews']['has'](_0x2780a8['id'])?(_0x1a5f78=this['_annotationViews']['get'](_0x2780a8['id']),_0x35521a=_0x1a5f78['mainView']):(_0x35521a=new _0x3a1e59(_0xdd13f6['locale'],_0x2780a8,_0x2f7347,{'disableComments':this['_disableComments'],'editorConfig':{..._0x4b2e16['get']('comments.editorConfig'),'licenseKey':_0x4b2e16['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x4b2e16['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4b2e16['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4b2e16['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x479f58(_0x4b2e16['get']('locale')),'CommentView':_0x4b2e16['get']('comments')['CommentView'],'CommentsListView':_0x14e371,'CommentThreadInputView':_0x2a8f12,'SuggestionView':_0x220416}),_0x35521a['suggestionView']['acceptButton']['on']('execute',()=>{_0xdd13f6['editing']['view']['focus']();}),_0x35521a['suggestionView']['discardButton']['on']('execute',()=>{_0xdd13f6['editing']['view']['focus']();}),_0x1a5f78=_0x562c04['createAnnotationView'](this['editor']['locale'],_0x35521a),_0x1a5f78['bind']('isDirty')['to'](_0x35521a,'isDirty'),_0x1a5f78['bind']('length')['to'](_0x35521a),_0x1a5f78['bind']('type')['to'](_0x35521a,'type',_0x36994f=>'suggestion-'+_0x36994f),_0x35521a['on']('escape',()=>{_0x44f841['fire']('escape');}),this['_annotationViews']['set'](_0x2780a8['id'],_0x1a5f78));const _0x5d7a61=_0x39135b['createCommentThreadController'](_0x2780a8['commentThread'],_0x35521a),_0x7f2ec=new pe(_0xdd13f6,_0x2780a8,_0x35521a,_0x5d7a61),_0x2d5129=_0x2780a8['getAllAdjacentSuggestions']()['filter'](_0x568ef4=>_0x568ef4['isInContent']);_0x35521a['descriptionParts']=_0xdd13f6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x2d5129),this['_suggestionToController']['set'](_0x2780a8,_0x7f2ec),this['_viewToController']['set'](_0x35521a,_0x7f2ec),_0x44f841=_0x562c04['createAnnotation']({'view':_0x1a5f78,'target':()=>{const _0xcb9ed0=[],_0x566fce=_0x2780a8['getAllAdjacentSuggestions']()['filter'](_0x4072b0=>_0x4072b0['isInContent']);for(const _0x1b419d of _0x566fce)_0xcb9ed0['push'](..._0x1b419d['getMarkers']());return _0x2f9556(_0xdd13f6['editing'],_0xcb9ed0);},'type':()=>'suggestion-'+_0x7f2ec['view']['type']}),_0x39135b['_bindAnnotationToEditors'](_0x35521a,_0x44f841),_0x562c04['add'](_0x44f841),_0x2fb9f9['registerAnnotation'](_0x44f841);}['_destroyController'](_0x598941){const _0x435ec5=this['editor']['plugins']['get']('CommentsRepository'),_0x2c67c0=this['editor']['plugins']['get']('Annotations'),_0x52a0c4=this['_suggestionToController']['get'](_0x598941),_0x4c117a=_0x52a0c4['view'],_0x3b4a14=_0x2c67c0['getByInnerView'](_0x4c117a);_0x435ec5['_unbindEditors'](_0x4c117a),_0x3b4a14&&_0x2c67c0['remove'](_0x3b4a14),this['_suggestionToController']['delete'](_0x598941),this['_viewToController']['delete'](_0x4c117a),_0x52a0c4['destroy']();}['_updateController'](_0x5cbafa){if(!_0x5cbafa['isInContent']||!this['_suggestionToController']['has'](_0x5cbafa))return;const _0x490440=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5d3bb9=this['_suggestionToController']['get'](_0x5cbafa),_0x3e0dbc=_0x5cbafa['getAllAdjacentSuggestions']();_0x5d3bb9['view']['descriptionParts']=_0x490440['descriptionFactory']['getDescriptions'](_0x3e0dbc);}['destroy'](){for(const _0x1aa56c of this['_suggestionToController']['keys']())this['_destroyController'](_0x1aa56c);for(const _0x56e260 of this['_annotationViews']['values']())_0x56e260['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x275170){return'model'in _0x275170;}class k extends _0x497417{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x3e8bd9){this['editor']['plugins']['get'](p)['adapter']=_0x3e8bd9;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x256d8e){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x256d8e);}['getSuggestions']({skipNotAttached:_0x1db64a=!0x1,toJSON:_0x180318=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x1db64a,'toJSON':_0x180318});}['getSuggestion'](_0x56bee0){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x56bee0);}}const w=['Pagination'];class T extends _0x497417{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4ddca1=this['editor'];if(_0x4ddca1['config']['define']('trackChangesData.editorCreator',_0x2d7872=>{const _0x2aa8c9=_0x4ddca1['model']['document']['getRootNames']()['reduce']((_0x540dd3,_0x3666d1)=>(_0x540dd3[_0x3666d1]='',_0x540dd3),{});return _0x4ddca1['constructor']['create'](_0x2aa8c9,_0x2d7872);}),'function'!=typeof _0x4ddca1['config']['get']('trackChangesData')['editorCreator'])throw new _0x3e1147('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x296abb){return N(this['editor'],!0x0,_0x296abb);}['getDataWithDiscardedSuggestions'](_0x709feb){return N(this['editor'],!0x1,_0x709feb);}}class D extends _0x497417{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3bfa06){function _0x42f348(_0x5bb65e){return _0x5bb65e['map'](_0x159a03=>String['fromCharCode'](_0x159a03))['join']('');}super(_0x3bfa06),this['result']='end',_0x3bfa06[_0x42f348([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x42f348([0x76,0x69,0x65,0x77])][_0x42f348([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x42f348([0x61,0x75,0x74,0x6f]),_0x3bfa06[_0x42f348([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x42f348([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x42f348([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x42f348([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x42f348([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(_0x4184a1){return void 0x0!==_0x4184a1['getRootsAttributes'];}async function N(_0x5d27f5,_0x858a2f,_0x30216b){const _0x2f16df=_0x241a54(_0x5d27f5,w);_0x2f16df['plugins']['push'](p,D),_0x2f16df['rootsAttributes']=Fe(_0x5d27f5)?_0x5d27f5['getRootsAttributes']():void 0x0;const _0xa0bbcb=document['createDocumentFragment'](),_0x58fd97=_0x5d27f5['config']['get']('trackChangesData')['editorCreator'],_0x1d92a3=await _0x58fd97(_0x2f16df,()=>function(_0x3d1625){const _0x45d092=document['createElement']('div');return _0x3d1625['appendChild'](_0x45d092),_0x45d092;}(_0xa0bbcb));!function(_0x2c6c89,_0x41ae6c){const _0x421264=_0x2c6c89['model']['document']['getRootNames']()['reduce']((_0x1ca8f8,_0x2ed554)=>(_0x1ca8f8[_0x2ed554]=_0x2c6c89['data']['get']({'rootName':_0x2ed554}),_0x1ca8f8),{}),_0x3ac859=_0x2c6c89['plugins']['get']('Users')['users']['map'](_0x2fd59d=>({'id':_0x2fd59d['id'],'name':_0x2fd59d['name']})),_0x400a04=_0x2c6c89['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xa01fb9=_0x2c6c89['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xea7351=_0x41ae6c['plugins']['get']('Users'),_0x1bae8e=_0x41ae6c['plugins']['get']('TrackChangesEditing'),_0x131671=_0x41ae6c['plugins']['get']('CommentsRepository');for(const _0x33fad7 of _0x131671['getCommentThreads']())_0x33fad7['remove']();for(const _0x49f2ca of _0x3ac859)_0xea7351['getUser'](_0x49f2ca['id'])||_0xea7351['addUser'](_0x49f2ca);_0xea7351['me']||_0xea7351['useAnonymousUser']();for(const _0x5a2fdd of _0xa01fb9)_0x131671['addCommentThread'](_0x5a2fdd);for(const _0x213332 of _0x400a04)_0x1bae8e['addSuggestionData'](_0x213332);_0x41ae6c['data']['set'](_0x421264);}(_0x5d27f5,_0x1d92a3),_0x1d92a3['execute'](_0x858a2f?'acceptAllSuggestions':'discardAllSuggestions');const _0x5e43c4=Fe(_0x1d92a3)?_0x1d92a3['getFullData'](_0x30216b):_0x1d92a3['data']['get'](_0x30216b);return await _0x1d92a3['destroy'](),_0x5e43c4;}class Me extends _0x21b685{['options'];constructor(_0x4eca24,_0x427bf6){super(_0x4eca24),this['options']=_0x427bf6,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'](_0xbaa00c,_0x2a9c73){if(!this['element'])return;const _0x456533=[];for(const [_0x38ddd1,_0x478e6c]of _0xbaa00c){const _0x4773a6=document['createElement']('div');_0x4773a6['setAttribute']('data-ck-root-name',_0x38ddd1),_0x4773a6['className']=_0x478e6c['classes']+'\x20ck-track-changes-preview__root-container',_0x4773a6['innerHTML']=_0x478e6c['content'],_0x456533['push'](_0x4773a6);}_0x2a9c73(this['element'],_0x456533),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x56aab9{constructor(_0xa814ce){super(_0xa814ce),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x17a285=this['editor'],_0x5099b7=_0x17a285['locale'],_0x24129a=_0x17a285['plugins']['get']('Dialog');let _0xa87373;const _0x38e1e5=function(_0x5c768c){const _0x2efc20={};if('editables'in _0x5c768c['ui']['view']){for(const [_0x583e52,_0x4cea52]of Object['entries'](_0x5c768c['ui']['view']['editables']))_0x2efc20[_0x583e52]=_0x4cea52['element'];}else _0x2efc20[_0x5c768c['model']['document']['getRootNames']()[0x0]]=_0x5c768c['ui']['view']['editable']['element'];return _0x2efc20;}(_0x17a285),_0x1ed7d7=function(_0x286071){let _0x1f2bef=0x0;for(const _0x1a3b37 of Object['values'](_0x286071))_0x1f2bef=Math['max'](_0x1f2bef,_0x1a3b37['getBoundingClientRect']()['width']);let _0x51b884=0x0;for(const _0x5c3cdc of Object['values'](_0x286071))_0x51b884+=_0x5c3cdc['getBoundingClientRect']()['height'];const _0x59a410=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x49f7cd=Math['min'](_0x51b884,_0x59a410);return{'width':_0x1f2bef,'height':_0x49f7cd};}(_0x38e1e5);_0x24129a['show']({'id':'finalContentPreview','title':c(_0x5099b7,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x5099b7,{'dialogRects':_0x1ed7d7}),'onHide':()=>{_0xa87373['detachFromDom']();},'onShow':()=>{_0x17a285['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x543813=>{const _0x95d9a4=this['_standarizeRootsData'](_0x543813,_0x17a285,_0x38e1e5);_0x24129a['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x95d9a4,_0x17a285['config']['get']('trackChanges.preview.renderFunction'));}),_0xa87373=new _0x58d82f(_0x5099b7,[_0x24129a['view']]),_0xa87373['attachToDom'](),_0xa87373['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x17a285['once']('destroy',()=>{_0xa87373['detachFromDom']();});const _0x413b6d=_0x24129a['view']['headerView']['class'];_0x24129a['view']['headerView']['class']=_0x413b6d?_0x413b6d+'\x20ck-reset_all':'ck-reset_all',_0x24129a['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x24129a['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x267337=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x5209af=_0x267337['previewMode'],_0x4a4703={};if('$labels'===_0x5209af){for(const _0x35b0ee of _0x267337['getMergeFieldsIds']())_0x4a4703[_0x35b0ee]=_0x267337['getLabel'](_0x35b0ee)||_0x35b0ee;}else{const _0x24c1f8='$defaultValues'===_0x5209af?_0x267337['getDefaultValues']():_0x267337['getDataSetValues'](_0x5209af,!0x0);for(const _0xc19797 of Object['entries'](_0x24c1f8)){const [_0xa6d44e,_0x73b40]=_0xc19797;_0x4a4703[_0xa6d44e]=null!==_0x73b40?_0x73b40:_0x267337['getLabel'](_0xa6d44e)||_0xa6d44e;}}return{'mergeFieldsData':_0x4a4703};}['_standarizeRootsData'](_0x66b0d2,_0x448981,_0x5afdcf){let _0x377212;if('string'==typeof _0x66b0d2){const _0x9d4a27=_0x448981['model']['document']['getRootNames']()[0x0];_0x377212={[_0x9d4a27]:_0x66b0d2};}else _0x377212=_0x66b0d2;const _0x542b0d=this['_fixMediaEmbeds'](_0x377212,_0x448981),_0x295c49=function(_0x3288a3,_0x1045cd){for(const [_0x22f4cd,_0x3d5863]of _0x3288a3)_0x3d5863['classes']=_0x1045cd[_0x22f4cd]['classList']['value']['replace']('ck-focused','');return _0x3288a3;}(this['_sortRoots'](_0x448981)['reduce']((_0x4b1b6e,_0x1ce914)=>(_0x4b1b6e['push']([_0x1ce914,{'content':_0x542b0d[_0x1ce914],'classes':''}]),_0x4b1b6e),[]),_0x5afdcf);return _0x295c49;}['_fixMediaEmbeds'](_0x8da6b5,_0x4bdc49){if(!_0x4bdc49['plugins']['has']('MediaEmbedEditing'))return _0x8da6b5;const _0x408d28=_0x4bdc49['plugins']['get']('MediaEmbedEditing');for(const [_0x3efb35,_0x2b60e5]of Object['entries'](_0x8da6b5)){const _0x24fca5=document['createElement']('div');_0x24fca5['innerHTML']=_0x2b60e5,(_0x24fca5['querySelectorAll']('figure.media')['forEach'](_0x1cdf4f=>{const _0x139eb9=_0x1cdf4f['querySelector']('oembed');if(_0x139eb9){const _0x2cc036=_0x139eb9['getAttribute']('url');if(_0x2cc036){const _0x4d8b23=_0x408d28['registry']['getMediaViewElement'](new _0x5a1ade(_0x4bdc49['editing']['view']['document']),_0x2cc036,{'elementName':'','renderForEditingView':!0x0}),_0x4fc755=document['createElement']('div');_0x4fc755['classList']['add']('ck-media__wrapper'),_0x4d8b23['render'](_0x4fc755,_0x4bdc49['editing']['view']['domConverter']),_0x139eb9['replaceWith'](_0x4fc755);}}}),_0x8da6b5[_0x3efb35]=_0x24fca5['innerHTML']);}return _0x8da6b5;}['_sortRoots'](_0x1b3fde){if(!function(_0x3e918d){return void 0x0!==_0x3e918d['getRootsAttributes'];}(_0x1b3fde))return _0x1b3fde['model']['document']['getRootNames']();const _0x1a2dcc=[],_0xc585b6=new Map();for(const _0x2c4544 of _0x1b3fde['model']['document']['getRootNames']()){const _0x1ca24a=_0x1b3fde['editing']['view']['getDomRoot'](_0x2c4544)['getClientRects']()['item'](0x0);_0x1a2dcc['push'](_0x2c4544),_0xc585b6['set'](_0x2c4544,_0x1ca24a);}return _0x1a2dcc['sort']((_0x1ff36f,_0x4b4696)=>{const _0x5a5027=_0xc585b6['get'](_0x1ff36f),_0x4884a1=_0xc585b6['get'](_0x4b4696);return _0x5a5027['y']-_0x4884a1['y']||_0x5a5027['x']-_0x4884a1['x'];}),_0x1a2dcc;}}class te extends _0x497417{static get['requires'](){return[T,_0x2dc774];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x51eca5){super(_0x51eca5),_0x51eca5['commands']['add']('previewFinalContent',new re(this['editor'])),_0x51eca5['config']['define']('trackChanges.preview.renderFunction',(_0x5e28e8,_0x2fb9be)=>{for(const _0x232c77 of _0x2fb9be)_0x5e28e8['appendChild'](_0x232c77);});}}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};