@ckeditor/ckeditor5-track-changes 47.7.3-alpha.0 → 47.7.4

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 (230) hide show
  1. package/build/track-changes.js +1 -1
  2. package/dist/index.js +4 -4
  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/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +27 -27
  150. package/src/commands/acceptsuggestioncommand.js +1 -1
  151. package/src/commands/discardsuggestioncommand.js +1 -1
  152. package/src/commands/executeonallsuggestionscommand.js +1 -1
  153. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  154. package/src/commands/previewfinalcontentcommand.js +1 -1
  155. package/src/commands/trackchangescommand.js +1 -1
  156. package/src/index.js +1 -1
  157. package/src/integrations/ai.js +1 -1
  158. package/src/integrations/aiassistant.js +1 -1
  159. package/src/integrations/aiquickactions.js +1 -1
  160. package/src/integrations/alignment.js +1 -1
  161. package/src/integrations/basicstyles.js +1 -1
  162. package/src/integrations/blockquote.js +1 -1
  163. package/src/integrations/bookmark.js +1 -1
  164. package/src/integrations/casechange.js +1 -1
  165. package/src/integrations/ckbox.js +1 -1
  166. package/src/integrations/codeblock.js +1 -1
  167. package/src/integrations/comments.js +1 -1
  168. package/src/integrations/deletecommand.js +1 -1
  169. package/src/integrations/emoji.js +1 -1
  170. package/src/integrations/entercommand.js +1 -1
  171. package/src/integrations/findandreplace.js +1 -1
  172. package/src/integrations/font.js +1 -1
  173. package/src/integrations/footnotes.js +1 -1
  174. package/src/integrations/formatpainter.js +1 -1
  175. package/src/integrations/heading.js +1 -1
  176. package/src/integrations/highlight.js +1 -1
  177. package/src/integrations/horizontalline.js +1 -1
  178. package/src/integrations/htmlembed.js +1 -1
  179. package/src/integrations/image.js +1 -1
  180. package/src/integrations/imagereplace.js +1 -1
  181. package/src/integrations/imagestyle.js +1 -1
  182. package/src/integrations/importword.js +1 -1
  183. package/src/integrations/indent.js +1 -1
  184. package/src/integrations/inputcommand.js +1 -1
  185. package/src/integrations/legacylist.js +1 -1
  186. package/src/integrations/legacylistproperties.js +1 -1
  187. package/src/integrations/lineheight.js +1 -1
  188. package/src/integrations/link.js +1 -1
  189. package/src/integrations/list.js +1 -1
  190. package/src/integrations/listproperties.js +1 -1
  191. package/src/integrations/mediaembed.js +1 -1
  192. package/src/integrations/mention.js +1 -1
  193. package/src/integrations/mergefields.js +1 -1
  194. package/src/integrations/multilevellist.js +1 -1
  195. package/src/integrations/pagebreak.js +1 -1
  196. package/src/integrations/paragraph.js +1 -1
  197. package/src/integrations/removeformat.js +1 -1
  198. package/src/integrations/replacesourcecommand.js +1 -1
  199. package/src/integrations/restrictededitingmode.js +1 -1
  200. package/src/integrations/shiftentercommand.js +1 -1
  201. package/src/integrations/standardeditingmode.js +1 -1
  202. package/src/integrations/style.js +1 -1
  203. package/src/integrations/table.js +1 -1
  204. package/src/integrations/tablecaption.js +1 -1
  205. package/src/integrations/tableclipboard.js +2 -2
  206. package/src/integrations/tablecolumnresize.js +1 -1
  207. package/src/integrations/tableheadings.js +1 -1
  208. package/src/integrations/tablelayout.js +1 -1
  209. package/src/integrations/tablemergesplit.js +1 -1
  210. package/src/integrations/tableofcontents.js +1 -1
  211. package/src/integrations/tableproperties.js +1 -1
  212. package/src/integrations/template.js +1 -1
  213. package/src/integrations/title.js +1 -1
  214. package/src/integrations/undo.js +1 -1
  215. package/src/integrations/uploadcare.js +1 -1
  216. package/src/integrations/utils.js +1 -1
  217. package/src/suggestion.js +2 -2
  218. package/src/suggestiondescriptionfactory.js +1 -1
  219. package/src/trackchanges.js +1 -1
  220. package/src/trackchangesdata.js +1 -1
  221. package/src/trackchangesediting.js +1 -1
  222. package/src/trackchangespreview.js +1 -1
  223. package/src/trackchangesui.js +1 -1
  224. package/src/ui/suggestioncontroller.js +2 -2
  225. package/src/ui/view/basesuggestionthreadview.js +1 -1
  226. package/src/ui/view/suggestionthreadview.js +1 -1
  227. package/src/ui/view/suggestionview.js +1 -1
  228. package/src/ui/view/trackchangespreviewview.js +1 -1
  229. package/src/utils/common-translations.js +1 -1
  230. package/src/utils/utils.js +1 -1
package/dist/index.js CHANGED
@@ -20,7 +20,7 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x4e6ef4,Plugin as _0x5249e2,PendingActions as _0x43f8a1}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x3bf974,ObservableMixin as _0x35ec1c,uid as _0x183e5d,priorities as _0x1a39cc,insertToPriorityArray as _0x8375bf,logWarning as _0x574c7e,getEnvKeystrokeText as _0xb8a90,FocusTracker as _0x434831,KeystrokeHandler as _0x210b09,Collection as _0x4a7704}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x38106a,IconCancel as _0x271ddd,IconTrackChanges as _0x229ebb}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x476f92,View as _0x3f0da4,ViewCollection as _0x417a88,FocusCycler as _0x36045c,UIModel as _0x595526,createDropdown as _0x52122b,SplitButtonView as _0xc780f5,addListToDropdown as _0x3cf210,MenuBarMenuView as _0x3783ab,MenuBarMenuListView as _0x59d94a,ListSeparatorView as _0x5eb72c,MenuBarMenuListItemView as _0x3043b7,MenuBarMenuListItemButtonView as _0x1e02c8,BodyCollection as _0x5789d3,Dialog as _0x3799c0}from'@ckeditor/ckeditor5-ui/dist/index.js';import{SuggestionsConversion as _0xaeb456,Users as _0x2f90aa,DocumentCompare as _0x357673,fixElementSuggestionRange as _0x19b92a,hashObject as _0x31026,splitSuggestionMarkerName as _0x1b1411,surroundingMarkersDetector as _0x180cec,FOCUS_ANNOTATION_KEYSTROKE as _0x33c20d,AriaDescriptionView as _0x1e4119,setupThreadKeyboardNavigation as _0x2b462d,trimHtml as _0x1cc177,UserView as _0x35f1f2,LateFocusButtonView as _0x2d217b,getDateTimeFormatter as _0xc9857d,getAllMarkersDomElementsSorted as _0x17d20e,sanitizeEditorConfig as _0x467f44}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x24446e,ModelLiveRange as _0x374b49,ModelLivePosition as _0x5d6f04,ViewDowncastWriter as _0x3d6837}from'@ckeditor/ckeditor5-engine/dist/index.js';import{cloneDeep as _0x269f9e,set as _0x569a8d,isEqual as _0xd73929,unset as _0x2d528e,omit as Jt}from'es-toolkit/compat';import{Delete as _0x2e6b20,Input as _0x24b560}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x48a3b5}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x2fcbdc}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x4e6ef4{['_enabledCommands'];constructor(_0x126ae1,_0x3500c9){super(_0x126ae1),this['_enabledCommands']=_0x3500c9,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 _0x3a280a of this['editor']['commands']['commands']())_0x3a280a['affectsData']&&!this['_enabledCommands']['has'](_0x3a280a)&&_0x3a280a['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x5f1249 of this['editor']['commands']['commands']())_0x5f1249['affectsData']&&!this['_enabledCommands']['has'](_0x5f1249)&&_0x5f1249['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x4e6ef4{['_suggestions'];constructor(_0xa487e9,_0x508510){super(_0xa487e9),this['_suggestions']=_0x508510,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xebc8e7){const _0x1ba84c=this['_suggestions']['get'](_0xebc8e7);if(!_0x1ba84c)throw new _0x3bf974('track-changes-accept-suggestion-not-found',this);const _0x3cc519=_0x1ba84c['getRanges']();this['editor']['model']['canEditAt'](_0x3cc519)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x1ba84c);}}class x extends _0x4e6ef4{['_suggestions'];constructor(_0x39b955,_0x7ae68){super(_0x39b955),this['_suggestions']=_0x7ae68,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x209d05){const _0x41350d=this['_suggestions']['get'](_0x209d05);if(!_0x41350d)throw new _0x3bf974('track-changes-discard-suggestion-not-found',this);const _0x50fb5e=_0x41350d['getRanges']();this['editor']['model']['canEditAt'](_0x50fb5e)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x41350d);}}function ls(_0x437444,_0x363006){let _0x40a3a0='';return _0x40a3a0+=_0x437444['split']('*')['map']((_0x3c195c,_0x385ee1)=>_0x385ee1%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+on(_0x3c195c)+'</span>':on(_0x3c195c))['join'](''),_0x363006&&(_0x40a3a0+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x363006['value']+'\x22\x20title=\x22'+_0x363006['title']+'\x22></span>'),_0x40a3a0;}function on(_0x3106d6){const _0x5b409c=document['createElement']('span');return _0x5b409c['innerText']=_0x3106d6,_0x5b409c['innerHTML'];}function ts(_0x1772a1){return _0x1772a1['sort']((_0x13a5b0,_0x1b9fdd)=>'attribute'===_0x13a5b0['type']&&'attribute'!==_0x1b9fdd['type']?-0x1:'attribute'!==_0x13a5b0['type']&&'attribute'===_0x1b9fdd['type']?0x1:'deletion'==_0x13a5b0['type']&&'deletion'!=_0x1b9fdd['type']?-0x1:'deletion'!=_0x13a5b0['type']&&'deletion'==_0x1b9fdd['type']?0x1:0x0);}function to(_0x31e642,_0x28bce0){let _0x3e9bf8,_0x8f26e5=0x0;const _0x4fe155=[],_0x2e3391=_0x28bce0['schema'];for(;_0x8f26e5<_0x31e642['length'];){const _0x13cd94=_0x31e642[_0x8f26e5],_0x8445e9=_0x31e642[_0x8f26e5+0x1];_0x3e9bf8||(_0x3e9bf8=_0x28bce0['createPositionBefore'](_0x13cd94)),rn(_0x28bce0,_0x13cd94,_0x8445e9)||(_0x4fe155['push'](_0x28bce0['createRange'](_0x3e9bf8,_0x2e3391['isObject'](_0x13cd94)?_0x28bce0['createPositionAfter'](_0x13cd94):_0x28bce0['createPositionAt'](_0x13cd94,'end'))),_0x3e9bf8=null),_0x8f26e5++;}return _0x4fe155;}function rn(_0x567b02,_0x2f3c74,_0x33ffb4){if(!_0x33ffb4)return!0x1;const _0x50d527=_0x567b02['createPositionAfter'](_0x2f3c74),_0x39951d=_0x567b02['createPositionBefore'](_0x33ffb4);return _0x50d527['isTouching'](_0x39951d);}function rs(_0x3d0b90,_0x37d2fc,_0x1f2afc){for(;_0x1f2afc['length'];){const _0x4c0ac0=_0x1f2afc['splice'](0x0,0x64);_0x3d0b90['change'](()=>{for(const _0x3d0c98 of _0x4c0ac0)_0x3d0c98['isInContent']&&_0x37d2fc['execute'](_0x3d0c98['id']);});}}class M extends _0x4e6ef4{['_command'];['_suggestions'];constructor(_0x19b74b,_0x445bb9,_0x37172e){super(_0x19b74b),this['_command']=_0x445bb9,this['_suggestions']=_0x37172e,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x99a637=Array['from'](this['_suggestions']['values']())['some'](_0x42f3ee=>_0x42f3ee['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x99a637;}['execute'](){const _0x28c560=ts(Array['from'](this['_suggestions']['values']()));for(const _0x19971b of _0x28c560){const _0x40b22a=_0x19971b['getRanges']();if(!this['editor']['model']['canEditAt'](_0x40b22a))return;}rs(this['editor']['model'],this['_command'],_0x28c560);}}class R extends _0x4e6ef4{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0xf87b3a,_0x28bfd2,_0x24cf08){super(_0xf87b3a),this['_command']=_0x28bfd2,this['_suggestions']=_0x24cf08,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x387fd8=this['editor']['model']['document']['selection'],_0x795be8=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x7252d7,_0x3e4de0){const _0x72692b=Array['from'](_0x7252d7['getRanges']()),_0x3e8920=new Set();for(const _0x4cbd08 of _0x3e4de0)if(_0x4cbd08['isInContent']){for(const _0x569286 of _0x72692b)for(const _0x315c7f of _0x4cbd08['getRanges']())(_0x569286['isIntersecting'](_0x315c7f)||_0x7252d7['isCollapsed']&&!_0x4cbd08['isMultiRange']&&_0x4cbd08['next']&&_0x315c7f['end']['isTouching'](_0x569286['start']))&&_0x3e8920['add'](_0x4cbd08);}return _0x3e8920;}(_0x387fd8,_0x795be8),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x4078e0=ts(Array['from'](this['_selectedSuggestions']));for(const _0x43d107 of _0x4078e0){const _0x13bc0c=_0x43d107['getRanges']();if(!this['editor']['model']['canEditAt'](_0x13bc0c))return;}rs(this['editor']['model'],this['_command'],_0x4078e0);}}class T extends/* #__PURE__ -- @preserve */
24
- _0x35ec1c(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x1c36bb,_0x1c9d4e){super(),this['id']=_0x1c9d4e['id'],this['type']=_0x1c9d4e['type'],this['subType']=_0x1c9d4e['subType']||null,this['author']=_0x1c9d4e['author'],this['creator']=_0x1c9d4e['creator']||_0x1c9d4e['author'],this['isExternal']=Boolean(_0x1c9d4e['attributes']&&_0x1c9d4e['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x1c9d4e['originalSuggestionId']||null,this['_model']=_0x1c36bb,this['_onAccept']=_0x1c9d4e['onAccept'],this['_onDiscard']=_0x1c9d4e['onDiscard'],this['_onAttributesChange']=_0x1c9d4e['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1c9d4e['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 _0x3d2734=this;for(;_0x3d2734['previous'];)_0x3d2734=_0x3d2734['previous'];return _0x3d2734;}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'](_0x1cbbc8){this['_markerNames']['add'](_0x1cbbc8);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x7c78e7=>this['_model']['markers']['get'](_0x7c78e7))['filter'](_0x52a932=>_0x52a932);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x3a8fb7=>{for(const _0x4012f0 of this['getMarkers']())_0x3a8fb7['removeMarker'](_0x4012f0);}),this['_markerNames']['clear']();}['removeMarker'](_0x3f59d8){this['_model']['change'](_0x327a72=>{_0x327a72['removeMarker'](_0x3f59d8);}),this['_markerNames']['delete'](_0x3f59d8);}['addRange'](_0x18d4c1){const _0x4820e7='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x4820e7),this['_model']['change'](_0x50632c=>{_0x50632c['addMarker'](_0x4820e7,{'range':_0x18d4c1,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x12cc5b){for(const _0xaf3f3e of this['getRanges']())if(_0xaf3f3e['isIntersecting'](_0x12cc5b))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x17c808=>_0x17c808['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x56d1af,_0x1e63fa)=>[..._0x56d1af,..._0x1e63fa['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x391067=this['getRanges']();if(0x1!=_0x391067['length'])return null;const _0x3e0698=_0x391067[0x0],_0x5f111d=_0x3e0698['start']['nodeAfter'],_0x30b011=_0x3e0698['end']['nodeBefore'];return _0x5f111d instanceof _0x24446e?_0x5f111d!=_0x30b011?null:_0x5f111d: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 _0x2dc2a3=[];let _0x1bb69f=this['head'];for(;_0x1bb69f;)_0x2dc2a3['push'](_0x1bb69f),_0x1bb69f=_0x1bb69f['next'];return _0x2dc2a3;}['setAttribute'](_0x3a27f5,_0x267b4e){const _0xe77200=_0x269f9e(this['attributes']);_0x569a8d(_0xe77200,_0x3a27f5,_0x267b4e),_0xd73929(_0xe77200,this['attributes'])||(this['attributes']=_0xe77200,this['_onAttributesChange'](_0xe77200));}['removeAttribute'](_0x3925b7){const _0x163314=_0x269f9e(this['attributes']);_0x2d528e(_0x163314,_0x3925b7),_0xd73929(_0x163314,this['attributes'])||(this['attributes']=_0x163314,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 _0x183e5d()['substr'](0x1,0x5);}}function o(_0x38302e,_0x1f47bb,_0xc64f42){const _0x271e31=_0x38302e['t'],t=_0x38302e['t'];switch(_0x1f47bb){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',_0xc64f42);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0xc64f42);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0xc64f42);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0xc64f42);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0xc64f42);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',_0xc64f42);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0xc64f42);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',_0xc64f42);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0xc64f42);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0xc64f42);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0xc64f42);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0xc64f42);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0xc64f42);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0xc64f42);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0xc64f42);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0xc64f42);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0xc64f42);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0xc64f42);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0xc64f42);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0xc64f42);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0xc64f42);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0xc64f42);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0xc64f42);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0xc64f42);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0xc64f42);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'},_0xc64f42);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0xc64f42);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0xc64f42);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0xc64f42);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0xc64f42);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0xc64f42);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0xc64f42);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0xc64f42);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'},_0xc64f42);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0xc64f42);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0xc64f42);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0xc64f42);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0xc64f42);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_NUMBERED_LIST_ARABIC_INDIC':return t({'string':'numbered\x20list\x20(arabic-indic)','id':'ELEMENT_NUMBERED_LIST_ARABIC_INDIC'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0xc64f42);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0xc64f42);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'},_0xc64f42);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'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_TYPE':return t({'string':'table\x20cell\x20type','id':'FORMAT_TABLE_CELL_TYPE'});case'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0xc64f42);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0xc64f42);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'},_0xc64f42);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0xc64f42);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'},_0xc64f42);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0xc64f42);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0xc64f42);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0xc64f42);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0xc64f42);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0xc64f42);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'},_0xc64f42);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0xc64f42);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 _0x271e31({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0xc64f42);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x271e31({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0xc64f42);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0xc64f42);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'},_0xc64f42);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'},_0xc64f42);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'},_0xc64f42);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x1f47bb;}}class E{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x4d6da9,_0x5344f9){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x4d6da9,this['_locale']=_0x5344f9;}['getDescriptions'](_0x1eb847){const _0x175a61=[],_0x4bbe87=new Set(),_0x291b88=new Set();for(let _0x5b575c=0x0;_0x5b575c<_0x1eb847['length'];_0x5b575c++){const _0x1bad9f=_0x1eb847[_0x5b575c];if(!_0x1bad9f['isInContent'])continue;const _0x4d7e0a=this['_handleCustomCallbackDescription'](_0x1bad9f);if(_0x4d7e0a){if(null!=_0x1bad9f['subType']){if(_0x4bbe87['has'](_0x1bad9f['subType']))continue;_0x4bbe87['add'](_0x1bad9f['subType']);}_0x175a61['push'](_0x4d7e0a);}else{if('attribute'==_0x1bad9f['type']){const _0x1e7f0e=_0x1bad9f['data']['key'];if(_0x291b88['has'](_0x1e7f0e))continue;_0x291b88['add'](_0x1bad9f['data']['key']),_0x1e7f0e==m?this['_handleRenameSuggestionDescription'](_0x175a61,_0x1bad9f):this['_handleAttributeSuggestionDescription'](_0x175a61,_0x1bad9f);continue;}'insertion'!=_0x1bad9f['type']&&'deletion'!=_0x1bad9f['type']||this['_handleInsertRemoveSuggestionDescription'](_0x175a61,_0x1bad9f,_0x1eb847[_0x5b575c+0x1]);}}return this['_resolveDescriptionItems'](_0x175a61);}['registerDescriptionCallback'](_0x1ddf0a){this['_customCallbacks']['push'](_0x1ddf0a);}['registerElementLabel'](_0x313444,_0x338293,_0x2aeaa9=_0x1a39cc['normal']){'function'==typeof _0x313444?_0x8375bf(this['_itemLabelsCallbacks'],{'matchingCallback':_0x313444,'label':_0x338293,'priority':_0x2aeaa9}):this['_itemLabels']['set'](_0x313444,_0x338293);}['registerAttributeLabel'](_0x581b22,_0x218009){this['_attributeLabels']['set'](_0x581b22,_0x218009);}['getItemLabel'](_0x301242,_0x4f2aef=0x1){let _0x1eeb1d;for(const _0x241ee8 of this['_itemLabelsCallbacks'])if(_0x241ee8['matchingCallback'](_0x301242)){_0x1eeb1d=_0x241ee8['label'];break;}return _0x1eeb1d||(_0x1eeb1d=this['_itemLabels']['get'](_0x301242['name'])),_0x1eeb1d?_0x1eeb1d(_0x4f2aef):0x1!==_0x4f2aef?_0x4f2aef+'\x20'+_0x301242['name']+'s':''+_0x301242['name'];}['_addDescriptionItems'](_0x4276c6,_0x25c986){const _0x5e6474=_0x25c986['getFirstRange']()['getWalker'](),_0x24ae49='insertion'==_0x25c986['type']?'add':'remove';for(const _0x5590cc of _0x5e6474){const _0x33ba21=_0x5590cc['item'],_0x1c387e=_0x4276c6[_0x4276c6['length']-0x1];if(_0x33ba21['is']('$textProxy'))_0x1c387e&&_0x1c387e['type']['indexOf']('Container')>-0x1&&_0x4276c6['pop'](),_0x1c387e&&'text'==_0x1c387e['type']?_0x1c387e[_0x24ae49]+=_0x33ba21['data']:_0x4276c6['push']({'type':'text','add':'add'==_0x24ae49?_0x33ba21['data']:'','remove':'remove'==_0x24ae49?_0x33ba21['data']:''});else{if(this['_schema']['isObject'](_0x33ba21)){const _0x4b8085=_0x33ba21;if(_0x1c387e&&_0x1c387e['type']['indexOf']('Container')>-0x1&&_0x4276c6['pop'](),'elementEnd'==_0x5590cc['type'])continue;_0x1c387e&&_0x1c387e['type']==_0x24ae49+'Object'&&_0x1c387e['element']['name']==_0x4b8085['name']?_0x1c387e['quantity']++:_0x4276c6['push']({'type':_0x24ae49+'Object','element':_0x4b8085,'quantity':0x1}),_0x5e6474['skip'](_0x3e7f71=>!('elementEnd'==_0x3e7f71['type']&&_0x3e7f71['item']==_0x33ba21));}else{if(this['_schema']['checkChild'](_0x33ba21,'$text')||_0x33ba21['is']('element','softBreak')){const _0x52b38c=_0x33ba21;if('add'==_0x24ae49&&'elementStart'==_0x5590cc['type']||'remove'==_0x24ae49&&'elementEnd'==_0x5590cc['type'])continue;if(_0x1c387e&&-0x1==_0x1c387e['type']['indexOf']('Container')){'text'==_0x1c387e['type']&&(_0x1c387e[_0x24ae49]+='\x0a');continue;}let _0x4a6a82;if(_0x4a6a82='add'==_0x24ae49?_0x52b38c['nextSibling']&&!this['_schema']['isObject'](_0x52b38c['nextSibling'])?_0x52b38c['nextSibling']:null:_0x52b38c['previousSibling']&&!this['_schema']['isObject'](_0x52b38c['previousSibling'])?_0x52b38c['previousSibling']:null,_0x52b38c['isEmpty']||_0x4a6a82&&_0x4a6a82['isEmpty']){const _0x13c170=_0x4a6a82&&_0x4a6a82['isEmpty']?_0x4a6a82:_0x52b38c;_0x1c387e&&_0x1c387e['type']==_0x24ae49+'EmptyContainer'&&_0x1c387e['element']['name']==_0x13c170['name']?_0x1c387e['quantity']++:_0x4276c6['push']({'type':_0x24ae49+'EmptyContainer','element':_0x13c170,'quantity':0x1});}else _0x4276c6['push']({'type':_0x24ae49+'Container','element':_0x52b38c});}}}}}['_resolveDescriptionItems'](_0x53478d){const _0x32fbfd=this['_locale'],_0x2efa1e=[],_0x394857=[],_0x31c75a=[];for(const _0x37a504 of _0x53478d)switch(_0x37a504['type']){case'text':if(_0x37a504['add']=_0x37a504['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x37a504['remove']=_0x37a504['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x37a504['add']&&''!=_0x37a504['remove']){_0x2efa1e['push']({'type':'replace','content':o(_0x32fbfd,'REPLACE_TEXT',['\x22'+_0x37a504['remove']+'\x22','\x22'+_0x37a504['add']+'\x22'])});continue;}if(null!=_0x37a504['add']['match'](/^ +$/)){_0x2efa1e['push']({'type':'insertion','content':o(_0x32fbfd,'*Insert:*\x20%0',o(_0x32fbfd,'ELEMENT_SPACE',_0x37a504['add']['length']))});continue;}if(null!=_0x37a504['remove']['match'](/^ +$/)){_0x2efa1e['push']({'type':'deletion','content':o(_0x32fbfd,'*Remove:*\x20%0',o(_0x32fbfd,'ELEMENT_SPACE',_0x37a504['remove']['length']))});continue;}if(''!=_0x37a504['add']){_0x2efa1e['push']({'type':'insertion','content':o(_0x32fbfd,'*Insert:*\x20%0','\x22'+_0x37a504['add']+'\x22')});continue;}_0x2efa1e['push']({'type':'deletion','content':o(_0x32fbfd,'*Remove:*\x20%0','\x22'+_0x37a504['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x2efa1e['push']({'type':'insertion','content':o(_0x32fbfd,'*Insert:*\x20%0',this['getItemLabel'](_0x37a504['element'],_0x37a504['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x2efa1e['push']({'type':'deletion','content':o(_0x32fbfd,'*Remove:*\x20%0',this['getItemLabel'](_0x37a504['element'],_0x37a504['quantity']))});continue;case'addContainer':_0x2efa1e['push']({'type':'insertion','content':o(_0x32fbfd,'*Split:*\x20%0',this['getItemLabel'](_0x37a504['element'],_0x37a504['quantity']))});continue;case'removeContainer':_0x2efa1e['push']({'type':'deletion','content':o(_0x32fbfd,'*Merge:*\x20%0',this['getItemLabel'](_0x37a504['element'],_0x37a504['quantity']))});continue;case'addFormat':_0x394857['push'](_0x37a504['key']);continue;case'removeFormat':_0x31c75a['push'](_0x37a504['key']);continue;default:_0x2efa1e['push'](_0x37a504);}if(_0x394857['length']){const _0x2a563c=_0x394857['map'](_0x4929a7=>this['_attributeLabels']['has'](_0x4929a7)?this['_attributeLabels']['get'](_0x4929a7):_0x4929a7)['join'](',\x20');_0x2efa1e['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x2a563c)});}if(_0x31c75a['length']){const _0x5cc257=_0x31c75a['map'](_0x37dc1b=>this['_attributeLabels']['has'](_0x37dc1b)?this['_attributeLabels']['get'](_0x37dc1b):_0x37dc1b)['join'](',\x20');_0x2efa1e['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x5cc257)});}return _0x2efa1e;}['_handleCustomCallbackDescription'](_0x12c8e4){for(const _0x4bd24d of this['_customCallbacks']){const _0x583d4b=_0x4bd24d(_0x12c8e4);if(_0x583d4b&&'type'in _0x583d4b)return _0x583d4b;}}['_handleAttributeSuggestionDescription'](_0x4527aa,_0x1564b5){const _0x58f068=_0x1564b5['data'],_0x302266=void 0x0===_0x58f068['newValue']?'removeFormat':'addFormat';_0x4527aa['push']({'type':_0x302266,'key':_0x58f068['key']});}['_handleRenameSuggestionDescription'](_0x5d6687,_0x4875ff){_0x5d6687['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x4875ff['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x35b305,_0x4aee64,_0x1ba38c){if(this['_addDescriptionItems'](_0x35b305,_0x4aee64),_0x1ba38c&&_0x1ba38c['getFirstRange']()&&!_0x4aee64['getFirstRange']()['end']['isEqual'](_0x1ba38c['getFirstRange']()['start'])){const _0x4cace4=_0x35b305[_0x35b305['length']-0x1],_0xf8e6df='insertion'==_0x4aee64['type']?'add':'remove';_0x4cace4&&'text'==_0x4cace4['type']&&(_0x4cace4[_0xf8e6df]+='\x0a');}}}class U extends _0x5249e2{['afterInit'](){const _0x56c0b2=this['editor'],_0x5aacbf=_0x56c0b2['plugins']['get']('TrackChangesEditing');_0x56c0b2['commands']['get']('showAIAssistant')&&_0x5aacbf['enableCommand']('showAIAssistant');}}class V extends _0x5249e2{['afterInit'](){const _0x272ce7=this['editor'],_0x1d4ba3=_0x272ce7['plugins']['get']('TrackChangesEditing');_0x272ce7['commands']['get']('toggleAi')&&_0x1d4ba3['enableCommand']('toggleAi');}}class F extends _0x5249e2{['afterInit'](){const _0x4d55a0=this['editor'],_0x2b945c=_0x4d55a0['plugins']['get']('TrackChangesEditing');_0x4d55a0['commands']['get']('aiQuickAction')&&_0x2b945c['enableCommand']('aiQuickAction');}}class G extends _0x5249e2{['afterInit'](){const _0x53d689=this['editor'],_0xf951c2=_0x53d689['locale'];if(!_0x53d689['plugins']['has']('AlignmentEditing'))return;const _0x732344=_0x53d689['plugins']['get']('TrackChangesEditing');_0x732344['enableDefaultAttributesIntegration']('alignment'),_0x732344['descriptionFactory']['registerAttributeLabel']('alignment',o(_0xf951c2,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ea36e=this['editor'],_0x54c08a=_0x4ea36e['locale'];_0x4ea36e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2fe06d=>{if('formatBlock'!=_0x2fe06d['type'])return;const {data:_0x2b13d9}=_0x2fe06d;if(_0x2b13d9&&'alignment'==_0x2b13d9['commandName']){const _0x50afcc=_0x2b13d9['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x54c08a,'*Format:*\x20%0',function(_0x40274d){switch(_0x40274d){case'left':return o(_0x54c08a,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x54c08a,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x54c08a,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x54c08a,'FORMAT_JUSTIFY_TEXT');}}(_0x50afcc))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class L extends _0x5249e2{['afterInit'](){const _0x3556a4=this['editor'],_0x2fc217=_0x3556a4['plugins']['get']('TrackChangesEditing'),_0x2c8bc4=_0x3556a4['locale'];for(const _0x4967f4 of ti){if(!_0x3556a4['plugins']['has'](_0x4967f4))continue;const _0x259b0a=_0x4967f4['slice'](0x0,-0x7)['toLowerCase'](),_0x5415e7='FORMAT_'+_0x259b0a['toUpperCase']();_0x2fc217['enableDefaultAttributesIntegration'](_0x259b0a),_0x2fc217['descriptionFactory']['registerAttributeLabel'](_0x259b0a,o(_0x2c8bc4,_0x5415e7));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xffc89b=this['editor'],_0x5d2d72=_0xffc89b['locale'],_0x3176ef=_0xffc89b['plugins']['get']('TrackChangesEditing');function _0x8abf12(_0x198d6d,_0xd66d6f){_0x3176ef['descriptionFactory']['registerDescriptionCallback'](_0x322295=>{if('formatInline'!=_0x322295['type'])return;const {data:_0x118c98}=_0x322295;return _0x118c98&&_0x118c98['commandName']===_0x198d6d?_0x118c98['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5d2d72,'*Format:*\x20%0',_0xd66d6f)}:{'type':'format','content':o(_0x5d2d72,'*Remove\x20format:*\x20%0',_0xd66d6f)}:void 0x0;});}_0x8abf12('bold',o(_0x5d2d72,'FORMAT_BOLD')),_0x8abf12('italic',o(_0x5d2d72,'FORMAT_ITALIC')),_0x8abf12('underline',o(_0x5d2d72,'FORMAT_UNDERLINE')),_0x8abf12('code',o(_0x5d2d72,'FORMAT_CODE')),_0x8abf12('strikethrough',o(_0x5d2d72,'FORMAT_STRIKETHROUGH')),_0x8abf12('subscript',o(_0x5d2d72,'FORMAT_SUBSCRIPT')),_0x8abf12('superscript',o(_0x5d2d72,'FORMAT_SUPERSCRIPT'));}}class J extends _0x5249e2{['afterInit'](){const _0x26b569=this['editor'],_0x48d9ad=_0x26b569['locale'];if(!_0x26b569['plugins']['has']('BlockQuoteEditing'))return;const _0x5aebfb=_0x26b569['plugins']['get']('TrackChangesEditing'),_0x3a8d6e=this['editor']['commands']['get']('blockQuote');_0x5aebfb['enableCommand']('blockQuote',(_0x5436c2,_0x73c970={})=>{const _0x2ef19d=this['editor']['model']['document']['selection'],_0x175488=_0x73c970&&void 0x0!==_0x73c970['forceValue']?_0x73c970['forceValue']:!_0x3a8d6e['value'];let _0x1104f8=[];if(_0x175488){const _0x3ea273=Array['from'](_0x2ef19d['getSelectedBlocks']())['filter'](_0x4d400c=>oo(_0x4d400c)||function(_0xbb2b3f,_0x4f0fab){const _0x52b0f4=_0x4f0fab['checkChild'](_0xbb2b3f['parent'],'blockQuote'),_0x3874a7=_0x4f0fab['checkChild'](['$root','blockQuote'],_0xbb2b3f);return _0x52b0f4&&_0x3874a7;}(_0x4d400c,this['editor']['model']['schema']));_0x1104f8=to(_0x3ea273,_0x26b569['model']);}else{const _0x2bd10c=Array['from'](_0x2ef19d['getSelectedBlocks']())['filter'](_0x45d3ef=>oo(_0x45d3ef));_0x1104f8=to(_0x2bd10c,_0x26b569['model']);}_0x26b569['model']['change'](()=>{for(const _0x5d18fc of _0x1104f8)_0x5aebfb['markBlockFormat'](_0x5d18fc,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x175488}]});});}),_0x5aebfb['descriptionFactory']['registerDescriptionCallback'](_0x4ec252=>{const {data:_0x17c5cf}=_0x4ec252;if(_0x17c5cf&&'blockQuote'==_0x17c5cf['commandName']){const _0x14136f=o(_0x48d9ad,'ELEMENT_BLOCK_QUOTE');return _0x17c5cf['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x48d9ad,'*Set\x20format:*\x20%0',_0x14136f)}:{'type':'format','content':o(_0x48d9ad,'*Remove\x20format:*\x20%0',_0x14136f)};}});}}function oo(_0x3e4843){return'blockQuote'==_0x3e4843['parent']['name'];}class q extends _0x5249e2{['afterInit'](){const _0x424cd9=this['editor'],_0x1d6850=_0x424cd9['locale'],_0x1ae80c=_0x424cd9['plugins']['get']('TrackChangesEditing');_0x424cd9['plugins']['has']('BookmarkEditing')&&(_0x1ae80c['enableCommand']('insertBookmark'),_0x1ae80c['enableDefaultAttributesIntegration']('updateBookmark'),_0x1ae80c['descriptionFactory']['registerDescriptionCallback'](_0x5d8002=>{if('insertion'!=_0x5d8002['type']&&'deletion'!=_0x5d8002['type']&&'attribute'!=_0x5d8002['type'])return;const _0x57195a=_0x5d8002['getContainedElement']();if(null==_0x57195a)return;if(!_0x57195a['is']('element','bookmark'))return;const _0x4b473c=_0x57195a['getAttribute']('bookmarkId');if('insertion'==_0x5d8002['type'])return{'type':'insertion','content':o(_0x1d6850,'*Insert:*\x20%0','\x22'+_0x4b473c+'\x22\x20'+o(_0x1d6850,'ELEMENT_BOOKMARK'))};if('deletion'==_0x5d8002['type'])return{'type':'deletion','content':o(_0x1d6850,'*Remove:*\x20%0','\x22'+_0x4b473c+'\x22\x20'+o(_0x1d6850,'ELEMENT_BOOKMARK'))};const {data:_0x2f46d7}=_0x5d8002;if(!_0x2f46d7||'bookmarkId'!=_0x2f46d7['key'])return;return{'type':'format','content':o(_0x1d6850,'*Set\x20bookmark:*\x20%0','\x22'+_0x2f46d7['newValue']+'\x22')};}));}}class z extends _0x5249e2{['afterInit'](){const _0x836b6e=this['editor'];_0x836b6e['plugins']['has']('CaseChange')&&(_0x836b6e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x836b6e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x836b6e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x5249e2{['afterInit'](){const _0x103e6b=this['editor'];_0x103e6b['commands']['get']('ckbox')&&_0x103e6b['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class W extends _0x5249e2{['afterInit'](){const _0x13fa47=this['editor'];if(!_0x13fa47['plugins']['has']('CodeBlock'))return;const _0x545122=_0x13fa47['plugins']['get']('TrackChangesEditing'),_0xfa9f61=_0x13fa47['locale'],_0x3a0391=_0x13fa47['config']['get']('codeBlock')['languages'],_0xd89c1f=_0x13fa47['commands']['get']('codeBlock');_0x545122['enableCommand']('indentCodeBlock'),_0x545122['enableCommand']('outdentCodeBlock'),_0x545122['enableCommand']('codeBlock',(_0x801950,_0x5c4fd4={})=>{const _0x392ccc=_0x13fa47['model'],_0x365b8d=_0x13fa47['model']['document']['selection'],_0x48b8a2=_0x5c4fd4&&void 0x0!==_0x5c4fd4['forceValue']?_0x5c4fd4['forceValue']:!_0xd89c1f['value'];let _0x38a82d;_0x5c4fd4['language']||(_0x5c4fd4['language']=_0x3a0391[0x0]['language']),_0x38a82d=_0x48b8a2?Array['from'](_0x365b8d['getSelectedBlocks']())['filter'](_0x49dee9=>co(_0x49dee9)||function(_0x4ad913,_0x4945b9){if(_0x4ad913['is']('rootElement')||_0x4945b9['isLimit'](_0x4ad913))return!0x1;return _0x4945b9['checkChild'](_0x4ad913['parent'],'codeBlock');}(_0x49dee9,_0x392ccc['schema'])):Array['from'](_0x365b8d['getSelectedBlocks']())['filter'](_0xf1b31=>co(_0xf1b31));const _0x463135=to(_0x38a82d,_0x392ccc);_0x392ccc['change'](()=>{for(const _0x19df17 of _0x463135)_0x545122['markBlockFormat'](_0x19df17,{'commandName':'codeBlock','commandParams':[{..._0x5c4fd4,'forceValue':_0x48b8a2}],'formatGroupId':'blockName'});});}),(_0x545122['descriptionFactory']['registerElementLabel']('codeBlock',_0x3b0558=>o(_0xfa9f61,'ELEMENT_CODE_BLOCK',_0x3b0558)),_0x545122['descriptionFactory']['registerDescriptionCallback'](_0x25ea37=>{if('formatBlock'!=_0x25ea37['type'])return;const _0x3e0fe1=_0xfa9f61['t'],{data:_0x1bd435}=_0x25ea37;if(!_0x1bd435||'codeBlock'!=_0x1bd435['commandName'])return;const _0x3d6ae2=_0x1bd435['commandParams'][0x0]['language'],_0x36638b=_0x3e0fe1(_0x3a0391['find'](_0x620642=>_0x620642['language']===_0x3d6ae2)['label'])['toLowerCase']();return _0x1bd435['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xfa9f61,'*Set\x20format:*\x20%0',o(_0xfa9f61,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x36638b+')')}:{'type':'format','content':o(_0xfa9f61,'*Remove\x20format:*\x20%0',o(_0xfa9f61,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0xd47151){return'codeBlock'==_0xd47151['name'];}class H extends _0x5249e2{['afterInit'](){const _0x325410=this['editor'];if(!_0x325410['plugins']['has']('CommentsEditing'))return;_0x325410['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class Q extends _0x5249e2{static get['requires'](){return[_0x2e6b20];}['init'](){const _0x5c4a23=this['editor'],_0x44dd41=_0x5c4a23['plugins']['get']('TrackChangesEditing');_0x44dd41['enableCommand']('delete');const _0x36dfa4=_0x5c4a23['commands']['get']('deleteForward');_0x44dd41['enableCommand']('deleteForward',(_0xead358,_0x213a9a={})=>{const _0x4cfd67=_0x5c4a23['model']['createSelection'](_0x5c4a23['model']['document']['selection']);_0x4cfd67['isCollapsed']&&_0x5c4a23['model']['modifySelection'](_0x4cfd67,{'direction':'forward','unit':_0x213a9a['unit']});const _0x38f42c=_0x4cfd67['getFirstRange'](),_0x58503c=_0x374b49['fromRange'](_0x38f42c);let _0x3e6b15;_0xead358(_0x213a9a),_0x3e6b15='$graveyard'==_0x58503c['root']['rootName']?_0x5c4a23['model']['createRange'](_0x38f42c['start']):_0x5c4a23['model']['createRange'](_0x58503c['start'],_0x58503c['end']),_0x58503c['detach'](),_0x5c4a23['model']['enqueueChange'](_0x36dfa4['buffer']['batch'],_0x9e976=>{_0x36dfa4['buffer']['lock'](),_0x9e976['setSelection'](_0x9e976['createRange'](_0x3e6b15['end'])),_0x36dfa4['buffer']['unlock']();});});}}class X extends _0x5249e2{['afterInit'](){const _0x36a887=this['editor'];if(!_0x36a887['plugins']['has']('ListEditing'))return;const _0x4bc6aa=_0x36a887['locale'],_0x41643e=_0x36a887['plugins']['get']('TrackChangesEditing'),_0x4f4789=_0x36a887['plugins']['has']('TodoListEditing'),_0x1a14e4=!!_0x36a887['config']['get']('list.multiBlock');function _0x324496(_0x1e0375){return{'type':'format','content':''+o(_0x4bc6aa,'*Set\x20format:*\x20%0',_0x1e0375)};}function _0x3d9714(_0x4aff0b){return{'type':'format','content':''+o(_0x4bc6aa,'*Remove\x20format:*\x20%0',_0x4aff0b)};}_0x41643e['enableDefaultAttributesIntegration']('numberedList'),_0x41643e['enableDefaultAttributesIntegration']('bulletedList'),_0x41643e['enableDefaultAttributesIntegration']('customNumberedList'),_0x41643e['enableDefaultAttributesIntegration']('customBulletedList'),_0x41643e['enableDefaultAttributesIntegration']('indentList'),_0x41643e['enableDefaultAttributesIntegration']('outdentList'),_0x41643e['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x41643e['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x1a14e4&&(_0x41643e['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x41643e['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x4f4789&&(_0x41643e['enableDefaultAttributesIntegration']('todoList'),_0x41643e['enableDefaultAttributesIntegration']('checkTodoList'),_0x41643e['descriptionFactory']['registerDescriptionCallback'](_0x106ed4=>{const {data:_0x107f59}=_0x106ed4;if(_0x107f59&&'todoListChecked'==_0x107f59['key'])return{'type':'format','content':_0x107f59['newValue']?o(_0x4bc6aa,'*Check\x20item*'):o(_0x4bc6aa,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x8f08e1=>{if(_0x8f08e1['batch']['isUndo'])return!0x1;let _0x18a390=!0x1;const _0x2971fa=_0x41643e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5f45d4=>'todoListChecked'===_0x41643e['_getAttributeKey'](_0x5f45d4));for(const _0x36a794 of _0x2971fa){'todo'!=_0x36a794['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x41643e['_findSuggestions'](_0x36a794['getFirstRange'](),'attribute')['find'](_0x42b771=>'listType'===_0x41643e['_getAttributeKey'](_0x42b771['suggestion']))||(_0x8f08e1['removeMarker'](_0x36a794['getFirstMarker']()),_0x18a390=!0x0));}return _0x18a390;})),_0x41643e['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x4bc6aa,'FORMAT_INDENT'));const _0x53bcc9={'type':'format','content':''};_0x41643e['descriptionFactory']['registerDescriptionCallback'](_0x56014c=>{const {data:_0x3e59e9}=_0x56014c;if(!_0x3e59e9||'listType'!=_0x3e59e9['key'])return;let _0x54c66d=_0x56014c['head'];for(;_0x54c66d;){if(_0x54c66d['data']&&(('listStyle'==_0x54c66d['data']['key']||'listMarkerStyle'==_0x54c66d['data']['key'])&&(_0x54c66d['data']['newValue']&&'default'!=_0x54c66d['data']['newValue']||'default'!=_0x54c66d['data']['oldValue']&&!_0x3e59e9['newValue'])||!_0x1a14e4&&_0x54c66d['data']['key']==m))return _0x53bcc9;_0x54c66d=_0x54c66d['next'];}if(null==_0x3e59e9['newValue'])switch(_0x3e59e9['oldValue']){case'bulleted':return _0x3d9714(o(_0x4bc6aa,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3d9714(o(_0x4bc6aa,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3d9714(o(_0x4bc6aa,'ELEMENT_TODO_LIST'));}switch(_0x3e59e9['newValue']){case'bulleted':return _0x324496(o(_0x4bc6aa,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x324496(o(_0x4bc6aa,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x324496(o(_0x4bc6aa,'ELEMENT_TODO_LIST'));}}),_0x41643e['descriptionFactory']['registerDescriptionCallback'](_0x4822ef=>{const {data:_0x2b63bc}=_0x4822ef;if(_0x2b63bc&&'listIndent'==_0x2b63bc['key'])return null==_0x2b63bc['newValue']||null==_0x2b63bc['oldValue']&&0x0==_0x2b63bc['newValue']?_0x53bcc9:void 0x0;}),_0x41643e['descriptionFactory']['registerDescriptionCallback'](_0x11702f=>{if('attribute'!=_0x11702f['type'])return;const {data:_0x232090}=_0x11702f;if(!_0x232090||'listItemId'!=_0x232090['key'])return;const _0x4c600e=Te(_0x11702f);return'newValue'==_0x4c600e?{'type':'format','content':o(_0x4bc6aa,'*Merge:*\x20list\x20item')}:'oldValue'==_0x4c600e?{'type':'format','content':o(_0x4bc6aa,'*Split:*\x20list\x20item')}:_0x53bcc9;}),_0x36a887['model']['document']['registerPostFixer'](_0x4a3f85=>this['listItemIdFixer'](_0x4a3f85)),_0x36a887['model']['document']['registerPostFixer'](_0x26fedf=>this['noTrackChangesFixer'](_0x26fedf)),_0x36a887['model']['document']['on']('change:data',(_0x2d8edd,_0x3e851c)=>{if(_0x3e851c['isUndo']||!_0x3e851c['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x5e0e99){if(_0x5e0e99['batch']['isUndo']||!_0x5e0e99['batch']['isLocal'])return!0x1;let _0x42a57c=!0x1;const _0x515d09=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4c15e0=>_0x4c15e0['data']&&'listItemId'==_0x4c15e0['data']['key'])['filter'](_0xcb9cad=>_0xcb9cad['data']['newValue']&&_0xcb9cad['data']['oldValue']);for(const _0x577a69 of _0x515d09)Te(_0x577a69)||(_0x5e0e99['removeMarker'](_0x577a69['getFirstMarker']()),_0x42a57c=!0x0);return _0x42a57c;}['noTrackChangesFixer'](_0x536fa5){if(_0x536fa5['batch']['isUndo']||!_0x536fa5['batch']['isLocal'])return!0x1;const _0x3f0d26=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x3f0d26['trackChangesCommand']['value'])return!0x1;let _0x1056c0=!0x1;const _0x468206=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x26fb44=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x321545=>'attribute'==_0x321545['type'])['filter'](_0x26fd1c=>_0x468206['includes'](_0x26fd1c['attributeKey']));if(0x0==_0x26fb44['length'])return _0x1056c0;for(const _0x5a156b of _0x26fb44){const _0x9eb88a=_0x3f0d26['_findSuggestions'](_0x5a156b['range'],'attribute')['filter'](_0x1d2ad4=>!_0x1d2ad4['meta']['isNextTo'])['map'](_0x577006=>_0x577006['suggestion'])['filter'](_0x3b01b5=>{const _0x2147d8=_0x3f0d26['_getAttributeKey'](_0x3b01b5);return _0x468206['includes'](_0x2147d8);});if(_0x9eb88a['length']){for(const _0x3a7c0a of _0x9eb88a)_0x536fa5['removeMarker'](_0x3a7c0a['getFirstMarker']());_0x1056c0=!0x0;}}return _0x1056c0;}['assureChains'](){const _0x4ef9ce=this['editor']['plugins']['get']('TrackChangesEditing'),_0x46d0e8=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x4b167c;const _0x373728=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4fc8fd=>{if(_0x4fc8fd['data']['oldRange']||!_0x4fc8fd['data']['newRange'])return null;if(!_0x4fc8fd['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0xb24ae9}=_0x4ef9ce['_splitMarkerName'](_0x4fc8fd['name']);if(!_0x4ef9ce['hasSuggestion'](_0xb24ae9))return null;const _0x201722=_0x4ef9ce['getSuggestion'](_0xb24ae9);return _0x46d0e8['includes'](_0x201722['data']['key']);})['map'](_0x22bf38=>{const {id:_0x225468}=_0x4ef9ce['_splitMarkerName'](_0x22bf38['name']),_0x320e7e=_0x4ef9ce['getSuggestion'](_0x225468);return _0x4b167c=_0x320e7e['attributes']['groupId'],_0x320e7e['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x373728['size'])return;const _0x56bcf0=_0x4ef9ce['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x48d823=>'attribute'==_0x48d823['type']&&_0x48d823['data']&&_0x46d0e8['includes'](_0x48d823['data']['key'])&&_0x48d823['attributes']['groupId']!=_0x4b167c)['map'](_0x1d3620=>({'listItem':_0x1d3620['getFirstRange']()['start']['nodeAfter'],'groupId':_0x1d3620['attributes']['groupId']})),_0x2439c6=new Set();for(const {groupId:_0x2ba2b3,listItem:_0x34a32f}of _0x56bcf0)_0x373728['has'](_0x34a32f)&&_0x2439c6['add'](_0x2ba2b3);for(const _0x1fc491 of _0x4ef9ce['getSuggestions']())_0x2439c6['has'](_0x1fc491['attributes']['groupId'])&&_0x1fc491['setAttribute']('groupId',_0x4b167c);}['_supportLegacySuggestions'](){const _0x21003d=this['editor'],_0xff06e9=_0x21003d['locale'],_0x30d1f1=_0x21003d['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x30d1f1['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x1253ee,_0x13ddc6){const _0x11416f=[];for(let _0x301f34 of _0x1253ee)_0x301f34['start']['nodeAfter']===_0x301f34['end']['parent']&&(_0x301f34=_0x21003d['model']['createRange'](_0x21003d['model']['createPositionAt'](_0x301f34['start']['nodeAfter'],0x0))),_0x11416f['push'](_0x301f34);_0x21003d['model']['change'](_0xa8301e=>{const _0x117450=_0x21003d['model']['document']['selection'],_0x436852=Array['from'](_0x117450['getRanges']())['map'](_0x169152=>_0x374b49['fromRange'](_0x169152));_0xa8301e['setSelection'](_0x11416f),_0x21003d['commands']['get'](_0x13ddc6['commandName'])['refresh'](),_0x13ddc6['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x21003d['execute'](_0x13ddc6['commandName'],..._0x13ddc6['commandParams']),_0xa8301e['setSelection'](_0x436852);for(const _0x1ce4ba of _0x436852)_0x1ce4ba['detach']();});}),_0x30d1f1['descriptionFactory']['registerElementLabel'](function(_0x37893c){const _0x28fb67=!_0x21003d['model']['schema']['isObject'](_0x37893c),_0x48afc6=_0x37893c['previousSibling'],_0x21a256=_0x37893c['nextSibling'],_0x519c11=_0x37893c['getAttribute']('listItemId'),_0x502e7f=!_0x48afc6||_0x48afc6['getAttribute']('listItemId')!==_0x519c11,_0x45cad0=!_0x21a256||_0x21a256['getAttribute']('listItemId')!==_0x519c11;return _0x28fb67&&Boolean(_0x519c11)&&_0x502e7f&&_0x45cad0;},_0x5813fc=>o(_0xff06e9,'ELEMENT_LIST_ITEM',_0x5813fc));}['_registerLegacyDescription'](){const _0x1efba7=this['editor'],_0x3b09b2=_0x1efba7['locale'];function _0x31b66b(_0xaba0b9){const _0x4ab4c2=_0x1efba7['commands']['get']('bulletedList')['value'],_0x4bfaad=_0x1efba7['commands']['get']('numberedList')['value'];return'numberedList'===_0xaba0b9?_0x4ab4c2:_0x4bfaad;}_0x1efba7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x50de2b){if('formatBlock'!=_0x50de2b['type'])return;const {data:_0x20d68a}=_0x50de2b;if(!_0x20d68a)return;let _0x3ada99,_0x3b2c71,_0x42c66f,_0x4dfec2;switch(_0x20d68a['commandName']){case'bulletedList':_0x42c66f=_0x20d68a['commandParams'][0x0]['forceValue'],_0x4dfec2=_0x31b66b(_0x20d68a['commandName']),_0x3ada99=_0x42c66f?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4dfec2&&_0x1efba7['config']['get']('list.multiBlock')||(_0x3ada99='*Change\x20to:*\x20%0'),_0x3b2c71={'type':'format','content':o(_0x3b09b2,_0x3ada99,o(_0x3b09b2,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x42c66f=_0x20d68a['commandParams'][0x0]['forceValue'],_0x4dfec2=_0x31b66b(_0x20d68a['commandName']),_0x3ada99=_0x42c66f?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4dfec2&&_0x1efba7['config']['get']('list.multiBlock')||(_0x3ada99='*Change\x20to:*\x20%0'),_0x3b2c71={'type':'format','content':o(_0x3b09b2,_0x3ada99,o(_0x3b09b2,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x3ada99='*Indent:*\x20%0',_0x3b2c71={'type':'format','content':o(_0x3b09b2,_0x3ada99,o(_0x3b09b2,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x3ada99=function(_0x594616){const _0x15a636=_0x594616['getFirstRange']();let _0x44bf6c=_0x15a636['start']['nodeAfter'];for(;_0x44bf6c&&_0x15a636['containsItem'](_0x44bf6c);){if(_0x44bf6c['getAttribute']('listIndent')>0x0)return!0x1;_0x44bf6c=_0x44bf6c['nextSibling'];}return!0x0;}(_0x50de2b)?o(_0x3b09b2,'*Format:*\x20remove\x20from\x20%0',o(_0x3b09b2,function(_0x3cc852){return'ELEMENT_'+_0x3cc852['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x50de2b))):o(_0x3b09b2,'*Outdent:*\x20%0',o(_0x3b09b2,'ELEMENT_LIST_ITEM')),_0x3b2c71={'type':'format','content':_0x3ada99};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x20d68a['multipleBlocks']&&(_0x3ada99='*Merge:*\x20%0',_0x3b2c71={'type':'deletion','content':o(_0x3b09b2,_0x3ada99,o(_0x3b09b2,'ELEMENT_LIST_ITEM'))});}return _0x3b2c71;});}}function Te(_0x4a38d1){let _0x25c219=_0x4a38d1['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x25c219;){const _0xcf2ba9=_0x25c219['getAttribute']('listItemId');if(!_0xcf2ba9)return!0x1;if(_0xcf2ba9==_0x4a38d1['data']['newValue'])return'newValue';if(_0xcf2ba9==_0x4a38d1['data']['oldValue'])return'oldValue';_0x25c219=_0x25c219['previousSibling'];}return!0x1;}class Y extends _0x5249e2{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x22e159=this['editor']['config']['get']('list.properties'),_0x24db72=this['editor']['plugins']['get']('TrackChangesEditing');_0x22e159['styles']&&_0x24db72['enableDefaultAttributesIntegration']('listStyle'),_0x22e159['reversed']&&_0x24db72['enableDefaultAttributesIntegration']('listReversed'),_0x22e159['startIndex']&&_0x24db72['enableDefaultAttributesIntegration']('listStart');const _0x2bf418={'type':'format','content':''};_0x24db72['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x11bb8a=this['editor']['locale'];_0x24db72['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x11bb8a,'FORMAT_LIST_REVERSED')),_0x24db72['descriptionFactory']['registerDescriptionCallback'](_0x38f338=>{const {data:_0x42fbac}=_0x38f338;if(_0x42fbac&&'listReversed'==_0x42fbac['key'])return null==_0x42fbac['newValue']||0x0==_0x42fbac['newValue']&&null==_0x42fbac['oldValue']?_0x2bf418:void 0x0;}),_0x24db72['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x11bb8a,'FORMAT_LIST_START')),_0x24db72['descriptionFactory']['registerDescriptionCallback'](_0x3bd410=>{const {data:_0x335202}=_0x3bd410;if(_0x335202&&'listStart'==_0x335202['key'])return null==_0x335202['newValue']||0x1==_0x335202['newValue']&&null==_0x335202['oldValue']?_0x2bf418:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x2067ce=>{if(_0x2067ce['batch']['isUndo'])return!0x1;let _0x5b565e=!0x1;const _0x10a86a=_0x24db72['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x55aa70=>{const _0x302049=_0x24db72['_getAttributeKey'](_0x55aa70);return'listStart'==_0x302049||'listReversed'==_0x302049;});for(const _0x4ed6b9 of _0x10a86a){const _0x291970=_0x4ed6b9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x291970||'customNumbered'==_0x291970)continue;_0x24db72['_findSuggestions'](_0x4ed6b9['getFirstRange'](),'attribute')['find'](_0x17f2a9=>'listType'==_0x24db72['_getAttributeKey'](_0x17f2a9['suggestion']))||(_0x2067ce['removeMarker'](_0x4ed6b9['getFirstMarker']()),_0x5b565e=!0x0);}return _0x5b565e;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x4229c0){const _0x10c885=this['editor']['locale'],{data:_0x20fef8}=_0x4229c0,_0x578d4a={'type':'format','content':''};if(!_0x20fef8||'listStyle'!=_0x20fef8['key'])return;if(!_0x20fef8['oldValue'])return'default'==_0x20fef8['newValue']?_0x578d4a:{'type':'format','content':''+o(_0x10c885,'*Set\x20format:*\x20%0',o(_0x10c885,this['_getTranslationKeyForListStyle'](_0x20fef8['newValue'])))};if(!_0x20fef8['newValue']){if('default'==_0x20fef8['oldValue'])return _0x578d4a;let _0x2baddd=_0x4229c0['head'];for(;_0x2baddd;){if(_0x2baddd['data']&&'listType'==_0x2baddd['data']['key']&&_0x2baddd['data']['newValue'])return _0x578d4a;_0x2baddd=_0x2baddd['next'];}return{'type':'format','content':''+o(_0x10c885,'*Remove\x20format:*\x20%0',o(_0x10c885,this['_getTranslationKeyForListStyle'](_0x20fef8['oldValue'])))};}if('default'!=_0x20fef8['newValue'])return{'type':'format','content':''+o(_0x10c885,'*Set\x20format:*\x20%0',o(_0x10c885,this['_getTranslationKeyForListStyle'](_0x20fef8['newValue'])))};let _0x25ffca=_0x4229c0['head'];for(;_0x25ffca;){if(_0x25ffca['data']&&'listType'==_0x25ffca['data']['key']&&_0x25ffca['data']['newValue']&&_0x25ffca['data']['oldValue'])return _0x578d4a;_0x25ffca=_0x25ffca['next'];}return{'type':'format','content':o(_0x10c885,'*Set\x20format:*\x20%0',o(_0x10c885,'ELEMENT_'+_0x4229c0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x4c70b2=this['editor'],_0x407eb9=_0x4c70b2['locale'];_0x4c70b2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf88d0=>{if('formatBlock'!=_0xf88d0['type'])return;const {data:_0x21fdd2}=_0xf88d0;if(!_0x21fdd2)return;let _0x20e4e4,_0x1ab5a4;switch(_0x21fdd2['commandName']){case'listStyle':_0x20e4e4='*Change\x20to:*\x20%0',_0x1ab5a4={'type':'format','content':o(_0x407eb9,_0x20e4e4,o(_0x407eb9,this['_getTranslationKeyForListStyle'](_0x21fdd2['commandParams'][0x0]['type'])))};break;case'listReversed':_0x20e4e4=_0x21fdd2['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1ab5a4={'type':'format','content':o(_0x407eb9,_0x20e4e4)};break;case'listStart':_0x20e4e4='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1ab5a4={'type':'format','content':o(_0x407eb9,_0x20e4e4,_0x21fdd2['commandParams'][0x0]['startIndex'])};}return _0x1ab5a4;});}['_getTranslationKeyForListStyle'](_0x5270d0){return'ELEMENT_'+function(_0x1d4733){if(ye['includes'](_0x1d4733))return'bulleted';if(Se['includes'](_0x1d4733))return'numbered';return null;}(_0x5270d0)['toUpperCase']()+'_LIST_'+_0x5270d0['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];class Z extends _0x5249e2{['afterInit'](){const _0x51825a=this['editor'];_0x51825a['commands']['get']('emoji')&&_0x51825a['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class tt extends _0x5249e2{static get['requires'](){return[_0x48a3b5];}['init'](){const _0x459631=this['editor'],_0x563159=_0x459631['plugins']['get']('TrackChangesEditing'),_0x32ccbc=_0x459631['commands']['get']('enter');_0x563159['enableCommand']('enter',()=>{_0x459631['model']['change'](_0x5e6438=>{const _0x9bd47d=_0x459631['model']['document']['selection'],_0x4e7a9c=_0x9bd47d['getFirstPosition'](),_0xe9c745=_0x374b49['fromRange'](_0x9bd47d['getFirstRange']());if(_0x32ccbc['enterBlock'](_0x5e6438)){const _0x24d3d2=_0x459631['model']['createPositionAt'](_0x4e7a9c['parent']['nextSibling'],0x0),_0xe37723=_0x5e6438['createRange'](_0x4e7a9c,_0x24d3d2);_0x563159['markInsertion'](_0xe37723);}else _0x5e6438['setSelection'](_0x5e6438['createRange'](_0xe9c745['end']));_0xe9c745['detach'](),_0x32ccbc['fire']('afterExecute',{'writer':_0x5e6438});});});}}class nt extends _0x5249e2{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x3a2f6e=this['editor']['plugins']['get']('TrackChangesEditing');_0x3a2f6e['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x3a2f6e['enableCommand']('findNext'),_0x3a2f6e['enableCommand']('findPrevious'),_0x3a2f6e['enableCommand']('replace'),_0x3a2f6e['enableCommand']('replaceAll');}['handleFindCommand'](_0x1813e9,_0xa2f4e,_0x5b7ca8={}){const _0xde8407=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x1813e9(_0x4a6c99=>{let _0x4f3a0a=('string'==typeof _0xa2f4e?_0xde8407['findByTextCallback'](_0xa2f4e,_0x5b7ca8):_0xa2f4e)(_0x4a6c99);Array['isArray'](_0x4f3a0a)&&(_0x4f3a0a={'results':_0x4f3a0a,'searchText':'string'==typeof _0xa2f4e?_0xa2f4e:''});const _0x3ed4e1=_0x4f3a0a['results']['filter'](_0x46f187=>!0x1===this['_isInDeletionRange'](_0x46f187,_0x4a6c99['item']));return{..._0x4f3a0a,'results':_0x3ed4e1};},_0x5b7ca8);}['_isInDeletionRange'](_0x8c51f8,_0x55f157){const _0x3db872=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x55f157,_0x8c51f8['start']),this['editor']['model']['createPositionAt'](_0x55f157,_0x8c51f8['end']));for(const _0x590189 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x3db872['getIntersection'](_0x590189['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class it extends _0x5249e2{['afterInit'](){const _0x112310=this['editor']['locale'],_0x11cf8e=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x4d2843,commandName:_0x558ecb}of eo)this['editor']['plugins']['has'](_0x4d2843)&&_0x11cf8e['enableDefaultAttributesIntegration'](_0x558ecb);_0x11cf8e['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x112310,'FORMAT_FONT_SIZE')),_0x11cf8e['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x112310,'FORMAT_FONT_FAMILY')),_0x11cf8e['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x112310,'FORMAT_FONT_COLOR')),_0x11cf8e['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x112310,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3aa340=this['editor'],_0x35014a=_0x3aa340['locale'];_0x3aa340['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5cf616=>{const _0x22969a=_0x35014a['t'];if('formatInline'!=_0x5cf616['type'])return;const {data:_0x226120}=_0x5cf616;if(null!=_0x226120){if('fontSize'==_0x226120['commandName']){const _0x297e51=_0x226120['commandParams'][0x0]['value'];if(_0x297e51){const _0x23f99d=_0x22969a(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x46b9c7=>_0x46b9c7['model']==_0x297e51)['title'])['toLowerCase']();return{'type':'format','content':o(_0x35014a,'*Set\x20font\x20size:*\x20%0',_0x23f99d)};}return{'type':'format','content':o(_0x35014a,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x226120['commandName']){const _0xf26a9b=_0x226120['commandParams'][0x0]['value'];return _0xf26a9b?{'type':'format','content':o(_0x35014a,'*Set\x20font\x20family:*\x20%0',_0xf26a9b)}:{'type':'format','content':o(_0x35014a,'*Reset\x20font\x20family*')};}if('fontColor'==_0x226120['commandName']){const _0x35a70a=_0x226120['commandParams'][0x0]['value'];if(_0x35a70a){const _0x58805d=_0x476f92(this['editor']['config']['get']('fontColor.colors'))['find'](_0x1c55bb=>_0x1c55bb['model']==_0x35a70a);let _0xb6c5e5=_0x35a70a,_0x521684='';return _0x58805d&&(_0xb6c5e5=_0x58805d['label'],_0x521684=_0x22969a(_0xb6c5e5)['toLowerCase']()),{'type':'format','content':o(_0x35014a,'*Set\x20font\x20color:*\x20%0',_0x521684)['trim'](),'color':{'value':_0x35a70a,'title':_0x521684||_0xb6c5e5}};}return{'type':'format','content':o(_0x35014a,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x226120['commandName']){const _0x113474=_0x226120['commandParams'][0x0]['value'];if(_0x113474){const _0x4f634d=_0x476f92(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x7820f9=>_0x7820f9['model']==_0x113474);let _0x542e31=_0x113474,_0x105761='';return _0x4f634d&&(_0x542e31=_0x4f634d['label'],_0x105761=_0x22969a(_0x542e31)['toLowerCase']()),{'type':'format','content':o(_0x35014a,'*Set\x20font\x20background\x20color:*\x20%0',_0x105761)['trim'](),'color':{'value':_0x113474,'title':_0x105761||_0x542e31}};}return{'type':'format','content':o(_0x35014a,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x5249e2{['afterInit'](){const {plugins:_0x4216ff}=this['editor'];_0x4216ff['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x4216ff['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x187ae0,plugins:_0x3bc8f5,commands:_0x167c0c}=this['editor'],_0x1f0609=_0x3bc8f5['get']('TrackChangesEditing');_0x167c0c['get']('footnotesStyle')&&_0x1f0609['enableDefaultAttributesIntegration']('footnotesStyle'),_0x167c0c['get']('footnotesStart')&&_0x1f0609['enableDefaultAttributesIntegration']('footnotesStart'),_0x1f0609['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',o(_0x187ae0,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x1f0609['descriptionFactory']['registerAttributeLabel']('footnotesListStart',o(_0x187ae0,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x57256a=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x53dbc6,commands:_0x4d4a7b}=this['editor'];_0x4d4a7b['get']('insertFootnote')&&_0x57256a['enableCommand']('insertFootnote'),_0x57256a['descriptionFactory']['registerElementLabel']('footnoteRef',_0x2aa2a8=>o(_0x53dbc6,'ELEMENT_FOOTNOTE_REF',_0x2aa2a8)),_0x57256a['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x200764=>o(_0x53dbc6,'ELEMENT_FOOTNOTE_DEFINITION',_0x200764)),_0x57256a['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x1f55be=>o(_0x53dbc6,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x1f55be));}}class st extends _0x5249e2{['afterInit'](){const _0x8cddea=this['editor'],_0xc2b9c3=_0x8cddea['plugins']['get']('TrackChangesEditing'),_0x49b9ff=_0x8cddea['commands']['get']('copyFormat'),_0x1a20bf=_0x8cddea['commands']['get']('pasteFormat');_0x49b9ff&&_0x1a20bf&&(_0xc2b9c3['enableDefaultAttributesIntegration']('pasteFormat'),_0xc2b9c3['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x3f70c7=this['editor'],_0x1b09f0=_0x3f70c7['locale'];_0x3f70c7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b4f6f=>{if('formatBlock'!=_0x5b4f6f['type']&&'formatInline'!=_0x5b4f6f['type'])return;const {data:_0x14c87f}=_0x5b4f6f;if(_0x14c87f&&'pasteFormat'===_0x14c87f['commandName']){const _0xc733d5=[],_0x1b6748=_0x14c87f['commandParams'][0x0];for(const [_0x2ebe9c,_0x26a1d5]of Object['entries'](_0x1b6748))_0xc733d5['push'](ro(_0x3f70c7,_0x2ebe9c,_0x26a1d5));return _0xc733d5['length']?{'type':'format','content':o(_0x1b09f0,'*Set\x20format\x20to:*\x20%0',_0xc733d5['join'](',\x20'))}:{'type':'format','content':o(_0x1b09f0,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x49a091,_0xf1bf86,_0x17b614){const _0x272f51=_0x49a091['locale']['t'],_0x5b379f=_0xf1bf86['split'](/(?=[A-Z])/)['join']('\x20'),_0x51e1bf=_0x272f51(_0x5b379f['charAt'](0x0)['toUpperCase']()+_0x5b379f['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x17b614)return _0x51e1bf;if('fontColor'===_0xf1bf86||'fontBackgroundColor'===_0xf1bf86){const _0x3cfd37=_0x476f92(_0x49a091['config']['get']('fontColor.colors'))['find'](_0x3ee2d4=>_0x3ee2d4['model']==_0x17b614);return _0x51e1bf+'\x20('+(_0x3cfd37?_0x272f51(_0x3cfd37['label'])['toLowerCase']():_0x17b614)+')';}if('fontSize'===_0xf1bf86&&isNaN(parseFloat(_0x17b614))){const _0x4d9383=_0x49a091['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x49a091['config']['get']('fontSize.options'))['find'](_0x272f5e=>_0x272f5e['model']==_0x17b614);return _0x51e1bf+'\x20('+(_0x4d9383?_0x272f51(_0x4d9383['title'])['toLowerCase']():_0x17b614)+')';}return _0x51e1bf+'\x20('+_0x17b614+')';}class ot extends _0x5249e2{['_headingOptions'];['afterInit'](){const _0x21596e=this['editor'];if(!_0x21596e['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x21596e['config']['get']('heading.options');const _0x3f35c2=_0x21596e['locale'],_0x4e3518=_0x21596e['plugins']['get']('TrackChangesEditing');_0x4e3518['enableDefaultAttributesIntegration']('heading');for(const _0xbe1309 of this['_headingOptions'])'paragraph'!=_0xbe1309['model']&&_0x4e3518['descriptionFactory']['registerElementLabel'](_0xbe1309['model'],_0x22b62a=>{const _0x197f7c=this['_getHeadingLevel'](_0xbe1309['model']);return null!==_0x197f7c?_0x5b4117(_0x22b62a,_0x197f7c):_0x2f8820(_0x22b62a,_0xbe1309['title']);});function _0x5b4117(_0x5d501f,_0x3e1b39){return o(_0x3f35c2,'ELEMENT_HEADING',[_0x5d501f,_0x3e1b39]);}function _0x2f8820(_0x2719b6,_0x2fa7bc){return o(_0x3f35c2,'ELEMENT_HEADING_CUSTOM',[_0x2719b6,_0x2fa7bc]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2be795=this['editor'],_0x53fc5e=_0x2be795['locale'];function _0x4778a9(_0x22109f,_0x2e9bde){return o(_0x53fc5e,'ELEMENT_HEADING_CUSTOM',[_0x22109f,_0x2e9bde]);}_0x2be795['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x34cc54=>{if('formatBlock'!=_0x34cc54['type'])return;const {data:_0xd1768d}=_0x34cc54;if(_0xd1768d&&'heading'==_0xd1768d['commandName']){const _0x4ae254=_0xd1768d['commandParams'][0x0]['value'],_0x2051d0=this['_getHeadingLevel'](_0x4ae254);if(null!==_0x2051d0)return{'type':'format','content':o(_0x53fc5e,'*Change\x20to:*\x20%0',(_0x18abb4=0x1,_0x36b9eb=_0x2051d0,o(_0x53fc5e,'ELEMENT_HEADING',[_0x18abb4,_0x36b9eb])))};const _0x2bcb62=this['_headingOptions']['find'](_0x409953=>_0x409953['model']===_0x4ae254)['title'];return{'type':'format','content':o(_0x53fc5e,'*Change\x20to:*\x20%0',_0x4778a9(0x1,_0x2bcb62))};}var _0x18abb4,_0x36b9eb;});}['_getHeadingLevel'](_0x12319a){const _0x48dc70=_0x12319a['match'](/^heading(\d+)/);if(_0x48dc70)return _0x48dc70[0x1];const _0x562698=this['_headingOptions']?.['find'](_0x269b64=>_0x269b64['model']==_0x12319a);if(_0x562698&&_0x562698['view']){const _0x2df512=_0x562698['view'],_0x16ea9f=(_0x2df512['name']??_0x2df512)['match'](/^h(\d+)/);if(_0x16ea9f)return _0x16ea9f[0x1];}return null;}}class rt extends _0x5249e2{['afterInit'](){const _0x329505=this['editor'];if(!_0x329505['plugins']['has']('HighlightEditing'))return;const _0x1a2ff2=_0x329505['plugins']['get']('TrackChangesEditing'),_0x1ca9d6=_0x329505['locale'];_0x1a2ff2['enableDefaultAttributesIntegration']('highlight'),_0x1a2ff2['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x1ca9d6,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x47f69b=this['editor'],_0x256bf4=_0x47f69b['locale'];_0x47f69b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x594c32=>{if('formatInline'!=_0x594c32['type'])return;const {data:_0x12ba03}=_0x594c32;if(_0x12ba03&&'highlight'==_0x12ba03['commandName']){const _0x32b6fe=_0x256bf4['t'],_0x1c19f3=_0x12ba03['commandParams'][0x0]['value'];if(_0x1c19f3){const _0x1ac354=_0x47f69b['config']['get']('highlight.options')['find'](_0x5233b8=>_0x5233b8['model']==_0x1c19f3),_0x4b1f1a=_0x32b6fe(_0x1ac354['title'])['toLowerCase']();return{'type':'format','content':o(_0x256bf4,'*Set\x20highlight:*\x20%0',_0x4b1f1a),'color':{'value':_0x1ac354['color'],'title':_0x1ac354['title']}};}return{'type':'format','content':o(_0x256bf4,'*Remove\x20highlight*',o(_0x256bf4,'FORMAT_HIGHLIGHT'))};}});}}class at extends _0x5249e2{['afterInit'](){const _0x2a5ea3=this['editor'];if(!_0x2a5ea3['plugins']['has']('HorizontalLineEditing'))return;_0x2a5ea3['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x557de2=_0x2a5ea3['plugins']['get']('TrackChangesEditing'),_0x5acd14=_0x2a5ea3['locale'];_0x557de2['descriptionFactory']['registerElementLabel']('horizontalLine',_0x5587a8=>o(_0x5acd14,'ELEMENT_HORIZONTAL_LINE',_0x5587a8));}}class ct extends _0x5249e2{['afterInit'](){const _0x5a6d63=this['editor'];if(!_0x5a6d63['plugins']['has']('HtmlEmbed'))return;const _0x5ce37e=_0x5a6d63['plugins']['get']('TrackChangesEditing'),_0x45edd5=_0x5a6d63['locale'];_0x5ce37e['descriptionFactory']['registerElementLabel']('rawHtml',_0x38968c=>o(_0x45edd5,'ELEMENT_HTML_EMBED',_0x38968c)),_0x5ce37e['enableDefaultAttributesIntegration']('htmlEmbed'),_0x5ce37e['descriptionFactory']['registerDescriptionCallback'](_0x5d2d92=>{if('attribute'!=_0x5d2d92['type'])return;const {data:_0x386e56}=_0x5d2d92;if(_0x386e56&&'value'==_0x386e56['key']&&_0x5d2d92['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x336ada=o(_0x45edd5,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x45edd5,'*Change\x20%0\x20content*',_0x336ada)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3d8dc7=this['editor'],_0x1be420=_0x3d8dc7['locale'];_0x3d8dc7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2e9bbb=>{if('formatBlock'!=_0x2e9bbb['type'])return;const {data:_0x4a64ad}=_0x2e9bbb;if(_0x4a64ad&&'htmlEmbed'==_0x4a64ad['commandName']){const _0x21523c=o(_0x1be420,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1be420,'*Change\x20%0\x20content*',_0x21523c)};}});}}class ut extends _0x5249e2{['afterInit'](){const _0x341838=this['editor'];if(!_0x341838['plugins']['has']('ImageEditing'))return;const _0x225bfc=_0x341838['plugins']['get']('TrackChangesEditing'),_0xa5fd74=_0x341838['plugins']['get']('ImageUtils'),_0x739dfb=_0x341838['locale'];_0x225bfc['enableCommand']('insertImage'),_0x225bfc['descriptionFactory']['registerElementLabel']('imageBlock',_0x5b3e99=>o(_0x739dfb,'ELEMENT_IMAGE',_0x5b3e99)),_0x225bfc['descriptionFactory']['registerElementLabel']('imageInline',_0x222288=>o(_0x739dfb,'ELEMENT_INLINE_IMAGE',_0x222288)),_0x225bfc['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x739dfb,'ELEMENT_CAPTION')),_0x341838['plugins']['has']('ImageUploadEditing')&&_0x225bfc['enableCommand']('uploadImage'),_0x341838['plugins']['has']('ImageBlockEditing')&&_0x341838['plugins']['has']('ImageInlineEditing')&&(_0x225bfc['enableCommand']('imageTypeInline',(_0x34ab23,_0x4af24d)=>{const _0x333cd3=_0xa5fd74['getClosestSelectedImageElement'](_0x341838['model']['document']['selection']);_0x341838['model']['change'](()=>{_0x225bfc['markBlockFormat'](_0x333cd3,{'commandName':'imageTypeInline','commandParams':[_0x4af24d]},[],'convertBlockImageToInline');});}),_0x225bfc['enableCommand']('imageTypeBlock',(_0x4faa3f,_0x3aee82)=>{_0x341838['model']['change'](_0x1469fe=>{let _0xd0920b=_0xa5fd74['getClosestSelectedImageElement'](_0x341838['model']['document']['selection']),_0x192e96=_0x1469fe['createRangeOn'](_0xd0920b);const _0xe6505=_0x5d6f04['fromPosition'](_0x192e96['start'],'toPrevious'),_0x29414d=_0x5d6f04['fromPosition'](_0x192e96['end'],'toNext');_0x225bfc['forceDefaultExecution'](()=>_0x4faa3f(_0x3aee82)),_0xd0920b=_0xa5fd74['getClosestSelectedImageElement'](_0x341838['model']['document']['selection']),_0x192e96=_0x1469fe['createRangeOn'](_0xd0920b);const _0x416fec=_0x1469fe['createRange'](_0xe6505,_0x29414d);_0xe6505['detach'](),_0x29414d['detach'](),_0x225bfc['markBlockFormat'](_0xd0920b,{'commandName':'imageTypeInline','commandParams':[_0x3aee82]},[],'convertInlineImageToBlock'),_0x416fec['start']['isBefore'](_0x192e96['start'])&&_0x225bfc['markInsertion'](_0x1469fe['createRange'](_0x416fec['start'],_0x192e96['start']),'convertInlineImageToBlock'),_0x192e96['end']['isBefore'](_0x416fec['end'])&&_0x225bfc['markInsertion'](_0x1469fe['createRange'](_0x192e96['end'],_0x416fec['end']),'convertInlineImageToBlock');});}),_0x225bfc['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x225bfc['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x225bfc['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x225bfc['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x225bfc['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x225bfc['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x4e9762])=>{const _0x41a7a2=_0x225bfc['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x5cad89=_0x4e9762['start'],_0x1e0353=_0x4e9762['end'];const _0x5b2bb4=_0x341838['model']['schema']['getNearestSelectionRange'](_0x5cad89,'backward'),_0x2c8ed3=_0x341838['model']['schema']['getNearestSelectionRange'](_0x1e0353,'forward');_0x5b2bb4['isCollapsed']&&(_0x5cad89=_0x5b2bb4['start']),_0x2c8ed3['isCollapsed']&&(_0x1e0353=_0x2c8ed3['end']),_0x41a7a2([_0x341838['model']['createRange'](_0x5cad89,_0x1e0353)]);}),_0x225bfc['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x8b9745),_0x225bfc['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x8b9745)),_0x341838['plugins']['has']('ImageCaptionEditing')&&(_0x225bfc['enableCommand']('toggleImageCaption',(_0x307032,_0x4a9ad2)=>{const _0x4b8836=_0x341838['plugins']['get']('ImageCaptionUtils');let _0x592708=_0xa5fd74['getClosestSelectedImageElement'](_0x341838['model']['document']['selection']),_0x24b68b=_0x4b8836['getCaptionFromImageModelElement'](_0x592708);_0x341838['model']['change'](()=>{if(_0x24b68b)return void _0x225bfc['markDeletion'](_0x341838['model']['createRangeOn'](_0x24b68b));const _0x4e66d8=_0xa5fd74['isBlockImage'](_0x592708);_0x307032(_0x4a9ad2),_0x592708=_0xa5fd74['getClosestSelectedImageElement'](_0x341838['model']['document']['selection']),_0x24b68b=_0x4b8836['getCaptionFromImageModelElement'](_0x592708),_0x225bfc['markInsertion'](_0x341838['model']['createRangeOn'](_0x24b68b),_0x4e66d8?null:'imageCaption');});}),_0x225bfc['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x8b9745));const _0x567e35=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x27b2fe(_0x3d9503,_0x235051){const _0x568946=_0x567e35['findIndex'](({type:_0x598fd1,subType:_0x2cb65a})=>_0x3d9503['type']==_0x598fd1&&_0x3d9503['subType']==_0x2cb65a),_0x530f46=_0x567e35['findIndex'](({type:_0x2e6551,subType:_0x4a6971})=>_0x235051['type']==_0x2e6551&&_0x235051['subType']==_0x4a6971);if(_0x568946<0x0||_0x530f46<0x0)return!0x1;const _0x14a88e=_0x3d9503['getFirstRange'](),_0x167906=_0x235051['getFirstRange']();if((0x0==_0x568946||0x1==_0x568946)&&0x2==_0x530f46&&_0x14a88e['isIntersecting'](_0x167906))return!0x0;if(0x2==_0x568946&&0x3==_0x530f46){const _0x21c377=_0x225bfc['_findSuggestions'](_0x14a88e,'insertion')['filter'](({suggestion:_0x4e53eb,meta:_0x56d8ae})=>_0x56d8ae['isOwn']&&'convertInlineImageToBlock'==_0x4e53eb['subType']);if(_0x21c377['length']>0x1&&_0x167906['end']['isEqual'](_0x14a88e['start']))return!0x0;if(0x1==_0x21c377['length']&&(_0x14a88e['start']['isEqual'](_0x167906['end'])||_0x14a88e['end']['isEqual'](_0x167906['start'])))return!0x0;}if(0x3==_0x568946&&0x3==_0x530f46&&_0x14a88e['start']['isBefore'](_0x167906['start'])){const _0x51cda6=_0x14a88e['end']['nodeAfter'],_0x29ede5=_0x167906['start']['nodeBefore'];return _0xa5fd74['isBlockImage'](_0x51cda6)&&_0x51cda6===_0x29ede5;}return!0x1;}function _0x8b9745(_0x5914b8,_0x2be3d8){return _0x27b2fe(_0x5914b8,_0x2be3d8)?[_0x5914b8,_0x2be3d8]:_0x27b2fe(_0x2be3d8,_0x5914b8)?[_0x2be3d8,_0x5914b8]:null;}_0x341838['plugins']['has']('ImageResize')&&(_0x225bfc['enableDefaultAttributesIntegration']('resizeImage'),_0x225bfc['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x739dfb,'FORMAT_IMAGE_SIZE'))),_0x341838['plugins']['has']('ImageTextAlternativeEditing')&&_0x225bfc['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x341838['plugins']['has']('PictureEditing')&&_0x225bfc['descriptionFactory']['registerDescriptionCallback'](_0x2e1754=>{if('attribute'!=_0x2e1754['type'])return;const {data:_0x23ea8a}=_0x2e1754;return _0x23ea8a&&'sources'==_0x23ea8a['key']?{'type':'format','content':''}:void 0x0;}),_0x341838['plugins']['has']('ImageSizeAttributes')&&_0x225bfc['descriptionFactory']['registerDescriptionCallback'](_0x33cf3c=>{if('attribute'!=_0x33cf3c['type'])return;const {data:_0x2a3c17}=_0x33cf3c;return!_0x2a3c17||'width'!=_0x2a3c17['key']&&'height'!=_0x2a3c17['key']?void 0x0:{'type':'format','content':''};}),_0x225bfc['descriptionFactory']['registerDescriptionCallback'](_0x4caa3d=>{if(!!_0x567e35['find'](({type:_0x2612c8,subType:_0x32fa2f})=>_0x4caa3d['type']==_0x2612c8&&_0x4caa3d['subType']==_0x32fa2f))return _0x4caa3d['previous']?{}:void 0x0;}),_0x225bfc['descriptionFactory']['registerDescriptionCallback'](_0x1502e7=>{if('insertion'==_0x1502e7['type']||'deletion'==_0x1502e7['type']){const _0x5aabe5=_0x1502e7['getContainedElement']();if(_0x5aabe5&&_0x5aabe5['is']('element','caption'))return{'type':'insertion'==_0x1502e7['type']?'addObject':'removeObject','element':_0x5aabe5,'quantity':0x1};}}),_0x225bfc['descriptionFactory']['registerDescriptionCallback'](_0x23aef1=>'formatBlock'==_0x23aef1['type']&&'convertInlineImageToBlock'==_0x23aef1['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x23aef1['type']&&'convertBlockImageToInline'==_0x23aef1['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x225bfc['descriptionFactory']['registerDescriptionCallback'](_0x22a6db=>{if('attribute'!=_0x22a6db['type'])return;const {data:_0x46beb0}=_0x22a6db;if(!_0x46beb0||'alt'!=_0x46beb0['key'])return;const _0x5a85e9=_0x46beb0['newValue'];return _0x5a85e9?{'type':'format','content':o(_0x739dfb,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5a85e9+'\x22')}:{'type':'format','content':o(_0x739dfb,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x14b0bd=this['editor'],_0x501545=_0x14b0bd['locale'];_0x14b0bd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x500d4a=>{if('formatBlock'!=_0x500d4a['type']&&'formatInline'!=_0x500d4a['type'])return;const {data:_0x4c4032}=_0x500d4a;if(_0x4c4032){if('imageTextAlternative'==_0x4c4032['commandName']){const _0x4b90e1=_0x4c4032['commandParams'][0x0]['newValue'];return _0x4b90e1?{'type':'format','content':o(_0x501545,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4b90e1+'\x22')}:{'type':'format','content':o(_0x501545,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x4c4032['commandName']){const _0x5b60f5=_0x4c4032['commandParams'][0x0]['width'];return _0x5b60f5?{'type':'format','content':o(_0x501545,'*Set\x20image\x20width:*\x20%0',_0x5b60f5)}:{'type':'format','content':o(_0x501545,'*Reset\x20image\x20width*')};}}});}}class ft extends _0x5249e2{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x39c870=this['editor']['locale'],_0x3e28f0=this['editor']['plugins']['get']('TrackChangesEditing');_0x3e28f0['enableDefaultAttributesIntegration']('replaceImageSource'),_0x3e28f0['descriptionFactory']['registerDescriptionCallback'](_0x1ca6ba=>{if('attribute'!=_0x1ca6ba['type'])return;const {data:_0x317e98}=_0x1ca6ba;return _0x317e98&&'src'==_0x317e98['key']?_0x317e98['newValue']&&_0x317e98['oldValue']?{'type':'format','content':o(_0x39c870,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x43ba28=this['editor']['plugins']['get']('TrackChangesEditing');_0x43ba28['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x43ba28['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x43ba28['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x43ba28['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1a55e2=this['editor'],_0x3a7f30=_0x1a55e2['locale'];_0x1a55e2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4348b6=>{if('formatBlock'!=_0x4348b6['type']&&'formatInline'!=_0x4348b6['type'])return;const {data:_0x4a06dc}=_0x4348b6;if(!_0x4a06dc||'replaceImageSource'!=_0x4a06dc['commandName'])return;return{'type':'format','content':o(_0x3a7f30,'*Format:*\x20replace\x20image\x20URL')};});}}class ht extends _0x5249e2{['afterInit'](){const _0x55f521=this['editor'];if(!_0x55f521['plugins']['has']('ImageStyleEditing'))return;const _0x9fb86c=_0x55f521['plugins']['get']('TrackChangesEditing'),_0x4da899=_0x55f521['plugins']['get']('ImageUtils'),_0x573125={};_0x9fb86c['enableCommand']('imageStyle',(_0x41791d,_0x1642fe)=>{const _0x39d11c=_0x55f521['plugins']['get']('Users')['me'],_0x465e8b=_0x55f521['commands']['get']('imageStyle');let _0x4adf15=_0x4da899['getClosestSelectedImageElement'](_0x55f521['model']['document']['selection']),_0x599be8=_0x55f521['model']['createRangeOn'](_0x4adf15),_0x30ae4f=_0x465e8b['value'];if(_0x30ae4f==_0x1642fe['value'])return;const _0x12eb51={'commandName':'imageStyle','commandParams':[_0x1642fe],'formatGroupId':_0x183e5d()};_0x55f521['model']['change'](()=>{if(_0x9fb86c['getSuggestions']()['filter'](_0x25e6ea=>_0x25e6ea['isInContent']&&_0x39d11c==_0x25e6ea['author']&&('formatBlock'==_0x25e6ea['type']||'formatInline'==_0x25e6ea['type'])&&('imageStylePreApply'==_0x25e6ea['subType']||'imageStylePostApply'==_0x25e6ea['subType'])&&_0x25e6ea['getFirstRange']()['isEqual'](_0x599be8))['forEach'](_0xc3ac00=>_0x9fb86c['discardSuggestion'](_0xc3ac00['head'])),_0x4adf15=_0x4da899['getClosestSelectedImageElement'](_0x55f521['model']['document']['selection']),_0x599be8=_0x55f521['model']['createRangeOn'](_0x4adf15),_0x465e8b['refresh'](),_0x55f521['commands']['get']('imageTypeInline')['refresh'](),_0x55f521['commands']['get']('imageTypeBlock')['refresh'](),_0x30ae4f=_0x465e8b['value'],_0x30ae4f!=_0x1642fe['value'])return _0x4da899['isInlineImage'](_0x4adf15)&&_0x465e8b['shouldConvertImageType'](_0x1642fe['value'],_0x4adf15)?(_0x41791d({..._0x1642fe,'setImageSizes':!0x1}),_0x4adf15=_0x4da899['getClosestSelectedImageElement'](_0x55f521['model']['document']['selection']),void _0x9fb86c['markBlockFormat'](_0x4adf15,{..._0x12eb51,'commandReversedParams':[{'value':_0x30ae4f||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x4da899['isBlockImage'](_0x4adf15)?_0x9fb86c['markBlockFormat'](_0x4adf15,_0x12eb51,[],'imageStylePostApply'):_0x9fb86c['markInlineFormat'](_0x599be8,_0x12eb51,'imageStylePostApply'));});});for(const _0xcc920 of _0x55f521['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x573125[_0xcc920['name']]=_0xcc920['title']['toLowerCase']();_0x9fb86c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x9fb86c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x9fb86c['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x9fb86c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x404b8d])=>{_0x4da899['setImageNaturalSizeAttributes'](_0x404b8d['getContainedElement']());}),_0x9fb86c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x46602b,_0x3e3c4d)=>{_0x9fb86c['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x46602b,{'commandName':_0x3e3c4d['commandName'],'commandParams':_0x3e3c4d['commandReversedParams']});}),_0x9fb86c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x1e2094,_0x303170){if(_0x40a245(_0x1e2094,_0x303170))return[_0x1e2094,_0x303170];if(_0x40a245(_0x303170,_0x1e2094))return[_0x303170,_0x1e2094];return null;});const _0x3d1e3b=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x40a245(_0x2b9066,_0x429cef){const _0x3d2c02=_0x3d1e3b['findIndex'](({type:_0x5183a3,subType:_0x321047})=>_0x2b9066['type']==_0x5183a3&&_0x2b9066['subType']==_0x321047),_0x114ea2=_0x3d1e3b['findIndex'](({type:_0x36e897,subType:_0x38afb5})=>_0x429cef['type']==_0x36e897&&_0x429cef['subType']==_0x38afb5);if(_0x3d2c02<0x0||_0x114ea2<0x0)return!0x1;const _0x4bdbd4=_0x2b9066['getFirstRange'](),_0x12b241=_0x429cef['getFirstRange']();if((0x0==_0x3d2c02||0x1==_0x3d2c02)&&0x2==_0x114ea2&&_0x4bdbd4['isIntersecting'](_0x12b241))return!0x0;if(0x2==_0x3d2c02&&0x3==_0x114ea2){const _0x2d9415=_0x9fb86c['_findSuggestions'](_0x4bdbd4,'insertion')['filter'](({suggestion:_0x2bf704,meta:_0x1c8896})=>_0x1c8896['isOwn']&&'convertInlineImageToBlock'==_0x2bf704['subType']);if(_0x2d9415['length']>0x1&&_0x12b241['end']['isEqual'](_0x4bdbd4['start']))return!0x0;if(0x1==_0x2d9415['length']&&(_0x4bdbd4['start']['isEqual'](_0x12b241['end'])||_0x4bdbd4['end']['isEqual'](_0x12b241['start'])))return!0x0;}if(0x3==_0x3d2c02&&0x3==_0x114ea2&&_0x4bdbd4['start']['isBefore'](_0x12b241['start'])){const _0x2919ef=_0x4bdbd4['end']['nodeAfter'],_0x4ebb8d=_0x12b241['start']['nodeBefore'];return _0x4da899['isBlockImage'](_0x2919ef)&&_0x2919ef===_0x4ebb8d;}return!0x1;}_0x55f521['model']['document']['registerPostFixer'](()=>{let _0x36c560=!0x1;const _0x404164=Array['from'](_0x55f521['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5ae9b6,data:_0xa9bde9}of _0x404164){const {group:_0x8d1801,type:_0x5bf6bd,subType:_0x376b84,id:_0x2e1c12}=_0x9fb86c['_splitMarkerName'](_0x5ae9b6);if('suggestion'==_0x8d1801&&_0x9fb86c['hasSuggestion'](_0x2e1c12)){if('formatBlock'==_0x5bf6bd&&('imageStylePreApply'==_0x376b84||'imageStylePostApply'==_0x376b84)){const _0x1cfd64=_0x9fb86c['getSuggestion'](_0x2e1c12);if(_0xa9bde9['newRange']){const _0x1781bb=_0x1cfd64['getFirstRange']()['getContainedElement']();if(_0x4da899['isBlockImage'](_0x1781bb))continue;_0x9fb86c['discardSuggestion'](_0x1cfd64),_0x36c560=!0x0;}}if('insertion'==_0x5bf6bd&&'imageCaption'==_0x376b84&&!_0xa9bde9['newRange']){const _0x13c922=_0x9fb86c['getSuggestion'](_0x2e1c12);_0x13c922['next']&&_0x13c922['next']['isInContent']&&(_0x9fb86c['discardSuggestion'](_0x13c922['next']),_0x36c560=!0x0);}}}return _0x36c560;}),this['_registerLegacyDescription'](_0x573125);}['_registerLegacyDescription'](_0x3a8ff3){const _0x247cda=this['editor'],_0x43e91d=_0x247cda['locale'];_0x247cda['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2be461=>{if('formatBlock'!=_0x2be461['type']&&'formatInline'!=_0x2be461['type'])return;const {data:_0x4e706c}=_0x2be461;if(!_0x4e706c||'imageStyle'!=_0x4e706c['commandName'])return;const _0x9635d6=_0x4e706c['commandParams'][0x0]['value'];return _0x5698a4('side'===_0x9635d6?o(_0x43e91d,'FORMAT_SIDE_IMAGE'):_0x3a8ff3[_0x9635d6]||_0x9635d6);function _0x5698a4(_0x29ddd4){return{'type':'format','content':o(_0x43e91d,'*Format:*\x20%0',_0x29ddd4)};}});}}class lt extends _0x5249e2{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x2903d4){super(_0x2903d4),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x924709=this['editor'],_0x3dc553=_0x924709['commands']['get']('importWord'),_0x24ca59=_0x924709['commands']['get']('trackChanges');_0x3dc553&&(_0x3dc553['on']('execute',(_0x146825,[,_0x5c651c])=>{this['_trackChangesValueDuringImport']=_0x24ca59['value'],_0x5c651c['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x3dc553,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x3dc553,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x24ca59['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x924709['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x11d3f9,_0x18b9a6){const {suggestions:_0x3584f2}=_0x18b9a6,_0x103fda=this['editor']['commands']['get']('trackChanges'),_0x25bd6e=_0x103fda['value'];this['_trackChangesValueDuringImport']!==_0x25bd6e&&(_0x103fda['execute'](),this['_trackChangesExecuted']=!0x0),_0x3584f2&&_0x3584f2['forEach'](({id:_0x2ab6ad,type:_0x6d69d4,author:_0x544d2c,created_at:_0x40ae6b})=>{const _0x3c4a4b={'id':_0x2ab6ad,'type':_0x6d69d4,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x544d2c,'createdAt':_0x40ae6b?new Date(_0x40ae6b):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x3c4a4b);});}}class gt extends _0x5249e2{['afterInit'](){const _0x338c46=this['editor'],_0xb520b4=_0x338c46['plugins']['get']('TrackChangesEditing');if(_0x338c46['plugins']['has']('IndentEditing')&&(_0xb520b4['enableCommand']('indent'),_0xb520b4['enableCommand']('outdent')),_0x338c46['plugins']['has']('IndentBlock')){for(const _0x533968 of['indentBlock','outdentBlock'])_0xb520b4['enableDefaultAttributesIntegration'](_0x533968);if(_0x338c46['plugins']['has']('ListEditing')){for(const _0xafe39f of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0xb520b4['enableDefaultAttributesIntegration'](_0xafe39f);}}const _0x353c01=_0x338c46['locale'];_0xb520b4['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x353c01,'FORMAT_INDENT')),_0xb520b4['descriptionFactory']['registerAttributeLabel']('blockIndentList',o(_0x353c01,'FORMAT_INDENT')),_0xb520b4['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',o(_0x353c01,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x364dd8=this['editor'],_0xf7d7f3=_0x364dd8['locale'],_0x4679b9=_0x364dd8['plugins']['get']('TrackChangesEditing');_0x4679b9['descriptionFactory']['registerDescriptionCallback'](_0x5dc102=>{if('formatBlock'!=_0x5dc102['type'])return;const {data:_0x3660fc}=_0x5dc102;if(!_0x3660fc)return;if('indentBlock'!=_0x3660fc['commandName']&&'outdentBlock'!=_0x3660fc['commandName'])return;const _0x4f8e52=_0x5dc102['getItems']()[0x0],_0x3545dd=_0x4679b9['descriptionFactory']['getItemLabel'](_0x4f8e52);return'indentBlock'==_0x3660fc['commandName']?{'type':'format','content':o(_0xf7d7f3,'*Indent:*\x20%0',_0x3545dd)}:'outdentBlock'==_0x3660fc['commandName']?{'type':'format','content':o(_0xf7d7f3,'*Outdent:*\x20%0',_0x3545dd)}:void 0x0;});}}class mt extends _0x5249e2{static get['requires'](){return[_0x24b560];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class dt extends _0x5249e2{['afterInit'](){const _0x26b430=this['editor'];if(!_0x26b430['plugins']['has']('LinkEditing'))return;const _0x248290=_0x26b430['plugins']['get']('TrackChangesEditing'),_0x596290=_0x26b430['commands']['get']('link');_0x248290['enableDefaultAttributesIntegration']('link'),_0x248290['enableDefaultAttributesIntegration']('unlink');for(const _0x45bf42 of _0x596290['manualDecorators'])_0x248290['descriptionFactory']['registerAttributeLabel'](_0x45bf42['id'],'link\x20('+_0x45bf42['label']['toLowerCase']()+')');_0x248290['descriptionFactory']['registerDescriptionCallback'](_0x4e507f=>{if('attribute'!=_0x4e507f['type'])return;const {data:_0x2d14ec}=_0x4e507f;if(!_0x2d14ec||'linkHref'!=_0x2d14ec['key'])return;const _0xe87137=_0x2d14ec['newValue'],_0x10abfa=_0x26b430['locale'];return{'type':'format','content':null==_0xe87137?o(_0x10abfa,'*Remove\x20link*'):o(_0x10abfa,'*Set\x20link:*\x20%0','\x22'+_0xe87137+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x9507e5=this['editor'],_0x12f6f3=_0x9507e5['locale'];_0x9507e5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x50dc4d=>{if('formatInline'!=_0x50dc4d['type'])return;const {data:_0x1adb8a}=_0x50dc4d;if(_0x1adb8a){if('link'==_0x1adb8a['commandName']){const _0xbdc92=_0x1adb8a['commandParams'][0x0];return{'type':'format','content':o(_0x12f6f3,'*Set\x20link:*\x20%0','\x22'+_0xbdc92+'\x22')};}return'unlink'==_0x1adb8a['commandName']?{'type':'format','content':o(_0x12f6f3,'*Remove\x20link*')}:void 0x0;}});}}class pt extends _0x5249e2{['afterInit'](){const _0xc1f161=this['editor'],_0x5148b6=_0xc1f161['locale'];if(!_0xc1f161['plugins']['has']('LegacyListEditing'))return;const _0x53a89f=_0xc1f161['plugins']['get']('TrackChangesEditing'),_0x1c1f83=_0xc1f161['plugins']['has']('LegacyTodoListEditing');function _0x71dce9(_0x369cb8){return()=>{const _0x956816=_0xc1f161['model']['document']['selection'],_0x151dc6=_0xc1f161['commands']['get'](_0x369cb8);if(_0x151dc6['value'])return void _0xc1f161['execute']('paragraph',{});const _0x1f27b4=_0x369cb8['slice'](0x0,-0x4),_0xba2479=function(_0x21b684,_0x4075a1,_0x3c2320){let _0x4e8465=Array['from'](_0x21b684)['filter'](_0x2063fc=>function(_0x1e3f8f,_0x2eefc6){return _0x2eefc6['checkChild'](_0x1e3f8f['parent'],'listItem')&&!_0x2eefc6['isObject'](_0x1e3f8f);}(_0x2063fc,_0x3c2320));_0x4e8465=_0x4e8465['filter'](_0x4d0e98=>!_0x4d0e98['is']('element','listItem')||_0x4d0e98['getAttribute']('listType')!=_0x4075a1);const _0x5f5314=new Set();for(const _0x23d94b of _0x4e8465)_0x23d94b['is']('element','listItem')?_0x5f5314['add'](Le(_0x23d94b)):_0x5f5314['add'](_0x23d94b);return Array['from'](_0x5f5314);}(_0x956816['getSelectedBlocks'](),_0x1f27b4,_0xc1f161['model']['schema']);_0xc1f161['model']['change'](()=>{for(const _0x247a26 of _0xba2479)_0x53a89f['markBlockFormat'](_0x247a26,{'commandName':_0x369cb8,'commandParams':[{'forceValue':!_0x151dc6['value']}],'formatGroupId':'blockName'},Ee(_0x247a26));});};}function _0x44fd74(_0x26e13d){return()=>{const _0x350fba=function(_0x5493e2){let _0xaf8d27=Array['from'](_0x5493e2);const _0x254844=_0xaf8d27['findIndex'](_0x5a99ff=>'listItem'!=_0x5a99ff['name']);return _0x254844>-0x1&&(_0xaf8d27=_0xaf8d27['slice'](0x0,_0x254844)),_0xaf8d27;}(_0xc1f161['model']['document']['selection']['getSelectedBlocks']()),_0x170e3f=_0xc1f161['model']['createRange'](_0xc1f161['model']['createPositionAt'](_0x350fba[0x0],'before'),_0xc1f161['model']['createPositionAt'](_0x350fba[_0x350fba['length']-0x1],'end'));_0xc1f161['model']['change'](()=>{_0x53a89f['markBlockFormat'](_0x170e3f,{'commandName':_0x26e13d,'commandParams':[],'formatGroupId':'listIndent'},function(_0x34f856){const _0x47e32a=new Set();for(const _0x4fbd60 of _0x34f856){let _0xd51eb4=_0x4fbd60['nextSibling'];for(;_0xd51eb4&&_0xd51eb4['getAttribute']('listIndent')>_0x4fbd60['getAttribute']('listIndent');)_0x47e32a['add'](_0xd51eb4),_0xd51eb4=_0xd51eb4['nextSibling'];}return Array['from'](_0x47e32a);}(_0x350fba));});};}_0x53a89f['enableCommand']('numberedList',_0x71dce9('numberedList')),_0x53a89f['enableCommand']('bulletedList',_0x71dce9('bulletedList')),_0x1c1f83&&_0x53a89f['enableCommand']('todoList',_0x71dce9('todoList')),_0x53a89f['enableCommand']('indentList',_0x44fd74('indentList')),_0x53a89f['enableCommand']('outdentList',_0x44fd74('outdentList')),_0x1c1f83&&_0x53a89f['enableCommand']('checkTodoList',()=>{const _0x4db77f=_0xc1f161['commands']['get']('checkTodoList'),_0x5b69d3=Array['from'](_0x4db77f['_selectedElements']);_0x5b69d3['filter'](_0x4e154a=>_0x4e154a['getAttribute']('todoListChecked')!=_0x4db77f['value']),_0xc1f161['model']['change'](()=>{for(const _0x18fbc1 of _0x5b69d3)_0x53a89f['markBlockFormat'](_0x18fbc1,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x4db77f['value']}]});});}),_0x53a89f['descriptionFactory']['registerElementLabel']('listItem',_0x1b1ec2=>o(_0x5148b6,'ELEMENT_LIST_ITEM',_0x1b1ec2)),_0x53a89f['descriptionFactory']['registerDescriptionCallback'](_0x4119d6=>{if('formatBlock'!=_0x4119d6['type']&&'formatInline'!=_0x4119d6['type'])return;const {data:_0x1d41ab}=_0x4119d6;if(_0x1d41ab){if('numberedList'==_0x1d41ab['commandName']||'bulletedList'==_0x1d41ab['commandName']||'todoList'==_0x1d41ab['commandName'])switch(_0x1d41ab['commandName']['replace']('List','')){case'bulleted':return _0x51d0d4(o(_0x5148b6,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x51d0d4(o(_0x5148b6,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x51d0d4(o(_0x5148b6,'ELEMENT_TODO_LIST'));}if('indentList'==_0x1d41ab['commandName'])return{'type':'format','content':o(_0x5148b6,'*Indent:*\x20%0',o(_0x5148b6,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x1d41ab['commandName'])return{'type':'format','content':o(_0x5148b6,'*Outdent:*\x20%0',o(_0x5148b6,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x1d41ab['commandName'])return _0x1d41ab['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5148b6,'*Check\x20item*')}:{'type':'format','content':o(_0x5148b6,'*Uncheck\x20item*')};}function _0x51d0d4(_0x64ffce){return{'type':'format','content':o(_0x5148b6,'*Change\x20to:*\x20%0',_0x64ffce)};}});}}function Le(_0x58656d){const _0x4b3a1f=_0x58656d['getAttribute']('listIndent');if(0x0==_0x4b3a1f)return _0x58656d;let _0x3aa947=_0x58656d;for(;_0x58656d['previousSibling']&&_0x58656d['previousSibling']['is']('element','listItem');){const _0x5e3c43=_0x58656d['previousSibling']['getAttribute']('listIndent');if(_0x5e3c43==_0x4b3a1f)_0x3aa947=_0x58656d['previousSibling'];else{if(_0x5e3c43<_0x4b3a1f)break;}_0x58656d=_0x58656d['previousSibling'];}return _0x3aa947;}function Ee(_0x201f45){const _0x56284e=[];if(_0x201f45['is']('element','listItem')&&_0x201f45['getAttribute']('listIndent')>0x0){let _0x44def9=_0x201f45['nextSibling'];for(;_0x44def9&&'listItem'==_0x44def9['name']&&_0x44def9['getAttribute']('listIndent')==_0x201f45['getAttribute']('listIndent');)_0x56284e['push'](_0x44def9),_0x44def9=_0x44def9['nextSibling'];}return _0x56284e;}class wt extends _0x5249e2{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0xb83bf4=this['editor']['config']['get']('list.properties'),_0x4db4d4=this['editor']['plugins']['get']('TrackChangesEditing');_0xb83bf4['styles']&&_0x4db4d4['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0xb83bf4['reversed']&&_0x4db4d4['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0xb83bf4['startIndex']&&_0x4db4d4['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x4db4d4['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x1551ce,_0x58a2db={}){const _0x1d5469=this['editor']['plugins']['get']('TrackChangesEditing'),_0x935f9e=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x1d5469['markMultiRangeBlockFormat'](_0x935f9e,{'commandName':'listStyle','commandParams':[{'type':_0x58a2db['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x16e225,_0x3d2ff8={}){const _0x131a2b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x197d6f=this['_getSuggestionBlocks'](_0x4f6733=>_0x4f6733['is']('element','listItem')&&'numbered'===_0x4f6733['getAttribute']('listType'));if(_0x197d6f['length']<0x1)return;const _0x227210=_0x197d6f['map'](_0x23f09c=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x23f09c,'before'),this['editor']['model']['createPositionAt'](_0x23f09c,0x0)));this['editor']['model']['change'](()=>{_0x131a2b['markMultiRangeBlockFormat'](_0x227210,{'commandName':'listReversed','commandParams':[{'reversed':_0x3d2ff8['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x144bb0,_0x2965c6={}){const _0x998bb1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2c56bd=this['_getSuggestionBlocks'](_0x2fe80d=>_0x2fe80d['is']('element','listItem')&&'numbered'===_0x2fe80d['getAttribute']('listType'));if(_0x2c56bd['length']<0x1)return;const _0x2ec584=_0x2c56bd['map'](_0x30c696=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x30c696,'before'),this['editor']['model']['createPositionAt'](_0x30c696,0x0)));this['editor']['model']['change'](()=>{_0x998bb1['markMultiRangeBlockFormat'](_0x2ec584,{'commandName':'listStart','commandParams':[{'startIndex':_0x2965c6['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x259b9a){if('formatBlock'!=_0x259b9a['type']&&'formatInline'!=_0x259b9a['type'])return;const _0x5038d3=this['editor']['locale'],{data:_0x40e980}=_0x259b9a;if(!_0x40e980)return;let _0x5524bc,_0x415f40;switch(_0x40e980['commandName']){case'listStyle':_0x5524bc='*Change\x20to:*\x20%0',_0x415f40={'type':'format','content':o(_0x5038d3,_0x5524bc,o(_0x5038d3,this['_getTranslationKeyForListStyle'](_0x40e980['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5524bc=_0x40e980['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x415f40={'type':'format','content':o(_0x5038d3,_0x5524bc)};break;case'listStart':_0x5524bc='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x415f40={'type':'format','content':o(_0x5038d3,_0x5524bc,_0x40e980['commandParams'][0x0]['startIndex'])};}return _0x415f40;}['_getSuggestionBlocksForListStyle'](){const _0x420bda=this['editor']['plugins']['get']('LegacyListUtils');let _0x1ddca2=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x1ddca2[0x0]?.['is']('element','listItem')&&_0x1ddca2['unshift'](..._0x420bda['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x1ddca2[_0x1ddca2['length']-0x1]?.['is']('element','listItem')&&_0x1ddca2['push'](..._0x420bda['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x1ddca2=[...new Set(_0x1ddca2)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x1ddca2=_0x1ddca2['filter'](_0x834049=>_0x834049['is']('element','listItem'))),_0x1ddca2;}['_getSuggestionBlocks'](_0x2989e9){const _0x113ead=this['editor']['plugins']['get']('LegacyListUtils');let _0x2c10e0=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x2989e9)['map'](_0x4cd33b=>{const _0xf31027=this['editor']['model']['createPositionAt'](_0x4cd33b,0x0);return[..._0x113ead['getSiblingNodes'](_0xf31027,'backward'),..._0x113ead['getSiblingNodes'](_0xf31027,'forward')];})['flat']();return _0x2c10e0=[...new Set(_0x2c10e0)],_0x2c10e0;}['_getTranslationKeyForListStyle'](_0x28690a){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x28690a)||'default')['toUpperCase']()+'_LIST_'+_0x28690a['toUpperCase']()['replace'](/-/g,'_');}}class kt extends _0x5249e2{['afterInit'](){const _0xfb333e=this['editor'];if(!_0xfb333e['plugins']['has']('MediaEmbedEditing'))return;const _0x5c7c33=_0xfb333e['plugins']['get']('TrackChangesEditing'),_0x420917=_0xfb333e['locale'];_0x5c7c33['enableCommand']('mediaEmbed'),_0x5c7c33['descriptionFactory']['registerElementLabel']('media',_0x416e97=>o(_0x420917,'ELEMENT_MEDIA',_0x416e97));}}class bt extends _0x5249e2{['afterInit'](){const _0x571026=this['editor'];_0x571026['plugins']['has']('MentionEditing')&&_0x571026['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class yt extends _0x5249e2{['afterInit'](){const _0x439f71=this['editor'];if(!_0x439f71['plugins']['has']('MergeFieldsEditing'))return;const _0x33aa1c=_0x439f71['plugins']['get']('TrackChangesEditing'),_0xbf82db=_0x439f71['locale'];_0x33aa1c['enableCommand']('insertMergeField'),_0x33aa1c['enableCommand']('insertMergeFieldBlock'),_0x33aa1c['enableCommand']('insertMergeFieldImage'),_0x33aa1c['descriptionFactory']['registerElementLabel']('mergeField',_0x53d113=>o(_0xbf82db,'ELEMENT_MERGE_FIELD',_0x53d113)),_0x33aa1c['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x1de8da=>o(_0xbf82db,'ELEMENT_MERGE_FIELD',_0x1de8da)),_0x33aa1c['descriptionFactory']['registerDescriptionCallback'](_0x40366c=>{if('insertion'!=_0x40366c['type']&&'deletion'!=_0x40366c['type'])return;const _0x5b5817=_0x40366c['getContainedElement']();if(null==_0x5b5817)return;const _0x4acfaf=_0x439f71['plugins']['get']('MergeFieldsEditing');let _0x5aaf5c;switch(_0x4acfaf['getMergeFieldType'](_0x5b5817)){case null:return;case'image':{const _0x348dc3=_0x4acfaf['unwrapAffixes'](_0x5b5817['getAttribute']('src'));_0x5aaf5c=_0x4acfaf['getLabel'](_0x348dc3)||_0x348dc3;break;}default:{const _0x20275d=_0x5b5817['getAttribute']('id');_0x5aaf5c=_0x4acfaf['getLabel'](_0x20275d)||_0x20275d;break;}}return'insertion'==_0x40366c['type']?{'type':'insertion','content':o(_0xbf82db,'*Insert:*\x20%0','\x22'+_0x5aaf5c+'\x22\x20'+o(_0xbf82db,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0xbf82db,'*Remove:*\x20%0','\x22'+_0x5aaf5c+'\x22\x20'+o(_0xbf82db,'ELEMENT_MERGE_FIELD'))};});}}class jt extends _0x5249e2{['afterInit'](){const _0x2a5276=this['editor'],_0x6ebe2a=_0x2a5276['plugins']['get']('TrackChangesEditing');_0x2a5276['plugins']['has']('MultiLevelList')&&(_0x6ebe2a['enableDefaultAttributesIntegration']('multiLevelList'),_0x6ebe2a['descriptionFactory']['registerDescriptionCallback'](_0x340921=>this['handleDescriptions'](_0x340921)));}['handleDescriptions'](_0x388c12){const _0xca9fd2=this['editor']['locale'],{data:_0x429fa2}=_0x388c12,_0x102812={'type':'format','content':''};if(_0x429fa2&&'listMarkerStyle'==_0x429fa2['key']){if(!_0x429fa2['oldValue'])return{'type':'format','content':o(_0xca9fd2,'*Set\x20format:*\x20%0',o(_0xca9fd2,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x429fa2['newValue']+')'};if(!_0x429fa2['newValue']){let _0x9a2807=_0x388c12['head'];for(;_0x9a2807;){if(_0x9a2807['data']&&'listType'==_0x9a2807['data']['key']&&_0x9a2807['data']['newValue'])return _0x102812;_0x9a2807=_0x9a2807['next'];}return{'type':'format','content':o(_0xca9fd2,'*Remove\x20format:*\x20%0',o(_0xca9fd2,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x429fa2['oldValue']+')'};}}}}class St extends _0x5249e2{['afterInit'](){const _0x2a24f8=this['editor'];if(!_0x2a24f8['plugins']['has']('PageBreakEditing'))return;_0x2a24f8['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x1d2ae2=_0x2a24f8['plugins']['get']('TrackChangesEditing'),_0x22600a=_0x2a24f8['locale'];_0x1d2ae2['descriptionFactory']['registerElementLabel']('pageBreak',_0x4bdf86=>o(_0x22600a,'ELEMENT_PAGE_BREAK',_0x4bdf86));}}class It extends _0x5249e2{['afterInit'](){const _0x23a178=this['editor'];if(!_0x23a178['plugins']['has']('Paragraph'))return;const _0x5616eb=_0x23a178['locale'],_0x75a62f=_0x23a178['plugins']['get']('TrackChangesEditing');_0x75a62f['descriptionFactory']['registerElementLabel']('paragraph',_0x135583=>o(_0x5616eb,'ELEMENT_PARAGRAPH',_0x135583)),_0x75a62f['enableDefaultAttributesIntegration']('paragraph'),_0x75a62f['enableCommand']('insertParagraph');const _0x353fc4=_0x75a62f['descriptionFactory'];_0x353fc4['registerDescriptionCallback'](_0x2060b8=>{if('insertion'!==_0x2060b8['type'])return;const {start:_0x536a24,end:_0x2e437a}=_0x2060b8['getFirstRange']();if(!_0x536a24['isTouching'](_0x2e437a)||!_0x536a24['nodeAfter'])return;const _0x572ced=_0x23a178['model']['schema'],_0x4800f9=_0x536a24['nodeAfter'];return _0x572ced['isBlock'](_0x4800f9)&&!_0x572ced['isLimit'](_0x4800f9)&&_0x572ced['checkChild'](_0x4800f9,'$text')?{'type':'insertion','content':o(_0x5616eb,'*Insert:*\x20%0',_0x353fc4['getItemLabel'](_0x4800f9,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x8208d3=this['editor'],_0x3b34e0=_0x8208d3['locale'];_0x8208d3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x46cfb7=>{if('formatBlock'!=_0x46cfb7['type'])return;const {data:_0x47d087}=_0x46cfb7;return _0x47d087&&'paragraph'==_0x47d087['commandName']?{'type':'format','content':o(_0x3b34e0,'*Change\x20to:*\x20%0',o(_0x3b34e0,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class At extends _0x5249e2{['afterInit'](){const _0x4bf8d6=this['editor'];_0x4bf8d6['commands']['get']('replaceSource')&&_0x4bf8d6['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class _t extends _0x5249e2{['afterInit'](){const _0x537ade=this['editor'];if(!_0x537ade['plugins']['has']('RemoveFormatEditing'))return;_0x537ade['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x262ae8=this['editor'];_0x262ae8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4482ae=>{if('formatBlock'!=_0x4482ae['type']&&'formatInline'!=_0x4482ae['type'])return;const {data:_0xc2a591}=_0x4482ae;return _0xc2a591&&'removeFormat'==_0xc2a591['commandName']?{'type':'format','content':o(_0x262ae8['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class Ct extends _0x5249e2{['afterInit'](){const _0x5267df=this['editor'];if(!_0x5267df['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x246034=_0x5267df['plugins']['get']('TrackChangesEditing');_0x246034['enableCommand']('goToPreviousRestrictedEditingException'),_0x246034['enableCommand']('goToNextRestrictedEditingException');const _0x34fefd=_0x5267df['plugins']['get']('RestrictedEditingModeEditing');_0x34fefd['enableCommand']('trackChanges'),_0x34fefd['enableCommand']('acceptSuggestion'),_0x34fefd['enableCommand']('discardSuggestion'),_0x34fefd['enableCommand']('acceptAllSuggestions'),_0x34fefd['enableCommand']('discardAllSuggestions'),_0x34fefd['enableCommand']('acceptSelectedSuggestions'),_0x34fefd['enableCommand']('discardSelectedSuggestions');}}class Nt extends _0x5249e2{['afterInit'](){const _0x34e062=this['editor'];if(!_0x34e062['plugins']['has']('ShiftEnter'))return;const _0x509d02=_0x34e062['plugins']['get']('TrackChangesEditing');_0x509d02['enableCommand']('shiftEnter'),_0x509d02['descriptionFactory']['registerElementLabel']('softBreak',_0x23372c=>o(_0x34e062['locale'],'ELEMENT_LINE_BREAK',_0x23372c));}}function cn(_0x64e3c9,_0x15b7b2,_0x112fed){const _0x250cc9=[];for(const _0x4569af of _0x15b7b2['getItems']())_0x4569af['hasAttribute'](_0x64e3c9)&&_0x250cc9['push'](_0x112fed['createRangeOn'](_0x4569af));return _0x250cc9;}class $t extends _0x5249e2{['afterInit'](){const _0x2f0cbf=this['editor'],_0x330a58=_0x2f0cbf['plugins']['get']('TrackChangesEditing');_0x2f0cbf['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x330a58['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x32416c=this['editor'],_0x24e0fa=_0x32416c['model'],_0x194245=_0x32416c['locale'],_0x29f82c=_0x32416c['plugins']['get']('TrackChangesEditing'),_0x47a3f7='restrictedEditingException',_0x47dc04=_0x32416c['commands']['get'](_0x47a3f7);_0x29f82c['enableCommand'](_0x47a3f7,(_0x1dc50b,_0x33aac0={})=>{const _0x6d47e1=_0x24e0fa['document']['selection'];if(_0x6d47e1['isCollapsed'])return void _0x1dc50b(_0x33aac0);const _0x3e307d=void 0x0!==_0x33aac0['forceValue']?_0x33aac0['forceValue']:!_0x47dc04['value'];_0x24e0fa['change'](()=>{const _0x374278=Array['from'](_0x6d47e1['getRanges']());for(const _0x2c590b of _0x374278){const _0x111cea=_0x3e307d?[_0x2c590b]:cn(_0x47a3f7,_0x2c590b,_0x24e0fa);for(const _0x9f8b25 of _0x111cea)_0x29f82c['markInlineFormat'](_0x9f8b25,{'commandName':_0x47a3f7,'commandParams':[{'forceValue':_0x3e307d}]});}});}),_0x29f82c['descriptionFactory']['registerDescriptionCallback'](_0x1b4512=>{if('formatBlock'!=_0x1b4512['type']&&'formatInline'!=_0x1b4512['type'])return;const {data:_0x424b45}=_0x1b4512;return _0x424b45&&_0x424b45['commandName']==_0x47a3f7?_0x424b45['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x194245,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x194245,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0xacfe11=this['editor'],_0xcd7420=_0xacfe11['locale'],_0x565b2b=_0xacfe11['plugins']['get']('TrackChangesEditing'),_0x5eed94='restrictedEditingExceptionBlock',_0x509764=this['editor']['commands']['get'](_0x5eed94);_0x565b2b['enableCommand'](_0x5eed94,(_0x187b9c,_0xb30b06={})=>{const _0x2851b8=this['editor']['model']['document']['selection'],_0x3a03d7=_0xb30b06&&void 0x0!==_0xb30b06['forceValue']?_0xb30b06['forceValue']:!_0x509764['value'];let _0x49adea=[];if(_0x3a03d7){const _0x522fbf=Array['from'](_0x2851b8['getSelectedBlocks']())['filter'](_0x6a9539=>function(_0x3cf42b){return!!_0x3cf42b['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x6a9539)||function(_0x58c91d,_0x9863ba){const _0x2d6677=_0x9863ba['createContext'](_0x58c91d['parent']);if(!_0x9863ba['checkChild'](_0x2d6677,'restrictedEditingException'))return!0x1;if(!_0x9863ba['checkChild'](_0x2d6677['push']('restrictedEditingException'),_0x58c91d))return!0x1;return!0x0;}(_0x6a9539,this['editor']['model']['schema']));_0x49adea=to(_0x522fbf,_0xacfe11['model']);}else{const _0x35cc15=Array['from'](_0x2851b8['getSelectedBlocks']())['map'](_0x514453=>function(_0x383aaf){let _0x1995b5=_0x383aaf;for(;_0x1995b5['parent'];){if('restrictedEditingException'==_0x1995b5['parent']['name'])return _0x1995b5;_0x1995b5=_0x1995b5['parent'];}return null;}(_0x514453))['filter'](_0xe0a4f2=>!!_0xe0a4f2);_0x49adea=to(_0x35cc15,_0xacfe11['model']);}_0xacfe11['model']['change'](()=>{for(const _0x2b5719 of _0x49adea)_0x565b2b['markBlockFormat'](_0x2b5719,{'commandName':_0x5eed94,'commandParams':[{'forceValue':_0x3a03d7}]});});}),_0x565b2b['descriptionFactory']['registerDescriptionCallback'](_0x1cc4d2=>{const {data:_0x3e9713}=_0x1cc4d2;if(_0x3e9713&&_0x3e9713['commandName']==_0x5eed94)return _0x3e9713['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xcd7420,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0xcd7420,'FORMAT_RESTRICTED_DISABLED')};});}}class vt extends _0x5249e2{['afterInit'](){const _0x471f56=this['editor'];if(!_0x471f56['plugins']['has']('Style')||!_0x471f56['plugins']['has']('DataSchema'))return;const _0x3326d0=_0x471f56['plugins']['get']('TrackChangesEditing'),_0x466cc5=_0x471f56['locale'],_0x3a38fd=_0x471f56['config']['get']('style')||{},_0x52fef7=_0x471f56['plugins']['get']('GeneralHtmlSupport'),_0x4466f6=_0x471f56['plugins']['get']('StyleUtils')['normalizeConfig'](_0x471f56['plugins']['get']('DataSchema'),_0x3a38fd['definitions']);_0x3326d0['enableDefaultAttributesIntegration']('style');const _0x54a931=new Set();for(const _0x59d1dc of _0x4466f6['block']){const _0x2357e1=_0x52fef7['getGhsAttributeNameForElement'](_0x59d1dc['element']);_0x54a931['add'](_0x2357e1);}const _0x2d7d67=new Set();for(const _0xa7cf67 of _0x4466f6['inline']){const _0x288153=_0x52fef7['getGhsAttributeNameForElement'](_0xa7cf67['element']);_0x2d7d67['add'](_0x288153);for(const _0x2b92cb of _0xa7cf67['ghsAttributes'])_0x2d7d67['add'](_0x2b92cb);}for(const _0x2a8e18 of _0x54a931)_0x3326d0['descriptionFactory']['registerAttributeLabel'](_0x2a8e18,o(_0x466cc5,'FORMAT_STYLE'));for(const _0x4dc1d6 of _0x2d7d67)_0x3326d0['descriptionFactory']['registerAttributeLabel'](_0x4dc1d6,o(_0x466cc5,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3e6373=this['editor'],_0x424f17=_0x3e6373['locale'];_0x3e6373['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x265f5c=>{if('formatBlock'!=_0x265f5c['type']&&'formatInline'!=_0x265f5c['type'])return;const {data:_0x43cac2}=_0x265f5c;return _0x43cac2&&'style'===_0x43cac2['commandName']?_0x43cac2['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x424f17,'*Set\x20format:*\x20%0',_0x43cac2['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x424f17,'*Remove\x20format:*\x20%0',_0x43cac2['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Dt extends _0x5249e2{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x4b9d45){super(_0x4b9d45),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x3685b1=this['editor'],_0x3ab2c6=_0x3685b1['model']['document']['selection'];if(!_0x3685b1['plugins']['has']('TableEditing'))return;const _0xda2072=_0x3685b1['locale'],_0x1ce857=_0x3685b1['plugins']['get']('TrackChangesEditing'),_0x2f8b5b=_0x3685b1['plugins']['get']('TableUtils');_0x1ce857['descriptionFactory']['registerElementLabel']('table',_0x354bc4=>o(_0xda2072,'ELEMENT_TABLE',_0x354bc4)),this['_setupColumnsRowsFixing'](),_0x1ce857['enableCommand']('insertTable'),_0x1ce857['enableCommand']('selectTableRow'),_0x1ce857['enableCommand']('selectTableColumn');for(const _0x4c7716 of['insertTableRowAbove','insertTableRowBelow']){const _0x143e4d=_0x3685b1['commands']['get'](_0x4c7716);_0x1ce857['enableCommand'](_0x4c7716,_0xeb969=>{_0x3685b1['model']['change'](_0x198806=>{_0xeb969();const _0x4dfaf4='above'===_0x143e4d['order'],_0x4df85d=_0x2f8b5b['getSelectionAffectedTableCells'](_0x3ab2c6),_0x4cdba6=_0x2f8b5b['getRowIndexes'](_0x4df85d),_0x5d169b=_0x4dfaf4?_0x4cdba6['first']-0x1:_0x4cdba6['last']+0x1,_0x41b6bb=_0x4df85d[0x0]['findAncestor']('table'),_0x5c8510=_0x2f8b5b['createTableWalker'](_0x41b6bb,{'startRow':_0x5d169b,'endRow':_0x5d169b}),_0x8327cd=Array['from'](_0x5c8510)['map'](_0x353a07=>_0x198806['createRangeOn'](_0x353a07['cell']));_0x1ce857['markMultiRangeInsertion'](_0x8327cd,'tableRow');});});}for(const _0x54cba3 of['insertTableColumnLeft','insertTableColumnRight']){const _0xc40ae6=_0x3685b1['commands']['get'](_0x54cba3);_0x1ce857['enableCommand'](_0x54cba3,_0x5bf027=>{_0x3685b1['model']['change'](_0x5ec85f=>{_0x5bf027();const _0x436723='left'===_0xc40ae6['order'],_0x407016=_0x2f8b5b['getSelectionAffectedTableCells'](_0x3ab2c6),_0x11f14b=_0x2f8b5b['getColumnIndexes'](_0x407016),_0x50eb53=_0x436723?_0x11f14b['first']-0x1:_0x11f14b['last']+0x1,_0xe1ed5a=_0x407016[0x0]['findAncestor']('table'),_0xdcf4d2=_0x2f8b5b['createTableWalker'](_0xe1ed5a,{'startRow':0x0,'column':_0x50eb53,'includeAllSlots':!0x1}),_0x431f9f=Array['from'](_0xdcf4d2)['map'](_0x22d482=>_0x5ec85f['createRangeOn'](_0x22d482['cell']));_0x1ce857['markMultiRangeInsertion'](_0x431f9f,'tableColumn');});});}for(const _0x5e2adf of['removeTableRow','removeTableColumn']){const _0x33fe40=_0x5e2adf['substr'](0xb),_0x3bbf29=_0x33fe40['toLowerCase'](),_0x1d0234=_0x3bbf29['substr'](0x0,0x3)+'span',_0x519a7d='table'+_0x33fe40,_0x1fc63c='min'+_0x33fe40,_0x40a7fc='max'+_0x33fe40;_0x1ce857['enableCommand'](_0x5e2adf,()=>{_0x3685b1['model']['change'](_0x209c31=>{const _0x58ee9d=_0x2f8b5b['getSelectionAffectedTableCells'](_0x3ab2c6),_0x2402f5=_0x58ee9d[0x0]['findAncestor']('table');let _0x2fe798;if('removeTableRow'==_0x5e2adf){const _0x1cef75=_0x2f8b5b['getRowIndexes'](_0x58ee9d);_0x2fe798={'startRow':_0x1cef75['first'],'endRow':_0x1cef75['last'],'includeAllSlots':!0x0};}else{const _0xafc9d3=_0x2f8b5b['getColumnIndexes'](_0x58ee9d);_0x2fe798={'startColumn':_0xafc9d3['first'],'endColumn':_0xafc9d3['last'],'includeAllSlots':!0x0};}const _0x4b90bf=_0x2f8b5b['createTableWalker'](_0x2402f5,_0x2fe798),_0x30655f=Array['from'](_0x4b90bf)['map'](({cell:_0x555c49})=>_0x555c49),_0x4a0035=_e(_0x30655f['filter'](_0xb27ff8=>_0xb27ff8['hasAttribute'](_0x1d0234))),_0x2d7ead=_e(_0x30655f['filter'](_0x512793=>!_0x512793['hasAttribute'](_0x1d0234)))['map'](_0x5bdcac=>_0x209c31['createRangeOn'](_0x5bdcac)),_0x3b4248=_0x1ce857['markMultiRangeDeletion'](_0x2d7ead,_0x519a7d);if(_0x3b4248&&('tableRow'==_0x3b4248['subType']||'tableColumn'==_0x3b4248['subType'])){const _0x395548=this['_getSuggestionCoords'](_0x3b4248);for(const _0x33fbcd of _0x4a0035){const _0xe01107=_0x209c31['createRangeOn'](_0x33fbcd),_0x85fbb3=_0x2f8b5b['getCellLocation'](_0x33fbcd),_0xcebb0b=_0x33fbcd['getAttribute'](_0x1d0234)-0x1,_0x42edac=_0x395548[_0x1fc63c],_0x124c31=_0x395548[_0x40a7fc];_0x42edac<=_0x85fbb3[_0x3bbf29]&&_0x85fbb3[_0x3bbf29]+_0xcebb0b<=_0x124c31&&_0x3b4248['addRange'](_0xe01107);}}});});}function _0x50bc73(_0x53c5d6){const _0x12b3fd=Array['from'](_0x3ab2c6['getRanges']())['map'](_0x3ec9d9=>_0x374b49['fromRange'](_0x3ec9d9));_0x3685b1['model']['change'](_0x261acd=>{const _0x56a921=_0x261acd['batch'];_0x53c5d6=_0x53c5d6['filter'](_0x413e4f=>'$graveyard'!=_0x413e4f['root']['rootName']),_0x261acd['setSelection'](_0x53c5d6),_0x3685b1['commands']['get']('removeTableRow')['refresh'](),_0x3685b1['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x3685b1['model']['enqueueChange'](()=>{_0x3685b1['model']['enqueueChange'](_0x56a921,_0x1c3f34=>{const _0x377617=_0x12b3fd['filter'](_0x3248e4=>'$graveyard'!=_0x3248e4['root']['rootName']);_0x377617['length']>0x0&&_0x1c3f34['setSelection'](_0x377617);for(const _0xfaeb54 of _0x12b3fd)_0xfaeb54['detach']();});});});}function _0xc1adb1(_0x2ef3ee){_0x3685b1['model']['change'](_0x327bab=>{const _0x18c97f=Array['from'](_0x3ab2c6['getRanges']())['map'](_0x9ce275=>_0x374b49['fromRange'](_0x9ce275)),_0x47ea34=[];for(const _0x2ef165 of _0x2ef3ee)for(const _0x1f2ea8 of _0x2ef165['getItems']({'shallow':!0x0}))_0x47ea34['push'](_0x1f2ea8);for(const _0x43944e of _0x47ea34)'$graveyard'!=_0x43944e['root']['rootName']&&(_0x327bab['setSelection'](_0x327bab['createPositionAt'](_0x43944e,0x0)),_0x3685b1['commands']['get']('removeTableColumn')['refresh'](),_0x3685b1['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x32d380=_0x18c97f['filter'](_0x46bd1c=>'$graveyard'!=_0x46bd1c['root']['rootName']);_0x32d380['length']>0x0&&_0x327bab['setSelection'](_0x32d380);for(const _0x1487d3 of _0x18c97f)_0x1487d3['detach']();});}function _0x5d5e9f(_0x9cf0c,_0x2d2b88){return _0x2d2b88['every'](_0x7d32e6=>_0x9cf0c['some'](_0x626195=>_0x626195['end']['isEqual'](_0x7d32e6['start'])||_0x7d32e6['end']['isEqual'](_0x626195['start'])));}function _0x36723b(_0x489faf,_0x3916b0){return!_0x489faf['some'](_0x919c5=>_0x3916b0['some'](_0x47bd8a=>_0x919c5['isIntersecting'](_0x47bd8a)))&&_0x489faf['some'](_0x3c319d=>_0x3916b0['some'](_0xf1bb27=>_0x3c319d['end']['isTouching'](_0xf1bb27['start'])));}_0x1ce857['descriptionFactory']['registerDescriptionCallback'](_0x270855=>{if('insertion'!=_0x270855['type']&&'deletion'!=_0x270855['type'])return;const _0x4e254c=_0x270855['getContainedElement']();if(null!=_0x4e254c&&_0x4e254c['is']('element','table')){if('insertion'==_0x270855['type']){const _0x108cf0=_0x270855['getItems']()['filter'](_0x594d44=>_0x594d44['is']('$textProxy'))['map'](_0x403e56=>_0x403e56['data']);if(_0x108cf0['length'])return{'type':'insertion','content':o(_0xda2072,'*Insert:*\x20%0',o(_0xda2072,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x108cf0['join']('\x20')+'\x22'))};}if('deletion'==_0x270855['type']){const _0x3b8341=_0x270855['getItems']()['filter'](_0x48a7f0=>_0x48a7f0['is']('$textProxy'))['map'](_0x1c60ac=>_0x1c60ac['data']);if(_0x3b8341['length'])return{'type':'deletion','content':o(_0xda2072,'*Remove:*\x20%0',o(_0xda2072,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3b8341['join']('\x20')+'\x22'))};}}}),_0x1ce857['descriptionFactory']['registerDescriptionCallback'](_0x5bdc3f=>{if('tableRow'==_0x5bdc3f['subType']){const _0xb61a7b=_0x5bdc3f['getItems']()['filter'](_0x559915=>_0x559915['is']('$textProxy'))['map'](_0xf0d56e=>_0xf0d56e['data']),_0x166c21=this['_getSuggestionCoords'](_0x5bdc3f),_0x4ff377=_0x166c21['maxRow']-_0x166c21['minRow']+0x1;if('insertion'==_0x5bdc3f['type'])return _0xb61a7b['length']?{'type':'insertion','content':o(_0xda2072,'*Insert:*\x20%0',o(_0xda2072,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4ff377,'\x22'+_0xb61a7b['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0xda2072,'*Insert:*\x20%0',o(_0xda2072,'ELEMENT_TABLE_ROW',_0x4ff377))};if('deletion'==_0x5bdc3f['type'])return _0xb61a7b['length']?{'type':'deletion','content':o(_0xda2072,'*Remove:*\x20%0',o(_0xda2072,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4ff377,'\x22'+_0xb61a7b['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0xda2072,'*Remove:*\x20%0',o(_0xda2072,'ELEMENT_TABLE_ROW',_0x4ff377))};}if('tableColumn'==_0x5bdc3f['subType']){const _0x2be68=_0x5bdc3f['getItems']()['filter'](_0xdc5eaa=>_0xdc5eaa['is']('$textProxy'))['map'](_0x3f2741=>_0x3f2741['data']),_0x485144=this['_getSuggestionCoords'](_0x5bdc3f),_0x121600=_0x485144['maxColumn']-_0x485144['minColumn']+0x1;if('insertion'==_0x5bdc3f['type'])return _0x2be68['length']?{'type':'insertion','content':o(_0xda2072,'*Insert:*\x20%0',o(_0xda2072,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x121600,'\x22'+_0x2be68['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0xda2072,'*Insert:*\x20%0',o(_0xda2072,'ELEMENT_TABLE_COLUMN',_0x121600))};if('deletion'==_0x5bdc3f['type'])return _0x2be68['length']?{'type':'deletion','content':o(_0xda2072,'*Remove:*\x20%0',o(_0xda2072,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x121600,'\x22'+_0x2be68['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0xda2072,'*Remove:*\x20%0',o(_0xda2072,'ELEMENT_TABLE_COLUMN',_0x121600))};}}),_0x1ce857['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x50bc73),_0x1ce857['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x50bc73),_0x1ce857['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0xc1adb1),_0x1ce857['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0xc1adb1),_0x1ce857['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x5d5e9f),_0x1ce857['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x5d5e9f),_0x1ce857['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x36723b),_0x1ce857['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x36723b);}['_acceptFormatSuggestionCallbackFactory'](){const _0x2013b3=this['editor'],_0x549844=_0x2013b3['model']['document']['selection'];return(_0x787eb,_0x2e82d5)=>{_0x2013b3['model']['change'](_0x4901e8=>{const {commandName:_0x8b4b3e,commandParams:_0xdfdbb0}=_0x2e82d5;let _0x4dccb7=_0x787eb[0x0]['end']['nodeBefore'];_0xdfdbb0&&_0xdfdbb0[0x0]&&!0x1===_0xdfdbb0[0x0]['forceValue']&&(_0x4dccb7=_0x787eb[0x0]['start']['nodeAfter']);const _0x146e14=_0x4901e8['createRangeIn'](_0x4dccb7);if('$graveyard'==_0x146e14['root']['rootName'])return;const _0x4ed2bd=Array['from'](_0x549844['getRanges']())['map'](_0x198e56=>_0x374b49['fromRange'](_0x198e56));_0x4901e8['setSelection'](_0x146e14),_0x2013b3['commands']['get'](_0x8b4b3e)['refresh'](),_0xdfdbb0['push']({'forceDefaultExecution':!0x0}),_0x2013b3['execute'](_0x8b4b3e,..._0xdfdbb0);const _0xea96c=_0x4ed2bd['filter'](_0xaeab16=>'$graveyard'!=_0xaeab16['root']['rootName']);_0xea96c['length']>0x0&&_0x4901e8['setSelection'](_0xea96c);for(const _0x36e5ff of _0x4ed2bd)_0x36e5ff['detach']();});};}['_getCoordsForCells'](_0x7b1572){const _0x5947d7=this['editor']['plugins']['get']('TableUtils');let _0x512446=Number['MAX_SAFE_INTEGER'],_0x235c38=Number['MIN_SAFE_INTEGER'],_0x10d022=Number['MAX_SAFE_INTEGER'],_0x4422b3=Number['MIN_SAFE_INTEGER'];for(const _0x40d15d of _0x7b1572){if('$graveyard'==_0x40d15d['root']['rootName'])continue;const {row:_0xeae9d1,column:_0x51e15f}=_0x5947d7['getCellLocation'](_0x40d15d),_0x40eebf=_0x40d15d['hasAttribute']('rowspan')?_0x40d15d['getAttribute']('rowspan')-0x1:0x0,_0x146622=_0x40d15d['hasAttribute']('colspan')?_0x40d15d['getAttribute']('colspan')-0x1:0x0;_0x512446=_0xeae9d1<_0x512446?_0xeae9d1:_0x512446,_0x235c38=_0xeae9d1+_0x40eebf>_0x235c38?_0xeae9d1+_0x40eebf:_0x235c38,_0x10d022=_0x51e15f<_0x10d022?_0x51e15f:_0x10d022,_0x4422b3=_0x51e15f+_0x146622>_0x4422b3?_0x51e15f+_0x146622:_0x4422b3;}return{'minRow':_0x512446,'maxRow':_0x235c38,'minColumn':_0x10d022,'maxColumn':_0x4422b3};}['_setupColumnsRowsFixing'](){const _0x2e505d=this['editor'],_0x2f360e=_0x2e505d['plugins']['get']('TrackChangesEditing'),_0x151fdd=_0x2e505d['plugins']['get']('TableUtils');_0x2e505d['model']['document']['on']('change:data',()=>{const _0x3b573c=Array['from'](_0x2e505d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x312554,data:_0x1cd7a9}of _0x3b573c){const {group:_0x134ce2,id:_0x425fdd,subType:_0x4e1349}=_0x2f360e['_splitMarkerName'](_0x312554);if('suggestion'!=_0x134ce2)continue;if(null!=_0x1cd7a9['oldRange'])continue;const _0x4b98c0=_0x2f360e['getSuggestion'](_0x425fdd);this['_tablePostFixingSubtypes']['includes'](_0x4e1349)&&this['_tableSuggestions']['add'](_0x4b98c0);}},{'priority':'low'});const _0x1313a2=(_0x4efd79,_0x119877)=>{let _0x4b6ebb=!0x1;const _0x26fa5e=_0x119877['createRangeOn'](_0x4efd79),_0x266c55=_0x4efd79['findAncestor']('table'),_0x2afabd=_0x151fdd['getCellLocation'](_0x4efd79);for(const _0x3acde3 of this['_tableSuggestions']){const _0x557f65=_0x3acde3['subType'],_0x1dda16=_0x557f65['startsWith']('tablePaste'),_0x48bd15=_0x557f65['substr'](_0x1dda16?0xa:0x5),_0x66930b=_0x48bd15['toLowerCase'](),_0x260e3b=_0x66930b['substr'](0x0,0x3)+'span',_0x5dfc0c='min'+_0x48bd15,_0x1685ee='max'+_0x48bd15;if(!_0x3acde3['isInContent'])continue;if(_0x266c55!=_0x3acde3['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x3acde3['isIntersectingWithRange'](_0x26fa5e))continue;const _0x470421=_0x4efd79['hasAttribute'](_0x260e3b)?_0x4efd79['getAttribute'](_0x260e3b)-0x1:0x0,_0x3f809a=this['_getSuggestionCoords'](_0x3acde3),_0x284700=_0x3f809a[_0x5dfc0c],_0x463977=_0x3f809a[_0x1685ee];_0x284700<=_0x2afabd[_0x66930b]&&_0x2afabd[_0x66930b]+_0x470421<=_0x463977&&(_0x3acde3['addRange'](_0x26fa5e),_0x4b6ebb=!0x0);}return _0x4b6ebb;};_0x2e505d['model']['document']['registerPostFixer'](_0x17db47=>{let _0x2e9869=!0x1;for(const _0x35d45b of _0x2e505d['model']['document']['differ']['getChanges']())if('insert'==_0x35d45b['type']){if('tableRow'==_0x35d45b['name']){for(const _0x31a3d9 of _0x35d45b['position']['nodeAfter']['getChildren']())_0x2e9869=_0x2e9869||_0x1313a2(_0x31a3d9,_0x17db47);}else'tableCell'==_0x35d45b['name']&&(_0x2e9869=_0x2e9869||_0x1313a2(_0x35d45b['position']['nodeAfter'],_0x17db47));}return _0x2e9869;});}['_getSuggestionCoords'](_0x475d1d){return this['_getCoordsForCells'](_0x475d1d['getRanges']()['map'](_0x4de8d2=>_0x4de8d2['start']['nodeAfter']));}}function _e(_0x504e22){return Array['from'](new Set(_0x504e22)['values']());}class Bt extends _0x5249e2{static get['requires'](){return[Dt];}['afterInit'](){const _0x2f2c6a=this['editor'],_0x4e3b51=_0x2f2c6a['model']['document']['selection'],_0x4ff6de=_0x2f2c6a['locale'];if(!_0x2f2c6a['plugins']['has']('TableEditing'))return;const _0x52ed98=_0x2f2c6a['plugins']['get']('TrackChangesEditing'),_0x23ef2a=_0x2f2c6a['plugins']['get']('TableUtils'),_0x281759=_0x2f2c6a['plugins']['get'](Dt);_0x281759['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x52ed98['enableCommand']('mergeTableCells',()=>{const _0x2e5674=_0x23ef2a['getSelectionAffectedTableCells'](_0x2f2c6a['model']['document']['selection']);_0x2f2c6a['model']['change'](()=>{_0x52ed98['markMultiRangeBlockFormat'](_0x2e5674,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x2f2c6a['commands']['get']('mergeTableCells')['on']('execute',(_0x302394,_0x544535)=>{_0x2f2c6a['commands']['get']('trackChanges')['value']&&(_0x544535['length']>0x0&&_0x544535[_0x544535['length']-0x1]&&_0x544535[_0x544535['length']-0x1]['forceDefaultExecution']||_0x52ed98['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x302394['stop']());},{'priority':'highest'});for(const _0x154a42 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x5a67d7=_0x2f2c6a['commands']['get'](_0x154a42);_0x52ed98['enableCommand'](_0x154a42,()=>{const _0x353273=_0x2f2c6a['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4b48d0=>_0x4b48d0['is']('element','tableCell')),_0x7aa8c6=_0x5a67d7['value'];_0x2f2c6a['model']['change'](()=>{_0x52ed98['markMultiRangeBlockFormat']([_0x353273,_0x7aa8c6],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x4981d6 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x217810=_0x2f2c6a['commands']['get'](_0x4981d6);_0x52ed98['enableCommand'](_0x4981d6,()=>{const _0x14b911=_0x23ef2a['getSelectionAffectedTableCells'](_0x2f2c6a['model']['document']['selection'])[0x0],_0x3c5c51=_0x14b911['findAncestor']('table'),{column:_0x47e2f5,row:_0xd39423}=_0x23ef2a['getCellLocation'](_0x14b911);let _0x57acbc=[];if('horizontally'==_0x217810['direction']){const _0x35e78d=_0x23ef2a['createTableWalker'](_0x3c5c51,{'startRow':_0xd39423,'endRow':_0xd39423,'includeAllSlots':!0x0});_0x57acbc=Array['from'](_0x35e78d)['map'](_0x119dbd=>_0x119dbd['cell']);}else{const _0x15867f=_0x23ef2a['createTableWalker'](_0x3c5c51,{'column':_0x47e2f5,'includeAllSlots':!0x0});_0x57acbc=Array['from'](_0x15867f)['map'](_0x5ab97d=>_0x5ab97d['cell']);}_0x2f2c6a['model']['change'](_0x2feccf=>{_0x52ed98['markBlockFormat'](_0x2feccf['createRangeOn'](_0x14b911),{'commandName':_0x4981d6,'commandParams':[]},_0x57acbc,_0x4981d6);});});}_0x52ed98['descriptionFactory']['registerDescriptionCallback'](_0x303fa6=>{if('formatBlock'!=_0x303fa6['type']&&'formatInline'!=_0x303fa6['type'])return;const {data:_0x4609b0}=_0x303fa6;return _0x4609b0&&'mergeTableCells'==_0x4609b0['commandName']?{'type':'format','content':o(_0x4ff6de,'*Merge\x20cells*')}:void 0x0;}),_0x52ed98['descriptionFactory']['registerDescriptionCallback'](_0x338173=>{if('formatBlock'!=_0x338173['type']&&'formatInline'!=_0x338173['type'])return;const {data:_0x1211d1}=_0x338173;return _0x1211d1?'splitTableCellVertically'==_0x1211d1['commandName']?{'type':'format','content':o(_0x4ff6de,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x1211d1['commandName']?{'type':'format','content':o(_0x4ff6de,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x40c761=_0x281759['_acceptFormatSuggestionCallbackFactory']();for(const _0x9f1c68 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x52ed98['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x9f1c68,'accept',_0x40c761);for(const _0x44ca6e of['splitTableCellVertically','splitTableCellHorizontally'])_0x52ed98['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x44ca6e,'accept',_0x40c761);_0x52ed98['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x5ef74d=>{_0x2f2c6a['model']['change'](_0xd3cac=>{const _0x2333e9=Array['from'](_0x4e3b51['getRanges']())['map'](_0x4ae9ab=>_0x374b49['fromRange'](_0x4ae9ab));_0xd3cac['setSelection'](_0x5ef74d),_0x2f2c6a['commands']['get']('mergeTableCells')['refresh'](),_0x2f2c6a['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3d394d=_0x2333e9['filter'](_0x56b342=>'$graveyard'!=_0x56b342['root']['rootName']);_0x3d394d['length']>0x0&&_0xd3cac['setSelection'](_0x3d394d);for(const _0x1eed3e of _0x2333e9)_0x1eed3e['detach']();});});for(const _0x346435 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x3df49c=_0x2f2c6a['commands']['get'](_0x346435);_0x3df49c['on']('set:isEnabled',(_0x46692d,_0xa76240,_0x24c4b2)=>{if(_0x24c4b2){const _0x2e1dc7=_0x2f2c6a['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x22107c=>_0x22107c['is']('element','tableCell'));this['_areMergableCells'](_0x3df49c['value'],_0x2e1dc7)||(_0x46692d['return']=!0x1,_0x46692d['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x54035b=this['editor']['commands']['get']('mergeTableCells'),_0xd27080=this['editor']['plugins']['get']('TableUtils');if(!_0x54035b['isEnabled'])return!0x1;const _0x14a47c=_0xd27080['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x7da87d of _0x14a47c)for(const _0xb9be8a of _0x14a47c)if(_0x7da87d!=_0xb9be8a&&!this['_areMergableCells'](_0x7da87d,_0xb9be8a))return!0x1;return!0x0;}['_areMergableCells'](_0xb158d6,_0x45d818){const _0x15ebc1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2e21fb=this['editor']['model']['createRangeOn'](_0xb158d6),_0x49c0c9=this['editor']['model']['createRangeOn'](_0x45d818),_0x1ab1f1=new Set(),_0x3209ca=new Set();for(const _0x3d62f7 of _0x15ebc1['getSuggestions']())if(('insertion'==_0x3d62f7['type']||'deletion'==_0x3d62f7['type']||'mergeTableCells'==_0x3d62f7['subType'])&&_0x3d62f7['isInContent']){for(const _0x4a28a7 of _0x3d62f7['getRanges']())_0x4a28a7['containsRange'](_0x2e21fb,!0x0)&&_0x1ab1f1['add'](_0x3d62f7['type']+':'+_0x3d62f7['author']['id']),_0x4a28a7['containsRange'](_0x49c0c9,!0x0)&&_0x3209ca['add'](_0x3d62f7['type']+':'+_0x3d62f7['author']['id']);}if(_0x1ab1f1['size']!=_0x3209ca['size'])return!0x1;for(const _0x47ba3c of _0x1ab1f1)if(!_0x3209ca['has'](_0x47ba3c))return!0x1;return!0x0;}}class Ot extends _0x5249e2{static get['requires'](){return[Dt];}['afterInit'](){const _0x28bada=this['editor'];if(!_0x28bada['plugins']['has']('TableEditing'))return;const _0x456fd9=_0x28bada['locale'],_0x33bfb0=_0x28bada['plugins']['get']('TrackChangesEditing');_0x33bfb0['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x33bfb0['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x33bfb0['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x456fd9,'FORMAT_HEADER_ROW')),_0x33bfb0['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x456fd9,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x216dc3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x55d9af=this['editor']['plugins']['get'](Dt)['_acceptFormatSuggestionCallbackFactory']();_0x216dc3['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x55d9af),_0x216dc3['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x55d9af),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x45a7fc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x37a285=this['editor']['plugins']['get']('TableUtils');function _0x487c12({showActiveMarker:_0x3c13c3=!0x0,setDataAttribute:_0xa9ab6=!0x0}={}){return(_0x1748fe,_0x131a79,_0x5eabf)=>{const {type:_0x4c6668,id:_0x29f52c}=_0x45a7fc['_splitMarkerName'](_0x131a79['markerName']);if(!_0x45a7fc['hasSuggestion'](_0x29f52c))return;const _0x5b32d4=_0x45a7fc['getSuggestion'](_0x29f52c),_0x40f8=_0x5b32d4['data'];if('formatBlock'!=_0x5b32d4['type']||!_0x40f8||'setTableColumnHeader'!=_0x40f8['commandName'])return;if(_0x131a79['item'])return void _0x1748fe['stop']();if(!_0x5eabf['consumable']['consume'](_0x131a79['markerRange'],_0x1748fe['name']))return;const _0x406dce=_0x131a79['markerRange']['start']['nodeAfter'],_0x14d60c=_0x131a79['markerRange']['end']['nodeBefore'],_0x4ffd94=_0x406dce['parent']['parent'],{column:_0x2879c7}=_0x37a285['getCellLocation'](_0x406dce),{column:_0x52e1e8}=_0x37a285['getCellLocation'](_0x14d60c);for(let _0x2c1ebb=_0x2879c7;_0x2c1ebb<=_0x52e1e8;_0x2c1ebb++){const _0x114b96=_0x37a285['createTableWalker'](_0x4ffd94,{'column':_0x2c1ebb,'includeAllSlots':!0x1});for(const _0x46a9f2 of _0x114b96){const _0x31467b=_0x46a9f2['cell'],_0x3fd6a9=_0x5eabf['mapper']['toViewElement'](_0x31467b);_0x5eabf['writer']['addClass']('ck-suggestion-marker-'+_0x4c6668,_0x3fd6a9),_0xa9ab6&&_0x5eabf['writer']['setAttribute']('data-suggestion',_0x29f52c,_0x3fd6a9),_0x5eabf['mapper']['bindElementToMarker'](_0x3fd6a9,_0x131a79['markerName']),_0x3c13c3&&(_0x45a7fc['activeMarkers']['includes'](_0x131a79['markerName'])?_0x5eabf['writer']['addClass']('ck-suggestion-marker--active',_0x3fd6a9):_0x5eabf['writer']['removeClass']('ck-suggestion-marker--active',_0x3fd6a9));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x487c12(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x49ea10,_0x37f581,_0x1f828c)=>{_0x1f828c['options']['showSuggestionHighlights']&&_0x487c12({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x49ea10,_0x37f581,_0x1f828c);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x14c047,_0x1e66cb,_0x4d6641)=>{const {type:_0x11b6b4,id:_0x2221ef}=_0x45a7fc['_splitMarkerName'](_0x1e66cb['markerName']);if(!_0x45a7fc['hasSuggestion'](_0x2221ef))return;const _0x22ce1e=_0x45a7fc['getSuggestion'](_0x2221ef),_0x3f0ad1=_0x22ce1e['data'];if('formatBlock'!=_0x22ce1e['type']||!_0x3f0ad1||'setTableColumnHeader'!=_0x3f0ad1['commandName'])return;const _0x3e5939=_0x4d6641['mapper']['markerNameToElements'](_0x1e66cb['markerName']);if(_0x3e5939){for(const _0x2944d0 of _0x3e5939)_0x4d6641['writer']['removeClass']('ck-suggestion-marker-'+_0x11b6b4,_0x2944d0),_0x4d6641['writer']['removeClass']('ck-suggestion-marker--active',_0x2944d0),_0x4d6641['writer']['removeAttribute']('data-suggestion',_0x2944d0),_0x4d6641['mapper']['unbindElementFromMarkerName'](_0x2944d0,_0x1e66cb['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x51c199=this['editor'],_0x504502=_0x51c199['locale'];function _0x3bde3c(_0xf4b63e){return{'type':'format','content':o(_0x504502,'*Format:*\x20%0',_0xf4b63e)};}_0x51c199['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4551f1=>{if('formatBlock'!=_0x4551f1['type'])return;const {data:_0x38d571}=_0x4551f1;if(_0x38d571){if('setTableRowHeader'==_0x38d571['commandName']){const _0x2fd8a8=_0x38d571['commandParams'][0x0]['forceValue'];return _0x3bde3c(o(_0x504502,_0x2fd8a8?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x38d571['commandName']){const _0x482001=_0x38d571['commandParams'][0x0]['forceValue'];return _0x3bde3c(o(_0x504502,_0x482001?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class xt extends _0x5249e2{['afterInit'](){const _0x1de76b=this['editor'],_0x17a577=_0x1de76b['locale'],_0xd26b69=_0x1de76b['plugins']['get']('TrackChangesEditing');function _0x2946d9(_0xbbbf20){return{'type':'format','content':''+o(_0x17a577,'*Set\x20table\x20type:*\x20%0',_0xbbbf20)};}_0x1de76b['plugins']['has']('TableLayout')&&(_0xd26b69['enableCommand']('insertTableLayout'),_0xd26b69['enableDefaultAttributesIntegration']('tableType'),_0xd26b69['descriptionFactory']['registerElementLabel'](_0x56faff=>_0x56faff['is']('element','table')&&'layout'===_0x56faff['getAttribute']('tableType'),_0x4b8185=>o(_0x17a577,'ELEMENT_LAYOUT_TABLE',_0x4b8185)),_0xd26b69['descriptionFactory']['registerDescriptionCallback'](_0x46548b=>{const {data:_0x1d008d}=_0x46548b;if(_0x1d008d&&'tableType'==_0x1d008d['key'])switch(_0x1d008d['newValue']){case'layout':return _0x2946d9(o(_0x17a577,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x2946d9(o(_0x17a577,'ELEMENT_CONTENT_TABLE'));}}));}}const Re=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ae=/* #__PURE__ -- @preserve */
25
- Object['fromEntries'](Re['map'](_0x100f9e=>[_0x100f9e,null]));class Mt extends _0x5249e2{static get['requires'](){return[Dt];}['afterInit'](){const _0x41bb80=this['editor'];if(!_0x41bb80['plugins']['has']('TableClipboard'))return;const _0x351602=_0x41bb80['plugins']['get']('TrackChangesEditing'),_0x198690=_0x41bb80['plugins']['get']('TableUtils'),_0x53d1bb=_0x41bb80['plugins']['get'](Dt),_0x1ae5b5=_0x41bb80['plugins']['get']('TableClipboard'),_0x7ed55f=_0x41bb80['plugins']['get']('TableSelection'),_0xa2a145=_0x41bb80['plugins']['get'](_0x2fcbdc);_0x53d1bb['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x41bb80['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x41bb80['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2e90a5=null,_0xa95c8b=!0x1;_0xa2a145['on']('contentInsertion',(_0x45ce62,_0x25c2c7)=>{_0xa95c8b='paste'===_0x25c2c7['method'];}),_0x41bb80['model']['on']('insertContent',(_0x402294,_0x17511a)=>{if(!_0xa95c8b&&null===_0x7ed55f['getSelectedTableCells']())return;const [_0x1829f9,_0x319bf5]=_0x17511a,_0x1ef76d=_0x17511a[_0x17511a['length']-0x1];_0x1ef76d&&_0x1ef76d['forceDefaultExecution']||_0x351602['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x1dcbf2,_0xcb769a,_0x34d6be,_0x7b7e16,_0x16976b){if(_0xcb769a&&!_0xcb769a['is']('documentSelection'))return!0x1;const _0x14d6c8=_0x16976b['getTableIfOnlyTableInContent'](_0x1dcbf2,_0x34d6be);if(!_0x14d6c8||!Oe(_0x14d6c8,void 0x0,_0x7b7e16))return!0x1;const _0x128e02=_0x7b7e16['getSelectionAffectedTableCells'](_0x34d6be['document']['selection']);if(!_0x128e02['length'])return!0x1;const _0x597cae=_0x128e02[0x0]['findAncestor']('table'),_0x23a7b0=_0x7b7e16['getRowIndexes'](_0x128e02),_0x328c8f=_0x7b7e16['getColumnIndexes'](_0x128e02),_0x256a98={'startRow':_0x23a7b0['first'],'endRow':_0x23a7b0['last'],'startColumn':_0x328c8f['first'],'endColumn':_0x328c8f['last']};return 0x1==_0x128e02['length']&&(_0x256a98['endRow']+=_0x7b7e16['getRows'](_0x14d6c8)-0x1,_0x256a98['endColumn']+=_0x7b7e16['getColumns'](_0x14d6c8)-0x1),Oe(_0x597cae,_0x256a98,_0x7b7e16);}(_0x1829f9,_0x319bf5,_0x41bb80['model'],_0x198690,_0x1ae5b5)&&(_0x402294['stop'](),_0x2e90a5={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x41bb80['model']['change'](()=>{_0x41bb80['model']['insertContent'](_0x17511a[0x0],_0x17511a[0x1],_0x17511a[0x2],{'forceDefaultExecution':!0x0});const _0x134dcd=_0x183e5d(),{rowInsertionRanges:_0x16172b,columnInsertionRanges:_0x174214,insertionRanges:_0x2fbedf,deletionRanges:_0x2cbb6a,cells:_0x324838}=_0x2e90a5;_0x16172b['length']&&_0x351602['markMultiRangeInsertion'](_0x16172b,'tablePasteRow',{'tablePasteChainId':_0x134dcd}),_0x174214['length']&&_0x351602['markMultiRangeInsertion'](_0x174214,'tablePasteColumn',{'tablePasteChainId':_0x134dcd}),_0x2fbedf['length']&&(_0x351602['markMultiRangeInsertion'](_0x2fbedf,'tablePaste',{'tablePasteChainId':_0x134dcd,'skipNestingCheck':!0x0}),_0x2fbedf['forEach'](_0x252c8e=>_0x252c8e['detach']?.())),_0x2cbb6a['length']&&(_0x351602['markMultiRangeDeletion'](_0x2cbb6a,'tablePaste',{'tablePasteChainId':_0x134dcd,'skipNestingCheck':!0x0}),_0x2cbb6a['forEach'](_0x40d66f=>_0x40d66f['detach']?.()));const _0x368341=_0x351602['markMultiRangeBlockFormat'](_0x324838['map'](({element:_0x4dc941})=>_0x4dc941),{'formatGroupId':_0x183e5d()},[],'tablePasteCell',{'tablePasteChainId':_0x134dcd});if(_0x368341){const _0x24e72f=_0x368341['getMarkers'](),_0x7a41b0=[];for(const {element:_0x22687c,attributes:_0x16004d}of _0x324838){if(!_0x16004d)continue;const _0x4b096b=_0x41bb80['model']['createRangeOn'](_0x22687c),_0x4886a7=_0x24e72f['find'](_0x3e8272=>_0x3e8272['getRange']()['isEqual'](_0x4b096b));_0x4886a7&&_0x7a41b0['push']([_0x4886a7['name'],_0x16004d]);}_0x7a41b0['length']&&_0x368341['setAttribute']('markerAttributes',Object['fromEntries'](_0x7a41b0));}_0x2e90a5=null;}));},{'priority':_0x1a39cc['high']+0xa}),_0xa2a145['on']('contentInsertion',()=>{_0xa95c8b=!0x1;},{'priority':'lowest'}),_0x41bb80['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x34a774,_0x9bd7eb)=>{const [_0x1a7839,_0x18dfdd,,_0x48b4a8]=_0x9bd7eb;if(!_0x2e90a5)return;_0x34a774['stop']();const _0x1aa520=_0x1a7839['cell'],_0x591f8f=_0x18dfdd,_0x32965d=Be(_0x1aa520),_0x1c6cc1=Be(_0x591f8f);_0x34a774['return']=_0x1aa520;let _0x135468=null,_0x5b96aa=null;if(_0x1c6cc1||_0x32965d){if(_0x32965d&&!_0x1c6cc1){_0x48b4a8['remove'](_0x1aa520['getChild'](0x0));for(const _0x212604 of Array['from'](_0x591f8f['getChildren']()))_0x48b4a8['insert'](_0x212604,_0x1aa520,'end');const _0x443f21=_0x2e90a5['rowInsertionIndexes']['includes'](_0x1a7839['row']),_0x33f02c=_0x2e90a5['columnInsertionIndexes']['includes'](_0x1a7839['column']);_0x443f21||_0x33f02c||(_0x135468=_0x374b49['fromRange'](_0x48b4a8['createRangeIn'](_0x1aa520)));}else _0x1c6cc1&&!_0x32965d&&(_0x5b96aa=_0x48b4a8['createRangeIn'](_0x1aa520));}else{const _0x276b72=_0x48b4a8['createElement']('tableCellSuggestion'),_0x45acc3=_0x48b4a8['createElement']('tableCellSuggestion');_0x48b4a8['wrap'](_0x48b4a8['createRangeIn'](_0x1aa520),_0x45acc3),_0x48b4a8['insert'](_0x276b72,_0x1aa520,0x0);for(const _0x433a08 of Array['from'](_0x591f8f['getChildren']()))_0x48b4a8['insert'](_0x433a08,_0x276b72,'end');_0x135468=_0x374b49['fromRange'](_0x48b4a8['createRangeOn'](_0x276b72)),_0x5b96aa=_0x374b49['fromRange'](_0x48b4a8['createRangeOn'](_0x45acc3));}const _0x272b0f=Array['from'](_0x591f8f['getAttributes']())['filter'](([_0x468162])=>Re['includes'](_0x468162));_0x2e90a5['cells']['push']({'element':_0x1aa520,'attributes':_0x272b0f['length']?Object['fromEntries'](_0x272b0f):null}),_0x135468&&_0x2e90a5['insertionRanges']['push'](_0x135468),_0x5b96aa&&_0x2e90a5['deletionRanges']['push'](_0x5b96aa);},{'priority':'high'}),_0x198690['on']('insertColumns',(_0x40592f,_0x2636ff)=>{const [_0x5023b3,_0xb5fe20={}]=_0x2636ff;if(!_0x2e90a5)return;const _0x3b7c4d=_0xb5fe20['at']||0x0,_0x22919a=_0xb5fe20['columns']||0x1;_0x2e90a5['columnInsertionIndexes']=new Array(_0x22919a)['fill'](_0x3b7c4d)['map']((_0xb18643,_0x2e2cc8)=>_0xb18643+_0x2e2cc8);for(const {cell:_0x20e1bc}of _0x198690['createTableWalker'](_0x5023b3,{'startColumn':_0x3b7c4d,'endColumn':_0x3b7c4d+_0x22919a-0x1}))_0x2e90a5['columnInsertionRanges']['push'](_0x41bb80['model']['createRangeOn'](_0x20e1bc));},{'priority':'low'}),_0x198690['on']('insertRows',(_0x534d0d,_0x490727)=>{const [_0x1fa403,_0x10d284={}]=_0x490727;if(!_0x2e90a5)return;const _0x3a9896=_0x10d284['at']||0x0,_0x3e3243=_0x10d284['rows']||0x1;_0x2e90a5['rowInsertionIndexes']=new Array(_0x3e3243)['fill'](_0x3a9896)['map']((_0xfd0f2e,_0x582245)=>_0xfd0f2e+_0x582245);for(const {cell:_0x3d4b6d}of _0x198690['createTableWalker'](_0x1fa403,{'startRow':_0x3a9896,'endRow':_0x3a9896+_0x3e3243-0x1}))_0x2e90a5['rowInsertionRanges']['push'](_0x41bb80['model']['createRangeOn'](_0x3d4b6d));},{'priority':'low'}),_0x351602['descriptionFactory']['registerDescriptionCallback'](_0x143bec=>{if(_0x143bec['subType']&&_0x143bec['subType']['startsWith']('tablePaste'))return _0x143bec['previous']?{}:{'type':'insertion','content':o(_0x41bb80['locale'],'*Replace\x20table\x20cells*')};});const _0xb53472=()=>!0x1;for(const _0x2dcdb0 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x351602['_suggestionFactory']['registerCustomCallback']('insertion',_0x2dcdb0,'join',_0xb53472),_0x351602['_suggestionFactory']['registerCustomCallback']('deletion',_0x2dcdb0,'join',_0xb53472),_0x351602['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2dcdb0,'join',_0xb53472);_0x351602['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0xb53472),_0x351602['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x3531db,_0x4ae2eb,_0x19f6f5)=>{const _0xaf6b6a=_0x3531db['map'](_0x200c90=>_0x200c90['getContainedElement']())['filter'](_0x486137=>_0x486137),_0x34c606=new Map(_0xaf6b6a['map'](_0x3452f7=>[_0x3452f7,null]));if(_0x2e90a5){for(const {element:_0x29efe7,attributes:_0x57a407}of _0x2e90a5['cells'])_0x57a407&&_0x34c606['set'](_0x29efe7,_0x57a407);}else{if(_0x19f6f5&&_0x19f6f5['markerAttributes'])for(const [_0x26b027,_0xd49b4d]of Object['entries'](_0x19f6f5['markerAttributes'])){const _0x4c4287=_0x41bb80['model']['markers']['get'](_0x26b027),_0x569711=_0x4c4287?_0x4c4287['getRange']()['getContainedElement']():null;_0x569711&&_0x34c606['set'](_0x569711,_0xd49b4d);}}_0x41bb80['model']['change'](_0x5f37c5=>{for(const [_0x49fd01,_0x4ef625]of _0x34c606)_0x5f37c5['setAttributes']({...Ae,..._0x4ef625},_0x49fd01);});});const _0x58bb62=(_0x147771,_0x4c9ec2)=>{_0x351602['_suggestionFactory']['registerCustomCallback'](_0x147771,'tablePaste',_0x4c9ec2,(_0x132442,_0xd0e9a5,_0x1fd315)=>{_0x41bb80['model']['change'](_0xe11b22=>{const _0x10c894=[];for(const _0x49d986 of _0x132442){const _0x18c6e3=_0x49d986['start']['nodeAfter'];_0x18c6e3['is']('element','tableCellSuggestion')&&_0x10c894['push'](_0x18c6e3);}_0x351602['_suggestionFactory']['getSuggestionCallback'](_0x147771,null,_0x4c9ec2)(_0x132442,_0xd0e9a5,_0x1fd315);for(const _0x48a287 of _0x10c894)'$graveyard'!=_0x48a287['root']['rootName']&&_0xe11b22['unwrap'](_0x48a287);});});};_0x58bb62('insertion','accept'),_0x58bb62('insertion','discard'),_0x58bb62('deletion','accept'),_0x58bb62('deletion','discard'),_0x351602['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x343036=>{const _0x5bb389=_0x343036['map'](_0x18d4ce=>_0x18d4ce['getContainedElement']()),_0x491b31=_0x5bb389[0x0]['findAncestor']('table'),{minRow:_0x56f468,maxRow:_0x43bdfc}=_0x53d1bb['_getCoordsForCells'](_0x5bb389);_0x198690['removeRows'](_0x491b31,{'at':_0x56f468,'rows':_0x43bdfc-_0x56f468+0x1});}),_0x351602['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x4fd3bc=>{const _0x3083fe=_0x4fd3bc['map'](_0x2f7d08=>_0x2f7d08['getContainedElement']()),_0x55f510=_0x3083fe[0x0]['findAncestor']('table'),{minColumn:_0xf90d25,maxColumn:_0x3fd159}=_0x53d1bb['_getCoordsForCells'](_0x3083fe);_0x198690['removeColumns'](_0x55f510,{'at':_0xf90d25,'columns':_0x3fd159-_0xf90d25+0x1});});const _0x2d693d=(_0x371b4f,_0x29a5b6)=>{if(!_0x29a5b6['subType']||!_0x29a5b6['subType']['startsWith']('tablePaste'))return;const _0x20cc63=_0x29a5b6['attributes']['tablePasteChainId'],_0x4a3a1e=_0x351602['getSuggestions']()['filter'](_0x22d9d0=>_0x22d9d0['isInContent']&&_0x22d9d0['attributes']&&_0x22d9d0['attributes']['tablePasteChainId']==_0x20cc63);_0x4a3a1e['length']&&_0x29a5b6['getAllAdjacentSuggestions']()['length']!=_0x4a3a1e['length']&&_0x4a3a1e['reduce']((_0x2e977e,_0x263d8c)=>(_0x2e977e['next']=_0x263d8c,_0x263d8c['previous']=_0x2e977e,_0x263d8c));};function _0x2b47b(_0x4f8756,_0x1e02f3=!0x0){const {id:_0x4fefbb,authorId:_0x51c931}=_0x351602['_splitMarkerName'](_0x4f8756['markerName']),_0x13bc4a=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x2d234c=_0x351602['activeMarkers']['includes'](_0x4f8756['markerName']);return _0x2d234c&&_0x13bc4a['push']('ck-suggestion-marker--active'),{'classes':_0x13bc4a,'attributes':{'data-suggestion':_0x4fefbb,'data-author-id':_0x51c931},'priority':_0x2d234c&&_0x1e02f3?0xbc2:0xbb8};}_0x351602['on']('suggestionLoaded',_0x2d693d,{'priority':'high'}),_0x351602['on']('suggestionUnloaded',_0x2d693d,{'priority':'high'}),_0x41bb80['model']['document']['registerPostFixer'](()=>{let _0x57efcd=!0x1;const _0xd1ef69=Array['from'](_0x41bb80['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3e67f0,data:_0x572a5b}of _0xd1ef69){const {group:_0x23a3e6,type:_0x40b8c1,id:_0x4aefca}=_0x351602['_splitMarkerName'](_0x3e67f0);if('suggestion'!=_0x23a3e6||'deletion'!=_0x40b8c1||_0x572a5b['oldRange'])continue;if(!_0x351602['hasSuggestion'](_0x4aefca))continue;const _0x1abff6=_0x351602['getSuggestion'](_0x4aefca)['getRanges'](),_0x59ae24=_0x41bb80['plugins']['get']('Users')['me'];for(const _0x36b003 of _0x351602['getSuggestions']()){if(!_0x36b003['isInContent']||_0x36b003['author']!=_0x59ae24)continue;if('formatBlock'!=_0x36b003['type']||'tablePasteCell'!=_0x36b003['subType'])continue;if(_0x36b003['getRanges']()['every'](_0x4fedd3=>_0x1abff6['some'](_0x18ffb9=>_0x18ffb9['containsRange'](_0x4fedd3,!0x0)))){for(const _0x222ed5 of _0x36b003['getAllAdjacentSuggestions']())_0x222ed5['isInContent']&&(_0x222ed5['discard'](),_0x57efcd=!0x0);}}}return _0x57efcd;}),_0x41bb80['model']['document']['registerPostFixer'](_0x84593b=>{const _0x14a259=_0x41bb80['commands']['get']('redo');if(!_0x14a259||!_0x14a259['_createdBatches']['has'](_0x84593b['batch']))return!0x1;let _0x4e8751=!0x1;const _0x59f137=_0x41bb80['plugins']['get']('Users')['me'],_0x103904=_0x41bb80['model']['document']['differ']['getChanges'](),_0x2bb7fc=Array['from'](_0x41bb80['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x519703,data:_0x1751a0})=>{const {group:_0x5f4b94,subType:_0xa70f3f,authorId:_0x3ad83b}=_0x351602['_splitMarkerName'](_0x519703);return'suggestion'==_0x5f4b94&&'tablePaste'==_0xa70f3f&&_0x3ad83b==_0x59f137['id']&&!_0x1751a0['oldRange'];});for(const _0x58aafc of _0x103904){if('insert'!=_0x58aafc['type']||'tableCellSuggestion'!=_0x58aafc['name']||0x1!=_0x58aafc['length'])continue;const _0x40f20e=_0x84593b['createRange'](_0x58aafc['position'],_0x58aafc['position']['getShiftedBy'](0x1));if(!_0x2bb7fc['find'](({data:_0x21cf6f})=>_0x21cf6f['newRange']['isEqual'](_0x40f20e))){for(const {name:_0x26ff77,data:_0x2ed105}of _0x2bb7fc)if(_0x40f20e['containsRange'](_0x2ed105['newRange'])){_0x84593b['updateMarker'](_0x26ff77,{'range':_0x40f20e}),_0x4e8751=!0x0;break;}}}return _0x4e8751;}),_0x41bb80['model']['document']['registerPostFixer'](_0x115783=>{let _0x1f8c8e=!0x1;const _0x46b808=_0x41bb80['plugins']['get']('Users')['me'],_0x1ce751=_0x351602['getSuggestions']()['filter'](_0x3985c7=>_0x3985c7['isInContent']&&_0x3985c7['author']==_0x46b808),_0xb9a643=new Set(),_0x57d365=new Set();for(const _0xcacc35 of _0x1ce751)if('tablePaste'==_0xcacc35['subType'])for(const _0x381ae4 of _0xcacc35['getMarkers']()){const _0x275668=_0x381ae4['getRange']()['getContainedElement']();if(_0x275668){if(_0x275668['is']('element','tableCellSuggestion')&&Be(_0x275668)){_0xcacc35['removeMarker'](_0x381ae4['name']),_0xb9a643['add'](_0x275668),_0x1f8c8e=!0x0;const _0x2f37c9=_0x275668['nextSibling'],_0x4ecce8=_0x275668['previousSibling'],_0x4f9546=_0x2f37c9&&_0x2f37c9['is']('element','tableCellSuggestion'),_0xd91fe3=_0x4ecce8&&_0x4ecce8['is']('element','tableCellSuggestion');_0x4f9546&&!_0xb9a643['has'](_0x2f37c9)&&_0x57d365['add'](_0x2f37c9),_0xd91fe3&&!_0xb9a643['has'](_0x4ecce8)&&_0x57d365['add'](_0x4ecce8);}else _0x275668['is']('element','paragraph')&&_0x275668['isEmpty']&&(_0xcacc35['removeMarker'](_0x381ae4['name']),_0x1f8c8e=!0x0);}}else{if('tablePasteCell'==_0xcacc35['subType']){if(!_0xcacc35['attributes']||!_0xcacc35['attributes']['tablePasteChainId'])continue;const _0x11f979=_0xcacc35['attributes']['markerAttributes'];if(_0x11f979&&Object['keys'](_0x11f979)['length'])continue;const _0xfe1987=_0xcacc35['attributes']['tablePasteChainId'];let _0x2db83f=!0x0,_0x23b1f5=!0x0;for(const _0x4be35f of _0x1ce751)if(_0x4be35f['subType']&&_0x4be35f['subType']['startsWith']('tablePaste')){if(!_0x4be35f['attributes']['tablePasteChainId']){_0x23b1f5=!0x1;break;}if(_0x4be35f['id']!=_0xcacc35['id']&&_0x4be35f['attributes']['tablePasteChainId']==_0xfe1987){_0x2db83f=!0x1;break;}}_0x23b1f5&&_0x2db83f&&(_0xcacc35['removeMarkers'](),_0x1f8c8e=!0x0);}}for(const _0x51f5a3 of _0xb9a643)_0x115783['remove'](_0x51f5a3);for(const _0x3c1472 of _0x57d365)_0x115783['unwrap'](_0x3c1472);return _0x1f8c8e;}),_0x41bb80['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x383c5c=>_0x2b47b(_0x383c5c),'converterPriority':'high'}),_0x41bb80['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2faa82,_0xbd6304)=>_0xbd6304['options']['showSuggestionHighlights']?_0x2b47b(_0x2faa82,!0x1):null,'converterPriority':'high'});const _0x28c70b=_0x41bb80['editing']['view'];this['listenTo'](_0x28c70b['document'],'clipboardOutput',(_0x42cbc2,_0x592d3c)=>{const _0x5cc18e=[];for(const _0x2c084e of _0x28c70b['createRangeIn'](_0x592d3c['content'])['getItems']())_0x2c084e['is']('element','suggestion-td')&&_0x5cc18e['push'](_0x2c084e);_0x28c70b['change'](_0x3b601a=>{for(const _0x3d6544 of _0x5cc18e)_0x3b601a['move'](_0x3b601a['createRangeIn'](_0x3d6544),_0x3b601a['createPositionBefore'](_0x3d6544)),_0x3b601a['remove'](_0x3d6544);});});}}function Be(_0x27a173){if(_0x27a173['isEmpty'])return!0x0;const _0x5d57e4=_0x27a173['getChild'](0x0);return _0x5d57e4['is']('element','paragraph')&&_0x5d57e4['isEmpty'];}function Oe(_0x2982d5,_0xbc56dd={},_0x6d2818){for(const {isAnchor:_0x4fd581,cellHeight:_0x538376,cellWidth:_0x12dac4}of _0x6d2818['createTableWalker'](_0x2982d5,{'includeAllSlots':!0x0,..._0xbc56dd}))if(!_0x4fd581||0x1!=_0x538376||0x1!=_0x12dac4)return!0x1;return!0x0;}class Rt extends _0x5249e2{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0xec1a12=this['editor']['plugins']['get']('TrackChangesEditing');_0xec1a12['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0xec1a12['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0xec1a12['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xec1a12['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0xec1a12['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0xec1a12['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x1649b7,_0x114997){const _0x212a67=this['editor']['plugins']['get']('TrackChangesEditing'),_0x35ef31=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1e5c17=_0x114997['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0xc63e8e=_0x35ef31['getColumnGroupElement'](_0x1e5c17);let _0x3c3459=_0xc63e8e?_0x35ef31['getTableColumnsWidths'](_0xc63e8e):null,_0x51b632=_0x1e5c17['getAttribute']('tableWidth')||null;const _0x4238cb=_0x114997['tableWidth']||_0x51b632,_0x1c8eea=_0x114997['columnWidths']||_0x3c3459,_0x3c597e=this['editor']['plugins']['get']('Users')['me'];for(const _0x3751ba of _0x212a67['getSuggestions']()){const _0x3e67c4=_0x3751ba['getContainedElement']();if('resizeTable'===_0x3751ba['subType']&&_0x3e67c4===_0x1e5c17){_0x3751ba['author']!==_0x3c597e&&_0x3751ba['discard']();const _0x5de979=_0x3751ba['data']['commandParams'];_0x51b632=_0x5de979[0x0]['tableWidth'],_0x3c3459=_0x5de979[0x0]['columnWidths'];break;}}_0x1649b7({'table':_0x1e5c17,'tableWidth':_0x4238cb,'columnWidths':_0x1c8eea}),_0x212a67['markBlockFormat'](_0x1e5c17,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x51b632,'columnWidths':_0x3c3459}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x243e94){if('formatBlock'!=_0x243e94['type']&&'formatInline'!=_0x243e94['type'])return;const {data:_0x48f9fe}=_0x243e94;if(_0x48f9fe&&'resizeTable'===_0x48f9fe['formatGroupId']){const _0x4fc00c='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x4fc00c)};}}}class Tt extends _0x5249e2{['afterInit'](){const _0x35540f=this['editor'];_0x35540f['plugins']['has']('Template')&&_0x35540f['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Et extends _0x5249e2{['afterInit'](){const _0x2866d0=this['editor'];if(!_0x2866d0['commands']['get']('insertTableOfContents'))return;_0x2866d0['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x247372=_0x2866d0['plugins']['get']('TrackChangesEditing'),_0x29427a=_0x2866d0['locale'];_0x247372['descriptionFactory']['registerElementLabel']('tableOfContents',_0x2e147b=>o(_0x29427a,'ELEMENT_TABLE_OF_CONTENTS',_0x2e147b));}}class Ut extends _0x5249e2{['afterInit'](){const _0x54f612=this['editor'];if(!_0x54f612['plugins']['has']('Title'))return;const _0x7bad8f=_0x54f612['plugins']['get']('TrackChangesEditing');_0x7bad8f['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x54f612['locale'],'ELEMENT_TITLE')),_0x54f612['model']['document']['registerPostFixer'](_0x5ee2aa=>{let _0x20e7fa=!0x1;const _0x5331d2=Array['from'](_0x54f612['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xda65f2,data:_0xe956dd}of _0x5331d2){const {group:_0x1cb2ee}=_0x7bad8f['_splitMarkerName'](_0xda65f2);if('suggestion'!==_0x1cb2ee||!_0xe956dd['newRange'])continue;const _0x100868=_0xe956dd['newRange'],_0x293701=_0x100868['end']['nodeBefore'];if(!_0x293701||!_0x293701['is']('element','title-content'))continue;if(!_0x100868['start']['isTouching'](_0x100868['end']))continue;const _0x4183ec=_0x54f612['model']['schema']['getNearestSelectionRange'](_0x100868['end'],'forward');if(_0x4183ec&&_0x4183ec['isCollapsed']){const _0x50183f=_0x5ee2aa['createRange'](_0x100868['start'],_0x4183ec['start']);_0x50183f['isEqual'](_0x100868)||(_0x5ee2aa['updateMarker'](_0xda65f2,{'range':_0x50183f}),_0x20e7fa=!0x0);}_0x20e7fa||(_0x5ee2aa['removeMarker'](_0xda65f2),_0x20e7fa=!0x0);}return _0x20e7fa;});}}class Vt extends _0x5249e2{['afterInit'](){const _0x578281=this['editor'],_0xb05a39=_0x578281['plugins']['get']('TrackChangesEditing');_0x578281['plugins']['has']('Uploadcare')&&(_0xb05a39['enableCommand']('uploadcare'),_0x578281['plugins']['has']('UploadcareImageEdit')&&(_0xb05a39['enableCommand']('uploadcareImageEdit'),_0xb05a39['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0xb05a39['descriptionFactory']['registerDescriptionCallback'](_0x2c1be1=>{if('attribute'!=_0x2c1be1['type'])return;const {data:_0x1ef42d}=_0x2c1be1;return _0x1ef42d&&'uploadcareImageId'==_0x1ef42d['key']?{'type':'format','content':''}:void 0x0;})));}}class Ft extends _0x5249e2{['afterInit'](){const _0x4d77ad=this['editor'],_0x1aacb6=_0x4d77ad['plugins']['get']('TrackChangesEditing');_0x4d77ad['plugins']['has']('UndoEditing')&&(_0x1aacb6['enableCommand']('undo'),_0x1aacb6['enableCommand']('redo'));}}class Pt extends _0x5249e2{static get['requires'](){return[Dt];}['afterInit'](){const _0x47e206=this['editor'];if(!_0x47e206['plugins']['has']('TableCaptionEditing'))return;_0x47e206['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Gt extends _0x5249e2{['tableProperties'];['tableCellProperties'];constructor(_0x2308c3){super(_0x2308c3),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'],_0x2308c3['config']['get']('experimentalFlags.tableCellTypeSupport')&&this['tableCellProperties']['push']('tableCellType');}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x38186b=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x4aee2a of this['tableProperties'])_0x38186b['enableCommand'](_0x4aee2a,(_0x3930d8,_0x176f0d)=>{const _0x1b9120=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x4aee2a,[_0x1b9120],this['tableProperties'],'tableProperties',_0x3930d8,_0x176f0d);});_0x38186b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x38186b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x38186b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x30f324,_0x3d3a25)=>this['handleDiscardAction'](this['tableProperties'],_0x30f324,_0x3d3a25)),_0x38186b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x1de9fc of this['tableCellProperties'])this['editor']['commands']['get'](_0x1de9fc)&&_0x38186b['enableCommand'](_0x1de9fc,(_0x4fe09,_0x2b88d9)=>{const _0x14261b=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x1de9fc,_0x14261b,this['tableCellProperties'],'tableCellProperties',_0x4fe09,_0x2b88d9);});_0x38186b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x38186b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x38186b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x16aea5,_0x23954f)=>this['handleDiscardAction'](this['tableCellProperties'],_0x16aea5,_0x23954f)),_0x38186b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x38186b['descriptionFactory']['registerAttributeLabel']('tableCellType',o(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x38186b['descriptionFactory']['registerDescriptionCallback'](_0x5149f3=>this['handleSuggestionDescription'](_0x5149f3)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x14b572,_0x2759e4,_0x5e1666,_0x4bb025,_0x15e3d2,_0x4716d5){const _0x143a6e=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x4716d5['batch'],()=>{for(const _0x2a70f0 of _0x2759e4){if(this['_getSuggestion'](_0x2a70f0,_0x4bb025))_0x15e3d2(_0x4716d5);else{const _0x24e4f8={};for(const _0x953dff of _0x5e1666){const _0x3218ff=_0x2a70f0['getAttribute'](_0x953dff);void 0x0!==_0x3218ff&&(_0x24e4f8[_0x953dff]=_0x3218ff);}_0x15e3d2(_0x4716d5),_0x143a6e['markBlockFormat'](_0x2a70f0,{'commandParams':[_0x24e4f8]},[],_0x4bb025);}}});}['handleDiscardAction'](_0x1ac353,_0x1f5dfb,_0x4d6966){const _0x134f7f=_0x1f5dfb[0x0]['start']['nodeAfter'],_0x2cdeac=_0x4d6966['commandParams'][0x0];this['editor']['model']['change'](_0x321281=>{for(const _0xe5642e of _0x1ac353)void 0x0!==_0x2cdeac[_0xe5642e]?_0x321281['setAttribute'](_0xe5642e,_0x2cdeac[_0xe5642e],_0x134f7f):_0x321281['removeAttribute'](_0xe5642e,_0x134f7f);});}['handleSuggestionDescription'](_0x11e9e2){if(_0x11e9e2['data'])switch(_0x11e9e2['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x113a2f,_0x1ad957){const _0x37fbad=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x4a33c8 of _0x37fbad['getSuggestions']({'skipNotAttached':!0x0})){const _0x58a432=_0x4a33c8['getContainedElement']();if(_0x4a33c8['subType']===_0x1ad957&&_0x58a432===_0x113a2f)return _0x4a33c8;}return null;}['_registerTablePropertiesAttributes'](){const _0x5d05ca=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4b2bd5=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x1da861 of _0x4b2bd5){const _0x5d6f61=_0x1da861['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x5d05ca['descriptionFactory']['registerAttributeLabel'](_0x1da861,o(this['editor']['locale'],'FORMAT_'+_0x5d6f61));}}}class Lt extends _0x5249e2{['afterInit'](){const _0x5b3fe5=this['editor'];if(!_0x5b3fe5['plugins']['has']('LineHeight'))return;const _0x611d7f=_0x5b3fe5['plugins']['get']('TrackChangesEditing'),_0x7861e0=_0x5b3fe5['locale'];_0x611d7f['enableDefaultAttributesIntegration']('lineHeight'),_0x611d7f['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x7861e0,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x5249e2{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0xaeb456,_0x2f90aa,_0x43f8a1,_0x357673,U,V,F,G,L,J,q,K,z,W,H,Q,Z,tt,nt,it,et,st,ot,rt,at,ct,ut,ht,ft,lt,gt,mt,pt,wt,jt,dt,X,Lt,Y,kt,bt,yt,St,It,At,_t,Ct,Nt,$t,vt,Dt,Bt,Ot,xt,Pt,Mt,Rt,Et,Gt,Tt,Ut,Vt,Ft];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x57154a){super(_0x57154a),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x1ac292,_0x54d7f8,_0x4afa3c,_0x7e141a)=>{this['_model']['change'](()=>{for(const _0x18f3a8 of[..._0x7e141a,..._0x4afa3c])this['_model']['markers']['has'](_0x18f3a8)&&_0x57154a['editing']['reconvertMarker'](_0x18f3a8);});}),this['descriptionFactory']=new E(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new SuggestionFactory(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x57154a['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x57154a['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x57154a['config']['get']('trackChanges.trackFormatChanges'),_0x57154a['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x57154a['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x57154a,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x6cb36d=this['editor'];_0x6cb36d['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5109ee,{writer:_0x5bccd4})=>{let _0xb677a0='suggestion:'+_0x5109ee['getAttribute']('suggestion-type')+':'+_0x5109ee['getAttribute']('id');return _0x5109ee['getAttribute']('marker-count')&&(_0xb677a0+=':'+_0x5109ee['getAttribute']('marker-count')),_0x5bccd4['createElement']('$marker',{'data-name':_0xb677a0});}}),_0x6cb36d['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x6cb36d['model']['document']['registerPostFixer'](_0x56b070=>{let _0xedf26a=!0x1;const _0x21f249=Array['from'](_0x6cb36d['model']['document']['differ']['getChangedMarkers']()),_0x209ed8=new Set();for(const {name:_0x1b07a7,data:_0xb904da}of _0x21f249){const {group:_0x19647c,type:_0x50e4f2,subType:_0x3a6670,id:_0x11d0bf}=this['_splitMarkerName'](_0x1b07a7);if('suggestion'!==_0x19647c)continue;const _0x4e177e=_0x3a6670?'suggestion:'+_0x50e4f2+':'+_0x3a6670+':'+_0x11d0bf:'suggestion:'+_0x50e4f2+':'+_0x11d0bf,_0x106b1c=_0x6cb36d['model']['markers']['getMarkersGroup'](_0x4e177e),_0x3a0782=_0x6cb36d['model']['markers']['get'](_0x1b07a7),_0x12ce15=this['_suggestions']['get'](_0x11d0bf);if(null!=_0xb904da['newRange']){'formatInline'==_0x50e4f2&&(_0xedf26a=_0xedf26a||Kt(_0xb904da['newRange'],_0x1b07a7,_0x56b070,_0x6cb36d['model']['schema']));const _0x3de517='attribute'==_0x50e4f2&&this['_isBlockAttribute'](_0x3a6670['split']('|')[0x0]),_0x3c5142='attribute'==_0x50e4f2&&this['_isInlineAttribute'](_0x3a6670['split']('|')[0x0]);if(_0xb904da['newRange']['isCollapsed']||'$graveyard'==_0xb904da['newRange']['root']['rootName']||'formatBlock'==_0x50e4f2&&!Ht(_0xb904da['newRange'])||_0x3de517&&!Ht(_0xb904da['newRange'])||_0x3c5142&&Qt(_0xb904da['newRange'])||'deletion'==_0x50e4f2&&Qt(_0xb904da['newRange'])||_0x3a0782&&Xt(_0x3a0782,_0x106b1c))_0x56b070['removeMarker'](_0x1b07a7),_0xedf26a=!0x0;else{if(!_0x12ce15||!_0x12ce15['isInContent'])continue;if(_0xb904da['newRange']&&_0xb904da['oldRange']&&_0xb904da['newRange']['isEqual'](_0xb904da['oldRange']))continue;_0x209ed8['add'](_0x12ce15);}}}return _0x209ed8['size']>0x0&&(_0xedf26a=!!this['_joinWithAdjacentSuggestions'](_0x209ed8)||_0xedf26a),_0xedf26a;}),_0x6cb36d['model']['document']['registerPostFixer'](_0x320856=>{let _0x3443e1=!0x1;for(const _0x1a2faf of _0x6cb36d['model']['document']['differ']['getChanges']())if('insert'==_0x1a2faf['type'])for(const _0x2b0ecd of this['_suggestions']['values']()){if(_0x2b0ecd['isMultiRange']||!_0x2b0ecd['isInContent'])continue;const _0x561365='formatBlock'==_0x2b0ecd['type'],_0x2b1e86=this['_getAttributeKey'](_0x2b0ecd),_0x130db5=_0x2b1e86&&this['_isBlockAttribute'](_0x2b1e86);if(!_0x561365&&!_0x130db5)continue;const _0x310ba6=_0x2b0ecd['getFirstRange']();if(_0x310ba6['start']['parent']!=_0x310ba6['end']['parent']&&!_0x310ba6['end']['isAtEnd']){const _0x4cd56a=_0x6cb36d['model']['createPositionAt'](_0x310ba6['start']['nodeAfter'],'end'),_0x5d9b24=_0x6cb36d['model']['createRange'](_0x310ba6['start'],_0x4cd56a);_0x320856['updateMarker'](_0x2b0ecd['getFirstMarker'](),{'range':_0x5d9b24}),_0x3443e1=!0x0;}}return _0x3443e1;}),_0x6cb36d['model']['document']['registerPostFixer'](_0x5be83b=>this['_processAttributeChanges'](_0x5be83b)),_0x6cb36d['model']['document']['registerPostFixer'](_0x54dd66=>!_0x54dd66['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x54dd66)),_0x6cb36d['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x6cb36d['model']['document']['on']('change:data',(_0x1c7039,_0x5efcc)=>{if(!_0x5efcc['isLocal']||_0x5efcc['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x40f096=_0x6cb36d['model']['document']['differ']['getChanges']();if(0x0==_0x40f096['length'])return;const _0xd4c7fd=[],_0x43f967=_0x40f096['filter'](_0x312cdc=>'attribute'==_0x312cdc['type']),_0x44d264=_0x40f096['filter'](_0x9be84e=>'insert'==_0x9be84e['type']&&'$text'!=_0x9be84e['name']);for(const _0x2e6e23 of _0x43f967)this['_isRegisteredAttribute'](_0x2e6e23['attributeKey'])&&_0xd4c7fd['push']({'key':_0x2e6e23['attributeKey'],'newValue':_0x2e6e23['attributeNewValue'],'oldValue':_0x2e6e23['attributeOldValue'],'range':Yt(_0x2e6e23['range'],_0x6cb36d['model'])});for(const _0x12be9f of _0x44d264){if('rename'!=_0x12be9f['action']&&'refresh'!=_0x12be9f['action'])continue;const _0x55f733=Zt(_0x12be9f['position']['nodeAfter'],_0x6cb36d['model']),_0xed82e1=_0x12be9f['before'];'rename'==_0x12be9f['action']&&_0xd4c7fd['push']({'key':m,'newValue':_0x12be9f['name'],'oldValue':_0xed82e1['name'],'range':_0x55f733});for(const [_0x4eeb6d,_0x27365d]of _0xed82e1['attributes']){if(!this['_isRegisteredAttribute'](_0x4eeb6d))continue;const _0x118492=_0x12be9f['attributes']['get'](_0x4eeb6d);_0x27365d!==_0x118492&&_0xd4c7fd['push']({'key':_0x4eeb6d,'newValue':_0x118492,'oldValue':_0x27365d,'range':_0x55f733});}for(const [_0x4ba990,_0x213546]of _0x12be9f['attributes'])this['_isRegisteredAttribute'](_0x4ba990)&&(_0xed82e1['attributes']['has'](_0x4ba990)||_0xd4c7fd['push']({'key':_0x4ba990,'newValue':_0x213546,'oldValue':null,'range':_0x55f733}));}0x0!=_0xd4c7fd['length']&&_0x6cb36d['model']['enqueueChange'](_0x5efcc,_0x2e12e8=>{const _0x27a57a=_0x183e5d();for(const {range:_0x424d28,key:_0x18204d,oldValue:_0x818898,newValue:_0x223185}of _0xd4c7fd)this['markAttributeChange'](_0x424d28,_0x18204d,_0x818898,_0x223185,{'groupId':_0x27a57a});this['_reduceExistingSuggestions'](_0x2e12e8,_0xd4c7fd);});},{'priority':'lowest'}),_0x6cb36d['model']['markers']['on']('update:suggestion',(_0x11cc64,_0x58b544,_0x5ea750)=>{if(null==_0x5ea750){const {id:_0x870cbb}=this['_splitMarkerName'](_0x58b544['name']),_0x2846dc=this['_suggestions']['get'](_0x870cbb);_0x2846dc&&_0x2846dc['addMarkerName'](_0x58b544['name']);}}),_0x6cb36d['model']['document']['on']('change:data',()=>{const _0xa33ce1=Array['from'](_0x6cb36d['model']['document']['differ']['getChangedMarkers']())['filter'](_0x256033=>'suggestion'===this['_splitMarkerName'](_0x256033['name'])['group']);if(0x0===_0xa33ce1['length'])return;_0xa33ce1['sort']((_0x4077b8,_0x24f9c3)=>{const _0x3519a6=_0x4077b8['data']['oldRange'],_0x417321=_0x24f9c3['data']['oldRange'];return null===_0x3519a6&&null===_0x417321?0x0:null===_0x3519a6&&null!==_0x417321?-0x1:null!==_0x3519a6&&null===_0x417321?0x1:_0x3519a6['start']['isBefore'](_0x417321['start'])?-0x1:0x1;});const _0x1d4d4d=new Set(),_0x2c2929=new Set();for(const {name:_0x2863db,data:_0x23fd59}of _0xa33ce1){const {id:_0x3b1314}=this['_splitMarkerName'](_0x2863db);if(null===_0x23fd59['oldRange']){const _0x2eb6d9=this['_handleNewSuggestionMarker'](_0x2863db);_0x2c2929['add'](_0x2eb6d9);}else{const _0x31fcf2=this['_suggestions']['get'](_0x3b1314);null!==_0x23fd59['newRange']||_0x31fcf2['isInContent']?(_0x1d4d4d['add'](_0x31fcf2['head']),_0x2c2929['add'](_0x31fcf2)):this['_removeSuggestion'](_0x31fcf2);}}_0x2c2929['size']>0x0&&this['_refreshSuggestionsChain'](_0x2c2929);for(const _0x28007c of _0x1d4d4d)this['fire']('suggestionChanged',_0x28007c);}),_0x6cb36d['model']['on']('applyOperation',(_0x56bf8b,_0x4a7426)=>{const _0x1618bf=_0x4a7426[0x0];if(!this['_suggestions']['size'])return;if(!_0x1618bf['isDocumentOperation'])return;if(_0x1618bf['batch']['isUndo']||!_0x1618bf['batch']['isLocal'])return;let _0x1ba0e4,_0xc0d66a;switch(_0x1618bf['type']){case'insert':_0x1ba0e4=_0x6cb36d['model']['createPositionAt'](_0x1618bf['position']),_0xc0d66a=_0x1ba0e4['getShiftedBy'](_0x1618bf['howMany']);break;case'split':_0x1ba0e4=_0x6cb36d['model']['createPositionAt'](_0x1618bf['splitPosition']),_0xc0d66a=_0x6cb36d['model']['createPositionAt'](_0x1618bf['moveTargetPosition']);break;case'move':_0x1ba0e4=_0x6cb36d['model']['createPositionAt'](_0x1618bf['targetPosition']),_0xc0d66a=_0x1ba0e4['getShiftedBy'](_0x1618bf['howMany']);break;default:return;}const _0x9e0a2c=_0x6cb36d['model']['createRange'](_0x1ba0e4,_0xc0d66a);_0x6cb36d['model']['change'](()=>{for(const {suggestion:_0x54f1d1,meta:_0x30a37a}of this['_findSuggestions'](_0x9e0a2c)){if(_0x54f1d1['isMultiRange'])continue;if('formatInline'==_0x54f1d1['type'])continue;const _0x4c32de=this['_getAttributeKey'](_0x54f1d1);if(_0x4c32de&&this['_isBlockAttribute'](_0x4c32de)&&'split'!=_0x1618bf['type'])continue;const _0x27f9a6=_0x54f1d1['data']&&_0x54f1d1['data']['multipleBlocks'];('formatBlock'!=_0x54f1d1['type']||'split'==_0x1618bf['type']&&!_0x27f9a6)&&(_0x30a37a['containsRangeInObject']||'insertion'==_0x54f1d1['type']&&_0x30a37a['isOwn']||_0x54f1d1['getFirstRange']()['containsRange'](_0x9e0a2c)&&this['_breakSuggestionMarker'](_0x54f1d1,_0x1ba0e4,_0xc0d66a));}});},{'priority':'lowest'}),_0x6cb36d['model']['on']('deleteContent',(_0x3cc28d,_0x5db000)=>{const _0x579d95=_0x5db000[0x0],_0x251cd6=_0x5db000[0x1];if(_0x251cd6&&_0x251cd6['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x579d95['isCollapsed'])return;const _0x11991b=_0x6cb36d['model']['schema'],{start:_0x9efde,end:_0x5e02e5}=_0x579d95['getFirstRange'](),_0x5ce05a=_0x9efde['nodeAfter']&&_0x11991b['isLimit'](_0x9efde['nodeAfter'])?null:_0x11991b['getNearestSelectionRange'](_0x9efde,'forward'),_0x482e95=_0x5e02e5['nodeBefore']&&_0x11991b['isLimit'](_0x5e02e5['nodeBefore'])?null:_0x11991b['getNearestSelectionRange'](_0x5e02e5,'backward'),_0x19671f=_0x6cb36d['model']['createRange'](_0x5ce05a?_0x5ce05a['start']:_0x9efde,_0x482e95?_0x482e95['end']:_0x5e02e5);_0x6cb36d['model']['change'](_0x23fda5=>{this['markDeletion'](_0x19671f);const _0x5104c7=_0x6cb36d['model']['schema']['getNearestSelectionRange'](_0x19671f['start']);_0x579d95['is']('documentSelection')?_0x23fda5['setSelection'](_0x5104c7):_0x579d95['setTo'](_0x5104c7);}),_0x3cc28d['stop']();},{'priority':_0x1a39cc['normal']+0xa}),_0x6cb36d['model']['on']('insertContent',(_0x2b552a,_0x23c845)=>{const _0x427137=_0x23c845[_0x23c845['length']-0x1];_0x427137&&_0x427137['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x6cb36d['model']['change'](()=>{let _0x2ed959=_0x6cb36d['model']['insertContent'](_0x23c845[0x0],_0x23c845[0x1],_0x23c845[0x2],{'forceDefaultExecution':!0x0});if(!_0x2ed959)return;_0x2b552a['return']=_0x2ed959['clone']();const _0x3423ed=_0x2ed959['end']['nodeBefore'],_0x57e941=_0x6cb36d['model']['schema'];_0x3423ed&&_0x57e941['isBlock'](_0x3423ed)&&!_0x57e941['isObject'](_0x3423ed)&&(_0x2ed959=_0x6cb36d['model']['createRange'](_0x2ed959['start'],_0x6cb36d['model']['createPositionAt'](_0x3423ed,'end'))),this['markInsertion'](_0x2ed959);}),_0x2b552a['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x47aa06=new O(_0x6cb36d,this['_suggestions']);_0x6cb36d['commands']['add']('acceptSuggestion',_0x47aa06),this['enableCommand']('acceptSuggestion');const _0x217e7a=new x(_0x6cb36d,this['_suggestions']);_0x6cb36d['commands']['add']('discardSuggestion',_0x217e7a),this['enableCommand']('discardSuggestion'),_0x6cb36d['commands']['add']('acceptAllSuggestions',new M(_0x6cb36d,_0x47aa06,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x6cb36d['commands']['add']('discardAllSuggestions',new M(_0x6cb36d,_0x217e7a,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x6cb36d['commands']['add']('acceptSelectedSuggestions',new R(_0x6cb36d,_0x47aa06,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x6cb36d['commands']['add']('discardSelectedSuggestions',new R(_0x6cb36d,_0x217e7a,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x33c2ee=_0x6cb36d['plugins']['get']('CommentsRepository');this['listenTo'](_0x33c2ee,'addComment',(_0x390f36,{threadId:_0x2888c2})=>{const _0x799ed3=this['_suggestions']['get'](_0x2888c2);_0x799ed3&&_0x799ed3['commentThread']&&0x1===_0x799ed3['commentThread']['length']&&this['_updateSuggestionData'](_0x2888c2,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x33c2ee,'removeComment',(_0x4a9812,{threadId:_0x326b97})=>{const _0x27c533=this['_suggestions']['get'](_0x326b97);_0x27c533&&_0x27c533['commentThread']&&!_0x27c533['commentThread']['length']&&this['_updateSuggestionData'](_0x326b97,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0xdbfb7c){const _0x632354=_0x2b4fc6([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x52dca1=0x3d8d0df,_0x1da95c=0x3df5f1f^_0x52dca1,_0x54cc27=window[_0x2b4fc6([0x44,0x61,0x74,0x65])][_0x2b4fc6([0x6e,0x6f,0x77])](),_0x2d577e=_0xdbfb7c[_0x2b4fc6([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xb6b8a1=new window[(_0x2b4fc6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4c4a92=>{_0x2d577e[_0x2b4fc6([0x6f,0x6e,0x63,0x65])](_0x2b4fc6([0x72,0x65,0x61,0x64,0x79]),_0x4c4a92);}),_0x21d0dc={[_0x2b4fc6([0x6b,0x74,0x79])]:_0x2b4fc6([0x45,0x43]),[_0x2b4fc6([0x75,0x73,0x65])]:_0x2b4fc6([0x73,0x69,0x67]),[_0x2b4fc6([0x63,0x72,0x76])]:_0x2b4fc6([0x50,0x2d,0x32,0x35,0x36]),[_0x2b4fc6([0x78])]:_0x2b4fc6([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]),[_0x2b4fc6([0x79])]:_0x2b4fc6([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]),[_0x2b4fc6([0x61,0x6c,0x67])]:_0x2b4fc6([0x45,0x53,0x32,0x35,0x36])},_0x4b2af9=_0x2d577e[_0x2b4fc6([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2b4fc6([0x67,0x65,0x74])](_0x2b4fc6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x166bc2(){let _0x5f1042,_0x372a93=null,_0x5d67ff=null;try{if(_0x4b2af9==_0x2b4fc6([0x47,0x50,0x4c]))return _0x2b4fc6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5f1042=_0x30ce11(),!_0x5f1042)return _0x2b4fc6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5f1042[_0x2b4fc6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5d67ff=_0x5506b8(_0x5f1042[_0x2b4fc6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5f1042[_0x2b4fc6([0x6a,0x74,0x69])])),await _0x181e86()?_0x43a916()?_0x350fb4()?_0x2b4fc6([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x249bd7()?(_0x5f1042[_0x2b4fc6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2b4fc6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x372a93=_0x1f4d02(_0x2b4fc6([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x57ff1d()):_0x2b4fc6([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2b4fc6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2b4fc6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2b4fc6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x350fb4(){const _0x431b85=[_0x2b4fc6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2b4fc6([0x74,0x72,0x69,0x61,0x6c])][_0x2b4fc6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f1042[_0x2b4fc6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x54cc27/0x3e8:0xe10*_0x1da95c;return _0x5f1042[_0x2b4fc6([0x65,0x78,0x70])]<_0x431b85;}function _0x43a916(){const _0x4b2257=_0x5f1042[_0x2b4fc6([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4b2257)return!0x1;if(_0x4b2257[_0x2b4fc6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b4fc6([0x2a])))return!0x0;if(_0x4b2257[_0x2b4fc6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b4fc6([0x54,0x43])))return!0x0;if(_0x4b2257[_0x2b4fc6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b4fc6([0x52,0x54,0x43]))){if(_0x1b76ef())return!0x0;if(_0x619c92()||_0x5d6df7())return!0x0;}return!0x1;}function _0x249bd7(){const _0x367d0b=_0x5f1042[_0x2b4fc6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x367d0b||0x0==_0x367d0b[_0x2b4fc6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x44713d}=new URL(window[_0x2b4fc6([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x367d0b[_0x2b4fc6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x44713d))return!0x0;const _0x1349ca=_0x44713d[_0x2b4fc6([0x73,0x70,0x6c,0x69,0x74])](_0x2b4fc6([0x2e]));return _0x367d0b[_0x2b4fc6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x34eb5a=>_0x34eb5a[_0x2b4fc6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b4fc6([0x2a])))[_0x2b4fc6([0x6d,0x61,0x70])](_0x169bb0=>_0x169bb0[_0x2b4fc6([0x73,0x70,0x6c,0x69,0x74])](_0x2b4fc6([0x2e])))[_0x2b4fc6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x35afa5=>_0x35afa5[_0x2b4fc6([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1349ca[_0x2b4fc6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2b4fc6([0x6d,0x61,0x70])](_0x370a14=>Array(_0x1349ca[_0x2b4fc6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x370a14[_0x2b4fc6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2b4fc6([0x66,0x69,0x6c,0x6c])](_0x370a14[0x0]===_0x2b4fc6([0x2a])?_0x2b4fc6([0x2a]):'')[_0x2b4fc6([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x370a14))[_0x2b4fc6([0x73,0x6f,0x6d,0x65])](_0x5a7f67=>_0x1349ca[_0x2b4fc6([0x65,0x76,0x65,0x72,0x79])]((_0x29fdb1,_0x149732)=>_0x5a7f67[_0x149732]===_0x29fdb1||_0x5a7f67[_0x149732]===_0x2b4fc6([0x2a])));}function _0x57ff1d(){return _0x372a93&&_0x5d67ff?new window[(_0x2b4fc6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2d98f6,_0x4bbef0)=>{_0x372a93[_0x2b4fc6([0x74,0x68,0x65,0x6e])](_0x2d98f6,_0x4bbef0),_0x5d67ff[_0x2b4fc6([0x74,0x68,0x65,0x6e])](_0x160b07=>{_0x160b07!=_0x2b4fc6([0x56,0x61,0x6c,0x69,0x64])&&_0x2d98f6(_0x160b07);},_0x4bbef0);}):_0x372a93||_0x5d67ff||_0x2b4fc6([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5506b8(_0x501536,_0x21ae70){return new window[(_0x2b4fc6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x15e553=>{if(_0x314596())return _0x15e553(_0x2b4fc6([0x56,0x61,0x6c,0x69,0x64]));_0x49cbed(),_0x2d577e[_0x2b4fc6([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2b4fc6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x140a9e=!0x1;const _0x4b6c96=_0x183e5d();function _0x3c1a7d(_0x565310){return!!_0x565310&&(typeof _0x565310===_0x2b4fc6([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x565310===_0x2b4fc6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x565310[_0x2b4fc6([0x74,0x68,0x65,0x6e])]===_0x2b4fc6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x565310[_0x2b4fc6([0x63,0x61,0x74,0x63,0x68])]===_0x2b4fc6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x50498e(_0x2ae409){_0x32af43(_0x2ae409)[_0x2b4fc6([0x74,0x68,0x65,0x6e])](_0x2e1371=>{if(!_0x2e1371||_0x2e1371[_0x2b4fc6([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2b4fc6([0x6f,0x6b]))return _0x2b4fc6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2f00a0(_0x4b4197(_0x4b6c96+_0x21ae70))!=_0x2e1371[_0x2b4fc6([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2b4fc6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2b4fc6([0x56,0x61,0x6c,0x69,0x64]);})[_0x2b4fc6([0x74,0x68,0x65,0x6e])](_0x5dc329=>(_0x4d6991(),_0x5dc329),()=>{const _0xd2ecc0=_0xd479c5();return null==_0xd2ecc0?(_0x4d6991(),_0x2b4fc6([0x56,0x61,0x6c,0x69,0x64])):_0x2b4fc6(_0x54cc27-_0xd2ecc0>(0x27d454df^_0x52dca1)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2b4fc6([0x74,0x68,0x65,0x6e])](_0x15e553)[_0x2b4fc6([0x63,0x61,0x74,0x63,0x68])](()=>{_0x15e553(_0x2b4fc6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2aa849=0x3ee3e5f^_0x52dca1;function _0x4d6991(){const _0x13c0dd=_0x2b4fc6([0x6c,0x6c,0x63,0x74,0x2d])+_0x2f00a0(_0x4b4197(_0x501536)),_0x3f8d1c=_0x5e847c(_0x2f00a0(window[_0x2b4fc6([0x4d,0x61,0x74,0x68])][_0x2b4fc6([0x63,0x65,0x69,0x6c])](_0x54cc27/_0x2aa849)));window[_0x2b4fc6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2b4fc6([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x13c0dd,_0x3f8d1c);}function _0xd479c5(){const _0x10b2a0=_0x2b4fc6([0x6c,0x6c,0x63,0x74,0x2d])+_0x2f00a0(_0x4b4197(_0x501536)),_0x2de8e3=window[_0x2b4fc6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2b4fc6([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x10b2a0);return _0x2de8e3?window[_0x2b4fc6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5e847c(_0x2de8e3),0x10)*_0x2aa849:null;}function _0x32af43(_0x27e121){return new window[(_0x2b4fc6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2dc4a2,_0x4f642d)=>{_0x27e121[_0x2b4fc6([0x74,0x68,0x65,0x6e])](_0x2dc4a2,_0x4f642d),window[_0x2b4fc6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4f642d,0x3d9041f^_0x52dca1);});}}_0x2d577e[_0x2b4fc6([0x6f,0x6e])](_0x2b4fc6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x598c05,_0xf32043)=>{if(_0xf32043[0x0]!=_0x501536)return _0x15e553(_0x2b4fc6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xf32043[0x1]={..._0xf32043[0x1],[_0x2b4fc6([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4b6c96};},{[_0x2b4fc6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2b4fc6([0x68,0x69,0x67,0x68])}),_0x2d577e[_0x2b4fc6([0x6f,0x6e])](_0x2b4fc6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1bf4b7=>{_0x3c1a7d(_0x1bf4b7[_0x2b4fc6([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x140a9e=!0x0,_0x50498e(_0x1bf4b7[_0x2b4fc6([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2b4fc6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2b4fc6([0x6c,0x6f,0x77])}),_0xb6b8a1[_0x2b4fc6([0x74,0x68,0x65,0x6e])](()=>{_0x140a9e||_0x15e553(_0x2b4fc6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x314596(){return _0x2d577e[_0x2b4fc6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2b4fc6([0x76,0x69,0x65,0x77])][_0x2b4fc6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2b4fc6([0x61,0x75,0x74,0x6f]);}function _0x49cbed(){_0x2d577e[_0x2b4fc6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2b4fc6([0x76,0x69,0x65,0x77])][_0x2b4fc6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2b4fc6([0x61,0x75,0x74,0x6f]);}}function _0x1f4d02(_0xe2a661){const _0x5a64a2=[new window[(_0x2b4fc6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x562316=>setTimeout(_0x562316,0x3d1ee13^_0x52dca1)),_0xb6b8a1[_0x2b4fc6([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2b4fc6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4c5e28=>{let _0x1ae538=0x0;_0x2d577e[_0x2b4fc6([0x6d,0x6f,0x64,0x65,0x6c])][_0x2b4fc6([0x6f,0x6e])](_0x2b4fc6([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x21418c,_0x859ea8)=>{_0x859ea8[0x0][_0x2b4fc6([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1ae538++,_0x1ae538==(0x3d8d537^_0x52dca1)&&(_0x4c5e28(),_0x21418c[_0x2b4fc6([0x6f,0x66,0x66])]());});}))];return window[_0x2b4fc6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2b4fc6([0x72,0x61,0x63,0x65])](_0x5a64a2)[_0x2b4fc6([0x74,0x68,0x65,0x6e])](()=>_0xe2a661);}async function _0x1ba089(){await _0xb6b8a1,_0x2d577e[_0x2b4fc6([0x6d,0x6f,0x64,0x65,0x6c])][_0x2b4fc6([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xbb9152,_0x2d577e[_0x2b4fc6([0x6d,0x6f,0x64,0x65,0x6c])][_0x2b4fc6([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xbb9152,_0x2d577e[_0x2b4fc6([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2b4fc6([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1b76ef(){return _0x3c33e4(_0x2b4fc6([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x461aa8(_0x2b4fc6([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x2b4fc6([0x73,0x74,0x61,0x74,0x65])]==_0x2b4fc6([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x619c92(){return _0x3c33e4(_0x2b4fc6([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 _0x5d6df7(){return _0x3c33e4(_0x2b4fc6([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1a9dfa(_0x43aec5){const _0x1587fd=_0x325cd8();_0x2d577e[_0x1587fd]=_0x2b4fc6([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x43aec5,_0x43aec5!=_0x2b4fc6([0x56,0x61,0x6c,0x69,0x64])&&_0x1ba089();}function _0x325cd8(){const _0x29160a=window[_0x2b4fc6([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2b4fc6([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2b4fc6([0x6e,0x6f,0x77])]())[_0x2b4fc6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2b4fc6([0x2e]),'');let _0x554a22=_0x2b4fc6([0x52]);for(let _0x31594c=0x0;_0x31594c<_0x29160a[_0x2b4fc6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x31594c+=0x2){let _0x4c8b6f=window[_0x2b4fc6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x29160a[_0x2b4fc6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x31594c,_0x31594c+0x2));_0x4c8b6f>=_0x632354[_0x2b4fc6([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4c8b6f-=_0x632354[_0x2b4fc6([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x554a22+=_0x632354[_0x4c8b6f];}return _0x554a22;}function _0x30ce11(){const _0x4939c6=_0x4b2af9[_0x2b4fc6([0x73,0x70,0x6c,0x69,0x74])](_0x2b4fc6([0x2e]));if(0x3!=_0x4939c6[_0x2b4fc6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1eae61(_0x4939c6[0x1]);function _0x1eae61(_0x9c5737){const _0x4f1d78=_0x4b6824(_0x9c5737);return _0x4f1d78&&_0x147bf1()?_0x4f1d78:null;function _0x147bf1(){const _0x533b92=_0x4f1d78[_0x2b4fc6([0x6a,0x74,0x69])],_0x1d3ed9=window[_0x2b4fc6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x533b92[_0x2b4fc6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x533b92[_0x2b4fc6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x16d41c={..._0x4f1d78,[_0x2b4fc6([0x6a,0x74,0x69])]:_0x533b92[_0x2b4fc6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x533b92[_0x2b4fc6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x16d41c[_0x2b4fc6([0x76,0x63])],_0x4b4197(_0x16d41c)==_0x1d3ed9;}}}async function _0x181e86(){let _0x38ffd1=!0x0;try{const _0x4c4cef=_0x4b2af9[_0x2b4fc6([0x73,0x70,0x6c,0x69,0x74])](_0x2b4fc6([0x2e])),[_0x573364,_0x593fbf,_0x2ca3f3]=_0x4c4cef;return _0x560562(_0x573364),await _0x2fcff7(_0x573364,_0x593fbf,_0x2ca3f3),_0x38ffd1;}catch{return!0x1;}function _0x560562(_0x5222b3){const _0x367555=_0x4b6824(_0x5222b3);_0x367555&&_0x367555[_0x2b4fc6([0x61,0x6c,0x67])]==_0x2b4fc6([0x45,0x53,0x32,0x35,0x36])||(_0x38ffd1=!0x1);}async function _0x2fcff7(_0x35d622,_0x309842,_0x39feb5){const _0x52211c=window[_0x2b4fc6([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2b4fc6([0x66,0x72,0x6f,0x6d])](_0xfea31b(_0x39feb5),_0x19ab0f=>_0x19ab0f[_0x2b4fc6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3aa282=new window[(_0x2b4fc6([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2b4fc6([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x35d622+_0x2b4fc6([0x2e])+_0x309842),_0x152fae=window[_0x2b4fc6([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2b4fc6([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x152fae)return;const _0x2b1602=await _0x152fae[_0x2b4fc6([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2b4fc6([0x6a,0x77,0x6b]),_0x21d0dc,{[_0x2b4fc6([0x6e,0x61,0x6d,0x65])]:_0x2b4fc6([0x45,0x43,0x44,0x53,0x41]),[_0x2b4fc6([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2b4fc6([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2b4fc6([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x152fae[_0x2b4fc6([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2b4fc6([0x6e,0x61,0x6d,0x65])]:_0x2b4fc6([0x45,0x43,0x44,0x53,0x41]),[_0x2b4fc6([0x68,0x61,0x73,0x68])]:{[_0x2b4fc6([0x6e,0x61,0x6d,0x65])]:_0x2b4fc6([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2b1602,_0x52211c,_0x3aa282)||(_0x38ffd1=!0x1);}}function _0x4b6824(_0x26ec9d){return _0x26ec9d[_0x2b4fc6([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2b4fc6([0x65,0x79]))?JSON[_0x2b4fc6([0x70,0x61,0x72,0x73,0x65])](_0xfea31b(_0x26ec9d)):null;}function _0xfea31b(_0x172021){return window[_0x2b4fc6([0x61,0x74,0x6f,0x62])](_0x172021[_0x2b4fc6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2b4fc6([0x2b]))[_0x2b4fc6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2b4fc6([0x2f])));}function _0x4b4197(_0x38e4e9){let _0x3129cc=0x1505;function _0x1d37ab(_0x3d80cb){for(let _0x215df7=0x0;_0x215df7<_0x3d80cb[_0x2b4fc6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x215df7++){const _0x51f21b=_0x3d80cb[_0x2b4fc6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x215df7);_0x3129cc=(_0x3129cc<<0x5)+_0x3129cc+_0x51f21b,_0x3129cc&=_0x3129cc;}}function _0x16069d(_0x2847b7){Array[_0x2b4fc6([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2847b7)?_0x2847b7[_0x2b4fc6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x16069d):_0x2847b7&&typeof _0x2847b7==_0x2b4fc6([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2b4fc6([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2847b7)[_0x2b4fc6([0x73,0x6f,0x72,0x74])]()[_0x2b4fc6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xabd797,_0x5b7b4b])=>{_0x1d37ab(_0xabd797),_0x16069d(_0x5b7b4b);}):_0x1d37ab(window[_0x2b4fc6([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2847b7));}return _0x16069d(_0x38e4e9),_0x3129cc>>>0x0;}function _0x2f00a0(_0x1a61d6){return _0x1a61d6[_0x2b4fc6([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2b4fc6([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2b4fc6([0x30]));}function _0x5e847c(_0x19f8ec){return _0x19f8ec[_0x2b4fc6([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2b4fc6([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2b4fc6([0x6a,0x6f,0x69,0x6e])]('');}function _0x3c33e4(_0xf3192f){return _0x2d577e[_0x2b4fc6([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2b4fc6([0x68,0x61,0x73])](_0xf3192f);}function _0x461aa8(_0x386131){return _0x2d577e[_0x2b4fc6([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2b4fc6([0x67,0x65,0x74])](_0x386131);}function _0xbb9152(){}function _0x2b4fc6(_0xc2e6ca){return _0xc2e6ca['map'](_0x8edbec=>String['fromCharCode'](_0x8edbec))['join']('');}_0x1a9dfa(await _0x166bc2());}(this);}set['adapter'](_0x1629f8){if(this['_adapter'])throw new _0x3bf974('track-changes-adapter-already-set',this);this['_adapter']=_0x1629f8;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2a1121=!0x1,toJSON:_0x1d6cff=!0x1}={}){const _0x4c8866=[];for(const _0x3a1cac of this['_suggestions']['values']())_0x2a1121&&!_0x3a1cac['isInContent']||_0x4c8866['push'](_0x3a1cac);return _0x1d6cff?_0x4c8866['map'](_0x197b0c=>_0x197b0c['toJSON']()):_0x4c8866;}['getSuggestion'](_0x2ebae2){const _0x237554=this['_suggestions']['get'](_0x2ebae2);if(!_0x237554)throw new _0x3bf974('track-changes-suggestion-not-found',this);return _0x237554;}['hasSuggestion'](_0x55badc){return this['_suggestions']['has'](_0x55badc);}['addSuggestionData'](_0x415b6f){const {authorId:_0x2851d4,id:_0x586dbc,originalSuggestionId:_0x373bc2,attributes:_0x44611f}=_0x415b6f,[_0x1b88a6,_0x5e92da]=_0x415b6f['type']['split'](':'),_0x351fc3=this['_suggestions']['get'](_0x586dbc)||this['_createSuggestion'](_0x1b88a6,_0x5e92da,_0x586dbc,_0x2851d4,_0x44611f,_0x373bc2);if(this['_addThreadToSuggestion'](_0x351fc3),this['_checkSuggestionCorrectness'](_0x351fc3,_0x1b88a6,_0x5e92da||null,_0x2851d4),_0x351fc3['createdAt']=_0x415b6f['createdAt'],_0x351fc3['_isDataLoaded']=!0x0,_0x44611f&&_0x44611f['@external']){const _0x1f2ab1=_0x44611f['@external'],_0x5f1d27=this['_getExternalAuthor'](_0x1f2ab1['authorName']);_0x351fc3['authoredAt']=_0x1f2ab1['createdAt'],_0x351fc3['author']=_0x5f1d27,_0x351fc3['isExternal']=!0x0;}else _0x351fc3['authoredAt']=_0x415b6f['createdAt'];switch(_0x415b6f['data']&&(_0x351fc3['data']=_0x415b6f['data']),_0x415b6f['attributes']&&(_0x351fc3['attributes']=_0x415b6f['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x351fc3['_saved']=!0x0),this['_suggestionState']['get'](_0x351fc3)){case'notReady':this['_suggestionState']['set'](_0x351fc3,'dataReady');break;case'markerReady':_0x351fc3['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x351fc3])),this['_refreshSuggestionsChain'](new Set([_0x351fc3])),this['_suggestionState']['set'](_0x351fc3,'ready'),this['fire']('suggestionLoaded',_0x351fc3)):this['_suggestionState']['set'](_0x351fc3,'removed');}return _0x351fc3;}['acceptSuggestion'](_0xc10d2){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3eceb1 of _0xc10d2['getAllAdjacentSuggestions']())_0x3eceb1['accept']();});});}['discardSuggestion'](_0x3fd5a1){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x43bba5 of _0x3fd5a1['getAllAdjacentSuggestions']())_0x43bba5['discard']();});});}['enableCommand'](_0x2703c1,_0x49b597){const _0xd6cfa6=this['editor']['commands']['get'](_0x2703c1);if(!_0xd6cfa6)throw new _0x3bf974('track-changes-command-not-found',this,{'commandName':_0x2703c1});if(this['_enabledCommands']['has'](_0xd6cfa6))throw new _0x3bf974('track-changes-enable-command-twice',this,{'commandName':_0x2703c1});this['_enabledCommands']['add'](_0xd6cfa6),_0x49b597&&_0xd6cfa6['on']('execute',(_0x154892,_0xfbcc2f)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0xfbcc2f['length']>0x0&&_0xfbcc2f[_0xfbcc2f['length']-0x1]&&_0xfbcc2f[_0xfbcc2f['length']-0x1]['forceDefaultExecution']?_0xfbcc2f['pop']():(_0x154892['return']=_0x49b597((..._0x105213)=>_0xd6cfa6['execute'](..._0x105213,{'forceDefaultExecution':!0x0}),..._0xfbcc2f),_0x154892['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x535de3){let _0x414ca7,_0x633827;const _0x4ab2c6=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x414ca7=_0x535de3();}catch(_0x4436ba){_0x633827=_0x4436ba;}return _0x4ab2c6||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x633827&&_0x3bf974['rethrowUnexpectedError'](_0x633827,this),_0x414ca7;}['markInsertion'](_0x1a1d00,_0x5e8d80=null,_0x512105={}){if(_0x1a1d00['isCollapsed'])return null;const _0x1dac6b=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x512105['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x175fcc,meta:_0x228c03}of this['_findSuggestions'](_0x1a1d00,'insertion'))if(_0x228c03['isOwn']){if(!_0x228c03['isNextTo']){if(_0x228c03['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!en(_0x175fcc,_0x512105))continue;return _0x175fcc;}if(en(_0x175fcc,_0x512105))return _0x175fcc;this['_breakSuggestionMarker'](_0x175fcc,_0x1a1d00['start'],_0x1a1d00['end']);break;}if(_0x5e8d80==_0x175fcc['subType']&&en(_0x175fcc,_0x512105)){const _0x430073=_0x175fcc['getFirstRange']();return _0x430073['start']['isEqual'](_0x1a1d00['end'])?this['_setSuggestionRange'](_0x175fcc,this['_model']['createRange'](_0x1a1d00['start'],_0x430073['end'])):this['_setSuggestionRange'](_0x175fcc,this['_model']['createRange'](_0x430073['start'],_0x1a1d00['end'])),_0x175fcc;}}const _0x4f86b7=_0x183e5d(),_0x2b7fd1=_0x1dac6b['id'],_0x3d733b=_0x5e8d80?'insertion:'+_0x5e8d80:'insertion',_0x28c6d8=this['_setSuggestionData']({'id':_0x4f86b7,'type':_0x3d733b,'createdAt':new Date(),'authorId':_0x2b7fd1,'attributes':_0x512105});return this['_addSuggestionMarker'](_0x3d733b,_0x4f86b7,_0x2b7fd1,_0x1a1d00),_0x28c6d8;}['markMultiRangeInsertion'](_0x5bd20a,_0x2f8a9d='multi',_0x130670={}){const _0x28e023=this['editor']['plugins']['get']('Users')['me'],_0xdc6df3=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2f8a9d,'join');this['_trackingSessionId']&&(_0x130670['trackingSessionId']=this['_trackingSessionId']);for(const _0x28dd06 of this['getSuggestions']())if(_0x28dd06['author']['id']==_0x28e023['id']&&'insertion'==_0x28dd06['type']&&_0x28dd06['subType']==_0x2f8a9d&&en(_0x28dd06,_0x130670)&&(_0xdc6df3(_0x28dd06['getRanges'](),_0x5bd20a)||_0xdc6df3(_0x5bd20a,_0x28dd06['getRanges']()))){for(const _0x4f8e07 of _0x5bd20a)_0x28dd06['addRange'](_0x4f8e07);return _0x28dd06;}for(const {suggestion:_0x3312b1,meta:_0x3b9923}of this['_findSuggestions'](_0x5bd20a,'insertion')){if(!_0x3b9923['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x3b9923['containsRangeInObject'])continue;if(!en(_0x3312b1,_0x130670))continue;let _0x205101=!0x0;for(const _0x39ea8e of _0x3312b1['getRanges']())for(const _0x3bcaf4 of _0x5bd20a)if(!_0x39ea8e['containsRange'](_0x3bcaf4)){_0x205101=!0x1;break;}if(_0x205101)return _0x3312b1;}const _0x203fc0=_0x183e5d(),_0x218330=_0x28e023['id'],_0x22762b='insertion:'+_0x2f8a9d,_0x1defa8=this['_setSuggestionData']({'id':_0x203fc0,'type':_0x22762b,'createdAt':new Date(),'authorId':_0x218330,'attributes':_0x130670});for(const _0x216007 of _0x5bd20a)this['_addSuggestionMarker'](_0x22762b,_0x203fc0,_0x218330,_0x216007,T['getMultiRangeId']());return _0x1defa8;}['markInlineFormat'](_0x457f01,_0x452819,_0x5afa69=null,_0x5245ff={}){if(_0x5afa69=_0x5afa69||Wt(_0x452819),_0x457f01['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x5245ff['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1ebae8=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5afa69,'accept');return this['forceDefaultExecution'](()=>_0x1ebae8([_0x457f01],_0x452819,_0x5245ff)),null;}const _0x46c1a3=this['editor']['plugins']['get']('Users')['me'],_0x4a6098=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x469848,meta:_0x278ce4}of this['_findSuggestions'](_0x457f01,'insertion'))_0x278ce4['isOwn']&&!_0x278ce4['isInsideObject']&&_0x4a6098['push'](..._0x469848['getRanges']());}const _0x18b2d8=function(_0x5e390a,_0x71b392){const _0x38766c=[];for(const _0x28568e of _0x71b392){const _0x1c1995=_0x5e390a['getIntersection'](_0x28568e);_0x1c1995&&_0x38766c['push'](_0x1c1995);}return _0x38766c;}(_0x457f01,_0x4a6098),_0x3fbda0=function(_0x1c1a14,_0x331583){const _0xd84164=[_0x1c1a14];for(const _0x47c1e1 of _0x331583){let _0xc9e75a=0x0;for(;_0xc9e75a<_0xd84164['length'];){const _0x19fcba=_0xd84164[_0xc9e75a]['getDifference'](_0x47c1e1);_0xd84164['splice'](_0xc9e75a,0x1,..._0x19fcba),_0xc9e75a+=_0x19fcba['length'];}}return _0xd84164;}(_0x457f01,_0x4a6098);_0x18b2d8['length']&&this['_model']['change'](()=>{for(const _0x3c9cb1 of _0x18b2d8){const _0x590cd4=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5afa69,'accept');this['forceDefaultExecution'](()=>_0x590cd4([_0x3c9cb1],_0x452819,_0x5245ff));}});for(const _0x3c7637 of _0x3fbda0){let _0x4efcaf=null,_0xcd843e=_0x3c7637['start'],_0x55f90f=_0x3c7637['end'];for(const {suggestion:_0x35d600,meta:_0x2bcd06}of this['_findSuggestions'](_0x3c7637,'formatInline')){if(!_0x2bcd06['isOwn'])continue;if(_0x35d600['subType']!=_0x5afa69)continue;if(!en(_0x35d600,_0x5245ff))continue;const _0x198c3d=_0x35d600['getFirstRange']();if(_0x198c3d['containsRange'](_0x3c7637,!0x0))return null;_0xcd843e=_0xcd843e['isBefore'](_0x198c3d['start'])?_0xcd843e:_0x198c3d['start'],_0x55f90f=_0x55f90f['isAfter'](_0x198c3d['end'])?_0x55f90f:_0x198c3d['end'],_0x4efcaf?_0x198c3d['start']['isBefore'](_0x4efcaf['getFirstRange']()['start'])?(_0x4efcaf['removeMarkers'](),_0x4efcaf=_0x35d600):_0x35d600['removeMarkers']():_0x4efcaf=_0x35d600;}const _0x1b9855=this['_model']['createRange'](_0xcd843e,_0x55f90f);if(_0x4efcaf)this['_setSuggestionRange'](_0x4efcaf,_0x1b9855);else{const _0x4eead6=_0x183e5d(),_0x1b73c9=_0x46c1a3['id'];this['_setSuggestionData']({'id':_0x4eead6,'type':'formatInline:'+_0x5afa69,'data':_0x452819,'createdAt':new Date(),'authorId':_0x1b73c9,'attributes':_0x5245ff}),this['_addSuggestionMarker']('formatInline:'+_0x5afa69,_0x4eead6,_0x1b73c9,_0x1b9855);}}return null;}['markBlockFormat'](_0x278162,_0x4f48ba,_0x378a1e=[],_0x1ef01a=null,_0x240df2={}){_0x4f48ba['formatGroupId']||(_0x4f48ba['formatGroupId']=_0x4f48ba['commandName']),_0x4f48ba['multipleBlocks']=_0x278162['is']('range'),_0x1ef01a=_0x1ef01a||Wt(_0x4f48ba);const _0x38e2ab=_0x378a1e['map'](_0x389db2=>Zt(_0x389db2,this['_model'])),_0xc8decb=_0x278162['is']('range')?_0x278162:Zt(_0x278162,this['_model']);if(this['_trackingSessionId']&&(_0x240df2['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5df03a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1ef01a,'accept');return this['forceDefaultExecution'](()=>_0x5df03a([_0xc8decb],_0x4f48ba,_0x240df2)),null;}_0x38e2ab['push'](_0xc8decb);let _0x2c2d59=!0x0;for(const _0x3672d6 of _0x38e2ab)if(!this['_rangeIsInLocalUserInsertion'](_0x3672d6)){_0x2c2d59=!0x1;break;}if(_0x2c2d59&&'always'!==this['_trackFormatChanges']){const _0x58590d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1ef01a,'accept');return this['forceDefaultExecution'](()=>_0x58590d([_0xc8decb],_0x4f48ba,_0x240df2)),null;}let _0xd79806=null,_0xf86a42=_0xc8decb['start'],_0x271e61=_0xc8decb['end'];for(const {suggestion:_0x2641cc,meta:_0x28f52a}of this['_findSuggestions'](_0xc8decb,'formatBlock')){if(!_0x28f52a['isOwn'])continue;if(_0x28f52a['isNextTo']||_0x28f52a['containsRangeInObject']||_0x28f52a['isInsideObject'])continue;if(_0x2641cc['data']['formatGroupId']!=_0x4f48ba['formatGroupId'])continue;if(!en(_0x2641cc,_0x240df2))continue;const _0x2c6cc1=_0x2641cc['getFirstRange']();if(_0x2641cc['subType']==_0x1ef01a){if(_0x2c6cc1['containsRange'](_0xc8decb,!0x0))return null;_0xf86a42=_0xf86a42['isBefore'](_0x2c6cc1['start'])?_0xf86a42:_0x2c6cc1['start'],_0x271e61=_0x271e61['isAfter'](_0x2c6cc1['end'])?_0x271e61:_0x2c6cc1['end'],_0xd79806?_0x2c6cc1['start']['isBefore'](_0xd79806['getFirstRange']()['start'])?(_0xd79806['removeMarkers'](),_0xd79806=_0x2641cc):_0x2641cc['removeMarkers']():_0xd79806=_0x2641cc;}else{const _0x1089ec=_0xc8decb['getIntersection'](_0x2c6cc1);this['_cutOutSuggestionMarker'](_0x2641cc,_0x1089ec);}}const _0xe0c9e=this['editor']['plugins']['get']('Users')['me'],_0x269e79=_0x183e5d(),_0x532d08=_0xe0c9e['id'];if(_0xd79806)return this['_setSuggestionRange'](_0xd79806,this['_model']['createRange'](_0xf86a42,_0x271e61)),_0xd79806;{const _0x34e313=this['_setSuggestionData']({'id':_0x269e79,'type':'formatBlock:'+_0x1ef01a,'data':_0x4f48ba,'createdAt':new Date(),'authorId':_0x532d08,'attributes':_0x240df2});return this['_addSuggestionMarker']('formatBlock:'+_0x1ef01a,_0x269e79,_0x532d08,this['_model']['createRange'](_0xf86a42,_0x271e61)),_0x34e313;}}['markMultiRangeBlockFormat'](_0x17de03,_0x4334fd,_0x549cea=[],_0x115698=null,_0x3a9bb2={}){_0x4334fd['formatGroupId']||(_0x4334fd['formatGroupId']=_0x4334fd['commandName']);const _0x1ce987=_0x17de03[0x0];_0x4334fd['multipleBlocks']=_0x1ce987['is']('range'),_0x115698=_0x115698||Wt(_0x4334fd);const _0x4134a4=_0x549cea['map'](_0x11900f=>Zt(_0x11900f,this['_model'])),_0xfd3125=_0x1ce987['is']('range')?_0x17de03:_0x17de03['map'](_0x157306=>Zt(_0x157306,this['_model']));if(this['_trackingSessionId']&&(_0x3a9bb2['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x27b3c9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x115698,'accept');return this['forceDefaultExecution'](()=>_0x27b3c9(_0xfd3125,_0x4334fd,_0x3a9bb2)),null;}_0x4134a4['push'](..._0xfd3125);let _0x2b7d2f=!0x0;for(const _0x52bf21 of _0x4134a4)if(!this['_rangeIsInLocalUserInsertion'](_0x52bf21)){_0x2b7d2f=!0x1;break;}if(_0x2b7d2f&&'always'!==this['_trackFormatChanges']){const _0x3cc3ac=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x115698,'accept');return this['forceDefaultExecution'](()=>_0x3cc3ac(_0xfd3125,_0x4334fd,_0x3a9bb2)),null;}const _0xc0f528=this['editor']['plugins']['get']('Users')['me'];for(const _0x5ce0b6 of this['getSuggestions']()){const _0x4dab57=_0x5ce0b6['data'];if(_0x5ce0b6['author']['id']!=_0xc0f528['id'])continue;if('formatBlock'!=_0x5ce0b6['type']||_0x4dab57['formatGroupId']!=_0x4334fd['formatGroupId'])continue;if(!en(_0x5ce0b6,_0x3a9bb2))continue;const _0x60fe43=_0x5ce0b6['subType']==_0x115698;for(let _0x44c4a5=0x0;_0x44c4a5<_0xfd3125['length'];_0x44c4a5++){const _0x5ac31b=_0xfd3125[_0x44c4a5];for(const _0x2c9751 of _0x5ce0b6['getMarkers']()){const _0x3094c3=_0x2c9751['getRange']();if(_0x5ac31b['isEqual'](_0x3094c3)){_0x60fe43?(_0xfd3125['splice'](_0x44c4a5,0x1),_0x44c4a5--):_0x5ce0b6['removeMarker'](_0x2c9751['name']);break;}}}}if(0x0==_0xfd3125['length'])return null;const _0x3c4246=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x115698,'join');for(const _0x2a57cd of this['getSuggestions']()){const _0x3dd954=_0x2a57cd['data'];if(_0x2a57cd['author']['id']==_0xc0f528['id']&&('formatBlock'==_0x2a57cd['type']&&_0x3dd954['formatGroupId']==_0x4334fd['formatGroupId']&&_0x2a57cd['subType']==_0x115698&&en(_0x2a57cd,_0x3a9bb2)&&(_0x3c4246(_0x2a57cd['getRanges'](),_0xfd3125)||_0x3c4246(_0xfd3125,_0x2a57cd['getRanges']())))){for(const _0x17c5ef of _0xfd3125)_0x2a57cd['addRange'](_0x17c5ef);return _0x2a57cd;}}const _0x2e6947=_0x183e5d(),_0x579790=_0xc0f528['id'],_0x467953='formatBlock:'+_0x115698,_0x2a37ee=this['_setSuggestionData']({'id':_0x2e6947,'type':_0x467953,'data':_0x4334fd,'createdAt':new Date(),'authorId':_0x579790,'attributes':_0x3a9bb2});for(const _0x49d707 of _0xfd3125)this['_addSuggestionMarker'](_0x467953,_0x2e6947,_0x579790,_0x49d707,T['getMultiRangeId']());return _0x2a37ee;}['markDeletion'](_0xe143d1,_0x54025f=null,_0x32af9a={}){if(_0xe143d1['isCollapsed'])return null;const _0x455b0e=this['editor']['plugins']['get']('Users')['me'],_0x45c9a6=new _0x374b49(_0xe143d1['start'],_0xe143d1['end']);this['_trackingSessionId']&&(_0x32af9a['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x489a06,meta:_0x39298a}of this['_findSuggestions'](_0x45c9a6,'insertion'))if(_0x39298a['isOwn']&&!_0x39298a['isNextTo']){if(_0x489a06['isMultiRange']){const _0x527a36=_0x489a06['getRanges']()['filter'](_0x3771ce=>'$graveyard'!=_0x3771ce['root']['rootName']);_0x527a36['every'](_0x1aee92=>_0x45c9a6['containsRange'](_0x1aee92,!0x0))&&_0x489a06['discard']();if(_0x527a36['some'](_0x16006c=>_0x16006c['containsRange'](_0x45c9a6,!0x0))){const _0xb7fe3c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x54025f,'accept');return this['forceDefaultExecution'](()=>_0xb7fe3c([_0x45c9a6],null,_0x32af9a)),null;}}else{const _0x280120=_0x45c9a6['getIntersection'](_0x489a06['getFirstRange']());null!==_0x280120&&_0x489a06['_onDiscard']([_0x280120],null,_0x32af9a);}}if(_0x45c9a6['detach'](),_0x45c9a6['isCollapsed']||'$graveyard'==_0x45c9a6['root']['rootName'])return null;let _0x1bd5b4=null,_0x44c293=_0x45c9a6['start'],_0x4bb0db=_0x45c9a6['end'];const _0x266add=this['_findSuggestions'](_0x45c9a6,'deletion');for(const {suggestion:_0x35b1a3,meta:_0x17b735}of _0x266add){const _0x4d3d0b=this['_model']['createRange'](_0x44c293,_0x4bb0db);if(_0x17b735['isOwn']&&(this['_mergeNestedSuggestions']||!_0x17b735['containsRangeInObject']&&!_0x17b735['isInsideObject'])){if(_0x35b1a3['isMultiRange']){if(!en(_0x35b1a3,_0x32af9a))continue;let _0x208050=!0x0;for(const _0x538515 of _0x35b1a3['getRanges']()){if(_0x538515['containsRange'](_0x4d3d0b,!0x0))return _0x35b1a3;_0x4d3d0b['containsRange'](_0x538515)||(_0x208050=!0x1);}_0x208050&&_0x35b1a3['discard']();}else{const _0x17f937=_0x35b1a3['getFirstRange']();if(_0x17f937['containsRange'](_0x4d3d0b,!0x0))return _0x35b1a3;if(!en(_0x35b1a3,_0x32af9a)){_0x4d3d0b['containsRange'](_0x17f937)?_0x35b1a3['removeMarkers']():_0x17f937['containsPosition'](_0x44c293)?_0x44c293=_0x17f937['end']:_0x17f937['containsPosition'](_0x4bb0db)&&(_0x4bb0db=_0x17f937['start']);continue;}_0x44c293=_0x44c293['isBefore'](_0x17f937['start'])?_0x44c293:_0x17f937['start'],_0x4bb0db=_0x4bb0db['isAfter'](_0x17f937['end'])?_0x4bb0db:_0x17f937['end'],_0x32af9a=Object['assign']({},_0x35b1a3['attributes']),_0x1bd5b4?_0x17f937['start']['isBefore'](_0x1bd5b4['getFirstRange']()['start'])?(_0x1bd5b4['removeMarkers'](),_0x1bd5b4=_0x35b1a3):_0x35b1a3['removeMarkers']():_0x1bd5b4=_0x35b1a3;}}}if(_0x1bd5b4)return this['_setSuggestionRange'](_0x1bd5b4,this['_model']['createRange'](_0x44c293,_0x4bb0db)),_0x1bd5b4;{const _0x378997=_0x183e5d(),_0x520d38=this['_model']['createRange'](_0x44c293,_0x4bb0db),_0x5e4156=_0x455b0e['id'],_0x168e2d=_0x54025f?'deletion:'+_0x54025f:'deletion',_0x455d36=this['_setSuggestionData']({'id':_0x378997,'type':_0x168e2d,'createdAt':new Date(),'authorId':_0x5e4156,'attributes':_0x32af9a});return this['_addSuggestionMarker'](_0x168e2d,_0x378997,_0x5e4156,_0x520d38),_0x455d36;}}['markMultiRangeDeletion'](_0x101cb1,_0x583311='multi',_0x3ec9ee={}){const _0x218fd1=this['editor']['plugins']['get']('Users')['me'],_0x2c53e0=_0x101cb1['map'](_0x10d163=>new _0x374b49(_0x10d163['start'],_0x10d163['end'])),_0x23df46=new Set();this['_trackingSessionId']&&(_0x3ec9ee['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1afa63,meta:_0x3c16a2}of this['_findSuggestions'](_0x2c53e0,'insertion'))_0x3c16a2['isOwn']&&!_0x3c16a2['isNextTo']&&_0x23df46['add'](_0x1afa63);for(const _0x18d678 of _0x23df46)if(_0x18d678['isMultiRange']){const _0x41fa46=_0x18d678['getRanges']();(!_0x18d678['attributes']||!_0x18d678['attributes']['skipNestingCheck'])&&(_0x41fa46['every'](_0x2b79b1=>_0x2c53e0['some'](_0x4afbd4=>_0x4afbd4['containsRange'](_0x2b79b1,!0x0)))&&_0x18d678['discard']());if(_0x2c53e0['every'](_0x3c1c09=>_0x41fa46['some'](_0x36201d=>_0x36201d['containsRange'](_0x3c1c09,!0x0)))){const _0x5acbe1=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x583311,'accept');return this['forceDefaultExecution'](()=>_0x5acbe1(_0x101cb1,null,_0x3ec9ee)),null;}}else{const _0x36d146=_0x18d678['getFirstRange']();_0x2c53e0['some'](_0x4e092c=>_0x4e092c['containsRange'](_0x36d146,!0x0))&&_0x18d678['discard']();if(_0x2c53e0['every'](_0x2f1ca0=>_0x36d146['containsRange'](_0x2f1ca0,!0x0))){const _0x50eef8=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x583311,'accept');return this['forceDefaultExecution'](()=>_0x50eef8(_0x2c53e0,null,_0x3ec9ee)),null;}}const _0x23c5da=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x583311,'join');let _0x408689=null;for(const _0x1696fd of this['getSuggestions']())if(_0x1696fd['author']['id']==_0x218fd1['id']&&_0x1696fd['isInContent']&&'deletion'==_0x1696fd['type']&&_0x1696fd['subType']==_0x583311&&en(_0x1696fd,_0x3ec9ee)&&(_0x23c5da(_0x1696fd['getRanges'](),_0x2c53e0)||_0x23c5da(_0x2c53e0,_0x1696fd['getRanges']()))){if(_0x408689){if(_0x1696fd['commentThread']&&_0x1696fd['commentThread']['length'])continue;for(const _0x596732 of _0x1696fd['getRanges']())_0x408689['isIntersectingWithRange'](_0x596732)||_0x408689['addRange'](_0x596732);_0x1696fd['removeMarkers']();}else{_0x408689=_0x1696fd;for(const _0x140ec9 of _0x2c53e0)_0x1696fd['isIntersectingWithRange'](_0x140ec9)||_0x1696fd['addRange'](_0x140ec9);}}if(_0x408689)return _0x408689;_0x23df46['clear']();for(const {suggestion:_0x596df1,meta:_0x4b4cc7}of this['_findSuggestions'](_0x2c53e0,'deletion'))_0x4b4cc7['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4b4cc7['containsRangeInObject']&&!_0x4b4cc7['isInsideObject'])&&en(_0x596df1,_0x3ec9ee)&&_0x23df46['add'](_0x596df1);for(const _0x4f35a2 of _0x23df46){const _0x2f6662=_0x4f35a2['getRanges']();if(!_0x3ec9ee||!_0x3ec9ee['skipNestingCheck']){if(_0x2c53e0['every'](_0x1a7b5f=>_0x2f6662['some'](_0x1725fd=>_0x1725fd['containsRange'](_0x1a7b5f,!0x0))))return _0x4f35a2;}(!_0x4f35a2['attributes']||!_0x4f35a2['attributes']['skipNestingCheck'])&&(_0x2f6662['every'](_0x53d584=>_0x2c53e0['some'](_0x49e3ed=>_0x49e3ed['containsRange'](_0x53d584,!0x0)))&&_0x4f35a2['discard']());}const _0x431dca=_0x183e5d(),_0x34390a=_0x218fd1['id'],_0x13eceb='deletion:'+_0x583311,_0x3887be=this['_setSuggestionData']({'id':_0x431dca,'type':_0x13eceb,'createdAt':new Date(),'authorId':_0x34390a,'attributes':_0x3ec9ee});for(const _0xd1d4de of _0x2c53e0)_0xd1d4de['detach'](),_0xd1d4de['isCollapsed']||'$graveyard'==_0xd1d4de['root']['rootName']||this['_addSuggestionMarker'](_0x13eceb,_0x431dca,_0x34390a,_0xd1d4de,T['getMultiRangeId']());return _0x3887be;}['markAttributeChange'](_0x4f35fd,_0x3cb41e,_0x3ea7dd,_0x2345d0,_0x1e5def){if(_0x4f35fd['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x49c33f=this['editor']['plugins']['get']('Users')['me']['id'],_0x2c29b4=Array['from'](this['_suggestions']['values']())['filter'](_0x2cb124=>'attribute'==_0x2cb124['type']&&_0x2cb124['data']['key']==_0x3cb41e&&_0x2cb124['isIntersectingWithRange'](_0x4f35fd));if(this['_trackingSessionId']&&(_0x1e5def['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x39ee40=this['_findSuggestions'](_0x4f35fd,'insertion')['filter'](({meta:_0x328901})=>_0x328901['isOwn']&&!_0x328901['isInsideObject']&&!_0x328901['isNextTo'])['map'](({suggestion:_0x5a2803})=>_0x5a2803);_0x2c29b4['unshift'](..._0x39ee40);}const _0x238fe5=new Map([[_0x4f35fd,_0x3ea7dd]]);for(const _0x348191 of _0x2c29b4){const _0x4641dc='attribute'==_0x348191['type']?_0x348191['data']['oldValue']:void 0x0,_0x5599f2=_0x348191['getFirstRange'](),_0x212719=Array['from'](_0x238fe5['keys']())['find'](_0x32c8a4=>_0x32c8a4['isIntersecting'](_0x5599f2));if(!_0x212719)continue;const _0x5eee76=_0x212719['getDifference'](_0x5599f2);this['_isBlockAttribute'](_0x3cb41e)&&'insertion'==_0x348191['type']&&0x0!=_0x5eee76['length']||(_0x238fe5['delete'](_0x212719),_0x5eee76['forEach'](_0x5a395c=>{_0x238fe5['set'](_0x5a395c,_0x3ea7dd);}),'insertion'!=_0x348191['type']&&_0x4641dc!=_0x2345d0&&_0x238fe5['set'](_0x212719['getIntersection'](_0x5599f2),_0x4641dc));}const _0x4ee578=[];for(const [_0x1a06de,_0xbff0c8]of _0x238fe5){const _0x4f8d34=_0x183e5d(),_0x630ede={'key':_0x3cb41e,'oldValue':_0xbff0c8,'newValue':_0x2345d0};_0x3cb41e['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':_0x3cb41e});const _0x2b739a=('attribute:'+(_0x3cb41e+'|'+Wt({'newValue':_0x2345d0})))['substring'](0x0,0x3c),_0x12bd45=this['_setSuggestionData']({'id':_0x4f8d34,'type':_0x2b739a,'data':_0x630ede,'createdAt':new Date(),'authorId':_0x49c33f,'attributes':_0x1e5def});_0x4ee578['push'](_0x12bd45),this['_addSuggestionMarker'](_0x2b739a,_0x4f8d34,_0x49c33f,_0x1a06de);}return _0x4ee578;}['enableDefaultAttributesIntegration'](_0x33ba71){this['enableCommand'](_0x33ba71,(_0x823302,..._0x4a5ce5)=>{this['recordAttributeChanges'](()=>{_0x823302(..._0x4a5ce5);});});}['registerBlockAttribute'](_0x2dded2){this['editor']['plugins']['get'](_0xaeb456)['registerBlockAttribute'](_0x2dded2);}['registerInlineAttribute'](_0x433c49){this['editor']['plugins']['get'](_0xaeb456)['registerInlineAttribute'](_0x433c49);}['startTrackingSession'](_0x338401){return this['_trackingSessionId']=void 0x0!==_0x338401?_0x338401:_0x183e5d(),this['_trackingSessionId'];}['_getAttributeKey'](_0x5d480f){return'attribute'==_0x5d480f['type']?_0x5d480f['subType']['split']('|')[0x0]:null;}['_applyOperationsAsSuggestions'](_0x42663a){if(0x0==_0x42663a['length'])return;const _0x2c6344=this['editor'],_0x4d45ff=_0x2c6344['plugins']['get'](_0x357673),_0x39688e=[];_0x2c6344['model']['change'](_0x5bb1ae=>{for(let _0x224d6f=0x0;_0x224d6f<_0x42663a['length'];_0x224d6f++){const _0x14e939=_0x42663a[_0x224d6f];if(_0x14e939['baseVersion']=_0x2c6344['model']['document']['version'],_0x14e939['isDocumentOperation']=!0x0,_0x4d45ff['isMarkedRemoveOperation'](_0x14e939)){const _0x53e8d3=_0x19b92a(_0x14e939['newRange'],_0x2c6344['model']);_0x39688e['unshift'](_0x374b49['fromRange'](_0x53e8d3));}else switch(_0x14e939['type']){case'rename':{const _0x2bc22e=_0x14e939['oldName'],_0x122290=_0x14e939['newName'];if(_0x2bc22e==_0x122290)break;_0x5bb1ae['batch']['addOperation'](_0x14e939),_0x2c6344['model']['applyOperation'](_0x14e939);const _0x4969ac='$elementName',_0x11abab=_0x14e939['position'],_0x401642=_0x2c6344['model']['createRange'](_0x11abab,_0x2c6344['model']['createPositionAt'](_0x11abab['nodeAfter'],'end'));this['markAttributeChange'](_0x401642,_0x4969ac,_0x2bc22e,_0x122290,{'groupId':_0x183e5d()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0xc00c24=_0x14e939['oldValue'],_0x4ba8b6=_0x14e939['newValue'];if(_0xc00c24==_0x4ba8b6)break;_0x5bb1ae['batch']['addOperation'](_0x14e939),_0x2c6344['model']['applyOperation'](_0x14e939);const _0x2236dc=_0x14e939['key'];if(!this['_isRegisteredAttribute'](_0x2236dc))break;const _0x373328=_0x19b92a(_0x14e939['range'],_0x2c6344['model']);this['markAttributeChange'](_0x373328,_0x2236dc,_0xc00c24,_0x4ba8b6,{'groupId':_0x183e5d()});break;}case'insert':{_0x5bb1ae['batch']['addOperation'](_0x14e939),_0x2c6344['model']['applyOperation'](_0x14e939);if(_0x42663a[_0x224d6f+0x1]&&'move'==_0x42663a[_0x224d6f+0x1]['type'])break;const _0xf813bb=_0x14e939['position'],_0x570a08=_0x14e939['howMany'],_0x2ca4e5=_0x19b92a(_0x2c6344['model']['createRange'](_0xf813bb,_0xf813bb['getShiftedBy'](_0x570a08)),_0x2c6344['model']);this['markInsertion'](_0x2ca4e5);break;}case'split':{_0x5bb1ae['batch']['addOperation'](_0x14e939),_0x2c6344['model']['applyOperation'](_0x14e939);const _0x33291a=_0x14e939['splitPosition'],_0x14be09=_0x14e939['moveTargetPosition'];this['markInsertion'](_0x2c6344['model']['createRange'](_0x33291a,_0x14be09));break;}case'move':case'remove':_0x5bb1ae['batch']['addOperation'](_0x14e939),_0x2c6344['model']['applyOperation'](_0x14e939);}}for(const _0x1ef25b of _0x39688e)_0x1ef25b['detach'](),this['markDeletion'](_0x1ef25b);});}['_setSuggestionRange'](_0xe2df41,_0x197324){const _0x3842af=_0xe2df41['getFirstMarker']();this['_model']['change'](_0x36805f=>{_0x36805f['updateMarker'](_0x3842af,{'range':_0x197324});});}['_addThreadToSuggestion'](_0xe69332){const _0x5c9774=_0xe69332['id'],_0xbd71d9=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x5c9774)||this['_commentsRepository']['addCommentThread']({'channelId':_0xbd71d9,'threadId':_0x5c9774,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1b6b34=this['_commentsRepository']['getCommentThread'](_0x5c9774);_0x1b6b34['unbind']('isRemovable'),_0x1b6b34['isRemovable']=!0x1,_0xe69332['commentThread']=_0x1b6b34;}['_checkSuggestionCorrectness'](_0x14a4b8,_0x1544e5,_0x49723f,_0x4fd9a5){if(_0x14a4b8['type']!=_0x1544e5||_0x14a4b8['subType']!=_0x49723f||_0x14a4b8['creator']['id']!=_0x4fd9a5)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x3bf974('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x405293,_0x4c7517){const _0x22a355=_0x405293['getFirstRange']();if(_0x4c7517['isEqual'](_0x22a355))_0x405293['removeMarkers']();else{if(_0x22a355['containsRange'](_0x4c7517)){const _0x33c63c=this['_model']['createPositionAt'](_0x4c7517['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x405293,this['_model']['createRange'](_0x22a355['start'],_0x33c63c));const _0x87d5b7=_0x183e5d(),_0x6cfc9=_0x405293['creator']['id'],_0x31b9ed=_0x405293['type']+':'+_0x405293['subType'];this['_setSuggestionData']({'id':_0x87d5b7,'type':_0x31b9ed,'createdAt':new Date(),'authorId':_0x6cfc9,'data':_0x405293['data'],'attributes':_0x405293['attributes']});const _0x450e6c=this['_model']['createPositionAt'](_0x4c7517['end']['parent'],'after'),_0x3839a7=this['_model']['createRange'](_0x450e6c,_0x22a355['end']);this['_addSuggestionMarker'](_0x31b9ed,_0x87d5b7,_0x6cfc9,_0x3839a7);}else{if(_0x22a355['containsPosition'](_0x4c7517['start'])){const _0x461c26=this['_model']['createPositionAt'](_0x4c7517['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x405293,this['_model']['createRange'](_0x22a355['start'],_0x461c26));}else{const _0x189673=this['_model']['createPositionAt'](_0x4c7517['end']['parent'],'after');this['_setSuggestionRange'](_0x405293,this['_model']['createRange'](_0x189673,_0x22a355['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x36db82){for(const {suggestion:_0x3b38fc,meta:_0x327b1a}of this['_findSuggestions'](_0x36db82,'insertion')){if(!_0x327b1a['isOwn'])continue;const _0x579c00=_0x3b38fc['getRanges']();for(const _0x239411 of _0x579c00)if(!_0x36db82['getDifference'](_0x239411)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x1c586b){return this['editor']['plugins']['get']('Users')['getUser'](_0x1c586b);}['_getExternalAuthor'](_0x745935){const _0x467081=this['editor']['plugins']['get']('Users'),_0x102902=_0x31026('external:'+_0x745935),_0x443460=_0x467081['getUser'](_0x102902);return _0x443460||_0x467081['addUser']({'id':_0x102902,'name':_0x745935});}['_createSuggestion'](_0x8e369e,_0x496ee1,_0x4db563,_0x152ad5,_0x58204b,_0x13792b){const _0x26ee8f=this['_getAuthorFromId'](_0x152ad5);if(!_0x26ee8f)throw new _0x3bf974('track-changes-user-not-found',this,{'authorId':_0x152ad5,'suggestionId':_0x4db563});const _0x196bcb=this['_suggestionFactory']['buildSuggestion'](_0x8e369e,_0x496ee1,_0x4db563,_0x26ee8f,_0x58204b,_0x420f87=>{this['_updateSuggestionData'](_0x4db563,{'attributes':_0x420f87});const _0x2fe3ae=this['getSuggestion'](_0x4db563);this['_joinWithAdjacentSuggestions'](new Set([_0x2fe3ae])),this['_refreshSuggestionsChain'](new Set([_0x2fe3ae]));},_0x13792b);return this['listenTo'](_0x196bcb,'accept',()=>{this['_updateSuggestionData'](_0x4db563,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x196bcb,'discard',()=>{this['_updateSuggestionData'](_0x4db563,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x4db563,_0x196bcb),this['_suggestionState']['set'](_0x196bcb,'notReady'),_0x196bcb;}['_splitMarkerName'](_0x1ecfc5){return _0x1b1411(_0x1ecfc5);}['_breakSuggestionMarker'](_0x4600e8,_0x53b30e,_0x4d94b1){const _0x22658e=_0x4600e8['getFirstRange'](),_0x2c8e70=_0x22658e['start'],_0x6d5ba5=_0x22658e['end'];this['_setSuggestionRange'](_0x4600e8,this['_model']['createRange'](_0x2c8e70,_0x53b30e));const _0x577ec9=_0x183e5d(),_0x419be1=_0x4600e8['creator']['id'],_0x53fb56=_0x4600e8['type']+(_0x4600e8['subType']?':'+_0x4600e8['subType']:'');this['_setSuggestionData']({'id':_0x577ec9,'type':_0x53fb56,'createdAt':new Date(),'authorId':_0x419be1,'originalSuggestionId':_0x4600e8['_originalSuggestionId']||_0x4600e8['id'],'attributes':_0x4600e8['attributes'],'data':_0x4600e8['data']});const _0x33cd2f=this['_getAttributeKey'](_0x4600e8);('formatBlock'==_0x4600e8['type']||_0x33cd2f&&this['_isBlockAttribute'](_0x33cd2f))&&(_0x4d94b1=this['_model']['createPositionBefore'](_0x4d94b1['parent'])),this['_addSuggestionMarker'](_0x53fb56,_0x577ec9,_0x419be1,this['_model']['createRange'](_0x4d94b1,_0x6d5ba5));}['_findSuggestions'](_0x1961dc,_0x17f590=null){const _0x53da16=[],_0x920f67=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x1961dc)||(_0x1961dc=[_0x1961dc]);for(const _0x5c6091 of this['getSuggestions']()){if(!_0x5c6091['isInContent'])continue;if(_0x17f590&&_0x5c6091['type']!=_0x17f590)continue;let _0x57d76e=!0x1;for(const _0x173a21 of _0x5c6091['getRanges']()){for(const _0x4d7cef of _0x1961dc){const _0x30c58f=_0x4d7cef['start']['isEqual'](_0x173a21['end'])||_0x4d7cef['end']['isEqual'](_0x173a21['start']);if(_0x30c58f||_0x4d7cef['getIntersection'](_0x173a21)){const _0x251e45=_0x4d7cef['containsRange'](_0x173a21)&&qt(this['_model']['schema'],_0x173a21['start'],_0x4d7cef),_0x547f52=_0x173a21['containsRange'](_0x4d7cef)&&qt(this['_model']['schema'],_0x4d7cef['start'],_0x173a21);_0x53da16['push']({'suggestion':_0x5c6091,'meta':{'isOwn':_0x920f67==_0x5c6091['author'],'isNextTo':_0x30c58f,'isInsideObject':_0x251e45,'containsRangeInObject':_0x547f52}}),_0x57d76e=!0x0;break;}}if(_0x57d76e)break;}}return _0x53da16;}['_addSuggestionMarker'](_0x33527b,_0x1f1a51,_0x242770,_0x2d5028,_0x4a2d8d){this['_model']['change'](_0x349aa3=>{let _0x33ef93='suggestion:'+_0x33527b+':'+_0x1f1a51+':'+_0x242770;_0x4a2d8d&&(_0x33ef93=_0x33ef93+':'+_0x4a2d8d),_0x349aa3['addMarker'](_0x33ef93,{'range':_0x2d5028,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x343d6e){const _0x3417db=_0x343d6e['previous'],_0x41b2b3=_0x343d6e['next'];_0x343d6e['previous']=null,_0x343d6e['next']=null,null!=_0x3417db&&_0x3417db['next']==_0x343d6e&&(_0x3417db['next']=_0x41b2b3),null!=_0x41b2b3&&_0x41b2b3['previous']==_0x343d6e&&(_0x41b2b3['previous']=_0x3417db),'ready'==this['_suggestionState']['get'](_0x343d6e)&&(this['_suggestionState']['set'](_0x343d6e,'removed'),this['fire']('suggestionUnloaded',_0x343d6e,_0x3417db,_0x41b2b3));}['_setSuggestionData'](_0x899712){const _0xc85268=_0x899712['id'],_0x4c1e3f=this['addSuggestionData'](_0x899712);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x2e03a8=this['editor']['plugins']['get']('PendingActions'),_0x1a8a86=_0x4c1e3f['hasComments'],_0x36c44e=_0x4c1e3f['subType']?_0x4c1e3f['type']+':'+_0x4c1e3f['subType']:_0x4c1e3f['type'],_0x5588eb=this['editor']['locale'],_0x50c893=_0x2e03a8['add'](o(_0x5588eb,'PENDING_ACTION_SUGGESTION')),_0x31f980={'id':_0xc85268,'type':_0x36c44e,'hasComments':_0x1a8a86,'data':_0x899712['data']||null,'originalSuggestionId':_0x899712['originalSuggestionId']||null,'attributes':_0x4c1e3f['attributes']};this['_adapter']['addSuggestion'](_0x31f980)['then'](_0x1a8c8c=>{_0x4c1e3f['_saved']=!0x0,_0x2e03a8['remove'](_0x50c893),_0x1a8c8c&&_0x1a8c8c['createdAt']&&(this['_suggestions']['get'](_0xc85268)['createdAt']=_0x1a8c8c['createdAt']);})['catch'](_0x52dbfe=>{throw _0x574c7e('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x4c1e3f['discard']();}),_0x4c1e3f['stopListening'](),this['_suggestions']['delete'](_0x4c1e3f['id']),this['_suggestionState']['delete'](_0x4c1e3f),_0x52dbfe;});}return _0x4c1e3f;}['_isBlockAttribute'](_0x1006bb){return this['editor']['plugins']['get'](_0xaeb456)['isBlockAttribute'](_0x1006bb);}['_isInlineAttribute'](_0x701cd9){return this['editor']['plugins']['get'](_0xaeb456)['isInlineAttribute'](_0x701cd9);}['_updateSuggestionData'](_0xa8b250,_0x2ff93f){const _0x297fae=this['editor']['plugins']['get']('PendingActions'),_0x49d572=this['getSuggestion'](_0xa8b250);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x49d572['_saved']){const _0x31dbdd=_0x297fae['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0xa8b250,_0x2ff93f)['then'](()=>{_0x297fae['remove'](_0x31dbdd);});}else _0x49d572['on']('change:_saved',()=>{this['_updateSuggestionData'](_0xa8b250,_0x2ff93f);});}}['_getSuggestionData'](_0x25ece4){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x3bf974('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x25ece4);}['_handleNewSuggestionMarker'](_0xd7ffe0){const {id:_0x281b3f,type:_0x5cc2e7,subType:_0x33325b,authorId:_0x202a32}=this['_splitMarkerName'](_0xd7ffe0),_0x513442=this['_suggestions']['get'](_0x281b3f)||this['_createSuggestion'](_0x5cc2e7,_0x33325b,_0x281b3f,_0x202a32,{});switch(this['_checkSuggestionCorrectness'](_0x513442,_0x5cc2e7,_0x33325b,_0x202a32),this['_suggestionState']['get'](_0x513442)){case'notReady':this['_getSuggestionData'](_0x281b3f)['then'](_0x2362e2=>{let _0x52f820=Promise['resolve']();_0x2362e2['hasComments']&&(_0x52f820=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x281b3f})),_0x52f820['then'](()=>{this['addSuggestionData'](_0x2362e2)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x513442,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x281b3f,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x513442,'ready'),this['fire']('suggestionLoaded',_0x513442);break;case'ready':this['fire']('suggestionChanged',_0x513442);}return _0x513442['addMarkerName'](_0xd7ffe0),_0x513442;}['_refreshSuggestionsChain'](_0xcceaf){const _0x4b71ce=Array['from'](_0xcceaf),_0x2de519=_0x4b71ce['filter'](_0x5bb003=>'attribute'==_0x5bb003['type']);this['_refreshAttributeSuggestionsChain'](_0x2de519);const _0x2f71fd=_0x4b71ce['filter'](_0x1fbb19=>!_0x1fbb19['isMultiRange']&&'attribute'!=_0x1fbb19['type']),_0x54edaa=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x42c931=>!_0x42c931['isMultiRange']&&'attribute'!=_0x42c931['type']),_0x35de4e=_0x54edaa['filter'](_0x1b10a9=>!_0xcceaf['has'](_0x1b10a9)),_0x14bee6=new Map(_0x54edaa['map'](_0xcf9b3a=>[_0xcf9b3a,this['_suggestionFactory']['getSuggestionCallback'](_0xcf9b3a['type'],_0xcf9b3a['subType'],'chain')])),_0x45ee2d=new Map(_0x54edaa['map'](_0x2c4982=>[_0x2c4982,_0x2c4982['getFirstRange']()])),_0x5ed950=new Set(),_0x2d2baf=new Set();for(let _0xa59295=0x0;_0xa59295<_0x2f71fd['length'];_0xa59295++)_0x31c208(_0x2f71fd[_0xa59295],_0x2f71fd,_0xa59295+0x1);for(let _0x17b5f7=0x0;_0x17b5f7<_0x2f71fd['length'];_0x17b5f7++)_0x31c208(_0x2f71fd[_0x17b5f7],_0x35de4e,0x0);const _0x2cbc0b=new Set();for(let _0x2d05d2=0x0;_0x2d05d2<_0x2f71fd['length'];_0x2d05d2++){const _0x5ba49d=_0x2f71fd[_0x2d05d2];!_0x2d2baf['has'](_0x5ba49d)&&_0x5ba49d['previous']&&(_0x2cbc0b['add'](_0x5ba49d['previous']),_0x5ba49d['previous']['next']===_0x5ba49d&&(_0x5ba49d['previous']['next']=null),_0x5ba49d['previous']=null),!_0x5ed950['has'](_0x5ba49d)&&_0x5ba49d['next']&&(_0x2cbc0b['add'](_0x5ba49d['next']),_0x5ba49d['next']['previous']===_0x5ba49d&&(_0x5ba49d['next']['previous']=null),_0x5ba49d['next']=null);}function _0x31c208(_0x569f42,_0x13fc2b,_0x56bc84){for(let _0x3ffefd=_0x56bc84;_0x3ffefd<_0x13fc2b['length'];_0x3ffefd++){const _0x467dc9=_0x58f942(_0x569f42,_0x13fc2b[_0x3ffefd]);_0x467dc9&&(_0x467dc9[0x0]['next']=_0x467dc9[0x1],_0x467dc9[0x1]['previous']=_0x467dc9[0x0],_0x5ed950['add'](_0x467dc9[0x0]),_0x2d2baf['add'](_0x467dc9[0x1]));}}function _0x58f942(_0x186049,_0x7bfe15){if(_0x186049['author']['id']!==_0x7bfe15['author']['id'])return null;const _0xa77bb4=_0x14bee6['get'](_0x186049)(_0x186049,_0x7bfe15,_0x45ee2d['get'](_0x186049),_0x45ee2d['get'](_0x7bfe15));if(!_0xa77bb4)return null;return _0x14bee6['get'](_0x7bfe15)(_0x186049,_0x7bfe15,_0x45ee2d['get'](_0x186049),_0x45ee2d['get'](_0x7bfe15))?_0xa77bb4[0x1]['commentThread']&&_0xa77bb4[0x1]['commentThread']['length']?null:_0xa77bb4:null;}_0x2cbc0b['size']&&this['_refreshSuggestionsChain'](_0x2cbc0b);}['_refreshAttributeSuggestionsChain'](_0x1f321e){if(0x0==_0x1f321e['length'])return;const _0x460fee=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x442e0f=>'attribute'==_0x442e0f['type']&&_0x442e0f['_isDataLoaded']),_0x16b0f5=[],_0x2c1d6b=new Map();for(const _0x1fd360 of _0x460fee){const _0x236cc7=_0x31026(_0x1fd360['attributes']);_0x2c1d6b['has'](_0x236cc7)||(_0x2c1d6b['set'](_0x236cc7,_0x16b0f5['length']),_0x16b0f5['push']([]));const _0x18714b=_0x2c1d6b['get'](_0x236cc7);_0x16b0f5[_0x18714b]['push'](_0x1fd360);}!(function(){_0x16b0f5['sort']((_0x578e5c,_0x56629d)=>{const _0x3eced4=_0x578e5c[0x0]['createdAt'],_0x309e51=_0x56629d[0x0]['createdAt'];return _0x3eced4==_0x309e51?_0x578e5c[0x0]['attributes']['groupId']<_0x56629d[0x0]['attributes']['groupId']?-0x1:0x1:_0x3eced4<_0x309e51?-0x1:0x1;});for(const _0x203491 of _0x16b0f5)_0x203491['sort']((_0x51fbaf,_0x371333)=>_0x51fbaf['id']<_0x371333['id']?-0x1:0x1);}());for(let _0x5c943b=0x0;_0x5c943b<_0x16b0f5['length'];_0x5c943b++){if(0x0==_0x16b0f5[_0x5c943b]['length'])continue;const _0x5233e7=[];for(let _0xbc32fe=_0x5c943b+0x1;_0xbc32fe<_0x16b0f5['length'];_0xbc32fe++)0x0!=_0x16b0f5[_0xbc32fe]['length']&&_0x56cacd(_0x16b0f5[_0x5c943b],_0x16b0f5[_0xbc32fe])&&_0x5233e7['push'](_0xbc32fe);for(const _0x460afa of _0x5233e7)_0x16b0f5[_0x5c943b]=_0x16b0f5[_0x5c943b]['concat'](_0x16b0f5[_0x460afa]),_0x16b0f5[_0x460afa]=[];}for(const _0x94da3d of _0x16b0f5)for(let _0x3f8830=0x0;_0x3f8830<_0x94da3d['length'];_0x3f8830++){const _0xfe3856=_0x94da3d[_0x3f8830+0x1]||null;_0x94da3d[_0x3f8830]['next']!==_0xfe3856&&(_0x94da3d[_0x3f8830]['next']=_0xfe3856);}for(const _0x2a181a of _0x16b0f5)for(let _0x580b80=0x0;_0x580b80<_0x2a181a['length'];_0x580b80++){const _0x2dbda0=_0x2a181a[_0x580b80-0x1]||null;_0x2a181a[_0x580b80]['previous']!==_0x2dbda0&&(_0x2a181a[_0x580b80]['previous']=_0x2dbda0);}function _0x56cacd(_0x3f653,_0x28410a){if(_0x3f653[0x0]['attributes']['groupId']!==_0x28410a[0x0]['attributes']['groupId']&&_0x3f653[0x0]['author']!==_0x28410a[0x0]['author'])return!0x1;if(!function(_0x5ad9cc,_0x203efc){if(!_0x5ad9cc['hasComments']&&!_0x203efc['hasComments'])return!0x0;if(_0x5ad9cc['hasComments']&&_0x203efc['hasComments'])return!0x1;if(_0x5ad9cc['hasComments']&&_0x203efc['createdAt']<_0x5ad9cc['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x203efc['hasComments']&&_0x5ad9cc['createdAt']<_0x203efc['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x3f653[0x0],_0x28410a[0x0]))return!0x1;const _0x1641f2=Jt(_0x3f653[0x0]['attributes'],['groupId','trackingSessionId']),_0x584024=Jt(_0x28410a[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0xd73929(_0x1641f2,_0x584024))return!0x1;if(_0x3f653[0x0]['attributes']['groupId']==_0x28410a[0x0]['attributes']['groupId'])return!0x0;if(_0x3f653[0x0]['attributes']['trackingSessionId']!==_0x28410a[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x3f653['every'](_0x554648=>_0x28410a['some'](_0x5e935d=>_0x554648['getFirstRange']()['isEqual'](_0x5e935d['getFirstRange']())))&&_0x28410a['every'](_0x10bed9=>_0x3f653['some'](_0x55c68f=>_0x10bed9['getFirstRange']()['isEqual'](_0x55c68f['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x5aed88){const _0x3d6a98=Array['from'](_0x5aed88),_0x482f85=this['getSuggestions']({'skipNotAttached':!0x0}),_0x186395=_0x482f85['filter'](_0x2eda9f=>!_0x5aed88['has'](_0x2eda9f)),_0x503799=new Map(_0x3d6a98['map'](_0x490bef=>[_0x490bef,this['_suggestionFactory']['getSuggestionCallback'](_0x490bef['type'],_0x490bef['subType'],'join')])),_0x1a8172=new Map(_0x482f85['map'](_0x4412f0=>[_0x4412f0,_0x4412f0['getRanges']()]));for(let _0x2140c8=0x0;_0x2140c8<_0x3d6a98['length'];_0x2140c8++){if(_0x231576(this,_0x3d6a98[_0x2140c8],_0x3d6a98,_0x2140c8+0x1))return!0x0;}for(let _0x451d0a=0x0;_0x451d0a<_0x3d6a98['length'];_0x451d0a++){if(_0x231576(this,_0x3d6a98[_0x451d0a],_0x186395,0x0))return!0x0;}return!0x1;function _0x231576(_0x43ff30,_0x2d0f27,_0x226748,_0x30f5a6){for(let _0x3fc9a3=_0x30f5a6;_0x3fc9a3<_0x226748['length'];_0x3fc9a3++){const _0x1e59e2=_0x226748[_0x3fc9a3];if(_0x1e59e2['type']!==_0x2d0f27['type']||_0x1e59e2['author']['id']!==_0x2d0f27['author']['id']||_0x1e59e2['subType']!==_0x2d0f27['subType'])continue;if(!nn(_0x2d0f27,_0x1e59e2))continue;if('attribute'==_0x2d0f27['type']&&_0x2d0f27['data']['oldValue']!=_0x1e59e2['data']['oldValue'])continue;if('attribute'==_0x2d0f27['type']&&_0x43ff30['_isBlockAttribute'](_0x2d0f27['data']['key']))continue;if('formatBlock'==_0x2d0f27['type']){const _0x1b9f9a=_0x43ff30['editor']['model'],_0x359e3c=_0x2d0f27['getContainedElement']();if(_0x359e3c&&(_0x1b9f9a['schema']['isObject'](_0x359e3c)||_0x1b9f9a['schema']['isLimit'](_0x359e3c)))continue;}const _0x29ef7a=_0x503799['get'](_0x2d0f27),_0x207302=_0x1a8172['get'](_0x2d0f27),_0x4852a5=_0x1a8172['get'](_0x1e59e2),_0x403e5a=_0x2d0f27['commentThread']&&_0x2d0f27['commentThread']['length'],_0x2f2254=_0x1e59e2['commentThread']&&_0x1e59e2['commentThread']['length'];if(!_0x403e5a&&_0x29ef7a(_0x4852a5,_0x207302))return _0x43ff30['_joinSuggestions'](_0x1e59e2,_0x2d0f27),_0x1a8172['delete'](_0x2d0f27),!0x0;if(!_0x2f2254&&_0x29ef7a(_0x207302,_0x4852a5))return _0x43ff30['_joinSuggestions'](_0x2d0f27,_0x1e59e2),_0x1a8172['delete'](_0x1e59e2),!0x0;}return!0x1;}}['_joinSuggestions'](_0x3c6627,_0x323928){if(_0x3c6627['isMultiRange']){for(const _0x49f05c of _0x323928['getRanges']())_0x3c6627['addRange'](_0x49f05c);}else{const _0x2b56a7=_0x323928['getFirstRange']()['end'];this['_setSuggestionRange'](_0x3c6627,this['_model']['createRange'](_0x3c6627['getFirstRange']()['start'],_0x2b56a7));}_0x323928['removeMarkers']();}['_getMarkerAnnouncementText'](_0x103b88,_0x4e7593,_0xf6813f){const _0x3571f3=_0x103b88['startsWith']('format')||_0x103b88['startsWith']('attribute')?'FORMATTING':_0x103b88['toUpperCase']();return o(this['editor']['locale'],_0x4e7593+'_'+_0x3571f3+'_SUGGESTION_ANNOUNCEMENT',_0xf6813f);}['_initAriaMarkerChangeAnnouncements'](){const _0x5b85a1=this['editor'];if(!_0x5b85a1['ui'])return;const {ariaLiveAnnouncer:_0x51dda2}=_0x5b85a1['ui'];_0x180cec(this['_model'],({left:_0x3f076d,entered:_0x54cf21})=>{for(const _0x4f688a of _0x3f076d){const {group:_0x44dafd,type:_0xcf95de}=this['_splitMarkerName'](_0x4f688a['name']);if('suggestion'===_0x44dafd){_0x51dda2['announce'](this['_getMarkerAnnouncementText'](_0xcf95de,'LEAVE'));break;}}for(const _0x5af0cc of _0x54cf21){const {group:_0x2c3195,type:_0x3d49e4}=this['_splitMarkerName'](_0x5af0cc['name']);if('suggestion'===_0x2c3195){_0x51dda2['announce'](this['_getMarkerAnnouncementText'](_0x3d49e4,'ENTER',_0xb8a90(_0x33c20d)));break;}}});}['_processAttributeChanges'](_0x171b89){if(this['_recordAttributeSuggestions'])return!0x1;const _0x76359e=this['editor'],_0x31a62a=_0x76359e['model']['document']['differ']['getChanges']();if(0x0==_0x31a62a['length'])return!0x1;const _0x109486=[],_0x100313=_0x31a62a['filter'](_0x57f791=>'attribute'==_0x57f791['type']),_0x1f949f=_0x31a62a['filter'](_0x26e03c=>'insert'==_0x26e03c['type']&&'$text'!=_0x26e03c['name']),_0xf2894f=_0x31a62a['filter'](_0x1e5b90=>'remove'==_0x1e5b90['type']&&'$text'!=_0x1e5b90['name']);for(const _0x201bbf of _0x100313)_0x109486['push']({'key':_0x201bbf['attributeKey'],'newValue':_0x201bbf['attributeNewValue'],'oldValue':_0x201bbf['attributeOldValue'],'range':Yt(_0x201bbf['range'],_0x76359e['model'])});for(const _0xe510c4 of _0x1f949f){const _0x5b749b=_0xf2894f['find'](_0x134986=>_0x134986['position']['isEqual'](_0xe510c4['position']));_0x5b749b&&_0x109486['push']({'key':m,'newValue':_0xe510c4['name'],'oldValue':_0x5b749b['name'],'range':_0x76359e['model']['createRangeOn'](_0xe510c4['position']['nodeAfter'])});}return 0x0!=_0x109486['length']&&this['_reduceExistingSuggestions'](_0x171b89,_0x109486);}['_processAttributeSuggestions'](_0x431445){let _0x5d1df4=!0x1;const _0x57fa19=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5a1930=>_0x5a1930['data']['newRange']&&_0x5a1930['name']['startsWith']('suggestion:attribute:'));for(const _0xa664be of _0x57fa19){const {subType:_0x533fbc,id:_0x47de4d}=this['_splitMarkerName'](_0xa664be['name']),_0x16f6bb=_0x533fbc['split']('|')[0x0];for(const _0x2277a8 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x2277a8['id']!=_0x47de4d&&'attribute'==_0x2277a8['type']&&_0x2277a8['data']&&_0x2277a8['data']['key']==_0x16f6bb&&_0x2277a8['getFirstRange']()['isIntersecting'](_0xa664be['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x2277a8,_0xa664be['data']['newRange'],_0x431445),_0x5d1df4=!0x0);}return _0x5d1df4;}['recordAttributeChanges'](_0x51d707){this['_recordAttributeSuggestions']=!0x0,_0x51d707();}['_isRegisteredAttribute'](_0x4ab4c4){return this['editor']['plugins']['get'](_0xaeb456)['isRegisteredAttribute'](_0x4ab4c4);}['_reduceExistingSuggestions'](_0x5d41ec,_0x18874f){if(0x0==_0x18874f['length'])return!0x1;let _0x865b30=!0x1;for(const _0x48557e of _0x18874f){const _0x35632a=this['_findSuggestions'](_0x48557e['range'],'attribute')['filter'](_0x476eb1=>!_0x476eb1['meta']['isNextTo'])['map'](_0x5e04d1=>_0x5e04d1['suggestion']),_0x5a1904=_0x31026({'newValue':_0x48557e['newValue']});_0x35632a['filter'](_0x4738ac=>{const [_0x342d78,_0x3803c1]=_0x4738ac['subType']['split']('|');return _0x342d78==_0x48557e['key']&&_0x3803c1!=_0x5a1904;})['forEach'](_0x3625ce=>{this['_reduceSuggestionAttributeRange'](_0x3625ce,_0x48557e['range'],_0x5d41ec),_0x865b30=!0x0;});}return _0x865b30;}['_reduceSuggestionAttributeRange'](_0x4fc00d,_0x14b24c,_0x33657e){const _0x9c40ab=_0x4fc00d['getFirstRange']()['getDifference'](_0x14b24c);0x0!==_0x9c40ab['length']?0x1!==_0x9c40ab['length']?this['_breakSuggestionMarker'](_0x4fc00d,_0x14b24c['start'],_0x14b24c['end']):this['_setSuggestionRange'](_0x4fc00d,_0x9c40ab[0x0]):_0x33657e['removeMarker'](_0x4fc00d['getFirstMarker']());}}class SuggestionFactory{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x1a022e){this['_editor']=_0x1a022e,this['_model']=_0x1a022e['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x2ebb7f,_0x256902,_0xbbc803,_0x30180b,_0x477d5b,_0xf27ee4,_0x57551b){return new T(this['_model'],{'type':_0x2ebb7f,'subType':_0x256902,'id':_0xbbc803,'originalSuggestionId':_0x57551b,'author':_0x30180b,'creator':_0x30180b,'attributes':_0x477d5b,'onAttributesChange':_0xf27ee4,'onAccept':(..._0x502761)=>this['getSuggestionCallback'](_0x2ebb7f,_0x256902,'accept')(..._0x502761),'onDiscard':(..._0x5c0a0a)=>this['getSuggestionCallback'](_0x2ebb7f,_0x256902,'discard')(..._0x5c0a0a)});}['registerCustomCallback'](_0x47f401,_0x444f17,_0x33eb0d,_0x2d138b){const _0x4bcbec=_0x47f401+':'+_0x444f17+':'+_0x33eb0d;this['_customCallbacks']['set'](_0x4bcbec,_0x2d138b);}['getSuggestionCallback'](_0x437461,_0x3066f3,_0x3da53d){const _0x380524=_0x437461+':'+_0x3066f3+':'+_0x3da53d;return this['_customCallbacks']['get'](_0x380524)||this['_defaultCallbacks']['get'](_0x437461+':'+_0x3da53d);}['_registerDefaultCallbacks'](){const _0x300285=()=>!0x1,_0x32207f=_0x316ac8=>{_0x316ac8['sort']((_0x1a79f5,_0x269843)=>_0x1a79f5['start']['isBefore'](_0x269843['start'])?0x1:-0x1),this['_model']['change'](_0x4e56a4=>{for(const _0x545abe of _0x316ac8){let _0x1d2c72;_0x1d2c72=_0x545abe['end']['isAtEnd']&&_0x545abe['end']['parent']==_0x545abe['start']['nodeAfter']?_0x4e56a4['createSelection'](_0x545abe['start']['nodeAfter'],'on'):_0x4e56a4['createSelection'](_0x545abe),this['_model']['deleteContent'](_0x1d2c72,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x4493b5=(_0x3908b9,_0x5b8451)=>{_0x5b8451&&this['_model']['change'](_0x6f1167=>{const {commandName:_0x1df95d,commandParams:_0x4d3139=[]}=_0x5b8451,_0xebb2ac=_0x3908b9['map'](_0x50752e=>(zt(_0x50752e)&&(_0x50752e=this['_model']['createRange'](_0x50752e['end'])),_0x50752e))['filter'](_0x1c2c09=>'$graveyard'!==_0x1c2c09['root']['rootName']);if(_0xebb2ac['length']<0x1)return;const _0x1b4017=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x518fdc=>_0x374b49['fromRange'](_0x518fdc));_0x6f1167['setSelection'](_0xebb2ac);for(const _0x1f28e4 of this['_editor']['commands']['commands']())_0x1f28e4['refresh']();_0x4d3139['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1df95d,..._0x4d3139);const _0x4e1770=_0x1b4017['filter'](_0xfc254f=>'$graveyard'!=_0xfc254f['root']['rootName']);_0x4e1770['length']>0x0&&_0x6f1167['setSelection'](_0x4e1770);for(const _0x2990dc of _0x1b4017)_0x2990dc['detach']();});},_0xb5882a=(_0xf586f3,_0x5ee955)=>0x1==_0xf586f3['length']&&0x1==_0x5ee955['length']&&_0xf586f3[0x0]['end']['isEqual'](_0x5ee955[0x0]['start']),_0x32df6c=(_0x2e8626,_0x2ef587,_0x4b3ebc,_0x79bec8)=>tn(_0x2e8626,_0x2ef587,_0x4b3ebc,_0x79bec8)?[_0x2e8626,_0x2ef587]:tn(_0x2ef587,_0x2e8626,_0x79bec8,_0x4b3ebc)?[_0x2ef587,_0x2e8626]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x300285),this['_defaultCallbacks']['set']('insertion:discard',_0x32207f),this['_defaultCallbacks']['set']('insertion:join',_0xb5882a),this['_defaultCallbacks']['set']('insertion:chain',_0x32df6c),this['_defaultCallbacks']['set']('deletion:accept',_0x32207f),this['_defaultCallbacks']['set']('deletion:discard',_0x300285),this['_defaultCallbacks']['set']('deletion:join',_0xb5882a),this['_defaultCallbacks']['set']('deletion:chain',_0x32df6c),this['_defaultCallbacks']['set']('formatInline:accept',_0x4493b5),this['_defaultCallbacks']['set']('formatInline:discard',_0x300285),this['_defaultCallbacks']['set']('formatInline:join',_0xb5882a),this['_defaultCallbacks']['set']('formatInline:chain',_0x300285),this['_defaultCallbacks']['set']('formatBlock:accept',_0x4493b5),this['_defaultCallbacks']['set']('formatBlock:discard',_0x300285),this['_defaultCallbacks']['set']('formatBlock:join',_0xb5882a),this['_defaultCallbacks']['set']('formatBlock:chain',_0x300285),this['_defaultCallbacks']['set']('attribute:accept',_0x300285),this['_defaultCallbacks']['set']('attribute:discard',(_0x4ac48e,_0x371c86)=>{if(!_0x371c86)return;const _0x3758eb=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x2311db=>{if(_0x371c86['key']==m)for(const _0x1937cf of _0x4ac48e){const _0x5717c3=_0x1937cf['start']['nodeAfter'],_0xe496e5=_0x371c86['oldValue'];_0x2311db['rename'](_0x5717c3,_0xe496e5);}else{if(_0x3758eb['_isBlockAttribute'](_0x371c86['key'])){for(const _0x43722a of _0x4ac48e)void 0x0!==_0x371c86['oldValue']?_0x2311db['setAttribute'](_0x371c86['key'],_0x371c86['oldValue'],_0x43722a['start']['nodeAfter']):_0x2311db['removeAttribute'](_0x371c86['key'],_0x43722a['start']['nodeAfter']);}else{for(const _0x3ba381 of _0x4ac48e)_0x371c86['oldValue']?_0x2311db['setAttribute'](_0x371c86['key'],_0x371c86['oldValue'],_0x3ba381):_0x2311db['removeAttribute'](_0x371c86['key'],_0x3ba381);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0xb5882a);}}function qt(_0x4b199f,_0x67d9f3,_0x1f829c){for(const _0x59d774 of _0x67d9f3['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x59d774['root']==_0x59d774)return!0x1;if(!_0x1f829c['containsItem'](_0x59d774))return!0x1;if(_0x4b199f['isObject'](_0x59d774)||_0x4b199f['isLimit'](_0x59d774))return!0x0;}return!0x1;}function zt(_0x4cf0c2){return _0x4cf0c2['end']['parent']==_0x4cf0c2['start']['nodeAfter']&&_0x4cf0c2['end']['isAtStart'];}function Kt(_0x5d11fd,_0x1fc40e,_0x48c67b,_0x4a0157){const _0x7df1d7=_0x4187e6=>!_0x4187e6['item']['is']('$textProxy')&&!_0x4a0157['isObject'](_0x4187e6['item']),_0x28e6f0=_0x5d11fd['start']['getLastMatchingPosition'](_0x7df1d7),_0xb7907b=_0x5d11fd['end']['getLastMatchingPosition'](_0x7df1d7,{'direction':'backward'});return(!_0x5d11fd['start']['isEqual'](_0x28e6f0)||!_0x5d11fd['end']['isEqual'](_0xb7907b))&&(_0x28e6f0['isBefore'](_0xb7907b)?_0x48c67b['updateMarker'](_0x1fc40e,{'range':_0x48c67b['createRange'](_0x28e6f0,_0xb7907b)}):_0x48c67b['removeMarker'](_0x1fc40e),!0x0);}function Wt(_0x2880ea){return _0x31026(_0x2880ea);}function Ht(_0x60ef43){const _0x5417d5=_0x60ef43['start']['nodeAfter'];return _0x5417d5&&_0x5417d5['is']('element');}function Qt(_0x40e63d){return zt(_0x40e63d)||function(_0xf23335){return _0xf23335['start']['parent']==_0xf23335['end']['nodeBefore']&&_0xf23335['start']['isAtEnd'];}(_0x40e63d);}function Xt(_0x24cf41,_0x802063){try{const _0x5deb60=_0x24cf41['getRange']();for(const _0x56311d of _0x802063)if(_0x24cf41!==_0x56311d&&_0x5deb60&&_0x5deb60['isIntersecting'](_0x56311d['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Yt(_0x271abd,_0x778cbf){return null==_0x271abd['end']['nodeBefore']&&_0x271abd['end']['parent']==_0x271abd['start']['nodeAfter']?Zt(_0x271abd['start']['nodeAfter'],_0x778cbf):_0x271abd;}function Zt(_0x225724,_0xc7e7de){const _0x53d467=_0xc7e7de['schema']['isObject'](_0x225724)||_0xc7e7de['schema']['isSelectable'](_0x225724);return _0xc7e7de['createRange'](_0xc7e7de['createPositionAt'](_0x225724,'before'),_0x53d467?_0xc7e7de['createPositionAfter'](_0x225724):_0xc7e7de['createPositionAt'](_0x225724,'end'));}function tn(_0x1b0b74,_0xfdb86,_0x4acd22,_0x4d57a3){return!!nn(_0x1b0b74,_0xfdb86)&&_0x4acd22['end']['isEqual'](_0x4d57a3['start']);}function nn(_0x329b25,_0x2aad66){if(!_0x329b25['_isDataLoaded']||!_0x2aad66['_isDataLoaded'])return!0x1;const _0x327b10=new Set(Object['keys'](_0x329b25['attributes'])),_0x43f6ab=new Set(Object['keys'](_0x2aad66['attributes']));if(_0x327b10['delete']('groupId'),_0x43f6ab['delete']('groupId'),0x0==_0x327b10['size']&&0x0==_0x43f6ab['size'])return!0x0;if(_0x327b10['size']!=_0x43f6ab['size'])return!0x1;const _0x5010be={..._0x329b25['attributes']},_0x111406={..._0x2aad66['attributes']};return delete _0x5010be['groupId'],delete _0x111406['groupId'],JSON['stringify'](_0x5010be)==JSON['stringify'](_0x111406);}function en(_0xa58a61,_0x17c38f){const _0x39c5ff=sn(_0xa58a61['attributes']),_0x2312d7=sn(_0x17c38f);if(!_0xa58a61['_isDataLoaded'])return!0x1;for(const _0x4a25ac of Object['keys'](_0x2312d7))if(!_0xd73929(_0x39c5ff[_0x4a25ac],_0x2312d7[_0x4a25ac]))return!0x1;return!0x0;}function sn(_0x5796e0){const _0x42f870=Object['assign']({},_0x5796e0);return delete _0x42f870['skipNestingCheck'],delete _0x42f870['tablePasteChainId'],_0x42f870;}class pe extends/* #__PURE__ -- @preserve */
26
- _0x35ec1c(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x44a9b0,_0x3d37bc,_0x319038,_0x1ea137){super(),this['model']=_0x3d37bc,this['view']=_0x319038,this['commentThreadController']=_0x1ea137,this['_editor']=_0x44a9b0,this['_acceptCommand']=_0x44a9b0['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x44a9b0['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x461d34,_0x6054c3)=>_0x461d34||_0x6054c3),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x399e15=>_0x399e15&&this['_editor']['model']['canEditAt'](_0x3d37bc['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x474da4=>_0x474da4&&this['_editor']['model']['canEditAt'](_0x3d37bc['getRanges']())),this['_pendingAction']=null,_0x319038['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x319038,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x319038,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x319038,'change:isDirty',()=>{_0x319038['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 _0x3f9b73=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x3f9b73);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x3f0da4{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x2a8482,_0x10cd08,_0x4fa1cd,_0x13888b){super(_0x2a8482),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x1e4119(_0x2a8482,o(_0x2a8482,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x10cd08['authoredAt']),this['bind']('authoredAt')['to'](_0x10cd08),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',_0x10cd08,'authoredAt',this,'descriptionParts',(_0x732ef3,_0x16bd09,_0x5a5bdb)=>{const _0x233e0f=_0x5a5bdb['map'](_0x566ef3=>ls(_0x566ef3['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x732ef3-0x1,_0x10cd08['author']['name'],_0x16bd09?_0x13888b['formatDateTime'](_0x16bd09):'',new DOMParser()['parseFromString'](_0x233e0f,'text/html')['body']['textContent']]);}),this['focusables']=new _0x417a88(),this['focusTracker']=new _0x434831(),this['keystrokes']=new _0x210b09(),this['focusCycler']=new _0x36045c({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x3d4b98=>_0x3d4b98['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x10cd08,this['_localUser']=_0x4fa1cd,this['_config']=_0x13888b,_0x13888b['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x2b462d(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x35288a}=this['_config'];this['commentsListView']=new _0x35288a(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',_0x17fbdb=>_0x17fbdb+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x2174da,_0x11fbb4)=>_0x2174da||!!_0x11fbb4);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x243a5f}=this['_config'],_0xb37e87=new _0x243a5f(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x2459b3=_0xb37e87['commentInputView'];return _0xb37e87['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x2459b3,'value',(_0x4a90e7,_0x3a741b,_0x104772)=>!!_0x104772||_0x4a90e7&&!_0x3a741b),_0x2459b3['on']('submit',(_0x36fcd3,_0x44179c)=>{this['fire']('addComment',_0x44179c),_0x2459b3['editor']['setData']('');}),_0x2459b3['on']('cancel',()=>this['focus']()),_0x2459b3['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0xb37e87;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x5b7b23,_0x882bd6,_0x4c865a,_0x894534){super(_0x5b7b23,_0x882bd6,_0x4c865a,_0x894534),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x3a4413=>_0x3a4413&&_0x3a4413[0x0]?_0x3a4413[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0xc8bed7,_0x56107f)=>{let _0x5b0726='';for(const _0x160d68 of _0xc8bed7)_0x5b0726+='<p>'+ls(_0x160d68['content'],_0x160d68['color'])+'</p>';return _0x56107f?_0x5b0726:_0x1cc177(_0x5b0726,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x894534['SuggestionView'](_0x5b7b23,_0x882bd6,{'formatDateTime':_0x894534['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 _0x4020ec=this['bindTemplate'],_0x508ebd=[this['suggestionView']];return this['commentsListView']&&_0x508ebd['push'](this['commentsListView']),this['commentThreadInputView']&&_0x508ebd['push'](this['commentThreadInputView']),_0x508ebd['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x4020ec['if']('isActive','ck-suggestion-wrapper--active'),_0x4020ec['to']('type',_0x5bd5ec=>'ck-suggestion-'+_0x5bd5ec),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':_0x4020ec['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x508ebd};}['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 _0x3f0da4{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x18f197,_0x1c01ef,_0x353948){super(_0x18f197),this['_model']=_0x1c01ef,this['_config']=_0x353948,this['set']('description',''),this['bind']('authoredAt')['to'](_0x1c01ef),this['acceptButton']=this['_createButton'](o(_0x18f197,'Accept\x20suggestion'),_0x38106a,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x18f197,'Discard\x20suggestion'),_0x271ddd,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x35f1f2(_0x18f197,_0x1c01ef['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x417a88([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x434831(),this['keystrokes']=new _0x210b09(),this['focusCycler']=new _0x36045c({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x5d5d9a=>_0x5d5d9a['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x16359f=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x16359f['innerHTML']=this['description'],this['on']('change:description',(_0x430dc3,_0x28ac85,_0xfeefc4)=>{_0x16359f['innerHTML']=_0xfeefc4;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x58a331=this['bindTemplate'],_0x4d0022=[{'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':_0x58a331['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x58a331['to']('authoredAt',_0x528a0c=>this['_config']['formatDateTime'](_0x528a0c))}]}]},{'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']&&_0x4d0022['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':_0x4d0022}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x5597e2,_0x773b0,_0x247a07,_0x21b766,_0x27ca27){const _0x1b1e64=new _0x2d217b(this['locale']);return _0x1b1e64['set']({'label':_0x5597e2,'icon':_0x773b0,'tooltip':!0x0,'tooltipPosition':_0x27ca27}),_0x1b1e64['extendTemplate']({'attributes':{'class':_0x247a07}}),_0x1b1e64['on']('execute',()=>{this['fire'](_0x21b766,this['_model']['id']);}),_0x1b1e64;}['_setupKeyboardNavigation'](){const _0x5af768=this['element'];this['keystrokes']['listenTo'](_0x5af768);for(const _0x2af402 of this['focusables'])this['focusTracker']['add'](_0x2af402['element']),this['keystrokes']['listenTo'](_0x2af402['element']);this['keystrokes']['set']('enter',(_0x50b7b7,_0x10337a)=>{_0x5af768===_0x50b7b7['target']&&(this['focusCycler']['focusFirst'](),_0x10337a());}),this['keystrokes']['set']('esc',(_0x25bdeb,_0x49818c)=>{_0x5af768!==_0x25bdeb['target']&&(this['focus'](),_0x49818c());});}}class u extends _0x5249e2{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x2f90aa,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4d0a03){super(_0x4d0a03),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x41cf33=this['editor']['config'];_0x41cf33['define']('trackChanges.SuggestionThreadView',fe),_0x41cf33['define']('trackChanges.SuggestionView',we),_0x41cf33['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x41cf33['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x4bd828,_0x4d0c18){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x471689,_0x5595e7]of this['_handleControllerBuffer']){const _0x185d01=this['_suggestionToController']['has'](_0x471689);_0x185d01||_0x5595e7?_0x185d01&&_0x5595e7&&this['_destroyController'](_0x471689):this['_initializeController'](_0x471689);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x4bd828,_0x4d0c18);}['init'](){const _0xbca8ff=this['editor'],_0x470acd=_0xbca8ff['plugins']['get']('TrackChangesEditing'),_0x5af534=_0xbca8ff['plugins']['get']('Annotations'),_0x5a2b2b=_0xbca8ff['plugins']['get']('EditorAnnotations'),_0x522f75=_0xbca8ff['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x5a2b2b['addSourceCollector'](()=>{const _0x6b7e69=[];for(const [_0x58aad7,_0x4e2d57]of Array['from'](this['_suggestionToController'])){const _0x58900f=_0x58aad7['getAllAdjacentSuggestions'](),_0x1aed49=[];for(const _0x3f4ee3 of _0x58900f){if(!_0x3f4ee3['isInContent'])continue;if(_0x3f4ee3['isMultiRange']){_0x1aed49['push'](..._0x3f4ee3['getRanges']());continue;}const _0x4e5fd0=_0x3f4ee3['getFirstRange']();if(_0x1aed49['length']>0x0){const _0x125e67=_0x1aed49[0x0]['getJoined'](_0x4e5fd0);if(_0x125e67){_0x1aed49[0x0]=_0x125e67;continue;}}_0x1aed49['push'](_0x4e5fd0);}_0x6b7e69['push']([_0x4e2d57['view'],_0x1aed49]);}return _0x6b7e69;}),this['listenTo'](_0x470acd,'suggestionLoaded',(_0x7eaa72,_0x258c90)=>{this['listenTo'](_0x258c90,'change:previous',(_0x324447,_0x45e00e,_0x1d4e36,_0x350c80)=>{_0x258c90['isInContent']&&(null==_0x1d4e36?(this['_updateController'](_0x350c80['head']),this['_handleSuggestionControllerDelayed'](_0x258c90,!0x1)):(this['_updateController'](_0x1d4e36['head']),null==_0x350c80&&this['_handleSuggestionControllerDelayed'](_0x258c90,!0x0)));}),null!==_0x258c90['previous']?this['_updateController'](_0x258c90['head']):this['_handleSuggestionControllerDelayed'](_0x258c90,!0x1);}),this['listenTo'](_0x470acd,'suggestionUnloaded',(_0x500705,_0x15baf9,_0x2b57b0)=>{this['stopListening'](_0x15baf9,'change:previous'),this['_handleControllerBuffer']['delete'](_0x15baf9),this['_suggestionToController']['has'](_0x15baf9)&&this['_destroyController'](_0x15baf9),_0x2b57b0&&this['_updateController'](_0x2b57b0['head']);}),this['listenTo'](_0x470acd,'suggestionChanged',(_0x44880d,_0x1ef39f)=>{this['_updateController'](_0x1ef39f);}),this['listenTo'](_0x5af534,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x522f75,'addComment',(_0xebb415,{threadId:_0x264027,isFromAdapter:_0x2862fb})=>{if(_0x2862fb||!_0x470acd['hasSuggestion'](_0x264027))return;const _0x3d0a79=_0x470acd['getSuggestion'](_0x264027);this['_suggestionToController']['get'](_0x3d0a79)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x28b1c1=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2f977e;for(const _0x57ba99 in _0x28b1c1){const _0x18a433=_0x57ba99,_0x57b4d5=_0x28b1c1[_0x18a433];if('trackChangesLicenseKeyValid'==_0x57b4d5||'trackChangesLicenseKeyInvalid'==_0x57b4d5||'trackChangesLicenseKeyExpired'==_0x57b4d5||'trackChangesLicenseKeyDomainLimit'==_0x57b4d5||'trackChangesLicenseKeyNotAllowed'==_0x57b4d5||'trackChangesLicenseKeyEvaluationLimit'==_0x57b4d5||'trackChangesLicenseKeyUsageLimit'==_0x57b4d5){delete _0x28b1c1[_0x18a433],_0x2f977e=_0x57b4d5,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x2f977e&&_0x28b1c1['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x2f977e&&_0x28b1c1['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x2f977e&&_0x28b1c1['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x2f977e&&_0x28b1c1['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x2f977e&&_0x28b1c1['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x2f977e&&_0x28b1c1['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x1d913f){const _0x29d338=this['_suggestionToController']['get'](_0x1d913f);if(!_0x29d338)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x29d338['view'])||null;}['getSuggestionForAnnotation'](_0x42f08d){const _0x5eecdd=this['_viewToController']['get'](_0x42f08d['innerView']);return _0x5eecdd?_0x5eecdd['model']:null;}['_refreshActiveMarkers'](){const _0x283b7f=this['editor']['plugins']['get']('Annotations'),_0x302756=this['editor']['plugins']['get']('TrackChangesEditing'),_0x51f1d2=Array['from'](_0x283b7f['activeAnnotations'],_0x26a169=>_0x26a169['innerView'])['filter'](_0x17d0fd=>this['_viewToController']['has'](_0x17d0fd)),_0x5823fd=[];for(const _0x364e0f of _0x51f1d2){const _0x37b8e9=this['_viewToController']['get'](_0x364e0f)['model']['getAllAdjacentSuggestions']();_0x5823fd['push'](..._0x37b8e9['reduce']((_0x7549b0,_0x309283)=>[..._0x7549b0,..._0x309283['getMarkerNames']()],[]));}_0x302756['activeMarkers']=_0x5823fd;}['_addUIComponentsToFactory'](){const _0x4f5959=this['editor'],_0xd1bc9d=_0x4f5959['locale'],_0x5d3387=o(_0xd1bc9d,'Track\x20changes'),_0x44c9e1=new _0x4a7704([{'type':'switchbutton','model':new _0x595526({'withText':!0x0,'isToggleable':!0x0,'label':_0x5d3387,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x595526({'withText':!0x0,'label':o(_0xd1bc9d,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x595526({'withText':!0x0,'label':o(_0xd1bc9d,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x595526({'withText':!0x0,'label':o(_0xd1bc9d,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x595526({'withText':!0x0,'label':o(_0xd1bc9d,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x4f5959['plugins']['has']('TrackChangesPreview')&&_0x44c9e1['addMany']([{'type':'separator'},{'type':'button','model':new _0x595526({'withText':!0x0,'label':o(_0xd1bc9d,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0xc7b16a of _0x44c9e1)if(ke(_0xc7b16a)){const _0x158009=_0x4f5959['commands']['get'](_0xc7b16a['model']['commandName']);_0xc7b16a['model']['bind']('isOn','isEnabled')['to'](_0x158009,'value','isEnabled');}_0x4f5959['ui']['componentFactory']['add']('trackChanges',_0x5aa608=>this['_createToolbarButton'](_0x5aa608,_0x44c9e1,_0x5d3387)),_0x4f5959['ui']['componentFactory']['add']('menuBar:trackChanges',_0x1c9b7f=>this['_createMenuBarMenu'](_0x1c9b7f,_0x44c9e1,_0x5d3387));}['_createToolbarButton'](_0x139b09,_0x5bd4e2,_0x2b19c7){const _0x18de68=_0x52122b(_0x139b09,_0xc780f5),_0x444492=this['editor']['commands']['get']('trackChanges');_0x18de68['buttonView']['set']({'tooltip':_0x2b19c7,'label':_0x2b19c7,'icon':_0x229ebb}),_0x18de68['buttonView']['bind']('isOn')['to'](_0x444492,'value'),_0x18de68['buttonView']['on']('execute',()=>{_0x444492['execute'](),this['editor']['editing']['view']['focus']();}),_0x3cf210(_0x18de68,_0x5bd4e2,{'role':'menu'});const _0x446e54=[];for(const _0x5d60a4 of _0x5bd4e2)ke(_0x5d60a4)&&_0x446e54['push'](this['editor']['commands']['get'](_0x5d60a4['model']['commandName']));const _0x4b3d9b=_0x18de68['buttonView'];return _0x4b3d9b['actionView']['unbind']('isEnabled'),_0x4b3d9b['arrowView']['unbind']('isEnabled'),_0x4b3d9b['actionView']['bind']('isEnabled')['to'](_0x444492,'isEnabled'),_0x4b3d9b['arrowView']['bind']('isEnabled')['toMany'](_0x446e54,'isEnabled',(..._0x28254e)=>_0x28254e['some'](_0x37cd2a=>_0x37cd2a)),_0x18de68['on']('execute',_0x3b3c80=>{this['editor']['execute'](_0x3b3c80['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x18de68;}['_createMenuBarMenu'](_0x21af2a,_0x335cdf,_0x3d6aaf){const _0x5e7f85=new _0x3783ab(_0x21af2a),_0x416d8a=this['editor']['commands']['get']('trackChanges');_0x5e7f85['buttonView']['set']({'label':_0x3d6aaf,'icon':_0x229ebb});const _0x5cf9e9=new _0x59d94a(_0x21af2a);for(const _0x5de807 of _0x335cdf){if('separator'==_0x5de807['type']){_0x5cf9e9['items']['add'](new _0x5eb72c(_0x21af2a));continue;}const _0x6314dd=new _0x3043b7(_0x21af2a,_0x5e7f85),_0x26cfee=new _0x1e02c8(_0x21af2a),_0x3c2df3=_0x5de807['model'];_0x26cfee['bind'](...Object['keys'](_0x3c2df3))['to'](_0x3c2df3),_0x26cfee['delegate']('execute')['to'](_0x5e7f85),_0x26cfee['on']('execute',()=>{this['editor']['execute'](_0x3c2df3['commandName']),this['editor']['editing']['view']['focus']();}),_0x6314dd['children']['add'](_0x26cfee),_0x5cf9e9['items']['add'](_0x6314dd);}return _0x5e7f85['bind']('isEnabled')['to'](_0x416d8a,'isEnabled'),_0x5e7f85['panelView']['children']['add'](_0x5cf9e9),_0x5e7f85;}['_initializeController'](_0x599b16){const _0xa6ed96=this['editor'],_0x4bfe26=_0xa6ed96['config'],_0xa9e7fa=_0xa6ed96['plugins']['get']('Annotations'),_0x2fea64=_0xa6ed96['plugins']['get']('CommentsRepository'),_0x575751=_0xa6ed96['plugins']['get']('EditorAnnotations'),_0x53fdaa=_0xa6ed96['plugins']['get'](_0x2f90aa)['me'],_0x300e10=_0x4bfe26['get']('trackChanges')['SuggestionThreadView'],_0x2129ca=_0x4bfe26['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x2387a8,CommentThreadInputView:_0x41f93}=_0xa6ed96['plugins']['get']('CommentsUI');let _0x31e4e8,_0x1ea266,_0x4464be;this['_annotationViews']['has'](_0x599b16['id'])?(_0x1ea266=this['_annotationViews']['get'](_0x599b16['id']),_0x31e4e8=_0x1ea266['mainView']):(_0x31e4e8=new _0x300e10(_0xa6ed96['locale'],_0x599b16,_0x53fdaa,{'disableComments':this['_disableComments'],'editorConfig':{..._0x4bfe26['get']('comments.editorConfig'),'licenseKey':_0x4bfe26['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x4bfe26['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4bfe26['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4bfe26['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0xc9857d(_0x4bfe26['get']('locale'),_0xa6ed96['locale']),'CommentView':_0x4bfe26['get']('comments')['CommentView'],'CommentsListView':_0x2387a8,'CommentThreadInputView':_0x41f93,'SuggestionView':_0x2129ca}),_0x31e4e8['suggestionView']['acceptButton']['on']('execute',()=>{_0xa6ed96['editing']['view']['focus']();}),_0x31e4e8['suggestionView']['discardButton']['on']('execute',()=>{_0xa6ed96['editing']['view']['focus']();}),_0x1ea266=_0xa9e7fa['createAnnotationView'](this['editor']['locale'],_0x31e4e8),_0x1ea266['bind']('isDirty')['to'](_0x31e4e8,'isDirty'),_0x1ea266['bind']('length')['to'](_0x31e4e8),_0x1ea266['bind']('type')['to'](_0x31e4e8,'type',_0x495b2a=>'suggestion-'+_0x495b2a),_0x31e4e8['on']('escape',()=>{_0x4464be['fire']('escape');}),this['_annotationViews']['set'](_0x599b16['id'],_0x1ea266));const _0x2066c2=_0x2fea64['createCommentThreadController'](_0x599b16['commentThread'],_0x31e4e8),_0x3e5ab4=new pe(_0xa6ed96,_0x599b16,_0x31e4e8,_0x2066c2),_0x315bad=_0x599b16['getAllAdjacentSuggestions']()['filter'](_0x232d04=>_0x232d04['isInContent']);_0x31e4e8['descriptionParts']=_0xa6ed96['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x315bad),this['_suggestionToController']['set'](_0x599b16,_0x3e5ab4),this['_viewToController']['set'](_0x31e4e8,_0x3e5ab4);const _0x14d88a=()=>{const _0x157332=[],_0x1d28c3=_0x599b16['getAllAdjacentSuggestions']()['filter'](_0x4a8482=>_0x4a8482['isInContent']);for(const _0x5308f8 of _0x1d28c3)_0x157332['push'](..._0x5308f8['getMarkers']());return _0x17d20e(_0xa6ed96['editing'],_0x157332);};_0x4464be=_0xa9e7fa['createAnnotation']({'view':_0x1ea266,'target':_0x14d88a,'type':()=>'suggestion-'+_0x3e5ab4['view']['type'],'isVisible':!!_0x14d88a()}),_0x2fea64['_bindAnnotationToEditors'](_0x31e4e8,_0x4464be),_0xa9e7fa['add'](_0x4464be),_0x575751['registerAnnotation'](_0x4464be);}['_destroyController'](_0x4aa532){const _0x3a3f03=this['editor']['plugins']['get']('CommentsRepository'),_0x231123=this['editor']['plugins']['get']('Annotations'),_0x54ccb3=this['_suggestionToController']['get'](_0x4aa532),_0xf756dc=_0x54ccb3['view'],_0x14a72f=_0x231123['getByInnerView'](_0xf756dc);_0x3a3f03['_unbindEditors'](_0xf756dc),_0x14a72f&&_0x231123['remove'](_0x14a72f),this['_suggestionToController']['delete'](_0x4aa532),this['_viewToController']['delete'](_0xf756dc),_0x54ccb3['destroy']();}['_updateController'](_0x47d1f9){if(!_0x47d1f9['isInContent']||!this['_suggestionToController']['has'](_0x47d1f9))return;const _0x2c9b3b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3af162=this['_suggestionToController']['get'](_0x47d1f9),_0x34675b=_0x47d1f9['getAllAdjacentSuggestions']();_0x3af162['view']['descriptionParts']=_0x2c9b3b['descriptionFactory']['getDescriptions'](_0x34675b);}['destroy'](){for(const _0x303da0 of this['_suggestionToController']['keys']())this['_destroyController'](_0x303da0);for(const _0x451cc9 of this['_annotationViews']['values']())_0x451cc9['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0xea9e39){return'model'in _0xea9e39;}class TrackChanges extends _0x5249e2{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x5e57e5){this['editor']['plugins']['get'](d)['adapter']=_0x5e57e5;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x15b7a9){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x15b7a9);}['getSuggestions']({skipNotAttached:_0x3ea5ad=!0x1,toJSON:_0x3618a0=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x3ea5ad,'toJSON':_0x3618a0});}['getSuggestion'](_0x978924){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x978924);}}const p=['Pagination'];class re extends _0x5249e2{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x1e9299=this['editor'];if(_0x1e9299['config']['define']('trackChangesData.editorCreator',_0x44f1f5=>{const _0x34fc97=_0x1e9299['model']['document']['getRootNames']()['reduce']((_0x216bca,_0x486354)=>(_0x216bca[_0x486354]='',_0x216bca),{});return _0x1e9299['constructor']['create'](_0x34fc97,_0x44f1f5);}),'function'!=typeof _0x1e9299['config']['get']('trackChangesData')['editorCreator'])throw new _0x3bf974('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x5a45d1){return P(this['editor'],!0x0,_0x5a45d1);}['getDataWithDiscardedSuggestions'](_0x415a1f){return P(this['editor'],!0x1,_0x415a1f);}}class TrackChangesDataGetter extends _0x5249e2{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x46ae8a){function _0x222c9f(_0x378b02){return _0x378b02['map'](_0x31fd26=>String['fromCharCode'](_0x31fd26))['join']('');}super(_0x46ae8a),this['result']='end',_0x46ae8a[_0x222c9f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x222c9f([0x76,0x69,0x65,0x77])][_0x222c9f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x222c9f([0x61,0x75,0x74,0x6f]),_0x46ae8a[_0x222c9f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x222c9f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x222c9f([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x222c9f([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x222c9f([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 Ne(_0x4591e1){return void 0x0!==_0x4591e1['getRootsAttributes'];}async function P(_0x2a92d9,_0x2cb052,_0x1edcbb){const _0x46def6=_0x467f44(_0x2a92d9,p);_0x46def6['plugins']['push'](d,TrackChangesDataGetter),_0x46def6['rootsAttributes']=Ne(_0x2a92d9)?_0x2a92d9['getRootsAttributes']():void 0x0;const _0xc03e6b=document['createDocumentFragment'](),_0x186378=_0x2a92d9['config']['get']('trackChangesData')['editorCreator'],_0x2248dc=await _0x186378(_0x46def6,()=>function(_0x3ca94a){const _0xe101c5=document['createElement']('div');return _0x3ca94a['appendChild'](_0xe101c5),_0xe101c5;}(_0xc03e6b));!function(_0x3719a9,_0x47e35e){const _0x31b1f4=_0x3719a9['model']['document']['getRootNames']()['reduce']((_0x47899b,_0xc9784a)=>(_0x47899b[_0xc9784a]=_0x3719a9['data']['get']({'rootName':_0xc9784a}),_0x47899b),{}),_0x583f7d=_0x3719a9['plugins']['get']('Users')['users']['map'](_0x4e9cac=>({'id':_0x4e9cac['id'],'name':_0x4e9cac['name']})),_0x47437a=_0x3719a9['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2e4347=_0x3719a9['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x502c75=_0x47e35e['plugins']['get']('Users'),_0x108000=_0x47e35e['plugins']['get']('TrackChangesEditing'),_0x1cac54=_0x47e35e['plugins']['get']('CommentsRepository');for(const _0x254123 of _0x1cac54['getCommentThreads']())_0x254123['remove']();for(const _0x22a37e of _0x583f7d)_0x502c75['getUser'](_0x22a37e['id'])||_0x502c75['addUser'](_0x22a37e);_0x502c75['me']||_0x502c75['useAnonymousUser']();for(const _0x1bde64 of _0x2e4347)_0x1cac54['addCommentThread'](_0x1bde64);for(const _0x27d7fa of _0x47437a)_0x108000['addSuggestionData'](_0x27d7fa);_0x47e35e['data']['set'](_0x31b1f4);}(_0x2a92d9,_0x2248dc),_0x2248dc['execute'](_0x2cb052?'acceptAllSuggestions':'discardAllSuggestions');const _0x2d18d4=Ne(_0x2248dc)?_0x2248dc['getFullData'](_0x1edcbb):_0x2248dc['data']['get'](_0x1edcbb);return await _0x2248dc['destroy'](),_0x2d18d4;}class Me extends _0x3f0da4{['options'];constructor(_0xa13740,_0x4df2d7){super(_0xa13740),this['options']=_0x4df2d7,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'](_0x412762,_0x107ab3){if(!this['element'])return;const _0x228df2=[];for(const [_0xf1263e,_0x491c9e]of _0x412762){const _0x4defe8=document['createElement']('div');_0x4defe8['setAttribute']('data-ck-root-name',_0xf1263e),_0x4defe8['className']=_0x491c9e['classes']+'\x20ck-track-changes-preview__root-container',_0x4defe8['innerHTML']=_0x491c9e['content'],_0x228df2['push'](_0x4defe8);}_0x107ab3(this['element'],_0x228df2),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x4e6ef4{constructor(_0x4630d9){super(_0x4630d9),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x471409=this['editor'],_0x133bbe=_0x471409['locale'],_0xb587ff=_0x471409['plugins']['get']('Dialog');let _0x491586;const _0x46c46e=function(_0x40b598){const _0x3f3ee5={};if('editables'in _0x40b598['ui']['view']){for(const [_0x59babb,_0x519cd3]of Object['entries'](_0x40b598['ui']['view']['editables']))_0x3f3ee5[_0x59babb]=_0x519cd3['element'];}else _0x3f3ee5[_0x40b598['model']['document']['getRootNames']()[0x0]]=_0x40b598['ui']['view']['editable']['element'];return _0x3f3ee5;}(_0x471409),_0x62c56f=function(_0x8111fc){let _0xb7bec6=0x0;for(const _0x211d0d of Object['values'](_0x8111fc))_0xb7bec6=Math['max'](_0xb7bec6,_0x211d0d['getBoundingClientRect']()['width']);let _0x35b932=0x0;for(const _0x4c15b3 of Object['values'](_0x8111fc))_0x35b932+=_0x4c15b3['getBoundingClientRect']()['height'];const _0x1d2bcc=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x79e47f=Math['min'](_0x35b932,_0x1d2bcc);return{'width':_0xb7bec6,'height':_0x79e47f};}(_0x46c46e);_0xb587ff['show']({'id':'finalContentPreview','title':o(_0x133bbe,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x133bbe,{'dialogRects':_0x62c56f}),'onHide':()=>{_0x491586['detachFromDom']();},'onShow':()=>{_0x471409['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x1feda3=>{const _0x5c581f=this['_standarizeRootsData'](_0x1feda3,_0x471409,_0x46c46e);_0xb587ff['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x5c581f,_0x471409['config']['get']('trackChanges.preview.renderFunction'));}),_0x491586=new _0x5789d3(_0x133bbe,[_0xb587ff['view']]),_0x491586['attachToDom'](),_0x491586['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x471409['once']('destroy',()=>{_0x491586['detachFromDom']();});const _0x15d749=_0xb587ff['view']['headerView']['class'];_0xb587ff['view']['headerView']['class']=_0x15d749?_0x15d749+'\x20ck-reset_all':'ck-reset_all',_0xb587ff['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0xb587ff['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x5cc892=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x5e1b49=_0x5cc892['previewMode'],_0xd5fb2e={};if('$labels'===_0x5e1b49){for(const _0x41886c of _0x5cc892['getMergeFieldsIds']())_0xd5fb2e[_0x41886c]=_0x5cc892['getLabel'](_0x41886c)||_0x41886c;}else{const _0x55ab76='$defaultValues'===_0x5e1b49?_0x5cc892['getDefaultValues']():_0x5cc892['getDataSetValues'](_0x5e1b49,!0x0);for(const _0x376400 of Object['entries'](_0x55ab76)){const [_0x18fff8,_0x5927c7]=_0x376400;_0xd5fb2e[_0x18fff8]=null!==_0x5927c7?_0x5927c7:_0x5cc892['getLabel'](_0x18fff8)||_0x18fff8;}}return{'mergeFieldsData':_0xd5fb2e};}['_standarizeRootsData'](_0x2a9bdf,_0x13340f,_0x4e6be8){let _0x37f9e6;if('string'==typeof _0x2a9bdf){const _0x53969a=_0x13340f['model']['document']['getRootNames']()[0x0];_0x37f9e6={[_0x53969a]:_0x2a9bdf};}else _0x37f9e6=_0x2a9bdf;const _0x5b17ad=this['_fixMediaEmbeds'](_0x37f9e6,_0x13340f),_0x30ec9a=function(_0x5c656d,_0x142c9b){for(const [_0x273d81,_0x5c4fc5]of _0x5c656d)_0x5c4fc5['classes']=_0x142c9b[_0x273d81]['classList']['value']['replace']('ck-focused','');return _0x5c656d;}(this['_sortRoots'](_0x13340f)['reduce']((_0x55f106,_0x56e40a)=>(_0x55f106['push']([_0x56e40a,{'content':_0x5b17ad[_0x56e40a],'classes':''}]),_0x55f106),[]),_0x4e6be8);return _0x30ec9a;}['_fixMediaEmbeds'](_0x50a598,_0x39691c){if(!_0x39691c['plugins']['has']('MediaEmbedEditing'))return _0x50a598;const _0xe5c27d=_0x39691c['plugins']['get']('MediaEmbedEditing');for(const [_0x163b3d,_0x1a7c68]of Object['entries'](_0x50a598)){const _0x729561=document['createElement']('div');_0x729561['innerHTML']=_0x1a7c68,(_0x729561['querySelectorAll']('figure.media')['forEach'](_0x4b5aaa=>{const _0x28fdb6=_0x4b5aaa['querySelector']('oembed');if(_0x28fdb6){const _0x554db0=_0x28fdb6['getAttribute']('url');if(_0x554db0){const _0x2f66e1=_0xe5c27d['registry']['getMediaViewElement'](new _0x3d6837(_0x39691c['editing']['view']['document']),_0x554db0,{'elementName':'','renderForEditingView':!0x0}),_0x1d863a=document['createElement']('div');_0x1d863a['classList']['add']('ck-media__wrapper'),_0x2f66e1['render'](_0x1d863a,_0x39691c['editing']['view']['domConverter']),_0x28fdb6['replaceWith'](_0x1d863a);}}}),_0x50a598[_0x163b3d]=_0x729561['innerHTML']);}return _0x50a598;}['_sortRoots'](_0x44c2de){if(!function(_0x2eccdd){return void 0x0!==_0x2eccdd['getRootsAttributes'];}(_0x44c2de))return _0x44c2de['model']['document']['getRootNames']();const _0x458461=[],_0x4da7f1=new Map();for(const _0x5240fa of _0x44c2de['model']['document']['getRootNames']()){const _0x10367b=_0x44c2de['editing']['view']['getDomRoot'](_0x5240fa)['getClientRects']()['item'](0x0);_0x458461['push'](_0x5240fa),_0x4da7f1['set'](_0x5240fa,_0x10367b);}return _0x458461['sort']((_0x2ede69,_0x14d3d9)=>{const _0x567d82=_0x4da7f1['get'](_0x2ede69),_0x48f47e=_0x4da7f1['get'](_0x14d3d9);return _0x567d82['y']-_0x48f47e['y']||_0x567d82['x']-_0x48f47e['x'];}),_0x458461;}}class TrackChangesPreview extends _0x5249e2{static get['requires'](){return[re,_0x3799c0];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4974a3){super(_0x4974a3),_0x4974a3['commands']['add']('previewFinalContent',new te(this['editor'])),_0x4974a3['config']['define']('trackChanges.preview.renderFunction',(_0x14a01a,_0x223dac)=>{for(const _0x12268a of _0x223dac)_0x14a01a['appendChild'](_0x12268a);});}}export{O as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,x as DiscardSuggestionCommand,M as ExecuteOnAllSuggestionsCommand,R as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,E as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,TrackChanges,B as TrackChangesCommand,re as TrackChangesData,TrackChangesDataGetter,d as TrackChangesEditing,TrackChangesPreview,u as TrackChangesUI};
23
+ import{Command as _0x572003,Plugin as _0xb2d1b5,PendingActions as _0x24c32b}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x295561,ObservableMixin as _0x4c00e9,uid as _0x43100d,priorities as _0x1bfb2d,insertToPriorityArray as _0x1714fe,logWarning as _0x534041,getEnvKeystrokeText as _0x123b9d,FocusTracker as _0x3e0955,KeystrokeHandler as _0x57edfc,Collection as _0x5ce0c6}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x5c1126,IconCancel as _0x39fb50,IconTrackChanges as _0x27e754}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x396374,View as _0x573a46,ViewCollection as _0x50abef,FocusCycler as _0x43fa24,UIModel as _0xc19d80,createDropdown as _0x34a91b,SplitButtonView as _0x536e38,addListToDropdown as _0x4f5156,MenuBarMenuView as _0x28fba2,MenuBarMenuListView as _0x5a56a0,ListSeparatorView as _0x39d913,MenuBarMenuListItemView as _0x3d6e00,MenuBarMenuListItemButtonView as _0xf0efae,BodyCollection as _0x2c05ec,Dialog as _0x419992}from'@ckeditor/ckeditor5-ui/dist/index.js';import{SuggestionsConversion as _0x24828a,Users as _0x3dac01,DocumentCompare as _0x2299d5,fixElementSuggestionRange as _0x4702a9,hashObject as _0x5d9d53,splitSuggestionMarkerName as _0x131e43,surroundingMarkersDetector as _0x540d08,FOCUS_ANNOTATION_KEYSTROKE as _0x12f96f,AriaDescriptionView as _0x4309bd,setupThreadKeyboardNavigation as _0x5b961c,trimHtml as _0x9c05dc,UserView as _0x3af776,LateFocusButtonView as _0x48d323,getDateTimeFormatter as _0xbcc4e5,getAllMarkersDomElementsSorted as _0x22b66d,sanitizeEditorConfig as _0x4288c4}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x102fc7,ModelLiveRange as _0x23cc14,ModelLivePosition as _0x22534a,ViewDowncastWriter as _0x327f92}from'@ckeditor/ckeditor5-engine/dist/index.js';import{cloneDeep as _0x516c92,set as _0xe69e1,isEqual as _0x4d6333,unset as _0x37560e,omit as Jt}from'es-toolkit/compat';import{Delete as _0x4aa35b,Input as _0x3ca699}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x589834}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x1bb9ae}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x572003{['_enabledCommands'];constructor(_0x252cd3,_0x22df42){super(_0x252cd3),this['_enabledCommands']=_0x22df42,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 _0x2d1ceb of this['editor']['commands']['commands']())_0x2d1ceb['affectsData']&&!this['_enabledCommands']['has'](_0x2d1ceb)&&_0x2d1ceb['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x1a6aef of this['editor']['commands']['commands']())_0x1a6aef['affectsData']&&!this['_enabledCommands']['has'](_0x1a6aef)&&_0x1a6aef['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x572003{['_suggestions'];constructor(_0x3f2c70,_0x43cd2e){super(_0x3f2c70),this['_suggestions']=_0x43cd2e,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4bda23){const _0x505902=this['_suggestions']['get'](_0x4bda23);if(!_0x505902)throw new _0x295561('track-changes-accept-suggestion-not-found',this);const _0xfe0647=_0x505902['getRanges']();this['editor']['model']['canEditAt'](_0xfe0647)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x505902);}}class x extends _0x572003{['_suggestions'];constructor(_0x47c350,_0x57e803){super(_0x47c350),this['_suggestions']=_0x57e803,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4ee7f8){const _0x11fe5b=this['_suggestions']['get'](_0x4ee7f8);if(!_0x11fe5b)throw new _0x295561('track-changes-discard-suggestion-not-found',this);const _0x1b5f42=_0x11fe5b['getRanges']();this['editor']['model']['canEditAt'](_0x1b5f42)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x11fe5b);}}function ls(_0x96f00a,_0x134d8e){let _0x2cf618='';return _0x2cf618+=_0x96f00a['split']('*')['map']((_0x4c955c,_0x335cba)=>_0x335cba%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+on(_0x4c955c)+'</span>':on(_0x4c955c))['join'](''),_0x134d8e&&(_0x2cf618+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x134d8e['value']+'\x22\x20title=\x22'+_0x134d8e['title']+'\x22></span>'),_0x2cf618;}function on(_0x3dd20b){const _0x540746=document['createElement']('span');return _0x540746['innerText']=_0x3dd20b,_0x540746['innerHTML'];}function ts(_0x2b7d33){return _0x2b7d33['sort']((_0x121d28,_0x28ba30)=>'attribute'===_0x121d28['type']&&'attribute'!==_0x28ba30['type']?-0x1:'attribute'!==_0x121d28['type']&&'attribute'===_0x28ba30['type']?0x1:'deletion'==_0x121d28['type']&&'deletion'!=_0x28ba30['type']?-0x1:'deletion'!=_0x121d28['type']&&'deletion'==_0x28ba30['type']?0x1:0x0);}function to(_0xe52371,_0x34ee09){let _0x180263,_0xb8aa44=0x0;const _0x729d96=[],_0x4f6f40=_0x34ee09['schema'];for(;_0xb8aa44<_0xe52371['length'];){const _0x21029b=_0xe52371[_0xb8aa44],_0x77d70f=_0xe52371[_0xb8aa44+0x1];_0x180263||(_0x180263=_0x34ee09['createPositionBefore'](_0x21029b)),rn(_0x34ee09,_0x21029b,_0x77d70f)||(_0x729d96['push'](_0x34ee09['createRange'](_0x180263,_0x4f6f40['isObject'](_0x21029b)?_0x34ee09['createPositionAfter'](_0x21029b):_0x34ee09['createPositionAt'](_0x21029b,'end'))),_0x180263=null),_0xb8aa44++;}return _0x729d96;}function rn(_0x526c24,_0x1be0e1,_0x4b743f){if(!_0x4b743f)return!0x1;const _0x3639b6=_0x526c24['createPositionAfter'](_0x1be0e1),_0x10921b=_0x526c24['createPositionBefore'](_0x4b743f);return _0x3639b6['isTouching'](_0x10921b);}function rs(_0x33317a,_0x5ac02b,_0x5699){for(;_0x5699['length'];){const _0x102ddb=_0x5699['splice'](0x0,0x64);_0x33317a['change'](()=>{for(const _0x917914 of _0x102ddb)_0x917914['isInContent']&&_0x5ac02b['execute'](_0x917914['id']);});}}class M extends _0x572003{['_command'];['_suggestions'];constructor(_0x4fe026,_0x521300,_0x240f85){super(_0x4fe026),this['_command']=_0x521300,this['_suggestions']=_0x240f85,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5cd31c=Array['from'](this['_suggestions']['values']())['some'](_0x59062c=>_0x59062c['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x5cd31c;}['execute'](){const _0x235efe=ts(Array['from'](this['_suggestions']['values']()));for(const _0x3bb580 of _0x235efe){const _0x41cab9=_0x3bb580['getRanges']();if(!this['editor']['model']['canEditAt'](_0x41cab9))return;}rs(this['editor']['model'],this['_command'],_0x235efe);}}class R extends _0x572003{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x4fb05d,_0x5307e0,_0x4f189a){super(_0x4fb05d),this['_command']=_0x5307e0,this['_suggestions']=_0x4f189a,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x31f2d=this['editor']['model']['document']['selection'],_0x136bb6=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x555122,_0x31f276){const _0x41935a=Array['from'](_0x555122['getRanges']()),_0x5e5173=new Set();for(const _0x55124e of _0x31f276)if(_0x55124e['isInContent']){for(const _0x1ece61 of _0x41935a)for(const _0x26a335 of _0x55124e['getRanges']())(_0x1ece61['isIntersecting'](_0x26a335)||_0x555122['isCollapsed']&&!_0x55124e['isMultiRange']&&_0x55124e['next']&&_0x26a335['end']['isTouching'](_0x1ece61['start']))&&_0x5e5173['add'](_0x55124e);}return _0x5e5173;}(_0x31f2d,_0x136bb6),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x1a2a17=ts(Array['from'](this['_selectedSuggestions']));for(const _0x4291c2 of _0x1a2a17){const _0x5c5a2b=_0x4291c2['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5c5a2b))return;}rs(this['editor']['model'],this['_command'],_0x1a2a17);}}class T extends/* #__PURE__ -- @preserve */
24
+ _0x4c00e9(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0xa7b1ad,_0x38be44){super(),this['id']=_0x38be44['id'],this['type']=_0x38be44['type'],this['subType']=_0x38be44['subType']||null,this['author']=_0x38be44['author'],this['creator']=_0x38be44['creator']||_0x38be44['author'],this['isExternal']=Boolean(_0x38be44['attributes']&&_0x38be44['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x38be44['originalSuggestionId']||null,this['_model']=_0xa7b1ad,this['_onAccept']=_0x38be44['onAccept'],this['_onDiscard']=_0x38be44['onDiscard'],this['_onAttributesChange']=_0x38be44['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x38be44['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 _0xc55250=this;for(;_0xc55250['previous'];)_0xc55250=_0xc55250['previous'];return _0xc55250;}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'](_0x5bc805){this['_markerNames']['add'](_0x5bc805);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x1ea3c3=>this['_model']['markers']['get'](_0x1ea3c3))['filter'](_0x17eb1c=>_0x17eb1c);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0xac15e9=>{for(const _0x15ff53 of this['getMarkers']())_0xac15e9['removeMarker'](_0x15ff53);}),this['_markerNames']['clear']();}['removeMarker'](_0x5d4020){this['_model']['change'](_0x3f8013=>{_0x3f8013['removeMarker'](_0x5d4020);}),this['_markerNames']['delete'](_0x5d4020);}['addRange'](_0x1abdb8){const _0x4bc876='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x4bc876),this['_model']['change'](_0x2b522b=>{_0x2b522b['addMarker'](_0x4bc876,{'range':_0x1abdb8,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x241cc3){for(const _0x47b720 of this['getRanges']())if(_0x47b720['isIntersecting'](_0x241cc3))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x3723e0=>_0x3723e0['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0xfaf0b8,_0x5ebb97)=>[..._0xfaf0b8,..._0x5ebb97['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x49be23=this['getRanges']();if(0x1!=_0x49be23['length'])return null;const _0x5bf2f4=_0x49be23[0x0],_0x397338=_0x5bf2f4['start']['nodeAfter'],_0x1ecc00=_0x5bf2f4['end']['nodeBefore'];return _0x397338 instanceof _0x102fc7?_0x397338!=_0x1ecc00?null:_0x397338: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 _0x589730=[];let _0x12931f=this['head'];for(;_0x12931f;)_0x589730['push'](_0x12931f),_0x12931f=_0x12931f['next'];return _0x589730;}['setAttribute'](_0x47349d,_0x3e9f6b){const _0x4b1ac8=_0x516c92(this['attributes']);_0xe69e1(_0x4b1ac8,_0x47349d,_0x3e9f6b),_0x4d6333(_0x4b1ac8,this['attributes'])||(this['attributes']=_0x4b1ac8,this['_onAttributesChange'](_0x4b1ac8));}['removeAttribute'](_0xbdc736){const _0x30a4fb=_0x516c92(this['attributes']);_0x37560e(_0x30a4fb,_0xbdc736),_0x4d6333(_0x30a4fb,this['attributes'])||(this['attributes']=_0x30a4fb,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 _0x43100d()['substr'](0x1,0x5);}}function o(_0x21248d,_0x16b415,_0x484f9b){const _0x9f122b=_0x21248d['t'],t=_0x21248d['t'];switch(_0x16b415){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',_0x484f9b);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x484f9b);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x484f9b);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x484f9b);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x484f9b);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',_0x484f9b);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x484f9b);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',_0x484f9b);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x484f9b);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x484f9b);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x484f9b);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x484f9b);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x484f9b);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x484f9b);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x484f9b);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x484f9b);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x484f9b);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x484f9b);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x484f9b);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x484f9b);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x484f9b);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x484f9b);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x484f9b);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x484f9b);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x484f9b);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'},_0x484f9b);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x484f9b);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x484f9b);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x484f9b);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x484f9b);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x484f9b);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x484f9b);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x484f9b);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'},_0x484f9b);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x484f9b);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x484f9b);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x484f9b);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x484f9b);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_NUMBERED_LIST_ARABIC_INDIC':return t({'string':'numbered\x20list\x20(arabic-indic)','id':'ELEMENT_NUMBERED_LIST_ARABIC_INDIC'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x484f9b);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x484f9b);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'},_0x484f9b);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'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_TYPE':return t({'string':'table\x20cell\x20type','id':'FORMAT_TABLE_CELL_TYPE'});case'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x484f9b);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x484f9b);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'},_0x484f9b);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x484f9b);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'},_0x484f9b);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x484f9b);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x484f9b);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x484f9b);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x484f9b);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x484f9b);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'},_0x484f9b);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x484f9b);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 _0x9f122b({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x484f9b);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x9f122b({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x484f9b);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x484f9b);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'},_0x484f9b);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'},_0x484f9b);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'},_0x484f9b);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x16b415;}}class E{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x4ac397,_0x130bd7){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x4ac397,this['_locale']=_0x130bd7;}['getDescriptions'](_0x25ffe7){const _0x11e825=[],_0x220c84=new Set(),_0x34867c=new Set();for(let _0x4ad353=0x0;_0x4ad353<_0x25ffe7['length'];_0x4ad353++){const _0x2c1650=_0x25ffe7[_0x4ad353];if(!_0x2c1650['isInContent'])continue;const _0x10fcd4=this['_handleCustomCallbackDescription'](_0x2c1650);if(_0x10fcd4){if(null!=_0x2c1650['subType']){if(_0x220c84['has'](_0x2c1650['subType']))continue;_0x220c84['add'](_0x2c1650['subType']);}_0x11e825['push'](_0x10fcd4);}else{if('attribute'==_0x2c1650['type']){const _0x228711=_0x2c1650['data']['key'];if(_0x34867c['has'](_0x228711))continue;_0x34867c['add'](_0x2c1650['data']['key']),_0x228711==m?this['_handleRenameSuggestionDescription'](_0x11e825,_0x2c1650):this['_handleAttributeSuggestionDescription'](_0x11e825,_0x2c1650);continue;}'insertion'!=_0x2c1650['type']&&'deletion'!=_0x2c1650['type']||this['_handleInsertRemoveSuggestionDescription'](_0x11e825,_0x2c1650,_0x25ffe7[_0x4ad353+0x1]);}}return this['_resolveDescriptionItems'](_0x11e825);}['registerDescriptionCallback'](_0x3c8106){this['_customCallbacks']['push'](_0x3c8106);}['registerElementLabel'](_0x417464,_0x4a2977,_0x5d440e=_0x1bfb2d['normal']){'function'==typeof _0x417464?_0x1714fe(this['_itemLabelsCallbacks'],{'matchingCallback':_0x417464,'label':_0x4a2977,'priority':_0x5d440e}):this['_itemLabels']['set'](_0x417464,_0x4a2977);}['registerAttributeLabel'](_0x5f0462,_0x4075f4){this['_attributeLabels']['set'](_0x5f0462,_0x4075f4);}['getItemLabel'](_0x50caea,_0x9f6232=0x1){let _0x15aef4;for(const _0x540456 of this['_itemLabelsCallbacks'])if(_0x540456['matchingCallback'](_0x50caea)){_0x15aef4=_0x540456['label'];break;}return _0x15aef4||(_0x15aef4=this['_itemLabels']['get'](_0x50caea['name'])),_0x15aef4?_0x15aef4(_0x9f6232):0x1!==_0x9f6232?_0x9f6232+'\x20'+_0x50caea['name']+'s':''+_0x50caea['name'];}['_addDescriptionItems'](_0x2dc1aa,_0x476bf8){const _0x1cd7b5=_0x476bf8['getFirstRange']()['getWalker'](),_0x253996='insertion'==_0x476bf8['type']?'add':'remove';for(const _0x4b3147 of _0x1cd7b5){const _0xc90e3e=_0x4b3147['item'],_0x5a380c=_0x2dc1aa[_0x2dc1aa['length']-0x1];if(_0xc90e3e['is']('$textProxy'))_0x5a380c&&_0x5a380c['type']['indexOf']('Container')>-0x1&&_0x2dc1aa['pop'](),_0x5a380c&&'text'==_0x5a380c['type']?_0x5a380c[_0x253996]+=_0xc90e3e['data']:_0x2dc1aa['push']({'type':'text','add':'add'==_0x253996?_0xc90e3e['data']:'','remove':'remove'==_0x253996?_0xc90e3e['data']:''});else{if(this['_schema']['isObject'](_0xc90e3e)){const _0x3ef87e=_0xc90e3e;if(_0x5a380c&&_0x5a380c['type']['indexOf']('Container')>-0x1&&_0x2dc1aa['pop'](),'elementEnd'==_0x4b3147['type'])continue;_0x5a380c&&_0x5a380c['type']==_0x253996+'Object'&&_0x5a380c['element']['name']==_0x3ef87e['name']?_0x5a380c['quantity']++:_0x2dc1aa['push']({'type':_0x253996+'Object','element':_0x3ef87e,'quantity':0x1}),_0x1cd7b5['skip'](_0x4e3c6c=>!('elementEnd'==_0x4e3c6c['type']&&_0x4e3c6c['item']==_0xc90e3e));}else{if(this['_schema']['checkChild'](_0xc90e3e,'$text')||_0xc90e3e['is']('element','softBreak')){const _0x207989=_0xc90e3e;if('add'==_0x253996&&'elementStart'==_0x4b3147['type']||'remove'==_0x253996&&'elementEnd'==_0x4b3147['type'])continue;if(_0x5a380c&&-0x1==_0x5a380c['type']['indexOf']('Container')){'text'==_0x5a380c['type']&&(_0x5a380c[_0x253996]+='\x0a');continue;}let _0x1ab935;if(_0x1ab935='add'==_0x253996?_0x207989['nextSibling']&&!this['_schema']['isObject'](_0x207989['nextSibling'])?_0x207989['nextSibling']:null:_0x207989['previousSibling']&&!this['_schema']['isObject'](_0x207989['previousSibling'])?_0x207989['previousSibling']:null,_0x207989['isEmpty']||_0x1ab935&&_0x1ab935['isEmpty']){const _0x568838=_0x1ab935&&_0x1ab935['isEmpty']?_0x1ab935:_0x207989;_0x5a380c&&_0x5a380c['type']==_0x253996+'EmptyContainer'&&_0x5a380c['element']['name']==_0x568838['name']?_0x5a380c['quantity']++:_0x2dc1aa['push']({'type':_0x253996+'EmptyContainer','element':_0x568838,'quantity':0x1});}else _0x2dc1aa['push']({'type':_0x253996+'Container','element':_0x207989});}}}}}['_resolveDescriptionItems'](_0x5e17d7){const _0x1bef36=this['_locale'],_0xceb01=[],_0x356815=[],_0x400d0e=[];for(const _0x1183d1 of _0x5e17d7)switch(_0x1183d1['type']){case'text':if(_0x1183d1['add']=_0x1183d1['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x1183d1['remove']=_0x1183d1['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x1183d1['add']&&''!=_0x1183d1['remove']){_0xceb01['push']({'type':'replace','content':o(_0x1bef36,'REPLACE_TEXT',['\x22'+_0x1183d1['remove']+'\x22','\x22'+_0x1183d1['add']+'\x22'])});continue;}if(null!=_0x1183d1['add']['match'](/^ +$/)){_0xceb01['push']({'type':'insertion','content':o(_0x1bef36,'*Insert:*\x20%0',o(_0x1bef36,'ELEMENT_SPACE',_0x1183d1['add']['length']))});continue;}if(null!=_0x1183d1['remove']['match'](/^ +$/)){_0xceb01['push']({'type':'deletion','content':o(_0x1bef36,'*Remove:*\x20%0',o(_0x1bef36,'ELEMENT_SPACE',_0x1183d1['remove']['length']))});continue;}if(''!=_0x1183d1['add']){_0xceb01['push']({'type':'insertion','content':o(_0x1bef36,'*Insert:*\x20%0','\x22'+_0x1183d1['add']+'\x22')});continue;}_0xceb01['push']({'type':'deletion','content':o(_0x1bef36,'*Remove:*\x20%0','\x22'+_0x1183d1['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0xceb01['push']({'type':'insertion','content':o(_0x1bef36,'*Insert:*\x20%0',this['getItemLabel'](_0x1183d1['element'],_0x1183d1['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0xceb01['push']({'type':'deletion','content':o(_0x1bef36,'*Remove:*\x20%0',this['getItemLabel'](_0x1183d1['element'],_0x1183d1['quantity']))});continue;case'addContainer':_0xceb01['push']({'type':'insertion','content':o(_0x1bef36,'*Split:*\x20%0',this['getItemLabel'](_0x1183d1['element'],_0x1183d1['quantity']))});continue;case'removeContainer':_0xceb01['push']({'type':'deletion','content':o(_0x1bef36,'*Merge:*\x20%0',this['getItemLabel'](_0x1183d1['element'],_0x1183d1['quantity']))});continue;case'addFormat':_0x356815['push'](_0x1183d1['key']);continue;case'removeFormat':_0x400d0e['push'](_0x1183d1['key']);continue;default:_0xceb01['push'](_0x1183d1);}if(_0x356815['length']){const _0x170372=_0x356815['map'](_0x32c141=>this['_attributeLabels']['has'](_0x32c141)?this['_attributeLabels']['get'](_0x32c141):_0x32c141)['join'](',\x20');_0xceb01['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x170372)});}if(_0x400d0e['length']){const _0x210311=_0x400d0e['map'](_0x216007=>this['_attributeLabels']['has'](_0x216007)?this['_attributeLabels']['get'](_0x216007):_0x216007)['join'](',\x20');_0xceb01['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x210311)});}return _0xceb01;}['_handleCustomCallbackDescription'](_0x44c544){for(const _0x4fc7d2 of this['_customCallbacks']){const _0x489e54=_0x4fc7d2(_0x44c544);if(_0x489e54&&'type'in _0x489e54)return _0x489e54;}}['_handleAttributeSuggestionDescription'](_0x500154,_0x4dde38){const _0x43c707=_0x4dde38['data'],_0x275ca3=void 0x0===_0x43c707['newValue']?'removeFormat':'addFormat';_0x500154['push']({'type':_0x275ca3,'key':_0x43c707['key']});}['_handleRenameSuggestionDescription'](_0x1009a7,_0x190d56){_0x1009a7['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x190d56['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x3930e8,_0x292b21,_0x38efc3){if(this['_addDescriptionItems'](_0x3930e8,_0x292b21),_0x38efc3&&_0x38efc3['getFirstRange']()&&!_0x292b21['getFirstRange']()['end']['isEqual'](_0x38efc3['getFirstRange']()['start'])){const _0x1a0f5e=_0x3930e8[_0x3930e8['length']-0x1],_0x1abb89='insertion'==_0x292b21['type']?'add':'remove';_0x1a0f5e&&'text'==_0x1a0f5e['type']&&(_0x1a0f5e[_0x1abb89]+='\x0a');}}}class U extends _0xb2d1b5{['afterInit'](){const _0x3fb591=this['editor'],_0x33ade8=_0x3fb591['plugins']['get']('TrackChangesEditing');_0x3fb591['commands']['get']('showAIAssistant')&&_0x33ade8['enableCommand']('showAIAssistant');}}class V extends _0xb2d1b5{['afterInit'](){const _0x99fad=this['editor'],_0x5e75fe=_0x99fad['plugins']['get']('TrackChangesEditing');_0x99fad['commands']['get']('toggleAi')&&_0x5e75fe['enableCommand']('toggleAi');}}class F extends _0xb2d1b5{['afterInit'](){const _0x4eecec=this['editor'],_0x2e3bd0=_0x4eecec['plugins']['get']('TrackChangesEditing');_0x4eecec['commands']['get']('aiQuickAction')&&_0x2e3bd0['enableCommand']('aiQuickAction');}}class G extends _0xb2d1b5{['afterInit'](){const _0x4ba15a=this['editor'],_0xa1b6b1=_0x4ba15a['locale'];if(!_0x4ba15a['plugins']['has']('AlignmentEditing'))return;const _0x2e7ccf=_0x4ba15a['plugins']['get']('TrackChangesEditing');_0x2e7ccf['enableDefaultAttributesIntegration']('alignment'),_0x2e7ccf['descriptionFactory']['registerAttributeLabel']('alignment',o(_0xa1b6b1,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x337714=this['editor'],_0x2b33dc=_0x337714['locale'];_0x337714['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x19baa7=>{if('formatBlock'!=_0x19baa7['type'])return;const {data:_0x47d29b}=_0x19baa7;if(_0x47d29b&&'alignment'==_0x47d29b['commandName']){const _0x4c4ac4=_0x47d29b['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x2b33dc,'*Format:*\x20%0',function(_0x1b8fc0){switch(_0x1b8fc0){case'left':return o(_0x2b33dc,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x2b33dc,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x2b33dc,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x2b33dc,'FORMAT_JUSTIFY_TEXT');}}(_0x4c4ac4))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class L extends _0xb2d1b5{['afterInit'](){const _0x34b2fe=this['editor'],_0x414bef=_0x34b2fe['plugins']['get']('TrackChangesEditing'),_0x483767=_0x34b2fe['locale'];for(const _0x2d39bf of ti){if(!_0x34b2fe['plugins']['has'](_0x2d39bf))continue;const _0x1b5698=_0x2d39bf['slice'](0x0,-0x7)['toLowerCase'](),_0x18717d='FORMAT_'+_0x1b5698['toUpperCase']();_0x414bef['enableDefaultAttributesIntegration'](_0x1b5698),_0x414bef['descriptionFactory']['registerAttributeLabel'](_0x1b5698,o(_0x483767,_0x18717d));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5e1538=this['editor'],_0x4d6fd7=_0x5e1538['locale'],_0x2722ce=_0x5e1538['plugins']['get']('TrackChangesEditing');function _0x491c32(_0xf37232,_0x4784b0){_0x2722ce['descriptionFactory']['registerDescriptionCallback'](_0x5e07b1=>{if('formatInline'!=_0x5e07b1['type'])return;const {data:_0x2816fa}=_0x5e07b1;return _0x2816fa&&_0x2816fa['commandName']===_0xf37232?_0x2816fa['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4d6fd7,'*Format:*\x20%0',_0x4784b0)}:{'type':'format','content':o(_0x4d6fd7,'*Remove\x20format:*\x20%0',_0x4784b0)}:void 0x0;});}_0x491c32('bold',o(_0x4d6fd7,'FORMAT_BOLD')),_0x491c32('italic',o(_0x4d6fd7,'FORMAT_ITALIC')),_0x491c32('underline',o(_0x4d6fd7,'FORMAT_UNDERLINE')),_0x491c32('code',o(_0x4d6fd7,'FORMAT_CODE')),_0x491c32('strikethrough',o(_0x4d6fd7,'FORMAT_STRIKETHROUGH')),_0x491c32('subscript',o(_0x4d6fd7,'FORMAT_SUBSCRIPT')),_0x491c32('superscript',o(_0x4d6fd7,'FORMAT_SUPERSCRIPT'));}}class J extends _0xb2d1b5{['afterInit'](){const _0x4f40ca=this['editor'],_0x14c6b5=_0x4f40ca['locale'];if(!_0x4f40ca['plugins']['has']('BlockQuoteEditing'))return;const _0x369cc1=_0x4f40ca['plugins']['get']('TrackChangesEditing'),_0x3d7dad=this['editor']['commands']['get']('blockQuote');_0x369cc1['enableCommand']('blockQuote',(_0x22d44e,_0x492844={})=>{const _0x13f210=this['editor']['model']['document']['selection'],_0x20ed63=_0x492844&&void 0x0!==_0x492844['forceValue']?_0x492844['forceValue']:!_0x3d7dad['value'];let _0x1c7a03=[];if(_0x20ed63){const _0x5b034b=Array['from'](_0x13f210['getSelectedBlocks']())['filter'](_0x57ac3e=>oo(_0x57ac3e)||function(_0x453bb1,_0x1e7c90){const _0x4491c2=_0x1e7c90['checkChild'](_0x453bb1['parent'],'blockQuote'),_0x1e8ba0=_0x1e7c90['checkChild'](['$root','blockQuote'],_0x453bb1);return _0x4491c2&&_0x1e8ba0;}(_0x57ac3e,this['editor']['model']['schema']));_0x1c7a03=to(_0x5b034b,_0x4f40ca['model']);}else{const _0x64c75d=Array['from'](_0x13f210['getSelectedBlocks']())['filter'](_0x5827a8=>oo(_0x5827a8));_0x1c7a03=to(_0x64c75d,_0x4f40ca['model']);}_0x4f40ca['model']['change'](()=>{for(const _0x2037a3 of _0x1c7a03)_0x369cc1['markBlockFormat'](_0x2037a3,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x20ed63}]});});}),_0x369cc1['descriptionFactory']['registerDescriptionCallback'](_0x2381ff=>{const {data:_0x2eedf1}=_0x2381ff;if(_0x2eedf1&&'blockQuote'==_0x2eedf1['commandName']){const _0x471160=o(_0x14c6b5,'ELEMENT_BLOCK_QUOTE');return _0x2eedf1['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x14c6b5,'*Set\x20format:*\x20%0',_0x471160)}:{'type':'format','content':o(_0x14c6b5,'*Remove\x20format:*\x20%0',_0x471160)};}});}}function oo(_0x26af56){return'blockQuote'==_0x26af56['parent']['name'];}class q extends _0xb2d1b5{['afterInit'](){const _0x53f905=this['editor'],_0x4ba5dd=_0x53f905['locale'],_0x518499=_0x53f905['plugins']['get']('TrackChangesEditing');_0x53f905['plugins']['has']('BookmarkEditing')&&(_0x518499['enableCommand']('insertBookmark'),_0x518499['enableDefaultAttributesIntegration']('updateBookmark'),_0x518499['descriptionFactory']['registerDescriptionCallback'](_0x413c3e=>{if('insertion'!=_0x413c3e['type']&&'deletion'!=_0x413c3e['type']&&'attribute'!=_0x413c3e['type'])return;const _0xb585c=_0x413c3e['getContainedElement']();if(null==_0xb585c)return;if(!_0xb585c['is']('element','bookmark'))return;const _0xf7ef00=_0xb585c['getAttribute']('bookmarkId');if('insertion'==_0x413c3e['type'])return{'type':'insertion','content':o(_0x4ba5dd,'*Insert:*\x20%0','\x22'+_0xf7ef00+'\x22\x20'+o(_0x4ba5dd,'ELEMENT_BOOKMARK'))};if('deletion'==_0x413c3e['type'])return{'type':'deletion','content':o(_0x4ba5dd,'*Remove:*\x20%0','\x22'+_0xf7ef00+'\x22\x20'+o(_0x4ba5dd,'ELEMENT_BOOKMARK'))};const {data:_0x15d9fa}=_0x413c3e;if(!_0x15d9fa||'bookmarkId'!=_0x15d9fa['key'])return;return{'type':'format','content':o(_0x4ba5dd,'*Set\x20bookmark:*\x20%0','\x22'+_0x15d9fa['newValue']+'\x22')};}));}}class z extends _0xb2d1b5{['afterInit'](){const _0x19f553=this['editor'];_0x19f553['plugins']['has']('CaseChange')&&(_0x19f553['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x19f553['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x19f553['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0xb2d1b5{['afterInit'](){const _0x527c53=this['editor'];_0x527c53['commands']['get']('ckbox')&&_0x527c53['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class W extends _0xb2d1b5{['afterInit'](){const _0x2902a2=this['editor'];if(!_0x2902a2['plugins']['has']('CodeBlock'))return;const _0x1cf4ba=_0x2902a2['plugins']['get']('TrackChangesEditing'),_0x47227d=_0x2902a2['locale'],_0x474fca=_0x2902a2['config']['get']('codeBlock')['languages'],_0xbc0e1=_0x2902a2['commands']['get']('codeBlock');_0x1cf4ba['enableCommand']('indentCodeBlock'),_0x1cf4ba['enableCommand']('outdentCodeBlock'),_0x1cf4ba['enableCommand']('codeBlock',(_0x1464e5,_0x5e4230={})=>{const _0x385a95=_0x2902a2['model'],_0x4c99f6=_0x2902a2['model']['document']['selection'],_0x30a035=_0x5e4230&&void 0x0!==_0x5e4230['forceValue']?_0x5e4230['forceValue']:!_0xbc0e1['value'];let _0x47d41b;_0x5e4230['language']||(_0x5e4230['language']=_0x474fca[0x0]['language']),_0x47d41b=_0x30a035?Array['from'](_0x4c99f6['getSelectedBlocks']())['filter'](_0x58eaec=>co(_0x58eaec)||function(_0x3fdae9,_0x4b34c7){if(_0x3fdae9['is']('rootElement')||_0x4b34c7['isLimit'](_0x3fdae9))return!0x1;return _0x4b34c7['checkChild'](_0x3fdae9['parent'],'codeBlock');}(_0x58eaec,_0x385a95['schema'])):Array['from'](_0x4c99f6['getSelectedBlocks']())['filter'](_0x1dfd56=>co(_0x1dfd56));const _0x2628d0=to(_0x47d41b,_0x385a95);_0x385a95['change'](()=>{for(const _0x7f2ebb of _0x2628d0)_0x1cf4ba['markBlockFormat'](_0x7f2ebb,{'commandName':'codeBlock','commandParams':[{..._0x5e4230,'forceValue':_0x30a035}],'formatGroupId':'blockName'});});}),(_0x1cf4ba['descriptionFactory']['registerElementLabel']('codeBlock',_0x1ef83a=>o(_0x47227d,'ELEMENT_CODE_BLOCK',_0x1ef83a)),_0x1cf4ba['descriptionFactory']['registerDescriptionCallback'](_0x4649b1=>{if('formatBlock'!=_0x4649b1['type'])return;const _0x5e7bb7=_0x47227d['t'],{data:_0x5752fa}=_0x4649b1;if(!_0x5752fa||'codeBlock'!=_0x5752fa['commandName'])return;const _0x116513=_0x5752fa['commandParams'][0x0]['language'],_0x7d06ad=_0x5e7bb7(_0x474fca['find'](_0x5b241b=>_0x5b241b['language']===_0x116513)['label'])['toLowerCase']();return _0x5752fa['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x47227d,'*Set\x20format:*\x20%0',o(_0x47227d,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x7d06ad+')')}:{'type':'format','content':o(_0x47227d,'*Remove\x20format:*\x20%0',o(_0x47227d,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x3216f1){return'codeBlock'==_0x3216f1['name'];}class H extends _0xb2d1b5{['afterInit'](){const _0x526937=this['editor'];if(!_0x526937['plugins']['has']('CommentsEditing'))return;_0x526937['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class Q extends _0xb2d1b5{static get['requires'](){return[_0x4aa35b];}['init'](){const _0x2c64af=this['editor'],_0x28f95f=_0x2c64af['plugins']['get']('TrackChangesEditing');_0x28f95f['enableCommand']('delete');const _0x4906be=_0x2c64af['commands']['get']('deleteForward');_0x28f95f['enableCommand']('deleteForward',(_0x1886f9,_0x119d6c={})=>{const _0x2d2b02=_0x2c64af['model']['createSelection'](_0x2c64af['model']['document']['selection']);_0x2d2b02['isCollapsed']&&_0x2c64af['model']['modifySelection'](_0x2d2b02,{'direction':'forward','unit':_0x119d6c['unit']});const _0x269cbc=_0x2d2b02['getFirstRange'](),_0x101b8f=_0x23cc14['fromRange'](_0x269cbc);let _0x5afc36;_0x1886f9(_0x119d6c),_0x5afc36='$graveyard'==_0x101b8f['root']['rootName']?_0x2c64af['model']['createRange'](_0x269cbc['start']):_0x2c64af['model']['createRange'](_0x101b8f['start'],_0x101b8f['end']),_0x101b8f['detach'](),_0x2c64af['model']['enqueueChange'](_0x4906be['buffer']['batch'],_0xd18584=>{_0x4906be['buffer']['lock'](),_0xd18584['setSelection'](_0xd18584['createRange'](_0x5afc36['end'])),_0x4906be['buffer']['unlock']();});});}}class X extends _0xb2d1b5{['afterInit'](){const _0x372934=this['editor'];if(!_0x372934['plugins']['has']('ListEditing'))return;const _0x5e3f9f=_0x372934['locale'],_0x26b74f=_0x372934['plugins']['get']('TrackChangesEditing'),_0xb9f395=_0x372934['plugins']['has']('TodoListEditing'),_0x856bc7=!!_0x372934['config']['get']('list.multiBlock');function _0x3378be(_0x445df9){return{'type':'format','content':''+o(_0x5e3f9f,'*Set\x20format:*\x20%0',_0x445df9)};}function _0x147264(_0x141f60){return{'type':'format','content':''+o(_0x5e3f9f,'*Remove\x20format:*\x20%0',_0x141f60)};}_0x26b74f['enableDefaultAttributesIntegration']('numberedList'),_0x26b74f['enableDefaultAttributesIntegration']('bulletedList'),_0x26b74f['enableDefaultAttributesIntegration']('customNumberedList'),_0x26b74f['enableDefaultAttributesIntegration']('customBulletedList'),_0x26b74f['enableDefaultAttributesIntegration']('indentList'),_0x26b74f['enableDefaultAttributesIntegration']('outdentList'),_0x26b74f['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x26b74f['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x856bc7&&(_0x26b74f['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x26b74f['enableDefaultAttributesIntegration']('mergeListItemForward')),_0xb9f395&&(_0x26b74f['enableDefaultAttributesIntegration']('todoList'),_0x26b74f['enableDefaultAttributesIntegration']('checkTodoList'),_0x26b74f['descriptionFactory']['registerDescriptionCallback'](_0xfc00ea=>{const {data:_0x333f21}=_0xfc00ea;if(_0x333f21&&'todoListChecked'==_0x333f21['key'])return{'type':'format','content':_0x333f21['newValue']?o(_0x5e3f9f,'*Check\x20item*'):o(_0x5e3f9f,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x436944=>{if(_0x436944['batch']['isUndo'])return!0x1;let _0x491ca7=!0x1;const _0x41fddf=_0x26b74f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x366fc9=>'todoListChecked'===_0x26b74f['_getAttributeKey'](_0x366fc9));for(const _0x49acda of _0x41fddf){'todo'!=_0x49acda['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x26b74f['_findSuggestions'](_0x49acda['getFirstRange'](),'attribute')['find'](_0x89c66=>'listType'===_0x26b74f['_getAttributeKey'](_0x89c66['suggestion']))||(_0x436944['removeMarker'](_0x49acda['getFirstMarker']()),_0x491ca7=!0x0));}return _0x491ca7;})),_0x26b74f['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x5e3f9f,'FORMAT_INDENT'));const _0x3f03d6={'type':'format','content':''};_0x26b74f['descriptionFactory']['registerDescriptionCallback'](_0x48cb13=>{const {data:_0x25708a}=_0x48cb13;if(!_0x25708a||'listType'!=_0x25708a['key'])return;let _0x3b572b=_0x48cb13['head'];for(;_0x3b572b;){if(_0x3b572b['data']&&(('listStyle'==_0x3b572b['data']['key']||'listMarkerStyle'==_0x3b572b['data']['key'])&&(_0x3b572b['data']['newValue']&&'default'!=_0x3b572b['data']['newValue']||'default'!=_0x3b572b['data']['oldValue']&&!_0x25708a['newValue'])||!_0x856bc7&&_0x3b572b['data']['key']==m))return _0x3f03d6;_0x3b572b=_0x3b572b['next'];}if(null==_0x25708a['newValue'])switch(_0x25708a['oldValue']){case'bulleted':return _0x147264(o(_0x5e3f9f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x147264(o(_0x5e3f9f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x147264(o(_0x5e3f9f,'ELEMENT_TODO_LIST'));}switch(_0x25708a['newValue']){case'bulleted':return _0x3378be(o(_0x5e3f9f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3378be(o(_0x5e3f9f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3378be(o(_0x5e3f9f,'ELEMENT_TODO_LIST'));}}),_0x26b74f['descriptionFactory']['registerDescriptionCallback'](_0x245095=>{const {data:_0x2d2242}=_0x245095;if(_0x2d2242&&'listIndent'==_0x2d2242['key'])return null==_0x2d2242['newValue']||null==_0x2d2242['oldValue']&&0x0==_0x2d2242['newValue']?_0x3f03d6:void 0x0;}),_0x26b74f['descriptionFactory']['registerDescriptionCallback'](_0x99feca=>{if('attribute'!=_0x99feca['type'])return;const {data:_0x5511cb}=_0x99feca;if(!_0x5511cb||'listItemId'!=_0x5511cb['key'])return;const _0x1c557a=Te(_0x99feca);return'newValue'==_0x1c557a?{'type':'format','content':o(_0x5e3f9f,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1c557a?{'type':'format','content':o(_0x5e3f9f,'*Split:*\x20list\x20item')}:_0x3f03d6;}),_0x372934['model']['document']['registerPostFixer'](_0x2be671=>this['listItemIdFixer'](_0x2be671)),_0x372934['model']['document']['registerPostFixer'](_0x21095c=>this['noTrackChangesFixer'](_0x21095c)),_0x372934['model']['document']['on']('change:data',(_0x178b5b,_0x4cb61b)=>{if(_0x4cb61b['isUndo']||!_0x4cb61b['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x10b27b){if(_0x10b27b['batch']['isUndo']||!_0x10b27b['batch']['isLocal'])return!0x1;let _0x533bc3=!0x1;const _0x19640d=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x597888=>_0x597888['data']&&'listItemId'==_0x597888['data']['key'])['filter'](_0x432e5e=>_0x432e5e['data']['newValue']&&_0x432e5e['data']['oldValue']);for(const _0x3f65a3 of _0x19640d)Te(_0x3f65a3)||(_0x10b27b['removeMarker'](_0x3f65a3['getFirstMarker']()),_0x533bc3=!0x0);return _0x533bc3;}['noTrackChangesFixer'](_0x3e1edc){if(_0x3e1edc['batch']['isUndo']||!_0x3e1edc['batch']['isLocal'])return!0x1;const _0x2a0b9b=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x2a0b9b['trackChangesCommand']['value'])return!0x1;let _0x58498c=!0x1;const _0x5112b6=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x550f30=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x16aa18=>'attribute'==_0x16aa18['type'])['filter'](_0x538fcd=>_0x5112b6['includes'](_0x538fcd['attributeKey']));if(0x0==_0x550f30['length'])return _0x58498c;for(const _0x56a3ff of _0x550f30){const _0x565437=_0x2a0b9b['_findSuggestions'](_0x56a3ff['range'],'attribute')['filter'](_0x5280af=>!_0x5280af['meta']['isNextTo'])['map'](_0x46bbb0=>_0x46bbb0['suggestion'])['filter'](_0x41e807=>{const _0x598d5c=_0x2a0b9b['_getAttributeKey'](_0x41e807);return _0x5112b6['includes'](_0x598d5c);});if(_0x565437['length']){for(const _0x2e24d4 of _0x565437)_0x3e1edc['removeMarker'](_0x2e24d4['getFirstMarker']());_0x58498c=!0x0;}}return _0x58498c;}['assureChains'](){const _0x5a83d8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x43ad8e=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x1e9a78;const _0x550576=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4339d7=>{if(_0x4339d7['data']['oldRange']||!_0x4339d7['data']['newRange'])return null;if(!_0x4339d7['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x1bd4a6}=_0x5a83d8['_splitMarkerName'](_0x4339d7['name']);if(!_0x5a83d8['hasSuggestion'](_0x1bd4a6))return null;const _0x5b64ba=_0x5a83d8['getSuggestion'](_0x1bd4a6);return _0x43ad8e['includes'](_0x5b64ba['data']['key']);})['map'](_0x3f495c=>{const {id:_0x204c4f}=_0x5a83d8['_splitMarkerName'](_0x3f495c['name']),_0x109dda=_0x5a83d8['getSuggestion'](_0x204c4f);return _0x1e9a78=_0x109dda['attributes']['groupId'],_0x109dda['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x550576['size'])return;const _0x4576d5=_0x5a83d8['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x325fbf=>'attribute'==_0x325fbf['type']&&_0x325fbf['data']&&_0x43ad8e['includes'](_0x325fbf['data']['key'])&&_0x325fbf['attributes']['groupId']!=_0x1e9a78)['map'](_0x40e09f=>({'listItem':_0x40e09f['getFirstRange']()['start']['nodeAfter'],'groupId':_0x40e09f['attributes']['groupId']})),_0x2850cc=new Set();for(const {groupId:_0x16f9fb,listItem:_0x59750e}of _0x4576d5)_0x550576['has'](_0x59750e)&&_0x2850cc['add'](_0x16f9fb);for(const _0x338c9b of _0x5a83d8['getSuggestions']())_0x2850cc['has'](_0x338c9b['attributes']['groupId'])&&_0x338c9b['setAttribute']('groupId',_0x1e9a78);}['_supportLegacySuggestions'](){const _0x19c513=this['editor'],_0x48f3a1=_0x19c513['locale'],_0x1851a5=_0x19c513['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x1851a5['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x596e66,_0xfcd0e7){const _0x5510de=[];for(let _0x2cb82c of _0x596e66)_0x2cb82c['start']['nodeAfter']===_0x2cb82c['end']['parent']&&(_0x2cb82c=_0x19c513['model']['createRange'](_0x19c513['model']['createPositionAt'](_0x2cb82c['start']['nodeAfter'],0x0))),_0x5510de['push'](_0x2cb82c);_0x19c513['model']['change'](_0x56a37b=>{const _0x47e37b=_0x19c513['model']['document']['selection'],_0xb46773=Array['from'](_0x47e37b['getRanges']())['map'](_0x4a6587=>_0x23cc14['fromRange'](_0x4a6587));_0x56a37b['setSelection'](_0x5510de),_0x19c513['commands']['get'](_0xfcd0e7['commandName'])['refresh'](),_0xfcd0e7['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x19c513['execute'](_0xfcd0e7['commandName'],..._0xfcd0e7['commandParams']),_0x56a37b['setSelection'](_0xb46773);for(const _0x3144dd of _0xb46773)_0x3144dd['detach']();});}),_0x1851a5['descriptionFactory']['registerElementLabel'](function(_0x1335cd){const _0x32a042=!_0x19c513['model']['schema']['isObject'](_0x1335cd),_0x531fc3=_0x1335cd['previousSibling'],_0x11cf9f=_0x1335cd['nextSibling'],_0x18ceb8=_0x1335cd['getAttribute']('listItemId'),_0x52ac80=!_0x531fc3||_0x531fc3['getAttribute']('listItemId')!==_0x18ceb8,_0x3392e4=!_0x11cf9f||_0x11cf9f['getAttribute']('listItemId')!==_0x18ceb8;return _0x32a042&&Boolean(_0x18ceb8)&&_0x52ac80&&_0x3392e4;},_0x2895e4=>o(_0x48f3a1,'ELEMENT_LIST_ITEM',_0x2895e4));}['_registerLegacyDescription'](){const _0x208076=this['editor'],_0x5f03b6=_0x208076['locale'];function _0x4e1cea(_0x3b84b6){const _0x3a4eeb=_0x208076['commands']['get']('bulletedList')['value'],_0x2b6094=_0x208076['commands']['get']('numberedList')['value'];return'numberedList'===_0x3b84b6?_0x3a4eeb:_0x2b6094;}_0x208076['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0xe7caae){if('formatBlock'!=_0xe7caae['type'])return;const {data:_0xc9c486}=_0xe7caae;if(!_0xc9c486)return;let _0x2a3aa9,_0x15f23a,_0x24e56b,_0x5578fe;switch(_0xc9c486['commandName']){case'bulletedList':_0x24e56b=_0xc9c486['commandParams'][0x0]['forceValue'],_0x5578fe=_0x4e1cea(_0xc9c486['commandName']),_0x2a3aa9=_0x24e56b?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5578fe&&_0x208076['config']['get']('list.multiBlock')||(_0x2a3aa9='*Change\x20to:*\x20%0'),_0x15f23a={'type':'format','content':o(_0x5f03b6,_0x2a3aa9,o(_0x5f03b6,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x24e56b=_0xc9c486['commandParams'][0x0]['forceValue'],_0x5578fe=_0x4e1cea(_0xc9c486['commandName']),_0x2a3aa9=_0x24e56b?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5578fe&&_0x208076['config']['get']('list.multiBlock')||(_0x2a3aa9='*Change\x20to:*\x20%0'),_0x15f23a={'type':'format','content':o(_0x5f03b6,_0x2a3aa9,o(_0x5f03b6,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x2a3aa9='*Indent:*\x20%0',_0x15f23a={'type':'format','content':o(_0x5f03b6,_0x2a3aa9,o(_0x5f03b6,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x2a3aa9=function(_0x4f369){const _0xb6d535=_0x4f369['getFirstRange']();let _0x5bf898=_0xb6d535['start']['nodeAfter'];for(;_0x5bf898&&_0xb6d535['containsItem'](_0x5bf898);){if(_0x5bf898['getAttribute']('listIndent')>0x0)return!0x1;_0x5bf898=_0x5bf898['nextSibling'];}return!0x0;}(_0xe7caae)?o(_0x5f03b6,'*Format:*\x20remove\x20from\x20%0',o(_0x5f03b6,function(_0x4ccfd1){return'ELEMENT_'+_0x4ccfd1['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0xe7caae))):o(_0x5f03b6,'*Outdent:*\x20%0',o(_0x5f03b6,'ELEMENT_LIST_ITEM')),_0x15f23a={'type':'format','content':_0x2a3aa9};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0xc9c486['multipleBlocks']&&(_0x2a3aa9='*Merge:*\x20%0',_0x15f23a={'type':'deletion','content':o(_0x5f03b6,_0x2a3aa9,o(_0x5f03b6,'ELEMENT_LIST_ITEM'))});}return _0x15f23a;});}}function Te(_0x32adab){let _0x1caa36=_0x32adab['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x1caa36;){const _0x35830e=_0x1caa36['getAttribute']('listItemId');if(!_0x35830e)return!0x1;if(_0x35830e==_0x32adab['data']['newValue'])return'newValue';if(_0x35830e==_0x32adab['data']['oldValue'])return'oldValue';_0x1caa36=_0x1caa36['previousSibling'];}return!0x1;}class Y extends _0xb2d1b5{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x4f2a34=this['editor']['config']['get']('list.properties'),_0x2105b4=this['editor']['plugins']['get']('TrackChangesEditing');_0x4f2a34['styles']&&_0x2105b4['enableDefaultAttributesIntegration']('listStyle'),_0x4f2a34['reversed']&&_0x2105b4['enableDefaultAttributesIntegration']('listReversed'),_0x4f2a34['startIndex']&&_0x2105b4['enableDefaultAttributesIntegration']('listStart');const _0x59a52c={'type':'format','content':''};_0x2105b4['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x122e91=this['editor']['locale'];_0x2105b4['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x122e91,'FORMAT_LIST_REVERSED')),_0x2105b4['descriptionFactory']['registerDescriptionCallback'](_0x1dbc98=>{const {data:_0x420713}=_0x1dbc98;if(_0x420713&&'listReversed'==_0x420713['key'])return null==_0x420713['newValue']||0x0==_0x420713['newValue']&&null==_0x420713['oldValue']?_0x59a52c:void 0x0;}),_0x2105b4['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x122e91,'FORMAT_LIST_START')),_0x2105b4['descriptionFactory']['registerDescriptionCallback'](_0x465e91=>{const {data:_0x4b9edd}=_0x465e91;if(_0x4b9edd&&'listStart'==_0x4b9edd['key'])return null==_0x4b9edd['newValue']||0x1==_0x4b9edd['newValue']&&null==_0x4b9edd['oldValue']?_0x59a52c:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x2e37a9=>{if(_0x2e37a9['batch']['isUndo'])return!0x1;let _0x28e6d9=!0x1;const _0x2e07e8=_0x2105b4['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x25a615=>{const _0x42b38e=_0x2105b4['_getAttributeKey'](_0x25a615);return'listStart'==_0x42b38e||'listReversed'==_0x42b38e;});for(const _0x99b9c3 of _0x2e07e8){const _0x50b74e=_0x99b9c3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x50b74e||'customNumbered'==_0x50b74e)continue;_0x2105b4['_findSuggestions'](_0x99b9c3['getFirstRange'](),'attribute')['find'](_0x57836c=>'listType'==_0x2105b4['_getAttributeKey'](_0x57836c['suggestion']))||(_0x2e37a9['removeMarker'](_0x99b9c3['getFirstMarker']()),_0x28e6d9=!0x0);}return _0x28e6d9;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x30f381){const _0x2f9b76=this['editor']['locale'],{data:_0x4519ae}=_0x30f381,_0x5c7f9a={'type':'format','content':''};if(!_0x4519ae||'listStyle'!=_0x4519ae['key'])return;if(!_0x4519ae['oldValue'])return'default'==_0x4519ae['newValue']?_0x5c7f9a:{'type':'format','content':''+o(_0x2f9b76,'*Set\x20format:*\x20%0',o(_0x2f9b76,this['_getTranslationKeyForListStyle'](_0x4519ae['newValue'])))};if(!_0x4519ae['newValue']){if('default'==_0x4519ae['oldValue'])return _0x5c7f9a;let _0x4772aa=_0x30f381['head'];for(;_0x4772aa;){if(_0x4772aa['data']&&'listType'==_0x4772aa['data']['key']&&_0x4772aa['data']['newValue'])return _0x5c7f9a;_0x4772aa=_0x4772aa['next'];}return{'type':'format','content':''+o(_0x2f9b76,'*Remove\x20format:*\x20%0',o(_0x2f9b76,this['_getTranslationKeyForListStyle'](_0x4519ae['oldValue'])))};}if('default'!=_0x4519ae['newValue'])return{'type':'format','content':''+o(_0x2f9b76,'*Set\x20format:*\x20%0',o(_0x2f9b76,this['_getTranslationKeyForListStyle'](_0x4519ae['newValue'])))};let _0x191e6a=_0x30f381['head'];for(;_0x191e6a;){if(_0x191e6a['data']&&'listType'==_0x191e6a['data']['key']&&_0x191e6a['data']['newValue']&&_0x191e6a['data']['oldValue'])return _0x5c7f9a;_0x191e6a=_0x191e6a['next'];}return{'type':'format','content':o(_0x2f9b76,'*Set\x20format:*\x20%0',o(_0x2f9b76,'ELEMENT_'+_0x30f381['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x4962c8=this['editor'],_0x30fe62=_0x4962c8['locale'];_0x4962c8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x852cae=>{if('formatBlock'!=_0x852cae['type'])return;const {data:_0x21d141}=_0x852cae;if(!_0x21d141)return;let _0x5d56f5,_0x37712f;switch(_0x21d141['commandName']){case'listStyle':_0x5d56f5='*Change\x20to:*\x20%0',_0x37712f={'type':'format','content':o(_0x30fe62,_0x5d56f5,o(_0x30fe62,this['_getTranslationKeyForListStyle'](_0x21d141['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5d56f5=_0x21d141['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x37712f={'type':'format','content':o(_0x30fe62,_0x5d56f5)};break;case'listStart':_0x5d56f5='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x37712f={'type':'format','content':o(_0x30fe62,_0x5d56f5,_0x21d141['commandParams'][0x0]['startIndex'])};}return _0x37712f;});}['_getTranslationKeyForListStyle'](_0x15dd52){return'ELEMENT_'+function(_0x4b811a){if(ye['includes'](_0x4b811a))return'bulleted';if(Se['includes'](_0x4b811a))return'numbered';return null;}(_0x15dd52)['toUpperCase']()+'_LIST_'+_0x15dd52['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];class Z extends _0xb2d1b5{['afterInit'](){const _0xf5c4ec=this['editor'];_0xf5c4ec['commands']['get']('emoji')&&_0xf5c4ec['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class tt extends _0xb2d1b5{static get['requires'](){return[_0x589834];}['init'](){const _0x4a9f00=this['editor'],_0x2188b3=_0x4a9f00['plugins']['get']('TrackChangesEditing'),_0x156753=_0x4a9f00['commands']['get']('enter');_0x2188b3['enableCommand']('enter',()=>{_0x4a9f00['model']['change'](_0x24b0ae=>{const _0x2b994d=_0x4a9f00['model']['document']['selection'],_0x54aa4d=_0x2b994d['getFirstPosition'](),_0x411a2f=_0x23cc14['fromRange'](_0x2b994d['getFirstRange']());if(_0x156753['enterBlock'](_0x24b0ae)){const _0x25a200=_0x4a9f00['model']['createPositionAt'](_0x54aa4d['parent']['nextSibling'],0x0),_0x1d5d8b=_0x24b0ae['createRange'](_0x54aa4d,_0x25a200);_0x2188b3['markInsertion'](_0x1d5d8b);}else _0x24b0ae['setSelection'](_0x24b0ae['createRange'](_0x411a2f['end']));_0x411a2f['detach'](),_0x156753['fire']('afterExecute',{'writer':_0x24b0ae});});});}}class nt extends _0xb2d1b5{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x5d4718=this['editor']['plugins']['get']('TrackChangesEditing');_0x5d4718['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x5d4718['enableCommand']('findNext'),_0x5d4718['enableCommand']('findPrevious'),_0x5d4718['enableCommand']('replace'),_0x5d4718['enableCommand']('replaceAll');}['handleFindCommand'](_0x463dbe,_0x5605ca,_0x4fd8b0={}){const _0x4e8bf4=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x463dbe(_0x5bca34=>{let _0x137109=('string'==typeof _0x5605ca?_0x4e8bf4['findByTextCallback'](_0x5605ca,_0x4fd8b0):_0x5605ca)(_0x5bca34);Array['isArray'](_0x137109)&&(_0x137109={'results':_0x137109,'searchText':'string'==typeof _0x5605ca?_0x5605ca:''});const _0x268937=_0x137109['results']['filter'](_0x11765c=>!0x1===this['_isInDeletionRange'](_0x11765c,_0x5bca34['item']));return{..._0x137109,'results':_0x268937};},_0x4fd8b0);}['_isInDeletionRange'](_0x4b9865,_0x2bea32){const _0x3fe5b5=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2bea32,_0x4b9865['start']),this['editor']['model']['createPositionAt'](_0x2bea32,_0x4b9865['end']));for(const _0x5c8b38 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x3fe5b5['getIntersection'](_0x5c8b38['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class it extends _0xb2d1b5{['afterInit'](){const _0x1c498b=this['editor']['locale'],_0x127454=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x324f29,commandName:_0x3aafbc}of eo)this['editor']['plugins']['has'](_0x324f29)&&_0x127454['enableDefaultAttributesIntegration'](_0x3aafbc);_0x127454['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x1c498b,'FORMAT_FONT_SIZE')),_0x127454['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x1c498b,'FORMAT_FONT_FAMILY')),_0x127454['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x1c498b,'FORMAT_FONT_COLOR')),_0x127454['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x1c498b,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b45f2=this['editor'],_0x52364b=_0x5b45f2['locale'];_0x5b45f2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x558a84=>{const _0x567d22=_0x52364b['t'];if('formatInline'!=_0x558a84['type'])return;const {data:_0x212526}=_0x558a84;if(null!=_0x212526){if('fontSize'==_0x212526['commandName']){const _0xe5dd9=_0x212526['commandParams'][0x0]['value'];if(_0xe5dd9){const _0x3d03f6=_0x567d22(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x267754=>_0x267754['model']==_0xe5dd9)['title'])['toLowerCase']();return{'type':'format','content':o(_0x52364b,'*Set\x20font\x20size:*\x20%0',_0x3d03f6)};}return{'type':'format','content':o(_0x52364b,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x212526['commandName']){const _0x100fb2=_0x212526['commandParams'][0x0]['value'];return _0x100fb2?{'type':'format','content':o(_0x52364b,'*Set\x20font\x20family:*\x20%0',_0x100fb2)}:{'type':'format','content':o(_0x52364b,'*Reset\x20font\x20family*')};}if('fontColor'==_0x212526['commandName']){const _0x5d047c=_0x212526['commandParams'][0x0]['value'];if(_0x5d047c){const _0x382a97=_0x396374(this['editor']['config']['get']('fontColor.colors'))['find'](_0x577949=>_0x577949['model']==_0x5d047c);let _0x520719=_0x5d047c,_0x3e0db4='';return _0x382a97&&(_0x520719=_0x382a97['label'],_0x3e0db4=_0x567d22(_0x520719)['toLowerCase']()),{'type':'format','content':o(_0x52364b,'*Set\x20font\x20color:*\x20%0',_0x3e0db4)['trim'](),'color':{'value':_0x5d047c,'title':_0x3e0db4||_0x520719}};}return{'type':'format','content':o(_0x52364b,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x212526['commandName']){const _0x5c8209=_0x212526['commandParams'][0x0]['value'];if(_0x5c8209){const _0x42efe1=_0x396374(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x5a4a12=>_0x5a4a12['model']==_0x5c8209);let _0x5bba68=_0x5c8209,_0x22590e='';return _0x42efe1&&(_0x5bba68=_0x42efe1['label'],_0x22590e=_0x567d22(_0x5bba68)['toLowerCase']()),{'type':'format','content':o(_0x52364b,'*Set\x20font\x20background\x20color:*\x20%0',_0x22590e)['trim'](),'color':{'value':_0x5c8209,'title':_0x22590e||_0x5bba68}};}return{'type':'format','content':o(_0x52364b,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0xb2d1b5{['afterInit'](){const {plugins:_0x4e43a4}=this['editor'];_0x4e43a4['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x4e43a4['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x343614,plugins:_0x1616c8,commands:_0x5098af}=this['editor'],_0x132175=_0x1616c8['get']('TrackChangesEditing');_0x5098af['get']('footnotesStyle')&&_0x132175['enableDefaultAttributesIntegration']('footnotesStyle'),_0x5098af['get']('footnotesStart')&&_0x132175['enableDefaultAttributesIntegration']('footnotesStart'),_0x132175['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',o(_0x343614,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x132175['descriptionFactory']['registerAttributeLabel']('footnotesListStart',o(_0x343614,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x508f56=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x22670f,commands:_0x3bcd21}=this['editor'];_0x3bcd21['get']('insertFootnote')&&_0x508f56['enableCommand']('insertFootnote'),_0x508f56['descriptionFactory']['registerElementLabel']('footnoteRef',_0x4c1c2e=>o(_0x22670f,'ELEMENT_FOOTNOTE_REF',_0x4c1c2e)),_0x508f56['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x43ef78=>o(_0x22670f,'ELEMENT_FOOTNOTE_DEFINITION',_0x43ef78)),_0x508f56['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x198685=>o(_0x22670f,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x198685));}}class st extends _0xb2d1b5{['afterInit'](){const _0x59459b=this['editor'],_0x9d5c43=_0x59459b['plugins']['get']('TrackChangesEditing'),_0x320a03=_0x59459b['commands']['get']('copyFormat'),_0x57441f=_0x59459b['commands']['get']('pasteFormat');_0x320a03&&_0x57441f&&(_0x9d5c43['enableDefaultAttributesIntegration']('pasteFormat'),_0x9d5c43['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x2279de=this['editor'],_0x3dc6a1=_0x2279de['locale'];_0x2279de['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x20513b=>{if('formatBlock'!=_0x20513b['type']&&'formatInline'!=_0x20513b['type'])return;const {data:_0x5e6566}=_0x20513b;if(_0x5e6566&&'pasteFormat'===_0x5e6566['commandName']){const _0x2a0da7=[],_0x34783a=_0x5e6566['commandParams'][0x0];for(const [_0x4fa1b5,_0x5a7939]of Object['entries'](_0x34783a))_0x2a0da7['push'](ro(_0x2279de,_0x4fa1b5,_0x5a7939));return _0x2a0da7['length']?{'type':'format','content':o(_0x3dc6a1,'*Set\x20format\x20to:*\x20%0',_0x2a0da7['join'](',\x20'))}:{'type':'format','content':o(_0x3dc6a1,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x3810d4,_0x24b0d4,_0x54a90f){const _0x2a5697=_0x3810d4['locale']['t'],_0x111aa0=_0x24b0d4['split'](/(?=[A-Z])/)['join']('\x20'),_0x30bc7b=_0x2a5697(_0x111aa0['charAt'](0x0)['toUpperCase']()+_0x111aa0['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x54a90f)return _0x30bc7b;if('fontColor'===_0x24b0d4||'fontBackgroundColor'===_0x24b0d4){const _0x3f3bc5=_0x396374(_0x3810d4['config']['get']('fontColor.colors'))['find'](_0x750f94=>_0x750f94['model']==_0x54a90f);return _0x30bc7b+'\x20('+(_0x3f3bc5?_0x2a5697(_0x3f3bc5['label'])['toLowerCase']():_0x54a90f)+')';}if('fontSize'===_0x24b0d4&&isNaN(parseFloat(_0x54a90f))){const _0x2eda39=_0x3810d4['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x3810d4['config']['get']('fontSize.options'))['find'](_0x1fec4c=>_0x1fec4c['model']==_0x54a90f);return _0x30bc7b+'\x20('+(_0x2eda39?_0x2a5697(_0x2eda39['title'])['toLowerCase']():_0x54a90f)+')';}return _0x30bc7b+'\x20('+_0x54a90f+')';}class ot extends _0xb2d1b5{['_headingOptions'];['afterInit'](){const _0x4cf39d=this['editor'];if(!_0x4cf39d['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x4cf39d['config']['get']('heading.options');const _0x3a3edf=_0x4cf39d['locale'],_0x5aead3=_0x4cf39d['plugins']['get']('TrackChangesEditing');_0x5aead3['enableDefaultAttributesIntegration']('heading');for(const _0x47552a of this['_headingOptions'])'paragraph'!=_0x47552a['model']&&_0x5aead3['descriptionFactory']['registerElementLabel'](_0x47552a['model'],_0x587808=>{const _0x282f1e=this['_getHeadingLevel'](_0x47552a['model']);return null!==_0x282f1e?_0x2e7542(_0x587808,_0x282f1e):_0x381599(_0x587808,_0x47552a['title']);});function _0x2e7542(_0x49e73b,_0x3ac82a){return o(_0x3a3edf,'ELEMENT_HEADING',[_0x49e73b,_0x3ac82a]);}function _0x381599(_0x397072,_0x1fc26d){return o(_0x3a3edf,'ELEMENT_HEADING_CUSTOM',[_0x397072,_0x1fc26d]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x50ffd1=this['editor'],_0x3444cc=_0x50ffd1['locale'];function _0xa496d2(_0x12c090,_0x2b0a72){return o(_0x3444cc,'ELEMENT_HEADING_CUSTOM',[_0x12c090,_0x2b0a72]);}_0x50ffd1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x465b39=>{if('formatBlock'!=_0x465b39['type'])return;const {data:_0x2b7a92}=_0x465b39;if(_0x2b7a92&&'heading'==_0x2b7a92['commandName']){const _0x7e109c=_0x2b7a92['commandParams'][0x0]['value'],_0x25702d=this['_getHeadingLevel'](_0x7e109c);if(null!==_0x25702d)return{'type':'format','content':o(_0x3444cc,'*Change\x20to:*\x20%0',(_0x31f5eb=0x1,_0x2dc787=_0x25702d,o(_0x3444cc,'ELEMENT_HEADING',[_0x31f5eb,_0x2dc787])))};const _0x2c8f08=this['_headingOptions']['find'](_0x4e761a=>_0x4e761a['model']===_0x7e109c)['title'];return{'type':'format','content':o(_0x3444cc,'*Change\x20to:*\x20%0',_0xa496d2(0x1,_0x2c8f08))};}var _0x31f5eb,_0x2dc787;});}['_getHeadingLevel'](_0x4143ea){const _0x285a22=_0x4143ea['match'](/^heading(\d+)/);if(_0x285a22)return _0x285a22[0x1];const _0x5472eb=this['_headingOptions']?.['find'](_0xda0a5e=>_0xda0a5e['model']==_0x4143ea);if(_0x5472eb&&_0x5472eb['view']){const _0x2c1527=_0x5472eb['view'],_0x55cb0=(_0x2c1527['name']??_0x2c1527)['match'](/^h(\d+)/);if(_0x55cb0)return _0x55cb0[0x1];}return null;}}class rt extends _0xb2d1b5{['afterInit'](){const _0x42c83e=this['editor'];if(!_0x42c83e['plugins']['has']('HighlightEditing'))return;const _0x1a4495=_0x42c83e['plugins']['get']('TrackChangesEditing'),_0x5ca602=_0x42c83e['locale'];_0x1a4495['enableDefaultAttributesIntegration']('highlight'),_0x1a4495['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x5ca602,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ce69b=this['editor'],_0x45f98c=_0x4ce69b['locale'];_0x4ce69b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2b7143=>{if('formatInline'!=_0x2b7143['type'])return;const {data:_0x261880}=_0x2b7143;if(_0x261880&&'highlight'==_0x261880['commandName']){const _0x2decfe=_0x45f98c['t'],_0x4ee5bd=_0x261880['commandParams'][0x0]['value'];if(_0x4ee5bd){const _0x21e8b2=_0x4ce69b['config']['get']('highlight.options')['find'](_0x15db5d=>_0x15db5d['model']==_0x4ee5bd),_0x13f3d0=_0x2decfe(_0x21e8b2['title'])['toLowerCase']();return{'type':'format','content':o(_0x45f98c,'*Set\x20highlight:*\x20%0',_0x13f3d0),'color':{'value':_0x21e8b2['color'],'title':_0x21e8b2['title']}};}return{'type':'format','content':o(_0x45f98c,'*Remove\x20highlight*',o(_0x45f98c,'FORMAT_HIGHLIGHT'))};}});}}class at extends _0xb2d1b5{['afterInit'](){const _0x20bcfd=this['editor'];if(!_0x20bcfd['plugins']['has']('HorizontalLineEditing'))return;_0x20bcfd['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x2db61e=_0x20bcfd['plugins']['get']('TrackChangesEditing'),_0xc13811=_0x20bcfd['locale'];_0x2db61e['descriptionFactory']['registerElementLabel']('horizontalLine',_0x5bd541=>o(_0xc13811,'ELEMENT_HORIZONTAL_LINE',_0x5bd541));}}class ct extends _0xb2d1b5{['afterInit'](){const _0xc553f6=this['editor'];if(!_0xc553f6['plugins']['has']('HtmlEmbed'))return;const _0x2d4d39=_0xc553f6['plugins']['get']('TrackChangesEditing'),_0x268276=_0xc553f6['locale'];_0x2d4d39['descriptionFactory']['registerElementLabel']('rawHtml',_0x3e5fcf=>o(_0x268276,'ELEMENT_HTML_EMBED',_0x3e5fcf)),_0x2d4d39['enableDefaultAttributesIntegration']('htmlEmbed'),_0x2d4d39['descriptionFactory']['registerDescriptionCallback'](_0x1b8787=>{if('attribute'!=_0x1b8787['type'])return;const {data:_0x14e0b5}=_0x1b8787;if(_0x14e0b5&&'value'==_0x14e0b5['key']&&_0x1b8787['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x407a6e=o(_0x268276,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x268276,'*Change\x20%0\x20content*',_0x407a6e)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4b9cab=this['editor'],_0x45154b=_0x4b9cab['locale'];_0x4b9cab['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5698b5=>{if('formatBlock'!=_0x5698b5['type'])return;const {data:_0x59afe6}=_0x5698b5;if(_0x59afe6&&'htmlEmbed'==_0x59afe6['commandName']){const _0x3b5b91=o(_0x45154b,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x45154b,'*Change\x20%0\x20content*',_0x3b5b91)};}});}}class ut extends _0xb2d1b5{['afterInit'](){const _0x4c066f=this['editor'];if(!_0x4c066f['plugins']['has']('ImageEditing'))return;const _0x531984=_0x4c066f['plugins']['get']('TrackChangesEditing'),_0x1cc19a=_0x4c066f['plugins']['get']('ImageUtils'),_0x2f67a0=_0x4c066f['locale'];_0x531984['enableCommand']('insertImage'),_0x531984['descriptionFactory']['registerElementLabel']('imageBlock',_0x3eb559=>o(_0x2f67a0,'ELEMENT_IMAGE',_0x3eb559)),_0x531984['descriptionFactory']['registerElementLabel']('imageInline',_0x4b3e22=>o(_0x2f67a0,'ELEMENT_INLINE_IMAGE',_0x4b3e22)),_0x531984['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x2f67a0,'ELEMENT_CAPTION')),_0x4c066f['plugins']['has']('ImageUploadEditing')&&_0x531984['enableCommand']('uploadImage'),_0x4c066f['plugins']['has']('ImageBlockEditing')&&_0x4c066f['plugins']['has']('ImageInlineEditing')&&(_0x531984['enableCommand']('imageTypeInline',(_0x241da1,_0x3e618f)=>{const _0x20502e=_0x1cc19a['getClosestSelectedImageElement'](_0x4c066f['model']['document']['selection']);_0x4c066f['model']['change'](()=>{_0x531984['markBlockFormat'](_0x20502e,{'commandName':'imageTypeInline','commandParams':[_0x3e618f]},[],'convertBlockImageToInline');});}),_0x531984['enableCommand']('imageTypeBlock',(_0x2194eb,_0x4b135a)=>{_0x4c066f['model']['change'](_0x32f68a=>{let _0x27bef3=_0x1cc19a['getClosestSelectedImageElement'](_0x4c066f['model']['document']['selection']),_0x4fbbf4=_0x32f68a['createRangeOn'](_0x27bef3);const _0x2c2a32=_0x22534a['fromPosition'](_0x4fbbf4['start'],'toPrevious'),_0x51ee18=_0x22534a['fromPosition'](_0x4fbbf4['end'],'toNext');_0x531984['forceDefaultExecution'](()=>_0x2194eb(_0x4b135a)),_0x27bef3=_0x1cc19a['getClosestSelectedImageElement'](_0x4c066f['model']['document']['selection']),_0x4fbbf4=_0x32f68a['createRangeOn'](_0x27bef3);const _0x367b96=_0x32f68a['createRange'](_0x2c2a32,_0x51ee18);_0x2c2a32['detach'](),_0x51ee18['detach'](),_0x531984['markBlockFormat'](_0x27bef3,{'commandName':'imageTypeInline','commandParams':[_0x4b135a]},[],'convertInlineImageToBlock'),_0x367b96['start']['isBefore'](_0x4fbbf4['start'])&&_0x531984['markInsertion'](_0x32f68a['createRange'](_0x367b96['start'],_0x4fbbf4['start']),'convertInlineImageToBlock'),_0x4fbbf4['end']['isBefore'](_0x367b96['end'])&&_0x531984['markInsertion'](_0x32f68a['createRange'](_0x4fbbf4['end'],_0x367b96['end']),'convertInlineImageToBlock');});}),_0x531984['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x531984['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x531984['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x531984['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x531984['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x531984['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x1540bf])=>{const _0x31f423=_0x531984['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x3f2847=_0x1540bf['start'],_0x446a98=_0x1540bf['end'];const _0x14d2ac=_0x4c066f['model']['schema']['getNearestSelectionRange'](_0x3f2847,'backward'),_0x42db44=_0x4c066f['model']['schema']['getNearestSelectionRange'](_0x446a98,'forward');_0x14d2ac['isCollapsed']&&(_0x3f2847=_0x14d2ac['start']),_0x42db44['isCollapsed']&&(_0x446a98=_0x42db44['end']),_0x31f423([_0x4c066f['model']['createRange'](_0x3f2847,_0x446a98)]);}),_0x531984['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x34f86f),_0x531984['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x34f86f)),_0x4c066f['plugins']['has']('ImageCaptionEditing')&&(_0x531984['enableCommand']('toggleImageCaption',(_0x290e9d,_0x58a74b)=>{const _0x48286d=_0x4c066f['plugins']['get']('ImageCaptionUtils');let _0x5b36ed=_0x1cc19a['getClosestSelectedImageElement'](_0x4c066f['model']['document']['selection']),_0x2c1776=_0x48286d['getCaptionFromImageModelElement'](_0x5b36ed);_0x4c066f['model']['change'](()=>{if(_0x2c1776)return void _0x531984['markDeletion'](_0x4c066f['model']['createRangeOn'](_0x2c1776));const _0x21546a=_0x1cc19a['isBlockImage'](_0x5b36ed);_0x290e9d(_0x58a74b),_0x5b36ed=_0x1cc19a['getClosestSelectedImageElement'](_0x4c066f['model']['document']['selection']),_0x2c1776=_0x48286d['getCaptionFromImageModelElement'](_0x5b36ed),_0x531984['markInsertion'](_0x4c066f['model']['createRangeOn'](_0x2c1776),_0x21546a?null:'imageCaption');});}),_0x531984['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x34f86f));const _0x1ef665=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4b1a89(_0x49dcb0,_0x1c09f3){const _0x5da8fc=_0x1ef665['findIndex'](({type:_0x5c0b27,subType:_0x3f1c63})=>_0x49dcb0['type']==_0x5c0b27&&_0x49dcb0['subType']==_0x3f1c63),_0x21aa22=_0x1ef665['findIndex'](({type:_0x7c1ee2,subType:_0x54756f})=>_0x1c09f3['type']==_0x7c1ee2&&_0x1c09f3['subType']==_0x54756f);if(_0x5da8fc<0x0||_0x21aa22<0x0)return!0x1;const _0x55a24a=_0x49dcb0['getFirstRange'](),_0x49cd81=_0x1c09f3['getFirstRange']();if((0x0==_0x5da8fc||0x1==_0x5da8fc)&&0x2==_0x21aa22&&_0x55a24a['isIntersecting'](_0x49cd81))return!0x0;if(0x2==_0x5da8fc&&0x3==_0x21aa22){const _0xdb9577=_0x531984['_findSuggestions'](_0x55a24a,'insertion')['filter'](({suggestion:_0x56d682,meta:_0x5a63c1})=>_0x5a63c1['isOwn']&&'convertInlineImageToBlock'==_0x56d682['subType']);if(_0xdb9577['length']>0x1&&_0x49cd81['end']['isEqual'](_0x55a24a['start']))return!0x0;if(0x1==_0xdb9577['length']&&(_0x55a24a['start']['isEqual'](_0x49cd81['end'])||_0x55a24a['end']['isEqual'](_0x49cd81['start'])))return!0x0;}if(0x3==_0x5da8fc&&0x3==_0x21aa22&&_0x55a24a['start']['isBefore'](_0x49cd81['start'])){const _0x40d675=_0x55a24a['end']['nodeAfter'],_0x15fcd9=_0x49cd81['start']['nodeBefore'];return _0x1cc19a['isBlockImage'](_0x40d675)&&_0x40d675===_0x15fcd9;}return!0x1;}function _0x34f86f(_0x333b82,_0x2a4e01){return _0x4b1a89(_0x333b82,_0x2a4e01)?[_0x333b82,_0x2a4e01]:_0x4b1a89(_0x2a4e01,_0x333b82)?[_0x2a4e01,_0x333b82]:null;}_0x4c066f['plugins']['has']('ImageResize')&&(_0x531984['enableDefaultAttributesIntegration']('resizeImage'),_0x531984['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x2f67a0,'FORMAT_IMAGE_SIZE'))),_0x4c066f['plugins']['has']('ImageTextAlternativeEditing')&&_0x531984['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x4c066f['plugins']['has']('PictureEditing')&&_0x531984['descriptionFactory']['registerDescriptionCallback'](_0x451143=>{if('attribute'!=_0x451143['type'])return;const {data:_0x5037fc}=_0x451143;return _0x5037fc&&'sources'==_0x5037fc['key']?{'type':'format','content':''}:void 0x0;}),_0x4c066f['plugins']['has']('ImageSizeAttributes')&&_0x531984['descriptionFactory']['registerDescriptionCallback'](_0x2e7132=>{if('attribute'!=_0x2e7132['type'])return;const {data:_0x2e8db7}=_0x2e7132;return!_0x2e8db7||'width'!=_0x2e8db7['key']&&'height'!=_0x2e8db7['key']?void 0x0:{'type':'format','content':''};}),_0x531984['descriptionFactory']['registerDescriptionCallback'](_0x46d074=>{if(!!_0x1ef665['find'](({type:_0x47be7b,subType:_0xebc9fa})=>_0x46d074['type']==_0x47be7b&&_0x46d074['subType']==_0xebc9fa))return _0x46d074['previous']?{}:void 0x0;}),_0x531984['descriptionFactory']['registerDescriptionCallback'](_0x135895=>{if('insertion'==_0x135895['type']||'deletion'==_0x135895['type']){const _0x46fe2e=_0x135895['getContainedElement']();if(_0x46fe2e&&_0x46fe2e['is']('element','caption'))return{'type':'insertion'==_0x135895['type']?'addObject':'removeObject','element':_0x46fe2e,'quantity':0x1};}}),_0x531984['descriptionFactory']['registerDescriptionCallback'](_0x265f9f=>'formatBlock'==_0x265f9f['type']&&'convertInlineImageToBlock'==_0x265f9f['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x265f9f['type']&&'convertBlockImageToInline'==_0x265f9f['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x531984['descriptionFactory']['registerDescriptionCallback'](_0x5801ac=>{if('attribute'!=_0x5801ac['type'])return;const {data:_0x3aaa63}=_0x5801ac;if(!_0x3aaa63||'alt'!=_0x3aaa63['key'])return;const _0x4e16c2=_0x3aaa63['newValue'];return _0x4e16c2?{'type':'format','content':o(_0x2f67a0,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4e16c2+'\x22')}:{'type':'format','content':o(_0x2f67a0,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x49512d=this['editor'],_0xf0285b=_0x49512d['locale'];_0x49512d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x39a8cc=>{if('formatBlock'!=_0x39a8cc['type']&&'formatInline'!=_0x39a8cc['type'])return;const {data:_0x134ec2}=_0x39a8cc;if(_0x134ec2){if('imageTextAlternative'==_0x134ec2['commandName']){const _0x494b42=_0x134ec2['commandParams'][0x0]['newValue'];return _0x494b42?{'type':'format','content':o(_0xf0285b,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x494b42+'\x22')}:{'type':'format','content':o(_0xf0285b,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x134ec2['commandName']){const _0x464c65=_0x134ec2['commandParams'][0x0]['width'];return _0x464c65?{'type':'format','content':o(_0xf0285b,'*Set\x20image\x20width:*\x20%0',_0x464c65)}:{'type':'format','content':o(_0xf0285b,'*Reset\x20image\x20width*')};}}});}}class ft extends _0xb2d1b5{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x436653=this['editor']['locale'],_0x4bf36e=this['editor']['plugins']['get']('TrackChangesEditing');_0x4bf36e['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4bf36e['descriptionFactory']['registerDescriptionCallback'](_0x14d6e=>{if('attribute'!=_0x14d6e['type'])return;const {data:_0x2da49a}=_0x14d6e;return _0x2da49a&&'src'==_0x2da49a['key']?_0x2da49a['newValue']&&_0x2da49a['oldValue']?{'type':'format','content':o(_0x436653,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xb5e253=this['editor']['plugins']['get']('TrackChangesEditing');_0xb5e253['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0xb5e253['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xb5e253['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0xb5e253['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c9c12=this['editor'],_0x355108=_0x4c9c12['locale'];_0x4c9c12['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a8934=>{if('formatBlock'!=_0x5a8934['type']&&'formatInline'!=_0x5a8934['type'])return;const {data:_0x4e9367}=_0x5a8934;if(!_0x4e9367||'replaceImageSource'!=_0x4e9367['commandName'])return;return{'type':'format','content':o(_0x355108,'*Format:*\x20replace\x20image\x20URL')};});}}class ht extends _0xb2d1b5{['afterInit'](){const _0x3b4cb7=this['editor'];if(!_0x3b4cb7['plugins']['has']('ImageStyleEditing'))return;const _0x5a583b=_0x3b4cb7['plugins']['get']('TrackChangesEditing'),_0x40d30e=_0x3b4cb7['plugins']['get']('ImageUtils'),_0x2f8f01={};_0x5a583b['enableCommand']('imageStyle',(_0x2af620,_0x1ac0b5)=>{const _0x238a42=_0x3b4cb7['plugins']['get']('Users')['me'],_0x593b27=_0x3b4cb7['commands']['get']('imageStyle');let _0x55fcc2=_0x40d30e['getClosestSelectedImageElement'](_0x3b4cb7['model']['document']['selection']),_0x21e887=_0x3b4cb7['model']['createRangeOn'](_0x55fcc2),_0x348609=_0x593b27['value'];if(_0x348609==_0x1ac0b5['value'])return;const _0x2c137b={'commandName':'imageStyle','commandParams':[_0x1ac0b5],'formatGroupId':_0x43100d()};_0x3b4cb7['model']['change'](()=>{if(_0x5a583b['getSuggestions']()['filter'](_0x139904=>_0x139904['isInContent']&&_0x238a42==_0x139904['author']&&('formatBlock'==_0x139904['type']||'formatInline'==_0x139904['type'])&&('imageStylePreApply'==_0x139904['subType']||'imageStylePostApply'==_0x139904['subType'])&&_0x139904['getFirstRange']()['isEqual'](_0x21e887))['forEach'](_0x513704=>_0x5a583b['discardSuggestion'](_0x513704['head'])),_0x55fcc2=_0x40d30e['getClosestSelectedImageElement'](_0x3b4cb7['model']['document']['selection']),_0x21e887=_0x3b4cb7['model']['createRangeOn'](_0x55fcc2),_0x593b27['refresh'](),_0x3b4cb7['commands']['get']('imageTypeInline')['refresh'](),_0x3b4cb7['commands']['get']('imageTypeBlock')['refresh'](),_0x348609=_0x593b27['value'],_0x348609!=_0x1ac0b5['value'])return _0x40d30e['isInlineImage'](_0x55fcc2)&&_0x593b27['shouldConvertImageType'](_0x1ac0b5['value'],_0x55fcc2)?(_0x2af620({..._0x1ac0b5,'setImageSizes':!0x1}),_0x55fcc2=_0x40d30e['getClosestSelectedImageElement'](_0x3b4cb7['model']['document']['selection']),void _0x5a583b['markBlockFormat'](_0x55fcc2,{..._0x2c137b,'commandReversedParams':[{'value':_0x348609||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x40d30e['isBlockImage'](_0x55fcc2)?_0x5a583b['markBlockFormat'](_0x55fcc2,_0x2c137b,[],'imageStylePostApply'):_0x5a583b['markInlineFormat'](_0x21e887,_0x2c137b,'imageStylePostApply'));});});for(const _0x1d01f5 of _0x3b4cb7['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x2f8f01[_0x1d01f5['name']]=_0x1d01f5['title']['toLowerCase']();_0x5a583b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x5a583b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x5a583b['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x5a583b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x3228b8])=>{_0x40d30e['setImageNaturalSizeAttributes'](_0x3228b8['getContainedElement']());}),_0x5a583b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x45cad3,_0x41bb37)=>{_0x5a583b['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x45cad3,{'commandName':_0x41bb37['commandName'],'commandParams':_0x41bb37['commandReversedParams']});}),_0x5a583b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x488afe,_0x2c16e7){if(_0xee771c(_0x488afe,_0x2c16e7))return[_0x488afe,_0x2c16e7];if(_0xee771c(_0x2c16e7,_0x488afe))return[_0x2c16e7,_0x488afe];return null;});const _0xa58328=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xee771c(_0x1f61ed,_0x4ba783){const _0xf0a1a9=_0xa58328['findIndex'](({type:_0x5f4cd8,subType:_0x339f9f})=>_0x1f61ed['type']==_0x5f4cd8&&_0x1f61ed['subType']==_0x339f9f),_0xcaef3c=_0xa58328['findIndex'](({type:_0x368bd6,subType:_0x20e95a})=>_0x4ba783['type']==_0x368bd6&&_0x4ba783['subType']==_0x20e95a);if(_0xf0a1a9<0x0||_0xcaef3c<0x0)return!0x1;const _0x25be08=_0x1f61ed['getFirstRange'](),_0x1284bd=_0x4ba783['getFirstRange']();if((0x0==_0xf0a1a9||0x1==_0xf0a1a9)&&0x2==_0xcaef3c&&_0x25be08['isIntersecting'](_0x1284bd))return!0x0;if(0x2==_0xf0a1a9&&0x3==_0xcaef3c){const _0x5c2175=_0x5a583b['_findSuggestions'](_0x25be08,'insertion')['filter'](({suggestion:_0x4c48aa,meta:_0x4752ef})=>_0x4752ef['isOwn']&&'convertInlineImageToBlock'==_0x4c48aa['subType']);if(_0x5c2175['length']>0x1&&_0x1284bd['end']['isEqual'](_0x25be08['start']))return!0x0;if(0x1==_0x5c2175['length']&&(_0x25be08['start']['isEqual'](_0x1284bd['end'])||_0x25be08['end']['isEqual'](_0x1284bd['start'])))return!0x0;}if(0x3==_0xf0a1a9&&0x3==_0xcaef3c&&_0x25be08['start']['isBefore'](_0x1284bd['start'])){const _0x138642=_0x25be08['end']['nodeAfter'],_0x361f81=_0x1284bd['start']['nodeBefore'];return _0x40d30e['isBlockImage'](_0x138642)&&_0x138642===_0x361f81;}return!0x1;}_0x3b4cb7['model']['document']['registerPostFixer'](()=>{let _0x45a4eb=!0x1;const _0x5726b3=Array['from'](_0x3b4cb7['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x21be7e,data:_0x24fb6e}of _0x5726b3){const {group:_0x3b76d8,type:_0x419e05,subType:_0x1ad483,id:_0x574ea4}=_0x5a583b['_splitMarkerName'](_0x21be7e);if('suggestion'==_0x3b76d8&&_0x5a583b['hasSuggestion'](_0x574ea4)){if('formatBlock'==_0x419e05&&('imageStylePreApply'==_0x1ad483||'imageStylePostApply'==_0x1ad483)){const _0x50a31a=_0x5a583b['getSuggestion'](_0x574ea4);if(_0x24fb6e['newRange']){const _0x165cf0=_0x50a31a['getFirstRange']()['getContainedElement']();if(_0x40d30e['isBlockImage'](_0x165cf0))continue;_0x5a583b['discardSuggestion'](_0x50a31a),_0x45a4eb=!0x0;}}if('insertion'==_0x419e05&&'imageCaption'==_0x1ad483&&!_0x24fb6e['newRange']){const _0x23238e=_0x5a583b['getSuggestion'](_0x574ea4);_0x23238e['next']&&_0x23238e['next']['isInContent']&&(_0x5a583b['discardSuggestion'](_0x23238e['next']),_0x45a4eb=!0x0);}}}return _0x45a4eb;}),this['_registerLegacyDescription'](_0x2f8f01);}['_registerLegacyDescription'](_0x11c3a2){const _0x4b3137=this['editor'],_0x485f91=_0x4b3137['locale'];_0x4b3137['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x112915=>{if('formatBlock'!=_0x112915['type']&&'formatInline'!=_0x112915['type'])return;const {data:_0x50ef0c}=_0x112915;if(!_0x50ef0c||'imageStyle'!=_0x50ef0c['commandName'])return;const _0x456539=_0x50ef0c['commandParams'][0x0]['value'];return _0x32efc5('side'===_0x456539?o(_0x485f91,'FORMAT_SIDE_IMAGE'):_0x11c3a2[_0x456539]||_0x456539);function _0x32efc5(_0x5620c7){return{'type':'format','content':o(_0x485f91,'*Format:*\x20%0',_0x5620c7)};}});}}class lt extends _0xb2d1b5{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x492244){super(_0x492244),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x55cdca=this['editor'],_0x22730b=_0x55cdca['commands']['get']('importWord'),_0x286e5f=_0x55cdca['commands']['get']('trackChanges');_0x22730b&&(_0x22730b['on']('execute',(_0x4a6393,[,_0x5f4e02])=>{this['_trackChangesValueDuringImport']=_0x286e5f['value'],_0x5f4e02['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x22730b,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x22730b,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x286e5f['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x55cdca['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x3f51ec,_0x2b3e2d){const {suggestions:_0x40dc0c}=_0x2b3e2d,_0x20c737=this['editor']['commands']['get']('trackChanges'),_0x4195ae=_0x20c737['value'];this['_trackChangesValueDuringImport']!==_0x4195ae&&(_0x20c737['execute'](),this['_trackChangesExecuted']=!0x0),_0x40dc0c&&_0x40dc0c['forEach'](({id:_0x538c5b,type:_0x164184,author:_0x227b39,created_at:_0x362a97})=>{const _0x5aa6e0={'id':_0x538c5b,'type':_0x164184,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x227b39,'createdAt':_0x362a97?new Date(_0x362a97):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x5aa6e0);});}}class gt extends _0xb2d1b5{['afterInit'](){const _0x33af1d=this['editor'],_0x435313=_0x33af1d['plugins']['get']('TrackChangesEditing');if(_0x33af1d['plugins']['has']('IndentEditing')&&(_0x435313['enableCommand']('indent'),_0x435313['enableCommand']('outdent')),_0x33af1d['plugins']['has']('IndentBlock')){for(const _0x8b76b7 of['indentBlock','outdentBlock'])_0x435313['enableDefaultAttributesIntegration'](_0x8b76b7);if(_0x33af1d['plugins']['has']('ListEditing')){for(const _0x3a690f of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x435313['enableDefaultAttributesIntegration'](_0x3a690f);}}const _0x2701ae=_0x33af1d['locale'];_0x435313['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x2701ae,'FORMAT_INDENT')),_0x435313['descriptionFactory']['registerAttributeLabel']('blockIndentList',o(_0x2701ae,'FORMAT_INDENT')),_0x435313['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',o(_0x2701ae,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3a65dd=this['editor'],_0x354116=_0x3a65dd['locale'],_0x2109ea=_0x3a65dd['plugins']['get']('TrackChangesEditing');_0x2109ea['descriptionFactory']['registerDescriptionCallback'](_0x5e8dfd=>{if('formatBlock'!=_0x5e8dfd['type'])return;const {data:_0x3fbb64}=_0x5e8dfd;if(!_0x3fbb64)return;if('indentBlock'!=_0x3fbb64['commandName']&&'outdentBlock'!=_0x3fbb64['commandName'])return;const _0x5dce5a=_0x5e8dfd['getItems']()[0x0],_0x13518d=_0x2109ea['descriptionFactory']['getItemLabel'](_0x5dce5a);return'indentBlock'==_0x3fbb64['commandName']?{'type':'format','content':o(_0x354116,'*Indent:*\x20%0',_0x13518d)}:'outdentBlock'==_0x3fbb64['commandName']?{'type':'format','content':o(_0x354116,'*Outdent:*\x20%0',_0x13518d)}:void 0x0;});}}class mt extends _0xb2d1b5{static get['requires'](){return[_0x3ca699];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class dt extends _0xb2d1b5{['afterInit'](){const _0x4ffb51=this['editor'];if(!_0x4ffb51['plugins']['has']('LinkEditing'))return;const _0x52360f=_0x4ffb51['plugins']['get']('TrackChangesEditing'),_0x5e0fad=_0x4ffb51['commands']['get']('link');_0x52360f['enableDefaultAttributesIntegration']('link'),_0x52360f['enableDefaultAttributesIntegration']('unlink');for(const _0x194a00 of _0x5e0fad['manualDecorators'])_0x52360f['descriptionFactory']['registerAttributeLabel'](_0x194a00['id'],'link\x20('+_0x194a00['label']['toLowerCase']()+')');_0x52360f['descriptionFactory']['registerDescriptionCallback'](_0x4a6b06=>{if('attribute'!=_0x4a6b06['type'])return;const {data:_0x555735}=_0x4a6b06;if(!_0x555735||'linkHref'!=_0x555735['key'])return;const _0x9a2b7c=_0x555735['newValue'],_0x1a415c=_0x4ffb51['locale'];return{'type':'format','content':null==_0x9a2b7c?o(_0x1a415c,'*Remove\x20link*'):o(_0x1a415c,'*Set\x20link:*\x20%0','\x22'+_0x9a2b7c+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x422e62=this['editor'],_0x33f667=_0x422e62['locale'];_0x422e62['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ddd11=>{if('formatInline'!=_0x4ddd11['type'])return;const {data:_0x24dc8e}=_0x4ddd11;if(_0x24dc8e){if('link'==_0x24dc8e['commandName']){const _0x2236ea=_0x24dc8e['commandParams'][0x0];return{'type':'format','content':o(_0x33f667,'*Set\x20link:*\x20%0','\x22'+_0x2236ea+'\x22')};}return'unlink'==_0x24dc8e['commandName']?{'type':'format','content':o(_0x33f667,'*Remove\x20link*')}:void 0x0;}});}}class pt extends _0xb2d1b5{['afterInit'](){const _0x1915a2=this['editor'],_0x4815f8=_0x1915a2['locale'];if(!_0x1915a2['plugins']['has']('LegacyListEditing'))return;const _0x16f0a4=_0x1915a2['plugins']['get']('TrackChangesEditing'),_0x45a64d=_0x1915a2['plugins']['has']('LegacyTodoListEditing');function _0x4b9ca6(_0x4b5d85){return()=>{const _0x59281c=_0x1915a2['model']['document']['selection'],_0x2daae1=_0x1915a2['commands']['get'](_0x4b5d85);if(_0x2daae1['value'])return void _0x1915a2['execute']('paragraph',{});const _0x381673=_0x4b5d85['slice'](0x0,-0x4),_0x181d0c=function(_0x598331,_0x4fb414,_0x1f2c58){let _0x260773=Array['from'](_0x598331)['filter'](_0x288889=>function(_0xacd61f,_0x3b6b5a){return _0x3b6b5a['checkChild'](_0xacd61f['parent'],'listItem')&&!_0x3b6b5a['isObject'](_0xacd61f);}(_0x288889,_0x1f2c58));_0x260773=_0x260773['filter'](_0x2a2496=>!_0x2a2496['is']('element','listItem')||_0x2a2496['getAttribute']('listType')!=_0x4fb414);const _0x138a24=new Set();for(const _0x56ecb2 of _0x260773)_0x56ecb2['is']('element','listItem')?_0x138a24['add'](Le(_0x56ecb2)):_0x138a24['add'](_0x56ecb2);return Array['from'](_0x138a24);}(_0x59281c['getSelectedBlocks'](),_0x381673,_0x1915a2['model']['schema']);_0x1915a2['model']['change'](()=>{for(const _0x597047 of _0x181d0c)_0x16f0a4['markBlockFormat'](_0x597047,{'commandName':_0x4b5d85,'commandParams':[{'forceValue':!_0x2daae1['value']}],'formatGroupId':'blockName'},Ee(_0x597047));});};}function _0x438631(_0x8073c8){return()=>{const _0x47aa0a=function(_0x10583d){let _0x47dfbe=Array['from'](_0x10583d);const _0x3f09e0=_0x47dfbe['findIndex'](_0x2462f1=>'listItem'!=_0x2462f1['name']);return _0x3f09e0>-0x1&&(_0x47dfbe=_0x47dfbe['slice'](0x0,_0x3f09e0)),_0x47dfbe;}(_0x1915a2['model']['document']['selection']['getSelectedBlocks']()),_0x300ded=_0x1915a2['model']['createRange'](_0x1915a2['model']['createPositionAt'](_0x47aa0a[0x0],'before'),_0x1915a2['model']['createPositionAt'](_0x47aa0a[_0x47aa0a['length']-0x1],'end'));_0x1915a2['model']['change'](()=>{_0x16f0a4['markBlockFormat'](_0x300ded,{'commandName':_0x8073c8,'commandParams':[],'formatGroupId':'listIndent'},function(_0x4bff24){const _0x40a7cd=new Set();for(const _0x1b4fd9 of _0x4bff24){let _0x5c5353=_0x1b4fd9['nextSibling'];for(;_0x5c5353&&_0x5c5353['getAttribute']('listIndent')>_0x1b4fd9['getAttribute']('listIndent');)_0x40a7cd['add'](_0x5c5353),_0x5c5353=_0x5c5353['nextSibling'];}return Array['from'](_0x40a7cd);}(_0x47aa0a));});};}_0x16f0a4['enableCommand']('numberedList',_0x4b9ca6('numberedList')),_0x16f0a4['enableCommand']('bulletedList',_0x4b9ca6('bulletedList')),_0x45a64d&&_0x16f0a4['enableCommand']('todoList',_0x4b9ca6('todoList')),_0x16f0a4['enableCommand']('indentList',_0x438631('indentList')),_0x16f0a4['enableCommand']('outdentList',_0x438631('outdentList')),_0x45a64d&&_0x16f0a4['enableCommand']('checkTodoList',()=>{const _0x52886a=_0x1915a2['commands']['get']('checkTodoList'),_0x35465a=Array['from'](_0x52886a['_selectedElements']);_0x35465a['filter'](_0x2c3924=>_0x2c3924['getAttribute']('todoListChecked')!=_0x52886a['value']),_0x1915a2['model']['change'](()=>{for(const _0x508161 of _0x35465a)_0x16f0a4['markBlockFormat'](_0x508161,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x52886a['value']}]});});}),_0x16f0a4['descriptionFactory']['registerElementLabel']('listItem',_0x4fcd4a=>o(_0x4815f8,'ELEMENT_LIST_ITEM',_0x4fcd4a)),_0x16f0a4['descriptionFactory']['registerDescriptionCallback'](_0x1a0dae=>{if('formatBlock'!=_0x1a0dae['type']&&'formatInline'!=_0x1a0dae['type'])return;const {data:_0x4b1227}=_0x1a0dae;if(_0x4b1227){if('numberedList'==_0x4b1227['commandName']||'bulletedList'==_0x4b1227['commandName']||'todoList'==_0x4b1227['commandName'])switch(_0x4b1227['commandName']['replace']('List','')){case'bulleted':return _0xb6405f(o(_0x4815f8,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xb6405f(o(_0x4815f8,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xb6405f(o(_0x4815f8,'ELEMENT_TODO_LIST'));}if('indentList'==_0x4b1227['commandName'])return{'type':'format','content':o(_0x4815f8,'*Indent:*\x20%0',o(_0x4815f8,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x4b1227['commandName'])return{'type':'format','content':o(_0x4815f8,'*Outdent:*\x20%0',o(_0x4815f8,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x4b1227['commandName'])return _0x4b1227['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4815f8,'*Check\x20item*')}:{'type':'format','content':o(_0x4815f8,'*Uncheck\x20item*')};}function _0xb6405f(_0x19c40c){return{'type':'format','content':o(_0x4815f8,'*Change\x20to:*\x20%0',_0x19c40c)};}});}}function Le(_0x4da017){const _0x587e8a=_0x4da017['getAttribute']('listIndent');if(0x0==_0x587e8a)return _0x4da017;let _0x4feb6a=_0x4da017;for(;_0x4da017['previousSibling']&&_0x4da017['previousSibling']['is']('element','listItem');){const _0x4d2158=_0x4da017['previousSibling']['getAttribute']('listIndent');if(_0x4d2158==_0x587e8a)_0x4feb6a=_0x4da017['previousSibling'];else{if(_0x4d2158<_0x587e8a)break;}_0x4da017=_0x4da017['previousSibling'];}return _0x4feb6a;}function Ee(_0x4b0ee3){const _0x52ceea=[];if(_0x4b0ee3['is']('element','listItem')&&_0x4b0ee3['getAttribute']('listIndent')>0x0){let _0x19a489=_0x4b0ee3['nextSibling'];for(;_0x19a489&&'listItem'==_0x19a489['name']&&_0x19a489['getAttribute']('listIndent')==_0x4b0ee3['getAttribute']('listIndent');)_0x52ceea['push'](_0x19a489),_0x19a489=_0x19a489['nextSibling'];}return _0x52ceea;}class wt extends _0xb2d1b5{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x41b7f4=this['editor']['config']['get']('list.properties'),_0x3acc77=this['editor']['plugins']['get']('TrackChangesEditing');_0x41b7f4['styles']&&_0x3acc77['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x41b7f4['reversed']&&_0x3acc77['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x41b7f4['startIndex']&&_0x3acc77['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x3acc77['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x5859aa,_0x5bd82d={}){const _0x5cb0b7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3bebd4=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x5cb0b7['markMultiRangeBlockFormat'](_0x3bebd4,{'commandName':'listStyle','commandParams':[{'type':_0x5bd82d['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x1e2066,_0xbccac8={}){const _0x4be486=this['editor']['plugins']['get']('TrackChangesEditing'),_0x21b417=this['_getSuggestionBlocks'](_0x1c0e4f=>_0x1c0e4f['is']('element','listItem')&&'numbered'===_0x1c0e4f['getAttribute']('listType'));if(_0x21b417['length']<0x1)return;const _0x43b757=_0x21b417['map'](_0x314b17=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x314b17,'before'),this['editor']['model']['createPositionAt'](_0x314b17,0x0)));this['editor']['model']['change'](()=>{_0x4be486['markMultiRangeBlockFormat'](_0x43b757,{'commandName':'listReversed','commandParams':[{'reversed':_0xbccac8['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x24c653,_0x330002={}){const _0x88c3da=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2c94b5=this['_getSuggestionBlocks'](_0x361628=>_0x361628['is']('element','listItem')&&'numbered'===_0x361628['getAttribute']('listType'));if(_0x2c94b5['length']<0x1)return;const _0x12886d=_0x2c94b5['map'](_0x30b9bf=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x30b9bf,'before'),this['editor']['model']['createPositionAt'](_0x30b9bf,0x0)));this['editor']['model']['change'](()=>{_0x88c3da['markMultiRangeBlockFormat'](_0x12886d,{'commandName':'listStart','commandParams':[{'startIndex':_0x330002['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x4c8fa6){if('formatBlock'!=_0x4c8fa6['type']&&'formatInline'!=_0x4c8fa6['type'])return;const _0x427fc2=this['editor']['locale'],{data:_0x570bc4}=_0x4c8fa6;if(!_0x570bc4)return;let _0x3cdd71,_0x103b73;switch(_0x570bc4['commandName']){case'listStyle':_0x3cdd71='*Change\x20to:*\x20%0',_0x103b73={'type':'format','content':o(_0x427fc2,_0x3cdd71,o(_0x427fc2,this['_getTranslationKeyForListStyle'](_0x570bc4['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3cdd71=_0x570bc4['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x103b73={'type':'format','content':o(_0x427fc2,_0x3cdd71)};break;case'listStart':_0x3cdd71='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x103b73={'type':'format','content':o(_0x427fc2,_0x3cdd71,_0x570bc4['commandParams'][0x0]['startIndex'])};}return _0x103b73;}['_getSuggestionBlocksForListStyle'](){const _0x568907=this['editor']['plugins']['get']('LegacyListUtils');let _0x56b5ea=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x56b5ea[0x0]?.['is']('element','listItem')&&_0x56b5ea['unshift'](..._0x568907['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x56b5ea[_0x56b5ea['length']-0x1]?.['is']('element','listItem')&&_0x56b5ea['push'](..._0x568907['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x56b5ea=[...new Set(_0x56b5ea)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x56b5ea=_0x56b5ea['filter'](_0x531d16=>_0x531d16['is']('element','listItem'))),_0x56b5ea;}['_getSuggestionBlocks'](_0x4d1c45){const _0x12e9d7=this['editor']['plugins']['get']('LegacyListUtils');let _0x488ee7=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x4d1c45)['map'](_0x4ea67f=>{const _0x154d3f=this['editor']['model']['createPositionAt'](_0x4ea67f,0x0);return[..._0x12e9d7['getSiblingNodes'](_0x154d3f,'backward'),..._0x12e9d7['getSiblingNodes'](_0x154d3f,'forward')];})['flat']();return _0x488ee7=[...new Set(_0x488ee7)],_0x488ee7;}['_getTranslationKeyForListStyle'](_0x2b443d){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x2b443d)||'default')['toUpperCase']()+'_LIST_'+_0x2b443d['toUpperCase']()['replace'](/-/g,'_');}}class kt extends _0xb2d1b5{['afterInit'](){const _0x5da138=this['editor'];if(!_0x5da138['plugins']['has']('MediaEmbedEditing'))return;const _0x180e9d=_0x5da138['plugins']['get']('TrackChangesEditing'),_0x2094db=_0x5da138['locale'];_0x180e9d['enableCommand']('mediaEmbed'),_0x180e9d['descriptionFactory']['registerElementLabel']('media',_0x55334b=>o(_0x2094db,'ELEMENT_MEDIA',_0x55334b));}}class bt extends _0xb2d1b5{['afterInit'](){const _0x52cf3d=this['editor'];_0x52cf3d['plugins']['has']('MentionEditing')&&_0x52cf3d['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class yt extends _0xb2d1b5{['afterInit'](){const _0xebab59=this['editor'];if(!_0xebab59['plugins']['has']('MergeFieldsEditing'))return;const _0x5c4443=_0xebab59['plugins']['get']('TrackChangesEditing'),_0x546e0=_0xebab59['locale'];_0x5c4443['enableCommand']('insertMergeField'),_0x5c4443['enableCommand']('insertMergeFieldBlock'),_0x5c4443['enableCommand']('insertMergeFieldImage'),_0x5c4443['descriptionFactory']['registerElementLabel']('mergeField',_0x37d6a3=>o(_0x546e0,'ELEMENT_MERGE_FIELD',_0x37d6a3)),_0x5c4443['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x5547e7=>o(_0x546e0,'ELEMENT_MERGE_FIELD',_0x5547e7)),_0x5c4443['descriptionFactory']['registerDescriptionCallback'](_0x5bc0ba=>{if('insertion'!=_0x5bc0ba['type']&&'deletion'!=_0x5bc0ba['type'])return;const _0x524919=_0x5bc0ba['getContainedElement']();if(null==_0x524919)return;const _0x28de5e=_0xebab59['plugins']['get']('MergeFieldsEditing');let _0x835c07;switch(_0x28de5e['getMergeFieldType'](_0x524919)){case null:return;case'image':{const _0x90dc6b=_0x28de5e['unwrapAffixes'](_0x524919['getAttribute']('src'));_0x835c07=_0x28de5e['getLabel'](_0x90dc6b)||_0x90dc6b;break;}default:{const _0x174df5=_0x524919['getAttribute']('id');_0x835c07=_0x28de5e['getLabel'](_0x174df5)||_0x174df5;break;}}return'insertion'==_0x5bc0ba['type']?{'type':'insertion','content':o(_0x546e0,'*Insert:*\x20%0','\x22'+_0x835c07+'\x22\x20'+o(_0x546e0,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x546e0,'*Remove:*\x20%0','\x22'+_0x835c07+'\x22\x20'+o(_0x546e0,'ELEMENT_MERGE_FIELD'))};});}}class jt extends _0xb2d1b5{['afterInit'](){const _0x2b597d=this['editor'],_0x646ea8=_0x2b597d['plugins']['get']('TrackChangesEditing');_0x2b597d['plugins']['has']('MultiLevelList')&&(_0x646ea8['enableDefaultAttributesIntegration']('multiLevelList'),_0x646ea8['descriptionFactory']['registerDescriptionCallback'](_0x56a51c=>this['handleDescriptions'](_0x56a51c)));}['handleDescriptions'](_0x305af7){const _0x53559a=this['editor']['locale'],{data:_0x2195c6}=_0x305af7,_0x4217cb={'type':'format','content':''};if(_0x2195c6&&'listMarkerStyle'==_0x2195c6['key']){if(!_0x2195c6['oldValue'])return{'type':'format','content':o(_0x53559a,'*Set\x20format:*\x20%0',o(_0x53559a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2195c6['newValue']+')'};if(!_0x2195c6['newValue']){let _0x1511ed=_0x305af7['head'];for(;_0x1511ed;){if(_0x1511ed['data']&&'listType'==_0x1511ed['data']['key']&&_0x1511ed['data']['newValue'])return _0x4217cb;_0x1511ed=_0x1511ed['next'];}return{'type':'format','content':o(_0x53559a,'*Remove\x20format:*\x20%0',o(_0x53559a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2195c6['oldValue']+')'};}}}}class St extends _0xb2d1b5{['afterInit'](){const _0x3b776e=this['editor'];if(!_0x3b776e['plugins']['has']('PageBreakEditing'))return;_0x3b776e['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x3d11d9=_0x3b776e['plugins']['get']('TrackChangesEditing'),_0x2951de=_0x3b776e['locale'];_0x3d11d9['descriptionFactory']['registerElementLabel']('pageBreak',_0x46296=>o(_0x2951de,'ELEMENT_PAGE_BREAK',_0x46296));}}class It extends _0xb2d1b5{['afterInit'](){const _0x3a5211=this['editor'];if(!_0x3a5211['plugins']['has']('Paragraph'))return;const _0x249c59=_0x3a5211['locale'],_0x35c5ac=_0x3a5211['plugins']['get']('TrackChangesEditing');_0x35c5ac['descriptionFactory']['registerElementLabel']('paragraph',_0x2ba34c=>o(_0x249c59,'ELEMENT_PARAGRAPH',_0x2ba34c)),_0x35c5ac['enableDefaultAttributesIntegration']('paragraph'),_0x35c5ac['enableCommand']('insertParagraph');const _0x563650=_0x35c5ac['descriptionFactory'];_0x563650['registerDescriptionCallback'](_0x583bba=>{if('insertion'!==_0x583bba['type'])return;const {start:_0x24adb1,end:_0x53e377}=_0x583bba['getFirstRange']();if(!_0x24adb1['isTouching'](_0x53e377)||!_0x24adb1['nodeAfter'])return;const _0x323736=_0x3a5211['model']['schema'],_0x2f1a0d=_0x24adb1['nodeAfter'];return _0x323736['isBlock'](_0x2f1a0d)&&!_0x323736['isLimit'](_0x2f1a0d)&&_0x323736['checkChild'](_0x2f1a0d,'$text')?{'type':'insertion','content':o(_0x249c59,'*Insert:*\x20%0',_0x563650['getItemLabel'](_0x2f1a0d,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x539b40=this['editor'],_0x24d6d9=_0x539b40['locale'];_0x539b40['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x238696=>{if('formatBlock'!=_0x238696['type'])return;const {data:_0x2aa02e}=_0x238696;return _0x2aa02e&&'paragraph'==_0x2aa02e['commandName']?{'type':'format','content':o(_0x24d6d9,'*Change\x20to:*\x20%0',o(_0x24d6d9,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class At extends _0xb2d1b5{['afterInit'](){const _0x5641c3=this['editor'];_0x5641c3['commands']['get']('replaceSource')&&_0x5641c3['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class _t extends _0xb2d1b5{['afterInit'](){const _0x44bfed=this['editor'];if(!_0x44bfed['plugins']['has']('RemoveFormatEditing'))return;_0x44bfed['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1430d9=this['editor'];_0x1430d9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x32743a=>{if('formatBlock'!=_0x32743a['type']&&'formatInline'!=_0x32743a['type'])return;const {data:_0x185a44}=_0x32743a;return _0x185a44&&'removeFormat'==_0x185a44['commandName']?{'type':'format','content':o(_0x1430d9['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class Ct extends _0xb2d1b5{['afterInit'](){const _0x2ce0a9=this['editor'];if(!_0x2ce0a9['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x5d83af=_0x2ce0a9['plugins']['get']('TrackChangesEditing');_0x5d83af['enableCommand']('goToPreviousRestrictedEditingException'),_0x5d83af['enableCommand']('goToNextRestrictedEditingException');const _0x59d428=_0x2ce0a9['plugins']['get']('RestrictedEditingModeEditing');_0x59d428['enableCommand']('trackChanges'),_0x59d428['enableCommand']('acceptSuggestion'),_0x59d428['enableCommand']('discardSuggestion'),_0x59d428['enableCommand']('acceptAllSuggestions'),_0x59d428['enableCommand']('discardAllSuggestions'),_0x59d428['enableCommand']('acceptSelectedSuggestions'),_0x59d428['enableCommand']('discardSelectedSuggestions');}}class Nt extends _0xb2d1b5{['afterInit'](){const _0x2555da=this['editor'];if(!_0x2555da['plugins']['has']('ShiftEnter'))return;const _0x56ada7=_0x2555da['plugins']['get']('TrackChangesEditing');_0x56ada7['enableCommand']('shiftEnter'),_0x56ada7['descriptionFactory']['registerElementLabel']('softBreak',_0x48db13=>o(_0x2555da['locale'],'ELEMENT_LINE_BREAK',_0x48db13));}}function cn(_0x1bc9df,_0x2436f0,_0x48a263){const _0x154a10=[];for(const _0x3a94ec of _0x2436f0['getItems']())_0x3a94ec['hasAttribute'](_0x1bc9df)&&_0x154a10['push'](_0x48a263['createRangeOn'](_0x3a94ec));return _0x154a10;}class $t extends _0xb2d1b5{['afterInit'](){const _0x137937=this['editor'],_0x995da3=_0x137937['plugins']['get']('TrackChangesEditing');_0x137937['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x995da3['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x596199=this['editor'],_0x1b1950=_0x596199['model'],_0x24b21b=_0x596199['locale'],_0x21d6cd=_0x596199['plugins']['get']('TrackChangesEditing'),_0x50a0d9='restrictedEditingException',_0x23853c=_0x596199['commands']['get'](_0x50a0d9);_0x21d6cd['enableCommand'](_0x50a0d9,(_0x5b7595,_0x31f6f8={})=>{const _0x23737c=_0x1b1950['document']['selection'];if(_0x23737c['isCollapsed'])return void _0x5b7595(_0x31f6f8);const _0x59656f=void 0x0!==_0x31f6f8['forceValue']?_0x31f6f8['forceValue']:!_0x23853c['value'];_0x1b1950['change'](()=>{const _0x387b24=Array['from'](_0x23737c['getRanges']());for(const _0x4cc80a of _0x387b24){const _0x20b7b5=_0x59656f?[_0x4cc80a]:cn(_0x50a0d9,_0x4cc80a,_0x1b1950);for(const _0x52ba4c of _0x20b7b5)_0x21d6cd['markInlineFormat'](_0x52ba4c,{'commandName':_0x50a0d9,'commandParams':[{'forceValue':_0x59656f}]});}});}),_0x21d6cd['descriptionFactory']['registerDescriptionCallback'](_0xd625ef=>{if('formatBlock'!=_0xd625ef['type']&&'formatInline'!=_0xd625ef['type'])return;const {data:_0x3222e7}=_0xd625ef;return _0x3222e7&&_0x3222e7['commandName']==_0x50a0d9?_0x3222e7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x24b21b,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x24b21b,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x301032=this['editor'],_0x27299e=_0x301032['locale'],_0x4cbe01=_0x301032['plugins']['get']('TrackChangesEditing'),_0x4826ab='restrictedEditingExceptionBlock',_0x3f4eb6=this['editor']['commands']['get'](_0x4826ab);_0x4cbe01['enableCommand'](_0x4826ab,(_0x15db59,_0x58b535={})=>{const _0x2a26ba=this['editor']['model']['document']['selection'],_0x30be7f=_0x58b535&&void 0x0!==_0x58b535['forceValue']?_0x58b535['forceValue']:!_0x3f4eb6['value'];let _0x46187a=[];if(_0x30be7f){const _0x3dcc4e=Array['from'](_0x2a26ba['getSelectedBlocks']())['filter'](_0x31a2aa=>function(_0x133f3c){return!!_0x133f3c['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x31a2aa)||function(_0x1fd43a,_0x5c53ab){const _0x24795f=_0x5c53ab['createContext'](_0x1fd43a['parent']);if(!_0x5c53ab['checkChild'](_0x24795f,'restrictedEditingException'))return!0x1;if(!_0x5c53ab['checkChild'](_0x24795f['push']('restrictedEditingException'),_0x1fd43a))return!0x1;return!0x0;}(_0x31a2aa,this['editor']['model']['schema']));_0x46187a=to(_0x3dcc4e,_0x301032['model']);}else{const _0x483ba5=Array['from'](_0x2a26ba['getSelectedBlocks']())['map'](_0x4ad047=>function(_0x562ccd){let _0x3f8e43=_0x562ccd;for(;_0x3f8e43['parent'];){if('restrictedEditingException'==_0x3f8e43['parent']['name'])return _0x3f8e43;_0x3f8e43=_0x3f8e43['parent'];}return null;}(_0x4ad047))['filter'](_0x121470=>!!_0x121470);_0x46187a=to(_0x483ba5,_0x301032['model']);}_0x301032['model']['change'](()=>{for(const _0x27d64c of _0x46187a)_0x4cbe01['markBlockFormat'](_0x27d64c,{'commandName':_0x4826ab,'commandParams':[{'forceValue':_0x30be7f}]});});}),_0x4cbe01['descriptionFactory']['registerDescriptionCallback'](_0x16056b=>{const {data:_0x5e114f}=_0x16056b;if(_0x5e114f&&_0x5e114f['commandName']==_0x4826ab)return _0x5e114f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x27299e,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x27299e,'FORMAT_RESTRICTED_DISABLED')};});}}class vt extends _0xb2d1b5{['afterInit'](){const _0x5819a7=this['editor'];if(!_0x5819a7['plugins']['has']('Style')||!_0x5819a7['plugins']['has']('DataSchema'))return;const _0x136c10=_0x5819a7['plugins']['get']('TrackChangesEditing'),_0x3f9881=_0x5819a7['locale'],_0x820992=_0x5819a7['config']['get']('style')||{},_0x5d3c9b=_0x5819a7['plugins']['get']('GeneralHtmlSupport'),_0x27f3b8=_0x5819a7['plugins']['get']('StyleUtils')['normalizeConfig'](_0x5819a7['plugins']['get']('DataSchema'),_0x820992['definitions']);_0x136c10['enableDefaultAttributesIntegration']('style');const _0x1450ef=new Set();for(const _0x5d447b of _0x27f3b8['block']){const _0x543d8f=_0x5d3c9b['getGhsAttributeNameForElement'](_0x5d447b['element']);_0x1450ef['add'](_0x543d8f);}const _0x3b8eef=new Set();for(const _0x24b522 of _0x27f3b8['inline']){const _0x13ea42=_0x5d3c9b['getGhsAttributeNameForElement'](_0x24b522['element']);_0x3b8eef['add'](_0x13ea42);for(const _0x1d8c3e of _0x24b522['ghsAttributes'])_0x3b8eef['add'](_0x1d8c3e);}for(const _0x422ba9 of _0x1450ef)_0x136c10['descriptionFactory']['registerAttributeLabel'](_0x422ba9,o(_0x3f9881,'FORMAT_STYLE'));for(const _0x2872e7 of _0x3b8eef)_0x136c10['descriptionFactory']['registerAttributeLabel'](_0x2872e7,o(_0x3f9881,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5c347a=this['editor'],_0x105729=_0x5c347a['locale'];_0x5c347a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f30df=>{if('formatBlock'!=_0x4f30df['type']&&'formatInline'!=_0x4f30df['type'])return;const {data:_0x4287ca}=_0x4f30df;return _0x4287ca&&'style'===_0x4287ca['commandName']?_0x4287ca['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x105729,'*Set\x20format:*\x20%0',_0x4287ca['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x105729,'*Remove\x20format:*\x20%0',_0x4287ca['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Dt extends _0xb2d1b5{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x3173fe){super(_0x3173fe),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x5c0096=this['editor'],_0x154421=_0x5c0096['model']['document']['selection'];if(!_0x5c0096['plugins']['has']('TableEditing'))return;const _0x3cb0f9=_0x5c0096['locale'],_0xbeb673=_0x5c0096['plugins']['get']('TrackChangesEditing'),_0x2250cb=_0x5c0096['plugins']['get']('TableUtils');_0xbeb673['descriptionFactory']['registerElementLabel']('table',_0x197523=>o(_0x3cb0f9,'ELEMENT_TABLE',_0x197523)),this['_setupColumnsRowsFixing'](),_0xbeb673['enableCommand']('insertTable'),_0xbeb673['enableCommand']('selectTableRow'),_0xbeb673['enableCommand']('selectTableColumn');for(const _0xdc3cc9 of['insertTableRowAbove','insertTableRowBelow']){const _0xa5c678=_0x5c0096['commands']['get'](_0xdc3cc9);_0xbeb673['enableCommand'](_0xdc3cc9,_0x516c85=>{_0x5c0096['model']['change'](_0x2dd3ae=>{_0x516c85();const _0x2cd9b8='above'===_0xa5c678['order'],_0xf3db08=_0x2250cb['getSelectionAffectedTableCells'](_0x154421),_0x4287d6=_0x2250cb['getRowIndexes'](_0xf3db08),_0x171857=_0x2cd9b8?_0x4287d6['first']-0x1:_0x4287d6['last']+0x1,_0x10ebdd=_0xf3db08[0x0]['findAncestor']('table'),_0x2fc67b=_0x2250cb['createTableWalker'](_0x10ebdd,{'startRow':_0x171857,'endRow':_0x171857}),_0x2e267e=Array['from'](_0x2fc67b)['map'](_0xfdfed3=>_0x2dd3ae['createRangeOn'](_0xfdfed3['cell']));_0xbeb673['markMultiRangeInsertion'](_0x2e267e,'tableRow');});});}for(const _0x5de424 of['insertTableColumnLeft','insertTableColumnRight']){const _0x3d3ec3=_0x5c0096['commands']['get'](_0x5de424);_0xbeb673['enableCommand'](_0x5de424,_0x4bb255=>{_0x5c0096['model']['change'](_0x2cd7ea=>{_0x4bb255();const _0x58b471='left'===_0x3d3ec3['order'],_0xbd8152=_0x2250cb['getSelectionAffectedTableCells'](_0x154421),_0x39c6e4=_0x2250cb['getColumnIndexes'](_0xbd8152),_0x4ae1ec=_0x58b471?_0x39c6e4['first']-0x1:_0x39c6e4['last']+0x1,_0x4e66b7=_0xbd8152[0x0]['findAncestor']('table'),_0x372965=_0x2250cb['createTableWalker'](_0x4e66b7,{'startRow':0x0,'column':_0x4ae1ec,'includeAllSlots':!0x1}),_0x162714=Array['from'](_0x372965)['map'](_0x40163c=>_0x2cd7ea['createRangeOn'](_0x40163c['cell']));_0xbeb673['markMultiRangeInsertion'](_0x162714,'tableColumn');});});}for(const _0x13993a of['removeTableRow','removeTableColumn']){const _0xf5c22d=_0x13993a['substr'](0xb),_0x2d2c35=_0xf5c22d['toLowerCase'](),_0x5d02a1=_0x2d2c35['substr'](0x0,0x3)+'span',_0x5257c0='table'+_0xf5c22d,_0x30b872='min'+_0xf5c22d,_0x3c9ec8='max'+_0xf5c22d;_0xbeb673['enableCommand'](_0x13993a,()=>{_0x5c0096['model']['change'](_0x5e2708=>{const _0x55ab38=_0x2250cb['getSelectionAffectedTableCells'](_0x154421),_0x5d58c8=_0x55ab38[0x0]['findAncestor']('table');let _0x343ebc;if('removeTableRow'==_0x13993a){const _0xf3958=_0x2250cb['getRowIndexes'](_0x55ab38);_0x343ebc={'startRow':_0xf3958['first'],'endRow':_0xf3958['last'],'includeAllSlots':!0x0};}else{const _0x3c4057=_0x2250cb['getColumnIndexes'](_0x55ab38);_0x343ebc={'startColumn':_0x3c4057['first'],'endColumn':_0x3c4057['last'],'includeAllSlots':!0x0};}const _0x30cff0=_0x2250cb['createTableWalker'](_0x5d58c8,_0x343ebc),_0x1761fa=Array['from'](_0x30cff0)['map'](({cell:_0x1e001e})=>_0x1e001e),_0x5b097f=_e(_0x1761fa['filter'](_0x524136=>_0x524136['hasAttribute'](_0x5d02a1))),_0x1ed6b3=_e(_0x1761fa['filter'](_0xd7964=>!_0xd7964['hasAttribute'](_0x5d02a1)))['map'](_0x284734=>_0x5e2708['createRangeOn'](_0x284734)),_0x43804d=_0xbeb673['markMultiRangeDeletion'](_0x1ed6b3,_0x5257c0);if(_0x43804d&&('tableRow'==_0x43804d['subType']||'tableColumn'==_0x43804d['subType'])){const _0x7f524f=this['_getSuggestionCoords'](_0x43804d);for(const _0x38760c of _0x5b097f){const _0x5be94d=_0x5e2708['createRangeOn'](_0x38760c),_0xbc60eb=_0x2250cb['getCellLocation'](_0x38760c),_0x2ab386=_0x38760c['getAttribute'](_0x5d02a1)-0x1,_0x3382ea=_0x7f524f[_0x30b872],_0x4e3db1=_0x7f524f[_0x3c9ec8];_0x3382ea<=_0xbc60eb[_0x2d2c35]&&_0xbc60eb[_0x2d2c35]+_0x2ab386<=_0x4e3db1&&_0x43804d['addRange'](_0x5be94d);}}});});}function _0x538094(_0x1c44fe){const _0x56f270=Array['from'](_0x154421['getRanges']())['map'](_0x3cc4dc=>_0x23cc14['fromRange'](_0x3cc4dc));_0x5c0096['model']['change'](_0x5b24ac=>{const _0x3c392e=_0x5b24ac['batch'];_0x1c44fe=_0x1c44fe['filter'](_0x28fdeb=>'$graveyard'!=_0x28fdeb['root']['rootName']),_0x5b24ac['setSelection'](_0x1c44fe),_0x5c0096['commands']['get']('removeTableRow')['refresh'](),_0x5c0096['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x5c0096['model']['enqueueChange'](()=>{_0x5c0096['model']['enqueueChange'](_0x3c392e,_0xcbe2aa=>{const _0x588161=_0x56f270['filter'](_0x1788a7=>'$graveyard'!=_0x1788a7['root']['rootName']);_0x588161['length']>0x0&&_0xcbe2aa['setSelection'](_0x588161);for(const _0x25ffe1 of _0x56f270)_0x25ffe1['detach']();});});});}function _0x515151(_0x2eab4a){_0x5c0096['model']['change'](_0x8e58e3=>{const _0x2f48cb=Array['from'](_0x154421['getRanges']())['map'](_0x4e721c=>_0x23cc14['fromRange'](_0x4e721c)),_0x2e7851=[];for(const _0x505831 of _0x2eab4a)for(const _0x381bb6 of _0x505831['getItems']({'shallow':!0x0}))_0x2e7851['push'](_0x381bb6);for(const _0x2cf848 of _0x2e7851)'$graveyard'!=_0x2cf848['root']['rootName']&&(_0x8e58e3['setSelection'](_0x8e58e3['createPositionAt'](_0x2cf848,0x0)),_0x5c0096['commands']['get']('removeTableColumn')['refresh'](),_0x5c0096['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x6cf92b=_0x2f48cb['filter'](_0x1c8bef=>'$graveyard'!=_0x1c8bef['root']['rootName']);_0x6cf92b['length']>0x0&&_0x8e58e3['setSelection'](_0x6cf92b);for(const _0x397c95 of _0x2f48cb)_0x397c95['detach']();});}function _0x5c9198(_0x4f6974,_0x22afa1){return _0x22afa1['every'](_0x2181a9=>_0x4f6974['some'](_0x2ee432=>_0x2ee432['end']['isEqual'](_0x2181a9['start'])||_0x2181a9['end']['isEqual'](_0x2ee432['start'])));}function _0x19e319(_0x468ab6,_0x5e01d1){return!_0x468ab6['some'](_0x2aa8ca=>_0x5e01d1['some'](_0x51e672=>_0x2aa8ca['isIntersecting'](_0x51e672)))&&_0x468ab6['some'](_0x129ea7=>_0x5e01d1['some'](_0x55c51c=>_0x129ea7['end']['isTouching'](_0x55c51c['start'])));}_0xbeb673['descriptionFactory']['registerDescriptionCallback'](_0x358fc1=>{if('insertion'!=_0x358fc1['type']&&'deletion'!=_0x358fc1['type'])return;const _0x3674ad=_0x358fc1['getContainedElement']();if(null!=_0x3674ad&&_0x3674ad['is']('element','table')){if('insertion'==_0x358fc1['type']){const _0x2d9856=_0x358fc1['getItems']()['filter'](_0x44aa29=>_0x44aa29['is']('$textProxy'))['map'](_0x54e5e7=>_0x54e5e7['data']);if(_0x2d9856['length'])return{'type':'insertion','content':o(_0x3cb0f9,'*Insert:*\x20%0',o(_0x3cb0f9,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2d9856['join']('\x20')+'\x22'))};}if('deletion'==_0x358fc1['type']){const _0x3e83c4=_0x358fc1['getItems']()['filter'](_0x2762c1=>_0x2762c1['is']('$textProxy'))['map'](_0x22658a=>_0x22658a['data']);if(_0x3e83c4['length'])return{'type':'deletion','content':o(_0x3cb0f9,'*Remove:*\x20%0',o(_0x3cb0f9,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3e83c4['join']('\x20')+'\x22'))};}}}),_0xbeb673['descriptionFactory']['registerDescriptionCallback'](_0x2b3e82=>{if('tableRow'==_0x2b3e82['subType']){const _0x4e8c44=_0x2b3e82['getItems']()['filter'](_0xc36b71=>_0xc36b71['is']('$textProxy'))['map'](_0x21de58=>_0x21de58['data']),_0x100015=this['_getSuggestionCoords'](_0x2b3e82),_0x5557fa=_0x100015['maxRow']-_0x100015['minRow']+0x1;if('insertion'==_0x2b3e82['type'])return _0x4e8c44['length']?{'type':'insertion','content':o(_0x3cb0f9,'*Insert:*\x20%0',o(_0x3cb0f9,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5557fa,'\x22'+_0x4e8c44['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3cb0f9,'*Insert:*\x20%0',o(_0x3cb0f9,'ELEMENT_TABLE_ROW',_0x5557fa))};if('deletion'==_0x2b3e82['type'])return _0x4e8c44['length']?{'type':'deletion','content':o(_0x3cb0f9,'*Remove:*\x20%0',o(_0x3cb0f9,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5557fa,'\x22'+_0x4e8c44['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3cb0f9,'*Remove:*\x20%0',o(_0x3cb0f9,'ELEMENT_TABLE_ROW',_0x5557fa))};}if('tableColumn'==_0x2b3e82['subType']){const _0x26b4a4=_0x2b3e82['getItems']()['filter'](_0x208325=>_0x208325['is']('$textProxy'))['map'](_0x43c720=>_0x43c720['data']),_0x14ffc7=this['_getSuggestionCoords'](_0x2b3e82),_0x1612ab=_0x14ffc7['maxColumn']-_0x14ffc7['minColumn']+0x1;if('insertion'==_0x2b3e82['type'])return _0x26b4a4['length']?{'type':'insertion','content':o(_0x3cb0f9,'*Insert:*\x20%0',o(_0x3cb0f9,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1612ab,'\x22'+_0x26b4a4['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3cb0f9,'*Insert:*\x20%0',o(_0x3cb0f9,'ELEMENT_TABLE_COLUMN',_0x1612ab))};if('deletion'==_0x2b3e82['type'])return _0x26b4a4['length']?{'type':'deletion','content':o(_0x3cb0f9,'*Remove:*\x20%0',o(_0x3cb0f9,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1612ab,'\x22'+_0x26b4a4['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3cb0f9,'*Remove:*\x20%0',o(_0x3cb0f9,'ELEMENT_TABLE_COLUMN',_0x1612ab))};}}),_0xbeb673['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x538094),_0xbeb673['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x538094),_0xbeb673['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x515151),_0xbeb673['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x515151),_0xbeb673['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x5c9198),_0xbeb673['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x5c9198),_0xbeb673['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x19e319),_0xbeb673['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x19e319);}['_acceptFormatSuggestionCallbackFactory'](){const _0x31e308=this['editor'],_0x4682e2=_0x31e308['model']['document']['selection'];return(_0x16978e,_0x4ee620)=>{_0x31e308['model']['change'](_0x45ddce=>{const {commandName:_0xf1cf7b,commandParams:_0x2b9c8f}=_0x4ee620;let _0x49ed2c=_0x16978e[0x0]['end']['nodeBefore'];_0x2b9c8f&&_0x2b9c8f[0x0]&&!0x1===_0x2b9c8f[0x0]['forceValue']&&(_0x49ed2c=_0x16978e[0x0]['start']['nodeAfter']);const _0x288c15=_0x45ddce['createRangeIn'](_0x49ed2c);if('$graveyard'==_0x288c15['root']['rootName'])return;const _0x148ffb=Array['from'](_0x4682e2['getRanges']())['map'](_0x5b5b43=>_0x23cc14['fromRange'](_0x5b5b43));_0x45ddce['setSelection'](_0x288c15),_0x31e308['commands']['get'](_0xf1cf7b)['refresh'](),_0x2b9c8f['push']({'forceDefaultExecution':!0x0}),_0x31e308['execute'](_0xf1cf7b,..._0x2b9c8f);const _0x5094ce=_0x148ffb['filter'](_0x2b9f0c=>'$graveyard'!=_0x2b9f0c['root']['rootName']);_0x5094ce['length']>0x0&&_0x45ddce['setSelection'](_0x5094ce);for(const _0xfa6b6d of _0x148ffb)_0xfa6b6d['detach']();});};}['_getCoordsForCells'](_0xbcc2d1){const _0x9f13f=this['editor']['plugins']['get']('TableUtils');let _0x1bcdb=Number['MAX_SAFE_INTEGER'],_0x135ad9=Number['MIN_SAFE_INTEGER'],_0x2eae90=Number['MAX_SAFE_INTEGER'],_0x183a46=Number['MIN_SAFE_INTEGER'];for(const _0x1a8fda of _0xbcc2d1){if('$graveyard'==_0x1a8fda['root']['rootName'])continue;const {row:_0x486f97,column:_0x2c5314}=_0x9f13f['getCellLocation'](_0x1a8fda),_0x1bc903=_0x1a8fda['hasAttribute']('rowspan')?_0x1a8fda['getAttribute']('rowspan')-0x1:0x0,_0x3f9a63=_0x1a8fda['hasAttribute']('colspan')?_0x1a8fda['getAttribute']('colspan')-0x1:0x0;_0x1bcdb=_0x486f97<_0x1bcdb?_0x486f97:_0x1bcdb,_0x135ad9=_0x486f97+_0x1bc903>_0x135ad9?_0x486f97+_0x1bc903:_0x135ad9,_0x2eae90=_0x2c5314<_0x2eae90?_0x2c5314:_0x2eae90,_0x183a46=_0x2c5314+_0x3f9a63>_0x183a46?_0x2c5314+_0x3f9a63:_0x183a46;}return{'minRow':_0x1bcdb,'maxRow':_0x135ad9,'minColumn':_0x2eae90,'maxColumn':_0x183a46};}['_setupColumnsRowsFixing'](){const _0x3942d8=this['editor'],_0x338881=_0x3942d8['plugins']['get']('TrackChangesEditing'),_0x21dca3=_0x3942d8['plugins']['get']('TableUtils');_0x3942d8['model']['document']['on']('change:data',()=>{const _0x2dd153=Array['from'](_0x3942d8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4e7680,data:_0x1aee4f}of _0x2dd153){const {group:_0x50f114,id:_0x1b4b1d,subType:_0xb4b4d6}=_0x338881['_splitMarkerName'](_0x4e7680);if('suggestion'!=_0x50f114)continue;if(null!=_0x1aee4f['oldRange'])continue;const _0x4a8226=_0x338881['getSuggestion'](_0x1b4b1d);this['_tablePostFixingSubtypes']['includes'](_0xb4b4d6)&&this['_tableSuggestions']['add'](_0x4a8226);}},{'priority':'low'});const _0x3a3021=(_0x543ea2,_0x5a39f6)=>{let _0x48e5e6=!0x1;const _0x2e9c80=_0x5a39f6['createRangeOn'](_0x543ea2),_0x3f77bf=_0x543ea2['findAncestor']('table'),_0x3d3075=_0x21dca3['getCellLocation'](_0x543ea2);for(const _0x139eea of this['_tableSuggestions']){const _0x4f2706=_0x139eea['subType'],_0x152aa5=_0x4f2706['startsWith']('tablePaste'),_0x4ee09e=_0x4f2706['substr'](_0x152aa5?0xa:0x5),_0x1aebca=_0x4ee09e['toLowerCase'](),_0x202aba=_0x1aebca['substr'](0x0,0x3)+'span',_0x4c0ca8='min'+_0x4ee09e,_0x4deca8='max'+_0x4ee09e;if(!_0x139eea['isInContent'])continue;if(_0x3f77bf!=_0x139eea['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x139eea['isIntersectingWithRange'](_0x2e9c80))continue;const _0x5e081e=_0x543ea2['hasAttribute'](_0x202aba)?_0x543ea2['getAttribute'](_0x202aba)-0x1:0x0,_0x20b656=this['_getSuggestionCoords'](_0x139eea),_0x471a7d=_0x20b656[_0x4c0ca8],_0x30182a=_0x20b656[_0x4deca8];_0x471a7d<=_0x3d3075[_0x1aebca]&&_0x3d3075[_0x1aebca]+_0x5e081e<=_0x30182a&&(_0x139eea['addRange'](_0x2e9c80),_0x48e5e6=!0x0);}return _0x48e5e6;};_0x3942d8['model']['document']['registerPostFixer'](_0x50af33=>{let _0x5a108f=!0x1;for(const _0x2a9897 of _0x3942d8['model']['document']['differ']['getChanges']())if('insert'==_0x2a9897['type']){if('tableRow'==_0x2a9897['name']){for(const _0x9246ae of _0x2a9897['position']['nodeAfter']['getChildren']())_0x5a108f=_0x5a108f||_0x3a3021(_0x9246ae,_0x50af33);}else'tableCell'==_0x2a9897['name']&&(_0x5a108f=_0x5a108f||_0x3a3021(_0x2a9897['position']['nodeAfter'],_0x50af33));}return _0x5a108f;});}['_getSuggestionCoords'](_0x35b96d){return this['_getCoordsForCells'](_0x35b96d['getRanges']()['map'](_0x106b63=>_0x106b63['start']['nodeAfter']));}}function _e(_0x8a2f44){return Array['from'](new Set(_0x8a2f44)['values']());}class Bt extends _0xb2d1b5{static get['requires'](){return[Dt];}['afterInit'](){const _0x574453=this['editor'],_0xfe79dd=_0x574453['model']['document']['selection'],_0x4b29ea=_0x574453['locale'];if(!_0x574453['plugins']['has']('TableEditing'))return;const _0x509527=_0x574453['plugins']['get']('TrackChangesEditing'),_0x18311a=_0x574453['plugins']['get']('TableUtils'),_0x4b3321=_0x574453['plugins']['get'](Dt);_0x4b3321['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x509527['enableCommand']('mergeTableCells',()=>{const _0x44a713=_0x18311a['getSelectionAffectedTableCells'](_0x574453['model']['document']['selection']);_0x574453['model']['change'](()=>{_0x509527['markMultiRangeBlockFormat'](_0x44a713,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x574453['commands']['get']('mergeTableCells')['on']('execute',(_0x3559f3,_0x4c3eb4)=>{_0x574453['commands']['get']('trackChanges')['value']&&(_0x4c3eb4['length']>0x0&&_0x4c3eb4[_0x4c3eb4['length']-0x1]&&_0x4c3eb4[_0x4c3eb4['length']-0x1]['forceDefaultExecution']||_0x509527['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x3559f3['stop']());},{'priority':'highest'});for(const _0x21514c of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x40fead=_0x574453['commands']['get'](_0x21514c);_0x509527['enableCommand'](_0x21514c,()=>{const _0x938f14=_0x574453['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2c3c2a=>_0x2c3c2a['is']('element','tableCell')),_0x3d0a79=_0x40fead['value'];_0x574453['model']['change'](()=>{_0x509527['markMultiRangeBlockFormat']([_0x938f14,_0x3d0a79],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x437cfe of['splitTableCellVertically','splitTableCellHorizontally']){const _0x474038=_0x574453['commands']['get'](_0x437cfe);_0x509527['enableCommand'](_0x437cfe,()=>{const _0x363f29=_0x18311a['getSelectionAffectedTableCells'](_0x574453['model']['document']['selection'])[0x0],_0x1f3cea=_0x363f29['findAncestor']('table'),{column:_0x5b608b,row:_0x45cdc7}=_0x18311a['getCellLocation'](_0x363f29);let _0x3d72a7=[];if('horizontally'==_0x474038['direction']){const _0x52f362=_0x18311a['createTableWalker'](_0x1f3cea,{'startRow':_0x45cdc7,'endRow':_0x45cdc7,'includeAllSlots':!0x0});_0x3d72a7=Array['from'](_0x52f362)['map'](_0xc1b823=>_0xc1b823['cell']);}else{const _0x27015e=_0x18311a['createTableWalker'](_0x1f3cea,{'column':_0x5b608b,'includeAllSlots':!0x0});_0x3d72a7=Array['from'](_0x27015e)['map'](_0x253c2b=>_0x253c2b['cell']);}_0x574453['model']['change'](_0x1be7a7=>{_0x509527['markBlockFormat'](_0x1be7a7['createRangeOn'](_0x363f29),{'commandName':_0x437cfe,'commandParams':[]},_0x3d72a7,_0x437cfe);});});}_0x509527['descriptionFactory']['registerDescriptionCallback'](_0x465816=>{if('formatBlock'!=_0x465816['type']&&'formatInline'!=_0x465816['type'])return;const {data:_0x5e0f83}=_0x465816;return _0x5e0f83&&'mergeTableCells'==_0x5e0f83['commandName']?{'type':'format','content':o(_0x4b29ea,'*Merge\x20cells*')}:void 0x0;}),_0x509527['descriptionFactory']['registerDescriptionCallback'](_0x5b2119=>{if('formatBlock'!=_0x5b2119['type']&&'formatInline'!=_0x5b2119['type'])return;const {data:_0x54e6a6}=_0x5b2119;return _0x54e6a6?'splitTableCellVertically'==_0x54e6a6['commandName']?{'type':'format','content':o(_0x4b29ea,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x54e6a6['commandName']?{'type':'format','content':o(_0x4b29ea,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x191a24=_0x4b3321['_acceptFormatSuggestionCallbackFactory']();for(const _0x446d56 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x509527['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x446d56,'accept',_0x191a24);for(const _0x1c8124 of['splitTableCellVertically','splitTableCellHorizontally'])_0x509527['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1c8124,'accept',_0x191a24);_0x509527['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x26357b=>{_0x574453['model']['change'](_0x5655f2=>{const _0x35575c=Array['from'](_0xfe79dd['getRanges']())['map'](_0x4ff8ec=>_0x23cc14['fromRange'](_0x4ff8ec));_0x5655f2['setSelection'](_0x26357b),_0x574453['commands']['get']('mergeTableCells')['refresh'](),_0x574453['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x8a3fae=_0x35575c['filter'](_0x39493d=>'$graveyard'!=_0x39493d['root']['rootName']);_0x8a3fae['length']>0x0&&_0x5655f2['setSelection'](_0x8a3fae);for(const _0x1e145d of _0x35575c)_0x1e145d['detach']();});});for(const _0x59e76e of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x4fad93=_0x574453['commands']['get'](_0x59e76e);_0x4fad93['on']('set:isEnabled',(_0x8facc5,_0x2c7c61,_0x26b5f3)=>{if(_0x26b5f3){const _0x5b1722=_0x574453['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xfba656=>_0xfba656['is']('element','tableCell'));this['_areMergableCells'](_0x4fad93['value'],_0x5b1722)||(_0x8facc5['return']=!0x1,_0x8facc5['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x27da84=this['editor']['commands']['get']('mergeTableCells'),_0x615dd7=this['editor']['plugins']['get']('TableUtils');if(!_0x27da84['isEnabled'])return!0x1;const _0x27c97=_0x615dd7['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x5d4780 of _0x27c97)for(const _0x4b064a of _0x27c97)if(_0x5d4780!=_0x4b064a&&!this['_areMergableCells'](_0x5d4780,_0x4b064a))return!0x1;return!0x0;}['_areMergableCells'](_0x5b637e,_0x358f70){const _0x9dd38=this['editor']['plugins']['get']('TrackChangesEditing'),_0x17b224=this['editor']['model']['createRangeOn'](_0x5b637e),_0x5c75d0=this['editor']['model']['createRangeOn'](_0x358f70),_0x110561=new Set(),_0x168ae2=new Set();for(const _0x5ce7c9 of _0x9dd38['getSuggestions']())if(('insertion'==_0x5ce7c9['type']||'deletion'==_0x5ce7c9['type']||'mergeTableCells'==_0x5ce7c9['subType'])&&_0x5ce7c9['isInContent']){for(const _0x3b9938 of _0x5ce7c9['getRanges']())_0x3b9938['containsRange'](_0x17b224,!0x0)&&_0x110561['add'](_0x5ce7c9['type']+':'+_0x5ce7c9['author']['id']),_0x3b9938['containsRange'](_0x5c75d0,!0x0)&&_0x168ae2['add'](_0x5ce7c9['type']+':'+_0x5ce7c9['author']['id']);}if(_0x110561['size']!=_0x168ae2['size'])return!0x1;for(const _0x2514d4 of _0x110561)if(!_0x168ae2['has'](_0x2514d4))return!0x1;return!0x0;}}class Ot extends _0xb2d1b5{static get['requires'](){return[Dt];}['afterInit'](){const _0x1c97ef=this['editor'];if(!_0x1c97ef['plugins']['has']('TableEditing'))return;const _0x3b08bf=_0x1c97ef['locale'],_0x398ec8=_0x1c97ef['plugins']['get']('TrackChangesEditing');_0x398ec8['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x398ec8['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x398ec8['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x3b08bf,'FORMAT_HEADER_ROW')),_0x398ec8['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x3b08bf,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x42ed8e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4e5232=this['editor']['plugins']['get'](Dt)['_acceptFormatSuggestionCallbackFactory']();_0x42ed8e['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4e5232),_0x42ed8e['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4e5232),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x286d15=this['editor']['plugins']['get']('TrackChangesEditing'),_0x33bcc9=this['editor']['plugins']['get']('TableUtils');function _0x409b62({showActiveMarker:_0x4f67fc=!0x0,setDataAttribute:_0x428dd4=!0x0}={}){return(_0x32459d,_0x5a87db,_0x36b8fe)=>{const {type:_0x1a9c5f,id:_0x25ffd6}=_0x286d15['_splitMarkerName'](_0x5a87db['markerName']);if(!_0x286d15['hasSuggestion'](_0x25ffd6))return;const _0x57d7a9=_0x286d15['getSuggestion'](_0x25ffd6),_0x3540fc=_0x57d7a9['data'];if('formatBlock'!=_0x57d7a9['type']||!_0x3540fc||'setTableColumnHeader'!=_0x3540fc['commandName'])return;if(_0x5a87db['item'])return void _0x32459d['stop']();if(!_0x36b8fe['consumable']['consume'](_0x5a87db['markerRange'],_0x32459d['name']))return;const _0x48d40c=_0x5a87db['markerRange']['start']['nodeAfter'],_0x2c122c=_0x5a87db['markerRange']['end']['nodeBefore'],_0x22d730=_0x48d40c['parent']['parent'],{column:_0xda6e06}=_0x33bcc9['getCellLocation'](_0x48d40c),{column:_0x4cfed9}=_0x33bcc9['getCellLocation'](_0x2c122c);for(let _0x24a9b1=_0xda6e06;_0x24a9b1<=_0x4cfed9;_0x24a9b1++){const _0x5c38a9=_0x33bcc9['createTableWalker'](_0x22d730,{'column':_0x24a9b1,'includeAllSlots':!0x1});for(const _0x2ecad6 of _0x5c38a9){const _0x2dc684=_0x2ecad6['cell'],_0x5047a8=_0x36b8fe['mapper']['toViewElement'](_0x2dc684);_0x36b8fe['writer']['addClass']('ck-suggestion-marker-'+_0x1a9c5f,_0x5047a8),_0x428dd4&&_0x36b8fe['writer']['setAttribute']('data-suggestion',_0x25ffd6,_0x5047a8),_0x36b8fe['mapper']['bindElementToMarker'](_0x5047a8,_0x5a87db['markerName']),_0x4f67fc&&(_0x286d15['activeMarkers']['includes'](_0x5a87db['markerName'])?_0x36b8fe['writer']['addClass']('ck-suggestion-marker--active',_0x5047a8):_0x36b8fe['writer']['removeClass']('ck-suggestion-marker--active',_0x5047a8));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x409b62(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x29d91b,_0x28fd58,_0x1af15b)=>{_0x1af15b['options']['showSuggestionHighlights']&&_0x409b62({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x29d91b,_0x28fd58,_0x1af15b);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x40dd9f,_0x596019,_0x5854bf)=>{const {type:_0x49991a,id:_0x1a3e84}=_0x286d15['_splitMarkerName'](_0x596019['markerName']);if(!_0x286d15['hasSuggestion'](_0x1a3e84))return;const _0x469c3a=_0x286d15['getSuggestion'](_0x1a3e84),_0x5daddd=_0x469c3a['data'];if('formatBlock'!=_0x469c3a['type']||!_0x5daddd||'setTableColumnHeader'!=_0x5daddd['commandName'])return;const _0x378d50=_0x5854bf['mapper']['markerNameToElements'](_0x596019['markerName']);if(_0x378d50){for(const _0x1fd598 of _0x378d50)_0x5854bf['writer']['removeClass']('ck-suggestion-marker-'+_0x49991a,_0x1fd598),_0x5854bf['writer']['removeClass']('ck-suggestion-marker--active',_0x1fd598),_0x5854bf['writer']['removeAttribute']('data-suggestion',_0x1fd598),_0x5854bf['mapper']['unbindElementFromMarkerName'](_0x1fd598,_0x596019['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x120580=this['editor'],_0x391e27=_0x120580['locale'];function _0x40f0a6(_0x1b2bbd){return{'type':'format','content':o(_0x391e27,'*Format:*\x20%0',_0x1b2bbd)};}_0x120580['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b2d14=>{if('formatBlock'!=_0x4b2d14['type'])return;const {data:_0x244191}=_0x4b2d14;if(_0x244191){if('setTableRowHeader'==_0x244191['commandName']){const _0xec45bd=_0x244191['commandParams'][0x0]['forceValue'];return _0x40f0a6(o(_0x391e27,_0xec45bd?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x244191['commandName']){const _0x54aa1a=_0x244191['commandParams'][0x0]['forceValue'];return _0x40f0a6(o(_0x391e27,_0x54aa1a?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class xt extends _0xb2d1b5{['afterInit'](){const _0x1b4461=this['editor'],_0x24e6bd=_0x1b4461['locale'],_0x5851e1=_0x1b4461['plugins']['get']('TrackChangesEditing');function _0x1ed57b(_0x33ae98){return{'type':'format','content':''+o(_0x24e6bd,'*Set\x20table\x20type:*\x20%0',_0x33ae98)};}_0x1b4461['plugins']['has']('TableLayout')&&(_0x5851e1['enableCommand']('insertTableLayout'),_0x5851e1['enableDefaultAttributesIntegration']('tableType'),_0x5851e1['descriptionFactory']['registerElementLabel'](_0x46ff3c=>_0x46ff3c['is']('element','table')&&'layout'===_0x46ff3c['getAttribute']('tableType'),_0xf9c7d=>o(_0x24e6bd,'ELEMENT_LAYOUT_TABLE',_0xf9c7d)),_0x5851e1['descriptionFactory']['registerDescriptionCallback'](_0xb709d1=>{const {data:_0x1c84e6}=_0xb709d1;if(_0x1c84e6&&'tableType'==_0x1c84e6['key'])switch(_0x1c84e6['newValue']){case'layout':return _0x1ed57b(o(_0x24e6bd,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x1ed57b(o(_0x24e6bd,'ELEMENT_CONTENT_TABLE'));}}));}}const Re=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ae=/* #__PURE__ -- @preserve */
25
+ Object['fromEntries'](Re['map'](_0x4fc7ac=>[_0x4fc7ac,null]));class Mt extends _0xb2d1b5{static get['requires'](){return[Dt];}['afterInit'](){const _0x4dc7e9=this['editor'];if(!_0x4dc7e9['plugins']['has']('TableClipboard'))return;const _0x655afd=_0x4dc7e9['plugins']['get']('TrackChangesEditing'),_0xa7589=_0x4dc7e9['plugins']['get']('TableUtils'),_0x537514=_0x4dc7e9['plugins']['get'](Dt),_0x378e67=_0x4dc7e9['plugins']['get']('TableClipboard'),_0x15e0db=_0x4dc7e9['plugins']['get']('TableSelection'),_0x31225f=_0x4dc7e9['plugins']['get'](_0x1bb9ae);_0x537514['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x4dc7e9['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x4dc7e9['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0xa3c80d=null,_0x579916=!0x1;_0x31225f['on']('contentInsertion',(_0x403d6a,_0x5e30c9)=>{_0x579916='paste'===_0x5e30c9['method'];}),_0x4dc7e9['model']['on']('insertContent',(_0x1e9b57,_0x25d5e6)=>{if(!_0x579916&&null===_0x15e0db['getSelectedTableCells']())return;const [_0x473203,_0xe43c8c]=_0x25d5e6,_0x5f4781=_0x25d5e6[_0x25d5e6['length']-0x1];_0x5f4781&&_0x5f4781['forceDefaultExecution']||_0x655afd['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x2a4c21,_0x5bb7c7,_0x1026af,_0x5a4f0c,_0x438f70){if(_0x5bb7c7&&!_0x5bb7c7['is']('documentSelection'))return!0x1;const _0x3335b2=_0x438f70['getTableIfOnlyTableInContent'](_0x2a4c21,_0x1026af);if(!_0x3335b2||!Oe(_0x3335b2,void 0x0,_0x5a4f0c))return!0x1;const _0x19401d=_0x5a4f0c['getSelectionAffectedTableCells'](_0x1026af['document']['selection']);if(!_0x19401d['length'])return!0x1;const _0x3d32f3=_0x19401d[0x0]['findAncestor']('table'),_0x4cc82c=_0x5a4f0c['getRowIndexes'](_0x19401d),_0x1ddbb5=_0x5a4f0c['getColumnIndexes'](_0x19401d),_0x3b13c0={'startRow':_0x4cc82c['first'],'endRow':_0x4cc82c['last'],'startColumn':_0x1ddbb5['first'],'endColumn':_0x1ddbb5['last']};return 0x1==_0x19401d['length']&&(_0x3b13c0['endRow']+=_0x5a4f0c['getRows'](_0x3335b2)-0x1,_0x3b13c0['endColumn']+=_0x5a4f0c['getColumns'](_0x3335b2)-0x1),Oe(_0x3d32f3,_0x3b13c0,_0x5a4f0c);}(_0x473203,_0xe43c8c,_0x4dc7e9['model'],_0xa7589,_0x378e67)&&(_0x1e9b57['stop'](),_0xa3c80d={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x4dc7e9['model']['change'](()=>{_0x4dc7e9['model']['insertContent'](_0x25d5e6[0x0],_0x25d5e6[0x1],_0x25d5e6[0x2],{'forceDefaultExecution':!0x0});const _0x33a328=_0x43100d(),{rowInsertionRanges:_0x296d71,columnInsertionRanges:_0x51e0a5,insertionRanges:_0x181736,deletionRanges:_0x15b829,cells:_0x54dcd0}=_0xa3c80d;_0x296d71['length']&&_0x655afd['markMultiRangeInsertion'](_0x296d71,'tablePasteRow',{'tablePasteChainId':_0x33a328}),_0x51e0a5['length']&&_0x655afd['markMultiRangeInsertion'](_0x51e0a5,'tablePasteColumn',{'tablePasteChainId':_0x33a328}),_0x181736['length']&&(_0x655afd['markMultiRangeInsertion'](_0x181736,'tablePaste',{'tablePasteChainId':_0x33a328,'skipNestingCheck':!0x0}),_0x181736['forEach'](_0x2077ba=>_0x2077ba['detach']?.())),_0x15b829['length']&&(_0x655afd['markMultiRangeDeletion'](_0x15b829,'tablePaste',{'tablePasteChainId':_0x33a328,'skipNestingCheck':!0x0}),_0x15b829['forEach'](_0x9b4d1e=>_0x9b4d1e['detach']?.()));const _0x545364=_0x655afd['markMultiRangeBlockFormat'](_0x54dcd0['map'](({element:_0x493d5d})=>_0x493d5d),{'formatGroupId':_0x43100d()},[],'tablePasteCell',{'tablePasteChainId':_0x33a328});if(_0x545364){const _0x1de7c5=_0x545364['getMarkers'](),_0x5aa827=[];for(const {element:_0x4f6c7e,attributes:_0x45d258}of _0x54dcd0){if(!_0x45d258)continue;const _0xa32576=_0x4dc7e9['model']['createRangeOn'](_0x4f6c7e),_0x3e3960=_0x1de7c5['find'](_0x475bbd=>_0x475bbd['getRange']()['isEqual'](_0xa32576));_0x3e3960&&_0x5aa827['push']([_0x3e3960['name'],_0x45d258]);}_0x5aa827['length']&&_0x545364['setAttribute']('markerAttributes',Object['fromEntries'](_0x5aa827));}_0xa3c80d=null;}));},{'priority':_0x1bfb2d['high']+0xa}),_0x31225f['on']('contentInsertion',()=>{_0x579916=!0x1;},{'priority':'lowest'}),_0x4dc7e9['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0xbbe5ff,_0x3c0f6f)=>{const [_0x378402,_0x3ea1d1,,_0x5396a3]=_0x3c0f6f;if(!_0xa3c80d)return;_0xbbe5ff['stop']();const _0x5ec317=_0x378402['cell'],_0x5d0bcf=_0x3ea1d1,_0x5466ac=Be(_0x5ec317),_0x5666f8=Be(_0x5d0bcf);_0xbbe5ff['return']=_0x5ec317;let _0x2f7a57=null,_0x475f0a=null;if(_0x5666f8||_0x5466ac){if(_0x5466ac&&!_0x5666f8){_0x5396a3['remove'](_0x5ec317['getChild'](0x0));for(const _0x54dc36 of Array['from'](_0x5d0bcf['getChildren']()))_0x5396a3['insert'](_0x54dc36,_0x5ec317,'end');const _0x35efc1=_0xa3c80d['rowInsertionIndexes']['includes'](_0x378402['row']),_0x5ec609=_0xa3c80d['columnInsertionIndexes']['includes'](_0x378402['column']);_0x35efc1||_0x5ec609||(_0x2f7a57=_0x23cc14['fromRange'](_0x5396a3['createRangeIn'](_0x5ec317)));}else _0x5666f8&&!_0x5466ac&&(_0x475f0a=_0x5396a3['createRangeIn'](_0x5ec317));}else{const _0x25e41a=_0x5396a3['createElement']('tableCellSuggestion'),_0x4f9abe=_0x5396a3['createElement']('tableCellSuggestion');_0x5396a3['wrap'](_0x5396a3['createRangeIn'](_0x5ec317),_0x4f9abe),_0x5396a3['insert'](_0x25e41a,_0x5ec317,0x0);for(const _0x3dc4d9 of Array['from'](_0x5d0bcf['getChildren']()))_0x5396a3['insert'](_0x3dc4d9,_0x25e41a,'end');_0x2f7a57=_0x23cc14['fromRange'](_0x5396a3['createRangeOn'](_0x25e41a)),_0x475f0a=_0x23cc14['fromRange'](_0x5396a3['createRangeOn'](_0x4f9abe));}const _0x381caf=Array['from'](_0x5d0bcf['getAttributes']())['filter'](([_0x11a42b])=>Re['includes'](_0x11a42b));_0xa3c80d['cells']['push']({'element':_0x5ec317,'attributes':_0x381caf['length']?Object['fromEntries'](_0x381caf):null}),_0x2f7a57&&_0xa3c80d['insertionRanges']['push'](_0x2f7a57),_0x475f0a&&_0xa3c80d['deletionRanges']['push'](_0x475f0a);},{'priority':'high'}),_0xa7589['on']('insertColumns',(_0x1744c8,_0x531c59)=>{const [_0x1427f2,_0x167549={}]=_0x531c59;if(!_0xa3c80d)return;const _0x3bb9d6=_0x167549['at']||0x0,_0x29016a=_0x167549['columns']||0x1;_0xa3c80d['columnInsertionIndexes']=new Array(_0x29016a)['fill'](_0x3bb9d6)['map']((_0x15b732,_0x5e0223)=>_0x15b732+_0x5e0223);for(const {cell:_0x709331}of _0xa7589['createTableWalker'](_0x1427f2,{'startColumn':_0x3bb9d6,'endColumn':_0x3bb9d6+_0x29016a-0x1}))_0xa3c80d['columnInsertionRanges']['push'](_0x4dc7e9['model']['createRangeOn'](_0x709331));},{'priority':'low'}),_0xa7589['on']('insertRows',(_0x17163e,_0x5e4a12)=>{const [_0x5bcdb5,_0x4728b1={}]=_0x5e4a12;if(!_0xa3c80d)return;const _0x1a02e4=_0x4728b1['at']||0x0,_0x4861b1=_0x4728b1['rows']||0x1;_0xa3c80d['rowInsertionIndexes']=new Array(_0x4861b1)['fill'](_0x1a02e4)['map']((_0x5d939c,_0x5c5d55)=>_0x5d939c+_0x5c5d55);for(const {cell:_0x508195}of _0xa7589['createTableWalker'](_0x5bcdb5,{'startRow':_0x1a02e4,'endRow':_0x1a02e4+_0x4861b1-0x1}))_0xa3c80d['rowInsertionRanges']['push'](_0x4dc7e9['model']['createRangeOn'](_0x508195));},{'priority':'low'}),_0x655afd['descriptionFactory']['registerDescriptionCallback'](_0x3ec383=>{if(_0x3ec383['subType']&&_0x3ec383['subType']['startsWith']('tablePaste'))return _0x3ec383['previous']?{}:{'type':'insertion','content':o(_0x4dc7e9['locale'],'*Replace\x20table\x20cells*')};});const _0x10d743=()=>!0x1;for(const _0x28e01f of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x655afd['_suggestionFactory']['registerCustomCallback']('insertion',_0x28e01f,'join',_0x10d743),_0x655afd['_suggestionFactory']['registerCustomCallback']('deletion',_0x28e01f,'join',_0x10d743),_0x655afd['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x28e01f,'join',_0x10d743);_0x655afd['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x10d743),_0x655afd['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x3a0ace,_0x324af2,_0x3b3b23)=>{const _0x5a9b69=_0x3a0ace['map'](_0x4aa7c3=>_0x4aa7c3['getContainedElement']())['filter'](_0x5cd673=>_0x5cd673),_0x50c140=new Map(_0x5a9b69['map'](_0x46a8d0=>[_0x46a8d0,null]));if(_0xa3c80d){for(const {element:_0x258256,attributes:_0x2e986b}of _0xa3c80d['cells'])_0x2e986b&&_0x50c140['set'](_0x258256,_0x2e986b);}else{if(_0x3b3b23&&_0x3b3b23['markerAttributes'])for(const [_0x4536ec,_0x4ff998]of Object['entries'](_0x3b3b23['markerAttributes'])){const _0x50db00=_0x4dc7e9['model']['markers']['get'](_0x4536ec),_0x10e59e=_0x50db00?_0x50db00['getRange']()['getContainedElement']():null;_0x10e59e&&_0x50c140['set'](_0x10e59e,_0x4ff998);}}_0x4dc7e9['model']['change'](_0x2e51fb=>{for(const [_0x135d26,_0x5e6c97]of _0x50c140)_0x2e51fb['setAttributes']({...Ae,..._0x5e6c97},_0x135d26);});});const _0x7bacc0=(_0x1fe0f5,_0x5d48e0)=>{_0x655afd['_suggestionFactory']['registerCustomCallback'](_0x1fe0f5,'tablePaste',_0x5d48e0,(_0xc1cd73,_0x4a9e4b,_0xdfd0fc)=>{_0x4dc7e9['model']['change'](_0x1de17f=>{const _0x2c1bc2=[];for(const _0x54594b of _0xc1cd73){const _0xbe5dda=_0x54594b['start']['nodeAfter'];_0xbe5dda['is']('element','tableCellSuggestion')&&_0x2c1bc2['push'](_0xbe5dda);}_0x655afd['_suggestionFactory']['getSuggestionCallback'](_0x1fe0f5,null,_0x5d48e0)(_0xc1cd73,_0x4a9e4b,_0xdfd0fc);for(const _0x2154bc of _0x2c1bc2)'$graveyard'!=_0x2154bc['root']['rootName']&&_0x1de17f['unwrap'](_0x2154bc);});});};_0x7bacc0('insertion','accept'),_0x7bacc0('insertion','discard'),_0x7bacc0('deletion','accept'),_0x7bacc0('deletion','discard'),_0x655afd['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x4b363b=>{const _0x4dc805=_0x4b363b['map'](_0x277752=>_0x277752['getContainedElement']()),_0x3af43a=_0x4dc805[0x0]['findAncestor']('table'),{minRow:_0x2e901a,maxRow:_0x55fedb}=_0x537514['_getCoordsForCells'](_0x4dc805);_0xa7589['removeRows'](_0x3af43a,{'at':_0x2e901a,'rows':_0x55fedb-_0x2e901a+0x1});}),_0x655afd['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x570049=>{const _0x47ef95=_0x570049['map'](_0x1b9dba=>_0x1b9dba['getContainedElement']()),_0x967fbc=_0x47ef95[0x0]['findAncestor']('table'),{minColumn:_0x10eb2a,maxColumn:_0x3716ee}=_0x537514['_getCoordsForCells'](_0x47ef95);_0xa7589['removeColumns'](_0x967fbc,{'at':_0x10eb2a,'columns':_0x3716ee-_0x10eb2a+0x1});});const _0x10d465=(_0x1f71fc,_0x2de018)=>{if(!_0x2de018['subType']||!_0x2de018['subType']['startsWith']('tablePaste'))return;const _0x566954=_0x2de018['attributes']['tablePasteChainId'],_0x363de8=_0x655afd['getSuggestions']()['filter'](_0x41e2fe=>_0x41e2fe['isInContent']&&_0x41e2fe['attributes']&&_0x41e2fe['attributes']['tablePasteChainId']==_0x566954);_0x363de8['length']&&_0x2de018['getAllAdjacentSuggestions']()['length']!=_0x363de8['length']&&_0x363de8['reduce']((_0x3adafd,_0xbe26ff)=>(_0x3adafd['next']=_0xbe26ff,_0xbe26ff['previous']=_0x3adafd,_0xbe26ff));};function _0x35ab9d(_0x515d02,_0x3c3e8f=!0x0){const {id:_0xef949,authorId:_0x6091c8}=_0x655afd['_splitMarkerName'](_0x515d02['markerName']),_0xc3dcd1=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x40c891=_0x655afd['activeMarkers']['includes'](_0x515d02['markerName']);return _0x40c891&&_0xc3dcd1['push']('ck-suggestion-marker--active'),{'classes':_0xc3dcd1,'attributes':{'data-suggestion':_0xef949,'data-author-id':_0x6091c8},'priority':_0x40c891&&_0x3c3e8f?0xbc2:0xbb8};}_0x655afd['on']('suggestionLoaded',_0x10d465,{'priority':'high'}),_0x655afd['on']('suggestionUnloaded',_0x10d465,{'priority':'high'}),_0x4dc7e9['model']['document']['registerPostFixer'](()=>{let _0x5ebe43=!0x1;const _0x4a9271=Array['from'](_0x4dc7e9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x346ba6,data:_0x5e55a6}of _0x4a9271){const {group:_0x56802f,type:_0x41061b,id:_0x252da9}=_0x655afd['_splitMarkerName'](_0x346ba6);if('suggestion'!=_0x56802f||'deletion'!=_0x41061b||_0x5e55a6['oldRange'])continue;if(!_0x655afd['hasSuggestion'](_0x252da9))continue;const _0x5762e3=_0x655afd['getSuggestion'](_0x252da9)['getRanges'](),_0x4324a5=_0x4dc7e9['plugins']['get']('Users')['me'];for(const _0x5c0648 of _0x655afd['getSuggestions']()){if(!_0x5c0648['isInContent']||_0x5c0648['author']!=_0x4324a5)continue;if('formatBlock'!=_0x5c0648['type']||'tablePasteCell'!=_0x5c0648['subType'])continue;if(_0x5c0648['getRanges']()['every'](_0x1eb2d8=>_0x5762e3['some'](_0xb54501=>_0xb54501['containsRange'](_0x1eb2d8,!0x0)))){for(const _0x2883b4 of _0x5c0648['getAllAdjacentSuggestions']())_0x2883b4['isInContent']&&(_0x2883b4['discard'](),_0x5ebe43=!0x0);}}}return _0x5ebe43;}),_0x4dc7e9['model']['document']['registerPostFixer'](_0x4a8ccd=>{const _0x549052=_0x4dc7e9['commands']['get']('redo');if(!_0x549052||!_0x549052['_createdBatches']['has'](_0x4a8ccd['batch']))return!0x1;let _0xcbddfd=!0x1;const _0x4cec1d=_0x4dc7e9['plugins']['get']('Users')['me'],_0x577d7d=_0x4dc7e9['model']['document']['differ']['getChanges'](),_0xb7d3e4=Array['from'](_0x4dc7e9['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x5ebe4,data:_0x21beb3})=>{const {group:_0x1add06,subType:_0x4aa319,authorId:_0x2ff6b5}=_0x655afd['_splitMarkerName'](_0x5ebe4);return'suggestion'==_0x1add06&&'tablePaste'==_0x4aa319&&_0x2ff6b5==_0x4cec1d['id']&&!_0x21beb3['oldRange'];});for(const _0x743692 of _0x577d7d){if('insert'!=_0x743692['type']||'tableCellSuggestion'!=_0x743692['name']||0x1!=_0x743692['length'])continue;const _0xa3504b=_0x4a8ccd['createRange'](_0x743692['position'],_0x743692['position']['getShiftedBy'](0x1));if(!_0xb7d3e4['find'](({data:_0x544bce})=>_0x544bce['newRange']['isEqual'](_0xa3504b))){for(const {name:_0x5accac,data:_0x512eb0}of _0xb7d3e4)if(_0xa3504b['containsRange'](_0x512eb0['newRange'])){_0x4a8ccd['updateMarker'](_0x5accac,{'range':_0xa3504b}),_0xcbddfd=!0x0;break;}}}return _0xcbddfd;}),_0x4dc7e9['model']['document']['registerPostFixer'](_0x3e5c5e=>{let _0x1b6d6b=!0x1;const _0x354a08=_0x4dc7e9['plugins']['get']('Users')['me'],_0x38bd03=_0x655afd['getSuggestions']()['filter'](_0x2523f2=>_0x2523f2['isInContent']&&_0x2523f2['author']==_0x354a08),_0x204e86=new Set(),_0xd3b9e4=new Set();for(const _0x32a089 of _0x38bd03)if('tablePaste'==_0x32a089['subType'])for(const _0x4b237b of _0x32a089['getMarkers']()){const _0x7d6d82=_0x4b237b['getRange']()['getContainedElement']();if(_0x7d6d82){if(_0x7d6d82['is']('element','tableCellSuggestion')&&Be(_0x7d6d82)){_0x32a089['removeMarker'](_0x4b237b['name']),_0x204e86['add'](_0x7d6d82),_0x1b6d6b=!0x0;const _0x52ab1d=_0x7d6d82['nextSibling'],_0x15e5bd=_0x7d6d82['previousSibling'],_0xe3e794=_0x52ab1d&&_0x52ab1d['is']('element','tableCellSuggestion'),_0x1156c2=_0x15e5bd&&_0x15e5bd['is']('element','tableCellSuggestion');_0xe3e794&&!_0x204e86['has'](_0x52ab1d)&&_0xd3b9e4['add'](_0x52ab1d),_0x1156c2&&!_0x204e86['has'](_0x15e5bd)&&_0xd3b9e4['add'](_0x15e5bd);}else _0x7d6d82['is']('element','paragraph')&&_0x7d6d82['isEmpty']&&(_0x32a089['removeMarker'](_0x4b237b['name']),_0x1b6d6b=!0x0);}}else{if('tablePasteCell'==_0x32a089['subType']){if(!_0x32a089['attributes']||!_0x32a089['attributes']['tablePasteChainId'])continue;const _0x182a12=_0x32a089['attributes']['markerAttributes'];if(_0x182a12&&Object['keys'](_0x182a12)['length'])continue;const _0x22edda=_0x32a089['attributes']['tablePasteChainId'];let _0x2dae5d=!0x0,_0x301673=!0x0;for(const _0x43324e of _0x38bd03)if(_0x43324e['subType']&&_0x43324e['subType']['startsWith']('tablePaste')){if(!_0x43324e['attributes']['tablePasteChainId']){_0x301673=!0x1;break;}if(_0x43324e['id']!=_0x32a089['id']&&_0x43324e['attributes']['tablePasteChainId']==_0x22edda){_0x2dae5d=!0x1;break;}}_0x301673&&_0x2dae5d&&(_0x32a089['removeMarkers'](),_0x1b6d6b=!0x0);}}for(const _0x43bb33 of _0x204e86)_0x3e5c5e['remove'](_0x43bb33);for(const _0x43c698 of _0xd3b9e4)_0x3e5c5e['unwrap'](_0x43c698);return _0x1b6d6b;}),_0x4dc7e9['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x4a20c3=>_0x35ab9d(_0x4a20c3),'converterPriority':'high'}),_0x4dc7e9['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3c57cb,_0x1d789a)=>_0x1d789a['options']['showSuggestionHighlights']?_0x35ab9d(_0x3c57cb,!0x1):null,'converterPriority':'high'});const _0x330697=_0x4dc7e9['editing']['view'];this['listenTo'](_0x330697['document'],'clipboardOutput',(_0x4bbf6e,_0x2f4686)=>{const _0x5bd2a1=[];for(const _0x4278de of _0x330697['createRangeIn'](_0x2f4686['content'])['getItems']())_0x4278de['is']('element','suggestion-td')&&_0x5bd2a1['push'](_0x4278de);_0x330697['change'](_0x24ba3c=>{for(const _0x5223ae of _0x5bd2a1)_0x24ba3c['move'](_0x24ba3c['createRangeIn'](_0x5223ae),_0x24ba3c['createPositionBefore'](_0x5223ae)),_0x24ba3c['remove'](_0x5223ae);});});}}function Be(_0x3ba6c4){if(_0x3ba6c4['isEmpty'])return!0x0;const _0x4c7362=_0x3ba6c4['getChild'](0x0);return _0x4c7362['is']('element','paragraph')&&_0x4c7362['isEmpty'];}function Oe(_0x3abca8,_0xdf57c9={},_0x10819a){for(const {isAnchor:_0x3263ab,cellHeight:_0x50c61e,cellWidth:_0x1b35b1}of _0x10819a['createTableWalker'](_0x3abca8,{'includeAllSlots':!0x0,..._0xdf57c9}))if(!_0x3263ab||0x1!=_0x50c61e||0x1!=_0x1b35b1)return!0x1;return!0x0;}class Rt extends _0xb2d1b5{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x57b6c3=this['editor']['plugins']['get']('TrackChangesEditing');_0x57b6c3['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x57b6c3['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x57b6c3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x57b6c3['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x57b6c3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x57b6c3['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x47d836,_0x3d9bd7){const _0x151ed2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5c1aac=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x123d26=_0x3d9bd7['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3f2d33=_0x5c1aac['getColumnGroupElement'](_0x123d26);let _0x4085a8=_0x3f2d33?_0x5c1aac['getTableColumnsWidths'](_0x3f2d33):null,_0x2c8574=_0x123d26['getAttribute']('tableWidth')||null;const _0x374faa=_0x3d9bd7['tableWidth']||_0x2c8574,_0x27a5a6=_0x3d9bd7['columnWidths']||_0x4085a8,_0x9bbd43=this['editor']['plugins']['get']('Users')['me'];for(const _0x5a788e of _0x151ed2['getSuggestions']()){const _0x541f0b=_0x5a788e['getContainedElement']();if('resizeTable'===_0x5a788e['subType']&&_0x541f0b===_0x123d26){_0x5a788e['author']!==_0x9bbd43&&_0x5a788e['discard']();const _0x3dc91=_0x5a788e['data']['commandParams'];_0x2c8574=_0x3dc91[0x0]['tableWidth'],_0x4085a8=_0x3dc91[0x0]['columnWidths'];break;}}_0x47d836({'table':_0x123d26,'tableWidth':_0x374faa,'columnWidths':_0x27a5a6}),_0x151ed2['markBlockFormat'](_0x123d26,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x2c8574,'columnWidths':_0x4085a8}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x160be8){if('formatBlock'!=_0x160be8['type']&&'formatInline'!=_0x160be8['type'])return;const {data:_0x2e2580}=_0x160be8;if(_0x2e2580&&'resizeTable'===_0x2e2580['formatGroupId']){const _0x43fb14='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x43fb14)};}}}class Tt extends _0xb2d1b5{['afterInit'](){const _0x3c7daf=this['editor'];_0x3c7daf['plugins']['has']('Template')&&_0x3c7daf['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Et extends _0xb2d1b5{['afterInit'](){const _0xb76c78=this['editor'];if(!_0xb76c78['commands']['get']('insertTableOfContents'))return;_0xb76c78['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x599e0d=_0xb76c78['plugins']['get']('TrackChangesEditing'),_0x1a3b95=_0xb76c78['locale'];_0x599e0d['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1eab45=>o(_0x1a3b95,'ELEMENT_TABLE_OF_CONTENTS',_0x1eab45));}}class Ut extends _0xb2d1b5{['afterInit'](){const _0x1cf5f9=this['editor'];if(!_0x1cf5f9['plugins']['has']('Title'))return;const _0x526ed8=_0x1cf5f9['plugins']['get']('TrackChangesEditing');_0x526ed8['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x1cf5f9['locale'],'ELEMENT_TITLE')),_0x1cf5f9['model']['document']['registerPostFixer'](_0x296e32=>{let _0x2404df=!0x1;const _0x4ffb15=Array['from'](_0x1cf5f9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2b1228,data:_0x8383b4}of _0x4ffb15){const {group:_0x31b39c}=_0x526ed8['_splitMarkerName'](_0x2b1228);if('suggestion'!==_0x31b39c||!_0x8383b4['newRange'])continue;const _0x5a1843=_0x8383b4['newRange'],_0x277f75=_0x5a1843['end']['nodeBefore'];if(!_0x277f75||!_0x277f75['is']('element','title-content'))continue;if(!_0x5a1843['start']['isTouching'](_0x5a1843['end']))continue;const _0x372fed=_0x1cf5f9['model']['schema']['getNearestSelectionRange'](_0x5a1843['end'],'forward');if(_0x372fed&&_0x372fed['isCollapsed']){const _0x357406=_0x296e32['createRange'](_0x5a1843['start'],_0x372fed['start']);_0x357406['isEqual'](_0x5a1843)||(_0x296e32['updateMarker'](_0x2b1228,{'range':_0x357406}),_0x2404df=!0x0);}_0x2404df||(_0x296e32['removeMarker'](_0x2b1228),_0x2404df=!0x0);}return _0x2404df;});}}class Vt extends _0xb2d1b5{['afterInit'](){const _0xc08151=this['editor'],_0x25c566=_0xc08151['plugins']['get']('TrackChangesEditing');_0xc08151['plugins']['has']('Uploadcare')&&(_0x25c566['enableCommand']('uploadcare'),_0xc08151['plugins']['has']('UploadcareImageEdit')&&(_0x25c566['enableCommand']('uploadcareImageEdit'),_0x25c566['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x25c566['descriptionFactory']['registerDescriptionCallback'](_0x11974b=>{if('attribute'!=_0x11974b['type'])return;const {data:_0x32ab03}=_0x11974b;return _0x32ab03&&'uploadcareImageId'==_0x32ab03['key']?{'type':'format','content':''}:void 0x0;})));}}class Ft extends _0xb2d1b5{['afterInit'](){const _0x2aa556=this['editor'],_0x415aa7=_0x2aa556['plugins']['get']('TrackChangesEditing');_0x2aa556['plugins']['has']('UndoEditing')&&(_0x415aa7['enableCommand']('undo'),_0x415aa7['enableCommand']('redo'));}}class Pt extends _0xb2d1b5{static get['requires'](){return[Dt];}['afterInit'](){const _0x22e5cd=this['editor'];if(!_0x22e5cd['plugins']['has']('TableCaptionEditing'))return;_0x22e5cd['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Gt extends _0xb2d1b5{['tableProperties'];['tableCellProperties'];constructor(_0x5d67b4){super(_0x5d67b4),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'],_0x5d67b4['config']['get']('experimentalFlags.tableCellTypeSupport')&&this['tableCellProperties']['push']('tableCellType');}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x41ce5b=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x3ac735 of this['tableProperties'])_0x41ce5b['enableCommand'](_0x3ac735,(_0x34be9d,_0x104b9f)=>{const _0x3209ee=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x3ac735,[_0x3209ee],this['tableProperties'],'tableProperties',_0x34be9d,_0x104b9f);});_0x41ce5b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x41ce5b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x41ce5b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x4699f6,_0x3ad063)=>this['handleDiscardAction'](this['tableProperties'],_0x4699f6,_0x3ad063)),_0x41ce5b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x1e2592 of this['tableCellProperties'])this['editor']['commands']['get'](_0x1e2592)&&_0x41ce5b['enableCommand'](_0x1e2592,(_0xfcd9a,_0x1a7a1b)=>{const _0xa5183f=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x1e2592,_0xa5183f,this['tableCellProperties'],'tableCellProperties',_0xfcd9a,_0x1a7a1b);});_0x41ce5b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x41ce5b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x41ce5b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x31e1cc,_0x193e6a)=>this['handleDiscardAction'](this['tableCellProperties'],_0x31e1cc,_0x193e6a)),_0x41ce5b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x41ce5b['descriptionFactory']['registerAttributeLabel']('tableCellType',o(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x41ce5b['descriptionFactory']['registerDescriptionCallback'](_0xc5e820=>this['handleSuggestionDescription'](_0xc5e820)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x20e4b2,_0x2fe8d7,_0x3c3a7e,_0x4dc862,_0x355089,_0x45807e){const _0x36a0c3=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x45807e['batch'],()=>{for(const _0x52d15a of _0x2fe8d7){if(this['_getSuggestion'](_0x52d15a,_0x4dc862))_0x355089(_0x45807e);else{const _0x499d1a={};for(const _0x2b38ff of _0x3c3a7e){const _0x3e2d03=_0x52d15a['getAttribute'](_0x2b38ff);void 0x0!==_0x3e2d03&&(_0x499d1a[_0x2b38ff]=_0x3e2d03);}_0x355089(_0x45807e),_0x36a0c3['markBlockFormat'](_0x52d15a,{'commandParams':[_0x499d1a]},[],_0x4dc862);}}});}['handleDiscardAction'](_0x3e5ad0,_0x98e735,_0x4c0024){const _0x1d00ac=_0x98e735[0x0]['start']['nodeAfter'],_0x53b15a=_0x4c0024['commandParams'][0x0];this['editor']['model']['change'](_0x440950=>{for(const _0x4e2048 of _0x3e5ad0)void 0x0!==_0x53b15a[_0x4e2048]?_0x440950['setAttribute'](_0x4e2048,_0x53b15a[_0x4e2048],_0x1d00ac):_0x440950['removeAttribute'](_0x4e2048,_0x1d00ac);});}['handleSuggestionDescription'](_0x188da7){if(_0x188da7['data'])switch(_0x188da7['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x44306c,_0xb705e1){const _0x4b4bc5=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x1bef0c of _0x4b4bc5['getSuggestions']({'skipNotAttached':!0x0})){const _0x4dc3f5=_0x1bef0c['getContainedElement']();if(_0x1bef0c['subType']===_0xb705e1&&_0x4dc3f5===_0x44306c)return _0x1bef0c;}return null;}['_registerTablePropertiesAttributes'](){const _0x32198e=this['editor']['plugins']['get']('TrackChangesEditing'),_0xb87017=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x33f710 of _0xb87017){const _0x3b699c=_0x33f710['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x32198e['descriptionFactory']['registerAttributeLabel'](_0x33f710,o(this['editor']['locale'],'FORMAT_'+_0x3b699c));}}}class Lt extends _0xb2d1b5{['afterInit'](){const _0x54c44e=this['editor'];if(!_0x54c44e['plugins']['has']('LineHeight'))return;const _0x33b4a2=_0x54c44e['plugins']['get']('TrackChangesEditing'),_0x2c3f75=_0x54c44e['locale'];_0x33b4a2['enableDefaultAttributesIntegration']('lineHeight'),_0x33b4a2['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x2c3f75,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0xb2d1b5{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x24828a,_0x3dac01,_0x24c32b,_0x2299d5,U,V,F,G,L,J,q,K,z,W,H,Q,Z,tt,nt,it,et,st,ot,rt,at,ct,ut,ht,ft,lt,gt,mt,pt,wt,jt,dt,X,Lt,Y,kt,bt,yt,St,It,At,_t,Ct,Nt,$t,vt,Dt,Bt,Ot,xt,Pt,Mt,Rt,Et,Gt,Tt,Ut,Vt,Ft];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x45e8e4){super(_0x45e8e4),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x5cec7c,_0x32637c,_0x4dfc00,_0x107e87)=>{this['_model']['change'](()=>{for(const _0x3c1cb5 of[..._0x107e87,..._0x4dfc00])this['_model']['markers']['has'](_0x3c1cb5)&&_0x45e8e4['editing']['reconvertMarker'](_0x3c1cb5);});}),this['descriptionFactory']=new E(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new SuggestionFactory(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x45e8e4['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x45e8e4['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x45e8e4['config']['get']('trackChanges.trackFormatChanges'),_0x45e8e4['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x45e8e4['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x45e8e4,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x1986b3=this['editor'];_0x1986b3['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x633635,{writer:_0x1d51a3})=>{let _0x38d843='suggestion:'+_0x633635['getAttribute']('suggestion-type')+':'+_0x633635['getAttribute']('id');return _0x633635['getAttribute']('marker-count')&&(_0x38d843+=':'+_0x633635['getAttribute']('marker-count')),_0x1d51a3['createElement']('$marker',{'data-name':_0x38d843});}}),_0x1986b3['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x1986b3['model']['document']['registerPostFixer'](_0x52a2ad=>{let _0x2c1382=!0x1;const _0x11c228=Array['from'](_0x1986b3['model']['document']['differ']['getChangedMarkers']()),_0xbf3239=new Set();for(const {name:_0x23074e,data:_0x59e170}of _0x11c228){const {group:_0xa958e9,type:_0x4c0e53,subType:_0x590290,id:_0x212e84}=this['_splitMarkerName'](_0x23074e);if('suggestion'!==_0xa958e9)continue;const _0x3c124d=_0x590290?'suggestion:'+_0x4c0e53+':'+_0x590290+':'+_0x212e84:'suggestion:'+_0x4c0e53+':'+_0x212e84,_0x5cde55=_0x1986b3['model']['markers']['getMarkersGroup'](_0x3c124d),_0x358c47=_0x1986b3['model']['markers']['get'](_0x23074e),_0x7b4947=this['_suggestions']['get'](_0x212e84);if(null!=_0x59e170['newRange']){'formatInline'==_0x4c0e53&&(_0x2c1382=_0x2c1382||Kt(_0x59e170['newRange'],_0x23074e,_0x52a2ad,_0x1986b3['model']['schema']));const _0x268a0e='attribute'==_0x4c0e53&&this['_isBlockAttribute'](_0x590290['split']('|')[0x0]),_0xa8a1e3='attribute'==_0x4c0e53&&this['_isInlineAttribute'](_0x590290['split']('|')[0x0]);if(_0x59e170['newRange']['isCollapsed']||'$graveyard'==_0x59e170['newRange']['root']['rootName']||'formatBlock'==_0x4c0e53&&!Ht(_0x59e170['newRange'])||_0x268a0e&&!Ht(_0x59e170['newRange'])||_0xa8a1e3&&Qt(_0x59e170['newRange'])||'deletion'==_0x4c0e53&&Qt(_0x59e170['newRange'])||_0x358c47&&Xt(_0x358c47,_0x5cde55))_0x52a2ad['removeMarker'](_0x23074e),_0x2c1382=!0x0;else{if(!_0x7b4947||!_0x7b4947['isInContent'])continue;if(_0x59e170['newRange']&&_0x59e170['oldRange']&&_0x59e170['newRange']['isEqual'](_0x59e170['oldRange']))continue;_0xbf3239['add'](_0x7b4947);}}}return _0xbf3239['size']>0x0&&(_0x2c1382=!!this['_joinWithAdjacentSuggestions'](_0xbf3239)||_0x2c1382),_0x2c1382;}),_0x1986b3['model']['document']['registerPostFixer'](_0x28ebd9=>{let _0x3b6b8f=!0x1;for(const _0x3da09b of _0x1986b3['model']['document']['differ']['getChanges']())if('insert'==_0x3da09b['type'])for(const _0x267756 of this['_suggestions']['values']()){if(_0x267756['isMultiRange']||!_0x267756['isInContent'])continue;const _0x3a958d='formatBlock'==_0x267756['type'],_0xf99daf=this['_getAttributeKey'](_0x267756),_0x5d58a7=_0xf99daf&&this['_isBlockAttribute'](_0xf99daf);if(!_0x3a958d&&!_0x5d58a7)continue;const _0x2014ea=_0x267756['getFirstRange']();if(_0x2014ea['start']['parent']!=_0x2014ea['end']['parent']&&!_0x2014ea['end']['isAtEnd']){const _0x542a45=_0x1986b3['model']['createPositionAt'](_0x2014ea['start']['nodeAfter'],'end'),_0x2b4fa3=_0x1986b3['model']['createRange'](_0x2014ea['start'],_0x542a45);_0x28ebd9['updateMarker'](_0x267756['getFirstMarker'](),{'range':_0x2b4fa3}),_0x3b6b8f=!0x0;}}return _0x3b6b8f;}),_0x1986b3['model']['document']['registerPostFixer'](_0x29a0a0=>this['_processAttributeChanges'](_0x29a0a0)),_0x1986b3['model']['document']['registerPostFixer'](_0x37f108=>!_0x37f108['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x37f108)),_0x1986b3['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x1986b3['model']['document']['on']('change:data',(_0x17d8b9,_0x3a06be)=>{if(!_0x3a06be['isLocal']||_0x3a06be['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x1ed664=_0x1986b3['model']['document']['differ']['getChanges']();if(0x0==_0x1ed664['length'])return;const _0x55f0c9=[],_0x384a7c=_0x1ed664['filter'](_0x6ebdd8=>'attribute'==_0x6ebdd8['type']),_0x1ccdef=_0x1ed664['filter'](_0x54a693=>'insert'==_0x54a693['type']&&'$text'!=_0x54a693['name']);for(const _0x2e48ac of _0x384a7c)this['_isRegisteredAttribute'](_0x2e48ac['attributeKey'])&&_0x55f0c9['push']({'key':_0x2e48ac['attributeKey'],'newValue':_0x2e48ac['attributeNewValue'],'oldValue':_0x2e48ac['attributeOldValue'],'range':Yt(_0x2e48ac['range'],_0x1986b3['model'])});for(const _0x54b3d0 of _0x1ccdef){if('rename'!=_0x54b3d0['action']&&'refresh'!=_0x54b3d0['action'])continue;const _0x58cdd8=Zt(_0x54b3d0['position']['nodeAfter'],_0x1986b3['model']),_0x38cb2a=_0x54b3d0['before'];'rename'==_0x54b3d0['action']&&_0x55f0c9['push']({'key':m,'newValue':_0x54b3d0['name'],'oldValue':_0x38cb2a['name'],'range':_0x58cdd8});for(const [_0x3aad29,_0x116bfc]of _0x38cb2a['attributes']){if(!this['_isRegisteredAttribute'](_0x3aad29))continue;const _0x21a0cb=_0x54b3d0['attributes']['get'](_0x3aad29);_0x116bfc!==_0x21a0cb&&_0x55f0c9['push']({'key':_0x3aad29,'newValue':_0x21a0cb,'oldValue':_0x116bfc,'range':_0x58cdd8});}for(const [_0x26b492,_0x2c656d]of _0x54b3d0['attributes'])this['_isRegisteredAttribute'](_0x26b492)&&(_0x38cb2a['attributes']['has'](_0x26b492)||_0x55f0c9['push']({'key':_0x26b492,'newValue':_0x2c656d,'oldValue':null,'range':_0x58cdd8}));}0x0!=_0x55f0c9['length']&&_0x1986b3['model']['enqueueChange'](_0x3a06be,_0x321cd3=>{const _0x1cc7c9=_0x43100d();for(const {range:_0x5948db,key:_0x52d501,oldValue:_0x27660e,newValue:_0x1a76fe}of _0x55f0c9)this['markAttributeChange'](_0x5948db,_0x52d501,_0x27660e,_0x1a76fe,{'groupId':_0x1cc7c9});this['_reduceExistingSuggestions'](_0x321cd3,_0x55f0c9);});},{'priority':'lowest'}),_0x1986b3['model']['markers']['on']('update:suggestion',(_0x1eaafd,_0x14ba7c,_0xc6aade)=>{if(null==_0xc6aade){const {id:_0xf50b8}=this['_splitMarkerName'](_0x14ba7c['name']),_0x4743df=this['_suggestions']['get'](_0xf50b8);_0x4743df&&_0x4743df['addMarkerName'](_0x14ba7c['name']);}}),_0x1986b3['model']['document']['on']('change:data',()=>{const _0x44d5cd=Array['from'](_0x1986b3['model']['document']['differ']['getChangedMarkers']())['filter'](_0x73c99=>'suggestion'===this['_splitMarkerName'](_0x73c99['name'])['group']);if(0x0===_0x44d5cd['length'])return;_0x44d5cd['sort']((_0x5c1d27,_0x179c66)=>{const _0x2c75d1=_0x5c1d27['data']['oldRange'],_0x5ecbf6=_0x179c66['data']['oldRange'];return null===_0x2c75d1&&null===_0x5ecbf6?0x0:null===_0x2c75d1&&null!==_0x5ecbf6?-0x1:null!==_0x2c75d1&&null===_0x5ecbf6?0x1:_0x2c75d1['start']['isBefore'](_0x5ecbf6['start'])?-0x1:0x1;});const _0x17ab24=new Set(),_0x44e251=new Set();for(const {name:_0x3c7080,data:_0x3996ab}of _0x44d5cd){const {id:_0x50eb93}=this['_splitMarkerName'](_0x3c7080);if(null===_0x3996ab['oldRange']){const _0x49716b=this['_handleNewSuggestionMarker'](_0x3c7080);_0x44e251['add'](_0x49716b);}else{const _0x8ce376=this['_suggestions']['get'](_0x50eb93);null!==_0x3996ab['newRange']||_0x8ce376['isInContent']?(_0x17ab24['add'](_0x8ce376['head']),_0x44e251['add'](_0x8ce376)):this['_removeSuggestion'](_0x8ce376);}}_0x44e251['size']>0x0&&this['_refreshSuggestionsChain'](_0x44e251);for(const _0x86933d of _0x17ab24)this['fire']('suggestionChanged',_0x86933d);}),_0x1986b3['model']['on']('applyOperation',(_0x8b865d,_0x349b23)=>{const _0x1f7d14=_0x349b23[0x0];if(!this['_suggestions']['size'])return;if(!_0x1f7d14['isDocumentOperation'])return;if(_0x1f7d14['batch']['isUndo']||!_0x1f7d14['batch']['isLocal'])return;let _0x60c12,_0x51efcc;switch(_0x1f7d14['type']){case'insert':_0x60c12=_0x1986b3['model']['createPositionAt'](_0x1f7d14['position']),_0x51efcc=_0x60c12['getShiftedBy'](_0x1f7d14['howMany']);break;case'split':_0x60c12=_0x1986b3['model']['createPositionAt'](_0x1f7d14['splitPosition']),_0x51efcc=_0x1986b3['model']['createPositionAt'](_0x1f7d14['moveTargetPosition']);break;case'move':_0x60c12=_0x1986b3['model']['createPositionAt'](_0x1f7d14['targetPosition']),_0x51efcc=_0x60c12['getShiftedBy'](_0x1f7d14['howMany']);break;default:return;}const _0x34d607=_0x1986b3['model']['createRange'](_0x60c12,_0x51efcc);_0x1986b3['model']['change'](()=>{for(const {suggestion:_0x3ea80d,meta:_0x29176d}of this['_findSuggestions'](_0x34d607)){if(_0x3ea80d['isMultiRange'])continue;if('formatInline'==_0x3ea80d['type'])continue;const _0x4bea8b=this['_getAttributeKey'](_0x3ea80d);if(_0x4bea8b&&this['_isBlockAttribute'](_0x4bea8b)&&'split'!=_0x1f7d14['type'])continue;const _0x2d1990=_0x3ea80d['data']&&_0x3ea80d['data']['multipleBlocks'];('formatBlock'!=_0x3ea80d['type']||'split'==_0x1f7d14['type']&&!_0x2d1990)&&(_0x29176d['containsRangeInObject']||'insertion'==_0x3ea80d['type']&&_0x29176d['isOwn']||_0x3ea80d['getFirstRange']()['containsRange'](_0x34d607)&&this['_breakSuggestionMarker'](_0x3ea80d,_0x60c12,_0x51efcc));}});},{'priority':'lowest'}),_0x1986b3['model']['on']('deleteContent',(_0x587c5a,_0x322975)=>{const _0xb3ce37=_0x322975[0x0],_0x4e712f=_0x322975[0x1];if(_0x4e712f&&_0x4e712f['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0xb3ce37['isCollapsed'])return;const _0x48f395=_0x1986b3['model']['schema'],{start:_0x249ca6,end:_0x4e3865}=_0xb3ce37['getFirstRange'](),_0x1794aa=_0x249ca6['nodeAfter']&&_0x48f395['isLimit'](_0x249ca6['nodeAfter'])?null:_0x48f395['getNearestSelectionRange'](_0x249ca6,'forward'),_0x238fcb=_0x4e3865['nodeBefore']&&_0x48f395['isLimit'](_0x4e3865['nodeBefore'])?null:_0x48f395['getNearestSelectionRange'](_0x4e3865,'backward'),_0x330434=_0x1986b3['model']['createRange'](_0x1794aa?_0x1794aa['start']:_0x249ca6,_0x238fcb?_0x238fcb['end']:_0x4e3865);_0x1986b3['model']['change'](_0x5ec732=>{this['markDeletion'](_0x330434);const _0x2744f2=_0x1986b3['model']['schema']['getNearestSelectionRange'](_0x330434['start']);_0xb3ce37['is']('documentSelection')?_0x5ec732['setSelection'](_0x2744f2):_0xb3ce37['setTo'](_0x2744f2);}),_0x587c5a['stop']();},{'priority':_0x1bfb2d['normal']+0xa}),_0x1986b3['model']['on']('insertContent',(_0x2245b2,_0x29ab3d)=>{const _0x5d59c3=_0x29ab3d[_0x29ab3d['length']-0x1];_0x5d59c3&&_0x5d59c3['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x1986b3['model']['change'](()=>{let _0xe93a33=_0x1986b3['model']['insertContent'](_0x29ab3d[0x0],_0x29ab3d[0x1],_0x29ab3d[0x2],{'forceDefaultExecution':!0x0});if(!_0xe93a33)return;_0x2245b2['return']=_0xe93a33['clone']();const _0xe28d9b=_0xe93a33['end']['nodeBefore'],_0xad7d3=_0x1986b3['model']['schema'];_0xe28d9b&&_0xad7d3['isBlock'](_0xe28d9b)&&!_0xad7d3['isObject'](_0xe28d9b)&&(_0xe93a33=_0x1986b3['model']['createRange'](_0xe93a33['start'],_0x1986b3['model']['createPositionAt'](_0xe28d9b,'end'))),this['markInsertion'](_0xe93a33);}),_0x2245b2['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x513c17=new O(_0x1986b3,this['_suggestions']);_0x1986b3['commands']['add']('acceptSuggestion',_0x513c17),this['enableCommand']('acceptSuggestion');const _0x2ad2c0=new x(_0x1986b3,this['_suggestions']);_0x1986b3['commands']['add']('discardSuggestion',_0x2ad2c0),this['enableCommand']('discardSuggestion'),_0x1986b3['commands']['add']('acceptAllSuggestions',new M(_0x1986b3,_0x513c17,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x1986b3['commands']['add']('discardAllSuggestions',new M(_0x1986b3,_0x2ad2c0,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x1986b3['commands']['add']('acceptSelectedSuggestions',new R(_0x1986b3,_0x513c17,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x1986b3['commands']['add']('discardSelectedSuggestions',new R(_0x1986b3,_0x2ad2c0,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x223c93=_0x1986b3['plugins']['get']('CommentsRepository');this['listenTo'](_0x223c93,'addComment',(_0x38128c,{threadId:_0x516ed7})=>{const _0x59384e=this['_suggestions']['get'](_0x516ed7);_0x59384e&&_0x59384e['commentThread']&&0x1===_0x59384e['commentThread']['length']&&this['_updateSuggestionData'](_0x516ed7,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x223c93,'removeComment',(_0x9afad0,{threadId:_0x188061})=>{const _0x332a4d=this['_suggestions']['get'](_0x188061);_0x332a4d&&_0x332a4d['commentThread']&&!_0x332a4d['commentThread']['length']&&this['_updateSuggestionData'](_0x188061,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x55898c){const _0x99a5d3=_0x3bb055([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x4a0037=0x3d8d0df,_0x576650=0x3df451f^_0x4a0037,_0x9eb8e7=window[_0x3bb055([0x44,0x61,0x74,0x65])][_0x3bb055([0x6e,0x6f,0x77])](),_0x2dacdd=_0x55898c[_0x3bb055([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2a0683=new window[(_0x3bb055([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x329261=>{_0x2dacdd[_0x3bb055([0x6f,0x6e,0x63,0x65])](_0x3bb055([0x72,0x65,0x61,0x64,0x79]),_0x329261);}),_0x1117c6={[_0x3bb055([0x6b,0x74,0x79])]:_0x3bb055([0x45,0x43]),[_0x3bb055([0x75,0x73,0x65])]:_0x3bb055([0x73,0x69,0x67]),[_0x3bb055([0x63,0x72,0x76])]:_0x3bb055([0x50,0x2d,0x32,0x35,0x36]),[_0x3bb055([0x78])]:_0x3bb055([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]),[_0x3bb055([0x79])]:_0x3bb055([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]),[_0x3bb055([0x61,0x6c,0x67])]:_0x3bb055([0x45,0x53,0x32,0x35,0x36])},_0x48d589=_0x2dacdd[_0x3bb055([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3bb055([0x67,0x65,0x74])](_0x3bb055([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x14a2f3(){let _0x516eb2,_0x35ba5e=null,_0x4b2512=null;try{if(_0x48d589==_0x3bb055([0x47,0x50,0x4c]))return _0x3bb055([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x516eb2=_0x1996a4(),!_0x516eb2)return _0x3bb055([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x516eb2[_0x3bb055([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4b2512=_0x52513e(_0x516eb2[_0x3bb055([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x516eb2[_0x3bb055([0x6a,0x74,0x69])])),await _0x39ec4f()?_0x325904()?_0x50fd30()?_0x3bb055([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x470d65()?(_0x516eb2[_0x3bb055([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3bb055([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x35ba5e=_0x59cabd(_0x3bb055([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4e29e0()):_0x3bb055([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3bb055([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3bb055([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3bb055([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x50fd30(){const _0x1fb6aa=[_0x3bb055([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3bb055([0x74,0x72,0x69,0x61,0x6c])][_0x3bb055([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x516eb2[_0x3bb055([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x9eb8e7/0x3e8:0xe10*_0x576650;return _0x516eb2[_0x3bb055([0x65,0x78,0x70])]<_0x1fb6aa;}function _0x325904(){const _0x7ca9b3=_0x516eb2[_0x3bb055([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x7ca9b3)return!0x1;if(_0x7ca9b3[_0x3bb055([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3bb055([0x2a])))return!0x0;if(_0x7ca9b3[_0x3bb055([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3bb055([0x54,0x43])))return!0x0;if(_0x7ca9b3[_0x3bb055([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3bb055([0x52,0x54,0x43]))){if(_0x3bc414())return!0x0;if(_0x411621()||_0x36e790())return!0x0;}return!0x1;}function _0x470d65(){const _0x17d2f6=_0x516eb2[_0x3bb055([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x17d2f6||0x0==_0x17d2f6[_0x3bb055([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x119249}=new URL(window[_0x3bb055([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x17d2f6[_0x3bb055([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x119249))return!0x0;const _0x49fc6b=_0x119249[_0x3bb055([0x73,0x70,0x6c,0x69,0x74])](_0x3bb055([0x2e]));return _0x17d2f6[_0x3bb055([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x29a1b6=>_0x29a1b6[_0x3bb055([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3bb055([0x2a])))[_0x3bb055([0x6d,0x61,0x70])](_0x23eab2=>_0x23eab2[_0x3bb055([0x73,0x70,0x6c,0x69,0x74])](_0x3bb055([0x2e])))[_0x3bb055([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x36be13=>_0x36be13[_0x3bb055([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x49fc6b[_0x3bb055([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3bb055([0x6d,0x61,0x70])](_0x489a1d=>Array(_0x49fc6b[_0x3bb055([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x489a1d[_0x3bb055([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3bb055([0x66,0x69,0x6c,0x6c])](_0x489a1d[0x0]===_0x3bb055([0x2a])?_0x3bb055([0x2a]):'')[_0x3bb055([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x489a1d))[_0x3bb055([0x73,0x6f,0x6d,0x65])](_0x15bc34=>_0x49fc6b[_0x3bb055([0x65,0x76,0x65,0x72,0x79])]((_0x5570e7,_0x4f6fbd)=>_0x15bc34[_0x4f6fbd]===_0x5570e7||_0x15bc34[_0x4f6fbd]===_0x3bb055([0x2a])));}function _0x4e29e0(){return _0x35ba5e&&_0x4b2512?new window[(_0x3bb055([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1c89bc,_0x3539f6)=>{_0x35ba5e[_0x3bb055([0x74,0x68,0x65,0x6e])](_0x1c89bc,_0x3539f6),_0x4b2512[_0x3bb055([0x74,0x68,0x65,0x6e])](_0x8b6c9c=>{_0x8b6c9c!=_0x3bb055([0x56,0x61,0x6c,0x69,0x64])&&_0x1c89bc(_0x8b6c9c);},_0x3539f6);}):_0x35ba5e||_0x4b2512||_0x3bb055([0x56,0x61,0x6c,0x69,0x64]);}}function _0x52513e(_0x4cf269,_0x54407f){return new window[(_0x3bb055([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a930a=>{if(_0xde4cf5())return _0x5a930a(_0x3bb055([0x56,0x61,0x6c,0x69,0x64]));_0x4fde0d(),_0x2dacdd[_0x3bb055([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3bb055([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5848e1=!0x1;const _0xde6b4=_0x43100d();function _0x4be6b5(_0x8d5607){return!!_0x8d5607&&(typeof _0x8d5607===_0x3bb055([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x8d5607===_0x3bb055([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x8d5607[_0x3bb055([0x74,0x68,0x65,0x6e])]===_0x3bb055([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x8d5607[_0x3bb055([0x63,0x61,0x74,0x63,0x68])]===_0x3bb055([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1eabf0(_0x52197f){_0x50f27b(_0x52197f)[_0x3bb055([0x74,0x68,0x65,0x6e])](_0x5c1265=>{if(!_0x5c1265||_0x5c1265[_0x3bb055([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3bb055([0x6f,0x6b]))return _0x3bb055([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x20ba74(_0x56c997(_0xde6b4+_0x54407f))!=_0x5c1265[_0x3bb055([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3bb055([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3bb055([0x56,0x61,0x6c,0x69,0x64]);})[_0x3bb055([0x74,0x68,0x65,0x6e])](_0x2f25ea=>(_0x25b506(),_0x2f25ea),()=>{const _0x17c574=_0x2c3b8d();return null==_0x17c574?(_0x25b506(),_0x3bb055([0x56,0x61,0x6c,0x69,0x64])):_0x3bb055(_0x9eb8e7-_0x17c574>(0x27d454df^_0x4a0037)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3bb055([0x74,0x68,0x65,0x6e])](_0x5a930a)[_0x3bb055([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5a930a(_0x3bb055([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x136616=0x3ee3e5f^_0x4a0037;function _0x25b506(){const _0x299ffb=_0x3bb055([0x6c,0x6c,0x63,0x74,0x2d])+_0x20ba74(_0x56c997(_0x4cf269)),_0xaa09=_0x408768(_0x20ba74(window[_0x3bb055([0x4d,0x61,0x74,0x68])][_0x3bb055([0x63,0x65,0x69,0x6c])](_0x9eb8e7/_0x136616)));window[_0x3bb055([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3bb055([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x299ffb,_0xaa09);}function _0x2c3b8d(){const _0x352da5=_0x3bb055([0x6c,0x6c,0x63,0x74,0x2d])+_0x20ba74(_0x56c997(_0x4cf269)),_0x2c971c=window[_0x3bb055([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3bb055([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x352da5);return _0x2c971c?window[_0x3bb055([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x408768(_0x2c971c),0x10)*_0x136616:null;}function _0x50f27b(_0x1de5e7){return new window[(_0x3bb055([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4e3bc3,_0x114462)=>{_0x1de5e7[_0x3bb055([0x74,0x68,0x65,0x6e])](_0x4e3bc3,_0x114462),window[_0x3bb055([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x114462,0x3d9041f^_0x4a0037);});}}_0x2dacdd[_0x3bb055([0x6f,0x6e])](_0x3bb055([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x368ad9,_0x30eda1)=>{if(_0x30eda1[0x0]!=_0x4cf269)return _0x5a930a(_0x3bb055([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x30eda1[0x1]={..._0x30eda1[0x1],[_0x3bb055([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xde6b4};},{[_0x3bb055([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3bb055([0x68,0x69,0x67,0x68])}),_0x2dacdd[_0x3bb055([0x6f,0x6e])](_0x3bb055([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xf7a2b5=>{_0x4be6b5(_0xf7a2b5[_0x3bb055([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5848e1=!0x0,_0x1eabf0(_0xf7a2b5[_0x3bb055([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3bb055([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3bb055([0x6c,0x6f,0x77])}),_0x2a0683[_0x3bb055([0x74,0x68,0x65,0x6e])](()=>{_0x5848e1||_0x5a930a(_0x3bb055([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xde4cf5(){return _0x2dacdd[_0x3bb055([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3bb055([0x76,0x69,0x65,0x77])][_0x3bb055([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3bb055([0x61,0x75,0x74,0x6f]);}function _0x4fde0d(){_0x2dacdd[_0x3bb055([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3bb055([0x76,0x69,0x65,0x77])][_0x3bb055([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3bb055([0x61,0x75,0x74,0x6f]);}}function _0x59cabd(_0x414eba){const _0x7eb797=[new window[(_0x3bb055([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4c4960=>setTimeout(_0x4c4960,0x3d1ee13^_0x4a0037)),_0x2a0683[_0x3bb055([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3bb055([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x146bec=>{let _0x2c28f0=0x0;_0x2dacdd[_0x3bb055([0x6d,0x6f,0x64,0x65,0x6c])][_0x3bb055([0x6f,0x6e])](_0x3bb055([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x251b1e,_0x511d86)=>{_0x511d86[0x0][_0x3bb055([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2c28f0++,_0x2c28f0==(0x3d8d537^_0x4a0037)&&(_0x146bec(),_0x251b1e[_0x3bb055([0x6f,0x66,0x66])]());});}))];return window[_0x3bb055([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3bb055([0x72,0x61,0x63,0x65])](_0x7eb797)[_0x3bb055([0x74,0x68,0x65,0x6e])](()=>_0x414eba);}async function _0x41a883(){await _0x2a0683,_0x2dacdd[_0x3bb055([0x6d,0x6f,0x64,0x65,0x6c])][_0x3bb055([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3a1fda,_0x2dacdd[_0x3bb055([0x6d,0x6f,0x64,0x65,0x6c])][_0x3bb055([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3a1fda,_0x2dacdd[_0x3bb055([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3bb055([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3bc414(){return _0x9c5be3(_0x3bb055([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x162534(_0x3bb055([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3bb055([0x73,0x74,0x61,0x74,0x65])]==_0x3bb055([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x411621(){return _0x9c5be3(_0x3bb055([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 _0x36e790(){return _0x9c5be3(_0x3bb055([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x3c4bd1(_0x284063){const _0x37650d=_0x258918();_0x2dacdd[_0x37650d]=_0x3bb055([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x284063,_0x284063!=_0x3bb055([0x56,0x61,0x6c,0x69,0x64])&&_0x41a883();}function _0x258918(){const _0x57869c=window[_0x3bb055([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3bb055([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3bb055([0x6e,0x6f,0x77])]())[_0x3bb055([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3bb055([0x2e]),'');let _0x3fa793=_0x3bb055([0x52]);for(let _0x4f3419=0x0;_0x4f3419<_0x57869c[_0x3bb055([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4f3419+=0x2){let _0x5257d6=window[_0x3bb055([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x57869c[_0x3bb055([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4f3419,_0x4f3419+0x2));_0x5257d6>=_0x99a5d3[_0x3bb055([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5257d6-=_0x99a5d3[_0x3bb055([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3fa793+=_0x99a5d3[_0x5257d6];}return _0x3fa793;}function _0x1996a4(){const _0x34ee75=_0x48d589[_0x3bb055([0x73,0x70,0x6c,0x69,0x74])](_0x3bb055([0x2e]));if(0x3!=_0x34ee75[_0x3bb055([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1e4807(_0x34ee75[0x1]);function _0x1e4807(_0x5c508e){const _0x33fcca=_0x19fbb7(_0x5c508e);return _0x33fcca&&_0x513ff4()?_0x33fcca:null;function _0x513ff4(){const _0x217486=_0x33fcca[_0x3bb055([0x6a,0x74,0x69])],_0x29c35b=window[_0x3bb055([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x217486[_0x3bb055([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x217486[_0x3bb055([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x6912e9={..._0x33fcca,[_0x3bb055([0x6a,0x74,0x69])]:_0x217486[_0x3bb055([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x217486[_0x3bb055([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x6912e9[_0x3bb055([0x76,0x63])],_0x56c997(_0x6912e9)==_0x29c35b;}}}async function _0x39ec4f(){let _0x55cc9e=!0x0;try{const _0x512e80=_0x48d589[_0x3bb055([0x73,0x70,0x6c,0x69,0x74])](_0x3bb055([0x2e])),[_0x57e981,_0x39173f,_0x20adb1]=_0x512e80;return _0x4cfc02(_0x57e981),await _0x474584(_0x57e981,_0x39173f,_0x20adb1),_0x55cc9e;}catch{return!0x1;}function _0x4cfc02(_0x537a94){const _0x1d3d4f=_0x19fbb7(_0x537a94);_0x1d3d4f&&_0x1d3d4f[_0x3bb055([0x61,0x6c,0x67])]==_0x3bb055([0x45,0x53,0x32,0x35,0x36])||(_0x55cc9e=!0x1);}async function _0x474584(_0x12fc51,_0x3da9b8,_0x4ac720){const _0x3c71f9=window[_0x3bb055([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3bb055([0x66,0x72,0x6f,0x6d])](_0x3155be(_0x4ac720),_0x206910=>_0x206910[_0x3bb055([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x728b0a=new window[(_0x3bb055([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3bb055([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x12fc51+_0x3bb055([0x2e])+_0x3da9b8),_0x1f8f8f=window[_0x3bb055([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3bb055([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1f8f8f)return;const _0x2a5e48=await _0x1f8f8f[_0x3bb055([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3bb055([0x6a,0x77,0x6b]),_0x1117c6,{[_0x3bb055([0x6e,0x61,0x6d,0x65])]:_0x3bb055([0x45,0x43,0x44,0x53,0x41]),[_0x3bb055([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3bb055([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3bb055([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1f8f8f[_0x3bb055([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3bb055([0x6e,0x61,0x6d,0x65])]:_0x3bb055([0x45,0x43,0x44,0x53,0x41]),[_0x3bb055([0x68,0x61,0x73,0x68])]:{[_0x3bb055([0x6e,0x61,0x6d,0x65])]:_0x3bb055([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2a5e48,_0x3c71f9,_0x728b0a)||(_0x55cc9e=!0x1);}}function _0x19fbb7(_0x122593){return _0x122593[_0x3bb055([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3bb055([0x65,0x79]))?JSON[_0x3bb055([0x70,0x61,0x72,0x73,0x65])](_0x3155be(_0x122593)):null;}function _0x3155be(_0x328a8e){return window[_0x3bb055([0x61,0x74,0x6f,0x62])](_0x328a8e[_0x3bb055([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3bb055([0x2b]))[_0x3bb055([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3bb055([0x2f])));}function _0x56c997(_0x260f50){let _0x322e25=0x1505;function _0x5a0617(_0x7d981c){for(let _0x26f30c=0x0;_0x26f30c<_0x7d981c[_0x3bb055([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x26f30c++){const _0x59baad=_0x7d981c[_0x3bb055([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x26f30c);_0x322e25=(_0x322e25<<0x5)+_0x322e25+_0x59baad,_0x322e25&=_0x322e25;}}function _0x58ae66(_0xa7ed3f){Array[_0x3bb055([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xa7ed3f)?_0xa7ed3f[_0x3bb055([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x58ae66):_0xa7ed3f&&typeof _0xa7ed3f==_0x3bb055([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3bb055([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xa7ed3f)[_0x3bb055([0x73,0x6f,0x72,0x74])]()[_0x3bb055([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x171fc4,_0xab9e4d])=>{_0x5a0617(_0x171fc4),_0x58ae66(_0xab9e4d);}):_0x5a0617(window[_0x3bb055([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xa7ed3f));}return _0x58ae66(_0x260f50),_0x322e25>>>0x0;}function _0x20ba74(_0x2dc653){return _0x2dc653[_0x3bb055([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3bb055([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3bb055([0x30]));}function _0x408768(_0x4b0dcc){return _0x4b0dcc[_0x3bb055([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3bb055([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3bb055([0x6a,0x6f,0x69,0x6e])]('');}function _0x9c5be3(_0x2f09d7){return _0x2dacdd[_0x3bb055([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3bb055([0x68,0x61,0x73])](_0x2f09d7);}function _0x162534(_0x1ed5f6){return _0x2dacdd[_0x3bb055([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3bb055([0x67,0x65,0x74])](_0x1ed5f6);}function _0x3a1fda(){}function _0x3bb055(_0x23a28b){return _0x23a28b['map'](_0x2bda1f=>String['fromCharCode'](_0x2bda1f))['join']('');}_0x3c4bd1(await _0x14a2f3());}(this);}set['adapter'](_0x101e95){if(this['_adapter'])throw new _0x295561('track-changes-adapter-already-set',this);this['_adapter']=_0x101e95;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x364bac=!0x1,toJSON:_0x10384a=!0x1}={}){const _0x4f2205=[];for(const _0x1af52d of this['_suggestions']['values']())_0x364bac&&!_0x1af52d['isInContent']||_0x4f2205['push'](_0x1af52d);return _0x10384a?_0x4f2205['map'](_0xc105a7=>_0xc105a7['toJSON']()):_0x4f2205;}['getSuggestion'](_0x3f9c93){const _0x10c24a=this['_suggestions']['get'](_0x3f9c93);if(!_0x10c24a)throw new _0x295561('track-changes-suggestion-not-found',this);return _0x10c24a;}['hasSuggestion'](_0x42cf1d){return this['_suggestions']['has'](_0x42cf1d);}['addSuggestionData'](_0x3b8953){const {authorId:_0x4a8f53,id:_0x4858fa,originalSuggestionId:_0x41b7fb,attributes:_0xe2ee04}=_0x3b8953,[_0x5ed199,_0x4de8ac]=_0x3b8953['type']['split'](':'),_0x345aee=this['_suggestions']['get'](_0x4858fa)||this['_createSuggestion'](_0x5ed199,_0x4de8ac,_0x4858fa,_0x4a8f53,_0xe2ee04,_0x41b7fb);if(this['_addThreadToSuggestion'](_0x345aee),this['_checkSuggestionCorrectness'](_0x345aee,_0x5ed199,_0x4de8ac||null,_0x4a8f53),_0x345aee['createdAt']=_0x3b8953['createdAt'],_0x345aee['_isDataLoaded']=!0x0,_0xe2ee04&&_0xe2ee04['@external']){const _0x502e39=_0xe2ee04['@external'],_0x4500cd=this['_getExternalAuthor'](_0x502e39['authorName']);_0x345aee['authoredAt']=_0x502e39['createdAt'],_0x345aee['author']=_0x4500cd,_0x345aee['isExternal']=!0x0;}else _0x345aee['authoredAt']=_0x3b8953['createdAt'];switch(_0x3b8953['data']&&(_0x345aee['data']=_0x3b8953['data']),_0x3b8953['attributes']&&(_0x345aee['attributes']=_0x3b8953['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x345aee['_saved']=!0x0),this['_suggestionState']['get'](_0x345aee)){case'notReady':this['_suggestionState']['set'](_0x345aee,'dataReady');break;case'markerReady':_0x345aee['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x345aee])),this['_refreshSuggestionsChain'](new Set([_0x345aee])),this['_suggestionState']['set'](_0x345aee,'ready'),this['fire']('suggestionLoaded',_0x345aee)):this['_suggestionState']['set'](_0x345aee,'removed');}return _0x345aee;}['acceptSuggestion'](_0x1a4a4d){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3c96d2 of _0x1a4a4d['getAllAdjacentSuggestions']())_0x3c96d2['accept']();});});}['discardSuggestion'](_0x41efb5){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5b1680 of _0x41efb5['getAllAdjacentSuggestions']())_0x5b1680['discard']();});});}['enableCommand'](_0x106790,_0x2b2f92){const _0x1f4e4d=this['editor']['commands']['get'](_0x106790);if(!_0x1f4e4d)throw new _0x295561('track-changes-command-not-found',this,{'commandName':_0x106790});if(this['_enabledCommands']['has'](_0x1f4e4d))throw new _0x295561('track-changes-enable-command-twice',this,{'commandName':_0x106790});this['_enabledCommands']['add'](_0x1f4e4d),_0x2b2f92&&_0x1f4e4d['on']('execute',(_0x15a92d,_0x26a4b1)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x26a4b1['length']>0x0&&_0x26a4b1[_0x26a4b1['length']-0x1]&&_0x26a4b1[_0x26a4b1['length']-0x1]['forceDefaultExecution']?_0x26a4b1['pop']():(_0x15a92d['return']=_0x2b2f92((..._0x24296a)=>_0x1f4e4d['execute'](..._0x24296a,{'forceDefaultExecution':!0x0}),..._0x26a4b1),_0x15a92d['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0xc4a7b5){let _0x135867,_0x1d9c01;const _0x225b09=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x135867=_0xc4a7b5();}catch(_0x54faa9){_0x1d9c01=_0x54faa9;}return _0x225b09||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x1d9c01&&_0x295561['rethrowUnexpectedError'](_0x1d9c01,this),_0x135867;}['markInsertion'](_0x238506,_0x35902f=null,_0xf69d8b={}){if(_0x238506['isCollapsed'])return null;const _0x2438cd=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0xf69d8b['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x7f34e8,meta:_0x328f67}of this['_findSuggestions'](_0x238506,'insertion'))if(_0x328f67['isOwn']){if(!_0x328f67['isNextTo']){if(_0x328f67['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!en(_0x7f34e8,_0xf69d8b))continue;return _0x7f34e8;}if(en(_0x7f34e8,_0xf69d8b))return _0x7f34e8;this['_breakSuggestionMarker'](_0x7f34e8,_0x238506['start'],_0x238506['end']);break;}if(_0x35902f==_0x7f34e8['subType']&&en(_0x7f34e8,_0xf69d8b)){const _0x5818f1=_0x7f34e8['getFirstRange']();return _0x5818f1['start']['isEqual'](_0x238506['end'])?this['_setSuggestionRange'](_0x7f34e8,this['_model']['createRange'](_0x238506['start'],_0x5818f1['end'])):this['_setSuggestionRange'](_0x7f34e8,this['_model']['createRange'](_0x5818f1['start'],_0x238506['end'])),_0x7f34e8;}}const _0x1677fe=_0x43100d(),_0x192401=_0x2438cd['id'],_0x3767bd=_0x35902f?'insertion:'+_0x35902f:'insertion',_0x33b3ae=this['_setSuggestionData']({'id':_0x1677fe,'type':_0x3767bd,'createdAt':new Date(),'authorId':_0x192401,'attributes':_0xf69d8b});return this['_addSuggestionMarker'](_0x3767bd,_0x1677fe,_0x192401,_0x238506),_0x33b3ae;}['markMultiRangeInsertion'](_0xb05b9f,_0x4cbfc1='multi',_0x15f126={}){const _0x5119f7=this['editor']['plugins']['get']('Users')['me'],_0x33a68b=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x4cbfc1,'join');this['_trackingSessionId']&&(_0x15f126['trackingSessionId']=this['_trackingSessionId']);for(const _0x3fb8e3 of this['getSuggestions']())if(_0x3fb8e3['author']['id']==_0x5119f7['id']&&'insertion'==_0x3fb8e3['type']&&_0x3fb8e3['subType']==_0x4cbfc1&&en(_0x3fb8e3,_0x15f126)&&(_0x33a68b(_0x3fb8e3['getRanges'](),_0xb05b9f)||_0x33a68b(_0xb05b9f,_0x3fb8e3['getRanges']()))){for(const _0x29ad39 of _0xb05b9f)_0x3fb8e3['addRange'](_0x29ad39);return _0x3fb8e3;}for(const {suggestion:_0x16718d,meta:_0x1fc65a}of this['_findSuggestions'](_0xb05b9f,'insertion')){if(!_0x1fc65a['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x1fc65a['containsRangeInObject'])continue;if(!en(_0x16718d,_0x15f126))continue;let _0x3724ec=!0x0;for(const _0x370aaf of _0x16718d['getRanges']())for(const _0x165846 of _0xb05b9f)if(!_0x370aaf['containsRange'](_0x165846)){_0x3724ec=!0x1;break;}if(_0x3724ec)return _0x16718d;}const _0xafe14b=_0x43100d(),_0x253612=_0x5119f7['id'],_0x49ea69='insertion:'+_0x4cbfc1,_0x3b5f3e=this['_setSuggestionData']({'id':_0xafe14b,'type':_0x49ea69,'createdAt':new Date(),'authorId':_0x253612,'attributes':_0x15f126});for(const _0x526144 of _0xb05b9f)this['_addSuggestionMarker'](_0x49ea69,_0xafe14b,_0x253612,_0x526144,T['getMultiRangeId']());return _0x3b5f3e;}['markInlineFormat'](_0x4783f8,_0x54b2e3,_0xdaf6f3=null,_0x3ce985={}){if(_0xdaf6f3=_0xdaf6f3||Wt(_0x54b2e3),_0x4783f8['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x3ce985['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x46fd95=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xdaf6f3,'accept');return this['forceDefaultExecution'](()=>_0x46fd95([_0x4783f8],_0x54b2e3,_0x3ce985)),null;}const _0x21e28a=this['editor']['plugins']['get']('Users')['me'],_0x531a6a=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x538b42,meta:_0x44f540}of this['_findSuggestions'](_0x4783f8,'insertion'))_0x44f540['isOwn']&&!_0x44f540['isInsideObject']&&_0x531a6a['push'](..._0x538b42['getRanges']());}const _0x59ca3a=function(_0x36216e,_0x3905a3){const _0x3b2086=[];for(const _0x31e9a2 of _0x3905a3){const _0x209ca2=_0x36216e['getIntersection'](_0x31e9a2);_0x209ca2&&_0x3b2086['push'](_0x209ca2);}return _0x3b2086;}(_0x4783f8,_0x531a6a),_0x44173a=function(_0x351328,_0xecdc4d){const _0x29b66d=[_0x351328];for(const _0x4f05cb of _0xecdc4d){let _0x5d03a4=0x0;for(;_0x5d03a4<_0x29b66d['length'];){const _0x4320b7=_0x29b66d[_0x5d03a4]['getDifference'](_0x4f05cb);_0x29b66d['splice'](_0x5d03a4,0x1,..._0x4320b7),_0x5d03a4+=_0x4320b7['length'];}}return _0x29b66d;}(_0x4783f8,_0x531a6a);_0x59ca3a['length']&&this['_model']['change'](()=>{for(const _0x1cc70e of _0x59ca3a){const _0x17a655=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xdaf6f3,'accept');this['forceDefaultExecution'](()=>_0x17a655([_0x1cc70e],_0x54b2e3,_0x3ce985));}});for(const _0x59a032 of _0x44173a){let _0x5b089a=null,_0x50b220=_0x59a032['start'],_0x3679c6=_0x59a032['end'];for(const {suggestion:_0x4c7fc6,meta:_0x23dd15}of this['_findSuggestions'](_0x59a032,'formatInline')){if(!_0x23dd15['isOwn'])continue;if(_0x4c7fc6['subType']!=_0xdaf6f3)continue;if(!en(_0x4c7fc6,_0x3ce985))continue;const _0x3754f1=_0x4c7fc6['getFirstRange']();if(_0x3754f1['containsRange'](_0x59a032,!0x0))return null;_0x50b220=_0x50b220['isBefore'](_0x3754f1['start'])?_0x50b220:_0x3754f1['start'],_0x3679c6=_0x3679c6['isAfter'](_0x3754f1['end'])?_0x3679c6:_0x3754f1['end'],_0x5b089a?_0x3754f1['start']['isBefore'](_0x5b089a['getFirstRange']()['start'])?(_0x5b089a['removeMarkers'](),_0x5b089a=_0x4c7fc6):_0x4c7fc6['removeMarkers']():_0x5b089a=_0x4c7fc6;}const _0x2b662e=this['_model']['createRange'](_0x50b220,_0x3679c6);if(_0x5b089a)this['_setSuggestionRange'](_0x5b089a,_0x2b662e);else{const _0x5c45df=_0x43100d(),_0x5d6b99=_0x21e28a['id'];this['_setSuggestionData']({'id':_0x5c45df,'type':'formatInline:'+_0xdaf6f3,'data':_0x54b2e3,'createdAt':new Date(),'authorId':_0x5d6b99,'attributes':_0x3ce985}),this['_addSuggestionMarker']('formatInline:'+_0xdaf6f3,_0x5c45df,_0x5d6b99,_0x2b662e);}}return null;}['markBlockFormat'](_0x56b244,_0x47a51f,_0x326c48=[],_0x41c2ad=null,_0x192094={}){_0x47a51f['formatGroupId']||(_0x47a51f['formatGroupId']=_0x47a51f['commandName']),_0x47a51f['multipleBlocks']=_0x56b244['is']('range'),_0x41c2ad=_0x41c2ad||Wt(_0x47a51f);const _0x5eb69d=_0x326c48['map'](_0x2b86c3=>Zt(_0x2b86c3,this['_model'])),_0x2b245a=_0x56b244['is']('range')?_0x56b244:Zt(_0x56b244,this['_model']);if(this['_trackingSessionId']&&(_0x192094['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x36c7bd=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x41c2ad,'accept');return this['forceDefaultExecution'](()=>_0x36c7bd([_0x2b245a],_0x47a51f,_0x192094)),null;}_0x5eb69d['push'](_0x2b245a);let _0x1bae05=!0x0;for(const _0x17e667 of _0x5eb69d)if(!this['_rangeIsInLocalUserInsertion'](_0x17e667)){_0x1bae05=!0x1;break;}if(_0x1bae05&&'always'!==this['_trackFormatChanges']){const _0x3b9f6c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x41c2ad,'accept');return this['forceDefaultExecution'](()=>_0x3b9f6c([_0x2b245a],_0x47a51f,_0x192094)),null;}let _0x1eb982=null,_0x731049=_0x2b245a['start'],_0x473e84=_0x2b245a['end'];for(const {suggestion:_0x1aa122,meta:_0x121a79}of this['_findSuggestions'](_0x2b245a,'formatBlock')){if(!_0x121a79['isOwn'])continue;if(_0x121a79['isNextTo']||_0x121a79['containsRangeInObject']||_0x121a79['isInsideObject'])continue;if(_0x1aa122['data']['formatGroupId']!=_0x47a51f['formatGroupId'])continue;if(!en(_0x1aa122,_0x192094))continue;const _0x49d4dc=_0x1aa122['getFirstRange']();if(_0x1aa122['subType']==_0x41c2ad){if(_0x49d4dc['containsRange'](_0x2b245a,!0x0))return null;_0x731049=_0x731049['isBefore'](_0x49d4dc['start'])?_0x731049:_0x49d4dc['start'],_0x473e84=_0x473e84['isAfter'](_0x49d4dc['end'])?_0x473e84:_0x49d4dc['end'],_0x1eb982?_0x49d4dc['start']['isBefore'](_0x1eb982['getFirstRange']()['start'])?(_0x1eb982['removeMarkers'](),_0x1eb982=_0x1aa122):_0x1aa122['removeMarkers']():_0x1eb982=_0x1aa122;}else{const _0x49356b=_0x2b245a['getIntersection'](_0x49d4dc);this['_cutOutSuggestionMarker'](_0x1aa122,_0x49356b);}}const _0x46254e=this['editor']['plugins']['get']('Users')['me'],_0x350e15=_0x43100d(),_0x1c0af7=_0x46254e['id'];if(_0x1eb982)return this['_setSuggestionRange'](_0x1eb982,this['_model']['createRange'](_0x731049,_0x473e84)),_0x1eb982;{const _0x52ed52=this['_setSuggestionData']({'id':_0x350e15,'type':'formatBlock:'+_0x41c2ad,'data':_0x47a51f,'createdAt':new Date(),'authorId':_0x1c0af7,'attributes':_0x192094});return this['_addSuggestionMarker']('formatBlock:'+_0x41c2ad,_0x350e15,_0x1c0af7,this['_model']['createRange'](_0x731049,_0x473e84)),_0x52ed52;}}['markMultiRangeBlockFormat'](_0x47b586,_0x2bd0af,_0x28a2bd=[],_0x1b1448=null,_0x4b71dd={}){_0x2bd0af['formatGroupId']||(_0x2bd0af['formatGroupId']=_0x2bd0af['commandName']);const _0x4090cb=_0x47b586[0x0];_0x2bd0af['multipleBlocks']=_0x4090cb['is']('range'),_0x1b1448=_0x1b1448||Wt(_0x2bd0af);const _0x112673=_0x28a2bd['map'](_0x53346c=>Zt(_0x53346c,this['_model'])),_0x41ebed=_0x4090cb['is']('range')?_0x47b586:_0x47b586['map'](_0x2b2dc6=>Zt(_0x2b2dc6,this['_model']));if(this['_trackingSessionId']&&(_0x4b71dd['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x6d1341=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1b1448,'accept');return this['forceDefaultExecution'](()=>_0x6d1341(_0x41ebed,_0x2bd0af,_0x4b71dd)),null;}_0x112673['push'](..._0x41ebed);let _0x42ba48=!0x0;for(const _0x367871 of _0x112673)if(!this['_rangeIsInLocalUserInsertion'](_0x367871)){_0x42ba48=!0x1;break;}if(_0x42ba48&&'always'!==this['_trackFormatChanges']){const _0x3c39f7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1b1448,'accept');return this['forceDefaultExecution'](()=>_0x3c39f7(_0x41ebed,_0x2bd0af,_0x4b71dd)),null;}const _0x596f87=this['editor']['plugins']['get']('Users')['me'];for(const _0x4efa49 of this['getSuggestions']()){const _0xa3a7f3=_0x4efa49['data'];if(_0x4efa49['author']['id']!=_0x596f87['id'])continue;if('formatBlock'!=_0x4efa49['type']||_0xa3a7f3['formatGroupId']!=_0x2bd0af['formatGroupId'])continue;if(!en(_0x4efa49,_0x4b71dd))continue;const _0x50feb8=_0x4efa49['subType']==_0x1b1448;for(let _0x1492e3=0x0;_0x1492e3<_0x41ebed['length'];_0x1492e3++){const _0x365a56=_0x41ebed[_0x1492e3];for(const _0x28ae65 of _0x4efa49['getMarkers']()){const _0x6550e4=_0x28ae65['getRange']();if(_0x365a56['isEqual'](_0x6550e4)){_0x50feb8?(_0x41ebed['splice'](_0x1492e3,0x1),_0x1492e3--):_0x4efa49['removeMarker'](_0x28ae65['name']);break;}}}}if(0x0==_0x41ebed['length'])return null;const _0x49cfd6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1b1448,'join');for(const _0x35521b of this['getSuggestions']()){const _0x3a13c2=_0x35521b['data'];if(_0x35521b['author']['id']==_0x596f87['id']&&('formatBlock'==_0x35521b['type']&&_0x3a13c2['formatGroupId']==_0x2bd0af['formatGroupId']&&_0x35521b['subType']==_0x1b1448&&en(_0x35521b,_0x4b71dd)&&(_0x49cfd6(_0x35521b['getRanges'](),_0x41ebed)||_0x49cfd6(_0x41ebed,_0x35521b['getRanges']())))){for(const _0x5be160 of _0x41ebed)_0x35521b['addRange'](_0x5be160);return _0x35521b;}}const _0x32e626=_0x43100d(),_0x3b09a3=_0x596f87['id'],_0x5e33f5='formatBlock:'+_0x1b1448,_0x59e379=this['_setSuggestionData']({'id':_0x32e626,'type':_0x5e33f5,'data':_0x2bd0af,'createdAt':new Date(),'authorId':_0x3b09a3,'attributes':_0x4b71dd});for(const _0x25301e of _0x41ebed)this['_addSuggestionMarker'](_0x5e33f5,_0x32e626,_0x3b09a3,_0x25301e,T['getMultiRangeId']());return _0x59e379;}['markDeletion'](_0x4a1588,_0x51583b=null,_0x3fb68e={}){if(_0x4a1588['isCollapsed'])return null;const _0x460882=this['editor']['plugins']['get']('Users')['me'],_0x305ee5=new _0x23cc14(_0x4a1588['start'],_0x4a1588['end']);this['_trackingSessionId']&&(_0x3fb68e['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1a97ef,meta:_0x508612}of this['_findSuggestions'](_0x305ee5,'insertion'))if(_0x508612['isOwn']&&!_0x508612['isNextTo']){if(_0x1a97ef['isMultiRange']){const _0x166237=_0x1a97ef['getRanges']()['filter'](_0xdf9e7d=>'$graveyard'!=_0xdf9e7d['root']['rootName']);_0x166237['every'](_0x320983=>_0x305ee5['containsRange'](_0x320983,!0x0))&&_0x1a97ef['discard']();if(_0x166237['some'](_0x534a1d=>_0x534a1d['containsRange'](_0x305ee5,!0x0))){const _0x4e473c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x51583b,'accept');return this['forceDefaultExecution'](()=>_0x4e473c([_0x305ee5],null,_0x3fb68e)),null;}}else{const _0x573442=_0x305ee5['getIntersection'](_0x1a97ef['getFirstRange']());null!==_0x573442&&_0x1a97ef['_onDiscard']([_0x573442],null,_0x3fb68e);}}if(_0x305ee5['detach'](),_0x305ee5['isCollapsed']||'$graveyard'==_0x305ee5['root']['rootName'])return null;let _0x2a5d5e=null,_0x505250=_0x305ee5['start'],_0xad24fe=_0x305ee5['end'];const _0x138edb=this['_findSuggestions'](_0x305ee5,'deletion');for(const {suggestion:_0x200ac3,meta:_0x166bb9}of _0x138edb){const _0x564839=this['_model']['createRange'](_0x505250,_0xad24fe);if(_0x166bb9['isOwn']&&(this['_mergeNestedSuggestions']||!_0x166bb9['containsRangeInObject']&&!_0x166bb9['isInsideObject'])){if(_0x200ac3['isMultiRange']){if(!en(_0x200ac3,_0x3fb68e))continue;let _0x22687c=!0x0;for(const _0xf9d16f of _0x200ac3['getRanges']()){if(_0xf9d16f['containsRange'](_0x564839,!0x0))return _0x200ac3;_0x564839['containsRange'](_0xf9d16f)||(_0x22687c=!0x1);}_0x22687c&&_0x200ac3['discard']();}else{const _0x671615=_0x200ac3['getFirstRange']();if(_0x671615['containsRange'](_0x564839,!0x0))return _0x200ac3;if(!en(_0x200ac3,_0x3fb68e)){_0x564839['containsRange'](_0x671615)?_0x200ac3['removeMarkers']():_0x671615['containsPosition'](_0x505250)?_0x505250=_0x671615['end']:_0x671615['containsPosition'](_0xad24fe)&&(_0xad24fe=_0x671615['start']);continue;}_0x505250=_0x505250['isBefore'](_0x671615['start'])?_0x505250:_0x671615['start'],_0xad24fe=_0xad24fe['isAfter'](_0x671615['end'])?_0xad24fe:_0x671615['end'],_0x3fb68e=Object['assign']({},_0x200ac3['attributes']),_0x2a5d5e?_0x671615['start']['isBefore'](_0x2a5d5e['getFirstRange']()['start'])?(_0x2a5d5e['removeMarkers'](),_0x2a5d5e=_0x200ac3):_0x200ac3['removeMarkers']():_0x2a5d5e=_0x200ac3;}}}if(_0x2a5d5e)return this['_setSuggestionRange'](_0x2a5d5e,this['_model']['createRange'](_0x505250,_0xad24fe)),_0x2a5d5e;{const _0x42107f=_0x43100d(),_0x1a5a8d=this['_model']['createRange'](_0x505250,_0xad24fe),_0x1c4869=_0x460882['id'],_0x1c9f97=_0x51583b?'deletion:'+_0x51583b:'deletion',_0x3f4cc9=this['_setSuggestionData']({'id':_0x42107f,'type':_0x1c9f97,'createdAt':new Date(),'authorId':_0x1c4869,'attributes':_0x3fb68e});return this['_addSuggestionMarker'](_0x1c9f97,_0x42107f,_0x1c4869,_0x1a5a8d),_0x3f4cc9;}}['markMultiRangeDeletion'](_0x1bfa2d,_0x255858='multi',_0x5a5fa2={}){const _0x20b946=this['editor']['plugins']['get']('Users')['me'],_0x9f78a5=_0x1bfa2d['map'](_0x51852a=>new _0x23cc14(_0x51852a['start'],_0x51852a['end'])),_0x1185c1=new Set();this['_trackingSessionId']&&(_0x5a5fa2['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3d1806,meta:_0x155e7d}of this['_findSuggestions'](_0x9f78a5,'insertion'))_0x155e7d['isOwn']&&!_0x155e7d['isNextTo']&&_0x1185c1['add'](_0x3d1806);for(const _0x5cc5ee of _0x1185c1)if(_0x5cc5ee['isMultiRange']){const _0x41e739=_0x5cc5ee['getRanges']();(!_0x5cc5ee['attributes']||!_0x5cc5ee['attributes']['skipNestingCheck'])&&(_0x41e739['every'](_0x4728c1=>_0x9f78a5['some'](_0x54a980=>_0x54a980['containsRange'](_0x4728c1,!0x0)))&&_0x5cc5ee['discard']());if(_0x9f78a5['every'](_0x22ccb2=>_0x41e739['some'](_0x590c51=>_0x590c51['containsRange'](_0x22ccb2,!0x0)))){const _0xd4573b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x255858,'accept');return this['forceDefaultExecution'](()=>_0xd4573b(_0x1bfa2d,null,_0x5a5fa2)),null;}}else{const _0x3eb9c7=_0x5cc5ee['getFirstRange']();_0x9f78a5['some'](_0x8c1e52=>_0x8c1e52['containsRange'](_0x3eb9c7,!0x0))&&_0x5cc5ee['discard']();if(_0x9f78a5['every'](_0x419443=>_0x3eb9c7['containsRange'](_0x419443,!0x0))){const _0x4ec16d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x255858,'accept');return this['forceDefaultExecution'](()=>_0x4ec16d(_0x9f78a5,null,_0x5a5fa2)),null;}}const _0x3a7f24=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x255858,'join');let _0x31c5ee=null;for(const _0x455936 of this['getSuggestions']())if(_0x455936['author']['id']==_0x20b946['id']&&_0x455936['isInContent']&&'deletion'==_0x455936['type']&&_0x455936['subType']==_0x255858&&en(_0x455936,_0x5a5fa2)&&(_0x3a7f24(_0x455936['getRanges'](),_0x9f78a5)||_0x3a7f24(_0x9f78a5,_0x455936['getRanges']()))){if(_0x31c5ee){if(_0x455936['commentThread']&&_0x455936['commentThread']['length'])continue;for(const _0x5c310b of _0x455936['getRanges']())_0x31c5ee['isIntersectingWithRange'](_0x5c310b)||_0x31c5ee['addRange'](_0x5c310b);_0x455936['removeMarkers']();}else{_0x31c5ee=_0x455936;for(const _0x4fccfd of _0x9f78a5)_0x455936['isIntersectingWithRange'](_0x4fccfd)||_0x455936['addRange'](_0x4fccfd);}}if(_0x31c5ee)return _0x31c5ee;_0x1185c1['clear']();for(const {suggestion:_0x3eaaa2,meta:_0x3d1e29}of this['_findSuggestions'](_0x9f78a5,'deletion'))_0x3d1e29['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3d1e29['containsRangeInObject']&&!_0x3d1e29['isInsideObject'])&&en(_0x3eaaa2,_0x5a5fa2)&&_0x1185c1['add'](_0x3eaaa2);for(const _0x4cd7b4 of _0x1185c1){const _0x4c9002=_0x4cd7b4['getRanges']();if(!_0x5a5fa2||!_0x5a5fa2['skipNestingCheck']){if(_0x9f78a5['every'](_0x95faa0=>_0x4c9002['some'](_0x2aadf7=>_0x2aadf7['containsRange'](_0x95faa0,!0x0))))return _0x4cd7b4;}(!_0x4cd7b4['attributes']||!_0x4cd7b4['attributes']['skipNestingCheck'])&&(_0x4c9002['every'](_0x84ef54=>_0x9f78a5['some'](_0x10b920=>_0x10b920['containsRange'](_0x84ef54,!0x0)))&&_0x4cd7b4['discard']());}const _0xf64766=_0x43100d(),_0x117f75=_0x20b946['id'],_0x65d96b='deletion:'+_0x255858,_0x278c01=this['_setSuggestionData']({'id':_0xf64766,'type':_0x65d96b,'createdAt':new Date(),'authorId':_0x117f75,'attributes':_0x5a5fa2});for(const _0x178af5 of _0x9f78a5)_0x178af5['detach'](),_0x178af5['isCollapsed']||'$graveyard'==_0x178af5['root']['rootName']||this['_addSuggestionMarker'](_0x65d96b,_0xf64766,_0x117f75,_0x178af5,T['getMultiRangeId']());return _0x278c01;}['markAttributeChange'](_0x4a33b6,_0x3fc7a4,_0x3b5ef,_0x52ddee,_0x4d181e){if(_0x4a33b6['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x5ac31e=this['editor']['plugins']['get']('Users')['me']['id'],_0x1788f6=Array['from'](this['_suggestions']['values']())['filter'](_0x1e4d67=>'attribute'==_0x1e4d67['type']&&_0x1e4d67['data']['key']==_0x3fc7a4&&_0x1e4d67['isIntersectingWithRange'](_0x4a33b6));if(this['_trackingSessionId']&&(_0x4d181e['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x1bbbb6=this['_findSuggestions'](_0x4a33b6,'insertion')['filter'](({meta:_0x10ef44})=>_0x10ef44['isOwn']&&!_0x10ef44['isInsideObject']&&!_0x10ef44['isNextTo'])['map'](({suggestion:_0x4060b6})=>_0x4060b6);_0x1788f6['unshift'](..._0x1bbbb6);}const _0x298c5c=new Map([[_0x4a33b6,_0x3b5ef]]);for(const _0x5cfa72 of _0x1788f6){const _0x15dd3e='attribute'==_0x5cfa72['type']?_0x5cfa72['data']['oldValue']:void 0x0,_0x593cf2=_0x5cfa72['getFirstRange'](),_0x967d79=Array['from'](_0x298c5c['keys']())['find'](_0x24cd01=>_0x24cd01['isIntersecting'](_0x593cf2));if(!_0x967d79)continue;const _0x6a20=_0x967d79['getDifference'](_0x593cf2);this['_isBlockAttribute'](_0x3fc7a4)&&'insertion'==_0x5cfa72['type']&&0x0!=_0x6a20['length']||(_0x298c5c['delete'](_0x967d79),_0x6a20['forEach'](_0x1c5920=>{_0x298c5c['set'](_0x1c5920,_0x3b5ef);}),'insertion'!=_0x5cfa72['type']&&_0x15dd3e!=_0x52ddee&&_0x298c5c['set'](_0x967d79['getIntersection'](_0x593cf2),_0x15dd3e));}const _0x2eb15b=[];for(const [_0x230f6c,_0x34945e]of _0x298c5c){const _0xe0ae9e=_0x43100d(),_0x60524b={'key':_0x3fc7a4,'oldValue':_0x34945e,'newValue':_0x52ddee};_0x3fc7a4['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':_0x3fc7a4});const _0x5bc055=('attribute:'+(_0x3fc7a4+'|'+Wt({'newValue':_0x52ddee})))['substring'](0x0,0x3c),_0x1a6d15=this['_setSuggestionData']({'id':_0xe0ae9e,'type':_0x5bc055,'data':_0x60524b,'createdAt':new Date(),'authorId':_0x5ac31e,'attributes':_0x4d181e});_0x2eb15b['push'](_0x1a6d15),this['_addSuggestionMarker'](_0x5bc055,_0xe0ae9e,_0x5ac31e,_0x230f6c);}return _0x2eb15b;}['enableDefaultAttributesIntegration'](_0x133508){this['enableCommand'](_0x133508,(_0x45c0b9,..._0x51d2a1)=>{this['recordAttributeChanges'](()=>{_0x45c0b9(..._0x51d2a1);});});}['registerBlockAttribute'](_0x1a40c6){this['editor']['plugins']['get'](_0x24828a)['registerBlockAttribute'](_0x1a40c6);}['registerInlineAttribute'](_0x311718){this['editor']['plugins']['get'](_0x24828a)['registerInlineAttribute'](_0x311718);}['startTrackingSession'](_0xb9d703){return this['_trackingSessionId']=void 0x0!==_0xb9d703?_0xb9d703:_0x43100d(),this['_trackingSessionId'];}['_getAttributeKey'](_0x2b8382){return'attribute'==_0x2b8382['type']?_0x2b8382['subType']['split']('|')[0x0]:null;}['_applyOperationsAsSuggestions'](_0x567fd6){if(0x0==_0x567fd6['length'])return;const _0x5cc7a5=this['editor'],_0x3fab06=_0x5cc7a5['plugins']['get'](_0x2299d5),_0x923803=[];_0x5cc7a5['model']['change'](_0x260df2=>{for(let _0x24e5cd=0x0;_0x24e5cd<_0x567fd6['length'];_0x24e5cd++){const _0x5e4bd8=_0x567fd6[_0x24e5cd];if(_0x5e4bd8['baseVersion']=_0x5cc7a5['model']['document']['version'],_0x5e4bd8['isDocumentOperation']=!0x0,_0x3fab06['isMarkedRemoveOperation'](_0x5e4bd8)){const _0x5d72ac=_0x4702a9(_0x5e4bd8['newRange'],_0x5cc7a5['model']);_0x923803['unshift'](_0x23cc14['fromRange'](_0x5d72ac));}else switch(_0x5e4bd8['type']){case'rename':{const _0x2302e6=_0x5e4bd8['oldName'],_0x59f960=_0x5e4bd8['newName'];if(_0x2302e6==_0x59f960)break;_0x260df2['batch']['addOperation'](_0x5e4bd8),_0x5cc7a5['model']['applyOperation'](_0x5e4bd8);const _0x20c711='$elementName',_0x51d7ef=_0x5e4bd8['position'],_0x4ceb24=_0x5cc7a5['model']['createRange'](_0x51d7ef,_0x5cc7a5['model']['createPositionAt'](_0x51d7ef['nodeAfter'],'end'));this['markAttributeChange'](_0x4ceb24,_0x20c711,_0x2302e6,_0x59f960,{'groupId':_0x43100d()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x436132=_0x5e4bd8['oldValue'],_0x1fbcd4=_0x5e4bd8['newValue'];if(_0x436132==_0x1fbcd4)break;_0x260df2['batch']['addOperation'](_0x5e4bd8),_0x5cc7a5['model']['applyOperation'](_0x5e4bd8);const _0x4ace2d=_0x5e4bd8['key'];if(!this['_isRegisteredAttribute'](_0x4ace2d))break;const _0x4fb4d1=_0x4702a9(_0x5e4bd8['range'],_0x5cc7a5['model']);this['markAttributeChange'](_0x4fb4d1,_0x4ace2d,_0x436132,_0x1fbcd4,{'groupId':_0x43100d()});break;}case'insert':{_0x260df2['batch']['addOperation'](_0x5e4bd8),_0x5cc7a5['model']['applyOperation'](_0x5e4bd8);if(_0x567fd6[_0x24e5cd+0x1]&&'move'==_0x567fd6[_0x24e5cd+0x1]['type'])break;const _0x469cd2=_0x5e4bd8['position'],_0x44fb9a=_0x5e4bd8['howMany'],_0x893377=_0x4702a9(_0x5cc7a5['model']['createRange'](_0x469cd2,_0x469cd2['getShiftedBy'](_0x44fb9a)),_0x5cc7a5['model']);this['markInsertion'](_0x893377);break;}case'split':{_0x260df2['batch']['addOperation'](_0x5e4bd8),_0x5cc7a5['model']['applyOperation'](_0x5e4bd8);const _0x485025=_0x5e4bd8['splitPosition'],_0x40072a=_0x5e4bd8['moveTargetPosition'];this['markInsertion'](_0x5cc7a5['model']['createRange'](_0x485025,_0x40072a));break;}case'move':case'remove':_0x260df2['batch']['addOperation'](_0x5e4bd8),_0x5cc7a5['model']['applyOperation'](_0x5e4bd8);}}for(const _0xfc9858 of _0x923803)_0xfc9858['detach'](),this['markDeletion'](_0xfc9858);});}['_setSuggestionRange'](_0x59bb27,_0x1077c2){const _0x6201ce=_0x59bb27['getFirstMarker']();this['_model']['change'](_0xd3638d=>{_0xd3638d['updateMarker'](_0x6201ce,{'range':_0x1077c2});});}['_addThreadToSuggestion'](_0x4076fc){const _0x64159=_0x4076fc['id'],_0x9cf386=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x64159)||this['_commentsRepository']['addCommentThread']({'channelId':_0x9cf386,'threadId':_0x64159,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x34c1b6=this['_commentsRepository']['getCommentThread'](_0x64159);_0x34c1b6['unbind']('isRemovable'),_0x34c1b6['isRemovable']=!0x1,_0x4076fc['commentThread']=_0x34c1b6;}['_checkSuggestionCorrectness'](_0x123657,_0x1e41e3,_0x50f42d,_0x3d6971){if(_0x123657['type']!=_0x1e41e3||_0x123657['subType']!=_0x50f42d||_0x123657['creator']['id']!=_0x3d6971)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x295561('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x48bd35,_0x3b3d2a){const _0x446451=_0x48bd35['getFirstRange']();if(_0x3b3d2a['isEqual'](_0x446451))_0x48bd35['removeMarkers']();else{if(_0x446451['containsRange'](_0x3b3d2a)){const _0x4846b5=this['_model']['createPositionAt'](_0x3b3d2a['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x48bd35,this['_model']['createRange'](_0x446451['start'],_0x4846b5));const _0x5e4964=_0x43100d(),_0x249092=_0x48bd35['creator']['id'],_0x10e099=_0x48bd35['type']+':'+_0x48bd35['subType'];this['_setSuggestionData']({'id':_0x5e4964,'type':_0x10e099,'createdAt':new Date(),'authorId':_0x249092,'data':_0x48bd35['data'],'attributes':_0x48bd35['attributes']});const _0x405058=this['_model']['createPositionAt'](_0x3b3d2a['end']['parent'],'after'),_0x5bb21e=this['_model']['createRange'](_0x405058,_0x446451['end']);this['_addSuggestionMarker'](_0x10e099,_0x5e4964,_0x249092,_0x5bb21e);}else{if(_0x446451['containsPosition'](_0x3b3d2a['start'])){const _0x443f0a=this['_model']['createPositionAt'](_0x3b3d2a['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x48bd35,this['_model']['createRange'](_0x446451['start'],_0x443f0a));}else{const _0x495697=this['_model']['createPositionAt'](_0x3b3d2a['end']['parent'],'after');this['_setSuggestionRange'](_0x48bd35,this['_model']['createRange'](_0x495697,_0x446451['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x535c97){for(const {suggestion:_0x2f6aba,meta:_0x445fa8}of this['_findSuggestions'](_0x535c97,'insertion')){if(!_0x445fa8['isOwn'])continue;const _0x56a4b9=_0x2f6aba['getRanges']();for(const _0x464ed0 of _0x56a4b9)if(!_0x535c97['getDifference'](_0x464ed0)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x4e1980){return this['editor']['plugins']['get']('Users')['getUser'](_0x4e1980);}['_getExternalAuthor'](_0x5f0751){const _0x317f8f=this['editor']['plugins']['get']('Users'),_0x1e4e8f=_0x5d9d53('external:'+_0x5f0751),_0x12ff1b=_0x317f8f['getUser'](_0x1e4e8f);return _0x12ff1b||_0x317f8f['addUser']({'id':_0x1e4e8f,'name':_0x5f0751});}['_createSuggestion'](_0x3b1b8d,_0x1afc72,_0x19760b,_0x4601ec,_0x1b6826,_0x4b17ab){const _0x45fd19=this['_getAuthorFromId'](_0x4601ec);if(!_0x45fd19)throw new _0x295561('track-changes-user-not-found',this,{'authorId':_0x4601ec,'suggestionId':_0x19760b});const _0x486a1c=this['_suggestionFactory']['buildSuggestion'](_0x3b1b8d,_0x1afc72,_0x19760b,_0x45fd19,_0x1b6826,_0x294a7d=>{this['_updateSuggestionData'](_0x19760b,{'attributes':_0x294a7d});const _0x78858e=this['getSuggestion'](_0x19760b);this['_joinWithAdjacentSuggestions'](new Set([_0x78858e])),this['_refreshSuggestionsChain'](new Set([_0x78858e]));},_0x4b17ab);return this['listenTo'](_0x486a1c,'accept',()=>{this['_updateSuggestionData'](_0x19760b,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x486a1c,'discard',()=>{this['_updateSuggestionData'](_0x19760b,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x19760b,_0x486a1c),this['_suggestionState']['set'](_0x486a1c,'notReady'),_0x486a1c;}['_splitMarkerName'](_0x315a49){return _0x131e43(_0x315a49);}['_breakSuggestionMarker'](_0x5af519,_0x42319f,_0x2f4a60){const _0x3776ee=_0x5af519['getFirstRange'](),_0x47111e=_0x3776ee['start'],_0x436ddd=_0x3776ee['end'];this['_setSuggestionRange'](_0x5af519,this['_model']['createRange'](_0x47111e,_0x42319f));const _0x383e8b=_0x43100d(),_0x4c6c4e=_0x5af519['creator']['id'],_0x5f326d=_0x5af519['type']+(_0x5af519['subType']?':'+_0x5af519['subType']:'');this['_setSuggestionData']({'id':_0x383e8b,'type':_0x5f326d,'createdAt':new Date(),'authorId':_0x4c6c4e,'originalSuggestionId':_0x5af519['_originalSuggestionId']||_0x5af519['id'],'attributes':_0x5af519['attributes'],'data':_0x5af519['data']});const _0x43028d=this['_getAttributeKey'](_0x5af519);('formatBlock'==_0x5af519['type']||_0x43028d&&this['_isBlockAttribute'](_0x43028d))&&(_0x2f4a60=this['_model']['createPositionBefore'](_0x2f4a60['parent'])),this['_addSuggestionMarker'](_0x5f326d,_0x383e8b,_0x4c6c4e,this['_model']['createRange'](_0x2f4a60,_0x436ddd));}['_findSuggestions'](_0x2dd846,_0x1f8f3d=null){const _0x772ae9=[],_0x3699a9=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x2dd846)||(_0x2dd846=[_0x2dd846]);for(const _0x706543 of this['getSuggestions']()){if(!_0x706543['isInContent'])continue;if(_0x1f8f3d&&_0x706543['type']!=_0x1f8f3d)continue;let _0x4d47b7=!0x1;for(const _0x288c98 of _0x706543['getRanges']()){for(const _0x70c7ed of _0x2dd846){const _0x2c84eb=_0x70c7ed['start']['isEqual'](_0x288c98['end'])||_0x70c7ed['end']['isEqual'](_0x288c98['start']);if(_0x2c84eb||_0x70c7ed['getIntersection'](_0x288c98)){const _0xe0bc92=_0x70c7ed['containsRange'](_0x288c98)&&qt(this['_model']['schema'],_0x288c98['start'],_0x70c7ed),_0x35ddc2=_0x288c98['containsRange'](_0x70c7ed)&&qt(this['_model']['schema'],_0x70c7ed['start'],_0x288c98);_0x772ae9['push']({'suggestion':_0x706543,'meta':{'isOwn':_0x3699a9==_0x706543['author'],'isNextTo':_0x2c84eb,'isInsideObject':_0xe0bc92,'containsRangeInObject':_0x35ddc2}}),_0x4d47b7=!0x0;break;}}if(_0x4d47b7)break;}}return _0x772ae9;}['_addSuggestionMarker'](_0x4dda4c,_0x19711c,_0x4faed5,_0x2e0161,_0x51a55a){this['_model']['change'](_0x397d48=>{let _0x260508='suggestion:'+_0x4dda4c+':'+_0x19711c+':'+_0x4faed5;_0x51a55a&&(_0x260508=_0x260508+':'+_0x51a55a),_0x397d48['addMarker'](_0x260508,{'range':_0x2e0161,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x53c4c7){const _0xd6cafd=_0x53c4c7['previous'],_0x489079=_0x53c4c7['next'];_0x53c4c7['previous']=null,_0x53c4c7['next']=null,null!=_0xd6cafd&&_0xd6cafd['next']==_0x53c4c7&&(_0xd6cafd['next']=_0x489079),null!=_0x489079&&_0x489079['previous']==_0x53c4c7&&(_0x489079['previous']=_0xd6cafd),'ready'==this['_suggestionState']['get'](_0x53c4c7)&&(this['_suggestionState']['set'](_0x53c4c7,'removed'),this['fire']('suggestionUnloaded',_0x53c4c7,_0xd6cafd,_0x489079));}['_setSuggestionData'](_0x2e20b5){const _0x1d0cee=_0x2e20b5['id'],_0x5bf872=this['addSuggestionData'](_0x2e20b5);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x40a679=this['editor']['plugins']['get']('PendingActions'),_0x3d3db6=_0x5bf872['hasComments'],_0xb697cc=_0x5bf872['subType']?_0x5bf872['type']+':'+_0x5bf872['subType']:_0x5bf872['type'],_0x6b4e3a=this['editor']['locale'],_0x4b867a=_0x40a679['add'](o(_0x6b4e3a,'PENDING_ACTION_SUGGESTION')),_0x1cc0c3={'id':_0x1d0cee,'type':_0xb697cc,'hasComments':_0x3d3db6,'data':_0x2e20b5['data']||null,'originalSuggestionId':_0x2e20b5['originalSuggestionId']||null,'attributes':_0x5bf872['attributes']};this['_adapter']['addSuggestion'](_0x1cc0c3)['then'](_0x49a5e7=>{_0x5bf872['_saved']=!0x0,_0x40a679['remove'](_0x4b867a),_0x49a5e7&&_0x49a5e7['createdAt']&&(this['_suggestions']['get'](_0x1d0cee)['createdAt']=_0x49a5e7['createdAt']);})['catch'](_0x2c07a0=>{throw _0x534041('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x5bf872['discard']();}),_0x5bf872['stopListening'](),this['_suggestions']['delete'](_0x5bf872['id']),this['_suggestionState']['delete'](_0x5bf872),_0x2c07a0;});}return _0x5bf872;}['_isBlockAttribute'](_0x268a7a){return this['editor']['plugins']['get'](_0x24828a)['isBlockAttribute'](_0x268a7a);}['_isInlineAttribute'](_0x1df630){return this['editor']['plugins']['get'](_0x24828a)['isInlineAttribute'](_0x1df630);}['_updateSuggestionData'](_0x3cd7a8,_0x1f07dd){const _0xc2b538=this['editor']['plugins']['get']('PendingActions'),_0x1ca070=this['getSuggestion'](_0x3cd7a8);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x1ca070['_saved']){const _0x156bb6=_0xc2b538['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x3cd7a8,_0x1f07dd)['then'](()=>{_0xc2b538['remove'](_0x156bb6);});}else _0x1ca070['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x3cd7a8,_0x1f07dd);});}}['_getSuggestionData'](_0x1492f6){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x295561('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x1492f6);}['_handleNewSuggestionMarker'](_0x2ae38b){const {id:_0xb9d854,type:_0xcec47,subType:_0x11b4b1,authorId:_0x45c11c}=this['_splitMarkerName'](_0x2ae38b),_0x5989a4=this['_suggestions']['get'](_0xb9d854)||this['_createSuggestion'](_0xcec47,_0x11b4b1,_0xb9d854,_0x45c11c,{});switch(this['_checkSuggestionCorrectness'](_0x5989a4,_0xcec47,_0x11b4b1,_0x45c11c),this['_suggestionState']['get'](_0x5989a4)){case'notReady':this['_getSuggestionData'](_0xb9d854)['then'](_0x573e9f=>{let _0x56c681=Promise['resolve']();_0x573e9f['hasComments']&&(_0x56c681=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0xb9d854})),_0x56c681['then'](()=>{this['addSuggestionData'](_0x573e9f)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x5989a4,'markerReady');break;case'removed':this['_updateSuggestionData'](_0xb9d854,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x5989a4,'ready'),this['fire']('suggestionLoaded',_0x5989a4);break;case'ready':this['fire']('suggestionChanged',_0x5989a4);}return _0x5989a4['addMarkerName'](_0x2ae38b),_0x5989a4;}['_refreshSuggestionsChain'](_0x5307c3){const _0x942796=Array['from'](_0x5307c3),_0x200aa5=_0x942796['filter'](_0x242623=>'attribute'==_0x242623['type']);this['_refreshAttributeSuggestionsChain'](_0x200aa5);const _0x5c44c9=_0x942796['filter'](_0xb55c0c=>!_0xb55c0c['isMultiRange']&&'attribute'!=_0xb55c0c['type']),_0x13549d=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2a98a7=>!_0x2a98a7['isMultiRange']&&'attribute'!=_0x2a98a7['type']),_0x20f294=_0x13549d['filter'](_0x4d142a=>!_0x5307c3['has'](_0x4d142a)),_0x5f08e3=new Map(_0x13549d['map'](_0xa7ca11=>[_0xa7ca11,this['_suggestionFactory']['getSuggestionCallback'](_0xa7ca11['type'],_0xa7ca11['subType'],'chain')])),_0x39386d=new Map(_0x13549d['map'](_0x3db22b=>[_0x3db22b,_0x3db22b['getFirstRange']()])),_0x3b8354=new Set(),_0xf0f37c=new Set();for(let _0x51b113=0x0;_0x51b113<_0x5c44c9['length'];_0x51b113++)_0x2ea7fc(_0x5c44c9[_0x51b113],_0x5c44c9,_0x51b113+0x1);for(let _0x2aa34a=0x0;_0x2aa34a<_0x5c44c9['length'];_0x2aa34a++)_0x2ea7fc(_0x5c44c9[_0x2aa34a],_0x20f294,0x0);const _0x545e27=new Set();for(let _0x5a99ab=0x0;_0x5a99ab<_0x5c44c9['length'];_0x5a99ab++){const _0x461366=_0x5c44c9[_0x5a99ab];!_0xf0f37c['has'](_0x461366)&&_0x461366['previous']&&(_0x545e27['add'](_0x461366['previous']),_0x461366['previous']['next']===_0x461366&&(_0x461366['previous']['next']=null),_0x461366['previous']=null),!_0x3b8354['has'](_0x461366)&&_0x461366['next']&&(_0x545e27['add'](_0x461366['next']),_0x461366['next']['previous']===_0x461366&&(_0x461366['next']['previous']=null),_0x461366['next']=null);}function _0x2ea7fc(_0x3aaa2b,_0x5eb664,_0x2a7136){for(let _0x2c4bda=_0x2a7136;_0x2c4bda<_0x5eb664['length'];_0x2c4bda++){const _0x1b24f3=_0x3674d0(_0x3aaa2b,_0x5eb664[_0x2c4bda]);_0x1b24f3&&(_0x1b24f3[0x0]['next']=_0x1b24f3[0x1],_0x1b24f3[0x1]['previous']=_0x1b24f3[0x0],_0x3b8354['add'](_0x1b24f3[0x0]),_0xf0f37c['add'](_0x1b24f3[0x1]));}}function _0x3674d0(_0x5e78f5,_0x575b95){if(_0x5e78f5['author']['id']!==_0x575b95['author']['id'])return null;const _0x54ddb6=_0x5f08e3['get'](_0x5e78f5)(_0x5e78f5,_0x575b95,_0x39386d['get'](_0x5e78f5),_0x39386d['get'](_0x575b95));if(!_0x54ddb6)return null;return _0x5f08e3['get'](_0x575b95)(_0x5e78f5,_0x575b95,_0x39386d['get'](_0x5e78f5),_0x39386d['get'](_0x575b95))?_0x54ddb6[0x1]['commentThread']&&_0x54ddb6[0x1]['commentThread']['length']?null:_0x54ddb6:null;}_0x545e27['size']&&this['_refreshSuggestionsChain'](_0x545e27);}['_refreshAttributeSuggestionsChain'](_0x3aee45){if(0x0==_0x3aee45['length'])return;const _0x102932=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2a780c=>'attribute'==_0x2a780c['type']&&_0x2a780c['_isDataLoaded']),_0x22197e=[],_0x32673f=new Map();for(const _0x3fd73b of _0x102932){const _0x5ed2ee=_0x5d9d53(_0x3fd73b['attributes']);_0x32673f['has'](_0x5ed2ee)||(_0x32673f['set'](_0x5ed2ee,_0x22197e['length']),_0x22197e['push']([]));const _0x2799bf=_0x32673f['get'](_0x5ed2ee);_0x22197e[_0x2799bf]['push'](_0x3fd73b);}!(function(){_0x22197e['sort']((_0x1a708d,_0x52f8de)=>{const _0x2f8b13=_0x1a708d[0x0]['createdAt'],_0x53faf6=_0x52f8de[0x0]['createdAt'];return _0x2f8b13==_0x53faf6?_0x1a708d[0x0]['attributes']['groupId']<_0x52f8de[0x0]['attributes']['groupId']?-0x1:0x1:_0x2f8b13<_0x53faf6?-0x1:0x1;});for(const _0x7fd104 of _0x22197e)_0x7fd104['sort']((_0x173a04,_0x4fedee)=>_0x173a04['id']<_0x4fedee['id']?-0x1:0x1);}());for(let _0x423f94=0x0;_0x423f94<_0x22197e['length'];_0x423f94++){if(0x0==_0x22197e[_0x423f94]['length'])continue;const _0x660d9a=[];for(let _0x1816e7=_0x423f94+0x1;_0x1816e7<_0x22197e['length'];_0x1816e7++)0x0!=_0x22197e[_0x1816e7]['length']&&_0x3a1b07(_0x22197e[_0x423f94],_0x22197e[_0x1816e7])&&_0x660d9a['push'](_0x1816e7);for(const _0x245638 of _0x660d9a)_0x22197e[_0x423f94]=_0x22197e[_0x423f94]['concat'](_0x22197e[_0x245638]),_0x22197e[_0x245638]=[];}for(const _0x2073de of _0x22197e)for(let _0x337217=0x0;_0x337217<_0x2073de['length'];_0x337217++){const _0x3f087a=_0x2073de[_0x337217+0x1]||null;_0x2073de[_0x337217]['next']!==_0x3f087a&&(_0x2073de[_0x337217]['next']=_0x3f087a);}for(const _0x4ed1dc of _0x22197e)for(let _0x251414=0x0;_0x251414<_0x4ed1dc['length'];_0x251414++){const _0x106bcb=_0x4ed1dc[_0x251414-0x1]||null;_0x4ed1dc[_0x251414]['previous']!==_0x106bcb&&(_0x4ed1dc[_0x251414]['previous']=_0x106bcb);}function _0x3a1b07(_0x3d3b79,_0x1836ff){if(_0x3d3b79[0x0]['attributes']['groupId']!==_0x1836ff[0x0]['attributes']['groupId']&&_0x3d3b79[0x0]['author']!==_0x1836ff[0x0]['author'])return!0x1;if(!function(_0x4a9a44,_0x5ee855){if(!_0x4a9a44['hasComments']&&!_0x5ee855['hasComments'])return!0x0;if(_0x4a9a44['hasComments']&&_0x5ee855['hasComments'])return!0x1;if(_0x4a9a44['hasComments']&&_0x5ee855['createdAt']<_0x4a9a44['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x5ee855['hasComments']&&_0x4a9a44['createdAt']<_0x5ee855['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x3d3b79[0x0],_0x1836ff[0x0]))return!0x1;const _0x441743=Jt(_0x3d3b79[0x0]['attributes'],['groupId','trackingSessionId']),_0x3640cb=Jt(_0x1836ff[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x4d6333(_0x441743,_0x3640cb))return!0x1;if(_0x3d3b79[0x0]['attributes']['groupId']==_0x1836ff[0x0]['attributes']['groupId'])return!0x0;if(_0x3d3b79[0x0]['attributes']['trackingSessionId']!==_0x1836ff[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x3d3b79['every'](_0x30dda5=>_0x1836ff['some'](_0x27b377=>_0x30dda5['getFirstRange']()['isEqual'](_0x27b377['getFirstRange']())))&&_0x1836ff['every'](_0x1a0d53=>_0x3d3b79['some'](_0x3e03eb=>_0x1a0d53['getFirstRange']()['isEqual'](_0x3e03eb['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x51c781){const _0x2c50b7=Array['from'](_0x51c781),_0x2155dc=this['getSuggestions']({'skipNotAttached':!0x0}),_0x5e9d59=_0x2155dc['filter'](_0x1f9a21=>!_0x51c781['has'](_0x1f9a21)),_0xd11390=new Map(_0x2c50b7['map'](_0x249635=>[_0x249635,this['_suggestionFactory']['getSuggestionCallback'](_0x249635['type'],_0x249635['subType'],'join')])),_0x14df98=new Map(_0x2155dc['map'](_0x17e795=>[_0x17e795,_0x17e795['getRanges']()]));for(let _0x4eea53=0x0;_0x4eea53<_0x2c50b7['length'];_0x4eea53++){if(_0x57e792(this,_0x2c50b7[_0x4eea53],_0x2c50b7,_0x4eea53+0x1))return!0x0;}for(let _0x18537c=0x0;_0x18537c<_0x2c50b7['length'];_0x18537c++){if(_0x57e792(this,_0x2c50b7[_0x18537c],_0x5e9d59,0x0))return!0x0;}return!0x1;function _0x57e792(_0x21c809,_0x32dab3,_0x2733a1,_0xac210f){for(let _0x1d24de=_0xac210f;_0x1d24de<_0x2733a1['length'];_0x1d24de++){const _0x1c9b66=_0x2733a1[_0x1d24de];if(_0x1c9b66['type']!==_0x32dab3['type']||_0x1c9b66['author']['id']!==_0x32dab3['author']['id']||_0x1c9b66['subType']!==_0x32dab3['subType'])continue;if(!nn(_0x32dab3,_0x1c9b66))continue;if('attribute'==_0x32dab3['type']&&_0x32dab3['data']['oldValue']!=_0x1c9b66['data']['oldValue'])continue;if('attribute'==_0x32dab3['type']&&_0x21c809['_isBlockAttribute'](_0x32dab3['data']['key']))continue;if('formatBlock'==_0x32dab3['type']){const _0x3efa0b=_0x21c809['editor']['model'],_0x4ce82c=_0x32dab3['getContainedElement']();if(_0x4ce82c&&(_0x3efa0b['schema']['isObject'](_0x4ce82c)||_0x3efa0b['schema']['isLimit'](_0x4ce82c)))continue;}const _0x21173b=_0xd11390['get'](_0x32dab3),_0x28bb99=_0x14df98['get'](_0x32dab3),_0x41472f=_0x14df98['get'](_0x1c9b66),_0x593b88=_0x32dab3['commentThread']&&_0x32dab3['commentThread']['length'],_0x3cddf5=_0x1c9b66['commentThread']&&_0x1c9b66['commentThread']['length'];if(!_0x593b88&&_0x21173b(_0x41472f,_0x28bb99))return _0x21c809['_joinSuggestions'](_0x1c9b66,_0x32dab3),_0x14df98['delete'](_0x32dab3),!0x0;if(!_0x3cddf5&&_0x21173b(_0x28bb99,_0x41472f))return _0x21c809['_joinSuggestions'](_0x32dab3,_0x1c9b66),_0x14df98['delete'](_0x1c9b66),!0x0;}return!0x1;}}['_joinSuggestions'](_0x1ea7b9,_0x485b8f){if(_0x1ea7b9['isMultiRange']){for(const _0x49c10d of _0x485b8f['getRanges']())_0x1ea7b9['addRange'](_0x49c10d);}else{const _0x1a5509=_0x485b8f['getFirstRange']()['end'];this['_setSuggestionRange'](_0x1ea7b9,this['_model']['createRange'](_0x1ea7b9['getFirstRange']()['start'],_0x1a5509));}_0x485b8f['removeMarkers']();}['_getMarkerAnnouncementText'](_0x2fe041,_0x4fdaa0,_0x24baf7){const _0x2d11e4=_0x2fe041['startsWith']('format')||_0x2fe041['startsWith']('attribute')?'FORMATTING':_0x2fe041['toUpperCase']();return o(this['editor']['locale'],_0x4fdaa0+'_'+_0x2d11e4+'_SUGGESTION_ANNOUNCEMENT',_0x24baf7);}['_initAriaMarkerChangeAnnouncements'](){const _0x2eb49d=this['editor'];if(!_0x2eb49d['ui'])return;const {ariaLiveAnnouncer:_0x5be7a0}=_0x2eb49d['ui'];_0x540d08(this['_model'],({left:_0x117053,entered:_0x56bc0b})=>{for(const _0x3b6933 of _0x117053){const {group:_0x4a1b8a,type:_0x44a8dc}=this['_splitMarkerName'](_0x3b6933['name']);if('suggestion'===_0x4a1b8a){_0x5be7a0['announce'](this['_getMarkerAnnouncementText'](_0x44a8dc,'LEAVE'));break;}}for(const _0x1abdcc of _0x56bc0b){const {group:_0x279c27,type:_0x134945}=this['_splitMarkerName'](_0x1abdcc['name']);if('suggestion'===_0x279c27){_0x5be7a0['announce'](this['_getMarkerAnnouncementText'](_0x134945,'ENTER',_0x123b9d(_0x12f96f)));break;}}});}['_processAttributeChanges'](_0x564490){if(this['_recordAttributeSuggestions'])return!0x1;const _0x43da54=this['editor'],_0x2bc55b=_0x43da54['model']['document']['differ']['getChanges']();if(0x0==_0x2bc55b['length'])return!0x1;const _0x425245=[],_0xdd6726=_0x2bc55b['filter'](_0x2649aa=>'attribute'==_0x2649aa['type']),_0x4c9738=_0x2bc55b['filter'](_0x31b323=>'insert'==_0x31b323['type']&&'$text'!=_0x31b323['name']),_0x37cd5c=_0x2bc55b['filter'](_0x22718a=>'remove'==_0x22718a['type']&&'$text'!=_0x22718a['name']);for(const _0x53df8c of _0xdd6726)_0x425245['push']({'key':_0x53df8c['attributeKey'],'newValue':_0x53df8c['attributeNewValue'],'oldValue':_0x53df8c['attributeOldValue'],'range':Yt(_0x53df8c['range'],_0x43da54['model'])});for(const _0x121586 of _0x4c9738){const _0x21d73c=_0x37cd5c['find'](_0x42226e=>_0x42226e['position']['isEqual'](_0x121586['position']));_0x21d73c&&_0x425245['push']({'key':m,'newValue':_0x121586['name'],'oldValue':_0x21d73c['name'],'range':_0x43da54['model']['createRangeOn'](_0x121586['position']['nodeAfter'])});}return 0x0!=_0x425245['length']&&this['_reduceExistingSuggestions'](_0x564490,_0x425245);}['_processAttributeSuggestions'](_0x5eb6fb){let _0x5dff5d=!0x1;const _0x299900=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1bf593=>_0x1bf593['data']['newRange']&&_0x1bf593['name']['startsWith']('suggestion:attribute:'));for(const _0x43c5c6 of _0x299900){const {subType:_0x5d8ea7,id:_0x115823}=this['_splitMarkerName'](_0x43c5c6['name']),_0x3e6586=_0x5d8ea7['split']('|')[0x0];for(const _0x54dd72 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x54dd72['id']!=_0x115823&&'attribute'==_0x54dd72['type']&&_0x54dd72['data']&&_0x54dd72['data']['key']==_0x3e6586&&_0x54dd72['getFirstRange']()['isIntersecting'](_0x43c5c6['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x54dd72,_0x43c5c6['data']['newRange'],_0x5eb6fb),_0x5dff5d=!0x0);}return _0x5dff5d;}['recordAttributeChanges'](_0xcf568f){this['_recordAttributeSuggestions']=!0x0,_0xcf568f();}['_isRegisteredAttribute'](_0x559d7d){return this['editor']['plugins']['get'](_0x24828a)['isRegisteredAttribute'](_0x559d7d);}['_reduceExistingSuggestions'](_0xe583c2,_0xf8c65f){if(0x0==_0xf8c65f['length'])return!0x1;let _0x506923=!0x1;for(const _0x28b417 of _0xf8c65f){const _0x40504f=this['_findSuggestions'](_0x28b417['range'],'attribute')['filter'](_0x34df2f=>!_0x34df2f['meta']['isNextTo'])['map'](_0xfb70fd=>_0xfb70fd['suggestion']),_0x433ad4=_0x5d9d53({'newValue':_0x28b417['newValue']});_0x40504f['filter'](_0x47dac0=>{const [_0x1fdaa4,_0x4397cd]=_0x47dac0['subType']['split']('|');return _0x1fdaa4==_0x28b417['key']&&_0x4397cd!=_0x433ad4;})['forEach'](_0x40a5e7=>{this['_reduceSuggestionAttributeRange'](_0x40a5e7,_0x28b417['range'],_0xe583c2),_0x506923=!0x0;});}return _0x506923;}['_reduceSuggestionAttributeRange'](_0x280722,_0x22a8fd,_0x4362a2){const _0x56a8de=_0x280722['getFirstRange']()['getDifference'](_0x22a8fd);0x0!==_0x56a8de['length']?0x1!==_0x56a8de['length']?this['_breakSuggestionMarker'](_0x280722,_0x22a8fd['start'],_0x22a8fd['end']):this['_setSuggestionRange'](_0x280722,_0x56a8de[0x0]):_0x4362a2['removeMarker'](_0x280722['getFirstMarker']());}}class SuggestionFactory{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x29e4ce){this['_editor']=_0x29e4ce,this['_model']=_0x29e4ce['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x301558,_0x1a40a1,_0x1d4a31,_0x5c5dac,_0x38c707,_0x315ea8,_0x16dda2){return new T(this['_model'],{'type':_0x301558,'subType':_0x1a40a1,'id':_0x1d4a31,'originalSuggestionId':_0x16dda2,'author':_0x5c5dac,'creator':_0x5c5dac,'attributes':_0x38c707,'onAttributesChange':_0x315ea8,'onAccept':(..._0x387f1d)=>this['getSuggestionCallback'](_0x301558,_0x1a40a1,'accept')(..._0x387f1d),'onDiscard':(..._0x4621e6)=>this['getSuggestionCallback'](_0x301558,_0x1a40a1,'discard')(..._0x4621e6)});}['registerCustomCallback'](_0x82388a,_0x3eb09e,_0x1e1c66,_0x11c3aa){const _0x294e28=_0x82388a+':'+_0x3eb09e+':'+_0x1e1c66;this['_customCallbacks']['set'](_0x294e28,_0x11c3aa);}['getSuggestionCallback'](_0x4f5d9e,_0x246241,_0x419391){const _0x960cbc=_0x4f5d9e+':'+_0x246241+':'+_0x419391;return this['_customCallbacks']['get'](_0x960cbc)||this['_defaultCallbacks']['get'](_0x4f5d9e+':'+_0x419391);}['_registerDefaultCallbacks'](){const _0x3da2c6=()=>!0x1,_0x153f64=_0x29dd26=>{_0x29dd26['sort']((_0x544ac7,_0x132ec9)=>_0x544ac7['start']['isBefore'](_0x132ec9['start'])?0x1:-0x1),this['_model']['change'](_0x3cfb16=>{for(const _0x59e38c of _0x29dd26){let _0x2082e3;_0x2082e3=_0x59e38c['end']['isAtEnd']&&_0x59e38c['end']['parent']==_0x59e38c['start']['nodeAfter']?_0x3cfb16['createSelection'](_0x59e38c['start']['nodeAfter'],'on'):_0x3cfb16['createSelection'](_0x59e38c),this['_model']['deleteContent'](_0x2082e3,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x1a39b6=(_0x5c7412,_0x1ad7bb)=>{_0x1ad7bb&&this['_model']['change'](_0x37e09d=>{const {commandName:_0x42b884,commandParams:_0x48e2fe=[]}=_0x1ad7bb,_0x1902fe=_0x5c7412['map'](_0x426e25=>(zt(_0x426e25)&&(_0x426e25=this['_model']['createRange'](_0x426e25['end'])),_0x426e25))['filter'](_0x3e4da3=>'$graveyard'!==_0x3e4da3['root']['rootName']);if(_0x1902fe['length']<0x1)return;const _0x3091e9=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x1898f0=>_0x23cc14['fromRange'](_0x1898f0));_0x37e09d['setSelection'](_0x1902fe);for(const _0x5dc1df of this['_editor']['commands']['commands']())_0x5dc1df['refresh']();_0x48e2fe['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x42b884,..._0x48e2fe);const _0x2834a6=_0x3091e9['filter'](_0x4d7bed=>'$graveyard'!=_0x4d7bed['root']['rootName']);_0x2834a6['length']>0x0&&_0x37e09d['setSelection'](_0x2834a6);for(const _0x2f1d76 of _0x3091e9)_0x2f1d76['detach']();});},_0x26198a=(_0x351b5b,_0x10fece)=>0x1==_0x351b5b['length']&&0x1==_0x10fece['length']&&_0x351b5b[0x0]['end']['isEqual'](_0x10fece[0x0]['start']),_0x353027=(_0x27c167,_0x1defcc,_0x25fc0e,_0x4ac7a6)=>tn(_0x27c167,_0x1defcc,_0x25fc0e,_0x4ac7a6)?[_0x27c167,_0x1defcc]:tn(_0x1defcc,_0x27c167,_0x4ac7a6,_0x25fc0e)?[_0x1defcc,_0x27c167]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x3da2c6),this['_defaultCallbacks']['set']('insertion:discard',_0x153f64),this['_defaultCallbacks']['set']('insertion:join',_0x26198a),this['_defaultCallbacks']['set']('insertion:chain',_0x353027),this['_defaultCallbacks']['set']('deletion:accept',_0x153f64),this['_defaultCallbacks']['set']('deletion:discard',_0x3da2c6),this['_defaultCallbacks']['set']('deletion:join',_0x26198a),this['_defaultCallbacks']['set']('deletion:chain',_0x353027),this['_defaultCallbacks']['set']('formatInline:accept',_0x1a39b6),this['_defaultCallbacks']['set']('formatInline:discard',_0x3da2c6),this['_defaultCallbacks']['set']('formatInline:join',_0x26198a),this['_defaultCallbacks']['set']('formatInline:chain',_0x3da2c6),this['_defaultCallbacks']['set']('formatBlock:accept',_0x1a39b6),this['_defaultCallbacks']['set']('formatBlock:discard',_0x3da2c6),this['_defaultCallbacks']['set']('formatBlock:join',_0x26198a),this['_defaultCallbacks']['set']('formatBlock:chain',_0x3da2c6),this['_defaultCallbacks']['set']('attribute:accept',_0x3da2c6),this['_defaultCallbacks']['set']('attribute:discard',(_0x5ba0be,_0x58c4ad)=>{if(!_0x58c4ad)return;const _0x296ddf=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x5e9c34=>{if(_0x58c4ad['key']==m)for(const _0x27770a of _0x5ba0be){const _0x2871fc=_0x27770a['start']['nodeAfter'],_0x394060=_0x58c4ad['oldValue'];_0x5e9c34['rename'](_0x2871fc,_0x394060);}else{if(_0x296ddf['_isBlockAttribute'](_0x58c4ad['key'])){for(const _0xcc69cc of _0x5ba0be)void 0x0!==_0x58c4ad['oldValue']?_0x5e9c34['setAttribute'](_0x58c4ad['key'],_0x58c4ad['oldValue'],_0xcc69cc['start']['nodeAfter']):_0x5e9c34['removeAttribute'](_0x58c4ad['key'],_0xcc69cc['start']['nodeAfter']);}else{for(const _0x438ba0 of _0x5ba0be)_0x58c4ad['oldValue']?_0x5e9c34['setAttribute'](_0x58c4ad['key'],_0x58c4ad['oldValue'],_0x438ba0):_0x5e9c34['removeAttribute'](_0x58c4ad['key'],_0x438ba0);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x26198a);}}function qt(_0x3e11f8,_0x3ee93b,_0x2f5b65){for(const _0x43d25e of _0x3ee93b['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x43d25e['root']==_0x43d25e)return!0x1;if(!_0x2f5b65['containsItem'](_0x43d25e))return!0x1;if(_0x3e11f8['isObject'](_0x43d25e)||_0x3e11f8['isLimit'](_0x43d25e))return!0x0;}return!0x1;}function zt(_0x3dd3f9){return _0x3dd3f9['end']['parent']==_0x3dd3f9['start']['nodeAfter']&&_0x3dd3f9['end']['isAtStart'];}function Kt(_0x122168,_0xdbce9a,_0x2522dc,_0x4ef4d6){const _0x593647=_0x565ee7=>!_0x565ee7['item']['is']('$textProxy')&&!_0x4ef4d6['isObject'](_0x565ee7['item']),_0x4ee1a2=_0x122168['start']['getLastMatchingPosition'](_0x593647),_0x43557d=_0x122168['end']['getLastMatchingPosition'](_0x593647,{'direction':'backward'});return(!_0x122168['start']['isEqual'](_0x4ee1a2)||!_0x122168['end']['isEqual'](_0x43557d))&&(_0x4ee1a2['isBefore'](_0x43557d)?_0x2522dc['updateMarker'](_0xdbce9a,{'range':_0x2522dc['createRange'](_0x4ee1a2,_0x43557d)}):_0x2522dc['removeMarker'](_0xdbce9a),!0x0);}function Wt(_0xf78eda){return _0x5d9d53(_0xf78eda);}function Ht(_0x40df1b){const _0x512ae1=_0x40df1b['start']['nodeAfter'];return _0x512ae1&&_0x512ae1['is']('element');}function Qt(_0x26a380){return zt(_0x26a380)||function(_0x3ba0bc){return _0x3ba0bc['start']['parent']==_0x3ba0bc['end']['nodeBefore']&&_0x3ba0bc['start']['isAtEnd'];}(_0x26a380);}function Xt(_0x21d39c,_0x51aa10){try{const _0x27f0cd=_0x21d39c['getRange']();for(const _0x26e439 of _0x51aa10)if(_0x21d39c!==_0x26e439&&_0x27f0cd&&_0x27f0cd['isIntersecting'](_0x26e439['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Yt(_0x81a9ac,_0x565bb8){return null==_0x81a9ac['end']['nodeBefore']&&_0x81a9ac['end']['parent']==_0x81a9ac['start']['nodeAfter']?Zt(_0x81a9ac['start']['nodeAfter'],_0x565bb8):_0x81a9ac;}function Zt(_0x40dec0,_0x506b26){const _0x24d9b7=_0x506b26['schema']['isObject'](_0x40dec0)||_0x506b26['schema']['isSelectable'](_0x40dec0);return _0x506b26['createRange'](_0x506b26['createPositionAt'](_0x40dec0,'before'),_0x24d9b7?_0x506b26['createPositionAfter'](_0x40dec0):_0x506b26['createPositionAt'](_0x40dec0,'end'));}function tn(_0x31eefe,_0x3b226a,_0x47fd7c,_0x2a9644){return!!nn(_0x31eefe,_0x3b226a)&&_0x47fd7c['end']['isEqual'](_0x2a9644['start']);}function nn(_0x303e83,_0x3d7f8a){if(!_0x303e83['_isDataLoaded']||!_0x3d7f8a['_isDataLoaded'])return!0x1;const _0x5ae297=new Set(Object['keys'](_0x303e83['attributes'])),_0xe1f275=new Set(Object['keys'](_0x3d7f8a['attributes']));if(_0x5ae297['delete']('groupId'),_0xe1f275['delete']('groupId'),0x0==_0x5ae297['size']&&0x0==_0xe1f275['size'])return!0x0;if(_0x5ae297['size']!=_0xe1f275['size'])return!0x1;const _0x4a68d0={..._0x303e83['attributes']},_0x4bed03={..._0x3d7f8a['attributes']};return delete _0x4a68d0['groupId'],delete _0x4bed03['groupId'],JSON['stringify'](_0x4a68d0)==JSON['stringify'](_0x4bed03);}function en(_0x473a2c,_0x3a29e3){const _0x529b47=sn(_0x473a2c['attributes']),_0x9db86b=sn(_0x3a29e3);if(!_0x473a2c['_isDataLoaded'])return!0x1;for(const _0xf90882 of Object['keys'](_0x9db86b))if(!_0x4d6333(_0x529b47[_0xf90882],_0x9db86b[_0xf90882]))return!0x1;return!0x0;}function sn(_0x5463a4){const _0x277e38=Object['assign']({},_0x5463a4);return delete _0x277e38['skipNestingCheck'],delete _0x277e38['tablePasteChainId'],_0x277e38;}class pe extends/* #__PURE__ -- @preserve */
26
+ _0x4c00e9(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x3da7d5,_0x3b7ee6,_0x9abd22,_0x461739){super(),this['model']=_0x3b7ee6,this['view']=_0x9abd22,this['commentThreadController']=_0x461739,this['_editor']=_0x3da7d5,this['_acceptCommand']=_0x3da7d5['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x3da7d5['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x4d3649,_0x1e43ec)=>_0x4d3649||_0x1e43ec),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x4674b6=>_0x4674b6&&this['_editor']['model']['canEditAt'](_0x3b7ee6['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x26eac8=>_0x26eac8&&this['_editor']['model']['canEditAt'](_0x3b7ee6['getRanges']())),this['_pendingAction']=null,_0x9abd22['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x9abd22,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x9abd22,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x9abd22,'change:isDirty',()=>{_0x9abd22['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 _0x2c6f66=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x2c6f66);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x573a46{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x5d3aee,_0x27fa61,_0x542696,_0x586656){super(_0x5d3aee),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x4309bd(_0x5d3aee,o(_0x5d3aee,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x27fa61['authoredAt']),this['bind']('authoredAt')['to'](_0x27fa61),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',_0x27fa61,'authoredAt',this,'descriptionParts',(_0x44558c,_0x3eb937,_0x89a254)=>{const _0x420b1a=_0x89a254['map'](_0x186ed5=>ls(_0x186ed5['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x44558c-0x1,_0x27fa61['author']['name'],_0x3eb937?_0x586656['formatDateTime'](_0x3eb937):'',new DOMParser()['parseFromString'](_0x420b1a,'text/html')['body']['textContent']]);}),this['focusables']=new _0x50abef(),this['focusTracker']=new _0x3e0955(),this['keystrokes']=new _0x57edfc(),this['focusCycler']=new _0x43fa24({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x390e7b=>_0x390e7b['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x27fa61,this['_localUser']=_0x542696,this['_config']=_0x586656,_0x586656['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x5b961c(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x4df3eb}=this['_config'];this['commentsListView']=new _0x4df3eb(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',_0x4820f3=>_0x4820f3+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0xaed1b1,_0x52366f)=>_0xaed1b1||!!_0x52366f);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x3d0c24}=this['_config'],_0x5dfcbd=new _0x3d0c24(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x2b60a7=_0x5dfcbd['commentInputView'];return _0x5dfcbd['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x2b60a7,'value',(_0x96ef52,_0x2ec725,_0x2f4175)=>!!_0x2f4175||_0x96ef52&&!_0x2ec725),_0x2b60a7['on']('submit',(_0x1ea29b,_0x227981)=>{this['fire']('addComment',_0x227981),_0x2b60a7['editor']['setData']('');}),_0x2b60a7['on']('cancel',()=>this['focus']()),_0x2b60a7['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x5dfcbd;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x3ab6e0,_0x2071b3,_0x440f3f,_0x2d390a){super(_0x3ab6e0,_0x2071b3,_0x440f3f,_0x2d390a),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x26b7fd=>_0x26b7fd&&_0x26b7fd[0x0]?_0x26b7fd[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3feccf,_0x518ba2)=>{let _0x3ad5fc='';for(const _0x209a47 of _0x3feccf)_0x3ad5fc+='<p>'+ls(_0x209a47['content'],_0x209a47['color'])+'</p>';return _0x518ba2?_0x3ad5fc:_0x9c05dc(_0x3ad5fc,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x2d390a['SuggestionView'](_0x3ab6e0,_0x2071b3,{'formatDateTime':_0x2d390a['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 _0x41093b=this['bindTemplate'],_0x412100=[this['suggestionView']];return this['commentsListView']&&_0x412100['push'](this['commentsListView']),this['commentThreadInputView']&&_0x412100['push'](this['commentThreadInputView']),_0x412100['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x41093b['if']('isActive','ck-suggestion-wrapper--active'),_0x41093b['to']('type',_0x94b22a=>'ck-suggestion-'+_0x94b22a),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':_0x41093b['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x412100};}['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 _0x573a46{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x405076,_0x2d5540,_0x31b561){super(_0x405076),this['_model']=_0x2d5540,this['_config']=_0x31b561,this['set']('description',''),this['bind']('authoredAt')['to'](_0x2d5540),this['acceptButton']=this['_createButton'](o(_0x405076,'Accept\x20suggestion'),_0x5c1126,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x405076,'Discard\x20suggestion'),_0x39fb50,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x3af776(_0x405076,_0x2d5540['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x50abef([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x3e0955(),this['keystrokes']=new _0x57edfc(),this['focusCycler']=new _0x43fa24({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0xa6d11=>_0xa6d11['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x1b6f3b=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x1b6f3b['innerHTML']=this['description'],this['on']('change:description',(_0x4e5d08,_0x3e9c0f,_0x1f79f6)=>{_0x1b6f3b['innerHTML']=_0x1f79f6;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x3e9be6=this['bindTemplate'],_0x226208=[{'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':_0x3e9be6['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3e9be6['to']('authoredAt',_0x1c7ef6=>this['_config']['formatDateTime'](_0x1c7ef6))}]}]},{'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']&&_0x226208['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':_0x226208}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x5b35d5,_0x78a642,_0x1bc94a,_0x34cb89,_0x6eac55){const _0x3e33c1=new _0x48d323(this['locale']);return _0x3e33c1['set']({'label':_0x5b35d5,'icon':_0x78a642,'tooltip':!0x0,'tooltipPosition':_0x6eac55}),_0x3e33c1['extendTemplate']({'attributes':{'class':_0x1bc94a}}),_0x3e33c1['on']('execute',()=>{this['fire'](_0x34cb89,this['_model']['id']);}),_0x3e33c1;}['_setupKeyboardNavigation'](){const _0x3de1b4=this['element'];this['keystrokes']['listenTo'](_0x3de1b4);for(const _0x52bdd3 of this['focusables'])this['focusTracker']['add'](_0x52bdd3['element']),this['keystrokes']['listenTo'](_0x52bdd3['element']);this['keystrokes']['set']('enter',(_0x413c22,_0x1b9914)=>{_0x3de1b4===_0x413c22['target']&&(this['focusCycler']['focusFirst'](),_0x1b9914());}),this['keystrokes']['set']('esc',(_0x573240,_0x483b05)=>{_0x3de1b4!==_0x573240['target']&&(this['focus'](),_0x483b05());});}}class u extends _0xb2d1b5{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x3dac01,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x13f32e){super(_0x13f32e),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x2899d7=this['editor']['config'];_0x2899d7['define']('trackChanges.SuggestionThreadView',fe),_0x2899d7['define']('trackChanges.SuggestionView',we),_0x2899d7['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x2899d7['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x574106,_0x9ddcb0){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x4bdf15,_0x3ac4f2]of this['_handleControllerBuffer']){const _0x59ed93=this['_suggestionToController']['has'](_0x4bdf15);_0x59ed93||_0x3ac4f2?_0x59ed93&&_0x3ac4f2&&this['_destroyController'](_0x4bdf15):this['_initializeController'](_0x4bdf15);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x574106,_0x9ddcb0);}['init'](){const _0x3f45a7=this['editor'],_0x3bcfb3=_0x3f45a7['plugins']['get']('TrackChangesEditing'),_0x3959c3=_0x3f45a7['plugins']['get']('Annotations'),_0x128b5e=_0x3f45a7['plugins']['get']('EditorAnnotations'),_0x247ad8=_0x3f45a7['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x128b5e['addSourceCollector'](()=>{const _0x5bc2d4=[];for(const [_0x6c6d88,_0x70f613]of Array['from'](this['_suggestionToController'])){const _0x2f8257=_0x6c6d88['getAllAdjacentSuggestions'](),_0x5ed028=[];for(const _0x20d3a3 of _0x2f8257){if(!_0x20d3a3['isInContent'])continue;if(_0x20d3a3['isMultiRange']){_0x5ed028['push'](..._0x20d3a3['getRanges']());continue;}const _0x10370a=_0x20d3a3['getFirstRange']();if(_0x5ed028['length']>0x0){const _0x4de376=_0x5ed028[0x0]['getJoined'](_0x10370a);if(_0x4de376){_0x5ed028[0x0]=_0x4de376;continue;}}_0x5ed028['push'](_0x10370a);}_0x5bc2d4['push']([_0x70f613['view'],_0x5ed028]);}return _0x5bc2d4;}),this['listenTo'](_0x3bcfb3,'suggestionLoaded',(_0x5a2ea9,_0x40fe3f)=>{this['listenTo'](_0x40fe3f,'change:previous',(_0x54a6f4,_0x574a07,_0x26ed2a,_0x294d9c)=>{_0x40fe3f['isInContent']&&(null==_0x26ed2a?(this['_updateController'](_0x294d9c['head']),this['_handleSuggestionControllerDelayed'](_0x40fe3f,!0x1)):(this['_updateController'](_0x26ed2a['head']),null==_0x294d9c&&this['_handleSuggestionControllerDelayed'](_0x40fe3f,!0x0)));}),null!==_0x40fe3f['previous']?this['_updateController'](_0x40fe3f['head']):this['_handleSuggestionControllerDelayed'](_0x40fe3f,!0x1);}),this['listenTo'](_0x3bcfb3,'suggestionUnloaded',(_0x3bad27,_0x542f6d,_0x679997)=>{this['stopListening'](_0x542f6d,'change:previous'),this['_handleControllerBuffer']['delete'](_0x542f6d),this['_suggestionToController']['has'](_0x542f6d)&&this['_destroyController'](_0x542f6d),_0x679997&&this['_updateController'](_0x679997['head']);}),this['listenTo'](_0x3bcfb3,'suggestionChanged',(_0x2617b7,_0x2f688f)=>{this['_updateController'](_0x2f688f);}),this['listenTo'](_0x3959c3,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x247ad8,'addComment',(_0x247eb4,{threadId:_0x17b70c,isFromAdapter:_0x1898d6})=>{if(_0x1898d6||!_0x3bcfb3['hasSuggestion'](_0x17b70c))return;const _0x35e407=_0x3bcfb3['getSuggestion'](_0x17b70c);this['_suggestionToController']['get'](_0x35e407)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xb9ea1f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1c5ca9;for(const _0x3b5d9b in _0xb9ea1f){const _0x4c7e98=_0x3b5d9b,_0x2713e3=_0xb9ea1f[_0x4c7e98];if('trackChangesLicenseKeyValid'==_0x2713e3||'trackChangesLicenseKeyInvalid'==_0x2713e3||'trackChangesLicenseKeyExpired'==_0x2713e3||'trackChangesLicenseKeyDomainLimit'==_0x2713e3||'trackChangesLicenseKeyNotAllowed'==_0x2713e3||'trackChangesLicenseKeyEvaluationLimit'==_0x2713e3||'trackChangesLicenseKeyUsageLimit'==_0x2713e3){delete _0xb9ea1f[_0x4c7e98],_0x1c5ca9=_0x2713e3,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x1c5ca9&&_0xb9ea1f['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x1c5ca9&&_0xb9ea1f['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x1c5ca9&&_0xb9ea1f['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x1c5ca9&&_0xb9ea1f['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x1c5ca9&&_0xb9ea1f['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x1c5ca9&&_0xb9ea1f['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x5224d5){const _0x5a9c20=this['_suggestionToController']['get'](_0x5224d5);if(!_0x5a9c20)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x5a9c20['view'])||null;}['getSuggestionForAnnotation'](_0x1cc975){const _0x32ac75=this['_viewToController']['get'](_0x1cc975['innerView']);return _0x32ac75?_0x32ac75['model']:null;}['_refreshActiveMarkers'](){const _0x4ce91c=this['editor']['plugins']['get']('Annotations'),_0x4940db=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3fb9b2=Array['from'](_0x4ce91c['activeAnnotations'],_0x5b3e95=>_0x5b3e95['innerView'])['filter'](_0x35d240=>this['_viewToController']['has'](_0x35d240)),_0x5edff7=[];for(const _0xdc2627 of _0x3fb9b2){const _0x2232a8=this['_viewToController']['get'](_0xdc2627)['model']['getAllAdjacentSuggestions']();_0x5edff7['push'](..._0x2232a8['reduce']((_0x24f7f1,_0x57a691)=>[..._0x24f7f1,..._0x57a691['getMarkerNames']()],[]));}_0x4940db['activeMarkers']=_0x5edff7;}['_addUIComponentsToFactory'](){const _0x15095c=this['editor'],_0x272e5d=_0x15095c['locale'],_0x1b62da=o(_0x272e5d,'Track\x20changes'),_0x352878=new _0x5ce0c6([{'type':'switchbutton','model':new _0xc19d80({'withText':!0x0,'isToggleable':!0x0,'label':_0x1b62da,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0xc19d80({'withText':!0x0,'label':o(_0x272e5d,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xc19d80({'withText':!0x0,'label':o(_0x272e5d,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0xc19d80({'withText':!0x0,'label':o(_0x272e5d,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xc19d80({'withText':!0x0,'label':o(_0x272e5d,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x15095c['plugins']['has']('TrackChangesPreview')&&_0x352878['addMany']([{'type':'separator'},{'type':'button','model':new _0xc19d80({'withText':!0x0,'label':o(_0x272e5d,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x4b75ef of _0x352878)if(ke(_0x4b75ef)){const _0x467833=_0x15095c['commands']['get'](_0x4b75ef['model']['commandName']);_0x4b75ef['model']['bind']('isOn','isEnabled')['to'](_0x467833,'value','isEnabled');}_0x15095c['ui']['componentFactory']['add']('trackChanges',_0x768fe5=>this['_createToolbarButton'](_0x768fe5,_0x352878,_0x1b62da)),_0x15095c['ui']['componentFactory']['add']('menuBar:trackChanges',_0x5b13d6=>this['_createMenuBarMenu'](_0x5b13d6,_0x352878,_0x1b62da));}['_createToolbarButton'](_0x20ae82,_0x4c70a9,_0x142d39){const _0x5763d0=_0x34a91b(_0x20ae82,_0x536e38),_0x1ba6d0=this['editor']['commands']['get']('trackChanges');_0x5763d0['buttonView']['set']({'tooltip':_0x142d39,'label':_0x142d39,'icon':_0x27e754}),_0x5763d0['buttonView']['bind']('isOn')['to'](_0x1ba6d0,'value'),_0x5763d0['buttonView']['on']('execute',()=>{_0x1ba6d0['execute'](),this['editor']['editing']['view']['focus']();}),_0x4f5156(_0x5763d0,_0x4c70a9,{'role':'menu'});const _0x362345=[];for(const _0x3af071 of _0x4c70a9)ke(_0x3af071)&&_0x362345['push'](this['editor']['commands']['get'](_0x3af071['model']['commandName']));const _0x3ad081=_0x5763d0['buttonView'];return _0x3ad081['actionView']['unbind']('isEnabled'),_0x3ad081['arrowView']['unbind']('isEnabled'),_0x3ad081['actionView']['bind']('isEnabled')['to'](_0x1ba6d0,'isEnabled'),_0x3ad081['arrowView']['bind']('isEnabled')['toMany'](_0x362345,'isEnabled',(..._0xb0d3e8)=>_0xb0d3e8['some'](_0xf0a273=>_0xf0a273)),_0x5763d0['on']('execute',_0x387c4f=>{this['editor']['execute'](_0x387c4f['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x5763d0;}['_createMenuBarMenu'](_0x2bde5b,_0x5080a1,_0x4ccb3d){const _0x25c50c=new _0x28fba2(_0x2bde5b),_0x4db2f2=this['editor']['commands']['get']('trackChanges');_0x25c50c['buttonView']['set']({'label':_0x4ccb3d,'icon':_0x27e754});const _0x7bb57c=new _0x5a56a0(_0x2bde5b);for(const _0x41049d of _0x5080a1){if('separator'==_0x41049d['type']){_0x7bb57c['items']['add'](new _0x39d913(_0x2bde5b));continue;}const _0x3a466f=new _0x3d6e00(_0x2bde5b,_0x25c50c),_0x3fa671=new _0xf0efae(_0x2bde5b),_0x40568c=_0x41049d['model'];_0x3fa671['bind'](...Object['keys'](_0x40568c))['to'](_0x40568c),_0x3fa671['delegate']('execute')['to'](_0x25c50c),_0x3fa671['on']('execute',()=>{this['editor']['execute'](_0x40568c['commandName']),this['editor']['editing']['view']['focus']();}),_0x3a466f['children']['add'](_0x3fa671),_0x7bb57c['items']['add'](_0x3a466f);}return _0x25c50c['bind']('isEnabled')['to'](_0x4db2f2,'isEnabled'),_0x25c50c['panelView']['children']['add'](_0x7bb57c),_0x25c50c;}['_initializeController'](_0xc3ebbe){const _0x23996f=this['editor'],_0x20dbf4=_0x23996f['config'],_0x1df4af=_0x23996f['plugins']['get']('Annotations'),_0x5cc2ae=_0x23996f['plugins']['get']('CommentsRepository'),_0x2bdfcf=_0x23996f['plugins']['get']('EditorAnnotations'),_0x5c4c46=_0x23996f['plugins']['get'](_0x3dac01)['me'],_0x573852=_0x20dbf4['get']('trackChanges')['SuggestionThreadView'],_0x1c4ca5=_0x20dbf4['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x145c84,CommentThreadInputView:_0x436690}=_0x23996f['plugins']['get']('CommentsUI');let _0x579cf9,_0x3d3d3e,_0x1de85d;this['_annotationViews']['has'](_0xc3ebbe['id'])?(_0x3d3d3e=this['_annotationViews']['get'](_0xc3ebbe['id']),_0x579cf9=_0x3d3d3e['mainView']):(_0x579cf9=new _0x573852(_0x23996f['locale'],_0xc3ebbe,_0x5c4c46,{'disableComments':this['_disableComments'],'editorConfig':{..._0x20dbf4['get']('comments.editorConfig'),'licenseKey':_0x20dbf4['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x20dbf4['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x20dbf4['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x20dbf4['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0xbcc4e5(_0x20dbf4['get']('locale'),_0x23996f['locale']),'CommentView':_0x20dbf4['get']('comments')['CommentView'],'CommentsListView':_0x145c84,'CommentThreadInputView':_0x436690,'SuggestionView':_0x1c4ca5}),_0x579cf9['suggestionView']['acceptButton']['on']('execute',()=>{_0x23996f['editing']['view']['focus']();}),_0x579cf9['suggestionView']['discardButton']['on']('execute',()=>{_0x23996f['editing']['view']['focus']();}),_0x3d3d3e=_0x1df4af['createAnnotationView'](this['editor']['locale'],_0x579cf9),_0x3d3d3e['bind']('isDirty')['to'](_0x579cf9,'isDirty'),_0x3d3d3e['bind']('length')['to'](_0x579cf9),_0x3d3d3e['bind']('type')['to'](_0x579cf9,'type',_0x105bde=>'suggestion-'+_0x105bde),_0x579cf9['on']('escape',()=>{_0x1de85d['fire']('escape');}),this['_annotationViews']['set'](_0xc3ebbe['id'],_0x3d3d3e));const _0x2ae4c8=_0x5cc2ae['createCommentThreadController'](_0xc3ebbe['commentThread'],_0x579cf9),_0x5bf451=new pe(_0x23996f,_0xc3ebbe,_0x579cf9,_0x2ae4c8),_0x1979dd=_0xc3ebbe['getAllAdjacentSuggestions']()['filter'](_0x20c689=>_0x20c689['isInContent']);_0x579cf9['descriptionParts']=_0x23996f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x1979dd),this['_suggestionToController']['set'](_0xc3ebbe,_0x5bf451),this['_viewToController']['set'](_0x579cf9,_0x5bf451);const _0x283c8d=()=>{const _0xb43f12=[],_0x3d9274=_0xc3ebbe['getAllAdjacentSuggestions']()['filter'](_0x848711=>_0x848711['isInContent']);for(const _0x1f74c8 of _0x3d9274)_0xb43f12['push'](..._0x1f74c8['getMarkers']());return _0x22b66d(_0x23996f['editing'],_0xb43f12);};_0x1de85d=_0x1df4af['createAnnotation']({'view':_0x3d3d3e,'target':_0x283c8d,'type':()=>'suggestion-'+_0x5bf451['view']['type'],'isVisible':!!_0x283c8d()}),_0x5cc2ae['_bindAnnotationToEditors'](_0x579cf9,_0x1de85d),_0x1df4af['add'](_0x1de85d),_0x2bdfcf['registerAnnotation'](_0x1de85d);}['_destroyController'](_0x33630b){const _0x48acd1=this['editor']['plugins']['get']('CommentsRepository'),_0x261f4f=this['editor']['plugins']['get']('Annotations'),_0x583287=this['_suggestionToController']['get'](_0x33630b),_0x534ff1=_0x583287['view'],_0x4ac78b=_0x261f4f['getByInnerView'](_0x534ff1);_0x48acd1['_unbindEditors'](_0x534ff1),_0x4ac78b&&_0x261f4f['remove'](_0x4ac78b),this['_suggestionToController']['delete'](_0x33630b),this['_viewToController']['delete'](_0x534ff1),_0x583287['destroy']();}['_updateController'](_0x3f5d19){if(!_0x3f5d19['isInContent']||!this['_suggestionToController']['has'](_0x3f5d19))return;const _0x2d68f8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1de2dc=this['_suggestionToController']['get'](_0x3f5d19),_0x5c13e8=_0x3f5d19['getAllAdjacentSuggestions']();_0x1de2dc['view']['descriptionParts']=_0x2d68f8['descriptionFactory']['getDescriptions'](_0x5c13e8);}['destroy'](){for(const _0x7564b2 of this['_suggestionToController']['keys']())this['_destroyController'](_0x7564b2);for(const _0x54bd26 of this['_annotationViews']['values']())_0x54bd26['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x23fa02){return'model'in _0x23fa02;}class TrackChanges extends _0xb2d1b5{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x82fee0){this['editor']['plugins']['get'](d)['adapter']=_0x82fee0;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x1a71f7){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x1a71f7);}['getSuggestions']({skipNotAttached:_0x2d5332=!0x1,toJSON:_0x20a1ff=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x2d5332,'toJSON':_0x20a1ff});}['getSuggestion'](_0x1dce48){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x1dce48);}}const p=['Pagination'];class re extends _0xb2d1b5{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x2746c8=this['editor'];if(_0x2746c8['config']['define']('trackChangesData.editorCreator',_0x3688ca=>{const _0x1fa77a=_0x2746c8['model']['document']['getRootNames']()['reduce']((_0x4bcb7b,_0x2e44b0)=>(_0x4bcb7b[_0x2e44b0]='',_0x4bcb7b),{});return _0x2746c8['constructor']['create'](_0x1fa77a,_0x3688ca);}),'function'!=typeof _0x2746c8['config']['get']('trackChangesData')['editorCreator'])throw new _0x295561('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x4053f6){return P(this['editor'],!0x0,_0x4053f6);}['getDataWithDiscardedSuggestions'](_0x42216b){return P(this['editor'],!0x1,_0x42216b);}}class TrackChangesDataGetter extends _0xb2d1b5{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xca5b6c){function _0x5a3c75(_0x2b4072){return _0x2b4072['map'](_0x2ef79a=>String['fromCharCode'](_0x2ef79a))['join']('');}super(_0xca5b6c),this['result']='end',_0xca5b6c[_0x5a3c75([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5a3c75([0x76,0x69,0x65,0x77])][_0x5a3c75([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5a3c75([0x61,0x75,0x74,0x6f]),_0xca5b6c[_0x5a3c75([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x5a3c75([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5a3c75([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x5a3c75([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x5a3c75([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 Ne(_0x383fa6){return void 0x0!==_0x383fa6['getRootsAttributes'];}async function P(_0x27b05b,_0x138da4,_0x59b6b6){const _0x57f090=_0x4288c4(_0x27b05b,p);_0x57f090['plugins']['push'](d,TrackChangesDataGetter),_0x57f090['rootsAttributes']=Ne(_0x27b05b)?_0x27b05b['getRootsAttributes']():void 0x0;const _0x2fc80a=document['createDocumentFragment'](),_0x51823b=_0x27b05b['config']['get']('trackChangesData')['editorCreator'],_0x4f01e8=await _0x51823b(_0x57f090,()=>function(_0x3fe923){const _0x127ac8=document['createElement']('div');return _0x3fe923['appendChild'](_0x127ac8),_0x127ac8;}(_0x2fc80a));!function(_0x93e0fa,_0x2ced10){const _0x3e8908=_0x93e0fa['model']['document']['getRootNames']()['reduce']((_0x290d22,_0x28d16d)=>(_0x290d22[_0x28d16d]=_0x93e0fa['data']['get']({'rootName':_0x28d16d}),_0x290d22),{}),_0x3d745d=_0x93e0fa['plugins']['get']('Users')['users']['map'](_0x439f64=>({'id':_0x439f64['id'],'name':_0x439f64['name']})),_0x3c3c6a=_0x93e0fa['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x275eae=_0x93e0fa['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4a263f=_0x2ced10['plugins']['get']('Users'),_0xb3e609=_0x2ced10['plugins']['get']('TrackChangesEditing'),_0x1975a8=_0x2ced10['plugins']['get']('CommentsRepository');for(const _0x3d8f88 of _0x1975a8['getCommentThreads']())_0x3d8f88['remove']();for(const _0x4e606f of _0x3d745d)_0x4a263f['getUser'](_0x4e606f['id'])||_0x4a263f['addUser'](_0x4e606f);_0x4a263f['me']||_0x4a263f['useAnonymousUser']();for(const _0xa18462 of _0x275eae)_0x1975a8['addCommentThread'](_0xa18462);for(const _0x3d492f of _0x3c3c6a)_0xb3e609['addSuggestionData'](_0x3d492f);_0x2ced10['data']['set'](_0x3e8908);}(_0x27b05b,_0x4f01e8),_0x4f01e8['execute'](_0x138da4?'acceptAllSuggestions':'discardAllSuggestions');const _0x37a360=Ne(_0x4f01e8)?_0x4f01e8['getFullData'](_0x59b6b6):_0x4f01e8['data']['get'](_0x59b6b6);return await _0x4f01e8['destroy'](),_0x37a360;}class Me extends _0x573a46{['options'];constructor(_0x107a02,_0x392b72){super(_0x107a02),this['options']=_0x392b72,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'](_0x21f53b,_0x18d570){if(!this['element'])return;const _0x1295d3=[];for(const [_0x120826,_0xe9d5c6]of _0x21f53b){const _0x32ad11=document['createElement']('div');_0x32ad11['setAttribute']('data-ck-root-name',_0x120826),_0x32ad11['className']=_0xe9d5c6['classes']+'\x20ck-track-changes-preview__root-container',_0x32ad11['innerHTML']=_0xe9d5c6['content'],_0x1295d3['push'](_0x32ad11);}_0x18d570(this['element'],_0x1295d3),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x572003{constructor(_0x1bf712){super(_0x1bf712),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x3b70da=this['editor'],_0x339e14=_0x3b70da['locale'],_0x1d7252=_0x3b70da['plugins']['get']('Dialog');let _0x52b9d7;const _0xf4aea7=function(_0x58be44){const _0x2af387={};if('editables'in _0x58be44['ui']['view']){for(const [_0x27ff69,_0x178bc1]of Object['entries'](_0x58be44['ui']['view']['editables']))_0x2af387[_0x27ff69]=_0x178bc1['element'];}else _0x2af387[_0x58be44['model']['document']['getRootNames']()[0x0]]=_0x58be44['ui']['view']['editable']['element'];return _0x2af387;}(_0x3b70da),_0xc03e67=function(_0x10954d){let _0x3d1854=0x0;for(const _0x4655bb of Object['values'](_0x10954d))_0x3d1854=Math['max'](_0x3d1854,_0x4655bb['getBoundingClientRect']()['width']);let _0x84ea8=0x0;for(const _0x150738 of Object['values'](_0x10954d))_0x84ea8+=_0x150738['getBoundingClientRect']()['height'];const _0x572e90=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x404ca5=Math['min'](_0x84ea8,_0x572e90);return{'width':_0x3d1854,'height':_0x404ca5};}(_0xf4aea7);_0x1d7252['show']({'id':'finalContentPreview','title':o(_0x339e14,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x339e14,{'dialogRects':_0xc03e67}),'onHide':()=>{_0x52b9d7['detachFromDom']();},'onShow':()=>{_0x3b70da['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x2a5912=>{const _0x16dd79=this['_standarizeRootsData'](_0x2a5912,_0x3b70da,_0xf4aea7);_0x1d7252['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x16dd79,_0x3b70da['config']['get']('trackChanges.preview.renderFunction'));}),_0x52b9d7=new _0x2c05ec(_0x339e14,[_0x1d7252['view']]),_0x52b9d7['attachToDom'](),_0x52b9d7['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x3b70da['once']('destroy',()=>{_0x52b9d7['detachFromDom']();});const _0x1741df=_0x1d7252['view']['headerView']['class'];_0x1d7252['view']['headerView']['class']=_0x1741df?_0x1741df+'\x20ck-reset_all':'ck-reset_all',_0x1d7252['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x1d7252['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x13af92=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x22360=_0x13af92['previewMode'],_0x2777a8={};if('$labels'===_0x22360){for(const _0x16188f of _0x13af92['getMergeFieldsIds']())_0x2777a8[_0x16188f]=_0x13af92['getLabel'](_0x16188f)||_0x16188f;}else{const _0xf14ecb='$defaultValues'===_0x22360?_0x13af92['getDefaultValues']():_0x13af92['getDataSetValues'](_0x22360,!0x0);for(const _0x38c9bf of Object['entries'](_0xf14ecb)){const [_0x3d26b2,_0x1dfa48]=_0x38c9bf;_0x2777a8[_0x3d26b2]=null!==_0x1dfa48?_0x1dfa48:_0x13af92['getLabel'](_0x3d26b2)||_0x3d26b2;}}return{'mergeFieldsData':_0x2777a8};}['_standarizeRootsData'](_0x2ff6d1,_0x1ec2a6,_0x5e1ede){let _0x1048c2;if('string'==typeof _0x2ff6d1){const _0x1b40bf=_0x1ec2a6['model']['document']['getRootNames']()[0x0];_0x1048c2={[_0x1b40bf]:_0x2ff6d1};}else _0x1048c2=_0x2ff6d1;const _0x1f6bb2=this['_fixMediaEmbeds'](_0x1048c2,_0x1ec2a6),_0x107e65=function(_0x31fadf,_0x59c921){for(const [_0x416c64,_0x1a82a5]of _0x31fadf)_0x1a82a5['classes']=_0x59c921[_0x416c64]['classList']['value']['replace']('ck-focused','');return _0x31fadf;}(this['_sortRoots'](_0x1ec2a6)['reduce']((_0x3a3589,_0xa8ce48)=>(_0x3a3589['push']([_0xa8ce48,{'content':_0x1f6bb2[_0xa8ce48],'classes':''}]),_0x3a3589),[]),_0x5e1ede);return _0x107e65;}['_fixMediaEmbeds'](_0x5ddf59,_0x2ba273){if(!_0x2ba273['plugins']['has']('MediaEmbedEditing'))return _0x5ddf59;const _0x5aa7d0=_0x2ba273['plugins']['get']('MediaEmbedEditing');for(const [_0x272f28,_0x3f2fa9]of Object['entries'](_0x5ddf59)){const _0x101ec3=document['createElement']('div');_0x101ec3['innerHTML']=_0x3f2fa9,(_0x101ec3['querySelectorAll']('figure.media')['forEach'](_0x2b54c4=>{const _0x1bf20b=_0x2b54c4['querySelector']('oembed');if(_0x1bf20b){const _0x2159f7=_0x1bf20b['getAttribute']('url');if(_0x2159f7){const _0x173ed2=_0x5aa7d0['registry']['getMediaViewElement'](new _0x327f92(_0x2ba273['editing']['view']['document']),_0x2159f7,{'elementName':'','renderForEditingView':!0x0}),_0x491f79=document['createElement']('div');_0x491f79['classList']['add']('ck-media__wrapper'),_0x173ed2['render'](_0x491f79,_0x2ba273['editing']['view']['domConverter']),_0x1bf20b['replaceWith'](_0x491f79);}}}),_0x5ddf59[_0x272f28]=_0x101ec3['innerHTML']);}return _0x5ddf59;}['_sortRoots'](_0x3a249c){if(!function(_0x5d51a4){return void 0x0!==_0x5d51a4['getRootsAttributes'];}(_0x3a249c))return _0x3a249c['model']['document']['getRootNames']();const _0xdbea9e=[],_0x3f1032=new Map();for(const _0x64a7df of _0x3a249c['model']['document']['getRootNames']()){const _0x3129d8=_0x3a249c['editing']['view']['getDomRoot'](_0x64a7df)['getClientRects']()['item'](0x0);_0xdbea9e['push'](_0x64a7df),_0x3f1032['set'](_0x64a7df,_0x3129d8);}return _0xdbea9e['sort']((_0x188359,_0x556fad)=>{const _0xbe981=_0x3f1032['get'](_0x188359),_0x47af7f=_0x3f1032['get'](_0x556fad);return _0xbe981['y']-_0x47af7f['y']||_0xbe981['x']-_0x47af7f['x'];}),_0xdbea9e;}}class TrackChangesPreview extends _0xb2d1b5{static get['requires'](){return[re,_0x419992];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2ee08e){super(_0x2ee08e),_0x2ee08e['commands']['add']('previewFinalContent',new te(this['editor'])),_0x2ee08e['config']['define']('trackChanges.preview.renderFunction',(_0x1c3edb,_0x326cd2)=>{for(const _0x466131 of _0x326cd2)_0x1c3edb['appendChild'](_0x466131);});}}export{O as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,x as DiscardSuggestionCommand,M as ExecuteOnAllSuggestionsCommand,R as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,E as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,TrackChanges,B as TrackChangesCommand,re as TrackChangesData,TrackChangesDataGetter,d as TrackChangesEditing,TrackChangesPreview,u as TrackChangesUI};