@ckeditor/ckeditor5-track-changes 46.0.1-alpha.9 → 46.0.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 _0x5401d4,Plugin as _0x787ffb,PendingActions as _0xfb545}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x4c1421,ObservableMixin as _0x47df2e,uid as _0x542cda,priorities as _0x150ca2,insertToPriorityArray as _0x26bf89,toArray as _0x4e5180,logWarning as _0x4dcb27,getEnvKeystrokeText as _0x96d228,FocusTracker as _0x284a32,KeystrokeHandler as _0x427729,Collection as _0x386f99}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x540928,IconCancel as _0x341599,IconTrackChanges as _0x39e2ae}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x306949,View as _0x489d93,ViewCollection as _0x15618c,FocusCycler as _0x2d1b59,UIModel as _0x2511a9,createDropdown as _0x58db3f,SplitButtonView as _0x244170,addListToDropdown as _0x3b866c,MenuBarMenuView as _0x584a12,MenuBarMenuListView as _0x1a63c8,ListSeparatorView as _0x2f3de4,MenuBarMenuListItemView as _0x44c426,MenuBarMenuListItemButtonView as _0x5d845f,BodyCollection as _0x5f4260,Dialog as _0x719633}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x87368d,hashObject as _0x20b0ec,surroundingMarkersDetector as _0x5d8882,FOCUS_ANNOTATION_KEYSTROKE as _0xa2b94a,AriaDescriptionView as _0x25137c,setupThreadKeyboardNavigation as _0x59ecae,trimHtml as _0x13a927,UserView as _0x22fe78,LateFocusButtonView as _0x35f8da,getDateTimeFormatter as _0x515181,getAllMarkersDomElementsSorted as _0x29a9f1,sanitizeEditorConfig as _0x172897}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x59e518,ModelLiveRange as _0x28ae54,ModelLivePosition as _0x52635a,ViewDowncastWriter as _0xc8dca8}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x49ea82,toWidget as _0xe678b5}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x538561,set as _0xb76ac6,isEqual as _0x2f27fa,unset as _0x2c78f6,omit as Ut}from'es-toolkit/compat';import{Delete as _0x29e4be,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x3eaa72}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x203e86}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class N extends _0x5401d4{['_enabledCommands'];constructor(_0x5aa7e0,_0x2cf0f4){super(_0x5aa7e0),this['_enabledCommands']=_0x2cf0f4,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 _0x1f44cb of this['editor']['commands']['commands']())_0x1f44cb['affectsData']&&!this['_enabledCommands']['has'](_0x1f44cb)&&_0x1f44cb['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x1da593 of this['editor']['commands']['commands']())_0x1da593['affectsData']&&!this['_enabledCommands']['has'](_0x1da593)&&_0x1da593['clearForceDisabled']('TrackChangesCommand');}}class D extends _0x5401d4{['_suggestions'];constructor(_0xb31d0,_0x66ba40){super(_0xb31d0),this['_suggestions']=_0x66ba40,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x28628b){const _0x2514af=this['_suggestions']['get'](_0x28628b);if(!_0x2514af)throw new _0x4c1421('track-changes-accept-suggestion-not-found',this);const _0x565314=_0x2514af['getRanges']();this['editor']['model']['canEditAt'](_0x565314)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x2514af);}}class $ extends _0x5401d4{['_suggestions'];constructor(_0x1e8baf,_0x155d9c){super(_0x1e8baf),this['_suggestions']=_0x155d9c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2a86f9){const _0x561003=this['_suggestions']['get'](_0x2a86f9);if(!_0x561003)throw new _0x4c1421('track-changes-discard-suggestion-not-found',this);const _0x22dc16=_0x561003['getRanges']();this['editor']['model']['canEditAt'](_0x22dc16)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x561003);}}function ls(_0x2338e5,_0x367c50){let _0xb12f34='';return _0xb12f34+=_0x2338e5['split']('*')['map']((_0x4c6b68,_0x520123)=>_0x520123%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+Zt(_0x4c6b68)+'</span>':Zt(_0x4c6b68))['join'](''),_0x367c50&&(_0xb12f34+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x367c50['value']+'\x22\x20title=\x22'+_0x367c50['title']+'\x22></span>'),_0xb12f34;}function Zt(_0x25e0c6){const _0x540ff5=document['createElement']('span');return _0x540ff5['innerText']=_0x25e0c6,_0x540ff5['innerHTML'];}function ts(_0x39712b){return _0x39712b['sort']((_0x56c409,_0xbe2db5)=>'attribute'===_0x56c409['type']&&'attribute'!==_0xbe2db5['type']?-0x1:'attribute'!==_0x56c409['type']&&'attribute'===_0xbe2db5['type']?0x1:'deletion'==_0x56c409['type']&&'deletion'!=_0xbe2db5['type']?-0x1:'deletion'!=_0x56c409['type']&&'deletion'==_0xbe2db5['type']?0x1:0x0);}function to(_0x2877bb,_0xf52c1c){let _0x460cbe,_0x378d0d=0x0;const _0x5b2401=[],_0x1c2cd8=_0xf52c1c['schema'];for(;_0x378d0d<_0x2877bb['length'];){const _0x34095b=_0x2877bb[_0x378d0d],_0x4dc1b4=_0x2877bb[_0x378d0d+0x1];_0x460cbe||(_0x460cbe=_0xf52c1c['createPositionBefore'](_0x34095b)),tn(_0xf52c1c,_0x34095b,_0x4dc1b4)||(_0x5b2401['push'](_0xf52c1c['createRange'](_0x460cbe,_0x1c2cd8['isObject'](_0x34095b)?_0xf52c1c['createPositionAfter'](_0x34095b):_0xf52c1c['createPositionAt'](_0x34095b,'end'))),_0x460cbe=null),_0x378d0d++;}return _0x5b2401;}function tn(_0x310bbb,_0x67e859,_0x54c1fa){if(!_0x54c1fa)return!0x1;const _0x28d2e3=_0x310bbb['createPositionAfter'](_0x67e859),_0x401d88=_0x310bbb['createPositionBefore'](_0x54c1fa);return _0x28d2e3['isTouching'](_0x401d88);}function rs(_0x65fcc4,_0x1d395f,_0x3e3094){for(;_0x3e3094['length'];){const _0x57598c=_0x3e3094['splice'](0x0,0x64);_0x65fcc4['change'](()=>{for(const _0x1efa11 of _0x57598c)_0x1efa11['isInContent']&&_0x1d395f['execute'](_0x1efa11['id']);});}}class M extends _0x5401d4{['_command'];['_suggestions'];constructor(_0x18a0a3,_0x47652c,_0x1b0a5d){super(_0x18a0a3),this['_command']=_0x47652c,this['_suggestions']=_0x1b0a5d,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2d7e2e=Array['from'](this['_suggestions']['values']())['some'](_0x466fe6=>_0x466fe6['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x2d7e2e;}['execute'](){const _0x57770e=ts(Array['from'](this['_suggestions']['values']()));for(const _0x36b1f3 of _0x57770e){const _0x9d03af=_0x36b1f3['getRanges']();if(!this['editor']['model']['canEditAt'](_0x9d03af))return;}rs(this['editor']['model'],this['_command'],_0x57770e);}}class B extends _0x5401d4{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x57f46e,_0x442265,_0x1acecc){super(_0x57f46e),this['_command']=_0x442265,this['_suggestions']=_0x1acecc,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4c30dd=this['editor']['model']['document']['selection'],_0x435220=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x16dbad,_0x340a38){const _0x2a1c21=Array['from'](_0x16dbad['getRanges']()),_0x5ea5aa=new Set();for(const _0x2ec161 of _0x340a38)if(_0x2ec161['isInContent']){for(const _0x4344c2 of _0x2a1c21)for(const _0x23dcf5 of _0x2ec161['getRanges']())(_0x4344c2['isIntersecting'](_0x23dcf5)||_0x16dbad['isCollapsed']&&!_0x2ec161['isMultiRange']&&_0x2ec161['next']&&_0x23dcf5['end']['isTouching'](_0x4344c2['start']))&&_0x5ea5aa['add'](_0x2ec161);}return _0x5ea5aa;}(_0x4c30dd,_0x435220),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x2d52fd=ts(Array['from'](this['_selectedSuggestions']));for(const _0xbe73cd of _0x2d52fd){const _0x5dfaf4=_0xbe73cd['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5dfaf4))return;}rs(this['editor']['model'],this['_command'],_0x2d52fd);}}class T extends/* #__PURE__ -- @preserve */
24
- _0x47df2e(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x54b3c2,_0x36b260){super(),this['id']=_0x36b260['id'],this['type']=_0x36b260['type'],this['subType']=_0x36b260['subType']||null,this['author']=_0x36b260['author'],this['creator']=_0x36b260['creator']||_0x36b260['author'],this['isExternal']=Boolean(_0x36b260['attributes']&&_0x36b260['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x36b260['originalSuggestionId']||null,this['_model']=_0x54b3c2,this['_onAccept']=_0x36b260['onAccept'],this['_onDiscard']=_0x36b260['onDiscard'],this['_onAttributesChange']=_0x36b260['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x36b260['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 _0x14c2a5=this;for(;_0x14c2a5['previous'];)_0x14c2a5=_0x14c2a5['previous'];return _0x14c2a5;}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'](_0x37c12a){this['_markerNames']['add'](_0x37c12a);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x2bff7f=>this['_model']['markers']['get'](_0x2bff7f))['filter'](_0x103685=>_0x103685);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x5b2475=>{for(const _0x26eca0 of this['getMarkers']())_0x5b2475['removeMarker'](_0x26eca0);}),this['_markerNames']['clear']();}['removeMarker'](_0x3890f4){this['_model']['change'](_0x1cdb91=>{_0x1cdb91['removeMarker'](_0x3890f4);}),this['_markerNames']['delete'](_0x3890f4);}['addRange'](_0x27af7a){const _0x2c20ba='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x2c20ba),this['_model']['change'](_0x392a6d=>{_0x392a6d['addMarker'](_0x2c20ba,{'range':_0x27af7a,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x24de59){for(const _0x256c6d of this['getRanges']())if(_0x256c6d['isIntersecting'](_0x24de59))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x3063ab=>_0x3063ab['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x5c369c,_0x5da71c)=>[..._0x5c369c,..._0x5da71c['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x21e449=this['getRanges']();if(0x1!=_0x21e449['length'])return null;const _0x35f290=_0x21e449[0x0],_0x2f5d01=_0x35f290['start']['nodeAfter'],_0x2e181b=_0x35f290['end']['nodeBefore'];return _0x2f5d01 instanceof _0x59e518?_0x2f5d01!=_0x2e181b?null:_0x2f5d01: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 _0x1e5001=[];let _0x40c694=this['head'];for(;_0x40c694;)_0x1e5001['push'](_0x40c694),_0x40c694=_0x40c694['next'];return _0x1e5001;}['setAttribute'](_0x1d7105,_0x5d7dd9){const _0x1d500c=_0x538561(this['attributes']);_0xb76ac6(_0x1d500c,_0x1d7105,_0x5d7dd9),_0x2f27fa(_0x1d500c,this['attributes'])||(this['attributes']=_0x1d500c,this['_onAttributesChange'](_0x1d500c));}['removeAttribute'](_0x200450){const _0x163a2c=_0x538561(this['attributes']);_0x2c78f6(_0x163a2c,_0x200450),_0x2f27fa(_0x163a2c,this['attributes'])||(this['attributes']=_0x163a2c,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 _0x542cda()['substr'](0x1,0x5);}}function o(_0x127cb7,_0x3b2741,_0x4fcef2){const _0x39d73b=_0x127cb7['t'],t=_0x127cb7['t'];switch(_0x3b2741){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',_0x4fcef2);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x4fcef2);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x4fcef2);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x4fcef2);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x4fcef2);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',_0x4fcef2);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x4fcef2);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',_0x4fcef2);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x4fcef2);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x4fcef2);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x4fcef2);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x4fcef2);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x4fcef2);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x4fcef2);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x4fcef2);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x4fcef2);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x4fcef2);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x4fcef2);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x4fcef2);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x4fcef2);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x4fcef2);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x4fcef2);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x4fcef2);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x4fcef2);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x4fcef2);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'},_0x4fcef2);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x4fcef2);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x4fcef2);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x4fcef2);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x4fcef2);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x4fcef2);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x4fcef2);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x4fcef2);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'},_0x4fcef2);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x4fcef2);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x4fcef2);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x4fcef2);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x4fcef2);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'},_0x4fcef2);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x4fcef2);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'},_0x4fcef2);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'},_0x4fcef2);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x4fcef2);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'},_0x4fcef2);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x4fcef2);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'},_0x4fcef2);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x4fcef2);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x4fcef2);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'},_0x4fcef2);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x4fcef2);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 _0x39d73b({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x4fcef2);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x39d73b({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x4fcef2);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x4fcef2);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'},_0x4fcef2);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'},_0x4fcef2);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'},_0x4fcef2);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x3b2741;}}class x{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x295c22,_0x19d610){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x295c22,this['_locale']=_0x19d610;}['getDescriptions'](_0x2ecc54){const _0x3a35d3=[],_0x1936b1=new Set(),_0x154cbc=new Set();for(let _0x337811=0x0;_0x337811<_0x2ecc54['length'];_0x337811++){const _0x51b490=_0x2ecc54[_0x337811];if(!_0x51b490['isInContent'])continue;const _0x3b97d1=this['_handleCustomCallbackDescription'](_0x51b490);if(_0x3b97d1){if(null!=_0x51b490['subType']){if(_0x1936b1['has'](_0x51b490['subType']))continue;_0x1936b1['add'](_0x51b490['subType']);}_0x3a35d3['push'](_0x3b97d1);}else{if('attribute'==_0x51b490['type']){const _0x39f218=_0x51b490['data']['key'];if(_0x154cbc['has'](_0x39f218))continue;_0x154cbc['add'](_0x51b490['data']['key']),_0x39f218==m?this['_handleRenameSuggestionDescription'](_0x3a35d3,_0x51b490):this['_handleAttributeSuggestionDescription'](_0x3a35d3,_0x51b490);continue;}'insertion'!=_0x51b490['type']&&'deletion'!=_0x51b490['type']||this['_handleInsertRemoveSuggestionDescription'](_0x3a35d3,_0x51b490,_0x2ecc54[_0x337811+0x1]);}}return this['_resolveDescriptionItems'](_0x3a35d3);}['registerDescriptionCallback'](_0xa3210b){this['_customCallbacks']['push'](_0xa3210b);}['registerElementLabel'](_0x5014ce,_0x5277b5,_0x3eb7fd=_0x150ca2['normal']){'function'==typeof _0x5014ce?_0x26bf89(this['_itemLabelsCallbacks'],{'matchingCallback':_0x5014ce,'label':_0x5277b5,'priority':_0x3eb7fd}):this['_itemLabels']['set'](_0x5014ce,_0x5277b5);}['registerAttributeLabel'](_0x4392aa,_0x35d0ed){this['_attributeLabels']['set'](_0x4392aa,_0x35d0ed);}['getItemLabel'](_0x36712b,_0x3721c9=0x1){let _0x111af5;for(const _0xa1ca1c of this['_itemLabelsCallbacks'])if(_0xa1ca1c['matchingCallback'](_0x36712b)){_0x111af5=_0xa1ca1c['label'];break;}return _0x111af5||(_0x111af5=this['_itemLabels']['get'](_0x36712b['name'])),_0x111af5?_0x111af5(_0x3721c9):0x1!==_0x3721c9?_0x3721c9+'\x20'+_0x36712b['name']+'s':''+_0x36712b['name'];}['_addDescriptionItems'](_0x5d2ca9,_0x2468a9){const _0x398875=_0x2468a9['getFirstRange']()['getWalker'](),_0x395fdf='insertion'==_0x2468a9['type']?'add':'remove';for(const _0x2bab4e of _0x398875){const _0x42d8a0=_0x2bab4e['item'],_0x22a1b1=_0x5d2ca9[_0x5d2ca9['length']-0x1];if(_0x42d8a0['is']('$textProxy'))_0x22a1b1&&_0x22a1b1['type']['indexOf']('Container')>-0x1&&_0x5d2ca9['pop'](),_0x22a1b1&&'text'==_0x22a1b1['type']?_0x22a1b1[_0x395fdf]+=_0x42d8a0['data']:_0x5d2ca9['push']({'type':'text','add':'add'==_0x395fdf?_0x42d8a0['data']:'','remove':'remove'==_0x395fdf?_0x42d8a0['data']:''});else{if(this['_schema']['isObject'](_0x42d8a0)){const _0x304ca6=_0x42d8a0;if(_0x22a1b1&&_0x22a1b1['type']['indexOf']('Container')>-0x1&&_0x5d2ca9['pop'](),'elementEnd'==_0x2bab4e['type'])continue;_0x22a1b1&&_0x22a1b1['type']==_0x395fdf+'Object'&&_0x22a1b1['element']['name']==_0x304ca6['name']?_0x22a1b1['quantity']++:_0x5d2ca9['push']({'type':_0x395fdf+'Object','element':_0x304ca6,'quantity':0x1}),_0x398875['skip'](_0x124f69=>!('elementEnd'==_0x124f69['type']&&_0x124f69['item']==_0x42d8a0));}else{if(this['_schema']['checkChild'](_0x42d8a0,'$text')||_0x42d8a0['is']('element','softBreak')){const _0x4d9d26=_0x42d8a0;if('add'==_0x395fdf&&'elementStart'==_0x2bab4e['type']||'remove'==_0x395fdf&&'elementEnd'==_0x2bab4e['type'])continue;if(_0x22a1b1&&-0x1==_0x22a1b1['type']['indexOf']('Container')){'text'==_0x22a1b1['type']&&(_0x22a1b1[_0x395fdf]+='\x0a');continue;}let _0x45cf19;if(_0x45cf19='add'==_0x395fdf?_0x4d9d26['nextSibling']&&!this['_schema']['isObject'](_0x4d9d26['nextSibling'])?_0x4d9d26['nextSibling']:null:_0x4d9d26['previousSibling']&&!this['_schema']['isObject'](_0x4d9d26['previousSibling'])?_0x4d9d26['previousSibling']:null,_0x4d9d26['isEmpty']||_0x45cf19&&_0x45cf19['isEmpty']){const _0x1dee82=_0x45cf19&&_0x45cf19['isEmpty']?_0x45cf19:_0x4d9d26;_0x22a1b1&&_0x22a1b1['type']==_0x395fdf+'EmptyContainer'&&_0x22a1b1['element']['name']==_0x1dee82['name']?_0x22a1b1['quantity']++:_0x5d2ca9['push']({'type':_0x395fdf+'EmptyContainer','element':_0x1dee82,'quantity':0x1});}else _0x5d2ca9['push']({'type':_0x395fdf+'Container','element':_0x4d9d26});}}}}}['_resolveDescriptionItems'](_0x4089f2){const _0x372d7a=this['_locale'],_0x31d2fa=[],_0x479132=[],_0x5cd77e=[];for(const _0x39fd37 of _0x4089f2)switch(_0x39fd37['type']){case'text':if(_0x39fd37['add']=_0x39fd37['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x39fd37['remove']=_0x39fd37['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x39fd37['add']&&''!=_0x39fd37['remove']){_0x31d2fa['push']({'type':'replace','content':o(_0x372d7a,'REPLACE_TEXT',['\x22'+_0x39fd37['remove']+'\x22','\x22'+_0x39fd37['add']+'\x22'])});continue;}if(null!=_0x39fd37['add']['match'](/^ +$/)){_0x31d2fa['push']({'type':'insertion','content':o(_0x372d7a,'*Insert:*\x20%0',o(_0x372d7a,'ELEMENT_SPACE',_0x39fd37['add']['length']))});continue;}if(null!=_0x39fd37['remove']['match'](/^ +$/)){_0x31d2fa['push']({'type':'deletion','content':o(_0x372d7a,'*Remove:*\x20%0',o(_0x372d7a,'ELEMENT_SPACE',_0x39fd37['remove']['length']))});continue;}if(''!=_0x39fd37['add']){_0x31d2fa['push']({'type':'insertion','content':o(_0x372d7a,'*Insert:*\x20%0','\x22'+_0x39fd37['add']+'\x22')});continue;}_0x31d2fa['push']({'type':'deletion','content':o(_0x372d7a,'*Remove:*\x20%0','\x22'+_0x39fd37['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x31d2fa['push']({'type':'insertion','content':o(_0x372d7a,'*Insert:*\x20%0',this['getItemLabel'](_0x39fd37['element'],_0x39fd37['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x31d2fa['push']({'type':'deletion','content':o(_0x372d7a,'*Remove:*\x20%0',this['getItemLabel'](_0x39fd37['element'],_0x39fd37['quantity']))});continue;case'addContainer':_0x31d2fa['push']({'type':'insertion','content':o(_0x372d7a,'*Split:*\x20%0',this['getItemLabel'](_0x39fd37['element'],_0x39fd37['quantity']))});continue;case'removeContainer':_0x31d2fa['push']({'type':'deletion','content':o(_0x372d7a,'*Merge:*\x20%0',this['getItemLabel'](_0x39fd37['element'],_0x39fd37['quantity']))});continue;case'addFormat':_0x479132['push'](_0x39fd37['key']);continue;case'removeFormat':_0x5cd77e['push'](_0x39fd37['key']);continue;default:_0x31d2fa['push'](_0x39fd37);}if(_0x479132['length']){const _0xb30527=_0x479132['map'](_0x45763e=>this['_attributeLabels']['has'](_0x45763e)?this['_attributeLabels']['get'](_0x45763e):_0x45763e)['join'](',\x20');_0x31d2fa['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0xb30527)});}if(_0x5cd77e['length']){const _0x53f880=_0x5cd77e['map'](_0x7ed80d=>this['_attributeLabels']['has'](_0x7ed80d)?this['_attributeLabels']['get'](_0x7ed80d):_0x7ed80d)['join'](',\x20');_0x31d2fa['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x53f880)});}return _0x31d2fa;}['_handleCustomCallbackDescription'](_0x2fa476){for(const _0x504508 of this['_customCallbacks']){const _0x1b3470=_0x504508(_0x2fa476);if(_0x1b3470&&'type'in _0x1b3470)return _0x1b3470;}}['_handleAttributeSuggestionDescription'](_0xef19c4,_0x3a92f1){const _0x129308=_0x3a92f1['data'],_0x4651d1=void 0x0===_0x129308['newValue']?'removeFormat':'addFormat';_0xef19c4['push']({'type':_0x4651d1,'key':_0x129308['key']});}['_handleRenameSuggestionDescription'](_0x11e2f9,_0x273eff){_0x11e2f9['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x273eff['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x493002,_0x8301d2,_0x1e6c9d){if(this['_addDescriptionItems'](_0x493002,_0x8301d2),_0x1e6c9d&&_0x1e6c9d['getFirstRange']()&&!_0x8301d2['getFirstRange']()['end']['isEqual'](_0x1e6c9d['getFirstRange']()['start'])){const _0x365c34=_0x493002[_0x493002['length']-0x1],_0x52896f='insertion'==_0x8301d2['type']?'add':'remove';_0x365c34&&'text'==_0x365c34['type']&&(_0x365c34[_0x52896f]+='\x0a');}}}class O extends _0x787ffb{['afterInit'](){const _0x3a8bed=this['editor'],_0x413167=_0x3a8bed['plugins']['get']('TrackChangesEditing');_0x3a8bed['commands']['get']('showAIAssistant')&&_0x413167['enableCommand']('showAIAssistant');}}class E extends _0x787ffb{['afterInit'](){const _0x5abeaf=this['editor'],_0x58de96=_0x5abeaf['locale'];if(!_0x5abeaf['plugins']['has']('AlignmentEditing'))return;const _0x28935a=_0x5abeaf['plugins']['get']('TrackChangesEditing');_0x28935a['enableDefaultAttributesIntegration']('alignment'),_0x28935a['registerBlockAttribute']('alignment'),_0x28935a['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x58de96,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x264d04=this['editor'],_0x3efacc=_0x264d04['locale'];_0x264d04['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x56051e=>{if('formatBlock'!=_0x56051e['type'])return;const {data:_0x33a2ba}=_0x56051e;if(_0x33a2ba&&'alignment'==_0x33a2ba['commandName']){const _0xf1e96e=_0x33a2ba['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x3efacc,'*Format:*\x20%0',function(_0x3427ef){switch(_0x3427ef){case'left':return o(_0x3efacc,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x3efacc,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x3efacc,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x3efacc,'FORMAT_JUSTIFY_TEXT');}}(_0xf1e96e))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class R extends _0x787ffb{['afterInit'](){const _0x2018ad=this['editor'],_0x1b8703=_0x2018ad['plugins']['get']('TrackChangesEditing'),_0x7a82f7=_0x2018ad['locale'];for(const _0x23e5a4 of ti){if(!_0x2018ad['plugins']['has'](_0x23e5a4))continue;const _0x12624b=_0x23e5a4['slice'](0x0,-0x7)['toLowerCase'](),_0x559af2='FORMAT_'+_0x12624b['toUpperCase']();_0x1b8703['enableDefaultAttributesIntegration'](_0x12624b),_0x1b8703['registerInlineAttribute'](_0x12624b),_0x1b8703['descriptionFactory']['registerAttributeLabel'](_0x12624b,o(_0x7a82f7,_0x559af2));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x238dc2=this['editor'],_0x879ae9=_0x238dc2['locale'],_0x154589=_0x238dc2['plugins']['get']('TrackChangesEditing');function _0x1dc2b5(_0xf98b3c,_0x2cda15){_0x154589['descriptionFactory']['registerDescriptionCallback'](_0x2c1e1e=>{if('formatInline'!=_0x2c1e1e['type'])return;const {data:_0x4b0ea9}=_0x2c1e1e;return _0x4b0ea9&&_0x4b0ea9['commandName']===_0xf98b3c?_0x4b0ea9['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x879ae9,'*Format:*\x20%0',_0x2cda15)}:{'type':'format','content':o(_0x879ae9,'*Remove\x20format:*\x20%0',_0x2cda15)}:void 0x0;});}_0x1dc2b5('bold',o(_0x879ae9,'FORMAT_BOLD')),_0x1dc2b5('italic',o(_0x879ae9,'FORMAT_ITALIC')),_0x1dc2b5('underline',o(_0x879ae9,'FORMAT_UNDERLINE')),_0x1dc2b5('code',o(_0x879ae9,'FORMAT_CODE')),_0x1dc2b5('strikethrough',o(_0x879ae9,'FORMAT_STRIKETHROUGH')),_0x1dc2b5('subscript',o(_0x879ae9,'FORMAT_SUBSCRIPT')),_0x1dc2b5('superscript',o(_0x879ae9,'FORMAT_SUPERSCRIPT'));}}class U extends _0x787ffb{['afterInit'](){const _0x29c89b=this['editor'],_0x2e82dd=_0x29c89b['locale'];if(!_0x29c89b['plugins']['has']('BlockQuoteEditing'))return;const _0x2363f7=_0x29c89b['plugins']['get']('TrackChangesEditing'),_0x25a597=this['editor']['commands']['get']('blockQuote');_0x2363f7['enableCommand']('blockQuote',(_0x3d1116,_0x3c9267={})=>{const _0x14bf01=this['editor']['model']['document']['selection'],_0x25b40a=_0x3c9267&&void 0x0!==_0x3c9267['forceValue']?_0x3c9267['forceValue']:!_0x25a597['value'];let _0x1511a6=[];if(_0x25b40a){const _0x3dd9e3=Array['from'](_0x14bf01['getSelectedBlocks']())['filter'](_0x38a96c=>oo(_0x38a96c)||function(_0x40e142,_0x37f428){const _0x39e880=_0x37f428['checkChild'](_0x40e142['parent'],'blockQuote'),_0x365fb6=_0x37f428['checkChild'](['$root','blockQuote'],_0x40e142);return _0x39e880&&_0x365fb6;}(_0x38a96c,this['editor']['model']['schema']));_0x1511a6=to(_0x3dd9e3,_0x29c89b['model']);}else{const _0x5f1330=Array['from'](_0x14bf01['getSelectedBlocks']())['filter'](_0x2f88da=>oo(_0x2f88da));_0x1511a6=to(_0x5f1330,_0x29c89b['model']);}_0x29c89b['model']['change'](()=>{for(const _0x219012 of _0x1511a6)_0x2363f7['markBlockFormat'](_0x219012,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x25b40a}]});});}),_0x2363f7['descriptionFactory']['registerDescriptionCallback'](_0x37e991=>{const {data:_0x1ce1a9}=_0x37e991;if(_0x1ce1a9&&'blockQuote'==_0x1ce1a9['commandName']){const _0x42e96b=o(_0x2e82dd,'ELEMENT_BLOCK_QUOTE');return _0x1ce1a9['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2e82dd,'*Set\x20format:*\x20%0',_0x42e96b)}:{'type':'format','content':o(_0x2e82dd,'*Remove\x20format:*\x20%0',_0x42e96b)};}});}}function oo(_0x3b3108){return'blockQuote'==_0x3b3108['parent']['name'];}class V extends _0x787ffb{['afterInit'](){const _0x55b996=this['editor'],_0x2fb7cc=_0x55b996['locale'],_0x5a71f0=_0x55b996['plugins']['get']('TrackChangesEditing');_0x55b996['plugins']['has']('BookmarkEditing')&&(_0x5a71f0['enableCommand']('insertBookmark'),_0x5a71f0['enableDefaultAttributesIntegration']('updateBookmark'),_0x5a71f0['registerBlockAttribute']('bookmarkId'),_0x5a71f0['descriptionFactory']['registerDescriptionCallback'](_0x21ce32=>{if('insertion'!=_0x21ce32['type']&&'deletion'!=_0x21ce32['type']&&'attribute'!=_0x21ce32['type'])return;const _0x33ac07=_0x21ce32['getContainedElement']();if(null==_0x33ac07)return;if(!_0x33ac07['is']('element','bookmark'))return;const _0x33f88b=_0x33ac07['getAttribute']('bookmarkId');if('insertion'==_0x21ce32['type'])return{'type':'insertion','content':o(_0x2fb7cc,'*Insert:*\x20%0','\x22'+_0x33f88b+'\x22\x20'+o(_0x2fb7cc,'ELEMENT_BOOKMARK'))};if('deletion'==_0x21ce32['type'])return{'type':'deletion','content':o(_0x2fb7cc,'*Remove:*\x20%0','\x22'+_0x33f88b+'\x22\x20'+o(_0x2fb7cc,'ELEMENT_BOOKMARK'))};const {data:_0x20b0c3}=_0x21ce32;if(!_0x20b0c3||'bookmarkId'!=_0x20b0c3['key'])return;return{'type':'format','content':o(_0x2fb7cc,'*Set\x20bookmark:*\x20%0','\x22'+_0x20b0c3['newValue']+'\x22')};}));}}class F extends _0x787ffb{['afterInit'](){const _0x286a0e=this['editor'];_0x286a0e['plugins']['has']('CaseChange')&&(_0x286a0e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x286a0e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x286a0e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x787ffb{['afterInit'](){const _0x4dce6c=this['editor'];_0x4dce6c['commands']['get']('ckbox')&&_0x4dce6c['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x787ffb{['afterInit'](){const _0x30d8b7=this['editor'];if(!_0x30d8b7['plugins']['has']('CodeBlock'))return;const _0x12c48a=_0x30d8b7['plugins']['get']('TrackChangesEditing'),_0x10728a=_0x30d8b7['locale'],_0x2131a0=_0x30d8b7['config']['get']('codeBlock')['languages'],_0x53f5ab=_0x30d8b7['commands']['get']('codeBlock');_0x12c48a['enableCommand']('indentCodeBlock'),_0x12c48a['enableCommand']('outdentCodeBlock'),_0x12c48a['enableCommand']('codeBlock',(_0x4bc5af,_0x1688a5={})=>{const _0x15c8b7=_0x30d8b7['model'],_0x3e235a=_0x30d8b7['model']['document']['selection'],_0x5c27a5=_0x1688a5&&void 0x0!==_0x1688a5['forceValue']?_0x1688a5['forceValue']:!_0x53f5ab['value'];let _0x5c311b;_0x1688a5['language']||(_0x1688a5['language']=_0x2131a0[0x0]['language']),_0x5c311b=_0x5c27a5?Array['from'](_0x3e235a['getSelectedBlocks']())['filter'](_0x59577b=>co(_0x59577b)||function(_0x4cc5c4,_0x29becc){if(_0x4cc5c4['is']('rootElement')||_0x29becc['isLimit'](_0x4cc5c4))return!0x1;return _0x29becc['checkChild'](_0x4cc5c4['parent'],'codeBlock');}(_0x59577b,_0x15c8b7['schema'])):Array['from'](_0x3e235a['getSelectedBlocks']())['filter'](_0x47994f=>co(_0x47994f));const _0x2e3c83=to(_0x5c311b,_0x15c8b7);_0x15c8b7['change'](()=>{for(const _0x55d825 of _0x2e3c83)_0x12c48a['markBlockFormat'](_0x55d825,{'commandName':'codeBlock','commandParams':[{..._0x1688a5,'forceValue':_0x5c27a5}],'formatGroupId':'blockName'});});}),(_0x12c48a['descriptionFactory']['registerElementLabel']('codeBlock',_0x153763=>o(_0x10728a,'ELEMENT_CODE_BLOCK',_0x153763)),_0x12c48a['descriptionFactory']['registerDescriptionCallback'](_0x49466e=>{if('formatBlock'!=_0x49466e['type'])return;const _0x272a30=_0x10728a['t'],{data:_0x30b88d}=_0x49466e;if(!_0x30b88d||'codeBlock'!=_0x30b88d['commandName'])return;const _0x5c726a=_0x30b88d['commandParams'][0x0]['language'],_0x5d5572=_0x272a30(_0x2131a0['find'](_0x5bfaac=>_0x5bfaac['language']===_0x5c726a)['label'])['toLowerCase']();return _0x30b88d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x10728a,'*Set\x20format:*\x20%0',o(_0x10728a,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x5d5572+')')}:{'type':'format','content':o(_0x10728a,'*Remove\x20format:*\x20%0',o(_0x10728a,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x278541){return'codeBlock'==_0x278541['name'];}class J extends _0x787ffb{['afterInit'](){const _0xbe4dd3=this['editor'];if(!_0xbe4dd3['plugins']['has']('CommentsEditing'))return;_0xbe4dd3['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x1b79a3,_0x5d8cfe,_0x571a7f){const _0x45047c=[];for(const _0x402202 of _0x5d8cfe['getItems']())_0x402202['hasAttribute'](_0x1b79a3)&&_0x45047c['push'](_0x571a7f['createRangeOn'](_0x402202));return _0x45047c;}function De(_0x3ab78a,_0x5b6eaa,{showActiveMarker:_0x58c106=!0x0}={}){const _0x458343=_0x3ab78a['plugins']['get']('TrackChangesEditing');return(_0x32f640,_0x5689f8,_0x274b4b)=>{if(!_0x274b4b['consumable']['test'](_0x5689f8['markerRange'],_0x32f640['name']))return;const _0x31f5fa=_0x5689f8['markerRange']['getWalker'](),_0x1ae9e1=_0x5689f8['markerRange']['start'],_0x4fec14=_0x3ab78a['model']['schema'];let _0x594e0b=null,_0x2ed9d1=null,_0x5a7a68=!0x1,_0x2d7ff6=!0x1;for(const _0x1742ed of _0x31f5fa){const _0x180c89=_0x1742ed['item'];_0x5a7a68=_0x5a7a68||_0x4fec14['isContent'](_0x180c89);const _0x4c760f=_0x274b4b['mapper']['toViewElement'](_0x180c89);if(_0x4c760f&&_0x4c760f['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1742ed['type']&&(_0x4fec14['isBlock'](_0x180c89)&&!_0x4fec14['isLimit'](_0x180c89)&&(_0x180c89['nextSibling']||_0x1ae9e1['isAtEnd']?_0x594e0b&&_0x594e0b['parent']==_0x180c89||(_0x594e0b=_0x180c89,_0x253287(_0x1742ed['previousPosition']),_0x2d7ff6=!0x0):_0x2ed9d1=_0x2ed9d1||_0x1742ed['previousPosition']));}function _0x253287(_0x2926c6){const {id:_0x39aa86,authorId:_0x3fc280}=_0x458343['_splitMarkerName'](_0x5689f8['markerName']),_0x53301f=_0x274b4b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5b6eaa,'data-suggestion':_0x39aa86,'data-author-id':_0x3fc280}),_0x23b0fa=_0x274b4b['mapper']['toViewPosition'](_0x2926c6);_0x58c106&&_0x458343['activeMarkers']['includes'](_0x5689f8['markerName'])&&_0x274b4b['writer']['addClass']('ck-suggestion-marker--active',_0x53301f),_0x274b4b['writer']['insert'](_0x23b0fa,_0x53301f),_0x274b4b['mapper']['bindElementToMarker'](_0x53301f,_0x5689f8['markerName']);}_0x5a7a68||_0x2d7ff6||!_0x2ed9d1||_0x253287(_0x2ed9d1);};}class K extends _0x787ffb{static get['requires'](){return[_0x29e4be];}['init'](){const _0x171f8e=this['editor'],_0x5b1de6=_0x171f8e['plugins']['get']('TrackChangesEditing');_0x5b1de6['enableCommand']('delete');const _0x478849=_0x171f8e['commands']['get']('deleteForward');_0x5b1de6['enableCommand']('deleteForward',(_0x17877e,_0x46fd92={})=>{const _0x2764ea=_0x171f8e['model']['createSelection'](_0x171f8e['model']['document']['selection']);_0x2764ea['isCollapsed']&&_0x171f8e['model']['modifySelection'](_0x2764ea,{'direction':'forward','unit':_0x46fd92['unit']});const _0x1ac90e=_0x2764ea['getFirstRange'](),_0x3c1294=_0x28ae54['fromRange'](_0x1ac90e);let _0x57fcfe;_0x17877e(_0x46fd92),_0x57fcfe='$graveyard'==_0x3c1294['root']['rootName']?_0x171f8e['model']['createRange'](_0x1ac90e['start']):_0x171f8e['model']['createRange'](_0x3c1294['start'],_0x3c1294['end']),_0x3c1294['detach'](),_0x171f8e['model']['enqueueChange'](_0x478849['buffer']['batch'],_0x80a7f5=>{_0x478849['buffer']['lock'](),_0x80a7f5['setSelection'](_0x80a7f5['createRange'](_0x57fcfe['end'])),_0x478849['buffer']['unlock']();});}),_0x171f8e['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x171f8e,'merge'),{'priority':'high'}),_0x171f8e['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x5b9ca1,_0x8f716,_0x392161)=>{_0x392161['options']['showSuggestionHighlights']&&De(_0x171f8e,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x5b9ca1,_0x8f716,_0x392161);},{'priority':'high'}),_0x171f8e['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x3dab0e,_0x5124be,_0x9ca84c)=>{const _0x4b2128=_0x9ca84c['mapper']['markerNameToElements'](_0x5124be['markerName']);if(_0x4b2128){for(const _0x45b4cf of _0x4b2128)_0x45b4cf['is']('uiElement')&&(_0x9ca84c['mapper']['unbindElementFromMarkerName'](_0x45b4cf,_0x5124be['markerName']),_0x9ca84c['writer']['remove'](_0x45b4cf));}},{'priority':'high'});}}class H extends _0x787ffb{['afterInit'](){const _0x466bb7=this['editor'];if(!_0x466bb7['plugins']['has']('ListEditing'))return;const _0x298499=_0x466bb7['locale'],_0x49bf0d=_0x466bb7['plugins']['get']('TrackChangesEditing'),_0x3933ff=_0x466bb7['plugins']['has']('TodoListEditing'),_0x4e859a=!!_0x466bb7['config']['get']('list.multiBlock');function _0x1703b8(_0x4a0b23){return{'type':'format','content':''+o(_0x298499,'*Set\x20format:*\x20%0',_0x4a0b23)};}function _0x1a0f82(_0x2f85d0){return{'type':'format','content':''+o(_0x298499,'*Remove\x20format:*\x20%0',_0x2f85d0)};}_0x49bf0d['enableDefaultAttributesIntegration']('numberedList'),_0x49bf0d['enableDefaultAttributesIntegration']('bulletedList'),_0x49bf0d['enableDefaultAttributesIntegration']('customNumberedList'),_0x49bf0d['enableDefaultAttributesIntegration']('customBulletedList'),_0x49bf0d['enableDefaultAttributesIntegration']('indentList'),_0x49bf0d['enableDefaultAttributesIntegration']('outdentList'),_0x49bf0d['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x49bf0d['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x49bf0d['registerBlockAttribute']('listItemId'),_0x49bf0d['registerBlockAttribute']('listType'),_0x49bf0d['registerBlockAttribute']('listIndent'),_0x4e859a&&(_0x49bf0d['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x49bf0d['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x3933ff&&(_0x49bf0d['enableDefaultAttributesIntegration']('todoList'),_0x49bf0d['enableDefaultAttributesIntegration']('checkTodoList'),_0x49bf0d['registerBlockAttribute']('todoListChecked'),_0x49bf0d['descriptionFactory']['registerDescriptionCallback'](_0x1d04b3=>{const {data:_0x13fc70}=_0x1d04b3;if(_0x13fc70&&'todoListChecked'==_0x13fc70['key'])return{'type':'format','content':_0x13fc70['newValue']?o(_0x298499,'*Check\x20item*'):o(_0x298499,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x53bb29=>{if(_0x53bb29['batch']['isUndo'])return!0x1;let _0x18be6f=!0x1;const _0x4fa5dd=_0x49bf0d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x437c51=>'todoListChecked'===_0x49bf0d['_getAttributeKey'](_0x437c51));for(const _0x22efb7 of _0x4fa5dd){'todo'!=_0x22efb7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x49bf0d['_findSuggestions'](_0x22efb7['getFirstRange'](),'attribute')['find'](_0x4a6fcb=>'listType'===_0x49bf0d['_getAttributeKey'](_0x4a6fcb['suggestion']))||(_0x53bb29['removeMarker'](_0x22efb7['getFirstMarker']()),_0x18be6f=!0x0));}return _0x18be6f;})),_0x49bf0d['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x298499,'FORMAT_INDENT'));const _0x186153={'type':'format','content':''};_0x49bf0d['descriptionFactory']['registerDescriptionCallback'](_0x4395be=>{const {data:_0x21fed1}=_0x4395be;if(!_0x21fed1||'listType'!=_0x21fed1['key'])return;let _0x350f22=_0x4395be['head'];for(;_0x350f22;){if(_0x350f22['data']&&(('listStyle'==_0x350f22['data']['key']||'listMarkerStyle'==_0x350f22['data']['key'])&&(_0x350f22['data']['newValue']&&'default'!=_0x350f22['data']['newValue']||'default'!=_0x350f22['data']['oldValue']&&!_0x21fed1['newValue'])||!_0x4e859a&&_0x350f22['data']['key']==m))return _0x186153;_0x350f22=_0x350f22['next'];}if(null==_0x21fed1['newValue'])switch(_0x21fed1['oldValue']){case'bulleted':return _0x1a0f82(o(_0x298499,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1a0f82(o(_0x298499,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1a0f82(o(_0x298499,'ELEMENT_TODO_LIST'));}switch(_0x21fed1['newValue']){case'bulleted':return _0x1703b8(o(_0x298499,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1703b8(o(_0x298499,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1703b8(o(_0x298499,'ELEMENT_TODO_LIST'));}}),_0x49bf0d['descriptionFactory']['registerDescriptionCallback'](_0x3906fa=>{const {data:_0x2d82a6}=_0x3906fa;if(_0x2d82a6&&'listIndent'==_0x2d82a6['key'])return null==_0x2d82a6['newValue']||null==_0x2d82a6['oldValue']&&0x0==_0x2d82a6['newValue']?_0x186153:void 0x0;}),_0x49bf0d['descriptionFactory']['registerDescriptionCallback'](_0x19e957=>{if('attribute'!=_0x19e957['type'])return;const {data:_0x29d631}=_0x19e957;if(!_0x29d631||'listItemId'!=_0x29d631['key'])return;const _0x3aa586=Te(_0x19e957);return'newValue'==_0x3aa586?{'type':'format','content':o(_0x298499,'*Merge:*\x20list\x20item')}:'oldValue'==_0x3aa586?{'type':'format','content':o(_0x298499,'*Split:*\x20list\x20item')}:_0x186153;}),_0x466bb7['model']['document']['registerPostFixer'](_0xb73dde=>this['listItemIdFixer'](_0xb73dde)),_0x466bb7['model']['document']['registerPostFixer'](_0x565a1e=>this['noTrackChangesFixer'](_0x565a1e)),_0x466bb7['model']['document']['on']('change:data',(_0x173ccd,_0x3a5485)=>{if(_0x3a5485['isUndo']||!_0x3a5485['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x49872f){if(_0x49872f['batch']['isUndo']||!_0x49872f['batch']['isLocal'])return!0x1;let _0x311ad4=!0x1;const _0x38779=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3fd371=>_0x3fd371['data']&&'listItemId'==_0x3fd371['data']['key'])['filter'](_0x5065f3=>_0x5065f3['data']['newValue']&&_0x5065f3['data']['oldValue']);for(const _0x2415b6 of _0x38779)Te(_0x2415b6)||(_0x49872f['removeMarker'](_0x2415b6['getFirstMarker']()),_0x311ad4=!0x0);return _0x311ad4;}['noTrackChangesFixer'](_0x54b822){if(_0x54b822['batch']['isUndo']||!_0x54b822['batch']['isLocal'])return!0x1;const _0x35433b=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x35433b['trackChangesCommand']['value'])return!0x1;let _0x225f32=!0x1;const _0x291be2=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x23e096=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x3a0df2=>'attribute'==_0x3a0df2['type'])['filter'](_0x26ee23=>_0x291be2['includes'](_0x26ee23['attributeKey']));if(0x0==_0x23e096['length'])return _0x225f32;for(const _0xe30a97 of _0x23e096){const _0x5066a3=_0x35433b['_findSuggestions'](_0xe30a97['range'],'attribute')['filter'](_0x390085=>!_0x390085['meta']['isNextTo'])['map'](_0x1b590b=>_0x1b590b['suggestion'])['filter'](_0x16c4ff=>{const _0x23b39f=_0x35433b['_getAttributeKey'](_0x16c4ff);return _0x291be2['includes'](_0x23b39f);});if(_0x5066a3['length']){for(const _0xd98d46 of _0x5066a3)_0x54b822['removeMarker'](_0xd98d46['getFirstMarker']());_0x225f32=!0x0;}}return _0x225f32;}['assureChains'](){const _0xfcda33=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4e1566=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0xb9136c;const _0xcc8d38=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1491c7=>{if(_0x1491c7['data']['oldRange']||!_0x1491c7['data']['newRange'])return null;if(!_0x1491c7['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0xce81f3}=_0xfcda33['_splitMarkerName'](_0x1491c7['name']);if(!_0xfcda33['hasSuggestion'](_0xce81f3))return null;const _0x280413=_0xfcda33['getSuggestion'](_0xce81f3);return _0x4e1566['includes'](_0x280413['data']['key']);})['map'](_0x50aece=>{const {id:_0x4803cc}=_0xfcda33['_splitMarkerName'](_0x50aece['name']),_0x44c09e=_0xfcda33['getSuggestion'](_0x4803cc);return _0xb9136c=_0x44c09e['attributes']['groupId'],_0x44c09e['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0xcc8d38['size'])return;const _0x28394b=_0xfcda33['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x19083c=>'attribute'==_0x19083c['type']&&_0x19083c['data']&&_0x4e1566['includes'](_0x19083c['data']['key'])&&_0x19083c['attributes']['groupId']!=_0xb9136c)['map'](_0x4b8096=>({'listItem':_0x4b8096['getFirstRange']()['start']['nodeAfter'],'groupId':_0x4b8096['attributes']['groupId']})),_0xa30482=new Set();for(const {groupId:_0x25823f,listItem:_0x2ed73c}of _0x28394b)_0xcc8d38['has'](_0x2ed73c)&&_0xa30482['add'](_0x25823f);for(const _0x58325c of _0xfcda33['getSuggestions']())_0xa30482['has'](_0x58325c['attributes']['groupId'])&&_0x58325c['setAttribute']('groupId',_0xb9136c);}['_supportLegacySuggestions'](){const _0x30b889=this['editor'],_0x3d9425=_0x30b889['locale'],_0x5cce73=_0x30b889['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x5cce73['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x3bfab8,_0x4ef4ff){const _0x351822=[];for(let _0x2f7b9c of _0x3bfab8)_0x2f7b9c['start']['nodeAfter']===_0x2f7b9c['end']['parent']&&(_0x2f7b9c=_0x30b889['model']['createRange'](_0x30b889['model']['createPositionAt'](_0x2f7b9c['start']['nodeAfter'],0x0))),_0x351822['push'](_0x2f7b9c);_0x30b889['model']['change'](_0x2c6d00=>{const _0x27e9fd=_0x30b889['model']['document']['selection'],_0x2c7c05=Array['from'](_0x27e9fd['getRanges']())['map'](_0x18fca3=>_0x28ae54['fromRange'](_0x18fca3));_0x2c6d00['setSelection'](_0x351822),_0x30b889['commands']['get'](_0x4ef4ff['commandName'])['refresh'](),_0x4ef4ff['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x30b889['execute'](_0x4ef4ff['commandName'],..._0x4ef4ff['commandParams']),_0x2c6d00['setSelection'](_0x2c7c05);for(const _0x40996d of _0x2c7c05)_0x40996d['detach']();});}),_0x5cce73['descriptionFactory']['registerElementLabel'](function(_0x377bc1){const _0x5e2ded=!_0x30b889['model']['schema']['isObject'](_0x377bc1),_0x4a56e5=_0x377bc1['previousSibling'],_0xec892c=_0x377bc1['nextSibling'],_0x4f2991=_0x377bc1['getAttribute']('listItemId'),_0x3611b4=!_0x4a56e5||_0x4a56e5['getAttribute']('listItemId')!==_0x4f2991,_0x531edf=!_0xec892c||_0xec892c['getAttribute']('listItemId')!==_0x4f2991;return _0x5e2ded&&Boolean(_0x4f2991)&&_0x3611b4&&_0x531edf;},_0x19ac8c=>o(_0x3d9425,'ELEMENT_LIST_ITEM',_0x19ac8c));}['_registerLegacyDescription'](){const _0x33d992=this['editor'],_0x351958=_0x33d992['locale'];function _0x349f55(_0x2bd3be){const _0x464f66=_0x33d992['commands']['get']('bulletedList')['value'],_0x5cfbbe=_0x33d992['commands']['get']('numberedList')['value'];return'numberedList'===_0x2bd3be?_0x464f66:_0x5cfbbe;}_0x33d992['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x50e68a){if('formatBlock'!=_0x50e68a['type'])return;const {data:_0x12f355}=_0x50e68a;if(!_0x12f355)return;let _0x56b69f,_0x497213,_0x48f286,_0x1f9ceb;switch(_0x12f355['commandName']){case'bulletedList':_0x48f286=_0x12f355['commandParams'][0x0]['forceValue'],_0x1f9ceb=_0x349f55(_0x12f355['commandName']),_0x56b69f=_0x48f286?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1f9ceb&&_0x33d992['config']['get']('list.multiBlock')||(_0x56b69f='*Change\x20to:*\x20%0'),_0x497213={'type':'format','content':o(_0x351958,_0x56b69f,o(_0x351958,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x48f286=_0x12f355['commandParams'][0x0]['forceValue'],_0x1f9ceb=_0x349f55(_0x12f355['commandName']),_0x56b69f=_0x48f286?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1f9ceb&&_0x33d992['config']['get']('list.multiBlock')||(_0x56b69f='*Change\x20to:*\x20%0'),_0x497213={'type':'format','content':o(_0x351958,_0x56b69f,o(_0x351958,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x56b69f='*Indent:*\x20%0',_0x497213={'type':'format','content':o(_0x351958,_0x56b69f,o(_0x351958,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x56b69f=function(_0x345ca9){const _0x214827=_0x345ca9['getFirstRange']();let _0x5bebc7=_0x214827['start']['nodeAfter'];for(;_0x5bebc7&&_0x214827['containsItem'](_0x5bebc7);){if(_0x5bebc7['getAttribute']('listIndent')>0x0)return!0x1;_0x5bebc7=_0x5bebc7['nextSibling'];}return!0x0;}(_0x50e68a)?o(_0x351958,'*Format:*\x20remove\x20from\x20%0',o(_0x351958,function(_0x4c15da){return'ELEMENT_'+_0x4c15da['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x50e68a))):o(_0x351958,'*Outdent:*\x20%0',o(_0x351958,'ELEMENT_LIST_ITEM')),_0x497213={'type':'format','content':_0x56b69f};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x12f355['multipleBlocks']&&(_0x56b69f='*Merge:*\x20%0',_0x497213={'type':'deletion','content':o(_0x351958,_0x56b69f,o(_0x351958,'ELEMENT_LIST_ITEM'))});}return _0x497213;});}}function Te(_0x294902){let _0x4da511=_0x294902['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x4da511;){const _0x3ed406=_0x4da511['getAttribute']('listItemId');if(!_0x3ed406)return!0x1;if(_0x3ed406==_0x294902['data']['newValue'])return'newValue';if(_0x3ed406==_0x294902['data']['oldValue'])return'oldValue';_0x4da511=_0x4da511['previousSibling'];}return!0x1;}class q extends _0x787ffb{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x125705=this['editor']['config']['get']('list.properties'),_0x223881=this['editor']['plugins']['get']('TrackChangesEditing');_0x125705['styles']&&(_0x223881['enableDefaultAttributesIntegration']('listStyle'),_0x223881['registerBlockAttribute']('listStyle')),_0x125705['reversed']&&(_0x223881['enableDefaultAttributesIntegration']('listReversed'),_0x223881['registerBlockAttribute']('listReversed')),_0x125705['startIndex']&&(_0x223881['enableDefaultAttributesIntegration']('listStart'),_0x223881['registerBlockAttribute']('listStart'));const _0x5477c0={'type':'format','content':''};_0x223881['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0xb20863=this['editor']['locale'];_0x223881['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0xb20863,'FORMAT_LIST_REVERSED')),_0x223881['descriptionFactory']['registerDescriptionCallback'](_0x260edd=>{const {data:_0x535e27}=_0x260edd;if(_0x535e27&&'listReversed'==_0x535e27['key'])return null==_0x535e27['newValue']||0x0==_0x535e27['newValue']&&null==_0x535e27['oldValue']?_0x5477c0:void 0x0;}),_0x223881['descriptionFactory']['registerAttributeLabel']('listStart',o(_0xb20863,'FORMAT_LIST_START')),_0x223881['descriptionFactory']['registerDescriptionCallback'](_0x72f4bf=>{const {data:_0x3b37eb}=_0x72f4bf;if(_0x3b37eb&&'listStart'==_0x3b37eb['key'])return null==_0x3b37eb['newValue']||0x1==_0x3b37eb['newValue']&&null==_0x3b37eb['oldValue']?_0x5477c0:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x585bf4=>{if(_0x585bf4['batch']['isUndo'])return!0x1;let _0x5a2153=!0x1;const _0x2f9499=_0x223881['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x34c0ba=>{const _0xc8ecc6=_0x223881['_getAttributeKey'](_0x34c0ba);return'listStart'==_0xc8ecc6||'listReversed'==_0xc8ecc6;});for(const _0x16e61f of _0x2f9499){const _0x5b6b24=_0x16e61f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x5b6b24||'customNumbered'==_0x5b6b24)continue;_0x223881['_findSuggestions'](_0x16e61f['getFirstRange'](),'attribute')['find'](_0x49847c=>'listType'==_0x223881['_getAttributeKey'](_0x49847c['suggestion']))||(_0x585bf4['removeMarker'](_0x16e61f['getFirstMarker']()),_0x5a2153=!0x0);}return _0x5a2153;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x269534){const _0x4570b1=this['editor']['locale'],{data:_0x3475e8}=_0x269534,_0x3434e0={'type':'format','content':''};if(!_0x3475e8||'listStyle'!=_0x3475e8['key'])return;if(!_0x3475e8['oldValue'])return'default'==_0x3475e8['newValue']?_0x3434e0:{'type':'format','content':''+o(_0x4570b1,'*Set\x20format:*\x20%0',o(_0x4570b1,this['_getTranslationKeyForListStyle'](_0x3475e8['newValue'])))};if(!_0x3475e8['newValue']){if('default'==_0x3475e8['oldValue'])return _0x3434e0;let _0x5bb340=_0x269534['head'];for(;_0x5bb340;){if(_0x5bb340['data']&&'listType'==_0x5bb340['data']['key']&&_0x5bb340['data']['newValue'])return _0x3434e0;_0x5bb340=_0x5bb340['next'];}return{'type':'format','content':''+o(_0x4570b1,'*Remove\x20format:*\x20%0',o(_0x4570b1,this['_getTranslationKeyForListStyle'](_0x3475e8['oldValue'])))};}if('default'!=_0x3475e8['newValue'])return{'type':'format','content':''+o(_0x4570b1,'*Set\x20format:*\x20%0',o(_0x4570b1,this['_getTranslationKeyForListStyle'](_0x3475e8['newValue'])))};let _0x524c90=_0x269534['head'];for(;_0x524c90;){if(_0x524c90['data']&&'listType'==_0x524c90['data']['key']&&_0x524c90['data']['newValue']&&_0x524c90['data']['oldValue'])return _0x3434e0;_0x524c90=_0x524c90['next'];}return{'type':'format','content':o(_0x4570b1,'*Set\x20format:*\x20%0',o(_0x4570b1,'ELEMENT_'+_0x269534['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x49c54e=this['editor'],_0x1a9b29=_0x49c54e['locale'];_0x49c54e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1dd549=>{if('formatBlock'!=_0x1dd549['type'])return;const {data:_0x11cef9}=_0x1dd549;if(!_0x11cef9)return;let _0x2728a4,_0xb52873;switch(_0x11cef9['commandName']){case'listStyle':_0x2728a4='*Change\x20to:*\x20%0',_0xb52873={'type':'format','content':o(_0x1a9b29,_0x2728a4,o(_0x1a9b29,this['_getTranslationKeyForListStyle'](_0x11cef9['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2728a4=_0x11cef9['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xb52873={'type':'format','content':o(_0x1a9b29,_0x2728a4)};break;case'listStart':_0x2728a4='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xb52873={'type':'format','content':o(_0x1a9b29,_0x2728a4,_0x11cef9['commandParams'][0x0]['startIndex'])};}return _0xb52873;});}['_getTranslationKeyForListStyle'](_0x4821b6){return'ELEMENT_'+function(_0x4548a4){if(Se['includes'](_0x4548a4))return'bulleted';if(_e['includes'](_0x4548a4))return'numbered';return null;}(_0x4821b6)['toUpperCase']()+'_LIST_'+_0x4821b6['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class z extends _0x787ffb{['afterInit'](){const _0x37d004=this['editor'];_0x37d004['commands']['get']('emoji')&&_0x37d004['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class W extends _0x787ffb{static get['requires'](){return[_0x3eaa72];}['init'](){const _0x2e14ea=this['editor'],_0x27538e=_0x2e14ea['plugins']['get']('TrackChangesEditing'),_0x357a3d=_0x2e14ea['commands']['get']('enter');_0x27538e['enableCommand']('enter',()=>{_0x2e14ea['model']['change'](_0x554aa8=>{const _0x14782f=_0x2e14ea['model']['document']['selection'],_0x2b5981=_0x14782f['getFirstPosition'](),_0x44a4a4=_0x28ae54['fromRange'](_0x14782f['getFirstRange']());if(_0x357a3d['enterBlock'](_0x554aa8)){const _0x3a1cb1=_0x2e14ea['model']['createPositionAt'](_0x2b5981['parent']['nextSibling'],0x0),_0x4906fe=_0x554aa8['createRange'](_0x2b5981,_0x3a1cb1);_0x27538e['markInsertion'](_0x4906fe);}else _0x554aa8['setSelection'](_0x554aa8['createRange'](_0x44a4a4['end']));_0x44a4a4['detach'](),_0x357a3d['fire']('afterExecute',{'writer':_0x554aa8});});}),_0x2e14ea['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x2e14ea,'split'),{'priority':'high'}),_0x2e14ea['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x1039ea,_0x3cf9b4,_0x490062)=>{const _0x31d09e=_0x490062['mapper']['markerNameToElements'](_0x3cf9b4['markerName']);if(_0x31d09e){for(const _0x36c102 of _0x31d09e)_0x36c102['hasClass']('ck-suggestion-marker-split')&&(_0x490062['mapper']['unbindElementFromMarkerName'](_0x36c102,_0x3cf9b4['markerName']),_0x490062['writer']['remove'](_0x36c102));}},{'priority':'high'}),_0x2e14ea['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xb3c685,_0x4d79a7,_0x2bd250)=>{_0x2bd250['options']['showSuggestionHighlights']&&De(_0x2e14ea,'split',{'showActiveMarker':!0x1})['bind'](this)(_0xb3c685,_0x4d79a7,_0x2bd250);},{'priority':'high'});}}class Q extends _0x787ffb{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x305b52=this['editor']['plugins']['get']('TrackChangesEditing');_0x305b52['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x305b52['enableCommand']('findNext'),_0x305b52['enableCommand']('findPrevious'),_0x305b52['enableCommand']('replace'),_0x305b52['enableCommand']('replaceAll');}['handleFindCommand'](_0x599e77,_0x1dedd8,_0x2dd7df={}){const _0x4f2478=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x599e77(_0x307c3d=>{let _0x259d40=('string'==typeof _0x1dedd8?_0x4f2478['findByTextCallback'](_0x1dedd8,_0x2dd7df):_0x1dedd8)(_0x307c3d);Array['isArray'](_0x259d40)&&(_0x259d40={'results':_0x259d40,'searchText':'string'==typeof _0x1dedd8?_0x1dedd8:''});const _0x54e60f=_0x259d40['results']['filter'](_0x5d13d8=>!0x1===this['_isInDeletionRange'](_0x5d13d8,_0x307c3d['item']));return{..._0x259d40,'results':_0x54e60f};},_0x2dd7df);}['_isInDeletionRange'](_0x4ed3ab,_0xb1a110){const _0x46a29c=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xb1a110,_0x4ed3ab['start']),this['editor']['model']['createPositionAt'](_0xb1a110,_0x4ed3ab['end']));for(const _0x5f0754 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x46a29c['getIntersection'](_0x5f0754['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 _0x787ffb{['afterInit'](){const _0x4af448=this['editor']['locale'],_0x24e4b9=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x3f01df,commandName:_0x3fe3c9}of eo)this['editor']['plugins']['has'](_0x3f01df)&&(_0x24e4b9['enableDefaultAttributesIntegration'](_0x3fe3c9),_0x24e4b9['registerInlineAttribute'](_0x3fe3c9));_0x24e4b9['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x4af448,'FORMAT_FONT_SIZE')),_0x24e4b9['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x4af448,'FORMAT_FONT_FAMILY')),_0x24e4b9['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x4af448,'FORMAT_FONT_COLOR')),_0x24e4b9['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x4af448,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2b94ec=this['editor'],_0x30e9ec=_0x2b94ec['locale'];_0x2b94ec['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x28a5d6=>{const _0x40b0e6=_0x30e9ec['t'];if('formatInline'!=_0x28a5d6['type'])return;const {data:_0x387a5e}=_0x28a5d6;if(null!=_0x387a5e){if('fontSize'==_0x387a5e['commandName']){const _0x4672fa=_0x387a5e['commandParams'][0x0]['value'];if(_0x4672fa){const _0xe5cdf8=_0x40b0e6(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x14fa23=>_0x14fa23['model']==_0x4672fa)['title'])['toLowerCase']();return{'type':'format','content':o(_0x30e9ec,'*Set\x20font\x20size:*\x20%0',_0xe5cdf8)};}return{'type':'format','content':o(_0x30e9ec,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x387a5e['commandName']){const _0x2ed177=_0x387a5e['commandParams'][0x0]['value'];return _0x2ed177?{'type':'format','content':o(_0x30e9ec,'*Set\x20font\x20family:*\x20%0',_0x2ed177)}:{'type':'format','content':o(_0x30e9ec,'*Reset\x20font\x20family*')};}if('fontColor'==_0x387a5e['commandName']){const _0x2c204f=_0x387a5e['commandParams'][0x0]['value'];if(_0x2c204f){const _0x47a6a2=_0x306949(this['editor']['config']['get']('fontColor.colors'))['find'](_0x54f689=>_0x54f689['model']==_0x2c204f);let _0x1941d9=_0x2c204f,_0xf9848e='';return _0x47a6a2&&(_0x1941d9=_0x47a6a2['label'],_0xf9848e=_0x40b0e6(_0x1941d9)['toLowerCase']()),{'type':'format','content':o(_0x30e9ec,'*Set\x20font\x20color:*\x20%0',_0xf9848e)['trim'](),'color':{'value':_0x2c204f,'title':_0xf9848e||_0x1941d9}};}return{'type':'format','content':o(_0x30e9ec,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x387a5e['commandName']){const _0x3604e8=_0x387a5e['commandParams'][0x0]['value'];if(_0x3604e8){const _0x2aeda6=_0x306949(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x32531f=>_0x32531f['model']==_0x3604e8);let _0xab49d7=_0x3604e8,_0x224c3e='';return _0x2aeda6&&(_0xab49d7=_0x2aeda6['label'],_0x224c3e=_0x40b0e6(_0xab49d7)['toLowerCase']()),{'type':'format','content':o(_0x30e9ec,'*Set\x20font\x20background\x20color:*\x20%0',_0x224c3e)['trim'](),'color':{'value':_0x3604e8,'title':_0x224c3e||_0xab49d7}};}return{'type':'format','content':o(_0x30e9ec,'*Reset\x20font\x20background\x20color*')};}}});}}class Y extends _0x787ffb{['afterInit'](){const _0x2dbc7a=this['editor'],_0x3f8f0c=_0x2dbc7a['plugins']['get']('TrackChangesEditing'),_0x34eb06=_0x2dbc7a['commands']['get']('copyFormat'),_0x224b14=_0x2dbc7a['commands']['get']('pasteFormat');_0x34eb06&&_0x224b14&&(_0x3f8f0c['enableDefaultAttributesIntegration']('pasteFormat'),_0x3f8f0c['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x364ac5=this['editor'],_0x1a919a=_0x364ac5['locale'];_0x364ac5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2cb530=>{if('formatBlock'!=_0x2cb530['type']&&'formatInline'!=_0x2cb530['type'])return;const {data:_0x7ade7}=_0x2cb530;if(_0x7ade7&&'pasteFormat'===_0x7ade7['commandName']){const _0x1387c8=[],_0x4d13e7=_0x7ade7['commandParams'][0x0];for(const [_0x446ec0,_0x2fe012]of Object['entries'](_0x4d13e7))_0x1387c8['push'](ro(_0x364ac5,_0x446ec0,_0x2fe012));return _0x1387c8['length']?{'type':'format','content':o(_0x1a919a,'*Set\x20format\x20to:*\x20%0',_0x1387c8['join'](',\x20'))}:{'type':'format','content':o(_0x1a919a,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x19107b,_0x4e7299,_0x43e32d){const _0x18b66b=_0x19107b['locale']['t'],_0xc2770f=_0x4e7299['split'](/(?=[A-Z])/)['join']('\x20'),_0x57be4c=_0x18b66b(_0xc2770f['charAt'](0x0)['toUpperCase']()+_0xc2770f['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x43e32d)return _0x57be4c;if('fontColor'===_0x4e7299||'fontBackgroundColor'===_0x4e7299){const _0x4d8b28=_0x306949(_0x19107b['config']['get']('fontColor.colors'))['find'](_0x2c77b3=>_0x2c77b3['model']==_0x43e32d);return _0x57be4c+'\x20('+(_0x4d8b28?_0x18b66b(_0x4d8b28['label'])['toLowerCase']():_0x43e32d)+')';}if('fontSize'===_0x4e7299&&isNaN(parseFloat(_0x43e32d))){const _0x138861=_0x19107b['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x19107b['config']['get']('fontSize.options'))['find'](_0x2e0b4c=>_0x2e0b4c['model']==_0x43e32d);return _0x57be4c+'\x20('+(_0x138861?_0x18b66b(_0x138861['title'])['toLowerCase']():_0x43e32d)+')';}return _0x57be4c+'\x20('+_0x43e32d+')';}class Z extends _0x787ffb{['_headingOptions'];['afterInit'](){const _0x5d4d7b=this['editor'];if(!_0x5d4d7b['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x5d4d7b['config']['get']('heading.options');const _0x3c0b38=_0x5d4d7b['locale'],_0x3efb69=_0x5d4d7b['plugins']['get']('TrackChangesEditing');_0x3efb69['enableDefaultAttributesIntegration']('heading');for(const _0xa9c1cd of this['_headingOptions'])'paragraph'!=_0xa9c1cd['model']&&_0x3efb69['descriptionFactory']['registerElementLabel'](_0xa9c1cd['model'],_0x4491b0=>{const _0x287d78=this['_getHeadingLevel'](_0xa9c1cd['model']);return null!==_0x287d78?_0x10f01a(_0x4491b0,_0x287d78):_0x118995(_0x4491b0,_0xa9c1cd['title']);});function _0x10f01a(_0x9dc148,_0x255094){return o(_0x3c0b38,'ELEMENT_HEADING',[_0x9dc148,_0x255094]);}function _0x118995(_0x4f762e,_0x293ab3){return o(_0x3c0b38,'ELEMENT_HEADING_CUSTOM',[_0x4f762e,_0x293ab3]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1c95be=this['editor'],_0x2b31fe=_0x1c95be['locale'];function _0x1fcf20(_0x49999f,_0x4464f2){return o(_0x2b31fe,'ELEMENT_HEADING_CUSTOM',[_0x49999f,_0x4464f2]);}_0x1c95be['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e49d6=>{if('formatBlock'!=_0x5e49d6['type'])return;const {data:_0x53a7d4}=_0x5e49d6;if(_0x53a7d4&&'heading'==_0x53a7d4['commandName']){const _0x3eef3a=_0x53a7d4['commandParams'][0x0]['value'],_0x51734e=this['_getHeadingLevel'](_0x3eef3a);if(null!==_0x51734e)return{'type':'format','content':o(_0x2b31fe,'*Change\x20to:*\x20%0',(_0x543b69=0x1,_0x3ae398=_0x51734e,o(_0x2b31fe,'ELEMENT_HEADING',[_0x543b69,_0x3ae398])))};const _0x515ea9=this['_headingOptions']['find'](_0x5a1075=>_0x5a1075['model']===_0x3eef3a)['title'];return{'type':'format','content':o(_0x2b31fe,'*Change\x20to:*\x20%0',_0x1fcf20(0x1,_0x515ea9))};}var _0x543b69,_0x3ae398;});}['_getHeadingLevel'](_0x19bcc9){const _0x388797=_0x19bcc9['match'](/^heading(\d+)/);if(_0x388797)return _0x388797[0x1];const _0x517fb1=this['_headingOptions']?.['find'](_0x34c6c5=>_0x34c6c5['model']==_0x19bcc9);if(_0x517fb1&&_0x517fb1['view']){const _0x3bbbae=_0x517fb1['view'],_0x20c433=(_0x3bbbae['name']??_0x3bbbae)['match'](/^h(\d+)/);if(_0x20c433)return _0x20c433[0x1];}return null;}}class tt extends _0x787ffb{['afterInit'](){const _0x3ae623=this['editor'];if(!_0x3ae623['plugins']['has']('HighlightEditing'))return;const _0x3642cd=_0x3ae623['plugins']['get']('TrackChangesEditing'),_0x5bb94e=_0x3ae623['locale'];_0x3642cd['enableDefaultAttributesIntegration']('highlight'),_0x3642cd['registerInlineAttribute']('highlight'),_0x3642cd['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x5bb94e,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x569854=this['editor'],_0x1c3fcc=_0x569854['locale'];_0x569854['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x37b4c4=>{if('formatInline'!=_0x37b4c4['type'])return;const {data:_0x267700}=_0x37b4c4;if(_0x267700&&'highlight'==_0x267700['commandName']){const _0x177fb=_0x1c3fcc['t'],_0x3f42b4=_0x267700['commandParams'][0x0]['value'];if(_0x3f42b4){const _0x3bcbbc=_0x569854['config']['get']('highlight.options')['find'](_0x2e2a82=>_0x2e2a82['model']==_0x3f42b4),_0x7d6576=_0x177fb(_0x3bcbbc['title'])['toLowerCase']();return{'type':'format','content':o(_0x1c3fcc,'*Set\x20highlight:*\x20%0',_0x7d6576),'color':{'value':_0x3bcbbc['color'],'title':_0x3bcbbc['title']}};}return{'type':'format','content':o(_0x1c3fcc,'*Remove\x20highlight*',o(_0x1c3fcc,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x787ffb{['afterInit'](){const _0x4ea7ee=this['editor'];if(!_0x4ea7ee['plugins']['has']('HorizontalLineEditing'))return;_0x4ea7ee['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x1caf71=_0x4ea7ee['plugins']['get']('TrackChangesEditing'),_0xc68deb=_0x4ea7ee['locale'];_0x1caf71['descriptionFactory']['registerElementLabel']('horizontalLine',_0x7c6d64=>o(_0xc68deb,'ELEMENT_HORIZONTAL_LINE',_0x7c6d64)),_0x4ea7ee['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x30aa26,{writer:_0x4fc269,options:_0x20e33e})=>{if(!_0x20e33e['showSuggestionHighlights'])return null;const _0x48c104=_0x4fc269['createContainerElement']('div'),_0x425429=_0x4fc269['createEmptyElement']('hr');return _0x4fc269['addClass']('ck-horizontal-line',_0x48c104),_0x4fc269['insert'](_0x4fc269['createPositionAt'](_0x48c104,0x0),_0x425429),_0x48c104;},'converterPriority':'high'});}}class nt extends _0x787ffb{['afterInit'](){const _0x7126a2=this['editor'];if(!_0x7126a2['plugins']['has']('HtmlEmbed'))return;const _0x1138a7=_0x7126a2['plugins']['get']('TrackChangesEditing'),_0x13dc87=_0x7126a2['locale'];_0x1138a7['descriptionFactory']['registerElementLabel']('rawHtml',_0x5d5cb4=>o(_0x13dc87,'ELEMENT_HTML_EMBED',_0x5d5cb4)),_0x1138a7['enableDefaultAttributesIntegration']('htmlEmbed'),_0x1138a7['registerBlockAttribute']('value'),_0x1138a7['descriptionFactory']['registerDescriptionCallback'](_0x56e60f=>{if('attribute'!=_0x56e60f['type'])return;const {data:_0x4d9192}=_0x56e60f;if(_0x4d9192&&'value'==_0x4d9192['key']&&_0x56e60f['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x5f0acb=o(_0x13dc87,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x13dc87,'*Change\x20%0\x20content*',_0x5f0acb)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xfe6bb7=this['editor'],_0x58fcd0=_0xfe6bb7['locale'];_0xfe6bb7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1cead2=>{if('formatBlock'!=_0x1cead2['type'])return;const {data:_0xf27a89}=_0x1cead2;if(_0xf27a89&&'htmlEmbed'==_0xf27a89['commandName']){const _0x316c9c=o(_0x58fcd0,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x58fcd0,'*Change\x20%0\x20content*',_0x316c9c)};}});}}class et extends _0x787ffb{['afterInit'](){const _0x2e1d71=this['editor'];if(!_0x2e1d71['plugins']['has']('ImageEditing'))return;const _0x2fb9dc=_0x2e1d71['plugins']['get']('TrackChangesEditing'),_0x1ce816=_0x2e1d71['plugins']['get']('ImageUtils'),_0x223faf=_0x2e1d71['locale'];_0x2fb9dc['enableCommand']('insertImage'),_0x2fb9dc['descriptionFactory']['registerElementLabel']('imageBlock',_0x6d8107=>o(_0x223faf,'ELEMENT_IMAGE',_0x6d8107)),_0x2fb9dc['descriptionFactory']['registerElementLabel']('imageInline',_0xe2e042=>o(_0x223faf,'ELEMENT_INLINE_IMAGE',_0xe2e042)),_0x2fb9dc['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x223faf,'ELEMENT_CAPTION')),_0x2e1d71['plugins']['has']('ImageUploadEditing')&&_0x2fb9dc['enableCommand']('uploadImage'),_0x2e1d71['plugins']['has']('ImageBlockEditing')&&_0x2e1d71['plugins']['has']('ImageInlineEditing')&&(_0x2fb9dc['enableCommand']('imageTypeInline',(_0x4c5677,_0x1b4eea)=>{const _0x35de9e=_0x1ce816['getClosestSelectedImageElement'](_0x2e1d71['model']['document']['selection']);_0x2e1d71['model']['change'](()=>{_0x2fb9dc['markBlockFormat'](_0x35de9e,{'commandName':'imageTypeInline','commandParams':[_0x1b4eea]},[],'convertBlockImageToInline');});}),_0x2fb9dc['enableCommand']('imageTypeBlock',(_0xd46e36,_0x4a8039)=>{_0x2e1d71['model']['change'](_0x14ecb4=>{let _0x1accd9=_0x1ce816['getClosestSelectedImageElement'](_0x2e1d71['model']['document']['selection']),_0x403189=_0x14ecb4['createRangeOn'](_0x1accd9);const _0x3da1b5=_0x52635a['fromPosition'](_0x403189['start'],'toPrevious'),_0x29fd93=_0x52635a['fromPosition'](_0x403189['end'],'toNext');_0x2fb9dc['forceDefaultExecution'](()=>_0xd46e36(_0x4a8039)),_0x1accd9=_0x1ce816['getClosestSelectedImageElement'](_0x2e1d71['model']['document']['selection']),_0x403189=_0x14ecb4['createRangeOn'](_0x1accd9);const _0x5b37ac=_0x14ecb4['createRange'](_0x3da1b5,_0x29fd93);_0x3da1b5['detach'](),_0x29fd93['detach'](),_0x2fb9dc['markBlockFormat'](_0x1accd9,{'commandName':'imageTypeInline','commandParams':[_0x4a8039]},[],'convertInlineImageToBlock'),_0x5b37ac['start']['isBefore'](_0x403189['start'])&&_0x2fb9dc['markInsertion'](_0x14ecb4['createRange'](_0x5b37ac['start'],_0x403189['start']),'convertInlineImageToBlock'),_0x403189['end']['isBefore'](_0x5b37ac['end'])&&_0x2fb9dc['markInsertion'](_0x14ecb4['createRange'](_0x403189['end'],_0x5b37ac['end']),'convertInlineImageToBlock');});}),_0x2fb9dc['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x2fb9dc['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x2fb9dc['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x2fb9dc['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x2fb9dc['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x2fb9dc['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3e64e0])=>{const _0x116a22=_0x2fb9dc['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x2b350c=_0x3e64e0['start'],_0x2f2cdd=_0x3e64e0['end'];const _0x3a28cc=_0x2e1d71['model']['schema']['getNearestSelectionRange'](_0x2b350c,'backward'),_0x3777da=_0x2e1d71['model']['schema']['getNearestSelectionRange'](_0x2f2cdd,'forward');_0x3a28cc['isCollapsed']&&(_0x2b350c=_0x3a28cc['start']),_0x3777da['isCollapsed']&&(_0x2f2cdd=_0x3777da['end']),_0x116a22([_0x2e1d71['model']['createRange'](_0x2b350c,_0x2f2cdd)]);}),_0x2fb9dc['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x1ade5d),_0x2fb9dc['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x1ade5d)),_0x2e1d71['plugins']['has']('ImageCaptionEditing')&&(_0x2fb9dc['enableCommand']('toggleImageCaption',(_0x5b3f35,_0x109670)=>{const _0x1652ed=_0x2e1d71['plugins']['get']('ImageCaptionUtils');let _0x1d296b=_0x1ce816['getClosestSelectedImageElement'](_0x2e1d71['model']['document']['selection']),_0x179e34=_0x1652ed['getCaptionFromImageModelElement'](_0x1d296b);_0x2e1d71['model']['change'](()=>{if(_0x179e34)return void _0x2fb9dc['markDeletion'](_0x2e1d71['model']['createRangeOn'](_0x179e34));const _0x5eb675=_0x1ce816['isBlockImage'](_0x1d296b);_0x5b3f35(_0x109670),_0x1d296b=_0x1ce816['getClosestSelectedImageElement'](_0x2e1d71['model']['document']['selection']),_0x179e34=_0x1652ed['getCaptionFromImageModelElement'](_0x1d296b),_0x2fb9dc['markInsertion'](_0x2e1d71['model']['createRangeOn'](_0x179e34),_0x5eb675?null:'imageCaption');});}),_0x2fb9dc['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x1ade5d));const _0x41e250=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2368af(_0x34f697,_0x243b59){const _0x4291ff=_0x41e250['findIndex'](({type:_0x274e75,subType:_0x153875})=>_0x34f697['type']==_0x274e75&&_0x34f697['subType']==_0x153875),_0x1302ea=_0x41e250['findIndex'](({type:_0x3a573e,subType:_0x1d0db3})=>_0x243b59['type']==_0x3a573e&&_0x243b59['subType']==_0x1d0db3);if(_0x4291ff<0x0||_0x1302ea<0x0)return!0x1;const _0x5739e3=_0x34f697['getFirstRange'](),_0x3552fe=_0x243b59['getFirstRange']();if((0x0==_0x4291ff||0x1==_0x4291ff)&&0x2==_0x1302ea&&_0x5739e3['isIntersecting'](_0x3552fe))return!0x0;if(0x2==_0x4291ff&&0x3==_0x1302ea){const _0x3e0a1c=_0x2fb9dc['_findSuggestions'](_0x5739e3,'insertion')['filter'](({suggestion:_0x49594c,meta:_0x25abb5})=>_0x25abb5['isOwn']&&'convertInlineImageToBlock'==_0x49594c['subType']);if(_0x3e0a1c['length']>0x1&&_0x3552fe['end']['isEqual'](_0x5739e3['start']))return!0x0;if(0x1==_0x3e0a1c['length']&&(_0x5739e3['start']['isEqual'](_0x3552fe['end'])||_0x5739e3['end']['isEqual'](_0x3552fe['start'])))return!0x0;}if(0x3==_0x4291ff&&0x3==_0x1302ea&&_0x5739e3['start']['isBefore'](_0x3552fe['start'])){const _0x9d6c0a=_0x5739e3['end']['nodeAfter'],_0x455c6c=_0x3552fe['start']['nodeBefore'];return _0x1ce816['isBlockImage'](_0x9d6c0a)&&_0x9d6c0a===_0x455c6c;}return!0x1;}function _0x1ade5d(_0x30ed62,_0x5f077f){return _0x2368af(_0x30ed62,_0x5f077f)?[_0x30ed62,_0x5f077f]:_0x2368af(_0x5f077f,_0x30ed62)?[_0x5f077f,_0x30ed62]:null;}_0x2e1d71['plugins']['has']('ImageResize')&&(_0x2fb9dc['enableDefaultAttributesIntegration']('resizeImage'),_0x2fb9dc['registerBlockAttribute']('resizedWidth'),_0x2fb9dc['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x223faf,'FORMAT_IMAGE_SIZE'))),_0x2e1d71['plugins']['has']('ImageTextAlternativeEditing')&&(_0x2fb9dc['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x2fb9dc['registerBlockAttribute']('alt')),_0x2e1d71['plugins']['has']('PictureEditing')&&(_0x2fb9dc['registerBlockAttribute']('sources'),_0x2fb9dc['descriptionFactory']['registerDescriptionCallback'](_0x503a15=>{if('attribute'!=_0x503a15['type'])return;const {data:_0xe14f05}=_0x503a15;return _0xe14f05&&'sources'==_0xe14f05['key']?{'type':'format','content':''}:void 0x0;})),_0x2e1d71['plugins']['has']('ImageSizeAttributes')&&(_0x2fb9dc['registerBlockAttribute']('width'),_0x2fb9dc['registerBlockAttribute']('height'),_0x2fb9dc['descriptionFactory']['registerDescriptionCallback'](_0x2b7ef2=>{if('attribute'!=_0x2b7ef2['type'])return;const {data:_0x29f345}=_0x2b7ef2;return!_0x29f345||'width'!=_0x29f345['key']&&'height'!=_0x29f345['key']?void 0x0:{'type':'format','content':''};})),_0x2fb9dc['descriptionFactory']['registerDescriptionCallback'](_0x582cff=>{if(!!_0x41e250['find'](({type:_0x247924,subType:_0x3f8fef})=>_0x582cff['type']==_0x247924&&_0x582cff['subType']==_0x3f8fef))return _0x582cff['previous']?{}:void 0x0;}),_0x2fb9dc['descriptionFactory']['registerDescriptionCallback'](_0x1b7656=>{if('insertion'==_0x1b7656['type']||'deletion'==_0x1b7656['type']){const _0x4ccc5f=_0x1b7656['getContainedElement']();if(_0x4ccc5f&&_0x4ccc5f['is']('element','caption'))return{'type':'insertion'==_0x1b7656['type']?'addObject':'removeObject','element':_0x4ccc5f,'quantity':0x1};}}),_0x2fb9dc['descriptionFactory']['registerDescriptionCallback'](_0x4d8240=>'formatBlock'==_0x4d8240['type']&&'convertInlineImageToBlock'==_0x4d8240['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x4d8240['type']&&'convertBlockImageToInline'==_0x4d8240['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x2fb9dc['descriptionFactory']['registerDescriptionCallback'](_0x49d68c=>{if('attribute'!=_0x49d68c['type'])return;const {data:_0x40dc3f}=_0x49d68c;if(!_0x40dc3f||'alt'!=_0x40dc3f['key'])return;const _0xed6d00=_0x40dc3f['newValue'];return _0xed6d00?{'type':'format','content':o(_0x223faf,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xed6d00+'\x22')}:{'type':'format','content':o(_0x223faf,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3e2ca9=this['editor'],_0x2e64f8=_0x3e2ca9['locale'];_0x3e2ca9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x156637=>{if('formatBlock'!=_0x156637['type']&&'formatInline'!=_0x156637['type'])return;const {data:_0xb455ce}=_0x156637;if(_0xb455ce){if('imageTextAlternative'==_0xb455ce['commandName']){const _0x43a32c=_0xb455ce['commandParams'][0x0]['newValue'];return _0x43a32c?{'type':'format','content':o(_0x2e64f8,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x43a32c+'\x22')}:{'type':'format','content':o(_0x2e64f8,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0xb455ce['commandName']){const _0x10e805=_0xb455ce['commandParams'][0x0]['width'];return _0x10e805?{'type':'format','content':o(_0x2e64f8,'*Set\x20image\x20width:*\x20%0',_0x10e805)}:{'type':'format','content':o(_0x2e64f8,'*Reset\x20image\x20width*')};}}});}}class st extends _0x787ffb{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x2410ef=this['editor']['locale'],_0x852f28=this['editor']['plugins']['get']('TrackChangesEditing');_0x852f28['enableDefaultAttributesIntegration']('replaceImageSource'),_0x852f28['registerBlockAttribute']('src'),_0x852f28['descriptionFactory']['registerDescriptionCallback'](_0x5a95c1=>{if('attribute'!=_0x5a95c1['type'])return;const {data:_0x30e64e}=_0x5a95c1;return _0x30e64e&&'src'==_0x30e64e['key']?_0x30e64e['newValue']&&_0x30e64e['oldValue']?{'type':'format','content':o(_0x2410ef,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1cebd1=this['editor']['plugins']['get']('TrackChangesEditing');_0x1cebd1['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x1cebd1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1cebd1['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x1cebd1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3cec3d=this['editor'],_0x22a4a1=_0x3cec3d['locale'];_0x3cec3d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47f950=>{if('formatBlock'!=_0x47f950['type']&&'formatInline'!=_0x47f950['type'])return;const {data:_0x5a0f7f}=_0x47f950;if(!_0x5a0f7f||'replaceImageSource'!=_0x5a0f7f['commandName'])return;return{'type':'format','content':o(_0x22a4a1,'*Format:*\x20replace\x20image\x20URL')};});}}class ot extends _0x787ffb{['afterInit'](){const _0x3ab592=this['editor'];if(!_0x3ab592['plugins']['has']('ImageStyleEditing'))return;const _0x276f64=_0x3ab592['plugins']['get']('TrackChangesEditing'),_0x1f6521=_0x3ab592['plugins']['get']('ImageUtils'),_0x2eedda={};_0x276f64['enableCommand']('imageStyle',(_0x42fa95,_0x2d0467)=>{const _0x221c85=_0x3ab592['plugins']['get']('Users')['me'],_0x1c248b=_0x3ab592['commands']['get']('imageStyle');let _0x154fab=_0x1f6521['getClosestSelectedImageElement'](_0x3ab592['model']['document']['selection']),_0x32a461=_0x3ab592['model']['createRangeOn'](_0x154fab),_0x263aaa=_0x1c248b['value'];if(_0x263aaa==_0x2d0467['value'])return;const _0x37d05b={'commandName':'imageStyle','commandParams':[_0x2d0467],'formatGroupId':_0x542cda()};_0x3ab592['model']['change'](()=>{if(_0x276f64['getSuggestions']()['filter'](_0x465f23=>_0x465f23['isInContent']&&_0x221c85==_0x465f23['author']&&('formatBlock'==_0x465f23['type']||'formatInline'==_0x465f23['type'])&&('imageStylePreApply'==_0x465f23['subType']||'imageStylePostApply'==_0x465f23['subType'])&&_0x465f23['getFirstRange']()['isEqual'](_0x32a461))['forEach'](_0x14f3bd=>_0x276f64['discardSuggestion'](_0x14f3bd['head'])),_0x154fab=_0x1f6521['getClosestSelectedImageElement'](_0x3ab592['model']['document']['selection']),_0x32a461=_0x3ab592['model']['createRangeOn'](_0x154fab),_0x1c248b['refresh'](),_0x3ab592['commands']['get']('imageTypeInline')['refresh'](),_0x3ab592['commands']['get']('imageTypeBlock')['refresh'](),_0x263aaa=_0x1c248b['value'],_0x263aaa!=_0x2d0467['value'])return _0x1f6521['isInlineImage'](_0x154fab)&&_0x1c248b['shouldConvertImageType'](_0x2d0467['value'],_0x154fab)?(_0x42fa95({..._0x2d0467,'setImageSizes':!0x1}),_0x154fab=_0x1f6521['getClosestSelectedImageElement'](_0x3ab592['model']['document']['selection']),void _0x276f64['markBlockFormat'](_0x154fab,{..._0x37d05b,'commandReversedParams':[{'value':_0x263aaa||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x1f6521['isBlockImage'](_0x154fab)?_0x276f64['markBlockFormat'](_0x154fab,_0x37d05b,[],'imageStylePostApply'):_0x276f64['markInlineFormat'](_0x32a461,_0x37d05b,'imageStylePostApply'));});});for(const _0xb4bab of _0x3ab592['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x2eedda[_0xb4bab['name']]=_0xb4bab['title']['toLowerCase']();_0x276f64['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x276f64['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x276f64['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x276f64['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x689c87])=>{_0x1f6521['setImageNaturalSizeAttributes'](_0x689c87['getContainedElement']());}),_0x276f64['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x53fd5c,_0x30cf91)=>{_0x276f64['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x53fd5c,{'commandName':_0x30cf91['commandName'],'commandParams':_0x30cf91['commandReversedParams']});}),_0x276f64['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x5f28ea,_0x29746b){if(_0x37a87b(_0x5f28ea,_0x29746b))return[_0x5f28ea,_0x29746b];if(_0x37a87b(_0x29746b,_0x5f28ea))return[_0x29746b,_0x5f28ea];return null;});const _0x463105=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x37a87b(_0x34b674,_0x4b8900){const _0x59cd35=_0x463105['findIndex'](({type:_0x59fb01,subType:_0x3b1d51})=>_0x34b674['type']==_0x59fb01&&_0x34b674['subType']==_0x3b1d51),_0x187581=_0x463105['findIndex'](({type:_0x5f4c9e,subType:_0x2125dc})=>_0x4b8900['type']==_0x5f4c9e&&_0x4b8900['subType']==_0x2125dc);if(_0x59cd35<0x0||_0x187581<0x0)return!0x1;const _0x3e201d=_0x34b674['getFirstRange'](),_0x289c83=_0x4b8900['getFirstRange']();if((0x0==_0x59cd35||0x1==_0x59cd35)&&0x2==_0x187581&&_0x3e201d['isIntersecting'](_0x289c83))return!0x0;if(0x2==_0x59cd35&&0x3==_0x187581){const _0x517479=_0x276f64['_findSuggestions'](_0x3e201d,'insertion')['filter'](({suggestion:_0x49e436,meta:_0x36eda7})=>_0x36eda7['isOwn']&&'convertInlineImageToBlock'==_0x49e436['subType']);if(_0x517479['length']>0x1&&_0x289c83['end']['isEqual'](_0x3e201d['start']))return!0x0;if(0x1==_0x517479['length']&&(_0x3e201d['start']['isEqual'](_0x289c83['end'])||_0x3e201d['end']['isEqual'](_0x289c83['start'])))return!0x0;}if(0x3==_0x59cd35&&0x3==_0x187581&&_0x3e201d['start']['isBefore'](_0x289c83['start'])){const _0x327d74=_0x3e201d['end']['nodeAfter'],_0x4f24c3=_0x289c83['start']['nodeBefore'];return _0x1f6521['isBlockImage'](_0x327d74)&&_0x327d74===_0x4f24c3;}return!0x1;}_0x3ab592['model']['document']['registerPostFixer'](()=>{let _0x32a760=!0x1;const _0x10d120=Array['from'](_0x3ab592['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1e0ef2,data:_0x29369e}of _0x10d120){const {group:_0x4789bf,type:_0x20f279,subType:_0x4d8b0f,id:_0x52d7d8}=_0x276f64['_splitMarkerName'](_0x1e0ef2);if('suggestion'==_0x4789bf&&_0x276f64['hasSuggestion'](_0x52d7d8)){if('formatBlock'==_0x20f279&&('imageStylePreApply'==_0x4d8b0f||'imageStylePostApply'==_0x4d8b0f)){const _0x3b8e29=_0x276f64['getSuggestion'](_0x52d7d8);if(_0x29369e['newRange']){const _0x1a3ad3=_0x3b8e29['getFirstRange']()['getContainedElement']();if(_0x1f6521['isBlockImage'](_0x1a3ad3))continue;_0x276f64['discardSuggestion'](_0x3b8e29),_0x32a760=!0x0;}}if('insertion'==_0x20f279&&'imageCaption'==_0x4d8b0f&&!_0x29369e['newRange']){const _0x18e628=_0x276f64['getSuggestion'](_0x52d7d8);_0x18e628['next']&&_0x18e628['next']['isInContent']&&(_0x276f64['discardSuggestion'](_0x18e628['next']),_0x32a760=!0x0);}}}return _0x32a760;}),this['_registerLegacyDescription'](_0x2eedda);}['_registerLegacyDescription'](_0x13b59f){const _0x2eec44=this['editor'],_0x25a1bc=_0x2eec44['locale'];_0x2eec44['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a82b0=>{if('formatBlock'!=_0x3a82b0['type']&&'formatInline'!=_0x3a82b0['type'])return;const {data:_0x22d1ee}=_0x3a82b0;if(!_0x22d1ee||'imageStyle'!=_0x22d1ee['commandName'])return;const _0x574ed9=_0x22d1ee['commandParams'][0x0]['value'];return _0x7b2156('side'===_0x574ed9?o(_0x25a1bc,'FORMAT_SIDE_IMAGE'):_0x13b59f[_0x574ed9]||_0x574ed9);function _0x7b2156(_0x32d040){return{'type':'format','content':o(_0x25a1bc,'*Format:*\x20%0',_0x32d040)};}});}}class rt extends _0x787ffb{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x300e8f){super(_0x300e8f),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x570f56=this['editor'],_0x4c645a=_0x570f56['commands']['get']('importWord'),_0x3fe5cf=_0x570f56['commands']['get']('trackChanges');_0x4c645a&&(_0x4c645a['on']('execute',(_0x5687ce,[,_0x432961])=>{this['_trackChangesValueDuringImport']=_0x3fe5cf['value'],_0x432961['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x4c645a,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x4c645a,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x3fe5cf['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x570f56['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x31eec1,_0x1cb9da){const {suggestions:_0x3d48f4}=_0x1cb9da,_0xc5f5c0=this['editor']['commands']['get']('trackChanges'),_0x27c284=_0xc5f5c0['value'];this['_trackChangesValueDuringImport']!==_0x27c284&&(_0xc5f5c0['execute'](),this['_trackChangesExecuted']=!0x0),_0x3d48f4&&_0x3d48f4['forEach'](({id:_0x4cf2e9,type:_0x4e7af3,author:_0x58176b,created_at:_0x3cf5ed})=>{const _0x214177={'id':_0x4cf2e9,'type':_0x4e7af3,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x58176b,'createdAt':_0x3cf5ed?new Date(_0x3cf5ed):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x214177);});}}class at extends _0x787ffb{['afterInit'](){const _0x3905e7=this['editor'],_0x55fab5=_0x3905e7['plugins']['get']('TrackChangesEditing');if(_0x3905e7['plugins']['has']('IndentEditing')&&(_0x55fab5['enableCommand']('indent'),_0x55fab5['enableCommand']('outdent')),_0x3905e7['plugins']['has']('IndentBlock')){for(const _0x427265 of['indentBlock','outdentBlock'])_0x55fab5['enableDefaultAttributesIntegration'](_0x427265);}const _0x15c7a6=_0x3905e7['locale'];_0x55fab5['registerBlockAttribute']('blockIndent'),_0x55fab5['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x15c7a6,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x287e5b=this['editor'],_0x2cd6e8=_0x287e5b['locale'],_0x344367=_0x287e5b['plugins']['get']('TrackChangesEditing');_0x344367['descriptionFactory']['registerDescriptionCallback'](_0x5d1aae=>{if('formatBlock'!=_0x5d1aae['type'])return;const {data:_0x2e96e4}=_0x5d1aae;if(!_0x2e96e4)return;if('indentBlock'!=_0x2e96e4['commandName']&&'outdentBlock'!=_0x2e96e4['commandName'])return;const _0x5c2d08=_0x5d1aae['getItems']()[0x0],_0x505e25=_0x344367['descriptionFactory']['getItemLabel'](_0x5c2d08);return'indentBlock'==_0x2e96e4['commandName']?{'type':'format','content':o(_0x2cd6e8,'*Indent:*\x20%0',_0x505e25)}:'outdentBlock'==_0x2e96e4['commandName']?{'type':'format','content':o(_0x2cd6e8,'*Outdent:*\x20%0',_0x505e25)}:void 0x0;});}}class ct extends _0x787ffb{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ut extends _0x787ffb{['afterInit'](){const _0x28dcfb=this['editor'];if(!_0x28dcfb['plugins']['has']('LinkEditing'))return;const _0x4e8613=_0x28dcfb['plugins']['get']('TrackChangesEditing'),_0x138908=_0x28dcfb['commands']['get']('link');_0x4e8613['enableDefaultAttributesIntegration']('link'),_0x4e8613['enableDefaultAttributesIntegration']('unlink'),_0x4e8613['registerInlineAttribute']('linkHref');for(const _0x2d87cc of _0x138908['manualDecorators'])_0x4e8613['registerInlineAttribute'](_0x2d87cc['id']),_0x4e8613['descriptionFactory']['registerAttributeLabel'](_0x2d87cc['id'],'link\x20('+_0x2d87cc['label']['toLowerCase']()+')');_0x4e8613['descriptionFactory']['registerDescriptionCallback'](_0x1f3cc0=>{if('attribute'!=_0x1f3cc0['type'])return;const {data:_0x28b712}=_0x1f3cc0;if(!_0x28b712||'linkHref'!=_0x28b712['key'])return;const _0x5ed8fa=_0x28b712['newValue'],_0x450c29=_0x28dcfb['locale'];return{'type':'format','content':null==_0x5ed8fa?o(_0x450c29,'*Remove\x20link*'):o(_0x450c29,'*Set\x20link:*\x20%0','\x22'+_0x5ed8fa+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x22430b=this['editor'],_0x509f1c=_0x22430b['locale'];_0x22430b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x53be97=>{if('formatInline'!=_0x53be97['type'])return;const {data:_0x473b64}=_0x53be97;if(_0x473b64){if('link'==_0x473b64['commandName']){const _0x30018f=_0x473b64['commandParams'][0x0];return{'type':'format','content':o(_0x509f1c,'*Set\x20link:*\x20%0','\x22'+_0x30018f+'\x22')};}return'unlink'==_0x473b64['commandName']?{'type':'format','content':o(_0x509f1c,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x787ffb{['afterInit'](){const _0xa0c19e=this['editor'],_0x1f030e=_0xa0c19e['locale'];if(!_0xa0c19e['plugins']['has']('LegacyListEditing'))return;const _0x5754f3=_0xa0c19e['plugins']['get']('TrackChangesEditing'),_0x2e30f6=_0xa0c19e['plugins']['has']('LegacyTodoListEditing');function _0x30a81b(_0x54b5ba){return()=>{const _0x5d351e=_0xa0c19e['model']['document']['selection'],_0x942fbb=_0xa0c19e['commands']['get'](_0x54b5ba);if(_0x942fbb['value'])return void _0xa0c19e['execute']('paragraph',{});const _0x3b10f7=_0x54b5ba['slice'](0x0,-0x4),_0x5ab995=function(_0x9a977d,_0x1b1e89,_0x27fa5d){let _0x416a16=Array['from'](_0x9a977d)['filter'](_0x912212=>function(_0x1145e4,_0xfd67f5){return _0xfd67f5['checkChild'](_0x1145e4['parent'],'listItem')&&!_0xfd67f5['isObject'](_0x1145e4);}(_0x912212,_0x27fa5d));_0x416a16=_0x416a16['filter'](_0x3cc21c=>!_0x3cc21c['is']('element','listItem')||_0x3cc21c['getAttribute']('listType')!=_0x1b1e89);const _0x226767=new Set();for(const _0x20d53f of _0x416a16)_0x20d53f['is']('element','listItem')?_0x226767['add'](Le(_0x20d53f)):_0x226767['add'](_0x20d53f);return Array['from'](_0x226767);}(_0x5d351e['getSelectedBlocks'](),_0x3b10f7,_0xa0c19e['model']['schema']);_0xa0c19e['model']['change'](()=>{for(const _0x264787 of _0x5ab995)_0x5754f3['markBlockFormat'](_0x264787,{'commandName':_0x54b5ba,'commandParams':[{'forceValue':!_0x942fbb['value']}],'formatGroupId':'blockName'},Ee(_0x264787));});};}function _0x5038ac(_0x4d1dae){return()=>{const _0x39fd88=function(_0xc443e1){let _0x26193b=Array['from'](_0xc443e1);const _0x102879=_0x26193b['findIndex'](_0x19d4ea=>'listItem'!=_0x19d4ea['name']);return _0x102879>-0x1&&(_0x26193b=_0x26193b['slice'](0x0,_0x102879)),_0x26193b;}(_0xa0c19e['model']['document']['selection']['getSelectedBlocks']()),_0x357991=_0xa0c19e['model']['createRange'](_0xa0c19e['model']['createPositionAt'](_0x39fd88[0x0],'before'),_0xa0c19e['model']['createPositionAt'](_0x39fd88[_0x39fd88['length']-0x1],'end'));_0xa0c19e['model']['change'](()=>{_0x5754f3['markBlockFormat'](_0x357991,{'commandName':_0x4d1dae,'commandParams':[],'formatGroupId':'listIndent'},function(_0x39991b){const _0xa2ed4a=new Set();for(const _0x29e35a of _0x39991b){let _0x3f896a=_0x29e35a['nextSibling'];for(;_0x3f896a&&_0x3f896a['getAttribute']('listIndent')>_0x29e35a['getAttribute']('listIndent');)_0xa2ed4a['add'](_0x3f896a),_0x3f896a=_0x3f896a['nextSibling'];}return Array['from'](_0xa2ed4a);}(_0x39fd88));});};}_0x5754f3['enableCommand']('numberedList',_0x30a81b('numberedList')),_0x5754f3['enableCommand']('bulletedList',_0x30a81b('bulletedList')),_0x2e30f6&&_0x5754f3['enableCommand']('todoList',_0x30a81b('todoList')),_0x5754f3['enableCommand']('indentList',_0x5038ac('indentList')),_0x5754f3['enableCommand']('outdentList',_0x5038ac('outdentList')),_0x2e30f6&&_0x5754f3['enableCommand']('checkTodoList',()=>{const _0x4416d1=_0xa0c19e['commands']['get']('checkTodoList'),_0xaad0bf=Array['from'](_0x4416d1['_selectedElements']);_0xaad0bf['filter'](_0x3158de=>_0x3158de['getAttribute']('todoListChecked')!=_0x4416d1['value']),_0xa0c19e['model']['change'](()=>{for(const _0x20e72f of _0xaad0bf)_0x5754f3['markBlockFormat'](_0x20e72f,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x4416d1['value']}]});});}),_0x5754f3['descriptionFactory']['registerElementLabel']('listItem',_0x9650f6=>o(_0x1f030e,'ELEMENT_LIST_ITEM',_0x9650f6)),_0x5754f3['descriptionFactory']['registerDescriptionCallback'](_0x72e4d=>{if('formatBlock'!=_0x72e4d['type']&&'formatInline'!=_0x72e4d['type'])return;const {data:_0x3273f8}=_0x72e4d;if(_0x3273f8){if('numberedList'==_0x3273f8['commandName']||'bulletedList'==_0x3273f8['commandName']||'todoList'==_0x3273f8['commandName'])switch(_0x3273f8['commandName']['replace']('List','')){case'bulleted':return _0x34eb42(o(_0x1f030e,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x34eb42(o(_0x1f030e,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x34eb42(o(_0x1f030e,'ELEMENT_TODO_LIST'));}if('indentList'==_0x3273f8['commandName'])return{'type':'format','content':o(_0x1f030e,'*Indent:*\x20%0',o(_0x1f030e,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x3273f8['commandName'])return{'type':'format','content':o(_0x1f030e,'*Outdent:*\x20%0',o(_0x1f030e,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x3273f8['commandName'])return _0x3273f8['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1f030e,'*Check\x20item*')}:{'type':'format','content':o(_0x1f030e,'*Uncheck\x20item*')};}function _0x34eb42(_0x5412eb){return{'type':'format','content':o(_0x1f030e,'*Change\x20to:*\x20%0',_0x5412eb)};}});}}function Le(_0x4a6cf4){const _0xad9b0c=_0x4a6cf4['getAttribute']('listIndent');if(0x0==_0xad9b0c)return _0x4a6cf4;let _0x336b58=_0x4a6cf4;for(;_0x4a6cf4['previousSibling']&&_0x4a6cf4['previousSibling']['is']('element','listItem');){const _0x480957=_0x4a6cf4['previousSibling']['getAttribute']('listIndent');if(_0x480957==_0xad9b0c)_0x336b58=_0x4a6cf4['previousSibling'];else{if(_0x480957<_0xad9b0c)break;}_0x4a6cf4=_0x4a6cf4['previousSibling'];}return _0x336b58;}function Ee(_0x3b1c7a){const _0x568a57=[];if(_0x3b1c7a['is']('element','listItem')&&_0x3b1c7a['getAttribute']('listIndent')>0x0){let _0x19e1b5=_0x3b1c7a['nextSibling'];for(;_0x19e1b5&&'listItem'==_0x19e1b5['name']&&_0x19e1b5['getAttribute']('listIndent')==_0x3b1c7a['getAttribute']('listIndent');)_0x568a57['push'](_0x19e1b5),_0x19e1b5=_0x19e1b5['nextSibling'];}return _0x568a57;}class ht extends _0x787ffb{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x2fb29c=this['editor']['config']['get']('list.properties'),_0x2f5003=this['editor']['plugins']['get']('TrackChangesEditing');_0x2fb29c['styles']&&_0x2f5003['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x2fb29c['reversed']&&_0x2f5003['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x2fb29c['startIndex']&&_0x2f5003['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x2f5003['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x3b1f55,_0x40f51e={}){const _0x121b04=this['editor']['plugins']['get']('TrackChangesEditing'),_0x46126f=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x121b04['markMultiRangeBlockFormat'](_0x46126f,{'commandName':'listStyle','commandParams':[{'type':_0x40f51e['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x33dd2a,_0x295920={}){const _0x15e3c2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x38a850=this['_getSuggestionBlocks'](_0x96fe89=>_0x96fe89['is']('element','listItem')&&'numbered'===_0x96fe89['getAttribute']('listType'));if(_0x38a850['length']<0x1)return;const _0x54cfaa=_0x38a850['map'](_0x5d091c=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5d091c,'before'),this['editor']['model']['createPositionAt'](_0x5d091c,0x0)));this['editor']['model']['change'](()=>{_0x15e3c2['markMultiRangeBlockFormat'](_0x54cfaa,{'commandName':'listReversed','commandParams':[{'reversed':_0x295920['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x56bc14,_0x16ff77={}){const _0x1f2e6e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x18e108=this['_getSuggestionBlocks'](_0x435591=>_0x435591['is']('element','listItem')&&'numbered'===_0x435591['getAttribute']('listType'));if(_0x18e108['length']<0x1)return;const _0x180ce2=_0x18e108['map'](_0x40409a=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x40409a,'before'),this['editor']['model']['createPositionAt'](_0x40409a,0x0)));this['editor']['model']['change'](()=>{_0x1f2e6e['markMultiRangeBlockFormat'](_0x180ce2,{'commandName':'listStart','commandParams':[{'startIndex':_0x16ff77['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x212034){if('formatBlock'!=_0x212034['type']&&'formatInline'!=_0x212034['type'])return;const _0xb6367=this['editor']['locale'],{data:_0x191144}=_0x212034;if(!_0x191144)return;let _0x4ff79a,_0x5bcba1;switch(_0x191144['commandName']){case'listStyle':_0x4ff79a='*Change\x20to:*\x20%0',_0x5bcba1={'type':'format','content':o(_0xb6367,_0x4ff79a,o(_0xb6367,this['_getTranslationKeyForListStyle'](_0x191144['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4ff79a=_0x191144['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5bcba1={'type':'format','content':o(_0xb6367,_0x4ff79a)};break;case'listStart':_0x4ff79a='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5bcba1={'type':'format','content':o(_0xb6367,_0x4ff79a,_0x191144['commandParams'][0x0]['startIndex'])};}return _0x5bcba1;}['_getSuggestionBlocksForListStyle'](){const _0x3e9e35=this['editor']['plugins']['get']('LegacyListUtils');let _0x15ca68=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x15ca68[0x0]?.['is']('element','listItem')&&_0x15ca68['unshift'](..._0x3e9e35['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x15ca68[_0x15ca68['length']-0x1]?.['is']('element','listItem')&&_0x15ca68['push'](..._0x3e9e35['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x15ca68=[...new Set(_0x15ca68)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x15ca68=_0x15ca68['filter'](_0x36ea31=>_0x36ea31['is']('element','listItem'))),_0x15ca68;}['_getSuggestionBlocks'](_0x35f7c5){const _0x51a2ab=this['editor']['plugins']['get']('LegacyListUtils');let _0x5f359c=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x35f7c5)['map'](_0x5e59b4=>{const _0x110c88=this['editor']['model']['createPositionAt'](_0x5e59b4,0x0);return[..._0x51a2ab['getSiblingNodes'](_0x110c88,'backward'),..._0x51a2ab['getSiblingNodes'](_0x110c88,'forward')];})['flat']();return _0x5f359c=[...new Set(_0x5f359c)],_0x5f359c;}['_getTranslationKeyForListStyle'](_0x27561c){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x27561c)||'default')['toUpperCase']()+'_LIST_'+_0x27561c['toUpperCase']()['replace'](/-/g,'_');}}class gt extends _0x787ffb{['afterInit'](){const _0xd9fb4a=this['editor'];if(!_0xd9fb4a['plugins']['has']('MediaEmbedEditing'))return;const _0x4e81c=_0xd9fb4a['plugins']['get']('TrackChangesEditing'),_0x1e88ed=_0xd9fb4a['locale'];_0x4e81c['enableCommand']('mediaEmbed'),_0x4e81c['descriptionFactory']['registerElementLabel']('media',_0x2c46c9=>o(_0x1e88ed,'ELEMENT_MEDIA',_0x2c46c9)),_0xd9fb4a['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x223690,{writer:_0x340c7c,options:_0x43dbc5})=>{if(_0x43dbc5['showSuggestionHighlights'])return _0x340c7c['createEmptyElement']('div');},'converterPriority':'high'}),_0xd9fb4a['data']['downcastDispatcher']['on']('attribute:url:media',(_0x5cf49d,_0x458469,_0x11a371)=>{_0x11a371['options']['showSuggestionHighlights']&&_0x5cf49d['stop']();},{'priority':'high'});}}class lt extends _0x787ffb{['afterInit'](){const _0x49088f=this['editor'];_0x49088f['plugins']['has']('MentionEditing')&&_0x49088f['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x787ffb{['afterInit'](){const _0x98f745=this['editor'];if(!_0x98f745['plugins']['has']('MergeFieldsEditing'))return;const _0x14e284=_0x98f745['plugins']['get']('TrackChangesEditing'),_0x2a5d73=_0x98f745['locale'];_0x14e284['enableCommand']('insertMergeField'),_0x14e284['enableCommand']('insertMergeFieldBlock'),_0x14e284['enableCommand']('insertMergeFieldImage'),_0x14e284['descriptionFactory']['registerElementLabel']('mergeField',_0x1e7ad6=>o(_0x2a5d73,'ELEMENT_MERGE_FIELD',_0x1e7ad6)),_0x14e284['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x6860a5=>o(_0x2a5d73,'ELEMENT_MERGE_FIELD',_0x6860a5)),_0x14e284['descriptionFactory']['registerDescriptionCallback'](_0x47caff=>{if('insertion'!=_0x47caff['type']&&'deletion'!=_0x47caff['type'])return;const _0xdaf2ea=_0x47caff['getContainedElement']();if(null==_0xdaf2ea)return;const _0x133dc1=_0x98f745['plugins']['get']('MergeFieldsEditing');let _0x3042da;switch(_0x133dc1['getMergeFieldType'](_0xdaf2ea)){case null:return;case'image':{const _0x4bd478=_0x133dc1['unwrapAffixes'](_0xdaf2ea['getAttribute']('src'));_0x3042da=_0x133dc1['getLabel'](_0x4bd478)||_0x4bd478;break;}default:{const _0x49a67d=_0xdaf2ea['getAttribute']('id');_0x3042da=_0x133dc1['getLabel'](_0x49a67d)||_0x49a67d;break;}}return'insertion'==_0x47caff['type']?{'type':'insertion','content':o(_0x2a5d73,'*Insert:*\x20%0','\x22'+_0x3042da+'\x22\x20'+o(_0x2a5d73,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x2a5d73,'*Remove:*\x20%0','\x22'+_0x3042da+'\x22\x20'+o(_0x2a5d73,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0x787ffb{['afterInit'](){const _0xabee19=this['editor'],_0xbac683=_0xabee19['plugins']['get']('TrackChangesEditing');_0xabee19['plugins']['has']('MultiLevelList')&&(_0xbac683['enableDefaultAttributesIntegration']('multiLevelList'),_0xbac683['registerBlockAttribute']('listMarkerStyle'),_0xbac683['descriptionFactory']['registerDescriptionCallback'](_0x581932=>this['handleDescriptions'](_0x581932)));}['handleDescriptions'](_0x11007d){const _0x2353ba=this['editor']['locale'],{data:_0x4a139f}=_0x11007d,_0x8d1401={'type':'format','content':''};if(_0x4a139f&&'listMarkerStyle'==_0x4a139f['key']){if(!_0x4a139f['oldValue'])return{'type':'format','content':o(_0x2353ba,'*Set\x20format:*\x20%0',o(_0x2353ba,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4a139f['newValue']+')'};if(!_0x4a139f['newValue']){let _0x547502=_0x11007d['head'];for(;_0x547502;){if(_0x547502['data']&&'listType'==_0x547502['data']['key']&&_0x547502['data']['newValue'])return _0x8d1401;_0x547502=_0x547502['next'];}return{'type':'format','content':o(_0x2353ba,'*Remove\x20format:*\x20%0',o(_0x2353ba,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4a139f['oldValue']+')'};}}}}class pt extends _0x787ffb{['afterInit'](){const _0x48d717=this['editor'];if(!_0x48d717['plugins']['has']('PageBreakEditing'))return;_0x48d717['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x224bc4=_0x48d717['plugins']['get']('TrackChangesEditing'),_0x263d7b=_0x48d717['locale'];_0x224bc4['descriptionFactory']['registerElementLabel']('pageBreak',_0x180f8f=>o(_0x263d7b,'ELEMENT_PAGE_BREAK',_0x180f8f));}}class kt extends _0x787ffb{['afterInit'](){const _0x2c634c=this['editor'];if(!_0x2c634c['plugins']['has']('Paragraph'))return;const _0x277e76=_0x2c634c['locale'],_0x1e2c2c=_0x2c634c['plugins']['get']('TrackChangesEditing');_0x1e2c2c['descriptionFactory']['registerElementLabel']('paragraph',_0x504947=>o(_0x277e76,'ELEMENT_PARAGRAPH',_0x504947)),_0x1e2c2c['enableDefaultAttributesIntegration']('paragraph'),_0x1e2c2c['enableCommand']('insertParagraph'),_0x2c634c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x2c634c),{'priority':'highest'}),_0x2c634c['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x10dfff,_0x31e6a2,_0x25da5b)=>{_0x25da5b['options']['showSuggestionHighlights']&&nr(_0x2c634c,{'showActiveMarker':!0x1})(_0x10dfff,_0x31e6a2,_0x25da5b);},{'priority':'highest'});const _0x3ab2a8=_0x1e2c2c['descriptionFactory'];_0x3ab2a8['registerDescriptionCallback'](_0xb6e5fd=>{if('insertion'!==_0xb6e5fd['type'])return;const {start:_0x533e4b,end:_0x699615}=_0xb6e5fd['getFirstRange']();if(!_0x533e4b['isTouching'](_0x699615)||!_0x533e4b['nodeAfter'])return;const _0x1fd179=_0x2c634c['model']['schema'],_0x541330=_0x533e4b['nodeAfter'];return _0x1fd179['isBlock'](_0x541330)&&!_0x1fd179['isLimit'](_0x541330)&&_0x1fd179['checkChild'](_0x541330,'$text')?{'type':'insertion','content':o(_0x277e76,'*Insert:*\x20%0',_0x3ab2a8['getItemLabel'](_0x541330,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x476509=this['editor'],_0x115df0=_0x476509['locale'];_0x476509['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x231f5f=>{if('formatBlock'!=_0x231f5f['type'])return;const {data:_0x459bfc}=_0x231f5f;return _0x459bfc&&'paragraph'==_0x459bfc['commandName']?{'type':'format','content':o(_0x115df0,'*Change\x20to:*\x20%0',o(_0x115df0,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x5d5edd,{showActiveMarker:_0x219ffe=!0x0}={}){return(_0x5a16ea,_0x46ea40,_0x1e1ca8)=>{const _0x4fd6fa=_0x5d5edd['plugins']['get']('TrackChangesEditing'),_0x564c74=_0x46ea40['markerRange']['start'],_0x11b8ad=_0x46ea40['markerRange']['end'],_0x3bb9df=_0x5d5edd['model']['schema'];if(!_0x564c74['isTouching'](_0x11b8ad)||!_0x564c74['nodeAfter'])return;const _0x13f890=_0x564c74['nodeAfter'];if(_0x3bb9df['isBlock'](_0x13f890)&&!_0x3bb9df['isLimit'](_0x13f890)&&_0x3bb9df['checkChild'](_0x13f890,'$text')){if(!_0x1e1ca8['consumable']['consume'](_0x46ea40['markerRange'],_0x5a16ea['name']))return;const {id:_0x2e70a1,authorId:_0x23f22e}=_0x4fd6fa['_splitMarkerName'](_0x46ea40['markerName']),_0x1c635a=_0x1e1ca8['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x2e70a1,'data-author-id':_0x23f22e}),_0x5814b9=_0x1e1ca8['mapper']['toViewPosition'](_0x11b8ad);_0x219ffe&&_0x4fd6fa['activeMarkers']['includes'](_0x46ea40['markerName'])&&_0x1e1ca8['writer']['addClass']('ck-suggestion-marker--active',_0x1c635a),_0x1e1ca8['writer']['insert'](_0x5814b9,_0x1c635a),_0x1e1ca8['mapper']['bindElementToMarker'](_0x1c635a,_0x46ea40['markerName']);}};}class wt extends _0x787ffb{['afterInit'](){const _0x534d0d=this['editor'];_0x534d0d['commands']['get']('replaceSource')&&_0x534d0d['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class bt extends _0x787ffb{['afterInit'](){const _0x4c94ff=this['editor'];if(!_0x4c94ff['plugins']['has']('RemoveFormatEditing'))return;_0x4c94ff['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x400c51=this['editor'];_0x400c51['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x474072=>{if('formatBlock'!=_0x474072['type']&&'formatInline'!=_0x474072['type'])return;const {data:_0x251345}=_0x474072;return _0x251345&&'removeFormat'==_0x251345['commandName']?{'type':'format','content':o(_0x400c51['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x787ffb{['afterInit'](){const _0x23f452=this['editor'];if(!_0x23f452['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x507f78=_0x23f452['plugins']['get']('TrackChangesEditing');_0x507f78['enableCommand']('goToPreviousRestrictedEditingException'),_0x507f78['enableCommand']('goToNextRestrictedEditingException');const _0x5e77f8=_0x23f452['plugins']['get']('RestrictedEditingModeEditing');_0x5e77f8['enableCommand']('trackChanges'),_0x5e77f8['enableCommand']('acceptSuggestion'),_0x5e77f8['enableCommand']('discardSuggestion'),_0x5e77f8['enableCommand']('acceptAllSuggestions'),_0x5e77f8['enableCommand']('discardAllSuggestions'),_0x5e77f8['enableCommand']('acceptSelectedSuggestions'),_0x5e77f8['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x787ffb{['afterInit'](){const _0x71d92=this['editor'];if(!_0x71d92['plugins']['has']('ShiftEnter'))return;const _0x922b6a=_0x71d92['plugins']['get']('TrackChangesEditing');_0x922b6a['enableCommand']('shiftEnter'),_0x71d92['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x71d92),{'priority':'high'}),_0x71d92['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x71d92),{'priority':'high'}),_0x71d92['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x385a22,_0x2269f3,_0x3b4e83)=>{_0x3b4e83['options']['showSuggestionHighlights']&&je(_0x71d92,{'showActiveMarker':!0x1})(_0x385a22,_0x2269f3,_0x3b4e83);}),_0x922b6a['descriptionFactory']['registerElementLabel']('softBreak',_0x49d20c=>o(_0x71d92['locale'],'ELEMENT_LINE_BREAK',_0x49d20c));}}function je(_0x2b1187,{showActiveMarker:_0x5e2d96=!0x0}={}){return(_0x49e3e3,_0x46d404,_0x3ed9ac)=>{const _0x280581=_0x2b1187['plugins']['get']('TrackChangesEditing');if(!_0x3ed9ac['consumable']['test'](_0x46d404['markerRange'],_0x49e3e3['name']))return;const _0x2d2f9f=_0x2b1187['model'];for(const _0x69726 of _0x46d404['markerRange']['getItems']()){if(!_0x69726['is']('element','softBreak'))continue;const _0x35e9fc='deletion'==_0x46d404['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x37df2,authorId:_0x559093}=_0x280581['_splitMarkerName'](_0x46d404['markerName']),_0x1d8cfa=_0x3ed9ac['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x35e9fc,'data-suggestion':_0x37df2,'data-author-id':_0x559093}),_0x2988e8=_0x3ed9ac['mapper']['toViewPosition'](_0x2d2f9f['createPositionBefore'](_0x69726));_0x5e2d96&&_0x280581['activeMarkers']['includes'](_0x46d404['markerName'])&&_0x3ed9ac['writer']['addClass']('ck-suggestion-marker--active',_0x1d8cfa),_0x3ed9ac['writer']['insert'](_0x2988e8,_0x1d8cfa),_0x3ed9ac['mapper']['bindElementToMarker'](_0x1d8cfa,_0x46d404['markerName']);}};}class St extends _0x787ffb{['afterInit'](){const _0x58144c=this['editor'],_0x492415=_0x58144c['model'],_0x46eaac=_0x58144c['locale'];if(!_0x58144c['plugins']['has']('StandardEditingModeEditing'))return;const _0x2ffc2b=_0x58144c['plugins']['get']('TrackChangesEditing'),_0x14f6ee='restrictedEditingException',_0x5739ed=_0x58144c['commands']['get'](_0x14f6ee);_0x2ffc2b['enableCommand'](_0x14f6ee,(_0x28b3f4,_0x22adfe={})=>{const _0x472b10=_0x492415['document']['selection'];if(_0x472b10['isCollapsed'])return void _0x28b3f4(_0x22adfe);const _0x1d0c5c=void 0x0!==_0x22adfe['forceValue']?_0x22adfe['forceValue']:!_0x5739ed['value'];_0x492415['change'](()=>{const _0x180600=Array['from'](_0x472b10['getRanges']());for(const _0x47d954 of _0x180600){const _0x8fbf6f=_0x1d0c5c?[_0x47d954]:io(_0x14f6ee,_0x47d954,_0x492415);for(const _0x24a2ad of _0x8fbf6f)_0x2ffc2b['markInlineFormat'](_0x24a2ad,{'commandName':_0x14f6ee,'commandParams':[{'forceValue':_0x1d0c5c}]});}});}),_0x2ffc2b['descriptionFactory']['registerDescriptionCallback'](_0x42bce5=>{if('formatBlock'!=_0x42bce5['type']&&'formatInline'!=_0x42bce5['type'])return;const {data:_0x33b61f}=_0x42bce5;return _0x33b61f&&_0x33b61f['commandName']==_0x14f6ee?_0x33b61f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x46eaac,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x46eaac,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x787ffb{['afterInit'](){const _0x12f3dc=this['editor'];if(!_0x12f3dc['plugins']['has']('Style')||!_0x12f3dc['plugins']['has']('DataSchema'))return;const _0x4ebff4=_0x12f3dc['plugins']['get']('TrackChangesEditing'),_0x2b183b=_0x12f3dc['locale'],_0x11a906=_0x12f3dc['config']['get']('style')||{},_0x2e9337=_0x12f3dc['plugins']['get']('GeneralHtmlSupport'),_0x34d33a=_0x12f3dc['plugins']['get']('StyleUtils')['normalizeConfig'](_0x12f3dc['plugins']['get']('DataSchema'),_0x11a906['definitions']);_0x4ebff4['enableDefaultAttributesIntegration']('style');const _0x31a742=new Set();for(const _0x179a21 of _0x34d33a['block']){const _0x3eb558=_0x2e9337['getGhsAttributeNameForElement'](_0x179a21['element']);_0x31a742['add'](_0x3eb558);}const _0x39da5b=new Set();for(const _0x17fce3 of _0x34d33a['inline']){const _0x5e7b88=_0x2e9337['getGhsAttributeNameForElement'](_0x17fce3['element']);_0x39da5b['add'](_0x5e7b88);for(const _0x2f398d of _0x17fce3['ghsAttributes'])_0x39da5b['add'](_0x2f398d);}for(const _0x3466fc of _0x31a742)_0x4ebff4['registerBlockAttribute'](_0x3466fc),_0x4ebff4['descriptionFactory']['registerAttributeLabel'](_0x3466fc,o(_0x2b183b,'FORMAT_STYLE'));for(const _0x461f52 of _0x39da5b)_0x4ebff4['registerInlineAttribute'](_0x461f52),_0x4ebff4['descriptionFactory']['registerAttributeLabel'](_0x461f52,o(_0x2b183b,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2caa80=this['editor'],_0x4969c8=_0x2caa80['locale'];_0x2caa80['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x45a706=>{if('formatBlock'!=_0x45a706['type']&&'formatInline'!=_0x45a706['type'])return;const {data:_0x2df4d0}=_0x45a706;return _0x2df4d0&&'style'===_0x2df4d0['commandName']?_0x2df4d0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4969c8,'*Set\x20format:*\x20%0',_0x2df4d0['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x4969c8,'*Remove\x20format:*\x20%0',_0x2df4d0['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class At extends _0x787ffb{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x1eeb36){super(_0x1eeb36),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x413b8d=this['editor'],_0x39c596=_0x413b8d['model']['document']['selection'];if(!_0x413b8d['plugins']['has']('TableEditing'))return;const _0x202374=_0x413b8d['locale'],_0x47f6a6=_0x413b8d['plugins']['get']('TrackChangesEditing'),_0xc68571=_0x413b8d['plugins']['get']('TableUtils');_0x47f6a6['descriptionFactory']['registerElementLabel']('table',_0x13f02a=>o(_0x202374,'ELEMENT_TABLE',_0x13f02a)),this['_setupColumnsRowsFixing'](),_0x47f6a6['enableCommand']('insertTable'),_0x47f6a6['enableCommand']('selectTableRow'),_0x47f6a6['enableCommand']('selectTableColumn');for(const _0x2aa8b7 of['insertTableRowAbove','insertTableRowBelow']){const _0x597c48=_0x413b8d['commands']['get'](_0x2aa8b7);_0x47f6a6['enableCommand'](_0x2aa8b7,_0x2662ab=>{_0x413b8d['model']['change'](_0x12ee6f=>{_0x2662ab();const _0xbd6707='above'===_0x597c48['order'],_0x2cb188=_0xc68571['getSelectionAffectedTableCells'](_0x39c596),_0x3cebed=_0xc68571['getRowIndexes'](_0x2cb188),_0x463e56=_0xbd6707?_0x3cebed['first']-0x1:_0x3cebed['last']+0x1,_0x484c7f=_0x2cb188[0x0]['findAncestor']('table'),_0xdec6d9=_0xc68571['createTableWalker'](_0x484c7f,{'startRow':_0x463e56,'endRow':_0x463e56}),_0x5f45f3=Array['from'](_0xdec6d9)['map'](_0x5685ab=>_0x12ee6f['createRangeOn'](_0x5685ab['cell']));_0x47f6a6['markMultiRangeInsertion'](_0x5f45f3,'tableRow');});});}for(const _0x3a44a8 of['insertTableColumnLeft','insertTableColumnRight']){const _0x24b990=_0x413b8d['commands']['get'](_0x3a44a8);_0x47f6a6['enableCommand'](_0x3a44a8,_0x453506=>{_0x413b8d['model']['change'](_0x4eb8de=>{_0x453506();const _0x390b4a='left'===_0x24b990['order'],_0xb244c0=_0xc68571['getSelectionAffectedTableCells'](_0x39c596),_0xbe0709=_0xc68571['getColumnIndexes'](_0xb244c0),_0x5f3cf=_0x390b4a?_0xbe0709['first']-0x1:_0xbe0709['last']+0x1,_0x457469=_0xb244c0[0x0]['findAncestor']('table'),_0x49c477=_0xc68571['createTableWalker'](_0x457469,{'startRow':0x0,'column':_0x5f3cf,'includeAllSlots':!0x1}),_0x174b7c=Array['from'](_0x49c477)['map'](_0x5a97bd=>_0x4eb8de['createRangeOn'](_0x5a97bd['cell']));_0x47f6a6['markMultiRangeInsertion'](_0x174b7c,'tableColumn');});});}for(const _0x25ca91 of['removeTableRow','removeTableColumn']){const _0x362399=_0x25ca91['substr'](0xb),_0x545bd4=_0x362399['toLowerCase'](),_0x3d654e=_0x545bd4['substr'](0x0,0x3)+'span',_0x4eaea3='table'+_0x362399,_0x219299='min'+_0x362399,_0x366524='max'+_0x362399;_0x47f6a6['enableCommand'](_0x25ca91,()=>{_0x413b8d['model']['change'](_0x147a9a=>{const _0x37b143=_0xc68571['getSelectionAffectedTableCells'](_0x39c596),_0x424fc4=_0x37b143[0x0]['findAncestor']('table');let _0x58dec7;if('removeTableRow'==_0x25ca91){const _0x41ba0f=_0xc68571['getRowIndexes'](_0x37b143);_0x58dec7={'startRow':_0x41ba0f['first'],'endRow':_0x41ba0f['last'],'includeAllSlots':!0x0};}else{const _0x5dcadd=_0xc68571['getColumnIndexes'](_0x37b143);_0x58dec7={'startColumn':_0x5dcadd['first'],'endColumn':_0x5dcadd['last'],'includeAllSlots':!0x0};}const _0x362300=_0xc68571['createTableWalker'](_0x424fc4,_0x58dec7),_0x2b2419=Array['from'](_0x362300)['map'](({cell:_0x24ac64})=>_0x24ac64),_0x1e7374=Ne(_0x2b2419['filter'](_0x13fc91=>_0x13fc91['hasAttribute'](_0x3d654e))),_0x2d79e3=Ne(_0x2b2419['filter'](_0xefef0f=>!_0xefef0f['hasAttribute'](_0x3d654e)))['map'](_0x3dfb79=>_0x147a9a['createRangeOn'](_0x3dfb79)),_0x4df08d=_0x47f6a6['markMultiRangeDeletion'](_0x2d79e3,_0x4eaea3);if(_0x4df08d&&('tableRow'==_0x4df08d['subType']||'tableColumn'==_0x4df08d['subType'])){const _0x5a7132=this['_getSuggestionCoords'](_0x4df08d);for(const _0x4696a1 of _0x1e7374){const _0x2f1419=_0x147a9a['createRangeOn'](_0x4696a1),_0x21d31c=_0xc68571['getCellLocation'](_0x4696a1),_0x4f9ba2=_0x4696a1['getAttribute'](_0x3d654e)-0x1,_0x12a22f=_0x5a7132[_0x219299],_0x1dfcc8=_0x5a7132[_0x366524];_0x12a22f<=_0x21d31c[_0x545bd4]&&_0x21d31c[_0x545bd4]+_0x4f9ba2<=_0x1dfcc8&&_0x4df08d['addRange'](_0x2f1419);}}});});}function _0x2806e2(_0x17f85b){const _0xc44db9=Array['from'](_0x39c596['getRanges']())['map'](_0x160f60=>_0x28ae54['fromRange'](_0x160f60));_0x413b8d['model']['change'](_0xfb297e=>{const _0x184417=_0xfb297e['batch'];_0x17f85b=_0x17f85b['filter'](_0x3eae1b=>'$graveyard'!=_0x3eae1b['root']['rootName']),_0xfb297e['setSelection'](_0x17f85b),_0x413b8d['commands']['get']('removeTableRow')['refresh'](),_0x413b8d['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x413b8d['model']['enqueueChange'](()=>{_0x413b8d['model']['enqueueChange'](_0x184417,_0x371218=>{const _0x542bd2=_0xc44db9['filter'](_0x56fd1d=>'$graveyard'!=_0x56fd1d['root']['rootName']);_0x542bd2['length']>0x0&&_0x371218['setSelection'](_0x542bd2);for(const _0x542f5c of _0xc44db9)_0x542f5c['detach']();});});});}function _0x343d2d(_0x31c544){_0x413b8d['model']['change'](_0x188c6e=>{const _0x166123=Array['from'](_0x39c596['getRanges']())['map'](_0x58ff34=>_0x28ae54['fromRange'](_0x58ff34)),_0x1ae9e6=[];for(const _0x42b380 of _0x31c544)for(const _0x1486bd of _0x42b380['getItems']({'shallow':!0x0}))_0x1ae9e6['push'](_0x1486bd);for(const _0x12f533 of _0x1ae9e6)'$graveyard'!=_0x12f533['root']['rootName']&&(_0x188c6e['setSelection'](_0x188c6e['createPositionAt'](_0x12f533,0x0)),_0x413b8d['commands']['get']('removeTableColumn')['refresh'](),_0x413b8d['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x282f8d=_0x166123['filter'](_0x4358d3=>'$graveyard'!=_0x4358d3['root']['rootName']);_0x282f8d['length']>0x0&&_0x188c6e['setSelection'](_0x282f8d);for(const _0x1b3940 of _0x166123)_0x1b3940['detach']();});}function _0x497e1d(_0xb3d68e,_0x50e98a){return _0x50e98a['every'](_0x4766e2=>_0xb3d68e['some'](_0x16af48=>_0x16af48['end']['isEqual'](_0x4766e2['start'])||_0x4766e2['end']['isEqual'](_0x16af48['start'])));}function _0x3f9cd6(_0x778208,_0x32b2e6){return!_0x778208['some'](_0x36e4c2=>_0x32b2e6['some'](_0x57fb1e=>_0x36e4c2['isIntersecting'](_0x57fb1e)))&&_0x778208['some'](_0x52288e=>_0x32b2e6['some'](_0x466ecc=>_0x52288e['end']['isTouching'](_0x466ecc['start'])));}_0x413b8d['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x56f385,_0x401363,_0x869a8e)=>{if(!_0x869a8e['options']['showSuggestionHighlights'])return;const _0x1b9ae3=_0x401363['item'];if(!_0x1b9ae3||!_0x1b9ae3['is']('element','tableCell'))return;const _0x24d847=_0x869a8e['mapper']['toViewElement'](_0x1b9ae3);if(_0x24d847){const {id:_0x3e8b72,authorId:_0x396a72}=_0x47f6a6['_splitMarkerName'](_0x401363['markerName']);_0x49ea82(_0x24d847,_0x869a8e['writer'],(_0x5cc8ff,_0x329b84,_0x2ad718)=>{_0x2ad718['addClass'](_0x4e5180(_0x329b84['classes']),_0x5cc8ff),_0x2ad718['setAttribute']('data-suggestion-id',_0x3e8b72,_0x5cc8ff),_0x2ad718['setAttribute']('data-author-id',_0x396a72,_0x5cc8ff);},(_0x4fe05e,_0x586cd2,_0xbb0d7)=>{_0xbb0d7['removeClass'](_0x4e5180(_0x586cd2['classes']),_0x4fe05e),_0xbb0d7['removeAttribute']('data-suggestion-id',_0x4fe05e),_0xbb0d7['removeAttribute']('data-author-id',_0x4fe05e);});}},{'priority':'highest'}),_0x47f6a6['descriptionFactory']['registerDescriptionCallback'](_0x4d5d0f=>{if('insertion'!=_0x4d5d0f['type']&&'deletion'!=_0x4d5d0f['type'])return;const _0x75df2c=_0x4d5d0f['getContainedElement']();if(null!=_0x75df2c&&_0x75df2c['is']('element','table')){if('insertion'==_0x4d5d0f['type']){const _0x48ac8a=_0x4d5d0f['getItems']()['filter'](_0x5c49c7=>_0x5c49c7['is']('$textProxy'))['map'](_0x28e747=>_0x28e747['data']);if(_0x48ac8a['length'])return{'type':'insertion','content':o(_0x202374,'*Insert:*\x20%0',o(_0x202374,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x48ac8a['join']('\x20')+'\x22'))};}if('deletion'==_0x4d5d0f['type']){const _0x395fc1=_0x4d5d0f['getItems']()['filter'](_0x2afbde=>_0x2afbde['is']('$textProxy'))['map'](_0x4009bc=>_0x4009bc['data']);if(_0x395fc1['length'])return{'type':'deletion','content':o(_0x202374,'*Remove:*\x20%0',o(_0x202374,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x395fc1['join']('\x20')+'\x22'))};}}}),_0x47f6a6['descriptionFactory']['registerDescriptionCallback'](_0x52b99b=>{if('tableRow'==_0x52b99b['subType']){const _0x13fa7d=_0x52b99b['getItems']()['filter'](_0x4fd1d4=>_0x4fd1d4['is']('$textProxy'))['map'](_0x2c188c=>_0x2c188c['data']),_0x5495f2=this['_getSuggestionCoords'](_0x52b99b),_0x3ffcef=_0x5495f2['maxRow']-_0x5495f2['minRow']+0x1;if('insertion'==_0x52b99b['type'])return _0x13fa7d['length']?{'type':'insertion','content':o(_0x202374,'*Insert:*\x20%0',o(_0x202374,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3ffcef,'\x22'+_0x13fa7d['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x202374,'*Insert:*\x20%0',o(_0x202374,'ELEMENT_TABLE_ROW',_0x3ffcef))};if('deletion'==_0x52b99b['type'])return _0x13fa7d['length']?{'type':'deletion','content':o(_0x202374,'*Remove:*\x20%0',o(_0x202374,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3ffcef,'\x22'+_0x13fa7d['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x202374,'*Remove:*\x20%0',o(_0x202374,'ELEMENT_TABLE_ROW',_0x3ffcef))};}if('tableColumn'==_0x52b99b['subType']){const _0x2d3c78=_0x52b99b['getItems']()['filter'](_0x2d5071=>_0x2d5071['is']('$textProxy'))['map'](_0x24ed7b=>_0x24ed7b['data']),_0x256b9e=this['_getSuggestionCoords'](_0x52b99b),_0x7551be=_0x256b9e['maxColumn']-_0x256b9e['minColumn']+0x1;if('insertion'==_0x52b99b['type'])return _0x2d3c78['length']?{'type':'insertion','content':o(_0x202374,'*Insert:*\x20%0',o(_0x202374,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x7551be,'\x22'+_0x2d3c78['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x202374,'*Insert:*\x20%0',o(_0x202374,'ELEMENT_TABLE_COLUMN',_0x7551be))};if('deletion'==_0x52b99b['type'])return _0x2d3c78['length']?{'type':'deletion','content':o(_0x202374,'*Remove:*\x20%0',o(_0x202374,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x7551be,'\x22'+_0x2d3c78['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x202374,'*Remove:*\x20%0',o(_0x202374,'ELEMENT_TABLE_COLUMN',_0x7551be))};}}),_0x47f6a6['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2806e2),_0x47f6a6['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2806e2),_0x47f6a6['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x343d2d),_0x47f6a6['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x343d2d),_0x47f6a6['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x497e1d),_0x47f6a6['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x497e1d),_0x47f6a6['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x3f9cd6),_0x47f6a6['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x3f9cd6);}['_acceptFormatSuggestionCallbackFactory'](){const _0x1d28df=this['editor'],_0xc424e3=_0x1d28df['model']['document']['selection'];return(_0x4908d5,_0x26b91e)=>{_0x1d28df['model']['change'](_0x166047=>{const {commandName:_0x1edf7a,commandParams:_0x595703}=_0x26b91e;let _0x369f30=_0x4908d5[0x0]['end']['nodeBefore'];_0x595703&&_0x595703[0x0]&&!0x1===_0x595703[0x0]['forceValue']&&(_0x369f30=_0x4908d5[0x0]['start']['nodeAfter']);const _0x41cbf5=_0x166047['createRangeIn'](_0x369f30);if('$graveyard'==_0x41cbf5['root']['rootName'])return;const _0x54575d=Array['from'](_0xc424e3['getRanges']())['map'](_0x5804e1=>_0x28ae54['fromRange'](_0x5804e1));_0x166047['setSelection'](_0x41cbf5),_0x1d28df['commands']['get'](_0x1edf7a)['refresh'](),_0x595703['push']({'forceDefaultExecution':!0x0}),_0x1d28df['execute'](_0x1edf7a,..._0x595703);const _0xd71d94=_0x54575d['filter'](_0x4b9e9e=>'$graveyard'!=_0x4b9e9e['root']['rootName']);_0xd71d94['length']>0x0&&_0x166047['setSelection'](_0xd71d94);for(const _0xc504f4 of _0x54575d)_0xc504f4['detach']();});};}['_getCoordsForCells'](_0x481ec5){const _0x1c2d90=this['editor']['plugins']['get']('TableUtils');let _0x50ae96=Number['MAX_SAFE_INTEGER'],_0x287f45=Number['MIN_SAFE_INTEGER'],_0x8d5649=Number['MAX_SAFE_INTEGER'],_0x3d73e3=Number['MIN_SAFE_INTEGER'];for(const _0x597ed8 of _0x481ec5){if('$graveyard'==_0x597ed8['root']['rootName'])continue;const {row:_0x52846c,column:_0x5da885}=_0x1c2d90['getCellLocation'](_0x597ed8),_0x103471=_0x597ed8['hasAttribute']('rowspan')?_0x597ed8['getAttribute']('rowspan')-0x1:0x0,_0x5827ca=_0x597ed8['hasAttribute']('colspan')?_0x597ed8['getAttribute']('colspan')-0x1:0x0;_0x50ae96=_0x52846c<_0x50ae96?_0x52846c:_0x50ae96,_0x287f45=_0x52846c+_0x103471>_0x287f45?_0x52846c+_0x103471:_0x287f45,_0x8d5649=_0x5da885<_0x8d5649?_0x5da885:_0x8d5649,_0x3d73e3=_0x5da885+_0x5827ca>_0x3d73e3?_0x5da885+_0x5827ca:_0x3d73e3;}return{'minRow':_0x50ae96,'maxRow':_0x287f45,'minColumn':_0x8d5649,'maxColumn':_0x3d73e3};}['_setupColumnsRowsFixing'](){const _0x32ab18=this['editor'],_0x360f40=_0x32ab18['plugins']['get']('TrackChangesEditing'),_0xabf0a7=_0x32ab18['plugins']['get']('TableUtils');_0x32ab18['model']['document']['on']('change:data',()=>{const _0x47e04c=Array['from'](_0x32ab18['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3a6e97,data:_0x1316f7}of _0x47e04c){const {group:_0x1721f5,id:_0x44b76c,subType:_0x3d1fca}=_0x360f40['_splitMarkerName'](_0x3a6e97);if('suggestion'!=_0x1721f5)continue;if(null!=_0x1316f7['oldRange'])continue;const _0x54c308=_0x360f40['getSuggestion'](_0x44b76c);this['_tablePostFixingSubtypes']['includes'](_0x3d1fca)&&this['_tableSuggestions']['add'](_0x54c308);}},{'priority':'low'});const _0x5aae17=(_0x21415a,_0x1256fa)=>{let _0x37dbce=!0x1;const _0xc0e1c3=_0x1256fa['createRangeOn'](_0x21415a),_0x4ee285=_0x21415a['findAncestor']('table'),_0x317a86=_0xabf0a7['getCellLocation'](_0x21415a);for(const _0x16f2d2 of this['_tableSuggestions']){const _0x28dd80=_0x16f2d2['subType'],_0x3e4cd6=_0x28dd80['startsWith']('tablePaste'),_0x1c1c22=_0x28dd80['substr'](_0x3e4cd6?0xa:0x5),_0x3729d9=_0x1c1c22['toLowerCase'](),_0x2154a7=_0x3729d9['substr'](0x0,0x3)+'span',_0x1b9eef='min'+_0x1c1c22,_0x3676db='max'+_0x1c1c22;if(!_0x16f2d2['isInContent'])continue;if(_0x4ee285!=_0x16f2d2['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x16f2d2['isIntersectingWithRange'](_0xc0e1c3))continue;const _0xa391b8=_0x21415a['hasAttribute'](_0x2154a7)?_0x21415a['getAttribute'](_0x2154a7)-0x1:0x0,_0x1bd638=this['_getSuggestionCoords'](_0x16f2d2),_0x460889=_0x1bd638[_0x1b9eef],_0x1c7356=_0x1bd638[_0x3676db];_0x460889<=_0x317a86[_0x3729d9]&&_0x317a86[_0x3729d9]+_0xa391b8<=_0x1c7356&&(_0x16f2d2['addRange'](_0xc0e1c3),_0x37dbce=!0x0);}return _0x37dbce;};_0x32ab18['model']['document']['registerPostFixer'](_0x39e3c4=>{let _0x19d384=!0x1;for(const _0x26856d of _0x32ab18['model']['document']['differ']['getChanges']())if('insert'==_0x26856d['type']){if('tableRow'==_0x26856d['name']){for(const _0x3bb5cf of _0x26856d['position']['nodeAfter']['getChildren']())_0x19d384=_0x19d384||_0x5aae17(_0x3bb5cf,_0x39e3c4);}else'tableCell'==_0x26856d['name']&&(_0x19d384=_0x19d384||_0x5aae17(_0x26856d['position']['nodeAfter'],_0x39e3c4));}return _0x19d384;});}['_getSuggestionCoords'](_0x4ea96d){return this['_getCoordsForCells'](_0x4ea96d['getRanges']()['map'](_0xf9ca44=>_0xf9ca44['start']['nodeAfter']));}}function Ne(_0x1aca64){return Array['from'](new Set(_0x1aca64)['values']());}class _t extends _0x787ffb{static get['requires'](){return[At];}['afterInit'](){const _0x5431c1=this['editor'],_0x16080f=_0x5431c1['model']['document']['selection'],_0x3c2ebd=_0x5431c1['locale'];if(!_0x5431c1['plugins']['has']('TableEditing'))return;const _0x3c77e8=_0x5431c1['plugins']['get']('TrackChangesEditing'),_0x40ab79=_0x5431c1['plugins']['get']('TableUtils'),_0x1beded=_0x5431c1['plugins']['get'](At);_0x1beded['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x3c77e8['enableCommand']('mergeTableCells',()=>{const _0x30e042=_0x40ab79['getSelectionAffectedTableCells'](_0x5431c1['model']['document']['selection']);_0x5431c1['model']['change'](()=>{_0x3c77e8['markMultiRangeBlockFormat'](_0x30e042,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x5431c1['commands']['get']('mergeTableCells')['on']('execute',(_0x37d54a,_0x834c28)=>{_0x5431c1['commands']['get']('trackChanges')['value']&&(_0x834c28['length']>0x0&&_0x834c28[_0x834c28['length']-0x1]&&_0x834c28[_0x834c28['length']-0x1]['forceDefaultExecution']||_0x3c77e8['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x37d54a['stop']());},{'priority':'highest'});for(const _0x3e808c of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x110744=_0x5431c1['commands']['get'](_0x3e808c);_0x3c77e8['enableCommand'](_0x3e808c,()=>{const _0x292419=_0x5431c1['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x495a36=>_0x495a36['is']('element','tableCell')),_0x5f05a5=_0x110744['value'];_0x5431c1['model']['change'](()=>{_0x3c77e8['markMultiRangeBlockFormat']([_0x292419,_0x5f05a5],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x23ac44 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x401a74=_0x5431c1['commands']['get'](_0x23ac44);_0x3c77e8['enableCommand'](_0x23ac44,()=>{const _0x49bab3=_0x40ab79['getSelectionAffectedTableCells'](_0x5431c1['model']['document']['selection'])[0x0],_0x5067ff=_0x49bab3['findAncestor']('table'),{column:_0x421463,row:_0xc1f04f}=_0x40ab79['getCellLocation'](_0x49bab3);let _0x4243b2=[];if('horizontally'==_0x401a74['direction']){const _0x452d54=_0x40ab79['createTableWalker'](_0x5067ff,{'startRow':_0xc1f04f,'endRow':_0xc1f04f,'includeAllSlots':!0x0});_0x4243b2=Array['from'](_0x452d54)['map'](_0x1bd220=>_0x1bd220['cell']);}else{const _0x3a252e=_0x40ab79['createTableWalker'](_0x5067ff,{'column':_0x421463,'includeAllSlots':!0x0});_0x4243b2=Array['from'](_0x3a252e)['map'](_0x4ddc49=>_0x4ddc49['cell']);}_0x5431c1['model']['change'](_0x327281=>{_0x3c77e8['markBlockFormat'](_0x327281['createRangeOn'](_0x49bab3),{'commandName':_0x23ac44,'commandParams':[]},_0x4243b2,_0x23ac44);});});}_0x3c77e8['descriptionFactory']['registerDescriptionCallback'](_0x5e73e5=>{if('formatBlock'!=_0x5e73e5['type']&&'formatInline'!=_0x5e73e5['type'])return;const {data:_0x576f14}=_0x5e73e5;return _0x576f14&&'mergeTableCells'==_0x576f14['commandName']?{'type':'format','content':o(_0x3c2ebd,'*Merge\x20cells*')}:void 0x0;}),_0x3c77e8['descriptionFactory']['registerDescriptionCallback'](_0x2795f4=>{if('formatBlock'!=_0x2795f4['type']&&'formatInline'!=_0x2795f4['type'])return;const {data:_0x239c53}=_0x2795f4;return _0x239c53?'splitTableCellVertically'==_0x239c53['commandName']?{'type':'format','content':o(_0x3c2ebd,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x239c53['commandName']?{'type':'format','content':o(_0x3c2ebd,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x464e38=_0x1beded['_acceptFormatSuggestionCallbackFactory']();for(const _0x98dd45 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x3c77e8['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x98dd45,'accept',_0x464e38);for(const _0x36e698 of['splitTableCellVertically','splitTableCellHorizontally'])_0x3c77e8['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x36e698,'accept',_0x464e38);_0x3c77e8['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x36bce0=>{_0x5431c1['model']['change'](_0x471f88=>{const _0x2f2cce=Array['from'](_0x16080f['getRanges']())['map'](_0x121c9d=>_0x28ae54['fromRange'](_0x121c9d));_0x471f88['setSelection'](_0x36bce0),_0x5431c1['commands']['get']('mergeTableCells')['refresh'](),_0x5431c1['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x1459b4=_0x2f2cce['filter'](_0x2deac0=>'$graveyard'!=_0x2deac0['root']['rootName']);_0x1459b4['length']>0x0&&_0x471f88['setSelection'](_0x1459b4);for(const _0x1138f7 of _0x2f2cce)_0x1138f7['detach']();});});for(const _0xfb6910 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x5596cc=_0x5431c1['commands']['get'](_0xfb6910);_0x5596cc['on']('set:isEnabled',(_0x10cd4b,_0x5f8948,_0x45f8c8)=>{if(_0x45f8c8){const _0x30caa1=_0x5431c1['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x6e078d=>_0x6e078d['is']('element','tableCell'));this['_areMergableCells'](_0x5596cc['value'],_0x30caa1)||(_0x10cd4b['return']=!0x1,_0x10cd4b['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x402809=this['editor']['commands']['get']('mergeTableCells'),_0x434504=this['editor']['plugins']['get']('TableUtils');if(!_0x402809['isEnabled'])return!0x1;const _0xdaa6a2=_0x434504['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x424f3b of _0xdaa6a2)for(const _0xe1024e of _0xdaa6a2)if(_0x424f3b!=_0xe1024e&&!this['_areMergableCells'](_0x424f3b,_0xe1024e))return!0x1;return!0x0;}['_areMergableCells'](_0x2044c8,_0x3a8b2d){const _0xa69ca=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5757ee=this['editor']['model']['createRangeOn'](_0x2044c8),_0x3ed3b7=this['editor']['model']['createRangeOn'](_0x3a8b2d),_0x1e032e=new Set(),_0x2996e4=new Set();for(const _0x1df3c2 of _0xa69ca['getSuggestions']())if(('insertion'==_0x1df3c2['type']||'deletion'==_0x1df3c2['type']||'mergeTableCells'==_0x1df3c2['subType'])&&_0x1df3c2['isInContent']){for(const _0xbc657d of _0x1df3c2['getRanges']())_0xbc657d['containsRange'](_0x5757ee,!0x0)&&_0x1e032e['add'](_0x1df3c2['type']+':'+_0x1df3c2['author']['id']),_0xbc657d['containsRange'](_0x3ed3b7,!0x0)&&_0x2996e4['add'](_0x1df3c2['type']+':'+_0x1df3c2['author']['id']);}if(_0x1e032e['size']!=_0x2996e4['size'])return!0x1;for(const _0x437991 of _0x1e032e)if(!_0x2996e4['has'](_0x437991))return!0x1;return!0x0;}}class Ct extends _0x787ffb{static get['requires'](){return[At];}['afterInit'](){const _0x5ef06f=this['editor'];if(!_0x5ef06f['plugins']['has']('TableEditing'))return;const _0x3c6818=_0x5ef06f['locale'],_0x109fdb=_0x5ef06f['plugins']['get']('TrackChangesEditing');_0x109fdb['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x109fdb['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x109fdb['registerBlockAttribute']('headingRows'),_0x109fdb['registerBlockAttribute']('headingColumns'),_0x109fdb['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x3c6818,'FORMAT_HEADER_ROW')),_0x109fdb['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x3c6818,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2b2c86=this['editor']['plugins']['get']('TrackChangesEditing'),_0x26f4ce=this['editor']['plugins']['get']('TableUtils'),_0x4d17fb=this['editor']['plugins']['get'](At)['_acceptFormatSuggestionCallbackFactory']();function _0xd981b4({showActiveMarker:_0x3ab0ce=!0x0,setDataAttribute:_0x896576=!0x0}={}){return(_0x36fecf,_0x399366,_0x37c074)=>{const {type:_0x598c08,id:_0x4f88bc}=_0x2b2c86['_splitMarkerName'](_0x399366['markerName']),_0x3868c7=_0x2b2c86['getSuggestion'](_0x4f88bc),_0x187e2f=_0x3868c7['data'];if('formatBlock'!=_0x3868c7['type']||!_0x187e2f||'setTableColumnHeader'!=_0x187e2f['commandName'])return;if(_0x399366['item'])return void _0x36fecf['stop']();if(!_0x37c074['consumable']['consume'](_0x399366['markerRange'],_0x36fecf['name']))return;const _0x2554c6=_0x399366['markerRange']['start']['nodeAfter'],_0x4b3291=_0x399366['markerRange']['end']['nodeBefore'],_0x2ea55f=_0x2554c6['parent']['parent'],{column:_0x2d9081}=_0x26f4ce['getCellLocation'](_0x2554c6),{column:_0x1a393c}=_0x26f4ce['getCellLocation'](_0x4b3291);for(let _0x211e42=_0x2d9081;_0x211e42<=_0x1a393c;_0x211e42++){const _0x5afb0d=_0x26f4ce['createTableWalker'](_0x2ea55f,{'column':_0x211e42,'includeAllSlots':!0x1});for(const _0x250f09 of _0x5afb0d){const _0xb272bd=_0x250f09['cell'],_0x4b8d06=_0x37c074['mapper']['toViewElement'](_0xb272bd);_0x37c074['writer']['addClass']('ck-suggestion-marker-'+_0x598c08,_0x4b8d06),_0x896576&&_0x37c074['writer']['setAttribute']('data-suggestion',_0x4f88bc,_0x4b8d06),_0x37c074['mapper']['bindElementToMarker'](_0x4b8d06,_0x399366['markerName']),_0x3ab0ce&&(_0x2b2c86['activeMarkers']['includes'](_0x399366['markerName'])?_0x37c074['writer']['addClass']('ck-suggestion-marker--active',_0x4b8d06):_0x37c074['writer']['removeClass']('ck-suggestion-marker--active',_0x4b8d06));}}};}_0x2b2c86['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4d17fb),_0x2b2c86['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4d17fb),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0xd981b4(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1dcc9b,_0x38f983,_0x2763b1)=>{_0x2763b1['options']['showSuggestionHighlights']&&_0xd981b4({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1dcc9b,_0x38f983,_0x2763b1);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x47e382,_0x43913b,_0x2b2025)=>{const {type:_0x234250,id:_0x450200}=_0x2b2c86['_splitMarkerName'](_0x43913b['markerName']),_0x383b60=_0x2b2c86['getSuggestion'](_0x450200),_0x18592f=_0x383b60['data'];if('formatBlock'!=_0x383b60['type']||!_0x18592f||'setTableColumnHeader'!=_0x18592f['commandName'])return;const _0x443bdc=_0x2b2025['mapper']['markerNameToElements'](_0x43913b['markerName']);if(_0x443bdc){for(const _0x5515ec of _0x443bdc)_0x2b2025['writer']['removeClass']('ck-suggestion-marker-'+_0x234250,_0x5515ec),_0x2b2025['writer']['removeClass']('ck-suggestion-marker--active',_0x5515ec),_0x2b2025['writer']['removeAttribute']('data-suggestion',_0x5515ec),_0x2b2025['mapper']['unbindElementFromMarkerName'](_0x5515ec,_0x43913b['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1201ea=this['editor'],_0x361918=_0x1201ea['locale'];function _0x3305e6(_0x577c14){return{'type':'format','content':o(_0x361918,'*Format:*\x20%0',_0x577c14)};}_0x1201ea['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x13d7e2=>{if('formatBlock'!=_0x13d7e2['type'])return;const {data:_0x4dc693}=_0x13d7e2;if(_0x4dc693){if('setTableRowHeader'==_0x4dc693['commandName']){const _0x1275d8=_0x4dc693['commandParams'][0x0]['forceValue'];return _0x3305e6(o(_0x361918,_0x1275d8?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x4dc693['commandName']){const _0x17cc4c=_0x4dc693['commandParams'][0x0]['forceValue'];return _0x3305e6(o(_0x361918,_0x17cc4c?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class vt extends _0x787ffb{['afterInit'](){const _0x2379cb=this['editor'],_0x2c7a08=_0x2379cb['locale'],_0x38566f=_0x2379cb['plugins']['get']('TrackChangesEditing');function _0x298b69(_0x2d4800){return{'type':'format','content':''+o(_0x2c7a08,'*Set\x20table\x20type:*\x20%0',_0x2d4800)};}_0x2379cb['plugins']['has']('TableLayout')&&(_0x38566f['enableCommand']('insertTableLayout'),_0x38566f['enableDefaultAttributesIntegration']('tableType'),_0x38566f['registerBlockAttribute']('tableType'),_0x38566f['descriptionFactory']['registerElementLabel'](_0x2d9ca8=>_0x2d9ca8['is']('element','table')&&'layout'===_0x2d9ca8['getAttribute']('tableType'),_0x34f68b=>o(_0x2c7a08,'ELEMENT_LAYOUT_TABLE',_0x34f68b)),_0x38566f['descriptionFactory']['registerDescriptionCallback'](_0xbd7e3f=>{const {data:_0x1ffa20}=_0xbd7e3f;if(_0x1ffa20&&'tableType'==_0x1ffa20['key'])switch(_0x1ffa20['newValue']){case'layout':return _0x298b69(o(_0x2c7a08,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x298b69(o(_0x2c7a08,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=/* #__PURE__ -- @preserve */
25
- Object['fromEntries'](Be['map'](_0x339873=>[_0x339873,null]));class Nt extends _0x787ffb{static get['requires'](){return[At];}['afterInit'](){const _0x20e3ac=this['editor'];if(!_0x20e3ac['plugins']['has']('TableClipboard'))return;const _0x113031=_0x20e3ac['plugins']['get']('TrackChangesEditing'),_0x246d07=_0x20e3ac['plugins']['get']('TableUtils'),_0x226a12=_0x20e3ac['plugins']['get'](At),_0x3089d9=_0x20e3ac['plugins']['get']('TableClipboard'),_0x1815d4=_0x20e3ac['plugins']['get']('TableSelection'),_0x32e00b=_0x20e3ac['plugins']['get'](_0x203e86);_0x226a12['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x20e3ac['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x20e3ac['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x701e0f=null,_0x21efbe=!0x1;_0x32e00b['on']('contentInsertion',(_0x3d406c,_0x444c2c)=>{_0x21efbe='paste'===_0x444c2c['method'];}),_0x20e3ac['model']['on']('insertContent',(_0xec10ff,_0x155f3f)=>{if(!_0x21efbe&&null===_0x1815d4['getSelectedTableCells']())return;const [_0x511ba7,_0x4927fe]=_0x155f3f,_0xd28ba1=_0x155f3f[_0x155f3f['length']-0x1];_0xd28ba1&&_0xd28ba1['forceDefaultExecution']||_0x113031['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x10d6c8,_0x46a1ec,_0x4b1958,_0x206aa2,_0x4e1955){if(_0x46a1ec&&!_0x46a1ec['is']('documentSelection'))return!0x1;const _0xc37a03=_0x4e1955['getTableIfOnlyTableInContent'](_0x10d6c8,_0x4b1958);if(!_0xc37a03||!Ue(_0xc37a03,void 0x0,_0x206aa2))return!0x1;const _0x21c643=_0x206aa2['getSelectionAffectedTableCells'](_0x4b1958['document']['selection']);if(!_0x21c643['length'])return!0x1;const _0x3aae68=_0x21c643[0x0]['findAncestor']('table'),_0x4f0858=_0x206aa2['getRowIndexes'](_0x21c643),_0x5f061e=_0x206aa2['getColumnIndexes'](_0x21c643),_0x17759b={'startRow':_0x4f0858['first'],'endRow':_0x4f0858['last'],'startColumn':_0x5f061e['first'],'endColumn':_0x5f061e['last']};return 0x1==_0x21c643['length']&&(_0x17759b['endRow']+=_0x206aa2['getRows'](_0xc37a03)-0x1,_0x17759b['endColumn']+=_0x206aa2['getColumns'](_0xc37a03)-0x1),Ue(_0x3aae68,_0x17759b,_0x206aa2);}(_0x511ba7,_0x4927fe,_0x20e3ac['model'],_0x246d07,_0x3089d9)&&(_0xec10ff['stop'](),_0x701e0f={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x20e3ac['model']['change'](()=>{_0x20e3ac['model']['insertContent'](_0x155f3f[0x0],_0x155f3f[0x1],_0x155f3f[0x2],{'forceDefaultExecution':!0x0});const _0x203972=_0x542cda(),{rowInsertionRanges:_0x3d3492,columnInsertionRanges:_0x51a8f1,insertionRanges:_0x348d13,deletionRanges:_0x154a29,cells:_0x416fac}=_0x701e0f;_0x3d3492['length']&&_0x113031['markMultiRangeInsertion'](_0x3d3492,'tablePasteRow',{'tablePasteChainId':_0x203972}),_0x51a8f1['length']&&_0x113031['markMultiRangeInsertion'](_0x51a8f1,'tablePasteColumn',{'tablePasteChainId':_0x203972}),_0x348d13['length']&&(_0x113031['markMultiRangeInsertion'](_0x348d13,'tablePaste',{'tablePasteChainId':_0x203972,'skipNestingCheck':!0x0}),_0x348d13['forEach'](_0x109732=>_0x109732['detach']?.())),_0x154a29['length']&&(_0x113031['markMultiRangeDeletion'](_0x154a29,'tablePaste',{'tablePasteChainId':_0x203972,'skipNestingCheck':!0x0}),_0x154a29['forEach'](_0x4ac39e=>_0x4ac39e['detach']?.()));const _0x44b6f8=_0x113031['markMultiRangeBlockFormat'](_0x416fac['map'](({element:_0x3ce416})=>_0x3ce416),{'formatGroupId':_0x542cda()},[],'tablePasteCell',{'tablePasteChainId':_0x203972});if(_0x44b6f8){const _0x5412b0=_0x44b6f8['getMarkers'](),_0x50eaea=[];for(const {element:_0x395208,attributes:_0x51e2f8}of _0x416fac){if(!_0x51e2f8)continue;const _0x402048=_0x20e3ac['model']['createRangeOn'](_0x395208),_0x1cc411=_0x5412b0['find'](_0x370671=>_0x370671['getRange']()['isEqual'](_0x402048));_0x1cc411&&_0x50eaea['push']([_0x1cc411['name'],_0x51e2f8]);}_0x50eaea['length']&&_0x44b6f8['setAttribute']('markerAttributes',Object['fromEntries'](_0x50eaea));}_0x701e0f=null;}));},{'priority':_0x150ca2['high']+0xa}),_0x32e00b['on']('contentInsertion',()=>{_0x21efbe=!0x1;},{'priority':'lowest'}),_0x20e3ac['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x310655,_0x57abb0)=>{const [_0x64e796,_0xca6a,,_0x5e5035]=_0x57abb0;if(!_0x701e0f)return;_0x310655['stop']();const _0x46f294=_0x64e796['cell'],_0x1b6326=_0xca6a,_0x2ff979=Oe(_0x46f294),_0x367f91=Oe(_0x1b6326);_0x310655['return']=_0x46f294;let _0x3cdf05=null,_0x1ccd38=null;if(_0x367f91||_0x2ff979){if(_0x2ff979&&!_0x367f91){_0x5e5035['remove'](_0x46f294['getChild'](0x0));for(const _0x51ef7a of Array['from'](_0x1b6326['getChildren']()))_0x5e5035['insert'](_0x51ef7a,_0x46f294,'end');const _0x19e9f6=_0x701e0f['rowInsertionIndexes']['includes'](_0x64e796['row']),_0x83c785=_0x701e0f['columnInsertionIndexes']['includes'](_0x64e796['column']);_0x19e9f6||_0x83c785||(_0x3cdf05=_0x28ae54['fromRange'](_0x5e5035['createRangeIn'](_0x46f294)));}else _0x367f91&&!_0x2ff979&&(_0x1ccd38=_0x5e5035['createRangeIn'](_0x46f294));}else{const _0x21ed5b=_0x5e5035['createElement']('tableCellSuggestion'),_0x3b35c5=_0x5e5035['createElement']('tableCellSuggestion');_0x5e5035['wrap'](_0x5e5035['createRangeIn'](_0x46f294),_0x3b35c5),_0x5e5035['insert'](_0x21ed5b,_0x46f294,0x0);for(const _0x20c649 of Array['from'](_0x1b6326['getChildren']()))_0x5e5035['insert'](_0x20c649,_0x21ed5b,'end');_0x3cdf05=_0x28ae54['fromRange'](_0x5e5035['createRangeOn'](_0x21ed5b)),_0x1ccd38=_0x28ae54['fromRange'](_0x5e5035['createRangeOn'](_0x3b35c5));}const _0x496603=Array['from'](_0x1b6326['getAttributes']())['filter'](([_0x3184ff])=>Be['includes'](_0x3184ff));_0x701e0f['cells']['push']({'element':_0x46f294,'attributes':_0x496603['length']?Object['fromEntries'](_0x496603):null}),_0x3cdf05&&_0x701e0f['insertionRanges']['push'](_0x3cdf05),_0x1ccd38&&_0x701e0f['deletionRanges']['push'](_0x1ccd38);},{'priority':'high'}),_0x246d07['on']('insertColumns',(_0x3f56ea,_0x2164ba)=>{const [_0x4f6c7f,_0x18f6bf={}]=_0x2164ba;if(!_0x701e0f)return;const _0x1d7284=_0x18f6bf['at']||0x0,_0x554ff6=_0x18f6bf['columns']||0x1;_0x701e0f['columnInsertionIndexes']=new Array(_0x554ff6)['fill'](_0x1d7284)['map']((_0x4633ea,_0x277841)=>_0x4633ea+_0x277841);for(const {cell:_0x1a4234}of _0x246d07['createTableWalker'](_0x4f6c7f,{'startColumn':_0x1d7284,'endColumn':_0x1d7284+_0x554ff6-0x1}))_0x701e0f['columnInsertionRanges']['push'](_0x20e3ac['model']['createRangeOn'](_0x1a4234));},{'priority':'low'}),_0x246d07['on']('insertRows',(_0x763532,_0x529563)=>{const [_0x34d456,_0x2b476f={}]=_0x529563;if(!_0x701e0f)return;const _0x4552c2=_0x2b476f['at']||0x0,_0x2b320e=_0x2b476f['rows']||0x1;_0x701e0f['rowInsertionIndexes']=new Array(_0x2b320e)['fill'](_0x4552c2)['map']((_0x4e2d02,_0x21cc87)=>_0x4e2d02+_0x21cc87);for(const {cell:_0x2bf28f}of _0x246d07['createTableWalker'](_0x34d456,{'startRow':_0x4552c2,'endRow':_0x4552c2+_0x2b320e-0x1}))_0x701e0f['rowInsertionRanges']['push'](_0x20e3ac['model']['createRangeOn'](_0x2bf28f));},{'priority':'low'}),_0x113031['descriptionFactory']['registerDescriptionCallback'](_0x166689=>{if(_0x166689['subType']&&_0x166689['subType']['startsWith']('tablePaste'))return _0x166689['previous']?{}:{'type':'insertion','content':o(_0x20e3ac['locale'],'*Replace\x20table\x20cells*')};});const _0x5b5b07=()=>!0x1;for(const _0x4a2241 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x113031['_suggestionFactory']['registerCustomCallback']('insertion',_0x4a2241,'join',_0x5b5b07),_0x113031['_suggestionFactory']['registerCustomCallback']('deletion',_0x4a2241,'join',_0x5b5b07),_0x113031['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4a2241,'join',_0x5b5b07);_0x113031['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x5b5b07),_0x113031['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x3f86be,_0x130df5,_0x12815f)=>{const _0x5c9b44=_0x3f86be['map'](_0x1858a2=>_0x1858a2['getContainedElement']())['filter'](_0xb066bf=>_0xb066bf),_0x4beb4b=new Map(_0x5c9b44['map'](_0xaeacff=>[_0xaeacff,null]));if(_0x701e0f){for(const {element:_0x3e17e5,attributes:_0x128916}of _0x701e0f['cells'])_0x128916&&_0x4beb4b['set'](_0x3e17e5,_0x128916);}else{if(_0x12815f&&_0x12815f['markerAttributes'])for(const [_0x520849,_0x3b27ac]of Object['entries'](_0x12815f['markerAttributes'])){const _0x49aac7=_0x20e3ac['model']['markers']['get'](_0x520849),_0x51bb0a=_0x49aac7?_0x49aac7['getRange']()['getContainedElement']():null;_0x51bb0a&&_0x4beb4b['set'](_0x51bb0a,_0x3b27ac);}}_0x20e3ac['model']['change'](_0x1f7a06=>{for(const [_0x1d9c90,_0x54c41b]of _0x4beb4b)_0x1f7a06['setAttributes']({...xe,..._0x54c41b},_0x1d9c90);});});const _0x5b42b7=(_0xd5b756,_0x28da88)=>{_0x113031['_suggestionFactory']['registerCustomCallback'](_0xd5b756,'tablePaste',_0x28da88,(_0x3770df,_0x1b37b8,_0x399892)=>{_0x20e3ac['model']['change'](_0x1d703a=>{const _0x2b8818=[];for(const _0x6d1759 of _0x3770df){const _0x360e29=_0x6d1759['start']['nodeAfter'];_0x360e29['is']('element','tableCellSuggestion')&&_0x2b8818['push'](_0x360e29);}_0x113031['_suggestionFactory']['getSuggestionCallback'](_0xd5b756,null,_0x28da88)(_0x3770df,_0x1b37b8,_0x399892);for(const _0x96ae5f of _0x2b8818)'$graveyard'!=_0x96ae5f['root']['rootName']&&_0x1d703a['unwrap'](_0x96ae5f);});});};_0x5b42b7('insertion','accept'),_0x5b42b7('insertion','discard'),_0x5b42b7('deletion','accept'),_0x5b42b7('deletion','discard'),_0x113031['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x51d42b=>{const _0x3cc5c6=_0x51d42b['map'](_0xb5a15a=>_0xb5a15a['getContainedElement']()),_0x28ee9e=_0x3cc5c6[0x0]['findAncestor']('table'),{minRow:_0x549a73,maxRow:_0x92d8b}=_0x226a12['_getCoordsForCells'](_0x3cc5c6);_0x246d07['removeRows'](_0x28ee9e,{'at':_0x549a73,'rows':_0x92d8b-_0x549a73+0x1});}),_0x113031['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x3cebef=>{const _0x182d0a=_0x3cebef['map'](_0x8e7a=>_0x8e7a['getContainedElement']()),_0x3c9c92=_0x182d0a[0x0]['findAncestor']('table'),{minColumn:_0x28d8a3,maxColumn:_0x19d5b0}=_0x226a12['_getCoordsForCells'](_0x182d0a);_0x246d07['removeColumns'](_0x3c9c92,{'at':_0x28d8a3,'columns':_0x19d5b0-_0x28d8a3+0x1});});const _0x2afff8=(_0x560dc0,_0x3fce17)=>{if(!_0x3fce17['subType']||!_0x3fce17['subType']['startsWith']('tablePaste'))return;const _0x4386a2=_0x3fce17['attributes']['tablePasteChainId'],_0x2348eb=_0x113031['getSuggestions']()['filter'](_0x48e360=>_0x48e360['isInContent']&&_0x48e360['attributes']&&_0x48e360['attributes']['tablePasteChainId']==_0x4386a2);_0x2348eb['length']&&_0x3fce17['getAllAdjacentSuggestions']()['length']!=_0x2348eb['length']&&_0x2348eb['reduce']((_0x52609a,_0x1634a2)=>(_0x52609a['next']=_0x1634a2,_0x1634a2['previous']=_0x52609a,_0x1634a2));};function _0x5487f7(_0x37eac1,_0x9dbdf8=!0x0){const {id:_0x265a49,authorId:_0x3565db}=_0x113031['_splitMarkerName'](_0x37eac1['markerName']),_0x225213=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x539221=_0x113031['activeMarkers']['includes'](_0x37eac1['markerName']);return _0x539221&&_0x225213['push']('ck-suggestion-marker--active'),{'classes':_0x225213,'attributes':{'data-suggestion':_0x265a49,'data-author-id':_0x3565db},'priority':_0x539221&&_0x9dbdf8?0xbc2:0xbb8};}_0x113031['on']('suggestionLoaded',_0x2afff8,{'priority':'high'}),_0x113031['on']('suggestionUnloaded',_0x2afff8,{'priority':'high'}),_0x20e3ac['model']['document']['registerPostFixer'](()=>{let _0x5b6d0c=!0x1;const _0x212284=Array['from'](_0x20e3ac['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x309472,data:_0x52782a}of _0x212284){const {group:_0x1c5378,type:_0x5b4d13,id:_0xfabbcf}=_0x113031['_splitMarkerName'](_0x309472);if('suggestion'!=_0x1c5378||'deletion'!=_0x5b4d13||_0x52782a['oldRange'])continue;if(!_0x113031['hasSuggestion'](_0xfabbcf))continue;const _0x2e06d2=_0x113031['getSuggestion'](_0xfabbcf)['getRanges'](),_0x1206df=_0x20e3ac['plugins']['get']('Users')['me'];for(const _0x3e3011 of _0x113031['getSuggestions']()){if(!_0x3e3011['isInContent']||_0x3e3011['author']!=_0x1206df)continue;if('formatBlock'!=_0x3e3011['type']||'tablePasteCell'!=_0x3e3011['subType'])continue;if(_0x3e3011['getRanges']()['every'](_0x54dbc6=>_0x2e06d2['some'](_0x3c82a0=>_0x3c82a0['containsRange'](_0x54dbc6,!0x0)))){for(const _0x3d458b of _0x3e3011['getAllAdjacentSuggestions']())_0x3d458b['isInContent']&&(_0x3d458b['discard'](),_0x5b6d0c=!0x0);}}}return _0x5b6d0c;}),_0x20e3ac['model']['document']['registerPostFixer'](_0x3fb32e=>{const _0x48102b=_0x20e3ac['commands']['get']('redo');if(!_0x48102b||!_0x48102b['_createdBatches']['has'](_0x3fb32e['batch']))return!0x1;let _0xb27955=!0x1;const _0xb9b153=_0x20e3ac['plugins']['get']('Users')['me'],_0x75f77e=_0x20e3ac['model']['document']['differ']['getChanges'](),_0x5d3ea2=Array['from'](_0x20e3ac['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x3f905e,data:_0x2e4900})=>{const {group:_0x2dd2ac,subType:_0x126f2a,authorId:_0x270750}=_0x113031['_splitMarkerName'](_0x3f905e);return'suggestion'==_0x2dd2ac&&'tablePaste'==_0x126f2a&&_0x270750==_0xb9b153['id']&&!_0x2e4900['oldRange'];});for(const _0x15663a of _0x75f77e){if('insert'!=_0x15663a['type']||'tableCellSuggestion'!=_0x15663a['name']||0x1!=_0x15663a['length'])continue;const _0x240427=_0x3fb32e['createRange'](_0x15663a['position'],_0x15663a['position']['getShiftedBy'](0x1));if(!_0x5d3ea2['find'](({data:_0x1b8b5c})=>_0x1b8b5c['newRange']['isEqual'](_0x240427))){for(const {name:_0x425ec9,data:_0x12e316}of _0x5d3ea2)if(_0x240427['containsRange'](_0x12e316['newRange'])){_0x3fb32e['updateMarker'](_0x425ec9,{'range':_0x240427}),_0xb27955=!0x0;break;}}}return _0xb27955;}),_0x20e3ac['model']['document']['registerPostFixer'](_0x3408c8=>{let _0x2a4fa5=!0x1;const _0x2532c4=_0x20e3ac['plugins']['get']('Users')['me'],_0x3c5b64=_0x113031['getSuggestions']()['filter'](_0x45d145=>_0x45d145['isInContent']&&_0x45d145['author']==_0x2532c4),_0x15dcfa=new Set(),_0x1bfaa0=new Set();for(const _0x2c642d of _0x3c5b64)if('tablePaste'==_0x2c642d['subType'])for(const _0x234c20 of _0x2c642d['getMarkers']()){const _0x6e6a62=_0x234c20['getRange']()['getContainedElement']();if(_0x6e6a62){if(_0x6e6a62['is']('element','tableCellSuggestion')&&Oe(_0x6e6a62)){_0x2c642d['removeMarker'](_0x234c20['name']),_0x15dcfa['add'](_0x6e6a62),_0x2a4fa5=!0x0;const _0x2221a5=_0x6e6a62['nextSibling'],_0x4d7d30=_0x6e6a62['previousSibling'],_0x16e88b=_0x2221a5&&_0x2221a5['is']('element','tableCellSuggestion'),_0xdb9568=_0x4d7d30&&_0x4d7d30['is']('element','tableCellSuggestion');_0x16e88b&&!_0x15dcfa['has'](_0x2221a5)&&_0x1bfaa0['add'](_0x2221a5),_0xdb9568&&!_0x15dcfa['has'](_0x4d7d30)&&_0x1bfaa0['add'](_0x4d7d30);}else _0x6e6a62['is']('element','paragraph')&&_0x6e6a62['isEmpty']&&(_0x2c642d['removeMarker'](_0x234c20['name']),_0x2a4fa5=!0x0);}}else{if('tablePasteCell'==_0x2c642d['subType']){if(!_0x2c642d['attributes']||!_0x2c642d['attributes']['tablePasteChainId'])continue;const _0x58f808=_0x2c642d['attributes']['markerAttributes'];if(_0x58f808&&Object['keys'](_0x58f808)['length'])continue;const _0x1a56de=_0x2c642d['attributes']['tablePasteChainId'];let _0x4a992c=!0x0,_0x541516=!0x0;for(const _0x5659c2 of _0x3c5b64)if(_0x5659c2['subType']&&_0x5659c2['subType']['startsWith']('tablePaste')){if(!_0x5659c2['attributes']['tablePasteChainId']){_0x541516=!0x1;break;}if(_0x5659c2['id']!=_0x2c642d['id']&&_0x5659c2['attributes']['tablePasteChainId']==_0x1a56de){_0x4a992c=!0x1;break;}}_0x541516&&_0x4a992c&&(_0x2c642d['removeMarkers'](),_0x2a4fa5=!0x0);}}for(const _0x395ba7 of _0x15dcfa)_0x3408c8['remove'](_0x395ba7);for(const _0x538670 of _0x1bfaa0)_0x3408c8['unwrap'](_0x538670);return _0x2a4fa5;}),_0x20e3ac['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x575db7=>_0x5487f7(_0x575db7),'converterPriority':'high'}),_0x20e3ac['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2d3d2b,_0x497688)=>_0x497688['options']['showSuggestionHighlights']?_0x5487f7(_0x2d3d2b,!0x1):null,'converterPriority':'high'});const _0x2ae73a=_0x20e3ac['editing']['view'];this['listenTo'](_0x2ae73a['document'],'clipboardOutput',(_0x33d04e,_0x3c12cd)=>{const _0x2a0f74=[];for(const _0x5aa6a5 of _0x2ae73a['createRangeIn'](_0x3c12cd['content'])['getItems']())_0x5aa6a5['is']('element','suggestion-td')&&_0x2a0f74['push'](_0x5aa6a5);_0x2ae73a['change'](_0x2ca525=>{for(const _0x45e652 of _0x2a0f74)_0x2ca525['move'](_0x2ca525['createRangeIn'](_0x45e652),_0x2ca525['createPositionBefore'](_0x45e652)),_0x2ca525['remove'](_0x45e652);});});}}function Oe(_0x348662){if(_0x348662['isEmpty'])return!0x0;const _0x1b4d40=_0x348662['getChild'](0x0);return _0x1b4d40['is']('element','paragraph')&&_0x1b4d40['isEmpty'];}function Ue(_0x567f5c,_0x514395={},_0x3aabef){for(const {isAnchor:_0xa69888,cellHeight:_0x4f46cb,cellWidth:_0x41e661}of _0x3aabef['createTableWalker'](_0x567f5c,{'includeAllSlots':!0x0,..._0x514395}))if(!_0xa69888||0x1!=_0x4f46cb||0x1!=_0x41e661)return!0x1;return!0x0;}class Dt extends _0x787ffb{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x3d74ce=this['editor']['plugins']['get']('TrackChangesEditing');_0x3d74ce['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x3d74ce['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x3d74ce['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3d74ce['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x3d74ce['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x3d74ce['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x507668,_0x365f18){const _0x24fd4f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3de3de=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x22a7fe=_0x365f18['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x148935=_0x3de3de['getColumnGroupElement'](_0x22a7fe);let _0x189db9=_0x148935?_0x3de3de['getTableColumnsWidths'](_0x148935):null,_0x1155ee=_0x22a7fe['getAttribute']('tableWidth')||null;const _0x2dcf44=_0x365f18['tableWidth']||_0x1155ee,_0x127dfb=_0x365f18['columnWidths']||_0x189db9,_0x54bc80=this['editor']['plugins']['get']('Users')['me'];for(const _0x4d3b8e of _0x24fd4f['getSuggestions']()){const _0x6c34a0=_0x4d3b8e['getContainedElement']();if('resizeTable'===_0x4d3b8e['subType']&&_0x6c34a0===_0x22a7fe){_0x4d3b8e['author']!==_0x54bc80&&_0x4d3b8e['discard']();const _0x46027e=_0x4d3b8e['data']['commandParams'];_0x1155ee=_0x46027e[0x0]['tableWidth'],_0x189db9=_0x46027e[0x0]['columnWidths'];break;}}_0x507668({'table':_0x22a7fe,'tableWidth':_0x2dcf44,'columnWidths':_0x127dfb}),_0x24fd4f['markBlockFormat'](_0x22a7fe,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x1155ee,'columnWidths':_0x189db9}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x586fb1){if('formatBlock'!=_0x586fb1['type']&&'formatInline'!=_0x586fb1['type'])return;const {data:_0x47a7cd}=_0x586fb1;if(_0x47a7cd&&'resizeTable'===_0x47a7cd['formatGroupId']){const _0x4f4ae5='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x4f4ae5)};}}}class $t extends _0x787ffb{['afterInit'](){const _0x5624ae=this['editor'];_0x5624ae['plugins']['has']('Template')&&_0x5624ae['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x787ffb{['afterInit'](){const _0x108f1d=this['editor'];if(!_0x108f1d['commands']['get']('insertTableOfContents'))return;_0x108f1d['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x119f37=_0x108f1d['plugins']['get']('TrackChangesEditing'),_0x331ace=_0x108f1d['locale'];_0x119f37['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1c0ad1=>o(_0x331ace,'ELEMENT_TABLE_OF_CONTENTS',_0x1c0ad1));}}class Bt extends _0x787ffb{['afterInit'](){const _0x2eee8f=this['editor'];if(!_0x2eee8f['plugins']['has']('Title'))return;const _0x159a7e=_0x2eee8f['plugins']['get']('TrackChangesEditing');_0x159a7e['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x2eee8f['locale'],'ELEMENT_TITLE')),_0x2eee8f['model']['document']['registerPostFixer'](_0x18be0f=>{let _0x5b757e=!0x1;const _0x1c29a8=Array['from'](_0x2eee8f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1ab71e,data:_0x452cb5}of _0x1c29a8){const {group:_0x1ccc88}=_0x159a7e['_splitMarkerName'](_0x1ab71e);if('suggestion'!==_0x1ccc88||!_0x452cb5['newRange'])continue;const _0x4c6211=_0x452cb5['newRange'],_0x31da84=_0x4c6211['end']['nodeBefore'];if(!_0x31da84||!_0x31da84['is']('element','title-content'))continue;if(!_0x4c6211['start']['isTouching'](_0x4c6211['end']))continue;const _0x3c6285=_0x2eee8f['model']['schema']['getNearestSelectionRange'](_0x4c6211['end'],'forward');if(_0x3c6285&&_0x3c6285['isCollapsed']){const _0x446280=_0x18be0f['createRange'](_0x4c6211['start'],_0x3c6285['start']);_0x446280['isEqual'](_0x4c6211)||(_0x18be0f['updateMarker'](_0x1ab71e,{'range':_0x446280}),_0x5b757e=!0x0);}_0x5b757e||(_0x18be0f['removeMarker'](_0x1ab71e),_0x5b757e=!0x0);}return _0x5b757e;});}}class Tt extends _0x787ffb{['afterInit'](){const _0x56bc65=this['editor'],_0x7498cc=_0x56bc65['plugins']['get']('TrackChangesEditing');_0x56bc65['plugins']['has']('Uploadcare')&&(_0x7498cc['enableCommand']('uploadcare'),_0x56bc65['plugins']['has']('UploadcareImageEdit')&&(_0x7498cc['enableCommand']('uploadcareImageEdit'),_0x7498cc['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x7498cc['registerBlockAttribute']('uploadcareImageId'),_0x7498cc['descriptionFactory']['registerDescriptionCallback'](_0x1e0e9f=>{if('attribute'!=_0x1e0e9f['type'])return;const {data:_0xfa7c12}=_0x1e0e9f;return _0xfa7c12&&'uploadcareImageId'==_0xfa7c12['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x787ffb{['afterInit'](){const _0x13ee22=this['editor'],_0x2580f6=_0x13ee22['plugins']['get']('TrackChangesEditing');_0x13ee22['plugins']['has']('UndoEditing')&&(_0x2580f6['enableCommand']('undo'),_0x2580f6['enableCommand']('redo'));}}class Ot extends _0x787ffb{static get['requires'](){return[At];}['afterInit'](){const _0x1b9c2c=this['editor'];if(!_0x1b9c2c['plugins']['has']('TableCaptionEditing'))return;_0x1b9c2c['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0x787ffb{['tableProperties'];['tableCellProperties'];constructor(_0x3aa11c){super(_0x3aa11c),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 _0x2bcfee=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x5f35ec of this['tableProperties'])_0x2bcfee['enableCommand'](_0x5f35ec,(_0x7bf903,_0x287115)=>{const _0x3eca87=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x5f35ec,[_0x3eca87],this['tableProperties'],'tableProperties',_0x7bf903,_0x287115);});_0x2bcfee['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x2bcfee['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2bcfee['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x50c71f,_0x112527)=>this['handleDiscardAction'](this['tableProperties'],_0x50c71f,_0x112527)),_0x2bcfee['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x33f76a of this['tableCellProperties'])_0x2bcfee['enableCommand'](_0x33f76a,(_0x500291,_0x14475d)=>{const _0x3a9f76=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x33f76a,_0x3a9f76,this['tableCellProperties'],'tableCellProperties',_0x500291,_0x14475d);});_0x2bcfee['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x2bcfee['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2bcfee['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0xa2e4c2,_0xa980bc)=>this['handleDiscardAction'](this['tableCellProperties'],_0xa2e4c2,_0xa980bc)),_0x2bcfee['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x2bcfee['descriptionFactory']['registerDescriptionCallback'](_0x33ec32=>this['handleSuggestionDescription'](_0x33ec32)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x4ae3cd,_0x66cbeb,_0x51178b,_0x4a6156,_0x42a0b1,_0x21d389){const _0x29fbe1=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x21d389['batch'],()=>{for(const _0x35dcf1 of _0x66cbeb){if(this['_getSuggestion'](_0x35dcf1,_0x4a6156))_0x42a0b1(_0x21d389);else{const _0x22f8bd={};for(const _0x319216 of _0x51178b){const _0x1cb6fb=_0x35dcf1['getAttribute'](_0x319216);void 0x0!==_0x1cb6fb&&(_0x22f8bd[_0x319216]=_0x1cb6fb);}_0x42a0b1(_0x21d389),_0x29fbe1['markBlockFormat'](_0x35dcf1,{'commandParams':[_0x22f8bd]},[],_0x4a6156);}}});}['handleDiscardAction'](_0x1b1d82,_0x2a3954,_0x67549){const _0x3a9b7d=_0x2a3954[0x0]['start']['nodeAfter'],_0x253635=_0x67549['commandParams'][0x0];this['editor']['model']['change'](_0xb95468=>{for(const _0x1037d8 of _0x1b1d82)void 0x0!==_0x253635[_0x1037d8]?_0xb95468['setAttribute'](_0x1037d8,_0x253635[_0x1037d8],_0x3a9b7d):_0xb95468['removeAttribute'](_0x1037d8,_0x3a9b7d);});}['handleSuggestionDescription'](_0x133e80){if(_0x133e80['data'])switch(_0x133e80['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'](_0x233782,_0x34d5d4){const _0x17c2e3=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x41fd42 of _0x17c2e3['getSuggestions']({'skipNotAttached':!0x0})){const _0x22154b=_0x41fd42['getContainedElement']();if(_0x41fd42['subType']===_0x34d5d4&&_0x22154b===_0x233782)return _0x41fd42;}return null;}['_registerTablePropertiesAttributes'](){const _0x2d4c85=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5053f6=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x46122f of _0x5053f6){const _0x59380c=_0x46122f['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x2d4c85['registerBlockAttribute'](_0x46122f),_0x2d4c85['descriptionFactory']['registerAttributeLabel'](_0x46122f,o(this['editor']['locale'],'FORMAT_'+_0x59380c));}}}class Rt extends _0x787ffb{['afterInit'](){const _0xc0f484=this['editor'];if(!_0xc0f484['plugins']['has']('LineHeight'))return;const _0x21b40c=_0xc0f484['plugins']['get']('TrackChangesEditing'),_0x108df5=_0xc0f484['locale'];_0x21b40c['enableDefaultAttributesIntegration']('lineHeight'),_0x21b40c['registerBlockAttribute']('lineHeight'),_0x21b40c['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x108df5,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x787ffb{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x87368d,_0xfb545,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(_0x35eb1c){super(_0x35eb1c),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x213e3d,_0xdada76,_0x34f10e,_0x450a43)=>{this['_model']['change'](()=>{for(const _0x5407af of[..._0x450a43,..._0x34f10e])this['_model']['markers']['has'](_0x5407af)&&_0x35eb1c['editing']['reconvertMarker'](_0x5407af);});}),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']=_0x35eb1c['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(),_0x35eb1c['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x35eb1c['config']['get']('trackChanges.trackFormatChanges'),_0x35eb1c['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x35eb1c['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new N(_0x35eb1c,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x38e8b2=this['editor'],_0x1c8cdc=(_0x3cdda9,_0x16be1f)=>{if('attribute'!=_0x3cdda9)return'ck-suggestion-marker-'+_0x3cdda9;const _0x7a6afc=_0x16be1f['split']('|')[0x0];return this['_isBlockAttribute'](_0x7a6afc)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x38e8b2['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x2ba68a=>{const {id:_0x9b5123,authorId:_0x624d8d,type:_0xa2474a,subType:_0x307fba}=this['_splitMarkerName'](_0x2ba68a['markerName']),_0x2755b2=['ck-suggestion-marker',_0x1c8cdc(_0xa2474a,_0x307fba)];let _0x2e9db8=0xbb8;return this['activeMarkers']['includes'](_0x2ba68a['markerName'])&&(_0x2755b2['push']('ck-suggestion-marker--active'),_0x2e9db8=0xbc2),'deletion'==_0xa2474a&&(_0x2e9db8+=0x5),{'classes':_0x2755b2,'attributes':{'data-suggestion':_0x9b5123,'data-author-id':_0x624d8d},'priority':_0x2e9db8};}}),_0x38e8b2['conversion']['for']('dataDowncast')['add'](_0x111cb9=>{_0x111cb9['on']('addMarker:suggestion',(_0x414f02,_0x1c6d3f,_0x4dcf8d)=>{if(!_0x4dcf8d['options']['showSuggestionHighlights'])return;const _0x2e16b4=_0x1c6d3f['item'];if(!_0x2e16b4)return;const _0x455e50=_0x4dcf8d['mapper']['toViewElement'](_0x2e16b4);_0x38e8b2['model']['schema']['isObject'](_0x2e16b4)&&_0x455e50&&!_0x455e50['getCustomProperty']('widget')&&_0x455e50['is']('containerElement')&&_0xe678b5(_0x455e50,_0x4dcf8d['writer']);},{'priority':'high'});}),_0x38e8b2['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x1a646,_0x3572e8)=>{if(!_0x3572e8['options']['showSuggestionHighlights'])return null;const {id:_0x26cd59,authorId:_0x2bd70d,type:_0x42230a,subType:_0x345959}=this['_splitMarkerName'](_0x1a646['markerName']);return{'classes':['ck-suggestion-marker',_0x1c8cdc(_0x42230a,_0x345959)],'priority':0xbb8,'attributes':{'data-suggestion':_0x26cd59,'data-author-id':_0x2bd70d}};}});const _0x532f96=({showActiveMarkers:_0x3a429a=!0x0,isAttributeSuggestion:_0x2e6f22=!0x1}={})=>(_0x5e1e1b,_0x338b90,_0x331d31)=>{if(!_0x338b90['item'])return;const {id:_0x596285,authorId:_0x21dd3d}=this['_splitMarkerName'](_0x338b90['markerName']);if(_0x2e6f22){const _0x1c526f=this['_suggestions']['get'](_0x596285),_0x594778=this['_getAttributeKey'](_0x1c526f);if(!this['_isBlockAttribute'](_0x594778))return;}if(_0x338b90['item']['is']('selection'))return void _0x331d31['consumable']['consume'](_0x338b90['item'],_0x5e1e1b['name']);const _0x170a35=_0x331d31['mapper']['toViewElement'](_0x338b90['item']);if(_0x338b90['item']['is']('element')&&_0x38e8b2['model']['schema']['isBlock'](_0x338b90['item'])&&!_0x170a35['getCustomProperty']('addHighlight')){_0x331d31['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x170a35),_0x331d31['writer']['setAttribute']('data-suggestion',_0x596285,_0x170a35),_0x331d31['writer']['setAttribute']('data-author-id',_0x21dd3d,_0x170a35),_0x331d31['mapper']['bindElementToMarker'](_0x170a35,_0x338b90['markerName']),_0x3a429a&&(this['activeMarkers']['includes'](_0x338b90['markerName'])?_0x331d31['writer']['addClass']('ck-suggestion-marker--active',_0x170a35):_0x331d31['writer']['removeClass']('ck-suggestion-marker--active',_0x170a35));for(const _0x47eff1 of _0x38e8b2['model']['createRangeIn'](_0x338b90['item'])['getItems']())_0x331d31['consumable']['consume'](_0x47eff1,_0x5e1e1b['name']);_0x331d31['consumable']['consume'](_0x338b90['item'],_0x5e1e1b['name']);}};_0x38e8b2['conversion']['for']('dataDowncast')['add'](_0xd6bac4=>{_0xd6bac4['on']('addMarker:suggestion:formatBlock',(_0x2bcb0d,_0xf58fb1,_0x26161c)=>{_0x26161c['options']['showSuggestionHighlights']&&_0x532f96({'showActiveMarkers':!0x1})(_0x2bcb0d,_0xf58fb1,_0x26161c);},{'priority':'highest'});}),_0x38e8b2['conversion']['for']('dataDowncast')['add'](_0xbd7c34=>{_0xbd7c34['on']('addMarker:suggestion:attribute',(_0x11b883,_0x57385d,_0x1be725)=>{_0x1be725['options']['showSuggestionHighlights']&&_0x532f96({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x11b883,_0x57385d,_0x1be725);},{'priority':'highest'});}),_0x38e8b2['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x255958,_0x1e9796)=>{if(_0x1e9796['options']['showSuggestionHighlights']){const {id:_0x1e669d,authorId:_0x4a7848}=this['_splitMarkerName'](_0x255958);return _0x255958['includes'](':split')||_0x255958['includes'](':merge')?{'group':'suggestion','name':_0x255958['substr'](0xb),'attributes':{'data-suggestion':_0x1e669d,'data-author-id':_0x4a7848}}:null;}return{'group':'suggestion','name':_0x255958['substr'](0xb)};}}),_0x38e8b2['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x206102,{writer:_0x10fe03})=>{let _0x16328a='suggestion:'+_0x206102['getAttribute']('suggestion-type')+':'+_0x206102['getAttribute']('id');return _0x206102['getAttribute']('marker-count')&&(_0x16328a+=':'+_0x206102['getAttribute']('marker-count')),_0x10fe03['createElement']('$marker',{'data-name':_0x16328a});}}),_0x38e8b2['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x38e8b2['conversion']['for']('editingDowncast')['add'](_0x242573=>{_0x242573['on']('addMarker:suggestion:formatBlock',_0x532f96(),{'priority':'high'});}),_0x38e8b2['conversion']['for']('editingDowncast')['add'](_0x283282=>{_0x283282['on']('addMarker:suggestion:attribute',_0x532f96({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x38e8b2['conversion']['for']('editingDowncast')['add'](_0x5823cc=>{_0x5823cc['on']('removeMarker:suggestion:formatBlock',(_0x1451c4,_0x21b7ab,_0x1e860e)=>{const _0x5d2deb=_0x1e860e['mapper']['markerNameToElements'](_0x21b7ab['markerName']);if(_0x5d2deb){for(const _0x3e0a9f of _0x5d2deb)_0x3e0a9f['getCustomProperty']('addHighlight')||(_0x1e860e['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3e0a9f),_0x1e860e['writer']['removeAttribute']('data-suggestion',_0x3e0a9f),_0x1e860e['writer']['removeAttribute']('data-author-id',_0x3e0a9f),_0x1e860e['mapper']['unbindElementFromMarkerName'](_0x3e0a9f,_0x21b7ab['markerName']));}},{'priority':'high'});}),_0x38e8b2['conversion']['for']('editingDowncast')['add'](_0xa77d41=>{_0xa77d41['on']('removeMarker:suggestion:attribute',(_0xca42da,_0x303413,_0x19a15c)=>{const _0x3380b9=_0x19a15c['mapper']['markerNameToElements'](_0x303413['markerName']);if(!_0x3380b9)return;const {id:_0x2a67f0}=this['_splitMarkerName'](_0x303413['markerName']),_0x345fbd=this['_suggestions']['get'](_0x2a67f0),_0x525a3=this['_getAttributeKey'](_0x345fbd);if(this['_isBlockAttribute'](_0x525a3)){for(const _0x2d5314 of _0x3380b9)_0x2d5314['getCustomProperty']('addHighlight')||(_0x19a15c['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2d5314),_0x19a15c['writer']['removeAttribute']('data-suggestion',_0x2d5314),_0x19a15c['writer']['removeAttribute']('data-author-id',_0x2d5314),_0x19a15c['mapper']['unbindElementFromMarkerName'](_0x2d5314,_0x303413['markerName']));}},{'priority':'high'});}),_0x38e8b2['model']['document']['registerPostFixer'](_0x37940d=>{let _0x10b417=!0x1;const _0x1b3edf=Array['from'](_0x38e8b2['model']['document']['differ']['getChangedMarkers']()),_0x3d2d25=new Set();for(const {name:_0x4326dc,data:_0xed0145}of _0x1b3edf){const {group:_0x3ef421,type:_0x390ad6,subType:_0x1d8f83,id:_0x5daa94}=this['_splitMarkerName'](_0x4326dc);if('suggestion'!==_0x3ef421)continue;const _0x529200=_0x1d8f83?'suggestion:'+_0x390ad6+':'+_0x1d8f83+':'+_0x5daa94:'suggestion:'+_0x390ad6+':'+_0x5daa94,_0x589bfa=_0x38e8b2['model']['markers']['getMarkersGroup'](_0x529200),_0x37c9ac=_0x38e8b2['model']['markers']['get'](_0x4326dc),_0x445653=this['_suggestions']['get'](_0x5daa94);if(null!=_0xed0145['newRange']){'formatInline'==_0x390ad6&&(_0x10b417=_0x10b417||Gt(_0xed0145['newRange'],_0x4326dc,_0x37940d,_0x38e8b2['model']['schema']));const _0x21f0ac='attribute'==_0x390ad6&&this['_isBlockAttribute'](_0x1d8f83['split']('|')[0x0]),_0x2a8573='attribute'==_0x390ad6&&this['_isInlineAttribute'](_0x1d8f83['split']('|')[0x0]);if(_0xed0145['newRange']['isCollapsed']||'$graveyard'==_0xed0145['newRange']['root']['rootName']||'formatBlock'==_0x390ad6&&!Jt(_0xed0145['newRange'])||_0x21f0ac&&!Jt(_0xed0145['newRange'])||_0x2a8573&&Kt(_0xed0145['newRange'])||'deletion'==_0x390ad6&&Kt(_0xed0145['newRange'])||_0x37c9ac&&Ht(_0x37c9ac,_0x589bfa))_0x37940d['removeMarker'](_0x4326dc),_0x10b417=!0x0;else{if(!_0x445653||!_0x445653['isInContent'])continue;if(_0xed0145['newRange']&&_0xed0145['oldRange']&&_0xed0145['newRange']['isEqual'](_0xed0145['oldRange']))continue;_0x3d2d25['add'](_0x445653);}}}return _0x3d2d25['size']>0x0&&(_0x10b417=!!this['_joinWithAdjacentSuggestions'](_0x3d2d25)||_0x10b417),_0x10b417;}),_0x38e8b2['model']['document']['registerPostFixer'](_0x29d8bb=>{let _0x555fa4=!0x1;for(const _0x3585e6 of _0x38e8b2['model']['document']['differ']['getChanges']())if('insert'==_0x3585e6['type'])for(const _0x5f5141 of this['_suggestions']['values']()){if(_0x5f5141['isMultiRange']||!_0x5f5141['isInContent'])continue;const _0x36e43f='formatBlock'==_0x5f5141['type'],_0x34cc7a=this['_getAttributeKey'](_0x5f5141),_0x40bb56=_0x34cc7a&&this['_isBlockAttribute'](_0x34cc7a);if(!_0x36e43f&&!_0x40bb56)continue;const _0x4e99f1=_0x5f5141['getFirstRange']();if(_0x4e99f1['start']['parent']!=_0x4e99f1['end']['parent']&&!_0x4e99f1['end']['isAtEnd']){const _0x19a09a=_0x38e8b2['model']['createPositionAt'](_0x4e99f1['start']['nodeAfter'],'end'),_0x3a93e6=_0x38e8b2['model']['createRange'](_0x4e99f1['start'],_0x19a09a);_0x29d8bb['updateMarker'](_0x5f5141['getFirstMarker'](),{'range':_0x3a93e6}),_0x555fa4=!0x0;}}return _0x555fa4;}),_0x38e8b2['model']['document']['registerPostFixer'](_0x338bbb=>this['_processAttributeChanges'](_0x338bbb)),_0x38e8b2['model']['document']['registerPostFixer'](_0x2bffb4=>!_0x2bffb4['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2bffb4)),_0x38e8b2['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x38e8b2['model']['document']['on']('change:data',(_0x3b11bf,_0x489dab)=>{if(!_0x489dab['isLocal']||_0x489dab['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x3d8b0f=_0x38e8b2['model']['document']['differ']['getChanges']();if(0x0==_0x3d8b0f['length'])return;const _0x4a668d=[],_0x479794=_0x3d8b0f['filter'](_0x4aafc1=>'attribute'==_0x4aafc1['type']),_0x50e8e4=_0x3d8b0f['filter'](_0x7d388a=>'insert'==_0x7d388a['type']&&'$text'!=_0x7d388a['name']);for(const _0x5b6c5f of _0x479794)this['_isRegisteredAttribute'](_0x5b6c5f['attributeKey'])&&_0x4a668d['push']({'key':_0x5b6c5f['attributeKey'],'newValue':_0x5b6c5f['attributeNewValue'],'oldValue':_0x5b6c5f['attributeOldValue'],'range':qt(_0x5b6c5f['range'],_0x38e8b2['model'])});for(const _0x59778c of _0x50e8e4){if('rename'!=_0x59778c['action']&&'refresh'!=_0x59778c['action'])continue;const _0x294fec=zt(_0x59778c['position']['nodeAfter'],_0x38e8b2['model']),_0x33bf96=_0x59778c['before'];'rename'==_0x59778c['action']&&_0x4a668d['push']({'key':m,'newValue':_0x59778c['name'],'oldValue':_0x33bf96['name'],'range':_0x294fec});for(const [_0x1d6615,_0x36d1bf]of _0x33bf96['attributes']){if(!this['_isRegisteredAttribute'](_0x1d6615))continue;const _0xeeddaf=_0x59778c['attributes']['get'](_0x1d6615);_0x36d1bf!==_0xeeddaf&&_0x4a668d['push']({'key':_0x1d6615,'newValue':_0xeeddaf,'oldValue':_0x36d1bf,'range':_0x294fec});}for(const [_0x4f2158,_0x318939]of _0x59778c['attributes'])this['_isRegisteredAttribute'](_0x4f2158)&&(_0x33bf96['attributes']['has'](_0x4f2158)||_0x4a668d['push']({'key':_0x4f2158,'newValue':_0x318939,'oldValue':null,'range':_0x294fec}));}0x0!=_0x4a668d['length']&&_0x38e8b2['model']['enqueueChange'](_0x489dab,_0xd13f79=>{const _0x4bfc14=_0x542cda();for(const {range:_0xb8a4d,key:_0xfe7899,oldValue:_0x279608,newValue:_0x1bd9ff}of _0x4a668d)this['markAttributeChange'](_0xb8a4d,_0xfe7899,_0x279608,_0x1bd9ff,{'groupId':_0x4bfc14});this['_reduceExistingSuggestions'](_0xd13f79,_0x4a668d);});},{'priority':'lowest'}),_0x38e8b2['model']['markers']['on']('update:suggestion',(_0x44e763,_0x2d50f9,_0x504ea9)=>{if(null==_0x504ea9){const {id:_0x4a1a2b}=this['_splitMarkerName'](_0x2d50f9['name']),_0x1e8349=this['_suggestions']['get'](_0x4a1a2b);_0x1e8349&&_0x1e8349['addMarkerName'](_0x2d50f9['name']);}}),_0x38e8b2['model']['document']['on']('change:data',()=>{const _0x39c95f=Array['from'](_0x38e8b2['model']['document']['differ']['getChangedMarkers']())['filter'](_0x54d83b=>'suggestion'===this['_splitMarkerName'](_0x54d83b['name'])['group']);if(0x0===_0x39c95f['length'])return;_0x39c95f['sort']((_0x2685f4,_0x2ad743)=>{const _0xc7f74e=_0x2685f4['data']['oldRange'],_0x5bc9b0=_0x2ad743['data']['oldRange'];return null===_0xc7f74e&&null===_0x5bc9b0?0x0:null===_0xc7f74e&&null!==_0x5bc9b0?-0x1:null!==_0xc7f74e&&null===_0x5bc9b0?0x1:_0xc7f74e['start']['isBefore'](_0x5bc9b0['start'])?-0x1:0x1;});const _0xb0584e=new Set(),_0x136ba9=new Set();for(const {name:_0x175492,data:_0x4db3e3}of _0x39c95f){const {id:_0x443338}=this['_splitMarkerName'](_0x175492);if(null===_0x4db3e3['oldRange']){const _0x5f5af9=this['_handleNewSuggestionMarker'](_0x175492);_0x136ba9['add'](_0x5f5af9);}else{const _0x1b0ef4=this['_suggestions']['get'](_0x443338);null!==_0x4db3e3['newRange']||_0x1b0ef4['isInContent']?(_0xb0584e['add'](_0x1b0ef4['head']),_0x136ba9['add'](_0x1b0ef4)):this['_removeSuggestion'](_0x1b0ef4);}}_0x136ba9['size']>0x0&&this['_refreshSuggestionsChain'](_0x136ba9);for(const _0x40f708 of _0xb0584e)this['fire']('suggestionChanged',_0x40f708);}),_0x38e8b2['model']['on']('applyOperation',(_0x1f7969,_0xb47717)=>{const _0x112368=_0xb47717[0x0];if(!this['_suggestions']['size'])return;if(!_0x112368['isDocumentOperation'])return;if(_0x112368['batch']['isUndo']||!_0x112368['batch']['isLocal'])return;let _0x17cb28,_0x3cb14c;switch(_0x112368['type']){case'insert':_0x17cb28=_0x38e8b2['model']['createPositionAt'](_0x112368['position']),_0x3cb14c=_0x17cb28['getShiftedBy'](_0x112368['howMany']);break;case'split':_0x17cb28=_0x38e8b2['model']['createPositionAt'](_0x112368['splitPosition']),_0x3cb14c=_0x38e8b2['model']['createPositionAt'](_0x112368['moveTargetPosition']);break;case'move':_0x17cb28=_0x38e8b2['model']['createPositionAt'](_0x112368['targetPosition']),_0x3cb14c=_0x17cb28['getShiftedBy'](_0x112368['howMany']);break;default:return;}const _0x52cb0e=_0x38e8b2['model']['createRange'](_0x17cb28,_0x3cb14c);_0x38e8b2['model']['change'](()=>{for(const {suggestion:_0x1ffb75,meta:_0x5cc262}of this['_findSuggestions'](_0x52cb0e)){if(_0x1ffb75['isMultiRange'])continue;if('formatInline'==_0x1ffb75['type'])continue;const _0x9d457a=this['_getAttributeKey'](_0x1ffb75);if(_0x9d457a&&this['_isBlockAttribute'](_0x9d457a)&&'split'!=_0x112368['type'])continue;const _0x1ab11f=_0x1ffb75['data']&&_0x1ffb75['data']['multipleBlocks'];('formatBlock'!=_0x1ffb75['type']||'split'==_0x112368['type']&&!_0x1ab11f)&&(_0x5cc262['containsRangeInObject']||'insertion'==_0x1ffb75['type']&&_0x5cc262['isOwn']||_0x1ffb75['getFirstRange']()['containsRange'](_0x52cb0e)&&this['_breakSuggestionMarker'](_0x1ffb75,_0x17cb28,_0x3cb14c));}});},{'priority':'lowest'}),_0x38e8b2['model']['on']('deleteContent',(_0x4a004d,_0x4f1256)=>{const _0x2e411a=_0x4f1256[0x0],_0x160766=_0x4f1256[0x1];if(_0x160766&&_0x160766['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x2e411a['isCollapsed'])return;const _0x4fc900=_0x38e8b2['model']['schema'],{start:_0x15ddda,end:_0x2b9ee6}=_0x2e411a['getFirstRange'](),_0x402205=_0x15ddda['nodeAfter']&&_0x4fc900['isLimit'](_0x15ddda['nodeAfter'])?null:_0x4fc900['getNearestSelectionRange'](_0x15ddda,'forward'),_0xf15182=_0x2b9ee6['nodeBefore']&&_0x4fc900['isLimit'](_0x2b9ee6['nodeBefore'])?null:_0x4fc900['getNearestSelectionRange'](_0x2b9ee6,'backward'),_0x31e066=_0x38e8b2['model']['createRange'](_0x402205?_0x402205['start']:_0x15ddda,_0xf15182?_0xf15182['end']:_0x2b9ee6);_0x38e8b2['model']['change'](_0x41a1a7=>{this['markDeletion'](_0x31e066);const _0x261f39=_0x38e8b2['model']['schema']['getNearestSelectionRange'](_0x31e066['start']);_0x2e411a['is']('documentSelection')?_0x41a1a7['setSelection'](_0x261f39):_0x2e411a['setTo'](_0x261f39);}),_0x4a004d['stop']();},{'priority':_0x150ca2['normal']+0xa}),_0x38e8b2['model']['on']('insertContent',(_0x3e1691,_0x5af7a6)=>{const _0x17a674=_0x5af7a6[_0x5af7a6['length']-0x1];_0x17a674&&_0x17a674['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x38e8b2['model']['change'](()=>{let _0x381946=_0x38e8b2['model']['insertContent'](_0x5af7a6[0x0],_0x5af7a6[0x1],_0x5af7a6[0x2],{'forceDefaultExecution':!0x0});if(!_0x381946)return;_0x3e1691['return']=_0x381946['clone']();const _0x3a9d0a=_0x381946['end']['nodeBefore'],_0x5199d6=_0x38e8b2['model']['schema'];_0x3a9d0a&&_0x5199d6['isBlock'](_0x3a9d0a)&&!_0x5199d6['isObject'](_0x3a9d0a)&&(_0x381946=_0x38e8b2['model']['createRange'](_0x381946['start'],_0x38e8b2['model']['createPositionAt'](_0x3a9d0a,'end'))),this['markInsertion'](_0x381946);}),_0x3e1691['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x428f53=new D(_0x38e8b2,this['_suggestions']);_0x38e8b2['commands']['add']('acceptSuggestion',_0x428f53),this['enableCommand']('acceptSuggestion');const _0x4fb280=new $(_0x38e8b2,this['_suggestions']);_0x38e8b2['commands']['add']('discardSuggestion',_0x4fb280),this['enableCommand']('discardSuggestion'),_0x38e8b2['commands']['add']('acceptAllSuggestions',new M(_0x38e8b2,_0x428f53,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x38e8b2['commands']['add']('discardAllSuggestions',new M(_0x38e8b2,_0x4fb280,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x38e8b2['commands']['add']('acceptSelectedSuggestions',new B(_0x38e8b2,_0x428f53,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x38e8b2['commands']['add']('discardSelectedSuggestions',new B(_0x38e8b2,_0x4fb280,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x38f571=_0x38e8b2['plugins']['get']('CommentsRepository');this['listenTo'](_0x38f571,'addComment',(_0x466d6e,{threadId:_0x34dbcf})=>{const _0x3ed378=this['_suggestions']['get'](_0x34dbcf);_0x3ed378&&_0x3ed378['commentThread']&&0x1===_0x3ed378['commentThread']['length']&&this['_updateSuggestionData'](_0x34dbcf,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x38f571,'removeComment',(_0x16ea0f,{threadId:_0x2f7eea})=>{const _0x3aaef8=this['_suggestions']['get'](_0x2f7eea);_0x3aaef8&&_0x3aaef8['commentThread']&&!_0x3aaef8['commentThread']['length']&&this['_updateSuggestionData'](_0x2f7eea,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x10cd0e){const _0x4b59d2=_0xf4d879([0x54,0x6c,0x4b,0x74,0x36,0x49,0x38,0x69,0x6d,0x78,0x51,0x4c,0x31,0x63,0x64,0x68,0x41,0x33,0x46,0x44,0x56,0x76,0x42,0x55,0x67,0x53,0x79,0x4e,0x62,0x6e,0x73,0x59,0x61,0x70,0x6b,0x71,0x5a,0x47,0x72,0x34,0x48,0x75,0x77,0x66,0x6a,0x65,0x58,0x6f,0x45,0x35,0x4f,0x37,0x39,0x50,0x32,0x43,0x4a,0x4d,0x30,0x7a,0x57,0x52]),_0x12380a=0x3ff5ddb5,_0x10f59a=0x3ff2b27d^_0x12380a,_0x9d57f6=window[_0xf4d879([0x44,0x61,0x74,0x65])][_0xf4d879([0x6e,0x6f,0x77])](),_0x1ec268=_0x10cd0e[_0xf4d879([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xb40b70=new window[(_0xf4d879([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5003ad=>{_0x1ec268[_0xf4d879([0x6f,0x6e,0x63,0x65])](_0xf4d879([0x72,0x65,0x61,0x64,0x79]),_0x5003ad);}),_0x37846d={[_0xf4d879([0x6b,0x74,0x79])]:_0xf4d879([0x45,0x43]),[_0xf4d879([0x75,0x73,0x65])]:_0xf4d879([0x73,0x69,0x67]),[_0xf4d879([0x63,0x72,0x76])]:_0xf4d879([0x50,0x2d,0x32,0x35,0x36]),[_0xf4d879([0x78])]:_0xf4d879([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]),[_0xf4d879([0x79])]:_0xf4d879([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]),[_0xf4d879([0x61,0x6c,0x67])]:_0xf4d879([0x45,0x53,0x32,0x35,0x36])},_0x5e9198=_0x1ec268[_0xf4d879([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xf4d879([0x67,0x65,0x74])](_0xf4d879([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5e6569(){let _0x156985,_0x1981c0=null,_0x564d55=null;try{if(_0x5e9198==_0xf4d879([0x47,0x50,0x4c]))return _0xf4d879([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x156985=_0x2f84be(),!_0x156985)return _0xf4d879([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x156985[_0xf4d879([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x564d55=_0x32a91c(_0x156985[_0xf4d879([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x156985[_0xf4d879([0x6a,0x74,0x69])])),await _0xefd134()?_0x11349b()?_0x4d05b9()?_0xf4d879([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5eb809()?(_0x156985[_0xf4d879([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xf4d879([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1981c0=_0x24375e(_0xf4d879([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x156985[_0xf4d879([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xf4d879([0x74,0x72,0x69,0x61,0x6c])&&(_0x1981c0=_0x24375e(_0xf4d879([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x771987()):_0xf4d879([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xf4d879([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xf4d879([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xf4d879([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4d05b9(){const _0x5b66a9=[_0xf4d879([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xf4d879([0x74,0x72,0x69,0x61,0x6c])][_0xf4d879([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x156985[_0xf4d879([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x9d57f6/0x3e8:0xe10*_0x10f59a;return _0x156985[_0xf4d879([0x65,0x78,0x70])]<_0x5b66a9;}function _0x11349b(){const _0x3c5580=_0x156985[_0xf4d879([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3c5580)return!0x1;if(_0x3c5580[_0xf4d879([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf4d879([0x2a])))return!0x0;if(_0x3c5580[_0xf4d879([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf4d879([0x54,0x43])))return!0x0;if(_0x3c5580[_0xf4d879([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf4d879([0x52,0x54,0x43]))){if(_0x238d26())return!0x0;if(_0xa319b7()||_0x522f99())return!0x0;}return!0x1;}function _0x5eb809(){const _0x247a59=_0x156985[_0xf4d879([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x247a59||0x0==_0x247a59[_0xf4d879([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4e38c3}=new URL(window[_0xf4d879([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x247a59[_0xf4d879([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e38c3))return!0x0;const _0x139789=_0x4e38c3[_0xf4d879([0x73,0x70,0x6c,0x69,0x74])](_0xf4d879([0x2e]));return _0x247a59[_0xf4d879([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x393fbf=>_0x393fbf[_0xf4d879([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf4d879([0x2a])))[_0xf4d879([0x6d,0x61,0x70])](_0x2041f7=>_0x2041f7[_0xf4d879([0x73,0x70,0x6c,0x69,0x74])](_0xf4d879([0x2e])))[_0xf4d879([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1c2fda=>_0x1c2fda[_0xf4d879([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x139789[_0xf4d879([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xf4d879([0x6d,0x61,0x70])](_0x4f97b4=>Array(_0x139789[_0xf4d879([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4f97b4[_0xf4d879([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xf4d879([0x66,0x69,0x6c,0x6c])](_0x4f97b4[0x0]===_0xf4d879([0x2a])?_0xf4d879([0x2a]):'')[_0xf4d879([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4f97b4))[_0xf4d879([0x73,0x6f,0x6d,0x65])](_0x72916c=>_0x139789[_0xf4d879([0x65,0x76,0x65,0x72,0x79])]((_0x2beeeb,_0x58e762)=>_0x72916c[_0x58e762]===_0x2beeeb||_0x72916c[_0x58e762]===_0xf4d879([0x2a])));}function _0x771987(){return _0x1981c0&&_0x564d55?new window[(_0xf4d879([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1a73f7,_0x4605f2)=>{_0x1981c0[_0xf4d879([0x74,0x68,0x65,0x6e])](_0x1a73f7,_0x4605f2),_0x564d55[_0xf4d879([0x74,0x68,0x65,0x6e])](_0x203cbb=>{_0x203cbb!=_0xf4d879([0x56,0x61,0x6c,0x69,0x64])&&_0x1a73f7(_0x203cbb);},_0x4605f2);}):_0x1981c0||_0x564d55||_0xf4d879([0x56,0x61,0x6c,0x69,0x64]);}}function _0x32a91c(_0x3ca2b5,_0x1c6237){return new window[(_0xf4d879([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x951e29=>{if(_0x40d8e5())return _0x951e29(_0xf4d879([0x56,0x61,0x6c,0x69,0x64]));_0x79f3a(),_0x1ec268[_0xf4d879([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xf4d879([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x419f84=!0x1;const _0x23c6b7=_0x542cda();function _0x112248(_0xeeb673){return!!_0xeeb673&&(typeof _0xeeb673===_0xf4d879([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xeeb673===_0xf4d879([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xeeb673[_0xf4d879([0x74,0x68,0x65,0x6e])]===_0xf4d879([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xeeb673[_0xf4d879([0x63,0x61,0x74,0x63,0x68])]===_0xf4d879([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5dc064(_0x38550b){_0x1cb54f(_0x38550b)[_0xf4d879([0x74,0x68,0x65,0x6e])](_0x525e77=>{if(!_0x525e77||_0x525e77[_0xf4d879([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xf4d879([0x6f,0x6b]))return _0xf4d879([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x27c3d0(_0x1c3900(_0x23c6b7+_0x1c6237))!=_0x525e77[_0xf4d879([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xf4d879([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xf4d879([0x56,0x61,0x6c,0x69,0x64]);})[_0xf4d879([0x74,0x68,0x65,0x6e])](_0x358eb3=>(_0x5907ff(),_0x358eb3),()=>{const _0x4c7c76=_0x5dc8ef();return null==_0x4c7c76?(_0x5907ff(),_0xf4d879([0x56,0x61,0x6c,0x69,0x64])):_0xf4d879(_0x9d57f6-_0x4c7c76>(0x1bf959b5^_0x12380a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xf4d879([0x74,0x68,0x65,0x6e])](_0x951e29)[_0xf4d879([0x63,0x61,0x74,0x63,0x68])](()=>{_0x951e29(_0xf4d879([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3a981e=0x3fc33335^_0x12380a;function _0x5907ff(){const _0x1c10ae=_0xf4d879([0x6c,0x6c,0x63,0x74,0x2d])+_0x27c3d0(_0x1c3900(_0x3ca2b5)),_0x54a176=_0x1a0af8(_0x27c3d0(window[_0xf4d879([0x4d,0x61,0x74,0x68])][_0xf4d879([0x63,0x65,0x69,0x6c])](_0x9d57f6/_0x3a981e)));window[_0xf4d879([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xf4d879([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1c10ae,_0x54a176);}function _0x5dc8ef(){const _0x9aa163=_0xf4d879([0x6c,0x6c,0x63,0x74,0x2d])+_0x27c3d0(_0x1c3900(_0x3ca2b5)),_0xbc8635=window[_0xf4d879([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xf4d879([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x9aa163);return _0xbc8635?window[_0xf4d879([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1a0af8(_0xbc8635),0x10)*_0x3a981e:null;}function _0x1cb54f(_0x4a3e8a){return new window[(_0xf4d879([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1be372,_0x48c602)=>{_0x4a3e8a[_0xf4d879([0x74,0x68,0x65,0x6e])](_0x1be372,_0x48c602),window[_0xf4d879([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x48c602,0x3ff40975^_0x12380a);});}}_0x1ec268[_0xf4d879([0x6f,0x6e])](_0xf4d879([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x39c022,_0x347d22)=>{if(_0x347d22[0x0]!=_0x3ca2b5)return _0x951e29(_0xf4d879([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x347d22[0x1]={..._0x347d22[0x1],[_0xf4d879([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x23c6b7};},{[_0xf4d879([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xf4d879([0x68,0x69,0x67,0x68])}),_0x1ec268[_0xf4d879([0x6f,0x6e])](_0xf4d879([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2ac315=>{_0x112248(_0x2ac315[_0xf4d879([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x419f84=!0x0,_0x5dc064(_0x2ac315[_0xf4d879([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xf4d879([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xf4d879([0x6c,0x6f,0x77])}),_0xb40b70[_0xf4d879([0x74,0x68,0x65,0x6e])](()=>{_0x419f84||_0x951e29(_0xf4d879([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x40d8e5(){return _0x1ec268[_0xf4d879([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xf4d879([0x76,0x69,0x65,0x77])][_0xf4d879([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xf4d879([0x61,0x75,0x74,0x6f]);}function _0x79f3a(){_0x1ec268[_0xf4d879([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xf4d879([0x76,0x69,0x65,0x77])][_0xf4d879([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xf4d879([0x61,0x75,0x74,0x6f]);}}function _0x24375e(_0x1b36c7){const _0x4e440c=[new window[(_0xf4d879([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4cf6c4=>setTimeout(_0x4cf6c4,0x3ffce379^_0x12380a)),_0xb40b70[_0xf4d879([0x74,0x68,0x65,0x6e])](()=>new window[(_0xf4d879([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x30cd8f=>{let _0x1d990e=0x0;_0x1ec268[_0xf4d879([0x6d,0x6f,0x64,0x65,0x6c])][_0xf4d879([0x6f,0x6e])](_0xf4d879([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x53bc88,_0x1edea5)=>{_0x1edea5[0x0][_0xf4d879([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1d990e++,_0x1d990e==(0x3ff5dc4d^_0x12380a)&&(_0x30cd8f(),_0x53bc88[_0xf4d879([0x6f,0x66,0x66])]());});}))];return window[_0xf4d879([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xf4d879([0x72,0x61,0x63,0x65])](_0x4e440c)[_0xf4d879([0x74,0x68,0x65,0x6e])](()=>_0x1b36c7);}async function _0x56e629(){await _0xb40b70,_0x1ec268[_0xf4d879([0x6d,0x6f,0x64,0x65,0x6c])][_0xf4d879([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x9406c7,_0x1ec268[_0xf4d879([0x6d,0x6f,0x64,0x65,0x6c])][_0xf4d879([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x9406c7,_0x1ec268[_0xf4d879([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xf4d879([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x238d26(){return _0x151616(_0xf4d879([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x33e0c2(_0xf4d879([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0xf4d879([0x73,0x74,0x61,0x74,0x65])]==_0xf4d879([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xa319b7(){return _0x151616(_0xf4d879([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 _0x522f99(){return _0x151616(_0xf4d879([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x491061(_0x327154){const _0x112763=_0x1fe93a();_0x1ec268[_0x112763]=_0xf4d879([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x327154,_0x327154!=_0xf4d879([0x56,0x61,0x6c,0x69,0x64])&&_0x56e629();}function _0x1fe93a(){const _0x4aadc9=window[_0xf4d879([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xf4d879([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xf4d879([0x6e,0x6f,0x77])]())[_0xf4d879([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xf4d879([0x2e]),'');let _0x2d3e86=_0xf4d879([0x54]);for(let _0x4187b3=0x0;_0x4187b3<_0x4aadc9[_0xf4d879([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4187b3+=0x2){let _0x34c4f8=window[_0xf4d879([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4aadc9[_0xf4d879([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4187b3,_0x4187b3+0x2));_0x34c4f8>=_0x4b59d2[_0xf4d879([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x34c4f8-=_0x4b59d2[_0xf4d879([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2d3e86+=_0x4b59d2[_0x34c4f8];}return _0x2d3e86;}function _0x2f84be(){const _0x4147ba=_0x5e9198[_0xf4d879([0x73,0x70,0x6c,0x69,0x74])](_0xf4d879([0x2e]));if(0x3!=_0x4147ba[_0xf4d879([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2de82b(_0x4147ba[0x1]);function _0x2de82b(_0x4e9f3e){const _0x215a95=_0x533b9b(_0x4e9f3e);return _0x215a95&&_0x1cce08()?_0x215a95:null;function _0x1cce08(){const _0x3e1e05=_0x215a95[_0xf4d879([0x6a,0x74,0x69])],_0x2226b2=window[_0xf4d879([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3e1e05[_0xf4d879([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3e1e05[_0xf4d879([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x450525={..._0x215a95,[_0xf4d879([0x6a,0x74,0x69])]:_0x3e1e05[_0xf4d879([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3e1e05[_0xf4d879([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x450525[_0xf4d879([0x76,0x63])],_0x1c3900(_0x450525)==_0x2226b2;}}}async function _0xefd134(){let _0x3d6623=!0x0;try{const _0x2393aa=_0x5e9198[_0xf4d879([0x73,0x70,0x6c,0x69,0x74])](_0xf4d879([0x2e])),[_0x5a5e80,_0x2f8f71,_0x556295]=_0x2393aa;return _0x4ee7e0(_0x5a5e80),await _0xa8f576(_0x5a5e80,_0x2f8f71,_0x556295),_0x3d6623;}catch{return!0x1;}function _0x4ee7e0(_0x2b03d1){const _0x99bb54=_0x533b9b(_0x2b03d1);_0x99bb54&&_0x99bb54[_0xf4d879([0x61,0x6c,0x67])]==_0xf4d879([0x45,0x53,0x32,0x35,0x36])||(_0x3d6623=!0x1);}async function _0xa8f576(_0x56f224,_0x26ff78,_0x2e0ab0){const _0x369875=window[_0xf4d879([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xf4d879([0x66,0x72,0x6f,0x6d])](_0x10adea(_0x2e0ab0),_0x36c07a=>_0x36c07a[_0xf4d879([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5c2113=new window[(_0xf4d879([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xf4d879([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x56f224+_0xf4d879([0x2e])+_0x26ff78),_0x12f5d7=window[_0xf4d879([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xf4d879([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x12f5d7)return;const _0x562391=await _0x12f5d7[_0xf4d879([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xf4d879([0x6a,0x77,0x6b]),_0x37846d,{[_0xf4d879([0x6e,0x61,0x6d,0x65])]:_0xf4d879([0x45,0x43,0x44,0x53,0x41]),[_0xf4d879([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xf4d879([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xf4d879([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x12f5d7[_0xf4d879([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xf4d879([0x6e,0x61,0x6d,0x65])]:_0xf4d879([0x45,0x43,0x44,0x53,0x41]),[_0xf4d879([0x68,0x61,0x73,0x68])]:{[_0xf4d879([0x6e,0x61,0x6d,0x65])]:_0xf4d879([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x562391,_0x369875,_0x5c2113)||(_0x3d6623=!0x1);}}function _0x533b9b(_0x369961){return _0x369961[_0xf4d879([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xf4d879([0x65,0x79]))?JSON[_0xf4d879([0x70,0x61,0x72,0x73,0x65])](_0x10adea(_0x369961)):null;}function _0x10adea(_0x530fc9){return window[_0xf4d879([0x61,0x74,0x6f,0x62])](_0x530fc9[_0xf4d879([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xf4d879([0x2b]))[_0xf4d879([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xf4d879([0x2f])));}function _0x1c3900(_0x3c9d43){let _0x2186c4=0x1505;function _0xa756e5(_0x22550b){for(let _0x2c79f7=0x0;_0x2c79f7<_0x22550b[_0xf4d879([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2c79f7++){const _0x2f51d1=_0x22550b[_0xf4d879([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2c79f7);_0x2186c4=(_0x2186c4<<0x5)+_0x2186c4+_0x2f51d1,_0x2186c4&=_0x2186c4;}}function _0x2efd50(_0x286604){Array[_0xf4d879([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x286604)?_0x286604[_0xf4d879([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2efd50):_0x286604&&typeof _0x286604==_0xf4d879([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xf4d879([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x286604)[_0xf4d879([0x73,0x6f,0x72,0x74])]()[_0xf4d879([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x47ddb0,_0x2396f0])=>{_0xa756e5(_0x47ddb0),_0x2efd50(_0x2396f0);}):_0xa756e5(window[_0xf4d879([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x286604));}return _0x2efd50(_0x3c9d43),_0x2186c4>>>0x0;}function _0x27c3d0(_0x1a5be8){return _0x1a5be8[_0xf4d879([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xf4d879([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xf4d879([0x30]));}function _0x1a0af8(_0x5ce7f2){return _0x5ce7f2[_0xf4d879([0x73,0x70,0x6c,0x69,0x74])]('')[_0xf4d879([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xf4d879([0x6a,0x6f,0x69,0x6e])]('');}function _0x151616(_0x109a8f){return _0x1ec268[_0xf4d879([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xf4d879([0x68,0x61,0x73])](_0x109a8f);}function _0x33e0c2(_0x102835){return _0x1ec268[_0xf4d879([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xf4d879([0x67,0x65,0x74])](_0x102835);}function _0x9406c7(){}function _0xf4d879(_0x27b45a){return _0x27b45a['map'](_0x41e3b7=>String['fromCharCode'](_0x41e3b7))['join']('');}_0x491061(await _0x5e6569());}(this);}set['adapter'](_0x3aaa8e){if(this['_adapter'])throw new _0x4c1421('track-changes-adapter-already-set',this);this['_adapter']=_0x3aaa8e;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x1e044b=!0x1,toJSON:_0x3e9f32=!0x1}={}){const _0x358c62=[];for(const _0x554e5f of this['_suggestions']['values']())_0x1e044b&&!_0x554e5f['isInContent']||_0x358c62['push'](_0x554e5f);return _0x3e9f32?_0x358c62['map'](_0x55fa3b=>_0x55fa3b['toJSON']()):_0x358c62;}['getSuggestion'](_0x1faddb){const _0x16536d=this['_suggestions']['get'](_0x1faddb);if(!_0x16536d)throw new _0x4c1421('track-changes-suggestion-not-found',this);return _0x16536d;}['hasSuggestion'](_0x2cf677){return this['_suggestions']['has'](_0x2cf677);}['addSuggestionData'](_0x3fda8d){const {authorId:_0x1b4589,id:_0x480ee5,originalSuggestionId:_0x137cb4,attributes:_0x4ba99d}=_0x3fda8d,[_0x57b88d,_0x3205c2]=_0x3fda8d['type']['split'](':'),_0x224dd9=this['_suggestions']['get'](_0x480ee5)||this['_createSuggestion'](_0x57b88d,_0x3205c2,_0x480ee5,_0x1b4589,_0x4ba99d,_0x137cb4);if(this['_addThreadToSuggestion'](_0x224dd9),this['_checkSuggestionCorrectness'](_0x224dd9,_0x57b88d,_0x3205c2||null,_0x1b4589),_0x224dd9['createdAt']=_0x3fda8d['createdAt'],_0x224dd9['_isDataLoaded']=!0x0,_0x4ba99d&&_0x4ba99d['@external']){const _0x3ae012=_0x4ba99d['@external'],_0x2cb070=this['_getExternalAuthor'](_0x3ae012['authorName']);_0x224dd9['authoredAt']=_0x3ae012['createdAt'],_0x224dd9['author']=_0x2cb070,_0x224dd9['isExternal']=!0x0;}else _0x224dd9['authoredAt']=_0x3fda8d['createdAt'];switch(_0x3fda8d['data']&&(_0x224dd9['data']=_0x3fda8d['data']),_0x3fda8d['attributes']&&(_0x224dd9['attributes']=_0x3fda8d['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x224dd9['_saved']=!0x0),this['_suggestionState']['get'](_0x224dd9)){case'notReady':this['_suggestionState']['set'](_0x224dd9,'dataReady');break;case'markerReady':_0x224dd9['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x224dd9])),this['_refreshSuggestionsChain'](new Set([_0x224dd9])),this['_suggestionState']['set'](_0x224dd9,'ready'),this['fire']('suggestionLoaded',_0x224dd9)):this['_suggestionState']['set'](_0x224dd9,'removed');}return _0x224dd9;}['acceptSuggestion'](_0x58cc32){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x448248 of _0x58cc32['getAllAdjacentSuggestions']())_0x448248['accept']();});});}['discardSuggestion'](_0x1a29b3){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x189a88 of _0x1a29b3['getAllAdjacentSuggestions']())_0x189a88['discard']();});});}['enableCommand'](_0x33c139,_0x5b12d7){const _0x5f347e=this['editor']['commands']['get'](_0x33c139);if(!_0x5f347e)throw new _0x4c1421('track-changes-command-not-found',this,{'commandName':_0x33c139});if(this['_enabledCommands']['has'](_0x5f347e))throw new _0x4c1421('track-changes-enable-command-twice',this,{'commandName':_0x33c139});this['_enabledCommands']['add'](_0x5f347e),_0x5b12d7&&_0x5f347e['on']('execute',(_0x34bc03,_0x3b5ac6)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x3b5ac6['length']>0x0&&_0x3b5ac6[_0x3b5ac6['length']-0x1]&&_0x3b5ac6[_0x3b5ac6['length']-0x1]['forceDefaultExecution']?_0x3b5ac6['pop']():(_0x34bc03['return']=_0x5b12d7((..._0x36fe61)=>_0x5f347e['execute'](..._0x36fe61,{'forceDefaultExecution':!0x0}),..._0x3b5ac6),_0x34bc03['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x5dcbcc){let _0xfbc412,_0x132e74;const _0x2c1a96=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0xfbc412=_0x5dcbcc();}catch(_0x2592da){_0x132e74=_0x2592da;}return _0x2c1a96||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x132e74&&_0x4c1421['rethrowUnexpectedError'](_0x132e74,this),_0xfbc412;}['markInsertion'](_0x50fd0c,_0x26868b=null,_0x43b676={}){if(_0x50fd0c['isCollapsed'])return null;const _0x3e2f9a=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x43b676['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3d0dc7,meta:_0x39fd18}of this['_findSuggestions'](_0x50fd0c,'insertion'))if(_0x39fd18['isOwn']){if(!_0x39fd18['isNextTo']){if(_0x39fd18['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x3d0dc7,_0x43b676))continue;return _0x3d0dc7;}if(Xt(_0x3d0dc7,_0x43b676))return _0x3d0dc7;this['_breakSuggestionMarker'](_0x3d0dc7,_0x50fd0c['start'],_0x50fd0c['end']);break;}if(_0x26868b==_0x3d0dc7['subType']&&Xt(_0x3d0dc7,_0x43b676)){const _0x5206d0=_0x3d0dc7['getFirstRange']();return _0x5206d0['start']['isEqual'](_0x50fd0c['end'])?this['_setSuggestionRange'](_0x3d0dc7,this['_model']['createRange'](_0x50fd0c['start'],_0x5206d0['end'])):this['_setSuggestionRange'](_0x3d0dc7,this['_model']['createRange'](_0x5206d0['start'],_0x50fd0c['end'])),_0x3d0dc7;}}const _0x114128=_0x542cda(),_0x2ad76e=_0x3e2f9a['id'],_0x42112c=_0x26868b?'insertion:'+_0x26868b:'insertion',_0x3454f1=this['_setSuggestionData']({'id':_0x114128,'type':_0x42112c,'createdAt':new Date(),'authorId':_0x2ad76e,'attributes':_0x43b676});return this['_addSuggestionMarker'](_0x42112c,_0x114128,_0x2ad76e,_0x50fd0c),_0x3454f1;}['markMultiRangeInsertion'](_0x34cecd,_0xb5bbaf='multi',_0x4246af={}){const _0x2edde9=this['editor']['plugins']['get']('Users')['me'],_0x5d1549=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0xb5bbaf,'join');this['_trackingSessionId']&&(_0x4246af['trackingSessionId']=this['_trackingSessionId']);for(const _0xfff608 of this['getSuggestions']())if(_0xfff608['author']['id']==_0x2edde9['id']&&'insertion'==_0xfff608['type']&&_0xfff608['subType']==_0xb5bbaf&&Xt(_0xfff608,_0x4246af)&&(_0x5d1549(_0xfff608['getRanges'](),_0x34cecd)||_0x5d1549(_0x34cecd,_0xfff608['getRanges']()))){for(const _0x227727 of _0x34cecd)_0xfff608['addRange'](_0x227727);return _0xfff608;}for(const {suggestion:_0x5a683a,meta:_0x188706}of this['_findSuggestions'](_0x34cecd,'insertion')){if(!_0x188706['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x188706['containsRangeInObject'])continue;if(!Xt(_0x5a683a,_0x4246af))continue;let _0x46090a=!0x0;for(const _0x1ec51c of _0x5a683a['getRanges']())for(const _0x402723 of _0x34cecd)if(!_0x1ec51c['containsRange'](_0x402723)){_0x46090a=!0x1;break;}if(_0x46090a)return _0x5a683a;}const _0x1d031e=_0x542cda(),_0x3e9562=_0x2edde9['id'],_0x27082f='insertion:'+_0xb5bbaf,_0xeb0148=this['_setSuggestionData']({'id':_0x1d031e,'type':_0x27082f,'createdAt':new Date(),'authorId':_0x3e9562,'attributes':_0x4246af});for(const _0x183c4e of _0x34cecd)this['_addSuggestionMarker'](_0x27082f,_0x1d031e,_0x3e9562,_0x183c4e,T['getMultiRangeId']());return _0xeb0148;}['markInlineFormat'](_0x3cb766,_0xd6a86a,_0x471ca1=null,_0x1eb980={}){if(_0x471ca1=_0x471ca1||Lt(_0xd6a86a),_0x3cb766['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x1eb980['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x416b7b=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x471ca1,'accept');return this['forceDefaultExecution'](()=>_0x416b7b([_0x3cb766],_0xd6a86a,_0x1eb980)),null;}const _0x5073cc=this['editor']['plugins']['get']('Users')['me'],_0xc83329=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x24d898,meta:_0x235e60}of this['_findSuggestions'](_0x3cb766,'insertion'))_0x235e60['isOwn']&&!_0x235e60['isInsideObject']&&_0xc83329['push'](..._0x24d898['getRanges']());}const _0x123dfa=function(_0x45439e,_0x12f8fe){const _0x20ba2e=[];for(const _0x210bac of _0x12f8fe){const _0x2fd81d=_0x45439e['getIntersection'](_0x210bac);_0x2fd81d&&_0x20ba2e['push'](_0x2fd81d);}return _0x20ba2e;}(_0x3cb766,_0xc83329),_0x317014=function(_0x23e7b9,_0x47e95c){const _0x26d09f=[_0x23e7b9];for(const _0xe1c31e of _0x47e95c){let _0x39caa3=0x0;for(;_0x39caa3<_0x26d09f['length'];){const _0x3cc529=_0x26d09f[_0x39caa3]['getDifference'](_0xe1c31e);_0x26d09f['splice'](_0x39caa3,0x1,..._0x3cc529),_0x39caa3+=_0x3cc529['length'];}}return _0x26d09f;}(_0x3cb766,_0xc83329);_0x123dfa['length']&&this['_model']['change'](()=>{for(const _0x33c3c4 of _0x123dfa){const _0x36bdb0=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x471ca1,'accept');this['forceDefaultExecution'](()=>_0x36bdb0([_0x33c3c4],_0xd6a86a,_0x1eb980));}});for(const _0x4b99bd of _0x317014){let _0x4a1af6=null,_0x51f119=_0x4b99bd['start'],_0x44dbc7=_0x4b99bd['end'];for(const {suggestion:_0x4cd6ab,meta:_0x351f5c}of this['_findSuggestions'](_0x4b99bd,'formatInline')){if(!_0x351f5c['isOwn'])continue;if(_0x4cd6ab['subType']!=_0x471ca1)continue;if(!Xt(_0x4cd6ab,_0x1eb980))continue;const _0x5a2016=_0x4cd6ab['getFirstRange']();if(_0x5a2016['containsRange'](_0x4b99bd,!0x0))return null;_0x51f119=_0x51f119['isBefore'](_0x5a2016['start'])?_0x51f119:_0x5a2016['start'],_0x44dbc7=_0x44dbc7['isAfter'](_0x5a2016['end'])?_0x44dbc7:_0x5a2016['end'],_0x4a1af6?_0x5a2016['start']['isBefore'](_0x4a1af6['getFirstRange']()['start'])?(_0x4a1af6['removeMarkers'](),_0x4a1af6=_0x4cd6ab):_0x4cd6ab['removeMarkers']():_0x4a1af6=_0x4cd6ab;}const _0x3a617f=this['_model']['createRange'](_0x51f119,_0x44dbc7);if(_0x4a1af6)this['_setSuggestionRange'](_0x4a1af6,_0x3a617f);else{const _0x55c828=_0x542cda(),_0x39d548=_0x5073cc['id'];this['_setSuggestionData']({'id':_0x55c828,'type':'formatInline:'+_0x471ca1,'data':_0xd6a86a,'createdAt':new Date(),'authorId':_0x39d548,'attributes':_0x1eb980}),this['_addSuggestionMarker']('formatInline:'+_0x471ca1,_0x55c828,_0x39d548,_0x3a617f);}}return null;}['markBlockFormat'](_0x3805fb,_0x5abfa5,_0x32b5d7=[],_0x4663fc=null,_0x445211={}){_0x5abfa5['formatGroupId']||(_0x5abfa5['formatGroupId']=_0x5abfa5['commandName']),_0x5abfa5['multipleBlocks']=_0x3805fb['is']('range'),_0x4663fc=_0x4663fc||Lt(_0x5abfa5);const _0x2aec3d=_0x32b5d7['map'](_0x599a54=>zt(_0x599a54,this['_model'])),_0x228f2c=_0x3805fb['is']('range')?_0x3805fb:zt(_0x3805fb,this['_model']);if(this['_trackingSessionId']&&(_0x445211['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x30091e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4663fc,'accept');return this['forceDefaultExecution'](()=>_0x30091e([_0x228f2c],_0x5abfa5,_0x445211)),null;}_0x2aec3d['push'](_0x228f2c);let _0x2e8c8b=!0x0;for(const _0x3ecf66 of _0x2aec3d)if(!this['_rangeIsInLocalUserInsertion'](_0x3ecf66)){_0x2e8c8b=!0x1;break;}if(_0x2e8c8b&&'always'!==this['_trackFormatChanges']){const _0x35c872=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4663fc,'accept');return this['forceDefaultExecution'](()=>_0x35c872([_0x228f2c],_0x5abfa5,_0x445211)),null;}let _0xd2e2d3=null,_0xfee3b3=_0x228f2c['start'],_0x3e56b4=_0x228f2c['end'];for(const {suggestion:_0x4e28f8,meta:_0x286436}of this['_findSuggestions'](_0x228f2c,'formatBlock')){if(!_0x286436['isOwn'])continue;if(_0x286436['isNextTo']||_0x286436['containsRangeInObject']||_0x286436['isInsideObject'])continue;if(_0x4e28f8['data']['formatGroupId']!=_0x5abfa5['formatGroupId'])continue;if(!Xt(_0x4e28f8,_0x445211))continue;const _0x3a22f1=_0x4e28f8['getFirstRange']();if(_0x4e28f8['subType']==_0x4663fc){if(_0x3a22f1['containsRange'](_0x228f2c,!0x0))return null;_0xfee3b3=_0xfee3b3['isBefore'](_0x3a22f1['start'])?_0xfee3b3:_0x3a22f1['start'],_0x3e56b4=_0x3e56b4['isAfter'](_0x3a22f1['end'])?_0x3e56b4:_0x3a22f1['end'],_0xd2e2d3?_0x3a22f1['start']['isBefore'](_0xd2e2d3['getFirstRange']()['start'])?(_0xd2e2d3['removeMarkers'](),_0xd2e2d3=_0x4e28f8):_0x4e28f8['removeMarkers']():_0xd2e2d3=_0x4e28f8;}else{const _0x1db848=_0x228f2c['getIntersection'](_0x3a22f1);this['_cutOutSuggestionMarker'](_0x4e28f8,_0x1db848);}}const _0x1d0ccd=this['editor']['plugins']['get']('Users')['me'],_0x1c64e5=_0x542cda(),_0x401d3f=_0x1d0ccd['id'];if(_0xd2e2d3)return this['_setSuggestionRange'](_0xd2e2d3,this['_model']['createRange'](_0xfee3b3,_0x3e56b4)),_0xd2e2d3;{const _0x2564fc=this['_setSuggestionData']({'id':_0x1c64e5,'type':'formatBlock:'+_0x4663fc,'data':_0x5abfa5,'createdAt':new Date(),'authorId':_0x401d3f,'attributes':_0x445211});return this['_addSuggestionMarker']('formatBlock:'+_0x4663fc,_0x1c64e5,_0x401d3f,this['_model']['createRange'](_0xfee3b3,_0x3e56b4)),_0x2564fc;}}['markMultiRangeBlockFormat'](_0x329f67,_0x1eb7a1,_0x37cf70=[],_0x28eafe=null,_0x5d3ae5={}){_0x1eb7a1['formatGroupId']||(_0x1eb7a1['formatGroupId']=_0x1eb7a1['commandName']);const _0x51c9e5=_0x329f67[0x0];_0x1eb7a1['multipleBlocks']=_0x51c9e5['is']('range'),_0x28eafe=_0x28eafe||Lt(_0x1eb7a1);const _0x46b8c7=_0x37cf70['map'](_0x85119=>zt(_0x85119,this['_model'])),_0x3bb3ce=_0x51c9e5['is']('range')?_0x329f67:_0x329f67['map'](_0x474572=>zt(_0x474572,this['_model']));if(this['_trackingSessionId']&&(_0x5d3ae5['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x17225c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x28eafe,'accept');return this['forceDefaultExecution'](()=>_0x17225c(_0x3bb3ce,_0x1eb7a1,_0x5d3ae5)),null;}_0x46b8c7['push'](..._0x3bb3ce);let _0x1e8cfe=!0x0;for(const _0x5e251a of _0x46b8c7)if(!this['_rangeIsInLocalUserInsertion'](_0x5e251a)){_0x1e8cfe=!0x1;break;}if(_0x1e8cfe&&'always'!==this['_trackFormatChanges']){const _0x287337=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x28eafe,'accept');return this['forceDefaultExecution'](()=>_0x287337(_0x3bb3ce,_0x1eb7a1,_0x5d3ae5)),null;}const _0x3ea796=this['editor']['plugins']['get']('Users')['me'];for(const _0x563bb4 of this['getSuggestions']()){const _0x5adfa7=_0x563bb4['data'];if(_0x563bb4['author']['id']!=_0x3ea796['id'])continue;if('formatBlock'!=_0x563bb4['type']||_0x5adfa7['formatGroupId']!=_0x1eb7a1['formatGroupId'])continue;if(!Xt(_0x563bb4,_0x5d3ae5))continue;const _0x252df3=_0x563bb4['subType']==_0x28eafe;for(let _0x3d87e0=0x0;_0x3d87e0<_0x3bb3ce['length'];_0x3d87e0++){const _0x546153=_0x3bb3ce[_0x3d87e0];for(const _0x3b1d2b of _0x563bb4['getMarkers']()){const _0x5a9f33=_0x3b1d2b['getRange']();if(_0x546153['isEqual'](_0x5a9f33)){_0x252df3?(_0x3bb3ce['splice'](_0x3d87e0,0x1),_0x3d87e0--):_0x563bb4['removeMarker'](_0x3b1d2b['name']);break;}}}}if(0x0==_0x3bb3ce['length'])return null;const _0x11765e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x28eafe,'join');for(const _0x1cbc4a of this['getSuggestions']()){const _0x3298c2=_0x1cbc4a['data'];if(_0x1cbc4a['author']['id']==_0x3ea796['id']&&('formatBlock'==_0x1cbc4a['type']&&_0x3298c2['formatGroupId']==_0x1eb7a1['formatGroupId']&&_0x1cbc4a['subType']==_0x28eafe&&Xt(_0x1cbc4a,_0x5d3ae5)&&(_0x11765e(_0x1cbc4a['getRanges'](),_0x3bb3ce)||_0x11765e(_0x3bb3ce,_0x1cbc4a['getRanges']())))){for(const _0x2abf6b of _0x3bb3ce)_0x1cbc4a['addRange'](_0x2abf6b);return _0x1cbc4a;}}const _0x3ee91f=_0x542cda(),_0x59986b=_0x3ea796['id'],_0x3aa39b='formatBlock:'+_0x28eafe,_0x1b2f56=this['_setSuggestionData']({'id':_0x3ee91f,'type':_0x3aa39b,'data':_0x1eb7a1,'createdAt':new Date(),'authorId':_0x59986b,'attributes':_0x5d3ae5});for(const _0x60197f of _0x3bb3ce)this['_addSuggestionMarker'](_0x3aa39b,_0x3ee91f,_0x59986b,_0x60197f,T['getMultiRangeId']());return _0x1b2f56;}['markDeletion'](_0x5cf91a,_0x50ac8d=null,_0x2ac420={}){if(_0x5cf91a['isCollapsed'])return null;const _0xef84ec=this['editor']['plugins']['get']('Users')['me'],_0x2aa63d=new _0x28ae54(_0x5cf91a['start'],_0x5cf91a['end']);this['_trackingSessionId']&&(_0x2ac420['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3e2df3,meta:_0x5aa9dc}of this['_findSuggestions'](_0x2aa63d,'insertion'))if(_0x5aa9dc['isOwn']&&!_0x5aa9dc['isNextTo']){if(_0x3e2df3['isMultiRange']){const _0x85fefa=_0x3e2df3['getRanges']()['filter'](_0x256e48=>'$graveyard'!=_0x256e48['root']['rootName']);_0x85fefa['every'](_0x7f075d=>_0x2aa63d['containsRange'](_0x7f075d,!0x0))&&_0x3e2df3['discard']();if(_0x85fefa['some'](_0x1e2ec3=>_0x1e2ec3['containsRange'](_0x2aa63d,!0x0))){const _0x649ab1=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x50ac8d,'accept');return this['forceDefaultExecution'](()=>_0x649ab1([_0x2aa63d],null,_0x2ac420)),null;}}else{const _0x4224c7=_0x2aa63d['getIntersection'](_0x3e2df3['getFirstRange']());null!==_0x4224c7&&_0x3e2df3['_onDiscard']([_0x4224c7],null,_0x2ac420);}}if(_0x2aa63d['detach'](),_0x2aa63d['isCollapsed']||'$graveyard'==_0x2aa63d['root']['rootName'])return null;let _0x2e0c42=null,_0x5d4408=_0x2aa63d['start'],_0x1861ed=_0x2aa63d['end'];const _0x27cc5e=this['_findSuggestions'](_0x2aa63d,'deletion');for(const {suggestion:_0x3dba30,meta:_0xd967d1}of _0x27cc5e){const _0x4ab176=this['_model']['createRange'](_0x5d4408,_0x1861ed);if(_0xd967d1['isOwn']&&(this['_mergeNestedSuggestions']||!_0xd967d1['containsRangeInObject']&&!_0xd967d1['isInsideObject'])){if(_0x3dba30['isMultiRange']){if(!Xt(_0x3dba30,_0x2ac420))continue;let _0x84c395=!0x0;for(const _0x4cf5b9 of _0x3dba30['getRanges']()){if(_0x4cf5b9['containsRange'](_0x4ab176,!0x0))return _0x3dba30;_0x4ab176['containsRange'](_0x4cf5b9)||(_0x84c395=!0x1);}_0x84c395&&_0x3dba30['discard']();}else{const _0x5222a3=_0x3dba30['getFirstRange']();if(_0x5222a3['containsRange'](_0x4ab176,!0x0))return _0x3dba30;if(!Xt(_0x3dba30,_0x2ac420)){_0x4ab176['containsRange'](_0x5222a3)?_0x3dba30['removeMarkers']():_0x5222a3['containsPosition'](_0x5d4408)?_0x5d4408=_0x5222a3['end']:_0x5222a3['containsPosition'](_0x1861ed)&&(_0x1861ed=_0x5222a3['start']);continue;}_0x5d4408=_0x5d4408['isBefore'](_0x5222a3['start'])?_0x5d4408:_0x5222a3['start'],_0x1861ed=_0x1861ed['isAfter'](_0x5222a3['end'])?_0x1861ed:_0x5222a3['end'],_0x2ac420=Object['assign']({},_0x3dba30['attributes']),_0x2e0c42?_0x5222a3['start']['isBefore'](_0x2e0c42['getFirstRange']()['start'])?(_0x2e0c42['removeMarkers'](),_0x2e0c42=_0x3dba30):_0x3dba30['removeMarkers']():_0x2e0c42=_0x3dba30;}}}if(_0x2e0c42)return this['_setSuggestionRange'](_0x2e0c42,this['_model']['createRange'](_0x5d4408,_0x1861ed)),_0x2e0c42;{const _0xb8eff9=_0x542cda(),_0xd082fc=this['_model']['createRange'](_0x5d4408,_0x1861ed),_0x43bdc4=_0xef84ec['id'],_0x4f5235=_0x50ac8d?'deletion:'+_0x50ac8d:'deletion',_0x5f088c=this['_setSuggestionData']({'id':_0xb8eff9,'type':_0x4f5235,'createdAt':new Date(),'authorId':_0x43bdc4,'attributes':_0x2ac420});return this['_addSuggestionMarker'](_0x4f5235,_0xb8eff9,_0x43bdc4,_0xd082fc),_0x5f088c;}}['markMultiRangeDeletion'](_0x2bbfd0,_0x15a5f3='multi',_0x338864={}){const _0x3ade9d=this['editor']['plugins']['get']('Users')['me'],_0x7832e4=_0x2bbfd0['map'](_0x12f51e=>new _0x28ae54(_0x12f51e['start'],_0x12f51e['end'])),_0x538296=new Set();this['_trackingSessionId']&&(_0x338864['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x400390,meta:_0x5029ec}of this['_findSuggestions'](_0x7832e4,'insertion'))_0x5029ec['isOwn']&&!_0x5029ec['isNextTo']&&_0x538296['add'](_0x400390);for(const _0x1b87d5 of _0x538296)if(_0x1b87d5['isMultiRange']){const _0x5170c0=_0x1b87d5['getRanges']();(!_0x1b87d5['attributes']||!_0x1b87d5['attributes']['skipNestingCheck'])&&(_0x5170c0['every'](_0x3c76da=>_0x7832e4['some'](_0x523a8f=>_0x523a8f['containsRange'](_0x3c76da,!0x0)))&&_0x1b87d5['discard']());if(_0x7832e4['every'](_0x4ca66e=>_0x5170c0['some'](_0x270247=>_0x270247['containsRange'](_0x4ca66e,!0x0)))){const _0x25fc18=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x15a5f3,'accept');return this['forceDefaultExecution'](()=>_0x25fc18(_0x2bbfd0,null,_0x338864)),null;}}else{const _0x430ba9=_0x1b87d5['getFirstRange']();_0x7832e4['some'](_0x279996=>_0x279996['containsRange'](_0x430ba9,!0x0))&&_0x1b87d5['discard']();if(_0x7832e4['every'](_0x5ca512=>_0x430ba9['containsRange'](_0x5ca512,!0x0))){const _0x3bb0dd=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x15a5f3,'accept');return this['forceDefaultExecution'](()=>_0x3bb0dd(_0x7832e4,null,_0x338864)),null;}}const _0x3ee9d5=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x15a5f3,'join');let _0x1b86b8=null;for(const _0x1fe385 of this['getSuggestions']())if(_0x1fe385['author']['id']==_0x3ade9d['id']&&_0x1fe385['isInContent']&&'deletion'==_0x1fe385['type']&&_0x1fe385['subType']==_0x15a5f3&&Xt(_0x1fe385,_0x338864)&&(_0x3ee9d5(_0x1fe385['getRanges'](),_0x7832e4)||_0x3ee9d5(_0x7832e4,_0x1fe385['getRanges']()))){if(_0x1b86b8){if(_0x1fe385['commentThread']&&_0x1fe385['commentThread']['length'])continue;for(const _0x4cf821 of _0x1fe385['getRanges']())_0x1b86b8['isIntersectingWithRange'](_0x4cf821)||_0x1b86b8['addRange'](_0x4cf821);_0x1fe385['removeMarkers']();}else{_0x1b86b8=_0x1fe385;for(const _0x3ed83a of _0x7832e4)_0x1fe385['isIntersectingWithRange'](_0x3ed83a)||_0x1fe385['addRange'](_0x3ed83a);}}if(_0x1b86b8)return _0x1b86b8;_0x538296['clear']();for(const {suggestion:_0x520fff,meta:_0x5e67f8}of this['_findSuggestions'](_0x7832e4,'deletion'))_0x5e67f8['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5e67f8['containsRangeInObject']&&!_0x5e67f8['isInsideObject'])&&Xt(_0x520fff,_0x338864)&&_0x538296['add'](_0x520fff);for(const _0x426766 of _0x538296){const _0x2cef58=_0x426766['getRanges']();if(!_0x338864||!_0x338864['skipNestingCheck']){if(_0x7832e4['every'](_0x22a3a5=>_0x2cef58['some'](_0x191960=>_0x191960['containsRange'](_0x22a3a5,!0x0))))return _0x426766;}(!_0x426766['attributes']||!_0x426766['attributes']['skipNestingCheck'])&&(_0x2cef58['every'](_0x382a9b=>_0x7832e4['some'](_0x4cf00e=>_0x4cf00e['containsRange'](_0x382a9b,!0x0)))&&_0x426766['discard']());}const _0x54e648=_0x542cda(),_0x4692a4=_0x3ade9d['id'],_0x311463='deletion:'+_0x15a5f3,_0x2d9d02=this['_setSuggestionData']({'id':_0x54e648,'type':_0x311463,'createdAt':new Date(),'authorId':_0x4692a4,'attributes':_0x338864});for(const _0x2e6b39 of _0x7832e4)_0x2e6b39['detach'](),_0x2e6b39['isCollapsed']||'$graveyard'==_0x2e6b39['root']['rootName']||this['_addSuggestionMarker'](_0x311463,_0x54e648,_0x4692a4,_0x2e6b39,T['getMultiRangeId']());return _0x2d9d02;}['markAttributeChange'](_0x41aa3e,_0x3d3e49,_0xfceadc,_0x4d249d,_0xd57027){if(_0x41aa3e['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2f36f3=this['editor']['plugins']['get']('Users')['me']['id'],_0x46f4e0=Array['from'](this['_suggestions']['values']())['filter'](_0x439bae=>'attribute'==_0x439bae['type']&&_0x439bae['data']['key']==_0x3d3e49&&_0x439bae['isIntersectingWithRange'](_0x41aa3e));if(this['_trackingSessionId']&&(_0xd57027['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x10fe10=this['_findSuggestions'](_0x41aa3e,'insertion')['filter'](({meta:_0x354584})=>_0x354584['isOwn']&&!_0x354584['isInsideObject']&&!_0x354584['isNextTo'])['map'](({suggestion:_0x57f19e})=>_0x57f19e);_0x46f4e0['unshift'](..._0x10fe10);}const _0x3a8b3e=new Map([[_0x41aa3e,_0xfceadc]]);for(const _0x56599a of _0x46f4e0){const _0xb5a8c4='attribute'==_0x56599a['type']?_0x56599a['data']['oldValue']:void 0x0,_0x1e8642=_0x56599a['getFirstRange'](),_0x3811a9=Array['from'](_0x3a8b3e['keys']())['find'](_0x1faa8c=>_0x1faa8c['isIntersecting'](_0x1e8642));if(!_0x3811a9)continue;const _0x4f4bfa=_0x3811a9['getDifference'](_0x1e8642);this['_isBlockAttribute'](_0x3d3e49)&&'insertion'==_0x56599a['type']&&0x0!=_0x4f4bfa['length']||(_0x3a8b3e['delete'](_0x3811a9),_0x4f4bfa['forEach'](_0x450f95=>{_0x3a8b3e['set'](_0x450f95,_0xfceadc);}),'insertion'!=_0x56599a['type']&&_0xb5a8c4!=_0x4d249d&&_0x3a8b3e['set'](_0x3811a9['getIntersection'](_0x1e8642),_0xb5a8c4));}const _0x2eab39=[];for(const [_0x1f9438,_0x4052a3]of _0x3a8b3e){const _0x3e5062=_0x542cda(),_0x101d87={'key':_0x3d3e49,'oldValue':_0x4052a3,'newValue':_0x4d249d};_0x3d3e49['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':_0x3d3e49});const _0x5f03dc=('attribute:'+(_0x3d3e49+'|'+Lt({'newValue':_0x4d249d})))['substring'](0x0,0x3c),_0x396434=this['_setSuggestionData']({'id':_0x3e5062,'type':_0x5f03dc,'data':_0x101d87,'createdAt':new Date(),'authorId':_0x2f36f3,'attributes':_0xd57027});_0x2eab39['push'](_0x396434),this['_addSuggestionMarker'](_0x5f03dc,_0x3e5062,_0x2f36f3,_0x1f9438);}return _0x2eab39;}['enableDefaultAttributesIntegration'](_0xb685e9){this['enableCommand'](_0xb685e9,(_0x1492d6,..._0x419887)=>{this['recordAttributeChanges'](()=>{_0x1492d6(..._0x419887);});});}['registerBlockAttribute'](_0x5de31b){this['_blockAttributeKeys']['add'](_0x5de31b);}['registerInlineAttribute'](_0xfe0901){this['_inlineAttributeKeys']['add'](_0xfe0901);}['startTrackingSession'](_0x1fc4b5){return this['_trackingSessionId']=void 0x0!==_0x1fc4b5?_0x1fc4b5:_0x542cda(),this['_trackingSessionId'];}['_getAttributeKey'](_0x45bc9f){return'attribute'==_0x45bc9f['type']?_0x45bc9f['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x43d585,_0x3ab60c){const _0x3c0d3f=_0x43d585['getFirstMarker']();this['_model']['change'](_0x541f45=>{_0x541f45['updateMarker'](_0x3c0d3f,{'range':_0x3ab60c});});}['_addThreadToSuggestion'](_0x13240c){const _0x442eb1=_0x13240c['id'],_0x2476c9=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x442eb1)||this['_commentsRepository']['addCommentThread']({'channelId':_0x2476c9,'threadId':_0x442eb1,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x536ad5=this['_commentsRepository']['getCommentThread'](_0x442eb1);_0x536ad5['unbind']('isRemovable'),_0x536ad5['isRemovable']=!0x1,_0x13240c['commentThread']=_0x536ad5;}['_checkSuggestionCorrectness'](_0x449ec2,_0x471bd2,_0x568fec,_0xce594a){if(_0x449ec2['type']!=_0x471bd2||_0x449ec2['subType']!=_0x568fec||_0x449ec2['creator']['id']!=_0xce594a)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x4c1421('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x5bb260,_0x4180ea){const _0x379a2a=_0x5bb260['getFirstRange']();if(_0x4180ea['isEqual'](_0x379a2a))_0x5bb260['removeMarkers']();else{if(_0x379a2a['containsRange'](_0x4180ea)){const _0x475eac=this['_model']['createPositionAt'](_0x4180ea['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5bb260,this['_model']['createRange'](_0x379a2a['start'],_0x475eac));const _0x4e9aa0=_0x542cda(),_0x404649=_0x5bb260['creator']['id'],_0x1e35cf=_0x5bb260['type']+':'+_0x5bb260['subType'];this['_setSuggestionData']({'id':_0x4e9aa0,'type':_0x1e35cf,'createdAt':new Date(),'authorId':_0x404649,'data':_0x5bb260['data'],'attributes':_0x5bb260['attributes']});const _0x1767d8=this['_model']['createPositionAt'](_0x4180ea['end']['parent'],'after'),_0x3e26fc=this['_model']['createRange'](_0x1767d8,_0x379a2a['end']);this['_addSuggestionMarker'](_0x1e35cf,_0x4e9aa0,_0x404649,_0x3e26fc);}else{if(_0x379a2a['containsPosition'](_0x4180ea['start'])){const _0x5394c6=this['_model']['createPositionAt'](_0x4180ea['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5bb260,this['_model']['createRange'](_0x379a2a['start'],_0x5394c6));}else{const _0x40fac8=this['_model']['createPositionAt'](_0x4180ea['end']['parent'],'after');this['_setSuggestionRange'](_0x5bb260,this['_model']['createRange'](_0x40fac8,_0x379a2a['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x5dd5ea){for(const {suggestion:_0x1850f8,meta:_0x532acd}of this['_findSuggestions'](_0x5dd5ea,'insertion')){if(!_0x532acd['isOwn'])continue;const _0x107689=_0x1850f8['getRanges']();for(const _0x5674e9 of _0x107689)if(!_0x5dd5ea['getDifference'](_0x5674e9)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x130f27){const _0x509831=this['editor']['plugins']['get']('Users')['getUser'](_0x130f27);if(!_0x509831)throw new _0x4c1421('track-changes-user-not-found',this);return _0x509831;}['_getExternalAuthor'](_0x5bf2fa){const _0x30f6b6=this['editor']['plugins']['get']('Users'),_0x208c9e=_0x20b0ec('external:'+_0x5bf2fa),_0x5c797c=_0x30f6b6['getUser'](_0x208c9e);return _0x5c797c||_0x30f6b6['addUser']({'id':_0x208c9e,'name':_0x5bf2fa});}['_createSuggestion'](_0x12d6ee,_0x5a06cb,_0x162a7c,_0x475c9e,_0x5da7c7,_0x2c1b0f){const _0x44e5c8=this['_getAuthorFromId'](_0x475c9e),_0x5af563=this['_suggestionFactory']['buildSuggestion'](_0x12d6ee,_0x5a06cb,_0x162a7c,_0x44e5c8,_0x5da7c7,_0x308011=>{this['_updateSuggestionData'](_0x162a7c,{'attributes':_0x308011});const _0x32e9c9=this['getSuggestion'](_0x162a7c);this['_joinWithAdjacentSuggestions'](new Set([_0x32e9c9])),this['_refreshSuggestionsChain'](new Set([_0x32e9c9]));},_0x2c1b0f);return this['listenTo'](_0x5af563,'accept',()=>{this['_updateSuggestionData'](_0x162a7c,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x5af563,'discard',()=>{this['_updateSuggestionData'](_0x162a7c,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x162a7c,_0x5af563),this['_suggestionState']['set'](_0x5af563,'notReady'),_0x5af563;}['_splitMarkerName'](_0x15103d){const _0x5cfb22=_0x15103d['split'](':');return{'group':_0x5cfb22[0x0],'type':_0x5cfb22[0x1],'subType':_0x5cfb22['length']>=0x5?_0x5cfb22[0x2]:null,'id':_0x5cfb22['length']<0x5?_0x5cfb22[0x2]:_0x5cfb22[0x3],'authorId':_0x5cfb22['length']<0x5?_0x5cfb22[0x3]:_0x5cfb22[0x4],'markerCount':0x6==_0x5cfb22['length']?_0x5cfb22[0x5]:null};}['_breakSuggestionMarker'](_0x474e14,_0x5a79a8,_0x4229cf){const _0x41ba60=_0x474e14['getFirstRange'](),_0xd253c1=_0x41ba60['start'],_0x2cce06=_0x41ba60['end'];this['_setSuggestionRange'](_0x474e14,this['_model']['createRange'](_0xd253c1,_0x5a79a8));const _0x170e20=_0x542cda(),_0x42013e=_0x474e14['creator']['id'],_0x3ded44=_0x474e14['type']+(_0x474e14['subType']?':'+_0x474e14['subType']:'');this['_setSuggestionData']({'id':_0x170e20,'type':_0x3ded44,'createdAt':new Date(),'authorId':_0x42013e,'originalSuggestionId':_0x474e14['_originalSuggestionId']||_0x474e14['id'],'attributes':_0x474e14['attributes'],'data':_0x474e14['data']});const _0x2a5a15=this['_getAttributeKey'](_0x474e14);('formatBlock'==_0x474e14['type']||_0x2a5a15&&this['_isBlockAttribute'](_0x2a5a15))&&(_0x4229cf=this['_model']['createPositionBefore'](_0x4229cf['parent'])),this['_addSuggestionMarker'](_0x3ded44,_0x170e20,_0x42013e,this['_model']['createRange'](_0x4229cf,_0x2cce06));}['_findSuggestions'](_0x2b8966,_0x276ad3=null){const _0x47d3b1=[],_0x4ce9f5=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x2b8966)||(_0x2b8966=[_0x2b8966]);for(const _0x228de0 of this['getSuggestions']()){if(!_0x228de0['isInContent'])continue;if(_0x276ad3&&_0x228de0['type']!=_0x276ad3)continue;let _0x42a699=!0x1;for(const _0x29ec64 of _0x228de0['getRanges']()){for(const _0x24def7 of _0x2b8966){const _0x26661c=_0x24def7['start']['isEqual'](_0x29ec64['end'])||_0x24def7['end']['isEqual'](_0x29ec64['start']);if(_0x26661c||_0x24def7['getIntersection'](_0x29ec64)){const _0x7358fe=_0x24def7['containsRange'](_0x29ec64)&&Ft(this['_model']['schema'],_0x29ec64['start'],_0x24def7),_0x19d34e=_0x29ec64['containsRange'](_0x24def7)&&Ft(this['_model']['schema'],_0x24def7['start'],_0x29ec64);_0x47d3b1['push']({'suggestion':_0x228de0,'meta':{'isOwn':_0x4ce9f5==_0x228de0['author'],'isNextTo':_0x26661c,'isInsideObject':_0x7358fe,'containsRangeInObject':_0x19d34e}}),_0x42a699=!0x0;break;}}if(_0x42a699)break;}}return _0x47d3b1;}['_addSuggestionMarker'](_0x352181,_0x22f80d,_0x28e665,_0x2d1860,_0x2aa7a8){this['_model']['change'](_0x458352=>{let _0x5e31b1='suggestion:'+_0x352181+':'+_0x22f80d+':'+_0x28e665;_0x2aa7a8&&(_0x5e31b1=_0x5e31b1+':'+_0x2aa7a8),_0x458352['addMarker'](_0x5e31b1,{'range':_0x2d1860,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x323cb5){const _0x210419=_0x323cb5['previous'],_0x48bd45=_0x323cb5['next'];_0x323cb5['previous']=null,_0x323cb5['next']=null,null!=_0x210419&&_0x210419['next']==_0x323cb5&&(_0x210419['next']=_0x48bd45),null!=_0x48bd45&&_0x48bd45['previous']==_0x323cb5&&(_0x48bd45['previous']=_0x210419),'ready'==this['_suggestionState']['get'](_0x323cb5)&&(this['_suggestionState']['set'](_0x323cb5,'removed'),this['fire']('suggestionUnloaded',_0x323cb5,_0x210419,_0x48bd45));}['_setSuggestionData'](_0x41e204){const _0x57a0fe=_0x41e204['id'],_0x48bad2=this['addSuggestionData'](_0x41e204);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x16b899=this['editor']['plugins']['get']('PendingActions'),_0x283323=_0x48bad2['hasComments'],_0x27d6f3=_0x48bad2['subType']?_0x48bad2['type']+':'+_0x48bad2['subType']:_0x48bad2['type'],_0x525432=this['editor']['locale'],_0x23766b=_0x16b899['add'](o(_0x525432,'PENDING_ACTION_SUGGESTION')),_0x1aa97a={'id':_0x57a0fe,'type':_0x27d6f3,'hasComments':_0x283323,'data':_0x41e204['data']||null,'originalSuggestionId':_0x41e204['originalSuggestionId']||null,'attributes':_0x48bad2['attributes']};this['_adapter']['addSuggestion'](_0x1aa97a)['then'](_0x2fbc7c=>{_0x48bad2['_saved']=!0x0,_0x16b899['remove'](_0x23766b),_0x2fbc7c&&_0x2fbc7c['createdAt']&&(this['_suggestions']['get'](_0x57a0fe)['createdAt']=_0x2fbc7c['createdAt']);})['catch'](_0x559413=>{throw _0x4dcb27('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x48bad2['discard']();}),_0x48bad2['stopListening'](),this['_suggestions']['delete'](_0x48bad2['id']),this['_suggestionState']['delete'](_0x48bad2),_0x559413;});}return _0x48bad2;}['_isBlockAttribute'](_0x3600c5){return this['_blockAttributeKeys']['has'](_0x3600c5);}['_isInlineAttribute'](_0x58bf9e){return this['_inlineAttributeKeys']['has'](_0x58bf9e);}['_updateSuggestionData'](_0x140856,_0x566876){const _0x5e7e97=this['editor']['plugins']['get']('PendingActions'),_0x5b7fb4=this['getSuggestion'](_0x140856);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x5b7fb4['_saved']){const _0x2fbdd7=_0x5e7e97['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x140856,_0x566876)['then'](()=>{_0x5e7e97['remove'](_0x2fbdd7);});}else _0x5b7fb4['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x140856,_0x566876);});}}['_getSuggestionData'](_0x15619c){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x4c1421('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x15619c);}['_handleNewSuggestionMarker'](_0x1da942){const {id:_0x37834c,type:_0x3a79eb,subType:_0x1c1651,authorId:_0x5b1b32}=this['_splitMarkerName'](_0x1da942),_0xae8c84=this['_suggestions']['get'](_0x37834c)||this['_createSuggestion'](_0x3a79eb,_0x1c1651,_0x37834c,_0x5b1b32,{});switch(this['_checkSuggestionCorrectness'](_0xae8c84,_0x3a79eb,_0x1c1651,_0x5b1b32),this['_suggestionState']['get'](_0xae8c84)){case'notReady':this['_getSuggestionData'](_0x37834c)['then'](_0x1e98ad=>{let _0x4ce849=Promise['resolve']();_0x1e98ad['hasComments']&&(_0x4ce849=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x37834c})),_0x4ce849['then'](()=>{this['addSuggestionData'](_0x1e98ad)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0xae8c84,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x37834c,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0xae8c84,'ready'),this['fire']('suggestionLoaded',_0xae8c84);break;case'ready':this['fire']('suggestionChanged',_0xae8c84);}return _0xae8c84['addMarkerName'](_0x1da942),_0xae8c84;}['_refreshSuggestionsChain'](_0x4b4f09){const _0x534460=Array['from'](_0x4b4f09),_0x5a2ea6=_0x534460['filter'](_0x1f09fc=>'attribute'==_0x1f09fc['type']);this['_refreshAttributeSuggestionsChain'](_0x5a2ea6);const _0x46481a=_0x534460['filter'](_0x1f5387=>!_0x1f5387['isMultiRange']&&'attribute'!=_0x1f5387['type']),_0xa325df=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x7b182b=>!_0x7b182b['isMultiRange']&&'attribute'!=_0x7b182b['type']),_0x2c3d61=_0xa325df['filter'](_0x4db247=>!_0x4b4f09['has'](_0x4db247)),_0xf8c983=new Map(_0xa325df['map'](_0x7c8c89=>[_0x7c8c89,this['_suggestionFactory']['getSuggestionCallback'](_0x7c8c89['type'],_0x7c8c89['subType'],'chain')])),_0x78d6b5=new Map(_0xa325df['map'](_0x31c816=>[_0x31c816,_0x31c816['getFirstRange']()])),_0x3183c6=new Set(),_0x2a3fc8=new Set();for(let _0x4344a6=0x0;_0x4344a6<_0x46481a['length'];_0x4344a6++)_0x53a0a9(_0x46481a[_0x4344a6],_0x46481a,_0x4344a6+0x1);for(let _0x5d8e52=0x0;_0x5d8e52<_0x46481a['length'];_0x5d8e52++)_0x53a0a9(_0x46481a[_0x5d8e52],_0x2c3d61,0x0);const _0x45c716=new Set();for(let _0x4bff69=0x0;_0x4bff69<_0x46481a['length'];_0x4bff69++){const _0x4597e6=_0x46481a[_0x4bff69];!_0x2a3fc8['has'](_0x4597e6)&&_0x4597e6['previous']&&(_0x45c716['add'](_0x4597e6['previous']),_0x4597e6['previous']['next']===_0x4597e6&&(_0x4597e6['previous']['next']=null),_0x4597e6['previous']=null),!_0x3183c6['has'](_0x4597e6)&&_0x4597e6['next']&&(_0x45c716['add'](_0x4597e6['next']),_0x4597e6['next']['previous']===_0x4597e6&&(_0x4597e6['next']['previous']=null),_0x4597e6['next']=null);}function _0x53a0a9(_0x29cbd6,_0x2dff94,_0x575381){for(let _0x51046f=_0x575381;_0x51046f<_0x2dff94['length'];_0x51046f++){const _0x3bebcf=_0x5de286(_0x29cbd6,_0x2dff94[_0x51046f]);_0x3bebcf&&(_0x3bebcf[0x0]['next']=_0x3bebcf[0x1],_0x3bebcf[0x1]['previous']=_0x3bebcf[0x0],_0x3183c6['add'](_0x3bebcf[0x0]),_0x2a3fc8['add'](_0x3bebcf[0x1]));}}function _0x5de286(_0x248562,_0x5069f2){if(_0x248562['author']['id']!==_0x5069f2['author']['id'])return null;const _0x2e6c40=_0xf8c983['get'](_0x248562)(_0x248562,_0x5069f2,_0x78d6b5['get'](_0x248562),_0x78d6b5['get'](_0x5069f2));if(!_0x2e6c40)return null;return _0xf8c983['get'](_0x5069f2)(_0x248562,_0x5069f2,_0x78d6b5['get'](_0x248562),_0x78d6b5['get'](_0x5069f2))?_0x2e6c40[0x1]['commentThread']&&_0x2e6c40[0x1]['commentThread']['length']?null:_0x2e6c40:null;}_0x45c716['size']&&this['_refreshSuggestionsChain'](_0x45c716);}['_refreshAttributeSuggestionsChain'](_0x1bb261){if(0x0==_0x1bb261['length'])return;const _0x13b36a=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3535af=>'attribute'==_0x3535af['type']&&_0x3535af['_isDataLoaded']),_0x4d3f70=[],_0x180182=new Map();for(const _0x1a5dfd of _0x13b36a){const _0x2267aa=_0x20b0ec(_0x1a5dfd['attributes']);_0x180182['has'](_0x2267aa)||(_0x180182['set'](_0x2267aa,_0x4d3f70['length']),_0x4d3f70['push']([]));const _0x5358d9=_0x180182['get'](_0x2267aa);_0x4d3f70[_0x5358d9]['push'](_0x1a5dfd);}!(function(){_0x4d3f70['sort']((_0x3686f8,_0x4324ea)=>{const _0xfe475=_0x3686f8[0x0]['createdAt'],_0x1840d4=_0x4324ea[0x0]['createdAt'];return _0xfe475==_0x1840d4?_0x3686f8[0x0]['attributes']['groupId']<_0x4324ea[0x0]['attributes']['groupId']?-0x1:0x1:_0xfe475<_0x1840d4?-0x1:0x1;});for(const _0x1fe4a0 of _0x4d3f70)_0x1fe4a0['sort']((_0x1cb61d,_0x2e2f7f)=>_0x1cb61d['id']<_0x2e2f7f['id']?-0x1:0x1);}());for(let _0x48b932=0x0;_0x48b932<_0x4d3f70['length'];_0x48b932++){if(0x0==_0x4d3f70[_0x48b932]['length'])continue;const _0x31fec4=[];for(let _0xa8c802=_0x48b932+0x1;_0xa8c802<_0x4d3f70['length'];_0xa8c802++)0x0!=_0x4d3f70[_0xa8c802]['length']&&_0x2b9aba(_0x4d3f70[_0x48b932],_0x4d3f70[_0xa8c802])&&_0x31fec4['push'](_0xa8c802);for(const _0x4be2b7 of _0x31fec4)_0x4d3f70[_0x48b932]=_0x4d3f70[_0x48b932]['concat'](_0x4d3f70[_0x4be2b7]),_0x4d3f70[_0x4be2b7]=[];}for(const _0x401f87 of _0x4d3f70)for(let _0x297bd4=0x0;_0x297bd4<_0x401f87['length'];_0x297bd4++){const _0x3fa368=_0x401f87[_0x297bd4+0x1]||null;_0x401f87[_0x297bd4]['next']!==_0x3fa368&&(_0x401f87[_0x297bd4]['next']=_0x3fa368);}for(const _0x520f8f of _0x4d3f70)for(let _0x21a335=0x0;_0x21a335<_0x520f8f['length'];_0x21a335++){const _0x1dc07a=_0x520f8f[_0x21a335-0x1]||null;_0x520f8f[_0x21a335]['previous']!==_0x1dc07a&&(_0x520f8f[_0x21a335]['previous']=_0x1dc07a);}function _0x2b9aba(_0x31edda,_0x467609){if(_0x31edda[0x0]['attributes']['groupId']!==_0x467609[0x0]['attributes']['groupId']&&_0x31edda[0x0]['author']!==_0x467609[0x0]['author'])return!0x1;if(!function(_0x56da95,_0x388a3f){if(!_0x56da95['hasComments']&&!_0x388a3f['hasComments'])return!0x0;if(_0x56da95['hasComments']&&_0x388a3f['hasComments'])return!0x1;if(_0x56da95['hasComments']&&_0x388a3f['createdAt']<_0x56da95['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x388a3f['hasComments']&&_0x56da95['createdAt']<_0x388a3f['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x31edda[0x0],_0x467609[0x0]))return!0x1;const _0x3865f7=Ut(_0x31edda[0x0]['attributes'],['groupId','trackingSessionId']),_0x5e019=Ut(_0x467609[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x2f27fa(_0x3865f7,_0x5e019))return!0x1;if(_0x31edda[0x0]['attributes']['groupId']==_0x467609[0x0]['attributes']['groupId'])return!0x0;if(_0x31edda[0x0]['attributes']['trackingSessionId']!==_0x467609[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x31edda['every'](_0x13e808=>_0x467609['some'](_0x63f4f9=>_0x13e808['getFirstRange']()['isEqual'](_0x63f4f9['getFirstRange']())))&&_0x467609['every'](_0x38ba91=>_0x31edda['some'](_0x517af3=>_0x38ba91['getFirstRange']()['isEqual'](_0x517af3['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x5a8f55){const _0x3d0310=Array['from'](_0x5a8f55),_0x13e23d=this['getSuggestions']({'skipNotAttached':!0x0}),_0xfc8617=_0x13e23d['filter'](_0x730770=>!_0x5a8f55['has'](_0x730770)),_0x294263=new Map(_0x3d0310['map'](_0x2f13cf=>[_0x2f13cf,this['_suggestionFactory']['getSuggestionCallback'](_0x2f13cf['type'],_0x2f13cf['subType'],'join')])),_0x11f9dd=new Map(_0x13e23d['map'](_0x331850=>[_0x331850,_0x331850['getRanges']()]));for(let _0x8e5a00=0x0;_0x8e5a00<_0x3d0310['length'];_0x8e5a00++){if(_0x280bb7(this,_0x3d0310[_0x8e5a00],_0x3d0310,_0x8e5a00+0x1))return!0x0;}for(let _0xf69911=0x0;_0xf69911<_0x3d0310['length'];_0xf69911++){if(_0x280bb7(this,_0x3d0310[_0xf69911],_0xfc8617,0x0))return!0x0;}return!0x1;function _0x280bb7(_0x2d0696,_0x3be453,_0x31d8b5,_0x108fb6){for(let _0x15b116=_0x108fb6;_0x15b116<_0x31d8b5['length'];_0x15b116++){const _0x3a568a=_0x31d8b5[_0x15b116];if(_0x3a568a['type']!==_0x3be453['type']||_0x3a568a['author']['id']!==_0x3be453['author']['id']||_0x3a568a['subType']!==_0x3be453['subType'])continue;if(!Qt(_0x3be453,_0x3a568a))continue;if('attribute'==_0x3be453['type']&&_0x3be453['data']['oldValue']!=_0x3a568a['data']['oldValue'])continue;if('attribute'==_0x3be453['type']&&_0x2d0696['_isBlockAttribute'](_0x3be453['data']['key']))continue;if('formatBlock'==_0x3be453['type']){const _0x1ff2b0=_0x2d0696['editor']['model'],_0x36fa60=_0x3be453['getContainedElement']();if(_0x36fa60&&(_0x1ff2b0['schema']['isObject'](_0x36fa60)||_0x1ff2b0['schema']['isLimit'](_0x36fa60)))continue;}const _0xde1004=_0x294263['get'](_0x3be453),_0x408b2d=_0x11f9dd['get'](_0x3be453),_0x56a5d0=_0x11f9dd['get'](_0x3a568a),_0x2e7a3b=_0x3be453['commentThread']&&_0x3be453['commentThread']['length'],_0x4ac4ab=_0x3a568a['commentThread']&&_0x3a568a['commentThread']['length'];if(!_0x2e7a3b&&_0xde1004(_0x56a5d0,_0x408b2d))return _0x2d0696['_joinSuggestions'](_0x3a568a,_0x3be453),_0x11f9dd['delete'](_0x3be453),!0x0;if(!_0x4ac4ab&&_0xde1004(_0x408b2d,_0x56a5d0))return _0x2d0696['_joinSuggestions'](_0x3be453,_0x3a568a),_0x11f9dd['delete'](_0x3a568a),!0x0;}return!0x1;}}['_joinSuggestions'](_0xce937a,_0x2c2445){if(_0xce937a['isMultiRange']){for(const _0x30d377 of _0x2c2445['getRanges']())_0xce937a['addRange'](_0x30d377);}else{const _0x114c61=_0x2c2445['getFirstRange']()['end'];this['_setSuggestionRange'](_0xce937a,this['_model']['createRange'](_0xce937a['getFirstRange']()['start'],_0x114c61));}_0x2c2445['removeMarkers']();}['_getMarkerAnnouncementText'](_0x1f35e8,_0x1088a3,_0x3eee2b){const _0x35f323=_0x1f35e8['startsWith']('format')||_0x1f35e8['startsWith']('attribute')?'FORMATTING':_0x1f35e8['toUpperCase']();return o(this['editor']['locale'],_0x1088a3+'_'+_0x35f323+'_SUGGESTION_ANNOUNCEMENT',_0x3eee2b);}['_initAriaMarkerChangeAnnouncements'](){const _0x4277b4=this['editor'];if(!_0x4277b4['ui'])return;const {ariaLiveAnnouncer:_0x3e1547}=_0x4277b4['ui'];_0x5d8882(this['_model'],({left:_0x10d86f,entered:_0x535383})=>{for(const _0x3ae652 of _0x10d86f){const {group:_0x4a7690,type:_0x248e44}=this['_splitMarkerName'](_0x3ae652['name']);if('suggestion'===_0x4a7690){_0x3e1547['announce'](this['_getMarkerAnnouncementText'](_0x248e44,'LEAVE'));break;}}for(const _0x38fe06 of _0x535383){const {group:_0x4cbff0,type:_0x563974}=this['_splitMarkerName'](_0x38fe06['name']);if('suggestion'===_0x4cbff0){_0x3e1547['announce'](this['_getMarkerAnnouncementText'](_0x563974,'ENTER',_0x96d228(_0xa2b94a)));break;}}});}['_processAttributeChanges'](_0x1fadc6){if(this['_recordAttributeSuggestions'])return!0x1;const _0x147bec=this['editor'],_0x17a067=_0x147bec['model']['document']['differ']['getChanges']();if(0x0==_0x17a067['length'])return!0x1;const _0x3d4393=[],_0x541b89=_0x17a067['filter'](_0x528e31=>'attribute'==_0x528e31['type']),_0x1b5af2=_0x17a067['filter'](_0x529424=>'insert'==_0x529424['type']&&'$text'!=_0x529424['name']),_0x7f2b88=_0x17a067['filter'](_0x493bfa=>'remove'==_0x493bfa['type']&&'$text'!=_0x493bfa['name']);for(const _0x748ace of _0x541b89)_0x3d4393['push']({'key':_0x748ace['attributeKey'],'newValue':_0x748ace['attributeNewValue'],'oldValue':_0x748ace['attributeOldValue'],'range':qt(_0x748ace['range'],_0x147bec['model'])});for(const _0x5e804f of _0x1b5af2){const _0xba085=_0x7f2b88['find'](_0x2e02ca=>_0x2e02ca['position']['isEqual'](_0x5e804f['position']));_0xba085&&_0x3d4393['push']({'key':m,'newValue':_0x5e804f['name'],'oldValue':_0xba085['name'],'range':_0x147bec['model']['createRangeOn'](_0x5e804f['position']['nodeAfter'])});}return 0x0!=_0x3d4393['length']&&this['_reduceExistingSuggestions'](_0x1fadc6,_0x3d4393);}['_processAttributeSuggestions'](_0x3cbf08){let _0x1abd35=!0x1;const _0x116d92=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x267300=>_0x267300['data']['newRange']&&_0x267300['name']['startsWith']('suggestion:attribute:'));for(const _0x180e84 of _0x116d92){const {subType:_0x7924a9,id:_0x5bcc4e}=this['_splitMarkerName'](_0x180e84['name']),_0x40bbda=_0x7924a9['split']('|')[0x0];for(const _0x5533fd of this['getSuggestions']({'skipNotAttached':!0x0}))_0x5533fd['id']!=_0x5bcc4e&&'attribute'==_0x5533fd['type']&&_0x5533fd['data']&&_0x5533fd['data']['key']==_0x40bbda&&_0x5533fd['getFirstRange']()['isIntersecting'](_0x180e84['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x5533fd,_0x180e84['data']['newRange'],_0x3cbf08),_0x1abd35=!0x0);}return _0x1abd35;}['recordAttributeChanges'](_0x50ab28){this['_recordAttributeSuggestions']=!0x0,_0x50ab28();}['_isRegisteredAttribute'](_0x4bdaaa){const _0x4a834e=this['_isBlockAttribute'](_0x4bdaaa),_0x5ead17=this['_isInlineAttribute'](_0x4bdaaa);return _0x4a834e||_0x5ead17;}['_reduceExistingSuggestions'](_0x228f5e,_0x51d663){if(0x0==_0x51d663['length'])return!0x1;let _0x5491d0=!0x1;for(const _0x53b978 of _0x51d663){const _0xd94aeb=this['_findSuggestions'](_0x53b978['range'],'attribute')['filter'](_0x25a260=>!_0x25a260['meta']['isNextTo'])['map'](_0x4268b4=>_0x4268b4['suggestion']),_0x3c474d=_0x20b0ec({'newValue':_0x53b978['newValue']});_0xd94aeb['filter'](_0x306f94=>{const [_0x28e453,_0x352025]=_0x306f94['subType']['split']('|');return _0x28e453==_0x53b978['key']&&_0x352025!=_0x3c474d;})['forEach'](_0x32fcba=>{this['_reduceSuggestionAttributeRange'](_0x32fcba,_0x53b978['range'],_0x228f5e),_0x5491d0=!0x0;});}return _0x5491d0;}['_reduceSuggestionAttributeRange'](_0x134742,_0x381ea9,_0x50606f){const _0x589ed1=_0x134742['getFirstRange']()['getDifference'](_0x381ea9);0x0!==_0x589ed1['length']?0x1!==_0x589ed1['length']?this['_breakSuggestionMarker'](_0x134742,_0x381ea9['start'],_0x381ea9['end']):this['_setSuggestionRange'](_0x134742,_0x589ed1[0x0]):_0x50606f['removeMarker'](_0x134742['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x39184e){this['_editor']=_0x39184e,this['_model']=_0x39184e['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x1fc9e5,_0x5c0e61,_0x359064,_0x50719f,_0x4c67c8,_0xc9ed2,_0x1c60ce){return new T(this['_model'],{'type':_0x1fc9e5,'subType':_0x5c0e61,'id':_0x359064,'originalSuggestionId':_0x1c60ce,'author':_0x50719f,'creator':_0x50719f,'attributes':_0x4c67c8,'onAttributesChange':_0xc9ed2,'onAccept':(..._0x1e10b1)=>this['getSuggestionCallback'](_0x1fc9e5,_0x5c0e61,'accept')(..._0x1e10b1),'onDiscard':(..._0x5bf09e)=>this['getSuggestionCallback'](_0x1fc9e5,_0x5c0e61,'discard')(..._0x5bf09e)});}['registerCustomCallback'](_0x2f1dd8,_0x121f60,_0x731a42,_0x5e2492){const _0x598e17=_0x2f1dd8+':'+_0x121f60+':'+_0x731a42;this['_customCallbacks']['set'](_0x598e17,_0x5e2492);}['getSuggestionCallback'](_0x4a0908,_0x47d13b,_0x11a17a){const _0x4422c8=_0x4a0908+':'+_0x47d13b+':'+_0x11a17a;return this['_customCallbacks']['get'](_0x4422c8)||this['_defaultCallbacks']['get'](_0x4a0908+':'+_0x11a17a);}['_registerDefaultCallbacks'](){const _0x998387=()=>!0x1,_0x30cf92=_0x5f2fdb=>{_0x5f2fdb['sort']((_0xd42cb2,_0x289059)=>_0xd42cb2['start']['isBefore'](_0x289059['start'])?0x1:-0x1),this['_model']['change'](_0x7468cc=>{for(const _0x41be3f of _0x5f2fdb){let _0x162252;_0x162252=_0x41be3f['end']['isAtEnd']&&_0x41be3f['end']['parent']==_0x41be3f['start']['nodeAfter']?_0x7468cc['createSelection'](_0x41be3f['start']['nodeAfter'],'on'):_0x7468cc['createSelection'](_0x41be3f),this['_model']['deleteContent'](_0x162252,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x973bee=(_0x500ae8,_0x216e37)=>{_0x216e37&&this['_model']['change'](_0x3f31dd=>{const {commandName:_0x8eae8a,commandParams:_0x3dd782=[]}=_0x216e37,_0x4a32c7=_0x500ae8['map'](_0x36c03b=>(Pt(_0x36c03b)&&(_0x36c03b=this['_model']['createRange'](_0x36c03b['end'])),_0x36c03b))['filter'](_0x3b17dd=>'$graveyard'!==_0x3b17dd['root']['rootName']);if(_0x4a32c7['length']<0x1)return;const _0x7da0a9=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x24d902=>_0x28ae54['fromRange'](_0x24d902));_0x3f31dd['setSelection'](_0x4a32c7);for(const _0xc1e748 of this['_editor']['commands']['commands']())_0xc1e748['refresh']();_0x3dd782['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x8eae8a,..._0x3dd782);const _0x3c6d3b=_0x7da0a9['filter'](_0x2355f7=>'$graveyard'!=_0x2355f7['root']['rootName']);_0x3c6d3b['length']>0x0&&_0x3f31dd['setSelection'](_0x3c6d3b);for(const _0x3d7e6e of _0x7da0a9)_0x3d7e6e['detach']();});},_0x444e2f=(_0x545ebf,_0xbf0e34)=>0x1==_0x545ebf['length']&&0x1==_0xbf0e34['length']&&_0x545ebf[0x0]['end']['isEqual'](_0xbf0e34[0x0]['start']),_0x32808c=(_0x447274,_0xfbd8d0,_0xf85a94,_0x492c57)=>Wt(_0x447274,_0xfbd8d0,_0xf85a94,_0x492c57)?[_0x447274,_0xfbd8d0]:Wt(_0xfbd8d0,_0x447274,_0x492c57,_0xf85a94)?[_0xfbd8d0,_0x447274]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x998387),this['_defaultCallbacks']['set']('insertion:discard',_0x30cf92),this['_defaultCallbacks']['set']('insertion:join',_0x444e2f),this['_defaultCallbacks']['set']('insertion:chain',_0x32808c),this['_defaultCallbacks']['set']('deletion:accept',_0x30cf92),this['_defaultCallbacks']['set']('deletion:discard',_0x998387),this['_defaultCallbacks']['set']('deletion:join',_0x444e2f),this['_defaultCallbacks']['set']('deletion:chain',_0x32808c),this['_defaultCallbacks']['set']('formatInline:accept',_0x973bee),this['_defaultCallbacks']['set']('formatInline:discard',_0x998387),this['_defaultCallbacks']['set']('formatInline:join',_0x444e2f),this['_defaultCallbacks']['set']('formatInline:chain',_0x998387),this['_defaultCallbacks']['set']('formatBlock:accept',_0x973bee),this['_defaultCallbacks']['set']('formatBlock:discard',_0x998387),this['_defaultCallbacks']['set']('formatBlock:join',_0x444e2f),this['_defaultCallbacks']['set']('formatBlock:chain',_0x998387),this['_defaultCallbacks']['set']('attribute:accept',_0x998387),this['_defaultCallbacks']['set']('attribute:discard',(_0x2394fc,_0xa3753a)=>{if(!_0xa3753a)return;const _0x4daa7f=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x534293=>{if(_0xa3753a['key']==m)for(const _0x1e30b2 of _0x2394fc){const _0x598299=_0x1e30b2['start']['nodeAfter'],_0x30a335=_0xa3753a['oldValue'];_0x534293['rename'](_0x598299,_0x30a335);}else{if(_0x4daa7f['_isBlockAttribute'](_0xa3753a['key'])){for(const _0x359bd0 of _0x2394fc)void 0x0!==_0xa3753a['oldValue']?_0x534293['setAttribute'](_0xa3753a['key'],_0xa3753a['oldValue'],_0x359bd0['start']['nodeAfter']):_0x534293['removeAttribute'](_0xa3753a['key'],_0x359bd0['start']['nodeAfter']);}else{for(const _0x44f96c of _0x2394fc)_0xa3753a['oldValue']?_0x534293['setAttribute'](_0xa3753a['key'],_0xa3753a['oldValue'],_0x44f96c):_0x534293['removeAttribute'](_0xa3753a['key'],_0x44f96c);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x444e2f);}}function Ft(_0x1e8b11,_0x1b18f1,_0x3cb1fe){for(const _0x5ca90c of _0x1b18f1['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5ca90c['root']==_0x5ca90c)return!0x1;if(!_0x3cb1fe['containsItem'](_0x5ca90c))return!0x1;if(_0x1e8b11['isObject'](_0x5ca90c)||_0x1e8b11['isLimit'](_0x5ca90c))return!0x0;}return!0x1;}function Pt(_0x153f3f){return _0x153f3f['end']['parent']==_0x153f3f['start']['nodeAfter']&&_0x153f3f['end']['isAtStart'];}function Gt(_0x479d5f,_0x512492,_0x503e6e,_0x1b23f2){const _0x338886=_0x2acd7f=>!_0x2acd7f['item']['is']('$textProxy')&&!_0x1b23f2['isObject'](_0x2acd7f['item']),_0x376d7a=_0x479d5f['start']['getLastMatchingPosition'](_0x338886),_0x434fe5=_0x479d5f['end']['getLastMatchingPosition'](_0x338886,{'direction':'backward'});return(!_0x479d5f['start']['isEqual'](_0x376d7a)||!_0x479d5f['end']['isEqual'](_0x434fe5))&&(_0x376d7a['isBefore'](_0x434fe5)?_0x503e6e['updateMarker'](_0x512492,{'range':_0x503e6e['createRange'](_0x376d7a,_0x434fe5)}):_0x503e6e['removeMarker'](_0x512492),!0x0);}function Lt(_0x5cc032){return _0x20b0ec(_0x5cc032);}function Jt(_0x1d7d1e){const _0x510d9a=_0x1d7d1e['start']['nodeAfter'];return _0x510d9a&&_0x510d9a['is']('element');}function Kt(_0x2960b0){return Pt(_0x2960b0)||function(_0x280220){return _0x280220['start']['parent']==_0x280220['end']['nodeBefore']&&_0x280220['start']['isAtEnd'];}(_0x2960b0);}function Ht(_0x286747,_0xc91a4e){try{const _0x1a9aea=_0x286747['getRange']();for(const _0x5cd1bb of _0xc91a4e)if(_0x286747!==_0x5cd1bb&&_0x1a9aea&&_0x1a9aea['isIntersecting'](_0x5cd1bb['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function qt(_0x30a492,_0x5a81c5){return null==_0x30a492['end']['nodeBefore']&&_0x30a492['end']['parent']==_0x30a492['start']['nodeAfter']?zt(_0x30a492['start']['nodeAfter'],_0x5a81c5):_0x30a492;}function zt(_0x1f702b,_0x3b1007){const _0x1b1adc=_0x3b1007['schema']['isObject'](_0x1f702b)||_0x3b1007['schema']['isSelectable'](_0x1f702b);return _0x3b1007['createRange'](_0x3b1007['createPositionAt'](_0x1f702b,'before'),_0x1b1adc?_0x3b1007['createPositionAfter'](_0x1f702b):_0x3b1007['createPositionAt'](_0x1f702b,'end'));}function Wt(_0x16e742,_0x27ab6b,_0x7d3010,_0xe97e5e){return!!Qt(_0x16e742,_0x27ab6b)&&_0x7d3010['end']['isEqual'](_0xe97e5e['start']);}function Qt(_0x1e6c77,_0x2a5db8){if(!_0x1e6c77['_isDataLoaded']||!_0x2a5db8['_isDataLoaded'])return!0x1;const _0x3ba5cf=new Set(Object['keys'](_0x1e6c77['attributes'])),_0x4062ca=new Set(Object['keys'](_0x2a5db8['attributes']));if(_0x3ba5cf['delete']('groupId'),_0x4062ca['delete']('groupId'),0x0==_0x3ba5cf['size']&&0x0==_0x4062ca['size'])return!0x0;if(_0x3ba5cf['size']!=_0x4062ca['size'])return!0x1;const _0x4080bb={..._0x1e6c77['attributes']},_0x226b2c={..._0x2a5db8['attributes']};return delete _0x4080bb['groupId'],delete _0x226b2c['groupId'],JSON['stringify'](_0x4080bb)==JSON['stringify'](_0x226b2c);}function Xt(_0x3a1ee7,_0x119594){const _0x2b60f1=Yt(_0x3a1ee7['attributes']),_0x3e7dd3=Yt(_0x119594);if(!_0x3a1ee7['_isDataLoaded'])return!0x1;for(const _0x24e8f8 of Object['keys'](_0x3e7dd3))if(!_0x2f27fa(_0x2b60f1[_0x24e8f8],_0x3e7dd3[_0x24e8f8]))return!0x1;return!0x0;}function Yt(_0x1c4810){const _0x15747b=Object['assign']({},_0x1c4810);return delete _0x15747b['skipNestingCheck'],delete _0x15747b['tablePasteChainId'],_0x15747b;}class pe extends/* #__PURE__ -- @preserve */
26
- _0x47df2e(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x45ff4f,_0x393878,_0x4c3152,_0x4e30a3){super(),this['model']=_0x393878,this['view']=_0x4c3152,this['commentThreadController']=_0x4e30a3,this['_editor']=_0x45ff4f,this['_acceptCommand']=_0x45ff4f['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x45ff4f['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x4ec2f6,_0x52c7cb)=>_0x4ec2f6||_0x52c7cb),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x12d25e=>_0x12d25e&&this['_editor']['model']['canEditAt'](_0x393878['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x130fc2=>_0x130fc2&&this['_editor']['model']['canEditAt'](_0x393878['getRanges']())),this['_pendingAction']=null,_0x4c3152['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x4c3152,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x4c3152,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x4c3152,'change:isDirty',()=>{_0x4c3152['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 _0xc71946=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0xc71946);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x489d93{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4218b2,_0x9d0adb,_0x128f27,_0x132104){super(_0x4218b2),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x25137c(_0x4218b2,o(_0x4218b2,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x9d0adb['authoredAt']),this['bind']('authoredAt')['to'](_0x9d0adb),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',_0x9d0adb,'authoredAt',this,'descriptionParts',(_0x331dd1,_0x58a0a8,_0x498a1e)=>{const _0xa016c=_0x498a1e['map'](_0x1898f5=>ls(_0x1898f5['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x331dd1-0x1,_0x9d0adb['author']['name'],_0x58a0a8?_0x132104['formatDateTime'](_0x58a0a8):'',new DOMParser()['parseFromString'](_0xa016c,'text/html')['body']['textContent']]);}),this['focusables']=new _0x15618c(),this['focusTracker']=new _0x284a32(),this['keystrokes']=new _0x427729(),this['focusCycler']=new _0x2d1b59({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x16e7a0=>_0x16e7a0['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x9d0adb,this['_localUser']=_0x128f27,this['_config']=_0x132104,_0x132104['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x59ecae(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x132675}=this['_config'];this['commentsListView']=new _0x132675(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',_0x4a0db3=>_0x4a0db3+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0xa1699,_0x4d6d75)=>_0xa1699||!!_0x4d6d75);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0xba10f0}=this['_config'],_0x3b6707=new _0xba10f0(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4b8ecd=_0x3b6707['commentInputView'];return _0x3b6707['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4b8ecd,'value',(_0x5ac8b7,_0x2b591c,_0x37f366)=>!!_0x37f366||_0x5ac8b7&&!_0x2b591c),_0x4b8ecd['on']('submit',(_0x3d9823,_0x45b54f)=>{this['fire']('addComment',_0x45b54f),_0x4b8ecd['editor']['setData']('');}),_0x4b8ecd['on']('cancel',()=>this['focus']()),_0x4b8ecd['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x3b6707;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x47f6b2,_0x311c38,_0x8f26c9,_0x1e9ddd){super(_0x47f6b2,_0x311c38,_0x8f26c9,_0x1e9ddd),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x44a238=>_0x44a238&&_0x44a238[0x0]?_0x44a238[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x287284,_0x583535)=>{let _0x188f18='';for(const _0x4571bc of _0x287284)_0x188f18+='<p>'+ls(_0x4571bc['content'],_0x4571bc['color'])+'</p>';return _0x583535?_0x188f18:_0x13a927(_0x188f18,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x1e9ddd['SuggestionView'](_0x47f6b2,_0x311c38,{'formatDateTime':_0x1e9ddd['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 _0x5cb9e4=this['bindTemplate'],_0xfe64a4=[this['suggestionView']];return this['commentsListView']&&_0xfe64a4['push'](this['commentsListView']),this['commentThreadInputView']&&_0xfe64a4['push'](this['commentThreadInputView']),_0xfe64a4['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x5cb9e4['if']('isActive','ck-suggestion-wrapper--active'),_0x5cb9e4['to']('type',_0x409e72=>'ck-suggestion-'+_0x409e72),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':_0x5cb9e4['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0xfe64a4};}['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 _0x489d93{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x2e48e7,_0x24c9bd,_0x2bee7f){super(_0x2e48e7),this['_model']=_0x24c9bd,this['_config']=_0x2bee7f,this['set']('description',''),this['bind']('authoredAt')['to'](_0x24c9bd),this['acceptButton']=this['_createButton'](o(_0x2e48e7,'Accept\x20suggestion'),_0x540928,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x2e48e7,'Discard\x20suggestion'),_0x341599,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x22fe78(_0x2e48e7,_0x24c9bd['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x15618c([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x284a32(),this['keystrokes']=new _0x427729(),this['focusCycler']=new _0x2d1b59({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x503224=>_0x503224['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x1e899b=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x1e899b['innerHTML']=this['description'],this['on']('change:description',(_0x3f1c6c,_0x59df75,_0x20b273)=>{_0x1e899b['innerHTML']=_0x20b273;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0xadc3a7=this['bindTemplate'],_0x408048=[{'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':_0xadc3a7['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0xadc3a7['to']('authoredAt',_0x2ca606=>this['_config']['formatDateTime'](_0x2ca606))}]}]},{'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']&&_0x408048['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':_0x408048}]};}['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'](_0x4d0898,_0x90db68,_0x595e4a,_0x22fab5,_0x39ff24){const _0xd07b77=new _0x35f8da(this['locale']);return _0xd07b77['set']({'label':_0x4d0898,'icon':_0x90db68,'tooltip':!0x0,'tooltipPosition':_0x39ff24}),_0xd07b77['extendTemplate']({'attributes':{'class':_0x595e4a}}),_0xd07b77['on']('execute',()=>{this['fire'](_0x22fab5,this['_model']['id']);}),_0xd07b77;}['_setupKeyboardNavigation'](){const _0x1e35a4=this['element'];this['keystrokes']['listenTo'](_0x1e35a4);for(const _0xc1d72f of this['focusables'])this['focusTracker']['add'](_0xc1d72f['element']),this['keystrokes']['listenTo'](_0xc1d72f['element']);this['keystrokes']['set']('enter',(_0x4418f7,_0x41eabe)=>{_0x1e35a4===_0x4418f7['target']&&(this['focusCycler']['focusFirst'](),_0x41eabe());}),this['keystrokes']['set']('esc',(_0x4e0b84,_0xbef29d)=>{_0x1e35a4!==_0x4e0b84['target']&&(this['focus'](),_0xbef29d());});}}class u extends _0x787ffb{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x87368d,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3ed4b8){super(_0x3ed4b8),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x2ccdb5=this['editor']['config'];_0x2ccdb5['define']('trackChanges.SuggestionThreadView',fe),_0x2ccdb5['define']('trackChanges.SuggestionView',we),_0x2ccdb5['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x2ccdb5['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x1ca6e7,_0x3fff50){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x3f12b8,_0x3a2093]of this['_handleControllerBuffer']){const _0xe7602f=this['_suggestionToController']['has'](_0x3f12b8);_0xe7602f||_0x3a2093?_0xe7602f&&_0x3a2093&&this['_destroyController'](_0x3f12b8):this['_initializeController'](_0x3f12b8);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x1ca6e7,_0x3fff50);}['init'](){const _0x1a7519=this['editor'],_0x2765b8=_0x1a7519['plugins']['get']('TrackChangesEditing'),_0x2f32cc=_0x1a7519['plugins']['get']('Annotations'),_0x12d6bb=_0x1a7519['plugins']['get']('EditorAnnotations'),_0x3928bf=_0x1a7519['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x12d6bb['addSourceCollector'](()=>{const _0x27e540=[];for(const [_0x51d5d2,_0x336c7]of Array['from'](this['_suggestionToController'])){const _0x5f343b=_0x51d5d2['getAllAdjacentSuggestions'](),_0x249bf7=[];for(const _0xb45c10 of _0x5f343b){if(!_0xb45c10['isInContent'])continue;if(_0xb45c10['isMultiRange']){_0x249bf7['push'](..._0xb45c10['getRanges']());continue;}const _0x176fda=_0xb45c10['getFirstRange']();if(_0x249bf7['length']>0x0){const _0x1737b9=_0x249bf7[0x0]['getJoined'](_0x176fda);if(_0x1737b9){_0x249bf7[0x0]=_0x1737b9;continue;}}_0x249bf7['push'](_0x176fda);}_0x27e540['push']([_0x336c7['view'],_0x249bf7]);}return _0x27e540;}),this['listenTo'](_0x2765b8,'suggestionLoaded',(_0x17012a,_0x46d5a2)=>{this['listenTo'](_0x46d5a2,'change:previous',(_0x1887a6,_0x52e92a,_0x2e19f9,_0x41a10f)=>{_0x46d5a2['isInContent']&&(null==_0x2e19f9?(this['_updateController'](_0x41a10f['head']),this['_handleSuggestionControllerDelayed'](_0x46d5a2,!0x1)):(this['_updateController'](_0x2e19f9['head']),null==_0x41a10f&&this['_handleSuggestionControllerDelayed'](_0x46d5a2,!0x0)));}),null!==_0x46d5a2['previous']?this['_updateController'](_0x46d5a2['head']):this['_handleSuggestionControllerDelayed'](_0x46d5a2,!0x1);}),this['listenTo'](_0x2765b8,'suggestionUnloaded',(_0x5a4094,_0x172a1f,_0x5358bf)=>{this['stopListening'](_0x172a1f,'change:previous'),this['_handleControllerBuffer']['delete'](_0x172a1f),this['_suggestionToController']['has'](_0x172a1f)&&this['_destroyController'](_0x172a1f),_0x5358bf&&this['_updateController'](_0x5358bf['head']);}),this['listenTo'](_0x2765b8,'suggestionChanged',(_0x4c543a,_0x13a01d)=>{this['_updateController'](_0x13a01d);}),this['listenTo'](_0x2f32cc,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x3928bf,'addComment',(_0x35f21e,{threadId:_0x3f1397,isFromAdapter:_0x451908})=>{if(_0x451908||!_0x2765b8['hasSuggestion'](_0x3f1397))return;const _0x42db4e=_0x2765b8['getSuggestion'](_0x3f1397);this['_suggestionToController']['get'](_0x42db4e)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x253059=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x295790;for(const _0x4e11b7 in _0x253059){const _0x507e5a=_0x4e11b7,_0xd3333d=_0x253059[_0x507e5a];if('trackChangesLicenseKeyValid'==_0xd3333d||'trackChangesLicenseKeyInvalid'==_0xd3333d||'trackChangesLicenseKeyExpired'==_0xd3333d||'trackChangesLicenseKeyDomainLimit'==_0xd3333d||'trackChangesLicenseKeyNotAllowed'==_0xd3333d||'trackChangesLicenseKeyEvaluationLimit'==_0xd3333d||'trackChangesLicenseKeyTrialLimit'==_0xd3333d||'trackChangesLicenseKeyUsageLimit'==_0xd3333d){delete _0x253059[_0x507e5a],_0x295790=_0xd3333d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x295790&&_0x253059['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x295790&&_0x253059['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x295790&&_0x253059['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x295790&&_0x253059['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x295790&&_0x253059['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x295790&&_0x253059['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x295790&&_0x253059['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x8bdf9e){const _0x3beb82=this['_suggestionToController']['get'](_0x8bdf9e);if(!_0x3beb82)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x3beb82['view'])||null;}['getSuggestionForAnnotation'](_0x39fc74){const _0x5063f2=this['_viewToController']['get'](_0x39fc74['innerView']);return _0x5063f2?_0x5063f2['model']:null;}['_refreshActiveMarkers'](){const _0x525243=this['editor']['plugins']['get']('Annotations'),_0x591be0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5ca3ec=Array['from'](_0x525243['activeAnnotations'],_0x562b73=>_0x562b73['innerView'])['filter'](_0x5f158b=>this['_viewToController']['has'](_0x5f158b)),_0x285af3=[];for(const _0x27f8dc of _0x5ca3ec){const _0x31d1b4=this['_viewToController']['get'](_0x27f8dc)['model']['getAllAdjacentSuggestions']();_0x285af3['push'](..._0x31d1b4['reduce']((_0x4450f1,_0x241ac0)=>[..._0x4450f1,..._0x241ac0['getMarkerNames']()],[]));}_0x591be0['activeMarkers']=_0x285af3;}['_addUIComponentsToFactory'](){const _0x517f03=this['editor'],_0x55f0e7=_0x517f03['locale'],_0x14b892=o(_0x55f0e7,'Track\x20changes'),_0x5642c6=new _0x386f99([{'type':'switchbutton','model':new _0x2511a9({'withText':!0x0,'isToggleable':!0x0,'label':_0x14b892,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x2511a9({'withText':!0x0,'label':o(_0x55f0e7,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2511a9({'withText':!0x0,'label':o(_0x55f0e7,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2511a9({'withText':!0x0,'label':o(_0x55f0e7,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2511a9({'withText':!0x0,'label':o(_0x55f0e7,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x517f03['plugins']['has']('TrackChangesPreview')&&_0x5642c6['addMany']([{'type':'separator'},{'type':'button','model':new _0x2511a9({'withText':!0x0,'label':o(_0x55f0e7,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0xe56671 of _0x5642c6)if(ke(_0xe56671)){const _0x45f1c3=_0x517f03['commands']['get'](_0xe56671['model']['commandName']);_0xe56671['model']['bind']('isOn','isEnabled')['to'](_0x45f1c3,'value','isEnabled');}_0x517f03['ui']['componentFactory']['add']('trackChanges',_0x5e96c7=>this['_createToolbarButton'](_0x5e96c7,_0x5642c6,_0x14b892)),_0x517f03['ui']['componentFactory']['add']('menuBar:trackChanges',_0x6ff4b6=>this['_createMenuBarMenu'](_0x6ff4b6,_0x5642c6,_0x14b892));}['_createToolbarButton'](_0x239cd2,_0x32f2cb,_0x4d6599){const _0x540409=_0x58db3f(_0x239cd2,_0x244170),_0x418377=this['editor']['commands']['get']('trackChanges');_0x540409['buttonView']['set']({'tooltip':_0x4d6599,'label':_0x4d6599,'icon':_0x39e2ae}),_0x540409['buttonView']['bind']('isOn')['to'](_0x418377,'value'),_0x540409['buttonView']['on']('execute',()=>{_0x418377['execute'](),this['editor']['editing']['view']['focus']();}),_0x3b866c(_0x540409,_0x32f2cb,{'role':'menu'});const _0x484acf=[];for(const _0x5a0fa4 of _0x32f2cb)ke(_0x5a0fa4)&&_0x484acf['push'](this['editor']['commands']['get'](_0x5a0fa4['model']['commandName']));const _0x5b9d1f=_0x540409['buttonView'];return _0x5b9d1f['actionView']['unbind']('isEnabled'),_0x5b9d1f['arrowView']['unbind']('isEnabled'),_0x5b9d1f['actionView']['bind']('isEnabled')['to'](_0x418377,'isEnabled'),_0x5b9d1f['arrowView']['bind']('isEnabled')['toMany'](_0x484acf,'isEnabled',(..._0xbb5dd2)=>_0xbb5dd2['some'](_0x557c58=>_0x557c58)),_0x540409['on']('execute',_0x2e4331=>{this['editor']['execute'](_0x2e4331['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x540409;}['_createMenuBarMenu'](_0x1dddf2,_0x333f38,_0x1362ba){const _0x30f494=new _0x584a12(_0x1dddf2),_0x5050e6=this['editor']['commands']['get']('trackChanges');_0x30f494['buttonView']['set']({'label':_0x1362ba,'icon':_0x39e2ae});const _0xe8c016=new _0x1a63c8(_0x1dddf2);for(const _0x4d22d8 of _0x333f38){if('separator'==_0x4d22d8['type']){_0xe8c016['items']['add'](new _0x2f3de4(_0x1dddf2));continue;}const _0x29152c=new _0x44c426(_0x1dddf2,_0x30f494),_0x322d6f=new _0x5d845f(_0x1dddf2),_0x1d83ca=_0x4d22d8['model'];_0x322d6f['bind'](...Object['keys'](_0x1d83ca))['to'](_0x1d83ca),_0x322d6f['delegate']('execute')['to'](_0x30f494),_0x322d6f['on']('execute',()=>{this['editor']['execute'](_0x1d83ca['commandName']),this['editor']['editing']['view']['focus']();}),_0x29152c['children']['add'](_0x322d6f),_0xe8c016['items']['add'](_0x29152c);}return _0x30f494['bind']('isEnabled')['to'](_0x5050e6,'isEnabled'),_0x30f494['panelView']['children']['add'](_0xe8c016),_0x30f494;}['_initializeController'](_0x40fbce){const _0x1f2714=this['editor'],_0x2b71a5=_0x1f2714['config'],_0x521e26=_0x1f2714['plugins']['get']('Annotations'),_0x4bd3ff=_0x1f2714['plugins']['get']('CommentsRepository'),_0x28f411=_0x1f2714['plugins']['get']('EditorAnnotations'),_0x1f5f9=_0x1f2714['plugins']['get'](_0x87368d)['me'],_0x34b640=_0x2b71a5['get']('trackChanges')['SuggestionThreadView'],_0x1029cc=_0x2b71a5['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x32e478,CommentThreadInputView:_0x23f2a4}=_0x1f2714['plugins']['get']('CommentsUI');let _0x31855d,_0x4abeb8,_0x136531;this['_annotationViews']['has'](_0x40fbce['id'])?(_0x4abeb8=this['_annotationViews']['get'](_0x40fbce['id']),_0x31855d=_0x4abeb8['mainView']):(_0x31855d=new _0x34b640(_0x1f2714['locale'],_0x40fbce,_0x1f5f9,{'disableComments':this['_disableComments'],'editorConfig':{..._0x2b71a5['get']('comments.editorConfig'),'licenseKey':_0x2b71a5['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x2b71a5['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x2b71a5['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x2b71a5['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x515181(_0x2b71a5['get']('locale'),_0x1f2714['locale']),'CommentView':_0x2b71a5['get']('comments')['CommentView'],'CommentsListView':_0x32e478,'CommentThreadInputView':_0x23f2a4,'SuggestionView':_0x1029cc}),_0x31855d['suggestionView']['acceptButton']['on']('execute',()=>{_0x1f2714['editing']['view']['focus']();}),_0x31855d['suggestionView']['discardButton']['on']('execute',()=>{_0x1f2714['editing']['view']['focus']();}),_0x4abeb8=_0x521e26['createAnnotationView'](this['editor']['locale'],_0x31855d),_0x4abeb8['bind']('isDirty')['to'](_0x31855d,'isDirty'),_0x4abeb8['bind']('length')['to'](_0x31855d),_0x4abeb8['bind']('type')['to'](_0x31855d,'type',_0x3ffae0=>'suggestion-'+_0x3ffae0),_0x31855d['on']('escape',()=>{_0x136531['fire']('escape');}),this['_annotationViews']['set'](_0x40fbce['id'],_0x4abeb8));const _0x495242=_0x4bd3ff['createCommentThreadController'](_0x40fbce['commentThread'],_0x31855d),_0x49b2dc=new pe(_0x1f2714,_0x40fbce,_0x31855d,_0x495242),_0x44f28a=_0x40fbce['getAllAdjacentSuggestions']()['filter'](_0xaf5a69=>_0xaf5a69['isInContent']);_0x31855d['descriptionParts']=_0x1f2714['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x44f28a),this['_suggestionToController']['set'](_0x40fbce,_0x49b2dc),this['_viewToController']['set'](_0x31855d,_0x49b2dc);const _0x190543=()=>{const _0x4100dd=[],_0xf01c6b=_0x40fbce['getAllAdjacentSuggestions']()['filter'](_0x263fdb=>_0x263fdb['isInContent']);for(const _0x2255e7 of _0xf01c6b)_0x4100dd['push'](..._0x2255e7['getMarkers']());return _0x29a9f1(_0x1f2714['editing'],_0x4100dd);};_0x136531=_0x521e26['createAnnotation']({'view':_0x4abeb8,'target':_0x190543,'type':()=>'suggestion-'+_0x49b2dc['view']['type'],'isVisible':!!_0x190543()}),_0x4bd3ff['_bindAnnotationToEditors'](_0x31855d,_0x136531),_0x521e26['add'](_0x136531),_0x28f411['registerAnnotation'](_0x136531);}['_destroyController'](_0x2d1fe4){const _0x338585=this['editor']['plugins']['get']('CommentsRepository'),_0x20980a=this['editor']['plugins']['get']('Annotations'),_0x4d5865=this['_suggestionToController']['get'](_0x2d1fe4),_0x1a07ab=_0x4d5865['view'],_0x285cb3=_0x20980a['getByInnerView'](_0x1a07ab);_0x338585['_unbindEditors'](_0x1a07ab),_0x285cb3&&_0x20980a['remove'](_0x285cb3),this['_suggestionToController']['delete'](_0x2d1fe4),this['_viewToController']['delete'](_0x1a07ab),_0x4d5865['destroy']();}['_updateController'](_0x55b6e8){if(!_0x55b6e8['isInContent']||!this['_suggestionToController']['has'](_0x55b6e8))return;const _0x39678e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2165a7=this['_suggestionToController']['get'](_0x55b6e8),_0x1bd145=_0x55b6e8['getAllAdjacentSuggestions']();_0x2165a7['view']['descriptionParts']=_0x39678e['descriptionFactory']['getDescriptions'](_0x1bd145);}['destroy'](){for(const _0x35b8f9 of this['_suggestionToController']['keys']())this['_destroyController'](_0x35b8f9);for(const _0x557046 of this['_annotationViews']['values']())_0x557046['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x367646){return'model'in _0x367646;}class Fe extends _0x787ffb{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x1fdcaa){this['editor']['plugins']['get'](d)['adapter']=_0x1fdcaa;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x31d8fc){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x31d8fc);}['getSuggestions']({skipNotAttached:_0x58acad=!0x1,toJSON:_0x1be450=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x58acad,'toJSON':_0x1be450});}['getSuggestion'](_0x53fd4e){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x53fd4e);}}const p=['Pagination'];class re extends _0x787ffb{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x47b935=this['editor'];if(_0x47b935['config']['define']('trackChangesData.editorCreator',_0x1e2a23=>{const _0x4b54a1=_0x47b935['model']['document']['getRootNames']()['reduce']((_0x840961,_0x45ee9e)=>(_0x840961[_0x45ee9e]='',_0x840961),{});return _0x47b935['constructor']['create'](_0x4b54a1,_0x1e2a23);}),'function'!=typeof _0x47b935['config']['get']('trackChangesData')['editorCreator'])throw new _0x4c1421('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x4c05da){return P(this['editor'],!0x0,_0x4c05da);}['getDataWithDiscardedSuggestions'](_0x11eed3){return P(this['editor'],!0x1,_0x11eed3);}}class Ge extends _0x787ffb{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x291fe0){function _0x111bb7(_0x4c22f1){return _0x4c22f1['map'](_0x1fb099=>String['fromCharCode'](_0x1fb099))['join']('');}super(_0x291fe0),this['result']='end',_0x291fe0[_0x111bb7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x111bb7([0x76,0x69,0x65,0x77])][_0x111bb7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x111bb7([0x61,0x75,0x74,0x6f]),_0x291fe0[_0x111bb7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x111bb7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x111bb7([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x111bb7([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x111bb7([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(_0x317613){return void 0x0!==_0x317613['getRootsAttributes'];}async function P(_0x26dd05,_0x5e91c3,_0xd2e285){const _0x4a0f62=_0x172897(_0x26dd05,p);_0x4a0f62['plugins']['push'](d,Ge),_0x4a0f62['rootsAttributes']=He(_0x26dd05)?_0x26dd05['getRootsAttributes']():void 0x0;const _0x453fee=document['createDocumentFragment'](),_0xf91369=_0x26dd05['config']['get']('trackChangesData')['editorCreator'],_0x17412d=await _0xf91369(_0x4a0f62,()=>function(_0x3986b2){const _0x523bbd=document['createElement']('div');return _0x3986b2['appendChild'](_0x523bbd),_0x523bbd;}(_0x453fee));!function(_0x215403,_0x5e3667){const _0xc823a5=_0x215403['model']['document']['getRootNames']()['reduce']((_0x133238,_0x1bbe0d)=>(_0x133238[_0x1bbe0d]=_0x215403['data']['get']({'rootName':_0x1bbe0d}),_0x133238),{}),_0x464b86=_0x215403['plugins']['get']('Users')['users']['map'](_0x55e153=>({'id':_0x55e153['id'],'name':_0x55e153['name']})),_0x24a353=_0x215403['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x171b44=_0x215403['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1a1be8=_0x5e3667['plugins']['get']('Users'),_0xa92944=_0x5e3667['plugins']['get']('TrackChangesEditing'),_0x31ead0=_0x5e3667['plugins']['get']('CommentsRepository');for(const _0x319772 of _0x31ead0['getCommentThreads']())_0x319772['remove']();for(const _0x4e67d5 of _0x464b86)_0x1a1be8['getUser'](_0x4e67d5['id'])||_0x1a1be8['addUser'](_0x4e67d5);_0x1a1be8['me']||_0x1a1be8['useAnonymousUser']();for(const _0x5af0bf of _0x171b44)_0x31ead0['addCommentThread'](_0x5af0bf);for(const _0x4c2acc of _0x24a353)_0xa92944['addSuggestionData'](_0x4c2acc);_0x5e3667['data']['set'](_0xc823a5);}(_0x26dd05,_0x17412d),_0x17412d['execute'](_0x5e91c3?'acceptAllSuggestions':'discardAllSuggestions');const _0x121bab=He(_0x17412d)?_0x17412d['getFullData'](_0xd2e285):_0x17412d['data']['get'](_0xd2e285);return await _0x17412d['destroy'](),_0x121bab;}class Me extends _0x489d93{['options'];constructor(_0x5f2c45,_0x1ebbe6){super(_0x5f2c45),this['options']=_0x1ebbe6,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'](_0x1a9389,_0x1232fa){if(!this['element'])return;const _0x2964c0=[];for(const [_0x4748f3,_0x394ae4]of _0x1a9389){const _0x662e19=document['createElement']('div');_0x662e19['setAttribute']('data-ck-root-name',_0x4748f3),_0x662e19['className']=_0x394ae4['classes']+'\x20ck-track-changes-preview__root-container',_0x662e19['innerHTML']=_0x394ae4['content'],_0x2964c0['push'](_0x662e19);}_0x1232fa(this['element'],_0x2964c0),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x5401d4{constructor(_0x3fa6e5){super(_0x3fa6e5),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x50bb32=this['editor'],_0x26a74f=_0x50bb32['locale'],_0x4e36fd=_0x50bb32['plugins']['get']('Dialog');let _0xfc5fd7;const _0x4002a0=function(_0x2e62b6){const _0x4fce8f={};if('editables'in _0x2e62b6['ui']['view']){for(const [_0x5df5d1,_0x142d38]of Object['entries'](_0x2e62b6['ui']['view']['editables']))_0x4fce8f[_0x5df5d1]=_0x142d38['element'];}else _0x4fce8f[_0x2e62b6['model']['document']['getRootNames']()[0x0]]=_0x2e62b6['ui']['view']['editable']['element'];return _0x4fce8f;}(_0x50bb32),_0x5171c6=function(_0x41aaf1){let _0x5791d6=0x0;for(const _0x2c3b2e of Object['values'](_0x41aaf1))_0x5791d6=Math['max'](_0x5791d6,_0x2c3b2e['getBoundingClientRect']()['width']);let _0x397923=0x0;for(const _0x337ff2 of Object['values'](_0x41aaf1))_0x397923+=_0x337ff2['getBoundingClientRect']()['height'];const _0x910bc9=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x224551=Math['min'](_0x397923,_0x910bc9);return{'width':_0x5791d6,'height':_0x224551};}(_0x4002a0);_0x4e36fd['show']({'id':'finalContentPreview','title':o(_0x26a74f,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x26a74f,{'dialogRects':_0x5171c6}),'onHide':()=>{_0xfc5fd7['detachFromDom']();},'onShow':()=>{_0x50bb32['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x11945d=>{const _0x2f3856=this['_standarizeRootsData'](_0x11945d,_0x50bb32,_0x4002a0);_0x4e36fd['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x2f3856,_0x50bb32['config']['get']('trackChanges.preview.renderFunction'));}),_0xfc5fd7=new _0x5f4260(_0x26a74f,[_0x4e36fd['view']]),_0xfc5fd7['attachToDom'](),_0xfc5fd7['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x50bb32['once']('destroy',()=>{_0xfc5fd7['detachFromDom']();});const _0x3f1a7c=_0x4e36fd['view']['headerView']['class'];_0x4e36fd['view']['headerView']['class']=_0x3f1a7c?_0x3f1a7c+'\x20ck-reset_all':'ck-reset_all',_0x4e36fd['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x4e36fd['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x206228=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x354bc7=_0x206228['previewMode'],_0x5d20b3={};if('$labels'===_0x354bc7){for(const _0xdf6bf8 of _0x206228['getMergeFieldsIds']())_0x5d20b3[_0xdf6bf8]=_0x206228['getLabel'](_0xdf6bf8)||_0xdf6bf8;}else{const _0x578046='$defaultValues'===_0x354bc7?_0x206228['getDefaultValues']():_0x206228['getDataSetValues'](_0x354bc7,!0x0);for(const _0x90b3f7 of Object['entries'](_0x578046)){const [_0x237b0f,_0x51c13f]=_0x90b3f7;_0x5d20b3[_0x237b0f]=null!==_0x51c13f?_0x51c13f:_0x206228['getLabel'](_0x237b0f)||_0x237b0f;}}return{'mergeFieldsData':_0x5d20b3};}['_standarizeRootsData'](_0x486594,_0x15a784,_0xacf870){let _0x4fd311;if('string'==typeof _0x486594){const _0x32e067=_0x15a784['model']['document']['getRootNames']()[0x0];_0x4fd311={[_0x32e067]:_0x486594};}else _0x4fd311=_0x486594;const _0x314ab8=this['_fixMediaEmbeds'](_0x4fd311,_0x15a784),_0x4d7aa8=function(_0x4f4f8a,_0x5ad675){for(const [_0x3d06eb,_0x1fcc96]of _0x4f4f8a)_0x1fcc96['classes']=_0x5ad675[_0x3d06eb]['classList']['value']['replace']('ck-focused','');return _0x4f4f8a;}(this['_sortRoots'](_0x15a784)['reduce']((_0x5674bb,_0x2da434)=>(_0x5674bb['push']([_0x2da434,{'content':_0x314ab8[_0x2da434],'classes':''}]),_0x5674bb),[]),_0xacf870);return _0x4d7aa8;}['_fixMediaEmbeds'](_0x32a953,_0x3bfd06){if(!_0x3bfd06['plugins']['has']('MediaEmbedEditing'))return _0x32a953;const _0x2261c1=_0x3bfd06['plugins']['get']('MediaEmbedEditing');for(const [_0x3c5197,_0x3e58ef]of Object['entries'](_0x32a953)){const _0x320a91=document['createElement']('div');_0x320a91['innerHTML']=_0x3e58ef,(_0x320a91['querySelectorAll']('figure.media')['forEach'](_0x3bfc29=>{const _0x4cf550=_0x3bfc29['querySelector']('oembed');if(_0x4cf550){const _0x331fd8=_0x4cf550['getAttribute']('url');if(_0x331fd8){const _0x3dec24=_0x2261c1['registry']['getMediaViewElement'](new _0xc8dca8(_0x3bfd06['editing']['view']['document']),_0x331fd8,{'elementName':'','renderForEditingView':!0x0}),_0x37aeae=document['createElement']('div');_0x37aeae['classList']['add']('ck-media__wrapper'),_0x3dec24['render'](_0x37aeae,_0x3bfd06['editing']['view']['domConverter']),_0x4cf550['replaceWith'](_0x37aeae);}}}),_0x32a953[_0x3c5197]=_0x320a91['innerHTML']);}return _0x32a953;}['_sortRoots'](_0x5d58a4){if(!function(_0x46ac44){return void 0x0!==_0x46ac44['getRootsAttributes'];}(_0x5d58a4))return _0x5d58a4['model']['document']['getRootNames']();const _0x47eca5=[],_0x13b581=new Map();for(const _0x430ff2 of _0x5d58a4['model']['document']['getRootNames']()){const _0x40bcd5=_0x5d58a4['editing']['view']['getDomRoot'](_0x430ff2)['getClientRects']()['item'](0x0);_0x47eca5['push'](_0x430ff2),_0x13b581['set'](_0x430ff2,_0x40bcd5);}return _0x47eca5['sort']((_0x3d51e0,_0x2cd7f4)=>{const _0x52213f=_0x13b581['get'](_0x3d51e0),_0x51feb9=_0x13b581['get'](_0x2cd7f4);return _0x52213f['y']-_0x51feb9['y']||_0x52213f['x']-_0x51feb9['x'];}),_0x47eca5;}}class $e extends _0x787ffb{static get['requires'](){return[re,_0x719633];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2ccbfe){super(_0x2ccbfe),_0x2ccbfe['commands']['add']('previewFinalContent',new te(this['editor'])),_0x2ccbfe['config']['define']('trackChanges.preview.renderFunction',(_0x21fd1f,_0x4ff917)=>{for(const _0x70c1d9 of _0x4ff917)_0x21fd1f['appendChild'](_0x70c1d9);});}}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 _0x1366e1,Plugin as _0xfd4522,PendingActions as _0x19387b}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x5d208c,ObservableMixin as _0x4ffc3b,uid as _0x110ca2,priorities as _0x533dca,insertToPriorityArray as _0x32f2d5,toArray as _0xd850df,logWarning as _0x113fed,getEnvKeystrokeText as _0x338685,FocusTracker as _0x2bcccf,KeystrokeHandler as _0x59df8b,Collection as _0x49a3a5}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x4a5080,IconCancel as _0x503c9a,IconTrackChanges as _0x549e4c}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x986404,View as _0x237d07,ViewCollection as _0x1dcd16,FocusCycler as _0x4bc59e,UIModel as _0x51ccc6,createDropdown as _0x1a7bc1,SplitButtonView as _0x2b4076,addListToDropdown as _0x57c9fb,MenuBarMenuView as _0x2025e3,MenuBarMenuListView as _0x39e983,ListSeparatorView as _0x20cbf3,MenuBarMenuListItemView as _0x4d7d8a,MenuBarMenuListItemButtonView as _0x351920,BodyCollection as _0x3f81a3,Dialog as _0x5914c5}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x41af33,hashObject as _0x51422e,surroundingMarkersDetector as _0x4126be,FOCUS_ANNOTATION_KEYSTROKE as _0x37cb22,AriaDescriptionView as _0x496d48,setupThreadKeyboardNavigation as _0x2e09af,trimHtml as _0x2d6735,UserView as _0x4a5b3a,LateFocusButtonView as _0x5b4b3e,getDateTimeFormatter as _0x204812,getAllMarkersDomElementsSorted as _0x49b990,sanitizeEditorConfig as _0x518498}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x5deae5,ModelLiveRange as _0x217d71,ModelLivePosition as _0xa59888,ViewDowncastWriter as _0x21e70c}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x352865,toWidget as _0x20ea6f}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0xd3c28b,set as _0x5b6213,isEqual as _0x3f9778,unset as _0x21df6e,omit as Ut}from'es-toolkit/compat';import{Delete as _0x2796f0,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x501db2}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x3dd587}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class N extends _0x1366e1{['_enabledCommands'];constructor(_0x452759,_0x490a22){super(_0x452759),this['_enabledCommands']=_0x490a22,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 _0x5a9d76 of this['editor']['commands']['commands']())_0x5a9d76['affectsData']&&!this['_enabledCommands']['has'](_0x5a9d76)&&_0x5a9d76['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x158714 of this['editor']['commands']['commands']())_0x158714['affectsData']&&!this['_enabledCommands']['has'](_0x158714)&&_0x158714['clearForceDisabled']('TrackChangesCommand');}}class D extends _0x1366e1{['_suggestions'];constructor(_0x7ed028,_0x242b4f){super(_0x7ed028),this['_suggestions']=_0x242b4f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x56d2be){const _0xe0dc02=this['_suggestions']['get'](_0x56d2be);if(!_0xe0dc02)throw new _0x5d208c('track-changes-accept-suggestion-not-found',this);const _0x1db600=_0xe0dc02['getRanges']();this['editor']['model']['canEditAt'](_0x1db600)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0xe0dc02);}}class $ extends _0x1366e1{['_suggestions'];constructor(_0x2e3a9c,_0x34580e){super(_0x2e3a9c),this['_suggestions']=_0x34580e,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x14f416){const _0x2d127e=this['_suggestions']['get'](_0x14f416);if(!_0x2d127e)throw new _0x5d208c('track-changes-discard-suggestion-not-found',this);const _0x5016e1=_0x2d127e['getRanges']();this['editor']['model']['canEditAt'](_0x5016e1)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x2d127e);}}function ls(_0x44d55b,_0x4ad05e){let _0x409195='';return _0x409195+=_0x44d55b['split']('*')['map']((_0x541a91,_0x1c1d25)=>_0x1c1d25%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+Zt(_0x541a91)+'</span>':Zt(_0x541a91))['join'](''),_0x4ad05e&&(_0x409195+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x4ad05e['value']+'\x22\x20title=\x22'+_0x4ad05e['title']+'\x22></span>'),_0x409195;}function Zt(_0x4cf6a){const _0xacc1be=document['createElement']('span');return _0xacc1be['innerText']=_0x4cf6a,_0xacc1be['innerHTML'];}function ts(_0x401153){return _0x401153['sort']((_0x5eb179,_0x136c1f)=>'attribute'===_0x5eb179['type']&&'attribute'!==_0x136c1f['type']?-0x1:'attribute'!==_0x5eb179['type']&&'attribute'===_0x136c1f['type']?0x1:'deletion'==_0x5eb179['type']&&'deletion'!=_0x136c1f['type']?-0x1:'deletion'!=_0x5eb179['type']&&'deletion'==_0x136c1f['type']?0x1:0x0);}function to(_0x29267b,_0x114f9d){let _0x512788,_0x2555d9=0x0;const _0x537105=[],_0x6c8f1f=_0x114f9d['schema'];for(;_0x2555d9<_0x29267b['length'];){const _0xa3cb21=_0x29267b[_0x2555d9],_0xd4adf1=_0x29267b[_0x2555d9+0x1];_0x512788||(_0x512788=_0x114f9d['createPositionBefore'](_0xa3cb21)),tn(_0x114f9d,_0xa3cb21,_0xd4adf1)||(_0x537105['push'](_0x114f9d['createRange'](_0x512788,_0x6c8f1f['isObject'](_0xa3cb21)?_0x114f9d['createPositionAfter'](_0xa3cb21):_0x114f9d['createPositionAt'](_0xa3cb21,'end'))),_0x512788=null),_0x2555d9++;}return _0x537105;}function tn(_0x4aaf83,_0x271613,_0x413a5a){if(!_0x413a5a)return!0x1;const _0x3bff91=_0x4aaf83['createPositionAfter'](_0x271613),_0x26f562=_0x4aaf83['createPositionBefore'](_0x413a5a);return _0x3bff91['isTouching'](_0x26f562);}function rs(_0x1be519,_0x22ffd2,_0x473402){for(;_0x473402['length'];){const _0x3feb5a=_0x473402['splice'](0x0,0x64);_0x1be519['change'](()=>{for(const _0xf2155 of _0x3feb5a)_0xf2155['isInContent']&&_0x22ffd2['execute'](_0xf2155['id']);});}}class M extends _0x1366e1{['_command'];['_suggestions'];constructor(_0x158280,_0x58b475,_0x34ff2d){super(_0x158280),this['_command']=_0x58b475,this['_suggestions']=_0x34ff2d,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3cb978=Array['from'](this['_suggestions']['values']())['some'](_0x3e239d=>_0x3e239d['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x3cb978;}['execute'](){const _0x4af59e=ts(Array['from'](this['_suggestions']['values']()));for(const _0x358389 of _0x4af59e){const _0x5ca2d9=_0x358389['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5ca2d9))return;}rs(this['editor']['model'],this['_command'],_0x4af59e);}}class B extends _0x1366e1{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x557388,_0x206851,_0x359051){super(_0x557388),this['_command']=_0x206851,this['_suggestions']=_0x359051,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0xfcbfe4=this['editor']['model']['document']['selection'],_0x4c7d9d=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x43e013,_0x457ade){const _0x684cfd=Array['from'](_0x43e013['getRanges']()),_0x17a7e2=new Set();for(const _0x160c11 of _0x457ade)if(_0x160c11['isInContent']){for(const _0x3e0d27 of _0x684cfd)for(const _0x53cea7 of _0x160c11['getRanges']())(_0x3e0d27['isIntersecting'](_0x53cea7)||_0x43e013['isCollapsed']&&!_0x160c11['isMultiRange']&&_0x160c11['next']&&_0x53cea7['end']['isTouching'](_0x3e0d27['start']))&&_0x17a7e2['add'](_0x160c11);}return _0x17a7e2;}(_0xfcbfe4,_0x4c7d9d),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x3e929d=ts(Array['from'](this['_selectedSuggestions']));for(const _0x1d6486 of _0x3e929d){const _0x2ce09a=_0x1d6486['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2ce09a))return;}rs(this['editor']['model'],this['_command'],_0x3e929d);}}class T extends/* #__PURE__ -- @preserve */
24
+ _0x4ffc3b(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x3a0bb6,_0x85b230){super(),this['id']=_0x85b230['id'],this['type']=_0x85b230['type'],this['subType']=_0x85b230['subType']||null,this['author']=_0x85b230['author'],this['creator']=_0x85b230['creator']||_0x85b230['author'],this['isExternal']=Boolean(_0x85b230['attributes']&&_0x85b230['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x85b230['originalSuggestionId']||null,this['_model']=_0x3a0bb6,this['_onAccept']=_0x85b230['onAccept'],this['_onDiscard']=_0x85b230['onDiscard'],this['_onAttributesChange']=_0x85b230['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x85b230['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 _0x18dea5=this;for(;_0x18dea5['previous'];)_0x18dea5=_0x18dea5['previous'];return _0x18dea5;}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'](_0x14da3e){this['_markerNames']['add'](_0x14da3e);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x2ae201=>this['_model']['markers']['get'](_0x2ae201))['filter'](_0x29a7f9=>_0x29a7f9);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0xb379c=>{for(const _0x36533d of this['getMarkers']())_0xb379c['removeMarker'](_0x36533d);}),this['_markerNames']['clear']();}['removeMarker'](_0x2cbbe3){this['_model']['change'](_0x4c0411=>{_0x4c0411['removeMarker'](_0x2cbbe3);}),this['_markerNames']['delete'](_0x2cbbe3);}['addRange'](_0x3e887a){const _0x1f0d08='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x1f0d08),this['_model']['change'](_0x9b645a=>{_0x9b645a['addMarker'](_0x1f0d08,{'range':_0x3e887a,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x519250){for(const _0x526259 of this['getRanges']())if(_0x526259['isIntersecting'](_0x519250))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4e8bed=>_0x4e8bed['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x317b12,_0x5318d5)=>[..._0x317b12,..._0x5318d5['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x2e3669=this['getRanges']();if(0x1!=_0x2e3669['length'])return null;const _0x10038b=_0x2e3669[0x0],_0x286043=_0x10038b['start']['nodeAfter'],_0x5b8c6b=_0x10038b['end']['nodeBefore'];return _0x286043 instanceof _0x5deae5?_0x286043!=_0x5b8c6b?null:_0x286043: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 _0x257a37=[];let _0x44cf80=this['head'];for(;_0x44cf80;)_0x257a37['push'](_0x44cf80),_0x44cf80=_0x44cf80['next'];return _0x257a37;}['setAttribute'](_0x1cd08f,_0x362a97){const _0x1ed974=_0xd3c28b(this['attributes']);_0x5b6213(_0x1ed974,_0x1cd08f,_0x362a97),_0x3f9778(_0x1ed974,this['attributes'])||(this['attributes']=_0x1ed974,this['_onAttributesChange'](_0x1ed974));}['removeAttribute'](_0x35fb1b){const _0x21477b=_0xd3c28b(this['attributes']);_0x21df6e(_0x21477b,_0x35fb1b),_0x3f9778(_0x21477b,this['attributes'])||(this['attributes']=_0x21477b,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 _0x110ca2()['substr'](0x1,0x5);}}function o(_0x4cafdf,_0x1e766c,_0x5f171b){const _0x5417a0=_0x4cafdf['t'],t=_0x4cafdf['t'];switch(_0x1e766c){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',_0x5f171b);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5f171b);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5f171b);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5f171b);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5f171b);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',_0x5f171b);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5f171b);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',_0x5f171b);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5f171b);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5f171b);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5f171b);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5f171b);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5f171b);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x5f171b);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5f171b);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5f171b);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5f171b);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5f171b);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5f171b);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5f171b);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5f171b);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5f171b);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5f171b);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5f171b);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x5f171b);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'},_0x5f171b);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x5f171b);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x5f171b);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5f171b);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5f171b);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5f171b);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5f171b);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5f171b);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'},_0x5f171b);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5f171b);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5f171b);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5f171b);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5f171b);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'},_0x5f171b);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5f171b);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'},_0x5f171b);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'},_0x5f171b);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5f171b);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'},_0x5f171b);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5f171b);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'},_0x5f171b);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5f171b);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5f171b);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'},_0x5f171b);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x5f171b);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 _0x5417a0({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x5f171b);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x5417a0({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x5f171b);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x5f171b);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'},_0x5f171b);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'},_0x5f171b);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'},_0x5f171b);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x1e766c;}}class x{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x59dede,_0x4dbdb5){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x59dede,this['_locale']=_0x4dbdb5;}['getDescriptions'](_0x1c65e1){const _0x1cf7c3=[],_0x8fc0aa=new Set(),_0x52b958=new Set();for(let _0x1efd5a=0x0;_0x1efd5a<_0x1c65e1['length'];_0x1efd5a++){const _0x590a51=_0x1c65e1[_0x1efd5a];if(!_0x590a51['isInContent'])continue;const _0x493be8=this['_handleCustomCallbackDescription'](_0x590a51);if(_0x493be8){if(null!=_0x590a51['subType']){if(_0x8fc0aa['has'](_0x590a51['subType']))continue;_0x8fc0aa['add'](_0x590a51['subType']);}_0x1cf7c3['push'](_0x493be8);}else{if('attribute'==_0x590a51['type']){const _0x41d1f3=_0x590a51['data']['key'];if(_0x52b958['has'](_0x41d1f3))continue;_0x52b958['add'](_0x590a51['data']['key']),_0x41d1f3==m?this['_handleRenameSuggestionDescription'](_0x1cf7c3,_0x590a51):this['_handleAttributeSuggestionDescription'](_0x1cf7c3,_0x590a51);continue;}'insertion'!=_0x590a51['type']&&'deletion'!=_0x590a51['type']||this['_handleInsertRemoveSuggestionDescription'](_0x1cf7c3,_0x590a51,_0x1c65e1[_0x1efd5a+0x1]);}}return this['_resolveDescriptionItems'](_0x1cf7c3);}['registerDescriptionCallback'](_0x5e352f){this['_customCallbacks']['push'](_0x5e352f);}['registerElementLabel'](_0x18c800,_0x1da527,_0x4787e4=_0x533dca['normal']){'function'==typeof _0x18c800?_0x32f2d5(this['_itemLabelsCallbacks'],{'matchingCallback':_0x18c800,'label':_0x1da527,'priority':_0x4787e4}):this['_itemLabels']['set'](_0x18c800,_0x1da527);}['registerAttributeLabel'](_0x134ae1,_0x226ade){this['_attributeLabels']['set'](_0x134ae1,_0x226ade);}['getItemLabel'](_0x5d9650,_0x468870=0x1){let _0x3268bd;for(const _0x3e1c6f of this['_itemLabelsCallbacks'])if(_0x3e1c6f['matchingCallback'](_0x5d9650)){_0x3268bd=_0x3e1c6f['label'];break;}return _0x3268bd||(_0x3268bd=this['_itemLabels']['get'](_0x5d9650['name'])),_0x3268bd?_0x3268bd(_0x468870):0x1!==_0x468870?_0x468870+'\x20'+_0x5d9650['name']+'s':''+_0x5d9650['name'];}['_addDescriptionItems'](_0xc27aaa,_0x7066a4){const _0x47c0f2=_0x7066a4['getFirstRange']()['getWalker'](),_0x45f05e='insertion'==_0x7066a4['type']?'add':'remove';for(const _0x48b203 of _0x47c0f2){const _0x348cae=_0x48b203['item'],_0x55528d=_0xc27aaa[_0xc27aaa['length']-0x1];if(_0x348cae['is']('$textProxy'))_0x55528d&&_0x55528d['type']['indexOf']('Container')>-0x1&&_0xc27aaa['pop'](),_0x55528d&&'text'==_0x55528d['type']?_0x55528d[_0x45f05e]+=_0x348cae['data']:_0xc27aaa['push']({'type':'text','add':'add'==_0x45f05e?_0x348cae['data']:'','remove':'remove'==_0x45f05e?_0x348cae['data']:''});else{if(this['_schema']['isObject'](_0x348cae)){const _0x1b10d1=_0x348cae;if(_0x55528d&&_0x55528d['type']['indexOf']('Container')>-0x1&&_0xc27aaa['pop'](),'elementEnd'==_0x48b203['type'])continue;_0x55528d&&_0x55528d['type']==_0x45f05e+'Object'&&_0x55528d['element']['name']==_0x1b10d1['name']?_0x55528d['quantity']++:_0xc27aaa['push']({'type':_0x45f05e+'Object','element':_0x1b10d1,'quantity':0x1}),_0x47c0f2['skip'](_0x1c4fbe=>!('elementEnd'==_0x1c4fbe['type']&&_0x1c4fbe['item']==_0x348cae));}else{if(this['_schema']['checkChild'](_0x348cae,'$text')||_0x348cae['is']('element','softBreak')){const _0x5d4dc9=_0x348cae;if('add'==_0x45f05e&&'elementStart'==_0x48b203['type']||'remove'==_0x45f05e&&'elementEnd'==_0x48b203['type'])continue;if(_0x55528d&&-0x1==_0x55528d['type']['indexOf']('Container')){'text'==_0x55528d['type']&&(_0x55528d[_0x45f05e]+='\x0a');continue;}let _0x23414a;if(_0x23414a='add'==_0x45f05e?_0x5d4dc9['nextSibling']&&!this['_schema']['isObject'](_0x5d4dc9['nextSibling'])?_0x5d4dc9['nextSibling']:null:_0x5d4dc9['previousSibling']&&!this['_schema']['isObject'](_0x5d4dc9['previousSibling'])?_0x5d4dc9['previousSibling']:null,_0x5d4dc9['isEmpty']||_0x23414a&&_0x23414a['isEmpty']){const _0x330a05=_0x23414a&&_0x23414a['isEmpty']?_0x23414a:_0x5d4dc9;_0x55528d&&_0x55528d['type']==_0x45f05e+'EmptyContainer'&&_0x55528d['element']['name']==_0x330a05['name']?_0x55528d['quantity']++:_0xc27aaa['push']({'type':_0x45f05e+'EmptyContainer','element':_0x330a05,'quantity':0x1});}else _0xc27aaa['push']({'type':_0x45f05e+'Container','element':_0x5d4dc9});}}}}}['_resolveDescriptionItems'](_0xf60b05){const _0x5526d4=this['_locale'],_0x2906a6=[],_0x32590f=[],_0x525277=[];for(const _0x26fae1 of _0xf60b05)switch(_0x26fae1['type']){case'text':if(_0x26fae1['add']=_0x26fae1['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x26fae1['remove']=_0x26fae1['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x26fae1['add']&&''!=_0x26fae1['remove']){_0x2906a6['push']({'type':'replace','content':o(_0x5526d4,'REPLACE_TEXT',['\x22'+_0x26fae1['remove']+'\x22','\x22'+_0x26fae1['add']+'\x22'])});continue;}if(null!=_0x26fae1['add']['match'](/^ +$/)){_0x2906a6['push']({'type':'insertion','content':o(_0x5526d4,'*Insert:*\x20%0',o(_0x5526d4,'ELEMENT_SPACE',_0x26fae1['add']['length']))});continue;}if(null!=_0x26fae1['remove']['match'](/^ +$/)){_0x2906a6['push']({'type':'deletion','content':o(_0x5526d4,'*Remove:*\x20%0',o(_0x5526d4,'ELEMENT_SPACE',_0x26fae1['remove']['length']))});continue;}if(''!=_0x26fae1['add']){_0x2906a6['push']({'type':'insertion','content':o(_0x5526d4,'*Insert:*\x20%0','\x22'+_0x26fae1['add']+'\x22')});continue;}_0x2906a6['push']({'type':'deletion','content':o(_0x5526d4,'*Remove:*\x20%0','\x22'+_0x26fae1['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x2906a6['push']({'type':'insertion','content':o(_0x5526d4,'*Insert:*\x20%0',this['getItemLabel'](_0x26fae1['element'],_0x26fae1['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x2906a6['push']({'type':'deletion','content':o(_0x5526d4,'*Remove:*\x20%0',this['getItemLabel'](_0x26fae1['element'],_0x26fae1['quantity']))});continue;case'addContainer':_0x2906a6['push']({'type':'insertion','content':o(_0x5526d4,'*Split:*\x20%0',this['getItemLabel'](_0x26fae1['element'],_0x26fae1['quantity']))});continue;case'removeContainer':_0x2906a6['push']({'type':'deletion','content':o(_0x5526d4,'*Merge:*\x20%0',this['getItemLabel'](_0x26fae1['element'],_0x26fae1['quantity']))});continue;case'addFormat':_0x32590f['push'](_0x26fae1['key']);continue;case'removeFormat':_0x525277['push'](_0x26fae1['key']);continue;default:_0x2906a6['push'](_0x26fae1);}if(_0x32590f['length']){const _0x3b0692=_0x32590f['map'](_0x45db00=>this['_attributeLabels']['has'](_0x45db00)?this['_attributeLabels']['get'](_0x45db00):_0x45db00)['join'](',\x20');_0x2906a6['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x3b0692)});}if(_0x525277['length']){const _0xf7d9d4=_0x525277['map'](_0xf5fe2=>this['_attributeLabels']['has'](_0xf5fe2)?this['_attributeLabels']['get'](_0xf5fe2):_0xf5fe2)['join'](',\x20');_0x2906a6['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0xf7d9d4)});}return _0x2906a6;}['_handleCustomCallbackDescription'](_0x197929){for(const _0x4da164 of this['_customCallbacks']){const _0x4c3b31=_0x4da164(_0x197929);if(_0x4c3b31&&'type'in _0x4c3b31)return _0x4c3b31;}}['_handleAttributeSuggestionDescription'](_0x1b52e7,_0x5b1b52){const _0xa4927b=_0x5b1b52['data'],_0x271cdd=void 0x0===_0xa4927b['newValue']?'removeFormat':'addFormat';_0x1b52e7['push']({'type':_0x271cdd,'key':_0xa4927b['key']});}['_handleRenameSuggestionDescription'](_0x44be82,_0x937098){_0x44be82['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x937098['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x395743,_0x27c675,_0x4eb815){if(this['_addDescriptionItems'](_0x395743,_0x27c675),_0x4eb815&&_0x4eb815['getFirstRange']()&&!_0x27c675['getFirstRange']()['end']['isEqual'](_0x4eb815['getFirstRange']()['start'])){const _0xd176a=_0x395743[_0x395743['length']-0x1],_0x101aa0='insertion'==_0x27c675['type']?'add':'remove';_0xd176a&&'text'==_0xd176a['type']&&(_0xd176a[_0x101aa0]+='\x0a');}}}class O extends _0xfd4522{['afterInit'](){const _0x392133=this['editor'],_0x44c088=_0x392133['plugins']['get']('TrackChangesEditing');_0x392133['commands']['get']('showAIAssistant')&&_0x44c088['enableCommand']('showAIAssistant');}}class E extends _0xfd4522{['afterInit'](){const _0x865105=this['editor'],_0x9190df=_0x865105['locale'];if(!_0x865105['plugins']['has']('AlignmentEditing'))return;const _0x59a02e=_0x865105['plugins']['get']('TrackChangesEditing');_0x59a02e['enableDefaultAttributesIntegration']('alignment'),_0x59a02e['registerBlockAttribute']('alignment'),_0x59a02e['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x9190df,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4434e7=this['editor'],_0x40dfe9=_0x4434e7['locale'];_0x4434e7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf7ffa1=>{if('formatBlock'!=_0xf7ffa1['type'])return;const {data:_0x4aaff0}=_0xf7ffa1;if(_0x4aaff0&&'alignment'==_0x4aaff0['commandName']){const _0x2a5739=_0x4aaff0['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x40dfe9,'*Format:*\x20%0',function(_0x21c5f7){switch(_0x21c5f7){case'left':return o(_0x40dfe9,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x40dfe9,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x40dfe9,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x40dfe9,'FORMAT_JUSTIFY_TEXT');}}(_0x2a5739))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class R extends _0xfd4522{['afterInit'](){const _0x51b86d=this['editor'],_0x1a9424=_0x51b86d['plugins']['get']('TrackChangesEditing'),_0x2ae23c=_0x51b86d['locale'];for(const _0x55e9ce of ti){if(!_0x51b86d['plugins']['has'](_0x55e9ce))continue;const _0x303d06=_0x55e9ce['slice'](0x0,-0x7)['toLowerCase'](),_0x22ab5e='FORMAT_'+_0x303d06['toUpperCase']();_0x1a9424['enableDefaultAttributesIntegration'](_0x303d06),_0x1a9424['registerInlineAttribute'](_0x303d06),_0x1a9424['descriptionFactory']['registerAttributeLabel'](_0x303d06,o(_0x2ae23c,_0x22ab5e));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x377260=this['editor'],_0x58b275=_0x377260['locale'],_0x1b2598=_0x377260['plugins']['get']('TrackChangesEditing');function _0x1338f1(_0x2caa63,_0x5310bc){_0x1b2598['descriptionFactory']['registerDescriptionCallback'](_0x11ee69=>{if('formatInline'!=_0x11ee69['type'])return;const {data:_0x5acf83}=_0x11ee69;return _0x5acf83&&_0x5acf83['commandName']===_0x2caa63?_0x5acf83['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x58b275,'*Format:*\x20%0',_0x5310bc)}:{'type':'format','content':o(_0x58b275,'*Remove\x20format:*\x20%0',_0x5310bc)}:void 0x0;});}_0x1338f1('bold',o(_0x58b275,'FORMAT_BOLD')),_0x1338f1('italic',o(_0x58b275,'FORMAT_ITALIC')),_0x1338f1('underline',o(_0x58b275,'FORMAT_UNDERLINE')),_0x1338f1('code',o(_0x58b275,'FORMAT_CODE')),_0x1338f1('strikethrough',o(_0x58b275,'FORMAT_STRIKETHROUGH')),_0x1338f1('subscript',o(_0x58b275,'FORMAT_SUBSCRIPT')),_0x1338f1('superscript',o(_0x58b275,'FORMAT_SUPERSCRIPT'));}}class U extends _0xfd4522{['afterInit'](){const _0x50c5cb=this['editor'],_0x50c5a2=_0x50c5cb['locale'];if(!_0x50c5cb['plugins']['has']('BlockQuoteEditing'))return;const _0x5dfa87=_0x50c5cb['plugins']['get']('TrackChangesEditing'),_0x23bd79=this['editor']['commands']['get']('blockQuote');_0x5dfa87['enableCommand']('blockQuote',(_0x10a94f,_0x49a74f={})=>{const _0x21f05e=this['editor']['model']['document']['selection'],_0x62d13e=_0x49a74f&&void 0x0!==_0x49a74f['forceValue']?_0x49a74f['forceValue']:!_0x23bd79['value'];let _0x534301=[];if(_0x62d13e){const _0x1f6c4d=Array['from'](_0x21f05e['getSelectedBlocks']())['filter'](_0x311834=>oo(_0x311834)||function(_0x24b0d2,_0x22ddbf){const _0x536532=_0x22ddbf['checkChild'](_0x24b0d2['parent'],'blockQuote'),_0x2eef7e=_0x22ddbf['checkChild'](['$root','blockQuote'],_0x24b0d2);return _0x536532&&_0x2eef7e;}(_0x311834,this['editor']['model']['schema']));_0x534301=to(_0x1f6c4d,_0x50c5cb['model']);}else{const _0x5000d0=Array['from'](_0x21f05e['getSelectedBlocks']())['filter'](_0x23cd2a=>oo(_0x23cd2a));_0x534301=to(_0x5000d0,_0x50c5cb['model']);}_0x50c5cb['model']['change'](()=>{for(const _0x451ff1 of _0x534301)_0x5dfa87['markBlockFormat'](_0x451ff1,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x62d13e}]});});}),_0x5dfa87['descriptionFactory']['registerDescriptionCallback'](_0xd4e8ae=>{const {data:_0x402d3c}=_0xd4e8ae;if(_0x402d3c&&'blockQuote'==_0x402d3c['commandName']){const _0x54b2a0=o(_0x50c5a2,'ELEMENT_BLOCK_QUOTE');return _0x402d3c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x50c5a2,'*Set\x20format:*\x20%0',_0x54b2a0)}:{'type':'format','content':o(_0x50c5a2,'*Remove\x20format:*\x20%0',_0x54b2a0)};}});}}function oo(_0x4c31f7){return'blockQuote'==_0x4c31f7['parent']['name'];}class V extends _0xfd4522{['afterInit'](){const _0x3c8d2f=this['editor'],_0x524f1b=_0x3c8d2f['locale'],_0x1cf6ee=_0x3c8d2f['plugins']['get']('TrackChangesEditing');_0x3c8d2f['plugins']['has']('BookmarkEditing')&&(_0x1cf6ee['enableCommand']('insertBookmark'),_0x1cf6ee['enableDefaultAttributesIntegration']('updateBookmark'),_0x1cf6ee['registerBlockAttribute']('bookmarkId'),_0x1cf6ee['descriptionFactory']['registerDescriptionCallback'](_0x40c17d=>{if('insertion'!=_0x40c17d['type']&&'deletion'!=_0x40c17d['type']&&'attribute'!=_0x40c17d['type'])return;const _0x3e561b=_0x40c17d['getContainedElement']();if(null==_0x3e561b)return;if(!_0x3e561b['is']('element','bookmark'))return;const _0x3361ec=_0x3e561b['getAttribute']('bookmarkId');if('insertion'==_0x40c17d['type'])return{'type':'insertion','content':o(_0x524f1b,'*Insert:*\x20%0','\x22'+_0x3361ec+'\x22\x20'+o(_0x524f1b,'ELEMENT_BOOKMARK'))};if('deletion'==_0x40c17d['type'])return{'type':'deletion','content':o(_0x524f1b,'*Remove:*\x20%0','\x22'+_0x3361ec+'\x22\x20'+o(_0x524f1b,'ELEMENT_BOOKMARK'))};const {data:_0x2d3d14}=_0x40c17d;if(!_0x2d3d14||'bookmarkId'!=_0x2d3d14['key'])return;return{'type':'format','content':o(_0x524f1b,'*Set\x20bookmark:*\x20%0','\x22'+_0x2d3d14['newValue']+'\x22')};}));}}class F extends _0xfd4522{['afterInit'](){const _0xa85e41=this['editor'];_0xa85e41['plugins']['has']('CaseChange')&&(_0xa85e41['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0xa85e41['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0xa85e41['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0xfd4522{['afterInit'](){const _0x2237ea=this['editor'];_0x2237ea['commands']['get']('ckbox')&&_0x2237ea['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0xfd4522{['afterInit'](){const _0x12ee37=this['editor'];if(!_0x12ee37['plugins']['has']('CodeBlock'))return;const _0x1a5676=_0x12ee37['plugins']['get']('TrackChangesEditing'),_0x3cd68c=_0x12ee37['locale'],_0x34f742=_0x12ee37['config']['get']('codeBlock')['languages'],_0x5b467b=_0x12ee37['commands']['get']('codeBlock');_0x1a5676['enableCommand']('indentCodeBlock'),_0x1a5676['enableCommand']('outdentCodeBlock'),_0x1a5676['enableCommand']('codeBlock',(_0x123719,_0x313566={})=>{const _0x40ac68=_0x12ee37['model'],_0x4a0147=_0x12ee37['model']['document']['selection'],_0x2c1cb9=_0x313566&&void 0x0!==_0x313566['forceValue']?_0x313566['forceValue']:!_0x5b467b['value'];let _0x3a53ee;_0x313566['language']||(_0x313566['language']=_0x34f742[0x0]['language']),_0x3a53ee=_0x2c1cb9?Array['from'](_0x4a0147['getSelectedBlocks']())['filter'](_0x4da71f=>co(_0x4da71f)||function(_0x1eaf13,_0x321ee0){if(_0x1eaf13['is']('rootElement')||_0x321ee0['isLimit'](_0x1eaf13))return!0x1;return _0x321ee0['checkChild'](_0x1eaf13['parent'],'codeBlock');}(_0x4da71f,_0x40ac68['schema'])):Array['from'](_0x4a0147['getSelectedBlocks']())['filter'](_0x55e18c=>co(_0x55e18c));const _0x45eb78=to(_0x3a53ee,_0x40ac68);_0x40ac68['change'](()=>{for(const _0x38fb02 of _0x45eb78)_0x1a5676['markBlockFormat'](_0x38fb02,{'commandName':'codeBlock','commandParams':[{..._0x313566,'forceValue':_0x2c1cb9}],'formatGroupId':'blockName'});});}),(_0x1a5676['descriptionFactory']['registerElementLabel']('codeBlock',_0x9847b2=>o(_0x3cd68c,'ELEMENT_CODE_BLOCK',_0x9847b2)),_0x1a5676['descriptionFactory']['registerDescriptionCallback'](_0xe12fb4=>{if('formatBlock'!=_0xe12fb4['type'])return;const _0x22a874=_0x3cd68c['t'],{data:_0x14e7bd}=_0xe12fb4;if(!_0x14e7bd||'codeBlock'!=_0x14e7bd['commandName'])return;const _0x2bc9e0=_0x14e7bd['commandParams'][0x0]['language'],_0x45c21b=_0x22a874(_0x34f742['find'](_0x2462b1=>_0x2462b1['language']===_0x2bc9e0)['label'])['toLowerCase']();return _0x14e7bd['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3cd68c,'*Set\x20format:*\x20%0',o(_0x3cd68c,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x45c21b+')')}:{'type':'format','content':o(_0x3cd68c,'*Remove\x20format:*\x20%0',o(_0x3cd68c,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x1d74cb){return'codeBlock'==_0x1d74cb['name'];}class J extends _0xfd4522{['afterInit'](){const _0x5120d3=this['editor'];if(!_0x5120d3['plugins']['has']('CommentsEditing'))return;_0x5120d3['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x3efc77,_0x1f5050,_0x22e153){const _0x54d935=[];for(const _0x2665b5 of _0x1f5050['getItems']())_0x2665b5['hasAttribute'](_0x3efc77)&&_0x54d935['push'](_0x22e153['createRangeOn'](_0x2665b5));return _0x54d935;}function De(_0xa7c930,_0x613dda,{showActiveMarker:_0x14b20a=!0x0}={}){const _0xed5c81=_0xa7c930['plugins']['get']('TrackChangesEditing');return(_0x7eabfe,_0x5bd0bc,_0x169f71)=>{if(!_0x169f71['consumable']['test'](_0x5bd0bc['markerRange'],_0x7eabfe['name']))return;const _0x1e5901=_0x5bd0bc['markerRange']['getWalker'](),_0x10825e=_0x5bd0bc['markerRange']['start'],_0x711ef0=_0xa7c930['model']['schema'];let _0xb177e3=null,_0x30b21d=null,_0xbe84dd=!0x1,_0x500414=!0x1;for(const _0x57a4d4 of _0x1e5901){const _0xf66ccc=_0x57a4d4['item'];_0xbe84dd=_0xbe84dd||_0x711ef0['isContent'](_0xf66ccc);const _0x59119c=_0x169f71['mapper']['toViewElement'](_0xf66ccc);if(_0x59119c&&_0x59119c['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x57a4d4['type']&&(_0x711ef0['isBlock'](_0xf66ccc)&&!_0x711ef0['isLimit'](_0xf66ccc)&&(_0xf66ccc['nextSibling']||_0x10825e['isAtEnd']?_0xb177e3&&_0xb177e3['parent']==_0xf66ccc||(_0xb177e3=_0xf66ccc,_0x47f2f7(_0x57a4d4['previousPosition']),_0x500414=!0x0):_0x30b21d=_0x30b21d||_0x57a4d4['previousPosition']));}function _0x47f2f7(_0x3754c9){const {id:_0x34bac5,authorId:_0x5f4c29}=_0xed5c81['_splitMarkerName'](_0x5bd0bc['markerName']),_0x3dded1=_0x169f71['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x613dda,'data-suggestion':_0x34bac5,'data-author-id':_0x5f4c29}),_0x512e9c=_0x169f71['mapper']['toViewPosition'](_0x3754c9);_0x14b20a&&_0xed5c81['activeMarkers']['includes'](_0x5bd0bc['markerName'])&&_0x169f71['writer']['addClass']('ck-suggestion-marker--active',_0x3dded1),_0x169f71['writer']['insert'](_0x512e9c,_0x3dded1),_0x169f71['mapper']['bindElementToMarker'](_0x3dded1,_0x5bd0bc['markerName']);}_0xbe84dd||_0x500414||!_0x30b21d||_0x47f2f7(_0x30b21d);};}class K extends _0xfd4522{static get['requires'](){return[_0x2796f0];}['init'](){const _0x3159a4=this['editor'],_0x4b6177=_0x3159a4['plugins']['get']('TrackChangesEditing');_0x4b6177['enableCommand']('delete');const _0xb368f8=_0x3159a4['commands']['get']('deleteForward');_0x4b6177['enableCommand']('deleteForward',(_0x1746a7,_0x3122ae={})=>{const _0x1dd7d1=_0x3159a4['model']['createSelection'](_0x3159a4['model']['document']['selection']);_0x1dd7d1['isCollapsed']&&_0x3159a4['model']['modifySelection'](_0x1dd7d1,{'direction':'forward','unit':_0x3122ae['unit']});const _0x2182fc=_0x1dd7d1['getFirstRange'](),_0x415760=_0x217d71['fromRange'](_0x2182fc);let _0x57fb39;_0x1746a7(_0x3122ae),_0x57fb39='$graveyard'==_0x415760['root']['rootName']?_0x3159a4['model']['createRange'](_0x2182fc['start']):_0x3159a4['model']['createRange'](_0x415760['start'],_0x415760['end']),_0x415760['detach'](),_0x3159a4['model']['enqueueChange'](_0xb368f8['buffer']['batch'],_0x1ab30a=>{_0xb368f8['buffer']['lock'](),_0x1ab30a['setSelection'](_0x1ab30a['createRange'](_0x57fb39['end'])),_0xb368f8['buffer']['unlock']();});}),_0x3159a4['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x3159a4,'merge'),{'priority':'high'}),_0x3159a4['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x8ee296,_0x23b2fd,_0x237227)=>{_0x237227['options']['showSuggestionHighlights']&&De(_0x3159a4,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x8ee296,_0x23b2fd,_0x237227);},{'priority':'high'}),_0x3159a4['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x391378,_0x4d5b8e,_0x3c2b86)=>{const _0x1e6c33=_0x3c2b86['mapper']['markerNameToElements'](_0x4d5b8e['markerName']);if(_0x1e6c33){for(const _0x217b0c of _0x1e6c33)_0x217b0c['is']('uiElement')&&(_0x3c2b86['mapper']['unbindElementFromMarkerName'](_0x217b0c,_0x4d5b8e['markerName']),_0x3c2b86['writer']['remove'](_0x217b0c));}},{'priority':'high'});}}class H extends _0xfd4522{['afterInit'](){const _0x10ee9f=this['editor'];if(!_0x10ee9f['plugins']['has']('ListEditing'))return;const _0xc291de=_0x10ee9f['locale'],_0xfd954a=_0x10ee9f['plugins']['get']('TrackChangesEditing'),_0x4962f8=_0x10ee9f['plugins']['has']('TodoListEditing'),_0x2fc2a3=!!_0x10ee9f['config']['get']('list.multiBlock');function _0x44831b(_0x44ad39){return{'type':'format','content':''+o(_0xc291de,'*Set\x20format:*\x20%0',_0x44ad39)};}function _0x9a4ff8(_0x11cda9){return{'type':'format','content':''+o(_0xc291de,'*Remove\x20format:*\x20%0',_0x11cda9)};}_0xfd954a['enableDefaultAttributesIntegration']('numberedList'),_0xfd954a['enableDefaultAttributesIntegration']('bulletedList'),_0xfd954a['enableDefaultAttributesIntegration']('customNumberedList'),_0xfd954a['enableDefaultAttributesIntegration']('customBulletedList'),_0xfd954a['enableDefaultAttributesIntegration']('indentList'),_0xfd954a['enableDefaultAttributesIntegration']('outdentList'),_0xfd954a['enableDefaultAttributesIntegration']('splitListItemAfter'),_0xfd954a['enableDefaultAttributesIntegration']('splitListItemBefore'),_0xfd954a['registerBlockAttribute']('listItemId'),_0xfd954a['registerBlockAttribute']('listType'),_0xfd954a['registerBlockAttribute']('listIndent'),_0x2fc2a3&&(_0xfd954a['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0xfd954a['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x4962f8&&(_0xfd954a['enableDefaultAttributesIntegration']('todoList'),_0xfd954a['enableDefaultAttributesIntegration']('checkTodoList'),_0xfd954a['registerBlockAttribute']('todoListChecked'),_0xfd954a['descriptionFactory']['registerDescriptionCallback'](_0xc4f3ce=>{const {data:_0x47cfbc}=_0xc4f3ce;if(_0x47cfbc&&'todoListChecked'==_0x47cfbc['key'])return{'type':'format','content':_0x47cfbc['newValue']?o(_0xc291de,'*Check\x20item*'):o(_0xc291de,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x36f5e7=>{if(_0x36f5e7['batch']['isUndo'])return!0x1;let _0x178035=!0x1;const _0x14c3d3=_0xfd954a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3e9344=>'todoListChecked'===_0xfd954a['_getAttributeKey'](_0x3e9344));for(const _0x41cd9e of _0x14c3d3){'todo'!=_0x41cd9e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0xfd954a['_findSuggestions'](_0x41cd9e['getFirstRange'](),'attribute')['find'](_0x3cbc7b=>'listType'===_0xfd954a['_getAttributeKey'](_0x3cbc7b['suggestion']))||(_0x36f5e7['removeMarker'](_0x41cd9e['getFirstMarker']()),_0x178035=!0x0));}return _0x178035;})),_0xfd954a['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0xc291de,'FORMAT_INDENT'));const _0xf688ea={'type':'format','content':''};_0xfd954a['descriptionFactory']['registerDescriptionCallback'](_0x785f74=>{const {data:_0xe3ec95}=_0x785f74;if(!_0xe3ec95||'listType'!=_0xe3ec95['key'])return;let _0x3fe112=_0x785f74['head'];for(;_0x3fe112;){if(_0x3fe112['data']&&(('listStyle'==_0x3fe112['data']['key']||'listMarkerStyle'==_0x3fe112['data']['key'])&&(_0x3fe112['data']['newValue']&&'default'!=_0x3fe112['data']['newValue']||'default'!=_0x3fe112['data']['oldValue']&&!_0xe3ec95['newValue'])||!_0x2fc2a3&&_0x3fe112['data']['key']==m))return _0xf688ea;_0x3fe112=_0x3fe112['next'];}if(null==_0xe3ec95['newValue'])switch(_0xe3ec95['oldValue']){case'bulleted':return _0x9a4ff8(o(_0xc291de,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x9a4ff8(o(_0xc291de,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x9a4ff8(o(_0xc291de,'ELEMENT_TODO_LIST'));}switch(_0xe3ec95['newValue']){case'bulleted':return _0x44831b(o(_0xc291de,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x44831b(o(_0xc291de,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x44831b(o(_0xc291de,'ELEMENT_TODO_LIST'));}}),_0xfd954a['descriptionFactory']['registerDescriptionCallback'](_0x4ce792=>{const {data:_0x18cb4c}=_0x4ce792;if(_0x18cb4c&&'listIndent'==_0x18cb4c['key'])return null==_0x18cb4c['newValue']||null==_0x18cb4c['oldValue']&&0x0==_0x18cb4c['newValue']?_0xf688ea:void 0x0;}),_0xfd954a['descriptionFactory']['registerDescriptionCallback'](_0x321ad5=>{if('attribute'!=_0x321ad5['type'])return;const {data:_0xaa2329}=_0x321ad5;if(!_0xaa2329||'listItemId'!=_0xaa2329['key'])return;const _0x69db=Te(_0x321ad5);return'newValue'==_0x69db?{'type':'format','content':o(_0xc291de,'*Merge:*\x20list\x20item')}:'oldValue'==_0x69db?{'type':'format','content':o(_0xc291de,'*Split:*\x20list\x20item')}:_0xf688ea;}),_0x10ee9f['model']['document']['registerPostFixer'](_0x7843e=>this['listItemIdFixer'](_0x7843e)),_0x10ee9f['model']['document']['registerPostFixer'](_0x4db15c=>this['noTrackChangesFixer'](_0x4db15c)),_0x10ee9f['model']['document']['on']('change:data',(_0x4f2333,_0x319b2b)=>{if(_0x319b2b['isUndo']||!_0x319b2b['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x277262){if(_0x277262['batch']['isUndo']||!_0x277262['batch']['isLocal'])return!0x1;let _0xa1f947=!0x1;const _0x65d9a7=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5846a8=>_0x5846a8['data']&&'listItemId'==_0x5846a8['data']['key'])['filter'](_0x6be0ab=>_0x6be0ab['data']['newValue']&&_0x6be0ab['data']['oldValue']);for(const _0x507a0f of _0x65d9a7)Te(_0x507a0f)||(_0x277262['removeMarker'](_0x507a0f['getFirstMarker']()),_0xa1f947=!0x0);return _0xa1f947;}['noTrackChangesFixer'](_0x4c3629){if(_0x4c3629['batch']['isUndo']||!_0x4c3629['batch']['isLocal'])return!0x1;const _0x409362=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x409362['trackChangesCommand']['value'])return!0x1;let _0x2d2873=!0x1;const _0x261d8a=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x4c1658=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0xf1ead6=>'attribute'==_0xf1ead6['type'])['filter'](_0x1b65cc=>_0x261d8a['includes'](_0x1b65cc['attributeKey']));if(0x0==_0x4c1658['length'])return _0x2d2873;for(const _0x29612e of _0x4c1658){const _0x1ef2b1=_0x409362['_findSuggestions'](_0x29612e['range'],'attribute')['filter'](_0x287df6=>!_0x287df6['meta']['isNextTo'])['map'](_0x425ae6=>_0x425ae6['suggestion'])['filter'](_0x3aa016=>{const _0x48570f=_0x409362['_getAttributeKey'](_0x3aa016);return _0x261d8a['includes'](_0x48570f);});if(_0x1ef2b1['length']){for(const _0x32052c of _0x1ef2b1)_0x4c3629['removeMarker'](_0x32052c['getFirstMarker']());_0x2d2873=!0x0;}}return _0x2d2873;}['assureChains'](){const _0x24483a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3f7db5=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x57e229;const _0x29b7f7=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x43f6ef=>{if(_0x43f6ef['data']['oldRange']||!_0x43f6ef['data']['newRange'])return null;if(!_0x43f6ef['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x11f91c}=_0x24483a['_splitMarkerName'](_0x43f6ef['name']);if(!_0x24483a['hasSuggestion'](_0x11f91c))return null;const _0x23c5d0=_0x24483a['getSuggestion'](_0x11f91c);return _0x3f7db5['includes'](_0x23c5d0['data']['key']);})['map'](_0x27171e=>{const {id:_0x28a304}=_0x24483a['_splitMarkerName'](_0x27171e['name']),_0x1f3bf1=_0x24483a['getSuggestion'](_0x28a304);return _0x57e229=_0x1f3bf1['attributes']['groupId'],_0x1f3bf1['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x29b7f7['size'])return;const _0x5380cd=_0x24483a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x50e53a=>'attribute'==_0x50e53a['type']&&_0x50e53a['data']&&_0x3f7db5['includes'](_0x50e53a['data']['key'])&&_0x50e53a['attributes']['groupId']!=_0x57e229)['map'](_0x41a742=>({'listItem':_0x41a742['getFirstRange']()['start']['nodeAfter'],'groupId':_0x41a742['attributes']['groupId']})),_0x47b035=new Set();for(const {groupId:_0x2b8260,listItem:_0xd1bcfb}of _0x5380cd)_0x29b7f7['has'](_0xd1bcfb)&&_0x47b035['add'](_0x2b8260);for(const _0x40e10b of _0x24483a['getSuggestions']())_0x47b035['has'](_0x40e10b['attributes']['groupId'])&&_0x40e10b['setAttribute']('groupId',_0x57e229);}['_supportLegacySuggestions'](){const _0x311858=this['editor'],_0x18f1f8=_0x311858['locale'],_0x473913=_0x311858['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x473913['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x319ff6,_0x3cda78){const _0x538c15=[];for(let _0x21646e of _0x319ff6)_0x21646e['start']['nodeAfter']===_0x21646e['end']['parent']&&(_0x21646e=_0x311858['model']['createRange'](_0x311858['model']['createPositionAt'](_0x21646e['start']['nodeAfter'],0x0))),_0x538c15['push'](_0x21646e);_0x311858['model']['change'](_0x59af67=>{const _0x203439=_0x311858['model']['document']['selection'],_0xf6d445=Array['from'](_0x203439['getRanges']())['map'](_0x4936c1=>_0x217d71['fromRange'](_0x4936c1));_0x59af67['setSelection'](_0x538c15),_0x311858['commands']['get'](_0x3cda78['commandName'])['refresh'](),_0x3cda78['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x311858['execute'](_0x3cda78['commandName'],..._0x3cda78['commandParams']),_0x59af67['setSelection'](_0xf6d445);for(const _0x734c3f of _0xf6d445)_0x734c3f['detach']();});}),_0x473913['descriptionFactory']['registerElementLabel'](function(_0x19541d){const _0x5f27f2=!_0x311858['model']['schema']['isObject'](_0x19541d),_0x4fbe55=_0x19541d['previousSibling'],_0x5e5603=_0x19541d['nextSibling'],_0x5950c8=_0x19541d['getAttribute']('listItemId'),_0x2b86f9=!_0x4fbe55||_0x4fbe55['getAttribute']('listItemId')!==_0x5950c8,_0x11056a=!_0x5e5603||_0x5e5603['getAttribute']('listItemId')!==_0x5950c8;return _0x5f27f2&&Boolean(_0x5950c8)&&_0x2b86f9&&_0x11056a;},_0x56e829=>o(_0x18f1f8,'ELEMENT_LIST_ITEM',_0x56e829));}['_registerLegacyDescription'](){const _0xdb2ec5=this['editor'],_0x37b5d7=_0xdb2ec5['locale'];function _0x2a0282(_0x3af705){const _0x449010=_0xdb2ec5['commands']['get']('bulletedList')['value'],_0x2fe7a1=_0xdb2ec5['commands']['get']('numberedList')['value'];return'numberedList'===_0x3af705?_0x449010:_0x2fe7a1;}_0xdb2ec5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x5aa69a){if('formatBlock'!=_0x5aa69a['type'])return;const {data:_0x2134dd}=_0x5aa69a;if(!_0x2134dd)return;let _0x4160ff,_0xc3ee3b,_0x24a711,_0x1f2432;switch(_0x2134dd['commandName']){case'bulletedList':_0x24a711=_0x2134dd['commandParams'][0x0]['forceValue'],_0x1f2432=_0x2a0282(_0x2134dd['commandName']),_0x4160ff=_0x24a711?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1f2432&&_0xdb2ec5['config']['get']('list.multiBlock')||(_0x4160ff='*Change\x20to:*\x20%0'),_0xc3ee3b={'type':'format','content':o(_0x37b5d7,_0x4160ff,o(_0x37b5d7,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x24a711=_0x2134dd['commandParams'][0x0]['forceValue'],_0x1f2432=_0x2a0282(_0x2134dd['commandName']),_0x4160ff=_0x24a711?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1f2432&&_0xdb2ec5['config']['get']('list.multiBlock')||(_0x4160ff='*Change\x20to:*\x20%0'),_0xc3ee3b={'type':'format','content':o(_0x37b5d7,_0x4160ff,o(_0x37b5d7,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x4160ff='*Indent:*\x20%0',_0xc3ee3b={'type':'format','content':o(_0x37b5d7,_0x4160ff,o(_0x37b5d7,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x4160ff=function(_0x4c9b4e){const _0x594be7=_0x4c9b4e['getFirstRange']();let _0x4f36e6=_0x594be7['start']['nodeAfter'];for(;_0x4f36e6&&_0x594be7['containsItem'](_0x4f36e6);){if(_0x4f36e6['getAttribute']('listIndent')>0x0)return!0x1;_0x4f36e6=_0x4f36e6['nextSibling'];}return!0x0;}(_0x5aa69a)?o(_0x37b5d7,'*Format:*\x20remove\x20from\x20%0',o(_0x37b5d7,function(_0x1c12af){return'ELEMENT_'+_0x1c12af['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x5aa69a))):o(_0x37b5d7,'*Outdent:*\x20%0',o(_0x37b5d7,'ELEMENT_LIST_ITEM')),_0xc3ee3b={'type':'format','content':_0x4160ff};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x2134dd['multipleBlocks']&&(_0x4160ff='*Merge:*\x20%0',_0xc3ee3b={'type':'deletion','content':o(_0x37b5d7,_0x4160ff,o(_0x37b5d7,'ELEMENT_LIST_ITEM'))});}return _0xc3ee3b;});}}function Te(_0x284d90){let _0x224694=_0x284d90['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x224694;){const _0x562138=_0x224694['getAttribute']('listItemId');if(!_0x562138)return!0x1;if(_0x562138==_0x284d90['data']['newValue'])return'newValue';if(_0x562138==_0x284d90['data']['oldValue'])return'oldValue';_0x224694=_0x224694['previousSibling'];}return!0x1;}class q extends _0xfd4522{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0xc4702c=this['editor']['config']['get']('list.properties'),_0x42066d=this['editor']['plugins']['get']('TrackChangesEditing');_0xc4702c['styles']&&(_0x42066d['enableDefaultAttributesIntegration']('listStyle'),_0x42066d['registerBlockAttribute']('listStyle')),_0xc4702c['reversed']&&(_0x42066d['enableDefaultAttributesIntegration']('listReversed'),_0x42066d['registerBlockAttribute']('listReversed')),_0xc4702c['startIndex']&&(_0x42066d['enableDefaultAttributesIntegration']('listStart'),_0x42066d['registerBlockAttribute']('listStart'));const _0x8483da={'type':'format','content':''};_0x42066d['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x3522d2=this['editor']['locale'];_0x42066d['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x3522d2,'FORMAT_LIST_REVERSED')),_0x42066d['descriptionFactory']['registerDescriptionCallback'](_0x40a432=>{const {data:_0x324a95}=_0x40a432;if(_0x324a95&&'listReversed'==_0x324a95['key'])return null==_0x324a95['newValue']||0x0==_0x324a95['newValue']&&null==_0x324a95['oldValue']?_0x8483da:void 0x0;}),_0x42066d['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x3522d2,'FORMAT_LIST_START')),_0x42066d['descriptionFactory']['registerDescriptionCallback'](_0xa149b5=>{const {data:_0x4f77e7}=_0xa149b5;if(_0x4f77e7&&'listStart'==_0x4f77e7['key'])return null==_0x4f77e7['newValue']||0x1==_0x4f77e7['newValue']&&null==_0x4f77e7['oldValue']?_0x8483da:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x4dc4d3=>{if(_0x4dc4d3['batch']['isUndo'])return!0x1;let _0x5c1bfd=!0x1;const _0x4a9298=_0x42066d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x30b4c4=>{const _0x1d2621=_0x42066d['_getAttributeKey'](_0x30b4c4);return'listStart'==_0x1d2621||'listReversed'==_0x1d2621;});for(const _0xa33863 of _0x4a9298){const _0x46e79e=_0xa33863['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x46e79e||'customNumbered'==_0x46e79e)continue;_0x42066d['_findSuggestions'](_0xa33863['getFirstRange'](),'attribute')['find'](_0x2e734b=>'listType'==_0x42066d['_getAttributeKey'](_0x2e734b['suggestion']))||(_0x4dc4d3['removeMarker'](_0xa33863['getFirstMarker']()),_0x5c1bfd=!0x0);}return _0x5c1bfd;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x2d5f73){const _0x1f086c=this['editor']['locale'],{data:_0x31b05d}=_0x2d5f73,_0x13da54={'type':'format','content':''};if(!_0x31b05d||'listStyle'!=_0x31b05d['key'])return;if(!_0x31b05d['oldValue'])return'default'==_0x31b05d['newValue']?_0x13da54:{'type':'format','content':''+o(_0x1f086c,'*Set\x20format:*\x20%0',o(_0x1f086c,this['_getTranslationKeyForListStyle'](_0x31b05d['newValue'])))};if(!_0x31b05d['newValue']){if('default'==_0x31b05d['oldValue'])return _0x13da54;let _0x21e2b7=_0x2d5f73['head'];for(;_0x21e2b7;){if(_0x21e2b7['data']&&'listType'==_0x21e2b7['data']['key']&&_0x21e2b7['data']['newValue'])return _0x13da54;_0x21e2b7=_0x21e2b7['next'];}return{'type':'format','content':''+o(_0x1f086c,'*Remove\x20format:*\x20%0',o(_0x1f086c,this['_getTranslationKeyForListStyle'](_0x31b05d['oldValue'])))};}if('default'!=_0x31b05d['newValue'])return{'type':'format','content':''+o(_0x1f086c,'*Set\x20format:*\x20%0',o(_0x1f086c,this['_getTranslationKeyForListStyle'](_0x31b05d['newValue'])))};let _0x394691=_0x2d5f73['head'];for(;_0x394691;){if(_0x394691['data']&&'listType'==_0x394691['data']['key']&&_0x394691['data']['newValue']&&_0x394691['data']['oldValue'])return _0x13da54;_0x394691=_0x394691['next'];}return{'type':'format','content':o(_0x1f086c,'*Set\x20format:*\x20%0',o(_0x1f086c,'ELEMENT_'+_0x2d5f73['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x3f99f8=this['editor'],_0x275b9a=_0x3f99f8['locale'];_0x3f99f8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x90def=>{if('formatBlock'!=_0x90def['type'])return;const {data:_0x5e2f02}=_0x90def;if(!_0x5e2f02)return;let _0x47674,_0x157be6;switch(_0x5e2f02['commandName']){case'listStyle':_0x47674='*Change\x20to:*\x20%0',_0x157be6={'type':'format','content':o(_0x275b9a,_0x47674,o(_0x275b9a,this['_getTranslationKeyForListStyle'](_0x5e2f02['commandParams'][0x0]['type'])))};break;case'listReversed':_0x47674=_0x5e2f02['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x157be6={'type':'format','content':o(_0x275b9a,_0x47674)};break;case'listStart':_0x47674='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x157be6={'type':'format','content':o(_0x275b9a,_0x47674,_0x5e2f02['commandParams'][0x0]['startIndex'])};}return _0x157be6;});}['_getTranslationKeyForListStyle'](_0xe8bb9f){return'ELEMENT_'+function(_0x268b16){if(Se['includes'](_0x268b16))return'bulleted';if(_e['includes'](_0x268b16))return'numbered';return null;}(_0xe8bb9f)['toUpperCase']()+'_LIST_'+_0xe8bb9f['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class z extends _0xfd4522{['afterInit'](){const _0x5c225a=this['editor'];_0x5c225a['commands']['get']('emoji')&&_0x5c225a['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class W extends _0xfd4522{static get['requires'](){return[_0x501db2];}['init'](){const _0x26352b=this['editor'],_0x3c0c0c=_0x26352b['plugins']['get']('TrackChangesEditing'),_0x1dc0d2=_0x26352b['commands']['get']('enter');_0x3c0c0c['enableCommand']('enter',()=>{_0x26352b['model']['change'](_0x1ac712=>{const _0x11b41e=_0x26352b['model']['document']['selection'],_0x3f4c09=_0x11b41e['getFirstPosition'](),_0x2499a6=_0x217d71['fromRange'](_0x11b41e['getFirstRange']());if(_0x1dc0d2['enterBlock'](_0x1ac712)){const _0x2afa02=_0x26352b['model']['createPositionAt'](_0x3f4c09['parent']['nextSibling'],0x0),_0x5c3172=_0x1ac712['createRange'](_0x3f4c09,_0x2afa02);_0x3c0c0c['markInsertion'](_0x5c3172);}else _0x1ac712['setSelection'](_0x1ac712['createRange'](_0x2499a6['end']));_0x2499a6['detach'](),_0x1dc0d2['fire']('afterExecute',{'writer':_0x1ac712});});}),_0x26352b['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x26352b,'split'),{'priority':'high'}),_0x26352b['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x5f3e41,_0x5202ea,_0x1c68f0)=>{const _0x1e394d=_0x1c68f0['mapper']['markerNameToElements'](_0x5202ea['markerName']);if(_0x1e394d){for(const _0x4776fe of _0x1e394d)_0x4776fe['hasClass']('ck-suggestion-marker-split')&&(_0x1c68f0['mapper']['unbindElementFromMarkerName'](_0x4776fe,_0x5202ea['markerName']),_0x1c68f0['writer']['remove'](_0x4776fe));}},{'priority':'high'}),_0x26352b['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5283bc,_0x4752b5,_0x25c779)=>{_0x25c779['options']['showSuggestionHighlights']&&De(_0x26352b,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x5283bc,_0x4752b5,_0x25c779);},{'priority':'high'});}}class Q extends _0xfd4522{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x501d53=this['editor']['plugins']['get']('TrackChangesEditing');_0x501d53['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x501d53['enableCommand']('findNext'),_0x501d53['enableCommand']('findPrevious'),_0x501d53['enableCommand']('replace'),_0x501d53['enableCommand']('replaceAll');}['handleFindCommand'](_0x5dbb7d,_0x37c49a,_0x495451={}){const _0xda2af4=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x5dbb7d(_0x1d9fd5=>{let _0x4fe2f8=('string'==typeof _0x37c49a?_0xda2af4['findByTextCallback'](_0x37c49a,_0x495451):_0x37c49a)(_0x1d9fd5);Array['isArray'](_0x4fe2f8)&&(_0x4fe2f8={'results':_0x4fe2f8,'searchText':'string'==typeof _0x37c49a?_0x37c49a:''});const _0x1c9aa4=_0x4fe2f8['results']['filter'](_0x529786=>!0x1===this['_isInDeletionRange'](_0x529786,_0x1d9fd5['item']));return{..._0x4fe2f8,'results':_0x1c9aa4};},_0x495451);}['_isInDeletionRange'](_0x10eab3,_0x31c1fa){const _0x1cdeaa=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x31c1fa,_0x10eab3['start']),this['editor']['model']['createPositionAt'](_0x31c1fa,_0x10eab3['end']));for(const _0x4201aa of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x1cdeaa['getIntersection'](_0x4201aa['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 _0xfd4522{['afterInit'](){const _0x29721d=this['editor']['locale'],_0x29f717=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x376996,commandName:_0x51d99}of eo)this['editor']['plugins']['has'](_0x376996)&&(_0x29f717['enableDefaultAttributesIntegration'](_0x51d99),_0x29f717['registerInlineAttribute'](_0x51d99));_0x29f717['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x29721d,'FORMAT_FONT_SIZE')),_0x29f717['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x29721d,'FORMAT_FONT_FAMILY')),_0x29f717['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x29721d,'FORMAT_FONT_COLOR')),_0x29f717['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x29721d,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5c12be=this['editor'],_0x53d32e=_0x5c12be['locale'];_0x5c12be['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e3455=>{const _0x6c3fa7=_0x53d32e['t'];if('formatInline'!=_0x3e3455['type'])return;const {data:_0x2a525d}=_0x3e3455;if(null!=_0x2a525d){if('fontSize'==_0x2a525d['commandName']){const _0x27f61e=_0x2a525d['commandParams'][0x0]['value'];if(_0x27f61e){const _0x4a348d=_0x6c3fa7(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x46db45=>_0x46db45['model']==_0x27f61e)['title'])['toLowerCase']();return{'type':'format','content':o(_0x53d32e,'*Set\x20font\x20size:*\x20%0',_0x4a348d)};}return{'type':'format','content':o(_0x53d32e,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x2a525d['commandName']){const _0xd80733=_0x2a525d['commandParams'][0x0]['value'];return _0xd80733?{'type':'format','content':o(_0x53d32e,'*Set\x20font\x20family:*\x20%0',_0xd80733)}:{'type':'format','content':o(_0x53d32e,'*Reset\x20font\x20family*')};}if('fontColor'==_0x2a525d['commandName']){const _0x4df71e=_0x2a525d['commandParams'][0x0]['value'];if(_0x4df71e){const _0x7c12d7=_0x986404(this['editor']['config']['get']('fontColor.colors'))['find'](_0x38f524=>_0x38f524['model']==_0x4df71e);let _0x51eeca=_0x4df71e,_0x1c8cfe='';return _0x7c12d7&&(_0x51eeca=_0x7c12d7['label'],_0x1c8cfe=_0x6c3fa7(_0x51eeca)['toLowerCase']()),{'type':'format','content':o(_0x53d32e,'*Set\x20font\x20color:*\x20%0',_0x1c8cfe)['trim'](),'color':{'value':_0x4df71e,'title':_0x1c8cfe||_0x51eeca}};}return{'type':'format','content':o(_0x53d32e,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x2a525d['commandName']){const _0x245fa7=_0x2a525d['commandParams'][0x0]['value'];if(_0x245fa7){const _0x3be796=_0x986404(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0xb03c70=>_0xb03c70['model']==_0x245fa7);let _0x325171=_0x245fa7,_0x212615='';return _0x3be796&&(_0x325171=_0x3be796['label'],_0x212615=_0x6c3fa7(_0x325171)['toLowerCase']()),{'type':'format','content':o(_0x53d32e,'*Set\x20font\x20background\x20color:*\x20%0',_0x212615)['trim'](),'color':{'value':_0x245fa7,'title':_0x212615||_0x325171}};}return{'type':'format','content':o(_0x53d32e,'*Reset\x20font\x20background\x20color*')};}}});}}class Y extends _0xfd4522{['afterInit'](){const _0x1ac14c=this['editor'],_0x1607de=_0x1ac14c['plugins']['get']('TrackChangesEditing'),_0x696694=_0x1ac14c['commands']['get']('copyFormat'),_0x4e4a28=_0x1ac14c['commands']['get']('pasteFormat');_0x696694&&_0x4e4a28&&(_0x1607de['enableDefaultAttributesIntegration']('pasteFormat'),_0x1607de['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x23577a=this['editor'],_0x2763b5=_0x23577a['locale'];_0x23577a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd2c3d=>{if('formatBlock'!=_0xd2c3d['type']&&'formatInline'!=_0xd2c3d['type'])return;const {data:_0x5d19ca}=_0xd2c3d;if(_0x5d19ca&&'pasteFormat'===_0x5d19ca['commandName']){const _0x3df29d=[],_0x177b05=_0x5d19ca['commandParams'][0x0];for(const [_0x2a7d4a,_0x3aea77]of Object['entries'](_0x177b05))_0x3df29d['push'](ro(_0x23577a,_0x2a7d4a,_0x3aea77));return _0x3df29d['length']?{'type':'format','content':o(_0x2763b5,'*Set\x20format\x20to:*\x20%0',_0x3df29d['join'](',\x20'))}:{'type':'format','content':o(_0x2763b5,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x3cd184,_0x3efed2,_0x372db4){const _0x1df7c7=_0x3cd184['locale']['t'],_0x20a3f2=_0x3efed2['split'](/(?=[A-Z])/)['join']('\x20'),_0x130eb0=_0x1df7c7(_0x20a3f2['charAt'](0x0)['toUpperCase']()+_0x20a3f2['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x372db4)return _0x130eb0;if('fontColor'===_0x3efed2||'fontBackgroundColor'===_0x3efed2){const _0x4deffc=_0x986404(_0x3cd184['config']['get']('fontColor.colors'))['find'](_0x133352=>_0x133352['model']==_0x372db4);return _0x130eb0+'\x20('+(_0x4deffc?_0x1df7c7(_0x4deffc['label'])['toLowerCase']():_0x372db4)+')';}if('fontSize'===_0x3efed2&&isNaN(parseFloat(_0x372db4))){const _0x3a755e=_0x3cd184['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x3cd184['config']['get']('fontSize.options'))['find'](_0x49bcae=>_0x49bcae['model']==_0x372db4);return _0x130eb0+'\x20('+(_0x3a755e?_0x1df7c7(_0x3a755e['title'])['toLowerCase']():_0x372db4)+')';}return _0x130eb0+'\x20('+_0x372db4+')';}class Z extends _0xfd4522{['_headingOptions'];['afterInit'](){const _0x5f221b=this['editor'];if(!_0x5f221b['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x5f221b['config']['get']('heading.options');const _0x224ca6=_0x5f221b['locale'],_0x2d0425=_0x5f221b['plugins']['get']('TrackChangesEditing');_0x2d0425['enableDefaultAttributesIntegration']('heading');for(const _0x397fe6 of this['_headingOptions'])'paragraph'!=_0x397fe6['model']&&_0x2d0425['descriptionFactory']['registerElementLabel'](_0x397fe6['model'],_0x4a337d=>{const _0x498f1c=this['_getHeadingLevel'](_0x397fe6['model']);return null!==_0x498f1c?_0x1f94cc(_0x4a337d,_0x498f1c):_0x231a54(_0x4a337d,_0x397fe6['title']);});function _0x1f94cc(_0x3b91f5,_0x2ec575){return o(_0x224ca6,'ELEMENT_HEADING',[_0x3b91f5,_0x2ec575]);}function _0x231a54(_0x1e30ec,_0x23044c){return o(_0x224ca6,'ELEMENT_HEADING_CUSTOM',[_0x1e30ec,_0x23044c]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x86ce84=this['editor'],_0x1f771e=_0x86ce84['locale'];function _0x1cdd12(_0x46d842,_0xa680e9){return o(_0x1f771e,'ELEMENT_HEADING_CUSTOM',[_0x46d842,_0xa680e9]);}_0x86ce84['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ec7de=>{if('formatBlock'!=_0x3ec7de['type'])return;const {data:_0x41fff7}=_0x3ec7de;if(_0x41fff7&&'heading'==_0x41fff7['commandName']){const _0x3c2cac=_0x41fff7['commandParams'][0x0]['value'],_0x1d31e2=this['_getHeadingLevel'](_0x3c2cac);if(null!==_0x1d31e2)return{'type':'format','content':o(_0x1f771e,'*Change\x20to:*\x20%0',(_0x2f511b=0x1,_0x22782c=_0x1d31e2,o(_0x1f771e,'ELEMENT_HEADING',[_0x2f511b,_0x22782c])))};const _0x27f6bb=this['_headingOptions']['find'](_0x3e3bfd=>_0x3e3bfd['model']===_0x3c2cac)['title'];return{'type':'format','content':o(_0x1f771e,'*Change\x20to:*\x20%0',_0x1cdd12(0x1,_0x27f6bb))};}var _0x2f511b,_0x22782c;});}['_getHeadingLevel'](_0x1208cb){const _0x5d138a=_0x1208cb['match'](/^heading(\d+)/);if(_0x5d138a)return _0x5d138a[0x1];const _0x5d871f=this['_headingOptions']?.['find'](_0x59560f=>_0x59560f['model']==_0x1208cb);if(_0x5d871f&&_0x5d871f['view']){const _0x1036cb=_0x5d871f['view'],_0x5eb611=(_0x1036cb['name']??_0x1036cb)['match'](/^h(\d+)/);if(_0x5eb611)return _0x5eb611[0x1];}return null;}}class tt extends _0xfd4522{['afterInit'](){const _0x1d8a80=this['editor'];if(!_0x1d8a80['plugins']['has']('HighlightEditing'))return;const _0x404eb7=_0x1d8a80['plugins']['get']('TrackChangesEditing'),_0x298063=_0x1d8a80['locale'];_0x404eb7['enableDefaultAttributesIntegration']('highlight'),_0x404eb7['registerInlineAttribute']('highlight'),_0x404eb7['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x298063,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xf3935b=this['editor'],_0x5c58d3=_0xf3935b['locale'];_0xf3935b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5bcb5f=>{if('formatInline'!=_0x5bcb5f['type'])return;const {data:_0x5c2236}=_0x5bcb5f;if(_0x5c2236&&'highlight'==_0x5c2236['commandName']){const _0x3fdbac=_0x5c58d3['t'],_0x50d1f1=_0x5c2236['commandParams'][0x0]['value'];if(_0x50d1f1){const _0xb9f57a=_0xf3935b['config']['get']('highlight.options')['find'](_0x19a168=>_0x19a168['model']==_0x50d1f1),_0x1969cc=_0x3fdbac(_0xb9f57a['title'])['toLowerCase']();return{'type':'format','content':o(_0x5c58d3,'*Set\x20highlight:*\x20%0',_0x1969cc),'color':{'value':_0xb9f57a['color'],'title':_0xb9f57a['title']}};}return{'type':'format','content':o(_0x5c58d3,'*Remove\x20highlight*',o(_0x5c58d3,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0xfd4522{['afterInit'](){const _0x2211de=this['editor'];if(!_0x2211de['plugins']['has']('HorizontalLineEditing'))return;_0x2211de['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x3833b3=_0x2211de['plugins']['get']('TrackChangesEditing'),_0x430d4e=_0x2211de['locale'];_0x3833b3['descriptionFactory']['registerElementLabel']('horizontalLine',_0x18f769=>o(_0x430d4e,'ELEMENT_HORIZONTAL_LINE',_0x18f769)),_0x2211de['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x4c841d,{writer:_0x1671f2,options:_0x3f089a})=>{if(!_0x3f089a['showSuggestionHighlights'])return null;const _0x1800b8=_0x1671f2['createContainerElement']('div'),_0x3cf486=_0x1671f2['createEmptyElement']('hr');return _0x1671f2['addClass']('ck-horizontal-line',_0x1800b8),_0x1671f2['insert'](_0x1671f2['createPositionAt'](_0x1800b8,0x0),_0x3cf486),_0x1800b8;},'converterPriority':'high'});}}class nt extends _0xfd4522{['afterInit'](){const _0x46f42c=this['editor'];if(!_0x46f42c['plugins']['has']('HtmlEmbed'))return;const _0x5d7a12=_0x46f42c['plugins']['get']('TrackChangesEditing'),_0x122f29=_0x46f42c['locale'];_0x5d7a12['descriptionFactory']['registerElementLabel']('rawHtml',_0x96fafc=>o(_0x122f29,'ELEMENT_HTML_EMBED',_0x96fafc)),_0x5d7a12['enableDefaultAttributesIntegration']('htmlEmbed'),_0x5d7a12['registerBlockAttribute']('value'),_0x5d7a12['descriptionFactory']['registerDescriptionCallback'](_0x4d0e81=>{if('attribute'!=_0x4d0e81['type'])return;const {data:_0x344b7c}=_0x4d0e81;if(_0x344b7c&&'value'==_0x344b7c['key']&&_0x4d0e81['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x2929d9=o(_0x122f29,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x122f29,'*Change\x20%0\x20content*',_0x2929d9)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b2403=this['editor'],_0x2b67d5=_0x1b2403['locale'];_0x1b2403['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e0f8e=>{if('formatBlock'!=_0x1e0f8e['type'])return;const {data:_0x202d01}=_0x1e0f8e;if(_0x202d01&&'htmlEmbed'==_0x202d01['commandName']){const _0x1cb4bd=o(_0x2b67d5,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2b67d5,'*Change\x20%0\x20content*',_0x1cb4bd)};}});}}class et extends _0xfd4522{['afterInit'](){const _0x1ed39d=this['editor'];if(!_0x1ed39d['plugins']['has']('ImageEditing'))return;const _0x511c62=_0x1ed39d['plugins']['get']('TrackChangesEditing'),_0x33d9c3=_0x1ed39d['plugins']['get']('ImageUtils'),_0x2db01b=_0x1ed39d['locale'];_0x511c62['enableCommand']('insertImage'),_0x511c62['descriptionFactory']['registerElementLabel']('imageBlock',_0x5ab132=>o(_0x2db01b,'ELEMENT_IMAGE',_0x5ab132)),_0x511c62['descriptionFactory']['registerElementLabel']('imageInline',_0x1e83c6=>o(_0x2db01b,'ELEMENT_INLINE_IMAGE',_0x1e83c6)),_0x511c62['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x2db01b,'ELEMENT_CAPTION')),_0x1ed39d['plugins']['has']('ImageUploadEditing')&&_0x511c62['enableCommand']('uploadImage'),_0x1ed39d['plugins']['has']('ImageBlockEditing')&&_0x1ed39d['plugins']['has']('ImageInlineEditing')&&(_0x511c62['enableCommand']('imageTypeInline',(_0x5611b9,_0x238220)=>{const _0x499b51=_0x33d9c3['getClosestSelectedImageElement'](_0x1ed39d['model']['document']['selection']);_0x1ed39d['model']['change'](()=>{_0x511c62['markBlockFormat'](_0x499b51,{'commandName':'imageTypeInline','commandParams':[_0x238220]},[],'convertBlockImageToInline');});}),_0x511c62['enableCommand']('imageTypeBlock',(_0x354907,_0x11b1a5)=>{_0x1ed39d['model']['change'](_0x683f26=>{let _0x41e520=_0x33d9c3['getClosestSelectedImageElement'](_0x1ed39d['model']['document']['selection']),_0x105a89=_0x683f26['createRangeOn'](_0x41e520);const _0x32fdca=_0xa59888['fromPosition'](_0x105a89['start'],'toPrevious'),_0x5764ee=_0xa59888['fromPosition'](_0x105a89['end'],'toNext');_0x511c62['forceDefaultExecution'](()=>_0x354907(_0x11b1a5)),_0x41e520=_0x33d9c3['getClosestSelectedImageElement'](_0x1ed39d['model']['document']['selection']),_0x105a89=_0x683f26['createRangeOn'](_0x41e520);const _0x53b8d0=_0x683f26['createRange'](_0x32fdca,_0x5764ee);_0x32fdca['detach'](),_0x5764ee['detach'](),_0x511c62['markBlockFormat'](_0x41e520,{'commandName':'imageTypeInline','commandParams':[_0x11b1a5]},[],'convertInlineImageToBlock'),_0x53b8d0['start']['isBefore'](_0x105a89['start'])&&_0x511c62['markInsertion'](_0x683f26['createRange'](_0x53b8d0['start'],_0x105a89['start']),'convertInlineImageToBlock'),_0x105a89['end']['isBefore'](_0x53b8d0['end'])&&_0x511c62['markInsertion'](_0x683f26['createRange'](_0x105a89['end'],_0x53b8d0['end']),'convertInlineImageToBlock');});}),_0x511c62['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x511c62['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x511c62['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x511c62['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x511c62['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x511c62['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x377519])=>{const _0x2768b1=_0x511c62['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x44c69f=_0x377519['start'],_0x487e1c=_0x377519['end'];const _0xaa4681=_0x1ed39d['model']['schema']['getNearestSelectionRange'](_0x44c69f,'backward'),_0x3bc55a=_0x1ed39d['model']['schema']['getNearestSelectionRange'](_0x487e1c,'forward');_0xaa4681['isCollapsed']&&(_0x44c69f=_0xaa4681['start']),_0x3bc55a['isCollapsed']&&(_0x487e1c=_0x3bc55a['end']),_0x2768b1([_0x1ed39d['model']['createRange'](_0x44c69f,_0x487e1c)]);}),_0x511c62['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x3a422b),_0x511c62['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x3a422b)),_0x1ed39d['plugins']['has']('ImageCaptionEditing')&&(_0x511c62['enableCommand']('toggleImageCaption',(_0x1e872e,_0x4ec55a)=>{const _0x4d4a9e=_0x1ed39d['plugins']['get']('ImageCaptionUtils');let _0x2a2872=_0x33d9c3['getClosestSelectedImageElement'](_0x1ed39d['model']['document']['selection']),_0x2b8cc6=_0x4d4a9e['getCaptionFromImageModelElement'](_0x2a2872);_0x1ed39d['model']['change'](()=>{if(_0x2b8cc6)return void _0x511c62['markDeletion'](_0x1ed39d['model']['createRangeOn'](_0x2b8cc6));const _0xa2208b=_0x33d9c3['isBlockImage'](_0x2a2872);_0x1e872e(_0x4ec55a),_0x2a2872=_0x33d9c3['getClosestSelectedImageElement'](_0x1ed39d['model']['document']['selection']),_0x2b8cc6=_0x4d4a9e['getCaptionFromImageModelElement'](_0x2a2872),_0x511c62['markInsertion'](_0x1ed39d['model']['createRangeOn'](_0x2b8cc6),_0xa2208b?null:'imageCaption');});}),_0x511c62['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x3a422b));const _0xaca0=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x31a827(_0x21a884,_0x3194ff){const _0x15c17a=_0xaca0['findIndex'](({type:_0x566d4b,subType:_0x3b84cf})=>_0x21a884['type']==_0x566d4b&&_0x21a884['subType']==_0x3b84cf),_0x17b824=_0xaca0['findIndex'](({type:_0x4f688d,subType:_0x25b5a2})=>_0x3194ff['type']==_0x4f688d&&_0x3194ff['subType']==_0x25b5a2);if(_0x15c17a<0x0||_0x17b824<0x0)return!0x1;const _0x4404b2=_0x21a884['getFirstRange'](),_0x17c6b9=_0x3194ff['getFirstRange']();if((0x0==_0x15c17a||0x1==_0x15c17a)&&0x2==_0x17b824&&_0x4404b2['isIntersecting'](_0x17c6b9))return!0x0;if(0x2==_0x15c17a&&0x3==_0x17b824){const _0x4cd1bc=_0x511c62['_findSuggestions'](_0x4404b2,'insertion')['filter'](({suggestion:_0x111e89,meta:_0x1f1a5d})=>_0x1f1a5d['isOwn']&&'convertInlineImageToBlock'==_0x111e89['subType']);if(_0x4cd1bc['length']>0x1&&_0x17c6b9['end']['isEqual'](_0x4404b2['start']))return!0x0;if(0x1==_0x4cd1bc['length']&&(_0x4404b2['start']['isEqual'](_0x17c6b9['end'])||_0x4404b2['end']['isEqual'](_0x17c6b9['start'])))return!0x0;}if(0x3==_0x15c17a&&0x3==_0x17b824&&_0x4404b2['start']['isBefore'](_0x17c6b9['start'])){const _0x336f21=_0x4404b2['end']['nodeAfter'],_0x3aa276=_0x17c6b9['start']['nodeBefore'];return _0x33d9c3['isBlockImage'](_0x336f21)&&_0x336f21===_0x3aa276;}return!0x1;}function _0x3a422b(_0x141d26,_0x53f948){return _0x31a827(_0x141d26,_0x53f948)?[_0x141d26,_0x53f948]:_0x31a827(_0x53f948,_0x141d26)?[_0x53f948,_0x141d26]:null;}_0x1ed39d['plugins']['has']('ImageResize')&&(_0x511c62['enableDefaultAttributesIntegration']('resizeImage'),_0x511c62['registerBlockAttribute']('resizedWidth'),_0x511c62['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x2db01b,'FORMAT_IMAGE_SIZE'))),_0x1ed39d['plugins']['has']('ImageTextAlternativeEditing')&&(_0x511c62['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x511c62['registerBlockAttribute']('alt')),_0x1ed39d['plugins']['has']('PictureEditing')&&(_0x511c62['registerBlockAttribute']('sources'),_0x511c62['descriptionFactory']['registerDescriptionCallback'](_0x239916=>{if('attribute'!=_0x239916['type'])return;const {data:_0x1c041e}=_0x239916;return _0x1c041e&&'sources'==_0x1c041e['key']?{'type':'format','content':''}:void 0x0;})),_0x1ed39d['plugins']['has']('ImageSizeAttributes')&&(_0x511c62['registerBlockAttribute']('width'),_0x511c62['registerBlockAttribute']('height'),_0x511c62['descriptionFactory']['registerDescriptionCallback'](_0x3632bb=>{if('attribute'!=_0x3632bb['type'])return;const {data:_0x590056}=_0x3632bb;return!_0x590056||'width'!=_0x590056['key']&&'height'!=_0x590056['key']?void 0x0:{'type':'format','content':''};})),_0x511c62['descriptionFactory']['registerDescriptionCallback'](_0x3ba83b=>{if(!!_0xaca0['find'](({type:_0x46b1fb,subType:_0x3ca100})=>_0x3ba83b['type']==_0x46b1fb&&_0x3ba83b['subType']==_0x3ca100))return _0x3ba83b['previous']?{}:void 0x0;}),_0x511c62['descriptionFactory']['registerDescriptionCallback'](_0x55ef98=>{if('insertion'==_0x55ef98['type']||'deletion'==_0x55ef98['type']){const _0x244ae3=_0x55ef98['getContainedElement']();if(_0x244ae3&&_0x244ae3['is']('element','caption'))return{'type':'insertion'==_0x55ef98['type']?'addObject':'removeObject','element':_0x244ae3,'quantity':0x1};}}),_0x511c62['descriptionFactory']['registerDescriptionCallback'](_0xc9f768=>'formatBlock'==_0xc9f768['type']&&'convertInlineImageToBlock'==_0xc9f768['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0xc9f768['type']&&'convertBlockImageToInline'==_0xc9f768['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x511c62['descriptionFactory']['registerDescriptionCallback'](_0x5f44ef=>{if('attribute'!=_0x5f44ef['type'])return;const {data:_0x5933cc}=_0x5f44ef;if(!_0x5933cc||'alt'!=_0x5933cc['key'])return;const _0x9d3323=_0x5933cc['newValue'];return _0x9d3323?{'type':'format','content':o(_0x2db01b,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x9d3323+'\x22')}:{'type':'format','content':o(_0x2db01b,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x491a89=this['editor'],_0x51f385=_0x491a89['locale'];_0x491a89['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x593621=>{if('formatBlock'!=_0x593621['type']&&'formatInline'!=_0x593621['type'])return;const {data:_0x309cd9}=_0x593621;if(_0x309cd9){if('imageTextAlternative'==_0x309cd9['commandName']){const _0x1291dd=_0x309cd9['commandParams'][0x0]['newValue'];return _0x1291dd?{'type':'format','content':o(_0x51f385,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1291dd+'\x22')}:{'type':'format','content':o(_0x51f385,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x309cd9['commandName']){const _0x3726f7=_0x309cd9['commandParams'][0x0]['width'];return _0x3726f7?{'type':'format','content':o(_0x51f385,'*Set\x20image\x20width:*\x20%0',_0x3726f7)}:{'type':'format','content':o(_0x51f385,'*Reset\x20image\x20width*')};}}});}}class st extends _0xfd4522{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x535335=this['editor']['locale'],_0x593c88=this['editor']['plugins']['get']('TrackChangesEditing');_0x593c88['enableDefaultAttributesIntegration']('replaceImageSource'),_0x593c88['registerBlockAttribute']('src'),_0x593c88['descriptionFactory']['registerDescriptionCallback'](_0x2d2393=>{if('attribute'!=_0x2d2393['type'])return;const {data:_0xb59c69}=_0x2d2393;return _0xb59c69&&'src'==_0xb59c69['key']?_0xb59c69['newValue']&&_0xb59c69['oldValue']?{'type':'format','content':o(_0x535335,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x378a05=this['editor']['plugins']['get']('TrackChangesEditing');_0x378a05['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x378a05['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x378a05['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x378a05['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x543d1b=this['editor'],_0x4a64c9=_0x543d1b['locale'];_0x543d1b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xbf30bf=>{if('formatBlock'!=_0xbf30bf['type']&&'formatInline'!=_0xbf30bf['type'])return;const {data:_0x4e5873}=_0xbf30bf;if(!_0x4e5873||'replaceImageSource'!=_0x4e5873['commandName'])return;return{'type':'format','content':o(_0x4a64c9,'*Format:*\x20replace\x20image\x20URL')};});}}class ot extends _0xfd4522{['afterInit'](){const _0x143650=this['editor'];if(!_0x143650['plugins']['has']('ImageStyleEditing'))return;const _0x2aace6=_0x143650['plugins']['get']('TrackChangesEditing'),_0x12407c=_0x143650['plugins']['get']('ImageUtils'),_0x304fbc={};_0x2aace6['enableCommand']('imageStyle',(_0x433b31,_0x3e729f)=>{const _0x44a423=_0x143650['plugins']['get']('Users')['me'],_0x1e389e=_0x143650['commands']['get']('imageStyle');let _0x1844d7=_0x12407c['getClosestSelectedImageElement'](_0x143650['model']['document']['selection']),_0x1fa2cc=_0x143650['model']['createRangeOn'](_0x1844d7),_0x6447a3=_0x1e389e['value'];if(_0x6447a3==_0x3e729f['value'])return;const _0x3eff7a={'commandName':'imageStyle','commandParams':[_0x3e729f],'formatGroupId':_0x110ca2()};_0x143650['model']['change'](()=>{if(_0x2aace6['getSuggestions']()['filter'](_0xd920f5=>_0xd920f5['isInContent']&&_0x44a423==_0xd920f5['author']&&('formatBlock'==_0xd920f5['type']||'formatInline'==_0xd920f5['type'])&&('imageStylePreApply'==_0xd920f5['subType']||'imageStylePostApply'==_0xd920f5['subType'])&&_0xd920f5['getFirstRange']()['isEqual'](_0x1fa2cc))['forEach'](_0x2a5cbd=>_0x2aace6['discardSuggestion'](_0x2a5cbd['head'])),_0x1844d7=_0x12407c['getClosestSelectedImageElement'](_0x143650['model']['document']['selection']),_0x1fa2cc=_0x143650['model']['createRangeOn'](_0x1844d7),_0x1e389e['refresh'](),_0x143650['commands']['get']('imageTypeInline')['refresh'](),_0x143650['commands']['get']('imageTypeBlock')['refresh'](),_0x6447a3=_0x1e389e['value'],_0x6447a3!=_0x3e729f['value'])return _0x12407c['isInlineImage'](_0x1844d7)&&_0x1e389e['shouldConvertImageType'](_0x3e729f['value'],_0x1844d7)?(_0x433b31({..._0x3e729f,'setImageSizes':!0x1}),_0x1844d7=_0x12407c['getClosestSelectedImageElement'](_0x143650['model']['document']['selection']),void _0x2aace6['markBlockFormat'](_0x1844d7,{..._0x3eff7a,'commandReversedParams':[{'value':_0x6447a3||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x12407c['isBlockImage'](_0x1844d7)?_0x2aace6['markBlockFormat'](_0x1844d7,_0x3eff7a,[],'imageStylePostApply'):_0x2aace6['markInlineFormat'](_0x1fa2cc,_0x3eff7a,'imageStylePostApply'));});});for(const _0x5bc4ed of _0x143650['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x304fbc[_0x5bc4ed['name']]=_0x5bc4ed['title']['toLowerCase']();_0x2aace6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x2aace6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x2aace6['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x2aace6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x46b393])=>{_0x12407c['setImageNaturalSizeAttributes'](_0x46b393['getContainedElement']());}),_0x2aace6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x547708,_0x193bbd)=>{_0x2aace6['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x547708,{'commandName':_0x193bbd['commandName'],'commandParams':_0x193bbd['commandReversedParams']});}),_0x2aace6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x3a8c06,_0xbfac21){if(_0x25b308(_0x3a8c06,_0xbfac21))return[_0x3a8c06,_0xbfac21];if(_0x25b308(_0xbfac21,_0x3a8c06))return[_0xbfac21,_0x3a8c06];return null;});const _0x458cd0=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x25b308(_0x4500dd,_0x3ce3d9){const _0xf96559=_0x458cd0['findIndex'](({type:_0x128e2a,subType:_0x21b658})=>_0x4500dd['type']==_0x128e2a&&_0x4500dd['subType']==_0x21b658),_0x17eda6=_0x458cd0['findIndex'](({type:_0xfe39f1,subType:_0x192e47})=>_0x3ce3d9['type']==_0xfe39f1&&_0x3ce3d9['subType']==_0x192e47);if(_0xf96559<0x0||_0x17eda6<0x0)return!0x1;const _0xfe7afa=_0x4500dd['getFirstRange'](),_0x48384b=_0x3ce3d9['getFirstRange']();if((0x0==_0xf96559||0x1==_0xf96559)&&0x2==_0x17eda6&&_0xfe7afa['isIntersecting'](_0x48384b))return!0x0;if(0x2==_0xf96559&&0x3==_0x17eda6){const _0x54b6bf=_0x2aace6['_findSuggestions'](_0xfe7afa,'insertion')['filter'](({suggestion:_0x2105f6,meta:_0x235c22})=>_0x235c22['isOwn']&&'convertInlineImageToBlock'==_0x2105f6['subType']);if(_0x54b6bf['length']>0x1&&_0x48384b['end']['isEqual'](_0xfe7afa['start']))return!0x0;if(0x1==_0x54b6bf['length']&&(_0xfe7afa['start']['isEqual'](_0x48384b['end'])||_0xfe7afa['end']['isEqual'](_0x48384b['start'])))return!0x0;}if(0x3==_0xf96559&&0x3==_0x17eda6&&_0xfe7afa['start']['isBefore'](_0x48384b['start'])){const _0x19d8c7=_0xfe7afa['end']['nodeAfter'],_0x471613=_0x48384b['start']['nodeBefore'];return _0x12407c['isBlockImage'](_0x19d8c7)&&_0x19d8c7===_0x471613;}return!0x1;}_0x143650['model']['document']['registerPostFixer'](()=>{let _0x3848bd=!0x1;const _0x2c3ad8=Array['from'](_0x143650['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x7b878d,data:_0x12636f}of _0x2c3ad8){const {group:_0x50bcf6,type:_0x362c2b,subType:_0x51ce07,id:_0x33b169}=_0x2aace6['_splitMarkerName'](_0x7b878d);if('suggestion'==_0x50bcf6&&_0x2aace6['hasSuggestion'](_0x33b169)){if('formatBlock'==_0x362c2b&&('imageStylePreApply'==_0x51ce07||'imageStylePostApply'==_0x51ce07)){const _0x26d867=_0x2aace6['getSuggestion'](_0x33b169);if(_0x12636f['newRange']){const _0x28d64b=_0x26d867['getFirstRange']()['getContainedElement']();if(_0x12407c['isBlockImage'](_0x28d64b))continue;_0x2aace6['discardSuggestion'](_0x26d867),_0x3848bd=!0x0;}}if('insertion'==_0x362c2b&&'imageCaption'==_0x51ce07&&!_0x12636f['newRange']){const _0xb3808a=_0x2aace6['getSuggestion'](_0x33b169);_0xb3808a['next']&&_0xb3808a['next']['isInContent']&&(_0x2aace6['discardSuggestion'](_0xb3808a['next']),_0x3848bd=!0x0);}}}return _0x3848bd;}),this['_registerLegacyDescription'](_0x304fbc);}['_registerLegacyDescription'](_0x5aaff0){const _0x537a35=this['editor'],_0x403bf3=_0x537a35['locale'];_0x537a35['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5092cb=>{if('formatBlock'!=_0x5092cb['type']&&'formatInline'!=_0x5092cb['type'])return;const {data:_0x8138c5}=_0x5092cb;if(!_0x8138c5||'imageStyle'!=_0x8138c5['commandName'])return;const _0x4665d2=_0x8138c5['commandParams'][0x0]['value'];return _0xa0bc99('side'===_0x4665d2?o(_0x403bf3,'FORMAT_SIDE_IMAGE'):_0x5aaff0[_0x4665d2]||_0x4665d2);function _0xa0bc99(_0x29ae05){return{'type':'format','content':o(_0x403bf3,'*Format:*\x20%0',_0x29ae05)};}});}}class rt extends _0xfd4522{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x458067){super(_0x458067),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x56ec77=this['editor'],_0x408ee7=_0x56ec77['commands']['get']('importWord'),_0x11b1b8=_0x56ec77['commands']['get']('trackChanges');_0x408ee7&&(_0x408ee7['on']('execute',(_0x5a00f5,[,_0x10469f])=>{this['_trackChangesValueDuringImport']=_0x11b1b8['value'],_0x10469f['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x408ee7,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x408ee7,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x11b1b8['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x56ec77['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0xa1e09f,_0xa0d80c){const {suggestions:_0x10ee7e}=_0xa0d80c,_0x58d67b=this['editor']['commands']['get']('trackChanges'),_0xaaef38=_0x58d67b['value'];this['_trackChangesValueDuringImport']!==_0xaaef38&&(_0x58d67b['execute'](),this['_trackChangesExecuted']=!0x0),_0x10ee7e&&_0x10ee7e['forEach'](({id:_0x2e3197,type:_0x422190,author:_0x2131d4,created_at:_0x57559d})=>{const _0x4baf7e={'id':_0x2e3197,'type':_0x422190,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x2131d4,'createdAt':_0x57559d?new Date(_0x57559d):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x4baf7e);});}}class at extends _0xfd4522{['afterInit'](){const _0x301270=this['editor'],_0x229edd=_0x301270['plugins']['get']('TrackChangesEditing');if(_0x301270['plugins']['has']('IndentEditing')&&(_0x229edd['enableCommand']('indent'),_0x229edd['enableCommand']('outdent')),_0x301270['plugins']['has']('IndentBlock')){for(const _0xa6e619 of['indentBlock','outdentBlock'])_0x229edd['enableDefaultAttributesIntegration'](_0xa6e619);}const _0x137fa4=_0x301270['locale'];_0x229edd['registerBlockAttribute']('blockIndent'),_0x229edd['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x137fa4,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5c5755=this['editor'],_0x44ddd4=_0x5c5755['locale'],_0x5cb3f9=_0x5c5755['plugins']['get']('TrackChangesEditing');_0x5cb3f9['descriptionFactory']['registerDescriptionCallback'](_0xc83977=>{if('formatBlock'!=_0xc83977['type'])return;const {data:_0x28d03b}=_0xc83977;if(!_0x28d03b)return;if('indentBlock'!=_0x28d03b['commandName']&&'outdentBlock'!=_0x28d03b['commandName'])return;const _0x153bb4=_0xc83977['getItems']()[0x0],_0x3df568=_0x5cb3f9['descriptionFactory']['getItemLabel'](_0x153bb4);return'indentBlock'==_0x28d03b['commandName']?{'type':'format','content':o(_0x44ddd4,'*Indent:*\x20%0',_0x3df568)}:'outdentBlock'==_0x28d03b['commandName']?{'type':'format','content':o(_0x44ddd4,'*Outdent:*\x20%0',_0x3df568)}:void 0x0;});}}class ct extends _0xfd4522{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ut extends _0xfd4522{['afterInit'](){const _0x578204=this['editor'];if(!_0x578204['plugins']['has']('LinkEditing'))return;const _0x2396ed=_0x578204['plugins']['get']('TrackChangesEditing'),_0x3e5d42=_0x578204['commands']['get']('link');_0x2396ed['enableDefaultAttributesIntegration']('link'),_0x2396ed['enableDefaultAttributesIntegration']('unlink'),_0x2396ed['registerInlineAttribute']('linkHref');for(const _0x17cc47 of _0x3e5d42['manualDecorators'])_0x2396ed['registerInlineAttribute'](_0x17cc47['id']),_0x2396ed['descriptionFactory']['registerAttributeLabel'](_0x17cc47['id'],'link\x20('+_0x17cc47['label']['toLowerCase']()+')');_0x2396ed['descriptionFactory']['registerDescriptionCallback'](_0x42f7d7=>{if('attribute'!=_0x42f7d7['type'])return;const {data:_0x4c0edc}=_0x42f7d7;if(!_0x4c0edc||'linkHref'!=_0x4c0edc['key'])return;const _0x9bf67=_0x4c0edc['newValue'],_0x18fe9f=_0x578204['locale'];return{'type':'format','content':null==_0x9bf67?o(_0x18fe9f,'*Remove\x20link*'):o(_0x18fe9f,'*Set\x20link:*\x20%0','\x22'+_0x9bf67+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4cd0f5=this['editor'],_0x2821ab=_0x4cd0f5['locale'];_0x4cd0f5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x38257e=>{if('formatInline'!=_0x38257e['type'])return;const {data:_0x4fe1d1}=_0x38257e;if(_0x4fe1d1){if('link'==_0x4fe1d1['commandName']){const _0x59bd50=_0x4fe1d1['commandParams'][0x0];return{'type':'format','content':o(_0x2821ab,'*Set\x20link:*\x20%0','\x22'+_0x59bd50+'\x22')};}return'unlink'==_0x4fe1d1['commandName']?{'type':'format','content':o(_0x2821ab,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0xfd4522{['afterInit'](){const _0x493b89=this['editor'],_0x56b342=_0x493b89['locale'];if(!_0x493b89['plugins']['has']('LegacyListEditing'))return;const _0x5f1912=_0x493b89['plugins']['get']('TrackChangesEditing'),_0x166e0a=_0x493b89['plugins']['has']('LegacyTodoListEditing');function _0x3507fc(_0x40cc50){return()=>{const _0x31a13e=_0x493b89['model']['document']['selection'],_0xc2593f=_0x493b89['commands']['get'](_0x40cc50);if(_0xc2593f['value'])return void _0x493b89['execute']('paragraph',{});const _0x287d92=_0x40cc50['slice'](0x0,-0x4),_0x3f361c=function(_0x5bd1b8,_0x39689e,_0x4025d3){let _0x2f4a43=Array['from'](_0x5bd1b8)['filter'](_0x47bb4c=>function(_0x278a21,_0x232e41){return _0x232e41['checkChild'](_0x278a21['parent'],'listItem')&&!_0x232e41['isObject'](_0x278a21);}(_0x47bb4c,_0x4025d3));_0x2f4a43=_0x2f4a43['filter'](_0x304e32=>!_0x304e32['is']('element','listItem')||_0x304e32['getAttribute']('listType')!=_0x39689e);const _0x47c191=new Set();for(const _0x344c63 of _0x2f4a43)_0x344c63['is']('element','listItem')?_0x47c191['add'](Le(_0x344c63)):_0x47c191['add'](_0x344c63);return Array['from'](_0x47c191);}(_0x31a13e['getSelectedBlocks'](),_0x287d92,_0x493b89['model']['schema']);_0x493b89['model']['change'](()=>{for(const _0x5f004c of _0x3f361c)_0x5f1912['markBlockFormat'](_0x5f004c,{'commandName':_0x40cc50,'commandParams':[{'forceValue':!_0xc2593f['value']}],'formatGroupId':'blockName'},Ee(_0x5f004c));});};}function _0x369b65(_0xfbc6e8){return()=>{const _0xda0fa3=function(_0x3801c6){let _0x2eb2e0=Array['from'](_0x3801c6);const _0x4971d4=_0x2eb2e0['findIndex'](_0x6514eb=>'listItem'!=_0x6514eb['name']);return _0x4971d4>-0x1&&(_0x2eb2e0=_0x2eb2e0['slice'](0x0,_0x4971d4)),_0x2eb2e0;}(_0x493b89['model']['document']['selection']['getSelectedBlocks']()),_0x227ea7=_0x493b89['model']['createRange'](_0x493b89['model']['createPositionAt'](_0xda0fa3[0x0],'before'),_0x493b89['model']['createPositionAt'](_0xda0fa3[_0xda0fa3['length']-0x1],'end'));_0x493b89['model']['change'](()=>{_0x5f1912['markBlockFormat'](_0x227ea7,{'commandName':_0xfbc6e8,'commandParams':[],'formatGroupId':'listIndent'},function(_0x4b4f3d){const _0x1c13c5=new Set();for(const _0x5eb76a of _0x4b4f3d){let _0x5511ed=_0x5eb76a['nextSibling'];for(;_0x5511ed&&_0x5511ed['getAttribute']('listIndent')>_0x5eb76a['getAttribute']('listIndent');)_0x1c13c5['add'](_0x5511ed),_0x5511ed=_0x5511ed['nextSibling'];}return Array['from'](_0x1c13c5);}(_0xda0fa3));});};}_0x5f1912['enableCommand']('numberedList',_0x3507fc('numberedList')),_0x5f1912['enableCommand']('bulletedList',_0x3507fc('bulletedList')),_0x166e0a&&_0x5f1912['enableCommand']('todoList',_0x3507fc('todoList')),_0x5f1912['enableCommand']('indentList',_0x369b65('indentList')),_0x5f1912['enableCommand']('outdentList',_0x369b65('outdentList')),_0x166e0a&&_0x5f1912['enableCommand']('checkTodoList',()=>{const _0x255e07=_0x493b89['commands']['get']('checkTodoList'),_0x10ff9b=Array['from'](_0x255e07['_selectedElements']);_0x10ff9b['filter'](_0x239905=>_0x239905['getAttribute']('todoListChecked')!=_0x255e07['value']),_0x493b89['model']['change'](()=>{for(const _0x3ea1be of _0x10ff9b)_0x5f1912['markBlockFormat'](_0x3ea1be,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x255e07['value']}]});});}),_0x5f1912['descriptionFactory']['registerElementLabel']('listItem',_0xee93ac=>o(_0x56b342,'ELEMENT_LIST_ITEM',_0xee93ac)),_0x5f1912['descriptionFactory']['registerDescriptionCallback'](_0x5a5737=>{if('formatBlock'!=_0x5a5737['type']&&'formatInline'!=_0x5a5737['type'])return;const {data:_0x4df814}=_0x5a5737;if(_0x4df814){if('numberedList'==_0x4df814['commandName']||'bulletedList'==_0x4df814['commandName']||'todoList'==_0x4df814['commandName'])switch(_0x4df814['commandName']['replace']('List','')){case'bulleted':return _0x4c9761(o(_0x56b342,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4c9761(o(_0x56b342,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4c9761(o(_0x56b342,'ELEMENT_TODO_LIST'));}if('indentList'==_0x4df814['commandName'])return{'type':'format','content':o(_0x56b342,'*Indent:*\x20%0',o(_0x56b342,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x4df814['commandName'])return{'type':'format','content':o(_0x56b342,'*Outdent:*\x20%0',o(_0x56b342,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x4df814['commandName'])return _0x4df814['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x56b342,'*Check\x20item*')}:{'type':'format','content':o(_0x56b342,'*Uncheck\x20item*')};}function _0x4c9761(_0x17ffbf){return{'type':'format','content':o(_0x56b342,'*Change\x20to:*\x20%0',_0x17ffbf)};}});}}function Le(_0x20a0a4){const _0x59864a=_0x20a0a4['getAttribute']('listIndent');if(0x0==_0x59864a)return _0x20a0a4;let _0x6340d0=_0x20a0a4;for(;_0x20a0a4['previousSibling']&&_0x20a0a4['previousSibling']['is']('element','listItem');){const _0x393e74=_0x20a0a4['previousSibling']['getAttribute']('listIndent');if(_0x393e74==_0x59864a)_0x6340d0=_0x20a0a4['previousSibling'];else{if(_0x393e74<_0x59864a)break;}_0x20a0a4=_0x20a0a4['previousSibling'];}return _0x6340d0;}function Ee(_0x208a89){const _0xb51103=[];if(_0x208a89['is']('element','listItem')&&_0x208a89['getAttribute']('listIndent')>0x0){let _0x2763db=_0x208a89['nextSibling'];for(;_0x2763db&&'listItem'==_0x2763db['name']&&_0x2763db['getAttribute']('listIndent')==_0x208a89['getAttribute']('listIndent');)_0xb51103['push'](_0x2763db),_0x2763db=_0x2763db['nextSibling'];}return _0xb51103;}class ht extends _0xfd4522{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x3dd649=this['editor']['config']['get']('list.properties'),_0x49fd29=this['editor']['plugins']['get']('TrackChangesEditing');_0x3dd649['styles']&&_0x49fd29['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x3dd649['reversed']&&_0x49fd29['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x3dd649['startIndex']&&_0x49fd29['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x49fd29['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x1cb434,_0x3d5bf8={}){const _0x336e6e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1dd91a=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x336e6e['markMultiRangeBlockFormat'](_0x1dd91a,{'commandName':'listStyle','commandParams':[{'type':_0x3d5bf8['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x325117,_0x7fac0c={}){const _0x23b5cf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x23d3b0=this['_getSuggestionBlocks'](_0x10dbca=>_0x10dbca['is']('element','listItem')&&'numbered'===_0x10dbca['getAttribute']('listType'));if(_0x23d3b0['length']<0x1)return;const _0x415859=_0x23d3b0['map'](_0x479bf4=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x479bf4,'before'),this['editor']['model']['createPositionAt'](_0x479bf4,0x0)));this['editor']['model']['change'](()=>{_0x23b5cf['markMultiRangeBlockFormat'](_0x415859,{'commandName':'listReversed','commandParams':[{'reversed':_0x7fac0c['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x796fe,_0x578a22={}){const _0x2523fe=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2c10fb=this['_getSuggestionBlocks'](_0x27e609=>_0x27e609['is']('element','listItem')&&'numbered'===_0x27e609['getAttribute']('listType'));if(_0x2c10fb['length']<0x1)return;const _0x2f0e7e=_0x2c10fb['map'](_0x53eefb=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x53eefb,'before'),this['editor']['model']['createPositionAt'](_0x53eefb,0x0)));this['editor']['model']['change'](()=>{_0x2523fe['markMultiRangeBlockFormat'](_0x2f0e7e,{'commandName':'listStart','commandParams':[{'startIndex':_0x578a22['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x598cf5){if('formatBlock'!=_0x598cf5['type']&&'formatInline'!=_0x598cf5['type'])return;const _0x2522dd=this['editor']['locale'],{data:_0x1e3cde}=_0x598cf5;if(!_0x1e3cde)return;let _0x6b3806,_0x80458c;switch(_0x1e3cde['commandName']){case'listStyle':_0x6b3806='*Change\x20to:*\x20%0',_0x80458c={'type':'format','content':o(_0x2522dd,_0x6b3806,o(_0x2522dd,this['_getTranslationKeyForListStyle'](_0x1e3cde['commandParams'][0x0]['type'])))};break;case'listReversed':_0x6b3806=_0x1e3cde['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x80458c={'type':'format','content':o(_0x2522dd,_0x6b3806)};break;case'listStart':_0x6b3806='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x80458c={'type':'format','content':o(_0x2522dd,_0x6b3806,_0x1e3cde['commandParams'][0x0]['startIndex'])};}return _0x80458c;}['_getSuggestionBlocksForListStyle'](){const _0x403319=this['editor']['plugins']['get']('LegacyListUtils');let _0x400b62=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x400b62[0x0]?.['is']('element','listItem')&&_0x400b62['unshift'](..._0x403319['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x400b62[_0x400b62['length']-0x1]?.['is']('element','listItem')&&_0x400b62['push'](..._0x403319['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x400b62=[...new Set(_0x400b62)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x400b62=_0x400b62['filter'](_0x39834f=>_0x39834f['is']('element','listItem'))),_0x400b62;}['_getSuggestionBlocks'](_0xc3cd1){const _0x438eb5=this['editor']['plugins']['get']('LegacyListUtils');let _0x5c2b89=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0xc3cd1)['map'](_0x46a1a3=>{const _0x12b5c3=this['editor']['model']['createPositionAt'](_0x46a1a3,0x0);return[..._0x438eb5['getSiblingNodes'](_0x12b5c3,'backward'),..._0x438eb5['getSiblingNodes'](_0x12b5c3,'forward')];})['flat']();return _0x5c2b89=[...new Set(_0x5c2b89)],_0x5c2b89;}['_getTranslationKeyForListStyle'](_0x53fb3e){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x53fb3e)||'default')['toUpperCase']()+'_LIST_'+_0x53fb3e['toUpperCase']()['replace'](/-/g,'_');}}class gt extends _0xfd4522{['afterInit'](){const _0x5d87d0=this['editor'];if(!_0x5d87d0['plugins']['has']('MediaEmbedEditing'))return;const _0x23c36e=_0x5d87d0['plugins']['get']('TrackChangesEditing'),_0x387bf4=_0x5d87d0['locale'];_0x23c36e['enableCommand']('mediaEmbed'),_0x23c36e['descriptionFactory']['registerElementLabel']('media',_0x4bba14=>o(_0x387bf4,'ELEMENT_MEDIA',_0x4bba14)),_0x5d87d0['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x372a5f,{writer:_0x319a51,options:_0x58e4ba})=>{if(_0x58e4ba['showSuggestionHighlights'])return _0x319a51['createEmptyElement']('div');},'converterPriority':'high'}),_0x5d87d0['data']['downcastDispatcher']['on']('attribute:url:media',(_0x2db39c,_0x8b3017,_0x27e35c)=>{_0x27e35c['options']['showSuggestionHighlights']&&_0x2db39c['stop']();},{'priority':'high'});}}class lt extends _0xfd4522{['afterInit'](){const _0x4242bb=this['editor'];_0x4242bb['plugins']['has']('MentionEditing')&&_0x4242bb['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0xfd4522{['afterInit'](){const _0x35be38=this['editor'];if(!_0x35be38['plugins']['has']('MergeFieldsEditing'))return;const _0x219e4d=_0x35be38['plugins']['get']('TrackChangesEditing'),_0x3a17bb=_0x35be38['locale'];_0x219e4d['enableCommand']('insertMergeField'),_0x219e4d['enableCommand']('insertMergeFieldBlock'),_0x219e4d['enableCommand']('insertMergeFieldImage'),_0x219e4d['descriptionFactory']['registerElementLabel']('mergeField',_0x735578=>o(_0x3a17bb,'ELEMENT_MERGE_FIELD',_0x735578)),_0x219e4d['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x3d1b21=>o(_0x3a17bb,'ELEMENT_MERGE_FIELD',_0x3d1b21)),_0x219e4d['descriptionFactory']['registerDescriptionCallback'](_0x3d862c=>{if('insertion'!=_0x3d862c['type']&&'deletion'!=_0x3d862c['type'])return;const _0x1e97e0=_0x3d862c['getContainedElement']();if(null==_0x1e97e0)return;const _0x521c4a=_0x35be38['plugins']['get']('MergeFieldsEditing');let _0x5db1cb;switch(_0x521c4a['getMergeFieldType'](_0x1e97e0)){case null:return;case'image':{const _0x5bf504=_0x521c4a['unwrapAffixes'](_0x1e97e0['getAttribute']('src'));_0x5db1cb=_0x521c4a['getLabel'](_0x5bf504)||_0x5bf504;break;}default:{const _0x3401fc=_0x1e97e0['getAttribute']('id');_0x5db1cb=_0x521c4a['getLabel'](_0x3401fc)||_0x3401fc;break;}}return'insertion'==_0x3d862c['type']?{'type':'insertion','content':o(_0x3a17bb,'*Insert:*\x20%0','\x22'+_0x5db1cb+'\x22\x20'+o(_0x3a17bb,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x3a17bb,'*Remove:*\x20%0','\x22'+_0x5db1cb+'\x22\x20'+o(_0x3a17bb,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0xfd4522{['afterInit'](){const _0x3061d4=this['editor'],_0x2aa4ca=_0x3061d4['plugins']['get']('TrackChangesEditing');_0x3061d4['plugins']['has']('MultiLevelList')&&(_0x2aa4ca['enableDefaultAttributesIntegration']('multiLevelList'),_0x2aa4ca['registerBlockAttribute']('listMarkerStyle'),_0x2aa4ca['descriptionFactory']['registerDescriptionCallback'](_0x3466e6=>this['handleDescriptions'](_0x3466e6)));}['handleDescriptions'](_0x5dd804){const _0x17a401=this['editor']['locale'],{data:_0x3cf270}=_0x5dd804,_0x2a22d8={'type':'format','content':''};if(_0x3cf270&&'listMarkerStyle'==_0x3cf270['key']){if(!_0x3cf270['oldValue'])return{'type':'format','content':o(_0x17a401,'*Set\x20format:*\x20%0',o(_0x17a401,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3cf270['newValue']+')'};if(!_0x3cf270['newValue']){let _0x553beb=_0x5dd804['head'];for(;_0x553beb;){if(_0x553beb['data']&&'listType'==_0x553beb['data']['key']&&_0x553beb['data']['newValue'])return _0x2a22d8;_0x553beb=_0x553beb['next'];}return{'type':'format','content':o(_0x17a401,'*Remove\x20format:*\x20%0',o(_0x17a401,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3cf270['oldValue']+')'};}}}}class pt extends _0xfd4522{['afterInit'](){const _0x26d9da=this['editor'];if(!_0x26d9da['plugins']['has']('PageBreakEditing'))return;_0x26d9da['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x4c6132=_0x26d9da['plugins']['get']('TrackChangesEditing'),_0x39a67b=_0x26d9da['locale'];_0x4c6132['descriptionFactory']['registerElementLabel']('pageBreak',_0x58e448=>o(_0x39a67b,'ELEMENT_PAGE_BREAK',_0x58e448));}}class kt extends _0xfd4522{['afterInit'](){const _0x15b996=this['editor'];if(!_0x15b996['plugins']['has']('Paragraph'))return;const _0x4c07fb=_0x15b996['locale'],_0x5c3e3e=_0x15b996['plugins']['get']('TrackChangesEditing');_0x5c3e3e['descriptionFactory']['registerElementLabel']('paragraph',_0x5758c8=>o(_0x4c07fb,'ELEMENT_PARAGRAPH',_0x5758c8)),_0x5c3e3e['enableDefaultAttributesIntegration']('paragraph'),_0x5c3e3e['enableCommand']('insertParagraph'),_0x15b996['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x15b996),{'priority':'highest'}),_0x15b996['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5ad657,_0x471db4,_0x2481ed)=>{_0x2481ed['options']['showSuggestionHighlights']&&nr(_0x15b996,{'showActiveMarker':!0x1})(_0x5ad657,_0x471db4,_0x2481ed);},{'priority':'highest'});const _0x588399=_0x5c3e3e['descriptionFactory'];_0x588399['registerDescriptionCallback'](_0x44823f=>{if('insertion'!==_0x44823f['type'])return;const {start:_0x1666ff,end:_0x2cba15}=_0x44823f['getFirstRange']();if(!_0x1666ff['isTouching'](_0x2cba15)||!_0x1666ff['nodeAfter'])return;const _0x2c5de9=_0x15b996['model']['schema'],_0x48ddcd=_0x1666ff['nodeAfter'];return _0x2c5de9['isBlock'](_0x48ddcd)&&!_0x2c5de9['isLimit'](_0x48ddcd)&&_0x2c5de9['checkChild'](_0x48ddcd,'$text')?{'type':'insertion','content':o(_0x4c07fb,'*Insert:*\x20%0',_0x588399['getItemLabel'](_0x48ddcd,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x20081b=this['editor'],_0x394fad=_0x20081b['locale'];_0x20081b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e7d50=>{if('formatBlock'!=_0x1e7d50['type'])return;const {data:_0x51664f}=_0x1e7d50;return _0x51664f&&'paragraph'==_0x51664f['commandName']?{'type':'format','content':o(_0x394fad,'*Change\x20to:*\x20%0',o(_0x394fad,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x41a788,{showActiveMarker:_0x239be4=!0x0}={}){return(_0x493c1e,_0x1c9e37,_0x235c41)=>{const _0x3203fc=_0x41a788['plugins']['get']('TrackChangesEditing'),_0x2bc607=_0x1c9e37['markerRange']['start'],_0x264412=_0x1c9e37['markerRange']['end'],_0x5b7943=_0x41a788['model']['schema'];if(!_0x2bc607['isTouching'](_0x264412)||!_0x2bc607['nodeAfter'])return;const _0x45215e=_0x2bc607['nodeAfter'];if(_0x5b7943['isBlock'](_0x45215e)&&!_0x5b7943['isLimit'](_0x45215e)&&_0x5b7943['checkChild'](_0x45215e,'$text')){if(!_0x235c41['consumable']['consume'](_0x1c9e37['markerRange'],_0x493c1e['name']))return;const {id:_0x5ce44a,authorId:_0x4137b2}=_0x3203fc['_splitMarkerName'](_0x1c9e37['markerName']),_0x4297f1=_0x235c41['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x5ce44a,'data-author-id':_0x4137b2}),_0x1c54b0=_0x235c41['mapper']['toViewPosition'](_0x264412);_0x239be4&&_0x3203fc['activeMarkers']['includes'](_0x1c9e37['markerName'])&&_0x235c41['writer']['addClass']('ck-suggestion-marker--active',_0x4297f1),_0x235c41['writer']['insert'](_0x1c54b0,_0x4297f1),_0x235c41['mapper']['bindElementToMarker'](_0x4297f1,_0x1c9e37['markerName']);}};}class wt extends _0xfd4522{['afterInit'](){const _0x2e8e3e=this['editor'];_0x2e8e3e['commands']['get']('replaceSource')&&_0x2e8e3e['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class bt extends _0xfd4522{['afterInit'](){const _0x3b6192=this['editor'];if(!_0x3b6192['plugins']['has']('RemoveFormatEditing'))return;_0x3b6192['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x234848=this['editor'];_0x234848['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5dc75c=>{if('formatBlock'!=_0x5dc75c['type']&&'formatInline'!=_0x5dc75c['type'])return;const {data:_0x328145}=_0x5dc75c;return _0x328145&&'removeFormat'==_0x328145['commandName']?{'type':'format','content':o(_0x234848['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0xfd4522{['afterInit'](){const _0x1fc420=this['editor'];if(!_0x1fc420['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x2460be=_0x1fc420['plugins']['get']('TrackChangesEditing');_0x2460be['enableCommand']('goToPreviousRestrictedEditingException'),_0x2460be['enableCommand']('goToNextRestrictedEditingException');const _0x69ee74=_0x1fc420['plugins']['get']('RestrictedEditingModeEditing');_0x69ee74['enableCommand']('trackChanges'),_0x69ee74['enableCommand']('acceptSuggestion'),_0x69ee74['enableCommand']('discardSuggestion'),_0x69ee74['enableCommand']('acceptAllSuggestions'),_0x69ee74['enableCommand']('discardAllSuggestions'),_0x69ee74['enableCommand']('acceptSelectedSuggestions'),_0x69ee74['enableCommand']('discardSelectedSuggestions');}}class jt extends _0xfd4522{['afterInit'](){const _0x46b8b7=this['editor'];if(!_0x46b8b7['plugins']['has']('ShiftEnter'))return;const _0x54b851=_0x46b8b7['plugins']['get']('TrackChangesEditing');_0x54b851['enableCommand']('shiftEnter'),_0x46b8b7['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x46b8b7),{'priority':'high'}),_0x46b8b7['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x46b8b7),{'priority':'high'}),_0x46b8b7['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x54707e,_0x56cfbb,_0x298180)=>{_0x298180['options']['showSuggestionHighlights']&&je(_0x46b8b7,{'showActiveMarker':!0x1})(_0x54707e,_0x56cfbb,_0x298180);}),_0x54b851['descriptionFactory']['registerElementLabel']('softBreak',_0x58a064=>o(_0x46b8b7['locale'],'ELEMENT_LINE_BREAK',_0x58a064));}}function je(_0x391295,{showActiveMarker:_0x181037=!0x0}={}){return(_0x1ca27b,_0x5524b2,_0x441ea6)=>{const _0x38b8cc=_0x391295['plugins']['get']('TrackChangesEditing');if(!_0x441ea6['consumable']['test'](_0x5524b2['markerRange'],_0x1ca27b['name']))return;const _0x31b4f6=_0x391295['model'];for(const _0x465903 of _0x5524b2['markerRange']['getItems']()){if(!_0x465903['is']('element','softBreak'))continue;const _0x536504='deletion'==_0x5524b2['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x2deafd,authorId:_0x4525fa}=_0x38b8cc['_splitMarkerName'](_0x5524b2['markerName']),_0x4e90f7=_0x441ea6['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x536504,'data-suggestion':_0x2deafd,'data-author-id':_0x4525fa}),_0x8e239c=_0x441ea6['mapper']['toViewPosition'](_0x31b4f6['createPositionBefore'](_0x465903));_0x181037&&_0x38b8cc['activeMarkers']['includes'](_0x5524b2['markerName'])&&_0x441ea6['writer']['addClass']('ck-suggestion-marker--active',_0x4e90f7),_0x441ea6['writer']['insert'](_0x8e239c,_0x4e90f7),_0x441ea6['mapper']['bindElementToMarker'](_0x4e90f7,_0x5524b2['markerName']);}};}class St extends _0xfd4522{['afterInit'](){const _0x510055=this['editor'],_0x1f54a4=_0x510055['model'],_0x11f0b5=_0x510055['locale'];if(!_0x510055['plugins']['has']('StandardEditingModeEditing'))return;const _0x107fe6=_0x510055['plugins']['get']('TrackChangesEditing'),_0x340952='restrictedEditingException',_0x4fbf1f=_0x510055['commands']['get'](_0x340952);_0x107fe6['enableCommand'](_0x340952,(_0x4ed4b3,_0x5a91f0={})=>{const _0x11ef21=_0x1f54a4['document']['selection'];if(_0x11ef21['isCollapsed'])return void _0x4ed4b3(_0x5a91f0);const _0x114705=void 0x0!==_0x5a91f0['forceValue']?_0x5a91f0['forceValue']:!_0x4fbf1f['value'];_0x1f54a4['change'](()=>{const _0x500210=Array['from'](_0x11ef21['getRanges']());for(const _0x2cc65d of _0x500210){const _0x558ad3=_0x114705?[_0x2cc65d]:io(_0x340952,_0x2cc65d,_0x1f54a4);for(const _0x3513a2 of _0x558ad3)_0x107fe6['markInlineFormat'](_0x3513a2,{'commandName':_0x340952,'commandParams':[{'forceValue':_0x114705}]});}});}),_0x107fe6['descriptionFactory']['registerDescriptionCallback'](_0xe7b925=>{if('formatBlock'!=_0xe7b925['type']&&'formatInline'!=_0xe7b925['type'])return;const {data:_0x39dd4c}=_0xe7b925;return _0x39dd4c&&_0x39dd4c['commandName']==_0x340952?_0x39dd4c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x11f0b5,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x11f0b5,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0xfd4522{['afterInit'](){const _0x10cce7=this['editor'];if(!_0x10cce7['plugins']['has']('Style')||!_0x10cce7['plugins']['has']('DataSchema'))return;const _0x25d2cc=_0x10cce7['plugins']['get']('TrackChangesEditing'),_0x24f0eb=_0x10cce7['locale'],_0x4d47c5=_0x10cce7['config']['get']('style')||{},_0x5c70d3=_0x10cce7['plugins']['get']('GeneralHtmlSupport'),_0x227773=_0x10cce7['plugins']['get']('StyleUtils')['normalizeConfig'](_0x10cce7['plugins']['get']('DataSchema'),_0x4d47c5['definitions']);_0x25d2cc['enableDefaultAttributesIntegration']('style');const _0x125320=new Set();for(const _0x226177 of _0x227773['block']){const _0x17d348=_0x5c70d3['getGhsAttributeNameForElement'](_0x226177['element']);_0x125320['add'](_0x17d348);}const _0x2bcde0=new Set();for(const _0x57da05 of _0x227773['inline']){const _0x487eab=_0x5c70d3['getGhsAttributeNameForElement'](_0x57da05['element']);_0x2bcde0['add'](_0x487eab);for(const _0x545fc1 of _0x57da05['ghsAttributes'])_0x2bcde0['add'](_0x545fc1);}for(const _0x75e48c of _0x125320)_0x25d2cc['registerBlockAttribute'](_0x75e48c),_0x25d2cc['descriptionFactory']['registerAttributeLabel'](_0x75e48c,o(_0x24f0eb,'FORMAT_STYLE'));for(const _0x16c0fb of _0x2bcde0)_0x25d2cc['registerInlineAttribute'](_0x16c0fb),_0x25d2cc['descriptionFactory']['registerAttributeLabel'](_0x16c0fb,o(_0x24f0eb,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x35fcad=this['editor'],_0x39325b=_0x35fcad['locale'];_0x35fcad['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5156ed=>{if('formatBlock'!=_0x5156ed['type']&&'formatInline'!=_0x5156ed['type'])return;const {data:_0x13cab6}=_0x5156ed;return _0x13cab6&&'style'===_0x13cab6['commandName']?_0x13cab6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x39325b,'*Set\x20format:*\x20%0',_0x13cab6['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x39325b,'*Remove\x20format:*\x20%0',_0x13cab6['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class At extends _0xfd4522{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x580611){super(_0x580611),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x15de90=this['editor'],_0x14dbdb=_0x15de90['model']['document']['selection'];if(!_0x15de90['plugins']['has']('TableEditing'))return;const _0x54213a=_0x15de90['locale'],_0x5a7f8c=_0x15de90['plugins']['get']('TrackChangesEditing'),_0x1cd652=_0x15de90['plugins']['get']('TableUtils');_0x5a7f8c['descriptionFactory']['registerElementLabel']('table',_0xb404a0=>o(_0x54213a,'ELEMENT_TABLE',_0xb404a0)),this['_setupColumnsRowsFixing'](),_0x5a7f8c['enableCommand']('insertTable'),_0x5a7f8c['enableCommand']('selectTableRow'),_0x5a7f8c['enableCommand']('selectTableColumn');for(const _0x44bf70 of['insertTableRowAbove','insertTableRowBelow']){const _0x3627b9=_0x15de90['commands']['get'](_0x44bf70);_0x5a7f8c['enableCommand'](_0x44bf70,_0x2fc8fc=>{_0x15de90['model']['change'](_0x36709b=>{_0x2fc8fc();const _0x299f4a='above'===_0x3627b9['order'],_0x1e7e1c=_0x1cd652['getSelectionAffectedTableCells'](_0x14dbdb),_0x131cfa=_0x1cd652['getRowIndexes'](_0x1e7e1c),_0x599adb=_0x299f4a?_0x131cfa['first']-0x1:_0x131cfa['last']+0x1,_0x304ee4=_0x1e7e1c[0x0]['findAncestor']('table'),_0x46f737=_0x1cd652['createTableWalker'](_0x304ee4,{'startRow':_0x599adb,'endRow':_0x599adb}),_0x5a99ed=Array['from'](_0x46f737)['map'](_0x1ecfd4=>_0x36709b['createRangeOn'](_0x1ecfd4['cell']));_0x5a7f8c['markMultiRangeInsertion'](_0x5a99ed,'tableRow');});});}for(const _0x50a3e6 of['insertTableColumnLeft','insertTableColumnRight']){const _0x5182ac=_0x15de90['commands']['get'](_0x50a3e6);_0x5a7f8c['enableCommand'](_0x50a3e6,_0x1903b9=>{_0x15de90['model']['change'](_0x5824a4=>{_0x1903b9();const _0x5e368a='left'===_0x5182ac['order'],_0x54f798=_0x1cd652['getSelectionAffectedTableCells'](_0x14dbdb),_0x1221bf=_0x1cd652['getColumnIndexes'](_0x54f798),_0x35edbb=_0x5e368a?_0x1221bf['first']-0x1:_0x1221bf['last']+0x1,_0x49cf0f=_0x54f798[0x0]['findAncestor']('table'),_0x168958=_0x1cd652['createTableWalker'](_0x49cf0f,{'startRow':0x0,'column':_0x35edbb,'includeAllSlots':!0x1}),_0x5e3fe0=Array['from'](_0x168958)['map'](_0x2982d3=>_0x5824a4['createRangeOn'](_0x2982d3['cell']));_0x5a7f8c['markMultiRangeInsertion'](_0x5e3fe0,'tableColumn');});});}for(const _0x4a59f5 of['removeTableRow','removeTableColumn']){const _0x2be7d1=_0x4a59f5['substr'](0xb),_0x5765f9=_0x2be7d1['toLowerCase'](),_0x22c34b=_0x5765f9['substr'](0x0,0x3)+'span',_0x15d40b='table'+_0x2be7d1,_0xf8e69='min'+_0x2be7d1,_0x59d82a='max'+_0x2be7d1;_0x5a7f8c['enableCommand'](_0x4a59f5,()=>{_0x15de90['model']['change'](_0x69d832=>{const _0x2f7b74=_0x1cd652['getSelectionAffectedTableCells'](_0x14dbdb),_0x2d32fc=_0x2f7b74[0x0]['findAncestor']('table');let _0x55ac7c;if('removeTableRow'==_0x4a59f5){const _0x41c0e8=_0x1cd652['getRowIndexes'](_0x2f7b74);_0x55ac7c={'startRow':_0x41c0e8['first'],'endRow':_0x41c0e8['last'],'includeAllSlots':!0x0};}else{const _0x540bbc=_0x1cd652['getColumnIndexes'](_0x2f7b74);_0x55ac7c={'startColumn':_0x540bbc['first'],'endColumn':_0x540bbc['last'],'includeAllSlots':!0x0};}const _0x495a5e=_0x1cd652['createTableWalker'](_0x2d32fc,_0x55ac7c),_0x5a593d=Array['from'](_0x495a5e)['map'](({cell:_0xb9daaa})=>_0xb9daaa),_0x122ef8=Ne(_0x5a593d['filter'](_0x59eb47=>_0x59eb47['hasAttribute'](_0x22c34b))),_0x310b3b=Ne(_0x5a593d['filter'](_0x4d8937=>!_0x4d8937['hasAttribute'](_0x22c34b)))['map'](_0x242134=>_0x69d832['createRangeOn'](_0x242134)),_0x34845b=_0x5a7f8c['markMultiRangeDeletion'](_0x310b3b,_0x15d40b);if(_0x34845b&&('tableRow'==_0x34845b['subType']||'tableColumn'==_0x34845b['subType'])){const _0x42d2ab=this['_getSuggestionCoords'](_0x34845b);for(const _0x432754 of _0x122ef8){const _0x9e5ffa=_0x69d832['createRangeOn'](_0x432754),_0x4970cf=_0x1cd652['getCellLocation'](_0x432754),_0x3b6a90=_0x432754['getAttribute'](_0x22c34b)-0x1,_0x22fa5d=_0x42d2ab[_0xf8e69],_0x436037=_0x42d2ab[_0x59d82a];_0x22fa5d<=_0x4970cf[_0x5765f9]&&_0x4970cf[_0x5765f9]+_0x3b6a90<=_0x436037&&_0x34845b['addRange'](_0x9e5ffa);}}});});}function _0x5e38be(_0x2bd501){const _0x54e855=Array['from'](_0x14dbdb['getRanges']())['map'](_0x253bd7=>_0x217d71['fromRange'](_0x253bd7));_0x15de90['model']['change'](_0x8c7e11=>{const _0x5d44d7=_0x8c7e11['batch'];_0x2bd501=_0x2bd501['filter'](_0x51289a=>'$graveyard'!=_0x51289a['root']['rootName']),_0x8c7e11['setSelection'](_0x2bd501),_0x15de90['commands']['get']('removeTableRow')['refresh'](),_0x15de90['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x15de90['model']['enqueueChange'](()=>{_0x15de90['model']['enqueueChange'](_0x5d44d7,_0x56d1b1=>{const _0x51005d=_0x54e855['filter'](_0x55c1fa=>'$graveyard'!=_0x55c1fa['root']['rootName']);_0x51005d['length']>0x0&&_0x56d1b1['setSelection'](_0x51005d);for(const _0x4a50db of _0x54e855)_0x4a50db['detach']();});});});}function _0x128f0f(_0x519120){_0x15de90['model']['change'](_0x50da0f=>{const _0x50fe25=Array['from'](_0x14dbdb['getRanges']())['map'](_0x44dfd0=>_0x217d71['fromRange'](_0x44dfd0)),_0x41fd05=[];for(const _0x3b56fe of _0x519120)for(const _0x491eb0 of _0x3b56fe['getItems']({'shallow':!0x0}))_0x41fd05['push'](_0x491eb0);for(const _0x49e775 of _0x41fd05)'$graveyard'!=_0x49e775['root']['rootName']&&(_0x50da0f['setSelection'](_0x50da0f['createPositionAt'](_0x49e775,0x0)),_0x15de90['commands']['get']('removeTableColumn')['refresh'](),_0x15de90['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x1c2238=_0x50fe25['filter'](_0x5c1c22=>'$graveyard'!=_0x5c1c22['root']['rootName']);_0x1c2238['length']>0x0&&_0x50da0f['setSelection'](_0x1c2238);for(const _0x2a2223 of _0x50fe25)_0x2a2223['detach']();});}function _0x3de3a7(_0x1a2610,_0x453a54){return _0x453a54['every'](_0xa4a9b6=>_0x1a2610['some'](_0x21767d=>_0x21767d['end']['isEqual'](_0xa4a9b6['start'])||_0xa4a9b6['end']['isEqual'](_0x21767d['start'])));}function _0x12378f(_0x562e9e,_0x220320){return!_0x562e9e['some'](_0xfb0bde=>_0x220320['some'](_0x1f25ab=>_0xfb0bde['isIntersecting'](_0x1f25ab)))&&_0x562e9e['some'](_0x498fd7=>_0x220320['some'](_0x52cce0=>_0x498fd7['end']['isTouching'](_0x52cce0['start'])));}_0x15de90['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x399785,_0x52c81a,_0x47ea63)=>{if(!_0x47ea63['options']['showSuggestionHighlights'])return;const _0x1596ed=_0x52c81a['item'];if(!_0x1596ed||!_0x1596ed['is']('element','tableCell'))return;const _0x3e560f=_0x47ea63['mapper']['toViewElement'](_0x1596ed);if(_0x3e560f){const {id:_0x245e59,authorId:_0xa5c063}=_0x5a7f8c['_splitMarkerName'](_0x52c81a['markerName']);_0x352865(_0x3e560f,_0x47ea63['writer'],(_0x4ccae9,_0x48bdcd,_0x36aa9c)=>{_0x36aa9c['addClass'](_0xd850df(_0x48bdcd['classes']),_0x4ccae9),_0x36aa9c['setAttribute']('data-suggestion-id',_0x245e59,_0x4ccae9),_0x36aa9c['setAttribute']('data-author-id',_0xa5c063,_0x4ccae9);},(_0x66e40b,_0x392b64,_0x32af8f)=>{_0x32af8f['removeClass'](_0xd850df(_0x392b64['classes']),_0x66e40b),_0x32af8f['removeAttribute']('data-suggestion-id',_0x66e40b),_0x32af8f['removeAttribute']('data-author-id',_0x66e40b);});}},{'priority':'highest'}),_0x5a7f8c['descriptionFactory']['registerDescriptionCallback'](_0x2fce72=>{if('insertion'!=_0x2fce72['type']&&'deletion'!=_0x2fce72['type'])return;const _0x14b817=_0x2fce72['getContainedElement']();if(null!=_0x14b817&&_0x14b817['is']('element','table')){if('insertion'==_0x2fce72['type']){const _0x259d5e=_0x2fce72['getItems']()['filter'](_0x2514c3=>_0x2514c3['is']('$textProxy'))['map'](_0x18a8d2=>_0x18a8d2['data']);if(_0x259d5e['length'])return{'type':'insertion','content':o(_0x54213a,'*Insert:*\x20%0',o(_0x54213a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x259d5e['join']('\x20')+'\x22'))};}if('deletion'==_0x2fce72['type']){const _0x28839e=_0x2fce72['getItems']()['filter'](_0x5b8eaf=>_0x5b8eaf['is']('$textProxy'))['map'](_0x3a4701=>_0x3a4701['data']);if(_0x28839e['length'])return{'type':'deletion','content':o(_0x54213a,'*Remove:*\x20%0',o(_0x54213a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x28839e['join']('\x20')+'\x22'))};}}}),_0x5a7f8c['descriptionFactory']['registerDescriptionCallback'](_0x4da785=>{if('tableRow'==_0x4da785['subType']){const _0x271425=_0x4da785['getItems']()['filter'](_0x332909=>_0x332909['is']('$textProxy'))['map'](_0x5438f0=>_0x5438f0['data']),_0x5c5429=this['_getSuggestionCoords'](_0x4da785),_0x54d4b9=_0x5c5429['maxRow']-_0x5c5429['minRow']+0x1;if('insertion'==_0x4da785['type'])return _0x271425['length']?{'type':'insertion','content':o(_0x54213a,'*Insert:*\x20%0',o(_0x54213a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x54d4b9,'\x22'+_0x271425['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x54213a,'*Insert:*\x20%0',o(_0x54213a,'ELEMENT_TABLE_ROW',_0x54d4b9))};if('deletion'==_0x4da785['type'])return _0x271425['length']?{'type':'deletion','content':o(_0x54213a,'*Remove:*\x20%0',o(_0x54213a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x54d4b9,'\x22'+_0x271425['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x54213a,'*Remove:*\x20%0',o(_0x54213a,'ELEMENT_TABLE_ROW',_0x54d4b9))};}if('tableColumn'==_0x4da785['subType']){const _0x146546=_0x4da785['getItems']()['filter'](_0x46a20e=>_0x46a20e['is']('$textProxy'))['map'](_0x13f715=>_0x13f715['data']),_0x4c336a=this['_getSuggestionCoords'](_0x4da785),_0x5d183b=_0x4c336a['maxColumn']-_0x4c336a['minColumn']+0x1;if('insertion'==_0x4da785['type'])return _0x146546['length']?{'type':'insertion','content':o(_0x54213a,'*Insert:*\x20%0',o(_0x54213a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5d183b,'\x22'+_0x146546['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x54213a,'*Insert:*\x20%0',o(_0x54213a,'ELEMENT_TABLE_COLUMN',_0x5d183b))};if('deletion'==_0x4da785['type'])return _0x146546['length']?{'type':'deletion','content':o(_0x54213a,'*Remove:*\x20%0',o(_0x54213a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5d183b,'\x22'+_0x146546['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x54213a,'*Remove:*\x20%0',o(_0x54213a,'ELEMENT_TABLE_COLUMN',_0x5d183b))};}}),_0x5a7f8c['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x5e38be),_0x5a7f8c['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x5e38be),_0x5a7f8c['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x128f0f),_0x5a7f8c['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x128f0f),_0x5a7f8c['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x3de3a7),_0x5a7f8c['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x3de3a7),_0x5a7f8c['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x12378f),_0x5a7f8c['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x12378f);}['_acceptFormatSuggestionCallbackFactory'](){const _0x44accc=this['editor'],_0x14d562=_0x44accc['model']['document']['selection'];return(_0x20bb59,_0x1f89dd)=>{_0x44accc['model']['change'](_0x55c642=>{const {commandName:_0x3c0f0c,commandParams:_0x29a5b3}=_0x1f89dd;let _0x4cf339=_0x20bb59[0x0]['end']['nodeBefore'];_0x29a5b3&&_0x29a5b3[0x0]&&!0x1===_0x29a5b3[0x0]['forceValue']&&(_0x4cf339=_0x20bb59[0x0]['start']['nodeAfter']);const _0x3c3feb=_0x55c642['createRangeIn'](_0x4cf339);if('$graveyard'==_0x3c3feb['root']['rootName'])return;const _0x15cbf7=Array['from'](_0x14d562['getRanges']())['map'](_0x131137=>_0x217d71['fromRange'](_0x131137));_0x55c642['setSelection'](_0x3c3feb),_0x44accc['commands']['get'](_0x3c0f0c)['refresh'](),_0x29a5b3['push']({'forceDefaultExecution':!0x0}),_0x44accc['execute'](_0x3c0f0c,..._0x29a5b3);const _0x362391=_0x15cbf7['filter'](_0x3f0e53=>'$graveyard'!=_0x3f0e53['root']['rootName']);_0x362391['length']>0x0&&_0x55c642['setSelection'](_0x362391);for(const _0x1edee9 of _0x15cbf7)_0x1edee9['detach']();});};}['_getCoordsForCells'](_0x194739){const _0x361a3c=this['editor']['plugins']['get']('TableUtils');let _0x464d35=Number['MAX_SAFE_INTEGER'],_0x205592=Number['MIN_SAFE_INTEGER'],_0x7c7fbb=Number['MAX_SAFE_INTEGER'],_0x50fad=Number['MIN_SAFE_INTEGER'];for(const _0x4e936d of _0x194739){if('$graveyard'==_0x4e936d['root']['rootName'])continue;const {row:_0x1c472a,column:_0x54b9c2}=_0x361a3c['getCellLocation'](_0x4e936d),_0x4470e7=_0x4e936d['hasAttribute']('rowspan')?_0x4e936d['getAttribute']('rowspan')-0x1:0x0,_0x402044=_0x4e936d['hasAttribute']('colspan')?_0x4e936d['getAttribute']('colspan')-0x1:0x0;_0x464d35=_0x1c472a<_0x464d35?_0x1c472a:_0x464d35,_0x205592=_0x1c472a+_0x4470e7>_0x205592?_0x1c472a+_0x4470e7:_0x205592,_0x7c7fbb=_0x54b9c2<_0x7c7fbb?_0x54b9c2:_0x7c7fbb,_0x50fad=_0x54b9c2+_0x402044>_0x50fad?_0x54b9c2+_0x402044:_0x50fad;}return{'minRow':_0x464d35,'maxRow':_0x205592,'minColumn':_0x7c7fbb,'maxColumn':_0x50fad};}['_setupColumnsRowsFixing'](){const _0x3e8e72=this['editor'],_0x1411fa=_0x3e8e72['plugins']['get']('TrackChangesEditing'),_0x239ab2=_0x3e8e72['plugins']['get']('TableUtils');_0x3e8e72['model']['document']['on']('change:data',()=>{const _0x4c67f1=Array['from'](_0x3e8e72['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x260fe2,data:_0x5ed05a}of _0x4c67f1){const {group:_0x304797,id:_0x554dfe,subType:_0x3d4824}=_0x1411fa['_splitMarkerName'](_0x260fe2);if('suggestion'!=_0x304797)continue;if(null!=_0x5ed05a['oldRange'])continue;const _0x46f196=_0x1411fa['getSuggestion'](_0x554dfe);this['_tablePostFixingSubtypes']['includes'](_0x3d4824)&&this['_tableSuggestions']['add'](_0x46f196);}},{'priority':'low'});const _0x36a835=(_0x1ed602,_0x476a95)=>{let _0x58e449=!0x1;const _0x330ada=_0x476a95['createRangeOn'](_0x1ed602),_0x2fa34b=_0x1ed602['findAncestor']('table'),_0x36480c=_0x239ab2['getCellLocation'](_0x1ed602);for(const _0x53ddb8 of this['_tableSuggestions']){const _0x2121c5=_0x53ddb8['subType'],_0x14dab7=_0x2121c5['startsWith']('tablePaste'),_0x105cc6=_0x2121c5['substr'](_0x14dab7?0xa:0x5),_0x1086c3=_0x105cc6['toLowerCase'](),_0x40c04d=_0x1086c3['substr'](0x0,0x3)+'span',_0x425da6='min'+_0x105cc6,_0x5c699f='max'+_0x105cc6;if(!_0x53ddb8['isInContent'])continue;if(_0x2fa34b!=_0x53ddb8['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x53ddb8['isIntersectingWithRange'](_0x330ada))continue;const _0x1a2014=_0x1ed602['hasAttribute'](_0x40c04d)?_0x1ed602['getAttribute'](_0x40c04d)-0x1:0x0,_0x6663c0=this['_getSuggestionCoords'](_0x53ddb8),_0x34ae79=_0x6663c0[_0x425da6],_0x198a11=_0x6663c0[_0x5c699f];_0x34ae79<=_0x36480c[_0x1086c3]&&_0x36480c[_0x1086c3]+_0x1a2014<=_0x198a11&&(_0x53ddb8['addRange'](_0x330ada),_0x58e449=!0x0);}return _0x58e449;};_0x3e8e72['model']['document']['registerPostFixer'](_0x444006=>{let _0x5bf1a1=!0x1;for(const _0x3192ea of _0x3e8e72['model']['document']['differ']['getChanges']())if('insert'==_0x3192ea['type']){if('tableRow'==_0x3192ea['name']){for(const _0x2b6642 of _0x3192ea['position']['nodeAfter']['getChildren']())_0x5bf1a1=_0x5bf1a1||_0x36a835(_0x2b6642,_0x444006);}else'tableCell'==_0x3192ea['name']&&(_0x5bf1a1=_0x5bf1a1||_0x36a835(_0x3192ea['position']['nodeAfter'],_0x444006));}return _0x5bf1a1;});}['_getSuggestionCoords'](_0x2720af){return this['_getCoordsForCells'](_0x2720af['getRanges']()['map'](_0x415c51=>_0x415c51['start']['nodeAfter']));}}function Ne(_0x549a2f){return Array['from'](new Set(_0x549a2f)['values']());}class _t extends _0xfd4522{static get['requires'](){return[At];}['afterInit'](){const _0x4f7c5f=this['editor'],_0x5843bb=_0x4f7c5f['model']['document']['selection'],_0x3de2e0=_0x4f7c5f['locale'];if(!_0x4f7c5f['plugins']['has']('TableEditing'))return;const _0x179a39=_0x4f7c5f['plugins']['get']('TrackChangesEditing'),_0x2c7687=_0x4f7c5f['plugins']['get']('TableUtils'),_0x235e76=_0x4f7c5f['plugins']['get'](At);_0x235e76['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x179a39['enableCommand']('mergeTableCells',()=>{const _0x40dc3e=_0x2c7687['getSelectionAffectedTableCells'](_0x4f7c5f['model']['document']['selection']);_0x4f7c5f['model']['change'](()=>{_0x179a39['markMultiRangeBlockFormat'](_0x40dc3e,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x4f7c5f['commands']['get']('mergeTableCells')['on']('execute',(_0x102e27,_0x4c474c)=>{_0x4f7c5f['commands']['get']('trackChanges')['value']&&(_0x4c474c['length']>0x0&&_0x4c474c[_0x4c474c['length']-0x1]&&_0x4c474c[_0x4c474c['length']-0x1]['forceDefaultExecution']||_0x179a39['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x102e27['stop']());},{'priority':'highest'});for(const _0x4e777e of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x590e92=_0x4f7c5f['commands']['get'](_0x4e777e);_0x179a39['enableCommand'](_0x4e777e,()=>{const _0x22edd6=_0x4f7c5f['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x13a1e5=>_0x13a1e5['is']('element','tableCell')),_0x1f9529=_0x590e92['value'];_0x4f7c5f['model']['change'](()=>{_0x179a39['markMultiRangeBlockFormat']([_0x22edd6,_0x1f9529],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x5366c2 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x26fe14=_0x4f7c5f['commands']['get'](_0x5366c2);_0x179a39['enableCommand'](_0x5366c2,()=>{const _0x53acc6=_0x2c7687['getSelectionAffectedTableCells'](_0x4f7c5f['model']['document']['selection'])[0x0],_0x2c24a4=_0x53acc6['findAncestor']('table'),{column:_0x303665,row:_0x215b14}=_0x2c7687['getCellLocation'](_0x53acc6);let _0xb07462=[];if('horizontally'==_0x26fe14['direction']){const _0x2ed02b=_0x2c7687['createTableWalker'](_0x2c24a4,{'startRow':_0x215b14,'endRow':_0x215b14,'includeAllSlots':!0x0});_0xb07462=Array['from'](_0x2ed02b)['map'](_0x5398e5=>_0x5398e5['cell']);}else{const _0x22d5c8=_0x2c7687['createTableWalker'](_0x2c24a4,{'column':_0x303665,'includeAllSlots':!0x0});_0xb07462=Array['from'](_0x22d5c8)['map'](_0x10ff66=>_0x10ff66['cell']);}_0x4f7c5f['model']['change'](_0x18b7b0=>{_0x179a39['markBlockFormat'](_0x18b7b0['createRangeOn'](_0x53acc6),{'commandName':_0x5366c2,'commandParams':[]},_0xb07462,_0x5366c2);});});}_0x179a39['descriptionFactory']['registerDescriptionCallback'](_0x1c65e2=>{if('formatBlock'!=_0x1c65e2['type']&&'formatInline'!=_0x1c65e2['type'])return;const {data:_0x3a8b1f}=_0x1c65e2;return _0x3a8b1f&&'mergeTableCells'==_0x3a8b1f['commandName']?{'type':'format','content':o(_0x3de2e0,'*Merge\x20cells*')}:void 0x0;}),_0x179a39['descriptionFactory']['registerDescriptionCallback'](_0x546fd6=>{if('formatBlock'!=_0x546fd6['type']&&'formatInline'!=_0x546fd6['type'])return;const {data:_0x341e53}=_0x546fd6;return _0x341e53?'splitTableCellVertically'==_0x341e53['commandName']?{'type':'format','content':o(_0x3de2e0,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x341e53['commandName']?{'type':'format','content':o(_0x3de2e0,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x53110b=_0x235e76['_acceptFormatSuggestionCallbackFactory']();for(const _0x5d0655 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x179a39['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5d0655,'accept',_0x53110b);for(const _0xdc2d4e of['splitTableCellVertically','splitTableCellHorizontally'])_0x179a39['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xdc2d4e,'accept',_0x53110b);_0x179a39['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x7925fb=>{_0x4f7c5f['model']['change'](_0x3caf43=>{const _0x2a4b3d=Array['from'](_0x5843bb['getRanges']())['map'](_0x4d3fcf=>_0x217d71['fromRange'](_0x4d3fcf));_0x3caf43['setSelection'](_0x7925fb),_0x4f7c5f['commands']['get']('mergeTableCells')['refresh'](),_0x4f7c5f['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x4ee677=_0x2a4b3d['filter'](_0x2c0b32=>'$graveyard'!=_0x2c0b32['root']['rootName']);_0x4ee677['length']>0x0&&_0x3caf43['setSelection'](_0x4ee677);for(const _0x273532 of _0x2a4b3d)_0x273532['detach']();});});for(const _0x50917b of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0xbd24b4=_0x4f7c5f['commands']['get'](_0x50917b);_0xbd24b4['on']('set:isEnabled',(_0x49eed5,_0x181d54,_0x250779)=>{if(_0x250779){const _0x3397e1=_0x4f7c5f['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x44302e=>_0x44302e['is']('element','tableCell'));this['_areMergableCells'](_0xbd24b4['value'],_0x3397e1)||(_0x49eed5['return']=!0x1,_0x49eed5['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x1d867d=this['editor']['commands']['get']('mergeTableCells'),_0x47b420=this['editor']['plugins']['get']('TableUtils');if(!_0x1d867d['isEnabled'])return!0x1;const _0x1e019f=_0x47b420['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3194ea of _0x1e019f)for(const _0x1062e5 of _0x1e019f)if(_0x3194ea!=_0x1062e5&&!this['_areMergableCells'](_0x3194ea,_0x1062e5))return!0x1;return!0x0;}['_areMergableCells'](_0x36ee85,_0x2f33df){const _0xa3a5a3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x514176=this['editor']['model']['createRangeOn'](_0x36ee85),_0x1ce2b4=this['editor']['model']['createRangeOn'](_0x2f33df),_0x5c6cd2=new Set(),_0x284c05=new Set();for(const _0x375fef of _0xa3a5a3['getSuggestions']())if(('insertion'==_0x375fef['type']||'deletion'==_0x375fef['type']||'mergeTableCells'==_0x375fef['subType'])&&_0x375fef['isInContent']){for(const _0x4179dc of _0x375fef['getRanges']())_0x4179dc['containsRange'](_0x514176,!0x0)&&_0x5c6cd2['add'](_0x375fef['type']+':'+_0x375fef['author']['id']),_0x4179dc['containsRange'](_0x1ce2b4,!0x0)&&_0x284c05['add'](_0x375fef['type']+':'+_0x375fef['author']['id']);}if(_0x5c6cd2['size']!=_0x284c05['size'])return!0x1;for(const _0x302d58 of _0x5c6cd2)if(!_0x284c05['has'](_0x302d58))return!0x1;return!0x0;}}class Ct extends _0xfd4522{static get['requires'](){return[At];}['afterInit'](){const _0x1b7b98=this['editor'];if(!_0x1b7b98['plugins']['has']('TableEditing'))return;const _0x5c3588=_0x1b7b98['locale'],_0x8543d=_0x1b7b98['plugins']['get']('TrackChangesEditing');_0x8543d['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x8543d['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x8543d['registerBlockAttribute']('headingRows'),_0x8543d['registerBlockAttribute']('headingColumns'),_0x8543d['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x5c3588,'FORMAT_HEADER_ROW')),_0x8543d['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x5c3588,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x30f482=this['editor']['plugins']['get']('TrackChangesEditing'),_0x24a3cd=this['editor']['plugins']['get']('TableUtils'),_0x41c49a=this['editor']['plugins']['get'](At)['_acceptFormatSuggestionCallbackFactory']();function _0x3d00ed({showActiveMarker:_0x36ad7d=!0x0,setDataAttribute:_0x5a5159=!0x0}={}){return(_0x5afd23,_0x4d51a2,_0xe01c1d)=>{const {type:_0x4c2896,id:_0x4125a1}=_0x30f482['_splitMarkerName'](_0x4d51a2['markerName']),_0x5ba9e5=_0x30f482['getSuggestion'](_0x4125a1),_0x3e12bb=_0x5ba9e5['data'];if('formatBlock'!=_0x5ba9e5['type']||!_0x3e12bb||'setTableColumnHeader'!=_0x3e12bb['commandName'])return;if(_0x4d51a2['item'])return void _0x5afd23['stop']();if(!_0xe01c1d['consumable']['consume'](_0x4d51a2['markerRange'],_0x5afd23['name']))return;const _0xd949d4=_0x4d51a2['markerRange']['start']['nodeAfter'],_0x2e589b=_0x4d51a2['markerRange']['end']['nodeBefore'],_0x123bdc=_0xd949d4['parent']['parent'],{column:_0x3071d5}=_0x24a3cd['getCellLocation'](_0xd949d4),{column:_0x143a61}=_0x24a3cd['getCellLocation'](_0x2e589b);for(let _0x36bf33=_0x3071d5;_0x36bf33<=_0x143a61;_0x36bf33++){const _0x4271f8=_0x24a3cd['createTableWalker'](_0x123bdc,{'column':_0x36bf33,'includeAllSlots':!0x1});for(const _0x52e3c7 of _0x4271f8){const _0x2ca216=_0x52e3c7['cell'],_0x2947de=_0xe01c1d['mapper']['toViewElement'](_0x2ca216);_0xe01c1d['writer']['addClass']('ck-suggestion-marker-'+_0x4c2896,_0x2947de),_0x5a5159&&_0xe01c1d['writer']['setAttribute']('data-suggestion',_0x4125a1,_0x2947de),_0xe01c1d['mapper']['bindElementToMarker'](_0x2947de,_0x4d51a2['markerName']),_0x36ad7d&&(_0x30f482['activeMarkers']['includes'](_0x4d51a2['markerName'])?_0xe01c1d['writer']['addClass']('ck-suggestion-marker--active',_0x2947de):_0xe01c1d['writer']['removeClass']('ck-suggestion-marker--active',_0x2947de));}}};}_0x30f482['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x41c49a),_0x30f482['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x41c49a),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x3d00ed(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4f4ced,_0xe57634,_0x36b119)=>{_0x36b119['options']['showSuggestionHighlights']&&_0x3d00ed({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4f4ced,_0xe57634,_0x36b119);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x413c75,_0x516ae1,_0x31d0fb)=>{const {type:_0x32b89d,id:_0x2737bd}=_0x30f482['_splitMarkerName'](_0x516ae1['markerName']),_0xcb89b3=_0x30f482['getSuggestion'](_0x2737bd),_0x4dcda2=_0xcb89b3['data'];if('formatBlock'!=_0xcb89b3['type']||!_0x4dcda2||'setTableColumnHeader'!=_0x4dcda2['commandName'])return;const _0x4ba9f8=_0x31d0fb['mapper']['markerNameToElements'](_0x516ae1['markerName']);if(_0x4ba9f8){for(const _0x1f4c1e of _0x4ba9f8)_0x31d0fb['writer']['removeClass']('ck-suggestion-marker-'+_0x32b89d,_0x1f4c1e),_0x31d0fb['writer']['removeClass']('ck-suggestion-marker--active',_0x1f4c1e),_0x31d0fb['writer']['removeAttribute']('data-suggestion',_0x1f4c1e),_0x31d0fb['mapper']['unbindElementFromMarkerName'](_0x1f4c1e,_0x516ae1['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe77ccc=this['editor'],_0x93c9d3=_0xe77ccc['locale'];function _0x5338e5(_0x382e63){return{'type':'format','content':o(_0x93c9d3,'*Format:*\x20%0',_0x382e63)};}_0xe77ccc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x251ae7=>{if('formatBlock'!=_0x251ae7['type'])return;const {data:_0x226f24}=_0x251ae7;if(_0x226f24){if('setTableRowHeader'==_0x226f24['commandName']){const _0x4b1f86=_0x226f24['commandParams'][0x0]['forceValue'];return _0x5338e5(o(_0x93c9d3,_0x4b1f86?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x226f24['commandName']){const _0x5baeb9=_0x226f24['commandParams'][0x0]['forceValue'];return _0x5338e5(o(_0x93c9d3,_0x5baeb9?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class vt extends _0xfd4522{['afterInit'](){const _0x27f941=this['editor'],_0x2b4366=_0x27f941['locale'],_0x49b143=_0x27f941['plugins']['get']('TrackChangesEditing');function _0x3a8d6b(_0xccbe2){return{'type':'format','content':''+o(_0x2b4366,'*Set\x20table\x20type:*\x20%0',_0xccbe2)};}_0x27f941['plugins']['has']('TableLayout')&&(_0x49b143['enableCommand']('insertTableLayout'),_0x49b143['enableDefaultAttributesIntegration']('tableType'),_0x49b143['registerBlockAttribute']('tableType'),_0x49b143['descriptionFactory']['registerElementLabel'](_0x35fb1f=>_0x35fb1f['is']('element','table')&&'layout'===_0x35fb1f['getAttribute']('tableType'),_0x165b72=>o(_0x2b4366,'ELEMENT_LAYOUT_TABLE',_0x165b72)),_0x49b143['descriptionFactory']['registerDescriptionCallback'](_0x3461e1=>{const {data:_0x453695}=_0x3461e1;if(_0x453695&&'tableType'==_0x453695['key'])switch(_0x453695['newValue']){case'layout':return _0x3a8d6b(o(_0x2b4366,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x3a8d6b(o(_0x2b4366,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=/* #__PURE__ -- @preserve */
25
+ Object['fromEntries'](Be['map'](_0x26de5f=>[_0x26de5f,null]));class Nt extends _0xfd4522{static get['requires'](){return[At];}['afterInit'](){const _0x3e59a9=this['editor'];if(!_0x3e59a9['plugins']['has']('TableClipboard'))return;const _0x4c3cf0=_0x3e59a9['plugins']['get']('TrackChangesEditing'),_0x676550=_0x3e59a9['plugins']['get']('TableUtils'),_0x38824b=_0x3e59a9['plugins']['get'](At),_0x35c71f=_0x3e59a9['plugins']['get']('TableClipboard'),_0x1566f=_0x3e59a9['plugins']['get']('TableSelection'),_0x16ecd2=_0x3e59a9['plugins']['get'](_0x3dd587);_0x38824b['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x3e59a9['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x3e59a9['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2ac59f=null,_0x1e5fc4=!0x1;_0x16ecd2['on']('contentInsertion',(_0x1e55ab,_0x3becc6)=>{_0x1e5fc4='paste'===_0x3becc6['method'];}),_0x3e59a9['model']['on']('insertContent',(_0x1e8f8b,_0x12d603)=>{if(!_0x1e5fc4&&null===_0x1566f['getSelectedTableCells']())return;const [_0x2f20d4,_0x421d98]=_0x12d603,_0x442cd0=_0x12d603[_0x12d603['length']-0x1];_0x442cd0&&_0x442cd0['forceDefaultExecution']||_0x4c3cf0['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x4c3b13,_0x13d715,_0x52d40b,_0x58d823,_0x56a98b){if(_0x13d715&&!_0x13d715['is']('documentSelection'))return!0x1;const _0x539099=_0x56a98b['getTableIfOnlyTableInContent'](_0x4c3b13,_0x52d40b);if(!_0x539099||!Ue(_0x539099,void 0x0,_0x58d823))return!0x1;const _0x1d364b=_0x58d823['getSelectionAffectedTableCells'](_0x52d40b['document']['selection']);if(!_0x1d364b['length'])return!0x1;const _0x5dc262=_0x1d364b[0x0]['findAncestor']('table'),_0x3c3dfa=_0x58d823['getRowIndexes'](_0x1d364b),_0x19e7d8=_0x58d823['getColumnIndexes'](_0x1d364b),_0xc9b548={'startRow':_0x3c3dfa['first'],'endRow':_0x3c3dfa['last'],'startColumn':_0x19e7d8['first'],'endColumn':_0x19e7d8['last']};return 0x1==_0x1d364b['length']&&(_0xc9b548['endRow']+=_0x58d823['getRows'](_0x539099)-0x1,_0xc9b548['endColumn']+=_0x58d823['getColumns'](_0x539099)-0x1),Ue(_0x5dc262,_0xc9b548,_0x58d823);}(_0x2f20d4,_0x421d98,_0x3e59a9['model'],_0x676550,_0x35c71f)&&(_0x1e8f8b['stop'](),_0x2ac59f={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x3e59a9['model']['change'](()=>{_0x3e59a9['model']['insertContent'](_0x12d603[0x0],_0x12d603[0x1],_0x12d603[0x2],{'forceDefaultExecution':!0x0});const _0x297998=_0x110ca2(),{rowInsertionRanges:_0x16a7c7,columnInsertionRanges:_0x5365ee,insertionRanges:_0x5b1ab2,deletionRanges:_0x40a98b,cells:_0x260635}=_0x2ac59f;_0x16a7c7['length']&&_0x4c3cf0['markMultiRangeInsertion'](_0x16a7c7,'tablePasteRow',{'tablePasteChainId':_0x297998}),_0x5365ee['length']&&_0x4c3cf0['markMultiRangeInsertion'](_0x5365ee,'tablePasteColumn',{'tablePasteChainId':_0x297998}),_0x5b1ab2['length']&&(_0x4c3cf0['markMultiRangeInsertion'](_0x5b1ab2,'tablePaste',{'tablePasteChainId':_0x297998,'skipNestingCheck':!0x0}),_0x5b1ab2['forEach'](_0x22bcb7=>_0x22bcb7['detach']?.())),_0x40a98b['length']&&(_0x4c3cf0['markMultiRangeDeletion'](_0x40a98b,'tablePaste',{'tablePasteChainId':_0x297998,'skipNestingCheck':!0x0}),_0x40a98b['forEach'](_0x26d0ab=>_0x26d0ab['detach']?.()));const _0x24abbb=_0x4c3cf0['markMultiRangeBlockFormat'](_0x260635['map'](({element:_0x1025ad})=>_0x1025ad),{'formatGroupId':_0x110ca2()},[],'tablePasteCell',{'tablePasteChainId':_0x297998});if(_0x24abbb){const _0x12bc47=_0x24abbb['getMarkers'](),_0x2280e=[];for(const {element:_0x280916,attributes:_0x362dd2}of _0x260635){if(!_0x362dd2)continue;const _0x58d989=_0x3e59a9['model']['createRangeOn'](_0x280916),_0x108422=_0x12bc47['find'](_0x4056d8=>_0x4056d8['getRange']()['isEqual'](_0x58d989));_0x108422&&_0x2280e['push']([_0x108422['name'],_0x362dd2]);}_0x2280e['length']&&_0x24abbb['setAttribute']('markerAttributes',Object['fromEntries'](_0x2280e));}_0x2ac59f=null;}));},{'priority':_0x533dca['high']+0xa}),_0x16ecd2['on']('contentInsertion',()=>{_0x1e5fc4=!0x1;},{'priority':'lowest'}),_0x3e59a9['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x29f96b,_0x3d5924)=>{const [_0x45dd1f,_0x1c64f6,,_0x55d9ff]=_0x3d5924;if(!_0x2ac59f)return;_0x29f96b['stop']();const _0x372148=_0x45dd1f['cell'],_0x301cf2=_0x1c64f6,_0x57b874=Oe(_0x372148),_0x2bc012=Oe(_0x301cf2);_0x29f96b['return']=_0x372148;let _0x16f0c7=null,_0x2ca549=null;if(_0x2bc012||_0x57b874){if(_0x57b874&&!_0x2bc012){_0x55d9ff['remove'](_0x372148['getChild'](0x0));for(const _0x19e49a of Array['from'](_0x301cf2['getChildren']()))_0x55d9ff['insert'](_0x19e49a,_0x372148,'end');const _0x170063=_0x2ac59f['rowInsertionIndexes']['includes'](_0x45dd1f['row']),_0x3c7e2a=_0x2ac59f['columnInsertionIndexes']['includes'](_0x45dd1f['column']);_0x170063||_0x3c7e2a||(_0x16f0c7=_0x217d71['fromRange'](_0x55d9ff['createRangeIn'](_0x372148)));}else _0x2bc012&&!_0x57b874&&(_0x2ca549=_0x55d9ff['createRangeIn'](_0x372148));}else{const _0x470bf2=_0x55d9ff['createElement']('tableCellSuggestion'),_0x259490=_0x55d9ff['createElement']('tableCellSuggestion');_0x55d9ff['wrap'](_0x55d9ff['createRangeIn'](_0x372148),_0x259490),_0x55d9ff['insert'](_0x470bf2,_0x372148,0x0);for(const _0x13f8b8 of Array['from'](_0x301cf2['getChildren']()))_0x55d9ff['insert'](_0x13f8b8,_0x470bf2,'end');_0x16f0c7=_0x217d71['fromRange'](_0x55d9ff['createRangeOn'](_0x470bf2)),_0x2ca549=_0x217d71['fromRange'](_0x55d9ff['createRangeOn'](_0x259490));}const _0x384d9d=Array['from'](_0x301cf2['getAttributes']())['filter'](([_0x5a5b19])=>Be['includes'](_0x5a5b19));_0x2ac59f['cells']['push']({'element':_0x372148,'attributes':_0x384d9d['length']?Object['fromEntries'](_0x384d9d):null}),_0x16f0c7&&_0x2ac59f['insertionRanges']['push'](_0x16f0c7),_0x2ca549&&_0x2ac59f['deletionRanges']['push'](_0x2ca549);},{'priority':'high'}),_0x676550['on']('insertColumns',(_0x35c11b,_0x421b00)=>{const [_0x232f17,_0xe1c57={}]=_0x421b00;if(!_0x2ac59f)return;const _0x33ff68=_0xe1c57['at']||0x0,_0x88ca63=_0xe1c57['columns']||0x1;_0x2ac59f['columnInsertionIndexes']=new Array(_0x88ca63)['fill'](_0x33ff68)['map']((_0x2ae9bb,_0x1377f3)=>_0x2ae9bb+_0x1377f3);for(const {cell:_0x2b9298}of _0x676550['createTableWalker'](_0x232f17,{'startColumn':_0x33ff68,'endColumn':_0x33ff68+_0x88ca63-0x1}))_0x2ac59f['columnInsertionRanges']['push'](_0x3e59a9['model']['createRangeOn'](_0x2b9298));},{'priority':'low'}),_0x676550['on']('insertRows',(_0x49767e,_0x545488)=>{const [_0x26cccf,_0x21cb24={}]=_0x545488;if(!_0x2ac59f)return;const _0x8ddde3=_0x21cb24['at']||0x0,_0x71f998=_0x21cb24['rows']||0x1;_0x2ac59f['rowInsertionIndexes']=new Array(_0x71f998)['fill'](_0x8ddde3)['map']((_0xf5fdc0,_0x13be90)=>_0xf5fdc0+_0x13be90);for(const {cell:_0x43f46b}of _0x676550['createTableWalker'](_0x26cccf,{'startRow':_0x8ddde3,'endRow':_0x8ddde3+_0x71f998-0x1}))_0x2ac59f['rowInsertionRanges']['push'](_0x3e59a9['model']['createRangeOn'](_0x43f46b));},{'priority':'low'}),_0x4c3cf0['descriptionFactory']['registerDescriptionCallback'](_0x1a7134=>{if(_0x1a7134['subType']&&_0x1a7134['subType']['startsWith']('tablePaste'))return _0x1a7134['previous']?{}:{'type':'insertion','content':o(_0x3e59a9['locale'],'*Replace\x20table\x20cells*')};});const _0x448336=()=>!0x1;for(const _0x3a34f8 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4c3cf0['_suggestionFactory']['registerCustomCallback']('insertion',_0x3a34f8,'join',_0x448336),_0x4c3cf0['_suggestionFactory']['registerCustomCallback']('deletion',_0x3a34f8,'join',_0x448336),_0x4c3cf0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3a34f8,'join',_0x448336);_0x4c3cf0['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x448336),_0x4c3cf0['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x49c899,_0x33d0e9,_0x413c7a)=>{const _0x4e5df0=_0x49c899['map'](_0x592fbb=>_0x592fbb['getContainedElement']())['filter'](_0x37d9a7=>_0x37d9a7),_0x3a8461=new Map(_0x4e5df0['map'](_0x5eaf38=>[_0x5eaf38,null]));if(_0x2ac59f){for(const {element:_0x1aa204,attributes:_0x343b07}of _0x2ac59f['cells'])_0x343b07&&_0x3a8461['set'](_0x1aa204,_0x343b07);}else{if(_0x413c7a&&_0x413c7a['markerAttributes'])for(const [_0x1fca96,_0x1a08d5]of Object['entries'](_0x413c7a['markerAttributes'])){const _0x19d55d=_0x3e59a9['model']['markers']['get'](_0x1fca96),_0x12f4ab=_0x19d55d?_0x19d55d['getRange']()['getContainedElement']():null;_0x12f4ab&&_0x3a8461['set'](_0x12f4ab,_0x1a08d5);}}_0x3e59a9['model']['change'](_0x1c5158=>{for(const [_0x22bda7,_0x4b5fe1]of _0x3a8461)_0x1c5158['setAttributes']({...xe,..._0x4b5fe1},_0x22bda7);});});const _0x5c82b0=(_0x48f817,_0x37c9e3)=>{_0x4c3cf0['_suggestionFactory']['registerCustomCallback'](_0x48f817,'tablePaste',_0x37c9e3,(_0x1b8b49,_0xb2db4d,_0x51ee5f)=>{_0x3e59a9['model']['change'](_0x3ff765=>{const _0x28851a=[];for(const _0x363328 of _0x1b8b49){const _0x53dbd3=_0x363328['start']['nodeAfter'];_0x53dbd3['is']('element','tableCellSuggestion')&&_0x28851a['push'](_0x53dbd3);}_0x4c3cf0['_suggestionFactory']['getSuggestionCallback'](_0x48f817,null,_0x37c9e3)(_0x1b8b49,_0xb2db4d,_0x51ee5f);for(const _0x3da037 of _0x28851a)'$graveyard'!=_0x3da037['root']['rootName']&&_0x3ff765['unwrap'](_0x3da037);});});};_0x5c82b0('insertion','accept'),_0x5c82b0('insertion','discard'),_0x5c82b0('deletion','accept'),_0x5c82b0('deletion','discard'),_0x4c3cf0['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x558149=>{const _0x12531b=_0x558149['map'](_0x556cf2=>_0x556cf2['getContainedElement']()),_0x46b6d6=_0x12531b[0x0]['findAncestor']('table'),{minRow:_0x5d849f,maxRow:_0x4322fa}=_0x38824b['_getCoordsForCells'](_0x12531b);_0x676550['removeRows'](_0x46b6d6,{'at':_0x5d849f,'rows':_0x4322fa-_0x5d849f+0x1});}),_0x4c3cf0['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x403aa5=>{const _0x111f77=_0x403aa5['map'](_0x46540c=>_0x46540c['getContainedElement']()),_0x2336af=_0x111f77[0x0]['findAncestor']('table'),{minColumn:_0x525a21,maxColumn:_0x5cb79d}=_0x38824b['_getCoordsForCells'](_0x111f77);_0x676550['removeColumns'](_0x2336af,{'at':_0x525a21,'columns':_0x5cb79d-_0x525a21+0x1});});const _0x11541f=(_0x418991,_0x6e6ae1)=>{if(!_0x6e6ae1['subType']||!_0x6e6ae1['subType']['startsWith']('tablePaste'))return;const _0x143698=_0x6e6ae1['attributes']['tablePasteChainId'],_0x42aba5=_0x4c3cf0['getSuggestions']()['filter'](_0xa59864=>_0xa59864['isInContent']&&_0xa59864['attributes']&&_0xa59864['attributes']['tablePasteChainId']==_0x143698);_0x42aba5['length']&&_0x6e6ae1['getAllAdjacentSuggestions']()['length']!=_0x42aba5['length']&&_0x42aba5['reduce']((_0x539bb1,_0x179454)=>(_0x539bb1['next']=_0x179454,_0x179454['previous']=_0x539bb1,_0x179454));};function _0x115b46(_0x4b57bf,_0x457a89=!0x0){const {id:_0x91e262,authorId:_0x43d165}=_0x4c3cf0['_splitMarkerName'](_0x4b57bf['markerName']),_0x6321da=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x4476d5=_0x4c3cf0['activeMarkers']['includes'](_0x4b57bf['markerName']);return _0x4476d5&&_0x6321da['push']('ck-suggestion-marker--active'),{'classes':_0x6321da,'attributes':{'data-suggestion':_0x91e262,'data-author-id':_0x43d165},'priority':_0x4476d5&&_0x457a89?0xbc2:0xbb8};}_0x4c3cf0['on']('suggestionLoaded',_0x11541f,{'priority':'high'}),_0x4c3cf0['on']('suggestionUnloaded',_0x11541f,{'priority':'high'}),_0x3e59a9['model']['document']['registerPostFixer'](()=>{let _0x56dd1b=!0x1;const _0x1601fb=Array['from'](_0x3e59a9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x7aea1,data:_0x2fa005}of _0x1601fb){const {group:_0xee2c1e,type:_0x485760,id:_0x1dedae}=_0x4c3cf0['_splitMarkerName'](_0x7aea1);if('suggestion'!=_0xee2c1e||'deletion'!=_0x485760||_0x2fa005['oldRange'])continue;if(!_0x4c3cf0['hasSuggestion'](_0x1dedae))continue;const _0x1f63e9=_0x4c3cf0['getSuggestion'](_0x1dedae)['getRanges'](),_0xe0c651=_0x3e59a9['plugins']['get']('Users')['me'];for(const _0x4201fa of _0x4c3cf0['getSuggestions']()){if(!_0x4201fa['isInContent']||_0x4201fa['author']!=_0xe0c651)continue;if('formatBlock'!=_0x4201fa['type']||'tablePasteCell'!=_0x4201fa['subType'])continue;if(_0x4201fa['getRanges']()['every'](_0xe00abc=>_0x1f63e9['some'](_0x137f2a=>_0x137f2a['containsRange'](_0xe00abc,!0x0)))){for(const _0x4986c6 of _0x4201fa['getAllAdjacentSuggestions']())_0x4986c6['isInContent']&&(_0x4986c6['discard'](),_0x56dd1b=!0x0);}}}return _0x56dd1b;}),_0x3e59a9['model']['document']['registerPostFixer'](_0x4f0ca6=>{const _0xc50e1=_0x3e59a9['commands']['get']('redo');if(!_0xc50e1||!_0xc50e1['_createdBatches']['has'](_0x4f0ca6['batch']))return!0x1;let _0x3c6c03=!0x1;const _0x277394=_0x3e59a9['plugins']['get']('Users')['me'],_0x2e7176=_0x3e59a9['model']['document']['differ']['getChanges'](),_0x2cf0c3=Array['from'](_0x3e59a9['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x4bef40,data:_0x462b1f})=>{const {group:_0x4494d5,subType:_0x1452e1,authorId:_0x2f7ea4}=_0x4c3cf0['_splitMarkerName'](_0x4bef40);return'suggestion'==_0x4494d5&&'tablePaste'==_0x1452e1&&_0x2f7ea4==_0x277394['id']&&!_0x462b1f['oldRange'];});for(const _0x25d902 of _0x2e7176){if('insert'!=_0x25d902['type']||'tableCellSuggestion'!=_0x25d902['name']||0x1!=_0x25d902['length'])continue;const _0x488efd=_0x4f0ca6['createRange'](_0x25d902['position'],_0x25d902['position']['getShiftedBy'](0x1));if(!_0x2cf0c3['find'](({data:_0x33e614})=>_0x33e614['newRange']['isEqual'](_0x488efd))){for(const {name:_0x26b326,data:_0x300973}of _0x2cf0c3)if(_0x488efd['containsRange'](_0x300973['newRange'])){_0x4f0ca6['updateMarker'](_0x26b326,{'range':_0x488efd}),_0x3c6c03=!0x0;break;}}}return _0x3c6c03;}),_0x3e59a9['model']['document']['registerPostFixer'](_0x57a6fd=>{let _0x1a6479=!0x1;const _0x2bd04f=_0x3e59a9['plugins']['get']('Users')['me'],_0x5f5688=_0x4c3cf0['getSuggestions']()['filter'](_0x578072=>_0x578072['isInContent']&&_0x578072['author']==_0x2bd04f),_0x16c782=new Set(),_0x10feff=new Set();for(const _0x269077 of _0x5f5688)if('tablePaste'==_0x269077['subType'])for(const _0x22c3fd of _0x269077['getMarkers']()){const _0x47c2d9=_0x22c3fd['getRange']()['getContainedElement']();if(_0x47c2d9){if(_0x47c2d9['is']('element','tableCellSuggestion')&&Oe(_0x47c2d9)){_0x269077['removeMarker'](_0x22c3fd['name']),_0x16c782['add'](_0x47c2d9),_0x1a6479=!0x0;const _0x2bcfbe=_0x47c2d9['nextSibling'],_0x590d27=_0x47c2d9['previousSibling'],_0xe6abce=_0x2bcfbe&&_0x2bcfbe['is']('element','tableCellSuggestion'),_0x25d1b4=_0x590d27&&_0x590d27['is']('element','tableCellSuggestion');_0xe6abce&&!_0x16c782['has'](_0x2bcfbe)&&_0x10feff['add'](_0x2bcfbe),_0x25d1b4&&!_0x16c782['has'](_0x590d27)&&_0x10feff['add'](_0x590d27);}else _0x47c2d9['is']('element','paragraph')&&_0x47c2d9['isEmpty']&&(_0x269077['removeMarker'](_0x22c3fd['name']),_0x1a6479=!0x0);}}else{if('tablePasteCell'==_0x269077['subType']){if(!_0x269077['attributes']||!_0x269077['attributes']['tablePasteChainId'])continue;const _0x10e7eb=_0x269077['attributes']['markerAttributes'];if(_0x10e7eb&&Object['keys'](_0x10e7eb)['length'])continue;const _0x51bf4e=_0x269077['attributes']['tablePasteChainId'];let _0x1f7e5d=!0x0,_0x2dec9b=!0x0;for(const _0x3c520d of _0x5f5688)if(_0x3c520d['subType']&&_0x3c520d['subType']['startsWith']('tablePaste')){if(!_0x3c520d['attributes']['tablePasteChainId']){_0x2dec9b=!0x1;break;}if(_0x3c520d['id']!=_0x269077['id']&&_0x3c520d['attributes']['tablePasteChainId']==_0x51bf4e){_0x1f7e5d=!0x1;break;}}_0x2dec9b&&_0x1f7e5d&&(_0x269077['removeMarkers'](),_0x1a6479=!0x0);}}for(const _0x171448 of _0x16c782)_0x57a6fd['remove'](_0x171448);for(const _0x2b2a88 of _0x10feff)_0x57a6fd['unwrap'](_0x2b2a88);return _0x1a6479;}),_0x3e59a9['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x3628f8=>_0x115b46(_0x3628f8),'converterPriority':'high'}),_0x3e59a9['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5e3be6,_0x31aed1)=>_0x31aed1['options']['showSuggestionHighlights']?_0x115b46(_0x5e3be6,!0x1):null,'converterPriority':'high'});const _0x363747=_0x3e59a9['editing']['view'];this['listenTo'](_0x363747['document'],'clipboardOutput',(_0x1e07c8,_0x148ccb)=>{const _0x503bd8=[];for(const _0x21987a of _0x363747['createRangeIn'](_0x148ccb['content'])['getItems']())_0x21987a['is']('element','suggestion-td')&&_0x503bd8['push'](_0x21987a);_0x363747['change'](_0x27d01a=>{for(const _0x1a7eaa of _0x503bd8)_0x27d01a['move'](_0x27d01a['createRangeIn'](_0x1a7eaa),_0x27d01a['createPositionBefore'](_0x1a7eaa)),_0x27d01a['remove'](_0x1a7eaa);});});}}function Oe(_0x40bd51){if(_0x40bd51['isEmpty'])return!0x0;const _0x4cb8da=_0x40bd51['getChild'](0x0);return _0x4cb8da['is']('element','paragraph')&&_0x4cb8da['isEmpty'];}function Ue(_0x30d725,_0x4ab0a4={},_0x5b6fbe){for(const {isAnchor:_0x39b1b2,cellHeight:_0x481f9e,cellWidth:_0x4c918c}of _0x5b6fbe['createTableWalker'](_0x30d725,{'includeAllSlots':!0x0,..._0x4ab0a4}))if(!_0x39b1b2||0x1!=_0x481f9e||0x1!=_0x4c918c)return!0x1;return!0x0;}class Dt extends _0xfd4522{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x2b96a2=this['editor']['plugins']['get']('TrackChangesEditing');_0x2b96a2['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x2b96a2['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x2b96a2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2b96a2['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x2b96a2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x2b96a2['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0xf80747,_0x429315){const _0x4b2d56=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2a414c=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x3e2f0f=_0x429315['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3911f9=_0x2a414c['getColumnGroupElement'](_0x3e2f0f);let _0x15c6c2=_0x3911f9?_0x2a414c['getTableColumnsWidths'](_0x3911f9):null,_0x3bb549=_0x3e2f0f['getAttribute']('tableWidth')||null;const _0x527188=_0x429315['tableWidth']||_0x3bb549,_0x4ee313=_0x429315['columnWidths']||_0x15c6c2,_0x395c66=this['editor']['plugins']['get']('Users')['me'];for(const _0x289e74 of _0x4b2d56['getSuggestions']()){const _0x527595=_0x289e74['getContainedElement']();if('resizeTable'===_0x289e74['subType']&&_0x527595===_0x3e2f0f){_0x289e74['author']!==_0x395c66&&_0x289e74['discard']();const _0x24d616=_0x289e74['data']['commandParams'];_0x3bb549=_0x24d616[0x0]['tableWidth'],_0x15c6c2=_0x24d616[0x0]['columnWidths'];break;}}_0xf80747({'table':_0x3e2f0f,'tableWidth':_0x527188,'columnWidths':_0x4ee313}),_0x4b2d56['markBlockFormat'](_0x3e2f0f,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3bb549,'columnWidths':_0x15c6c2}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x25a437){if('formatBlock'!=_0x25a437['type']&&'formatInline'!=_0x25a437['type'])return;const {data:_0x277656}=_0x25a437;if(_0x277656&&'resizeTable'===_0x277656['formatGroupId']){const _0x484f8f='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x484f8f)};}}}class $t extends _0xfd4522{['afterInit'](){const _0x34531f=this['editor'];_0x34531f['plugins']['has']('Template')&&_0x34531f['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0xfd4522{['afterInit'](){const _0x336fa0=this['editor'];if(!_0x336fa0['commands']['get']('insertTableOfContents'))return;_0x336fa0['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x19bb59=_0x336fa0['plugins']['get']('TrackChangesEditing'),_0x559e23=_0x336fa0['locale'];_0x19bb59['descriptionFactory']['registerElementLabel']('tableOfContents',_0x12e8d9=>o(_0x559e23,'ELEMENT_TABLE_OF_CONTENTS',_0x12e8d9));}}class Bt extends _0xfd4522{['afterInit'](){const _0x4cc075=this['editor'];if(!_0x4cc075['plugins']['has']('Title'))return;const _0x4eb1c6=_0x4cc075['plugins']['get']('TrackChangesEditing');_0x4eb1c6['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x4cc075['locale'],'ELEMENT_TITLE')),_0x4cc075['model']['document']['registerPostFixer'](_0x4108cb=>{let _0x4e1b76=!0x1;const _0x5bfb=Array['from'](_0x4cc075['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4e8b52,data:_0x276a59}of _0x5bfb){const {group:_0x3dbc21}=_0x4eb1c6['_splitMarkerName'](_0x4e8b52);if('suggestion'!==_0x3dbc21||!_0x276a59['newRange'])continue;const _0x371b98=_0x276a59['newRange'],_0x29c361=_0x371b98['end']['nodeBefore'];if(!_0x29c361||!_0x29c361['is']('element','title-content'))continue;if(!_0x371b98['start']['isTouching'](_0x371b98['end']))continue;const _0x436c69=_0x4cc075['model']['schema']['getNearestSelectionRange'](_0x371b98['end'],'forward');if(_0x436c69&&_0x436c69['isCollapsed']){const _0x41f847=_0x4108cb['createRange'](_0x371b98['start'],_0x436c69['start']);_0x41f847['isEqual'](_0x371b98)||(_0x4108cb['updateMarker'](_0x4e8b52,{'range':_0x41f847}),_0x4e1b76=!0x0);}_0x4e1b76||(_0x4108cb['removeMarker'](_0x4e8b52),_0x4e1b76=!0x0);}return _0x4e1b76;});}}class Tt extends _0xfd4522{['afterInit'](){const _0x4fba91=this['editor'],_0xb6f916=_0x4fba91['plugins']['get']('TrackChangesEditing');_0x4fba91['plugins']['has']('Uploadcare')&&(_0xb6f916['enableCommand']('uploadcare'),_0x4fba91['plugins']['has']('UploadcareImageEdit')&&(_0xb6f916['enableCommand']('uploadcareImageEdit'),_0xb6f916['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0xb6f916['registerBlockAttribute']('uploadcareImageId'),_0xb6f916['descriptionFactory']['registerDescriptionCallback'](_0x4ad485=>{if('attribute'!=_0x4ad485['type'])return;const {data:_0x174f3e}=_0x4ad485;return _0x174f3e&&'uploadcareImageId'==_0x174f3e['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0xfd4522{['afterInit'](){const _0x5d5d78=this['editor'],_0x38d472=_0x5d5d78['plugins']['get']('TrackChangesEditing');_0x5d5d78['plugins']['has']('UndoEditing')&&(_0x38d472['enableCommand']('undo'),_0x38d472['enableCommand']('redo'));}}class Ot extends _0xfd4522{static get['requires'](){return[At];}['afterInit'](){const _0x26046a=this['editor'];if(!_0x26046a['plugins']['has']('TableCaptionEditing'))return;_0x26046a['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0xfd4522{['tableProperties'];['tableCellProperties'];constructor(_0x4d0824){super(_0x4d0824),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 _0x5e35a5=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x355b5a of this['tableProperties'])_0x5e35a5['enableCommand'](_0x355b5a,(_0x5e8968,_0x3f0fff)=>{const _0x9059d8=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x355b5a,[_0x9059d8],this['tableProperties'],'tableProperties',_0x5e8968,_0x3f0fff);});_0x5e35a5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x5e35a5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5e35a5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x32f8b4,_0x10a9c2)=>this['handleDiscardAction'](this['tableProperties'],_0x32f8b4,_0x10a9c2)),_0x5e35a5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x1f79bc of this['tableCellProperties'])_0x5e35a5['enableCommand'](_0x1f79bc,(_0x1e4a96,_0x29bda2)=>{const _0x514213=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x1f79bc,_0x514213,this['tableCellProperties'],'tableCellProperties',_0x1e4a96,_0x29bda2);});_0x5e35a5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x5e35a5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5e35a5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0xc94a91,_0x24f24c)=>this['handleDiscardAction'](this['tableCellProperties'],_0xc94a91,_0x24f24c)),_0x5e35a5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x5e35a5['descriptionFactory']['registerDescriptionCallback'](_0xef7e5c=>this['handleSuggestionDescription'](_0xef7e5c)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x311d80,_0x2ee88f,_0x1a0049,_0x35a389,_0x15bb0c,_0x3caa2a){const _0x9e80c5=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x3caa2a['batch'],()=>{for(const _0x461283 of _0x2ee88f){if(this['_getSuggestion'](_0x461283,_0x35a389))_0x15bb0c(_0x3caa2a);else{const _0x2042a3={};for(const _0x4446f3 of _0x1a0049){const _0x1e2cca=_0x461283['getAttribute'](_0x4446f3);void 0x0!==_0x1e2cca&&(_0x2042a3[_0x4446f3]=_0x1e2cca);}_0x15bb0c(_0x3caa2a),_0x9e80c5['markBlockFormat'](_0x461283,{'commandParams':[_0x2042a3]},[],_0x35a389);}}});}['handleDiscardAction'](_0x42c0c0,_0x24ff9b,_0x29c0db){const _0x53c10f=_0x24ff9b[0x0]['start']['nodeAfter'],_0x5e4d8f=_0x29c0db['commandParams'][0x0];this['editor']['model']['change'](_0x40a8c6=>{for(const _0x23111d of _0x42c0c0)void 0x0!==_0x5e4d8f[_0x23111d]?_0x40a8c6['setAttribute'](_0x23111d,_0x5e4d8f[_0x23111d],_0x53c10f):_0x40a8c6['removeAttribute'](_0x23111d,_0x53c10f);});}['handleSuggestionDescription'](_0x5cd901){if(_0x5cd901['data'])switch(_0x5cd901['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'](_0x1b2434,_0x35eedc){const _0xae96f0=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x77d50a of _0xae96f0['getSuggestions']({'skipNotAttached':!0x0})){const _0xbcf187=_0x77d50a['getContainedElement']();if(_0x77d50a['subType']===_0x35eedc&&_0xbcf187===_0x1b2434)return _0x77d50a;}return null;}['_registerTablePropertiesAttributes'](){const _0x1b0b59=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3a1d31=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x4cb173 of _0x3a1d31){const _0x170589=_0x4cb173['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x1b0b59['registerBlockAttribute'](_0x4cb173),_0x1b0b59['descriptionFactory']['registerAttributeLabel'](_0x4cb173,o(this['editor']['locale'],'FORMAT_'+_0x170589));}}}class Rt extends _0xfd4522{['afterInit'](){const _0x3cea4e=this['editor'];if(!_0x3cea4e['plugins']['has']('LineHeight'))return;const _0x41e1cb=_0x3cea4e['plugins']['get']('TrackChangesEditing'),_0x3bfddd=_0x3cea4e['locale'];_0x41e1cb['enableDefaultAttributesIntegration']('lineHeight'),_0x41e1cb['registerBlockAttribute']('lineHeight'),_0x41e1cb['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x3bfddd,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0xfd4522{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x41af33,_0x19387b,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(_0x398874){super(_0x398874),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x4958ec,_0x3c0471,_0x43a0e0,_0x2c74d2)=>{this['_model']['change'](()=>{for(const _0x281d92 of[..._0x2c74d2,..._0x43a0e0])this['_model']['markers']['has'](_0x281d92)&&_0x398874['editing']['reconvertMarker'](_0x281d92);});}),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']=_0x398874['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(),_0x398874['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x398874['config']['get']('trackChanges.trackFormatChanges'),_0x398874['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x398874['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new N(_0x398874,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x2aa042=this['editor'],_0x389462=(_0x3143ae,_0x41a692)=>{if('attribute'!=_0x3143ae)return'ck-suggestion-marker-'+_0x3143ae;const _0xc34306=_0x41a692['split']('|')[0x0];return this['_isBlockAttribute'](_0xc34306)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x2aa042['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x33f0f9=>{const {id:_0x536c13,authorId:_0x2b5f66,type:_0x320796,subType:_0x511a2d}=this['_splitMarkerName'](_0x33f0f9['markerName']),_0x834dcf=['ck-suggestion-marker',_0x389462(_0x320796,_0x511a2d)];let _0x20b923=0xbb8;return this['activeMarkers']['includes'](_0x33f0f9['markerName'])&&(_0x834dcf['push']('ck-suggestion-marker--active'),_0x20b923=0xbc2),'deletion'==_0x320796&&(_0x20b923+=0x5),{'classes':_0x834dcf,'attributes':{'data-suggestion':_0x536c13,'data-author-id':_0x2b5f66},'priority':_0x20b923};}}),_0x2aa042['conversion']['for']('dataDowncast')['add'](_0x4fdca6=>{_0x4fdca6['on']('addMarker:suggestion',(_0x35215f,_0x4bd657,_0x436e75)=>{if(!_0x436e75['options']['showSuggestionHighlights'])return;const _0x32e2e8=_0x4bd657['item'];if(!_0x32e2e8)return;const _0x82bf7f=_0x436e75['mapper']['toViewElement'](_0x32e2e8);_0x2aa042['model']['schema']['isObject'](_0x32e2e8)&&_0x82bf7f&&!_0x82bf7f['getCustomProperty']('widget')&&_0x82bf7f['is']('containerElement')&&_0x20ea6f(_0x82bf7f,_0x436e75['writer']);},{'priority':'high'});}),_0x2aa042['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x4c2e76,_0x2fa861)=>{if(!_0x2fa861['options']['showSuggestionHighlights'])return null;const {id:_0x137545,authorId:_0x2dd3fd,type:_0x38b434,subType:_0x203034}=this['_splitMarkerName'](_0x4c2e76['markerName']);return{'classes':['ck-suggestion-marker',_0x389462(_0x38b434,_0x203034)],'priority':0xbb8,'attributes':{'data-suggestion':_0x137545,'data-author-id':_0x2dd3fd}};}});const _0x14dcd6=({showActiveMarkers:_0x126665=!0x0,isAttributeSuggestion:_0x271ad5=!0x1}={})=>(_0x3ccd65,_0x30cefb,_0x48822e)=>{if(!_0x30cefb['item'])return;const {id:_0x393e4e,authorId:_0x5bb0b6}=this['_splitMarkerName'](_0x30cefb['markerName']);if(_0x271ad5){const _0x13f2a5=this['_suggestions']['get'](_0x393e4e),_0xf68ed2=this['_getAttributeKey'](_0x13f2a5);if(!this['_isBlockAttribute'](_0xf68ed2))return;}if(_0x30cefb['item']['is']('selection'))return void _0x48822e['consumable']['consume'](_0x30cefb['item'],_0x3ccd65['name']);const _0x384c0e=_0x48822e['mapper']['toViewElement'](_0x30cefb['item']);if(_0x30cefb['item']['is']('element')&&_0x2aa042['model']['schema']['isBlock'](_0x30cefb['item'])&&!_0x384c0e['getCustomProperty']('addHighlight')){_0x48822e['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x384c0e),_0x48822e['writer']['setAttribute']('data-suggestion',_0x393e4e,_0x384c0e),_0x48822e['writer']['setAttribute']('data-author-id',_0x5bb0b6,_0x384c0e),_0x48822e['mapper']['bindElementToMarker'](_0x384c0e,_0x30cefb['markerName']),_0x126665&&(this['activeMarkers']['includes'](_0x30cefb['markerName'])?_0x48822e['writer']['addClass']('ck-suggestion-marker--active',_0x384c0e):_0x48822e['writer']['removeClass']('ck-suggestion-marker--active',_0x384c0e));for(const _0x4e6583 of _0x2aa042['model']['createRangeIn'](_0x30cefb['item'])['getItems']())_0x48822e['consumable']['consume'](_0x4e6583,_0x3ccd65['name']);_0x48822e['consumable']['consume'](_0x30cefb['item'],_0x3ccd65['name']);}};_0x2aa042['conversion']['for']('dataDowncast')['add'](_0xc43b38=>{_0xc43b38['on']('addMarker:suggestion:formatBlock',(_0x48e568,_0x5af26f,_0x4aeb37)=>{_0x4aeb37['options']['showSuggestionHighlights']&&_0x14dcd6({'showActiveMarkers':!0x1})(_0x48e568,_0x5af26f,_0x4aeb37);},{'priority':'highest'});}),_0x2aa042['conversion']['for']('dataDowncast')['add'](_0x94a59d=>{_0x94a59d['on']('addMarker:suggestion:attribute',(_0x58bc75,_0x4dcaca,_0x51354c)=>{_0x51354c['options']['showSuggestionHighlights']&&_0x14dcd6({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x58bc75,_0x4dcaca,_0x51354c);},{'priority':'highest'});}),_0x2aa042['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x1700a7,_0x28162e)=>{if(_0x28162e['options']['showSuggestionHighlights']){const {id:_0x1ac74e,authorId:_0x1ccf20}=this['_splitMarkerName'](_0x1700a7);return _0x1700a7['includes'](':split')||_0x1700a7['includes'](':merge')?{'group':'suggestion','name':_0x1700a7['substr'](0xb),'attributes':{'data-suggestion':_0x1ac74e,'data-author-id':_0x1ccf20}}:null;}return{'group':'suggestion','name':_0x1700a7['substr'](0xb)};}}),_0x2aa042['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1972e3,{writer:_0x40de9f})=>{let _0x141350='suggestion:'+_0x1972e3['getAttribute']('suggestion-type')+':'+_0x1972e3['getAttribute']('id');return _0x1972e3['getAttribute']('marker-count')&&(_0x141350+=':'+_0x1972e3['getAttribute']('marker-count')),_0x40de9f['createElement']('$marker',{'data-name':_0x141350});}}),_0x2aa042['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x2aa042['conversion']['for']('editingDowncast')['add'](_0x26246c=>{_0x26246c['on']('addMarker:suggestion:formatBlock',_0x14dcd6(),{'priority':'high'});}),_0x2aa042['conversion']['for']('editingDowncast')['add'](_0x1e5a71=>{_0x1e5a71['on']('addMarker:suggestion:attribute',_0x14dcd6({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x2aa042['conversion']['for']('editingDowncast')['add'](_0x3138ad=>{_0x3138ad['on']('removeMarker:suggestion:formatBlock',(_0x42885d,_0x4e9ded,_0x5a1c58)=>{const _0x44aa01=_0x5a1c58['mapper']['markerNameToElements'](_0x4e9ded['markerName']);if(_0x44aa01){for(const _0x1a95a0 of _0x44aa01)_0x1a95a0['getCustomProperty']('addHighlight')||(_0x5a1c58['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1a95a0),_0x5a1c58['writer']['removeAttribute']('data-suggestion',_0x1a95a0),_0x5a1c58['writer']['removeAttribute']('data-author-id',_0x1a95a0),_0x5a1c58['mapper']['unbindElementFromMarkerName'](_0x1a95a0,_0x4e9ded['markerName']));}},{'priority':'high'});}),_0x2aa042['conversion']['for']('editingDowncast')['add'](_0x4ec6e2=>{_0x4ec6e2['on']('removeMarker:suggestion:attribute',(_0x13f0a3,_0x446ef8,_0x971d7c)=>{const _0x1c7881=_0x971d7c['mapper']['markerNameToElements'](_0x446ef8['markerName']);if(!_0x1c7881)return;const {id:_0x5eeb01}=this['_splitMarkerName'](_0x446ef8['markerName']),_0x530feb=this['_suggestions']['get'](_0x5eeb01),_0x54eebd=this['_getAttributeKey'](_0x530feb);if(this['_isBlockAttribute'](_0x54eebd)){for(const _0x2f880b of _0x1c7881)_0x2f880b['getCustomProperty']('addHighlight')||(_0x971d7c['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2f880b),_0x971d7c['writer']['removeAttribute']('data-suggestion',_0x2f880b),_0x971d7c['writer']['removeAttribute']('data-author-id',_0x2f880b),_0x971d7c['mapper']['unbindElementFromMarkerName'](_0x2f880b,_0x446ef8['markerName']));}},{'priority':'high'});}),_0x2aa042['model']['document']['registerPostFixer'](_0x53cf5a=>{let _0x42fb64=!0x1;const _0x520ac8=Array['from'](_0x2aa042['model']['document']['differ']['getChangedMarkers']()),_0x5926de=new Set();for(const {name:_0x9b14c2,data:_0x52280a}of _0x520ac8){const {group:_0x4adc5b,type:_0x1e6450,subType:_0x4dbba3,id:_0x24af82}=this['_splitMarkerName'](_0x9b14c2);if('suggestion'!==_0x4adc5b)continue;const _0x412525=_0x4dbba3?'suggestion:'+_0x1e6450+':'+_0x4dbba3+':'+_0x24af82:'suggestion:'+_0x1e6450+':'+_0x24af82,_0x3ecca9=_0x2aa042['model']['markers']['getMarkersGroup'](_0x412525),_0x4e0dbc=_0x2aa042['model']['markers']['get'](_0x9b14c2),_0x49f8ce=this['_suggestions']['get'](_0x24af82);if(null!=_0x52280a['newRange']){'formatInline'==_0x1e6450&&(_0x42fb64=_0x42fb64||Gt(_0x52280a['newRange'],_0x9b14c2,_0x53cf5a,_0x2aa042['model']['schema']));const _0x381f1d='attribute'==_0x1e6450&&this['_isBlockAttribute'](_0x4dbba3['split']('|')[0x0]),_0x2c01d0='attribute'==_0x1e6450&&this['_isInlineAttribute'](_0x4dbba3['split']('|')[0x0]);if(_0x52280a['newRange']['isCollapsed']||'$graveyard'==_0x52280a['newRange']['root']['rootName']||'formatBlock'==_0x1e6450&&!Jt(_0x52280a['newRange'])||_0x381f1d&&!Jt(_0x52280a['newRange'])||_0x2c01d0&&Kt(_0x52280a['newRange'])||'deletion'==_0x1e6450&&Kt(_0x52280a['newRange'])||_0x4e0dbc&&Ht(_0x4e0dbc,_0x3ecca9))_0x53cf5a['removeMarker'](_0x9b14c2),_0x42fb64=!0x0;else{if(!_0x49f8ce||!_0x49f8ce['isInContent'])continue;if(_0x52280a['newRange']&&_0x52280a['oldRange']&&_0x52280a['newRange']['isEqual'](_0x52280a['oldRange']))continue;_0x5926de['add'](_0x49f8ce);}}}return _0x5926de['size']>0x0&&(_0x42fb64=!!this['_joinWithAdjacentSuggestions'](_0x5926de)||_0x42fb64),_0x42fb64;}),_0x2aa042['model']['document']['registerPostFixer'](_0x2bd434=>{let _0x5d80fd=!0x1;for(const _0x190d1e of _0x2aa042['model']['document']['differ']['getChanges']())if('insert'==_0x190d1e['type'])for(const _0x32f3b3 of this['_suggestions']['values']()){if(_0x32f3b3['isMultiRange']||!_0x32f3b3['isInContent'])continue;const _0x2dd90c='formatBlock'==_0x32f3b3['type'],_0xdf3121=this['_getAttributeKey'](_0x32f3b3),_0x45ebd3=_0xdf3121&&this['_isBlockAttribute'](_0xdf3121);if(!_0x2dd90c&&!_0x45ebd3)continue;const _0x191374=_0x32f3b3['getFirstRange']();if(_0x191374['start']['parent']!=_0x191374['end']['parent']&&!_0x191374['end']['isAtEnd']){const _0x1fc764=_0x2aa042['model']['createPositionAt'](_0x191374['start']['nodeAfter'],'end'),_0x4b47eb=_0x2aa042['model']['createRange'](_0x191374['start'],_0x1fc764);_0x2bd434['updateMarker'](_0x32f3b3['getFirstMarker'](),{'range':_0x4b47eb}),_0x5d80fd=!0x0;}}return _0x5d80fd;}),_0x2aa042['model']['document']['registerPostFixer'](_0x5cb87c=>this['_processAttributeChanges'](_0x5cb87c)),_0x2aa042['model']['document']['registerPostFixer'](_0x39834c=>!_0x39834c['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x39834c)),_0x2aa042['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x2aa042['model']['document']['on']('change:data',(_0x100772,_0x54532e)=>{if(!_0x54532e['isLocal']||_0x54532e['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x3ae324=_0x2aa042['model']['document']['differ']['getChanges']();if(0x0==_0x3ae324['length'])return;const _0x33dbdc=[],_0x474742=_0x3ae324['filter'](_0xe220ca=>'attribute'==_0xe220ca['type']),_0x4f438c=_0x3ae324['filter'](_0x3a181=>'insert'==_0x3a181['type']&&'$text'!=_0x3a181['name']);for(const _0x454382 of _0x474742)this['_isRegisteredAttribute'](_0x454382['attributeKey'])&&_0x33dbdc['push']({'key':_0x454382['attributeKey'],'newValue':_0x454382['attributeNewValue'],'oldValue':_0x454382['attributeOldValue'],'range':qt(_0x454382['range'],_0x2aa042['model'])});for(const _0x45fcf5 of _0x4f438c){if('rename'!=_0x45fcf5['action']&&'refresh'!=_0x45fcf5['action'])continue;const _0x18a467=zt(_0x45fcf5['position']['nodeAfter'],_0x2aa042['model']),_0x4b2da9=_0x45fcf5['before'];'rename'==_0x45fcf5['action']&&_0x33dbdc['push']({'key':m,'newValue':_0x45fcf5['name'],'oldValue':_0x4b2da9['name'],'range':_0x18a467});for(const [_0x25d003,_0x5edb43]of _0x4b2da9['attributes']){if(!this['_isRegisteredAttribute'](_0x25d003))continue;const _0x192259=_0x45fcf5['attributes']['get'](_0x25d003);_0x5edb43!==_0x192259&&_0x33dbdc['push']({'key':_0x25d003,'newValue':_0x192259,'oldValue':_0x5edb43,'range':_0x18a467});}for(const [_0x48498c,_0x58de60]of _0x45fcf5['attributes'])this['_isRegisteredAttribute'](_0x48498c)&&(_0x4b2da9['attributes']['has'](_0x48498c)||_0x33dbdc['push']({'key':_0x48498c,'newValue':_0x58de60,'oldValue':null,'range':_0x18a467}));}0x0!=_0x33dbdc['length']&&_0x2aa042['model']['enqueueChange'](_0x54532e,_0x1f5360=>{const _0x4699e6=_0x110ca2();for(const {range:_0x596b5b,key:_0x5a0f04,oldValue:_0xcb6984,newValue:_0x50e83e}of _0x33dbdc)this['markAttributeChange'](_0x596b5b,_0x5a0f04,_0xcb6984,_0x50e83e,{'groupId':_0x4699e6});this['_reduceExistingSuggestions'](_0x1f5360,_0x33dbdc);});},{'priority':'lowest'}),_0x2aa042['model']['markers']['on']('update:suggestion',(_0x2d4288,_0x3915bc,_0x15cbfd)=>{if(null==_0x15cbfd){const {id:_0x2cb415}=this['_splitMarkerName'](_0x3915bc['name']),_0x2746bd=this['_suggestions']['get'](_0x2cb415);_0x2746bd&&_0x2746bd['addMarkerName'](_0x3915bc['name']);}}),_0x2aa042['model']['document']['on']('change:data',()=>{const _0x3ba66d=Array['from'](_0x2aa042['model']['document']['differ']['getChangedMarkers']())['filter'](_0x4e5c23=>'suggestion'===this['_splitMarkerName'](_0x4e5c23['name'])['group']);if(0x0===_0x3ba66d['length'])return;_0x3ba66d['sort']((_0x302071,_0x32e649)=>{const _0x21063b=_0x302071['data']['oldRange'],_0x136c01=_0x32e649['data']['oldRange'];return null===_0x21063b&&null===_0x136c01?0x0:null===_0x21063b&&null!==_0x136c01?-0x1:null!==_0x21063b&&null===_0x136c01?0x1:_0x21063b['start']['isBefore'](_0x136c01['start'])?-0x1:0x1;});const _0x17e211=new Set(),_0x1189aa=new Set();for(const {name:_0x38cd80,data:_0x2d18e4}of _0x3ba66d){const {id:_0x2d5e93}=this['_splitMarkerName'](_0x38cd80);if(null===_0x2d18e4['oldRange']){const _0x4e5d2a=this['_handleNewSuggestionMarker'](_0x38cd80);_0x1189aa['add'](_0x4e5d2a);}else{const _0x4db940=this['_suggestions']['get'](_0x2d5e93);null!==_0x2d18e4['newRange']||_0x4db940['isInContent']?(_0x17e211['add'](_0x4db940['head']),_0x1189aa['add'](_0x4db940)):this['_removeSuggestion'](_0x4db940);}}_0x1189aa['size']>0x0&&this['_refreshSuggestionsChain'](_0x1189aa);for(const _0x14c258 of _0x17e211)this['fire']('suggestionChanged',_0x14c258);}),_0x2aa042['model']['on']('applyOperation',(_0x233894,_0x312b72)=>{const _0x274db5=_0x312b72[0x0];if(!this['_suggestions']['size'])return;if(!_0x274db5['isDocumentOperation'])return;if(_0x274db5['batch']['isUndo']||!_0x274db5['batch']['isLocal'])return;let _0x52915a,_0x571fb4;switch(_0x274db5['type']){case'insert':_0x52915a=_0x2aa042['model']['createPositionAt'](_0x274db5['position']),_0x571fb4=_0x52915a['getShiftedBy'](_0x274db5['howMany']);break;case'split':_0x52915a=_0x2aa042['model']['createPositionAt'](_0x274db5['splitPosition']),_0x571fb4=_0x2aa042['model']['createPositionAt'](_0x274db5['moveTargetPosition']);break;case'move':_0x52915a=_0x2aa042['model']['createPositionAt'](_0x274db5['targetPosition']),_0x571fb4=_0x52915a['getShiftedBy'](_0x274db5['howMany']);break;default:return;}const _0x10c074=_0x2aa042['model']['createRange'](_0x52915a,_0x571fb4);_0x2aa042['model']['change'](()=>{for(const {suggestion:_0x5d648b,meta:_0x53c1ed}of this['_findSuggestions'](_0x10c074)){if(_0x5d648b['isMultiRange'])continue;if('formatInline'==_0x5d648b['type'])continue;const _0x4c0465=this['_getAttributeKey'](_0x5d648b);if(_0x4c0465&&this['_isBlockAttribute'](_0x4c0465)&&'split'!=_0x274db5['type'])continue;const _0x52c606=_0x5d648b['data']&&_0x5d648b['data']['multipleBlocks'];('formatBlock'!=_0x5d648b['type']||'split'==_0x274db5['type']&&!_0x52c606)&&(_0x53c1ed['containsRangeInObject']||'insertion'==_0x5d648b['type']&&_0x53c1ed['isOwn']||_0x5d648b['getFirstRange']()['containsRange'](_0x10c074)&&this['_breakSuggestionMarker'](_0x5d648b,_0x52915a,_0x571fb4));}});},{'priority':'lowest'}),_0x2aa042['model']['on']('deleteContent',(_0x2876f3,_0x4653aa)=>{const _0x16b93b=_0x4653aa[0x0],_0x451cdc=_0x4653aa[0x1];if(_0x451cdc&&_0x451cdc['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x16b93b['isCollapsed'])return;const _0x5c90e5=_0x2aa042['model']['schema'],{start:_0x1b93e6,end:_0x2275a5}=_0x16b93b['getFirstRange'](),_0x21d7eb=_0x1b93e6['nodeAfter']&&_0x5c90e5['isLimit'](_0x1b93e6['nodeAfter'])?null:_0x5c90e5['getNearestSelectionRange'](_0x1b93e6,'forward'),_0x28a79b=_0x2275a5['nodeBefore']&&_0x5c90e5['isLimit'](_0x2275a5['nodeBefore'])?null:_0x5c90e5['getNearestSelectionRange'](_0x2275a5,'backward'),_0x48be86=_0x2aa042['model']['createRange'](_0x21d7eb?_0x21d7eb['start']:_0x1b93e6,_0x28a79b?_0x28a79b['end']:_0x2275a5);_0x2aa042['model']['change'](_0x56d34f=>{this['markDeletion'](_0x48be86);const _0x5e6eb9=_0x2aa042['model']['schema']['getNearestSelectionRange'](_0x48be86['start']);_0x16b93b['is']('documentSelection')?_0x56d34f['setSelection'](_0x5e6eb9):_0x16b93b['setTo'](_0x5e6eb9);}),_0x2876f3['stop']();},{'priority':_0x533dca['normal']+0xa}),_0x2aa042['model']['on']('insertContent',(_0x218485,_0x4831aa)=>{const _0x32fd37=_0x4831aa[_0x4831aa['length']-0x1];_0x32fd37&&_0x32fd37['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x2aa042['model']['change'](()=>{let _0x393e30=_0x2aa042['model']['insertContent'](_0x4831aa[0x0],_0x4831aa[0x1],_0x4831aa[0x2],{'forceDefaultExecution':!0x0});if(!_0x393e30)return;_0x218485['return']=_0x393e30['clone']();const _0x356654=_0x393e30['end']['nodeBefore'],_0x49e3c7=_0x2aa042['model']['schema'];_0x356654&&_0x49e3c7['isBlock'](_0x356654)&&!_0x49e3c7['isObject'](_0x356654)&&(_0x393e30=_0x2aa042['model']['createRange'](_0x393e30['start'],_0x2aa042['model']['createPositionAt'](_0x356654,'end'))),this['markInsertion'](_0x393e30);}),_0x218485['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x4c1478=new D(_0x2aa042,this['_suggestions']);_0x2aa042['commands']['add']('acceptSuggestion',_0x4c1478),this['enableCommand']('acceptSuggestion');const _0x1bb857=new $(_0x2aa042,this['_suggestions']);_0x2aa042['commands']['add']('discardSuggestion',_0x1bb857),this['enableCommand']('discardSuggestion'),_0x2aa042['commands']['add']('acceptAllSuggestions',new M(_0x2aa042,_0x4c1478,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x2aa042['commands']['add']('discardAllSuggestions',new M(_0x2aa042,_0x1bb857,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x2aa042['commands']['add']('acceptSelectedSuggestions',new B(_0x2aa042,_0x4c1478,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x2aa042['commands']['add']('discardSelectedSuggestions',new B(_0x2aa042,_0x1bb857,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x375b08=_0x2aa042['plugins']['get']('CommentsRepository');this['listenTo'](_0x375b08,'addComment',(_0x1fbd6d,{threadId:_0x2c3674})=>{const _0x56da43=this['_suggestions']['get'](_0x2c3674);_0x56da43&&_0x56da43['commentThread']&&0x1===_0x56da43['commentThread']['length']&&this['_updateSuggestionData'](_0x2c3674,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x375b08,'removeComment',(_0x19d664,{threadId:_0x136fd5})=>{const _0x54ca59=this['_suggestions']['get'](_0x136fd5);_0x54ca59&&_0x54ca59['commentThread']&&!_0x54ca59['commentThread']['length']&&this['_updateSuggestionData'](_0x136fd5,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x4ed00d){const _0x117464=_0x5990df([0x69,0x71,0x43,0x49,0x6e,0x59,0x52,0x63,0x34,0x68,0x64,0x79,0x48,0x6f,0x6a,0x66,0x32,0x58,0x77,0x61,0x55,0x4c,0x72,0x76,0x4b,0x4d,0x4a,0x42,0x41,0x50,0x7a,0x67,0x6c,0x30,0x47,0x38,0x51,0x70,0x75,0x46,0x31,0x54,0x36,0x73,0x33,0x74,0x53,0x37,0x56,0x57,0x62,0x6d,0x4f,0x78,0x65,0x5a,0x39,0x45,0x44,0x35,0x4e,0x6b]),_0x327cd4=0x1d416b54,_0x3e5dfe=0x1d461b7c^_0x327cd4,_0xa5b1b3=window[_0x5990df([0x44,0x61,0x74,0x65])][_0x5990df([0x6e,0x6f,0x77])](),_0x507a5a=_0x4ed00d[_0x5990df([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x337740=new window[(_0x5990df([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x52012e=>{_0x507a5a[_0x5990df([0x6f,0x6e,0x63,0x65])](_0x5990df([0x72,0x65,0x61,0x64,0x79]),_0x52012e);}),_0x12aba2={[_0x5990df([0x6b,0x74,0x79])]:_0x5990df([0x45,0x43]),[_0x5990df([0x75,0x73,0x65])]:_0x5990df([0x73,0x69,0x67]),[_0x5990df([0x63,0x72,0x76])]:_0x5990df([0x50,0x2d,0x32,0x35,0x36]),[_0x5990df([0x78])]:_0x5990df([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]),[_0x5990df([0x79])]:_0x5990df([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]),[_0x5990df([0x61,0x6c,0x67])]:_0x5990df([0x45,0x53,0x32,0x35,0x36])},_0x705aba=_0x507a5a[_0x5990df([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5990df([0x67,0x65,0x74])](_0x5990df([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2ef1b4(){let _0x4c96d8,_0x10156c=null,_0x43e954=null;try{if(_0x705aba==_0x5990df([0x47,0x50,0x4c]))return _0x5990df([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4c96d8=_0x18ae4e(),!_0x4c96d8)return _0x5990df([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4c96d8[_0x5990df([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x43e954=_0x1e2475(_0x4c96d8[_0x5990df([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4c96d8[_0x5990df([0x6a,0x74,0x69])])),await _0x2ff198()?_0x4c7c76()?_0x192a3a()?_0x5990df([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3fa157()?(_0x4c96d8[_0x5990df([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5990df([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x10156c=_0x2c2e23(_0x5990df([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4c96d8[_0x5990df([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5990df([0x74,0x72,0x69,0x61,0x6c])&&(_0x10156c=_0x2c2e23(_0x5990df([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x49aefa()):_0x5990df([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5990df([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5990df([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5990df([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x192a3a(){const _0x295d3d=[_0x5990df([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5990df([0x74,0x72,0x69,0x61,0x6c])][_0x5990df([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c96d8[_0x5990df([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xa5b1b3/0x3e8:0xe10*_0x3e5dfe;return _0x4c96d8[_0x5990df([0x65,0x78,0x70])]<_0x295d3d;}function _0x4c7c76(){const _0x356b6d=_0x4c96d8[_0x5990df([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x356b6d)return!0x1;if(_0x356b6d[_0x5990df([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5990df([0x2a])))return!0x0;if(_0x356b6d[_0x5990df([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5990df([0x54,0x43])))return!0x0;if(_0x356b6d[_0x5990df([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5990df([0x52,0x54,0x43]))){if(_0x381e67())return!0x0;if(_0x5a1a11()||_0x16403f())return!0x0;}return!0x1;}function _0x3fa157(){const _0x1a02e3=_0x4c96d8[_0x5990df([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1a02e3||0x0==_0x1a02e3[_0x5990df([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4e83db}=new URL(window[_0x5990df([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1a02e3[_0x5990df([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e83db))return!0x0;const _0x275a13=_0x4e83db[_0x5990df([0x73,0x70,0x6c,0x69,0x74])](_0x5990df([0x2e]));return _0x1a02e3[_0x5990df([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x15de72=>_0x15de72[_0x5990df([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5990df([0x2a])))[_0x5990df([0x6d,0x61,0x70])](_0x59cb8f=>_0x59cb8f[_0x5990df([0x73,0x70,0x6c,0x69,0x74])](_0x5990df([0x2e])))[_0x5990df([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x921cb7=>_0x921cb7[_0x5990df([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x275a13[_0x5990df([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5990df([0x6d,0x61,0x70])](_0x462228=>Array(_0x275a13[_0x5990df([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x462228[_0x5990df([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5990df([0x66,0x69,0x6c,0x6c])](_0x462228[0x0]===_0x5990df([0x2a])?_0x5990df([0x2a]):'')[_0x5990df([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x462228))[_0x5990df([0x73,0x6f,0x6d,0x65])](_0x433180=>_0x275a13[_0x5990df([0x65,0x76,0x65,0x72,0x79])]((_0x2e9e05,_0x135b26)=>_0x433180[_0x135b26]===_0x2e9e05||_0x433180[_0x135b26]===_0x5990df([0x2a])));}function _0x49aefa(){return _0x10156c&&_0x43e954?new window[(_0x5990df([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5e6ade,_0x380dc1)=>{_0x10156c[_0x5990df([0x74,0x68,0x65,0x6e])](_0x5e6ade,_0x380dc1),_0x43e954[_0x5990df([0x74,0x68,0x65,0x6e])](_0x4b96cb=>{_0x4b96cb!=_0x5990df([0x56,0x61,0x6c,0x69,0x64])&&_0x5e6ade(_0x4b96cb);},_0x380dc1);}):_0x10156c||_0x43e954||_0x5990df([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1e2475(_0x4e1352,_0xf933b5){return new window[(_0x5990df([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2bc416=>{if(_0x2e9c80())return _0x2bc416(_0x5990df([0x56,0x61,0x6c,0x69,0x64]));_0x531b9b(),_0x507a5a[_0x5990df([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5990df([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4fd9fc=!0x1;const _0x1f2a21=_0x110ca2();function _0x516523(_0x166260){return!!_0x166260&&(typeof _0x166260===_0x5990df([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x166260===_0x5990df([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x166260[_0x5990df([0x74,0x68,0x65,0x6e])]===_0x5990df([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x166260[_0x5990df([0x63,0x61,0x74,0x63,0x68])]===_0x5990df([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2f23a7(_0x3de3cb){_0x5730a8(_0x3de3cb)[_0x5990df([0x74,0x68,0x65,0x6e])](_0x2428ce=>{if(!_0x2428ce||_0x2428ce[_0x5990df([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5990df([0x6f,0x6b]))return _0x5990df([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x9d994(_0x2a6672(_0x1f2a21+_0xf933b5))!=_0x2428ce[_0x5990df([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5990df([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5990df([0x56,0x61,0x6c,0x69,0x64]);})[_0x5990df([0x74,0x68,0x65,0x6e])](_0x3f889a=>(_0x6fcc91(),_0x3f889a),()=>{const _0x287113=_0x1843b9();return null==_0x287113?(_0x6fcc91(),_0x5990df([0x56,0x61,0x6c,0x69,0x64])):_0x5990df(_0xa5b1b3-_0x287113>(0x394def54^_0x327cd4)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5990df([0x74,0x68,0x65,0x6e])](_0x2bc416)[_0x5990df([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2bc416(_0x5990df([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5b3291=0x1d7785d4^_0x327cd4;function _0x6fcc91(){const _0x127937=_0x5990df([0x6c,0x6c,0x63,0x74,0x2d])+_0x9d994(_0x2a6672(_0x4e1352)),_0x88a76f=_0x41eb0e(_0x9d994(window[_0x5990df([0x4d,0x61,0x74,0x68])][_0x5990df([0x63,0x65,0x69,0x6c])](_0xa5b1b3/_0x5b3291)));window[_0x5990df([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5990df([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x127937,_0x88a76f);}function _0x1843b9(){const _0xc39e93=_0x5990df([0x6c,0x6c,0x63,0x74,0x2d])+_0x9d994(_0x2a6672(_0x4e1352)),_0x3ea760=window[_0x5990df([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5990df([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xc39e93);return _0x3ea760?window[_0x5990df([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x41eb0e(_0x3ea760),0x10)*_0x5b3291:null;}function _0x5730a8(_0x5edcb2){return new window[(_0x5990df([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xecc135,_0x56f155)=>{_0x5edcb2[_0x5990df([0x74,0x68,0x65,0x6e])](_0xecc135,_0x56f155),window[_0x5990df([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x56f155,0x1d40bf94^_0x327cd4);});}}_0x507a5a[_0x5990df([0x6f,0x6e])](_0x5990df([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3973b7,_0x28fa5b)=>{if(_0x28fa5b[0x0]!=_0x4e1352)return _0x2bc416(_0x5990df([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x28fa5b[0x1]={..._0x28fa5b[0x1],[_0x5990df([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1f2a21};},{[_0x5990df([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5990df([0x68,0x69,0x67,0x68])}),_0x507a5a[_0x5990df([0x6f,0x6e])](_0x5990df([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2eab35=>{_0x516523(_0x2eab35[_0x5990df([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4fd9fc=!0x0,_0x2f23a7(_0x2eab35[_0x5990df([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5990df([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5990df([0x6c,0x6f,0x77])}),_0x337740[_0x5990df([0x74,0x68,0x65,0x6e])](()=>{_0x4fd9fc||_0x2bc416(_0x5990df([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2e9c80(){return _0x507a5a[_0x5990df([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5990df([0x76,0x69,0x65,0x77])][_0x5990df([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5990df([0x61,0x75,0x74,0x6f]);}function _0x531b9b(){_0x507a5a[_0x5990df([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5990df([0x76,0x69,0x65,0x77])][_0x5990df([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5990df([0x61,0x75,0x74,0x6f]);}}function _0x2c2e23(_0x3b51df){const _0x44dd6a=[new window[(_0x5990df([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x16badd=>setTimeout(_0x16badd,0x1d485598^_0x327cd4)),_0x337740[_0x5990df([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5990df([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x29fecc=>{let _0x49948a=0x0;_0x507a5a[_0x5990df([0x6d,0x6f,0x64,0x65,0x6c])][_0x5990df([0x6f,0x6e])](_0x5990df([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x505c8d,_0x2fbfeb)=>{_0x2fbfeb[0x0][_0x5990df([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x49948a++,_0x49948a==(0x1d416aac^_0x327cd4)&&(_0x29fecc(),_0x505c8d[_0x5990df([0x6f,0x66,0x66])]());});}))];return window[_0x5990df([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5990df([0x72,0x61,0x63,0x65])](_0x44dd6a)[_0x5990df([0x74,0x68,0x65,0x6e])](()=>_0x3b51df);}async function _0x7c6ad7(){await _0x337740,_0x507a5a[_0x5990df([0x6d,0x6f,0x64,0x65,0x6c])][_0x5990df([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3fec57,_0x507a5a[_0x5990df([0x6d,0x6f,0x64,0x65,0x6c])][_0x5990df([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3fec57,_0x507a5a[_0x5990df([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5990df([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x381e67(){return _0x7b3608(_0x5990df([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5e812d(_0x5990df([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x5990df([0x73,0x74,0x61,0x74,0x65])]==_0x5990df([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x5a1a11(){return _0x7b3608(_0x5990df([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 _0x16403f(){return _0x7b3608(_0x5990df([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x9b01fc(_0x4cdcb6){const _0x18da73=_0x4d12b4();_0x507a5a[_0x18da73]=_0x5990df([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4cdcb6,_0x4cdcb6!=_0x5990df([0x56,0x61,0x6c,0x69,0x64])&&_0x7c6ad7();}function _0x4d12b4(){const _0x57988b=window[_0x5990df([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5990df([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5990df([0x6e,0x6f,0x77])]())[_0x5990df([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5990df([0x2e]),'');let _0x204b7b=_0x5990df([0x69]);for(let _0x29f444=0x0;_0x29f444<_0x57988b[_0x5990df([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x29f444+=0x2){let _0x58fbad=window[_0x5990df([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x57988b[_0x5990df([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x29f444,_0x29f444+0x2));_0x58fbad>=_0x117464[_0x5990df([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x58fbad-=_0x117464[_0x5990df([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x204b7b+=_0x117464[_0x58fbad];}return _0x204b7b;}function _0x18ae4e(){const _0x1027cf=_0x705aba[_0x5990df([0x73,0x70,0x6c,0x69,0x74])](_0x5990df([0x2e]));if(0x3!=_0x1027cf[_0x5990df([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xe3c135(_0x1027cf[0x1]);function _0xe3c135(_0x2ea70f){const _0x2b6aae=_0x1edac2(_0x2ea70f);return _0x2b6aae&&_0x46150a()?_0x2b6aae:null;function _0x46150a(){const _0x8352c0=_0x2b6aae[_0x5990df([0x6a,0x74,0x69])],_0x3ee699=window[_0x5990df([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x8352c0[_0x5990df([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x8352c0[_0x5990df([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3349e7={..._0x2b6aae,[_0x5990df([0x6a,0x74,0x69])]:_0x8352c0[_0x5990df([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x8352c0[_0x5990df([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3349e7[_0x5990df([0x76,0x63])],_0x2a6672(_0x3349e7)==_0x3ee699;}}}async function _0x2ff198(){let _0x45e68e=!0x0;try{const _0x2d2db7=_0x705aba[_0x5990df([0x73,0x70,0x6c,0x69,0x74])](_0x5990df([0x2e])),[_0x44c978,_0x1b36e2,_0x21971c]=_0x2d2db7;return _0x110979(_0x44c978),await _0x49c3e5(_0x44c978,_0x1b36e2,_0x21971c),_0x45e68e;}catch{return!0x1;}function _0x110979(_0x5b1c5a){const _0x245e24=_0x1edac2(_0x5b1c5a);_0x245e24&&_0x245e24[_0x5990df([0x61,0x6c,0x67])]==_0x5990df([0x45,0x53,0x32,0x35,0x36])||(_0x45e68e=!0x1);}async function _0x49c3e5(_0x1015b7,_0x5267c5,_0x4f6b51){const _0x231c7a=window[_0x5990df([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5990df([0x66,0x72,0x6f,0x6d])](_0x5a22a3(_0x4f6b51),_0xf90d00=>_0xf90d00[_0x5990df([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x31c159=new window[(_0x5990df([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5990df([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1015b7+_0x5990df([0x2e])+_0x5267c5),_0x48881c=window[_0x5990df([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5990df([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x48881c)return;const _0x271afd=await _0x48881c[_0x5990df([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5990df([0x6a,0x77,0x6b]),_0x12aba2,{[_0x5990df([0x6e,0x61,0x6d,0x65])]:_0x5990df([0x45,0x43,0x44,0x53,0x41]),[_0x5990df([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5990df([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5990df([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x48881c[_0x5990df([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5990df([0x6e,0x61,0x6d,0x65])]:_0x5990df([0x45,0x43,0x44,0x53,0x41]),[_0x5990df([0x68,0x61,0x73,0x68])]:{[_0x5990df([0x6e,0x61,0x6d,0x65])]:_0x5990df([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x271afd,_0x231c7a,_0x31c159)||(_0x45e68e=!0x1);}}function _0x1edac2(_0x4e785f){return _0x4e785f[_0x5990df([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5990df([0x65,0x79]))?JSON[_0x5990df([0x70,0x61,0x72,0x73,0x65])](_0x5a22a3(_0x4e785f)):null;}function _0x5a22a3(_0x4e27ce){return window[_0x5990df([0x61,0x74,0x6f,0x62])](_0x4e27ce[_0x5990df([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5990df([0x2b]))[_0x5990df([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5990df([0x2f])));}function _0x2a6672(_0x231c2a){let _0x24546d=0x1505;function _0x55dd35(_0x65b312){for(let _0x123e8d=0x0;_0x123e8d<_0x65b312[_0x5990df([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x123e8d++){const _0x285a36=_0x65b312[_0x5990df([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x123e8d);_0x24546d=(_0x24546d<<0x5)+_0x24546d+_0x285a36,_0x24546d&=_0x24546d;}}function _0x594999(_0xbb9e45){Array[_0x5990df([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xbb9e45)?_0xbb9e45[_0x5990df([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x594999):_0xbb9e45&&typeof _0xbb9e45==_0x5990df([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5990df([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xbb9e45)[_0x5990df([0x73,0x6f,0x72,0x74])]()[_0x5990df([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x548695,_0x1a254e])=>{_0x55dd35(_0x548695),_0x594999(_0x1a254e);}):_0x55dd35(window[_0x5990df([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xbb9e45));}return _0x594999(_0x231c2a),_0x24546d>>>0x0;}function _0x9d994(_0x3628b2){return _0x3628b2[_0x5990df([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5990df([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5990df([0x30]));}function _0x41eb0e(_0xaf7e96){return _0xaf7e96[_0x5990df([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5990df([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5990df([0x6a,0x6f,0x69,0x6e])]('');}function _0x7b3608(_0x59fe4c){return _0x507a5a[_0x5990df([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5990df([0x68,0x61,0x73])](_0x59fe4c);}function _0x5e812d(_0x3853d5){return _0x507a5a[_0x5990df([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5990df([0x67,0x65,0x74])](_0x3853d5);}function _0x3fec57(){}function _0x5990df(_0xe82f81){return _0xe82f81['map'](_0x14a2ee=>String['fromCharCode'](_0x14a2ee))['join']('');}_0x9b01fc(await _0x2ef1b4());}(this);}set['adapter'](_0x54398d){if(this['_adapter'])throw new _0x5d208c('track-changes-adapter-already-set',this);this['_adapter']=_0x54398d;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0xe9ecde=!0x1,toJSON:_0x441df4=!0x1}={}){const _0x502b0d=[];for(const _0x4fcb45 of this['_suggestions']['values']())_0xe9ecde&&!_0x4fcb45['isInContent']||_0x502b0d['push'](_0x4fcb45);return _0x441df4?_0x502b0d['map'](_0xabc6d2=>_0xabc6d2['toJSON']()):_0x502b0d;}['getSuggestion'](_0x392693){const _0x4e0310=this['_suggestions']['get'](_0x392693);if(!_0x4e0310)throw new _0x5d208c('track-changes-suggestion-not-found',this);return _0x4e0310;}['hasSuggestion'](_0x2dc78d){return this['_suggestions']['has'](_0x2dc78d);}['addSuggestionData'](_0x3a9f3f){const {authorId:_0x4c8b05,id:_0x2b6d75,originalSuggestionId:_0xbc07cc,attributes:_0x53d0b0}=_0x3a9f3f,[_0x5af4f4,_0x49ddae]=_0x3a9f3f['type']['split'](':'),_0xa56ba1=this['_suggestions']['get'](_0x2b6d75)||this['_createSuggestion'](_0x5af4f4,_0x49ddae,_0x2b6d75,_0x4c8b05,_0x53d0b0,_0xbc07cc);if(this['_addThreadToSuggestion'](_0xa56ba1),this['_checkSuggestionCorrectness'](_0xa56ba1,_0x5af4f4,_0x49ddae||null,_0x4c8b05),_0xa56ba1['createdAt']=_0x3a9f3f['createdAt'],_0xa56ba1['_isDataLoaded']=!0x0,_0x53d0b0&&_0x53d0b0['@external']){const _0x17d267=_0x53d0b0['@external'],_0x5552f8=this['_getExternalAuthor'](_0x17d267['authorName']);_0xa56ba1['authoredAt']=_0x17d267['createdAt'],_0xa56ba1['author']=_0x5552f8,_0xa56ba1['isExternal']=!0x0;}else _0xa56ba1['authoredAt']=_0x3a9f3f['createdAt'];switch(_0x3a9f3f['data']&&(_0xa56ba1['data']=_0x3a9f3f['data']),_0x3a9f3f['attributes']&&(_0xa56ba1['attributes']=_0x3a9f3f['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0xa56ba1['_saved']=!0x0),this['_suggestionState']['get'](_0xa56ba1)){case'notReady':this['_suggestionState']['set'](_0xa56ba1,'dataReady');break;case'markerReady':_0xa56ba1['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0xa56ba1])),this['_refreshSuggestionsChain'](new Set([_0xa56ba1])),this['_suggestionState']['set'](_0xa56ba1,'ready'),this['fire']('suggestionLoaded',_0xa56ba1)):this['_suggestionState']['set'](_0xa56ba1,'removed');}return _0xa56ba1;}['acceptSuggestion'](_0xeceed4){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x110661 of _0xeceed4['getAllAdjacentSuggestions']())_0x110661['accept']();});});}['discardSuggestion'](_0x6465fc){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x175ec8 of _0x6465fc['getAllAdjacentSuggestions']())_0x175ec8['discard']();});});}['enableCommand'](_0x4513c4,_0x5510d6){const _0x2b152b=this['editor']['commands']['get'](_0x4513c4);if(!_0x2b152b)throw new _0x5d208c('track-changes-command-not-found',this,{'commandName':_0x4513c4});if(this['_enabledCommands']['has'](_0x2b152b))throw new _0x5d208c('track-changes-enable-command-twice',this,{'commandName':_0x4513c4});this['_enabledCommands']['add'](_0x2b152b),_0x5510d6&&_0x2b152b['on']('execute',(_0x165ad8,_0x35d0b9)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x35d0b9['length']>0x0&&_0x35d0b9[_0x35d0b9['length']-0x1]&&_0x35d0b9[_0x35d0b9['length']-0x1]['forceDefaultExecution']?_0x35d0b9['pop']():(_0x165ad8['return']=_0x5510d6((..._0x5acec3)=>_0x2b152b['execute'](..._0x5acec3,{'forceDefaultExecution':!0x0}),..._0x35d0b9),_0x165ad8['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x23fe44){let _0x4858a6,_0x408f67;const _0x4983df=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4858a6=_0x23fe44();}catch(_0x270362){_0x408f67=_0x270362;}return _0x4983df||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x408f67&&_0x5d208c['rethrowUnexpectedError'](_0x408f67,this),_0x4858a6;}['markInsertion'](_0x8f83a,_0x32b450=null,_0xc2507c={}){if(_0x8f83a['isCollapsed'])return null;const _0x59b570=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0xc2507c['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x28df3a,meta:_0x2bf824}of this['_findSuggestions'](_0x8f83a,'insertion'))if(_0x2bf824['isOwn']){if(!_0x2bf824['isNextTo']){if(_0x2bf824['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x28df3a,_0xc2507c))continue;return _0x28df3a;}if(Xt(_0x28df3a,_0xc2507c))return _0x28df3a;this['_breakSuggestionMarker'](_0x28df3a,_0x8f83a['start'],_0x8f83a['end']);break;}if(_0x32b450==_0x28df3a['subType']&&Xt(_0x28df3a,_0xc2507c)){const _0x87553a=_0x28df3a['getFirstRange']();return _0x87553a['start']['isEqual'](_0x8f83a['end'])?this['_setSuggestionRange'](_0x28df3a,this['_model']['createRange'](_0x8f83a['start'],_0x87553a['end'])):this['_setSuggestionRange'](_0x28df3a,this['_model']['createRange'](_0x87553a['start'],_0x8f83a['end'])),_0x28df3a;}}const _0x67fff4=_0x110ca2(),_0x1adff4=_0x59b570['id'],_0x52ed23=_0x32b450?'insertion:'+_0x32b450:'insertion',_0x4b8d34=this['_setSuggestionData']({'id':_0x67fff4,'type':_0x52ed23,'createdAt':new Date(),'authorId':_0x1adff4,'attributes':_0xc2507c});return this['_addSuggestionMarker'](_0x52ed23,_0x67fff4,_0x1adff4,_0x8f83a),_0x4b8d34;}['markMultiRangeInsertion'](_0x41f632,_0x2b572a='multi',_0x3c1d24={}){const _0x5d4144=this['editor']['plugins']['get']('Users')['me'],_0x1051e6=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2b572a,'join');this['_trackingSessionId']&&(_0x3c1d24['trackingSessionId']=this['_trackingSessionId']);for(const _0x213811 of this['getSuggestions']())if(_0x213811['author']['id']==_0x5d4144['id']&&'insertion'==_0x213811['type']&&_0x213811['subType']==_0x2b572a&&Xt(_0x213811,_0x3c1d24)&&(_0x1051e6(_0x213811['getRanges'](),_0x41f632)||_0x1051e6(_0x41f632,_0x213811['getRanges']()))){for(const _0x2d0cd5 of _0x41f632)_0x213811['addRange'](_0x2d0cd5);return _0x213811;}for(const {suggestion:_0x2cd5e2,meta:_0x28444c}of this['_findSuggestions'](_0x41f632,'insertion')){if(!_0x28444c['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x28444c['containsRangeInObject'])continue;if(!Xt(_0x2cd5e2,_0x3c1d24))continue;let _0x79a56e=!0x0;for(const _0x2c6516 of _0x2cd5e2['getRanges']())for(const _0x1cb33a of _0x41f632)if(!_0x2c6516['containsRange'](_0x1cb33a)){_0x79a56e=!0x1;break;}if(_0x79a56e)return _0x2cd5e2;}const _0x5a25f0=_0x110ca2(),_0x4f6f62=_0x5d4144['id'],_0x3d108a='insertion:'+_0x2b572a,_0x30eab1=this['_setSuggestionData']({'id':_0x5a25f0,'type':_0x3d108a,'createdAt':new Date(),'authorId':_0x4f6f62,'attributes':_0x3c1d24});for(const _0x58cf82 of _0x41f632)this['_addSuggestionMarker'](_0x3d108a,_0x5a25f0,_0x4f6f62,_0x58cf82,T['getMultiRangeId']());return _0x30eab1;}['markInlineFormat'](_0x1f527a,_0x5d6ae6,_0x13f22b=null,_0x44ee51={}){if(_0x13f22b=_0x13f22b||Lt(_0x5d6ae6),_0x1f527a['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x44ee51['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1d921b=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x13f22b,'accept');return this['forceDefaultExecution'](()=>_0x1d921b([_0x1f527a],_0x5d6ae6,_0x44ee51)),null;}const _0x1acd1c=this['editor']['plugins']['get']('Users')['me'],_0x44d9b1=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0xdc1b1d,meta:_0x26fa89}of this['_findSuggestions'](_0x1f527a,'insertion'))_0x26fa89['isOwn']&&!_0x26fa89['isInsideObject']&&_0x44d9b1['push'](..._0xdc1b1d['getRanges']());}const _0x4c2e04=function(_0x583efd,_0x1268cc){const _0x44ccbc=[];for(const _0x5e2821 of _0x1268cc){const _0x2f3343=_0x583efd['getIntersection'](_0x5e2821);_0x2f3343&&_0x44ccbc['push'](_0x2f3343);}return _0x44ccbc;}(_0x1f527a,_0x44d9b1),_0x275818=function(_0x4c156e,_0x95df54){const _0x5947ec=[_0x4c156e];for(const _0x4adf04 of _0x95df54){let _0x1418da=0x0;for(;_0x1418da<_0x5947ec['length'];){const _0x547135=_0x5947ec[_0x1418da]['getDifference'](_0x4adf04);_0x5947ec['splice'](_0x1418da,0x1,..._0x547135),_0x1418da+=_0x547135['length'];}}return _0x5947ec;}(_0x1f527a,_0x44d9b1);_0x4c2e04['length']&&this['_model']['change'](()=>{for(const _0x5cd637 of _0x4c2e04){const _0x170498=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x13f22b,'accept');this['forceDefaultExecution'](()=>_0x170498([_0x5cd637],_0x5d6ae6,_0x44ee51));}});for(const _0x5c7c33 of _0x275818){let _0x3e3751=null,_0x4eb421=_0x5c7c33['start'],_0x39b08c=_0x5c7c33['end'];for(const {suggestion:_0x25e866,meta:_0x242741}of this['_findSuggestions'](_0x5c7c33,'formatInline')){if(!_0x242741['isOwn'])continue;if(_0x25e866['subType']!=_0x13f22b)continue;if(!Xt(_0x25e866,_0x44ee51))continue;const _0x221ef6=_0x25e866['getFirstRange']();if(_0x221ef6['containsRange'](_0x5c7c33,!0x0))return null;_0x4eb421=_0x4eb421['isBefore'](_0x221ef6['start'])?_0x4eb421:_0x221ef6['start'],_0x39b08c=_0x39b08c['isAfter'](_0x221ef6['end'])?_0x39b08c:_0x221ef6['end'],_0x3e3751?_0x221ef6['start']['isBefore'](_0x3e3751['getFirstRange']()['start'])?(_0x3e3751['removeMarkers'](),_0x3e3751=_0x25e866):_0x25e866['removeMarkers']():_0x3e3751=_0x25e866;}const _0x24204e=this['_model']['createRange'](_0x4eb421,_0x39b08c);if(_0x3e3751)this['_setSuggestionRange'](_0x3e3751,_0x24204e);else{const _0x25d0d4=_0x110ca2(),_0x4738c5=_0x1acd1c['id'];this['_setSuggestionData']({'id':_0x25d0d4,'type':'formatInline:'+_0x13f22b,'data':_0x5d6ae6,'createdAt':new Date(),'authorId':_0x4738c5,'attributes':_0x44ee51}),this['_addSuggestionMarker']('formatInline:'+_0x13f22b,_0x25d0d4,_0x4738c5,_0x24204e);}}return null;}['markBlockFormat'](_0x521226,_0x244117,_0x1464bc=[],_0x43180d=null,_0x502438={}){_0x244117['formatGroupId']||(_0x244117['formatGroupId']=_0x244117['commandName']),_0x244117['multipleBlocks']=_0x521226['is']('range'),_0x43180d=_0x43180d||Lt(_0x244117);const _0x13f943=_0x1464bc['map'](_0x15d77b=>zt(_0x15d77b,this['_model'])),_0xb23ba7=_0x521226['is']('range')?_0x521226:zt(_0x521226,this['_model']);if(this['_trackingSessionId']&&(_0x502438['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x272ed6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x43180d,'accept');return this['forceDefaultExecution'](()=>_0x272ed6([_0xb23ba7],_0x244117,_0x502438)),null;}_0x13f943['push'](_0xb23ba7);let _0x3ef608=!0x0;for(const _0x73ef0b of _0x13f943)if(!this['_rangeIsInLocalUserInsertion'](_0x73ef0b)){_0x3ef608=!0x1;break;}if(_0x3ef608&&'always'!==this['_trackFormatChanges']){const _0x1ec31d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x43180d,'accept');return this['forceDefaultExecution'](()=>_0x1ec31d([_0xb23ba7],_0x244117,_0x502438)),null;}let _0x58dd26=null,_0x2bc82e=_0xb23ba7['start'],_0x51c849=_0xb23ba7['end'];for(const {suggestion:_0x489f23,meta:_0x2d6ebd}of this['_findSuggestions'](_0xb23ba7,'formatBlock')){if(!_0x2d6ebd['isOwn'])continue;if(_0x2d6ebd['isNextTo']||_0x2d6ebd['containsRangeInObject']||_0x2d6ebd['isInsideObject'])continue;if(_0x489f23['data']['formatGroupId']!=_0x244117['formatGroupId'])continue;if(!Xt(_0x489f23,_0x502438))continue;const _0x2e7b66=_0x489f23['getFirstRange']();if(_0x489f23['subType']==_0x43180d){if(_0x2e7b66['containsRange'](_0xb23ba7,!0x0))return null;_0x2bc82e=_0x2bc82e['isBefore'](_0x2e7b66['start'])?_0x2bc82e:_0x2e7b66['start'],_0x51c849=_0x51c849['isAfter'](_0x2e7b66['end'])?_0x51c849:_0x2e7b66['end'],_0x58dd26?_0x2e7b66['start']['isBefore'](_0x58dd26['getFirstRange']()['start'])?(_0x58dd26['removeMarkers'](),_0x58dd26=_0x489f23):_0x489f23['removeMarkers']():_0x58dd26=_0x489f23;}else{const _0x54cc03=_0xb23ba7['getIntersection'](_0x2e7b66);this['_cutOutSuggestionMarker'](_0x489f23,_0x54cc03);}}const _0xde5f24=this['editor']['plugins']['get']('Users')['me'],_0x587a72=_0x110ca2(),_0x3e984e=_0xde5f24['id'];if(_0x58dd26)return this['_setSuggestionRange'](_0x58dd26,this['_model']['createRange'](_0x2bc82e,_0x51c849)),_0x58dd26;{const _0x40d9f1=this['_setSuggestionData']({'id':_0x587a72,'type':'formatBlock:'+_0x43180d,'data':_0x244117,'createdAt':new Date(),'authorId':_0x3e984e,'attributes':_0x502438});return this['_addSuggestionMarker']('formatBlock:'+_0x43180d,_0x587a72,_0x3e984e,this['_model']['createRange'](_0x2bc82e,_0x51c849)),_0x40d9f1;}}['markMultiRangeBlockFormat'](_0x1be585,_0x100261,_0x1b8f2a=[],_0x364aa8=null,_0x194242={}){_0x100261['formatGroupId']||(_0x100261['formatGroupId']=_0x100261['commandName']);const _0x5139b4=_0x1be585[0x0];_0x100261['multipleBlocks']=_0x5139b4['is']('range'),_0x364aa8=_0x364aa8||Lt(_0x100261);const _0x33c89b=_0x1b8f2a['map'](_0x15227c=>zt(_0x15227c,this['_model'])),_0x134647=_0x5139b4['is']('range')?_0x1be585:_0x1be585['map'](_0x5009cb=>zt(_0x5009cb,this['_model']));if(this['_trackingSessionId']&&(_0x194242['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1d3320=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x364aa8,'accept');return this['forceDefaultExecution'](()=>_0x1d3320(_0x134647,_0x100261,_0x194242)),null;}_0x33c89b['push'](..._0x134647);let _0x59e3b6=!0x0;for(const _0x25c53d of _0x33c89b)if(!this['_rangeIsInLocalUserInsertion'](_0x25c53d)){_0x59e3b6=!0x1;break;}if(_0x59e3b6&&'always'!==this['_trackFormatChanges']){const _0x34cc41=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x364aa8,'accept');return this['forceDefaultExecution'](()=>_0x34cc41(_0x134647,_0x100261,_0x194242)),null;}const _0x2d587f=this['editor']['plugins']['get']('Users')['me'];for(const _0x56029d of this['getSuggestions']()){const _0x412ee7=_0x56029d['data'];if(_0x56029d['author']['id']!=_0x2d587f['id'])continue;if('formatBlock'!=_0x56029d['type']||_0x412ee7['formatGroupId']!=_0x100261['formatGroupId'])continue;if(!Xt(_0x56029d,_0x194242))continue;const _0x1e02fd=_0x56029d['subType']==_0x364aa8;for(let _0x54ca76=0x0;_0x54ca76<_0x134647['length'];_0x54ca76++){const _0x206f53=_0x134647[_0x54ca76];for(const _0x39a69a of _0x56029d['getMarkers']()){const _0x2b9f28=_0x39a69a['getRange']();if(_0x206f53['isEqual'](_0x2b9f28)){_0x1e02fd?(_0x134647['splice'](_0x54ca76,0x1),_0x54ca76--):_0x56029d['removeMarker'](_0x39a69a['name']);break;}}}}if(0x0==_0x134647['length'])return null;const _0x4d5622=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x364aa8,'join');for(const _0x5927b3 of this['getSuggestions']()){const _0x2bb05e=_0x5927b3['data'];if(_0x5927b3['author']['id']==_0x2d587f['id']&&('formatBlock'==_0x5927b3['type']&&_0x2bb05e['formatGroupId']==_0x100261['formatGroupId']&&_0x5927b3['subType']==_0x364aa8&&Xt(_0x5927b3,_0x194242)&&(_0x4d5622(_0x5927b3['getRanges'](),_0x134647)||_0x4d5622(_0x134647,_0x5927b3['getRanges']())))){for(const _0x496358 of _0x134647)_0x5927b3['addRange'](_0x496358);return _0x5927b3;}}const _0x1ece76=_0x110ca2(),_0x326f65=_0x2d587f['id'],_0x54a849='formatBlock:'+_0x364aa8,_0x411d8c=this['_setSuggestionData']({'id':_0x1ece76,'type':_0x54a849,'data':_0x100261,'createdAt':new Date(),'authorId':_0x326f65,'attributes':_0x194242});for(const _0x37613a of _0x134647)this['_addSuggestionMarker'](_0x54a849,_0x1ece76,_0x326f65,_0x37613a,T['getMultiRangeId']());return _0x411d8c;}['markDeletion'](_0x2b46e1,_0x53239b=null,_0x38234c={}){if(_0x2b46e1['isCollapsed'])return null;const _0x5bb93a=this['editor']['plugins']['get']('Users')['me'],_0x2345a6=new _0x217d71(_0x2b46e1['start'],_0x2b46e1['end']);this['_trackingSessionId']&&(_0x38234c['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x26c178,meta:_0x1fdff7}of this['_findSuggestions'](_0x2345a6,'insertion'))if(_0x1fdff7['isOwn']&&!_0x1fdff7['isNextTo']){if(_0x26c178['isMultiRange']){const _0x50c4ec=_0x26c178['getRanges']()['filter'](_0x2340a5=>'$graveyard'!=_0x2340a5['root']['rootName']);_0x50c4ec['every'](_0x449822=>_0x2345a6['containsRange'](_0x449822,!0x0))&&_0x26c178['discard']();if(_0x50c4ec['some'](_0x29d3d6=>_0x29d3d6['containsRange'](_0x2345a6,!0x0))){const _0x568110=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x53239b,'accept');return this['forceDefaultExecution'](()=>_0x568110([_0x2345a6],null,_0x38234c)),null;}}else{const _0x253a1c=_0x2345a6['getIntersection'](_0x26c178['getFirstRange']());null!==_0x253a1c&&_0x26c178['_onDiscard']([_0x253a1c],null,_0x38234c);}}if(_0x2345a6['detach'](),_0x2345a6['isCollapsed']||'$graveyard'==_0x2345a6['root']['rootName'])return null;let _0x3bde10=null,_0x1e05ff=_0x2345a6['start'],_0x123a9b=_0x2345a6['end'];const _0x405c79=this['_findSuggestions'](_0x2345a6,'deletion');for(const {suggestion:_0x332880,meta:_0x15431a}of _0x405c79){const _0x5e3cc0=this['_model']['createRange'](_0x1e05ff,_0x123a9b);if(_0x15431a['isOwn']&&(this['_mergeNestedSuggestions']||!_0x15431a['containsRangeInObject']&&!_0x15431a['isInsideObject'])){if(_0x332880['isMultiRange']){if(!Xt(_0x332880,_0x38234c))continue;let _0x8d6db9=!0x0;for(const _0x356305 of _0x332880['getRanges']()){if(_0x356305['containsRange'](_0x5e3cc0,!0x0))return _0x332880;_0x5e3cc0['containsRange'](_0x356305)||(_0x8d6db9=!0x1);}_0x8d6db9&&_0x332880['discard']();}else{const _0x53caea=_0x332880['getFirstRange']();if(_0x53caea['containsRange'](_0x5e3cc0,!0x0))return _0x332880;if(!Xt(_0x332880,_0x38234c)){_0x5e3cc0['containsRange'](_0x53caea)?_0x332880['removeMarkers']():_0x53caea['containsPosition'](_0x1e05ff)?_0x1e05ff=_0x53caea['end']:_0x53caea['containsPosition'](_0x123a9b)&&(_0x123a9b=_0x53caea['start']);continue;}_0x1e05ff=_0x1e05ff['isBefore'](_0x53caea['start'])?_0x1e05ff:_0x53caea['start'],_0x123a9b=_0x123a9b['isAfter'](_0x53caea['end'])?_0x123a9b:_0x53caea['end'],_0x38234c=Object['assign']({},_0x332880['attributes']),_0x3bde10?_0x53caea['start']['isBefore'](_0x3bde10['getFirstRange']()['start'])?(_0x3bde10['removeMarkers'](),_0x3bde10=_0x332880):_0x332880['removeMarkers']():_0x3bde10=_0x332880;}}}if(_0x3bde10)return this['_setSuggestionRange'](_0x3bde10,this['_model']['createRange'](_0x1e05ff,_0x123a9b)),_0x3bde10;{const _0x2badf9=_0x110ca2(),_0x2ee32b=this['_model']['createRange'](_0x1e05ff,_0x123a9b),_0x4bb50e=_0x5bb93a['id'],_0x566478=_0x53239b?'deletion:'+_0x53239b:'deletion',_0x3700b8=this['_setSuggestionData']({'id':_0x2badf9,'type':_0x566478,'createdAt':new Date(),'authorId':_0x4bb50e,'attributes':_0x38234c});return this['_addSuggestionMarker'](_0x566478,_0x2badf9,_0x4bb50e,_0x2ee32b),_0x3700b8;}}['markMultiRangeDeletion'](_0x9dd203,_0x538ac5='multi',_0x9df0ba={}){const _0xc12d7b=this['editor']['plugins']['get']('Users')['me'],_0x1008af=_0x9dd203['map'](_0x1de9dd=>new _0x217d71(_0x1de9dd['start'],_0x1de9dd['end'])),_0x5790ee=new Set();this['_trackingSessionId']&&(_0x9df0ba['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x9f3e2a,meta:_0x974e0d}of this['_findSuggestions'](_0x1008af,'insertion'))_0x974e0d['isOwn']&&!_0x974e0d['isNextTo']&&_0x5790ee['add'](_0x9f3e2a);for(const _0x5c19b4 of _0x5790ee)if(_0x5c19b4['isMultiRange']){const _0x1c4056=_0x5c19b4['getRanges']();(!_0x5c19b4['attributes']||!_0x5c19b4['attributes']['skipNestingCheck'])&&(_0x1c4056['every'](_0x580a8c=>_0x1008af['some'](_0xdb60e2=>_0xdb60e2['containsRange'](_0x580a8c,!0x0)))&&_0x5c19b4['discard']());if(_0x1008af['every'](_0x194e1f=>_0x1c4056['some'](_0x25c8a1=>_0x25c8a1['containsRange'](_0x194e1f,!0x0)))){const _0x456bed=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x538ac5,'accept');return this['forceDefaultExecution'](()=>_0x456bed(_0x9dd203,null,_0x9df0ba)),null;}}else{const _0x1f5b06=_0x5c19b4['getFirstRange']();_0x1008af['some'](_0x34a0f8=>_0x34a0f8['containsRange'](_0x1f5b06,!0x0))&&_0x5c19b4['discard']();if(_0x1008af['every'](_0x505627=>_0x1f5b06['containsRange'](_0x505627,!0x0))){const _0x175c21=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x538ac5,'accept');return this['forceDefaultExecution'](()=>_0x175c21(_0x1008af,null,_0x9df0ba)),null;}}const _0x31ae9d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x538ac5,'join');let _0x147321=null;for(const _0x275c4f of this['getSuggestions']())if(_0x275c4f['author']['id']==_0xc12d7b['id']&&_0x275c4f['isInContent']&&'deletion'==_0x275c4f['type']&&_0x275c4f['subType']==_0x538ac5&&Xt(_0x275c4f,_0x9df0ba)&&(_0x31ae9d(_0x275c4f['getRanges'](),_0x1008af)||_0x31ae9d(_0x1008af,_0x275c4f['getRanges']()))){if(_0x147321){if(_0x275c4f['commentThread']&&_0x275c4f['commentThread']['length'])continue;for(const _0x43523b of _0x275c4f['getRanges']())_0x147321['isIntersectingWithRange'](_0x43523b)||_0x147321['addRange'](_0x43523b);_0x275c4f['removeMarkers']();}else{_0x147321=_0x275c4f;for(const _0x4c0ae6 of _0x1008af)_0x275c4f['isIntersectingWithRange'](_0x4c0ae6)||_0x275c4f['addRange'](_0x4c0ae6);}}if(_0x147321)return _0x147321;_0x5790ee['clear']();for(const {suggestion:_0x434240,meta:_0x312cf8}of this['_findSuggestions'](_0x1008af,'deletion'))_0x312cf8['isOwn']&&(this['_mergeNestedSuggestions']||!_0x312cf8['containsRangeInObject']&&!_0x312cf8['isInsideObject'])&&Xt(_0x434240,_0x9df0ba)&&_0x5790ee['add'](_0x434240);for(const _0x4534b5 of _0x5790ee){const _0x17a61f=_0x4534b5['getRanges']();if(!_0x9df0ba||!_0x9df0ba['skipNestingCheck']){if(_0x1008af['every'](_0x267efa=>_0x17a61f['some'](_0x504f8e=>_0x504f8e['containsRange'](_0x267efa,!0x0))))return _0x4534b5;}(!_0x4534b5['attributes']||!_0x4534b5['attributes']['skipNestingCheck'])&&(_0x17a61f['every'](_0x48facb=>_0x1008af['some'](_0x2e445e=>_0x2e445e['containsRange'](_0x48facb,!0x0)))&&_0x4534b5['discard']());}const _0x4940fe=_0x110ca2(),_0x891846=_0xc12d7b['id'],_0xd52b45='deletion:'+_0x538ac5,_0x447823=this['_setSuggestionData']({'id':_0x4940fe,'type':_0xd52b45,'createdAt':new Date(),'authorId':_0x891846,'attributes':_0x9df0ba});for(const _0x1db4a5 of _0x1008af)_0x1db4a5['detach'](),_0x1db4a5['isCollapsed']||'$graveyard'==_0x1db4a5['root']['rootName']||this['_addSuggestionMarker'](_0xd52b45,_0x4940fe,_0x891846,_0x1db4a5,T['getMultiRangeId']());return _0x447823;}['markAttributeChange'](_0x4a51d7,_0x3f85d3,_0x1709ff,_0x20f08f,_0x3985f1){if(_0x4a51d7['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x5f8aea=this['editor']['plugins']['get']('Users')['me']['id'],_0x174981=Array['from'](this['_suggestions']['values']())['filter'](_0x1775d5=>'attribute'==_0x1775d5['type']&&_0x1775d5['data']['key']==_0x3f85d3&&_0x1775d5['isIntersectingWithRange'](_0x4a51d7));if(this['_trackingSessionId']&&(_0x3985f1['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x2b6470=this['_findSuggestions'](_0x4a51d7,'insertion')['filter'](({meta:_0x4039a0})=>_0x4039a0['isOwn']&&!_0x4039a0['isInsideObject']&&!_0x4039a0['isNextTo'])['map'](({suggestion:_0x14f153})=>_0x14f153);_0x174981['unshift'](..._0x2b6470);}const _0x1c71b7=new Map([[_0x4a51d7,_0x1709ff]]);for(const _0x5f08fc of _0x174981){const _0x19c885='attribute'==_0x5f08fc['type']?_0x5f08fc['data']['oldValue']:void 0x0,_0x4a9f40=_0x5f08fc['getFirstRange'](),_0xdc5212=Array['from'](_0x1c71b7['keys']())['find'](_0x1cd242=>_0x1cd242['isIntersecting'](_0x4a9f40));if(!_0xdc5212)continue;const _0x176f30=_0xdc5212['getDifference'](_0x4a9f40);this['_isBlockAttribute'](_0x3f85d3)&&'insertion'==_0x5f08fc['type']&&0x0!=_0x176f30['length']||(_0x1c71b7['delete'](_0xdc5212),_0x176f30['forEach'](_0xb85c51=>{_0x1c71b7['set'](_0xb85c51,_0x1709ff);}),'insertion'!=_0x5f08fc['type']&&_0x19c885!=_0x20f08f&&_0x1c71b7['set'](_0xdc5212['getIntersection'](_0x4a9f40),_0x19c885));}const _0x58ae3f=[];for(const [_0x47b3c5,_0x3bcb3e]of _0x1c71b7){const _0x1d70dd=_0x110ca2(),_0x149343={'key':_0x3f85d3,'oldValue':_0x3bcb3e,'newValue':_0x20f08f};_0x3f85d3['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':_0x3f85d3});const _0x37f469=('attribute:'+(_0x3f85d3+'|'+Lt({'newValue':_0x20f08f})))['substring'](0x0,0x3c),_0x2f90da=this['_setSuggestionData']({'id':_0x1d70dd,'type':_0x37f469,'data':_0x149343,'createdAt':new Date(),'authorId':_0x5f8aea,'attributes':_0x3985f1});_0x58ae3f['push'](_0x2f90da),this['_addSuggestionMarker'](_0x37f469,_0x1d70dd,_0x5f8aea,_0x47b3c5);}return _0x58ae3f;}['enableDefaultAttributesIntegration'](_0x323fe4){this['enableCommand'](_0x323fe4,(_0x156c3c,..._0x587a7f)=>{this['recordAttributeChanges'](()=>{_0x156c3c(..._0x587a7f);});});}['registerBlockAttribute'](_0xd67bfc){this['_blockAttributeKeys']['add'](_0xd67bfc);}['registerInlineAttribute'](_0x5b2238){this['_inlineAttributeKeys']['add'](_0x5b2238);}['startTrackingSession'](_0xf76999){return this['_trackingSessionId']=void 0x0!==_0xf76999?_0xf76999:_0x110ca2(),this['_trackingSessionId'];}['_getAttributeKey'](_0x32fb63){return'attribute'==_0x32fb63['type']?_0x32fb63['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x31a39b,_0x5c970e){const _0x11f16b=_0x31a39b['getFirstMarker']();this['_model']['change'](_0x530b8e=>{_0x530b8e['updateMarker'](_0x11f16b,{'range':_0x5c970e});});}['_addThreadToSuggestion'](_0x44d1b6){const _0x40ed71=_0x44d1b6['id'],_0x24527b=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x40ed71)||this['_commentsRepository']['addCommentThread']({'channelId':_0x24527b,'threadId':_0x40ed71,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x18a234=this['_commentsRepository']['getCommentThread'](_0x40ed71);_0x18a234['unbind']('isRemovable'),_0x18a234['isRemovable']=!0x1,_0x44d1b6['commentThread']=_0x18a234;}['_checkSuggestionCorrectness'](_0x504594,_0x34cb22,_0x4de8d8,_0x43c629){if(_0x504594['type']!=_0x34cb22||_0x504594['subType']!=_0x4de8d8||_0x504594['creator']['id']!=_0x43c629)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x5d208c('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x35f44d,_0x4cd4ff){const _0x1943cd=_0x35f44d['getFirstRange']();if(_0x4cd4ff['isEqual'](_0x1943cd))_0x35f44d['removeMarkers']();else{if(_0x1943cd['containsRange'](_0x4cd4ff)){const _0x48613c=this['_model']['createPositionAt'](_0x4cd4ff['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x35f44d,this['_model']['createRange'](_0x1943cd['start'],_0x48613c));const _0x2a4f08=_0x110ca2(),_0x2ea2d5=_0x35f44d['creator']['id'],_0x182b7b=_0x35f44d['type']+':'+_0x35f44d['subType'];this['_setSuggestionData']({'id':_0x2a4f08,'type':_0x182b7b,'createdAt':new Date(),'authorId':_0x2ea2d5,'data':_0x35f44d['data'],'attributes':_0x35f44d['attributes']});const _0x29a4ef=this['_model']['createPositionAt'](_0x4cd4ff['end']['parent'],'after'),_0xc2206a=this['_model']['createRange'](_0x29a4ef,_0x1943cd['end']);this['_addSuggestionMarker'](_0x182b7b,_0x2a4f08,_0x2ea2d5,_0xc2206a);}else{if(_0x1943cd['containsPosition'](_0x4cd4ff['start'])){const _0x37ee05=this['_model']['createPositionAt'](_0x4cd4ff['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x35f44d,this['_model']['createRange'](_0x1943cd['start'],_0x37ee05));}else{const _0x1dfb8a=this['_model']['createPositionAt'](_0x4cd4ff['end']['parent'],'after');this['_setSuggestionRange'](_0x35f44d,this['_model']['createRange'](_0x1dfb8a,_0x1943cd['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x76b670){for(const {suggestion:_0x3d3a8e,meta:_0x1ea032}of this['_findSuggestions'](_0x76b670,'insertion')){if(!_0x1ea032['isOwn'])continue;const _0x591bac=_0x3d3a8e['getRanges']();for(const _0x203b73 of _0x591bac)if(!_0x76b670['getDifference'](_0x203b73)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x3c458f){const _0x27bc7c=this['editor']['plugins']['get']('Users')['getUser'](_0x3c458f);if(!_0x27bc7c)throw new _0x5d208c('track-changes-user-not-found',this);return _0x27bc7c;}['_getExternalAuthor'](_0x3214ac){const _0x451374=this['editor']['plugins']['get']('Users'),_0xa8323=_0x51422e('external:'+_0x3214ac),_0x2bc351=_0x451374['getUser'](_0xa8323);return _0x2bc351||_0x451374['addUser']({'id':_0xa8323,'name':_0x3214ac});}['_createSuggestion'](_0x7166d4,_0x42fb50,_0x4ed217,_0x308a95,_0x53ee40,_0x2ebc24){const _0x47352e=this['_getAuthorFromId'](_0x308a95),_0x15d994=this['_suggestionFactory']['buildSuggestion'](_0x7166d4,_0x42fb50,_0x4ed217,_0x47352e,_0x53ee40,_0x37f5db=>{this['_updateSuggestionData'](_0x4ed217,{'attributes':_0x37f5db});const _0xdad45f=this['getSuggestion'](_0x4ed217);this['_joinWithAdjacentSuggestions'](new Set([_0xdad45f])),this['_refreshSuggestionsChain'](new Set([_0xdad45f]));},_0x2ebc24);return this['listenTo'](_0x15d994,'accept',()=>{this['_updateSuggestionData'](_0x4ed217,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x15d994,'discard',()=>{this['_updateSuggestionData'](_0x4ed217,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x4ed217,_0x15d994),this['_suggestionState']['set'](_0x15d994,'notReady'),_0x15d994;}['_splitMarkerName'](_0x48fd70){const _0x17e6fe=_0x48fd70['split'](':');return{'group':_0x17e6fe[0x0],'type':_0x17e6fe[0x1],'subType':_0x17e6fe['length']>=0x5?_0x17e6fe[0x2]:null,'id':_0x17e6fe['length']<0x5?_0x17e6fe[0x2]:_0x17e6fe[0x3],'authorId':_0x17e6fe['length']<0x5?_0x17e6fe[0x3]:_0x17e6fe[0x4],'markerCount':0x6==_0x17e6fe['length']?_0x17e6fe[0x5]:null};}['_breakSuggestionMarker'](_0x1b8402,_0x381cda,_0x2fffc9){const _0x1f807e=_0x1b8402['getFirstRange'](),_0x454eba=_0x1f807e['start'],_0x48bc1e=_0x1f807e['end'];this['_setSuggestionRange'](_0x1b8402,this['_model']['createRange'](_0x454eba,_0x381cda));const _0x25dbc7=_0x110ca2(),_0xa524d1=_0x1b8402['creator']['id'],_0x396f98=_0x1b8402['type']+(_0x1b8402['subType']?':'+_0x1b8402['subType']:'');this['_setSuggestionData']({'id':_0x25dbc7,'type':_0x396f98,'createdAt':new Date(),'authorId':_0xa524d1,'originalSuggestionId':_0x1b8402['_originalSuggestionId']||_0x1b8402['id'],'attributes':_0x1b8402['attributes'],'data':_0x1b8402['data']});const _0x2f243f=this['_getAttributeKey'](_0x1b8402);('formatBlock'==_0x1b8402['type']||_0x2f243f&&this['_isBlockAttribute'](_0x2f243f))&&(_0x2fffc9=this['_model']['createPositionBefore'](_0x2fffc9['parent'])),this['_addSuggestionMarker'](_0x396f98,_0x25dbc7,_0xa524d1,this['_model']['createRange'](_0x2fffc9,_0x48bc1e));}['_findSuggestions'](_0x27b177,_0x39c7cb=null){const _0x5abeab=[],_0x217b1e=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x27b177)||(_0x27b177=[_0x27b177]);for(const _0x3313fb of this['getSuggestions']()){if(!_0x3313fb['isInContent'])continue;if(_0x39c7cb&&_0x3313fb['type']!=_0x39c7cb)continue;let _0x56098b=!0x1;for(const _0x1efcf7 of _0x3313fb['getRanges']()){for(const _0x5410d7 of _0x27b177){const _0x27183e=_0x5410d7['start']['isEqual'](_0x1efcf7['end'])||_0x5410d7['end']['isEqual'](_0x1efcf7['start']);if(_0x27183e||_0x5410d7['getIntersection'](_0x1efcf7)){const _0x254da5=_0x5410d7['containsRange'](_0x1efcf7)&&Ft(this['_model']['schema'],_0x1efcf7['start'],_0x5410d7),_0xf47c64=_0x1efcf7['containsRange'](_0x5410d7)&&Ft(this['_model']['schema'],_0x5410d7['start'],_0x1efcf7);_0x5abeab['push']({'suggestion':_0x3313fb,'meta':{'isOwn':_0x217b1e==_0x3313fb['author'],'isNextTo':_0x27183e,'isInsideObject':_0x254da5,'containsRangeInObject':_0xf47c64}}),_0x56098b=!0x0;break;}}if(_0x56098b)break;}}return _0x5abeab;}['_addSuggestionMarker'](_0x423d3c,_0x952bdd,_0x3047a3,_0x1e5071,_0x97f352){this['_model']['change'](_0x5351f1=>{let _0x436938='suggestion:'+_0x423d3c+':'+_0x952bdd+':'+_0x3047a3;_0x97f352&&(_0x436938=_0x436938+':'+_0x97f352),_0x5351f1['addMarker'](_0x436938,{'range':_0x1e5071,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x1e9d8a){const _0x490e81=_0x1e9d8a['previous'],_0x2714e8=_0x1e9d8a['next'];_0x1e9d8a['previous']=null,_0x1e9d8a['next']=null,null!=_0x490e81&&_0x490e81['next']==_0x1e9d8a&&(_0x490e81['next']=_0x2714e8),null!=_0x2714e8&&_0x2714e8['previous']==_0x1e9d8a&&(_0x2714e8['previous']=_0x490e81),'ready'==this['_suggestionState']['get'](_0x1e9d8a)&&(this['_suggestionState']['set'](_0x1e9d8a,'removed'),this['fire']('suggestionUnloaded',_0x1e9d8a,_0x490e81,_0x2714e8));}['_setSuggestionData'](_0x12c31f){const _0x1a9d65=_0x12c31f['id'],_0x1b8c2b=this['addSuggestionData'](_0x12c31f);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x4eb66f=this['editor']['plugins']['get']('PendingActions'),_0x34dbe7=_0x1b8c2b['hasComments'],_0x20356f=_0x1b8c2b['subType']?_0x1b8c2b['type']+':'+_0x1b8c2b['subType']:_0x1b8c2b['type'],_0x54e829=this['editor']['locale'],_0x3674eb=_0x4eb66f['add'](o(_0x54e829,'PENDING_ACTION_SUGGESTION')),_0x21c508={'id':_0x1a9d65,'type':_0x20356f,'hasComments':_0x34dbe7,'data':_0x12c31f['data']||null,'originalSuggestionId':_0x12c31f['originalSuggestionId']||null,'attributes':_0x1b8c2b['attributes']};this['_adapter']['addSuggestion'](_0x21c508)['then'](_0x5101d1=>{_0x1b8c2b['_saved']=!0x0,_0x4eb66f['remove'](_0x3674eb),_0x5101d1&&_0x5101d1['createdAt']&&(this['_suggestions']['get'](_0x1a9d65)['createdAt']=_0x5101d1['createdAt']);})['catch'](_0x5d0759=>{throw _0x113fed('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x1b8c2b['discard']();}),_0x1b8c2b['stopListening'](),this['_suggestions']['delete'](_0x1b8c2b['id']),this['_suggestionState']['delete'](_0x1b8c2b),_0x5d0759;});}return _0x1b8c2b;}['_isBlockAttribute'](_0x155a5b){return this['_blockAttributeKeys']['has'](_0x155a5b);}['_isInlineAttribute'](_0x5db041){return this['_inlineAttributeKeys']['has'](_0x5db041);}['_updateSuggestionData'](_0x191122,_0x309f95){const _0x438b12=this['editor']['plugins']['get']('PendingActions'),_0x14ecec=this['getSuggestion'](_0x191122);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x14ecec['_saved']){const _0xd7fe20=_0x438b12['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x191122,_0x309f95)['then'](()=>{_0x438b12['remove'](_0xd7fe20);});}else _0x14ecec['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x191122,_0x309f95);});}}['_getSuggestionData'](_0x3a1f13){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x5d208c('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x3a1f13);}['_handleNewSuggestionMarker'](_0x3c2a62){const {id:_0x2f74bf,type:_0x226f00,subType:_0x4b6781,authorId:_0xa1a18a}=this['_splitMarkerName'](_0x3c2a62),_0x53af6c=this['_suggestions']['get'](_0x2f74bf)||this['_createSuggestion'](_0x226f00,_0x4b6781,_0x2f74bf,_0xa1a18a,{});switch(this['_checkSuggestionCorrectness'](_0x53af6c,_0x226f00,_0x4b6781,_0xa1a18a),this['_suggestionState']['get'](_0x53af6c)){case'notReady':this['_getSuggestionData'](_0x2f74bf)['then'](_0x4bd3eb=>{let _0x15656d=Promise['resolve']();_0x4bd3eb['hasComments']&&(_0x15656d=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x2f74bf})),_0x15656d['then'](()=>{this['addSuggestionData'](_0x4bd3eb)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x53af6c,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x2f74bf,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x53af6c,'ready'),this['fire']('suggestionLoaded',_0x53af6c);break;case'ready':this['fire']('suggestionChanged',_0x53af6c);}return _0x53af6c['addMarkerName'](_0x3c2a62),_0x53af6c;}['_refreshSuggestionsChain'](_0x329df0){const _0x590df7=Array['from'](_0x329df0),_0x2db756=_0x590df7['filter'](_0x548e3c=>'attribute'==_0x548e3c['type']);this['_refreshAttributeSuggestionsChain'](_0x2db756);const _0x1c74a6=_0x590df7['filter'](_0x2218e2=>!_0x2218e2['isMultiRange']&&'attribute'!=_0x2218e2['type']),_0x1a4d26=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x33b484=>!_0x33b484['isMultiRange']&&'attribute'!=_0x33b484['type']),_0x4aba7c=_0x1a4d26['filter'](_0x197f01=>!_0x329df0['has'](_0x197f01)),_0x4e54f0=new Map(_0x1a4d26['map'](_0x38df48=>[_0x38df48,this['_suggestionFactory']['getSuggestionCallback'](_0x38df48['type'],_0x38df48['subType'],'chain')])),_0xd0e9a3=new Map(_0x1a4d26['map'](_0x52ae6f=>[_0x52ae6f,_0x52ae6f['getFirstRange']()])),_0xd96e18=new Set(),_0x226442=new Set();for(let _0x9a6191=0x0;_0x9a6191<_0x1c74a6['length'];_0x9a6191++)_0x337307(_0x1c74a6[_0x9a6191],_0x1c74a6,_0x9a6191+0x1);for(let _0x2975fa=0x0;_0x2975fa<_0x1c74a6['length'];_0x2975fa++)_0x337307(_0x1c74a6[_0x2975fa],_0x4aba7c,0x0);const _0x3d7fb2=new Set();for(let _0x2715af=0x0;_0x2715af<_0x1c74a6['length'];_0x2715af++){const _0x12a64b=_0x1c74a6[_0x2715af];!_0x226442['has'](_0x12a64b)&&_0x12a64b['previous']&&(_0x3d7fb2['add'](_0x12a64b['previous']),_0x12a64b['previous']['next']===_0x12a64b&&(_0x12a64b['previous']['next']=null),_0x12a64b['previous']=null),!_0xd96e18['has'](_0x12a64b)&&_0x12a64b['next']&&(_0x3d7fb2['add'](_0x12a64b['next']),_0x12a64b['next']['previous']===_0x12a64b&&(_0x12a64b['next']['previous']=null),_0x12a64b['next']=null);}function _0x337307(_0x1a57c9,_0x6eac54,_0x13df9d){for(let _0x88de85=_0x13df9d;_0x88de85<_0x6eac54['length'];_0x88de85++){const _0x2f0b9b=_0x3d00b9(_0x1a57c9,_0x6eac54[_0x88de85]);_0x2f0b9b&&(_0x2f0b9b[0x0]['next']=_0x2f0b9b[0x1],_0x2f0b9b[0x1]['previous']=_0x2f0b9b[0x0],_0xd96e18['add'](_0x2f0b9b[0x0]),_0x226442['add'](_0x2f0b9b[0x1]));}}function _0x3d00b9(_0x1ae000,_0xd72e55){if(_0x1ae000['author']['id']!==_0xd72e55['author']['id'])return null;const _0x4a8e46=_0x4e54f0['get'](_0x1ae000)(_0x1ae000,_0xd72e55,_0xd0e9a3['get'](_0x1ae000),_0xd0e9a3['get'](_0xd72e55));if(!_0x4a8e46)return null;return _0x4e54f0['get'](_0xd72e55)(_0x1ae000,_0xd72e55,_0xd0e9a3['get'](_0x1ae000),_0xd0e9a3['get'](_0xd72e55))?_0x4a8e46[0x1]['commentThread']&&_0x4a8e46[0x1]['commentThread']['length']?null:_0x4a8e46:null;}_0x3d7fb2['size']&&this['_refreshSuggestionsChain'](_0x3d7fb2);}['_refreshAttributeSuggestionsChain'](_0x33f85f){if(0x0==_0x33f85f['length'])return;const _0x7dd33f=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x543e76=>'attribute'==_0x543e76['type']&&_0x543e76['_isDataLoaded']),_0x5cd89d=[],_0x4758f3=new Map();for(const _0x58f9fe of _0x7dd33f){const _0x484f77=_0x51422e(_0x58f9fe['attributes']);_0x4758f3['has'](_0x484f77)||(_0x4758f3['set'](_0x484f77,_0x5cd89d['length']),_0x5cd89d['push']([]));const _0x1aff7d=_0x4758f3['get'](_0x484f77);_0x5cd89d[_0x1aff7d]['push'](_0x58f9fe);}!(function(){_0x5cd89d['sort']((_0x55c948,_0xd78155)=>{const _0x5280c9=_0x55c948[0x0]['createdAt'],_0x5bc297=_0xd78155[0x0]['createdAt'];return _0x5280c9==_0x5bc297?_0x55c948[0x0]['attributes']['groupId']<_0xd78155[0x0]['attributes']['groupId']?-0x1:0x1:_0x5280c9<_0x5bc297?-0x1:0x1;});for(const _0x54e035 of _0x5cd89d)_0x54e035['sort']((_0x3c2a4d,_0x46f5ac)=>_0x3c2a4d['id']<_0x46f5ac['id']?-0x1:0x1);}());for(let _0x5bd2eb=0x0;_0x5bd2eb<_0x5cd89d['length'];_0x5bd2eb++){if(0x0==_0x5cd89d[_0x5bd2eb]['length'])continue;const _0x42ab79=[];for(let _0x433fcf=_0x5bd2eb+0x1;_0x433fcf<_0x5cd89d['length'];_0x433fcf++)0x0!=_0x5cd89d[_0x433fcf]['length']&&_0xe78087(_0x5cd89d[_0x5bd2eb],_0x5cd89d[_0x433fcf])&&_0x42ab79['push'](_0x433fcf);for(const _0x42b90b of _0x42ab79)_0x5cd89d[_0x5bd2eb]=_0x5cd89d[_0x5bd2eb]['concat'](_0x5cd89d[_0x42b90b]),_0x5cd89d[_0x42b90b]=[];}for(const _0x1b7a76 of _0x5cd89d)for(let _0xab7fd7=0x0;_0xab7fd7<_0x1b7a76['length'];_0xab7fd7++){const _0x5f57fa=_0x1b7a76[_0xab7fd7+0x1]||null;_0x1b7a76[_0xab7fd7]['next']!==_0x5f57fa&&(_0x1b7a76[_0xab7fd7]['next']=_0x5f57fa);}for(const _0x19c53b of _0x5cd89d)for(let _0x5464a7=0x0;_0x5464a7<_0x19c53b['length'];_0x5464a7++){const _0x569374=_0x19c53b[_0x5464a7-0x1]||null;_0x19c53b[_0x5464a7]['previous']!==_0x569374&&(_0x19c53b[_0x5464a7]['previous']=_0x569374);}function _0xe78087(_0xe51f6c,_0x49550a){if(_0xe51f6c[0x0]['attributes']['groupId']!==_0x49550a[0x0]['attributes']['groupId']&&_0xe51f6c[0x0]['author']!==_0x49550a[0x0]['author'])return!0x1;if(!function(_0x145e24,_0x57ce61){if(!_0x145e24['hasComments']&&!_0x57ce61['hasComments'])return!0x0;if(_0x145e24['hasComments']&&_0x57ce61['hasComments'])return!0x1;if(_0x145e24['hasComments']&&_0x57ce61['createdAt']<_0x145e24['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x57ce61['hasComments']&&_0x145e24['createdAt']<_0x57ce61['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0xe51f6c[0x0],_0x49550a[0x0]))return!0x1;const _0x25b81d=Ut(_0xe51f6c[0x0]['attributes'],['groupId','trackingSessionId']),_0x815e13=Ut(_0x49550a[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x3f9778(_0x25b81d,_0x815e13))return!0x1;if(_0xe51f6c[0x0]['attributes']['groupId']==_0x49550a[0x0]['attributes']['groupId'])return!0x0;if(_0xe51f6c[0x0]['attributes']['trackingSessionId']!==_0x49550a[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0xe51f6c['every'](_0x88b521=>_0x49550a['some'](_0x29455d=>_0x88b521['getFirstRange']()['isEqual'](_0x29455d['getFirstRange']())))&&_0x49550a['every'](_0x32a839=>_0xe51f6c['some'](_0x1e3bef=>_0x32a839['getFirstRange']()['isEqual'](_0x1e3bef['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x2868ff){const _0x41d071=Array['from'](_0x2868ff),_0x5bdff1=this['getSuggestions']({'skipNotAttached':!0x0}),_0x2b635f=_0x5bdff1['filter'](_0x3f1785=>!_0x2868ff['has'](_0x3f1785)),_0x5ef4da=new Map(_0x41d071['map'](_0x39d105=>[_0x39d105,this['_suggestionFactory']['getSuggestionCallback'](_0x39d105['type'],_0x39d105['subType'],'join')])),_0xdf6ab6=new Map(_0x5bdff1['map'](_0x73f811=>[_0x73f811,_0x73f811['getRanges']()]));for(let _0x6c5f4b=0x0;_0x6c5f4b<_0x41d071['length'];_0x6c5f4b++){if(_0x546a1f(this,_0x41d071[_0x6c5f4b],_0x41d071,_0x6c5f4b+0x1))return!0x0;}for(let _0x43a044=0x0;_0x43a044<_0x41d071['length'];_0x43a044++){if(_0x546a1f(this,_0x41d071[_0x43a044],_0x2b635f,0x0))return!0x0;}return!0x1;function _0x546a1f(_0x3f014f,_0x215b5e,_0x52f60f,_0x4f1995){for(let _0x4ebf2c=_0x4f1995;_0x4ebf2c<_0x52f60f['length'];_0x4ebf2c++){const _0x4bb198=_0x52f60f[_0x4ebf2c];if(_0x4bb198['type']!==_0x215b5e['type']||_0x4bb198['author']['id']!==_0x215b5e['author']['id']||_0x4bb198['subType']!==_0x215b5e['subType'])continue;if(!Qt(_0x215b5e,_0x4bb198))continue;if('attribute'==_0x215b5e['type']&&_0x215b5e['data']['oldValue']!=_0x4bb198['data']['oldValue'])continue;if('attribute'==_0x215b5e['type']&&_0x3f014f['_isBlockAttribute'](_0x215b5e['data']['key']))continue;if('formatBlock'==_0x215b5e['type']){const _0x1b34f4=_0x3f014f['editor']['model'],_0x51ba70=_0x215b5e['getContainedElement']();if(_0x51ba70&&(_0x1b34f4['schema']['isObject'](_0x51ba70)||_0x1b34f4['schema']['isLimit'](_0x51ba70)))continue;}const _0x142d45=_0x5ef4da['get'](_0x215b5e),_0x177f18=_0xdf6ab6['get'](_0x215b5e),_0x40c99d=_0xdf6ab6['get'](_0x4bb198),_0x3d978c=_0x215b5e['commentThread']&&_0x215b5e['commentThread']['length'],_0x287cd3=_0x4bb198['commentThread']&&_0x4bb198['commentThread']['length'];if(!_0x3d978c&&_0x142d45(_0x40c99d,_0x177f18))return _0x3f014f['_joinSuggestions'](_0x4bb198,_0x215b5e),_0xdf6ab6['delete'](_0x215b5e),!0x0;if(!_0x287cd3&&_0x142d45(_0x177f18,_0x40c99d))return _0x3f014f['_joinSuggestions'](_0x215b5e,_0x4bb198),_0xdf6ab6['delete'](_0x4bb198),!0x0;}return!0x1;}}['_joinSuggestions'](_0x92348c,_0x363f42){if(_0x92348c['isMultiRange']){for(const _0x523a62 of _0x363f42['getRanges']())_0x92348c['addRange'](_0x523a62);}else{const _0x59dc84=_0x363f42['getFirstRange']()['end'];this['_setSuggestionRange'](_0x92348c,this['_model']['createRange'](_0x92348c['getFirstRange']()['start'],_0x59dc84));}_0x363f42['removeMarkers']();}['_getMarkerAnnouncementText'](_0xfde489,_0x1fb1fd,_0x524144){const _0x3303c5=_0xfde489['startsWith']('format')||_0xfde489['startsWith']('attribute')?'FORMATTING':_0xfde489['toUpperCase']();return o(this['editor']['locale'],_0x1fb1fd+'_'+_0x3303c5+'_SUGGESTION_ANNOUNCEMENT',_0x524144);}['_initAriaMarkerChangeAnnouncements'](){const _0x32a9d2=this['editor'];if(!_0x32a9d2['ui'])return;const {ariaLiveAnnouncer:_0x543ecc}=_0x32a9d2['ui'];_0x4126be(this['_model'],({left:_0x10a803,entered:_0x4c0b0f})=>{for(const _0x4a36dd of _0x10a803){const {group:_0x3f2a78,type:_0x413ce6}=this['_splitMarkerName'](_0x4a36dd['name']);if('suggestion'===_0x3f2a78){_0x543ecc['announce'](this['_getMarkerAnnouncementText'](_0x413ce6,'LEAVE'));break;}}for(const _0x4e2445 of _0x4c0b0f){const {group:_0x4c4bdf,type:_0x293a0e}=this['_splitMarkerName'](_0x4e2445['name']);if('suggestion'===_0x4c4bdf){_0x543ecc['announce'](this['_getMarkerAnnouncementText'](_0x293a0e,'ENTER',_0x338685(_0x37cb22)));break;}}});}['_processAttributeChanges'](_0xe4bde8){if(this['_recordAttributeSuggestions'])return!0x1;const _0x2646f5=this['editor'],_0xf8aa70=_0x2646f5['model']['document']['differ']['getChanges']();if(0x0==_0xf8aa70['length'])return!0x1;const _0x237b68=[],_0x40c17b=_0xf8aa70['filter'](_0x3e38e4=>'attribute'==_0x3e38e4['type']),_0x219248=_0xf8aa70['filter'](_0x3620cc=>'insert'==_0x3620cc['type']&&'$text'!=_0x3620cc['name']),_0x291c7d=_0xf8aa70['filter'](_0x2e5e23=>'remove'==_0x2e5e23['type']&&'$text'!=_0x2e5e23['name']);for(const _0x4cd6b2 of _0x40c17b)_0x237b68['push']({'key':_0x4cd6b2['attributeKey'],'newValue':_0x4cd6b2['attributeNewValue'],'oldValue':_0x4cd6b2['attributeOldValue'],'range':qt(_0x4cd6b2['range'],_0x2646f5['model'])});for(const _0x4f4848 of _0x219248){const _0x3255ad=_0x291c7d['find'](_0x5c81ba=>_0x5c81ba['position']['isEqual'](_0x4f4848['position']));_0x3255ad&&_0x237b68['push']({'key':m,'newValue':_0x4f4848['name'],'oldValue':_0x3255ad['name'],'range':_0x2646f5['model']['createRangeOn'](_0x4f4848['position']['nodeAfter'])});}return 0x0!=_0x237b68['length']&&this['_reduceExistingSuggestions'](_0xe4bde8,_0x237b68);}['_processAttributeSuggestions'](_0xfd2e14){let _0x4d0fae=!0x1;const _0x35f74e=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x48c595=>_0x48c595['data']['newRange']&&_0x48c595['name']['startsWith']('suggestion:attribute:'));for(const _0x48601c of _0x35f74e){const {subType:_0x313f52,id:_0x4f4a36}=this['_splitMarkerName'](_0x48601c['name']),_0x3739dc=_0x313f52['split']('|')[0x0];for(const _0x4635b6 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x4635b6['id']!=_0x4f4a36&&'attribute'==_0x4635b6['type']&&_0x4635b6['data']&&_0x4635b6['data']['key']==_0x3739dc&&_0x4635b6['getFirstRange']()['isIntersecting'](_0x48601c['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x4635b6,_0x48601c['data']['newRange'],_0xfd2e14),_0x4d0fae=!0x0);}return _0x4d0fae;}['recordAttributeChanges'](_0x3fc728){this['_recordAttributeSuggestions']=!0x0,_0x3fc728();}['_isRegisteredAttribute'](_0x2ffa76){const _0x1c28d2=this['_isBlockAttribute'](_0x2ffa76),_0x100963=this['_isInlineAttribute'](_0x2ffa76);return _0x1c28d2||_0x100963;}['_reduceExistingSuggestions'](_0x1560f3,_0x55e2d3){if(0x0==_0x55e2d3['length'])return!0x1;let _0x545ae4=!0x1;for(const _0x17c778 of _0x55e2d3){const _0x4f9807=this['_findSuggestions'](_0x17c778['range'],'attribute')['filter'](_0x1e32a7=>!_0x1e32a7['meta']['isNextTo'])['map'](_0x3ea4e3=>_0x3ea4e3['suggestion']),_0x490959=_0x51422e({'newValue':_0x17c778['newValue']});_0x4f9807['filter'](_0x509354=>{const [_0xa37047,_0x1adc16]=_0x509354['subType']['split']('|');return _0xa37047==_0x17c778['key']&&_0x1adc16!=_0x490959;})['forEach'](_0x5f11d8=>{this['_reduceSuggestionAttributeRange'](_0x5f11d8,_0x17c778['range'],_0x1560f3),_0x545ae4=!0x0;});}return _0x545ae4;}['_reduceSuggestionAttributeRange'](_0x4135e8,_0x36b868,_0x4b85af){const _0x469e2a=_0x4135e8['getFirstRange']()['getDifference'](_0x36b868);0x0!==_0x469e2a['length']?0x1!==_0x469e2a['length']?this['_breakSuggestionMarker'](_0x4135e8,_0x36b868['start'],_0x36b868['end']):this['_setSuggestionRange'](_0x4135e8,_0x469e2a[0x0]):_0x4b85af['removeMarker'](_0x4135e8['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x4100b0){this['_editor']=_0x4100b0,this['_model']=_0x4100b0['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x26cb02,_0x10ba82,_0x4a548d,_0x24cbe2,_0x7253b1,_0x23ad4b,_0x15434a){return new T(this['_model'],{'type':_0x26cb02,'subType':_0x10ba82,'id':_0x4a548d,'originalSuggestionId':_0x15434a,'author':_0x24cbe2,'creator':_0x24cbe2,'attributes':_0x7253b1,'onAttributesChange':_0x23ad4b,'onAccept':(..._0x492dda)=>this['getSuggestionCallback'](_0x26cb02,_0x10ba82,'accept')(..._0x492dda),'onDiscard':(..._0x470c42)=>this['getSuggestionCallback'](_0x26cb02,_0x10ba82,'discard')(..._0x470c42)});}['registerCustomCallback'](_0x4129f3,_0x32439f,_0x163a40,_0x39466a){const _0x45aff7=_0x4129f3+':'+_0x32439f+':'+_0x163a40;this['_customCallbacks']['set'](_0x45aff7,_0x39466a);}['getSuggestionCallback'](_0x396e79,_0x324f9b,_0x2b70f5){const _0x16a665=_0x396e79+':'+_0x324f9b+':'+_0x2b70f5;return this['_customCallbacks']['get'](_0x16a665)||this['_defaultCallbacks']['get'](_0x396e79+':'+_0x2b70f5);}['_registerDefaultCallbacks'](){const _0x15b3a1=()=>!0x1,_0x3162af=_0xda6be5=>{_0xda6be5['sort']((_0x2f746a,_0x19eef6)=>_0x2f746a['start']['isBefore'](_0x19eef6['start'])?0x1:-0x1),this['_model']['change'](_0x241f09=>{for(const _0x18e1c2 of _0xda6be5){let _0x3c4fc8;_0x3c4fc8=_0x18e1c2['end']['isAtEnd']&&_0x18e1c2['end']['parent']==_0x18e1c2['start']['nodeAfter']?_0x241f09['createSelection'](_0x18e1c2['start']['nodeAfter'],'on'):_0x241f09['createSelection'](_0x18e1c2),this['_model']['deleteContent'](_0x3c4fc8,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x43ab61=(_0x3337ba,_0xa83603)=>{_0xa83603&&this['_model']['change'](_0x4fbf7b=>{const {commandName:_0x2a4dd5,commandParams:_0x5aa739=[]}=_0xa83603,_0x2d5d40=_0x3337ba['map'](_0x32492e=>(Pt(_0x32492e)&&(_0x32492e=this['_model']['createRange'](_0x32492e['end'])),_0x32492e))['filter'](_0x2425b2=>'$graveyard'!==_0x2425b2['root']['rootName']);if(_0x2d5d40['length']<0x1)return;const _0x2364bd=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x541ec0=>_0x217d71['fromRange'](_0x541ec0));_0x4fbf7b['setSelection'](_0x2d5d40);for(const _0x30f85a of this['_editor']['commands']['commands']())_0x30f85a['refresh']();_0x5aa739['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x2a4dd5,..._0x5aa739);const _0x3fd35a=_0x2364bd['filter'](_0x1cc6c8=>'$graveyard'!=_0x1cc6c8['root']['rootName']);_0x3fd35a['length']>0x0&&_0x4fbf7b['setSelection'](_0x3fd35a);for(const _0x4d1426 of _0x2364bd)_0x4d1426['detach']();});},_0x571feb=(_0x33d503,_0x129559)=>0x1==_0x33d503['length']&&0x1==_0x129559['length']&&_0x33d503[0x0]['end']['isEqual'](_0x129559[0x0]['start']),_0x4378fa=(_0x3a8d57,_0xfbfb31,_0x110cb1,_0x42eeff)=>Wt(_0x3a8d57,_0xfbfb31,_0x110cb1,_0x42eeff)?[_0x3a8d57,_0xfbfb31]:Wt(_0xfbfb31,_0x3a8d57,_0x42eeff,_0x110cb1)?[_0xfbfb31,_0x3a8d57]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x15b3a1),this['_defaultCallbacks']['set']('insertion:discard',_0x3162af),this['_defaultCallbacks']['set']('insertion:join',_0x571feb),this['_defaultCallbacks']['set']('insertion:chain',_0x4378fa),this['_defaultCallbacks']['set']('deletion:accept',_0x3162af),this['_defaultCallbacks']['set']('deletion:discard',_0x15b3a1),this['_defaultCallbacks']['set']('deletion:join',_0x571feb),this['_defaultCallbacks']['set']('deletion:chain',_0x4378fa),this['_defaultCallbacks']['set']('formatInline:accept',_0x43ab61),this['_defaultCallbacks']['set']('formatInline:discard',_0x15b3a1),this['_defaultCallbacks']['set']('formatInline:join',_0x571feb),this['_defaultCallbacks']['set']('formatInline:chain',_0x15b3a1),this['_defaultCallbacks']['set']('formatBlock:accept',_0x43ab61),this['_defaultCallbacks']['set']('formatBlock:discard',_0x15b3a1),this['_defaultCallbacks']['set']('formatBlock:join',_0x571feb),this['_defaultCallbacks']['set']('formatBlock:chain',_0x15b3a1),this['_defaultCallbacks']['set']('attribute:accept',_0x15b3a1),this['_defaultCallbacks']['set']('attribute:discard',(_0x3c06a2,_0x5ef89e)=>{if(!_0x5ef89e)return;const _0x5242a6=this['_editor']['plugins']['get'](d);this['_model']['change'](_0xdf06a7=>{if(_0x5ef89e['key']==m)for(const _0x84e64f of _0x3c06a2){const _0x426bae=_0x84e64f['start']['nodeAfter'],_0x3342ff=_0x5ef89e['oldValue'];_0xdf06a7['rename'](_0x426bae,_0x3342ff);}else{if(_0x5242a6['_isBlockAttribute'](_0x5ef89e['key'])){for(const _0x21721f of _0x3c06a2)void 0x0!==_0x5ef89e['oldValue']?_0xdf06a7['setAttribute'](_0x5ef89e['key'],_0x5ef89e['oldValue'],_0x21721f['start']['nodeAfter']):_0xdf06a7['removeAttribute'](_0x5ef89e['key'],_0x21721f['start']['nodeAfter']);}else{for(const _0x48631c of _0x3c06a2)_0x5ef89e['oldValue']?_0xdf06a7['setAttribute'](_0x5ef89e['key'],_0x5ef89e['oldValue'],_0x48631c):_0xdf06a7['removeAttribute'](_0x5ef89e['key'],_0x48631c);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x571feb);}}function Ft(_0x6262d1,_0x1a2574,_0x36f25b){for(const _0x2c7a62 of _0x1a2574['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2c7a62['root']==_0x2c7a62)return!0x1;if(!_0x36f25b['containsItem'](_0x2c7a62))return!0x1;if(_0x6262d1['isObject'](_0x2c7a62)||_0x6262d1['isLimit'](_0x2c7a62))return!0x0;}return!0x1;}function Pt(_0x19b554){return _0x19b554['end']['parent']==_0x19b554['start']['nodeAfter']&&_0x19b554['end']['isAtStart'];}function Gt(_0x11f961,_0x5008b4,_0x20c029,_0x2a736b){const _0xb3627=_0x3fc79f=>!_0x3fc79f['item']['is']('$textProxy')&&!_0x2a736b['isObject'](_0x3fc79f['item']),_0x4f828f=_0x11f961['start']['getLastMatchingPosition'](_0xb3627),_0x35ef9e=_0x11f961['end']['getLastMatchingPosition'](_0xb3627,{'direction':'backward'});return(!_0x11f961['start']['isEqual'](_0x4f828f)||!_0x11f961['end']['isEqual'](_0x35ef9e))&&(_0x4f828f['isBefore'](_0x35ef9e)?_0x20c029['updateMarker'](_0x5008b4,{'range':_0x20c029['createRange'](_0x4f828f,_0x35ef9e)}):_0x20c029['removeMarker'](_0x5008b4),!0x0);}function Lt(_0x3ff2bc){return _0x51422e(_0x3ff2bc);}function Jt(_0x21f5eb){const _0x50c206=_0x21f5eb['start']['nodeAfter'];return _0x50c206&&_0x50c206['is']('element');}function Kt(_0x1fb83c){return Pt(_0x1fb83c)||function(_0x3c0f3d){return _0x3c0f3d['start']['parent']==_0x3c0f3d['end']['nodeBefore']&&_0x3c0f3d['start']['isAtEnd'];}(_0x1fb83c);}function Ht(_0x4181f3,_0x145951){try{const _0x300006=_0x4181f3['getRange']();for(const _0x31fa2d of _0x145951)if(_0x4181f3!==_0x31fa2d&&_0x300006&&_0x300006['isIntersecting'](_0x31fa2d['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function qt(_0x3fc991,_0xfc8e0d){return null==_0x3fc991['end']['nodeBefore']&&_0x3fc991['end']['parent']==_0x3fc991['start']['nodeAfter']?zt(_0x3fc991['start']['nodeAfter'],_0xfc8e0d):_0x3fc991;}function zt(_0x42ee3c,_0x2e8dd5){const _0x7ca1aa=_0x2e8dd5['schema']['isObject'](_0x42ee3c)||_0x2e8dd5['schema']['isSelectable'](_0x42ee3c);return _0x2e8dd5['createRange'](_0x2e8dd5['createPositionAt'](_0x42ee3c,'before'),_0x7ca1aa?_0x2e8dd5['createPositionAfter'](_0x42ee3c):_0x2e8dd5['createPositionAt'](_0x42ee3c,'end'));}function Wt(_0x472db1,_0x30e5e0,_0x35fd59,_0x52dc50){return!!Qt(_0x472db1,_0x30e5e0)&&_0x35fd59['end']['isEqual'](_0x52dc50['start']);}function Qt(_0x2688d1,_0x4526f1){if(!_0x2688d1['_isDataLoaded']||!_0x4526f1['_isDataLoaded'])return!0x1;const _0x154a8a=new Set(Object['keys'](_0x2688d1['attributes'])),_0x1f25ea=new Set(Object['keys'](_0x4526f1['attributes']));if(_0x154a8a['delete']('groupId'),_0x1f25ea['delete']('groupId'),0x0==_0x154a8a['size']&&0x0==_0x1f25ea['size'])return!0x0;if(_0x154a8a['size']!=_0x1f25ea['size'])return!0x1;const _0x174d5f={..._0x2688d1['attributes']},_0x189c6e={..._0x4526f1['attributes']};return delete _0x174d5f['groupId'],delete _0x189c6e['groupId'],JSON['stringify'](_0x174d5f)==JSON['stringify'](_0x189c6e);}function Xt(_0x5f960e,_0x69e50e){const _0xbeddfb=Yt(_0x5f960e['attributes']),_0x13d315=Yt(_0x69e50e);if(!_0x5f960e['_isDataLoaded'])return!0x1;for(const _0x72f9b2 of Object['keys'](_0x13d315))if(!_0x3f9778(_0xbeddfb[_0x72f9b2],_0x13d315[_0x72f9b2]))return!0x1;return!0x0;}function Yt(_0x3f45ac){const _0x524a8a=Object['assign']({},_0x3f45ac);return delete _0x524a8a['skipNestingCheck'],delete _0x524a8a['tablePasteChainId'],_0x524a8a;}class pe extends/* #__PURE__ -- @preserve */
26
+ _0x4ffc3b(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x33e40f,_0x2d233f,_0x35cd10,_0x450286){super(),this['model']=_0x2d233f,this['view']=_0x35cd10,this['commentThreadController']=_0x450286,this['_editor']=_0x33e40f,this['_acceptCommand']=_0x33e40f['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x33e40f['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x20fcae,_0x20f8b7)=>_0x20fcae||_0x20f8b7),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x4d9494=>_0x4d9494&&this['_editor']['model']['canEditAt'](_0x2d233f['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x42c6df=>_0x42c6df&&this['_editor']['model']['canEditAt'](_0x2d233f['getRanges']())),this['_pendingAction']=null,_0x35cd10['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x35cd10,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x35cd10,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x35cd10,'change:isDirty',()=>{_0x35cd10['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 _0x1929a2=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x1929a2);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x237d07{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x3f4479,_0xb29f7b,_0x4becd9,_0x2b44d9){super(_0x3f4479),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x496d48(_0x3f4479,o(_0x3f4479,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0xb29f7b['authoredAt']),this['bind']('authoredAt')['to'](_0xb29f7b),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',_0xb29f7b,'authoredAt',this,'descriptionParts',(_0x1dd4f9,_0x8f74af,_0x122cc8)=>{const _0x54b805=_0x122cc8['map'](_0x10c445=>ls(_0x10c445['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x1dd4f9-0x1,_0xb29f7b['author']['name'],_0x8f74af?_0x2b44d9['formatDateTime'](_0x8f74af):'',new DOMParser()['parseFromString'](_0x54b805,'text/html')['body']['textContent']]);}),this['focusables']=new _0x1dcd16(),this['focusTracker']=new _0x2bcccf(),this['keystrokes']=new _0x59df8b(),this['focusCycler']=new _0x4bc59e({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x5bde4f=>_0x5bde4f['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0xb29f7b,this['_localUser']=_0x4becd9,this['_config']=_0x2b44d9,_0x2b44d9['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x2e09af(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x5a3461}=this['_config'];this['commentsListView']=new _0x5a3461(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',_0x550aa6=>_0x550aa6+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x243dff,_0x6389c8)=>_0x243dff||!!_0x6389c8);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x38be1d}=this['_config'],_0x1c2e36=new _0x38be1d(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x25aa78=_0x1c2e36['commentInputView'];return _0x1c2e36['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x25aa78,'value',(_0x8fe49c,_0x1fce54,_0x1de177)=>!!_0x1de177||_0x8fe49c&&!_0x1fce54),_0x25aa78['on']('submit',(_0x4bdf30,_0x4f298c)=>{this['fire']('addComment',_0x4f298c),_0x25aa78['editor']['setData']('');}),_0x25aa78['on']('cancel',()=>this['focus']()),_0x25aa78['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x1c2e36;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0xc94c9,_0x51f6dd,_0x2ab1ee,_0x137618){super(_0xc94c9,_0x51f6dd,_0x2ab1ee,_0x137618),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x38a33e=>_0x38a33e&&_0x38a33e[0x0]?_0x38a33e[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x16a8eb,_0x146dc7)=>{let _0x5a5e3c='';for(const _0x5d7b62 of _0x16a8eb)_0x5a5e3c+='<p>'+ls(_0x5d7b62['content'],_0x5d7b62['color'])+'</p>';return _0x146dc7?_0x5a5e3c:_0x2d6735(_0x5a5e3c,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x137618['SuggestionView'](_0xc94c9,_0x51f6dd,{'formatDateTime':_0x137618['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 _0x275ada=this['bindTemplate'],_0x1f0aa9=[this['suggestionView']];return this['commentsListView']&&_0x1f0aa9['push'](this['commentsListView']),this['commentThreadInputView']&&_0x1f0aa9['push'](this['commentThreadInputView']),_0x1f0aa9['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x275ada['if']('isActive','ck-suggestion-wrapper--active'),_0x275ada['to']('type',_0x3d3acc=>'ck-suggestion-'+_0x3d3acc),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':_0x275ada['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x1f0aa9};}['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 _0x237d07{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x8a9ed6,_0x4b2b0a,_0x443fcc){super(_0x8a9ed6),this['_model']=_0x4b2b0a,this['_config']=_0x443fcc,this['set']('description',''),this['bind']('authoredAt')['to'](_0x4b2b0a),this['acceptButton']=this['_createButton'](o(_0x8a9ed6,'Accept\x20suggestion'),_0x4a5080,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x8a9ed6,'Discard\x20suggestion'),_0x503c9a,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x4a5b3a(_0x8a9ed6,_0x4b2b0a['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x1dcd16([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x2bcccf(),this['keystrokes']=new _0x59df8b(),this['focusCycler']=new _0x4bc59e({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x3f2863=>_0x3f2863['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x1534bf=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x1534bf['innerHTML']=this['description'],this['on']('change:description',(_0x2b1bee,_0x2b8c90,_0x3b589c)=>{_0x1534bf['innerHTML']=_0x3b589c;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x342d81=this['bindTemplate'],_0xfe01b0=[{'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':_0x342d81['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x342d81['to']('authoredAt',_0x3eccb=>this['_config']['formatDateTime'](_0x3eccb))}]}]},{'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']&&_0xfe01b0['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':_0xfe01b0}]};}['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'](_0x4c16c2,_0x50a716,_0x477a2a,_0x36c46b,_0x588956){const _0x471327=new _0x5b4b3e(this['locale']);return _0x471327['set']({'label':_0x4c16c2,'icon':_0x50a716,'tooltip':!0x0,'tooltipPosition':_0x588956}),_0x471327['extendTemplate']({'attributes':{'class':_0x477a2a}}),_0x471327['on']('execute',()=>{this['fire'](_0x36c46b,this['_model']['id']);}),_0x471327;}['_setupKeyboardNavigation'](){const _0x4c00e9=this['element'];this['keystrokes']['listenTo'](_0x4c00e9);for(const _0x42dfec of this['focusables'])this['focusTracker']['add'](_0x42dfec['element']),this['keystrokes']['listenTo'](_0x42dfec['element']);this['keystrokes']['set']('enter',(_0x56cb5d,_0x1980a6)=>{_0x4c00e9===_0x56cb5d['target']&&(this['focusCycler']['focusFirst'](),_0x1980a6());}),this['keystrokes']['set']('esc',(_0x52c0b0,_0x2c0491)=>{_0x4c00e9!==_0x52c0b0['target']&&(this['focus'](),_0x2c0491());});}}class u extends _0xfd4522{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x41af33,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5c95bf){super(_0x5c95bf),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x27d4b3=this['editor']['config'];_0x27d4b3['define']('trackChanges.SuggestionThreadView',fe),_0x27d4b3['define']('trackChanges.SuggestionView',we),_0x27d4b3['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x27d4b3['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x49be31,_0x2fb487){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x4eb746,_0xf36746]of this['_handleControllerBuffer']){const _0x4fb080=this['_suggestionToController']['has'](_0x4eb746);_0x4fb080||_0xf36746?_0x4fb080&&_0xf36746&&this['_destroyController'](_0x4eb746):this['_initializeController'](_0x4eb746);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x49be31,_0x2fb487);}['init'](){const _0x119ae5=this['editor'],_0xec48ab=_0x119ae5['plugins']['get']('TrackChangesEditing'),_0x1cdaf5=_0x119ae5['plugins']['get']('Annotations'),_0x281911=_0x119ae5['plugins']['get']('EditorAnnotations'),_0x39ce4a=_0x119ae5['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x281911['addSourceCollector'](()=>{const _0x41c237=[];for(const [_0x1307b2,_0x5ed68a]of Array['from'](this['_suggestionToController'])){const _0x574f66=_0x1307b2['getAllAdjacentSuggestions'](),_0x5e6af1=[];for(const _0x2f3f62 of _0x574f66){if(!_0x2f3f62['isInContent'])continue;if(_0x2f3f62['isMultiRange']){_0x5e6af1['push'](..._0x2f3f62['getRanges']());continue;}const _0x1e48e8=_0x2f3f62['getFirstRange']();if(_0x5e6af1['length']>0x0){const _0x4b8f99=_0x5e6af1[0x0]['getJoined'](_0x1e48e8);if(_0x4b8f99){_0x5e6af1[0x0]=_0x4b8f99;continue;}}_0x5e6af1['push'](_0x1e48e8);}_0x41c237['push']([_0x5ed68a['view'],_0x5e6af1]);}return _0x41c237;}),this['listenTo'](_0xec48ab,'suggestionLoaded',(_0x49484a,_0x23c0cb)=>{this['listenTo'](_0x23c0cb,'change:previous',(_0x500591,_0x5b0d5e,_0x2aee91,_0x56f13e)=>{_0x23c0cb['isInContent']&&(null==_0x2aee91?(this['_updateController'](_0x56f13e['head']),this['_handleSuggestionControllerDelayed'](_0x23c0cb,!0x1)):(this['_updateController'](_0x2aee91['head']),null==_0x56f13e&&this['_handleSuggestionControllerDelayed'](_0x23c0cb,!0x0)));}),null!==_0x23c0cb['previous']?this['_updateController'](_0x23c0cb['head']):this['_handleSuggestionControllerDelayed'](_0x23c0cb,!0x1);}),this['listenTo'](_0xec48ab,'suggestionUnloaded',(_0x1f205f,_0x5e84d8,_0x16e443)=>{this['stopListening'](_0x5e84d8,'change:previous'),this['_handleControllerBuffer']['delete'](_0x5e84d8),this['_suggestionToController']['has'](_0x5e84d8)&&this['_destroyController'](_0x5e84d8),_0x16e443&&this['_updateController'](_0x16e443['head']);}),this['listenTo'](_0xec48ab,'suggestionChanged',(_0x354456,_0x1e362c)=>{this['_updateController'](_0x1e362c);}),this['listenTo'](_0x1cdaf5,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x39ce4a,'addComment',(_0x4dc572,{threadId:_0x156cb2,isFromAdapter:_0x111417})=>{if(_0x111417||!_0xec48ab['hasSuggestion'](_0x156cb2))return;const _0x13b85=_0xec48ab['getSuggestion'](_0x156cb2);this['_suggestionToController']['get'](_0x13b85)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x28143a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2c2052;for(const _0x57187d in _0x28143a){const _0x309ce5=_0x57187d,_0x336761=_0x28143a[_0x309ce5];if('trackChangesLicenseKeyValid'==_0x336761||'trackChangesLicenseKeyInvalid'==_0x336761||'trackChangesLicenseKeyExpired'==_0x336761||'trackChangesLicenseKeyDomainLimit'==_0x336761||'trackChangesLicenseKeyNotAllowed'==_0x336761||'trackChangesLicenseKeyEvaluationLimit'==_0x336761||'trackChangesLicenseKeyTrialLimit'==_0x336761||'trackChangesLicenseKeyUsageLimit'==_0x336761){delete _0x28143a[_0x309ce5],_0x2c2052=_0x336761,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x2c2052&&_0x28143a['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x2c2052&&_0x28143a['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x2c2052&&_0x28143a['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x2c2052&&_0x28143a['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x2c2052&&_0x28143a['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x2c2052&&_0x28143a['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x2c2052&&_0x28143a['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x2aa79b){const _0x3a9bce=this['_suggestionToController']['get'](_0x2aa79b);if(!_0x3a9bce)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x3a9bce['view'])||null;}['getSuggestionForAnnotation'](_0x36da0f){const _0x9cbbff=this['_viewToController']['get'](_0x36da0f['innerView']);return _0x9cbbff?_0x9cbbff['model']:null;}['_refreshActiveMarkers'](){const _0x52715a=this['editor']['plugins']['get']('Annotations'),_0x520f92=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5d70c0=Array['from'](_0x52715a['activeAnnotations'],_0x5d096c=>_0x5d096c['innerView'])['filter'](_0xe201fb=>this['_viewToController']['has'](_0xe201fb)),_0xe04cfb=[];for(const _0x442972 of _0x5d70c0){const _0x10b5c7=this['_viewToController']['get'](_0x442972)['model']['getAllAdjacentSuggestions']();_0xe04cfb['push'](..._0x10b5c7['reduce']((_0x5098db,_0x274368)=>[..._0x5098db,..._0x274368['getMarkerNames']()],[]));}_0x520f92['activeMarkers']=_0xe04cfb;}['_addUIComponentsToFactory'](){const _0x591637=this['editor'],_0x1ee1d7=_0x591637['locale'],_0x198a55=o(_0x1ee1d7,'Track\x20changes'),_0x293821=new _0x49a3a5([{'type':'switchbutton','model':new _0x51ccc6({'withText':!0x0,'isToggleable':!0x0,'label':_0x198a55,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x51ccc6({'withText':!0x0,'label':o(_0x1ee1d7,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x51ccc6({'withText':!0x0,'label':o(_0x1ee1d7,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x51ccc6({'withText':!0x0,'label':o(_0x1ee1d7,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x51ccc6({'withText':!0x0,'label':o(_0x1ee1d7,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x591637['plugins']['has']('TrackChangesPreview')&&_0x293821['addMany']([{'type':'separator'},{'type':'button','model':new _0x51ccc6({'withText':!0x0,'label':o(_0x1ee1d7,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x583ba5 of _0x293821)if(ke(_0x583ba5)){const _0x5ec79c=_0x591637['commands']['get'](_0x583ba5['model']['commandName']);_0x583ba5['model']['bind']('isOn','isEnabled')['to'](_0x5ec79c,'value','isEnabled');}_0x591637['ui']['componentFactory']['add']('trackChanges',_0x2358d9=>this['_createToolbarButton'](_0x2358d9,_0x293821,_0x198a55)),_0x591637['ui']['componentFactory']['add']('menuBar:trackChanges',_0x13731c=>this['_createMenuBarMenu'](_0x13731c,_0x293821,_0x198a55));}['_createToolbarButton'](_0x2fe419,_0x19e7e8,_0x22b65b){const _0x18c9ce=_0x1a7bc1(_0x2fe419,_0x2b4076),_0x516558=this['editor']['commands']['get']('trackChanges');_0x18c9ce['buttonView']['set']({'tooltip':_0x22b65b,'label':_0x22b65b,'icon':_0x549e4c}),_0x18c9ce['buttonView']['bind']('isOn')['to'](_0x516558,'value'),_0x18c9ce['buttonView']['on']('execute',()=>{_0x516558['execute'](),this['editor']['editing']['view']['focus']();}),_0x57c9fb(_0x18c9ce,_0x19e7e8,{'role':'menu'});const _0x477b5d=[];for(const _0x376209 of _0x19e7e8)ke(_0x376209)&&_0x477b5d['push'](this['editor']['commands']['get'](_0x376209['model']['commandName']));const _0x5e388b=_0x18c9ce['buttonView'];return _0x5e388b['actionView']['unbind']('isEnabled'),_0x5e388b['arrowView']['unbind']('isEnabled'),_0x5e388b['actionView']['bind']('isEnabled')['to'](_0x516558,'isEnabled'),_0x5e388b['arrowView']['bind']('isEnabled')['toMany'](_0x477b5d,'isEnabled',(..._0x70b5a7)=>_0x70b5a7['some'](_0x16e18f=>_0x16e18f)),_0x18c9ce['on']('execute',_0x408dd5=>{this['editor']['execute'](_0x408dd5['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x18c9ce;}['_createMenuBarMenu'](_0x58282a,_0x379858,_0xc98ffc){const _0x27643f=new _0x2025e3(_0x58282a),_0x2b4d77=this['editor']['commands']['get']('trackChanges');_0x27643f['buttonView']['set']({'label':_0xc98ffc,'icon':_0x549e4c});const _0x8ddbd8=new _0x39e983(_0x58282a);for(const _0x4959c2 of _0x379858){if('separator'==_0x4959c2['type']){_0x8ddbd8['items']['add'](new _0x20cbf3(_0x58282a));continue;}const _0x236427=new _0x4d7d8a(_0x58282a,_0x27643f),_0x44938c=new _0x351920(_0x58282a),_0x4e30c6=_0x4959c2['model'];_0x44938c['bind'](...Object['keys'](_0x4e30c6))['to'](_0x4e30c6),_0x44938c['delegate']('execute')['to'](_0x27643f),_0x44938c['on']('execute',()=>{this['editor']['execute'](_0x4e30c6['commandName']),this['editor']['editing']['view']['focus']();}),_0x236427['children']['add'](_0x44938c),_0x8ddbd8['items']['add'](_0x236427);}return _0x27643f['bind']('isEnabled')['to'](_0x2b4d77,'isEnabled'),_0x27643f['panelView']['children']['add'](_0x8ddbd8),_0x27643f;}['_initializeController'](_0xe04006){const _0x3a20af=this['editor'],_0x4e8e87=_0x3a20af['config'],_0x46b87e=_0x3a20af['plugins']['get']('Annotations'),_0x1b483c=_0x3a20af['plugins']['get']('CommentsRepository'),_0x2d4599=_0x3a20af['plugins']['get']('EditorAnnotations'),_0x54e4fe=_0x3a20af['plugins']['get'](_0x41af33)['me'],_0x2ea5e2=_0x4e8e87['get']('trackChanges')['SuggestionThreadView'],_0x4eea80=_0x4e8e87['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x5e0275,CommentThreadInputView:_0x5c945c}=_0x3a20af['plugins']['get']('CommentsUI');let _0x49ed52,_0x666ca7,_0xc50f9;this['_annotationViews']['has'](_0xe04006['id'])?(_0x666ca7=this['_annotationViews']['get'](_0xe04006['id']),_0x49ed52=_0x666ca7['mainView']):(_0x49ed52=new _0x2ea5e2(_0x3a20af['locale'],_0xe04006,_0x54e4fe,{'disableComments':this['_disableComments'],'editorConfig':{..._0x4e8e87['get']('comments.editorConfig'),'licenseKey':_0x4e8e87['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x4e8e87['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4e8e87['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4e8e87['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x204812(_0x4e8e87['get']('locale'),_0x3a20af['locale']),'CommentView':_0x4e8e87['get']('comments')['CommentView'],'CommentsListView':_0x5e0275,'CommentThreadInputView':_0x5c945c,'SuggestionView':_0x4eea80}),_0x49ed52['suggestionView']['acceptButton']['on']('execute',()=>{_0x3a20af['editing']['view']['focus']();}),_0x49ed52['suggestionView']['discardButton']['on']('execute',()=>{_0x3a20af['editing']['view']['focus']();}),_0x666ca7=_0x46b87e['createAnnotationView'](this['editor']['locale'],_0x49ed52),_0x666ca7['bind']('isDirty')['to'](_0x49ed52,'isDirty'),_0x666ca7['bind']('length')['to'](_0x49ed52),_0x666ca7['bind']('type')['to'](_0x49ed52,'type',_0x2828dc=>'suggestion-'+_0x2828dc),_0x49ed52['on']('escape',()=>{_0xc50f9['fire']('escape');}),this['_annotationViews']['set'](_0xe04006['id'],_0x666ca7));const _0xbbe4a0=_0x1b483c['createCommentThreadController'](_0xe04006['commentThread'],_0x49ed52),_0x3293d5=new pe(_0x3a20af,_0xe04006,_0x49ed52,_0xbbe4a0),_0x16d5cb=_0xe04006['getAllAdjacentSuggestions']()['filter'](_0x24a523=>_0x24a523['isInContent']);_0x49ed52['descriptionParts']=_0x3a20af['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x16d5cb),this['_suggestionToController']['set'](_0xe04006,_0x3293d5),this['_viewToController']['set'](_0x49ed52,_0x3293d5);const _0xa48a3f=()=>{const _0xfec470=[],_0x542c52=_0xe04006['getAllAdjacentSuggestions']()['filter'](_0x36d6ea=>_0x36d6ea['isInContent']);for(const _0x8e968c of _0x542c52)_0xfec470['push'](..._0x8e968c['getMarkers']());return _0x49b990(_0x3a20af['editing'],_0xfec470);};_0xc50f9=_0x46b87e['createAnnotation']({'view':_0x666ca7,'target':_0xa48a3f,'type':()=>'suggestion-'+_0x3293d5['view']['type'],'isVisible':!!_0xa48a3f()}),_0x1b483c['_bindAnnotationToEditors'](_0x49ed52,_0xc50f9),_0x46b87e['add'](_0xc50f9),_0x2d4599['registerAnnotation'](_0xc50f9);}['_destroyController'](_0x56ebbd){const _0x35ba8f=this['editor']['plugins']['get']('CommentsRepository'),_0x45fbbd=this['editor']['plugins']['get']('Annotations'),_0x34e6eb=this['_suggestionToController']['get'](_0x56ebbd),_0x16c436=_0x34e6eb['view'],_0x464d6f=_0x45fbbd['getByInnerView'](_0x16c436);_0x35ba8f['_unbindEditors'](_0x16c436),_0x464d6f&&_0x45fbbd['remove'](_0x464d6f),this['_suggestionToController']['delete'](_0x56ebbd),this['_viewToController']['delete'](_0x16c436),_0x34e6eb['destroy']();}['_updateController'](_0xc61aa8){if(!_0xc61aa8['isInContent']||!this['_suggestionToController']['has'](_0xc61aa8))return;const _0x52e8bd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x17a270=this['_suggestionToController']['get'](_0xc61aa8),_0x4605dd=_0xc61aa8['getAllAdjacentSuggestions']();_0x17a270['view']['descriptionParts']=_0x52e8bd['descriptionFactory']['getDescriptions'](_0x4605dd);}['destroy'](){for(const _0x1c84ce of this['_suggestionToController']['keys']())this['_destroyController'](_0x1c84ce);for(const _0x1094cf of this['_annotationViews']['values']())_0x1094cf['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0xc79cf5){return'model'in _0xc79cf5;}class Fe extends _0xfd4522{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x265461){this['editor']['plugins']['get'](d)['adapter']=_0x265461;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x1f5d8f){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x1f5d8f);}['getSuggestions']({skipNotAttached:_0x5e5e3c=!0x1,toJSON:_0x4b0144=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x5e5e3c,'toJSON':_0x4b0144});}['getSuggestion'](_0xa45c9b){return this['editor']['plugins']['get'](d)['getSuggestion'](_0xa45c9b);}}const p=['Pagination'];class re extends _0xfd4522{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0xb315f8=this['editor'];if(_0xb315f8['config']['define']('trackChangesData.editorCreator',_0x13d06b=>{const _0x16d539=_0xb315f8['model']['document']['getRootNames']()['reduce']((_0x38290d,_0x2c1477)=>(_0x38290d[_0x2c1477]='',_0x38290d),{});return _0xb315f8['constructor']['create'](_0x16d539,_0x13d06b);}),'function'!=typeof _0xb315f8['config']['get']('trackChangesData')['editorCreator'])throw new _0x5d208c('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x44684e){return P(this['editor'],!0x0,_0x44684e);}['getDataWithDiscardedSuggestions'](_0x4f8bcb){return P(this['editor'],!0x1,_0x4f8bcb);}}class Ge extends _0xfd4522{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x402f8c){function _0x419dcc(_0x37590e){return _0x37590e['map'](_0x12bc54=>String['fromCharCode'](_0x12bc54))['join']('');}super(_0x402f8c),this['result']='end',_0x402f8c[_0x419dcc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x419dcc([0x76,0x69,0x65,0x77])][_0x419dcc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x419dcc([0x61,0x75,0x74,0x6f]),_0x402f8c[_0x419dcc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x419dcc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x419dcc([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x419dcc([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x419dcc([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(_0x15ae77){return void 0x0!==_0x15ae77['getRootsAttributes'];}async function P(_0x262b44,_0x430175,_0x1f274b){const _0x8c7a49=_0x518498(_0x262b44,p);_0x8c7a49['plugins']['push'](d,Ge),_0x8c7a49['rootsAttributes']=He(_0x262b44)?_0x262b44['getRootsAttributes']():void 0x0;const _0xd77f13=document['createDocumentFragment'](),_0x1114a9=_0x262b44['config']['get']('trackChangesData')['editorCreator'],_0x57f0f4=await _0x1114a9(_0x8c7a49,()=>function(_0x6c78af){const _0x3a1a41=document['createElement']('div');return _0x6c78af['appendChild'](_0x3a1a41),_0x3a1a41;}(_0xd77f13));!function(_0xced8dd,_0x374de0){const _0x518f0c=_0xced8dd['model']['document']['getRootNames']()['reduce']((_0x10f4f5,_0x3d993b)=>(_0x10f4f5[_0x3d993b]=_0xced8dd['data']['get']({'rootName':_0x3d993b}),_0x10f4f5),{}),_0x5b65ea=_0xced8dd['plugins']['get']('Users')['users']['map'](_0x44ce8b=>({'id':_0x44ce8b['id'],'name':_0x44ce8b['name']})),_0x15733e=_0xced8dd['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x262e7b=_0xced8dd['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xd3003d=_0x374de0['plugins']['get']('Users'),_0x1cebfe=_0x374de0['plugins']['get']('TrackChangesEditing'),_0x1a1dd9=_0x374de0['plugins']['get']('CommentsRepository');for(const _0x419c91 of _0x1a1dd9['getCommentThreads']())_0x419c91['remove']();for(const _0x5e79fb of _0x5b65ea)_0xd3003d['getUser'](_0x5e79fb['id'])||_0xd3003d['addUser'](_0x5e79fb);_0xd3003d['me']||_0xd3003d['useAnonymousUser']();for(const _0x57e186 of _0x262e7b)_0x1a1dd9['addCommentThread'](_0x57e186);for(const _0xae43b0 of _0x15733e)_0x1cebfe['addSuggestionData'](_0xae43b0);_0x374de0['data']['set'](_0x518f0c);}(_0x262b44,_0x57f0f4),_0x57f0f4['execute'](_0x430175?'acceptAllSuggestions':'discardAllSuggestions');const _0x32847d=He(_0x57f0f4)?_0x57f0f4['getFullData'](_0x1f274b):_0x57f0f4['data']['get'](_0x1f274b);return await _0x57f0f4['destroy'](),_0x32847d;}class Me extends _0x237d07{['options'];constructor(_0x4ca29,_0x32f80d){super(_0x4ca29),this['options']=_0x32f80d,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'](_0x436724,_0x3cb2ac){if(!this['element'])return;const _0x52e010=[];for(const [_0xaeaffa,_0xb5e0ea]of _0x436724){const _0x2c1d3a=document['createElement']('div');_0x2c1d3a['setAttribute']('data-ck-root-name',_0xaeaffa),_0x2c1d3a['className']=_0xb5e0ea['classes']+'\x20ck-track-changes-preview__root-container',_0x2c1d3a['innerHTML']=_0xb5e0ea['content'],_0x52e010['push'](_0x2c1d3a);}_0x3cb2ac(this['element'],_0x52e010),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x1366e1{constructor(_0x26810a){super(_0x26810a),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x17844e=this['editor'],_0xd4583c=_0x17844e['locale'],_0x26d086=_0x17844e['plugins']['get']('Dialog');let _0x37716b;const _0x351a53=function(_0x51bac1){const _0x1b3460={};if('editables'in _0x51bac1['ui']['view']){for(const [_0x4b0f9b,_0x18f329]of Object['entries'](_0x51bac1['ui']['view']['editables']))_0x1b3460[_0x4b0f9b]=_0x18f329['element'];}else _0x1b3460[_0x51bac1['model']['document']['getRootNames']()[0x0]]=_0x51bac1['ui']['view']['editable']['element'];return _0x1b3460;}(_0x17844e),_0x2e73da=function(_0x5ed8e7){let _0x4ca3cc=0x0;for(const _0x1c0c13 of Object['values'](_0x5ed8e7))_0x4ca3cc=Math['max'](_0x4ca3cc,_0x1c0c13['getBoundingClientRect']()['width']);let _0xd73d07=0x0;for(const _0x25ba8f of Object['values'](_0x5ed8e7))_0xd73d07+=_0x25ba8f['getBoundingClientRect']()['height'];const _0x9edf9d=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x233106=Math['min'](_0xd73d07,_0x9edf9d);return{'width':_0x4ca3cc,'height':_0x233106};}(_0x351a53);_0x26d086['show']({'id':'finalContentPreview','title':o(_0xd4583c,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0xd4583c,{'dialogRects':_0x2e73da}),'onHide':()=>{_0x37716b['detachFromDom']();},'onShow':()=>{_0x17844e['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x1d15da=>{const _0x53a1aa=this['_standarizeRootsData'](_0x1d15da,_0x17844e,_0x351a53);_0x26d086['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x53a1aa,_0x17844e['config']['get']('trackChanges.preview.renderFunction'));}),_0x37716b=new _0x3f81a3(_0xd4583c,[_0x26d086['view']]),_0x37716b['attachToDom'](),_0x37716b['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x17844e['once']('destroy',()=>{_0x37716b['detachFromDom']();});const _0x239b39=_0x26d086['view']['headerView']['class'];_0x26d086['view']['headerView']['class']=_0x239b39?_0x239b39+'\x20ck-reset_all':'ck-reset_all',_0x26d086['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x26d086['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x559a61=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x4ae116=_0x559a61['previewMode'],_0x349e4d={};if('$labels'===_0x4ae116){for(const _0x2e9e53 of _0x559a61['getMergeFieldsIds']())_0x349e4d[_0x2e9e53]=_0x559a61['getLabel'](_0x2e9e53)||_0x2e9e53;}else{const _0x46109a='$defaultValues'===_0x4ae116?_0x559a61['getDefaultValues']():_0x559a61['getDataSetValues'](_0x4ae116,!0x0);for(const _0x2ab319 of Object['entries'](_0x46109a)){const [_0x45a786,_0x472b30]=_0x2ab319;_0x349e4d[_0x45a786]=null!==_0x472b30?_0x472b30:_0x559a61['getLabel'](_0x45a786)||_0x45a786;}}return{'mergeFieldsData':_0x349e4d};}['_standarizeRootsData'](_0x3add9f,_0xf0cb5a,_0x3cd084){let _0x3edff5;if('string'==typeof _0x3add9f){const _0x47e880=_0xf0cb5a['model']['document']['getRootNames']()[0x0];_0x3edff5={[_0x47e880]:_0x3add9f};}else _0x3edff5=_0x3add9f;const _0x5583f9=this['_fixMediaEmbeds'](_0x3edff5,_0xf0cb5a),_0x10f0d3=function(_0x15abb0,_0x4998e1){for(const [_0x817542,_0x2378d7]of _0x15abb0)_0x2378d7['classes']=_0x4998e1[_0x817542]['classList']['value']['replace']('ck-focused','');return _0x15abb0;}(this['_sortRoots'](_0xf0cb5a)['reduce']((_0x342d94,_0x3bd123)=>(_0x342d94['push']([_0x3bd123,{'content':_0x5583f9[_0x3bd123],'classes':''}]),_0x342d94),[]),_0x3cd084);return _0x10f0d3;}['_fixMediaEmbeds'](_0x1d258c,_0x33fc77){if(!_0x33fc77['plugins']['has']('MediaEmbedEditing'))return _0x1d258c;const _0x916ca=_0x33fc77['plugins']['get']('MediaEmbedEditing');for(const [_0x573830,_0x451ae5]of Object['entries'](_0x1d258c)){const _0x5e7972=document['createElement']('div');_0x5e7972['innerHTML']=_0x451ae5,(_0x5e7972['querySelectorAll']('figure.media')['forEach'](_0x84925c=>{const _0x2b4844=_0x84925c['querySelector']('oembed');if(_0x2b4844){const _0x283be6=_0x2b4844['getAttribute']('url');if(_0x283be6){const _0x5e24dc=_0x916ca['registry']['getMediaViewElement'](new _0x21e70c(_0x33fc77['editing']['view']['document']),_0x283be6,{'elementName':'','renderForEditingView':!0x0}),_0x108b61=document['createElement']('div');_0x108b61['classList']['add']('ck-media__wrapper'),_0x5e24dc['render'](_0x108b61,_0x33fc77['editing']['view']['domConverter']),_0x2b4844['replaceWith'](_0x108b61);}}}),_0x1d258c[_0x573830]=_0x5e7972['innerHTML']);}return _0x1d258c;}['_sortRoots'](_0x43ea68){if(!function(_0x2cebfd){return void 0x0!==_0x2cebfd['getRootsAttributes'];}(_0x43ea68))return _0x43ea68['model']['document']['getRootNames']();const _0x3ebdfb=[],_0x22c6aa=new Map();for(const _0x2d790a of _0x43ea68['model']['document']['getRootNames']()){const _0x1cfd36=_0x43ea68['editing']['view']['getDomRoot'](_0x2d790a)['getClientRects']()['item'](0x0);_0x3ebdfb['push'](_0x2d790a),_0x22c6aa['set'](_0x2d790a,_0x1cfd36);}return _0x3ebdfb['sort']((_0xf15354,_0x4ccf2b)=>{const _0x26f986=_0x22c6aa['get'](_0xf15354),_0x2547e1=_0x22c6aa['get'](_0x4ccf2b);return _0x26f986['y']-_0x2547e1['y']||_0x26f986['x']-_0x2547e1['x'];}),_0x3ebdfb;}}class $e extends _0xfd4522{static get['requires'](){return[re,_0x5914c5];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x46b3df){super(_0x46b3df),_0x46b3df['commands']['add']('previewFinalContent',new te(this['editor'])),_0x46b3df['config']['define']('trackChanges.preview.renderFunction',(_0x24226b,_0x40f45a)=>{for(const _0x392e89 of _0x40f45a)_0x24226b['appendChild'](_0x392e89);});}}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};