@ckeditor/ckeditor5-track-changes 46.1.0-alpha.0 → 46.1.0-alpha.1

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 (227) hide show
  1. package/build/track-changes.js +1 -1
  2. package/dist/index.js +4 -4
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +27 -27
  150. package/src/commands/acceptsuggestioncommand.js +1 -1
  151. package/src/commands/discardsuggestioncommand.js +1 -1
  152. package/src/commands/executeonallsuggestionscommand.js +1 -1
  153. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  154. package/src/commands/previewfinalcontentcommand.js +1 -1
  155. package/src/commands/trackchangescommand.js +1 -1
  156. package/src/index.js +1 -1
  157. package/src/integrations/aiassistant.js +1 -1
  158. package/src/integrations/alignment.js +1 -1
  159. package/src/integrations/basicstyles.js +1 -1
  160. package/src/integrations/blockquote.js +1 -1
  161. package/src/integrations/bookmark.js +1 -1
  162. package/src/integrations/casechange.js +1 -1
  163. package/src/integrations/ckbox.js +1 -1
  164. package/src/integrations/codeblock.js +1 -1
  165. package/src/integrations/comments.js +1 -1
  166. package/src/integrations/deletecommand.js +1 -1
  167. package/src/integrations/emoji.js +1 -1
  168. package/src/integrations/entercommand.js +1 -1
  169. package/src/integrations/findandreplace.js +1 -1
  170. package/src/integrations/font.js +1 -1
  171. package/src/integrations/formatpainter.js +1 -1
  172. package/src/integrations/heading.js +1 -1
  173. package/src/integrations/highlight.js +1 -1
  174. package/src/integrations/horizontalline.js +1 -1
  175. package/src/integrations/htmlembed.js +1 -1
  176. package/src/integrations/image.js +1 -1
  177. package/src/integrations/imagereplace.js +1 -1
  178. package/src/integrations/imagestyle.js +1 -1
  179. package/src/integrations/importword.js +1 -1
  180. package/src/integrations/indent.js +1 -1
  181. package/src/integrations/inputcommand.js +1 -1
  182. package/src/integrations/legacylist.js +1 -1
  183. package/src/integrations/legacylistproperties.js +1 -1
  184. package/src/integrations/lineheight.js +1 -1
  185. package/src/integrations/link.js +1 -1
  186. package/src/integrations/list.js +1 -1
  187. package/src/integrations/listproperties.js +1 -1
  188. package/src/integrations/mediaembed.js +1 -1
  189. package/src/integrations/mention.js +1 -1
  190. package/src/integrations/mergefields.js +1 -1
  191. package/src/integrations/multilevellist.js +1 -1
  192. package/src/integrations/pagebreak.js +1 -1
  193. package/src/integrations/paragraph.js +1 -1
  194. package/src/integrations/removeformat.js +1 -1
  195. package/src/integrations/replacesourcecommand.js +1 -1
  196. package/src/integrations/restrictededitingmode.js +1 -1
  197. package/src/integrations/shiftentercommand.js +1 -1
  198. package/src/integrations/standardeditingmode.js +1 -1
  199. package/src/integrations/style.js +1 -1
  200. package/src/integrations/table.js +1 -1
  201. package/src/integrations/tablecaption.js +1 -1
  202. package/src/integrations/tableclipboard.js +2 -2
  203. package/src/integrations/tablecolumnresize.js +1 -1
  204. package/src/integrations/tableheadings.js +1 -1
  205. package/src/integrations/tablelayout.js +1 -1
  206. package/src/integrations/tablemergesplit.js +1 -1
  207. package/src/integrations/tableofcontents.js +1 -1
  208. package/src/integrations/tableproperties.js +1 -1
  209. package/src/integrations/template.js +1 -1
  210. package/src/integrations/title.js +1 -1
  211. package/src/integrations/undo.js +1 -1
  212. package/src/integrations/uploadcare.js +1 -1
  213. package/src/integrations/utils.js +1 -1
  214. package/src/suggestion.js +2 -2
  215. package/src/suggestiondescriptionfactory.js +1 -1
  216. package/src/trackchanges.js +1 -1
  217. package/src/trackchangesdata.js +1 -1
  218. package/src/trackchangesediting.js +1 -1
  219. package/src/trackchangespreview.js +1 -1
  220. package/src/trackchangesui.js +1 -1
  221. package/src/ui/suggestioncontroller.js +2 -2
  222. package/src/ui/view/basesuggestionthreadview.js +1 -1
  223. package/src/ui/view/suggestionthreadview.js +1 -1
  224. package/src/ui/view/suggestionview.js +1 -1
  225. package/src/ui/view/trackchangespreviewview.js +1 -1
  226. package/src/utils/common-translations.js +1 -1
  227. 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 _0x496482,Plugin as _0xe680e7,PendingActions as _0x3db646}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x56f143,ObservableMixin as _0x290c21,uid as _0x29bcf7,priorities as _0x3771e3,insertToPriorityArray as _0x3bf6d0,toArray as _0x56ffe6,logWarning as _0x3e241f,getEnvKeystrokeText as _0x5e1f5f,FocusTracker as _0x47b4e3,KeystrokeHandler as _0x554820,Collection as _0x4d97d4}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x3cb433,IconCancel as _0x2259c8,IconTrackChanges as _0x2bbe84}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x267957,View as _0x434eb5,ViewCollection as _0x3162c6,FocusCycler as _0x3fedb7,UIModel as _0x14eac5,createDropdown as _0xf588af,SplitButtonView as _0x540529,addListToDropdown as _0x3e7092,MenuBarMenuView as _0x402c46,MenuBarMenuListView as _0x5a92db,ListSeparatorView as _0x2d45ef,MenuBarMenuListItemView as _0x591776,MenuBarMenuListItemButtonView as _0x4e41e1,BodyCollection as _0x1d3989,Dialog as _0x3ec4d3}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x9e4cfc,hashObject as _0x547e54,surroundingMarkersDetector as _0x1bb4cb,FOCUS_ANNOTATION_KEYSTROKE as _0x27f0cb,AriaDescriptionView as _0x2d2058,setupThreadKeyboardNavigation as _0xa5c0ff,trimHtml as _0x5488c,UserView as _0x4f2257,LateFocusButtonView as _0x6543dc,getDateTimeFormatter as _0x3bd3af,getAllMarkersDomElementsSorted as _0x4fbd1e,sanitizeEditorConfig as _0x19ed98}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x55ee28,ModelLiveRange as _0x50a820,ModelLivePosition as _0x5da3ae,ViewDowncastWriter as _0xdc0055}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x19f8a1,toWidget as _0x2a9ddb}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x2ad9da,set as _0x55bf30,isEqual as _0x48888a,unset as _0xc03c91,omit as Ut}from'es-toolkit/compat';import{Delete as _0x37cb0f,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x5927bb}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x54ac1d}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class N extends _0x496482{['_enabledCommands'];constructor(_0xd93544,_0x4c4502){super(_0xd93544),this['_enabledCommands']=_0x4c4502,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 _0x4fc735 of this['editor']['commands']['commands']())_0x4fc735['affectsData']&&!this['_enabledCommands']['has'](_0x4fc735)&&_0x4fc735['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x163263 of this['editor']['commands']['commands']())_0x163263['affectsData']&&!this['_enabledCommands']['has'](_0x163263)&&_0x163263['clearForceDisabled']('TrackChangesCommand');}}class D extends _0x496482{['_suggestions'];constructor(_0x68b90b,_0x20e324){super(_0x68b90b),this['_suggestions']=_0x20e324,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x444678){const _0x3c8396=this['_suggestions']['get'](_0x444678);if(!_0x3c8396)throw new _0x56f143('track-changes-accept-suggestion-not-found',this);const _0xe528b6=_0x3c8396['getRanges']();this['editor']['model']['canEditAt'](_0xe528b6)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x3c8396);}}class $ extends _0x496482{['_suggestions'];constructor(_0x2287a3,_0x511427){super(_0x2287a3),this['_suggestions']=_0x511427,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x376924){const _0x1f9ddc=this['_suggestions']['get'](_0x376924);if(!_0x1f9ddc)throw new _0x56f143('track-changes-discard-suggestion-not-found',this);const _0x1fe320=_0x1f9ddc['getRanges']();this['editor']['model']['canEditAt'](_0x1fe320)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x1f9ddc);}}function ls(_0xdda8bf,_0x11e46b){let _0xfa5906='';return _0xfa5906+=_0xdda8bf['split']('*')['map']((_0x28368b,_0x4a43ec)=>_0x4a43ec%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+Zt(_0x28368b)+'</span>':Zt(_0x28368b))['join'](''),_0x11e46b&&(_0xfa5906+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x11e46b['value']+'\x22\x20title=\x22'+_0x11e46b['title']+'\x22></span>'),_0xfa5906;}function Zt(_0x3d73ca){const _0x1b57ff=document['createElement']('span');return _0x1b57ff['innerText']=_0x3d73ca,_0x1b57ff['innerHTML'];}function ts(_0x37fe0f){return _0x37fe0f['sort']((_0x572d0d,_0x2c2159)=>'attribute'===_0x572d0d['type']&&'attribute'!==_0x2c2159['type']?-0x1:'attribute'!==_0x572d0d['type']&&'attribute'===_0x2c2159['type']?0x1:'deletion'==_0x572d0d['type']&&'deletion'!=_0x2c2159['type']?-0x1:'deletion'!=_0x572d0d['type']&&'deletion'==_0x2c2159['type']?0x1:0x0);}function to(_0x2782ed,_0x5b4303){let _0x31e689,_0x45de8a=0x0;const _0x427e83=[],_0x43928c=_0x5b4303['schema'];for(;_0x45de8a<_0x2782ed['length'];){const _0x288ee4=_0x2782ed[_0x45de8a],_0x4b4704=_0x2782ed[_0x45de8a+0x1];_0x31e689||(_0x31e689=_0x5b4303['createPositionBefore'](_0x288ee4)),tn(_0x5b4303,_0x288ee4,_0x4b4704)||(_0x427e83['push'](_0x5b4303['createRange'](_0x31e689,_0x43928c['isObject'](_0x288ee4)?_0x5b4303['createPositionAfter'](_0x288ee4):_0x5b4303['createPositionAt'](_0x288ee4,'end'))),_0x31e689=null),_0x45de8a++;}return _0x427e83;}function tn(_0x2de396,_0x11ce80,_0xe5669f){if(!_0xe5669f)return!0x1;const _0x162823=_0x2de396['createPositionAfter'](_0x11ce80),_0x136cbf=_0x2de396['createPositionBefore'](_0xe5669f);return _0x162823['isTouching'](_0x136cbf);}function rs(_0x562ee4,_0x390a1b,_0x23ad0c){for(;_0x23ad0c['length'];){const _0x2c1f59=_0x23ad0c['splice'](0x0,0x64);_0x562ee4['change'](()=>{for(const _0x7aae38 of _0x2c1f59)_0x7aae38['isInContent']&&_0x390a1b['execute'](_0x7aae38['id']);});}}class M extends _0x496482{['_command'];['_suggestions'];constructor(_0x418fce,_0x38ce58,_0x1bb0ed){super(_0x418fce),this['_command']=_0x38ce58,this['_suggestions']=_0x1bb0ed,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5f2fa7=Array['from'](this['_suggestions']['values']())['some'](_0x485b70=>_0x485b70['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x5f2fa7;}['execute'](){const _0x53b59d=ts(Array['from'](this['_suggestions']['values']()));for(const _0x399a7d of _0x53b59d){const _0x264c19=_0x399a7d['getRanges']();if(!this['editor']['model']['canEditAt'](_0x264c19))return;}rs(this['editor']['model'],this['_command'],_0x53b59d);}}class B extends _0x496482{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x1e554f,_0x52d4d2,_0x17c8ac){super(_0x1e554f),this['_command']=_0x52d4d2,this['_suggestions']=_0x17c8ac,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5a225d=this['editor']['model']['document']['selection'],_0x9c1ce9=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x50ed4f,_0x5eb167){const _0x5608ae=Array['from'](_0x50ed4f['getRanges']()),_0x1c2af9=new Set();for(const _0x5a8943 of _0x5eb167)if(_0x5a8943['isInContent']){for(const _0x1c636b of _0x5608ae)for(const _0x33921a of _0x5a8943['getRanges']())(_0x1c636b['isIntersecting'](_0x33921a)||_0x50ed4f['isCollapsed']&&!_0x5a8943['isMultiRange']&&_0x5a8943['next']&&_0x33921a['end']['isTouching'](_0x1c636b['start']))&&_0x1c2af9['add'](_0x5a8943);}return _0x1c2af9;}(_0x5a225d,_0x9c1ce9),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x3f33cb=ts(Array['from'](this['_selectedSuggestions']));for(const _0x357fb8 of _0x3f33cb){const _0x1ff21a=_0x357fb8['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1ff21a))return;}rs(this['editor']['model'],this['_command'],_0x3f33cb);}}class T extends/* #__PURE__ -- @preserve */
24
- _0x290c21(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x576074,_0x1f62f4){super(),this['id']=_0x1f62f4['id'],this['type']=_0x1f62f4['type'],this['subType']=_0x1f62f4['subType']||null,this['author']=_0x1f62f4['author'],this['creator']=_0x1f62f4['creator']||_0x1f62f4['author'],this['isExternal']=Boolean(_0x1f62f4['attributes']&&_0x1f62f4['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x1f62f4['originalSuggestionId']||null,this['_model']=_0x576074,this['_onAccept']=_0x1f62f4['onAccept'],this['_onDiscard']=_0x1f62f4['onDiscard'],this['_onAttributesChange']=_0x1f62f4['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1f62f4['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 _0x38837b=this;for(;_0x38837b['previous'];)_0x38837b=_0x38837b['previous'];return _0x38837b;}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'](_0x5386ca){this['_markerNames']['add'](_0x5386ca);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x44c6ca=>this['_model']['markers']['get'](_0x44c6ca))['filter'](_0xc4f79d=>_0xc4f79d);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x1f558f=>{for(const _0x48e1a3 of this['getMarkers']())_0x1f558f['removeMarker'](_0x48e1a3);}),this['_markerNames']['clear']();}['removeMarker'](_0x1ae526){this['_model']['change'](_0x3d92e4=>{_0x3d92e4['removeMarker'](_0x1ae526);}),this['_markerNames']['delete'](_0x1ae526);}['addRange'](_0x242db4){const _0x20ed94='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x20ed94),this['_model']['change'](_0x7a793b=>{_0x7a793b['addMarker'](_0x20ed94,{'range':_0x242db4,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x4832fb){for(const _0x5bb463 of this['getRanges']())if(_0x5bb463['isIntersecting'](_0x4832fb))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x277206=>_0x277206['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x2c8f0a,_0x615c04)=>[..._0x2c8f0a,..._0x615c04['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x292911=this['getRanges']();if(0x1!=_0x292911['length'])return null;const _0x1c4dec=_0x292911[0x0],_0x10947c=_0x1c4dec['start']['nodeAfter'],_0x141b13=_0x1c4dec['end']['nodeBefore'];return _0x10947c instanceof _0x55ee28?_0x10947c!=_0x141b13?null:_0x10947c: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 _0x464fb2=[];let _0x4e96e1=this['head'];for(;_0x4e96e1;)_0x464fb2['push'](_0x4e96e1),_0x4e96e1=_0x4e96e1['next'];return _0x464fb2;}['setAttribute'](_0x57282,_0x521e50){const _0x548f31=_0x2ad9da(this['attributes']);_0x55bf30(_0x548f31,_0x57282,_0x521e50),_0x48888a(_0x548f31,this['attributes'])||(this['attributes']=_0x548f31,this['_onAttributesChange'](_0x548f31));}['removeAttribute'](_0x46b1c3){const _0x3b8dcc=_0x2ad9da(this['attributes']);_0xc03c91(_0x3b8dcc,_0x46b1c3),_0x48888a(_0x3b8dcc,this['attributes'])||(this['attributes']=_0x3b8dcc,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 _0x29bcf7()['substr'](0x1,0x5);}}function o(_0x5a0591,_0x2ff201,_0x53e2e6){const _0x1ba2d2=_0x5a0591['t'],t=_0x5a0591['t'];switch(_0x2ff201){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',_0x53e2e6);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x53e2e6);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x53e2e6);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x53e2e6);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x53e2e6);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',_0x53e2e6);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x53e2e6);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',_0x53e2e6);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x53e2e6);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x53e2e6);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x53e2e6);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x53e2e6);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x53e2e6);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x53e2e6);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x53e2e6);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x53e2e6);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x53e2e6);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x53e2e6);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x53e2e6);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x53e2e6);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x53e2e6);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x53e2e6);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x53e2e6);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x53e2e6);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x53e2e6);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'},_0x53e2e6);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x53e2e6);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x53e2e6);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x53e2e6);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x53e2e6);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x53e2e6);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x53e2e6);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x53e2e6);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'},_0x53e2e6);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x53e2e6);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x53e2e6);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x53e2e6);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x53e2e6);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x53e2e6);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x53e2e6);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'},_0x53e2e6);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'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'},_0x53e2e6);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x53e2e6);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'},_0x53e2e6);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x53e2e6);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'},_0x53e2e6);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x53e2e6);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x53e2e6);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'},_0x53e2e6);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x53e2e6);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 _0x1ba2d2({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x53e2e6);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x1ba2d2({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x53e2e6);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x53e2e6);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'},_0x53e2e6);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'},_0x53e2e6);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'},_0x53e2e6);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x2ff201;}}class x{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x15cf59,_0x50b0a1){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x15cf59,this['_locale']=_0x50b0a1;}['getDescriptions'](_0x4e9e02){const _0x454b17=[],_0x146a0d=new Set(),_0x1c43eb=new Set();for(let _0x194c34=0x0;_0x194c34<_0x4e9e02['length'];_0x194c34++){const _0x1881d2=_0x4e9e02[_0x194c34];if(!_0x1881d2['isInContent'])continue;const _0x64ebed=this['_handleCustomCallbackDescription'](_0x1881d2);if(_0x64ebed){if(null!=_0x1881d2['subType']){if(_0x146a0d['has'](_0x1881d2['subType']))continue;_0x146a0d['add'](_0x1881d2['subType']);}_0x454b17['push'](_0x64ebed);}else{if('attribute'==_0x1881d2['type']){const _0x37b80b=_0x1881d2['data']['key'];if(_0x1c43eb['has'](_0x37b80b))continue;_0x1c43eb['add'](_0x1881d2['data']['key']),_0x37b80b==m?this['_handleRenameSuggestionDescription'](_0x454b17,_0x1881d2):this['_handleAttributeSuggestionDescription'](_0x454b17,_0x1881d2);continue;}'insertion'!=_0x1881d2['type']&&'deletion'!=_0x1881d2['type']||this['_handleInsertRemoveSuggestionDescription'](_0x454b17,_0x1881d2,_0x4e9e02[_0x194c34+0x1]);}}return this['_resolveDescriptionItems'](_0x454b17);}['registerDescriptionCallback'](_0x4c39c8){this['_customCallbacks']['push'](_0x4c39c8);}['registerElementLabel'](_0x472153,_0x1f3d93,_0x57a04c=_0x3771e3['normal']){'function'==typeof _0x472153?_0x3bf6d0(this['_itemLabelsCallbacks'],{'matchingCallback':_0x472153,'label':_0x1f3d93,'priority':_0x57a04c}):this['_itemLabels']['set'](_0x472153,_0x1f3d93);}['registerAttributeLabel'](_0x22e22d,_0x39cfbe){this['_attributeLabels']['set'](_0x22e22d,_0x39cfbe);}['getItemLabel'](_0x34c33d,_0xec2120=0x1){let _0x4f18d7;for(const _0x3928b6 of this['_itemLabelsCallbacks'])if(_0x3928b6['matchingCallback'](_0x34c33d)){_0x4f18d7=_0x3928b6['label'];break;}return _0x4f18d7||(_0x4f18d7=this['_itemLabels']['get'](_0x34c33d['name'])),_0x4f18d7?_0x4f18d7(_0xec2120):0x1!==_0xec2120?_0xec2120+'\x20'+_0x34c33d['name']+'s':''+_0x34c33d['name'];}['_addDescriptionItems'](_0x18a840,_0x10e36d){const _0x5a1a79=_0x10e36d['getFirstRange']()['getWalker'](),_0x4f72d1='insertion'==_0x10e36d['type']?'add':'remove';for(const _0x275af9 of _0x5a1a79){const _0x32add5=_0x275af9['item'],_0x173df9=_0x18a840[_0x18a840['length']-0x1];if(_0x32add5['is']('$textProxy'))_0x173df9&&_0x173df9['type']['indexOf']('Container')>-0x1&&_0x18a840['pop'](),_0x173df9&&'text'==_0x173df9['type']?_0x173df9[_0x4f72d1]+=_0x32add5['data']:_0x18a840['push']({'type':'text','add':'add'==_0x4f72d1?_0x32add5['data']:'','remove':'remove'==_0x4f72d1?_0x32add5['data']:''});else{if(this['_schema']['isObject'](_0x32add5)){const _0x1de297=_0x32add5;if(_0x173df9&&_0x173df9['type']['indexOf']('Container')>-0x1&&_0x18a840['pop'](),'elementEnd'==_0x275af9['type'])continue;_0x173df9&&_0x173df9['type']==_0x4f72d1+'Object'&&_0x173df9['element']['name']==_0x1de297['name']?_0x173df9['quantity']++:_0x18a840['push']({'type':_0x4f72d1+'Object','element':_0x1de297,'quantity':0x1}),_0x5a1a79['skip'](_0x1550c9=>!('elementEnd'==_0x1550c9['type']&&_0x1550c9['item']==_0x32add5));}else{if(this['_schema']['checkChild'](_0x32add5,'$text')||_0x32add5['is']('element','softBreak')){const _0x4a2389=_0x32add5;if('add'==_0x4f72d1&&'elementStart'==_0x275af9['type']||'remove'==_0x4f72d1&&'elementEnd'==_0x275af9['type'])continue;if(_0x173df9&&-0x1==_0x173df9['type']['indexOf']('Container')){'text'==_0x173df9['type']&&(_0x173df9[_0x4f72d1]+='\x0a');continue;}let _0x135096;if(_0x135096='add'==_0x4f72d1?_0x4a2389['nextSibling']&&!this['_schema']['isObject'](_0x4a2389['nextSibling'])?_0x4a2389['nextSibling']:null:_0x4a2389['previousSibling']&&!this['_schema']['isObject'](_0x4a2389['previousSibling'])?_0x4a2389['previousSibling']:null,_0x4a2389['isEmpty']||_0x135096&&_0x135096['isEmpty']){const _0x5de5e1=_0x135096&&_0x135096['isEmpty']?_0x135096:_0x4a2389;_0x173df9&&_0x173df9['type']==_0x4f72d1+'EmptyContainer'&&_0x173df9['element']['name']==_0x5de5e1['name']?_0x173df9['quantity']++:_0x18a840['push']({'type':_0x4f72d1+'EmptyContainer','element':_0x5de5e1,'quantity':0x1});}else _0x18a840['push']({'type':_0x4f72d1+'Container','element':_0x4a2389});}}}}}['_resolveDescriptionItems'](_0x3337ee){const _0x20f951=this['_locale'],_0x2bd911=[],_0x292032=[],_0xdb06bd=[];for(const _0x48f4f5 of _0x3337ee)switch(_0x48f4f5['type']){case'text':if(_0x48f4f5['add']=_0x48f4f5['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x48f4f5['remove']=_0x48f4f5['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x48f4f5['add']&&''!=_0x48f4f5['remove']){_0x2bd911['push']({'type':'replace','content':o(_0x20f951,'REPLACE_TEXT',['\x22'+_0x48f4f5['remove']+'\x22','\x22'+_0x48f4f5['add']+'\x22'])});continue;}if(null!=_0x48f4f5['add']['match'](/^ +$/)){_0x2bd911['push']({'type':'insertion','content':o(_0x20f951,'*Insert:*\x20%0',o(_0x20f951,'ELEMENT_SPACE',_0x48f4f5['add']['length']))});continue;}if(null!=_0x48f4f5['remove']['match'](/^ +$/)){_0x2bd911['push']({'type':'deletion','content':o(_0x20f951,'*Remove:*\x20%0',o(_0x20f951,'ELEMENT_SPACE',_0x48f4f5['remove']['length']))});continue;}if(''!=_0x48f4f5['add']){_0x2bd911['push']({'type':'insertion','content':o(_0x20f951,'*Insert:*\x20%0','\x22'+_0x48f4f5['add']+'\x22')});continue;}_0x2bd911['push']({'type':'deletion','content':o(_0x20f951,'*Remove:*\x20%0','\x22'+_0x48f4f5['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x2bd911['push']({'type':'insertion','content':o(_0x20f951,'*Insert:*\x20%0',this['getItemLabel'](_0x48f4f5['element'],_0x48f4f5['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x2bd911['push']({'type':'deletion','content':o(_0x20f951,'*Remove:*\x20%0',this['getItemLabel'](_0x48f4f5['element'],_0x48f4f5['quantity']))});continue;case'addContainer':_0x2bd911['push']({'type':'insertion','content':o(_0x20f951,'*Split:*\x20%0',this['getItemLabel'](_0x48f4f5['element'],_0x48f4f5['quantity']))});continue;case'removeContainer':_0x2bd911['push']({'type':'deletion','content':o(_0x20f951,'*Merge:*\x20%0',this['getItemLabel'](_0x48f4f5['element'],_0x48f4f5['quantity']))});continue;case'addFormat':_0x292032['push'](_0x48f4f5['key']);continue;case'removeFormat':_0xdb06bd['push'](_0x48f4f5['key']);continue;default:_0x2bd911['push'](_0x48f4f5);}if(_0x292032['length']){const _0x3d9608=_0x292032['map'](_0x4535e6=>this['_attributeLabels']['has'](_0x4535e6)?this['_attributeLabels']['get'](_0x4535e6):_0x4535e6)['join'](',\x20');_0x2bd911['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x3d9608)});}if(_0xdb06bd['length']){const _0x168b6d=_0xdb06bd['map'](_0x186bf6=>this['_attributeLabels']['has'](_0x186bf6)?this['_attributeLabels']['get'](_0x186bf6):_0x186bf6)['join'](',\x20');_0x2bd911['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x168b6d)});}return _0x2bd911;}['_handleCustomCallbackDescription'](_0x49b660){for(const _0x3296d9 of this['_customCallbacks']){const _0x1e8e31=_0x3296d9(_0x49b660);if(_0x1e8e31&&'type'in _0x1e8e31)return _0x1e8e31;}}['_handleAttributeSuggestionDescription'](_0xbdf873,_0x1b1801){const _0x3fb4c8=_0x1b1801['data'],_0x4ee375=void 0x0===_0x3fb4c8['newValue']?'removeFormat':'addFormat';_0xbdf873['push']({'type':_0x4ee375,'key':_0x3fb4c8['key']});}['_handleRenameSuggestionDescription'](_0x19c463,_0x451a76){_0x19c463['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x451a76['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x3a40fc,_0x13874f,_0x27f1fa){if(this['_addDescriptionItems'](_0x3a40fc,_0x13874f),_0x27f1fa&&_0x27f1fa['getFirstRange']()&&!_0x13874f['getFirstRange']()['end']['isEqual'](_0x27f1fa['getFirstRange']()['start'])){const _0x113607=_0x3a40fc[_0x3a40fc['length']-0x1],_0x54bbee='insertion'==_0x13874f['type']?'add':'remove';_0x113607&&'text'==_0x113607['type']&&(_0x113607[_0x54bbee]+='\x0a');}}}class O extends _0xe680e7{['afterInit'](){const _0x50dc9d=this['editor'],_0x1ee3ba=_0x50dc9d['plugins']['get']('TrackChangesEditing');_0x50dc9d['commands']['get']('showAIAssistant')&&_0x1ee3ba['enableCommand']('showAIAssistant');}}class E extends _0xe680e7{['afterInit'](){const _0x5504f0=this['editor'],_0x33ed3b=_0x5504f0['locale'];if(!_0x5504f0['plugins']['has']('AlignmentEditing'))return;const _0x23cd62=_0x5504f0['plugins']['get']('TrackChangesEditing');_0x23cd62['enableDefaultAttributesIntegration']('alignment'),_0x23cd62['registerBlockAttribute']('alignment'),_0x23cd62['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x33ed3b,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3971ba=this['editor'],_0x5551d9=_0x3971ba['locale'];_0x3971ba['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a2667=>{if('formatBlock'!=_0x2a2667['type'])return;const {data:_0x2f64b6}=_0x2a2667;if(_0x2f64b6&&'alignment'==_0x2f64b6['commandName']){const _0x42d556=_0x2f64b6['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x5551d9,'*Format:*\x20%0',function(_0x238c85){switch(_0x238c85){case'left':return o(_0x5551d9,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x5551d9,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x5551d9,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x5551d9,'FORMAT_JUSTIFY_TEXT');}}(_0x42d556))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class R extends _0xe680e7{['afterInit'](){const _0x5396be=this['editor'],_0x21acc8=_0x5396be['plugins']['get']('TrackChangesEditing'),_0x4a1c7a=_0x5396be['locale'];for(const _0x36922c of ti){if(!_0x5396be['plugins']['has'](_0x36922c))continue;const _0x4e0dc8=_0x36922c['slice'](0x0,-0x7)['toLowerCase'](),_0x453d71='FORMAT_'+_0x4e0dc8['toUpperCase']();_0x21acc8['enableDefaultAttributesIntegration'](_0x4e0dc8),_0x21acc8['registerInlineAttribute'](_0x4e0dc8),_0x21acc8['descriptionFactory']['registerAttributeLabel'](_0x4e0dc8,o(_0x4a1c7a,_0x453d71));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5cd65=this['editor'],_0x6ca807=_0x5cd65['locale'],_0x745d22=_0x5cd65['plugins']['get']('TrackChangesEditing');function _0x3822c8(_0x459356,_0x524ea4){_0x745d22['descriptionFactory']['registerDescriptionCallback'](_0x39bb12=>{if('formatInline'!=_0x39bb12['type'])return;const {data:_0x32f8ef}=_0x39bb12;return _0x32f8ef&&_0x32f8ef['commandName']===_0x459356?_0x32f8ef['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x6ca807,'*Format:*\x20%0',_0x524ea4)}:{'type':'format','content':o(_0x6ca807,'*Remove\x20format:*\x20%0',_0x524ea4)}:void 0x0;});}_0x3822c8('bold',o(_0x6ca807,'FORMAT_BOLD')),_0x3822c8('italic',o(_0x6ca807,'FORMAT_ITALIC')),_0x3822c8('underline',o(_0x6ca807,'FORMAT_UNDERLINE')),_0x3822c8('code',o(_0x6ca807,'FORMAT_CODE')),_0x3822c8('strikethrough',o(_0x6ca807,'FORMAT_STRIKETHROUGH')),_0x3822c8('subscript',o(_0x6ca807,'FORMAT_SUBSCRIPT')),_0x3822c8('superscript',o(_0x6ca807,'FORMAT_SUPERSCRIPT'));}}class U extends _0xe680e7{['afterInit'](){const _0x2c36af=this['editor'],_0x33df41=_0x2c36af['locale'];if(!_0x2c36af['plugins']['has']('BlockQuoteEditing'))return;const _0x160f8=_0x2c36af['plugins']['get']('TrackChangesEditing'),_0x551fb9=this['editor']['commands']['get']('blockQuote');_0x160f8['enableCommand']('blockQuote',(_0x53a45f,_0x3af5b0={})=>{const _0x4f1fd6=this['editor']['model']['document']['selection'],_0x5480e6=_0x3af5b0&&void 0x0!==_0x3af5b0['forceValue']?_0x3af5b0['forceValue']:!_0x551fb9['value'];let _0x5d32de=[];if(_0x5480e6){const _0x5f0477=Array['from'](_0x4f1fd6['getSelectedBlocks']())['filter'](_0x2dcdd8=>oo(_0x2dcdd8)||function(_0x561bbc,_0x47b81e){const _0x198bad=_0x47b81e['checkChild'](_0x561bbc['parent'],'blockQuote'),_0x50c935=_0x47b81e['checkChild'](['$root','blockQuote'],_0x561bbc);return _0x198bad&&_0x50c935;}(_0x2dcdd8,this['editor']['model']['schema']));_0x5d32de=to(_0x5f0477,_0x2c36af['model']);}else{const _0x10b7a2=Array['from'](_0x4f1fd6['getSelectedBlocks']())['filter'](_0x2e9ee8=>oo(_0x2e9ee8));_0x5d32de=to(_0x10b7a2,_0x2c36af['model']);}_0x2c36af['model']['change'](()=>{for(const _0x4c25cd of _0x5d32de)_0x160f8['markBlockFormat'](_0x4c25cd,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x5480e6}]});});}),_0x160f8['descriptionFactory']['registerDescriptionCallback'](_0x5c31e9=>{const {data:_0x568a47}=_0x5c31e9;if(_0x568a47&&'blockQuote'==_0x568a47['commandName']){const _0x4e37af=o(_0x33df41,'ELEMENT_BLOCK_QUOTE');return _0x568a47['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x33df41,'*Set\x20format:*\x20%0',_0x4e37af)}:{'type':'format','content':o(_0x33df41,'*Remove\x20format:*\x20%0',_0x4e37af)};}});}}function oo(_0x37eb5d){return'blockQuote'==_0x37eb5d['parent']['name'];}class V extends _0xe680e7{['afterInit'](){const _0x1fe498=this['editor'],_0x461943=_0x1fe498['locale'],_0x81c968=_0x1fe498['plugins']['get']('TrackChangesEditing');_0x1fe498['plugins']['has']('BookmarkEditing')&&(_0x81c968['enableCommand']('insertBookmark'),_0x81c968['enableDefaultAttributesIntegration']('updateBookmark'),_0x81c968['registerBlockAttribute']('bookmarkId'),_0x81c968['descriptionFactory']['registerDescriptionCallback'](_0x186a9b=>{if('insertion'!=_0x186a9b['type']&&'deletion'!=_0x186a9b['type']&&'attribute'!=_0x186a9b['type'])return;const _0x27e09f=_0x186a9b['getContainedElement']();if(null==_0x27e09f)return;if(!_0x27e09f['is']('element','bookmark'))return;const _0x592494=_0x27e09f['getAttribute']('bookmarkId');if('insertion'==_0x186a9b['type'])return{'type':'insertion','content':o(_0x461943,'*Insert:*\x20%0','\x22'+_0x592494+'\x22\x20'+o(_0x461943,'ELEMENT_BOOKMARK'))};if('deletion'==_0x186a9b['type'])return{'type':'deletion','content':o(_0x461943,'*Remove:*\x20%0','\x22'+_0x592494+'\x22\x20'+o(_0x461943,'ELEMENT_BOOKMARK'))};const {data:_0xfa72a9}=_0x186a9b;if(!_0xfa72a9||'bookmarkId'!=_0xfa72a9['key'])return;return{'type':'format','content':o(_0x461943,'*Set\x20bookmark:*\x20%0','\x22'+_0xfa72a9['newValue']+'\x22')};}));}}class F extends _0xe680e7{['afterInit'](){const _0x36b1ed=this['editor'];_0x36b1ed['plugins']['has']('CaseChange')&&(_0x36b1ed['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x36b1ed['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x36b1ed['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0xe680e7{['afterInit'](){const _0x25b689=this['editor'];_0x25b689['commands']['get']('ckbox')&&_0x25b689['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0xe680e7{['afterInit'](){const _0x58545c=this['editor'];if(!_0x58545c['plugins']['has']('CodeBlock'))return;const _0x5e4ad0=_0x58545c['plugins']['get']('TrackChangesEditing'),_0x274dce=_0x58545c['locale'],_0x2d5c7f=_0x58545c['config']['get']('codeBlock')['languages'],_0xeed1dd=_0x58545c['commands']['get']('codeBlock');_0x5e4ad0['enableCommand']('indentCodeBlock'),_0x5e4ad0['enableCommand']('outdentCodeBlock'),_0x5e4ad0['enableCommand']('codeBlock',(_0x5e99ee,_0x472869={})=>{const _0x2dfbf1=_0x58545c['model'],_0x12eb0d=_0x58545c['model']['document']['selection'],_0x3898e3=_0x472869&&void 0x0!==_0x472869['forceValue']?_0x472869['forceValue']:!_0xeed1dd['value'];let _0x202b5d;_0x472869['language']||(_0x472869['language']=_0x2d5c7f[0x0]['language']),_0x202b5d=_0x3898e3?Array['from'](_0x12eb0d['getSelectedBlocks']())['filter'](_0x52ac05=>co(_0x52ac05)||function(_0xe04058,_0x556574){if(_0xe04058['is']('rootElement')||_0x556574['isLimit'](_0xe04058))return!0x1;return _0x556574['checkChild'](_0xe04058['parent'],'codeBlock');}(_0x52ac05,_0x2dfbf1['schema'])):Array['from'](_0x12eb0d['getSelectedBlocks']())['filter'](_0x12cdd3=>co(_0x12cdd3));const _0x317831=to(_0x202b5d,_0x2dfbf1);_0x2dfbf1['change'](()=>{for(const _0x407e1a of _0x317831)_0x5e4ad0['markBlockFormat'](_0x407e1a,{'commandName':'codeBlock','commandParams':[{..._0x472869,'forceValue':_0x3898e3}],'formatGroupId':'blockName'});});}),(_0x5e4ad0['descriptionFactory']['registerElementLabel']('codeBlock',_0x1e78d3=>o(_0x274dce,'ELEMENT_CODE_BLOCK',_0x1e78d3)),_0x5e4ad0['descriptionFactory']['registerDescriptionCallback'](_0x210ff5=>{if('formatBlock'!=_0x210ff5['type'])return;const _0x1f8b1c=_0x274dce['t'],{data:_0x1d0d94}=_0x210ff5;if(!_0x1d0d94||'codeBlock'!=_0x1d0d94['commandName'])return;const _0x4b845c=_0x1d0d94['commandParams'][0x0]['language'],_0x37f4b8=_0x1f8b1c(_0x2d5c7f['find'](_0x3a2e22=>_0x3a2e22['language']===_0x4b845c)['label'])['toLowerCase']();return _0x1d0d94['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x274dce,'*Set\x20format:*\x20%0',o(_0x274dce,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x37f4b8+')')}:{'type':'format','content':o(_0x274dce,'*Remove\x20format:*\x20%0',o(_0x274dce,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x34cc1d){return'codeBlock'==_0x34cc1d['name'];}class J extends _0xe680e7{['afterInit'](){const _0x5dd943=this['editor'];if(!_0x5dd943['plugins']['has']('CommentsEditing'))return;_0x5dd943['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x11cf6e,_0x501919,_0x5eaea1){const _0x37a041=[];for(const _0x5668cb of _0x501919['getItems']())_0x5668cb['hasAttribute'](_0x11cf6e)&&_0x37a041['push'](_0x5eaea1['createRangeOn'](_0x5668cb));return _0x37a041;}function De(_0x22c5f6,_0xf2dfcb,{showActiveMarker:_0x3c98d=!0x0}={}){const _0x9afe90=_0x22c5f6['plugins']['get']('TrackChangesEditing');return(_0x4ed4c6,_0x3b2666,_0x202014)=>{if(!_0x202014['consumable']['test'](_0x3b2666['markerRange'],_0x4ed4c6['name']))return;const _0x5464f5=_0x3b2666['markerRange']['getWalker'](),_0x3dbca8=_0x3b2666['markerRange']['start'],_0x3e2c46=_0x22c5f6['model']['schema'];let _0x189283=null,_0x1bf25c=null,_0x48b725=!0x1,_0x52e52e=!0x1;for(const _0x205e67 of _0x5464f5){const _0x26642c=_0x205e67['item'];_0x48b725=_0x48b725||_0x3e2c46['isContent'](_0x26642c);const _0x1c61c9=_0x202014['mapper']['toViewElement'](_0x26642c);if(_0x1c61c9&&_0x1c61c9['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x205e67['type']&&(_0x3e2c46['isBlock'](_0x26642c)&&!_0x3e2c46['isLimit'](_0x26642c)&&(_0x26642c['nextSibling']||_0x3dbca8['isAtEnd']?_0x189283&&_0x189283['parent']==_0x26642c||(_0x189283=_0x26642c,_0x5e71d1(_0x205e67['previousPosition']),_0x52e52e=!0x0):_0x1bf25c=_0x1bf25c||_0x205e67['previousPosition']));}function _0x5e71d1(_0x13894e){const {id:_0x34a37e,authorId:_0x497f5b}=_0x9afe90['_splitMarkerName'](_0x3b2666['markerName']),_0x4e0a2d=_0x202014['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xf2dfcb,'data-suggestion':_0x34a37e,'data-author-id':_0x497f5b}),_0x3c61d5=_0x202014['mapper']['toViewPosition'](_0x13894e);_0x3c98d&&_0x9afe90['activeMarkers']['includes'](_0x3b2666['markerName'])&&_0x202014['writer']['addClass']('ck-suggestion-marker--active',_0x4e0a2d),_0x202014['writer']['insert'](_0x3c61d5,_0x4e0a2d),_0x202014['mapper']['bindElementToMarker'](_0x4e0a2d,_0x3b2666['markerName']);}_0x48b725||_0x52e52e||!_0x1bf25c||_0x5e71d1(_0x1bf25c);};}class K extends _0xe680e7{static get['requires'](){return[_0x37cb0f];}['init'](){const _0x56becb=this['editor'],_0x4298a1=_0x56becb['plugins']['get']('TrackChangesEditing');_0x4298a1['enableCommand']('delete');const _0x9b7d90=_0x56becb['commands']['get']('deleteForward');_0x4298a1['enableCommand']('deleteForward',(_0x4e83db,_0x3b83f1={})=>{const _0x46cb85=_0x56becb['model']['createSelection'](_0x56becb['model']['document']['selection']);_0x46cb85['isCollapsed']&&_0x56becb['model']['modifySelection'](_0x46cb85,{'direction':'forward','unit':_0x3b83f1['unit']});const _0x20d7a4=_0x46cb85['getFirstRange'](),_0x156ca6=_0x50a820['fromRange'](_0x20d7a4);let _0x33cbf2;_0x4e83db(_0x3b83f1),_0x33cbf2='$graveyard'==_0x156ca6['root']['rootName']?_0x56becb['model']['createRange'](_0x20d7a4['start']):_0x56becb['model']['createRange'](_0x156ca6['start'],_0x156ca6['end']),_0x156ca6['detach'](),_0x56becb['model']['enqueueChange'](_0x9b7d90['buffer']['batch'],_0xa02549=>{_0x9b7d90['buffer']['lock'](),_0xa02549['setSelection'](_0xa02549['createRange'](_0x33cbf2['end'])),_0x9b7d90['buffer']['unlock']();});}),_0x56becb['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x56becb,'merge'),{'priority':'high'}),_0x56becb['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x547fbe,_0x5e97c5,_0x5f4b7f)=>{_0x5f4b7f['options']['showSuggestionHighlights']&&De(_0x56becb,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x547fbe,_0x5e97c5,_0x5f4b7f);},{'priority':'high'}),_0x56becb['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x42dbb8,_0x3d7513,_0x183147)=>{const _0xb3ad1b=_0x183147['mapper']['markerNameToElements'](_0x3d7513['markerName']);if(_0xb3ad1b){for(const _0x56c423 of _0xb3ad1b)_0x56c423['is']('uiElement')&&(_0x183147['mapper']['unbindElementFromMarkerName'](_0x56c423,_0x3d7513['markerName']),_0x183147['writer']['remove'](_0x56c423));}},{'priority':'high'});}}class H extends _0xe680e7{['afterInit'](){const _0x419d73=this['editor'];if(!_0x419d73['plugins']['has']('ListEditing'))return;const _0x5d0712=_0x419d73['locale'],_0x46ad54=_0x419d73['plugins']['get']('TrackChangesEditing'),_0x3c59d8=_0x419d73['plugins']['has']('TodoListEditing'),_0x980703=!!_0x419d73['config']['get']('list.multiBlock');function _0x51d2c3(_0x4d09fd){return{'type':'format','content':''+o(_0x5d0712,'*Set\x20format:*\x20%0',_0x4d09fd)};}function _0x1e421a(_0x35e39e){return{'type':'format','content':''+o(_0x5d0712,'*Remove\x20format:*\x20%0',_0x35e39e)};}_0x46ad54['enableDefaultAttributesIntegration']('numberedList'),_0x46ad54['enableDefaultAttributesIntegration']('bulletedList'),_0x46ad54['enableDefaultAttributesIntegration']('customNumberedList'),_0x46ad54['enableDefaultAttributesIntegration']('customBulletedList'),_0x46ad54['enableDefaultAttributesIntegration']('indentList'),_0x46ad54['enableDefaultAttributesIntegration']('outdentList'),_0x46ad54['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x46ad54['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x46ad54['registerBlockAttribute']('listItemId'),_0x46ad54['registerBlockAttribute']('listType'),_0x46ad54['registerBlockAttribute']('listIndent'),_0x980703&&(_0x46ad54['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x46ad54['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x3c59d8&&(_0x46ad54['enableDefaultAttributesIntegration']('todoList'),_0x46ad54['enableDefaultAttributesIntegration']('checkTodoList'),_0x46ad54['registerBlockAttribute']('todoListChecked'),_0x46ad54['descriptionFactory']['registerDescriptionCallback'](_0x19c7b3=>{const {data:_0x3ea8e5}=_0x19c7b3;if(_0x3ea8e5&&'todoListChecked'==_0x3ea8e5['key'])return{'type':'format','content':_0x3ea8e5['newValue']?o(_0x5d0712,'*Check\x20item*'):o(_0x5d0712,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x2131f1=>{if(_0x2131f1['batch']['isUndo'])return!0x1;let _0x56e85b=!0x1;const _0x381ccd=_0x46ad54['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x48a629=>'todoListChecked'===_0x46ad54['_getAttributeKey'](_0x48a629));for(const _0x3b057a of _0x381ccd){'todo'!=_0x3b057a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x46ad54['_findSuggestions'](_0x3b057a['getFirstRange'](),'attribute')['find'](_0x4a2b2f=>'listType'===_0x46ad54['_getAttributeKey'](_0x4a2b2f['suggestion']))||(_0x2131f1['removeMarker'](_0x3b057a['getFirstMarker']()),_0x56e85b=!0x0));}return _0x56e85b;})),_0x46ad54['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x5d0712,'FORMAT_INDENT'));const _0xb781dd={'type':'format','content':''};_0x46ad54['descriptionFactory']['registerDescriptionCallback'](_0x3670c9=>{const {data:_0x94b9e0}=_0x3670c9;if(!_0x94b9e0||'listType'!=_0x94b9e0['key'])return;let _0x2395ef=_0x3670c9['head'];for(;_0x2395ef;){if(_0x2395ef['data']&&(('listStyle'==_0x2395ef['data']['key']||'listMarkerStyle'==_0x2395ef['data']['key'])&&(_0x2395ef['data']['newValue']&&'default'!=_0x2395ef['data']['newValue']||'default'!=_0x2395ef['data']['oldValue']&&!_0x94b9e0['newValue'])||!_0x980703&&_0x2395ef['data']['key']==m))return _0xb781dd;_0x2395ef=_0x2395ef['next'];}if(null==_0x94b9e0['newValue'])switch(_0x94b9e0['oldValue']){case'bulleted':return _0x1e421a(o(_0x5d0712,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1e421a(o(_0x5d0712,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1e421a(o(_0x5d0712,'ELEMENT_TODO_LIST'));}switch(_0x94b9e0['newValue']){case'bulleted':return _0x51d2c3(o(_0x5d0712,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x51d2c3(o(_0x5d0712,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x51d2c3(o(_0x5d0712,'ELEMENT_TODO_LIST'));}}),_0x46ad54['descriptionFactory']['registerDescriptionCallback'](_0x3eaeed=>{const {data:_0x906fa8}=_0x3eaeed;if(_0x906fa8&&'listIndent'==_0x906fa8['key'])return null==_0x906fa8['newValue']||null==_0x906fa8['oldValue']&&0x0==_0x906fa8['newValue']?_0xb781dd:void 0x0;}),_0x46ad54['descriptionFactory']['registerDescriptionCallback'](_0x5e4f90=>{if('attribute'!=_0x5e4f90['type'])return;const {data:_0x411762}=_0x5e4f90;if(!_0x411762||'listItemId'!=_0x411762['key'])return;const _0x20e3ca=Te(_0x5e4f90);return'newValue'==_0x20e3ca?{'type':'format','content':o(_0x5d0712,'*Merge:*\x20list\x20item')}:'oldValue'==_0x20e3ca?{'type':'format','content':o(_0x5d0712,'*Split:*\x20list\x20item')}:_0xb781dd;}),_0x419d73['model']['document']['registerPostFixer'](_0x4d0b54=>this['listItemIdFixer'](_0x4d0b54)),_0x419d73['model']['document']['registerPostFixer'](_0x1c4bd1=>this['noTrackChangesFixer'](_0x1c4bd1)),_0x419d73['model']['document']['on']('change:data',(_0x22cd26,_0x37a080)=>{if(_0x37a080['isUndo']||!_0x37a080['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x5282bd){if(_0x5282bd['batch']['isUndo']||!_0x5282bd['batch']['isLocal'])return!0x1;let _0x16a03f=!0x1;const _0x530b12=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x11e52b=>_0x11e52b['data']&&'listItemId'==_0x11e52b['data']['key'])['filter'](_0x2eaff4=>_0x2eaff4['data']['newValue']&&_0x2eaff4['data']['oldValue']);for(const _0x4cac9c of _0x530b12)Te(_0x4cac9c)||(_0x5282bd['removeMarker'](_0x4cac9c['getFirstMarker']()),_0x16a03f=!0x0);return _0x16a03f;}['noTrackChangesFixer'](_0x5e706c){if(_0x5e706c['batch']['isUndo']||!_0x5e706c['batch']['isLocal'])return!0x1;const _0x40a810=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x40a810['trackChangesCommand']['value'])return!0x1;let _0x4ea094=!0x1;const _0xd0f428=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x53a5c9=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x2cc6a7=>'attribute'==_0x2cc6a7['type'])['filter'](_0x194602=>_0xd0f428['includes'](_0x194602['attributeKey']));if(0x0==_0x53a5c9['length'])return _0x4ea094;for(const _0x697ebc of _0x53a5c9){const _0x5b701d=_0x40a810['_findSuggestions'](_0x697ebc['range'],'attribute')['filter'](_0x407f78=>!_0x407f78['meta']['isNextTo'])['map'](_0x19e9a9=>_0x19e9a9['suggestion'])['filter'](_0x11f947=>{const _0x23fc31=_0x40a810['_getAttributeKey'](_0x11f947);return _0xd0f428['includes'](_0x23fc31);});if(_0x5b701d['length']){for(const _0x2c4ac9 of _0x5b701d)_0x5e706c['removeMarker'](_0x2c4ac9['getFirstMarker']());_0x4ea094=!0x0;}}return _0x4ea094;}['assureChains'](){const _0x5edb89=this['editor']['plugins']['get']('TrackChangesEditing'),_0x220c8f=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x89df73;const _0x300e1d=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x39305c=>{if(_0x39305c['data']['oldRange']||!_0x39305c['data']['newRange'])return null;if(!_0x39305c['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x14eac6}=_0x5edb89['_splitMarkerName'](_0x39305c['name']);if(!_0x5edb89['hasSuggestion'](_0x14eac6))return null;const _0x36050b=_0x5edb89['getSuggestion'](_0x14eac6);return _0x220c8f['includes'](_0x36050b['data']['key']);})['map'](_0x150e1d=>{const {id:_0x44fbb7}=_0x5edb89['_splitMarkerName'](_0x150e1d['name']),_0x1296be=_0x5edb89['getSuggestion'](_0x44fbb7);return _0x89df73=_0x1296be['attributes']['groupId'],_0x1296be['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x300e1d['size'])return;const _0x263c0e=_0x5edb89['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xf5d787=>'attribute'==_0xf5d787['type']&&_0xf5d787['data']&&_0x220c8f['includes'](_0xf5d787['data']['key'])&&_0xf5d787['attributes']['groupId']!=_0x89df73)['map'](_0x4ec43d=>({'listItem':_0x4ec43d['getFirstRange']()['start']['nodeAfter'],'groupId':_0x4ec43d['attributes']['groupId']})),_0x2dad97=new Set();for(const {groupId:_0x490dd4,listItem:_0x24e67e}of _0x263c0e)_0x300e1d['has'](_0x24e67e)&&_0x2dad97['add'](_0x490dd4);for(const _0x2140ec of _0x5edb89['getSuggestions']())_0x2dad97['has'](_0x2140ec['attributes']['groupId'])&&_0x2140ec['setAttribute']('groupId',_0x89df73);}['_supportLegacySuggestions'](){const _0x4e4fb5=this['editor'],_0x32c757=_0x4e4fb5['locale'],_0x22ca4a=_0x4e4fb5['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x22ca4a['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0xd8eed2,_0x4b6e45){const _0x386554=[];for(let _0x3ad4c5 of _0xd8eed2)_0x3ad4c5['start']['nodeAfter']===_0x3ad4c5['end']['parent']&&(_0x3ad4c5=_0x4e4fb5['model']['createRange'](_0x4e4fb5['model']['createPositionAt'](_0x3ad4c5['start']['nodeAfter'],0x0))),_0x386554['push'](_0x3ad4c5);_0x4e4fb5['model']['change'](_0x2ba6c1=>{const _0x3a8846=_0x4e4fb5['model']['document']['selection'],_0x3870bb=Array['from'](_0x3a8846['getRanges']())['map'](_0x3c2f6b=>_0x50a820['fromRange'](_0x3c2f6b));_0x2ba6c1['setSelection'](_0x386554),_0x4e4fb5['commands']['get'](_0x4b6e45['commandName'])['refresh'](),_0x4b6e45['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4e4fb5['execute'](_0x4b6e45['commandName'],..._0x4b6e45['commandParams']),_0x2ba6c1['setSelection'](_0x3870bb);for(const _0x497bff of _0x3870bb)_0x497bff['detach']();});}),_0x22ca4a['descriptionFactory']['registerElementLabel'](function(_0x580cee){const _0x15c63b=!_0x4e4fb5['model']['schema']['isObject'](_0x580cee),_0x24fd27=_0x580cee['previousSibling'],_0xe78ccd=_0x580cee['nextSibling'],_0x2189e5=_0x580cee['getAttribute']('listItemId'),_0x256009=!_0x24fd27||_0x24fd27['getAttribute']('listItemId')!==_0x2189e5,_0x4fd4fd=!_0xe78ccd||_0xe78ccd['getAttribute']('listItemId')!==_0x2189e5;return _0x15c63b&&Boolean(_0x2189e5)&&_0x256009&&_0x4fd4fd;},_0x48b904=>o(_0x32c757,'ELEMENT_LIST_ITEM',_0x48b904));}['_registerLegacyDescription'](){const _0x4900cb=this['editor'],_0xd1bb10=_0x4900cb['locale'];function _0x161f76(_0x58d940){const _0x4c7527=_0x4900cb['commands']['get']('bulletedList')['value'],_0x503336=_0x4900cb['commands']['get']('numberedList')['value'];return'numberedList'===_0x58d940?_0x4c7527:_0x503336;}_0x4900cb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x497eff){if('formatBlock'!=_0x497eff['type'])return;const {data:_0x27cff3}=_0x497eff;if(!_0x27cff3)return;let _0x5a171a,_0x267126,_0x2aa25f,_0x1eb413;switch(_0x27cff3['commandName']){case'bulletedList':_0x2aa25f=_0x27cff3['commandParams'][0x0]['forceValue'],_0x1eb413=_0x161f76(_0x27cff3['commandName']),_0x5a171a=_0x2aa25f?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1eb413&&_0x4900cb['config']['get']('list.multiBlock')||(_0x5a171a='*Change\x20to:*\x20%0'),_0x267126={'type':'format','content':o(_0xd1bb10,_0x5a171a,o(_0xd1bb10,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x2aa25f=_0x27cff3['commandParams'][0x0]['forceValue'],_0x1eb413=_0x161f76(_0x27cff3['commandName']),_0x5a171a=_0x2aa25f?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1eb413&&_0x4900cb['config']['get']('list.multiBlock')||(_0x5a171a='*Change\x20to:*\x20%0'),_0x267126={'type':'format','content':o(_0xd1bb10,_0x5a171a,o(_0xd1bb10,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x5a171a='*Indent:*\x20%0',_0x267126={'type':'format','content':o(_0xd1bb10,_0x5a171a,o(_0xd1bb10,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x5a171a=function(_0x5cba7d){const _0x341cab=_0x5cba7d['getFirstRange']();let _0xe902e0=_0x341cab['start']['nodeAfter'];for(;_0xe902e0&&_0x341cab['containsItem'](_0xe902e0);){if(_0xe902e0['getAttribute']('listIndent')>0x0)return!0x1;_0xe902e0=_0xe902e0['nextSibling'];}return!0x0;}(_0x497eff)?o(_0xd1bb10,'*Format:*\x20remove\x20from\x20%0',o(_0xd1bb10,function(_0x3a9648){return'ELEMENT_'+_0x3a9648['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x497eff))):o(_0xd1bb10,'*Outdent:*\x20%0',o(_0xd1bb10,'ELEMENT_LIST_ITEM')),_0x267126={'type':'format','content':_0x5a171a};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x27cff3['multipleBlocks']&&(_0x5a171a='*Merge:*\x20%0',_0x267126={'type':'deletion','content':o(_0xd1bb10,_0x5a171a,o(_0xd1bb10,'ELEMENT_LIST_ITEM'))});}return _0x267126;});}}function Te(_0x2492e8){let _0x4fcfa4=_0x2492e8['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x4fcfa4;){const _0x238d39=_0x4fcfa4['getAttribute']('listItemId');if(!_0x238d39)return!0x1;if(_0x238d39==_0x2492e8['data']['newValue'])return'newValue';if(_0x238d39==_0x2492e8['data']['oldValue'])return'oldValue';_0x4fcfa4=_0x4fcfa4['previousSibling'];}return!0x1;}class q extends _0xe680e7{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x187a3c=this['editor']['config']['get']('list.properties'),_0x526b54=this['editor']['plugins']['get']('TrackChangesEditing');_0x187a3c['styles']&&(_0x526b54['enableDefaultAttributesIntegration']('listStyle'),_0x526b54['registerBlockAttribute']('listStyle')),_0x187a3c['reversed']&&(_0x526b54['enableDefaultAttributesIntegration']('listReversed'),_0x526b54['registerBlockAttribute']('listReversed')),_0x187a3c['startIndex']&&(_0x526b54['enableDefaultAttributesIntegration']('listStart'),_0x526b54['registerBlockAttribute']('listStart'));const _0x4dd9a9={'type':'format','content':''};_0x526b54['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x13216f=this['editor']['locale'];_0x526b54['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x13216f,'FORMAT_LIST_REVERSED')),_0x526b54['descriptionFactory']['registerDescriptionCallback'](_0x498a2f=>{const {data:_0x4acc9d}=_0x498a2f;if(_0x4acc9d&&'listReversed'==_0x4acc9d['key'])return null==_0x4acc9d['newValue']||0x0==_0x4acc9d['newValue']&&null==_0x4acc9d['oldValue']?_0x4dd9a9:void 0x0;}),_0x526b54['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x13216f,'FORMAT_LIST_START')),_0x526b54['descriptionFactory']['registerDescriptionCallback'](_0x220e0b=>{const {data:_0xbfc0c3}=_0x220e0b;if(_0xbfc0c3&&'listStart'==_0xbfc0c3['key'])return null==_0xbfc0c3['newValue']||0x1==_0xbfc0c3['newValue']&&null==_0xbfc0c3['oldValue']?_0x4dd9a9:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x1c55eb=>{if(_0x1c55eb['batch']['isUndo'])return!0x1;let _0x10f18b=!0x1;const _0x2d05c8=_0x526b54['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3d8f1d=>{const _0x50889e=_0x526b54['_getAttributeKey'](_0x3d8f1d);return'listStart'==_0x50889e||'listReversed'==_0x50889e;});for(const _0x366b60 of _0x2d05c8){const _0x3f4f98=_0x366b60['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x3f4f98||'customNumbered'==_0x3f4f98)continue;_0x526b54['_findSuggestions'](_0x366b60['getFirstRange'](),'attribute')['find'](_0x3841e4=>'listType'==_0x526b54['_getAttributeKey'](_0x3841e4['suggestion']))||(_0x1c55eb['removeMarker'](_0x366b60['getFirstMarker']()),_0x10f18b=!0x0);}return _0x10f18b;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x2b2f5e){const _0x96dbea=this['editor']['locale'],{data:_0x207ea2}=_0x2b2f5e,_0x21d51b={'type':'format','content':''};if(!_0x207ea2||'listStyle'!=_0x207ea2['key'])return;if(!_0x207ea2['oldValue'])return'default'==_0x207ea2['newValue']?_0x21d51b:{'type':'format','content':''+o(_0x96dbea,'*Set\x20format:*\x20%0',o(_0x96dbea,this['_getTranslationKeyForListStyle'](_0x207ea2['newValue'])))};if(!_0x207ea2['newValue']){if('default'==_0x207ea2['oldValue'])return _0x21d51b;let _0xe731f2=_0x2b2f5e['head'];for(;_0xe731f2;){if(_0xe731f2['data']&&'listType'==_0xe731f2['data']['key']&&_0xe731f2['data']['newValue'])return _0x21d51b;_0xe731f2=_0xe731f2['next'];}return{'type':'format','content':''+o(_0x96dbea,'*Remove\x20format:*\x20%0',o(_0x96dbea,this['_getTranslationKeyForListStyle'](_0x207ea2['oldValue'])))};}if('default'!=_0x207ea2['newValue'])return{'type':'format','content':''+o(_0x96dbea,'*Set\x20format:*\x20%0',o(_0x96dbea,this['_getTranslationKeyForListStyle'](_0x207ea2['newValue'])))};let _0x35a508=_0x2b2f5e['head'];for(;_0x35a508;){if(_0x35a508['data']&&'listType'==_0x35a508['data']['key']&&_0x35a508['data']['newValue']&&_0x35a508['data']['oldValue'])return _0x21d51b;_0x35a508=_0x35a508['next'];}return{'type':'format','content':o(_0x96dbea,'*Set\x20format:*\x20%0',o(_0x96dbea,'ELEMENT_'+_0x2b2f5e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x29fd53=this['editor'],_0x332ef9=_0x29fd53['locale'];_0x29fd53['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4722e8=>{if('formatBlock'!=_0x4722e8['type'])return;const {data:_0x5a1f7a}=_0x4722e8;if(!_0x5a1f7a)return;let _0x5983ba,_0x59738a;switch(_0x5a1f7a['commandName']){case'listStyle':_0x5983ba='*Change\x20to:*\x20%0',_0x59738a={'type':'format','content':o(_0x332ef9,_0x5983ba,o(_0x332ef9,this['_getTranslationKeyForListStyle'](_0x5a1f7a['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5983ba=_0x5a1f7a['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x59738a={'type':'format','content':o(_0x332ef9,_0x5983ba)};break;case'listStart':_0x5983ba='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x59738a={'type':'format','content':o(_0x332ef9,_0x5983ba,_0x5a1f7a['commandParams'][0x0]['startIndex'])};}return _0x59738a;});}['_getTranslationKeyForListStyle'](_0x4e8256){return'ELEMENT_'+function(_0x500313){if(Se['includes'](_0x500313))return'bulleted';if(_e['includes'](_0x500313))return'numbered';return null;}(_0x4e8256)['toUpperCase']()+'_LIST_'+_0x4e8256['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class z extends _0xe680e7{['afterInit'](){const _0x15b983=this['editor'];_0x15b983['commands']['get']('emoji')&&_0x15b983['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class W extends _0xe680e7{static get['requires'](){return[_0x5927bb];}['init'](){const _0x2ea6cb=this['editor'],_0x468012=_0x2ea6cb['plugins']['get']('TrackChangesEditing'),_0x552ba8=_0x2ea6cb['commands']['get']('enter');_0x468012['enableCommand']('enter',()=>{_0x2ea6cb['model']['change'](_0x3f4ae9=>{const _0x4f0c6f=_0x2ea6cb['model']['document']['selection'],_0x89a376=_0x4f0c6f['getFirstPosition'](),_0x5234bf=_0x50a820['fromRange'](_0x4f0c6f['getFirstRange']());if(_0x552ba8['enterBlock'](_0x3f4ae9)){const _0x4f7210=_0x2ea6cb['model']['createPositionAt'](_0x89a376['parent']['nextSibling'],0x0),_0x5598c6=_0x3f4ae9['createRange'](_0x89a376,_0x4f7210);_0x468012['markInsertion'](_0x5598c6);}else _0x3f4ae9['setSelection'](_0x3f4ae9['createRange'](_0x5234bf['end']));_0x5234bf['detach'](),_0x552ba8['fire']('afterExecute',{'writer':_0x3f4ae9});});}),_0x2ea6cb['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x2ea6cb,'split'),{'priority':'high'}),_0x2ea6cb['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0xd0a560,_0x56b381,_0x1168f2)=>{const _0x249145=_0x1168f2['mapper']['markerNameToElements'](_0x56b381['markerName']);if(_0x249145){for(const _0x5d0a65 of _0x249145)_0x5d0a65['hasClass']('ck-suggestion-marker-split')&&(_0x1168f2['mapper']['unbindElementFromMarkerName'](_0x5d0a65,_0x56b381['markerName']),_0x1168f2['writer']['remove'](_0x5d0a65));}},{'priority':'high'}),_0x2ea6cb['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x328421,_0x4524a1,_0x4edd99)=>{_0x4edd99['options']['showSuggestionHighlights']&&De(_0x2ea6cb,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x328421,_0x4524a1,_0x4edd99);},{'priority':'high'});}}class Q extends _0xe680e7{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x41733f=this['editor']['plugins']['get']('TrackChangesEditing');_0x41733f['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x41733f['enableCommand']('findNext'),_0x41733f['enableCommand']('findPrevious'),_0x41733f['enableCommand']('replace'),_0x41733f['enableCommand']('replaceAll');}['handleFindCommand'](_0x146835,_0x44ad43,_0x4e1105={}){const _0x510f4e=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x146835(_0x15d37a=>{let _0x55b499=('string'==typeof _0x44ad43?_0x510f4e['findByTextCallback'](_0x44ad43,_0x4e1105):_0x44ad43)(_0x15d37a);Array['isArray'](_0x55b499)&&(_0x55b499={'results':_0x55b499,'searchText':'string'==typeof _0x44ad43?_0x44ad43:''});const _0x590933=_0x55b499['results']['filter'](_0xc2e9c3=>!0x1===this['_isInDeletionRange'](_0xc2e9c3,_0x15d37a['item']));return{..._0x55b499,'results':_0x590933};},_0x4e1105);}['_isInDeletionRange'](_0x4f4a07,_0x27805c){const _0x5827e8=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x27805c,_0x4f4a07['start']),this['editor']['model']['createPositionAt'](_0x27805c,_0x4f4a07['end']));for(const _0x3ed06f of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x5827e8['getIntersection'](_0x3ed06f['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class X extends _0xe680e7{['afterInit'](){const _0x2567dc=this['editor']['locale'],_0xc75144=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x283815,commandName:_0x4da0e7}of eo)this['editor']['plugins']['has'](_0x283815)&&(_0xc75144['enableDefaultAttributesIntegration'](_0x4da0e7),_0xc75144['registerInlineAttribute'](_0x4da0e7));_0xc75144['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x2567dc,'FORMAT_FONT_SIZE')),_0xc75144['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x2567dc,'FORMAT_FONT_FAMILY')),_0xc75144['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x2567dc,'FORMAT_FONT_COLOR')),_0xc75144['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x2567dc,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3fb6c0=this['editor'],_0x2d4afc=_0x3fb6c0['locale'];_0x3fb6c0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x333b15=>{const _0x5b8672=_0x2d4afc['t'];if('formatInline'!=_0x333b15['type'])return;const {data:_0x4c419b}=_0x333b15;if(null!=_0x4c419b){if('fontSize'==_0x4c419b['commandName']){const _0xb824da=_0x4c419b['commandParams'][0x0]['value'];if(_0xb824da){const _0x3b5e8c=_0x5b8672(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x38323f=>_0x38323f['model']==_0xb824da)['title'])['toLowerCase']();return{'type':'format','content':o(_0x2d4afc,'*Set\x20font\x20size:*\x20%0',_0x3b5e8c)};}return{'type':'format','content':o(_0x2d4afc,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x4c419b['commandName']){const _0x475f65=_0x4c419b['commandParams'][0x0]['value'];return _0x475f65?{'type':'format','content':o(_0x2d4afc,'*Set\x20font\x20family:*\x20%0',_0x475f65)}:{'type':'format','content':o(_0x2d4afc,'*Reset\x20font\x20family*')};}if('fontColor'==_0x4c419b['commandName']){const _0x24d5d0=_0x4c419b['commandParams'][0x0]['value'];if(_0x24d5d0){const _0x33f3d2=_0x267957(this['editor']['config']['get']('fontColor.colors'))['find'](_0x4bba45=>_0x4bba45['model']==_0x24d5d0);let _0x55e75b=_0x24d5d0,_0x5e99c7='';return _0x33f3d2&&(_0x55e75b=_0x33f3d2['label'],_0x5e99c7=_0x5b8672(_0x55e75b)['toLowerCase']()),{'type':'format','content':o(_0x2d4afc,'*Set\x20font\x20color:*\x20%0',_0x5e99c7)['trim'](),'color':{'value':_0x24d5d0,'title':_0x5e99c7||_0x55e75b}};}return{'type':'format','content':o(_0x2d4afc,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x4c419b['commandName']){const _0x3d8a10=_0x4c419b['commandParams'][0x0]['value'];if(_0x3d8a10){const _0x5b4bde=_0x267957(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x21c738=>_0x21c738['model']==_0x3d8a10);let _0x2568ae=_0x3d8a10,_0x5c1cab='';return _0x5b4bde&&(_0x2568ae=_0x5b4bde['label'],_0x5c1cab=_0x5b8672(_0x2568ae)['toLowerCase']()),{'type':'format','content':o(_0x2d4afc,'*Set\x20font\x20background\x20color:*\x20%0',_0x5c1cab)['trim'](),'color':{'value':_0x3d8a10,'title':_0x5c1cab||_0x2568ae}};}return{'type':'format','content':o(_0x2d4afc,'*Reset\x20font\x20background\x20color*')};}}});}}class Y extends _0xe680e7{['afterInit'](){const _0x2e9db2=this['editor'],_0x570e0f=_0x2e9db2['plugins']['get']('TrackChangesEditing'),_0x2ba9f1=_0x2e9db2['commands']['get']('copyFormat'),_0x58beaf=_0x2e9db2['commands']['get']('pasteFormat');_0x2ba9f1&&_0x58beaf&&(_0x570e0f['enableDefaultAttributesIntegration']('pasteFormat'),_0x570e0f['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x258646=this['editor'],_0x3123f7=_0x258646['locale'];_0x258646['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x198526=>{if('formatBlock'!=_0x198526['type']&&'formatInline'!=_0x198526['type'])return;const {data:_0x9bb44e}=_0x198526;if(_0x9bb44e&&'pasteFormat'===_0x9bb44e['commandName']){const _0x3730f0=[],_0x2e3f21=_0x9bb44e['commandParams'][0x0];for(const [_0x2a4b6f,_0x3f66f6]of Object['entries'](_0x2e3f21))_0x3730f0['push'](ro(_0x258646,_0x2a4b6f,_0x3f66f6));return _0x3730f0['length']?{'type':'format','content':o(_0x3123f7,'*Set\x20format\x20to:*\x20%0',_0x3730f0['join'](',\x20'))}:{'type':'format','content':o(_0x3123f7,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x4c47a3,_0x434e53,_0x21dad8){const _0x56ef2e=_0x4c47a3['locale']['t'],_0x1d6ab9=_0x434e53['split'](/(?=[A-Z])/)['join']('\x20'),_0x54666e=_0x56ef2e(_0x1d6ab9['charAt'](0x0)['toUpperCase']()+_0x1d6ab9['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x21dad8)return _0x54666e;if('fontColor'===_0x434e53||'fontBackgroundColor'===_0x434e53){const _0x37456f=_0x267957(_0x4c47a3['config']['get']('fontColor.colors'))['find'](_0x5163a9=>_0x5163a9['model']==_0x21dad8);return _0x54666e+'\x20('+(_0x37456f?_0x56ef2e(_0x37456f['label'])['toLowerCase']():_0x21dad8)+')';}if('fontSize'===_0x434e53&&isNaN(parseFloat(_0x21dad8))){const _0x2276de=_0x4c47a3['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x4c47a3['config']['get']('fontSize.options'))['find'](_0x11c11d=>_0x11c11d['model']==_0x21dad8);return _0x54666e+'\x20('+(_0x2276de?_0x56ef2e(_0x2276de['title'])['toLowerCase']():_0x21dad8)+')';}return _0x54666e+'\x20('+_0x21dad8+')';}class Z extends _0xe680e7{['_headingOptions'];['afterInit'](){const _0xa15e74=this['editor'];if(!_0xa15e74['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0xa15e74['config']['get']('heading.options');const _0x24aaa8=_0xa15e74['locale'],_0x4f67ea=_0xa15e74['plugins']['get']('TrackChangesEditing');_0x4f67ea['enableDefaultAttributesIntegration']('heading');for(const _0x186f85 of this['_headingOptions'])'paragraph'!=_0x186f85['model']&&_0x4f67ea['descriptionFactory']['registerElementLabel'](_0x186f85['model'],_0x30c2b0=>{const _0x25a627=this['_getHeadingLevel'](_0x186f85['model']);return null!==_0x25a627?_0x4b9851(_0x30c2b0,_0x25a627):_0x33a638(_0x30c2b0,_0x186f85['title']);});function _0x4b9851(_0x3456da,_0x4bb53b){return o(_0x24aaa8,'ELEMENT_HEADING',[_0x3456da,_0x4bb53b]);}function _0x33a638(_0x44efb0,_0x31e67b){return o(_0x24aaa8,'ELEMENT_HEADING_CUSTOM',[_0x44efb0,_0x31e67b]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x63bd5d=this['editor'],_0x19dcf8=_0x63bd5d['locale'];function _0x563df7(_0x57dbcd,_0x7adcba){return o(_0x19dcf8,'ELEMENT_HEADING_CUSTOM',[_0x57dbcd,_0x7adcba]);}_0x63bd5d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x440091=>{if('formatBlock'!=_0x440091['type'])return;const {data:_0xb0ef47}=_0x440091;if(_0xb0ef47&&'heading'==_0xb0ef47['commandName']){const _0x898425=_0xb0ef47['commandParams'][0x0]['value'],_0x217819=this['_getHeadingLevel'](_0x898425);if(null!==_0x217819)return{'type':'format','content':o(_0x19dcf8,'*Change\x20to:*\x20%0',(_0x1abefa=0x1,_0xd76eec=_0x217819,o(_0x19dcf8,'ELEMENT_HEADING',[_0x1abefa,_0xd76eec])))};const _0xfff39=this['_headingOptions']['find'](_0x4c867d=>_0x4c867d['model']===_0x898425)['title'];return{'type':'format','content':o(_0x19dcf8,'*Change\x20to:*\x20%0',_0x563df7(0x1,_0xfff39))};}var _0x1abefa,_0xd76eec;});}['_getHeadingLevel'](_0x4b61bf){const _0x3c4e38=_0x4b61bf['match'](/^heading(\d+)/);if(_0x3c4e38)return _0x3c4e38[0x1];const _0x4fabfb=this['_headingOptions']?.['find'](_0x2f9ed6=>_0x2f9ed6['model']==_0x4b61bf);if(_0x4fabfb&&_0x4fabfb['view']){const _0x52da34=_0x4fabfb['view'],_0x1180bf=(_0x52da34['name']??_0x52da34)['match'](/^h(\d+)/);if(_0x1180bf)return _0x1180bf[0x1];}return null;}}class tt extends _0xe680e7{['afterInit'](){const _0x54ff17=this['editor'];if(!_0x54ff17['plugins']['has']('HighlightEditing'))return;const _0x1b2383=_0x54ff17['plugins']['get']('TrackChangesEditing'),_0x4ef9e0=_0x54ff17['locale'];_0x1b2383['enableDefaultAttributesIntegration']('highlight'),_0x1b2383['registerInlineAttribute']('highlight'),_0x1b2383['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x4ef9e0,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x190a56=this['editor'],_0x444f23=_0x190a56['locale'];_0x190a56['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x114595=>{if('formatInline'!=_0x114595['type'])return;const {data:_0x1148d8}=_0x114595;if(_0x1148d8&&'highlight'==_0x1148d8['commandName']){const _0x23be4d=_0x444f23['t'],_0x2a7a67=_0x1148d8['commandParams'][0x0]['value'];if(_0x2a7a67){const _0x140e12=_0x190a56['config']['get']('highlight.options')['find'](_0x3869ff=>_0x3869ff['model']==_0x2a7a67),_0x5ef031=_0x23be4d(_0x140e12['title'])['toLowerCase']();return{'type':'format','content':o(_0x444f23,'*Set\x20highlight:*\x20%0',_0x5ef031),'color':{'value':_0x140e12['color'],'title':_0x140e12['title']}};}return{'type':'format','content':o(_0x444f23,'*Remove\x20highlight*',o(_0x444f23,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0xe680e7{['afterInit'](){const _0x4e4d67=this['editor'];if(!_0x4e4d67['plugins']['has']('HorizontalLineEditing'))return;_0x4e4d67['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x19de24=_0x4e4d67['plugins']['get']('TrackChangesEditing'),_0x1ae746=_0x4e4d67['locale'];_0x19de24['descriptionFactory']['registerElementLabel']('horizontalLine',_0x22d15a=>o(_0x1ae746,'ELEMENT_HORIZONTAL_LINE',_0x22d15a)),_0x4e4d67['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x2605c6,{writer:_0x2cc3a7,options:_0x135035})=>{if(!_0x135035['showSuggestionHighlights'])return null;const _0x76fcae=_0x2cc3a7['createContainerElement']('div'),_0x1db6a1=_0x2cc3a7['createEmptyElement']('hr');return _0x2cc3a7['addClass']('ck-horizontal-line',_0x76fcae),_0x2cc3a7['insert'](_0x2cc3a7['createPositionAt'](_0x76fcae,0x0),_0x1db6a1),_0x76fcae;},'converterPriority':'high'});}}class nt extends _0xe680e7{['afterInit'](){const _0x4c4535=this['editor'];if(!_0x4c4535['plugins']['has']('HtmlEmbed'))return;const _0x10df53=_0x4c4535['plugins']['get']('TrackChangesEditing'),_0x582ace=_0x4c4535['locale'];_0x10df53['descriptionFactory']['registerElementLabel']('rawHtml',_0x173d91=>o(_0x582ace,'ELEMENT_HTML_EMBED',_0x173d91)),_0x10df53['enableDefaultAttributesIntegration']('htmlEmbed'),_0x10df53['registerBlockAttribute']('value'),_0x10df53['descriptionFactory']['registerDescriptionCallback'](_0x1c3fa5=>{if('attribute'!=_0x1c3fa5['type'])return;const {data:_0x44891f}=_0x1c3fa5;if(_0x44891f&&'value'==_0x44891f['key']&&_0x1c3fa5['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x24ebd2=o(_0x582ace,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x582ace,'*Change\x20%0\x20content*',_0x24ebd2)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x20fecf=this['editor'],_0x16da99=_0x20fecf['locale'];_0x20fecf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1df521=>{if('formatBlock'!=_0x1df521['type'])return;const {data:_0x2d7f45}=_0x1df521;if(_0x2d7f45&&'htmlEmbed'==_0x2d7f45['commandName']){const _0xad07a2=o(_0x16da99,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x16da99,'*Change\x20%0\x20content*',_0xad07a2)};}});}}class et extends _0xe680e7{['afterInit'](){const _0x2fdfe8=this['editor'];if(!_0x2fdfe8['plugins']['has']('ImageEditing'))return;const _0x8db15b=_0x2fdfe8['plugins']['get']('TrackChangesEditing'),_0x53dbd3=_0x2fdfe8['plugins']['get']('ImageUtils'),_0xee9519=_0x2fdfe8['locale'];_0x8db15b['enableCommand']('insertImage'),_0x8db15b['descriptionFactory']['registerElementLabel']('imageBlock',_0x1c9004=>o(_0xee9519,'ELEMENT_IMAGE',_0x1c9004)),_0x8db15b['descriptionFactory']['registerElementLabel']('imageInline',_0x5a4e32=>o(_0xee9519,'ELEMENT_INLINE_IMAGE',_0x5a4e32)),_0x8db15b['descriptionFactory']['registerElementLabel']('caption',()=>o(_0xee9519,'ELEMENT_CAPTION')),_0x2fdfe8['plugins']['has']('ImageUploadEditing')&&_0x8db15b['enableCommand']('uploadImage'),_0x2fdfe8['plugins']['has']('ImageBlockEditing')&&_0x2fdfe8['plugins']['has']('ImageInlineEditing')&&(_0x8db15b['enableCommand']('imageTypeInline',(_0x48a39b,_0x5b5b5f)=>{const _0x24e145=_0x53dbd3['getClosestSelectedImageElement'](_0x2fdfe8['model']['document']['selection']);_0x2fdfe8['model']['change'](()=>{_0x8db15b['markBlockFormat'](_0x24e145,{'commandName':'imageTypeInline','commandParams':[_0x5b5b5f]},[],'convertBlockImageToInline');});}),_0x8db15b['enableCommand']('imageTypeBlock',(_0x36f730,_0x23cc54)=>{_0x2fdfe8['model']['change'](_0x59b1a5=>{let _0x2bbfe1=_0x53dbd3['getClosestSelectedImageElement'](_0x2fdfe8['model']['document']['selection']),_0x17dc2f=_0x59b1a5['createRangeOn'](_0x2bbfe1);const _0x163885=_0x5da3ae['fromPosition'](_0x17dc2f['start'],'toPrevious'),_0x6a2785=_0x5da3ae['fromPosition'](_0x17dc2f['end'],'toNext');_0x8db15b['forceDefaultExecution'](()=>_0x36f730(_0x23cc54)),_0x2bbfe1=_0x53dbd3['getClosestSelectedImageElement'](_0x2fdfe8['model']['document']['selection']),_0x17dc2f=_0x59b1a5['createRangeOn'](_0x2bbfe1);const _0x253f45=_0x59b1a5['createRange'](_0x163885,_0x6a2785);_0x163885['detach'](),_0x6a2785['detach'](),_0x8db15b['markBlockFormat'](_0x2bbfe1,{'commandName':'imageTypeInline','commandParams':[_0x23cc54]},[],'convertInlineImageToBlock'),_0x253f45['start']['isBefore'](_0x17dc2f['start'])&&_0x8db15b['markInsertion'](_0x59b1a5['createRange'](_0x253f45['start'],_0x17dc2f['start']),'convertInlineImageToBlock'),_0x17dc2f['end']['isBefore'](_0x253f45['end'])&&_0x8db15b['markInsertion'](_0x59b1a5['createRange'](_0x17dc2f['end'],_0x253f45['end']),'convertInlineImageToBlock');});}),_0x8db15b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x8db15b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x8db15b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x8db15b['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x8db15b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x8db15b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x30f518])=>{const _0x3feee2=_0x8db15b['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0xa97c4b=_0x30f518['start'],_0x1a399b=_0x30f518['end'];const _0x5b4894=_0x2fdfe8['model']['schema']['getNearestSelectionRange'](_0xa97c4b,'backward'),_0x48d554=_0x2fdfe8['model']['schema']['getNearestSelectionRange'](_0x1a399b,'forward');_0x5b4894['isCollapsed']&&(_0xa97c4b=_0x5b4894['start']),_0x48d554['isCollapsed']&&(_0x1a399b=_0x48d554['end']),_0x3feee2([_0x2fdfe8['model']['createRange'](_0xa97c4b,_0x1a399b)]);}),_0x8db15b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x460132),_0x8db15b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x460132)),_0x2fdfe8['plugins']['has']('ImageCaptionEditing')&&(_0x8db15b['enableCommand']('toggleImageCaption',(_0x183c40,_0xad0f1d)=>{const _0x4bc8cd=_0x2fdfe8['plugins']['get']('ImageCaptionUtils');let _0xcd2756=_0x53dbd3['getClosestSelectedImageElement'](_0x2fdfe8['model']['document']['selection']),_0x59987f=_0x4bc8cd['getCaptionFromImageModelElement'](_0xcd2756);_0x2fdfe8['model']['change'](()=>{if(_0x59987f)return void _0x8db15b['markDeletion'](_0x2fdfe8['model']['createRangeOn'](_0x59987f));const _0x3b91d5=_0x53dbd3['isBlockImage'](_0xcd2756);_0x183c40(_0xad0f1d),_0xcd2756=_0x53dbd3['getClosestSelectedImageElement'](_0x2fdfe8['model']['document']['selection']),_0x59987f=_0x4bc8cd['getCaptionFromImageModelElement'](_0xcd2756),_0x8db15b['markInsertion'](_0x2fdfe8['model']['createRangeOn'](_0x59987f),_0x3b91d5?null:'imageCaption');});}),_0x8db15b['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x460132));const _0x275260=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x512984(_0x46c642,_0xeca867){const _0xbd76f7=_0x275260['findIndex'](({type:_0x23de5e,subType:_0x5b75c1})=>_0x46c642['type']==_0x23de5e&&_0x46c642['subType']==_0x5b75c1),_0x421fa6=_0x275260['findIndex'](({type:_0x46aefa,subType:_0x242c63})=>_0xeca867['type']==_0x46aefa&&_0xeca867['subType']==_0x242c63);if(_0xbd76f7<0x0||_0x421fa6<0x0)return!0x1;const _0x49b30d=_0x46c642['getFirstRange'](),_0xcfac8e=_0xeca867['getFirstRange']();if((0x0==_0xbd76f7||0x1==_0xbd76f7)&&0x2==_0x421fa6&&_0x49b30d['isIntersecting'](_0xcfac8e))return!0x0;if(0x2==_0xbd76f7&&0x3==_0x421fa6){const _0x90149a=_0x8db15b['_findSuggestions'](_0x49b30d,'insertion')['filter'](({suggestion:_0x1f6669,meta:_0x59ae2d})=>_0x59ae2d['isOwn']&&'convertInlineImageToBlock'==_0x1f6669['subType']);if(_0x90149a['length']>0x1&&_0xcfac8e['end']['isEqual'](_0x49b30d['start']))return!0x0;if(0x1==_0x90149a['length']&&(_0x49b30d['start']['isEqual'](_0xcfac8e['end'])||_0x49b30d['end']['isEqual'](_0xcfac8e['start'])))return!0x0;}if(0x3==_0xbd76f7&&0x3==_0x421fa6&&_0x49b30d['start']['isBefore'](_0xcfac8e['start'])){const _0x31c225=_0x49b30d['end']['nodeAfter'],_0x4e220f=_0xcfac8e['start']['nodeBefore'];return _0x53dbd3['isBlockImage'](_0x31c225)&&_0x31c225===_0x4e220f;}return!0x1;}function _0x460132(_0x30e287,_0x4d1c96){return _0x512984(_0x30e287,_0x4d1c96)?[_0x30e287,_0x4d1c96]:_0x512984(_0x4d1c96,_0x30e287)?[_0x4d1c96,_0x30e287]:null;}_0x2fdfe8['plugins']['has']('ImageResize')&&(_0x8db15b['enableDefaultAttributesIntegration']('resizeImage'),_0x8db15b['registerBlockAttribute']('resizedWidth'),_0x8db15b['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0xee9519,'FORMAT_IMAGE_SIZE'))),_0x2fdfe8['plugins']['has']('ImageTextAlternativeEditing')&&(_0x8db15b['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x8db15b['registerBlockAttribute']('alt')),_0x2fdfe8['plugins']['has']('PictureEditing')&&(_0x8db15b['registerBlockAttribute']('sources'),_0x8db15b['descriptionFactory']['registerDescriptionCallback'](_0x2d9725=>{if('attribute'!=_0x2d9725['type'])return;const {data:_0x23dd2e}=_0x2d9725;return _0x23dd2e&&'sources'==_0x23dd2e['key']?{'type':'format','content':''}:void 0x0;})),_0x2fdfe8['plugins']['has']('ImageSizeAttributes')&&(_0x8db15b['registerBlockAttribute']('width'),_0x8db15b['registerBlockAttribute']('height'),_0x8db15b['descriptionFactory']['registerDescriptionCallback'](_0x44e600=>{if('attribute'!=_0x44e600['type'])return;const {data:_0x45bf24}=_0x44e600;return!_0x45bf24||'width'!=_0x45bf24['key']&&'height'!=_0x45bf24['key']?void 0x0:{'type':'format','content':''};})),_0x8db15b['descriptionFactory']['registerDescriptionCallback'](_0x474a05=>{if(!!_0x275260['find'](({type:_0x38fdff,subType:_0x192729})=>_0x474a05['type']==_0x38fdff&&_0x474a05['subType']==_0x192729))return _0x474a05['previous']?{}:void 0x0;}),_0x8db15b['descriptionFactory']['registerDescriptionCallback'](_0x5c48cc=>{if('insertion'==_0x5c48cc['type']||'deletion'==_0x5c48cc['type']){const _0x408980=_0x5c48cc['getContainedElement']();if(_0x408980&&_0x408980['is']('element','caption'))return{'type':'insertion'==_0x5c48cc['type']?'addObject':'removeObject','element':_0x408980,'quantity':0x1};}}),_0x8db15b['descriptionFactory']['registerDescriptionCallback'](_0x1d2a67=>'formatBlock'==_0x1d2a67['type']&&'convertInlineImageToBlock'==_0x1d2a67['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x1d2a67['type']&&'convertBlockImageToInline'==_0x1d2a67['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x8db15b['descriptionFactory']['registerDescriptionCallback'](_0x495dff=>{if('attribute'!=_0x495dff['type'])return;const {data:_0xe899fd}=_0x495dff;if(!_0xe899fd||'alt'!=_0xe899fd['key'])return;const _0x3ae8a5=_0xe899fd['newValue'];return _0x3ae8a5?{'type':'format','content':o(_0xee9519,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3ae8a5+'\x22')}:{'type':'format','content':o(_0xee9519,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x76a48=this['editor'],_0x104ba8=_0x76a48['locale'];_0x76a48['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xe208a5=>{if('formatBlock'!=_0xe208a5['type']&&'formatInline'!=_0xe208a5['type'])return;const {data:_0x35c208}=_0xe208a5;if(_0x35c208){if('imageTextAlternative'==_0x35c208['commandName']){const _0x1e13dc=_0x35c208['commandParams'][0x0]['newValue'];return _0x1e13dc?{'type':'format','content':o(_0x104ba8,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1e13dc+'\x22')}:{'type':'format','content':o(_0x104ba8,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x35c208['commandName']){const _0x1923be=_0x35c208['commandParams'][0x0]['width'];return _0x1923be?{'type':'format','content':o(_0x104ba8,'*Set\x20image\x20width:*\x20%0',_0x1923be)}:{'type':'format','content':o(_0x104ba8,'*Reset\x20image\x20width*')};}}});}}class st extends _0xe680e7{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x1067d0=this['editor']['locale'],_0x448329=this['editor']['plugins']['get']('TrackChangesEditing');_0x448329['enableDefaultAttributesIntegration']('replaceImageSource'),_0x448329['registerBlockAttribute']('src'),_0x448329['descriptionFactory']['registerDescriptionCallback'](_0x412165=>{if('attribute'!=_0x412165['type'])return;const {data:_0xefa9cd}=_0x412165;return _0xefa9cd&&'src'==_0xefa9cd['key']?_0xefa9cd['newValue']&&_0xefa9cd['oldValue']?{'type':'format','content':o(_0x1067d0,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2a2cb5=this['editor']['plugins']['get']('TrackChangesEditing');_0x2a2cb5['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x2a2cb5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2a2cb5['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x2a2cb5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2e345e=this['editor'],_0x5d479d=_0x2e345e['locale'];_0x2e345e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x16cd95=>{if('formatBlock'!=_0x16cd95['type']&&'formatInline'!=_0x16cd95['type'])return;const {data:_0x4c99c7}=_0x16cd95;if(!_0x4c99c7||'replaceImageSource'!=_0x4c99c7['commandName'])return;return{'type':'format','content':o(_0x5d479d,'*Format:*\x20replace\x20image\x20URL')};});}}class ot extends _0xe680e7{['afterInit'](){const _0x2dd1bb=this['editor'];if(!_0x2dd1bb['plugins']['has']('ImageStyleEditing'))return;const _0x6f4e78=_0x2dd1bb['plugins']['get']('TrackChangesEditing'),_0x1a4fc6=_0x2dd1bb['plugins']['get']('ImageUtils'),_0x4f3d4a={};_0x6f4e78['enableCommand']('imageStyle',(_0x2873fa,_0xd5113b)=>{const _0x26c84f=_0x2dd1bb['plugins']['get']('Users')['me'],_0x2b9d98=_0x2dd1bb['commands']['get']('imageStyle');let _0x4b5bc6=_0x1a4fc6['getClosestSelectedImageElement'](_0x2dd1bb['model']['document']['selection']),_0x4f76f4=_0x2dd1bb['model']['createRangeOn'](_0x4b5bc6),_0x933df2=_0x2b9d98['value'];if(_0x933df2==_0xd5113b['value'])return;const _0x405bd4={'commandName':'imageStyle','commandParams':[_0xd5113b],'formatGroupId':_0x29bcf7()};_0x2dd1bb['model']['change'](()=>{if(_0x6f4e78['getSuggestions']()['filter'](_0xd13d41=>_0xd13d41['isInContent']&&_0x26c84f==_0xd13d41['author']&&('formatBlock'==_0xd13d41['type']||'formatInline'==_0xd13d41['type'])&&('imageStylePreApply'==_0xd13d41['subType']||'imageStylePostApply'==_0xd13d41['subType'])&&_0xd13d41['getFirstRange']()['isEqual'](_0x4f76f4))['forEach'](_0x55a4a3=>_0x6f4e78['discardSuggestion'](_0x55a4a3['head'])),_0x4b5bc6=_0x1a4fc6['getClosestSelectedImageElement'](_0x2dd1bb['model']['document']['selection']),_0x4f76f4=_0x2dd1bb['model']['createRangeOn'](_0x4b5bc6),_0x2b9d98['refresh'](),_0x2dd1bb['commands']['get']('imageTypeInline')['refresh'](),_0x2dd1bb['commands']['get']('imageTypeBlock')['refresh'](),_0x933df2=_0x2b9d98['value'],_0x933df2!=_0xd5113b['value'])return _0x1a4fc6['isInlineImage'](_0x4b5bc6)&&_0x2b9d98['shouldConvertImageType'](_0xd5113b['value'],_0x4b5bc6)?(_0x2873fa({..._0xd5113b,'setImageSizes':!0x1}),_0x4b5bc6=_0x1a4fc6['getClosestSelectedImageElement'](_0x2dd1bb['model']['document']['selection']),void _0x6f4e78['markBlockFormat'](_0x4b5bc6,{..._0x405bd4,'commandReversedParams':[{'value':_0x933df2||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x1a4fc6['isBlockImage'](_0x4b5bc6)?_0x6f4e78['markBlockFormat'](_0x4b5bc6,_0x405bd4,[],'imageStylePostApply'):_0x6f4e78['markInlineFormat'](_0x4f76f4,_0x405bd4,'imageStylePostApply'));});});for(const _0x290923 of _0x2dd1bb['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x4f3d4a[_0x290923['name']]=_0x290923['title']['toLowerCase']();_0x6f4e78['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x6f4e78['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x6f4e78['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x6f4e78['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x565396])=>{_0x1a4fc6['setImageNaturalSizeAttributes'](_0x565396['getContainedElement']());}),_0x6f4e78['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x379345,_0x1ef092)=>{_0x6f4e78['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x379345,{'commandName':_0x1ef092['commandName'],'commandParams':_0x1ef092['commandReversedParams']});}),_0x6f4e78['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x24e12f,_0x15912a){if(_0x545be2(_0x24e12f,_0x15912a))return[_0x24e12f,_0x15912a];if(_0x545be2(_0x15912a,_0x24e12f))return[_0x15912a,_0x24e12f];return null;});const _0x3b32c1=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x545be2(_0x413cec,_0x832c9d){const _0x131a11=_0x3b32c1['findIndex'](({type:_0x2759e8,subType:_0xcc3ffa})=>_0x413cec['type']==_0x2759e8&&_0x413cec['subType']==_0xcc3ffa),_0x2042af=_0x3b32c1['findIndex'](({type:_0x4a2f59,subType:_0x12e473})=>_0x832c9d['type']==_0x4a2f59&&_0x832c9d['subType']==_0x12e473);if(_0x131a11<0x0||_0x2042af<0x0)return!0x1;const _0x7d6952=_0x413cec['getFirstRange'](),_0x306d1e=_0x832c9d['getFirstRange']();if((0x0==_0x131a11||0x1==_0x131a11)&&0x2==_0x2042af&&_0x7d6952['isIntersecting'](_0x306d1e))return!0x0;if(0x2==_0x131a11&&0x3==_0x2042af){const _0x3a894d=_0x6f4e78['_findSuggestions'](_0x7d6952,'insertion')['filter'](({suggestion:_0x52e81f,meta:_0x32f7cb})=>_0x32f7cb['isOwn']&&'convertInlineImageToBlock'==_0x52e81f['subType']);if(_0x3a894d['length']>0x1&&_0x306d1e['end']['isEqual'](_0x7d6952['start']))return!0x0;if(0x1==_0x3a894d['length']&&(_0x7d6952['start']['isEqual'](_0x306d1e['end'])||_0x7d6952['end']['isEqual'](_0x306d1e['start'])))return!0x0;}if(0x3==_0x131a11&&0x3==_0x2042af&&_0x7d6952['start']['isBefore'](_0x306d1e['start'])){const _0x42624c=_0x7d6952['end']['nodeAfter'],_0x15405b=_0x306d1e['start']['nodeBefore'];return _0x1a4fc6['isBlockImage'](_0x42624c)&&_0x42624c===_0x15405b;}return!0x1;}_0x2dd1bb['model']['document']['registerPostFixer'](()=>{let _0x2d24fd=!0x1;const _0x347369=Array['from'](_0x2dd1bb['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3c9a8f,data:_0x431ae8}of _0x347369){const {group:_0x539d10,type:_0x14a8d6,subType:_0x5ea82d,id:_0x4a3c4b}=_0x6f4e78['_splitMarkerName'](_0x3c9a8f);if('suggestion'==_0x539d10&&_0x6f4e78['hasSuggestion'](_0x4a3c4b)){if('formatBlock'==_0x14a8d6&&('imageStylePreApply'==_0x5ea82d||'imageStylePostApply'==_0x5ea82d)){const _0x19fa89=_0x6f4e78['getSuggestion'](_0x4a3c4b);if(_0x431ae8['newRange']){const _0x51b8b9=_0x19fa89['getFirstRange']()['getContainedElement']();if(_0x1a4fc6['isBlockImage'](_0x51b8b9))continue;_0x6f4e78['discardSuggestion'](_0x19fa89),_0x2d24fd=!0x0;}}if('insertion'==_0x14a8d6&&'imageCaption'==_0x5ea82d&&!_0x431ae8['newRange']){const _0x3dc4c0=_0x6f4e78['getSuggestion'](_0x4a3c4b);_0x3dc4c0['next']&&_0x3dc4c0['next']['isInContent']&&(_0x6f4e78['discardSuggestion'](_0x3dc4c0['next']),_0x2d24fd=!0x0);}}}return _0x2d24fd;}),this['_registerLegacyDescription'](_0x4f3d4a);}['_registerLegacyDescription'](_0x2512b8){const _0x221aee=this['editor'],_0x4547d1=_0x221aee['locale'];_0x221aee['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a9e08=>{if('formatBlock'!=_0x3a9e08['type']&&'formatInline'!=_0x3a9e08['type'])return;const {data:_0x441aa9}=_0x3a9e08;if(!_0x441aa9||'imageStyle'!=_0x441aa9['commandName'])return;const _0x35b411=_0x441aa9['commandParams'][0x0]['value'];return _0x58a688('side'===_0x35b411?o(_0x4547d1,'FORMAT_SIDE_IMAGE'):_0x2512b8[_0x35b411]||_0x35b411);function _0x58a688(_0x43e522){return{'type':'format','content':o(_0x4547d1,'*Format:*\x20%0',_0x43e522)};}});}}class rt extends _0xe680e7{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x4a9144){super(_0x4a9144),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x547528=this['editor'],_0x522c8e=_0x547528['commands']['get']('importWord'),_0x54d413=_0x547528['commands']['get']('trackChanges');_0x522c8e&&(_0x522c8e['on']('execute',(_0x5503f4,[,_0x16d020])=>{this['_trackChangesValueDuringImport']=_0x54d413['value'],_0x16d020['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x522c8e,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x522c8e,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x54d413['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x547528['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x558f35,_0x2a8b83){const {suggestions:_0x148217}=_0x2a8b83,_0x5e8809=this['editor']['commands']['get']('trackChanges'),_0x3fae98=_0x5e8809['value'];this['_trackChangesValueDuringImport']!==_0x3fae98&&(_0x5e8809['execute'](),this['_trackChangesExecuted']=!0x0),_0x148217&&_0x148217['forEach'](({id:_0x23b8d1,type:_0x3317fb,author:_0x4679fd,created_at:_0x5a1fd6})=>{const _0x29081b={'id':_0x23b8d1,'type':_0x3317fb,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x4679fd,'createdAt':_0x5a1fd6?new Date(_0x5a1fd6):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x29081b);});}}class at extends _0xe680e7{['afterInit'](){const _0x46b43d=this['editor'],_0x5f3606=_0x46b43d['plugins']['get']('TrackChangesEditing');if(_0x46b43d['plugins']['has']('IndentEditing')&&(_0x5f3606['enableCommand']('indent'),_0x5f3606['enableCommand']('outdent')),_0x46b43d['plugins']['has']('IndentBlock')){for(const _0x1d9574 of['indentBlock','outdentBlock'])_0x5f3606['enableDefaultAttributesIntegration'](_0x1d9574);}const _0x583b11=_0x46b43d['locale'];_0x5f3606['registerBlockAttribute']('blockIndent'),_0x5f3606['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x583b11,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x23d993=this['editor'],_0x48c993=_0x23d993['locale'],_0x43a505=_0x23d993['plugins']['get']('TrackChangesEditing');_0x43a505['descriptionFactory']['registerDescriptionCallback'](_0x192e43=>{if('formatBlock'!=_0x192e43['type'])return;const {data:_0x3d5210}=_0x192e43;if(!_0x3d5210)return;if('indentBlock'!=_0x3d5210['commandName']&&'outdentBlock'!=_0x3d5210['commandName'])return;const _0x11279e=_0x192e43['getItems']()[0x0],_0x36709d=_0x43a505['descriptionFactory']['getItemLabel'](_0x11279e);return'indentBlock'==_0x3d5210['commandName']?{'type':'format','content':o(_0x48c993,'*Indent:*\x20%0',_0x36709d)}:'outdentBlock'==_0x3d5210['commandName']?{'type':'format','content':o(_0x48c993,'*Outdent:*\x20%0',_0x36709d)}:void 0x0;});}}class ct extends _0xe680e7{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ut extends _0xe680e7{['afterInit'](){const _0x347a25=this['editor'];if(!_0x347a25['plugins']['has']('LinkEditing'))return;const _0x5ef572=_0x347a25['plugins']['get']('TrackChangesEditing'),_0x4ecd84=_0x347a25['commands']['get']('link');_0x5ef572['enableDefaultAttributesIntegration']('link'),_0x5ef572['enableDefaultAttributesIntegration']('unlink'),_0x5ef572['registerInlineAttribute']('linkHref');for(const _0x403608 of _0x4ecd84['manualDecorators'])_0x5ef572['registerInlineAttribute'](_0x403608['id']),_0x5ef572['descriptionFactory']['registerAttributeLabel'](_0x403608['id'],'link\x20('+_0x403608['label']['toLowerCase']()+')');_0x5ef572['descriptionFactory']['registerDescriptionCallback'](_0x3243e1=>{if('attribute'!=_0x3243e1['type'])return;const {data:_0x92b88}=_0x3243e1;if(!_0x92b88||'linkHref'!=_0x92b88['key'])return;const _0x19e12e=_0x92b88['newValue'],_0x208adc=_0x347a25['locale'];return{'type':'format','content':null==_0x19e12e?o(_0x208adc,'*Remove\x20link*'):o(_0x208adc,'*Set\x20link:*\x20%0','\x22'+_0x19e12e+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1229eb=this['editor'],_0x2989eb=_0x1229eb['locale'];_0x1229eb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x445aa4=>{if('formatInline'!=_0x445aa4['type'])return;const {data:_0x4ac6e1}=_0x445aa4;if(_0x4ac6e1){if('link'==_0x4ac6e1['commandName']){const _0x1228dd=_0x4ac6e1['commandParams'][0x0];return{'type':'format','content':o(_0x2989eb,'*Set\x20link:*\x20%0','\x22'+_0x1228dd+'\x22')};}return'unlink'==_0x4ac6e1['commandName']?{'type':'format','content':o(_0x2989eb,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0xe680e7{['afterInit'](){const _0xf75163=this['editor'],_0x477db5=_0xf75163['locale'];if(!_0xf75163['plugins']['has']('LegacyListEditing'))return;const _0x50f1c8=_0xf75163['plugins']['get']('TrackChangesEditing'),_0x2bfb64=_0xf75163['plugins']['has']('LegacyTodoListEditing');function _0x35ddb2(_0x93571a){return()=>{const _0x4e5169=_0xf75163['model']['document']['selection'],_0x11d080=_0xf75163['commands']['get'](_0x93571a);if(_0x11d080['value'])return void _0xf75163['execute']('paragraph',{});const _0x3713da=_0x93571a['slice'](0x0,-0x4),_0x4c056c=function(_0x473fdb,_0x536875,_0x3ee5a7){let _0x2f11ad=Array['from'](_0x473fdb)['filter'](_0x5575e3=>function(_0x4e7f94,_0x5c6a8c){return _0x5c6a8c['checkChild'](_0x4e7f94['parent'],'listItem')&&!_0x5c6a8c['isObject'](_0x4e7f94);}(_0x5575e3,_0x3ee5a7));_0x2f11ad=_0x2f11ad['filter'](_0x1099b4=>!_0x1099b4['is']('element','listItem')||_0x1099b4['getAttribute']('listType')!=_0x536875);const _0x26b9d6=new Set();for(const _0x3499ff of _0x2f11ad)_0x3499ff['is']('element','listItem')?_0x26b9d6['add'](Le(_0x3499ff)):_0x26b9d6['add'](_0x3499ff);return Array['from'](_0x26b9d6);}(_0x4e5169['getSelectedBlocks'](),_0x3713da,_0xf75163['model']['schema']);_0xf75163['model']['change'](()=>{for(const _0x37bfa1 of _0x4c056c)_0x50f1c8['markBlockFormat'](_0x37bfa1,{'commandName':_0x93571a,'commandParams':[{'forceValue':!_0x11d080['value']}],'formatGroupId':'blockName'},Ee(_0x37bfa1));});};}function _0x4c1e32(_0x6394f7){return()=>{const _0x2a3f32=function(_0x9cac9f){let _0x24e02b=Array['from'](_0x9cac9f);const _0x442e6e=_0x24e02b['findIndex'](_0x226090=>'listItem'!=_0x226090['name']);return _0x442e6e>-0x1&&(_0x24e02b=_0x24e02b['slice'](0x0,_0x442e6e)),_0x24e02b;}(_0xf75163['model']['document']['selection']['getSelectedBlocks']()),_0x2ec122=_0xf75163['model']['createRange'](_0xf75163['model']['createPositionAt'](_0x2a3f32[0x0],'before'),_0xf75163['model']['createPositionAt'](_0x2a3f32[_0x2a3f32['length']-0x1],'end'));_0xf75163['model']['change'](()=>{_0x50f1c8['markBlockFormat'](_0x2ec122,{'commandName':_0x6394f7,'commandParams':[],'formatGroupId':'listIndent'},function(_0x481f4b){const _0x184ba7=new Set();for(const _0x4afd49 of _0x481f4b){let _0x707b93=_0x4afd49['nextSibling'];for(;_0x707b93&&_0x707b93['getAttribute']('listIndent')>_0x4afd49['getAttribute']('listIndent');)_0x184ba7['add'](_0x707b93),_0x707b93=_0x707b93['nextSibling'];}return Array['from'](_0x184ba7);}(_0x2a3f32));});};}_0x50f1c8['enableCommand']('numberedList',_0x35ddb2('numberedList')),_0x50f1c8['enableCommand']('bulletedList',_0x35ddb2('bulletedList')),_0x2bfb64&&_0x50f1c8['enableCommand']('todoList',_0x35ddb2('todoList')),_0x50f1c8['enableCommand']('indentList',_0x4c1e32('indentList')),_0x50f1c8['enableCommand']('outdentList',_0x4c1e32('outdentList')),_0x2bfb64&&_0x50f1c8['enableCommand']('checkTodoList',()=>{const _0x597f7f=_0xf75163['commands']['get']('checkTodoList'),_0x2249da=Array['from'](_0x597f7f['_selectedElements']);_0x2249da['filter'](_0x4fbd24=>_0x4fbd24['getAttribute']('todoListChecked')!=_0x597f7f['value']),_0xf75163['model']['change'](()=>{for(const _0x4365c8 of _0x2249da)_0x50f1c8['markBlockFormat'](_0x4365c8,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x597f7f['value']}]});});}),_0x50f1c8['descriptionFactory']['registerElementLabel']('listItem',_0x1170e3=>o(_0x477db5,'ELEMENT_LIST_ITEM',_0x1170e3)),_0x50f1c8['descriptionFactory']['registerDescriptionCallback'](_0x36863f=>{if('formatBlock'!=_0x36863f['type']&&'formatInline'!=_0x36863f['type'])return;const {data:_0x34c2b2}=_0x36863f;if(_0x34c2b2){if('numberedList'==_0x34c2b2['commandName']||'bulletedList'==_0x34c2b2['commandName']||'todoList'==_0x34c2b2['commandName'])switch(_0x34c2b2['commandName']['replace']('List','')){case'bulleted':return _0x820fd(o(_0x477db5,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x820fd(o(_0x477db5,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x820fd(o(_0x477db5,'ELEMENT_TODO_LIST'));}if('indentList'==_0x34c2b2['commandName'])return{'type':'format','content':o(_0x477db5,'*Indent:*\x20%0',o(_0x477db5,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x34c2b2['commandName'])return{'type':'format','content':o(_0x477db5,'*Outdent:*\x20%0',o(_0x477db5,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x34c2b2['commandName'])return _0x34c2b2['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x477db5,'*Check\x20item*')}:{'type':'format','content':o(_0x477db5,'*Uncheck\x20item*')};}function _0x820fd(_0x2a8acb){return{'type':'format','content':o(_0x477db5,'*Change\x20to:*\x20%0',_0x2a8acb)};}});}}function Le(_0x1601e9){const _0x5e10fa=_0x1601e9['getAttribute']('listIndent');if(0x0==_0x5e10fa)return _0x1601e9;let _0x10eac6=_0x1601e9;for(;_0x1601e9['previousSibling']&&_0x1601e9['previousSibling']['is']('element','listItem');){const _0x13245f=_0x1601e9['previousSibling']['getAttribute']('listIndent');if(_0x13245f==_0x5e10fa)_0x10eac6=_0x1601e9['previousSibling'];else{if(_0x13245f<_0x5e10fa)break;}_0x1601e9=_0x1601e9['previousSibling'];}return _0x10eac6;}function Ee(_0x3c303d){const _0x1eecfd=[];if(_0x3c303d['is']('element','listItem')&&_0x3c303d['getAttribute']('listIndent')>0x0){let _0x2fa097=_0x3c303d['nextSibling'];for(;_0x2fa097&&'listItem'==_0x2fa097['name']&&_0x2fa097['getAttribute']('listIndent')==_0x3c303d['getAttribute']('listIndent');)_0x1eecfd['push'](_0x2fa097),_0x2fa097=_0x2fa097['nextSibling'];}return _0x1eecfd;}class ht extends _0xe680e7{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0xa192c3=this['editor']['config']['get']('list.properties'),_0xaccae3=this['editor']['plugins']['get']('TrackChangesEditing');_0xa192c3['styles']&&_0xaccae3['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0xa192c3['reversed']&&_0xaccae3['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0xa192c3['startIndex']&&_0xaccae3['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0xaccae3['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x4e68ce,_0x5bf925={}){const _0x284586=this['editor']['plugins']['get']('TrackChangesEditing'),_0x122a89=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x284586['markMultiRangeBlockFormat'](_0x122a89,{'commandName':'listStyle','commandParams':[{'type':_0x5bf925['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x2f3b1e,_0x4f6397={}){const _0x5c228a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x16d76e=this['_getSuggestionBlocks'](_0xbffa0=>_0xbffa0['is']('element','listItem')&&'numbered'===_0xbffa0['getAttribute']('listType'));if(_0x16d76e['length']<0x1)return;const _0x4129ad=_0x16d76e['map'](_0x54ff9d=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x54ff9d,'before'),this['editor']['model']['createPositionAt'](_0x54ff9d,0x0)));this['editor']['model']['change'](()=>{_0x5c228a['markMultiRangeBlockFormat'](_0x4129ad,{'commandName':'listReversed','commandParams':[{'reversed':_0x4f6397['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x353e1c,_0x3fcfb7={}){const _0x15532=this['editor']['plugins']['get']('TrackChangesEditing'),_0x244d0b=this['_getSuggestionBlocks'](_0x584b1c=>_0x584b1c['is']('element','listItem')&&'numbered'===_0x584b1c['getAttribute']('listType'));if(_0x244d0b['length']<0x1)return;const _0x2c8aec=_0x244d0b['map'](_0x2436fc=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2436fc,'before'),this['editor']['model']['createPositionAt'](_0x2436fc,0x0)));this['editor']['model']['change'](()=>{_0x15532['markMultiRangeBlockFormat'](_0x2c8aec,{'commandName':'listStart','commandParams':[{'startIndex':_0x3fcfb7['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x288d61){if('formatBlock'!=_0x288d61['type']&&'formatInline'!=_0x288d61['type'])return;const _0x1cb7a9=this['editor']['locale'],{data:_0x385e3d}=_0x288d61;if(!_0x385e3d)return;let _0x4077ec,_0x2817eb;switch(_0x385e3d['commandName']){case'listStyle':_0x4077ec='*Change\x20to:*\x20%0',_0x2817eb={'type':'format','content':o(_0x1cb7a9,_0x4077ec,o(_0x1cb7a9,this['_getTranslationKeyForListStyle'](_0x385e3d['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4077ec=_0x385e3d['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2817eb={'type':'format','content':o(_0x1cb7a9,_0x4077ec)};break;case'listStart':_0x4077ec='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2817eb={'type':'format','content':o(_0x1cb7a9,_0x4077ec,_0x385e3d['commandParams'][0x0]['startIndex'])};}return _0x2817eb;}['_getSuggestionBlocksForListStyle'](){const _0x131932=this['editor']['plugins']['get']('LegacyListUtils');let _0x364c4f=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x364c4f[0x0]?.['is']('element','listItem')&&_0x364c4f['unshift'](..._0x131932['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x364c4f[_0x364c4f['length']-0x1]?.['is']('element','listItem')&&_0x364c4f['push'](..._0x131932['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x364c4f=[...new Set(_0x364c4f)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x364c4f=_0x364c4f['filter'](_0x5b69c0=>_0x5b69c0['is']('element','listItem'))),_0x364c4f;}['_getSuggestionBlocks'](_0x3d5ee2){const _0x5d442e=this['editor']['plugins']['get']('LegacyListUtils');let _0x5c5799=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x3d5ee2)['map'](_0x5534d6=>{const _0x19eca3=this['editor']['model']['createPositionAt'](_0x5534d6,0x0);return[..._0x5d442e['getSiblingNodes'](_0x19eca3,'backward'),..._0x5d442e['getSiblingNodes'](_0x19eca3,'forward')];})['flat']();return _0x5c5799=[...new Set(_0x5c5799)],_0x5c5799;}['_getTranslationKeyForListStyle'](_0x506312){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x506312)||'default')['toUpperCase']()+'_LIST_'+_0x506312['toUpperCase']()['replace'](/-/g,'_');}}class gt extends _0xe680e7{['afterInit'](){const _0x216d27=this['editor'];if(!_0x216d27['plugins']['has']('MediaEmbedEditing'))return;const _0x36de41=_0x216d27['plugins']['get']('TrackChangesEditing'),_0x58d52b=_0x216d27['locale'];_0x36de41['enableCommand']('mediaEmbed'),_0x36de41['descriptionFactory']['registerElementLabel']('media',_0x19f8ac=>o(_0x58d52b,'ELEMENT_MEDIA',_0x19f8ac)),_0x216d27['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x48cc7b,{writer:_0x29d8b1,options:_0x133062})=>{if(_0x133062['showSuggestionHighlights'])return _0x29d8b1['createEmptyElement']('div');},'converterPriority':'high'}),_0x216d27['data']['downcastDispatcher']['on']('attribute:url:media',(_0x9f968d,_0x36f174,_0x4c7914)=>{_0x4c7914['options']['showSuggestionHighlights']&&_0x9f968d['stop']();},{'priority':'high'});}}class lt extends _0xe680e7{['afterInit'](){const _0x111eb5=this['editor'];_0x111eb5['plugins']['has']('MentionEditing')&&_0x111eb5['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0xe680e7{['afterInit'](){const _0xe5946d=this['editor'];if(!_0xe5946d['plugins']['has']('MergeFieldsEditing'))return;const _0x2c0d04=_0xe5946d['plugins']['get']('TrackChangesEditing'),_0x17935e=_0xe5946d['locale'];_0x2c0d04['enableCommand']('insertMergeField'),_0x2c0d04['enableCommand']('insertMergeFieldBlock'),_0x2c0d04['enableCommand']('insertMergeFieldImage'),_0x2c0d04['descriptionFactory']['registerElementLabel']('mergeField',_0x12fafc=>o(_0x17935e,'ELEMENT_MERGE_FIELD',_0x12fafc)),_0x2c0d04['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x3050b3=>o(_0x17935e,'ELEMENT_MERGE_FIELD',_0x3050b3)),_0x2c0d04['descriptionFactory']['registerDescriptionCallback'](_0x281af2=>{if('insertion'!=_0x281af2['type']&&'deletion'!=_0x281af2['type'])return;const _0x26eb71=_0x281af2['getContainedElement']();if(null==_0x26eb71)return;const _0x2d529c=_0xe5946d['plugins']['get']('MergeFieldsEditing');let _0x473019;switch(_0x2d529c['getMergeFieldType'](_0x26eb71)){case null:return;case'image':{const _0x651c0a=_0x2d529c['unwrapAffixes'](_0x26eb71['getAttribute']('src'));_0x473019=_0x2d529c['getLabel'](_0x651c0a)||_0x651c0a;break;}default:{const _0x4eda8b=_0x26eb71['getAttribute']('id');_0x473019=_0x2d529c['getLabel'](_0x4eda8b)||_0x4eda8b;break;}}return'insertion'==_0x281af2['type']?{'type':'insertion','content':o(_0x17935e,'*Insert:*\x20%0','\x22'+_0x473019+'\x22\x20'+o(_0x17935e,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x17935e,'*Remove:*\x20%0','\x22'+_0x473019+'\x22\x20'+o(_0x17935e,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0xe680e7{['afterInit'](){const _0x2d2453=this['editor'],_0x391d8a=_0x2d2453['plugins']['get']('TrackChangesEditing');_0x2d2453['plugins']['has']('MultiLevelList')&&(_0x391d8a['enableDefaultAttributesIntegration']('multiLevelList'),_0x391d8a['registerBlockAttribute']('listMarkerStyle'),_0x391d8a['descriptionFactory']['registerDescriptionCallback'](_0x1999ee=>this['handleDescriptions'](_0x1999ee)));}['handleDescriptions'](_0x5d54dd){const _0x27baae=this['editor']['locale'],{data:_0x53c384}=_0x5d54dd,_0x2a415f={'type':'format','content':''};if(_0x53c384&&'listMarkerStyle'==_0x53c384['key']){if(!_0x53c384['oldValue'])return{'type':'format','content':o(_0x27baae,'*Set\x20format:*\x20%0',o(_0x27baae,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x53c384['newValue']+')'};if(!_0x53c384['newValue']){let _0x469406=_0x5d54dd['head'];for(;_0x469406;){if(_0x469406['data']&&'listType'==_0x469406['data']['key']&&_0x469406['data']['newValue'])return _0x2a415f;_0x469406=_0x469406['next'];}return{'type':'format','content':o(_0x27baae,'*Remove\x20format:*\x20%0',o(_0x27baae,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x53c384['oldValue']+')'};}}}}class pt extends _0xe680e7{['afterInit'](){const _0xaabd31=this['editor'];if(!_0xaabd31['plugins']['has']('PageBreakEditing'))return;_0xaabd31['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x2da6c5=_0xaabd31['plugins']['get']('TrackChangesEditing'),_0x349554=_0xaabd31['locale'];_0x2da6c5['descriptionFactory']['registerElementLabel']('pageBreak',_0x1e9b45=>o(_0x349554,'ELEMENT_PAGE_BREAK',_0x1e9b45));}}class kt extends _0xe680e7{['afterInit'](){const _0x3f6b54=this['editor'];if(!_0x3f6b54['plugins']['has']('Paragraph'))return;const _0x522f37=_0x3f6b54['locale'],_0xcc8c8f=_0x3f6b54['plugins']['get']('TrackChangesEditing');_0xcc8c8f['descriptionFactory']['registerElementLabel']('paragraph',_0x4b0914=>o(_0x522f37,'ELEMENT_PARAGRAPH',_0x4b0914)),_0xcc8c8f['enableDefaultAttributesIntegration']('paragraph'),_0xcc8c8f['enableCommand']('insertParagraph'),_0x3f6b54['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x3f6b54),{'priority':'highest'}),_0x3f6b54['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3ba54f,_0x322ad2,_0x1639f1)=>{_0x1639f1['options']['showSuggestionHighlights']&&nr(_0x3f6b54,{'showActiveMarker':!0x1})(_0x3ba54f,_0x322ad2,_0x1639f1);},{'priority':'highest'});const _0x2a397c=_0xcc8c8f['descriptionFactory'];_0x2a397c['registerDescriptionCallback'](_0x2e392b=>{if('insertion'!==_0x2e392b['type'])return;const {start:_0x54749d,end:_0x58dc12}=_0x2e392b['getFirstRange']();if(!_0x54749d['isTouching'](_0x58dc12)||!_0x54749d['nodeAfter'])return;const _0x868ad4=_0x3f6b54['model']['schema'],_0x3704d6=_0x54749d['nodeAfter'];return _0x868ad4['isBlock'](_0x3704d6)&&!_0x868ad4['isLimit'](_0x3704d6)&&_0x868ad4['checkChild'](_0x3704d6,'$text')?{'type':'insertion','content':o(_0x522f37,'*Insert:*\x20%0',_0x2a397c['getItemLabel'](_0x3704d6,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2bbe8f=this['editor'],_0x6e9906=_0x2bbe8f['locale'];_0x2bbe8f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1afc5d=>{if('formatBlock'!=_0x1afc5d['type'])return;const {data:_0x131c99}=_0x1afc5d;return _0x131c99&&'paragraph'==_0x131c99['commandName']?{'type':'format','content':o(_0x6e9906,'*Change\x20to:*\x20%0',o(_0x6e9906,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x1b9927,{showActiveMarker:_0x10ed9b=!0x0}={}){return(_0x29ff3d,_0x472091,_0x4533cc)=>{const _0x23d23e=_0x1b9927['plugins']['get']('TrackChangesEditing'),_0x57d0ca=_0x472091['markerRange']['start'],_0x5f196d=_0x472091['markerRange']['end'],_0x55abfd=_0x1b9927['model']['schema'];if(!_0x57d0ca['isTouching'](_0x5f196d)||!_0x57d0ca['nodeAfter'])return;const _0x4d6892=_0x57d0ca['nodeAfter'];if(_0x55abfd['isBlock'](_0x4d6892)&&!_0x55abfd['isLimit'](_0x4d6892)&&_0x55abfd['checkChild'](_0x4d6892,'$text')){if(!_0x4533cc['consumable']['consume'](_0x472091['markerRange'],_0x29ff3d['name']))return;const {id:_0xd6bf0b,authorId:_0x5601f0}=_0x23d23e['_splitMarkerName'](_0x472091['markerName']),_0xddffd7=_0x4533cc['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0xd6bf0b,'data-author-id':_0x5601f0}),_0x163c58=_0x4533cc['mapper']['toViewPosition'](_0x5f196d);_0x10ed9b&&_0x23d23e['activeMarkers']['includes'](_0x472091['markerName'])&&_0x4533cc['writer']['addClass']('ck-suggestion-marker--active',_0xddffd7),_0x4533cc['writer']['insert'](_0x163c58,_0xddffd7),_0x4533cc['mapper']['bindElementToMarker'](_0xddffd7,_0x472091['markerName']);}};}class wt extends _0xe680e7{['afterInit'](){const _0x25e78e=this['editor'];_0x25e78e['commands']['get']('replaceSource')&&_0x25e78e['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class bt extends _0xe680e7{['afterInit'](){const _0x381564=this['editor'];if(!_0x381564['plugins']['has']('RemoveFormatEditing'))return;_0x381564['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x116067=this['editor'];_0x116067['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1f42de=>{if('formatBlock'!=_0x1f42de['type']&&'formatInline'!=_0x1f42de['type'])return;const {data:_0x29eb88}=_0x1f42de;return _0x29eb88&&'removeFormat'==_0x29eb88['commandName']?{'type':'format','content':o(_0x116067['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0xe680e7{['afterInit'](){const _0x7009db=this['editor'];if(!_0x7009db['plugins']['has']('RestrictedEditingModeEditing'))return;const _0xffec8f=_0x7009db['plugins']['get']('TrackChangesEditing');_0xffec8f['enableCommand']('goToPreviousRestrictedEditingException'),_0xffec8f['enableCommand']('goToNextRestrictedEditingException');const _0x117245=_0x7009db['plugins']['get']('RestrictedEditingModeEditing');_0x117245['enableCommand']('trackChanges'),_0x117245['enableCommand']('acceptSuggestion'),_0x117245['enableCommand']('discardSuggestion'),_0x117245['enableCommand']('acceptAllSuggestions'),_0x117245['enableCommand']('discardAllSuggestions'),_0x117245['enableCommand']('acceptSelectedSuggestions'),_0x117245['enableCommand']('discardSelectedSuggestions');}}class jt extends _0xe680e7{['afterInit'](){const _0x1ce53a=this['editor'];if(!_0x1ce53a['plugins']['has']('ShiftEnter'))return;const _0x3ab11d=_0x1ce53a['plugins']['get']('TrackChangesEditing');_0x3ab11d['enableCommand']('shiftEnter'),_0x1ce53a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x1ce53a),{'priority':'high'}),_0x1ce53a['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x1ce53a),{'priority':'high'}),_0x1ce53a['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x20e386,_0x494de9,_0x3a4cd4)=>{_0x3a4cd4['options']['showSuggestionHighlights']&&je(_0x1ce53a,{'showActiveMarker':!0x1})(_0x20e386,_0x494de9,_0x3a4cd4);}),_0x3ab11d['descriptionFactory']['registerElementLabel']('softBreak',_0x3c0a6f=>o(_0x1ce53a['locale'],'ELEMENT_LINE_BREAK',_0x3c0a6f));}}function je(_0xfcfa71,{showActiveMarker:_0x5e3171=!0x0}={}){return(_0x59e537,_0x7a601e,_0x28cb1a)=>{const _0x182313=_0xfcfa71['plugins']['get']('TrackChangesEditing');if(!_0x28cb1a['consumable']['test'](_0x7a601e['markerRange'],_0x59e537['name']))return;const _0x3c1dc4=_0xfcfa71['model'];for(const _0x30861b of _0x7a601e['markerRange']['getItems']()){if(!_0x30861b['is']('element','softBreak'))continue;const _0x26a16b='deletion'==_0x7a601e['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x55ef04,authorId:_0x186c2d}=_0x182313['_splitMarkerName'](_0x7a601e['markerName']),_0x422394=_0x28cb1a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x26a16b,'data-suggestion':_0x55ef04,'data-author-id':_0x186c2d}),_0x530a0b=_0x28cb1a['mapper']['toViewPosition'](_0x3c1dc4['createPositionBefore'](_0x30861b));_0x5e3171&&_0x182313['activeMarkers']['includes'](_0x7a601e['markerName'])&&_0x28cb1a['writer']['addClass']('ck-suggestion-marker--active',_0x422394),_0x28cb1a['writer']['insert'](_0x530a0b,_0x422394),_0x28cb1a['mapper']['bindElementToMarker'](_0x422394,_0x7a601e['markerName']);}};}class St extends _0xe680e7{['afterInit'](){const _0x553c42=this['editor'],_0x4e41c9=_0x553c42['model'],_0x546ad5=_0x553c42['locale'];if(!_0x553c42['plugins']['has']('StandardEditingModeEditing'))return;const _0x336b35=_0x553c42['plugins']['get']('TrackChangesEditing'),_0x44fc81='restrictedEditingException',_0x437658=_0x553c42['commands']['get'](_0x44fc81);_0x336b35['enableCommand'](_0x44fc81,(_0x49a1f6,_0x26ec3d={})=>{const _0x55e844=_0x4e41c9['document']['selection'];if(_0x55e844['isCollapsed'])return void _0x49a1f6(_0x26ec3d);const _0x1047fc=void 0x0!==_0x26ec3d['forceValue']?_0x26ec3d['forceValue']:!_0x437658['value'];_0x4e41c9['change'](()=>{const _0x15df2d=Array['from'](_0x55e844['getRanges']());for(const _0x5246c2 of _0x15df2d){const _0x230105=_0x1047fc?[_0x5246c2]:io(_0x44fc81,_0x5246c2,_0x4e41c9);for(const _0x311c64 of _0x230105)_0x336b35['markInlineFormat'](_0x311c64,{'commandName':_0x44fc81,'commandParams':[{'forceValue':_0x1047fc}]});}});}),_0x336b35['descriptionFactory']['registerDescriptionCallback'](_0x4c3926=>{if('formatBlock'!=_0x4c3926['type']&&'formatInline'!=_0x4c3926['type'])return;const {data:_0x5b65fa}=_0x4c3926;return _0x5b65fa&&_0x5b65fa['commandName']==_0x44fc81?_0x5b65fa['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x546ad5,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x546ad5,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0xe680e7{['afterInit'](){const _0x230d8c=this['editor'];if(!_0x230d8c['plugins']['has']('Style')||!_0x230d8c['plugins']['has']('DataSchema'))return;const _0x5ba07f=_0x230d8c['plugins']['get']('TrackChangesEditing'),_0x11de4b=_0x230d8c['locale'],_0x960a1b=_0x230d8c['config']['get']('style')||{},_0x2d3725=_0x230d8c['plugins']['get']('GeneralHtmlSupport'),_0x1fc214=_0x230d8c['plugins']['get']('StyleUtils')['normalizeConfig'](_0x230d8c['plugins']['get']('DataSchema'),_0x960a1b['definitions']);_0x5ba07f['enableDefaultAttributesIntegration']('style');const _0x4bfef1=new Set();for(const _0x3c6291 of _0x1fc214['block']){const _0x263795=_0x2d3725['getGhsAttributeNameForElement'](_0x3c6291['element']);_0x4bfef1['add'](_0x263795);}const _0x3fd45b=new Set();for(const _0x38be1a of _0x1fc214['inline']){const _0x28d301=_0x2d3725['getGhsAttributeNameForElement'](_0x38be1a['element']);_0x3fd45b['add'](_0x28d301);for(const _0x117c85 of _0x38be1a['ghsAttributes'])_0x3fd45b['add'](_0x117c85);}for(const _0x2e34ab of _0x4bfef1)_0x5ba07f['registerBlockAttribute'](_0x2e34ab),_0x5ba07f['descriptionFactory']['registerAttributeLabel'](_0x2e34ab,o(_0x11de4b,'FORMAT_STYLE'));for(const _0x1da6a5 of _0x3fd45b)_0x5ba07f['registerInlineAttribute'](_0x1da6a5),_0x5ba07f['descriptionFactory']['registerAttributeLabel'](_0x1da6a5,o(_0x11de4b,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x398c77=this['editor'],_0x22d220=_0x398c77['locale'];_0x398c77['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5550a1=>{if('formatBlock'!=_0x5550a1['type']&&'formatInline'!=_0x5550a1['type'])return;const {data:_0x5a208d}=_0x5550a1;return _0x5a208d&&'style'===_0x5a208d['commandName']?_0x5a208d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x22d220,'*Set\x20format:*\x20%0',_0x5a208d['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x22d220,'*Remove\x20format:*\x20%0',_0x5a208d['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class At extends _0xe680e7{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x4a8c40){super(_0x4a8c40),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x39847f=this['editor'],_0x22740a=_0x39847f['model']['document']['selection'];if(!_0x39847f['plugins']['has']('TableEditing'))return;const _0xc68a2f=_0x39847f['locale'],_0x4ef008=_0x39847f['plugins']['get']('TrackChangesEditing'),_0x4a99e5=_0x39847f['plugins']['get']('TableUtils');_0x4ef008['descriptionFactory']['registerElementLabel']('table',_0x49bc03=>o(_0xc68a2f,'ELEMENT_TABLE',_0x49bc03)),this['_setupColumnsRowsFixing'](),_0x4ef008['enableCommand']('insertTable'),_0x4ef008['enableCommand']('selectTableRow'),_0x4ef008['enableCommand']('selectTableColumn');for(const _0xc70671 of['insertTableRowAbove','insertTableRowBelow']){const _0x3cde53=_0x39847f['commands']['get'](_0xc70671);_0x4ef008['enableCommand'](_0xc70671,_0x12b569=>{_0x39847f['model']['change'](_0x33ea77=>{_0x12b569();const _0x45623b='above'===_0x3cde53['order'],_0x13b079=_0x4a99e5['getSelectionAffectedTableCells'](_0x22740a),_0x5a5d9b=_0x4a99e5['getRowIndexes'](_0x13b079),_0x439c44=_0x45623b?_0x5a5d9b['first']-0x1:_0x5a5d9b['last']+0x1,_0x642feb=_0x13b079[0x0]['findAncestor']('table'),_0x34b0e0=_0x4a99e5['createTableWalker'](_0x642feb,{'startRow':_0x439c44,'endRow':_0x439c44}),_0x135cc6=Array['from'](_0x34b0e0)['map'](_0x3c8065=>_0x33ea77['createRangeOn'](_0x3c8065['cell']));_0x4ef008['markMultiRangeInsertion'](_0x135cc6,'tableRow');});});}for(const _0x2a9166 of['insertTableColumnLeft','insertTableColumnRight']){const _0x569b1d=_0x39847f['commands']['get'](_0x2a9166);_0x4ef008['enableCommand'](_0x2a9166,_0x1b4251=>{_0x39847f['model']['change'](_0x49eaa8=>{_0x1b4251();const _0x58051c='left'===_0x569b1d['order'],_0x5314a8=_0x4a99e5['getSelectionAffectedTableCells'](_0x22740a),_0x10acda=_0x4a99e5['getColumnIndexes'](_0x5314a8),_0x405441=_0x58051c?_0x10acda['first']-0x1:_0x10acda['last']+0x1,_0x4b1295=_0x5314a8[0x0]['findAncestor']('table'),_0x2e542a=_0x4a99e5['createTableWalker'](_0x4b1295,{'startRow':0x0,'column':_0x405441,'includeAllSlots':!0x1}),_0x375da3=Array['from'](_0x2e542a)['map'](_0x2822df=>_0x49eaa8['createRangeOn'](_0x2822df['cell']));_0x4ef008['markMultiRangeInsertion'](_0x375da3,'tableColumn');});});}for(const _0x4cfa69 of['removeTableRow','removeTableColumn']){const _0x2021fb=_0x4cfa69['substr'](0xb),_0x1771b2=_0x2021fb['toLowerCase'](),_0x4edc17=_0x1771b2['substr'](0x0,0x3)+'span',_0x3fc5b1='table'+_0x2021fb,_0x160700='min'+_0x2021fb,_0x22a2a1='max'+_0x2021fb;_0x4ef008['enableCommand'](_0x4cfa69,()=>{_0x39847f['model']['change'](_0xc3f91c=>{const _0x51913b=_0x4a99e5['getSelectionAffectedTableCells'](_0x22740a),_0x46e07c=_0x51913b[0x0]['findAncestor']('table');let _0x2cd3dc;if('removeTableRow'==_0x4cfa69){const _0x3acad2=_0x4a99e5['getRowIndexes'](_0x51913b);_0x2cd3dc={'startRow':_0x3acad2['first'],'endRow':_0x3acad2['last'],'includeAllSlots':!0x0};}else{const _0x3a2f19=_0x4a99e5['getColumnIndexes'](_0x51913b);_0x2cd3dc={'startColumn':_0x3a2f19['first'],'endColumn':_0x3a2f19['last'],'includeAllSlots':!0x0};}const _0x1ec090=_0x4a99e5['createTableWalker'](_0x46e07c,_0x2cd3dc),_0x18bf5e=Array['from'](_0x1ec090)['map'](({cell:_0x21f61f})=>_0x21f61f),_0x1c3a9b=Ne(_0x18bf5e['filter'](_0x333732=>_0x333732['hasAttribute'](_0x4edc17))),_0x51f2b4=Ne(_0x18bf5e['filter'](_0x2ad1e9=>!_0x2ad1e9['hasAttribute'](_0x4edc17)))['map'](_0x29e2d3=>_0xc3f91c['createRangeOn'](_0x29e2d3)),_0x39a509=_0x4ef008['markMultiRangeDeletion'](_0x51f2b4,_0x3fc5b1);if(_0x39a509&&('tableRow'==_0x39a509['subType']||'tableColumn'==_0x39a509['subType'])){const _0x3d72e3=this['_getSuggestionCoords'](_0x39a509);for(const _0x3cbebf of _0x1c3a9b){const _0x153b14=_0xc3f91c['createRangeOn'](_0x3cbebf),_0x588f0a=_0x4a99e5['getCellLocation'](_0x3cbebf),_0x4c17c2=_0x3cbebf['getAttribute'](_0x4edc17)-0x1,_0xd50eed=_0x3d72e3[_0x160700],_0x37f9e5=_0x3d72e3[_0x22a2a1];_0xd50eed<=_0x588f0a[_0x1771b2]&&_0x588f0a[_0x1771b2]+_0x4c17c2<=_0x37f9e5&&_0x39a509['addRange'](_0x153b14);}}});});}function _0x2be704(_0x56c4be){const _0x52f1fc=Array['from'](_0x22740a['getRanges']())['map'](_0x58fa39=>_0x50a820['fromRange'](_0x58fa39));_0x39847f['model']['change'](_0x348919=>{const _0x5889eb=_0x348919['batch'];_0x56c4be=_0x56c4be['filter'](_0x1dd072=>'$graveyard'!=_0x1dd072['root']['rootName']),_0x348919['setSelection'](_0x56c4be),_0x39847f['commands']['get']('removeTableRow')['refresh'](),_0x39847f['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x39847f['model']['enqueueChange'](()=>{_0x39847f['model']['enqueueChange'](_0x5889eb,_0x21c146=>{const _0x11865c=_0x52f1fc['filter'](_0x302d4f=>'$graveyard'!=_0x302d4f['root']['rootName']);_0x11865c['length']>0x0&&_0x21c146['setSelection'](_0x11865c);for(const _0x26d658 of _0x52f1fc)_0x26d658['detach']();});});});}function _0xd5e549(_0x11e030){_0x39847f['model']['change'](_0x24604e=>{const _0x536f11=Array['from'](_0x22740a['getRanges']())['map'](_0x53ebc8=>_0x50a820['fromRange'](_0x53ebc8)),_0x27d021=[];for(const _0x1ad346 of _0x11e030)for(const _0xfa9b61 of _0x1ad346['getItems']({'shallow':!0x0}))_0x27d021['push'](_0xfa9b61);for(const _0x3fd2e2 of _0x27d021)'$graveyard'!=_0x3fd2e2['root']['rootName']&&(_0x24604e['setSelection'](_0x24604e['createPositionAt'](_0x3fd2e2,0x0)),_0x39847f['commands']['get']('removeTableColumn')['refresh'](),_0x39847f['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x552081=_0x536f11['filter'](_0x1adea0=>'$graveyard'!=_0x1adea0['root']['rootName']);_0x552081['length']>0x0&&_0x24604e['setSelection'](_0x552081);for(const _0x545550 of _0x536f11)_0x545550['detach']();});}function _0x4f1f0b(_0xa456d9,_0x334104){return _0x334104['every'](_0x1edce6=>_0xa456d9['some'](_0x136d72=>_0x136d72['end']['isEqual'](_0x1edce6['start'])||_0x1edce6['end']['isEqual'](_0x136d72['start'])));}function _0xb64456(_0x157e4e,_0x4b4251){return!_0x157e4e['some'](_0x563d78=>_0x4b4251['some'](_0x2030fd=>_0x563d78['isIntersecting'](_0x2030fd)))&&_0x157e4e['some'](_0x32f4d8=>_0x4b4251['some'](_0x357728=>_0x32f4d8['end']['isTouching'](_0x357728['start'])));}_0x39847f['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xc40828,_0x2471bc,_0xffc236)=>{if(!_0xffc236['options']['showSuggestionHighlights'])return;const _0x2e6c50=_0x2471bc['item'];if(!_0x2e6c50||!_0x2e6c50['is']('element','tableCell'))return;const _0x857239=_0xffc236['mapper']['toViewElement'](_0x2e6c50);if(_0x857239){const {id:_0x3ca090,authorId:_0x252ccf}=_0x4ef008['_splitMarkerName'](_0x2471bc['markerName']);_0x19f8a1(_0x857239,_0xffc236['writer'],(_0x3ac66d,_0x147499,_0x587904)=>{_0x587904['addClass'](_0x56ffe6(_0x147499['classes']),_0x3ac66d),_0x587904['setAttribute']('data-suggestion-id',_0x3ca090,_0x3ac66d),_0x587904['setAttribute']('data-author-id',_0x252ccf,_0x3ac66d);},(_0x119ded,_0x53b8ea,_0x4967d8)=>{_0x4967d8['removeClass'](_0x56ffe6(_0x53b8ea['classes']),_0x119ded),_0x4967d8['removeAttribute']('data-suggestion-id',_0x119ded),_0x4967d8['removeAttribute']('data-author-id',_0x119ded);});}},{'priority':'highest'}),_0x4ef008['descriptionFactory']['registerDescriptionCallback'](_0x241057=>{if('insertion'!=_0x241057['type']&&'deletion'!=_0x241057['type'])return;const _0x38155d=_0x241057['getContainedElement']();if(null!=_0x38155d&&_0x38155d['is']('element','table')){if('insertion'==_0x241057['type']){const _0x371924=_0x241057['getItems']()['filter'](_0xfb16aa=>_0xfb16aa['is']('$textProxy'))['map'](_0x2ee5de=>_0x2ee5de['data']);if(_0x371924['length'])return{'type':'insertion','content':o(_0xc68a2f,'*Insert:*\x20%0',o(_0xc68a2f,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x371924['join']('\x20')+'\x22'))};}if('deletion'==_0x241057['type']){const _0x1cce2d=_0x241057['getItems']()['filter'](_0x2ad953=>_0x2ad953['is']('$textProxy'))['map'](_0x3a6152=>_0x3a6152['data']);if(_0x1cce2d['length'])return{'type':'deletion','content':o(_0xc68a2f,'*Remove:*\x20%0',o(_0xc68a2f,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1cce2d['join']('\x20')+'\x22'))};}}}),_0x4ef008['descriptionFactory']['registerDescriptionCallback'](_0x9ea50f=>{if('tableRow'==_0x9ea50f['subType']){const _0x3494e9=_0x9ea50f['getItems']()['filter'](_0x39be80=>_0x39be80['is']('$textProxy'))['map'](_0x43505f=>_0x43505f['data']),_0x548efa=this['_getSuggestionCoords'](_0x9ea50f),_0x2f9fa6=_0x548efa['maxRow']-_0x548efa['minRow']+0x1;if('insertion'==_0x9ea50f['type'])return _0x3494e9['length']?{'type':'insertion','content':o(_0xc68a2f,'*Insert:*\x20%0',o(_0xc68a2f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2f9fa6,'\x22'+_0x3494e9['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0xc68a2f,'*Insert:*\x20%0',o(_0xc68a2f,'ELEMENT_TABLE_ROW',_0x2f9fa6))};if('deletion'==_0x9ea50f['type'])return _0x3494e9['length']?{'type':'deletion','content':o(_0xc68a2f,'*Remove:*\x20%0',o(_0xc68a2f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2f9fa6,'\x22'+_0x3494e9['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0xc68a2f,'*Remove:*\x20%0',o(_0xc68a2f,'ELEMENT_TABLE_ROW',_0x2f9fa6))};}if('tableColumn'==_0x9ea50f['subType']){const _0x25ff96=_0x9ea50f['getItems']()['filter'](_0x2b759c=>_0x2b759c['is']('$textProxy'))['map'](_0x4e8ec8=>_0x4e8ec8['data']),_0x2d2dd8=this['_getSuggestionCoords'](_0x9ea50f),_0x15f4c0=_0x2d2dd8['maxColumn']-_0x2d2dd8['minColumn']+0x1;if('insertion'==_0x9ea50f['type'])return _0x25ff96['length']?{'type':'insertion','content':o(_0xc68a2f,'*Insert:*\x20%0',o(_0xc68a2f,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x15f4c0,'\x22'+_0x25ff96['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0xc68a2f,'*Insert:*\x20%0',o(_0xc68a2f,'ELEMENT_TABLE_COLUMN',_0x15f4c0))};if('deletion'==_0x9ea50f['type'])return _0x25ff96['length']?{'type':'deletion','content':o(_0xc68a2f,'*Remove:*\x20%0',o(_0xc68a2f,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x15f4c0,'\x22'+_0x25ff96['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0xc68a2f,'*Remove:*\x20%0',o(_0xc68a2f,'ELEMENT_TABLE_COLUMN',_0x15f4c0))};}}),_0x4ef008['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2be704),_0x4ef008['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2be704),_0x4ef008['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0xd5e549),_0x4ef008['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0xd5e549),_0x4ef008['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x4f1f0b),_0x4ef008['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x4f1f0b),_0x4ef008['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0xb64456),_0x4ef008['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0xb64456);}['_acceptFormatSuggestionCallbackFactory'](){const _0x102469=this['editor'],_0x5ccb38=_0x102469['model']['document']['selection'];return(_0x59d89d,_0x9aacc6)=>{_0x102469['model']['change'](_0x4d9cf2=>{const {commandName:_0x25c449,commandParams:_0x471a5a}=_0x9aacc6;let _0x31f39c=_0x59d89d[0x0]['end']['nodeBefore'];_0x471a5a&&_0x471a5a[0x0]&&!0x1===_0x471a5a[0x0]['forceValue']&&(_0x31f39c=_0x59d89d[0x0]['start']['nodeAfter']);const _0x3b3bd7=_0x4d9cf2['createRangeIn'](_0x31f39c);if('$graveyard'==_0x3b3bd7['root']['rootName'])return;const _0x5ea11b=Array['from'](_0x5ccb38['getRanges']())['map'](_0x546375=>_0x50a820['fromRange'](_0x546375));_0x4d9cf2['setSelection'](_0x3b3bd7),_0x102469['commands']['get'](_0x25c449)['refresh'](),_0x471a5a['push']({'forceDefaultExecution':!0x0}),_0x102469['execute'](_0x25c449,..._0x471a5a);const _0x8e98c1=_0x5ea11b['filter'](_0x9f68af=>'$graveyard'!=_0x9f68af['root']['rootName']);_0x8e98c1['length']>0x0&&_0x4d9cf2['setSelection'](_0x8e98c1);for(const _0x30a23b of _0x5ea11b)_0x30a23b['detach']();});};}['_getCoordsForCells'](_0x3e0972){const _0x451a98=this['editor']['plugins']['get']('TableUtils');let _0x4d0fab=Number['MAX_SAFE_INTEGER'],_0x3c9cdb=Number['MIN_SAFE_INTEGER'],_0x3b4312=Number['MAX_SAFE_INTEGER'],_0x5367bb=Number['MIN_SAFE_INTEGER'];for(const _0x470f9d of _0x3e0972){if('$graveyard'==_0x470f9d['root']['rootName'])continue;const {row:_0x57bc64,column:_0x4df2c4}=_0x451a98['getCellLocation'](_0x470f9d),_0x417340=_0x470f9d['hasAttribute']('rowspan')?_0x470f9d['getAttribute']('rowspan')-0x1:0x0,_0x4a8051=_0x470f9d['hasAttribute']('colspan')?_0x470f9d['getAttribute']('colspan')-0x1:0x0;_0x4d0fab=_0x57bc64<_0x4d0fab?_0x57bc64:_0x4d0fab,_0x3c9cdb=_0x57bc64+_0x417340>_0x3c9cdb?_0x57bc64+_0x417340:_0x3c9cdb,_0x3b4312=_0x4df2c4<_0x3b4312?_0x4df2c4:_0x3b4312,_0x5367bb=_0x4df2c4+_0x4a8051>_0x5367bb?_0x4df2c4+_0x4a8051:_0x5367bb;}return{'minRow':_0x4d0fab,'maxRow':_0x3c9cdb,'minColumn':_0x3b4312,'maxColumn':_0x5367bb};}['_setupColumnsRowsFixing'](){const _0x36a664=this['editor'],_0x1ed90d=_0x36a664['plugins']['get']('TrackChangesEditing'),_0x1b31a3=_0x36a664['plugins']['get']('TableUtils');_0x36a664['model']['document']['on']('change:data',()=>{const _0x459756=Array['from'](_0x36a664['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x24630a,data:_0x24c5a6}of _0x459756){const {group:_0x594303,id:_0x508261,subType:_0x3f1e45}=_0x1ed90d['_splitMarkerName'](_0x24630a);if('suggestion'!=_0x594303)continue;if(null!=_0x24c5a6['oldRange'])continue;const _0x12348d=_0x1ed90d['getSuggestion'](_0x508261);this['_tablePostFixingSubtypes']['includes'](_0x3f1e45)&&this['_tableSuggestions']['add'](_0x12348d);}},{'priority':'low'});const _0x2d92a0=(_0x1aefa3,_0x1f0c6f)=>{let _0x19c4b0=!0x1;const _0x469686=_0x1f0c6f['createRangeOn'](_0x1aefa3),_0x117d8e=_0x1aefa3['findAncestor']('table'),_0x20322f=_0x1b31a3['getCellLocation'](_0x1aefa3);for(const _0x3df7aa of this['_tableSuggestions']){const _0x1ccb6c=_0x3df7aa['subType'],_0x50f73b=_0x1ccb6c['startsWith']('tablePaste'),_0x2ed4c0=_0x1ccb6c['substr'](_0x50f73b?0xa:0x5),_0x1c6e18=_0x2ed4c0['toLowerCase'](),_0x55b381=_0x1c6e18['substr'](0x0,0x3)+'span',_0x752dce='min'+_0x2ed4c0,_0x5a015d='max'+_0x2ed4c0;if(!_0x3df7aa['isInContent'])continue;if(_0x117d8e!=_0x3df7aa['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x3df7aa['isIntersectingWithRange'](_0x469686))continue;const _0x2bf96a=_0x1aefa3['hasAttribute'](_0x55b381)?_0x1aefa3['getAttribute'](_0x55b381)-0x1:0x0,_0x1c78e0=this['_getSuggestionCoords'](_0x3df7aa),_0x2916d4=_0x1c78e0[_0x752dce],_0x3de77d=_0x1c78e0[_0x5a015d];_0x2916d4<=_0x20322f[_0x1c6e18]&&_0x20322f[_0x1c6e18]+_0x2bf96a<=_0x3de77d&&(_0x3df7aa['addRange'](_0x469686),_0x19c4b0=!0x0);}return _0x19c4b0;};_0x36a664['model']['document']['registerPostFixer'](_0x24f96c=>{let _0x315128=!0x1;for(const _0x520990 of _0x36a664['model']['document']['differ']['getChanges']())if('insert'==_0x520990['type']){if('tableRow'==_0x520990['name']){for(const _0x3c6ed9 of _0x520990['position']['nodeAfter']['getChildren']())_0x315128=_0x315128||_0x2d92a0(_0x3c6ed9,_0x24f96c);}else'tableCell'==_0x520990['name']&&(_0x315128=_0x315128||_0x2d92a0(_0x520990['position']['nodeAfter'],_0x24f96c));}return _0x315128;});}['_getSuggestionCoords'](_0x4ac943){return this['_getCoordsForCells'](_0x4ac943['getRanges']()['map'](_0x181f51=>_0x181f51['start']['nodeAfter']));}}function Ne(_0x2935bb){return Array['from'](new Set(_0x2935bb)['values']());}class _t extends _0xe680e7{static get['requires'](){return[At];}['afterInit'](){const _0x4ab222=this['editor'],_0xff6a58=_0x4ab222['model']['document']['selection'],_0x563718=_0x4ab222['locale'];if(!_0x4ab222['plugins']['has']('TableEditing'))return;const _0x3a9ed2=_0x4ab222['plugins']['get']('TrackChangesEditing'),_0x4f8a25=_0x4ab222['plugins']['get']('TableUtils'),_0x12973e=_0x4ab222['plugins']['get'](At);_0x12973e['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x3a9ed2['enableCommand']('mergeTableCells',()=>{const _0x25ad1d=_0x4f8a25['getSelectionAffectedTableCells'](_0x4ab222['model']['document']['selection']);_0x4ab222['model']['change'](()=>{_0x3a9ed2['markMultiRangeBlockFormat'](_0x25ad1d,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x4ab222['commands']['get']('mergeTableCells')['on']('execute',(_0x521ae0,_0x1df27b)=>{_0x4ab222['commands']['get']('trackChanges')['value']&&(_0x1df27b['length']>0x0&&_0x1df27b[_0x1df27b['length']-0x1]&&_0x1df27b[_0x1df27b['length']-0x1]['forceDefaultExecution']||_0x3a9ed2['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x521ae0['stop']());},{'priority':'highest'});for(const _0x1e8d62 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x431d50=_0x4ab222['commands']['get'](_0x1e8d62);_0x3a9ed2['enableCommand'](_0x1e8d62,()=>{const _0x1916e8=_0x4ab222['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5db6cf=>_0x5db6cf['is']('element','tableCell')),_0x11ed1c=_0x431d50['value'];_0x4ab222['model']['change'](()=>{_0x3a9ed2['markMultiRangeBlockFormat']([_0x1916e8,_0x11ed1c],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x46459a of['splitTableCellVertically','splitTableCellHorizontally']){const _0x9d5b66=_0x4ab222['commands']['get'](_0x46459a);_0x3a9ed2['enableCommand'](_0x46459a,()=>{const _0x5ab25c=_0x4f8a25['getSelectionAffectedTableCells'](_0x4ab222['model']['document']['selection'])[0x0],_0x440894=_0x5ab25c['findAncestor']('table'),{column:_0x4fadb1,row:_0x192248}=_0x4f8a25['getCellLocation'](_0x5ab25c);let _0x5b3d6d=[];if('horizontally'==_0x9d5b66['direction']){const _0x378f33=_0x4f8a25['createTableWalker'](_0x440894,{'startRow':_0x192248,'endRow':_0x192248,'includeAllSlots':!0x0});_0x5b3d6d=Array['from'](_0x378f33)['map'](_0x412045=>_0x412045['cell']);}else{const _0x37b3e0=_0x4f8a25['createTableWalker'](_0x440894,{'column':_0x4fadb1,'includeAllSlots':!0x0});_0x5b3d6d=Array['from'](_0x37b3e0)['map'](_0x19f695=>_0x19f695['cell']);}_0x4ab222['model']['change'](_0x3c7eb0=>{_0x3a9ed2['markBlockFormat'](_0x3c7eb0['createRangeOn'](_0x5ab25c),{'commandName':_0x46459a,'commandParams':[]},_0x5b3d6d,_0x46459a);});});}_0x3a9ed2['descriptionFactory']['registerDescriptionCallback'](_0x434655=>{if('formatBlock'!=_0x434655['type']&&'formatInline'!=_0x434655['type'])return;const {data:_0xde1f15}=_0x434655;return _0xde1f15&&'mergeTableCells'==_0xde1f15['commandName']?{'type':'format','content':o(_0x563718,'*Merge\x20cells*')}:void 0x0;}),_0x3a9ed2['descriptionFactory']['registerDescriptionCallback'](_0x3f35cd=>{if('formatBlock'!=_0x3f35cd['type']&&'formatInline'!=_0x3f35cd['type'])return;const {data:_0x4638be}=_0x3f35cd;return _0x4638be?'splitTableCellVertically'==_0x4638be['commandName']?{'type':'format','content':o(_0x563718,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x4638be['commandName']?{'type':'format','content':o(_0x563718,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x20e259=_0x12973e['_acceptFormatSuggestionCallbackFactory']();for(const _0x3c5fea of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x3a9ed2['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3c5fea,'accept',_0x20e259);for(const _0x4cb095 of['splitTableCellVertically','splitTableCellHorizontally'])_0x3a9ed2['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4cb095,'accept',_0x20e259);_0x3a9ed2['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x33e5c8=>{_0x4ab222['model']['change'](_0x4ecd47=>{const _0x2d12fd=Array['from'](_0xff6a58['getRanges']())['map'](_0x57c21e=>_0x50a820['fromRange'](_0x57c21e));_0x4ecd47['setSelection'](_0x33e5c8),_0x4ab222['commands']['get']('mergeTableCells')['refresh'](),_0x4ab222['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x5814b4=_0x2d12fd['filter'](_0x12df1f=>'$graveyard'!=_0x12df1f['root']['rootName']);_0x5814b4['length']>0x0&&_0x4ecd47['setSelection'](_0x5814b4);for(const _0x41605d of _0x2d12fd)_0x41605d['detach']();});});for(const _0x5ce7e6 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x259df4=_0x4ab222['commands']['get'](_0x5ce7e6);_0x259df4['on']('set:isEnabled',(_0x1a4cbf,_0x26017f,_0x2388b0)=>{if(_0x2388b0){const _0x25b1d7=_0x4ab222['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1f423a=>_0x1f423a['is']('element','tableCell'));this['_areMergableCells'](_0x259df4['value'],_0x25b1d7)||(_0x1a4cbf['return']=!0x1,_0x1a4cbf['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x32cc54=this['editor']['commands']['get']('mergeTableCells'),_0x1c4cd0=this['editor']['plugins']['get']('TableUtils');if(!_0x32cc54['isEnabled'])return!0x1;const _0x37e014=_0x1c4cd0['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3ce2aa of _0x37e014)for(const _0x47606a of _0x37e014)if(_0x3ce2aa!=_0x47606a&&!this['_areMergableCells'](_0x3ce2aa,_0x47606a))return!0x1;return!0x0;}['_areMergableCells'](_0x15341d,_0xb281dd){const _0x1f8334=this['editor']['plugins']['get']('TrackChangesEditing'),_0x51caf8=this['editor']['model']['createRangeOn'](_0x15341d),_0x1586f9=this['editor']['model']['createRangeOn'](_0xb281dd),_0x2aa8df=new Set(),_0x2b0e1d=new Set();for(const _0x19a0fb of _0x1f8334['getSuggestions']())if(('insertion'==_0x19a0fb['type']||'deletion'==_0x19a0fb['type']||'mergeTableCells'==_0x19a0fb['subType'])&&_0x19a0fb['isInContent']){for(const _0x120e65 of _0x19a0fb['getRanges']())_0x120e65['containsRange'](_0x51caf8,!0x0)&&_0x2aa8df['add'](_0x19a0fb['type']+':'+_0x19a0fb['author']['id']),_0x120e65['containsRange'](_0x1586f9,!0x0)&&_0x2b0e1d['add'](_0x19a0fb['type']+':'+_0x19a0fb['author']['id']);}if(_0x2aa8df['size']!=_0x2b0e1d['size'])return!0x1;for(const _0x177310 of _0x2aa8df)if(!_0x2b0e1d['has'](_0x177310))return!0x1;return!0x0;}}class Ct extends _0xe680e7{static get['requires'](){return[At];}['afterInit'](){const _0x88f19e=this['editor'];if(!_0x88f19e['plugins']['has']('TableEditing'))return;const _0x23350e=_0x88f19e['locale'],_0x488ef3=_0x88f19e['plugins']['get']('TrackChangesEditing');_0x488ef3['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x488ef3['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x488ef3['registerBlockAttribute']('headingRows'),_0x488ef3['registerBlockAttribute']('headingColumns'),_0x488ef3['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x23350e,'FORMAT_HEADER_ROW')),_0x488ef3['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x23350e,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1b832e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3da940=this['editor']['plugins']['get']('TableUtils'),_0x5ec273=this['editor']['plugins']['get'](At)['_acceptFormatSuggestionCallbackFactory']();function _0x187568({showActiveMarker:_0x330f36=!0x0,setDataAttribute:_0x48c3ab=!0x0}={}){return(_0x21d1fc,_0x1e1216,_0x2eace6)=>{const {type:_0x4622f2,id:_0x407563}=_0x1b832e['_splitMarkerName'](_0x1e1216['markerName']),_0xaed262=_0x1b832e['getSuggestion'](_0x407563),_0x4b1f13=_0xaed262['data'];if('formatBlock'!=_0xaed262['type']||!_0x4b1f13||'setTableColumnHeader'!=_0x4b1f13['commandName'])return;if(_0x1e1216['item'])return void _0x21d1fc['stop']();if(!_0x2eace6['consumable']['consume'](_0x1e1216['markerRange'],_0x21d1fc['name']))return;const _0x9aabb7=_0x1e1216['markerRange']['start']['nodeAfter'],_0x5c4b03=_0x1e1216['markerRange']['end']['nodeBefore'],_0xe7847f=_0x9aabb7['parent']['parent'],{column:_0x5aee93}=_0x3da940['getCellLocation'](_0x9aabb7),{column:_0x8d20bc}=_0x3da940['getCellLocation'](_0x5c4b03);for(let _0x2306b3=_0x5aee93;_0x2306b3<=_0x8d20bc;_0x2306b3++){const _0x3db5b7=_0x3da940['createTableWalker'](_0xe7847f,{'column':_0x2306b3,'includeAllSlots':!0x1});for(const _0x159757 of _0x3db5b7){const _0x1d0fe7=_0x159757['cell'],_0x58c3e6=_0x2eace6['mapper']['toViewElement'](_0x1d0fe7);_0x2eace6['writer']['addClass']('ck-suggestion-marker-'+_0x4622f2,_0x58c3e6),_0x48c3ab&&_0x2eace6['writer']['setAttribute']('data-suggestion',_0x407563,_0x58c3e6),_0x2eace6['mapper']['bindElementToMarker'](_0x58c3e6,_0x1e1216['markerName']),_0x330f36&&(_0x1b832e['activeMarkers']['includes'](_0x1e1216['markerName'])?_0x2eace6['writer']['addClass']('ck-suggestion-marker--active',_0x58c3e6):_0x2eace6['writer']['removeClass']('ck-suggestion-marker--active',_0x58c3e6));}}};}_0x1b832e['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x5ec273),_0x1b832e['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x5ec273),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x187568(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1996fe,_0x193d38,_0x5d6a51)=>{_0x5d6a51['options']['showSuggestionHighlights']&&_0x187568({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1996fe,_0x193d38,_0x5d6a51);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x3932b3,_0x3003ec,_0x24d9df)=>{const {type:_0x399e05,id:_0x1a60fe}=_0x1b832e['_splitMarkerName'](_0x3003ec['markerName']),_0x47240e=_0x1b832e['getSuggestion'](_0x1a60fe),_0x3cc856=_0x47240e['data'];if('formatBlock'!=_0x47240e['type']||!_0x3cc856||'setTableColumnHeader'!=_0x3cc856['commandName'])return;const _0x4132bd=_0x24d9df['mapper']['markerNameToElements'](_0x3003ec['markerName']);if(_0x4132bd){for(const _0x265f73 of _0x4132bd)_0x24d9df['writer']['removeClass']('ck-suggestion-marker-'+_0x399e05,_0x265f73),_0x24d9df['writer']['removeClass']('ck-suggestion-marker--active',_0x265f73),_0x24d9df['writer']['removeAttribute']('data-suggestion',_0x265f73),_0x24d9df['mapper']['unbindElementFromMarkerName'](_0x265f73,_0x3003ec['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x45877d=this['editor'],_0x2e26d9=_0x45877d['locale'];function _0x67d314(_0x5e4450){return{'type':'format','content':o(_0x2e26d9,'*Format:*\x20%0',_0x5e4450)};}_0x45877d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1862a4=>{if('formatBlock'!=_0x1862a4['type'])return;const {data:_0x2fa30d}=_0x1862a4;if(_0x2fa30d){if('setTableRowHeader'==_0x2fa30d['commandName']){const _0xa72275=_0x2fa30d['commandParams'][0x0]['forceValue'];return _0x67d314(o(_0x2e26d9,_0xa72275?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x2fa30d['commandName']){const _0x337de6=_0x2fa30d['commandParams'][0x0]['forceValue'];return _0x67d314(o(_0x2e26d9,_0x337de6?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class vt extends _0xe680e7{['afterInit'](){const _0xaf0e6d=this['editor'],_0x39b58c=_0xaf0e6d['locale'],_0x27dc21=_0xaf0e6d['plugins']['get']('TrackChangesEditing');function _0x3f9b01(_0x7c6c66){return{'type':'format','content':''+o(_0x39b58c,'*Set\x20table\x20type:*\x20%0',_0x7c6c66)};}_0xaf0e6d['plugins']['has']('TableLayout')&&(_0x27dc21['enableCommand']('insertTableLayout'),_0x27dc21['enableDefaultAttributesIntegration']('tableType'),_0x27dc21['registerBlockAttribute']('tableType'),_0x27dc21['descriptionFactory']['registerElementLabel'](_0x20ffd2=>_0x20ffd2['is']('element','table')&&'layout'===_0x20ffd2['getAttribute']('tableType'),_0x29b10c=>o(_0x39b58c,'ELEMENT_LAYOUT_TABLE',_0x29b10c)),_0x27dc21['descriptionFactory']['registerDescriptionCallback'](_0x2fed92=>{const {data:_0x7c91cf}=_0x2fed92;if(_0x7c91cf&&'tableType'==_0x7c91cf['key'])switch(_0x7c91cf['newValue']){case'layout':return _0x3f9b01(o(_0x39b58c,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x3f9b01(o(_0x39b58c,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=/* #__PURE__ -- @preserve */
25
- Object['fromEntries'](Be['map'](_0x2cb7e4=>[_0x2cb7e4,null]));class Nt extends _0xe680e7{static get['requires'](){return[At];}['afterInit'](){const _0x399fd9=this['editor'];if(!_0x399fd9['plugins']['has']('TableClipboard'))return;const _0x381c65=_0x399fd9['plugins']['get']('TrackChangesEditing'),_0x16ac32=_0x399fd9['plugins']['get']('TableUtils'),_0x4e6ce0=_0x399fd9['plugins']['get'](At),_0x1ab2ca=_0x399fd9['plugins']['get']('TableClipboard'),_0x48d619=_0x399fd9['plugins']['get']('TableSelection'),_0x3a7051=_0x399fd9['plugins']['get'](_0x54ac1d);_0x4e6ce0['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x399fd9['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x399fd9['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0xde992d=null,_0x17e669=!0x1;_0x3a7051['on']('contentInsertion',(_0x17bc2e,_0x172288)=>{_0x17e669='paste'===_0x172288['method'];}),_0x399fd9['model']['on']('insertContent',(_0x140f64,_0x57d01d)=>{if(!_0x17e669&&null===_0x48d619['getSelectedTableCells']())return;const [_0x26ea58,_0x5c7312]=_0x57d01d,_0xd94e82=_0x57d01d[_0x57d01d['length']-0x1];_0xd94e82&&_0xd94e82['forceDefaultExecution']||_0x381c65['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x4efcc7,_0xeea8b5,_0x19ccf9,_0x2ea4fb,_0x275751){if(_0xeea8b5&&!_0xeea8b5['is']('documentSelection'))return!0x1;const _0xd6e1a0=_0x275751['getTableIfOnlyTableInContent'](_0x4efcc7,_0x19ccf9);if(!_0xd6e1a0||!Ue(_0xd6e1a0,void 0x0,_0x2ea4fb))return!0x1;const _0x21d8a5=_0x2ea4fb['getSelectionAffectedTableCells'](_0x19ccf9['document']['selection']);if(!_0x21d8a5['length'])return!0x1;const _0x4f8f4c=_0x21d8a5[0x0]['findAncestor']('table'),_0x13845d=_0x2ea4fb['getRowIndexes'](_0x21d8a5),_0x3f8acc=_0x2ea4fb['getColumnIndexes'](_0x21d8a5),_0x38b7d2={'startRow':_0x13845d['first'],'endRow':_0x13845d['last'],'startColumn':_0x3f8acc['first'],'endColumn':_0x3f8acc['last']};return 0x1==_0x21d8a5['length']&&(_0x38b7d2['endRow']+=_0x2ea4fb['getRows'](_0xd6e1a0)-0x1,_0x38b7d2['endColumn']+=_0x2ea4fb['getColumns'](_0xd6e1a0)-0x1),Ue(_0x4f8f4c,_0x38b7d2,_0x2ea4fb);}(_0x26ea58,_0x5c7312,_0x399fd9['model'],_0x16ac32,_0x1ab2ca)&&(_0x140f64['stop'](),_0xde992d={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x399fd9['model']['change'](()=>{_0x399fd9['model']['insertContent'](_0x57d01d[0x0],_0x57d01d[0x1],_0x57d01d[0x2],{'forceDefaultExecution':!0x0});const _0x369a9b=_0x29bcf7(),{rowInsertionRanges:_0x418380,columnInsertionRanges:_0x2f20c4,insertionRanges:_0x50ac4f,deletionRanges:_0x4e802c,cells:_0x2b2680}=_0xde992d;_0x418380['length']&&_0x381c65['markMultiRangeInsertion'](_0x418380,'tablePasteRow',{'tablePasteChainId':_0x369a9b}),_0x2f20c4['length']&&_0x381c65['markMultiRangeInsertion'](_0x2f20c4,'tablePasteColumn',{'tablePasteChainId':_0x369a9b}),_0x50ac4f['length']&&(_0x381c65['markMultiRangeInsertion'](_0x50ac4f,'tablePaste',{'tablePasteChainId':_0x369a9b,'skipNestingCheck':!0x0}),_0x50ac4f['forEach'](_0x549cdb=>_0x549cdb['detach']?.())),_0x4e802c['length']&&(_0x381c65['markMultiRangeDeletion'](_0x4e802c,'tablePaste',{'tablePasteChainId':_0x369a9b,'skipNestingCheck':!0x0}),_0x4e802c['forEach'](_0x522db6=>_0x522db6['detach']?.()));const _0x1d9ce8=_0x381c65['markMultiRangeBlockFormat'](_0x2b2680['map'](({element:_0x3ed0fa})=>_0x3ed0fa),{'formatGroupId':_0x29bcf7()},[],'tablePasteCell',{'tablePasteChainId':_0x369a9b});if(_0x1d9ce8){const _0xc7e26c=_0x1d9ce8['getMarkers'](),_0x4655f5=[];for(const {element:_0x36dddf,attributes:_0x17eb9e}of _0x2b2680){if(!_0x17eb9e)continue;const _0x5cf0c7=_0x399fd9['model']['createRangeOn'](_0x36dddf),_0x5ad757=_0xc7e26c['find'](_0x18304a=>_0x18304a['getRange']()['isEqual'](_0x5cf0c7));_0x5ad757&&_0x4655f5['push']([_0x5ad757['name'],_0x17eb9e]);}_0x4655f5['length']&&_0x1d9ce8['setAttribute']('markerAttributes',Object['fromEntries'](_0x4655f5));}_0xde992d=null;}));},{'priority':_0x3771e3['high']+0xa}),_0x3a7051['on']('contentInsertion',()=>{_0x17e669=!0x1;},{'priority':'lowest'}),_0x399fd9['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0xb37942,_0x498c2d)=>{const [_0x31095b,_0x3c51a0,,_0x5d9d21]=_0x498c2d;if(!_0xde992d)return;_0xb37942['stop']();const _0x236b19=_0x31095b['cell'],_0x576187=_0x3c51a0,_0x1d7297=Oe(_0x236b19),_0x3a6110=Oe(_0x576187);_0xb37942['return']=_0x236b19;let _0x11e64f=null,_0x1161c1=null;if(_0x3a6110||_0x1d7297){if(_0x1d7297&&!_0x3a6110){_0x5d9d21['remove'](_0x236b19['getChild'](0x0));for(const _0x3eda1b of Array['from'](_0x576187['getChildren']()))_0x5d9d21['insert'](_0x3eda1b,_0x236b19,'end');const _0xc1af1f=_0xde992d['rowInsertionIndexes']['includes'](_0x31095b['row']),_0x3baf11=_0xde992d['columnInsertionIndexes']['includes'](_0x31095b['column']);_0xc1af1f||_0x3baf11||(_0x11e64f=_0x50a820['fromRange'](_0x5d9d21['createRangeIn'](_0x236b19)));}else _0x3a6110&&!_0x1d7297&&(_0x1161c1=_0x5d9d21['createRangeIn'](_0x236b19));}else{const _0x4d563c=_0x5d9d21['createElement']('tableCellSuggestion'),_0x3983c0=_0x5d9d21['createElement']('tableCellSuggestion');_0x5d9d21['wrap'](_0x5d9d21['createRangeIn'](_0x236b19),_0x3983c0),_0x5d9d21['insert'](_0x4d563c,_0x236b19,0x0);for(const _0x479449 of Array['from'](_0x576187['getChildren']()))_0x5d9d21['insert'](_0x479449,_0x4d563c,'end');_0x11e64f=_0x50a820['fromRange'](_0x5d9d21['createRangeOn'](_0x4d563c)),_0x1161c1=_0x50a820['fromRange'](_0x5d9d21['createRangeOn'](_0x3983c0));}const _0x5b6632=Array['from'](_0x576187['getAttributes']())['filter'](([_0x315d26])=>Be['includes'](_0x315d26));_0xde992d['cells']['push']({'element':_0x236b19,'attributes':_0x5b6632['length']?Object['fromEntries'](_0x5b6632):null}),_0x11e64f&&_0xde992d['insertionRanges']['push'](_0x11e64f),_0x1161c1&&_0xde992d['deletionRanges']['push'](_0x1161c1);},{'priority':'high'}),_0x16ac32['on']('insertColumns',(_0x468b77,_0x29c423)=>{const [_0x23ce56,_0x55a94e={}]=_0x29c423;if(!_0xde992d)return;const _0x58838b=_0x55a94e['at']||0x0,_0x4726ff=_0x55a94e['columns']||0x1;_0xde992d['columnInsertionIndexes']=new Array(_0x4726ff)['fill'](_0x58838b)['map']((_0x288d5f,_0x2c9d4d)=>_0x288d5f+_0x2c9d4d);for(const {cell:_0x19795e}of _0x16ac32['createTableWalker'](_0x23ce56,{'startColumn':_0x58838b,'endColumn':_0x58838b+_0x4726ff-0x1}))_0xde992d['columnInsertionRanges']['push'](_0x399fd9['model']['createRangeOn'](_0x19795e));},{'priority':'low'}),_0x16ac32['on']('insertRows',(_0x599dd7,_0x509d39)=>{const [_0x52c8b3,_0x59d5f3={}]=_0x509d39;if(!_0xde992d)return;const _0x2536a4=_0x59d5f3['at']||0x0,_0x58ea1a=_0x59d5f3['rows']||0x1;_0xde992d['rowInsertionIndexes']=new Array(_0x58ea1a)['fill'](_0x2536a4)['map']((_0x474c7f,_0x29296f)=>_0x474c7f+_0x29296f);for(const {cell:_0x368319}of _0x16ac32['createTableWalker'](_0x52c8b3,{'startRow':_0x2536a4,'endRow':_0x2536a4+_0x58ea1a-0x1}))_0xde992d['rowInsertionRanges']['push'](_0x399fd9['model']['createRangeOn'](_0x368319));},{'priority':'low'}),_0x381c65['descriptionFactory']['registerDescriptionCallback'](_0x2f5aa0=>{if(_0x2f5aa0['subType']&&_0x2f5aa0['subType']['startsWith']('tablePaste'))return _0x2f5aa0['previous']?{}:{'type':'insertion','content':o(_0x399fd9['locale'],'*Replace\x20table\x20cells*')};});const _0x3e9dc1=()=>!0x1;for(const _0x56d67b of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x381c65['_suggestionFactory']['registerCustomCallback']('insertion',_0x56d67b,'join',_0x3e9dc1),_0x381c65['_suggestionFactory']['registerCustomCallback']('deletion',_0x56d67b,'join',_0x3e9dc1),_0x381c65['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x56d67b,'join',_0x3e9dc1);_0x381c65['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x3e9dc1),_0x381c65['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x29e29e,_0x13a0bb,_0x479a30)=>{const _0x41561f=_0x29e29e['map'](_0x258dbf=>_0x258dbf['getContainedElement']())['filter'](_0x51438c=>_0x51438c),_0x3eb426=new Map(_0x41561f['map'](_0x3b0ca6=>[_0x3b0ca6,null]));if(_0xde992d){for(const {element:_0x12354e,attributes:_0x48e084}of _0xde992d['cells'])_0x48e084&&_0x3eb426['set'](_0x12354e,_0x48e084);}else{if(_0x479a30&&_0x479a30['markerAttributes'])for(const [_0x37b468,_0xf4fcdc]of Object['entries'](_0x479a30['markerAttributes'])){const _0x1bc0db=_0x399fd9['model']['markers']['get'](_0x37b468),_0x3bfec2=_0x1bc0db?_0x1bc0db['getRange']()['getContainedElement']():null;_0x3bfec2&&_0x3eb426['set'](_0x3bfec2,_0xf4fcdc);}}_0x399fd9['model']['change'](_0x3e8055=>{for(const [_0x156029,_0x3ef01]of _0x3eb426)_0x3e8055['setAttributes']({...xe,..._0x3ef01},_0x156029);});});const _0x1410a8=(_0xdbf074,_0x1c16d2)=>{_0x381c65['_suggestionFactory']['registerCustomCallback'](_0xdbf074,'tablePaste',_0x1c16d2,(_0x1e7065,_0x2cada5,_0x41d9ac)=>{_0x399fd9['model']['change'](_0x2ad872=>{const _0x4283b5=[];for(const _0x2c53f7 of _0x1e7065){const _0x216465=_0x2c53f7['start']['nodeAfter'];_0x216465['is']('element','tableCellSuggestion')&&_0x4283b5['push'](_0x216465);}_0x381c65['_suggestionFactory']['getSuggestionCallback'](_0xdbf074,null,_0x1c16d2)(_0x1e7065,_0x2cada5,_0x41d9ac);for(const _0x2b825b of _0x4283b5)'$graveyard'!=_0x2b825b['root']['rootName']&&_0x2ad872['unwrap'](_0x2b825b);});});};_0x1410a8('insertion','accept'),_0x1410a8('insertion','discard'),_0x1410a8('deletion','accept'),_0x1410a8('deletion','discard'),_0x381c65['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x3d77f1=>{const _0x3c1ce7=_0x3d77f1['map'](_0x1adb7d=>_0x1adb7d['getContainedElement']()),_0x2681e0=_0x3c1ce7[0x0]['findAncestor']('table'),{minRow:_0x2ec15b,maxRow:_0x3f35b1}=_0x4e6ce0['_getCoordsForCells'](_0x3c1ce7);_0x16ac32['removeRows'](_0x2681e0,{'at':_0x2ec15b,'rows':_0x3f35b1-_0x2ec15b+0x1});}),_0x381c65['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x1b5eee=>{const _0x3583d1=_0x1b5eee['map'](_0x28111b=>_0x28111b['getContainedElement']()),_0x22555d=_0x3583d1[0x0]['findAncestor']('table'),{minColumn:_0x3286b7,maxColumn:_0x5d014b}=_0x4e6ce0['_getCoordsForCells'](_0x3583d1);_0x16ac32['removeColumns'](_0x22555d,{'at':_0x3286b7,'columns':_0x5d014b-_0x3286b7+0x1});});const _0x246a5f=(_0x11d857,_0x80627f)=>{if(!_0x80627f['subType']||!_0x80627f['subType']['startsWith']('tablePaste'))return;const _0x4096fe=_0x80627f['attributes']['tablePasteChainId'],_0x17de45=_0x381c65['getSuggestions']()['filter'](_0x391021=>_0x391021['isInContent']&&_0x391021['attributes']&&_0x391021['attributes']['tablePasteChainId']==_0x4096fe);_0x17de45['length']&&_0x80627f['getAllAdjacentSuggestions']()['length']!=_0x17de45['length']&&_0x17de45['reduce']((_0x16ce7a,_0x3b0f9c)=>(_0x16ce7a['next']=_0x3b0f9c,_0x3b0f9c['previous']=_0x16ce7a,_0x3b0f9c));};function _0x270748(_0x4da822,_0x47d841=!0x0){const {id:_0x37b0ed,authorId:_0x3724f0}=_0x381c65['_splitMarkerName'](_0x4da822['markerName']),_0x53d909=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x156711=_0x381c65['activeMarkers']['includes'](_0x4da822['markerName']);return _0x156711&&_0x53d909['push']('ck-suggestion-marker--active'),{'classes':_0x53d909,'attributes':{'data-suggestion':_0x37b0ed,'data-author-id':_0x3724f0},'priority':_0x156711&&_0x47d841?0xbc2:0xbb8};}_0x381c65['on']('suggestionLoaded',_0x246a5f,{'priority':'high'}),_0x381c65['on']('suggestionUnloaded',_0x246a5f,{'priority':'high'}),_0x399fd9['model']['document']['registerPostFixer'](()=>{let _0x3b9c09=!0x1;const _0x2d5201=Array['from'](_0x399fd9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5b03e0,data:_0x57e600}of _0x2d5201){const {group:_0x1e8cd5,type:_0x144f82,id:_0x37b839}=_0x381c65['_splitMarkerName'](_0x5b03e0);if('suggestion'!=_0x1e8cd5||'deletion'!=_0x144f82||_0x57e600['oldRange'])continue;if(!_0x381c65['hasSuggestion'](_0x37b839))continue;const _0x1cb2ad=_0x381c65['getSuggestion'](_0x37b839)['getRanges'](),_0x4cbe23=_0x399fd9['plugins']['get']('Users')['me'];for(const _0x3812d5 of _0x381c65['getSuggestions']()){if(!_0x3812d5['isInContent']||_0x3812d5['author']!=_0x4cbe23)continue;if('formatBlock'!=_0x3812d5['type']||'tablePasteCell'!=_0x3812d5['subType'])continue;if(_0x3812d5['getRanges']()['every'](_0x39c3da=>_0x1cb2ad['some'](_0x2541d7=>_0x2541d7['containsRange'](_0x39c3da,!0x0)))){for(const _0x5c3a90 of _0x3812d5['getAllAdjacentSuggestions']())_0x5c3a90['isInContent']&&(_0x5c3a90['discard'](),_0x3b9c09=!0x0);}}}return _0x3b9c09;}),_0x399fd9['model']['document']['registerPostFixer'](_0x1a96a9=>{const _0x527b82=_0x399fd9['commands']['get']('redo');if(!_0x527b82||!_0x527b82['_createdBatches']['has'](_0x1a96a9['batch']))return!0x1;let _0x3aff9e=!0x1;const _0x5976f4=_0x399fd9['plugins']['get']('Users')['me'],_0x4c5d1f=_0x399fd9['model']['document']['differ']['getChanges'](),_0x3a318d=Array['from'](_0x399fd9['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x34cceb,data:_0x5832f0})=>{const {group:_0x5a084e,subType:_0x36ca11,authorId:_0xa0f8b6}=_0x381c65['_splitMarkerName'](_0x34cceb);return'suggestion'==_0x5a084e&&'tablePaste'==_0x36ca11&&_0xa0f8b6==_0x5976f4['id']&&!_0x5832f0['oldRange'];});for(const _0x189899 of _0x4c5d1f){if('insert'!=_0x189899['type']||'tableCellSuggestion'!=_0x189899['name']||0x1!=_0x189899['length'])continue;const _0x54fb49=_0x1a96a9['createRange'](_0x189899['position'],_0x189899['position']['getShiftedBy'](0x1));if(!_0x3a318d['find'](({data:_0x862f10})=>_0x862f10['newRange']['isEqual'](_0x54fb49))){for(const {name:_0x568307,data:_0x43e1d9}of _0x3a318d)if(_0x54fb49['containsRange'](_0x43e1d9['newRange'])){_0x1a96a9['updateMarker'](_0x568307,{'range':_0x54fb49}),_0x3aff9e=!0x0;break;}}}return _0x3aff9e;}),_0x399fd9['model']['document']['registerPostFixer'](_0x284574=>{let _0x293ec1=!0x1;const _0x261134=_0x399fd9['plugins']['get']('Users')['me'],_0x318c83=_0x381c65['getSuggestions']()['filter'](_0x128712=>_0x128712['isInContent']&&_0x128712['author']==_0x261134),_0x6d7301=new Set(),_0x25559f=new Set();for(const _0x3fd1be of _0x318c83)if('tablePaste'==_0x3fd1be['subType'])for(const _0xb973e3 of _0x3fd1be['getMarkers']()){const _0x357214=_0xb973e3['getRange']()['getContainedElement']();if(_0x357214){if(_0x357214['is']('element','tableCellSuggestion')&&Oe(_0x357214)){_0x3fd1be['removeMarker'](_0xb973e3['name']),_0x6d7301['add'](_0x357214),_0x293ec1=!0x0;const _0x5c0e08=_0x357214['nextSibling'],_0x8808e6=_0x357214['previousSibling'],_0x24d8e5=_0x5c0e08&&_0x5c0e08['is']('element','tableCellSuggestion'),_0x39b556=_0x8808e6&&_0x8808e6['is']('element','tableCellSuggestion');_0x24d8e5&&!_0x6d7301['has'](_0x5c0e08)&&_0x25559f['add'](_0x5c0e08),_0x39b556&&!_0x6d7301['has'](_0x8808e6)&&_0x25559f['add'](_0x8808e6);}else _0x357214['is']('element','paragraph')&&_0x357214['isEmpty']&&(_0x3fd1be['removeMarker'](_0xb973e3['name']),_0x293ec1=!0x0);}}else{if('tablePasteCell'==_0x3fd1be['subType']){if(!_0x3fd1be['attributes']||!_0x3fd1be['attributes']['tablePasteChainId'])continue;const _0x523dc9=_0x3fd1be['attributes']['markerAttributes'];if(_0x523dc9&&Object['keys'](_0x523dc9)['length'])continue;const _0x127271=_0x3fd1be['attributes']['tablePasteChainId'];let _0xba6f3c=!0x0,_0x55ce62=!0x0;for(const _0x1306e3 of _0x318c83)if(_0x1306e3['subType']&&_0x1306e3['subType']['startsWith']('tablePaste')){if(!_0x1306e3['attributes']['tablePasteChainId']){_0x55ce62=!0x1;break;}if(_0x1306e3['id']!=_0x3fd1be['id']&&_0x1306e3['attributes']['tablePasteChainId']==_0x127271){_0xba6f3c=!0x1;break;}}_0x55ce62&&_0xba6f3c&&(_0x3fd1be['removeMarkers'](),_0x293ec1=!0x0);}}for(const _0x2f839c of _0x6d7301)_0x284574['remove'](_0x2f839c);for(const _0x23215d of _0x25559f)_0x284574['unwrap'](_0x23215d);return _0x293ec1;}),_0x399fd9['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0xf0519e=>_0x270748(_0xf0519e),'converterPriority':'high'}),_0x399fd9['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x45e0d3,_0x48e73d)=>_0x48e73d['options']['showSuggestionHighlights']?_0x270748(_0x45e0d3,!0x1):null,'converterPriority':'high'});const _0x46138f=_0x399fd9['editing']['view'];this['listenTo'](_0x46138f['document'],'clipboardOutput',(_0x110938,_0x54538c)=>{const _0x1cc607=[];for(const _0xd0f235 of _0x46138f['createRangeIn'](_0x54538c['content'])['getItems']())_0xd0f235['is']('element','suggestion-td')&&_0x1cc607['push'](_0xd0f235);_0x46138f['change'](_0x5dc1b7=>{for(const _0x29e361 of _0x1cc607)_0x5dc1b7['move'](_0x5dc1b7['createRangeIn'](_0x29e361),_0x5dc1b7['createPositionBefore'](_0x29e361)),_0x5dc1b7['remove'](_0x29e361);});});}}function Oe(_0x4489cb){if(_0x4489cb['isEmpty'])return!0x0;const _0x5a9ddd=_0x4489cb['getChild'](0x0);return _0x5a9ddd['is']('element','paragraph')&&_0x5a9ddd['isEmpty'];}function Ue(_0x2d04c1,_0x5976f7={},_0x1a9b0b){for(const {isAnchor:_0xd6a472,cellHeight:_0x475554,cellWidth:_0x324871}of _0x1a9b0b['createTableWalker'](_0x2d04c1,{'includeAllSlots':!0x0,..._0x5976f7}))if(!_0xd6a472||0x1!=_0x475554||0x1!=_0x324871)return!0x1;return!0x0;}class Dt extends _0xe680e7{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x49df4a=this['editor']['plugins']['get']('TrackChangesEditing');_0x49df4a['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x49df4a['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x49df4a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x49df4a['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x49df4a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x49df4a['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x4ef497,_0x328612){const _0xf37426=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2f5873=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x11546f=_0x328612['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x2391a8=_0x2f5873['getColumnGroupElement'](_0x11546f);let _0x58f4d8=_0x2391a8?_0x2f5873['getTableColumnsWidths'](_0x2391a8):null,_0x4f1ea7=_0x11546f['getAttribute']('tableWidth')||null;const _0x5a3897=_0x328612['tableWidth']||_0x4f1ea7,_0xac0095=_0x328612['columnWidths']||_0x58f4d8,_0x17b1d3=this['editor']['plugins']['get']('Users')['me'];for(const _0x39f2d1 of _0xf37426['getSuggestions']()){const _0x5eb293=_0x39f2d1['getContainedElement']();if('resizeTable'===_0x39f2d1['subType']&&_0x5eb293===_0x11546f){_0x39f2d1['author']!==_0x17b1d3&&_0x39f2d1['discard']();const _0x88d312=_0x39f2d1['data']['commandParams'];_0x4f1ea7=_0x88d312[0x0]['tableWidth'],_0x58f4d8=_0x88d312[0x0]['columnWidths'];break;}}_0x4ef497({'table':_0x11546f,'tableWidth':_0x5a3897,'columnWidths':_0xac0095}),_0xf37426['markBlockFormat'](_0x11546f,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x4f1ea7,'columnWidths':_0x58f4d8}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x141db2){if('formatBlock'!=_0x141db2['type']&&'formatInline'!=_0x141db2['type'])return;const {data:_0x1a8833}=_0x141db2;if(_0x1a8833&&'resizeTable'===_0x1a8833['formatGroupId']){const _0x2819af='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x2819af)};}}}class $t extends _0xe680e7{['afterInit'](){const _0x1f1773=this['editor'];_0x1f1773['plugins']['has']('Template')&&_0x1f1773['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0xe680e7{['afterInit'](){const _0x261d2b=this['editor'];if(!_0x261d2b['commands']['get']('insertTableOfContents'))return;_0x261d2b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x5f43c4=_0x261d2b['plugins']['get']('TrackChangesEditing'),_0x5a8256=_0x261d2b['locale'];_0x5f43c4['descriptionFactory']['registerElementLabel']('tableOfContents',_0x40a6de=>o(_0x5a8256,'ELEMENT_TABLE_OF_CONTENTS',_0x40a6de));}}class Bt extends _0xe680e7{['afterInit'](){const _0x409232=this['editor'];if(!_0x409232['plugins']['has']('Title'))return;const _0x53c8a4=_0x409232['plugins']['get']('TrackChangesEditing');_0x53c8a4['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x409232['locale'],'ELEMENT_TITLE')),_0x409232['model']['document']['registerPostFixer'](_0x247be4=>{let _0x2017f6=!0x1;const _0x6beff6=Array['from'](_0x409232['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5bc84f,data:_0x2649d7}of _0x6beff6){const {group:_0x3176e0}=_0x53c8a4['_splitMarkerName'](_0x5bc84f);if('suggestion'!==_0x3176e0||!_0x2649d7['newRange'])continue;const _0x3a2ed9=_0x2649d7['newRange'],_0x5ace1a=_0x3a2ed9['end']['nodeBefore'];if(!_0x5ace1a||!_0x5ace1a['is']('element','title-content'))continue;if(!_0x3a2ed9['start']['isTouching'](_0x3a2ed9['end']))continue;const _0x4d8023=_0x409232['model']['schema']['getNearestSelectionRange'](_0x3a2ed9['end'],'forward');if(_0x4d8023&&_0x4d8023['isCollapsed']){const _0x4bd66c=_0x247be4['createRange'](_0x3a2ed9['start'],_0x4d8023['start']);_0x4bd66c['isEqual'](_0x3a2ed9)||(_0x247be4['updateMarker'](_0x5bc84f,{'range':_0x4bd66c}),_0x2017f6=!0x0);}_0x2017f6||(_0x247be4['removeMarker'](_0x5bc84f),_0x2017f6=!0x0);}return _0x2017f6;});}}class Tt extends _0xe680e7{['afterInit'](){const _0x48f6d8=this['editor'],_0x53dbfc=_0x48f6d8['plugins']['get']('TrackChangesEditing');_0x48f6d8['plugins']['has']('Uploadcare')&&(_0x53dbfc['enableCommand']('uploadcare'),_0x48f6d8['plugins']['has']('UploadcareImageEdit')&&(_0x53dbfc['enableCommand']('uploadcareImageEdit'),_0x53dbfc['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x53dbfc['registerBlockAttribute']('uploadcareImageId'),_0x53dbfc['descriptionFactory']['registerDescriptionCallback'](_0x51bf6a=>{if('attribute'!=_0x51bf6a['type'])return;const {data:_0x139a25}=_0x51bf6a;return _0x139a25&&'uploadcareImageId'==_0x139a25['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0xe680e7{['afterInit'](){const _0x3b5bd2=this['editor'],_0x3b44e5=_0x3b5bd2['plugins']['get']('TrackChangesEditing');_0x3b5bd2['plugins']['has']('UndoEditing')&&(_0x3b44e5['enableCommand']('undo'),_0x3b44e5['enableCommand']('redo'));}}class Ot extends _0xe680e7{static get['requires'](){return[At];}['afterInit'](){const _0x1136e5=this['editor'];if(!_0x1136e5['plugins']['has']('TableCaptionEditing'))return;_0x1136e5['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0xe680e7{['tableProperties'];['tableCellProperties'];constructor(_0x230a59){super(_0x230a59),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x4768b4=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x435a23 of this['tableProperties'])_0x4768b4['enableCommand'](_0x435a23,(_0x1bf8db,_0x4c5f99)=>{const _0x3e5060=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x435a23,[_0x3e5060],this['tableProperties'],'tableProperties',_0x1bf8db,_0x4c5f99);});_0x4768b4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x4768b4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4768b4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2ef06d,_0x4e073a)=>this['handleDiscardAction'](this['tableProperties'],_0x2ef06d,_0x4e073a)),_0x4768b4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x541192 of this['tableCellProperties'])_0x4768b4['enableCommand'](_0x541192,(_0x630ebe,_0x2af5d6)=>{const _0x2a2140=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x541192,_0x2a2140,this['tableCellProperties'],'tableCellProperties',_0x630ebe,_0x2af5d6);});_0x4768b4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x4768b4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4768b4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x180555,_0x3b1afa)=>this['handleDiscardAction'](this['tableCellProperties'],_0x180555,_0x3b1afa)),_0x4768b4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x4768b4['descriptionFactory']['registerDescriptionCallback'](_0x125728=>this['handleSuggestionDescription'](_0x125728)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0xc93b67,_0x411457,_0x492e97,_0x3a4025,_0x21ba0b,_0x39681e){const _0x17a916=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x39681e['batch'],()=>{for(const _0x25f05c of _0x411457){if(this['_getSuggestion'](_0x25f05c,_0x3a4025))_0x21ba0b(_0x39681e);else{const _0x577601={};for(const _0x14ca05 of _0x492e97){const _0x2a072c=_0x25f05c['getAttribute'](_0x14ca05);void 0x0!==_0x2a072c&&(_0x577601[_0x14ca05]=_0x2a072c);}_0x21ba0b(_0x39681e),_0x17a916['markBlockFormat'](_0x25f05c,{'commandParams':[_0x577601]},[],_0x3a4025);}}});}['handleDiscardAction'](_0x5963e4,_0x15eebe,_0x52280e){const _0x30fd3d=_0x15eebe[0x0]['start']['nodeAfter'],_0x381bf5=_0x52280e['commandParams'][0x0];this['editor']['model']['change'](_0xbc51ce=>{for(const _0x5d7957 of _0x5963e4)void 0x0!==_0x381bf5[_0x5d7957]?_0xbc51ce['setAttribute'](_0x5d7957,_0x381bf5[_0x5d7957],_0x30fd3d):_0xbc51ce['removeAttribute'](_0x5d7957,_0x30fd3d);});}['handleSuggestionDescription'](_0x38bfb8){if(_0x38bfb8['data'])switch(_0x38bfb8['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'](_0x53a008,_0x3b1404){const _0x400e29=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3fc975 of _0x400e29['getSuggestions']({'skipNotAttached':!0x0})){const _0x42302e=_0x3fc975['getContainedElement']();if(_0x3fc975['subType']===_0x3b1404&&_0x42302e===_0x53a008)return _0x3fc975;}return null;}['_registerTablePropertiesAttributes'](){const _0x36eb1c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5d72dd=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x4ab10c of _0x5d72dd){const _0x416519=_0x4ab10c['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x36eb1c['registerBlockAttribute'](_0x4ab10c),_0x36eb1c['descriptionFactory']['registerAttributeLabel'](_0x4ab10c,o(this['editor']['locale'],'FORMAT_'+_0x416519));}}}class Rt extends _0xe680e7{['afterInit'](){const _0x658812=this['editor'];if(!_0x658812['plugins']['has']('LineHeight'))return;const _0x56c953=_0x658812['plugins']['get']('TrackChangesEditing'),_0xf2eb2c=_0x658812['locale'];_0x56c953['enableDefaultAttributesIntegration']('lineHeight'),_0x56c953['registerBlockAttribute']('lineHeight'),_0x56c953['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0xf2eb2c,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0xe680e7{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x9e4cfc,_0x3db646,O,E,R,U,V,G,F,L,J,K,z,W,Q,X,Y,Z,tt,it,nt,et,ot,st,rt,at,ct,ft,ht,mt,ut,H,Rt,q,gt,lt,dt,pt,kt,wt,bt,yt,jt,St,It,At,_t,Ct,vt,Ot,Nt,Dt,Mt,Et,$t,Bt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4cb177){super(_0x4cb177),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x27a2e9,_0x201d27,_0x2f77f0,_0x1b8a4c)=>{this['_model']['change'](()=>{for(const _0x5cd0ba of[..._0x1b8a4c,..._0x2f77f0])this['_model']['markers']['has'](_0x5cd0ba)&&_0x4cb177['editing']['reconvertMarker'](_0x5cd0ba);});}),this['descriptionFactory']=new x(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Vt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x4cb177['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x4cb177['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x4cb177['config']['get']('trackChanges.trackFormatChanges'),_0x4cb177['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x4cb177['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new N(_0x4cb177,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x1d3f09=this['editor'],_0xca381=(_0x7ceb4c,_0x1df4b0)=>{if('attribute'!=_0x7ceb4c)return'ck-suggestion-marker-'+_0x7ceb4c;const _0x10bc64=_0x1df4b0['split']('|')[0x0];return this['_isBlockAttribute'](_0x10bc64)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x1d3f09['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x55331c=>{const {id:_0x43e0ad,authorId:_0x54749a,type:_0x4634b9,subType:_0x67cb9}=this['_splitMarkerName'](_0x55331c['markerName']),_0x5d5cb8=['ck-suggestion-marker',_0xca381(_0x4634b9,_0x67cb9)];let _0x3c83dc=0xbb8;return this['activeMarkers']['includes'](_0x55331c['markerName'])&&(_0x5d5cb8['push']('ck-suggestion-marker--active'),_0x3c83dc=0xbc2),'deletion'==_0x4634b9&&(_0x3c83dc+=0x5),{'classes':_0x5d5cb8,'attributes':{'data-suggestion':_0x43e0ad,'data-author-id':_0x54749a},'priority':_0x3c83dc};}}),_0x1d3f09['conversion']['for']('dataDowncast')['add'](_0x2e9299=>{_0x2e9299['on']('addMarker:suggestion',(_0x11e014,_0x479385,_0x516721)=>{if(!_0x516721['options']['showSuggestionHighlights'])return;const _0x2d2982=_0x479385['item'];if(!_0x2d2982)return;const _0x647f25=_0x516721['mapper']['toViewElement'](_0x2d2982);_0x1d3f09['model']['schema']['isObject'](_0x2d2982)&&_0x647f25&&!_0x647f25['getCustomProperty']('widget')&&_0x647f25['is']('containerElement')&&_0x2a9ddb(_0x647f25,_0x516721['writer']);},{'priority':'high'});}),_0x1d3f09['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x34a7cd,_0x2c4f24)=>{if(!_0x2c4f24['options']['showSuggestionHighlights'])return null;const {id:_0x14d02b,authorId:_0x120cbf,type:_0x13de7e,subType:_0x496970}=this['_splitMarkerName'](_0x34a7cd['markerName']);return{'classes':['ck-suggestion-marker',_0xca381(_0x13de7e,_0x496970)],'priority':0xbb8,'attributes':{'data-suggestion':_0x14d02b,'data-author-id':_0x120cbf}};}});const _0x3036e6=({showActiveMarkers:_0x4f0a2d=!0x0,isAttributeSuggestion:_0x551746=!0x1}={})=>(_0x2d3df8,_0xf96be4,_0x48013c)=>{if(!_0xf96be4['item'])return;const {id:_0x193ad0,authorId:_0x3f4180}=this['_splitMarkerName'](_0xf96be4['markerName']);if(_0x551746){const _0x412e57=this['_suggestions']['get'](_0x193ad0),_0x1488d8=this['_getAttributeKey'](_0x412e57);if(!this['_isBlockAttribute'](_0x1488d8))return;}if(_0xf96be4['item']['is']('selection'))return void _0x48013c['consumable']['consume'](_0xf96be4['item'],_0x2d3df8['name']);const _0x13a923=_0x48013c['mapper']['toViewElement'](_0xf96be4['item']);if(_0xf96be4['item']['is']('element')&&_0x1d3f09['model']['schema']['isBlock'](_0xf96be4['item'])&&!_0x13a923['getCustomProperty']('addHighlight')){_0x48013c['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x13a923),_0x48013c['writer']['setAttribute']('data-suggestion',_0x193ad0,_0x13a923),_0x48013c['writer']['setAttribute']('data-author-id',_0x3f4180,_0x13a923),_0x48013c['mapper']['bindElementToMarker'](_0x13a923,_0xf96be4['markerName']),_0x4f0a2d&&(this['activeMarkers']['includes'](_0xf96be4['markerName'])?_0x48013c['writer']['addClass']('ck-suggestion-marker--active',_0x13a923):_0x48013c['writer']['removeClass']('ck-suggestion-marker--active',_0x13a923));for(const _0x3a9000 of _0x1d3f09['model']['createRangeIn'](_0xf96be4['item'])['getItems']())_0x48013c['consumable']['consume'](_0x3a9000,_0x2d3df8['name']);_0x48013c['consumable']['consume'](_0xf96be4['item'],_0x2d3df8['name']);}};_0x1d3f09['conversion']['for']('dataDowncast')['add'](_0x24bc1b=>{_0x24bc1b['on']('addMarker:suggestion:formatBlock',(_0x29fb82,_0x3745fa,_0x476e1d)=>{_0x476e1d['options']['showSuggestionHighlights']&&_0x3036e6({'showActiveMarkers':!0x1})(_0x29fb82,_0x3745fa,_0x476e1d);},{'priority':'highest'});}),_0x1d3f09['conversion']['for']('dataDowncast')['add'](_0x1f911c=>{_0x1f911c['on']('addMarker:suggestion:attribute',(_0x174f65,_0xd881ca,_0x51035b)=>{_0x51035b['options']['showSuggestionHighlights']&&_0x3036e6({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x174f65,_0xd881ca,_0x51035b);},{'priority':'highest'});}),_0x1d3f09['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x527c95,_0x22cc73)=>{if(_0x22cc73['options']['showSuggestionHighlights']){const {id:_0x370a80,authorId:_0x5b6e16}=this['_splitMarkerName'](_0x527c95);return _0x527c95['includes'](':split')||_0x527c95['includes'](':merge')?{'group':'suggestion','name':_0x527c95['substr'](0xb),'attributes':{'data-suggestion':_0x370a80,'data-author-id':_0x5b6e16}}:null;}return{'group':'suggestion','name':_0x527c95['substr'](0xb)};}}),_0x1d3f09['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x39240b,{writer:_0x417e21})=>{let _0x261f60='suggestion:'+_0x39240b['getAttribute']('suggestion-type')+':'+_0x39240b['getAttribute']('id');return _0x39240b['getAttribute']('marker-count')&&(_0x261f60+=':'+_0x39240b['getAttribute']('marker-count')),_0x417e21['createElement']('$marker',{'data-name':_0x261f60});}}),_0x1d3f09['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x1d3f09['conversion']['for']('editingDowncast')['add'](_0x52de8c=>{_0x52de8c['on']('addMarker:suggestion:formatBlock',_0x3036e6(),{'priority':'high'});}),_0x1d3f09['conversion']['for']('editingDowncast')['add'](_0x1293fb=>{_0x1293fb['on']('addMarker:suggestion:attribute',_0x3036e6({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x1d3f09['conversion']['for']('editingDowncast')['add'](_0x1cf354=>{_0x1cf354['on']('removeMarker:suggestion:formatBlock',(_0x2db3da,_0xd3d3a4,_0x2fa494)=>{const _0x39cdf5=_0x2fa494['mapper']['markerNameToElements'](_0xd3d3a4['markerName']);if(_0x39cdf5){for(const _0x264715 of _0x39cdf5)_0x264715['getCustomProperty']('addHighlight')||(_0x2fa494['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x264715),_0x2fa494['writer']['removeAttribute']('data-suggestion',_0x264715),_0x2fa494['writer']['removeAttribute']('data-author-id',_0x264715),_0x2fa494['mapper']['unbindElementFromMarkerName'](_0x264715,_0xd3d3a4['markerName']));}},{'priority':'high'});}),_0x1d3f09['conversion']['for']('editingDowncast')['add'](_0xa17a1f=>{_0xa17a1f['on']('removeMarker:suggestion:attribute',(_0x4b3598,_0x32b34c,_0x182eac)=>{const _0x59f09e=_0x182eac['mapper']['markerNameToElements'](_0x32b34c['markerName']);if(!_0x59f09e)return;const {id:_0xd30f53}=this['_splitMarkerName'](_0x32b34c['markerName']),_0x11bb59=this['_suggestions']['get'](_0xd30f53),_0x4ebab3=this['_getAttributeKey'](_0x11bb59);if(this['_isBlockAttribute'](_0x4ebab3)){for(const _0x13980a of _0x59f09e)_0x13980a['getCustomProperty']('addHighlight')||(_0x182eac['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x13980a),_0x182eac['writer']['removeAttribute']('data-suggestion',_0x13980a),_0x182eac['writer']['removeAttribute']('data-author-id',_0x13980a),_0x182eac['mapper']['unbindElementFromMarkerName'](_0x13980a,_0x32b34c['markerName']));}},{'priority':'high'});}),_0x1d3f09['model']['document']['registerPostFixer'](_0x30adbe=>{let _0x3f997e=!0x1;const _0x8e7396=Array['from'](_0x1d3f09['model']['document']['differ']['getChangedMarkers']()),_0x2419f4=new Set();for(const {name:_0x3c615e,data:_0x6211eb}of _0x8e7396){const {group:_0x430a06,type:_0x276380,subType:_0x18ac65,id:_0x5e876f}=this['_splitMarkerName'](_0x3c615e);if('suggestion'!==_0x430a06)continue;const _0x1735e2=_0x18ac65?'suggestion:'+_0x276380+':'+_0x18ac65+':'+_0x5e876f:'suggestion:'+_0x276380+':'+_0x5e876f,_0x4d1d64=_0x1d3f09['model']['markers']['getMarkersGroup'](_0x1735e2),_0x295984=_0x1d3f09['model']['markers']['get'](_0x3c615e),_0x170fd4=this['_suggestions']['get'](_0x5e876f);if(null!=_0x6211eb['newRange']){'formatInline'==_0x276380&&(_0x3f997e=_0x3f997e||Gt(_0x6211eb['newRange'],_0x3c615e,_0x30adbe,_0x1d3f09['model']['schema']));const _0x4be407='attribute'==_0x276380&&this['_isBlockAttribute'](_0x18ac65['split']('|')[0x0]),_0x53e1ce='attribute'==_0x276380&&this['_isInlineAttribute'](_0x18ac65['split']('|')[0x0]);if(_0x6211eb['newRange']['isCollapsed']||'$graveyard'==_0x6211eb['newRange']['root']['rootName']||'formatBlock'==_0x276380&&!Jt(_0x6211eb['newRange'])||_0x4be407&&!Jt(_0x6211eb['newRange'])||_0x53e1ce&&Kt(_0x6211eb['newRange'])||'deletion'==_0x276380&&Kt(_0x6211eb['newRange'])||_0x295984&&Ht(_0x295984,_0x4d1d64))_0x30adbe['removeMarker'](_0x3c615e),_0x3f997e=!0x0;else{if(!_0x170fd4||!_0x170fd4['isInContent'])continue;if(_0x6211eb['newRange']&&_0x6211eb['oldRange']&&_0x6211eb['newRange']['isEqual'](_0x6211eb['oldRange']))continue;_0x2419f4['add'](_0x170fd4);}}}return _0x2419f4['size']>0x0&&(_0x3f997e=!!this['_joinWithAdjacentSuggestions'](_0x2419f4)||_0x3f997e),_0x3f997e;}),_0x1d3f09['model']['document']['registerPostFixer'](_0x1d3712=>{let _0x599252=!0x1;for(const _0x42fb63 of _0x1d3f09['model']['document']['differ']['getChanges']())if('insert'==_0x42fb63['type'])for(const _0x1867ba of this['_suggestions']['values']()){if(_0x1867ba['isMultiRange']||!_0x1867ba['isInContent'])continue;const _0x1eb072='formatBlock'==_0x1867ba['type'],_0x52c514=this['_getAttributeKey'](_0x1867ba),_0x23e566=_0x52c514&&this['_isBlockAttribute'](_0x52c514);if(!_0x1eb072&&!_0x23e566)continue;const _0xfaf8f2=_0x1867ba['getFirstRange']();if(_0xfaf8f2['start']['parent']!=_0xfaf8f2['end']['parent']&&!_0xfaf8f2['end']['isAtEnd']){const _0x59e7c9=_0x1d3f09['model']['createPositionAt'](_0xfaf8f2['start']['nodeAfter'],'end'),_0x50eb4e=_0x1d3f09['model']['createRange'](_0xfaf8f2['start'],_0x59e7c9);_0x1d3712['updateMarker'](_0x1867ba['getFirstMarker'](),{'range':_0x50eb4e}),_0x599252=!0x0;}}return _0x599252;}),_0x1d3f09['model']['document']['registerPostFixer'](_0x10ff1c=>this['_processAttributeChanges'](_0x10ff1c)),_0x1d3f09['model']['document']['registerPostFixer'](_0x4d1bec=>!_0x4d1bec['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x4d1bec)),_0x1d3f09['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x1d3f09['model']['document']['on']('change:data',(_0x3cd369,_0x43b2a7)=>{if(!_0x43b2a7['isLocal']||_0x43b2a7['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x5ce650=_0x1d3f09['model']['document']['differ']['getChanges']();if(0x0==_0x5ce650['length'])return;const _0x471d33=[],_0x45254b=_0x5ce650['filter'](_0x44133b=>'attribute'==_0x44133b['type']),_0x17cfa8=_0x5ce650['filter'](_0x562d11=>'insert'==_0x562d11['type']&&'$text'!=_0x562d11['name']);for(const _0x28d26d of _0x45254b)this['_isRegisteredAttribute'](_0x28d26d['attributeKey'])&&_0x471d33['push']({'key':_0x28d26d['attributeKey'],'newValue':_0x28d26d['attributeNewValue'],'oldValue':_0x28d26d['attributeOldValue'],'range':qt(_0x28d26d['range'],_0x1d3f09['model'])});for(const _0x2ed81b of _0x17cfa8){if('rename'!=_0x2ed81b['action']&&'refresh'!=_0x2ed81b['action'])continue;const _0x2f6c87=zt(_0x2ed81b['position']['nodeAfter'],_0x1d3f09['model']),_0x5beb9f=_0x2ed81b['before'];'rename'==_0x2ed81b['action']&&_0x471d33['push']({'key':m,'newValue':_0x2ed81b['name'],'oldValue':_0x5beb9f['name'],'range':_0x2f6c87});for(const [_0x36d55c,_0x3764ea]of _0x5beb9f['attributes']){if(!this['_isRegisteredAttribute'](_0x36d55c))continue;const _0x3a5749=_0x2ed81b['attributes']['get'](_0x36d55c);_0x3764ea!==_0x3a5749&&_0x471d33['push']({'key':_0x36d55c,'newValue':_0x3a5749,'oldValue':_0x3764ea,'range':_0x2f6c87});}for(const [_0x3c874d,_0x5b1fa1]of _0x2ed81b['attributes'])this['_isRegisteredAttribute'](_0x3c874d)&&(_0x5beb9f['attributes']['has'](_0x3c874d)||_0x471d33['push']({'key':_0x3c874d,'newValue':_0x5b1fa1,'oldValue':null,'range':_0x2f6c87}));}0x0!=_0x471d33['length']&&_0x1d3f09['model']['enqueueChange'](_0x43b2a7,_0x5cae51=>{const _0x197a6f=_0x29bcf7();for(const {range:_0x2c5622,key:_0x887297,oldValue:_0x16b50c,newValue:_0x385f22}of _0x471d33)this['markAttributeChange'](_0x2c5622,_0x887297,_0x16b50c,_0x385f22,{'groupId':_0x197a6f});this['_reduceExistingSuggestions'](_0x5cae51,_0x471d33);});},{'priority':'lowest'}),_0x1d3f09['model']['markers']['on']('update:suggestion',(_0x11e297,_0x27c1e7,_0x174d8b)=>{if(null==_0x174d8b){const {id:_0x55095f}=this['_splitMarkerName'](_0x27c1e7['name']),_0x5d4f27=this['_suggestions']['get'](_0x55095f);_0x5d4f27&&_0x5d4f27['addMarkerName'](_0x27c1e7['name']);}}),_0x1d3f09['model']['document']['on']('change:data',()=>{const _0x350da3=Array['from'](_0x1d3f09['model']['document']['differ']['getChangedMarkers']())['filter'](_0x42e9aa=>'suggestion'===this['_splitMarkerName'](_0x42e9aa['name'])['group']);if(0x0===_0x350da3['length'])return;_0x350da3['sort']((_0x207815,_0x41d48a)=>{const _0x432133=_0x207815['data']['oldRange'],_0xde2ec3=_0x41d48a['data']['oldRange'];return null===_0x432133&&null===_0xde2ec3?0x0:null===_0x432133&&null!==_0xde2ec3?-0x1:null!==_0x432133&&null===_0xde2ec3?0x1:_0x432133['start']['isBefore'](_0xde2ec3['start'])?-0x1:0x1;});const _0x212e00=new Set(),_0x24060a=new Set();for(const {name:_0xa8f30e,data:_0x27f947}of _0x350da3){const {id:_0x52b0da}=this['_splitMarkerName'](_0xa8f30e);if(null===_0x27f947['oldRange']){const _0x9e3831=this['_handleNewSuggestionMarker'](_0xa8f30e);_0x24060a['add'](_0x9e3831);}else{const _0x126b97=this['_suggestions']['get'](_0x52b0da);null!==_0x27f947['newRange']||_0x126b97['isInContent']?(_0x212e00['add'](_0x126b97['head']),_0x24060a['add'](_0x126b97)):this['_removeSuggestion'](_0x126b97);}}_0x24060a['size']>0x0&&this['_refreshSuggestionsChain'](_0x24060a);for(const _0x549ebd of _0x212e00)this['fire']('suggestionChanged',_0x549ebd);}),_0x1d3f09['model']['on']('applyOperation',(_0x1e043e,_0x106889)=>{const _0x356802=_0x106889[0x0];if(!this['_suggestions']['size'])return;if(!_0x356802['isDocumentOperation'])return;if(_0x356802['batch']['isUndo']||!_0x356802['batch']['isLocal'])return;let _0x2b7ac9,_0x3e2513;switch(_0x356802['type']){case'insert':_0x2b7ac9=_0x1d3f09['model']['createPositionAt'](_0x356802['position']),_0x3e2513=_0x2b7ac9['getShiftedBy'](_0x356802['howMany']);break;case'split':_0x2b7ac9=_0x1d3f09['model']['createPositionAt'](_0x356802['splitPosition']),_0x3e2513=_0x1d3f09['model']['createPositionAt'](_0x356802['moveTargetPosition']);break;case'move':_0x2b7ac9=_0x1d3f09['model']['createPositionAt'](_0x356802['targetPosition']),_0x3e2513=_0x2b7ac9['getShiftedBy'](_0x356802['howMany']);break;default:return;}const _0x4df16d=_0x1d3f09['model']['createRange'](_0x2b7ac9,_0x3e2513);_0x1d3f09['model']['change'](()=>{for(const {suggestion:_0x2ce3d3,meta:_0x4e1f74}of this['_findSuggestions'](_0x4df16d)){if(_0x2ce3d3['isMultiRange'])continue;if('formatInline'==_0x2ce3d3['type'])continue;const _0x29d7e9=this['_getAttributeKey'](_0x2ce3d3);if(_0x29d7e9&&this['_isBlockAttribute'](_0x29d7e9)&&'split'!=_0x356802['type'])continue;const _0x47c302=_0x2ce3d3['data']&&_0x2ce3d3['data']['multipleBlocks'];('formatBlock'!=_0x2ce3d3['type']||'split'==_0x356802['type']&&!_0x47c302)&&(_0x4e1f74['containsRangeInObject']||'insertion'==_0x2ce3d3['type']&&_0x4e1f74['isOwn']||_0x2ce3d3['getFirstRange']()['containsRange'](_0x4df16d)&&this['_breakSuggestionMarker'](_0x2ce3d3,_0x2b7ac9,_0x3e2513));}});},{'priority':'lowest'}),_0x1d3f09['model']['on']('deleteContent',(_0x3c1acd,_0x443c2d)=>{const _0x277f66=_0x443c2d[0x0],_0x24ff35=_0x443c2d[0x1];if(_0x24ff35&&_0x24ff35['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x277f66['isCollapsed'])return;const _0x3ab5a4=_0x1d3f09['model']['schema'],{start:_0xb98600,end:_0x513e6c}=_0x277f66['getFirstRange'](),_0x503302=_0xb98600['nodeAfter']&&_0x3ab5a4['isLimit'](_0xb98600['nodeAfter'])?null:_0x3ab5a4['getNearestSelectionRange'](_0xb98600,'forward'),_0x567a2f=_0x513e6c['nodeBefore']&&_0x3ab5a4['isLimit'](_0x513e6c['nodeBefore'])?null:_0x3ab5a4['getNearestSelectionRange'](_0x513e6c,'backward'),_0x118fd6=_0x1d3f09['model']['createRange'](_0x503302?_0x503302['start']:_0xb98600,_0x567a2f?_0x567a2f['end']:_0x513e6c);_0x1d3f09['model']['change'](_0x35a3bc=>{this['markDeletion'](_0x118fd6);const _0x4720f7=_0x1d3f09['model']['schema']['getNearestSelectionRange'](_0x118fd6['start']);_0x277f66['is']('documentSelection')?_0x35a3bc['setSelection'](_0x4720f7):_0x277f66['setTo'](_0x4720f7);}),_0x3c1acd['stop']();},{'priority':_0x3771e3['normal']+0xa}),_0x1d3f09['model']['on']('insertContent',(_0x22872d,_0x8d9b3c)=>{const _0x2f7f1d=_0x8d9b3c[_0x8d9b3c['length']-0x1];_0x2f7f1d&&_0x2f7f1d['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x1d3f09['model']['change'](()=>{let _0x353e3a=_0x1d3f09['model']['insertContent'](_0x8d9b3c[0x0],_0x8d9b3c[0x1],_0x8d9b3c[0x2],{'forceDefaultExecution':!0x0});if(!_0x353e3a)return;_0x22872d['return']=_0x353e3a['clone']();const _0x225985=_0x353e3a['end']['nodeBefore'],_0x37b99a=_0x1d3f09['model']['schema'];_0x225985&&_0x37b99a['isBlock'](_0x225985)&&!_0x37b99a['isObject'](_0x225985)&&(_0x353e3a=_0x1d3f09['model']['createRange'](_0x353e3a['start'],_0x1d3f09['model']['createPositionAt'](_0x225985,'end'))),this['markInsertion'](_0x353e3a);}),_0x22872d['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x2ad1c7=new D(_0x1d3f09,this['_suggestions']);_0x1d3f09['commands']['add']('acceptSuggestion',_0x2ad1c7),this['enableCommand']('acceptSuggestion');const _0x44fd1d=new $(_0x1d3f09,this['_suggestions']);_0x1d3f09['commands']['add']('discardSuggestion',_0x44fd1d),this['enableCommand']('discardSuggestion'),_0x1d3f09['commands']['add']('acceptAllSuggestions',new M(_0x1d3f09,_0x2ad1c7,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x1d3f09['commands']['add']('discardAllSuggestions',new M(_0x1d3f09,_0x44fd1d,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x1d3f09['commands']['add']('acceptSelectedSuggestions',new B(_0x1d3f09,_0x2ad1c7,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x1d3f09['commands']['add']('discardSelectedSuggestions',new B(_0x1d3f09,_0x44fd1d,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0xcff3e3=_0x1d3f09['plugins']['get']('CommentsRepository');this['listenTo'](_0xcff3e3,'addComment',(_0x2af73a,{threadId:_0x4dd926})=>{const _0x269ab3=this['_suggestions']['get'](_0x4dd926);_0x269ab3&&_0x269ab3['commentThread']&&0x1===_0x269ab3['commentThread']['length']&&this['_updateSuggestionData'](_0x4dd926,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0xcff3e3,'removeComment',(_0x1028fe,{threadId:_0x27b319})=>{const _0x5d25a0=this['_suggestions']['get'](_0x27b319);_0x5d25a0&&_0x5d25a0['commentThread']&&!_0x5d25a0['commentThread']['length']&&this['_updateSuggestionData'](_0x27b319,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x2ce8f5){const _0x18424e=_0x4d6f0a([0x35,0x67,0x6f,0x4e,0x5a,0x52,0x78,0x48,0x7a,0x6d,0x42,0x66,0x72,0x6c,0x30,0x46,0x71,0x36,0x43,0x6b,0x73,0x31,0x61,0x68,0x44,0x47,0x53,0x32,0x4c,0x55,0x45,0x57,0x69,0x62,0x79,0x33,0x77,0x4b,0x76,0x75,0x34,0x49,0x56,0x50,0x64,0x65,0x54,0x38,0x6a,0x6e,0x39,0x4d,0x4f,0x51,0x4a,0x74,0x63,0x41,0x59,0x37,0x58,0x70]),_0x28ef5e=0x6b0f5e6f,_0x38745a=0x6b082c07^_0x28ef5e,_0x42f5a7=window[_0x4d6f0a([0x44,0x61,0x74,0x65])][_0x4d6f0a([0x6e,0x6f,0x77])](),_0xbf43f1=_0x2ce8f5[_0x4d6f0a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5939c0=new window[(_0x4d6f0a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b6a1c=>{_0xbf43f1[_0x4d6f0a([0x6f,0x6e,0x63,0x65])](_0x4d6f0a([0x72,0x65,0x61,0x64,0x79]),_0x4b6a1c);}),_0x4c7b7e={[_0x4d6f0a([0x6b,0x74,0x79])]:_0x4d6f0a([0x45,0x43]),[_0x4d6f0a([0x75,0x73,0x65])]:_0x4d6f0a([0x73,0x69,0x67]),[_0x4d6f0a([0x63,0x72,0x76])]:_0x4d6f0a([0x50,0x2d,0x32,0x35,0x36]),[_0x4d6f0a([0x78])]:_0x4d6f0a([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]),[_0x4d6f0a([0x79])]:_0x4d6f0a([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]),[_0x4d6f0a([0x61,0x6c,0x67])]:_0x4d6f0a([0x45,0x53,0x32,0x35,0x36])},_0x1003f3=_0xbf43f1[_0x4d6f0a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4d6f0a([0x67,0x65,0x74])](_0x4d6f0a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x54fc2f(){let _0xc2b16c,_0x1e2e93=null,_0x300990=null;try{if(_0x1003f3==_0x4d6f0a([0x47,0x50,0x4c]))return _0x4d6f0a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xc2b16c=_0x409ba0(),!_0xc2b16c)return _0x4d6f0a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xc2b16c[_0x4d6f0a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x300990=_0x42c536(_0xc2b16c[_0x4d6f0a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xc2b16c[_0x4d6f0a([0x6a,0x74,0x69])])),await _0x3a9cd4()?_0x58d83b()?_0x2fe7c2()?_0x4d6f0a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2efbf3()?(_0xc2b16c[_0x4d6f0a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4d6f0a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1e2e93=_0x593f7a(_0x4d6f0a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xc2b16c[_0x4d6f0a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4d6f0a([0x74,0x72,0x69,0x61,0x6c])&&(_0x1e2e93=_0x593f7a(_0x4d6f0a([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xc405e8()):_0x4d6f0a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4d6f0a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4d6f0a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4d6f0a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2fe7c2(){const _0x234a2a=[_0x4d6f0a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4d6f0a([0x74,0x72,0x69,0x61,0x6c])][_0x4d6f0a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc2b16c[_0x4d6f0a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x42f5a7/0x3e8:0xe10*_0x38745a;return _0xc2b16c[_0x4d6f0a([0x65,0x78,0x70])]<_0x234a2a;}function _0x58d83b(){const _0x4bdd36=_0xc2b16c[_0x4d6f0a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4bdd36)return!0x1;if(_0x4bdd36[_0x4d6f0a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d6f0a([0x2a])))return!0x0;if(_0x4bdd36[_0x4d6f0a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d6f0a([0x54,0x43])))return!0x0;if(_0x4bdd36[_0x4d6f0a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d6f0a([0x52,0x54,0x43]))){if(_0x3ce70b())return!0x0;if(_0xe9ec71()||_0x493146())return!0x0;}return!0x1;}function _0x2efbf3(){const _0x26c157=_0xc2b16c[_0x4d6f0a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x26c157||0x0==_0x26c157[_0x4d6f0a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x8e4d5d}=new URL(window[_0x4d6f0a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x26c157[_0x4d6f0a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8e4d5d))return!0x0;const _0x274be8=_0x8e4d5d[_0x4d6f0a([0x73,0x70,0x6c,0x69,0x74])](_0x4d6f0a([0x2e]));return _0x26c157[_0x4d6f0a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x13e43a=>_0x13e43a[_0x4d6f0a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d6f0a([0x2a])))[_0x4d6f0a([0x6d,0x61,0x70])](_0x36a4aa=>_0x36a4aa[_0x4d6f0a([0x73,0x70,0x6c,0x69,0x74])](_0x4d6f0a([0x2e])))[_0x4d6f0a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x26e82a=>_0x26e82a[_0x4d6f0a([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x274be8[_0x4d6f0a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4d6f0a([0x6d,0x61,0x70])](_0xd3d559=>Array(_0x274be8[_0x4d6f0a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xd3d559[_0x4d6f0a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4d6f0a([0x66,0x69,0x6c,0x6c])](_0xd3d559[0x0]===_0x4d6f0a([0x2a])?_0x4d6f0a([0x2a]):'')[_0x4d6f0a([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xd3d559))[_0x4d6f0a([0x73,0x6f,0x6d,0x65])](_0x3f3f24=>_0x274be8[_0x4d6f0a([0x65,0x76,0x65,0x72,0x79])]((_0x294beb,_0xa02ce6)=>_0x3f3f24[_0xa02ce6]===_0x294beb||_0x3f3f24[_0xa02ce6]===_0x4d6f0a([0x2a])));}function _0xc405e8(){return _0x1e2e93&&_0x300990?new window[(_0x4d6f0a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x59f9d9,_0x56565f)=>{_0x1e2e93[_0x4d6f0a([0x74,0x68,0x65,0x6e])](_0x59f9d9,_0x56565f),_0x300990[_0x4d6f0a([0x74,0x68,0x65,0x6e])](_0x316c40=>{_0x316c40!=_0x4d6f0a([0x56,0x61,0x6c,0x69,0x64])&&_0x59f9d9(_0x316c40);},_0x56565f);}):_0x1e2e93||_0x300990||_0x4d6f0a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x42c536(_0x4580db,_0x2c7ba4){return new window[(_0x4d6f0a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x34fe4e=>{if(_0x5d707e())return _0x34fe4e(_0x4d6f0a([0x56,0x61,0x6c,0x69,0x64]));_0x51dbf9(),_0xbf43f1[_0x4d6f0a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4d6f0a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xad27cb=!0x1;const _0xa2c59b=_0x29bcf7();function _0x4ed031(_0x15c19d){return!!_0x15c19d&&(typeof _0x15c19d===_0x4d6f0a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x15c19d===_0x4d6f0a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x15c19d[_0x4d6f0a([0x74,0x68,0x65,0x6e])]===_0x4d6f0a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x15c19d[_0x4d6f0a([0x63,0x61,0x74,0x63,0x68])]===_0x4d6f0a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1c9088(_0x27cd68){_0x465256(_0x27cd68)[_0x4d6f0a([0x74,0x68,0x65,0x6e])](_0x4c9867=>{if(!_0x4c9867||_0x4c9867[_0x4d6f0a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4d6f0a([0x6f,0x6b]))return _0x4d6f0a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5e7305(_0x132598(_0xa2c59b+_0x2c7ba4))!=_0x4c9867[_0x4d6f0a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4d6f0a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4d6f0a([0x56,0x61,0x6c,0x69,0x64]);})[_0x4d6f0a([0x74,0x68,0x65,0x6e])](_0x1b3505=>(_0x3414cd(),_0x1b3505),()=>{const _0x317526=_0x5de5ec();return null==_0x317526?(_0x3414cd(),_0x4d6f0a([0x56,0x61,0x6c,0x69,0x64])):_0x4d6f0a(_0x42f5a7-_0x317526>(0x4f03da6f^_0x28ef5e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4d6f0a([0x74,0x68,0x65,0x6e])](_0x34fe4e)[_0x4d6f0a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x34fe4e(_0x4d6f0a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3ed3cc=0x6b39b0ef^_0x28ef5e;function _0x3414cd(){const _0x131b96=_0x4d6f0a([0x6c,0x6c,0x63,0x74,0x2d])+_0x5e7305(_0x132598(_0x4580db)),_0x130a44=_0x15bdc7(_0x5e7305(window[_0x4d6f0a([0x4d,0x61,0x74,0x68])][_0x4d6f0a([0x63,0x65,0x69,0x6c])](_0x42f5a7/_0x3ed3cc)));window[_0x4d6f0a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4d6f0a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x131b96,_0x130a44);}function _0x5de5ec(){const _0xedd323=_0x4d6f0a([0x6c,0x6c,0x63,0x74,0x2d])+_0x5e7305(_0x132598(_0x4580db)),_0x3f8d40=window[_0x4d6f0a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4d6f0a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xedd323);return _0x3f8d40?window[_0x4d6f0a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x15bdc7(_0x3f8d40),0x10)*_0x3ed3cc:null;}function _0x465256(_0x424629){return new window[(_0x4d6f0a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4d68bb,_0x584997)=>{_0x424629[_0x4d6f0a([0x74,0x68,0x65,0x6e])](_0x4d68bb,_0x584997),window[_0x4d6f0a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x584997,0x6b0e8aaf^_0x28ef5e);});}}_0xbf43f1[_0x4d6f0a([0x6f,0x6e])](_0x4d6f0a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xd128d3,_0x3b8db6)=>{if(_0x3b8db6[0x0]!=_0x4580db)return _0x34fe4e(_0x4d6f0a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3b8db6[0x1]={..._0x3b8db6[0x1],[_0x4d6f0a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xa2c59b};},{[_0x4d6f0a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4d6f0a([0x68,0x69,0x67,0x68])}),_0xbf43f1[_0x4d6f0a([0x6f,0x6e])](_0x4d6f0a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x16a5bd=>{_0x4ed031(_0x16a5bd[_0x4d6f0a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xad27cb=!0x0,_0x1c9088(_0x16a5bd[_0x4d6f0a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4d6f0a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4d6f0a([0x6c,0x6f,0x77])}),_0x5939c0[_0x4d6f0a([0x74,0x68,0x65,0x6e])](()=>{_0xad27cb||_0x34fe4e(_0x4d6f0a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5d707e(){return _0xbf43f1[_0x4d6f0a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4d6f0a([0x76,0x69,0x65,0x77])][_0x4d6f0a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4d6f0a([0x61,0x75,0x74,0x6f]);}function _0x51dbf9(){_0xbf43f1[_0x4d6f0a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4d6f0a([0x76,0x69,0x65,0x77])][_0x4d6f0a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4d6f0a([0x61,0x75,0x74,0x6f]);}}function _0x593f7a(_0x415c39){const _0x1ab2d7=[new window[(_0x4d6f0a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x28cb3a=>setTimeout(_0x28cb3a,0x6b0660a3^_0x28ef5e)),_0x5939c0[_0x4d6f0a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4d6f0a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x488d4e=>{let _0x757227=0x0;_0xbf43f1[_0x4d6f0a([0x6d,0x6f,0x64,0x65,0x6c])][_0x4d6f0a([0x6f,0x6e])](_0x4d6f0a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x54d95c,_0x1ce7a0)=>{_0x1ce7a0[0x0][_0x4d6f0a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x757227++,_0x757227==(0x6b0f5f97^_0x28ef5e)&&(_0x488d4e(),_0x54d95c[_0x4d6f0a([0x6f,0x66,0x66])]());});}))];return window[_0x4d6f0a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4d6f0a([0x72,0x61,0x63,0x65])](_0x1ab2d7)[_0x4d6f0a([0x74,0x68,0x65,0x6e])](()=>_0x415c39);}async function _0xe77c69(){await _0x5939c0,_0xbf43f1[_0x4d6f0a([0x6d,0x6f,0x64,0x65,0x6c])][_0x4d6f0a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x51f597,_0xbf43f1[_0x4d6f0a([0x6d,0x6f,0x64,0x65,0x6c])][_0x4d6f0a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x51f597,_0xbf43f1[_0x4d6f0a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4d6f0a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3ce70b(){return _0x527230(_0x4d6f0a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x51ad2f(_0x4d6f0a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4d6f0a([0x73,0x74,0x61,0x74,0x65])]==_0x4d6f0a([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xe9ec71(){return _0x527230(_0x4d6f0a([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 _0x493146(){return _0x527230(_0x4d6f0a([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4c6ad1(_0x353d17){const _0x3356d0=_0x310efe();_0xbf43f1[_0x3356d0]=_0x4d6f0a([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x353d17,_0x353d17!=_0x4d6f0a([0x56,0x61,0x6c,0x69,0x64])&&_0xe77c69();}function _0x310efe(){const _0x1f54e9=window[_0x4d6f0a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4d6f0a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4d6f0a([0x6e,0x6f,0x77])]())[_0x4d6f0a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4d6f0a([0x2e]),'');let _0x4a4546=_0x4d6f0a([0x67]);for(let _0x5d00a4=0x0;_0x5d00a4<_0x1f54e9[_0x4d6f0a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5d00a4+=0x2){let _0x2ff28d=window[_0x4d6f0a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1f54e9[_0x4d6f0a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5d00a4,_0x5d00a4+0x2));_0x2ff28d>=_0x18424e[_0x4d6f0a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2ff28d-=_0x18424e[_0x4d6f0a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4a4546+=_0x18424e[_0x2ff28d];}return _0x4a4546;}function _0x409ba0(){const _0x22fd30=_0x1003f3[_0x4d6f0a([0x73,0x70,0x6c,0x69,0x74])](_0x4d6f0a([0x2e]));if(0x3!=_0x22fd30[_0x4d6f0a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1f52e7(_0x22fd30[0x1]);function _0x1f52e7(_0x1c719f){const _0x43fbbc=_0x7cc1cf(_0x1c719f);return _0x43fbbc&&_0x1bac50()?_0x43fbbc:null;function _0x1bac50(){const _0x56856c=_0x43fbbc[_0x4d6f0a([0x6a,0x74,0x69])],_0x26b5c8=window[_0x4d6f0a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x56856c[_0x4d6f0a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x56856c[_0x4d6f0a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4c562d={..._0x43fbbc,[_0x4d6f0a([0x6a,0x74,0x69])]:_0x56856c[_0x4d6f0a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x56856c[_0x4d6f0a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4c562d[_0x4d6f0a([0x76,0x63])],_0x132598(_0x4c562d)==_0x26b5c8;}}}async function _0x3a9cd4(){let _0x455982=!0x0;try{const _0x3f5a5c=_0x1003f3[_0x4d6f0a([0x73,0x70,0x6c,0x69,0x74])](_0x4d6f0a([0x2e])),[_0x54befe,_0x5b5224,_0x479528]=_0x3f5a5c;return _0x31f7f9(_0x54befe),await _0x296788(_0x54befe,_0x5b5224,_0x479528),_0x455982;}catch{return!0x1;}function _0x31f7f9(_0xcfe100){const _0xd21966=_0x7cc1cf(_0xcfe100);_0xd21966&&_0xd21966[_0x4d6f0a([0x61,0x6c,0x67])]==_0x4d6f0a([0x45,0x53,0x32,0x35,0x36])||(_0x455982=!0x1);}async function _0x296788(_0x3b4afc,_0x170031,_0x1a0898){const _0x478600=window[_0x4d6f0a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4d6f0a([0x66,0x72,0x6f,0x6d])](_0x817086(_0x1a0898),_0x38d413=>_0x38d413[_0x4d6f0a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x276502=new window[(_0x4d6f0a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4d6f0a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3b4afc+_0x4d6f0a([0x2e])+_0x170031),_0x35d67c=window[_0x4d6f0a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4d6f0a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x35d67c)return;const _0x2d4063=await _0x35d67c[_0x4d6f0a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4d6f0a([0x6a,0x77,0x6b]),_0x4c7b7e,{[_0x4d6f0a([0x6e,0x61,0x6d,0x65])]:_0x4d6f0a([0x45,0x43,0x44,0x53,0x41]),[_0x4d6f0a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4d6f0a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4d6f0a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x35d67c[_0x4d6f0a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4d6f0a([0x6e,0x61,0x6d,0x65])]:_0x4d6f0a([0x45,0x43,0x44,0x53,0x41]),[_0x4d6f0a([0x68,0x61,0x73,0x68])]:{[_0x4d6f0a([0x6e,0x61,0x6d,0x65])]:_0x4d6f0a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2d4063,_0x478600,_0x276502)||(_0x455982=!0x1);}}function _0x7cc1cf(_0x119213){return _0x119213[_0x4d6f0a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4d6f0a([0x65,0x79]))?JSON[_0x4d6f0a([0x70,0x61,0x72,0x73,0x65])](_0x817086(_0x119213)):null;}function _0x817086(_0x168870){return window[_0x4d6f0a([0x61,0x74,0x6f,0x62])](_0x168870[_0x4d6f0a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4d6f0a([0x2b]))[_0x4d6f0a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4d6f0a([0x2f])));}function _0x132598(_0x4c675a){let _0x5d47f8=0x1505;function _0x2406fd(_0x49c8b2){for(let _0xe1ffa1=0x0;_0xe1ffa1<_0x49c8b2[_0x4d6f0a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xe1ffa1++){const _0x6f2a0b=_0x49c8b2[_0x4d6f0a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xe1ffa1);_0x5d47f8=(_0x5d47f8<<0x5)+_0x5d47f8+_0x6f2a0b,_0x5d47f8&=_0x5d47f8;}}function _0x3569bc(_0x328bc7){Array[_0x4d6f0a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x328bc7)?_0x328bc7[_0x4d6f0a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3569bc):_0x328bc7&&typeof _0x328bc7==_0x4d6f0a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4d6f0a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x328bc7)[_0x4d6f0a([0x73,0x6f,0x72,0x74])]()[_0x4d6f0a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x543bc7,_0x19f867])=>{_0x2406fd(_0x543bc7),_0x3569bc(_0x19f867);}):_0x2406fd(window[_0x4d6f0a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x328bc7));}return _0x3569bc(_0x4c675a),_0x5d47f8>>>0x0;}function _0x5e7305(_0x511c15){return _0x511c15[_0x4d6f0a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4d6f0a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4d6f0a([0x30]));}function _0x15bdc7(_0x2a63bd){return _0x2a63bd[_0x4d6f0a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4d6f0a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4d6f0a([0x6a,0x6f,0x69,0x6e])]('');}function _0x527230(_0x519d33){return _0xbf43f1[_0x4d6f0a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4d6f0a([0x68,0x61,0x73])](_0x519d33);}function _0x51ad2f(_0x2b1fb7){return _0xbf43f1[_0x4d6f0a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4d6f0a([0x67,0x65,0x74])](_0x2b1fb7);}function _0x51f597(){}function _0x4d6f0a(_0x31ddea){return _0x31ddea['map'](_0x2a7adb=>String['fromCharCode'](_0x2a7adb))['join']('');}_0x4c6ad1(await _0x54fc2f());}(this);}set['adapter'](_0x16c4bb){if(this['_adapter'])throw new _0x56f143('track-changes-adapter-already-set',this);this['_adapter']=_0x16c4bb;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x9544e2=!0x1,toJSON:_0x3d86c3=!0x1}={}){const _0x331366=[];for(const _0x15aef9 of this['_suggestions']['values']())_0x9544e2&&!_0x15aef9['isInContent']||_0x331366['push'](_0x15aef9);return _0x3d86c3?_0x331366['map'](_0x146ee1=>_0x146ee1['toJSON']()):_0x331366;}['getSuggestion'](_0x13f192){const _0x795b0=this['_suggestions']['get'](_0x13f192);if(!_0x795b0)throw new _0x56f143('track-changes-suggestion-not-found',this);return _0x795b0;}['hasSuggestion'](_0x264a2d){return this['_suggestions']['has'](_0x264a2d);}['addSuggestionData'](_0x3858de){const {authorId:_0x26efed,id:_0x35a346,originalSuggestionId:_0x5de7db,attributes:_0x490233}=_0x3858de,[_0x462ae9,_0x5c6e36]=_0x3858de['type']['split'](':'),_0x1035ba=this['_suggestions']['get'](_0x35a346)||this['_createSuggestion'](_0x462ae9,_0x5c6e36,_0x35a346,_0x26efed,_0x490233,_0x5de7db);if(this['_addThreadToSuggestion'](_0x1035ba),this['_checkSuggestionCorrectness'](_0x1035ba,_0x462ae9,_0x5c6e36||null,_0x26efed),_0x1035ba['createdAt']=_0x3858de['createdAt'],_0x1035ba['_isDataLoaded']=!0x0,_0x490233&&_0x490233['@external']){const _0x5d13df=_0x490233['@external'],_0x1f2a5=this['_getExternalAuthor'](_0x5d13df['authorName']);_0x1035ba['authoredAt']=_0x5d13df['createdAt'],_0x1035ba['author']=_0x1f2a5,_0x1035ba['isExternal']=!0x0;}else _0x1035ba['authoredAt']=_0x3858de['createdAt'];switch(_0x3858de['data']&&(_0x1035ba['data']=_0x3858de['data']),_0x3858de['attributes']&&(_0x1035ba['attributes']=_0x3858de['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x1035ba['_saved']=!0x0),this['_suggestionState']['get'](_0x1035ba)){case'notReady':this['_suggestionState']['set'](_0x1035ba,'dataReady');break;case'markerReady':_0x1035ba['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x1035ba])),this['_refreshSuggestionsChain'](new Set([_0x1035ba])),this['_suggestionState']['set'](_0x1035ba,'ready'),this['fire']('suggestionLoaded',_0x1035ba)):this['_suggestionState']['set'](_0x1035ba,'removed');}return _0x1035ba;}['acceptSuggestion'](_0x405da0){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x313531 of _0x405da0['getAllAdjacentSuggestions']())_0x313531['accept']();});});}['discardSuggestion'](_0x4dfc80){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5ca5ed of _0x4dfc80['getAllAdjacentSuggestions']())_0x5ca5ed['discard']();});});}['enableCommand'](_0xebd5e3,_0x26225f){const _0x3be239=this['editor']['commands']['get'](_0xebd5e3);if(!_0x3be239)throw new _0x56f143('track-changes-command-not-found',this,{'commandName':_0xebd5e3});if(this['_enabledCommands']['has'](_0x3be239))throw new _0x56f143('track-changes-enable-command-twice',this,{'commandName':_0xebd5e3});this['_enabledCommands']['add'](_0x3be239),_0x26225f&&_0x3be239['on']('execute',(_0x275e83,_0x3b542f)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x3b542f['length']>0x0&&_0x3b542f[_0x3b542f['length']-0x1]&&_0x3b542f[_0x3b542f['length']-0x1]['forceDefaultExecution']?_0x3b542f['pop']():(_0x275e83['return']=_0x26225f((..._0x147da1)=>_0x3be239['execute'](..._0x147da1,{'forceDefaultExecution':!0x0}),..._0x3b542f),_0x275e83['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x1bc7ab){let _0xdd09e8,_0x186b7b;const _0x3d96e1=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0xdd09e8=_0x1bc7ab();}catch(_0x2cad44){_0x186b7b=_0x2cad44;}return _0x3d96e1||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x186b7b&&_0x56f143['rethrowUnexpectedError'](_0x186b7b,this),_0xdd09e8;}['markInsertion'](_0x390235,_0x3ff898=null,_0x5d35bc={}){if(_0x390235['isCollapsed'])return null;const _0x14eab3=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x5d35bc['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x8508d6,meta:_0xecc50f}of this['_findSuggestions'](_0x390235,'insertion'))if(_0xecc50f['isOwn']){if(!_0xecc50f['isNextTo']){if(_0xecc50f['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x8508d6,_0x5d35bc))continue;return _0x8508d6;}if(Xt(_0x8508d6,_0x5d35bc))return _0x8508d6;this['_breakSuggestionMarker'](_0x8508d6,_0x390235['start'],_0x390235['end']);break;}if(_0x3ff898==_0x8508d6['subType']&&Xt(_0x8508d6,_0x5d35bc)){const _0xdbcf71=_0x8508d6['getFirstRange']();return _0xdbcf71['start']['isEqual'](_0x390235['end'])?this['_setSuggestionRange'](_0x8508d6,this['_model']['createRange'](_0x390235['start'],_0xdbcf71['end'])):this['_setSuggestionRange'](_0x8508d6,this['_model']['createRange'](_0xdbcf71['start'],_0x390235['end'])),_0x8508d6;}}const _0xd8ca9=_0x29bcf7(),_0x43de22=_0x14eab3['id'],_0x37947a=_0x3ff898?'insertion:'+_0x3ff898:'insertion',_0x1b673b=this['_setSuggestionData']({'id':_0xd8ca9,'type':_0x37947a,'createdAt':new Date(),'authorId':_0x43de22,'attributes':_0x5d35bc});return this['_addSuggestionMarker'](_0x37947a,_0xd8ca9,_0x43de22,_0x390235),_0x1b673b;}['markMultiRangeInsertion'](_0x296131,_0x553069='multi',_0x37ac21={}){const _0x3c9092=this['editor']['plugins']['get']('Users')['me'],_0x1ff6f1=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x553069,'join');this['_trackingSessionId']&&(_0x37ac21['trackingSessionId']=this['_trackingSessionId']);for(const _0x4a9708 of this['getSuggestions']())if(_0x4a9708['author']['id']==_0x3c9092['id']&&'insertion'==_0x4a9708['type']&&_0x4a9708['subType']==_0x553069&&Xt(_0x4a9708,_0x37ac21)&&(_0x1ff6f1(_0x4a9708['getRanges'](),_0x296131)||_0x1ff6f1(_0x296131,_0x4a9708['getRanges']()))){for(const _0x3205d8 of _0x296131)_0x4a9708['addRange'](_0x3205d8);return _0x4a9708;}for(const {suggestion:_0x17d0da,meta:_0x2441fb}of this['_findSuggestions'](_0x296131,'insertion')){if(!_0x2441fb['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x2441fb['containsRangeInObject'])continue;if(!Xt(_0x17d0da,_0x37ac21))continue;let _0x4dff6b=!0x0;for(const _0x40ab1a of _0x17d0da['getRanges']())for(const _0x55167e of _0x296131)if(!_0x40ab1a['containsRange'](_0x55167e)){_0x4dff6b=!0x1;break;}if(_0x4dff6b)return _0x17d0da;}const _0x39ba99=_0x29bcf7(),_0x234ded=_0x3c9092['id'],_0x5ce9b4='insertion:'+_0x553069,_0x12ae17=this['_setSuggestionData']({'id':_0x39ba99,'type':_0x5ce9b4,'createdAt':new Date(),'authorId':_0x234ded,'attributes':_0x37ac21});for(const _0x146cc4 of _0x296131)this['_addSuggestionMarker'](_0x5ce9b4,_0x39ba99,_0x234ded,_0x146cc4,T['getMultiRangeId']());return _0x12ae17;}['markInlineFormat'](_0x1865b0,_0x1f0b7d,_0x5ef15f=null,_0x3a85fd={}){if(_0x5ef15f=_0x5ef15f||Lt(_0x1f0b7d),_0x1865b0['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x3a85fd['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5add69=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5ef15f,'accept');return this['forceDefaultExecution'](()=>_0x5add69([_0x1865b0],_0x1f0b7d,_0x3a85fd)),null;}const _0x5668e2=this['editor']['plugins']['get']('Users')['me'],_0x515196=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x5d473e,meta:_0x2fb57d}of this['_findSuggestions'](_0x1865b0,'insertion'))_0x2fb57d['isOwn']&&!_0x2fb57d['isInsideObject']&&_0x515196['push'](..._0x5d473e['getRanges']());}const _0x1a68ff=function(_0x234ac8,_0x481ca5){const _0x253cc2=[];for(const _0x1f20b1 of _0x481ca5){const _0x198e81=_0x234ac8['getIntersection'](_0x1f20b1);_0x198e81&&_0x253cc2['push'](_0x198e81);}return _0x253cc2;}(_0x1865b0,_0x515196),_0x4cda3b=function(_0x382051,_0x3eeb1a){const _0x587b29=[_0x382051];for(const _0x265f9d of _0x3eeb1a){let _0x270035=0x0;for(;_0x270035<_0x587b29['length'];){const _0x25e77f=_0x587b29[_0x270035]['getDifference'](_0x265f9d);_0x587b29['splice'](_0x270035,0x1,..._0x25e77f),_0x270035+=_0x25e77f['length'];}}return _0x587b29;}(_0x1865b0,_0x515196);_0x1a68ff['length']&&this['_model']['change'](()=>{for(const _0x1de951 of _0x1a68ff){const _0x1744c1=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5ef15f,'accept');this['forceDefaultExecution'](()=>_0x1744c1([_0x1de951],_0x1f0b7d,_0x3a85fd));}});for(const _0x498af9 of _0x4cda3b){let _0x2cf62e=null,_0x1096a1=_0x498af9['start'],_0x3eb996=_0x498af9['end'];for(const {suggestion:_0x3a4a34,meta:_0x5e8e71}of this['_findSuggestions'](_0x498af9,'formatInline')){if(!_0x5e8e71['isOwn'])continue;if(_0x3a4a34['subType']!=_0x5ef15f)continue;if(!Xt(_0x3a4a34,_0x3a85fd))continue;const _0x295e25=_0x3a4a34['getFirstRange']();if(_0x295e25['containsRange'](_0x498af9,!0x0))return null;_0x1096a1=_0x1096a1['isBefore'](_0x295e25['start'])?_0x1096a1:_0x295e25['start'],_0x3eb996=_0x3eb996['isAfter'](_0x295e25['end'])?_0x3eb996:_0x295e25['end'],_0x2cf62e?_0x295e25['start']['isBefore'](_0x2cf62e['getFirstRange']()['start'])?(_0x2cf62e['removeMarkers'](),_0x2cf62e=_0x3a4a34):_0x3a4a34['removeMarkers']():_0x2cf62e=_0x3a4a34;}const _0x52a390=this['_model']['createRange'](_0x1096a1,_0x3eb996);if(_0x2cf62e)this['_setSuggestionRange'](_0x2cf62e,_0x52a390);else{const _0x19c0b3=_0x29bcf7(),_0x316be1=_0x5668e2['id'];this['_setSuggestionData']({'id':_0x19c0b3,'type':'formatInline:'+_0x5ef15f,'data':_0x1f0b7d,'createdAt':new Date(),'authorId':_0x316be1,'attributes':_0x3a85fd}),this['_addSuggestionMarker']('formatInline:'+_0x5ef15f,_0x19c0b3,_0x316be1,_0x52a390);}}return null;}['markBlockFormat'](_0x1bbbc8,_0x34a993,_0xbba928=[],_0x3de955=null,_0x10357e={}){_0x34a993['formatGroupId']||(_0x34a993['formatGroupId']=_0x34a993['commandName']),_0x34a993['multipleBlocks']=_0x1bbbc8['is']('range'),_0x3de955=_0x3de955||Lt(_0x34a993);const _0x509938=_0xbba928['map'](_0x4c9cec=>zt(_0x4c9cec,this['_model'])),_0x3f617d=_0x1bbbc8['is']('range')?_0x1bbbc8:zt(_0x1bbbc8,this['_model']);if(this['_trackingSessionId']&&(_0x10357e['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x325bfb=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3de955,'accept');return this['forceDefaultExecution'](()=>_0x325bfb([_0x3f617d],_0x34a993,_0x10357e)),null;}_0x509938['push'](_0x3f617d);let _0x340cf0=!0x0;for(const _0x4e40b2 of _0x509938)if(!this['_rangeIsInLocalUserInsertion'](_0x4e40b2)){_0x340cf0=!0x1;break;}if(_0x340cf0&&'always'!==this['_trackFormatChanges']){const _0x3bc4a5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3de955,'accept');return this['forceDefaultExecution'](()=>_0x3bc4a5([_0x3f617d],_0x34a993,_0x10357e)),null;}let _0x4b8819=null,_0x3a446d=_0x3f617d['start'],_0x4279cc=_0x3f617d['end'];for(const {suggestion:_0x172183,meta:_0x313cc0}of this['_findSuggestions'](_0x3f617d,'formatBlock')){if(!_0x313cc0['isOwn'])continue;if(_0x313cc0['isNextTo']||_0x313cc0['containsRangeInObject']||_0x313cc0['isInsideObject'])continue;if(_0x172183['data']['formatGroupId']!=_0x34a993['formatGroupId'])continue;if(!Xt(_0x172183,_0x10357e))continue;const _0x550855=_0x172183['getFirstRange']();if(_0x172183['subType']==_0x3de955){if(_0x550855['containsRange'](_0x3f617d,!0x0))return null;_0x3a446d=_0x3a446d['isBefore'](_0x550855['start'])?_0x3a446d:_0x550855['start'],_0x4279cc=_0x4279cc['isAfter'](_0x550855['end'])?_0x4279cc:_0x550855['end'],_0x4b8819?_0x550855['start']['isBefore'](_0x4b8819['getFirstRange']()['start'])?(_0x4b8819['removeMarkers'](),_0x4b8819=_0x172183):_0x172183['removeMarkers']():_0x4b8819=_0x172183;}else{const _0xeccdae=_0x3f617d['getIntersection'](_0x550855);this['_cutOutSuggestionMarker'](_0x172183,_0xeccdae);}}const _0x9daced=this['editor']['plugins']['get']('Users')['me'],_0x56eb97=_0x29bcf7(),_0x1c05d1=_0x9daced['id'];if(_0x4b8819)return this['_setSuggestionRange'](_0x4b8819,this['_model']['createRange'](_0x3a446d,_0x4279cc)),_0x4b8819;{const _0x5db4ed=this['_setSuggestionData']({'id':_0x56eb97,'type':'formatBlock:'+_0x3de955,'data':_0x34a993,'createdAt':new Date(),'authorId':_0x1c05d1,'attributes':_0x10357e});return this['_addSuggestionMarker']('formatBlock:'+_0x3de955,_0x56eb97,_0x1c05d1,this['_model']['createRange'](_0x3a446d,_0x4279cc)),_0x5db4ed;}}['markMultiRangeBlockFormat'](_0x14a865,_0x5c3d3a,_0x4ceca0=[],_0x401aef=null,_0x2e11d9={}){_0x5c3d3a['formatGroupId']||(_0x5c3d3a['formatGroupId']=_0x5c3d3a['commandName']);const _0x48fd34=_0x14a865[0x0];_0x5c3d3a['multipleBlocks']=_0x48fd34['is']('range'),_0x401aef=_0x401aef||Lt(_0x5c3d3a);const _0x418b4c=_0x4ceca0['map'](_0x139053=>zt(_0x139053,this['_model'])),_0x3b6d6f=_0x48fd34['is']('range')?_0x14a865:_0x14a865['map'](_0x32e29a=>zt(_0x32e29a,this['_model']));if(this['_trackingSessionId']&&(_0x2e11d9['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x106980=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x401aef,'accept');return this['forceDefaultExecution'](()=>_0x106980(_0x3b6d6f,_0x5c3d3a,_0x2e11d9)),null;}_0x418b4c['push'](..._0x3b6d6f);let _0x169201=!0x0;for(const _0xc1c1e7 of _0x418b4c)if(!this['_rangeIsInLocalUserInsertion'](_0xc1c1e7)){_0x169201=!0x1;break;}if(_0x169201&&'always'!==this['_trackFormatChanges']){const _0x2a19af=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x401aef,'accept');return this['forceDefaultExecution'](()=>_0x2a19af(_0x3b6d6f,_0x5c3d3a,_0x2e11d9)),null;}const _0x3b822d=this['editor']['plugins']['get']('Users')['me'];for(const _0x63ba9e of this['getSuggestions']()){const _0x3c5493=_0x63ba9e['data'];if(_0x63ba9e['author']['id']!=_0x3b822d['id'])continue;if('formatBlock'!=_0x63ba9e['type']||_0x3c5493['formatGroupId']!=_0x5c3d3a['formatGroupId'])continue;if(!Xt(_0x63ba9e,_0x2e11d9))continue;const _0x123208=_0x63ba9e['subType']==_0x401aef;for(let _0x381298=0x0;_0x381298<_0x3b6d6f['length'];_0x381298++){const _0x17dc2e=_0x3b6d6f[_0x381298];for(const _0x2d7c2f of _0x63ba9e['getMarkers']()){const _0x1b2c08=_0x2d7c2f['getRange']();if(_0x17dc2e['isEqual'](_0x1b2c08)){_0x123208?(_0x3b6d6f['splice'](_0x381298,0x1),_0x381298--):_0x63ba9e['removeMarker'](_0x2d7c2f['name']);break;}}}}if(0x0==_0x3b6d6f['length'])return null;const _0x4b4448=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x401aef,'join');for(const _0x4e28f2 of this['getSuggestions']()){const _0x5a909d=_0x4e28f2['data'];if(_0x4e28f2['author']['id']==_0x3b822d['id']&&('formatBlock'==_0x4e28f2['type']&&_0x5a909d['formatGroupId']==_0x5c3d3a['formatGroupId']&&_0x4e28f2['subType']==_0x401aef&&Xt(_0x4e28f2,_0x2e11d9)&&(_0x4b4448(_0x4e28f2['getRanges'](),_0x3b6d6f)||_0x4b4448(_0x3b6d6f,_0x4e28f2['getRanges']())))){for(const _0xc23de1 of _0x3b6d6f)_0x4e28f2['addRange'](_0xc23de1);return _0x4e28f2;}}const _0x48f078=_0x29bcf7(),_0x51c629=_0x3b822d['id'],_0x3d0c61='formatBlock:'+_0x401aef,_0x4e8b12=this['_setSuggestionData']({'id':_0x48f078,'type':_0x3d0c61,'data':_0x5c3d3a,'createdAt':new Date(),'authorId':_0x51c629,'attributes':_0x2e11d9});for(const _0xf695cc of _0x3b6d6f)this['_addSuggestionMarker'](_0x3d0c61,_0x48f078,_0x51c629,_0xf695cc,T['getMultiRangeId']());return _0x4e8b12;}['markDeletion'](_0x3d11f8,_0x3d2ac7=null,_0x56c111={}){if(_0x3d11f8['isCollapsed'])return null;const _0x348b8d=this['editor']['plugins']['get']('Users')['me'],_0x565678=new _0x50a820(_0x3d11f8['start'],_0x3d11f8['end']);this['_trackingSessionId']&&(_0x56c111['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x277b5e,meta:_0x34b979}of this['_findSuggestions'](_0x565678,'insertion'))if(_0x34b979['isOwn']&&!_0x34b979['isNextTo']){if(_0x277b5e['isMultiRange']){const _0x366412=_0x277b5e['getRanges']()['filter'](_0x2979c7=>'$graveyard'!=_0x2979c7['root']['rootName']);_0x366412['every'](_0x43d4c2=>_0x565678['containsRange'](_0x43d4c2,!0x0))&&_0x277b5e['discard']();if(_0x366412['some'](_0x279270=>_0x279270['containsRange'](_0x565678,!0x0))){const _0x25c8c6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3d2ac7,'accept');return this['forceDefaultExecution'](()=>_0x25c8c6([_0x565678],null,_0x56c111)),null;}}else{const _0x4b716e=_0x565678['getIntersection'](_0x277b5e['getFirstRange']());null!==_0x4b716e&&_0x277b5e['_onDiscard']([_0x4b716e],null,_0x56c111);}}if(_0x565678['detach'](),_0x565678['isCollapsed']||'$graveyard'==_0x565678['root']['rootName'])return null;let _0x49b2bb=null,_0x4cc269=_0x565678['start'],_0x388033=_0x565678['end'];const _0x57db70=this['_findSuggestions'](_0x565678,'deletion');for(const {suggestion:_0x50aca9,meta:_0x4b400d}of _0x57db70){const _0x3c9212=this['_model']['createRange'](_0x4cc269,_0x388033);if(_0x4b400d['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4b400d['containsRangeInObject']&&!_0x4b400d['isInsideObject'])){if(_0x50aca9['isMultiRange']){if(!Xt(_0x50aca9,_0x56c111))continue;let _0xf4ded7=!0x0;for(const _0x351bd5 of _0x50aca9['getRanges']()){if(_0x351bd5['containsRange'](_0x3c9212,!0x0))return _0x50aca9;_0x3c9212['containsRange'](_0x351bd5)||(_0xf4ded7=!0x1);}_0xf4ded7&&_0x50aca9['discard']();}else{const _0x16cab5=_0x50aca9['getFirstRange']();if(_0x16cab5['containsRange'](_0x3c9212,!0x0))return _0x50aca9;if(!Xt(_0x50aca9,_0x56c111)){_0x3c9212['containsRange'](_0x16cab5)?_0x50aca9['removeMarkers']():_0x16cab5['containsPosition'](_0x4cc269)?_0x4cc269=_0x16cab5['end']:_0x16cab5['containsPosition'](_0x388033)&&(_0x388033=_0x16cab5['start']);continue;}_0x4cc269=_0x4cc269['isBefore'](_0x16cab5['start'])?_0x4cc269:_0x16cab5['start'],_0x388033=_0x388033['isAfter'](_0x16cab5['end'])?_0x388033:_0x16cab5['end'],_0x56c111=Object['assign']({},_0x50aca9['attributes']),_0x49b2bb?_0x16cab5['start']['isBefore'](_0x49b2bb['getFirstRange']()['start'])?(_0x49b2bb['removeMarkers'](),_0x49b2bb=_0x50aca9):_0x50aca9['removeMarkers']():_0x49b2bb=_0x50aca9;}}}if(_0x49b2bb)return this['_setSuggestionRange'](_0x49b2bb,this['_model']['createRange'](_0x4cc269,_0x388033)),_0x49b2bb;{const _0x5cfd47=_0x29bcf7(),_0xa6ee03=this['_model']['createRange'](_0x4cc269,_0x388033),_0x189382=_0x348b8d['id'],_0x3c46a6=_0x3d2ac7?'deletion:'+_0x3d2ac7:'deletion',_0x1a9c2a=this['_setSuggestionData']({'id':_0x5cfd47,'type':_0x3c46a6,'createdAt':new Date(),'authorId':_0x189382,'attributes':_0x56c111});return this['_addSuggestionMarker'](_0x3c46a6,_0x5cfd47,_0x189382,_0xa6ee03),_0x1a9c2a;}}['markMultiRangeDeletion'](_0x1460d7,_0x47f2b9='multi',_0x145ad3={}){const _0x477ba8=this['editor']['plugins']['get']('Users')['me'],_0xf272d1=_0x1460d7['map'](_0x56d570=>new _0x50a820(_0x56d570['start'],_0x56d570['end'])),_0x484177=new Set();this['_trackingSessionId']&&(_0x145ad3['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x229c88,meta:_0x56fa5c}of this['_findSuggestions'](_0xf272d1,'insertion'))_0x56fa5c['isOwn']&&!_0x56fa5c['isNextTo']&&_0x484177['add'](_0x229c88);for(const _0x1b5ea9 of _0x484177)if(_0x1b5ea9['isMultiRange']){const _0x37d750=_0x1b5ea9['getRanges']();(!_0x1b5ea9['attributes']||!_0x1b5ea9['attributes']['skipNestingCheck'])&&(_0x37d750['every'](_0x56eec6=>_0xf272d1['some'](_0x8fc467=>_0x8fc467['containsRange'](_0x56eec6,!0x0)))&&_0x1b5ea9['discard']());if(_0xf272d1['every'](_0x3a979c=>_0x37d750['some'](_0x498aa5=>_0x498aa5['containsRange'](_0x3a979c,!0x0)))){const _0x1f088b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x47f2b9,'accept');return this['forceDefaultExecution'](()=>_0x1f088b(_0x1460d7,null,_0x145ad3)),null;}}else{const _0xda3bed=_0x1b5ea9['getFirstRange']();_0xf272d1['some'](_0xd1918c=>_0xd1918c['containsRange'](_0xda3bed,!0x0))&&_0x1b5ea9['discard']();if(_0xf272d1['every'](_0x39ac6d=>_0xda3bed['containsRange'](_0x39ac6d,!0x0))){const _0x6e7bf0=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x47f2b9,'accept');return this['forceDefaultExecution'](()=>_0x6e7bf0(_0xf272d1,null,_0x145ad3)),null;}}const _0x376376=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x47f2b9,'join');let _0x2cc698=null;for(const _0x33fe18 of this['getSuggestions']())if(_0x33fe18['author']['id']==_0x477ba8['id']&&_0x33fe18['isInContent']&&'deletion'==_0x33fe18['type']&&_0x33fe18['subType']==_0x47f2b9&&Xt(_0x33fe18,_0x145ad3)&&(_0x376376(_0x33fe18['getRanges'](),_0xf272d1)||_0x376376(_0xf272d1,_0x33fe18['getRanges']()))){if(_0x2cc698){if(_0x33fe18['commentThread']&&_0x33fe18['commentThread']['length'])continue;for(const _0x55ca21 of _0x33fe18['getRanges']())_0x2cc698['isIntersectingWithRange'](_0x55ca21)||_0x2cc698['addRange'](_0x55ca21);_0x33fe18['removeMarkers']();}else{_0x2cc698=_0x33fe18;for(const _0x2a053b of _0xf272d1)_0x33fe18['isIntersectingWithRange'](_0x2a053b)||_0x33fe18['addRange'](_0x2a053b);}}if(_0x2cc698)return _0x2cc698;_0x484177['clear']();for(const {suggestion:_0x10ae91,meta:_0x3c67cf}of this['_findSuggestions'](_0xf272d1,'deletion'))_0x3c67cf['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3c67cf['containsRangeInObject']&&!_0x3c67cf['isInsideObject'])&&Xt(_0x10ae91,_0x145ad3)&&_0x484177['add'](_0x10ae91);for(const _0x49118e of _0x484177){const _0x4f13f7=_0x49118e['getRanges']();if(!_0x145ad3||!_0x145ad3['skipNestingCheck']){if(_0xf272d1['every'](_0xd22f60=>_0x4f13f7['some'](_0x12de1a=>_0x12de1a['containsRange'](_0xd22f60,!0x0))))return _0x49118e;}(!_0x49118e['attributes']||!_0x49118e['attributes']['skipNestingCheck'])&&(_0x4f13f7['every'](_0x48768a=>_0xf272d1['some'](_0x1b44dd=>_0x1b44dd['containsRange'](_0x48768a,!0x0)))&&_0x49118e['discard']());}const _0x400546=_0x29bcf7(),_0x119c08=_0x477ba8['id'],_0x78f903='deletion:'+_0x47f2b9,_0xa4749c=this['_setSuggestionData']({'id':_0x400546,'type':_0x78f903,'createdAt':new Date(),'authorId':_0x119c08,'attributes':_0x145ad3});for(const _0x4e8f08 of _0xf272d1)_0x4e8f08['detach'](),_0x4e8f08['isCollapsed']||'$graveyard'==_0x4e8f08['root']['rootName']||this['_addSuggestionMarker'](_0x78f903,_0x400546,_0x119c08,_0x4e8f08,T['getMultiRangeId']());return _0xa4749c;}['markAttributeChange'](_0x125f13,_0x29f151,_0x2b7bb8,_0x810ae,_0x21d784){if(_0x125f13['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x544933=this['editor']['plugins']['get']('Users')['me']['id'],_0x443643=Array['from'](this['_suggestions']['values']())['filter'](_0x488450=>'attribute'==_0x488450['type']&&_0x488450['data']['key']==_0x29f151&&_0x488450['isIntersectingWithRange'](_0x125f13));if(this['_trackingSessionId']&&(_0x21d784['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x58ca65=this['_findSuggestions'](_0x125f13,'insertion')['filter'](({meta:_0x10345b})=>_0x10345b['isOwn']&&!_0x10345b['isInsideObject']&&!_0x10345b['isNextTo'])['map'](({suggestion:_0xc6d79a})=>_0xc6d79a);_0x443643['unshift'](..._0x58ca65);}const _0xc5928d=new Map([[_0x125f13,_0x2b7bb8]]);for(const _0x352624 of _0x443643){const _0x73789='attribute'==_0x352624['type']?_0x352624['data']['oldValue']:void 0x0,_0x15f104=_0x352624['getFirstRange'](),_0x39f309=Array['from'](_0xc5928d['keys']())['find'](_0x498f07=>_0x498f07['isIntersecting'](_0x15f104));if(!_0x39f309)continue;const _0x121ab6=_0x39f309['getDifference'](_0x15f104);this['_isBlockAttribute'](_0x29f151)&&'insertion'==_0x352624['type']&&0x0!=_0x121ab6['length']||(_0xc5928d['delete'](_0x39f309),_0x121ab6['forEach'](_0x32bf99=>{_0xc5928d['set'](_0x32bf99,_0x2b7bb8);}),'insertion'!=_0x352624['type']&&_0x73789!=_0x810ae&&_0xc5928d['set'](_0x39f309['getIntersection'](_0x15f104),_0x73789));}const _0x3819e1=[];for(const [_0x6cc79e,_0x41ec94]of _0xc5928d){const _0x46e470=_0x29bcf7(),_0x47c7b2={'key':_0x29f151,'oldValue':_0x41ec94,'newValue':_0x810ae};_0x29f151['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':_0x29f151});const _0x5da93b=('attribute:'+(_0x29f151+'|'+Lt({'newValue':_0x810ae})))['substring'](0x0,0x3c),_0x49a1e0=this['_setSuggestionData']({'id':_0x46e470,'type':_0x5da93b,'data':_0x47c7b2,'createdAt':new Date(),'authorId':_0x544933,'attributes':_0x21d784});_0x3819e1['push'](_0x49a1e0),this['_addSuggestionMarker'](_0x5da93b,_0x46e470,_0x544933,_0x6cc79e);}return _0x3819e1;}['enableDefaultAttributesIntegration'](_0x2dd7f7){this['enableCommand'](_0x2dd7f7,(_0x39688c,..._0xfa9c9c)=>{this['recordAttributeChanges'](()=>{_0x39688c(..._0xfa9c9c);});});}['registerBlockAttribute'](_0x3bdc85){this['_blockAttributeKeys']['add'](_0x3bdc85);}['registerInlineAttribute'](_0xc67cb1){this['_inlineAttributeKeys']['add'](_0xc67cb1);}['startTrackingSession'](_0x12e7eb){return this['_trackingSessionId']=void 0x0!==_0x12e7eb?_0x12e7eb:_0x29bcf7(),this['_trackingSessionId'];}['_getAttributeKey'](_0x3d1a96){return'attribute'==_0x3d1a96['type']?_0x3d1a96['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x4a9f06,_0x306ffd){const _0x1d580b=_0x4a9f06['getFirstMarker']();this['_model']['change'](_0x35e79c=>{_0x35e79c['updateMarker'](_0x1d580b,{'range':_0x306ffd});});}['_addThreadToSuggestion'](_0x49b7af){const _0x30e385=_0x49b7af['id'],_0x743551=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x30e385)||this['_commentsRepository']['addCommentThread']({'channelId':_0x743551,'threadId':_0x30e385,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4ab3fe=this['_commentsRepository']['getCommentThread'](_0x30e385);_0x4ab3fe['unbind']('isRemovable'),_0x4ab3fe['isRemovable']=!0x1,_0x49b7af['commentThread']=_0x4ab3fe;}['_checkSuggestionCorrectness'](_0x58a3ef,_0x4670df,_0x582d9e,_0x34cc26){if(_0x58a3ef['type']!=_0x4670df||_0x58a3ef['subType']!=_0x582d9e||_0x58a3ef['creator']['id']!=_0x34cc26)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x56f143('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x285f00,_0x39ed30){const _0x336496=_0x285f00['getFirstRange']();if(_0x39ed30['isEqual'](_0x336496))_0x285f00['removeMarkers']();else{if(_0x336496['containsRange'](_0x39ed30)){const _0x320cc1=this['_model']['createPositionAt'](_0x39ed30['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x285f00,this['_model']['createRange'](_0x336496['start'],_0x320cc1));const _0x13e18c=_0x29bcf7(),_0x7a0961=_0x285f00['creator']['id'],_0x37dfde=_0x285f00['type']+':'+_0x285f00['subType'];this['_setSuggestionData']({'id':_0x13e18c,'type':_0x37dfde,'createdAt':new Date(),'authorId':_0x7a0961,'data':_0x285f00['data'],'attributes':_0x285f00['attributes']});const _0x26671a=this['_model']['createPositionAt'](_0x39ed30['end']['parent'],'after'),_0x2091fd=this['_model']['createRange'](_0x26671a,_0x336496['end']);this['_addSuggestionMarker'](_0x37dfde,_0x13e18c,_0x7a0961,_0x2091fd);}else{if(_0x336496['containsPosition'](_0x39ed30['start'])){const _0x239467=this['_model']['createPositionAt'](_0x39ed30['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x285f00,this['_model']['createRange'](_0x336496['start'],_0x239467));}else{const _0x30314e=this['_model']['createPositionAt'](_0x39ed30['end']['parent'],'after');this['_setSuggestionRange'](_0x285f00,this['_model']['createRange'](_0x30314e,_0x336496['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x39ff64){for(const {suggestion:_0x37c38d,meta:_0x4b9235}of this['_findSuggestions'](_0x39ff64,'insertion')){if(!_0x4b9235['isOwn'])continue;const _0x11cbe3=_0x37c38d['getRanges']();for(const _0x2f990e of _0x11cbe3)if(!_0x39ff64['getDifference'](_0x2f990e)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0xeadc4){return this['editor']['plugins']['get']('Users')['getUser'](_0xeadc4);}['_getExternalAuthor'](_0x2026fd){const _0x2601f3=this['editor']['plugins']['get']('Users'),_0x31d112=_0x547e54('external:'+_0x2026fd),_0x1ae6a0=_0x2601f3['getUser'](_0x31d112);return _0x1ae6a0||_0x2601f3['addUser']({'id':_0x31d112,'name':_0x2026fd});}['_createSuggestion'](_0x5e7094,_0x1f6b13,_0x2a2467,_0x5f0d12,_0x45c584,_0x5c63e0){const _0x177a07=this['_getAuthorFromId'](_0x5f0d12);if(!_0x177a07)throw new _0x56f143('track-changes-user-not-found',this,{'authorId':_0x5f0d12,'suggestionId':_0x2a2467});const _0x14a816=this['_suggestionFactory']['buildSuggestion'](_0x5e7094,_0x1f6b13,_0x2a2467,_0x177a07,_0x45c584,_0x1e4909=>{this['_updateSuggestionData'](_0x2a2467,{'attributes':_0x1e4909});const _0x2124d7=this['getSuggestion'](_0x2a2467);this['_joinWithAdjacentSuggestions'](new Set([_0x2124d7])),this['_refreshSuggestionsChain'](new Set([_0x2124d7]));},_0x5c63e0);return this['listenTo'](_0x14a816,'accept',()=>{this['_updateSuggestionData'](_0x2a2467,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x14a816,'discard',()=>{this['_updateSuggestionData'](_0x2a2467,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x2a2467,_0x14a816),this['_suggestionState']['set'](_0x14a816,'notReady'),_0x14a816;}['_splitMarkerName'](_0x54f2db){const _0x3dc672=_0x54f2db['split'](':');return{'group':_0x3dc672[0x0],'type':_0x3dc672[0x1],'subType':_0x3dc672['length']>=0x5?_0x3dc672[0x2]:null,'id':_0x3dc672['length']<0x5?_0x3dc672[0x2]:_0x3dc672[0x3],'authorId':_0x3dc672['length']<0x5?_0x3dc672[0x3]:_0x3dc672[0x4],'markerCount':0x6==_0x3dc672['length']?_0x3dc672[0x5]:null};}['_breakSuggestionMarker'](_0x38ed1d,_0x78b811,_0x27b28e){const _0x321642=_0x38ed1d['getFirstRange'](),_0x4722fb=_0x321642['start'],_0x298be5=_0x321642['end'];this['_setSuggestionRange'](_0x38ed1d,this['_model']['createRange'](_0x4722fb,_0x78b811));const _0xb0ba15=_0x29bcf7(),_0x395148=_0x38ed1d['creator']['id'],_0x2f6966=_0x38ed1d['type']+(_0x38ed1d['subType']?':'+_0x38ed1d['subType']:'');this['_setSuggestionData']({'id':_0xb0ba15,'type':_0x2f6966,'createdAt':new Date(),'authorId':_0x395148,'originalSuggestionId':_0x38ed1d['_originalSuggestionId']||_0x38ed1d['id'],'attributes':_0x38ed1d['attributes'],'data':_0x38ed1d['data']});const _0x11f2d1=this['_getAttributeKey'](_0x38ed1d);('formatBlock'==_0x38ed1d['type']||_0x11f2d1&&this['_isBlockAttribute'](_0x11f2d1))&&(_0x27b28e=this['_model']['createPositionBefore'](_0x27b28e['parent'])),this['_addSuggestionMarker'](_0x2f6966,_0xb0ba15,_0x395148,this['_model']['createRange'](_0x27b28e,_0x298be5));}['_findSuggestions'](_0x4d84c5,_0x2d0b65=null){const _0x2bb710=[],_0x156546=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x4d84c5)||(_0x4d84c5=[_0x4d84c5]);for(const _0x335fa6 of this['getSuggestions']()){if(!_0x335fa6['isInContent'])continue;if(_0x2d0b65&&_0x335fa6['type']!=_0x2d0b65)continue;let _0x3556a8=!0x1;for(const _0x2785fd of _0x335fa6['getRanges']()){for(const _0x5d031c of _0x4d84c5){const _0x46f740=_0x5d031c['start']['isEqual'](_0x2785fd['end'])||_0x5d031c['end']['isEqual'](_0x2785fd['start']);if(_0x46f740||_0x5d031c['getIntersection'](_0x2785fd)){const _0x1bc45b=_0x5d031c['containsRange'](_0x2785fd)&&Ft(this['_model']['schema'],_0x2785fd['start'],_0x5d031c),_0x1f4f3e=_0x2785fd['containsRange'](_0x5d031c)&&Ft(this['_model']['schema'],_0x5d031c['start'],_0x2785fd);_0x2bb710['push']({'suggestion':_0x335fa6,'meta':{'isOwn':_0x156546==_0x335fa6['author'],'isNextTo':_0x46f740,'isInsideObject':_0x1bc45b,'containsRangeInObject':_0x1f4f3e}}),_0x3556a8=!0x0;break;}}if(_0x3556a8)break;}}return _0x2bb710;}['_addSuggestionMarker'](_0x24ce51,_0x1b1c22,_0x28092b,_0x7ebd73,_0x1dd8f7){this['_model']['change'](_0x32db04=>{let _0x3afe50='suggestion:'+_0x24ce51+':'+_0x1b1c22+':'+_0x28092b;_0x1dd8f7&&(_0x3afe50=_0x3afe50+':'+_0x1dd8f7),_0x32db04['addMarker'](_0x3afe50,{'range':_0x7ebd73,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x30a62a){const _0x5d3b40=_0x30a62a['previous'],_0x4d079b=_0x30a62a['next'];_0x30a62a['previous']=null,_0x30a62a['next']=null,null!=_0x5d3b40&&_0x5d3b40['next']==_0x30a62a&&(_0x5d3b40['next']=_0x4d079b),null!=_0x4d079b&&_0x4d079b['previous']==_0x30a62a&&(_0x4d079b['previous']=_0x5d3b40),'ready'==this['_suggestionState']['get'](_0x30a62a)&&(this['_suggestionState']['set'](_0x30a62a,'removed'),this['fire']('suggestionUnloaded',_0x30a62a,_0x5d3b40,_0x4d079b));}['_setSuggestionData'](_0x1c3e42){const _0x597cfa=_0x1c3e42['id'],_0x2306e8=this['addSuggestionData'](_0x1c3e42);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x4e777e=this['editor']['plugins']['get']('PendingActions'),_0x1b2c27=_0x2306e8['hasComments'],_0x340d2e=_0x2306e8['subType']?_0x2306e8['type']+':'+_0x2306e8['subType']:_0x2306e8['type'],_0x5bf738=this['editor']['locale'],_0x2ef61b=_0x4e777e['add'](o(_0x5bf738,'PENDING_ACTION_SUGGESTION')),_0x39ee57={'id':_0x597cfa,'type':_0x340d2e,'hasComments':_0x1b2c27,'data':_0x1c3e42['data']||null,'originalSuggestionId':_0x1c3e42['originalSuggestionId']||null,'attributes':_0x2306e8['attributes']};this['_adapter']['addSuggestion'](_0x39ee57)['then'](_0x1e44d7=>{_0x2306e8['_saved']=!0x0,_0x4e777e['remove'](_0x2ef61b),_0x1e44d7&&_0x1e44d7['createdAt']&&(this['_suggestions']['get'](_0x597cfa)['createdAt']=_0x1e44d7['createdAt']);})['catch'](_0x4399f6=>{throw _0x3e241f('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x2306e8['discard']();}),_0x2306e8['stopListening'](),this['_suggestions']['delete'](_0x2306e8['id']),this['_suggestionState']['delete'](_0x2306e8),_0x4399f6;});}return _0x2306e8;}['_isBlockAttribute'](_0x1d9c9e){return this['_blockAttributeKeys']['has'](_0x1d9c9e);}['_isInlineAttribute'](_0x3ee743){return this['_inlineAttributeKeys']['has'](_0x3ee743);}['_updateSuggestionData'](_0x101081,_0x37ec3a){const _0x3f7694=this['editor']['plugins']['get']('PendingActions'),_0x4b2db4=this['getSuggestion'](_0x101081);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x4b2db4['_saved']){const _0x481994=_0x3f7694['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x101081,_0x37ec3a)['then'](()=>{_0x3f7694['remove'](_0x481994);});}else _0x4b2db4['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x101081,_0x37ec3a);});}}['_getSuggestionData'](_0x43098b){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x56f143('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x43098b);}['_handleNewSuggestionMarker'](_0x4cade0){const {id:_0x5a2663,type:_0x25065c,subType:_0x2b842f,authorId:_0x371d9f}=this['_splitMarkerName'](_0x4cade0),_0x40e199=this['_suggestions']['get'](_0x5a2663)||this['_createSuggestion'](_0x25065c,_0x2b842f,_0x5a2663,_0x371d9f,{});switch(this['_checkSuggestionCorrectness'](_0x40e199,_0x25065c,_0x2b842f,_0x371d9f),this['_suggestionState']['get'](_0x40e199)){case'notReady':this['_getSuggestionData'](_0x5a2663)['then'](_0x53046e=>{let _0x4f175a=Promise['resolve']();_0x53046e['hasComments']&&(_0x4f175a=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x5a2663})),_0x4f175a['then'](()=>{this['addSuggestionData'](_0x53046e)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x40e199,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x5a2663,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x40e199,'ready'),this['fire']('suggestionLoaded',_0x40e199);break;case'ready':this['fire']('suggestionChanged',_0x40e199);}return _0x40e199['addMarkerName'](_0x4cade0),_0x40e199;}['_refreshSuggestionsChain'](_0x289788){const _0x164816=Array['from'](_0x289788),_0x4eaff8=_0x164816['filter'](_0x33a070=>'attribute'==_0x33a070['type']);this['_refreshAttributeSuggestionsChain'](_0x4eaff8);const _0x32e76a=_0x164816['filter'](_0x5e9506=>!_0x5e9506['isMultiRange']&&'attribute'!=_0x5e9506['type']),_0x1da75e=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x516781=>!_0x516781['isMultiRange']&&'attribute'!=_0x516781['type']),_0x547200=_0x1da75e['filter'](_0x4e601a=>!_0x289788['has'](_0x4e601a)),_0x412f9b=new Map(_0x1da75e['map'](_0x568629=>[_0x568629,this['_suggestionFactory']['getSuggestionCallback'](_0x568629['type'],_0x568629['subType'],'chain')])),_0x7ebe82=new Map(_0x1da75e['map'](_0x19427d=>[_0x19427d,_0x19427d['getFirstRange']()])),_0x4efbad=new Set(),_0xa8aa67=new Set();for(let _0x344465=0x0;_0x344465<_0x32e76a['length'];_0x344465++)_0x339c38(_0x32e76a[_0x344465],_0x32e76a,_0x344465+0x1);for(let _0x1af0ea=0x0;_0x1af0ea<_0x32e76a['length'];_0x1af0ea++)_0x339c38(_0x32e76a[_0x1af0ea],_0x547200,0x0);const _0x582314=new Set();for(let _0x1cc7e2=0x0;_0x1cc7e2<_0x32e76a['length'];_0x1cc7e2++){const _0x251c18=_0x32e76a[_0x1cc7e2];!_0xa8aa67['has'](_0x251c18)&&_0x251c18['previous']&&(_0x582314['add'](_0x251c18['previous']),_0x251c18['previous']['next']===_0x251c18&&(_0x251c18['previous']['next']=null),_0x251c18['previous']=null),!_0x4efbad['has'](_0x251c18)&&_0x251c18['next']&&(_0x582314['add'](_0x251c18['next']),_0x251c18['next']['previous']===_0x251c18&&(_0x251c18['next']['previous']=null),_0x251c18['next']=null);}function _0x339c38(_0x4a1f0b,_0x4280a1,_0x4f3df4){for(let _0x54fb55=_0x4f3df4;_0x54fb55<_0x4280a1['length'];_0x54fb55++){const _0xe37400=_0x39c90c(_0x4a1f0b,_0x4280a1[_0x54fb55]);_0xe37400&&(_0xe37400[0x0]['next']=_0xe37400[0x1],_0xe37400[0x1]['previous']=_0xe37400[0x0],_0x4efbad['add'](_0xe37400[0x0]),_0xa8aa67['add'](_0xe37400[0x1]));}}function _0x39c90c(_0x1e64fc,_0x2135b1){if(_0x1e64fc['author']['id']!==_0x2135b1['author']['id'])return null;const _0x344f54=_0x412f9b['get'](_0x1e64fc)(_0x1e64fc,_0x2135b1,_0x7ebe82['get'](_0x1e64fc),_0x7ebe82['get'](_0x2135b1));if(!_0x344f54)return null;return _0x412f9b['get'](_0x2135b1)(_0x1e64fc,_0x2135b1,_0x7ebe82['get'](_0x1e64fc),_0x7ebe82['get'](_0x2135b1))?_0x344f54[0x1]['commentThread']&&_0x344f54[0x1]['commentThread']['length']?null:_0x344f54:null;}_0x582314['size']&&this['_refreshSuggestionsChain'](_0x582314);}['_refreshAttributeSuggestionsChain'](_0x3887a0){if(0x0==_0x3887a0['length'])return;const _0x3709f2=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x29a672=>'attribute'==_0x29a672['type']&&_0x29a672['_isDataLoaded']),_0x1b3f2a=[],_0x821b2a=new Map();for(const _0x1895ea of _0x3709f2){const _0x42ec34=_0x547e54(_0x1895ea['attributes']);_0x821b2a['has'](_0x42ec34)||(_0x821b2a['set'](_0x42ec34,_0x1b3f2a['length']),_0x1b3f2a['push']([]));const _0x526081=_0x821b2a['get'](_0x42ec34);_0x1b3f2a[_0x526081]['push'](_0x1895ea);}!(function(){_0x1b3f2a['sort']((_0xa48ad,_0x58c22c)=>{const _0xff2e68=_0xa48ad[0x0]['createdAt'],_0x46751d=_0x58c22c[0x0]['createdAt'];return _0xff2e68==_0x46751d?_0xa48ad[0x0]['attributes']['groupId']<_0x58c22c[0x0]['attributes']['groupId']?-0x1:0x1:_0xff2e68<_0x46751d?-0x1:0x1;});for(const _0x299028 of _0x1b3f2a)_0x299028['sort']((_0x3de71c,_0x1c84e6)=>_0x3de71c['id']<_0x1c84e6['id']?-0x1:0x1);}());for(let _0x5bb0c8=0x0;_0x5bb0c8<_0x1b3f2a['length'];_0x5bb0c8++){if(0x0==_0x1b3f2a[_0x5bb0c8]['length'])continue;const _0x1d82a7=[];for(let _0x221a25=_0x5bb0c8+0x1;_0x221a25<_0x1b3f2a['length'];_0x221a25++)0x0!=_0x1b3f2a[_0x221a25]['length']&&_0x4d4dc3(_0x1b3f2a[_0x5bb0c8],_0x1b3f2a[_0x221a25])&&_0x1d82a7['push'](_0x221a25);for(const _0x47444f of _0x1d82a7)_0x1b3f2a[_0x5bb0c8]=_0x1b3f2a[_0x5bb0c8]['concat'](_0x1b3f2a[_0x47444f]),_0x1b3f2a[_0x47444f]=[];}for(const _0x1b3b89 of _0x1b3f2a)for(let _0x122eb3=0x0;_0x122eb3<_0x1b3b89['length'];_0x122eb3++){const _0xeeff11=_0x1b3b89[_0x122eb3+0x1]||null;_0x1b3b89[_0x122eb3]['next']!==_0xeeff11&&(_0x1b3b89[_0x122eb3]['next']=_0xeeff11);}for(const _0x10b7af of _0x1b3f2a)for(let _0x9cf638=0x0;_0x9cf638<_0x10b7af['length'];_0x9cf638++){const _0x25f7f4=_0x10b7af[_0x9cf638-0x1]||null;_0x10b7af[_0x9cf638]['previous']!==_0x25f7f4&&(_0x10b7af[_0x9cf638]['previous']=_0x25f7f4);}function _0x4d4dc3(_0x2d4d20,_0x3d66cb){if(_0x2d4d20[0x0]['attributes']['groupId']!==_0x3d66cb[0x0]['attributes']['groupId']&&_0x2d4d20[0x0]['author']!==_0x3d66cb[0x0]['author'])return!0x1;if(!function(_0xc6fbbd,_0x2ea390){if(!_0xc6fbbd['hasComments']&&!_0x2ea390['hasComments'])return!0x0;if(_0xc6fbbd['hasComments']&&_0x2ea390['hasComments'])return!0x1;if(_0xc6fbbd['hasComments']&&_0x2ea390['createdAt']<_0xc6fbbd['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x2ea390['hasComments']&&_0xc6fbbd['createdAt']<_0x2ea390['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x2d4d20[0x0],_0x3d66cb[0x0]))return!0x1;const _0x10039a=Ut(_0x2d4d20[0x0]['attributes'],['groupId','trackingSessionId']),_0x537c77=Ut(_0x3d66cb[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x48888a(_0x10039a,_0x537c77))return!0x1;if(_0x2d4d20[0x0]['attributes']['groupId']==_0x3d66cb[0x0]['attributes']['groupId'])return!0x0;if(_0x2d4d20[0x0]['attributes']['trackingSessionId']!==_0x3d66cb[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x2d4d20['every'](_0x53d4dc=>_0x3d66cb['some'](_0x4f243f=>_0x53d4dc['getFirstRange']()['isEqual'](_0x4f243f['getFirstRange']())))&&_0x3d66cb['every'](_0x59deff=>_0x2d4d20['some'](_0x1903fe=>_0x59deff['getFirstRange']()['isEqual'](_0x1903fe['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x332f64){const _0x9e3819=Array['from'](_0x332f64),_0x502bb9=this['getSuggestions']({'skipNotAttached':!0x0}),_0x5f4fc=_0x502bb9['filter'](_0x3c41e7=>!_0x332f64['has'](_0x3c41e7)),_0x3878cc=new Map(_0x9e3819['map'](_0x1c416a=>[_0x1c416a,this['_suggestionFactory']['getSuggestionCallback'](_0x1c416a['type'],_0x1c416a['subType'],'join')])),_0x7de0b6=new Map(_0x502bb9['map'](_0x21b8d0=>[_0x21b8d0,_0x21b8d0['getRanges']()]));for(let _0x2f45f1=0x0;_0x2f45f1<_0x9e3819['length'];_0x2f45f1++){if(_0x4ad341(this,_0x9e3819[_0x2f45f1],_0x9e3819,_0x2f45f1+0x1))return!0x0;}for(let _0x2b7eb7=0x0;_0x2b7eb7<_0x9e3819['length'];_0x2b7eb7++){if(_0x4ad341(this,_0x9e3819[_0x2b7eb7],_0x5f4fc,0x0))return!0x0;}return!0x1;function _0x4ad341(_0x124170,_0x230890,_0x990a2d,_0x1cd846){for(let _0x4a47c3=_0x1cd846;_0x4a47c3<_0x990a2d['length'];_0x4a47c3++){const _0x130e54=_0x990a2d[_0x4a47c3];if(_0x130e54['type']!==_0x230890['type']||_0x130e54['author']['id']!==_0x230890['author']['id']||_0x130e54['subType']!==_0x230890['subType'])continue;if(!Qt(_0x230890,_0x130e54))continue;if('attribute'==_0x230890['type']&&_0x230890['data']['oldValue']!=_0x130e54['data']['oldValue'])continue;if('attribute'==_0x230890['type']&&_0x124170['_isBlockAttribute'](_0x230890['data']['key']))continue;if('formatBlock'==_0x230890['type']){const _0x53f6a8=_0x124170['editor']['model'],_0x3be528=_0x230890['getContainedElement']();if(_0x3be528&&(_0x53f6a8['schema']['isObject'](_0x3be528)||_0x53f6a8['schema']['isLimit'](_0x3be528)))continue;}const _0x1c64a6=_0x3878cc['get'](_0x230890),_0x371074=_0x7de0b6['get'](_0x230890),_0x5b4877=_0x7de0b6['get'](_0x130e54),_0x208458=_0x230890['commentThread']&&_0x230890['commentThread']['length'],_0x1b9586=_0x130e54['commentThread']&&_0x130e54['commentThread']['length'];if(!_0x208458&&_0x1c64a6(_0x5b4877,_0x371074))return _0x124170['_joinSuggestions'](_0x130e54,_0x230890),_0x7de0b6['delete'](_0x230890),!0x0;if(!_0x1b9586&&_0x1c64a6(_0x371074,_0x5b4877))return _0x124170['_joinSuggestions'](_0x230890,_0x130e54),_0x7de0b6['delete'](_0x130e54),!0x0;}return!0x1;}}['_joinSuggestions'](_0x47a4dc,_0x5f4c33){if(_0x47a4dc['isMultiRange']){for(const _0x3753db of _0x5f4c33['getRanges']())_0x47a4dc['addRange'](_0x3753db);}else{const _0x279db9=_0x5f4c33['getFirstRange']()['end'];this['_setSuggestionRange'](_0x47a4dc,this['_model']['createRange'](_0x47a4dc['getFirstRange']()['start'],_0x279db9));}_0x5f4c33['removeMarkers']();}['_getMarkerAnnouncementText'](_0x36ca4c,_0x2d6bc9,_0x504ddd){const _0x3a90a5=_0x36ca4c['startsWith']('format')||_0x36ca4c['startsWith']('attribute')?'FORMATTING':_0x36ca4c['toUpperCase']();return o(this['editor']['locale'],_0x2d6bc9+'_'+_0x3a90a5+'_SUGGESTION_ANNOUNCEMENT',_0x504ddd);}['_initAriaMarkerChangeAnnouncements'](){const _0x354081=this['editor'];if(!_0x354081['ui'])return;const {ariaLiveAnnouncer:_0x6dc1a9}=_0x354081['ui'];_0x1bb4cb(this['_model'],({left:_0x194ea8,entered:_0x3fe73b})=>{for(const _0x31ec63 of _0x194ea8){const {group:_0x3ef952,type:_0xb7be56}=this['_splitMarkerName'](_0x31ec63['name']);if('suggestion'===_0x3ef952){_0x6dc1a9['announce'](this['_getMarkerAnnouncementText'](_0xb7be56,'LEAVE'));break;}}for(const _0x4960b1 of _0x3fe73b){const {group:_0x2c0f05,type:_0x223ace}=this['_splitMarkerName'](_0x4960b1['name']);if('suggestion'===_0x2c0f05){_0x6dc1a9['announce'](this['_getMarkerAnnouncementText'](_0x223ace,'ENTER',_0x5e1f5f(_0x27f0cb)));break;}}});}['_processAttributeChanges'](_0x2c0c7a){if(this['_recordAttributeSuggestions'])return!0x1;const _0x40a05c=this['editor'],_0x1998e0=_0x40a05c['model']['document']['differ']['getChanges']();if(0x0==_0x1998e0['length'])return!0x1;const _0x3384a8=[],_0x2e28b3=_0x1998e0['filter'](_0x4f914f=>'attribute'==_0x4f914f['type']),_0x51f454=_0x1998e0['filter'](_0x213d39=>'insert'==_0x213d39['type']&&'$text'!=_0x213d39['name']),_0x44e3d4=_0x1998e0['filter'](_0x1d1bf5=>'remove'==_0x1d1bf5['type']&&'$text'!=_0x1d1bf5['name']);for(const _0x3f1efb of _0x2e28b3)_0x3384a8['push']({'key':_0x3f1efb['attributeKey'],'newValue':_0x3f1efb['attributeNewValue'],'oldValue':_0x3f1efb['attributeOldValue'],'range':qt(_0x3f1efb['range'],_0x40a05c['model'])});for(const _0x3a3666 of _0x51f454){const _0x4cc88c=_0x44e3d4['find'](_0x855308=>_0x855308['position']['isEqual'](_0x3a3666['position']));_0x4cc88c&&_0x3384a8['push']({'key':m,'newValue':_0x3a3666['name'],'oldValue':_0x4cc88c['name'],'range':_0x40a05c['model']['createRangeOn'](_0x3a3666['position']['nodeAfter'])});}return 0x0!=_0x3384a8['length']&&this['_reduceExistingSuggestions'](_0x2c0c7a,_0x3384a8);}['_processAttributeSuggestions'](_0x58a7ff){let _0x5485c0=!0x1;const _0x1e0a60=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xa44502=>_0xa44502['data']['newRange']&&_0xa44502['name']['startsWith']('suggestion:attribute:'));for(const _0x553102 of _0x1e0a60){const {subType:_0x59070c,id:_0x559bb4}=this['_splitMarkerName'](_0x553102['name']),_0x5ad942=_0x59070c['split']('|')[0x0];for(const _0x35e99e of this['getSuggestions']({'skipNotAttached':!0x0}))_0x35e99e['id']!=_0x559bb4&&'attribute'==_0x35e99e['type']&&_0x35e99e['data']&&_0x35e99e['data']['key']==_0x5ad942&&_0x35e99e['getFirstRange']()['isIntersecting'](_0x553102['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x35e99e,_0x553102['data']['newRange'],_0x58a7ff),_0x5485c0=!0x0);}return _0x5485c0;}['recordAttributeChanges'](_0x3646de){this['_recordAttributeSuggestions']=!0x0,_0x3646de();}['_isRegisteredAttribute'](_0x48ba3c){const _0x276789=this['_isBlockAttribute'](_0x48ba3c),_0x11d9e0=this['_isInlineAttribute'](_0x48ba3c);return _0x276789||_0x11d9e0;}['_reduceExistingSuggestions'](_0x2a46e7,_0x27b267){if(0x0==_0x27b267['length'])return!0x1;let _0x3cb668=!0x1;for(const _0xbfaeef of _0x27b267){const _0x93c3ac=this['_findSuggestions'](_0xbfaeef['range'],'attribute')['filter'](_0x38f3a1=>!_0x38f3a1['meta']['isNextTo'])['map'](_0x239979=>_0x239979['suggestion']),_0x50ed7e=_0x547e54({'newValue':_0xbfaeef['newValue']});_0x93c3ac['filter'](_0x59f36e=>{const [_0xe75b67,_0x46cd90]=_0x59f36e['subType']['split']('|');return _0xe75b67==_0xbfaeef['key']&&_0x46cd90!=_0x50ed7e;})['forEach'](_0x865606=>{this['_reduceSuggestionAttributeRange'](_0x865606,_0xbfaeef['range'],_0x2a46e7),_0x3cb668=!0x0;});}return _0x3cb668;}['_reduceSuggestionAttributeRange'](_0x866431,_0x4ff801,_0x37ff04){const _0x561fc3=_0x866431['getFirstRange']()['getDifference'](_0x4ff801);0x0!==_0x561fc3['length']?0x1!==_0x561fc3['length']?this['_breakSuggestionMarker'](_0x866431,_0x4ff801['start'],_0x4ff801['end']):this['_setSuggestionRange'](_0x866431,_0x561fc3[0x0]):_0x37ff04['removeMarker'](_0x866431['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0xcc8b9e){this['_editor']=_0xcc8b9e,this['_model']=_0xcc8b9e['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0xd198ef,_0x3ce79b,_0x9a8a58,_0x2871e3,_0x577180,_0x35321f,_0x4280b7){return new T(this['_model'],{'type':_0xd198ef,'subType':_0x3ce79b,'id':_0x9a8a58,'originalSuggestionId':_0x4280b7,'author':_0x2871e3,'creator':_0x2871e3,'attributes':_0x577180,'onAttributesChange':_0x35321f,'onAccept':(..._0xbd54ab)=>this['getSuggestionCallback'](_0xd198ef,_0x3ce79b,'accept')(..._0xbd54ab),'onDiscard':(..._0x39b8e3)=>this['getSuggestionCallback'](_0xd198ef,_0x3ce79b,'discard')(..._0x39b8e3)});}['registerCustomCallback'](_0x4b29cf,_0x2b3857,_0x3a5cd2,_0x8fec63){const _0x4a50ee=_0x4b29cf+':'+_0x2b3857+':'+_0x3a5cd2;this['_customCallbacks']['set'](_0x4a50ee,_0x8fec63);}['getSuggestionCallback'](_0x30245e,_0x2d0348,_0x2bebb0){const _0x27b461=_0x30245e+':'+_0x2d0348+':'+_0x2bebb0;return this['_customCallbacks']['get'](_0x27b461)||this['_defaultCallbacks']['get'](_0x30245e+':'+_0x2bebb0);}['_registerDefaultCallbacks'](){const _0x940294=()=>!0x1,_0x5cdd41=_0x4a8eaf=>{_0x4a8eaf['sort']((_0x25743a,_0x247aa3)=>_0x25743a['start']['isBefore'](_0x247aa3['start'])?0x1:-0x1),this['_model']['change'](_0x5ef20f=>{for(const _0x1501f3 of _0x4a8eaf){let _0x50f03b;_0x50f03b=_0x1501f3['end']['isAtEnd']&&_0x1501f3['end']['parent']==_0x1501f3['start']['nodeAfter']?_0x5ef20f['createSelection'](_0x1501f3['start']['nodeAfter'],'on'):_0x5ef20f['createSelection'](_0x1501f3),this['_model']['deleteContent'](_0x50f03b,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x295d68=(_0x2b038f,_0x6b6e8b)=>{_0x6b6e8b&&this['_model']['change'](_0x482eb0=>{const {commandName:_0x1d1db4,commandParams:_0x4221d4=[]}=_0x6b6e8b,_0x41d495=_0x2b038f['map'](_0x2b1ea3=>(Pt(_0x2b1ea3)&&(_0x2b1ea3=this['_model']['createRange'](_0x2b1ea3['end'])),_0x2b1ea3))['filter'](_0x2d8156=>'$graveyard'!==_0x2d8156['root']['rootName']);if(_0x41d495['length']<0x1)return;const _0x29d7de=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x48c49d=>_0x50a820['fromRange'](_0x48c49d));_0x482eb0['setSelection'](_0x41d495);for(const _0x19da16 of this['_editor']['commands']['commands']())_0x19da16['refresh']();_0x4221d4['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1d1db4,..._0x4221d4);const _0x9a86b=_0x29d7de['filter'](_0x1fb40a=>'$graveyard'!=_0x1fb40a['root']['rootName']);_0x9a86b['length']>0x0&&_0x482eb0['setSelection'](_0x9a86b);for(const _0x2a8675 of _0x29d7de)_0x2a8675['detach']();});},_0x539659=(_0x513a6b,_0x37e8e0)=>0x1==_0x513a6b['length']&&0x1==_0x37e8e0['length']&&_0x513a6b[0x0]['end']['isEqual'](_0x37e8e0[0x0]['start']),_0x10c3d0=(_0x3e6450,_0x54d71c,_0x27b0fc,_0x97e59)=>Wt(_0x3e6450,_0x54d71c,_0x27b0fc,_0x97e59)?[_0x3e6450,_0x54d71c]:Wt(_0x54d71c,_0x3e6450,_0x97e59,_0x27b0fc)?[_0x54d71c,_0x3e6450]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x940294),this['_defaultCallbacks']['set']('insertion:discard',_0x5cdd41),this['_defaultCallbacks']['set']('insertion:join',_0x539659),this['_defaultCallbacks']['set']('insertion:chain',_0x10c3d0),this['_defaultCallbacks']['set']('deletion:accept',_0x5cdd41),this['_defaultCallbacks']['set']('deletion:discard',_0x940294),this['_defaultCallbacks']['set']('deletion:join',_0x539659),this['_defaultCallbacks']['set']('deletion:chain',_0x10c3d0),this['_defaultCallbacks']['set']('formatInline:accept',_0x295d68),this['_defaultCallbacks']['set']('formatInline:discard',_0x940294),this['_defaultCallbacks']['set']('formatInline:join',_0x539659),this['_defaultCallbacks']['set']('formatInline:chain',_0x940294),this['_defaultCallbacks']['set']('formatBlock:accept',_0x295d68),this['_defaultCallbacks']['set']('formatBlock:discard',_0x940294),this['_defaultCallbacks']['set']('formatBlock:join',_0x539659),this['_defaultCallbacks']['set']('formatBlock:chain',_0x940294),this['_defaultCallbacks']['set']('attribute:accept',_0x940294),this['_defaultCallbacks']['set']('attribute:discard',(_0x3ba524,_0x5cc32e)=>{if(!_0x5cc32e)return;const _0x15ba48=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x219f63=>{if(_0x5cc32e['key']==m)for(const _0xda7650 of _0x3ba524){const _0x338647=_0xda7650['start']['nodeAfter'],_0x469192=_0x5cc32e['oldValue'];_0x219f63['rename'](_0x338647,_0x469192);}else{if(_0x15ba48['_isBlockAttribute'](_0x5cc32e['key'])){for(const _0x30e90d of _0x3ba524)void 0x0!==_0x5cc32e['oldValue']?_0x219f63['setAttribute'](_0x5cc32e['key'],_0x5cc32e['oldValue'],_0x30e90d['start']['nodeAfter']):_0x219f63['removeAttribute'](_0x5cc32e['key'],_0x30e90d['start']['nodeAfter']);}else{for(const _0x7afd1d of _0x3ba524)_0x5cc32e['oldValue']?_0x219f63['setAttribute'](_0x5cc32e['key'],_0x5cc32e['oldValue'],_0x7afd1d):_0x219f63['removeAttribute'](_0x5cc32e['key'],_0x7afd1d);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x539659);}}function Ft(_0x5aaa9e,_0x37151a,_0x1fce8d){for(const _0x5e688e of _0x37151a['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5e688e['root']==_0x5e688e)return!0x1;if(!_0x1fce8d['containsItem'](_0x5e688e))return!0x1;if(_0x5aaa9e['isObject'](_0x5e688e)||_0x5aaa9e['isLimit'](_0x5e688e))return!0x0;}return!0x1;}function Pt(_0x508cc2){return _0x508cc2['end']['parent']==_0x508cc2['start']['nodeAfter']&&_0x508cc2['end']['isAtStart'];}function Gt(_0x5822af,_0x4b4fbb,_0x43ff15,_0x15e9a1){const _0x4ba82d=_0x5846d3=>!_0x5846d3['item']['is']('$textProxy')&&!_0x15e9a1['isObject'](_0x5846d3['item']),_0x134065=_0x5822af['start']['getLastMatchingPosition'](_0x4ba82d),_0x3c0f9a=_0x5822af['end']['getLastMatchingPosition'](_0x4ba82d,{'direction':'backward'});return(!_0x5822af['start']['isEqual'](_0x134065)||!_0x5822af['end']['isEqual'](_0x3c0f9a))&&(_0x134065['isBefore'](_0x3c0f9a)?_0x43ff15['updateMarker'](_0x4b4fbb,{'range':_0x43ff15['createRange'](_0x134065,_0x3c0f9a)}):_0x43ff15['removeMarker'](_0x4b4fbb),!0x0);}function Lt(_0x11f03e){return _0x547e54(_0x11f03e);}function Jt(_0x548e63){const _0x5a326c=_0x548e63['start']['nodeAfter'];return _0x5a326c&&_0x5a326c['is']('element');}function Kt(_0x10d0f1){return Pt(_0x10d0f1)||function(_0x119e34){return _0x119e34['start']['parent']==_0x119e34['end']['nodeBefore']&&_0x119e34['start']['isAtEnd'];}(_0x10d0f1);}function Ht(_0x104981,_0x53f788){try{const _0x1b879b=_0x104981['getRange']();for(const _0x57f7d3 of _0x53f788)if(_0x104981!==_0x57f7d3&&_0x1b879b&&_0x1b879b['isIntersecting'](_0x57f7d3['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function qt(_0x330ab8,_0xfb9023){return null==_0x330ab8['end']['nodeBefore']&&_0x330ab8['end']['parent']==_0x330ab8['start']['nodeAfter']?zt(_0x330ab8['start']['nodeAfter'],_0xfb9023):_0x330ab8;}function zt(_0x22cb69,_0x5da3fb){const _0x11d4a5=_0x5da3fb['schema']['isObject'](_0x22cb69)||_0x5da3fb['schema']['isSelectable'](_0x22cb69);return _0x5da3fb['createRange'](_0x5da3fb['createPositionAt'](_0x22cb69,'before'),_0x11d4a5?_0x5da3fb['createPositionAfter'](_0x22cb69):_0x5da3fb['createPositionAt'](_0x22cb69,'end'));}function Wt(_0x4017fe,_0x3988f8,_0x127b31,_0x1c8ab9){return!!Qt(_0x4017fe,_0x3988f8)&&_0x127b31['end']['isEqual'](_0x1c8ab9['start']);}function Qt(_0x135c43,_0x3ed133){if(!_0x135c43['_isDataLoaded']||!_0x3ed133['_isDataLoaded'])return!0x1;const _0x17ffca=new Set(Object['keys'](_0x135c43['attributes'])),_0x1f6317=new Set(Object['keys'](_0x3ed133['attributes']));if(_0x17ffca['delete']('groupId'),_0x1f6317['delete']('groupId'),0x0==_0x17ffca['size']&&0x0==_0x1f6317['size'])return!0x0;if(_0x17ffca['size']!=_0x1f6317['size'])return!0x1;const _0x449e10={..._0x135c43['attributes']},_0x370f15={..._0x3ed133['attributes']};return delete _0x449e10['groupId'],delete _0x370f15['groupId'],JSON['stringify'](_0x449e10)==JSON['stringify'](_0x370f15);}function Xt(_0x2f3d8d,_0x4d3eeb){const _0x9f790f=Yt(_0x2f3d8d['attributes']),_0x589aa3=Yt(_0x4d3eeb);if(!_0x2f3d8d['_isDataLoaded'])return!0x1;for(const _0x9ac141 of Object['keys'](_0x589aa3))if(!_0x48888a(_0x9f790f[_0x9ac141],_0x589aa3[_0x9ac141]))return!0x1;return!0x0;}function Yt(_0x5e1cf5){const _0x3629fd=Object['assign']({},_0x5e1cf5);return delete _0x3629fd['skipNestingCheck'],delete _0x3629fd['tablePasteChainId'],_0x3629fd;}class pe extends/* #__PURE__ -- @preserve */
26
- _0x290c21(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x312665,_0x4de43c,_0xaf22d7,_0x5f57bf){super(),this['model']=_0x4de43c,this['view']=_0xaf22d7,this['commentThreadController']=_0x5f57bf,this['_editor']=_0x312665,this['_acceptCommand']=_0x312665['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x312665['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x2b7cd2,_0x1cacd2)=>_0x2b7cd2||_0x1cacd2),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x124ee6=>_0x124ee6&&this['_editor']['model']['canEditAt'](_0x4de43c['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x102483=>_0x102483&&this['_editor']['model']['canEditAt'](_0x4de43c['getRanges']())),this['_pendingAction']=null,_0xaf22d7['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0xaf22d7,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0xaf22d7,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0xaf22d7,'change:isDirty',()=>{_0xaf22d7['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 _0x38c3d1=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x38c3d1);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x434eb5{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0xf15df7,_0x55f430,_0x43f145,_0xaa705){super(_0xf15df7),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x2d2058(_0xf15df7,o(_0xf15df7,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x55f430['authoredAt']),this['bind']('authoredAt')['to'](_0x55f430),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',_0x55f430,'authoredAt',this,'descriptionParts',(_0x37c0b8,_0x3a5ad7,_0x451e0d)=>{const _0x40a3e5=_0x451e0d['map'](_0x455492=>ls(_0x455492['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x37c0b8-0x1,_0x55f430['author']['name'],_0x3a5ad7?_0xaa705['formatDateTime'](_0x3a5ad7):'',new DOMParser()['parseFromString'](_0x40a3e5,'text/html')['body']['textContent']]);}),this['focusables']=new _0x3162c6(),this['focusTracker']=new _0x47b4e3(),this['keystrokes']=new _0x554820(),this['focusCycler']=new _0x3fedb7({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x341571=>_0x341571['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x55f430,this['_localUser']=_0x43f145,this['_config']=_0xaa705,_0xaa705['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0xa5c0ff(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x139e28}=this['_config'];this['commentsListView']=new _0x139e28(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',_0x3bd398=>_0x3bd398+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x2930fa,_0x253693)=>_0x2930fa||!!_0x253693);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x162c0b}=this['_config'],_0x246510=new _0x162c0b(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x575d05=_0x246510['commentInputView'];return _0x246510['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x575d05,'value',(_0x4b80fc,_0x55699b,_0x253404)=>!!_0x253404||_0x4b80fc&&!_0x55699b),_0x575d05['on']('submit',(_0x3c0b3d,_0x260d12)=>{this['fire']('addComment',_0x260d12),_0x575d05['editor']['setData']('');}),_0x575d05['on']('cancel',()=>this['focus']()),_0x575d05['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x246510;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x57c738,_0x4fa9af,_0x2f879b,_0x5b960d){super(_0x57c738,_0x4fa9af,_0x2f879b,_0x5b960d),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0xdf4c37=>_0xdf4c37&&_0xdf4c37[0x0]?_0xdf4c37[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x588c01,_0x370a57)=>{let _0x371f51='';for(const _0x49ce55 of _0x588c01)_0x371f51+='<p>'+ls(_0x49ce55['content'],_0x49ce55['color'])+'</p>';return _0x370a57?_0x371f51:_0x5488c(_0x371f51,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x5b960d['SuggestionView'](_0x57c738,_0x4fa9af,{'formatDateTime':_0x5b960d['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 _0x3b64d0=this['bindTemplate'],_0xf86ff3=[this['suggestionView']];return this['commentsListView']&&_0xf86ff3['push'](this['commentsListView']),this['commentThreadInputView']&&_0xf86ff3['push'](this['commentThreadInputView']),_0xf86ff3['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x3b64d0['if']('isActive','ck-suggestion-wrapper--active'),_0x3b64d0['to']('type',_0x4966ca=>'ck-suggestion-'+_0x4966ca),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':_0x3b64d0['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0xf86ff3};}['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 _0x434eb5{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x15e8e4,_0x5e5009,_0x13a939){super(_0x15e8e4),this['_model']=_0x5e5009,this['_config']=_0x13a939,this['set']('description',''),this['bind']('authoredAt')['to'](_0x5e5009),this['acceptButton']=this['_createButton'](o(_0x15e8e4,'Accept\x20suggestion'),_0x3cb433,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x15e8e4,'Discard\x20suggestion'),_0x2259c8,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x4f2257(_0x15e8e4,_0x5e5009['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x3162c6([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x47b4e3(),this['keystrokes']=new _0x554820(),this['focusCycler']=new _0x3fedb7({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x2f2a40=>_0x2f2a40['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x17bfc0=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x17bfc0['innerHTML']=this['description'],this['on']('change:description',(_0x579dd2,_0x2f1456,_0x432457)=>{_0x17bfc0['innerHTML']=_0x432457;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x112639=this['bindTemplate'],_0x33912a=[{'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':_0x112639['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x112639['to']('authoredAt',_0x5ea553=>this['_config']['formatDateTime'](_0x5ea553))}]}]},{'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']&&_0x33912a['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':_0x33912a}]};}['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'](_0x4d3b22,_0x9479ff,_0x20d837,_0x19358b,_0x251d88){const _0x598426=new _0x6543dc(this['locale']);return _0x598426['set']({'label':_0x4d3b22,'icon':_0x9479ff,'tooltip':!0x0,'tooltipPosition':_0x251d88}),_0x598426['extendTemplate']({'attributes':{'class':_0x20d837}}),_0x598426['on']('execute',()=>{this['fire'](_0x19358b,this['_model']['id']);}),_0x598426;}['_setupKeyboardNavigation'](){const _0x4b0877=this['element'];this['keystrokes']['listenTo'](_0x4b0877);for(const _0x3a26f8 of this['focusables'])this['focusTracker']['add'](_0x3a26f8['element']),this['keystrokes']['listenTo'](_0x3a26f8['element']);this['keystrokes']['set']('enter',(_0x28af1f,_0x32c5c2)=>{_0x4b0877===_0x28af1f['target']&&(this['focusCycler']['focusFirst'](),_0x32c5c2());}),this['keystrokes']['set']('esc',(_0x1b26a7,_0x111f0e)=>{_0x4b0877!==_0x1b26a7['target']&&(this['focus'](),_0x111f0e());});}}class u extends _0xe680e7{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x9e4cfc,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3e3f47){super(_0x3e3f47),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x16e6d6=this['editor']['config'];_0x16e6d6['define']('trackChanges.SuggestionThreadView',fe),_0x16e6d6['define']('trackChanges.SuggestionView',we),_0x16e6d6['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x16e6d6['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x12b4ae,_0x396357){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x556a04,_0x3675be]of this['_handleControllerBuffer']){const _0x290c90=this['_suggestionToController']['has'](_0x556a04);_0x290c90||_0x3675be?_0x290c90&&_0x3675be&&this['_destroyController'](_0x556a04):this['_initializeController'](_0x556a04);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x12b4ae,_0x396357);}['init'](){const _0x5e133c=this['editor'],_0x3ea40d=_0x5e133c['plugins']['get']('TrackChangesEditing'),_0x2b992b=_0x5e133c['plugins']['get']('Annotations'),_0x720999=_0x5e133c['plugins']['get']('EditorAnnotations'),_0x805988=_0x5e133c['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x720999['addSourceCollector'](()=>{const _0x50501f=[];for(const [_0x4ec537,_0x26095c]of Array['from'](this['_suggestionToController'])){const _0x595507=_0x4ec537['getAllAdjacentSuggestions'](),_0x4c61b1=[];for(const _0x5c01ec of _0x595507){if(!_0x5c01ec['isInContent'])continue;if(_0x5c01ec['isMultiRange']){_0x4c61b1['push'](..._0x5c01ec['getRanges']());continue;}const _0x5de067=_0x5c01ec['getFirstRange']();if(_0x4c61b1['length']>0x0){const _0x2edf20=_0x4c61b1[0x0]['getJoined'](_0x5de067);if(_0x2edf20){_0x4c61b1[0x0]=_0x2edf20;continue;}}_0x4c61b1['push'](_0x5de067);}_0x50501f['push']([_0x26095c['view'],_0x4c61b1]);}return _0x50501f;}),this['listenTo'](_0x3ea40d,'suggestionLoaded',(_0x1063c0,_0x4dd4b7)=>{this['listenTo'](_0x4dd4b7,'change:previous',(_0x3ae285,_0x4a7709,_0x52432d,_0x1bebc8)=>{_0x4dd4b7['isInContent']&&(null==_0x52432d?(this['_updateController'](_0x1bebc8['head']),this['_handleSuggestionControllerDelayed'](_0x4dd4b7,!0x1)):(this['_updateController'](_0x52432d['head']),null==_0x1bebc8&&this['_handleSuggestionControllerDelayed'](_0x4dd4b7,!0x0)));}),null!==_0x4dd4b7['previous']?this['_updateController'](_0x4dd4b7['head']):this['_handleSuggestionControllerDelayed'](_0x4dd4b7,!0x1);}),this['listenTo'](_0x3ea40d,'suggestionUnloaded',(_0xa26c6b,_0x8d5abe,_0x39f378)=>{this['stopListening'](_0x8d5abe,'change:previous'),this['_handleControllerBuffer']['delete'](_0x8d5abe),this['_suggestionToController']['has'](_0x8d5abe)&&this['_destroyController'](_0x8d5abe),_0x39f378&&this['_updateController'](_0x39f378['head']);}),this['listenTo'](_0x3ea40d,'suggestionChanged',(_0x5cebe1,_0x42b1c2)=>{this['_updateController'](_0x42b1c2);}),this['listenTo'](_0x2b992b,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x805988,'addComment',(_0x35231d,{threadId:_0xb4dd04,isFromAdapter:_0x55f9ca})=>{if(_0x55f9ca||!_0x3ea40d['hasSuggestion'](_0xb4dd04))return;const _0x5ee90=_0x3ea40d['getSuggestion'](_0xb4dd04);this['_suggestionToController']['get'](_0x5ee90)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x238846=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2c2ca8;for(const _0x3338da in _0x238846){const _0x17f280=_0x3338da,_0x284d08=_0x238846[_0x17f280];if('trackChangesLicenseKeyValid'==_0x284d08||'trackChangesLicenseKeyInvalid'==_0x284d08||'trackChangesLicenseKeyExpired'==_0x284d08||'trackChangesLicenseKeyDomainLimit'==_0x284d08||'trackChangesLicenseKeyNotAllowed'==_0x284d08||'trackChangesLicenseKeyEvaluationLimit'==_0x284d08||'trackChangesLicenseKeyTrialLimit'==_0x284d08||'trackChangesLicenseKeyUsageLimit'==_0x284d08){delete _0x238846[_0x17f280],_0x2c2ca8=_0x284d08,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x2c2ca8&&_0x238846['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x2c2ca8&&_0x238846['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x2c2ca8&&_0x238846['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x2c2ca8&&_0x238846['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x2c2ca8&&_0x238846['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x2c2ca8&&_0x238846['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x2c2ca8&&_0x238846['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x3c8901){const _0x5b4b6f=this['_suggestionToController']['get'](_0x3c8901);if(!_0x5b4b6f)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x5b4b6f['view'])||null;}['getSuggestionForAnnotation'](_0x42036c){const _0x1d2f87=this['_viewToController']['get'](_0x42036c['innerView']);return _0x1d2f87?_0x1d2f87['model']:null;}['_refreshActiveMarkers'](){const _0x4fd9b0=this['editor']['plugins']['get']('Annotations'),_0x18d581=this['editor']['plugins']['get']('TrackChangesEditing'),_0x91f129=Array['from'](_0x4fd9b0['activeAnnotations'],_0xe619ea=>_0xe619ea['innerView'])['filter'](_0x3c8dfa=>this['_viewToController']['has'](_0x3c8dfa)),_0x1cb92b=[];for(const _0x36bbca of _0x91f129){const _0x2538b9=this['_viewToController']['get'](_0x36bbca)['model']['getAllAdjacentSuggestions']();_0x1cb92b['push'](..._0x2538b9['reduce']((_0x2d0df7,_0x4ea960)=>[..._0x2d0df7,..._0x4ea960['getMarkerNames']()],[]));}_0x18d581['activeMarkers']=_0x1cb92b;}['_addUIComponentsToFactory'](){const _0x33253c=this['editor'],_0x27fea8=_0x33253c['locale'],_0x486a96=o(_0x27fea8,'Track\x20changes'),_0x12f5b7=new _0x4d97d4([{'type':'switchbutton','model':new _0x14eac5({'withText':!0x0,'isToggleable':!0x0,'label':_0x486a96,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x14eac5({'withText':!0x0,'label':o(_0x27fea8,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x14eac5({'withText':!0x0,'label':o(_0x27fea8,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x14eac5({'withText':!0x0,'label':o(_0x27fea8,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x14eac5({'withText':!0x0,'label':o(_0x27fea8,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x33253c['plugins']['has']('TrackChangesPreview')&&_0x12f5b7['addMany']([{'type':'separator'},{'type':'button','model':new _0x14eac5({'withText':!0x0,'label':o(_0x27fea8,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x236ab0 of _0x12f5b7)if(ke(_0x236ab0)){const _0x45731e=_0x33253c['commands']['get'](_0x236ab0['model']['commandName']);_0x236ab0['model']['bind']('isOn','isEnabled')['to'](_0x45731e,'value','isEnabled');}_0x33253c['ui']['componentFactory']['add']('trackChanges',_0x2a0a42=>this['_createToolbarButton'](_0x2a0a42,_0x12f5b7,_0x486a96)),_0x33253c['ui']['componentFactory']['add']('menuBar:trackChanges',_0x4d60b9=>this['_createMenuBarMenu'](_0x4d60b9,_0x12f5b7,_0x486a96));}['_createToolbarButton'](_0x3892cc,_0x26e93e,_0x404e4a){const _0x51202a=_0xf588af(_0x3892cc,_0x540529),_0x3d50d9=this['editor']['commands']['get']('trackChanges');_0x51202a['buttonView']['set']({'tooltip':_0x404e4a,'label':_0x404e4a,'icon':_0x2bbe84}),_0x51202a['buttonView']['bind']('isOn')['to'](_0x3d50d9,'value'),_0x51202a['buttonView']['on']('execute',()=>{_0x3d50d9['execute'](),this['editor']['editing']['view']['focus']();}),_0x3e7092(_0x51202a,_0x26e93e,{'role':'menu'});const _0x3508d7=[];for(const _0xccbecc of _0x26e93e)ke(_0xccbecc)&&_0x3508d7['push'](this['editor']['commands']['get'](_0xccbecc['model']['commandName']));const _0x5379ac=_0x51202a['buttonView'];return _0x5379ac['actionView']['unbind']('isEnabled'),_0x5379ac['arrowView']['unbind']('isEnabled'),_0x5379ac['actionView']['bind']('isEnabled')['to'](_0x3d50d9,'isEnabled'),_0x5379ac['arrowView']['bind']('isEnabled')['toMany'](_0x3508d7,'isEnabled',(..._0x45cf36)=>_0x45cf36['some'](_0x196aaf=>_0x196aaf)),_0x51202a['on']('execute',_0x2f3c6b=>{this['editor']['execute'](_0x2f3c6b['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x51202a;}['_createMenuBarMenu'](_0x9b02e9,_0x3c96af,_0x2e8358){const _0x16c4f7=new _0x402c46(_0x9b02e9),_0x67442b=this['editor']['commands']['get']('trackChanges');_0x16c4f7['buttonView']['set']({'label':_0x2e8358,'icon':_0x2bbe84});const _0x3bba13=new _0x5a92db(_0x9b02e9);for(const _0x15a9ba of _0x3c96af){if('separator'==_0x15a9ba['type']){_0x3bba13['items']['add'](new _0x2d45ef(_0x9b02e9));continue;}const _0x1b9398=new _0x591776(_0x9b02e9,_0x16c4f7),_0x2c6fc1=new _0x4e41e1(_0x9b02e9),_0x3c1183=_0x15a9ba['model'];_0x2c6fc1['bind'](...Object['keys'](_0x3c1183))['to'](_0x3c1183),_0x2c6fc1['delegate']('execute')['to'](_0x16c4f7),_0x2c6fc1['on']('execute',()=>{this['editor']['execute'](_0x3c1183['commandName']),this['editor']['editing']['view']['focus']();}),_0x1b9398['children']['add'](_0x2c6fc1),_0x3bba13['items']['add'](_0x1b9398);}return _0x16c4f7['bind']('isEnabled')['to'](_0x67442b,'isEnabled'),_0x16c4f7['panelView']['children']['add'](_0x3bba13),_0x16c4f7;}['_initializeController'](_0x213514){const _0x1f64eb=this['editor'],_0xf7e29a=_0x1f64eb['config'],_0x4059a1=_0x1f64eb['plugins']['get']('Annotations'),_0x59cf67=_0x1f64eb['plugins']['get']('CommentsRepository'),_0xfe0a38=_0x1f64eb['plugins']['get']('EditorAnnotations'),_0x46f8f4=_0x1f64eb['plugins']['get'](_0x9e4cfc)['me'],_0x907d3b=_0xf7e29a['get']('trackChanges')['SuggestionThreadView'],_0x1b48bf=_0xf7e29a['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x1107e8,CommentThreadInputView:_0x3f6dcd}=_0x1f64eb['plugins']['get']('CommentsUI');let _0x57288f,_0x39c661,_0x457680;this['_annotationViews']['has'](_0x213514['id'])?(_0x39c661=this['_annotationViews']['get'](_0x213514['id']),_0x57288f=_0x39c661['mainView']):(_0x57288f=new _0x907d3b(_0x1f64eb['locale'],_0x213514,_0x46f8f4,{'disableComments':this['_disableComments'],'editorConfig':{..._0xf7e29a['get']('comments.editorConfig'),'licenseKey':_0xf7e29a['get']('licenseKey')},'maxCommentsWhenCollapsed':_0xf7e29a['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0xf7e29a['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0xf7e29a['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3bd3af(_0xf7e29a['get']('locale'),_0x1f64eb['locale']),'CommentView':_0xf7e29a['get']('comments')['CommentView'],'CommentsListView':_0x1107e8,'CommentThreadInputView':_0x3f6dcd,'SuggestionView':_0x1b48bf}),_0x57288f['suggestionView']['acceptButton']['on']('execute',()=>{_0x1f64eb['editing']['view']['focus']();}),_0x57288f['suggestionView']['discardButton']['on']('execute',()=>{_0x1f64eb['editing']['view']['focus']();}),_0x39c661=_0x4059a1['createAnnotationView'](this['editor']['locale'],_0x57288f),_0x39c661['bind']('isDirty')['to'](_0x57288f,'isDirty'),_0x39c661['bind']('length')['to'](_0x57288f),_0x39c661['bind']('type')['to'](_0x57288f,'type',_0x32db58=>'suggestion-'+_0x32db58),_0x57288f['on']('escape',()=>{_0x457680['fire']('escape');}),this['_annotationViews']['set'](_0x213514['id'],_0x39c661));const _0x1f33b6=_0x59cf67['createCommentThreadController'](_0x213514['commentThread'],_0x57288f),_0x4717f1=new pe(_0x1f64eb,_0x213514,_0x57288f,_0x1f33b6),_0x4051f1=_0x213514['getAllAdjacentSuggestions']()['filter'](_0x282d85=>_0x282d85['isInContent']);_0x57288f['descriptionParts']=_0x1f64eb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x4051f1),this['_suggestionToController']['set'](_0x213514,_0x4717f1),this['_viewToController']['set'](_0x57288f,_0x4717f1);const _0x319c85=()=>{const _0x15678c=[],_0x24b677=_0x213514['getAllAdjacentSuggestions']()['filter'](_0x435daf=>_0x435daf['isInContent']);for(const _0x27a2f4 of _0x24b677)_0x15678c['push'](..._0x27a2f4['getMarkers']());return _0x4fbd1e(_0x1f64eb['editing'],_0x15678c);};_0x457680=_0x4059a1['createAnnotation']({'view':_0x39c661,'target':_0x319c85,'type':()=>'suggestion-'+_0x4717f1['view']['type'],'isVisible':!!_0x319c85()}),_0x59cf67['_bindAnnotationToEditors'](_0x57288f,_0x457680),_0x4059a1['add'](_0x457680),_0xfe0a38['registerAnnotation'](_0x457680);}['_destroyController'](_0x160d69){const _0x5ccd28=this['editor']['plugins']['get']('CommentsRepository'),_0x50450c=this['editor']['plugins']['get']('Annotations'),_0x41a8fe=this['_suggestionToController']['get'](_0x160d69),_0x503405=_0x41a8fe['view'],_0x50b5c5=_0x50450c['getByInnerView'](_0x503405);_0x5ccd28['_unbindEditors'](_0x503405),_0x50b5c5&&_0x50450c['remove'](_0x50b5c5),this['_suggestionToController']['delete'](_0x160d69),this['_viewToController']['delete'](_0x503405),_0x41a8fe['destroy']();}['_updateController'](_0xb68bb9){if(!_0xb68bb9['isInContent']||!this['_suggestionToController']['has'](_0xb68bb9))return;const _0x409b2b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4d6f61=this['_suggestionToController']['get'](_0xb68bb9),_0x18d6ae=_0xb68bb9['getAllAdjacentSuggestions']();_0x4d6f61['view']['descriptionParts']=_0x409b2b['descriptionFactory']['getDescriptions'](_0x18d6ae);}['destroy'](){for(const _0x1e012b of this['_suggestionToController']['keys']())this['_destroyController'](_0x1e012b);for(const _0xa4aa10 of this['_annotationViews']['values']())_0xa4aa10['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x2d7fa5){return'model'in _0x2d7fa5;}class Fe extends _0xe680e7{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x307be8){this['editor']['plugins']['get'](d)['adapter']=_0x307be8;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x390413){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x390413);}['getSuggestions']({skipNotAttached:_0x62d6f6=!0x1,toJSON:_0x12e91d=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x62d6f6,'toJSON':_0x12e91d});}['getSuggestion'](_0x56d97f){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x56d97f);}}const p=['Pagination'];class re extends _0xe680e7{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x422b52=this['editor'];if(_0x422b52['config']['define']('trackChangesData.editorCreator',_0x22a591=>{const _0x2548ce=_0x422b52['model']['document']['getRootNames']()['reduce']((_0x354236,_0x5a4de6)=>(_0x354236[_0x5a4de6]='',_0x354236),{});return _0x422b52['constructor']['create'](_0x2548ce,_0x22a591);}),'function'!=typeof _0x422b52['config']['get']('trackChangesData')['editorCreator'])throw new _0x56f143('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x9b337c){return P(this['editor'],!0x0,_0x9b337c);}['getDataWithDiscardedSuggestions'](_0x569130){return P(this['editor'],!0x1,_0x569130);}}class Ge extends _0xe680e7{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x461ee8){function _0x407c72(_0x2790b6){return _0x2790b6['map'](_0x2629c5=>String['fromCharCode'](_0x2629c5))['join']('');}super(_0x461ee8),this['result']='end',_0x461ee8[_0x407c72([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x407c72([0x76,0x69,0x65,0x77])][_0x407c72([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x407c72([0x61,0x75,0x74,0x6f]),_0x461ee8[_0x407c72([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x407c72([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x407c72([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x407c72([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x407c72([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 He(_0x3f9709){return void 0x0!==_0x3f9709['getRootsAttributes'];}async function P(_0x33d10c,_0x3a2d9c,_0x20caeb){const _0x1b7434=_0x19ed98(_0x33d10c,p);_0x1b7434['plugins']['push'](d,Ge),_0x1b7434['rootsAttributes']=He(_0x33d10c)?_0x33d10c['getRootsAttributes']():void 0x0;const _0x4c0fd5=document['createDocumentFragment'](),_0x2ddf2c=_0x33d10c['config']['get']('trackChangesData')['editorCreator'],_0x15c846=await _0x2ddf2c(_0x1b7434,()=>function(_0x2dbf8a){const _0x307171=document['createElement']('div');return _0x2dbf8a['appendChild'](_0x307171),_0x307171;}(_0x4c0fd5));!function(_0xfbec61,_0x39e5a2){const _0x14476d=_0xfbec61['model']['document']['getRootNames']()['reduce']((_0x416782,_0x435a40)=>(_0x416782[_0x435a40]=_0xfbec61['data']['get']({'rootName':_0x435a40}),_0x416782),{}),_0x323f8e=_0xfbec61['plugins']['get']('Users')['users']['map'](_0x145b9c=>({'id':_0x145b9c['id'],'name':_0x145b9c['name']})),_0x5a6dc3=_0xfbec61['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x30c887=_0xfbec61['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x33c1d1=_0x39e5a2['plugins']['get']('Users'),_0x267f13=_0x39e5a2['plugins']['get']('TrackChangesEditing'),_0x315659=_0x39e5a2['plugins']['get']('CommentsRepository');for(const _0x2aed18 of _0x315659['getCommentThreads']())_0x2aed18['remove']();for(const _0xfd01d of _0x323f8e)_0x33c1d1['getUser'](_0xfd01d['id'])||_0x33c1d1['addUser'](_0xfd01d);_0x33c1d1['me']||_0x33c1d1['useAnonymousUser']();for(const _0x13a53f of _0x30c887)_0x315659['addCommentThread'](_0x13a53f);for(const _0x212e40 of _0x5a6dc3)_0x267f13['addSuggestionData'](_0x212e40);_0x39e5a2['data']['set'](_0x14476d);}(_0x33d10c,_0x15c846),_0x15c846['execute'](_0x3a2d9c?'acceptAllSuggestions':'discardAllSuggestions');const _0x520ce0=He(_0x15c846)?_0x15c846['getFullData'](_0x20caeb):_0x15c846['data']['get'](_0x20caeb);return await _0x15c846['destroy'](),_0x520ce0;}class Me extends _0x434eb5{['options'];constructor(_0x37f050,_0x55bb1a){super(_0x37f050),this['options']=_0x55bb1a,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'](_0x404239,_0x3512d0){if(!this['element'])return;const _0x455926=[];for(const [_0x359ea5,_0x3e73bc]of _0x404239){const _0x3c30f6=document['createElement']('div');_0x3c30f6['setAttribute']('data-ck-root-name',_0x359ea5),_0x3c30f6['className']=_0x3e73bc['classes']+'\x20ck-track-changes-preview__root-container',_0x3c30f6['innerHTML']=_0x3e73bc['content'],_0x455926['push'](_0x3c30f6);}_0x3512d0(this['element'],_0x455926),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x496482{constructor(_0x285384){super(_0x285384),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x5144c3=this['editor'],_0xa6cced=_0x5144c3['locale'],_0x50c7e6=_0x5144c3['plugins']['get']('Dialog');let _0x42775e;const _0x347eb2=function(_0x2ca6b2){const _0x24c8e5={};if('editables'in _0x2ca6b2['ui']['view']){for(const [_0xe858d,_0x5ddd12]of Object['entries'](_0x2ca6b2['ui']['view']['editables']))_0x24c8e5[_0xe858d]=_0x5ddd12['element'];}else _0x24c8e5[_0x2ca6b2['model']['document']['getRootNames']()[0x0]]=_0x2ca6b2['ui']['view']['editable']['element'];return _0x24c8e5;}(_0x5144c3),_0x59c639=function(_0x30170e){let _0x50759a=0x0;for(const _0x5c1bd7 of Object['values'](_0x30170e))_0x50759a=Math['max'](_0x50759a,_0x5c1bd7['getBoundingClientRect']()['width']);let _0x2f9ff1=0x0;for(const _0x178916 of Object['values'](_0x30170e))_0x2f9ff1+=_0x178916['getBoundingClientRect']()['height'];const _0x31affb=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x5a4ab6=Math['min'](_0x2f9ff1,_0x31affb);return{'width':_0x50759a,'height':_0x5a4ab6};}(_0x347eb2);_0x50c7e6['show']({'id':'finalContentPreview','title':o(_0xa6cced,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0xa6cced,{'dialogRects':_0x59c639}),'onHide':()=>{_0x42775e['detachFromDom']();},'onShow':()=>{_0x5144c3['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x2b3d67=>{const _0x43f9bf=this['_standarizeRootsData'](_0x2b3d67,_0x5144c3,_0x347eb2);_0x50c7e6['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x43f9bf,_0x5144c3['config']['get']('trackChanges.preview.renderFunction'));}),_0x42775e=new _0x1d3989(_0xa6cced,[_0x50c7e6['view']]),_0x42775e['attachToDom'](),_0x42775e['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x5144c3['once']('destroy',()=>{_0x42775e['detachFromDom']();});const _0x2b51b0=_0x50c7e6['view']['headerView']['class'];_0x50c7e6['view']['headerView']['class']=_0x2b51b0?_0x2b51b0+'\x20ck-reset_all':'ck-reset_all',_0x50c7e6['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x50c7e6['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0xcb2738=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x36fb4d=_0xcb2738['previewMode'],_0x3132bc={};if('$labels'===_0x36fb4d){for(const _0x2669a7 of _0xcb2738['getMergeFieldsIds']())_0x3132bc[_0x2669a7]=_0xcb2738['getLabel'](_0x2669a7)||_0x2669a7;}else{const _0x13a54f='$defaultValues'===_0x36fb4d?_0xcb2738['getDefaultValues']():_0xcb2738['getDataSetValues'](_0x36fb4d,!0x0);for(const _0x5ed135 of Object['entries'](_0x13a54f)){const [_0x28124b,_0x1f60ec]=_0x5ed135;_0x3132bc[_0x28124b]=null!==_0x1f60ec?_0x1f60ec:_0xcb2738['getLabel'](_0x28124b)||_0x28124b;}}return{'mergeFieldsData':_0x3132bc};}['_standarizeRootsData'](_0x4c62c0,_0x57537a,_0x4e5718){let _0x4fdc46;if('string'==typeof _0x4c62c0){const _0x54b2c5=_0x57537a['model']['document']['getRootNames']()[0x0];_0x4fdc46={[_0x54b2c5]:_0x4c62c0};}else _0x4fdc46=_0x4c62c0;const _0x4bf23b=this['_fixMediaEmbeds'](_0x4fdc46,_0x57537a),_0x1a60d8=function(_0x47111d,_0x16006d){for(const [_0x2a58c8,_0x30af0f]of _0x47111d)_0x30af0f['classes']=_0x16006d[_0x2a58c8]['classList']['value']['replace']('ck-focused','');return _0x47111d;}(this['_sortRoots'](_0x57537a)['reduce']((_0x54ca2a,_0x47d593)=>(_0x54ca2a['push']([_0x47d593,{'content':_0x4bf23b[_0x47d593],'classes':''}]),_0x54ca2a),[]),_0x4e5718);return _0x1a60d8;}['_fixMediaEmbeds'](_0x1018c4,_0x41e692){if(!_0x41e692['plugins']['has']('MediaEmbedEditing'))return _0x1018c4;const _0x279246=_0x41e692['plugins']['get']('MediaEmbedEditing');for(const [_0x405bf9,_0x443237]of Object['entries'](_0x1018c4)){const _0x51e263=document['createElement']('div');_0x51e263['innerHTML']=_0x443237,(_0x51e263['querySelectorAll']('figure.media')['forEach'](_0x1ab7fa=>{const _0x3812a7=_0x1ab7fa['querySelector']('oembed');if(_0x3812a7){const _0xa15434=_0x3812a7['getAttribute']('url');if(_0xa15434){const _0x42ac88=_0x279246['registry']['getMediaViewElement'](new _0xdc0055(_0x41e692['editing']['view']['document']),_0xa15434,{'elementName':'','renderForEditingView':!0x0}),_0x5b9365=document['createElement']('div');_0x5b9365['classList']['add']('ck-media__wrapper'),_0x42ac88['render'](_0x5b9365,_0x41e692['editing']['view']['domConverter']),_0x3812a7['replaceWith'](_0x5b9365);}}}),_0x1018c4[_0x405bf9]=_0x51e263['innerHTML']);}return _0x1018c4;}['_sortRoots'](_0x173bc3){if(!function(_0xc16843){return void 0x0!==_0xc16843['getRootsAttributes'];}(_0x173bc3))return _0x173bc3['model']['document']['getRootNames']();const _0x11f572=[],_0x1b53f9=new Map();for(const _0x3a5c99 of _0x173bc3['model']['document']['getRootNames']()){const _0x298580=_0x173bc3['editing']['view']['getDomRoot'](_0x3a5c99)['getClientRects']()['item'](0x0);_0x11f572['push'](_0x3a5c99),_0x1b53f9['set'](_0x3a5c99,_0x298580);}return _0x11f572['sort']((_0x4b2d4a,_0x49b542)=>{const _0xf8647d=_0x1b53f9['get'](_0x4b2d4a),_0x41580e=_0x1b53f9['get'](_0x49b542);return _0xf8647d['y']-_0x41580e['y']||_0xf8647d['x']-_0x41580e['x'];}),_0x11f572;}}class $e extends _0xe680e7{static get['requires'](){return[re,_0x3ec4d3];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4811be){super(_0x4811be),_0x4811be['commands']['add']('previewFinalContent',new te(this['editor'])),_0x4811be['config']['define']('trackChanges.preview.renderFunction',(_0x36d175,_0x5d760a)=>{for(const _0x56ffa9 of _0x5d760a)_0x36d175['appendChild'](_0x56ffa9);});}}export{D as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,$ as DiscardSuggestionCommand,M as ExecuteOnAllSuggestionsCommand,B as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,x as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Fe as TrackChanges,N as TrackChangesCommand,re as TrackChangesData,Ge as TrackChangesDataGetter,d as TrackChangesEditing,$e as TrackChangesPreview,u as TrackChangesUI};
23
+ import{Command as _0x451a00,Plugin as _0x43125c,PendingActions as _0x3dae24}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x484d49,ObservableMixin as _0x140e87,uid as _0x339e56,priorities as _0x3b7ee3,insertToPriorityArray as _0x15c0e1,toArray as _0x5fee32,logWarning as _0x40ff1a,getEnvKeystrokeText as _0x4b4605,FocusTracker as _0x4a86af,KeystrokeHandler as _0x576847,Collection as _0x1c49aa}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x2e09ca,IconCancel as _0x144297,IconTrackChanges as _0xb7972f}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x307e10,View as _0x1bb46f,ViewCollection as _0x2d0e77,FocusCycler as _0x26c407,UIModel as _0x365c84,createDropdown as _0x4597e0,SplitButtonView as _0x28f8c2,addListToDropdown as _0x1099fb,MenuBarMenuView as _0x402b0c,MenuBarMenuListView as _0x415197,ListSeparatorView as _0x2e2fb9,MenuBarMenuListItemView as _0x4cbc09,MenuBarMenuListItemButtonView as _0x2aea59,BodyCollection as _0x3cdf0c,Dialog as _0x4dc1fa}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x1d0ab4,hashObject as _0x5d6409,surroundingMarkersDetector as _0x138ac1,FOCUS_ANNOTATION_KEYSTROKE as _0x34aeec,AriaDescriptionView as _0x3249ce,setupThreadKeyboardNavigation as _0x388fe0,trimHtml as _0x473cb5,UserView as _0xf21a6b,LateFocusButtonView as _0x6ee236,getDateTimeFormatter as _0x31bbf6,getAllMarkersDomElementsSorted as _0x22629a,sanitizeEditorConfig as _0x250a15}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x405509,ModelLiveRange as _0x41eab8,ModelLivePosition as _0x238bdc,ViewDowncastWriter as _0x258a54}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x3aa5a6,toWidget as _0x2120f5}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x59c111,set as _0x2a549f,isEqual as _0x87d9f1,unset as _0x20a930,omit as Ut}from'es-toolkit/compat';import{Delete as _0x5bc3b6,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x35a763}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x4b76e5}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class N extends _0x451a00{['_enabledCommands'];constructor(_0x4fa116,_0x5ed976){super(_0x4fa116),this['_enabledCommands']=_0x5ed976,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 _0x45070a of this['editor']['commands']['commands']())_0x45070a['affectsData']&&!this['_enabledCommands']['has'](_0x45070a)&&_0x45070a['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x42ff49 of this['editor']['commands']['commands']())_0x42ff49['affectsData']&&!this['_enabledCommands']['has'](_0x42ff49)&&_0x42ff49['clearForceDisabled']('TrackChangesCommand');}}class D extends _0x451a00{['_suggestions'];constructor(_0x4c7248,_0x3108b0){super(_0x4c7248),this['_suggestions']=_0x3108b0,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3ea534){const _0x1d6e3b=this['_suggestions']['get'](_0x3ea534);if(!_0x1d6e3b)throw new _0x484d49('track-changes-accept-suggestion-not-found',this);const _0x14b3b3=_0x1d6e3b['getRanges']();this['editor']['model']['canEditAt'](_0x14b3b3)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x1d6e3b);}}class $ extends _0x451a00{['_suggestions'];constructor(_0x537289,_0x13d1e1){super(_0x537289),this['_suggestions']=_0x13d1e1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x54104a){const _0x53d4fc=this['_suggestions']['get'](_0x54104a);if(!_0x53d4fc)throw new _0x484d49('track-changes-discard-suggestion-not-found',this);const _0x1cbbc4=_0x53d4fc['getRanges']();this['editor']['model']['canEditAt'](_0x1cbbc4)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x53d4fc);}}function ls(_0x151df6,_0xe872e1){let _0x40bbfd='';return _0x40bbfd+=_0x151df6['split']('*')['map']((_0x1ff5ac,_0x18c442)=>_0x18c442%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+tn(_0x1ff5ac)+'</span>':tn(_0x1ff5ac))['join'](''),_0xe872e1&&(_0x40bbfd+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0xe872e1['value']+'\x22\x20title=\x22'+_0xe872e1['title']+'\x22></span>'),_0x40bbfd;}function tn(_0x4b836c){const _0x40dbb2=document['createElement']('span');return _0x40dbb2['innerText']=_0x4b836c,_0x40dbb2['innerHTML'];}function ts(_0x53110){return _0x53110['sort']((_0x4295f4,_0x24ef33)=>'attribute'===_0x4295f4['type']&&'attribute'!==_0x24ef33['type']?-0x1:'attribute'!==_0x4295f4['type']&&'attribute'===_0x24ef33['type']?0x1:'deletion'==_0x4295f4['type']&&'deletion'!=_0x24ef33['type']?-0x1:'deletion'!=_0x4295f4['type']&&'deletion'==_0x24ef33['type']?0x1:0x0);}function to(_0x1b1e8b,_0x35ca60){let _0x13cbb2,_0x4d1f9e=0x0;const _0x2fe647=[],_0x4cfc34=_0x35ca60['schema'];for(;_0x4d1f9e<_0x1b1e8b['length'];){const _0x5df2a0=_0x1b1e8b[_0x4d1f9e],_0x558534=_0x1b1e8b[_0x4d1f9e+0x1];_0x13cbb2||(_0x13cbb2=_0x35ca60['createPositionBefore'](_0x5df2a0)),nn(_0x35ca60,_0x5df2a0,_0x558534)||(_0x2fe647['push'](_0x35ca60['createRange'](_0x13cbb2,_0x4cfc34['isObject'](_0x5df2a0)?_0x35ca60['createPositionAfter'](_0x5df2a0):_0x35ca60['createPositionAt'](_0x5df2a0,'end'))),_0x13cbb2=null),_0x4d1f9e++;}return _0x2fe647;}function nn(_0x487edf,_0x2ccc34,_0x163dd1){if(!_0x163dd1)return!0x1;const _0x290d34=_0x487edf['createPositionAfter'](_0x2ccc34),_0x49b0f6=_0x487edf['createPositionBefore'](_0x163dd1);return _0x290d34['isTouching'](_0x49b0f6);}function rs(_0x11e059,_0x51e6cf,_0x2738c0){for(;_0x2738c0['length'];){const _0x51b3b4=_0x2738c0['splice'](0x0,0x64);_0x11e059['change'](()=>{for(const _0x15cc33 of _0x51b3b4)_0x15cc33['isInContent']&&_0x51e6cf['execute'](_0x15cc33['id']);});}}class M extends _0x451a00{['_command'];['_suggestions'];constructor(_0x74b6f5,_0x191b8c,_0x26b4c9){super(_0x74b6f5),this['_command']=_0x191b8c,this['_suggestions']=_0x26b4c9,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x20be9e=Array['from'](this['_suggestions']['values']())['some'](_0x4c2873=>_0x4c2873['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x20be9e;}['execute'](){const _0x5145a7=ts(Array['from'](this['_suggestions']['values']()));for(const _0x14f276 of _0x5145a7){const _0x49f396=_0x14f276['getRanges']();if(!this['editor']['model']['canEditAt'](_0x49f396))return;}rs(this['editor']['model'],this['_command'],_0x5145a7);}}class B extends _0x451a00{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x5d5789,_0x553a63,_0x35e9af){super(_0x5d5789),this['_command']=_0x553a63,this['_suggestions']=_0x35e9af,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1f2504=this['editor']['model']['document']['selection'],_0x316dfa=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x332ec0,_0x3aff82){const _0x380452=Array['from'](_0x332ec0['getRanges']()),_0xcaa4ec=new Set();for(const _0x2cab6f of _0x3aff82)if(_0x2cab6f['isInContent']){for(const _0x54ada2 of _0x380452)for(const _0x78992d of _0x2cab6f['getRanges']())(_0x54ada2['isIntersecting'](_0x78992d)||_0x332ec0['isCollapsed']&&!_0x2cab6f['isMultiRange']&&_0x2cab6f['next']&&_0x78992d['end']['isTouching'](_0x54ada2['start']))&&_0xcaa4ec['add'](_0x2cab6f);}return _0xcaa4ec;}(_0x1f2504,_0x316dfa),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x9ed6e1=ts(Array['from'](this['_selectedSuggestions']));for(const _0x9b16c8 of _0x9ed6e1){const _0x1bdf2a=_0x9b16c8['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1bdf2a))return;}rs(this['editor']['model'],this['_command'],_0x9ed6e1);}}class T extends/* #__PURE__ -- @preserve */
24
+ _0x140e87(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x1ec69c,_0x21160c){super(),this['id']=_0x21160c['id'],this['type']=_0x21160c['type'],this['subType']=_0x21160c['subType']||null,this['author']=_0x21160c['author'],this['creator']=_0x21160c['creator']||_0x21160c['author'],this['isExternal']=Boolean(_0x21160c['attributes']&&_0x21160c['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x21160c['originalSuggestionId']||null,this['_model']=_0x1ec69c,this['_onAccept']=_0x21160c['onAccept'],this['_onDiscard']=_0x21160c['onDiscard'],this['_onAttributesChange']=_0x21160c['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x21160c['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 _0xe4e7dc=this;for(;_0xe4e7dc['previous'];)_0xe4e7dc=_0xe4e7dc['previous'];return _0xe4e7dc;}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'](_0x267686){this['_markerNames']['add'](_0x267686);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x553477=>this['_model']['markers']['get'](_0x553477))['filter'](_0x51241d=>_0x51241d);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0xe06d31=>{for(const _0x1feea1 of this['getMarkers']())_0xe06d31['removeMarker'](_0x1feea1);}),this['_markerNames']['clear']();}['removeMarker'](_0x6d9cf6){this['_model']['change'](_0x3d3d8b=>{_0x3d3d8b['removeMarker'](_0x6d9cf6);}),this['_markerNames']['delete'](_0x6d9cf6);}['addRange'](_0x3c53f5){const _0x446410='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x446410),this['_model']['change'](_0x6f95cf=>{_0x6f95cf['addMarker'](_0x446410,{'range':_0x3c53f5,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x18df5c){for(const _0x5dcfe6 of this['getRanges']())if(_0x5dcfe6['isIntersecting'](_0x18df5c))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x2d1b6b=>_0x2d1b6b['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x16c165,_0x296572)=>[..._0x16c165,..._0x296572['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x27728e=this['getRanges']();if(0x1!=_0x27728e['length'])return null;const _0x314177=_0x27728e[0x0],_0x3b6e2f=_0x314177['start']['nodeAfter'],_0x2a468c=_0x314177['end']['nodeBefore'];return _0x3b6e2f instanceof _0x405509?_0x3b6e2f!=_0x2a468c?null:_0x3b6e2f: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 _0x32c992=[];let _0x236fa3=this['head'];for(;_0x236fa3;)_0x32c992['push'](_0x236fa3),_0x236fa3=_0x236fa3['next'];return _0x32c992;}['setAttribute'](_0x436f6b,_0x55b89e){const _0x4d41b1=_0x59c111(this['attributes']);_0x2a549f(_0x4d41b1,_0x436f6b,_0x55b89e),_0x87d9f1(_0x4d41b1,this['attributes'])||(this['attributes']=_0x4d41b1,this['_onAttributesChange'](_0x4d41b1));}['removeAttribute'](_0x651cb9){const _0x2af961=_0x59c111(this['attributes']);_0x20a930(_0x2af961,_0x651cb9),_0x87d9f1(_0x2af961,this['attributes'])||(this['attributes']=_0x2af961,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 _0x339e56()['substr'](0x1,0x5);}}function o(_0x31ddd4,_0x2ff5a6,_0x45dc67){const _0x54febf=_0x31ddd4['t'],t=_0x31ddd4['t'];switch(_0x2ff5a6){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',_0x45dc67);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x45dc67);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x45dc67);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x45dc67);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x45dc67);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',_0x45dc67);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x45dc67);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',_0x45dc67);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x45dc67);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x45dc67);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x45dc67);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x45dc67);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x45dc67);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x45dc67);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x45dc67);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x45dc67);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x45dc67);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x45dc67);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x45dc67);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x45dc67);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x45dc67);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x45dc67);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x45dc67);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x45dc67);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x45dc67);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'},_0x45dc67);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x45dc67);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x45dc67);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x45dc67);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x45dc67);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x45dc67);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x45dc67);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x45dc67);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'},_0x45dc67);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x45dc67);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x45dc67);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x45dc67);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x45dc67);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x45dc67);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x45dc67);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'},_0x45dc67);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'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'},_0x45dc67);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x45dc67);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'},_0x45dc67);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x45dc67);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'},_0x45dc67);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x45dc67);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x45dc67);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'},_0x45dc67);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x45dc67);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 _0x54febf({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x45dc67);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x54febf({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x45dc67);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x45dc67);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'},_0x45dc67);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'},_0x45dc67);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'},_0x45dc67);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x2ff5a6;}}class x{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x4fe8b8,_0x5572e7){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x4fe8b8,this['_locale']=_0x5572e7;}['getDescriptions'](_0x54cab3){const _0x1b2299=[],_0x480554=new Set(),_0x3cf1bf=new Set();for(let _0x4be7a1=0x0;_0x4be7a1<_0x54cab3['length'];_0x4be7a1++){const _0x25c08c=_0x54cab3[_0x4be7a1];if(!_0x25c08c['isInContent'])continue;const _0x207c68=this['_handleCustomCallbackDescription'](_0x25c08c);if(_0x207c68){if(null!=_0x25c08c['subType']){if(_0x480554['has'](_0x25c08c['subType']))continue;_0x480554['add'](_0x25c08c['subType']);}_0x1b2299['push'](_0x207c68);}else{if('attribute'==_0x25c08c['type']){const _0x5482b6=_0x25c08c['data']['key'];if(_0x3cf1bf['has'](_0x5482b6))continue;_0x3cf1bf['add'](_0x25c08c['data']['key']),_0x5482b6==m?this['_handleRenameSuggestionDescription'](_0x1b2299,_0x25c08c):this['_handleAttributeSuggestionDescription'](_0x1b2299,_0x25c08c);continue;}'insertion'!=_0x25c08c['type']&&'deletion'!=_0x25c08c['type']||this['_handleInsertRemoveSuggestionDescription'](_0x1b2299,_0x25c08c,_0x54cab3[_0x4be7a1+0x1]);}}return this['_resolveDescriptionItems'](_0x1b2299);}['registerDescriptionCallback'](_0x91d041){this['_customCallbacks']['push'](_0x91d041);}['registerElementLabel'](_0x54c24e,_0x1d9e4c,_0x4f099c=_0x3b7ee3['normal']){'function'==typeof _0x54c24e?_0x15c0e1(this['_itemLabelsCallbacks'],{'matchingCallback':_0x54c24e,'label':_0x1d9e4c,'priority':_0x4f099c}):this['_itemLabels']['set'](_0x54c24e,_0x1d9e4c);}['registerAttributeLabel'](_0x119703,_0x7b0c8a){this['_attributeLabels']['set'](_0x119703,_0x7b0c8a);}['getItemLabel'](_0x9904d7,_0x166a87=0x1){let _0x2183ed;for(const _0x284692 of this['_itemLabelsCallbacks'])if(_0x284692['matchingCallback'](_0x9904d7)){_0x2183ed=_0x284692['label'];break;}return _0x2183ed||(_0x2183ed=this['_itemLabels']['get'](_0x9904d7['name'])),_0x2183ed?_0x2183ed(_0x166a87):0x1!==_0x166a87?_0x166a87+'\x20'+_0x9904d7['name']+'s':''+_0x9904d7['name'];}['_addDescriptionItems'](_0x32bfa2,_0x13a658){const _0x749c67=_0x13a658['getFirstRange']()['getWalker'](),_0x5e366d='insertion'==_0x13a658['type']?'add':'remove';for(const _0x3837a6 of _0x749c67){const _0x3fccf7=_0x3837a6['item'],_0x17a568=_0x32bfa2[_0x32bfa2['length']-0x1];if(_0x3fccf7['is']('$textProxy'))_0x17a568&&_0x17a568['type']['indexOf']('Container')>-0x1&&_0x32bfa2['pop'](),_0x17a568&&'text'==_0x17a568['type']?_0x17a568[_0x5e366d]+=_0x3fccf7['data']:_0x32bfa2['push']({'type':'text','add':'add'==_0x5e366d?_0x3fccf7['data']:'','remove':'remove'==_0x5e366d?_0x3fccf7['data']:''});else{if(this['_schema']['isObject'](_0x3fccf7)){const _0x33780f=_0x3fccf7;if(_0x17a568&&_0x17a568['type']['indexOf']('Container')>-0x1&&_0x32bfa2['pop'](),'elementEnd'==_0x3837a6['type'])continue;_0x17a568&&_0x17a568['type']==_0x5e366d+'Object'&&_0x17a568['element']['name']==_0x33780f['name']?_0x17a568['quantity']++:_0x32bfa2['push']({'type':_0x5e366d+'Object','element':_0x33780f,'quantity':0x1}),_0x749c67['skip'](_0x136ea0=>!('elementEnd'==_0x136ea0['type']&&_0x136ea0['item']==_0x3fccf7));}else{if(this['_schema']['checkChild'](_0x3fccf7,'$text')||_0x3fccf7['is']('element','softBreak')){const _0x1588bd=_0x3fccf7;if('add'==_0x5e366d&&'elementStart'==_0x3837a6['type']||'remove'==_0x5e366d&&'elementEnd'==_0x3837a6['type'])continue;if(_0x17a568&&-0x1==_0x17a568['type']['indexOf']('Container')){'text'==_0x17a568['type']&&(_0x17a568[_0x5e366d]+='\x0a');continue;}let _0x28e8a1;if(_0x28e8a1='add'==_0x5e366d?_0x1588bd['nextSibling']&&!this['_schema']['isObject'](_0x1588bd['nextSibling'])?_0x1588bd['nextSibling']:null:_0x1588bd['previousSibling']&&!this['_schema']['isObject'](_0x1588bd['previousSibling'])?_0x1588bd['previousSibling']:null,_0x1588bd['isEmpty']||_0x28e8a1&&_0x28e8a1['isEmpty']){const _0x447323=_0x28e8a1&&_0x28e8a1['isEmpty']?_0x28e8a1:_0x1588bd;_0x17a568&&_0x17a568['type']==_0x5e366d+'EmptyContainer'&&_0x17a568['element']['name']==_0x447323['name']?_0x17a568['quantity']++:_0x32bfa2['push']({'type':_0x5e366d+'EmptyContainer','element':_0x447323,'quantity':0x1});}else _0x32bfa2['push']({'type':_0x5e366d+'Container','element':_0x1588bd});}}}}}['_resolveDescriptionItems'](_0x2041ec){const _0x2f62dd=this['_locale'],_0x56a1d4=[],_0x379e99=[],_0x177818=[];for(const _0x4f40f4 of _0x2041ec)switch(_0x4f40f4['type']){case'text':if(_0x4f40f4['add']=_0x4f40f4['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4f40f4['remove']=_0x4f40f4['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4f40f4['add']&&''!=_0x4f40f4['remove']){_0x56a1d4['push']({'type':'replace','content':o(_0x2f62dd,'REPLACE_TEXT',['\x22'+_0x4f40f4['remove']+'\x22','\x22'+_0x4f40f4['add']+'\x22'])});continue;}if(null!=_0x4f40f4['add']['match'](/^ +$/)){_0x56a1d4['push']({'type':'insertion','content':o(_0x2f62dd,'*Insert:*\x20%0',o(_0x2f62dd,'ELEMENT_SPACE',_0x4f40f4['add']['length']))});continue;}if(null!=_0x4f40f4['remove']['match'](/^ +$/)){_0x56a1d4['push']({'type':'deletion','content':o(_0x2f62dd,'*Remove:*\x20%0',o(_0x2f62dd,'ELEMENT_SPACE',_0x4f40f4['remove']['length']))});continue;}if(''!=_0x4f40f4['add']){_0x56a1d4['push']({'type':'insertion','content':o(_0x2f62dd,'*Insert:*\x20%0','\x22'+_0x4f40f4['add']+'\x22')});continue;}_0x56a1d4['push']({'type':'deletion','content':o(_0x2f62dd,'*Remove:*\x20%0','\x22'+_0x4f40f4['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x56a1d4['push']({'type':'insertion','content':o(_0x2f62dd,'*Insert:*\x20%0',this['getItemLabel'](_0x4f40f4['element'],_0x4f40f4['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x56a1d4['push']({'type':'deletion','content':o(_0x2f62dd,'*Remove:*\x20%0',this['getItemLabel'](_0x4f40f4['element'],_0x4f40f4['quantity']))});continue;case'addContainer':_0x56a1d4['push']({'type':'insertion','content':o(_0x2f62dd,'*Split:*\x20%0',this['getItemLabel'](_0x4f40f4['element'],_0x4f40f4['quantity']))});continue;case'removeContainer':_0x56a1d4['push']({'type':'deletion','content':o(_0x2f62dd,'*Merge:*\x20%0',this['getItemLabel'](_0x4f40f4['element'],_0x4f40f4['quantity']))});continue;case'addFormat':_0x379e99['push'](_0x4f40f4['key']);continue;case'removeFormat':_0x177818['push'](_0x4f40f4['key']);continue;default:_0x56a1d4['push'](_0x4f40f4);}if(_0x379e99['length']){const _0x461e04=_0x379e99['map'](_0x46ba16=>this['_attributeLabels']['has'](_0x46ba16)?this['_attributeLabels']['get'](_0x46ba16):_0x46ba16)['join'](',\x20');_0x56a1d4['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x461e04)});}if(_0x177818['length']){const _0x56e1f0=_0x177818['map'](_0x3e0780=>this['_attributeLabels']['has'](_0x3e0780)?this['_attributeLabels']['get'](_0x3e0780):_0x3e0780)['join'](',\x20');_0x56a1d4['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x56e1f0)});}return _0x56a1d4;}['_handleCustomCallbackDescription'](_0x3bf90f){for(const _0x342a3e of this['_customCallbacks']){const _0x76ff93=_0x342a3e(_0x3bf90f);if(_0x76ff93&&'type'in _0x76ff93)return _0x76ff93;}}['_handleAttributeSuggestionDescription'](_0x413205,_0x2c58c0){const _0x30c9b0=_0x2c58c0['data'],_0x33779d=void 0x0===_0x30c9b0['newValue']?'removeFormat':'addFormat';_0x413205['push']({'type':_0x33779d,'key':_0x30c9b0['key']});}['_handleRenameSuggestionDescription'](_0xbc56df,_0x4004d2){_0xbc56df['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x4004d2['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x3fbc5f,_0x2824ab,_0x47e387){if(this['_addDescriptionItems'](_0x3fbc5f,_0x2824ab),_0x47e387&&_0x47e387['getFirstRange']()&&!_0x2824ab['getFirstRange']()['end']['isEqual'](_0x47e387['getFirstRange']()['start'])){const _0x235402=_0x3fbc5f[_0x3fbc5f['length']-0x1],_0x3908b0='insertion'==_0x2824ab['type']?'add':'remove';_0x235402&&'text'==_0x235402['type']&&(_0x235402[_0x3908b0]+='\x0a');}}}class O extends _0x43125c{['afterInit'](){const _0x112f5a=this['editor'],_0x48e384=_0x112f5a['plugins']['get']('TrackChangesEditing');_0x112f5a['commands']['get']('showAIAssistant')&&_0x48e384['enableCommand']('showAIAssistant');}}class E extends _0x43125c{['afterInit'](){const _0x5f0b4e=this['editor'],_0x28307b=_0x5f0b4e['locale'];if(!_0x5f0b4e['plugins']['has']('AlignmentEditing'))return;const _0x5a1563=_0x5f0b4e['plugins']['get']('TrackChangesEditing');_0x5a1563['enableDefaultAttributesIntegration']('alignment'),_0x5a1563['registerBlockAttribute']('alignment'),_0x5a1563['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x28307b,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xdf3c81=this['editor'],_0x76b566=_0xdf3c81['locale'];_0xdf3c81['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ad8bb=>{if('formatBlock'!=_0x2ad8bb['type'])return;const {data:_0xdefd21}=_0x2ad8bb;if(_0xdefd21&&'alignment'==_0xdefd21['commandName']){const _0x1f20f7=_0xdefd21['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x76b566,'*Format:*\x20%0',function(_0x203857){switch(_0x203857){case'left':return o(_0x76b566,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x76b566,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x76b566,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x76b566,'FORMAT_JUSTIFY_TEXT');}}(_0x1f20f7))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class R extends _0x43125c{['afterInit'](){const _0x249ebd=this['editor'],_0x4519d8=_0x249ebd['plugins']['get']('TrackChangesEditing'),_0x208847=_0x249ebd['locale'];for(const _0x2025a5 of Zt){if(!_0x249ebd['plugins']['has'](_0x2025a5))continue;const _0x1e7d98=_0x2025a5['slice'](0x0,-0x7)['toLowerCase'](),_0x497ca3='FORMAT_'+_0x1e7d98['toUpperCase']();_0x4519d8['enableDefaultAttributesIntegration'](_0x1e7d98),_0x4519d8['registerInlineAttribute'](_0x1e7d98),_0x4519d8['descriptionFactory']['registerAttributeLabel'](_0x1e7d98,o(_0x208847,_0x497ca3));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x32e0ca=this['editor'],_0x2427dd=_0x32e0ca['locale'],_0x485b54=_0x32e0ca['plugins']['get']('TrackChangesEditing');function _0x8041e7(_0x59f74b,_0x2ea4dc){_0x485b54['descriptionFactory']['registerDescriptionCallback'](_0x3d671f=>{if('formatInline'!=_0x3d671f['type'])return;const {data:_0x18e44c}=_0x3d671f;return _0x18e44c&&_0x18e44c['commandName']===_0x59f74b?_0x18e44c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2427dd,'*Format:*\x20%0',_0x2ea4dc)}:{'type':'format','content':o(_0x2427dd,'*Remove\x20format:*\x20%0',_0x2ea4dc)}:void 0x0;});}_0x8041e7('bold',o(_0x2427dd,'FORMAT_BOLD')),_0x8041e7('italic',o(_0x2427dd,'FORMAT_ITALIC')),_0x8041e7('underline',o(_0x2427dd,'FORMAT_UNDERLINE')),_0x8041e7('code',o(_0x2427dd,'FORMAT_CODE')),_0x8041e7('strikethrough',o(_0x2427dd,'FORMAT_STRIKETHROUGH')),_0x8041e7('subscript',o(_0x2427dd,'FORMAT_SUBSCRIPT')),_0x8041e7('superscript',o(_0x2427dd,'FORMAT_SUPERSCRIPT'));}}class U extends _0x43125c{['afterInit'](){const _0x483d58=this['editor'],_0xd61304=_0x483d58['locale'];if(!_0x483d58['plugins']['has']('BlockQuoteEditing'))return;const _0x57499d=_0x483d58['plugins']['get']('TrackChangesEditing'),_0x11f262=this['editor']['commands']['get']('blockQuote');_0x57499d['enableCommand']('blockQuote',(_0x3e861e,_0x4b27b4={})=>{const _0x33b4d8=this['editor']['model']['document']['selection'],_0x4c0bec=_0x4b27b4&&void 0x0!==_0x4b27b4['forceValue']?_0x4b27b4['forceValue']:!_0x11f262['value'];let _0x22436b=[];if(_0x4c0bec){const _0x296a08=Array['from'](_0x33b4d8['getSelectedBlocks']())['filter'](_0x38025f=>oo(_0x38025f)||function(_0x5e7301,_0x5744cb){const _0x21b4c=_0x5744cb['checkChild'](_0x5e7301['parent'],'blockQuote'),_0x50ae7c=_0x5744cb['checkChild'](['$root','blockQuote'],_0x5e7301);return _0x21b4c&&_0x50ae7c;}(_0x38025f,this['editor']['model']['schema']));_0x22436b=to(_0x296a08,_0x483d58['model']);}else{const _0x29f399=Array['from'](_0x33b4d8['getSelectedBlocks']())['filter'](_0x4622f2=>oo(_0x4622f2));_0x22436b=to(_0x29f399,_0x483d58['model']);}_0x483d58['model']['change'](()=>{for(const _0x53e318 of _0x22436b)_0x57499d['markBlockFormat'](_0x53e318,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x4c0bec}]});});}),_0x57499d['descriptionFactory']['registerDescriptionCallback'](_0x473ce6=>{const {data:_0x5919fa}=_0x473ce6;if(_0x5919fa&&'blockQuote'==_0x5919fa['commandName']){const _0x460d68=o(_0xd61304,'ELEMENT_BLOCK_QUOTE');return _0x5919fa['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xd61304,'*Set\x20format:*\x20%0',_0x460d68)}:{'type':'format','content':o(_0xd61304,'*Remove\x20format:*\x20%0',_0x460d68)};}});}}function oo(_0x30b912){return'blockQuote'==_0x30b912['parent']['name'];}class V extends _0x43125c{['afterInit'](){const _0x2209ce=this['editor'],_0x15ba36=_0x2209ce['locale'],_0x4b15d7=_0x2209ce['plugins']['get']('TrackChangesEditing');_0x2209ce['plugins']['has']('BookmarkEditing')&&(_0x4b15d7['enableCommand']('insertBookmark'),_0x4b15d7['enableDefaultAttributesIntegration']('updateBookmark'),_0x4b15d7['registerBlockAttribute']('bookmarkId'),_0x4b15d7['descriptionFactory']['registerDescriptionCallback'](_0x5c95b9=>{if('insertion'!=_0x5c95b9['type']&&'deletion'!=_0x5c95b9['type']&&'attribute'!=_0x5c95b9['type'])return;const _0x40e7f7=_0x5c95b9['getContainedElement']();if(null==_0x40e7f7)return;if(!_0x40e7f7['is']('element','bookmark'))return;const _0x5f28aa=_0x40e7f7['getAttribute']('bookmarkId');if('insertion'==_0x5c95b9['type'])return{'type':'insertion','content':o(_0x15ba36,'*Insert:*\x20%0','\x22'+_0x5f28aa+'\x22\x20'+o(_0x15ba36,'ELEMENT_BOOKMARK'))};if('deletion'==_0x5c95b9['type'])return{'type':'deletion','content':o(_0x15ba36,'*Remove:*\x20%0','\x22'+_0x5f28aa+'\x22\x20'+o(_0x15ba36,'ELEMENT_BOOKMARK'))};const {data:_0x40fc3a}=_0x5c95b9;if(!_0x40fc3a||'bookmarkId'!=_0x40fc3a['key'])return;return{'type':'format','content':o(_0x15ba36,'*Set\x20bookmark:*\x20%0','\x22'+_0x40fc3a['newValue']+'\x22')};}));}}class F extends _0x43125c{['afterInit'](){const _0x28d33f=this['editor'];_0x28d33f['plugins']['has']('CaseChange')&&(_0x28d33f['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x28d33f['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x28d33f['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x43125c{['afterInit'](){const _0x2e1c3b=this['editor'];_0x2e1c3b['commands']['get']('ckbox')&&_0x2e1c3b['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x43125c{['afterInit'](){const _0x3cb207=this['editor'];if(!_0x3cb207['plugins']['has']('CodeBlock'))return;const _0x443c72=_0x3cb207['plugins']['get']('TrackChangesEditing'),_0x28be2a=_0x3cb207['locale'],_0x4b1e6c=_0x3cb207['config']['get']('codeBlock')['languages'],_0x26c099=_0x3cb207['commands']['get']('codeBlock');_0x443c72['enableCommand']('indentCodeBlock'),_0x443c72['enableCommand']('outdentCodeBlock'),_0x443c72['enableCommand']('codeBlock',(_0x4e2a2a,_0x1cd4a2={})=>{const _0xeeace7=_0x3cb207['model'],_0x5b0979=_0x3cb207['model']['document']['selection'],_0x278355=_0x1cd4a2&&void 0x0!==_0x1cd4a2['forceValue']?_0x1cd4a2['forceValue']:!_0x26c099['value'];let _0x3504df;_0x1cd4a2['language']||(_0x1cd4a2['language']=_0x4b1e6c[0x0]['language']),_0x3504df=_0x278355?Array['from'](_0x5b0979['getSelectedBlocks']())['filter'](_0x1e1e64=>co(_0x1e1e64)||function(_0x2ef95b,_0x3e879c){if(_0x2ef95b['is']('rootElement')||_0x3e879c['isLimit'](_0x2ef95b))return!0x1;return _0x3e879c['checkChild'](_0x2ef95b['parent'],'codeBlock');}(_0x1e1e64,_0xeeace7['schema'])):Array['from'](_0x5b0979['getSelectedBlocks']())['filter'](_0x2dcd49=>co(_0x2dcd49));const _0xb747ab=to(_0x3504df,_0xeeace7);_0xeeace7['change'](()=>{for(const _0x3de8f6 of _0xb747ab)_0x443c72['markBlockFormat'](_0x3de8f6,{'commandName':'codeBlock','commandParams':[{..._0x1cd4a2,'forceValue':_0x278355}],'formatGroupId':'blockName'});});}),(_0x443c72['descriptionFactory']['registerElementLabel']('codeBlock',_0x5283ca=>o(_0x28be2a,'ELEMENT_CODE_BLOCK',_0x5283ca)),_0x443c72['descriptionFactory']['registerDescriptionCallback'](_0xf6d3c0=>{if('formatBlock'!=_0xf6d3c0['type'])return;const _0x2f763b=_0x28be2a['t'],{data:_0x26319d}=_0xf6d3c0;if(!_0x26319d||'codeBlock'!=_0x26319d['commandName'])return;const _0x5b08d1=_0x26319d['commandParams'][0x0]['language'],_0x2cc1a9=_0x2f763b(_0x4b1e6c['find'](_0x1e6acd=>_0x1e6acd['language']===_0x5b08d1)['label'])['toLowerCase']();return _0x26319d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x28be2a,'*Set\x20format:*\x20%0',o(_0x28be2a,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x2cc1a9+')')}:{'type':'format','content':o(_0x28be2a,'*Remove\x20format:*\x20%0',o(_0x28be2a,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x2e3a24){return'codeBlock'==_0x2e3a24['name'];}class J extends _0x43125c{['afterInit'](){const _0xec03db=this['editor'];if(!_0xec03db['plugins']['has']('CommentsEditing'))return;_0xec03db['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x4a7c6b,_0x352071,_0x44efae){const _0x31ba52=[];for(const _0x1620d1 of _0x352071['getItems']())_0x1620d1['hasAttribute'](_0x4a7c6b)&&_0x31ba52['push'](_0x44efae['createRangeOn'](_0x1620d1));return _0x31ba52;}function De(_0x42c06d,_0x3cc80c,{showActiveMarker:_0x5ac399=!0x0}={}){const _0x2df003=_0x42c06d['plugins']['get']('TrackChangesEditing');return(_0x4f53c0,_0x29ed41,_0x42d518)=>{if(!_0x42d518['consumable']['test'](_0x29ed41['markerRange'],_0x4f53c0['name']))return;const _0x15c95f=_0x29ed41['markerRange']['getWalker'](),_0x3f20eb=_0x29ed41['markerRange']['start'],_0x1675ab=_0x42c06d['model']['schema'];let _0x44259b=null,_0xa29682=null,_0x2b9952=!0x1,_0x3fd078=!0x1;for(const _0x32b46a of _0x15c95f){const _0x1f7a83=_0x32b46a['item'];_0x2b9952=_0x2b9952||_0x1675ab['isContent'](_0x1f7a83);const _0x3f0bc9=_0x42d518['mapper']['toViewElement'](_0x1f7a83);if(_0x3f0bc9&&_0x3f0bc9['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x32b46a['type']&&(_0x1675ab['isBlock'](_0x1f7a83)&&!_0x1675ab['isLimit'](_0x1f7a83)&&(_0x1f7a83['nextSibling']||_0x3f20eb['isAtEnd']?_0x44259b&&_0x44259b['parent']==_0x1f7a83||(_0x44259b=_0x1f7a83,_0x584e63(_0x32b46a['previousPosition']),_0x3fd078=!0x0):_0xa29682=_0xa29682||_0x32b46a['previousPosition']));}function _0x584e63(_0x4faedf){const {id:_0x4d342f,authorId:_0x57391f}=_0x2df003['_splitMarkerName'](_0x29ed41['markerName']),_0x2a415d=_0x42d518['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3cc80c,'data-suggestion':_0x4d342f,'data-author-id':_0x57391f}),_0x21ccba=_0x42d518['mapper']['toViewPosition'](_0x4faedf);_0x5ac399&&_0x2df003['activeMarkers']['includes'](_0x29ed41['markerName'])&&_0x42d518['writer']['addClass']('ck-suggestion-marker--active',_0x2a415d),_0x42d518['writer']['insert'](_0x21ccba,_0x2a415d),_0x42d518['mapper']['bindElementToMarker'](_0x2a415d,_0x29ed41['markerName']);}_0x2b9952||_0x3fd078||!_0xa29682||_0x584e63(_0xa29682);};}class K extends _0x43125c{static get['requires'](){return[_0x5bc3b6];}['init'](){const _0x12ed27=this['editor'],_0x3915e5=_0x12ed27['plugins']['get']('TrackChangesEditing');_0x3915e5['enableCommand']('delete');const _0x37992f=_0x12ed27['commands']['get']('deleteForward');_0x3915e5['enableCommand']('deleteForward',(_0x5a993a,_0x3743c0={})=>{const _0x274388=_0x12ed27['model']['createSelection'](_0x12ed27['model']['document']['selection']);_0x274388['isCollapsed']&&_0x12ed27['model']['modifySelection'](_0x274388,{'direction':'forward','unit':_0x3743c0['unit']});const _0xb8fb46=_0x274388['getFirstRange'](),_0x42024f=_0x41eab8['fromRange'](_0xb8fb46);let _0x32eb1f;_0x5a993a(_0x3743c0),_0x32eb1f='$graveyard'==_0x42024f['root']['rootName']?_0x12ed27['model']['createRange'](_0xb8fb46['start']):_0x12ed27['model']['createRange'](_0x42024f['start'],_0x42024f['end']),_0x42024f['detach'](),_0x12ed27['model']['enqueueChange'](_0x37992f['buffer']['batch'],_0x2b7863=>{_0x37992f['buffer']['lock'](),_0x2b7863['setSelection'](_0x2b7863['createRange'](_0x32eb1f['end'])),_0x37992f['buffer']['unlock']();});}),_0x12ed27['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x12ed27,'merge'),{'priority':'high'}),_0x12ed27['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0xc5ce25,_0x16884a,_0x544a59)=>{_0x544a59['options']['showSuggestionHighlights']&&De(_0x12ed27,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0xc5ce25,_0x16884a,_0x544a59);},{'priority':'high'}),_0x12ed27['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x24ffce,_0x53377d,_0x41ce68)=>{const _0x27175d=_0x41ce68['mapper']['markerNameToElements'](_0x53377d['markerName']);if(_0x27175d){for(const _0x5110f8 of _0x27175d)_0x5110f8['is']('uiElement')&&(_0x41ce68['mapper']['unbindElementFromMarkerName'](_0x5110f8,_0x53377d['markerName']),_0x41ce68['writer']['remove'](_0x5110f8));}},{'priority':'high'});}}class H extends _0x43125c{['afterInit'](){const _0x267b40=this['editor'];if(!_0x267b40['plugins']['has']('ListEditing'))return;const _0x572cf9=_0x267b40['locale'],_0x41cbfb=_0x267b40['plugins']['get']('TrackChangesEditing'),_0x435433=_0x267b40['plugins']['has']('TodoListEditing'),_0x1b6d80=!!_0x267b40['config']['get']('list.multiBlock');function _0x5ded82(_0x4fcdc2){return{'type':'format','content':''+o(_0x572cf9,'*Set\x20format:*\x20%0',_0x4fcdc2)};}function _0x2ea361(_0x1db7ca){return{'type':'format','content':''+o(_0x572cf9,'*Remove\x20format:*\x20%0',_0x1db7ca)};}_0x41cbfb['enableDefaultAttributesIntegration']('numberedList'),_0x41cbfb['enableDefaultAttributesIntegration']('bulletedList'),_0x41cbfb['enableDefaultAttributesIntegration']('customNumberedList'),_0x41cbfb['enableDefaultAttributesIntegration']('customBulletedList'),_0x41cbfb['enableDefaultAttributesIntegration']('indentList'),_0x41cbfb['enableDefaultAttributesIntegration']('outdentList'),_0x41cbfb['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x41cbfb['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x41cbfb['registerBlockAttribute']('listItemId'),_0x41cbfb['registerBlockAttribute']('listType'),_0x41cbfb['registerBlockAttribute']('listIndent'),_0x1b6d80&&(_0x41cbfb['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x41cbfb['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x435433&&(_0x41cbfb['enableDefaultAttributesIntegration']('todoList'),_0x41cbfb['enableDefaultAttributesIntegration']('checkTodoList'),_0x41cbfb['registerBlockAttribute']('todoListChecked'),_0x41cbfb['descriptionFactory']['registerDescriptionCallback'](_0x1e5423=>{const {data:_0xe78a19}=_0x1e5423;if(_0xe78a19&&'todoListChecked'==_0xe78a19['key'])return{'type':'format','content':_0xe78a19['newValue']?o(_0x572cf9,'*Check\x20item*'):o(_0x572cf9,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x197a21=>{if(_0x197a21['batch']['isUndo'])return!0x1;let _0x159c02=!0x1;const _0x3fc028=_0x41cbfb['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3caee2=>'todoListChecked'===_0x41cbfb['_getAttributeKey'](_0x3caee2));for(const _0x215e5f of _0x3fc028){'todo'!=_0x215e5f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x41cbfb['_findSuggestions'](_0x215e5f['getFirstRange'](),'attribute')['find'](_0x504e45=>'listType'===_0x41cbfb['_getAttributeKey'](_0x504e45['suggestion']))||(_0x197a21['removeMarker'](_0x215e5f['getFirstMarker']()),_0x159c02=!0x0));}return _0x159c02;})),_0x41cbfb['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x572cf9,'FORMAT_INDENT'));const _0x3f5820={'type':'format','content':''};_0x41cbfb['descriptionFactory']['registerDescriptionCallback'](_0x3c1a5b=>{const {data:_0x57e122}=_0x3c1a5b;if(!_0x57e122||'listType'!=_0x57e122['key'])return;let _0x978291=_0x3c1a5b['head'];for(;_0x978291;){if(_0x978291['data']&&(('listStyle'==_0x978291['data']['key']||'listMarkerStyle'==_0x978291['data']['key'])&&(_0x978291['data']['newValue']&&'default'!=_0x978291['data']['newValue']||'default'!=_0x978291['data']['oldValue']&&!_0x57e122['newValue'])||!_0x1b6d80&&_0x978291['data']['key']==m))return _0x3f5820;_0x978291=_0x978291['next'];}if(null==_0x57e122['newValue'])switch(_0x57e122['oldValue']){case'bulleted':return _0x2ea361(o(_0x572cf9,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2ea361(o(_0x572cf9,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2ea361(o(_0x572cf9,'ELEMENT_TODO_LIST'));}switch(_0x57e122['newValue']){case'bulleted':return _0x5ded82(o(_0x572cf9,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5ded82(o(_0x572cf9,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5ded82(o(_0x572cf9,'ELEMENT_TODO_LIST'));}}),_0x41cbfb['descriptionFactory']['registerDescriptionCallback'](_0x5af1b3=>{const {data:_0x56f075}=_0x5af1b3;if(_0x56f075&&'listIndent'==_0x56f075['key'])return null==_0x56f075['newValue']||null==_0x56f075['oldValue']&&0x0==_0x56f075['newValue']?_0x3f5820:void 0x0;}),_0x41cbfb['descriptionFactory']['registerDescriptionCallback'](_0x299cbc=>{if('attribute'!=_0x299cbc['type'])return;const {data:_0x2dabb8}=_0x299cbc;if(!_0x2dabb8||'listItemId'!=_0x2dabb8['key'])return;const _0x3f98a7=Te(_0x299cbc);return'newValue'==_0x3f98a7?{'type':'format','content':o(_0x572cf9,'*Merge:*\x20list\x20item')}:'oldValue'==_0x3f98a7?{'type':'format','content':o(_0x572cf9,'*Split:*\x20list\x20item')}:_0x3f5820;}),_0x267b40['model']['document']['registerPostFixer'](_0x1333af=>this['listItemIdFixer'](_0x1333af)),_0x267b40['model']['document']['registerPostFixer'](_0x1d429b=>this['noTrackChangesFixer'](_0x1d429b)),_0x267b40['model']['document']['on']('change:data',(_0x52ac71,_0x149dc6)=>{if(_0x149dc6['isUndo']||!_0x149dc6['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x2774de){if(_0x2774de['batch']['isUndo']||!_0x2774de['batch']['isLocal'])return!0x1;let _0x2deeed=!0x1;const _0x2ed3f2=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5077c4=>_0x5077c4['data']&&'listItemId'==_0x5077c4['data']['key'])['filter'](_0x2cd59f=>_0x2cd59f['data']['newValue']&&_0x2cd59f['data']['oldValue']);for(const _0x27837d of _0x2ed3f2)Te(_0x27837d)||(_0x2774de['removeMarker'](_0x27837d['getFirstMarker']()),_0x2deeed=!0x0);return _0x2deeed;}['noTrackChangesFixer'](_0x48c729){if(_0x48c729['batch']['isUndo']||!_0x48c729['batch']['isLocal'])return!0x1;const _0x2123e6=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x2123e6['trackChangesCommand']['value'])return!0x1;let _0x39e5d5=!0x1;const _0x2eacd1=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x1469bb=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x7e05b2=>'attribute'==_0x7e05b2['type'])['filter'](_0x5ad4ee=>_0x2eacd1['includes'](_0x5ad4ee['attributeKey']));if(0x0==_0x1469bb['length'])return _0x39e5d5;for(const _0x15ddae of _0x1469bb){const _0x279518=_0x2123e6['_findSuggestions'](_0x15ddae['range'],'attribute')['filter'](_0x3112a2=>!_0x3112a2['meta']['isNextTo'])['map'](_0x3f47d7=>_0x3f47d7['suggestion'])['filter'](_0x43001f=>{const _0x4cbec4=_0x2123e6['_getAttributeKey'](_0x43001f);return _0x2eacd1['includes'](_0x4cbec4);});if(_0x279518['length']){for(const _0x4e602d of _0x279518)_0x48c729['removeMarker'](_0x4e602d['getFirstMarker']());_0x39e5d5=!0x0;}}return _0x39e5d5;}['assureChains'](){const _0x55316e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x279f20=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x43b85a;const _0x462545=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2b576a=>{if(_0x2b576a['data']['oldRange']||!_0x2b576a['data']['newRange'])return null;if(!_0x2b576a['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x42c095}=_0x55316e['_splitMarkerName'](_0x2b576a['name']);if(!_0x55316e['hasSuggestion'](_0x42c095))return null;const _0x5874e4=_0x55316e['getSuggestion'](_0x42c095);return _0x279f20['includes'](_0x5874e4['data']['key']);})['map'](_0x270af5=>{const {id:_0x4d79a2}=_0x55316e['_splitMarkerName'](_0x270af5['name']),_0x539657=_0x55316e['getSuggestion'](_0x4d79a2);return _0x43b85a=_0x539657['attributes']['groupId'],_0x539657['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x462545['size'])return;const _0x2dd0c5=_0x55316e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x30a77b=>'attribute'==_0x30a77b['type']&&_0x30a77b['data']&&_0x279f20['includes'](_0x30a77b['data']['key'])&&_0x30a77b['attributes']['groupId']!=_0x43b85a)['map'](_0x489c33=>({'listItem':_0x489c33['getFirstRange']()['start']['nodeAfter'],'groupId':_0x489c33['attributes']['groupId']})),_0x32239a=new Set();for(const {groupId:_0x1d1524,listItem:_0xaaf25d}of _0x2dd0c5)_0x462545['has'](_0xaaf25d)&&_0x32239a['add'](_0x1d1524);for(const _0xfdf251 of _0x55316e['getSuggestions']())_0x32239a['has'](_0xfdf251['attributes']['groupId'])&&_0xfdf251['setAttribute']('groupId',_0x43b85a);}['_supportLegacySuggestions'](){const _0xcc453=this['editor'],_0x24fccf=_0xcc453['locale'],_0xc095fb=_0xcc453['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0xc095fb['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x1490b4,_0x1c023b){const _0x969217=[];for(let _0x20aaf4 of _0x1490b4)_0x20aaf4['start']['nodeAfter']===_0x20aaf4['end']['parent']&&(_0x20aaf4=_0xcc453['model']['createRange'](_0xcc453['model']['createPositionAt'](_0x20aaf4['start']['nodeAfter'],0x0))),_0x969217['push'](_0x20aaf4);_0xcc453['model']['change'](_0x2a8497=>{const _0x490569=_0xcc453['model']['document']['selection'],_0x59a93c=Array['from'](_0x490569['getRanges']())['map'](_0x34f176=>_0x41eab8['fromRange'](_0x34f176));_0x2a8497['setSelection'](_0x969217),_0xcc453['commands']['get'](_0x1c023b['commandName'])['refresh'](),_0x1c023b['commandParams']['push']({'forceDefaultExecution':!0x0}),_0xcc453['execute'](_0x1c023b['commandName'],..._0x1c023b['commandParams']),_0x2a8497['setSelection'](_0x59a93c);for(const _0x460b11 of _0x59a93c)_0x460b11['detach']();});}),_0xc095fb['descriptionFactory']['registerElementLabel'](function(_0x1e0f2f){const _0x1b654d=!_0xcc453['model']['schema']['isObject'](_0x1e0f2f),_0x48d465=_0x1e0f2f['previousSibling'],_0x156868=_0x1e0f2f['nextSibling'],_0x4dab55=_0x1e0f2f['getAttribute']('listItemId'),_0x99e6dc=!_0x48d465||_0x48d465['getAttribute']('listItemId')!==_0x4dab55,_0x250d5e=!_0x156868||_0x156868['getAttribute']('listItemId')!==_0x4dab55;return _0x1b654d&&Boolean(_0x4dab55)&&_0x99e6dc&&_0x250d5e;},_0x3a932b=>o(_0x24fccf,'ELEMENT_LIST_ITEM',_0x3a932b));}['_registerLegacyDescription'](){const _0x47f828=this['editor'],_0x48265a=_0x47f828['locale'];function _0x1a78c7(_0x1d96fe){const _0x3ea725=_0x47f828['commands']['get']('bulletedList')['value'],_0x55a3b0=_0x47f828['commands']['get']('numberedList')['value'];return'numberedList'===_0x1d96fe?_0x3ea725:_0x55a3b0;}_0x47f828['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x12e08a){if('formatBlock'!=_0x12e08a['type'])return;const {data:_0x5c1350}=_0x12e08a;if(!_0x5c1350)return;let _0x493292,_0x3ce3bd,_0x5d4446,_0x3b02ab;switch(_0x5c1350['commandName']){case'bulletedList':_0x5d4446=_0x5c1350['commandParams'][0x0]['forceValue'],_0x3b02ab=_0x1a78c7(_0x5c1350['commandName']),_0x493292=_0x5d4446?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3b02ab&&_0x47f828['config']['get']('list.multiBlock')||(_0x493292='*Change\x20to:*\x20%0'),_0x3ce3bd={'type':'format','content':o(_0x48265a,_0x493292,o(_0x48265a,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x5d4446=_0x5c1350['commandParams'][0x0]['forceValue'],_0x3b02ab=_0x1a78c7(_0x5c1350['commandName']),_0x493292=_0x5d4446?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3b02ab&&_0x47f828['config']['get']('list.multiBlock')||(_0x493292='*Change\x20to:*\x20%0'),_0x3ce3bd={'type':'format','content':o(_0x48265a,_0x493292,o(_0x48265a,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x493292='*Indent:*\x20%0',_0x3ce3bd={'type':'format','content':o(_0x48265a,_0x493292,o(_0x48265a,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x493292=function(_0x269cb9){const _0x542e7c=_0x269cb9['getFirstRange']();let _0x10ae86=_0x542e7c['start']['nodeAfter'];for(;_0x10ae86&&_0x542e7c['containsItem'](_0x10ae86);){if(_0x10ae86['getAttribute']('listIndent')>0x0)return!0x1;_0x10ae86=_0x10ae86['nextSibling'];}return!0x0;}(_0x12e08a)?o(_0x48265a,'*Format:*\x20remove\x20from\x20%0',o(_0x48265a,function(_0x230105){return'ELEMENT_'+_0x230105['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x12e08a))):o(_0x48265a,'*Outdent:*\x20%0',o(_0x48265a,'ELEMENT_LIST_ITEM')),_0x3ce3bd={'type':'format','content':_0x493292};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x5c1350['multipleBlocks']&&(_0x493292='*Merge:*\x20%0',_0x3ce3bd={'type':'deletion','content':o(_0x48265a,_0x493292,o(_0x48265a,'ELEMENT_LIST_ITEM'))});}return _0x3ce3bd;});}}function Te(_0x277e57){let _0x2dde0b=_0x277e57['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x2dde0b;){const _0x24d4be=_0x2dde0b['getAttribute']('listItemId');if(!_0x24d4be)return!0x1;if(_0x24d4be==_0x277e57['data']['newValue'])return'newValue';if(_0x24d4be==_0x277e57['data']['oldValue'])return'oldValue';_0x2dde0b=_0x2dde0b['previousSibling'];}return!0x1;}class q extends _0x43125c{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x5ebcb7=this['editor']['config']['get']('list.properties'),_0x49cccc=this['editor']['plugins']['get']('TrackChangesEditing');_0x5ebcb7['styles']&&(_0x49cccc['enableDefaultAttributesIntegration']('listStyle'),_0x49cccc['registerBlockAttribute']('listStyle')),_0x5ebcb7['reversed']&&(_0x49cccc['enableDefaultAttributesIntegration']('listReversed'),_0x49cccc['registerBlockAttribute']('listReversed')),_0x5ebcb7['startIndex']&&(_0x49cccc['enableDefaultAttributesIntegration']('listStart'),_0x49cccc['registerBlockAttribute']('listStart'));const _0x5c9eba={'type':'format','content':''};_0x49cccc['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x1e5c1f=this['editor']['locale'];_0x49cccc['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x1e5c1f,'FORMAT_LIST_REVERSED')),_0x49cccc['descriptionFactory']['registerDescriptionCallback'](_0x383095=>{const {data:_0xb5b864}=_0x383095;if(_0xb5b864&&'listReversed'==_0xb5b864['key'])return null==_0xb5b864['newValue']||0x0==_0xb5b864['newValue']&&null==_0xb5b864['oldValue']?_0x5c9eba:void 0x0;}),_0x49cccc['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x1e5c1f,'FORMAT_LIST_START')),_0x49cccc['descriptionFactory']['registerDescriptionCallback'](_0x470182=>{const {data:_0x235990}=_0x470182;if(_0x235990&&'listStart'==_0x235990['key'])return null==_0x235990['newValue']||0x1==_0x235990['newValue']&&null==_0x235990['oldValue']?_0x5c9eba:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x3a50b0=>{if(_0x3a50b0['batch']['isUndo'])return!0x1;let _0x2c76f9=!0x1;const _0x59ec9f=_0x49cccc['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5675f7=>{const _0x29e001=_0x49cccc['_getAttributeKey'](_0x5675f7);return'listStart'==_0x29e001||'listReversed'==_0x29e001;});for(const _0x1bc2db of _0x59ec9f){const _0x42cd0f=_0x1bc2db['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x42cd0f||'customNumbered'==_0x42cd0f)continue;_0x49cccc['_findSuggestions'](_0x1bc2db['getFirstRange'](),'attribute')['find'](_0x72e905=>'listType'==_0x49cccc['_getAttributeKey'](_0x72e905['suggestion']))||(_0x3a50b0['removeMarker'](_0x1bc2db['getFirstMarker']()),_0x2c76f9=!0x0);}return _0x2c76f9;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x29e5db){const _0x5b1bee=this['editor']['locale'],{data:_0x3e85fa}=_0x29e5db,_0x1b3660={'type':'format','content':''};if(!_0x3e85fa||'listStyle'!=_0x3e85fa['key'])return;if(!_0x3e85fa['oldValue'])return'default'==_0x3e85fa['newValue']?_0x1b3660:{'type':'format','content':''+o(_0x5b1bee,'*Set\x20format:*\x20%0',o(_0x5b1bee,this['_getTranslationKeyForListStyle'](_0x3e85fa['newValue'])))};if(!_0x3e85fa['newValue']){if('default'==_0x3e85fa['oldValue'])return _0x1b3660;let _0x419ddb=_0x29e5db['head'];for(;_0x419ddb;){if(_0x419ddb['data']&&'listType'==_0x419ddb['data']['key']&&_0x419ddb['data']['newValue'])return _0x1b3660;_0x419ddb=_0x419ddb['next'];}return{'type':'format','content':''+o(_0x5b1bee,'*Remove\x20format:*\x20%0',o(_0x5b1bee,this['_getTranslationKeyForListStyle'](_0x3e85fa['oldValue'])))};}if('default'!=_0x3e85fa['newValue'])return{'type':'format','content':''+o(_0x5b1bee,'*Set\x20format:*\x20%0',o(_0x5b1bee,this['_getTranslationKeyForListStyle'](_0x3e85fa['newValue'])))};let _0x3fea32=_0x29e5db['head'];for(;_0x3fea32;){if(_0x3fea32['data']&&'listType'==_0x3fea32['data']['key']&&_0x3fea32['data']['newValue']&&_0x3fea32['data']['oldValue'])return _0x1b3660;_0x3fea32=_0x3fea32['next'];}return{'type':'format','content':o(_0x5b1bee,'*Set\x20format:*\x20%0',o(_0x5b1bee,'ELEMENT_'+_0x29e5db['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x21961b=this['editor'],_0x2c8dbc=_0x21961b['locale'];_0x21961b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a9b7f=>{if('formatBlock'!=_0x2a9b7f['type'])return;const {data:_0x2561d4}=_0x2a9b7f;if(!_0x2561d4)return;let _0x436b5a,_0x3dc9fa;switch(_0x2561d4['commandName']){case'listStyle':_0x436b5a='*Change\x20to:*\x20%0',_0x3dc9fa={'type':'format','content':o(_0x2c8dbc,_0x436b5a,o(_0x2c8dbc,this['_getTranslationKeyForListStyle'](_0x2561d4['commandParams'][0x0]['type'])))};break;case'listReversed':_0x436b5a=_0x2561d4['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3dc9fa={'type':'format','content':o(_0x2c8dbc,_0x436b5a)};break;case'listStart':_0x436b5a='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3dc9fa={'type':'format','content':o(_0x2c8dbc,_0x436b5a,_0x2561d4['commandParams'][0x0]['startIndex'])};}return _0x3dc9fa;});}['_getTranslationKeyForListStyle'](_0x491a9b){return'ELEMENT_'+function(_0x53874d){if(Se['includes'](_0x53874d))return'bulleted';if(_e['includes'](_0x53874d))return'numbered';return null;}(_0x491a9b)['toUpperCase']()+'_LIST_'+_0x491a9b['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class z extends _0x43125c{['afterInit'](){const _0x3b7c94=this['editor'];_0x3b7c94['commands']['get']('emoji')&&_0x3b7c94['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class W extends _0x43125c{static get['requires'](){return[_0x35a763];}['init'](){const _0x3becf4=this['editor'],_0x47e59c=_0x3becf4['plugins']['get']('TrackChangesEditing'),_0x505bf7=_0x3becf4['commands']['get']('enter');_0x47e59c['enableCommand']('enter',()=>{_0x3becf4['model']['change'](_0x2f1d7a=>{const _0x35f647=_0x3becf4['model']['document']['selection'],_0x5043a4=_0x35f647['getFirstPosition'](),_0x4123cf=_0x41eab8['fromRange'](_0x35f647['getFirstRange']());if(_0x505bf7['enterBlock'](_0x2f1d7a)){const _0x29cf19=_0x3becf4['model']['createPositionAt'](_0x5043a4['parent']['nextSibling'],0x0),_0x18dd4b=_0x2f1d7a['createRange'](_0x5043a4,_0x29cf19);_0x47e59c['markInsertion'](_0x18dd4b);}else _0x2f1d7a['setSelection'](_0x2f1d7a['createRange'](_0x4123cf['end']));_0x4123cf['detach'](),_0x505bf7['fire']('afterExecute',{'writer':_0x2f1d7a});});}),_0x3becf4['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x3becf4,'split'),{'priority':'high'}),_0x3becf4['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x52104d,_0x24789e,_0x580260)=>{const _0x4ad97b=_0x580260['mapper']['markerNameToElements'](_0x24789e['markerName']);if(_0x4ad97b){for(const _0x479715 of _0x4ad97b)_0x479715['hasClass']('ck-suggestion-marker-split')&&(_0x580260['mapper']['unbindElementFromMarkerName'](_0x479715,_0x24789e['markerName']),_0x580260['writer']['remove'](_0x479715));}},{'priority':'high'}),_0x3becf4['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x44b5a3,_0x5da6bf,_0x2ca2ce)=>{_0x2ca2ce['options']['showSuggestionHighlights']&&De(_0x3becf4,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x44b5a3,_0x5da6bf,_0x2ca2ce);},{'priority':'high'});}}class Q extends _0x43125c{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x25aab0=this['editor']['plugins']['get']('TrackChangesEditing');_0x25aab0['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x25aab0['enableCommand']('findNext'),_0x25aab0['enableCommand']('findPrevious'),_0x25aab0['enableCommand']('replace'),_0x25aab0['enableCommand']('replaceAll');}['handleFindCommand'](_0x4c83ad,_0x12abf,_0x302af1={}){const _0x181a1c=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x4c83ad(_0x4cd4f9=>{let _0x26f18d=('string'==typeof _0x12abf?_0x181a1c['findByTextCallback'](_0x12abf,_0x302af1):_0x12abf)(_0x4cd4f9);Array['isArray'](_0x26f18d)&&(_0x26f18d={'results':_0x26f18d,'searchText':'string'==typeof _0x12abf?_0x12abf:''});const _0x4cdfb5=_0x26f18d['results']['filter'](_0x454d25=>!0x1===this['_isInDeletionRange'](_0x454d25,_0x4cd4f9['item']));return{..._0x26f18d,'results':_0x4cdfb5};},_0x302af1);}['_isInDeletionRange'](_0x4a6dfe,_0x43f217){const _0x20d400=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x43f217,_0x4a6dfe['start']),this['editor']['model']['createPositionAt'](_0x43f217,_0x4a6dfe['end']));for(const _0x179c08 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x20d400['getIntersection'](_0x179c08['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class X extends _0x43125c{['afterInit'](){const _0x419fa0=this['editor']['locale'],_0x39c0b6=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x55cb09,commandName:_0x2c731b}of eo)this['editor']['plugins']['has'](_0x55cb09)&&(_0x39c0b6['enableDefaultAttributesIntegration'](_0x2c731b),_0x39c0b6['registerInlineAttribute'](_0x2c731b));_0x39c0b6['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x419fa0,'FORMAT_FONT_SIZE')),_0x39c0b6['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x419fa0,'FORMAT_FONT_FAMILY')),_0x39c0b6['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x419fa0,'FORMAT_FONT_COLOR')),_0x39c0b6['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x419fa0,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x23dc70=this['editor'],_0x7c714=_0x23dc70['locale'];_0x23dc70['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x26845d=>{const _0x35d67c=_0x7c714['t'];if('formatInline'!=_0x26845d['type'])return;const {data:_0x5f435a}=_0x26845d;if(null!=_0x5f435a){if('fontSize'==_0x5f435a['commandName']){const _0x53524d=_0x5f435a['commandParams'][0x0]['value'];if(_0x53524d){const _0xf2a56b=_0x35d67c(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x3e2740=>_0x3e2740['model']==_0x53524d)['title'])['toLowerCase']();return{'type':'format','content':o(_0x7c714,'*Set\x20font\x20size:*\x20%0',_0xf2a56b)};}return{'type':'format','content':o(_0x7c714,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x5f435a['commandName']){const _0x3fcd0b=_0x5f435a['commandParams'][0x0]['value'];return _0x3fcd0b?{'type':'format','content':o(_0x7c714,'*Set\x20font\x20family:*\x20%0',_0x3fcd0b)}:{'type':'format','content':o(_0x7c714,'*Reset\x20font\x20family*')};}if('fontColor'==_0x5f435a['commandName']){const _0x304d48=_0x5f435a['commandParams'][0x0]['value'];if(_0x304d48){const _0x2f4a81=_0x307e10(this['editor']['config']['get']('fontColor.colors'))['find'](_0x2a7edf=>_0x2a7edf['model']==_0x304d48);let _0x415bac=_0x304d48,_0x586e6c='';return _0x2f4a81&&(_0x415bac=_0x2f4a81['label'],_0x586e6c=_0x35d67c(_0x415bac)['toLowerCase']()),{'type':'format','content':o(_0x7c714,'*Set\x20font\x20color:*\x20%0',_0x586e6c)['trim'](),'color':{'value':_0x304d48,'title':_0x586e6c||_0x415bac}};}return{'type':'format','content':o(_0x7c714,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x5f435a['commandName']){const _0x464843=_0x5f435a['commandParams'][0x0]['value'];if(_0x464843){const _0xaa52a9=_0x307e10(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0xff398d=>_0xff398d['model']==_0x464843);let _0x395305=_0x464843,_0xdbd0b7='';return _0xaa52a9&&(_0x395305=_0xaa52a9['label'],_0xdbd0b7=_0x35d67c(_0x395305)['toLowerCase']()),{'type':'format','content':o(_0x7c714,'*Set\x20font\x20background\x20color:*\x20%0',_0xdbd0b7)['trim'](),'color':{'value':_0x464843,'title':_0xdbd0b7||_0x395305}};}return{'type':'format','content':o(_0x7c714,'*Reset\x20font\x20background\x20color*')};}}});}}class Y extends _0x43125c{['afterInit'](){const _0xc7e0fa=this['editor'],_0x4d6184=_0xc7e0fa['plugins']['get']('TrackChangesEditing'),_0x35e657=_0xc7e0fa['commands']['get']('copyFormat'),_0x262ff7=_0xc7e0fa['commands']['get']('pasteFormat');_0x35e657&&_0x262ff7&&(_0x4d6184['enableDefaultAttributesIntegration']('pasteFormat'),_0x4d6184['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x3e6666=this['editor'],_0xfa4403=_0x3e6666['locale'];_0x3e6666['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x24059f=>{if('formatBlock'!=_0x24059f['type']&&'formatInline'!=_0x24059f['type'])return;const {data:_0x27fb94}=_0x24059f;if(_0x27fb94&&'pasteFormat'===_0x27fb94['commandName']){const _0x4ac956=[],_0x11f774=_0x27fb94['commandParams'][0x0];for(const [_0xd1a102,_0x77a959]of Object['entries'](_0x11f774))_0x4ac956['push'](ro(_0x3e6666,_0xd1a102,_0x77a959));return _0x4ac956['length']?{'type':'format','content':o(_0xfa4403,'*Set\x20format\x20to:*\x20%0',_0x4ac956['join'](',\x20'))}:{'type':'format','content':o(_0xfa4403,'*Remove\x20all\x20formatting*')};}});}}function ro(_0xdd351,_0x26e0ab,_0x2efa1d){const _0xc7ad00=_0xdd351['locale']['t'],_0x4f1f54=_0x26e0ab['split'](/(?=[A-Z])/)['join']('\x20'),_0x38f48e=_0xc7ad00(_0x4f1f54['charAt'](0x0)['toUpperCase']()+_0x4f1f54['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x2efa1d)return _0x38f48e;if('fontColor'===_0x26e0ab||'fontBackgroundColor'===_0x26e0ab){const _0x3277ef=_0x307e10(_0xdd351['config']['get']('fontColor.colors'))['find'](_0x10c510=>_0x10c510['model']==_0x2efa1d);return _0x38f48e+'\x20('+(_0x3277ef?_0xc7ad00(_0x3277ef['label'])['toLowerCase']():_0x2efa1d)+')';}if('fontSize'===_0x26e0ab&&isNaN(parseFloat(_0x2efa1d))){const _0x524f28=_0xdd351['plugins']['get']('FontSize')['normalizeSizeOptions'](_0xdd351['config']['get']('fontSize.options'))['find'](_0x18b6a4=>_0x18b6a4['model']==_0x2efa1d);return _0x38f48e+'\x20('+(_0x524f28?_0xc7ad00(_0x524f28['title'])['toLowerCase']():_0x2efa1d)+')';}return _0x38f48e+'\x20('+_0x2efa1d+')';}class Z extends _0x43125c{['_headingOptions'];['afterInit'](){const _0x2a004b=this['editor'];if(!_0x2a004b['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x2a004b['config']['get']('heading.options');const _0x249a3b=_0x2a004b['locale'],_0x554e0a=_0x2a004b['plugins']['get']('TrackChangesEditing');_0x554e0a['enableDefaultAttributesIntegration']('heading');for(const _0x466f20 of this['_headingOptions'])'paragraph'!=_0x466f20['model']&&_0x554e0a['descriptionFactory']['registerElementLabel'](_0x466f20['model'],_0x40abf7=>{const _0x39f6a6=this['_getHeadingLevel'](_0x466f20['model']);return null!==_0x39f6a6?_0xba33ea(_0x40abf7,_0x39f6a6):_0x490d20(_0x40abf7,_0x466f20['title']);});function _0xba33ea(_0x450fc7,_0x17db22){return o(_0x249a3b,'ELEMENT_HEADING',[_0x450fc7,_0x17db22]);}function _0x490d20(_0x2f5c25,_0x249d12){return o(_0x249a3b,'ELEMENT_HEADING_CUSTOM',[_0x2f5c25,_0x249d12]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x6c5ba5=this['editor'],_0x349f9e=_0x6c5ba5['locale'];function _0x49d683(_0x2523ce,_0x373fe8){return o(_0x349f9e,'ELEMENT_HEADING_CUSTOM',[_0x2523ce,_0x373fe8]);}_0x6c5ba5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xfa4dba=>{if('formatBlock'!=_0xfa4dba['type'])return;const {data:_0x3e4ad1}=_0xfa4dba;if(_0x3e4ad1&&'heading'==_0x3e4ad1['commandName']){const _0x58cff2=_0x3e4ad1['commandParams'][0x0]['value'],_0x5ac3b5=this['_getHeadingLevel'](_0x58cff2);if(null!==_0x5ac3b5)return{'type':'format','content':o(_0x349f9e,'*Change\x20to:*\x20%0',(_0x49d1f0=0x1,_0x2d7727=_0x5ac3b5,o(_0x349f9e,'ELEMENT_HEADING',[_0x49d1f0,_0x2d7727])))};const _0x5b3056=this['_headingOptions']['find'](_0x150a6d=>_0x150a6d['model']===_0x58cff2)['title'];return{'type':'format','content':o(_0x349f9e,'*Change\x20to:*\x20%0',_0x49d683(0x1,_0x5b3056))};}var _0x49d1f0,_0x2d7727;});}['_getHeadingLevel'](_0x4db929){const _0x4c4212=_0x4db929['match'](/^heading(\d+)/);if(_0x4c4212)return _0x4c4212[0x1];const _0x51bcd7=this['_headingOptions']?.['find'](_0x38e9a0=>_0x38e9a0['model']==_0x4db929);if(_0x51bcd7&&_0x51bcd7['view']){const _0x187a4a=_0x51bcd7['view'],_0x449c58=(_0x187a4a['name']??_0x187a4a)['match'](/^h(\d+)/);if(_0x449c58)return _0x449c58[0x1];}return null;}}class tt extends _0x43125c{['afterInit'](){const _0x9c6815=this['editor'];if(!_0x9c6815['plugins']['has']('HighlightEditing'))return;const _0x259fab=_0x9c6815['plugins']['get']('TrackChangesEditing'),_0x461e2b=_0x9c6815['locale'];_0x259fab['enableDefaultAttributesIntegration']('highlight'),_0x259fab['registerInlineAttribute']('highlight'),_0x259fab['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x461e2b,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x471e49=this['editor'],_0x47875f=_0x471e49['locale'];_0x471e49['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x29ffd8=>{if('formatInline'!=_0x29ffd8['type'])return;const {data:_0x2b3aa3}=_0x29ffd8;if(_0x2b3aa3&&'highlight'==_0x2b3aa3['commandName']){const _0x4ed904=_0x47875f['t'],_0x41e9d1=_0x2b3aa3['commandParams'][0x0]['value'];if(_0x41e9d1){const _0x3aa6f4=_0x471e49['config']['get']('highlight.options')['find'](_0x47e0c0=>_0x47e0c0['model']==_0x41e9d1),_0x24ba4b=_0x4ed904(_0x3aa6f4['title'])['toLowerCase']();return{'type':'format','content':o(_0x47875f,'*Set\x20highlight:*\x20%0',_0x24ba4b),'color':{'value':_0x3aa6f4['color'],'title':_0x3aa6f4['title']}};}return{'type':'format','content':o(_0x47875f,'*Remove\x20highlight*',o(_0x47875f,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x43125c{['afterInit'](){const _0x509e94=this['editor'];if(!_0x509e94['plugins']['has']('HorizontalLineEditing'))return;_0x509e94['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x491d52=_0x509e94['plugins']['get']('TrackChangesEditing'),_0x140345=_0x509e94['locale'];_0x491d52['descriptionFactory']['registerElementLabel']('horizontalLine',_0x4c5219=>o(_0x140345,'ELEMENT_HORIZONTAL_LINE',_0x4c5219)),_0x509e94['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x14e161,{writer:_0x134a87,options:_0x555f32})=>{if(!_0x555f32['showSuggestionHighlights'])return null;const _0x10163b=_0x134a87['createContainerElement']('div'),_0x32556c=_0x134a87['createEmptyElement']('hr');return _0x134a87['addClass']('ck-horizontal-line',_0x10163b),_0x134a87['insert'](_0x134a87['createPositionAt'](_0x10163b,0x0),_0x32556c),_0x10163b;},'converterPriority':'high'});}}class nt extends _0x43125c{['afterInit'](){const _0x1297c8=this['editor'];if(!_0x1297c8['plugins']['has']('HtmlEmbed'))return;const _0x4a6403=_0x1297c8['plugins']['get']('TrackChangesEditing'),_0x4cebbf=_0x1297c8['locale'];_0x4a6403['descriptionFactory']['registerElementLabel']('rawHtml',_0xc023af=>o(_0x4cebbf,'ELEMENT_HTML_EMBED',_0xc023af)),_0x4a6403['enableDefaultAttributesIntegration']('htmlEmbed'),_0x4a6403['registerBlockAttribute']('value'),_0x4a6403['descriptionFactory']['registerDescriptionCallback'](_0x5a324f=>{if('attribute'!=_0x5a324f['type'])return;const {data:_0x1fc122}=_0x5a324f;if(_0x1fc122&&'value'==_0x1fc122['key']&&_0x5a324f['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x2ff347=o(_0x4cebbf,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4cebbf,'*Change\x20%0\x20content*',_0x2ff347)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe2720d=this['editor'],_0x52c212=_0xe2720d['locale'];_0xe2720d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x29d4c0=>{if('formatBlock'!=_0x29d4c0['type'])return;const {data:_0x2a38c2}=_0x29d4c0;if(_0x2a38c2&&'htmlEmbed'==_0x2a38c2['commandName']){const _0x563617=o(_0x52c212,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x52c212,'*Change\x20%0\x20content*',_0x563617)};}});}}class et extends _0x43125c{['afterInit'](){const _0x3d5f1a=this['editor'];if(!_0x3d5f1a['plugins']['has']('ImageEditing'))return;const _0x2e40c2=_0x3d5f1a['plugins']['get']('TrackChangesEditing'),_0x3ccd49=_0x3d5f1a['plugins']['get']('ImageUtils'),_0x4ac95d=_0x3d5f1a['locale'];_0x2e40c2['enableCommand']('insertImage'),_0x2e40c2['descriptionFactory']['registerElementLabel']('imageBlock',_0x49c849=>o(_0x4ac95d,'ELEMENT_IMAGE',_0x49c849)),_0x2e40c2['descriptionFactory']['registerElementLabel']('imageInline',_0x2a98ab=>o(_0x4ac95d,'ELEMENT_INLINE_IMAGE',_0x2a98ab)),_0x2e40c2['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x4ac95d,'ELEMENT_CAPTION')),_0x3d5f1a['plugins']['has']('ImageUploadEditing')&&_0x2e40c2['enableCommand']('uploadImage'),_0x3d5f1a['plugins']['has']('ImageBlockEditing')&&_0x3d5f1a['plugins']['has']('ImageInlineEditing')&&(_0x2e40c2['enableCommand']('imageTypeInline',(_0x20c7e0,_0x372c7e)=>{const _0x5d871a=_0x3ccd49['getClosestSelectedImageElement'](_0x3d5f1a['model']['document']['selection']);_0x3d5f1a['model']['change'](()=>{_0x2e40c2['markBlockFormat'](_0x5d871a,{'commandName':'imageTypeInline','commandParams':[_0x372c7e]},[],'convertBlockImageToInline');});}),_0x2e40c2['enableCommand']('imageTypeBlock',(_0xcb7423,_0x46cc9a)=>{_0x3d5f1a['model']['change'](_0x23fd68=>{let _0x2582b4=_0x3ccd49['getClosestSelectedImageElement'](_0x3d5f1a['model']['document']['selection']),_0x504479=_0x23fd68['createRangeOn'](_0x2582b4);const _0x1203ef=_0x238bdc['fromPosition'](_0x504479['start'],'toPrevious'),_0x32f190=_0x238bdc['fromPosition'](_0x504479['end'],'toNext');_0x2e40c2['forceDefaultExecution'](()=>_0xcb7423(_0x46cc9a)),_0x2582b4=_0x3ccd49['getClosestSelectedImageElement'](_0x3d5f1a['model']['document']['selection']),_0x504479=_0x23fd68['createRangeOn'](_0x2582b4);const _0x4a6f2e=_0x23fd68['createRange'](_0x1203ef,_0x32f190);_0x1203ef['detach'](),_0x32f190['detach'](),_0x2e40c2['markBlockFormat'](_0x2582b4,{'commandName':'imageTypeInline','commandParams':[_0x46cc9a]},[],'convertInlineImageToBlock'),_0x4a6f2e['start']['isBefore'](_0x504479['start'])&&_0x2e40c2['markInsertion'](_0x23fd68['createRange'](_0x4a6f2e['start'],_0x504479['start']),'convertInlineImageToBlock'),_0x504479['end']['isBefore'](_0x4a6f2e['end'])&&_0x2e40c2['markInsertion'](_0x23fd68['createRange'](_0x504479['end'],_0x4a6f2e['end']),'convertInlineImageToBlock');});}),_0x2e40c2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x2e40c2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x2e40c2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x2e40c2['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x2e40c2['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x2e40c2['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0xbf7949])=>{const _0x2e7208=_0x2e40c2['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x1479f9=_0xbf7949['start'],_0x599388=_0xbf7949['end'];const _0x4fd51c=_0x3d5f1a['model']['schema']['getNearestSelectionRange'](_0x1479f9,'backward'),_0x1a2e43=_0x3d5f1a['model']['schema']['getNearestSelectionRange'](_0x599388,'forward');_0x4fd51c['isCollapsed']&&(_0x1479f9=_0x4fd51c['start']),_0x1a2e43['isCollapsed']&&(_0x599388=_0x1a2e43['end']),_0x2e7208([_0x3d5f1a['model']['createRange'](_0x1479f9,_0x599388)]);}),_0x2e40c2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x518ce2),_0x2e40c2['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x518ce2)),_0x3d5f1a['plugins']['has']('ImageCaptionEditing')&&(_0x2e40c2['enableCommand']('toggleImageCaption',(_0x57428b,_0x4b7961)=>{const _0x14daf9=_0x3d5f1a['plugins']['get']('ImageCaptionUtils');let _0x24db85=_0x3ccd49['getClosestSelectedImageElement'](_0x3d5f1a['model']['document']['selection']),_0x590bc5=_0x14daf9['getCaptionFromImageModelElement'](_0x24db85);_0x3d5f1a['model']['change'](()=>{if(_0x590bc5)return void _0x2e40c2['markDeletion'](_0x3d5f1a['model']['createRangeOn'](_0x590bc5));const _0x295f8c=_0x3ccd49['isBlockImage'](_0x24db85);_0x57428b(_0x4b7961),_0x24db85=_0x3ccd49['getClosestSelectedImageElement'](_0x3d5f1a['model']['document']['selection']),_0x590bc5=_0x14daf9['getCaptionFromImageModelElement'](_0x24db85),_0x2e40c2['markInsertion'](_0x3d5f1a['model']['createRangeOn'](_0x590bc5),_0x295f8c?null:'imageCaption');});}),_0x2e40c2['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x518ce2));const _0xf9571c=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3192e4(_0x2672de,_0x1e0ad1){const _0x2f58ff=_0xf9571c['findIndex'](({type:_0x47114d,subType:_0x3b23a6})=>_0x2672de['type']==_0x47114d&&_0x2672de['subType']==_0x3b23a6),_0xde7861=_0xf9571c['findIndex'](({type:_0x5de715,subType:_0x5930b6})=>_0x1e0ad1['type']==_0x5de715&&_0x1e0ad1['subType']==_0x5930b6);if(_0x2f58ff<0x0||_0xde7861<0x0)return!0x1;const _0x5144ae=_0x2672de['getFirstRange'](),_0x5eac6a=_0x1e0ad1['getFirstRange']();if((0x0==_0x2f58ff||0x1==_0x2f58ff)&&0x2==_0xde7861&&_0x5144ae['isIntersecting'](_0x5eac6a))return!0x0;if(0x2==_0x2f58ff&&0x3==_0xde7861){const _0x3d48f6=_0x2e40c2['_findSuggestions'](_0x5144ae,'insertion')['filter'](({suggestion:_0x5b3f67,meta:_0x25264d})=>_0x25264d['isOwn']&&'convertInlineImageToBlock'==_0x5b3f67['subType']);if(_0x3d48f6['length']>0x1&&_0x5eac6a['end']['isEqual'](_0x5144ae['start']))return!0x0;if(0x1==_0x3d48f6['length']&&(_0x5144ae['start']['isEqual'](_0x5eac6a['end'])||_0x5144ae['end']['isEqual'](_0x5eac6a['start'])))return!0x0;}if(0x3==_0x2f58ff&&0x3==_0xde7861&&_0x5144ae['start']['isBefore'](_0x5eac6a['start'])){const _0x375fe5=_0x5144ae['end']['nodeAfter'],_0x210d27=_0x5eac6a['start']['nodeBefore'];return _0x3ccd49['isBlockImage'](_0x375fe5)&&_0x375fe5===_0x210d27;}return!0x1;}function _0x518ce2(_0x3afce8,_0x25a6df){return _0x3192e4(_0x3afce8,_0x25a6df)?[_0x3afce8,_0x25a6df]:_0x3192e4(_0x25a6df,_0x3afce8)?[_0x25a6df,_0x3afce8]:null;}_0x3d5f1a['plugins']['has']('ImageResize')&&(_0x2e40c2['enableDefaultAttributesIntegration']('resizeImage'),_0x2e40c2['registerBlockAttribute']('resizedWidth'),_0x2e40c2['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x4ac95d,'FORMAT_IMAGE_SIZE'))),_0x3d5f1a['plugins']['has']('ImageTextAlternativeEditing')&&(_0x2e40c2['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x2e40c2['registerBlockAttribute']('alt')),_0x3d5f1a['plugins']['has']('PictureEditing')&&(_0x2e40c2['registerBlockAttribute']('sources'),_0x2e40c2['descriptionFactory']['registerDescriptionCallback'](_0x196807=>{if('attribute'!=_0x196807['type'])return;const {data:_0x51df6e}=_0x196807;return _0x51df6e&&'sources'==_0x51df6e['key']?{'type':'format','content':''}:void 0x0;})),_0x3d5f1a['plugins']['has']('ImageSizeAttributes')&&(_0x2e40c2['registerBlockAttribute']('width'),_0x2e40c2['registerBlockAttribute']('height'),_0x2e40c2['descriptionFactory']['registerDescriptionCallback'](_0x4f59dc=>{if('attribute'!=_0x4f59dc['type'])return;const {data:_0x55a528}=_0x4f59dc;return!_0x55a528||'width'!=_0x55a528['key']&&'height'!=_0x55a528['key']?void 0x0:{'type':'format','content':''};})),_0x2e40c2['descriptionFactory']['registerDescriptionCallback'](_0x490967=>{if(!!_0xf9571c['find'](({type:_0x4fe5a6,subType:_0xfcbec2})=>_0x490967['type']==_0x4fe5a6&&_0x490967['subType']==_0xfcbec2))return _0x490967['previous']?{}:void 0x0;}),_0x2e40c2['descriptionFactory']['registerDescriptionCallback'](_0x5f3f7c=>{if('insertion'==_0x5f3f7c['type']||'deletion'==_0x5f3f7c['type']){const _0x40f224=_0x5f3f7c['getContainedElement']();if(_0x40f224&&_0x40f224['is']('element','caption'))return{'type':'insertion'==_0x5f3f7c['type']?'addObject':'removeObject','element':_0x40f224,'quantity':0x1};}}),_0x2e40c2['descriptionFactory']['registerDescriptionCallback'](_0x33bdb5=>'formatBlock'==_0x33bdb5['type']&&'convertInlineImageToBlock'==_0x33bdb5['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x33bdb5['type']&&'convertBlockImageToInline'==_0x33bdb5['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x2e40c2['descriptionFactory']['registerDescriptionCallback'](_0x379e6a=>{if('attribute'!=_0x379e6a['type'])return;const {data:_0x5bcdba}=_0x379e6a;if(!_0x5bcdba||'alt'!=_0x5bcdba['key'])return;const _0x3ea556=_0x5bcdba['newValue'];return _0x3ea556?{'type':'format','content':o(_0x4ac95d,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3ea556+'\x22')}:{'type':'format','content':o(_0x4ac95d,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xeaab25=this['editor'],_0x282bc2=_0xeaab25['locale'];_0xeaab25['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x211944=>{if('formatBlock'!=_0x211944['type']&&'formatInline'!=_0x211944['type'])return;const {data:_0x51d580}=_0x211944;if(_0x51d580){if('imageTextAlternative'==_0x51d580['commandName']){const _0x44178d=_0x51d580['commandParams'][0x0]['newValue'];return _0x44178d?{'type':'format','content':o(_0x282bc2,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x44178d+'\x22')}:{'type':'format','content':o(_0x282bc2,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x51d580['commandName']){const _0x1423a6=_0x51d580['commandParams'][0x0]['width'];return _0x1423a6?{'type':'format','content':o(_0x282bc2,'*Set\x20image\x20width:*\x20%0',_0x1423a6)}:{'type':'format','content':o(_0x282bc2,'*Reset\x20image\x20width*')};}}});}}class st extends _0x43125c{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x4ff8bc=this['editor']['locale'],_0x36f93b=this['editor']['plugins']['get']('TrackChangesEditing');_0x36f93b['enableDefaultAttributesIntegration']('replaceImageSource'),_0x36f93b['registerBlockAttribute']('src'),_0x36f93b['descriptionFactory']['registerDescriptionCallback'](_0x41d59b=>{if('attribute'!=_0x41d59b['type'])return;const {data:_0x3e8e59}=_0x41d59b;return _0x3e8e59&&'src'==_0x3e8e59['key']?_0x3e8e59['newValue']&&_0x3e8e59['oldValue']?{'type':'format','content':o(_0x4ff8bc,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4a6a6f=this['editor']['plugins']['get']('TrackChangesEditing');_0x4a6a6f['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4a6a6f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4a6a6f['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4a6a6f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f21eb=this['editor'],_0x6ce5e3=_0x1f21eb['locale'];_0x1f21eb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x93b6c3=>{if('formatBlock'!=_0x93b6c3['type']&&'formatInline'!=_0x93b6c3['type'])return;const {data:_0x1efdb5}=_0x93b6c3;if(!_0x1efdb5||'replaceImageSource'!=_0x1efdb5['commandName'])return;return{'type':'format','content':o(_0x6ce5e3,'*Format:*\x20replace\x20image\x20URL')};});}}class ot extends _0x43125c{['afterInit'](){const _0x475f6c=this['editor'];if(!_0x475f6c['plugins']['has']('ImageStyleEditing'))return;const _0x422e61=_0x475f6c['plugins']['get']('TrackChangesEditing'),_0x414085=_0x475f6c['plugins']['get']('ImageUtils'),_0x271e50={};_0x422e61['enableCommand']('imageStyle',(_0x34b270,_0x4e9fb6)=>{const _0x54fbb4=_0x475f6c['plugins']['get']('Users')['me'],_0x2d887c=_0x475f6c['commands']['get']('imageStyle');let _0x30c650=_0x414085['getClosestSelectedImageElement'](_0x475f6c['model']['document']['selection']),_0x659f2a=_0x475f6c['model']['createRangeOn'](_0x30c650),_0x1e6865=_0x2d887c['value'];if(_0x1e6865==_0x4e9fb6['value'])return;const _0x3dd588={'commandName':'imageStyle','commandParams':[_0x4e9fb6],'formatGroupId':_0x339e56()};_0x475f6c['model']['change'](()=>{if(_0x422e61['getSuggestions']()['filter'](_0xdec6b=>_0xdec6b['isInContent']&&_0x54fbb4==_0xdec6b['author']&&('formatBlock'==_0xdec6b['type']||'formatInline'==_0xdec6b['type'])&&('imageStylePreApply'==_0xdec6b['subType']||'imageStylePostApply'==_0xdec6b['subType'])&&_0xdec6b['getFirstRange']()['isEqual'](_0x659f2a))['forEach'](_0x22db24=>_0x422e61['discardSuggestion'](_0x22db24['head'])),_0x30c650=_0x414085['getClosestSelectedImageElement'](_0x475f6c['model']['document']['selection']),_0x659f2a=_0x475f6c['model']['createRangeOn'](_0x30c650),_0x2d887c['refresh'](),_0x475f6c['commands']['get']('imageTypeInline')['refresh'](),_0x475f6c['commands']['get']('imageTypeBlock')['refresh'](),_0x1e6865=_0x2d887c['value'],_0x1e6865!=_0x4e9fb6['value'])return _0x414085['isInlineImage'](_0x30c650)&&_0x2d887c['shouldConvertImageType'](_0x4e9fb6['value'],_0x30c650)?(_0x34b270({..._0x4e9fb6,'setImageSizes':!0x1}),_0x30c650=_0x414085['getClosestSelectedImageElement'](_0x475f6c['model']['document']['selection']),void _0x422e61['markBlockFormat'](_0x30c650,{..._0x3dd588,'commandReversedParams':[{'value':_0x1e6865||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x414085['isBlockImage'](_0x30c650)?_0x422e61['markBlockFormat'](_0x30c650,_0x3dd588,[],'imageStylePostApply'):_0x422e61['markInlineFormat'](_0x659f2a,_0x3dd588,'imageStylePostApply'));});});for(const _0x248969 of _0x475f6c['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x271e50[_0x248969['name']]=_0x248969['title']['toLowerCase']();_0x422e61['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x422e61['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x422e61['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x422e61['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x419974])=>{_0x414085['setImageNaturalSizeAttributes'](_0x419974['getContainedElement']());}),_0x422e61['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x41e236,_0x15453b)=>{_0x422e61['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x41e236,{'commandName':_0x15453b['commandName'],'commandParams':_0x15453b['commandReversedParams']});}),_0x422e61['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x2dd87c,_0x19b5d2){if(_0x5b2f35(_0x2dd87c,_0x19b5d2))return[_0x2dd87c,_0x19b5d2];if(_0x5b2f35(_0x19b5d2,_0x2dd87c))return[_0x19b5d2,_0x2dd87c];return null;});const _0x100377=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5b2f35(_0x3b1436,_0x55e1d2){const _0x5a28bb=_0x100377['findIndex'](({type:_0x290f63,subType:_0x2af138})=>_0x3b1436['type']==_0x290f63&&_0x3b1436['subType']==_0x2af138),_0x3941f9=_0x100377['findIndex'](({type:_0x2ff83d,subType:_0x48b658})=>_0x55e1d2['type']==_0x2ff83d&&_0x55e1d2['subType']==_0x48b658);if(_0x5a28bb<0x0||_0x3941f9<0x0)return!0x1;const _0x1790b3=_0x3b1436['getFirstRange'](),_0xcebb4b=_0x55e1d2['getFirstRange']();if((0x0==_0x5a28bb||0x1==_0x5a28bb)&&0x2==_0x3941f9&&_0x1790b3['isIntersecting'](_0xcebb4b))return!0x0;if(0x2==_0x5a28bb&&0x3==_0x3941f9){const _0x26ed87=_0x422e61['_findSuggestions'](_0x1790b3,'insertion')['filter'](({suggestion:_0x25ef01,meta:_0x552b0c})=>_0x552b0c['isOwn']&&'convertInlineImageToBlock'==_0x25ef01['subType']);if(_0x26ed87['length']>0x1&&_0xcebb4b['end']['isEqual'](_0x1790b3['start']))return!0x0;if(0x1==_0x26ed87['length']&&(_0x1790b3['start']['isEqual'](_0xcebb4b['end'])||_0x1790b3['end']['isEqual'](_0xcebb4b['start'])))return!0x0;}if(0x3==_0x5a28bb&&0x3==_0x3941f9&&_0x1790b3['start']['isBefore'](_0xcebb4b['start'])){const _0x43441c=_0x1790b3['end']['nodeAfter'],_0x5fa1f7=_0xcebb4b['start']['nodeBefore'];return _0x414085['isBlockImage'](_0x43441c)&&_0x43441c===_0x5fa1f7;}return!0x1;}_0x475f6c['model']['document']['registerPostFixer'](()=>{let _0x4a1e6c=!0x1;const _0x1971b1=Array['from'](_0x475f6c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x14c8d5,data:_0x21ab94}of _0x1971b1){const {group:_0x1a6116,type:_0x5ec4ed,subType:_0x537bd6,id:_0xda9248}=_0x422e61['_splitMarkerName'](_0x14c8d5);if('suggestion'==_0x1a6116&&_0x422e61['hasSuggestion'](_0xda9248)){if('formatBlock'==_0x5ec4ed&&('imageStylePreApply'==_0x537bd6||'imageStylePostApply'==_0x537bd6)){const _0x1a32b5=_0x422e61['getSuggestion'](_0xda9248);if(_0x21ab94['newRange']){const _0x396f8f=_0x1a32b5['getFirstRange']()['getContainedElement']();if(_0x414085['isBlockImage'](_0x396f8f))continue;_0x422e61['discardSuggestion'](_0x1a32b5),_0x4a1e6c=!0x0;}}if('insertion'==_0x5ec4ed&&'imageCaption'==_0x537bd6&&!_0x21ab94['newRange']){const _0x3ac841=_0x422e61['getSuggestion'](_0xda9248);_0x3ac841['next']&&_0x3ac841['next']['isInContent']&&(_0x422e61['discardSuggestion'](_0x3ac841['next']),_0x4a1e6c=!0x0);}}}return _0x4a1e6c;}),this['_registerLegacyDescription'](_0x271e50);}['_registerLegacyDescription'](_0x56bdbd){const _0x53b8e0=this['editor'],_0x420c31=_0x53b8e0['locale'];_0x53b8e0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x41cb00=>{if('formatBlock'!=_0x41cb00['type']&&'formatInline'!=_0x41cb00['type'])return;const {data:_0x1ccfe0}=_0x41cb00;if(!_0x1ccfe0||'imageStyle'!=_0x1ccfe0['commandName'])return;const _0x36a836=_0x1ccfe0['commandParams'][0x0]['value'];return _0x35ff48('side'===_0x36a836?o(_0x420c31,'FORMAT_SIDE_IMAGE'):_0x56bdbd[_0x36a836]||_0x36a836);function _0x35ff48(_0x47c99e){return{'type':'format','content':o(_0x420c31,'*Format:*\x20%0',_0x47c99e)};}});}}class rt extends _0x43125c{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x2510b5){super(_0x2510b5),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x422297=this['editor'],_0x66202a=_0x422297['commands']['get']('importWord'),_0x1d790f=_0x422297['commands']['get']('trackChanges');_0x66202a&&(_0x66202a['on']('execute',(_0x179436,[,_0x2a50ce])=>{this['_trackChangesValueDuringImport']=_0x1d790f['value'],_0x2a50ce['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x66202a,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x66202a,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x1d790f['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x422297['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x23ac7f,_0x5151fe){const {suggestions:_0x43ec7e}=_0x5151fe,_0xee975d=this['editor']['commands']['get']('trackChanges'),_0x20d7ca=_0xee975d['value'];this['_trackChangesValueDuringImport']!==_0x20d7ca&&(_0xee975d['execute'](),this['_trackChangesExecuted']=!0x0),_0x43ec7e&&_0x43ec7e['forEach'](({id:_0x35e0ea,type:_0x45e896,author:_0x3fd93e,created_at:_0x4de844})=>{const _0x2b7ee2={'id':_0x35e0ea,'type':_0x45e896,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x3fd93e,'createdAt':_0x4de844?new Date(_0x4de844):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x2b7ee2);});}}class at extends _0x43125c{['afterInit'](){const _0x4cbc3e=this['editor'],_0x54bffd=_0x4cbc3e['plugins']['get']('TrackChangesEditing');if(_0x4cbc3e['plugins']['has']('IndentEditing')&&(_0x54bffd['enableCommand']('indent'),_0x54bffd['enableCommand']('outdent')),_0x4cbc3e['plugins']['has']('IndentBlock')){for(const _0x2cfe0d of['indentBlock','outdentBlock'])_0x54bffd['enableDefaultAttributesIntegration'](_0x2cfe0d);}const _0x344c03=_0x4cbc3e['locale'];_0x54bffd['registerBlockAttribute']('blockIndent'),_0x54bffd['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x344c03,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x517b13=this['editor'],_0x1caaad=_0x517b13['locale'],_0xe237e3=_0x517b13['plugins']['get']('TrackChangesEditing');_0xe237e3['descriptionFactory']['registerDescriptionCallback'](_0x586884=>{if('formatBlock'!=_0x586884['type'])return;const {data:_0x1aab6e}=_0x586884;if(!_0x1aab6e)return;if('indentBlock'!=_0x1aab6e['commandName']&&'outdentBlock'!=_0x1aab6e['commandName'])return;const _0x13c4ba=_0x586884['getItems']()[0x0],_0x5869a1=_0xe237e3['descriptionFactory']['getItemLabel'](_0x13c4ba);return'indentBlock'==_0x1aab6e['commandName']?{'type':'format','content':o(_0x1caaad,'*Indent:*\x20%0',_0x5869a1)}:'outdentBlock'==_0x1aab6e['commandName']?{'type':'format','content':o(_0x1caaad,'*Outdent:*\x20%0',_0x5869a1)}:void 0x0;});}}class ct extends _0x43125c{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ut extends _0x43125c{['afterInit'](){const _0x34089e=this['editor'];if(!_0x34089e['plugins']['has']('LinkEditing'))return;const _0x3f220c=_0x34089e['plugins']['get']('TrackChangesEditing'),_0x3218de=_0x34089e['commands']['get']('link');_0x3f220c['enableDefaultAttributesIntegration']('link'),_0x3f220c['enableDefaultAttributesIntegration']('unlink'),_0x3f220c['registerInlineAttribute']('linkHref');for(const _0x49ef35 of _0x3218de['manualDecorators'])_0x3f220c['registerInlineAttribute'](_0x49ef35['id']),_0x3f220c['descriptionFactory']['registerAttributeLabel'](_0x49ef35['id'],'link\x20('+_0x49ef35['label']['toLowerCase']()+')');_0x3f220c['descriptionFactory']['registerDescriptionCallback'](_0x2a19ea=>{if('attribute'!=_0x2a19ea['type'])return;const {data:_0x4c25d9}=_0x2a19ea;if(!_0x4c25d9||'linkHref'!=_0x4c25d9['key'])return;const _0x3c6065=_0x4c25d9['newValue'],_0x2c383f=_0x34089e['locale'];return{'type':'format','content':null==_0x3c6065?o(_0x2c383f,'*Remove\x20link*'):o(_0x2c383f,'*Set\x20link:*\x20%0','\x22'+_0x3c6065+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x49765c=this['editor'],_0x1122bd=_0x49765c['locale'];_0x49765c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4c10f2=>{if('formatInline'!=_0x4c10f2['type'])return;const {data:_0x56ccc7}=_0x4c10f2;if(_0x56ccc7){if('link'==_0x56ccc7['commandName']){const _0xd1d482=_0x56ccc7['commandParams'][0x0];return{'type':'format','content':o(_0x1122bd,'*Set\x20link:*\x20%0','\x22'+_0xd1d482+'\x22')};}return'unlink'==_0x56ccc7['commandName']?{'type':'format','content':o(_0x1122bd,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x43125c{['afterInit'](){const _0x59f2b2=this['editor'],_0x1ede55=_0x59f2b2['locale'];if(!_0x59f2b2['plugins']['has']('LegacyListEditing'))return;const _0x46d1ab=_0x59f2b2['plugins']['get']('TrackChangesEditing'),_0x42a543=_0x59f2b2['plugins']['has']('LegacyTodoListEditing');function _0x3764a9(_0x317fb5){return()=>{const _0x16475b=_0x59f2b2['model']['document']['selection'],_0x5cb0a1=_0x59f2b2['commands']['get'](_0x317fb5);if(_0x5cb0a1['value'])return void _0x59f2b2['execute']('paragraph',{});const _0x1de8a8=_0x317fb5['slice'](0x0,-0x4),_0x12d0f0=function(_0x4d99ff,_0x23dd04,_0x2811d2){let _0x1c1812=Array['from'](_0x4d99ff)['filter'](_0x341244=>function(_0x3bd07c,_0x25622a){return _0x25622a['checkChild'](_0x3bd07c['parent'],'listItem')&&!_0x25622a['isObject'](_0x3bd07c);}(_0x341244,_0x2811d2));_0x1c1812=_0x1c1812['filter'](_0x387c7b=>!_0x387c7b['is']('element','listItem')||_0x387c7b['getAttribute']('listType')!=_0x23dd04);const _0x54f1ed=new Set();for(const _0x13f806 of _0x1c1812)_0x13f806['is']('element','listItem')?_0x54f1ed['add'](Le(_0x13f806)):_0x54f1ed['add'](_0x13f806);return Array['from'](_0x54f1ed);}(_0x16475b['getSelectedBlocks'](),_0x1de8a8,_0x59f2b2['model']['schema']);_0x59f2b2['model']['change'](()=>{for(const _0x7df16c of _0x12d0f0)_0x46d1ab['markBlockFormat'](_0x7df16c,{'commandName':_0x317fb5,'commandParams':[{'forceValue':!_0x5cb0a1['value']}],'formatGroupId':'blockName'},Ee(_0x7df16c));});};}function _0x52d91(_0x384c90){return()=>{const _0x2de3e6=function(_0x22b573){let _0x1e6a48=Array['from'](_0x22b573);const _0x316a88=_0x1e6a48['findIndex'](_0x11c241=>'listItem'!=_0x11c241['name']);return _0x316a88>-0x1&&(_0x1e6a48=_0x1e6a48['slice'](0x0,_0x316a88)),_0x1e6a48;}(_0x59f2b2['model']['document']['selection']['getSelectedBlocks']()),_0x14e114=_0x59f2b2['model']['createRange'](_0x59f2b2['model']['createPositionAt'](_0x2de3e6[0x0],'before'),_0x59f2b2['model']['createPositionAt'](_0x2de3e6[_0x2de3e6['length']-0x1],'end'));_0x59f2b2['model']['change'](()=>{_0x46d1ab['markBlockFormat'](_0x14e114,{'commandName':_0x384c90,'commandParams':[],'formatGroupId':'listIndent'},function(_0x344935){const _0x48f6ca=new Set();for(const _0x4157ab of _0x344935){let _0x4747b5=_0x4157ab['nextSibling'];for(;_0x4747b5&&_0x4747b5['getAttribute']('listIndent')>_0x4157ab['getAttribute']('listIndent');)_0x48f6ca['add'](_0x4747b5),_0x4747b5=_0x4747b5['nextSibling'];}return Array['from'](_0x48f6ca);}(_0x2de3e6));});};}_0x46d1ab['enableCommand']('numberedList',_0x3764a9('numberedList')),_0x46d1ab['enableCommand']('bulletedList',_0x3764a9('bulletedList')),_0x42a543&&_0x46d1ab['enableCommand']('todoList',_0x3764a9('todoList')),_0x46d1ab['enableCommand']('indentList',_0x52d91('indentList')),_0x46d1ab['enableCommand']('outdentList',_0x52d91('outdentList')),_0x42a543&&_0x46d1ab['enableCommand']('checkTodoList',()=>{const _0x2d58e2=_0x59f2b2['commands']['get']('checkTodoList'),_0x1fcce7=Array['from'](_0x2d58e2['_selectedElements']);_0x1fcce7['filter'](_0x417d9f=>_0x417d9f['getAttribute']('todoListChecked')!=_0x2d58e2['value']),_0x59f2b2['model']['change'](()=>{for(const _0x33d6d5 of _0x1fcce7)_0x46d1ab['markBlockFormat'](_0x33d6d5,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2d58e2['value']}]});});}),_0x46d1ab['descriptionFactory']['registerElementLabel']('listItem',_0x182586=>o(_0x1ede55,'ELEMENT_LIST_ITEM',_0x182586)),_0x46d1ab['descriptionFactory']['registerDescriptionCallback'](_0x15c96b=>{if('formatBlock'!=_0x15c96b['type']&&'formatInline'!=_0x15c96b['type'])return;const {data:_0x485fd9}=_0x15c96b;if(_0x485fd9){if('numberedList'==_0x485fd9['commandName']||'bulletedList'==_0x485fd9['commandName']||'todoList'==_0x485fd9['commandName'])switch(_0x485fd9['commandName']['replace']('List','')){case'bulleted':return _0x2eedec(o(_0x1ede55,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2eedec(o(_0x1ede55,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2eedec(o(_0x1ede55,'ELEMENT_TODO_LIST'));}if('indentList'==_0x485fd9['commandName'])return{'type':'format','content':o(_0x1ede55,'*Indent:*\x20%0',o(_0x1ede55,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x485fd9['commandName'])return{'type':'format','content':o(_0x1ede55,'*Outdent:*\x20%0',o(_0x1ede55,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x485fd9['commandName'])return _0x485fd9['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1ede55,'*Check\x20item*')}:{'type':'format','content':o(_0x1ede55,'*Uncheck\x20item*')};}function _0x2eedec(_0x76749f){return{'type':'format','content':o(_0x1ede55,'*Change\x20to:*\x20%0',_0x76749f)};}});}}function Le(_0x532d54){const _0x308064=_0x532d54['getAttribute']('listIndent');if(0x0==_0x308064)return _0x532d54;let _0x4de09c=_0x532d54;for(;_0x532d54['previousSibling']&&_0x532d54['previousSibling']['is']('element','listItem');){const _0x2a64f3=_0x532d54['previousSibling']['getAttribute']('listIndent');if(_0x2a64f3==_0x308064)_0x4de09c=_0x532d54['previousSibling'];else{if(_0x2a64f3<_0x308064)break;}_0x532d54=_0x532d54['previousSibling'];}return _0x4de09c;}function Ee(_0x406e5c){const _0x3d3901=[];if(_0x406e5c['is']('element','listItem')&&_0x406e5c['getAttribute']('listIndent')>0x0){let _0x3d953d=_0x406e5c['nextSibling'];for(;_0x3d953d&&'listItem'==_0x3d953d['name']&&_0x3d953d['getAttribute']('listIndent')==_0x406e5c['getAttribute']('listIndent');)_0x3d3901['push'](_0x3d953d),_0x3d953d=_0x3d953d['nextSibling'];}return _0x3d3901;}class ht extends _0x43125c{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x542469=this['editor']['config']['get']('list.properties'),_0x5effd2=this['editor']['plugins']['get']('TrackChangesEditing');_0x542469['styles']&&_0x5effd2['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x542469['reversed']&&_0x5effd2['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x542469['startIndex']&&_0x5effd2['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x5effd2['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x3baa08,_0x2b298a={}){const _0x2f88ce=this['editor']['plugins']['get']('TrackChangesEditing'),_0xb79d5f=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x2f88ce['markMultiRangeBlockFormat'](_0xb79d5f,{'commandName':'listStyle','commandParams':[{'type':_0x2b298a['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x211913,_0x4f038b={}){const _0x2d5ad4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x8b3068=this['_getSuggestionBlocks'](_0x4f6952=>_0x4f6952['is']('element','listItem')&&'numbered'===_0x4f6952['getAttribute']('listType'));if(_0x8b3068['length']<0x1)return;const _0x51175f=_0x8b3068['map'](_0x26c8cf=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x26c8cf,'before'),this['editor']['model']['createPositionAt'](_0x26c8cf,0x0)));this['editor']['model']['change'](()=>{_0x2d5ad4['markMultiRangeBlockFormat'](_0x51175f,{'commandName':'listReversed','commandParams':[{'reversed':_0x4f038b['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x3b0d65,_0x13b4f8={}){const _0x3082cd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1f213f=this['_getSuggestionBlocks'](_0x5a1773=>_0x5a1773['is']('element','listItem')&&'numbered'===_0x5a1773['getAttribute']('listType'));if(_0x1f213f['length']<0x1)return;const _0x5f5657=_0x1f213f['map'](_0xa34f81=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xa34f81,'before'),this['editor']['model']['createPositionAt'](_0xa34f81,0x0)));this['editor']['model']['change'](()=>{_0x3082cd['markMultiRangeBlockFormat'](_0x5f5657,{'commandName':'listStart','commandParams':[{'startIndex':_0x13b4f8['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0xceb1da){if('formatBlock'!=_0xceb1da['type']&&'formatInline'!=_0xceb1da['type'])return;const _0x3f4886=this['editor']['locale'],{data:_0x433866}=_0xceb1da;if(!_0x433866)return;let _0xe5645d,_0x5eae6b;switch(_0x433866['commandName']){case'listStyle':_0xe5645d='*Change\x20to:*\x20%0',_0x5eae6b={'type':'format','content':o(_0x3f4886,_0xe5645d,o(_0x3f4886,this['_getTranslationKeyForListStyle'](_0x433866['commandParams'][0x0]['type'])))};break;case'listReversed':_0xe5645d=_0x433866['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5eae6b={'type':'format','content':o(_0x3f4886,_0xe5645d)};break;case'listStart':_0xe5645d='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5eae6b={'type':'format','content':o(_0x3f4886,_0xe5645d,_0x433866['commandParams'][0x0]['startIndex'])};}return _0x5eae6b;}['_getSuggestionBlocksForListStyle'](){const _0x2dd9ec=this['editor']['plugins']['get']('LegacyListUtils');let _0x5d734a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x5d734a[0x0]?.['is']('element','listItem')&&_0x5d734a['unshift'](..._0x2dd9ec['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x5d734a[_0x5d734a['length']-0x1]?.['is']('element','listItem')&&_0x5d734a['push'](..._0x2dd9ec['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x5d734a=[...new Set(_0x5d734a)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x5d734a=_0x5d734a['filter'](_0x3fd14=>_0x3fd14['is']('element','listItem'))),_0x5d734a;}['_getSuggestionBlocks'](_0x3a03a9){const _0x3b69ab=this['editor']['plugins']['get']('LegacyListUtils');let _0xfa6af0=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x3a03a9)['map'](_0x4f32e1=>{const _0x117009=this['editor']['model']['createPositionAt'](_0x4f32e1,0x0);return[..._0x3b69ab['getSiblingNodes'](_0x117009,'backward'),..._0x3b69ab['getSiblingNodes'](_0x117009,'forward')];})['flat']();return _0xfa6af0=[...new Set(_0xfa6af0)],_0xfa6af0;}['_getTranslationKeyForListStyle'](_0x32a50d){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x32a50d)||'default')['toUpperCase']()+'_LIST_'+_0x32a50d['toUpperCase']()['replace'](/-/g,'_');}}class gt extends _0x43125c{['afterInit'](){const _0x24c2b7=this['editor'];if(!_0x24c2b7['plugins']['has']('MediaEmbedEditing'))return;const _0x2d2053=_0x24c2b7['plugins']['get']('TrackChangesEditing'),_0x357eb1=_0x24c2b7['locale'];_0x2d2053['enableCommand']('mediaEmbed'),_0x2d2053['descriptionFactory']['registerElementLabel']('media',_0x1adfc4=>o(_0x357eb1,'ELEMENT_MEDIA',_0x1adfc4)),_0x24c2b7['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x183b32,{writer:_0x3fca3e,options:_0x53f947})=>{if(_0x53f947['showSuggestionHighlights'])return _0x3fca3e['createEmptyElement']('div');},'converterPriority':'high'}),_0x24c2b7['data']['downcastDispatcher']['on']('attribute:url:media',(_0x223cd1,_0x26d0c5,_0x12bf59)=>{_0x12bf59['options']['showSuggestionHighlights']&&_0x223cd1['stop']();},{'priority':'high'});}}class lt extends _0x43125c{['afterInit'](){const _0xb5d6a3=this['editor'];_0xb5d6a3['plugins']['has']('MentionEditing')&&_0xb5d6a3['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x43125c{['afterInit'](){const _0x382adc=this['editor'];if(!_0x382adc['plugins']['has']('MergeFieldsEditing'))return;const _0x3441fe=_0x382adc['plugins']['get']('TrackChangesEditing'),_0x1cb79a=_0x382adc['locale'];_0x3441fe['enableCommand']('insertMergeField'),_0x3441fe['enableCommand']('insertMergeFieldBlock'),_0x3441fe['enableCommand']('insertMergeFieldImage'),_0x3441fe['descriptionFactory']['registerElementLabel']('mergeField',_0x3ff4c7=>o(_0x1cb79a,'ELEMENT_MERGE_FIELD',_0x3ff4c7)),_0x3441fe['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x730b2=>o(_0x1cb79a,'ELEMENT_MERGE_FIELD',_0x730b2)),_0x3441fe['descriptionFactory']['registerDescriptionCallback'](_0x512220=>{if('insertion'!=_0x512220['type']&&'deletion'!=_0x512220['type'])return;const _0x3540dc=_0x512220['getContainedElement']();if(null==_0x3540dc)return;const _0x368607=_0x382adc['plugins']['get']('MergeFieldsEditing');let _0x164da5;switch(_0x368607['getMergeFieldType'](_0x3540dc)){case null:return;case'image':{const _0x352372=_0x368607['unwrapAffixes'](_0x3540dc['getAttribute']('src'));_0x164da5=_0x368607['getLabel'](_0x352372)||_0x352372;break;}default:{const _0x39f2e4=_0x3540dc['getAttribute']('id');_0x164da5=_0x368607['getLabel'](_0x39f2e4)||_0x39f2e4;break;}}return'insertion'==_0x512220['type']?{'type':'insertion','content':o(_0x1cb79a,'*Insert:*\x20%0','\x22'+_0x164da5+'\x22\x20'+o(_0x1cb79a,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x1cb79a,'*Remove:*\x20%0','\x22'+_0x164da5+'\x22\x20'+o(_0x1cb79a,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0x43125c{['afterInit'](){const _0x298267=this['editor'],_0x57fa78=_0x298267['plugins']['get']('TrackChangesEditing');_0x298267['plugins']['has']('MultiLevelList')&&(_0x57fa78['enableDefaultAttributesIntegration']('multiLevelList'),_0x57fa78['registerBlockAttribute']('listMarkerStyle'),_0x57fa78['descriptionFactory']['registerDescriptionCallback'](_0x2bbaa3=>this['handleDescriptions'](_0x2bbaa3)));}['handleDescriptions'](_0x4fc4ac){const _0x351f80=this['editor']['locale'],{data:_0x84eced}=_0x4fc4ac,_0x2772e6={'type':'format','content':''};if(_0x84eced&&'listMarkerStyle'==_0x84eced['key']){if(!_0x84eced['oldValue'])return{'type':'format','content':o(_0x351f80,'*Set\x20format:*\x20%0',o(_0x351f80,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x84eced['newValue']+')'};if(!_0x84eced['newValue']){let _0x3b5346=_0x4fc4ac['head'];for(;_0x3b5346;){if(_0x3b5346['data']&&'listType'==_0x3b5346['data']['key']&&_0x3b5346['data']['newValue'])return _0x2772e6;_0x3b5346=_0x3b5346['next'];}return{'type':'format','content':o(_0x351f80,'*Remove\x20format:*\x20%0',o(_0x351f80,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x84eced['oldValue']+')'};}}}}class pt extends _0x43125c{['afterInit'](){const _0x504200=this['editor'];if(!_0x504200['plugins']['has']('PageBreakEditing'))return;_0x504200['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x79f18=_0x504200['plugins']['get']('TrackChangesEditing'),_0x1d6f75=_0x504200['locale'];_0x79f18['descriptionFactory']['registerElementLabel']('pageBreak',_0x4f55bf=>o(_0x1d6f75,'ELEMENT_PAGE_BREAK',_0x4f55bf));}}class kt extends _0x43125c{['afterInit'](){const _0x4abf44=this['editor'];if(!_0x4abf44['plugins']['has']('Paragraph'))return;const _0x23a7c6=_0x4abf44['locale'],_0x24f3ad=_0x4abf44['plugins']['get']('TrackChangesEditing');_0x24f3ad['descriptionFactory']['registerElementLabel']('paragraph',_0x2e89a5=>o(_0x23a7c6,'ELEMENT_PARAGRAPH',_0x2e89a5)),_0x24f3ad['enableDefaultAttributesIntegration']('paragraph'),_0x24f3ad['enableCommand']('insertParagraph'),_0x4abf44['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x4abf44),{'priority':'highest'}),_0x4abf44['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x312911,_0x21db6d,_0x5e0864)=>{_0x5e0864['options']['showSuggestionHighlights']&&nr(_0x4abf44,{'showActiveMarker':!0x1})(_0x312911,_0x21db6d,_0x5e0864);},{'priority':'highest'});const _0x1fd982=_0x24f3ad['descriptionFactory'];_0x1fd982['registerDescriptionCallback'](_0x57f49a=>{if('insertion'!==_0x57f49a['type'])return;const {start:_0x38c801,end:_0x6bad4d}=_0x57f49a['getFirstRange']();if(!_0x38c801['isTouching'](_0x6bad4d)||!_0x38c801['nodeAfter'])return;const _0x2e8bf2=_0x4abf44['model']['schema'],_0x4b8aba=_0x38c801['nodeAfter'];return _0x2e8bf2['isBlock'](_0x4b8aba)&&!_0x2e8bf2['isLimit'](_0x4b8aba)&&_0x2e8bf2['checkChild'](_0x4b8aba,'$text')?{'type':'insertion','content':o(_0x23a7c6,'*Insert:*\x20%0',_0x1fd982['getItemLabel'](_0x4b8aba,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x40a362=this['editor'],_0x30c28f=_0x40a362['locale'];_0x40a362['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x32339c=>{if('formatBlock'!=_0x32339c['type'])return;const {data:_0x45c957}=_0x32339c;return _0x45c957&&'paragraph'==_0x45c957['commandName']?{'type':'format','content':o(_0x30c28f,'*Change\x20to:*\x20%0',o(_0x30c28f,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x4b82ca,{showActiveMarker:_0x19eac0=!0x0}={}){return(_0x10ba0a,_0x382220,_0xf2d79c)=>{const _0x9fde1b=_0x4b82ca['plugins']['get']('TrackChangesEditing'),_0x46bd94=_0x382220['markerRange']['start'],_0x1db256=_0x382220['markerRange']['end'],_0x93c4b7=_0x4b82ca['model']['schema'];if(!_0x46bd94['isTouching'](_0x1db256)||!_0x46bd94['nodeAfter'])return;const _0x5e6e58=_0x46bd94['nodeAfter'];if(_0x93c4b7['isBlock'](_0x5e6e58)&&!_0x93c4b7['isLimit'](_0x5e6e58)&&_0x93c4b7['checkChild'](_0x5e6e58,'$text')){if(!_0xf2d79c['consumable']['consume'](_0x382220['markerRange'],_0x10ba0a['name']))return;const {id:_0x6569e5,authorId:_0x4a4a0f}=_0x9fde1b['_splitMarkerName'](_0x382220['markerName']),_0x211589=_0xf2d79c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x6569e5,'data-author-id':_0x4a4a0f}),_0x50d533=_0xf2d79c['mapper']['toViewPosition'](_0x1db256);_0x19eac0&&_0x9fde1b['activeMarkers']['includes'](_0x382220['markerName'])&&_0xf2d79c['writer']['addClass']('ck-suggestion-marker--active',_0x211589),_0xf2d79c['writer']['insert'](_0x50d533,_0x211589),_0xf2d79c['mapper']['bindElementToMarker'](_0x211589,_0x382220['markerName']);}};}class wt extends _0x43125c{['afterInit'](){const _0x3f1af1=this['editor'];_0x3f1af1['commands']['get']('replaceSource')&&_0x3f1af1['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class bt extends _0x43125c{['afterInit'](){const _0x5e6cd4=this['editor'];if(!_0x5e6cd4['plugins']['has']('RemoveFormatEditing'))return;_0x5e6cd4['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b4923=this['editor'];_0x1b4923['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2683a6=>{if('formatBlock'!=_0x2683a6['type']&&'formatInline'!=_0x2683a6['type'])return;const {data:_0x3260b1}=_0x2683a6;return _0x3260b1&&'removeFormat'==_0x3260b1['commandName']?{'type':'format','content':o(_0x1b4923['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x43125c{['afterInit'](){const _0x2ada27=this['editor'];if(!_0x2ada27['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x4472ab=_0x2ada27['plugins']['get']('TrackChangesEditing');_0x4472ab['enableCommand']('goToPreviousRestrictedEditingException'),_0x4472ab['enableCommand']('goToNextRestrictedEditingException');const _0x4ad987=_0x2ada27['plugins']['get']('RestrictedEditingModeEditing');_0x4ad987['enableCommand']('trackChanges'),_0x4ad987['enableCommand']('acceptSuggestion'),_0x4ad987['enableCommand']('discardSuggestion'),_0x4ad987['enableCommand']('acceptAllSuggestions'),_0x4ad987['enableCommand']('discardAllSuggestions'),_0x4ad987['enableCommand']('acceptSelectedSuggestions'),_0x4ad987['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x43125c{['afterInit'](){const _0x34e670=this['editor'];if(!_0x34e670['plugins']['has']('ShiftEnter'))return;const _0x533f03=_0x34e670['plugins']['get']('TrackChangesEditing');_0x533f03['enableCommand']('shiftEnter'),_0x34e670['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x34e670),{'priority':'high'}),_0x34e670['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x34e670),{'priority':'high'}),_0x34e670['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5c635e,_0x4a59ee,_0x57f239)=>{_0x57f239['options']['showSuggestionHighlights']&&je(_0x34e670,{'showActiveMarker':!0x1})(_0x5c635e,_0x4a59ee,_0x57f239);}),_0x533f03['descriptionFactory']['registerElementLabel']('softBreak',_0x6a62ba=>o(_0x34e670['locale'],'ELEMENT_LINE_BREAK',_0x6a62ba));}}function je(_0x559cb5,{showActiveMarker:_0xf9dce0=!0x0}={}){return(_0x52dd57,_0x2d6a6d,_0x2fd191)=>{const _0xd38059=_0x559cb5['plugins']['get']('TrackChangesEditing');if(!_0x2fd191['consumable']['test'](_0x2d6a6d['markerRange'],_0x52dd57['name']))return;const _0x40eaa3=_0x559cb5['model'];for(const _0x2f1257 of _0x2d6a6d['markerRange']['getItems']()){if(!_0x2f1257['is']('element','softBreak'))continue;const _0x5b767c='deletion'==_0x2d6a6d['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x2903f3,authorId:_0x1cb57a}=_0xd38059['_splitMarkerName'](_0x2d6a6d['markerName']),_0x474a14=_0x2fd191['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5b767c,'data-suggestion':_0x2903f3,'data-author-id':_0x1cb57a}),_0x34782f=_0x2fd191['mapper']['toViewPosition'](_0x40eaa3['createPositionBefore'](_0x2f1257));_0xf9dce0&&_0xd38059['activeMarkers']['includes'](_0x2d6a6d['markerName'])&&_0x2fd191['writer']['addClass']('ck-suggestion-marker--active',_0x474a14),_0x2fd191['writer']['insert'](_0x34782f,_0x474a14),_0x2fd191['mapper']['bindElementToMarker'](_0x474a14,_0x2d6a6d['markerName']);}};}class St extends _0x43125c{['afterInit'](){const _0x1253a0=this['editor'],_0x6635ae=_0x1253a0['model'],_0x3f5a90=_0x1253a0['locale'];if(!_0x1253a0['plugins']['has']('StandardEditingModeEditing'))return;const _0x3fdb17=_0x1253a0['plugins']['get']('TrackChangesEditing'),_0x354327='restrictedEditingException',_0x5ce4d2=_0x1253a0['commands']['get'](_0x354327);_0x3fdb17['enableCommand'](_0x354327,(_0xd72c10,_0x1561a7={})=>{const _0x125fb5=_0x6635ae['document']['selection'];if(_0x125fb5['isCollapsed'])return void _0xd72c10(_0x1561a7);const _0x51e184=void 0x0!==_0x1561a7['forceValue']?_0x1561a7['forceValue']:!_0x5ce4d2['value'];_0x6635ae['change'](()=>{const _0x1a3f1a=Array['from'](_0x125fb5['getRanges']());for(const _0x49abcb of _0x1a3f1a){const _0x5d9a28=_0x51e184?[_0x49abcb]:io(_0x354327,_0x49abcb,_0x6635ae);for(const _0x6bfdc1 of _0x5d9a28)_0x3fdb17['markInlineFormat'](_0x6bfdc1,{'commandName':_0x354327,'commandParams':[{'forceValue':_0x51e184}]});}});}),_0x3fdb17['descriptionFactory']['registerDescriptionCallback'](_0x513463=>{if('formatBlock'!=_0x513463['type']&&'formatInline'!=_0x513463['type'])return;const {data:_0x436c2d}=_0x513463;return _0x436c2d&&_0x436c2d['commandName']==_0x354327?_0x436c2d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3f5a90,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x3f5a90,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x43125c{['afterInit'](){const _0x59439e=this['editor'];if(!_0x59439e['plugins']['has']('Style')||!_0x59439e['plugins']['has']('DataSchema'))return;const _0x17bb21=_0x59439e['plugins']['get']('TrackChangesEditing'),_0x1a634b=_0x59439e['locale'],_0x4aaf67=_0x59439e['config']['get']('style')||{},_0x417278=_0x59439e['plugins']['get']('GeneralHtmlSupport'),_0x5bed77=_0x59439e['plugins']['get']('StyleUtils')['normalizeConfig'](_0x59439e['plugins']['get']('DataSchema'),_0x4aaf67['definitions']);_0x17bb21['enableDefaultAttributesIntegration']('style');const _0x4b5641=new Set();for(const _0xeecd20 of _0x5bed77['block']){const _0x51e6db=_0x417278['getGhsAttributeNameForElement'](_0xeecd20['element']);_0x4b5641['add'](_0x51e6db);}const _0x4a8347=new Set();for(const _0xdcccf1 of _0x5bed77['inline']){const _0x8cf3c7=_0x417278['getGhsAttributeNameForElement'](_0xdcccf1['element']);_0x4a8347['add'](_0x8cf3c7);for(const _0x562efb of _0xdcccf1['ghsAttributes'])_0x4a8347['add'](_0x562efb);}for(const _0x54441b of _0x4b5641)_0x17bb21['registerBlockAttribute'](_0x54441b),_0x17bb21['descriptionFactory']['registerAttributeLabel'](_0x54441b,o(_0x1a634b,'FORMAT_STYLE'));for(const _0x3ae187 of _0x4a8347)_0x17bb21['registerInlineAttribute'](_0x3ae187),_0x17bb21['descriptionFactory']['registerAttributeLabel'](_0x3ae187,o(_0x1a634b,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3b7704=this['editor'],_0x4d2e41=_0x3b7704['locale'];_0x3b7704['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xc57910=>{if('formatBlock'!=_0xc57910['type']&&'formatInline'!=_0xc57910['type'])return;const {data:_0x4c77dd}=_0xc57910;return _0x4c77dd&&'style'===_0x4c77dd['commandName']?_0x4c77dd['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4d2e41,'*Set\x20format:*\x20%0',_0x4c77dd['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x4d2e41,'*Remove\x20format:*\x20%0',_0x4c77dd['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class At extends _0x43125c{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x456f6d){super(_0x456f6d),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x428b79=this['editor'],_0x159604=_0x428b79['model']['document']['selection'];if(!_0x428b79['plugins']['has']('TableEditing'))return;const _0x596384=_0x428b79['locale'],_0x2f389e=_0x428b79['plugins']['get']('TrackChangesEditing'),_0x33023f=_0x428b79['plugins']['get']('TableUtils');_0x2f389e['descriptionFactory']['registerElementLabel']('table',_0x103f31=>o(_0x596384,'ELEMENT_TABLE',_0x103f31)),this['_setupColumnsRowsFixing'](),_0x2f389e['enableCommand']('insertTable'),_0x2f389e['enableCommand']('selectTableRow'),_0x2f389e['enableCommand']('selectTableColumn');for(const _0x1e658e of['insertTableRowAbove','insertTableRowBelow']){const _0x2fc922=_0x428b79['commands']['get'](_0x1e658e);_0x2f389e['enableCommand'](_0x1e658e,_0x16ba1f=>{_0x428b79['model']['change'](_0x363315=>{_0x16ba1f();const _0x4d1b8c='above'===_0x2fc922['order'],_0x435866=_0x33023f['getSelectionAffectedTableCells'](_0x159604),_0xa89012=_0x33023f['getRowIndexes'](_0x435866),_0x257d8e=_0x4d1b8c?_0xa89012['first']-0x1:_0xa89012['last']+0x1,_0x1562ea=_0x435866[0x0]['findAncestor']('table'),_0x488037=_0x33023f['createTableWalker'](_0x1562ea,{'startRow':_0x257d8e,'endRow':_0x257d8e}),_0x10aff3=Array['from'](_0x488037)['map'](_0x128542=>_0x363315['createRangeOn'](_0x128542['cell']));_0x2f389e['markMultiRangeInsertion'](_0x10aff3,'tableRow');});});}for(const _0x4c7497 of['insertTableColumnLeft','insertTableColumnRight']){const _0x525457=_0x428b79['commands']['get'](_0x4c7497);_0x2f389e['enableCommand'](_0x4c7497,_0x144415=>{_0x428b79['model']['change'](_0xb8a883=>{_0x144415();const _0x47938c='left'===_0x525457['order'],_0x2884f6=_0x33023f['getSelectionAffectedTableCells'](_0x159604),_0x359646=_0x33023f['getColumnIndexes'](_0x2884f6),_0x3a7402=_0x47938c?_0x359646['first']-0x1:_0x359646['last']+0x1,_0x304841=_0x2884f6[0x0]['findAncestor']('table'),_0x41f493=_0x33023f['createTableWalker'](_0x304841,{'startRow':0x0,'column':_0x3a7402,'includeAllSlots':!0x1}),_0x219f1a=Array['from'](_0x41f493)['map'](_0x131189=>_0xb8a883['createRangeOn'](_0x131189['cell']));_0x2f389e['markMultiRangeInsertion'](_0x219f1a,'tableColumn');});});}for(const _0x48e989 of['removeTableRow','removeTableColumn']){const _0xc05a0b=_0x48e989['substr'](0xb),_0x119888=_0xc05a0b['toLowerCase'](),_0x37b417=_0x119888['substr'](0x0,0x3)+'span',_0x3dfdee='table'+_0xc05a0b,_0x27c13c='min'+_0xc05a0b,_0x1e3688='max'+_0xc05a0b;_0x2f389e['enableCommand'](_0x48e989,()=>{_0x428b79['model']['change'](_0x32fd96=>{const _0x4cccce=_0x33023f['getSelectionAffectedTableCells'](_0x159604),_0x9189bd=_0x4cccce[0x0]['findAncestor']('table');let _0x5370ca;if('removeTableRow'==_0x48e989){const _0x16615a=_0x33023f['getRowIndexes'](_0x4cccce);_0x5370ca={'startRow':_0x16615a['first'],'endRow':_0x16615a['last'],'includeAllSlots':!0x0};}else{const _0x2d3c1a=_0x33023f['getColumnIndexes'](_0x4cccce);_0x5370ca={'startColumn':_0x2d3c1a['first'],'endColumn':_0x2d3c1a['last'],'includeAllSlots':!0x0};}const _0x401da2=_0x33023f['createTableWalker'](_0x9189bd,_0x5370ca),_0x5b37eb=Array['from'](_0x401da2)['map'](({cell:_0x989869})=>_0x989869),_0x48fffa=Ne(_0x5b37eb['filter'](_0x59892c=>_0x59892c['hasAttribute'](_0x37b417))),_0x26fe6c=Ne(_0x5b37eb['filter'](_0x422071=>!_0x422071['hasAttribute'](_0x37b417)))['map'](_0x51c040=>_0x32fd96['createRangeOn'](_0x51c040)),_0x2d65d8=_0x2f389e['markMultiRangeDeletion'](_0x26fe6c,_0x3dfdee);if(_0x2d65d8&&('tableRow'==_0x2d65d8['subType']||'tableColumn'==_0x2d65d8['subType'])){const _0x5898c0=this['_getSuggestionCoords'](_0x2d65d8);for(const _0x404637 of _0x48fffa){const _0x296d70=_0x32fd96['createRangeOn'](_0x404637),_0x5db8b4=_0x33023f['getCellLocation'](_0x404637),_0x20bdc0=_0x404637['getAttribute'](_0x37b417)-0x1,_0x47549b=_0x5898c0[_0x27c13c],_0x2300b0=_0x5898c0[_0x1e3688];_0x47549b<=_0x5db8b4[_0x119888]&&_0x5db8b4[_0x119888]+_0x20bdc0<=_0x2300b0&&_0x2d65d8['addRange'](_0x296d70);}}});});}function _0x57954f(_0x34c1e9){const _0x5f019f=Array['from'](_0x159604['getRanges']())['map'](_0x7c2625=>_0x41eab8['fromRange'](_0x7c2625));_0x428b79['model']['change'](_0x6c5201=>{const _0x5df67c=_0x6c5201['batch'];_0x34c1e9=_0x34c1e9['filter'](_0x35bc22=>'$graveyard'!=_0x35bc22['root']['rootName']),_0x6c5201['setSelection'](_0x34c1e9),_0x428b79['commands']['get']('removeTableRow')['refresh'](),_0x428b79['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x428b79['model']['enqueueChange'](()=>{_0x428b79['model']['enqueueChange'](_0x5df67c,_0x4761c2=>{const _0x210807=_0x5f019f['filter'](_0x2ce998=>'$graveyard'!=_0x2ce998['root']['rootName']);_0x210807['length']>0x0&&_0x4761c2['setSelection'](_0x210807);for(const _0x978bf3 of _0x5f019f)_0x978bf3['detach']();});});});}function _0x3f72b6(_0x3d0730){_0x428b79['model']['change'](_0x2a9e37=>{const _0x5e0f83=Array['from'](_0x159604['getRanges']())['map'](_0xff8074=>_0x41eab8['fromRange'](_0xff8074)),_0x3691de=[];for(const _0x344b4d of _0x3d0730)for(const _0x3fc540 of _0x344b4d['getItems']({'shallow':!0x0}))_0x3691de['push'](_0x3fc540);for(const _0x252096 of _0x3691de)'$graveyard'!=_0x252096['root']['rootName']&&(_0x2a9e37['setSelection'](_0x2a9e37['createPositionAt'](_0x252096,0x0)),_0x428b79['commands']['get']('removeTableColumn')['refresh'](),_0x428b79['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x59b75e=_0x5e0f83['filter'](_0x2f75cb=>'$graveyard'!=_0x2f75cb['root']['rootName']);_0x59b75e['length']>0x0&&_0x2a9e37['setSelection'](_0x59b75e);for(const _0x29f246 of _0x5e0f83)_0x29f246['detach']();});}function _0x227a51(_0x2b13b9,_0x2fb06c){return _0x2fb06c['every'](_0x332f36=>_0x2b13b9['some'](_0xe2510f=>_0xe2510f['end']['isEqual'](_0x332f36['start'])||_0x332f36['end']['isEqual'](_0xe2510f['start'])));}function _0x19372a(_0xb63a95,_0x37c179){return!_0xb63a95['some'](_0xefe58d=>_0x37c179['some'](_0x4be04f=>_0xefe58d['isIntersecting'](_0x4be04f)))&&_0xb63a95['some'](_0x442e22=>_0x37c179['some'](_0x2a24d6=>_0x442e22['end']['isTouching'](_0x2a24d6['start'])));}_0x428b79['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4faf66,_0x515c84,_0x4bbd39)=>{if(!_0x4bbd39['options']['showSuggestionHighlights'])return;const _0x368abf=_0x515c84['item'];if(!_0x368abf||!_0x368abf['is']('element','tableCell'))return;const _0x1b28dd=_0x4bbd39['mapper']['toViewElement'](_0x368abf);if(_0x1b28dd){const {id:_0x100ca4,authorId:_0x18ae63}=_0x2f389e['_splitMarkerName'](_0x515c84['markerName']);_0x3aa5a6(_0x1b28dd,_0x4bbd39['writer'],(_0x1b905a,_0x4ad86e,_0x4dde89)=>{_0x4dde89['addClass'](_0x5fee32(_0x4ad86e['classes']),_0x1b905a),_0x4dde89['setAttribute']('data-suggestion-id',_0x100ca4,_0x1b905a),_0x4dde89['setAttribute']('data-author-id',_0x18ae63,_0x1b905a);},(_0x141926,_0x25c0a1,_0x4a4c01)=>{_0x4a4c01['removeClass'](_0x5fee32(_0x25c0a1['classes']),_0x141926),_0x4a4c01['removeAttribute']('data-suggestion-id',_0x141926),_0x4a4c01['removeAttribute']('data-author-id',_0x141926);});}},{'priority':'highest'}),_0x2f389e['descriptionFactory']['registerDescriptionCallback'](_0x985cd=>{if('insertion'!=_0x985cd['type']&&'deletion'!=_0x985cd['type'])return;const _0x20afb4=_0x985cd['getContainedElement']();if(null!=_0x20afb4&&_0x20afb4['is']('element','table')){if('insertion'==_0x985cd['type']){const _0x13ef20=_0x985cd['getItems']()['filter'](_0x15acbf=>_0x15acbf['is']('$textProxy'))['map'](_0x394b54=>_0x394b54['data']);if(_0x13ef20['length'])return{'type':'insertion','content':o(_0x596384,'*Insert:*\x20%0',o(_0x596384,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x13ef20['join']('\x20')+'\x22'))};}if('deletion'==_0x985cd['type']){const _0x302362=_0x985cd['getItems']()['filter'](_0x2f0ccd=>_0x2f0ccd['is']('$textProxy'))['map'](_0x3539a2=>_0x3539a2['data']);if(_0x302362['length'])return{'type':'deletion','content':o(_0x596384,'*Remove:*\x20%0',o(_0x596384,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x302362['join']('\x20')+'\x22'))};}}}),_0x2f389e['descriptionFactory']['registerDescriptionCallback'](_0x21e8ec=>{if('tableRow'==_0x21e8ec['subType']){const _0x581205=_0x21e8ec['getItems']()['filter'](_0x392d67=>_0x392d67['is']('$textProxy'))['map'](_0x169058=>_0x169058['data']),_0x53b2c8=this['_getSuggestionCoords'](_0x21e8ec),_0x5d5b88=_0x53b2c8['maxRow']-_0x53b2c8['minRow']+0x1;if('insertion'==_0x21e8ec['type'])return _0x581205['length']?{'type':'insertion','content':o(_0x596384,'*Insert:*\x20%0',o(_0x596384,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5d5b88,'\x22'+_0x581205['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x596384,'*Insert:*\x20%0',o(_0x596384,'ELEMENT_TABLE_ROW',_0x5d5b88))};if('deletion'==_0x21e8ec['type'])return _0x581205['length']?{'type':'deletion','content':o(_0x596384,'*Remove:*\x20%0',o(_0x596384,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5d5b88,'\x22'+_0x581205['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x596384,'*Remove:*\x20%0',o(_0x596384,'ELEMENT_TABLE_ROW',_0x5d5b88))};}if('tableColumn'==_0x21e8ec['subType']){const _0x12c4ed=_0x21e8ec['getItems']()['filter'](_0x447c05=>_0x447c05['is']('$textProxy'))['map'](_0x2a5ee4=>_0x2a5ee4['data']),_0x43e876=this['_getSuggestionCoords'](_0x21e8ec),_0x496b1a=_0x43e876['maxColumn']-_0x43e876['minColumn']+0x1;if('insertion'==_0x21e8ec['type'])return _0x12c4ed['length']?{'type':'insertion','content':o(_0x596384,'*Insert:*\x20%0',o(_0x596384,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x496b1a,'\x22'+_0x12c4ed['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x596384,'*Insert:*\x20%0',o(_0x596384,'ELEMENT_TABLE_COLUMN',_0x496b1a))};if('deletion'==_0x21e8ec['type'])return _0x12c4ed['length']?{'type':'deletion','content':o(_0x596384,'*Remove:*\x20%0',o(_0x596384,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x496b1a,'\x22'+_0x12c4ed['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x596384,'*Remove:*\x20%0',o(_0x596384,'ELEMENT_TABLE_COLUMN',_0x496b1a))};}}),_0x2f389e['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x57954f),_0x2f389e['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x57954f),_0x2f389e['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x3f72b6),_0x2f389e['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x3f72b6),_0x2f389e['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x227a51),_0x2f389e['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x227a51),_0x2f389e['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x19372a),_0x2f389e['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x19372a);}['_acceptFormatSuggestionCallbackFactory'](){const _0x53136e=this['editor'],_0x981775=_0x53136e['model']['document']['selection'];return(_0x10b3bc,_0x592b5d)=>{_0x53136e['model']['change'](_0x216471=>{const {commandName:_0x48b8d7,commandParams:_0x5b2cf0}=_0x592b5d;let _0x579cfe=_0x10b3bc[0x0]['end']['nodeBefore'];_0x5b2cf0&&_0x5b2cf0[0x0]&&!0x1===_0x5b2cf0[0x0]['forceValue']&&(_0x579cfe=_0x10b3bc[0x0]['start']['nodeAfter']);const _0x1992e8=_0x216471['createRangeIn'](_0x579cfe);if('$graveyard'==_0x1992e8['root']['rootName'])return;const _0x215ef0=Array['from'](_0x981775['getRanges']())['map'](_0x1fe34e=>_0x41eab8['fromRange'](_0x1fe34e));_0x216471['setSelection'](_0x1992e8),_0x53136e['commands']['get'](_0x48b8d7)['refresh'](),_0x5b2cf0['push']({'forceDefaultExecution':!0x0}),_0x53136e['execute'](_0x48b8d7,..._0x5b2cf0);const _0x2f1872=_0x215ef0['filter'](_0x40409a=>'$graveyard'!=_0x40409a['root']['rootName']);_0x2f1872['length']>0x0&&_0x216471['setSelection'](_0x2f1872);for(const _0x18bb71 of _0x215ef0)_0x18bb71['detach']();});};}['_getCoordsForCells'](_0x583d41){const _0x298ea1=this['editor']['plugins']['get']('TableUtils');let _0x503056=Number['MAX_SAFE_INTEGER'],_0x50987a=Number['MIN_SAFE_INTEGER'],_0xa7b451=Number['MAX_SAFE_INTEGER'],_0x36c99c=Number['MIN_SAFE_INTEGER'];for(const _0x1bc07c of _0x583d41){if('$graveyard'==_0x1bc07c['root']['rootName'])continue;const {row:_0x4d39bc,column:_0x34a3cd}=_0x298ea1['getCellLocation'](_0x1bc07c),_0x3c61be=_0x1bc07c['hasAttribute']('rowspan')?_0x1bc07c['getAttribute']('rowspan')-0x1:0x0,_0x2dbaed=_0x1bc07c['hasAttribute']('colspan')?_0x1bc07c['getAttribute']('colspan')-0x1:0x0;_0x503056=_0x4d39bc<_0x503056?_0x4d39bc:_0x503056,_0x50987a=_0x4d39bc+_0x3c61be>_0x50987a?_0x4d39bc+_0x3c61be:_0x50987a,_0xa7b451=_0x34a3cd<_0xa7b451?_0x34a3cd:_0xa7b451,_0x36c99c=_0x34a3cd+_0x2dbaed>_0x36c99c?_0x34a3cd+_0x2dbaed:_0x36c99c;}return{'minRow':_0x503056,'maxRow':_0x50987a,'minColumn':_0xa7b451,'maxColumn':_0x36c99c};}['_setupColumnsRowsFixing'](){const _0x592c38=this['editor'],_0x280f83=_0x592c38['plugins']['get']('TrackChangesEditing'),_0x26d7b8=_0x592c38['plugins']['get']('TableUtils');_0x592c38['model']['document']['on']('change:data',()=>{const _0x555aec=Array['from'](_0x592c38['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1ba09e,data:_0x9ea9bc}of _0x555aec){const {group:_0x43be6e,id:_0x2b1146,subType:_0xdda375}=_0x280f83['_splitMarkerName'](_0x1ba09e);if('suggestion'!=_0x43be6e)continue;if(null!=_0x9ea9bc['oldRange'])continue;const _0x2cf536=_0x280f83['getSuggestion'](_0x2b1146);this['_tablePostFixingSubtypes']['includes'](_0xdda375)&&this['_tableSuggestions']['add'](_0x2cf536);}},{'priority':'low'});const _0x502248=(_0x5555a3,_0x51eded)=>{let _0x1e29ce=!0x1;const _0x56cff6=_0x51eded['createRangeOn'](_0x5555a3),_0x7b5142=_0x5555a3['findAncestor']('table'),_0x25e637=_0x26d7b8['getCellLocation'](_0x5555a3);for(const _0x95b010 of this['_tableSuggestions']){const _0x40a77d=_0x95b010['subType'],_0x1f5af0=_0x40a77d['startsWith']('tablePaste'),_0x21a4aa=_0x40a77d['substr'](_0x1f5af0?0xa:0x5),_0x4e5582=_0x21a4aa['toLowerCase'](),_0x5d1fa9=_0x4e5582['substr'](0x0,0x3)+'span',_0x1fc223='min'+_0x21a4aa,_0x389439='max'+_0x21a4aa;if(!_0x95b010['isInContent'])continue;if(_0x7b5142!=_0x95b010['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x95b010['isIntersectingWithRange'](_0x56cff6))continue;const _0x218800=_0x5555a3['hasAttribute'](_0x5d1fa9)?_0x5555a3['getAttribute'](_0x5d1fa9)-0x1:0x0,_0x37fa70=this['_getSuggestionCoords'](_0x95b010),_0xdcc81b=_0x37fa70[_0x1fc223],_0x3dc03c=_0x37fa70[_0x389439];_0xdcc81b<=_0x25e637[_0x4e5582]&&_0x25e637[_0x4e5582]+_0x218800<=_0x3dc03c&&(_0x95b010['addRange'](_0x56cff6),_0x1e29ce=!0x0);}return _0x1e29ce;};_0x592c38['model']['document']['registerPostFixer'](_0x786abd=>{let _0x3e5abd=!0x1;for(const _0x48c4ec of _0x592c38['model']['document']['differ']['getChanges']())if('insert'==_0x48c4ec['type']){if('tableRow'==_0x48c4ec['name']){for(const _0xef7e4e of _0x48c4ec['position']['nodeAfter']['getChildren']())_0x3e5abd=_0x3e5abd||_0x502248(_0xef7e4e,_0x786abd);}else'tableCell'==_0x48c4ec['name']&&(_0x3e5abd=_0x3e5abd||_0x502248(_0x48c4ec['position']['nodeAfter'],_0x786abd));}return _0x3e5abd;});}['_getSuggestionCoords'](_0x197d3b){return this['_getCoordsForCells'](_0x197d3b['getRanges']()['map'](_0x520593=>_0x520593['start']['nodeAfter']));}}function Ne(_0x37521b){return Array['from'](new Set(_0x37521b)['values']());}class _t extends _0x43125c{static get['requires'](){return[At];}['afterInit'](){const _0x21655d=this['editor'],_0x2cb5a4=_0x21655d['model']['document']['selection'],_0x32ed11=_0x21655d['locale'];if(!_0x21655d['plugins']['has']('TableEditing'))return;const _0x2553d7=_0x21655d['plugins']['get']('TrackChangesEditing'),_0xed8e29=_0x21655d['plugins']['get']('TableUtils'),_0xcb90fe=_0x21655d['plugins']['get'](At);_0xcb90fe['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x2553d7['enableCommand']('mergeTableCells',()=>{const _0x5ae55f=_0xed8e29['getSelectionAffectedTableCells'](_0x21655d['model']['document']['selection']);_0x21655d['model']['change'](()=>{_0x2553d7['markMultiRangeBlockFormat'](_0x5ae55f,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x21655d['commands']['get']('mergeTableCells')['on']('execute',(_0x1a99d7,_0x4c87fd)=>{_0x21655d['commands']['get']('trackChanges')['value']&&(_0x4c87fd['length']>0x0&&_0x4c87fd[_0x4c87fd['length']-0x1]&&_0x4c87fd[_0x4c87fd['length']-0x1]['forceDefaultExecution']||_0x2553d7['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x1a99d7['stop']());},{'priority':'highest'});for(const _0x2ed6a4 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x270c50=_0x21655d['commands']['get'](_0x2ed6a4);_0x2553d7['enableCommand'](_0x2ed6a4,()=>{const _0x2cb2f6=_0x21655d['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3cc0a4=>_0x3cc0a4['is']('element','tableCell')),_0xc0aabd=_0x270c50['value'];_0x21655d['model']['change'](()=>{_0x2553d7['markMultiRangeBlockFormat']([_0x2cb2f6,_0xc0aabd],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x716990 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x45aab7=_0x21655d['commands']['get'](_0x716990);_0x2553d7['enableCommand'](_0x716990,()=>{const _0x5447bb=_0xed8e29['getSelectionAffectedTableCells'](_0x21655d['model']['document']['selection'])[0x0],_0x443264=_0x5447bb['findAncestor']('table'),{column:_0x1202a9,row:_0x4d7d57}=_0xed8e29['getCellLocation'](_0x5447bb);let _0x20651e=[];if('horizontally'==_0x45aab7['direction']){const _0x5eb46f=_0xed8e29['createTableWalker'](_0x443264,{'startRow':_0x4d7d57,'endRow':_0x4d7d57,'includeAllSlots':!0x0});_0x20651e=Array['from'](_0x5eb46f)['map'](_0x128b03=>_0x128b03['cell']);}else{const _0x1e5b73=_0xed8e29['createTableWalker'](_0x443264,{'column':_0x1202a9,'includeAllSlots':!0x0});_0x20651e=Array['from'](_0x1e5b73)['map'](_0x210bb7=>_0x210bb7['cell']);}_0x21655d['model']['change'](_0x5ad801=>{_0x2553d7['markBlockFormat'](_0x5ad801['createRangeOn'](_0x5447bb),{'commandName':_0x716990,'commandParams':[]},_0x20651e,_0x716990);});});}_0x2553d7['descriptionFactory']['registerDescriptionCallback'](_0x14ac68=>{if('formatBlock'!=_0x14ac68['type']&&'formatInline'!=_0x14ac68['type'])return;const {data:_0x3d8024}=_0x14ac68;return _0x3d8024&&'mergeTableCells'==_0x3d8024['commandName']?{'type':'format','content':o(_0x32ed11,'*Merge\x20cells*')}:void 0x0;}),_0x2553d7['descriptionFactory']['registerDescriptionCallback'](_0x22d217=>{if('formatBlock'!=_0x22d217['type']&&'formatInline'!=_0x22d217['type'])return;const {data:_0x42a63a}=_0x22d217;return _0x42a63a?'splitTableCellVertically'==_0x42a63a['commandName']?{'type':'format','content':o(_0x32ed11,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x42a63a['commandName']?{'type':'format','content':o(_0x32ed11,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x44ca9c=_0xcb90fe['_acceptFormatSuggestionCallbackFactory']();for(const _0x2ecee4 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x2553d7['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2ecee4,'accept',_0x44ca9c);for(const _0x37166e of['splitTableCellVertically','splitTableCellHorizontally'])_0x2553d7['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x37166e,'accept',_0x44ca9c);_0x2553d7['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x15254a=>{_0x21655d['model']['change'](_0x541c92=>{const _0x11d096=Array['from'](_0x2cb5a4['getRanges']())['map'](_0x55b74a=>_0x41eab8['fromRange'](_0x55b74a));_0x541c92['setSelection'](_0x15254a),_0x21655d['commands']['get']('mergeTableCells')['refresh'](),_0x21655d['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x42f6a2=_0x11d096['filter'](_0x40a40e=>'$graveyard'!=_0x40a40e['root']['rootName']);_0x42f6a2['length']>0x0&&_0x541c92['setSelection'](_0x42f6a2);for(const _0x1c2b04 of _0x11d096)_0x1c2b04['detach']();});});for(const _0x4d6030 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x3cbd0c=_0x21655d['commands']['get'](_0x4d6030);_0x3cbd0c['on']('set:isEnabled',(_0x5220d3,_0x267859,_0x47ddfe)=>{if(_0x47ddfe){const _0x2b9336=_0x21655d['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x8e992d=>_0x8e992d['is']('element','tableCell'));this['_areMergableCells'](_0x3cbd0c['value'],_0x2b9336)||(_0x5220d3['return']=!0x1,_0x5220d3['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x5f4706=this['editor']['commands']['get']('mergeTableCells'),_0x2cb625=this['editor']['plugins']['get']('TableUtils');if(!_0x5f4706['isEnabled'])return!0x1;const _0x6e23a4=_0x2cb625['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x14a79a of _0x6e23a4)for(const _0x2ae79d of _0x6e23a4)if(_0x14a79a!=_0x2ae79d&&!this['_areMergableCells'](_0x14a79a,_0x2ae79d))return!0x1;return!0x0;}['_areMergableCells'](_0x42ee59,_0x471b72){const _0x5b2652=this['editor']['plugins']['get']('TrackChangesEditing'),_0x201767=this['editor']['model']['createRangeOn'](_0x42ee59),_0xbd0b8b=this['editor']['model']['createRangeOn'](_0x471b72),_0xd52361=new Set(),_0x5e5f24=new Set();for(const _0x23af5f of _0x5b2652['getSuggestions']())if(('insertion'==_0x23af5f['type']||'deletion'==_0x23af5f['type']||'mergeTableCells'==_0x23af5f['subType'])&&_0x23af5f['isInContent']){for(const _0x476511 of _0x23af5f['getRanges']())_0x476511['containsRange'](_0x201767,!0x0)&&_0xd52361['add'](_0x23af5f['type']+':'+_0x23af5f['author']['id']),_0x476511['containsRange'](_0xbd0b8b,!0x0)&&_0x5e5f24['add'](_0x23af5f['type']+':'+_0x23af5f['author']['id']);}if(_0xd52361['size']!=_0x5e5f24['size'])return!0x1;for(const _0x8fdf18 of _0xd52361)if(!_0x5e5f24['has'](_0x8fdf18))return!0x1;return!0x0;}}class Ct extends _0x43125c{static get['requires'](){return[At];}['afterInit'](){const _0x5b79e9=this['editor'];if(!_0x5b79e9['plugins']['has']('TableEditing'))return;const _0x1aa3f2=_0x5b79e9['locale'],_0x3dfa32=_0x5b79e9['plugins']['get']('TrackChangesEditing');_0x3dfa32['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x3dfa32['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x3dfa32['registerBlockAttribute']('headingRows'),_0x3dfa32['registerBlockAttribute']('headingColumns'),_0x3dfa32['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x1aa3f2,'FORMAT_HEADER_ROW')),_0x3dfa32['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x1aa3f2,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x21a6bb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x24f947=this['editor']['plugins']['get']('TableUtils'),_0x3421c0=this['editor']['plugins']['get'](At)['_acceptFormatSuggestionCallbackFactory']();function _0x5e912b({showActiveMarker:_0x5e3c21=!0x0,setDataAttribute:_0x26d857=!0x0}={}){return(_0x519d54,_0x361376,_0x196f23)=>{const {type:_0x573773,id:_0x404e2e}=_0x21a6bb['_splitMarkerName'](_0x361376['markerName']),_0x6756eb=_0x21a6bb['getSuggestion'](_0x404e2e),_0x1ab87f=_0x6756eb['data'];if('formatBlock'!=_0x6756eb['type']||!_0x1ab87f||'setTableColumnHeader'!=_0x1ab87f['commandName'])return;if(_0x361376['item'])return void _0x519d54['stop']();if(!_0x196f23['consumable']['consume'](_0x361376['markerRange'],_0x519d54['name']))return;const _0x51bed3=_0x361376['markerRange']['start']['nodeAfter'],_0x570f89=_0x361376['markerRange']['end']['nodeBefore'],_0x36bde5=_0x51bed3['parent']['parent'],{column:_0x5d89d2}=_0x24f947['getCellLocation'](_0x51bed3),{column:_0x712903}=_0x24f947['getCellLocation'](_0x570f89);for(let _0x2dcc9b=_0x5d89d2;_0x2dcc9b<=_0x712903;_0x2dcc9b++){const _0x41aced=_0x24f947['createTableWalker'](_0x36bde5,{'column':_0x2dcc9b,'includeAllSlots':!0x1});for(const _0xe79d66 of _0x41aced){const _0x32337f=_0xe79d66['cell'],_0x3fde7e=_0x196f23['mapper']['toViewElement'](_0x32337f);_0x196f23['writer']['addClass']('ck-suggestion-marker-'+_0x573773,_0x3fde7e),_0x26d857&&_0x196f23['writer']['setAttribute']('data-suggestion',_0x404e2e,_0x3fde7e),_0x196f23['mapper']['bindElementToMarker'](_0x3fde7e,_0x361376['markerName']),_0x5e3c21&&(_0x21a6bb['activeMarkers']['includes'](_0x361376['markerName'])?_0x196f23['writer']['addClass']('ck-suggestion-marker--active',_0x3fde7e):_0x196f23['writer']['removeClass']('ck-suggestion-marker--active',_0x3fde7e));}}};}_0x21a6bb['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x3421c0),_0x21a6bb['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x3421c0),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x5e912b(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3ba98a,_0x320fda,_0x330724)=>{_0x330724['options']['showSuggestionHighlights']&&_0x5e912b({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x3ba98a,_0x320fda,_0x330724);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x4a4ea2,_0x248c87,_0x2b4153)=>{const {type:_0x30f0d6,id:_0x3698f8}=_0x21a6bb['_splitMarkerName'](_0x248c87['markerName']),_0x390866=_0x21a6bb['getSuggestion'](_0x3698f8),_0x52ce9e=_0x390866['data'];if('formatBlock'!=_0x390866['type']||!_0x52ce9e||'setTableColumnHeader'!=_0x52ce9e['commandName'])return;const _0xf08f17=_0x2b4153['mapper']['markerNameToElements'](_0x248c87['markerName']);if(_0xf08f17){for(const _0x235f3e of _0xf08f17)_0x2b4153['writer']['removeClass']('ck-suggestion-marker-'+_0x30f0d6,_0x235f3e),_0x2b4153['writer']['removeClass']('ck-suggestion-marker--active',_0x235f3e),_0x2b4153['writer']['removeAttribute']('data-suggestion',_0x235f3e),_0x2b4153['mapper']['unbindElementFromMarkerName'](_0x235f3e,_0x248c87['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x266fdc=this['editor'],_0x49ba34=_0x266fdc['locale'];function _0x4b1cd4(_0x5ba19d){return{'type':'format','content':o(_0x49ba34,'*Format:*\x20%0',_0x5ba19d)};}_0x266fdc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x37897b=>{if('formatBlock'!=_0x37897b['type'])return;const {data:_0x3d7a51}=_0x37897b;if(_0x3d7a51){if('setTableRowHeader'==_0x3d7a51['commandName']){const _0x5e3882=_0x3d7a51['commandParams'][0x0]['forceValue'];return _0x4b1cd4(o(_0x49ba34,_0x5e3882?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x3d7a51['commandName']){const _0x347521=_0x3d7a51['commandParams'][0x0]['forceValue'];return _0x4b1cd4(o(_0x49ba34,_0x347521?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class vt extends _0x43125c{['afterInit'](){const _0x3cb75b=this['editor'],_0x576fcf=_0x3cb75b['locale'],_0x1055f0=_0x3cb75b['plugins']['get']('TrackChangesEditing');function _0xfbfe04(_0x1b08a9){return{'type':'format','content':''+o(_0x576fcf,'*Set\x20table\x20type:*\x20%0',_0x1b08a9)};}_0x3cb75b['plugins']['has']('TableLayout')&&(_0x1055f0['enableCommand']('insertTableLayout'),_0x1055f0['enableDefaultAttributesIntegration']('tableType'),_0x1055f0['registerBlockAttribute']('tableType'),_0x1055f0['descriptionFactory']['registerElementLabel'](_0x7a6048=>_0x7a6048['is']('element','table')&&'layout'===_0x7a6048['getAttribute']('tableType'),_0x10f07c=>o(_0x576fcf,'ELEMENT_LAYOUT_TABLE',_0x10f07c)),_0x1055f0['descriptionFactory']['registerDescriptionCallback'](_0x57bde7=>{const {data:_0x5bd51b}=_0x57bde7;if(_0x5bd51b&&'tableType'==_0x5bd51b['key'])switch(_0x5bd51b['newValue']){case'layout':return _0xfbfe04(o(_0x576fcf,'ELEMENT_LAYOUT_TABLE'));case'content':return _0xfbfe04(o(_0x576fcf,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=/* #__PURE__ -- @preserve */
25
+ Object['fromEntries'](Be['map'](_0x3588ac=>[_0x3588ac,null]));class Nt extends _0x43125c{static get['requires'](){return[At];}['afterInit'](){const _0x2726db=this['editor'];if(!_0x2726db['plugins']['has']('TableClipboard'))return;const _0x45c687=_0x2726db['plugins']['get']('TrackChangesEditing'),_0x1db5d5=_0x2726db['plugins']['get']('TableUtils'),_0x40b666=_0x2726db['plugins']['get'](At),_0xee52ae=_0x2726db['plugins']['get']('TableClipboard'),_0x584679=_0x2726db['plugins']['get']('TableSelection'),_0x5d912c=_0x2726db['plugins']['get'](_0x4b76e5);_0x40b666['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x2726db['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x2726db['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x31f69e=null,_0x203d35=!0x1;_0x5d912c['on']('contentInsertion',(_0x20e43d,_0x509817)=>{_0x203d35='paste'===_0x509817['method'];}),_0x2726db['model']['on']('insertContent',(_0x2f1efb,_0x253b7a)=>{if(!_0x203d35&&null===_0x584679['getSelectedTableCells']())return;const [_0x124267,_0xc71719]=_0x253b7a,_0x3c2fd9=_0x253b7a[_0x253b7a['length']-0x1];_0x3c2fd9&&_0x3c2fd9['forceDefaultExecution']||_0x45c687['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x4c3cd5,_0x3d7843,_0x18a465,_0x66b6f,_0x507390){if(_0x3d7843&&!_0x3d7843['is']('documentSelection'))return!0x1;const _0x9f8811=_0x507390['getTableIfOnlyTableInContent'](_0x4c3cd5,_0x18a465);if(!_0x9f8811||!Ue(_0x9f8811,void 0x0,_0x66b6f))return!0x1;const _0x579317=_0x66b6f['getSelectionAffectedTableCells'](_0x18a465['document']['selection']);if(!_0x579317['length'])return!0x1;const _0x3fdbe7=_0x579317[0x0]['findAncestor']('table'),_0x152e60=_0x66b6f['getRowIndexes'](_0x579317),_0x5b5733=_0x66b6f['getColumnIndexes'](_0x579317),_0x24f891={'startRow':_0x152e60['first'],'endRow':_0x152e60['last'],'startColumn':_0x5b5733['first'],'endColumn':_0x5b5733['last']};return 0x1==_0x579317['length']&&(_0x24f891['endRow']+=_0x66b6f['getRows'](_0x9f8811)-0x1,_0x24f891['endColumn']+=_0x66b6f['getColumns'](_0x9f8811)-0x1),Ue(_0x3fdbe7,_0x24f891,_0x66b6f);}(_0x124267,_0xc71719,_0x2726db['model'],_0x1db5d5,_0xee52ae)&&(_0x2f1efb['stop'](),_0x31f69e={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2726db['model']['change'](()=>{_0x2726db['model']['insertContent'](_0x253b7a[0x0],_0x253b7a[0x1],_0x253b7a[0x2],{'forceDefaultExecution':!0x0});const _0x13a620=_0x339e56(),{rowInsertionRanges:_0x23c2d2,columnInsertionRanges:_0xf6262c,insertionRanges:_0x3d696a,deletionRanges:_0x4682db,cells:_0x38dce3}=_0x31f69e;_0x23c2d2['length']&&_0x45c687['markMultiRangeInsertion'](_0x23c2d2,'tablePasteRow',{'tablePasteChainId':_0x13a620}),_0xf6262c['length']&&_0x45c687['markMultiRangeInsertion'](_0xf6262c,'tablePasteColumn',{'tablePasteChainId':_0x13a620}),_0x3d696a['length']&&(_0x45c687['markMultiRangeInsertion'](_0x3d696a,'tablePaste',{'tablePasteChainId':_0x13a620,'skipNestingCheck':!0x0}),_0x3d696a['forEach'](_0x13d2fa=>_0x13d2fa['detach']?.())),_0x4682db['length']&&(_0x45c687['markMultiRangeDeletion'](_0x4682db,'tablePaste',{'tablePasteChainId':_0x13a620,'skipNestingCheck':!0x0}),_0x4682db['forEach'](_0x235f61=>_0x235f61['detach']?.()));const _0x1aa307=_0x45c687['markMultiRangeBlockFormat'](_0x38dce3['map'](({element:_0xb31d4})=>_0xb31d4),{'formatGroupId':_0x339e56()},[],'tablePasteCell',{'tablePasteChainId':_0x13a620});if(_0x1aa307){const _0x21dfaa=_0x1aa307['getMarkers'](),_0x1faf2b=[];for(const {element:_0x254188,attributes:_0x489474}of _0x38dce3){if(!_0x489474)continue;const _0x12da69=_0x2726db['model']['createRangeOn'](_0x254188),_0x4b709a=_0x21dfaa['find'](_0x4c5b64=>_0x4c5b64['getRange']()['isEqual'](_0x12da69));_0x4b709a&&_0x1faf2b['push']([_0x4b709a['name'],_0x489474]);}_0x1faf2b['length']&&_0x1aa307['setAttribute']('markerAttributes',Object['fromEntries'](_0x1faf2b));}_0x31f69e=null;}));},{'priority':_0x3b7ee3['high']+0xa}),_0x5d912c['on']('contentInsertion',()=>{_0x203d35=!0x1;},{'priority':'lowest'}),_0x2726db['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x1539a9,_0x1d7d56)=>{const [_0x5809bb,_0x58208d,,_0xdc03a0]=_0x1d7d56;if(!_0x31f69e)return;_0x1539a9['stop']();const _0x320e43=_0x5809bb['cell'],_0x8636c3=_0x58208d,_0x4b3eb8=Oe(_0x320e43),_0x3cceab=Oe(_0x8636c3);_0x1539a9['return']=_0x320e43;let _0x3733ad=null,_0x10b8dd=null;if(_0x3cceab||_0x4b3eb8){if(_0x4b3eb8&&!_0x3cceab){_0xdc03a0['remove'](_0x320e43['getChild'](0x0));for(const _0xea0bb of Array['from'](_0x8636c3['getChildren']()))_0xdc03a0['insert'](_0xea0bb,_0x320e43,'end');const _0x3afc1b=_0x31f69e['rowInsertionIndexes']['includes'](_0x5809bb['row']),_0xa8c6b=_0x31f69e['columnInsertionIndexes']['includes'](_0x5809bb['column']);_0x3afc1b||_0xa8c6b||(_0x3733ad=_0x41eab8['fromRange'](_0xdc03a0['createRangeIn'](_0x320e43)));}else _0x3cceab&&!_0x4b3eb8&&(_0x10b8dd=_0xdc03a0['createRangeIn'](_0x320e43));}else{const _0x5d6970=_0xdc03a0['createElement']('tableCellSuggestion'),_0x242713=_0xdc03a0['createElement']('tableCellSuggestion');_0xdc03a0['wrap'](_0xdc03a0['createRangeIn'](_0x320e43),_0x242713),_0xdc03a0['insert'](_0x5d6970,_0x320e43,0x0);for(const _0xcd27d1 of Array['from'](_0x8636c3['getChildren']()))_0xdc03a0['insert'](_0xcd27d1,_0x5d6970,'end');_0x3733ad=_0x41eab8['fromRange'](_0xdc03a0['createRangeOn'](_0x5d6970)),_0x10b8dd=_0x41eab8['fromRange'](_0xdc03a0['createRangeOn'](_0x242713));}const _0x2ed665=Array['from'](_0x8636c3['getAttributes']())['filter'](([_0x3cbf18])=>Be['includes'](_0x3cbf18));_0x31f69e['cells']['push']({'element':_0x320e43,'attributes':_0x2ed665['length']?Object['fromEntries'](_0x2ed665):null}),_0x3733ad&&_0x31f69e['insertionRanges']['push'](_0x3733ad),_0x10b8dd&&_0x31f69e['deletionRanges']['push'](_0x10b8dd);},{'priority':'high'}),_0x1db5d5['on']('insertColumns',(_0x328b46,_0x2054b5)=>{const [_0x3ca2dc,_0x36b0da={}]=_0x2054b5;if(!_0x31f69e)return;const _0x46e94d=_0x36b0da['at']||0x0,_0x8e5666=_0x36b0da['columns']||0x1;_0x31f69e['columnInsertionIndexes']=new Array(_0x8e5666)['fill'](_0x46e94d)['map']((_0x548298,_0x249e98)=>_0x548298+_0x249e98);for(const {cell:_0x2d41df}of _0x1db5d5['createTableWalker'](_0x3ca2dc,{'startColumn':_0x46e94d,'endColumn':_0x46e94d+_0x8e5666-0x1}))_0x31f69e['columnInsertionRanges']['push'](_0x2726db['model']['createRangeOn'](_0x2d41df));},{'priority':'low'}),_0x1db5d5['on']('insertRows',(_0x10e979,_0x34cb3f)=>{const [_0x222763,_0x3507dc={}]=_0x34cb3f;if(!_0x31f69e)return;const _0x28415a=_0x3507dc['at']||0x0,_0x1ab5e0=_0x3507dc['rows']||0x1;_0x31f69e['rowInsertionIndexes']=new Array(_0x1ab5e0)['fill'](_0x28415a)['map']((_0x5319ce,_0x16be61)=>_0x5319ce+_0x16be61);for(const {cell:_0x440857}of _0x1db5d5['createTableWalker'](_0x222763,{'startRow':_0x28415a,'endRow':_0x28415a+_0x1ab5e0-0x1}))_0x31f69e['rowInsertionRanges']['push'](_0x2726db['model']['createRangeOn'](_0x440857));},{'priority':'low'}),_0x45c687['descriptionFactory']['registerDescriptionCallback'](_0x150a37=>{if(_0x150a37['subType']&&_0x150a37['subType']['startsWith']('tablePaste'))return _0x150a37['previous']?{}:{'type':'insertion','content':o(_0x2726db['locale'],'*Replace\x20table\x20cells*')};});const _0x291739=()=>!0x1;for(const _0x3b6815 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x45c687['_suggestionFactory']['registerCustomCallback']('insertion',_0x3b6815,'join',_0x291739),_0x45c687['_suggestionFactory']['registerCustomCallback']('deletion',_0x3b6815,'join',_0x291739),_0x45c687['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3b6815,'join',_0x291739);_0x45c687['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x291739),_0x45c687['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0xc18b4c,_0x246092,_0x50b472)=>{const _0x188e99=_0xc18b4c['map'](_0x376989=>_0x376989['getContainedElement']())['filter'](_0x5ecdd8=>_0x5ecdd8),_0x2d8780=new Map(_0x188e99['map'](_0x36c148=>[_0x36c148,null]));if(_0x31f69e){for(const {element:_0x700027,attributes:_0x42c485}of _0x31f69e['cells'])_0x42c485&&_0x2d8780['set'](_0x700027,_0x42c485);}else{if(_0x50b472&&_0x50b472['markerAttributes'])for(const [_0x11cfce,_0x2462ac]of Object['entries'](_0x50b472['markerAttributes'])){const _0x55bf77=_0x2726db['model']['markers']['get'](_0x11cfce),_0x4fe68d=_0x55bf77?_0x55bf77['getRange']()['getContainedElement']():null;_0x4fe68d&&_0x2d8780['set'](_0x4fe68d,_0x2462ac);}}_0x2726db['model']['change'](_0x1a6c59=>{for(const [_0x4aa7b4,_0x571b34]of _0x2d8780)_0x1a6c59['setAttributes']({...xe,..._0x571b34},_0x4aa7b4);});});const _0x4e8624=(_0x5b416c,_0x32a403)=>{_0x45c687['_suggestionFactory']['registerCustomCallback'](_0x5b416c,'tablePaste',_0x32a403,(_0x43a2c8,_0x3c7910,_0x328d09)=>{_0x2726db['model']['change'](_0x38a08c=>{const _0x3ab336=[];for(const _0x33734e of _0x43a2c8){const _0x5033cf=_0x33734e['start']['nodeAfter'];_0x5033cf['is']('element','tableCellSuggestion')&&_0x3ab336['push'](_0x5033cf);}_0x45c687['_suggestionFactory']['getSuggestionCallback'](_0x5b416c,null,_0x32a403)(_0x43a2c8,_0x3c7910,_0x328d09);for(const _0x1a256b of _0x3ab336)'$graveyard'!=_0x1a256b['root']['rootName']&&_0x38a08c['unwrap'](_0x1a256b);});});};_0x4e8624('insertion','accept'),_0x4e8624('insertion','discard'),_0x4e8624('deletion','accept'),_0x4e8624('deletion','discard'),_0x45c687['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x5234f0=>{const _0x104e42=_0x5234f0['map'](_0x8407c7=>_0x8407c7['getContainedElement']()),_0x4ed064=_0x104e42[0x0]['findAncestor']('table'),{minRow:_0x30d356,maxRow:_0x1ea420}=_0x40b666['_getCoordsForCells'](_0x104e42);_0x1db5d5['removeRows'](_0x4ed064,{'at':_0x30d356,'rows':_0x1ea420-_0x30d356+0x1});}),_0x45c687['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x3baca6=>{const _0x5825d3=_0x3baca6['map'](_0x4474b0=>_0x4474b0['getContainedElement']()),_0x1ba148=_0x5825d3[0x0]['findAncestor']('table'),{minColumn:_0x57401a,maxColumn:_0x56f76d}=_0x40b666['_getCoordsForCells'](_0x5825d3);_0x1db5d5['removeColumns'](_0x1ba148,{'at':_0x57401a,'columns':_0x56f76d-_0x57401a+0x1});});const _0x2581f4=(_0x23b789,_0x1ce6b0)=>{if(!_0x1ce6b0['subType']||!_0x1ce6b0['subType']['startsWith']('tablePaste'))return;const _0x2eec37=_0x1ce6b0['attributes']['tablePasteChainId'],_0x509713=_0x45c687['getSuggestions']()['filter'](_0x24ff5a=>_0x24ff5a['isInContent']&&_0x24ff5a['attributes']&&_0x24ff5a['attributes']['tablePasteChainId']==_0x2eec37);_0x509713['length']&&_0x1ce6b0['getAllAdjacentSuggestions']()['length']!=_0x509713['length']&&_0x509713['reduce']((_0x5f1225,_0x57d2e8)=>(_0x5f1225['next']=_0x57d2e8,_0x57d2e8['previous']=_0x5f1225,_0x57d2e8));};function _0x5e0e02(_0x12dfc8,_0xd15e8c=!0x0){const {id:_0x330968,authorId:_0x295656}=_0x45c687['_splitMarkerName'](_0x12dfc8['markerName']),_0x2313b1=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x31afec=_0x45c687['activeMarkers']['includes'](_0x12dfc8['markerName']);return _0x31afec&&_0x2313b1['push']('ck-suggestion-marker--active'),{'classes':_0x2313b1,'attributes':{'data-suggestion':_0x330968,'data-author-id':_0x295656},'priority':_0x31afec&&_0xd15e8c?0xbc2:0xbb8};}_0x45c687['on']('suggestionLoaded',_0x2581f4,{'priority':'high'}),_0x45c687['on']('suggestionUnloaded',_0x2581f4,{'priority':'high'}),_0x2726db['model']['document']['registerPostFixer'](()=>{let _0xf87619=!0x1;const _0x154ec2=Array['from'](_0x2726db['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xdc0c72,data:_0x4169d4}of _0x154ec2){const {group:_0x2282d1,type:_0x291614,id:_0x20ac63}=_0x45c687['_splitMarkerName'](_0xdc0c72);if('suggestion'!=_0x2282d1||'deletion'!=_0x291614||_0x4169d4['oldRange'])continue;if(!_0x45c687['hasSuggestion'](_0x20ac63))continue;const _0x5ebe05=_0x45c687['getSuggestion'](_0x20ac63)['getRanges'](),_0x7b6cb8=_0x2726db['plugins']['get']('Users')['me'];for(const _0x263d47 of _0x45c687['getSuggestions']()){if(!_0x263d47['isInContent']||_0x263d47['author']!=_0x7b6cb8)continue;if('formatBlock'!=_0x263d47['type']||'tablePasteCell'!=_0x263d47['subType'])continue;if(_0x263d47['getRanges']()['every'](_0x57007b=>_0x5ebe05['some'](_0x14213c=>_0x14213c['containsRange'](_0x57007b,!0x0)))){for(const _0x7b6845 of _0x263d47['getAllAdjacentSuggestions']())_0x7b6845['isInContent']&&(_0x7b6845['discard'](),_0xf87619=!0x0);}}}return _0xf87619;}),_0x2726db['model']['document']['registerPostFixer'](_0x2300c9=>{const _0x3e2326=_0x2726db['commands']['get']('redo');if(!_0x3e2326||!_0x3e2326['_createdBatches']['has'](_0x2300c9['batch']))return!0x1;let _0x234a17=!0x1;const _0x33652b=_0x2726db['plugins']['get']('Users')['me'],_0x441e4f=_0x2726db['model']['document']['differ']['getChanges'](),_0x29a493=Array['from'](_0x2726db['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x411f2f,data:_0x1651b9})=>{const {group:_0x1e5849,subType:_0x1300d7,authorId:_0x4d6e6a}=_0x45c687['_splitMarkerName'](_0x411f2f);return'suggestion'==_0x1e5849&&'tablePaste'==_0x1300d7&&_0x4d6e6a==_0x33652b['id']&&!_0x1651b9['oldRange'];});for(const _0x588800 of _0x441e4f){if('insert'!=_0x588800['type']||'tableCellSuggestion'!=_0x588800['name']||0x1!=_0x588800['length'])continue;const _0x554bda=_0x2300c9['createRange'](_0x588800['position'],_0x588800['position']['getShiftedBy'](0x1));if(!_0x29a493['find'](({data:_0x189881})=>_0x189881['newRange']['isEqual'](_0x554bda))){for(const {name:_0x52f283,data:_0x519f35}of _0x29a493)if(_0x554bda['containsRange'](_0x519f35['newRange'])){_0x2300c9['updateMarker'](_0x52f283,{'range':_0x554bda}),_0x234a17=!0x0;break;}}}return _0x234a17;}),_0x2726db['model']['document']['registerPostFixer'](_0x1eb0e8=>{let _0xbcf865=!0x1;const _0x39fb63=_0x2726db['plugins']['get']('Users')['me'],_0x509a57=_0x45c687['getSuggestions']()['filter'](_0x491726=>_0x491726['isInContent']&&_0x491726['author']==_0x39fb63),_0x28373b=new Set(),_0x38c766=new Set();for(const _0xc8daca of _0x509a57)if('tablePaste'==_0xc8daca['subType'])for(const _0x59a8a6 of _0xc8daca['getMarkers']()){const _0x57a50b=_0x59a8a6['getRange']()['getContainedElement']();if(_0x57a50b){if(_0x57a50b['is']('element','tableCellSuggestion')&&Oe(_0x57a50b)){_0xc8daca['removeMarker'](_0x59a8a6['name']),_0x28373b['add'](_0x57a50b),_0xbcf865=!0x0;const _0x192a17=_0x57a50b['nextSibling'],_0x240f8b=_0x57a50b['previousSibling'],_0x495273=_0x192a17&&_0x192a17['is']('element','tableCellSuggestion'),_0x26132f=_0x240f8b&&_0x240f8b['is']('element','tableCellSuggestion');_0x495273&&!_0x28373b['has'](_0x192a17)&&_0x38c766['add'](_0x192a17),_0x26132f&&!_0x28373b['has'](_0x240f8b)&&_0x38c766['add'](_0x240f8b);}else _0x57a50b['is']('element','paragraph')&&_0x57a50b['isEmpty']&&(_0xc8daca['removeMarker'](_0x59a8a6['name']),_0xbcf865=!0x0);}}else{if('tablePasteCell'==_0xc8daca['subType']){if(!_0xc8daca['attributes']||!_0xc8daca['attributes']['tablePasteChainId'])continue;const _0x424434=_0xc8daca['attributes']['markerAttributes'];if(_0x424434&&Object['keys'](_0x424434)['length'])continue;const _0x1b7c76=_0xc8daca['attributes']['tablePasteChainId'];let _0x17e5b1=!0x0,_0x52305d=!0x0;for(const _0x3bab1e of _0x509a57)if(_0x3bab1e['subType']&&_0x3bab1e['subType']['startsWith']('tablePaste')){if(!_0x3bab1e['attributes']['tablePasteChainId']){_0x52305d=!0x1;break;}if(_0x3bab1e['id']!=_0xc8daca['id']&&_0x3bab1e['attributes']['tablePasteChainId']==_0x1b7c76){_0x17e5b1=!0x1;break;}}_0x52305d&&_0x17e5b1&&(_0xc8daca['removeMarkers'](),_0xbcf865=!0x0);}}for(const _0x33ec42 of _0x28373b)_0x1eb0e8['remove'](_0x33ec42);for(const _0x22a4e7 of _0x38c766)_0x1eb0e8['unwrap'](_0x22a4e7);return _0xbcf865;}),_0x2726db['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x36dcd2=>_0x5e0e02(_0x36dcd2),'converterPriority':'high'}),_0x2726db['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5d55f5,_0x2f84fe)=>_0x2f84fe['options']['showSuggestionHighlights']?_0x5e0e02(_0x5d55f5,!0x1):null,'converterPriority':'high'});const _0x3b5652=_0x2726db['editing']['view'];this['listenTo'](_0x3b5652['document'],'clipboardOutput',(_0x193742,_0x12b9a8)=>{const _0x227f11=[];for(const _0xfe9ba2 of _0x3b5652['createRangeIn'](_0x12b9a8['content'])['getItems']())_0xfe9ba2['is']('element','suggestion-td')&&_0x227f11['push'](_0xfe9ba2);_0x3b5652['change'](_0x5f1613=>{for(const _0x3604a5 of _0x227f11)_0x5f1613['move'](_0x5f1613['createRangeIn'](_0x3604a5),_0x5f1613['createPositionBefore'](_0x3604a5)),_0x5f1613['remove'](_0x3604a5);});});}}function Oe(_0x579bf5){if(_0x579bf5['isEmpty'])return!0x0;const _0x1204e1=_0x579bf5['getChild'](0x0);return _0x1204e1['is']('element','paragraph')&&_0x1204e1['isEmpty'];}function Ue(_0x633006,_0x42644d={},_0x3cf63c){for(const {isAnchor:_0x205c55,cellHeight:_0xf04d66,cellWidth:_0x2362f9}of _0x3cf63c['createTableWalker'](_0x633006,{'includeAllSlots':!0x0,..._0x42644d}))if(!_0x205c55||0x1!=_0xf04d66||0x1!=_0x2362f9)return!0x1;return!0x0;}class Dt extends _0x43125c{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x5895c6=this['editor']['plugins']['get']('TrackChangesEditing');_0x5895c6['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x5895c6['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x5895c6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5895c6['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x5895c6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x5895c6['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x496027,_0x2a4c32){const _0x55a9e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4c00dc=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x239d1e=_0x2a4c32['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x5b844c=_0x4c00dc['getColumnGroupElement'](_0x239d1e);let _0x38a761=_0x5b844c?_0x4c00dc['getTableColumnsWidths'](_0x5b844c):null,_0x3a7d96=_0x239d1e['getAttribute']('tableWidth')||null;const _0x50fe25=_0x2a4c32['tableWidth']||_0x3a7d96,_0x5ea558=_0x2a4c32['columnWidths']||_0x38a761,_0x768109=this['editor']['plugins']['get']('Users')['me'];for(const _0x18729d of _0x55a9e['getSuggestions']()){const _0x4bc691=_0x18729d['getContainedElement']();if('resizeTable'===_0x18729d['subType']&&_0x4bc691===_0x239d1e){_0x18729d['author']!==_0x768109&&_0x18729d['discard']();const _0x58c52e=_0x18729d['data']['commandParams'];_0x3a7d96=_0x58c52e[0x0]['tableWidth'],_0x38a761=_0x58c52e[0x0]['columnWidths'];break;}}_0x496027({'table':_0x239d1e,'tableWidth':_0x50fe25,'columnWidths':_0x5ea558}),_0x55a9e['markBlockFormat'](_0x239d1e,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3a7d96,'columnWidths':_0x38a761}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x580762){if('formatBlock'!=_0x580762['type']&&'formatInline'!=_0x580762['type'])return;const {data:_0x44c138}=_0x580762;if(_0x44c138&&'resizeTable'===_0x44c138['formatGroupId']){const _0x78c940='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x78c940)};}}}class $t extends _0x43125c{['afterInit'](){const _0x297dea=this['editor'];_0x297dea['plugins']['has']('Template')&&_0x297dea['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x43125c{['afterInit'](){const _0x33281e=this['editor'];if(!_0x33281e['commands']['get']('insertTableOfContents'))return;_0x33281e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x5cc306=_0x33281e['plugins']['get']('TrackChangesEditing'),_0x34214b=_0x33281e['locale'];_0x5cc306['descriptionFactory']['registerElementLabel']('tableOfContents',_0x23d533=>o(_0x34214b,'ELEMENT_TABLE_OF_CONTENTS',_0x23d533));}}class Bt extends _0x43125c{['afterInit'](){const _0x1931ab=this['editor'];if(!_0x1931ab['plugins']['has']('Title'))return;const _0x2ef9e1=_0x1931ab['plugins']['get']('TrackChangesEditing');_0x2ef9e1['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x1931ab['locale'],'ELEMENT_TITLE')),_0x1931ab['model']['document']['registerPostFixer'](_0x246677=>{let _0x35eddb=!0x1;const _0x4cc109=Array['from'](_0x1931ab['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x32e9f2,data:_0x5bce44}of _0x4cc109){const {group:_0x21b574}=_0x2ef9e1['_splitMarkerName'](_0x32e9f2);if('suggestion'!==_0x21b574||!_0x5bce44['newRange'])continue;const _0x24e837=_0x5bce44['newRange'],_0x24b2ca=_0x24e837['end']['nodeBefore'];if(!_0x24b2ca||!_0x24b2ca['is']('element','title-content'))continue;if(!_0x24e837['start']['isTouching'](_0x24e837['end']))continue;const _0x4b21a9=_0x1931ab['model']['schema']['getNearestSelectionRange'](_0x24e837['end'],'forward');if(_0x4b21a9&&_0x4b21a9['isCollapsed']){const _0x576d32=_0x246677['createRange'](_0x24e837['start'],_0x4b21a9['start']);_0x576d32['isEqual'](_0x24e837)||(_0x246677['updateMarker'](_0x32e9f2,{'range':_0x576d32}),_0x35eddb=!0x0);}_0x35eddb||(_0x246677['removeMarker'](_0x32e9f2),_0x35eddb=!0x0);}return _0x35eddb;});}}class Tt extends _0x43125c{['afterInit'](){const _0x3c080b=this['editor'],_0x5e20a1=_0x3c080b['plugins']['get']('TrackChangesEditing');_0x3c080b['plugins']['has']('Uploadcare')&&(_0x5e20a1['enableCommand']('uploadcare'),_0x3c080b['plugins']['has']('UploadcareImageEdit')&&(_0x5e20a1['enableCommand']('uploadcareImageEdit'),_0x5e20a1['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x5e20a1['registerBlockAttribute']('uploadcareImageId'),_0x5e20a1['descriptionFactory']['registerDescriptionCallback'](_0x52913e=>{if('attribute'!=_0x52913e['type'])return;const {data:_0x2cbd30}=_0x52913e;return _0x2cbd30&&'uploadcareImageId'==_0x2cbd30['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x43125c{['afterInit'](){const _0x28573e=this['editor'],_0xd637ab=_0x28573e['plugins']['get']('TrackChangesEditing');_0x28573e['plugins']['has']('UndoEditing')&&(_0xd637ab['enableCommand']('undo'),_0xd637ab['enableCommand']('redo'));}}class Ot extends _0x43125c{static get['requires'](){return[At];}['afterInit'](){const _0x2ebdc6=this['editor'];if(!_0x2ebdc6['plugins']['has']('TableCaptionEditing'))return;_0x2ebdc6['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0x43125c{['tableProperties'];['tableCellProperties'];constructor(_0x5ccd92){super(_0x5ccd92),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x52070a=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x5aa44a of this['tableProperties'])_0x52070a['enableCommand'](_0x5aa44a,(_0x2e20c7,_0x48e92c)=>{const _0x3c80c6=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x5aa44a,[_0x3c80c6],this['tableProperties'],'tableProperties',_0x2e20c7,_0x48e92c);});_0x52070a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x52070a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x52070a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x3daabb,_0x1ef395)=>this['handleDiscardAction'](this['tableProperties'],_0x3daabb,_0x1ef395)),_0x52070a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x2ffa21 of this['tableCellProperties'])_0x52070a['enableCommand'](_0x2ffa21,(_0x189628,_0x22da54)=>{const _0x39dd65=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x2ffa21,_0x39dd65,this['tableCellProperties'],'tableCellProperties',_0x189628,_0x22da54);});_0x52070a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x52070a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x52070a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x5bfbec,_0x2a48a8)=>this['handleDiscardAction'](this['tableCellProperties'],_0x5bfbec,_0x2a48a8)),_0x52070a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x52070a['descriptionFactory']['registerDescriptionCallback'](_0x27bd4b=>this['handleSuggestionDescription'](_0x27bd4b)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x16c78c,_0xcd88d5,_0x515ac2,_0x532a0d,_0x28cd83,_0x386405){const _0x599070=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x386405['batch'],()=>{for(const _0x1a0dbd of _0xcd88d5){if(this['_getSuggestion'](_0x1a0dbd,_0x532a0d))_0x28cd83(_0x386405);else{const _0x4e6259={};for(const _0x4b301e of _0x515ac2){const _0x64c2dc=_0x1a0dbd['getAttribute'](_0x4b301e);void 0x0!==_0x64c2dc&&(_0x4e6259[_0x4b301e]=_0x64c2dc);}_0x28cd83(_0x386405),_0x599070['markBlockFormat'](_0x1a0dbd,{'commandParams':[_0x4e6259]},[],_0x532a0d);}}});}['handleDiscardAction'](_0x2b78f6,_0x5a610f,_0xa60582){const _0x356f4d=_0x5a610f[0x0]['start']['nodeAfter'],_0x3114f8=_0xa60582['commandParams'][0x0];this['editor']['model']['change'](_0x57a947=>{for(const _0x4eac82 of _0x2b78f6)void 0x0!==_0x3114f8[_0x4eac82]?_0x57a947['setAttribute'](_0x4eac82,_0x3114f8[_0x4eac82],_0x356f4d):_0x57a947['removeAttribute'](_0x4eac82,_0x356f4d);});}['handleSuggestionDescription'](_0x220ae5){if(_0x220ae5['data'])switch(_0x220ae5['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'](_0xa35fa6,_0x35b0c4){const _0x2dc8f4=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x577b89 of _0x2dc8f4['getSuggestions']({'skipNotAttached':!0x0})){const _0x9d64b9=_0x577b89['getContainedElement']();if(_0x577b89['subType']===_0x35b0c4&&_0x9d64b9===_0xa35fa6)return _0x577b89;}return null;}['_registerTablePropertiesAttributes'](){const _0x50be44=this['editor']['plugins']['get']('TrackChangesEditing'),_0x185538=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x14ae07 of _0x185538){const _0x1f7f0b=_0x14ae07['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x50be44['registerBlockAttribute'](_0x14ae07),_0x50be44['descriptionFactory']['registerAttributeLabel'](_0x14ae07,o(this['editor']['locale'],'FORMAT_'+_0x1f7f0b));}}}class Rt extends _0x43125c{['afterInit'](){const _0x45d237=this['editor'];if(!_0x45d237['plugins']['has']('LineHeight'))return;const _0x494374=_0x45d237['plugins']['get']('TrackChangesEditing'),_0x3f6568=_0x45d237['locale'];_0x494374['enableDefaultAttributesIntegration']('lineHeight'),_0x494374['registerBlockAttribute']('lineHeight'),_0x494374['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x3f6568,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x43125c{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x1d0ab4,_0x3dae24,O,E,R,U,V,G,F,L,J,K,z,W,Q,X,Y,Z,tt,it,nt,et,ot,st,rt,at,ct,ft,ht,mt,ut,H,Rt,q,gt,lt,dt,pt,kt,wt,bt,yt,jt,St,It,At,_t,Ct,vt,Ot,Nt,Dt,Mt,Et,$t,Bt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2fced7){super(_0x2fced7),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0xe82f8a,_0x2c24e6,_0x2074e1,_0xc45c8c)=>{this['_model']['change'](()=>{for(const _0x352484 of[..._0xc45c8c,..._0x2074e1])this['_model']['markers']['has'](_0x352484)&&_0x2fced7['editing']['reconvertMarker'](_0x352484);});}),this['descriptionFactory']=new x(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Vt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x2fced7['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x2fced7['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x2fced7['config']['get']('trackChanges.trackFormatChanges'),_0x2fced7['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x2fced7['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new N(_0x2fced7,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x4bc5da=this['editor'],_0x5207de=(_0x5363ba,_0x12654f)=>{if('attribute'!=_0x5363ba)return'ck-suggestion-marker-'+_0x5363ba;const _0xa4bbe0=_0x12654f['split']('|')[0x0];return this['_isBlockAttribute'](_0xa4bbe0)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x4bc5da['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x25eacd=>{const {id:_0x2fb2d4,authorId:_0x265987,type:_0x4349e8,subType:_0x470418}=this['_splitMarkerName'](_0x25eacd['markerName']),_0x27a225=['ck-suggestion-marker',_0x5207de(_0x4349e8,_0x470418)];let _0x1c79e4=0xbb8;return this['activeMarkers']['includes'](_0x25eacd['markerName'])&&(_0x27a225['push']('ck-suggestion-marker--active'),_0x1c79e4=0xbc2),'deletion'==_0x4349e8&&(_0x1c79e4+=0x5),{'classes':_0x27a225,'attributes':{'data-suggestion':_0x2fb2d4,'data-author-id':_0x265987},'priority':_0x1c79e4};}}),_0x4bc5da['conversion']['for']('dataDowncast')['add'](_0x1467cc=>{_0x1467cc['on']('addMarker:suggestion',(_0x581994,_0x9f8fa4,_0x1bfde0)=>{if(!_0x1bfde0['options']['showSuggestionHighlights'])return;const _0x28b820=_0x9f8fa4['item'];if(!_0x28b820)return;const _0x3a3dd9=_0x1bfde0['mapper']['toViewElement'](_0x28b820);_0x4bc5da['model']['schema']['isObject'](_0x28b820)&&_0x3a3dd9&&!_0x3a3dd9['getCustomProperty']('widget')&&_0x3a3dd9['is']('containerElement')&&_0x2120f5(_0x3a3dd9,_0x1bfde0['writer']);},{'priority':'high'});}),_0x4bc5da['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x4b7903,_0x1d69f2)=>{if(!_0x1d69f2['options']['showSuggestionHighlights'])return null;const {id:_0x286222,authorId:_0x354d46,type:_0x4d5307,subType:_0x887783}=this['_splitMarkerName'](_0x4b7903['markerName']);return{'classes':['ck-suggestion-marker',_0x5207de(_0x4d5307,_0x887783)],'priority':0xbb8,'attributes':{'data-suggestion':_0x286222,'data-author-id':_0x354d46}};}});const _0x285d29=({showActiveMarkers:_0x2d6fe4=!0x0,isAttributeSuggestion:_0x427ab4=!0x1}={})=>(_0x42a4ca,_0x97287a,_0x535f0d)=>{if(!_0x97287a['item'])return;const {id:_0x142e66,authorId:_0x3ae4fe}=this['_splitMarkerName'](_0x97287a['markerName']);if(_0x427ab4){const _0x355081=this['_suggestions']['get'](_0x142e66),_0x4e1091=this['_getAttributeKey'](_0x355081);if(!this['_isBlockAttribute'](_0x4e1091))return;}if(_0x97287a['item']['is']('selection'))return void _0x535f0d['consumable']['consume'](_0x97287a['item'],_0x42a4ca['name']);const _0x573a83=_0x535f0d['mapper']['toViewElement'](_0x97287a['item']);if(_0x97287a['item']['is']('element')&&_0x4bc5da['model']['schema']['isBlock'](_0x97287a['item'])&&!_0x573a83['getCustomProperty']('addHighlight')){_0x535f0d['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x573a83),_0x535f0d['writer']['setAttribute']('data-suggestion',_0x142e66,_0x573a83),_0x535f0d['writer']['setAttribute']('data-author-id',_0x3ae4fe,_0x573a83),_0x535f0d['mapper']['bindElementToMarker'](_0x573a83,_0x97287a['markerName']),_0x2d6fe4&&(this['activeMarkers']['includes'](_0x97287a['markerName'])?_0x535f0d['writer']['addClass']('ck-suggestion-marker--active',_0x573a83):_0x535f0d['writer']['removeClass']('ck-suggestion-marker--active',_0x573a83));for(const _0x1d6817 of _0x4bc5da['model']['createRangeIn'](_0x97287a['item'])['getItems']())_0x535f0d['consumable']['consume'](_0x1d6817,_0x42a4ca['name']);_0x535f0d['consumable']['consume'](_0x97287a['item'],_0x42a4ca['name']);}};_0x4bc5da['conversion']['for']('dataDowncast')['add'](_0x4d3cb9=>{_0x4d3cb9['on']('addMarker:suggestion:formatBlock',(_0x41d257,_0x5237be,_0x5918e8)=>{_0x5918e8['options']['showSuggestionHighlights']&&_0x285d29({'showActiveMarkers':!0x1})(_0x41d257,_0x5237be,_0x5918e8);},{'priority':'highest'});}),_0x4bc5da['conversion']['for']('dataDowncast')['add'](_0x4367cc=>{_0x4367cc['on']('addMarker:suggestion:attribute',(_0x12fbf5,_0x113835,_0x4af5f0)=>{_0x4af5f0['options']['showSuggestionHighlights']&&_0x285d29({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x12fbf5,_0x113835,_0x4af5f0);},{'priority':'highest'});}),_0x4bc5da['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x1630ce,_0x302dbb)=>{if(_0x302dbb['options']['showSuggestionHighlights']){const {id:_0x11f327,authorId:_0x21081a}=this['_splitMarkerName'](_0x1630ce);return _0x1630ce['includes'](':split')||_0x1630ce['includes'](':merge')?{'group':'suggestion','name':_0x1630ce['substr'](0xb),'attributes':{'data-suggestion':_0x11f327,'data-author-id':_0x21081a}}:null;}return{'group':'suggestion','name':_0x1630ce['substr'](0xb)};}}),_0x4bc5da['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x2857cc,{writer:_0x5dc14b})=>{let _0x683115='suggestion:'+_0x2857cc['getAttribute']('suggestion-type')+':'+_0x2857cc['getAttribute']('id');return _0x2857cc['getAttribute']('marker-count')&&(_0x683115+=':'+_0x2857cc['getAttribute']('marker-count')),_0x5dc14b['createElement']('$marker',{'data-name':_0x683115});}}),_0x4bc5da['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x4bc5da['conversion']['for']('editingDowncast')['add'](_0x5d6497=>{_0x5d6497['on']('addMarker:suggestion:formatBlock',_0x285d29(),{'priority':'high'});}),_0x4bc5da['conversion']['for']('editingDowncast')['add'](_0x4b91b0=>{_0x4b91b0['on']('addMarker:suggestion:attribute',_0x285d29({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x4bc5da['conversion']['for']('editingDowncast')['add'](_0x3f9a10=>{_0x3f9a10['on']('removeMarker:suggestion:formatBlock',(_0x3b0c51,_0x440f8c,_0x57c960)=>{const _0x3983d8=_0x57c960['mapper']['markerNameToElements'](_0x440f8c['markerName']);if(_0x3983d8){for(const _0x46b1b4 of _0x3983d8)_0x46b1b4['getCustomProperty']('addHighlight')||(_0x57c960['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x46b1b4),_0x57c960['writer']['removeAttribute']('data-suggestion',_0x46b1b4),_0x57c960['writer']['removeAttribute']('data-author-id',_0x46b1b4),_0x57c960['mapper']['unbindElementFromMarkerName'](_0x46b1b4,_0x440f8c['markerName']));}},{'priority':'high'});}),_0x4bc5da['conversion']['for']('editingDowncast')['add'](_0x4efcb5=>{_0x4efcb5['on']('removeMarker:suggestion:attribute',(_0x3fba79,_0xbe8320,_0x53f2f7)=>{const _0xe623b4=_0x53f2f7['mapper']['markerNameToElements'](_0xbe8320['markerName']);if(!_0xe623b4)return;const {id:_0x229bb0}=this['_splitMarkerName'](_0xbe8320['markerName']),_0x4dde57=this['_suggestions']['get'](_0x229bb0),_0x51a92a=this['_getAttributeKey'](_0x4dde57);if(this['_isBlockAttribute'](_0x51a92a)){for(const _0x5e2202 of _0xe623b4)_0x5e2202['getCustomProperty']('addHighlight')||(_0x53f2f7['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5e2202),_0x53f2f7['writer']['removeAttribute']('data-suggestion',_0x5e2202),_0x53f2f7['writer']['removeAttribute']('data-author-id',_0x5e2202),_0x53f2f7['mapper']['unbindElementFromMarkerName'](_0x5e2202,_0xbe8320['markerName']));}},{'priority':'high'});}),_0x4bc5da['model']['document']['registerPostFixer'](_0x15f7af=>{let _0x49dc94=!0x1;const _0x4b577c=Array['from'](_0x4bc5da['model']['document']['differ']['getChangedMarkers']()),_0x2346d9=new Set();for(const {name:_0x3b2d12,data:_0x3721ba}of _0x4b577c){const {group:_0x17f9df,type:_0x18e071,subType:_0x4eb8db,id:_0x2f2ade}=this['_splitMarkerName'](_0x3b2d12);if('suggestion'!==_0x17f9df)continue;const _0x4df067=_0x4eb8db?'suggestion:'+_0x18e071+':'+_0x4eb8db+':'+_0x2f2ade:'suggestion:'+_0x18e071+':'+_0x2f2ade,_0x111ac4=_0x4bc5da['model']['markers']['getMarkersGroup'](_0x4df067),_0x52d37a=_0x4bc5da['model']['markers']['get'](_0x3b2d12),_0x3c21e8=this['_suggestions']['get'](_0x2f2ade);if(null!=_0x3721ba['newRange']){'formatInline'==_0x18e071&&(_0x49dc94=_0x49dc94||Gt(_0x3721ba['newRange'],_0x3b2d12,_0x15f7af,_0x4bc5da['model']['schema']));const _0x598733='attribute'==_0x18e071&&this['_isBlockAttribute'](_0x4eb8db['split']('|')[0x0]),_0x4d090e='attribute'==_0x18e071&&this['_isInlineAttribute'](_0x4eb8db['split']('|')[0x0]);if(_0x3721ba['newRange']['isCollapsed']||'$graveyard'==_0x3721ba['newRange']['root']['rootName']||'formatBlock'==_0x18e071&&!Jt(_0x3721ba['newRange'])||_0x598733&&!Jt(_0x3721ba['newRange'])||_0x4d090e&&Kt(_0x3721ba['newRange'])||'deletion'==_0x18e071&&Kt(_0x3721ba['newRange'])||_0x52d37a&&Ht(_0x52d37a,_0x111ac4))_0x15f7af['removeMarker'](_0x3b2d12),_0x49dc94=!0x0;else{if(!_0x3c21e8||!_0x3c21e8['isInContent'])continue;if(_0x3721ba['newRange']&&_0x3721ba['oldRange']&&_0x3721ba['newRange']['isEqual'](_0x3721ba['oldRange']))continue;_0x2346d9['add'](_0x3c21e8);}}}return _0x2346d9['size']>0x0&&(_0x49dc94=!!this['_joinWithAdjacentSuggestions'](_0x2346d9)||_0x49dc94),_0x49dc94;}),_0x4bc5da['model']['document']['registerPostFixer'](_0x3c9854=>{let _0x24450e=!0x1;for(const _0x2e566d of _0x4bc5da['model']['document']['differ']['getChanges']())if('insert'==_0x2e566d['type'])for(const _0x238612 of this['_suggestions']['values']()){if(_0x238612['isMultiRange']||!_0x238612['isInContent'])continue;const _0x274ae1='formatBlock'==_0x238612['type'],_0x19fdf0=this['_getAttributeKey'](_0x238612),_0x58b0d8=_0x19fdf0&&this['_isBlockAttribute'](_0x19fdf0);if(!_0x274ae1&&!_0x58b0d8)continue;const _0x42ceb7=_0x238612['getFirstRange']();if(_0x42ceb7['start']['parent']!=_0x42ceb7['end']['parent']&&!_0x42ceb7['end']['isAtEnd']){const _0x5b8334=_0x4bc5da['model']['createPositionAt'](_0x42ceb7['start']['nodeAfter'],'end'),_0xee8972=_0x4bc5da['model']['createRange'](_0x42ceb7['start'],_0x5b8334);_0x3c9854['updateMarker'](_0x238612['getFirstMarker'](),{'range':_0xee8972}),_0x24450e=!0x0;}}return _0x24450e;}),_0x4bc5da['model']['document']['registerPostFixer'](_0x4983a7=>this['_processAttributeChanges'](_0x4983a7)),_0x4bc5da['model']['document']['registerPostFixer'](_0x1df677=>!_0x1df677['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x1df677)),_0x4bc5da['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x4bc5da['model']['document']['on']('change:data',(_0x5ca3f0,_0x28f14b)=>{if(!_0x28f14b['isLocal']||_0x28f14b['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x303db=_0x4bc5da['model']['document']['differ']['getChanges']();if(0x0==_0x303db['length'])return;const _0x57ff24=[],_0x4d1e58=_0x303db['filter'](_0x538939=>'attribute'==_0x538939['type']),_0x1ebcd2=_0x303db['filter'](_0x2d0041=>'insert'==_0x2d0041['type']&&'$text'!=_0x2d0041['name']);for(const _0x1d74ad of _0x4d1e58)this['_isRegisteredAttribute'](_0x1d74ad['attributeKey'])&&_0x57ff24['push']({'key':_0x1d74ad['attributeKey'],'newValue':_0x1d74ad['attributeNewValue'],'oldValue':_0x1d74ad['attributeOldValue'],'range':qt(_0x1d74ad['range'],_0x4bc5da['model'])});for(const _0x5f1fdd of _0x1ebcd2){if('rename'!=_0x5f1fdd['action']&&'refresh'!=_0x5f1fdd['action'])continue;const _0x1bc603=zt(_0x5f1fdd['position']['nodeAfter'],_0x4bc5da['model']),_0x4a2298=_0x5f1fdd['before'];'rename'==_0x5f1fdd['action']&&_0x57ff24['push']({'key':m,'newValue':_0x5f1fdd['name'],'oldValue':_0x4a2298['name'],'range':_0x1bc603});for(const [_0x1f2977,_0x3e5d8f]of _0x4a2298['attributes']){if(!this['_isRegisteredAttribute'](_0x1f2977))continue;const _0x5effb0=_0x5f1fdd['attributes']['get'](_0x1f2977);_0x3e5d8f!==_0x5effb0&&_0x57ff24['push']({'key':_0x1f2977,'newValue':_0x5effb0,'oldValue':_0x3e5d8f,'range':_0x1bc603});}for(const [_0x1ea7c1,_0x9ed7c9]of _0x5f1fdd['attributes'])this['_isRegisteredAttribute'](_0x1ea7c1)&&(_0x4a2298['attributes']['has'](_0x1ea7c1)||_0x57ff24['push']({'key':_0x1ea7c1,'newValue':_0x9ed7c9,'oldValue':null,'range':_0x1bc603}));}0x0!=_0x57ff24['length']&&_0x4bc5da['model']['enqueueChange'](_0x28f14b,_0x551703=>{const _0x530ebb=_0x339e56();for(const {range:_0x5c6752,key:_0x1e6a8f,oldValue:_0x14ca19,newValue:_0x13610a}of _0x57ff24)this['markAttributeChange'](_0x5c6752,_0x1e6a8f,_0x14ca19,_0x13610a,{'groupId':_0x530ebb});this['_reduceExistingSuggestions'](_0x551703,_0x57ff24);});},{'priority':'lowest'}),_0x4bc5da['model']['markers']['on']('update:suggestion',(_0x62bb88,_0x8049f4,_0x29a030)=>{if(null==_0x29a030){const {id:_0x3f82cb}=this['_splitMarkerName'](_0x8049f4['name']),_0x1b74f8=this['_suggestions']['get'](_0x3f82cb);_0x1b74f8&&_0x1b74f8['addMarkerName'](_0x8049f4['name']);}}),_0x4bc5da['model']['document']['on']('change:data',()=>{const _0x61cdf8=Array['from'](_0x4bc5da['model']['document']['differ']['getChangedMarkers']())['filter'](_0x52525a=>'suggestion'===this['_splitMarkerName'](_0x52525a['name'])['group']);if(0x0===_0x61cdf8['length'])return;_0x61cdf8['sort']((_0x1a3853,_0x2aa16f)=>{const _0x1f7738=_0x1a3853['data']['oldRange'],_0x58a69c=_0x2aa16f['data']['oldRange'];return null===_0x1f7738&&null===_0x58a69c?0x0:null===_0x1f7738&&null!==_0x58a69c?-0x1:null!==_0x1f7738&&null===_0x58a69c?0x1:_0x1f7738['start']['isBefore'](_0x58a69c['start'])?-0x1:0x1;});const _0x3cd690=new Set(),_0x438e2e=new Set();for(const {name:_0x546191,data:_0x226874}of _0x61cdf8){const {id:_0x5c07dc}=this['_splitMarkerName'](_0x546191);if(null===_0x226874['oldRange']){const _0x59d2de=this['_handleNewSuggestionMarker'](_0x546191);_0x438e2e['add'](_0x59d2de);}else{const _0x183fee=this['_suggestions']['get'](_0x5c07dc);null!==_0x226874['newRange']||_0x183fee['isInContent']?(_0x3cd690['add'](_0x183fee['head']),_0x438e2e['add'](_0x183fee)):this['_removeSuggestion'](_0x183fee);}}_0x438e2e['size']>0x0&&this['_refreshSuggestionsChain'](_0x438e2e);for(const _0x5a465a of _0x3cd690)this['fire']('suggestionChanged',_0x5a465a);}),_0x4bc5da['model']['on']('applyOperation',(_0x32ebbc,_0x16c47f)=>{const _0x1f4abb=_0x16c47f[0x0];if(!this['_suggestions']['size'])return;if(!_0x1f4abb['isDocumentOperation'])return;if(_0x1f4abb['batch']['isUndo']||!_0x1f4abb['batch']['isLocal'])return;let _0x4c4c0b,_0x3f3782;switch(_0x1f4abb['type']){case'insert':_0x4c4c0b=_0x4bc5da['model']['createPositionAt'](_0x1f4abb['position']),_0x3f3782=_0x4c4c0b['getShiftedBy'](_0x1f4abb['howMany']);break;case'split':_0x4c4c0b=_0x4bc5da['model']['createPositionAt'](_0x1f4abb['splitPosition']),_0x3f3782=_0x4bc5da['model']['createPositionAt'](_0x1f4abb['moveTargetPosition']);break;case'move':_0x4c4c0b=_0x4bc5da['model']['createPositionAt'](_0x1f4abb['targetPosition']),_0x3f3782=_0x4c4c0b['getShiftedBy'](_0x1f4abb['howMany']);break;default:return;}const _0x5d71ca=_0x4bc5da['model']['createRange'](_0x4c4c0b,_0x3f3782);_0x4bc5da['model']['change'](()=>{for(const {suggestion:_0x47e6ca,meta:_0x1143c0}of this['_findSuggestions'](_0x5d71ca)){if(_0x47e6ca['isMultiRange'])continue;if('formatInline'==_0x47e6ca['type'])continue;const _0x3ac704=this['_getAttributeKey'](_0x47e6ca);if(_0x3ac704&&this['_isBlockAttribute'](_0x3ac704)&&'split'!=_0x1f4abb['type'])continue;const _0x3119a4=_0x47e6ca['data']&&_0x47e6ca['data']['multipleBlocks'];('formatBlock'!=_0x47e6ca['type']||'split'==_0x1f4abb['type']&&!_0x3119a4)&&(_0x1143c0['containsRangeInObject']||'insertion'==_0x47e6ca['type']&&_0x1143c0['isOwn']||_0x47e6ca['getFirstRange']()['containsRange'](_0x5d71ca)&&this['_breakSuggestionMarker'](_0x47e6ca,_0x4c4c0b,_0x3f3782));}});},{'priority':'lowest'}),_0x4bc5da['model']['on']('deleteContent',(_0x1cfa28,_0x491403)=>{const _0xa88636=_0x491403[0x0],_0x2e3325=_0x491403[0x1];if(_0x2e3325&&_0x2e3325['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0xa88636['isCollapsed'])return;const _0x2e7ecc=_0x4bc5da['model']['schema'],{start:_0x23a057,end:_0x44c67b}=_0xa88636['getFirstRange'](),_0x3ce84a=_0x23a057['nodeAfter']&&_0x2e7ecc['isLimit'](_0x23a057['nodeAfter'])?null:_0x2e7ecc['getNearestSelectionRange'](_0x23a057,'forward'),_0x354f08=_0x44c67b['nodeBefore']&&_0x2e7ecc['isLimit'](_0x44c67b['nodeBefore'])?null:_0x2e7ecc['getNearestSelectionRange'](_0x44c67b,'backward'),_0x540d51=_0x4bc5da['model']['createRange'](_0x3ce84a?_0x3ce84a['start']:_0x23a057,_0x354f08?_0x354f08['end']:_0x44c67b);_0x4bc5da['model']['change'](_0x107287=>{this['markDeletion'](_0x540d51);const _0x287fba=_0x4bc5da['model']['schema']['getNearestSelectionRange'](_0x540d51['start']);_0xa88636['is']('documentSelection')?_0x107287['setSelection'](_0x287fba):_0xa88636['setTo'](_0x287fba);}),_0x1cfa28['stop']();},{'priority':_0x3b7ee3['normal']+0xa}),_0x4bc5da['model']['on']('insertContent',(_0x5f0ea5,_0x238c4a)=>{const _0x429344=_0x238c4a[_0x238c4a['length']-0x1];_0x429344&&_0x429344['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x4bc5da['model']['change'](()=>{let _0x110f80=_0x4bc5da['model']['insertContent'](_0x238c4a[0x0],_0x238c4a[0x1],_0x238c4a[0x2],{'forceDefaultExecution':!0x0});if(!_0x110f80)return;_0x5f0ea5['return']=_0x110f80['clone']();const _0x93b51e=_0x110f80['end']['nodeBefore'],_0x1463bb=_0x4bc5da['model']['schema'];_0x93b51e&&_0x1463bb['isBlock'](_0x93b51e)&&!_0x1463bb['isObject'](_0x93b51e)&&(_0x110f80=_0x4bc5da['model']['createRange'](_0x110f80['start'],_0x4bc5da['model']['createPositionAt'](_0x93b51e,'end'))),this['markInsertion'](_0x110f80);}),_0x5f0ea5['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x896d8d=new D(_0x4bc5da,this['_suggestions']);_0x4bc5da['commands']['add']('acceptSuggestion',_0x896d8d),this['enableCommand']('acceptSuggestion');const _0x48c01e=new $(_0x4bc5da,this['_suggestions']);_0x4bc5da['commands']['add']('discardSuggestion',_0x48c01e),this['enableCommand']('discardSuggestion'),_0x4bc5da['commands']['add']('acceptAllSuggestions',new M(_0x4bc5da,_0x896d8d,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x4bc5da['commands']['add']('discardAllSuggestions',new M(_0x4bc5da,_0x48c01e,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x4bc5da['commands']['add']('acceptSelectedSuggestions',new B(_0x4bc5da,_0x896d8d,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x4bc5da['commands']['add']('discardSelectedSuggestions',new B(_0x4bc5da,_0x48c01e,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x30fc4a=_0x4bc5da['plugins']['get']('CommentsRepository');this['listenTo'](_0x30fc4a,'addComment',(_0x5b743b,{threadId:_0x589564})=>{const _0x4e160f=this['_suggestions']['get'](_0x589564);_0x4e160f&&_0x4e160f['commentThread']&&0x1===_0x4e160f['commentThread']['length']&&this['_updateSuggestionData'](_0x589564,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x30fc4a,'removeComment',(_0x70aa00,{threadId:_0x21bbde})=>{const _0x32d840=this['_suggestions']['get'](_0x21bbde);_0x32d840&&_0x32d840['commentThread']&&!_0x32d840['commentThread']['length']&&this['_updateSuggestionData'](_0x21bbde,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x4269e7){const _0x2a90d5=_0x1b5fcc([0x35,0x67,0x6f,0x4e,0x5a,0x52,0x78,0x48,0x7a,0x6d,0x42,0x66,0x72,0x6c,0x30,0x46,0x71,0x36,0x43,0x6b,0x73,0x31,0x61,0x68,0x44,0x47,0x53,0x32,0x4c,0x55,0x45,0x57,0x69,0x62,0x79,0x33,0x77,0x4b,0x76,0x75,0x34,0x49,0x56,0x50,0x64,0x65,0x54,0x38,0x6a,0x6e,0x39,0x4d,0x4f,0x51,0x4a,0x74,0x63,0x41,0x59,0x37,0x58,0x70]),_0x38ebbf=0x6b0f5e6f,_0x2c548a=0x6b082c8f^_0x38ebbf,_0x3765a9=window[_0x1b5fcc([0x44,0x61,0x74,0x65])][_0x1b5fcc([0x6e,0x6f,0x77])](),_0x350c37=_0x4269e7[_0x1b5fcc([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4759af=new window[(_0x1b5fcc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a9f6b=>{_0x350c37[_0x1b5fcc([0x6f,0x6e,0x63,0x65])](_0x1b5fcc([0x72,0x65,0x61,0x64,0x79]),_0x5a9f6b);}),_0x45d7b8={[_0x1b5fcc([0x6b,0x74,0x79])]:_0x1b5fcc([0x45,0x43]),[_0x1b5fcc([0x75,0x73,0x65])]:_0x1b5fcc([0x73,0x69,0x67]),[_0x1b5fcc([0x63,0x72,0x76])]:_0x1b5fcc([0x50,0x2d,0x32,0x35,0x36]),[_0x1b5fcc([0x78])]:_0x1b5fcc([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]),[_0x1b5fcc([0x79])]:_0x1b5fcc([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]),[_0x1b5fcc([0x61,0x6c,0x67])]:_0x1b5fcc([0x45,0x53,0x32,0x35,0x36])},_0x41260e=_0x350c37[_0x1b5fcc([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1b5fcc([0x67,0x65,0x74])](_0x1b5fcc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x14ebda(){let _0x164d4d,_0x2be1d1=null,_0x1b45ec=null;try{if(_0x41260e==_0x1b5fcc([0x47,0x50,0x4c]))return _0x1b5fcc([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x164d4d=_0x550141(),!_0x164d4d)return _0x1b5fcc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x164d4d[_0x1b5fcc([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1b45ec=_0x2c040c(_0x164d4d[_0x1b5fcc([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x164d4d[_0x1b5fcc([0x6a,0x74,0x69])])),await _0x57e01b()?_0x5f1046()?_0x1c8ebd()?_0x1b5fcc([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1672d9()?(_0x164d4d[_0x1b5fcc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1b5fcc([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2be1d1=_0x3b4f02(_0x1b5fcc([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x164d4d[_0x1b5fcc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1b5fcc([0x74,0x72,0x69,0x61,0x6c])&&(_0x2be1d1=_0x3b4f02(_0x1b5fcc([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4e018b()):_0x1b5fcc([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1b5fcc([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1b5fcc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1b5fcc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1c8ebd(){const _0x202029=[_0x1b5fcc([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1b5fcc([0x74,0x72,0x69,0x61,0x6c])][_0x1b5fcc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x164d4d[_0x1b5fcc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3765a9/0x3e8:0xe10*_0x2c548a;return _0x164d4d[_0x1b5fcc([0x65,0x78,0x70])]<_0x202029;}function _0x5f1046(){const _0x38e2a0=_0x164d4d[_0x1b5fcc([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x38e2a0)return!0x1;if(_0x38e2a0[_0x1b5fcc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b5fcc([0x2a])))return!0x0;if(_0x38e2a0[_0x1b5fcc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b5fcc([0x54,0x43])))return!0x0;if(_0x38e2a0[_0x1b5fcc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b5fcc([0x52,0x54,0x43]))){if(_0xf1acf2())return!0x0;if(_0x4248d5()||_0x2f61a2())return!0x0;}return!0x1;}function _0x1672d9(){const _0x446868=_0x164d4d[_0x1b5fcc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x446868||0x0==_0x446868[_0x1b5fcc([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x15fc7b}=new URL(window[_0x1b5fcc([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x446868[_0x1b5fcc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15fc7b))return!0x0;const _0x3b70e8=_0x15fc7b[_0x1b5fcc([0x73,0x70,0x6c,0x69,0x74])](_0x1b5fcc([0x2e]));return _0x446868[_0x1b5fcc([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5ad7c1=>_0x5ad7c1[_0x1b5fcc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b5fcc([0x2a])))[_0x1b5fcc([0x6d,0x61,0x70])](_0x475410=>_0x475410[_0x1b5fcc([0x73,0x70,0x6c,0x69,0x74])](_0x1b5fcc([0x2e])))[_0x1b5fcc([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x10fc1d=>_0x10fc1d[_0x1b5fcc([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3b70e8[_0x1b5fcc([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1b5fcc([0x6d,0x61,0x70])](_0x519f0c=>Array(_0x3b70e8[_0x1b5fcc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x519f0c[_0x1b5fcc([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1b5fcc([0x66,0x69,0x6c,0x6c])](_0x519f0c[0x0]===_0x1b5fcc([0x2a])?_0x1b5fcc([0x2a]):'')[_0x1b5fcc([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x519f0c))[_0x1b5fcc([0x73,0x6f,0x6d,0x65])](_0xb95b62=>_0x3b70e8[_0x1b5fcc([0x65,0x76,0x65,0x72,0x79])]((_0x4dcea5,_0x5a66ef)=>_0xb95b62[_0x5a66ef]===_0x4dcea5||_0xb95b62[_0x5a66ef]===_0x1b5fcc([0x2a])));}function _0x4e018b(){return _0x2be1d1&&_0x1b45ec?new window[(_0x1b5fcc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x23b9f4,_0x573a8b)=>{_0x2be1d1[_0x1b5fcc([0x74,0x68,0x65,0x6e])](_0x23b9f4,_0x573a8b),_0x1b45ec[_0x1b5fcc([0x74,0x68,0x65,0x6e])](_0x338c02=>{_0x338c02!=_0x1b5fcc([0x56,0x61,0x6c,0x69,0x64])&&_0x23b9f4(_0x338c02);},_0x573a8b);}):_0x2be1d1||_0x1b45ec||_0x1b5fcc([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2c040c(_0x209933,_0x7123b3){return new window[(_0x1b5fcc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x37e82e=>{if(_0x1685fa())return _0x37e82e(_0x1b5fcc([0x56,0x61,0x6c,0x69,0x64]));_0x4ed627(),_0x350c37[_0x1b5fcc([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1b5fcc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x495e70=!0x1;const _0x311150=_0x339e56();function _0xda36d7(_0x5b9652){return!!_0x5b9652&&(typeof _0x5b9652===_0x1b5fcc([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5b9652===_0x1b5fcc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5b9652[_0x1b5fcc([0x74,0x68,0x65,0x6e])]===_0x1b5fcc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5b9652[_0x1b5fcc([0x63,0x61,0x74,0x63,0x68])]===_0x1b5fcc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5d2079(_0x4fa3ba){_0x1115b7(_0x4fa3ba)[_0x1b5fcc([0x74,0x68,0x65,0x6e])](_0x9f34bc=>{if(!_0x9f34bc||_0x9f34bc[_0x1b5fcc([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1b5fcc([0x6f,0x6b]))return _0x1b5fcc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5f5067(_0x552d65(_0x311150+_0x7123b3))!=_0x9f34bc[_0x1b5fcc([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1b5fcc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1b5fcc([0x56,0x61,0x6c,0x69,0x64]);})[_0x1b5fcc([0x74,0x68,0x65,0x6e])](_0x5532f0=>(_0x5b6def(),_0x5532f0),()=>{const _0x910834=_0x25a8a8();return null==_0x910834?(_0x5b6def(),_0x1b5fcc([0x56,0x61,0x6c,0x69,0x64])):_0x1b5fcc(_0x3765a9-_0x910834>(0x4f03da6f^_0x38ebbf)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1b5fcc([0x74,0x68,0x65,0x6e])](_0x37e82e)[_0x1b5fcc([0x63,0x61,0x74,0x63,0x68])](()=>{_0x37e82e(_0x1b5fcc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2dd58d=0x6b39b0ef^_0x38ebbf;function _0x5b6def(){const _0x1118d7=_0x1b5fcc([0x6c,0x6c,0x63,0x74,0x2d])+_0x5f5067(_0x552d65(_0x209933)),_0x160e4c=_0x57a707(_0x5f5067(window[_0x1b5fcc([0x4d,0x61,0x74,0x68])][_0x1b5fcc([0x63,0x65,0x69,0x6c])](_0x3765a9/_0x2dd58d)));window[_0x1b5fcc([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1b5fcc([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1118d7,_0x160e4c);}function _0x25a8a8(){const _0x498e4f=_0x1b5fcc([0x6c,0x6c,0x63,0x74,0x2d])+_0x5f5067(_0x552d65(_0x209933)),_0x4eb868=window[_0x1b5fcc([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1b5fcc([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x498e4f);return _0x4eb868?window[_0x1b5fcc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x57a707(_0x4eb868),0x10)*_0x2dd58d:null;}function _0x1115b7(_0x29ee1e){return new window[(_0x1b5fcc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3b5684,_0x12751d)=>{_0x29ee1e[_0x1b5fcc([0x74,0x68,0x65,0x6e])](_0x3b5684,_0x12751d),window[_0x1b5fcc([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x12751d,0x6b0e8aaf^_0x38ebbf);});}}_0x350c37[_0x1b5fcc([0x6f,0x6e])](_0x1b5fcc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2f1e00,_0x4adae7)=>{if(_0x4adae7[0x0]!=_0x209933)return _0x37e82e(_0x1b5fcc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4adae7[0x1]={..._0x4adae7[0x1],[_0x1b5fcc([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x311150};},{[_0x1b5fcc([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1b5fcc([0x68,0x69,0x67,0x68])}),_0x350c37[_0x1b5fcc([0x6f,0x6e])](_0x1b5fcc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x186767=>{_0xda36d7(_0x186767[_0x1b5fcc([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x495e70=!0x0,_0x5d2079(_0x186767[_0x1b5fcc([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1b5fcc([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1b5fcc([0x6c,0x6f,0x77])}),_0x4759af[_0x1b5fcc([0x74,0x68,0x65,0x6e])](()=>{_0x495e70||_0x37e82e(_0x1b5fcc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1685fa(){return _0x350c37[_0x1b5fcc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1b5fcc([0x76,0x69,0x65,0x77])][_0x1b5fcc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1b5fcc([0x61,0x75,0x74,0x6f]);}function _0x4ed627(){_0x350c37[_0x1b5fcc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1b5fcc([0x76,0x69,0x65,0x77])][_0x1b5fcc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1b5fcc([0x61,0x75,0x74,0x6f]);}}function _0x3b4f02(_0x1ad82c){const _0x537181=[new window[(_0x1b5fcc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2a7573=>setTimeout(_0x2a7573,0x6b0660a3^_0x38ebbf)),_0x4759af[_0x1b5fcc([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1b5fcc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x22078d=>{let _0x2735ff=0x0;_0x350c37[_0x1b5fcc([0x6d,0x6f,0x64,0x65,0x6c])][_0x1b5fcc([0x6f,0x6e])](_0x1b5fcc([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x40f031,_0x863d42)=>{_0x863d42[0x0][_0x1b5fcc([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2735ff++,_0x2735ff==(0x6b0f5f97^_0x38ebbf)&&(_0x22078d(),_0x40f031[_0x1b5fcc([0x6f,0x66,0x66])]());});}))];return window[_0x1b5fcc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1b5fcc([0x72,0x61,0x63,0x65])](_0x537181)[_0x1b5fcc([0x74,0x68,0x65,0x6e])](()=>_0x1ad82c);}async function _0x8f7757(){await _0x4759af,_0x350c37[_0x1b5fcc([0x6d,0x6f,0x64,0x65,0x6c])][_0x1b5fcc([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3f323c,_0x350c37[_0x1b5fcc([0x6d,0x6f,0x64,0x65,0x6c])][_0x1b5fcc([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3f323c,_0x350c37[_0x1b5fcc([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1b5fcc([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xf1acf2(){return _0x20846a(_0x1b5fcc([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2f1f64(_0x1b5fcc([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x1b5fcc([0x73,0x74,0x61,0x74,0x65])]==_0x1b5fcc([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4248d5(){return _0x20846a(_0x1b5fcc([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 _0x2f61a2(){return _0x20846a(_0x1b5fcc([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x40849d(_0x4f144a){const _0x40999f=_0x233c05();_0x350c37[_0x40999f]=_0x1b5fcc([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4f144a,_0x4f144a!=_0x1b5fcc([0x56,0x61,0x6c,0x69,0x64])&&_0x8f7757();}function _0x233c05(){const _0x49752e=window[_0x1b5fcc([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1b5fcc([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1b5fcc([0x6e,0x6f,0x77])]())[_0x1b5fcc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1b5fcc([0x2e]),'');let _0x5030ce=_0x1b5fcc([0x67]);for(let _0x55bfb9=0x0;_0x55bfb9<_0x49752e[_0x1b5fcc([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x55bfb9+=0x2){let _0x55915d=window[_0x1b5fcc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x49752e[_0x1b5fcc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x55bfb9,_0x55bfb9+0x2));_0x55915d>=_0x2a90d5[_0x1b5fcc([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x55915d-=_0x2a90d5[_0x1b5fcc([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5030ce+=_0x2a90d5[_0x55915d];}return _0x5030ce;}function _0x550141(){const _0x168628=_0x41260e[_0x1b5fcc([0x73,0x70,0x6c,0x69,0x74])](_0x1b5fcc([0x2e]));if(0x3!=_0x168628[_0x1b5fcc([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x58370f(_0x168628[0x1]);function _0x58370f(_0x3744d7){const _0x17616e=_0x4ebe72(_0x3744d7);return _0x17616e&&_0x471dd6()?_0x17616e:null;function _0x471dd6(){const _0x46e2e0=_0x17616e[_0x1b5fcc([0x6a,0x74,0x69])],_0x2784cd=window[_0x1b5fcc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x46e2e0[_0x1b5fcc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x46e2e0[_0x1b5fcc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x26a9ff={..._0x17616e,[_0x1b5fcc([0x6a,0x74,0x69])]:_0x46e2e0[_0x1b5fcc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x46e2e0[_0x1b5fcc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x26a9ff[_0x1b5fcc([0x76,0x63])],_0x552d65(_0x26a9ff)==_0x2784cd;}}}async function _0x57e01b(){let _0x4496a0=!0x0;try{const _0x446873=_0x41260e[_0x1b5fcc([0x73,0x70,0x6c,0x69,0x74])](_0x1b5fcc([0x2e])),[_0x4e63ef,_0x3f84b3,_0xd95bf6]=_0x446873;return _0x41223b(_0x4e63ef),await _0x3f9425(_0x4e63ef,_0x3f84b3,_0xd95bf6),_0x4496a0;}catch{return!0x1;}function _0x41223b(_0x58989e){const _0x103a85=_0x4ebe72(_0x58989e);_0x103a85&&_0x103a85[_0x1b5fcc([0x61,0x6c,0x67])]==_0x1b5fcc([0x45,0x53,0x32,0x35,0x36])||(_0x4496a0=!0x1);}async function _0x3f9425(_0x486524,_0xfb5ffd,_0x3167f6){const _0x286ac0=window[_0x1b5fcc([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1b5fcc([0x66,0x72,0x6f,0x6d])](_0x1cc2ec(_0x3167f6),_0x24956e=>_0x24956e[_0x1b5fcc([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1b47fd=new window[(_0x1b5fcc([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1b5fcc([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x486524+_0x1b5fcc([0x2e])+_0xfb5ffd),_0x4b1443=window[_0x1b5fcc([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1b5fcc([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4b1443)return;const _0x4a02b4=await _0x4b1443[_0x1b5fcc([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1b5fcc([0x6a,0x77,0x6b]),_0x45d7b8,{[_0x1b5fcc([0x6e,0x61,0x6d,0x65])]:_0x1b5fcc([0x45,0x43,0x44,0x53,0x41]),[_0x1b5fcc([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1b5fcc([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1b5fcc([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4b1443[_0x1b5fcc([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1b5fcc([0x6e,0x61,0x6d,0x65])]:_0x1b5fcc([0x45,0x43,0x44,0x53,0x41]),[_0x1b5fcc([0x68,0x61,0x73,0x68])]:{[_0x1b5fcc([0x6e,0x61,0x6d,0x65])]:_0x1b5fcc([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4a02b4,_0x286ac0,_0x1b47fd)||(_0x4496a0=!0x1);}}function _0x4ebe72(_0x28a348){return _0x28a348[_0x1b5fcc([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1b5fcc([0x65,0x79]))?JSON[_0x1b5fcc([0x70,0x61,0x72,0x73,0x65])](_0x1cc2ec(_0x28a348)):null;}function _0x1cc2ec(_0xac2ea1){return window[_0x1b5fcc([0x61,0x74,0x6f,0x62])](_0xac2ea1[_0x1b5fcc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1b5fcc([0x2b]))[_0x1b5fcc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1b5fcc([0x2f])));}function _0x552d65(_0x21328a){let _0x511380=0x1505;function _0x37399c(_0xf75acc){for(let _0x124a36=0x0;_0x124a36<_0xf75acc[_0x1b5fcc([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x124a36++){const _0x4e329f=_0xf75acc[_0x1b5fcc([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x124a36);_0x511380=(_0x511380<<0x5)+_0x511380+_0x4e329f,_0x511380&=_0x511380;}}function _0x59c84f(_0x4784f5){Array[_0x1b5fcc([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4784f5)?_0x4784f5[_0x1b5fcc([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x59c84f):_0x4784f5&&typeof _0x4784f5==_0x1b5fcc([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1b5fcc([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4784f5)[_0x1b5fcc([0x73,0x6f,0x72,0x74])]()[_0x1b5fcc([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2a9b81,_0x5864b5])=>{_0x37399c(_0x2a9b81),_0x59c84f(_0x5864b5);}):_0x37399c(window[_0x1b5fcc([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4784f5));}return _0x59c84f(_0x21328a),_0x511380>>>0x0;}function _0x5f5067(_0x53d7a2){return _0x53d7a2[_0x1b5fcc([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1b5fcc([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1b5fcc([0x30]));}function _0x57a707(_0x5b1aac){return _0x5b1aac[_0x1b5fcc([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1b5fcc([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1b5fcc([0x6a,0x6f,0x69,0x6e])]('');}function _0x20846a(_0x72ed2e){return _0x350c37[_0x1b5fcc([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1b5fcc([0x68,0x61,0x73])](_0x72ed2e);}function _0x2f1f64(_0x322c12){return _0x350c37[_0x1b5fcc([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1b5fcc([0x67,0x65,0x74])](_0x322c12);}function _0x3f323c(){}function _0x1b5fcc(_0x1f7ef1){return _0x1f7ef1['map'](_0x38e164=>String['fromCharCode'](_0x38e164))['join']('');}_0x40849d(await _0x14ebda());}(this);}set['adapter'](_0x1bcc58){if(this['_adapter'])throw new _0x484d49('track-changes-adapter-already-set',this);this['_adapter']=_0x1bcc58;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x30a490=!0x1,toJSON:_0x4783c0=!0x1}={}){const _0x31de3d=[];for(const _0x566a89 of this['_suggestions']['values']())_0x30a490&&!_0x566a89['isInContent']||_0x31de3d['push'](_0x566a89);return _0x4783c0?_0x31de3d['map'](_0x4b09ee=>_0x4b09ee['toJSON']()):_0x31de3d;}['getSuggestion'](_0x234c14){const _0x3ae8ae=this['_suggestions']['get'](_0x234c14);if(!_0x3ae8ae)throw new _0x484d49('track-changes-suggestion-not-found',this);return _0x3ae8ae;}['hasSuggestion'](_0x3fb047){return this['_suggestions']['has'](_0x3fb047);}['addSuggestionData'](_0x182a91){const {authorId:_0x187397,id:_0x36a43c,originalSuggestionId:_0x8682d8,attributes:_0x763ef}=_0x182a91,[_0x4dbe4f,_0x598b25]=_0x182a91['type']['split'](':'),_0x4912a6=this['_suggestions']['get'](_0x36a43c)||this['_createSuggestion'](_0x4dbe4f,_0x598b25,_0x36a43c,_0x187397,_0x763ef,_0x8682d8);if(this['_addThreadToSuggestion'](_0x4912a6),this['_checkSuggestionCorrectness'](_0x4912a6,_0x4dbe4f,_0x598b25||null,_0x187397),_0x4912a6['createdAt']=_0x182a91['createdAt'],_0x4912a6['_isDataLoaded']=!0x0,_0x763ef&&_0x763ef['@external']){const _0x2f49d5=_0x763ef['@external'],_0x508183=this['_getExternalAuthor'](_0x2f49d5['authorName']);_0x4912a6['authoredAt']=_0x2f49d5['createdAt'],_0x4912a6['author']=_0x508183,_0x4912a6['isExternal']=!0x0;}else _0x4912a6['authoredAt']=_0x182a91['createdAt'];switch(_0x182a91['data']&&(_0x4912a6['data']=_0x182a91['data']),_0x182a91['attributes']&&(_0x4912a6['attributes']=_0x182a91['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x4912a6['_saved']=!0x0),this['_suggestionState']['get'](_0x4912a6)){case'notReady':this['_suggestionState']['set'](_0x4912a6,'dataReady');break;case'markerReady':_0x4912a6['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x4912a6])),this['_refreshSuggestionsChain'](new Set([_0x4912a6])),this['_suggestionState']['set'](_0x4912a6,'ready'),this['fire']('suggestionLoaded',_0x4912a6)):this['_suggestionState']['set'](_0x4912a6,'removed');}return _0x4912a6;}['acceptSuggestion'](_0x1989ee){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4bdd5e of _0x1989ee['getAllAdjacentSuggestions']())_0x4bdd5e['accept']();});});}['discardSuggestion'](_0x409e88){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2ee6e3 of _0x409e88['getAllAdjacentSuggestions']())_0x2ee6e3['discard']();});});}['enableCommand'](_0x4fba74,_0x1cc3aa){const _0x4eda85=this['editor']['commands']['get'](_0x4fba74);if(!_0x4eda85)throw new _0x484d49('track-changes-command-not-found',this,{'commandName':_0x4fba74});if(this['_enabledCommands']['has'](_0x4eda85))throw new _0x484d49('track-changes-enable-command-twice',this,{'commandName':_0x4fba74});this['_enabledCommands']['add'](_0x4eda85),_0x1cc3aa&&_0x4eda85['on']('execute',(_0x1b6a13,_0x55c4a6)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x55c4a6['length']>0x0&&_0x55c4a6[_0x55c4a6['length']-0x1]&&_0x55c4a6[_0x55c4a6['length']-0x1]['forceDefaultExecution']?_0x55c4a6['pop']():(_0x1b6a13['return']=_0x1cc3aa((..._0x5d0742)=>_0x4eda85['execute'](..._0x5d0742,{'forceDefaultExecution':!0x0}),..._0x55c4a6),_0x1b6a13['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x3d0e2c){let _0x2f2f1c,_0x306cc6;const _0x3d461c=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x2f2f1c=_0x3d0e2c();}catch(_0x26bcee){_0x306cc6=_0x26bcee;}return _0x3d461c||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x306cc6&&_0x484d49['rethrowUnexpectedError'](_0x306cc6,this),_0x2f2f1c;}['markInsertion'](_0x21de69,_0x3f4c64=null,_0x310787={}){if(_0x21de69['isCollapsed'])return null;const _0x26d285=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x310787['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5f42ad,meta:_0xa81a7e}of this['_findSuggestions'](_0x21de69,'insertion'))if(_0xa81a7e['isOwn']){if(!_0xa81a7e['isNextTo']){if(_0xa81a7e['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x5f42ad,_0x310787))continue;return _0x5f42ad;}if(Xt(_0x5f42ad,_0x310787))return _0x5f42ad;this['_breakSuggestionMarker'](_0x5f42ad,_0x21de69['start'],_0x21de69['end']);break;}if(_0x3f4c64==_0x5f42ad['subType']&&Xt(_0x5f42ad,_0x310787)){const _0x4bea72=_0x5f42ad['getFirstRange']();return _0x4bea72['start']['isEqual'](_0x21de69['end'])?this['_setSuggestionRange'](_0x5f42ad,this['_model']['createRange'](_0x21de69['start'],_0x4bea72['end'])):this['_setSuggestionRange'](_0x5f42ad,this['_model']['createRange'](_0x4bea72['start'],_0x21de69['end'])),_0x5f42ad;}}const _0x56165e=_0x339e56(),_0x211e4d=_0x26d285['id'],_0x5251c9=_0x3f4c64?'insertion:'+_0x3f4c64:'insertion',_0x17902e=this['_setSuggestionData']({'id':_0x56165e,'type':_0x5251c9,'createdAt':new Date(),'authorId':_0x211e4d,'attributes':_0x310787});return this['_addSuggestionMarker'](_0x5251c9,_0x56165e,_0x211e4d,_0x21de69),_0x17902e;}['markMultiRangeInsertion'](_0x268c26,_0x3bab35='multi',_0x1f86a3={}){const _0xe8594e=this['editor']['plugins']['get']('Users')['me'],_0x182e7a=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x3bab35,'join');this['_trackingSessionId']&&(_0x1f86a3['trackingSessionId']=this['_trackingSessionId']);for(const _0x4b1eb3 of this['getSuggestions']())if(_0x4b1eb3['author']['id']==_0xe8594e['id']&&'insertion'==_0x4b1eb3['type']&&_0x4b1eb3['subType']==_0x3bab35&&Xt(_0x4b1eb3,_0x1f86a3)&&(_0x182e7a(_0x4b1eb3['getRanges'](),_0x268c26)||_0x182e7a(_0x268c26,_0x4b1eb3['getRanges']()))){for(const _0x4fd863 of _0x268c26)_0x4b1eb3['addRange'](_0x4fd863);return _0x4b1eb3;}for(const {suggestion:_0x510666,meta:_0x32f7ac}of this['_findSuggestions'](_0x268c26,'insertion')){if(!_0x32f7ac['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x32f7ac['containsRangeInObject'])continue;if(!Xt(_0x510666,_0x1f86a3))continue;let _0x19fa5b=!0x0;for(const _0x145377 of _0x510666['getRanges']())for(const _0x3756b6 of _0x268c26)if(!_0x145377['containsRange'](_0x3756b6)){_0x19fa5b=!0x1;break;}if(_0x19fa5b)return _0x510666;}const _0x2dad50=_0x339e56(),_0x23fe61=_0xe8594e['id'],_0x4c04fb='insertion:'+_0x3bab35,_0x3e1bf8=this['_setSuggestionData']({'id':_0x2dad50,'type':_0x4c04fb,'createdAt':new Date(),'authorId':_0x23fe61,'attributes':_0x1f86a3});for(const _0x253686 of _0x268c26)this['_addSuggestionMarker'](_0x4c04fb,_0x2dad50,_0x23fe61,_0x253686,T['getMultiRangeId']());return _0x3e1bf8;}['markInlineFormat'](_0x3f4a76,_0x1926b6,_0x17f4df=null,_0x5e00bd={}){if(_0x17f4df=_0x17f4df||Lt(_0x1926b6),_0x3f4a76['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x5e00bd['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x27636c=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x17f4df,'accept');return this['forceDefaultExecution'](()=>_0x27636c([_0x3f4a76],_0x1926b6,_0x5e00bd)),null;}const _0x39c84f=this['editor']['plugins']['get']('Users')['me'],_0x25e211=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x1e67ac,meta:_0x2d3eab}of this['_findSuggestions'](_0x3f4a76,'insertion'))_0x2d3eab['isOwn']&&!_0x2d3eab['isInsideObject']&&_0x25e211['push'](..._0x1e67ac['getRanges']());}const _0x27a556=function(_0x59eb11,_0x26f466){const _0x38fca2=[];for(const _0xd50797 of _0x26f466){const _0x4ffbbf=_0x59eb11['getIntersection'](_0xd50797);_0x4ffbbf&&_0x38fca2['push'](_0x4ffbbf);}return _0x38fca2;}(_0x3f4a76,_0x25e211),_0x5e447d=function(_0x33125f,_0x3bb182){const _0x225e31=[_0x33125f];for(const _0x86b0dd of _0x3bb182){let _0x30d225=0x0;for(;_0x30d225<_0x225e31['length'];){const _0x585d37=_0x225e31[_0x30d225]['getDifference'](_0x86b0dd);_0x225e31['splice'](_0x30d225,0x1,..._0x585d37),_0x30d225+=_0x585d37['length'];}}return _0x225e31;}(_0x3f4a76,_0x25e211);_0x27a556['length']&&this['_model']['change'](()=>{for(const _0x32b2a7 of _0x27a556){const _0x38c4f5=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x17f4df,'accept');this['forceDefaultExecution'](()=>_0x38c4f5([_0x32b2a7],_0x1926b6,_0x5e00bd));}});for(const _0x55e0ea of _0x5e447d){let _0x4030ee=null,_0x348d6a=_0x55e0ea['start'],_0x412278=_0x55e0ea['end'];for(const {suggestion:_0x2cb087,meta:_0x2cb9dc}of this['_findSuggestions'](_0x55e0ea,'formatInline')){if(!_0x2cb9dc['isOwn'])continue;if(_0x2cb087['subType']!=_0x17f4df)continue;if(!Xt(_0x2cb087,_0x5e00bd))continue;const _0x9d021b=_0x2cb087['getFirstRange']();if(_0x9d021b['containsRange'](_0x55e0ea,!0x0))return null;_0x348d6a=_0x348d6a['isBefore'](_0x9d021b['start'])?_0x348d6a:_0x9d021b['start'],_0x412278=_0x412278['isAfter'](_0x9d021b['end'])?_0x412278:_0x9d021b['end'],_0x4030ee?_0x9d021b['start']['isBefore'](_0x4030ee['getFirstRange']()['start'])?(_0x4030ee['removeMarkers'](),_0x4030ee=_0x2cb087):_0x2cb087['removeMarkers']():_0x4030ee=_0x2cb087;}const _0x296bf1=this['_model']['createRange'](_0x348d6a,_0x412278);if(_0x4030ee)this['_setSuggestionRange'](_0x4030ee,_0x296bf1);else{const _0x2f8df6=_0x339e56(),_0x5bc880=_0x39c84f['id'];this['_setSuggestionData']({'id':_0x2f8df6,'type':'formatInline:'+_0x17f4df,'data':_0x1926b6,'createdAt':new Date(),'authorId':_0x5bc880,'attributes':_0x5e00bd}),this['_addSuggestionMarker']('formatInline:'+_0x17f4df,_0x2f8df6,_0x5bc880,_0x296bf1);}}return null;}['markBlockFormat'](_0x431c2a,_0x4b025a,_0x484359=[],_0x4fd1e4=null,_0x2695a0={}){_0x4b025a['formatGroupId']||(_0x4b025a['formatGroupId']=_0x4b025a['commandName']),_0x4b025a['multipleBlocks']=_0x431c2a['is']('range'),_0x4fd1e4=_0x4fd1e4||Lt(_0x4b025a);const _0x48da64=_0x484359['map'](_0x38858e=>zt(_0x38858e,this['_model'])),_0x14d4b8=_0x431c2a['is']('range')?_0x431c2a:zt(_0x431c2a,this['_model']);if(this['_trackingSessionId']&&(_0x2695a0['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x592a37=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4fd1e4,'accept');return this['forceDefaultExecution'](()=>_0x592a37([_0x14d4b8],_0x4b025a,_0x2695a0)),null;}_0x48da64['push'](_0x14d4b8);let _0x346786=!0x0;for(const _0x562cea of _0x48da64)if(!this['_rangeIsInLocalUserInsertion'](_0x562cea)){_0x346786=!0x1;break;}if(_0x346786&&'always'!==this['_trackFormatChanges']){const _0x52699a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4fd1e4,'accept');return this['forceDefaultExecution'](()=>_0x52699a([_0x14d4b8],_0x4b025a,_0x2695a0)),null;}let _0x478b7e=null,_0x16859f=_0x14d4b8['start'],_0x558335=_0x14d4b8['end'];for(const {suggestion:_0x33b7a6,meta:_0x5e1944}of this['_findSuggestions'](_0x14d4b8,'formatBlock')){if(!_0x5e1944['isOwn'])continue;if(_0x5e1944['isNextTo']||_0x5e1944['containsRangeInObject']||_0x5e1944['isInsideObject'])continue;if(_0x33b7a6['data']['formatGroupId']!=_0x4b025a['formatGroupId'])continue;if(!Xt(_0x33b7a6,_0x2695a0))continue;const _0x4b8d7f=_0x33b7a6['getFirstRange']();if(_0x33b7a6['subType']==_0x4fd1e4){if(_0x4b8d7f['containsRange'](_0x14d4b8,!0x0))return null;_0x16859f=_0x16859f['isBefore'](_0x4b8d7f['start'])?_0x16859f:_0x4b8d7f['start'],_0x558335=_0x558335['isAfter'](_0x4b8d7f['end'])?_0x558335:_0x4b8d7f['end'],_0x478b7e?_0x4b8d7f['start']['isBefore'](_0x478b7e['getFirstRange']()['start'])?(_0x478b7e['removeMarkers'](),_0x478b7e=_0x33b7a6):_0x33b7a6['removeMarkers']():_0x478b7e=_0x33b7a6;}else{const _0x23f0aa=_0x14d4b8['getIntersection'](_0x4b8d7f);this['_cutOutSuggestionMarker'](_0x33b7a6,_0x23f0aa);}}const _0x26c4ad=this['editor']['plugins']['get']('Users')['me'],_0x6d982d=_0x339e56(),_0x46ee9b=_0x26c4ad['id'];if(_0x478b7e)return this['_setSuggestionRange'](_0x478b7e,this['_model']['createRange'](_0x16859f,_0x558335)),_0x478b7e;{const _0x29caa9=this['_setSuggestionData']({'id':_0x6d982d,'type':'formatBlock:'+_0x4fd1e4,'data':_0x4b025a,'createdAt':new Date(),'authorId':_0x46ee9b,'attributes':_0x2695a0});return this['_addSuggestionMarker']('formatBlock:'+_0x4fd1e4,_0x6d982d,_0x46ee9b,this['_model']['createRange'](_0x16859f,_0x558335)),_0x29caa9;}}['markMultiRangeBlockFormat'](_0x437e5e,_0x539aa8,_0x578671=[],_0x13fa1c=null,_0x278725={}){_0x539aa8['formatGroupId']||(_0x539aa8['formatGroupId']=_0x539aa8['commandName']);const _0x1ed5be=_0x437e5e[0x0];_0x539aa8['multipleBlocks']=_0x1ed5be['is']('range'),_0x13fa1c=_0x13fa1c||Lt(_0x539aa8);const _0x262849=_0x578671['map'](_0x553312=>zt(_0x553312,this['_model'])),_0x3ecd0c=_0x1ed5be['is']('range')?_0x437e5e:_0x437e5e['map'](_0x5c7b7a=>zt(_0x5c7b7a,this['_model']));if(this['_trackingSessionId']&&(_0x278725['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x140035=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x13fa1c,'accept');return this['forceDefaultExecution'](()=>_0x140035(_0x3ecd0c,_0x539aa8,_0x278725)),null;}_0x262849['push'](..._0x3ecd0c);let _0x49fea2=!0x0;for(const _0x4def16 of _0x262849)if(!this['_rangeIsInLocalUserInsertion'](_0x4def16)){_0x49fea2=!0x1;break;}if(_0x49fea2&&'always'!==this['_trackFormatChanges']){const _0x5af95c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x13fa1c,'accept');return this['forceDefaultExecution'](()=>_0x5af95c(_0x3ecd0c,_0x539aa8,_0x278725)),null;}const _0x5e3776=this['editor']['plugins']['get']('Users')['me'];for(const _0x1be9bf of this['getSuggestions']()){const _0x4bba55=_0x1be9bf['data'];if(_0x1be9bf['author']['id']!=_0x5e3776['id'])continue;if('formatBlock'!=_0x1be9bf['type']||_0x4bba55['formatGroupId']!=_0x539aa8['formatGroupId'])continue;if(!Xt(_0x1be9bf,_0x278725))continue;const _0xa89a9a=_0x1be9bf['subType']==_0x13fa1c;for(let _0x1ecb87=0x0;_0x1ecb87<_0x3ecd0c['length'];_0x1ecb87++){const _0x5c3301=_0x3ecd0c[_0x1ecb87];for(const _0x472efd of _0x1be9bf['getMarkers']()){const _0x20f949=_0x472efd['getRange']();if(_0x5c3301['isEqual'](_0x20f949)){_0xa89a9a?(_0x3ecd0c['splice'](_0x1ecb87,0x1),_0x1ecb87--):_0x1be9bf['removeMarker'](_0x472efd['name']);break;}}}}if(0x0==_0x3ecd0c['length'])return null;const _0x5e455d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x13fa1c,'join');for(const _0x166d29 of this['getSuggestions']()){const _0x418171=_0x166d29['data'];if(_0x166d29['author']['id']==_0x5e3776['id']&&('formatBlock'==_0x166d29['type']&&_0x418171['formatGroupId']==_0x539aa8['formatGroupId']&&_0x166d29['subType']==_0x13fa1c&&Xt(_0x166d29,_0x278725)&&(_0x5e455d(_0x166d29['getRanges'](),_0x3ecd0c)||_0x5e455d(_0x3ecd0c,_0x166d29['getRanges']())))){for(const _0x4e0942 of _0x3ecd0c)_0x166d29['addRange'](_0x4e0942);return _0x166d29;}}const _0x13c90d=_0x339e56(),_0x3654f6=_0x5e3776['id'],_0x3bf721='formatBlock:'+_0x13fa1c,_0x4302c7=this['_setSuggestionData']({'id':_0x13c90d,'type':_0x3bf721,'data':_0x539aa8,'createdAt':new Date(),'authorId':_0x3654f6,'attributes':_0x278725});for(const _0x263c07 of _0x3ecd0c)this['_addSuggestionMarker'](_0x3bf721,_0x13c90d,_0x3654f6,_0x263c07,T['getMultiRangeId']());return _0x4302c7;}['markDeletion'](_0x27116c,_0x31c37a=null,_0x44f2bc={}){if(_0x27116c['isCollapsed'])return null;const _0x2642f2=this['editor']['plugins']['get']('Users')['me'],_0x5aabf1=new _0x41eab8(_0x27116c['start'],_0x27116c['end']);this['_trackingSessionId']&&(_0x44f2bc['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0xdb847f,meta:_0x5630ae}of this['_findSuggestions'](_0x5aabf1,'insertion'))if(_0x5630ae['isOwn']&&!_0x5630ae['isNextTo']){if(_0xdb847f['isMultiRange']){const _0x216dbe=_0xdb847f['getRanges']()['filter'](_0x362d0e=>'$graveyard'!=_0x362d0e['root']['rootName']);_0x216dbe['every'](_0x5d3e5c=>_0x5aabf1['containsRange'](_0x5d3e5c,!0x0))&&_0xdb847f['discard']();if(_0x216dbe['some'](_0x504707=>_0x504707['containsRange'](_0x5aabf1,!0x0))){const _0x293aac=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x31c37a,'accept');return this['forceDefaultExecution'](()=>_0x293aac([_0x5aabf1],null,_0x44f2bc)),null;}}else{const _0x4fc196=_0x5aabf1['getIntersection'](_0xdb847f['getFirstRange']());null!==_0x4fc196&&_0xdb847f['_onDiscard']([_0x4fc196],null,_0x44f2bc);}}if(_0x5aabf1['detach'](),_0x5aabf1['isCollapsed']||'$graveyard'==_0x5aabf1['root']['rootName'])return null;let _0xf9d840=null,_0x50bf15=_0x5aabf1['start'],_0xe192d8=_0x5aabf1['end'];const _0x3db73f=this['_findSuggestions'](_0x5aabf1,'deletion');for(const {suggestion:_0x503fc7,meta:_0x1caa35}of _0x3db73f){const _0xe2330c=this['_model']['createRange'](_0x50bf15,_0xe192d8);if(_0x1caa35['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1caa35['containsRangeInObject']&&!_0x1caa35['isInsideObject'])){if(_0x503fc7['isMultiRange']){if(!Xt(_0x503fc7,_0x44f2bc))continue;let _0x17d7ef=!0x0;for(const _0x5b87a1 of _0x503fc7['getRanges']()){if(_0x5b87a1['containsRange'](_0xe2330c,!0x0))return _0x503fc7;_0xe2330c['containsRange'](_0x5b87a1)||(_0x17d7ef=!0x1);}_0x17d7ef&&_0x503fc7['discard']();}else{const _0x25712d=_0x503fc7['getFirstRange']();if(_0x25712d['containsRange'](_0xe2330c,!0x0))return _0x503fc7;if(!Xt(_0x503fc7,_0x44f2bc)){_0xe2330c['containsRange'](_0x25712d)?_0x503fc7['removeMarkers']():_0x25712d['containsPosition'](_0x50bf15)?_0x50bf15=_0x25712d['end']:_0x25712d['containsPosition'](_0xe192d8)&&(_0xe192d8=_0x25712d['start']);continue;}_0x50bf15=_0x50bf15['isBefore'](_0x25712d['start'])?_0x50bf15:_0x25712d['start'],_0xe192d8=_0xe192d8['isAfter'](_0x25712d['end'])?_0xe192d8:_0x25712d['end'],_0x44f2bc=Object['assign']({},_0x503fc7['attributes']),_0xf9d840?_0x25712d['start']['isBefore'](_0xf9d840['getFirstRange']()['start'])?(_0xf9d840['removeMarkers'](),_0xf9d840=_0x503fc7):_0x503fc7['removeMarkers']():_0xf9d840=_0x503fc7;}}}if(_0xf9d840)return this['_setSuggestionRange'](_0xf9d840,this['_model']['createRange'](_0x50bf15,_0xe192d8)),_0xf9d840;{const _0x1e0f3f=_0x339e56(),_0x15ed5f=this['_model']['createRange'](_0x50bf15,_0xe192d8),_0x14a493=_0x2642f2['id'],_0x3f8cf0=_0x31c37a?'deletion:'+_0x31c37a:'deletion',_0xf2b566=this['_setSuggestionData']({'id':_0x1e0f3f,'type':_0x3f8cf0,'createdAt':new Date(),'authorId':_0x14a493,'attributes':_0x44f2bc});return this['_addSuggestionMarker'](_0x3f8cf0,_0x1e0f3f,_0x14a493,_0x15ed5f),_0xf2b566;}}['markMultiRangeDeletion'](_0x2e71cc,_0x740121='multi',_0x3ead3d={}){const _0x4d633a=this['editor']['plugins']['get']('Users')['me'],_0x3f5c93=_0x2e71cc['map'](_0x464ce1=>new _0x41eab8(_0x464ce1['start'],_0x464ce1['end'])),_0x140aef=new Set();this['_trackingSessionId']&&(_0x3ead3d['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x58a8c1,meta:_0x5bd7f3}of this['_findSuggestions'](_0x3f5c93,'insertion'))_0x5bd7f3['isOwn']&&!_0x5bd7f3['isNextTo']&&_0x140aef['add'](_0x58a8c1);for(const _0x40c0f4 of _0x140aef)if(_0x40c0f4['isMultiRange']){const _0x59aa5c=_0x40c0f4['getRanges']();(!_0x40c0f4['attributes']||!_0x40c0f4['attributes']['skipNestingCheck'])&&(_0x59aa5c['every'](_0x3f0581=>_0x3f5c93['some'](_0x423f8e=>_0x423f8e['containsRange'](_0x3f0581,!0x0)))&&_0x40c0f4['discard']());if(_0x3f5c93['every'](_0x3a8c5f=>_0x59aa5c['some'](_0x19888a=>_0x19888a['containsRange'](_0x3a8c5f,!0x0)))){const _0x237eab=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x740121,'accept');return this['forceDefaultExecution'](()=>_0x237eab(_0x2e71cc,null,_0x3ead3d)),null;}}else{const _0x24aaa2=_0x40c0f4['getFirstRange']();_0x3f5c93['some'](_0x4f694f=>_0x4f694f['containsRange'](_0x24aaa2,!0x0))&&_0x40c0f4['discard']();if(_0x3f5c93['every'](_0x17b199=>_0x24aaa2['containsRange'](_0x17b199,!0x0))){const _0x1f14c2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x740121,'accept');return this['forceDefaultExecution'](()=>_0x1f14c2(_0x3f5c93,null,_0x3ead3d)),null;}}const _0xb49c8=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x740121,'join');let _0xe38d05=null;for(const _0xdc5687 of this['getSuggestions']())if(_0xdc5687['author']['id']==_0x4d633a['id']&&_0xdc5687['isInContent']&&'deletion'==_0xdc5687['type']&&_0xdc5687['subType']==_0x740121&&Xt(_0xdc5687,_0x3ead3d)&&(_0xb49c8(_0xdc5687['getRanges'](),_0x3f5c93)||_0xb49c8(_0x3f5c93,_0xdc5687['getRanges']()))){if(_0xe38d05){if(_0xdc5687['commentThread']&&_0xdc5687['commentThread']['length'])continue;for(const _0x1df409 of _0xdc5687['getRanges']())_0xe38d05['isIntersectingWithRange'](_0x1df409)||_0xe38d05['addRange'](_0x1df409);_0xdc5687['removeMarkers']();}else{_0xe38d05=_0xdc5687;for(const _0x20e148 of _0x3f5c93)_0xdc5687['isIntersectingWithRange'](_0x20e148)||_0xdc5687['addRange'](_0x20e148);}}if(_0xe38d05)return _0xe38d05;_0x140aef['clear']();for(const {suggestion:_0x114a8c,meta:_0x3fdab3}of this['_findSuggestions'](_0x3f5c93,'deletion'))_0x3fdab3['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3fdab3['containsRangeInObject']&&!_0x3fdab3['isInsideObject'])&&Xt(_0x114a8c,_0x3ead3d)&&_0x140aef['add'](_0x114a8c);for(const _0x4b33b4 of _0x140aef){const _0x443e3b=_0x4b33b4['getRanges']();if(!_0x3ead3d||!_0x3ead3d['skipNestingCheck']){if(_0x3f5c93['every'](_0x2868ae=>_0x443e3b['some'](_0x161c9c=>_0x161c9c['containsRange'](_0x2868ae,!0x0))))return _0x4b33b4;}(!_0x4b33b4['attributes']||!_0x4b33b4['attributes']['skipNestingCheck'])&&(_0x443e3b['every'](_0x289558=>_0x3f5c93['some'](_0x47b81b=>_0x47b81b['containsRange'](_0x289558,!0x0)))&&_0x4b33b4['discard']());}const _0x52a291=_0x339e56(),_0x26c641=_0x4d633a['id'],_0x6fc962='deletion:'+_0x740121,_0x5b950e=this['_setSuggestionData']({'id':_0x52a291,'type':_0x6fc962,'createdAt':new Date(),'authorId':_0x26c641,'attributes':_0x3ead3d});for(const _0x1a402c of _0x3f5c93)_0x1a402c['detach'](),_0x1a402c['isCollapsed']||'$graveyard'==_0x1a402c['root']['rootName']||this['_addSuggestionMarker'](_0x6fc962,_0x52a291,_0x26c641,_0x1a402c,T['getMultiRangeId']());return _0x5b950e;}['markAttributeChange'](_0x695d,_0x539413,_0xe89b4,_0x582508,_0x4ab931){if(_0x695d['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x3a10d0=this['editor']['plugins']['get']('Users')['me']['id'],_0x89c2cb=Array['from'](this['_suggestions']['values']())['filter'](_0x568d4f=>'attribute'==_0x568d4f['type']&&_0x568d4f['data']['key']==_0x539413&&_0x568d4f['isIntersectingWithRange'](_0x695d));if(this['_trackingSessionId']&&(_0x4ab931['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x527f34=this['_findSuggestions'](_0x695d,'insertion')['filter'](({meta:_0x1183d8})=>_0x1183d8['isOwn']&&!_0x1183d8['isInsideObject']&&!_0x1183d8['isNextTo'])['map'](({suggestion:_0x4676fb})=>_0x4676fb);_0x89c2cb['unshift'](..._0x527f34);}const _0x2d53d7=new Map([[_0x695d,_0xe89b4]]);for(const _0x2d4c51 of _0x89c2cb){const _0x246046='attribute'==_0x2d4c51['type']?_0x2d4c51['data']['oldValue']:void 0x0,_0x181b7=_0x2d4c51['getFirstRange'](),_0x7fc3f4=Array['from'](_0x2d53d7['keys']())['find'](_0x327fa6=>_0x327fa6['isIntersecting'](_0x181b7));if(!_0x7fc3f4)continue;const _0x47bb35=_0x7fc3f4['getDifference'](_0x181b7);this['_isBlockAttribute'](_0x539413)&&'insertion'==_0x2d4c51['type']&&0x0!=_0x47bb35['length']||(_0x2d53d7['delete'](_0x7fc3f4),_0x47bb35['forEach'](_0x55739a=>{_0x2d53d7['set'](_0x55739a,_0xe89b4);}),'insertion'!=_0x2d4c51['type']&&_0x246046!=_0x582508&&_0x2d53d7['set'](_0x7fc3f4['getIntersection'](_0x181b7),_0x246046));}const _0x4befb7=[];for(const [_0x58b159,_0x5c353c]of _0x2d53d7){const _0x374bc5=_0x339e56(),_0x431f52={'key':_0x539413,'oldValue':_0x5c353c,'newValue':_0x582508};_0x539413['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':_0x539413});const _0x11c237=('attribute:'+(_0x539413+'|'+Lt({'newValue':_0x582508})))['substring'](0x0,0x3c),_0x1c8a03=this['_setSuggestionData']({'id':_0x374bc5,'type':_0x11c237,'data':_0x431f52,'createdAt':new Date(),'authorId':_0x3a10d0,'attributes':_0x4ab931});_0x4befb7['push'](_0x1c8a03),this['_addSuggestionMarker'](_0x11c237,_0x374bc5,_0x3a10d0,_0x58b159);}return _0x4befb7;}['enableDefaultAttributesIntegration'](_0x2281f8){this['enableCommand'](_0x2281f8,(_0x4a2ef1,..._0x5a23cd)=>{this['recordAttributeChanges'](()=>{_0x4a2ef1(..._0x5a23cd);});});}['registerBlockAttribute'](_0x517d20){this['_blockAttributeKeys']['add'](_0x517d20);}['registerInlineAttribute'](_0x21fa30){this['_inlineAttributeKeys']['add'](_0x21fa30);}['startTrackingSession'](_0x399b92){return this['_trackingSessionId']=void 0x0!==_0x399b92?_0x399b92:_0x339e56(),this['_trackingSessionId'];}['_getAttributeKey'](_0x1e77fe){return'attribute'==_0x1e77fe['type']?_0x1e77fe['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x2ca0cd,_0x38054b){const _0x4d429c=_0x2ca0cd['getFirstMarker']();this['_model']['change'](_0x22864e=>{_0x22864e['updateMarker'](_0x4d429c,{'range':_0x38054b});});}['_addThreadToSuggestion'](_0x19f9fd){const _0x51f47e=_0x19f9fd['id'],_0x35ab04=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x51f47e)||this['_commentsRepository']['addCommentThread']({'channelId':_0x35ab04,'threadId':_0x51f47e,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x23d23b=this['_commentsRepository']['getCommentThread'](_0x51f47e);_0x23d23b['unbind']('isRemovable'),_0x23d23b['isRemovable']=!0x1,_0x19f9fd['commentThread']=_0x23d23b;}['_checkSuggestionCorrectness'](_0x36a5cd,_0x4d8035,_0x34d803,_0x4fd583){if(_0x36a5cd['type']!=_0x4d8035||_0x36a5cd['subType']!=_0x34d803||_0x36a5cd['creator']['id']!=_0x4fd583)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x484d49('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0xca4932,_0x348380){const _0xb294f0=_0xca4932['getFirstRange']();if(_0x348380['isEqual'](_0xb294f0))_0xca4932['removeMarkers']();else{if(_0xb294f0['containsRange'](_0x348380)){const _0x2a8cea=this['_model']['createPositionAt'](_0x348380['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0xca4932,this['_model']['createRange'](_0xb294f0['start'],_0x2a8cea));const _0x5406f0=_0x339e56(),_0x55b5be=_0xca4932['creator']['id'],_0x4ffdeb=_0xca4932['type']+':'+_0xca4932['subType'];this['_setSuggestionData']({'id':_0x5406f0,'type':_0x4ffdeb,'createdAt':new Date(),'authorId':_0x55b5be,'data':_0xca4932['data'],'attributes':_0xca4932['attributes']});const _0x34ee78=this['_model']['createPositionAt'](_0x348380['end']['parent'],'after'),_0x29be37=this['_model']['createRange'](_0x34ee78,_0xb294f0['end']);this['_addSuggestionMarker'](_0x4ffdeb,_0x5406f0,_0x55b5be,_0x29be37);}else{if(_0xb294f0['containsPosition'](_0x348380['start'])){const _0x1738f1=this['_model']['createPositionAt'](_0x348380['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0xca4932,this['_model']['createRange'](_0xb294f0['start'],_0x1738f1));}else{const _0x5ce771=this['_model']['createPositionAt'](_0x348380['end']['parent'],'after');this['_setSuggestionRange'](_0xca4932,this['_model']['createRange'](_0x5ce771,_0xb294f0['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x57f67a){for(const {suggestion:_0x498c76,meta:_0x3d08d7}of this['_findSuggestions'](_0x57f67a,'insertion')){if(!_0x3d08d7['isOwn'])continue;const _0x388922=_0x498c76['getRanges']();for(const _0x141568 of _0x388922)if(!_0x57f67a['getDifference'](_0x141568)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0xc1f89e){return this['editor']['plugins']['get']('Users')['getUser'](_0xc1f89e);}['_getExternalAuthor'](_0x2723fc){const _0x1748d2=this['editor']['plugins']['get']('Users'),_0x1f62c4=_0x5d6409('external:'+_0x2723fc),_0x2c5aa3=_0x1748d2['getUser'](_0x1f62c4);return _0x2c5aa3||_0x1748d2['addUser']({'id':_0x1f62c4,'name':_0x2723fc});}['_createSuggestion'](_0x229f75,_0x2902d8,_0x3b01d5,_0x531605,_0x143c10,_0x5c43bb){const _0x5ec556=this['_getAuthorFromId'](_0x531605);if(!_0x5ec556)throw new _0x484d49('track-changes-user-not-found',this,{'authorId':_0x531605,'suggestionId':_0x3b01d5});const _0x1c5dfc=this['_suggestionFactory']['buildSuggestion'](_0x229f75,_0x2902d8,_0x3b01d5,_0x5ec556,_0x143c10,_0x5ae73f=>{this['_updateSuggestionData'](_0x3b01d5,{'attributes':_0x5ae73f});const _0x43791a=this['getSuggestion'](_0x3b01d5);this['_joinWithAdjacentSuggestions'](new Set([_0x43791a])),this['_refreshSuggestionsChain'](new Set([_0x43791a]));},_0x5c43bb);return this['listenTo'](_0x1c5dfc,'accept',()=>{this['_updateSuggestionData'](_0x3b01d5,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x1c5dfc,'discard',()=>{this['_updateSuggestionData'](_0x3b01d5,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x3b01d5,_0x1c5dfc),this['_suggestionState']['set'](_0x1c5dfc,'notReady'),_0x1c5dfc;}['_splitMarkerName'](_0x3281d6){const _0x4b8ab4=_0x3281d6['split'](':');return{'group':_0x4b8ab4[0x0],'type':_0x4b8ab4[0x1],'subType':_0x4b8ab4['length']>=0x5?_0x4b8ab4[0x2]:null,'id':_0x4b8ab4['length']<0x5?_0x4b8ab4[0x2]:_0x4b8ab4[0x3],'authorId':_0x4b8ab4['length']<0x5?_0x4b8ab4[0x3]:_0x4b8ab4[0x4],'markerCount':0x6==_0x4b8ab4['length']?_0x4b8ab4[0x5]:null};}['_breakSuggestionMarker'](_0x2cc499,_0x2e34fa,_0x109c7a){const _0x3c0d48=_0x2cc499['getFirstRange'](),_0x2826d7=_0x3c0d48['start'],_0x319fb2=_0x3c0d48['end'];this['_setSuggestionRange'](_0x2cc499,this['_model']['createRange'](_0x2826d7,_0x2e34fa));const _0x495372=_0x339e56(),_0x29c4b5=_0x2cc499['creator']['id'],_0x384283=_0x2cc499['type']+(_0x2cc499['subType']?':'+_0x2cc499['subType']:'');this['_setSuggestionData']({'id':_0x495372,'type':_0x384283,'createdAt':new Date(),'authorId':_0x29c4b5,'originalSuggestionId':_0x2cc499['_originalSuggestionId']||_0x2cc499['id'],'attributes':_0x2cc499['attributes'],'data':_0x2cc499['data']});const _0x5d39d5=this['_getAttributeKey'](_0x2cc499);('formatBlock'==_0x2cc499['type']||_0x5d39d5&&this['_isBlockAttribute'](_0x5d39d5))&&(_0x109c7a=this['_model']['createPositionBefore'](_0x109c7a['parent'])),this['_addSuggestionMarker'](_0x384283,_0x495372,_0x29c4b5,this['_model']['createRange'](_0x109c7a,_0x319fb2));}['_findSuggestions'](_0x603364,_0x4433cc=null){const _0x53b939=[],_0x1dd89a=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x603364)||(_0x603364=[_0x603364]);for(const _0x22ad7a of this['getSuggestions']()){if(!_0x22ad7a['isInContent'])continue;if(_0x4433cc&&_0x22ad7a['type']!=_0x4433cc)continue;let _0x1fa009=!0x1;for(const _0x545904 of _0x22ad7a['getRanges']()){for(const _0x124049 of _0x603364){const _0x23958e=_0x124049['start']['isEqual'](_0x545904['end'])||_0x124049['end']['isEqual'](_0x545904['start']);if(_0x23958e||_0x124049['getIntersection'](_0x545904)){const _0x125986=_0x124049['containsRange'](_0x545904)&&Ft(this['_model']['schema'],_0x545904['start'],_0x124049),_0x8ba1d0=_0x545904['containsRange'](_0x124049)&&Ft(this['_model']['schema'],_0x124049['start'],_0x545904);_0x53b939['push']({'suggestion':_0x22ad7a,'meta':{'isOwn':_0x1dd89a==_0x22ad7a['author'],'isNextTo':_0x23958e,'isInsideObject':_0x125986,'containsRangeInObject':_0x8ba1d0}}),_0x1fa009=!0x0;break;}}if(_0x1fa009)break;}}return _0x53b939;}['_addSuggestionMarker'](_0x4ee550,_0x2a53f0,_0x3c41da,_0x21b317,_0x4abd01){this['_model']['change'](_0x2412c0=>{let _0x538c14='suggestion:'+_0x4ee550+':'+_0x2a53f0+':'+_0x3c41da;_0x4abd01&&(_0x538c14=_0x538c14+':'+_0x4abd01),_0x2412c0['addMarker'](_0x538c14,{'range':_0x21b317,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x24345a){const _0x257070=_0x24345a['previous'],_0x53159f=_0x24345a['next'];_0x24345a['previous']=null,_0x24345a['next']=null,null!=_0x257070&&_0x257070['next']==_0x24345a&&(_0x257070['next']=_0x53159f),null!=_0x53159f&&_0x53159f['previous']==_0x24345a&&(_0x53159f['previous']=_0x257070),'ready'==this['_suggestionState']['get'](_0x24345a)&&(this['_suggestionState']['set'](_0x24345a,'removed'),this['fire']('suggestionUnloaded',_0x24345a,_0x257070,_0x53159f));}['_setSuggestionData'](_0x35113c){const _0x4a6814=_0x35113c['id'],_0x2414a9=this['addSuggestionData'](_0x35113c);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x269a68=this['editor']['plugins']['get']('PendingActions'),_0x22cb33=_0x2414a9['hasComments'],_0x1e331a=_0x2414a9['subType']?_0x2414a9['type']+':'+_0x2414a9['subType']:_0x2414a9['type'],_0x42bffa=this['editor']['locale'],_0x271675=_0x269a68['add'](o(_0x42bffa,'PENDING_ACTION_SUGGESTION')),_0x3f064a={'id':_0x4a6814,'type':_0x1e331a,'hasComments':_0x22cb33,'data':_0x35113c['data']||null,'originalSuggestionId':_0x35113c['originalSuggestionId']||null,'attributes':_0x2414a9['attributes']};this['_adapter']['addSuggestion'](_0x3f064a)['then'](_0xc20725=>{_0x2414a9['_saved']=!0x0,_0x269a68['remove'](_0x271675),_0xc20725&&_0xc20725['createdAt']&&(this['_suggestions']['get'](_0x4a6814)['createdAt']=_0xc20725['createdAt']);})['catch'](_0x18406f=>{throw _0x40ff1a('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x2414a9['discard']();}),_0x2414a9['stopListening'](),this['_suggestions']['delete'](_0x2414a9['id']),this['_suggestionState']['delete'](_0x2414a9),_0x18406f;});}return _0x2414a9;}['_isBlockAttribute'](_0x5817ff){return this['_blockAttributeKeys']['has'](_0x5817ff);}['_isInlineAttribute'](_0x72a0d6){return this['_inlineAttributeKeys']['has'](_0x72a0d6);}['_updateSuggestionData'](_0x9adcfd,_0x514195){const _0x311ae9=this['editor']['plugins']['get']('PendingActions'),_0x27842a=this['getSuggestion'](_0x9adcfd);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x27842a['_saved']){const _0x55ceac=_0x311ae9['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x9adcfd,_0x514195)['then'](()=>{_0x311ae9['remove'](_0x55ceac);});}else _0x27842a['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x9adcfd,_0x514195);});}}['_getSuggestionData'](_0x980d8a){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x484d49('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x980d8a);}['_handleNewSuggestionMarker'](_0x33a923){const {id:_0xfd95a5,type:_0x3ea805,subType:_0x102932,authorId:_0x38475c}=this['_splitMarkerName'](_0x33a923),_0x3d5ac9=this['_suggestions']['get'](_0xfd95a5)||this['_createSuggestion'](_0x3ea805,_0x102932,_0xfd95a5,_0x38475c,{});switch(this['_checkSuggestionCorrectness'](_0x3d5ac9,_0x3ea805,_0x102932,_0x38475c),this['_suggestionState']['get'](_0x3d5ac9)){case'notReady':this['_getSuggestionData'](_0xfd95a5)['then'](_0x214e22=>{let _0x285a49=Promise['resolve']();_0x214e22['hasComments']&&(_0x285a49=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0xfd95a5})),_0x285a49['then'](()=>{this['addSuggestionData'](_0x214e22)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x3d5ac9,'markerReady');break;case'removed':this['_updateSuggestionData'](_0xfd95a5,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x3d5ac9,'ready'),this['fire']('suggestionLoaded',_0x3d5ac9);break;case'ready':this['fire']('suggestionChanged',_0x3d5ac9);}return _0x3d5ac9['addMarkerName'](_0x33a923),_0x3d5ac9;}['_refreshSuggestionsChain'](_0xdae99d){const _0x464faf=Array['from'](_0xdae99d),_0x13d1c3=_0x464faf['filter'](_0xc82e30=>'attribute'==_0xc82e30['type']);this['_refreshAttributeSuggestionsChain'](_0x13d1c3);const _0x1d5c35=_0x464faf['filter'](_0x1fd130=>!_0x1fd130['isMultiRange']&&'attribute'!=_0x1fd130['type']),_0xf30d77=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x494d9d=>!_0x494d9d['isMultiRange']&&'attribute'!=_0x494d9d['type']),_0x5307ec=_0xf30d77['filter'](_0x4f979d=>!_0xdae99d['has'](_0x4f979d)),_0x1a1a2f=new Map(_0xf30d77['map'](_0x2ce351=>[_0x2ce351,this['_suggestionFactory']['getSuggestionCallback'](_0x2ce351['type'],_0x2ce351['subType'],'chain')])),_0x5d5e06=new Map(_0xf30d77['map'](_0x408186=>[_0x408186,_0x408186['getFirstRange']()])),_0x72c64=new Set(),_0x417580=new Set();for(let _0x48115d=0x0;_0x48115d<_0x1d5c35['length'];_0x48115d++)_0x53b2cc(_0x1d5c35[_0x48115d],_0x1d5c35,_0x48115d+0x1);for(let _0x21c10d=0x0;_0x21c10d<_0x1d5c35['length'];_0x21c10d++)_0x53b2cc(_0x1d5c35[_0x21c10d],_0x5307ec,0x0);const _0x2cc5fd=new Set();for(let _0x1f479c=0x0;_0x1f479c<_0x1d5c35['length'];_0x1f479c++){const _0x3b3c36=_0x1d5c35[_0x1f479c];!_0x417580['has'](_0x3b3c36)&&_0x3b3c36['previous']&&(_0x2cc5fd['add'](_0x3b3c36['previous']),_0x3b3c36['previous']['next']===_0x3b3c36&&(_0x3b3c36['previous']['next']=null),_0x3b3c36['previous']=null),!_0x72c64['has'](_0x3b3c36)&&_0x3b3c36['next']&&(_0x2cc5fd['add'](_0x3b3c36['next']),_0x3b3c36['next']['previous']===_0x3b3c36&&(_0x3b3c36['next']['previous']=null),_0x3b3c36['next']=null);}function _0x53b2cc(_0x39ecc2,_0x323a52,_0x598e4a){for(let _0x53300c=_0x598e4a;_0x53300c<_0x323a52['length'];_0x53300c++){const _0x343937=_0x114dab(_0x39ecc2,_0x323a52[_0x53300c]);_0x343937&&(_0x343937[0x0]['next']=_0x343937[0x1],_0x343937[0x1]['previous']=_0x343937[0x0],_0x72c64['add'](_0x343937[0x0]),_0x417580['add'](_0x343937[0x1]));}}function _0x114dab(_0xc33ef9,_0x5bf2b4){if(_0xc33ef9['author']['id']!==_0x5bf2b4['author']['id'])return null;const _0x38ba61=_0x1a1a2f['get'](_0xc33ef9)(_0xc33ef9,_0x5bf2b4,_0x5d5e06['get'](_0xc33ef9),_0x5d5e06['get'](_0x5bf2b4));if(!_0x38ba61)return null;return _0x1a1a2f['get'](_0x5bf2b4)(_0xc33ef9,_0x5bf2b4,_0x5d5e06['get'](_0xc33ef9),_0x5d5e06['get'](_0x5bf2b4))?_0x38ba61[0x1]['commentThread']&&_0x38ba61[0x1]['commentThread']['length']?null:_0x38ba61:null;}_0x2cc5fd['size']&&this['_refreshSuggestionsChain'](_0x2cc5fd);}['_refreshAttributeSuggestionsChain'](_0x82b817){if(0x0==_0x82b817['length'])return;const _0x5e1837=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3c565d=>'attribute'==_0x3c565d['type']&&_0x3c565d['_isDataLoaded']),_0x3a5979=[],_0x1eefb0=new Map();for(const _0x509e0a of _0x5e1837){const _0x36aae5=_0x5d6409(_0x509e0a['attributes']);_0x1eefb0['has'](_0x36aae5)||(_0x1eefb0['set'](_0x36aae5,_0x3a5979['length']),_0x3a5979['push']([]));const _0x4071ea=_0x1eefb0['get'](_0x36aae5);_0x3a5979[_0x4071ea]['push'](_0x509e0a);}!(function(){_0x3a5979['sort']((_0x1da56e,_0x3abd58)=>{const _0x49b868=_0x1da56e[0x0]['createdAt'],_0x33e7e4=_0x3abd58[0x0]['createdAt'];return _0x49b868==_0x33e7e4?_0x1da56e[0x0]['attributes']['groupId']<_0x3abd58[0x0]['attributes']['groupId']?-0x1:0x1:_0x49b868<_0x33e7e4?-0x1:0x1;});for(const _0x4ed921 of _0x3a5979)_0x4ed921['sort']((_0x2d6821,_0x5920cc)=>_0x2d6821['id']<_0x5920cc['id']?-0x1:0x1);}());for(let _0x456970=0x0;_0x456970<_0x3a5979['length'];_0x456970++){if(0x0==_0x3a5979[_0x456970]['length'])continue;const _0x28dfcf=[];for(let _0x21cc35=_0x456970+0x1;_0x21cc35<_0x3a5979['length'];_0x21cc35++)0x0!=_0x3a5979[_0x21cc35]['length']&&_0x24ac8f(_0x3a5979[_0x456970],_0x3a5979[_0x21cc35])&&_0x28dfcf['push'](_0x21cc35);for(const _0x231e0b of _0x28dfcf)_0x3a5979[_0x456970]=_0x3a5979[_0x456970]['concat'](_0x3a5979[_0x231e0b]),_0x3a5979[_0x231e0b]=[];}for(const _0x5c9d7a of _0x3a5979)for(let _0xefba60=0x0;_0xefba60<_0x5c9d7a['length'];_0xefba60++){const _0x3d7b16=_0x5c9d7a[_0xefba60+0x1]||null;_0x5c9d7a[_0xefba60]['next']!==_0x3d7b16&&(_0x5c9d7a[_0xefba60]['next']=_0x3d7b16);}for(const _0x5334ad of _0x3a5979)for(let _0x2908d4=0x0;_0x2908d4<_0x5334ad['length'];_0x2908d4++){const _0x98b5c8=_0x5334ad[_0x2908d4-0x1]||null;_0x5334ad[_0x2908d4]['previous']!==_0x98b5c8&&(_0x5334ad[_0x2908d4]['previous']=_0x98b5c8);}function _0x24ac8f(_0x2614ff,_0x1517b2){if(_0x2614ff[0x0]['attributes']['groupId']!==_0x1517b2[0x0]['attributes']['groupId']&&_0x2614ff[0x0]['author']!==_0x1517b2[0x0]['author'])return!0x1;if(!function(_0x42f8a7,_0x76bcdd){if(!_0x42f8a7['hasComments']&&!_0x76bcdd['hasComments'])return!0x0;if(_0x42f8a7['hasComments']&&_0x76bcdd['hasComments'])return!0x1;if(_0x42f8a7['hasComments']&&_0x76bcdd['createdAt']<_0x42f8a7['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x76bcdd['hasComments']&&_0x42f8a7['createdAt']<_0x76bcdd['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x2614ff[0x0],_0x1517b2[0x0]))return!0x1;const _0x9ff954=Ut(_0x2614ff[0x0]['attributes'],['groupId','trackingSessionId']),_0x4fa2a2=Ut(_0x1517b2[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x87d9f1(_0x9ff954,_0x4fa2a2))return!0x1;if(_0x2614ff[0x0]['attributes']['groupId']==_0x1517b2[0x0]['attributes']['groupId'])return!0x0;if(_0x2614ff[0x0]['attributes']['trackingSessionId']!==_0x1517b2[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x2614ff['every'](_0x89b68d=>_0x1517b2['some'](_0x496603=>_0x89b68d['getFirstRange']()['isEqual'](_0x496603['getFirstRange']())))&&_0x1517b2['every'](_0x1b6aba=>_0x2614ff['some'](_0x1c59da=>_0x1b6aba['getFirstRange']()['isEqual'](_0x1c59da['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x37a5c9){const _0xdf6e7a=Array['from'](_0x37a5c9),_0x404072=this['getSuggestions']({'skipNotAttached':!0x0}),_0x51e70a=_0x404072['filter'](_0x528cfc=>!_0x37a5c9['has'](_0x528cfc)),_0x4c7678=new Map(_0xdf6e7a['map'](_0x5d6a69=>[_0x5d6a69,this['_suggestionFactory']['getSuggestionCallback'](_0x5d6a69['type'],_0x5d6a69['subType'],'join')])),_0x4dd3cb=new Map(_0x404072['map'](_0x2dae48=>[_0x2dae48,_0x2dae48['getRanges']()]));for(let _0x48de4c=0x0;_0x48de4c<_0xdf6e7a['length'];_0x48de4c++){if(_0x4e44f9(this,_0xdf6e7a[_0x48de4c],_0xdf6e7a,_0x48de4c+0x1))return!0x0;}for(let _0x1e5c40=0x0;_0x1e5c40<_0xdf6e7a['length'];_0x1e5c40++){if(_0x4e44f9(this,_0xdf6e7a[_0x1e5c40],_0x51e70a,0x0))return!0x0;}return!0x1;function _0x4e44f9(_0x50013b,_0x352080,_0x52b426,_0x378e4b){for(let _0x5b2cab=_0x378e4b;_0x5b2cab<_0x52b426['length'];_0x5b2cab++){const _0xfaf846=_0x52b426[_0x5b2cab];if(_0xfaf846['type']!==_0x352080['type']||_0xfaf846['author']['id']!==_0x352080['author']['id']||_0xfaf846['subType']!==_0x352080['subType'])continue;if(!Qt(_0x352080,_0xfaf846))continue;if('attribute'==_0x352080['type']&&_0x352080['data']['oldValue']!=_0xfaf846['data']['oldValue'])continue;if('attribute'==_0x352080['type']&&_0x50013b['_isBlockAttribute'](_0x352080['data']['key']))continue;if('formatBlock'==_0x352080['type']){const _0x4384a5=_0x50013b['editor']['model'],_0x122792=_0x352080['getContainedElement']();if(_0x122792&&(_0x4384a5['schema']['isObject'](_0x122792)||_0x4384a5['schema']['isLimit'](_0x122792)))continue;}const _0x310c2a=_0x4c7678['get'](_0x352080),_0x40eeeb=_0x4dd3cb['get'](_0x352080),_0x36e14b=_0x4dd3cb['get'](_0xfaf846),_0x51146d=_0x352080['commentThread']&&_0x352080['commentThread']['length'],_0x18bfaf=_0xfaf846['commentThread']&&_0xfaf846['commentThread']['length'];if(!_0x51146d&&_0x310c2a(_0x36e14b,_0x40eeeb))return _0x50013b['_joinSuggestions'](_0xfaf846,_0x352080),_0x4dd3cb['delete'](_0x352080),!0x0;if(!_0x18bfaf&&_0x310c2a(_0x40eeeb,_0x36e14b))return _0x50013b['_joinSuggestions'](_0x352080,_0xfaf846),_0x4dd3cb['delete'](_0xfaf846),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5a9548,_0xd5dd1a){if(_0x5a9548['isMultiRange']){for(const _0x162bd7 of _0xd5dd1a['getRanges']())_0x5a9548['addRange'](_0x162bd7);}else{const _0xed3d81=_0xd5dd1a['getFirstRange']()['end'];this['_setSuggestionRange'](_0x5a9548,this['_model']['createRange'](_0x5a9548['getFirstRange']()['start'],_0xed3d81));}_0xd5dd1a['removeMarkers']();}['_getMarkerAnnouncementText'](_0x39d3ea,_0x2e7ed4,_0x1ac6ac){const _0x1a1bad=_0x39d3ea['startsWith']('format')||_0x39d3ea['startsWith']('attribute')?'FORMATTING':_0x39d3ea['toUpperCase']();return o(this['editor']['locale'],_0x2e7ed4+'_'+_0x1a1bad+'_SUGGESTION_ANNOUNCEMENT',_0x1ac6ac);}['_initAriaMarkerChangeAnnouncements'](){const _0x18d81b=this['editor'];if(!_0x18d81b['ui'])return;const {ariaLiveAnnouncer:_0x733ba2}=_0x18d81b['ui'];_0x138ac1(this['_model'],({left:_0x268159,entered:_0x157563})=>{for(const _0x476e64 of _0x268159){const {group:_0x23ca7e,type:_0x1d0ded}=this['_splitMarkerName'](_0x476e64['name']);if('suggestion'===_0x23ca7e){_0x733ba2['announce'](this['_getMarkerAnnouncementText'](_0x1d0ded,'LEAVE'));break;}}for(const _0x37752a of _0x157563){const {group:_0xebaa13,type:_0x550ff3}=this['_splitMarkerName'](_0x37752a['name']);if('suggestion'===_0xebaa13){_0x733ba2['announce'](this['_getMarkerAnnouncementText'](_0x550ff3,'ENTER',_0x4b4605(_0x34aeec)));break;}}});}['_processAttributeChanges'](_0xc3e2d9){if(this['_recordAttributeSuggestions'])return!0x1;const _0x4e163b=this['editor'],_0x2c152b=_0x4e163b['model']['document']['differ']['getChanges']();if(0x0==_0x2c152b['length'])return!0x1;const _0x344618=[],_0x2566c5=_0x2c152b['filter'](_0x1a3c2e=>'attribute'==_0x1a3c2e['type']),_0x2bb979=_0x2c152b['filter'](_0x2905a4=>'insert'==_0x2905a4['type']&&'$text'!=_0x2905a4['name']),_0x3d4e81=_0x2c152b['filter'](_0xbf7cbd=>'remove'==_0xbf7cbd['type']&&'$text'!=_0xbf7cbd['name']);for(const _0x34fea4 of _0x2566c5)_0x344618['push']({'key':_0x34fea4['attributeKey'],'newValue':_0x34fea4['attributeNewValue'],'oldValue':_0x34fea4['attributeOldValue'],'range':qt(_0x34fea4['range'],_0x4e163b['model'])});for(const _0x208764 of _0x2bb979){const _0xcda360=_0x3d4e81['find'](_0x889be8=>_0x889be8['position']['isEqual'](_0x208764['position']));_0xcda360&&_0x344618['push']({'key':m,'newValue':_0x208764['name'],'oldValue':_0xcda360['name'],'range':_0x4e163b['model']['createRangeOn'](_0x208764['position']['nodeAfter'])});}return 0x0!=_0x344618['length']&&this['_reduceExistingSuggestions'](_0xc3e2d9,_0x344618);}['_processAttributeSuggestions'](_0x5e5001){let _0x524305=!0x1;const _0x75d2ee=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x444388=>_0x444388['data']['newRange']&&_0x444388['name']['startsWith']('suggestion:attribute:'));for(const _0xf12491 of _0x75d2ee){const {subType:_0xa1934e,id:_0x58a1e5}=this['_splitMarkerName'](_0xf12491['name']),_0x2d10c5=_0xa1934e['split']('|')[0x0];for(const _0x23c4b2 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x23c4b2['id']!=_0x58a1e5&&'attribute'==_0x23c4b2['type']&&_0x23c4b2['data']&&_0x23c4b2['data']['key']==_0x2d10c5&&_0x23c4b2['getFirstRange']()['isIntersecting'](_0xf12491['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x23c4b2,_0xf12491['data']['newRange'],_0x5e5001),_0x524305=!0x0);}return _0x524305;}['recordAttributeChanges'](_0x2d2405){this['_recordAttributeSuggestions']=!0x0,_0x2d2405();}['_isRegisteredAttribute'](_0x3a74ea){const _0x10225b=this['_isBlockAttribute'](_0x3a74ea),_0xb95f4d=this['_isInlineAttribute'](_0x3a74ea);return _0x10225b||_0xb95f4d;}['_reduceExistingSuggestions'](_0x122ed4,_0xdd8d11){if(0x0==_0xdd8d11['length'])return!0x1;let _0x1d15b1=!0x1;for(const _0x530008 of _0xdd8d11){const _0x58088a=this['_findSuggestions'](_0x530008['range'],'attribute')['filter'](_0x5b9c45=>!_0x5b9c45['meta']['isNextTo'])['map'](_0x5b4d35=>_0x5b4d35['suggestion']),_0x497810=_0x5d6409({'newValue':_0x530008['newValue']});_0x58088a['filter'](_0x5b2c14=>{const [_0x556c21,_0x50b74f]=_0x5b2c14['subType']['split']('|');return _0x556c21==_0x530008['key']&&_0x50b74f!=_0x497810;})['forEach'](_0x223b04=>{this['_reduceSuggestionAttributeRange'](_0x223b04,_0x530008['range'],_0x122ed4),_0x1d15b1=!0x0;});}return _0x1d15b1;}['_reduceSuggestionAttributeRange'](_0x330b3c,_0x1c5c97,_0x21e416){const _0x43503b=_0x330b3c['getFirstRange']()['getDifference'](_0x1c5c97);0x0!==_0x43503b['length']?0x1!==_0x43503b['length']?this['_breakSuggestionMarker'](_0x330b3c,_0x1c5c97['start'],_0x1c5c97['end']):this['_setSuggestionRange'](_0x330b3c,_0x43503b[0x0]):_0x21e416['removeMarker'](_0x330b3c['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x178b50){this['_editor']=_0x178b50,this['_model']=_0x178b50['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x163b49,_0xb13e1f,_0x1430b7,_0x2f53c1,_0xa384f7,_0x1c1fa6,_0x27f498){return new T(this['_model'],{'type':_0x163b49,'subType':_0xb13e1f,'id':_0x1430b7,'originalSuggestionId':_0x27f498,'author':_0x2f53c1,'creator':_0x2f53c1,'attributes':_0xa384f7,'onAttributesChange':_0x1c1fa6,'onAccept':(..._0xcf6bcc)=>this['getSuggestionCallback'](_0x163b49,_0xb13e1f,'accept')(..._0xcf6bcc),'onDiscard':(..._0x9a7905)=>this['getSuggestionCallback'](_0x163b49,_0xb13e1f,'discard')(..._0x9a7905)});}['registerCustomCallback'](_0x214c28,_0x4b66dd,_0x57ff17,_0x17bf67){const _0xc9bdd9=_0x214c28+':'+_0x4b66dd+':'+_0x57ff17;this['_customCallbacks']['set'](_0xc9bdd9,_0x17bf67);}['getSuggestionCallback'](_0x2bfd65,_0x49ee52,_0x263311){const _0x2f68af=_0x2bfd65+':'+_0x49ee52+':'+_0x263311;return this['_customCallbacks']['get'](_0x2f68af)||this['_defaultCallbacks']['get'](_0x2bfd65+':'+_0x263311);}['_registerDefaultCallbacks'](){const _0x45b147=()=>!0x1,_0xa39a13=_0x23d755=>{_0x23d755['sort']((_0x5bc8be,_0x38bad2)=>_0x5bc8be['start']['isBefore'](_0x38bad2['start'])?0x1:-0x1),this['_model']['change'](_0x588a13=>{for(const _0x4df9f4 of _0x23d755){let _0x53a2c5;_0x53a2c5=_0x4df9f4['end']['isAtEnd']&&_0x4df9f4['end']['parent']==_0x4df9f4['start']['nodeAfter']?_0x588a13['createSelection'](_0x4df9f4['start']['nodeAfter'],'on'):_0x588a13['createSelection'](_0x4df9f4),this['_model']['deleteContent'](_0x53a2c5,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x16853=(_0x2153d4,_0x5336ef)=>{_0x5336ef&&this['_model']['change'](_0x2a8edc=>{const {commandName:_0x31e77c,commandParams:_0x4e44d2=[]}=_0x5336ef,_0x5df41e=_0x2153d4['map'](_0x1c5df8=>(Pt(_0x1c5df8)&&(_0x1c5df8=this['_model']['createRange'](_0x1c5df8['end'])),_0x1c5df8))['filter'](_0xa9a418=>'$graveyard'!==_0xa9a418['root']['rootName']);if(_0x5df41e['length']<0x1)return;const _0x303c41=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x4dce49=>_0x41eab8['fromRange'](_0x4dce49));_0x2a8edc['setSelection'](_0x5df41e);for(const _0x517075 of this['_editor']['commands']['commands']())_0x517075['refresh']();_0x4e44d2['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x31e77c,..._0x4e44d2);const _0x54e6a3=_0x303c41['filter'](_0xbe78f2=>'$graveyard'!=_0xbe78f2['root']['rootName']);_0x54e6a3['length']>0x0&&_0x2a8edc['setSelection'](_0x54e6a3);for(const _0x38a258 of _0x303c41)_0x38a258['detach']();});},_0x4938a6=(_0x37a460,_0x3c5571)=>0x1==_0x37a460['length']&&0x1==_0x3c5571['length']&&_0x37a460[0x0]['end']['isEqual'](_0x3c5571[0x0]['start']),_0x580645=(_0x2feb90,_0xbf01e9,_0x567d20,_0x576cb2)=>Wt(_0x2feb90,_0xbf01e9,_0x567d20,_0x576cb2)?[_0x2feb90,_0xbf01e9]:Wt(_0xbf01e9,_0x2feb90,_0x576cb2,_0x567d20)?[_0xbf01e9,_0x2feb90]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x45b147),this['_defaultCallbacks']['set']('insertion:discard',_0xa39a13),this['_defaultCallbacks']['set']('insertion:join',_0x4938a6),this['_defaultCallbacks']['set']('insertion:chain',_0x580645),this['_defaultCallbacks']['set']('deletion:accept',_0xa39a13),this['_defaultCallbacks']['set']('deletion:discard',_0x45b147),this['_defaultCallbacks']['set']('deletion:join',_0x4938a6),this['_defaultCallbacks']['set']('deletion:chain',_0x580645),this['_defaultCallbacks']['set']('formatInline:accept',_0x16853),this['_defaultCallbacks']['set']('formatInline:discard',_0x45b147),this['_defaultCallbacks']['set']('formatInline:join',_0x4938a6),this['_defaultCallbacks']['set']('formatInline:chain',_0x45b147),this['_defaultCallbacks']['set']('formatBlock:accept',_0x16853),this['_defaultCallbacks']['set']('formatBlock:discard',_0x45b147),this['_defaultCallbacks']['set']('formatBlock:join',_0x4938a6),this['_defaultCallbacks']['set']('formatBlock:chain',_0x45b147),this['_defaultCallbacks']['set']('attribute:accept',_0x45b147),this['_defaultCallbacks']['set']('attribute:discard',(_0x2a04c2,_0x1c0665)=>{if(!_0x1c0665)return;const _0x469850=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x564f1d=>{if(_0x1c0665['key']==m)for(const _0x39ee35 of _0x2a04c2){const _0x4f5109=_0x39ee35['start']['nodeAfter'],_0x196ea2=_0x1c0665['oldValue'];_0x564f1d['rename'](_0x4f5109,_0x196ea2);}else{if(_0x469850['_isBlockAttribute'](_0x1c0665['key'])){for(const _0x485c38 of _0x2a04c2)void 0x0!==_0x1c0665['oldValue']?_0x564f1d['setAttribute'](_0x1c0665['key'],_0x1c0665['oldValue'],_0x485c38['start']['nodeAfter']):_0x564f1d['removeAttribute'](_0x1c0665['key'],_0x485c38['start']['nodeAfter']);}else{for(const _0xacd670 of _0x2a04c2)_0x1c0665['oldValue']?_0x564f1d['setAttribute'](_0x1c0665['key'],_0x1c0665['oldValue'],_0xacd670):_0x564f1d['removeAttribute'](_0x1c0665['key'],_0xacd670);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x4938a6);}}function Ft(_0x2b7903,_0x49980f,_0x5f08b6){for(const _0x1b5798 of _0x49980f['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x1b5798['root']==_0x1b5798)return!0x1;if(!_0x5f08b6['containsItem'](_0x1b5798))return!0x1;if(_0x2b7903['isObject'](_0x1b5798)||_0x2b7903['isLimit'](_0x1b5798))return!0x0;}return!0x1;}function Pt(_0x5e2615){return _0x5e2615['end']['parent']==_0x5e2615['start']['nodeAfter']&&_0x5e2615['end']['isAtStart'];}function Gt(_0x36db7a,_0x271e40,_0x1e2c31,_0x3d9fbb){const _0x138389=_0x22a313=>!_0x22a313['item']['is']('$textProxy')&&!_0x3d9fbb['isObject'](_0x22a313['item']),_0x8b1ad6=_0x36db7a['start']['getLastMatchingPosition'](_0x138389),_0x53a388=_0x36db7a['end']['getLastMatchingPosition'](_0x138389,{'direction':'backward'});return(!_0x36db7a['start']['isEqual'](_0x8b1ad6)||!_0x36db7a['end']['isEqual'](_0x53a388))&&(_0x8b1ad6['isBefore'](_0x53a388)?_0x1e2c31['updateMarker'](_0x271e40,{'range':_0x1e2c31['createRange'](_0x8b1ad6,_0x53a388)}):_0x1e2c31['removeMarker'](_0x271e40),!0x0);}function Lt(_0x2c6343){return _0x5d6409(_0x2c6343);}function Jt(_0x19bf45){const _0x45fb29=_0x19bf45['start']['nodeAfter'];return _0x45fb29&&_0x45fb29['is']('element');}function Kt(_0xac6904){return Pt(_0xac6904)||function(_0xecb189){return _0xecb189['start']['parent']==_0xecb189['end']['nodeBefore']&&_0xecb189['start']['isAtEnd'];}(_0xac6904);}function Ht(_0x41ea7d,_0x7592ea){try{const _0x4f52b0=_0x41ea7d['getRange']();for(const _0x4285b0 of _0x7592ea)if(_0x41ea7d!==_0x4285b0&&_0x4f52b0&&_0x4f52b0['isIntersecting'](_0x4285b0['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function qt(_0x25f83e,_0x4a13c6){return null==_0x25f83e['end']['nodeBefore']&&_0x25f83e['end']['parent']==_0x25f83e['start']['nodeAfter']?zt(_0x25f83e['start']['nodeAfter'],_0x4a13c6):_0x25f83e;}function zt(_0x26c1c5,_0x212e73){const _0x2bb9cd=_0x212e73['schema']['isObject'](_0x26c1c5)||_0x212e73['schema']['isSelectable'](_0x26c1c5);return _0x212e73['createRange'](_0x212e73['createPositionAt'](_0x26c1c5,'before'),_0x2bb9cd?_0x212e73['createPositionAfter'](_0x26c1c5):_0x212e73['createPositionAt'](_0x26c1c5,'end'));}function Wt(_0x17db31,_0x16801f,_0x55430f,_0xb633d0){return!!Qt(_0x17db31,_0x16801f)&&_0x55430f['end']['isEqual'](_0xb633d0['start']);}function Qt(_0x12e0b5,_0x2a4145){if(!_0x12e0b5['_isDataLoaded']||!_0x2a4145['_isDataLoaded'])return!0x1;const _0x379237=new Set(Object['keys'](_0x12e0b5['attributes'])),_0x33359a=new Set(Object['keys'](_0x2a4145['attributes']));if(_0x379237['delete']('groupId'),_0x33359a['delete']('groupId'),0x0==_0x379237['size']&&0x0==_0x33359a['size'])return!0x0;if(_0x379237['size']!=_0x33359a['size'])return!0x1;const _0x2459da={..._0x12e0b5['attributes']},_0x809fe5={..._0x2a4145['attributes']};return delete _0x2459da['groupId'],delete _0x809fe5['groupId'],JSON['stringify'](_0x2459da)==JSON['stringify'](_0x809fe5);}function Xt(_0x42ad34,_0x58ea35){const _0xd83361=Yt(_0x42ad34['attributes']),_0x485991=Yt(_0x58ea35);if(!_0x42ad34['_isDataLoaded'])return!0x1;for(const _0x210619 of Object['keys'](_0x485991))if(!_0x87d9f1(_0xd83361[_0x210619],_0x485991[_0x210619]))return!0x1;return!0x0;}function Yt(_0x3f7806){const _0x9b3c30=Object['assign']({},_0x3f7806);return delete _0x9b3c30['skipNestingCheck'],delete _0x9b3c30['tablePasteChainId'],_0x9b3c30;}class pe extends/* #__PURE__ -- @preserve */
26
+ _0x140e87(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x1066fc,_0x264c30,_0x594af8,_0x408c23){super(),this['model']=_0x264c30,this['view']=_0x594af8,this['commentThreadController']=_0x408c23,this['_editor']=_0x1066fc,this['_acceptCommand']=_0x1066fc['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x1066fc['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x486110,_0x341b0e)=>_0x486110||_0x341b0e),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0xe7f3f4=>_0xe7f3f4&&this['_editor']['model']['canEditAt'](_0x264c30['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x4ca2bf=>_0x4ca2bf&&this['_editor']['model']['canEditAt'](_0x264c30['getRanges']())),this['_pendingAction']=null,_0x594af8['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x594af8,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x594af8,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x594af8,'change:isDirty',()=>{_0x594af8['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 _0x531580=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x531580);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ti extends _0x1bb46f{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0xe8ebe4,_0x246793,_0x2028b,_0x50c113){super(_0xe8ebe4),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x3249ce(_0xe8ebe4,o(_0xe8ebe4,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x246793['authoredAt']),this['bind']('authoredAt')['to'](_0x246793),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',_0x246793,'authoredAt',this,'descriptionParts',(_0x435c95,_0x26358d,_0x25fa06)=>{const _0x16eef7=_0x25fa06['map'](_0x36892a=>ls(_0x36892a['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x435c95-0x1,_0x246793['author']['name'],_0x26358d?_0x50c113['formatDateTime'](_0x26358d):'',new DOMParser()['parseFromString'](_0x16eef7,'text/html')['body']['textContent']]);}),this['focusables']=new _0x2d0e77(),this['focusTracker']=new _0x4a86af(),this['keystrokes']=new _0x576847(),this['focusCycler']=new _0x26c407({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x126a6a=>_0x126a6a['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x246793,this['_localUser']=_0x2028b,this['_config']=_0x50c113,_0x50c113['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x388fe0(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x537aa1}=this['_config'];this['commentsListView']=new _0x537aa1(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',_0x110c85=>_0x110c85+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x51014a,_0x2f9885)=>_0x51014a||!!_0x2f9885);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x33ed42}=this['_config'],_0x4eb87a=new _0x33ed42(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3a8025=_0x4eb87a['commentInputView'];return _0x4eb87a['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3a8025,'value',(_0x306298,_0x2fa615,_0x14e86e)=>!!_0x14e86e||_0x306298&&!_0x2fa615),_0x3a8025['on']('submit',(_0x3b6f49,_0x26411d)=>{this['fire']('addComment',_0x26411d),_0x3a8025['editor']['setData']('');}),_0x3a8025['on']('cancel',()=>this['focus']()),_0x3a8025['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4eb87a;}}class fe extends ti{['suggestionView'];['_descriptionElement'];constructor(_0x44c8b9,_0x473fb0,_0x21620d,_0x214d1f){super(_0x44c8b9,_0x473fb0,_0x21620d,_0x214d1f),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0xf66add=>_0xf66add&&_0xf66add[0x0]?_0xf66add[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x5bcc58,_0x5f2fe6)=>{let _0x3d6dae='';for(const _0x515485 of _0x5bcc58)_0x3d6dae+='<p>'+ls(_0x515485['content'],_0x515485['color'])+'</p>';return _0x5f2fe6?_0x3d6dae:_0x473cb5(_0x3d6dae,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x214d1f['SuggestionView'](_0x44c8b9,_0x473fb0,{'formatDateTime':_0x214d1f['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 _0x403128=this['bindTemplate'],_0x3472db=[this['suggestionView']];return this['commentsListView']&&_0x3472db['push'](this['commentsListView']),this['commentThreadInputView']&&_0x3472db['push'](this['commentThreadInputView']),_0x3472db['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x403128['if']('isActive','ck-suggestion-wrapper--active'),_0x403128['to']('type',_0x2c56e6=>'ck-suggestion-'+_0x2c56e6),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':_0x403128['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x3472db};}['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 _0x1bb46f{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x3ace53,_0x331bc4,_0x1bfcb2){super(_0x3ace53),this['_model']=_0x331bc4,this['_config']=_0x1bfcb2,this['set']('description',''),this['bind']('authoredAt')['to'](_0x331bc4),this['acceptButton']=this['_createButton'](o(_0x3ace53,'Accept\x20suggestion'),_0x2e09ca,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x3ace53,'Discard\x20suggestion'),_0x144297,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0xf21a6b(_0x3ace53,_0x331bc4['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x2d0e77([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x4a86af(),this['keystrokes']=new _0x576847(),this['focusCycler']=new _0x26c407({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x4eb28c=>_0x4eb28c['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0xb456b7=this['element']['querySelector']('.ck-annotation__content-wrapper');_0xb456b7['innerHTML']=this['description'],this['on']('change:description',(_0x2600e2,_0x364fb,_0x23bb73)=>{_0xb456b7['innerHTML']=_0x23bb73;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0xb94fa8=this['bindTemplate'],_0x398d58=[{'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':_0xb94fa8['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0xb94fa8['to']('authoredAt',_0x1e1a0b=>this['_config']['formatDateTime'](_0x1e1a0b))}]}]},{'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']&&_0x398d58['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':_0x398d58}]};}['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'](_0x179b28,_0x4d504e,_0x4cc262,_0x30abc3,_0x5eeccd){const _0x15cd61=new _0x6ee236(this['locale']);return _0x15cd61['set']({'label':_0x179b28,'icon':_0x4d504e,'tooltip':!0x0,'tooltipPosition':_0x5eeccd}),_0x15cd61['extendTemplate']({'attributes':{'class':_0x4cc262}}),_0x15cd61['on']('execute',()=>{this['fire'](_0x30abc3,this['_model']['id']);}),_0x15cd61;}['_setupKeyboardNavigation'](){const _0x23e6ae=this['element'];this['keystrokes']['listenTo'](_0x23e6ae);for(const _0x1df32a of this['focusables'])this['focusTracker']['add'](_0x1df32a['element']),this['keystrokes']['listenTo'](_0x1df32a['element']);this['keystrokes']['set']('enter',(_0x5b86b5,_0x96b80c)=>{_0x23e6ae===_0x5b86b5['target']&&(this['focusCycler']['focusFirst'](),_0x96b80c());}),this['keystrokes']['set']('esc',(_0x443d65,_0x2580c9)=>{_0x23e6ae!==_0x443d65['target']&&(this['focus'](),_0x2580c9());});}}class u extends _0x43125c{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x1d0ab4,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x33072e){super(_0x33072e),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x28b131=this['editor']['config'];_0x28b131['define']('trackChanges.SuggestionThreadView',fe),_0x28b131['define']('trackChanges.SuggestionView',we),_0x28b131['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x28b131['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0xc94bb5,_0xd1dfc8){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x129622,_0x5a72ed]of this['_handleControllerBuffer']){const _0x2d611f=this['_suggestionToController']['has'](_0x129622);_0x2d611f||_0x5a72ed?_0x2d611f&&_0x5a72ed&&this['_destroyController'](_0x129622):this['_initializeController'](_0x129622);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0xc94bb5,_0xd1dfc8);}['init'](){const _0x2b0a74=this['editor'],_0x4652b5=_0x2b0a74['plugins']['get']('TrackChangesEditing'),_0x380cc3=_0x2b0a74['plugins']['get']('Annotations'),_0x353529=_0x2b0a74['plugins']['get']('EditorAnnotations'),_0x4ab87e=_0x2b0a74['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x353529['addSourceCollector'](()=>{const _0x223c2b=[];for(const [_0x3f518b,_0x328b70]of Array['from'](this['_suggestionToController'])){const _0x49a56d=_0x3f518b['getAllAdjacentSuggestions'](),_0x49d8c1=[];for(const _0x28f9b6 of _0x49a56d){if(!_0x28f9b6['isInContent'])continue;if(_0x28f9b6['isMultiRange']){_0x49d8c1['push'](..._0x28f9b6['getRanges']());continue;}const _0x10ea4e=_0x28f9b6['getFirstRange']();if(_0x49d8c1['length']>0x0){const _0x320fa8=_0x49d8c1[0x0]['getJoined'](_0x10ea4e);if(_0x320fa8){_0x49d8c1[0x0]=_0x320fa8;continue;}}_0x49d8c1['push'](_0x10ea4e);}_0x223c2b['push']([_0x328b70['view'],_0x49d8c1]);}return _0x223c2b;}),this['listenTo'](_0x4652b5,'suggestionLoaded',(_0x4fec44,_0x392af7)=>{this['listenTo'](_0x392af7,'change:previous',(_0x18e246,_0x4b3f2b,_0x3e342b,_0x299ad9)=>{_0x392af7['isInContent']&&(null==_0x3e342b?(this['_updateController'](_0x299ad9['head']),this['_handleSuggestionControllerDelayed'](_0x392af7,!0x1)):(this['_updateController'](_0x3e342b['head']),null==_0x299ad9&&this['_handleSuggestionControllerDelayed'](_0x392af7,!0x0)));}),null!==_0x392af7['previous']?this['_updateController'](_0x392af7['head']):this['_handleSuggestionControllerDelayed'](_0x392af7,!0x1);}),this['listenTo'](_0x4652b5,'suggestionUnloaded',(_0x3999e5,_0x966241,_0x7301a2)=>{this['stopListening'](_0x966241,'change:previous'),this['_handleControllerBuffer']['delete'](_0x966241),this['_suggestionToController']['has'](_0x966241)&&this['_destroyController'](_0x966241),_0x7301a2&&this['_updateController'](_0x7301a2['head']);}),this['listenTo'](_0x4652b5,'suggestionChanged',(_0x2eaae9,_0xbb5fc8)=>{this['_updateController'](_0xbb5fc8);}),this['listenTo'](_0x380cc3,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x4ab87e,'addComment',(_0x475df0,{threadId:_0x3c4933,isFromAdapter:_0x5d9af0})=>{if(_0x5d9af0||!_0x4652b5['hasSuggestion'](_0x3c4933))return;const _0x2fdb25=_0x4652b5['getSuggestion'](_0x3c4933);this['_suggestionToController']['get'](_0x2fdb25)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x16214e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x20e6bc;for(const _0x43699b in _0x16214e){const _0x16943d=_0x43699b,_0x37c0e7=_0x16214e[_0x16943d];if('trackChangesLicenseKeyValid'==_0x37c0e7||'trackChangesLicenseKeyInvalid'==_0x37c0e7||'trackChangesLicenseKeyExpired'==_0x37c0e7||'trackChangesLicenseKeyDomainLimit'==_0x37c0e7||'trackChangesLicenseKeyNotAllowed'==_0x37c0e7||'trackChangesLicenseKeyEvaluationLimit'==_0x37c0e7||'trackChangesLicenseKeyTrialLimit'==_0x37c0e7||'trackChangesLicenseKeyUsageLimit'==_0x37c0e7){delete _0x16214e[_0x16943d],_0x20e6bc=_0x37c0e7,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x20e6bc&&_0x16214e['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x20e6bc&&_0x16214e['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x20e6bc&&_0x16214e['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x20e6bc&&_0x16214e['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x20e6bc&&_0x16214e['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x20e6bc&&_0x16214e['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x20e6bc&&_0x16214e['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0xd2a11){const _0x39b519=this['_suggestionToController']['get'](_0xd2a11);if(!_0x39b519)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x39b519['view'])||null;}['getSuggestionForAnnotation'](_0x54e440){const _0x352d91=this['_viewToController']['get'](_0x54e440['innerView']);return _0x352d91?_0x352d91['model']:null;}['_refreshActiveMarkers'](){const _0x1add41=this['editor']['plugins']['get']('Annotations'),_0x4ee21b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5bba09=Array['from'](_0x1add41['activeAnnotations'],_0x1b5ba2=>_0x1b5ba2['innerView'])['filter'](_0x4334ae=>this['_viewToController']['has'](_0x4334ae)),_0x510040=[];for(const _0x5a950b of _0x5bba09){const _0x12369c=this['_viewToController']['get'](_0x5a950b)['model']['getAllAdjacentSuggestions']();_0x510040['push'](..._0x12369c['reduce']((_0x544681,_0x405a3a)=>[..._0x544681,..._0x405a3a['getMarkerNames']()],[]));}_0x4ee21b['activeMarkers']=_0x510040;}['_addUIComponentsToFactory'](){const _0x2daf44=this['editor'],_0xc5bb19=_0x2daf44['locale'],_0x10fe7e=o(_0xc5bb19,'Track\x20changes'),_0x411ec7=new _0x1c49aa([{'type':'switchbutton','model':new _0x365c84({'withText':!0x0,'isToggleable':!0x0,'label':_0x10fe7e,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x365c84({'withText':!0x0,'label':o(_0xc5bb19,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x365c84({'withText':!0x0,'label':o(_0xc5bb19,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x365c84({'withText':!0x0,'label':o(_0xc5bb19,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x365c84({'withText':!0x0,'label':o(_0xc5bb19,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x2daf44['plugins']['has']('TrackChangesPreview')&&_0x411ec7['addMany']([{'type':'separator'},{'type':'button','model':new _0x365c84({'withText':!0x0,'label':o(_0xc5bb19,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x1419ac of _0x411ec7)if(ke(_0x1419ac)){const _0x297f2b=_0x2daf44['commands']['get'](_0x1419ac['model']['commandName']);_0x1419ac['model']['bind']('isOn','isEnabled')['to'](_0x297f2b,'value','isEnabled');}_0x2daf44['ui']['componentFactory']['add']('trackChanges',_0x4e1829=>this['_createToolbarButton'](_0x4e1829,_0x411ec7,_0x10fe7e)),_0x2daf44['ui']['componentFactory']['add']('menuBar:trackChanges',_0x3e3891=>this['_createMenuBarMenu'](_0x3e3891,_0x411ec7,_0x10fe7e));}['_createToolbarButton'](_0x5039f5,_0x3572c7,_0xf1567c){const _0x23dcd8=_0x4597e0(_0x5039f5,_0x28f8c2),_0x59d52f=this['editor']['commands']['get']('trackChanges');_0x23dcd8['buttonView']['set']({'tooltip':_0xf1567c,'label':_0xf1567c,'icon':_0xb7972f}),_0x23dcd8['buttonView']['bind']('isOn')['to'](_0x59d52f,'value'),_0x23dcd8['buttonView']['on']('execute',()=>{_0x59d52f['execute'](),this['editor']['editing']['view']['focus']();}),_0x1099fb(_0x23dcd8,_0x3572c7,{'role':'menu'});const _0x1fd6de=[];for(const _0x35ffdf of _0x3572c7)ke(_0x35ffdf)&&_0x1fd6de['push'](this['editor']['commands']['get'](_0x35ffdf['model']['commandName']));const _0x2991da=_0x23dcd8['buttonView'];return _0x2991da['actionView']['unbind']('isEnabled'),_0x2991da['arrowView']['unbind']('isEnabled'),_0x2991da['actionView']['bind']('isEnabled')['to'](_0x59d52f,'isEnabled'),_0x2991da['arrowView']['bind']('isEnabled')['toMany'](_0x1fd6de,'isEnabled',(..._0x435a48)=>_0x435a48['some'](_0x17c728=>_0x17c728)),_0x23dcd8['on']('execute',_0x242bd1=>{this['editor']['execute'](_0x242bd1['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x23dcd8;}['_createMenuBarMenu'](_0x1fcbbd,_0x378e99,_0x1561cc){const _0x2bd0ad=new _0x402b0c(_0x1fcbbd),_0x35bd23=this['editor']['commands']['get']('trackChanges');_0x2bd0ad['buttonView']['set']({'label':_0x1561cc,'icon':_0xb7972f});const _0x8cc4e6=new _0x415197(_0x1fcbbd);for(const _0xb3e8e9 of _0x378e99){if('separator'==_0xb3e8e9['type']){_0x8cc4e6['items']['add'](new _0x2e2fb9(_0x1fcbbd));continue;}const _0x162377=new _0x4cbc09(_0x1fcbbd,_0x2bd0ad),_0x43db5b=new _0x2aea59(_0x1fcbbd),_0x49561b=_0xb3e8e9['model'];_0x43db5b['bind'](...Object['keys'](_0x49561b))['to'](_0x49561b),_0x43db5b['delegate']('execute')['to'](_0x2bd0ad),_0x43db5b['on']('execute',()=>{this['editor']['execute'](_0x49561b['commandName']),this['editor']['editing']['view']['focus']();}),_0x162377['children']['add'](_0x43db5b),_0x8cc4e6['items']['add'](_0x162377);}return _0x2bd0ad['bind']('isEnabled')['to'](_0x35bd23,'isEnabled'),_0x2bd0ad['panelView']['children']['add'](_0x8cc4e6),_0x2bd0ad;}['_initializeController'](_0x19fa34){const _0x1af3ad=this['editor'],_0x2725d4=_0x1af3ad['config'],_0x5cfa1f=_0x1af3ad['plugins']['get']('Annotations'),_0xd1ffea=_0x1af3ad['plugins']['get']('CommentsRepository'),_0x56c747=_0x1af3ad['plugins']['get']('EditorAnnotations'),_0x1a1d96=_0x1af3ad['plugins']['get'](_0x1d0ab4)['me'],_0x5590e4=_0x2725d4['get']('trackChanges')['SuggestionThreadView'],_0x4951df=_0x2725d4['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x3331b7,CommentThreadInputView:_0x27f8da}=_0x1af3ad['plugins']['get']('CommentsUI');let _0x3bdb8c,_0x32bbc7,_0x3a1594;this['_annotationViews']['has'](_0x19fa34['id'])?(_0x32bbc7=this['_annotationViews']['get'](_0x19fa34['id']),_0x3bdb8c=_0x32bbc7['mainView']):(_0x3bdb8c=new _0x5590e4(_0x1af3ad['locale'],_0x19fa34,_0x1a1d96,{'disableComments':this['_disableComments'],'editorConfig':{..._0x2725d4['get']('comments.editorConfig'),'licenseKey':_0x2725d4['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x2725d4['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x2725d4['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x2725d4['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x31bbf6(_0x2725d4['get']('locale'),_0x1af3ad['locale']),'CommentView':_0x2725d4['get']('comments')['CommentView'],'CommentsListView':_0x3331b7,'CommentThreadInputView':_0x27f8da,'SuggestionView':_0x4951df}),_0x3bdb8c['suggestionView']['acceptButton']['on']('execute',()=>{_0x1af3ad['editing']['view']['focus']();}),_0x3bdb8c['suggestionView']['discardButton']['on']('execute',()=>{_0x1af3ad['editing']['view']['focus']();}),_0x32bbc7=_0x5cfa1f['createAnnotationView'](this['editor']['locale'],_0x3bdb8c),_0x32bbc7['bind']('isDirty')['to'](_0x3bdb8c,'isDirty'),_0x32bbc7['bind']('length')['to'](_0x3bdb8c),_0x32bbc7['bind']('type')['to'](_0x3bdb8c,'type',_0x193de4=>'suggestion-'+_0x193de4),_0x3bdb8c['on']('escape',()=>{_0x3a1594['fire']('escape');}),this['_annotationViews']['set'](_0x19fa34['id'],_0x32bbc7));const _0x3a3f3d=_0xd1ffea['createCommentThreadController'](_0x19fa34['commentThread'],_0x3bdb8c),_0x16a1ae=new pe(_0x1af3ad,_0x19fa34,_0x3bdb8c,_0x3a3f3d),_0x4c0890=_0x19fa34['getAllAdjacentSuggestions']()['filter'](_0x17c4e9=>_0x17c4e9['isInContent']);_0x3bdb8c['descriptionParts']=_0x1af3ad['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x4c0890),this['_suggestionToController']['set'](_0x19fa34,_0x16a1ae),this['_viewToController']['set'](_0x3bdb8c,_0x16a1ae);const _0x1e0c24=()=>{const _0xafd9a9=[],_0x12360e=_0x19fa34['getAllAdjacentSuggestions']()['filter'](_0x4946ee=>_0x4946ee['isInContent']);for(const _0x190a75 of _0x12360e)_0xafd9a9['push'](..._0x190a75['getMarkers']());return _0x22629a(_0x1af3ad['editing'],_0xafd9a9);};_0x3a1594=_0x5cfa1f['createAnnotation']({'view':_0x32bbc7,'target':_0x1e0c24,'type':()=>'suggestion-'+_0x16a1ae['view']['type'],'isVisible':!!_0x1e0c24()}),_0xd1ffea['_bindAnnotationToEditors'](_0x3bdb8c,_0x3a1594),_0x5cfa1f['add'](_0x3a1594),_0x56c747['registerAnnotation'](_0x3a1594);}['_destroyController'](_0x6bb833){const _0x2a5cc3=this['editor']['plugins']['get']('CommentsRepository'),_0x284f63=this['editor']['plugins']['get']('Annotations'),_0x13be98=this['_suggestionToController']['get'](_0x6bb833),_0x3ad543=_0x13be98['view'],_0x59d15c=_0x284f63['getByInnerView'](_0x3ad543);_0x2a5cc3['_unbindEditors'](_0x3ad543),_0x59d15c&&_0x284f63['remove'](_0x59d15c),this['_suggestionToController']['delete'](_0x6bb833),this['_viewToController']['delete'](_0x3ad543),_0x13be98['destroy']();}['_updateController'](_0x16a3c5){if(!_0x16a3c5['isInContent']||!this['_suggestionToController']['has'](_0x16a3c5))return;const _0x199183=this['editor']['plugins']['get']('TrackChangesEditing'),_0xcb71d8=this['_suggestionToController']['get'](_0x16a3c5),_0x599912=_0x16a3c5['getAllAdjacentSuggestions']();_0xcb71d8['view']['descriptionParts']=_0x199183['descriptionFactory']['getDescriptions'](_0x599912);}['destroy'](){for(const _0x355c8e of this['_suggestionToController']['keys']())this['_destroyController'](_0x355c8e);for(const _0x50a05f of this['_annotationViews']['values']())_0x50a05f['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x176f2b){return'model'in _0x176f2b;}class Fe extends _0x43125c{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x31093b){this['editor']['plugins']['get'](d)['adapter']=_0x31093b;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x18d098){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x18d098);}['getSuggestions']({skipNotAttached:_0x37c341=!0x1,toJSON:_0x32a2c1=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x37c341,'toJSON':_0x32a2c1});}['getSuggestion'](_0x5cf9cd){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x5cf9cd);}}const p=['Pagination'];class re extends _0x43125c{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x33fed5=this['editor'];if(_0x33fed5['config']['define']('trackChangesData.editorCreator',_0x3f4caf=>{const _0x1005e8=_0x33fed5['model']['document']['getRootNames']()['reduce']((_0x5b3d97,_0xd4f6a8)=>(_0x5b3d97[_0xd4f6a8]='',_0x5b3d97),{});return _0x33fed5['constructor']['create'](_0x1005e8,_0x3f4caf);}),'function'!=typeof _0x33fed5['config']['get']('trackChangesData')['editorCreator'])throw new _0x484d49('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x8cb14c){return P(this['editor'],!0x0,_0x8cb14c);}['getDataWithDiscardedSuggestions'](_0x28ad10){return P(this['editor'],!0x1,_0x28ad10);}}class Ge extends _0x43125c{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2be4f7){function _0x374ca3(_0x565723){return _0x565723['map'](_0x2ef298=>String['fromCharCode'](_0x2ef298))['join']('');}super(_0x2be4f7),this['result']='end',_0x2be4f7[_0x374ca3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x374ca3([0x76,0x69,0x65,0x77])][_0x374ca3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x374ca3([0x61,0x75,0x74,0x6f]),_0x2be4f7[_0x374ca3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x374ca3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x374ca3([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x374ca3([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x374ca3([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 He(_0x596ade){return void 0x0!==_0x596ade['getRootsAttributes'];}async function P(_0x4b63a5,_0x1ca919,_0x2e3f2e){const _0x27e365=_0x250a15(_0x4b63a5,p);_0x27e365['plugins']['push'](d,Ge),_0x27e365['rootsAttributes']=He(_0x4b63a5)?_0x4b63a5['getRootsAttributes']():void 0x0;const _0x5cb21d=document['createDocumentFragment'](),_0x1b3090=_0x4b63a5['config']['get']('trackChangesData')['editorCreator'],_0x5cd37d=await _0x1b3090(_0x27e365,()=>function(_0xf470ee){const _0x54acda=document['createElement']('div');return _0xf470ee['appendChild'](_0x54acda),_0x54acda;}(_0x5cb21d));!function(_0x232083,_0x4dafc0){const _0x210f0a=_0x232083['model']['document']['getRootNames']()['reduce']((_0x5e8252,_0x3c03d6)=>(_0x5e8252[_0x3c03d6]=_0x232083['data']['get']({'rootName':_0x3c03d6}),_0x5e8252),{}),_0x26d4a7=_0x232083['plugins']['get']('Users')['users']['map'](_0x266716=>({'id':_0x266716['id'],'name':_0x266716['name']})),_0x29ebb8=_0x232083['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x550e85=_0x232083['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x10afdf=_0x4dafc0['plugins']['get']('Users'),_0xa81c63=_0x4dafc0['plugins']['get']('TrackChangesEditing'),_0x81d739=_0x4dafc0['plugins']['get']('CommentsRepository');for(const _0x5d958b of _0x81d739['getCommentThreads']())_0x5d958b['remove']();for(const _0x35a700 of _0x26d4a7)_0x10afdf['getUser'](_0x35a700['id'])||_0x10afdf['addUser'](_0x35a700);_0x10afdf['me']||_0x10afdf['useAnonymousUser']();for(const _0x5b419f of _0x550e85)_0x81d739['addCommentThread'](_0x5b419f);for(const _0x2d27a2 of _0x29ebb8)_0xa81c63['addSuggestionData'](_0x2d27a2);_0x4dafc0['data']['set'](_0x210f0a);}(_0x4b63a5,_0x5cd37d),_0x5cd37d['execute'](_0x1ca919?'acceptAllSuggestions':'discardAllSuggestions');const _0x2669ef=He(_0x5cd37d)?_0x5cd37d['getFullData'](_0x2e3f2e):_0x5cd37d['data']['get'](_0x2e3f2e);return await _0x5cd37d['destroy'](),_0x2669ef;}class Me extends _0x1bb46f{['options'];constructor(_0x2c6a74,_0x3ddcba){super(_0x2c6a74),this['options']=_0x3ddcba,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'](_0x1ce5a1,_0x40dac8){if(!this['element'])return;const _0x15e76e=[];for(const [_0x374dbd,_0x47256a]of _0x1ce5a1){const _0x59a049=document['createElement']('div');_0x59a049['setAttribute']('data-ck-root-name',_0x374dbd),_0x59a049['className']=_0x47256a['classes']+'\x20ck-track-changes-preview__root-container',_0x59a049['innerHTML']=_0x47256a['content'],_0x15e76e['push'](_0x59a049);}_0x40dac8(this['element'],_0x15e76e),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x451a00{constructor(_0x3cd681){super(_0x3cd681),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x14fd5d=this['editor'],_0x493678=_0x14fd5d['locale'],_0x4aacf5=_0x14fd5d['plugins']['get']('Dialog');let _0x5e170c;const _0x542b2e=function(_0x56af29){const _0x57c202={};if('editables'in _0x56af29['ui']['view']){for(const [_0x57dedf,_0x74377e]of Object['entries'](_0x56af29['ui']['view']['editables']))_0x57c202[_0x57dedf]=_0x74377e['element'];}else _0x57c202[_0x56af29['model']['document']['getRootNames']()[0x0]]=_0x56af29['ui']['view']['editable']['element'];return _0x57c202;}(_0x14fd5d),_0x18cbb0=function(_0x1177bc){let _0x169b90=0x0;for(const _0x542e39 of Object['values'](_0x1177bc))_0x169b90=Math['max'](_0x169b90,_0x542e39['getBoundingClientRect']()['width']);let _0xaf2aff=0x0;for(const _0x3636d9 of Object['values'](_0x1177bc))_0xaf2aff+=_0x3636d9['getBoundingClientRect']()['height'];const _0x50cfa6=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x599dd5=Math['min'](_0xaf2aff,_0x50cfa6);return{'width':_0x169b90,'height':_0x599dd5};}(_0x542b2e);_0x4aacf5['show']({'id':'finalContentPreview','title':o(_0x493678,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x493678,{'dialogRects':_0x18cbb0}),'onHide':()=>{_0x5e170c['detachFromDom']();},'onShow':()=>{_0x14fd5d['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x4fa245=>{const _0x26b225=this['_standarizeRootsData'](_0x4fa245,_0x14fd5d,_0x542b2e);_0x4aacf5['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x26b225,_0x14fd5d['config']['get']('trackChanges.preview.renderFunction'));}),_0x5e170c=new _0x3cdf0c(_0x493678,[_0x4aacf5['view']]),_0x5e170c['attachToDom'](),_0x5e170c['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x14fd5d['once']('destroy',()=>{_0x5e170c['detachFromDom']();});const _0x696934=_0x4aacf5['view']['headerView']['class'];_0x4aacf5['view']['headerView']['class']=_0x696934?_0x696934+'\x20ck-reset_all':'ck-reset_all',_0x4aacf5['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x4aacf5['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x5b7692=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x480bfe=_0x5b7692['previewMode'],_0x47f294={};if('$labels'===_0x480bfe){for(const _0xeb3d01 of _0x5b7692['getMergeFieldsIds']())_0x47f294[_0xeb3d01]=_0x5b7692['getLabel'](_0xeb3d01)||_0xeb3d01;}else{const _0x421c30='$defaultValues'===_0x480bfe?_0x5b7692['getDefaultValues']():_0x5b7692['getDataSetValues'](_0x480bfe,!0x0);for(const _0x39f8ec of Object['entries'](_0x421c30)){const [_0x1b22c4,_0x276588]=_0x39f8ec;_0x47f294[_0x1b22c4]=null!==_0x276588?_0x276588:_0x5b7692['getLabel'](_0x1b22c4)||_0x1b22c4;}}return{'mergeFieldsData':_0x47f294};}['_standarizeRootsData'](_0x2420b6,_0x24fd6f,_0x448e86){let _0x2fc4ec;if('string'==typeof _0x2420b6){const _0x34932a=_0x24fd6f['model']['document']['getRootNames']()[0x0];_0x2fc4ec={[_0x34932a]:_0x2420b6};}else _0x2fc4ec=_0x2420b6;const _0x43e6c5=this['_fixMediaEmbeds'](_0x2fc4ec,_0x24fd6f),_0x8a0cbe=function(_0x2ea5a0,_0x1bd459){for(const [_0x141836,_0x617cde]of _0x2ea5a0)_0x617cde['classes']=_0x1bd459[_0x141836]['classList']['value']['replace']('ck-focused','');return _0x2ea5a0;}(this['_sortRoots'](_0x24fd6f)['reduce']((_0x4a5feb,_0xb9faa1)=>(_0x4a5feb['push']([_0xb9faa1,{'content':_0x43e6c5[_0xb9faa1],'classes':''}]),_0x4a5feb),[]),_0x448e86);return _0x8a0cbe;}['_fixMediaEmbeds'](_0x23f4f0,_0x22a0d7){if(!_0x22a0d7['plugins']['has']('MediaEmbedEditing'))return _0x23f4f0;const _0x5d2025=_0x22a0d7['plugins']['get']('MediaEmbedEditing');for(const [_0x32370c,_0xe09e90]of Object['entries'](_0x23f4f0)){const _0x548454=document['createElement']('div');_0x548454['innerHTML']=_0xe09e90,(_0x548454['querySelectorAll']('figure.media')['forEach'](_0x3bf00b=>{const _0x3e0318=_0x3bf00b['querySelector']('oembed');if(_0x3e0318){const _0x449d45=_0x3e0318['getAttribute']('url');if(_0x449d45){const _0x950de6=_0x5d2025['registry']['getMediaViewElement'](new _0x258a54(_0x22a0d7['editing']['view']['document']),_0x449d45,{'elementName':'','renderForEditingView':!0x0}),_0xe8c69e=document['createElement']('div');_0xe8c69e['classList']['add']('ck-media__wrapper'),_0x950de6['render'](_0xe8c69e,_0x22a0d7['editing']['view']['domConverter']),_0x3e0318['replaceWith'](_0xe8c69e);}}}),_0x23f4f0[_0x32370c]=_0x548454['innerHTML']);}return _0x23f4f0;}['_sortRoots'](_0x20761c){if(!function(_0x462b7f){return void 0x0!==_0x462b7f['getRootsAttributes'];}(_0x20761c))return _0x20761c['model']['document']['getRootNames']();const _0xbdf1fb=[],_0x18edcb=new Map();for(const _0x21b259 of _0x20761c['model']['document']['getRootNames']()){const _0x430c93=_0x20761c['editing']['view']['getDomRoot'](_0x21b259)['getClientRects']()['item'](0x0);_0xbdf1fb['push'](_0x21b259),_0x18edcb['set'](_0x21b259,_0x430c93);}return _0xbdf1fb['sort']((_0x50653e,_0x436d9f)=>{const _0x181a55=_0x18edcb['get'](_0x50653e),_0x1a7cf7=_0x18edcb['get'](_0x436d9f);return _0x181a55['y']-_0x1a7cf7['y']||_0x181a55['x']-_0x1a7cf7['x'];}),_0xbdf1fb;}}class $e extends _0x43125c{static get['requires'](){return[re,_0x4dc1fa];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1b7e2f){super(_0x1b7e2f),_0x1b7e2f['commands']['add']('previewFinalContent',new te(this['editor'])),_0x1b7e2f['config']['define']('trackChanges.preview.renderFunction',(_0x562bf3,_0x242372)=>{for(const _0x5c12de of _0x242372)_0x562bf3['appendChild'](_0x5c12de);});}}export{D as AcceptSuggestionCommand,ti as BaseSuggestionThreadView,$ as DiscardSuggestionCommand,M as ExecuteOnAllSuggestionsCommand,B as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,x as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Fe as TrackChanges,N as TrackChangesCommand,re as TrackChangesData,Ge as TrackChangesDataGetter,d as TrackChangesEditing,$e as TrackChangesPreview,u as TrackChangesUI};