@ckeditor/ckeditor5-track-changes 47.6.0-alpha.6 → 47.6.0-alpha.8

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 +26 -26
  150. package/src/commands/acceptsuggestioncommand.js +1 -1
  151. package/src/commands/discardsuggestioncommand.js +1 -1
  152. package/src/commands/executeonallsuggestionscommand.js +1 -1
  153. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  154. package/src/commands/previewfinalcontentcommand.js +1 -1
  155. package/src/commands/trackchangescommand.js +1 -1
  156. package/src/index.js +1 -1
  157. package/src/integrations/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 _0x235a9e,Plugin as _0x49ec79,PendingActions as _0x1ade08}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x4d7fe5,ObservableMixin as _0x2617d7,uid as _0xd8d5dd,priorities as _0x48eedd,insertToPriorityArray as _0x568751,logWarning as _0x588188,getEnvKeystrokeText as _0x626735,FocusTracker as _0x44fa65,KeystrokeHandler as _0x31303a,Collection as _0x4d1935}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x5cc7dd,IconCancel as _0x426f8f,IconTrackChanges as _0x5988e2}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x3fe406,View as _0x10e6c6,ViewCollection as _0x55b938,FocusCycler as _0x1b1d17,UIModel as _0x1b387e,createDropdown as _0x148aa8,SplitButtonView as _0x3cccab,addListToDropdown as _0x2aa164,MenuBarMenuView as _0x5dfe8c,MenuBarMenuListView as _0x486ec5,ListSeparatorView as _0x284e40,MenuBarMenuListItemView as _0x45bc3f,MenuBarMenuListItemButtonView as _0x2df99b,BodyCollection as _0x399927,Dialog as _0x598335}from'@ckeditor/ckeditor5-ui/dist/index.js';import{SuggestionsConversion as _0xd88bfa,Users as _0x567a7d,DocumentCompare as _0x4edd94,fixElementSuggestionRange as _0x439149,hashObject as _0x1a4a20,splitSuggestionMarkerName as _0xdb9692,surroundingMarkersDetector as _0x279474,FOCUS_ANNOTATION_KEYSTROKE as _0x1c9bfb,AriaDescriptionView as _0x2bd3e4,setupThreadKeyboardNavigation as _0x308477,trimHtml as _0x4aaff8,UserView as _0x39d4f5,LateFocusButtonView as _0x569119,getDateTimeFormatter as _0x358dc2,getAllMarkersDomElementsSorted as _0x38fcc9,sanitizeEditorConfig as _0x45f167}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x162839,ModelLiveRange as _0x3090d1,ModelLivePosition as _0x3238ed,ViewDowncastWriter as _0x347d8c}from'@ckeditor/ckeditor5-engine/dist/index.js';import{cloneDeep as _0x406812,set as _0x7ffe28,isEqual as _0x5bbc65,unset as _0x321c17,omit as Jt}from'es-toolkit/compat';import{Delete as _0x3d2526,Input as _0x323f3e}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x326826}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0xbc75e3}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x235a9e{['_enabledCommands'];constructor(_0x32981d,_0x7e6230){super(_0x32981d),this['_enabledCommands']=_0x7e6230,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 _0x1e5f43 of this['editor']['commands']['commands']())_0x1e5f43['affectsData']&&!this['_enabledCommands']['has'](_0x1e5f43)&&_0x1e5f43['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x91ef32 of this['editor']['commands']['commands']())_0x91ef32['affectsData']&&!this['_enabledCommands']['has'](_0x91ef32)&&_0x91ef32['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x235a9e{['_suggestions'];constructor(_0x3aef27,_0x1945e3){super(_0x3aef27),this['_suggestions']=_0x1945e3,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x51e713){const _0x4e1879=this['_suggestions']['get'](_0x51e713);if(!_0x4e1879)throw new _0x4d7fe5('track-changes-accept-suggestion-not-found',this);const _0x367d36=_0x4e1879['getRanges']();this['editor']['model']['canEditAt'](_0x367d36)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x4e1879);}}class x extends _0x235a9e{['_suggestions'];constructor(_0x4572a2,_0xee0af0){super(_0x4572a2),this['_suggestions']=_0xee0af0,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x47d4f0){const _0x47f062=this['_suggestions']['get'](_0x47d4f0);if(!_0x47f062)throw new _0x4d7fe5('track-changes-discard-suggestion-not-found',this);const _0x24e83f=_0x47f062['getRanges']();this['editor']['model']['canEditAt'](_0x24e83f)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x47f062);}}function ls(_0x38d9a3,_0x3e5de7){let _0xa059d4='';return _0xa059d4+=_0x38d9a3['split']('*')['map']((_0x5b9024,_0x42f7ee)=>_0x42f7ee%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+cn(_0x5b9024)+'</span>':cn(_0x5b9024))['join'](''),_0x3e5de7&&(_0xa059d4+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x3e5de7['value']+'\x22\x20title=\x22'+_0x3e5de7['title']+'\x22></span>'),_0xa059d4;}function cn(_0x15a34f){const _0x42d7c2=document['createElement']('span');return _0x42d7c2['innerText']=_0x15a34f,_0x42d7c2['innerHTML'];}function ts(_0x2d5e3e){return _0x2d5e3e['sort']((_0xe2156c,_0x24fc58)=>'attribute'===_0xe2156c['type']&&'attribute'!==_0x24fc58['type']?-0x1:'attribute'!==_0xe2156c['type']&&'attribute'===_0x24fc58['type']?0x1:'deletion'==_0xe2156c['type']&&'deletion'!=_0x24fc58['type']?-0x1:'deletion'!=_0xe2156c['type']&&'deletion'==_0x24fc58['type']?0x1:0x0);}function to(_0x2a7d90,_0x4d62a8){let _0x1631f7,_0x320ddc=0x0;const _0x2e711d=[],_0x1a3c59=_0x4d62a8['schema'];for(;_0x320ddc<_0x2a7d90['length'];){const _0x48b312=_0x2a7d90[_0x320ddc],_0x556644=_0x2a7d90[_0x320ddc+0x1];_0x1631f7||(_0x1631f7=_0x4d62a8['createPositionBefore'](_0x48b312)),un(_0x4d62a8,_0x48b312,_0x556644)||(_0x2e711d['push'](_0x4d62a8['createRange'](_0x1631f7,_0x1a3c59['isObject'](_0x48b312)?_0x4d62a8['createPositionAfter'](_0x48b312):_0x4d62a8['createPositionAt'](_0x48b312,'end'))),_0x1631f7=null),_0x320ddc++;}return _0x2e711d;}function un(_0x5506c4,_0x5cb1f2,_0x166cbb){if(!_0x166cbb)return!0x1;const _0x11550b=_0x5506c4['createPositionAfter'](_0x5cb1f2),_0x271e63=_0x5506c4['createPositionBefore'](_0x166cbb);return _0x11550b['isTouching'](_0x271e63);}function rs(_0x38e7af,_0x410a74,_0x2785d8){for(;_0x2785d8['length'];){const _0x1882b6=_0x2785d8['splice'](0x0,0x64);_0x38e7af['change'](()=>{for(const _0x344ead of _0x1882b6)_0x344ead['isInContent']&&_0x410a74['execute'](_0x344ead['id']);});}}class M extends _0x235a9e{['_command'];['_suggestions'];constructor(_0xc9c4b6,_0x25ec50,_0x1fefa2){super(_0xc9c4b6),this['_command']=_0x25ec50,this['_suggestions']=_0x1fefa2,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1e1336=Array['from'](this['_suggestions']['values']())['some'](_0x484212=>_0x484212['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x1e1336;}['execute'](){const _0x12441f=ts(Array['from'](this['_suggestions']['values']()));for(const _0x7722f3 of _0x12441f){const _0x215147=_0x7722f3['getRanges']();if(!this['editor']['model']['canEditAt'](_0x215147))return;}rs(this['editor']['model'],this['_command'],_0x12441f);}}class R extends _0x235a9e{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0xcbec87,_0x2be6b7,_0x44eee9){super(_0xcbec87),this['_command']=_0x2be6b7,this['_suggestions']=_0x44eee9,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2af26f=this['editor']['model']['document']['selection'],_0x657822=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x4f7347,_0x360666){const _0x1bebd8=Array['from'](_0x4f7347['getRanges']()),_0x27a1c4=new Set();for(const _0x5ab0dc of _0x360666)if(_0x5ab0dc['isInContent']){for(const _0x586098 of _0x1bebd8)for(const _0x11e458 of _0x5ab0dc['getRanges']())(_0x586098['isIntersecting'](_0x11e458)||_0x4f7347['isCollapsed']&&!_0x5ab0dc['isMultiRange']&&_0x5ab0dc['next']&&_0x11e458['end']['isTouching'](_0x586098['start']))&&_0x27a1c4['add'](_0x5ab0dc);}return _0x27a1c4;}(_0x2af26f,_0x657822),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x5bdd4d=ts(Array['from'](this['_selectedSuggestions']));for(const _0x59afa1 of _0x5bdd4d){const _0x3d8466=_0x59afa1['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3d8466))return;}rs(this['editor']['model'],this['_command'],_0x5bdd4d);}}class T extends/* #__PURE__ -- @preserve */
24
- _0x2617d7(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x3edf29,_0x2e7ac1){super(),this['id']=_0x2e7ac1['id'],this['type']=_0x2e7ac1['type'],this['subType']=_0x2e7ac1['subType']||null,this['author']=_0x2e7ac1['author'],this['creator']=_0x2e7ac1['creator']||_0x2e7ac1['author'],this['isExternal']=Boolean(_0x2e7ac1['attributes']&&_0x2e7ac1['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x2e7ac1['originalSuggestionId']||null,this['_model']=_0x3edf29,this['_onAccept']=_0x2e7ac1['onAccept'],this['_onDiscard']=_0x2e7ac1['onDiscard'],this['_onAttributesChange']=_0x2e7ac1['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x2e7ac1['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 _0x53571e=this;for(;_0x53571e['previous'];)_0x53571e=_0x53571e['previous'];return _0x53571e;}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'](_0x2abe39){this['_markerNames']['add'](_0x2abe39);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x46cf5c=>this['_model']['markers']['get'](_0x46cf5c))['filter'](_0x5130f0=>_0x5130f0);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x12553b=>{for(const _0x28e0d9 of this['getMarkers']())_0x12553b['removeMarker'](_0x28e0d9);}),this['_markerNames']['clear']();}['removeMarker'](_0x567bfe){this['_model']['change'](_0x3f4f13=>{_0x3f4f13['removeMarker'](_0x567bfe);}),this['_markerNames']['delete'](_0x567bfe);}['addRange'](_0x58e527){const _0x120d7f='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x120d7f),this['_model']['change'](_0x34d9fd=>{_0x34d9fd['addMarker'](_0x120d7f,{'range':_0x58e527,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x4a44ce){for(const _0x30002e of this['getRanges']())if(_0x30002e['isIntersecting'](_0x4a44ce))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4b2f1c=>_0x4b2f1c['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x253bef,_0xe9e6f0)=>[..._0x253bef,..._0xe9e6f0['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x5dc42f=this['getRanges']();if(0x1!=_0x5dc42f['length'])return null;const _0x3935e4=_0x5dc42f[0x0],_0x5f5107=_0x3935e4['start']['nodeAfter'],_0x3d4121=_0x3935e4['end']['nodeBefore'];return _0x5f5107 instanceof _0x162839?_0x5f5107!=_0x3d4121?null:_0x5f5107: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 _0x2d9e30=[];let _0x564ac9=this['head'];for(;_0x564ac9;)_0x2d9e30['push'](_0x564ac9),_0x564ac9=_0x564ac9['next'];return _0x2d9e30;}['setAttribute'](_0x970a31,_0x1ec9de){const _0x5bcbeb=_0x406812(this['attributes']);_0x7ffe28(_0x5bcbeb,_0x970a31,_0x1ec9de),_0x5bbc65(_0x5bcbeb,this['attributes'])||(this['attributes']=_0x5bcbeb,this['_onAttributesChange'](_0x5bcbeb));}['removeAttribute'](_0x58a3fa){const _0x55e168=_0x406812(this['attributes']);_0x321c17(_0x55e168,_0x58a3fa),_0x5bbc65(_0x55e168,this['attributes'])||(this['attributes']=_0x55e168,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 _0xd8d5dd()['substr'](0x1,0x5);}}function o(_0x641a00,_0x5729d8,_0x5ccb01){const _0x3dc56e=_0x641a00['t'],t=_0x641a00['t'];switch(_0x5729d8){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',_0x5ccb01);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5ccb01);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5ccb01);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5ccb01);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5ccb01);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',_0x5ccb01);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5ccb01);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',_0x5ccb01);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5ccb01);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5ccb01);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5ccb01);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5ccb01);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5ccb01);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x5ccb01);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5ccb01);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5ccb01);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5ccb01);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5ccb01);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5ccb01);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5ccb01);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5ccb01);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5ccb01);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5ccb01);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5ccb01);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x5ccb01);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'},_0x5ccb01);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x5ccb01);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x5ccb01);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5ccb01);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5ccb01);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5ccb01);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5ccb01);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5ccb01);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'},_0x5ccb01);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5ccb01);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5ccb01);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5ccb01);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5ccb01);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'},_0x5ccb01);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5ccb01);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'},_0x5ccb01);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'},_0x5ccb01);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5ccb01);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'},_0x5ccb01);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5ccb01);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'},_0x5ccb01);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5ccb01);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x5ccb01);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x5ccb01);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x5ccb01);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5ccb01);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'},_0x5ccb01);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x5ccb01);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 _0x3dc56e({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x5ccb01);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x3dc56e({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x5ccb01);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x5ccb01);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'},_0x5ccb01);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'},_0x5ccb01);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'},_0x5ccb01);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x5729d8;}}class E{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x1df0d8,_0x5b0175){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x1df0d8,this['_locale']=_0x5b0175;}['getDescriptions'](_0xdc113b){const _0x4f5fd8=[],_0x260187=new Set(),_0x36d80f=new Set();for(let _0x457a1b=0x0;_0x457a1b<_0xdc113b['length'];_0x457a1b++){const _0xb6acf7=_0xdc113b[_0x457a1b];if(!_0xb6acf7['isInContent'])continue;const _0x341909=this['_handleCustomCallbackDescription'](_0xb6acf7);if(_0x341909){if(null!=_0xb6acf7['subType']){if(_0x260187['has'](_0xb6acf7['subType']))continue;_0x260187['add'](_0xb6acf7['subType']);}_0x4f5fd8['push'](_0x341909);}else{if('attribute'==_0xb6acf7['type']){const _0x4161d9=_0xb6acf7['data']['key'];if(_0x36d80f['has'](_0x4161d9))continue;_0x36d80f['add'](_0xb6acf7['data']['key']),_0x4161d9==m?this['_handleRenameSuggestionDescription'](_0x4f5fd8,_0xb6acf7):this['_handleAttributeSuggestionDescription'](_0x4f5fd8,_0xb6acf7);continue;}'insertion'!=_0xb6acf7['type']&&'deletion'!=_0xb6acf7['type']||this['_handleInsertRemoveSuggestionDescription'](_0x4f5fd8,_0xb6acf7,_0xdc113b[_0x457a1b+0x1]);}}return this['_resolveDescriptionItems'](_0x4f5fd8);}['registerDescriptionCallback'](_0x3a4749){this['_customCallbacks']['push'](_0x3a4749);}['registerElementLabel'](_0x30edf0,_0x124c30,_0x504ece=_0x48eedd['normal']){'function'==typeof _0x30edf0?_0x568751(this['_itemLabelsCallbacks'],{'matchingCallback':_0x30edf0,'label':_0x124c30,'priority':_0x504ece}):this['_itemLabels']['set'](_0x30edf0,_0x124c30);}['registerAttributeLabel'](_0x792c2e,_0x111b09){this['_attributeLabels']['set'](_0x792c2e,_0x111b09);}['getItemLabel'](_0x5f75bf,_0x804c6d=0x1){let _0x381fc6;for(const _0x1e1ebf of this['_itemLabelsCallbacks'])if(_0x1e1ebf['matchingCallback'](_0x5f75bf)){_0x381fc6=_0x1e1ebf['label'];break;}return _0x381fc6||(_0x381fc6=this['_itemLabels']['get'](_0x5f75bf['name'])),_0x381fc6?_0x381fc6(_0x804c6d):0x1!==_0x804c6d?_0x804c6d+'\x20'+_0x5f75bf['name']+'s':''+_0x5f75bf['name'];}['_addDescriptionItems'](_0x1957bb,_0x45a2d6){const _0x36c088=_0x45a2d6['getFirstRange']()['getWalker'](),_0xb02786='insertion'==_0x45a2d6['type']?'add':'remove';for(const _0x68b1d4 of _0x36c088){const _0x3f9857=_0x68b1d4['item'],_0x1c00a0=_0x1957bb[_0x1957bb['length']-0x1];if(_0x3f9857['is']('$textProxy'))_0x1c00a0&&_0x1c00a0['type']['indexOf']('Container')>-0x1&&_0x1957bb['pop'](),_0x1c00a0&&'text'==_0x1c00a0['type']?_0x1c00a0[_0xb02786]+=_0x3f9857['data']:_0x1957bb['push']({'type':'text','add':'add'==_0xb02786?_0x3f9857['data']:'','remove':'remove'==_0xb02786?_0x3f9857['data']:''});else{if(this['_schema']['isObject'](_0x3f9857)){const _0x4ac23e=_0x3f9857;if(_0x1c00a0&&_0x1c00a0['type']['indexOf']('Container')>-0x1&&_0x1957bb['pop'](),'elementEnd'==_0x68b1d4['type'])continue;_0x1c00a0&&_0x1c00a0['type']==_0xb02786+'Object'&&_0x1c00a0['element']['name']==_0x4ac23e['name']?_0x1c00a0['quantity']++:_0x1957bb['push']({'type':_0xb02786+'Object','element':_0x4ac23e,'quantity':0x1}),_0x36c088['skip'](_0x2a4798=>!('elementEnd'==_0x2a4798['type']&&_0x2a4798['item']==_0x3f9857));}else{if(this['_schema']['checkChild'](_0x3f9857,'$text')||_0x3f9857['is']('element','softBreak')){const _0x1b60bb=_0x3f9857;if('add'==_0xb02786&&'elementStart'==_0x68b1d4['type']||'remove'==_0xb02786&&'elementEnd'==_0x68b1d4['type'])continue;if(_0x1c00a0&&-0x1==_0x1c00a0['type']['indexOf']('Container')){'text'==_0x1c00a0['type']&&(_0x1c00a0[_0xb02786]+='\x0a');continue;}let _0x158029;if(_0x158029='add'==_0xb02786?_0x1b60bb['nextSibling']&&!this['_schema']['isObject'](_0x1b60bb['nextSibling'])?_0x1b60bb['nextSibling']:null:_0x1b60bb['previousSibling']&&!this['_schema']['isObject'](_0x1b60bb['previousSibling'])?_0x1b60bb['previousSibling']:null,_0x1b60bb['isEmpty']||_0x158029&&_0x158029['isEmpty']){const _0x44253e=_0x158029&&_0x158029['isEmpty']?_0x158029:_0x1b60bb;_0x1c00a0&&_0x1c00a0['type']==_0xb02786+'EmptyContainer'&&_0x1c00a0['element']['name']==_0x44253e['name']?_0x1c00a0['quantity']++:_0x1957bb['push']({'type':_0xb02786+'EmptyContainer','element':_0x44253e,'quantity':0x1});}else _0x1957bb['push']({'type':_0xb02786+'Container','element':_0x1b60bb});}}}}}['_resolveDescriptionItems'](_0x329db3){const _0x5e75f1=this['_locale'],_0x4b0dac=[],_0x3409cc=[],_0x55467f=[];for(const _0x130c69 of _0x329db3)switch(_0x130c69['type']){case'text':if(_0x130c69['add']=_0x130c69['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x130c69['remove']=_0x130c69['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x130c69['add']&&''!=_0x130c69['remove']){_0x4b0dac['push']({'type':'replace','content':o(_0x5e75f1,'REPLACE_TEXT',['\x22'+_0x130c69['remove']+'\x22','\x22'+_0x130c69['add']+'\x22'])});continue;}if(null!=_0x130c69['add']['match'](/^ +$/)){_0x4b0dac['push']({'type':'insertion','content':o(_0x5e75f1,'*Insert:*\x20%0',o(_0x5e75f1,'ELEMENT_SPACE',_0x130c69['add']['length']))});continue;}if(null!=_0x130c69['remove']['match'](/^ +$/)){_0x4b0dac['push']({'type':'deletion','content':o(_0x5e75f1,'*Remove:*\x20%0',o(_0x5e75f1,'ELEMENT_SPACE',_0x130c69['remove']['length']))});continue;}if(''!=_0x130c69['add']){_0x4b0dac['push']({'type':'insertion','content':o(_0x5e75f1,'*Insert:*\x20%0','\x22'+_0x130c69['add']+'\x22')});continue;}_0x4b0dac['push']({'type':'deletion','content':o(_0x5e75f1,'*Remove:*\x20%0','\x22'+_0x130c69['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4b0dac['push']({'type':'insertion','content':o(_0x5e75f1,'*Insert:*\x20%0',this['getItemLabel'](_0x130c69['element'],_0x130c69['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4b0dac['push']({'type':'deletion','content':o(_0x5e75f1,'*Remove:*\x20%0',this['getItemLabel'](_0x130c69['element'],_0x130c69['quantity']))});continue;case'addContainer':_0x4b0dac['push']({'type':'insertion','content':o(_0x5e75f1,'*Split:*\x20%0',this['getItemLabel'](_0x130c69['element'],_0x130c69['quantity']))});continue;case'removeContainer':_0x4b0dac['push']({'type':'deletion','content':o(_0x5e75f1,'*Merge:*\x20%0',this['getItemLabel'](_0x130c69['element'],_0x130c69['quantity']))});continue;case'addFormat':_0x3409cc['push'](_0x130c69['key']);continue;case'removeFormat':_0x55467f['push'](_0x130c69['key']);continue;default:_0x4b0dac['push'](_0x130c69);}if(_0x3409cc['length']){const _0x13dc8b=_0x3409cc['map'](_0x47cb9d=>this['_attributeLabels']['has'](_0x47cb9d)?this['_attributeLabels']['get'](_0x47cb9d):_0x47cb9d)['join'](',\x20');_0x4b0dac['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x13dc8b)});}if(_0x55467f['length']){const _0x5a9445=_0x55467f['map'](_0x54b272=>this['_attributeLabels']['has'](_0x54b272)?this['_attributeLabels']['get'](_0x54b272):_0x54b272)['join'](',\x20');_0x4b0dac['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x5a9445)});}return _0x4b0dac;}['_handleCustomCallbackDescription'](_0x32d735){for(const _0x510d16 of this['_customCallbacks']){const _0x106b19=_0x510d16(_0x32d735);if(_0x106b19&&'type'in _0x106b19)return _0x106b19;}}['_handleAttributeSuggestionDescription'](_0xfce6e2,_0x1163b7){const _0x343d30=_0x1163b7['data'],_0x231f67=void 0x0===_0x343d30['newValue']?'removeFormat':'addFormat';_0xfce6e2['push']({'type':_0x231f67,'key':_0x343d30['key']});}['_handleRenameSuggestionDescription'](_0x48784b,_0x23c0a0){_0x48784b['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x23c0a0['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x25dba1,_0x29b328,_0x4bb84a){if(this['_addDescriptionItems'](_0x25dba1,_0x29b328),_0x4bb84a&&_0x4bb84a['getFirstRange']()&&!_0x29b328['getFirstRange']()['end']['isEqual'](_0x4bb84a['getFirstRange']()['start'])){const _0x4cb221=_0x25dba1[_0x25dba1['length']-0x1],_0x3a85c3='insertion'==_0x29b328['type']?'add':'remove';_0x4cb221&&'text'==_0x4cb221['type']&&(_0x4cb221[_0x3a85c3]+='\x0a');}}}class U extends _0x49ec79{['afterInit'](){const _0x6103=this['editor'],_0x2e6c47=_0x6103['plugins']['get']('TrackChangesEditing');_0x6103['commands']['get']('showAIAssistant')&&_0x2e6c47['enableCommand']('showAIAssistant');}}class V extends _0x49ec79{['afterInit'](){const _0xfc8700=this['editor'],_0x437ae6=_0xfc8700['plugins']['get']('TrackChangesEditing');_0xfc8700['commands']['get']('toggleAi')&&_0x437ae6['enableCommand']('toggleAi');}}class F extends _0x49ec79{['afterInit'](){const _0x14598a=this['editor'],_0x975063=_0x14598a['plugins']['get']('TrackChangesEditing');_0x14598a['commands']['get']('aiQuickAction')&&_0x975063['enableCommand']('aiQuickAction');}}class G extends _0x49ec79{['afterInit'](){const _0x22c2b9=this['editor'],_0x45b703=_0x22c2b9['locale'];if(!_0x22c2b9['plugins']['has']('AlignmentEditing'))return;const _0x2ef4bb=_0x22c2b9['plugins']['get']('TrackChangesEditing');_0x2ef4bb['enableDefaultAttributesIntegration']('alignment'),_0x2ef4bb['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x45b703,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x174c72=this['editor'],_0x5c258d=_0x174c72['locale'];_0x174c72['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x44e1f9=>{if('formatBlock'!=_0x44e1f9['type'])return;const {data:_0x136e04}=_0x44e1f9;if(_0x136e04&&'alignment'==_0x136e04['commandName']){const _0x5227bd=_0x136e04['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x5c258d,'*Format:*\x20%0',function(_0x27b82b){switch(_0x27b82b){case'left':return o(_0x5c258d,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x5c258d,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x5c258d,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x5c258d,'FORMAT_JUSTIFY_TEXT');}}(_0x5227bd))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class L extends _0x49ec79{['afterInit'](){const _0x1b8ec8=this['editor'],_0x2db013=_0x1b8ec8['plugins']['get']('TrackChangesEditing'),_0x44272a=_0x1b8ec8['locale'];for(const _0x9b65e7 of ti){if(!_0x1b8ec8['plugins']['has'](_0x9b65e7))continue;const _0x508f94=_0x9b65e7['slice'](0x0,-0x7)['toLowerCase'](),_0x2cb94b='FORMAT_'+_0x508f94['toUpperCase']();_0x2db013['enableDefaultAttributesIntegration'](_0x508f94),_0x2db013['descriptionFactory']['registerAttributeLabel'](_0x508f94,o(_0x44272a,_0x2cb94b));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x30b007=this['editor'],_0x50182f=_0x30b007['locale'],_0x34a0a2=_0x30b007['plugins']['get']('TrackChangesEditing');function _0x4059b7(_0x1520c2,_0x359361){_0x34a0a2['descriptionFactory']['registerDescriptionCallback'](_0x57a946=>{if('formatInline'!=_0x57a946['type'])return;const {data:_0x4f01be}=_0x57a946;return _0x4f01be&&_0x4f01be['commandName']===_0x1520c2?_0x4f01be['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x50182f,'*Format:*\x20%0',_0x359361)}:{'type':'format','content':o(_0x50182f,'*Remove\x20format:*\x20%0',_0x359361)}:void 0x0;});}_0x4059b7('bold',o(_0x50182f,'FORMAT_BOLD')),_0x4059b7('italic',o(_0x50182f,'FORMAT_ITALIC')),_0x4059b7('underline',o(_0x50182f,'FORMAT_UNDERLINE')),_0x4059b7('code',o(_0x50182f,'FORMAT_CODE')),_0x4059b7('strikethrough',o(_0x50182f,'FORMAT_STRIKETHROUGH')),_0x4059b7('subscript',o(_0x50182f,'FORMAT_SUBSCRIPT')),_0x4059b7('superscript',o(_0x50182f,'FORMAT_SUPERSCRIPT'));}}class J extends _0x49ec79{['afterInit'](){const _0xa6bae=this['editor'],_0x3a6348=_0xa6bae['locale'];if(!_0xa6bae['plugins']['has']('BlockQuoteEditing'))return;const _0x33e655=_0xa6bae['plugins']['get']('TrackChangesEditing'),_0x5a1e78=this['editor']['commands']['get']('blockQuote');_0x33e655['enableCommand']('blockQuote',(_0x4792b6,_0x287233={})=>{const _0x49ef29=this['editor']['model']['document']['selection'],_0x399d34=_0x287233&&void 0x0!==_0x287233['forceValue']?_0x287233['forceValue']:!_0x5a1e78['value'];let _0xf6aab6=[];if(_0x399d34){const _0x4971df=Array['from'](_0x49ef29['getSelectedBlocks']())['filter'](_0x419e27=>oo(_0x419e27)||function(_0x562308,_0x35d4ca){const _0x237ccd=_0x35d4ca['checkChild'](_0x562308['parent'],'blockQuote'),_0x543062=_0x35d4ca['checkChild'](['$root','blockQuote'],_0x562308);return _0x237ccd&&_0x543062;}(_0x419e27,this['editor']['model']['schema']));_0xf6aab6=to(_0x4971df,_0xa6bae['model']);}else{const _0xb73d11=Array['from'](_0x49ef29['getSelectedBlocks']())['filter'](_0xd65ce3=>oo(_0xd65ce3));_0xf6aab6=to(_0xb73d11,_0xa6bae['model']);}_0xa6bae['model']['change'](()=>{for(const _0x4e0730 of _0xf6aab6)_0x33e655['markBlockFormat'](_0x4e0730,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x399d34}]});});}),_0x33e655['descriptionFactory']['registerDescriptionCallback'](_0x246bf3=>{const {data:_0x8a6928}=_0x246bf3;if(_0x8a6928&&'blockQuote'==_0x8a6928['commandName']){const _0x284031=o(_0x3a6348,'ELEMENT_BLOCK_QUOTE');return _0x8a6928['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3a6348,'*Set\x20format:*\x20%0',_0x284031)}:{'type':'format','content':o(_0x3a6348,'*Remove\x20format:*\x20%0',_0x284031)};}});}}function oo(_0x437d92){return'blockQuote'==_0x437d92['parent']['name'];}class q extends _0x49ec79{['afterInit'](){const _0x9c2eab=this['editor'],_0x127a2a=_0x9c2eab['locale'],_0x268d2b=_0x9c2eab['plugins']['get']('TrackChangesEditing');_0x9c2eab['plugins']['has']('BookmarkEditing')&&(_0x268d2b['enableCommand']('insertBookmark'),_0x268d2b['enableDefaultAttributesIntegration']('updateBookmark'),_0x268d2b['descriptionFactory']['registerDescriptionCallback'](_0x3b08c7=>{if('insertion'!=_0x3b08c7['type']&&'deletion'!=_0x3b08c7['type']&&'attribute'!=_0x3b08c7['type'])return;const _0x33d34a=_0x3b08c7['getContainedElement']();if(null==_0x33d34a)return;if(!_0x33d34a['is']('element','bookmark'))return;const _0x1223f6=_0x33d34a['getAttribute']('bookmarkId');if('insertion'==_0x3b08c7['type'])return{'type':'insertion','content':o(_0x127a2a,'*Insert:*\x20%0','\x22'+_0x1223f6+'\x22\x20'+o(_0x127a2a,'ELEMENT_BOOKMARK'))};if('deletion'==_0x3b08c7['type'])return{'type':'deletion','content':o(_0x127a2a,'*Remove:*\x20%0','\x22'+_0x1223f6+'\x22\x20'+o(_0x127a2a,'ELEMENT_BOOKMARK'))};const {data:_0x22dda3}=_0x3b08c7;if(!_0x22dda3||'bookmarkId'!=_0x22dda3['key'])return;return{'type':'format','content':o(_0x127a2a,'*Set\x20bookmark:*\x20%0','\x22'+_0x22dda3['newValue']+'\x22')};}));}}class z extends _0x49ec79{['afterInit'](){const _0x351441=this['editor'];_0x351441['plugins']['has']('CaseChange')&&(_0x351441['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x351441['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x351441['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x49ec79{['afterInit'](){const _0x491d1d=this['editor'];_0x491d1d['commands']['get']('ckbox')&&_0x491d1d['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class W extends _0x49ec79{['afterInit'](){const _0x5998f1=this['editor'];if(!_0x5998f1['plugins']['has']('CodeBlock'))return;const _0x26d82a=_0x5998f1['plugins']['get']('TrackChangesEditing'),_0x45b18b=_0x5998f1['locale'],_0x565027=_0x5998f1['config']['get']('codeBlock')['languages'],_0x250426=_0x5998f1['commands']['get']('codeBlock');_0x26d82a['enableCommand']('indentCodeBlock'),_0x26d82a['enableCommand']('outdentCodeBlock'),_0x26d82a['enableCommand']('codeBlock',(_0x26d65c,_0x7b4fe4={})=>{const _0x2e78c6=_0x5998f1['model'],_0x9b0ff5=_0x5998f1['model']['document']['selection'],_0x29e89e=_0x7b4fe4&&void 0x0!==_0x7b4fe4['forceValue']?_0x7b4fe4['forceValue']:!_0x250426['value'];let _0x479040;_0x7b4fe4['language']||(_0x7b4fe4['language']=_0x565027[0x0]['language']),_0x479040=_0x29e89e?Array['from'](_0x9b0ff5['getSelectedBlocks']())['filter'](_0x554258=>co(_0x554258)||function(_0x8a5b67,_0x126d33){if(_0x8a5b67['is']('rootElement')||_0x126d33['isLimit'](_0x8a5b67))return!0x1;return _0x126d33['checkChild'](_0x8a5b67['parent'],'codeBlock');}(_0x554258,_0x2e78c6['schema'])):Array['from'](_0x9b0ff5['getSelectedBlocks']())['filter'](_0x441b4a=>co(_0x441b4a));const _0x1aefdd=to(_0x479040,_0x2e78c6);_0x2e78c6['change'](()=>{for(const _0x2524e3 of _0x1aefdd)_0x26d82a['markBlockFormat'](_0x2524e3,{'commandName':'codeBlock','commandParams':[{..._0x7b4fe4,'forceValue':_0x29e89e}],'formatGroupId':'blockName'});});}),(_0x26d82a['descriptionFactory']['registerElementLabel']('codeBlock',_0x4d2788=>o(_0x45b18b,'ELEMENT_CODE_BLOCK',_0x4d2788)),_0x26d82a['descriptionFactory']['registerDescriptionCallback'](_0x300aca=>{if('formatBlock'!=_0x300aca['type'])return;const _0xc5917f=_0x45b18b['t'],{data:_0x54c45a}=_0x300aca;if(!_0x54c45a||'codeBlock'!=_0x54c45a['commandName'])return;const _0x52bb91=_0x54c45a['commandParams'][0x0]['language'],_0x238fde=_0xc5917f(_0x565027['find'](_0x5f038a=>_0x5f038a['language']===_0x52bb91)['label'])['toLowerCase']();return _0x54c45a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x45b18b,'*Set\x20format:*\x20%0',o(_0x45b18b,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x238fde+')')}:{'type':'format','content':o(_0x45b18b,'*Remove\x20format:*\x20%0',o(_0x45b18b,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x11804c){return'codeBlock'==_0x11804c['name'];}class H extends _0x49ec79{['afterInit'](){const _0x340260=this['editor'];if(!_0x340260['plugins']['has']('CommentsEditing'))return;_0x340260['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class Q extends _0x49ec79{static get['requires'](){return[_0x3d2526];}['init'](){const _0x58f447=this['editor'],_0x55ea07=_0x58f447['plugins']['get']('TrackChangesEditing');_0x55ea07['enableCommand']('delete');const _0x539fd3=_0x58f447['commands']['get']('deleteForward');_0x55ea07['enableCommand']('deleteForward',(_0x3ff4fc,_0x12d18a={})=>{const _0x4ca1b4=_0x58f447['model']['createSelection'](_0x58f447['model']['document']['selection']);_0x4ca1b4['isCollapsed']&&_0x58f447['model']['modifySelection'](_0x4ca1b4,{'direction':'forward','unit':_0x12d18a['unit']});const _0x338b0a=_0x4ca1b4['getFirstRange'](),_0x157d6f=_0x3090d1['fromRange'](_0x338b0a);let _0x3d79d3;_0x3ff4fc(_0x12d18a),_0x3d79d3='$graveyard'==_0x157d6f['root']['rootName']?_0x58f447['model']['createRange'](_0x338b0a['start']):_0x58f447['model']['createRange'](_0x157d6f['start'],_0x157d6f['end']),_0x157d6f['detach'](),_0x58f447['model']['enqueueChange'](_0x539fd3['buffer']['batch'],_0x12252e=>{_0x539fd3['buffer']['lock'](),_0x12252e['setSelection'](_0x12252e['createRange'](_0x3d79d3['end'])),_0x539fd3['buffer']['unlock']();});});}}class X extends _0x49ec79{['afterInit'](){const _0x3b0e3c=this['editor'];if(!_0x3b0e3c['plugins']['has']('ListEditing'))return;const _0x2997b3=_0x3b0e3c['locale'],_0x3cf59e=_0x3b0e3c['plugins']['get']('TrackChangesEditing'),_0x22271b=_0x3b0e3c['plugins']['has']('TodoListEditing'),_0x407d6d=!!_0x3b0e3c['config']['get']('list.multiBlock');function _0x22ee36(_0x437fca){return{'type':'format','content':''+o(_0x2997b3,'*Set\x20format:*\x20%0',_0x437fca)};}function _0x48b065(_0x33906c){return{'type':'format','content':''+o(_0x2997b3,'*Remove\x20format:*\x20%0',_0x33906c)};}_0x3cf59e['enableDefaultAttributesIntegration']('numberedList'),_0x3cf59e['enableDefaultAttributesIntegration']('bulletedList'),_0x3cf59e['enableDefaultAttributesIntegration']('customNumberedList'),_0x3cf59e['enableDefaultAttributesIntegration']('customBulletedList'),_0x3cf59e['enableDefaultAttributesIntegration']('indentList'),_0x3cf59e['enableDefaultAttributesIntegration']('outdentList'),_0x3cf59e['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x3cf59e['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x407d6d&&(_0x3cf59e['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x3cf59e['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x22271b&&(_0x3cf59e['enableDefaultAttributesIntegration']('todoList'),_0x3cf59e['enableDefaultAttributesIntegration']('checkTodoList'),_0x3cf59e['descriptionFactory']['registerDescriptionCallback'](_0x18b8d0=>{const {data:_0x57e424}=_0x18b8d0;if(_0x57e424&&'todoListChecked'==_0x57e424['key'])return{'type':'format','content':_0x57e424['newValue']?o(_0x2997b3,'*Check\x20item*'):o(_0x2997b3,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x233059=>{if(_0x233059['batch']['isUndo'])return!0x1;let _0x57293a=!0x1;const _0x39b7b5=_0x3cf59e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x471ec8=>'todoListChecked'===_0x3cf59e['_getAttributeKey'](_0x471ec8));for(const _0x5de30f of _0x39b7b5){'todo'!=_0x5de30f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x3cf59e['_findSuggestions'](_0x5de30f['getFirstRange'](),'attribute')['find'](_0x409b39=>'listType'===_0x3cf59e['_getAttributeKey'](_0x409b39['suggestion']))||(_0x233059['removeMarker'](_0x5de30f['getFirstMarker']()),_0x57293a=!0x0));}return _0x57293a;})),_0x3cf59e['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x2997b3,'FORMAT_INDENT'));const _0x2574b7={'type':'format','content':''};_0x3cf59e['descriptionFactory']['registerDescriptionCallback'](_0x4e4209=>{const {data:_0x55167c}=_0x4e4209;if(!_0x55167c||'listType'!=_0x55167c['key'])return;let _0xcad8aa=_0x4e4209['head'];for(;_0xcad8aa;){if(_0xcad8aa['data']&&(('listStyle'==_0xcad8aa['data']['key']||'listMarkerStyle'==_0xcad8aa['data']['key'])&&(_0xcad8aa['data']['newValue']&&'default'!=_0xcad8aa['data']['newValue']||'default'!=_0xcad8aa['data']['oldValue']&&!_0x55167c['newValue'])||!_0x407d6d&&_0xcad8aa['data']['key']==m))return _0x2574b7;_0xcad8aa=_0xcad8aa['next'];}if(null==_0x55167c['newValue'])switch(_0x55167c['oldValue']){case'bulleted':return _0x48b065(o(_0x2997b3,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x48b065(o(_0x2997b3,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x48b065(o(_0x2997b3,'ELEMENT_TODO_LIST'));}switch(_0x55167c['newValue']){case'bulleted':return _0x22ee36(o(_0x2997b3,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x22ee36(o(_0x2997b3,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x22ee36(o(_0x2997b3,'ELEMENT_TODO_LIST'));}}),_0x3cf59e['descriptionFactory']['registerDescriptionCallback'](_0x40be7b=>{const {data:_0x3097a9}=_0x40be7b;if(_0x3097a9&&'listIndent'==_0x3097a9['key'])return null==_0x3097a9['newValue']||null==_0x3097a9['oldValue']&&0x0==_0x3097a9['newValue']?_0x2574b7:void 0x0;}),_0x3cf59e['descriptionFactory']['registerDescriptionCallback'](_0x1e7bfb=>{if('attribute'!=_0x1e7bfb['type'])return;const {data:_0x4d7d91}=_0x1e7bfb;if(!_0x4d7d91||'listItemId'!=_0x4d7d91['key'])return;const _0x3841e1=Te(_0x1e7bfb);return'newValue'==_0x3841e1?{'type':'format','content':o(_0x2997b3,'*Merge:*\x20list\x20item')}:'oldValue'==_0x3841e1?{'type':'format','content':o(_0x2997b3,'*Split:*\x20list\x20item')}:_0x2574b7;}),_0x3b0e3c['model']['document']['registerPostFixer'](_0x364122=>this['listItemIdFixer'](_0x364122)),_0x3b0e3c['model']['document']['registerPostFixer'](_0x407f05=>this['noTrackChangesFixer'](_0x407f05)),_0x3b0e3c['model']['document']['on']('change:data',(_0x1a9f91,_0x3e350f)=>{if(_0x3e350f['isUndo']||!_0x3e350f['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x6c93b9){if(_0x6c93b9['batch']['isUndo']||!_0x6c93b9['batch']['isLocal'])return!0x1;let _0x496324=!0x1;const _0x41f5be=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2f8896=>_0x2f8896['data']&&'listItemId'==_0x2f8896['data']['key'])['filter'](_0x2afe91=>_0x2afe91['data']['newValue']&&_0x2afe91['data']['oldValue']);for(const _0x4d61f9 of _0x41f5be)Te(_0x4d61f9)||(_0x6c93b9['removeMarker'](_0x4d61f9['getFirstMarker']()),_0x496324=!0x0);return _0x496324;}['noTrackChangesFixer'](_0x37c6da){if(_0x37c6da['batch']['isUndo']||!_0x37c6da['batch']['isLocal'])return!0x1;const _0x54632f=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x54632f['trackChangesCommand']['value'])return!0x1;let _0x285b0e=!0x1;const _0x4f913a=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x358da0=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x12f72b=>'attribute'==_0x12f72b['type'])['filter'](_0x51cd7e=>_0x4f913a['includes'](_0x51cd7e['attributeKey']));if(0x0==_0x358da0['length'])return _0x285b0e;for(const _0xb3c99b of _0x358da0){const _0x15de5d=_0x54632f['_findSuggestions'](_0xb3c99b['range'],'attribute')['filter'](_0x35e9e5=>!_0x35e9e5['meta']['isNextTo'])['map'](_0x2c2262=>_0x2c2262['suggestion'])['filter'](_0x3edab8=>{const _0x55f9b8=_0x54632f['_getAttributeKey'](_0x3edab8);return _0x4f913a['includes'](_0x55f9b8);});if(_0x15de5d['length']){for(const _0x5607e4 of _0x15de5d)_0x37c6da['removeMarker'](_0x5607e4['getFirstMarker']());_0x285b0e=!0x0;}}return _0x285b0e;}['assureChains'](){const _0x156098=this['editor']['plugins']['get']('TrackChangesEditing'),_0x29f19f=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x596c03;const _0x46106b=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4c7496=>{if(_0x4c7496['data']['oldRange']||!_0x4c7496['data']['newRange'])return null;if(!_0x4c7496['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x6539f7}=_0x156098['_splitMarkerName'](_0x4c7496['name']);if(!_0x156098['hasSuggestion'](_0x6539f7))return null;const _0x515eb0=_0x156098['getSuggestion'](_0x6539f7);return _0x29f19f['includes'](_0x515eb0['data']['key']);})['map'](_0x4c631e=>{const {id:_0x32afee}=_0x156098['_splitMarkerName'](_0x4c631e['name']),_0x42785e=_0x156098['getSuggestion'](_0x32afee);return _0x596c03=_0x42785e['attributes']['groupId'],_0x42785e['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x46106b['size'])return;const _0x7b8004=_0x156098['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5bacc9=>'attribute'==_0x5bacc9['type']&&_0x5bacc9['data']&&_0x29f19f['includes'](_0x5bacc9['data']['key'])&&_0x5bacc9['attributes']['groupId']!=_0x596c03)['map'](_0x3d6ef3=>({'listItem':_0x3d6ef3['getFirstRange']()['start']['nodeAfter'],'groupId':_0x3d6ef3['attributes']['groupId']})),_0x580df9=new Set();for(const {groupId:_0x4ec898,listItem:_0x4b4f50}of _0x7b8004)_0x46106b['has'](_0x4b4f50)&&_0x580df9['add'](_0x4ec898);for(const _0x3ce6ef of _0x156098['getSuggestions']())_0x580df9['has'](_0x3ce6ef['attributes']['groupId'])&&_0x3ce6ef['setAttribute']('groupId',_0x596c03);}['_supportLegacySuggestions'](){const _0x33c6d0=this['editor'],_0x3502f3=_0x33c6d0['locale'],_0x52bec8=_0x33c6d0['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x52bec8['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x540f7d,_0x5cb98a){const _0x579ebe=[];for(let _0x3ef82e of _0x540f7d)_0x3ef82e['start']['nodeAfter']===_0x3ef82e['end']['parent']&&(_0x3ef82e=_0x33c6d0['model']['createRange'](_0x33c6d0['model']['createPositionAt'](_0x3ef82e['start']['nodeAfter'],0x0))),_0x579ebe['push'](_0x3ef82e);_0x33c6d0['model']['change'](_0x20d91e=>{const _0x23bfa5=_0x33c6d0['model']['document']['selection'],_0x283fb6=Array['from'](_0x23bfa5['getRanges']())['map'](_0x773f5f=>_0x3090d1['fromRange'](_0x773f5f));_0x20d91e['setSelection'](_0x579ebe),_0x33c6d0['commands']['get'](_0x5cb98a['commandName'])['refresh'](),_0x5cb98a['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x33c6d0['execute'](_0x5cb98a['commandName'],..._0x5cb98a['commandParams']),_0x20d91e['setSelection'](_0x283fb6);for(const _0x40c979 of _0x283fb6)_0x40c979['detach']();});}),_0x52bec8['descriptionFactory']['registerElementLabel'](function(_0x505fa2){const _0x46be58=!_0x33c6d0['model']['schema']['isObject'](_0x505fa2),_0x2e9f20=_0x505fa2['previousSibling'],_0x20bcb1=_0x505fa2['nextSibling'],_0x2e52fb=_0x505fa2['getAttribute']('listItemId'),_0xc878c5=!_0x2e9f20||_0x2e9f20['getAttribute']('listItemId')!==_0x2e52fb,_0x18a032=!_0x20bcb1||_0x20bcb1['getAttribute']('listItemId')!==_0x2e52fb;return _0x46be58&&Boolean(_0x2e52fb)&&_0xc878c5&&_0x18a032;},_0x384ae3=>o(_0x3502f3,'ELEMENT_LIST_ITEM',_0x384ae3));}['_registerLegacyDescription'](){const _0x5c66c4=this['editor'],_0x3c0c18=_0x5c66c4['locale'];function _0x3e55c0(_0x47e78a){const _0x538c06=_0x5c66c4['commands']['get']('bulletedList')['value'],_0x2c6274=_0x5c66c4['commands']['get']('numberedList')['value'];return'numberedList'===_0x47e78a?_0x538c06:_0x2c6274;}_0x5c66c4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x18461d){if('formatBlock'!=_0x18461d['type'])return;const {data:_0x4462d6}=_0x18461d;if(!_0x4462d6)return;let _0x459f22,_0x2346ec,_0x41ff4a,_0x56da44;switch(_0x4462d6['commandName']){case'bulletedList':_0x41ff4a=_0x4462d6['commandParams'][0x0]['forceValue'],_0x56da44=_0x3e55c0(_0x4462d6['commandName']),_0x459f22=_0x41ff4a?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x56da44&&_0x5c66c4['config']['get']('list.multiBlock')||(_0x459f22='*Change\x20to:*\x20%0'),_0x2346ec={'type':'format','content':o(_0x3c0c18,_0x459f22,o(_0x3c0c18,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x41ff4a=_0x4462d6['commandParams'][0x0]['forceValue'],_0x56da44=_0x3e55c0(_0x4462d6['commandName']),_0x459f22=_0x41ff4a?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x56da44&&_0x5c66c4['config']['get']('list.multiBlock')||(_0x459f22='*Change\x20to:*\x20%0'),_0x2346ec={'type':'format','content':o(_0x3c0c18,_0x459f22,o(_0x3c0c18,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x459f22='*Indent:*\x20%0',_0x2346ec={'type':'format','content':o(_0x3c0c18,_0x459f22,o(_0x3c0c18,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x459f22=function(_0x30b5a2){const _0x5743d8=_0x30b5a2['getFirstRange']();let _0x2c872c=_0x5743d8['start']['nodeAfter'];for(;_0x2c872c&&_0x5743d8['containsItem'](_0x2c872c);){if(_0x2c872c['getAttribute']('listIndent')>0x0)return!0x1;_0x2c872c=_0x2c872c['nextSibling'];}return!0x0;}(_0x18461d)?o(_0x3c0c18,'*Format:*\x20remove\x20from\x20%0',o(_0x3c0c18,function(_0x47c436){return'ELEMENT_'+_0x47c436['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x18461d))):o(_0x3c0c18,'*Outdent:*\x20%0',o(_0x3c0c18,'ELEMENT_LIST_ITEM')),_0x2346ec={'type':'format','content':_0x459f22};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x4462d6['multipleBlocks']&&(_0x459f22='*Merge:*\x20%0',_0x2346ec={'type':'deletion','content':o(_0x3c0c18,_0x459f22,o(_0x3c0c18,'ELEMENT_LIST_ITEM'))});}return _0x2346ec;});}}function Te(_0x58a232){let _0x19e823=_0x58a232['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x19e823;){const _0x1b8b26=_0x19e823['getAttribute']('listItemId');if(!_0x1b8b26)return!0x1;if(_0x1b8b26==_0x58a232['data']['newValue'])return'newValue';if(_0x1b8b26==_0x58a232['data']['oldValue'])return'oldValue';_0x19e823=_0x19e823['previousSibling'];}return!0x1;}class Y extends _0x49ec79{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x59cf44=this['editor']['config']['get']('list.properties'),_0xdb3f34=this['editor']['plugins']['get']('TrackChangesEditing');_0x59cf44['styles']&&_0xdb3f34['enableDefaultAttributesIntegration']('listStyle'),_0x59cf44['reversed']&&_0xdb3f34['enableDefaultAttributesIntegration']('listReversed'),_0x59cf44['startIndex']&&_0xdb3f34['enableDefaultAttributesIntegration']('listStart');const _0xc8a85e={'type':'format','content':''};_0xdb3f34['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x1453a8=this['editor']['locale'];_0xdb3f34['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x1453a8,'FORMAT_LIST_REVERSED')),_0xdb3f34['descriptionFactory']['registerDescriptionCallback'](_0x129328=>{const {data:_0x369e0a}=_0x129328;if(_0x369e0a&&'listReversed'==_0x369e0a['key'])return null==_0x369e0a['newValue']||0x0==_0x369e0a['newValue']&&null==_0x369e0a['oldValue']?_0xc8a85e:void 0x0;}),_0xdb3f34['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x1453a8,'FORMAT_LIST_START')),_0xdb3f34['descriptionFactory']['registerDescriptionCallback'](_0x33b3a3=>{const {data:_0x1f5a78}=_0x33b3a3;if(_0x1f5a78&&'listStart'==_0x1f5a78['key'])return null==_0x1f5a78['newValue']||0x1==_0x1f5a78['newValue']&&null==_0x1f5a78['oldValue']?_0xc8a85e:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x5688ca=>{if(_0x5688ca['batch']['isUndo'])return!0x1;let _0x1a0e21=!0x1;const _0x297d05=_0xdb3f34['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x15cb8f=>{const _0x4efa1a=_0xdb3f34['_getAttributeKey'](_0x15cb8f);return'listStart'==_0x4efa1a||'listReversed'==_0x4efa1a;});for(const _0xc00cd7 of _0x297d05){const _0x3a6a1a=_0xc00cd7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x3a6a1a||'customNumbered'==_0x3a6a1a)continue;_0xdb3f34['_findSuggestions'](_0xc00cd7['getFirstRange'](),'attribute')['find'](_0x34dc85=>'listType'==_0xdb3f34['_getAttributeKey'](_0x34dc85['suggestion']))||(_0x5688ca['removeMarker'](_0xc00cd7['getFirstMarker']()),_0x1a0e21=!0x0);}return _0x1a0e21;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x3e5809){const _0x3b6a5f=this['editor']['locale'],{data:_0x57a1ce}=_0x3e5809,_0x527af8={'type':'format','content':''};if(!_0x57a1ce||'listStyle'!=_0x57a1ce['key'])return;if(!_0x57a1ce['oldValue'])return'default'==_0x57a1ce['newValue']?_0x527af8:{'type':'format','content':''+o(_0x3b6a5f,'*Set\x20format:*\x20%0',o(_0x3b6a5f,this['_getTranslationKeyForListStyle'](_0x57a1ce['newValue'])))};if(!_0x57a1ce['newValue']){if('default'==_0x57a1ce['oldValue'])return _0x527af8;let _0x54e273=_0x3e5809['head'];for(;_0x54e273;){if(_0x54e273['data']&&'listType'==_0x54e273['data']['key']&&_0x54e273['data']['newValue'])return _0x527af8;_0x54e273=_0x54e273['next'];}return{'type':'format','content':''+o(_0x3b6a5f,'*Remove\x20format:*\x20%0',o(_0x3b6a5f,this['_getTranslationKeyForListStyle'](_0x57a1ce['oldValue'])))};}if('default'!=_0x57a1ce['newValue'])return{'type':'format','content':''+o(_0x3b6a5f,'*Set\x20format:*\x20%0',o(_0x3b6a5f,this['_getTranslationKeyForListStyle'](_0x57a1ce['newValue'])))};let _0x2c6034=_0x3e5809['head'];for(;_0x2c6034;){if(_0x2c6034['data']&&'listType'==_0x2c6034['data']['key']&&_0x2c6034['data']['newValue']&&_0x2c6034['data']['oldValue'])return _0x527af8;_0x2c6034=_0x2c6034['next'];}return{'type':'format','content':o(_0x3b6a5f,'*Set\x20format:*\x20%0',o(_0x3b6a5f,'ELEMENT_'+_0x3e5809['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x22dc7c=this['editor'],_0x359b49=_0x22dc7c['locale'];_0x22dc7c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xc01568=>{if('formatBlock'!=_0xc01568['type'])return;const {data:_0x95067c}=_0xc01568;if(!_0x95067c)return;let _0x164aa4,_0x232da3;switch(_0x95067c['commandName']){case'listStyle':_0x164aa4='*Change\x20to:*\x20%0',_0x232da3={'type':'format','content':o(_0x359b49,_0x164aa4,o(_0x359b49,this['_getTranslationKeyForListStyle'](_0x95067c['commandParams'][0x0]['type'])))};break;case'listReversed':_0x164aa4=_0x95067c['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x232da3={'type':'format','content':o(_0x359b49,_0x164aa4)};break;case'listStart':_0x164aa4='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x232da3={'type':'format','content':o(_0x359b49,_0x164aa4,_0x95067c['commandParams'][0x0]['startIndex'])};}return _0x232da3;});}['_getTranslationKeyForListStyle'](_0x5b3085){return'ELEMENT_'+function(_0x516cfb){if(ye['includes'](_0x516cfb))return'bulleted';if(Se['includes'](_0x516cfb))return'numbered';return null;}(_0x5b3085)['toUpperCase']()+'_LIST_'+_0x5b3085['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 _0x49ec79{['afterInit'](){const _0x8e2720=this['editor'];_0x8e2720['commands']['get']('emoji')&&_0x8e2720['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class tt extends _0x49ec79{static get['requires'](){return[_0x326826];}['init'](){const _0x3eedc9=this['editor'],_0x2d2955=_0x3eedc9['plugins']['get']('TrackChangesEditing'),_0x32ba38=_0x3eedc9['commands']['get']('enter');_0x2d2955['enableCommand']('enter',()=>{_0x3eedc9['model']['change'](_0x5241fa=>{const _0x4a0345=_0x3eedc9['model']['document']['selection'],_0x183bb3=_0x4a0345['getFirstPosition'](),_0x4cf5aa=_0x3090d1['fromRange'](_0x4a0345['getFirstRange']());if(_0x32ba38['enterBlock'](_0x5241fa)){const _0x429c98=_0x3eedc9['model']['createPositionAt'](_0x183bb3['parent']['nextSibling'],0x0),_0x17a462=_0x5241fa['createRange'](_0x183bb3,_0x429c98);_0x2d2955['markInsertion'](_0x17a462);}else _0x5241fa['setSelection'](_0x5241fa['createRange'](_0x4cf5aa['end']));_0x4cf5aa['detach'](),_0x32ba38['fire']('afterExecute',{'writer':_0x5241fa});});});}}class nt extends _0x49ec79{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x1ce4ee=this['editor']['plugins']['get']('TrackChangesEditing');_0x1ce4ee['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x1ce4ee['enableCommand']('findNext'),_0x1ce4ee['enableCommand']('findPrevious'),_0x1ce4ee['enableCommand']('replace'),_0x1ce4ee['enableCommand']('replaceAll');}['handleFindCommand'](_0x5d6777,_0x29becb,_0x3ab076={}){const _0x460066=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x5d6777(_0x425e84=>{let _0x3032ca=('string'==typeof _0x29becb?_0x460066['findByTextCallback'](_0x29becb,_0x3ab076):_0x29becb)(_0x425e84);Array['isArray'](_0x3032ca)&&(_0x3032ca={'results':_0x3032ca,'searchText':'string'==typeof _0x29becb?_0x29becb:''});const _0x51d9a3=_0x3032ca['results']['filter'](_0x3933ad=>!0x1===this['_isInDeletionRange'](_0x3933ad,_0x425e84['item']));return{..._0x3032ca,'results':_0x51d9a3};},_0x3ab076);}['_isInDeletionRange'](_0x13b454,_0x5b6c12){const _0xaddcca=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5b6c12,_0x13b454['start']),this['editor']['model']['createPositionAt'](_0x5b6c12,_0x13b454['end']));for(const _0x323bc6 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0xaddcca['getIntersection'](_0x323bc6['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 _0x49ec79{['afterInit'](){const _0x5a7329=this['editor']['locale'],_0x516724=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0xd6b3db,commandName:_0x10ef70}of eo)this['editor']['plugins']['has'](_0xd6b3db)&&_0x516724['enableDefaultAttributesIntegration'](_0x10ef70);_0x516724['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x5a7329,'FORMAT_FONT_SIZE')),_0x516724['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x5a7329,'FORMAT_FONT_FAMILY')),_0x516724['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x5a7329,'FORMAT_FONT_COLOR')),_0x516724['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x5a7329,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x15265b=this['editor'],_0x4af03f=_0x15265b['locale'];_0x15265b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x428f72=>{const _0x33c90f=_0x4af03f['t'];if('formatInline'!=_0x428f72['type'])return;const {data:_0x2b4659}=_0x428f72;if(null!=_0x2b4659){if('fontSize'==_0x2b4659['commandName']){const _0x91a1f7=_0x2b4659['commandParams'][0x0]['value'];if(_0x91a1f7){const _0x539115=_0x33c90f(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x39b767=>_0x39b767['model']==_0x91a1f7)['title'])['toLowerCase']();return{'type':'format','content':o(_0x4af03f,'*Set\x20font\x20size:*\x20%0',_0x539115)};}return{'type':'format','content':o(_0x4af03f,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x2b4659['commandName']){const _0xba6972=_0x2b4659['commandParams'][0x0]['value'];return _0xba6972?{'type':'format','content':o(_0x4af03f,'*Set\x20font\x20family:*\x20%0',_0xba6972)}:{'type':'format','content':o(_0x4af03f,'*Reset\x20font\x20family*')};}if('fontColor'==_0x2b4659['commandName']){const _0x23090a=_0x2b4659['commandParams'][0x0]['value'];if(_0x23090a){const _0x128bae=_0x3fe406(this['editor']['config']['get']('fontColor.colors'))['find'](_0xecacde=>_0xecacde['model']==_0x23090a);let _0x330928=_0x23090a,_0x57c2ea='';return _0x128bae&&(_0x330928=_0x128bae['label'],_0x57c2ea=_0x33c90f(_0x330928)['toLowerCase']()),{'type':'format','content':o(_0x4af03f,'*Set\x20font\x20color:*\x20%0',_0x57c2ea)['trim'](),'color':{'value':_0x23090a,'title':_0x57c2ea||_0x330928}};}return{'type':'format','content':o(_0x4af03f,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x2b4659['commandName']){const _0x4bf974=_0x2b4659['commandParams'][0x0]['value'];if(_0x4bf974){const _0x1adf1e=_0x3fe406(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x5c7395=>_0x5c7395['model']==_0x4bf974);let _0x377b66=_0x4bf974,_0x517e5c='';return _0x1adf1e&&(_0x377b66=_0x1adf1e['label'],_0x517e5c=_0x33c90f(_0x377b66)['toLowerCase']()),{'type':'format','content':o(_0x4af03f,'*Set\x20font\x20background\x20color:*\x20%0',_0x517e5c)['trim'](),'color':{'value':_0x4bf974,'title':_0x517e5c||_0x377b66}};}return{'type':'format','content':o(_0x4af03f,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x49ec79{['afterInit'](){const {plugins:_0x33bb0c}=this['editor'];_0x33bb0c['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x33bb0c['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x4079b8,plugins:_0xf6d0a1,commands:_0x2f15d8}=this['editor'],_0x50afa6=_0xf6d0a1['get']('TrackChangesEditing');_0x2f15d8['get']('footnotesStyle')&&_0x50afa6['enableDefaultAttributesIntegration']('footnotesStyle'),_0x2f15d8['get']('footnotesStart')&&_0x50afa6['enableDefaultAttributesIntegration']('footnotesStart'),_0x50afa6['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',o(_0x4079b8,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x50afa6['descriptionFactory']['registerAttributeLabel']('footnotesListStart',o(_0x4079b8,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x32aad8=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x4e4293,commands:_0x5d09ed}=this['editor'];_0x5d09ed['get']('insertFootnote')&&_0x32aad8['enableCommand']('insertFootnote'),_0x32aad8['descriptionFactory']['registerElementLabel']('footnoteRef',_0xf9112=>o(_0x4e4293,'ELEMENT_FOOTNOTE_REF',_0xf9112)),_0x32aad8['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x337df9=>o(_0x4e4293,'ELEMENT_FOOTNOTE_DEFINITION',_0x337df9)),_0x32aad8['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x52fad4=>o(_0x4e4293,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x52fad4));}}class st extends _0x49ec79{['afterInit'](){const _0x31fa7a=this['editor'],_0x333cb8=_0x31fa7a['plugins']['get']('TrackChangesEditing'),_0x22ecc8=_0x31fa7a['commands']['get']('copyFormat'),_0x1ad6db=_0x31fa7a['commands']['get']('pasteFormat');_0x22ecc8&&_0x1ad6db&&(_0x333cb8['enableDefaultAttributesIntegration']('pasteFormat'),_0x333cb8['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x1d7db4=this['editor'],_0x14e2fc=_0x1d7db4['locale'];_0x1d7db4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x222581=>{if('formatBlock'!=_0x222581['type']&&'formatInline'!=_0x222581['type'])return;const {data:_0x514306}=_0x222581;if(_0x514306&&'pasteFormat'===_0x514306['commandName']){const _0x39f9a4=[],_0x15eccb=_0x514306['commandParams'][0x0];for(const [_0x5a86ca,_0x1e811c]of Object['entries'](_0x15eccb))_0x39f9a4['push'](ro(_0x1d7db4,_0x5a86ca,_0x1e811c));return _0x39f9a4['length']?{'type':'format','content':o(_0x14e2fc,'*Set\x20format\x20to:*\x20%0',_0x39f9a4['join'](',\x20'))}:{'type':'format','content':o(_0x14e2fc,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x1f631a,_0x2b3c58,_0x3deda7){const _0x325f24=_0x1f631a['locale']['t'],_0x2b4518=_0x2b3c58['split'](/(?=[A-Z])/)['join']('\x20'),_0x5e8c5e=_0x325f24(_0x2b4518['charAt'](0x0)['toUpperCase']()+_0x2b4518['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x3deda7)return _0x5e8c5e;if('fontColor'===_0x2b3c58||'fontBackgroundColor'===_0x2b3c58){const _0x3e6876=_0x3fe406(_0x1f631a['config']['get']('fontColor.colors'))['find'](_0x1597aa=>_0x1597aa['model']==_0x3deda7);return _0x5e8c5e+'\x20('+(_0x3e6876?_0x325f24(_0x3e6876['label'])['toLowerCase']():_0x3deda7)+')';}if('fontSize'===_0x2b3c58&&isNaN(parseFloat(_0x3deda7))){const _0x1e810c=_0x1f631a['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x1f631a['config']['get']('fontSize.options'))['find'](_0x55b7de=>_0x55b7de['model']==_0x3deda7);return _0x5e8c5e+'\x20('+(_0x1e810c?_0x325f24(_0x1e810c['title'])['toLowerCase']():_0x3deda7)+')';}return _0x5e8c5e+'\x20('+_0x3deda7+')';}class ot extends _0x49ec79{['_headingOptions'];['afterInit'](){const _0xab1b63=this['editor'];if(!_0xab1b63['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0xab1b63['config']['get']('heading.options');const _0x2fd37f=_0xab1b63['locale'],_0x57dc0e=_0xab1b63['plugins']['get']('TrackChangesEditing');_0x57dc0e['enableDefaultAttributesIntegration']('heading');for(const _0x532616 of this['_headingOptions'])'paragraph'!=_0x532616['model']&&_0x57dc0e['descriptionFactory']['registerElementLabel'](_0x532616['model'],_0x435f58=>{const _0x1d8a06=this['_getHeadingLevel'](_0x532616['model']);return null!==_0x1d8a06?_0x374b69(_0x435f58,_0x1d8a06):_0x2780c0(_0x435f58,_0x532616['title']);});function _0x374b69(_0x333eed,_0x5372b4){return o(_0x2fd37f,'ELEMENT_HEADING',[_0x333eed,_0x5372b4]);}function _0x2780c0(_0x36119e,_0x5fb4fa){return o(_0x2fd37f,'ELEMENT_HEADING_CUSTOM',[_0x36119e,_0x5fb4fa]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x432f11=this['editor'],_0x203712=_0x432f11['locale'];function _0x189c87(_0x116130,_0x360122){return o(_0x203712,'ELEMENT_HEADING_CUSTOM',[_0x116130,_0x360122]);}_0x432f11['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x483233=>{if('formatBlock'!=_0x483233['type'])return;const {data:_0x57be35}=_0x483233;if(_0x57be35&&'heading'==_0x57be35['commandName']){const _0x522542=_0x57be35['commandParams'][0x0]['value'],_0x2fc7f=this['_getHeadingLevel'](_0x522542);if(null!==_0x2fc7f)return{'type':'format','content':o(_0x203712,'*Change\x20to:*\x20%0',(_0x51ed19=0x1,_0xe48fc5=_0x2fc7f,o(_0x203712,'ELEMENT_HEADING',[_0x51ed19,_0xe48fc5])))};const _0x56b372=this['_headingOptions']['find'](_0x123d2c=>_0x123d2c['model']===_0x522542)['title'];return{'type':'format','content':o(_0x203712,'*Change\x20to:*\x20%0',_0x189c87(0x1,_0x56b372))};}var _0x51ed19,_0xe48fc5;});}['_getHeadingLevel'](_0x2ad5c8){const _0x44967f=_0x2ad5c8['match'](/^heading(\d+)/);if(_0x44967f)return _0x44967f[0x1];const _0x49f249=this['_headingOptions']?.['find'](_0x372d4b=>_0x372d4b['model']==_0x2ad5c8);if(_0x49f249&&_0x49f249['view']){const _0x29774a=_0x49f249['view'],_0x509b8c=(_0x29774a['name']??_0x29774a)['match'](/^h(\d+)/);if(_0x509b8c)return _0x509b8c[0x1];}return null;}}class rt extends _0x49ec79{['afterInit'](){const _0x36cf8b=this['editor'];if(!_0x36cf8b['plugins']['has']('HighlightEditing'))return;const _0x527bb1=_0x36cf8b['plugins']['get']('TrackChangesEditing'),_0x2afe21=_0x36cf8b['locale'];_0x527bb1['enableDefaultAttributesIntegration']('highlight'),_0x527bb1['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x2afe21,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1c934b=this['editor'],_0x20b7b1=_0x1c934b['locale'];_0x1c934b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x70833d=>{if('formatInline'!=_0x70833d['type'])return;const {data:_0x45e5a7}=_0x70833d;if(_0x45e5a7&&'highlight'==_0x45e5a7['commandName']){const _0xa7710a=_0x20b7b1['t'],_0x1fde02=_0x45e5a7['commandParams'][0x0]['value'];if(_0x1fde02){const _0x239a41=_0x1c934b['config']['get']('highlight.options')['find'](_0x430e87=>_0x430e87['model']==_0x1fde02),_0x73895d=_0xa7710a(_0x239a41['title'])['toLowerCase']();return{'type':'format','content':o(_0x20b7b1,'*Set\x20highlight:*\x20%0',_0x73895d),'color':{'value':_0x239a41['color'],'title':_0x239a41['title']}};}return{'type':'format','content':o(_0x20b7b1,'*Remove\x20highlight*',o(_0x20b7b1,'FORMAT_HIGHLIGHT'))};}});}}class at extends _0x49ec79{['afterInit'](){const _0x1e655c=this['editor'];if(!_0x1e655c['plugins']['has']('HorizontalLineEditing'))return;_0x1e655c['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x15f98a=_0x1e655c['plugins']['get']('TrackChangesEditing'),_0x583354=_0x1e655c['locale'];_0x15f98a['descriptionFactory']['registerElementLabel']('horizontalLine',_0x250dfb=>o(_0x583354,'ELEMENT_HORIZONTAL_LINE',_0x250dfb));}}class ct extends _0x49ec79{['afterInit'](){const _0x30240b=this['editor'];if(!_0x30240b['plugins']['has']('HtmlEmbed'))return;const _0x39802e=_0x30240b['plugins']['get']('TrackChangesEditing'),_0x34bddb=_0x30240b['locale'];_0x39802e['descriptionFactory']['registerElementLabel']('rawHtml',_0xa0f3b6=>o(_0x34bddb,'ELEMENT_HTML_EMBED',_0xa0f3b6)),_0x39802e['enableDefaultAttributesIntegration']('htmlEmbed'),_0x39802e['descriptionFactory']['registerDescriptionCallback'](_0x51357d=>{if('attribute'!=_0x51357d['type'])return;const {data:_0x301683}=_0x51357d;if(_0x301683&&'value'==_0x301683['key']&&_0x51357d['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x5e6203=o(_0x34bddb,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x34bddb,'*Change\x20%0\x20content*',_0x5e6203)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x148d9b=this['editor'],_0x86ab14=_0x148d9b['locale'];_0x148d9b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x43712b=>{if('formatBlock'!=_0x43712b['type'])return;const {data:_0x53b574}=_0x43712b;if(_0x53b574&&'htmlEmbed'==_0x53b574['commandName']){const _0x435702=o(_0x86ab14,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x86ab14,'*Change\x20%0\x20content*',_0x435702)};}});}}class ut extends _0x49ec79{['afterInit'](){const _0x124c7c=this['editor'];if(!_0x124c7c['plugins']['has']('ImageEditing'))return;const _0x4d7052=_0x124c7c['plugins']['get']('TrackChangesEditing'),_0x7144bc=_0x124c7c['plugins']['get']('ImageUtils'),_0x5e0fc9=_0x124c7c['locale'];_0x4d7052['enableCommand']('insertImage'),_0x4d7052['descriptionFactory']['registerElementLabel']('imageBlock',_0x22a762=>o(_0x5e0fc9,'ELEMENT_IMAGE',_0x22a762)),_0x4d7052['descriptionFactory']['registerElementLabel']('imageInline',_0x4d2d65=>o(_0x5e0fc9,'ELEMENT_INLINE_IMAGE',_0x4d2d65)),_0x4d7052['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x5e0fc9,'ELEMENT_CAPTION')),_0x124c7c['plugins']['has']('ImageUploadEditing')&&_0x4d7052['enableCommand']('uploadImage'),_0x124c7c['plugins']['has']('ImageBlockEditing')&&_0x124c7c['plugins']['has']('ImageInlineEditing')&&(_0x4d7052['enableCommand']('imageTypeInline',(_0x3eaa14,_0x1d63de)=>{const _0xfd74f=_0x7144bc['getClosestSelectedImageElement'](_0x124c7c['model']['document']['selection']);_0x124c7c['model']['change'](()=>{_0x4d7052['markBlockFormat'](_0xfd74f,{'commandName':'imageTypeInline','commandParams':[_0x1d63de]},[],'convertBlockImageToInline');});}),_0x4d7052['enableCommand']('imageTypeBlock',(_0x576761,_0x1f0c67)=>{_0x124c7c['model']['change'](_0xe48ccf=>{let _0x51a2d8=_0x7144bc['getClosestSelectedImageElement'](_0x124c7c['model']['document']['selection']),_0x2812f4=_0xe48ccf['createRangeOn'](_0x51a2d8);const _0xb4f227=_0x3238ed['fromPosition'](_0x2812f4['start'],'toPrevious'),_0x4b4847=_0x3238ed['fromPosition'](_0x2812f4['end'],'toNext');_0x4d7052['forceDefaultExecution'](()=>_0x576761(_0x1f0c67)),_0x51a2d8=_0x7144bc['getClosestSelectedImageElement'](_0x124c7c['model']['document']['selection']),_0x2812f4=_0xe48ccf['createRangeOn'](_0x51a2d8);const _0x200cd0=_0xe48ccf['createRange'](_0xb4f227,_0x4b4847);_0xb4f227['detach'](),_0x4b4847['detach'](),_0x4d7052['markBlockFormat'](_0x51a2d8,{'commandName':'imageTypeInline','commandParams':[_0x1f0c67]},[],'convertInlineImageToBlock'),_0x200cd0['start']['isBefore'](_0x2812f4['start'])&&_0x4d7052['markInsertion'](_0xe48ccf['createRange'](_0x200cd0['start'],_0x2812f4['start']),'convertInlineImageToBlock'),_0x2812f4['end']['isBefore'](_0x200cd0['end'])&&_0x4d7052['markInsertion'](_0xe48ccf['createRange'](_0x2812f4['end'],_0x200cd0['end']),'convertInlineImageToBlock');});}),_0x4d7052['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x4d7052['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x4d7052['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x4d7052['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x4d7052['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x4d7052['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x606775])=>{const _0x212c7c=_0x4d7052['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x5d84a8=_0x606775['start'],_0xdc798c=_0x606775['end'];const _0x3fd0ad=_0x124c7c['model']['schema']['getNearestSelectionRange'](_0x5d84a8,'backward'),_0x1faab5=_0x124c7c['model']['schema']['getNearestSelectionRange'](_0xdc798c,'forward');_0x3fd0ad['isCollapsed']&&(_0x5d84a8=_0x3fd0ad['start']),_0x1faab5['isCollapsed']&&(_0xdc798c=_0x1faab5['end']),_0x212c7c([_0x124c7c['model']['createRange'](_0x5d84a8,_0xdc798c)]);}),_0x4d7052['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x18186b),_0x4d7052['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x18186b)),_0x124c7c['plugins']['has']('ImageCaptionEditing')&&(_0x4d7052['enableCommand']('toggleImageCaption',(_0x462ce5,_0x342283)=>{const _0x2920ed=_0x124c7c['plugins']['get']('ImageCaptionUtils');let _0x2ced45=_0x7144bc['getClosestSelectedImageElement'](_0x124c7c['model']['document']['selection']),_0x2e269d=_0x2920ed['getCaptionFromImageModelElement'](_0x2ced45);_0x124c7c['model']['change'](()=>{if(_0x2e269d)return void _0x4d7052['markDeletion'](_0x124c7c['model']['createRangeOn'](_0x2e269d));const _0x3eb2a1=_0x7144bc['isBlockImage'](_0x2ced45);_0x462ce5(_0x342283),_0x2ced45=_0x7144bc['getClosestSelectedImageElement'](_0x124c7c['model']['document']['selection']),_0x2e269d=_0x2920ed['getCaptionFromImageModelElement'](_0x2ced45),_0x4d7052['markInsertion'](_0x124c7c['model']['createRangeOn'](_0x2e269d),_0x3eb2a1?null:'imageCaption');});}),_0x4d7052['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x18186b));const _0x51a49a=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xde997c(_0x461242,_0x46ecf5){const _0x34ca1b=_0x51a49a['findIndex'](({type:_0x528bb8,subType:_0x54a870})=>_0x461242['type']==_0x528bb8&&_0x461242['subType']==_0x54a870),_0x40f41d=_0x51a49a['findIndex'](({type:_0x5e530e,subType:_0x3c0be6})=>_0x46ecf5['type']==_0x5e530e&&_0x46ecf5['subType']==_0x3c0be6);if(_0x34ca1b<0x0||_0x40f41d<0x0)return!0x1;const _0x350bbb=_0x461242['getFirstRange'](),_0x4d4573=_0x46ecf5['getFirstRange']();if((0x0==_0x34ca1b||0x1==_0x34ca1b)&&0x2==_0x40f41d&&_0x350bbb['isIntersecting'](_0x4d4573))return!0x0;if(0x2==_0x34ca1b&&0x3==_0x40f41d){const _0x43aa1a=_0x4d7052['_findSuggestions'](_0x350bbb,'insertion')['filter'](({suggestion:_0x287a69,meta:_0x201db2})=>_0x201db2['isOwn']&&'convertInlineImageToBlock'==_0x287a69['subType']);if(_0x43aa1a['length']>0x1&&_0x4d4573['end']['isEqual'](_0x350bbb['start']))return!0x0;if(0x1==_0x43aa1a['length']&&(_0x350bbb['start']['isEqual'](_0x4d4573['end'])||_0x350bbb['end']['isEqual'](_0x4d4573['start'])))return!0x0;}if(0x3==_0x34ca1b&&0x3==_0x40f41d&&_0x350bbb['start']['isBefore'](_0x4d4573['start'])){const _0x294db8=_0x350bbb['end']['nodeAfter'],_0x598460=_0x4d4573['start']['nodeBefore'];return _0x7144bc['isBlockImage'](_0x294db8)&&_0x294db8===_0x598460;}return!0x1;}function _0x18186b(_0x5687e6,_0x4be591){return _0xde997c(_0x5687e6,_0x4be591)?[_0x5687e6,_0x4be591]:_0xde997c(_0x4be591,_0x5687e6)?[_0x4be591,_0x5687e6]:null;}_0x124c7c['plugins']['has']('ImageResize')&&(_0x4d7052['enableDefaultAttributesIntegration']('resizeImage'),_0x4d7052['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x5e0fc9,'FORMAT_IMAGE_SIZE'))),_0x124c7c['plugins']['has']('ImageTextAlternativeEditing')&&_0x4d7052['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x124c7c['plugins']['has']('PictureEditing')&&_0x4d7052['descriptionFactory']['registerDescriptionCallback'](_0x3bbf00=>{if('attribute'!=_0x3bbf00['type'])return;const {data:_0x437c6a}=_0x3bbf00;return _0x437c6a&&'sources'==_0x437c6a['key']?{'type':'format','content':''}:void 0x0;}),_0x124c7c['plugins']['has']('ImageSizeAttributes')&&_0x4d7052['descriptionFactory']['registerDescriptionCallback'](_0x270642=>{if('attribute'!=_0x270642['type'])return;const {data:_0xf003c7}=_0x270642;return!_0xf003c7||'width'!=_0xf003c7['key']&&'height'!=_0xf003c7['key']?void 0x0:{'type':'format','content':''};}),_0x4d7052['descriptionFactory']['registerDescriptionCallback'](_0x2d9faa=>{if(!!_0x51a49a['find'](({type:_0x13385f,subType:_0x31c2ef})=>_0x2d9faa['type']==_0x13385f&&_0x2d9faa['subType']==_0x31c2ef))return _0x2d9faa['previous']?{}:void 0x0;}),_0x4d7052['descriptionFactory']['registerDescriptionCallback'](_0x3ca183=>{if('insertion'==_0x3ca183['type']||'deletion'==_0x3ca183['type']){const _0xf19ac0=_0x3ca183['getContainedElement']();if(_0xf19ac0&&_0xf19ac0['is']('element','caption'))return{'type':'insertion'==_0x3ca183['type']?'addObject':'removeObject','element':_0xf19ac0,'quantity':0x1};}}),_0x4d7052['descriptionFactory']['registerDescriptionCallback'](_0x2bb49a=>'formatBlock'==_0x2bb49a['type']&&'convertInlineImageToBlock'==_0x2bb49a['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x2bb49a['type']&&'convertBlockImageToInline'==_0x2bb49a['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x4d7052['descriptionFactory']['registerDescriptionCallback'](_0x9cff60=>{if('attribute'!=_0x9cff60['type'])return;const {data:_0x4cc867}=_0x9cff60;if(!_0x4cc867||'alt'!=_0x4cc867['key'])return;const _0x2af344=_0x4cc867['newValue'];return _0x2af344?{'type':'format','content':o(_0x5e0fc9,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2af344+'\x22')}:{'type':'format','content':o(_0x5e0fc9,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x31c8c0=this['editor'],_0x5e06fb=_0x31c8c0['locale'];_0x31c8c0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d62a9=>{if('formatBlock'!=_0x1d62a9['type']&&'formatInline'!=_0x1d62a9['type'])return;const {data:_0x507acd}=_0x1d62a9;if(_0x507acd){if('imageTextAlternative'==_0x507acd['commandName']){const _0x1d32d5=_0x507acd['commandParams'][0x0]['newValue'];return _0x1d32d5?{'type':'format','content':o(_0x5e06fb,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1d32d5+'\x22')}:{'type':'format','content':o(_0x5e06fb,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x507acd['commandName']){const _0x35b575=_0x507acd['commandParams'][0x0]['width'];return _0x35b575?{'type':'format','content':o(_0x5e06fb,'*Set\x20image\x20width:*\x20%0',_0x35b575)}:{'type':'format','content':o(_0x5e06fb,'*Reset\x20image\x20width*')};}}});}}class ft extends _0x49ec79{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x4d759a=this['editor']['locale'],_0x5281c5=this['editor']['plugins']['get']('TrackChangesEditing');_0x5281c5['enableDefaultAttributesIntegration']('replaceImageSource'),_0x5281c5['descriptionFactory']['registerDescriptionCallback'](_0x40a12f=>{if('attribute'!=_0x40a12f['type'])return;const {data:_0x557c97}=_0x40a12f;return _0x557c97&&'src'==_0x557c97['key']?_0x557c97['newValue']&&_0x557c97['oldValue']?{'type':'format','content':o(_0x4d759a,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x245721=this['editor']['plugins']['get']('TrackChangesEditing');_0x245721['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x245721['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x245721['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x245721['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x383034=this['editor'],_0x55f911=_0x383034['locale'];_0x383034['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x225212=>{if('formatBlock'!=_0x225212['type']&&'formatInline'!=_0x225212['type'])return;const {data:_0x4177fc}=_0x225212;if(!_0x4177fc||'replaceImageSource'!=_0x4177fc['commandName'])return;return{'type':'format','content':o(_0x55f911,'*Format:*\x20replace\x20image\x20URL')};});}}class ht extends _0x49ec79{['afterInit'](){const _0x208f68=this['editor'];if(!_0x208f68['plugins']['has']('ImageStyleEditing'))return;const _0x27a17c=_0x208f68['plugins']['get']('TrackChangesEditing'),_0x396355=_0x208f68['plugins']['get']('ImageUtils'),_0x37d516={};_0x27a17c['enableCommand']('imageStyle',(_0x17faf9,_0xc75e2d)=>{const _0x4cf25d=_0x208f68['plugins']['get']('Users')['me'],_0x3fdc85=_0x208f68['commands']['get']('imageStyle');let _0x1ed601=_0x396355['getClosestSelectedImageElement'](_0x208f68['model']['document']['selection']),_0x32f68c=_0x208f68['model']['createRangeOn'](_0x1ed601),_0x520084=_0x3fdc85['value'];if(_0x520084==_0xc75e2d['value'])return;const _0x4c7c3a={'commandName':'imageStyle','commandParams':[_0xc75e2d],'formatGroupId':_0xd8d5dd()};_0x208f68['model']['change'](()=>{if(_0x27a17c['getSuggestions']()['filter'](_0x4a7879=>_0x4a7879['isInContent']&&_0x4cf25d==_0x4a7879['author']&&('formatBlock'==_0x4a7879['type']||'formatInline'==_0x4a7879['type'])&&('imageStylePreApply'==_0x4a7879['subType']||'imageStylePostApply'==_0x4a7879['subType'])&&_0x4a7879['getFirstRange']()['isEqual'](_0x32f68c))['forEach'](_0x3b3b1d=>_0x27a17c['discardSuggestion'](_0x3b3b1d['head'])),_0x1ed601=_0x396355['getClosestSelectedImageElement'](_0x208f68['model']['document']['selection']),_0x32f68c=_0x208f68['model']['createRangeOn'](_0x1ed601),_0x3fdc85['refresh'](),_0x208f68['commands']['get']('imageTypeInline')['refresh'](),_0x208f68['commands']['get']('imageTypeBlock')['refresh'](),_0x520084=_0x3fdc85['value'],_0x520084!=_0xc75e2d['value'])return _0x396355['isInlineImage'](_0x1ed601)&&_0x3fdc85['shouldConvertImageType'](_0xc75e2d['value'],_0x1ed601)?(_0x17faf9({..._0xc75e2d,'setImageSizes':!0x1}),_0x1ed601=_0x396355['getClosestSelectedImageElement'](_0x208f68['model']['document']['selection']),void _0x27a17c['markBlockFormat'](_0x1ed601,{..._0x4c7c3a,'commandReversedParams':[{'value':_0x520084||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x396355['isBlockImage'](_0x1ed601)?_0x27a17c['markBlockFormat'](_0x1ed601,_0x4c7c3a,[],'imageStylePostApply'):_0x27a17c['markInlineFormat'](_0x32f68c,_0x4c7c3a,'imageStylePostApply'));});});for(const _0x4681dc of _0x208f68['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x37d516[_0x4681dc['name']]=_0x4681dc['title']['toLowerCase']();_0x27a17c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x27a17c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x27a17c['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x27a17c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x58c852])=>{_0x396355['setImageNaturalSizeAttributes'](_0x58c852['getContainedElement']());}),_0x27a17c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0xf683e2,_0x3c66ec)=>{_0x27a17c['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0xf683e2,{'commandName':_0x3c66ec['commandName'],'commandParams':_0x3c66ec['commandReversedParams']});}),_0x27a17c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x5fba64,_0x222f5e){if(_0x2ff0a9(_0x5fba64,_0x222f5e))return[_0x5fba64,_0x222f5e];if(_0x2ff0a9(_0x222f5e,_0x5fba64))return[_0x222f5e,_0x5fba64];return null;});const _0xfe9804=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2ff0a9(_0x24c5cd,_0x1666c2){const _0x303d0d=_0xfe9804['findIndex'](({type:_0x4da469,subType:_0x4312e3})=>_0x24c5cd['type']==_0x4da469&&_0x24c5cd['subType']==_0x4312e3),_0x26be14=_0xfe9804['findIndex'](({type:_0x414f50,subType:_0x43c8fb})=>_0x1666c2['type']==_0x414f50&&_0x1666c2['subType']==_0x43c8fb);if(_0x303d0d<0x0||_0x26be14<0x0)return!0x1;const _0x3dc3f3=_0x24c5cd['getFirstRange'](),_0x1c1666=_0x1666c2['getFirstRange']();if((0x0==_0x303d0d||0x1==_0x303d0d)&&0x2==_0x26be14&&_0x3dc3f3['isIntersecting'](_0x1c1666))return!0x0;if(0x2==_0x303d0d&&0x3==_0x26be14){const _0x4d139a=_0x27a17c['_findSuggestions'](_0x3dc3f3,'insertion')['filter'](({suggestion:_0x269ea7,meta:_0x5ab060})=>_0x5ab060['isOwn']&&'convertInlineImageToBlock'==_0x269ea7['subType']);if(_0x4d139a['length']>0x1&&_0x1c1666['end']['isEqual'](_0x3dc3f3['start']))return!0x0;if(0x1==_0x4d139a['length']&&(_0x3dc3f3['start']['isEqual'](_0x1c1666['end'])||_0x3dc3f3['end']['isEqual'](_0x1c1666['start'])))return!0x0;}if(0x3==_0x303d0d&&0x3==_0x26be14&&_0x3dc3f3['start']['isBefore'](_0x1c1666['start'])){const _0x103eed=_0x3dc3f3['end']['nodeAfter'],_0x15f26b=_0x1c1666['start']['nodeBefore'];return _0x396355['isBlockImage'](_0x103eed)&&_0x103eed===_0x15f26b;}return!0x1;}_0x208f68['model']['document']['registerPostFixer'](()=>{let _0x519411=!0x1;const _0x134607=Array['from'](_0x208f68['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x378452,data:_0x1b801b}of _0x134607){const {group:_0x4de7e1,type:_0x4b978a,subType:_0x166418,id:_0x23aaf6}=_0x27a17c['_splitMarkerName'](_0x378452);if('suggestion'==_0x4de7e1&&_0x27a17c['hasSuggestion'](_0x23aaf6)){if('formatBlock'==_0x4b978a&&('imageStylePreApply'==_0x166418||'imageStylePostApply'==_0x166418)){const _0x7ee10e=_0x27a17c['getSuggestion'](_0x23aaf6);if(_0x1b801b['newRange']){const _0x963ab8=_0x7ee10e['getFirstRange']()['getContainedElement']();if(_0x396355['isBlockImage'](_0x963ab8))continue;_0x27a17c['discardSuggestion'](_0x7ee10e),_0x519411=!0x0;}}if('insertion'==_0x4b978a&&'imageCaption'==_0x166418&&!_0x1b801b['newRange']){const _0x4d3234=_0x27a17c['getSuggestion'](_0x23aaf6);_0x4d3234['next']&&_0x4d3234['next']['isInContent']&&(_0x27a17c['discardSuggestion'](_0x4d3234['next']),_0x519411=!0x0);}}}return _0x519411;}),this['_registerLegacyDescription'](_0x37d516);}['_registerLegacyDescription'](_0x5e40c1){const _0x542aef=this['editor'],_0x5b8e40=_0x542aef['locale'];_0x542aef['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36fc1c=>{if('formatBlock'!=_0x36fc1c['type']&&'formatInline'!=_0x36fc1c['type'])return;const {data:_0x4d0652}=_0x36fc1c;if(!_0x4d0652||'imageStyle'!=_0x4d0652['commandName'])return;const _0x308325=_0x4d0652['commandParams'][0x0]['value'];return _0x152f95('side'===_0x308325?o(_0x5b8e40,'FORMAT_SIDE_IMAGE'):_0x5e40c1[_0x308325]||_0x308325);function _0x152f95(_0x1de6e8){return{'type':'format','content':o(_0x5b8e40,'*Format:*\x20%0',_0x1de6e8)};}});}}class lt extends _0x49ec79{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x34996d){super(_0x34996d),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x16e81a=this['editor'],_0x5b90fc=_0x16e81a['commands']['get']('importWord'),_0x3e02ea=_0x16e81a['commands']['get']('trackChanges');_0x5b90fc&&(_0x5b90fc['on']('execute',(_0x1cdc0e,[,_0x280f7d])=>{this['_trackChangesValueDuringImport']=_0x3e02ea['value'],_0x280f7d['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x5b90fc,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x5b90fc,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x3e02ea['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x16e81a['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x73e90,_0x1b570d){const {suggestions:_0x5bfefc}=_0x1b570d,_0x3bef8e=this['editor']['commands']['get']('trackChanges'),_0x29f169=_0x3bef8e['value'];this['_trackChangesValueDuringImport']!==_0x29f169&&(_0x3bef8e['execute'](),this['_trackChangesExecuted']=!0x0),_0x5bfefc&&_0x5bfefc['forEach'](({id:_0x19938d,type:_0x29061d,author:_0x45c7c1,created_at:_0x325a1f})=>{const _0xd69b71={'id':_0x19938d,'type':_0x29061d,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x45c7c1,'createdAt':_0x325a1f?new Date(_0x325a1f):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0xd69b71);});}}class gt extends _0x49ec79{['afterInit'](){const _0x27439d=this['editor'],_0x4f9c72=_0x27439d['plugins']['get']('TrackChangesEditing');if(_0x27439d['plugins']['has']('IndentEditing')&&(_0x4f9c72['enableCommand']('indent'),_0x4f9c72['enableCommand']('outdent')),_0x27439d['plugins']['has']('IndentBlock')){for(const _0x3985e8 of['indentBlock','outdentBlock'])_0x4f9c72['enableDefaultAttributesIntegration'](_0x3985e8);if(_0x27439d['plugins']['has']('ListEditing')){for(const _0x550284 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x4f9c72['enableDefaultAttributesIntegration'](_0x550284);}}const _0x19abb9=_0x27439d['locale'];_0x4f9c72['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x19abb9,'FORMAT_INDENT')),_0x4f9c72['descriptionFactory']['registerAttributeLabel']('blockIndentList',o(_0x19abb9,'FORMAT_INDENT')),_0x4f9c72['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',o(_0x19abb9,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3617d3=this['editor'],_0x1bd6fd=_0x3617d3['locale'],_0x52368c=_0x3617d3['plugins']['get']('TrackChangesEditing');_0x52368c['descriptionFactory']['registerDescriptionCallback'](_0x56cccc=>{if('formatBlock'!=_0x56cccc['type'])return;const {data:_0x5553e3}=_0x56cccc;if(!_0x5553e3)return;if('indentBlock'!=_0x5553e3['commandName']&&'outdentBlock'!=_0x5553e3['commandName'])return;const _0x566d66=_0x56cccc['getItems']()[0x0],_0x5e3116=_0x52368c['descriptionFactory']['getItemLabel'](_0x566d66);return'indentBlock'==_0x5553e3['commandName']?{'type':'format','content':o(_0x1bd6fd,'*Indent:*\x20%0',_0x5e3116)}:'outdentBlock'==_0x5553e3['commandName']?{'type':'format','content':o(_0x1bd6fd,'*Outdent:*\x20%0',_0x5e3116)}:void 0x0;});}}class mt extends _0x49ec79{static get['requires'](){return[_0x323f3e];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class dt extends _0x49ec79{['afterInit'](){const _0x44876f=this['editor'];if(!_0x44876f['plugins']['has']('LinkEditing'))return;const _0x321ab3=_0x44876f['plugins']['get']('TrackChangesEditing'),_0x4159bb=_0x44876f['commands']['get']('link');_0x321ab3['enableDefaultAttributesIntegration']('link'),_0x321ab3['enableDefaultAttributesIntegration']('unlink');for(const _0x912015 of _0x4159bb['manualDecorators'])_0x321ab3['descriptionFactory']['registerAttributeLabel'](_0x912015['id'],'link\x20('+_0x912015['label']['toLowerCase']()+')');_0x321ab3['descriptionFactory']['registerDescriptionCallback'](_0x211205=>{if('attribute'!=_0x211205['type'])return;const {data:_0x4c4082}=_0x211205;if(!_0x4c4082||'linkHref'!=_0x4c4082['key'])return;const _0x5141f3=_0x4c4082['newValue'],_0x34173c=_0x44876f['locale'];return{'type':'format','content':null==_0x5141f3?o(_0x34173c,'*Remove\x20link*'):o(_0x34173c,'*Set\x20link:*\x20%0','\x22'+_0x5141f3+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x535070=this['editor'],_0x66014f=_0x535070['locale'];_0x535070['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2e5dc2=>{if('formatInline'!=_0x2e5dc2['type'])return;const {data:_0x2546ae}=_0x2e5dc2;if(_0x2546ae){if('link'==_0x2546ae['commandName']){const _0x1b160b=_0x2546ae['commandParams'][0x0];return{'type':'format','content':o(_0x66014f,'*Set\x20link:*\x20%0','\x22'+_0x1b160b+'\x22')};}return'unlink'==_0x2546ae['commandName']?{'type':'format','content':o(_0x66014f,'*Remove\x20link*')}:void 0x0;}});}}class pt extends _0x49ec79{['afterInit'](){const _0xdd2c45=this['editor'],_0x476018=_0xdd2c45['locale'];if(!_0xdd2c45['plugins']['has']('LegacyListEditing'))return;const _0x4c8db6=_0xdd2c45['plugins']['get']('TrackChangesEditing'),_0x345ba0=_0xdd2c45['plugins']['has']('LegacyTodoListEditing');function _0x33e88a(_0x5e0f7f){return()=>{const _0x3b4376=_0xdd2c45['model']['document']['selection'],_0xbf1486=_0xdd2c45['commands']['get'](_0x5e0f7f);if(_0xbf1486['value'])return void _0xdd2c45['execute']('paragraph',{});const _0x208776=_0x5e0f7f['slice'](0x0,-0x4),_0x83f399=function(_0x5a5cd2,_0x5e329a,_0x445980){let _0x1ef21b=Array['from'](_0x5a5cd2)['filter'](_0x282c45=>function(_0x594997,_0x108fda){return _0x108fda['checkChild'](_0x594997['parent'],'listItem')&&!_0x108fda['isObject'](_0x594997);}(_0x282c45,_0x445980));_0x1ef21b=_0x1ef21b['filter'](_0x1478b4=>!_0x1478b4['is']('element','listItem')||_0x1478b4['getAttribute']('listType')!=_0x5e329a);const _0x1718ab=new Set();for(const _0x5da763 of _0x1ef21b)_0x5da763['is']('element','listItem')?_0x1718ab['add'](Le(_0x5da763)):_0x1718ab['add'](_0x5da763);return Array['from'](_0x1718ab);}(_0x3b4376['getSelectedBlocks'](),_0x208776,_0xdd2c45['model']['schema']);_0xdd2c45['model']['change'](()=>{for(const _0x3260ae of _0x83f399)_0x4c8db6['markBlockFormat'](_0x3260ae,{'commandName':_0x5e0f7f,'commandParams':[{'forceValue':!_0xbf1486['value']}],'formatGroupId':'blockName'},Ee(_0x3260ae));});};}function _0x52abd2(_0x19eb37){return()=>{const _0x4e02b7=function(_0x49f466){let _0x10a255=Array['from'](_0x49f466);const _0x2be460=_0x10a255['findIndex'](_0x164618=>'listItem'!=_0x164618['name']);return _0x2be460>-0x1&&(_0x10a255=_0x10a255['slice'](0x0,_0x2be460)),_0x10a255;}(_0xdd2c45['model']['document']['selection']['getSelectedBlocks']()),_0x366af3=_0xdd2c45['model']['createRange'](_0xdd2c45['model']['createPositionAt'](_0x4e02b7[0x0],'before'),_0xdd2c45['model']['createPositionAt'](_0x4e02b7[_0x4e02b7['length']-0x1],'end'));_0xdd2c45['model']['change'](()=>{_0x4c8db6['markBlockFormat'](_0x366af3,{'commandName':_0x19eb37,'commandParams':[],'formatGroupId':'listIndent'},function(_0x1a3bee){const _0x4b78f0=new Set();for(const _0x349607 of _0x1a3bee){let _0x3cff57=_0x349607['nextSibling'];for(;_0x3cff57&&_0x3cff57['getAttribute']('listIndent')>_0x349607['getAttribute']('listIndent');)_0x4b78f0['add'](_0x3cff57),_0x3cff57=_0x3cff57['nextSibling'];}return Array['from'](_0x4b78f0);}(_0x4e02b7));});};}_0x4c8db6['enableCommand']('numberedList',_0x33e88a('numberedList')),_0x4c8db6['enableCommand']('bulletedList',_0x33e88a('bulletedList')),_0x345ba0&&_0x4c8db6['enableCommand']('todoList',_0x33e88a('todoList')),_0x4c8db6['enableCommand']('indentList',_0x52abd2('indentList')),_0x4c8db6['enableCommand']('outdentList',_0x52abd2('outdentList')),_0x345ba0&&_0x4c8db6['enableCommand']('checkTodoList',()=>{const _0x1b6320=_0xdd2c45['commands']['get']('checkTodoList'),_0x1bbc1b=Array['from'](_0x1b6320['_selectedElements']);_0x1bbc1b['filter'](_0x36f351=>_0x36f351['getAttribute']('todoListChecked')!=_0x1b6320['value']),_0xdd2c45['model']['change'](()=>{for(const _0x36e1af of _0x1bbc1b)_0x4c8db6['markBlockFormat'](_0x36e1af,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x1b6320['value']}]});});}),_0x4c8db6['descriptionFactory']['registerElementLabel']('listItem',_0x2e7d95=>o(_0x476018,'ELEMENT_LIST_ITEM',_0x2e7d95)),_0x4c8db6['descriptionFactory']['registerDescriptionCallback'](_0x2ae72f=>{if('formatBlock'!=_0x2ae72f['type']&&'formatInline'!=_0x2ae72f['type'])return;const {data:_0x97fc7d}=_0x2ae72f;if(_0x97fc7d){if('numberedList'==_0x97fc7d['commandName']||'bulletedList'==_0x97fc7d['commandName']||'todoList'==_0x97fc7d['commandName'])switch(_0x97fc7d['commandName']['replace']('List','')){case'bulleted':return _0x4c8ff5(o(_0x476018,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4c8ff5(o(_0x476018,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4c8ff5(o(_0x476018,'ELEMENT_TODO_LIST'));}if('indentList'==_0x97fc7d['commandName'])return{'type':'format','content':o(_0x476018,'*Indent:*\x20%0',o(_0x476018,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x97fc7d['commandName'])return{'type':'format','content':o(_0x476018,'*Outdent:*\x20%0',o(_0x476018,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x97fc7d['commandName'])return _0x97fc7d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x476018,'*Check\x20item*')}:{'type':'format','content':o(_0x476018,'*Uncheck\x20item*')};}function _0x4c8ff5(_0x1741ec){return{'type':'format','content':o(_0x476018,'*Change\x20to:*\x20%0',_0x1741ec)};}});}}function Le(_0x6012e9){const _0x408283=_0x6012e9['getAttribute']('listIndent');if(0x0==_0x408283)return _0x6012e9;let _0x21e0c6=_0x6012e9;for(;_0x6012e9['previousSibling']&&_0x6012e9['previousSibling']['is']('element','listItem');){const _0x15f218=_0x6012e9['previousSibling']['getAttribute']('listIndent');if(_0x15f218==_0x408283)_0x21e0c6=_0x6012e9['previousSibling'];else{if(_0x15f218<_0x408283)break;}_0x6012e9=_0x6012e9['previousSibling'];}return _0x21e0c6;}function Ee(_0x314e38){const _0x44de3a=[];if(_0x314e38['is']('element','listItem')&&_0x314e38['getAttribute']('listIndent')>0x0){let _0x3e097d=_0x314e38['nextSibling'];for(;_0x3e097d&&'listItem'==_0x3e097d['name']&&_0x3e097d['getAttribute']('listIndent')==_0x314e38['getAttribute']('listIndent');)_0x44de3a['push'](_0x3e097d),_0x3e097d=_0x3e097d['nextSibling'];}return _0x44de3a;}class wt extends _0x49ec79{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x315676=this['editor']['config']['get']('list.properties'),_0x5c3b5e=this['editor']['plugins']['get']('TrackChangesEditing');_0x315676['styles']&&_0x5c3b5e['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x315676['reversed']&&_0x5c3b5e['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x315676['startIndex']&&_0x5c3b5e['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x5c3b5e['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x5d71c1,_0x3fa311={}){const _0x2ad7b2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x278439=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x2ad7b2['markMultiRangeBlockFormat'](_0x278439,{'commandName':'listStyle','commandParams':[{'type':_0x3fa311['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x20c176,_0x340645={}){const _0x423d4d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4b86d6=this['_getSuggestionBlocks'](_0x587da8=>_0x587da8['is']('element','listItem')&&'numbered'===_0x587da8['getAttribute']('listType'));if(_0x4b86d6['length']<0x1)return;const _0x1c1a55=_0x4b86d6['map'](_0x5fd267=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5fd267,'before'),this['editor']['model']['createPositionAt'](_0x5fd267,0x0)));this['editor']['model']['change'](()=>{_0x423d4d['markMultiRangeBlockFormat'](_0x1c1a55,{'commandName':'listReversed','commandParams':[{'reversed':_0x340645['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0xbb9c10,_0x275d48={}){const _0x68ba62=this['editor']['plugins']['get']('TrackChangesEditing'),_0x6ac222=this['_getSuggestionBlocks'](_0x55c22c=>_0x55c22c['is']('element','listItem')&&'numbered'===_0x55c22c['getAttribute']('listType'));if(_0x6ac222['length']<0x1)return;const _0x10126b=_0x6ac222['map'](_0x4b2831=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4b2831,'before'),this['editor']['model']['createPositionAt'](_0x4b2831,0x0)));this['editor']['model']['change'](()=>{_0x68ba62['markMultiRangeBlockFormat'](_0x10126b,{'commandName':'listStart','commandParams':[{'startIndex':_0x275d48['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x223d98){if('formatBlock'!=_0x223d98['type']&&'formatInline'!=_0x223d98['type'])return;const _0x113529=this['editor']['locale'],{data:_0x184981}=_0x223d98;if(!_0x184981)return;let _0x349809,_0x4b4e73;switch(_0x184981['commandName']){case'listStyle':_0x349809='*Change\x20to:*\x20%0',_0x4b4e73={'type':'format','content':o(_0x113529,_0x349809,o(_0x113529,this['_getTranslationKeyForListStyle'](_0x184981['commandParams'][0x0]['type'])))};break;case'listReversed':_0x349809=_0x184981['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4b4e73={'type':'format','content':o(_0x113529,_0x349809)};break;case'listStart':_0x349809='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4b4e73={'type':'format','content':o(_0x113529,_0x349809,_0x184981['commandParams'][0x0]['startIndex'])};}return _0x4b4e73;}['_getSuggestionBlocksForListStyle'](){const _0x1eb24c=this['editor']['plugins']['get']('LegacyListUtils');let _0x3abf94=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x3abf94[0x0]?.['is']('element','listItem')&&_0x3abf94['unshift'](..._0x1eb24c['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x3abf94[_0x3abf94['length']-0x1]?.['is']('element','listItem')&&_0x3abf94['push'](..._0x1eb24c['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x3abf94=[...new Set(_0x3abf94)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x3abf94=_0x3abf94['filter'](_0x3cf277=>_0x3cf277['is']('element','listItem'))),_0x3abf94;}['_getSuggestionBlocks'](_0x347495){const _0x290121=this['editor']['plugins']['get']('LegacyListUtils');let _0x3b4a0d=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x347495)['map'](_0x45e9dd=>{const _0x4d2ef2=this['editor']['model']['createPositionAt'](_0x45e9dd,0x0);return[..._0x290121['getSiblingNodes'](_0x4d2ef2,'backward'),..._0x290121['getSiblingNodes'](_0x4d2ef2,'forward')];})['flat']();return _0x3b4a0d=[...new Set(_0x3b4a0d)],_0x3b4a0d;}['_getTranslationKeyForListStyle'](_0x30a40a){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x30a40a)||'default')['toUpperCase']()+'_LIST_'+_0x30a40a['toUpperCase']()['replace'](/-/g,'_');}}class kt extends _0x49ec79{['afterInit'](){const _0x1060a4=this['editor'];if(!_0x1060a4['plugins']['has']('MediaEmbedEditing'))return;const _0x2bc85b=_0x1060a4['plugins']['get']('TrackChangesEditing'),_0x2ba04d=_0x1060a4['locale'];_0x2bc85b['enableCommand']('mediaEmbed'),_0x2bc85b['descriptionFactory']['registerElementLabel']('media',_0x3fd35d=>o(_0x2ba04d,'ELEMENT_MEDIA',_0x3fd35d));}}class bt extends _0x49ec79{['afterInit'](){const _0x316a3c=this['editor'];_0x316a3c['plugins']['has']('MentionEditing')&&_0x316a3c['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class yt extends _0x49ec79{['afterInit'](){const _0x528388=this['editor'];if(!_0x528388['plugins']['has']('MergeFieldsEditing'))return;const _0x4a4c60=_0x528388['plugins']['get']('TrackChangesEditing'),_0x2b11c1=_0x528388['locale'];_0x4a4c60['enableCommand']('insertMergeField'),_0x4a4c60['enableCommand']('insertMergeFieldBlock'),_0x4a4c60['enableCommand']('insertMergeFieldImage'),_0x4a4c60['descriptionFactory']['registerElementLabel']('mergeField',_0x53b99e=>o(_0x2b11c1,'ELEMENT_MERGE_FIELD',_0x53b99e)),_0x4a4c60['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x12fb1a=>o(_0x2b11c1,'ELEMENT_MERGE_FIELD',_0x12fb1a)),_0x4a4c60['descriptionFactory']['registerDescriptionCallback'](_0x4b5cbb=>{if('insertion'!=_0x4b5cbb['type']&&'deletion'!=_0x4b5cbb['type'])return;const _0x131850=_0x4b5cbb['getContainedElement']();if(null==_0x131850)return;const _0x2bdf1d=_0x528388['plugins']['get']('MergeFieldsEditing');let _0x2469c2;switch(_0x2bdf1d['getMergeFieldType'](_0x131850)){case null:return;case'image':{const _0x37395c=_0x2bdf1d['unwrapAffixes'](_0x131850['getAttribute']('src'));_0x2469c2=_0x2bdf1d['getLabel'](_0x37395c)||_0x37395c;break;}default:{const _0x584ff8=_0x131850['getAttribute']('id');_0x2469c2=_0x2bdf1d['getLabel'](_0x584ff8)||_0x584ff8;break;}}return'insertion'==_0x4b5cbb['type']?{'type':'insertion','content':o(_0x2b11c1,'*Insert:*\x20%0','\x22'+_0x2469c2+'\x22\x20'+o(_0x2b11c1,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x2b11c1,'*Remove:*\x20%0','\x22'+_0x2469c2+'\x22\x20'+o(_0x2b11c1,'ELEMENT_MERGE_FIELD'))};});}}class jt extends _0x49ec79{['afterInit'](){const _0x42db48=this['editor'],_0x7e3f97=_0x42db48['plugins']['get']('TrackChangesEditing');_0x42db48['plugins']['has']('MultiLevelList')&&(_0x7e3f97['enableDefaultAttributesIntegration']('multiLevelList'),_0x7e3f97['descriptionFactory']['registerDescriptionCallback'](_0x316edd=>this['handleDescriptions'](_0x316edd)));}['handleDescriptions'](_0x511a35){const _0x26074a=this['editor']['locale'],{data:_0x1a8c83}=_0x511a35,_0x171aaf={'type':'format','content':''};if(_0x1a8c83&&'listMarkerStyle'==_0x1a8c83['key']){if(!_0x1a8c83['oldValue'])return{'type':'format','content':o(_0x26074a,'*Set\x20format:*\x20%0',o(_0x26074a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1a8c83['newValue']+')'};if(!_0x1a8c83['newValue']){let _0xddd7aa=_0x511a35['head'];for(;_0xddd7aa;){if(_0xddd7aa['data']&&'listType'==_0xddd7aa['data']['key']&&_0xddd7aa['data']['newValue'])return _0x171aaf;_0xddd7aa=_0xddd7aa['next'];}return{'type':'format','content':o(_0x26074a,'*Remove\x20format:*\x20%0',o(_0x26074a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1a8c83['oldValue']+')'};}}}}class St extends _0x49ec79{['afterInit'](){const _0x22fc41=this['editor'];if(!_0x22fc41['plugins']['has']('PageBreakEditing'))return;_0x22fc41['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x2f908d=_0x22fc41['plugins']['get']('TrackChangesEditing'),_0x163efd=_0x22fc41['locale'];_0x2f908d['descriptionFactory']['registerElementLabel']('pageBreak',_0x464938=>o(_0x163efd,'ELEMENT_PAGE_BREAK',_0x464938));}}class It extends _0x49ec79{['afterInit'](){const _0x3f9d60=this['editor'];if(!_0x3f9d60['plugins']['has']('Paragraph'))return;const _0x467fd7=_0x3f9d60['locale'],_0x454332=_0x3f9d60['plugins']['get']('TrackChangesEditing');_0x454332['descriptionFactory']['registerElementLabel']('paragraph',_0x44d1db=>o(_0x467fd7,'ELEMENT_PARAGRAPH',_0x44d1db)),_0x454332['enableDefaultAttributesIntegration']('paragraph'),_0x454332['enableCommand']('insertParagraph');const _0x110c37=_0x454332['descriptionFactory'];_0x110c37['registerDescriptionCallback'](_0x24edb0=>{if('insertion'!==_0x24edb0['type'])return;const {start:_0x3ddc5f,end:_0x5ac75c}=_0x24edb0['getFirstRange']();if(!_0x3ddc5f['isTouching'](_0x5ac75c)||!_0x3ddc5f['nodeAfter'])return;const _0x1fe0b4=_0x3f9d60['model']['schema'],_0x2dd2ed=_0x3ddc5f['nodeAfter'];return _0x1fe0b4['isBlock'](_0x2dd2ed)&&!_0x1fe0b4['isLimit'](_0x2dd2ed)&&_0x1fe0b4['checkChild'](_0x2dd2ed,'$text')?{'type':'insertion','content':o(_0x467fd7,'*Insert:*\x20%0',_0x110c37['getItemLabel'](_0x2dd2ed,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x167e75=this['editor'],_0x20ca03=_0x167e75['locale'];_0x167e75['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x253e68=>{if('formatBlock'!=_0x253e68['type'])return;const {data:_0x13a5df}=_0x253e68;return _0x13a5df&&'paragraph'==_0x13a5df['commandName']?{'type':'format','content':o(_0x20ca03,'*Change\x20to:*\x20%0',o(_0x20ca03,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class At extends _0x49ec79{['afterInit'](){const _0x469c7f=this['editor'];_0x469c7f['commands']['get']('replaceSource')&&_0x469c7f['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class _t extends _0x49ec79{['afterInit'](){const _0x3c66b0=this['editor'];if(!_0x3c66b0['plugins']['has']('RemoveFormatEditing'))return;_0x3c66b0['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2dfb8a=this['editor'];_0x2dfb8a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x44ac01=>{if('formatBlock'!=_0x44ac01['type']&&'formatInline'!=_0x44ac01['type'])return;const {data:_0x25c3ed}=_0x44ac01;return _0x25c3ed&&'removeFormat'==_0x25c3ed['commandName']?{'type':'format','content':o(_0x2dfb8a['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class Ct extends _0x49ec79{['afterInit'](){const _0x3c2241=this['editor'];if(!_0x3c2241['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x5162a5=_0x3c2241['plugins']['get']('TrackChangesEditing');_0x5162a5['enableCommand']('goToPreviousRestrictedEditingException'),_0x5162a5['enableCommand']('goToNextRestrictedEditingException');const _0x4b4534=_0x3c2241['plugins']['get']('RestrictedEditingModeEditing');_0x4b4534['enableCommand']('trackChanges'),_0x4b4534['enableCommand']('acceptSuggestion'),_0x4b4534['enableCommand']('discardSuggestion'),_0x4b4534['enableCommand']('acceptAllSuggestions'),_0x4b4534['enableCommand']('discardAllSuggestions'),_0x4b4534['enableCommand']('acceptSelectedSuggestions'),_0x4b4534['enableCommand']('discardSelectedSuggestions');}}class Nt extends _0x49ec79{['afterInit'](){const _0x2cb92b=this['editor'];if(!_0x2cb92b['plugins']['has']('ShiftEnter'))return;const _0x5990b5=_0x2cb92b['plugins']['get']('TrackChangesEditing');_0x5990b5['enableCommand']('shiftEnter'),_0x5990b5['descriptionFactory']['registerElementLabel']('softBreak',_0x4808c3=>o(_0x2cb92b['locale'],'ELEMENT_LINE_BREAK',_0x4808c3));}}function rn(_0x16fe1f,_0xe36e2a,_0x251b7a){const _0x4d7819=[];for(const _0xa53968 of _0xe36e2a['getItems']())_0xa53968['hasAttribute'](_0x16fe1f)&&_0x4d7819['push'](_0x251b7a['createRangeOn'](_0xa53968));return _0x4d7819;}class $t extends _0x49ec79{['afterInit'](){const _0x5cbb45=this['editor'],_0x417689=_0x5cbb45['plugins']['get']('TrackChangesEditing');_0x5cbb45['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x417689['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x263b95=this['editor'],_0x56017c=_0x263b95['model'],_0x2b607c=_0x263b95['locale'],_0x3b58f6=_0x263b95['plugins']['get']('TrackChangesEditing'),_0x2eb4dc='restrictedEditingException',_0x2612f2=_0x263b95['commands']['get'](_0x2eb4dc);_0x3b58f6['enableCommand'](_0x2eb4dc,(_0x555546,_0x5d6f31={})=>{const _0x2320a7=_0x56017c['document']['selection'];if(_0x2320a7['isCollapsed'])return void _0x555546(_0x5d6f31);const _0x5b1a1c=void 0x0!==_0x5d6f31['forceValue']?_0x5d6f31['forceValue']:!_0x2612f2['value'];_0x56017c['change'](()=>{const _0x207764=Array['from'](_0x2320a7['getRanges']());for(const _0x454a02 of _0x207764){const _0xa1de24=_0x5b1a1c?[_0x454a02]:rn(_0x2eb4dc,_0x454a02,_0x56017c);for(const _0x14e299 of _0xa1de24)_0x3b58f6['markInlineFormat'](_0x14e299,{'commandName':_0x2eb4dc,'commandParams':[{'forceValue':_0x5b1a1c}]});}});}),_0x3b58f6['descriptionFactory']['registerDescriptionCallback'](_0x52863f=>{if('formatBlock'!=_0x52863f['type']&&'formatInline'!=_0x52863f['type'])return;const {data:_0x4d8334}=_0x52863f;return _0x4d8334&&_0x4d8334['commandName']==_0x2eb4dc?_0x4d8334['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2b607c,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x2b607c,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x562058=this['editor'],_0x4810c9=_0x562058['locale'],_0x2bc799=_0x562058['plugins']['get']('TrackChangesEditing'),_0x3af2c4='restrictedEditingExceptionBlock',_0x6f1a1b=this['editor']['commands']['get'](_0x3af2c4);_0x2bc799['enableCommand'](_0x3af2c4,(_0x25c551,_0x5b1f50={})=>{const _0x5a317c=this['editor']['model']['document']['selection'],_0x5e684e=_0x5b1f50&&void 0x0!==_0x5b1f50['forceValue']?_0x5b1f50['forceValue']:!_0x6f1a1b['value'];let _0x47c553=[];if(_0x5e684e){const _0x32ea88=Array['from'](_0x5a317c['getSelectedBlocks']())['filter'](_0x2e8389=>function(_0x25c7f0){return!!_0x25c7f0['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x2e8389)||function(_0x21b54a,_0x30df9e){const _0xe8897e=_0x30df9e['createContext'](_0x21b54a['parent']);if(!_0x30df9e['checkChild'](_0xe8897e,'restrictedEditingException'))return!0x1;if(!_0x30df9e['checkChild'](_0xe8897e['push']('restrictedEditingException'),_0x21b54a))return!0x1;return!0x0;}(_0x2e8389,this['editor']['model']['schema']));_0x47c553=to(_0x32ea88,_0x562058['model']);}else{const _0x3cb151=Array['from'](_0x5a317c['getSelectedBlocks']())['map'](_0x5b0998=>function(_0x3d21b4){let _0x465526=_0x3d21b4;for(;_0x465526['parent'];){if('restrictedEditingException'==_0x465526['parent']['name'])return _0x465526;_0x465526=_0x465526['parent'];}return null;}(_0x5b0998))['filter'](_0x28ed06=>!!_0x28ed06);_0x47c553=to(_0x3cb151,_0x562058['model']);}_0x562058['model']['change'](()=>{for(const _0x58d51a of _0x47c553)_0x2bc799['markBlockFormat'](_0x58d51a,{'commandName':_0x3af2c4,'commandParams':[{'forceValue':_0x5e684e}]});});}),_0x2bc799['descriptionFactory']['registerDescriptionCallback'](_0x11d689=>{const {data:_0x1786bf}=_0x11d689;if(_0x1786bf&&_0x1786bf['commandName']==_0x3af2c4)return _0x1786bf['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4810c9,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x4810c9,'FORMAT_RESTRICTED_DISABLED')};});}}class vt extends _0x49ec79{['afterInit'](){const _0x1572e1=this['editor'];if(!_0x1572e1['plugins']['has']('Style')||!_0x1572e1['plugins']['has']('DataSchema'))return;const _0xde4296=_0x1572e1['plugins']['get']('TrackChangesEditing'),_0x55fa13=_0x1572e1['locale'],_0x1c662a=_0x1572e1['config']['get']('style')||{},_0x40a15d=_0x1572e1['plugins']['get']('GeneralHtmlSupport'),_0x292be8=_0x1572e1['plugins']['get']('StyleUtils')['normalizeConfig'](_0x1572e1['plugins']['get']('DataSchema'),_0x1c662a['definitions']);_0xde4296['enableDefaultAttributesIntegration']('style');const _0x32286d=new Set();for(const _0x40dd60 of _0x292be8['block']){const _0x46d83b=_0x40a15d['getGhsAttributeNameForElement'](_0x40dd60['element']);_0x32286d['add'](_0x46d83b);}const _0x89a0b=new Set();for(const _0x50f344 of _0x292be8['inline']){const _0x1a3d19=_0x40a15d['getGhsAttributeNameForElement'](_0x50f344['element']);_0x89a0b['add'](_0x1a3d19);for(const _0x414954 of _0x50f344['ghsAttributes'])_0x89a0b['add'](_0x414954);}for(const _0x593285 of _0x32286d)_0xde4296['descriptionFactory']['registerAttributeLabel'](_0x593285,o(_0x55fa13,'FORMAT_STYLE'));for(const _0x452254 of _0x89a0b)_0xde4296['descriptionFactory']['registerAttributeLabel'](_0x452254,o(_0x55fa13,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x29fa23=this['editor'],_0x105974=_0x29fa23['locale'];_0x29fa23['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x44d91f=>{if('formatBlock'!=_0x44d91f['type']&&'formatInline'!=_0x44d91f['type'])return;const {data:_0xf47873}=_0x44d91f;return _0xf47873&&'style'===_0xf47873['commandName']?_0xf47873['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x105974,'*Set\x20format:*\x20%0',_0xf47873['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x105974,'*Remove\x20format:*\x20%0',_0xf47873['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Dt extends _0x49ec79{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x34522d){super(_0x34522d),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x54f2e5=this['editor'],_0x1be8d2=_0x54f2e5['model']['document']['selection'];if(!_0x54f2e5['plugins']['has']('TableEditing'))return;const _0x13b810=_0x54f2e5['locale'],_0x1d4231=_0x54f2e5['plugins']['get']('TrackChangesEditing'),_0x20001a=_0x54f2e5['plugins']['get']('TableUtils');_0x1d4231['descriptionFactory']['registerElementLabel']('table',_0x11cf3a=>o(_0x13b810,'ELEMENT_TABLE',_0x11cf3a)),this['_setupColumnsRowsFixing'](),_0x1d4231['enableCommand']('insertTable'),_0x1d4231['enableCommand']('selectTableRow'),_0x1d4231['enableCommand']('selectTableColumn');for(const _0x2d3eec of['insertTableRowAbove','insertTableRowBelow']){const _0x3df732=_0x54f2e5['commands']['get'](_0x2d3eec);_0x1d4231['enableCommand'](_0x2d3eec,_0x48e475=>{_0x54f2e5['model']['change'](_0x3d4d81=>{_0x48e475();const _0x3822e4='above'===_0x3df732['order'],_0x14c760=_0x20001a['getSelectionAffectedTableCells'](_0x1be8d2),_0x229566=_0x20001a['getRowIndexes'](_0x14c760),_0x29878e=_0x3822e4?_0x229566['first']-0x1:_0x229566['last']+0x1,_0x46d5ce=_0x14c760[0x0]['findAncestor']('table'),_0x5d813e=_0x20001a['createTableWalker'](_0x46d5ce,{'startRow':_0x29878e,'endRow':_0x29878e}),_0x172766=Array['from'](_0x5d813e)['map'](_0x14a013=>_0x3d4d81['createRangeOn'](_0x14a013['cell']));_0x1d4231['markMultiRangeInsertion'](_0x172766,'tableRow');});});}for(const _0x1e22f2 of['insertTableColumnLeft','insertTableColumnRight']){const _0x41c223=_0x54f2e5['commands']['get'](_0x1e22f2);_0x1d4231['enableCommand'](_0x1e22f2,_0x3af67b=>{_0x54f2e5['model']['change'](_0x5d022d=>{_0x3af67b();const _0x1798eb='left'===_0x41c223['order'],_0x3f7c15=_0x20001a['getSelectionAffectedTableCells'](_0x1be8d2),_0x3dc8d8=_0x20001a['getColumnIndexes'](_0x3f7c15),_0x183e62=_0x1798eb?_0x3dc8d8['first']-0x1:_0x3dc8d8['last']+0x1,_0xa1c2a8=_0x3f7c15[0x0]['findAncestor']('table'),_0x5b7ccd=_0x20001a['createTableWalker'](_0xa1c2a8,{'startRow':0x0,'column':_0x183e62,'includeAllSlots':!0x1}),_0x1f7d2c=Array['from'](_0x5b7ccd)['map'](_0x155d04=>_0x5d022d['createRangeOn'](_0x155d04['cell']));_0x1d4231['markMultiRangeInsertion'](_0x1f7d2c,'tableColumn');});});}for(const _0x3c9863 of['removeTableRow','removeTableColumn']){const _0x44f1ca=_0x3c9863['substr'](0xb),_0x214b25=_0x44f1ca['toLowerCase'](),_0x25511e=_0x214b25['substr'](0x0,0x3)+'span',_0x5dc1eb='table'+_0x44f1ca,_0x1ea48c='min'+_0x44f1ca,_0xf745e0='max'+_0x44f1ca;_0x1d4231['enableCommand'](_0x3c9863,()=>{_0x54f2e5['model']['change'](_0x14d031=>{const _0x1d848b=_0x20001a['getSelectionAffectedTableCells'](_0x1be8d2),_0x423840=_0x1d848b[0x0]['findAncestor']('table');let _0x434984;if('removeTableRow'==_0x3c9863){const _0x30a64c=_0x20001a['getRowIndexes'](_0x1d848b);_0x434984={'startRow':_0x30a64c['first'],'endRow':_0x30a64c['last'],'includeAllSlots':!0x0};}else{const _0x1c816f=_0x20001a['getColumnIndexes'](_0x1d848b);_0x434984={'startColumn':_0x1c816f['first'],'endColumn':_0x1c816f['last'],'includeAllSlots':!0x0};}const _0x48e8dd=_0x20001a['createTableWalker'](_0x423840,_0x434984),_0x493528=Array['from'](_0x48e8dd)['map'](({cell:_0x368a1a})=>_0x368a1a),_0x3d228c=_e(_0x493528['filter'](_0x213b43=>_0x213b43['hasAttribute'](_0x25511e))),_0xd365a6=_e(_0x493528['filter'](_0x3c7562=>!_0x3c7562['hasAttribute'](_0x25511e)))['map'](_0x14eaf0=>_0x14d031['createRangeOn'](_0x14eaf0)),_0x2d2925=_0x1d4231['markMultiRangeDeletion'](_0xd365a6,_0x5dc1eb);if(_0x2d2925&&('tableRow'==_0x2d2925['subType']||'tableColumn'==_0x2d2925['subType'])){const _0x235e81=this['_getSuggestionCoords'](_0x2d2925);for(const _0x50f1fa of _0x3d228c){const _0x5f06e6=_0x14d031['createRangeOn'](_0x50f1fa),_0x2c27a8=_0x20001a['getCellLocation'](_0x50f1fa),_0x400fef=_0x50f1fa['getAttribute'](_0x25511e)-0x1,_0x32392c=_0x235e81[_0x1ea48c],_0x56b0bd=_0x235e81[_0xf745e0];_0x32392c<=_0x2c27a8[_0x214b25]&&_0x2c27a8[_0x214b25]+_0x400fef<=_0x56b0bd&&_0x2d2925['addRange'](_0x5f06e6);}}});});}function _0x5d25ca(_0x14fac6){const _0x48821a=Array['from'](_0x1be8d2['getRanges']())['map'](_0x42f4cd=>_0x3090d1['fromRange'](_0x42f4cd));_0x54f2e5['model']['change'](_0x514725=>{const _0x9621cb=_0x514725['batch'];_0x14fac6=_0x14fac6['filter'](_0x3952a4=>'$graveyard'!=_0x3952a4['root']['rootName']),_0x514725['setSelection'](_0x14fac6),_0x54f2e5['commands']['get']('removeTableRow')['refresh'](),_0x54f2e5['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x54f2e5['model']['enqueueChange'](()=>{_0x54f2e5['model']['enqueueChange'](_0x9621cb,_0xc44e07=>{const _0x4b827a=_0x48821a['filter'](_0x15dd4c=>'$graveyard'!=_0x15dd4c['root']['rootName']);_0x4b827a['length']>0x0&&_0xc44e07['setSelection'](_0x4b827a);for(const _0x278380 of _0x48821a)_0x278380['detach']();});});});}function _0x4427b9(_0x2ee543){_0x54f2e5['model']['change'](_0x3317d5=>{const _0x150ebd=Array['from'](_0x1be8d2['getRanges']())['map'](_0x5b00c2=>_0x3090d1['fromRange'](_0x5b00c2)),_0x28e8a3=[];for(const _0x235c6b of _0x2ee543)for(const _0x9a7119 of _0x235c6b['getItems']({'shallow':!0x0}))_0x28e8a3['push'](_0x9a7119);for(const _0x2f5a8f of _0x28e8a3)'$graveyard'!=_0x2f5a8f['root']['rootName']&&(_0x3317d5['setSelection'](_0x3317d5['createPositionAt'](_0x2f5a8f,0x0)),_0x54f2e5['commands']['get']('removeTableColumn')['refresh'](),_0x54f2e5['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x24722e=_0x150ebd['filter'](_0x26c37e=>'$graveyard'!=_0x26c37e['root']['rootName']);_0x24722e['length']>0x0&&_0x3317d5['setSelection'](_0x24722e);for(const _0x311c87 of _0x150ebd)_0x311c87['detach']();});}function _0x2ca707(_0x23b76b,_0x5e92db){return _0x5e92db['every'](_0x277fc2=>_0x23b76b['some'](_0x13394c=>_0x13394c['end']['isEqual'](_0x277fc2['start'])||_0x277fc2['end']['isEqual'](_0x13394c['start'])));}function _0x152840(_0x58d76f,_0x197ac7){return!_0x58d76f['some'](_0x7dcca8=>_0x197ac7['some'](_0x16151d=>_0x7dcca8['isIntersecting'](_0x16151d)))&&_0x58d76f['some'](_0x804cc4=>_0x197ac7['some'](_0x4dbf5f=>_0x804cc4['end']['isTouching'](_0x4dbf5f['start'])));}_0x1d4231['descriptionFactory']['registerDescriptionCallback'](_0x8f9855=>{if('insertion'!=_0x8f9855['type']&&'deletion'!=_0x8f9855['type'])return;const _0x54d011=_0x8f9855['getContainedElement']();if(null!=_0x54d011&&_0x54d011['is']('element','table')){if('insertion'==_0x8f9855['type']){const _0x363240=_0x8f9855['getItems']()['filter'](_0x1d474d=>_0x1d474d['is']('$textProxy'))['map'](_0x1e3fe0=>_0x1e3fe0['data']);if(_0x363240['length'])return{'type':'insertion','content':o(_0x13b810,'*Insert:*\x20%0',o(_0x13b810,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x363240['join']('\x20')+'\x22'))};}if('deletion'==_0x8f9855['type']){const _0x37ea08=_0x8f9855['getItems']()['filter'](_0x4fb11c=>_0x4fb11c['is']('$textProxy'))['map'](_0x23e019=>_0x23e019['data']);if(_0x37ea08['length'])return{'type':'deletion','content':o(_0x13b810,'*Remove:*\x20%0',o(_0x13b810,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x37ea08['join']('\x20')+'\x22'))};}}}),_0x1d4231['descriptionFactory']['registerDescriptionCallback'](_0x3ec6fb=>{if('tableRow'==_0x3ec6fb['subType']){const _0x4e73b2=_0x3ec6fb['getItems']()['filter'](_0x4d163e=>_0x4d163e['is']('$textProxy'))['map'](_0x534c75=>_0x534c75['data']),_0x511f7c=this['_getSuggestionCoords'](_0x3ec6fb),_0x12c9a0=_0x511f7c['maxRow']-_0x511f7c['minRow']+0x1;if('insertion'==_0x3ec6fb['type'])return _0x4e73b2['length']?{'type':'insertion','content':o(_0x13b810,'*Insert:*\x20%0',o(_0x13b810,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x12c9a0,'\x22'+_0x4e73b2['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x13b810,'*Insert:*\x20%0',o(_0x13b810,'ELEMENT_TABLE_ROW',_0x12c9a0))};if('deletion'==_0x3ec6fb['type'])return _0x4e73b2['length']?{'type':'deletion','content':o(_0x13b810,'*Remove:*\x20%0',o(_0x13b810,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x12c9a0,'\x22'+_0x4e73b2['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x13b810,'*Remove:*\x20%0',o(_0x13b810,'ELEMENT_TABLE_ROW',_0x12c9a0))};}if('tableColumn'==_0x3ec6fb['subType']){const _0x553d97=_0x3ec6fb['getItems']()['filter'](_0x54053f=>_0x54053f['is']('$textProxy'))['map'](_0x29dbea=>_0x29dbea['data']),_0x52cc08=this['_getSuggestionCoords'](_0x3ec6fb),_0xfe382f=_0x52cc08['maxColumn']-_0x52cc08['minColumn']+0x1;if('insertion'==_0x3ec6fb['type'])return _0x553d97['length']?{'type':'insertion','content':o(_0x13b810,'*Insert:*\x20%0',o(_0x13b810,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xfe382f,'\x22'+_0x553d97['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x13b810,'*Insert:*\x20%0',o(_0x13b810,'ELEMENT_TABLE_COLUMN',_0xfe382f))};if('deletion'==_0x3ec6fb['type'])return _0x553d97['length']?{'type':'deletion','content':o(_0x13b810,'*Remove:*\x20%0',o(_0x13b810,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xfe382f,'\x22'+_0x553d97['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x13b810,'*Remove:*\x20%0',o(_0x13b810,'ELEMENT_TABLE_COLUMN',_0xfe382f))};}}),_0x1d4231['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x5d25ca),_0x1d4231['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x5d25ca),_0x1d4231['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x4427b9),_0x1d4231['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x4427b9),_0x1d4231['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x2ca707),_0x1d4231['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x2ca707),_0x1d4231['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x152840),_0x1d4231['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x152840);}['_acceptFormatSuggestionCallbackFactory'](){const _0x2c35b3=this['editor'],_0x612ba5=_0x2c35b3['model']['document']['selection'];return(_0x178c4e,_0x2526a4)=>{_0x2c35b3['model']['change'](_0x60671f=>{const {commandName:_0x529959,commandParams:_0x28ae4c}=_0x2526a4;let _0x8f9164=_0x178c4e[0x0]['end']['nodeBefore'];_0x28ae4c&&_0x28ae4c[0x0]&&!0x1===_0x28ae4c[0x0]['forceValue']&&(_0x8f9164=_0x178c4e[0x0]['start']['nodeAfter']);const _0x56f5f6=_0x60671f['createRangeIn'](_0x8f9164);if('$graveyard'==_0x56f5f6['root']['rootName'])return;const _0x390032=Array['from'](_0x612ba5['getRanges']())['map'](_0x5d7a6b=>_0x3090d1['fromRange'](_0x5d7a6b));_0x60671f['setSelection'](_0x56f5f6),_0x2c35b3['commands']['get'](_0x529959)['refresh'](),_0x28ae4c['push']({'forceDefaultExecution':!0x0}),_0x2c35b3['execute'](_0x529959,..._0x28ae4c);const _0x317ec8=_0x390032['filter'](_0x348ea4=>'$graveyard'!=_0x348ea4['root']['rootName']);_0x317ec8['length']>0x0&&_0x60671f['setSelection'](_0x317ec8);for(const _0x1a647b of _0x390032)_0x1a647b['detach']();});};}['_getCoordsForCells'](_0x47e08f){const _0x2e863c=this['editor']['plugins']['get']('TableUtils');let _0x1c7b5f=Number['MAX_SAFE_INTEGER'],_0x3aa0d8=Number['MIN_SAFE_INTEGER'],_0x46137e=Number['MAX_SAFE_INTEGER'],_0x38b0b1=Number['MIN_SAFE_INTEGER'];for(const _0x5a3963 of _0x47e08f){if('$graveyard'==_0x5a3963['root']['rootName'])continue;const {row:_0x576abb,column:_0x4031eb}=_0x2e863c['getCellLocation'](_0x5a3963),_0xcea761=_0x5a3963['hasAttribute']('rowspan')?_0x5a3963['getAttribute']('rowspan')-0x1:0x0,_0x2e5d62=_0x5a3963['hasAttribute']('colspan')?_0x5a3963['getAttribute']('colspan')-0x1:0x0;_0x1c7b5f=_0x576abb<_0x1c7b5f?_0x576abb:_0x1c7b5f,_0x3aa0d8=_0x576abb+_0xcea761>_0x3aa0d8?_0x576abb+_0xcea761:_0x3aa0d8,_0x46137e=_0x4031eb<_0x46137e?_0x4031eb:_0x46137e,_0x38b0b1=_0x4031eb+_0x2e5d62>_0x38b0b1?_0x4031eb+_0x2e5d62:_0x38b0b1;}return{'minRow':_0x1c7b5f,'maxRow':_0x3aa0d8,'minColumn':_0x46137e,'maxColumn':_0x38b0b1};}['_setupColumnsRowsFixing'](){const _0x225a62=this['editor'],_0x3a4ade=_0x225a62['plugins']['get']('TrackChangesEditing'),_0x36b1fd=_0x225a62['plugins']['get']('TableUtils');_0x225a62['model']['document']['on']('change:data',()=>{const _0x1960cb=Array['from'](_0x225a62['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4808f9,data:_0x2b6d10}of _0x1960cb){const {group:_0x1ff8ee,id:_0x4d374e,subType:_0x18ca83}=_0x3a4ade['_splitMarkerName'](_0x4808f9);if('suggestion'!=_0x1ff8ee)continue;if(null!=_0x2b6d10['oldRange'])continue;const _0x1e7027=_0x3a4ade['getSuggestion'](_0x4d374e);this['_tablePostFixingSubtypes']['includes'](_0x18ca83)&&this['_tableSuggestions']['add'](_0x1e7027);}},{'priority':'low'});const _0x5a84fe=(_0x4c6a25,_0x11d6f6)=>{let _0x1cbaf8=!0x1;const _0x2ff9bc=_0x11d6f6['createRangeOn'](_0x4c6a25),_0xea726e=_0x4c6a25['findAncestor']('table'),_0x223241=_0x36b1fd['getCellLocation'](_0x4c6a25);for(const _0x19b8a0 of this['_tableSuggestions']){const _0x294d45=_0x19b8a0['subType'],_0x395d01=_0x294d45['startsWith']('tablePaste'),_0x28cce4=_0x294d45['substr'](_0x395d01?0xa:0x5),_0x570500=_0x28cce4['toLowerCase'](),_0x1542cb=_0x570500['substr'](0x0,0x3)+'span',_0x357d15='min'+_0x28cce4,_0x27e040='max'+_0x28cce4;if(!_0x19b8a0['isInContent'])continue;if(_0xea726e!=_0x19b8a0['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x19b8a0['isIntersectingWithRange'](_0x2ff9bc))continue;const _0x5bc994=_0x4c6a25['hasAttribute'](_0x1542cb)?_0x4c6a25['getAttribute'](_0x1542cb)-0x1:0x0,_0x56e2c9=this['_getSuggestionCoords'](_0x19b8a0),_0x28caf2=_0x56e2c9[_0x357d15],_0x1f171d=_0x56e2c9[_0x27e040];_0x28caf2<=_0x223241[_0x570500]&&_0x223241[_0x570500]+_0x5bc994<=_0x1f171d&&(_0x19b8a0['addRange'](_0x2ff9bc),_0x1cbaf8=!0x0);}return _0x1cbaf8;};_0x225a62['model']['document']['registerPostFixer'](_0x15d075=>{let _0xec9fc4=!0x1;for(const _0x40d723 of _0x225a62['model']['document']['differ']['getChanges']())if('insert'==_0x40d723['type']){if('tableRow'==_0x40d723['name']){for(const _0x464495 of _0x40d723['position']['nodeAfter']['getChildren']())_0xec9fc4=_0xec9fc4||_0x5a84fe(_0x464495,_0x15d075);}else'tableCell'==_0x40d723['name']&&(_0xec9fc4=_0xec9fc4||_0x5a84fe(_0x40d723['position']['nodeAfter'],_0x15d075));}return _0xec9fc4;});}['_getSuggestionCoords'](_0x6356c){return this['_getCoordsForCells'](_0x6356c['getRanges']()['map'](_0x149514=>_0x149514['start']['nodeAfter']));}}function _e(_0x250dd){return Array['from'](new Set(_0x250dd)['values']());}class Bt extends _0x49ec79{static get['requires'](){return[Dt];}['afterInit'](){const _0x3e8efd=this['editor'],_0x2ae0ee=_0x3e8efd['model']['document']['selection'],_0x3c4787=_0x3e8efd['locale'];if(!_0x3e8efd['plugins']['has']('TableEditing'))return;const _0x38f616=_0x3e8efd['plugins']['get']('TrackChangesEditing'),_0x4061fd=_0x3e8efd['plugins']['get']('TableUtils'),_0x2cb51e=_0x3e8efd['plugins']['get'](Dt);_0x2cb51e['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x38f616['enableCommand']('mergeTableCells',()=>{const _0x134d33=_0x4061fd['getSelectionAffectedTableCells'](_0x3e8efd['model']['document']['selection']);_0x3e8efd['model']['change'](()=>{_0x38f616['markMultiRangeBlockFormat'](_0x134d33,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x3e8efd['commands']['get']('mergeTableCells')['on']('execute',(_0x262856,_0x501849)=>{_0x3e8efd['commands']['get']('trackChanges')['value']&&(_0x501849['length']>0x0&&_0x501849[_0x501849['length']-0x1]&&_0x501849[_0x501849['length']-0x1]['forceDefaultExecution']||_0x38f616['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x262856['stop']());},{'priority':'highest'});for(const _0x28e968 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x48f71e=_0x3e8efd['commands']['get'](_0x28e968);_0x38f616['enableCommand'](_0x28e968,()=>{const _0x1f9cda=_0x3e8efd['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1f7656=>_0x1f7656['is']('element','tableCell')),_0x497944=_0x48f71e['value'];_0x3e8efd['model']['change'](()=>{_0x38f616['markMultiRangeBlockFormat']([_0x1f9cda,_0x497944],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x164e66 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x35187f=_0x3e8efd['commands']['get'](_0x164e66);_0x38f616['enableCommand'](_0x164e66,()=>{const _0x5306af=_0x4061fd['getSelectionAffectedTableCells'](_0x3e8efd['model']['document']['selection'])[0x0],_0x39c67c=_0x5306af['findAncestor']('table'),{column:_0x13fc0f,row:_0x15c6cb}=_0x4061fd['getCellLocation'](_0x5306af);let _0x336619=[];if('horizontally'==_0x35187f['direction']){const _0x3a119c=_0x4061fd['createTableWalker'](_0x39c67c,{'startRow':_0x15c6cb,'endRow':_0x15c6cb,'includeAllSlots':!0x0});_0x336619=Array['from'](_0x3a119c)['map'](_0x3051a1=>_0x3051a1['cell']);}else{const _0x30db6b=_0x4061fd['createTableWalker'](_0x39c67c,{'column':_0x13fc0f,'includeAllSlots':!0x0});_0x336619=Array['from'](_0x30db6b)['map'](_0x356402=>_0x356402['cell']);}_0x3e8efd['model']['change'](_0x5467c0=>{_0x38f616['markBlockFormat'](_0x5467c0['createRangeOn'](_0x5306af),{'commandName':_0x164e66,'commandParams':[]},_0x336619,_0x164e66);});});}_0x38f616['descriptionFactory']['registerDescriptionCallback'](_0x1a64d0=>{if('formatBlock'!=_0x1a64d0['type']&&'formatInline'!=_0x1a64d0['type'])return;const {data:_0x145221}=_0x1a64d0;return _0x145221&&'mergeTableCells'==_0x145221['commandName']?{'type':'format','content':o(_0x3c4787,'*Merge\x20cells*')}:void 0x0;}),_0x38f616['descriptionFactory']['registerDescriptionCallback'](_0x1c0b9b=>{if('formatBlock'!=_0x1c0b9b['type']&&'formatInline'!=_0x1c0b9b['type'])return;const {data:_0x59c949}=_0x1c0b9b;return _0x59c949?'splitTableCellVertically'==_0x59c949['commandName']?{'type':'format','content':o(_0x3c4787,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x59c949['commandName']?{'type':'format','content':o(_0x3c4787,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x17f477=_0x2cb51e['_acceptFormatSuggestionCallbackFactory']();for(const _0x5f02a0 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x38f616['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5f02a0,'accept',_0x17f477);for(const _0x1ecdcd of['splitTableCellVertically','splitTableCellHorizontally'])_0x38f616['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1ecdcd,'accept',_0x17f477);_0x38f616['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x4f65cd=>{_0x3e8efd['model']['change'](_0x5f260b=>{const _0x4b4bea=Array['from'](_0x2ae0ee['getRanges']())['map'](_0x48b52f=>_0x3090d1['fromRange'](_0x48b52f));_0x5f260b['setSelection'](_0x4f65cd),_0x3e8efd['commands']['get']('mergeTableCells')['refresh'](),_0x3e8efd['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x41838e=_0x4b4bea['filter'](_0x4663ab=>'$graveyard'!=_0x4663ab['root']['rootName']);_0x41838e['length']>0x0&&_0x5f260b['setSelection'](_0x41838e);for(const _0x1abf68 of _0x4b4bea)_0x1abf68['detach']();});});for(const _0x138616 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x1f996d=_0x3e8efd['commands']['get'](_0x138616);_0x1f996d['on']('set:isEnabled',(_0x3f577a,_0x5d44bf,_0x36c6c0)=>{if(_0x36c6c0){const _0x595fa5=_0x3e8efd['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x284c12=>_0x284c12['is']('element','tableCell'));this['_areMergableCells'](_0x1f996d['value'],_0x595fa5)||(_0x3f577a['return']=!0x1,_0x3f577a['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0xb4f004=this['editor']['commands']['get']('mergeTableCells'),_0x71545f=this['editor']['plugins']['get']('TableUtils');if(!_0xb4f004['isEnabled'])return!0x1;const _0x3215f8=_0x71545f['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x212d64 of _0x3215f8)for(const _0x30950e of _0x3215f8)if(_0x212d64!=_0x30950e&&!this['_areMergableCells'](_0x212d64,_0x30950e))return!0x1;return!0x0;}['_areMergableCells'](_0x416ffd,_0x536972){const _0x204d8e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x13a9c1=this['editor']['model']['createRangeOn'](_0x416ffd),_0x37b871=this['editor']['model']['createRangeOn'](_0x536972),_0x13db0d=new Set(),_0x1ced72=new Set();for(const _0x4af53a of _0x204d8e['getSuggestions']())if(('insertion'==_0x4af53a['type']||'deletion'==_0x4af53a['type']||'mergeTableCells'==_0x4af53a['subType'])&&_0x4af53a['isInContent']){for(const _0x279786 of _0x4af53a['getRanges']())_0x279786['containsRange'](_0x13a9c1,!0x0)&&_0x13db0d['add'](_0x4af53a['type']+':'+_0x4af53a['author']['id']),_0x279786['containsRange'](_0x37b871,!0x0)&&_0x1ced72['add'](_0x4af53a['type']+':'+_0x4af53a['author']['id']);}if(_0x13db0d['size']!=_0x1ced72['size'])return!0x1;for(const _0x5ab4e6 of _0x13db0d)if(!_0x1ced72['has'](_0x5ab4e6))return!0x1;return!0x0;}}class Ot extends _0x49ec79{static get['requires'](){return[Dt];}['afterInit'](){const _0x2c0e34=this['editor'];if(!_0x2c0e34['plugins']['has']('TableEditing'))return;const _0x33bb1f=_0x2c0e34['locale'],_0x229157=_0x2c0e34['plugins']['get']('TrackChangesEditing');_0x229157['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x229157['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x229157['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x33bb1f,'FORMAT_HEADER_ROW')),_0x229157['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x33bb1f,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5f0813=this['editor']['plugins']['get']('TrackChangesEditing'),_0x323da7=this['editor']['plugins']['get'](Dt)['_acceptFormatSuggestionCallbackFactory']();_0x5f0813['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x323da7),_0x5f0813['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x323da7),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x20a4e5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3925cf=this['editor']['plugins']['get']('TableUtils');function _0x2f6bdd({showActiveMarker:_0x30eb6f=!0x0,setDataAttribute:_0xd76903=!0x0}={}){return(_0x28fc78,_0x5adca7,_0x19d89c)=>{const {type:_0x3b65c5,id:_0x2d6d87}=_0x20a4e5['_splitMarkerName'](_0x5adca7['markerName']);if(!_0x20a4e5['hasSuggestion'](_0x2d6d87))return;const _0x5af656=_0x20a4e5['getSuggestion'](_0x2d6d87),_0x27f92b=_0x5af656['data'];if('formatBlock'!=_0x5af656['type']||!_0x27f92b||'setTableColumnHeader'!=_0x27f92b['commandName'])return;if(_0x5adca7['item'])return void _0x28fc78['stop']();if(!_0x19d89c['consumable']['consume'](_0x5adca7['markerRange'],_0x28fc78['name']))return;const _0x3503bc=_0x5adca7['markerRange']['start']['nodeAfter'],_0x687839=_0x5adca7['markerRange']['end']['nodeBefore'],_0x43d0f5=_0x3503bc['parent']['parent'],{column:_0x13e966}=_0x3925cf['getCellLocation'](_0x3503bc),{column:_0x56fb72}=_0x3925cf['getCellLocation'](_0x687839);for(let _0x398893=_0x13e966;_0x398893<=_0x56fb72;_0x398893++){const _0x2f86a1=_0x3925cf['createTableWalker'](_0x43d0f5,{'column':_0x398893,'includeAllSlots':!0x1});for(const _0x3252e5 of _0x2f86a1){const _0x3543af=_0x3252e5['cell'],_0xc3500d=_0x19d89c['mapper']['toViewElement'](_0x3543af);_0x19d89c['writer']['addClass']('ck-suggestion-marker-'+_0x3b65c5,_0xc3500d),_0xd76903&&_0x19d89c['writer']['setAttribute']('data-suggestion',_0x2d6d87,_0xc3500d),_0x19d89c['mapper']['bindElementToMarker'](_0xc3500d,_0x5adca7['markerName']),_0x30eb6f&&(_0x20a4e5['activeMarkers']['includes'](_0x5adca7['markerName'])?_0x19d89c['writer']['addClass']('ck-suggestion-marker--active',_0xc3500d):_0x19d89c['writer']['removeClass']('ck-suggestion-marker--active',_0xc3500d));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x2f6bdd(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x70f0f8,_0x39435d,_0x2cdfa5)=>{_0x2cdfa5['options']['showSuggestionHighlights']&&_0x2f6bdd({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x70f0f8,_0x39435d,_0x2cdfa5);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x5b577d,_0x274ac1,_0xa2248)=>{const {type:_0x2a63ce,id:_0x39b667}=_0x20a4e5['_splitMarkerName'](_0x274ac1['markerName']);if(!_0x20a4e5['hasSuggestion'](_0x39b667))return;const _0xa1219=_0x20a4e5['getSuggestion'](_0x39b667),_0x442728=_0xa1219['data'];if('formatBlock'!=_0xa1219['type']||!_0x442728||'setTableColumnHeader'!=_0x442728['commandName'])return;const _0x356ee5=_0xa2248['mapper']['markerNameToElements'](_0x274ac1['markerName']);if(_0x356ee5){for(const _0x225f37 of _0x356ee5)_0xa2248['writer']['removeClass']('ck-suggestion-marker-'+_0x2a63ce,_0x225f37),_0xa2248['writer']['removeClass']('ck-suggestion-marker--active',_0x225f37),_0xa2248['writer']['removeAttribute']('data-suggestion',_0x225f37),_0xa2248['mapper']['unbindElementFromMarkerName'](_0x225f37,_0x274ac1['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x45c303=this['editor'],_0xad1777=_0x45c303['locale'];function _0x35156d(_0x8ef272){return{'type':'format','content':o(_0xad1777,'*Format:*\x20%0',_0x8ef272)};}_0x45c303['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x27bee6=>{if('formatBlock'!=_0x27bee6['type'])return;const {data:_0x26a747}=_0x27bee6;if(_0x26a747){if('setTableRowHeader'==_0x26a747['commandName']){const _0x496242=_0x26a747['commandParams'][0x0]['forceValue'];return _0x35156d(o(_0xad1777,_0x496242?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x26a747['commandName']){const _0x22b52c=_0x26a747['commandParams'][0x0]['forceValue'];return _0x35156d(o(_0xad1777,_0x22b52c?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class xt extends _0x49ec79{['afterInit'](){const _0x43cd20=this['editor'],_0x4e0e4b=_0x43cd20['locale'],_0x414a6e=_0x43cd20['plugins']['get']('TrackChangesEditing');function _0x257127(_0x2e0235){return{'type':'format','content':''+o(_0x4e0e4b,'*Set\x20table\x20type:*\x20%0',_0x2e0235)};}_0x43cd20['plugins']['has']('TableLayout')&&(_0x414a6e['enableCommand']('insertTableLayout'),_0x414a6e['enableDefaultAttributesIntegration']('tableType'),_0x414a6e['descriptionFactory']['registerElementLabel'](_0x2c148b=>_0x2c148b['is']('element','table')&&'layout'===_0x2c148b['getAttribute']('tableType'),_0x316f2e=>o(_0x4e0e4b,'ELEMENT_LAYOUT_TABLE',_0x316f2e)),_0x414a6e['descriptionFactory']['registerDescriptionCallback'](_0x4cbfbb=>{const {data:_0x1c340b}=_0x4cbfbb;if(_0x1c340b&&'tableType'==_0x1c340b['key'])switch(_0x1c340b['newValue']){case'layout':return _0x257127(o(_0x4e0e4b,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x257127(o(_0x4e0e4b,'ELEMENT_CONTENT_TABLE'));}}));}}const Re=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ae=/* #__PURE__ -- @preserve */
25
- Object['fromEntries'](Re['map'](_0x533bc1=>[_0x533bc1,null]));class Mt extends _0x49ec79{static get['requires'](){return[Dt];}['afterInit'](){const _0x59112c=this['editor'];if(!_0x59112c['plugins']['has']('TableClipboard'))return;const _0x489519=_0x59112c['plugins']['get']('TrackChangesEditing'),_0x1d8c09=_0x59112c['plugins']['get']('TableUtils'),_0x582368=_0x59112c['plugins']['get'](Dt),_0x5d660b=_0x59112c['plugins']['get']('TableClipboard'),_0x5879d1=_0x59112c['plugins']['get']('TableSelection'),_0x10d526=_0x59112c['plugins']['get'](_0xbc75e3);_0x582368['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x59112c['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x59112c['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x58b8e4=null,_0x5f1ed8=!0x1;_0x10d526['on']('contentInsertion',(_0x47698d,_0x3b9413)=>{_0x5f1ed8='paste'===_0x3b9413['method'];}),_0x59112c['model']['on']('insertContent',(_0x4b3773,_0x13dcd8)=>{if(!_0x5f1ed8&&null===_0x5879d1['getSelectedTableCells']())return;const [_0x47ede6,_0x321ad0]=_0x13dcd8,_0x51975d=_0x13dcd8[_0x13dcd8['length']-0x1];_0x51975d&&_0x51975d['forceDefaultExecution']||_0x489519['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x3294e0,_0x2b54c0,_0x1a7ef6,_0x482c7a,_0x263332){if(_0x2b54c0&&!_0x2b54c0['is']('documentSelection'))return!0x1;const _0x191d0b=_0x263332['getTableIfOnlyTableInContent'](_0x3294e0,_0x1a7ef6);if(!_0x191d0b||!Oe(_0x191d0b,void 0x0,_0x482c7a))return!0x1;const _0x4c05a6=_0x482c7a['getSelectionAffectedTableCells'](_0x1a7ef6['document']['selection']);if(!_0x4c05a6['length'])return!0x1;const _0x11c437=_0x4c05a6[0x0]['findAncestor']('table'),_0x44c119=_0x482c7a['getRowIndexes'](_0x4c05a6),_0x51ac09=_0x482c7a['getColumnIndexes'](_0x4c05a6),_0x1d0785={'startRow':_0x44c119['first'],'endRow':_0x44c119['last'],'startColumn':_0x51ac09['first'],'endColumn':_0x51ac09['last']};return 0x1==_0x4c05a6['length']&&(_0x1d0785['endRow']+=_0x482c7a['getRows'](_0x191d0b)-0x1,_0x1d0785['endColumn']+=_0x482c7a['getColumns'](_0x191d0b)-0x1),Oe(_0x11c437,_0x1d0785,_0x482c7a);}(_0x47ede6,_0x321ad0,_0x59112c['model'],_0x1d8c09,_0x5d660b)&&(_0x4b3773['stop'](),_0x58b8e4={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x59112c['model']['change'](()=>{_0x59112c['model']['insertContent'](_0x13dcd8[0x0],_0x13dcd8[0x1],_0x13dcd8[0x2],{'forceDefaultExecution':!0x0});const _0x16d3ec=_0xd8d5dd(),{rowInsertionRanges:_0x213ff4,columnInsertionRanges:_0x4f5726,insertionRanges:_0x1ebc72,deletionRanges:_0x2c3670,cells:_0x287a7a}=_0x58b8e4;_0x213ff4['length']&&_0x489519['markMultiRangeInsertion'](_0x213ff4,'tablePasteRow',{'tablePasteChainId':_0x16d3ec}),_0x4f5726['length']&&_0x489519['markMultiRangeInsertion'](_0x4f5726,'tablePasteColumn',{'tablePasteChainId':_0x16d3ec}),_0x1ebc72['length']&&(_0x489519['markMultiRangeInsertion'](_0x1ebc72,'tablePaste',{'tablePasteChainId':_0x16d3ec,'skipNestingCheck':!0x0}),_0x1ebc72['forEach'](_0x466c65=>_0x466c65['detach']?.())),_0x2c3670['length']&&(_0x489519['markMultiRangeDeletion'](_0x2c3670,'tablePaste',{'tablePasteChainId':_0x16d3ec,'skipNestingCheck':!0x0}),_0x2c3670['forEach'](_0x4df1a4=>_0x4df1a4['detach']?.()));const _0x56c461=_0x489519['markMultiRangeBlockFormat'](_0x287a7a['map'](({element:_0x3183d9})=>_0x3183d9),{'formatGroupId':_0xd8d5dd()},[],'tablePasteCell',{'tablePasteChainId':_0x16d3ec});if(_0x56c461){const _0x29d7ba=_0x56c461['getMarkers'](),_0x2ba0d7=[];for(const {element:_0x489843,attributes:_0x4e8472}of _0x287a7a){if(!_0x4e8472)continue;const _0x82ebaf=_0x59112c['model']['createRangeOn'](_0x489843),_0x2fecd8=_0x29d7ba['find'](_0x43304e=>_0x43304e['getRange']()['isEqual'](_0x82ebaf));_0x2fecd8&&_0x2ba0d7['push']([_0x2fecd8['name'],_0x4e8472]);}_0x2ba0d7['length']&&_0x56c461['setAttribute']('markerAttributes',Object['fromEntries'](_0x2ba0d7));}_0x58b8e4=null;}));},{'priority':_0x48eedd['high']+0xa}),_0x10d526['on']('contentInsertion',()=>{_0x5f1ed8=!0x1;},{'priority':'lowest'}),_0x59112c['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x2bc50a,_0x22afdc)=>{const [_0xf7cf6c,_0x58a199,,_0x700d8f]=_0x22afdc;if(!_0x58b8e4)return;_0x2bc50a['stop']();const _0x5043a7=_0xf7cf6c['cell'],_0x14a4b7=_0x58a199,_0x310494=Be(_0x5043a7),_0x401634=Be(_0x14a4b7);_0x2bc50a['return']=_0x5043a7;let _0x3b9113=null,_0x12675f=null;if(_0x401634||_0x310494){if(_0x310494&&!_0x401634){_0x700d8f['remove'](_0x5043a7['getChild'](0x0));for(const _0x3f6472 of Array['from'](_0x14a4b7['getChildren']()))_0x700d8f['insert'](_0x3f6472,_0x5043a7,'end');const _0x3f9a77=_0x58b8e4['rowInsertionIndexes']['includes'](_0xf7cf6c['row']),_0x470ad2=_0x58b8e4['columnInsertionIndexes']['includes'](_0xf7cf6c['column']);_0x3f9a77||_0x470ad2||(_0x3b9113=_0x3090d1['fromRange'](_0x700d8f['createRangeIn'](_0x5043a7)));}else _0x401634&&!_0x310494&&(_0x12675f=_0x700d8f['createRangeIn'](_0x5043a7));}else{const _0x1fc12d=_0x700d8f['createElement']('tableCellSuggestion'),_0x4c8ba8=_0x700d8f['createElement']('tableCellSuggestion');_0x700d8f['wrap'](_0x700d8f['createRangeIn'](_0x5043a7),_0x4c8ba8),_0x700d8f['insert'](_0x1fc12d,_0x5043a7,0x0);for(const _0x2bf1dc of Array['from'](_0x14a4b7['getChildren']()))_0x700d8f['insert'](_0x2bf1dc,_0x1fc12d,'end');_0x3b9113=_0x3090d1['fromRange'](_0x700d8f['createRangeOn'](_0x1fc12d)),_0x12675f=_0x3090d1['fromRange'](_0x700d8f['createRangeOn'](_0x4c8ba8));}const _0x145192=Array['from'](_0x14a4b7['getAttributes']())['filter'](([_0x55aead])=>Re['includes'](_0x55aead));_0x58b8e4['cells']['push']({'element':_0x5043a7,'attributes':_0x145192['length']?Object['fromEntries'](_0x145192):null}),_0x3b9113&&_0x58b8e4['insertionRanges']['push'](_0x3b9113),_0x12675f&&_0x58b8e4['deletionRanges']['push'](_0x12675f);},{'priority':'high'}),_0x1d8c09['on']('insertColumns',(_0xca9629,_0x573da4)=>{const [_0x140c9c,_0x3089bd={}]=_0x573da4;if(!_0x58b8e4)return;const _0x11db82=_0x3089bd['at']||0x0,_0x25799b=_0x3089bd['columns']||0x1;_0x58b8e4['columnInsertionIndexes']=new Array(_0x25799b)['fill'](_0x11db82)['map']((_0x52b241,_0x3f7088)=>_0x52b241+_0x3f7088);for(const {cell:_0x1922ef}of _0x1d8c09['createTableWalker'](_0x140c9c,{'startColumn':_0x11db82,'endColumn':_0x11db82+_0x25799b-0x1}))_0x58b8e4['columnInsertionRanges']['push'](_0x59112c['model']['createRangeOn'](_0x1922ef));},{'priority':'low'}),_0x1d8c09['on']('insertRows',(_0x110cf,_0x3f9e42)=>{const [_0x57a317,_0x3787e4={}]=_0x3f9e42;if(!_0x58b8e4)return;const _0x1b8775=_0x3787e4['at']||0x0,_0x3ac75e=_0x3787e4['rows']||0x1;_0x58b8e4['rowInsertionIndexes']=new Array(_0x3ac75e)['fill'](_0x1b8775)['map']((_0x4c984e,_0x5d2688)=>_0x4c984e+_0x5d2688);for(const {cell:_0x48d7a8}of _0x1d8c09['createTableWalker'](_0x57a317,{'startRow':_0x1b8775,'endRow':_0x1b8775+_0x3ac75e-0x1}))_0x58b8e4['rowInsertionRanges']['push'](_0x59112c['model']['createRangeOn'](_0x48d7a8));},{'priority':'low'}),_0x489519['descriptionFactory']['registerDescriptionCallback'](_0x90da81=>{if(_0x90da81['subType']&&_0x90da81['subType']['startsWith']('tablePaste'))return _0x90da81['previous']?{}:{'type':'insertion','content':o(_0x59112c['locale'],'*Replace\x20table\x20cells*')};});const _0x3829bc=()=>!0x1;for(const _0x35723d of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x489519['_suggestionFactory']['registerCustomCallback']('insertion',_0x35723d,'join',_0x3829bc),_0x489519['_suggestionFactory']['registerCustomCallback']('deletion',_0x35723d,'join',_0x3829bc),_0x489519['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x35723d,'join',_0x3829bc);_0x489519['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x3829bc),_0x489519['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x246260,_0x1319cf,_0x3b5002)=>{const _0x443da6=_0x246260['map'](_0x266a97=>_0x266a97['getContainedElement']())['filter'](_0x3a14fc=>_0x3a14fc),_0x301d09=new Map(_0x443da6['map'](_0x14aa6f=>[_0x14aa6f,null]));if(_0x58b8e4){for(const {element:_0x1309bb,attributes:_0x3aefbe}of _0x58b8e4['cells'])_0x3aefbe&&_0x301d09['set'](_0x1309bb,_0x3aefbe);}else{if(_0x3b5002&&_0x3b5002['markerAttributes'])for(const [_0x426115,_0x258370]of Object['entries'](_0x3b5002['markerAttributes'])){const _0x9141c4=_0x59112c['model']['markers']['get'](_0x426115),_0x33a871=_0x9141c4?_0x9141c4['getRange']()['getContainedElement']():null;_0x33a871&&_0x301d09['set'](_0x33a871,_0x258370);}}_0x59112c['model']['change'](_0x5ac3f2=>{for(const [_0x1d44cd,_0x11f453]of _0x301d09)_0x5ac3f2['setAttributes']({...Ae,..._0x11f453},_0x1d44cd);});});const _0x4533c2=(_0x67a7b1,_0x4c62f3)=>{_0x489519['_suggestionFactory']['registerCustomCallback'](_0x67a7b1,'tablePaste',_0x4c62f3,(_0x7fb8ce,_0x15c553,_0x56949e)=>{_0x59112c['model']['change'](_0x3513d2=>{const _0x16af7a=[];for(const _0x3fd067 of _0x7fb8ce){const _0x56c043=_0x3fd067['start']['nodeAfter'];_0x56c043['is']('element','tableCellSuggestion')&&_0x16af7a['push'](_0x56c043);}_0x489519['_suggestionFactory']['getSuggestionCallback'](_0x67a7b1,null,_0x4c62f3)(_0x7fb8ce,_0x15c553,_0x56949e);for(const _0x3c0805 of _0x16af7a)'$graveyard'!=_0x3c0805['root']['rootName']&&_0x3513d2['unwrap'](_0x3c0805);});});};_0x4533c2('insertion','accept'),_0x4533c2('insertion','discard'),_0x4533c2('deletion','accept'),_0x4533c2('deletion','discard'),_0x489519['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x4539ad=>{const _0x3c0c85=_0x4539ad['map'](_0x278a9e=>_0x278a9e['getContainedElement']()),_0x59904b=_0x3c0c85[0x0]['findAncestor']('table'),{minRow:_0x44b6a5,maxRow:_0x4fbc55}=_0x582368['_getCoordsForCells'](_0x3c0c85);_0x1d8c09['removeRows'](_0x59904b,{'at':_0x44b6a5,'rows':_0x4fbc55-_0x44b6a5+0x1});}),_0x489519['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x4fcab9=>{const _0x193ea5=_0x4fcab9['map'](_0x5b700c=>_0x5b700c['getContainedElement']()),_0x1c1199=_0x193ea5[0x0]['findAncestor']('table'),{minColumn:_0x5b765f,maxColumn:_0x6cc142}=_0x582368['_getCoordsForCells'](_0x193ea5);_0x1d8c09['removeColumns'](_0x1c1199,{'at':_0x5b765f,'columns':_0x6cc142-_0x5b765f+0x1});});const _0x1e6ca7=(_0xf67b5e,_0x59ab9e)=>{if(!_0x59ab9e['subType']||!_0x59ab9e['subType']['startsWith']('tablePaste'))return;const _0x155d38=_0x59ab9e['attributes']['tablePasteChainId'],_0x5303d7=_0x489519['getSuggestions']()['filter'](_0x410adf=>_0x410adf['isInContent']&&_0x410adf['attributes']&&_0x410adf['attributes']['tablePasteChainId']==_0x155d38);_0x5303d7['length']&&_0x59ab9e['getAllAdjacentSuggestions']()['length']!=_0x5303d7['length']&&_0x5303d7['reduce']((_0x18d9f5,_0x146abb)=>(_0x18d9f5['next']=_0x146abb,_0x146abb['previous']=_0x18d9f5,_0x146abb));};function _0xba8d11(_0x46a7e9,_0x33891b=!0x0){const {id:_0x5c92f0,authorId:_0xb26eef}=_0x489519['_splitMarkerName'](_0x46a7e9['markerName']),_0x3c70d4=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x2d9d6e=_0x489519['activeMarkers']['includes'](_0x46a7e9['markerName']);return _0x2d9d6e&&_0x3c70d4['push']('ck-suggestion-marker--active'),{'classes':_0x3c70d4,'attributes':{'data-suggestion':_0x5c92f0,'data-author-id':_0xb26eef},'priority':_0x2d9d6e&&_0x33891b?0xbc2:0xbb8};}_0x489519['on']('suggestionLoaded',_0x1e6ca7,{'priority':'high'}),_0x489519['on']('suggestionUnloaded',_0x1e6ca7,{'priority':'high'}),_0x59112c['model']['document']['registerPostFixer'](()=>{let _0x2f5a33=!0x1;const _0xe1285=Array['from'](_0x59112c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2b098f,data:_0x26860e}of _0xe1285){const {group:_0x20f1fa,type:_0x2c5d6a,id:_0xc85582}=_0x489519['_splitMarkerName'](_0x2b098f);if('suggestion'!=_0x20f1fa||'deletion'!=_0x2c5d6a||_0x26860e['oldRange'])continue;if(!_0x489519['hasSuggestion'](_0xc85582))continue;const _0x52b9c6=_0x489519['getSuggestion'](_0xc85582)['getRanges'](),_0x41040d=_0x59112c['plugins']['get']('Users')['me'];for(const _0x460344 of _0x489519['getSuggestions']()){if(!_0x460344['isInContent']||_0x460344['author']!=_0x41040d)continue;if('formatBlock'!=_0x460344['type']||'tablePasteCell'!=_0x460344['subType'])continue;if(_0x460344['getRanges']()['every'](_0x26cc00=>_0x52b9c6['some'](_0x409e1c=>_0x409e1c['containsRange'](_0x26cc00,!0x0)))){for(const _0x5ed2bc of _0x460344['getAllAdjacentSuggestions']())_0x5ed2bc['isInContent']&&(_0x5ed2bc['discard'](),_0x2f5a33=!0x0);}}}return _0x2f5a33;}),_0x59112c['model']['document']['registerPostFixer'](_0x1d8502=>{const _0x44b913=_0x59112c['commands']['get']('redo');if(!_0x44b913||!_0x44b913['_createdBatches']['has'](_0x1d8502['batch']))return!0x1;let _0x3c3f90=!0x1;const _0x1258dd=_0x59112c['plugins']['get']('Users')['me'],_0x3f689b=_0x59112c['model']['document']['differ']['getChanges'](),_0x3d2214=Array['from'](_0x59112c['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x4f854b,data:_0x49d5b1})=>{const {group:_0x26f58d,subType:_0x24316e,authorId:_0x13c08c}=_0x489519['_splitMarkerName'](_0x4f854b);return'suggestion'==_0x26f58d&&'tablePaste'==_0x24316e&&_0x13c08c==_0x1258dd['id']&&!_0x49d5b1['oldRange'];});for(const _0x41be78 of _0x3f689b){if('insert'!=_0x41be78['type']||'tableCellSuggestion'!=_0x41be78['name']||0x1!=_0x41be78['length'])continue;const _0x12b636=_0x1d8502['createRange'](_0x41be78['position'],_0x41be78['position']['getShiftedBy'](0x1));if(!_0x3d2214['find'](({data:_0x3c9ae3})=>_0x3c9ae3['newRange']['isEqual'](_0x12b636))){for(const {name:_0x17b66a,data:_0x59dbdf}of _0x3d2214)if(_0x12b636['containsRange'](_0x59dbdf['newRange'])){_0x1d8502['updateMarker'](_0x17b66a,{'range':_0x12b636}),_0x3c3f90=!0x0;break;}}}return _0x3c3f90;}),_0x59112c['model']['document']['registerPostFixer'](_0x1f00c5=>{let _0x1171c9=!0x1;const _0x439c08=_0x59112c['plugins']['get']('Users')['me'],_0x14ce55=_0x489519['getSuggestions']()['filter'](_0x441fb4=>_0x441fb4['isInContent']&&_0x441fb4['author']==_0x439c08),_0x37004d=new Set(),_0x31b419=new Set();for(const _0x1e0c1d of _0x14ce55)if('tablePaste'==_0x1e0c1d['subType'])for(const _0x161b29 of _0x1e0c1d['getMarkers']()){const _0x59e798=_0x161b29['getRange']()['getContainedElement']();if(_0x59e798){if(_0x59e798['is']('element','tableCellSuggestion')&&Be(_0x59e798)){_0x1e0c1d['removeMarker'](_0x161b29['name']),_0x37004d['add'](_0x59e798),_0x1171c9=!0x0;const _0x4bb08c=_0x59e798['nextSibling'],_0x5b5b9f=_0x59e798['previousSibling'],_0x285d88=_0x4bb08c&&_0x4bb08c['is']('element','tableCellSuggestion'),_0x44842b=_0x5b5b9f&&_0x5b5b9f['is']('element','tableCellSuggestion');_0x285d88&&!_0x37004d['has'](_0x4bb08c)&&_0x31b419['add'](_0x4bb08c),_0x44842b&&!_0x37004d['has'](_0x5b5b9f)&&_0x31b419['add'](_0x5b5b9f);}else _0x59e798['is']('element','paragraph')&&_0x59e798['isEmpty']&&(_0x1e0c1d['removeMarker'](_0x161b29['name']),_0x1171c9=!0x0);}}else{if('tablePasteCell'==_0x1e0c1d['subType']){if(!_0x1e0c1d['attributes']||!_0x1e0c1d['attributes']['tablePasteChainId'])continue;const _0x3bb9c0=_0x1e0c1d['attributes']['markerAttributes'];if(_0x3bb9c0&&Object['keys'](_0x3bb9c0)['length'])continue;const _0x1f4f4=_0x1e0c1d['attributes']['tablePasteChainId'];let _0x29ceaf=!0x0,_0x5b81b2=!0x0;for(const _0xcf1c4b of _0x14ce55)if(_0xcf1c4b['subType']&&_0xcf1c4b['subType']['startsWith']('tablePaste')){if(!_0xcf1c4b['attributes']['tablePasteChainId']){_0x5b81b2=!0x1;break;}if(_0xcf1c4b['id']!=_0x1e0c1d['id']&&_0xcf1c4b['attributes']['tablePasteChainId']==_0x1f4f4){_0x29ceaf=!0x1;break;}}_0x5b81b2&&_0x29ceaf&&(_0x1e0c1d['removeMarkers'](),_0x1171c9=!0x0);}}for(const _0x335bcc of _0x37004d)_0x1f00c5['remove'](_0x335bcc);for(const _0x1023c5 of _0x31b419)_0x1f00c5['unwrap'](_0x1023c5);return _0x1171c9;}),_0x59112c['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x441359=>_0xba8d11(_0x441359),'converterPriority':'high'}),_0x59112c['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x551b37,_0x4631e8)=>_0x4631e8['options']['showSuggestionHighlights']?_0xba8d11(_0x551b37,!0x1):null,'converterPriority':'high'});const _0x5538ff=_0x59112c['editing']['view'];this['listenTo'](_0x5538ff['document'],'clipboardOutput',(_0x3adce2,_0x3d4815)=>{const _0x2ff66f=[];for(const _0x526de6 of _0x5538ff['createRangeIn'](_0x3d4815['content'])['getItems']())_0x526de6['is']('element','suggestion-td')&&_0x2ff66f['push'](_0x526de6);_0x5538ff['change'](_0x4e25ea=>{for(const _0x16ea26 of _0x2ff66f)_0x4e25ea['move'](_0x4e25ea['createRangeIn'](_0x16ea26),_0x4e25ea['createPositionBefore'](_0x16ea26)),_0x4e25ea['remove'](_0x16ea26);});});}}function Be(_0x4f601c){if(_0x4f601c['isEmpty'])return!0x0;const _0x55cef3=_0x4f601c['getChild'](0x0);return _0x55cef3['is']('element','paragraph')&&_0x55cef3['isEmpty'];}function Oe(_0x266a9e,_0x694daf={},_0x401a22){for(const {isAnchor:_0x18aa26,cellHeight:_0x2a3821,cellWidth:_0x14ec4b}of _0x401a22['createTableWalker'](_0x266a9e,{'includeAllSlots':!0x0,..._0x694daf}))if(!_0x18aa26||0x1!=_0x2a3821||0x1!=_0x14ec4b)return!0x1;return!0x0;}class Rt extends _0x49ec79{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x268ae5=this['editor']['plugins']['get']('TrackChangesEditing');_0x268ae5['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x268ae5['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x268ae5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x268ae5['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x268ae5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x268ae5['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x24a834,_0x2575a4){const _0x234379=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2562e4=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x421053=_0x2575a4['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3a5165=_0x2562e4['getColumnGroupElement'](_0x421053);let _0x1c0f8f=_0x3a5165?_0x2562e4['getTableColumnsWidths'](_0x3a5165):null,_0x5086dd=_0x421053['getAttribute']('tableWidth')||null;const _0x1ff52c=_0x2575a4['tableWidth']||_0x5086dd,_0x4df136=_0x2575a4['columnWidths']||_0x1c0f8f,_0x492932=this['editor']['plugins']['get']('Users')['me'];for(const _0x3ead82 of _0x234379['getSuggestions']()){const _0x24ea88=_0x3ead82['getContainedElement']();if('resizeTable'===_0x3ead82['subType']&&_0x24ea88===_0x421053){_0x3ead82['author']!==_0x492932&&_0x3ead82['discard']();const _0x371a00=_0x3ead82['data']['commandParams'];_0x5086dd=_0x371a00[0x0]['tableWidth'],_0x1c0f8f=_0x371a00[0x0]['columnWidths'];break;}}_0x24a834({'table':_0x421053,'tableWidth':_0x1ff52c,'columnWidths':_0x4df136}),_0x234379['markBlockFormat'](_0x421053,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5086dd,'columnWidths':_0x1c0f8f}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x270cd0){if('formatBlock'!=_0x270cd0['type']&&'formatInline'!=_0x270cd0['type'])return;const {data:_0x575fde}=_0x270cd0;if(_0x575fde&&'resizeTable'===_0x575fde['formatGroupId']){const _0x15e9d0='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x15e9d0)};}}}class Tt extends _0x49ec79{['afterInit'](){const _0x2f0765=this['editor'];_0x2f0765['plugins']['has']('Template')&&_0x2f0765['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Et extends _0x49ec79{['afterInit'](){const _0x5f08f8=this['editor'];if(!_0x5f08f8['commands']['get']('insertTableOfContents'))return;_0x5f08f8['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x181eb9=_0x5f08f8['plugins']['get']('TrackChangesEditing'),_0x2da96d=_0x5f08f8['locale'];_0x181eb9['descriptionFactory']['registerElementLabel']('tableOfContents',_0xefae0c=>o(_0x2da96d,'ELEMENT_TABLE_OF_CONTENTS',_0xefae0c));}}class Ut extends _0x49ec79{['afterInit'](){const _0x2de36e=this['editor'];if(!_0x2de36e['plugins']['has']('Title'))return;const _0x4ab8c1=_0x2de36e['plugins']['get']('TrackChangesEditing');_0x4ab8c1['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x2de36e['locale'],'ELEMENT_TITLE')),_0x2de36e['model']['document']['registerPostFixer'](_0x5f30b5=>{let _0x5e02d7=!0x1;const _0x33df04=Array['from'](_0x2de36e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4541bd,data:_0x584cd5}of _0x33df04){const {group:_0x3e2a43}=_0x4ab8c1['_splitMarkerName'](_0x4541bd);if('suggestion'!==_0x3e2a43||!_0x584cd5['newRange'])continue;const _0x2df4a5=_0x584cd5['newRange'],_0x3d4211=_0x2df4a5['end']['nodeBefore'];if(!_0x3d4211||!_0x3d4211['is']('element','title-content'))continue;if(!_0x2df4a5['start']['isTouching'](_0x2df4a5['end']))continue;const _0x5304c3=_0x2de36e['model']['schema']['getNearestSelectionRange'](_0x2df4a5['end'],'forward');if(_0x5304c3&&_0x5304c3['isCollapsed']){const _0x15c6b2=_0x5f30b5['createRange'](_0x2df4a5['start'],_0x5304c3['start']);_0x15c6b2['isEqual'](_0x2df4a5)||(_0x5f30b5['updateMarker'](_0x4541bd,{'range':_0x15c6b2}),_0x5e02d7=!0x0);}_0x5e02d7||(_0x5f30b5['removeMarker'](_0x4541bd),_0x5e02d7=!0x0);}return _0x5e02d7;});}}class Vt extends _0x49ec79{['afterInit'](){const _0x5f440e=this['editor'],_0x3012e7=_0x5f440e['plugins']['get']('TrackChangesEditing');_0x5f440e['plugins']['has']('Uploadcare')&&(_0x3012e7['enableCommand']('uploadcare'),_0x5f440e['plugins']['has']('UploadcareImageEdit')&&(_0x3012e7['enableCommand']('uploadcareImageEdit'),_0x3012e7['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x3012e7['descriptionFactory']['registerDescriptionCallback'](_0x47e306=>{if('attribute'!=_0x47e306['type'])return;const {data:_0x4338f2}=_0x47e306;return _0x4338f2&&'uploadcareImageId'==_0x4338f2['key']?{'type':'format','content':''}:void 0x0;})));}}class Ft extends _0x49ec79{['afterInit'](){const _0x386c32=this['editor'],_0x435f7f=_0x386c32['plugins']['get']('TrackChangesEditing');_0x386c32['plugins']['has']('UndoEditing')&&(_0x435f7f['enableCommand']('undo'),_0x435f7f['enableCommand']('redo'));}}class Pt extends _0x49ec79{static get['requires'](){return[Dt];}['afterInit'](){const _0x507297=this['editor'];if(!_0x507297['plugins']['has']('TableCaptionEditing'))return;_0x507297['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Gt extends _0x49ec79{['tableProperties'];['tableCellProperties'];constructor(_0x276c60){super(_0x276c60),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'],_0x276c60['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 _0x2df409=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x4ddd0c of this['tableProperties'])_0x2df409['enableCommand'](_0x4ddd0c,(_0x266a28,_0x444182)=>{const _0x2aa674=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x4ddd0c,[_0x2aa674],this['tableProperties'],'tableProperties',_0x266a28,_0x444182);});_0x2df409['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x2df409['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2df409['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x1cadce,_0x543b43)=>this['handleDiscardAction'](this['tableProperties'],_0x1cadce,_0x543b43)),_0x2df409['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x20432d of this['tableCellProperties'])this['editor']['commands']['get'](_0x20432d)&&_0x2df409['enableCommand'](_0x20432d,(_0x26221e,_0x1789a4)=>{const _0x39a867=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x20432d,_0x39a867,this['tableCellProperties'],'tableCellProperties',_0x26221e,_0x1789a4);});_0x2df409['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x2df409['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2df409['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x2f747f,_0x59b025)=>this['handleDiscardAction'](this['tableCellProperties'],_0x2f747f,_0x59b025)),_0x2df409['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x2df409['descriptionFactory']['registerAttributeLabel']('tableCellType',o(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x2df409['descriptionFactory']['registerDescriptionCallback'](_0x1e3718=>this['handleSuggestionDescription'](_0x1e3718)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x4be9e6,_0x1ba11e,_0xb4c00d,_0x3762aa,_0x4f7f23,_0x13ba5f){const _0x205488=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x13ba5f['batch'],()=>{for(const _0x325c54 of _0x1ba11e){if(this['_getSuggestion'](_0x325c54,_0x3762aa))_0x4f7f23(_0x13ba5f);else{const _0xb95430={};for(const _0x3fd39f of _0xb4c00d){const _0x27c440=_0x325c54['getAttribute'](_0x3fd39f);void 0x0!==_0x27c440&&(_0xb95430[_0x3fd39f]=_0x27c440);}_0x4f7f23(_0x13ba5f),_0x205488['markBlockFormat'](_0x325c54,{'commandParams':[_0xb95430]},[],_0x3762aa);}}});}['handleDiscardAction'](_0x5eb926,_0x11bf15,_0x3404e5){const _0x33781e=_0x11bf15[0x0]['start']['nodeAfter'],_0x3a27ea=_0x3404e5['commandParams'][0x0];this['editor']['model']['change'](_0x5b2254=>{for(const _0x3d53e6 of _0x5eb926)void 0x0!==_0x3a27ea[_0x3d53e6]?_0x5b2254['setAttribute'](_0x3d53e6,_0x3a27ea[_0x3d53e6],_0x33781e):_0x5b2254['removeAttribute'](_0x3d53e6,_0x33781e);});}['handleSuggestionDescription'](_0x3adb90){if(_0x3adb90['data'])switch(_0x3adb90['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'](_0x33bd1a,_0x242d52){const _0x3b7741=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x19dcbe of _0x3b7741['getSuggestions']({'skipNotAttached':!0x0})){const _0x5772ae=_0x19dcbe['getContainedElement']();if(_0x19dcbe['subType']===_0x242d52&&_0x5772ae===_0x33bd1a)return _0x19dcbe;}return null;}['_registerTablePropertiesAttributes'](){const _0x2225c6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4d4174=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x1cce18 of _0x4d4174){const _0x276f94=_0x1cce18['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x2225c6['descriptionFactory']['registerAttributeLabel'](_0x1cce18,o(this['editor']['locale'],'FORMAT_'+_0x276f94));}}}class Lt extends _0x49ec79{['afterInit'](){const _0x15c260=this['editor'];if(!_0x15c260['plugins']['has']('LineHeight'))return;const _0x5b1945=_0x15c260['plugins']['get']('TrackChangesEditing'),_0x59680d=_0x15c260['locale'];_0x5b1945['enableDefaultAttributesIntegration']('lineHeight'),_0x5b1945['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x59680d,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x49ec79{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0xd88bfa,_0x567a7d,_0x1ade08,_0x4edd94,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(_0xf5e9d0){super(_0xf5e9d0),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x4c3901,_0x231d13,_0x1ee131,_0x120509)=>{this['_model']['change'](()=>{for(const _0x4bf731 of[..._0x120509,..._0x1ee131])this['_model']['markers']['has'](_0x4bf731)&&_0xf5e9d0['editing']['reconvertMarker'](_0x4bf731);});}),this['descriptionFactory']=new E(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new qt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0xf5e9d0['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0xf5e9d0['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0xf5e9d0['config']['get']('trackChanges.trackFormatChanges'),_0xf5e9d0['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0xf5e9d0['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0xf5e9d0,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x30d673=this['editor'];_0x30d673['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4c22a3,{writer:_0x597ef8})=>{let _0x1c8176='suggestion:'+_0x4c22a3['getAttribute']('suggestion-type')+':'+_0x4c22a3['getAttribute']('id');return _0x4c22a3['getAttribute']('marker-count')&&(_0x1c8176+=':'+_0x4c22a3['getAttribute']('marker-count')),_0x597ef8['createElement']('$marker',{'data-name':_0x1c8176});}}),_0x30d673['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x30d673['model']['document']['registerPostFixer'](_0x3e8c67=>{let _0x5848ab=!0x1;const _0x149ef9=Array['from'](_0x30d673['model']['document']['differ']['getChangedMarkers']()),_0x4b8724=new Set();for(const {name:_0x4f51ad,data:_0x276080}of _0x149ef9){const {group:_0xcdf46c,type:_0x13de80,subType:_0x27b975,id:_0x325794}=this['_splitMarkerName'](_0x4f51ad);if('suggestion'!==_0xcdf46c)continue;const _0x34e9cc=_0x27b975?'suggestion:'+_0x13de80+':'+_0x27b975+':'+_0x325794:'suggestion:'+_0x13de80+':'+_0x325794,_0x409479=_0x30d673['model']['markers']['getMarkersGroup'](_0x34e9cc),_0x4b794d=_0x30d673['model']['markers']['get'](_0x4f51ad),_0x2f334c=this['_suggestions']['get'](_0x325794);if(null!=_0x276080['newRange']){'formatInline'==_0x13de80&&(_0x5848ab=_0x5848ab||Wt(_0x276080['newRange'],_0x4f51ad,_0x3e8c67,_0x30d673['model']['schema']));const _0x3bbaba='attribute'==_0x13de80&&this['_isBlockAttribute'](_0x27b975['split']('|')[0x0]),_0x1823d0='attribute'==_0x13de80&&this['_isInlineAttribute'](_0x27b975['split']('|')[0x0]);if(_0x276080['newRange']['isCollapsed']||'$graveyard'==_0x276080['newRange']['root']['rootName']||'formatBlock'==_0x13de80&&!Qt(_0x276080['newRange'])||_0x3bbaba&&!Qt(_0x276080['newRange'])||_0x1823d0&&Xt(_0x276080['newRange'])||'deletion'==_0x13de80&&Xt(_0x276080['newRange'])||_0x4b794d&&Yt(_0x4b794d,_0x409479))_0x3e8c67['removeMarker'](_0x4f51ad),_0x5848ab=!0x0;else{if(!_0x2f334c||!_0x2f334c['isInContent'])continue;if(_0x276080['newRange']&&_0x276080['oldRange']&&_0x276080['newRange']['isEqual'](_0x276080['oldRange']))continue;_0x4b8724['add'](_0x2f334c);}}}return _0x4b8724['size']>0x0&&(_0x5848ab=!!this['_joinWithAdjacentSuggestions'](_0x4b8724)||_0x5848ab),_0x5848ab;}),_0x30d673['model']['document']['registerPostFixer'](_0x32bb2f=>{let _0x5b1faf=!0x1;for(const _0x21fddd of _0x30d673['model']['document']['differ']['getChanges']())if('insert'==_0x21fddd['type'])for(const _0x352625 of this['_suggestions']['values']()){if(_0x352625['isMultiRange']||!_0x352625['isInContent'])continue;const _0x48b841='formatBlock'==_0x352625['type'],_0x47c91c=this['_getAttributeKey'](_0x352625),_0x1527bf=_0x47c91c&&this['_isBlockAttribute'](_0x47c91c);if(!_0x48b841&&!_0x1527bf)continue;const _0x4e5134=_0x352625['getFirstRange']();if(_0x4e5134['start']['parent']!=_0x4e5134['end']['parent']&&!_0x4e5134['end']['isAtEnd']){const _0x5e0063=_0x30d673['model']['createPositionAt'](_0x4e5134['start']['nodeAfter'],'end'),_0x3f9401=_0x30d673['model']['createRange'](_0x4e5134['start'],_0x5e0063);_0x32bb2f['updateMarker'](_0x352625['getFirstMarker'](),{'range':_0x3f9401}),_0x5b1faf=!0x0;}}return _0x5b1faf;}),_0x30d673['model']['document']['registerPostFixer'](_0x1f1261=>this['_processAttributeChanges'](_0x1f1261)),_0x30d673['model']['document']['registerPostFixer'](_0xa4febc=>!_0xa4febc['batch']['isLocal']&&this['_processAttributeSuggestions'](_0xa4febc)),_0x30d673['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x30d673['model']['document']['on']('change:data',(_0x5e264e,_0x48271e)=>{if(!_0x48271e['isLocal']||_0x48271e['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x6fd826=_0x30d673['model']['document']['differ']['getChanges']();if(0x0==_0x6fd826['length'])return;const _0x557db1=[],_0xaf321d=_0x6fd826['filter'](_0xd75578=>'attribute'==_0xd75578['type']),_0x494046=_0x6fd826['filter'](_0x2a77cc=>'insert'==_0x2a77cc['type']&&'$text'!=_0x2a77cc['name']);for(const _0x1bf58f of _0xaf321d)this['_isRegisteredAttribute'](_0x1bf58f['attributeKey'])&&_0x557db1['push']({'key':_0x1bf58f['attributeKey'],'newValue':_0x1bf58f['attributeNewValue'],'oldValue':_0x1bf58f['attributeOldValue'],'range':Zt(_0x1bf58f['range'],_0x30d673['model'])});for(const _0x318787 of _0x494046){if('rename'!=_0x318787['action']&&'refresh'!=_0x318787['action'])continue;const _0x155271=tn(_0x318787['position']['nodeAfter'],_0x30d673['model']),_0x278113=_0x318787['before'];'rename'==_0x318787['action']&&_0x557db1['push']({'key':m,'newValue':_0x318787['name'],'oldValue':_0x278113['name'],'range':_0x155271});for(const [_0x6a2cd3,_0x4d88fd]of _0x278113['attributes']){if(!this['_isRegisteredAttribute'](_0x6a2cd3))continue;const _0xc3b853=_0x318787['attributes']['get'](_0x6a2cd3);_0x4d88fd!==_0xc3b853&&_0x557db1['push']({'key':_0x6a2cd3,'newValue':_0xc3b853,'oldValue':_0x4d88fd,'range':_0x155271});}for(const [_0x28d77f,_0x11852a]of _0x318787['attributes'])this['_isRegisteredAttribute'](_0x28d77f)&&(_0x278113['attributes']['has'](_0x28d77f)||_0x557db1['push']({'key':_0x28d77f,'newValue':_0x11852a,'oldValue':null,'range':_0x155271}));}0x0!=_0x557db1['length']&&_0x30d673['model']['enqueueChange'](_0x48271e,_0x12791f=>{const _0x41b530=_0xd8d5dd();for(const {range:_0x44c6a6,key:_0x14a796,oldValue:_0x4de410,newValue:_0x184dd9}of _0x557db1)this['markAttributeChange'](_0x44c6a6,_0x14a796,_0x4de410,_0x184dd9,{'groupId':_0x41b530});this['_reduceExistingSuggestions'](_0x12791f,_0x557db1);});},{'priority':'lowest'}),_0x30d673['model']['markers']['on']('update:suggestion',(_0x41b7bb,_0x524c31,_0x1ad170)=>{if(null==_0x1ad170){const {id:_0xed0642}=this['_splitMarkerName'](_0x524c31['name']),_0x150f35=this['_suggestions']['get'](_0xed0642);_0x150f35&&_0x150f35['addMarkerName'](_0x524c31['name']);}}),_0x30d673['model']['document']['on']('change:data',()=>{const _0xc5952=Array['from'](_0x30d673['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5d693d=>'suggestion'===this['_splitMarkerName'](_0x5d693d['name'])['group']);if(0x0===_0xc5952['length'])return;_0xc5952['sort']((_0x229bbc,_0x183fbb)=>{const _0x239b6b=_0x229bbc['data']['oldRange'],_0x3ca592=_0x183fbb['data']['oldRange'];return null===_0x239b6b&&null===_0x3ca592?0x0:null===_0x239b6b&&null!==_0x3ca592?-0x1:null!==_0x239b6b&&null===_0x3ca592?0x1:_0x239b6b['start']['isBefore'](_0x3ca592['start'])?-0x1:0x1;});const _0x27002d=new Set(),_0x45f38c=new Set();for(const {name:_0x2e28b7,data:_0x5b1d05}of _0xc5952){const {id:_0x4211a7}=this['_splitMarkerName'](_0x2e28b7);if(null===_0x5b1d05['oldRange']){const _0x5a2611=this['_handleNewSuggestionMarker'](_0x2e28b7);_0x45f38c['add'](_0x5a2611);}else{const _0x4100d3=this['_suggestions']['get'](_0x4211a7);null!==_0x5b1d05['newRange']||_0x4100d3['isInContent']?(_0x27002d['add'](_0x4100d3['head']),_0x45f38c['add'](_0x4100d3)):this['_removeSuggestion'](_0x4100d3);}}_0x45f38c['size']>0x0&&this['_refreshSuggestionsChain'](_0x45f38c);for(const _0x2e8942 of _0x27002d)this['fire']('suggestionChanged',_0x2e8942);}),_0x30d673['model']['on']('applyOperation',(_0x39417d,_0x4d3204)=>{const _0x1b8408=_0x4d3204[0x0];if(!this['_suggestions']['size'])return;if(!_0x1b8408['isDocumentOperation'])return;if(_0x1b8408['batch']['isUndo']||!_0x1b8408['batch']['isLocal'])return;let _0x3660c9,_0x188a33;switch(_0x1b8408['type']){case'insert':_0x3660c9=_0x30d673['model']['createPositionAt'](_0x1b8408['position']),_0x188a33=_0x3660c9['getShiftedBy'](_0x1b8408['howMany']);break;case'split':_0x3660c9=_0x30d673['model']['createPositionAt'](_0x1b8408['splitPosition']),_0x188a33=_0x30d673['model']['createPositionAt'](_0x1b8408['moveTargetPosition']);break;case'move':_0x3660c9=_0x30d673['model']['createPositionAt'](_0x1b8408['targetPosition']),_0x188a33=_0x3660c9['getShiftedBy'](_0x1b8408['howMany']);break;default:return;}const _0x4569fd=_0x30d673['model']['createRange'](_0x3660c9,_0x188a33);_0x30d673['model']['change'](()=>{for(const {suggestion:_0x426d24,meta:_0x4f8cdb}of this['_findSuggestions'](_0x4569fd)){if(_0x426d24['isMultiRange'])continue;if('formatInline'==_0x426d24['type'])continue;const _0x5d7a44=this['_getAttributeKey'](_0x426d24);if(_0x5d7a44&&this['_isBlockAttribute'](_0x5d7a44)&&'split'!=_0x1b8408['type'])continue;const _0x38c8e5=_0x426d24['data']&&_0x426d24['data']['multipleBlocks'];('formatBlock'!=_0x426d24['type']||'split'==_0x1b8408['type']&&!_0x38c8e5)&&(_0x4f8cdb['containsRangeInObject']||'insertion'==_0x426d24['type']&&_0x4f8cdb['isOwn']||_0x426d24['getFirstRange']()['containsRange'](_0x4569fd)&&this['_breakSuggestionMarker'](_0x426d24,_0x3660c9,_0x188a33));}});},{'priority':'lowest'}),_0x30d673['model']['on']('deleteContent',(_0x1c1748,_0x568f32)=>{const _0xec0d7e=_0x568f32[0x0],_0x2bdc88=_0x568f32[0x1];if(_0x2bdc88&&_0x2bdc88['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0xec0d7e['isCollapsed'])return;const _0x4697bd=_0x30d673['model']['schema'],{start:_0x453162,end:_0x11efd4}=_0xec0d7e['getFirstRange'](),_0x4ce452=_0x453162['nodeAfter']&&_0x4697bd['isLimit'](_0x453162['nodeAfter'])?null:_0x4697bd['getNearestSelectionRange'](_0x453162,'forward'),_0x42e36f=_0x11efd4['nodeBefore']&&_0x4697bd['isLimit'](_0x11efd4['nodeBefore'])?null:_0x4697bd['getNearestSelectionRange'](_0x11efd4,'backward'),_0x52bef2=_0x30d673['model']['createRange'](_0x4ce452?_0x4ce452['start']:_0x453162,_0x42e36f?_0x42e36f['end']:_0x11efd4);_0x30d673['model']['change'](_0x3996c3=>{this['markDeletion'](_0x52bef2);const _0x2aaa36=_0x30d673['model']['schema']['getNearestSelectionRange'](_0x52bef2['start']);_0xec0d7e['is']('documentSelection')?_0x3996c3['setSelection'](_0x2aaa36):_0xec0d7e['setTo'](_0x2aaa36);}),_0x1c1748['stop']();},{'priority':_0x48eedd['normal']+0xa}),_0x30d673['model']['on']('insertContent',(_0x43c618,_0x2f2501)=>{const _0xa77389=_0x2f2501[_0x2f2501['length']-0x1];_0xa77389&&_0xa77389['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x30d673['model']['change'](()=>{let _0x4cffc4=_0x30d673['model']['insertContent'](_0x2f2501[0x0],_0x2f2501[0x1],_0x2f2501[0x2],{'forceDefaultExecution':!0x0});if(!_0x4cffc4)return;_0x43c618['return']=_0x4cffc4['clone']();const _0x3fa22b=_0x4cffc4['end']['nodeBefore'],_0x36840a=_0x30d673['model']['schema'];_0x3fa22b&&_0x36840a['isBlock'](_0x3fa22b)&&!_0x36840a['isObject'](_0x3fa22b)&&(_0x4cffc4=_0x30d673['model']['createRange'](_0x4cffc4['start'],_0x30d673['model']['createPositionAt'](_0x3fa22b,'end'))),this['markInsertion'](_0x4cffc4);}),_0x43c618['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x4ea52b=new O(_0x30d673,this['_suggestions']);_0x30d673['commands']['add']('acceptSuggestion',_0x4ea52b),this['enableCommand']('acceptSuggestion');const _0x33072b=new x(_0x30d673,this['_suggestions']);_0x30d673['commands']['add']('discardSuggestion',_0x33072b),this['enableCommand']('discardSuggestion'),_0x30d673['commands']['add']('acceptAllSuggestions',new M(_0x30d673,_0x4ea52b,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x30d673['commands']['add']('discardAllSuggestions',new M(_0x30d673,_0x33072b,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x30d673['commands']['add']('acceptSelectedSuggestions',new R(_0x30d673,_0x4ea52b,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x30d673['commands']['add']('discardSelectedSuggestions',new R(_0x30d673,_0x33072b,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x1b6a8c=_0x30d673['plugins']['get']('CommentsRepository');this['listenTo'](_0x1b6a8c,'addComment',(_0x2b8837,{threadId:_0x351003})=>{const _0x3eb009=this['_suggestions']['get'](_0x351003);_0x3eb009&&_0x3eb009['commentThread']&&0x1===_0x3eb009['commentThread']['length']&&this['_updateSuggestionData'](_0x351003,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x1b6a8c,'removeComment',(_0x43946e,{threadId:_0x501d01})=>{const _0x5707c=this['_suggestions']['get'](_0x501d01);_0x5707c&&_0x5707c['commentThread']&&!_0x5707c['commentThread']['length']&&this['_updateSuggestionData'](_0x501d01,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x16d666){const _0x38e8ff=_0x517bb1([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]),_0x3902b0=0x3d8d0df,_0x4364b8=0x3df5397^_0x3902b0,_0x3d448d=window[_0x517bb1([0x44,0x61,0x74,0x65])][_0x517bb1([0x6e,0x6f,0x77])](),_0x4cf5ea=_0x16d666[_0x517bb1([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x42d3b6=new window[(_0x517bb1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x15b9d6=>{_0x4cf5ea[_0x517bb1([0x6f,0x6e,0x63,0x65])](_0x517bb1([0x72,0x65,0x61,0x64,0x79]),_0x15b9d6);}),_0x2ae3d3={[_0x517bb1([0x6b,0x74,0x79])]:_0x517bb1([0x45,0x43]),[_0x517bb1([0x75,0x73,0x65])]:_0x517bb1([0x73,0x69,0x67]),[_0x517bb1([0x63,0x72,0x76])]:_0x517bb1([0x50,0x2d,0x32,0x35,0x36]),[_0x517bb1([0x78])]:_0x517bb1([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]),[_0x517bb1([0x79])]:_0x517bb1([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]),[_0x517bb1([0x61,0x6c,0x67])]:_0x517bb1([0x45,0x53,0x32,0x35,0x36])},_0x2ee240=_0x4cf5ea[_0x517bb1([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x517bb1([0x67,0x65,0x74])](_0x517bb1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x32fb64(){let _0xa45d60,_0x2f2e6d=null,_0x51a58f=null;try{if(_0x2ee240==_0x517bb1([0x47,0x50,0x4c]))return _0x517bb1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xa45d60=_0x4ff7ce(),!_0xa45d60)return _0x517bb1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xa45d60[_0x517bb1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x51a58f=_0x215444(_0xa45d60[_0x517bb1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xa45d60[_0x517bb1([0x6a,0x74,0x69])])),await _0x2c18f4()?_0x4abcf1()?_0x3f463b()?_0x517bb1([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x32c972()?(_0xa45d60[_0x517bb1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x517bb1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2f2e6d=_0x87a20c(_0x517bb1([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2c3381()):_0x517bb1([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x517bb1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x517bb1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x517bb1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3f463b(){const _0x2fb2a9=[_0x517bb1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x517bb1([0x74,0x72,0x69,0x61,0x6c])][_0x517bb1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa45d60[_0x517bb1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3d448d/0x3e8:0xe10*_0x4364b8;return _0xa45d60[_0x517bb1([0x65,0x78,0x70])]<_0x2fb2a9;}function _0x4abcf1(){const _0x13fa02=_0xa45d60[_0x517bb1([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x13fa02)return!0x1;if(_0x13fa02[_0x517bb1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x517bb1([0x2a])))return!0x0;if(_0x13fa02[_0x517bb1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x517bb1([0x54,0x43])))return!0x0;if(_0x13fa02[_0x517bb1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x517bb1([0x52,0x54,0x43]))){if(_0xd78f05())return!0x0;if(_0x639bed()||_0x42032a())return!0x0;}return!0x1;}function _0x32c972(){const _0x260700=_0xa45d60[_0x517bb1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x260700||0x0==_0x260700[_0x517bb1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3c26f7}=new URL(window[_0x517bb1([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x260700[_0x517bb1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c26f7))return!0x0;const _0x580c2a=_0x3c26f7[_0x517bb1([0x73,0x70,0x6c,0x69,0x74])](_0x517bb1([0x2e]));return _0x260700[_0x517bb1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x110761=>_0x110761[_0x517bb1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x517bb1([0x2a])))[_0x517bb1([0x6d,0x61,0x70])](_0x3548d5=>_0x3548d5[_0x517bb1([0x73,0x70,0x6c,0x69,0x74])](_0x517bb1([0x2e])))[_0x517bb1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x435331=>_0x435331[_0x517bb1([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x580c2a[_0x517bb1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x517bb1([0x6d,0x61,0x70])](_0x4846e6=>Array(_0x580c2a[_0x517bb1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4846e6[_0x517bb1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x517bb1([0x66,0x69,0x6c,0x6c])](_0x4846e6[0x0]===_0x517bb1([0x2a])?_0x517bb1([0x2a]):'')[_0x517bb1([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4846e6))[_0x517bb1([0x73,0x6f,0x6d,0x65])](_0xb2c2f6=>_0x580c2a[_0x517bb1([0x65,0x76,0x65,0x72,0x79])]((_0x514acc,_0x56150c)=>_0xb2c2f6[_0x56150c]===_0x514acc||_0xb2c2f6[_0x56150c]===_0x517bb1([0x2a])));}function _0x2c3381(){return _0x2f2e6d&&_0x51a58f?new window[(_0x517bb1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3afe30,_0x791f16)=>{_0x2f2e6d[_0x517bb1([0x74,0x68,0x65,0x6e])](_0x3afe30,_0x791f16),_0x51a58f[_0x517bb1([0x74,0x68,0x65,0x6e])](_0x25f2ab=>{_0x25f2ab!=_0x517bb1([0x56,0x61,0x6c,0x69,0x64])&&_0x3afe30(_0x25f2ab);},_0x791f16);}):_0x2f2e6d||_0x51a58f||_0x517bb1([0x56,0x61,0x6c,0x69,0x64]);}}function _0x215444(_0x2384ba,_0x96e7b1){return new window[(_0x517bb1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x54c09e=>{if(_0x6755fc())return _0x54c09e(_0x517bb1([0x56,0x61,0x6c,0x69,0x64]));_0x2b9e0c(),_0x4cf5ea[_0x517bb1([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x517bb1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x702e1=!0x1;const _0x2acaf3=_0xd8d5dd();function _0x237f4e(_0x2d3e30){return!!_0x2d3e30&&(typeof _0x2d3e30===_0x517bb1([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2d3e30===_0x517bb1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2d3e30[_0x517bb1([0x74,0x68,0x65,0x6e])]===_0x517bb1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2d3e30[_0x517bb1([0x63,0x61,0x74,0x63,0x68])]===_0x517bb1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4aee22(_0x20cb7b){_0x438b27(_0x20cb7b)[_0x517bb1([0x74,0x68,0x65,0x6e])](_0x426b67=>{if(!_0x426b67||_0x426b67[_0x517bb1([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x517bb1([0x6f,0x6b]))return _0x517bb1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xe01f23(_0x2d4e02(_0x2acaf3+_0x96e7b1))!=_0x426b67[_0x517bb1([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x517bb1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x517bb1([0x56,0x61,0x6c,0x69,0x64]);})[_0x517bb1([0x74,0x68,0x65,0x6e])](_0x58f92e=>(_0xb45ee9(),_0x58f92e),()=>{const _0xc0a569=_0x365c7d();return null==_0xc0a569?(_0xb45ee9(),_0x517bb1([0x56,0x61,0x6c,0x69,0x64])):_0x517bb1(_0x3d448d-_0xc0a569>(0x27d454df^_0x3902b0)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x517bb1([0x74,0x68,0x65,0x6e])](_0x54c09e)[_0x517bb1([0x63,0x61,0x74,0x63,0x68])](()=>{_0x54c09e(_0x517bb1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1f573d=0x3ee3e5f^_0x3902b0;function _0xb45ee9(){const _0x219afd=_0x517bb1([0x6c,0x6c,0x63,0x74,0x2d])+_0xe01f23(_0x2d4e02(_0x2384ba)),_0x136a7f=_0x1e0990(_0xe01f23(window[_0x517bb1([0x4d,0x61,0x74,0x68])][_0x517bb1([0x63,0x65,0x69,0x6c])](_0x3d448d/_0x1f573d)));window[_0x517bb1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x517bb1([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x219afd,_0x136a7f);}function _0x365c7d(){const _0x4c71fb=_0x517bb1([0x6c,0x6c,0x63,0x74,0x2d])+_0xe01f23(_0x2d4e02(_0x2384ba)),_0x3e0be2=window[_0x517bb1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x517bb1([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4c71fb);return _0x3e0be2?window[_0x517bb1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1e0990(_0x3e0be2),0x10)*_0x1f573d:null;}function _0x438b27(_0x8acfc3){return new window[(_0x517bb1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5ebb77,_0x20971a)=>{_0x8acfc3[_0x517bb1([0x74,0x68,0x65,0x6e])](_0x5ebb77,_0x20971a),window[_0x517bb1([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x20971a,0x3d9041f^_0x3902b0);});}}_0x4cf5ea[_0x517bb1([0x6f,0x6e])](_0x517bb1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1cfcd3,_0x3d794a)=>{if(_0x3d794a[0x0]!=_0x2384ba)return _0x54c09e(_0x517bb1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3d794a[0x1]={..._0x3d794a[0x1],[_0x517bb1([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2acaf3};},{[_0x517bb1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x517bb1([0x68,0x69,0x67,0x68])}),_0x4cf5ea[_0x517bb1([0x6f,0x6e])](_0x517bb1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x498c64=>{_0x237f4e(_0x498c64[_0x517bb1([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x702e1=!0x0,_0x4aee22(_0x498c64[_0x517bb1([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x517bb1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x517bb1([0x6c,0x6f,0x77])}),_0x42d3b6[_0x517bb1([0x74,0x68,0x65,0x6e])](()=>{_0x702e1||_0x54c09e(_0x517bb1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x6755fc(){return _0x4cf5ea[_0x517bb1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x517bb1([0x76,0x69,0x65,0x77])][_0x517bb1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x517bb1([0x61,0x75,0x74,0x6f]);}function _0x2b9e0c(){_0x4cf5ea[_0x517bb1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x517bb1([0x76,0x69,0x65,0x77])][_0x517bb1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x517bb1([0x61,0x75,0x74,0x6f]);}}function _0x87a20c(_0x5ed0d2){const _0x2d5e29=[new window[(_0x517bb1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x24dedf=>setTimeout(_0x24dedf,0x3d1ee13^_0x3902b0)),_0x42d3b6[_0x517bb1([0x74,0x68,0x65,0x6e])](()=>new window[(_0x517bb1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1fd3ca=>{let _0x33d126=0x0;_0x4cf5ea[_0x517bb1([0x6d,0x6f,0x64,0x65,0x6c])][_0x517bb1([0x6f,0x6e])](_0x517bb1([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x582ef9,_0x427f7d)=>{_0x427f7d[0x0][_0x517bb1([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x33d126++,_0x33d126==(0x3d8d537^_0x3902b0)&&(_0x1fd3ca(),_0x582ef9[_0x517bb1([0x6f,0x66,0x66])]());});}))];return window[_0x517bb1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x517bb1([0x72,0x61,0x63,0x65])](_0x2d5e29)[_0x517bb1([0x74,0x68,0x65,0x6e])](()=>_0x5ed0d2);}async function _0x4b74a0(){await _0x42d3b6,_0x4cf5ea[_0x517bb1([0x6d,0x6f,0x64,0x65,0x6c])][_0x517bb1([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1ee450,_0x4cf5ea[_0x517bb1([0x6d,0x6f,0x64,0x65,0x6c])][_0x517bb1([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1ee450,_0x4cf5ea[_0x517bb1([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x517bb1([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xd78f05(){return _0x22268f(_0x517bb1([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x97c7f4(_0x517bb1([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x517bb1([0x73,0x74,0x61,0x74,0x65])]==_0x517bb1([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x639bed(){return _0x22268f(_0x517bb1([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 _0x42032a(){return _0x22268f(_0x517bb1([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4f3fc9(_0x33b925){const _0xc0a656=_0x188aac();_0x4cf5ea[_0xc0a656]=_0x517bb1([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x33b925,_0x33b925!=_0x517bb1([0x56,0x61,0x6c,0x69,0x64])&&_0x4b74a0();}function _0x188aac(){const _0x284f93=window[_0x517bb1([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x517bb1([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x517bb1([0x6e,0x6f,0x77])]())[_0x517bb1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x517bb1([0x2e]),'');let _0x11ca7d=_0x517bb1([0x52]);for(let _0x38bcdf=0x0;_0x38bcdf<_0x284f93[_0x517bb1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x38bcdf+=0x2){let _0x58ac59=window[_0x517bb1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x284f93[_0x517bb1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x38bcdf,_0x38bcdf+0x2));_0x58ac59>=_0x38e8ff[_0x517bb1([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x58ac59-=_0x38e8ff[_0x517bb1([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x11ca7d+=_0x38e8ff[_0x58ac59];}return _0x11ca7d;}function _0x4ff7ce(){const _0x476f3b=_0x2ee240[_0x517bb1([0x73,0x70,0x6c,0x69,0x74])](_0x517bb1([0x2e]));if(0x3!=_0x476f3b[_0x517bb1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2b040d(_0x476f3b[0x1]);function _0x2b040d(_0x563557){const _0x539a06=_0x15c4a2(_0x563557);return _0x539a06&&_0x372aa4()?_0x539a06:null;function _0x372aa4(){const _0x4589ef=_0x539a06[_0x517bb1([0x6a,0x74,0x69])],_0x2af2fd=window[_0x517bb1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4589ef[_0x517bb1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4589ef[_0x517bb1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xdf9c04={..._0x539a06,[_0x517bb1([0x6a,0x74,0x69])]:_0x4589ef[_0x517bb1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4589ef[_0x517bb1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xdf9c04[_0x517bb1([0x76,0x63])],_0x2d4e02(_0xdf9c04)==_0x2af2fd;}}}async function _0x2c18f4(){let _0x3aa59e=!0x0;try{const _0x2c78b5=_0x2ee240[_0x517bb1([0x73,0x70,0x6c,0x69,0x74])](_0x517bb1([0x2e])),[_0x33d8fa,_0x3cdcb1,_0xb548f0]=_0x2c78b5;return _0x2c6ce9(_0x33d8fa),await _0x31b655(_0x33d8fa,_0x3cdcb1,_0xb548f0),_0x3aa59e;}catch{return!0x1;}function _0x2c6ce9(_0x496e94){const _0x21da16=_0x15c4a2(_0x496e94);_0x21da16&&_0x21da16[_0x517bb1([0x61,0x6c,0x67])]==_0x517bb1([0x45,0x53,0x32,0x35,0x36])||(_0x3aa59e=!0x1);}async function _0x31b655(_0x454bb1,_0xd77f3d,_0x196ec0){const _0x30e7eb=window[_0x517bb1([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x517bb1([0x66,0x72,0x6f,0x6d])](_0x1f3b27(_0x196ec0),_0x49da17=>_0x49da17[_0x517bb1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xdff44a=new window[(_0x517bb1([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x517bb1([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x454bb1+_0x517bb1([0x2e])+_0xd77f3d),_0x5256f0=window[_0x517bb1([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x517bb1([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5256f0)return;const _0xd26de1=await _0x5256f0[_0x517bb1([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x517bb1([0x6a,0x77,0x6b]),_0x2ae3d3,{[_0x517bb1([0x6e,0x61,0x6d,0x65])]:_0x517bb1([0x45,0x43,0x44,0x53,0x41]),[_0x517bb1([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x517bb1([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x517bb1([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5256f0[_0x517bb1([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x517bb1([0x6e,0x61,0x6d,0x65])]:_0x517bb1([0x45,0x43,0x44,0x53,0x41]),[_0x517bb1([0x68,0x61,0x73,0x68])]:{[_0x517bb1([0x6e,0x61,0x6d,0x65])]:_0x517bb1([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xd26de1,_0x30e7eb,_0xdff44a)||(_0x3aa59e=!0x1);}}function _0x15c4a2(_0x18378a){return _0x18378a[_0x517bb1([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x517bb1([0x65,0x79]))?JSON[_0x517bb1([0x70,0x61,0x72,0x73,0x65])](_0x1f3b27(_0x18378a)):null;}function _0x1f3b27(_0x3ad4fe){return window[_0x517bb1([0x61,0x74,0x6f,0x62])](_0x3ad4fe[_0x517bb1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x517bb1([0x2b]))[_0x517bb1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x517bb1([0x2f])));}function _0x2d4e02(_0x2df166){let _0x232ece=0x1505;function _0x3807c7(_0x29240f){for(let _0x499c1c=0x0;_0x499c1c<_0x29240f[_0x517bb1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x499c1c++){const _0x2fdeb3=_0x29240f[_0x517bb1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x499c1c);_0x232ece=(_0x232ece<<0x5)+_0x232ece+_0x2fdeb3,_0x232ece&=_0x232ece;}}function _0x334ef5(_0xd0f97e){Array[_0x517bb1([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xd0f97e)?_0xd0f97e[_0x517bb1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x334ef5):_0xd0f97e&&typeof _0xd0f97e==_0x517bb1([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x517bb1([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xd0f97e)[_0x517bb1([0x73,0x6f,0x72,0x74])]()[_0x517bb1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x52bc9c,_0x45ea79])=>{_0x3807c7(_0x52bc9c),_0x334ef5(_0x45ea79);}):_0x3807c7(window[_0x517bb1([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xd0f97e));}return _0x334ef5(_0x2df166),_0x232ece>>>0x0;}function _0xe01f23(_0x2816ac){return _0x2816ac[_0x517bb1([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x517bb1([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x517bb1([0x30]));}function _0x1e0990(_0x38ae14){return _0x38ae14[_0x517bb1([0x73,0x70,0x6c,0x69,0x74])]('')[_0x517bb1([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x517bb1([0x6a,0x6f,0x69,0x6e])]('');}function _0x22268f(_0x2685ec){return _0x4cf5ea[_0x517bb1([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x517bb1([0x68,0x61,0x73])](_0x2685ec);}function _0x97c7f4(_0x2d4c11){return _0x4cf5ea[_0x517bb1([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x517bb1([0x67,0x65,0x74])](_0x2d4c11);}function _0x1ee450(){}function _0x517bb1(_0x191e20){return _0x191e20['map'](_0x2b3e21=>String['fromCharCode'](_0x2b3e21))['join']('');}_0x4f3fc9(await _0x32fb64());}(this);}set['adapter'](_0x1b58c3){if(this['_adapter'])throw new _0x4d7fe5('track-changes-adapter-already-set',this);this['_adapter']=_0x1b58c3;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x376a3c=!0x1,toJSON:_0x201ae9=!0x1}={}){const _0x3f7424=[];for(const _0x42ecf6 of this['_suggestions']['values']())_0x376a3c&&!_0x42ecf6['isInContent']||_0x3f7424['push'](_0x42ecf6);return _0x201ae9?_0x3f7424['map'](_0x379201=>_0x379201['toJSON']()):_0x3f7424;}['getSuggestion'](_0x15c4fa){const _0x3318e3=this['_suggestions']['get'](_0x15c4fa);if(!_0x3318e3)throw new _0x4d7fe5('track-changes-suggestion-not-found',this);return _0x3318e3;}['hasSuggestion'](_0x2fe3ab){return this['_suggestions']['has'](_0x2fe3ab);}['addSuggestionData'](_0x18e837){const {authorId:_0xe9aa6,id:_0x1a49d9,originalSuggestionId:_0x538a35,attributes:_0x57eec3}=_0x18e837,[_0x9a3ede,_0x482ffb]=_0x18e837['type']['split'](':'),_0x196599=this['_suggestions']['get'](_0x1a49d9)||this['_createSuggestion'](_0x9a3ede,_0x482ffb,_0x1a49d9,_0xe9aa6,_0x57eec3,_0x538a35);if(this['_addThreadToSuggestion'](_0x196599),this['_checkSuggestionCorrectness'](_0x196599,_0x9a3ede,_0x482ffb||null,_0xe9aa6),_0x196599['createdAt']=_0x18e837['createdAt'],_0x196599['_isDataLoaded']=!0x0,_0x57eec3&&_0x57eec3['@external']){const _0x144143=_0x57eec3['@external'],_0x41660f=this['_getExternalAuthor'](_0x144143['authorName']);_0x196599['authoredAt']=_0x144143['createdAt'],_0x196599['author']=_0x41660f,_0x196599['isExternal']=!0x0;}else _0x196599['authoredAt']=_0x18e837['createdAt'];switch(_0x18e837['data']&&(_0x196599['data']=_0x18e837['data']),_0x18e837['attributes']&&(_0x196599['attributes']=_0x18e837['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x196599['_saved']=!0x0),this['_suggestionState']['get'](_0x196599)){case'notReady':this['_suggestionState']['set'](_0x196599,'dataReady');break;case'markerReady':_0x196599['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x196599])),this['_refreshSuggestionsChain'](new Set([_0x196599])),this['_suggestionState']['set'](_0x196599,'ready'),this['fire']('suggestionLoaded',_0x196599)):this['_suggestionState']['set'](_0x196599,'removed');}return _0x196599;}['acceptSuggestion'](_0x1573ae){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2da398 of _0x1573ae['getAllAdjacentSuggestions']())_0x2da398['accept']();});});}['discardSuggestion'](_0x2a28a6){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x523dc2 of _0x2a28a6['getAllAdjacentSuggestions']())_0x523dc2['discard']();});});}['enableCommand'](_0x5c2e5e,_0x2d7a7d){const _0x44ed0a=this['editor']['commands']['get'](_0x5c2e5e);if(!_0x44ed0a)throw new _0x4d7fe5('track-changes-command-not-found',this,{'commandName':_0x5c2e5e});if(this['_enabledCommands']['has'](_0x44ed0a))throw new _0x4d7fe5('track-changes-enable-command-twice',this,{'commandName':_0x5c2e5e});this['_enabledCommands']['add'](_0x44ed0a),_0x2d7a7d&&_0x44ed0a['on']('execute',(_0x2e5e6e,_0x5db262)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x5db262['length']>0x0&&_0x5db262[_0x5db262['length']-0x1]&&_0x5db262[_0x5db262['length']-0x1]['forceDefaultExecution']?_0x5db262['pop']():(_0x2e5e6e['return']=_0x2d7a7d((..._0x238174)=>_0x44ed0a['execute'](..._0x238174,{'forceDefaultExecution':!0x0}),..._0x5db262),_0x2e5e6e['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x577e22){let _0x94e75a,_0x2663f6;const _0xa7fb64=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x94e75a=_0x577e22();}catch(_0x32000e){_0x2663f6=_0x32000e;}return _0xa7fb64||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x2663f6&&_0x4d7fe5['rethrowUnexpectedError'](_0x2663f6,this),_0x94e75a;}['markInsertion'](_0x4a74e8,_0x3ce304=null,_0x1ebf16={}){if(_0x4a74e8['isCollapsed'])return null;const _0x407600=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x1ebf16['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x57ceb7,meta:_0x4fce36}of this['_findSuggestions'](_0x4a74e8,'insertion'))if(_0x4fce36['isOwn']){if(!_0x4fce36['isNextTo']){if(_0x4fce36['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!sn(_0x57ceb7,_0x1ebf16))continue;return _0x57ceb7;}if(sn(_0x57ceb7,_0x1ebf16))return _0x57ceb7;this['_breakSuggestionMarker'](_0x57ceb7,_0x4a74e8['start'],_0x4a74e8['end']);break;}if(_0x3ce304==_0x57ceb7['subType']&&sn(_0x57ceb7,_0x1ebf16)){const _0x4636e7=_0x57ceb7['getFirstRange']();return _0x4636e7['start']['isEqual'](_0x4a74e8['end'])?this['_setSuggestionRange'](_0x57ceb7,this['_model']['createRange'](_0x4a74e8['start'],_0x4636e7['end'])):this['_setSuggestionRange'](_0x57ceb7,this['_model']['createRange'](_0x4636e7['start'],_0x4a74e8['end'])),_0x57ceb7;}}const _0x571710=_0xd8d5dd(),_0x4b346b=_0x407600['id'],_0x553ce3=_0x3ce304?'insertion:'+_0x3ce304:'insertion',_0x2f357d=this['_setSuggestionData']({'id':_0x571710,'type':_0x553ce3,'createdAt':new Date(),'authorId':_0x4b346b,'attributes':_0x1ebf16});return this['_addSuggestionMarker'](_0x553ce3,_0x571710,_0x4b346b,_0x4a74e8),_0x2f357d;}['markMultiRangeInsertion'](_0x553f12,_0x2df1c8='multi',_0x4a4278={}){const _0xb718ac=this['editor']['plugins']['get']('Users')['me'],_0x426c2e=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2df1c8,'join');this['_trackingSessionId']&&(_0x4a4278['trackingSessionId']=this['_trackingSessionId']);for(const _0x48cb77 of this['getSuggestions']())if(_0x48cb77['author']['id']==_0xb718ac['id']&&'insertion'==_0x48cb77['type']&&_0x48cb77['subType']==_0x2df1c8&&sn(_0x48cb77,_0x4a4278)&&(_0x426c2e(_0x48cb77['getRanges'](),_0x553f12)||_0x426c2e(_0x553f12,_0x48cb77['getRanges']()))){for(const _0x44442b of _0x553f12)_0x48cb77['addRange'](_0x44442b);return _0x48cb77;}for(const {suggestion:_0x51b680,meta:_0x1f025c}of this['_findSuggestions'](_0x553f12,'insertion')){if(!_0x1f025c['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x1f025c['containsRangeInObject'])continue;if(!sn(_0x51b680,_0x4a4278))continue;let _0x45c882=!0x0;for(const _0x5af1f3 of _0x51b680['getRanges']())for(const _0x4f40a3 of _0x553f12)if(!_0x5af1f3['containsRange'](_0x4f40a3)){_0x45c882=!0x1;break;}if(_0x45c882)return _0x51b680;}const _0x2ffa1e=_0xd8d5dd(),_0x1c7e22=_0xb718ac['id'],_0x17c940='insertion:'+_0x2df1c8,_0x4fdf37=this['_setSuggestionData']({'id':_0x2ffa1e,'type':_0x17c940,'createdAt':new Date(),'authorId':_0x1c7e22,'attributes':_0x4a4278});for(const _0x2831ae of _0x553f12)this['_addSuggestionMarker'](_0x17c940,_0x2ffa1e,_0x1c7e22,_0x2831ae,T['getMultiRangeId']());return _0x4fdf37;}['markInlineFormat'](_0x3f3fde,_0x4a0521,_0x2b8a4e=null,_0xeaae25={}){if(_0x2b8a4e=_0x2b8a4e||Ht(_0x4a0521),_0x3f3fde['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0xeaae25['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x231885=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2b8a4e,'accept');return this['forceDefaultExecution'](()=>_0x231885([_0x3f3fde],_0x4a0521,_0xeaae25)),null;}const _0x1ee87d=this['editor']['plugins']['get']('Users')['me'],_0x3bbecb=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x474898,meta:_0x19a924}of this['_findSuggestions'](_0x3f3fde,'insertion'))_0x19a924['isOwn']&&!_0x19a924['isInsideObject']&&_0x3bbecb['push'](..._0x474898['getRanges']());}const _0x102e08=function(_0x4bbe98,_0x5150f0){const _0x56def5=[];for(const _0x2f2628 of _0x5150f0){const _0x50bab7=_0x4bbe98['getIntersection'](_0x2f2628);_0x50bab7&&_0x56def5['push'](_0x50bab7);}return _0x56def5;}(_0x3f3fde,_0x3bbecb),_0x20edb2=function(_0x27582a,_0x5a48c1){const _0x1c5467=[_0x27582a];for(const _0x4e305a of _0x5a48c1){let _0x1e373b=0x0;for(;_0x1e373b<_0x1c5467['length'];){const _0x54db41=_0x1c5467[_0x1e373b]['getDifference'](_0x4e305a);_0x1c5467['splice'](_0x1e373b,0x1,..._0x54db41),_0x1e373b+=_0x54db41['length'];}}return _0x1c5467;}(_0x3f3fde,_0x3bbecb);_0x102e08['length']&&this['_model']['change'](()=>{for(const _0x4b09f3 of _0x102e08){const _0x45a6b3=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2b8a4e,'accept');this['forceDefaultExecution'](()=>_0x45a6b3([_0x4b09f3],_0x4a0521,_0xeaae25));}});for(const _0x18bc78 of _0x20edb2){let _0x2e6881=null,_0x23e02f=_0x18bc78['start'],_0x3bf4d7=_0x18bc78['end'];for(const {suggestion:_0x23eddd,meta:_0x3ade16}of this['_findSuggestions'](_0x18bc78,'formatInline')){if(!_0x3ade16['isOwn'])continue;if(_0x23eddd['subType']!=_0x2b8a4e)continue;if(!sn(_0x23eddd,_0xeaae25))continue;const _0x2b5b1f=_0x23eddd['getFirstRange']();if(_0x2b5b1f['containsRange'](_0x18bc78,!0x0))return null;_0x23e02f=_0x23e02f['isBefore'](_0x2b5b1f['start'])?_0x23e02f:_0x2b5b1f['start'],_0x3bf4d7=_0x3bf4d7['isAfter'](_0x2b5b1f['end'])?_0x3bf4d7:_0x2b5b1f['end'],_0x2e6881?_0x2b5b1f['start']['isBefore'](_0x2e6881['getFirstRange']()['start'])?(_0x2e6881['removeMarkers'](),_0x2e6881=_0x23eddd):_0x23eddd['removeMarkers']():_0x2e6881=_0x23eddd;}const _0x1eeec5=this['_model']['createRange'](_0x23e02f,_0x3bf4d7);if(_0x2e6881)this['_setSuggestionRange'](_0x2e6881,_0x1eeec5);else{const _0x5e9026=_0xd8d5dd(),_0xe9277d=_0x1ee87d['id'];this['_setSuggestionData']({'id':_0x5e9026,'type':'formatInline:'+_0x2b8a4e,'data':_0x4a0521,'createdAt':new Date(),'authorId':_0xe9277d,'attributes':_0xeaae25}),this['_addSuggestionMarker']('formatInline:'+_0x2b8a4e,_0x5e9026,_0xe9277d,_0x1eeec5);}}return null;}['markBlockFormat'](_0x28a8b5,_0x51182c,_0x18e337=[],_0x49486e=null,_0x15fb2c={}){_0x51182c['formatGroupId']||(_0x51182c['formatGroupId']=_0x51182c['commandName']),_0x51182c['multipleBlocks']=_0x28a8b5['is']('range'),_0x49486e=_0x49486e||Ht(_0x51182c);const _0x2ad770=_0x18e337['map'](_0x346906=>tn(_0x346906,this['_model'])),_0x35afb2=_0x28a8b5['is']('range')?_0x28a8b5:tn(_0x28a8b5,this['_model']);if(this['_trackingSessionId']&&(_0x15fb2c['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4b9688=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x49486e,'accept');return this['forceDefaultExecution'](()=>_0x4b9688([_0x35afb2],_0x51182c,_0x15fb2c)),null;}_0x2ad770['push'](_0x35afb2);let _0x246c5c=!0x0;for(const _0x23027a of _0x2ad770)if(!this['_rangeIsInLocalUserInsertion'](_0x23027a)){_0x246c5c=!0x1;break;}if(_0x246c5c&&'always'!==this['_trackFormatChanges']){const _0x8cd726=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x49486e,'accept');return this['forceDefaultExecution'](()=>_0x8cd726([_0x35afb2],_0x51182c,_0x15fb2c)),null;}let _0x4d158c=null,_0x33c167=_0x35afb2['start'],_0x2762d8=_0x35afb2['end'];for(const {suggestion:_0xe1cdf4,meta:_0x156b2f}of this['_findSuggestions'](_0x35afb2,'formatBlock')){if(!_0x156b2f['isOwn'])continue;if(_0x156b2f['isNextTo']||_0x156b2f['containsRangeInObject']||_0x156b2f['isInsideObject'])continue;if(_0xe1cdf4['data']['formatGroupId']!=_0x51182c['formatGroupId'])continue;if(!sn(_0xe1cdf4,_0x15fb2c))continue;const _0x2a8422=_0xe1cdf4['getFirstRange']();if(_0xe1cdf4['subType']==_0x49486e){if(_0x2a8422['containsRange'](_0x35afb2,!0x0))return null;_0x33c167=_0x33c167['isBefore'](_0x2a8422['start'])?_0x33c167:_0x2a8422['start'],_0x2762d8=_0x2762d8['isAfter'](_0x2a8422['end'])?_0x2762d8:_0x2a8422['end'],_0x4d158c?_0x2a8422['start']['isBefore'](_0x4d158c['getFirstRange']()['start'])?(_0x4d158c['removeMarkers'](),_0x4d158c=_0xe1cdf4):_0xe1cdf4['removeMarkers']():_0x4d158c=_0xe1cdf4;}else{const _0x44ee2a=_0x35afb2['getIntersection'](_0x2a8422);this['_cutOutSuggestionMarker'](_0xe1cdf4,_0x44ee2a);}}const _0x5d8ec8=this['editor']['plugins']['get']('Users')['me'],_0x239e42=_0xd8d5dd(),_0x1f6d98=_0x5d8ec8['id'];if(_0x4d158c)return this['_setSuggestionRange'](_0x4d158c,this['_model']['createRange'](_0x33c167,_0x2762d8)),_0x4d158c;{const _0x1ff982=this['_setSuggestionData']({'id':_0x239e42,'type':'formatBlock:'+_0x49486e,'data':_0x51182c,'createdAt':new Date(),'authorId':_0x1f6d98,'attributes':_0x15fb2c});return this['_addSuggestionMarker']('formatBlock:'+_0x49486e,_0x239e42,_0x1f6d98,this['_model']['createRange'](_0x33c167,_0x2762d8)),_0x1ff982;}}['markMultiRangeBlockFormat'](_0x5bfeed,_0x132509,_0x252e68=[],_0x507c66=null,_0x829aca={}){_0x132509['formatGroupId']||(_0x132509['formatGroupId']=_0x132509['commandName']);const _0x121e53=_0x5bfeed[0x0];_0x132509['multipleBlocks']=_0x121e53['is']('range'),_0x507c66=_0x507c66||Ht(_0x132509);const _0x93830f=_0x252e68['map'](_0x44e870=>tn(_0x44e870,this['_model'])),_0x4f0d52=_0x121e53['is']('range')?_0x5bfeed:_0x5bfeed['map'](_0x326fa9=>tn(_0x326fa9,this['_model']));if(this['_trackingSessionId']&&(_0x829aca['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4a8d39=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x507c66,'accept');return this['forceDefaultExecution'](()=>_0x4a8d39(_0x4f0d52,_0x132509,_0x829aca)),null;}_0x93830f['push'](..._0x4f0d52);let _0x2e29f0=!0x0;for(const _0x1b02b9 of _0x93830f)if(!this['_rangeIsInLocalUserInsertion'](_0x1b02b9)){_0x2e29f0=!0x1;break;}if(_0x2e29f0&&'always'!==this['_trackFormatChanges']){const _0x3449aa=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x507c66,'accept');return this['forceDefaultExecution'](()=>_0x3449aa(_0x4f0d52,_0x132509,_0x829aca)),null;}const _0x10720a=this['editor']['plugins']['get']('Users')['me'];for(const _0x586fdf of this['getSuggestions']()){const _0x1fb04a=_0x586fdf['data'];if(_0x586fdf['author']['id']!=_0x10720a['id'])continue;if('formatBlock'!=_0x586fdf['type']||_0x1fb04a['formatGroupId']!=_0x132509['formatGroupId'])continue;if(!sn(_0x586fdf,_0x829aca))continue;const _0xa240ce=_0x586fdf['subType']==_0x507c66;for(let _0x390df1=0x0;_0x390df1<_0x4f0d52['length'];_0x390df1++){const _0x461259=_0x4f0d52[_0x390df1];for(const _0x1aa79b of _0x586fdf['getMarkers']()){const _0x361284=_0x1aa79b['getRange']();if(_0x461259['isEqual'](_0x361284)){_0xa240ce?(_0x4f0d52['splice'](_0x390df1,0x1),_0x390df1--):_0x586fdf['removeMarker'](_0x1aa79b['name']);break;}}}}if(0x0==_0x4f0d52['length'])return null;const _0x2ad6e1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x507c66,'join');for(const _0x3007fc of this['getSuggestions']()){const _0x1cecf2=_0x3007fc['data'];if(_0x3007fc['author']['id']==_0x10720a['id']&&('formatBlock'==_0x3007fc['type']&&_0x1cecf2['formatGroupId']==_0x132509['formatGroupId']&&_0x3007fc['subType']==_0x507c66&&sn(_0x3007fc,_0x829aca)&&(_0x2ad6e1(_0x3007fc['getRanges'](),_0x4f0d52)||_0x2ad6e1(_0x4f0d52,_0x3007fc['getRanges']())))){for(const _0xac6302 of _0x4f0d52)_0x3007fc['addRange'](_0xac6302);return _0x3007fc;}}const _0x30aece=_0xd8d5dd(),_0x4ebeaf=_0x10720a['id'],_0x4d95d7='formatBlock:'+_0x507c66,_0xc17d0b=this['_setSuggestionData']({'id':_0x30aece,'type':_0x4d95d7,'data':_0x132509,'createdAt':new Date(),'authorId':_0x4ebeaf,'attributes':_0x829aca});for(const _0x19a178 of _0x4f0d52)this['_addSuggestionMarker'](_0x4d95d7,_0x30aece,_0x4ebeaf,_0x19a178,T['getMultiRangeId']());return _0xc17d0b;}['markDeletion'](_0x1527e7,_0x1c1796=null,_0x16b3d0={}){if(_0x1527e7['isCollapsed'])return null;const _0xc15c30=this['editor']['plugins']['get']('Users')['me'],_0xa046e0=new _0x3090d1(_0x1527e7['start'],_0x1527e7['end']);this['_trackingSessionId']&&(_0x16b3d0['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x50bafc,meta:_0x36a967}of this['_findSuggestions'](_0xa046e0,'insertion'))if(_0x36a967['isOwn']&&!_0x36a967['isNextTo']){if(_0x50bafc['isMultiRange']){const _0xda0d96=_0x50bafc['getRanges']()['filter'](_0x30c784=>'$graveyard'!=_0x30c784['root']['rootName']);_0xda0d96['every'](_0x9091a6=>_0xa046e0['containsRange'](_0x9091a6,!0x0))&&_0x50bafc['discard']();if(_0xda0d96['some'](_0x4b63f2=>_0x4b63f2['containsRange'](_0xa046e0,!0x0))){const _0x826c57=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1c1796,'accept');return this['forceDefaultExecution'](()=>_0x826c57([_0xa046e0],null,_0x16b3d0)),null;}}else{const _0x1f0ae1=_0xa046e0['getIntersection'](_0x50bafc['getFirstRange']());null!==_0x1f0ae1&&_0x50bafc['_onDiscard']([_0x1f0ae1],null,_0x16b3d0);}}if(_0xa046e0['detach'](),_0xa046e0['isCollapsed']||'$graveyard'==_0xa046e0['root']['rootName'])return null;let _0xd9d840=null,_0x5470fe=_0xa046e0['start'],_0x42d3f0=_0xa046e0['end'];const _0x15cd3a=this['_findSuggestions'](_0xa046e0,'deletion');for(const {suggestion:_0x2e7756,meta:_0x2325a2}of _0x15cd3a){const _0x2b45fe=this['_model']['createRange'](_0x5470fe,_0x42d3f0);if(_0x2325a2['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2325a2['containsRangeInObject']&&!_0x2325a2['isInsideObject'])){if(_0x2e7756['isMultiRange']){if(!sn(_0x2e7756,_0x16b3d0))continue;let _0xc44a25=!0x0;for(const _0x173b73 of _0x2e7756['getRanges']()){if(_0x173b73['containsRange'](_0x2b45fe,!0x0))return _0x2e7756;_0x2b45fe['containsRange'](_0x173b73)||(_0xc44a25=!0x1);}_0xc44a25&&_0x2e7756['discard']();}else{const _0x3c57a5=_0x2e7756['getFirstRange']();if(_0x3c57a5['containsRange'](_0x2b45fe,!0x0))return _0x2e7756;if(!sn(_0x2e7756,_0x16b3d0)){_0x2b45fe['containsRange'](_0x3c57a5)?_0x2e7756['removeMarkers']():_0x3c57a5['containsPosition'](_0x5470fe)?_0x5470fe=_0x3c57a5['end']:_0x3c57a5['containsPosition'](_0x42d3f0)&&(_0x42d3f0=_0x3c57a5['start']);continue;}_0x5470fe=_0x5470fe['isBefore'](_0x3c57a5['start'])?_0x5470fe:_0x3c57a5['start'],_0x42d3f0=_0x42d3f0['isAfter'](_0x3c57a5['end'])?_0x42d3f0:_0x3c57a5['end'],_0x16b3d0=Object['assign']({},_0x2e7756['attributes']),_0xd9d840?_0x3c57a5['start']['isBefore'](_0xd9d840['getFirstRange']()['start'])?(_0xd9d840['removeMarkers'](),_0xd9d840=_0x2e7756):_0x2e7756['removeMarkers']():_0xd9d840=_0x2e7756;}}}if(_0xd9d840)return this['_setSuggestionRange'](_0xd9d840,this['_model']['createRange'](_0x5470fe,_0x42d3f0)),_0xd9d840;{const _0xc8ffa=_0xd8d5dd(),_0x4c53fb=this['_model']['createRange'](_0x5470fe,_0x42d3f0),_0x2aadb7=_0xc15c30['id'],_0x3d69af=_0x1c1796?'deletion:'+_0x1c1796:'deletion',_0x2ca670=this['_setSuggestionData']({'id':_0xc8ffa,'type':_0x3d69af,'createdAt':new Date(),'authorId':_0x2aadb7,'attributes':_0x16b3d0});return this['_addSuggestionMarker'](_0x3d69af,_0xc8ffa,_0x2aadb7,_0x4c53fb),_0x2ca670;}}['markMultiRangeDeletion'](_0x28d726,_0x55f66d='multi',_0x46f6f2={}){const _0x1fb9d6=this['editor']['plugins']['get']('Users')['me'],_0x27610c=_0x28d726['map'](_0x599382=>new _0x3090d1(_0x599382['start'],_0x599382['end'])),_0x3abc2f=new Set();this['_trackingSessionId']&&(_0x46f6f2['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x41cc8d,meta:_0x4be9be}of this['_findSuggestions'](_0x27610c,'insertion'))_0x4be9be['isOwn']&&!_0x4be9be['isNextTo']&&_0x3abc2f['add'](_0x41cc8d);for(const _0x5d0a83 of _0x3abc2f)if(_0x5d0a83['isMultiRange']){const _0x3fd900=_0x5d0a83['getRanges']();(!_0x5d0a83['attributes']||!_0x5d0a83['attributes']['skipNestingCheck'])&&(_0x3fd900['every'](_0x2a2d53=>_0x27610c['some'](_0x14ed58=>_0x14ed58['containsRange'](_0x2a2d53,!0x0)))&&_0x5d0a83['discard']());if(_0x27610c['every'](_0x302ba0=>_0x3fd900['some'](_0x483641=>_0x483641['containsRange'](_0x302ba0,!0x0)))){const _0x467a41=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x55f66d,'accept');return this['forceDefaultExecution'](()=>_0x467a41(_0x28d726,null,_0x46f6f2)),null;}}else{const _0x144b6c=_0x5d0a83['getFirstRange']();_0x27610c['some'](_0xd97d0=>_0xd97d0['containsRange'](_0x144b6c,!0x0))&&_0x5d0a83['discard']();if(_0x27610c['every'](_0x4c122f=>_0x144b6c['containsRange'](_0x4c122f,!0x0))){const _0x4c7040=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x55f66d,'accept');return this['forceDefaultExecution'](()=>_0x4c7040(_0x27610c,null,_0x46f6f2)),null;}}const _0xa5c1e2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x55f66d,'join');let _0x475aef=null;for(const _0x5349d7 of this['getSuggestions']())if(_0x5349d7['author']['id']==_0x1fb9d6['id']&&_0x5349d7['isInContent']&&'deletion'==_0x5349d7['type']&&_0x5349d7['subType']==_0x55f66d&&sn(_0x5349d7,_0x46f6f2)&&(_0xa5c1e2(_0x5349d7['getRanges'](),_0x27610c)||_0xa5c1e2(_0x27610c,_0x5349d7['getRanges']()))){if(_0x475aef){if(_0x5349d7['commentThread']&&_0x5349d7['commentThread']['length'])continue;for(const _0x5211fd of _0x5349d7['getRanges']())_0x475aef['isIntersectingWithRange'](_0x5211fd)||_0x475aef['addRange'](_0x5211fd);_0x5349d7['removeMarkers']();}else{_0x475aef=_0x5349d7;for(const _0x226452 of _0x27610c)_0x5349d7['isIntersectingWithRange'](_0x226452)||_0x5349d7['addRange'](_0x226452);}}if(_0x475aef)return _0x475aef;_0x3abc2f['clear']();for(const {suggestion:_0x1e679f,meta:_0x354ff0}of this['_findSuggestions'](_0x27610c,'deletion'))_0x354ff0['isOwn']&&(this['_mergeNestedSuggestions']||!_0x354ff0['containsRangeInObject']&&!_0x354ff0['isInsideObject'])&&sn(_0x1e679f,_0x46f6f2)&&_0x3abc2f['add'](_0x1e679f);for(const _0x3041f6 of _0x3abc2f){const _0x29b0b1=_0x3041f6['getRanges']();if(!_0x46f6f2||!_0x46f6f2['skipNestingCheck']){if(_0x27610c['every'](_0x55996f=>_0x29b0b1['some'](_0xfd76c7=>_0xfd76c7['containsRange'](_0x55996f,!0x0))))return _0x3041f6;}(!_0x3041f6['attributes']||!_0x3041f6['attributes']['skipNestingCheck'])&&(_0x29b0b1['every'](_0x396943=>_0x27610c['some'](_0x380ecd=>_0x380ecd['containsRange'](_0x396943,!0x0)))&&_0x3041f6['discard']());}const _0x41f211=_0xd8d5dd(),_0x4730d2=_0x1fb9d6['id'],_0x3b10c9='deletion:'+_0x55f66d,_0x354bff=this['_setSuggestionData']({'id':_0x41f211,'type':_0x3b10c9,'createdAt':new Date(),'authorId':_0x4730d2,'attributes':_0x46f6f2});for(const _0x430a6d of _0x27610c)_0x430a6d['detach'](),_0x430a6d['isCollapsed']||'$graveyard'==_0x430a6d['root']['rootName']||this['_addSuggestionMarker'](_0x3b10c9,_0x41f211,_0x4730d2,_0x430a6d,T['getMultiRangeId']());return _0x354bff;}['markAttributeChange'](_0x5e58d8,_0x43ef2a,_0x43ec1b,_0x3fc949,_0x2cffc9){if(_0x5e58d8['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x5a6456=this['editor']['plugins']['get']('Users')['me']['id'],_0x42bfa7=Array['from'](this['_suggestions']['values']())['filter'](_0x516c8c=>'attribute'==_0x516c8c['type']&&_0x516c8c['data']['key']==_0x43ef2a&&_0x516c8c['isIntersectingWithRange'](_0x5e58d8));if(this['_trackingSessionId']&&(_0x2cffc9['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x9a045a=this['_findSuggestions'](_0x5e58d8,'insertion')['filter'](({meta:_0x24c01d})=>_0x24c01d['isOwn']&&!_0x24c01d['isInsideObject']&&!_0x24c01d['isNextTo'])['map'](({suggestion:_0x1d55e4})=>_0x1d55e4);_0x42bfa7['unshift'](..._0x9a045a);}const _0xf1c492=new Map([[_0x5e58d8,_0x43ec1b]]);for(const _0x3addcf of _0x42bfa7){const _0x2e90fc='attribute'==_0x3addcf['type']?_0x3addcf['data']['oldValue']:void 0x0,_0x554f49=_0x3addcf['getFirstRange'](),_0x4ae965=Array['from'](_0xf1c492['keys']())['find'](_0x3b1386=>_0x3b1386['isIntersecting'](_0x554f49));if(!_0x4ae965)continue;const _0x69e574=_0x4ae965['getDifference'](_0x554f49);this['_isBlockAttribute'](_0x43ef2a)&&'insertion'==_0x3addcf['type']&&0x0!=_0x69e574['length']||(_0xf1c492['delete'](_0x4ae965),_0x69e574['forEach'](_0x543c96=>{_0xf1c492['set'](_0x543c96,_0x43ec1b);}),'insertion'!=_0x3addcf['type']&&_0x2e90fc!=_0x3fc949&&_0xf1c492['set'](_0x4ae965['getIntersection'](_0x554f49),_0x2e90fc));}const _0x3cb6bf=[];for(const [_0x29c244,_0x1b6862]of _0xf1c492){const _0x35a433=_0xd8d5dd(),_0x54f0c9={'key':_0x43ef2a,'oldValue':_0x1b6862,'newValue':_0x3fc949};_0x43ef2a['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':_0x43ef2a});const _0x1b7176=('attribute:'+(_0x43ef2a+'|'+Ht({'newValue':_0x3fc949})))['substring'](0x0,0x3c),_0x329c1a=this['_setSuggestionData']({'id':_0x35a433,'type':_0x1b7176,'data':_0x54f0c9,'createdAt':new Date(),'authorId':_0x5a6456,'attributes':_0x2cffc9});_0x3cb6bf['push'](_0x329c1a),this['_addSuggestionMarker'](_0x1b7176,_0x35a433,_0x5a6456,_0x29c244);}return _0x3cb6bf;}['enableDefaultAttributesIntegration'](_0x56b28e){this['enableCommand'](_0x56b28e,(_0x2623e8,..._0x3c35e8)=>{this['recordAttributeChanges'](()=>{_0x2623e8(..._0x3c35e8);});});}['registerBlockAttribute'](_0x17a4ae){this['editor']['plugins']['get'](_0xd88bfa)['registerBlockAttribute'](_0x17a4ae);}['registerInlineAttribute'](_0x256868){this['editor']['plugins']['get'](_0xd88bfa)['registerInlineAttribute'](_0x256868);}['startTrackingSession'](_0x30a753){return this['_trackingSessionId']=void 0x0!==_0x30a753?_0x30a753:_0xd8d5dd(),this['_trackingSessionId'];}['_getAttributeKey'](_0x5314ef){return'attribute'==_0x5314ef['type']?_0x5314ef['subType']['split']('|')[0x0]:null;}['_applyOperationsAsSuggestions'](_0x3c8184){if(0x0==_0x3c8184['length'])return;const _0x14f3c2=this['editor'],_0x33cc53=_0x14f3c2['plugins']['get'](_0x4edd94),_0x500b80=[];_0x14f3c2['model']['change'](_0x3ec40c=>{for(let _0x27669e=0x0;_0x27669e<_0x3c8184['length'];_0x27669e++){const _0x23e62d=_0x3c8184[_0x27669e];if(_0x23e62d['baseVersion']=_0x14f3c2['model']['document']['version'],_0x23e62d['isDocumentOperation']=!0x0,_0x33cc53['isMarkedRemoveOperation'](_0x23e62d)){const _0x4747e5=_0x439149(_0x23e62d['newRange'],_0x14f3c2['model']);_0x500b80['unshift'](_0x3090d1['fromRange'](_0x4747e5));}else switch(_0x23e62d['type']){case'rename':{const _0xa00d16=_0x23e62d['oldName'],_0x10867b=_0x23e62d['newName'];if(_0xa00d16==_0x10867b)break;_0x3ec40c['batch']['addOperation'](_0x23e62d),_0x14f3c2['model']['applyOperation'](_0x23e62d);const _0x337e64='$elementName',_0x2f6aba=_0x23e62d['position'],_0xdfc774=_0x14f3c2['model']['createRange'](_0x2f6aba,_0x14f3c2['model']['createPositionAt'](_0x2f6aba['nodeAfter'],'end'));this['markAttributeChange'](_0xdfc774,_0x337e64,_0xa00d16,_0x10867b,{'groupId':_0xd8d5dd()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x5012fd=_0x23e62d['oldValue'],_0x40e115=_0x23e62d['newValue'];if(_0x5012fd==_0x40e115)break;_0x3ec40c['batch']['addOperation'](_0x23e62d),_0x14f3c2['model']['applyOperation'](_0x23e62d);const _0x3fda0e=_0x23e62d['key'];if(!this['_isRegisteredAttribute'](_0x3fda0e))break;const _0x3a0674=_0x439149(_0x23e62d['range'],_0x14f3c2['model']);this['markAttributeChange'](_0x3a0674,_0x3fda0e,_0x5012fd,_0x40e115,{'groupId':_0xd8d5dd()});break;}case'insert':{_0x3ec40c['batch']['addOperation'](_0x23e62d),_0x14f3c2['model']['applyOperation'](_0x23e62d);if(_0x3c8184[_0x27669e+0x1]&&'move'==_0x3c8184[_0x27669e+0x1]['type'])break;const _0x290a5f=_0x23e62d['position'],_0x5091c9=_0x23e62d['howMany'],_0x2c66cd=_0x439149(_0x14f3c2['model']['createRange'](_0x290a5f,_0x290a5f['getShiftedBy'](_0x5091c9)),_0x14f3c2['model']);this['markInsertion'](_0x2c66cd);break;}case'split':{_0x3ec40c['batch']['addOperation'](_0x23e62d),_0x14f3c2['model']['applyOperation'](_0x23e62d);const _0x4b63d4=_0x23e62d['splitPosition'],_0x143838=_0x23e62d['moveTargetPosition'];this['markInsertion'](_0x14f3c2['model']['createRange'](_0x4b63d4,_0x143838));break;}case'move':case'remove':_0x3ec40c['batch']['addOperation'](_0x23e62d),_0x14f3c2['model']['applyOperation'](_0x23e62d);}}for(const _0x2fdb0d of _0x500b80)_0x2fdb0d['detach'](),this['markDeletion'](_0x2fdb0d);});}['_setSuggestionRange'](_0x4f6944,_0x65c1f3){const _0x4d4295=_0x4f6944['getFirstMarker']();this['_model']['change'](_0x8612dc=>{_0x8612dc['updateMarker'](_0x4d4295,{'range':_0x65c1f3});});}['_addThreadToSuggestion'](_0x18a7f7){const _0x1548c9=_0x18a7f7['id'],_0x31c181=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x1548c9)||this['_commentsRepository']['addCommentThread']({'channelId':_0x31c181,'threadId':_0x1548c9,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4429e8=this['_commentsRepository']['getCommentThread'](_0x1548c9);_0x4429e8['unbind']('isRemovable'),_0x4429e8['isRemovable']=!0x1,_0x18a7f7['commentThread']=_0x4429e8;}['_checkSuggestionCorrectness'](_0x3e69d5,_0x341ce7,_0x3bdfb9,_0x5d2fb9){if(_0x3e69d5['type']!=_0x341ce7||_0x3e69d5['subType']!=_0x3bdfb9||_0x3e69d5['creator']['id']!=_0x5d2fb9)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x4d7fe5('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0xeec4b9,_0x3c28cc){const _0x570da5=_0xeec4b9['getFirstRange']();if(_0x3c28cc['isEqual'](_0x570da5))_0xeec4b9['removeMarkers']();else{if(_0x570da5['containsRange'](_0x3c28cc)){const _0x4a77fe=this['_model']['createPositionAt'](_0x3c28cc['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0xeec4b9,this['_model']['createRange'](_0x570da5['start'],_0x4a77fe));const _0x113aa1=_0xd8d5dd(),_0x2a66dc=_0xeec4b9['creator']['id'],_0x38cb40=_0xeec4b9['type']+':'+_0xeec4b9['subType'];this['_setSuggestionData']({'id':_0x113aa1,'type':_0x38cb40,'createdAt':new Date(),'authorId':_0x2a66dc,'data':_0xeec4b9['data'],'attributes':_0xeec4b9['attributes']});const _0x1dc086=this['_model']['createPositionAt'](_0x3c28cc['end']['parent'],'after'),_0x372f7e=this['_model']['createRange'](_0x1dc086,_0x570da5['end']);this['_addSuggestionMarker'](_0x38cb40,_0x113aa1,_0x2a66dc,_0x372f7e);}else{if(_0x570da5['containsPosition'](_0x3c28cc['start'])){const _0x1c7d39=this['_model']['createPositionAt'](_0x3c28cc['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0xeec4b9,this['_model']['createRange'](_0x570da5['start'],_0x1c7d39));}else{const _0x537075=this['_model']['createPositionAt'](_0x3c28cc['end']['parent'],'after');this['_setSuggestionRange'](_0xeec4b9,this['_model']['createRange'](_0x537075,_0x570da5['end']));}}}}['_rangeIsInLocalUserInsertion'](_0xf4f139){for(const {suggestion:_0x52f684,meta:_0x4201ad}of this['_findSuggestions'](_0xf4f139,'insertion')){if(!_0x4201ad['isOwn'])continue;const _0x1a958f=_0x52f684['getRanges']();for(const _0x4dbb64 of _0x1a958f)if(!_0xf4f139['getDifference'](_0x4dbb64)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x4e40eb){return this['editor']['plugins']['get']('Users')['getUser'](_0x4e40eb);}['_getExternalAuthor'](_0x11afea){const _0x575b47=this['editor']['plugins']['get']('Users'),_0x4aa1fc=_0x1a4a20('external:'+_0x11afea),_0x17155a=_0x575b47['getUser'](_0x4aa1fc);return _0x17155a||_0x575b47['addUser']({'id':_0x4aa1fc,'name':_0x11afea});}['_createSuggestion'](_0x256592,_0x118bd6,_0x4eb626,_0x237dcf,_0x3b69c1,_0x111ed0){const _0x118e6c=this['_getAuthorFromId'](_0x237dcf);if(!_0x118e6c)throw new _0x4d7fe5('track-changes-user-not-found',this,{'authorId':_0x237dcf,'suggestionId':_0x4eb626});const _0x542718=this['_suggestionFactory']['buildSuggestion'](_0x256592,_0x118bd6,_0x4eb626,_0x118e6c,_0x3b69c1,_0x55980e=>{this['_updateSuggestionData'](_0x4eb626,{'attributes':_0x55980e});const _0x5a6fcb=this['getSuggestion'](_0x4eb626);this['_joinWithAdjacentSuggestions'](new Set([_0x5a6fcb])),this['_refreshSuggestionsChain'](new Set([_0x5a6fcb]));},_0x111ed0);return this['listenTo'](_0x542718,'accept',()=>{this['_updateSuggestionData'](_0x4eb626,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x542718,'discard',()=>{this['_updateSuggestionData'](_0x4eb626,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x4eb626,_0x542718),this['_suggestionState']['set'](_0x542718,'notReady'),_0x542718;}['_splitMarkerName'](_0x21ba10){return _0xdb9692(_0x21ba10);}['_breakSuggestionMarker'](_0x581ab5,_0x482bfe,_0x25ba7a){const _0x94d619=_0x581ab5['getFirstRange'](),_0x546d93=_0x94d619['start'],_0x501b37=_0x94d619['end'];this['_setSuggestionRange'](_0x581ab5,this['_model']['createRange'](_0x546d93,_0x482bfe));const _0xfc7438=_0xd8d5dd(),_0x501fbf=_0x581ab5['creator']['id'],_0x4a5b51=_0x581ab5['type']+(_0x581ab5['subType']?':'+_0x581ab5['subType']:'');this['_setSuggestionData']({'id':_0xfc7438,'type':_0x4a5b51,'createdAt':new Date(),'authorId':_0x501fbf,'originalSuggestionId':_0x581ab5['_originalSuggestionId']||_0x581ab5['id'],'attributes':_0x581ab5['attributes'],'data':_0x581ab5['data']});const _0x4932ae=this['_getAttributeKey'](_0x581ab5);('formatBlock'==_0x581ab5['type']||_0x4932ae&&this['_isBlockAttribute'](_0x4932ae))&&(_0x25ba7a=this['_model']['createPositionBefore'](_0x25ba7a['parent'])),this['_addSuggestionMarker'](_0x4a5b51,_0xfc7438,_0x501fbf,this['_model']['createRange'](_0x25ba7a,_0x501b37));}['_findSuggestions'](_0x95f5fd,_0x2675c9=null){const _0x170531=[],_0x5cf88c=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x95f5fd)||(_0x95f5fd=[_0x95f5fd]);for(const _0x5eb910 of this['getSuggestions']()){if(!_0x5eb910['isInContent'])continue;if(_0x2675c9&&_0x5eb910['type']!=_0x2675c9)continue;let _0x4bd159=!0x1;for(const _0x572f29 of _0x5eb910['getRanges']()){for(const _0x5bf8ee of _0x95f5fd){const _0x331c0a=_0x5bf8ee['start']['isEqual'](_0x572f29['end'])||_0x5bf8ee['end']['isEqual'](_0x572f29['start']);if(_0x331c0a||_0x5bf8ee['getIntersection'](_0x572f29)){const _0x564c91=_0x5bf8ee['containsRange'](_0x572f29)&&zt(this['_model']['schema'],_0x572f29['start'],_0x5bf8ee),_0x5a6b08=_0x572f29['containsRange'](_0x5bf8ee)&&zt(this['_model']['schema'],_0x5bf8ee['start'],_0x572f29);_0x170531['push']({'suggestion':_0x5eb910,'meta':{'isOwn':_0x5cf88c==_0x5eb910['author'],'isNextTo':_0x331c0a,'isInsideObject':_0x564c91,'containsRangeInObject':_0x5a6b08}}),_0x4bd159=!0x0;break;}}if(_0x4bd159)break;}}return _0x170531;}['_addSuggestionMarker'](_0x2a2030,_0x33a199,_0x70be4f,_0xda1302,_0xc54ed0){this['_model']['change'](_0x1df8d0=>{let _0x351144='suggestion:'+_0x2a2030+':'+_0x33a199+':'+_0x70be4f;_0xc54ed0&&(_0x351144=_0x351144+':'+_0xc54ed0),_0x1df8d0['addMarker'](_0x351144,{'range':_0xda1302,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x27210a){const _0x1c3273=_0x27210a['previous'],_0x1bbb0e=_0x27210a['next'];_0x27210a['previous']=null,_0x27210a['next']=null,null!=_0x1c3273&&_0x1c3273['next']==_0x27210a&&(_0x1c3273['next']=_0x1bbb0e),null!=_0x1bbb0e&&_0x1bbb0e['previous']==_0x27210a&&(_0x1bbb0e['previous']=_0x1c3273),'ready'==this['_suggestionState']['get'](_0x27210a)&&(this['_suggestionState']['set'](_0x27210a,'removed'),this['fire']('suggestionUnloaded',_0x27210a,_0x1c3273,_0x1bbb0e));}['_setSuggestionData'](_0x19663e){const _0x17c9c4=_0x19663e['id'],_0x3696eb=this['addSuggestionData'](_0x19663e);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x48fa63=this['editor']['plugins']['get']('PendingActions'),_0x39a7b1=_0x3696eb['hasComments'],_0x45e7f9=_0x3696eb['subType']?_0x3696eb['type']+':'+_0x3696eb['subType']:_0x3696eb['type'],_0x20788f=this['editor']['locale'],_0x2f5825=_0x48fa63['add'](o(_0x20788f,'PENDING_ACTION_SUGGESTION')),_0x2e535b={'id':_0x17c9c4,'type':_0x45e7f9,'hasComments':_0x39a7b1,'data':_0x19663e['data']||null,'originalSuggestionId':_0x19663e['originalSuggestionId']||null,'attributes':_0x3696eb['attributes']};this['_adapter']['addSuggestion'](_0x2e535b)['then'](_0x3f97ca=>{_0x3696eb['_saved']=!0x0,_0x48fa63['remove'](_0x2f5825),_0x3f97ca&&_0x3f97ca['createdAt']&&(this['_suggestions']['get'](_0x17c9c4)['createdAt']=_0x3f97ca['createdAt']);})['catch'](_0x1806e2=>{throw _0x588188('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x3696eb['discard']();}),_0x3696eb['stopListening'](),this['_suggestions']['delete'](_0x3696eb['id']),this['_suggestionState']['delete'](_0x3696eb),_0x1806e2;});}return _0x3696eb;}['_isBlockAttribute'](_0x5da438){return this['editor']['plugins']['get'](_0xd88bfa)['isBlockAttribute'](_0x5da438);}['_isInlineAttribute'](_0x41b531){return this['editor']['plugins']['get'](_0xd88bfa)['isInlineAttribute'](_0x41b531);}['_updateSuggestionData'](_0x5ea94d,_0x3c713e){const _0x518043=this['editor']['plugins']['get']('PendingActions'),_0x3e28a8=this['getSuggestion'](_0x5ea94d);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x3e28a8['_saved']){const _0x36dcaa=_0x518043['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x5ea94d,_0x3c713e)['then'](()=>{_0x518043['remove'](_0x36dcaa);});}else _0x3e28a8['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x5ea94d,_0x3c713e);});}}['_getSuggestionData'](_0x1ada61){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x4d7fe5('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x1ada61);}['_handleNewSuggestionMarker'](_0x44fdf8){const {id:_0x3141ad,type:_0x759842,subType:_0x2e7391,authorId:_0x2b0966}=this['_splitMarkerName'](_0x44fdf8),_0x502066=this['_suggestions']['get'](_0x3141ad)||this['_createSuggestion'](_0x759842,_0x2e7391,_0x3141ad,_0x2b0966,{});switch(this['_checkSuggestionCorrectness'](_0x502066,_0x759842,_0x2e7391,_0x2b0966),this['_suggestionState']['get'](_0x502066)){case'notReady':this['_getSuggestionData'](_0x3141ad)['then'](_0x2cf3eb=>{let _0x4adf9e=Promise['resolve']();_0x2cf3eb['hasComments']&&(_0x4adf9e=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3141ad})),_0x4adf9e['then'](()=>{this['addSuggestionData'](_0x2cf3eb)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x502066,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3141ad,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x502066,'ready'),this['fire']('suggestionLoaded',_0x502066);break;case'ready':this['fire']('suggestionChanged',_0x502066);}return _0x502066['addMarkerName'](_0x44fdf8),_0x502066;}['_refreshSuggestionsChain'](_0x14cc07){const _0x2161f4=Array['from'](_0x14cc07),_0x273f80=_0x2161f4['filter'](_0x177dbe=>'attribute'==_0x177dbe['type']);this['_refreshAttributeSuggestionsChain'](_0x273f80);const _0x108bf7=_0x2161f4['filter'](_0x2cc727=>!_0x2cc727['isMultiRange']&&'attribute'!=_0x2cc727['type']),_0x4b91a5=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x570564=>!_0x570564['isMultiRange']&&'attribute'!=_0x570564['type']),_0x45f983=_0x4b91a5['filter'](_0x311588=>!_0x14cc07['has'](_0x311588)),_0x4c906b=new Map(_0x4b91a5['map'](_0x20d103=>[_0x20d103,this['_suggestionFactory']['getSuggestionCallback'](_0x20d103['type'],_0x20d103['subType'],'chain')])),_0x5c3fa6=new Map(_0x4b91a5['map'](_0x288d1e=>[_0x288d1e,_0x288d1e['getFirstRange']()])),_0x49273f=new Set(),_0x7cf8ab=new Set();for(let _0x2aa202=0x0;_0x2aa202<_0x108bf7['length'];_0x2aa202++)_0x270ca0(_0x108bf7[_0x2aa202],_0x108bf7,_0x2aa202+0x1);for(let _0x5983c5=0x0;_0x5983c5<_0x108bf7['length'];_0x5983c5++)_0x270ca0(_0x108bf7[_0x5983c5],_0x45f983,0x0);const _0x157e04=new Set();for(let _0x1c4db9=0x0;_0x1c4db9<_0x108bf7['length'];_0x1c4db9++){const _0x5eef20=_0x108bf7[_0x1c4db9];!_0x7cf8ab['has'](_0x5eef20)&&_0x5eef20['previous']&&(_0x157e04['add'](_0x5eef20['previous']),_0x5eef20['previous']['next']===_0x5eef20&&(_0x5eef20['previous']['next']=null),_0x5eef20['previous']=null),!_0x49273f['has'](_0x5eef20)&&_0x5eef20['next']&&(_0x157e04['add'](_0x5eef20['next']),_0x5eef20['next']['previous']===_0x5eef20&&(_0x5eef20['next']['previous']=null),_0x5eef20['next']=null);}function _0x270ca0(_0x4721c4,_0x85d652,_0x14768d){for(let _0x41e98e=_0x14768d;_0x41e98e<_0x85d652['length'];_0x41e98e++){const _0x5d9ceb=_0x2fa87c(_0x4721c4,_0x85d652[_0x41e98e]);_0x5d9ceb&&(_0x5d9ceb[0x0]['next']=_0x5d9ceb[0x1],_0x5d9ceb[0x1]['previous']=_0x5d9ceb[0x0],_0x49273f['add'](_0x5d9ceb[0x0]),_0x7cf8ab['add'](_0x5d9ceb[0x1]));}}function _0x2fa87c(_0x14eb95,_0x1f2bed){if(_0x14eb95['author']['id']!==_0x1f2bed['author']['id'])return null;const _0x52ec69=_0x4c906b['get'](_0x14eb95)(_0x14eb95,_0x1f2bed,_0x5c3fa6['get'](_0x14eb95),_0x5c3fa6['get'](_0x1f2bed));if(!_0x52ec69)return null;return _0x4c906b['get'](_0x1f2bed)(_0x14eb95,_0x1f2bed,_0x5c3fa6['get'](_0x14eb95),_0x5c3fa6['get'](_0x1f2bed))?_0x52ec69[0x1]['commentThread']&&_0x52ec69[0x1]['commentThread']['length']?null:_0x52ec69:null;}_0x157e04['size']&&this['_refreshSuggestionsChain'](_0x157e04);}['_refreshAttributeSuggestionsChain'](_0x8f4c2){if(0x0==_0x8f4c2['length'])return;const _0x4d7c6d=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1dbec5=>'attribute'==_0x1dbec5['type']&&_0x1dbec5['_isDataLoaded']),_0xaa2b69=[],_0x5847c8=new Map();for(const _0x3d1f64 of _0x4d7c6d){const _0x56d302=_0x1a4a20(_0x3d1f64['attributes']);_0x5847c8['has'](_0x56d302)||(_0x5847c8['set'](_0x56d302,_0xaa2b69['length']),_0xaa2b69['push']([]));const _0x14efdb=_0x5847c8['get'](_0x56d302);_0xaa2b69[_0x14efdb]['push'](_0x3d1f64);}!(function(){_0xaa2b69['sort']((_0x53a190,_0x10c355)=>{const _0x42266a=_0x53a190[0x0]['createdAt'],_0x2330b6=_0x10c355[0x0]['createdAt'];return _0x42266a==_0x2330b6?_0x53a190[0x0]['attributes']['groupId']<_0x10c355[0x0]['attributes']['groupId']?-0x1:0x1:_0x42266a<_0x2330b6?-0x1:0x1;});for(const _0x423d42 of _0xaa2b69)_0x423d42['sort']((_0x4077ca,_0x55cbe3)=>_0x4077ca['id']<_0x55cbe3['id']?-0x1:0x1);}());for(let _0x7552c5=0x0;_0x7552c5<_0xaa2b69['length'];_0x7552c5++){if(0x0==_0xaa2b69[_0x7552c5]['length'])continue;const _0x4c7e89=[];for(let _0xb05e99=_0x7552c5+0x1;_0xb05e99<_0xaa2b69['length'];_0xb05e99++)0x0!=_0xaa2b69[_0xb05e99]['length']&&_0x57ef1f(_0xaa2b69[_0x7552c5],_0xaa2b69[_0xb05e99])&&_0x4c7e89['push'](_0xb05e99);for(const _0x3941f9 of _0x4c7e89)_0xaa2b69[_0x7552c5]=_0xaa2b69[_0x7552c5]['concat'](_0xaa2b69[_0x3941f9]),_0xaa2b69[_0x3941f9]=[];}for(const _0xc387ea of _0xaa2b69)for(let _0x47e13b=0x0;_0x47e13b<_0xc387ea['length'];_0x47e13b++){const _0x1ed6c5=_0xc387ea[_0x47e13b+0x1]||null;_0xc387ea[_0x47e13b]['next']!==_0x1ed6c5&&(_0xc387ea[_0x47e13b]['next']=_0x1ed6c5);}for(const _0x57ff16 of _0xaa2b69)for(let _0x3ad73a=0x0;_0x3ad73a<_0x57ff16['length'];_0x3ad73a++){const _0x1e82a8=_0x57ff16[_0x3ad73a-0x1]||null;_0x57ff16[_0x3ad73a]['previous']!==_0x1e82a8&&(_0x57ff16[_0x3ad73a]['previous']=_0x1e82a8);}function _0x57ef1f(_0x31ff01,_0x52fc5d){if(_0x31ff01[0x0]['attributes']['groupId']!==_0x52fc5d[0x0]['attributes']['groupId']&&_0x31ff01[0x0]['author']!==_0x52fc5d[0x0]['author'])return!0x1;if(!function(_0x218b80,_0x301f45){if(!_0x218b80['hasComments']&&!_0x301f45['hasComments'])return!0x0;if(_0x218b80['hasComments']&&_0x301f45['hasComments'])return!0x1;if(_0x218b80['hasComments']&&_0x301f45['createdAt']<_0x218b80['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x301f45['hasComments']&&_0x218b80['createdAt']<_0x301f45['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x31ff01[0x0],_0x52fc5d[0x0]))return!0x1;const _0x132958=Jt(_0x31ff01[0x0]['attributes'],['groupId','trackingSessionId']),_0x16cf00=Jt(_0x52fc5d[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x5bbc65(_0x132958,_0x16cf00))return!0x1;if(_0x31ff01[0x0]['attributes']['groupId']==_0x52fc5d[0x0]['attributes']['groupId'])return!0x0;if(_0x31ff01[0x0]['attributes']['trackingSessionId']!==_0x52fc5d[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x31ff01['every'](_0x48e285=>_0x52fc5d['some'](_0x386359=>_0x48e285['getFirstRange']()['isEqual'](_0x386359['getFirstRange']())))&&_0x52fc5d['every'](_0x424245=>_0x31ff01['some'](_0x318733=>_0x424245['getFirstRange']()['isEqual'](_0x318733['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x4fd10b){const _0x32efb1=Array['from'](_0x4fd10b),_0x1e6f8d=this['getSuggestions']({'skipNotAttached':!0x0}),_0x3603c4=_0x1e6f8d['filter'](_0x4c75ee=>!_0x4fd10b['has'](_0x4c75ee)),_0x3d5c25=new Map(_0x32efb1['map'](_0xf97ca7=>[_0xf97ca7,this['_suggestionFactory']['getSuggestionCallback'](_0xf97ca7['type'],_0xf97ca7['subType'],'join')])),_0x232d8f=new Map(_0x1e6f8d['map'](_0x592a07=>[_0x592a07,_0x592a07['getRanges']()]));for(let _0x371068=0x0;_0x371068<_0x32efb1['length'];_0x371068++){if(_0x5f0b9f(this,_0x32efb1[_0x371068],_0x32efb1,_0x371068+0x1))return!0x0;}for(let _0x5155b9=0x0;_0x5155b9<_0x32efb1['length'];_0x5155b9++){if(_0x5f0b9f(this,_0x32efb1[_0x5155b9],_0x3603c4,0x0))return!0x0;}return!0x1;function _0x5f0b9f(_0x40ab84,_0x3f99f4,_0x1b7d1c,_0xdb6151){for(let _0x19e6d6=_0xdb6151;_0x19e6d6<_0x1b7d1c['length'];_0x19e6d6++){const _0x1e5ec4=_0x1b7d1c[_0x19e6d6];if(_0x1e5ec4['type']!==_0x3f99f4['type']||_0x1e5ec4['author']['id']!==_0x3f99f4['author']['id']||_0x1e5ec4['subType']!==_0x3f99f4['subType'])continue;if(!en(_0x3f99f4,_0x1e5ec4))continue;if('attribute'==_0x3f99f4['type']&&_0x3f99f4['data']['oldValue']!=_0x1e5ec4['data']['oldValue'])continue;if('attribute'==_0x3f99f4['type']&&_0x40ab84['_isBlockAttribute'](_0x3f99f4['data']['key']))continue;if('formatBlock'==_0x3f99f4['type']){const _0x3c05ae=_0x40ab84['editor']['model'],_0xbda772=_0x3f99f4['getContainedElement']();if(_0xbda772&&(_0x3c05ae['schema']['isObject'](_0xbda772)||_0x3c05ae['schema']['isLimit'](_0xbda772)))continue;}const _0x4e1e83=_0x3d5c25['get'](_0x3f99f4),_0x113762=_0x232d8f['get'](_0x3f99f4),_0x23a3d8=_0x232d8f['get'](_0x1e5ec4),_0x34e23c=_0x3f99f4['commentThread']&&_0x3f99f4['commentThread']['length'],_0x7fbd5c=_0x1e5ec4['commentThread']&&_0x1e5ec4['commentThread']['length'];if(!_0x34e23c&&_0x4e1e83(_0x23a3d8,_0x113762))return _0x40ab84['_joinSuggestions'](_0x1e5ec4,_0x3f99f4),_0x232d8f['delete'](_0x3f99f4),!0x0;if(!_0x7fbd5c&&_0x4e1e83(_0x113762,_0x23a3d8))return _0x40ab84['_joinSuggestions'](_0x3f99f4,_0x1e5ec4),_0x232d8f['delete'](_0x1e5ec4),!0x0;}return!0x1;}}['_joinSuggestions'](_0x377606,_0x37e4a2){if(_0x377606['isMultiRange']){for(const _0x1ea9bc of _0x37e4a2['getRanges']())_0x377606['addRange'](_0x1ea9bc);}else{const _0x269541=_0x37e4a2['getFirstRange']()['end'];this['_setSuggestionRange'](_0x377606,this['_model']['createRange'](_0x377606['getFirstRange']()['start'],_0x269541));}_0x37e4a2['removeMarkers']();}['_getMarkerAnnouncementText'](_0x363469,_0x159e44,_0x32bc5c){const _0x20039a=_0x363469['startsWith']('format')||_0x363469['startsWith']('attribute')?'FORMATTING':_0x363469['toUpperCase']();return o(this['editor']['locale'],_0x159e44+'_'+_0x20039a+'_SUGGESTION_ANNOUNCEMENT',_0x32bc5c);}['_initAriaMarkerChangeAnnouncements'](){const _0x15aa29=this['editor'];if(!_0x15aa29['ui'])return;const {ariaLiveAnnouncer:_0x58ef8d}=_0x15aa29['ui'];_0x279474(this['_model'],({left:_0x13dd85,entered:_0x2f748a})=>{for(const _0x461979 of _0x13dd85){const {group:_0x26e67e,type:_0x292f78}=this['_splitMarkerName'](_0x461979['name']);if('suggestion'===_0x26e67e){_0x58ef8d['announce'](this['_getMarkerAnnouncementText'](_0x292f78,'LEAVE'));break;}}for(const _0x53273b of _0x2f748a){const {group:_0xc99db8,type:_0x4859c3}=this['_splitMarkerName'](_0x53273b['name']);if('suggestion'===_0xc99db8){_0x58ef8d['announce'](this['_getMarkerAnnouncementText'](_0x4859c3,'ENTER',_0x626735(_0x1c9bfb)));break;}}});}['_processAttributeChanges'](_0x87ed21){if(this['_recordAttributeSuggestions'])return!0x1;const _0x47db97=this['editor'],_0x5dae1f=_0x47db97['model']['document']['differ']['getChanges']();if(0x0==_0x5dae1f['length'])return!0x1;const _0x27b6ae=[],_0x247e08=_0x5dae1f['filter'](_0x1940bb=>'attribute'==_0x1940bb['type']),_0x5b2dec=_0x5dae1f['filter'](_0x6bf2a6=>'insert'==_0x6bf2a6['type']&&'$text'!=_0x6bf2a6['name']),_0x2c80de=_0x5dae1f['filter'](_0x256d5d=>'remove'==_0x256d5d['type']&&'$text'!=_0x256d5d['name']);for(const _0x2b24e4 of _0x247e08)_0x27b6ae['push']({'key':_0x2b24e4['attributeKey'],'newValue':_0x2b24e4['attributeNewValue'],'oldValue':_0x2b24e4['attributeOldValue'],'range':Zt(_0x2b24e4['range'],_0x47db97['model'])});for(const _0x364318 of _0x5b2dec){const _0x45bb90=_0x2c80de['find'](_0x50aa9d=>_0x50aa9d['position']['isEqual'](_0x364318['position']));_0x45bb90&&_0x27b6ae['push']({'key':m,'newValue':_0x364318['name'],'oldValue':_0x45bb90['name'],'range':_0x47db97['model']['createRangeOn'](_0x364318['position']['nodeAfter'])});}return 0x0!=_0x27b6ae['length']&&this['_reduceExistingSuggestions'](_0x87ed21,_0x27b6ae);}['_processAttributeSuggestions'](_0x549f0b){let _0x16221c=!0x1;const _0x3cab90=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x23b9eb=>_0x23b9eb['data']['newRange']&&_0x23b9eb['name']['startsWith']('suggestion:attribute:'));for(const _0x11fcf6 of _0x3cab90){const {subType:_0x26eb5c,id:_0x418bd9}=this['_splitMarkerName'](_0x11fcf6['name']),_0x1ade00=_0x26eb5c['split']('|')[0x0];for(const _0x1c48fc of this['getSuggestions']({'skipNotAttached':!0x0}))_0x1c48fc['id']!=_0x418bd9&&'attribute'==_0x1c48fc['type']&&_0x1c48fc['data']&&_0x1c48fc['data']['key']==_0x1ade00&&_0x1c48fc['getFirstRange']()['isIntersecting'](_0x11fcf6['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x1c48fc,_0x11fcf6['data']['newRange'],_0x549f0b),_0x16221c=!0x0);}return _0x16221c;}['recordAttributeChanges'](_0x5cec81){this['_recordAttributeSuggestions']=!0x0,_0x5cec81();}['_isRegisteredAttribute'](_0x40f1a2){return this['editor']['plugins']['get'](_0xd88bfa)['isRegisteredAttribute'](_0x40f1a2);}['_reduceExistingSuggestions'](_0xd21a3a,_0x1e8a8b){if(0x0==_0x1e8a8b['length'])return!0x1;let _0x5b375b=!0x1;for(const _0x54b727 of _0x1e8a8b){const _0x2b7ebb=this['_findSuggestions'](_0x54b727['range'],'attribute')['filter'](_0x563293=>!_0x563293['meta']['isNextTo'])['map'](_0xf1f771=>_0xf1f771['suggestion']),_0x933f38=_0x1a4a20({'newValue':_0x54b727['newValue']});_0x2b7ebb['filter'](_0x5df7b7=>{const [_0x1e61ac,_0x28c3b7]=_0x5df7b7['subType']['split']('|');return _0x1e61ac==_0x54b727['key']&&_0x28c3b7!=_0x933f38;})['forEach'](_0x94ed51=>{this['_reduceSuggestionAttributeRange'](_0x94ed51,_0x54b727['range'],_0xd21a3a),_0x5b375b=!0x0;});}return _0x5b375b;}['_reduceSuggestionAttributeRange'](_0x120834,_0x1d42fc,_0x5b298c){const _0x1c541a=_0x120834['getFirstRange']()['getDifference'](_0x1d42fc);0x0!==_0x1c541a['length']?0x1!==_0x1c541a['length']?this['_breakSuggestionMarker'](_0x120834,_0x1d42fc['start'],_0x1d42fc['end']):this['_setSuggestionRange'](_0x120834,_0x1c541a[0x0]):_0x5b298c['removeMarker'](_0x120834['getFirstMarker']());}}class qt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0xc656de){this['_editor']=_0xc656de,this['_model']=_0xc656de['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x23eb47,_0x10fd01,_0x4670d6,_0x219962,_0x2e2b1d,_0x59de6,_0x3cc8cd){return new T(this['_model'],{'type':_0x23eb47,'subType':_0x10fd01,'id':_0x4670d6,'originalSuggestionId':_0x3cc8cd,'author':_0x219962,'creator':_0x219962,'attributes':_0x2e2b1d,'onAttributesChange':_0x59de6,'onAccept':(..._0x340f81)=>this['getSuggestionCallback'](_0x23eb47,_0x10fd01,'accept')(..._0x340f81),'onDiscard':(..._0x23666d)=>this['getSuggestionCallback'](_0x23eb47,_0x10fd01,'discard')(..._0x23666d)});}['registerCustomCallback'](_0x13596e,_0x3d9233,_0x397547,_0x527712){const _0x302e41=_0x13596e+':'+_0x3d9233+':'+_0x397547;this['_customCallbacks']['set'](_0x302e41,_0x527712);}['getSuggestionCallback'](_0x20154d,_0xec4d89,_0x1c94f3){const _0x531c54=_0x20154d+':'+_0xec4d89+':'+_0x1c94f3;return this['_customCallbacks']['get'](_0x531c54)||this['_defaultCallbacks']['get'](_0x20154d+':'+_0x1c94f3);}['_registerDefaultCallbacks'](){const _0x56436e=()=>!0x1,_0x1d422e=_0x4380a6=>{_0x4380a6['sort']((_0x5c7b93,_0x592c40)=>_0x5c7b93['start']['isBefore'](_0x592c40['start'])?0x1:-0x1),this['_model']['change'](_0x384d4b=>{for(const _0x47a0a6 of _0x4380a6){let _0x4e6f96;_0x4e6f96=_0x47a0a6['end']['isAtEnd']&&_0x47a0a6['end']['parent']==_0x47a0a6['start']['nodeAfter']?_0x384d4b['createSelection'](_0x47a0a6['start']['nodeAfter'],'on'):_0x384d4b['createSelection'](_0x47a0a6),this['_model']['deleteContent'](_0x4e6f96,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x3500ae=(_0x46b803,_0x24e44f)=>{_0x24e44f&&this['_model']['change'](_0xb52984=>{const {commandName:_0x157250,commandParams:_0x5ef0c3=[]}=_0x24e44f,_0x5aa3bb=_0x46b803['map'](_0x4a6e3b=>(Kt(_0x4a6e3b)&&(_0x4a6e3b=this['_model']['createRange'](_0x4a6e3b['end'])),_0x4a6e3b))['filter'](_0xdc037c=>'$graveyard'!==_0xdc037c['root']['rootName']);if(_0x5aa3bb['length']<0x1)return;const _0x23ecc5=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x4196d1=>_0x3090d1['fromRange'](_0x4196d1));_0xb52984['setSelection'](_0x5aa3bb);for(const _0x4b01e1 of this['_editor']['commands']['commands']())_0x4b01e1['refresh']();_0x5ef0c3['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x157250,..._0x5ef0c3);const _0x334f8d=_0x23ecc5['filter'](_0x4ba866=>'$graveyard'!=_0x4ba866['root']['rootName']);_0x334f8d['length']>0x0&&_0xb52984['setSelection'](_0x334f8d);for(const _0x2e85ed of _0x23ecc5)_0x2e85ed['detach']();});},_0x4a6ef3=(_0x585e27,_0x1b11e8)=>0x1==_0x585e27['length']&&0x1==_0x1b11e8['length']&&_0x585e27[0x0]['end']['isEqual'](_0x1b11e8[0x0]['start']),_0x33f91a=(_0x23f869,_0x35bec0,_0xa0c602,_0x5afcbc)=>nn(_0x23f869,_0x35bec0,_0xa0c602,_0x5afcbc)?[_0x23f869,_0x35bec0]:nn(_0x35bec0,_0x23f869,_0x5afcbc,_0xa0c602)?[_0x35bec0,_0x23f869]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x56436e),this['_defaultCallbacks']['set']('insertion:discard',_0x1d422e),this['_defaultCallbacks']['set']('insertion:join',_0x4a6ef3),this['_defaultCallbacks']['set']('insertion:chain',_0x33f91a),this['_defaultCallbacks']['set']('deletion:accept',_0x1d422e),this['_defaultCallbacks']['set']('deletion:discard',_0x56436e),this['_defaultCallbacks']['set']('deletion:join',_0x4a6ef3),this['_defaultCallbacks']['set']('deletion:chain',_0x33f91a),this['_defaultCallbacks']['set']('formatInline:accept',_0x3500ae),this['_defaultCallbacks']['set']('formatInline:discard',_0x56436e),this['_defaultCallbacks']['set']('formatInline:join',_0x4a6ef3),this['_defaultCallbacks']['set']('formatInline:chain',_0x56436e),this['_defaultCallbacks']['set']('formatBlock:accept',_0x3500ae),this['_defaultCallbacks']['set']('formatBlock:discard',_0x56436e),this['_defaultCallbacks']['set']('formatBlock:join',_0x4a6ef3),this['_defaultCallbacks']['set']('formatBlock:chain',_0x56436e),this['_defaultCallbacks']['set']('attribute:accept',_0x56436e),this['_defaultCallbacks']['set']('attribute:discard',(_0x49e1ce,_0x5f2731)=>{if(!_0x5f2731)return;const _0x27bcee=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x1bf76e=>{if(_0x5f2731['key']==m)for(const _0x234d2f of _0x49e1ce){const _0x57abe1=_0x234d2f['start']['nodeAfter'],_0x6de2b8=_0x5f2731['oldValue'];_0x1bf76e['rename'](_0x57abe1,_0x6de2b8);}else{if(_0x27bcee['_isBlockAttribute'](_0x5f2731['key'])){for(const _0x1b00e3 of _0x49e1ce)void 0x0!==_0x5f2731['oldValue']?_0x1bf76e['setAttribute'](_0x5f2731['key'],_0x5f2731['oldValue'],_0x1b00e3['start']['nodeAfter']):_0x1bf76e['removeAttribute'](_0x5f2731['key'],_0x1b00e3['start']['nodeAfter']);}else{for(const _0x304893 of _0x49e1ce)_0x5f2731['oldValue']?_0x1bf76e['setAttribute'](_0x5f2731['key'],_0x5f2731['oldValue'],_0x304893):_0x1bf76e['removeAttribute'](_0x5f2731['key'],_0x304893);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x4a6ef3);}}function zt(_0x20a301,_0x4371f8,_0x1a6143){for(const _0xfdef81 of _0x4371f8['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0xfdef81['root']==_0xfdef81)return!0x1;if(!_0x1a6143['containsItem'](_0xfdef81))return!0x1;if(_0x20a301['isObject'](_0xfdef81)||_0x20a301['isLimit'](_0xfdef81))return!0x0;}return!0x1;}function Kt(_0x3b417c){return _0x3b417c['end']['parent']==_0x3b417c['start']['nodeAfter']&&_0x3b417c['end']['isAtStart'];}function Wt(_0x10d896,_0x1d2383,_0x34c152,_0x531531){const _0x187b07=_0x9627b=>!_0x9627b['item']['is']('$textProxy')&&!_0x531531['isObject'](_0x9627b['item']),_0x20a86a=_0x10d896['start']['getLastMatchingPosition'](_0x187b07),_0x1d1752=_0x10d896['end']['getLastMatchingPosition'](_0x187b07,{'direction':'backward'});return(!_0x10d896['start']['isEqual'](_0x20a86a)||!_0x10d896['end']['isEqual'](_0x1d1752))&&(_0x20a86a['isBefore'](_0x1d1752)?_0x34c152['updateMarker'](_0x1d2383,{'range':_0x34c152['createRange'](_0x20a86a,_0x1d1752)}):_0x34c152['removeMarker'](_0x1d2383),!0x0);}function Ht(_0x2e7de7){return _0x1a4a20(_0x2e7de7);}function Qt(_0x2870dc){const _0x1387e6=_0x2870dc['start']['nodeAfter'];return _0x1387e6&&_0x1387e6['is']('element');}function Xt(_0x3f12e5){return Kt(_0x3f12e5)||function(_0x2ee6cc){return _0x2ee6cc['start']['parent']==_0x2ee6cc['end']['nodeBefore']&&_0x2ee6cc['start']['isAtEnd'];}(_0x3f12e5);}function Yt(_0x57abd9,_0x44dce2){try{const _0x37780d=_0x57abd9['getRange']();for(const _0x275d69 of _0x44dce2)if(_0x57abd9!==_0x275d69&&_0x37780d&&_0x37780d['isIntersecting'](_0x275d69['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Zt(_0x4d4499,_0x319db5){return null==_0x4d4499['end']['nodeBefore']&&_0x4d4499['end']['parent']==_0x4d4499['start']['nodeAfter']?tn(_0x4d4499['start']['nodeAfter'],_0x319db5):_0x4d4499;}function tn(_0x305429,_0x2344ef){const _0x3c002a=_0x2344ef['schema']['isObject'](_0x305429)||_0x2344ef['schema']['isSelectable'](_0x305429);return _0x2344ef['createRange'](_0x2344ef['createPositionAt'](_0x305429,'before'),_0x3c002a?_0x2344ef['createPositionAfter'](_0x305429):_0x2344ef['createPositionAt'](_0x305429,'end'));}function nn(_0x40a763,_0xfe8097,_0x4d74f0,_0x500b6e){return!!en(_0x40a763,_0xfe8097)&&_0x4d74f0['end']['isEqual'](_0x500b6e['start']);}function en(_0x4e3f2b,_0x1c2ff4){if(!_0x4e3f2b['_isDataLoaded']||!_0x1c2ff4['_isDataLoaded'])return!0x1;const _0xb2b0cd=new Set(Object['keys'](_0x4e3f2b['attributes'])),_0x3f49e4=new Set(Object['keys'](_0x1c2ff4['attributes']));if(_0xb2b0cd['delete']('groupId'),_0x3f49e4['delete']('groupId'),0x0==_0xb2b0cd['size']&&0x0==_0x3f49e4['size'])return!0x0;if(_0xb2b0cd['size']!=_0x3f49e4['size'])return!0x1;const _0x3fdf67={..._0x4e3f2b['attributes']},_0x5bb7b6={..._0x1c2ff4['attributes']};return delete _0x3fdf67['groupId'],delete _0x5bb7b6['groupId'],JSON['stringify'](_0x3fdf67)==JSON['stringify'](_0x5bb7b6);}function sn(_0x116162,_0xfeca53){const _0x2446cb=on(_0x116162['attributes']),_0x8d7803=on(_0xfeca53);if(!_0x116162['_isDataLoaded'])return!0x1;for(const _0xaae017 of Object['keys'](_0x8d7803))if(!_0x5bbc65(_0x2446cb[_0xaae017],_0x8d7803[_0xaae017]))return!0x1;return!0x0;}function on(_0x5c7f7a){const _0x23e82a=Object['assign']({},_0x5c7f7a);return delete _0x23e82a['skipNestingCheck'],delete _0x23e82a['tablePasteChainId'],_0x23e82a;}class pe extends/* #__PURE__ -- @preserve */
26
- _0x2617d7(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x4d792a,_0x37bc7b,_0xb8b7f2,_0x3c21c6){super(),this['model']=_0x37bc7b,this['view']=_0xb8b7f2,this['commentThreadController']=_0x3c21c6,this['_editor']=_0x4d792a,this['_acceptCommand']=_0x4d792a['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x4d792a['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x23e07f,_0x71c613)=>_0x23e07f||_0x71c613),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x2d1bab=>_0x2d1bab&&this['_editor']['model']['canEditAt'](_0x37bc7b['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x31415e=>_0x31415e&&this['_editor']['model']['canEditAt'](_0x37bc7b['getRanges']())),this['_pendingAction']=null,_0xb8b7f2['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0xb8b7f2,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0xb8b7f2,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0xb8b7f2,'change:isDirty',()=>{_0xb8b7f2['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 _0x321a8b=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x321a8b);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x10e6c6{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x146342,_0x384411,_0x45c78c,_0xccca66){super(_0x146342),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x2bd3e4(_0x146342,o(_0x146342,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x384411['authoredAt']),this['bind']('authoredAt')['to'](_0x384411),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',_0x384411,'authoredAt',this,'descriptionParts',(_0x23fe28,_0x4e3b2c,_0x2214a0)=>{const _0x360d9f=_0x2214a0['map'](_0x3f062b=>ls(_0x3f062b['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x23fe28-0x1,_0x384411['author']['name'],_0x4e3b2c?_0xccca66['formatDateTime'](_0x4e3b2c):'',new DOMParser()['parseFromString'](_0x360d9f,'text/html')['body']['textContent']]);}),this['focusables']=new _0x55b938(),this['focusTracker']=new _0x44fa65(),this['keystrokes']=new _0x31303a(),this['focusCycler']=new _0x1b1d17({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x19c9bd=>_0x19c9bd['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x384411,this['_localUser']=_0x45c78c,this['_config']=_0xccca66,_0xccca66['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x308477(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x49f303}=this['_config'];this['commentsListView']=new _0x49f303(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',_0x3a75ea=>_0x3a75ea+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x5bbd2b,_0x46c9c4)=>_0x5bbd2b||!!_0x46c9c4);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x3c2280}=this['_config'],_0x4d2cc9=new _0x3c2280(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4b5a93=_0x4d2cc9['commentInputView'];return _0x4d2cc9['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4b5a93,'value',(_0x5ba3b3,_0xcd6c7e,_0x518905)=>!!_0x518905||_0x5ba3b3&&!_0xcd6c7e),_0x4b5a93['on']('submit',(_0x1aa9cf,_0x1d379a)=>{this['fire']('addComment',_0x1d379a),_0x4b5a93['editor']['setData']('');}),_0x4b5a93['on']('cancel',()=>this['focus']()),_0x4b5a93['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4d2cc9;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x4e9e80,_0x118e07,_0x160045,_0x361434){super(_0x4e9e80,_0x118e07,_0x160045,_0x361434),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x24e891=>_0x24e891&&_0x24e891[0x0]?_0x24e891[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x4f6a79,_0xf40feb)=>{let _0x166a1c='';for(const _0x480814 of _0x4f6a79)_0x166a1c+='<p>'+ls(_0x480814['content'],_0x480814['color'])+'</p>';return _0xf40feb?_0x166a1c:_0x4aaff8(_0x166a1c,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x361434['SuggestionView'](_0x4e9e80,_0x118e07,{'formatDateTime':_0x361434['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 _0x339cf7=this['bindTemplate'],_0x5bd709=[this['suggestionView']];return this['commentsListView']&&_0x5bd709['push'](this['commentsListView']),this['commentThreadInputView']&&_0x5bd709['push'](this['commentThreadInputView']),_0x5bd709['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x339cf7['if']('isActive','ck-suggestion-wrapper--active'),_0x339cf7['to']('type',_0x5a20b6=>'ck-suggestion-'+_0x5a20b6),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':_0x339cf7['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x5bd709};}['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 _0x10e6c6{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x377cb3,_0x4501a6,_0x457a43){super(_0x377cb3),this['_model']=_0x4501a6,this['_config']=_0x457a43,this['set']('description',''),this['bind']('authoredAt')['to'](_0x4501a6),this['acceptButton']=this['_createButton'](o(_0x377cb3,'Accept\x20suggestion'),_0x5cc7dd,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x377cb3,'Discard\x20suggestion'),_0x426f8f,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x39d4f5(_0x377cb3,_0x4501a6['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x55b938([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x44fa65(),this['keystrokes']=new _0x31303a(),this['focusCycler']=new _0x1b1d17({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x301c96=>_0x301c96['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x229d71=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x229d71['innerHTML']=this['description'],this['on']('change:description',(_0xf9779b,_0x4bf4f1,_0x55b16d)=>{_0x229d71['innerHTML']=_0x55b16d;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0xccec9f=this['bindTemplate'],_0x57f43e=[{'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':_0xccec9f['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0xccec9f['to']('authoredAt',_0x2b77a7=>this['_config']['formatDateTime'](_0x2b77a7))}]}]},{'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']&&_0x57f43e['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':_0x57f43e}]};}['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'](_0x245ee7,_0xa6a29,_0x386781,_0x50303d,_0xe29a55){const _0x3da534=new _0x569119(this['locale']);return _0x3da534['set']({'label':_0x245ee7,'icon':_0xa6a29,'tooltip':!0x0,'tooltipPosition':_0xe29a55}),_0x3da534['extendTemplate']({'attributes':{'class':_0x386781}}),_0x3da534['on']('execute',()=>{this['fire'](_0x50303d,this['_model']['id']);}),_0x3da534;}['_setupKeyboardNavigation'](){const _0x3c78a6=this['element'];this['keystrokes']['listenTo'](_0x3c78a6);for(const _0x203fd9 of this['focusables'])this['focusTracker']['add'](_0x203fd9['element']),this['keystrokes']['listenTo'](_0x203fd9['element']);this['keystrokes']['set']('enter',(_0x10e7b6,_0x2ec2f5)=>{_0x3c78a6===_0x10e7b6['target']&&(this['focusCycler']['focusFirst'](),_0x2ec2f5());}),this['keystrokes']['set']('esc',(_0x1da215,_0x32162e)=>{_0x3c78a6!==_0x1da215['target']&&(this['focus'](),_0x32162e());});}}class u extends _0x49ec79{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x567a7d,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x326d6d){super(_0x326d6d),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x43f3c8=this['editor']['config'];_0x43f3c8['define']('trackChanges.SuggestionThreadView',fe),_0x43f3c8['define']('trackChanges.SuggestionView',we),_0x43f3c8['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x43f3c8['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x4dbf20,_0x40183e){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x2a35ce,_0x223af4]of this['_handleControllerBuffer']){const _0xf5ea9d=this['_suggestionToController']['has'](_0x2a35ce);_0xf5ea9d||_0x223af4?_0xf5ea9d&&_0x223af4&&this['_destroyController'](_0x2a35ce):this['_initializeController'](_0x2a35ce);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x4dbf20,_0x40183e);}['init'](){const _0x53a9e0=this['editor'],_0x110e2e=_0x53a9e0['plugins']['get']('TrackChangesEditing'),_0x3c65c8=_0x53a9e0['plugins']['get']('Annotations'),_0x53988e=_0x53a9e0['plugins']['get']('EditorAnnotations'),_0x49123e=_0x53a9e0['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x53988e['addSourceCollector'](()=>{const _0xf6a7c3=[];for(const [_0x66e880,_0x3c0839]of Array['from'](this['_suggestionToController'])){const _0x2e43bc=_0x66e880['getAllAdjacentSuggestions'](),_0xbd5ee0=[];for(const _0x50ed03 of _0x2e43bc){if(!_0x50ed03['isInContent'])continue;if(_0x50ed03['isMultiRange']){_0xbd5ee0['push'](..._0x50ed03['getRanges']());continue;}const _0xd7d4ed=_0x50ed03['getFirstRange']();if(_0xbd5ee0['length']>0x0){const _0x32536c=_0xbd5ee0[0x0]['getJoined'](_0xd7d4ed);if(_0x32536c){_0xbd5ee0[0x0]=_0x32536c;continue;}}_0xbd5ee0['push'](_0xd7d4ed);}_0xf6a7c3['push']([_0x3c0839['view'],_0xbd5ee0]);}return _0xf6a7c3;}),this['listenTo'](_0x110e2e,'suggestionLoaded',(_0x546b34,_0xe5826e)=>{this['listenTo'](_0xe5826e,'change:previous',(_0x7adf0e,_0x132454,_0x1caceb,_0x2e65f2)=>{_0xe5826e['isInContent']&&(null==_0x1caceb?(this['_updateController'](_0x2e65f2['head']),this['_handleSuggestionControllerDelayed'](_0xe5826e,!0x1)):(this['_updateController'](_0x1caceb['head']),null==_0x2e65f2&&this['_handleSuggestionControllerDelayed'](_0xe5826e,!0x0)));}),null!==_0xe5826e['previous']?this['_updateController'](_0xe5826e['head']):this['_handleSuggestionControllerDelayed'](_0xe5826e,!0x1);}),this['listenTo'](_0x110e2e,'suggestionUnloaded',(_0x5d5007,_0x3e7e2f,_0xd30fdc)=>{this['stopListening'](_0x3e7e2f,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3e7e2f),this['_suggestionToController']['has'](_0x3e7e2f)&&this['_destroyController'](_0x3e7e2f),_0xd30fdc&&this['_updateController'](_0xd30fdc['head']);}),this['listenTo'](_0x110e2e,'suggestionChanged',(_0x96ccdc,_0x1915ce)=>{this['_updateController'](_0x1915ce);}),this['listenTo'](_0x3c65c8,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x49123e,'addComment',(_0x42f54c,{threadId:_0x1b11ea,isFromAdapter:_0xa354eb})=>{if(_0xa354eb||!_0x110e2e['hasSuggestion'](_0x1b11ea))return;const _0x1af019=_0x110e2e['getSuggestion'](_0x1b11ea);this['_suggestionToController']['get'](_0x1af019)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x49c531=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2a42e5;for(const _0x4d643c in _0x49c531){const _0x3aaf4e=_0x4d643c,_0x3381ba=_0x49c531[_0x3aaf4e];if('trackChangesLicenseKeyValid'==_0x3381ba||'trackChangesLicenseKeyInvalid'==_0x3381ba||'trackChangesLicenseKeyExpired'==_0x3381ba||'trackChangesLicenseKeyDomainLimit'==_0x3381ba||'trackChangesLicenseKeyNotAllowed'==_0x3381ba||'trackChangesLicenseKeyEvaluationLimit'==_0x3381ba||'trackChangesLicenseKeyUsageLimit'==_0x3381ba){delete _0x49c531[_0x3aaf4e],_0x2a42e5=_0x3381ba,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x2a42e5&&_0x49c531['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x2a42e5&&_0x49c531['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x2a42e5&&_0x49c531['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x2a42e5&&_0x49c531['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x2a42e5&&_0x49c531['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x2a42e5&&_0x49c531['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x47f573){const _0x4e1d89=this['_suggestionToController']['get'](_0x47f573);if(!_0x4e1d89)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x4e1d89['view'])||null;}['getSuggestionForAnnotation'](_0x227358){const _0x4e997d=this['_viewToController']['get'](_0x227358['innerView']);return _0x4e997d?_0x4e997d['model']:null;}['_refreshActiveMarkers'](){const _0x108027=this['editor']['plugins']['get']('Annotations'),_0x3f258b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x169c16=Array['from'](_0x108027['activeAnnotations'],_0x2afc5d=>_0x2afc5d['innerView'])['filter'](_0x33b80f=>this['_viewToController']['has'](_0x33b80f)),_0x415e26=[];for(const _0x1b3368 of _0x169c16){const _0x53d786=this['_viewToController']['get'](_0x1b3368)['model']['getAllAdjacentSuggestions']();_0x415e26['push'](..._0x53d786['reduce']((_0x23fca4,_0x553b6c)=>[..._0x23fca4,..._0x553b6c['getMarkerNames']()],[]));}_0x3f258b['activeMarkers']=_0x415e26;}['_addUIComponentsToFactory'](){const _0x497103=this['editor'],_0x46d6c8=_0x497103['locale'],_0x177cc3=o(_0x46d6c8,'Track\x20changes'),_0x2e870b=new _0x4d1935([{'type':'switchbutton','model':new _0x1b387e({'withText':!0x0,'isToggleable':!0x0,'label':_0x177cc3,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x1b387e({'withText':!0x0,'label':o(_0x46d6c8,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1b387e({'withText':!0x0,'label':o(_0x46d6c8,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1b387e({'withText':!0x0,'label':o(_0x46d6c8,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1b387e({'withText':!0x0,'label':o(_0x46d6c8,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x497103['plugins']['has']('TrackChangesPreview')&&_0x2e870b['addMany']([{'type':'separator'},{'type':'button','model':new _0x1b387e({'withText':!0x0,'label':o(_0x46d6c8,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x2e93cd of _0x2e870b)if(ke(_0x2e93cd)){const _0x1e2706=_0x497103['commands']['get'](_0x2e93cd['model']['commandName']);_0x2e93cd['model']['bind']('isOn','isEnabled')['to'](_0x1e2706,'value','isEnabled');}_0x497103['ui']['componentFactory']['add']('trackChanges',_0xf2a399=>this['_createToolbarButton'](_0xf2a399,_0x2e870b,_0x177cc3)),_0x497103['ui']['componentFactory']['add']('menuBar:trackChanges',_0x1e0e90=>this['_createMenuBarMenu'](_0x1e0e90,_0x2e870b,_0x177cc3));}['_createToolbarButton'](_0x46fba5,_0x3cc2a6,_0x1f718){const _0xc540aa=_0x148aa8(_0x46fba5,_0x3cccab),_0x444cd8=this['editor']['commands']['get']('trackChanges');_0xc540aa['buttonView']['set']({'tooltip':_0x1f718,'label':_0x1f718,'icon':_0x5988e2}),_0xc540aa['buttonView']['bind']('isOn')['to'](_0x444cd8,'value'),_0xc540aa['buttonView']['on']('execute',()=>{_0x444cd8['execute'](),this['editor']['editing']['view']['focus']();}),_0x2aa164(_0xc540aa,_0x3cc2a6,{'role':'menu'});const _0x3963fa=[];for(const _0x301300 of _0x3cc2a6)ke(_0x301300)&&_0x3963fa['push'](this['editor']['commands']['get'](_0x301300['model']['commandName']));const _0x57969c=_0xc540aa['buttonView'];return _0x57969c['actionView']['unbind']('isEnabled'),_0x57969c['arrowView']['unbind']('isEnabled'),_0x57969c['actionView']['bind']('isEnabled')['to'](_0x444cd8,'isEnabled'),_0x57969c['arrowView']['bind']('isEnabled')['toMany'](_0x3963fa,'isEnabled',(..._0xb61a50)=>_0xb61a50['some'](_0x34e8ab=>_0x34e8ab)),_0xc540aa['on']('execute',_0x582abe=>{this['editor']['execute'](_0x582abe['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0xc540aa;}['_createMenuBarMenu'](_0x5185e5,_0x3af660,_0x432abe){const _0xf2ff20=new _0x5dfe8c(_0x5185e5),_0x512573=this['editor']['commands']['get']('trackChanges');_0xf2ff20['buttonView']['set']({'label':_0x432abe,'icon':_0x5988e2});const _0x132d80=new _0x486ec5(_0x5185e5);for(const _0x18b236 of _0x3af660){if('separator'==_0x18b236['type']){_0x132d80['items']['add'](new _0x284e40(_0x5185e5));continue;}const _0x40295e=new _0x45bc3f(_0x5185e5,_0xf2ff20),_0x1786b4=new _0x2df99b(_0x5185e5),_0x138b3b=_0x18b236['model'];_0x1786b4['bind'](...Object['keys'](_0x138b3b))['to'](_0x138b3b),_0x1786b4['delegate']('execute')['to'](_0xf2ff20),_0x1786b4['on']('execute',()=>{this['editor']['execute'](_0x138b3b['commandName']),this['editor']['editing']['view']['focus']();}),_0x40295e['children']['add'](_0x1786b4),_0x132d80['items']['add'](_0x40295e);}return _0xf2ff20['bind']('isEnabled')['to'](_0x512573,'isEnabled'),_0xf2ff20['panelView']['children']['add'](_0x132d80),_0xf2ff20;}['_initializeController'](_0x16ec14){const _0x6e2991=this['editor'],_0x8317b7=_0x6e2991['config'],_0x990158=_0x6e2991['plugins']['get']('Annotations'),_0x5742e9=_0x6e2991['plugins']['get']('CommentsRepository'),_0x1738ee=_0x6e2991['plugins']['get']('EditorAnnotations'),_0x32275b=_0x6e2991['plugins']['get'](_0x567a7d)['me'],_0x28b53d=_0x8317b7['get']('trackChanges')['SuggestionThreadView'],_0x2b0e26=_0x8317b7['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x41de31,CommentThreadInputView:_0x120e44}=_0x6e2991['plugins']['get']('CommentsUI');let _0x3ee3c8,_0x5e2a6d,_0x4093d7;this['_annotationViews']['has'](_0x16ec14['id'])?(_0x5e2a6d=this['_annotationViews']['get'](_0x16ec14['id']),_0x3ee3c8=_0x5e2a6d['mainView']):(_0x3ee3c8=new _0x28b53d(_0x6e2991['locale'],_0x16ec14,_0x32275b,{'disableComments':this['_disableComments'],'editorConfig':{..._0x8317b7['get']('comments.editorConfig'),'licenseKey':_0x8317b7['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x8317b7['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x8317b7['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x8317b7['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x358dc2(_0x8317b7['get']('locale'),_0x6e2991['locale']),'CommentView':_0x8317b7['get']('comments')['CommentView'],'CommentsListView':_0x41de31,'CommentThreadInputView':_0x120e44,'SuggestionView':_0x2b0e26}),_0x3ee3c8['suggestionView']['acceptButton']['on']('execute',()=>{_0x6e2991['editing']['view']['focus']();}),_0x3ee3c8['suggestionView']['discardButton']['on']('execute',()=>{_0x6e2991['editing']['view']['focus']();}),_0x5e2a6d=_0x990158['createAnnotationView'](this['editor']['locale'],_0x3ee3c8),_0x5e2a6d['bind']('isDirty')['to'](_0x3ee3c8,'isDirty'),_0x5e2a6d['bind']('length')['to'](_0x3ee3c8),_0x5e2a6d['bind']('type')['to'](_0x3ee3c8,'type',_0x42161f=>'suggestion-'+_0x42161f),_0x3ee3c8['on']('escape',()=>{_0x4093d7['fire']('escape');}),this['_annotationViews']['set'](_0x16ec14['id'],_0x5e2a6d));const _0x57929b=_0x5742e9['createCommentThreadController'](_0x16ec14['commentThread'],_0x3ee3c8),_0x5a603c=new pe(_0x6e2991,_0x16ec14,_0x3ee3c8,_0x57929b),_0x3719a8=_0x16ec14['getAllAdjacentSuggestions']()['filter'](_0x6edb0f=>_0x6edb0f['isInContent']);_0x3ee3c8['descriptionParts']=_0x6e2991['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x3719a8),this['_suggestionToController']['set'](_0x16ec14,_0x5a603c),this['_viewToController']['set'](_0x3ee3c8,_0x5a603c);const _0x214671=()=>{const _0x4b66cf=[],_0x386e56=_0x16ec14['getAllAdjacentSuggestions']()['filter'](_0x2887=>_0x2887['isInContent']);for(const _0x17f6bc of _0x386e56)_0x4b66cf['push'](..._0x17f6bc['getMarkers']());return _0x38fcc9(_0x6e2991['editing'],_0x4b66cf);};_0x4093d7=_0x990158['createAnnotation']({'view':_0x5e2a6d,'target':_0x214671,'type':()=>'suggestion-'+_0x5a603c['view']['type'],'isVisible':!!_0x214671()}),_0x5742e9['_bindAnnotationToEditors'](_0x3ee3c8,_0x4093d7),_0x990158['add'](_0x4093d7),_0x1738ee['registerAnnotation'](_0x4093d7);}['_destroyController'](_0xee16f9){const _0x1a255d=this['editor']['plugins']['get']('CommentsRepository'),_0x112d00=this['editor']['plugins']['get']('Annotations'),_0x3788d2=this['_suggestionToController']['get'](_0xee16f9),_0x5af46f=_0x3788d2['view'],_0x481fd7=_0x112d00['getByInnerView'](_0x5af46f);_0x1a255d['_unbindEditors'](_0x5af46f),_0x481fd7&&_0x112d00['remove'](_0x481fd7),this['_suggestionToController']['delete'](_0xee16f9),this['_viewToController']['delete'](_0x5af46f),_0x3788d2['destroy']();}['_updateController'](_0x2bf073){if(!_0x2bf073['isInContent']||!this['_suggestionToController']['has'](_0x2bf073))return;const _0x439b2a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x214c0b=this['_suggestionToController']['get'](_0x2bf073),_0x4516e9=_0x2bf073['getAllAdjacentSuggestions']();_0x214c0b['view']['descriptionParts']=_0x439b2a['descriptionFactory']['getDescriptions'](_0x4516e9);}['destroy'](){for(const _0x26136b of this['_suggestionToController']['keys']())this['_destroyController'](_0x26136b);for(const _0x6b6795 of this['_annotationViews']['values']())_0x6b6795['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x4afc94){return'model'in _0x4afc94;}class Ne extends _0x49ec79{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x419a7b){this['editor']['plugins']['get'](d)['adapter']=_0x419a7b;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x38a616){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x38a616);}['getSuggestions']({skipNotAttached:_0x5b7d4f=!0x1,toJSON:_0x8da784=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x5b7d4f,'toJSON':_0x8da784});}['getSuggestion'](_0x422de2){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x422de2);}}const p=['Pagination'];class re extends _0x49ec79{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x5ddb95=this['editor'];if(_0x5ddb95['config']['define']('trackChangesData.editorCreator',_0x493fe7=>{const _0x5cb253=_0x5ddb95['model']['document']['getRootNames']()['reduce']((_0x1bafb2,_0xf3e2e8)=>(_0x1bafb2[_0xf3e2e8]='',_0x1bafb2),{});return _0x5ddb95['constructor']['create'](_0x5cb253,_0x493fe7);}),'function'!=typeof _0x5ddb95['config']['get']('trackChangesData')['editorCreator'])throw new _0x4d7fe5('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2d2989){return P(this['editor'],!0x0,_0x2d2989);}['getDataWithDiscardedSuggestions'](_0x237e19){return P(this['editor'],!0x1,_0x237e19);}}class Fe extends _0x49ec79{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x243a47){function _0x40ff7f(_0x10bdf5){return _0x10bdf5['map'](_0x4ed6e2=>String['fromCharCode'](_0x4ed6e2))['join']('');}super(_0x243a47),this['result']='end',_0x243a47[_0x40ff7f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x40ff7f([0x76,0x69,0x65,0x77])][_0x40ff7f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x40ff7f([0x61,0x75,0x74,0x6f]),_0x243a47[_0x40ff7f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x40ff7f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x40ff7f([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x40ff7f([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x40ff7f([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 De(_0x5f100d){return void 0x0!==_0x5f100d['getRootsAttributes'];}async function P(_0x13bbec,_0x4d805e,_0x5de98d){const _0x1e4b08=_0x45f167(_0x13bbec,p);_0x1e4b08['plugins']['push'](d,Fe),_0x1e4b08['rootsAttributes']=De(_0x13bbec)?_0x13bbec['getRootsAttributes']():void 0x0;const _0x24b7ff=document['createDocumentFragment'](),_0x2d6564=_0x13bbec['config']['get']('trackChangesData')['editorCreator'],_0x3f18f8=await _0x2d6564(_0x1e4b08,()=>function(_0x231b06){const _0x20ea45=document['createElement']('div');return _0x231b06['appendChild'](_0x20ea45),_0x20ea45;}(_0x24b7ff));!function(_0x14baad,_0x5a60f2){const _0x5bf121=_0x14baad['model']['document']['getRootNames']()['reduce']((_0x12714f,_0x42db9b)=>(_0x12714f[_0x42db9b]=_0x14baad['data']['get']({'rootName':_0x42db9b}),_0x12714f),{}),_0x36de57=_0x14baad['plugins']['get']('Users')['users']['map'](_0x39b0c3=>({'id':_0x39b0c3['id'],'name':_0x39b0c3['name']})),_0x183697=_0x14baad['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x21458d=_0x14baad['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x24550c=_0x5a60f2['plugins']['get']('Users'),_0x1c2aef=_0x5a60f2['plugins']['get']('TrackChangesEditing'),_0xce5487=_0x5a60f2['plugins']['get']('CommentsRepository');for(const _0x3d18e7 of _0xce5487['getCommentThreads']())_0x3d18e7['remove']();for(const _0x1c951f of _0x36de57)_0x24550c['getUser'](_0x1c951f['id'])||_0x24550c['addUser'](_0x1c951f);_0x24550c['me']||_0x24550c['useAnonymousUser']();for(const _0x407c96 of _0x21458d)_0xce5487['addCommentThread'](_0x407c96);for(const _0xafeaf8 of _0x183697)_0x1c2aef['addSuggestionData'](_0xafeaf8);_0x5a60f2['data']['set'](_0x5bf121);}(_0x13bbec,_0x3f18f8),_0x3f18f8['execute'](_0x4d805e?'acceptAllSuggestions':'discardAllSuggestions');const _0x501791=De(_0x3f18f8)?_0x3f18f8['getFullData'](_0x5de98d):_0x3f18f8['data']['get'](_0x5de98d);return await _0x3f18f8['destroy'](),_0x501791;}class Me extends _0x10e6c6{['options'];constructor(_0x1fccdb,_0x92274){super(_0x1fccdb),this['options']=_0x92274,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'](_0x9aa22e,_0x1e93b9){if(!this['element'])return;const _0xef9fcf=[];for(const [_0x57c38e,_0x1f7d84]of _0x9aa22e){const _0xe759de=document['createElement']('div');_0xe759de['setAttribute']('data-ck-root-name',_0x57c38e),_0xe759de['className']=_0x1f7d84['classes']+'\x20ck-track-changes-preview__root-container',_0xe759de['innerHTML']=_0x1f7d84['content'],_0xef9fcf['push'](_0xe759de);}_0x1e93b9(this['element'],_0xef9fcf),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x235a9e{constructor(_0x23b28b){super(_0x23b28b),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x311c21=this['editor'],_0x5c8dcd=_0x311c21['locale'],_0x5261dd=_0x311c21['plugins']['get']('Dialog');let _0x61739c;const _0x471aa3=function(_0x11239b){const _0xfde33f={};if('editables'in _0x11239b['ui']['view']){for(const [_0x5ee9b2,_0x1d5b34]of Object['entries'](_0x11239b['ui']['view']['editables']))_0xfde33f[_0x5ee9b2]=_0x1d5b34['element'];}else _0xfde33f[_0x11239b['model']['document']['getRootNames']()[0x0]]=_0x11239b['ui']['view']['editable']['element'];return _0xfde33f;}(_0x311c21),_0x358c3f=function(_0x2b7519){let _0x2b33b9=0x0;for(const _0x1e19ce of Object['values'](_0x2b7519))_0x2b33b9=Math['max'](_0x2b33b9,_0x1e19ce['getBoundingClientRect']()['width']);let _0x2aaefc=0x0;for(const _0xe122b3 of Object['values'](_0x2b7519))_0x2aaefc+=_0xe122b3['getBoundingClientRect']()['height'];const _0x13ab9e=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x4b37c6=Math['min'](_0x2aaefc,_0x13ab9e);return{'width':_0x2b33b9,'height':_0x4b37c6};}(_0x471aa3);_0x5261dd['show']({'id':'finalContentPreview','title':o(_0x5c8dcd,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x5c8dcd,{'dialogRects':_0x358c3f}),'onHide':()=>{_0x61739c['detachFromDom']();},'onShow':()=>{_0x311c21['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x23dfcd=>{const _0x215c0a=this['_standarizeRootsData'](_0x23dfcd,_0x311c21,_0x471aa3);_0x5261dd['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x215c0a,_0x311c21['config']['get']('trackChanges.preview.renderFunction'));}),_0x61739c=new _0x399927(_0x5c8dcd,[_0x5261dd['view']]),_0x61739c['attachToDom'](),_0x61739c['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x311c21['once']('destroy',()=>{_0x61739c['detachFromDom']();});const _0x9ca1fd=_0x5261dd['view']['headerView']['class'];_0x5261dd['view']['headerView']['class']=_0x9ca1fd?_0x9ca1fd+'\x20ck-reset_all':'ck-reset_all',_0x5261dd['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x5261dd['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x44d424=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x3ca7ec=_0x44d424['previewMode'],_0x3fdf01={};if('$labels'===_0x3ca7ec){for(const _0x5667c0 of _0x44d424['getMergeFieldsIds']())_0x3fdf01[_0x5667c0]=_0x44d424['getLabel'](_0x5667c0)||_0x5667c0;}else{const _0x1849a7='$defaultValues'===_0x3ca7ec?_0x44d424['getDefaultValues']():_0x44d424['getDataSetValues'](_0x3ca7ec,!0x0);for(const _0xa6fd81 of Object['entries'](_0x1849a7)){const [_0x51687c,_0x1592f1]=_0xa6fd81;_0x3fdf01[_0x51687c]=null!==_0x1592f1?_0x1592f1:_0x44d424['getLabel'](_0x51687c)||_0x51687c;}}return{'mergeFieldsData':_0x3fdf01};}['_standarizeRootsData'](_0x194404,_0x1333bf,_0x3e5c0e){let _0x3c43b5;if('string'==typeof _0x194404){const _0x3512a7=_0x1333bf['model']['document']['getRootNames']()[0x0];_0x3c43b5={[_0x3512a7]:_0x194404};}else _0x3c43b5=_0x194404;const _0x5761f4=this['_fixMediaEmbeds'](_0x3c43b5,_0x1333bf),_0x3e0320=function(_0x196e19,_0xdc4fe4){for(const [_0x350d51,_0x429713]of _0x196e19)_0x429713['classes']=_0xdc4fe4[_0x350d51]['classList']['value']['replace']('ck-focused','');return _0x196e19;}(this['_sortRoots'](_0x1333bf)['reduce']((_0x553f8d,_0x979f29)=>(_0x553f8d['push']([_0x979f29,{'content':_0x5761f4[_0x979f29],'classes':''}]),_0x553f8d),[]),_0x3e5c0e);return _0x3e0320;}['_fixMediaEmbeds'](_0x14bec3,_0x27d792){if(!_0x27d792['plugins']['has']('MediaEmbedEditing'))return _0x14bec3;const _0x545306=_0x27d792['plugins']['get']('MediaEmbedEditing');for(const [_0x54db36,_0x1df702]of Object['entries'](_0x14bec3)){const _0x3415ac=document['createElement']('div');_0x3415ac['innerHTML']=_0x1df702,(_0x3415ac['querySelectorAll']('figure.media')['forEach'](_0x4610b8=>{const _0x597aa5=_0x4610b8['querySelector']('oembed');if(_0x597aa5){const _0x28bb54=_0x597aa5['getAttribute']('url');if(_0x28bb54){const _0x5f28b5=_0x545306['registry']['getMediaViewElement'](new _0x347d8c(_0x27d792['editing']['view']['document']),_0x28bb54,{'elementName':'','renderForEditingView':!0x0}),_0x2a267e=document['createElement']('div');_0x2a267e['classList']['add']('ck-media__wrapper'),_0x5f28b5['render'](_0x2a267e,_0x27d792['editing']['view']['domConverter']),_0x597aa5['replaceWith'](_0x2a267e);}}}),_0x14bec3[_0x54db36]=_0x3415ac['innerHTML']);}return _0x14bec3;}['_sortRoots'](_0x2675e5){if(!function(_0x431063){return void 0x0!==_0x431063['getRootsAttributes'];}(_0x2675e5))return _0x2675e5['model']['document']['getRootNames']();const _0x1bb215=[],_0x1d37b6=new Map();for(const _0x3e3371 of _0x2675e5['model']['document']['getRootNames']()){const _0x2af0e5=_0x2675e5['editing']['view']['getDomRoot'](_0x3e3371)['getClientRects']()['item'](0x0);_0x1bb215['push'](_0x3e3371),_0x1d37b6['set'](_0x3e3371,_0x2af0e5);}return _0x1bb215['sort']((_0x51f584,_0x561a8a)=>{const _0x1e7cfd=_0x1d37b6['get'](_0x51f584),_0xf4301=_0x1d37b6['get'](_0x561a8a);return _0x1e7cfd['y']-_0xf4301['y']||_0x1e7cfd['x']-_0xf4301['x'];}),_0x1bb215;}}class Ue extends _0x49ec79{static get['requires'](){return[re,_0x598335];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x51850f){super(_0x51850f),_0x51850f['commands']['add']('previewFinalContent',new te(this['editor'])),_0x51850f['config']['define']('trackChanges.preview.renderFunction',(_0x4f92f4,_0x394ac0)=>{for(const _0x4fe552 of _0x394ac0)_0x4f92f4['appendChild'](_0x4fe552);});}}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,Ne as TrackChanges,B as TrackChangesCommand,re as TrackChangesData,Fe as TrackChangesDataGetter,d as TrackChangesEditing,Ue as TrackChangesPreview,u as TrackChangesUI};
23
+ import{Command as _0x3fcd7b,Plugin as _0x2e45f0,PendingActions as _0x1d013c}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x4884ad,ObservableMixin as _0x22d150,uid as _0x320756,priorities as _0x41de16,insertToPriorityArray as _0x1f683a,logWarning as _0x36864b,getEnvKeystrokeText as _0x3e66be,FocusTracker as _0x336aa3,KeystrokeHandler as _0x44c975,Collection as _0x42976f}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x2e6b0d,IconCancel as _0x5bdd65,IconTrackChanges as _0x361d1}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x2cbf64,View as _0x46004f,ViewCollection as _0xacc2f8,FocusCycler as _0x46889d,UIModel as _0x5c57af,createDropdown as _0x31becb,SplitButtonView as _0xf30cee,addListToDropdown as _0x220bd2,MenuBarMenuView as _0x225aff,MenuBarMenuListView as _0x2e2fc7,ListSeparatorView as _0x52c98d,MenuBarMenuListItemView as _0x2651e3,MenuBarMenuListItemButtonView as _0x339f6b,BodyCollection as _0x32dedc,Dialog as _0x3bc530}from'@ckeditor/ckeditor5-ui/dist/index.js';import{SuggestionsConversion as _0x177264,Users as _0x5e477a,DocumentCompare as _0x4d80f5,fixElementSuggestionRange as _0x1e7f2c,hashObject as _0x1cc9a4,splitSuggestionMarkerName as _0x341544,surroundingMarkersDetector as _0x3a2fb9,FOCUS_ANNOTATION_KEYSTROKE as _0x132dcf,AriaDescriptionView as _0x1c075f,setupThreadKeyboardNavigation as _0x5cdee5,trimHtml as _0x5adfa0,UserView as _0x2446ac,LateFocusButtonView as _0x6a4be6,getDateTimeFormatter as _0x6ed343,getAllMarkersDomElementsSorted as _0x13b0a5,sanitizeEditorConfig as _0x5ca67e}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0xa2079e,ModelLiveRange as _0x5a100f,ModelLivePosition as _0x4de5c6,ViewDowncastWriter as _0xcde0e1}from'@ckeditor/ckeditor5-engine/dist/index.js';import{cloneDeep as _0x3da981,set as _0x2035d0,isEqual as _0x59abc9,unset as _0x89a7c8,omit as Jt}from'es-toolkit/compat';import{Delete as _0x100ebc,Input as _0x45dfb2}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x1dda4c}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x1b75f2}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x3fcd7b{['_enabledCommands'];constructor(_0x10367d,_0x1ce798){super(_0x10367d),this['_enabledCommands']=_0x1ce798,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 _0x477f57 of this['editor']['commands']['commands']())_0x477f57['affectsData']&&!this['_enabledCommands']['has'](_0x477f57)&&_0x477f57['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x2dbdde of this['editor']['commands']['commands']())_0x2dbdde['affectsData']&&!this['_enabledCommands']['has'](_0x2dbdde)&&_0x2dbdde['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x3fcd7b{['_suggestions'];constructor(_0x48e9b7,_0x3aaf95){super(_0x48e9b7),this['_suggestions']=_0x3aaf95,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x1be9d9){const _0x2cc8f9=this['_suggestions']['get'](_0x1be9d9);if(!_0x2cc8f9)throw new _0x4884ad('track-changes-accept-suggestion-not-found',this);const _0x32b6fa=_0x2cc8f9['getRanges']();this['editor']['model']['canEditAt'](_0x32b6fa)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x2cc8f9);}}class x extends _0x3fcd7b{['_suggestions'];constructor(_0x21ce85,_0x3873ca){super(_0x21ce85),this['_suggestions']=_0x3873ca,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x20e78c){const _0x23b168=this['_suggestions']['get'](_0x20e78c);if(!_0x23b168)throw new _0x4884ad('track-changes-discard-suggestion-not-found',this);const _0x2ee174=_0x23b168['getRanges']();this['editor']['model']['canEditAt'](_0x2ee174)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x23b168);}}function ls(_0x2f517c,_0x3d67ce){let _0x5a01ce='';return _0x5a01ce+=_0x2f517c['split']('*')['map']((_0x21654f,_0x4645fb)=>_0x4645fb%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+rn(_0x21654f)+'</span>':rn(_0x21654f))['join'](''),_0x3d67ce&&(_0x5a01ce+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x3d67ce['value']+'\x22\x20title=\x22'+_0x3d67ce['title']+'\x22></span>'),_0x5a01ce;}function rn(_0x296b37){const _0x400442=document['createElement']('span');return _0x400442['innerText']=_0x296b37,_0x400442['innerHTML'];}function ts(_0x8f6217){return _0x8f6217['sort']((_0x5b305f,_0x48189f)=>'attribute'===_0x5b305f['type']&&'attribute'!==_0x48189f['type']?-0x1:'attribute'!==_0x5b305f['type']&&'attribute'===_0x48189f['type']?0x1:'deletion'==_0x5b305f['type']&&'deletion'!=_0x48189f['type']?-0x1:'deletion'!=_0x5b305f['type']&&'deletion'==_0x48189f['type']?0x1:0x0);}function to(_0x369c0d,_0x6d4af3){let _0x3046bb,_0x2c8398=0x0;const _0x353420=[],_0x55687d=_0x6d4af3['schema'];for(;_0x2c8398<_0x369c0d['length'];){const _0x2c4890=_0x369c0d[_0x2c8398],_0x2fbdde=_0x369c0d[_0x2c8398+0x1];_0x3046bb||(_0x3046bb=_0x6d4af3['createPositionBefore'](_0x2c4890)),cn(_0x6d4af3,_0x2c4890,_0x2fbdde)||(_0x353420['push'](_0x6d4af3['createRange'](_0x3046bb,_0x55687d['isObject'](_0x2c4890)?_0x6d4af3['createPositionAfter'](_0x2c4890):_0x6d4af3['createPositionAt'](_0x2c4890,'end'))),_0x3046bb=null),_0x2c8398++;}return _0x353420;}function cn(_0x40b06b,_0xbf5652,_0x430738){if(!_0x430738)return!0x1;const _0xd1c0f9=_0x40b06b['createPositionAfter'](_0xbf5652),_0x49646f=_0x40b06b['createPositionBefore'](_0x430738);return _0xd1c0f9['isTouching'](_0x49646f);}function rs(_0x3c4d4f,_0x5909fc,_0x16c69d){for(;_0x16c69d['length'];){const _0x1528b4=_0x16c69d['splice'](0x0,0x64);_0x3c4d4f['change'](()=>{for(const _0x5de4cd of _0x1528b4)_0x5de4cd['isInContent']&&_0x5909fc['execute'](_0x5de4cd['id']);});}}class M extends _0x3fcd7b{['_command'];['_suggestions'];constructor(_0xefefa5,_0x436ba8,_0x2cd762){super(_0xefefa5),this['_command']=_0x436ba8,this['_suggestions']=_0x2cd762,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3e28c0=Array['from'](this['_suggestions']['values']())['some'](_0x58c2dc=>_0x58c2dc['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x3e28c0;}['execute'](){const _0x3064ad=ts(Array['from'](this['_suggestions']['values']()));for(const _0x359c36 of _0x3064ad){const _0x5992c9=_0x359c36['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5992c9))return;}rs(this['editor']['model'],this['_command'],_0x3064ad);}}class R extends _0x3fcd7b{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x5859f2,_0x3d8771,_0x27b2e3){super(_0x5859f2),this['_command']=_0x3d8771,this['_suggestions']=_0x27b2e3,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3107c3=this['editor']['model']['document']['selection'],_0x5991fb=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x1d3df0,_0x46466a){const _0x5e3000=Array['from'](_0x1d3df0['getRanges']()),_0x2cc187=new Set();for(const _0xaf94c4 of _0x46466a)if(_0xaf94c4['isInContent']){for(const _0x1952e1 of _0x5e3000)for(const _0x38b084 of _0xaf94c4['getRanges']())(_0x1952e1['isIntersecting'](_0x38b084)||_0x1d3df0['isCollapsed']&&!_0xaf94c4['isMultiRange']&&_0xaf94c4['next']&&_0x38b084['end']['isTouching'](_0x1952e1['start']))&&_0x2cc187['add'](_0xaf94c4);}return _0x2cc187;}(_0x3107c3,_0x5991fb),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x4e5578=ts(Array['from'](this['_selectedSuggestions']));for(const _0x1db235 of _0x4e5578){const _0x146c8e=_0x1db235['getRanges']();if(!this['editor']['model']['canEditAt'](_0x146c8e))return;}rs(this['editor']['model'],this['_command'],_0x4e5578);}}class T extends/* #__PURE__ -- @preserve */
24
+ _0x22d150(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x4ce72a,_0x30eb6b){super(),this['id']=_0x30eb6b['id'],this['type']=_0x30eb6b['type'],this['subType']=_0x30eb6b['subType']||null,this['author']=_0x30eb6b['author'],this['creator']=_0x30eb6b['creator']||_0x30eb6b['author'],this['isExternal']=Boolean(_0x30eb6b['attributes']&&_0x30eb6b['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x30eb6b['originalSuggestionId']||null,this['_model']=_0x4ce72a,this['_onAccept']=_0x30eb6b['onAccept'],this['_onDiscard']=_0x30eb6b['onDiscard'],this['_onAttributesChange']=_0x30eb6b['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x30eb6b['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 _0xed4773=this;for(;_0xed4773['previous'];)_0xed4773=_0xed4773['previous'];return _0xed4773;}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'](_0x4271c1){this['_markerNames']['add'](_0x4271c1);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x78aeac=>this['_model']['markers']['get'](_0x78aeac))['filter'](_0x180ef9=>_0x180ef9);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0xcc0e7e=>{for(const _0x759157 of this['getMarkers']())_0xcc0e7e['removeMarker'](_0x759157);}),this['_markerNames']['clear']();}['removeMarker'](_0x274706){this['_model']['change'](_0x42bc21=>{_0x42bc21['removeMarker'](_0x274706);}),this['_markerNames']['delete'](_0x274706);}['addRange'](_0x104276){const _0x53d029='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x53d029),this['_model']['change'](_0x2f61d3=>{_0x2f61d3['addMarker'](_0x53d029,{'range':_0x104276,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x565e26){for(const _0x51153d of this['getRanges']())if(_0x51153d['isIntersecting'](_0x565e26))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x87041=>_0x87041['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x485b32,_0x2f7485)=>[..._0x485b32,..._0x2f7485['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x25110a=this['getRanges']();if(0x1!=_0x25110a['length'])return null;const _0x42e3ef=_0x25110a[0x0],_0x2ab233=_0x42e3ef['start']['nodeAfter'],_0x50665c=_0x42e3ef['end']['nodeBefore'];return _0x2ab233 instanceof _0xa2079e?_0x2ab233!=_0x50665c?null:_0x2ab233: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 _0x1191ae=[];let _0x27f240=this['head'];for(;_0x27f240;)_0x1191ae['push'](_0x27f240),_0x27f240=_0x27f240['next'];return _0x1191ae;}['setAttribute'](_0x2e62d1,_0x55c185){const _0x14a2b6=_0x3da981(this['attributes']);_0x2035d0(_0x14a2b6,_0x2e62d1,_0x55c185),_0x59abc9(_0x14a2b6,this['attributes'])||(this['attributes']=_0x14a2b6,this['_onAttributesChange'](_0x14a2b6));}['removeAttribute'](_0x19d25d){const _0x24e188=_0x3da981(this['attributes']);_0x89a7c8(_0x24e188,_0x19d25d),_0x59abc9(_0x24e188,this['attributes'])||(this['attributes']=_0x24e188,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 _0x320756()['substr'](0x1,0x5);}}function o(_0x45343f,_0x679774,_0x5229fd){const _0x49bfad=_0x45343f['t'],t=_0x45343f['t'];switch(_0x679774){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',_0x5229fd);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5229fd);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5229fd);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5229fd);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5229fd);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',_0x5229fd);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5229fd);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',_0x5229fd);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5229fd);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5229fd);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5229fd);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5229fd);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5229fd);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x5229fd);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5229fd);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5229fd);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5229fd);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5229fd);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5229fd);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5229fd);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5229fd);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5229fd);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5229fd);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5229fd);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x5229fd);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'},_0x5229fd);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x5229fd);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x5229fd);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5229fd);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5229fd);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5229fd);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5229fd);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5229fd);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'},_0x5229fd);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5229fd);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5229fd);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5229fd);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5229fd);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'},_0x5229fd);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5229fd);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'},_0x5229fd);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'},_0x5229fd);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5229fd);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'},_0x5229fd);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5229fd);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'},_0x5229fd);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5229fd);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x5229fd);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x5229fd);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x5229fd);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5229fd);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'},_0x5229fd);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x5229fd);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 _0x49bfad({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x5229fd);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x49bfad({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x5229fd);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x5229fd);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'},_0x5229fd);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'},_0x5229fd);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'},_0x5229fd);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x679774;}}class E{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x37ce6f,_0x5427d2){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x37ce6f,this['_locale']=_0x5427d2;}['getDescriptions'](_0x30527d){const _0x44d149=[],_0x387812=new Set(),_0x436084=new Set();for(let _0x5aa671=0x0;_0x5aa671<_0x30527d['length'];_0x5aa671++){const _0x2746a6=_0x30527d[_0x5aa671];if(!_0x2746a6['isInContent'])continue;const _0x26329e=this['_handleCustomCallbackDescription'](_0x2746a6);if(_0x26329e){if(null!=_0x2746a6['subType']){if(_0x387812['has'](_0x2746a6['subType']))continue;_0x387812['add'](_0x2746a6['subType']);}_0x44d149['push'](_0x26329e);}else{if('attribute'==_0x2746a6['type']){const _0x267648=_0x2746a6['data']['key'];if(_0x436084['has'](_0x267648))continue;_0x436084['add'](_0x2746a6['data']['key']),_0x267648==m?this['_handleRenameSuggestionDescription'](_0x44d149,_0x2746a6):this['_handleAttributeSuggestionDescription'](_0x44d149,_0x2746a6);continue;}'insertion'!=_0x2746a6['type']&&'deletion'!=_0x2746a6['type']||this['_handleInsertRemoveSuggestionDescription'](_0x44d149,_0x2746a6,_0x30527d[_0x5aa671+0x1]);}}return this['_resolveDescriptionItems'](_0x44d149);}['registerDescriptionCallback'](_0x3d50cf){this['_customCallbacks']['push'](_0x3d50cf);}['registerElementLabel'](_0x51e002,_0x36b939,_0x3b59e0=_0x41de16['normal']){'function'==typeof _0x51e002?_0x1f683a(this['_itemLabelsCallbacks'],{'matchingCallback':_0x51e002,'label':_0x36b939,'priority':_0x3b59e0}):this['_itemLabels']['set'](_0x51e002,_0x36b939);}['registerAttributeLabel'](_0x105a24,_0x5e1a64){this['_attributeLabels']['set'](_0x105a24,_0x5e1a64);}['getItemLabel'](_0x1858c2,_0x4c2ec5=0x1){let _0x4d6768;for(const _0x42bc5a of this['_itemLabelsCallbacks'])if(_0x42bc5a['matchingCallback'](_0x1858c2)){_0x4d6768=_0x42bc5a['label'];break;}return _0x4d6768||(_0x4d6768=this['_itemLabels']['get'](_0x1858c2['name'])),_0x4d6768?_0x4d6768(_0x4c2ec5):0x1!==_0x4c2ec5?_0x4c2ec5+'\x20'+_0x1858c2['name']+'s':''+_0x1858c2['name'];}['_addDescriptionItems'](_0x436368,_0x2605f4){const _0x1ddcf8=_0x2605f4['getFirstRange']()['getWalker'](),_0x4b0638='insertion'==_0x2605f4['type']?'add':'remove';for(const _0x5aa684 of _0x1ddcf8){const _0x168a1a=_0x5aa684['item'],_0x536f15=_0x436368[_0x436368['length']-0x1];if(_0x168a1a['is']('$textProxy'))_0x536f15&&_0x536f15['type']['indexOf']('Container')>-0x1&&_0x436368['pop'](),_0x536f15&&'text'==_0x536f15['type']?_0x536f15[_0x4b0638]+=_0x168a1a['data']:_0x436368['push']({'type':'text','add':'add'==_0x4b0638?_0x168a1a['data']:'','remove':'remove'==_0x4b0638?_0x168a1a['data']:''});else{if(this['_schema']['isObject'](_0x168a1a)){const _0x177f89=_0x168a1a;if(_0x536f15&&_0x536f15['type']['indexOf']('Container')>-0x1&&_0x436368['pop'](),'elementEnd'==_0x5aa684['type'])continue;_0x536f15&&_0x536f15['type']==_0x4b0638+'Object'&&_0x536f15['element']['name']==_0x177f89['name']?_0x536f15['quantity']++:_0x436368['push']({'type':_0x4b0638+'Object','element':_0x177f89,'quantity':0x1}),_0x1ddcf8['skip'](_0x224d31=>!('elementEnd'==_0x224d31['type']&&_0x224d31['item']==_0x168a1a));}else{if(this['_schema']['checkChild'](_0x168a1a,'$text')||_0x168a1a['is']('element','softBreak')){const _0x407943=_0x168a1a;if('add'==_0x4b0638&&'elementStart'==_0x5aa684['type']||'remove'==_0x4b0638&&'elementEnd'==_0x5aa684['type'])continue;if(_0x536f15&&-0x1==_0x536f15['type']['indexOf']('Container')){'text'==_0x536f15['type']&&(_0x536f15[_0x4b0638]+='\x0a');continue;}let _0x1f9cac;if(_0x1f9cac='add'==_0x4b0638?_0x407943['nextSibling']&&!this['_schema']['isObject'](_0x407943['nextSibling'])?_0x407943['nextSibling']:null:_0x407943['previousSibling']&&!this['_schema']['isObject'](_0x407943['previousSibling'])?_0x407943['previousSibling']:null,_0x407943['isEmpty']||_0x1f9cac&&_0x1f9cac['isEmpty']){const _0x556303=_0x1f9cac&&_0x1f9cac['isEmpty']?_0x1f9cac:_0x407943;_0x536f15&&_0x536f15['type']==_0x4b0638+'EmptyContainer'&&_0x536f15['element']['name']==_0x556303['name']?_0x536f15['quantity']++:_0x436368['push']({'type':_0x4b0638+'EmptyContainer','element':_0x556303,'quantity':0x1});}else _0x436368['push']({'type':_0x4b0638+'Container','element':_0x407943});}}}}}['_resolveDescriptionItems'](_0x509fcc){const _0x2098d7=this['_locale'],_0x33bd88=[],_0x5b50f8=[],_0x58e2f8=[];for(const _0x4f830e of _0x509fcc)switch(_0x4f830e['type']){case'text':if(_0x4f830e['add']=_0x4f830e['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4f830e['remove']=_0x4f830e['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4f830e['add']&&''!=_0x4f830e['remove']){_0x33bd88['push']({'type':'replace','content':o(_0x2098d7,'REPLACE_TEXT',['\x22'+_0x4f830e['remove']+'\x22','\x22'+_0x4f830e['add']+'\x22'])});continue;}if(null!=_0x4f830e['add']['match'](/^ +$/)){_0x33bd88['push']({'type':'insertion','content':o(_0x2098d7,'*Insert:*\x20%0',o(_0x2098d7,'ELEMENT_SPACE',_0x4f830e['add']['length']))});continue;}if(null!=_0x4f830e['remove']['match'](/^ +$/)){_0x33bd88['push']({'type':'deletion','content':o(_0x2098d7,'*Remove:*\x20%0',o(_0x2098d7,'ELEMENT_SPACE',_0x4f830e['remove']['length']))});continue;}if(''!=_0x4f830e['add']){_0x33bd88['push']({'type':'insertion','content':o(_0x2098d7,'*Insert:*\x20%0','\x22'+_0x4f830e['add']+'\x22')});continue;}_0x33bd88['push']({'type':'deletion','content':o(_0x2098d7,'*Remove:*\x20%0','\x22'+_0x4f830e['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x33bd88['push']({'type':'insertion','content':o(_0x2098d7,'*Insert:*\x20%0',this['getItemLabel'](_0x4f830e['element'],_0x4f830e['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x33bd88['push']({'type':'deletion','content':o(_0x2098d7,'*Remove:*\x20%0',this['getItemLabel'](_0x4f830e['element'],_0x4f830e['quantity']))});continue;case'addContainer':_0x33bd88['push']({'type':'insertion','content':o(_0x2098d7,'*Split:*\x20%0',this['getItemLabel'](_0x4f830e['element'],_0x4f830e['quantity']))});continue;case'removeContainer':_0x33bd88['push']({'type':'deletion','content':o(_0x2098d7,'*Merge:*\x20%0',this['getItemLabel'](_0x4f830e['element'],_0x4f830e['quantity']))});continue;case'addFormat':_0x5b50f8['push'](_0x4f830e['key']);continue;case'removeFormat':_0x58e2f8['push'](_0x4f830e['key']);continue;default:_0x33bd88['push'](_0x4f830e);}if(_0x5b50f8['length']){const _0xdb9364=_0x5b50f8['map'](_0x3fe01a=>this['_attributeLabels']['has'](_0x3fe01a)?this['_attributeLabels']['get'](_0x3fe01a):_0x3fe01a)['join'](',\x20');_0x33bd88['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0xdb9364)});}if(_0x58e2f8['length']){const _0x15d884=_0x58e2f8['map'](_0x2125ff=>this['_attributeLabels']['has'](_0x2125ff)?this['_attributeLabels']['get'](_0x2125ff):_0x2125ff)['join'](',\x20');_0x33bd88['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x15d884)});}return _0x33bd88;}['_handleCustomCallbackDescription'](_0xaa34aa){for(const _0x303842 of this['_customCallbacks']){const _0x1285e7=_0x303842(_0xaa34aa);if(_0x1285e7&&'type'in _0x1285e7)return _0x1285e7;}}['_handleAttributeSuggestionDescription'](_0x9e8dbb,_0x4282a5){const _0x5ae481=_0x4282a5['data'],_0x2fad09=void 0x0===_0x5ae481['newValue']?'removeFormat':'addFormat';_0x9e8dbb['push']({'type':_0x2fad09,'key':_0x5ae481['key']});}['_handleRenameSuggestionDescription'](_0x21009f,_0x42a954){_0x21009f['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x42a954['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0xc154bc,_0x1ba965,_0x453e97){if(this['_addDescriptionItems'](_0xc154bc,_0x1ba965),_0x453e97&&_0x453e97['getFirstRange']()&&!_0x1ba965['getFirstRange']()['end']['isEqual'](_0x453e97['getFirstRange']()['start'])){const _0x66ab40=_0xc154bc[_0xc154bc['length']-0x1],_0x1da2b9='insertion'==_0x1ba965['type']?'add':'remove';_0x66ab40&&'text'==_0x66ab40['type']&&(_0x66ab40[_0x1da2b9]+='\x0a');}}}class U extends _0x2e45f0{['afterInit'](){const _0x369d36=this['editor'],_0x41ccfe=_0x369d36['plugins']['get']('TrackChangesEditing');_0x369d36['commands']['get']('showAIAssistant')&&_0x41ccfe['enableCommand']('showAIAssistant');}}class V extends _0x2e45f0{['afterInit'](){const _0x49ef97=this['editor'],_0x263c6a=_0x49ef97['plugins']['get']('TrackChangesEditing');_0x49ef97['commands']['get']('toggleAi')&&_0x263c6a['enableCommand']('toggleAi');}}class F extends _0x2e45f0{['afterInit'](){const _0x5aa33b=this['editor'],_0x503288=_0x5aa33b['plugins']['get']('TrackChangesEditing');_0x5aa33b['commands']['get']('aiQuickAction')&&_0x503288['enableCommand']('aiQuickAction');}}class G extends _0x2e45f0{['afterInit'](){const _0x4266a5=this['editor'],_0x1f7994=_0x4266a5['locale'];if(!_0x4266a5['plugins']['has']('AlignmentEditing'))return;const _0xfaf66a=_0x4266a5['plugins']['get']('TrackChangesEditing');_0xfaf66a['enableDefaultAttributesIntegration']('alignment'),_0xfaf66a['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x1f7994,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3d5583=this['editor'],_0x16b723=_0x3d5583['locale'];_0x3d5583['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5832ed=>{if('formatBlock'!=_0x5832ed['type'])return;const {data:_0x59bf52}=_0x5832ed;if(_0x59bf52&&'alignment'==_0x59bf52['commandName']){const _0x261d76=_0x59bf52['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x16b723,'*Format:*\x20%0',function(_0x537b20){switch(_0x537b20){case'left':return o(_0x16b723,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x16b723,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x16b723,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x16b723,'FORMAT_JUSTIFY_TEXT');}}(_0x261d76))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class L extends _0x2e45f0{['afterInit'](){const _0x2f8c4e=this['editor'],_0x37221e=_0x2f8c4e['plugins']['get']('TrackChangesEditing'),_0x1a2f46=_0x2f8c4e['locale'];for(const _0x5d8c0b of ti){if(!_0x2f8c4e['plugins']['has'](_0x5d8c0b))continue;const _0x31e05d=_0x5d8c0b['slice'](0x0,-0x7)['toLowerCase'](),_0x40e2a3='FORMAT_'+_0x31e05d['toUpperCase']();_0x37221e['enableDefaultAttributesIntegration'](_0x31e05d),_0x37221e['descriptionFactory']['registerAttributeLabel'](_0x31e05d,o(_0x1a2f46,_0x40e2a3));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x381406=this['editor'],_0x43ea79=_0x381406['locale'],_0x11adaf=_0x381406['plugins']['get']('TrackChangesEditing');function _0x2b0248(_0x2ea946,_0x5bf02f){_0x11adaf['descriptionFactory']['registerDescriptionCallback'](_0x16d880=>{if('formatInline'!=_0x16d880['type'])return;const {data:_0x558e07}=_0x16d880;return _0x558e07&&_0x558e07['commandName']===_0x2ea946?_0x558e07['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x43ea79,'*Format:*\x20%0',_0x5bf02f)}:{'type':'format','content':o(_0x43ea79,'*Remove\x20format:*\x20%0',_0x5bf02f)}:void 0x0;});}_0x2b0248('bold',o(_0x43ea79,'FORMAT_BOLD')),_0x2b0248('italic',o(_0x43ea79,'FORMAT_ITALIC')),_0x2b0248('underline',o(_0x43ea79,'FORMAT_UNDERLINE')),_0x2b0248('code',o(_0x43ea79,'FORMAT_CODE')),_0x2b0248('strikethrough',o(_0x43ea79,'FORMAT_STRIKETHROUGH')),_0x2b0248('subscript',o(_0x43ea79,'FORMAT_SUBSCRIPT')),_0x2b0248('superscript',o(_0x43ea79,'FORMAT_SUPERSCRIPT'));}}class J extends _0x2e45f0{['afterInit'](){const _0x5ed221=this['editor'],_0x17083b=_0x5ed221['locale'];if(!_0x5ed221['plugins']['has']('BlockQuoteEditing'))return;const _0x287179=_0x5ed221['plugins']['get']('TrackChangesEditing'),_0x338ef4=this['editor']['commands']['get']('blockQuote');_0x287179['enableCommand']('blockQuote',(_0x3fc054,_0x298d85={})=>{const _0x2df90d=this['editor']['model']['document']['selection'],_0x2786b7=_0x298d85&&void 0x0!==_0x298d85['forceValue']?_0x298d85['forceValue']:!_0x338ef4['value'];let _0x20d96a=[];if(_0x2786b7){const _0x4a6ec8=Array['from'](_0x2df90d['getSelectedBlocks']())['filter'](_0x416dbf=>oo(_0x416dbf)||function(_0x245cdb,_0x3adbd6){const _0x512068=_0x3adbd6['checkChild'](_0x245cdb['parent'],'blockQuote'),_0x145095=_0x3adbd6['checkChild'](['$root','blockQuote'],_0x245cdb);return _0x512068&&_0x145095;}(_0x416dbf,this['editor']['model']['schema']));_0x20d96a=to(_0x4a6ec8,_0x5ed221['model']);}else{const _0x46d3e7=Array['from'](_0x2df90d['getSelectedBlocks']())['filter'](_0x423453=>oo(_0x423453));_0x20d96a=to(_0x46d3e7,_0x5ed221['model']);}_0x5ed221['model']['change'](()=>{for(const _0x12bff2 of _0x20d96a)_0x287179['markBlockFormat'](_0x12bff2,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2786b7}]});});}),_0x287179['descriptionFactory']['registerDescriptionCallback'](_0x4736ae=>{const {data:_0x272df7}=_0x4736ae;if(_0x272df7&&'blockQuote'==_0x272df7['commandName']){const _0x217c30=o(_0x17083b,'ELEMENT_BLOCK_QUOTE');return _0x272df7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x17083b,'*Set\x20format:*\x20%0',_0x217c30)}:{'type':'format','content':o(_0x17083b,'*Remove\x20format:*\x20%0',_0x217c30)};}});}}function oo(_0x41fcb8){return'blockQuote'==_0x41fcb8['parent']['name'];}class q extends _0x2e45f0{['afterInit'](){const _0x47d8f7=this['editor'],_0x5de267=_0x47d8f7['locale'],_0x22d616=_0x47d8f7['plugins']['get']('TrackChangesEditing');_0x47d8f7['plugins']['has']('BookmarkEditing')&&(_0x22d616['enableCommand']('insertBookmark'),_0x22d616['enableDefaultAttributesIntegration']('updateBookmark'),_0x22d616['descriptionFactory']['registerDescriptionCallback'](_0x1e6f57=>{if('insertion'!=_0x1e6f57['type']&&'deletion'!=_0x1e6f57['type']&&'attribute'!=_0x1e6f57['type'])return;const _0x3d7899=_0x1e6f57['getContainedElement']();if(null==_0x3d7899)return;if(!_0x3d7899['is']('element','bookmark'))return;const _0xf1f8ca=_0x3d7899['getAttribute']('bookmarkId');if('insertion'==_0x1e6f57['type'])return{'type':'insertion','content':o(_0x5de267,'*Insert:*\x20%0','\x22'+_0xf1f8ca+'\x22\x20'+o(_0x5de267,'ELEMENT_BOOKMARK'))};if('deletion'==_0x1e6f57['type'])return{'type':'deletion','content':o(_0x5de267,'*Remove:*\x20%0','\x22'+_0xf1f8ca+'\x22\x20'+o(_0x5de267,'ELEMENT_BOOKMARK'))};const {data:_0x4bec9c}=_0x1e6f57;if(!_0x4bec9c||'bookmarkId'!=_0x4bec9c['key'])return;return{'type':'format','content':o(_0x5de267,'*Set\x20bookmark:*\x20%0','\x22'+_0x4bec9c['newValue']+'\x22')};}));}}class z extends _0x2e45f0{['afterInit'](){const _0x304000=this['editor'];_0x304000['plugins']['has']('CaseChange')&&(_0x304000['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x304000['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x304000['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x2e45f0{['afterInit'](){const _0x1be965=this['editor'];_0x1be965['commands']['get']('ckbox')&&_0x1be965['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class W extends _0x2e45f0{['afterInit'](){const _0x586888=this['editor'];if(!_0x586888['plugins']['has']('CodeBlock'))return;const _0x8f957f=_0x586888['plugins']['get']('TrackChangesEditing'),_0x2001c1=_0x586888['locale'],_0x425585=_0x586888['config']['get']('codeBlock')['languages'],_0x6fafb3=_0x586888['commands']['get']('codeBlock');_0x8f957f['enableCommand']('indentCodeBlock'),_0x8f957f['enableCommand']('outdentCodeBlock'),_0x8f957f['enableCommand']('codeBlock',(_0x4d62cd,_0x4e7bce={})=>{const _0x334006=_0x586888['model'],_0x58b153=_0x586888['model']['document']['selection'],_0x443ddd=_0x4e7bce&&void 0x0!==_0x4e7bce['forceValue']?_0x4e7bce['forceValue']:!_0x6fafb3['value'];let _0xc97f41;_0x4e7bce['language']||(_0x4e7bce['language']=_0x425585[0x0]['language']),_0xc97f41=_0x443ddd?Array['from'](_0x58b153['getSelectedBlocks']())['filter'](_0x3a96c3=>co(_0x3a96c3)||function(_0x52284e,_0x2427e5){if(_0x52284e['is']('rootElement')||_0x2427e5['isLimit'](_0x52284e))return!0x1;return _0x2427e5['checkChild'](_0x52284e['parent'],'codeBlock');}(_0x3a96c3,_0x334006['schema'])):Array['from'](_0x58b153['getSelectedBlocks']())['filter'](_0x25da0f=>co(_0x25da0f));const _0x32cff6=to(_0xc97f41,_0x334006);_0x334006['change'](()=>{for(const _0x4dec5c of _0x32cff6)_0x8f957f['markBlockFormat'](_0x4dec5c,{'commandName':'codeBlock','commandParams':[{..._0x4e7bce,'forceValue':_0x443ddd}],'formatGroupId':'blockName'});});}),(_0x8f957f['descriptionFactory']['registerElementLabel']('codeBlock',_0x5ec4d1=>o(_0x2001c1,'ELEMENT_CODE_BLOCK',_0x5ec4d1)),_0x8f957f['descriptionFactory']['registerDescriptionCallback'](_0x148bae=>{if('formatBlock'!=_0x148bae['type'])return;const _0x86e5ef=_0x2001c1['t'],{data:_0x237da3}=_0x148bae;if(!_0x237da3||'codeBlock'!=_0x237da3['commandName'])return;const _0xd5ca25=_0x237da3['commandParams'][0x0]['language'],_0x50ffad=_0x86e5ef(_0x425585['find'](_0x24827a=>_0x24827a['language']===_0xd5ca25)['label'])['toLowerCase']();return _0x237da3['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2001c1,'*Set\x20format:*\x20%0',o(_0x2001c1,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x50ffad+')')}:{'type':'format','content':o(_0x2001c1,'*Remove\x20format:*\x20%0',o(_0x2001c1,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x43ee48){return'codeBlock'==_0x43ee48['name'];}class H extends _0x2e45f0{['afterInit'](){const _0x35226b=this['editor'];if(!_0x35226b['plugins']['has']('CommentsEditing'))return;_0x35226b['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class Q extends _0x2e45f0{static get['requires'](){return[_0x100ebc];}['init'](){const _0x263094=this['editor'],_0x581078=_0x263094['plugins']['get']('TrackChangesEditing');_0x581078['enableCommand']('delete');const _0x5acc15=_0x263094['commands']['get']('deleteForward');_0x581078['enableCommand']('deleteForward',(_0x1d50ed,_0x9bfda0={})=>{const _0x33304f=_0x263094['model']['createSelection'](_0x263094['model']['document']['selection']);_0x33304f['isCollapsed']&&_0x263094['model']['modifySelection'](_0x33304f,{'direction':'forward','unit':_0x9bfda0['unit']});const _0x352878=_0x33304f['getFirstRange'](),_0x29dd3a=_0x5a100f['fromRange'](_0x352878);let _0x5055b9;_0x1d50ed(_0x9bfda0),_0x5055b9='$graveyard'==_0x29dd3a['root']['rootName']?_0x263094['model']['createRange'](_0x352878['start']):_0x263094['model']['createRange'](_0x29dd3a['start'],_0x29dd3a['end']),_0x29dd3a['detach'](),_0x263094['model']['enqueueChange'](_0x5acc15['buffer']['batch'],_0x20c966=>{_0x5acc15['buffer']['lock'](),_0x20c966['setSelection'](_0x20c966['createRange'](_0x5055b9['end'])),_0x5acc15['buffer']['unlock']();});});}}class X extends _0x2e45f0{['afterInit'](){const _0x1944ea=this['editor'];if(!_0x1944ea['plugins']['has']('ListEditing'))return;const _0x229bfb=_0x1944ea['locale'],_0x81efc0=_0x1944ea['plugins']['get']('TrackChangesEditing'),_0x1704aa=_0x1944ea['plugins']['has']('TodoListEditing'),_0x591747=!!_0x1944ea['config']['get']('list.multiBlock');function _0x33f061(_0x45351c){return{'type':'format','content':''+o(_0x229bfb,'*Set\x20format:*\x20%0',_0x45351c)};}function _0x2a1aba(_0x2262c7){return{'type':'format','content':''+o(_0x229bfb,'*Remove\x20format:*\x20%0',_0x2262c7)};}_0x81efc0['enableDefaultAttributesIntegration']('numberedList'),_0x81efc0['enableDefaultAttributesIntegration']('bulletedList'),_0x81efc0['enableDefaultAttributesIntegration']('customNumberedList'),_0x81efc0['enableDefaultAttributesIntegration']('customBulletedList'),_0x81efc0['enableDefaultAttributesIntegration']('indentList'),_0x81efc0['enableDefaultAttributesIntegration']('outdentList'),_0x81efc0['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x81efc0['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x591747&&(_0x81efc0['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x81efc0['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x1704aa&&(_0x81efc0['enableDefaultAttributesIntegration']('todoList'),_0x81efc0['enableDefaultAttributesIntegration']('checkTodoList'),_0x81efc0['descriptionFactory']['registerDescriptionCallback'](_0x1cbb40=>{const {data:_0x11efd3}=_0x1cbb40;if(_0x11efd3&&'todoListChecked'==_0x11efd3['key'])return{'type':'format','content':_0x11efd3['newValue']?o(_0x229bfb,'*Check\x20item*'):o(_0x229bfb,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x3d7a8c=>{if(_0x3d7a8c['batch']['isUndo'])return!0x1;let _0xda82d9=!0x1;const _0x55d358=_0x81efc0['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2aa628=>'todoListChecked'===_0x81efc0['_getAttributeKey'](_0x2aa628));for(const _0x1a82ba of _0x55d358){'todo'!=_0x1a82ba['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x81efc0['_findSuggestions'](_0x1a82ba['getFirstRange'](),'attribute')['find'](_0x101b28=>'listType'===_0x81efc0['_getAttributeKey'](_0x101b28['suggestion']))||(_0x3d7a8c['removeMarker'](_0x1a82ba['getFirstMarker']()),_0xda82d9=!0x0));}return _0xda82d9;})),_0x81efc0['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x229bfb,'FORMAT_INDENT'));const _0x26cfb9={'type':'format','content':''};_0x81efc0['descriptionFactory']['registerDescriptionCallback'](_0x354939=>{const {data:_0x145182}=_0x354939;if(!_0x145182||'listType'!=_0x145182['key'])return;let _0x5c9f91=_0x354939['head'];for(;_0x5c9f91;){if(_0x5c9f91['data']&&(('listStyle'==_0x5c9f91['data']['key']||'listMarkerStyle'==_0x5c9f91['data']['key'])&&(_0x5c9f91['data']['newValue']&&'default'!=_0x5c9f91['data']['newValue']||'default'!=_0x5c9f91['data']['oldValue']&&!_0x145182['newValue'])||!_0x591747&&_0x5c9f91['data']['key']==m))return _0x26cfb9;_0x5c9f91=_0x5c9f91['next'];}if(null==_0x145182['newValue'])switch(_0x145182['oldValue']){case'bulleted':return _0x2a1aba(o(_0x229bfb,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2a1aba(o(_0x229bfb,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2a1aba(o(_0x229bfb,'ELEMENT_TODO_LIST'));}switch(_0x145182['newValue']){case'bulleted':return _0x33f061(o(_0x229bfb,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x33f061(o(_0x229bfb,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x33f061(o(_0x229bfb,'ELEMENT_TODO_LIST'));}}),_0x81efc0['descriptionFactory']['registerDescriptionCallback'](_0x2a312c=>{const {data:_0x263caf}=_0x2a312c;if(_0x263caf&&'listIndent'==_0x263caf['key'])return null==_0x263caf['newValue']||null==_0x263caf['oldValue']&&0x0==_0x263caf['newValue']?_0x26cfb9:void 0x0;}),_0x81efc0['descriptionFactory']['registerDescriptionCallback'](_0x39b87a=>{if('attribute'!=_0x39b87a['type'])return;const {data:_0x39fa24}=_0x39b87a;if(!_0x39fa24||'listItemId'!=_0x39fa24['key'])return;const _0x5a4a25=Te(_0x39b87a);return'newValue'==_0x5a4a25?{'type':'format','content':o(_0x229bfb,'*Merge:*\x20list\x20item')}:'oldValue'==_0x5a4a25?{'type':'format','content':o(_0x229bfb,'*Split:*\x20list\x20item')}:_0x26cfb9;}),_0x1944ea['model']['document']['registerPostFixer'](_0x5312fe=>this['listItemIdFixer'](_0x5312fe)),_0x1944ea['model']['document']['registerPostFixer'](_0xb5381=>this['noTrackChangesFixer'](_0xb5381)),_0x1944ea['model']['document']['on']('change:data',(_0x31c55f,_0x128180)=>{if(_0x128180['isUndo']||!_0x128180['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x2f31c9){if(_0x2f31c9['batch']['isUndo']||!_0x2f31c9['batch']['isLocal'])return!0x1;let _0x142d3a=!0x1;const _0x434b39=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x512f13=>_0x512f13['data']&&'listItemId'==_0x512f13['data']['key'])['filter'](_0x51639a=>_0x51639a['data']['newValue']&&_0x51639a['data']['oldValue']);for(const _0xa3a36f of _0x434b39)Te(_0xa3a36f)||(_0x2f31c9['removeMarker'](_0xa3a36f['getFirstMarker']()),_0x142d3a=!0x0);return _0x142d3a;}['noTrackChangesFixer'](_0x40bbc1){if(_0x40bbc1['batch']['isUndo']||!_0x40bbc1['batch']['isLocal'])return!0x1;const _0x2a9ae1=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x2a9ae1['trackChangesCommand']['value'])return!0x1;let _0x2b9c1f=!0x1;const _0x1778a8=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0xc93175=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x2c12f4=>'attribute'==_0x2c12f4['type'])['filter'](_0x827b64=>_0x1778a8['includes'](_0x827b64['attributeKey']));if(0x0==_0xc93175['length'])return _0x2b9c1f;for(const _0x3e43e7 of _0xc93175){const _0x4eca67=_0x2a9ae1['_findSuggestions'](_0x3e43e7['range'],'attribute')['filter'](_0xd2f16=>!_0xd2f16['meta']['isNextTo'])['map'](_0xe63b34=>_0xe63b34['suggestion'])['filter'](_0x33bccd=>{const _0x288dc1=_0x2a9ae1['_getAttributeKey'](_0x33bccd);return _0x1778a8['includes'](_0x288dc1);});if(_0x4eca67['length']){for(const _0x47fecb of _0x4eca67)_0x40bbc1['removeMarker'](_0x47fecb['getFirstMarker']());_0x2b9c1f=!0x0;}}return _0x2b9c1f;}['assureChains'](){const _0x2998be=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2ea87b=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x3aa67f;const _0x1f668c=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x51f9e7=>{if(_0x51f9e7['data']['oldRange']||!_0x51f9e7['data']['newRange'])return null;if(!_0x51f9e7['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x4f0459}=_0x2998be['_splitMarkerName'](_0x51f9e7['name']);if(!_0x2998be['hasSuggestion'](_0x4f0459))return null;const _0x5115d5=_0x2998be['getSuggestion'](_0x4f0459);return _0x2ea87b['includes'](_0x5115d5['data']['key']);})['map'](_0x167c47=>{const {id:_0x5d9730}=_0x2998be['_splitMarkerName'](_0x167c47['name']),_0x5e8a4f=_0x2998be['getSuggestion'](_0x5d9730);return _0x3aa67f=_0x5e8a4f['attributes']['groupId'],_0x5e8a4f['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x1f668c['size'])return;const _0x49e4f0=_0x2998be['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4a49b1=>'attribute'==_0x4a49b1['type']&&_0x4a49b1['data']&&_0x2ea87b['includes'](_0x4a49b1['data']['key'])&&_0x4a49b1['attributes']['groupId']!=_0x3aa67f)['map'](_0x4ca356=>({'listItem':_0x4ca356['getFirstRange']()['start']['nodeAfter'],'groupId':_0x4ca356['attributes']['groupId']})),_0xda8700=new Set();for(const {groupId:_0xe45cb2,listItem:_0x476656}of _0x49e4f0)_0x1f668c['has'](_0x476656)&&_0xda8700['add'](_0xe45cb2);for(const _0x29fd1b of _0x2998be['getSuggestions']())_0xda8700['has'](_0x29fd1b['attributes']['groupId'])&&_0x29fd1b['setAttribute']('groupId',_0x3aa67f);}['_supportLegacySuggestions'](){const _0x2f0621=this['editor'],_0x9bf4dd=_0x2f0621['locale'],_0x42e11f=_0x2f0621['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x42e11f['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x5d495e,_0x38bc9b){const _0x44ad4b=[];for(let _0x592ede of _0x5d495e)_0x592ede['start']['nodeAfter']===_0x592ede['end']['parent']&&(_0x592ede=_0x2f0621['model']['createRange'](_0x2f0621['model']['createPositionAt'](_0x592ede['start']['nodeAfter'],0x0))),_0x44ad4b['push'](_0x592ede);_0x2f0621['model']['change'](_0xc0cbba=>{const _0x43dae3=_0x2f0621['model']['document']['selection'],_0x16957b=Array['from'](_0x43dae3['getRanges']())['map'](_0x45ecf8=>_0x5a100f['fromRange'](_0x45ecf8));_0xc0cbba['setSelection'](_0x44ad4b),_0x2f0621['commands']['get'](_0x38bc9b['commandName'])['refresh'](),_0x38bc9b['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x2f0621['execute'](_0x38bc9b['commandName'],..._0x38bc9b['commandParams']),_0xc0cbba['setSelection'](_0x16957b);for(const _0x3ed2dd of _0x16957b)_0x3ed2dd['detach']();});}),_0x42e11f['descriptionFactory']['registerElementLabel'](function(_0x42e6ad){const _0x874c9d=!_0x2f0621['model']['schema']['isObject'](_0x42e6ad),_0x2df503=_0x42e6ad['previousSibling'],_0x1c9c7b=_0x42e6ad['nextSibling'],_0x4eacae=_0x42e6ad['getAttribute']('listItemId'),_0x491fbf=!_0x2df503||_0x2df503['getAttribute']('listItemId')!==_0x4eacae,_0x22a491=!_0x1c9c7b||_0x1c9c7b['getAttribute']('listItemId')!==_0x4eacae;return _0x874c9d&&Boolean(_0x4eacae)&&_0x491fbf&&_0x22a491;},_0xe6e300=>o(_0x9bf4dd,'ELEMENT_LIST_ITEM',_0xe6e300));}['_registerLegacyDescription'](){const _0x44618d=this['editor'],_0x5e4a4d=_0x44618d['locale'];function _0x141955(_0x284aab){const _0x194884=_0x44618d['commands']['get']('bulletedList')['value'],_0x529471=_0x44618d['commands']['get']('numberedList')['value'];return'numberedList'===_0x284aab?_0x194884:_0x529471;}_0x44618d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x519e56){if('formatBlock'!=_0x519e56['type'])return;const {data:_0x3fb349}=_0x519e56;if(!_0x3fb349)return;let _0x38404c,_0x1acf31,_0x305b07,_0x78c31a;switch(_0x3fb349['commandName']){case'bulletedList':_0x305b07=_0x3fb349['commandParams'][0x0]['forceValue'],_0x78c31a=_0x141955(_0x3fb349['commandName']),_0x38404c=_0x305b07?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x78c31a&&_0x44618d['config']['get']('list.multiBlock')||(_0x38404c='*Change\x20to:*\x20%0'),_0x1acf31={'type':'format','content':o(_0x5e4a4d,_0x38404c,o(_0x5e4a4d,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x305b07=_0x3fb349['commandParams'][0x0]['forceValue'],_0x78c31a=_0x141955(_0x3fb349['commandName']),_0x38404c=_0x305b07?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x78c31a&&_0x44618d['config']['get']('list.multiBlock')||(_0x38404c='*Change\x20to:*\x20%0'),_0x1acf31={'type':'format','content':o(_0x5e4a4d,_0x38404c,o(_0x5e4a4d,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x38404c='*Indent:*\x20%0',_0x1acf31={'type':'format','content':o(_0x5e4a4d,_0x38404c,o(_0x5e4a4d,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x38404c=function(_0x12b0d1){const _0x40d7da=_0x12b0d1['getFirstRange']();let _0x5cef71=_0x40d7da['start']['nodeAfter'];for(;_0x5cef71&&_0x40d7da['containsItem'](_0x5cef71);){if(_0x5cef71['getAttribute']('listIndent')>0x0)return!0x1;_0x5cef71=_0x5cef71['nextSibling'];}return!0x0;}(_0x519e56)?o(_0x5e4a4d,'*Format:*\x20remove\x20from\x20%0',o(_0x5e4a4d,function(_0x40c412){return'ELEMENT_'+_0x40c412['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x519e56))):o(_0x5e4a4d,'*Outdent:*\x20%0',o(_0x5e4a4d,'ELEMENT_LIST_ITEM')),_0x1acf31={'type':'format','content':_0x38404c};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x3fb349['multipleBlocks']&&(_0x38404c='*Merge:*\x20%0',_0x1acf31={'type':'deletion','content':o(_0x5e4a4d,_0x38404c,o(_0x5e4a4d,'ELEMENT_LIST_ITEM'))});}return _0x1acf31;});}}function Te(_0x1e9aa9){let _0xea7cb8=_0x1e9aa9['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0xea7cb8;){const _0x52ab2b=_0xea7cb8['getAttribute']('listItemId');if(!_0x52ab2b)return!0x1;if(_0x52ab2b==_0x1e9aa9['data']['newValue'])return'newValue';if(_0x52ab2b==_0x1e9aa9['data']['oldValue'])return'oldValue';_0xea7cb8=_0xea7cb8['previousSibling'];}return!0x1;}class Y extends _0x2e45f0{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0xcf6d2=this['editor']['config']['get']('list.properties'),_0x55f81b=this['editor']['plugins']['get']('TrackChangesEditing');_0xcf6d2['styles']&&_0x55f81b['enableDefaultAttributesIntegration']('listStyle'),_0xcf6d2['reversed']&&_0x55f81b['enableDefaultAttributesIntegration']('listReversed'),_0xcf6d2['startIndex']&&_0x55f81b['enableDefaultAttributesIntegration']('listStart');const _0x1584f7={'type':'format','content':''};_0x55f81b['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x569639=this['editor']['locale'];_0x55f81b['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x569639,'FORMAT_LIST_REVERSED')),_0x55f81b['descriptionFactory']['registerDescriptionCallback'](_0x3c17af=>{const {data:_0x4e156a}=_0x3c17af;if(_0x4e156a&&'listReversed'==_0x4e156a['key'])return null==_0x4e156a['newValue']||0x0==_0x4e156a['newValue']&&null==_0x4e156a['oldValue']?_0x1584f7:void 0x0;}),_0x55f81b['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x569639,'FORMAT_LIST_START')),_0x55f81b['descriptionFactory']['registerDescriptionCallback'](_0x557e91=>{const {data:_0xf0515b}=_0x557e91;if(_0xf0515b&&'listStart'==_0xf0515b['key'])return null==_0xf0515b['newValue']||0x1==_0xf0515b['newValue']&&null==_0xf0515b['oldValue']?_0x1584f7:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x2f9e46=>{if(_0x2f9e46['batch']['isUndo'])return!0x1;let _0x4297f2=!0x1;const _0x7e1897=_0x55f81b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2ce120=>{const _0x5e4524=_0x55f81b['_getAttributeKey'](_0x2ce120);return'listStart'==_0x5e4524||'listReversed'==_0x5e4524;});for(const _0x2af2da of _0x7e1897){const _0x1a969f=_0x2af2da['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x1a969f||'customNumbered'==_0x1a969f)continue;_0x55f81b['_findSuggestions'](_0x2af2da['getFirstRange'](),'attribute')['find'](_0x129829=>'listType'==_0x55f81b['_getAttributeKey'](_0x129829['suggestion']))||(_0x2f9e46['removeMarker'](_0x2af2da['getFirstMarker']()),_0x4297f2=!0x0);}return _0x4297f2;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x17006f){const _0x4995c=this['editor']['locale'],{data:_0x5bf9d6}=_0x17006f,_0x274564={'type':'format','content':''};if(!_0x5bf9d6||'listStyle'!=_0x5bf9d6['key'])return;if(!_0x5bf9d6['oldValue'])return'default'==_0x5bf9d6['newValue']?_0x274564:{'type':'format','content':''+o(_0x4995c,'*Set\x20format:*\x20%0',o(_0x4995c,this['_getTranslationKeyForListStyle'](_0x5bf9d6['newValue'])))};if(!_0x5bf9d6['newValue']){if('default'==_0x5bf9d6['oldValue'])return _0x274564;let _0x44c387=_0x17006f['head'];for(;_0x44c387;){if(_0x44c387['data']&&'listType'==_0x44c387['data']['key']&&_0x44c387['data']['newValue'])return _0x274564;_0x44c387=_0x44c387['next'];}return{'type':'format','content':''+o(_0x4995c,'*Remove\x20format:*\x20%0',o(_0x4995c,this['_getTranslationKeyForListStyle'](_0x5bf9d6['oldValue'])))};}if('default'!=_0x5bf9d6['newValue'])return{'type':'format','content':''+o(_0x4995c,'*Set\x20format:*\x20%0',o(_0x4995c,this['_getTranslationKeyForListStyle'](_0x5bf9d6['newValue'])))};let _0x3a8df6=_0x17006f['head'];for(;_0x3a8df6;){if(_0x3a8df6['data']&&'listType'==_0x3a8df6['data']['key']&&_0x3a8df6['data']['newValue']&&_0x3a8df6['data']['oldValue'])return _0x274564;_0x3a8df6=_0x3a8df6['next'];}return{'type':'format','content':o(_0x4995c,'*Set\x20format:*\x20%0',o(_0x4995c,'ELEMENT_'+_0x17006f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1b2ed7=this['editor'],_0x1c18b9=_0x1b2ed7['locale'];_0x1b2ed7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1351e5=>{if('formatBlock'!=_0x1351e5['type'])return;const {data:_0x5cf4e6}=_0x1351e5;if(!_0x5cf4e6)return;let _0x225a3a,_0x3e6d11;switch(_0x5cf4e6['commandName']){case'listStyle':_0x225a3a='*Change\x20to:*\x20%0',_0x3e6d11={'type':'format','content':o(_0x1c18b9,_0x225a3a,o(_0x1c18b9,this['_getTranslationKeyForListStyle'](_0x5cf4e6['commandParams'][0x0]['type'])))};break;case'listReversed':_0x225a3a=_0x5cf4e6['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3e6d11={'type':'format','content':o(_0x1c18b9,_0x225a3a)};break;case'listStart':_0x225a3a='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3e6d11={'type':'format','content':o(_0x1c18b9,_0x225a3a,_0x5cf4e6['commandParams'][0x0]['startIndex'])};}return _0x3e6d11;});}['_getTranslationKeyForListStyle'](_0x223a5c){return'ELEMENT_'+function(_0x4fa61b){if(ye['includes'](_0x4fa61b))return'bulleted';if(Se['includes'](_0x4fa61b))return'numbered';return null;}(_0x223a5c)['toUpperCase']()+'_LIST_'+_0x223a5c['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 _0x2e45f0{['afterInit'](){const _0x1ab7bb=this['editor'];_0x1ab7bb['commands']['get']('emoji')&&_0x1ab7bb['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class tt extends _0x2e45f0{static get['requires'](){return[_0x1dda4c];}['init'](){const _0x2d06fa=this['editor'],_0x4c28fa=_0x2d06fa['plugins']['get']('TrackChangesEditing'),_0xa22ad=_0x2d06fa['commands']['get']('enter');_0x4c28fa['enableCommand']('enter',()=>{_0x2d06fa['model']['change'](_0x2c508f=>{const _0x8c06fd=_0x2d06fa['model']['document']['selection'],_0x37d0d7=_0x8c06fd['getFirstPosition'](),_0x4eba7a=_0x5a100f['fromRange'](_0x8c06fd['getFirstRange']());if(_0xa22ad['enterBlock'](_0x2c508f)){const _0x22f72e=_0x2d06fa['model']['createPositionAt'](_0x37d0d7['parent']['nextSibling'],0x0),_0x422180=_0x2c508f['createRange'](_0x37d0d7,_0x22f72e);_0x4c28fa['markInsertion'](_0x422180);}else _0x2c508f['setSelection'](_0x2c508f['createRange'](_0x4eba7a['end']));_0x4eba7a['detach'](),_0xa22ad['fire']('afterExecute',{'writer':_0x2c508f});});});}}class nt extends _0x2e45f0{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x59cb51=this['editor']['plugins']['get']('TrackChangesEditing');_0x59cb51['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x59cb51['enableCommand']('findNext'),_0x59cb51['enableCommand']('findPrevious'),_0x59cb51['enableCommand']('replace'),_0x59cb51['enableCommand']('replaceAll');}['handleFindCommand'](_0x33ecb0,_0x1ae96c,_0x371c1a={}){const _0x3c93a9=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x33ecb0(_0x35bce1=>{let _0xdea07=('string'==typeof _0x1ae96c?_0x3c93a9['findByTextCallback'](_0x1ae96c,_0x371c1a):_0x1ae96c)(_0x35bce1);Array['isArray'](_0xdea07)&&(_0xdea07={'results':_0xdea07,'searchText':'string'==typeof _0x1ae96c?_0x1ae96c:''});const _0x26582a=_0xdea07['results']['filter'](_0x57b982=>!0x1===this['_isInDeletionRange'](_0x57b982,_0x35bce1['item']));return{..._0xdea07,'results':_0x26582a};},_0x371c1a);}['_isInDeletionRange'](_0x53a6ad,_0x3fe680){const _0x553102=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3fe680,_0x53a6ad['start']),this['editor']['model']['createPositionAt'](_0x3fe680,_0x53a6ad['end']));for(const _0x189839 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x553102['getIntersection'](_0x189839['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 _0x2e45f0{['afterInit'](){const _0x3cc5c1=this['editor']['locale'],_0x2f876a=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x5756a1,commandName:_0x368463}of eo)this['editor']['plugins']['has'](_0x5756a1)&&_0x2f876a['enableDefaultAttributesIntegration'](_0x368463);_0x2f876a['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x3cc5c1,'FORMAT_FONT_SIZE')),_0x2f876a['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x3cc5c1,'FORMAT_FONT_FAMILY')),_0x2f876a['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x3cc5c1,'FORMAT_FONT_COLOR')),_0x2f876a['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x3cc5c1,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x135b40=this['editor'],_0x3f5296=_0x135b40['locale'];_0x135b40['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x50ad4a=>{const _0x3621d9=_0x3f5296['t'];if('formatInline'!=_0x50ad4a['type'])return;const {data:_0x175c21}=_0x50ad4a;if(null!=_0x175c21){if('fontSize'==_0x175c21['commandName']){const _0x34b5da=_0x175c21['commandParams'][0x0]['value'];if(_0x34b5da){const _0x932e39=_0x3621d9(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x284707=>_0x284707['model']==_0x34b5da)['title'])['toLowerCase']();return{'type':'format','content':o(_0x3f5296,'*Set\x20font\x20size:*\x20%0',_0x932e39)};}return{'type':'format','content':o(_0x3f5296,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x175c21['commandName']){const _0x5a3c7a=_0x175c21['commandParams'][0x0]['value'];return _0x5a3c7a?{'type':'format','content':o(_0x3f5296,'*Set\x20font\x20family:*\x20%0',_0x5a3c7a)}:{'type':'format','content':o(_0x3f5296,'*Reset\x20font\x20family*')};}if('fontColor'==_0x175c21['commandName']){const _0x3d9ad8=_0x175c21['commandParams'][0x0]['value'];if(_0x3d9ad8){const _0x2d38db=_0x2cbf64(this['editor']['config']['get']('fontColor.colors'))['find'](_0xf9d9ee=>_0xf9d9ee['model']==_0x3d9ad8);let _0x5d4b94=_0x3d9ad8,_0x4886fb='';return _0x2d38db&&(_0x5d4b94=_0x2d38db['label'],_0x4886fb=_0x3621d9(_0x5d4b94)['toLowerCase']()),{'type':'format','content':o(_0x3f5296,'*Set\x20font\x20color:*\x20%0',_0x4886fb)['trim'](),'color':{'value':_0x3d9ad8,'title':_0x4886fb||_0x5d4b94}};}return{'type':'format','content':o(_0x3f5296,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x175c21['commandName']){const _0x29fde0=_0x175c21['commandParams'][0x0]['value'];if(_0x29fde0){const _0x14eafd=_0x2cbf64(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x331c47=>_0x331c47['model']==_0x29fde0);let _0x301f3f=_0x29fde0,_0x2dd42b='';return _0x14eafd&&(_0x301f3f=_0x14eafd['label'],_0x2dd42b=_0x3621d9(_0x301f3f)['toLowerCase']()),{'type':'format','content':o(_0x3f5296,'*Set\x20font\x20background\x20color:*\x20%0',_0x2dd42b)['trim'](),'color':{'value':_0x29fde0,'title':_0x2dd42b||_0x301f3f}};}return{'type':'format','content':o(_0x3f5296,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x2e45f0{['afterInit'](){const {plugins:_0x5d8054}=this['editor'];_0x5d8054['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x5d8054['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x35c3fc,plugins:_0x3b32be,commands:_0x3cb55c}=this['editor'],_0x3f18b9=_0x3b32be['get']('TrackChangesEditing');_0x3cb55c['get']('footnotesStyle')&&_0x3f18b9['enableDefaultAttributesIntegration']('footnotesStyle'),_0x3cb55c['get']('footnotesStart')&&_0x3f18b9['enableDefaultAttributesIntegration']('footnotesStart'),_0x3f18b9['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',o(_0x35c3fc,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x3f18b9['descriptionFactory']['registerAttributeLabel']('footnotesListStart',o(_0x35c3fc,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x4d685b=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x5efafc,commands:_0xa50852}=this['editor'];_0xa50852['get']('insertFootnote')&&_0x4d685b['enableCommand']('insertFootnote'),_0x4d685b['descriptionFactory']['registerElementLabel']('footnoteRef',_0x5a01d5=>o(_0x5efafc,'ELEMENT_FOOTNOTE_REF',_0x5a01d5)),_0x4d685b['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x34737e=>o(_0x5efafc,'ELEMENT_FOOTNOTE_DEFINITION',_0x34737e)),_0x4d685b['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x55c2a5=>o(_0x5efafc,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x55c2a5));}}class st extends _0x2e45f0{['afterInit'](){const _0x3a4078=this['editor'],_0x5bbe04=_0x3a4078['plugins']['get']('TrackChangesEditing'),_0x574fa4=_0x3a4078['commands']['get']('copyFormat'),_0x3a4392=_0x3a4078['commands']['get']('pasteFormat');_0x574fa4&&_0x3a4392&&(_0x5bbe04['enableDefaultAttributesIntegration']('pasteFormat'),_0x5bbe04['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x5c5442=this['editor'],_0x30c146=_0x5c5442['locale'];_0x5c5442['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x30c5db=>{if('formatBlock'!=_0x30c5db['type']&&'formatInline'!=_0x30c5db['type'])return;const {data:_0x5acf37}=_0x30c5db;if(_0x5acf37&&'pasteFormat'===_0x5acf37['commandName']){const _0x50839=[],_0x3fab9c=_0x5acf37['commandParams'][0x0];for(const [_0x1840f5,_0x32f496]of Object['entries'](_0x3fab9c))_0x50839['push'](ro(_0x5c5442,_0x1840f5,_0x32f496));return _0x50839['length']?{'type':'format','content':o(_0x30c146,'*Set\x20format\x20to:*\x20%0',_0x50839['join'](',\x20'))}:{'type':'format','content':o(_0x30c146,'*Remove\x20all\x20formatting*')};}});}}function ro(_0xc7d8ea,_0x4a1e93,_0x4e61d5){const _0x4445d2=_0xc7d8ea['locale']['t'],_0x1b9a47=_0x4a1e93['split'](/(?=[A-Z])/)['join']('\x20'),_0x29be62=_0x4445d2(_0x1b9a47['charAt'](0x0)['toUpperCase']()+_0x1b9a47['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x4e61d5)return _0x29be62;if('fontColor'===_0x4a1e93||'fontBackgroundColor'===_0x4a1e93){const _0x2e72f1=_0x2cbf64(_0xc7d8ea['config']['get']('fontColor.colors'))['find'](_0x55eb93=>_0x55eb93['model']==_0x4e61d5);return _0x29be62+'\x20('+(_0x2e72f1?_0x4445d2(_0x2e72f1['label'])['toLowerCase']():_0x4e61d5)+')';}if('fontSize'===_0x4a1e93&&isNaN(parseFloat(_0x4e61d5))){const _0x592cb4=_0xc7d8ea['plugins']['get']('FontSize')['normalizeSizeOptions'](_0xc7d8ea['config']['get']('fontSize.options'))['find'](_0x430585=>_0x430585['model']==_0x4e61d5);return _0x29be62+'\x20('+(_0x592cb4?_0x4445d2(_0x592cb4['title'])['toLowerCase']():_0x4e61d5)+')';}return _0x29be62+'\x20('+_0x4e61d5+')';}class ot extends _0x2e45f0{['_headingOptions'];['afterInit'](){const _0x41018b=this['editor'];if(!_0x41018b['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x41018b['config']['get']('heading.options');const _0x248c51=_0x41018b['locale'],_0x1de0a2=_0x41018b['plugins']['get']('TrackChangesEditing');_0x1de0a2['enableDefaultAttributesIntegration']('heading');for(const _0x3db1ef of this['_headingOptions'])'paragraph'!=_0x3db1ef['model']&&_0x1de0a2['descriptionFactory']['registerElementLabel'](_0x3db1ef['model'],_0x53dad2=>{const _0x5542ff=this['_getHeadingLevel'](_0x3db1ef['model']);return null!==_0x5542ff?_0x5b0a26(_0x53dad2,_0x5542ff):_0x48403f(_0x53dad2,_0x3db1ef['title']);});function _0x5b0a26(_0x555f37,_0x55caa6){return o(_0x248c51,'ELEMENT_HEADING',[_0x555f37,_0x55caa6]);}function _0x48403f(_0x2ef126,_0xfbb9b9){return o(_0x248c51,'ELEMENT_HEADING_CUSTOM',[_0x2ef126,_0xfbb9b9]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3ae3cd=this['editor'],_0x27bebd=_0x3ae3cd['locale'];function _0x58365c(_0x8ac1a5,_0x1c2f8){return o(_0x27bebd,'ELEMENT_HEADING_CUSTOM',[_0x8ac1a5,_0x1c2f8]);}_0x3ae3cd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x30984f=>{if('formatBlock'!=_0x30984f['type'])return;const {data:_0x27e956}=_0x30984f;if(_0x27e956&&'heading'==_0x27e956['commandName']){const _0x3f51aa=_0x27e956['commandParams'][0x0]['value'],_0x3654fd=this['_getHeadingLevel'](_0x3f51aa);if(null!==_0x3654fd)return{'type':'format','content':o(_0x27bebd,'*Change\x20to:*\x20%0',(_0x27007f=0x1,_0x2ad897=_0x3654fd,o(_0x27bebd,'ELEMENT_HEADING',[_0x27007f,_0x2ad897])))};const _0x307ab1=this['_headingOptions']['find'](_0x25e90d=>_0x25e90d['model']===_0x3f51aa)['title'];return{'type':'format','content':o(_0x27bebd,'*Change\x20to:*\x20%0',_0x58365c(0x1,_0x307ab1))};}var _0x27007f,_0x2ad897;});}['_getHeadingLevel'](_0x508437){const _0x1521a9=_0x508437['match'](/^heading(\d+)/);if(_0x1521a9)return _0x1521a9[0x1];const _0x211637=this['_headingOptions']?.['find'](_0x959886=>_0x959886['model']==_0x508437);if(_0x211637&&_0x211637['view']){const _0x54b796=_0x211637['view'],_0x3f9c6a=(_0x54b796['name']??_0x54b796)['match'](/^h(\d+)/);if(_0x3f9c6a)return _0x3f9c6a[0x1];}return null;}}class rt extends _0x2e45f0{['afterInit'](){const _0x52901d=this['editor'];if(!_0x52901d['plugins']['has']('HighlightEditing'))return;const _0x3005f9=_0x52901d['plugins']['get']('TrackChangesEditing'),_0x3f77ba=_0x52901d['locale'];_0x3005f9['enableDefaultAttributesIntegration']('highlight'),_0x3005f9['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x3f77ba,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x328936=this['editor'],_0xd47b79=_0x328936['locale'];_0x328936['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e428a=>{if('formatInline'!=_0x1e428a['type'])return;const {data:_0x39d785}=_0x1e428a;if(_0x39d785&&'highlight'==_0x39d785['commandName']){const _0x229473=_0xd47b79['t'],_0x1c68fc=_0x39d785['commandParams'][0x0]['value'];if(_0x1c68fc){const _0x1eaf23=_0x328936['config']['get']('highlight.options')['find'](_0x3e3534=>_0x3e3534['model']==_0x1c68fc),_0x10b3f3=_0x229473(_0x1eaf23['title'])['toLowerCase']();return{'type':'format','content':o(_0xd47b79,'*Set\x20highlight:*\x20%0',_0x10b3f3),'color':{'value':_0x1eaf23['color'],'title':_0x1eaf23['title']}};}return{'type':'format','content':o(_0xd47b79,'*Remove\x20highlight*',o(_0xd47b79,'FORMAT_HIGHLIGHT'))};}});}}class at extends _0x2e45f0{['afterInit'](){const _0x12ad9c=this['editor'];if(!_0x12ad9c['plugins']['has']('HorizontalLineEditing'))return;_0x12ad9c['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x2df3d2=_0x12ad9c['plugins']['get']('TrackChangesEditing'),_0x51deac=_0x12ad9c['locale'];_0x2df3d2['descriptionFactory']['registerElementLabel']('horizontalLine',_0x804e0a=>o(_0x51deac,'ELEMENT_HORIZONTAL_LINE',_0x804e0a));}}class ct extends _0x2e45f0{['afterInit'](){const _0x55db3b=this['editor'];if(!_0x55db3b['plugins']['has']('HtmlEmbed'))return;const _0x53666d=_0x55db3b['plugins']['get']('TrackChangesEditing'),_0x76f3e5=_0x55db3b['locale'];_0x53666d['descriptionFactory']['registerElementLabel']('rawHtml',_0x24a372=>o(_0x76f3e5,'ELEMENT_HTML_EMBED',_0x24a372)),_0x53666d['enableDefaultAttributesIntegration']('htmlEmbed'),_0x53666d['descriptionFactory']['registerDescriptionCallback'](_0x1fdc42=>{if('attribute'!=_0x1fdc42['type'])return;const {data:_0x20a3cb}=_0x1fdc42;if(_0x20a3cb&&'value'==_0x20a3cb['key']&&_0x1fdc42['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x289fff=o(_0x76f3e5,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x76f3e5,'*Change\x20%0\x20content*',_0x289fff)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x338d49=this['editor'],_0x1e2b00=_0x338d49['locale'];_0x338d49['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5aa000=>{if('formatBlock'!=_0x5aa000['type'])return;const {data:_0x2a53cf}=_0x5aa000;if(_0x2a53cf&&'htmlEmbed'==_0x2a53cf['commandName']){const _0x5686f8=o(_0x1e2b00,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1e2b00,'*Change\x20%0\x20content*',_0x5686f8)};}});}}class ut extends _0x2e45f0{['afterInit'](){const _0x2695ac=this['editor'];if(!_0x2695ac['plugins']['has']('ImageEditing'))return;const _0x4c5621=_0x2695ac['plugins']['get']('TrackChangesEditing'),_0x3a8d8a=_0x2695ac['plugins']['get']('ImageUtils'),_0x5f0f5d=_0x2695ac['locale'];_0x4c5621['enableCommand']('insertImage'),_0x4c5621['descriptionFactory']['registerElementLabel']('imageBlock',_0x515933=>o(_0x5f0f5d,'ELEMENT_IMAGE',_0x515933)),_0x4c5621['descriptionFactory']['registerElementLabel']('imageInline',_0xf9cbb8=>o(_0x5f0f5d,'ELEMENT_INLINE_IMAGE',_0xf9cbb8)),_0x4c5621['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x5f0f5d,'ELEMENT_CAPTION')),_0x2695ac['plugins']['has']('ImageUploadEditing')&&_0x4c5621['enableCommand']('uploadImage'),_0x2695ac['plugins']['has']('ImageBlockEditing')&&_0x2695ac['plugins']['has']('ImageInlineEditing')&&(_0x4c5621['enableCommand']('imageTypeInline',(_0x36a817,_0x18212c)=>{const _0x1f4c72=_0x3a8d8a['getClosestSelectedImageElement'](_0x2695ac['model']['document']['selection']);_0x2695ac['model']['change'](()=>{_0x4c5621['markBlockFormat'](_0x1f4c72,{'commandName':'imageTypeInline','commandParams':[_0x18212c]},[],'convertBlockImageToInline');});}),_0x4c5621['enableCommand']('imageTypeBlock',(_0x2b1962,_0x19dbf7)=>{_0x2695ac['model']['change'](_0x2196f8=>{let _0x57b867=_0x3a8d8a['getClosestSelectedImageElement'](_0x2695ac['model']['document']['selection']),_0x19acd3=_0x2196f8['createRangeOn'](_0x57b867);const _0x596a8f=_0x4de5c6['fromPosition'](_0x19acd3['start'],'toPrevious'),_0x2e2504=_0x4de5c6['fromPosition'](_0x19acd3['end'],'toNext');_0x4c5621['forceDefaultExecution'](()=>_0x2b1962(_0x19dbf7)),_0x57b867=_0x3a8d8a['getClosestSelectedImageElement'](_0x2695ac['model']['document']['selection']),_0x19acd3=_0x2196f8['createRangeOn'](_0x57b867);const _0x57d46a=_0x2196f8['createRange'](_0x596a8f,_0x2e2504);_0x596a8f['detach'](),_0x2e2504['detach'](),_0x4c5621['markBlockFormat'](_0x57b867,{'commandName':'imageTypeInline','commandParams':[_0x19dbf7]},[],'convertInlineImageToBlock'),_0x57d46a['start']['isBefore'](_0x19acd3['start'])&&_0x4c5621['markInsertion'](_0x2196f8['createRange'](_0x57d46a['start'],_0x19acd3['start']),'convertInlineImageToBlock'),_0x19acd3['end']['isBefore'](_0x57d46a['end'])&&_0x4c5621['markInsertion'](_0x2196f8['createRange'](_0x19acd3['end'],_0x57d46a['end']),'convertInlineImageToBlock');});}),_0x4c5621['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x4c5621['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x4c5621['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x4c5621['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x4c5621['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x4c5621['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3e1c37])=>{const _0x4dc8e6=_0x4c5621['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x2a43de=_0x3e1c37['start'],_0x46fedb=_0x3e1c37['end'];const _0x5b8ffd=_0x2695ac['model']['schema']['getNearestSelectionRange'](_0x2a43de,'backward'),_0x574dde=_0x2695ac['model']['schema']['getNearestSelectionRange'](_0x46fedb,'forward');_0x5b8ffd['isCollapsed']&&(_0x2a43de=_0x5b8ffd['start']),_0x574dde['isCollapsed']&&(_0x46fedb=_0x574dde['end']),_0x4dc8e6([_0x2695ac['model']['createRange'](_0x2a43de,_0x46fedb)]);}),_0x4c5621['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x4cc722),_0x4c5621['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x4cc722)),_0x2695ac['plugins']['has']('ImageCaptionEditing')&&(_0x4c5621['enableCommand']('toggleImageCaption',(_0x1cdabc,_0x4de00a)=>{const _0x4a9399=_0x2695ac['plugins']['get']('ImageCaptionUtils');let _0x54233b=_0x3a8d8a['getClosestSelectedImageElement'](_0x2695ac['model']['document']['selection']),_0x3fcb44=_0x4a9399['getCaptionFromImageModelElement'](_0x54233b);_0x2695ac['model']['change'](()=>{if(_0x3fcb44)return void _0x4c5621['markDeletion'](_0x2695ac['model']['createRangeOn'](_0x3fcb44));const _0x33e551=_0x3a8d8a['isBlockImage'](_0x54233b);_0x1cdabc(_0x4de00a),_0x54233b=_0x3a8d8a['getClosestSelectedImageElement'](_0x2695ac['model']['document']['selection']),_0x3fcb44=_0x4a9399['getCaptionFromImageModelElement'](_0x54233b),_0x4c5621['markInsertion'](_0x2695ac['model']['createRangeOn'](_0x3fcb44),_0x33e551?null:'imageCaption');});}),_0x4c5621['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x4cc722));const _0x42edf6=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x316de7(_0x85516e,_0x490469){const _0x5c47d5=_0x42edf6['findIndex'](({type:_0x42b86b,subType:_0x164fcd})=>_0x85516e['type']==_0x42b86b&&_0x85516e['subType']==_0x164fcd),_0x4b66b3=_0x42edf6['findIndex'](({type:_0x41a919,subType:_0x1bcee9})=>_0x490469['type']==_0x41a919&&_0x490469['subType']==_0x1bcee9);if(_0x5c47d5<0x0||_0x4b66b3<0x0)return!0x1;const _0x16f19a=_0x85516e['getFirstRange'](),_0x240d8b=_0x490469['getFirstRange']();if((0x0==_0x5c47d5||0x1==_0x5c47d5)&&0x2==_0x4b66b3&&_0x16f19a['isIntersecting'](_0x240d8b))return!0x0;if(0x2==_0x5c47d5&&0x3==_0x4b66b3){const _0x38d7a6=_0x4c5621['_findSuggestions'](_0x16f19a,'insertion')['filter'](({suggestion:_0x152b2d,meta:_0x3cd3f0})=>_0x3cd3f0['isOwn']&&'convertInlineImageToBlock'==_0x152b2d['subType']);if(_0x38d7a6['length']>0x1&&_0x240d8b['end']['isEqual'](_0x16f19a['start']))return!0x0;if(0x1==_0x38d7a6['length']&&(_0x16f19a['start']['isEqual'](_0x240d8b['end'])||_0x16f19a['end']['isEqual'](_0x240d8b['start'])))return!0x0;}if(0x3==_0x5c47d5&&0x3==_0x4b66b3&&_0x16f19a['start']['isBefore'](_0x240d8b['start'])){const _0x29e57c=_0x16f19a['end']['nodeAfter'],_0xa23101=_0x240d8b['start']['nodeBefore'];return _0x3a8d8a['isBlockImage'](_0x29e57c)&&_0x29e57c===_0xa23101;}return!0x1;}function _0x4cc722(_0x2c2006,_0x269e39){return _0x316de7(_0x2c2006,_0x269e39)?[_0x2c2006,_0x269e39]:_0x316de7(_0x269e39,_0x2c2006)?[_0x269e39,_0x2c2006]:null;}_0x2695ac['plugins']['has']('ImageResize')&&(_0x4c5621['enableDefaultAttributesIntegration']('resizeImage'),_0x4c5621['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x5f0f5d,'FORMAT_IMAGE_SIZE'))),_0x2695ac['plugins']['has']('ImageTextAlternativeEditing')&&_0x4c5621['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x2695ac['plugins']['has']('PictureEditing')&&_0x4c5621['descriptionFactory']['registerDescriptionCallback'](_0x5eb597=>{if('attribute'!=_0x5eb597['type'])return;const {data:_0x5f28d5}=_0x5eb597;return _0x5f28d5&&'sources'==_0x5f28d5['key']?{'type':'format','content':''}:void 0x0;}),_0x2695ac['plugins']['has']('ImageSizeAttributes')&&_0x4c5621['descriptionFactory']['registerDescriptionCallback'](_0x89cd62=>{if('attribute'!=_0x89cd62['type'])return;const {data:_0x52ab12}=_0x89cd62;return!_0x52ab12||'width'!=_0x52ab12['key']&&'height'!=_0x52ab12['key']?void 0x0:{'type':'format','content':''};}),_0x4c5621['descriptionFactory']['registerDescriptionCallback'](_0xdd002c=>{if(!!_0x42edf6['find'](({type:_0x48d8bd,subType:_0x29688b})=>_0xdd002c['type']==_0x48d8bd&&_0xdd002c['subType']==_0x29688b))return _0xdd002c['previous']?{}:void 0x0;}),_0x4c5621['descriptionFactory']['registerDescriptionCallback'](_0x424130=>{if('insertion'==_0x424130['type']||'deletion'==_0x424130['type']){const _0x156d82=_0x424130['getContainedElement']();if(_0x156d82&&_0x156d82['is']('element','caption'))return{'type':'insertion'==_0x424130['type']?'addObject':'removeObject','element':_0x156d82,'quantity':0x1};}}),_0x4c5621['descriptionFactory']['registerDescriptionCallback'](_0x36323d=>'formatBlock'==_0x36323d['type']&&'convertInlineImageToBlock'==_0x36323d['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x36323d['type']&&'convertBlockImageToInline'==_0x36323d['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x4c5621['descriptionFactory']['registerDescriptionCallback'](_0xe46b75=>{if('attribute'!=_0xe46b75['type'])return;const {data:_0x23007e}=_0xe46b75;if(!_0x23007e||'alt'!=_0x23007e['key'])return;const _0x14869f=_0x23007e['newValue'];return _0x14869f?{'type':'format','content':o(_0x5f0f5d,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x14869f+'\x22')}:{'type':'format','content':o(_0x5f0f5d,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x12df33=this['editor'],_0x2ed2cf=_0x12df33['locale'];_0x12df33['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x51ea30=>{if('formatBlock'!=_0x51ea30['type']&&'formatInline'!=_0x51ea30['type'])return;const {data:_0x527f79}=_0x51ea30;if(_0x527f79){if('imageTextAlternative'==_0x527f79['commandName']){const _0x251bfd=_0x527f79['commandParams'][0x0]['newValue'];return _0x251bfd?{'type':'format','content':o(_0x2ed2cf,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x251bfd+'\x22')}:{'type':'format','content':o(_0x2ed2cf,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x527f79['commandName']){const _0x4b5bd1=_0x527f79['commandParams'][0x0]['width'];return _0x4b5bd1?{'type':'format','content':o(_0x2ed2cf,'*Set\x20image\x20width:*\x20%0',_0x4b5bd1)}:{'type':'format','content':o(_0x2ed2cf,'*Reset\x20image\x20width*')};}}});}}class ft extends _0x2e45f0{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x25eee8=this['editor']['locale'],_0x307f5d=this['editor']['plugins']['get']('TrackChangesEditing');_0x307f5d['enableDefaultAttributesIntegration']('replaceImageSource'),_0x307f5d['descriptionFactory']['registerDescriptionCallback'](_0x53e2e8=>{if('attribute'!=_0x53e2e8['type'])return;const {data:_0xbc2d18}=_0x53e2e8;return _0xbc2d18&&'src'==_0xbc2d18['key']?_0xbc2d18['newValue']&&_0xbc2d18['oldValue']?{'type':'format','content':o(_0x25eee8,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2d6d1d=this['editor']['plugins']['get']('TrackChangesEditing');_0x2d6d1d['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x2d6d1d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2d6d1d['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x2d6d1d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2629ba=this['editor'],_0x1d2b87=_0x2629ba['locale'];_0x2629ba['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x241835=>{if('formatBlock'!=_0x241835['type']&&'formatInline'!=_0x241835['type'])return;const {data:_0x523bc1}=_0x241835;if(!_0x523bc1||'replaceImageSource'!=_0x523bc1['commandName'])return;return{'type':'format','content':o(_0x1d2b87,'*Format:*\x20replace\x20image\x20URL')};});}}class ht extends _0x2e45f0{['afterInit'](){const _0x3e1a71=this['editor'];if(!_0x3e1a71['plugins']['has']('ImageStyleEditing'))return;const _0x5420c4=_0x3e1a71['plugins']['get']('TrackChangesEditing'),_0x44fbb2=_0x3e1a71['plugins']['get']('ImageUtils'),_0x30bf0d={};_0x5420c4['enableCommand']('imageStyle',(_0x28497b,_0x3136b3)=>{const _0x4c017b=_0x3e1a71['plugins']['get']('Users')['me'],_0x52a3dd=_0x3e1a71['commands']['get']('imageStyle');let _0x58a965=_0x44fbb2['getClosestSelectedImageElement'](_0x3e1a71['model']['document']['selection']),_0x46f2c7=_0x3e1a71['model']['createRangeOn'](_0x58a965),_0x1443ab=_0x52a3dd['value'];if(_0x1443ab==_0x3136b3['value'])return;const _0x4d1a9d={'commandName':'imageStyle','commandParams':[_0x3136b3],'formatGroupId':_0x320756()};_0x3e1a71['model']['change'](()=>{if(_0x5420c4['getSuggestions']()['filter'](_0x3a78db=>_0x3a78db['isInContent']&&_0x4c017b==_0x3a78db['author']&&('formatBlock'==_0x3a78db['type']||'formatInline'==_0x3a78db['type'])&&('imageStylePreApply'==_0x3a78db['subType']||'imageStylePostApply'==_0x3a78db['subType'])&&_0x3a78db['getFirstRange']()['isEqual'](_0x46f2c7))['forEach'](_0x5ec489=>_0x5420c4['discardSuggestion'](_0x5ec489['head'])),_0x58a965=_0x44fbb2['getClosestSelectedImageElement'](_0x3e1a71['model']['document']['selection']),_0x46f2c7=_0x3e1a71['model']['createRangeOn'](_0x58a965),_0x52a3dd['refresh'](),_0x3e1a71['commands']['get']('imageTypeInline')['refresh'](),_0x3e1a71['commands']['get']('imageTypeBlock')['refresh'](),_0x1443ab=_0x52a3dd['value'],_0x1443ab!=_0x3136b3['value'])return _0x44fbb2['isInlineImage'](_0x58a965)&&_0x52a3dd['shouldConvertImageType'](_0x3136b3['value'],_0x58a965)?(_0x28497b({..._0x3136b3,'setImageSizes':!0x1}),_0x58a965=_0x44fbb2['getClosestSelectedImageElement'](_0x3e1a71['model']['document']['selection']),void _0x5420c4['markBlockFormat'](_0x58a965,{..._0x4d1a9d,'commandReversedParams':[{'value':_0x1443ab||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x44fbb2['isBlockImage'](_0x58a965)?_0x5420c4['markBlockFormat'](_0x58a965,_0x4d1a9d,[],'imageStylePostApply'):_0x5420c4['markInlineFormat'](_0x46f2c7,_0x4d1a9d,'imageStylePostApply'));});});for(const _0x29b426 of _0x3e1a71['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x30bf0d[_0x29b426['name']]=_0x29b426['title']['toLowerCase']();_0x5420c4['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x5420c4['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x5420c4['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x5420c4['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x55c357])=>{_0x44fbb2['setImageNaturalSizeAttributes'](_0x55c357['getContainedElement']());}),_0x5420c4['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x22eb1,_0x1c15c2)=>{_0x5420c4['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x22eb1,{'commandName':_0x1c15c2['commandName'],'commandParams':_0x1c15c2['commandReversedParams']});}),_0x5420c4['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0xbd5556,_0x8014a){if(_0x1612de(_0xbd5556,_0x8014a))return[_0xbd5556,_0x8014a];if(_0x1612de(_0x8014a,_0xbd5556))return[_0x8014a,_0xbd5556];return null;});const _0x390dbd=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1612de(_0x1fb83a,_0x331604){const _0x2ba769=_0x390dbd['findIndex'](({type:_0x22c1ea,subType:_0x32488c})=>_0x1fb83a['type']==_0x22c1ea&&_0x1fb83a['subType']==_0x32488c),_0x38368b=_0x390dbd['findIndex'](({type:_0x49c1cd,subType:_0x54a848})=>_0x331604['type']==_0x49c1cd&&_0x331604['subType']==_0x54a848);if(_0x2ba769<0x0||_0x38368b<0x0)return!0x1;const _0xc14832=_0x1fb83a['getFirstRange'](),_0x46fc1e=_0x331604['getFirstRange']();if((0x0==_0x2ba769||0x1==_0x2ba769)&&0x2==_0x38368b&&_0xc14832['isIntersecting'](_0x46fc1e))return!0x0;if(0x2==_0x2ba769&&0x3==_0x38368b){const _0x1139ba=_0x5420c4['_findSuggestions'](_0xc14832,'insertion')['filter'](({suggestion:_0x13b25b,meta:_0x23c981})=>_0x23c981['isOwn']&&'convertInlineImageToBlock'==_0x13b25b['subType']);if(_0x1139ba['length']>0x1&&_0x46fc1e['end']['isEqual'](_0xc14832['start']))return!0x0;if(0x1==_0x1139ba['length']&&(_0xc14832['start']['isEqual'](_0x46fc1e['end'])||_0xc14832['end']['isEqual'](_0x46fc1e['start'])))return!0x0;}if(0x3==_0x2ba769&&0x3==_0x38368b&&_0xc14832['start']['isBefore'](_0x46fc1e['start'])){const _0x3f0c27=_0xc14832['end']['nodeAfter'],_0x34d5c7=_0x46fc1e['start']['nodeBefore'];return _0x44fbb2['isBlockImage'](_0x3f0c27)&&_0x3f0c27===_0x34d5c7;}return!0x1;}_0x3e1a71['model']['document']['registerPostFixer'](()=>{let _0xcc34ff=!0x1;const _0x31f95c=Array['from'](_0x3e1a71['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3f776e,data:_0x23a250}of _0x31f95c){const {group:_0x3a5d54,type:_0x1b3054,subType:_0xf8abea,id:_0x12fdeb}=_0x5420c4['_splitMarkerName'](_0x3f776e);if('suggestion'==_0x3a5d54&&_0x5420c4['hasSuggestion'](_0x12fdeb)){if('formatBlock'==_0x1b3054&&('imageStylePreApply'==_0xf8abea||'imageStylePostApply'==_0xf8abea)){const _0x1808c3=_0x5420c4['getSuggestion'](_0x12fdeb);if(_0x23a250['newRange']){const _0x4c3b60=_0x1808c3['getFirstRange']()['getContainedElement']();if(_0x44fbb2['isBlockImage'](_0x4c3b60))continue;_0x5420c4['discardSuggestion'](_0x1808c3),_0xcc34ff=!0x0;}}if('insertion'==_0x1b3054&&'imageCaption'==_0xf8abea&&!_0x23a250['newRange']){const _0x522769=_0x5420c4['getSuggestion'](_0x12fdeb);_0x522769['next']&&_0x522769['next']['isInContent']&&(_0x5420c4['discardSuggestion'](_0x522769['next']),_0xcc34ff=!0x0);}}}return _0xcc34ff;}),this['_registerLegacyDescription'](_0x30bf0d);}['_registerLegacyDescription'](_0x353bc2){const _0x17e7ee=this['editor'],_0x3cd930=_0x17e7ee['locale'];_0x17e7ee['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x555318=>{if('formatBlock'!=_0x555318['type']&&'formatInline'!=_0x555318['type'])return;const {data:_0x52a010}=_0x555318;if(!_0x52a010||'imageStyle'!=_0x52a010['commandName'])return;const _0x413d8d=_0x52a010['commandParams'][0x0]['value'];return _0x159552('side'===_0x413d8d?o(_0x3cd930,'FORMAT_SIDE_IMAGE'):_0x353bc2[_0x413d8d]||_0x413d8d);function _0x159552(_0x5f789e){return{'type':'format','content':o(_0x3cd930,'*Format:*\x20%0',_0x5f789e)};}});}}class lt extends _0x2e45f0{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x1fb539){super(_0x1fb539),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x4460ee=this['editor'],_0x47f978=_0x4460ee['commands']['get']('importWord'),_0x472fb3=_0x4460ee['commands']['get']('trackChanges');_0x47f978&&(_0x47f978['on']('execute',(_0x210ee9,[,_0x1636ae])=>{this['_trackChangesValueDuringImport']=_0x472fb3['value'],_0x1636ae['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x47f978,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x47f978,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x472fb3['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4460ee['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x58bae6,_0x3c91ea){const {suggestions:_0x34a7d3}=_0x3c91ea,_0x2dad76=this['editor']['commands']['get']('trackChanges'),_0x3b3070=_0x2dad76['value'];this['_trackChangesValueDuringImport']!==_0x3b3070&&(_0x2dad76['execute'](),this['_trackChangesExecuted']=!0x0),_0x34a7d3&&_0x34a7d3['forEach'](({id:_0x9eaa1b,type:_0x56916a,author:_0x2fc3be,created_at:_0x348939})=>{const _0x899fec={'id':_0x9eaa1b,'type':_0x56916a,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x2fc3be,'createdAt':_0x348939?new Date(_0x348939):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x899fec);});}}class gt extends _0x2e45f0{['afterInit'](){const _0x1e75eb=this['editor'],_0x11c82a=_0x1e75eb['plugins']['get']('TrackChangesEditing');if(_0x1e75eb['plugins']['has']('IndentEditing')&&(_0x11c82a['enableCommand']('indent'),_0x11c82a['enableCommand']('outdent')),_0x1e75eb['plugins']['has']('IndentBlock')){for(const _0x3b845c of['indentBlock','outdentBlock'])_0x11c82a['enableDefaultAttributesIntegration'](_0x3b845c);if(_0x1e75eb['plugins']['has']('ListEditing')){for(const _0x332a61 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x11c82a['enableDefaultAttributesIntegration'](_0x332a61);}}const _0x2b645a=_0x1e75eb['locale'];_0x11c82a['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x2b645a,'FORMAT_INDENT')),_0x11c82a['descriptionFactory']['registerAttributeLabel']('blockIndentList',o(_0x2b645a,'FORMAT_INDENT')),_0x11c82a['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',o(_0x2b645a,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2808d4=this['editor'],_0x4dae8f=_0x2808d4['locale'],_0x1324f1=_0x2808d4['plugins']['get']('TrackChangesEditing');_0x1324f1['descriptionFactory']['registerDescriptionCallback'](_0xf0c1c=>{if('formatBlock'!=_0xf0c1c['type'])return;const {data:_0x449e02}=_0xf0c1c;if(!_0x449e02)return;if('indentBlock'!=_0x449e02['commandName']&&'outdentBlock'!=_0x449e02['commandName'])return;const _0x62d75b=_0xf0c1c['getItems']()[0x0],_0x5d42cc=_0x1324f1['descriptionFactory']['getItemLabel'](_0x62d75b);return'indentBlock'==_0x449e02['commandName']?{'type':'format','content':o(_0x4dae8f,'*Indent:*\x20%0',_0x5d42cc)}:'outdentBlock'==_0x449e02['commandName']?{'type':'format','content':o(_0x4dae8f,'*Outdent:*\x20%0',_0x5d42cc)}:void 0x0;});}}class mt extends _0x2e45f0{static get['requires'](){return[_0x45dfb2];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class dt extends _0x2e45f0{['afterInit'](){const _0x172b11=this['editor'];if(!_0x172b11['plugins']['has']('LinkEditing'))return;const _0x486af2=_0x172b11['plugins']['get']('TrackChangesEditing'),_0x10f671=_0x172b11['commands']['get']('link');_0x486af2['enableDefaultAttributesIntegration']('link'),_0x486af2['enableDefaultAttributesIntegration']('unlink');for(const _0x3313d4 of _0x10f671['manualDecorators'])_0x486af2['descriptionFactory']['registerAttributeLabel'](_0x3313d4['id'],'link\x20('+_0x3313d4['label']['toLowerCase']()+')');_0x486af2['descriptionFactory']['registerDescriptionCallback'](_0x34e95c=>{if('attribute'!=_0x34e95c['type'])return;const {data:_0x3deb0e}=_0x34e95c;if(!_0x3deb0e||'linkHref'!=_0x3deb0e['key'])return;const _0x315b57=_0x3deb0e['newValue'],_0x1df29b=_0x172b11['locale'];return{'type':'format','content':null==_0x315b57?o(_0x1df29b,'*Remove\x20link*'):o(_0x1df29b,'*Set\x20link:*\x20%0','\x22'+_0x315b57+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ea2c1=this['editor'],_0xa4d138=_0x4ea2c1['locale'];_0x4ea2c1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x149705=>{if('formatInline'!=_0x149705['type'])return;const {data:_0x3fe64c}=_0x149705;if(_0x3fe64c){if('link'==_0x3fe64c['commandName']){const _0x1e85ae=_0x3fe64c['commandParams'][0x0];return{'type':'format','content':o(_0xa4d138,'*Set\x20link:*\x20%0','\x22'+_0x1e85ae+'\x22')};}return'unlink'==_0x3fe64c['commandName']?{'type':'format','content':o(_0xa4d138,'*Remove\x20link*')}:void 0x0;}});}}class pt extends _0x2e45f0{['afterInit'](){const _0x5f2e25=this['editor'],_0x1ac1d9=_0x5f2e25['locale'];if(!_0x5f2e25['plugins']['has']('LegacyListEditing'))return;const _0x5a7a5e=_0x5f2e25['plugins']['get']('TrackChangesEditing'),_0x2af295=_0x5f2e25['plugins']['has']('LegacyTodoListEditing');function _0x5500f8(_0x98a2a){return()=>{const _0x5606cf=_0x5f2e25['model']['document']['selection'],_0xc06d8e=_0x5f2e25['commands']['get'](_0x98a2a);if(_0xc06d8e['value'])return void _0x5f2e25['execute']('paragraph',{});const _0xcbb31f=_0x98a2a['slice'](0x0,-0x4),_0x970a1f=function(_0x349409,_0x43c0f7,_0x45c2ba){let _0x49674f=Array['from'](_0x349409)['filter'](_0xbd9d2b=>function(_0x5ed4b3,_0x318351){return _0x318351['checkChild'](_0x5ed4b3['parent'],'listItem')&&!_0x318351['isObject'](_0x5ed4b3);}(_0xbd9d2b,_0x45c2ba));_0x49674f=_0x49674f['filter'](_0x58c001=>!_0x58c001['is']('element','listItem')||_0x58c001['getAttribute']('listType')!=_0x43c0f7);const _0x377ccc=new Set();for(const _0x6f9686 of _0x49674f)_0x6f9686['is']('element','listItem')?_0x377ccc['add'](Le(_0x6f9686)):_0x377ccc['add'](_0x6f9686);return Array['from'](_0x377ccc);}(_0x5606cf['getSelectedBlocks'](),_0xcbb31f,_0x5f2e25['model']['schema']);_0x5f2e25['model']['change'](()=>{for(const _0x2d9db5 of _0x970a1f)_0x5a7a5e['markBlockFormat'](_0x2d9db5,{'commandName':_0x98a2a,'commandParams':[{'forceValue':!_0xc06d8e['value']}],'formatGroupId':'blockName'},Ee(_0x2d9db5));});};}function _0x3c4e4b(_0x14caf5){return()=>{const _0x325fb9=function(_0x2474c3){let _0x501c29=Array['from'](_0x2474c3);const _0x4b68b5=_0x501c29['findIndex'](_0x5e14f8=>'listItem'!=_0x5e14f8['name']);return _0x4b68b5>-0x1&&(_0x501c29=_0x501c29['slice'](0x0,_0x4b68b5)),_0x501c29;}(_0x5f2e25['model']['document']['selection']['getSelectedBlocks']()),_0x55ed9a=_0x5f2e25['model']['createRange'](_0x5f2e25['model']['createPositionAt'](_0x325fb9[0x0],'before'),_0x5f2e25['model']['createPositionAt'](_0x325fb9[_0x325fb9['length']-0x1],'end'));_0x5f2e25['model']['change'](()=>{_0x5a7a5e['markBlockFormat'](_0x55ed9a,{'commandName':_0x14caf5,'commandParams':[],'formatGroupId':'listIndent'},function(_0x1da409){const _0x37596d=new Set();for(const _0x1b6d1b of _0x1da409){let _0x550243=_0x1b6d1b['nextSibling'];for(;_0x550243&&_0x550243['getAttribute']('listIndent')>_0x1b6d1b['getAttribute']('listIndent');)_0x37596d['add'](_0x550243),_0x550243=_0x550243['nextSibling'];}return Array['from'](_0x37596d);}(_0x325fb9));});};}_0x5a7a5e['enableCommand']('numberedList',_0x5500f8('numberedList')),_0x5a7a5e['enableCommand']('bulletedList',_0x5500f8('bulletedList')),_0x2af295&&_0x5a7a5e['enableCommand']('todoList',_0x5500f8('todoList')),_0x5a7a5e['enableCommand']('indentList',_0x3c4e4b('indentList')),_0x5a7a5e['enableCommand']('outdentList',_0x3c4e4b('outdentList')),_0x2af295&&_0x5a7a5e['enableCommand']('checkTodoList',()=>{const _0x37c425=_0x5f2e25['commands']['get']('checkTodoList'),_0x380489=Array['from'](_0x37c425['_selectedElements']);_0x380489['filter'](_0xcd0d1=>_0xcd0d1['getAttribute']('todoListChecked')!=_0x37c425['value']),_0x5f2e25['model']['change'](()=>{for(const _0x50100 of _0x380489)_0x5a7a5e['markBlockFormat'](_0x50100,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x37c425['value']}]});});}),_0x5a7a5e['descriptionFactory']['registerElementLabel']('listItem',_0x40e352=>o(_0x1ac1d9,'ELEMENT_LIST_ITEM',_0x40e352)),_0x5a7a5e['descriptionFactory']['registerDescriptionCallback'](_0x9cb01b=>{if('formatBlock'!=_0x9cb01b['type']&&'formatInline'!=_0x9cb01b['type'])return;const {data:_0x2d2110}=_0x9cb01b;if(_0x2d2110){if('numberedList'==_0x2d2110['commandName']||'bulletedList'==_0x2d2110['commandName']||'todoList'==_0x2d2110['commandName'])switch(_0x2d2110['commandName']['replace']('List','')){case'bulleted':return _0x58bbe3(o(_0x1ac1d9,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x58bbe3(o(_0x1ac1d9,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x58bbe3(o(_0x1ac1d9,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2d2110['commandName'])return{'type':'format','content':o(_0x1ac1d9,'*Indent:*\x20%0',o(_0x1ac1d9,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2d2110['commandName'])return{'type':'format','content':o(_0x1ac1d9,'*Outdent:*\x20%0',o(_0x1ac1d9,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2d2110['commandName'])return _0x2d2110['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1ac1d9,'*Check\x20item*')}:{'type':'format','content':o(_0x1ac1d9,'*Uncheck\x20item*')};}function _0x58bbe3(_0x74b138){return{'type':'format','content':o(_0x1ac1d9,'*Change\x20to:*\x20%0',_0x74b138)};}});}}function Le(_0x42c316){const _0x4bcf3d=_0x42c316['getAttribute']('listIndent');if(0x0==_0x4bcf3d)return _0x42c316;let _0x42873f=_0x42c316;for(;_0x42c316['previousSibling']&&_0x42c316['previousSibling']['is']('element','listItem');){const _0x26edc4=_0x42c316['previousSibling']['getAttribute']('listIndent');if(_0x26edc4==_0x4bcf3d)_0x42873f=_0x42c316['previousSibling'];else{if(_0x26edc4<_0x4bcf3d)break;}_0x42c316=_0x42c316['previousSibling'];}return _0x42873f;}function Ee(_0x2502ac){const _0x82b12f=[];if(_0x2502ac['is']('element','listItem')&&_0x2502ac['getAttribute']('listIndent')>0x0){let _0x4e1b04=_0x2502ac['nextSibling'];for(;_0x4e1b04&&'listItem'==_0x4e1b04['name']&&_0x4e1b04['getAttribute']('listIndent')==_0x2502ac['getAttribute']('listIndent');)_0x82b12f['push'](_0x4e1b04),_0x4e1b04=_0x4e1b04['nextSibling'];}return _0x82b12f;}class wt extends _0x2e45f0{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x4a83fa=this['editor']['config']['get']('list.properties'),_0x5c9421=this['editor']['plugins']['get']('TrackChangesEditing');_0x4a83fa['styles']&&_0x5c9421['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x4a83fa['reversed']&&_0x5c9421['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x4a83fa['startIndex']&&_0x5c9421['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x5c9421['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x3a9554,_0x23bf56={}){const _0x24e850=this['editor']['plugins']['get']('TrackChangesEditing'),_0x12ba8a=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x24e850['markMultiRangeBlockFormat'](_0x12ba8a,{'commandName':'listStyle','commandParams':[{'type':_0x23bf56['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x23dd4f,_0x2ad991={}){const _0x2f7641=this['editor']['plugins']['get']('TrackChangesEditing'),_0x11372c=this['_getSuggestionBlocks'](_0x1afb97=>_0x1afb97['is']('element','listItem')&&'numbered'===_0x1afb97['getAttribute']('listType'));if(_0x11372c['length']<0x1)return;const _0x305eab=_0x11372c['map'](_0xcd9c35=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xcd9c35,'before'),this['editor']['model']['createPositionAt'](_0xcd9c35,0x0)));this['editor']['model']['change'](()=>{_0x2f7641['markMultiRangeBlockFormat'](_0x305eab,{'commandName':'listReversed','commandParams':[{'reversed':_0x2ad991['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x28e2f9,_0x23a4c1={}){const _0x1b9dd2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x52c687=this['_getSuggestionBlocks'](_0x2ecc61=>_0x2ecc61['is']('element','listItem')&&'numbered'===_0x2ecc61['getAttribute']('listType'));if(_0x52c687['length']<0x1)return;const _0x22930d=_0x52c687['map'](_0x386809=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x386809,'before'),this['editor']['model']['createPositionAt'](_0x386809,0x0)));this['editor']['model']['change'](()=>{_0x1b9dd2['markMultiRangeBlockFormat'](_0x22930d,{'commandName':'listStart','commandParams':[{'startIndex':_0x23a4c1['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x3fc8f8){if('formatBlock'!=_0x3fc8f8['type']&&'formatInline'!=_0x3fc8f8['type'])return;const _0x1d87f6=this['editor']['locale'],{data:_0x19380a}=_0x3fc8f8;if(!_0x19380a)return;let _0x578f29,_0xf35af3;switch(_0x19380a['commandName']){case'listStyle':_0x578f29='*Change\x20to:*\x20%0',_0xf35af3={'type':'format','content':o(_0x1d87f6,_0x578f29,o(_0x1d87f6,this['_getTranslationKeyForListStyle'](_0x19380a['commandParams'][0x0]['type'])))};break;case'listReversed':_0x578f29=_0x19380a['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xf35af3={'type':'format','content':o(_0x1d87f6,_0x578f29)};break;case'listStart':_0x578f29='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xf35af3={'type':'format','content':o(_0x1d87f6,_0x578f29,_0x19380a['commandParams'][0x0]['startIndex'])};}return _0xf35af3;}['_getSuggestionBlocksForListStyle'](){const _0x58961e=this['editor']['plugins']['get']('LegacyListUtils');let _0x493eb9=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x493eb9[0x0]?.['is']('element','listItem')&&_0x493eb9['unshift'](..._0x58961e['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x493eb9[_0x493eb9['length']-0x1]?.['is']('element','listItem')&&_0x493eb9['push'](..._0x58961e['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x493eb9=[...new Set(_0x493eb9)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x493eb9=_0x493eb9['filter'](_0xcadb71=>_0xcadb71['is']('element','listItem'))),_0x493eb9;}['_getSuggestionBlocks'](_0x10fc68){const _0x94a44a=this['editor']['plugins']['get']('LegacyListUtils');let _0x64dd23=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x10fc68)['map'](_0x46260a=>{const _0x54d73c=this['editor']['model']['createPositionAt'](_0x46260a,0x0);return[..._0x94a44a['getSiblingNodes'](_0x54d73c,'backward'),..._0x94a44a['getSiblingNodes'](_0x54d73c,'forward')];})['flat']();return _0x64dd23=[...new Set(_0x64dd23)],_0x64dd23;}['_getTranslationKeyForListStyle'](_0x260d4f){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x260d4f)||'default')['toUpperCase']()+'_LIST_'+_0x260d4f['toUpperCase']()['replace'](/-/g,'_');}}class kt extends _0x2e45f0{['afterInit'](){const _0x1c5774=this['editor'];if(!_0x1c5774['plugins']['has']('MediaEmbedEditing'))return;const _0x116268=_0x1c5774['plugins']['get']('TrackChangesEditing'),_0x581b03=_0x1c5774['locale'];_0x116268['enableCommand']('mediaEmbed'),_0x116268['descriptionFactory']['registerElementLabel']('media',_0x2c454d=>o(_0x581b03,'ELEMENT_MEDIA',_0x2c454d));}}class bt extends _0x2e45f0{['afterInit'](){const _0x2a0f7a=this['editor'];_0x2a0f7a['plugins']['has']('MentionEditing')&&_0x2a0f7a['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class yt extends _0x2e45f0{['afterInit'](){const _0x35760c=this['editor'];if(!_0x35760c['plugins']['has']('MergeFieldsEditing'))return;const _0x3a6496=_0x35760c['plugins']['get']('TrackChangesEditing'),_0x5352ed=_0x35760c['locale'];_0x3a6496['enableCommand']('insertMergeField'),_0x3a6496['enableCommand']('insertMergeFieldBlock'),_0x3a6496['enableCommand']('insertMergeFieldImage'),_0x3a6496['descriptionFactory']['registerElementLabel']('mergeField',_0x5ef5b6=>o(_0x5352ed,'ELEMENT_MERGE_FIELD',_0x5ef5b6)),_0x3a6496['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x5a965f=>o(_0x5352ed,'ELEMENT_MERGE_FIELD',_0x5a965f)),_0x3a6496['descriptionFactory']['registerDescriptionCallback'](_0xc41e49=>{if('insertion'!=_0xc41e49['type']&&'deletion'!=_0xc41e49['type'])return;const _0x1b9096=_0xc41e49['getContainedElement']();if(null==_0x1b9096)return;const _0x3c9696=_0x35760c['plugins']['get']('MergeFieldsEditing');let _0x4c6fc9;switch(_0x3c9696['getMergeFieldType'](_0x1b9096)){case null:return;case'image':{const _0x2222a2=_0x3c9696['unwrapAffixes'](_0x1b9096['getAttribute']('src'));_0x4c6fc9=_0x3c9696['getLabel'](_0x2222a2)||_0x2222a2;break;}default:{const _0xe40484=_0x1b9096['getAttribute']('id');_0x4c6fc9=_0x3c9696['getLabel'](_0xe40484)||_0xe40484;break;}}return'insertion'==_0xc41e49['type']?{'type':'insertion','content':o(_0x5352ed,'*Insert:*\x20%0','\x22'+_0x4c6fc9+'\x22\x20'+o(_0x5352ed,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x5352ed,'*Remove:*\x20%0','\x22'+_0x4c6fc9+'\x22\x20'+o(_0x5352ed,'ELEMENT_MERGE_FIELD'))};});}}class jt extends _0x2e45f0{['afterInit'](){const _0x240c69=this['editor'],_0xabeb70=_0x240c69['plugins']['get']('TrackChangesEditing');_0x240c69['plugins']['has']('MultiLevelList')&&(_0xabeb70['enableDefaultAttributesIntegration']('multiLevelList'),_0xabeb70['descriptionFactory']['registerDescriptionCallback'](_0x3d11a2=>this['handleDescriptions'](_0x3d11a2)));}['handleDescriptions'](_0x2e2a23){const _0x190565=this['editor']['locale'],{data:_0x559347}=_0x2e2a23,_0x3eaa4e={'type':'format','content':''};if(_0x559347&&'listMarkerStyle'==_0x559347['key']){if(!_0x559347['oldValue'])return{'type':'format','content':o(_0x190565,'*Set\x20format:*\x20%0',o(_0x190565,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x559347['newValue']+')'};if(!_0x559347['newValue']){let _0x413cef=_0x2e2a23['head'];for(;_0x413cef;){if(_0x413cef['data']&&'listType'==_0x413cef['data']['key']&&_0x413cef['data']['newValue'])return _0x3eaa4e;_0x413cef=_0x413cef['next'];}return{'type':'format','content':o(_0x190565,'*Remove\x20format:*\x20%0',o(_0x190565,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x559347['oldValue']+')'};}}}}class St extends _0x2e45f0{['afterInit'](){const _0x1fc712=this['editor'];if(!_0x1fc712['plugins']['has']('PageBreakEditing'))return;_0x1fc712['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x2ffd8a=_0x1fc712['plugins']['get']('TrackChangesEditing'),_0x56896e=_0x1fc712['locale'];_0x2ffd8a['descriptionFactory']['registerElementLabel']('pageBreak',_0x1575d7=>o(_0x56896e,'ELEMENT_PAGE_BREAK',_0x1575d7));}}class It extends _0x2e45f0{['afterInit'](){const _0x19ae1f=this['editor'];if(!_0x19ae1f['plugins']['has']('Paragraph'))return;const _0x1d8c77=_0x19ae1f['locale'],_0x460bf4=_0x19ae1f['plugins']['get']('TrackChangesEditing');_0x460bf4['descriptionFactory']['registerElementLabel']('paragraph',_0x3d56d5=>o(_0x1d8c77,'ELEMENT_PARAGRAPH',_0x3d56d5)),_0x460bf4['enableDefaultAttributesIntegration']('paragraph'),_0x460bf4['enableCommand']('insertParagraph');const _0x47ad1d=_0x460bf4['descriptionFactory'];_0x47ad1d['registerDescriptionCallback'](_0x53b1f2=>{if('insertion'!==_0x53b1f2['type'])return;const {start:_0x34fb65,end:_0x36ef2c}=_0x53b1f2['getFirstRange']();if(!_0x34fb65['isTouching'](_0x36ef2c)||!_0x34fb65['nodeAfter'])return;const _0x4cec80=_0x19ae1f['model']['schema'],_0x2633dd=_0x34fb65['nodeAfter'];return _0x4cec80['isBlock'](_0x2633dd)&&!_0x4cec80['isLimit'](_0x2633dd)&&_0x4cec80['checkChild'](_0x2633dd,'$text')?{'type':'insertion','content':o(_0x1d8c77,'*Insert:*\x20%0',_0x47ad1d['getItemLabel'](_0x2633dd,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2a0b01=this['editor'],_0xcd5b4c=_0x2a0b01['locale'];_0x2a0b01['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x530bf9=>{if('formatBlock'!=_0x530bf9['type'])return;const {data:_0xb0b885}=_0x530bf9;return _0xb0b885&&'paragraph'==_0xb0b885['commandName']?{'type':'format','content':o(_0xcd5b4c,'*Change\x20to:*\x20%0',o(_0xcd5b4c,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class At extends _0x2e45f0{['afterInit'](){const _0x1f1381=this['editor'];_0x1f1381['commands']['get']('replaceSource')&&_0x1f1381['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class _t extends _0x2e45f0{['afterInit'](){const _0x1b54b5=this['editor'];if(!_0x1b54b5['plugins']['has']('RemoveFormatEditing'))return;_0x1b54b5['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x58c9d2=this['editor'];_0x58c9d2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ec8e4=>{if('formatBlock'!=_0x2ec8e4['type']&&'formatInline'!=_0x2ec8e4['type'])return;const {data:_0x191d2b}=_0x2ec8e4;return _0x191d2b&&'removeFormat'==_0x191d2b['commandName']?{'type':'format','content':o(_0x58c9d2['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class Ct extends _0x2e45f0{['afterInit'](){const _0x475948=this['editor'];if(!_0x475948['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x98983b=_0x475948['plugins']['get']('TrackChangesEditing');_0x98983b['enableCommand']('goToPreviousRestrictedEditingException'),_0x98983b['enableCommand']('goToNextRestrictedEditingException');const _0x3e2f81=_0x475948['plugins']['get']('RestrictedEditingModeEditing');_0x3e2f81['enableCommand']('trackChanges'),_0x3e2f81['enableCommand']('acceptSuggestion'),_0x3e2f81['enableCommand']('discardSuggestion'),_0x3e2f81['enableCommand']('acceptAllSuggestions'),_0x3e2f81['enableCommand']('discardAllSuggestions'),_0x3e2f81['enableCommand']('acceptSelectedSuggestions'),_0x3e2f81['enableCommand']('discardSelectedSuggestions');}}class Nt extends _0x2e45f0{['afterInit'](){const _0x5db6e0=this['editor'];if(!_0x5db6e0['plugins']['has']('ShiftEnter'))return;const _0x2ed898=_0x5db6e0['plugins']['get']('TrackChangesEditing');_0x2ed898['enableCommand']('shiftEnter'),_0x2ed898['descriptionFactory']['registerElementLabel']('softBreak',_0x1cb90d=>o(_0x5db6e0['locale'],'ELEMENT_LINE_BREAK',_0x1cb90d));}}function an(_0x4318f9,_0x2996a0,_0xec2a7e){const _0x35e651=[];for(const _0x73c2ac of _0x2996a0['getItems']())_0x73c2ac['hasAttribute'](_0x4318f9)&&_0x35e651['push'](_0xec2a7e['createRangeOn'](_0x73c2ac));return _0x35e651;}class $t extends _0x2e45f0{['afterInit'](){const _0x381e94=this['editor'],_0xb9819c=_0x381e94['plugins']['get']('TrackChangesEditing');_0x381e94['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0xb9819c['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x3ada55=this['editor'],_0x3b48e4=_0x3ada55['model'],_0x1aa307=_0x3ada55['locale'],_0x139a0d=_0x3ada55['plugins']['get']('TrackChangesEditing'),_0x1d5b7f='restrictedEditingException',_0x9f3325=_0x3ada55['commands']['get'](_0x1d5b7f);_0x139a0d['enableCommand'](_0x1d5b7f,(_0x35574e,_0x2fd182={})=>{const _0x2e384d=_0x3b48e4['document']['selection'];if(_0x2e384d['isCollapsed'])return void _0x35574e(_0x2fd182);const _0x4c8944=void 0x0!==_0x2fd182['forceValue']?_0x2fd182['forceValue']:!_0x9f3325['value'];_0x3b48e4['change'](()=>{const _0x51a641=Array['from'](_0x2e384d['getRanges']());for(const _0xeed7d8 of _0x51a641){const _0x318db2=_0x4c8944?[_0xeed7d8]:an(_0x1d5b7f,_0xeed7d8,_0x3b48e4);for(const _0xa526ea of _0x318db2)_0x139a0d['markInlineFormat'](_0xa526ea,{'commandName':_0x1d5b7f,'commandParams':[{'forceValue':_0x4c8944}]});}});}),_0x139a0d['descriptionFactory']['registerDescriptionCallback'](_0x252fe6=>{if('formatBlock'!=_0x252fe6['type']&&'formatInline'!=_0x252fe6['type'])return;const {data:_0xfd8fe}=_0x252fe6;return _0xfd8fe&&_0xfd8fe['commandName']==_0x1d5b7f?_0xfd8fe['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1aa307,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x1aa307,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x105d43=this['editor'],_0x18cac1=_0x105d43['locale'],_0x5ad526=_0x105d43['plugins']['get']('TrackChangesEditing'),_0x53304c='restrictedEditingExceptionBlock',_0x429fe5=this['editor']['commands']['get'](_0x53304c);_0x5ad526['enableCommand'](_0x53304c,(_0x32fb11,_0x53c3d2={})=>{const _0x47e8a4=this['editor']['model']['document']['selection'],_0x5a57c1=_0x53c3d2&&void 0x0!==_0x53c3d2['forceValue']?_0x53c3d2['forceValue']:!_0x429fe5['value'];let _0x4ee4c0=[];if(_0x5a57c1){const _0x3b4d90=Array['from'](_0x47e8a4['getSelectedBlocks']())['filter'](_0x42a7c7=>function(_0xea893a){return!!_0xea893a['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x42a7c7)||function(_0x4dd0e2,_0x45e4fc){const _0xec8fdc=_0x45e4fc['createContext'](_0x4dd0e2['parent']);if(!_0x45e4fc['checkChild'](_0xec8fdc,'restrictedEditingException'))return!0x1;if(!_0x45e4fc['checkChild'](_0xec8fdc['push']('restrictedEditingException'),_0x4dd0e2))return!0x1;return!0x0;}(_0x42a7c7,this['editor']['model']['schema']));_0x4ee4c0=to(_0x3b4d90,_0x105d43['model']);}else{const _0x494811=Array['from'](_0x47e8a4['getSelectedBlocks']())['map'](_0x4d52b1=>function(_0x373e4c){let _0x1b3956=_0x373e4c;for(;_0x1b3956['parent'];){if('restrictedEditingException'==_0x1b3956['parent']['name'])return _0x1b3956;_0x1b3956=_0x1b3956['parent'];}return null;}(_0x4d52b1))['filter'](_0x143e66=>!!_0x143e66);_0x4ee4c0=to(_0x494811,_0x105d43['model']);}_0x105d43['model']['change'](()=>{for(const _0x10f947 of _0x4ee4c0)_0x5ad526['markBlockFormat'](_0x10f947,{'commandName':_0x53304c,'commandParams':[{'forceValue':_0x5a57c1}]});});}),_0x5ad526['descriptionFactory']['registerDescriptionCallback'](_0x2cc59c=>{const {data:_0x81e6e}=_0x2cc59c;if(_0x81e6e&&_0x81e6e['commandName']==_0x53304c)return _0x81e6e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x18cac1,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x18cac1,'FORMAT_RESTRICTED_DISABLED')};});}}class vt extends _0x2e45f0{['afterInit'](){const _0x6aaa9a=this['editor'];if(!_0x6aaa9a['plugins']['has']('Style')||!_0x6aaa9a['plugins']['has']('DataSchema'))return;const _0x86c469=_0x6aaa9a['plugins']['get']('TrackChangesEditing'),_0x3682a0=_0x6aaa9a['locale'],_0x4f2070=_0x6aaa9a['config']['get']('style')||{},_0x40a2d1=_0x6aaa9a['plugins']['get']('GeneralHtmlSupport'),_0x7c6fbf=_0x6aaa9a['plugins']['get']('StyleUtils')['normalizeConfig'](_0x6aaa9a['plugins']['get']('DataSchema'),_0x4f2070['definitions']);_0x86c469['enableDefaultAttributesIntegration']('style');const _0xf76416=new Set();for(const _0x3b45d9 of _0x7c6fbf['block']){const _0x1b435e=_0x40a2d1['getGhsAttributeNameForElement'](_0x3b45d9['element']);_0xf76416['add'](_0x1b435e);}const _0x36bc31=new Set();for(const _0x5a22d4 of _0x7c6fbf['inline']){const _0x24869c=_0x40a2d1['getGhsAttributeNameForElement'](_0x5a22d4['element']);_0x36bc31['add'](_0x24869c);for(const _0x15d763 of _0x5a22d4['ghsAttributes'])_0x36bc31['add'](_0x15d763);}for(const _0x55de9c of _0xf76416)_0x86c469['descriptionFactory']['registerAttributeLabel'](_0x55de9c,o(_0x3682a0,'FORMAT_STYLE'));for(const _0x2f09ce of _0x36bc31)_0x86c469['descriptionFactory']['registerAttributeLabel'](_0x2f09ce,o(_0x3682a0,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x56a32d=this['editor'],_0x50373e=_0x56a32d['locale'];_0x56a32d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x45dc7e=>{if('formatBlock'!=_0x45dc7e['type']&&'formatInline'!=_0x45dc7e['type'])return;const {data:_0x54bcf1}=_0x45dc7e;return _0x54bcf1&&'style'===_0x54bcf1['commandName']?_0x54bcf1['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x50373e,'*Set\x20format:*\x20%0',_0x54bcf1['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x50373e,'*Remove\x20format:*\x20%0',_0x54bcf1['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Dt extends _0x2e45f0{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x32631d){super(_0x32631d),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x4b45ab=this['editor'],_0x4d9ccf=_0x4b45ab['model']['document']['selection'];if(!_0x4b45ab['plugins']['has']('TableEditing'))return;const _0x336d04=_0x4b45ab['locale'],_0x4b0ea7=_0x4b45ab['plugins']['get']('TrackChangesEditing'),_0x10fab8=_0x4b45ab['plugins']['get']('TableUtils');_0x4b0ea7['descriptionFactory']['registerElementLabel']('table',_0x503182=>o(_0x336d04,'ELEMENT_TABLE',_0x503182)),this['_setupColumnsRowsFixing'](),_0x4b0ea7['enableCommand']('insertTable'),_0x4b0ea7['enableCommand']('selectTableRow'),_0x4b0ea7['enableCommand']('selectTableColumn');for(const _0x5b0624 of['insertTableRowAbove','insertTableRowBelow']){const _0x35a5d2=_0x4b45ab['commands']['get'](_0x5b0624);_0x4b0ea7['enableCommand'](_0x5b0624,_0x5d2451=>{_0x4b45ab['model']['change'](_0x5403a0=>{_0x5d2451();const _0x1554b6='above'===_0x35a5d2['order'],_0x281262=_0x10fab8['getSelectionAffectedTableCells'](_0x4d9ccf),_0x2f0217=_0x10fab8['getRowIndexes'](_0x281262),_0x372e29=_0x1554b6?_0x2f0217['first']-0x1:_0x2f0217['last']+0x1,_0x169b5a=_0x281262[0x0]['findAncestor']('table'),_0x2f4e9b=_0x10fab8['createTableWalker'](_0x169b5a,{'startRow':_0x372e29,'endRow':_0x372e29}),_0x4ccc0d=Array['from'](_0x2f4e9b)['map'](_0x483c69=>_0x5403a0['createRangeOn'](_0x483c69['cell']));_0x4b0ea7['markMultiRangeInsertion'](_0x4ccc0d,'tableRow');});});}for(const _0x1ded2b of['insertTableColumnLeft','insertTableColumnRight']){const _0x29e6f3=_0x4b45ab['commands']['get'](_0x1ded2b);_0x4b0ea7['enableCommand'](_0x1ded2b,_0x1e65de=>{_0x4b45ab['model']['change'](_0x4563f5=>{_0x1e65de();const _0x144560='left'===_0x29e6f3['order'],_0x5eb5ae=_0x10fab8['getSelectionAffectedTableCells'](_0x4d9ccf),_0x43e46a=_0x10fab8['getColumnIndexes'](_0x5eb5ae),_0x411029=_0x144560?_0x43e46a['first']-0x1:_0x43e46a['last']+0x1,_0x186826=_0x5eb5ae[0x0]['findAncestor']('table'),_0x393a4b=_0x10fab8['createTableWalker'](_0x186826,{'startRow':0x0,'column':_0x411029,'includeAllSlots':!0x1}),_0x855b63=Array['from'](_0x393a4b)['map'](_0x1248d4=>_0x4563f5['createRangeOn'](_0x1248d4['cell']));_0x4b0ea7['markMultiRangeInsertion'](_0x855b63,'tableColumn');});});}for(const _0xe48304 of['removeTableRow','removeTableColumn']){const _0x3b91df=_0xe48304['substr'](0xb),_0xbebeb8=_0x3b91df['toLowerCase'](),_0x583032=_0xbebeb8['substr'](0x0,0x3)+'span',_0x48d966='table'+_0x3b91df,_0x4e0d50='min'+_0x3b91df,_0x30a889='max'+_0x3b91df;_0x4b0ea7['enableCommand'](_0xe48304,()=>{_0x4b45ab['model']['change'](_0x6ee7b2=>{const _0x2f4f6f=_0x10fab8['getSelectionAffectedTableCells'](_0x4d9ccf),_0x5f1de6=_0x2f4f6f[0x0]['findAncestor']('table');let _0x505804;if('removeTableRow'==_0xe48304){const _0x5c3d3a=_0x10fab8['getRowIndexes'](_0x2f4f6f);_0x505804={'startRow':_0x5c3d3a['first'],'endRow':_0x5c3d3a['last'],'includeAllSlots':!0x0};}else{const _0x149cbe=_0x10fab8['getColumnIndexes'](_0x2f4f6f);_0x505804={'startColumn':_0x149cbe['first'],'endColumn':_0x149cbe['last'],'includeAllSlots':!0x0};}const _0x3e22cb=_0x10fab8['createTableWalker'](_0x5f1de6,_0x505804),_0x1be6d1=Array['from'](_0x3e22cb)['map'](({cell:_0x2ea5c7})=>_0x2ea5c7),_0x5d5675=_e(_0x1be6d1['filter'](_0x25be35=>_0x25be35['hasAttribute'](_0x583032))),_0x18f5ce=_e(_0x1be6d1['filter'](_0x3994e9=>!_0x3994e9['hasAttribute'](_0x583032)))['map'](_0x38ed24=>_0x6ee7b2['createRangeOn'](_0x38ed24)),_0x1fe4fb=_0x4b0ea7['markMultiRangeDeletion'](_0x18f5ce,_0x48d966);if(_0x1fe4fb&&('tableRow'==_0x1fe4fb['subType']||'tableColumn'==_0x1fe4fb['subType'])){const _0x101434=this['_getSuggestionCoords'](_0x1fe4fb);for(const _0x3fac0d of _0x5d5675){const _0x391c5b=_0x6ee7b2['createRangeOn'](_0x3fac0d),_0x43ccdb=_0x10fab8['getCellLocation'](_0x3fac0d),_0x5e8113=_0x3fac0d['getAttribute'](_0x583032)-0x1,_0x149aff=_0x101434[_0x4e0d50],_0x3826af=_0x101434[_0x30a889];_0x149aff<=_0x43ccdb[_0xbebeb8]&&_0x43ccdb[_0xbebeb8]+_0x5e8113<=_0x3826af&&_0x1fe4fb['addRange'](_0x391c5b);}}});});}function _0x49b564(_0xe3422d){const _0x2233c1=Array['from'](_0x4d9ccf['getRanges']())['map'](_0x27ef2b=>_0x5a100f['fromRange'](_0x27ef2b));_0x4b45ab['model']['change'](_0x2c2839=>{const _0x563514=_0x2c2839['batch'];_0xe3422d=_0xe3422d['filter'](_0x12f7ee=>'$graveyard'!=_0x12f7ee['root']['rootName']),_0x2c2839['setSelection'](_0xe3422d),_0x4b45ab['commands']['get']('removeTableRow')['refresh'](),_0x4b45ab['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x4b45ab['model']['enqueueChange'](()=>{_0x4b45ab['model']['enqueueChange'](_0x563514,_0x47cdbd=>{const _0x4eb93b=_0x2233c1['filter'](_0x4b7352=>'$graveyard'!=_0x4b7352['root']['rootName']);_0x4eb93b['length']>0x0&&_0x47cdbd['setSelection'](_0x4eb93b);for(const _0xe0e824 of _0x2233c1)_0xe0e824['detach']();});});});}function _0x3d6a47(_0x357526){_0x4b45ab['model']['change'](_0x14f660=>{const _0x4fc562=Array['from'](_0x4d9ccf['getRanges']())['map'](_0x54e34a=>_0x5a100f['fromRange'](_0x54e34a)),_0xca190b=[];for(const _0x486c7c of _0x357526)for(const _0x5a3e7b of _0x486c7c['getItems']({'shallow':!0x0}))_0xca190b['push'](_0x5a3e7b);for(const _0x58accb of _0xca190b)'$graveyard'!=_0x58accb['root']['rootName']&&(_0x14f660['setSelection'](_0x14f660['createPositionAt'](_0x58accb,0x0)),_0x4b45ab['commands']['get']('removeTableColumn')['refresh'](),_0x4b45ab['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x246598=_0x4fc562['filter'](_0x39fc63=>'$graveyard'!=_0x39fc63['root']['rootName']);_0x246598['length']>0x0&&_0x14f660['setSelection'](_0x246598);for(const _0x511bbe of _0x4fc562)_0x511bbe['detach']();});}function _0x539337(_0x14a221,_0x1c4792){return _0x1c4792['every'](_0x49ba34=>_0x14a221['some'](_0x17b588=>_0x17b588['end']['isEqual'](_0x49ba34['start'])||_0x49ba34['end']['isEqual'](_0x17b588['start'])));}function _0x32c876(_0x5743ee,_0x4d15de){return!_0x5743ee['some'](_0x5e0575=>_0x4d15de['some'](_0x54542b=>_0x5e0575['isIntersecting'](_0x54542b)))&&_0x5743ee['some'](_0x42680f=>_0x4d15de['some'](_0x1b9d0d=>_0x42680f['end']['isTouching'](_0x1b9d0d['start'])));}_0x4b0ea7['descriptionFactory']['registerDescriptionCallback'](_0x184d5b=>{if('insertion'!=_0x184d5b['type']&&'deletion'!=_0x184d5b['type'])return;const _0xfde2e6=_0x184d5b['getContainedElement']();if(null!=_0xfde2e6&&_0xfde2e6['is']('element','table')){if('insertion'==_0x184d5b['type']){const _0xbec4ba=_0x184d5b['getItems']()['filter'](_0x537ab7=>_0x537ab7['is']('$textProxy'))['map'](_0x34b2a5=>_0x34b2a5['data']);if(_0xbec4ba['length'])return{'type':'insertion','content':o(_0x336d04,'*Insert:*\x20%0',o(_0x336d04,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xbec4ba['join']('\x20')+'\x22'))};}if('deletion'==_0x184d5b['type']){const _0x40611a=_0x184d5b['getItems']()['filter'](_0x276464=>_0x276464['is']('$textProxy'))['map'](_0x4c5217=>_0x4c5217['data']);if(_0x40611a['length'])return{'type':'deletion','content':o(_0x336d04,'*Remove:*\x20%0',o(_0x336d04,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x40611a['join']('\x20')+'\x22'))};}}}),_0x4b0ea7['descriptionFactory']['registerDescriptionCallback'](_0xe586a5=>{if('tableRow'==_0xe586a5['subType']){const _0x567476=_0xe586a5['getItems']()['filter'](_0x2e237f=>_0x2e237f['is']('$textProxy'))['map'](_0x5815fb=>_0x5815fb['data']),_0x372ad5=this['_getSuggestionCoords'](_0xe586a5),_0xbca6c0=_0x372ad5['maxRow']-_0x372ad5['minRow']+0x1;if('insertion'==_0xe586a5['type'])return _0x567476['length']?{'type':'insertion','content':o(_0x336d04,'*Insert:*\x20%0',o(_0x336d04,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xbca6c0,'\x22'+_0x567476['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x336d04,'*Insert:*\x20%0',o(_0x336d04,'ELEMENT_TABLE_ROW',_0xbca6c0))};if('deletion'==_0xe586a5['type'])return _0x567476['length']?{'type':'deletion','content':o(_0x336d04,'*Remove:*\x20%0',o(_0x336d04,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xbca6c0,'\x22'+_0x567476['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x336d04,'*Remove:*\x20%0',o(_0x336d04,'ELEMENT_TABLE_ROW',_0xbca6c0))};}if('tableColumn'==_0xe586a5['subType']){const _0x377add=_0xe586a5['getItems']()['filter'](_0x37f595=>_0x37f595['is']('$textProxy'))['map'](_0x3027b1=>_0x3027b1['data']),_0x250eca=this['_getSuggestionCoords'](_0xe586a5),_0x1e1fed=_0x250eca['maxColumn']-_0x250eca['minColumn']+0x1;if('insertion'==_0xe586a5['type'])return _0x377add['length']?{'type':'insertion','content':o(_0x336d04,'*Insert:*\x20%0',o(_0x336d04,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1e1fed,'\x22'+_0x377add['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x336d04,'*Insert:*\x20%0',o(_0x336d04,'ELEMENT_TABLE_COLUMN',_0x1e1fed))};if('deletion'==_0xe586a5['type'])return _0x377add['length']?{'type':'deletion','content':o(_0x336d04,'*Remove:*\x20%0',o(_0x336d04,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1e1fed,'\x22'+_0x377add['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x336d04,'*Remove:*\x20%0',o(_0x336d04,'ELEMENT_TABLE_COLUMN',_0x1e1fed))};}}),_0x4b0ea7['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x49b564),_0x4b0ea7['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x49b564),_0x4b0ea7['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x3d6a47),_0x4b0ea7['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x3d6a47),_0x4b0ea7['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x539337),_0x4b0ea7['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x539337),_0x4b0ea7['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x32c876),_0x4b0ea7['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x32c876);}['_acceptFormatSuggestionCallbackFactory'](){const _0xaffa04=this['editor'],_0x1012de=_0xaffa04['model']['document']['selection'];return(_0x2bee3e,_0x344a1e)=>{_0xaffa04['model']['change'](_0x551565=>{const {commandName:_0x442ce5,commandParams:_0x3338b3}=_0x344a1e;let _0x757236=_0x2bee3e[0x0]['end']['nodeBefore'];_0x3338b3&&_0x3338b3[0x0]&&!0x1===_0x3338b3[0x0]['forceValue']&&(_0x757236=_0x2bee3e[0x0]['start']['nodeAfter']);const _0x3d6e53=_0x551565['createRangeIn'](_0x757236);if('$graveyard'==_0x3d6e53['root']['rootName'])return;const _0x5133bf=Array['from'](_0x1012de['getRanges']())['map'](_0x5aa72d=>_0x5a100f['fromRange'](_0x5aa72d));_0x551565['setSelection'](_0x3d6e53),_0xaffa04['commands']['get'](_0x442ce5)['refresh'](),_0x3338b3['push']({'forceDefaultExecution':!0x0}),_0xaffa04['execute'](_0x442ce5,..._0x3338b3);const _0x133a93=_0x5133bf['filter'](_0x446ac4=>'$graveyard'!=_0x446ac4['root']['rootName']);_0x133a93['length']>0x0&&_0x551565['setSelection'](_0x133a93);for(const _0x5cdb15 of _0x5133bf)_0x5cdb15['detach']();});};}['_getCoordsForCells'](_0xa0e8ef){const _0x977e6e=this['editor']['plugins']['get']('TableUtils');let _0x1cac7d=Number['MAX_SAFE_INTEGER'],_0x3a9d67=Number['MIN_SAFE_INTEGER'],_0x37078e=Number['MAX_SAFE_INTEGER'],_0x81c273=Number['MIN_SAFE_INTEGER'];for(const _0x567c9f of _0xa0e8ef){if('$graveyard'==_0x567c9f['root']['rootName'])continue;const {row:_0x1083b6,column:_0x44957e}=_0x977e6e['getCellLocation'](_0x567c9f),_0x2545d6=_0x567c9f['hasAttribute']('rowspan')?_0x567c9f['getAttribute']('rowspan')-0x1:0x0,_0x72322b=_0x567c9f['hasAttribute']('colspan')?_0x567c9f['getAttribute']('colspan')-0x1:0x0;_0x1cac7d=_0x1083b6<_0x1cac7d?_0x1083b6:_0x1cac7d,_0x3a9d67=_0x1083b6+_0x2545d6>_0x3a9d67?_0x1083b6+_0x2545d6:_0x3a9d67,_0x37078e=_0x44957e<_0x37078e?_0x44957e:_0x37078e,_0x81c273=_0x44957e+_0x72322b>_0x81c273?_0x44957e+_0x72322b:_0x81c273;}return{'minRow':_0x1cac7d,'maxRow':_0x3a9d67,'minColumn':_0x37078e,'maxColumn':_0x81c273};}['_setupColumnsRowsFixing'](){const _0x547c2f=this['editor'],_0x48c316=_0x547c2f['plugins']['get']('TrackChangesEditing'),_0x550131=_0x547c2f['plugins']['get']('TableUtils');_0x547c2f['model']['document']['on']('change:data',()=>{const _0x855357=Array['from'](_0x547c2f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2cb563,data:_0x2a1d0b}of _0x855357){const {group:_0xf4f556,id:_0x4da04d,subType:_0x4a2d9b}=_0x48c316['_splitMarkerName'](_0x2cb563);if('suggestion'!=_0xf4f556)continue;if(null!=_0x2a1d0b['oldRange'])continue;const _0x5b796e=_0x48c316['getSuggestion'](_0x4da04d);this['_tablePostFixingSubtypes']['includes'](_0x4a2d9b)&&this['_tableSuggestions']['add'](_0x5b796e);}},{'priority':'low'});const _0x5ada2b=(_0x2d1d95,_0x34cb2a)=>{let _0x45e811=!0x1;const _0x25e48b=_0x34cb2a['createRangeOn'](_0x2d1d95),_0x5e009f=_0x2d1d95['findAncestor']('table'),_0x181805=_0x550131['getCellLocation'](_0x2d1d95);for(const _0x3e2a1b of this['_tableSuggestions']){const _0x2a9491=_0x3e2a1b['subType'],_0x12ffbd=_0x2a9491['startsWith']('tablePaste'),_0x451840=_0x2a9491['substr'](_0x12ffbd?0xa:0x5),_0x4b8e7a=_0x451840['toLowerCase'](),_0x526f91=_0x4b8e7a['substr'](0x0,0x3)+'span',_0xf5f3e4='min'+_0x451840,_0x40bebc='max'+_0x451840;if(!_0x3e2a1b['isInContent'])continue;if(_0x5e009f!=_0x3e2a1b['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x3e2a1b['isIntersectingWithRange'](_0x25e48b))continue;const _0x5d442c=_0x2d1d95['hasAttribute'](_0x526f91)?_0x2d1d95['getAttribute'](_0x526f91)-0x1:0x0,_0x50ae5a=this['_getSuggestionCoords'](_0x3e2a1b),_0x58aff2=_0x50ae5a[_0xf5f3e4],_0x30de94=_0x50ae5a[_0x40bebc];_0x58aff2<=_0x181805[_0x4b8e7a]&&_0x181805[_0x4b8e7a]+_0x5d442c<=_0x30de94&&(_0x3e2a1b['addRange'](_0x25e48b),_0x45e811=!0x0);}return _0x45e811;};_0x547c2f['model']['document']['registerPostFixer'](_0x1302fb=>{let _0xfe80a4=!0x1;for(const _0x354c5a of _0x547c2f['model']['document']['differ']['getChanges']())if('insert'==_0x354c5a['type']){if('tableRow'==_0x354c5a['name']){for(const _0x56620f of _0x354c5a['position']['nodeAfter']['getChildren']())_0xfe80a4=_0xfe80a4||_0x5ada2b(_0x56620f,_0x1302fb);}else'tableCell'==_0x354c5a['name']&&(_0xfe80a4=_0xfe80a4||_0x5ada2b(_0x354c5a['position']['nodeAfter'],_0x1302fb));}return _0xfe80a4;});}['_getSuggestionCoords'](_0x1bd7ed){return this['_getCoordsForCells'](_0x1bd7ed['getRanges']()['map'](_0x31b9b1=>_0x31b9b1['start']['nodeAfter']));}}function _e(_0x2c9fb1){return Array['from'](new Set(_0x2c9fb1)['values']());}class Bt extends _0x2e45f0{static get['requires'](){return[Dt];}['afterInit'](){const _0x29b8ae=this['editor'],_0x250f20=_0x29b8ae['model']['document']['selection'],_0x1530ad=_0x29b8ae['locale'];if(!_0x29b8ae['plugins']['has']('TableEditing'))return;const _0x4937eb=_0x29b8ae['plugins']['get']('TrackChangesEditing'),_0x285ce8=_0x29b8ae['plugins']['get']('TableUtils'),_0x518212=_0x29b8ae['plugins']['get'](Dt);_0x518212['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x4937eb['enableCommand']('mergeTableCells',()=>{const _0x136a2c=_0x285ce8['getSelectionAffectedTableCells'](_0x29b8ae['model']['document']['selection']);_0x29b8ae['model']['change'](()=>{_0x4937eb['markMultiRangeBlockFormat'](_0x136a2c,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x29b8ae['commands']['get']('mergeTableCells')['on']('execute',(_0x3c1121,_0x84e946)=>{_0x29b8ae['commands']['get']('trackChanges')['value']&&(_0x84e946['length']>0x0&&_0x84e946[_0x84e946['length']-0x1]&&_0x84e946[_0x84e946['length']-0x1]['forceDefaultExecution']||_0x4937eb['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x3c1121['stop']());},{'priority':'highest'});for(const _0x207f04 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x5abda8=_0x29b8ae['commands']['get'](_0x207f04);_0x4937eb['enableCommand'](_0x207f04,()=>{const _0x35440a=_0x29b8ae['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x590105=>_0x590105['is']('element','tableCell')),_0x506af5=_0x5abda8['value'];_0x29b8ae['model']['change'](()=>{_0x4937eb['markMultiRangeBlockFormat']([_0x35440a,_0x506af5],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x5a334b of['splitTableCellVertically','splitTableCellHorizontally']){const _0x2194a9=_0x29b8ae['commands']['get'](_0x5a334b);_0x4937eb['enableCommand'](_0x5a334b,()=>{const _0x468843=_0x285ce8['getSelectionAffectedTableCells'](_0x29b8ae['model']['document']['selection'])[0x0],_0x3bcb4b=_0x468843['findAncestor']('table'),{column:_0x390e30,row:_0x47dc57}=_0x285ce8['getCellLocation'](_0x468843);let _0x28f243=[];if('horizontally'==_0x2194a9['direction']){const _0x2bb97e=_0x285ce8['createTableWalker'](_0x3bcb4b,{'startRow':_0x47dc57,'endRow':_0x47dc57,'includeAllSlots':!0x0});_0x28f243=Array['from'](_0x2bb97e)['map'](_0xa923bf=>_0xa923bf['cell']);}else{const _0x3c9eaa=_0x285ce8['createTableWalker'](_0x3bcb4b,{'column':_0x390e30,'includeAllSlots':!0x0});_0x28f243=Array['from'](_0x3c9eaa)['map'](_0x5ac132=>_0x5ac132['cell']);}_0x29b8ae['model']['change'](_0x3a2b5e=>{_0x4937eb['markBlockFormat'](_0x3a2b5e['createRangeOn'](_0x468843),{'commandName':_0x5a334b,'commandParams':[]},_0x28f243,_0x5a334b);});});}_0x4937eb['descriptionFactory']['registerDescriptionCallback'](_0x5aced8=>{if('formatBlock'!=_0x5aced8['type']&&'formatInline'!=_0x5aced8['type'])return;const {data:_0x100cf8}=_0x5aced8;return _0x100cf8&&'mergeTableCells'==_0x100cf8['commandName']?{'type':'format','content':o(_0x1530ad,'*Merge\x20cells*')}:void 0x0;}),_0x4937eb['descriptionFactory']['registerDescriptionCallback'](_0x19c97a=>{if('formatBlock'!=_0x19c97a['type']&&'formatInline'!=_0x19c97a['type'])return;const {data:_0x2598b3}=_0x19c97a;return _0x2598b3?'splitTableCellVertically'==_0x2598b3['commandName']?{'type':'format','content':o(_0x1530ad,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x2598b3['commandName']?{'type':'format','content':o(_0x1530ad,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x582ba=_0x518212['_acceptFormatSuggestionCallbackFactory']();for(const _0x1f3249 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x4937eb['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1f3249,'accept',_0x582ba);for(const _0x45e2b2 of['splitTableCellVertically','splitTableCellHorizontally'])_0x4937eb['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x45e2b2,'accept',_0x582ba);_0x4937eb['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x3e2f2d=>{_0x29b8ae['model']['change'](_0x521ec8=>{const _0xee4409=Array['from'](_0x250f20['getRanges']())['map'](_0x2dac1c=>_0x5a100f['fromRange'](_0x2dac1c));_0x521ec8['setSelection'](_0x3e2f2d),_0x29b8ae['commands']['get']('mergeTableCells')['refresh'](),_0x29b8ae['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3207be=_0xee4409['filter'](_0x45e648=>'$graveyard'!=_0x45e648['root']['rootName']);_0x3207be['length']>0x0&&_0x521ec8['setSelection'](_0x3207be);for(const _0x1380b3 of _0xee4409)_0x1380b3['detach']();});});for(const _0x186f7f of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x200407=_0x29b8ae['commands']['get'](_0x186f7f);_0x200407['on']('set:isEnabled',(_0x98576d,_0x2c3687,_0x548a0e)=>{if(_0x548a0e){const _0x2db765=_0x29b8ae['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x359251=>_0x359251['is']('element','tableCell'));this['_areMergableCells'](_0x200407['value'],_0x2db765)||(_0x98576d['return']=!0x1,_0x98576d['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x55b8cf=this['editor']['commands']['get']('mergeTableCells'),_0x1babfe=this['editor']['plugins']['get']('TableUtils');if(!_0x55b8cf['isEnabled'])return!0x1;const _0x57caea=_0x1babfe['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x53236f of _0x57caea)for(const _0x38b3e4 of _0x57caea)if(_0x53236f!=_0x38b3e4&&!this['_areMergableCells'](_0x53236f,_0x38b3e4))return!0x1;return!0x0;}['_areMergableCells'](_0x25f4ff,_0x4d4425){const _0xd2823f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x59a42d=this['editor']['model']['createRangeOn'](_0x25f4ff),_0xae74af=this['editor']['model']['createRangeOn'](_0x4d4425),_0x552bd3=new Set(),_0x287b11=new Set();for(const _0x40a616 of _0xd2823f['getSuggestions']())if(('insertion'==_0x40a616['type']||'deletion'==_0x40a616['type']||'mergeTableCells'==_0x40a616['subType'])&&_0x40a616['isInContent']){for(const _0x32bf10 of _0x40a616['getRanges']())_0x32bf10['containsRange'](_0x59a42d,!0x0)&&_0x552bd3['add'](_0x40a616['type']+':'+_0x40a616['author']['id']),_0x32bf10['containsRange'](_0xae74af,!0x0)&&_0x287b11['add'](_0x40a616['type']+':'+_0x40a616['author']['id']);}if(_0x552bd3['size']!=_0x287b11['size'])return!0x1;for(const _0x59888d of _0x552bd3)if(!_0x287b11['has'](_0x59888d))return!0x1;return!0x0;}}class Ot extends _0x2e45f0{static get['requires'](){return[Dt];}['afterInit'](){const _0x4cee1d=this['editor'];if(!_0x4cee1d['plugins']['has']('TableEditing'))return;const _0x403b35=_0x4cee1d['locale'],_0x24b9c6=_0x4cee1d['plugins']['get']('TrackChangesEditing');_0x24b9c6['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x24b9c6['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x24b9c6['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x403b35,'FORMAT_HEADER_ROW')),_0x24b9c6['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x403b35,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x282d6b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x50b061=this['editor']['plugins']['get'](Dt)['_acceptFormatSuggestionCallbackFactory']();_0x282d6b['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x50b061),_0x282d6b['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x50b061),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0xfdcaac=this['editor']['plugins']['get']('TrackChangesEditing'),_0x32fff1=this['editor']['plugins']['get']('TableUtils');function _0x240c7e({showActiveMarker:_0x3431e0=!0x0,setDataAttribute:_0x563872=!0x0}={}){return(_0x3f816f,_0x389262,_0x2fb023)=>{const {type:_0x525ded,id:_0x19140a}=_0xfdcaac['_splitMarkerName'](_0x389262['markerName']);if(!_0xfdcaac['hasSuggestion'](_0x19140a))return;const _0x2c36f7=_0xfdcaac['getSuggestion'](_0x19140a),_0x33f4af=_0x2c36f7['data'];if('formatBlock'!=_0x2c36f7['type']||!_0x33f4af||'setTableColumnHeader'!=_0x33f4af['commandName'])return;if(_0x389262['item'])return void _0x3f816f['stop']();if(!_0x2fb023['consumable']['consume'](_0x389262['markerRange'],_0x3f816f['name']))return;const _0x4d811d=_0x389262['markerRange']['start']['nodeAfter'],_0x296f77=_0x389262['markerRange']['end']['nodeBefore'],_0x3427c0=_0x4d811d['parent']['parent'],{column:_0x15878a}=_0x32fff1['getCellLocation'](_0x4d811d),{column:_0x47d4c6}=_0x32fff1['getCellLocation'](_0x296f77);for(let _0xd51d6d=_0x15878a;_0xd51d6d<=_0x47d4c6;_0xd51d6d++){const _0x819216=_0x32fff1['createTableWalker'](_0x3427c0,{'column':_0xd51d6d,'includeAllSlots':!0x1});for(const _0x538263 of _0x819216){const _0x3391da=_0x538263['cell'],_0x21594f=_0x2fb023['mapper']['toViewElement'](_0x3391da);_0x2fb023['writer']['addClass']('ck-suggestion-marker-'+_0x525ded,_0x21594f),_0x563872&&_0x2fb023['writer']['setAttribute']('data-suggestion',_0x19140a,_0x21594f),_0x2fb023['mapper']['bindElementToMarker'](_0x21594f,_0x389262['markerName']),_0x3431e0&&(_0xfdcaac['activeMarkers']['includes'](_0x389262['markerName'])?_0x2fb023['writer']['addClass']('ck-suggestion-marker--active',_0x21594f):_0x2fb023['writer']['removeClass']('ck-suggestion-marker--active',_0x21594f));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x240c7e(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x59f697,_0x4764f1,_0xf37b67)=>{_0xf37b67['options']['showSuggestionHighlights']&&_0x240c7e({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x59f697,_0x4764f1,_0xf37b67);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x28d670,_0x8ee4b3,_0x39636f)=>{const {type:_0x2ac9ea,id:_0x14e4e6}=_0xfdcaac['_splitMarkerName'](_0x8ee4b3['markerName']);if(!_0xfdcaac['hasSuggestion'](_0x14e4e6))return;const _0x2b47f5=_0xfdcaac['getSuggestion'](_0x14e4e6),_0x532774=_0x2b47f5['data'];if('formatBlock'!=_0x2b47f5['type']||!_0x532774||'setTableColumnHeader'!=_0x532774['commandName'])return;const _0x1f13d3=_0x39636f['mapper']['markerNameToElements'](_0x8ee4b3['markerName']);if(_0x1f13d3){for(const _0x5d2c42 of _0x1f13d3)_0x39636f['writer']['removeClass']('ck-suggestion-marker-'+_0x2ac9ea,_0x5d2c42),_0x39636f['writer']['removeClass']('ck-suggestion-marker--active',_0x5d2c42),_0x39636f['writer']['removeAttribute']('data-suggestion',_0x5d2c42),_0x39636f['mapper']['unbindElementFromMarkerName'](_0x5d2c42,_0x8ee4b3['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x23d6a7=this['editor'],_0x33308b=_0x23d6a7['locale'];function _0x155aaf(_0x10e3a5){return{'type':'format','content':o(_0x33308b,'*Format:*\x20%0',_0x10e3a5)};}_0x23d6a7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x712174=>{if('formatBlock'!=_0x712174['type'])return;const {data:_0x560319}=_0x712174;if(_0x560319){if('setTableRowHeader'==_0x560319['commandName']){const _0x348af7=_0x560319['commandParams'][0x0]['forceValue'];return _0x155aaf(o(_0x33308b,_0x348af7?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x560319['commandName']){const _0x57acde=_0x560319['commandParams'][0x0]['forceValue'];return _0x155aaf(o(_0x33308b,_0x57acde?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class xt extends _0x2e45f0{['afterInit'](){const _0x283d4f=this['editor'],_0x2e9ba6=_0x283d4f['locale'],_0x4b0887=_0x283d4f['plugins']['get']('TrackChangesEditing');function _0x36aee0(_0x5a1d1b){return{'type':'format','content':''+o(_0x2e9ba6,'*Set\x20table\x20type:*\x20%0',_0x5a1d1b)};}_0x283d4f['plugins']['has']('TableLayout')&&(_0x4b0887['enableCommand']('insertTableLayout'),_0x4b0887['enableDefaultAttributesIntegration']('tableType'),_0x4b0887['descriptionFactory']['registerElementLabel'](_0x4618f1=>_0x4618f1['is']('element','table')&&'layout'===_0x4618f1['getAttribute']('tableType'),_0x2960d8=>o(_0x2e9ba6,'ELEMENT_LAYOUT_TABLE',_0x2960d8)),_0x4b0887['descriptionFactory']['registerDescriptionCallback'](_0x2d52ce=>{const {data:_0x382132}=_0x2d52ce;if(_0x382132&&'tableType'==_0x382132['key'])switch(_0x382132['newValue']){case'layout':return _0x36aee0(o(_0x2e9ba6,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x36aee0(o(_0x2e9ba6,'ELEMENT_CONTENT_TABLE'));}}));}}const Re=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ae=/* #__PURE__ -- @preserve */
25
+ Object['fromEntries'](Re['map'](_0x3c32f7=>[_0x3c32f7,null]));class Mt extends _0x2e45f0{static get['requires'](){return[Dt];}['afterInit'](){const _0x5ad641=this['editor'];if(!_0x5ad641['plugins']['has']('TableClipboard'))return;const _0x4c230b=_0x5ad641['plugins']['get']('TrackChangesEditing'),_0x233d19=_0x5ad641['plugins']['get']('TableUtils'),_0x4fe8dd=_0x5ad641['plugins']['get'](Dt),_0x1fa3b3=_0x5ad641['plugins']['get']('TableClipboard'),_0xb75968=_0x5ad641['plugins']['get']('TableSelection'),_0x232fc0=_0x5ad641['plugins']['get'](_0x1b75f2);_0x4fe8dd['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x5ad641['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x5ad641['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x20e13f=null,_0x215236=!0x1;_0x232fc0['on']('contentInsertion',(_0x429bae,_0x564f31)=>{_0x215236='paste'===_0x564f31['method'];}),_0x5ad641['model']['on']('insertContent',(_0x3b9d87,_0x29cfba)=>{if(!_0x215236&&null===_0xb75968['getSelectedTableCells']())return;const [_0x253923,_0x15403d]=_0x29cfba,_0x383f7e=_0x29cfba[_0x29cfba['length']-0x1];_0x383f7e&&_0x383f7e['forceDefaultExecution']||_0x4c230b['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x49be2c,_0x2b8cbc,_0x5cc4be,_0x607769,_0x24cacb){if(_0x2b8cbc&&!_0x2b8cbc['is']('documentSelection'))return!0x1;const _0x16fe79=_0x24cacb['getTableIfOnlyTableInContent'](_0x49be2c,_0x5cc4be);if(!_0x16fe79||!Oe(_0x16fe79,void 0x0,_0x607769))return!0x1;const _0x5129b3=_0x607769['getSelectionAffectedTableCells'](_0x5cc4be['document']['selection']);if(!_0x5129b3['length'])return!0x1;const _0x53e62c=_0x5129b3[0x0]['findAncestor']('table'),_0x6272=_0x607769['getRowIndexes'](_0x5129b3),_0x15b8a6=_0x607769['getColumnIndexes'](_0x5129b3),_0x66ad4={'startRow':_0x6272['first'],'endRow':_0x6272['last'],'startColumn':_0x15b8a6['first'],'endColumn':_0x15b8a6['last']};return 0x1==_0x5129b3['length']&&(_0x66ad4['endRow']+=_0x607769['getRows'](_0x16fe79)-0x1,_0x66ad4['endColumn']+=_0x607769['getColumns'](_0x16fe79)-0x1),Oe(_0x53e62c,_0x66ad4,_0x607769);}(_0x253923,_0x15403d,_0x5ad641['model'],_0x233d19,_0x1fa3b3)&&(_0x3b9d87['stop'](),_0x20e13f={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x5ad641['model']['change'](()=>{_0x5ad641['model']['insertContent'](_0x29cfba[0x0],_0x29cfba[0x1],_0x29cfba[0x2],{'forceDefaultExecution':!0x0});const _0x41cb76=_0x320756(),{rowInsertionRanges:_0x524ec7,columnInsertionRanges:_0x3468fc,insertionRanges:_0x5f4b8a,deletionRanges:_0x40e16d,cells:_0xa49c48}=_0x20e13f;_0x524ec7['length']&&_0x4c230b['markMultiRangeInsertion'](_0x524ec7,'tablePasteRow',{'tablePasteChainId':_0x41cb76}),_0x3468fc['length']&&_0x4c230b['markMultiRangeInsertion'](_0x3468fc,'tablePasteColumn',{'tablePasteChainId':_0x41cb76}),_0x5f4b8a['length']&&(_0x4c230b['markMultiRangeInsertion'](_0x5f4b8a,'tablePaste',{'tablePasteChainId':_0x41cb76,'skipNestingCheck':!0x0}),_0x5f4b8a['forEach'](_0x438bdf=>_0x438bdf['detach']?.())),_0x40e16d['length']&&(_0x4c230b['markMultiRangeDeletion'](_0x40e16d,'tablePaste',{'tablePasteChainId':_0x41cb76,'skipNestingCheck':!0x0}),_0x40e16d['forEach'](_0x5363d6=>_0x5363d6['detach']?.()));const _0x12d48b=_0x4c230b['markMultiRangeBlockFormat'](_0xa49c48['map'](({element:_0x45473f})=>_0x45473f),{'formatGroupId':_0x320756()},[],'tablePasteCell',{'tablePasteChainId':_0x41cb76});if(_0x12d48b){const _0x2369b8=_0x12d48b['getMarkers'](),_0x35bedf=[];for(const {element:_0x48758d,attributes:_0x488339}of _0xa49c48){if(!_0x488339)continue;const _0x4b668d=_0x5ad641['model']['createRangeOn'](_0x48758d),_0x351dae=_0x2369b8['find'](_0x344b46=>_0x344b46['getRange']()['isEqual'](_0x4b668d));_0x351dae&&_0x35bedf['push']([_0x351dae['name'],_0x488339]);}_0x35bedf['length']&&_0x12d48b['setAttribute']('markerAttributes',Object['fromEntries'](_0x35bedf));}_0x20e13f=null;}));},{'priority':_0x41de16['high']+0xa}),_0x232fc0['on']('contentInsertion',()=>{_0x215236=!0x1;},{'priority':'lowest'}),_0x5ad641['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3c1f94,_0x50047c)=>{const [_0x1d60ac,_0x2317b6,,_0x5e0be5]=_0x50047c;if(!_0x20e13f)return;_0x3c1f94['stop']();const _0x324cfa=_0x1d60ac['cell'],_0x3964ae=_0x2317b6,_0x424063=Be(_0x324cfa),_0x2f1308=Be(_0x3964ae);_0x3c1f94['return']=_0x324cfa;let _0x5af472=null,_0x504ff0=null;if(_0x2f1308||_0x424063){if(_0x424063&&!_0x2f1308){_0x5e0be5['remove'](_0x324cfa['getChild'](0x0));for(const _0x434e35 of Array['from'](_0x3964ae['getChildren']()))_0x5e0be5['insert'](_0x434e35,_0x324cfa,'end');const _0x1546d9=_0x20e13f['rowInsertionIndexes']['includes'](_0x1d60ac['row']),_0x6e31e0=_0x20e13f['columnInsertionIndexes']['includes'](_0x1d60ac['column']);_0x1546d9||_0x6e31e0||(_0x5af472=_0x5a100f['fromRange'](_0x5e0be5['createRangeIn'](_0x324cfa)));}else _0x2f1308&&!_0x424063&&(_0x504ff0=_0x5e0be5['createRangeIn'](_0x324cfa));}else{const _0x3fc27b=_0x5e0be5['createElement']('tableCellSuggestion'),_0x23222f=_0x5e0be5['createElement']('tableCellSuggestion');_0x5e0be5['wrap'](_0x5e0be5['createRangeIn'](_0x324cfa),_0x23222f),_0x5e0be5['insert'](_0x3fc27b,_0x324cfa,0x0);for(const _0x4cb23f of Array['from'](_0x3964ae['getChildren']()))_0x5e0be5['insert'](_0x4cb23f,_0x3fc27b,'end');_0x5af472=_0x5a100f['fromRange'](_0x5e0be5['createRangeOn'](_0x3fc27b)),_0x504ff0=_0x5a100f['fromRange'](_0x5e0be5['createRangeOn'](_0x23222f));}const _0x5c01f3=Array['from'](_0x3964ae['getAttributes']())['filter'](([_0x38d920])=>Re['includes'](_0x38d920));_0x20e13f['cells']['push']({'element':_0x324cfa,'attributes':_0x5c01f3['length']?Object['fromEntries'](_0x5c01f3):null}),_0x5af472&&_0x20e13f['insertionRanges']['push'](_0x5af472),_0x504ff0&&_0x20e13f['deletionRanges']['push'](_0x504ff0);},{'priority':'high'}),_0x233d19['on']('insertColumns',(_0x481f4a,_0x3bb6a5)=>{const [_0x169e28,_0x5c006c={}]=_0x3bb6a5;if(!_0x20e13f)return;const _0x32d0db=_0x5c006c['at']||0x0,_0x486c07=_0x5c006c['columns']||0x1;_0x20e13f['columnInsertionIndexes']=new Array(_0x486c07)['fill'](_0x32d0db)['map']((_0x3e40d0,_0x434ec0)=>_0x3e40d0+_0x434ec0);for(const {cell:_0x54a5f4}of _0x233d19['createTableWalker'](_0x169e28,{'startColumn':_0x32d0db,'endColumn':_0x32d0db+_0x486c07-0x1}))_0x20e13f['columnInsertionRanges']['push'](_0x5ad641['model']['createRangeOn'](_0x54a5f4));},{'priority':'low'}),_0x233d19['on']('insertRows',(_0xce83cc,_0x118b30)=>{const [_0x523ad3,_0x203d2b={}]=_0x118b30;if(!_0x20e13f)return;const _0xc08622=_0x203d2b['at']||0x0,_0x144915=_0x203d2b['rows']||0x1;_0x20e13f['rowInsertionIndexes']=new Array(_0x144915)['fill'](_0xc08622)['map']((_0x3639a0,_0x9ca6eb)=>_0x3639a0+_0x9ca6eb);for(const {cell:_0x41f37e}of _0x233d19['createTableWalker'](_0x523ad3,{'startRow':_0xc08622,'endRow':_0xc08622+_0x144915-0x1}))_0x20e13f['rowInsertionRanges']['push'](_0x5ad641['model']['createRangeOn'](_0x41f37e));},{'priority':'low'}),_0x4c230b['descriptionFactory']['registerDescriptionCallback'](_0x436a51=>{if(_0x436a51['subType']&&_0x436a51['subType']['startsWith']('tablePaste'))return _0x436a51['previous']?{}:{'type':'insertion','content':o(_0x5ad641['locale'],'*Replace\x20table\x20cells*')};});const _0x11ac56=()=>!0x1;for(const _0x394099 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4c230b['_suggestionFactory']['registerCustomCallback']('insertion',_0x394099,'join',_0x11ac56),_0x4c230b['_suggestionFactory']['registerCustomCallback']('deletion',_0x394099,'join',_0x11ac56),_0x4c230b['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x394099,'join',_0x11ac56);_0x4c230b['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x11ac56),_0x4c230b['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x417106,_0x5313b0,_0x1d59e0)=>{const _0x220904=_0x417106['map'](_0x20da72=>_0x20da72['getContainedElement']())['filter'](_0x3aa030=>_0x3aa030),_0xa68dd1=new Map(_0x220904['map'](_0x3f496e=>[_0x3f496e,null]));if(_0x20e13f){for(const {element:_0x5e8626,attributes:_0x599310}of _0x20e13f['cells'])_0x599310&&_0xa68dd1['set'](_0x5e8626,_0x599310);}else{if(_0x1d59e0&&_0x1d59e0['markerAttributes'])for(const [_0x4580f2,_0xb975a5]of Object['entries'](_0x1d59e0['markerAttributes'])){const _0x4be618=_0x5ad641['model']['markers']['get'](_0x4580f2),_0x174dbe=_0x4be618?_0x4be618['getRange']()['getContainedElement']():null;_0x174dbe&&_0xa68dd1['set'](_0x174dbe,_0xb975a5);}}_0x5ad641['model']['change'](_0x3b76b4=>{for(const [_0x4ec34b,_0x188dcb]of _0xa68dd1)_0x3b76b4['setAttributes']({...Ae,..._0x188dcb},_0x4ec34b);});});const _0x4d86b0=(_0x420352,_0x4551ab)=>{_0x4c230b['_suggestionFactory']['registerCustomCallback'](_0x420352,'tablePaste',_0x4551ab,(_0x8a7519,_0x359441,_0x4d5520)=>{_0x5ad641['model']['change'](_0x54e22e=>{const _0xc11120=[];for(const _0x3bca72 of _0x8a7519){const _0x1c3592=_0x3bca72['start']['nodeAfter'];_0x1c3592['is']('element','tableCellSuggestion')&&_0xc11120['push'](_0x1c3592);}_0x4c230b['_suggestionFactory']['getSuggestionCallback'](_0x420352,null,_0x4551ab)(_0x8a7519,_0x359441,_0x4d5520);for(const _0x107273 of _0xc11120)'$graveyard'!=_0x107273['root']['rootName']&&_0x54e22e['unwrap'](_0x107273);});});};_0x4d86b0('insertion','accept'),_0x4d86b0('insertion','discard'),_0x4d86b0('deletion','accept'),_0x4d86b0('deletion','discard'),_0x4c230b['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1662c7=>{const _0x317de5=_0x1662c7['map'](_0x5dab09=>_0x5dab09['getContainedElement']()),_0x4f0eb3=_0x317de5[0x0]['findAncestor']('table'),{minRow:_0x4ceaee,maxRow:_0x1e032f}=_0x4fe8dd['_getCoordsForCells'](_0x317de5);_0x233d19['removeRows'](_0x4f0eb3,{'at':_0x4ceaee,'rows':_0x1e032f-_0x4ceaee+0x1});}),_0x4c230b['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x500baa=>{const _0x4995e4=_0x500baa['map'](_0x1da4b9=>_0x1da4b9['getContainedElement']()),_0x400535=_0x4995e4[0x0]['findAncestor']('table'),{minColumn:_0x5552bd,maxColumn:_0xd2efcd}=_0x4fe8dd['_getCoordsForCells'](_0x4995e4);_0x233d19['removeColumns'](_0x400535,{'at':_0x5552bd,'columns':_0xd2efcd-_0x5552bd+0x1});});const _0x10a8fc=(_0x50f80e,_0x430e69)=>{if(!_0x430e69['subType']||!_0x430e69['subType']['startsWith']('tablePaste'))return;const _0x52d1e2=_0x430e69['attributes']['tablePasteChainId'],_0x569190=_0x4c230b['getSuggestions']()['filter'](_0x24546a=>_0x24546a['isInContent']&&_0x24546a['attributes']&&_0x24546a['attributes']['tablePasteChainId']==_0x52d1e2);_0x569190['length']&&_0x430e69['getAllAdjacentSuggestions']()['length']!=_0x569190['length']&&_0x569190['reduce']((_0xe8c6b0,_0x4ec5af)=>(_0xe8c6b0['next']=_0x4ec5af,_0x4ec5af['previous']=_0xe8c6b0,_0x4ec5af));};function _0x4defc5(_0x556801,_0x542600=!0x0){const {id:_0x51e569,authorId:_0x2a05cb}=_0x4c230b['_splitMarkerName'](_0x556801['markerName']),_0x2a4837=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0xf8ed11=_0x4c230b['activeMarkers']['includes'](_0x556801['markerName']);return _0xf8ed11&&_0x2a4837['push']('ck-suggestion-marker--active'),{'classes':_0x2a4837,'attributes':{'data-suggestion':_0x51e569,'data-author-id':_0x2a05cb},'priority':_0xf8ed11&&_0x542600?0xbc2:0xbb8};}_0x4c230b['on']('suggestionLoaded',_0x10a8fc,{'priority':'high'}),_0x4c230b['on']('suggestionUnloaded',_0x10a8fc,{'priority':'high'}),_0x5ad641['model']['document']['registerPostFixer'](()=>{let _0x1dea98=!0x1;const _0x2242a1=Array['from'](_0x5ad641['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5657e9,data:_0x2f7ff3}of _0x2242a1){const {group:_0x4280ef,type:_0x44d708,id:_0x5b550a}=_0x4c230b['_splitMarkerName'](_0x5657e9);if('suggestion'!=_0x4280ef||'deletion'!=_0x44d708||_0x2f7ff3['oldRange'])continue;if(!_0x4c230b['hasSuggestion'](_0x5b550a))continue;const _0x3d853a=_0x4c230b['getSuggestion'](_0x5b550a)['getRanges'](),_0x1c4aa7=_0x5ad641['plugins']['get']('Users')['me'];for(const _0x12fb71 of _0x4c230b['getSuggestions']()){if(!_0x12fb71['isInContent']||_0x12fb71['author']!=_0x1c4aa7)continue;if('formatBlock'!=_0x12fb71['type']||'tablePasteCell'!=_0x12fb71['subType'])continue;if(_0x12fb71['getRanges']()['every'](_0x1ad60a=>_0x3d853a['some'](_0x1ae948=>_0x1ae948['containsRange'](_0x1ad60a,!0x0)))){for(const _0x325e03 of _0x12fb71['getAllAdjacentSuggestions']())_0x325e03['isInContent']&&(_0x325e03['discard'](),_0x1dea98=!0x0);}}}return _0x1dea98;}),_0x5ad641['model']['document']['registerPostFixer'](_0x53a8ea=>{const _0x410cdb=_0x5ad641['commands']['get']('redo');if(!_0x410cdb||!_0x410cdb['_createdBatches']['has'](_0x53a8ea['batch']))return!0x1;let _0x85a924=!0x1;const _0x480850=_0x5ad641['plugins']['get']('Users')['me'],_0x2463c2=_0x5ad641['model']['document']['differ']['getChanges'](),_0x204ac7=Array['from'](_0x5ad641['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x88deef,data:_0x2c1bc2})=>{const {group:_0x2d2277,subType:_0x40a6e4,authorId:_0x4cd9da}=_0x4c230b['_splitMarkerName'](_0x88deef);return'suggestion'==_0x2d2277&&'tablePaste'==_0x40a6e4&&_0x4cd9da==_0x480850['id']&&!_0x2c1bc2['oldRange'];});for(const _0x494974 of _0x2463c2){if('insert'!=_0x494974['type']||'tableCellSuggestion'!=_0x494974['name']||0x1!=_0x494974['length'])continue;const _0x5b0235=_0x53a8ea['createRange'](_0x494974['position'],_0x494974['position']['getShiftedBy'](0x1));if(!_0x204ac7['find'](({data:_0x100765})=>_0x100765['newRange']['isEqual'](_0x5b0235))){for(const {name:_0x461a3f,data:_0x5320f2}of _0x204ac7)if(_0x5b0235['containsRange'](_0x5320f2['newRange'])){_0x53a8ea['updateMarker'](_0x461a3f,{'range':_0x5b0235}),_0x85a924=!0x0;break;}}}return _0x85a924;}),_0x5ad641['model']['document']['registerPostFixer'](_0x3309d3=>{let _0x2715b5=!0x1;const _0x1b82d2=_0x5ad641['plugins']['get']('Users')['me'],_0xb524d6=_0x4c230b['getSuggestions']()['filter'](_0x324aca=>_0x324aca['isInContent']&&_0x324aca['author']==_0x1b82d2),_0xde9a8d=new Set(),_0x3091a2=new Set();for(const _0xc26920 of _0xb524d6)if('tablePaste'==_0xc26920['subType'])for(const _0x50e9b7 of _0xc26920['getMarkers']()){const _0x5a8d00=_0x50e9b7['getRange']()['getContainedElement']();if(_0x5a8d00){if(_0x5a8d00['is']('element','tableCellSuggestion')&&Be(_0x5a8d00)){_0xc26920['removeMarker'](_0x50e9b7['name']),_0xde9a8d['add'](_0x5a8d00),_0x2715b5=!0x0;const _0x3e442b=_0x5a8d00['nextSibling'],_0x4b19ce=_0x5a8d00['previousSibling'],_0x2d52ee=_0x3e442b&&_0x3e442b['is']('element','tableCellSuggestion'),_0x57f479=_0x4b19ce&&_0x4b19ce['is']('element','tableCellSuggestion');_0x2d52ee&&!_0xde9a8d['has'](_0x3e442b)&&_0x3091a2['add'](_0x3e442b),_0x57f479&&!_0xde9a8d['has'](_0x4b19ce)&&_0x3091a2['add'](_0x4b19ce);}else _0x5a8d00['is']('element','paragraph')&&_0x5a8d00['isEmpty']&&(_0xc26920['removeMarker'](_0x50e9b7['name']),_0x2715b5=!0x0);}}else{if('tablePasteCell'==_0xc26920['subType']){if(!_0xc26920['attributes']||!_0xc26920['attributes']['tablePasteChainId'])continue;const _0x2a1ffb=_0xc26920['attributes']['markerAttributes'];if(_0x2a1ffb&&Object['keys'](_0x2a1ffb)['length'])continue;const _0x5af04e=_0xc26920['attributes']['tablePasteChainId'];let _0x44a39c=!0x0,_0x445c5=!0x0;for(const _0x2de598 of _0xb524d6)if(_0x2de598['subType']&&_0x2de598['subType']['startsWith']('tablePaste')){if(!_0x2de598['attributes']['tablePasteChainId']){_0x445c5=!0x1;break;}if(_0x2de598['id']!=_0xc26920['id']&&_0x2de598['attributes']['tablePasteChainId']==_0x5af04e){_0x44a39c=!0x1;break;}}_0x445c5&&_0x44a39c&&(_0xc26920['removeMarkers'](),_0x2715b5=!0x0);}}for(const _0x2bad95 of _0xde9a8d)_0x3309d3['remove'](_0x2bad95);for(const _0x3c8fa8 of _0x3091a2)_0x3309d3['unwrap'](_0x3c8fa8);return _0x2715b5;}),_0x5ad641['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x1034bd=>_0x4defc5(_0x1034bd),'converterPriority':'high'}),_0x5ad641['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4684ce,_0x137e67)=>_0x137e67['options']['showSuggestionHighlights']?_0x4defc5(_0x4684ce,!0x1):null,'converterPriority':'high'});const _0x484e94=_0x5ad641['editing']['view'];this['listenTo'](_0x484e94['document'],'clipboardOutput',(_0x1c731f,_0x39e4e1)=>{const _0x3ff4c5=[];for(const _0x1fdebc of _0x484e94['createRangeIn'](_0x39e4e1['content'])['getItems']())_0x1fdebc['is']('element','suggestion-td')&&_0x3ff4c5['push'](_0x1fdebc);_0x484e94['change'](_0x54c89d=>{for(const _0x12e948 of _0x3ff4c5)_0x54c89d['move'](_0x54c89d['createRangeIn'](_0x12e948),_0x54c89d['createPositionBefore'](_0x12e948)),_0x54c89d['remove'](_0x12e948);});});}}function Be(_0x3bd856){if(_0x3bd856['isEmpty'])return!0x0;const _0x435fda=_0x3bd856['getChild'](0x0);return _0x435fda['is']('element','paragraph')&&_0x435fda['isEmpty'];}function Oe(_0x4a6dac,_0x396416={},_0x11b5fa){for(const {isAnchor:_0x3e5cb2,cellHeight:_0x188487,cellWidth:_0x14b413}of _0x11b5fa['createTableWalker'](_0x4a6dac,{'includeAllSlots':!0x0,..._0x396416}))if(!_0x3e5cb2||0x1!=_0x188487||0x1!=_0x14b413)return!0x1;return!0x0;}class Rt extends _0x2e45f0{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x6cfc5e=this['editor']['plugins']['get']('TrackChangesEditing');_0x6cfc5e['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x6cfc5e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x6cfc5e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x6cfc5e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x6cfc5e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x6cfc5e['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x80e0b1,_0x3ff606){const _0x3f6935=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4806c0=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x2eeaae=_0x3ff606['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3e0a7b=_0x4806c0['getColumnGroupElement'](_0x2eeaae);let _0x4c86a3=_0x3e0a7b?_0x4806c0['getTableColumnsWidths'](_0x3e0a7b):null,_0x27336a=_0x2eeaae['getAttribute']('tableWidth')||null;const _0x5170ea=_0x3ff606['tableWidth']||_0x27336a,_0x427478=_0x3ff606['columnWidths']||_0x4c86a3,_0x717c43=this['editor']['plugins']['get']('Users')['me'];for(const _0x37313f of _0x3f6935['getSuggestions']()){const _0x44da6b=_0x37313f['getContainedElement']();if('resizeTable'===_0x37313f['subType']&&_0x44da6b===_0x2eeaae){_0x37313f['author']!==_0x717c43&&_0x37313f['discard']();const _0x2d3821=_0x37313f['data']['commandParams'];_0x27336a=_0x2d3821[0x0]['tableWidth'],_0x4c86a3=_0x2d3821[0x0]['columnWidths'];break;}}_0x80e0b1({'table':_0x2eeaae,'tableWidth':_0x5170ea,'columnWidths':_0x427478}),_0x3f6935['markBlockFormat'](_0x2eeaae,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x27336a,'columnWidths':_0x4c86a3}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x434038){if('formatBlock'!=_0x434038['type']&&'formatInline'!=_0x434038['type'])return;const {data:_0x369aa3}=_0x434038;if(_0x369aa3&&'resizeTable'===_0x369aa3['formatGroupId']){const _0x3a8876='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x3a8876)};}}}class Tt extends _0x2e45f0{['afterInit'](){const _0x275f41=this['editor'];_0x275f41['plugins']['has']('Template')&&_0x275f41['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Et extends _0x2e45f0{['afterInit'](){const _0x47af8d=this['editor'];if(!_0x47af8d['commands']['get']('insertTableOfContents'))return;_0x47af8d['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x12f682=_0x47af8d['plugins']['get']('TrackChangesEditing'),_0x109792=_0x47af8d['locale'];_0x12f682['descriptionFactory']['registerElementLabel']('tableOfContents',_0x4c4c3b=>o(_0x109792,'ELEMENT_TABLE_OF_CONTENTS',_0x4c4c3b));}}class Ut extends _0x2e45f0{['afterInit'](){const _0x1eb8eb=this['editor'];if(!_0x1eb8eb['plugins']['has']('Title'))return;const _0x57f22b=_0x1eb8eb['plugins']['get']('TrackChangesEditing');_0x57f22b['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x1eb8eb['locale'],'ELEMENT_TITLE')),_0x1eb8eb['model']['document']['registerPostFixer'](_0x22e1c3=>{let _0x151497=!0x1;const _0x772ba8=Array['from'](_0x1eb8eb['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x342311,data:_0x3dca2e}of _0x772ba8){const {group:_0x53e912}=_0x57f22b['_splitMarkerName'](_0x342311);if('suggestion'!==_0x53e912||!_0x3dca2e['newRange'])continue;const _0x47634b=_0x3dca2e['newRange'],_0x19a244=_0x47634b['end']['nodeBefore'];if(!_0x19a244||!_0x19a244['is']('element','title-content'))continue;if(!_0x47634b['start']['isTouching'](_0x47634b['end']))continue;const _0x5b7bc1=_0x1eb8eb['model']['schema']['getNearestSelectionRange'](_0x47634b['end'],'forward');if(_0x5b7bc1&&_0x5b7bc1['isCollapsed']){const _0x3eda1d=_0x22e1c3['createRange'](_0x47634b['start'],_0x5b7bc1['start']);_0x3eda1d['isEqual'](_0x47634b)||(_0x22e1c3['updateMarker'](_0x342311,{'range':_0x3eda1d}),_0x151497=!0x0);}_0x151497||(_0x22e1c3['removeMarker'](_0x342311),_0x151497=!0x0);}return _0x151497;});}}class Vt extends _0x2e45f0{['afterInit'](){const _0x56df35=this['editor'],_0x306ad5=_0x56df35['plugins']['get']('TrackChangesEditing');_0x56df35['plugins']['has']('Uploadcare')&&(_0x306ad5['enableCommand']('uploadcare'),_0x56df35['plugins']['has']('UploadcareImageEdit')&&(_0x306ad5['enableCommand']('uploadcareImageEdit'),_0x306ad5['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x306ad5['descriptionFactory']['registerDescriptionCallback'](_0x286ab4=>{if('attribute'!=_0x286ab4['type'])return;const {data:_0x166e81}=_0x286ab4;return _0x166e81&&'uploadcareImageId'==_0x166e81['key']?{'type':'format','content':''}:void 0x0;})));}}class Ft extends _0x2e45f0{['afterInit'](){const _0x56ee05=this['editor'],_0x2af174=_0x56ee05['plugins']['get']('TrackChangesEditing');_0x56ee05['plugins']['has']('UndoEditing')&&(_0x2af174['enableCommand']('undo'),_0x2af174['enableCommand']('redo'));}}class Pt extends _0x2e45f0{static get['requires'](){return[Dt];}['afterInit'](){const _0x198c2f=this['editor'];if(!_0x198c2f['plugins']['has']('TableCaptionEditing'))return;_0x198c2f['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Gt extends _0x2e45f0{['tableProperties'];['tableCellProperties'];constructor(_0x3347bd){super(_0x3347bd),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'],_0x3347bd['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 _0x1b9a57=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x237c6c of this['tableProperties'])_0x1b9a57['enableCommand'](_0x237c6c,(_0x239bea,_0x229224)=>{const _0x173491=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x237c6c,[_0x173491],this['tableProperties'],'tableProperties',_0x239bea,_0x229224);});_0x1b9a57['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x1b9a57['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1b9a57['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x4443be,_0xcce125)=>this['handleDiscardAction'](this['tableProperties'],_0x4443be,_0xcce125)),_0x1b9a57['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x111768 of this['tableCellProperties'])this['editor']['commands']['get'](_0x111768)&&_0x1b9a57['enableCommand'](_0x111768,(_0xe8f317,_0x8fddcf)=>{const _0x10481d=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x111768,_0x10481d,this['tableCellProperties'],'tableCellProperties',_0xe8f317,_0x8fddcf);});_0x1b9a57['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x1b9a57['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1b9a57['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x29f07e,_0x312b15)=>this['handleDiscardAction'](this['tableCellProperties'],_0x29f07e,_0x312b15)),_0x1b9a57['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x1b9a57['descriptionFactory']['registerAttributeLabel']('tableCellType',o(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x1b9a57['descriptionFactory']['registerDescriptionCallback'](_0x443434=>this['handleSuggestionDescription'](_0x443434)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x462600,_0x3db3f8,_0x64efd2,_0x2c54c3,_0x55988b,_0x4376e5){const _0x4a40e9=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x4376e5['batch'],()=>{for(const _0x4648b7 of _0x3db3f8){if(this['_getSuggestion'](_0x4648b7,_0x2c54c3))_0x55988b(_0x4376e5);else{const _0x4465b6={};for(const _0x158d26 of _0x64efd2){const _0x51cc08=_0x4648b7['getAttribute'](_0x158d26);void 0x0!==_0x51cc08&&(_0x4465b6[_0x158d26]=_0x51cc08);}_0x55988b(_0x4376e5),_0x4a40e9['markBlockFormat'](_0x4648b7,{'commandParams':[_0x4465b6]},[],_0x2c54c3);}}});}['handleDiscardAction'](_0x43b83d,_0x5a7a3c,_0x25d6aa){const _0x12c90a=_0x5a7a3c[0x0]['start']['nodeAfter'],_0x515232=_0x25d6aa['commandParams'][0x0];this['editor']['model']['change'](_0x3e89a8=>{for(const _0x48ac05 of _0x43b83d)void 0x0!==_0x515232[_0x48ac05]?_0x3e89a8['setAttribute'](_0x48ac05,_0x515232[_0x48ac05],_0x12c90a):_0x3e89a8['removeAttribute'](_0x48ac05,_0x12c90a);});}['handleSuggestionDescription'](_0x1d0ee6){if(_0x1d0ee6['data'])switch(_0x1d0ee6['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'](_0x7cfe31,_0x3b9153){const _0x59539d=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x2e46bb of _0x59539d['getSuggestions']({'skipNotAttached':!0x0})){const _0xcd2a26=_0x2e46bb['getContainedElement']();if(_0x2e46bb['subType']===_0x3b9153&&_0xcd2a26===_0x7cfe31)return _0x2e46bb;}return null;}['_registerTablePropertiesAttributes'](){const _0x8383de=this['editor']['plugins']['get']('TrackChangesEditing'),_0x59a989=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x4f1cc2 of _0x59a989){const _0xa33f12=_0x4f1cc2['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x8383de['descriptionFactory']['registerAttributeLabel'](_0x4f1cc2,o(this['editor']['locale'],'FORMAT_'+_0xa33f12));}}}class Lt extends _0x2e45f0{['afterInit'](){const _0x76cbb1=this['editor'];if(!_0x76cbb1['plugins']['has']('LineHeight'))return;const _0x747693=_0x76cbb1['plugins']['get']('TrackChangesEditing'),_0x412503=_0x76cbb1['locale'];_0x747693['enableDefaultAttributesIntegration']('lineHeight'),_0x747693['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x412503,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x2e45f0{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x177264,_0x5e477a,_0x1d013c,_0x4d80f5,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(_0xcdbdfb){super(_0xcdbdfb),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x5bb50c,_0x2dc246,_0x213047,_0x56888f)=>{this['_model']['change'](()=>{for(const _0x14d150 of[..._0x56888f,..._0x213047])this['_model']['markers']['has'](_0x14d150)&&_0xcdbdfb['editing']['reconvertMarker'](_0x14d150);});}),this['descriptionFactory']=new E(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new qt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0xcdbdfb['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0xcdbdfb['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0xcdbdfb['config']['get']('trackChanges.trackFormatChanges'),_0xcdbdfb['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0xcdbdfb['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0xcdbdfb,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x13f5af=this['editor'];_0x13f5af['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x25193e,{writer:_0x21ec13})=>{let _0x3435e3='suggestion:'+_0x25193e['getAttribute']('suggestion-type')+':'+_0x25193e['getAttribute']('id');return _0x25193e['getAttribute']('marker-count')&&(_0x3435e3+=':'+_0x25193e['getAttribute']('marker-count')),_0x21ec13['createElement']('$marker',{'data-name':_0x3435e3});}}),_0x13f5af['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x13f5af['model']['document']['registerPostFixer'](_0x171a7d=>{let _0x5f3006=!0x1;const _0x4b1dea=Array['from'](_0x13f5af['model']['document']['differ']['getChangedMarkers']()),_0x3f5d60=new Set();for(const {name:_0x1980aa,data:_0x524f5d}of _0x4b1dea){const {group:_0x17ebee,type:_0x4df0e5,subType:_0x271a3f,id:_0x1195eb}=this['_splitMarkerName'](_0x1980aa);if('suggestion'!==_0x17ebee)continue;const _0x3cab51=_0x271a3f?'suggestion:'+_0x4df0e5+':'+_0x271a3f+':'+_0x1195eb:'suggestion:'+_0x4df0e5+':'+_0x1195eb,_0x55b9f8=_0x13f5af['model']['markers']['getMarkersGroup'](_0x3cab51),_0x2cee3c=_0x13f5af['model']['markers']['get'](_0x1980aa),_0x44f4a6=this['_suggestions']['get'](_0x1195eb);if(null!=_0x524f5d['newRange']){'formatInline'==_0x4df0e5&&(_0x5f3006=_0x5f3006||Wt(_0x524f5d['newRange'],_0x1980aa,_0x171a7d,_0x13f5af['model']['schema']));const _0x487113='attribute'==_0x4df0e5&&this['_isBlockAttribute'](_0x271a3f['split']('|')[0x0]),_0x14e7fe='attribute'==_0x4df0e5&&this['_isInlineAttribute'](_0x271a3f['split']('|')[0x0]);if(_0x524f5d['newRange']['isCollapsed']||'$graveyard'==_0x524f5d['newRange']['root']['rootName']||'formatBlock'==_0x4df0e5&&!Qt(_0x524f5d['newRange'])||_0x487113&&!Qt(_0x524f5d['newRange'])||_0x14e7fe&&Xt(_0x524f5d['newRange'])||'deletion'==_0x4df0e5&&Xt(_0x524f5d['newRange'])||_0x2cee3c&&Yt(_0x2cee3c,_0x55b9f8))_0x171a7d['removeMarker'](_0x1980aa),_0x5f3006=!0x0;else{if(!_0x44f4a6||!_0x44f4a6['isInContent'])continue;if(_0x524f5d['newRange']&&_0x524f5d['oldRange']&&_0x524f5d['newRange']['isEqual'](_0x524f5d['oldRange']))continue;_0x3f5d60['add'](_0x44f4a6);}}}return _0x3f5d60['size']>0x0&&(_0x5f3006=!!this['_joinWithAdjacentSuggestions'](_0x3f5d60)||_0x5f3006),_0x5f3006;}),_0x13f5af['model']['document']['registerPostFixer'](_0x570561=>{let _0x3c0a22=!0x1;for(const _0x3ee615 of _0x13f5af['model']['document']['differ']['getChanges']())if('insert'==_0x3ee615['type'])for(const _0x2eb90e of this['_suggestions']['values']()){if(_0x2eb90e['isMultiRange']||!_0x2eb90e['isInContent'])continue;const _0x1f5099='formatBlock'==_0x2eb90e['type'],_0x1d7c30=this['_getAttributeKey'](_0x2eb90e),_0x11f62e=_0x1d7c30&&this['_isBlockAttribute'](_0x1d7c30);if(!_0x1f5099&&!_0x11f62e)continue;const _0x186f65=_0x2eb90e['getFirstRange']();if(_0x186f65['start']['parent']!=_0x186f65['end']['parent']&&!_0x186f65['end']['isAtEnd']){const _0x5ef4a7=_0x13f5af['model']['createPositionAt'](_0x186f65['start']['nodeAfter'],'end'),_0x185cb5=_0x13f5af['model']['createRange'](_0x186f65['start'],_0x5ef4a7);_0x570561['updateMarker'](_0x2eb90e['getFirstMarker'](),{'range':_0x185cb5}),_0x3c0a22=!0x0;}}return _0x3c0a22;}),_0x13f5af['model']['document']['registerPostFixer'](_0xecfd87=>this['_processAttributeChanges'](_0xecfd87)),_0x13f5af['model']['document']['registerPostFixer'](_0xb53f89=>!_0xb53f89['batch']['isLocal']&&this['_processAttributeSuggestions'](_0xb53f89)),_0x13f5af['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x13f5af['model']['document']['on']('change:data',(_0x34c485,_0x193759)=>{if(!_0x193759['isLocal']||_0x193759['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x2e96e4=_0x13f5af['model']['document']['differ']['getChanges']();if(0x0==_0x2e96e4['length'])return;const _0x48a201=[],_0x2deb48=_0x2e96e4['filter'](_0x4ac946=>'attribute'==_0x4ac946['type']),_0x24f6ad=_0x2e96e4['filter'](_0x231bf2=>'insert'==_0x231bf2['type']&&'$text'!=_0x231bf2['name']);for(const _0xebd4ae of _0x2deb48)this['_isRegisteredAttribute'](_0xebd4ae['attributeKey'])&&_0x48a201['push']({'key':_0xebd4ae['attributeKey'],'newValue':_0xebd4ae['attributeNewValue'],'oldValue':_0xebd4ae['attributeOldValue'],'range':Zt(_0xebd4ae['range'],_0x13f5af['model'])});for(const _0x2dc520 of _0x24f6ad){if('rename'!=_0x2dc520['action']&&'refresh'!=_0x2dc520['action'])continue;const _0x40b779=tn(_0x2dc520['position']['nodeAfter'],_0x13f5af['model']),_0x3da32f=_0x2dc520['before'];'rename'==_0x2dc520['action']&&_0x48a201['push']({'key':m,'newValue':_0x2dc520['name'],'oldValue':_0x3da32f['name'],'range':_0x40b779});for(const [_0x1b0c42,_0xc33eae]of _0x3da32f['attributes']){if(!this['_isRegisteredAttribute'](_0x1b0c42))continue;const _0x19e0ca=_0x2dc520['attributes']['get'](_0x1b0c42);_0xc33eae!==_0x19e0ca&&_0x48a201['push']({'key':_0x1b0c42,'newValue':_0x19e0ca,'oldValue':_0xc33eae,'range':_0x40b779});}for(const [_0x48f4fd,_0x35286c]of _0x2dc520['attributes'])this['_isRegisteredAttribute'](_0x48f4fd)&&(_0x3da32f['attributes']['has'](_0x48f4fd)||_0x48a201['push']({'key':_0x48f4fd,'newValue':_0x35286c,'oldValue':null,'range':_0x40b779}));}0x0!=_0x48a201['length']&&_0x13f5af['model']['enqueueChange'](_0x193759,_0x1e77d9=>{const _0x100b87=_0x320756();for(const {range:_0x326fe7,key:_0x30d505,oldValue:_0x460508,newValue:_0x22a43a}of _0x48a201)this['markAttributeChange'](_0x326fe7,_0x30d505,_0x460508,_0x22a43a,{'groupId':_0x100b87});this['_reduceExistingSuggestions'](_0x1e77d9,_0x48a201);});},{'priority':'lowest'}),_0x13f5af['model']['markers']['on']('update:suggestion',(_0x553eef,_0x2c791e,_0x39ad13)=>{if(null==_0x39ad13){const {id:_0x3471c4}=this['_splitMarkerName'](_0x2c791e['name']),_0x2f17bf=this['_suggestions']['get'](_0x3471c4);_0x2f17bf&&_0x2f17bf['addMarkerName'](_0x2c791e['name']);}}),_0x13f5af['model']['document']['on']('change:data',()=>{const _0x157ec7=Array['from'](_0x13f5af['model']['document']['differ']['getChangedMarkers']())['filter'](_0x52b5cd=>'suggestion'===this['_splitMarkerName'](_0x52b5cd['name'])['group']);if(0x0===_0x157ec7['length'])return;_0x157ec7['sort']((_0x1a2acd,_0x40721a)=>{const _0x1549cf=_0x1a2acd['data']['oldRange'],_0x2fc49a=_0x40721a['data']['oldRange'];return null===_0x1549cf&&null===_0x2fc49a?0x0:null===_0x1549cf&&null!==_0x2fc49a?-0x1:null!==_0x1549cf&&null===_0x2fc49a?0x1:_0x1549cf['start']['isBefore'](_0x2fc49a['start'])?-0x1:0x1;});const _0x25a40a=new Set(),_0x115cac=new Set();for(const {name:_0x2c9f4c,data:_0x42270e}of _0x157ec7){const {id:_0xe144b3}=this['_splitMarkerName'](_0x2c9f4c);if(null===_0x42270e['oldRange']){const _0x3dc5e9=this['_handleNewSuggestionMarker'](_0x2c9f4c);_0x115cac['add'](_0x3dc5e9);}else{const _0x3628cf=this['_suggestions']['get'](_0xe144b3);null!==_0x42270e['newRange']||_0x3628cf['isInContent']?(_0x25a40a['add'](_0x3628cf['head']),_0x115cac['add'](_0x3628cf)):this['_removeSuggestion'](_0x3628cf);}}_0x115cac['size']>0x0&&this['_refreshSuggestionsChain'](_0x115cac);for(const _0x29c041 of _0x25a40a)this['fire']('suggestionChanged',_0x29c041);}),_0x13f5af['model']['on']('applyOperation',(_0x521d93,_0x7133d2)=>{const _0x3de19b=_0x7133d2[0x0];if(!this['_suggestions']['size'])return;if(!_0x3de19b['isDocumentOperation'])return;if(_0x3de19b['batch']['isUndo']||!_0x3de19b['batch']['isLocal'])return;let _0x507e89,_0x29c454;switch(_0x3de19b['type']){case'insert':_0x507e89=_0x13f5af['model']['createPositionAt'](_0x3de19b['position']),_0x29c454=_0x507e89['getShiftedBy'](_0x3de19b['howMany']);break;case'split':_0x507e89=_0x13f5af['model']['createPositionAt'](_0x3de19b['splitPosition']),_0x29c454=_0x13f5af['model']['createPositionAt'](_0x3de19b['moveTargetPosition']);break;case'move':_0x507e89=_0x13f5af['model']['createPositionAt'](_0x3de19b['targetPosition']),_0x29c454=_0x507e89['getShiftedBy'](_0x3de19b['howMany']);break;default:return;}const _0x3cbec5=_0x13f5af['model']['createRange'](_0x507e89,_0x29c454);_0x13f5af['model']['change'](()=>{for(const {suggestion:_0x3bafe4,meta:_0x15918b}of this['_findSuggestions'](_0x3cbec5)){if(_0x3bafe4['isMultiRange'])continue;if('formatInline'==_0x3bafe4['type'])continue;const _0xb7d2ce=this['_getAttributeKey'](_0x3bafe4);if(_0xb7d2ce&&this['_isBlockAttribute'](_0xb7d2ce)&&'split'!=_0x3de19b['type'])continue;const _0x31648a=_0x3bafe4['data']&&_0x3bafe4['data']['multipleBlocks'];('formatBlock'!=_0x3bafe4['type']||'split'==_0x3de19b['type']&&!_0x31648a)&&(_0x15918b['containsRangeInObject']||'insertion'==_0x3bafe4['type']&&_0x15918b['isOwn']||_0x3bafe4['getFirstRange']()['containsRange'](_0x3cbec5)&&this['_breakSuggestionMarker'](_0x3bafe4,_0x507e89,_0x29c454));}});},{'priority':'lowest'}),_0x13f5af['model']['on']('deleteContent',(_0x150ea4,_0x32a64c)=>{const _0xd29d32=_0x32a64c[0x0],_0x1bdd4e=_0x32a64c[0x1];if(_0x1bdd4e&&_0x1bdd4e['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0xd29d32['isCollapsed'])return;const _0x1cfd43=_0x13f5af['model']['schema'],{start:_0x477437,end:_0x582093}=_0xd29d32['getFirstRange'](),_0x4849da=_0x477437['nodeAfter']&&_0x1cfd43['isLimit'](_0x477437['nodeAfter'])?null:_0x1cfd43['getNearestSelectionRange'](_0x477437,'forward'),_0x37c2b3=_0x582093['nodeBefore']&&_0x1cfd43['isLimit'](_0x582093['nodeBefore'])?null:_0x1cfd43['getNearestSelectionRange'](_0x582093,'backward'),_0x4d4d40=_0x13f5af['model']['createRange'](_0x4849da?_0x4849da['start']:_0x477437,_0x37c2b3?_0x37c2b3['end']:_0x582093);_0x13f5af['model']['change'](_0x5774ed=>{this['markDeletion'](_0x4d4d40);const _0x7c3e68=_0x13f5af['model']['schema']['getNearestSelectionRange'](_0x4d4d40['start']);_0xd29d32['is']('documentSelection')?_0x5774ed['setSelection'](_0x7c3e68):_0xd29d32['setTo'](_0x7c3e68);}),_0x150ea4['stop']();},{'priority':_0x41de16['normal']+0xa}),_0x13f5af['model']['on']('insertContent',(_0xb5be66,_0x5aed01)=>{const _0x14b12f=_0x5aed01[_0x5aed01['length']-0x1];_0x14b12f&&_0x14b12f['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x13f5af['model']['change'](()=>{let _0x3b8dc6=_0x13f5af['model']['insertContent'](_0x5aed01[0x0],_0x5aed01[0x1],_0x5aed01[0x2],{'forceDefaultExecution':!0x0});if(!_0x3b8dc6)return;_0xb5be66['return']=_0x3b8dc6['clone']();const _0x19848a=_0x3b8dc6['end']['nodeBefore'],_0x5f4101=_0x13f5af['model']['schema'];_0x19848a&&_0x5f4101['isBlock'](_0x19848a)&&!_0x5f4101['isObject'](_0x19848a)&&(_0x3b8dc6=_0x13f5af['model']['createRange'](_0x3b8dc6['start'],_0x13f5af['model']['createPositionAt'](_0x19848a,'end'))),this['markInsertion'](_0x3b8dc6);}),_0xb5be66['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x319c81=new O(_0x13f5af,this['_suggestions']);_0x13f5af['commands']['add']('acceptSuggestion',_0x319c81),this['enableCommand']('acceptSuggestion');const _0x168131=new x(_0x13f5af,this['_suggestions']);_0x13f5af['commands']['add']('discardSuggestion',_0x168131),this['enableCommand']('discardSuggestion'),_0x13f5af['commands']['add']('acceptAllSuggestions',new M(_0x13f5af,_0x319c81,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x13f5af['commands']['add']('discardAllSuggestions',new M(_0x13f5af,_0x168131,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x13f5af['commands']['add']('acceptSelectedSuggestions',new R(_0x13f5af,_0x319c81,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x13f5af['commands']['add']('discardSelectedSuggestions',new R(_0x13f5af,_0x168131,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x21b138=_0x13f5af['plugins']['get']('CommentsRepository');this['listenTo'](_0x21b138,'addComment',(_0x3514ed,{threadId:_0x2acd3d})=>{const _0xf1ab63=this['_suggestions']['get'](_0x2acd3d);_0xf1ab63&&_0xf1ab63['commentThread']&&0x1===_0xf1ab63['commentThread']['length']&&this['_updateSuggestionData'](_0x2acd3d,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x21b138,'removeComment',(_0x1588b6,{threadId:_0x440807})=>{const _0x474207=this['_suggestions']['get'](_0x440807);_0x474207&&_0x474207['commentThread']&&!_0x474207['commentThread']['length']&&this['_updateSuggestionData'](_0x440807,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x1eb0c6){const _0x2e09fd=_0x1204ff([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]),_0x53f4f0=0x3d8d0df,_0x22f382=0x3df53bf^_0x53f4f0,_0x5262ed=window[_0x1204ff([0x44,0x61,0x74,0x65])][_0x1204ff([0x6e,0x6f,0x77])](),_0x3bb3bc=_0x1eb0c6[_0x1204ff([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1361a9=new window[(_0x1204ff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x555ca3=>{_0x3bb3bc[_0x1204ff([0x6f,0x6e,0x63,0x65])](_0x1204ff([0x72,0x65,0x61,0x64,0x79]),_0x555ca3);}),_0x51f01f={[_0x1204ff([0x6b,0x74,0x79])]:_0x1204ff([0x45,0x43]),[_0x1204ff([0x75,0x73,0x65])]:_0x1204ff([0x73,0x69,0x67]),[_0x1204ff([0x63,0x72,0x76])]:_0x1204ff([0x50,0x2d,0x32,0x35,0x36]),[_0x1204ff([0x78])]:_0x1204ff([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]),[_0x1204ff([0x79])]:_0x1204ff([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]),[_0x1204ff([0x61,0x6c,0x67])]:_0x1204ff([0x45,0x53,0x32,0x35,0x36])},_0x555327=_0x3bb3bc[_0x1204ff([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1204ff([0x67,0x65,0x74])](_0x1204ff([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x260ab1(){let _0x37e951,_0x4343d3=null,_0x3722f2=null;try{if(_0x555327==_0x1204ff([0x47,0x50,0x4c]))return _0x1204ff([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x37e951=_0x17b42f(),!_0x37e951)return _0x1204ff([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x37e951[_0x1204ff([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3722f2=_0x382a6f(_0x37e951[_0x1204ff([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x37e951[_0x1204ff([0x6a,0x74,0x69])])),await _0x415f2d()?_0x54462f()?_0x3ef398()?_0x1204ff([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x468ed5()?(_0x37e951[_0x1204ff([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1204ff([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4343d3=_0x41947a(_0x1204ff([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0xc887ad()):_0x1204ff([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1204ff([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1204ff([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1204ff([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3ef398(){const _0xcffb2d=[_0x1204ff([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1204ff([0x74,0x72,0x69,0x61,0x6c])][_0x1204ff([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x37e951[_0x1204ff([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5262ed/0x3e8:0xe10*_0x22f382;return _0x37e951[_0x1204ff([0x65,0x78,0x70])]<_0xcffb2d;}function _0x54462f(){const _0x3cb411=_0x37e951[_0x1204ff([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3cb411)return!0x1;if(_0x3cb411[_0x1204ff([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1204ff([0x2a])))return!0x0;if(_0x3cb411[_0x1204ff([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1204ff([0x54,0x43])))return!0x0;if(_0x3cb411[_0x1204ff([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1204ff([0x52,0x54,0x43]))){if(_0x170ef2())return!0x0;if(_0x50efa0()||_0x1ef6ea())return!0x0;}return!0x1;}function _0x468ed5(){const _0x175731=_0x37e951[_0x1204ff([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x175731||0x0==_0x175731[_0x1204ff([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x592155}=new URL(window[_0x1204ff([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x175731[_0x1204ff([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x592155))return!0x0;const _0x485842=_0x592155[_0x1204ff([0x73,0x70,0x6c,0x69,0x74])](_0x1204ff([0x2e]));return _0x175731[_0x1204ff([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2ec49f=>_0x2ec49f[_0x1204ff([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1204ff([0x2a])))[_0x1204ff([0x6d,0x61,0x70])](_0x149842=>_0x149842[_0x1204ff([0x73,0x70,0x6c,0x69,0x74])](_0x1204ff([0x2e])))[_0x1204ff([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4166b0=>_0x4166b0[_0x1204ff([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x485842[_0x1204ff([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1204ff([0x6d,0x61,0x70])](_0x56ad00=>Array(_0x485842[_0x1204ff([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x56ad00[_0x1204ff([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1204ff([0x66,0x69,0x6c,0x6c])](_0x56ad00[0x0]===_0x1204ff([0x2a])?_0x1204ff([0x2a]):'')[_0x1204ff([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x56ad00))[_0x1204ff([0x73,0x6f,0x6d,0x65])](_0x543cf9=>_0x485842[_0x1204ff([0x65,0x76,0x65,0x72,0x79])]((_0x3f3efe,_0x17087f)=>_0x543cf9[_0x17087f]===_0x3f3efe||_0x543cf9[_0x17087f]===_0x1204ff([0x2a])));}function _0xc887ad(){return _0x4343d3&&_0x3722f2?new window[(_0x1204ff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x195622,_0x36753e)=>{_0x4343d3[_0x1204ff([0x74,0x68,0x65,0x6e])](_0x195622,_0x36753e),_0x3722f2[_0x1204ff([0x74,0x68,0x65,0x6e])](_0x2c928a=>{_0x2c928a!=_0x1204ff([0x56,0x61,0x6c,0x69,0x64])&&_0x195622(_0x2c928a);},_0x36753e);}):_0x4343d3||_0x3722f2||_0x1204ff([0x56,0x61,0x6c,0x69,0x64]);}}function _0x382a6f(_0x5e08e5,_0x286d89){return new window[(_0x1204ff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a8c56=>{if(_0x4fb258())return _0x4a8c56(_0x1204ff([0x56,0x61,0x6c,0x69,0x64]));_0x20b0dd(),_0x3bb3bc[_0x1204ff([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1204ff([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x354b01=!0x1;const _0x37aae1=_0x320756();function _0x4ab570(_0x58612f){return!!_0x58612f&&(typeof _0x58612f===_0x1204ff([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x58612f===_0x1204ff([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x58612f[_0x1204ff([0x74,0x68,0x65,0x6e])]===_0x1204ff([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x58612f[_0x1204ff([0x63,0x61,0x74,0x63,0x68])]===_0x1204ff([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x41623e(_0x3891b2){_0xa291e1(_0x3891b2)[_0x1204ff([0x74,0x68,0x65,0x6e])](_0x211b02=>{if(!_0x211b02||_0x211b02[_0x1204ff([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1204ff([0x6f,0x6b]))return _0x1204ff([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xe62384(_0x41fe1f(_0x37aae1+_0x286d89))!=_0x211b02[_0x1204ff([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1204ff([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1204ff([0x56,0x61,0x6c,0x69,0x64]);})[_0x1204ff([0x74,0x68,0x65,0x6e])](_0x369dde=>(_0x43753f(),_0x369dde),()=>{const _0x4279c8=_0x50bfb2();return null==_0x4279c8?(_0x43753f(),_0x1204ff([0x56,0x61,0x6c,0x69,0x64])):_0x1204ff(_0x5262ed-_0x4279c8>(0x27d454df^_0x53f4f0)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1204ff([0x74,0x68,0x65,0x6e])](_0x4a8c56)[_0x1204ff([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4a8c56(_0x1204ff([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x9a68bd=0x3ee3e5f^_0x53f4f0;function _0x43753f(){const _0x4f973a=_0x1204ff([0x6c,0x6c,0x63,0x74,0x2d])+_0xe62384(_0x41fe1f(_0x5e08e5)),_0x194462=_0x321dda(_0xe62384(window[_0x1204ff([0x4d,0x61,0x74,0x68])][_0x1204ff([0x63,0x65,0x69,0x6c])](_0x5262ed/_0x9a68bd)));window[_0x1204ff([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1204ff([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4f973a,_0x194462);}function _0x50bfb2(){const _0xb7f9a7=_0x1204ff([0x6c,0x6c,0x63,0x74,0x2d])+_0xe62384(_0x41fe1f(_0x5e08e5)),_0x1bc09b=window[_0x1204ff([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1204ff([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xb7f9a7);return _0x1bc09b?window[_0x1204ff([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x321dda(_0x1bc09b),0x10)*_0x9a68bd:null;}function _0xa291e1(_0x4e2081){return new window[(_0x1204ff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x354b3a,_0x5dd464)=>{_0x4e2081[_0x1204ff([0x74,0x68,0x65,0x6e])](_0x354b3a,_0x5dd464),window[_0x1204ff([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5dd464,0x3d9041f^_0x53f4f0);});}}_0x3bb3bc[_0x1204ff([0x6f,0x6e])](_0x1204ff([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4b8ba9,_0x5c2026)=>{if(_0x5c2026[0x0]!=_0x5e08e5)return _0x4a8c56(_0x1204ff([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5c2026[0x1]={..._0x5c2026[0x1],[_0x1204ff([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x37aae1};},{[_0x1204ff([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1204ff([0x68,0x69,0x67,0x68])}),_0x3bb3bc[_0x1204ff([0x6f,0x6e])](_0x1204ff([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1ba9a9=>{_0x4ab570(_0x1ba9a9[_0x1204ff([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x354b01=!0x0,_0x41623e(_0x1ba9a9[_0x1204ff([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1204ff([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1204ff([0x6c,0x6f,0x77])}),_0x1361a9[_0x1204ff([0x74,0x68,0x65,0x6e])](()=>{_0x354b01||_0x4a8c56(_0x1204ff([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4fb258(){return _0x3bb3bc[_0x1204ff([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1204ff([0x76,0x69,0x65,0x77])][_0x1204ff([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1204ff([0x61,0x75,0x74,0x6f]);}function _0x20b0dd(){_0x3bb3bc[_0x1204ff([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1204ff([0x76,0x69,0x65,0x77])][_0x1204ff([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1204ff([0x61,0x75,0x74,0x6f]);}}function _0x41947a(_0x48e06f){const _0x4b4ce8=[new window[(_0x1204ff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5561bf=>setTimeout(_0x5561bf,0x3d1ee13^_0x53f4f0)),_0x1361a9[_0x1204ff([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1204ff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e6e1a=>{let _0x4a020e=0x0;_0x3bb3bc[_0x1204ff([0x6d,0x6f,0x64,0x65,0x6c])][_0x1204ff([0x6f,0x6e])](_0x1204ff([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x187c2e,_0x459021)=>{_0x459021[0x0][_0x1204ff([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4a020e++,_0x4a020e==(0x3d8d537^_0x53f4f0)&&(_0x5e6e1a(),_0x187c2e[_0x1204ff([0x6f,0x66,0x66])]());});}))];return window[_0x1204ff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1204ff([0x72,0x61,0x63,0x65])](_0x4b4ce8)[_0x1204ff([0x74,0x68,0x65,0x6e])](()=>_0x48e06f);}async function _0x346d48(){await _0x1361a9,_0x3bb3bc[_0x1204ff([0x6d,0x6f,0x64,0x65,0x6c])][_0x1204ff([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x159417,_0x3bb3bc[_0x1204ff([0x6d,0x6f,0x64,0x65,0x6c])][_0x1204ff([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x159417,_0x3bb3bc[_0x1204ff([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1204ff([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x170ef2(){return _0x4b7ed0(_0x1204ff([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0xeda105(_0x1204ff([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x1204ff([0x73,0x74,0x61,0x74,0x65])]==_0x1204ff([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x50efa0(){return _0x4b7ed0(_0x1204ff([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 _0x1ef6ea(){return _0x4b7ed0(_0x1204ff([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x5cffaa(_0x3492ee){const _0x2767e1=_0x38fa07();_0x3bb3bc[_0x2767e1]=_0x1204ff([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3492ee,_0x3492ee!=_0x1204ff([0x56,0x61,0x6c,0x69,0x64])&&_0x346d48();}function _0x38fa07(){const _0x28a71d=window[_0x1204ff([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1204ff([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1204ff([0x6e,0x6f,0x77])]())[_0x1204ff([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1204ff([0x2e]),'');let _0x5eaefd=_0x1204ff([0x52]);for(let _0x3e3baa=0x0;_0x3e3baa<_0x28a71d[_0x1204ff([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3e3baa+=0x2){let _0x486793=window[_0x1204ff([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x28a71d[_0x1204ff([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3e3baa,_0x3e3baa+0x2));_0x486793>=_0x2e09fd[_0x1204ff([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x486793-=_0x2e09fd[_0x1204ff([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5eaefd+=_0x2e09fd[_0x486793];}return _0x5eaefd;}function _0x17b42f(){const _0xb735e7=_0x555327[_0x1204ff([0x73,0x70,0x6c,0x69,0x74])](_0x1204ff([0x2e]));if(0x3!=_0xb735e7[_0x1204ff([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3c4e77(_0xb735e7[0x1]);function _0x3c4e77(_0x2bf6a6){const _0x11827b=_0x13e27d(_0x2bf6a6);return _0x11827b&&_0x38f607()?_0x11827b:null;function _0x38f607(){const _0x471863=_0x11827b[_0x1204ff([0x6a,0x74,0x69])],_0x48c16a=window[_0x1204ff([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x471863[_0x1204ff([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x471863[_0x1204ff([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x504348={..._0x11827b,[_0x1204ff([0x6a,0x74,0x69])]:_0x471863[_0x1204ff([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x471863[_0x1204ff([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x504348[_0x1204ff([0x76,0x63])],_0x41fe1f(_0x504348)==_0x48c16a;}}}async function _0x415f2d(){let _0x199815=!0x0;try{const _0x378465=_0x555327[_0x1204ff([0x73,0x70,0x6c,0x69,0x74])](_0x1204ff([0x2e])),[_0x6565c2,_0x5148a6,_0x4c7a94]=_0x378465;return _0x20ed70(_0x6565c2),await _0x3c28a8(_0x6565c2,_0x5148a6,_0x4c7a94),_0x199815;}catch{return!0x1;}function _0x20ed70(_0x125279){const _0x4b49c9=_0x13e27d(_0x125279);_0x4b49c9&&_0x4b49c9[_0x1204ff([0x61,0x6c,0x67])]==_0x1204ff([0x45,0x53,0x32,0x35,0x36])||(_0x199815=!0x1);}async function _0x3c28a8(_0x4c9a2d,_0x1bc3be,_0x1a0972){const _0x194021=window[_0x1204ff([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1204ff([0x66,0x72,0x6f,0x6d])](_0x287e7b(_0x1a0972),_0x3e6763=>_0x3e6763[_0x1204ff([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xa0fecc=new window[(_0x1204ff([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1204ff([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4c9a2d+_0x1204ff([0x2e])+_0x1bc3be),_0x30f014=window[_0x1204ff([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1204ff([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x30f014)return;const _0x255fec=await _0x30f014[_0x1204ff([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1204ff([0x6a,0x77,0x6b]),_0x51f01f,{[_0x1204ff([0x6e,0x61,0x6d,0x65])]:_0x1204ff([0x45,0x43,0x44,0x53,0x41]),[_0x1204ff([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1204ff([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1204ff([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x30f014[_0x1204ff([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1204ff([0x6e,0x61,0x6d,0x65])]:_0x1204ff([0x45,0x43,0x44,0x53,0x41]),[_0x1204ff([0x68,0x61,0x73,0x68])]:{[_0x1204ff([0x6e,0x61,0x6d,0x65])]:_0x1204ff([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x255fec,_0x194021,_0xa0fecc)||(_0x199815=!0x1);}}function _0x13e27d(_0xd34991){return _0xd34991[_0x1204ff([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1204ff([0x65,0x79]))?JSON[_0x1204ff([0x70,0x61,0x72,0x73,0x65])](_0x287e7b(_0xd34991)):null;}function _0x287e7b(_0x29f52b){return window[_0x1204ff([0x61,0x74,0x6f,0x62])](_0x29f52b[_0x1204ff([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1204ff([0x2b]))[_0x1204ff([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1204ff([0x2f])));}function _0x41fe1f(_0x2b0aad){let _0x472455=0x1505;function _0xf52ea9(_0x390330){for(let _0x2533d6=0x0;_0x2533d6<_0x390330[_0x1204ff([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2533d6++){const _0x9dc1fc=_0x390330[_0x1204ff([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2533d6);_0x472455=(_0x472455<<0x5)+_0x472455+_0x9dc1fc,_0x472455&=_0x472455;}}function _0x38877d(_0x25249c){Array[_0x1204ff([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x25249c)?_0x25249c[_0x1204ff([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x38877d):_0x25249c&&typeof _0x25249c==_0x1204ff([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1204ff([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x25249c)[_0x1204ff([0x73,0x6f,0x72,0x74])]()[_0x1204ff([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x58ac5e,_0x324ec2])=>{_0xf52ea9(_0x58ac5e),_0x38877d(_0x324ec2);}):_0xf52ea9(window[_0x1204ff([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x25249c));}return _0x38877d(_0x2b0aad),_0x472455>>>0x0;}function _0xe62384(_0x2bd0d3){return _0x2bd0d3[_0x1204ff([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1204ff([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1204ff([0x30]));}function _0x321dda(_0x2b8f97){return _0x2b8f97[_0x1204ff([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1204ff([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1204ff([0x6a,0x6f,0x69,0x6e])]('');}function _0x4b7ed0(_0x1aabc1){return _0x3bb3bc[_0x1204ff([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1204ff([0x68,0x61,0x73])](_0x1aabc1);}function _0xeda105(_0x44e76a){return _0x3bb3bc[_0x1204ff([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1204ff([0x67,0x65,0x74])](_0x44e76a);}function _0x159417(){}function _0x1204ff(_0x241159){return _0x241159['map'](_0x2c3e56=>String['fromCharCode'](_0x2c3e56))['join']('');}_0x5cffaa(await _0x260ab1());}(this);}set['adapter'](_0x3c8a45){if(this['_adapter'])throw new _0x4884ad('track-changes-adapter-already-set',this);this['_adapter']=_0x3c8a45;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x1a0596=!0x1,toJSON:_0x1828a5=!0x1}={}){const _0x3a8b4d=[];for(const _0x2ed4be of this['_suggestions']['values']())_0x1a0596&&!_0x2ed4be['isInContent']||_0x3a8b4d['push'](_0x2ed4be);return _0x1828a5?_0x3a8b4d['map'](_0x253ad2=>_0x253ad2['toJSON']()):_0x3a8b4d;}['getSuggestion'](_0x3bcf89){const _0x421ca4=this['_suggestions']['get'](_0x3bcf89);if(!_0x421ca4)throw new _0x4884ad('track-changes-suggestion-not-found',this);return _0x421ca4;}['hasSuggestion'](_0x48043a){return this['_suggestions']['has'](_0x48043a);}['addSuggestionData'](_0x492ce1){const {authorId:_0x1e89ba,id:_0x5a08f1,originalSuggestionId:_0xda31ff,attributes:_0x4ce0cc}=_0x492ce1,[_0x166207,_0x210230]=_0x492ce1['type']['split'](':'),_0x1a6fb8=this['_suggestions']['get'](_0x5a08f1)||this['_createSuggestion'](_0x166207,_0x210230,_0x5a08f1,_0x1e89ba,_0x4ce0cc,_0xda31ff);if(this['_addThreadToSuggestion'](_0x1a6fb8),this['_checkSuggestionCorrectness'](_0x1a6fb8,_0x166207,_0x210230||null,_0x1e89ba),_0x1a6fb8['createdAt']=_0x492ce1['createdAt'],_0x1a6fb8['_isDataLoaded']=!0x0,_0x4ce0cc&&_0x4ce0cc['@external']){const _0x9e3e7e=_0x4ce0cc['@external'],_0x3e85d1=this['_getExternalAuthor'](_0x9e3e7e['authorName']);_0x1a6fb8['authoredAt']=_0x9e3e7e['createdAt'],_0x1a6fb8['author']=_0x3e85d1,_0x1a6fb8['isExternal']=!0x0;}else _0x1a6fb8['authoredAt']=_0x492ce1['createdAt'];switch(_0x492ce1['data']&&(_0x1a6fb8['data']=_0x492ce1['data']),_0x492ce1['attributes']&&(_0x1a6fb8['attributes']=_0x492ce1['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x1a6fb8['_saved']=!0x0),this['_suggestionState']['get'](_0x1a6fb8)){case'notReady':this['_suggestionState']['set'](_0x1a6fb8,'dataReady');break;case'markerReady':_0x1a6fb8['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x1a6fb8])),this['_refreshSuggestionsChain'](new Set([_0x1a6fb8])),this['_suggestionState']['set'](_0x1a6fb8,'ready'),this['fire']('suggestionLoaded',_0x1a6fb8)):this['_suggestionState']['set'](_0x1a6fb8,'removed');}return _0x1a6fb8;}['acceptSuggestion'](_0x29e92e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2b3441 of _0x29e92e['getAllAdjacentSuggestions']())_0x2b3441['accept']();});});}['discardSuggestion'](_0x4ac7d2){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x209085 of _0x4ac7d2['getAllAdjacentSuggestions']())_0x209085['discard']();});});}['enableCommand'](_0x2efd8f,_0x388b0d){const _0xf9d44f=this['editor']['commands']['get'](_0x2efd8f);if(!_0xf9d44f)throw new _0x4884ad('track-changes-command-not-found',this,{'commandName':_0x2efd8f});if(this['_enabledCommands']['has'](_0xf9d44f))throw new _0x4884ad('track-changes-enable-command-twice',this,{'commandName':_0x2efd8f});this['_enabledCommands']['add'](_0xf9d44f),_0x388b0d&&_0xf9d44f['on']('execute',(_0x302a47,_0x2a8865)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x2a8865['length']>0x0&&_0x2a8865[_0x2a8865['length']-0x1]&&_0x2a8865[_0x2a8865['length']-0x1]['forceDefaultExecution']?_0x2a8865['pop']():(_0x302a47['return']=_0x388b0d((..._0x3827e9)=>_0xf9d44f['execute'](..._0x3827e9,{'forceDefaultExecution':!0x0}),..._0x2a8865),_0x302a47['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x3132c2){let _0x1fea50,_0x22fc47;const _0x5058ad=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x1fea50=_0x3132c2();}catch(_0x11a303){_0x22fc47=_0x11a303;}return _0x5058ad||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x22fc47&&_0x4884ad['rethrowUnexpectedError'](_0x22fc47,this),_0x1fea50;}['markInsertion'](_0x4e2df0,_0x16729d=null,_0x1b62cf={}){if(_0x4e2df0['isCollapsed'])return null;const _0x5913b0=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x1b62cf['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2fbf3b,meta:_0x5b6705}of this['_findSuggestions'](_0x4e2df0,'insertion'))if(_0x5b6705['isOwn']){if(!_0x5b6705['isNextTo']){if(_0x5b6705['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!sn(_0x2fbf3b,_0x1b62cf))continue;return _0x2fbf3b;}if(sn(_0x2fbf3b,_0x1b62cf))return _0x2fbf3b;this['_breakSuggestionMarker'](_0x2fbf3b,_0x4e2df0['start'],_0x4e2df0['end']);break;}if(_0x16729d==_0x2fbf3b['subType']&&sn(_0x2fbf3b,_0x1b62cf)){const _0xd456b9=_0x2fbf3b['getFirstRange']();return _0xd456b9['start']['isEqual'](_0x4e2df0['end'])?this['_setSuggestionRange'](_0x2fbf3b,this['_model']['createRange'](_0x4e2df0['start'],_0xd456b9['end'])):this['_setSuggestionRange'](_0x2fbf3b,this['_model']['createRange'](_0xd456b9['start'],_0x4e2df0['end'])),_0x2fbf3b;}}const _0x52726e=_0x320756(),_0x31aef4=_0x5913b0['id'],_0x2043c5=_0x16729d?'insertion:'+_0x16729d:'insertion',_0x4bb4a2=this['_setSuggestionData']({'id':_0x52726e,'type':_0x2043c5,'createdAt':new Date(),'authorId':_0x31aef4,'attributes':_0x1b62cf});return this['_addSuggestionMarker'](_0x2043c5,_0x52726e,_0x31aef4,_0x4e2df0),_0x4bb4a2;}['markMultiRangeInsertion'](_0x90d42c,_0x4b707a='multi',_0x1d939f={}){const _0x3188be=this['editor']['plugins']['get']('Users')['me'],_0x492b52=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x4b707a,'join');this['_trackingSessionId']&&(_0x1d939f['trackingSessionId']=this['_trackingSessionId']);for(const _0x1cd54a of this['getSuggestions']())if(_0x1cd54a['author']['id']==_0x3188be['id']&&'insertion'==_0x1cd54a['type']&&_0x1cd54a['subType']==_0x4b707a&&sn(_0x1cd54a,_0x1d939f)&&(_0x492b52(_0x1cd54a['getRanges'](),_0x90d42c)||_0x492b52(_0x90d42c,_0x1cd54a['getRanges']()))){for(const _0x2726e9 of _0x90d42c)_0x1cd54a['addRange'](_0x2726e9);return _0x1cd54a;}for(const {suggestion:_0x56966e,meta:_0x367422}of this['_findSuggestions'](_0x90d42c,'insertion')){if(!_0x367422['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x367422['containsRangeInObject'])continue;if(!sn(_0x56966e,_0x1d939f))continue;let _0xa546f2=!0x0;for(const _0x4dc043 of _0x56966e['getRanges']())for(const _0x531011 of _0x90d42c)if(!_0x4dc043['containsRange'](_0x531011)){_0xa546f2=!0x1;break;}if(_0xa546f2)return _0x56966e;}const _0x3d8b3e=_0x320756(),_0x413bbf=_0x3188be['id'],_0x53ffa1='insertion:'+_0x4b707a,_0xe41b65=this['_setSuggestionData']({'id':_0x3d8b3e,'type':_0x53ffa1,'createdAt':new Date(),'authorId':_0x413bbf,'attributes':_0x1d939f});for(const _0x5e83ad of _0x90d42c)this['_addSuggestionMarker'](_0x53ffa1,_0x3d8b3e,_0x413bbf,_0x5e83ad,T['getMultiRangeId']());return _0xe41b65;}['markInlineFormat'](_0x3b4837,_0x41b92d,_0x49ca75=null,_0x5bd4f5={}){if(_0x49ca75=_0x49ca75||Ht(_0x41b92d),_0x3b4837['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x5bd4f5['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x2700b0=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x49ca75,'accept');return this['forceDefaultExecution'](()=>_0x2700b0([_0x3b4837],_0x41b92d,_0x5bd4f5)),null;}const _0x28952f=this['editor']['plugins']['get']('Users')['me'],_0x10c342=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x2194e0,meta:_0x4701e3}of this['_findSuggestions'](_0x3b4837,'insertion'))_0x4701e3['isOwn']&&!_0x4701e3['isInsideObject']&&_0x10c342['push'](..._0x2194e0['getRanges']());}const _0x4fd123=function(_0x18594c,_0x36e329){const _0x4ccdf2=[];for(const _0x43e797 of _0x36e329){const _0x33c0a8=_0x18594c['getIntersection'](_0x43e797);_0x33c0a8&&_0x4ccdf2['push'](_0x33c0a8);}return _0x4ccdf2;}(_0x3b4837,_0x10c342),_0x5ca335=function(_0x3686eb,_0x4eba39){const _0x32dd0d=[_0x3686eb];for(const _0xdb4df1 of _0x4eba39){let _0x5b2c04=0x0;for(;_0x5b2c04<_0x32dd0d['length'];){const _0x8cd948=_0x32dd0d[_0x5b2c04]['getDifference'](_0xdb4df1);_0x32dd0d['splice'](_0x5b2c04,0x1,..._0x8cd948),_0x5b2c04+=_0x8cd948['length'];}}return _0x32dd0d;}(_0x3b4837,_0x10c342);_0x4fd123['length']&&this['_model']['change'](()=>{for(const _0x24482a of _0x4fd123){const _0xb86a0d=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x49ca75,'accept');this['forceDefaultExecution'](()=>_0xb86a0d([_0x24482a],_0x41b92d,_0x5bd4f5));}});for(const _0x5124e8 of _0x5ca335){let _0xbeca6e=null,_0xb5b62a=_0x5124e8['start'],_0x277129=_0x5124e8['end'];for(const {suggestion:_0x30b4b2,meta:_0x144145}of this['_findSuggestions'](_0x5124e8,'formatInline')){if(!_0x144145['isOwn'])continue;if(_0x30b4b2['subType']!=_0x49ca75)continue;if(!sn(_0x30b4b2,_0x5bd4f5))continue;const _0x3e2e38=_0x30b4b2['getFirstRange']();if(_0x3e2e38['containsRange'](_0x5124e8,!0x0))return null;_0xb5b62a=_0xb5b62a['isBefore'](_0x3e2e38['start'])?_0xb5b62a:_0x3e2e38['start'],_0x277129=_0x277129['isAfter'](_0x3e2e38['end'])?_0x277129:_0x3e2e38['end'],_0xbeca6e?_0x3e2e38['start']['isBefore'](_0xbeca6e['getFirstRange']()['start'])?(_0xbeca6e['removeMarkers'](),_0xbeca6e=_0x30b4b2):_0x30b4b2['removeMarkers']():_0xbeca6e=_0x30b4b2;}const _0x163f7b=this['_model']['createRange'](_0xb5b62a,_0x277129);if(_0xbeca6e)this['_setSuggestionRange'](_0xbeca6e,_0x163f7b);else{const _0x12f78e=_0x320756(),_0x3245ba=_0x28952f['id'];this['_setSuggestionData']({'id':_0x12f78e,'type':'formatInline:'+_0x49ca75,'data':_0x41b92d,'createdAt':new Date(),'authorId':_0x3245ba,'attributes':_0x5bd4f5}),this['_addSuggestionMarker']('formatInline:'+_0x49ca75,_0x12f78e,_0x3245ba,_0x163f7b);}}return null;}['markBlockFormat'](_0x1ebbe1,_0x306b06,_0x5d5fd5=[],_0x4054d4=null,_0x1c895b={}){_0x306b06['formatGroupId']||(_0x306b06['formatGroupId']=_0x306b06['commandName']),_0x306b06['multipleBlocks']=_0x1ebbe1['is']('range'),_0x4054d4=_0x4054d4||Ht(_0x306b06);const _0x2402d6=_0x5d5fd5['map'](_0xcd740d=>tn(_0xcd740d,this['_model'])),_0x4793eb=_0x1ebbe1['is']('range')?_0x1ebbe1:tn(_0x1ebbe1,this['_model']);if(this['_trackingSessionId']&&(_0x1c895b['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1f832e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4054d4,'accept');return this['forceDefaultExecution'](()=>_0x1f832e([_0x4793eb],_0x306b06,_0x1c895b)),null;}_0x2402d6['push'](_0x4793eb);let _0x47d310=!0x0;for(const _0x57a100 of _0x2402d6)if(!this['_rangeIsInLocalUserInsertion'](_0x57a100)){_0x47d310=!0x1;break;}if(_0x47d310&&'always'!==this['_trackFormatChanges']){const _0x1bd7c7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4054d4,'accept');return this['forceDefaultExecution'](()=>_0x1bd7c7([_0x4793eb],_0x306b06,_0x1c895b)),null;}let _0xef3bc=null,_0x2e10d8=_0x4793eb['start'],_0xcafbd3=_0x4793eb['end'];for(const {suggestion:_0x4f7a2d,meta:_0x28207a}of this['_findSuggestions'](_0x4793eb,'formatBlock')){if(!_0x28207a['isOwn'])continue;if(_0x28207a['isNextTo']||_0x28207a['containsRangeInObject']||_0x28207a['isInsideObject'])continue;if(_0x4f7a2d['data']['formatGroupId']!=_0x306b06['formatGroupId'])continue;if(!sn(_0x4f7a2d,_0x1c895b))continue;const _0x40d7f0=_0x4f7a2d['getFirstRange']();if(_0x4f7a2d['subType']==_0x4054d4){if(_0x40d7f0['containsRange'](_0x4793eb,!0x0))return null;_0x2e10d8=_0x2e10d8['isBefore'](_0x40d7f0['start'])?_0x2e10d8:_0x40d7f0['start'],_0xcafbd3=_0xcafbd3['isAfter'](_0x40d7f0['end'])?_0xcafbd3:_0x40d7f0['end'],_0xef3bc?_0x40d7f0['start']['isBefore'](_0xef3bc['getFirstRange']()['start'])?(_0xef3bc['removeMarkers'](),_0xef3bc=_0x4f7a2d):_0x4f7a2d['removeMarkers']():_0xef3bc=_0x4f7a2d;}else{const _0x336fff=_0x4793eb['getIntersection'](_0x40d7f0);this['_cutOutSuggestionMarker'](_0x4f7a2d,_0x336fff);}}const _0x14c611=this['editor']['plugins']['get']('Users')['me'],_0x68f200=_0x320756(),_0x1b2990=_0x14c611['id'];if(_0xef3bc)return this['_setSuggestionRange'](_0xef3bc,this['_model']['createRange'](_0x2e10d8,_0xcafbd3)),_0xef3bc;{const _0x34eb40=this['_setSuggestionData']({'id':_0x68f200,'type':'formatBlock:'+_0x4054d4,'data':_0x306b06,'createdAt':new Date(),'authorId':_0x1b2990,'attributes':_0x1c895b});return this['_addSuggestionMarker']('formatBlock:'+_0x4054d4,_0x68f200,_0x1b2990,this['_model']['createRange'](_0x2e10d8,_0xcafbd3)),_0x34eb40;}}['markMultiRangeBlockFormat'](_0x3aa086,_0x15cc01,_0x285827=[],_0x45aca6=null,_0x453157={}){_0x15cc01['formatGroupId']||(_0x15cc01['formatGroupId']=_0x15cc01['commandName']);const _0x5200e2=_0x3aa086[0x0];_0x15cc01['multipleBlocks']=_0x5200e2['is']('range'),_0x45aca6=_0x45aca6||Ht(_0x15cc01);const _0x5afe1f=_0x285827['map'](_0x4dcd49=>tn(_0x4dcd49,this['_model'])),_0x3df56e=_0x5200e2['is']('range')?_0x3aa086:_0x3aa086['map'](_0x180504=>tn(_0x180504,this['_model']));if(this['_trackingSessionId']&&(_0x453157['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5a10c0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x45aca6,'accept');return this['forceDefaultExecution'](()=>_0x5a10c0(_0x3df56e,_0x15cc01,_0x453157)),null;}_0x5afe1f['push'](..._0x3df56e);let _0x26d1e5=!0x0;for(const _0x4e713d of _0x5afe1f)if(!this['_rangeIsInLocalUserInsertion'](_0x4e713d)){_0x26d1e5=!0x1;break;}if(_0x26d1e5&&'always'!==this['_trackFormatChanges']){const _0x96b243=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x45aca6,'accept');return this['forceDefaultExecution'](()=>_0x96b243(_0x3df56e,_0x15cc01,_0x453157)),null;}const _0x1876ea=this['editor']['plugins']['get']('Users')['me'];for(const _0x4e1601 of this['getSuggestions']()){const _0x16325f=_0x4e1601['data'];if(_0x4e1601['author']['id']!=_0x1876ea['id'])continue;if('formatBlock'!=_0x4e1601['type']||_0x16325f['formatGroupId']!=_0x15cc01['formatGroupId'])continue;if(!sn(_0x4e1601,_0x453157))continue;const _0x20043c=_0x4e1601['subType']==_0x45aca6;for(let _0xba6315=0x0;_0xba6315<_0x3df56e['length'];_0xba6315++){const _0x4afdf3=_0x3df56e[_0xba6315];for(const _0x1a6622 of _0x4e1601['getMarkers']()){const _0x340f8a=_0x1a6622['getRange']();if(_0x4afdf3['isEqual'](_0x340f8a)){_0x20043c?(_0x3df56e['splice'](_0xba6315,0x1),_0xba6315--):_0x4e1601['removeMarker'](_0x1a6622['name']);break;}}}}if(0x0==_0x3df56e['length'])return null;const _0x2d1af6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x45aca6,'join');for(const _0xcbed09 of this['getSuggestions']()){const _0x23585f=_0xcbed09['data'];if(_0xcbed09['author']['id']==_0x1876ea['id']&&('formatBlock'==_0xcbed09['type']&&_0x23585f['formatGroupId']==_0x15cc01['formatGroupId']&&_0xcbed09['subType']==_0x45aca6&&sn(_0xcbed09,_0x453157)&&(_0x2d1af6(_0xcbed09['getRanges'](),_0x3df56e)||_0x2d1af6(_0x3df56e,_0xcbed09['getRanges']())))){for(const _0x39ab6a of _0x3df56e)_0xcbed09['addRange'](_0x39ab6a);return _0xcbed09;}}const _0x2e778a=_0x320756(),_0x7cb39a=_0x1876ea['id'],_0x354487='formatBlock:'+_0x45aca6,_0x419212=this['_setSuggestionData']({'id':_0x2e778a,'type':_0x354487,'data':_0x15cc01,'createdAt':new Date(),'authorId':_0x7cb39a,'attributes':_0x453157});for(const _0x58eee8 of _0x3df56e)this['_addSuggestionMarker'](_0x354487,_0x2e778a,_0x7cb39a,_0x58eee8,T['getMultiRangeId']());return _0x419212;}['markDeletion'](_0x2460ee,_0x341799=null,_0x13ae11={}){if(_0x2460ee['isCollapsed'])return null;const _0x38d8b9=this['editor']['plugins']['get']('Users')['me'],_0x2e61fd=new _0x5a100f(_0x2460ee['start'],_0x2460ee['end']);this['_trackingSessionId']&&(_0x13ae11['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x166e35,meta:_0x22c04c}of this['_findSuggestions'](_0x2e61fd,'insertion'))if(_0x22c04c['isOwn']&&!_0x22c04c['isNextTo']){if(_0x166e35['isMultiRange']){const _0x47b212=_0x166e35['getRanges']()['filter'](_0x29dee4=>'$graveyard'!=_0x29dee4['root']['rootName']);_0x47b212['every'](_0x52a7ea=>_0x2e61fd['containsRange'](_0x52a7ea,!0x0))&&_0x166e35['discard']();if(_0x47b212['some'](_0x2e0807=>_0x2e0807['containsRange'](_0x2e61fd,!0x0))){const _0x4feb8e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x341799,'accept');return this['forceDefaultExecution'](()=>_0x4feb8e([_0x2e61fd],null,_0x13ae11)),null;}}else{const _0x799add=_0x2e61fd['getIntersection'](_0x166e35['getFirstRange']());null!==_0x799add&&_0x166e35['_onDiscard']([_0x799add],null,_0x13ae11);}}if(_0x2e61fd['detach'](),_0x2e61fd['isCollapsed']||'$graveyard'==_0x2e61fd['root']['rootName'])return null;let _0x269d40=null,_0x31889e=_0x2e61fd['start'],_0x386f36=_0x2e61fd['end'];const _0x2fc5ff=this['_findSuggestions'](_0x2e61fd,'deletion');for(const {suggestion:_0x13c44c,meta:_0x1a321a}of _0x2fc5ff){const _0x51be4b=this['_model']['createRange'](_0x31889e,_0x386f36);if(_0x1a321a['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1a321a['containsRangeInObject']&&!_0x1a321a['isInsideObject'])){if(_0x13c44c['isMultiRange']){if(!sn(_0x13c44c,_0x13ae11))continue;let _0x3045a4=!0x0;for(const _0x31d2c7 of _0x13c44c['getRanges']()){if(_0x31d2c7['containsRange'](_0x51be4b,!0x0))return _0x13c44c;_0x51be4b['containsRange'](_0x31d2c7)||(_0x3045a4=!0x1);}_0x3045a4&&_0x13c44c['discard']();}else{const _0x5a22e6=_0x13c44c['getFirstRange']();if(_0x5a22e6['containsRange'](_0x51be4b,!0x0))return _0x13c44c;if(!sn(_0x13c44c,_0x13ae11)){_0x51be4b['containsRange'](_0x5a22e6)?_0x13c44c['removeMarkers']():_0x5a22e6['containsPosition'](_0x31889e)?_0x31889e=_0x5a22e6['end']:_0x5a22e6['containsPosition'](_0x386f36)&&(_0x386f36=_0x5a22e6['start']);continue;}_0x31889e=_0x31889e['isBefore'](_0x5a22e6['start'])?_0x31889e:_0x5a22e6['start'],_0x386f36=_0x386f36['isAfter'](_0x5a22e6['end'])?_0x386f36:_0x5a22e6['end'],_0x13ae11=Object['assign']({},_0x13c44c['attributes']),_0x269d40?_0x5a22e6['start']['isBefore'](_0x269d40['getFirstRange']()['start'])?(_0x269d40['removeMarkers'](),_0x269d40=_0x13c44c):_0x13c44c['removeMarkers']():_0x269d40=_0x13c44c;}}}if(_0x269d40)return this['_setSuggestionRange'](_0x269d40,this['_model']['createRange'](_0x31889e,_0x386f36)),_0x269d40;{const _0xe1aabb=_0x320756(),_0x36a575=this['_model']['createRange'](_0x31889e,_0x386f36),_0x19b316=_0x38d8b9['id'],_0x55e7af=_0x341799?'deletion:'+_0x341799:'deletion',_0x2968e2=this['_setSuggestionData']({'id':_0xe1aabb,'type':_0x55e7af,'createdAt':new Date(),'authorId':_0x19b316,'attributes':_0x13ae11});return this['_addSuggestionMarker'](_0x55e7af,_0xe1aabb,_0x19b316,_0x36a575),_0x2968e2;}}['markMultiRangeDeletion'](_0x1a244d,_0x10d589='multi',_0x548a17={}){const _0x1b15f2=this['editor']['plugins']['get']('Users')['me'],_0x374a4f=_0x1a244d['map'](_0x478716=>new _0x5a100f(_0x478716['start'],_0x478716['end'])),_0x3e8c23=new Set();this['_trackingSessionId']&&(_0x548a17['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x391454,meta:_0xde7d17}of this['_findSuggestions'](_0x374a4f,'insertion'))_0xde7d17['isOwn']&&!_0xde7d17['isNextTo']&&_0x3e8c23['add'](_0x391454);for(const _0x10e82e of _0x3e8c23)if(_0x10e82e['isMultiRange']){const _0x3f340e=_0x10e82e['getRanges']();(!_0x10e82e['attributes']||!_0x10e82e['attributes']['skipNestingCheck'])&&(_0x3f340e['every'](_0x3afb11=>_0x374a4f['some'](_0x391dfc=>_0x391dfc['containsRange'](_0x3afb11,!0x0)))&&_0x10e82e['discard']());if(_0x374a4f['every'](_0x20de52=>_0x3f340e['some'](_0x446cee=>_0x446cee['containsRange'](_0x20de52,!0x0)))){const _0x1ca79e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x10d589,'accept');return this['forceDefaultExecution'](()=>_0x1ca79e(_0x1a244d,null,_0x548a17)),null;}}else{const _0x11c997=_0x10e82e['getFirstRange']();_0x374a4f['some'](_0x3b86e3=>_0x3b86e3['containsRange'](_0x11c997,!0x0))&&_0x10e82e['discard']();if(_0x374a4f['every'](_0x33f250=>_0x11c997['containsRange'](_0x33f250,!0x0))){const _0xced48d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x10d589,'accept');return this['forceDefaultExecution'](()=>_0xced48d(_0x374a4f,null,_0x548a17)),null;}}const _0x27692b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x10d589,'join');let _0x7a2bcc=null;for(const _0x5615db of this['getSuggestions']())if(_0x5615db['author']['id']==_0x1b15f2['id']&&_0x5615db['isInContent']&&'deletion'==_0x5615db['type']&&_0x5615db['subType']==_0x10d589&&sn(_0x5615db,_0x548a17)&&(_0x27692b(_0x5615db['getRanges'](),_0x374a4f)||_0x27692b(_0x374a4f,_0x5615db['getRanges']()))){if(_0x7a2bcc){if(_0x5615db['commentThread']&&_0x5615db['commentThread']['length'])continue;for(const _0x21dbac of _0x5615db['getRanges']())_0x7a2bcc['isIntersectingWithRange'](_0x21dbac)||_0x7a2bcc['addRange'](_0x21dbac);_0x5615db['removeMarkers']();}else{_0x7a2bcc=_0x5615db;for(const _0x16437d of _0x374a4f)_0x5615db['isIntersectingWithRange'](_0x16437d)||_0x5615db['addRange'](_0x16437d);}}if(_0x7a2bcc)return _0x7a2bcc;_0x3e8c23['clear']();for(const {suggestion:_0x289df4,meta:_0x17daba}of this['_findSuggestions'](_0x374a4f,'deletion'))_0x17daba['isOwn']&&(this['_mergeNestedSuggestions']||!_0x17daba['containsRangeInObject']&&!_0x17daba['isInsideObject'])&&sn(_0x289df4,_0x548a17)&&_0x3e8c23['add'](_0x289df4);for(const _0x92b1c9 of _0x3e8c23){const _0x5682b0=_0x92b1c9['getRanges']();if(!_0x548a17||!_0x548a17['skipNestingCheck']){if(_0x374a4f['every'](_0x1991a8=>_0x5682b0['some'](_0x310817=>_0x310817['containsRange'](_0x1991a8,!0x0))))return _0x92b1c9;}(!_0x92b1c9['attributes']||!_0x92b1c9['attributes']['skipNestingCheck'])&&(_0x5682b0['every'](_0x42ae46=>_0x374a4f['some'](_0x12e851=>_0x12e851['containsRange'](_0x42ae46,!0x0)))&&_0x92b1c9['discard']());}const _0x2f8bde=_0x320756(),_0x4cbf6f=_0x1b15f2['id'],_0x2c76be='deletion:'+_0x10d589,_0x4748b6=this['_setSuggestionData']({'id':_0x2f8bde,'type':_0x2c76be,'createdAt':new Date(),'authorId':_0x4cbf6f,'attributes':_0x548a17});for(const _0x1821a4 of _0x374a4f)_0x1821a4['detach'](),_0x1821a4['isCollapsed']||'$graveyard'==_0x1821a4['root']['rootName']||this['_addSuggestionMarker'](_0x2c76be,_0x2f8bde,_0x4cbf6f,_0x1821a4,T['getMultiRangeId']());return _0x4748b6;}['markAttributeChange'](_0x2b0f9a,_0x256772,_0x3cd889,_0x5bb9ef,_0x1b1378){if(_0x2b0f9a['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x1b71d5=this['editor']['plugins']['get']('Users')['me']['id'],_0x164ae1=Array['from'](this['_suggestions']['values']())['filter'](_0x38de45=>'attribute'==_0x38de45['type']&&_0x38de45['data']['key']==_0x256772&&_0x38de45['isIntersectingWithRange'](_0x2b0f9a));if(this['_trackingSessionId']&&(_0x1b1378['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x268e69=this['_findSuggestions'](_0x2b0f9a,'insertion')['filter'](({meta:_0x42c39a})=>_0x42c39a['isOwn']&&!_0x42c39a['isInsideObject']&&!_0x42c39a['isNextTo'])['map'](({suggestion:_0x414ab5})=>_0x414ab5);_0x164ae1['unshift'](..._0x268e69);}const _0x1877ad=new Map([[_0x2b0f9a,_0x3cd889]]);for(const _0x52df44 of _0x164ae1){const _0x567d2e='attribute'==_0x52df44['type']?_0x52df44['data']['oldValue']:void 0x0,_0x450150=_0x52df44['getFirstRange'](),_0x23b7dc=Array['from'](_0x1877ad['keys']())['find'](_0x1f4c29=>_0x1f4c29['isIntersecting'](_0x450150));if(!_0x23b7dc)continue;const _0x49f2c2=_0x23b7dc['getDifference'](_0x450150);this['_isBlockAttribute'](_0x256772)&&'insertion'==_0x52df44['type']&&0x0!=_0x49f2c2['length']||(_0x1877ad['delete'](_0x23b7dc),_0x49f2c2['forEach'](_0x19830c=>{_0x1877ad['set'](_0x19830c,_0x3cd889);}),'insertion'!=_0x52df44['type']&&_0x567d2e!=_0x5bb9ef&&_0x1877ad['set'](_0x23b7dc['getIntersection'](_0x450150),_0x567d2e));}const _0x4c2a04=[];for(const [_0x3cab06,_0x177019]of _0x1877ad){const _0x176ec5=_0x320756(),_0x18ac92={'key':_0x256772,'oldValue':_0x177019,'newValue':_0x5bb9ef};_0x256772['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':_0x256772});const _0x2b6dc7=('attribute:'+(_0x256772+'|'+Ht({'newValue':_0x5bb9ef})))['substring'](0x0,0x3c),_0x32a4c4=this['_setSuggestionData']({'id':_0x176ec5,'type':_0x2b6dc7,'data':_0x18ac92,'createdAt':new Date(),'authorId':_0x1b71d5,'attributes':_0x1b1378});_0x4c2a04['push'](_0x32a4c4),this['_addSuggestionMarker'](_0x2b6dc7,_0x176ec5,_0x1b71d5,_0x3cab06);}return _0x4c2a04;}['enableDefaultAttributesIntegration'](_0x3315e6){this['enableCommand'](_0x3315e6,(_0x1be5fb,..._0x58a78f)=>{this['recordAttributeChanges'](()=>{_0x1be5fb(..._0x58a78f);});});}['registerBlockAttribute'](_0x9330c6){this['editor']['plugins']['get'](_0x177264)['registerBlockAttribute'](_0x9330c6);}['registerInlineAttribute'](_0x3d6c5f){this['editor']['plugins']['get'](_0x177264)['registerInlineAttribute'](_0x3d6c5f);}['startTrackingSession'](_0x311987){return this['_trackingSessionId']=void 0x0!==_0x311987?_0x311987:_0x320756(),this['_trackingSessionId'];}['_getAttributeKey'](_0x46c0d4){return'attribute'==_0x46c0d4['type']?_0x46c0d4['subType']['split']('|')[0x0]:null;}['_applyOperationsAsSuggestions'](_0x46db7b){if(0x0==_0x46db7b['length'])return;const _0x588fad=this['editor'],_0x5d6908=_0x588fad['plugins']['get'](_0x4d80f5),_0x424a67=[];_0x588fad['model']['change'](_0x5dec75=>{for(let _0x5ac7b3=0x0;_0x5ac7b3<_0x46db7b['length'];_0x5ac7b3++){const _0x467c98=_0x46db7b[_0x5ac7b3];if(_0x467c98['baseVersion']=_0x588fad['model']['document']['version'],_0x467c98['isDocumentOperation']=!0x0,_0x5d6908['isMarkedRemoveOperation'](_0x467c98)){const _0x1de0a9=_0x1e7f2c(_0x467c98['newRange'],_0x588fad['model']);_0x424a67['unshift'](_0x5a100f['fromRange'](_0x1de0a9));}else switch(_0x467c98['type']){case'rename':{const _0x4b8e49=_0x467c98['oldName'],_0x1167a3=_0x467c98['newName'];if(_0x4b8e49==_0x1167a3)break;_0x5dec75['batch']['addOperation'](_0x467c98),_0x588fad['model']['applyOperation'](_0x467c98);const _0x2febd5='$elementName',_0x4ff95f=_0x467c98['position'],_0x543089=_0x588fad['model']['createRange'](_0x4ff95f,_0x588fad['model']['createPositionAt'](_0x4ff95f['nodeAfter'],'end'));this['markAttributeChange'](_0x543089,_0x2febd5,_0x4b8e49,_0x1167a3,{'groupId':_0x320756()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x15f5d2=_0x467c98['oldValue'],_0x4f92a4=_0x467c98['newValue'];if(_0x15f5d2==_0x4f92a4)break;_0x5dec75['batch']['addOperation'](_0x467c98),_0x588fad['model']['applyOperation'](_0x467c98);const _0x4d1184=_0x467c98['key'];if(!this['_isRegisteredAttribute'](_0x4d1184))break;const _0x133712=_0x1e7f2c(_0x467c98['range'],_0x588fad['model']);this['markAttributeChange'](_0x133712,_0x4d1184,_0x15f5d2,_0x4f92a4,{'groupId':_0x320756()});break;}case'insert':{_0x5dec75['batch']['addOperation'](_0x467c98),_0x588fad['model']['applyOperation'](_0x467c98);if(_0x46db7b[_0x5ac7b3+0x1]&&'move'==_0x46db7b[_0x5ac7b3+0x1]['type'])break;const _0x4e696e=_0x467c98['position'],_0x270402=_0x467c98['howMany'],_0xfcb684=_0x1e7f2c(_0x588fad['model']['createRange'](_0x4e696e,_0x4e696e['getShiftedBy'](_0x270402)),_0x588fad['model']);this['markInsertion'](_0xfcb684);break;}case'split':{_0x5dec75['batch']['addOperation'](_0x467c98),_0x588fad['model']['applyOperation'](_0x467c98);const _0x1a908a=_0x467c98['splitPosition'],_0x393f68=_0x467c98['moveTargetPosition'];this['markInsertion'](_0x588fad['model']['createRange'](_0x1a908a,_0x393f68));break;}case'move':case'remove':_0x5dec75['batch']['addOperation'](_0x467c98),_0x588fad['model']['applyOperation'](_0x467c98);}}for(const _0x201576 of _0x424a67)_0x201576['detach'](),this['markDeletion'](_0x201576);});}['_setSuggestionRange'](_0x554f81,_0x31ec41){const _0x1b4604=_0x554f81['getFirstMarker']();this['_model']['change'](_0xde9aab=>{_0xde9aab['updateMarker'](_0x1b4604,{'range':_0x31ec41});});}['_addThreadToSuggestion'](_0x572610){const _0x4ea274=_0x572610['id'],_0x5b5ecd=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x4ea274)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5b5ecd,'threadId':_0x4ea274,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x183a3d=this['_commentsRepository']['getCommentThread'](_0x4ea274);_0x183a3d['unbind']('isRemovable'),_0x183a3d['isRemovable']=!0x1,_0x572610['commentThread']=_0x183a3d;}['_checkSuggestionCorrectness'](_0x2904c0,_0x51c016,_0x3813a7,_0x3dc707){if(_0x2904c0['type']!=_0x51c016||_0x2904c0['subType']!=_0x3813a7||_0x2904c0['creator']['id']!=_0x3dc707)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x4884ad('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3b670d,_0x1e9707){const _0x3bb2f6=_0x3b670d['getFirstRange']();if(_0x1e9707['isEqual'](_0x3bb2f6))_0x3b670d['removeMarkers']();else{if(_0x3bb2f6['containsRange'](_0x1e9707)){const _0x554bc3=this['_model']['createPositionAt'](_0x1e9707['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3b670d,this['_model']['createRange'](_0x3bb2f6['start'],_0x554bc3));const _0x252c2e=_0x320756(),_0x3d8f13=_0x3b670d['creator']['id'],_0x327692=_0x3b670d['type']+':'+_0x3b670d['subType'];this['_setSuggestionData']({'id':_0x252c2e,'type':_0x327692,'createdAt':new Date(),'authorId':_0x3d8f13,'data':_0x3b670d['data'],'attributes':_0x3b670d['attributes']});const _0x1de4b2=this['_model']['createPositionAt'](_0x1e9707['end']['parent'],'after'),_0x465792=this['_model']['createRange'](_0x1de4b2,_0x3bb2f6['end']);this['_addSuggestionMarker'](_0x327692,_0x252c2e,_0x3d8f13,_0x465792);}else{if(_0x3bb2f6['containsPosition'](_0x1e9707['start'])){const _0x1500e3=this['_model']['createPositionAt'](_0x1e9707['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3b670d,this['_model']['createRange'](_0x3bb2f6['start'],_0x1500e3));}else{const _0x336031=this['_model']['createPositionAt'](_0x1e9707['end']['parent'],'after');this['_setSuggestionRange'](_0x3b670d,this['_model']['createRange'](_0x336031,_0x3bb2f6['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x56c071){for(const {suggestion:_0x38c8c6,meta:_0x332b56}of this['_findSuggestions'](_0x56c071,'insertion')){if(!_0x332b56['isOwn'])continue;const _0x4a20e1=_0x38c8c6['getRanges']();for(const _0x5bc700 of _0x4a20e1)if(!_0x56c071['getDifference'](_0x5bc700)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0xa2c86b){return this['editor']['plugins']['get']('Users')['getUser'](_0xa2c86b);}['_getExternalAuthor'](_0x49a60c){const _0xb1f34a=this['editor']['plugins']['get']('Users'),_0x290de6=_0x1cc9a4('external:'+_0x49a60c),_0x15204c=_0xb1f34a['getUser'](_0x290de6);return _0x15204c||_0xb1f34a['addUser']({'id':_0x290de6,'name':_0x49a60c});}['_createSuggestion'](_0x3bbc63,_0x586377,_0x87e9d7,_0x301eee,_0x490919,_0x2b64d7){const _0x50b4d3=this['_getAuthorFromId'](_0x301eee);if(!_0x50b4d3)throw new _0x4884ad('track-changes-user-not-found',this,{'authorId':_0x301eee,'suggestionId':_0x87e9d7});const _0x1046de=this['_suggestionFactory']['buildSuggestion'](_0x3bbc63,_0x586377,_0x87e9d7,_0x50b4d3,_0x490919,_0x2392b5=>{this['_updateSuggestionData'](_0x87e9d7,{'attributes':_0x2392b5});const _0x1947e4=this['getSuggestion'](_0x87e9d7);this['_joinWithAdjacentSuggestions'](new Set([_0x1947e4])),this['_refreshSuggestionsChain'](new Set([_0x1947e4]));},_0x2b64d7);return this['listenTo'](_0x1046de,'accept',()=>{this['_updateSuggestionData'](_0x87e9d7,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x1046de,'discard',()=>{this['_updateSuggestionData'](_0x87e9d7,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x87e9d7,_0x1046de),this['_suggestionState']['set'](_0x1046de,'notReady'),_0x1046de;}['_splitMarkerName'](_0x7641aa){return _0x341544(_0x7641aa);}['_breakSuggestionMarker'](_0xb6b47d,_0x12538c,_0x3336e4){const _0x58b414=_0xb6b47d['getFirstRange'](),_0x59ad45=_0x58b414['start'],_0x3baf72=_0x58b414['end'];this['_setSuggestionRange'](_0xb6b47d,this['_model']['createRange'](_0x59ad45,_0x12538c));const _0x56b11f=_0x320756(),_0x4c037a=_0xb6b47d['creator']['id'],_0x37cd30=_0xb6b47d['type']+(_0xb6b47d['subType']?':'+_0xb6b47d['subType']:'');this['_setSuggestionData']({'id':_0x56b11f,'type':_0x37cd30,'createdAt':new Date(),'authorId':_0x4c037a,'originalSuggestionId':_0xb6b47d['_originalSuggestionId']||_0xb6b47d['id'],'attributes':_0xb6b47d['attributes'],'data':_0xb6b47d['data']});const _0x49dbdc=this['_getAttributeKey'](_0xb6b47d);('formatBlock'==_0xb6b47d['type']||_0x49dbdc&&this['_isBlockAttribute'](_0x49dbdc))&&(_0x3336e4=this['_model']['createPositionBefore'](_0x3336e4['parent'])),this['_addSuggestionMarker'](_0x37cd30,_0x56b11f,_0x4c037a,this['_model']['createRange'](_0x3336e4,_0x3baf72));}['_findSuggestions'](_0x469367,_0x3a82a6=null){const _0x3abb74=[],_0x587b96=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x469367)||(_0x469367=[_0x469367]);for(const _0x75daef of this['getSuggestions']()){if(!_0x75daef['isInContent'])continue;if(_0x3a82a6&&_0x75daef['type']!=_0x3a82a6)continue;let _0x3ab2ce=!0x1;for(const _0x173190 of _0x75daef['getRanges']()){for(const _0x1c48cc of _0x469367){const _0xfe1ef0=_0x1c48cc['start']['isEqual'](_0x173190['end'])||_0x1c48cc['end']['isEqual'](_0x173190['start']);if(_0xfe1ef0||_0x1c48cc['getIntersection'](_0x173190)){const _0x41b8eb=_0x1c48cc['containsRange'](_0x173190)&&zt(this['_model']['schema'],_0x173190['start'],_0x1c48cc),_0x33b3f8=_0x173190['containsRange'](_0x1c48cc)&&zt(this['_model']['schema'],_0x1c48cc['start'],_0x173190);_0x3abb74['push']({'suggestion':_0x75daef,'meta':{'isOwn':_0x587b96==_0x75daef['author'],'isNextTo':_0xfe1ef0,'isInsideObject':_0x41b8eb,'containsRangeInObject':_0x33b3f8}}),_0x3ab2ce=!0x0;break;}}if(_0x3ab2ce)break;}}return _0x3abb74;}['_addSuggestionMarker'](_0x164b13,_0x4a1727,_0x2f9fab,_0x565093,_0x88ddbb){this['_model']['change'](_0x2391f5=>{let _0x52723c='suggestion:'+_0x164b13+':'+_0x4a1727+':'+_0x2f9fab;_0x88ddbb&&(_0x52723c=_0x52723c+':'+_0x88ddbb),_0x2391f5['addMarker'](_0x52723c,{'range':_0x565093,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x2da41f){const _0xb2095=_0x2da41f['previous'],_0x5e8b85=_0x2da41f['next'];_0x2da41f['previous']=null,_0x2da41f['next']=null,null!=_0xb2095&&_0xb2095['next']==_0x2da41f&&(_0xb2095['next']=_0x5e8b85),null!=_0x5e8b85&&_0x5e8b85['previous']==_0x2da41f&&(_0x5e8b85['previous']=_0xb2095),'ready'==this['_suggestionState']['get'](_0x2da41f)&&(this['_suggestionState']['set'](_0x2da41f,'removed'),this['fire']('suggestionUnloaded',_0x2da41f,_0xb2095,_0x5e8b85));}['_setSuggestionData'](_0x32361f){const _0x3b0833=_0x32361f['id'],_0x3b36b1=this['addSuggestionData'](_0x32361f);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x37e8ba=this['editor']['plugins']['get']('PendingActions'),_0xb7bed=_0x3b36b1['hasComments'],_0x4f3db4=_0x3b36b1['subType']?_0x3b36b1['type']+':'+_0x3b36b1['subType']:_0x3b36b1['type'],_0x1b8ec5=this['editor']['locale'],_0x481df2=_0x37e8ba['add'](o(_0x1b8ec5,'PENDING_ACTION_SUGGESTION')),_0x409c4a={'id':_0x3b0833,'type':_0x4f3db4,'hasComments':_0xb7bed,'data':_0x32361f['data']||null,'originalSuggestionId':_0x32361f['originalSuggestionId']||null,'attributes':_0x3b36b1['attributes']};this['_adapter']['addSuggestion'](_0x409c4a)['then'](_0x4f96cd=>{_0x3b36b1['_saved']=!0x0,_0x37e8ba['remove'](_0x481df2),_0x4f96cd&&_0x4f96cd['createdAt']&&(this['_suggestions']['get'](_0x3b0833)['createdAt']=_0x4f96cd['createdAt']);})['catch'](_0x43a593=>{throw _0x36864b('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x3b36b1['discard']();}),_0x3b36b1['stopListening'](),this['_suggestions']['delete'](_0x3b36b1['id']),this['_suggestionState']['delete'](_0x3b36b1),_0x43a593;});}return _0x3b36b1;}['_isBlockAttribute'](_0x31bbee){return this['editor']['plugins']['get'](_0x177264)['isBlockAttribute'](_0x31bbee);}['_isInlineAttribute'](_0x5b470d){return this['editor']['plugins']['get'](_0x177264)['isInlineAttribute'](_0x5b470d);}['_updateSuggestionData'](_0x15c355,_0x7b027d){const _0x5cd66d=this['editor']['plugins']['get']('PendingActions'),_0x2273be=this['getSuggestion'](_0x15c355);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x2273be['_saved']){const _0x2abfbf=_0x5cd66d['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x15c355,_0x7b027d)['then'](()=>{_0x5cd66d['remove'](_0x2abfbf);});}else _0x2273be['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x15c355,_0x7b027d);});}}['_getSuggestionData'](_0x1f94f9){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x4884ad('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x1f94f9);}['_handleNewSuggestionMarker'](_0x46b457){const {id:_0x113860,type:_0x73faa1,subType:_0x50397f,authorId:_0x23957a}=this['_splitMarkerName'](_0x46b457),_0x329a6c=this['_suggestions']['get'](_0x113860)||this['_createSuggestion'](_0x73faa1,_0x50397f,_0x113860,_0x23957a,{});switch(this['_checkSuggestionCorrectness'](_0x329a6c,_0x73faa1,_0x50397f,_0x23957a),this['_suggestionState']['get'](_0x329a6c)){case'notReady':this['_getSuggestionData'](_0x113860)['then'](_0x2b9169=>{let _0x5adac5=Promise['resolve']();_0x2b9169['hasComments']&&(_0x5adac5=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x113860})),_0x5adac5['then'](()=>{this['addSuggestionData'](_0x2b9169)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x329a6c,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x113860,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x329a6c,'ready'),this['fire']('suggestionLoaded',_0x329a6c);break;case'ready':this['fire']('suggestionChanged',_0x329a6c);}return _0x329a6c['addMarkerName'](_0x46b457),_0x329a6c;}['_refreshSuggestionsChain'](_0x1ab3b5){const _0x4dd4eb=Array['from'](_0x1ab3b5),_0x52b585=_0x4dd4eb['filter'](_0x5e0aec=>'attribute'==_0x5e0aec['type']);this['_refreshAttributeSuggestionsChain'](_0x52b585);const _0x53ddcf=_0x4dd4eb['filter'](_0x13e9a6=>!_0x13e9a6['isMultiRange']&&'attribute'!=_0x13e9a6['type']),_0x233b1b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2f184f=>!_0x2f184f['isMultiRange']&&'attribute'!=_0x2f184f['type']),_0x472c9b=_0x233b1b['filter'](_0x214b6f=>!_0x1ab3b5['has'](_0x214b6f)),_0x51815b=new Map(_0x233b1b['map'](_0x34c62b=>[_0x34c62b,this['_suggestionFactory']['getSuggestionCallback'](_0x34c62b['type'],_0x34c62b['subType'],'chain')])),_0x5ece22=new Map(_0x233b1b['map'](_0x882911=>[_0x882911,_0x882911['getFirstRange']()])),_0x434acd=new Set(),_0x2ee286=new Set();for(let _0x1aae81=0x0;_0x1aae81<_0x53ddcf['length'];_0x1aae81++)_0x8c52bc(_0x53ddcf[_0x1aae81],_0x53ddcf,_0x1aae81+0x1);for(let _0x7efb85=0x0;_0x7efb85<_0x53ddcf['length'];_0x7efb85++)_0x8c52bc(_0x53ddcf[_0x7efb85],_0x472c9b,0x0);const _0x221921=new Set();for(let _0x474a74=0x0;_0x474a74<_0x53ddcf['length'];_0x474a74++){const _0x2b5f9a=_0x53ddcf[_0x474a74];!_0x2ee286['has'](_0x2b5f9a)&&_0x2b5f9a['previous']&&(_0x221921['add'](_0x2b5f9a['previous']),_0x2b5f9a['previous']['next']===_0x2b5f9a&&(_0x2b5f9a['previous']['next']=null),_0x2b5f9a['previous']=null),!_0x434acd['has'](_0x2b5f9a)&&_0x2b5f9a['next']&&(_0x221921['add'](_0x2b5f9a['next']),_0x2b5f9a['next']['previous']===_0x2b5f9a&&(_0x2b5f9a['next']['previous']=null),_0x2b5f9a['next']=null);}function _0x8c52bc(_0x2096c1,_0x394ec9,_0x2e91ed){for(let _0x2663e7=_0x2e91ed;_0x2663e7<_0x394ec9['length'];_0x2663e7++){const _0x2e7646=_0x3d39e0(_0x2096c1,_0x394ec9[_0x2663e7]);_0x2e7646&&(_0x2e7646[0x0]['next']=_0x2e7646[0x1],_0x2e7646[0x1]['previous']=_0x2e7646[0x0],_0x434acd['add'](_0x2e7646[0x0]),_0x2ee286['add'](_0x2e7646[0x1]));}}function _0x3d39e0(_0x17583f,_0x34cb01){if(_0x17583f['author']['id']!==_0x34cb01['author']['id'])return null;const _0x3ac36e=_0x51815b['get'](_0x17583f)(_0x17583f,_0x34cb01,_0x5ece22['get'](_0x17583f),_0x5ece22['get'](_0x34cb01));if(!_0x3ac36e)return null;return _0x51815b['get'](_0x34cb01)(_0x17583f,_0x34cb01,_0x5ece22['get'](_0x17583f),_0x5ece22['get'](_0x34cb01))?_0x3ac36e[0x1]['commentThread']&&_0x3ac36e[0x1]['commentThread']['length']?null:_0x3ac36e:null;}_0x221921['size']&&this['_refreshSuggestionsChain'](_0x221921);}['_refreshAttributeSuggestionsChain'](_0x53b53a){if(0x0==_0x53b53a['length'])return;const _0x4fffc=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x77ba1b=>'attribute'==_0x77ba1b['type']&&_0x77ba1b['_isDataLoaded']),_0xad8e4a=[],_0x298f03=new Map();for(const _0x4bf688 of _0x4fffc){const _0x30208f=_0x1cc9a4(_0x4bf688['attributes']);_0x298f03['has'](_0x30208f)||(_0x298f03['set'](_0x30208f,_0xad8e4a['length']),_0xad8e4a['push']([]));const _0x539c83=_0x298f03['get'](_0x30208f);_0xad8e4a[_0x539c83]['push'](_0x4bf688);}!(function(){_0xad8e4a['sort']((_0x5911a3,_0x25e25f)=>{const _0x4fbc8c=_0x5911a3[0x0]['createdAt'],_0x4b759a=_0x25e25f[0x0]['createdAt'];return _0x4fbc8c==_0x4b759a?_0x5911a3[0x0]['attributes']['groupId']<_0x25e25f[0x0]['attributes']['groupId']?-0x1:0x1:_0x4fbc8c<_0x4b759a?-0x1:0x1;});for(const _0xdb0fe of _0xad8e4a)_0xdb0fe['sort']((_0x27bc9d,_0x45c7c2)=>_0x27bc9d['id']<_0x45c7c2['id']?-0x1:0x1);}());for(let _0x2ab687=0x0;_0x2ab687<_0xad8e4a['length'];_0x2ab687++){if(0x0==_0xad8e4a[_0x2ab687]['length'])continue;const _0x2cac65=[];for(let _0xc201b4=_0x2ab687+0x1;_0xc201b4<_0xad8e4a['length'];_0xc201b4++)0x0!=_0xad8e4a[_0xc201b4]['length']&&_0x3d7ff1(_0xad8e4a[_0x2ab687],_0xad8e4a[_0xc201b4])&&_0x2cac65['push'](_0xc201b4);for(const _0x490102 of _0x2cac65)_0xad8e4a[_0x2ab687]=_0xad8e4a[_0x2ab687]['concat'](_0xad8e4a[_0x490102]),_0xad8e4a[_0x490102]=[];}for(const _0x5b3b6d of _0xad8e4a)for(let _0x3df32c=0x0;_0x3df32c<_0x5b3b6d['length'];_0x3df32c++){const _0x325cd=_0x5b3b6d[_0x3df32c+0x1]||null;_0x5b3b6d[_0x3df32c]['next']!==_0x325cd&&(_0x5b3b6d[_0x3df32c]['next']=_0x325cd);}for(const _0x3357bc of _0xad8e4a)for(let _0x2f7a9b=0x0;_0x2f7a9b<_0x3357bc['length'];_0x2f7a9b++){const _0x4dfcc7=_0x3357bc[_0x2f7a9b-0x1]||null;_0x3357bc[_0x2f7a9b]['previous']!==_0x4dfcc7&&(_0x3357bc[_0x2f7a9b]['previous']=_0x4dfcc7);}function _0x3d7ff1(_0x5bab0f,_0x60b84f){if(_0x5bab0f[0x0]['attributes']['groupId']!==_0x60b84f[0x0]['attributes']['groupId']&&_0x5bab0f[0x0]['author']!==_0x60b84f[0x0]['author'])return!0x1;if(!function(_0x327211,_0x1130a3){if(!_0x327211['hasComments']&&!_0x1130a3['hasComments'])return!0x0;if(_0x327211['hasComments']&&_0x1130a3['hasComments'])return!0x1;if(_0x327211['hasComments']&&_0x1130a3['createdAt']<_0x327211['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x1130a3['hasComments']&&_0x327211['createdAt']<_0x1130a3['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x5bab0f[0x0],_0x60b84f[0x0]))return!0x1;const _0x297a27=Jt(_0x5bab0f[0x0]['attributes'],['groupId','trackingSessionId']),_0x1b6fd3=Jt(_0x60b84f[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x59abc9(_0x297a27,_0x1b6fd3))return!0x1;if(_0x5bab0f[0x0]['attributes']['groupId']==_0x60b84f[0x0]['attributes']['groupId'])return!0x0;if(_0x5bab0f[0x0]['attributes']['trackingSessionId']!==_0x60b84f[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x5bab0f['every'](_0x37485b=>_0x60b84f['some'](_0x5aedc0=>_0x37485b['getFirstRange']()['isEqual'](_0x5aedc0['getFirstRange']())))&&_0x60b84f['every'](_0x39b71f=>_0x5bab0f['some'](_0x4473df=>_0x39b71f['getFirstRange']()['isEqual'](_0x4473df['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x5aa880){const _0x4b776c=Array['from'](_0x5aa880),_0xb7bf65=this['getSuggestions']({'skipNotAttached':!0x0}),_0x3ae3fc=_0xb7bf65['filter'](_0x224da3=>!_0x5aa880['has'](_0x224da3)),_0x86d3bd=new Map(_0x4b776c['map'](_0x244b80=>[_0x244b80,this['_suggestionFactory']['getSuggestionCallback'](_0x244b80['type'],_0x244b80['subType'],'join')])),_0x281d62=new Map(_0xb7bf65['map'](_0x5299c1=>[_0x5299c1,_0x5299c1['getRanges']()]));for(let _0x5cc125=0x0;_0x5cc125<_0x4b776c['length'];_0x5cc125++){if(_0x3ed795(this,_0x4b776c[_0x5cc125],_0x4b776c,_0x5cc125+0x1))return!0x0;}for(let _0x1d7137=0x0;_0x1d7137<_0x4b776c['length'];_0x1d7137++){if(_0x3ed795(this,_0x4b776c[_0x1d7137],_0x3ae3fc,0x0))return!0x0;}return!0x1;function _0x3ed795(_0x362cca,_0x43c2d3,_0x5a1002,_0x1247bc){for(let _0x59fc5c=_0x1247bc;_0x59fc5c<_0x5a1002['length'];_0x59fc5c++){const _0x4a93b1=_0x5a1002[_0x59fc5c];if(_0x4a93b1['type']!==_0x43c2d3['type']||_0x4a93b1['author']['id']!==_0x43c2d3['author']['id']||_0x4a93b1['subType']!==_0x43c2d3['subType'])continue;if(!en(_0x43c2d3,_0x4a93b1))continue;if('attribute'==_0x43c2d3['type']&&_0x43c2d3['data']['oldValue']!=_0x4a93b1['data']['oldValue'])continue;if('attribute'==_0x43c2d3['type']&&_0x362cca['_isBlockAttribute'](_0x43c2d3['data']['key']))continue;if('formatBlock'==_0x43c2d3['type']){const _0x506df4=_0x362cca['editor']['model'],_0x96b970=_0x43c2d3['getContainedElement']();if(_0x96b970&&(_0x506df4['schema']['isObject'](_0x96b970)||_0x506df4['schema']['isLimit'](_0x96b970)))continue;}const _0x29b760=_0x86d3bd['get'](_0x43c2d3),_0x5553d1=_0x281d62['get'](_0x43c2d3),_0x1d9212=_0x281d62['get'](_0x4a93b1),_0x2ffa19=_0x43c2d3['commentThread']&&_0x43c2d3['commentThread']['length'],_0x406eea=_0x4a93b1['commentThread']&&_0x4a93b1['commentThread']['length'];if(!_0x2ffa19&&_0x29b760(_0x1d9212,_0x5553d1))return _0x362cca['_joinSuggestions'](_0x4a93b1,_0x43c2d3),_0x281d62['delete'](_0x43c2d3),!0x0;if(!_0x406eea&&_0x29b760(_0x5553d1,_0x1d9212))return _0x362cca['_joinSuggestions'](_0x43c2d3,_0x4a93b1),_0x281d62['delete'](_0x4a93b1),!0x0;}return!0x1;}}['_joinSuggestions'](_0x50dd12,_0x2e81b4){if(_0x50dd12['isMultiRange']){for(const _0x1105e4 of _0x2e81b4['getRanges']())_0x50dd12['addRange'](_0x1105e4);}else{const _0x5bfa95=_0x2e81b4['getFirstRange']()['end'];this['_setSuggestionRange'](_0x50dd12,this['_model']['createRange'](_0x50dd12['getFirstRange']()['start'],_0x5bfa95));}_0x2e81b4['removeMarkers']();}['_getMarkerAnnouncementText'](_0x24416e,_0x1a396e,_0x399a7d){const _0x44ba34=_0x24416e['startsWith']('format')||_0x24416e['startsWith']('attribute')?'FORMATTING':_0x24416e['toUpperCase']();return o(this['editor']['locale'],_0x1a396e+'_'+_0x44ba34+'_SUGGESTION_ANNOUNCEMENT',_0x399a7d);}['_initAriaMarkerChangeAnnouncements'](){const _0x14027d=this['editor'];if(!_0x14027d['ui'])return;const {ariaLiveAnnouncer:_0x8fa341}=_0x14027d['ui'];_0x3a2fb9(this['_model'],({left:_0x24aa65,entered:_0x297c3e})=>{for(const _0x57cedb of _0x24aa65){const {group:_0x50ee8f,type:_0x167ee5}=this['_splitMarkerName'](_0x57cedb['name']);if('suggestion'===_0x50ee8f){_0x8fa341['announce'](this['_getMarkerAnnouncementText'](_0x167ee5,'LEAVE'));break;}}for(const _0x3b340f of _0x297c3e){const {group:_0x1f7197,type:_0x2edd36}=this['_splitMarkerName'](_0x3b340f['name']);if('suggestion'===_0x1f7197){_0x8fa341['announce'](this['_getMarkerAnnouncementText'](_0x2edd36,'ENTER',_0x3e66be(_0x132dcf)));break;}}});}['_processAttributeChanges'](_0x331dbd){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3c6c1b=this['editor'],_0xe02026=_0x3c6c1b['model']['document']['differ']['getChanges']();if(0x0==_0xe02026['length'])return!0x1;const _0x3fe2cb=[],_0x2a9097=_0xe02026['filter'](_0x1be0b7=>'attribute'==_0x1be0b7['type']),_0x42b5a2=_0xe02026['filter'](_0x4f7ab7=>'insert'==_0x4f7ab7['type']&&'$text'!=_0x4f7ab7['name']),_0x5d4565=_0xe02026['filter'](_0x2bde46=>'remove'==_0x2bde46['type']&&'$text'!=_0x2bde46['name']);for(const _0x1593ab of _0x2a9097)_0x3fe2cb['push']({'key':_0x1593ab['attributeKey'],'newValue':_0x1593ab['attributeNewValue'],'oldValue':_0x1593ab['attributeOldValue'],'range':Zt(_0x1593ab['range'],_0x3c6c1b['model'])});for(const _0x3c5920 of _0x42b5a2){const _0x4cdaac=_0x5d4565['find'](_0x1ab4dd=>_0x1ab4dd['position']['isEqual'](_0x3c5920['position']));_0x4cdaac&&_0x3fe2cb['push']({'key':m,'newValue':_0x3c5920['name'],'oldValue':_0x4cdaac['name'],'range':_0x3c6c1b['model']['createRangeOn'](_0x3c5920['position']['nodeAfter'])});}return 0x0!=_0x3fe2cb['length']&&this['_reduceExistingSuggestions'](_0x331dbd,_0x3fe2cb);}['_processAttributeSuggestions'](_0x4e4e55){let _0x3e4c7c=!0x1;const _0x319abb=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x43bd5e=>_0x43bd5e['data']['newRange']&&_0x43bd5e['name']['startsWith']('suggestion:attribute:'));for(const _0x4402cb of _0x319abb){const {subType:_0x41af38,id:_0x1fc711}=this['_splitMarkerName'](_0x4402cb['name']),_0x4044c1=_0x41af38['split']('|')[0x0];for(const _0x4e7599 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x4e7599['id']!=_0x1fc711&&'attribute'==_0x4e7599['type']&&_0x4e7599['data']&&_0x4e7599['data']['key']==_0x4044c1&&_0x4e7599['getFirstRange']()['isIntersecting'](_0x4402cb['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x4e7599,_0x4402cb['data']['newRange'],_0x4e4e55),_0x3e4c7c=!0x0);}return _0x3e4c7c;}['recordAttributeChanges'](_0x3e9ea2){this['_recordAttributeSuggestions']=!0x0,_0x3e9ea2();}['_isRegisteredAttribute'](_0x19ea34){return this['editor']['plugins']['get'](_0x177264)['isRegisteredAttribute'](_0x19ea34);}['_reduceExistingSuggestions'](_0x13d9a9,_0x3163dc){if(0x0==_0x3163dc['length'])return!0x1;let _0x336bfa=!0x1;for(const _0x1d10fa of _0x3163dc){const _0x4af1ff=this['_findSuggestions'](_0x1d10fa['range'],'attribute')['filter'](_0x4731be=>!_0x4731be['meta']['isNextTo'])['map'](_0x1ee72e=>_0x1ee72e['suggestion']),_0x3e1cb4=_0x1cc9a4({'newValue':_0x1d10fa['newValue']});_0x4af1ff['filter'](_0x3b600b=>{const [_0x1c0dac,_0x570aec]=_0x3b600b['subType']['split']('|');return _0x1c0dac==_0x1d10fa['key']&&_0x570aec!=_0x3e1cb4;})['forEach'](_0xf73f91=>{this['_reduceSuggestionAttributeRange'](_0xf73f91,_0x1d10fa['range'],_0x13d9a9),_0x336bfa=!0x0;});}return _0x336bfa;}['_reduceSuggestionAttributeRange'](_0x2ac672,_0x5c8766,_0x21e685){const _0xadc25d=_0x2ac672['getFirstRange']()['getDifference'](_0x5c8766);0x0!==_0xadc25d['length']?0x1!==_0xadc25d['length']?this['_breakSuggestionMarker'](_0x2ac672,_0x5c8766['start'],_0x5c8766['end']):this['_setSuggestionRange'](_0x2ac672,_0xadc25d[0x0]):_0x21e685['removeMarker'](_0x2ac672['getFirstMarker']());}}class qt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x4458c2){this['_editor']=_0x4458c2,this['_model']=_0x4458c2['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x2c46be,_0x48050e,_0x383809,_0x37a6b4,_0x5a49c3,_0x2d08a5,_0x511846){return new T(this['_model'],{'type':_0x2c46be,'subType':_0x48050e,'id':_0x383809,'originalSuggestionId':_0x511846,'author':_0x37a6b4,'creator':_0x37a6b4,'attributes':_0x5a49c3,'onAttributesChange':_0x2d08a5,'onAccept':(..._0x165c48)=>this['getSuggestionCallback'](_0x2c46be,_0x48050e,'accept')(..._0x165c48),'onDiscard':(..._0x183f23)=>this['getSuggestionCallback'](_0x2c46be,_0x48050e,'discard')(..._0x183f23)});}['registerCustomCallback'](_0x40e95a,_0x366b81,_0x4cf1ad,_0x2fe67f){const _0xdb780e=_0x40e95a+':'+_0x366b81+':'+_0x4cf1ad;this['_customCallbacks']['set'](_0xdb780e,_0x2fe67f);}['getSuggestionCallback'](_0x2d40c5,_0x229f5f,_0x4967bb){const _0x274798=_0x2d40c5+':'+_0x229f5f+':'+_0x4967bb;return this['_customCallbacks']['get'](_0x274798)||this['_defaultCallbacks']['get'](_0x2d40c5+':'+_0x4967bb);}['_registerDefaultCallbacks'](){const _0x478a76=()=>!0x1,_0x2be42c=_0xd5a9d2=>{_0xd5a9d2['sort']((_0x5c07dd,_0x25f19a)=>_0x5c07dd['start']['isBefore'](_0x25f19a['start'])?0x1:-0x1),this['_model']['change'](_0x20eed2=>{for(const _0x1b7a57 of _0xd5a9d2){let _0x31f608;_0x31f608=_0x1b7a57['end']['isAtEnd']&&_0x1b7a57['end']['parent']==_0x1b7a57['start']['nodeAfter']?_0x20eed2['createSelection'](_0x1b7a57['start']['nodeAfter'],'on'):_0x20eed2['createSelection'](_0x1b7a57),this['_model']['deleteContent'](_0x31f608,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x29f8d7=(_0x48a9fd,_0x15f2e1)=>{_0x15f2e1&&this['_model']['change'](_0x2d7888=>{const {commandName:_0x6b8e08,commandParams:_0xb91571=[]}=_0x15f2e1,_0x52a19b=_0x48a9fd['map'](_0x1912bc=>(Kt(_0x1912bc)&&(_0x1912bc=this['_model']['createRange'](_0x1912bc['end'])),_0x1912bc))['filter'](_0x521b26=>'$graveyard'!==_0x521b26['root']['rootName']);if(_0x52a19b['length']<0x1)return;const _0x5df736=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x3b4a3d=>_0x5a100f['fromRange'](_0x3b4a3d));_0x2d7888['setSelection'](_0x52a19b);for(const _0x4fcfdc of this['_editor']['commands']['commands']())_0x4fcfdc['refresh']();_0xb91571['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x6b8e08,..._0xb91571);const _0x2b80af=_0x5df736['filter'](_0x46d5d3=>'$graveyard'!=_0x46d5d3['root']['rootName']);_0x2b80af['length']>0x0&&_0x2d7888['setSelection'](_0x2b80af);for(const _0x5ed62b of _0x5df736)_0x5ed62b['detach']();});},_0x38cd1c=(_0x48d514,_0x5e0d1e)=>0x1==_0x48d514['length']&&0x1==_0x5e0d1e['length']&&_0x48d514[0x0]['end']['isEqual'](_0x5e0d1e[0x0]['start']),_0x5cea60=(_0x23f4b3,_0x31e1a7,_0x16a6cb,_0x1b02d3)=>nn(_0x23f4b3,_0x31e1a7,_0x16a6cb,_0x1b02d3)?[_0x23f4b3,_0x31e1a7]:nn(_0x31e1a7,_0x23f4b3,_0x1b02d3,_0x16a6cb)?[_0x31e1a7,_0x23f4b3]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x478a76),this['_defaultCallbacks']['set']('insertion:discard',_0x2be42c),this['_defaultCallbacks']['set']('insertion:join',_0x38cd1c),this['_defaultCallbacks']['set']('insertion:chain',_0x5cea60),this['_defaultCallbacks']['set']('deletion:accept',_0x2be42c),this['_defaultCallbacks']['set']('deletion:discard',_0x478a76),this['_defaultCallbacks']['set']('deletion:join',_0x38cd1c),this['_defaultCallbacks']['set']('deletion:chain',_0x5cea60),this['_defaultCallbacks']['set']('formatInline:accept',_0x29f8d7),this['_defaultCallbacks']['set']('formatInline:discard',_0x478a76),this['_defaultCallbacks']['set']('formatInline:join',_0x38cd1c),this['_defaultCallbacks']['set']('formatInline:chain',_0x478a76),this['_defaultCallbacks']['set']('formatBlock:accept',_0x29f8d7),this['_defaultCallbacks']['set']('formatBlock:discard',_0x478a76),this['_defaultCallbacks']['set']('formatBlock:join',_0x38cd1c),this['_defaultCallbacks']['set']('formatBlock:chain',_0x478a76),this['_defaultCallbacks']['set']('attribute:accept',_0x478a76),this['_defaultCallbacks']['set']('attribute:discard',(_0x7a67a1,_0x33e166)=>{if(!_0x33e166)return;const _0x163816=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x465d8a=>{if(_0x33e166['key']==m)for(const _0x3c233c of _0x7a67a1){const _0x115950=_0x3c233c['start']['nodeAfter'],_0x6e5a4e=_0x33e166['oldValue'];_0x465d8a['rename'](_0x115950,_0x6e5a4e);}else{if(_0x163816['_isBlockAttribute'](_0x33e166['key'])){for(const _0x2f8b56 of _0x7a67a1)void 0x0!==_0x33e166['oldValue']?_0x465d8a['setAttribute'](_0x33e166['key'],_0x33e166['oldValue'],_0x2f8b56['start']['nodeAfter']):_0x465d8a['removeAttribute'](_0x33e166['key'],_0x2f8b56['start']['nodeAfter']);}else{for(const _0xac6355 of _0x7a67a1)_0x33e166['oldValue']?_0x465d8a['setAttribute'](_0x33e166['key'],_0x33e166['oldValue'],_0xac6355):_0x465d8a['removeAttribute'](_0x33e166['key'],_0xac6355);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x38cd1c);}}function zt(_0x2d5756,_0x1325f1,_0x901d90){for(const _0x2721d2 of _0x1325f1['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2721d2['root']==_0x2721d2)return!0x1;if(!_0x901d90['containsItem'](_0x2721d2))return!0x1;if(_0x2d5756['isObject'](_0x2721d2)||_0x2d5756['isLimit'](_0x2721d2))return!0x0;}return!0x1;}function Kt(_0x494ab9){return _0x494ab9['end']['parent']==_0x494ab9['start']['nodeAfter']&&_0x494ab9['end']['isAtStart'];}function Wt(_0x3278d3,_0x2847a3,_0x1e511c,_0x5d909c){const _0x1ca5ed=_0x24364a=>!_0x24364a['item']['is']('$textProxy')&&!_0x5d909c['isObject'](_0x24364a['item']),_0x42c6c6=_0x3278d3['start']['getLastMatchingPosition'](_0x1ca5ed),_0x517c6a=_0x3278d3['end']['getLastMatchingPosition'](_0x1ca5ed,{'direction':'backward'});return(!_0x3278d3['start']['isEqual'](_0x42c6c6)||!_0x3278d3['end']['isEqual'](_0x517c6a))&&(_0x42c6c6['isBefore'](_0x517c6a)?_0x1e511c['updateMarker'](_0x2847a3,{'range':_0x1e511c['createRange'](_0x42c6c6,_0x517c6a)}):_0x1e511c['removeMarker'](_0x2847a3),!0x0);}function Ht(_0x2cbd31){return _0x1cc9a4(_0x2cbd31);}function Qt(_0xf0550c){const _0x6e7ff1=_0xf0550c['start']['nodeAfter'];return _0x6e7ff1&&_0x6e7ff1['is']('element');}function Xt(_0x273442){return Kt(_0x273442)||function(_0xbe01){return _0xbe01['start']['parent']==_0xbe01['end']['nodeBefore']&&_0xbe01['start']['isAtEnd'];}(_0x273442);}function Yt(_0x336030,_0x3f9173){try{const _0x3d45d1=_0x336030['getRange']();for(const _0x5df7fe of _0x3f9173)if(_0x336030!==_0x5df7fe&&_0x3d45d1&&_0x3d45d1['isIntersecting'](_0x5df7fe['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Zt(_0x1d95ff,_0x534662){return null==_0x1d95ff['end']['nodeBefore']&&_0x1d95ff['end']['parent']==_0x1d95ff['start']['nodeAfter']?tn(_0x1d95ff['start']['nodeAfter'],_0x534662):_0x1d95ff;}function tn(_0x596c9a,_0x264e73){const _0x2b4d8b=_0x264e73['schema']['isObject'](_0x596c9a)||_0x264e73['schema']['isSelectable'](_0x596c9a);return _0x264e73['createRange'](_0x264e73['createPositionAt'](_0x596c9a,'before'),_0x2b4d8b?_0x264e73['createPositionAfter'](_0x596c9a):_0x264e73['createPositionAt'](_0x596c9a,'end'));}function nn(_0x351b91,_0x4367da,_0x6896e5,_0x3b20ac){return!!en(_0x351b91,_0x4367da)&&_0x6896e5['end']['isEqual'](_0x3b20ac['start']);}function en(_0x75ad2e,_0x1e147f){if(!_0x75ad2e['_isDataLoaded']||!_0x1e147f['_isDataLoaded'])return!0x1;const _0x489737=new Set(Object['keys'](_0x75ad2e['attributes'])),_0x14247a=new Set(Object['keys'](_0x1e147f['attributes']));if(_0x489737['delete']('groupId'),_0x14247a['delete']('groupId'),0x0==_0x489737['size']&&0x0==_0x14247a['size'])return!0x0;if(_0x489737['size']!=_0x14247a['size'])return!0x1;const _0x42c7c9={..._0x75ad2e['attributes']},_0xc7186a={..._0x1e147f['attributes']};return delete _0x42c7c9['groupId'],delete _0xc7186a['groupId'],JSON['stringify'](_0x42c7c9)==JSON['stringify'](_0xc7186a);}function sn(_0x321c65,_0xb31d49){const _0xe8302b=on(_0x321c65['attributes']),_0x260484=on(_0xb31d49);if(!_0x321c65['_isDataLoaded'])return!0x1;for(const _0x6ed2e0 of Object['keys'](_0x260484))if(!_0x59abc9(_0xe8302b[_0x6ed2e0],_0x260484[_0x6ed2e0]))return!0x1;return!0x0;}function on(_0x394914){const _0x3ac83f=Object['assign']({},_0x394914);return delete _0x3ac83f['skipNestingCheck'],delete _0x3ac83f['tablePasteChainId'],_0x3ac83f;}class pe extends/* #__PURE__ -- @preserve */
26
+ _0x22d150(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x5563fe,_0x493426,_0x362903,_0x2d9795){super(),this['model']=_0x493426,this['view']=_0x362903,this['commentThreadController']=_0x2d9795,this['_editor']=_0x5563fe,this['_acceptCommand']=_0x5563fe['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x5563fe['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x2aad4a,_0x1e63d3)=>_0x2aad4a||_0x1e63d3),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x38c711=>_0x38c711&&this['_editor']['model']['canEditAt'](_0x493426['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x272a55=>_0x272a55&&this['_editor']['model']['canEditAt'](_0x493426['getRanges']())),this['_pendingAction']=null,_0x362903['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x362903,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x362903,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x362903,'change:isDirty',()=>{_0x362903['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 _0xb03973=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0xb03973);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x46004f{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x33b3ce,_0x9f0ce8,_0x1661b8,_0x5196ef){super(_0x33b3ce),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x1c075f(_0x33b3ce,o(_0x33b3ce,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x9f0ce8['authoredAt']),this['bind']('authoredAt')['to'](_0x9f0ce8),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',_0x9f0ce8,'authoredAt',this,'descriptionParts',(_0x2e6ef1,_0x32a2b0,_0x570d44)=>{const _0x1d42d8=_0x570d44['map'](_0x2b30a9=>ls(_0x2b30a9['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x2e6ef1-0x1,_0x9f0ce8['author']['name'],_0x32a2b0?_0x5196ef['formatDateTime'](_0x32a2b0):'',new DOMParser()['parseFromString'](_0x1d42d8,'text/html')['body']['textContent']]);}),this['focusables']=new _0xacc2f8(),this['focusTracker']=new _0x336aa3(),this['keystrokes']=new _0x44c975(),this['focusCycler']=new _0x46889d({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x320f7d=>_0x320f7d['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x9f0ce8,this['_localUser']=_0x1661b8,this['_config']=_0x5196ef,_0x5196ef['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x5cdee5(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x28ca78}=this['_config'];this['commentsListView']=new _0x28ca78(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',_0x1e3fcf=>_0x1e3fcf+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x49b84d,_0x28b05f)=>_0x49b84d||!!_0x28b05f);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x4c02c7}=this['_config'],_0x4854b7=new _0x4c02c7(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x18238e=_0x4854b7['commentInputView'];return _0x4854b7['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x18238e,'value',(_0x2e1a8a,_0x256ddb,_0x27db38)=>!!_0x27db38||_0x2e1a8a&&!_0x256ddb),_0x18238e['on']('submit',(_0x56c76d,_0x418663)=>{this['fire']('addComment',_0x418663),_0x18238e['editor']['setData']('');}),_0x18238e['on']('cancel',()=>this['focus']()),_0x18238e['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4854b7;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x344405,_0x100ffd,_0x25df94,_0x1464cf){super(_0x344405,_0x100ffd,_0x25df94,_0x1464cf),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x2d79db=>_0x2d79db&&_0x2d79db[0x0]?_0x2d79db[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x5cd751,_0x426f2a)=>{let _0x1cf066='';for(const _0x4ff3fb of _0x5cd751)_0x1cf066+='<p>'+ls(_0x4ff3fb['content'],_0x4ff3fb['color'])+'</p>';return _0x426f2a?_0x1cf066:_0x5adfa0(_0x1cf066,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x1464cf['SuggestionView'](_0x344405,_0x100ffd,{'formatDateTime':_0x1464cf['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 _0x1fac66=this['bindTemplate'],_0x3b3403=[this['suggestionView']];return this['commentsListView']&&_0x3b3403['push'](this['commentsListView']),this['commentThreadInputView']&&_0x3b3403['push'](this['commentThreadInputView']),_0x3b3403['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x1fac66['if']('isActive','ck-suggestion-wrapper--active'),_0x1fac66['to']('type',_0x217891=>'ck-suggestion-'+_0x217891),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':_0x1fac66['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x3b3403};}['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 _0x46004f{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x27bdb9,_0x4990c8,_0x59a2c4){super(_0x27bdb9),this['_model']=_0x4990c8,this['_config']=_0x59a2c4,this['set']('description',''),this['bind']('authoredAt')['to'](_0x4990c8),this['acceptButton']=this['_createButton'](o(_0x27bdb9,'Accept\x20suggestion'),_0x2e6b0d,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x27bdb9,'Discard\x20suggestion'),_0x5bdd65,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x2446ac(_0x27bdb9,_0x4990c8['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0xacc2f8([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x336aa3(),this['keystrokes']=new _0x44c975(),this['focusCycler']=new _0x46889d({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x1de62d=>_0x1de62d['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x1abce6=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x1abce6['innerHTML']=this['description'],this['on']('change:description',(_0x1ad0e8,_0x28c8e9,_0x21b577)=>{_0x1abce6['innerHTML']=_0x21b577;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x167f64=this['bindTemplate'],_0xd19735=[{'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':_0x167f64['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x167f64['to']('authoredAt',_0x57ca1b=>this['_config']['formatDateTime'](_0x57ca1b))}]}]},{'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']&&_0xd19735['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':_0xd19735}]};}['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'](_0x549213,_0x32166d,_0x483407,_0x9b78d8,_0x4fb9a7){const _0x2af108=new _0x6a4be6(this['locale']);return _0x2af108['set']({'label':_0x549213,'icon':_0x32166d,'tooltip':!0x0,'tooltipPosition':_0x4fb9a7}),_0x2af108['extendTemplate']({'attributes':{'class':_0x483407}}),_0x2af108['on']('execute',()=>{this['fire'](_0x9b78d8,this['_model']['id']);}),_0x2af108;}['_setupKeyboardNavigation'](){const _0x35b587=this['element'];this['keystrokes']['listenTo'](_0x35b587);for(const _0x2df24b of this['focusables'])this['focusTracker']['add'](_0x2df24b['element']),this['keystrokes']['listenTo'](_0x2df24b['element']);this['keystrokes']['set']('enter',(_0x272ec2,_0xe70cc0)=>{_0x35b587===_0x272ec2['target']&&(this['focusCycler']['focusFirst'](),_0xe70cc0());}),this['keystrokes']['set']('esc',(_0x35c15c,_0xf0c804)=>{_0x35b587!==_0x35c15c['target']&&(this['focus'](),_0xf0c804());});}}class u extends _0x2e45f0{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x5e477a,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3acd88){super(_0x3acd88),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x2d9c9c=this['editor']['config'];_0x2d9c9c['define']('trackChanges.SuggestionThreadView',fe),_0x2d9c9c['define']('trackChanges.SuggestionView',we),_0x2d9c9c['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x2d9c9c['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x20f412,_0x53abf0){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x327a91,_0x5951d6]of this['_handleControllerBuffer']){const _0x2e4271=this['_suggestionToController']['has'](_0x327a91);_0x2e4271||_0x5951d6?_0x2e4271&&_0x5951d6&&this['_destroyController'](_0x327a91):this['_initializeController'](_0x327a91);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x20f412,_0x53abf0);}['init'](){const _0x2e3b4b=this['editor'],_0x140561=_0x2e3b4b['plugins']['get']('TrackChangesEditing'),_0x2a63c7=_0x2e3b4b['plugins']['get']('Annotations'),_0x4a7a78=_0x2e3b4b['plugins']['get']('EditorAnnotations'),_0x4862ef=_0x2e3b4b['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x4a7a78['addSourceCollector'](()=>{const _0x47ca72=[];for(const [_0x4b46e5,_0x6da4b6]of Array['from'](this['_suggestionToController'])){const _0x9def6b=_0x4b46e5['getAllAdjacentSuggestions'](),_0x4f9953=[];for(const _0x351dca of _0x9def6b){if(!_0x351dca['isInContent'])continue;if(_0x351dca['isMultiRange']){_0x4f9953['push'](..._0x351dca['getRanges']());continue;}const _0x3af5c7=_0x351dca['getFirstRange']();if(_0x4f9953['length']>0x0){const _0x16092f=_0x4f9953[0x0]['getJoined'](_0x3af5c7);if(_0x16092f){_0x4f9953[0x0]=_0x16092f;continue;}}_0x4f9953['push'](_0x3af5c7);}_0x47ca72['push']([_0x6da4b6['view'],_0x4f9953]);}return _0x47ca72;}),this['listenTo'](_0x140561,'suggestionLoaded',(_0x3f1d35,_0x49f88b)=>{this['listenTo'](_0x49f88b,'change:previous',(_0x3d1016,_0x463e2c,_0x26f4ae,_0xf37ea2)=>{_0x49f88b['isInContent']&&(null==_0x26f4ae?(this['_updateController'](_0xf37ea2['head']),this['_handleSuggestionControllerDelayed'](_0x49f88b,!0x1)):(this['_updateController'](_0x26f4ae['head']),null==_0xf37ea2&&this['_handleSuggestionControllerDelayed'](_0x49f88b,!0x0)));}),null!==_0x49f88b['previous']?this['_updateController'](_0x49f88b['head']):this['_handleSuggestionControllerDelayed'](_0x49f88b,!0x1);}),this['listenTo'](_0x140561,'suggestionUnloaded',(_0x51aeda,_0x494104,_0x2753d8)=>{this['stopListening'](_0x494104,'change:previous'),this['_handleControllerBuffer']['delete'](_0x494104),this['_suggestionToController']['has'](_0x494104)&&this['_destroyController'](_0x494104),_0x2753d8&&this['_updateController'](_0x2753d8['head']);}),this['listenTo'](_0x140561,'suggestionChanged',(_0x34f9e0,_0x4eedb5)=>{this['_updateController'](_0x4eedb5);}),this['listenTo'](_0x2a63c7,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x4862ef,'addComment',(_0x54d271,{threadId:_0x50b6c3,isFromAdapter:_0x2c8580})=>{if(_0x2c8580||!_0x140561['hasSuggestion'](_0x50b6c3))return;const _0x46fb62=_0x140561['getSuggestion'](_0x50b6c3);this['_suggestionToController']['get'](_0x46fb62)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x15351d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2d5222;for(const _0x441387 in _0x15351d){const _0x3e6bc1=_0x441387,_0x45ab7c=_0x15351d[_0x3e6bc1];if('trackChangesLicenseKeyValid'==_0x45ab7c||'trackChangesLicenseKeyInvalid'==_0x45ab7c||'trackChangesLicenseKeyExpired'==_0x45ab7c||'trackChangesLicenseKeyDomainLimit'==_0x45ab7c||'trackChangesLicenseKeyNotAllowed'==_0x45ab7c||'trackChangesLicenseKeyEvaluationLimit'==_0x45ab7c||'trackChangesLicenseKeyUsageLimit'==_0x45ab7c){delete _0x15351d[_0x3e6bc1],_0x2d5222=_0x45ab7c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x2d5222&&_0x15351d['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x2d5222&&_0x15351d['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x2d5222&&_0x15351d['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x2d5222&&_0x15351d['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x2d5222&&_0x15351d['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x2d5222&&_0x15351d['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x208a67){const _0x4d2645=this['_suggestionToController']['get'](_0x208a67);if(!_0x4d2645)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x4d2645['view'])||null;}['getSuggestionForAnnotation'](_0x18e7d9){const _0x300c1f=this['_viewToController']['get'](_0x18e7d9['innerView']);return _0x300c1f?_0x300c1f['model']:null;}['_refreshActiveMarkers'](){const _0x276f0c=this['editor']['plugins']['get']('Annotations'),_0x123840=this['editor']['plugins']['get']('TrackChangesEditing'),_0x33d4b0=Array['from'](_0x276f0c['activeAnnotations'],_0x94d8f0=>_0x94d8f0['innerView'])['filter'](_0x4020f2=>this['_viewToController']['has'](_0x4020f2)),_0x242f32=[];for(const _0x23dbfb of _0x33d4b0){const _0x3c31a0=this['_viewToController']['get'](_0x23dbfb)['model']['getAllAdjacentSuggestions']();_0x242f32['push'](..._0x3c31a0['reduce']((_0x719237,_0x48b995)=>[..._0x719237,..._0x48b995['getMarkerNames']()],[]));}_0x123840['activeMarkers']=_0x242f32;}['_addUIComponentsToFactory'](){const _0x30cd7f=this['editor'],_0x54b5f5=_0x30cd7f['locale'],_0x28dbe2=o(_0x54b5f5,'Track\x20changes'),_0x486645=new _0x42976f([{'type':'switchbutton','model':new _0x5c57af({'withText':!0x0,'isToggleable':!0x0,'label':_0x28dbe2,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x5c57af({'withText':!0x0,'label':o(_0x54b5f5,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5c57af({'withText':!0x0,'label':o(_0x54b5f5,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5c57af({'withText':!0x0,'label':o(_0x54b5f5,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5c57af({'withText':!0x0,'label':o(_0x54b5f5,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x30cd7f['plugins']['has']('TrackChangesPreview')&&_0x486645['addMany']([{'type':'separator'},{'type':'button','model':new _0x5c57af({'withText':!0x0,'label':o(_0x54b5f5,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x3db33e of _0x486645)if(ke(_0x3db33e)){const _0x5c2d91=_0x30cd7f['commands']['get'](_0x3db33e['model']['commandName']);_0x3db33e['model']['bind']('isOn','isEnabled')['to'](_0x5c2d91,'value','isEnabled');}_0x30cd7f['ui']['componentFactory']['add']('trackChanges',_0x514bbc=>this['_createToolbarButton'](_0x514bbc,_0x486645,_0x28dbe2)),_0x30cd7f['ui']['componentFactory']['add']('menuBar:trackChanges',_0x51ef39=>this['_createMenuBarMenu'](_0x51ef39,_0x486645,_0x28dbe2));}['_createToolbarButton'](_0x3fceb1,_0x20f3f0,_0x3a50a5){const _0x419460=_0x31becb(_0x3fceb1,_0xf30cee),_0x3baee5=this['editor']['commands']['get']('trackChanges');_0x419460['buttonView']['set']({'tooltip':_0x3a50a5,'label':_0x3a50a5,'icon':_0x361d1}),_0x419460['buttonView']['bind']('isOn')['to'](_0x3baee5,'value'),_0x419460['buttonView']['on']('execute',()=>{_0x3baee5['execute'](),this['editor']['editing']['view']['focus']();}),_0x220bd2(_0x419460,_0x20f3f0,{'role':'menu'});const _0x22f483=[];for(const _0x1fb9fd of _0x20f3f0)ke(_0x1fb9fd)&&_0x22f483['push'](this['editor']['commands']['get'](_0x1fb9fd['model']['commandName']));const _0x5b402a=_0x419460['buttonView'];return _0x5b402a['actionView']['unbind']('isEnabled'),_0x5b402a['arrowView']['unbind']('isEnabled'),_0x5b402a['actionView']['bind']('isEnabled')['to'](_0x3baee5,'isEnabled'),_0x5b402a['arrowView']['bind']('isEnabled')['toMany'](_0x22f483,'isEnabled',(..._0x1ad318)=>_0x1ad318['some'](_0x4535d7=>_0x4535d7)),_0x419460['on']('execute',_0x61be4c=>{this['editor']['execute'](_0x61be4c['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x419460;}['_createMenuBarMenu'](_0x20e1c7,_0x38efaa,_0xc76aff){const _0x20a442=new _0x225aff(_0x20e1c7),_0x5b77eb=this['editor']['commands']['get']('trackChanges');_0x20a442['buttonView']['set']({'label':_0xc76aff,'icon':_0x361d1});const _0x4d73e9=new _0x2e2fc7(_0x20e1c7);for(const _0x3e33be of _0x38efaa){if('separator'==_0x3e33be['type']){_0x4d73e9['items']['add'](new _0x52c98d(_0x20e1c7));continue;}const _0x31c20b=new _0x2651e3(_0x20e1c7,_0x20a442),_0x10c20f=new _0x339f6b(_0x20e1c7),_0x565229=_0x3e33be['model'];_0x10c20f['bind'](...Object['keys'](_0x565229))['to'](_0x565229),_0x10c20f['delegate']('execute')['to'](_0x20a442),_0x10c20f['on']('execute',()=>{this['editor']['execute'](_0x565229['commandName']),this['editor']['editing']['view']['focus']();}),_0x31c20b['children']['add'](_0x10c20f),_0x4d73e9['items']['add'](_0x31c20b);}return _0x20a442['bind']('isEnabled')['to'](_0x5b77eb,'isEnabled'),_0x20a442['panelView']['children']['add'](_0x4d73e9),_0x20a442;}['_initializeController'](_0x3630fb){const _0x37e2ba=this['editor'],_0x1b71f7=_0x37e2ba['config'],_0x420339=_0x37e2ba['plugins']['get']('Annotations'),_0x5497c3=_0x37e2ba['plugins']['get']('CommentsRepository'),_0x4a5de2=_0x37e2ba['plugins']['get']('EditorAnnotations'),_0x878653=_0x37e2ba['plugins']['get'](_0x5e477a)['me'],_0x532603=_0x1b71f7['get']('trackChanges')['SuggestionThreadView'],_0x1e39ea=_0x1b71f7['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x123d4d,CommentThreadInputView:_0x414a70}=_0x37e2ba['plugins']['get']('CommentsUI');let _0x4d634b,_0x7aa276,_0x2915eb;this['_annotationViews']['has'](_0x3630fb['id'])?(_0x7aa276=this['_annotationViews']['get'](_0x3630fb['id']),_0x4d634b=_0x7aa276['mainView']):(_0x4d634b=new _0x532603(_0x37e2ba['locale'],_0x3630fb,_0x878653,{'disableComments':this['_disableComments'],'editorConfig':{..._0x1b71f7['get']('comments.editorConfig'),'licenseKey':_0x1b71f7['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x1b71f7['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x1b71f7['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x1b71f7['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x6ed343(_0x1b71f7['get']('locale'),_0x37e2ba['locale']),'CommentView':_0x1b71f7['get']('comments')['CommentView'],'CommentsListView':_0x123d4d,'CommentThreadInputView':_0x414a70,'SuggestionView':_0x1e39ea}),_0x4d634b['suggestionView']['acceptButton']['on']('execute',()=>{_0x37e2ba['editing']['view']['focus']();}),_0x4d634b['suggestionView']['discardButton']['on']('execute',()=>{_0x37e2ba['editing']['view']['focus']();}),_0x7aa276=_0x420339['createAnnotationView'](this['editor']['locale'],_0x4d634b),_0x7aa276['bind']('isDirty')['to'](_0x4d634b,'isDirty'),_0x7aa276['bind']('length')['to'](_0x4d634b),_0x7aa276['bind']('type')['to'](_0x4d634b,'type',_0x24b456=>'suggestion-'+_0x24b456),_0x4d634b['on']('escape',()=>{_0x2915eb['fire']('escape');}),this['_annotationViews']['set'](_0x3630fb['id'],_0x7aa276));const _0x3f3a25=_0x5497c3['createCommentThreadController'](_0x3630fb['commentThread'],_0x4d634b),_0x3699bf=new pe(_0x37e2ba,_0x3630fb,_0x4d634b,_0x3f3a25),_0x32b89f=_0x3630fb['getAllAdjacentSuggestions']()['filter'](_0x58399c=>_0x58399c['isInContent']);_0x4d634b['descriptionParts']=_0x37e2ba['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x32b89f),this['_suggestionToController']['set'](_0x3630fb,_0x3699bf),this['_viewToController']['set'](_0x4d634b,_0x3699bf);const _0x3e1968=()=>{const _0x2f8284=[],_0x4fcc32=_0x3630fb['getAllAdjacentSuggestions']()['filter'](_0x485320=>_0x485320['isInContent']);for(const _0x1211d7 of _0x4fcc32)_0x2f8284['push'](..._0x1211d7['getMarkers']());return _0x13b0a5(_0x37e2ba['editing'],_0x2f8284);};_0x2915eb=_0x420339['createAnnotation']({'view':_0x7aa276,'target':_0x3e1968,'type':()=>'suggestion-'+_0x3699bf['view']['type'],'isVisible':!!_0x3e1968()}),_0x5497c3['_bindAnnotationToEditors'](_0x4d634b,_0x2915eb),_0x420339['add'](_0x2915eb),_0x4a5de2['registerAnnotation'](_0x2915eb);}['_destroyController'](_0x580721){const _0x24abfa=this['editor']['plugins']['get']('CommentsRepository'),_0x1bb4e5=this['editor']['plugins']['get']('Annotations'),_0x37ca92=this['_suggestionToController']['get'](_0x580721),_0x441642=_0x37ca92['view'],_0x262f9b=_0x1bb4e5['getByInnerView'](_0x441642);_0x24abfa['_unbindEditors'](_0x441642),_0x262f9b&&_0x1bb4e5['remove'](_0x262f9b),this['_suggestionToController']['delete'](_0x580721),this['_viewToController']['delete'](_0x441642),_0x37ca92['destroy']();}['_updateController'](_0x3f993d){if(!_0x3f993d['isInContent']||!this['_suggestionToController']['has'](_0x3f993d))return;const _0x4f8135=this['editor']['plugins']['get']('TrackChangesEditing'),_0xb41e94=this['_suggestionToController']['get'](_0x3f993d),_0x429395=_0x3f993d['getAllAdjacentSuggestions']();_0xb41e94['view']['descriptionParts']=_0x4f8135['descriptionFactory']['getDescriptions'](_0x429395);}['destroy'](){for(const _0x5d8dea of this['_suggestionToController']['keys']())this['_destroyController'](_0x5d8dea);for(const _0x145a10 of this['_annotationViews']['values']())_0x145a10['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x5f3d9c){return'model'in _0x5f3d9c;}class Ne extends _0x2e45f0{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x5def60){this['editor']['plugins']['get'](d)['adapter']=_0x5def60;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x14a0df){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x14a0df);}['getSuggestions']({skipNotAttached:_0x24389a=!0x1,toJSON:_0x4d1076=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x24389a,'toJSON':_0x4d1076});}['getSuggestion'](_0x1d8e61){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x1d8e61);}}const p=['Pagination'];class re extends _0x2e45f0{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x5471dc=this['editor'];if(_0x5471dc['config']['define']('trackChangesData.editorCreator',_0x584c86=>{const _0x8181bb=_0x5471dc['model']['document']['getRootNames']()['reduce']((_0x3481be,_0xdc4061)=>(_0x3481be[_0xdc4061]='',_0x3481be),{});return _0x5471dc['constructor']['create'](_0x8181bb,_0x584c86);}),'function'!=typeof _0x5471dc['config']['get']('trackChangesData')['editorCreator'])throw new _0x4884ad('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x5a5dc1){return P(this['editor'],!0x0,_0x5a5dc1);}['getDataWithDiscardedSuggestions'](_0x43c990){return P(this['editor'],!0x1,_0x43c990);}}class Fe extends _0x2e45f0{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x42006c){function _0x5b81e1(_0x1aaeb8){return _0x1aaeb8['map'](_0x275f34=>String['fromCharCode'](_0x275f34))['join']('');}super(_0x42006c),this['result']='end',_0x42006c[_0x5b81e1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5b81e1([0x76,0x69,0x65,0x77])][_0x5b81e1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5b81e1([0x61,0x75,0x74,0x6f]),_0x42006c[_0x5b81e1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x5b81e1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5b81e1([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x5b81e1([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x5b81e1([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 De(_0x31edbc){return void 0x0!==_0x31edbc['getRootsAttributes'];}async function P(_0x1a0939,_0x62317,_0x3ca736){const _0x5121a6=_0x5ca67e(_0x1a0939,p);_0x5121a6['plugins']['push'](d,Fe),_0x5121a6['rootsAttributes']=De(_0x1a0939)?_0x1a0939['getRootsAttributes']():void 0x0;const _0xfdc2a2=document['createDocumentFragment'](),_0x110ea8=_0x1a0939['config']['get']('trackChangesData')['editorCreator'],_0x105d14=await _0x110ea8(_0x5121a6,()=>function(_0x1a9ab5){const _0x3f39f8=document['createElement']('div');return _0x1a9ab5['appendChild'](_0x3f39f8),_0x3f39f8;}(_0xfdc2a2));!function(_0x1428c2,_0x12c218){const _0x1602f1=_0x1428c2['model']['document']['getRootNames']()['reduce']((_0x5ef000,_0x41cd69)=>(_0x5ef000[_0x41cd69]=_0x1428c2['data']['get']({'rootName':_0x41cd69}),_0x5ef000),{}),_0x1df1b8=_0x1428c2['plugins']['get']('Users')['users']['map'](_0x5d1b92=>({'id':_0x5d1b92['id'],'name':_0x5d1b92['name']})),_0x4c156b=_0x1428c2['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x44fab4=_0x1428c2['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x33df86=_0x12c218['plugins']['get']('Users'),_0x10fb8d=_0x12c218['plugins']['get']('TrackChangesEditing'),_0x2fee25=_0x12c218['plugins']['get']('CommentsRepository');for(const _0x44dd24 of _0x2fee25['getCommentThreads']())_0x44dd24['remove']();for(const _0x12f9e5 of _0x1df1b8)_0x33df86['getUser'](_0x12f9e5['id'])||_0x33df86['addUser'](_0x12f9e5);_0x33df86['me']||_0x33df86['useAnonymousUser']();for(const _0x499bc5 of _0x44fab4)_0x2fee25['addCommentThread'](_0x499bc5);for(const _0x11b86a of _0x4c156b)_0x10fb8d['addSuggestionData'](_0x11b86a);_0x12c218['data']['set'](_0x1602f1);}(_0x1a0939,_0x105d14),_0x105d14['execute'](_0x62317?'acceptAllSuggestions':'discardAllSuggestions');const _0x381c20=De(_0x105d14)?_0x105d14['getFullData'](_0x3ca736):_0x105d14['data']['get'](_0x3ca736);return await _0x105d14['destroy'](),_0x381c20;}class Me extends _0x46004f{['options'];constructor(_0x5e2699,_0x37506e){super(_0x5e2699),this['options']=_0x37506e,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'](_0x475150,_0x29eb2e){if(!this['element'])return;const _0x5b26d8=[];for(const [_0x3f0721,_0x4a8cdc]of _0x475150){const _0x51b8fa=document['createElement']('div');_0x51b8fa['setAttribute']('data-ck-root-name',_0x3f0721),_0x51b8fa['className']=_0x4a8cdc['classes']+'\x20ck-track-changes-preview__root-container',_0x51b8fa['innerHTML']=_0x4a8cdc['content'],_0x5b26d8['push'](_0x51b8fa);}_0x29eb2e(this['element'],_0x5b26d8),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x3fcd7b{constructor(_0x4d5f80){super(_0x4d5f80),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x3b7748=this['editor'],_0x22a00b=_0x3b7748['locale'],_0x222c90=_0x3b7748['plugins']['get']('Dialog');let _0x536f07;const _0x498ad7=function(_0x4b8f02){const _0x5ab3de={};if('editables'in _0x4b8f02['ui']['view']){for(const [_0x22518d,_0x53704c]of Object['entries'](_0x4b8f02['ui']['view']['editables']))_0x5ab3de[_0x22518d]=_0x53704c['element'];}else _0x5ab3de[_0x4b8f02['model']['document']['getRootNames']()[0x0]]=_0x4b8f02['ui']['view']['editable']['element'];return _0x5ab3de;}(_0x3b7748),_0x595866=function(_0x51ca7b){let _0xc25769=0x0;for(const _0x59e774 of Object['values'](_0x51ca7b))_0xc25769=Math['max'](_0xc25769,_0x59e774['getBoundingClientRect']()['width']);let _0x2c533f=0x0;for(const _0x4dea1a of Object['values'](_0x51ca7b))_0x2c533f+=_0x4dea1a['getBoundingClientRect']()['height'];const _0x172742=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x499ae0=Math['min'](_0x2c533f,_0x172742);return{'width':_0xc25769,'height':_0x499ae0};}(_0x498ad7);_0x222c90['show']({'id':'finalContentPreview','title':o(_0x22a00b,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x22a00b,{'dialogRects':_0x595866}),'onHide':()=>{_0x536f07['detachFromDom']();},'onShow':()=>{_0x3b7748['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x1d9872=>{const _0x169f96=this['_standarizeRootsData'](_0x1d9872,_0x3b7748,_0x498ad7);_0x222c90['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x169f96,_0x3b7748['config']['get']('trackChanges.preview.renderFunction'));}),_0x536f07=new _0x32dedc(_0x22a00b,[_0x222c90['view']]),_0x536f07['attachToDom'](),_0x536f07['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x3b7748['once']('destroy',()=>{_0x536f07['detachFromDom']();});const _0xf977b5=_0x222c90['view']['headerView']['class'];_0x222c90['view']['headerView']['class']=_0xf977b5?_0xf977b5+'\x20ck-reset_all':'ck-reset_all',_0x222c90['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x222c90['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x4785ee=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x404911=_0x4785ee['previewMode'],_0x26e2e8={};if('$labels'===_0x404911){for(const _0xc91bf5 of _0x4785ee['getMergeFieldsIds']())_0x26e2e8[_0xc91bf5]=_0x4785ee['getLabel'](_0xc91bf5)||_0xc91bf5;}else{const _0x287c41='$defaultValues'===_0x404911?_0x4785ee['getDefaultValues']():_0x4785ee['getDataSetValues'](_0x404911,!0x0);for(const _0x455967 of Object['entries'](_0x287c41)){const [_0x144a4b,_0x3aab62]=_0x455967;_0x26e2e8[_0x144a4b]=null!==_0x3aab62?_0x3aab62:_0x4785ee['getLabel'](_0x144a4b)||_0x144a4b;}}return{'mergeFieldsData':_0x26e2e8};}['_standarizeRootsData'](_0x332a5a,_0x2ccbb2,_0x5bd39f){let _0x4117e0;if('string'==typeof _0x332a5a){const _0x18b91e=_0x2ccbb2['model']['document']['getRootNames']()[0x0];_0x4117e0={[_0x18b91e]:_0x332a5a};}else _0x4117e0=_0x332a5a;const _0x2b37d1=this['_fixMediaEmbeds'](_0x4117e0,_0x2ccbb2),_0xb4b842=function(_0x4a02a9,_0xc49e08){for(const [_0x559758,_0x55a012]of _0x4a02a9)_0x55a012['classes']=_0xc49e08[_0x559758]['classList']['value']['replace']('ck-focused','');return _0x4a02a9;}(this['_sortRoots'](_0x2ccbb2)['reduce']((_0x4be73e,_0xaf8165)=>(_0x4be73e['push']([_0xaf8165,{'content':_0x2b37d1[_0xaf8165],'classes':''}]),_0x4be73e),[]),_0x5bd39f);return _0xb4b842;}['_fixMediaEmbeds'](_0x4c56cf,_0x2dbf45){if(!_0x2dbf45['plugins']['has']('MediaEmbedEditing'))return _0x4c56cf;const _0x57b9a8=_0x2dbf45['plugins']['get']('MediaEmbedEditing');for(const [_0x502038,_0x36833f]of Object['entries'](_0x4c56cf)){const _0x293bc2=document['createElement']('div');_0x293bc2['innerHTML']=_0x36833f,(_0x293bc2['querySelectorAll']('figure.media')['forEach'](_0x69ed81=>{const _0x2fcca1=_0x69ed81['querySelector']('oembed');if(_0x2fcca1){const _0x5367e1=_0x2fcca1['getAttribute']('url');if(_0x5367e1){const _0x404ade=_0x57b9a8['registry']['getMediaViewElement'](new _0xcde0e1(_0x2dbf45['editing']['view']['document']),_0x5367e1,{'elementName':'','renderForEditingView':!0x0}),_0x24f0ba=document['createElement']('div');_0x24f0ba['classList']['add']('ck-media__wrapper'),_0x404ade['render'](_0x24f0ba,_0x2dbf45['editing']['view']['domConverter']),_0x2fcca1['replaceWith'](_0x24f0ba);}}}),_0x4c56cf[_0x502038]=_0x293bc2['innerHTML']);}return _0x4c56cf;}['_sortRoots'](_0x347074){if(!function(_0x3a6499){return void 0x0!==_0x3a6499['getRootsAttributes'];}(_0x347074))return _0x347074['model']['document']['getRootNames']();const _0x4284d9=[],_0x378c82=new Map();for(const _0x383192 of _0x347074['model']['document']['getRootNames']()){const _0x3e1f3d=_0x347074['editing']['view']['getDomRoot'](_0x383192)['getClientRects']()['item'](0x0);_0x4284d9['push'](_0x383192),_0x378c82['set'](_0x383192,_0x3e1f3d);}return _0x4284d9['sort']((_0x5dfe76,_0xe0dd9a)=>{const _0x27a4d4=_0x378c82['get'](_0x5dfe76),_0x434366=_0x378c82['get'](_0xe0dd9a);return _0x27a4d4['y']-_0x434366['y']||_0x27a4d4['x']-_0x434366['x'];}),_0x4284d9;}}class Ue extends _0x2e45f0{static get['requires'](){return[re,_0x3bc530];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5c896d){super(_0x5c896d),_0x5c896d['commands']['add']('previewFinalContent',new te(this['editor'])),_0x5c896d['config']['define']('trackChanges.preview.renderFunction',(_0x4af29c,_0x5bc890)=>{for(const _0x315d0d of _0x5bc890)_0x4af29c['appendChild'](_0x315d0d);});}}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,Ne as TrackChanges,B as TrackChangesCommand,re as TrackChangesData,Fe as TrackChangesDataGetter,d as TrackChangesEditing,Ue as TrackChangesPreview,u as TrackChangesUI};