@ckeditor/ckeditor5-track-changes 46.1.1-alpha.3 → 46.1.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 _0x23f2a4,Plugin as _0x1411ab,PendingActions as _0x30cc0e}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x27da15,ObservableMixin as _0xe7f3,uid as _0x19e4b0,priorities as _0x3f7cdb,insertToPriorityArray as _0x41043e,toArray as _0x5939fb,logWarning as _0x1fbb84,getEnvKeystrokeText as _0x18ffdb,FocusTracker as _0x1bae93,KeystrokeHandler as _0x182eb6,Collection as _0x3f2403}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x25e31e,IconCancel as _0x69661c,IconTrackChanges as _0x541609}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x592a3b,View as _0x3b596c,ViewCollection as _0x584fc4,FocusCycler as _0x4bbef1,UIModel as _0x9c81b9,createDropdown as _0x34e753,SplitButtonView as _0x20b9e5,addListToDropdown as _0x4cfc0e,MenuBarMenuView as _0x9c5e75,MenuBarMenuListView as _0xf6313a,ListSeparatorView as _0x18e0a1,MenuBarMenuListItemView as _0x4400fa,MenuBarMenuListItemButtonView as _0x1dd5dc,BodyCollection as _0x28b6c2,Dialog as _0x46b212}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x2239fd,hashObject as _0x5bbcb2,surroundingMarkersDetector as _0x6f253a,FOCUS_ANNOTATION_KEYSTROKE as _0x4899a8,AriaDescriptionView as _0x307699,setupThreadKeyboardNavigation as _0x2d1f60,trimHtml as _0xb5eb72,UserView as _0x437e30,LateFocusButtonView as _0x2ec26a,getDateTimeFormatter as _0x553361,getAllMarkersDomElementsSorted as _0x391b82,sanitizeEditorConfig as _0x3d8906}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x49a2a2,ModelLiveRange as _0x26ed96,ModelLivePosition as _0x12e48c,ViewDowncastWriter as _0x84e41e}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x161c1c,toWidget as _0x1c3e12}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x46b77d,set as _0x5bb398,isEqual as _0x29d605,unset as _0x2eb5ab,omit as Ut}from'es-toolkit/compat';import{Delete as _0xaeb5ba,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x35f53a}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x41c410}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class N extends _0x23f2a4{['_enabledCommands'];constructor(_0x5901ef,_0x2b1974){super(_0x5901ef),this['_enabledCommands']=_0x2b1974,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 _0x754b0 of this['editor']['commands']['commands']())_0x754b0['affectsData']&&!this['_enabledCommands']['has'](_0x754b0)&&_0x754b0['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x2d5975 of this['editor']['commands']['commands']())_0x2d5975['affectsData']&&!this['_enabledCommands']['has'](_0x2d5975)&&_0x2d5975['clearForceDisabled']('TrackChangesCommand');}}class D extends _0x23f2a4{['_suggestions'];constructor(_0x1599e5,_0x9cceb6){super(_0x1599e5),this['_suggestions']=_0x9cceb6,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x33c9b1){const _0x3a4753=this['_suggestions']['get'](_0x33c9b1);if(!_0x3a4753)throw new _0x27da15('track-changes-accept-suggestion-not-found',this);const _0x183f74=_0x3a4753['getRanges']();this['editor']['model']['canEditAt'](_0x183f74)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x3a4753);}}class $ extends _0x23f2a4{['_suggestions'];constructor(_0x4a611f,_0x41e549){super(_0x4a611f),this['_suggestions']=_0x41e549,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x15b960){const _0x4c9c2a=this['_suggestions']['get'](_0x15b960);if(!_0x4c9c2a)throw new _0x27da15('track-changes-discard-suggestion-not-found',this);const _0x275148=_0x4c9c2a['getRanges']();this['editor']['model']['canEditAt'](_0x275148)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x4c9c2a);}}function ls(_0xfe757d,_0x146ae9){let _0xfa8ead='';return _0xfa8ead+=_0xfe757d['split']('*')['map']((_0x5cc296,_0x4c2451)=>_0x4c2451%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+Zt(_0x5cc296)+'</span>':Zt(_0x5cc296))['join'](''),_0x146ae9&&(_0xfa8ead+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x146ae9['value']+'\x22\x20title=\x22'+_0x146ae9['title']+'\x22></span>'),_0xfa8ead;}function Zt(_0x40fbe8){const _0x43d8d2=document['createElement']('span');return _0x43d8d2['innerText']=_0x40fbe8,_0x43d8d2['innerHTML'];}function ts(_0x15c933){return _0x15c933['sort']((_0x3d8425,_0x29bd10)=>'attribute'===_0x3d8425['type']&&'attribute'!==_0x29bd10['type']?-0x1:'attribute'!==_0x3d8425['type']&&'attribute'===_0x29bd10['type']?0x1:'deletion'==_0x3d8425['type']&&'deletion'!=_0x29bd10['type']?-0x1:'deletion'!=_0x3d8425['type']&&'deletion'==_0x29bd10['type']?0x1:0x0);}function to(_0x4bb1a4,_0x4a425b){let _0x114a18,_0x47d3d5=0x0;const _0x5c84e1=[],_0x3080ba=_0x4a425b['schema'];for(;_0x47d3d5<_0x4bb1a4['length'];){const _0x4abf46=_0x4bb1a4[_0x47d3d5],_0xdfaaec=_0x4bb1a4[_0x47d3d5+0x1];_0x114a18||(_0x114a18=_0x4a425b['createPositionBefore'](_0x4abf46)),tn(_0x4a425b,_0x4abf46,_0xdfaaec)||(_0x5c84e1['push'](_0x4a425b['createRange'](_0x114a18,_0x3080ba['isObject'](_0x4abf46)?_0x4a425b['createPositionAfter'](_0x4abf46):_0x4a425b['createPositionAt'](_0x4abf46,'end'))),_0x114a18=null),_0x47d3d5++;}return _0x5c84e1;}function tn(_0x18e40f,_0x4d5bdb,_0x332f08){if(!_0x332f08)return!0x1;const _0x33a549=_0x18e40f['createPositionAfter'](_0x4d5bdb),_0x1c22a4=_0x18e40f['createPositionBefore'](_0x332f08);return _0x33a549['isTouching'](_0x1c22a4);}function rs(_0x356ff8,_0x40ee11,_0x399117){for(;_0x399117['length'];){const _0x54b6e9=_0x399117['splice'](0x0,0x64);_0x356ff8['change'](()=>{for(const _0xe6a096 of _0x54b6e9)_0xe6a096['isInContent']&&_0x40ee11['execute'](_0xe6a096['id']);});}}class M extends _0x23f2a4{['_command'];['_suggestions'];constructor(_0x15aac6,_0x2ab840,_0x5b8ad4){super(_0x15aac6),this['_command']=_0x2ab840,this['_suggestions']=_0x5b8ad4,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x59b314=Array['from'](this['_suggestions']['values']())['some'](_0x5cf734=>_0x5cf734['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x59b314;}['execute'](){const _0x4bb127=ts(Array['from'](this['_suggestions']['values']()));for(const _0x181d34 of _0x4bb127){const _0x1b1ba9=_0x181d34['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1b1ba9))return;}rs(this['editor']['model'],this['_command'],_0x4bb127);}}class B extends _0x23f2a4{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x2124e1,_0x5d6218,_0x3f6ed4){super(_0x2124e1),this['_command']=_0x5d6218,this['_suggestions']=_0x3f6ed4,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0xf2f53b=this['editor']['model']['document']['selection'],_0x4125aa=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x18cdeb,_0x4d74d4){const _0xbc96b=Array['from'](_0x18cdeb['getRanges']()),_0x3d9fca=new Set();for(const _0x3999e3 of _0x4d74d4)if(_0x3999e3['isInContent']){for(const _0x473a52 of _0xbc96b)for(const _0x3dcee1 of _0x3999e3['getRanges']())(_0x473a52['isIntersecting'](_0x3dcee1)||_0x18cdeb['isCollapsed']&&!_0x3999e3['isMultiRange']&&_0x3999e3['next']&&_0x3dcee1['end']['isTouching'](_0x473a52['start']))&&_0x3d9fca['add'](_0x3999e3);}return _0x3d9fca;}(_0xf2f53b,_0x4125aa),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x4f9b56=ts(Array['from'](this['_selectedSuggestions']));for(const _0x570d76 of _0x4f9b56){const _0x329f95=_0x570d76['getRanges']();if(!this['editor']['model']['canEditAt'](_0x329f95))return;}rs(this['editor']['model'],this['_command'],_0x4f9b56);}}class T extends/* #__PURE__ -- @preserve */
24
- _0xe7f3(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x2379f2,_0x50af82){super(),this['id']=_0x50af82['id'],this['type']=_0x50af82['type'],this['subType']=_0x50af82['subType']||null,this['author']=_0x50af82['author'],this['creator']=_0x50af82['creator']||_0x50af82['author'],this['isExternal']=Boolean(_0x50af82['attributes']&&_0x50af82['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x50af82['originalSuggestionId']||null,this['_model']=_0x2379f2,this['_onAccept']=_0x50af82['onAccept'],this['_onDiscard']=_0x50af82['onDiscard'],this['_onAttributesChange']=_0x50af82['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x50af82['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 _0xede55=this;for(;_0xede55['previous'];)_0xede55=_0xede55['previous'];return _0xede55;}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'](_0x39cb32){this['_markerNames']['add'](_0x39cb32);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x518040=>this['_model']['markers']['get'](_0x518040))['filter'](_0x3b7cf4=>_0x3b7cf4);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x4b0ef4=>{for(const _0x58af67 of this['getMarkers']())_0x4b0ef4['removeMarker'](_0x58af67);}),this['_markerNames']['clear']();}['removeMarker'](_0x36e8f5){this['_model']['change'](_0x2fdb70=>{_0x2fdb70['removeMarker'](_0x36e8f5);}),this['_markerNames']['delete'](_0x36e8f5);}['addRange'](_0xab5c58){const _0x7c0e11='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x7c0e11),this['_model']['change'](_0x56e895=>{_0x56e895['addMarker'](_0x7c0e11,{'range':_0xab5c58,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x438f33){for(const _0x4953f9 of this['getRanges']())if(_0x4953f9['isIntersecting'](_0x438f33))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4568ac=>_0x4568ac['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x48c48a,_0xa1e998)=>[..._0x48c48a,..._0xa1e998['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x3b348c=this['getRanges']();if(0x1!=_0x3b348c['length'])return null;const _0x257375=_0x3b348c[0x0],_0x4fe572=_0x257375['start']['nodeAfter'],_0x3525e0=_0x257375['end']['nodeBefore'];return _0x4fe572 instanceof _0x49a2a2?_0x4fe572!=_0x3525e0?null:_0x4fe572: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 _0x51e234=[];let _0x52b046=this['head'];for(;_0x52b046;)_0x51e234['push'](_0x52b046),_0x52b046=_0x52b046['next'];return _0x51e234;}['setAttribute'](_0x12d204,_0xa5445){const _0x54dc09=_0x46b77d(this['attributes']);_0x5bb398(_0x54dc09,_0x12d204,_0xa5445),_0x29d605(_0x54dc09,this['attributes'])||(this['attributes']=_0x54dc09,this['_onAttributesChange'](_0x54dc09));}['removeAttribute'](_0x1d6dcc){const _0x5492dc=_0x46b77d(this['attributes']);_0x2eb5ab(_0x5492dc,_0x1d6dcc),_0x29d605(_0x5492dc,this['attributes'])||(this['attributes']=_0x5492dc,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 _0x19e4b0()['substr'](0x1,0x5);}}function o(_0x16545c,_0x485d34,_0x57c40e){const _0x54a0ac=_0x16545c['t'],t=_0x16545c['t'];switch(_0x485d34){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',_0x57c40e);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x57c40e);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x57c40e);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x57c40e);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x57c40e);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',_0x57c40e);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x57c40e);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',_0x57c40e);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x57c40e);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x57c40e);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x57c40e);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x57c40e);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x57c40e);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x57c40e);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x57c40e);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x57c40e);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x57c40e);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x57c40e);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x57c40e);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x57c40e);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x57c40e);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x57c40e);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x57c40e);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x57c40e);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x57c40e);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'},_0x57c40e);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x57c40e);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x57c40e);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x57c40e);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x57c40e);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x57c40e);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x57c40e);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x57c40e);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'},_0x57c40e);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x57c40e);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x57c40e);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x57c40e);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x57c40e);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'},_0x57c40e);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x57c40e);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'},_0x57c40e);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'},_0x57c40e);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x57c40e);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'},_0x57c40e);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x57c40e);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'},_0x57c40e);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x57c40e);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x57c40e);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'},_0x57c40e);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x57c40e);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 _0x54a0ac({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x57c40e);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x54a0ac({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x57c40e);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x57c40e);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'},_0x57c40e);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'},_0x57c40e);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'},_0x57c40e);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x485d34;}}class x{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x131bd4,_0xd3ce){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x131bd4,this['_locale']=_0xd3ce;}['getDescriptions'](_0x1047fe){const _0x225e72=[],_0x3e176e=new Set(),_0x1a339a=new Set();for(let _0x277313=0x0;_0x277313<_0x1047fe['length'];_0x277313++){const _0x4af9ac=_0x1047fe[_0x277313];if(!_0x4af9ac['isInContent'])continue;const _0x49eb77=this['_handleCustomCallbackDescription'](_0x4af9ac);if(_0x49eb77){if(null!=_0x4af9ac['subType']){if(_0x3e176e['has'](_0x4af9ac['subType']))continue;_0x3e176e['add'](_0x4af9ac['subType']);}_0x225e72['push'](_0x49eb77);}else{if('attribute'==_0x4af9ac['type']){const _0x159777=_0x4af9ac['data']['key'];if(_0x1a339a['has'](_0x159777))continue;_0x1a339a['add'](_0x4af9ac['data']['key']),_0x159777==m?this['_handleRenameSuggestionDescription'](_0x225e72,_0x4af9ac):this['_handleAttributeSuggestionDescription'](_0x225e72,_0x4af9ac);continue;}'insertion'!=_0x4af9ac['type']&&'deletion'!=_0x4af9ac['type']||this['_handleInsertRemoveSuggestionDescription'](_0x225e72,_0x4af9ac,_0x1047fe[_0x277313+0x1]);}}return this['_resolveDescriptionItems'](_0x225e72);}['registerDescriptionCallback'](_0x44fa5f){this['_customCallbacks']['push'](_0x44fa5f);}['registerElementLabel'](_0x3ea76f,_0x55be09,_0x33d970=_0x3f7cdb['normal']){'function'==typeof _0x3ea76f?_0x41043e(this['_itemLabelsCallbacks'],{'matchingCallback':_0x3ea76f,'label':_0x55be09,'priority':_0x33d970}):this['_itemLabels']['set'](_0x3ea76f,_0x55be09);}['registerAttributeLabel'](_0x542714,_0x33512e){this['_attributeLabels']['set'](_0x542714,_0x33512e);}['getItemLabel'](_0x408735,_0x1f4993=0x1){let _0x45bd06;for(const _0x11ad51 of this['_itemLabelsCallbacks'])if(_0x11ad51['matchingCallback'](_0x408735)){_0x45bd06=_0x11ad51['label'];break;}return _0x45bd06||(_0x45bd06=this['_itemLabels']['get'](_0x408735['name'])),_0x45bd06?_0x45bd06(_0x1f4993):0x1!==_0x1f4993?_0x1f4993+'\x20'+_0x408735['name']+'s':''+_0x408735['name'];}['_addDescriptionItems'](_0x3bb704,_0x36b41c){const _0x225be8=_0x36b41c['getFirstRange']()['getWalker'](),_0x156ca4='insertion'==_0x36b41c['type']?'add':'remove';for(const _0x1358ef of _0x225be8){const _0x260ffc=_0x1358ef['item'],_0x3deea3=_0x3bb704[_0x3bb704['length']-0x1];if(_0x260ffc['is']('$textProxy'))_0x3deea3&&_0x3deea3['type']['indexOf']('Container')>-0x1&&_0x3bb704['pop'](),_0x3deea3&&'text'==_0x3deea3['type']?_0x3deea3[_0x156ca4]+=_0x260ffc['data']:_0x3bb704['push']({'type':'text','add':'add'==_0x156ca4?_0x260ffc['data']:'','remove':'remove'==_0x156ca4?_0x260ffc['data']:''});else{if(this['_schema']['isObject'](_0x260ffc)){const _0x31e911=_0x260ffc;if(_0x3deea3&&_0x3deea3['type']['indexOf']('Container')>-0x1&&_0x3bb704['pop'](),'elementEnd'==_0x1358ef['type'])continue;_0x3deea3&&_0x3deea3['type']==_0x156ca4+'Object'&&_0x3deea3['element']['name']==_0x31e911['name']?_0x3deea3['quantity']++:_0x3bb704['push']({'type':_0x156ca4+'Object','element':_0x31e911,'quantity':0x1}),_0x225be8['skip'](_0x34be43=>!('elementEnd'==_0x34be43['type']&&_0x34be43['item']==_0x260ffc));}else{if(this['_schema']['checkChild'](_0x260ffc,'$text')||_0x260ffc['is']('element','softBreak')){const _0x4839ea=_0x260ffc;if('add'==_0x156ca4&&'elementStart'==_0x1358ef['type']||'remove'==_0x156ca4&&'elementEnd'==_0x1358ef['type'])continue;if(_0x3deea3&&-0x1==_0x3deea3['type']['indexOf']('Container')){'text'==_0x3deea3['type']&&(_0x3deea3[_0x156ca4]+='\x0a');continue;}let _0x45f73e;if(_0x45f73e='add'==_0x156ca4?_0x4839ea['nextSibling']&&!this['_schema']['isObject'](_0x4839ea['nextSibling'])?_0x4839ea['nextSibling']:null:_0x4839ea['previousSibling']&&!this['_schema']['isObject'](_0x4839ea['previousSibling'])?_0x4839ea['previousSibling']:null,_0x4839ea['isEmpty']||_0x45f73e&&_0x45f73e['isEmpty']){const _0x8bdb53=_0x45f73e&&_0x45f73e['isEmpty']?_0x45f73e:_0x4839ea;_0x3deea3&&_0x3deea3['type']==_0x156ca4+'EmptyContainer'&&_0x3deea3['element']['name']==_0x8bdb53['name']?_0x3deea3['quantity']++:_0x3bb704['push']({'type':_0x156ca4+'EmptyContainer','element':_0x8bdb53,'quantity':0x1});}else _0x3bb704['push']({'type':_0x156ca4+'Container','element':_0x4839ea});}}}}}['_resolveDescriptionItems'](_0x581d6e){const _0x55fc30=this['_locale'],_0x5a68af=[],_0x424718=[],_0x3233a1=[];for(const _0x2c5a08 of _0x581d6e)switch(_0x2c5a08['type']){case'text':if(_0x2c5a08['add']=_0x2c5a08['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x2c5a08['remove']=_0x2c5a08['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x2c5a08['add']&&''!=_0x2c5a08['remove']){_0x5a68af['push']({'type':'replace','content':o(_0x55fc30,'REPLACE_TEXT',['\x22'+_0x2c5a08['remove']+'\x22','\x22'+_0x2c5a08['add']+'\x22'])});continue;}if(null!=_0x2c5a08['add']['match'](/^ +$/)){_0x5a68af['push']({'type':'insertion','content':o(_0x55fc30,'*Insert:*\x20%0',o(_0x55fc30,'ELEMENT_SPACE',_0x2c5a08['add']['length']))});continue;}if(null!=_0x2c5a08['remove']['match'](/^ +$/)){_0x5a68af['push']({'type':'deletion','content':o(_0x55fc30,'*Remove:*\x20%0',o(_0x55fc30,'ELEMENT_SPACE',_0x2c5a08['remove']['length']))});continue;}if(''!=_0x2c5a08['add']){_0x5a68af['push']({'type':'insertion','content':o(_0x55fc30,'*Insert:*\x20%0','\x22'+_0x2c5a08['add']+'\x22')});continue;}_0x5a68af['push']({'type':'deletion','content':o(_0x55fc30,'*Remove:*\x20%0','\x22'+_0x2c5a08['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x5a68af['push']({'type':'insertion','content':o(_0x55fc30,'*Insert:*\x20%0',this['getItemLabel'](_0x2c5a08['element'],_0x2c5a08['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x5a68af['push']({'type':'deletion','content':o(_0x55fc30,'*Remove:*\x20%0',this['getItemLabel'](_0x2c5a08['element'],_0x2c5a08['quantity']))});continue;case'addContainer':_0x5a68af['push']({'type':'insertion','content':o(_0x55fc30,'*Split:*\x20%0',this['getItemLabel'](_0x2c5a08['element'],_0x2c5a08['quantity']))});continue;case'removeContainer':_0x5a68af['push']({'type':'deletion','content':o(_0x55fc30,'*Merge:*\x20%0',this['getItemLabel'](_0x2c5a08['element'],_0x2c5a08['quantity']))});continue;case'addFormat':_0x424718['push'](_0x2c5a08['key']);continue;case'removeFormat':_0x3233a1['push'](_0x2c5a08['key']);continue;default:_0x5a68af['push'](_0x2c5a08);}if(_0x424718['length']){const _0x1a5fe7=_0x424718['map'](_0x27d604=>this['_attributeLabels']['has'](_0x27d604)?this['_attributeLabels']['get'](_0x27d604):_0x27d604)['join'](',\x20');_0x5a68af['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x1a5fe7)});}if(_0x3233a1['length']){const _0x142b1b=_0x3233a1['map'](_0x149828=>this['_attributeLabels']['has'](_0x149828)?this['_attributeLabels']['get'](_0x149828):_0x149828)['join'](',\x20');_0x5a68af['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x142b1b)});}return _0x5a68af;}['_handleCustomCallbackDescription'](_0x232ddf){for(const _0x47e142 of this['_customCallbacks']){const _0x385eb7=_0x47e142(_0x232ddf);if(_0x385eb7&&'type'in _0x385eb7)return _0x385eb7;}}['_handleAttributeSuggestionDescription'](_0x4a07a5,_0x4be280){const _0x198829=_0x4be280['data'],_0x412597=void 0x0===_0x198829['newValue']?'removeFormat':'addFormat';_0x4a07a5['push']({'type':_0x412597,'key':_0x198829['key']});}['_handleRenameSuggestionDescription'](_0x2511b9,_0x47ca6d){_0x2511b9['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x47ca6d['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x258ba4,_0x1034dc,_0x59d0ad){if(this['_addDescriptionItems'](_0x258ba4,_0x1034dc),_0x59d0ad&&_0x59d0ad['getFirstRange']()&&!_0x1034dc['getFirstRange']()['end']['isEqual'](_0x59d0ad['getFirstRange']()['start'])){const _0xc7d3ec=_0x258ba4[_0x258ba4['length']-0x1],_0x4d9cf5='insertion'==_0x1034dc['type']?'add':'remove';_0xc7d3ec&&'text'==_0xc7d3ec['type']&&(_0xc7d3ec[_0x4d9cf5]+='\x0a');}}}class O extends _0x1411ab{['afterInit'](){const _0x4ddc7b=this['editor'],_0x294d95=_0x4ddc7b['plugins']['get']('TrackChangesEditing');_0x4ddc7b['commands']['get']('showAIAssistant')&&_0x294d95['enableCommand']('showAIAssistant');}}class E extends _0x1411ab{['afterInit'](){const _0x3b821f=this['editor'],_0x28b989=_0x3b821f['locale'];if(!_0x3b821f['plugins']['has']('AlignmentEditing'))return;const _0x5b1dfd=_0x3b821f['plugins']['get']('TrackChangesEditing');_0x5b1dfd['enableDefaultAttributesIntegration']('alignment'),_0x5b1dfd['registerBlockAttribute']('alignment'),_0x5b1dfd['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x28b989,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4fc713=this['editor'],_0x99aacc=_0x4fc713['locale'];_0x4fc713['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2785cb=>{if('formatBlock'!=_0x2785cb['type'])return;const {data:_0x24e8c0}=_0x2785cb;if(_0x24e8c0&&'alignment'==_0x24e8c0['commandName']){const _0x291ea3=_0x24e8c0['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x99aacc,'*Format:*\x20%0',function(_0x10fc16){switch(_0x10fc16){case'left':return o(_0x99aacc,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x99aacc,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x99aacc,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x99aacc,'FORMAT_JUSTIFY_TEXT');}}(_0x291ea3))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class R extends _0x1411ab{['afterInit'](){const _0x41d603=this['editor'],_0x57f43b=_0x41d603['plugins']['get']('TrackChangesEditing'),_0x35a314=_0x41d603['locale'];for(const _0x1d73cc of ti){if(!_0x41d603['plugins']['has'](_0x1d73cc))continue;const _0xa59d0=_0x1d73cc['slice'](0x0,-0x7)['toLowerCase'](),_0x434266='FORMAT_'+_0xa59d0['toUpperCase']();_0x57f43b['enableDefaultAttributesIntegration'](_0xa59d0),_0x57f43b['registerInlineAttribute'](_0xa59d0),_0x57f43b['descriptionFactory']['registerAttributeLabel'](_0xa59d0,o(_0x35a314,_0x434266));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe68fdc=this['editor'],_0x255229=_0xe68fdc['locale'],_0x5877a9=_0xe68fdc['plugins']['get']('TrackChangesEditing');function _0x25bd1d(_0x46a13d,_0x4469c){_0x5877a9['descriptionFactory']['registerDescriptionCallback'](_0x3fd19a=>{if('formatInline'!=_0x3fd19a['type'])return;const {data:_0x35c085}=_0x3fd19a;return _0x35c085&&_0x35c085['commandName']===_0x46a13d?_0x35c085['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x255229,'*Format:*\x20%0',_0x4469c)}:{'type':'format','content':o(_0x255229,'*Remove\x20format:*\x20%0',_0x4469c)}:void 0x0;});}_0x25bd1d('bold',o(_0x255229,'FORMAT_BOLD')),_0x25bd1d('italic',o(_0x255229,'FORMAT_ITALIC')),_0x25bd1d('underline',o(_0x255229,'FORMAT_UNDERLINE')),_0x25bd1d('code',o(_0x255229,'FORMAT_CODE')),_0x25bd1d('strikethrough',o(_0x255229,'FORMAT_STRIKETHROUGH')),_0x25bd1d('subscript',o(_0x255229,'FORMAT_SUBSCRIPT')),_0x25bd1d('superscript',o(_0x255229,'FORMAT_SUPERSCRIPT'));}}class U extends _0x1411ab{['afterInit'](){const _0x247161=this['editor'],_0x46f84f=_0x247161['locale'];if(!_0x247161['plugins']['has']('BlockQuoteEditing'))return;const _0xd43e73=_0x247161['plugins']['get']('TrackChangesEditing'),_0x9b1398=this['editor']['commands']['get']('blockQuote');_0xd43e73['enableCommand']('blockQuote',(_0x3be04d,_0x37bc47={})=>{const _0x5e1616=this['editor']['model']['document']['selection'],_0x65b2ed=_0x37bc47&&void 0x0!==_0x37bc47['forceValue']?_0x37bc47['forceValue']:!_0x9b1398['value'];let _0x19eb93=[];if(_0x65b2ed){const _0x805df3=Array['from'](_0x5e1616['getSelectedBlocks']())['filter'](_0x1ecd2d=>oo(_0x1ecd2d)||function(_0x3b5ffa,_0x43764e){const _0x2c2647=_0x43764e['checkChild'](_0x3b5ffa['parent'],'blockQuote'),_0x5db2b4=_0x43764e['checkChild'](['$root','blockQuote'],_0x3b5ffa);return _0x2c2647&&_0x5db2b4;}(_0x1ecd2d,this['editor']['model']['schema']));_0x19eb93=to(_0x805df3,_0x247161['model']);}else{const _0x55856e=Array['from'](_0x5e1616['getSelectedBlocks']())['filter'](_0x1b8a07=>oo(_0x1b8a07));_0x19eb93=to(_0x55856e,_0x247161['model']);}_0x247161['model']['change'](()=>{for(const _0xdc49a6 of _0x19eb93)_0xd43e73['markBlockFormat'](_0xdc49a6,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x65b2ed}]});});}),_0xd43e73['descriptionFactory']['registerDescriptionCallback'](_0x23cb52=>{const {data:_0x224c44}=_0x23cb52;if(_0x224c44&&'blockQuote'==_0x224c44['commandName']){const _0x1ee453=o(_0x46f84f,'ELEMENT_BLOCK_QUOTE');return _0x224c44['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x46f84f,'*Set\x20format:*\x20%0',_0x1ee453)}:{'type':'format','content':o(_0x46f84f,'*Remove\x20format:*\x20%0',_0x1ee453)};}});}}function oo(_0x408a39){return'blockQuote'==_0x408a39['parent']['name'];}class V extends _0x1411ab{['afterInit'](){const _0x37bdf5=this['editor'],_0x49a630=_0x37bdf5['locale'],_0x15d9f2=_0x37bdf5['plugins']['get']('TrackChangesEditing');_0x37bdf5['plugins']['has']('BookmarkEditing')&&(_0x15d9f2['enableCommand']('insertBookmark'),_0x15d9f2['enableDefaultAttributesIntegration']('updateBookmark'),_0x15d9f2['registerBlockAttribute']('bookmarkId'),_0x15d9f2['descriptionFactory']['registerDescriptionCallback'](_0x36e092=>{if('insertion'!=_0x36e092['type']&&'deletion'!=_0x36e092['type']&&'attribute'!=_0x36e092['type'])return;const _0x5d8527=_0x36e092['getContainedElement']();if(null==_0x5d8527)return;if(!_0x5d8527['is']('element','bookmark'))return;const _0x36e4ed=_0x5d8527['getAttribute']('bookmarkId');if('insertion'==_0x36e092['type'])return{'type':'insertion','content':o(_0x49a630,'*Insert:*\x20%0','\x22'+_0x36e4ed+'\x22\x20'+o(_0x49a630,'ELEMENT_BOOKMARK'))};if('deletion'==_0x36e092['type'])return{'type':'deletion','content':o(_0x49a630,'*Remove:*\x20%0','\x22'+_0x36e4ed+'\x22\x20'+o(_0x49a630,'ELEMENT_BOOKMARK'))};const {data:_0x4a8aa8}=_0x36e092;if(!_0x4a8aa8||'bookmarkId'!=_0x4a8aa8['key'])return;return{'type':'format','content':o(_0x49a630,'*Set\x20bookmark:*\x20%0','\x22'+_0x4a8aa8['newValue']+'\x22')};}));}}class F extends _0x1411ab{['afterInit'](){const _0x2e97b6=this['editor'];_0x2e97b6['plugins']['has']('CaseChange')&&(_0x2e97b6['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x2e97b6['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x2e97b6['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x1411ab{['afterInit'](){const _0x33ead3=this['editor'];_0x33ead3['commands']['get']('ckbox')&&_0x33ead3['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x1411ab{['afterInit'](){const _0x3a3ad2=this['editor'];if(!_0x3a3ad2['plugins']['has']('CodeBlock'))return;const _0x57243c=_0x3a3ad2['plugins']['get']('TrackChangesEditing'),_0x233b9f=_0x3a3ad2['locale'],_0x2b3646=_0x3a3ad2['config']['get']('codeBlock')['languages'],_0x42fec0=_0x3a3ad2['commands']['get']('codeBlock');_0x57243c['enableCommand']('indentCodeBlock'),_0x57243c['enableCommand']('outdentCodeBlock'),_0x57243c['enableCommand']('codeBlock',(_0x1f0e66,_0xc71ec8={})=>{const _0x1a6552=_0x3a3ad2['model'],_0x11b786=_0x3a3ad2['model']['document']['selection'],_0x4e0248=_0xc71ec8&&void 0x0!==_0xc71ec8['forceValue']?_0xc71ec8['forceValue']:!_0x42fec0['value'];let _0x4582d6;_0xc71ec8['language']||(_0xc71ec8['language']=_0x2b3646[0x0]['language']),_0x4582d6=_0x4e0248?Array['from'](_0x11b786['getSelectedBlocks']())['filter'](_0x269e0d=>co(_0x269e0d)||function(_0x1922d8,_0x5cbf58){if(_0x1922d8['is']('rootElement')||_0x5cbf58['isLimit'](_0x1922d8))return!0x1;return _0x5cbf58['checkChild'](_0x1922d8['parent'],'codeBlock');}(_0x269e0d,_0x1a6552['schema'])):Array['from'](_0x11b786['getSelectedBlocks']())['filter'](_0x44e29b=>co(_0x44e29b));const _0x5e07cc=to(_0x4582d6,_0x1a6552);_0x1a6552['change'](()=>{for(const _0x543820 of _0x5e07cc)_0x57243c['markBlockFormat'](_0x543820,{'commandName':'codeBlock','commandParams':[{..._0xc71ec8,'forceValue':_0x4e0248}],'formatGroupId':'blockName'});});}),(_0x57243c['descriptionFactory']['registerElementLabel']('codeBlock',_0x3aa5ce=>o(_0x233b9f,'ELEMENT_CODE_BLOCK',_0x3aa5ce)),_0x57243c['descriptionFactory']['registerDescriptionCallback'](_0x41d6c8=>{if('formatBlock'!=_0x41d6c8['type'])return;const _0x4b20df=_0x233b9f['t'],{data:_0x733bae}=_0x41d6c8;if(!_0x733bae||'codeBlock'!=_0x733bae['commandName'])return;const _0x585b37=_0x733bae['commandParams'][0x0]['language'],_0x447976=_0x4b20df(_0x2b3646['find'](_0x4de379=>_0x4de379['language']===_0x585b37)['label'])['toLowerCase']();return _0x733bae['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x233b9f,'*Set\x20format:*\x20%0',o(_0x233b9f,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x447976+')')}:{'type':'format','content':o(_0x233b9f,'*Remove\x20format:*\x20%0',o(_0x233b9f,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x5313d7){return'codeBlock'==_0x5313d7['name'];}class J extends _0x1411ab{['afterInit'](){const _0x5b4098=this['editor'];if(!_0x5b4098['plugins']['has']('CommentsEditing'))return;_0x5b4098['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x1fb0ed,_0x2b56bc,_0x1e0194){const _0x369e40=[];for(const _0x22a75e of _0x2b56bc['getItems']())_0x22a75e['hasAttribute'](_0x1fb0ed)&&_0x369e40['push'](_0x1e0194['createRangeOn'](_0x22a75e));return _0x369e40;}function De(_0x39bfc4,_0x528278,{showActiveMarker:_0x231c48=!0x0}={}){const _0x58f3e7=_0x39bfc4['plugins']['get']('TrackChangesEditing');return(_0x3fb99f,_0x3c1b1d,_0x4bd0cf)=>{if(!_0x4bd0cf['consumable']['test'](_0x3c1b1d['markerRange'],_0x3fb99f['name']))return;const _0x15b506=_0x3c1b1d['markerRange']['getWalker'](),_0x3121e5=_0x3c1b1d['markerRange']['start'],_0x3e5090=_0x39bfc4['model']['schema'];let _0x9e11a9=null,_0x8ab729=null,_0x3be911=!0x1,_0x2bcaa0=!0x1;for(const _0xc9c433 of _0x15b506){const _0x4a571a=_0xc9c433['item'];_0x3be911=_0x3be911||_0x3e5090['isContent'](_0x4a571a);const _0x4f4883=_0x4bd0cf['mapper']['toViewElement'](_0x4a571a);if(_0x4f4883&&_0x4f4883['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xc9c433['type']&&(_0x3e5090['isBlock'](_0x4a571a)&&!_0x3e5090['isLimit'](_0x4a571a)&&(_0x4a571a['nextSibling']||_0x3121e5['isAtEnd']?_0x9e11a9&&_0x9e11a9['parent']==_0x4a571a||(_0x9e11a9=_0x4a571a,_0x56b962(_0xc9c433['previousPosition']),_0x2bcaa0=!0x0):_0x8ab729=_0x8ab729||_0xc9c433['previousPosition']));}function _0x56b962(_0x3c4600){const {id:_0x1a4e6c,authorId:_0x2fd100}=_0x58f3e7['_splitMarkerName'](_0x3c1b1d['markerName']),_0x48a16f=_0x4bd0cf['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x528278,'data-suggestion':_0x1a4e6c,'data-author-id':_0x2fd100}),_0x1bc741=_0x4bd0cf['mapper']['toViewPosition'](_0x3c4600);_0x231c48&&_0x58f3e7['activeMarkers']['includes'](_0x3c1b1d['markerName'])&&_0x4bd0cf['writer']['addClass']('ck-suggestion-marker--active',_0x48a16f),_0x4bd0cf['writer']['insert'](_0x1bc741,_0x48a16f),_0x4bd0cf['mapper']['bindElementToMarker'](_0x48a16f,_0x3c1b1d['markerName']);}_0x3be911||_0x2bcaa0||!_0x8ab729||_0x56b962(_0x8ab729);};}class K extends _0x1411ab{static get['requires'](){return[_0xaeb5ba];}['init'](){const _0x27aac9=this['editor'],_0x5df94d=_0x27aac9['plugins']['get']('TrackChangesEditing');_0x5df94d['enableCommand']('delete');const _0x236ee2=_0x27aac9['commands']['get']('deleteForward');_0x5df94d['enableCommand']('deleteForward',(_0x3b751f,_0x4f2601={})=>{const _0x26a837=_0x27aac9['model']['createSelection'](_0x27aac9['model']['document']['selection']);_0x26a837['isCollapsed']&&_0x27aac9['model']['modifySelection'](_0x26a837,{'direction':'forward','unit':_0x4f2601['unit']});const _0x56ac96=_0x26a837['getFirstRange'](),_0x2175ca=_0x26ed96['fromRange'](_0x56ac96);let _0x38c7b4;_0x3b751f(_0x4f2601),_0x38c7b4='$graveyard'==_0x2175ca['root']['rootName']?_0x27aac9['model']['createRange'](_0x56ac96['start']):_0x27aac9['model']['createRange'](_0x2175ca['start'],_0x2175ca['end']),_0x2175ca['detach'](),_0x27aac9['model']['enqueueChange'](_0x236ee2['buffer']['batch'],_0x3de284=>{_0x236ee2['buffer']['lock'](),_0x3de284['setSelection'](_0x3de284['createRange'](_0x38c7b4['end'])),_0x236ee2['buffer']['unlock']();});}),_0x27aac9['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x27aac9,'merge'),{'priority':'high'}),_0x27aac9['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x3cc287,_0x153c02,_0x53fef2)=>{_0x53fef2['options']['showSuggestionHighlights']&&De(_0x27aac9,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x3cc287,_0x153c02,_0x53fef2);},{'priority':'high'}),_0x27aac9['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x3474b9,_0x37c145,_0x121af7)=>{const _0x3ebed7=_0x121af7['mapper']['markerNameToElements'](_0x37c145['markerName']);if(_0x3ebed7){for(const _0x263399 of _0x3ebed7)_0x263399['is']('uiElement')&&(_0x121af7['mapper']['unbindElementFromMarkerName'](_0x263399,_0x37c145['markerName']),_0x121af7['writer']['remove'](_0x263399));}},{'priority':'high'});}}class H extends _0x1411ab{['afterInit'](){const _0x3abe5f=this['editor'];if(!_0x3abe5f['plugins']['has']('ListEditing'))return;const _0x5dbb65=_0x3abe5f['locale'],_0x3974be=_0x3abe5f['plugins']['get']('TrackChangesEditing'),_0x1ed6a8=_0x3abe5f['plugins']['has']('TodoListEditing'),_0x19c653=!!_0x3abe5f['config']['get']('list.multiBlock');function _0x42cdd5(_0x512728){return{'type':'format','content':''+o(_0x5dbb65,'*Set\x20format:*\x20%0',_0x512728)};}function _0x33b4b6(_0x34ec95){return{'type':'format','content':''+o(_0x5dbb65,'*Remove\x20format:*\x20%0',_0x34ec95)};}_0x3974be['enableDefaultAttributesIntegration']('numberedList'),_0x3974be['enableDefaultAttributesIntegration']('bulletedList'),_0x3974be['enableDefaultAttributesIntegration']('customNumberedList'),_0x3974be['enableDefaultAttributesIntegration']('customBulletedList'),_0x3974be['enableDefaultAttributesIntegration']('indentList'),_0x3974be['enableDefaultAttributesIntegration']('outdentList'),_0x3974be['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x3974be['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x3974be['registerBlockAttribute']('listItemId'),_0x3974be['registerBlockAttribute']('listType'),_0x3974be['registerBlockAttribute']('listIndent'),_0x19c653&&(_0x3974be['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x3974be['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x1ed6a8&&(_0x3974be['enableDefaultAttributesIntegration']('todoList'),_0x3974be['enableDefaultAttributesIntegration']('checkTodoList'),_0x3974be['registerBlockAttribute']('todoListChecked'),_0x3974be['descriptionFactory']['registerDescriptionCallback'](_0x5267fd=>{const {data:_0x1a4b06}=_0x5267fd;if(_0x1a4b06&&'todoListChecked'==_0x1a4b06['key'])return{'type':'format','content':_0x1a4b06['newValue']?o(_0x5dbb65,'*Check\x20item*'):o(_0x5dbb65,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x119dcb=>{if(_0x119dcb['batch']['isUndo'])return!0x1;let _0x47939c=!0x1;const _0x1d9f87=_0x3974be['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x21fb7d=>'todoListChecked'===_0x3974be['_getAttributeKey'](_0x21fb7d));for(const _0x3854d1 of _0x1d9f87){'todo'!=_0x3854d1['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x3974be['_findSuggestions'](_0x3854d1['getFirstRange'](),'attribute')['find'](_0x2a9de3=>'listType'===_0x3974be['_getAttributeKey'](_0x2a9de3['suggestion']))||(_0x119dcb['removeMarker'](_0x3854d1['getFirstMarker']()),_0x47939c=!0x0));}return _0x47939c;})),_0x3974be['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x5dbb65,'FORMAT_INDENT'));const _0x337405={'type':'format','content':''};_0x3974be['descriptionFactory']['registerDescriptionCallback'](_0x1b1203=>{const {data:_0x1d8570}=_0x1b1203;if(!_0x1d8570||'listType'!=_0x1d8570['key'])return;let _0x44bf54=_0x1b1203['head'];for(;_0x44bf54;){if(_0x44bf54['data']&&(('listStyle'==_0x44bf54['data']['key']||'listMarkerStyle'==_0x44bf54['data']['key'])&&(_0x44bf54['data']['newValue']&&'default'!=_0x44bf54['data']['newValue']||'default'!=_0x44bf54['data']['oldValue']&&!_0x1d8570['newValue'])||!_0x19c653&&_0x44bf54['data']['key']==m))return _0x337405;_0x44bf54=_0x44bf54['next'];}if(null==_0x1d8570['newValue'])switch(_0x1d8570['oldValue']){case'bulleted':return _0x33b4b6(o(_0x5dbb65,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x33b4b6(o(_0x5dbb65,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x33b4b6(o(_0x5dbb65,'ELEMENT_TODO_LIST'));}switch(_0x1d8570['newValue']){case'bulleted':return _0x42cdd5(o(_0x5dbb65,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x42cdd5(o(_0x5dbb65,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x42cdd5(o(_0x5dbb65,'ELEMENT_TODO_LIST'));}}),_0x3974be['descriptionFactory']['registerDescriptionCallback'](_0x2092cd=>{const {data:_0x473e1d}=_0x2092cd;if(_0x473e1d&&'listIndent'==_0x473e1d['key'])return null==_0x473e1d['newValue']||null==_0x473e1d['oldValue']&&0x0==_0x473e1d['newValue']?_0x337405:void 0x0;}),_0x3974be['descriptionFactory']['registerDescriptionCallback'](_0xfc6b9d=>{if('attribute'!=_0xfc6b9d['type'])return;const {data:_0x2e1c67}=_0xfc6b9d;if(!_0x2e1c67||'listItemId'!=_0x2e1c67['key'])return;const _0x1eacea=Te(_0xfc6b9d);return'newValue'==_0x1eacea?{'type':'format','content':o(_0x5dbb65,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1eacea?{'type':'format','content':o(_0x5dbb65,'*Split:*\x20list\x20item')}:_0x337405;}),_0x3abe5f['model']['document']['registerPostFixer'](_0x1a8a6f=>this['listItemIdFixer'](_0x1a8a6f)),_0x3abe5f['model']['document']['registerPostFixer'](_0x37dfbe=>this['noTrackChangesFixer'](_0x37dfbe)),_0x3abe5f['model']['document']['on']('change:data',(_0x1817af,_0x1979da)=>{if(_0x1979da['isUndo']||!_0x1979da['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x46526b){if(_0x46526b['batch']['isUndo']||!_0x46526b['batch']['isLocal'])return!0x1;let _0x16dce1=!0x1;const _0x2b6b72=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x560d71=>_0x560d71['data']&&'listItemId'==_0x560d71['data']['key'])['filter'](_0x4c962e=>_0x4c962e['data']['newValue']&&_0x4c962e['data']['oldValue']);for(const _0x554ffa of _0x2b6b72)Te(_0x554ffa)||(_0x46526b['removeMarker'](_0x554ffa['getFirstMarker']()),_0x16dce1=!0x0);return _0x16dce1;}['noTrackChangesFixer'](_0x4220d9){if(_0x4220d9['batch']['isUndo']||!_0x4220d9['batch']['isLocal'])return!0x1;const _0x24b527=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x24b527['trackChangesCommand']['value'])return!0x1;let _0xe46fc=!0x1;const _0x5f9b8b=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x4fe72c=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x40b36c=>'attribute'==_0x40b36c['type'])['filter'](_0x2aef31=>_0x5f9b8b['includes'](_0x2aef31['attributeKey']));if(0x0==_0x4fe72c['length'])return _0xe46fc;for(const _0x57fe82 of _0x4fe72c){const _0x43de10=_0x24b527['_findSuggestions'](_0x57fe82['range'],'attribute')['filter'](_0x4064ef=>!_0x4064ef['meta']['isNextTo'])['map'](_0x17ce73=>_0x17ce73['suggestion'])['filter'](_0x13bb11=>{const _0x4764bb=_0x24b527['_getAttributeKey'](_0x13bb11);return _0x5f9b8b['includes'](_0x4764bb);});if(_0x43de10['length']){for(const _0x406659 of _0x43de10)_0x4220d9['removeMarker'](_0x406659['getFirstMarker']());_0xe46fc=!0x0;}}return _0xe46fc;}['assureChains'](){const _0x1f7715=this['editor']['plugins']['get']('TrackChangesEditing'),_0xdb57e7=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x937858;const _0x56571c=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x233386=>{if(_0x233386['data']['oldRange']||!_0x233386['data']['newRange'])return null;if(!_0x233386['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x4f170b}=_0x1f7715['_splitMarkerName'](_0x233386['name']);if(!_0x1f7715['hasSuggestion'](_0x4f170b))return null;const _0x52b946=_0x1f7715['getSuggestion'](_0x4f170b);return _0xdb57e7['includes'](_0x52b946['data']['key']);})['map'](_0xe0a4a2=>{const {id:_0x54928f}=_0x1f7715['_splitMarkerName'](_0xe0a4a2['name']),_0x43321c=_0x1f7715['getSuggestion'](_0x54928f);return _0x937858=_0x43321c['attributes']['groupId'],_0x43321c['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x56571c['size'])return;const _0x3efd21=_0x1f7715['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x569162=>'attribute'==_0x569162['type']&&_0x569162['data']&&_0xdb57e7['includes'](_0x569162['data']['key'])&&_0x569162['attributes']['groupId']!=_0x937858)['map'](_0x4b48e4=>({'listItem':_0x4b48e4['getFirstRange']()['start']['nodeAfter'],'groupId':_0x4b48e4['attributes']['groupId']})),_0x5b42e6=new Set();for(const {groupId:_0x1f8990,listItem:_0x47eb0f}of _0x3efd21)_0x56571c['has'](_0x47eb0f)&&_0x5b42e6['add'](_0x1f8990);for(const _0x252af7 of _0x1f7715['getSuggestions']())_0x5b42e6['has'](_0x252af7['attributes']['groupId'])&&_0x252af7['setAttribute']('groupId',_0x937858);}['_supportLegacySuggestions'](){const _0x5437e7=this['editor'],_0x1ada3b=_0x5437e7['locale'],_0x5e5546=_0x5437e7['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x5e5546['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x5ef551,_0x138238){const _0x21e2f8=[];for(let _0x27b80c of _0x5ef551)_0x27b80c['start']['nodeAfter']===_0x27b80c['end']['parent']&&(_0x27b80c=_0x5437e7['model']['createRange'](_0x5437e7['model']['createPositionAt'](_0x27b80c['start']['nodeAfter'],0x0))),_0x21e2f8['push'](_0x27b80c);_0x5437e7['model']['change'](_0x2b9b06=>{const _0x5b7f99=_0x5437e7['model']['document']['selection'],_0x8e5c8d=Array['from'](_0x5b7f99['getRanges']())['map'](_0xbff824=>_0x26ed96['fromRange'](_0xbff824));_0x2b9b06['setSelection'](_0x21e2f8),_0x5437e7['commands']['get'](_0x138238['commandName'])['refresh'](),_0x138238['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x5437e7['execute'](_0x138238['commandName'],..._0x138238['commandParams']),_0x2b9b06['setSelection'](_0x8e5c8d);for(const _0x349b50 of _0x8e5c8d)_0x349b50['detach']();});}),_0x5e5546['descriptionFactory']['registerElementLabel'](function(_0x575b83){const _0x371795=!_0x5437e7['model']['schema']['isObject'](_0x575b83),_0x5bb6c8=_0x575b83['previousSibling'],_0x3b16e2=_0x575b83['nextSibling'],_0x1a3466=_0x575b83['getAttribute']('listItemId'),_0x44ffbf=!_0x5bb6c8||_0x5bb6c8['getAttribute']('listItemId')!==_0x1a3466,_0x5dcce0=!_0x3b16e2||_0x3b16e2['getAttribute']('listItemId')!==_0x1a3466;return _0x371795&&Boolean(_0x1a3466)&&_0x44ffbf&&_0x5dcce0;},_0x50efb3=>o(_0x1ada3b,'ELEMENT_LIST_ITEM',_0x50efb3));}['_registerLegacyDescription'](){const _0x169753=this['editor'],_0xbf2743=_0x169753['locale'];function _0x495d07(_0x3a4cd6){const _0x206ea6=_0x169753['commands']['get']('bulletedList')['value'],_0x4188f6=_0x169753['commands']['get']('numberedList')['value'];return'numberedList'===_0x3a4cd6?_0x206ea6:_0x4188f6;}_0x169753['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x449122){if('formatBlock'!=_0x449122['type'])return;const {data:_0x15cfc4}=_0x449122;if(!_0x15cfc4)return;let _0x4e89e2,_0x4d2e9d,_0x2f71b8,_0x5b5113;switch(_0x15cfc4['commandName']){case'bulletedList':_0x2f71b8=_0x15cfc4['commandParams'][0x0]['forceValue'],_0x5b5113=_0x495d07(_0x15cfc4['commandName']),_0x4e89e2=_0x2f71b8?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5b5113&&_0x169753['config']['get']('list.multiBlock')||(_0x4e89e2='*Change\x20to:*\x20%0'),_0x4d2e9d={'type':'format','content':o(_0xbf2743,_0x4e89e2,o(_0xbf2743,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x2f71b8=_0x15cfc4['commandParams'][0x0]['forceValue'],_0x5b5113=_0x495d07(_0x15cfc4['commandName']),_0x4e89e2=_0x2f71b8?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5b5113&&_0x169753['config']['get']('list.multiBlock')||(_0x4e89e2='*Change\x20to:*\x20%0'),_0x4d2e9d={'type':'format','content':o(_0xbf2743,_0x4e89e2,o(_0xbf2743,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x4e89e2='*Indent:*\x20%0',_0x4d2e9d={'type':'format','content':o(_0xbf2743,_0x4e89e2,o(_0xbf2743,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x4e89e2=function(_0x43ec8e){const _0x3bb529=_0x43ec8e['getFirstRange']();let _0x5606fa=_0x3bb529['start']['nodeAfter'];for(;_0x5606fa&&_0x3bb529['containsItem'](_0x5606fa);){if(_0x5606fa['getAttribute']('listIndent')>0x0)return!0x1;_0x5606fa=_0x5606fa['nextSibling'];}return!0x0;}(_0x449122)?o(_0xbf2743,'*Format:*\x20remove\x20from\x20%0',o(_0xbf2743,function(_0x26c7b9){return'ELEMENT_'+_0x26c7b9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x449122))):o(_0xbf2743,'*Outdent:*\x20%0',o(_0xbf2743,'ELEMENT_LIST_ITEM')),_0x4d2e9d={'type':'format','content':_0x4e89e2};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x15cfc4['multipleBlocks']&&(_0x4e89e2='*Merge:*\x20%0',_0x4d2e9d={'type':'deletion','content':o(_0xbf2743,_0x4e89e2,o(_0xbf2743,'ELEMENT_LIST_ITEM'))});}return _0x4d2e9d;});}}function Te(_0x50c297){let _0x2d20f2=_0x50c297['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x2d20f2;){const _0x267bfd=_0x2d20f2['getAttribute']('listItemId');if(!_0x267bfd)return!0x1;if(_0x267bfd==_0x50c297['data']['newValue'])return'newValue';if(_0x267bfd==_0x50c297['data']['oldValue'])return'oldValue';_0x2d20f2=_0x2d20f2['previousSibling'];}return!0x1;}class q extends _0x1411ab{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x40f698=this['editor']['config']['get']('list.properties'),_0x596201=this['editor']['plugins']['get']('TrackChangesEditing');_0x40f698['styles']&&(_0x596201['enableDefaultAttributesIntegration']('listStyle'),_0x596201['registerBlockAttribute']('listStyle')),_0x40f698['reversed']&&(_0x596201['enableDefaultAttributesIntegration']('listReversed'),_0x596201['registerBlockAttribute']('listReversed')),_0x40f698['startIndex']&&(_0x596201['enableDefaultAttributesIntegration']('listStart'),_0x596201['registerBlockAttribute']('listStart'));const _0x1348ce={'type':'format','content':''};_0x596201['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x77c38e=this['editor']['locale'];_0x596201['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x77c38e,'FORMAT_LIST_REVERSED')),_0x596201['descriptionFactory']['registerDescriptionCallback'](_0x140146=>{const {data:_0x331705}=_0x140146;if(_0x331705&&'listReversed'==_0x331705['key'])return null==_0x331705['newValue']||0x0==_0x331705['newValue']&&null==_0x331705['oldValue']?_0x1348ce:void 0x0;}),_0x596201['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x77c38e,'FORMAT_LIST_START')),_0x596201['descriptionFactory']['registerDescriptionCallback'](_0x2a2088=>{const {data:_0x449aa5}=_0x2a2088;if(_0x449aa5&&'listStart'==_0x449aa5['key'])return null==_0x449aa5['newValue']||0x1==_0x449aa5['newValue']&&null==_0x449aa5['oldValue']?_0x1348ce:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x97432e=>{if(_0x97432e['batch']['isUndo'])return!0x1;let _0x39b636=!0x1;const _0xd85808=_0x596201['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x429ce5=>{const _0x58ca1c=_0x596201['_getAttributeKey'](_0x429ce5);return'listStart'==_0x58ca1c||'listReversed'==_0x58ca1c;});for(const _0x564f18 of _0xd85808){const _0x41aca3=_0x564f18['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x41aca3||'customNumbered'==_0x41aca3)continue;_0x596201['_findSuggestions'](_0x564f18['getFirstRange'](),'attribute')['find'](_0x34aa88=>'listType'==_0x596201['_getAttributeKey'](_0x34aa88['suggestion']))||(_0x97432e['removeMarker'](_0x564f18['getFirstMarker']()),_0x39b636=!0x0);}return _0x39b636;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x4a2cb1){const _0x4c5d3a=this['editor']['locale'],{data:_0x1c61cc}=_0x4a2cb1,_0x34bb8b={'type':'format','content':''};if(!_0x1c61cc||'listStyle'!=_0x1c61cc['key'])return;if(!_0x1c61cc['oldValue'])return'default'==_0x1c61cc['newValue']?_0x34bb8b:{'type':'format','content':''+o(_0x4c5d3a,'*Set\x20format:*\x20%0',o(_0x4c5d3a,this['_getTranslationKeyForListStyle'](_0x1c61cc['newValue'])))};if(!_0x1c61cc['newValue']){if('default'==_0x1c61cc['oldValue'])return _0x34bb8b;let _0x3d98a6=_0x4a2cb1['head'];for(;_0x3d98a6;){if(_0x3d98a6['data']&&'listType'==_0x3d98a6['data']['key']&&_0x3d98a6['data']['newValue'])return _0x34bb8b;_0x3d98a6=_0x3d98a6['next'];}return{'type':'format','content':''+o(_0x4c5d3a,'*Remove\x20format:*\x20%0',o(_0x4c5d3a,this['_getTranslationKeyForListStyle'](_0x1c61cc['oldValue'])))};}if('default'!=_0x1c61cc['newValue'])return{'type':'format','content':''+o(_0x4c5d3a,'*Set\x20format:*\x20%0',o(_0x4c5d3a,this['_getTranslationKeyForListStyle'](_0x1c61cc['newValue'])))};let _0x53778d=_0x4a2cb1['head'];for(;_0x53778d;){if(_0x53778d['data']&&'listType'==_0x53778d['data']['key']&&_0x53778d['data']['newValue']&&_0x53778d['data']['oldValue'])return _0x34bb8b;_0x53778d=_0x53778d['next'];}return{'type':'format','content':o(_0x4c5d3a,'*Set\x20format:*\x20%0',o(_0x4c5d3a,'ELEMENT_'+_0x4a2cb1['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x141064=this['editor'],_0x2a327b=_0x141064['locale'];_0x141064['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x24eec2=>{if('formatBlock'!=_0x24eec2['type'])return;const {data:_0x4bcece}=_0x24eec2;if(!_0x4bcece)return;let _0x2607c3,_0x300b25;switch(_0x4bcece['commandName']){case'listStyle':_0x2607c3='*Change\x20to:*\x20%0',_0x300b25={'type':'format','content':o(_0x2a327b,_0x2607c3,o(_0x2a327b,this['_getTranslationKeyForListStyle'](_0x4bcece['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2607c3=_0x4bcece['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x300b25={'type':'format','content':o(_0x2a327b,_0x2607c3)};break;case'listStart':_0x2607c3='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x300b25={'type':'format','content':o(_0x2a327b,_0x2607c3,_0x4bcece['commandParams'][0x0]['startIndex'])};}return _0x300b25;});}['_getTranslationKeyForListStyle'](_0xb42a73){return'ELEMENT_'+function(_0x9de144){if(Se['includes'](_0x9de144))return'bulleted';if(_e['includes'](_0x9de144))return'numbered';return null;}(_0xb42a73)['toUpperCase']()+'_LIST_'+_0xb42a73['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class z extends _0x1411ab{['afterInit'](){const _0x5068db=this['editor'];_0x5068db['commands']['get']('emoji')&&_0x5068db['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class W extends _0x1411ab{static get['requires'](){return[_0x35f53a];}['init'](){const _0x341f0e=this['editor'],_0x1debac=_0x341f0e['plugins']['get']('TrackChangesEditing'),_0x2702a8=_0x341f0e['commands']['get']('enter');_0x1debac['enableCommand']('enter',()=>{_0x341f0e['model']['change'](_0xb93638=>{const _0x3e9fbe=_0x341f0e['model']['document']['selection'],_0x749af5=_0x3e9fbe['getFirstPosition'](),_0x12bae7=_0x26ed96['fromRange'](_0x3e9fbe['getFirstRange']());if(_0x2702a8['enterBlock'](_0xb93638)){const _0x39cbae=_0x341f0e['model']['createPositionAt'](_0x749af5['parent']['nextSibling'],0x0),_0x2e93ba=_0xb93638['createRange'](_0x749af5,_0x39cbae);_0x1debac['markInsertion'](_0x2e93ba);}else _0xb93638['setSelection'](_0xb93638['createRange'](_0x12bae7['end']));_0x12bae7['detach'](),_0x2702a8['fire']('afterExecute',{'writer':_0xb93638});});}),_0x341f0e['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x341f0e,'split'),{'priority':'high'}),_0x341f0e['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x272477,_0x33869a,_0x1e41c7)=>{const _0x4102a4=_0x1e41c7['mapper']['markerNameToElements'](_0x33869a['markerName']);if(_0x4102a4){for(const _0x4c7485 of _0x4102a4)_0x4c7485['hasClass']('ck-suggestion-marker-split')&&(_0x1e41c7['mapper']['unbindElementFromMarkerName'](_0x4c7485,_0x33869a['markerName']),_0x1e41c7['writer']['remove'](_0x4c7485));}},{'priority':'high'}),_0x341f0e['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x196510,_0xfacf4e,_0x50e23e)=>{_0x50e23e['options']['showSuggestionHighlights']&&De(_0x341f0e,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x196510,_0xfacf4e,_0x50e23e);},{'priority':'high'});}}class Q extends _0x1411ab{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x26d7d7=this['editor']['plugins']['get']('TrackChangesEditing');_0x26d7d7['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x26d7d7['enableCommand']('findNext'),_0x26d7d7['enableCommand']('findPrevious'),_0x26d7d7['enableCommand']('replace'),_0x26d7d7['enableCommand']('replaceAll');}['handleFindCommand'](_0x28cb42,_0x42a719,_0x190def={}){const _0x105b9f=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x28cb42(_0x2bdd8e=>{let _0x51921e=('string'==typeof _0x42a719?_0x105b9f['findByTextCallback'](_0x42a719,_0x190def):_0x42a719)(_0x2bdd8e);Array['isArray'](_0x51921e)&&(_0x51921e={'results':_0x51921e,'searchText':'string'==typeof _0x42a719?_0x42a719:''});const _0x44e81b=_0x51921e['results']['filter'](_0x4d0a88=>!0x1===this['_isInDeletionRange'](_0x4d0a88,_0x2bdd8e['item']));return{..._0x51921e,'results':_0x44e81b};},_0x190def);}['_isInDeletionRange'](_0x10ddad,_0x374662){const _0x55ac81=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x374662,_0x10ddad['start']),this['editor']['model']['createPositionAt'](_0x374662,_0x10ddad['end']));for(const _0x3008ce of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x55ac81['getIntersection'](_0x3008ce['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 _0x1411ab{['afterInit'](){const _0x647489=this['editor']['locale'],_0x19013f=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x44fd3d,commandName:_0x3f6354}of eo)this['editor']['plugins']['has'](_0x44fd3d)&&(_0x19013f['enableDefaultAttributesIntegration'](_0x3f6354),_0x19013f['registerInlineAttribute'](_0x3f6354));_0x19013f['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x647489,'FORMAT_FONT_SIZE')),_0x19013f['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x647489,'FORMAT_FONT_FAMILY')),_0x19013f['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x647489,'FORMAT_FONT_COLOR')),_0x19013f['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x647489,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x584d27=this['editor'],_0x3cd727=_0x584d27['locale'];_0x584d27['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1c2c6d=>{const _0x55af59=_0x3cd727['t'];if('formatInline'!=_0x1c2c6d['type'])return;const {data:_0x1d7e59}=_0x1c2c6d;if(null!=_0x1d7e59){if('fontSize'==_0x1d7e59['commandName']){const _0x14450c=_0x1d7e59['commandParams'][0x0]['value'];if(_0x14450c){const _0x4e11c5=_0x55af59(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x3db00e=>_0x3db00e['model']==_0x14450c)['title'])['toLowerCase']();return{'type':'format','content':o(_0x3cd727,'*Set\x20font\x20size:*\x20%0',_0x4e11c5)};}return{'type':'format','content':o(_0x3cd727,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x1d7e59['commandName']){const _0x5c89ae=_0x1d7e59['commandParams'][0x0]['value'];return _0x5c89ae?{'type':'format','content':o(_0x3cd727,'*Set\x20font\x20family:*\x20%0',_0x5c89ae)}:{'type':'format','content':o(_0x3cd727,'*Reset\x20font\x20family*')};}if('fontColor'==_0x1d7e59['commandName']){const _0x5c3e72=_0x1d7e59['commandParams'][0x0]['value'];if(_0x5c3e72){const _0x120905=_0x592a3b(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5730fe=>_0x5730fe['model']==_0x5c3e72);let _0x4a3c8b=_0x5c3e72,_0x2922b4='';return _0x120905&&(_0x4a3c8b=_0x120905['label'],_0x2922b4=_0x55af59(_0x4a3c8b)['toLowerCase']()),{'type':'format','content':o(_0x3cd727,'*Set\x20font\x20color:*\x20%0',_0x2922b4)['trim'](),'color':{'value':_0x5c3e72,'title':_0x2922b4||_0x4a3c8b}};}return{'type':'format','content':o(_0x3cd727,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x1d7e59['commandName']){const _0x2945b5=_0x1d7e59['commandParams'][0x0]['value'];if(_0x2945b5){const _0x3ddaf9=_0x592a3b(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x4c05f2=>_0x4c05f2['model']==_0x2945b5);let _0x4104b6=_0x2945b5,_0x36e3da='';return _0x3ddaf9&&(_0x4104b6=_0x3ddaf9['label'],_0x36e3da=_0x55af59(_0x4104b6)['toLowerCase']()),{'type':'format','content':o(_0x3cd727,'*Set\x20font\x20background\x20color:*\x20%0',_0x36e3da)['trim'](),'color':{'value':_0x2945b5,'title':_0x36e3da||_0x4104b6}};}return{'type':'format','content':o(_0x3cd727,'*Reset\x20font\x20background\x20color*')};}}});}}class Y extends _0x1411ab{['afterInit'](){const _0x5442aa=this['editor'],_0x172635=_0x5442aa['plugins']['get']('TrackChangesEditing'),_0x467d61=_0x5442aa['commands']['get']('copyFormat'),_0x4da8fa=_0x5442aa['commands']['get']('pasteFormat');_0x467d61&&_0x4da8fa&&(_0x172635['enableDefaultAttributesIntegration']('pasteFormat'),_0x172635['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x4811cf=this['editor'],_0x4209b7=_0x4811cf['locale'];_0x4811cf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x11665b=>{if('formatBlock'!=_0x11665b['type']&&'formatInline'!=_0x11665b['type'])return;const {data:_0x1e745d}=_0x11665b;if(_0x1e745d&&'pasteFormat'===_0x1e745d['commandName']){const _0x13c346=[],_0x2044ad=_0x1e745d['commandParams'][0x0];for(const [_0x5aaa7f,_0x48d350]of Object['entries'](_0x2044ad))_0x13c346['push'](ro(_0x4811cf,_0x5aaa7f,_0x48d350));return _0x13c346['length']?{'type':'format','content':o(_0x4209b7,'*Set\x20format\x20to:*\x20%0',_0x13c346['join'](',\x20'))}:{'type':'format','content':o(_0x4209b7,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x232d09,_0x520767,_0x4cfcb4){const _0x2a3501=_0x232d09['locale']['t'],_0x19221c=_0x520767['split'](/(?=[A-Z])/)['join']('\x20'),_0x44cb06=_0x2a3501(_0x19221c['charAt'](0x0)['toUpperCase']()+_0x19221c['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x4cfcb4)return _0x44cb06;if('fontColor'===_0x520767||'fontBackgroundColor'===_0x520767){const _0x302e44=_0x592a3b(_0x232d09['config']['get']('fontColor.colors'))['find'](_0x189873=>_0x189873['model']==_0x4cfcb4);return _0x44cb06+'\x20('+(_0x302e44?_0x2a3501(_0x302e44['label'])['toLowerCase']():_0x4cfcb4)+')';}if('fontSize'===_0x520767&&isNaN(parseFloat(_0x4cfcb4))){const _0x46e368=_0x232d09['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x232d09['config']['get']('fontSize.options'))['find'](_0x36f49a=>_0x36f49a['model']==_0x4cfcb4);return _0x44cb06+'\x20('+(_0x46e368?_0x2a3501(_0x46e368['title'])['toLowerCase']():_0x4cfcb4)+')';}return _0x44cb06+'\x20('+_0x4cfcb4+')';}class Z extends _0x1411ab{['_headingOptions'];['afterInit'](){const _0x183054=this['editor'];if(!_0x183054['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x183054['config']['get']('heading.options');const _0x25b332=_0x183054['locale'],_0x3074af=_0x183054['plugins']['get']('TrackChangesEditing');_0x3074af['enableDefaultAttributesIntegration']('heading');for(const _0x534c04 of this['_headingOptions'])'paragraph'!=_0x534c04['model']&&_0x3074af['descriptionFactory']['registerElementLabel'](_0x534c04['model'],_0x17e156=>{const _0x15979b=this['_getHeadingLevel'](_0x534c04['model']);return null!==_0x15979b?_0x388b61(_0x17e156,_0x15979b):_0x3a77ef(_0x17e156,_0x534c04['title']);});function _0x388b61(_0x474e4d,_0x38dc3f){return o(_0x25b332,'ELEMENT_HEADING',[_0x474e4d,_0x38dc3f]);}function _0x3a77ef(_0x16c99e,_0x71fbcf){return o(_0x25b332,'ELEMENT_HEADING_CUSTOM',[_0x16c99e,_0x71fbcf]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x486dca=this['editor'],_0x5e2277=_0x486dca['locale'];function _0x754d2a(_0x43476e,_0x4b9c8e){return o(_0x5e2277,'ELEMENT_HEADING_CUSTOM',[_0x43476e,_0x4b9c8e]);}_0x486dca['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x113bc1=>{if('formatBlock'!=_0x113bc1['type'])return;const {data:_0x4db99c}=_0x113bc1;if(_0x4db99c&&'heading'==_0x4db99c['commandName']){const _0xf239bb=_0x4db99c['commandParams'][0x0]['value'],_0xd208c7=this['_getHeadingLevel'](_0xf239bb);if(null!==_0xd208c7)return{'type':'format','content':o(_0x5e2277,'*Change\x20to:*\x20%0',(_0xbfbfba=0x1,_0x4c5e71=_0xd208c7,o(_0x5e2277,'ELEMENT_HEADING',[_0xbfbfba,_0x4c5e71])))};const _0x36a292=this['_headingOptions']['find'](_0x2a653d=>_0x2a653d['model']===_0xf239bb)['title'];return{'type':'format','content':o(_0x5e2277,'*Change\x20to:*\x20%0',_0x754d2a(0x1,_0x36a292))};}var _0xbfbfba,_0x4c5e71;});}['_getHeadingLevel'](_0x2bfe82){const _0x1fa359=_0x2bfe82['match'](/^heading(\d+)/);if(_0x1fa359)return _0x1fa359[0x1];const _0x486c35=this['_headingOptions']?.['find'](_0xebfa9a=>_0xebfa9a['model']==_0x2bfe82);if(_0x486c35&&_0x486c35['view']){const _0x2a0a8b=_0x486c35['view'],_0x3a9e9f=(_0x2a0a8b['name']??_0x2a0a8b)['match'](/^h(\d+)/);if(_0x3a9e9f)return _0x3a9e9f[0x1];}return null;}}class tt extends _0x1411ab{['afterInit'](){const _0x436daa=this['editor'];if(!_0x436daa['plugins']['has']('HighlightEditing'))return;const _0x538ef4=_0x436daa['plugins']['get']('TrackChangesEditing'),_0x49b033=_0x436daa['locale'];_0x538ef4['enableDefaultAttributesIntegration']('highlight'),_0x538ef4['registerInlineAttribute']('highlight'),_0x538ef4['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x49b033,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x10c17c=this['editor'],_0x1fd6ae=_0x10c17c['locale'];_0x10c17c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x38b23c=>{if('formatInline'!=_0x38b23c['type'])return;const {data:_0x1f6601}=_0x38b23c;if(_0x1f6601&&'highlight'==_0x1f6601['commandName']){const _0x25c19a=_0x1fd6ae['t'],_0x1af117=_0x1f6601['commandParams'][0x0]['value'];if(_0x1af117){const _0x33642e=_0x10c17c['config']['get']('highlight.options')['find'](_0x504376=>_0x504376['model']==_0x1af117),_0x4455d3=_0x25c19a(_0x33642e['title'])['toLowerCase']();return{'type':'format','content':o(_0x1fd6ae,'*Set\x20highlight:*\x20%0',_0x4455d3),'color':{'value':_0x33642e['color'],'title':_0x33642e['title']}};}return{'type':'format','content':o(_0x1fd6ae,'*Remove\x20highlight*',o(_0x1fd6ae,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x1411ab{['afterInit'](){const _0x3c24a4=this['editor'];if(!_0x3c24a4['plugins']['has']('HorizontalLineEditing'))return;_0x3c24a4['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0xe01b7f=_0x3c24a4['plugins']['get']('TrackChangesEditing'),_0x2a3d54=_0x3c24a4['locale'];_0xe01b7f['descriptionFactory']['registerElementLabel']('horizontalLine',_0x59eac3=>o(_0x2a3d54,'ELEMENT_HORIZONTAL_LINE',_0x59eac3)),_0x3c24a4['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x1bb295,{writer:_0x13b082,options:_0x183ca7})=>{if(!_0x183ca7['showSuggestionHighlights'])return null;const _0x1529ac=_0x13b082['createContainerElement']('div'),_0x232382=_0x13b082['createEmptyElement']('hr');return _0x13b082['addClass']('ck-horizontal-line',_0x1529ac),_0x13b082['insert'](_0x13b082['createPositionAt'](_0x1529ac,0x0),_0x232382),_0x1529ac;},'converterPriority':'high'});}}class nt extends _0x1411ab{['afterInit'](){const _0x8a31c9=this['editor'];if(!_0x8a31c9['plugins']['has']('HtmlEmbed'))return;const _0x511a4a=_0x8a31c9['plugins']['get']('TrackChangesEditing'),_0xe0c3ad=_0x8a31c9['locale'];_0x511a4a['descriptionFactory']['registerElementLabel']('rawHtml',_0x3a2d58=>o(_0xe0c3ad,'ELEMENT_HTML_EMBED',_0x3a2d58)),_0x511a4a['enableDefaultAttributesIntegration']('htmlEmbed'),_0x511a4a['registerBlockAttribute']('value'),_0x511a4a['descriptionFactory']['registerDescriptionCallback'](_0x1a24c7=>{if('attribute'!=_0x1a24c7['type'])return;const {data:_0x1224d7}=_0x1a24c7;if(_0x1224d7&&'value'==_0x1224d7['key']&&_0x1a24c7['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x591e77=o(_0xe0c3ad,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0xe0c3ad,'*Change\x20%0\x20content*',_0x591e77)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x21f2fa=this['editor'],_0x2c2f7f=_0x21f2fa['locale'];_0x21f2fa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x122ee0=>{if('formatBlock'!=_0x122ee0['type'])return;const {data:_0x50ac9e}=_0x122ee0;if(_0x50ac9e&&'htmlEmbed'==_0x50ac9e['commandName']){const _0x5dcb33=o(_0x2c2f7f,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2c2f7f,'*Change\x20%0\x20content*',_0x5dcb33)};}});}}class et extends _0x1411ab{['afterInit'](){const _0x68531=this['editor'];if(!_0x68531['plugins']['has']('ImageEditing'))return;const _0x3d24ad=_0x68531['plugins']['get']('TrackChangesEditing'),_0x1de934=_0x68531['plugins']['get']('ImageUtils'),_0xf64f59=_0x68531['locale'];_0x3d24ad['enableCommand']('insertImage'),_0x3d24ad['descriptionFactory']['registerElementLabel']('imageBlock',_0x5d028a=>o(_0xf64f59,'ELEMENT_IMAGE',_0x5d028a)),_0x3d24ad['descriptionFactory']['registerElementLabel']('imageInline',_0x3c2330=>o(_0xf64f59,'ELEMENT_INLINE_IMAGE',_0x3c2330)),_0x3d24ad['descriptionFactory']['registerElementLabel']('caption',()=>o(_0xf64f59,'ELEMENT_CAPTION')),_0x68531['plugins']['has']('ImageUploadEditing')&&_0x3d24ad['enableCommand']('uploadImage'),_0x68531['plugins']['has']('ImageBlockEditing')&&_0x68531['plugins']['has']('ImageInlineEditing')&&(_0x3d24ad['enableCommand']('imageTypeInline',(_0x58a19d,_0x2f1ff7)=>{const _0x265dd7=_0x1de934['getClosestSelectedImageElement'](_0x68531['model']['document']['selection']);_0x68531['model']['change'](()=>{_0x3d24ad['markBlockFormat'](_0x265dd7,{'commandName':'imageTypeInline','commandParams':[_0x2f1ff7]},[],'convertBlockImageToInline');});}),_0x3d24ad['enableCommand']('imageTypeBlock',(_0x4c7a55,_0x2eba52)=>{_0x68531['model']['change'](_0x2d0794=>{let _0x471aa7=_0x1de934['getClosestSelectedImageElement'](_0x68531['model']['document']['selection']),_0x41c4f0=_0x2d0794['createRangeOn'](_0x471aa7);const _0x817c02=_0x12e48c['fromPosition'](_0x41c4f0['start'],'toPrevious'),_0x1c3fed=_0x12e48c['fromPosition'](_0x41c4f0['end'],'toNext');_0x3d24ad['forceDefaultExecution'](()=>_0x4c7a55(_0x2eba52)),_0x471aa7=_0x1de934['getClosestSelectedImageElement'](_0x68531['model']['document']['selection']),_0x41c4f0=_0x2d0794['createRangeOn'](_0x471aa7);const _0x53e715=_0x2d0794['createRange'](_0x817c02,_0x1c3fed);_0x817c02['detach'](),_0x1c3fed['detach'](),_0x3d24ad['markBlockFormat'](_0x471aa7,{'commandName':'imageTypeInline','commandParams':[_0x2eba52]},[],'convertInlineImageToBlock'),_0x53e715['start']['isBefore'](_0x41c4f0['start'])&&_0x3d24ad['markInsertion'](_0x2d0794['createRange'](_0x53e715['start'],_0x41c4f0['start']),'convertInlineImageToBlock'),_0x41c4f0['end']['isBefore'](_0x53e715['end'])&&_0x3d24ad['markInsertion'](_0x2d0794['createRange'](_0x41c4f0['end'],_0x53e715['end']),'convertInlineImageToBlock');});}),_0x3d24ad['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3d24ad['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3d24ad['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3d24ad['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3d24ad['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3d24ad['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x2ddb30])=>{const _0x49154d=_0x3d24ad['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x1049e9=_0x2ddb30['start'],_0x4354cd=_0x2ddb30['end'];const _0xd1c26a=_0x68531['model']['schema']['getNearestSelectionRange'](_0x1049e9,'backward'),_0x457672=_0x68531['model']['schema']['getNearestSelectionRange'](_0x4354cd,'forward');_0xd1c26a['isCollapsed']&&(_0x1049e9=_0xd1c26a['start']),_0x457672['isCollapsed']&&(_0x4354cd=_0x457672['end']),_0x49154d([_0x68531['model']['createRange'](_0x1049e9,_0x4354cd)]);}),_0x3d24ad['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x28535e),_0x3d24ad['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x28535e)),_0x68531['plugins']['has']('ImageCaptionEditing')&&(_0x3d24ad['enableCommand']('toggleImageCaption',(_0x4c5c77,_0x2e8e29)=>{const _0x4d7f92=_0x68531['plugins']['get']('ImageCaptionUtils');let _0x4edba1=_0x1de934['getClosestSelectedImageElement'](_0x68531['model']['document']['selection']),_0x29099a=_0x4d7f92['getCaptionFromImageModelElement'](_0x4edba1);_0x68531['model']['change'](()=>{if(_0x29099a)return void _0x3d24ad['markDeletion'](_0x68531['model']['createRangeOn'](_0x29099a));const _0x4a3b51=_0x1de934['isBlockImage'](_0x4edba1);_0x4c5c77(_0x2e8e29),_0x4edba1=_0x1de934['getClosestSelectedImageElement'](_0x68531['model']['document']['selection']),_0x29099a=_0x4d7f92['getCaptionFromImageModelElement'](_0x4edba1),_0x3d24ad['markInsertion'](_0x68531['model']['createRangeOn'](_0x29099a),_0x4a3b51?null:'imageCaption');});}),_0x3d24ad['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x28535e));const _0x291f53=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5c5e50(_0x2deea4,_0xd2200a){const _0x4df6d0=_0x291f53['findIndex'](({type:_0x25a163,subType:_0x5dff84})=>_0x2deea4['type']==_0x25a163&&_0x2deea4['subType']==_0x5dff84),_0x1f56a2=_0x291f53['findIndex'](({type:_0x1c8ad4,subType:_0x4c8ed7})=>_0xd2200a['type']==_0x1c8ad4&&_0xd2200a['subType']==_0x4c8ed7);if(_0x4df6d0<0x0||_0x1f56a2<0x0)return!0x1;const _0x566768=_0x2deea4['getFirstRange'](),_0x10c119=_0xd2200a['getFirstRange']();if((0x0==_0x4df6d0||0x1==_0x4df6d0)&&0x2==_0x1f56a2&&_0x566768['isIntersecting'](_0x10c119))return!0x0;if(0x2==_0x4df6d0&&0x3==_0x1f56a2){const _0x25d647=_0x3d24ad['_findSuggestions'](_0x566768,'insertion')['filter'](({suggestion:_0x145050,meta:_0x33d153})=>_0x33d153['isOwn']&&'convertInlineImageToBlock'==_0x145050['subType']);if(_0x25d647['length']>0x1&&_0x10c119['end']['isEqual'](_0x566768['start']))return!0x0;if(0x1==_0x25d647['length']&&(_0x566768['start']['isEqual'](_0x10c119['end'])||_0x566768['end']['isEqual'](_0x10c119['start'])))return!0x0;}if(0x3==_0x4df6d0&&0x3==_0x1f56a2&&_0x566768['start']['isBefore'](_0x10c119['start'])){const _0xb9041f=_0x566768['end']['nodeAfter'],_0x382e99=_0x10c119['start']['nodeBefore'];return _0x1de934['isBlockImage'](_0xb9041f)&&_0xb9041f===_0x382e99;}return!0x1;}function _0x28535e(_0x54cf09,_0x35b609){return _0x5c5e50(_0x54cf09,_0x35b609)?[_0x54cf09,_0x35b609]:_0x5c5e50(_0x35b609,_0x54cf09)?[_0x35b609,_0x54cf09]:null;}_0x68531['plugins']['has']('ImageResize')&&(_0x3d24ad['enableDefaultAttributesIntegration']('resizeImage'),_0x3d24ad['registerBlockAttribute']('resizedWidth'),_0x3d24ad['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0xf64f59,'FORMAT_IMAGE_SIZE'))),_0x68531['plugins']['has']('ImageTextAlternativeEditing')&&(_0x3d24ad['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x3d24ad['registerBlockAttribute']('alt')),_0x68531['plugins']['has']('PictureEditing')&&(_0x3d24ad['registerBlockAttribute']('sources'),_0x3d24ad['descriptionFactory']['registerDescriptionCallback'](_0x479c83=>{if('attribute'!=_0x479c83['type'])return;const {data:_0x323df4}=_0x479c83;return _0x323df4&&'sources'==_0x323df4['key']?{'type':'format','content':''}:void 0x0;})),_0x68531['plugins']['has']('ImageSizeAttributes')&&(_0x3d24ad['registerBlockAttribute']('width'),_0x3d24ad['registerBlockAttribute']('height'),_0x3d24ad['descriptionFactory']['registerDescriptionCallback'](_0x4b8fbb=>{if('attribute'!=_0x4b8fbb['type'])return;const {data:_0x516f3d}=_0x4b8fbb;return!_0x516f3d||'width'!=_0x516f3d['key']&&'height'!=_0x516f3d['key']?void 0x0:{'type':'format','content':''};})),_0x3d24ad['descriptionFactory']['registerDescriptionCallback'](_0x3c4726=>{if(!!_0x291f53['find'](({type:_0x1115bc,subType:_0x4d0efe})=>_0x3c4726['type']==_0x1115bc&&_0x3c4726['subType']==_0x4d0efe))return _0x3c4726['previous']?{}:void 0x0;}),_0x3d24ad['descriptionFactory']['registerDescriptionCallback'](_0x28d1be=>{if('insertion'==_0x28d1be['type']||'deletion'==_0x28d1be['type']){const _0x2d1b44=_0x28d1be['getContainedElement']();if(_0x2d1b44&&_0x2d1b44['is']('element','caption'))return{'type':'insertion'==_0x28d1be['type']?'addObject':'removeObject','element':_0x2d1b44,'quantity':0x1};}}),_0x3d24ad['descriptionFactory']['registerDescriptionCallback'](_0x27e26e=>'formatBlock'==_0x27e26e['type']&&'convertInlineImageToBlock'==_0x27e26e['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x27e26e['type']&&'convertBlockImageToInline'==_0x27e26e['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3d24ad['descriptionFactory']['registerDescriptionCallback'](_0x447237=>{if('attribute'!=_0x447237['type'])return;const {data:_0x10de31}=_0x447237;if(!_0x10de31||'alt'!=_0x10de31['key'])return;const _0x5c85f8=_0x10de31['newValue'];return _0x5c85f8?{'type':'format','content':o(_0xf64f59,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5c85f8+'\x22')}:{'type':'format','content':o(_0xf64f59,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3fd60a=this['editor'],_0x4bce47=_0x3fd60a['locale'];_0x3fd60a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x34867e=>{if('formatBlock'!=_0x34867e['type']&&'formatInline'!=_0x34867e['type'])return;const {data:_0x55b47d}=_0x34867e;if(_0x55b47d){if('imageTextAlternative'==_0x55b47d['commandName']){const _0x178dcd=_0x55b47d['commandParams'][0x0]['newValue'];return _0x178dcd?{'type':'format','content':o(_0x4bce47,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x178dcd+'\x22')}:{'type':'format','content':o(_0x4bce47,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x55b47d['commandName']){const _0x6e9fad=_0x55b47d['commandParams'][0x0]['width'];return _0x6e9fad?{'type':'format','content':o(_0x4bce47,'*Set\x20image\x20width:*\x20%0',_0x6e9fad)}:{'type':'format','content':o(_0x4bce47,'*Reset\x20image\x20width*')};}}});}}class st extends _0x1411ab{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x5a252a=this['editor']['locale'],_0x4e1061=this['editor']['plugins']['get']('TrackChangesEditing');_0x4e1061['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4e1061['registerBlockAttribute']('src'),_0x4e1061['descriptionFactory']['registerDescriptionCallback'](_0x386a07=>{if('attribute'!=_0x386a07['type'])return;const {data:_0x3a14e4}=_0x386a07;return _0x3a14e4&&'src'==_0x3a14e4['key']?_0x3a14e4['newValue']&&_0x3a14e4['oldValue']?{'type':'format','content':o(_0x5a252a,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5424de=this['editor']['plugins']['get']('TrackChangesEditing');_0x5424de['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x5424de['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5424de['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x5424de['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3f0e6e=this['editor'],_0x5d7df9=_0x3f0e6e['locale'];_0x3f0e6e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x595f6c=>{if('formatBlock'!=_0x595f6c['type']&&'formatInline'!=_0x595f6c['type'])return;const {data:_0xa2024d}=_0x595f6c;if(!_0xa2024d||'replaceImageSource'!=_0xa2024d['commandName'])return;return{'type':'format','content':o(_0x5d7df9,'*Format:*\x20replace\x20image\x20URL')};});}}class ot extends _0x1411ab{['afterInit'](){const _0x12c736=this['editor'];if(!_0x12c736['plugins']['has']('ImageStyleEditing'))return;const _0x2b545d=_0x12c736['plugins']['get']('TrackChangesEditing'),_0x115826=_0x12c736['plugins']['get']('ImageUtils'),_0x2f596a={};_0x2b545d['enableCommand']('imageStyle',(_0x4e4763,_0x2eee31)=>{const _0x53631c=_0x12c736['plugins']['get']('Users')['me'],_0x1e3afc=_0x12c736['commands']['get']('imageStyle');let _0x53d50a=_0x115826['getClosestSelectedImageElement'](_0x12c736['model']['document']['selection']),_0x178aa9=_0x12c736['model']['createRangeOn'](_0x53d50a),_0xcea56=_0x1e3afc['value'];if(_0xcea56==_0x2eee31['value'])return;const _0xa75749={'commandName':'imageStyle','commandParams':[_0x2eee31],'formatGroupId':_0x19e4b0()};_0x12c736['model']['change'](()=>{if(_0x2b545d['getSuggestions']()['filter'](_0x54a6ad=>_0x54a6ad['isInContent']&&_0x53631c==_0x54a6ad['author']&&('formatBlock'==_0x54a6ad['type']||'formatInline'==_0x54a6ad['type'])&&('imageStylePreApply'==_0x54a6ad['subType']||'imageStylePostApply'==_0x54a6ad['subType'])&&_0x54a6ad['getFirstRange']()['isEqual'](_0x178aa9))['forEach'](_0x4a78ae=>_0x2b545d['discardSuggestion'](_0x4a78ae['head'])),_0x53d50a=_0x115826['getClosestSelectedImageElement'](_0x12c736['model']['document']['selection']),_0x178aa9=_0x12c736['model']['createRangeOn'](_0x53d50a),_0x1e3afc['refresh'](),_0x12c736['commands']['get']('imageTypeInline')['refresh'](),_0x12c736['commands']['get']('imageTypeBlock')['refresh'](),_0xcea56=_0x1e3afc['value'],_0xcea56!=_0x2eee31['value'])return _0x115826['isInlineImage'](_0x53d50a)&&_0x1e3afc['shouldConvertImageType'](_0x2eee31['value'],_0x53d50a)?(_0x4e4763({..._0x2eee31,'setImageSizes':!0x1}),_0x53d50a=_0x115826['getClosestSelectedImageElement'](_0x12c736['model']['document']['selection']),void _0x2b545d['markBlockFormat'](_0x53d50a,{..._0xa75749,'commandReversedParams':[{'value':_0xcea56||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x115826['isBlockImage'](_0x53d50a)?_0x2b545d['markBlockFormat'](_0x53d50a,_0xa75749,[],'imageStylePostApply'):_0x2b545d['markInlineFormat'](_0x178aa9,_0xa75749,'imageStylePostApply'));});});for(const _0x26e728 of _0x12c736['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x2f596a[_0x26e728['name']]=_0x26e728['title']['toLowerCase']();_0x2b545d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x2b545d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x2b545d['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x2b545d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x2a58db])=>{_0x115826['setImageNaturalSizeAttributes'](_0x2a58db['getContainedElement']());}),_0x2b545d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x3fe55c,_0x8928e4)=>{_0x2b545d['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x3fe55c,{'commandName':_0x8928e4['commandName'],'commandParams':_0x8928e4['commandReversedParams']});}),_0x2b545d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0xd693aa,_0x5812f5){if(_0x31b46c(_0xd693aa,_0x5812f5))return[_0xd693aa,_0x5812f5];if(_0x31b46c(_0x5812f5,_0xd693aa))return[_0x5812f5,_0xd693aa];return null;});const _0x40cd25=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x31b46c(_0x20a4dc,_0x3feb5d){const _0x1b9493=_0x40cd25['findIndex'](({type:_0x88d076,subType:_0x4fc170})=>_0x20a4dc['type']==_0x88d076&&_0x20a4dc['subType']==_0x4fc170),_0x2ad93e=_0x40cd25['findIndex'](({type:_0x1eebaf,subType:_0x20b2dd})=>_0x3feb5d['type']==_0x1eebaf&&_0x3feb5d['subType']==_0x20b2dd);if(_0x1b9493<0x0||_0x2ad93e<0x0)return!0x1;const _0x15de6e=_0x20a4dc['getFirstRange'](),_0x446c73=_0x3feb5d['getFirstRange']();if((0x0==_0x1b9493||0x1==_0x1b9493)&&0x2==_0x2ad93e&&_0x15de6e['isIntersecting'](_0x446c73))return!0x0;if(0x2==_0x1b9493&&0x3==_0x2ad93e){const _0x3021a3=_0x2b545d['_findSuggestions'](_0x15de6e,'insertion')['filter'](({suggestion:_0x298ff6,meta:_0x4ad9af})=>_0x4ad9af['isOwn']&&'convertInlineImageToBlock'==_0x298ff6['subType']);if(_0x3021a3['length']>0x1&&_0x446c73['end']['isEqual'](_0x15de6e['start']))return!0x0;if(0x1==_0x3021a3['length']&&(_0x15de6e['start']['isEqual'](_0x446c73['end'])||_0x15de6e['end']['isEqual'](_0x446c73['start'])))return!0x0;}if(0x3==_0x1b9493&&0x3==_0x2ad93e&&_0x15de6e['start']['isBefore'](_0x446c73['start'])){const _0x36ac36=_0x15de6e['end']['nodeAfter'],_0x29b471=_0x446c73['start']['nodeBefore'];return _0x115826['isBlockImage'](_0x36ac36)&&_0x36ac36===_0x29b471;}return!0x1;}_0x12c736['model']['document']['registerPostFixer'](()=>{let _0x1fc566=!0x1;const _0x2b1fd0=Array['from'](_0x12c736['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5f384a,data:_0x5c105a}of _0x2b1fd0){const {group:_0x267dc2,type:_0x366f62,subType:_0x3b78a2,id:_0x5993e7}=_0x2b545d['_splitMarkerName'](_0x5f384a);if('suggestion'==_0x267dc2&&_0x2b545d['hasSuggestion'](_0x5993e7)){if('formatBlock'==_0x366f62&&('imageStylePreApply'==_0x3b78a2||'imageStylePostApply'==_0x3b78a2)){const _0x5a8c67=_0x2b545d['getSuggestion'](_0x5993e7);if(_0x5c105a['newRange']){const _0x135c04=_0x5a8c67['getFirstRange']()['getContainedElement']();if(_0x115826['isBlockImage'](_0x135c04))continue;_0x2b545d['discardSuggestion'](_0x5a8c67),_0x1fc566=!0x0;}}if('insertion'==_0x366f62&&'imageCaption'==_0x3b78a2&&!_0x5c105a['newRange']){const _0x1f98a9=_0x2b545d['getSuggestion'](_0x5993e7);_0x1f98a9['next']&&_0x1f98a9['next']['isInContent']&&(_0x2b545d['discardSuggestion'](_0x1f98a9['next']),_0x1fc566=!0x0);}}}return _0x1fc566;}),this['_registerLegacyDescription'](_0x2f596a);}['_registerLegacyDescription'](_0x34d73f){const _0xa5fc83=this['editor'],_0x571d6c=_0xa5fc83['locale'];_0xa5fc83['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x44bc12=>{if('formatBlock'!=_0x44bc12['type']&&'formatInline'!=_0x44bc12['type'])return;const {data:_0xdb0b42}=_0x44bc12;if(!_0xdb0b42||'imageStyle'!=_0xdb0b42['commandName'])return;const _0x3407e0=_0xdb0b42['commandParams'][0x0]['value'];return _0x31a377('side'===_0x3407e0?o(_0x571d6c,'FORMAT_SIDE_IMAGE'):_0x34d73f[_0x3407e0]||_0x3407e0);function _0x31a377(_0x55ac20){return{'type':'format','content':o(_0x571d6c,'*Format:*\x20%0',_0x55ac20)};}});}}class rt extends _0x1411ab{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x39fdb5){super(_0x39fdb5),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x46f9fd=this['editor'],_0x125291=_0x46f9fd['commands']['get']('importWord'),_0x1a8f49=_0x46f9fd['commands']['get']('trackChanges');_0x125291&&(_0x125291['on']('execute',(_0x4871eb,[,_0x6af69c])=>{this['_trackChangesValueDuringImport']=_0x1a8f49['value'],_0x6af69c['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x125291,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x125291,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x1a8f49['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x46f9fd['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x105aa1,_0x6969a7){const {suggestions:_0x4536bd}=_0x6969a7,_0x446f71=this['editor']['commands']['get']('trackChanges'),_0x16d64d=_0x446f71['value'];this['_trackChangesValueDuringImport']!==_0x16d64d&&(_0x446f71['execute'](),this['_trackChangesExecuted']=!0x0),_0x4536bd&&_0x4536bd['forEach'](({id:_0x5e7098,type:_0x5365ed,author:_0x1332ae,created_at:_0x530bec})=>{const _0x49e029={'id':_0x5e7098,'type':_0x5365ed,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x1332ae,'createdAt':_0x530bec?new Date(_0x530bec):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x49e029);});}}class at extends _0x1411ab{['afterInit'](){const _0x9c9992=this['editor'],_0x3607e2=_0x9c9992['plugins']['get']('TrackChangesEditing');if(_0x9c9992['plugins']['has']('IndentEditing')&&(_0x3607e2['enableCommand']('indent'),_0x3607e2['enableCommand']('outdent')),_0x9c9992['plugins']['has']('IndentBlock')){for(const _0x3d1a83 of['indentBlock','outdentBlock'])_0x3607e2['enableDefaultAttributesIntegration'](_0x3d1a83);}const _0x12bd5e=_0x9c9992['locale'];_0x3607e2['registerBlockAttribute']('blockIndent'),_0x3607e2['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x12bd5e,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5adaac=this['editor'],_0x5ba6ea=_0x5adaac['locale'],_0x54e732=_0x5adaac['plugins']['get']('TrackChangesEditing');_0x54e732['descriptionFactory']['registerDescriptionCallback'](_0xddba66=>{if('formatBlock'!=_0xddba66['type'])return;const {data:_0x348eb3}=_0xddba66;if(!_0x348eb3)return;if('indentBlock'!=_0x348eb3['commandName']&&'outdentBlock'!=_0x348eb3['commandName'])return;const _0x2d7141=_0xddba66['getItems']()[0x0],_0x4474c=_0x54e732['descriptionFactory']['getItemLabel'](_0x2d7141);return'indentBlock'==_0x348eb3['commandName']?{'type':'format','content':o(_0x5ba6ea,'*Indent:*\x20%0',_0x4474c)}:'outdentBlock'==_0x348eb3['commandName']?{'type':'format','content':o(_0x5ba6ea,'*Outdent:*\x20%0',_0x4474c)}:void 0x0;});}}class ct extends _0x1411ab{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ut extends _0x1411ab{['afterInit'](){const _0x234eac=this['editor'];if(!_0x234eac['plugins']['has']('LinkEditing'))return;const _0x5931a0=_0x234eac['plugins']['get']('TrackChangesEditing'),_0x42ed6a=_0x234eac['commands']['get']('link');_0x5931a0['enableDefaultAttributesIntegration']('link'),_0x5931a0['enableDefaultAttributesIntegration']('unlink'),_0x5931a0['registerInlineAttribute']('linkHref');for(const _0x2b34f7 of _0x42ed6a['manualDecorators'])_0x5931a0['registerInlineAttribute'](_0x2b34f7['id']),_0x5931a0['descriptionFactory']['registerAttributeLabel'](_0x2b34f7['id'],'link\x20('+_0x2b34f7['label']['toLowerCase']()+')');_0x5931a0['descriptionFactory']['registerDescriptionCallback'](_0xa3574e=>{if('attribute'!=_0xa3574e['type'])return;const {data:_0x24f35c}=_0xa3574e;if(!_0x24f35c||'linkHref'!=_0x24f35c['key'])return;const _0x24c431=_0x24f35c['newValue'],_0x240c36=_0x234eac['locale'];return{'type':'format','content':null==_0x24c431?o(_0x240c36,'*Remove\x20link*'):o(_0x240c36,'*Set\x20link:*\x20%0','\x22'+_0x24c431+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x48a3e9=this['editor'],_0xb4fc38=_0x48a3e9['locale'];_0x48a3e9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x169342=>{if('formatInline'!=_0x169342['type'])return;const {data:_0x114f20}=_0x169342;if(_0x114f20){if('link'==_0x114f20['commandName']){const _0x7d291d=_0x114f20['commandParams'][0x0];return{'type':'format','content':o(_0xb4fc38,'*Set\x20link:*\x20%0','\x22'+_0x7d291d+'\x22')};}return'unlink'==_0x114f20['commandName']?{'type':'format','content':o(_0xb4fc38,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x1411ab{['afterInit'](){const _0x164462=this['editor'],_0x4cf56a=_0x164462['locale'];if(!_0x164462['plugins']['has']('LegacyListEditing'))return;const _0x2374b2=_0x164462['plugins']['get']('TrackChangesEditing'),_0x521a45=_0x164462['plugins']['has']('LegacyTodoListEditing');function _0x801621(_0x9f4ae4){return()=>{const _0x50517e=_0x164462['model']['document']['selection'],_0x296dff=_0x164462['commands']['get'](_0x9f4ae4);if(_0x296dff['value'])return void _0x164462['execute']('paragraph',{});const _0x4b1d6e=_0x9f4ae4['slice'](0x0,-0x4),_0x1b16e=function(_0x8d00bf,_0x255c5b,_0x57e7fd){let _0x5a0ae8=Array['from'](_0x8d00bf)['filter'](_0x4fe44f=>function(_0x257999,_0x1120be){return _0x1120be['checkChild'](_0x257999['parent'],'listItem')&&!_0x1120be['isObject'](_0x257999);}(_0x4fe44f,_0x57e7fd));_0x5a0ae8=_0x5a0ae8['filter'](_0x5c9a79=>!_0x5c9a79['is']('element','listItem')||_0x5c9a79['getAttribute']('listType')!=_0x255c5b);const _0x43d9e4=new Set();for(const _0x5bf8c3 of _0x5a0ae8)_0x5bf8c3['is']('element','listItem')?_0x43d9e4['add'](Le(_0x5bf8c3)):_0x43d9e4['add'](_0x5bf8c3);return Array['from'](_0x43d9e4);}(_0x50517e['getSelectedBlocks'](),_0x4b1d6e,_0x164462['model']['schema']);_0x164462['model']['change'](()=>{for(const _0x24a4f7 of _0x1b16e)_0x2374b2['markBlockFormat'](_0x24a4f7,{'commandName':_0x9f4ae4,'commandParams':[{'forceValue':!_0x296dff['value']}],'formatGroupId':'blockName'},Ee(_0x24a4f7));});};}function _0x36cc0c(_0x1a4023){return()=>{const _0x714371=function(_0x42e4cd){let _0x58b63d=Array['from'](_0x42e4cd);const _0x13dbb0=_0x58b63d['findIndex'](_0x26b7b2=>'listItem'!=_0x26b7b2['name']);return _0x13dbb0>-0x1&&(_0x58b63d=_0x58b63d['slice'](0x0,_0x13dbb0)),_0x58b63d;}(_0x164462['model']['document']['selection']['getSelectedBlocks']()),_0x2d70ed=_0x164462['model']['createRange'](_0x164462['model']['createPositionAt'](_0x714371[0x0],'before'),_0x164462['model']['createPositionAt'](_0x714371[_0x714371['length']-0x1],'end'));_0x164462['model']['change'](()=>{_0x2374b2['markBlockFormat'](_0x2d70ed,{'commandName':_0x1a4023,'commandParams':[],'formatGroupId':'listIndent'},function(_0x2cee71){const _0x9a2a9=new Set();for(const _0x1a455f of _0x2cee71){let _0x20cb7d=_0x1a455f['nextSibling'];for(;_0x20cb7d&&_0x20cb7d['getAttribute']('listIndent')>_0x1a455f['getAttribute']('listIndent');)_0x9a2a9['add'](_0x20cb7d),_0x20cb7d=_0x20cb7d['nextSibling'];}return Array['from'](_0x9a2a9);}(_0x714371));});};}_0x2374b2['enableCommand']('numberedList',_0x801621('numberedList')),_0x2374b2['enableCommand']('bulletedList',_0x801621('bulletedList')),_0x521a45&&_0x2374b2['enableCommand']('todoList',_0x801621('todoList')),_0x2374b2['enableCommand']('indentList',_0x36cc0c('indentList')),_0x2374b2['enableCommand']('outdentList',_0x36cc0c('outdentList')),_0x521a45&&_0x2374b2['enableCommand']('checkTodoList',()=>{const _0xe41264=_0x164462['commands']['get']('checkTodoList'),_0x412a28=Array['from'](_0xe41264['_selectedElements']);_0x412a28['filter'](_0x57bfa3=>_0x57bfa3['getAttribute']('todoListChecked')!=_0xe41264['value']),_0x164462['model']['change'](()=>{for(const _0x3e1b43 of _0x412a28)_0x2374b2['markBlockFormat'](_0x3e1b43,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0xe41264['value']}]});});}),_0x2374b2['descriptionFactory']['registerElementLabel']('listItem',_0x576368=>o(_0x4cf56a,'ELEMENT_LIST_ITEM',_0x576368)),_0x2374b2['descriptionFactory']['registerDescriptionCallback'](_0x35366e=>{if('formatBlock'!=_0x35366e['type']&&'formatInline'!=_0x35366e['type'])return;const {data:_0x35aeb2}=_0x35366e;if(_0x35aeb2){if('numberedList'==_0x35aeb2['commandName']||'bulletedList'==_0x35aeb2['commandName']||'todoList'==_0x35aeb2['commandName'])switch(_0x35aeb2['commandName']['replace']('List','')){case'bulleted':return _0x308438(o(_0x4cf56a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x308438(o(_0x4cf56a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x308438(o(_0x4cf56a,'ELEMENT_TODO_LIST'));}if('indentList'==_0x35aeb2['commandName'])return{'type':'format','content':o(_0x4cf56a,'*Indent:*\x20%0',o(_0x4cf56a,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x35aeb2['commandName'])return{'type':'format','content':o(_0x4cf56a,'*Outdent:*\x20%0',o(_0x4cf56a,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x35aeb2['commandName'])return _0x35aeb2['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4cf56a,'*Check\x20item*')}:{'type':'format','content':o(_0x4cf56a,'*Uncheck\x20item*')};}function _0x308438(_0x4dec9f){return{'type':'format','content':o(_0x4cf56a,'*Change\x20to:*\x20%0',_0x4dec9f)};}});}}function Le(_0x12b6cf){const _0x362633=_0x12b6cf['getAttribute']('listIndent');if(0x0==_0x362633)return _0x12b6cf;let _0x114402=_0x12b6cf;for(;_0x12b6cf['previousSibling']&&_0x12b6cf['previousSibling']['is']('element','listItem');){const _0x361fa3=_0x12b6cf['previousSibling']['getAttribute']('listIndent');if(_0x361fa3==_0x362633)_0x114402=_0x12b6cf['previousSibling'];else{if(_0x361fa3<_0x362633)break;}_0x12b6cf=_0x12b6cf['previousSibling'];}return _0x114402;}function Ee(_0x3adf70){const _0x338c02=[];if(_0x3adf70['is']('element','listItem')&&_0x3adf70['getAttribute']('listIndent')>0x0){let _0x39d2c0=_0x3adf70['nextSibling'];for(;_0x39d2c0&&'listItem'==_0x39d2c0['name']&&_0x39d2c0['getAttribute']('listIndent')==_0x3adf70['getAttribute']('listIndent');)_0x338c02['push'](_0x39d2c0),_0x39d2c0=_0x39d2c0['nextSibling'];}return _0x338c02;}class ht extends _0x1411ab{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x494a7e=this['editor']['config']['get']('list.properties'),_0x4b9df8=this['editor']['plugins']['get']('TrackChangesEditing');_0x494a7e['styles']&&_0x4b9df8['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x494a7e['reversed']&&_0x4b9df8['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x494a7e['startIndex']&&_0x4b9df8['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x4b9df8['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x2faae2,_0x44d82a={}){const _0x195f34=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2b1b1b=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x195f34['markMultiRangeBlockFormat'](_0x2b1b1b,{'commandName':'listStyle','commandParams':[{'type':_0x44d82a['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x60dcce,_0x18af2d={}){const _0x46f869=this['editor']['plugins']['get']('TrackChangesEditing'),_0x28ebe1=this['_getSuggestionBlocks'](_0x27f84e=>_0x27f84e['is']('element','listItem')&&'numbered'===_0x27f84e['getAttribute']('listType'));if(_0x28ebe1['length']<0x1)return;const _0xae423d=_0x28ebe1['map'](_0x33ecfa=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x33ecfa,'before'),this['editor']['model']['createPositionAt'](_0x33ecfa,0x0)));this['editor']['model']['change'](()=>{_0x46f869['markMultiRangeBlockFormat'](_0xae423d,{'commandName':'listReversed','commandParams':[{'reversed':_0x18af2d['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x510276,_0x326f8a={}){const _0x142f0b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x15f328=this['_getSuggestionBlocks'](_0x5ac6de=>_0x5ac6de['is']('element','listItem')&&'numbered'===_0x5ac6de['getAttribute']('listType'));if(_0x15f328['length']<0x1)return;const _0x254ad6=_0x15f328['map'](_0xa9cb=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xa9cb,'before'),this['editor']['model']['createPositionAt'](_0xa9cb,0x0)));this['editor']['model']['change'](()=>{_0x142f0b['markMultiRangeBlockFormat'](_0x254ad6,{'commandName':'listStart','commandParams':[{'startIndex':_0x326f8a['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x249e35){if('formatBlock'!=_0x249e35['type']&&'formatInline'!=_0x249e35['type'])return;const _0x6dde56=this['editor']['locale'],{data:_0x45ac04}=_0x249e35;if(!_0x45ac04)return;let _0x327191,_0x1ede6a;switch(_0x45ac04['commandName']){case'listStyle':_0x327191='*Change\x20to:*\x20%0',_0x1ede6a={'type':'format','content':o(_0x6dde56,_0x327191,o(_0x6dde56,this['_getTranslationKeyForListStyle'](_0x45ac04['commandParams'][0x0]['type'])))};break;case'listReversed':_0x327191=_0x45ac04['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1ede6a={'type':'format','content':o(_0x6dde56,_0x327191)};break;case'listStart':_0x327191='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1ede6a={'type':'format','content':o(_0x6dde56,_0x327191,_0x45ac04['commandParams'][0x0]['startIndex'])};}return _0x1ede6a;}['_getSuggestionBlocksForListStyle'](){const _0x3023b3=this['editor']['plugins']['get']('LegacyListUtils');let _0x55963e=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x55963e[0x0]?.['is']('element','listItem')&&_0x55963e['unshift'](..._0x3023b3['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x55963e[_0x55963e['length']-0x1]?.['is']('element','listItem')&&_0x55963e['push'](..._0x3023b3['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x55963e=[...new Set(_0x55963e)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x55963e=_0x55963e['filter'](_0x2cd12e=>_0x2cd12e['is']('element','listItem'))),_0x55963e;}['_getSuggestionBlocks'](_0x30c2a1){const _0x482c86=this['editor']['plugins']['get']('LegacyListUtils');let _0xf1bc5e=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x30c2a1)['map'](_0x53e1f8=>{const _0x5b731d=this['editor']['model']['createPositionAt'](_0x53e1f8,0x0);return[..._0x482c86['getSiblingNodes'](_0x5b731d,'backward'),..._0x482c86['getSiblingNodes'](_0x5b731d,'forward')];})['flat']();return _0xf1bc5e=[...new Set(_0xf1bc5e)],_0xf1bc5e;}['_getTranslationKeyForListStyle'](_0x8a64c1){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x8a64c1)||'default')['toUpperCase']()+'_LIST_'+_0x8a64c1['toUpperCase']()['replace'](/-/g,'_');}}class gt extends _0x1411ab{['afterInit'](){const _0x38d972=this['editor'];if(!_0x38d972['plugins']['has']('MediaEmbedEditing'))return;const _0xeb62c9=_0x38d972['plugins']['get']('TrackChangesEditing'),_0x37820e=_0x38d972['locale'];_0xeb62c9['enableCommand']('mediaEmbed'),_0xeb62c9['descriptionFactory']['registerElementLabel']('media',_0x2ecaa3=>o(_0x37820e,'ELEMENT_MEDIA',_0x2ecaa3)),_0x38d972['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4b02a5,{writer:_0x25a5dc,options:_0x96f4b2})=>{if(_0x96f4b2['showSuggestionHighlights'])return _0x25a5dc['createEmptyElement']('div');},'converterPriority':'high'}),_0x38d972['data']['downcastDispatcher']['on']('attribute:url:media',(_0x5e83b7,_0x52938c,_0x269199)=>{_0x269199['options']['showSuggestionHighlights']&&_0x5e83b7['stop']();},{'priority':'high'});}}class lt extends _0x1411ab{['afterInit'](){const _0x53df95=this['editor'];_0x53df95['plugins']['has']('MentionEditing')&&_0x53df95['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x1411ab{['afterInit'](){const _0x2ce23a=this['editor'];if(!_0x2ce23a['plugins']['has']('MergeFieldsEditing'))return;const _0x3f8894=_0x2ce23a['plugins']['get']('TrackChangesEditing'),_0x37df74=_0x2ce23a['locale'];_0x3f8894['enableCommand']('insertMergeField'),_0x3f8894['enableCommand']('insertMergeFieldBlock'),_0x3f8894['enableCommand']('insertMergeFieldImage'),_0x3f8894['descriptionFactory']['registerElementLabel']('mergeField',_0x4adc44=>o(_0x37df74,'ELEMENT_MERGE_FIELD',_0x4adc44)),_0x3f8894['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x34c6bc=>o(_0x37df74,'ELEMENT_MERGE_FIELD',_0x34c6bc)),_0x3f8894['descriptionFactory']['registerDescriptionCallback'](_0x2e482b=>{if('insertion'!=_0x2e482b['type']&&'deletion'!=_0x2e482b['type'])return;const _0xddd353=_0x2e482b['getContainedElement']();if(null==_0xddd353)return;const _0x2c5335=_0x2ce23a['plugins']['get']('MergeFieldsEditing');let _0x2615d5;switch(_0x2c5335['getMergeFieldType'](_0xddd353)){case null:return;case'image':{const _0x38bc86=_0x2c5335['unwrapAffixes'](_0xddd353['getAttribute']('src'));_0x2615d5=_0x2c5335['getLabel'](_0x38bc86)||_0x38bc86;break;}default:{const _0x5d01c3=_0xddd353['getAttribute']('id');_0x2615d5=_0x2c5335['getLabel'](_0x5d01c3)||_0x5d01c3;break;}}return'insertion'==_0x2e482b['type']?{'type':'insertion','content':o(_0x37df74,'*Insert:*\x20%0','\x22'+_0x2615d5+'\x22\x20'+o(_0x37df74,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x37df74,'*Remove:*\x20%0','\x22'+_0x2615d5+'\x22\x20'+o(_0x37df74,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0x1411ab{['afterInit'](){const _0x11b433=this['editor'],_0x29decf=_0x11b433['plugins']['get']('TrackChangesEditing');_0x11b433['plugins']['has']('MultiLevelList')&&(_0x29decf['enableDefaultAttributesIntegration']('multiLevelList'),_0x29decf['registerBlockAttribute']('listMarkerStyle'),_0x29decf['descriptionFactory']['registerDescriptionCallback'](_0x545b5f=>this['handleDescriptions'](_0x545b5f)));}['handleDescriptions'](_0x1f30a1){const _0x5218d3=this['editor']['locale'],{data:_0x41e32c}=_0x1f30a1,_0x4aae8f={'type':'format','content':''};if(_0x41e32c&&'listMarkerStyle'==_0x41e32c['key']){if(!_0x41e32c['oldValue'])return{'type':'format','content':o(_0x5218d3,'*Set\x20format:*\x20%0',o(_0x5218d3,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x41e32c['newValue']+')'};if(!_0x41e32c['newValue']){let _0x5b8888=_0x1f30a1['head'];for(;_0x5b8888;){if(_0x5b8888['data']&&'listType'==_0x5b8888['data']['key']&&_0x5b8888['data']['newValue'])return _0x4aae8f;_0x5b8888=_0x5b8888['next'];}return{'type':'format','content':o(_0x5218d3,'*Remove\x20format:*\x20%0',o(_0x5218d3,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x41e32c['oldValue']+')'};}}}}class pt extends _0x1411ab{['afterInit'](){const _0x2de419=this['editor'];if(!_0x2de419['plugins']['has']('PageBreakEditing'))return;_0x2de419['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x3b2d5f=_0x2de419['plugins']['get']('TrackChangesEditing'),_0x38265f=_0x2de419['locale'];_0x3b2d5f['descriptionFactory']['registerElementLabel']('pageBreak',_0x123f0a=>o(_0x38265f,'ELEMENT_PAGE_BREAK',_0x123f0a));}}class kt extends _0x1411ab{['afterInit'](){const _0x10ccf2=this['editor'];if(!_0x10ccf2['plugins']['has']('Paragraph'))return;const _0x26927e=_0x10ccf2['locale'],_0x3e2df6=_0x10ccf2['plugins']['get']('TrackChangesEditing');_0x3e2df6['descriptionFactory']['registerElementLabel']('paragraph',_0xfd72e6=>o(_0x26927e,'ELEMENT_PARAGRAPH',_0xfd72e6)),_0x3e2df6['enableDefaultAttributesIntegration']('paragraph'),_0x3e2df6['enableCommand']('insertParagraph'),_0x10ccf2['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x10ccf2),{'priority':'highest'}),_0x10ccf2['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x388856,_0x3f2ab4,_0x36cb0f)=>{_0x36cb0f['options']['showSuggestionHighlights']&&nr(_0x10ccf2,{'showActiveMarker':!0x1})(_0x388856,_0x3f2ab4,_0x36cb0f);},{'priority':'highest'});const _0x4392fc=_0x3e2df6['descriptionFactory'];_0x4392fc['registerDescriptionCallback'](_0x32eb92=>{if('insertion'!==_0x32eb92['type'])return;const {start:_0x12e596,end:_0xd4ce04}=_0x32eb92['getFirstRange']();if(!_0x12e596['isTouching'](_0xd4ce04)||!_0x12e596['nodeAfter'])return;const _0x3c0aef=_0x10ccf2['model']['schema'],_0x2e2a15=_0x12e596['nodeAfter'];return _0x3c0aef['isBlock'](_0x2e2a15)&&!_0x3c0aef['isLimit'](_0x2e2a15)&&_0x3c0aef['checkChild'](_0x2e2a15,'$text')?{'type':'insertion','content':o(_0x26927e,'*Insert:*\x20%0',_0x4392fc['getItemLabel'](_0x2e2a15,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x576172=this['editor'],_0x4656af=_0x576172['locale'];_0x576172['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xcbef8b=>{if('formatBlock'!=_0xcbef8b['type'])return;const {data:_0x52a1a3}=_0xcbef8b;return _0x52a1a3&&'paragraph'==_0x52a1a3['commandName']?{'type':'format','content':o(_0x4656af,'*Change\x20to:*\x20%0',o(_0x4656af,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x2fb29e,{showActiveMarker:_0x41db3f=!0x0}={}){return(_0x746ccc,_0x3b72ca,_0x1fe0ee)=>{const _0x63262f=_0x2fb29e['plugins']['get']('TrackChangesEditing'),_0x5b9477=_0x3b72ca['markerRange']['start'],_0x1764db=_0x3b72ca['markerRange']['end'],_0xadfe3c=_0x2fb29e['model']['schema'];if(!_0x5b9477['isTouching'](_0x1764db)||!_0x5b9477['nodeAfter'])return;const _0x22dbd3=_0x5b9477['nodeAfter'];if(_0xadfe3c['isBlock'](_0x22dbd3)&&!_0xadfe3c['isLimit'](_0x22dbd3)&&_0xadfe3c['checkChild'](_0x22dbd3,'$text')){if(!_0x1fe0ee['consumable']['consume'](_0x3b72ca['markerRange'],_0x746ccc['name']))return;const {id:_0x385ec6,authorId:_0x902ebb}=_0x63262f['_splitMarkerName'](_0x3b72ca['markerName']),_0x223da4=_0x1fe0ee['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x385ec6,'data-author-id':_0x902ebb}),_0x13c078=_0x1fe0ee['mapper']['toViewPosition'](_0x1764db);_0x41db3f&&_0x63262f['activeMarkers']['includes'](_0x3b72ca['markerName'])&&_0x1fe0ee['writer']['addClass']('ck-suggestion-marker--active',_0x223da4),_0x1fe0ee['writer']['insert'](_0x13c078,_0x223da4),_0x1fe0ee['mapper']['bindElementToMarker'](_0x223da4,_0x3b72ca['markerName']);}};}class wt extends _0x1411ab{['afterInit'](){const _0x8fcdda=this['editor'];_0x8fcdda['commands']['get']('replaceSource')&&_0x8fcdda['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class bt extends _0x1411ab{['afterInit'](){const _0x4077c0=this['editor'];if(!_0x4077c0['plugins']['has']('RemoveFormatEditing'))return;_0x4077c0['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3d2834=this['editor'];_0x3d2834['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf65e3f=>{if('formatBlock'!=_0xf65e3f['type']&&'formatInline'!=_0xf65e3f['type'])return;const {data:_0x4893d8}=_0xf65e3f;return _0x4893d8&&'removeFormat'==_0x4893d8['commandName']?{'type':'format','content':o(_0x3d2834['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x1411ab{['afterInit'](){const _0x2baf7a=this['editor'];if(!_0x2baf7a['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x58d347=_0x2baf7a['plugins']['get']('TrackChangesEditing');_0x58d347['enableCommand']('goToPreviousRestrictedEditingException'),_0x58d347['enableCommand']('goToNextRestrictedEditingException');const _0x2129bb=_0x2baf7a['plugins']['get']('RestrictedEditingModeEditing');_0x2129bb['enableCommand']('trackChanges'),_0x2129bb['enableCommand']('acceptSuggestion'),_0x2129bb['enableCommand']('discardSuggestion'),_0x2129bb['enableCommand']('acceptAllSuggestions'),_0x2129bb['enableCommand']('discardAllSuggestions'),_0x2129bb['enableCommand']('acceptSelectedSuggestions'),_0x2129bb['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x1411ab{['afterInit'](){const _0x54240c=this['editor'];if(!_0x54240c['plugins']['has']('ShiftEnter'))return;const _0x1fe71a=_0x54240c['plugins']['get']('TrackChangesEditing');_0x1fe71a['enableCommand']('shiftEnter'),_0x54240c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x54240c),{'priority':'high'}),_0x54240c['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x54240c),{'priority':'high'}),_0x54240c['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x322649,_0x21a568,_0x174817)=>{_0x174817['options']['showSuggestionHighlights']&&je(_0x54240c,{'showActiveMarker':!0x1})(_0x322649,_0x21a568,_0x174817);}),_0x1fe71a['descriptionFactory']['registerElementLabel']('softBreak',_0x10b05c=>o(_0x54240c['locale'],'ELEMENT_LINE_BREAK',_0x10b05c));}}function je(_0x41a2d0,{showActiveMarker:_0x48b36f=!0x0}={}){return(_0x469ef4,_0x2a48c6,_0x1a1179)=>{const _0x21605b=_0x41a2d0['plugins']['get']('TrackChangesEditing');if(!_0x1a1179['consumable']['test'](_0x2a48c6['markerRange'],_0x469ef4['name']))return;const _0x2db0cc=_0x41a2d0['model'];for(const _0x73b625 of _0x2a48c6['markerRange']['getItems']()){if(!_0x73b625['is']('element','softBreak'))continue;const _0x28b7f0='deletion'==_0x2a48c6['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x23575e,authorId:_0x32438c}=_0x21605b['_splitMarkerName'](_0x2a48c6['markerName']),_0x4998d8=_0x1a1179['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x28b7f0,'data-suggestion':_0x23575e,'data-author-id':_0x32438c}),_0x5b958f=_0x1a1179['mapper']['toViewPosition'](_0x2db0cc['createPositionBefore'](_0x73b625));_0x48b36f&&_0x21605b['activeMarkers']['includes'](_0x2a48c6['markerName'])&&_0x1a1179['writer']['addClass']('ck-suggestion-marker--active',_0x4998d8),_0x1a1179['writer']['insert'](_0x5b958f,_0x4998d8),_0x1a1179['mapper']['bindElementToMarker'](_0x4998d8,_0x2a48c6['markerName']);}};}class St extends _0x1411ab{['afterInit'](){const _0x156800=this['editor'],_0x38c81=_0x156800['model'],_0x206d0a=_0x156800['locale'];if(!_0x156800['plugins']['has']('StandardEditingModeEditing'))return;const _0x313bdc=_0x156800['plugins']['get']('TrackChangesEditing'),_0x1e1db4='restrictedEditingException',_0x437b00=_0x156800['commands']['get'](_0x1e1db4);_0x313bdc['enableCommand'](_0x1e1db4,(_0xda4134,_0x89bfcf={})=>{const _0x5cfcf3=_0x38c81['document']['selection'];if(_0x5cfcf3['isCollapsed'])return void _0xda4134(_0x89bfcf);const _0x399dfd=void 0x0!==_0x89bfcf['forceValue']?_0x89bfcf['forceValue']:!_0x437b00['value'];_0x38c81['change'](()=>{const _0x404ab9=Array['from'](_0x5cfcf3['getRanges']());for(const _0x42b636 of _0x404ab9){const _0xd649a4=_0x399dfd?[_0x42b636]:io(_0x1e1db4,_0x42b636,_0x38c81);for(const _0x34294a of _0xd649a4)_0x313bdc['markInlineFormat'](_0x34294a,{'commandName':_0x1e1db4,'commandParams':[{'forceValue':_0x399dfd}]});}});}),_0x313bdc['descriptionFactory']['registerDescriptionCallback'](_0x3a0e9a=>{if('formatBlock'!=_0x3a0e9a['type']&&'formatInline'!=_0x3a0e9a['type'])return;const {data:_0x2777a7}=_0x3a0e9a;return _0x2777a7&&_0x2777a7['commandName']==_0x1e1db4?_0x2777a7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x206d0a,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x206d0a,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x1411ab{['afterInit'](){const _0x3df824=this['editor'];if(!_0x3df824['plugins']['has']('Style')||!_0x3df824['plugins']['has']('DataSchema'))return;const _0x18af12=_0x3df824['plugins']['get']('TrackChangesEditing'),_0x5624f9=_0x3df824['locale'],_0x516d85=_0x3df824['config']['get']('style')||{},_0x43d9b7=_0x3df824['plugins']['get']('GeneralHtmlSupport'),_0x287fe6=_0x3df824['plugins']['get']('StyleUtils')['normalizeConfig'](_0x3df824['plugins']['get']('DataSchema'),_0x516d85['definitions']);_0x18af12['enableDefaultAttributesIntegration']('style');const _0x26d1dd=new Set();for(const _0x53b5e0 of _0x287fe6['block']){const _0x45a38b=_0x43d9b7['getGhsAttributeNameForElement'](_0x53b5e0['element']);_0x26d1dd['add'](_0x45a38b);}const _0x109e0a=new Set();for(const _0x3a5fec of _0x287fe6['inline']){const _0x336483=_0x43d9b7['getGhsAttributeNameForElement'](_0x3a5fec['element']);_0x109e0a['add'](_0x336483);for(const _0x3a2d16 of _0x3a5fec['ghsAttributes'])_0x109e0a['add'](_0x3a2d16);}for(const _0x1b4a42 of _0x26d1dd)_0x18af12['registerBlockAttribute'](_0x1b4a42),_0x18af12['descriptionFactory']['registerAttributeLabel'](_0x1b4a42,o(_0x5624f9,'FORMAT_STYLE'));for(const _0x3a4851 of _0x109e0a)_0x18af12['registerInlineAttribute'](_0x3a4851),_0x18af12['descriptionFactory']['registerAttributeLabel'](_0x3a4851,o(_0x5624f9,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x916dd0=this['editor'],_0x23857c=_0x916dd0['locale'];_0x916dd0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x21a459=>{if('formatBlock'!=_0x21a459['type']&&'formatInline'!=_0x21a459['type'])return;const {data:_0x498715}=_0x21a459;return _0x498715&&'style'===_0x498715['commandName']?_0x498715['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x23857c,'*Set\x20format:*\x20%0',_0x498715['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x23857c,'*Remove\x20format:*\x20%0',_0x498715['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class At extends _0x1411ab{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x2a7472){super(_0x2a7472),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x53f5a1=this['editor'],_0x14fb95=_0x53f5a1['model']['document']['selection'];if(!_0x53f5a1['plugins']['has']('TableEditing'))return;const _0x67405=_0x53f5a1['locale'],_0x2a3517=_0x53f5a1['plugins']['get']('TrackChangesEditing'),_0x1e7720=_0x53f5a1['plugins']['get']('TableUtils');_0x2a3517['descriptionFactory']['registerElementLabel']('table',_0x40682d=>o(_0x67405,'ELEMENT_TABLE',_0x40682d)),this['_setupColumnsRowsFixing'](),_0x2a3517['enableCommand']('insertTable'),_0x2a3517['enableCommand']('selectTableRow'),_0x2a3517['enableCommand']('selectTableColumn');for(const _0x42035a of['insertTableRowAbove','insertTableRowBelow']){const _0x53f049=_0x53f5a1['commands']['get'](_0x42035a);_0x2a3517['enableCommand'](_0x42035a,_0x4657aa=>{_0x53f5a1['model']['change'](_0x7a0577=>{_0x4657aa();const _0x41632c='above'===_0x53f049['order'],_0x4dad9d=_0x1e7720['getSelectionAffectedTableCells'](_0x14fb95),_0x58d708=_0x1e7720['getRowIndexes'](_0x4dad9d),_0xf3a35c=_0x41632c?_0x58d708['first']-0x1:_0x58d708['last']+0x1,_0xf2e66f=_0x4dad9d[0x0]['findAncestor']('table'),_0x3b2576=_0x1e7720['createTableWalker'](_0xf2e66f,{'startRow':_0xf3a35c,'endRow':_0xf3a35c}),_0x4f1c3d=Array['from'](_0x3b2576)['map'](_0x3b9567=>_0x7a0577['createRangeOn'](_0x3b9567['cell']));_0x2a3517['markMultiRangeInsertion'](_0x4f1c3d,'tableRow');});});}for(const _0x59b88b of['insertTableColumnLeft','insertTableColumnRight']){const _0x3b66f4=_0x53f5a1['commands']['get'](_0x59b88b);_0x2a3517['enableCommand'](_0x59b88b,_0x351b54=>{_0x53f5a1['model']['change'](_0x320e9a=>{_0x351b54();const _0x24c77a='left'===_0x3b66f4['order'],_0x3051ec=_0x1e7720['getSelectionAffectedTableCells'](_0x14fb95),_0xc1dc0c=_0x1e7720['getColumnIndexes'](_0x3051ec),_0x4910d5=_0x24c77a?_0xc1dc0c['first']-0x1:_0xc1dc0c['last']+0x1,_0x263010=_0x3051ec[0x0]['findAncestor']('table'),_0x118f8d=_0x1e7720['createTableWalker'](_0x263010,{'startRow':0x0,'column':_0x4910d5,'includeAllSlots':!0x1}),_0x1d54d9=Array['from'](_0x118f8d)['map'](_0x2b9bac=>_0x320e9a['createRangeOn'](_0x2b9bac['cell']));_0x2a3517['markMultiRangeInsertion'](_0x1d54d9,'tableColumn');});});}for(const _0x1cfa74 of['removeTableRow','removeTableColumn']){const _0x45b837=_0x1cfa74['substr'](0xb),_0x49acd3=_0x45b837['toLowerCase'](),_0x496e9a=_0x49acd3['substr'](0x0,0x3)+'span',_0x2d916b='table'+_0x45b837,_0x54bc97='min'+_0x45b837,_0x160f19='max'+_0x45b837;_0x2a3517['enableCommand'](_0x1cfa74,()=>{_0x53f5a1['model']['change'](_0x5bd6c8=>{const _0x5d5fc5=_0x1e7720['getSelectionAffectedTableCells'](_0x14fb95),_0x3d3908=_0x5d5fc5[0x0]['findAncestor']('table');let _0xcf2dee;if('removeTableRow'==_0x1cfa74){const _0x2a24bb=_0x1e7720['getRowIndexes'](_0x5d5fc5);_0xcf2dee={'startRow':_0x2a24bb['first'],'endRow':_0x2a24bb['last'],'includeAllSlots':!0x0};}else{const _0x4b9760=_0x1e7720['getColumnIndexes'](_0x5d5fc5);_0xcf2dee={'startColumn':_0x4b9760['first'],'endColumn':_0x4b9760['last'],'includeAllSlots':!0x0};}const _0x51ec0c=_0x1e7720['createTableWalker'](_0x3d3908,_0xcf2dee),_0x1f9aae=Array['from'](_0x51ec0c)['map'](({cell:_0x441107})=>_0x441107),_0x54e72a=Ne(_0x1f9aae['filter'](_0x33e015=>_0x33e015['hasAttribute'](_0x496e9a))),_0x1cbb16=Ne(_0x1f9aae['filter'](_0x3c321e=>!_0x3c321e['hasAttribute'](_0x496e9a)))['map'](_0x328df8=>_0x5bd6c8['createRangeOn'](_0x328df8)),_0x435478=_0x2a3517['markMultiRangeDeletion'](_0x1cbb16,_0x2d916b);if(_0x435478&&('tableRow'==_0x435478['subType']||'tableColumn'==_0x435478['subType'])){const _0x368b3a=this['_getSuggestionCoords'](_0x435478);for(const _0x16682b of _0x54e72a){const _0x4a96a8=_0x5bd6c8['createRangeOn'](_0x16682b),_0x33afaf=_0x1e7720['getCellLocation'](_0x16682b),_0x106ef0=_0x16682b['getAttribute'](_0x496e9a)-0x1,_0x37869a=_0x368b3a[_0x54bc97],_0x2e9bd8=_0x368b3a[_0x160f19];_0x37869a<=_0x33afaf[_0x49acd3]&&_0x33afaf[_0x49acd3]+_0x106ef0<=_0x2e9bd8&&_0x435478['addRange'](_0x4a96a8);}}});});}function _0x3b713c(_0x1d925a){const _0x531038=Array['from'](_0x14fb95['getRanges']())['map'](_0x215a2c=>_0x26ed96['fromRange'](_0x215a2c));_0x53f5a1['model']['change'](_0x3a8f10=>{const _0x296c7f=_0x3a8f10['batch'];_0x1d925a=_0x1d925a['filter'](_0x181b8b=>'$graveyard'!=_0x181b8b['root']['rootName']),_0x3a8f10['setSelection'](_0x1d925a),_0x53f5a1['commands']['get']('removeTableRow')['refresh'](),_0x53f5a1['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x53f5a1['model']['enqueueChange'](()=>{_0x53f5a1['model']['enqueueChange'](_0x296c7f,_0x2965eb=>{const _0x10bd6d=_0x531038['filter'](_0x530ec1=>'$graveyard'!=_0x530ec1['root']['rootName']);_0x10bd6d['length']>0x0&&_0x2965eb['setSelection'](_0x10bd6d);for(const _0x4d442e of _0x531038)_0x4d442e['detach']();});});});}function _0x3ae47c(_0xd35183){_0x53f5a1['model']['change'](_0x76ad45=>{const _0x33602f=Array['from'](_0x14fb95['getRanges']())['map'](_0x159b9f=>_0x26ed96['fromRange'](_0x159b9f)),_0x21cbcf=[];for(const _0x59a17f of _0xd35183)for(const _0x3309d8 of _0x59a17f['getItems']({'shallow':!0x0}))_0x21cbcf['push'](_0x3309d8);for(const _0x38c145 of _0x21cbcf)'$graveyard'!=_0x38c145['root']['rootName']&&(_0x76ad45['setSelection'](_0x76ad45['createPositionAt'](_0x38c145,0x0)),_0x53f5a1['commands']['get']('removeTableColumn')['refresh'](),_0x53f5a1['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x1652ca=_0x33602f['filter'](_0x490a42=>'$graveyard'!=_0x490a42['root']['rootName']);_0x1652ca['length']>0x0&&_0x76ad45['setSelection'](_0x1652ca);for(const _0x366e24 of _0x33602f)_0x366e24['detach']();});}function _0x4ba652(_0x4e55b6,_0x47a877){return _0x47a877['every'](_0x50bb31=>_0x4e55b6['some'](_0x5ea329=>_0x5ea329['end']['isEqual'](_0x50bb31['start'])||_0x50bb31['end']['isEqual'](_0x5ea329['start'])));}function _0x30aeab(_0x543663,_0x5f2cae){return!_0x543663['some'](_0xc7db61=>_0x5f2cae['some'](_0x37468a=>_0xc7db61['isIntersecting'](_0x37468a)))&&_0x543663['some'](_0x127a95=>_0x5f2cae['some'](_0x22656c=>_0x127a95['end']['isTouching'](_0x22656c['start'])));}_0x53f5a1['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x22bcc0,_0x301a61,_0x19e051)=>{if(!_0x19e051['options']['showSuggestionHighlights'])return;const _0x20254d=_0x301a61['item'];if(!_0x20254d||!_0x20254d['is']('element','tableCell'))return;const _0x51dba2=_0x19e051['mapper']['toViewElement'](_0x20254d);if(_0x51dba2){const {id:_0x9d4359,authorId:_0x1db087}=_0x2a3517['_splitMarkerName'](_0x301a61['markerName']);_0x161c1c(_0x51dba2,_0x19e051['writer'],(_0x3723fb,_0x54eaaf,_0x21cbb3)=>{_0x21cbb3['addClass'](_0x5939fb(_0x54eaaf['classes']),_0x3723fb),_0x21cbb3['setAttribute']('data-suggestion-id',_0x9d4359,_0x3723fb),_0x21cbb3['setAttribute']('data-author-id',_0x1db087,_0x3723fb);},(_0x176c79,_0x3646f8,_0x1d736a)=>{_0x1d736a['removeClass'](_0x5939fb(_0x3646f8['classes']),_0x176c79),_0x1d736a['removeAttribute']('data-suggestion-id',_0x176c79),_0x1d736a['removeAttribute']('data-author-id',_0x176c79);});}},{'priority':'highest'}),_0x2a3517['descriptionFactory']['registerDescriptionCallback'](_0x2c863c=>{if('insertion'!=_0x2c863c['type']&&'deletion'!=_0x2c863c['type'])return;const _0x405d33=_0x2c863c['getContainedElement']();if(null!=_0x405d33&&_0x405d33['is']('element','table')){if('insertion'==_0x2c863c['type']){const _0x1edbc5=_0x2c863c['getItems']()['filter'](_0x5328ac=>_0x5328ac['is']('$textProxy'))['map'](_0x22651d=>_0x22651d['data']);if(_0x1edbc5['length'])return{'type':'insertion','content':o(_0x67405,'*Insert:*\x20%0',o(_0x67405,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1edbc5['join']('\x20')+'\x22'))};}if('deletion'==_0x2c863c['type']){const _0x56446b=_0x2c863c['getItems']()['filter'](_0x1600f9=>_0x1600f9['is']('$textProxy'))['map'](_0x2ec0f4=>_0x2ec0f4['data']);if(_0x56446b['length'])return{'type':'deletion','content':o(_0x67405,'*Remove:*\x20%0',o(_0x67405,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x56446b['join']('\x20')+'\x22'))};}}}),_0x2a3517['descriptionFactory']['registerDescriptionCallback'](_0x10fcfd=>{if('tableRow'==_0x10fcfd['subType']){const _0x3588af=_0x10fcfd['getItems']()['filter'](_0x3f27d7=>_0x3f27d7['is']('$textProxy'))['map'](_0x33d615=>_0x33d615['data']),_0x5608a2=this['_getSuggestionCoords'](_0x10fcfd),_0x4ec9b3=_0x5608a2['maxRow']-_0x5608a2['minRow']+0x1;if('insertion'==_0x10fcfd['type'])return _0x3588af['length']?{'type':'insertion','content':o(_0x67405,'*Insert:*\x20%0',o(_0x67405,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4ec9b3,'\x22'+_0x3588af['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x67405,'*Insert:*\x20%0',o(_0x67405,'ELEMENT_TABLE_ROW',_0x4ec9b3))};if('deletion'==_0x10fcfd['type'])return _0x3588af['length']?{'type':'deletion','content':o(_0x67405,'*Remove:*\x20%0',o(_0x67405,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4ec9b3,'\x22'+_0x3588af['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x67405,'*Remove:*\x20%0',o(_0x67405,'ELEMENT_TABLE_ROW',_0x4ec9b3))};}if('tableColumn'==_0x10fcfd['subType']){const _0x268c4c=_0x10fcfd['getItems']()['filter'](_0x572d0a=>_0x572d0a['is']('$textProxy'))['map'](_0x20e4ed=>_0x20e4ed['data']),_0x2367ed=this['_getSuggestionCoords'](_0x10fcfd),_0x74dfc1=_0x2367ed['maxColumn']-_0x2367ed['minColumn']+0x1;if('insertion'==_0x10fcfd['type'])return _0x268c4c['length']?{'type':'insertion','content':o(_0x67405,'*Insert:*\x20%0',o(_0x67405,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x74dfc1,'\x22'+_0x268c4c['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x67405,'*Insert:*\x20%0',o(_0x67405,'ELEMENT_TABLE_COLUMN',_0x74dfc1))};if('deletion'==_0x10fcfd['type'])return _0x268c4c['length']?{'type':'deletion','content':o(_0x67405,'*Remove:*\x20%0',o(_0x67405,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x74dfc1,'\x22'+_0x268c4c['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x67405,'*Remove:*\x20%0',o(_0x67405,'ELEMENT_TABLE_COLUMN',_0x74dfc1))};}}),_0x2a3517['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x3b713c),_0x2a3517['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x3b713c),_0x2a3517['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x3ae47c),_0x2a3517['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x3ae47c),_0x2a3517['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x4ba652),_0x2a3517['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x4ba652),_0x2a3517['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x30aeab),_0x2a3517['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x30aeab);}['_acceptFormatSuggestionCallbackFactory'](){const _0x313968=this['editor'],_0x22dfb5=_0x313968['model']['document']['selection'];return(_0x3e8804,_0x4dbace)=>{_0x313968['model']['change'](_0x33ddda=>{const {commandName:_0x595d35,commandParams:_0x43a8b2}=_0x4dbace;let _0xe8400d=_0x3e8804[0x0]['end']['nodeBefore'];_0x43a8b2&&_0x43a8b2[0x0]&&!0x1===_0x43a8b2[0x0]['forceValue']&&(_0xe8400d=_0x3e8804[0x0]['start']['nodeAfter']);const _0x2bc37b=_0x33ddda['createRangeIn'](_0xe8400d);if('$graveyard'==_0x2bc37b['root']['rootName'])return;const _0x36e030=Array['from'](_0x22dfb5['getRanges']())['map'](_0x19e177=>_0x26ed96['fromRange'](_0x19e177));_0x33ddda['setSelection'](_0x2bc37b),_0x313968['commands']['get'](_0x595d35)['refresh'](),_0x43a8b2['push']({'forceDefaultExecution':!0x0}),_0x313968['execute'](_0x595d35,..._0x43a8b2);const _0x507613=_0x36e030['filter'](_0x2cc15c=>'$graveyard'!=_0x2cc15c['root']['rootName']);_0x507613['length']>0x0&&_0x33ddda['setSelection'](_0x507613);for(const _0x28a816 of _0x36e030)_0x28a816['detach']();});};}['_getCoordsForCells'](_0xfa749f){const _0x3621d1=this['editor']['plugins']['get']('TableUtils');let _0x334b1e=Number['MAX_SAFE_INTEGER'],_0x365bdf=Number['MIN_SAFE_INTEGER'],_0x4437f1=Number['MAX_SAFE_INTEGER'],_0x57e3e5=Number['MIN_SAFE_INTEGER'];for(const _0x53d986 of _0xfa749f){if('$graveyard'==_0x53d986['root']['rootName'])continue;const {row:_0x3d85f6,column:_0x515dc9}=_0x3621d1['getCellLocation'](_0x53d986),_0x42211a=_0x53d986['hasAttribute']('rowspan')?_0x53d986['getAttribute']('rowspan')-0x1:0x0,_0x3f9441=_0x53d986['hasAttribute']('colspan')?_0x53d986['getAttribute']('colspan')-0x1:0x0;_0x334b1e=_0x3d85f6<_0x334b1e?_0x3d85f6:_0x334b1e,_0x365bdf=_0x3d85f6+_0x42211a>_0x365bdf?_0x3d85f6+_0x42211a:_0x365bdf,_0x4437f1=_0x515dc9<_0x4437f1?_0x515dc9:_0x4437f1,_0x57e3e5=_0x515dc9+_0x3f9441>_0x57e3e5?_0x515dc9+_0x3f9441:_0x57e3e5;}return{'minRow':_0x334b1e,'maxRow':_0x365bdf,'minColumn':_0x4437f1,'maxColumn':_0x57e3e5};}['_setupColumnsRowsFixing'](){const _0x588d90=this['editor'],_0x3ad150=_0x588d90['plugins']['get']('TrackChangesEditing'),_0x5d630b=_0x588d90['plugins']['get']('TableUtils');_0x588d90['model']['document']['on']('change:data',()=>{const _0x3b08e8=Array['from'](_0x588d90['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5b9177,data:_0x470d2f}of _0x3b08e8){const {group:_0x459eb5,id:_0x179b2f,subType:_0x21669d}=_0x3ad150['_splitMarkerName'](_0x5b9177);if('suggestion'!=_0x459eb5)continue;if(null!=_0x470d2f['oldRange'])continue;const _0x18459d=_0x3ad150['getSuggestion'](_0x179b2f);this['_tablePostFixingSubtypes']['includes'](_0x21669d)&&this['_tableSuggestions']['add'](_0x18459d);}},{'priority':'low'});const _0x50529a=(_0x53f433,_0x1cec39)=>{let _0x4e410a=!0x1;const _0x77807d=_0x1cec39['createRangeOn'](_0x53f433),_0x22516f=_0x53f433['findAncestor']('table'),_0x2af580=_0x5d630b['getCellLocation'](_0x53f433);for(const _0x2d79b8 of this['_tableSuggestions']){const _0x3c5ef6=_0x2d79b8['subType'],_0xc16096=_0x3c5ef6['startsWith']('tablePaste'),_0x547807=_0x3c5ef6['substr'](_0xc16096?0xa:0x5),_0x50365d=_0x547807['toLowerCase'](),_0x207304=_0x50365d['substr'](0x0,0x3)+'span',_0x590db4='min'+_0x547807,_0x3c3903='max'+_0x547807;if(!_0x2d79b8['isInContent'])continue;if(_0x22516f!=_0x2d79b8['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x2d79b8['isIntersectingWithRange'](_0x77807d))continue;const _0x22db1a=_0x53f433['hasAttribute'](_0x207304)?_0x53f433['getAttribute'](_0x207304)-0x1:0x0,_0x5090ae=this['_getSuggestionCoords'](_0x2d79b8),_0x38c221=_0x5090ae[_0x590db4],_0x100982=_0x5090ae[_0x3c3903];_0x38c221<=_0x2af580[_0x50365d]&&_0x2af580[_0x50365d]+_0x22db1a<=_0x100982&&(_0x2d79b8['addRange'](_0x77807d),_0x4e410a=!0x0);}return _0x4e410a;};_0x588d90['model']['document']['registerPostFixer'](_0x584115=>{let _0x141893=!0x1;for(const _0x3eb0e3 of _0x588d90['model']['document']['differ']['getChanges']())if('insert'==_0x3eb0e3['type']){if('tableRow'==_0x3eb0e3['name']){for(const _0x1aee9d of _0x3eb0e3['position']['nodeAfter']['getChildren']())_0x141893=_0x141893||_0x50529a(_0x1aee9d,_0x584115);}else'tableCell'==_0x3eb0e3['name']&&(_0x141893=_0x141893||_0x50529a(_0x3eb0e3['position']['nodeAfter'],_0x584115));}return _0x141893;});}['_getSuggestionCoords'](_0x5dface){return this['_getCoordsForCells'](_0x5dface['getRanges']()['map'](_0x11275d=>_0x11275d['start']['nodeAfter']));}}function Ne(_0x127684){return Array['from'](new Set(_0x127684)['values']());}class _t extends _0x1411ab{static get['requires'](){return[At];}['afterInit'](){const _0xa134cd=this['editor'],_0xf81ae4=_0xa134cd['model']['document']['selection'],_0x4d9286=_0xa134cd['locale'];if(!_0xa134cd['plugins']['has']('TableEditing'))return;const _0x12536c=_0xa134cd['plugins']['get']('TrackChangesEditing'),_0x3df7be=_0xa134cd['plugins']['get']('TableUtils'),_0x5ccc0e=_0xa134cd['plugins']['get'](At);_0x5ccc0e['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x12536c['enableCommand']('mergeTableCells',()=>{const _0x3cfe5f=_0x3df7be['getSelectionAffectedTableCells'](_0xa134cd['model']['document']['selection']);_0xa134cd['model']['change'](()=>{_0x12536c['markMultiRangeBlockFormat'](_0x3cfe5f,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0xa134cd['commands']['get']('mergeTableCells')['on']('execute',(_0x123dc8,_0x18e972)=>{_0xa134cd['commands']['get']('trackChanges')['value']&&(_0x18e972['length']>0x0&&_0x18e972[_0x18e972['length']-0x1]&&_0x18e972[_0x18e972['length']-0x1]['forceDefaultExecution']||_0x12536c['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x123dc8['stop']());},{'priority':'highest'});for(const _0x37ff35 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x314d50=_0xa134cd['commands']['get'](_0x37ff35);_0x12536c['enableCommand'](_0x37ff35,()=>{const _0x6e4d49=_0xa134cd['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x53c0dd=>_0x53c0dd['is']('element','tableCell')),_0x148087=_0x314d50['value'];_0xa134cd['model']['change'](()=>{_0x12536c['markMultiRangeBlockFormat']([_0x6e4d49,_0x148087],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x38c935 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x50b5f3=_0xa134cd['commands']['get'](_0x38c935);_0x12536c['enableCommand'](_0x38c935,()=>{const _0x17da7f=_0x3df7be['getSelectionAffectedTableCells'](_0xa134cd['model']['document']['selection'])[0x0],_0x2da803=_0x17da7f['findAncestor']('table'),{column:_0x1b0f28,row:_0x357899}=_0x3df7be['getCellLocation'](_0x17da7f);let _0x5ca020=[];if('horizontally'==_0x50b5f3['direction']){const _0x4c0842=_0x3df7be['createTableWalker'](_0x2da803,{'startRow':_0x357899,'endRow':_0x357899,'includeAllSlots':!0x0});_0x5ca020=Array['from'](_0x4c0842)['map'](_0x7d303a=>_0x7d303a['cell']);}else{const _0x5d15e9=_0x3df7be['createTableWalker'](_0x2da803,{'column':_0x1b0f28,'includeAllSlots':!0x0});_0x5ca020=Array['from'](_0x5d15e9)['map'](_0x182a4e=>_0x182a4e['cell']);}_0xa134cd['model']['change'](_0x579a6d=>{_0x12536c['markBlockFormat'](_0x579a6d['createRangeOn'](_0x17da7f),{'commandName':_0x38c935,'commandParams':[]},_0x5ca020,_0x38c935);});});}_0x12536c['descriptionFactory']['registerDescriptionCallback'](_0xbbc938=>{if('formatBlock'!=_0xbbc938['type']&&'formatInline'!=_0xbbc938['type'])return;const {data:_0x119384}=_0xbbc938;return _0x119384&&'mergeTableCells'==_0x119384['commandName']?{'type':'format','content':o(_0x4d9286,'*Merge\x20cells*')}:void 0x0;}),_0x12536c['descriptionFactory']['registerDescriptionCallback'](_0x4c5116=>{if('formatBlock'!=_0x4c5116['type']&&'formatInline'!=_0x4c5116['type'])return;const {data:_0xe93339}=_0x4c5116;return _0xe93339?'splitTableCellVertically'==_0xe93339['commandName']?{'type':'format','content':o(_0x4d9286,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0xe93339['commandName']?{'type':'format','content':o(_0x4d9286,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x16102b=_0x5ccc0e['_acceptFormatSuggestionCallbackFactory']();for(const _0x1c8ed5 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x12536c['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1c8ed5,'accept',_0x16102b);for(const _0xce8e44 of['splitTableCellVertically','splitTableCellHorizontally'])_0x12536c['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xce8e44,'accept',_0x16102b);_0x12536c['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x1b8c1f=>{_0xa134cd['model']['change'](_0x3d47a5=>{const _0x271a25=Array['from'](_0xf81ae4['getRanges']())['map'](_0x367a0e=>_0x26ed96['fromRange'](_0x367a0e));_0x3d47a5['setSelection'](_0x1b8c1f),_0xa134cd['commands']['get']('mergeTableCells')['refresh'](),_0xa134cd['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x44a52c=_0x271a25['filter'](_0x157af4=>'$graveyard'!=_0x157af4['root']['rootName']);_0x44a52c['length']>0x0&&_0x3d47a5['setSelection'](_0x44a52c);for(const _0x10c63c of _0x271a25)_0x10c63c['detach']();});});for(const _0x2ebf19 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x1dba9a=_0xa134cd['commands']['get'](_0x2ebf19);_0x1dba9a['on']('set:isEnabled',(_0x4d9e86,_0x21d192,_0x1f5dcc)=>{if(_0x1f5dcc){const _0x3cd208=_0xa134cd['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2fe726=>_0x2fe726['is']('element','tableCell'));this['_areMergableCells'](_0x1dba9a['value'],_0x3cd208)||(_0x4d9e86['return']=!0x1,_0x4d9e86['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x14a66c=this['editor']['commands']['get']('mergeTableCells'),_0x58929f=this['editor']['plugins']['get']('TableUtils');if(!_0x14a66c['isEnabled'])return!0x1;const _0x266878=_0x58929f['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x51df08 of _0x266878)for(const _0x53b3b2 of _0x266878)if(_0x51df08!=_0x53b3b2&&!this['_areMergableCells'](_0x51df08,_0x53b3b2))return!0x1;return!0x0;}['_areMergableCells'](_0xb1e7f4,_0x3b9e57){const _0x56c3fb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4acdf7=this['editor']['model']['createRangeOn'](_0xb1e7f4),_0x4defef=this['editor']['model']['createRangeOn'](_0x3b9e57),_0x555682=new Set(),_0xa75fd7=new Set();for(const _0x2192ec of _0x56c3fb['getSuggestions']())if(('insertion'==_0x2192ec['type']||'deletion'==_0x2192ec['type']||'mergeTableCells'==_0x2192ec['subType'])&&_0x2192ec['isInContent']){for(const _0x236f6c of _0x2192ec['getRanges']())_0x236f6c['containsRange'](_0x4acdf7,!0x0)&&_0x555682['add'](_0x2192ec['type']+':'+_0x2192ec['author']['id']),_0x236f6c['containsRange'](_0x4defef,!0x0)&&_0xa75fd7['add'](_0x2192ec['type']+':'+_0x2192ec['author']['id']);}if(_0x555682['size']!=_0xa75fd7['size'])return!0x1;for(const _0x15c086 of _0x555682)if(!_0xa75fd7['has'](_0x15c086))return!0x1;return!0x0;}}class Ct extends _0x1411ab{static get['requires'](){return[At];}['afterInit'](){const _0x455f8c=this['editor'];if(!_0x455f8c['plugins']['has']('TableEditing'))return;const _0x2cf083=_0x455f8c['locale'],_0x5049e3=_0x455f8c['plugins']['get']('TrackChangesEditing');_0x5049e3['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x5049e3['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x5049e3['registerBlockAttribute']('headingRows'),_0x5049e3['registerBlockAttribute']('headingColumns'),_0x5049e3['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x2cf083,'FORMAT_HEADER_ROW')),_0x5049e3['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x2cf083,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3285c9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x187b11=this['editor']['plugins']['get']('TableUtils'),_0x4374f0=this['editor']['plugins']['get'](At)['_acceptFormatSuggestionCallbackFactory']();function _0x2489f8({showActiveMarker:_0x3cbbb8=!0x0,setDataAttribute:_0x37c9a6=!0x0}={}){return(_0x22ecce,_0x509bda,_0x29aa27)=>{const {type:_0x1bdd53,id:_0x100e72}=_0x3285c9['_splitMarkerName'](_0x509bda['markerName']),_0x88f9bb=_0x3285c9['getSuggestion'](_0x100e72),_0x10e4ac=_0x88f9bb['data'];if('formatBlock'!=_0x88f9bb['type']||!_0x10e4ac||'setTableColumnHeader'!=_0x10e4ac['commandName'])return;if(_0x509bda['item'])return void _0x22ecce['stop']();if(!_0x29aa27['consumable']['consume'](_0x509bda['markerRange'],_0x22ecce['name']))return;const _0x5121ea=_0x509bda['markerRange']['start']['nodeAfter'],_0x2e60b2=_0x509bda['markerRange']['end']['nodeBefore'],_0x5e8256=_0x5121ea['parent']['parent'],{column:_0x911bd4}=_0x187b11['getCellLocation'](_0x5121ea),{column:_0x3f3599}=_0x187b11['getCellLocation'](_0x2e60b2);for(let _0x381715=_0x911bd4;_0x381715<=_0x3f3599;_0x381715++){const _0x72869a=_0x187b11['createTableWalker'](_0x5e8256,{'column':_0x381715,'includeAllSlots':!0x1});for(const _0xc891e1 of _0x72869a){const _0x236d75=_0xc891e1['cell'],_0x5e5737=_0x29aa27['mapper']['toViewElement'](_0x236d75);_0x29aa27['writer']['addClass']('ck-suggestion-marker-'+_0x1bdd53,_0x5e5737),_0x37c9a6&&_0x29aa27['writer']['setAttribute']('data-suggestion',_0x100e72,_0x5e5737),_0x29aa27['mapper']['bindElementToMarker'](_0x5e5737,_0x509bda['markerName']),_0x3cbbb8&&(_0x3285c9['activeMarkers']['includes'](_0x509bda['markerName'])?_0x29aa27['writer']['addClass']('ck-suggestion-marker--active',_0x5e5737):_0x29aa27['writer']['removeClass']('ck-suggestion-marker--active',_0x5e5737));}}};}_0x3285c9['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4374f0),_0x3285c9['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4374f0),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x2489f8(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x11f529,_0xeccc25,_0x5914a5)=>{_0x5914a5['options']['showSuggestionHighlights']&&_0x2489f8({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x11f529,_0xeccc25,_0x5914a5);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x762fcb,_0x1f78f0,_0x31cd97)=>{const {type:_0x116829,id:_0x1df2ce}=_0x3285c9['_splitMarkerName'](_0x1f78f0['markerName']),_0x4b2c8d=_0x3285c9['getSuggestion'](_0x1df2ce),_0x4d9122=_0x4b2c8d['data'];if('formatBlock'!=_0x4b2c8d['type']||!_0x4d9122||'setTableColumnHeader'!=_0x4d9122['commandName'])return;const _0x535f68=_0x31cd97['mapper']['markerNameToElements'](_0x1f78f0['markerName']);if(_0x535f68){for(const _0x559096 of _0x535f68)_0x31cd97['writer']['removeClass']('ck-suggestion-marker-'+_0x116829,_0x559096),_0x31cd97['writer']['removeClass']('ck-suggestion-marker--active',_0x559096),_0x31cd97['writer']['removeAttribute']('data-suggestion',_0x559096),_0x31cd97['mapper']['unbindElementFromMarkerName'](_0x559096,_0x1f78f0['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1ac702=this['editor'],_0x2e4145=_0x1ac702['locale'];function _0x42e5ba(_0x582821){return{'type':'format','content':o(_0x2e4145,'*Format:*\x20%0',_0x582821)};}_0x1ac702['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x211c7e=>{if('formatBlock'!=_0x211c7e['type'])return;const {data:_0x56fa72}=_0x211c7e;if(_0x56fa72){if('setTableRowHeader'==_0x56fa72['commandName']){const _0x3aae65=_0x56fa72['commandParams'][0x0]['forceValue'];return _0x42e5ba(o(_0x2e4145,_0x3aae65?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x56fa72['commandName']){const _0x292745=_0x56fa72['commandParams'][0x0]['forceValue'];return _0x42e5ba(o(_0x2e4145,_0x292745?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class vt extends _0x1411ab{['afterInit'](){const _0x2af1d3=this['editor'],_0x2747e7=_0x2af1d3['locale'],_0x3221a4=_0x2af1d3['plugins']['get']('TrackChangesEditing');function _0x5da469(_0x2d6543){return{'type':'format','content':''+o(_0x2747e7,'*Set\x20table\x20type:*\x20%0',_0x2d6543)};}_0x2af1d3['plugins']['has']('TableLayout')&&(_0x3221a4['enableCommand']('insertTableLayout'),_0x3221a4['enableDefaultAttributesIntegration']('tableType'),_0x3221a4['registerBlockAttribute']('tableType'),_0x3221a4['descriptionFactory']['registerElementLabel'](_0x13632c=>_0x13632c['is']('element','table')&&'layout'===_0x13632c['getAttribute']('tableType'),_0xa49d10=>o(_0x2747e7,'ELEMENT_LAYOUT_TABLE',_0xa49d10)),_0x3221a4['descriptionFactory']['registerDescriptionCallback'](_0x13d094=>{const {data:_0x23c01e}=_0x13d094;if(_0x23c01e&&'tableType'==_0x23c01e['key'])switch(_0x23c01e['newValue']){case'layout':return _0x5da469(o(_0x2747e7,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x5da469(o(_0x2747e7,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=/* #__PURE__ -- @preserve */
25
- Object['fromEntries'](Be['map'](_0x4944dd=>[_0x4944dd,null]));class Nt extends _0x1411ab{static get['requires'](){return[At];}['afterInit'](){const _0xe1d48d=this['editor'];if(!_0xe1d48d['plugins']['has']('TableClipboard'))return;const _0x41da00=_0xe1d48d['plugins']['get']('TrackChangesEditing'),_0x5692f5=_0xe1d48d['plugins']['get']('TableUtils'),_0x394293=_0xe1d48d['plugins']['get'](At),_0x535016=_0xe1d48d['plugins']['get']('TableClipboard'),_0x37ee16=_0xe1d48d['plugins']['get']('TableSelection'),_0x38297a=_0xe1d48d['plugins']['get'](_0x41c410);_0x394293['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0xe1d48d['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0xe1d48d['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x1f86cd=null,_0x5b222f=!0x1;_0x38297a['on']('contentInsertion',(_0x214b78,_0x1944e8)=>{_0x5b222f='paste'===_0x1944e8['method'];}),_0xe1d48d['model']['on']('insertContent',(_0x19d655,_0x38355c)=>{if(!_0x5b222f&&null===_0x37ee16['getSelectedTableCells']())return;const [_0x5859a5,_0x1f15e2]=_0x38355c,_0x4dbd6e=_0x38355c[_0x38355c['length']-0x1];_0x4dbd6e&&_0x4dbd6e['forceDefaultExecution']||_0x41da00['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x2acc24,_0x17a27c,_0x19c90a,_0x191b7d,_0x349ffb){if(_0x17a27c&&!_0x17a27c['is']('documentSelection'))return!0x1;const _0x5db7e7=_0x349ffb['getTableIfOnlyTableInContent'](_0x2acc24,_0x19c90a);if(!_0x5db7e7||!Ue(_0x5db7e7,void 0x0,_0x191b7d))return!0x1;const _0x56bd72=_0x191b7d['getSelectionAffectedTableCells'](_0x19c90a['document']['selection']);if(!_0x56bd72['length'])return!0x1;const _0x1c5d6b=_0x56bd72[0x0]['findAncestor']('table'),_0x2695f6=_0x191b7d['getRowIndexes'](_0x56bd72),_0x2d792f=_0x191b7d['getColumnIndexes'](_0x56bd72),_0x2731e7={'startRow':_0x2695f6['first'],'endRow':_0x2695f6['last'],'startColumn':_0x2d792f['first'],'endColumn':_0x2d792f['last']};return 0x1==_0x56bd72['length']&&(_0x2731e7['endRow']+=_0x191b7d['getRows'](_0x5db7e7)-0x1,_0x2731e7['endColumn']+=_0x191b7d['getColumns'](_0x5db7e7)-0x1),Ue(_0x1c5d6b,_0x2731e7,_0x191b7d);}(_0x5859a5,_0x1f15e2,_0xe1d48d['model'],_0x5692f5,_0x535016)&&(_0x19d655['stop'](),_0x1f86cd={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0xe1d48d['model']['change'](()=>{_0xe1d48d['model']['insertContent'](_0x38355c[0x0],_0x38355c[0x1],_0x38355c[0x2],{'forceDefaultExecution':!0x0});const _0x1c677b=_0x19e4b0(),{rowInsertionRanges:_0x2a2236,columnInsertionRanges:_0x1ca740,insertionRanges:_0x53d5f4,deletionRanges:_0x87a700,cells:_0x22030d}=_0x1f86cd;_0x2a2236['length']&&_0x41da00['markMultiRangeInsertion'](_0x2a2236,'tablePasteRow',{'tablePasteChainId':_0x1c677b}),_0x1ca740['length']&&_0x41da00['markMultiRangeInsertion'](_0x1ca740,'tablePasteColumn',{'tablePasteChainId':_0x1c677b}),_0x53d5f4['length']&&(_0x41da00['markMultiRangeInsertion'](_0x53d5f4,'tablePaste',{'tablePasteChainId':_0x1c677b,'skipNestingCheck':!0x0}),_0x53d5f4['forEach'](_0x2f0985=>_0x2f0985['detach']?.())),_0x87a700['length']&&(_0x41da00['markMultiRangeDeletion'](_0x87a700,'tablePaste',{'tablePasteChainId':_0x1c677b,'skipNestingCheck':!0x0}),_0x87a700['forEach'](_0x574f0e=>_0x574f0e['detach']?.()));const _0x3e5a62=_0x41da00['markMultiRangeBlockFormat'](_0x22030d['map'](({element:_0xe99be8})=>_0xe99be8),{'formatGroupId':_0x19e4b0()},[],'tablePasteCell',{'tablePasteChainId':_0x1c677b});if(_0x3e5a62){const _0x2ce7d5=_0x3e5a62['getMarkers'](),_0x1658a7=[];for(const {element:_0x213981,attributes:_0x4580dc}of _0x22030d){if(!_0x4580dc)continue;const _0xc6c496=_0xe1d48d['model']['createRangeOn'](_0x213981),_0xe52201=_0x2ce7d5['find'](_0x309067=>_0x309067['getRange']()['isEqual'](_0xc6c496));_0xe52201&&_0x1658a7['push']([_0xe52201['name'],_0x4580dc]);}_0x1658a7['length']&&_0x3e5a62['setAttribute']('markerAttributes',Object['fromEntries'](_0x1658a7));}_0x1f86cd=null;}));},{'priority':_0x3f7cdb['high']+0xa}),_0x38297a['on']('contentInsertion',()=>{_0x5b222f=!0x1;},{'priority':'lowest'}),_0xe1d48d['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x24cc53,_0x3a77ea)=>{const [_0x8203e7,_0x2527f5,,_0x54c379]=_0x3a77ea;if(!_0x1f86cd)return;_0x24cc53['stop']();const _0x2f6cd6=_0x8203e7['cell'],_0x39c741=_0x2527f5,_0x4b3982=Oe(_0x2f6cd6),_0x32864f=Oe(_0x39c741);_0x24cc53['return']=_0x2f6cd6;let _0xabe4be=null,_0x59b5a6=null;if(_0x32864f||_0x4b3982){if(_0x4b3982&&!_0x32864f){_0x54c379['remove'](_0x2f6cd6['getChild'](0x0));for(const _0x13205b of Array['from'](_0x39c741['getChildren']()))_0x54c379['insert'](_0x13205b,_0x2f6cd6,'end');const _0xd5c38a=_0x1f86cd['rowInsertionIndexes']['includes'](_0x8203e7['row']),_0x47f871=_0x1f86cd['columnInsertionIndexes']['includes'](_0x8203e7['column']);_0xd5c38a||_0x47f871||(_0xabe4be=_0x26ed96['fromRange'](_0x54c379['createRangeIn'](_0x2f6cd6)));}else _0x32864f&&!_0x4b3982&&(_0x59b5a6=_0x54c379['createRangeIn'](_0x2f6cd6));}else{const _0x12d879=_0x54c379['createElement']('tableCellSuggestion'),_0x52809c=_0x54c379['createElement']('tableCellSuggestion');_0x54c379['wrap'](_0x54c379['createRangeIn'](_0x2f6cd6),_0x52809c),_0x54c379['insert'](_0x12d879,_0x2f6cd6,0x0);for(const _0x371b40 of Array['from'](_0x39c741['getChildren']()))_0x54c379['insert'](_0x371b40,_0x12d879,'end');_0xabe4be=_0x26ed96['fromRange'](_0x54c379['createRangeOn'](_0x12d879)),_0x59b5a6=_0x26ed96['fromRange'](_0x54c379['createRangeOn'](_0x52809c));}const _0x4d5ca4=Array['from'](_0x39c741['getAttributes']())['filter'](([_0x2f6276])=>Be['includes'](_0x2f6276));_0x1f86cd['cells']['push']({'element':_0x2f6cd6,'attributes':_0x4d5ca4['length']?Object['fromEntries'](_0x4d5ca4):null}),_0xabe4be&&_0x1f86cd['insertionRanges']['push'](_0xabe4be),_0x59b5a6&&_0x1f86cd['deletionRanges']['push'](_0x59b5a6);},{'priority':'high'}),_0x5692f5['on']('insertColumns',(_0x102c67,_0x521db9)=>{const [_0x19514f,_0x5cbdd7={}]=_0x521db9;if(!_0x1f86cd)return;const _0x46a087=_0x5cbdd7['at']||0x0,_0x1fa56b=_0x5cbdd7['columns']||0x1;_0x1f86cd['columnInsertionIndexes']=new Array(_0x1fa56b)['fill'](_0x46a087)['map']((_0x4e1bd8,_0x24d847)=>_0x4e1bd8+_0x24d847);for(const {cell:_0x45ba5e}of _0x5692f5['createTableWalker'](_0x19514f,{'startColumn':_0x46a087,'endColumn':_0x46a087+_0x1fa56b-0x1}))_0x1f86cd['columnInsertionRanges']['push'](_0xe1d48d['model']['createRangeOn'](_0x45ba5e));},{'priority':'low'}),_0x5692f5['on']('insertRows',(_0xab0ea,_0x4fabe7)=>{const [_0x5d9740,_0xe0614f={}]=_0x4fabe7;if(!_0x1f86cd)return;const _0x3b4912=_0xe0614f['at']||0x0,_0x568f43=_0xe0614f['rows']||0x1;_0x1f86cd['rowInsertionIndexes']=new Array(_0x568f43)['fill'](_0x3b4912)['map']((_0x319dfe,_0x527d6c)=>_0x319dfe+_0x527d6c);for(const {cell:_0x5d4526}of _0x5692f5['createTableWalker'](_0x5d9740,{'startRow':_0x3b4912,'endRow':_0x3b4912+_0x568f43-0x1}))_0x1f86cd['rowInsertionRanges']['push'](_0xe1d48d['model']['createRangeOn'](_0x5d4526));},{'priority':'low'}),_0x41da00['descriptionFactory']['registerDescriptionCallback'](_0x311939=>{if(_0x311939['subType']&&_0x311939['subType']['startsWith']('tablePaste'))return _0x311939['previous']?{}:{'type':'insertion','content':o(_0xe1d48d['locale'],'*Replace\x20table\x20cells*')};});const _0x3ada70=()=>!0x1;for(const _0x3249a4 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x41da00['_suggestionFactory']['registerCustomCallback']('insertion',_0x3249a4,'join',_0x3ada70),_0x41da00['_suggestionFactory']['registerCustomCallback']('deletion',_0x3249a4,'join',_0x3ada70),_0x41da00['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3249a4,'join',_0x3ada70);_0x41da00['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x3ada70),_0x41da00['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0xa1eb94,_0x20837,_0x568e01)=>{const _0x556a86=_0xa1eb94['map'](_0x38d7b0=>_0x38d7b0['getContainedElement']())['filter'](_0x2ff672=>_0x2ff672),_0x57d8af=new Map(_0x556a86['map'](_0x3a8976=>[_0x3a8976,null]));if(_0x1f86cd){for(const {element:_0x374060,attributes:_0x46af6b}of _0x1f86cd['cells'])_0x46af6b&&_0x57d8af['set'](_0x374060,_0x46af6b);}else{if(_0x568e01&&_0x568e01['markerAttributes'])for(const [_0x43dc7b,_0x141b79]of Object['entries'](_0x568e01['markerAttributes'])){const _0x27b6ae=_0xe1d48d['model']['markers']['get'](_0x43dc7b),_0x202634=_0x27b6ae?_0x27b6ae['getRange']()['getContainedElement']():null;_0x202634&&_0x57d8af['set'](_0x202634,_0x141b79);}}_0xe1d48d['model']['change'](_0x5abb6d=>{for(const [_0x3906b5,_0x3d7f7e]of _0x57d8af)_0x5abb6d['setAttributes']({...xe,..._0x3d7f7e},_0x3906b5);});});const _0xe4cb7d=(_0x1d1911,_0xd25260)=>{_0x41da00['_suggestionFactory']['registerCustomCallback'](_0x1d1911,'tablePaste',_0xd25260,(_0x3c632c,_0x3f0d45,_0x3e9c32)=>{_0xe1d48d['model']['change'](_0x5ae016=>{const _0x5c667e=[];for(const _0x26ffff of _0x3c632c){const _0x3a0b4c=_0x26ffff['start']['nodeAfter'];_0x3a0b4c['is']('element','tableCellSuggestion')&&_0x5c667e['push'](_0x3a0b4c);}_0x41da00['_suggestionFactory']['getSuggestionCallback'](_0x1d1911,null,_0xd25260)(_0x3c632c,_0x3f0d45,_0x3e9c32);for(const _0x3601a8 of _0x5c667e)'$graveyard'!=_0x3601a8['root']['rootName']&&_0x5ae016['unwrap'](_0x3601a8);});});};_0xe4cb7d('insertion','accept'),_0xe4cb7d('insertion','discard'),_0xe4cb7d('deletion','accept'),_0xe4cb7d('deletion','discard'),_0x41da00['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x3bbd50=>{const _0x4f7ce9=_0x3bbd50['map'](_0x17097e=>_0x17097e['getContainedElement']()),_0x3af265=_0x4f7ce9[0x0]['findAncestor']('table'),{minRow:_0x2411f6,maxRow:_0x526e37}=_0x394293['_getCoordsForCells'](_0x4f7ce9);_0x5692f5['removeRows'](_0x3af265,{'at':_0x2411f6,'rows':_0x526e37-_0x2411f6+0x1});}),_0x41da00['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x409ac8=>{const _0x352c5d=_0x409ac8['map'](_0x195622=>_0x195622['getContainedElement']()),_0x3f1edd=_0x352c5d[0x0]['findAncestor']('table'),{minColumn:_0x59ba21,maxColumn:_0x8e724f}=_0x394293['_getCoordsForCells'](_0x352c5d);_0x5692f5['removeColumns'](_0x3f1edd,{'at':_0x59ba21,'columns':_0x8e724f-_0x59ba21+0x1});});const _0x52fdd3=(_0x345ad3,_0x31eae0)=>{if(!_0x31eae0['subType']||!_0x31eae0['subType']['startsWith']('tablePaste'))return;const _0x2a92a3=_0x31eae0['attributes']['tablePasteChainId'],_0x3b4406=_0x41da00['getSuggestions']()['filter'](_0x48e4d5=>_0x48e4d5['isInContent']&&_0x48e4d5['attributes']&&_0x48e4d5['attributes']['tablePasteChainId']==_0x2a92a3);_0x3b4406['length']&&_0x31eae0['getAllAdjacentSuggestions']()['length']!=_0x3b4406['length']&&_0x3b4406['reduce']((_0x533a58,_0x3c442e)=>(_0x533a58['next']=_0x3c442e,_0x3c442e['previous']=_0x533a58,_0x3c442e));};function _0x46c6b4(_0x27300b,_0x203010=!0x0){const {id:_0x2abdc2,authorId:_0x58a5cf}=_0x41da00['_splitMarkerName'](_0x27300b['markerName']),_0x1746af=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x185175=_0x41da00['activeMarkers']['includes'](_0x27300b['markerName']);return _0x185175&&_0x1746af['push']('ck-suggestion-marker--active'),{'classes':_0x1746af,'attributes':{'data-suggestion':_0x2abdc2,'data-author-id':_0x58a5cf},'priority':_0x185175&&_0x203010?0xbc2:0xbb8};}_0x41da00['on']('suggestionLoaded',_0x52fdd3,{'priority':'high'}),_0x41da00['on']('suggestionUnloaded',_0x52fdd3,{'priority':'high'}),_0xe1d48d['model']['document']['registerPostFixer'](()=>{let _0x2d4c7d=!0x1;const _0x40ded5=Array['from'](_0xe1d48d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x31beff,data:_0x29406c}of _0x40ded5){const {group:_0x4f7d3c,type:_0x3ab24b,id:_0x53b75f}=_0x41da00['_splitMarkerName'](_0x31beff);if('suggestion'!=_0x4f7d3c||'deletion'!=_0x3ab24b||_0x29406c['oldRange'])continue;if(!_0x41da00['hasSuggestion'](_0x53b75f))continue;const _0x54baee=_0x41da00['getSuggestion'](_0x53b75f)['getRanges'](),_0x51e6e2=_0xe1d48d['plugins']['get']('Users')['me'];for(const _0xc665cf of _0x41da00['getSuggestions']()){if(!_0xc665cf['isInContent']||_0xc665cf['author']!=_0x51e6e2)continue;if('formatBlock'!=_0xc665cf['type']||'tablePasteCell'!=_0xc665cf['subType'])continue;if(_0xc665cf['getRanges']()['every'](_0x552f49=>_0x54baee['some'](_0x2c2440=>_0x2c2440['containsRange'](_0x552f49,!0x0)))){for(const _0x4367e2 of _0xc665cf['getAllAdjacentSuggestions']())_0x4367e2['isInContent']&&(_0x4367e2['discard'](),_0x2d4c7d=!0x0);}}}return _0x2d4c7d;}),_0xe1d48d['model']['document']['registerPostFixer'](_0x29e3d1=>{const _0x48773f=_0xe1d48d['commands']['get']('redo');if(!_0x48773f||!_0x48773f['_createdBatches']['has'](_0x29e3d1['batch']))return!0x1;let _0x5428ad=!0x1;const _0x509d54=_0xe1d48d['plugins']['get']('Users')['me'],_0x2516eb=_0xe1d48d['model']['document']['differ']['getChanges'](),_0x48b811=Array['from'](_0xe1d48d['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x1af8e6,data:_0x1a0adb})=>{const {group:_0x513708,subType:_0x16db26,authorId:_0x5513ea}=_0x41da00['_splitMarkerName'](_0x1af8e6);return'suggestion'==_0x513708&&'tablePaste'==_0x16db26&&_0x5513ea==_0x509d54['id']&&!_0x1a0adb['oldRange'];});for(const _0x588ec0 of _0x2516eb){if('insert'!=_0x588ec0['type']||'tableCellSuggestion'!=_0x588ec0['name']||0x1!=_0x588ec0['length'])continue;const _0x4d36ae=_0x29e3d1['createRange'](_0x588ec0['position'],_0x588ec0['position']['getShiftedBy'](0x1));if(!_0x48b811['find'](({data:_0x5253a3})=>_0x5253a3['newRange']['isEqual'](_0x4d36ae))){for(const {name:_0x2dce2d,data:_0x5bf47c}of _0x48b811)if(_0x4d36ae['containsRange'](_0x5bf47c['newRange'])){_0x29e3d1['updateMarker'](_0x2dce2d,{'range':_0x4d36ae}),_0x5428ad=!0x0;break;}}}return _0x5428ad;}),_0xe1d48d['model']['document']['registerPostFixer'](_0x442fac=>{let _0xca3f62=!0x1;const _0xfd175a=_0xe1d48d['plugins']['get']('Users')['me'],_0x45019b=_0x41da00['getSuggestions']()['filter'](_0x2b884c=>_0x2b884c['isInContent']&&_0x2b884c['author']==_0xfd175a),_0x3ff383=new Set(),_0x5a653b=new Set();for(const _0x25754a of _0x45019b)if('tablePaste'==_0x25754a['subType'])for(const _0x26313d of _0x25754a['getMarkers']()){const _0x7b86aa=_0x26313d['getRange']()['getContainedElement']();if(_0x7b86aa){if(_0x7b86aa['is']('element','tableCellSuggestion')&&Oe(_0x7b86aa)){_0x25754a['removeMarker'](_0x26313d['name']),_0x3ff383['add'](_0x7b86aa),_0xca3f62=!0x0;const _0x2cbd21=_0x7b86aa['nextSibling'],_0x30eebb=_0x7b86aa['previousSibling'],_0x37fbb3=_0x2cbd21&&_0x2cbd21['is']('element','tableCellSuggestion'),_0x1f86af=_0x30eebb&&_0x30eebb['is']('element','tableCellSuggestion');_0x37fbb3&&!_0x3ff383['has'](_0x2cbd21)&&_0x5a653b['add'](_0x2cbd21),_0x1f86af&&!_0x3ff383['has'](_0x30eebb)&&_0x5a653b['add'](_0x30eebb);}else _0x7b86aa['is']('element','paragraph')&&_0x7b86aa['isEmpty']&&(_0x25754a['removeMarker'](_0x26313d['name']),_0xca3f62=!0x0);}}else{if('tablePasteCell'==_0x25754a['subType']){if(!_0x25754a['attributes']||!_0x25754a['attributes']['tablePasteChainId'])continue;const _0x3e1e59=_0x25754a['attributes']['markerAttributes'];if(_0x3e1e59&&Object['keys'](_0x3e1e59)['length'])continue;const _0x191f71=_0x25754a['attributes']['tablePasteChainId'];let _0x404d49=!0x0,_0x147d0e=!0x0;for(const _0x37dd98 of _0x45019b)if(_0x37dd98['subType']&&_0x37dd98['subType']['startsWith']('tablePaste')){if(!_0x37dd98['attributes']['tablePasteChainId']){_0x147d0e=!0x1;break;}if(_0x37dd98['id']!=_0x25754a['id']&&_0x37dd98['attributes']['tablePasteChainId']==_0x191f71){_0x404d49=!0x1;break;}}_0x147d0e&&_0x404d49&&(_0x25754a['removeMarkers'](),_0xca3f62=!0x0);}}for(const _0x8bdfa2 of _0x3ff383)_0x442fac['remove'](_0x8bdfa2);for(const _0x1e1764 of _0x5a653b)_0x442fac['unwrap'](_0x1e1764);return _0xca3f62;}),_0xe1d48d['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x3445=>_0x46c6b4(_0x3445),'converterPriority':'high'}),_0xe1d48d['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x215513,_0x41f560)=>_0x41f560['options']['showSuggestionHighlights']?_0x46c6b4(_0x215513,!0x1):null,'converterPriority':'high'});const _0x43706d=_0xe1d48d['editing']['view'];this['listenTo'](_0x43706d['document'],'clipboardOutput',(_0x2f1a35,_0x2a44d0)=>{const _0x5a209d=[];for(const _0x2e2167 of _0x43706d['createRangeIn'](_0x2a44d0['content'])['getItems']())_0x2e2167['is']('element','suggestion-td')&&_0x5a209d['push'](_0x2e2167);_0x43706d['change'](_0x354699=>{for(const _0x374509 of _0x5a209d)_0x354699['move'](_0x354699['createRangeIn'](_0x374509),_0x354699['createPositionBefore'](_0x374509)),_0x354699['remove'](_0x374509);});});}}function Oe(_0x23a968){if(_0x23a968['isEmpty'])return!0x0;const _0x5c0b75=_0x23a968['getChild'](0x0);return _0x5c0b75['is']('element','paragraph')&&_0x5c0b75['isEmpty'];}function Ue(_0x5417fc,_0x1ffa4b={},_0x27ee72){for(const {isAnchor:_0x2b8f75,cellHeight:_0x480cc0,cellWidth:_0x1d69b9}of _0x27ee72['createTableWalker'](_0x5417fc,{'includeAllSlots':!0x0,..._0x1ffa4b}))if(!_0x2b8f75||0x1!=_0x480cc0||0x1!=_0x1d69b9)return!0x1;return!0x0;}class Dt extends _0x1411ab{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x2cb22d=this['editor']['plugins']['get']('TrackChangesEditing');_0x2cb22d['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x2cb22d['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x2cb22d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2cb22d['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x2cb22d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x2cb22d['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x3fec53,_0x463382){const _0x5ed19d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4833fd=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x9ac6c=_0x463382['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x515bb2=_0x4833fd['getColumnGroupElement'](_0x9ac6c);let _0x9a867b=_0x515bb2?_0x4833fd['getTableColumnsWidths'](_0x515bb2):null,_0x20839c=_0x9ac6c['getAttribute']('tableWidth')||null;const _0x46c0aa=_0x463382['tableWidth']||_0x20839c,_0x3f513f=_0x463382['columnWidths']||_0x9a867b,_0x851309=this['editor']['plugins']['get']('Users')['me'];for(const _0x1bc110 of _0x5ed19d['getSuggestions']()){const _0xa1e5bd=_0x1bc110['getContainedElement']();if('resizeTable'===_0x1bc110['subType']&&_0xa1e5bd===_0x9ac6c){_0x1bc110['author']!==_0x851309&&_0x1bc110['discard']();const _0x31b110=_0x1bc110['data']['commandParams'];_0x20839c=_0x31b110[0x0]['tableWidth'],_0x9a867b=_0x31b110[0x0]['columnWidths'];break;}}_0x3fec53({'table':_0x9ac6c,'tableWidth':_0x46c0aa,'columnWidths':_0x3f513f}),_0x5ed19d['markBlockFormat'](_0x9ac6c,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x20839c,'columnWidths':_0x9a867b}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x9f5ab){if('formatBlock'!=_0x9f5ab['type']&&'formatInline'!=_0x9f5ab['type'])return;const {data:_0x5cb08e}=_0x9f5ab;if(_0x5cb08e&&'resizeTable'===_0x5cb08e['formatGroupId']){const _0x214c99='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x214c99)};}}}class $t extends _0x1411ab{['afterInit'](){const _0x4d5082=this['editor'];_0x4d5082['plugins']['has']('Template')&&_0x4d5082['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x1411ab{['afterInit'](){const _0x393310=this['editor'];if(!_0x393310['commands']['get']('insertTableOfContents'))return;_0x393310['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x587fcd=_0x393310['plugins']['get']('TrackChangesEditing'),_0x2c9cb8=_0x393310['locale'];_0x587fcd['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1b0365=>o(_0x2c9cb8,'ELEMENT_TABLE_OF_CONTENTS',_0x1b0365));}}class Bt extends _0x1411ab{['afterInit'](){const _0x57c732=this['editor'];if(!_0x57c732['plugins']['has']('Title'))return;const _0x51aea5=_0x57c732['plugins']['get']('TrackChangesEditing');_0x51aea5['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x57c732['locale'],'ELEMENT_TITLE')),_0x57c732['model']['document']['registerPostFixer'](_0x1fdcb6=>{let _0x4ddd83=!0x1;const _0x35b724=Array['from'](_0x57c732['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5dc41c,data:_0x5269c4}of _0x35b724){const {group:_0x4f3896}=_0x51aea5['_splitMarkerName'](_0x5dc41c);if('suggestion'!==_0x4f3896||!_0x5269c4['newRange'])continue;const _0x5276d3=_0x5269c4['newRange'],_0x4670aa=_0x5276d3['end']['nodeBefore'];if(!_0x4670aa||!_0x4670aa['is']('element','title-content'))continue;if(!_0x5276d3['start']['isTouching'](_0x5276d3['end']))continue;const _0x14bfbd=_0x57c732['model']['schema']['getNearestSelectionRange'](_0x5276d3['end'],'forward');if(_0x14bfbd&&_0x14bfbd['isCollapsed']){const _0x303ddf=_0x1fdcb6['createRange'](_0x5276d3['start'],_0x14bfbd['start']);_0x303ddf['isEqual'](_0x5276d3)||(_0x1fdcb6['updateMarker'](_0x5dc41c,{'range':_0x303ddf}),_0x4ddd83=!0x0);}_0x4ddd83||(_0x1fdcb6['removeMarker'](_0x5dc41c),_0x4ddd83=!0x0);}return _0x4ddd83;});}}class Tt extends _0x1411ab{['afterInit'](){const _0x2694c2=this['editor'],_0x27c6e9=_0x2694c2['plugins']['get']('TrackChangesEditing');_0x2694c2['plugins']['has']('Uploadcare')&&(_0x27c6e9['enableCommand']('uploadcare'),_0x2694c2['plugins']['has']('UploadcareImageEdit')&&(_0x27c6e9['enableCommand']('uploadcareImageEdit'),_0x27c6e9['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x27c6e9['registerBlockAttribute']('uploadcareImageId'),_0x27c6e9['descriptionFactory']['registerDescriptionCallback'](_0x379320=>{if('attribute'!=_0x379320['type'])return;const {data:_0x4f1fa9}=_0x379320;return _0x4f1fa9&&'uploadcareImageId'==_0x4f1fa9['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x1411ab{['afterInit'](){const _0x321f01=this['editor'],_0x4e8231=_0x321f01['plugins']['get']('TrackChangesEditing');_0x321f01['plugins']['has']('UndoEditing')&&(_0x4e8231['enableCommand']('undo'),_0x4e8231['enableCommand']('redo'));}}class Ot extends _0x1411ab{static get['requires'](){return[At];}['afterInit'](){const _0x1296fc=this['editor'];if(!_0x1296fc['plugins']['has']('TableCaptionEditing'))return;_0x1296fc['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0x1411ab{['tableProperties'];['tableCellProperties'];constructor(_0x568ccb){super(_0x568ccb),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 _0xec6aa9=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x2504ba of this['tableProperties'])_0xec6aa9['enableCommand'](_0x2504ba,(_0xc05c0c,_0xfccb8f)=>{const _0x1bcbb1=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x2504ba,[_0x1bcbb1],this['tableProperties'],'tableProperties',_0xc05c0c,_0xfccb8f);});_0xec6aa9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0xec6aa9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xec6aa9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x14b03f,_0x49669f)=>this['handleDiscardAction'](this['tableProperties'],_0x14b03f,_0x49669f)),_0xec6aa9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x5468e8 of this['tableCellProperties'])_0xec6aa9['enableCommand'](_0x5468e8,(_0x361bb7,_0x528f5b)=>{const _0x36e274=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x5468e8,_0x36e274,this['tableCellProperties'],'tableCellProperties',_0x361bb7,_0x528f5b);});_0xec6aa9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0xec6aa9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xec6aa9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x1d69b1,_0x5c2436)=>this['handleDiscardAction'](this['tableCellProperties'],_0x1d69b1,_0x5c2436)),_0xec6aa9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0xec6aa9['descriptionFactory']['registerDescriptionCallback'](_0x11f659=>this['handleSuggestionDescription'](_0x11f659)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x3d7520,_0xe6b8eb,_0x553de9,_0x14ccd0,_0x3ec06b,_0x525bd6){const _0x177b0a=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x525bd6['batch'],()=>{for(const _0x5cdbec of _0xe6b8eb){if(this['_getSuggestion'](_0x5cdbec,_0x14ccd0))_0x3ec06b(_0x525bd6);else{const _0x5eb1ac={};for(const _0x3f9b08 of _0x553de9){const _0x3ec46a=_0x5cdbec['getAttribute'](_0x3f9b08);void 0x0!==_0x3ec46a&&(_0x5eb1ac[_0x3f9b08]=_0x3ec46a);}_0x3ec06b(_0x525bd6),_0x177b0a['markBlockFormat'](_0x5cdbec,{'commandParams':[_0x5eb1ac]},[],_0x14ccd0);}}});}['handleDiscardAction'](_0x41dec3,_0x5a5c8d,_0x495778){const _0x21e1a1=_0x5a5c8d[0x0]['start']['nodeAfter'],_0x26b085=_0x495778['commandParams'][0x0];this['editor']['model']['change'](_0x373d74=>{for(const _0x56c330 of _0x41dec3)void 0x0!==_0x26b085[_0x56c330]?_0x373d74['setAttribute'](_0x56c330,_0x26b085[_0x56c330],_0x21e1a1):_0x373d74['removeAttribute'](_0x56c330,_0x21e1a1);});}['handleSuggestionDescription'](_0x3f820f){if(_0x3f820f['data'])switch(_0x3f820f['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'](_0x1f9d6e,_0x308ac4){const _0x1404a4=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x47bc4c of _0x1404a4['getSuggestions']({'skipNotAttached':!0x0})){const _0x347c7a=_0x47bc4c['getContainedElement']();if(_0x47bc4c['subType']===_0x308ac4&&_0x347c7a===_0x1f9d6e)return _0x47bc4c;}return null;}['_registerTablePropertiesAttributes'](){const _0x24f9db=this['editor']['plugins']['get']('TrackChangesEditing'),_0x41b788=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x2a816f of _0x41b788){const _0x266b01=_0x2a816f['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x24f9db['registerBlockAttribute'](_0x2a816f),_0x24f9db['descriptionFactory']['registerAttributeLabel'](_0x2a816f,o(this['editor']['locale'],'FORMAT_'+_0x266b01));}}}class Rt extends _0x1411ab{['afterInit'](){const _0x53c86e=this['editor'];if(!_0x53c86e['plugins']['has']('LineHeight'))return;const _0x377b8f=_0x53c86e['plugins']['get']('TrackChangesEditing'),_0x568746=_0x53c86e['locale'];_0x377b8f['enableDefaultAttributesIntegration']('lineHeight'),_0x377b8f['registerBlockAttribute']('lineHeight'),_0x377b8f['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x568746,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x1411ab{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x2239fd,_0x30cc0e,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(_0x2ea07d){super(_0x2ea07d),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x265796,_0x1c5a31,_0x2bcf02,_0x59fe3e)=>{this['_model']['change'](()=>{for(const _0x208e79 of[..._0x59fe3e,..._0x2bcf02])this['_model']['markers']['has'](_0x208e79)&&_0x2ea07d['editing']['reconvertMarker'](_0x208e79);});}),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']=_0x2ea07d['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(),_0x2ea07d['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x2ea07d['config']['get']('trackChanges.trackFormatChanges'),_0x2ea07d['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x2ea07d['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new N(_0x2ea07d,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x79ddcd=this['editor'],_0x455834=(_0x2d5330,_0x478ba9)=>{if('attribute'!=_0x2d5330)return'ck-suggestion-marker-'+_0x2d5330;const _0x5d5340=_0x478ba9['split']('|')[0x0];return this['_isBlockAttribute'](_0x5d5340)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x79ddcd['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x17f304=>{const {id:_0x5e011a,authorId:_0x4a4ca6,type:_0x22ff02,subType:_0x2aeca9}=this['_splitMarkerName'](_0x17f304['markerName']),_0x3fb47a=['ck-suggestion-marker',_0x455834(_0x22ff02,_0x2aeca9)];let _0x365f45=0xbb8;return this['activeMarkers']['includes'](_0x17f304['markerName'])&&(_0x3fb47a['push']('ck-suggestion-marker--active'),_0x365f45=0xbc2),'deletion'==_0x22ff02&&(_0x365f45+=0x5),{'classes':_0x3fb47a,'attributes':{'data-suggestion':_0x5e011a,'data-author-id':_0x4a4ca6},'priority':_0x365f45};}}),_0x79ddcd['conversion']['for']('dataDowncast')['add'](_0xed38a8=>{_0xed38a8['on']('addMarker:suggestion',(_0x54b43c,_0x56cb5c,_0x19e3f2)=>{if(!_0x19e3f2['options']['showSuggestionHighlights'])return;const _0x2d227e=_0x56cb5c['item'];if(!_0x2d227e)return;const _0x22a510=_0x19e3f2['mapper']['toViewElement'](_0x2d227e);_0x79ddcd['model']['schema']['isObject'](_0x2d227e)&&_0x22a510&&!_0x22a510['getCustomProperty']('widget')&&_0x22a510['is']('containerElement')&&_0x1c3e12(_0x22a510,_0x19e3f2['writer']);},{'priority':'high'});}),_0x79ddcd['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x599c94,_0x16b122)=>{if(!_0x16b122['options']['showSuggestionHighlights'])return null;const {id:_0x5128d3,authorId:_0x3f7f17,type:_0x9bf2ea,subType:_0x390994}=this['_splitMarkerName'](_0x599c94['markerName']);return{'classes':['ck-suggestion-marker',_0x455834(_0x9bf2ea,_0x390994)],'priority':0xbb8,'attributes':{'data-suggestion':_0x5128d3,'data-author-id':_0x3f7f17}};}});const _0x4a336c=({showActiveMarkers:_0x485eb2=!0x0,isAttributeSuggestion:_0x4c1978=!0x1}={})=>(_0x49546d,_0x5ce283,_0x2bffa8)=>{if(!_0x5ce283['item'])return;const {id:_0x13424e,authorId:_0x56857b}=this['_splitMarkerName'](_0x5ce283['markerName']);if(_0x4c1978){const _0x8ada1b=this['_suggestions']['get'](_0x13424e),_0x3c595e=this['_getAttributeKey'](_0x8ada1b);if(!this['_isBlockAttribute'](_0x3c595e))return;}if(_0x5ce283['item']['is']('selection'))return void _0x2bffa8['consumable']['consume'](_0x5ce283['item'],_0x49546d['name']);const _0x666ac5=_0x2bffa8['mapper']['toViewElement'](_0x5ce283['item']);if(_0x5ce283['item']['is']('element')&&_0x79ddcd['model']['schema']['isBlock'](_0x5ce283['item'])&&!_0x666ac5['getCustomProperty']('addHighlight')){_0x2bffa8['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x666ac5),_0x2bffa8['writer']['setAttribute']('data-suggestion',_0x13424e,_0x666ac5),_0x2bffa8['writer']['setAttribute']('data-author-id',_0x56857b,_0x666ac5),_0x2bffa8['mapper']['bindElementToMarker'](_0x666ac5,_0x5ce283['markerName']),_0x485eb2&&(this['activeMarkers']['includes'](_0x5ce283['markerName'])?_0x2bffa8['writer']['addClass']('ck-suggestion-marker--active',_0x666ac5):_0x2bffa8['writer']['removeClass']('ck-suggestion-marker--active',_0x666ac5));for(const _0x53d52a of _0x79ddcd['model']['createRangeIn'](_0x5ce283['item'])['getItems']())_0x2bffa8['consumable']['consume'](_0x53d52a,_0x49546d['name']);_0x2bffa8['consumable']['consume'](_0x5ce283['item'],_0x49546d['name']);}};_0x79ddcd['conversion']['for']('dataDowncast')['add'](_0x17c170=>{_0x17c170['on']('addMarker:suggestion:formatBlock',(_0x5065e2,_0x40e1c6,_0x33d2db)=>{_0x33d2db['options']['showSuggestionHighlights']&&_0x4a336c({'showActiveMarkers':!0x1})(_0x5065e2,_0x40e1c6,_0x33d2db);},{'priority':'highest'});}),_0x79ddcd['conversion']['for']('dataDowncast')['add'](_0x39db15=>{_0x39db15['on']('addMarker:suggestion:attribute',(_0x24510d,_0x107a2f,_0x7a6457)=>{_0x7a6457['options']['showSuggestionHighlights']&&_0x4a336c({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x24510d,_0x107a2f,_0x7a6457);},{'priority':'highest'});}),_0x79ddcd['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x4d1bf4,_0x3b0bfa)=>{if(_0x3b0bfa['options']['showSuggestionHighlights']){const {id:_0x2ac67d,authorId:_0x3d5531}=this['_splitMarkerName'](_0x4d1bf4);return _0x4d1bf4['includes'](':split')||_0x4d1bf4['includes'](':merge')?{'group':'suggestion','name':_0x4d1bf4['substr'](0xb),'attributes':{'data-suggestion':_0x2ac67d,'data-author-id':_0x3d5531}}:null;}return{'group':'suggestion','name':_0x4d1bf4['substr'](0xb)};}}),_0x79ddcd['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x117e4d,{writer:_0x5d8eee})=>{let _0x4cbc6a='suggestion:'+_0x117e4d['getAttribute']('suggestion-type')+':'+_0x117e4d['getAttribute']('id');return _0x117e4d['getAttribute']('marker-count')&&(_0x4cbc6a+=':'+_0x117e4d['getAttribute']('marker-count')),_0x5d8eee['createElement']('$marker',{'data-name':_0x4cbc6a});}}),_0x79ddcd['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x79ddcd['conversion']['for']('editingDowncast')['add'](_0x22b3ba=>{_0x22b3ba['on']('addMarker:suggestion:formatBlock',_0x4a336c(),{'priority':'high'});}),_0x79ddcd['conversion']['for']('editingDowncast')['add'](_0x19adbd=>{_0x19adbd['on']('addMarker:suggestion:attribute',_0x4a336c({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x79ddcd['conversion']['for']('editingDowncast')['add'](_0x79232=>{_0x79232['on']('removeMarker:suggestion:formatBlock',(_0x396f47,_0x270738,_0x13c8af)=>{const _0xa4e048=_0x13c8af['mapper']['markerNameToElements'](_0x270738['markerName']);if(_0xa4e048){for(const _0x239d57 of _0xa4e048)_0x239d57['getCustomProperty']('addHighlight')||(_0x13c8af['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x239d57),_0x13c8af['writer']['removeAttribute']('data-suggestion',_0x239d57),_0x13c8af['writer']['removeAttribute']('data-author-id',_0x239d57),_0x13c8af['mapper']['unbindElementFromMarkerName'](_0x239d57,_0x270738['markerName']));}},{'priority':'high'});}),_0x79ddcd['conversion']['for']('editingDowncast')['add'](_0x359090=>{_0x359090['on']('removeMarker:suggestion:attribute',(_0x19bd6a,_0x4f38b9,_0x53d5ff)=>{const _0x3c1ab8=_0x53d5ff['mapper']['markerNameToElements'](_0x4f38b9['markerName']);if(!_0x3c1ab8)return;const {id:_0x8f00e9}=this['_splitMarkerName'](_0x4f38b9['markerName']),_0x1694b2=this['_suggestions']['get'](_0x8f00e9),_0x4f02a2=this['_getAttributeKey'](_0x1694b2);if(this['_isBlockAttribute'](_0x4f02a2)){for(const _0x3baa9d of _0x3c1ab8)_0x3baa9d['getCustomProperty']('addHighlight')||(_0x53d5ff['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3baa9d),_0x53d5ff['writer']['removeAttribute']('data-suggestion',_0x3baa9d),_0x53d5ff['writer']['removeAttribute']('data-author-id',_0x3baa9d),_0x53d5ff['mapper']['unbindElementFromMarkerName'](_0x3baa9d,_0x4f38b9['markerName']));}},{'priority':'high'});}),_0x79ddcd['model']['document']['registerPostFixer'](_0x37a462=>{let _0x224264=!0x1;const _0x7d505b=Array['from'](_0x79ddcd['model']['document']['differ']['getChangedMarkers']()),_0x37d79d=new Set();for(const {name:_0x422290,data:_0x217604}of _0x7d505b){const {group:_0x8d459d,type:_0x3229b9,subType:_0x52da7b,id:_0x1f87cb}=this['_splitMarkerName'](_0x422290);if('suggestion'!==_0x8d459d)continue;const _0x24b7a9=_0x52da7b?'suggestion:'+_0x3229b9+':'+_0x52da7b+':'+_0x1f87cb:'suggestion:'+_0x3229b9+':'+_0x1f87cb,_0x421d3f=_0x79ddcd['model']['markers']['getMarkersGroup'](_0x24b7a9),_0x4eba4c=_0x79ddcd['model']['markers']['get'](_0x422290),_0x337e36=this['_suggestions']['get'](_0x1f87cb);if(null!=_0x217604['newRange']){'formatInline'==_0x3229b9&&(_0x224264=_0x224264||Gt(_0x217604['newRange'],_0x422290,_0x37a462,_0x79ddcd['model']['schema']));const _0x27e68f='attribute'==_0x3229b9&&this['_isBlockAttribute'](_0x52da7b['split']('|')[0x0]),_0xc53988='attribute'==_0x3229b9&&this['_isInlineAttribute'](_0x52da7b['split']('|')[0x0]);if(_0x217604['newRange']['isCollapsed']||'$graveyard'==_0x217604['newRange']['root']['rootName']||'formatBlock'==_0x3229b9&&!Jt(_0x217604['newRange'])||_0x27e68f&&!Jt(_0x217604['newRange'])||_0xc53988&&Kt(_0x217604['newRange'])||'deletion'==_0x3229b9&&Kt(_0x217604['newRange'])||_0x4eba4c&&Ht(_0x4eba4c,_0x421d3f))_0x37a462['removeMarker'](_0x422290),_0x224264=!0x0;else{if(!_0x337e36||!_0x337e36['isInContent'])continue;if(_0x217604['newRange']&&_0x217604['oldRange']&&_0x217604['newRange']['isEqual'](_0x217604['oldRange']))continue;_0x37d79d['add'](_0x337e36);}}}return _0x37d79d['size']>0x0&&(_0x224264=!!this['_joinWithAdjacentSuggestions'](_0x37d79d)||_0x224264),_0x224264;}),_0x79ddcd['model']['document']['registerPostFixer'](_0x548457=>{let _0x385598=!0x1;for(const _0x2ae003 of _0x79ddcd['model']['document']['differ']['getChanges']())if('insert'==_0x2ae003['type'])for(const _0x4439c7 of this['_suggestions']['values']()){if(_0x4439c7['isMultiRange']||!_0x4439c7['isInContent'])continue;const _0x5c88a1='formatBlock'==_0x4439c7['type'],_0x44490a=this['_getAttributeKey'](_0x4439c7),_0x5bcadb=_0x44490a&&this['_isBlockAttribute'](_0x44490a);if(!_0x5c88a1&&!_0x5bcadb)continue;const _0x3e18ab=_0x4439c7['getFirstRange']();if(_0x3e18ab['start']['parent']!=_0x3e18ab['end']['parent']&&!_0x3e18ab['end']['isAtEnd']){const _0x1ff747=_0x79ddcd['model']['createPositionAt'](_0x3e18ab['start']['nodeAfter'],'end'),_0x416ed6=_0x79ddcd['model']['createRange'](_0x3e18ab['start'],_0x1ff747);_0x548457['updateMarker'](_0x4439c7['getFirstMarker'](),{'range':_0x416ed6}),_0x385598=!0x0;}}return _0x385598;}),_0x79ddcd['model']['document']['registerPostFixer'](_0x4e96d8=>this['_processAttributeChanges'](_0x4e96d8)),_0x79ddcd['model']['document']['registerPostFixer'](_0x4ceb14=>!_0x4ceb14['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x4ceb14)),_0x79ddcd['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x79ddcd['model']['document']['on']('change:data',(_0x3c27d9,_0x2d5023)=>{if(!_0x2d5023['isLocal']||_0x2d5023['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x3708a5=_0x79ddcd['model']['document']['differ']['getChanges']();if(0x0==_0x3708a5['length'])return;const _0x4f10bd=[],_0x2a772e=_0x3708a5['filter'](_0x170fc5=>'attribute'==_0x170fc5['type']),_0x27b750=_0x3708a5['filter'](_0x93dc91=>'insert'==_0x93dc91['type']&&'$text'!=_0x93dc91['name']);for(const _0x3148bf of _0x2a772e)this['_isRegisteredAttribute'](_0x3148bf['attributeKey'])&&_0x4f10bd['push']({'key':_0x3148bf['attributeKey'],'newValue':_0x3148bf['attributeNewValue'],'oldValue':_0x3148bf['attributeOldValue'],'range':qt(_0x3148bf['range'],_0x79ddcd['model'])});for(const _0x30148b of _0x27b750){if('rename'!=_0x30148b['action']&&'refresh'!=_0x30148b['action'])continue;const _0x50886d=zt(_0x30148b['position']['nodeAfter'],_0x79ddcd['model']),_0x23e7d2=_0x30148b['before'];'rename'==_0x30148b['action']&&_0x4f10bd['push']({'key':m,'newValue':_0x30148b['name'],'oldValue':_0x23e7d2['name'],'range':_0x50886d});for(const [_0x4e8ec8,_0x447c8e]of _0x23e7d2['attributes']){if(!this['_isRegisteredAttribute'](_0x4e8ec8))continue;const _0x3f5860=_0x30148b['attributes']['get'](_0x4e8ec8);_0x447c8e!==_0x3f5860&&_0x4f10bd['push']({'key':_0x4e8ec8,'newValue':_0x3f5860,'oldValue':_0x447c8e,'range':_0x50886d});}for(const [_0x3bccb5,_0x2134f2]of _0x30148b['attributes'])this['_isRegisteredAttribute'](_0x3bccb5)&&(_0x23e7d2['attributes']['has'](_0x3bccb5)||_0x4f10bd['push']({'key':_0x3bccb5,'newValue':_0x2134f2,'oldValue':null,'range':_0x50886d}));}0x0!=_0x4f10bd['length']&&_0x79ddcd['model']['enqueueChange'](_0x2d5023,_0x27cd35=>{const _0x5cb762=_0x19e4b0();for(const {range:_0x1b2f3d,key:_0x4cf53b,oldValue:_0x379eb9,newValue:_0x52e4eb}of _0x4f10bd)this['markAttributeChange'](_0x1b2f3d,_0x4cf53b,_0x379eb9,_0x52e4eb,{'groupId':_0x5cb762});this['_reduceExistingSuggestions'](_0x27cd35,_0x4f10bd);});},{'priority':'lowest'}),_0x79ddcd['model']['markers']['on']('update:suggestion',(_0x1facf4,_0x758df9,_0x2173a2)=>{if(null==_0x2173a2){const {id:_0x2b959a}=this['_splitMarkerName'](_0x758df9['name']),_0x4f02a4=this['_suggestions']['get'](_0x2b959a);_0x4f02a4&&_0x4f02a4['addMarkerName'](_0x758df9['name']);}}),_0x79ddcd['model']['document']['on']('change:data',()=>{const _0x2135fe=Array['from'](_0x79ddcd['model']['document']['differ']['getChangedMarkers']())['filter'](_0x24a192=>'suggestion'===this['_splitMarkerName'](_0x24a192['name'])['group']);if(0x0===_0x2135fe['length'])return;_0x2135fe['sort']((_0x12b304,_0x41503b)=>{const _0x4a8e88=_0x12b304['data']['oldRange'],_0x1ccbea=_0x41503b['data']['oldRange'];return null===_0x4a8e88&&null===_0x1ccbea?0x0:null===_0x4a8e88&&null!==_0x1ccbea?-0x1:null!==_0x4a8e88&&null===_0x1ccbea?0x1:_0x4a8e88['start']['isBefore'](_0x1ccbea['start'])?-0x1:0x1;});const _0x53bad5=new Set(),_0x129fe6=new Set();for(const {name:_0x4c5aea,data:_0x513e01}of _0x2135fe){const {id:_0x52e5a1}=this['_splitMarkerName'](_0x4c5aea);if(null===_0x513e01['oldRange']){const _0x49cdc0=this['_handleNewSuggestionMarker'](_0x4c5aea);_0x129fe6['add'](_0x49cdc0);}else{const _0x1f4a07=this['_suggestions']['get'](_0x52e5a1);null!==_0x513e01['newRange']||_0x1f4a07['isInContent']?(_0x53bad5['add'](_0x1f4a07['head']),_0x129fe6['add'](_0x1f4a07)):this['_removeSuggestion'](_0x1f4a07);}}_0x129fe6['size']>0x0&&this['_refreshSuggestionsChain'](_0x129fe6);for(const _0x5b2575 of _0x53bad5)this['fire']('suggestionChanged',_0x5b2575);}),_0x79ddcd['model']['on']('applyOperation',(_0x5cb4d4,_0x1a769e)=>{const _0x4deed1=_0x1a769e[0x0];if(!this['_suggestions']['size'])return;if(!_0x4deed1['isDocumentOperation'])return;if(_0x4deed1['batch']['isUndo']||!_0x4deed1['batch']['isLocal'])return;let _0x34a022,_0x3e6409;switch(_0x4deed1['type']){case'insert':_0x34a022=_0x79ddcd['model']['createPositionAt'](_0x4deed1['position']),_0x3e6409=_0x34a022['getShiftedBy'](_0x4deed1['howMany']);break;case'split':_0x34a022=_0x79ddcd['model']['createPositionAt'](_0x4deed1['splitPosition']),_0x3e6409=_0x79ddcd['model']['createPositionAt'](_0x4deed1['moveTargetPosition']);break;case'move':_0x34a022=_0x79ddcd['model']['createPositionAt'](_0x4deed1['targetPosition']),_0x3e6409=_0x34a022['getShiftedBy'](_0x4deed1['howMany']);break;default:return;}const _0x3bbf8b=_0x79ddcd['model']['createRange'](_0x34a022,_0x3e6409);_0x79ddcd['model']['change'](()=>{for(const {suggestion:_0x4b3d9d,meta:_0xe5eb7c}of this['_findSuggestions'](_0x3bbf8b)){if(_0x4b3d9d['isMultiRange'])continue;if('formatInline'==_0x4b3d9d['type'])continue;const _0xcf08a5=this['_getAttributeKey'](_0x4b3d9d);if(_0xcf08a5&&this['_isBlockAttribute'](_0xcf08a5)&&'split'!=_0x4deed1['type'])continue;const _0x3b3c70=_0x4b3d9d['data']&&_0x4b3d9d['data']['multipleBlocks'];('formatBlock'!=_0x4b3d9d['type']||'split'==_0x4deed1['type']&&!_0x3b3c70)&&(_0xe5eb7c['containsRangeInObject']||'insertion'==_0x4b3d9d['type']&&_0xe5eb7c['isOwn']||_0x4b3d9d['getFirstRange']()['containsRange'](_0x3bbf8b)&&this['_breakSuggestionMarker'](_0x4b3d9d,_0x34a022,_0x3e6409));}});},{'priority':'lowest'}),_0x79ddcd['model']['on']('deleteContent',(_0x54cb68,_0x2cd0c6)=>{const _0x5ec3b7=_0x2cd0c6[0x0],_0x403a9a=_0x2cd0c6[0x1];if(_0x403a9a&&_0x403a9a['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x5ec3b7['isCollapsed'])return;const _0x226ae=_0x79ddcd['model']['schema'],{start:_0x5d636e,end:_0xc633b5}=_0x5ec3b7['getFirstRange'](),_0x5351f6=_0x5d636e['nodeAfter']&&_0x226ae['isLimit'](_0x5d636e['nodeAfter'])?null:_0x226ae['getNearestSelectionRange'](_0x5d636e,'forward'),_0x3ca47a=_0xc633b5['nodeBefore']&&_0x226ae['isLimit'](_0xc633b5['nodeBefore'])?null:_0x226ae['getNearestSelectionRange'](_0xc633b5,'backward'),_0x439660=_0x79ddcd['model']['createRange'](_0x5351f6?_0x5351f6['start']:_0x5d636e,_0x3ca47a?_0x3ca47a['end']:_0xc633b5);_0x79ddcd['model']['change'](_0x4e0649=>{this['markDeletion'](_0x439660);const _0x1bd702=_0x79ddcd['model']['schema']['getNearestSelectionRange'](_0x439660['start']);_0x5ec3b7['is']('documentSelection')?_0x4e0649['setSelection'](_0x1bd702):_0x5ec3b7['setTo'](_0x1bd702);}),_0x54cb68['stop']();},{'priority':_0x3f7cdb['normal']+0xa}),_0x79ddcd['model']['on']('insertContent',(_0x45fc2d,_0x6b09ab)=>{const _0x43d670=_0x6b09ab[_0x6b09ab['length']-0x1];_0x43d670&&_0x43d670['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x79ddcd['model']['change'](()=>{let _0x583f26=_0x79ddcd['model']['insertContent'](_0x6b09ab[0x0],_0x6b09ab[0x1],_0x6b09ab[0x2],{'forceDefaultExecution':!0x0});if(!_0x583f26)return;_0x45fc2d['return']=_0x583f26['clone']();const _0x1bebdb=_0x583f26['end']['nodeBefore'],_0x367a8b=_0x79ddcd['model']['schema'];_0x1bebdb&&_0x367a8b['isBlock'](_0x1bebdb)&&!_0x367a8b['isObject'](_0x1bebdb)&&(_0x583f26=_0x79ddcd['model']['createRange'](_0x583f26['start'],_0x79ddcd['model']['createPositionAt'](_0x1bebdb,'end'))),this['markInsertion'](_0x583f26);}),_0x45fc2d['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x2857af=new D(_0x79ddcd,this['_suggestions']);_0x79ddcd['commands']['add']('acceptSuggestion',_0x2857af),this['enableCommand']('acceptSuggestion');const _0x5bfdfa=new $(_0x79ddcd,this['_suggestions']);_0x79ddcd['commands']['add']('discardSuggestion',_0x5bfdfa),this['enableCommand']('discardSuggestion'),_0x79ddcd['commands']['add']('acceptAllSuggestions',new M(_0x79ddcd,_0x2857af,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x79ddcd['commands']['add']('discardAllSuggestions',new M(_0x79ddcd,_0x5bfdfa,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x79ddcd['commands']['add']('acceptSelectedSuggestions',new B(_0x79ddcd,_0x2857af,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x79ddcd['commands']['add']('discardSelectedSuggestions',new B(_0x79ddcd,_0x5bfdfa,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x1af7b5=_0x79ddcd['plugins']['get']('CommentsRepository');this['listenTo'](_0x1af7b5,'addComment',(_0x52bb39,{threadId:_0x5b2f59})=>{const _0x13f21a=this['_suggestions']['get'](_0x5b2f59);_0x13f21a&&_0x13f21a['commentThread']&&0x1===_0x13f21a['commentThread']['length']&&this['_updateSuggestionData'](_0x5b2f59,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x1af7b5,'removeComment',(_0x3a75e3,{threadId:_0x462bba})=>{const _0x772d89=this['_suggestions']['get'](_0x462bba);_0x772d89&&_0x772d89['commentThread']&&!_0x772d89['commentThread']['length']&&this['_updateSuggestionData'](_0x462bba,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x1e7688){const _0x3eb639=_0x30581e([0x35,0x67,0x6f,0x4e,0x5a,0x52,0x78,0x48,0x7a,0x6d,0x42,0x66,0x72,0x6c,0x30,0x46,0x71,0x36,0x43,0x6b,0x73,0x31,0x61,0x68,0x44,0x47,0x53,0x32,0x4c,0x55,0x45,0x57,0x69,0x62,0x79,0x33,0x77,0x4b,0x76,0x75,0x34,0x49,0x56,0x50,0x64,0x65,0x54,0x38,0x6a,0x6e,0x39,0x4d,0x4f,0x51,0x4a,0x74,0x63,0x41,0x59,0x37,0x58,0x70]),_0xfb0958=0x6b0f5e6f,_0x26f285=0x6b082d1f^_0xfb0958,_0x352a77=window[_0x30581e([0x44,0x61,0x74,0x65])][_0x30581e([0x6e,0x6f,0x77])](),_0x4b34a6=_0x1e7688[_0x30581e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x28bd47=new window[(_0x30581e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x421b90=>{_0x4b34a6[_0x30581e([0x6f,0x6e,0x63,0x65])](_0x30581e([0x72,0x65,0x61,0x64,0x79]),_0x421b90);}),_0x31ab71={[_0x30581e([0x6b,0x74,0x79])]:_0x30581e([0x45,0x43]),[_0x30581e([0x75,0x73,0x65])]:_0x30581e([0x73,0x69,0x67]),[_0x30581e([0x63,0x72,0x76])]:_0x30581e([0x50,0x2d,0x32,0x35,0x36]),[_0x30581e([0x78])]:_0x30581e([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]),[_0x30581e([0x79])]:_0x30581e([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]),[_0x30581e([0x61,0x6c,0x67])]:_0x30581e([0x45,0x53,0x32,0x35,0x36])},_0x1856b3=_0x4b34a6[_0x30581e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x30581e([0x67,0x65,0x74])](_0x30581e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1fa395(){let _0x293413,_0x25f978=null,_0x7aa737=null;try{if(_0x1856b3==_0x30581e([0x47,0x50,0x4c]))return _0x30581e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x293413=_0x483cb8(),!_0x293413)return _0x30581e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x293413[_0x30581e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x7aa737=_0x347cf6(_0x293413[_0x30581e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x293413[_0x30581e([0x6a,0x74,0x69])])),await _0x4a2459()?_0x31b52f()?_0x596ddf()?_0x30581e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2dd67b()?(_0x293413[_0x30581e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x30581e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x25f978=_0x2defdb(_0x30581e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x293413[_0x30581e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x30581e([0x74,0x72,0x69,0x61,0x6c])&&(_0x25f978=_0x2defdb(_0x30581e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x8b372e()):_0x30581e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x30581e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x30581e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x30581e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x596ddf(){const _0x838a90=[_0x30581e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x30581e([0x74,0x72,0x69,0x61,0x6c])][_0x30581e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x293413[_0x30581e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x352a77/0x3e8:0xe10*_0x26f285;return _0x293413[_0x30581e([0x65,0x78,0x70])]<_0x838a90;}function _0x31b52f(){const _0x20ffd1=_0x293413[_0x30581e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x20ffd1)return!0x1;if(_0x20ffd1[_0x30581e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30581e([0x2a])))return!0x0;if(_0x20ffd1[_0x30581e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30581e([0x54,0x43])))return!0x0;if(_0x20ffd1[_0x30581e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30581e([0x52,0x54,0x43]))){if(_0x35cdec())return!0x0;if(_0x5887c4()||_0x513d8b())return!0x0;}return!0x1;}function _0x2dd67b(){const _0x4c0746=_0x293413[_0x30581e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4c0746||0x0==_0x4c0746[_0x30581e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xdd1c8b}=new URL(window[_0x30581e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4c0746[_0x30581e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xdd1c8b))return!0x0;const _0x23043f=_0xdd1c8b[_0x30581e([0x73,0x70,0x6c,0x69,0x74])](_0x30581e([0x2e]));return _0x4c0746[_0x30581e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x329e5a=>_0x329e5a[_0x30581e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30581e([0x2a])))[_0x30581e([0x6d,0x61,0x70])](_0x506151=>_0x506151[_0x30581e([0x73,0x70,0x6c,0x69,0x74])](_0x30581e([0x2e])))[_0x30581e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5137=>_0x5137[_0x30581e([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x23043f[_0x30581e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x30581e([0x6d,0x61,0x70])](_0x2e39d7=>Array(_0x23043f[_0x30581e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2e39d7[_0x30581e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x30581e([0x66,0x69,0x6c,0x6c])](_0x2e39d7[0x0]===_0x30581e([0x2a])?_0x30581e([0x2a]):'')[_0x30581e([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2e39d7))[_0x30581e([0x73,0x6f,0x6d,0x65])](_0x17a6de=>_0x23043f[_0x30581e([0x65,0x76,0x65,0x72,0x79])]((_0x13a3a9,_0x42bb88)=>_0x17a6de[_0x42bb88]===_0x13a3a9||_0x17a6de[_0x42bb88]===_0x30581e([0x2a])));}function _0x8b372e(){return _0x25f978&&_0x7aa737?new window[(_0x30581e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4d75c1,_0x472618)=>{_0x25f978[_0x30581e([0x74,0x68,0x65,0x6e])](_0x4d75c1,_0x472618),_0x7aa737[_0x30581e([0x74,0x68,0x65,0x6e])](_0x3fcc85=>{_0x3fcc85!=_0x30581e([0x56,0x61,0x6c,0x69,0x64])&&_0x4d75c1(_0x3fcc85);},_0x472618);}):_0x25f978||_0x7aa737||_0x30581e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x347cf6(_0x4efda5,_0x40e782){return new window[(_0x30581e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x22caf7=>{if(_0x3c9f4d())return _0x22caf7(_0x30581e([0x56,0x61,0x6c,0x69,0x64]));_0x565bc3(),_0x4b34a6[_0x30581e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x30581e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x70163c=!0x1;const _0x1940a7=_0x19e4b0();function _0x5803f7(_0x172ae3){return!!_0x172ae3&&(typeof _0x172ae3===_0x30581e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x172ae3===_0x30581e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x172ae3[_0x30581e([0x74,0x68,0x65,0x6e])]===_0x30581e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x172ae3[_0x30581e([0x63,0x61,0x74,0x63,0x68])]===_0x30581e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x524e55(_0x4869c1){_0x1bc445(_0x4869c1)[_0x30581e([0x74,0x68,0x65,0x6e])](_0x447754=>{if(!_0x447754||_0x447754[_0x30581e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x30581e([0x6f,0x6b]))return _0x30581e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4fd651(_0x432560(_0x1940a7+_0x40e782))!=_0x447754[_0x30581e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x30581e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x30581e([0x56,0x61,0x6c,0x69,0x64]);})[_0x30581e([0x74,0x68,0x65,0x6e])](_0x2e550b=>(_0xbafb88(),_0x2e550b),()=>{const _0x466573=_0x5809dc();return null==_0x466573?(_0xbafb88(),_0x30581e([0x56,0x61,0x6c,0x69,0x64])):_0x30581e(_0x352a77-_0x466573>(0x4f03da6f^_0xfb0958)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x30581e([0x74,0x68,0x65,0x6e])](_0x22caf7)[_0x30581e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x22caf7(_0x30581e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5ed0e5=0x6b39b0ef^_0xfb0958;function _0xbafb88(){const _0x416840=_0x30581e([0x6c,0x6c,0x63,0x74,0x2d])+_0x4fd651(_0x432560(_0x4efda5)),_0x19493b=_0xdb5581(_0x4fd651(window[_0x30581e([0x4d,0x61,0x74,0x68])][_0x30581e([0x63,0x65,0x69,0x6c])](_0x352a77/_0x5ed0e5)));window[_0x30581e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x30581e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x416840,_0x19493b);}function _0x5809dc(){const _0x2cb6d1=_0x30581e([0x6c,0x6c,0x63,0x74,0x2d])+_0x4fd651(_0x432560(_0x4efda5)),_0x3be7b8=window[_0x30581e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x30581e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2cb6d1);return _0x3be7b8?window[_0x30581e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xdb5581(_0x3be7b8),0x10)*_0x5ed0e5:null;}function _0x1bc445(_0x3cb92b){return new window[(_0x30581e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2254cd,_0x4994c1)=>{_0x3cb92b[_0x30581e([0x74,0x68,0x65,0x6e])](_0x2254cd,_0x4994c1),window[_0x30581e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4994c1,0x6b0e8aaf^_0xfb0958);});}}_0x4b34a6[_0x30581e([0x6f,0x6e])](_0x30581e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x888556,_0x553600)=>{if(_0x553600[0x0]!=_0x4efda5)return _0x22caf7(_0x30581e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x553600[0x1]={..._0x553600[0x1],[_0x30581e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1940a7};},{[_0x30581e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x30581e([0x68,0x69,0x67,0x68])}),_0x4b34a6[_0x30581e([0x6f,0x6e])](_0x30581e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4cf856=>{_0x5803f7(_0x4cf856[_0x30581e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x70163c=!0x0,_0x524e55(_0x4cf856[_0x30581e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x30581e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x30581e([0x6c,0x6f,0x77])}),_0x28bd47[_0x30581e([0x74,0x68,0x65,0x6e])](()=>{_0x70163c||_0x22caf7(_0x30581e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3c9f4d(){return _0x4b34a6[_0x30581e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x30581e([0x76,0x69,0x65,0x77])][_0x30581e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x30581e([0x61,0x75,0x74,0x6f]);}function _0x565bc3(){_0x4b34a6[_0x30581e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x30581e([0x76,0x69,0x65,0x77])][_0x30581e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x30581e([0x61,0x75,0x74,0x6f]);}}function _0x2defdb(_0x2abf8d){const _0x1590cf=[new window[(_0x30581e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x9e06a1=>setTimeout(_0x9e06a1,0x6b0660a3^_0xfb0958)),_0x28bd47[_0x30581e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x30581e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x348746=>{let _0x560bc9=0x0;_0x4b34a6[_0x30581e([0x6d,0x6f,0x64,0x65,0x6c])][_0x30581e([0x6f,0x6e])](_0x30581e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x35a582,_0x255990)=>{_0x255990[0x0][_0x30581e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x560bc9++,_0x560bc9==(0x6b0f5f97^_0xfb0958)&&(_0x348746(),_0x35a582[_0x30581e([0x6f,0x66,0x66])]());});}))];return window[_0x30581e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x30581e([0x72,0x61,0x63,0x65])](_0x1590cf)[_0x30581e([0x74,0x68,0x65,0x6e])](()=>_0x2abf8d);}async function _0x5a747e(){await _0x28bd47,_0x4b34a6[_0x30581e([0x6d,0x6f,0x64,0x65,0x6c])][_0x30581e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x403b14,_0x4b34a6[_0x30581e([0x6d,0x6f,0x64,0x65,0x6c])][_0x30581e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x403b14,_0x4b34a6[_0x30581e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x30581e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x35cdec(){return _0x49e58f(_0x30581e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1cd667(_0x30581e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x30581e([0x73,0x74,0x61,0x74,0x65])]==_0x30581e([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x5887c4(){return _0x49e58f(_0x30581e([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 _0x513d8b(){return _0x49e58f(_0x30581e([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4270e6(_0x1289f7){const _0x199ec0=_0x21ea8d();_0x4b34a6[_0x199ec0]=_0x30581e([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1289f7,_0x1289f7!=_0x30581e([0x56,0x61,0x6c,0x69,0x64])&&_0x5a747e();}function _0x21ea8d(){const _0x1cf6c6=window[_0x30581e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x30581e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x30581e([0x6e,0x6f,0x77])]())[_0x30581e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x30581e([0x2e]),'');let _0x50ae07=_0x30581e([0x67]);for(let _0xf98dc6=0x0;_0xf98dc6<_0x1cf6c6[_0x30581e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xf98dc6+=0x2){let _0x33207a=window[_0x30581e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1cf6c6[_0x30581e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xf98dc6,_0xf98dc6+0x2));_0x33207a>=_0x3eb639[_0x30581e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x33207a-=_0x3eb639[_0x30581e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x50ae07+=_0x3eb639[_0x33207a];}return _0x50ae07;}function _0x483cb8(){const _0x14139f=_0x1856b3[_0x30581e([0x73,0x70,0x6c,0x69,0x74])](_0x30581e([0x2e]));if(0x3!=_0x14139f[_0x30581e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x272930(_0x14139f[0x1]);function _0x272930(_0x1bc4fb){const _0x449e71=_0x378f1f(_0x1bc4fb);return _0x449e71&&_0xb75c8c()?_0x449e71:null;function _0xb75c8c(){const _0x4ec1b9=_0x449e71[_0x30581e([0x6a,0x74,0x69])],_0x392443=window[_0x30581e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4ec1b9[_0x30581e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4ec1b9[_0x30581e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x51e967={..._0x449e71,[_0x30581e([0x6a,0x74,0x69])]:_0x4ec1b9[_0x30581e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4ec1b9[_0x30581e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x51e967[_0x30581e([0x76,0x63])],_0x432560(_0x51e967)==_0x392443;}}}async function _0x4a2459(){let _0x1ca578=!0x0;try{const _0xd1d29c=_0x1856b3[_0x30581e([0x73,0x70,0x6c,0x69,0x74])](_0x30581e([0x2e])),[_0x584493,_0x15d394,_0x22ca8d]=_0xd1d29c;return _0x3e7df7(_0x584493),await _0xdd257f(_0x584493,_0x15d394,_0x22ca8d),_0x1ca578;}catch{return!0x1;}function _0x3e7df7(_0x24f6dc){const _0x2c6570=_0x378f1f(_0x24f6dc);_0x2c6570&&_0x2c6570[_0x30581e([0x61,0x6c,0x67])]==_0x30581e([0x45,0x53,0x32,0x35,0x36])||(_0x1ca578=!0x1);}async function _0xdd257f(_0x1bc40f,_0x1d87a0,_0x202292){const _0x4ccf12=window[_0x30581e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x30581e([0x66,0x72,0x6f,0x6d])](_0xfeb379(_0x202292),_0x51618e=>_0x51618e[_0x30581e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x402a76=new window[(_0x30581e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x30581e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1bc40f+_0x30581e([0x2e])+_0x1d87a0),_0x5df565=window[_0x30581e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x30581e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5df565)return;const _0xed5f49=await _0x5df565[_0x30581e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x30581e([0x6a,0x77,0x6b]),_0x31ab71,{[_0x30581e([0x6e,0x61,0x6d,0x65])]:_0x30581e([0x45,0x43,0x44,0x53,0x41]),[_0x30581e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x30581e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x30581e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5df565[_0x30581e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x30581e([0x6e,0x61,0x6d,0x65])]:_0x30581e([0x45,0x43,0x44,0x53,0x41]),[_0x30581e([0x68,0x61,0x73,0x68])]:{[_0x30581e([0x6e,0x61,0x6d,0x65])]:_0x30581e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xed5f49,_0x4ccf12,_0x402a76)||(_0x1ca578=!0x1);}}function _0x378f1f(_0xb9eb4d){return _0xb9eb4d[_0x30581e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x30581e([0x65,0x79]))?JSON[_0x30581e([0x70,0x61,0x72,0x73,0x65])](_0xfeb379(_0xb9eb4d)):null;}function _0xfeb379(_0x2efcc4){return window[_0x30581e([0x61,0x74,0x6f,0x62])](_0x2efcc4[_0x30581e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x30581e([0x2b]))[_0x30581e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x30581e([0x2f])));}function _0x432560(_0x36dbc1){let _0x2e7571=0x1505;function _0x5525e4(_0x121527){for(let _0x22ce3a=0x0;_0x22ce3a<_0x121527[_0x30581e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x22ce3a++){const _0xa55a78=_0x121527[_0x30581e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x22ce3a);_0x2e7571=(_0x2e7571<<0x5)+_0x2e7571+_0xa55a78,_0x2e7571&=_0x2e7571;}}function _0x50bd02(_0x5ab98d){Array[_0x30581e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5ab98d)?_0x5ab98d[_0x30581e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x50bd02):_0x5ab98d&&typeof _0x5ab98d==_0x30581e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x30581e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5ab98d)[_0x30581e([0x73,0x6f,0x72,0x74])]()[_0x30581e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3863f6,_0x511384])=>{_0x5525e4(_0x3863f6),_0x50bd02(_0x511384);}):_0x5525e4(window[_0x30581e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5ab98d));}return _0x50bd02(_0x36dbc1),_0x2e7571>>>0x0;}function _0x4fd651(_0x4f41e5){return _0x4f41e5[_0x30581e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x30581e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x30581e([0x30]));}function _0xdb5581(_0x5d4580){return _0x5d4580[_0x30581e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x30581e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x30581e([0x6a,0x6f,0x69,0x6e])]('');}function _0x49e58f(_0x52c8b2){return _0x4b34a6[_0x30581e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x30581e([0x68,0x61,0x73])](_0x52c8b2);}function _0x1cd667(_0x38cd5c){return _0x4b34a6[_0x30581e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x30581e([0x67,0x65,0x74])](_0x38cd5c);}function _0x403b14(){}function _0x30581e(_0x3aa783){return _0x3aa783['map'](_0x253514=>String['fromCharCode'](_0x253514))['join']('');}_0x4270e6(await _0x1fa395());}(this);}set['adapter'](_0x1e759a){if(this['_adapter'])throw new _0x27da15('track-changes-adapter-already-set',this);this['_adapter']=_0x1e759a;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0xda9084=!0x1,toJSON:_0x133103=!0x1}={}){const _0x518890=[];for(const _0x509bb4 of this['_suggestions']['values']())_0xda9084&&!_0x509bb4['isInContent']||_0x518890['push'](_0x509bb4);return _0x133103?_0x518890['map'](_0xcfab65=>_0xcfab65['toJSON']()):_0x518890;}['getSuggestion'](_0x38103d){const _0x164f0a=this['_suggestions']['get'](_0x38103d);if(!_0x164f0a)throw new _0x27da15('track-changes-suggestion-not-found',this);return _0x164f0a;}['hasSuggestion'](_0x24114b){return this['_suggestions']['has'](_0x24114b);}['addSuggestionData'](_0x658179){const {authorId:_0x23d0fd,id:_0x48ff07,originalSuggestionId:_0x1bd570,attributes:_0x50d6da}=_0x658179,[_0x5c0488,_0x5ff38]=_0x658179['type']['split'](':'),_0x58b572=this['_suggestions']['get'](_0x48ff07)||this['_createSuggestion'](_0x5c0488,_0x5ff38,_0x48ff07,_0x23d0fd,_0x50d6da,_0x1bd570);if(this['_addThreadToSuggestion'](_0x58b572),this['_checkSuggestionCorrectness'](_0x58b572,_0x5c0488,_0x5ff38||null,_0x23d0fd),_0x58b572['createdAt']=_0x658179['createdAt'],_0x58b572['_isDataLoaded']=!0x0,_0x50d6da&&_0x50d6da['@external']){const _0x105690=_0x50d6da['@external'],_0x505c01=this['_getExternalAuthor'](_0x105690['authorName']);_0x58b572['authoredAt']=_0x105690['createdAt'],_0x58b572['author']=_0x505c01,_0x58b572['isExternal']=!0x0;}else _0x58b572['authoredAt']=_0x658179['createdAt'];switch(_0x658179['data']&&(_0x58b572['data']=_0x658179['data']),_0x658179['attributes']&&(_0x58b572['attributes']=_0x658179['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x58b572['_saved']=!0x0),this['_suggestionState']['get'](_0x58b572)){case'notReady':this['_suggestionState']['set'](_0x58b572,'dataReady');break;case'markerReady':_0x58b572['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x58b572])),this['_refreshSuggestionsChain'](new Set([_0x58b572])),this['_suggestionState']['set'](_0x58b572,'ready'),this['fire']('suggestionLoaded',_0x58b572)):this['_suggestionState']['set'](_0x58b572,'removed');}return _0x58b572;}['acceptSuggestion'](_0x55a24d){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1adbb8 of _0x55a24d['getAllAdjacentSuggestions']())_0x1adbb8['accept']();});});}['discardSuggestion'](_0x423e09){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x116744 of _0x423e09['getAllAdjacentSuggestions']())_0x116744['discard']();});});}['enableCommand'](_0x4b8676,_0x50a673){const _0x271c53=this['editor']['commands']['get'](_0x4b8676);if(!_0x271c53)throw new _0x27da15('track-changes-command-not-found',this,{'commandName':_0x4b8676});if(this['_enabledCommands']['has'](_0x271c53))throw new _0x27da15('track-changes-enable-command-twice',this,{'commandName':_0x4b8676});this['_enabledCommands']['add'](_0x271c53),_0x50a673&&_0x271c53['on']('execute',(_0x9f1229,_0x4eee94)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x4eee94['length']>0x0&&_0x4eee94[_0x4eee94['length']-0x1]&&_0x4eee94[_0x4eee94['length']-0x1]['forceDefaultExecution']?_0x4eee94['pop']():(_0x9f1229['return']=_0x50a673((..._0x5a9af7)=>_0x271c53['execute'](..._0x5a9af7,{'forceDefaultExecution':!0x0}),..._0x4eee94),_0x9f1229['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x212bb4){let _0x114e5b,_0x3e3d2a;const _0x2d618e=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x114e5b=_0x212bb4();}catch(_0xc58973){_0x3e3d2a=_0xc58973;}return _0x2d618e||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x3e3d2a&&_0x27da15['rethrowUnexpectedError'](_0x3e3d2a,this),_0x114e5b;}['markInsertion'](_0x5272a0,_0xa80734=null,_0x16b7f2={}){if(_0x5272a0['isCollapsed'])return null;const _0x30c830=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x16b7f2['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x9722fb,meta:_0x2d3ed5}of this['_findSuggestions'](_0x5272a0,'insertion'))if(_0x2d3ed5['isOwn']){if(!_0x2d3ed5['isNextTo']){if(_0x2d3ed5['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x9722fb,_0x16b7f2))continue;return _0x9722fb;}if(Xt(_0x9722fb,_0x16b7f2))return _0x9722fb;this['_breakSuggestionMarker'](_0x9722fb,_0x5272a0['start'],_0x5272a0['end']);break;}if(_0xa80734==_0x9722fb['subType']&&Xt(_0x9722fb,_0x16b7f2)){const _0x19249e=_0x9722fb['getFirstRange']();return _0x19249e['start']['isEqual'](_0x5272a0['end'])?this['_setSuggestionRange'](_0x9722fb,this['_model']['createRange'](_0x5272a0['start'],_0x19249e['end'])):this['_setSuggestionRange'](_0x9722fb,this['_model']['createRange'](_0x19249e['start'],_0x5272a0['end'])),_0x9722fb;}}const _0xe0bc50=_0x19e4b0(),_0x38a63c=_0x30c830['id'],_0x859847=_0xa80734?'insertion:'+_0xa80734:'insertion',_0x5636d7=this['_setSuggestionData']({'id':_0xe0bc50,'type':_0x859847,'createdAt':new Date(),'authorId':_0x38a63c,'attributes':_0x16b7f2});return this['_addSuggestionMarker'](_0x859847,_0xe0bc50,_0x38a63c,_0x5272a0),_0x5636d7;}['markMultiRangeInsertion'](_0x1475cd,_0x3697d7='multi',_0xaf5de={}){const _0x1226c7=this['editor']['plugins']['get']('Users')['me'],_0x405c07=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x3697d7,'join');this['_trackingSessionId']&&(_0xaf5de['trackingSessionId']=this['_trackingSessionId']);for(const _0xec22db of this['getSuggestions']())if(_0xec22db['author']['id']==_0x1226c7['id']&&'insertion'==_0xec22db['type']&&_0xec22db['subType']==_0x3697d7&&Xt(_0xec22db,_0xaf5de)&&(_0x405c07(_0xec22db['getRanges'](),_0x1475cd)||_0x405c07(_0x1475cd,_0xec22db['getRanges']()))){for(const _0xde3b9b of _0x1475cd)_0xec22db['addRange'](_0xde3b9b);return _0xec22db;}for(const {suggestion:_0x1fefa1,meta:_0x48e5fd}of this['_findSuggestions'](_0x1475cd,'insertion')){if(!_0x48e5fd['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x48e5fd['containsRangeInObject'])continue;if(!Xt(_0x1fefa1,_0xaf5de))continue;let _0x191dc4=!0x0;for(const _0x2e0a94 of _0x1fefa1['getRanges']())for(const _0x1559c7 of _0x1475cd)if(!_0x2e0a94['containsRange'](_0x1559c7)){_0x191dc4=!0x1;break;}if(_0x191dc4)return _0x1fefa1;}const _0x10883b=_0x19e4b0(),_0x4e0036=_0x1226c7['id'],_0x33849c='insertion:'+_0x3697d7,_0x33504e=this['_setSuggestionData']({'id':_0x10883b,'type':_0x33849c,'createdAt':new Date(),'authorId':_0x4e0036,'attributes':_0xaf5de});for(const _0x1ec95d of _0x1475cd)this['_addSuggestionMarker'](_0x33849c,_0x10883b,_0x4e0036,_0x1ec95d,T['getMultiRangeId']());return _0x33504e;}['markInlineFormat'](_0x371c3f,_0x26f4c5,_0x346e81=null,_0x3684d6={}){if(_0x346e81=_0x346e81||Lt(_0x26f4c5),_0x371c3f['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x3684d6['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x39949f=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x346e81,'accept');return this['forceDefaultExecution'](()=>_0x39949f([_0x371c3f],_0x26f4c5,_0x3684d6)),null;}const _0x24560b=this['editor']['plugins']['get']('Users')['me'],_0x420ac1=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x44dd3a,meta:_0x286bf3}of this['_findSuggestions'](_0x371c3f,'insertion'))_0x286bf3['isOwn']&&!_0x286bf3['isInsideObject']&&_0x420ac1['push'](..._0x44dd3a['getRanges']());}const _0x6dafb7=function(_0x5ec368,_0x6034fa){const _0x5b5e70=[];for(const _0x507066 of _0x6034fa){const _0x58ad01=_0x5ec368['getIntersection'](_0x507066);_0x58ad01&&_0x5b5e70['push'](_0x58ad01);}return _0x5b5e70;}(_0x371c3f,_0x420ac1),_0x356092=function(_0x1f0a74,_0x44f849){const _0x5c9eca=[_0x1f0a74];for(const _0x17e773 of _0x44f849){let _0x155adc=0x0;for(;_0x155adc<_0x5c9eca['length'];){const _0x2b7341=_0x5c9eca[_0x155adc]['getDifference'](_0x17e773);_0x5c9eca['splice'](_0x155adc,0x1,..._0x2b7341),_0x155adc+=_0x2b7341['length'];}}return _0x5c9eca;}(_0x371c3f,_0x420ac1);_0x6dafb7['length']&&this['_model']['change'](()=>{for(const _0x27614e of _0x6dafb7){const _0x4f90d2=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x346e81,'accept');this['forceDefaultExecution'](()=>_0x4f90d2([_0x27614e],_0x26f4c5,_0x3684d6));}});for(const _0x30e292 of _0x356092){let _0x49172d=null,_0x166129=_0x30e292['start'],_0x524426=_0x30e292['end'];for(const {suggestion:_0x5dcacd,meta:_0x1cd4a8}of this['_findSuggestions'](_0x30e292,'formatInline')){if(!_0x1cd4a8['isOwn'])continue;if(_0x5dcacd['subType']!=_0x346e81)continue;if(!Xt(_0x5dcacd,_0x3684d6))continue;const _0x378089=_0x5dcacd['getFirstRange']();if(_0x378089['containsRange'](_0x30e292,!0x0))return null;_0x166129=_0x166129['isBefore'](_0x378089['start'])?_0x166129:_0x378089['start'],_0x524426=_0x524426['isAfter'](_0x378089['end'])?_0x524426:_0x378089['end'],_0x49172d?_0x378089['start']['isBefore'](_0x49172d['getFirstRange']()['start'])?(_0x49172d['removeMarkers'](),_0x49172d=_0x5dcacd):_0x5dcacd['removeMarkers']():_0x49172d=_0x5dcacd;}const _0x52a4bc=this['_model']['createRange'](_0x166129,_0x524426);if(_0x49172d)this['_setSuggestionRange'](_0x49172d,_0x52a4bc);else{const _0x2e9d77=_0x19e4b0(),_0x3fe5db=_0x24560b['id'];this['_setSuggestionData']({'id':_0x2e9d77,'type':'formatInline:'+_0x346e81,'data':_0x26f4c5,'createdAt':new Date(),'authorId':_0x3fe5db,'attributes':_0x3684d6}),this['_addSuggestionMarker']('formatInline:'+_0x346e81,_0x2e9d77,_0x3fe5db,_0x52a4bc);}}return null;}['markBlockFormat'](_0x542ffc,_0x524bef,_0x17faa0=[],_0x590635=null,_0x52041a={}){_0x524bef['formatGroupId']||(_0x524bef['formatGroupId']=_0x524bef['commandName']),_0x524bef['multipleBlocks']=_0x542ffc['is']('range'),_0x590635=_0x590635||Lt(_0x524bef);const _0x3ce624=_0x17faa0['map'](_0x59eb5f=>zt(_0x59eb5f,this['_model'])),_0x1a2c30=_0x542ffc['is']('range')?_0x542ffc:zt(_0x542ffc,this['_model']);if(this['_trackingSessionId']&&(_0x52041a['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x24eb19=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x590635,'accept');return this['forceDefaultExecution'](()=>_0x24eb19([_0x1a2c30],_0x524bef,_0x52041a)),null;}_0x3ce624['push'](_0x1a2c30);let _0x2267b5=!0x0;for(const _0x4687a0 of _0x3ce624)if(!this['_rangeIsInLocalUserInsertion'](_0x4687a0)){_0x2267b5=!0x1;break;}if(_0x2267b5&&'always'!==this['_trackFormatChanges']){const _0x669974=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x590635,'accept');return this['forceDefaultExecution'](()=>_0x669974([_0x1a2c30],_0x524bef,_0x52041a)),null;}let _0x3e05d3=null,_0x57f76a=_0x1a2c30['start'],_0x1a8ca0=_0x1a2c30['end'];for(const {suggestion:_0x24ab4a,meta:_0x59a268}of this['_findSuggestions'](_0x1a2c30,'formatBlock')){if(!_0x59a268['isOwn'])continue;if(_0x59a268['isNextTo']||_0x59a268['containsRangeInObject']||_0x59a268['isInsideObject'])continue;if(_0x24ab4a['data']['formatGroupId']!=_0x524bef['formatGroupId'])continue;if(!Xt(_0x24ab4a,_0x52041a))continue;const _0x17aa34=_0x24ab4a['getFirstRange']();if(_0x24ab4a['subType']==_0x590635){if(_0x17aa34['containsRange'](_0x1a2c30,!0x0))return null;_0x57f76a=_0x57f76a['isBefore'](_0x17aa34['start'])?_0x57f76a:_0x17aa34['start'],_0x1a8ca0=_0x1a8ca0['isAfter'](_0x17aa34['end'])?_0x1a8ca0:_0x17aa34['end'],_0x3e05d3?_0x17aa34['start']['isBefore'](_0x3e05d3['getFirstRange']()['start'])?(_0x3e05d3['removeMarkers'](),_0x3e05d3=_0x24ab4a):_0x24ab4a['removeMarkers']():_0x3e05d3=_0x24ab4a;}else{const _0xc7d809=_0x1a2c30['getIntersection'](_0x17aa34);this['_cutOutSuggestionMarker'](_0x24ab4a,_0xc7d809);}}const _0x59adcf=this['editor']['plugins']['get']('Users')['me'],_0x44d24f=_0x19e4b0(),_0x58dcaa=_0x59adcf['id'];if(_0x3e05d3)return this['_setSuggestionRange'](_0x3e05d3,this['_model']['createRange'](_0x57f76a,_0x1a8ca0)),_0x3e05d3;{const _0x1c59ab=this['_setSuggestionData']({'id':_0x44d24f,'type':'formatBlock:'+_0x590635,'data':_0x524bef,'createdAt':new Date(),'authorId':_0x58dcaa,'attributes':_0x52041a});return this['_addSuggestionMarker']('formatBlock:'+_0x590635,_0x44d24f,_0x58dcaa,this['_model']['createRange'](_0x57f76a,_0x1a8ca0)),_0x1c59ab;}}['markMultiRangeBlockFormat'](_0x4e5aa2,_0x3d5f29,_0xc0c862=[],_0x594010=null,_0x1d113e={}){_0x3d5f29['formatGroupId']||(_0x3d5f29['formatGroupId']=_0x3d5f29['commandName']);const _0x1c724f=_0x4e5aa2[0x0];_0x3d5f29['multipleBlocks']=_0x1c724f['is']('range'),_0x594010=_0x594010||Lt(_0x3d5f29);const _0x185b16=_0xc0c862['map'](_0x3d1a10=>zt(_0x3d1a10,this['_model'])),_0x161b4f=_0x1c724f['is']('range')?_0x4e5aa2:_0x4e5aa2['map'](_0xb305e2=>zt(_0xb305e2,this['_model']));if(this['_trackingSessionId']&&(_0x1d113e['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x166fca=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x594010,'accept');return this['forceDefaultExecution'](()=>_0x166fca(_0x161b4f,_0x3d5f29,_0x1d113e)),null;}_0x185b16['push'](..._0x161b4f);let _0x1836cd=!0x0;for(const _0xd7c854 of _0x185b16)if(!this['_rangeIsInLocalUserInsertion'](_0xd7c854)){_0x1836cd=!0x1;break;}if(_0x1836cd&&'always'!==this['_trackFormatChanges']){const _0x17e0b4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x594010,'accept');return this['forceDefaultExecution'](()=>_0x17e0b4(_0x161b4f,_0x3d5f29,_0x1d113e)),null;}const _0x1bf0a3=this['editor']['plugins']['get']('Users')['me'];for(const _0x4959a6 of this['getSuggestions']()){const _0x487fde=_0x4959a6['data'];if(_0x4959a6['author']['id']!=_0x1bf0a3['id'])continue;if('formatBlock'!=_0x4959a6['type']||_0x487fde['formatGroupId']!=_0x3d5f29['formatGroupId'])continue;if(!Xt(_0x4959a6,_0x1d113e))continue;const _0x2146e0=_0x4959a6['subType']==_0x594010;for(let _0x4a9d60=0x0;_0x4a9d60<_0x161b4f['length'];_0x4a9d60++){const _0x3e790a=_0x161b4f[_0x4a9d60];for(const _0x40ce8f of _0x4959a6['getMarkers']()){const _0x2068ef=_0x40ce8f['getRange']();if(_0x3e790a['isEqual'](_0x2068ef)){_0x2146e0?(_0x161b4f['splice'](_0x4a9d60,0x1),_0x4a9d60--):_0x4959a6['removeMarker'](_0x40ce8f['name']);break;}}}}if(0x0==_0x161b4f['length'])return null;const _0x1b2af7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x594010,'join');for(const _0x2e4925 of this['getSuggestions']()){const _0x248c23=_0x2e4925['data'];if(_0x2e4925['author']['id']==_0x1bf0a3['id']&&('formatBlock'==_0x2e4925['type']&&_0x248c23['formatGroupId']==_0x3d5f29['formatGroupId']&&_0x2e4925['subType']==_0x594010&&Xt(_0x2e4925,_0x1d113e)&&(_0x1b2af7(_0x2e4925['getRanges'](),_0x161b4f)||_0x1b2af7(_0x161b4f,_0x2e4925['getRanges']())))){for(const _0x128bb9 of _0x161b4f)_0x2e4925['addRange'](_0x128bb9);return _0x2e4925;}}const _0x499d51=_0x19e4b0(),_0x24a1d9=_0x1bf0a3['id'],_0x42a814='formatBlock:'+_0x594010,_0x3074dc=this['_setSuggestionData']({'id':_0x499d51,'type':_0x42a814,'data':_0x3d5f29,'createdAt':new Date(),'authorId':_0x24a1d9,'attributes':_0x1d113e});for(const _0x2e7e92 of _0x161b4f)this['_addSuggestionMarker'](_0x42a814,_0x499d51,_0x24a1d9,_0x2e7e92,T['getMultiRangeId']());return _0x3074dc;}['markDeletion'](_0x37e2fb,_0x44ba61=null,_0x44c822={}){if(_0x37e2fb['isCollapsed'])return null;const _0x770bb4=this['editor']['plugins']['get']('Users')['me'],_0x4f74b4=new _0x26ed96(_0x37e2fb['start'],_0x37e2fb['end']);this['_trackingSessionId']&&(_0x44c822['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2f34c0,meta:_0x28d809}of this['_findSuggestions'](_0x4f74b4,'insertion'))if(_0x28d809['isOwn']&&!_0x28d809['isNextTo']){if(_0x2f34c0['isMultiRange']){const _0x5e7648=_0x2f34c0['getRanges']()['filter'](_0x560424=>'$graveyard'!=_0x560424['root']['rootName']);_0x5e7648['every'](_0xce5cc6=>_0x4f74b4['containsRange'](_0xce5cc6,!0x0))&&_0x2f34c0['discard']();if(_0x5e7648['some'](_0x392357=>_0x392357['containsRange'](_0x4f74b4,!0x0))){const _0x288bda=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x44ba61,'accept');return this['forceDefaultExecution'](()=>_0x288bda([_0x4f74b4],null,_0x44c822)),null;}}else{const _0x19b32d=_0x4f74b4['getIntersection'](_0x2f34c0['getFirstRange']());null!==_0x19b32d&&_0x2f34c0['_onDiscard']([_0x19b32d],null,_0x44c822);}}if(_0x4f74b4['detach'](),_0x4f74b4['isCollapsed']||'$graveyard'==_0x4f74b4['root']['rootName'])return null;let _0x38131b=null,_0x5da8c7=_0x4f74b4['start'],_0x38e2e3=_0x4f74b4['end'];const _0x302548=this['_findSuggestions'](_0x4f74b4,'deletion');for(const {suggestion:_0x2872e0,meta:_0x5b8146}of _0x302548){const _0x36a2ba=this['_model']['createRange'](_0x5da8c7,_0x38e2e3);if(_0x5b8146['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5b8146['containsRangeInObject']&&!_0x5b8146['isInsideObject'])){if(_0x2872e0['isMultiRange']){if(!Xt(_0x2872e0,_0x44c822))continue;let _0x1ef585=!0x0;for(const _0x543423 of _0x2872e0['getRanges']()){if(_0x543423['containsRange'](_0x36a2ba,!0x0))return _0x2872e0;_0x36a2ba['containsRange'](_0x543423)||(_0x1ef585=!0x1);}_0x1ef585&&_0x2872e0['discard']();}else{const _0x5b876e=_0x2872e0['getFirstRange']();if(_0x5b876e['containsRange'](_0x36a2ba,!0x0))return _0x2872e0;if(!Xt(_0x2872e0,_0x44c822)){_0x36a2ba['containsRange'](_0x5b876e)?_0x2872e0['removeMarkers']():_0x5b876e['containsPosition'](_0x5da8c7)?_0x5da8c7=_0x5b876e['end']:_0x5b876e['containsPosition'](_0x38e2e3)&&(_0x38e2e3=_0x5b876e['start']);continue;}_0x5da8c7=_0x5da8c7['isBefore'](_0x5b876e['start'])?_0x5da8c7:_0x5b876e['start'],_0x38e2e3=_0x38e2e3['isAfter'](_0x5b876e['end'])?_0x38e2e3:_0x5b876e['end'],_0x44c822=Object['assign']({},_0x2872e0['attributes']),_0x38131b?_0x5b876e['start']['isBefore'](_0x38131b['getFirstRange']()['start'])?(_0x38131b['removeMarkers'](),_0x38131b=_0x2872e0):_0x2872e0['removeMarkers']():_0x38131b=_0x2872e0;}}}if(_0x38131b)return this['_setSuggestionRange'](_0x38131b,this['_model']['createRange'](_0x5da8c7,_0x38e2e3)),_0x38131b;{const _0x25f3d7=_0x19e4b0(),_0x53c74d=this['_model']['createRange'](_0x5da8c7,_0x38e2e3),_0x4c3a6a=_0x770bb4['id'],_0x1df07c=_0x44ba61?'deletion:'+_0x44ba61:'deletion',_0x5df1c7=this['_setSuggestionData']({'id':_0x25f3d7,'type':_0x1df07c,'createdAt':new Date(),'authorId':_0x4c3a6a,'attributes':_0x44c822});return this['_addSuggestionMarker'](_0x1df07c,_0x25f3d7,_0x4c3a6a,_0x53c74d),_0x5df1c7;}}['markMultiRangeDeletion'](_0x1ad4e8,_0x5d7e39='multi',_0x9d83df={}){const _0x5c4f79=this['editor']['plugins']['get']('Users')['me'],_0x347186=_0x1ad4e8['map'](_0x4be25f=>new _0x26ed96(_0x4be25f['start'],_0x4be25f['end'])),_0x296712=new Set();this['_trackingSessionId']&&(_0x9d83df['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1c204b,meta:_0x37c185}of this['_findSuggestions'](_0x347186,'insertion'))_0x37c185['isOwn']&&!_0x37c185['isNextTo']&&_0x296712['add'](_0x1c204b);for(const _0x13afd9 of _0x296712)if(_0x13afd9['isMultiRange']){const _0x4d7205=_0x13afd9['getRanges']();(!_0x13afd9['attributes']||!_0x13afd9['attributes']['skipNestingCheck'])&&(_0x4d7205['every'](_0x433b18=>_0x347186['some'](_0x301c8c=>_0x301c8c['containsRange'](_0x433b18,!0x0)))&&_0x13afd9['discard']());if(_0x347186['every'](_0x2e520f=>_0x4d7205['some'](_0x3e8890=>_0x3e8890['containsRange'](_0x2e520f,!0x0)))){const _0x179944=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5d7e39,'accept');return this['forceDefaultExecution'](()=>_0x179944(_0x1ad4e8,null,_0x9d83df)),null;}}else{const _0x2096cb=_0x13afd9['getFirstRange']();_0x347186['some'](_0x29179c=>_0x29179c['containsRange'](_0x2096cb,!0x0))&&_0x13afd9['discard']();if(_0x347186['every'](_0x1168ad=>_0x2096cb['containsRange'](_0x1168ad,!0x0))){const _0x2675a2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5d7e39,'accept');return this['forceDefaultExecution'](()=>_0x2675a2(_0x347186,null,_0x9d83df)),null;}}const _0x343447=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5d7e39,'join');let _0x53dc5f=null;for(const _0x2bcf59 of this['getSuggestions']())if(_0x2bcf59['author']['id']==_0x5c4f79['id']&&_0x2bcf59['isInContent']&&'deletion'==_0x2bcf59['type']&&_0x2bcf59['subType']==_0x5d7e39&&Xt(_0x2bcf59,_0x9d83df)&&(_0x343447(_0x2bcf59['getRanges'](),_0x347186)||_0x343447(_0x347186,_0x2bcf59['getRanges']()))){if(_0x53dc5f){if(_0x2bcf59['commentThread']&&_0x2bcf59['commentThread']['length'])continue;for(const _0x1cdbc3 of _0x2bcf59['getRanges']())_0x53dc5f['isIntersectingWithRange'](_0x1cdbc3)||_0x53dc5f['addRange'](_0x1cdbc3);_0x2bcf59['removeMarkers']();}else{_0x53dc5f=_0x2bcf59;for(const _0x2f6374 of _0x347186)_0x2bcf59['isIntersectingWithRange'](_0x2f6374)||_0x2bcf59['addRange'](_0x2f6374);}}if(_0x53dc5f)return _0x53dc5f;_0x296712['clear']();for(const {suggestion:_0xbeb82b,meta:_0x582eff}of this['_findSuggestions'](_0x347186,'deletion'))_0x582eff['isOwn']&&(this['_mergeNestedSuggestions']||!_0x582eff['containsRangeInObject']&&!_0x582eff['isInsideObject'])&&Xt(_0xbeb82b,_0x9d83df)&&_0x296712['add'](_0xbeb82b);for(const _0x53d1bf of _0x296712){const _0x3eb8fe=_0x53d1bf['getRanges']();if(!_0x9d83df||!_0x9d83df['skipNestingCheck']){if(_0x347186['every'](_0x4a13ba=>_0x3eb8fe['some'](_0x2e6c5c=>_0x2e6c5c['containsRange'](_0x4a13ba,!0x0))))return _0x53d1bf;}(!_0x53d1bf['attributes']||!_0x53d1bf['attributes']['skipNestingCheck'])&&(_0x3eb8fe['every'](_0x412844=>_0x347186['some'](_0x184ba7=>_0x184ba7['containsRange'](_0x412844,!0x0)))&&_0x53d1bf['discard']());}const _0x55b557=_0x19e4b0(),_0x2ed169=_0x5c4f79['id'],_0x1eeb72='deletion:'+_0x5d7e39,_0x45151a=this['_setSuggestionData']({'id':_0x55b557,'type':_0x1eeb72,'createdAt':new Date(),'authorId':_0x2ed169,'attributes':_0x9d83df});for(const _0x26cacb of _0x347186)_0x26cacb['detach'](),_0x26cacb['isCollapsed']||'$graveyard'==_0x26cacb['root']['rootName']||this['_addSuggestionMarker'](_0x1eeb72,_0x55b557,_0x2ed169,_0x26cacb,T['getMultiRangeId']());return _0x45151a;}['markAttributeChange'](_0x5be5a7,_0x16e8b0,_0x28ff95,_0x1b32e6,_0x27bb43){if(_0x5be5a7['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x8a2f6b=this['editor']['plugins']['get']('Users')['me']['id'],_0x24eb62=Array['from'](this['_suggestions']['values']())['filter'](_0x824ddc=>'attribute'==_0x824ddc['type']&&_0x824ddc['data']['key']==_0x16e8b0&&_0x824ddc['isIntersectingWithRange'](_0x5be5a7));if(this['_trackingSessionId']&&(_0x27bb43['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x3a126a=this['_findSuggestions'](_0x5be5a7,'insertion')['filter'](({meta:_0x503ec1})=>_0x503ec1['isOwn']&&!_0x503ec1['isInsideObject']&&!_0x503ec1['isNextTo'])['map'](({suggestion:_0x22d71e})=>_0x22d71e);_0x24eb62['unshift'](..._0x3a126a);}const _0x182230=new Map([[_0x5be5a7,_0x28ff95]]);for(const _0x1c0173 of _0x24eb62){const _0x4ad41d='attribute'==_0x1c0173['type']?_0x1c0173['data']['oldValue']:void 0x0,_0x585f86=_0x1c0173['getFirstRange'](),_0x253a7e=Array['from'](_0x182230['keys']())['find'](_0x130797=>_0x130797['isIntersecting'](_0x585f86));if(!_0x253a7e)continue;const _0x92bc6e=_0x253a7e['getDifference'](_0x585f86);this['_isBlockAttribute'](_0x16e8b0)&&'insertion'==_0x1c0173['type']&&0x0!=_0x92bc6e['length']||(_0x182230['delete'](_0x253a7e),_0x92bc6e['forEach'](_0x238266=>{_0x182230['set'](_0x238266,_0x28ff95);}),'insertion'!=_0x1c0173['type']&&_0x4ad41d!=_0x1b32e6&&_0x182230['set'](_0x253a7e['getIntersection'](_0x585f86),_0x4ad41d));}const _0x1b68e4=[];for(const [_0x34ce85,_0x544829]of _0x182230){const _0x3d223c=_0x19e4b0(),_0x3c74a8={'key':_0x16e8b0,'oldValue':_0x544829,'newValue':_0x1b32e6};_0x16e8b0['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':_0x16e8b0});const _0x1228f8=('attribute:'+(_0x16e8b0+'|'+Lt({'newValue':_0x1b32e6})))['substring'](0x0,0x3c),_0x333ba2=this['_setSuggestionData']({'id':_0x3d223c,'type':_0x1228f8,'data':_0x3c74a8,'createdAt':new Date(),'authorId':_0x8a2f6b,'attributes':_0x27bb43});_0x1b68e4['push'](_0x333ba2),this['_addSuggestionMarker'](_0x1228f8,_0x3d223c,_0x8a2f6b,_0x34ce85);}return _0x1b68e4;}['enableDefaultAttributesIntegration'](_0x5d18bc){this['enableCommand'](_0x5d18bc,(_0x49de6d,..._0x1adfd1)=>{this['recordAttributeChanges'](()=>{_0x49de6d(..._0x1adfd1);});});}['registerBlockAttribute'](_0x365163){this['_blockAttributeKeys']['add'](_0x365163);}['registerInlineAttribute'](_0xb8dd3b){this['_inlineAttributeKeys']['add'](_0xb8dd3b);}['startTrackingSession'](_0x1cfabc){return this['_trackingSessionId']=void 0x0!==_0x1cfabc?_0x1cfabc:_0x19e4b0(),this['_trackingSessionId'];}['_getAttributeKey'](_0x40fc3f){return'attribute'==_0x40fc3f['type']?_0x40fc3f['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x39bc95,_0x20ac2b){const _0x4ca120=_0x39bc95['getFirstMarker']();this['_model']['change'](_0x54f526=>{_0x54f526['updateMarker'](_0x4ca120,{'range':_0x20ac2b});});}['_addThreadToSuggestion'](_0x5655f9){const _0x18dda9=_0x5655f9['id'],_0x5f0df6=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x18dda9)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5f0df6,'threadId':_0x18dda9,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1e4066=this['_commentsRepository']['getCommentThread'](_0x18dda9);_0x1e4066['unbind']('isRemovable'),_0x1e4066['isRemovable']=!0x1,_0x5655f9['commentThread']=_0x1e4066;}['_checkSuggestionCorrectness'](_0x1e3a83,_0xe83799,_0x4e43a2,_0x14286c){if(_0x1e3a83['type']!=_0xe83799||_0x1e3a83['subType']!=_0x4e43a2||_0x1e3a83['creator']['id']!=_0x14286c)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x27da15('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x157471,_0x35144c){const _0x29dffc=_0x157471['getFirstRange']();if(_0x35144c['isEqual'](_0x29dffc))_0x157471['removeMarkers']();else{if(_0x29dffc['containsRange'](_0x35144c)){const _0x563980=this['_model']['createPositionAt'](_0x35144c['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x157471,this['_model']['createRange'](_0x29dffc['start'],_0x563980));const _0x14bd04=_0x19e4b0(),_0x451f28=_0x157471['creator']['id'],_0x5580d3=_0x157471['type']+':'+_0x157471['subType'];this['_setSuggestionData']({'id':_0x14bd04,'type':_0x5580d3,'createdAt':new Date(),'authorId':_0x451f28,'data':_0x157471['data'],'attributes':_0x157471['attributes']});const _0x20336f=this['_model']['createPositionAt'](_0x35144c['end']['parent'],'after'),_0x382f06=this['_model']['createRange'](_0x20336f,_0x29dffc['end']);this['_addSuggestionMarker'](_0x5580d3,_0x14bd04,_0x451f28,_0x382f06);}else{if(_0x29dffc['containsPosition'](_0x35144c['start'])){const _0x144074=this['_model']['createPositionAt'](_0x35144c['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x157471,this['_model']['createRange'](_0x29dffc['start'],_0x144074));}else{const _0x1df164=this['_model']['createPositionAt'](_0x35144c['end']['parent'],'after');this['_setSuggestionRange'](_0x157471,this['_model']['createRange'](_0x1df164,_0x29dffc['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x5376bb){for(const {suggestion:_0x7df612,meta:_0x572742}of this['_findSuggestions'](_0x5376bb,'insertion')){if(!_0x572742['isOwn'])continue;const _0xf80932=_0x7df612['getRanges']();for(const _0x12fe6d of _0xf80932)if(!_0x5376bb['getDifference'](_0x12fe6d)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x17200d){return this['editor']['plugins']['get']('Users')['getUser'](_0x17200d);}['_getExternalAuthor'](_0x556268){const _0x9de5bf=this['editor']['plugins']['get']('Users'),_0xaf5448=_0x5bbcb2('external:'+_0x556268),_0x31d2d0=_0x9de5bf['getUser'](_0xaf5448);return _0x31d2d0||_0x9de5bf['addUser']({'id':_0xaf5448,'name':_0x556268});}['_createSuggestion'](_0x2f7bb1,_0x13d5f9,_0x44e8ee,_0x415fc7,_0x487999,_0x3739e8){const _0x4e4c5b=this['_getAuthorFromId'](_0x415fc7);if(!_0x4e4c5b)throw new _0x27da15('track-changes-user-not-found',this,{'authorId':_0x415fc7,'suggestionId':_0x44e8ee});const _0x1d0f60=this['_suggestionFactory']['buildSuggestion'](_0x2f7bb1,_0x13d5f9,_0x44e8ee,_0x4e4c5b,_0x487999,_0x145a72=>{this['_updateSuggestionData'](_0x44e8ee,{'attributes':_0x145a72});const _0x4eaa6b=this['getSuggestion'](_0x44e8ee);this['_joinWithAdjacentSuggestions'](new Set([_0x4eaa6b])),this['_refreshSuggestionsChain'](new Set([_0x4eaa6b]));},_0x3739e8);return this['listenTo'](_0x1d0f60,'accept',()=>{this['_updateSuggestionData'](_0x44e8ee,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x1d0f60,'discard',()=>{this['_updateSuggestionData'](_0x44e8ee,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x44e8ee,_0x1d0f60),this['_suggestionState']['set'](_0x1d0f60,'notReady'),_0x1d0f60;}['_splitMarkerName'](_0x8fcfe5){const _0x3d639f=_0x8fcfe5['split'](':');return{'group':_0x3d639f[0x0],'type':_0x3d639f[0x1],'subType':_0x3d639f['length']>=0x5?_0x3d639f[0x2]:null,'id':_0x3d639f['length']<0x5?_0x3d639f[0x2]:_0x3d639f[0x3],'authorId':_0x3d639f['length']<0x5?_0x3d639f[0x3]:_0x3d639f[0x4],'markerCount':0x6==_0x3d639f['length']?_0x3d639f[0x5]:null};}['_breakSuggestionMarker'](_0xb7992c,_0x433c6b,_0x4fc030){const _0x181e92=_0xb7992c['getFirstRange'](),_0x36c6ba=_0x181e92['start'],_0x37f367=_0x181e92['end'];this['_setSuggestionRange'](_0xb7992c,this['_model']['createRange'](_0x36c6ba,_0x433c6b));const _0x4ebaae=_0x19e4b0(),_0x59d940=_0xb7992c['creator']['id'],_0x1f1ee7=_0xb7992c['type']+(_0xb7992c['subType']?':'+_0xb7992c['subType']:'');this['_setSuggestionData']({'id':_0x4ebaae,'type':_0x1f1ee7,'createdAt':new Date(),'authorId':_0x59d940,'originalSuggestionId':_0xb7992c['_originalSuggestionId']||_0xb7992c['id'],'attributes':_0xb7992c['attributes'],'data':_0xb7992c['data']});const _0x45956e=this['_getAttributeKey'](_0xb7992c);('formatBlock'==_0xb7992c['type']||_0x45956e&&this['_isBlockAttribute'](_0x45956e))&&(_0x4fc030=this['_model']['createPositionBefore'](_0x4fc030['parent'])),this['_addSuggestionMarker'](_0x1f1ee7,_0x4ebaae,_0x59d940,this['_model']['createRange'](_0x4fc030,_0x37f367));}['_findSuggestions'](_0x5f3df4,_0x135bbd=null){const _0x146928=[],_0x1e2e8f=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x5f3df4)||(_0x5f3df4=[_0x5f3df4]);for(const _0x460499 of this['getSuggestions']()){if(!_0x460499['isInContent'])continue;if(_0x135bbd&&_0x460499['type']!=_0x135bbd)continue;let _0x5e0e5d=!0x1;for(const _0x433e86 of _0x460499['getRanges']()){for(const _0x16e5f6 of _0x5f3df4){const _0x5d5062=_0x16e5f6['start']['isEqual'](_0x433e86['end'])||_0x16e5f6['end']['isEqual'](_0x433e86['start']);if(_0x5d5062||_0x16e5f6['getIntersection'](_0x433e86)){const _0x2bea9b=_0x16e5f6['containsRange'](_0x433e86)&&Ft(this['_model']['schema'],_0x433e86['start'],_0x16e5f6),_0x272157=_0x433e86['containsRange'](_0x16e5f6)&&Ft(this['_model']['schema'],_0x16e5f6['start'],_0x433e86);_0x146928['push']({'suggestion':_0x460499,'meta':{'isOwn':_0x1e2e8f==_0x460499['author'],'isNextTo':_0x5d5062,'isInsideObject':_0x2bea9b,'containsRangeInObject':_0x272157}}),_0x5e0e5d=!0x0;break;}}if(_0x5e0e5d)break;}}return _0x146928;}['_addSuggestionMarker'](_0x3edc88,_0x496060,_0x4e84a3,_0x52fe9c,_0x27dd08){this['_model']['change'](_0x22c6b3=>{let _0x102b83='suggestion:'+_0x3edc88+':'+_0x496060+':'+_0x4e84a3;_0x27dd08&&(_0x102b83=_0x102b83+':'+_0x27dd08),_0x22c6b3['addMarker'](_0x102b83,{'range':_0x52fe9c,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x536e2d){const _0x5aae6c=_0x536e2d['previous'],_0x1a2f9f=_0x536e2d['next'];_0x536e2d['previous']=null,_0x536e2d['next']=null,null!=_0x5aae6c&&_0x5aae6c['next']==_0x536e2d&&(_0x5aae6c['next']=_0x1a2f9f),null!=_0x1a2f9f&&_0x1a2f9f['previous']==_0x536e2d&&(_0x1a2f9f['previous']=_0x5aae6c),'ready'==this['_suggestionState']['get'](_0x536e2d)&&(this['_suggestionState']['set'](_0x536e2d,'removed'),this['fire']('suggestionUnloaded',_0x536e2d,_0x5aae6c,_0x1a2f9f));}['_setSuggestionData'](_0x12f3cc){const _0x404822=_0x12f3cc['id'],_0x3f78d9=this['addSuggestionData'](_0x12f3cc);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x484634=this['editor']['plugins']['get']('PendingActions'),_0x72e7ba=_0x3f78d9['hasComments'],_0xee7068=_0x3f78d9['subType']?_0x3f78d9['type']+':'+_0x3f78d9['subType']:_0x3f78d9['type'],_0x5932cb=this['editor']['locale'],_0x432b31=_0x484634['add'](o(_0x5932cb,'PENDING_ACTION_SUGGESTION')),_0x505a7a={'id':_0x404822,'type':_0xee7068,'hasComments':_0x72e7ba,'data':_0x12f3cc['data']||null,'originalSuggestionId':_0x12f3cc['originalSuggestionId']||null,'attributes':_0x3f78d9['attributes']};this['_adapter']['addSuggestion'](_0x505a7a)['then'](_0x5016bf=>{_0x3f78d9['_saved']=!0x0,_0x484634['remove'](_0x432b31),_0x5016bf&&_0x5016bf['createdAt']&&(this['_suggestions']['get'](_0x404822)['createdAt']=_0x5016bf['createdAt']);})['catch'](_0x516682=>{throw _0x1fbb84('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x3f78d9['discard']();}),_0x3f78d9['stopListening'](),this['_suggestions']['delete'](_0x3f78d9['id']),this['_suggestionState']['delete'](_0x3f78d9),_0x516682;});}return _0x3f78d9;}['_isBlockAttribute'](_0x3c4f2f){return this['_blockAttributeKeys']['has'](_0x3c4f2f);}['_isInlineAttribute'](_0x22172a){return this['_inlineAttributeKeys']['has'](_0x22172a);}['_updateSuggestionData'](_0x2f3d0d,_0x1068e1){const _0x18eb98=this['editor']['plugins']['get']('PendingActions'),_0x29dab4=this['getSuggestion'](_0x2f3d0d);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x29dab4['_saved']){const _0x231afc=_0x18eb98['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2f3d0d,_0x1068e1)['then'](()=>{_0x18eb98['remove'](_0x231afc);});}else _0x29dab4['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2f3d0d,_0x1068e1);});}}['_getSuggestionData'](_0x379186){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x27da15('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x379186);}['_handleNewSuggestionMarker'](_0x2278c1){const {id:_0x47b0bc,type:_0x512e79,subType:_0xd2a61f,authorId:_0x3df560}=this['_splitMarkerName'](_0x2278c1),_0x40e7b2=this['_suggestions']['get'](_0x47b0bc)||this['_createSuggestion'](_0x512e79,_0xd2a61f,_0x47b0bc,_0x3df560,{});switch(this['_checkSuggestionCorrectness'](_0x40e7b2,_0x512e79,_0xd2a61f,_0x3df560),this['_suggestionState']['get'](_0x40e7b2)){case'notReady':this['_getSuggestionData'](_0x47b0bc)['then'](_0x3b5b33=>{let _0x4df4f3=Promise['resolve']();_0x3b5b33['hasComments']&&(_0x4df4f3=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x47b0bc})),_0x4df4f3['then'](()=>{this['addSuggestionData'](_0x3b5b33)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x40e7b2,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x47b0bc,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x40e7b2,'ready'),this['fire']('suggestionLoaded',_0x40e7b2);break;case'ready':this['fire']('suggestionChanged',_0x40e7b2);}return _0x40e7b2['addMarkerName'](_0x2278c1),_0x40e7b2;}['_refreshSuggestionsChain'](_0x343b06){const _0x5c0c9d=Array['from'](_0x343b06),_0x3a5eea=_0x5c0c9d['filter'](_0x2b3e6f=>'attribute'==_0x2b3e6f['type']);this['_refreshAttributeSuggestionsChain'](_0x3a5eea);const _0x2b41e6=_0x5c0c9d['filter'](_0x133345=>!_0x133345['isMultiRange']&&'attribute'!=_0x133345['type']),_0x4ed728=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xe0a65b=>!_0xe0a65b['isMultiRange']&&'attribute'!=_0xe0a65b['type']),_0x2887da=_0x4ed728['filter'](_0x4322b2=>!_0x343b06['has'](_0x4322b2)),_0x26dc37=new Map(_0x4ed728['map'](_0x5dc2eb=>[_0x5dc2eb,this['_suggestionFactory']['getSuggestionCallback'](_0x5dc2eb['type'],_0x5dc2eb['subType'],'chain')])),_0x253d66=new Map(_0x4ed728['map'](_0x303433=>[_0x303433,_0x303433['getFirstRange']()])),_0x2ffc93=new Set(),_0x4aabe3=new Set();for(let _0x1e119c=0x0;_0x1e119c<_0x2b41e6['length'];_0x1e119c++)_0x379bc8(_0x2b41e6[_0x1e119c],_0x2b41e6,_0x1e119c+0x1);for(let _0x35b593=0x0;_0x35b593<_0x2b41e6['length'];_0x35b593++)_0x379bc8(_0x2b41e6[_0x35b593],_0x2887da,0x0);const _0x55cd9d=new Set();for(let _0x97ca4d=0x0;_0x97ca4d<_0x2b41e6['length'];_0x97ca4d++){const _0x5f24f4=_0x2b41e6[_0x97ca4d];!_0x4aabe3['has'](_0x5f24f4)&&_0x5f24f4['previous']&&(_0x55cd9d['add'](_0x5f24f4['previous']),_0x5f24f4['previous']['next']===_0x5f24f4&&(_0x5f24f4['previous']['next']=null),_0x5f24f4['previous']=null),!_0x2ffc93['has'](_0x5f24f4)&&_0x5f24f4['next']&&(_0x55cd9d['add'](_0x5f24f4['next']),_0x5f24f4['next']['previous']===_0x5f24f4&&(_0x5f24f4['next']['previous']=null),_0x5f24f4['next']=null);}function _0x379bc8(_0x58fa5e,_0x5649e6,_0x14edd8){for(let _0xb66e61=_0x14edd8;_0xb66e61<_0x5649e6['length'];_0xb66e61++){const _0x26404d=_0x49aa71(_0x58fa5e,_0x5649e6[_0xb66e61]);_0x26404d&&(_0x26404d[0x0]['next']=_0x26404d[0x1],_0x26404d[0x1]['previous']=_0x26404d[0x0],_0x2ffc93['add'](_0x26404d[0x0]),_0x4aabe3['add'](_0x26404d[0x1]));}}function _0x49aa71(_0x30bc70,_0x285266){if(_0x30bc70['author']['id']!==_0x285266['author']['id'])return null;const _0x4cb20d=_0x26dc37['get'](_0x30bc70)(_0x30bc70,_0x285266,_0x253d66['get'](_0x30bc70),_0x253d66['get'](_0x285266));if(!_0x4cb20d)return null;return _0x26dc37['get'](_0x285266)(_0x30bc70,_0x285266,_0x253d66['get'](_0x30bc70),_0x253d66['get'](_0x285266))?_0x4cb20d[0x1]['commentThread']&&_0x4cb20d[0x1]['commentThread']['length']?null:_0x4cb20d:null;}_0x55cd9d['size']&&this['_refreshSuggestionsChain'](_0x55cd9d);}['_refreshAttributeSuggestionsChain'](_0x536056){if(0x0==_0x536056['length'])return;const _0xca7061=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1febce=>'attribute'==_0x1febce['type']&&_0x1febce['_isDataLoaded']),_0x47e788=[],_0xd5f3d3=new Map();for(const _0x2e0ac1 of _0xca7061){const _0x4ad84c=_0x5bbcb2(_0x2e0ac1['attributes']);_0xd5f3d3['has'](_0x4ad84c)||(_0xd5f3d3['set'](_0x4ad84c,_0x47e788['length']),_0x47e788['push']([]));const _0x59c554=_0xd5f3d3['get'](_0x4ad84c);_0x47e788[_0x59c554]['push'](_0x2e0ac1);}!(function(){_0x47e788['sort']((_0x4f49d3,_0x4afb4c)=>{const _0x54c461=_0x4f49d3[0x0]['createdAt'],_0x28bf8a=_0x4afb4c[0x0]['createdAt'];return _0x54c461==_0x28bf8a?_0x4f49d3[0x0]['attributes']['groupId']<_0x4afb4c[0x0]['attributes']['groupId']?-0x1:0x1:_0x54c461<_0x28bf8a?-0x1:0x1;});for(const _0x4cb02a of _0x47e788)_0x4cb02a['sort']((_0x5655ad,_0x2da22e)=>_0x5655ad['id']<_0x2da22e['id']?-0x1:0x1);}());for(let _0x4fc096=0x0;_0x4fc096<_0x47e788['length'];_0x4fc096++){if(0x0==_0x47e788[_0x4fc096]['length'])continue;const _0x483c79=[];for(let _0xbebdb6=_0x4fc096+0x1;_0xbebdb6<_0x47e788['length'];_0xbebdb6++)0x0!=_0x47e788[_0xbebdb6]['length']&&_0x54e7b0(_0x47e788[_0x4fc096],_0x47e788[_0xbebdb6])&&_0x483c79['push'](_0xbebdb6);for(const _0xa0c5b4 of _0x483c79)_0x47e788[_0x4fc096]=_0x47e788[_0x4fc096]['concat'](_0x47e788[_0xa0c5b4]),_0x47e788[_0xa0c5b4]=[];}for(const _0x94f4b of _0x47e788)for(let _0x1897d9=0x0;_0x1897d9<_0x94f4b['length'];_0x1897d9++){const _0x1de65d=_0x94f4b[_0x1897d9+0x1]||null;_0x94f4b[_0x1897d9]['next']!==_0x1de65d&&(_0x94f4b[_0x1897d9]['next']=_0x1de65d);}for(const _0x4d8433 of _0x47e788)for(let _0x333bd7=0x0;_0x333bd7<_0x4d8433['length'];_0x333bd7++){const _0x3ad5e2=_0x4d8433[_0x333bd7-0x1]||null;_0x4d8433[_0x333bd7]['previous']!==_0x3ad5e2&&(_0x4d8433[_0x333bd7]['previous']=_0x3ad5e2);}function _0x54e7b0(_0x40c29a,_0x2c959a){if(_0x40c29a[0x0]['attributes']['groupId']!==_0x2c959a[0x0]['attributes']['groupId']&&_0x40c29a[0x0]['author']!==_0x2c959a[0x0]['author'])return!0x1;if(!function(_0x5e5a14,_0x1b2739){if(!_0x5e5a14['hasComments']&&!_0x1b2739['hasComments'])return!0x0;if(_0x5e5a14['hasComments']&&_0x1b2739['hasComments'])return!0x1;if(_0x5e5a14['hasComments']&&_0x1b2739['createdAt']<_0x5e5a14['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x1b2739['hasComments']&&_0x5e5a14['createdAt']<_0x1b2739['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x40c29a[0x0],_0x2c959a[0x0]))return!0x1;const _0x5a17cf=Ut(_0x40c29a[0x0]['attributes'],['groupId','trackingSessionId']),_0x2d8a16=Ut(_0x2c959a[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x29d605(_0x5a17cf,_0x2d8a16))return!0x1;if(_0x40c29a[0x0]['attributes']['groupId']==_0x2c959a[0x0]['attributes']['groupId'])return!0x0;if(_0x40c29a[0x0]['attributes']['trackingSessionId']!==_0x2c959a[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x40c29a['every'](_0x5e0207=>_0x2c959a['some'](_0x43b48d=>_0x5e0207['getFirstRange']()['isEqual'](_0x43b48d['getFirstRange']())))&&_0x2c959a['every'](_0x472fc4=>_0x40c29a['some'](_0x3c97f6=>_0x472fc4['getFirstRange']()['isEqual'](_0x3c97f6['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x1276e1){const _0x3a178d=Array['from'](_0x1276e1),_0x7e2975=this['getSuggestions']({'skipNotAttached':!0x0}),_0xafe23c=_0x7e2975['filter'](_0xc31bf2=>!_0x1276e1['has'](_0xc31bf2)),_0x4997af=new Map(_0x3a178d['map'](_0x3a9dc6=>[_0x3a9dc6,this['_suggestionFactory']['getSuggestionCallback'](_0x3a9dc6['type'],_0x3a9dc6['subType'],'join')])),_0x189d99=new Map(_0x7e2975['map'](_0x34afbf=>[_0x34afbf,_0x34afbf['getRanges']()]));for(let _0x45da7c=0x0;_0x45da7c<_0x3a178d['length'];_0x45da7c++){if(_0x23edb8(this,_0x3a178d[_0x45da7c],_0x3a178d,_0x45da7c+0x1))return!0x0;}for(let _0x22b3e2=0x0;_0x22b3e2<_0x3a178d['length'];_0x22b3e2++){if(_0x23edb8(this,_0x3a178d[_0x22b3e2],_0xafe23c,0x0))return!0x0;}return!0x1;function _0x23edb8(_0x6ae040,_0x107817,_0x356394,_0x228d41){for(let _0x43c1c6=_0x228d41;_0x43c1c6<_0x356394['length'];_0x43c1c6++){const _0x22af16=_0x356394[_0x43c1c6];if(_0x22af16['type']!==_0x107817['type']||_0x22af16['author']['id']!==_0x107817['author']['id']||_0x22af16['subType']!==_0x107817['subType'])continue;if(!Qt(_0x107817,_0x22af16))continue;if('attribute'==_0x107817['type']&&_0x107817['data']['oldValue']!=_0x22af16['data']['oldValue'])continue;if('attribute'==_0x107817['type']&&_0x6ae040['_isBlockAttribute'](_0x107817['data']['key']))continue;if('formatBlock'==_0x107817['type']){const _0x542d66=_0x6ae040['editor']['model'],_0x1401a7=_0x107817['getContainedElement']();if(_0x1401a7&&(_0x542d66['schema']['isObject'](_0x1401a7)||_0x542d66['schema']['isLimit'](_0x1401a7)))continue;}const _0x5bc557=_0x4997af['get'](_0x107817),_0x1828c7=_0x189d99['get'](_0x107817),_0x573610=_0x189d99['get'](_0x22af16),_0x256c86=_0x107817['commentThread']&&_0x107817['commentThread']['length'],_0x3d21e5=_0x22af16['commentThread']&&_0x22af16['commentThread']['length'];if(!_0x256c86&&_0x5bc557(_0x573610,_0x1828c7))return _0x6ae040['_joinSuggestions'](_0x22af16,_0x107817),_0x189d99['delete'](_0x107817),!0x0;if(!_0x3d21e5&&_0x5bc557(_0x1828c7,_0x573610))return _0x6ae040['_joinSuggestions'](_0x107817,_0x22af16),_0x189d99['delete'](_0x22af16),!0x0;}return!0x1;}}['_joinSuggestions'](_0x50e4a3,_0x3336bf){if(_0x50e4a3['isMultiRange']){for(const _0x1d18b7 of _0x3336bf['getRanges']())_0x50e4a3['addRange'](_0x1d18b7);}else{const _0x7daf48=_0x3336bf['getFirstRange']()['end'];this['_setSuggestionRange'](_0x50e4a3,this['_model']['createRange'](_0x50e4a3['getFirstRange']()['start'],_0x7daf48));}_0x3336bf['removeMarkers']();}['_getMarkerAnnouncementText'](_0x139924,_0x2fb3f7,_0x2593b0){const _0x501bb4=_0x139924['startsWith']('format')||_0x139924['startsWith']('attribute')?'FORMATTING':_0x139924['toUpperCase']();return o(this['editor']['locale'],_0x2fb3f7+'_'+_0x501bb4+'_SUGGESTION_ANNOUNCEMENT',_0x2593b0);}['_initAriaMarkerChangeAnnouncements'](){const _0x1071b2=this['editor'];if(!_0x1071b2['ui'])return;const {ariaLiveAnnouncer:_0x1abe66}=_0x1071b2['ui'];_0x6f253a(this['_model'],({left:_0x55ae8a,entered:_0x4edaf0})=>{for(const _0xfe8cd5 of _0x55ae8a){const {group:_0x5e2977,type:_0x4a8461}=this['_splitMarkerName'](_0xfe8cd5['name']);if('suggestion'===_0x5e2977){_0x1abe66['announce'](this['_getMarkerAnnouncementText'](_0x4a8461,'LEAVE'));break;}}for(const _0x4b3742 of _0x4edaf0){const {group:_0x2bccdb,type:_0xa38f6d}=this['_splitMarkerName'](_0x4b3742['name']);if('suggestion'===_0x2bccdb){_0x1abe66['announce'](this['_getMarkerAnnouncementText'](_0xa38f6d,'ENTER',_0x18ffdb(_0x4899a8)));break;}}});}['_processAttributeChanges'](_0xe4c784){if(this['_recordAttributeSuggestions'])return!0x1;const _0x2c6045=this['editor'],_0x452dc3=_0x2c6045['model']['document']['differ']['getChanges']();if(0x0==_0x452dc3['length'])return!0x1;const _0x277fd0=[],_0x1115d4=_0x452dc3['filter'](_0xea3a50=>'attribute'==_0xea3a50['type']),_0x1298ef=_0x452dc3['filter'](_0x1a78cb=>'insert'==_0x1a78cb['type']&&'$text'!=_0x1a78cb['name']),_0x55263e=_0x452dc3['filter'](_0x4f8298=>'remove'==_0x4f8298['type']&&'$text'!=_0x4f8298['name']);for(const _0x3c1bdb of _0x1115d4)_0x277fd0['push']({'key':_0x3c1bdb['attributeKey'],'newValue':_0x3c1bdb['attributeNewValue'],'oldValue':_0x3c1bdb['attributeOldValue'],'range':qt(_0x3c1bdb['range'],_0x2c6045['model'])});for(const _0x24fd6b of _0x1298ef){const _0x1c90c5=_0x55263e['find'](_0x26f35b=>_0x26f35b['position']['isEqual'](_0x24fd6b['position']));_0x1c90c5&&_0x277fd0['push']({'key':m,'newValue':_0x24fd6b['name'],'oldValue':_0x1c90c5['name'],'range':_0x2c6045['model']['createRangeOn'](_0x24fd6b['position']['nodeAfter'])});}return 0x0!=_0x277fd0['length']&&this['_reduceExistingSuggestions'](_0xe4c784,_0x277fd0);}['_processAttributeSuggestions'](_0x4f9c59){let _0x4bd34e=!0x1;const _0x2c8dcd=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x11fb8e=>_0x11fb8e['data']['newRange']&&_0x11fb8e['name']['startsWith']('suggestion:attribute:'));for(const _0x264d56 of _0x2c8dcd){const {subType:_0x18efc4,id:_0x407c10}=this['_splitMarkerName'](_0x264d56['name']),_0x7598eb=_0x18efc4['split']('|')[0x0];for(const _0x9cbfd6 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x9cbfd6['id']!=_0x407c10&&'attribute'==_0x9cbfd6['type']&&_0x9cbfd6['data']&&_0x9cbfd6['data']['key']==_0x7598eb&&_0x9cbfd6['getFirstRange']()['isIntersecting'](_0x264d56['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x9cbfd6,_0x264d56['data']['newRange'],_0x4f9c59),_0x4bd34e=!0x0);}return _0x4bd34e;}['recordAttributeChanges'](_0x5b4469){this['_recordAttributeSuggestions']=!0x0,_0x5b4469();}['_isRegisteredAttribute'](_0x71ad3e){const _0x4a0dc9=this['_isBlockAttribute'](_0x71ad3e),_0x24f907=this['_isInlineAttribute'](_0x71ad3e);return _0x4a0dc9||_0x24f907;}['_reduceExistingSuggestions'](_0x3c8529,_0x2b69f2){if(0x0==_0x2b69f2['length'])return!0x1;let _0x3fb6ac=!0x1;for(const _0x58afe5 of _0x2b69f2){const _0x40d735=this['_findSuggestions'](_0x58afe5['range'],'attribute')['filter'](_0x5bd5df=>!_0x5bd5df['meta']['isNextTo'])['map'](_0x3ded64=>_0x3ded64['suggestion']),_0xbd3984=_0x5bbcb2({'newValue':_0x58afe5['newValue']});_0x40d735['filter'](_0x37c9d5=>{const [_0x5f00c3,_0x13ea3b]=_0x37c9d5['subType']['split']('|');return _0x5f00c3==_0x58afe5['key']&&_0x13ea3b!=_0xbd3984;})['forEach'](_0x32c8e5=>{this['_reduceSuggestionAttributeRange'](_0x32c8e5,_0x58afe5['range'],_0x3c8529),_0x3fb6ac=!0x0;});}return _0x3fb6ac;}['_reduceSuggestionAttributeRange'](_0x3925f5,_0x24c6e7,_0x402b07){const _0x59e792=_0x3925f5['getFirstRange']()['getDifference'](_0x24c6e7);0x0!==_0x59e792['length']?0x1!==_0x59e792['length']?this['_breakSuggestionMarker'](_0x3925f5,_0x24c6e7['start'],_0x24c6e7['end']):this['_setSuggestionRange'](_0x3925f5,_0x59e792[0x0]):_0x402b07['removeMarker'](_0x3925f5['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x344a51){this['_editor']=_0x344a51,this['_model']=_0x344a51['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x3e5a3f,_0x25b12b,_0x113c28,_0x38c705,_0x2cc99f,_0x369083,_0x596629){return new T(this['_model'],{'type':_0x3e5a3f,'subType':_0x25b12b,'id':_0x113c28,'originalSuggestionId':_0x596629,'author':_0x38c705,'creator':_0x38c705,'attributes':_0x2cc99f,'onAttributesChange':_0x369083,'onAccept':(..._0x5b65ed)=>this['getSuggestionCallback'](_0x3e5a3f,_0x25b12b,'accept')(..._0x5b65ed),'onDiscard':(..._0x327c61)=>this['getSuggestionCallback'](_0x3e5a3f,_0x25b12b,'discard')(..._0x327c61)});}['registerCustomCallback'](_0x6507f1,_0x2410ca,_0x448362,_0x1ae80b){const _0x2b305e=_0x6507f1+':'+_0x2410ca+':'+_0x448362;this['_customCallbacks']['set'](_0x2b305e,_0x1ae80b);}['getSuggestionCallback'](_0x5e2670,_0x4ff166,_0xcb6248){const _0x83636e=_0x5e2670+':'+_0x4ff166+':'+_0xcb6248;return this['_customCallbacks']['get'](_0x83636e)||this['_defaultCallbacks']['get'](_0x5e2670+':'+_0xcb6248);}['_registerDefaultCallbacks'](){const _0x49b91c=()=>!0x1,_0x504ba6=_0x52fc6f=>{_0x52fc6f['sort']((_0x195f3b,_0x414f9f)=>_0x195f3b['start']['isBefore'](_0x414f9f['start'])?0x1:-0x1),this['_model']['change'](_0x142470=>{for(const _0x3623ae of _0x52fc6f){let _0x5ee351;_0x5ee351=_0x3623ae['end']['isAtEnd']&&_0x3623ae['end']['parent']==_0x3623ae['start']['nodeAfter']?_0x142470['createSelection'](_0x3623ae['start']['nodeAfter'],'on'):_0x142470['createSelection'](_0x3623ae),this['_model']['deleteContent'](_0x5ee351,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x120989=(_0xa63b8a,_0x5a47f5)=>{_0x5a47f5&&this['_model']['change'](_0x4dd128=>{const {commandName:_0x248864,commandParams:_0x2cc1a0=[]}=_0x5a47f5,_0x267d7e=_0xa63b8a['map'](_0xa017f9=>(Pt(_0xa017f9)&&(_0xa017f9=this['_model']['createRange'](_0xa017f9['end'])),_0xa017f9))['filter'](_0x41df77=>'$graveyard'!==_0x41df77['root']['rootName']);if(_0x267d7e['length']<0x1)return;const _0x32b7d7=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x900af1=>_0x26ed96['fromRange'](_0x900af1));_0x4dd128['setSelection'](_0x267d7e);for(const _0x1ee8bd of this['_editor']['commands']['commands']())_0x1ee8bd['refresh']();_0x2cc1a0['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x248864,..._0x2cc1a0);const _0x5582d8=_0x32b7d7['filter'](_0x30471e=>'$graveyard'!=_0x30471e['root']['rootName']);_0x5582d8['length']>0x0&&_0x4dd128['setSelection'](_0x5582d8);for(const _0x130a21 of _0x32b7d7)_0x130a21['detach']();});},_0x37f8bb=(_0xf4aed3,_0x514072)=>0x1==_0xf4aed3['length']&&0x1==_0x514072['length']&&_0xf4aed3[0x0]['end']['isEqual'](_0x514072[0x0]['start']),_0x1127dd=(_0x1c1f69,_0x37cef9,_0x2a293b,_0x4512f3)=>Wt(_0x1c1f69,_0x37cef9,_0x2a293b,_0x4512f3)?[_0x1c1f69,_0x37cef9]:Wt(_0x37cef9,_0x1c1f69,_0x4512f3,_0x2a293b)?[_0x37cef9,_0x1c1f69]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x49b91c),this['_defaultCallbacks']['set']('insertion:discard',_0x504ba6),this['_defaultCallbacks']['set']('insertion:join',_0x37f8bb),this['_defaultCallbacks']['set']('insertion:chain',_0x1127dd),this['_defaultCallbacks']['set']('deletion:accept',_0x504ba6),this['_defaultCallbacks']['set']('deletion:discard',_0x49b91c),this['_defaultCallbacks']['set']('deletion:join',_0x37f8bb),this['_defaultCallbacks']['set']('deletion:chain',_0x1127dd),this['_defaultCallbacks']['set']('formatInline:accept',_0x120989),this['_defaultCallbacks']['set']('formatInline:discard',_0x49b91c),this['_defaultCallbacks']['set']('formatInline:join',_0x37f8bb),this['_defaultCallbacks']['set']('formatInline:chain',_0x49b91c),this['_defaultCallbacks']['set']('formatBlock:accept',_0x120989),this['_defaultCallbacks']['set']('formatBlock:discard',_0x49b91c),this['_defaultCallbacks']['set']('formatBlock:join',_0x37f8bb),this['_defaultCallbacks']['set']('formatBlock:chain',_0x49b91c),this['_defaultCallbacks']['set']('attribute:accept',_0x49b91c),this['_defaultCallbacks']['set']('attribute:discard',(_0x33d457,_0x19593c)=>{if(!_0x19593c)return;const _0x274a89=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x3ef824=>{if(_0x19593c['key']==m)for(const _0x39d6e7 of _0x33d457){const _0x3a214f=_0x39d6e7['start']['nodeAfter'],_0x1a884=_0x19593c['oldValue'];_0x3ef824['rename'](_0x3a214f,_0x1a884);}else{if(_0x274a89['_isBlockAttribute'](_0x19593c['key'])){for(const _0x4d0296 of _0x33d457)void 0x0!==_0x19593c['oldValue']?_0x3ef824['setAttribute'](_0x19593c['key'],_0x19593c['oldValue'],_0x4d0296['start']['nodeAfter']):_0x3ef824['removeAttribute'](_0x19593c['key'],_0x4d0296['start']['nodeAfter']);}else{for(const _0x5786c7 of _0x33d457)_0x19593c['oldValue']?_0x3ef824['setAttribute'](_0x19593c['key'],_0x19593c['oldValue'],_0x5786c7):_0x3ef824['removeAttribute'](_0x19593c['key'],_0x5786c7);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x37f8bb);}}function Ft(_0x7ca7fb,_0xba5071,_0x3eb5aa){for(const _0xf80c27 of _0xba5071['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0xf80c27['root']==_0xf80c27)return!0x1;if(!_0x3eb5aa['containsItem'](_0xf80c27))return!0x1;if(_0x7ca7fb['isObject'](_0xf80c27)||_0x7ca7fb['isLimit'](_0xf80c27))return!0x0;}return!0x1;}function Pt(_0x732a50){return _0x732a50['end']['parent']==_0x732a50['start']['nodeAfter']&&_0x732a50['end']['isAtStart'];}function Gt(_0x52f6a3,_0x3ef220,_0x3e3045,_0x3bdf31){const _0x35da83=_0x16aa96=>!_0x16aa96['item']['is']('$textProxy')&&!_0x3bdf31['isObject'](_0x16aa96['item']),_0x2bd0d5=_0x52f6a3['start']['getLastMatchingPosition'](_0x35da83),_0x18b8c7=_0x52f6a3['end']['getLastMatchingPosition'](_0x35da83,{'direction':'backward'});return(!_0x52f6a3['start']['isEqual'](_0x2bd0d5)||!_0x52f6a3['end']['isEqual'](_0x18b8c7))&&(_0x2bd0d5['isBefore'](_0x18b8c7)?_0x3e3045['updateMarker'](_0x3ef220,{'range':_0x3e3045['createRange'](_0x2bd0d5,_0x18b8c7)}):_0x3e3045['removeMarker'](_0x3ef220),!0x0);}function Lt(_0x4f7f71){return _0x5bbcb2(_0x4f7f71);}function Jt(_0x1a8aba){const _0x4250a1=_0x1a8aba['start']['nodeAfter'];return _0x4250a1&&_0x4250a1['is']('element');}function Kt(_0x305945){return Pt(_0x305945)||function(_0x2fea89){return _0x2fea89['start']['parent']==_0x2fea89['end']['nodeBefore']&&_0x2fea89['start']['isAtEnd'];}(_0x305945);}function Ht(_0x4eeea7,_0x325905){try{const _0x1254d2=_0x4eeea7['getRange']();for(const _0x31fdef of _0x325905)if(_0x4eeea7!==_0x31fdef&&_0x1254d2&&_0x1254d2['isIntersecting'](_0x31fdef['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function qt(_0x3630ca,_0x5898f9){return null==_0x3630ca['end']['nodeBefore']&&_0x3630ca['end']['parent']==_0x3630ca['start']['nodeAfter']?zt(_0x3630ca['start']['nodeAfter'],_0x5898f9):_0x3630ca;}function zt(_0xd3ec7c,_0x441757){const _0x5f39f0=_0x441757['schema']['isObject'](_0xd3ec7c)||_0x441757['schema']['isSelectable'](_0xd3ec7c);return _0x441757['createRange'](_0x441757['createPositionAt'](_0xd3ec7c,'before'),_0x5f39f0?_0x441757['createPositionAfter'](_0xd3ec7c):_0x441757['createPositionAt'](_0xd3ec7c,'end'));}function Wt(_0x44e4f5,_0x192302,_0x48d025,_0x435f40){return!!Qt(_0x44e4f5,_0x192302)&&_0x48d025['end']['isEqual'](_0x435f40['start']);}function Qt(_0x4f9ab5,_0x5fd844){if(!_0x4f9ab5['_isDataLoaded']||!_0x5fd844['_isDataLoaded'])return!0x1;const _0x158726=new Set(Object['keys'](_0x4f9ab5['attributes'])),_0x51a2d6=new Set(Object['keys'](_0x5fd844['attributes']));if(_0x158726['delete']('groupId'),_0x51a2d6['delete']('groupId'),0x0==_0x158726['size']&&0x0==_0x51a2d6['size'])return!0x0;if(_0x158726['size']!=_0x51a2d6['size'])return!0x1;const _0x3cc4a3={..._0x4f9ab5['attributes']},_0x5a09c0={..._0x5fd844['attributes']};return delete _0x3cc4a3['groupId'],delete _0x5a09c0['groupId'],JSON['stringify'](_0x3cc4a3)==JSON['stringify'](_0x5a09c0);}function Xt(_0x500648,_0xdd8419){const _0x200ee3=Yt(_0x500648['attributes']),_0x10e18a=Yt(_0xdd8419);if(!_0x500648['_isDataLoaded'])return!0x1;for(const _0x569485 of Object['keys'](_0x10e18a))if(!_0x29d605(_0x200ee3[_0x569485],_0x10e18a[_0x569485]))return!0x1;return!0x0;}function Yt(_0xea5d5e){const _0x2bc69c=Object['assign']({},_0xea5d5e);return delete _0x2bc69c['skipNestingCheck'],delete _0x2bc69c['tablePasteChainId'],_0x2bc69c;}class pe extends/* #__PURE__ -- @preserve */
26
- _0xe7f3(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x3575db,_0x2b5536,_0x306faf,_0x5fb60e){super(),this['model']=_0x2b5536,this['view']=_0x306faf,this['commentThreadController']=_0x5fb60e,this['_editor']=_0x3575db,this['_acceptCommand']=_0x3575db['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x3575db['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x4e8bc9,_0x14675b)=>_0x4e8bc9||_0x14675b),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x35378a=>_0x35378a&&this['_editor']['model']['canEditAt'](_0x2b5536['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x16e005=>_0x16e005&&this['_editor']['model']['canEditAt'](_0x2b5536['getRanges']())),this['_pendingAction']=null,_0x306faf['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x306faf,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x306faf,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x306faf,'change:isDirty',()=>{_0x306faf['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 _0x510478=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x510478);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x3b596c{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x14315b,_0x3346d0,_0x39d8f1,_0x52d96f){super(_0x14315b),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x307699(_0x14315b,o(_0x14315b,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x3346d0['authoredAt']),this['bind']('authoredAt')['to'](_0x3346d0),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',_0x3346d0,'authoredAt',this,'descriptionParts',(_0x56a561,_0x5d7c16,_0x1cf8bf)=>{const _0x179b41=_0x1cf8bf['map'](_0x10af69=>ls(_0x10af69['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x56a561-0x1,_0x3346d0['author']['name'],_0x5d7c16?_0x52d96f['formatDateTime'](_0x5d7c16):'',new DOMParser()['parseFromString'](_0x179b41,'text/html')['body']['textContent']]);}),this['focusables']=new _0x584fc4(),this['focusTracker']=new _0x1bae93(),this['keystrokes']=new _0x182eb6(),this['focusCycler']=new _0x4bbef1({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x44fc37=>_0x44fc37['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x3346d0,this['_localUser']=_0x39d8f1,this['_config']=_0x52d96f,_0x52d96f['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x2d1f60(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x1b5f9d}=this['_config'];this['commentsListView']=new _0x1b5f9d(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',_0x216750=>_0x216750+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x2b2b6e,_0x4ec974)=>_0x2b2b6e||!!_0x4ec974);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x45fa01}=this['_config'],_0x314c28=new _0x45fa01(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x1a9c89=_0x314c28['commentInputView'];return _0x314c28['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x1a9c89,'value',(_0xdc2c45,_0x40a318,_0x36cffc)=>!!_0x36cffc||_0xdc2c45&&!_0x40a318),_0x1a9c89['on']('submit',(_0x5756b5,_0x3c2d65)=>{this['fire']('addComment',_0x3c2d65),_0x1a9c89['editor']['setData']('');}),_0x1a9c89['on']('cancel',()=>this['focus']()),_0x1a9c89['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x314c28;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x139c1c,_0xa64d1,_0x39562c,_0x163d06){super(_0x139c1c,_0xa64d1,_0x39562c,_0x163d06),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x2cbb0e=>_0x2cbb0e&&_0x2cbb0e[0x0]?_0x2cbb0e[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x32f376,_0x338ac3)=>{let _0x290c3d='';for(const _0x2ea940 of _0x32f376)_0x290c3d+='<p>'+ls(_0x2ea940['content'],_0x2ea940['color'])+'</p>';return _0x338ac3?_0x290c3d:_0xb5eb72(_0x290c3d,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x163d06['SuggestionView'](_0x139c1c,_0xa64d1,{'formatDateTime':_0x163d06['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 _0x587d78=this['bindTemplate'],_0x31c808=[this['suggestionView']];return this['commentsListView']&&_0x31c808['push'](this['commentsListView']),this['commentThreadInputView']&&_0x31c808['push'](this['commentThreadInputView']),_0x31c808['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x587d78['if']('isActive','ck-suggestion-wrapper--active'),_0x587d78['to']('type',_0x240ead=>'ck-suggestion-'+_0x240ead),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':_0x587d78['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x31c808};}['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 _0x3b596c{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x18dfc7,_0x4fc5a8,_0x5c058d){super(_0x18dfc7),this['_model']=_0x4fc5a8,this['_config']=_0x5c058d,this['set']('description',''),this['bind']('authoredAt')['to'](_0x4fc5a8),this['acceptButton']=this['_createButton'](o(_0x18dfc7,'Accept\x20suggestion'),_0x25e31e,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x18dfc7,'Discard\x20suggestion'),_0x69661c,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x437e30(_0x18dfc7,_0x4fc5a8['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x584fc4([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x1bae93(),this['keystrokes']=new _0x182eb6(),this['focusCycler']=new _0x4bbef1({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0xf406fe=>_0xf406fe['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x55b44f=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x55b44f['innerHTML']=this['description'],this['on']('change:description',(_0x11d7b7,_0x3b55fe,_0x2467cd)=>{_0x55b44f['innerHTML']=_0x2467cd;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x360632=this['bindTemplate'],_0x406895=[{'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':_0x360632['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x360632['to']('authoredAt',_0x5c8049=>this['_config']['formatDateTime'](_0x5c8049))}]}]},{'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']&&_0x406895['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':_0x406895}]};}['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'](_0x47413c,_0xac181c,_0x5b3807,_0x500eb6,_0x17d9cf){const _0x36a35d=new _0x2ec26a(this['locale']);return _0x36a35d['set']({'label':_0x47413c,'icon':_0xac181c,'tooltip':!0x0,'tooltipPosition':_0x17d9cf}),_0x36a35d['extendTemplate']({'attributes':{'class':_0x5b3807}}),_0x36a35d['on']('execute',()=>{this['fire'](_0x500eb6,this['_model']['id']);}),_0x36a35d;}['_setupKeyboardNavigation'](){const _0x59221c=this['element'];this['keystrokes']['listenTo'](_0x59221c);for(const _0x1ab045 of this['focusables'])this['focusTracker']['add'](_0x1ab045['element']),this['keystrokes']['listenTo'](_0x1ab045['element']);this['keystrokes']['set']('enter',(_0x13f583,_0x4f2f25)=>{_0x59221c===_0x13f583['target']&&(this['focusCycler']['focusFirst'](),_0x4f2f25());}),this['keystrokes']['set']('esc',(_0x206020,_0x369dc4)=>{_0x59221c!==_0x206020['target']&&(this['focus'](),_0x369dc4());});}}class u extends _0x1411ab{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x2239fd,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x35137d){super(_0x35137d),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3e7261=this['editor']['config'];_0x3e7261['define']('trackChanges.SuggestionThreadView',fe),_0x3e7261['define']('trackChanges.SuggestionView',we),_0x3e7261['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3e7261['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x8b0c3c,_0x213943){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x19b610,_0x35e9f]of this['_handleControllerBuffer']){const _0x3edace=this['_suggestionToController']['has'](_0x19b610);_0x3edace||_0x35e9f?_0x3edace&&_0x35e9f&&this['_destroyController'](_0x19b610):this['_initializeController'](_0x19b610);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x8b0c3c,_0x213943);}['init'](){const _0x2f9d60=this['editor'],_0x112ab5=_0x2f9d60['plugins']['get']('TrackChangesEditing'),_0x133f1e=_0x2f9d60['plugins']['get']('Annotations'),_0x1b0f6f=_0x2f9d60['plugins']['get']('EditorAnnotations'),_0x3a7990=_0x2f9d60['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x1b0f6f['addSourceCollector'](()=>{const _0x569221=[];for(const [_0x2a45c8,_0xb90ad7]of Array['from'](this['_suggestionToController'])){const _0x5e0a6c=_0x2a45c8['getAllAdjacentSuggestions'](),_0x1a4f04=[];for(const _0x539cc5 of _0x5e0a6c){if(!_0x539cc5['isInContent'])continue;if(_0x539cc5['isMultiRange']){_0x1a4f04['push'](..._0x539cc5['getRanges']());continue;}const _0x2dd535=_0x539cc5['getFirstRange']();if(_0x1a4f04['length']>0x0){const _0x371f58=_0x1a4f04[0x0]['getJoined'](_0x2dd535);if(_0x371f58){_0x1a4f04[0x0]=_0x371f58;continue;}}_0x1a4f04['push'](_0x2dd535);}_0x569221['push']([_0xb90ad7['view'],_0x1a4f04]);}return _0x569221;}),this['listenTo'](_0x112ab5,'suggestionLoaded',(_0x326454,_0x362561)=>{this['listenTo'](_0x362561,'change:previous',(_0x17c21f,_0x25309a,_0x131264,_0x27721d)=>{_0x362561['isInContent']&&(null==_0x131264?(this['_updateController'](_0x27721d['head']),this['_handleSuggestionControllerDelayed'](_0x362561,!0x1)):(this['_updateController'](_0x131264['head']),null==_0x27721d&&this['_handleSuggestionControllerDelayed'](_0x362561,!0x0)));}),null!==_0x362561['previous']?this['_updateController'](_0x362561['head']):this['_handleSuggestionControllerDelayed'](_0x362561,!0x1);}),this['listenTo'](_0x112ab5,'suggestionUnloaded',(_0x5580fb,_0x59a727,_0x404cce)=>{this['stopListening'](_0x59a727,'change:previous'),this['_handleControllerBuffer']['delete'](_0x59a727),this['_suggestionToController']['has'](_0x59a727)&&this['_destroyController'](_0x59a727),_0x404cce&&this['_updateController'](_0x404cce['head']);}),this['listenTo'](_0x112ab5,'suggestionChanged',(_0x2caffe,_0x2cfe64)=>{this['_updateController'](_0x2cfe64);}),this['listenTo'](_0x133f1e,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x3a7990,'addComment',(_0x1a8c69,{threadId:_0x222b97,isFromAdapter:_0x29fe45})=>{if(_0x29fe45||!_0x112ab5['hasSuggestion'](_0x222b97))return;const _0x3271c3=_0x112ab5['getSuggestion'](_0x222b97);this['_suggestionToController']['get'](_0x3271c3)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x27f39f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x29ac22;for(const _0x470e28 in _0x27f39f){const _0x22bf94=_0x470e28,_0x57f481=_0x27f39f[_0x22bf94];if('trackChangesLicenseKeyValid'==_0x57f481||'trackChangesLicenseKeyInvalid'==_0x57f481||'trackChangesLicenseKeyExpired'==_0x57f481||'trackChangesLicenseKeyDomainLimit'==_0x57f481||'trackChangesLicenseKeyNotAllowed'==_0x57f481||'trackChangesLicenseKeyEvaluationLimit'==_0x57f481||'trackChangesLicenseKeyTrialLimit'==_0x57f481||'trackChangesLicenseKeyUsageLimit'==_0x57f481){delete _0x27f39f[_0x22bf94],_0x29ac22=_0x57f481,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x29ac22&&_0x27f39f['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x29ac22&&_0x27f39f['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x29ac22&&_0x27f39f['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x29ac22&&_0x27f39f['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x29ac22&&_0x27f39f['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x29ac22&&_0x27f39f['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x29ac22&&_0x27f39f['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x156a51){const _0x58ee4c=this['_suggestionToController']['get'](_0x156a51);if(!_0x58ee4c)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x58ee4c['view'])||null;}['getSuggestionForAnnotation'](_0xee8439){const _0x4c6a93=this['_viewToController']['get'](_0xee8439['innerView']);return _0x4c6a93?_0x4c6a93['model']:null;}['_refreshActiveMarkers'](){const _0x3fb84f=this['editor']['plugins']['get']('Annotations'),_0xb7580c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4126bf=Array['from'](_0x3fb84f['activeAnnotations'],_0x7a8ea8=>_0x7a8ea8['innerView'])['filter'](_0xe2eb1c=>this['_viewToController']['has'](_0xe2eb1c)),_0x1b79db=[];for(const _0x11ca55 of _0x4126bf){const _0x28767a=this['_viewToController']['get'](_0x11ca55)['model']['getAllAdjacentSuggestions']();_0x1b79db['push'](..._0x28767a['reduce']((_0x1d257d,_0x3c101e)=>[..._0x1d257d,..._0x3c101e['getMarkerNames']()],[]));}_0xb7580c['activeMarkers']=_0x1b79db;}['_addUIComponentsToFactory'](){const _0x1e77fa=this['editor'],_0x5e102b=_0x1e77fa['locale'],_0x1f2536=o(_0x5e102b,'Track\x20changes'),_0x310225=new _0x3f2403([{'type':'switchbutton','model':new _0x9c81b9({'withText':!0x0,'isToggleable':!0x0,'label':_0x1f2536,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x9c81b9({'withText':!0x0,'label':o(_0x5e102b,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x9c81b9({'withText':!0x0,'label':o(_0x5e102b,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x9c81b9({'withText':!0x0,'label':o(_0x5e102b,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x9c81b9({'withText':!0x0,'label':o(_0x5e102b,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x1e77fa['plugins']['has']('TrackChangesPreview')&&_0x310225['addMany']([{'type':'separator'},{'type':'button','model':new _0x9c81b9({'withText':!0x0,'label':o(_0x5e102b,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0xfe1d4e of _0x310225)if(ke(_0xfe1d4e)){const _0x3cde88=_0x1e77fa['commands']['get'](_0xfe1d4e['model']['commandName']);_0xfe1d4e['model']['bind']('isOn','isEnabled')['to'](_0x3cde88,'value','isEnabled');}_0x1e77fa['ui']['componentFactory']['add']('trackChanges',_0x40595a=>this['_createToolbarButton'](_0x40595a,_0x310225,_0x1f2536)),_0x1e77fa['ui']['componentFactory']['add']('menuBar:trackChanges',_0x1a33bd=>this['_createMenuBarMenu'](_0x1a33bd,_0x310225,_0x1f2536));}['_createToolbarButton'](_0x1cb818,_0x38c7c5,_0x4f249a){const _0x456d87=_0x34e753(_0x1cb818,_0x20b9e5),_0x307a33=this['editor']['commands']['get']('trackChanges');_0x456d87['buttonView']['set']({'tooltip':_0x4f249a,'label':_0x4f249a,'icon':_0x541609}),_0x456d87['buttonView']['bind']('isOn')['to'](_0x307a33,'value'),_0x456d87['buttonView']['on']('execute',()=>{_0x307a33['execute'](),this['editor']['editing']['view']['focus']();}),_0x4cfc0e(_0x456d87,_0x38c7c5,{'role':'menu'});const _0x2958dc=[];for(const _0x3b3139 of _0x38c7c5)ke(_0x3b3139)&&_0x2958dc['push'](this['editor']['commands']['get'](_0x3b3139['model']['commandName']));const _0x28aa82=_0x456d87['buttonView'];return _0x28aa82['actionView']['unbind']('isEnabled'),_0x28aa82['arrowView']['unbind']('isEnabled'),_0x28aa82['actionView']['bind']('isEnabled')['to'](_0x307a33,'isEnabled'),_0x28aa82['arrowView']['bind']('isEnabled')['toMany'](_0x2958dc,'isEnabled',(..._0x551ccd)=>_0x551ccd['some'](_0x86e779=>_0x86e779)),_0x456d87['on']('execute',_0x120278=>{this['editor']['execute'](_0x120278['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x456d87;}['_createMenuBarMenu'](_0x135ad2,_0x299778,_0x7fa75b){const _0x4df26b=new _0x9c5e75(_0x135ad2),_0x927030=this['editor']['commands']['get']('trackChanges');_0x4df26b['buttonView']['set']({'label':_0x7fa75b,'icon':_0x541609});const _0x5a3e55=new _0xf6313a(_0x135ad2);for(const _0x1ebfdf of _0x299778){if('separator'==_0x1ebfdf['type']){_0x5a3e55['items']['add'](new _0x18e0a1(_0x135ad2));continue;}const _0x3a5670=new _0x4400fa(_0x135ad2,_0x4df26b),_0x18afc7=new _0x1dd5dc(_0x135ad2),_0x103d94=_0x1ebfdf['model'];_0x18afc7['bind'](...Object['keys'](_0x103d94))['to'](_0x103d94),_0x18afc7['delegate']('execute')['to'](_0x4df26b),_0x18afc7['on']('execute',()=>{this['editor']['execute'](_0x103d94['commandName']),this['editor']['editing']['view']['focus']();}),_0x3a5670['children']['add'](_0x18afc7),_0x5a3e55['items']['add'](_0x3a5670);}return _0x4df26b['bind']('isEnabled')['to'](_0x927030,'isEnabled'),_0x4df26b['panelView']['children']['add'](_0x5a3e55),_0x4df26b;}['_initializeController'](_0x1941c2){const _0x36c8f7=this['editor'],_0x39d978=_0x36c8f7['config'],_0x47b81d=_0x36c8f7['plugins']['get']('Annotations'),_0x3087c7=_0x36c8f7['plugins']['get']('CommentsRepository'),_0x1d49a0=_0x36c8f7['plugins']['get']('EditorAnnotations'),_0x3e6f01=_0x36c8f7['plugins']['get'](_0x2239fd)['me'],_0x139c8c=_0x39d978['get']('trackChanges')['SuggestionThreadView'],_0x46eaa4=_0x39d978['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x523719,CommentThreadInputView:_0x3b92c3}=_0x36c8f7['plugins']['get']('CommentsUI');let _0x17e847,_0x24accb,_0x1fd0bb;this['_annotationViews']['has'](_0x1941c2['id'])?(_0x24accb=this['_annotationViews']['get'](_0x1941c2['id']),_0x17e847=_0x24accb['mainView']):(_0x17e847=new _0x139c8c(_0x36c8f7['locale'],_0x1941c2,_0x3e6f01,{'disableComments':this['_disableComments'],'editorConfig':{..._0x39d978['get']('comments.editorConfig'),'licenseKey':_0x39d978['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x39d978['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x39d978['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x39d978['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x553361(_0x39d978['get']('locale'),_0x36c8f7['locale']),'CommentView':_0x39d978['get']('comments')['CommentView'],'CommentsListView':_0x523719,'CommentThreadInputView':_0x3b92c3,'SuggestionView':_0x46eaa4}),_0x17e847['suggestionView']['acceptButton']['on']('execute',()=>{_0x36c8f7['editing']['view']['focus']();}),_0x17e847['suggestionView']['discardButton']['on']('execute',()=>{_0x36c8f7['editing']['view']['focus']();}),_0x24accb=_0x47b81d['createAnnotationView'](this['editor']['locale'],_0x17e847),_0x24accb['bind']('isDirty')['to'](_0x17e847,'isDirty'),_0x24accb['bind']('length')['to'](_0x17e847),_0x24accb['bind']('type')['to'](_0x17e847,'type',_0x5da444=>'suggestion-'+_0x5da444),_0x17e847['on']('escape',()=>{_0x1fd0bb['fire']('escape');}),this['_annotationViews']['set'](_0x1941c2['id'],_0x24accb));const _0x5ad5bd=_0x3087c7['createCommentThreadController'](_0x1941c2['commentThread'],_0x17e847),_0x5be377=new pe(_0x36c8f7,_0x1941c2,_0x17e847,_0x5ad5bd),_0x51901b=_0x1941c2['getAllAdjacentSuggestions']()['filter'](_0x3d19cc=>_0x3d19cc['isInContent']);_0x17e847['descriptionParts']=_0x36c8f7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x51901b),this['_suggestionToController']['set'](_0x1941c2,_0x5be377),this['_viewToController']['set'](_0x17e847,_0x5be377);const _0x369b32=()=>{const _0x1bc6a4=[],_0x4b7ab2=_0x1941c2['getAllAdjacentSuggestions']()['filter'](_0x90d45d=>_0x90d45d['isInContent']);for(const _0x5c8671 of _0x4b7ab2)_0x1bc6a4['push'](..._0x5c8671['getMarkers']());return _0x391b82(_0x36c8f7['editing'],_0x1bc6a4);};_0x1fd0bb=_0x47b81d['createAnnotation']({'view':_0x24accb,'target':_0x369b32,'type':()=>'suggestion-'+_0x5be377['view']['type'],'isVisible':!!_0x369b32()}),_0x3087c7['_bindAnnotationToEditors'](_0x17e847,_0x1fd0bb),_0x47b81d['add'](_0x1fd0bb),_0x1d49a0['registerAnnotation'](_0x1fd0bb);}['_destroyController'](_0x32a670){const _0xceafd1=this['editor']['plugins']['get']('CommentsRepository'),_0xf6d1df=this['editor']['plugins']['get']('Annotations'),_0x52728a=this['_suggestionToController']['get'](_0x32a670),_0x1afdb3=_0x52728a['view'],_0x4f583b=_0xf6d1df['getByInnerView'](_0x1afdb3);_0xceafd1['_unbindEditors'](_0x1afdb3),_0x4f583b&&_0xf6d1df['remove'](_0x4f583b),this['_suggestionToController']['delete'](_0x32a670),this['_viewToController']['delete'](_0x1afdb3),_0x52728a['destroy']();}['_updateController'](_0xf118f8){if(!_0xf118f8['isInContent']||!this['_suggestionToController']['has'](_0xf118f8))return;const _0x3c93ee=this['editor']['plugins']['get']('TrackChangesEditing'),_0xc09e49=this['_suggestionToController']['get'](_0xf118f8),_0x1db5c8=_0xf118f8['getAllAdjacentSuggestions']();_0xc09e49['view']['descriptionParts']=_0x3c93ee['descriptionFactory']['getDescriptions'](_0x1db5c8);}['destroy'](){for(const _0x293abc of this['_suggestionToController']['keys']())this['_destroyController'](_0x293abc);for(const _0x424046 of this['_annotationViews']['values']())_0x424046['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x5b2c5b){return'model'in _0x5b2c5b;}class Fe extends _0x1411ab{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x3568df){this['editor']['plugins']['get'](d)['adapter']=_0x3568df;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x5d0ee9){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x5d0ee9);}['getSuggestions']({skipNotAttached:_0x28ac3d=!0x1,toJSON:_0x2747b6=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x28ac3d,'toJSON':_0x2747b6});}['getSuggestion'](_0xbf0f27){return this['editor']['plugins']['get'](d)['getSuggestion'](_0xbf0f27);}}const p=['Pagination'];class re extends _0x1411ab{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x19e689=this['editor'];if(_0x19e689['config']['define']('trackChangesData.editorCreator',_0x5a16ea=>{const _0x35da02=_0x19e689['model']['document']['getRootNames']()['reduce']((_0x380c34,_0x1edd49)=>(_0x380c34[_0x1edd49]='',_0x380c34),{});return _0x19e689['constructor']['create'](_0x35da02,_0x5a16ea);}),'function'!=typeof _0x19e689['config']['get']('trackChangesData')['editorCreator'])throw new _0x27da15('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0xda3abf){return P(this['editor'],!0x0,_0xda3abf);}['getDataWithDiscardedSuggestions'](_0x358442){return P(this['editor'],!0x1,_0x358442);}}class Ge extends _0x1411ab{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3b4804){function _0x1ca4a6(_0x2c04d7){return _0x2c04d7['map'](_0x488ef4=>String['fromCharCode'](_0x488ef4))['join']('');}super(_0x3b4804),this['result']='end',_0x3b4804[_0x1ca4a6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1ca4a6([0x76,0x69,0x65,0x77])][_0x1ca4a6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1ca4a6([0x61,0x75,0x74,0x6f]),_0x3b4804[_0x1ca4a6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1ca4a6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1ca4a6([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1ca4a6([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1ca4a6([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(_0x25ef9c){return void 0x0!==_0x25ef9c['getRootsAttributes'];}async function P(_0xa9ae01,_0x52f2db,_0x495186){const _0x27a0d0=_0x3d8906(_0xa9ae01,p);_0x27a0d0['plugins']['push'](d,Ge),_0x27a0d0['rootsAttributes']=He(_0xa9ae01)?_0xa9ae01['getRootsAttributes']():void 0x0;const _0x1e6dfd=document['createDocumentFragment'](),_0xd5b1d5=_0xa9ae01['config']['get']('trackChangesData')['editorCreator'],_0x226e64=await _0xd5b1d5(_0x27a0d0,()=>function(_0x1166a8){const _0x42f40a=document['createElement']('div');return _0x1166a8['appendChild'](_0x42f40a),_0x42f40a;}(_0x1e6dfd));!function(_0x239c72,_0x4c1c1d){const _0x54130d=_0x239c72['model']['document']['getRootNames']()['reduce']((_0x357502,_0x393e2d)=>(_0x357502[_0x393e2d]=_0x239c72['data']['get']({'rootName':_0x393e2d}),_0x357502),{}),_0x41f4e0=_0x239c72['plugins']['get']('Users')['users']['map'](_0x2d7b97=>({'id':_0x2d7b97['id'],'name':_0x2d7b97['name']})),_0x378ce7=_0x239c72['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2cb8e2=_0x239c72['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xb905a7=_0x4c1c1d['plugins']['get']('Users'),_0xd6ca85=_0x4c1c1d['plugins']['get']('TrackChangesEditing'),_0x13689c=_0x4c1c1d['plugins']['get']('CommentsRepository');for(const _0x1329ad of _0x13689c['getCommentThreads']())_0x1329ad['remove']();for(const _0x5dc0bd of _0x41f4e0)_0xb905a7['getUser'](_0x5dc0bd['id'])||_0xb905a7['addUser'](_0x5dc0bd);_0xb905a7['me']||_0xb905a7['useAnonymousUser']();for(const _0x158664 of _0x2cb8e2)_0x13689c['addCommentThread'](_0x158664);for(const _0x1fc83b of _0x378ce7)_0xd6ca85['addSuggestionData'](_0x1fc83b);_0x4c1c1d['data']['set'](_0x54130d);}(_0xa9ae01,_0x226e64),_0x226e64['execute'](_0x52f2db?'acceptAllSuggestions':'discardAllSuggestions');const _0x2dcada=He(_0x226e64)?_0x226e64['getFullData'](_0x495186):_0x226e64['data']['get'](_0x495186);return await _0x226e64['destroy'](),_0x2dcada;}class Me extends _0x3b596c{['options'];constructor(_0x5a4ce7,_0x4827e6){super(_0x5a4ce7),this['options']=_0x4827e6,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'](_0x25aad1,_0x4a2db1){if(!this['element'])return;const _0x3eded5=[];for(const [_0x25cb17,_0x50ceee]of _0x25aad1){const _0x3e4442=document['createElement']('div');_0x3e4442['setAttribute']('data-ck-root-name',_0x25cb17),_0x3e4442['className']=_0x50ceee['classes']+'\x20ck-track-changes-preview__root-container',_0x3e4442['innerHTML']=_0x50ceee['content'],_0x3eded5['push'](_0x3e4442);}_0x4a2db1(this['element'],_0x3eded5),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x23f2a4{constructor(_0x18201c){super(_0x18201c),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x343640=this['editor'],_0x5f49ea=_0x343640['locale'],_0x412c2d=_0x343640['plugins']['get']('Dialog');let _0x124f56;const _0x16bb7e=function(_0x5ac214){const _0x236943={};if('editables'in _0x5ac214['ui']['view']){for(const [_0x57b7a7,_0x2fc971]of Object['entries'](_0x5ac214['ui']['view']['editables']))_0x236943[_0x57b7a7]=_0x2fc971['element'];}else _0x236943[_0x5ac214['model']['document']['getRootNames']()[0x0]]=_0x5ac214['ui']['view']['editable']['element'];return _0x236943;}(_0x343640),_0x6ca55d=function(_0x545a46){let _0x320325=0x0;for(const _0x2d5033 of Object['values'](_0x545a46))_0x320325=Math['max'](_0x320325,_0x2d5033['getBoundingClientRect']()['width']);let _0x30b47e=0x0;for(const _0x14f4e3 of Object['values'](_0x545a46))_0x30b47e+=_0x14f4e3['getBoundingClientRect']()['height'];const _0x1b87cc=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x3c9920=Math['min'](_0x30b47e,_0x1b87cc);return{'width':_0x320325,'height':_0x3c9920};}(_0x16bb7e);_0x412c2d['show']({'id':'finalContentPreview','title':o(_0x5f49ea,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x5f49ea,{'dialogRects':_0x6ca55d}),'onHide':()=>{_0x124f56['detachFromDom']();},'onShow':()=>{_0x343640['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x1ac79e=>{const _0x2fe7a7=this['_standarizeRootsData'](_0x1ac79e,_0x343640,_0x16bb7e);_0x412c2d['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x2fe7a7,_0x343640['config']['get']('trackChanges.preview.renderFunction'));}),_0x124f56=new _0x28b6c2(_0x5f49ea,[_0x412c2d['view']]),_0x124f56['attachToDom'](),_0x124f56['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x343640['once']('destroy',()=>{_0x124f56['detachFromDom']();});const _0x50b065=_0x412c2d['view']['headerView']['class'];_0x412c2d['view']['headerView']['class']=_0x50b065?_0x50b065+'\x20ck-reset_all':'ck-reset_all',_0x412c2d['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x412c2d['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x25e035=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x453f66=_0x25e035['previewMode'],_0x4f8cdd={};if('$labels'===_0x453f66){for(const _0x485073 of _0x25e035['getMergeFieldsIds']())_0x4f8cdd[_0x485073]=_0x25e035['getLabel'](_0x485073)||_0x485073;}else{const _0x4574fb='$defaultValues'===_0x453f66?_0x25e035['getDefaultValues']():_0x25e035['getDataSetValues'](_0x453f66,!0x0);for(const _0x520cfc of Object['entries'](_0x4574fb)){const [_0x18a4f3,_0x4ed22c]=_0x520cfc;_0x4f8cdd[_0x18a4f3]=null!==_0x4ed22c?_0x4ed22c:_0x25e035['getLabel'](_0x18a4f3)||_0x18a4f3;}}return{'mergeFieldsData':_0x4f8cdd};}['_standarizeRootsData'](_0x5f60c,_0x509913,_0x378e6f){let _0x14b7b6;if('string'==typeof _0x5f60c){const _0x36840f=_0x509913['model']['document']['getRootNames']()[0x0];_0x14b7b6={[_0x36840f]:_0x5f60c};}else _0x14b7b6=_0x5f60c;const _0x51da5f=this['_fixMediaEmbeds'](_0x14b7b6,_0x509913),_0x84daa2=function(_0x1e829e,_0x3e8142){for(const [_0x2c7ac1,_0x11547e]of _0x1e829e)_0x11547e['classes']=_0x3e8142[_0x2c7ac1]['classList']['value']['replace']('ck-focused','');return _0x1e829e;}(this['_sortRoots'](_0x509913)['reduce']((_0x5c97ad,_0x5b3fc5)=>(_0x5c97ad['push']([_0x5b3fc5,{'content':_0x51da5f[_0x5b3fc5],'classes':''}]),_0x5c97ad),[]),_0x378e6f);return _0x84daa2;}['_fixMediaEmbeds'](_0x23acc7,_0x10cd8f){if(!_0x10cd8f['plugins']['has']('MediaEmbedEditing'))return _0x23acc7;const _0x416696=_0x10cd8f['plugins']['get']('MediaEmbedEditing');for(const [_0x596d21,_0x311a37]of Object['entries'](_0x23acc7)){const _0x22c375=document['createElement']('div');_0x22c375['innerHTML']=_0x311a37,(_0x22c375['querySelectorAll']('figure.media')['forEach'](_0x3b5205=>{const _0x2535a5=_0x3b5205['querySelector']('oembed');if(_0x2535a5){const _0x7db69b=_0x2535a5['getAttribute']('url');if(_0x7db69b){const _0x520101=_0x416696['registry']['getMediaViewElement'](new _0x84e41e(_0x10cd8f['editing']['view']['document']),_0x7db69b,{'elementName':'','renderForEditingView':!0x0}),_0x3900f5=document['createElement']('div');_0x3900f5['classList']['add']('ck-media__wrapper'),_0x520101['render'](_0x3900f5,_0x10cd8f['editing']['view']['domConverter']),_0x2535a5['replaceWith'](_0x3900f5);}}}),_0x23acc7[_0x596d21]=_0x22c375['innerHTML']);}return _0x23acc7;}['_sortRoots'](_0x38eec8){if(!function(_0x401a5d){return void 0x0!==_0x401a5d['getRootsAttributes'];}(_0x38eec8))return _0x38eec8['model']['document']['getRootNames']();const _0x114a87=[],_0x33c0a8=new Map();for(const _0x1f7d3b of _0x38eec8['model']['document']['getRootNames']()){const _0x3b459a=_0x38eec8['editing']['view']['getDomRoot'](_0x1f7d3b)['getClientRects']()['item'](0x0);_0x114a87['push'](_0x1f7d3b),_0x33c0a8['set'](_0x1f7d3b,_0x3b459a);}return _0x114a87['sort']((_0x6ab448,_0x3d9005)=>{const _0x196bf9=_0x33c0a8['get'](_0x6ab448),_0x53219f=_0x33c0a8['get'](_0x3d9005);return _0x196bf9['y']-_0x53219f['y']||_0x196bf9['x']-_0x53219f['x'];}),_0x114a87;}}class $e extends _0x1411ab{static get['requires'](){return[re,_0x46b212];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x34e52d){super(_0x34e52d),_0x34e52d['commands']['add']('previewFinalContent',new te(this['editor'])),_0x34e52d['config']['define']('trackChanges.preview.renderFunction',(_0x3edfda,_0xd029bd)=>{for(const _0x2ef4e6 of _0xd029bd)_0x3edfda['appendChild'](_0x2ef4e6);});}}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 _0x58174f,Plugin as _0x27a926,PendingActions as _0x2edee7}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x24f8f4,ObservableMixin as _0xbda74a,uid as _0x5bc718,priorities as _0x40c02c,insertToPriorityArray as _0x1021dd,toArray as _0xad3d62,logWarning as _0x1aa416,getEnvKeystrokeText as _0x3803b2,FocusTracker as _0x32124a,KeystrokeHandler as _0x2821ab,Collection as _0x3e004f}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x52309a,IconCancel as _0xac3f1f,IconTrackChanges as _0x3892fc}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x1c29fc,View as _0x45ee84,ViewCollection as _0x101234,FocusCycler as _0x1157e9,UIModel as _0x1fe74b,createDropdown as _0x317c8f,SplitButtonView as _0x5b6149,addListToDropdown as _0x2aba32,MenuBarMenuView as _0xb26ca6,MenuBarMenuListView as _0x39e173,ListSeparatorView as _0x5af892,MenuBarMenuListItemView as _0x3e5c33,MenuBarMenuListItemButtonView as _0x272d38,BodyCollection as _0x57a577,Dialog as _0x13c885}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x3c175c,hashObject as _0x34df5a,surroundingMarkersDetector as _0x1e4108,FOCUS_ANNOTATION_KEYSTROKE as _0x38402f,AriaDescriptionView as _0x4b9ac5,setupThreadKeyboardNavigation as _0x310efe,trimHtml as _0x420cce,UserView as _0xed21e2,LateFocusButtonView as _0x19678b,getDateTimeFormatter as _0x3170bc,getAllMarkersDomElementsSorted as _0x1e68c0,sanitizeEditorConfig as _0x253e0a}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x5c743f,ModelLiveRange as _0x3561c8,ModelLivePosition as _0x311b31,ViewDowncastWriter as _0x3fa339}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0xe7bb02,toWidget as _0x19a0f9}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0xb1c432,set as _0x118c5d,isEqual as _0x35d560,unset as _0x2db481,omit as Ut}from'es-toolkit/compat';import{Delete as _0x56b950,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x3941f8}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x1ff713}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class N extends _0x58174f{['_enabledCommands'];constructor(_0x3ddd47,_0x649958){super(_0x3ddd47),this['_enabledCommands']=_0x649958,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 _0x1c6bf7 of this['editor']['commands']['commands']())_0x1c6bf7['affectsData']&&!this['_enabledCommands']['has'](_0x1c6bf7)&&_0x1c6bf7['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x5dfb12 of this['editor']['commands']['commands']())_0x5dfb12['affectsData']&&!this['_enabledCommands']['has'](_0x5dfb12)&&_0x5dfb12['clearForceDisabled']('TrackChangesCommand');}}class D extends _0x58174f{['_suggestions'];constructor(_0x5601aa,_0x56e417){super(_0x5601aa),this['_suggestions']=_0x56e417,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x24b71a){const _0x409fda=this['_suggestions']['get'](_0x24b71a);if(!_0x409fda)throw new _0x24f8f4('track-changes-accept-suggestion-not-found',this);const _0x5ca653=_0x409fda['getRanges']();this['editor']['model']['canEditAt'](_0x5ca653)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x409fda);}}class $ extends _0x58174f{['_suggestions'];constructor(_0x32d318,_0x5c6304){super(_0x32d318),this['_suggestions']=_0x5c6304,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5ac7cc){const _0x1091f1=this['_suggestions']['get'](_0x5ac7cc);if(!_0x1091f1)throw new _0x24f8f4('track-changes-discard-suggestion-not-found',this);const _0x59e7da=_0x1091f1['getRanges']();this['editor']['model']['canEditAt'](_0x59e7da)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x1091f1);}}function ls(_0x1321a1,_0x4bf5d5){let _0x5db6ab='';return _0x5db6ab+=_0x1321a1['split']('*')['map']((_0x845638,_0x525dd6)=>_0x525dd6%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+Zt(_0x845638)+'</span>':Zt(_0x845638))['join'](''),_0x4bf5d5&&(_0x5db6ab+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x4bf5d5['value']+'\x22\x20title=\x22'+_0x4bf5d5['title']+'\x22></span>'),_0x5db6ab;}function Zt(_0x1c8c04){const _0x46efa3=document['createElement']('span');return _0x46efa3['innerText']=_0x1c8c04,_0x46efa3['innerHTML'];}function ts(_0x4689ad){return _0x4689ad['sort']((_0x16b088,_0x5d7e1b)=>'attribute'===_0x16b088['type']&&'attribute'!==_0x5d7e1b['type']?-0x1:'attribute'!==_0x16b088['type']&&'attribute'===_0x5d7e1b['type']?0x1:'deletion'==_0x16b088['type']&&'deletion'!=_0x5d7e1b['type']?-0x1:'deletion'!=_0x16b088['type']&&'deletion'==_0x5d7e1b['type']?0x1:0x0);}function to(_0x2ab9af,_0x5580c5){let _0x188554,_0xd2d350=0x0;const _0x242800=[],_0x1fb53e=_0x5580c5['schema'];for(;_0xd2d350<_0x2ab9af['length'];){const _0x11fc9c=_0x2ab9af[_0xd2d350],_0xf20b69=_0x2ab9af[_0xd2d350+0x1];_0x188554||(_0x188554=_0x5580c5['createPositionBefore'](_0x11fc9c)),tn(_0x5580c5,_0x11fc9c,_0xf20b69)||(_0x242800['push'](_0x5580c5['createRange'](_0x188554,_0x1fb53e['isObject'](_0x11fc9c)?_0x5580c5['createPositionAfter'](_0x11fc9c):_0x5580c5['createPositionAt'](_0x11fc9c,'end'))),_0x188554=null),_0xd2d350++;}return _0x242800;}function tn(_0x41323c,_0x22a58c,_0x28b7e6){if(!_0x28b7e6)return!0x1;const _0x34ced4=_0x41323c['createPositionAfter'](_0x22a58c),_0x13d538=_0x41323c['createPositionBefore'](_0x28b7e6);return _0x34ced4['isTouching'](_0x13d538);}function rs(_0x167ec1,_0x5d6c67,_0x2f3fd6){for(;_0x2f3fd6['length'];){const _0x3fca62=_0x2f3fd6['splice'](0x0,0x64);_0x167ec1['change'](()=>{for(const _0x5948d0 of _0x3fca62)_0x5948d0['isInContent']&&_0x5d6c67['execute'](_0x5948d0['id']);});}}class M extends _0x58174f{['_command'];['_suggestions'];constructor(_0x2da00f,_0x3f08fc,_0x529ba0){super(_0x2da00f),this['_command']=_0x3f08fc,this['_suggestions']=_0x529ba0,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2f7548=Array['from'](this['_suggestions']['values']())['some'](_0xa97f34=>_0xa97f34['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x2f7548;}['execute'](){const _0x2de998=ts(Array['from'](this['_suggestions']['values']()));for(const _0x5b8218 of _0x2de998){const _0x19d569=_0x5b8218['getRanges']();if(!this['editor']['model']['canEditAt'](_0x19d569))return;}rs(this['editor']['model'],this['_command'],_0x2de998);}}class B extends _0x58174f{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x52dd14,_0x4de7e0,_0x2a3b9b){super(_0x52dd14),this['_command']=_0x4de7e0,this['_suggestions']=_0x2a3b9b,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0xcc263c=this['editor']['model']['document']['selection'],_0x450eda=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0xbe6c3f,_0x15f690){const _0x476d48=Array['from'](_0xbe6c3f['getRanges']()),_0xb6ab9e=new Set();for(const _0x337344 of _0x15f690)if(_0x337344['isInContent']){for(const _0x58d3c7 of _0x476d48)for(const _0x4a9d70 of _0x337344['getRanges']())(_0x58d3c7['isIntersecting'](_0x4a9d70)||_0xbe6c3f['isCollapsed']&&!_0x337344['isMultiRange']&&_0x337344['next']&&_0x4a9d70['end']['isTouching'](_0x58d3c7['start']))&&_0xb6ab9e['add'](_0x337344);}return _0xb6ab9e;}(_0xcc263c,_0x450eda),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x2892ec=ts(Array['from'](this['_selectedSuggestions']));for(const _0x55e695 of _0x2892ec){const _0x5df0a5=_0x55e695['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5df0a5))return;}rs(this['editor']['model'],this['_command'],_0x2892ec);}}class T extends/* #__PURE__ -- @preserve */
24
+ _0xbda74a(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x655e17,_0x1ebe2b){super(),this['id']=_0x1ebe2b['id'],this['type']=_0x1ebe2b['type'],this['subType']=_0x1ebe2b['subType']||null,this['author']=_0x1ebe2b['author'],this['creator']=_0x1ebe2b['creator']||_0x1ebe2b['author'],this['isExternal']=Boolean(_0x1ebe2b['attributes']&&_0x1ebe2b['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x1ebe2b['originalSuggestionId']||null,this['_model']=_0x655e17,this['_onAccept']=_0x1ebe2b['onAccept'],this['_onDiscard']=_0x1ebe2b['onDiscard'],this['_onAttributesChange']=_0x1ebe2b['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1ebe2b['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 _0x19705a=this;for(;_0x19705a['previous'];)_0x19705a=_0x19705a['previous'];return _0x19705a;}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'](_0x484e12){this['_markerNames']['add'](_0x484e12);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x305996=>this['_model']['markers']['get'](_0x305996))['filter'](_0x56011f=>_0x56011f);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x352840=>{for(const _0x5df55a of this['getMarkers']())_0x352840['removeMarker'](_0x5df55a);}),this['_markerNames']['clear']();}['removeMarker'](_0x32759c){this['_model']['change'](_0x19ea19=>{_0x19ea19['removeMarker'](_0x32759c);}),this['_markerNames']['delete'](_0x32759c);}['addRange'](_0xc6c8ff){const _0x5611e3='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x5611e3),this['_model']['change'](_0x3d4e73=>{_0x3d4e73['addMarker'](_0x5611e3,{'range':_0xc6c8ff,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x43edae){for(const _0x2f5573 of this['getRanges']())if(_0x2f5573['isIntersecting'](_0x43edae))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x5cae5b=>_0x5cae5b['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x827f36,_0x17b9c6)=>[..._0x827f36,..._0x17b9c6['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x4c27f2=this['getRanges']();if(0x1!=_0x4c27f2['length'])return null;const _0x3fbcae=_0x4c27f2[0x0],_0x39b333=_0x3fbcae['start']['nodeAfter'],_0x52e710=_0x3fbcae['end']['nodeBefore'];return _0x39b333 instanceof _0x5c743f?_0x39b333!=_0x52e710?null:_0x39b333: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 _0x31f7d3=[];let _0xc02908=this['head'];for(;_0xc02908;)_0x31f7d3['push'](_0xc02908),_0xc02908=_0xc02908['next'];return _0x31f7d3;}['setAttribute'](_0x17828f,_0x236853){const _0x13e7e1=_0xb1c432(this['attributes']);_0x118c5d(_0x13e7e1,_0x17828f,_0x236853),_0x35d560(_0x13e7e1,this['attributes'])||(this['attributes']=_0x13e7e1,this['_onAttributesChange'](_0x13e7e1));}['removeAttribute'](_0x52b87d){const _0x660595=_0xb1c432(this['attributes']);_0x2db481(_0x660595,_0x52b87d),_0x35d560(_0x660595,this['attributes'])||(this['attributes']=_0x660595,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 _0x5bc718()['substr'](0x1,0x5);}}function o(_0x1f237d,_0x274cfd,_0x32fd47){const _0x4b17ed=_0x1f237d['t'],t=_0x1f237d['t'];switch(_0x274cfd){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',_0x32fd47);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x32fd47);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x32fd47);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x32fd47);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x32fd47);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',_0x32fd47);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x32fd47);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',_0x32fd47);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x32fd47);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x32fd47);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x32fd47);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x32fd47);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x32fd47);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x32fd47);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x32fd47);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x32fd47);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x32fd47);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x32fd47);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x32fd47);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x32fd47);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x32fd47);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x32fd47);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x32fd47);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x32fd47);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x32fd47);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'},_0x32fd47);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x32fd47);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x32fd47);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x32fd47);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x32fd47);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x32fd47);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x32fd47);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x32fd47);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'},_0x32fd47);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x32fd47);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x32fd47);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x32fd47);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x32fd47);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'},_0x32fd47);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x32fd47);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'},_0x32fd47);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'},_0x32fd47);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x32fd47);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'},_0x32fd47);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x32fd47);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'},_0x32fd47);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x32fd47);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x32fd47);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'},_0x32fd47);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x32fd47);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 _0x4b17ed({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x32fd47);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x4b17ed({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x32fd47);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x32fd47);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'},_0x32fd47);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'},_0x32fd47);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'},_0x32fd47);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x274cfd;}}class x{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x3eb9fc,_0x320d63){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x3eb9fc,this['_locale']=_0x320d63;}['getDescriptions'](_0x91bf4f){const _0x594417=[],_0x6015df=new Set(),_0x15deb9=new Set();for(let _0x41e8ce=0x0;_0x41e8ce<_0x91bf4f['length'];_0x41e8ce++){const _0x3e2273=_0x91bf4f[_0x41e8ce];if(!_0x3e2273['isInContent'])continue;const _0x213da0=this['_handleCustomCallbackDescription'](_0x3e2273);if(_0x213da0){if(null!=_0x3e2273['subType']){if(_0x6015df['has'](_0x3e2273['subType']))continue;_0x6015df['add'](_0x3e2273['subType']);}_0x594417['push'](_0x213da0);}else{if('attribute'==_0x3e2273['type']){const _0x3ac72a=_0x3e2273['data']['key'];if(_0x15deb9['has'](_0x3ac72a))continue;_0x15deb9['add'](_0x3e2273['data']['key']),_0x3ac72a==m?this['_handleRenameSuggestionDescription'](_0x594417,_0x3e2273):this['_handleAttributeSuggestionDescription'](_0x594417,_0x3e2273);continue;}'insertion'!=_0x3e2273['type']&&'deletion'!=_0x3e2273['type']||this['_handleInsertRemoveSuggestionDescription'](_0x594417,_0x3e2273,_0x91bf4f[_0x41e8ce+0x1]);}}return this['_resolveDescriptionItems'](_0x594417);}['registerDescriptionCallback'](_0x319534){this['_customCallbacks']['push'](_0x319534);}['registerElementLabel'](_0x2cce0a,_0x38940a,_0x1b5db5=_0x40c02c['normal']){'function'==typeof _0x2cce0a?_0x1021dd(this['_itemLabelsCallbacks'],{'matchingCallback':_0x2cce0a,'label':_0x38940a,'priority':_0x1b5db5}):this['_itemLabels']['set'](_0x2cce0a,_0x38940a);}['registerAttributeLabel'](_0xd4a9a6,_0x4ed510){this['_attributeLabels']['set'](_0xd4a9a6,_0x4ed510);}['getItemLabel'](_0x3c0332,_0x4d81ac=0x1){let _0x4722b2;for(const _0x1924b7 of this['_itemLabelsCallbacks'])if(_0x1924b7['matchingCallback'](_0x3c0332)){_0x4722b2=_0x1924b7['label'];break;}return _0x4722b2||(_0x4722b2=this['_itemLabels']['get'](_0x3c0332['name'])),_0x4722b2?_0x4722b2(_0x4d81ac):0x1!==_0x4d81ac?_0x4d81ac+'\x20'+_0x3c0332['name']+'s':''+_0x3c0332['name'];}['_addDescriptionItems'](_0x3a32a5,_0x1d7146){const _0x2bcecd=_0x1d7146['getFirstRange']()['getWalker'](),_0xa40202='insertion'==_0x1d7146['type']?'add':'remove';for(const _0x50f875 of _0x2bcecd){const _0x5f1583=_0x50f875['item'],_0x40fdb9=_0x3a32a5[_0x3a32a5['length']-0x1];if(_0x5f1583['is']('$textProxy'))_0x40fdb9&&_0x40fdb9['type']['indexOf']('Container')>-0x1&&_0x3a32a5['pop'](),_0x40fdb9&&'text'==_0x40fdb9['type']?_0x40fdb9[_0xa40202]+=_0x5f1583['data']:_0x3a32a5['push']({'type':'text','add':'add'==_0xa40202?_0x5f1583['data']:'','remove':'remove'==_0xa40202?_0x5f1583['data']:''});else{if(this['_schema']['isObject'](_0x5f1583)){const _0xa4ac46=_0x5f1583;if(_0x40fdb9&&_0x40fdb9['type']['indexOf']('Container')>-0x1&&_0x3a32a5['pop'](),'elementEnd'==_0x50f875['type'])continue;_0x40fdb9&&_0x40fdb9['type']==_0xa40202+'Object'&&_0x40fdb9['element']['name']==_0xa4ac46['name']?_0x40fdb9['quantity']++:_0x3a32a5['push']({'type':_0xa40202+'Object','element':_0xa4ac46,'quantity':0x1}),_0x2bcecd['skip'](_0x4c073b=>!('elementEnd'==_0x4c073b['type']&&_0x4c073b['item']==_0x5f1583));}else{if(this['_schema']['checkChild'](_0x5f1583,'$text')||_0x5f1583['is']('element','softBreak')){const _0x433535=_0x5f1583;if('add'==_0xa40202&&'elementStart'==_0x50f875['type']||'remove'==_0xa40202&&'elementEnd'==_0x50f875['type'])continue;if(_0x40fdb9&&-0x1==_0x40fdb9['type']['indexOf']('Container')){'text'==_0x40fdb9['type']&&(_0x40fdb9[_0xa40202]+='\x0a');continue;}let _0x2c6db0;if(_0x2c6db0='add'==_0xa40202?_0x433535['nextSibling']&&!this['_schema']['isObject'](_0x433535['nextSibling'])?_0x433535['nextSibling']:null:_0x433535['previousSibling']&&!this['_schema']['isObject'](_0x433535['previousSibling'])?_0x433535['previousSibling']:null,_0x433535['isEmpty']||_0x2c6db0&&_0x2c6db0['isEmpty']){const _0x350b10=_0x2c6db0&&_0x2c6db0['isEmpty']?_0x2c6db0:_0x433535;_0x40fdb9&&_0x40fdb9['type']==_0xa40202+'EmptyContainer'&&_0x40fdb9['element']['name']==_0x350b10['name']?_0x40fdb9['quantity']++:_0x3a32a5['push']({'type':_0xa40202+'EmptyContainer','element':_0x350b10,'quantity':0x1});}else _0x3a32a5['push']({'type':_0xa40202+'Container','element':_0x433535});}}}}}['_resolveDescriptionItems'](_0x49d6ff){const _0x4bbb7c=this['_locale'],_0xc98e18=[],_0x2f3219=[],_0x2a4053=[];for(const _0x5158df of _0x49d6ff)switch(_0x5158df['type']){case'text':if(_0x5158df['add']=_0x5158df['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x5158df['remove']=_0x5158df['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x5158df['add']&&''!=_0x5158df['remove']){_0xc98e18['push']({'type':'replace','content':o(_0x4bbb7c,'REPLACE_TEXT',['\x22'+_0x5158df['remove']+'\x22','\x22'+_0x5158df['add']+'\x22'])});continue;}if(null!=_0x5158df['add']['match'](/^ +$/)){_0xc98e18['push']({'type':'insertion','content':o(_0x4bbb7c,'*Insert:*\x20%0',o(_0x4bbb7c,'ELEMENT_SPACE',_0x5158df['add']['length']))});continue;}if(null!=_0x5158df['remove']['match'](/^ +$/)){_0xc98e18['push']({'type':'deletion','content':o(_0x4bbb7c,'*Remove:*\x20%0',o(_0x4bbb7c,'ELEMENT_SPACE',_0x5158df['remove']['length']))});continue;}if(''!=_0x5158df['add']){_0xc98e18['push']({'type':'insertion','content':o(_0x4bbb7c,'*Insert:*\x20%0','\x22'+_0x5158df['add']+'\x22')});continue;}_0xc98e18['push']({'type':'deletion','content':o(_0x4bbb7c,'*Remove:*\x20%0','\x22'+_0x5158df['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0xc98e18['push']({'type':'insertion','content':o(_0x4bbb7c,'*Insert:*\x20%0',this['getItemLabel'](_0x5158df['element'],_0x5158df['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0xc98e18['push']({'type':'deletion','content':o(_0x4bbb7c,'*Remove:*\x20%0',this['getItemLabel'](_0x5158df['element'],_0x5158df['quantity']))});continue;case'addContainer':_0xc98e18['push']({'type':'insertion','content':o(_0x4bbb7c,'*Split:*\x20%0',this['getItemLabel'](_0x5158df['element'],_0x5158df['quantity']))});continue;case'removeContainer':_0xc98e18['push']({'type':'deletion','content':o(_0x4bbb7c,'*Merge:*\x20%0',this['getItemLabel'](_0x5158df['element'],_0x5158df['quantity']))});continue;case'addFormat':_0x2f3219['push'](_0x5158df['key']);continue;case'removeFormat':_0x2a4053['push'](_0x5158df['key']);continue;default:_0xc98e18['push'](_0x5158df);}if(_0x2f3219['length']){const _0x4aee22=_0x2f3219['map'](_0x327d6c=>this['_attributeLabels']['has'](_0x327d6c)?this['_attributeLabels']['get'](_0x327d6c):_0x327d6c)['join'](',\x20');_0xc98e18['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x4aee22)});}if(_0x2a4053['length']){const _0x5d2247=_0x2a4053['map'](_0x2e647e=>this['_attributeLabels']['has'](_0x2e647e)?this['_attributeLabels']['get'](_0x2e647e):_0x2e647e)['join'](',\x20');_0xc98e18['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x5d2247)});}return _0xc98e18;}['_handleCustomCallbackDescription'](_0x5cce0f){for(const _0x442ba3 of this['_customCallbacks']){const _0x449416=_0x442ba3(_0x5cce0f);if(_0x449416&&'type'in _0x449416)return _0x449416;}}['_handleAttributeSuggestionDescription'](_0x5ca8c,_0x4e8a8b){const _0x1119f5=_0x4e8a8b['data'],_0x2e07a7=void 0x0===_0x1119f5['newValue']?'removeFormat':'addFormat';_0x5ca8c['push']({'type':_0x2e07a7,'key':_0x1119f5['key']});}['_handleRenameSuggestionDescription'](_0x5fb470,_0x31d781){_0x5fb470['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x31d781['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x4597d3,_0xfb5fd8,_0x549cd6){if(this['_addDescriptionItems'](_0x4597d3,_0xfb5fd8),_0x549cd6&&_0x549cd6['getFirstRange']()&&!_0xfb5fd8['getFirstRange']()['end']['isEqual'](_0x549cd6['getFirstRange']()['start'])){const _0x5b2ad9=_0x4597d3[_0x4597d3['length']-0x1],_0x58ab69='insertion'==_0xfb5fd8['type']?'add':'remove';_0x5b2ad9&&'text'==_0x5b2ad9['type']&&(_0x5b2ad9[_0x58ab69]+='\x0a');}}}class O extends _0x27a926{['afterInit'](){const _0x4e1a75=this['editor'],_0x33a7e0=_0x4e1a75['plugins']['get']('TrackChangesEditing');_0x4e1a75['commands']['get']('showAIAssistant')&&_0x33a7e0['enableCommand']('showAIAssistant');}}class E extends _0x27a926{['afterInit'](){const _0x1f9f94=this['editor'],_0xfc9a50=_0x1f9f94['locale'];if(!_0x1f9f94['plugins']['has']('AlignmentEditing'))return;const _0x16c636=_0x1f9f94['plugins']['get']('TrackChangesEditing');_0x16c636['enableDefaultAttributesIntegration']('alignment'),_0x16c636['registerBlockAttribute']('alignment'),_0x16c636['descriptionFactory']['registerAttributeLabel']('alignment',o(_0xfc9a50,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2b6d16=this['editor'],_0x137e65=_0x2b6d16['locale'];_0x2b6d16['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x18b239=>{if('formatBlock'!=_0x18b239['type'])return;const {data:_0x268503}=_0x18b239;if(_0x268503&&'alignment'==_0x268503['commandName']){const _0x4890b4=_0x268503['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x137e65,'*Format:*\x20%0',function(_0x3d6d52){switch(_0x3d6d52){case'left':return o(_0x137e65,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x137e65,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x137e65,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x137e65,'FORMAT_JUSTIFY_TEXT');}}(_0x4890b4))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class R extends _0x27a926{['afterInit'](){const _0x5b5e8a=this['editor'],_0x1adf47=_0x5b5e8a['plugins']['get']('TrackChangesEditing'),_0x3bfd63=_0x5b5e8a['locale'];for(const _0x4a5c2c of ti){if(!_0x5b5e8a['plugins']['has'](_0x4a5c2c))continue;const _0x2120ed=_0x4a5c2c['slice'](0x0,-0x7)['toLowerCase'](),_0x1ce610='FORMAT_'+_0x2120ed['toUpperCase']();_0x1adf47['enableDefaultAttributesIntegration'](_0x2120ed),_0x1adf47['registerInlineAttribute'](_0x2120ed),_0x1adf47['descriptionFactory']['registerAttributeLabel'](_0x2120ed,o(_0x3bfd63,_0x1ce610));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x584337=this['editor'],_0xff79b4=_0x584337['locale'],_0x53c5fe=_0x584337['plugins']['get']('TrackChangesEditing');function _0x59d06b(_0xb09407,_0x2b59ea){_0x53c5fe['descriptionFactory']['registerDescriptionCallback'](_0x4d1487=>{if('formatInline'!=_0x4d1487['type'])return;const {data:_0x4cc6ea}=_0x4d1487;return _0x4cc6ea&&_0x4cc6ea['commandName']===_0xb09407?_0x4cc6ea['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xff79b4,'*Format:*\x20%0',_0x2b59ea)}:{'type':'format','content':o(_0xff79b4,'*Remove\x20format:*\x20%0',_0x2b59ea)}:void 0x0;});}_0x59d06b('bold',o(_0xff79b4,'FORMAT_BOLD')),_0x59d06b('italic',o(_0xff79b4,'FORMAT_ITALIC')),_0x59d06b('underline',o(_0xff79b4,'FORMAT_UNDERLINE')),_0x59d06b('code',o(_0xff79b4,'FORMAT_CODE')),_0x59d06b('strikethrough',o(_0xff79b4,'FORMAT_STRIKETHROUGH')),_0x59d06b('subscript',o(_0xff79b4,'FORMAT_SUBSCRIPT')),_0x59d06b('superscript',o(_0xff79b4,'FORMAT_SUPERSCRIPT'));}}class U extends _0x27a926{['afterInit'](){const _0x5cef69=this['editor'],_0xa22fab=_0x5cef69['locale'];if(!_0x5cef69['plugins']['has']('BlockQuoteEditing'))return;const _0x3a82f0=_0x5cef69['plugins']['get']('TrackChangesEditing'),_0x5c90c2=this['editor']['commands']['get']('blockQuote');_0x3a82f0['enableCommand']('blockQuote',(_0x4470ec,_0x561569={})=>{const _0x5b0792=this['editor']['model']['document']['selection'],_0x1a4543=_0x561569&&void 0x0!==_0x561569['forceValue']?_0x561569['forceValue']:!_0x5c90c2['value'];let _0xa69e91=[];if(_0x1a4543){const _0x81343a=Array['from'](_0x5b0792['getSelectedBlocks']())['filter'](_0x19f4d5=>oo(_0x19f4d5)||function(_0x23fafc,_0x1f6fb5){const _0x2d8dd6=_0x1f6fb5['checkChild'](_0x23fafc['parent'],'blockQuote'),_0x3e13a8=_0x1f6fb5['checkChild'](['$root','blockQuote'],_0x23fafc);return _0x2d8dd6&&_0x3e13a8;}(_0x19f4d5,this['editor']['model']['schema']));_0xa69e91=to(_0x81343a,_0x5cef69['model']);}else{const _0x1e053c=Array['from'](_0x5b0792['getSelectedBlocks']())['filter'](_0x5d3ad1=>oo(_0x5d3ad1));_0xa69e91=to(_0x1e053c,_0x5cef69['model']);}_0x5cef69['model']['change'](()=>{for(const _0x5f0760 of _0xa69e91)_0x3a82f0['markBlockFormat'](_0x5f0760,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x1a4543}]});});}),_0x3a82f0['descriptionFactory']['registerDescriptionCallback'](_0x1586ec=>{const {data:_0x5b7192}=_0x1586ec;if(_0x5b7192&&'blockQuote'==_0x5b7192['commandName']){const _0x5bd1df=o(_0xa22fab,'ELEMENT_BLOCK_QUOTE');return _0x5b7192['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xa22fab,'*Set\x20format:*\x20%0',_0x5bd1df)}:{'type':'format','content':o(_0xa22fab,'*Remove\x20format:*\x20%0',_0x5bd1df)};}});}}function oo(_0x1da8c8){return'blockQuote'==_0x1da8c8['parent']['name'];}class V extends _0x27a926{['afterInit'](){const _0x13311d=this['editor'],_0xe1345c=_0x13311d['locale'],_0xa96f78=_0x13311d['plugins']['get']('TrackChangesEditing');_0x13311d['plugins']['has']('BookmarkEditing')&&(_0xa96f78['enableCommand']('insertBookmark'),_0xa96f78['enableDefaultAttributesIntegration']('updateBookmark'),_0xa96f78['registerBlockAttribute']('bookmarkId'),_0xa96f78['descriptionFactory']['registerDescriptionCallback'](_0x5c0cff=>{if('insertion'!=_0x5c0cff['type']&&'deletion'!=_0x5c0cff['type']&&'attribute'!=_0x5c0cff['type'])return;const _0x32829e=_0x5c0cff['getContainedElement']();if(null==_0x32829e)return;if(!_0x32829e['is']('element','bookmark'))return;const _0x2a0b2d=_0x32829e['getAttribute']('bookmarkId');if('insertion'==_0x5c0cff['type'])return{'type':'insertion','content':o(_0xe1345c,'*Insert:*\x20%0','\x22'+_0x2a0b2d+'\x22\x20'+o(_0xe1345c,'ELEMENT_BOOKMARK'))};if('deletion'==_0x5c0cff['type'])return{'type':'deletion','content':o(_0xe1345c,'*Remove:*\x20%0','\x22'+_0x2a0b2d+'\x22\x20'+o(_0xe1345c,'ELEMENT_BOOKMARK'))};const {data:_0x3fc328}=_0x5c0cff;if(!_0x3fc328||'bookmarkId'!=_0x3fc328['key'])return;return{'type':'format','content':o(_0xe1345c,'*Set\x20bookmark:*\x20%0','\x22'+_0x3fc328['newValue']+'\x22')};}));}}class F extends _0x27a926{['afterInit'](){const _0x4e421b=this['editor'];_0x4e421b['plugins']['has']('CaseChange')&&(_0x4e421b['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x4e421b['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x4e421b['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x27a926{['afterInit'](){const _0xb590f1=this['editor'];_0xb590f1['commands']['get']('ckbox')&&_0xb590f1['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x27a926{['afterInit'](){const _0x15ab95=this['editor'];if(!_0x15ab95['plugins']['has']('CodeBlock'))return;const _0x138fa0=_0x15ab95['plugins']['get']('TrackChangesEditing'),_0x37287d=_0x15ab95['locale'],_0x1a74fd=_0x15ab95['config']['get']('codeBlock')['languages'],_0x3cf07b=_0x15ab95['commands']['get']('codeBlock');_0x138fa0['enableCommand']('indentCodeBlock'),_0x138fa0['enableCommand']('outdentCodeBlock'),_0x138fa0['enableCommand']('codeBlock',(_0x8f9880,_0x777f39={})=>{const _0x4591c6=_0x15ab95['model'],_0x48a960=_0x15ab95['model']['document']['selection'],_0x4f6236=_0x777f39&&void 0x0!==_0x777f39['forceValue']?_0x777f39['forceValue']:!_0x3cf07b['value'];let _0x44eab8;_0x777f39['language']||(_0x777f39['language']=_0x1a74fd[0x0]['language']),_0x44eab8=_0x4f6236?Array['from'](_0x48a960['getSelectedBlocks']())['filter'](_0xf62c45=>co(_0xf62c45)||function(_0x586bdd,_0xed9ded){if(_0x586bdd['is']('rootElement')||_0xed9ded['isLimit'](_0x586bdd))return!0x1;return _0xed9ded['checkChild'](_0x586bdd['parent'],'codeBlock');}(_0xf62c45,_0x4591c6['schema'])):Array['from'](_0x48a960['getSelectedBlocks']())['filter'](_0x21d7a4=>co(_0x21d7a4));const _0x4a10ab=to(_0x44eab8,_0x4591c6);_0x4591c6['change'](()=>{for(const _0x3303fb of _0x4a10ab)_0x138fa0['markBlockFormat'](_0x3303fb,{'commandName':'codeBlock','commandParams':[{..._0x777f39,'forceValue':_0x4f6236}],'formatGroupId':'blockName'});});}),(_0x138fa0['descriptionFactory']['registerElementLabel']('codeBlock',_0xe913b5=>o(_0x37287d,'ELEMENT_CODE_BLOCK',_0xe913b5)),_0x138fa0['descriptionFactory']['registerDescriptionCallback'](_0x2a06ec=>{if('formatBlock'!=_0x2a06ec['type'])return;const _0x379327=_0x37287d['t'],{data:_0x209314}=_0x2a06ec;if(!_0x209314||'codeBlock'!=_0x209314['commandName'])return;const _0x265d54=_0x209314['commandParams'][0x0]['language'],_0x2d8664=_0x379327(_0x1a74fd['find'](_0xa0b566=>_0xa0b566['language']===_0x265d54)['label'])['toLowerCase']();return _0x209314['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x37287d,'*Set\x20format:*\x20%0',o(_0x37287d,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x2d8664+')')}:{'type':'format','content':o(_0x37287d,'*Remove\x20format:*\x20%0',o(_0x37287d,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x4c2059){return'codeBlock'==_0x4c2059['name'];}class J extends _0x27a926{['afterInit'](){const _0x540d9e=this['editor'];if(!_0x540d9e['plugins']['has']('CommentsEditing'))return;_0x540d9e['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x741b8f,_0x2182bf,_0x18dc26){const _0x4cf4e1=[];for(const _0x32de67 of _0x2182bf['getItems']())_0x32de67['hasAttribute'](_0x741b8f)&&_0x4cf4e1['push'](_0x18dc26['createRangeOn'](_0x32de67));return _0x4cf4e1;}function De(_0x1913d6,_0x236807,{showActiveMarker:_0x4197b6=!0x0}={}){const _0x339044=_0x1913d6['plugins']['get']('TrackChangesEditing');return(_0x46bb8d,_0x19cd49,_0x2757b5)=>{if(!_0x2757b5['consumable']['test'](_0x19cd49['markerRange'],_0x46bb8d['name']))return;const _0x1ec826=_0x19cd49['markerRange']['getWalker'](),_0x3ae725=_0x19cd49['markerRange']['start'],_0x1160f=_0x1913d6['model']['schema'];let _0x34866e=null,_0x31d07b=null,_0x2676e8=!0x1,_0x49ae31=!0x1;for(const _0x451ab1 of _0x1ec826){const _0x54ec4e=_0x451ab1['item'];_0x2676e8=_0x2676e8||_0x1160f['isContent'](_0x54ec4e);const _0x30abc0=_0x2757b5['mapper']['toViewElement'](_0x54ec4e);if(_0x30abc0&&_0x30abc0['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x451ab1['type']&&(_0x1160f['isBlock'](_0x54ec4e)&&!_0x1160f['isLimit'](_0x54ec4e)&&(_0x54ec4e['nextSibling']||_0x3ae725['isAtEnd']?_0x34866e&&_0x34866e['parent']==_0x54ec4e||(_0x34866e=_0x54ec4e,_0x5ad231(_0x451ab1['previousPosition']),_0x49ae31=!0x0):_0x31d07b=_0x31d07b||_0x451ab1['previousPosition']));}function _0x5ad231(_0x5447f4){const {id:_0x1c6882,authorId:_0x253a67}=_0x339044['_splitMarkerName'](_0x19cd49['markerName']),_0x49b0fa=_0x2757b5['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x236807,'data-suggestion':_0x1c6882,'data-author-id':_0x253a67}),_0x46ca88=_0x2757b5['mapper']['toViewPosition'](_0x5447f4);_0x4197b6&&_0x339044['activeMarkers']['includes'](_0x19cd49['markerName'])&&_0x2757b5['writer']['addClass']('ck-suggestion-marker--active',_0x49b0fa),_0x2757b5['writer']['insert'](_0x46ca88,_0x49b0fa),_0x2757b5['mapper']['bindElementToMarker'](_0x49b0fa,_0x19cd49['markerName']);}_0x2676e8||_0x49ae31||!_0x31d07b||_0x5ad231(_0x31d07b);};}class K extends _0x27a926{static get['requires'](){return[_0x56b950];}['init'](){const _0xafcfcd=this['editor'],_0x3cefdf=_0xafcfcd['plugins']['get']('TrackChangesEditing');_0x3cefdf['enableCommand']('delete');const _0xd5056e=_0xafcfcd['commands']['get']('deleteForward');_0x3cefdf['enableCommand']('deleteForward',(_0x398bdb,_0x57b4c6={})=>{const _0x3743e1=_0xafcfcd['model']['createSelection'](_0xafcfcd['model']['document']['selection']);_0x3743e1['isCollapsed']&&_0xafcfcd['model']['modifySelection'](_0x3743e1,{'direction':'forward','unit':_0x57b4c6['unit']});const _0x3aaaad=_0x3743e1['getFirstRange'](),_0x41ce5c=_0x3561c8['fromRange'](_0x3aaaad);let _0x5b458c;_0x398bdb(_0x57b4c6),_0x5b458c='$graveyard'==_0x41ce5c['root']['rootName']?_0xafcfcd['model']['createRange'](_0x3aaaad['start']):_0xafcfcd['model']['createRange'](_0x41ce5c['start'],_0x41ce5c['end']),_0x41ce5c['detach'](),_0xafcfcd['model']['enqueueChange'](_0xd5056e['buffer']['batch'],_0x26c4f2=>{_0xd5056e['buffer']['lock'](),_0x26c4f2['setSelection'](_0x26c4f2['createRange'](_0x5b458c['end'])),_0xd5056e['buffer']['unlock']();});}),_0xafcfcd['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0xafcfcd,'merge'),{'priority':'high'}),_0xafcfcd['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x4099a5,_0x26f459,_0x41d259)=>{_0x41d259['options']['showSuggestionHighlights']&&De(_0xafcfcd,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x4099a5,_0x26f459,_0x41d259);},{'priority':'high'}),_0xafcfcd['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x5c1578,_0x2f5dae,_0x4ab4f0)=>{const _0x1842c5=_0x4ab4f0['mapper']['markerNameToElements'](_0x2f5dae['markerName']);if(_0x1842c5){for(const _0x58e3aa of _0x1842c5)_0x58e3aa['is']('uiElement')&&(_0x4ab4f0['mapper']['unbindElementFromMarkerName'](_0x58e3aa,_0x2f5dae['markerName']),_0x4ab4f0['writer']['remove'](_0x58e3aa));}},{'priority':'high'});}}class H extends _0x27a926{['afterInit'](){const _0x32c839=this['editor'];if(!_0x32c839['plugins']['has']('ListEditing'))return;const _0x5a1b64=_0x32c839['locale'],_0x555631=_0x32c839['plugins']['get']('TrackChangesEditing'),_0x4d6020=_0x32c839['plugins']['has']('TodoListEditing'),_0x38180b=!!_0x32c839['config']['get']('list.multiBlock');function _0x552dce(_0x234b53){return{'type':'format','content':''+o(_0x5a1b64,'*Set\x20format:*\x20%0',_0x234b53)};}function _0x5b442a(_0xd4cdd2){return{'type':'format','content':''+o(_0x5a1b64,'*Remove\x20format:*\x20%0',_0xd4cdd2)};}_0x555631['enableDefaultAttributesIntegration']('numberedList'),_0x555631['enableDefaultAttributesIntegration']('bulletedList'),_0x555631['enableDefaultAttributesIntegration']('customNumberedList'),_0x555631['enableDefaultAttributesIntegration']('customBulletedList'),_0x555631['enableDefaultAttributesIntegration']('indentList'),_0x555631['enableDefaultAttributesIntegration']('outdentList'),_0x555631['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x555631['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x555631['registerBlockAttribute']('listItemId'),_0x555631['registerBlockAttribute']('listType'),_0x555631['registerBlockAttribute']('listIndent'),_0x38180b&&(_0x555631['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x555631['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x4d6020&&(_0x555631['enableDefaultAttributesIntegration']('todoList'),_0x555631['enableDefaultAttributesIntegration']('checkTodoList'),_0x555631['registerBlockAttribute']('todoListChecked'),_0x555631['descriptionFactory']['registerDescriptionCallback'](_0x2d54f5=>{const {data:_0xd31570}=_0x2d54f5;if(_0xd31570&&'todoListChecked'==_0xd31570['key'])return{'type':'format','content':_0xd31570['newValue']?o(_0x5a1b64,'*Check\x20item*'):o(_0x5a1b64,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x342091=>{if(_0x342091['batch']['isUndo'])return!0x1;let _0x21233d=!0x1;const _0x6b4c56=_0x555631['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x323536=>'todoListChecked'===_0x555631['_getAttributeKey'](_0x323536));for(const _0x4b32bc of _0x6b4c56){'todo'!=_0x4b32bc['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x555631['_findSuggestions'](_0x4b32bc['getFirstRange'](),'attribute')['find'](_0x3f5084=>'listType'===_0x555631['_getAttributeKey'](_0x3f5084['suggestion']))||(_0x342091['removeMarker'](_0x4b32bc['getFirstMarker']()),_0x21233d=!0x0));}return _0x21233d;})),_0x555631['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x5a1b64,'FORMAT_INDENT'));const _0x3e3a86={'type':'format','content':''};_0x555631['descriptionFactory']['registerDescriptionCallback'](_0x992fad=>{const {data:_0x5e4ef3}=_0x992fad;if(!_0x5e4ef3||'listType'!=_0x5e4ef3['key'])return;let _0x4b9cd1=_0x992fad['head'];for(;_0x4b9cd1;){if(_0x4b9cd1['data']&&(('listStyle'==_0x4b9cd1['data']['key']||'listMarkerStyle'==_0x4b9cd1['data']['key'])&&(_0x4b9cd1['data']['newValue']&&'default'!=_0x4b9cd1['data']['newValue']||'default'!=_0x4b9cd1['data']['oldValue']&&!_0x5e4ef3['newValue'])||!_0x38180b&&_0x4b9cd1['data']['key']==m))return _0x3e3a86;_0x4b9cd1=_0x4b9cd1['next'];}if(null==_0x5e4ef3['newValue'])switch(_0x5e4ef3['oldValue']){case'bulleted':return _0x5b442a(o(_0x5a1b64,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5b442a(o(_0x5a1b64,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5b442a(o(_0x5a1b64,'ELEMENT_TODO_LIST'));}switch(_0x5e4ef3['newValue']){case'bulleted':return _0x552dce(o(_0x5a1b64,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x552dce(o(_0x5a1b64,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x552dce(o(_0x5a1b64,'ELEMENT_TODO_LIST'));}}),_0x555631['descriptionFactory']['registerDescriptionCallback'](_0x8815e8=>{const {data:_0x5714e7}=_0x8815e8;if(_0x5714e7&&'listIndent'==_0x5714e7['key'])return null==_0x5714e7['newValue']||null==_0x5714e7['oldValue']&&0x0==_0x5714e7['newValue']?_0x3e3a86:void 0x0;}),_0x555631['descriptionFactory']['registerDescriptionCallback'](_0x5385c0=>{if('attribute'!=_0x5385c0['type'])return;const {data:_0x1740de}=_0x5385c0;if(!_0x1740de||'listItemId'!=_0x1740de['key'])return;const _0x49716d=Te(_0x5385c0);return'newValue'==_0x49716d?{'type':'format','content':o(_0x5a1b64,'*Merge:*\x20list\x20item')}:'oldValue'==_0x49716d?{'type':'format','content':o(_0x5a1b64,'*Split:*\x20list\x20item')}:_0x3e3a86;}),_0x32c839['model']['document']['registerPostFixer'](_0x3b2e50=>this['listItemIdFixer'](_0x3b2e50)),_0x32c839['model']['document']['registerPostFixer'](_0x3d2cec=>this['noTrackChangesFixer'](_0x3d2cec)),_0x32c839['model']['document']['on']('change:data',(_0x1a9fb9,_0x4454f1)=>{if(_0x4454f1['isUndo']||!_0x4454f1['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x552752){if(_0x552752['batch']['isUndo']||!_0x552752['batch']['isLocal'])return!0x1;let _0x3fc072=!0x1;const _0x3c1b80=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x367e4b=>_0x367e4b['data']&&'listItemId'==_0x367e4b['data']['key'])['filter'](_0x2aead0=>_0x2aead0['data']['newValue']&&_0x2aead0['data']['oldValue']);for(const _0xd0666b of _0x3c1b80)Te(_0xd0666b)||(_0x552752['removeMarker'](_0xd0666b['getFirstMarker']()),_0x3fc072=!0x0);return _0x3fc072;}['noTrackChangesFixer'](_0x1dd685){if(_0x1dd685['batch']['isUndo']||!_0x1dd685['batch']['isLocal'])return!0x1;const _0x4d9813=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4d9813['trackChangesCommand']['value'])return!0x1;let _0x3bcb29=!0x1;const _0x254c39=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x7573f8=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x164d68=>'attribute'==_0x164d68['type'])['filter'](_0x46fbf7=>_0x254c39['includes'](_0x46fbf7['attributeKey']));if(0x0==_0x7573f8['length'])return _0x3bcb29;for(const _0x3f422c of _0x7573f8){const _0x3d59f0=_0x4d9813['_findSuggestions'](_0x3f422c['range'],'attribute')['filter'](_0x1a5c51=>!_0x1a5c51['meta']['isNextTo'])['map'](_0x30e1ca=>_0x30e1ca['suggestion'])['filter'](_0x1a2e38=>{const _0x14dd05=_0x4d9813['_getAttributeKey'](_0x1a2e38);return _0x254c39['includes'](_0x14dd05);});if(_0x3d59f0['length']){for(const _0x11d15a of _0x3d59f0)_0x1dd685['removeMarker'](_0x11d15a['getFirstMarker']());_0x3bcb29=!0x0;}}return _0x3bcb29;}['assureChains'](){const _0x426622=this['editor']['plugins']['get']('TrackChangesEditing'),_0x322fab=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0xe1dd6d;const _0x3a5bcd=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2e9565=>{if(_0x2e9565['data']['oldRange']||!_0x2e9565['data']['newRange'])return null;if(!_0x2e9565['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x2a6752}=_0x426622['_splitMarkerName'](_0x2e9565['name']);if(!_0x426622['hasSuggestion'](_0x2a6752))return null;const _0x3589fe=_0x426622['getSuggestion'](_0x2a6752);return _0x322fab['includes'](_0x3589fe['data']['key']);})['map'](_0x51bb27=>{const {id:_0x4aa4a3}=_0x426622['_splitMarkerName'](_0x51bb27['name']),_0x4e5b19=_0x426622['getSuggestion'](_0x4aa4a3);return _0xe1dd6d=_0x4e5b19['attributes']['groupId'],_0x4e5b19['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x3a5bcd['size'])return;const _0x24bed9=_0x426622['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3e526a=>'attribute'==_0x3e526a['type']&&_0x3e526a['data']&&_0x322fab['includes'](_0x3e526a['data']['key'])&&_0x3e526a['attributes']['groupId']!=_0xe1dd6d)['map'](_0x5c78fe=>({'listItem':_0x5c78fe['getFirstRange']()['start']['nodeAfter'],'groupId':_0x5c78fe['attributes']['groupId']})),_0x17947c=new Set();for(const {groupId:_0x54986b,listItem:_0x13c626}of _0x24bed9)_0x3a5bcd['has'](_0x13c626)&&_0x17947c['add'](_0x54986b);for(const _0x1a0be8 of _0x426622['getSuggestions']())_0x17947c['has'](_0x1a0be8['attributes']['groupId'])&&_0x1a0be8['setAttribute']('groupId',_0xe1dd6d);}['_supportLegacySuggestions'](){const _0x210bd2=this['editor'],_0x336bf7=_0x210bd2['locale'],_0xfb1356=_0x210bd2['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0xfb1356['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x5d7840,_0x419b81){const _0x55122c=[];for(let _0x288fcb of _0x5d7840)_0x288fcb['start']['nodeAfter']===_0x288fcb['end']['parent']&&(_0x288fcb=_0x210bd2['model']['createRange'](_0x210bd2['model']['createPositionAt'](_0x288fcb['start']['nodeAfter'],0x0))),_0x55122c['push'](_0x288fcb);_0x210bd2['model']['change'](_0x2605b6=>{const _0x4690a2=_0x210bd2['model']['document']['selection'],_0x11d389=Array['from'](_0x4690a2['getRanges']())['map'](_0x21ca36=>_0x3561c8['fromRange'](_0x21ca36));_0x2605b6['setSelection'](_0x55122c),_0x210bd2['commands']['get'](_0x419b81['commandName'])['refresh'](),_0x419b81['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x210bd2['execute'](_0x419b81['commandName'],..._0x419b81['commandParams']),_0x2605b6['setSelection'](_0x11d389);for(const _0x2e5dd3 of _0x11d389)_0x2e5dd3['detach']();});}),_0xfb1356['descriptionFactory']['registerElementLabel'](function(_0x277ce3){const _0x2b4dba=!_0x210bd2['model']['schema']['isObject'](_0x277ce3),_0x47cea7=_0x277ce3['previousSibling'],_0x22a1bf=_0x277ce3['nextSibling'],_0x4f656b=_0x277ce3['getAttribute']('listItemId'),_0x5b35a5=!_0x47cea7||_0x47cea7['getAttribute']('listItemId')!==_0x4f656b,_0x350d92=!_0x22a1bf||_0x22a1bf['getAttribute']('listItemId')!==_0x4f656b;return _0x2b4dba&&Boolean(_0x4f656b)&&_0x5b35a5&&_0x350d92;},_0x2781e8=>o(_0x336bf7,'ELEMENT_LIST_ITEM',_0x2781e8));}['_registerLegacyDescription'](){const _0x36f43b=this['editor'],_0xc49226=_0x36f43b['locale'];function _0x553344(_0x3aa621){const _0x101322=_0x36f43b['commands']['get']('bulletedList')['value'],_0x2b70ba=_0x36f43b['commands']['get']('numberedList')['value'];return'numberedList'===_0x3aa621?_0x101322:_0x2b70ba;}_0x36f43b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x12938a){if('formatBlock'!=_0x12938a['type'])return;const {data:_0x34c404}=_0x12938a;if(!_0x34c404)return;let _0x76f2d9,_0xa5e04e,_0x440c65,_0x561188;switch(_0x34c404['commandName']){case'bulletedList':_0x440c65=_0x34c404['commandParams'][0x0]['forceValue'],_0x561188=_0x553344(_0x34c404['commandName']),_0x76f2d9=_0x440c65?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x561188&&_0x36f43b['config']['get']('list.multiBlock')||(_0x76f2d9='*Change\x20to:*\x20%0'),_0xa5e04e={'type':'format','content':o(_0xc49226,_0x76f2d9,o(_0xc49226,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x440c65=_0x34c404['commandParams'][0x0]['forceValue'],_0x561188=_0x553344(_0x34c404['commandName']),_0x76f2d9=_0x440c65?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x561188&&_0x36f43b['config']['get']('list.multiBlock')||(_0x76f2d9='*Change\x20to:*\x20%0'),_0xa5e04e={'type':'format','content':o(_0xc49226,_0x76f2d9,o(_0xc49226,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x76f2d9='*Indent:*\x20%0',_0xa5e04e={'type':'format','content':o(_0xc49226,_0x76f2d9,o(_0xc49226,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x76f2d9=function(_0x43ed1e){const _0x4c65e9=_0x43ed1e['getFirstRange']();let _0x233f68=_0x4c65e9['start']['nodeAfter'];for(;_0x233f68&&_0x4c65e9['containsItem'](_0x233f68);){if(_0x233f68['getAttribute']('listIndent')>0x0)return!0x1;_0x233f68=_0x233f68['nextSibling'];}return!0x0;}(_0x12938a)?o(_0xc49226,'*Format:*\x20remove\x20from\x20%0',o(_0xc49226,function(_0x52dd3e){return'ELEMENT_'+_0x52dd3e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x12938a))):o(_0xc49226,'*Outdent:*\x20%0',o(_0xc49226,'ELEMENT_LIST_ITEM')),_0xa5e04e={'type':'format','content':_0x76f2d9};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x34c404['multipleBlocks']&&(_0x76f2d9='*Merge:*\x20%0',_0xa5e04e={'type':'deletion','content':o(_0xc49226,_0x76f2d9,o(_0xc49226,'ELEMENT_LIST_ITEM'))});}return _0xa5e04e;});}}function Te(_0x1b0749){let _0x42bc09=_0x1b0749['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x42bc09;){const _0x4e202a=_0x42bc09['getAttribute']('listItemId');if(!_0x4e202a)return!0x1;if(_0x4e202a==_0x1b0749['data']['newValue'])return'newValue';if(_0x4e202a==_0x1b0749['data']['oldValue'])return'oldValue';_0x42bc09=_0x42bc09['previousSibling'];}return!0x1;}class q extends _0x27a926{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0xf38589=this['editor']['config']['get']('list.properties'),_0x2b97ab=this['editor']['plugins']['get']('TrackChangesEditing');_0xf38589['styles']&&(_0x2b97ab['enableDefaultAttributesIntegration']('listStyle'),_0x2b97ab['registerBlockAttribute']('listStyle')),_0xf38589['reversed']&&(_0x2b97ab['enableDefaultAttributesIntegration']('listReversed'),_0x2b97ab['registerBlockAttribute']('listReversed')),_0xf38589['startIndex']&&(_0x2b97ab['enableDefaultAttributesIntegration']('listStart'),_0x2b97ab['registerBlockAttribute']('listStart'));const _0x1d80a9={'type':'format','content':''};_0x2b97ab['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4e868a=this['editor']['locale'];_0x2b97ab['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x4e868a,'FORMAT_LIST_REVERSED')),_0x2b97ab['descriptionFactory']['registerDescriptionCallback'](_0x802216=>{const {data:_0x5cbdb3}=_0x802216;if(_0x5cbdb3&&'listReversed'==_0x5cbdb3['key'])return null==_0x5cbdb3['newValue']||0x0==_0x5cbdb3['newValue']&&null==_0x5cbdb3['oldValue']?_0x1d80a9:void 0x0;}),_0x2b97ab['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x4e868a,'FORMAT_LIST_START')),_0x2b97ab['descriptionFactory']['registerDescriptionCallback'](_0x17685e=>{const {data:_0x3897f0}=_0x17685e;if(_0x3897f0&&'listStart'==_0x3897f0['key'])return null==_0x3897f0['newValue']||0x1==_0x3897f0['newValue']&&null==_0x3897f0['oldValue']?_0x1d80a9:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x3e7f92=>{if(_0x3e7f92['batch']['isUndo'])return!0x1;let _0x2dacec=!0x1;const _0x3da0ae=_0x2b97ab['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4de687=>{const _0x15553f=_0x2b97ab['_getAttributeKey'](_0x4de687);return'listStart'==_0x15553f||'listReversed'==_0x15553f;});for(const _0x225e62 of _0x3da0ae){const _0x71382a=_0x225e62['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x71382a||'customNumbered'==_0x71382a)continue;_0x2b97ab['_findSuggestions'](_0x225e62['getFirstRange'](),'attribute')['find'](_0x218dcd=>'listType'==_0x2b97ab['_getAttributeKey'](_0x218dcd['suggestion']))||(_0x3e7f92['removeMarker'](_0x225e62['getFirstMarker']()),_0x2dacec=!0x0);}return _0x2dacec;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x49afe9){const _0x4beb1f=this['editor']['locale'],{data:_0x567b95}=_0x49afe9,_0x435b5f={'type':'format','content':''};if(!_0x567b95||'listStyle'!=_0x567b95['key'])return;if(!_0x567b95['oldValue'])return'default'==_0x567b95['newValue']?_0x435b5f:{'type':'format','content':''+o(_0x4beb1f,'*Set\x20format:*\x20%0',o(_0x4beb1f,this['_getTranslationKeyForListStyle'](_0x567b95['newValue'])))};if(!_0x567b95['newValue']){if('default'==_0x567b95['oldValue'])return _0x435b5f;let _0x67ff18=_0x49afe9['head'];for(;_0x67ff18;){if(_0x67ff18['data']&&'listType'==_0x67ff18['data']['key']&&_0x67ff18['data']['newValue'])return _0x435b5f;_0x67ff18=_0x67ff18['next'];}return{'type':'format','content':''+o(_0x4beb1f,'*Remove\x20format:*\x20%0',o(_0x4beb1f,this['_getTranslationKeyForListStyle'](_0x567b95['oldValue'])))};}if('default'!=_0x567b95['newValue'])return{'type':'format','content':''+o(_0x4beb1f,'*Set\x20format:*\x20%0',o(_0x4beb1f,this['_getTranslationKeyForListStyle'](_0x567b95['newValue'])))};let _0x4f93e9=_0x49afe9['head'];for(;_0x4f93e9;){if(_0x4f93e9['data']&&'listType'==_0x4f93e9['data']['key']&&_0x4f93e9['data']['newValue']&&_0x4f93e9['data']['oldValue'])return _0x435b5f;_0x4f93e9=_0x4f93e9['next'];}return{'type':'format','content':o(_0x4beb1f,'*Set\x20format:*\x20%0',o(_0x4beb1f,'ELEMENT_'+_0x49afe9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x2343e4=this['editor'],_0x2f397d=_0x2343e4['locale'];_0x2343e4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2b67ae=>{if('formatBlock'!=_0x2b67ae['type'])return;const {data:_0x2459df}=_0x2b67ae;if(!_0x2459df)return;let _0x40ccb2,_0x1f1880;switch(_0x2459df['commandName']){case'listStyle':_0x40ccb2='*Change\x20to:*\x20%0',_0x1f1880={'type':'format','content':o(_0x2f397d,_0x40ccb2,o(_0x2f397d,this['_getTranslationKeyForListStyle'](_0x2459df['commandParams'][0x0]['type'])))};break;case'listReversed':_0x40ccb2=_0x2459df['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1f1880={'type':'format','content':o(_0x2f397d,_0x40ccb2)};break;case'listStart':_0x40ccb2='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1f1880={'type':'format','content':o(_0x2f397d,_0x40ccb2,_0x2459df['commandParams'][0x0]['startIndex'])};}return _0x1f1880;});}['_getTranslationKeyForListStyle'](_0x3dc44f){return'ELEMENT_'+function(_0x5bcc12){if(Se['includes'](_0x5bcc12))return'bulleted';if(_e['includes'](_0x5bcc12))return'numbered';return null;}(_0x3dc44f)['toUpperCase']()+'_LIST_'+_0x3dc44f['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class z extends _0x27a926{['afterInit'](){const _0x19af56=this['editor'];_0x19af56['commands']['get']('emoji')&&_0x19af56['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class W extends _0x27a926{static get['requires'](){return[_0x3941f8];}['init'](){const _0x29d4f0=this['editor'],_0x19a1e7=_0x29d4f0['plugins']['get']('TrackChangesEditing'),_0xb307e6=_0x29d4f0['commands']['get']('enter');_0x19a1e7['enableCommand']('enter',()=>{_0x29d4f0['model']['change'](_0x22c756=>{const _0x111e0c=_0x29d4f0['model']['document']['selection'],_0x517f8c=_0x111e0c['getFirstPosition'](),_0x3a4cf7=_0x3561c8['fromRange'](_0x111e0c['getFirstRange']());if(_0xb307e6['enterBlock'](_0x22c756)){const _0x45ed86=_0x29d4f0['model']['createPositionAt'](_0x517f8c['parent']['nextSibling'],0x0),_0x49f3b9=_0x22c756['createRange'](_0x517f8c,_0x45ed86);_0x19a1e7['markInsertion'](_0x49f3b9);}else _0x22c756['setSelection'](_0x22c756['createRange'](_0x3a4cf7['end']));_0x3a4cf7['detach'](),_0xb307e6['fire']('afterExecute',{'writer':_0x22c756});});}),_0x29d4f0['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x29d4f0,'split'),{'priority':'high'}),_0x29d4f0['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x3551c7,_0x28c453,_0x36508a)=>{const _0x34f932=_0x36508a['mapper']['markerNameToElements'](_0x28c453['markerName']);if(_0x34f932){for(const _0x21fff2 of _0x34f932)_0x21fff2['hasClass']('ck-suggestion-marker-split')&&(_0x36508a['mapper']['unbindElementFromMarkerName'](_0x21fff2,_0x28c453['markerName']),_0x36508a['writer']['remove'](_0x21fff2));}},{'priority':'high'}),_0x29d4f0['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x354a11,_0x43ab69,_0x2b9a15)=>{_0x2b9a15['options']['showSuggestionHighlights']&&De(_0x29d4f0,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x354a11,_0x43ab69,_0x2b9a15);},{'priority':'high'});}}class Q extends _0x27a926{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x2c2664=this['editor']['plugins']['get']('TrackChangesEditing');_0x2c2664['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x2c2664['enableCommand']('findNext'),_0x2c2664['enableCommand']('findPrevious'),_0x2c2664['enableCommand']('replace'),_0x2c2664['enableCommand']('replaceAll');}['handleFindCommand'](_0x227aa9,_0x28b172,_0x4d2ecf={}){const _0x37f658=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x227aa9(_0x30ab8b=>{let _0xaace1c=('string'==typeof _0x28b172?_0x37f658['findByTextCallback'](_0x28b172,_0x4d2ecf):_0x28b172)(_0x30ab8b);Array['isArray'](_0xaace1c)&&(_0xaace1c={'results':_0xaace1c,'searchText':'string'==typeof _0x28b172?_0x28b172:''});const _0x2ff5e7=_0xaace1c['results']['filter'](_0x4b238f=>!0x1===this['_isInDeletionRange'](_0x4b238f,_0x30ab8b['item']));return{..._0xaace1c,'results':_0x2ff5e7};},_0x4d2ecf);}['_isInDeletionRange'](_0x5af967,_0x2eefda){const _0x3684d0=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2eefda,_0x5af967['start']),this['editor']['model']['createPositionAt'](_0x2eefda,_0x5af967['end']));for(const _0x3485e6 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x3684d0['getIntersection'](_0x3485e6['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 _0x27a926{['afterInit'](){const _0x4e8fb5=this['editor']['locale'],_0x4be767=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x2e4169,commandName:_0x242b4e}of eo)this['editor']['plugins']['has'](_0x2e4169)&&(_0x4be767['enableDefaultAttributesIntegration'](_0x242b4e),_0x4be767['registerInlineAttribute'](_0x242b4e));_0x4be767['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x4e8fb5,'FORMAT_FONT_SIZE')),_0x4be767['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x4e8fb5,'FORMAT_FONT_FAMILY')),_0x4be767['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x4e8fb5,'FORMAT_FONT_COLOR')),_0x4be767['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x4e8fb5,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x143697=this['editor'],_0x2bc9f3=_0x143697['locale'];_0x143697['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ad810=>{const _0xb9e43e=_0x2bc9f3['t'];if('formatInline'!=_0x3ad810['type'])return;const {data:_0x2e2629}=_0x3ad810;if(null!=_0x2e2629){if('fontSize'==_0x2e2629['commandName']){const _0x140661=_0x2e2629['commandParams'][0x0]['value'];if(_0x140661){const _0x41f0f5=_0xb9e43e(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4c1278=>_0x4c1278['model']==_0x140661)['title'])['toLowerCase']();return{'type':'format','content':o(_0x2bc9f3,'*Set\x20font\x20size:*\x20%0',_0x41f0f5)};}return{'type':'format','content':o(_0x2bc9f3,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x2e2629['commandName']){const _0x5dbd0e=_0x2e2629['commandParams'][0x0]['value'];return _0x5dbd0e?{'type':'format','content':o(_0x2bc9f3,'*Set\x20font\x20family:*\x20%0',_0x5dbd0e)}:{'type':'format','content':o(_0x2bc9f3,'*Reset\x20font\x20family*')};}if('fontColor'==_0x2e2629['commandName']){const _0x2639df=_0x2e2629['commandParams'][0x0]['value'];if(_0x2639df){const _0x1693c8=_0x1c29fc(this['editor']['config']['get']('fontColor.colors'))['find'](_0x365837=>_0x365837['model']==_0x2639df);let _0x53e7d5=_0x2639df,_0x3ea545='';return _0x1693c8&&(_0x53e7d5=_0x1693c8['label'],_0x3ea545=_0xb9e43e(_0x53e7d5)['toLowerCase']()),{'type':'format','content':o(_0x2bc9f3,'*Set\x20font\x20color:*\x20%0',_0x3ea545)['trim'](),'color':{'value':_0x2639df,'title':_0x3ea545||_0x53e7d5}};}return{'type':'format','content':o(_0x2bc9f3,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x2e2629['commandName']){const _0x45b813=_0x2e2629['commandParams'][0x0]['value'];if(_0x45b813){const _0x3789a7=_0x1c29fc(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x41fb0f=>_0x41fb0f['model']==_0x45b813);let _0x278496=_0x45b813,_0x3d5714='';return _0x3789a7&&(_0x278496=_0x3789a7['label'],_0x3d5714=_0xb9e43e(_0x278496)['toLowerCase']()),{'type':'format','content':o(_0x2bc9f3,'*Set\x20font\x20background\x20color:*\x20%0',_0x3d5714)['trim'](),'color':{'value':_0x45b813,'title':_0x3d5714||_0x278496}};}return{'type':'format','content':o(_0x2bc9f3,'*Reset\x20font\x20background\x20color*')};}}});}}class Y extends _0x27a926{['afterInit'](){const _0x33d690=this['editor'],_0x126ab3=_0x33d690['plugins']['get']('TrackChangesEditing'),_0x5a0ba0=_0x33d690['commands']['get']('copyFormat'),_0x278e3c=_0x33d690['commands']['get']('pasteFormat');_0x5a0ba0&&_0x278e3c&&(_0x126ab3['enableDefaultAttributesIntegration']('pasteFormat'),_0x126ab3['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x38a174=this['editor'],_0x3443fb=_0x38a174['locale'];_0x38a174['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x469f95=>{if('formatBlock'!=_0x469f95['type']&&'formatInline'!=_0x469f95['type'])return;const {data:_0x33b7cd}=_0x469f95;if(_0x33b7cd&&'pasteFormat'===_0x33b7cd['commandName']){const _0x38cd8c=[],_0x5c3de6=_0x33b7cd['commandParams'][0x0];for(const [_0x36d205,_0x9b1833]of Object['entries'](_0x5c3de6))_0x38cd8c['push'](ro(_0x38a174,_0x36d205,_0x9b1833));return _0x38cd8c['length']?{'type':'format','content':o(_0x3443fb,'*Set\x20format\x20to:*\x20%0',_0x38cd8c['join'](',\x20'))}:{'type':'format','content':o(_0x3443fb,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x2d5987,_0x527cc1,_0x224305){const _0x3aee90=_0x2d5987['locale']['t'],_0x4cc173=_0x527cc1['split'](/(?=[A-Z])/)['join']('\x20'),_0x5c4edc=_0x3aee90(_0x4cc173['charAt'](0x0)['toUpperCase']()+_0x4cc173['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x224305)return _0x5c4edc;if('fontColor'===_0x527cc1||'fontBackgroundColor'===_0x527cc1){const _0x338cc0=_0x1c29fc(_0x2d5987['config']['get']('fontColor.colors'))['find'](_0x2f1856=>_0x2f1856['model']==_0x224305);return _0x5c4edc+'\x20('+(_0x338cc0?_0x3aee90(_0x338cc0['label'])['toLowerCase']():_0x224305)+')';}if('fontSize'===_0x527cc1&&isNaN(parseFloat(_0x224305))){const _0xa7e832=_0x2d5987['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x2d5987['config']['get']('fontSize.options'))['find'](_0x8a474a=>_0x8a474a['model']==_0x224305);return _0x5c4edc+'\x20('+(_0xa7e832?_0x3aee90(_0xa7e832['title'])['toLowerCase']():_0x224305)+')';}return _0x5c4edc+'\x20('+_0x224305+')';}class Z extends _0x27a926{['_headingOptions'];['afterInit'](){const _0x29fa8a=this['editor'];if(!_0x29fa8a['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x29fa8a['config']['get']('heading.options');const _0x12c5c5=_0x29fa8a['locale'],_0x58ea98=_0x29fa8a['plugins']['get']('TrackChangesEditing');_0x58ea98['enableDefaultAttributesIntegration']('heading');for(const _0x3c9acf of this['_headingOptions'])'paragraph'!=_0x3c9acf['model']&&_0x58ea98['descriptionFactory']['registerElementLabel'](_0x3c9acf['model'],_0x1c9c46=>{const _0x54fc89=this['_getHeadingLevel'](_0x3c9acf['model']);return null!==_0x54fc89?_0x29d6bd(_0x1c9c46,_0x54fc89):_0x2ed4a4(_0x1c9c46,_0x3c9acf['title']);});function _0x29d6bd(_0x535692,_0x4d6979){return o(_0x12c5c5,'ELEMENT_HEADING',[_0x535692,_0x4d6979]);}function _0x2ed4a4(_0xe32ed8,_0x1d1641){return o(_0x12c5c5,'ELEMENT_HEADING_CUSTOM',[_0xe32ed8,_0x1d1641]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x12afd8=this['editor'],_0x767967=_0x12afd8['locale'];function _0x7ee438(_0x8b45c4,_0xe69aad){return o(_0x767967,'ELEMENT_HEADING_CUSTOM',[_0x8b45c4,_0xe69aad]);}_0x12afd8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5713a9=>{if('formatBlock'!=_0x5713a9['type'])return;const {data:_0xfe9391}=_0x5713a9;if(_0xfe9391&&'heading'==_0xfe9391['commandName']){const _0x2c21dc=_0xfe9391['commandParams'][0x0]['value'],_0x1e2936=this['_getHeadingLevel'](_0x2c21dc);if(null!==_0x1e2936)return{'type':'format','content':o(_0x767967,'*Change\x20to:*\x20%0',(_0x1e4d9c=0x1,_0x26d40e=_0x1e2936,o(_0x767967,'ELEMENT_HEADING',[_0x1e4d9c,_0x26d40e])))};const _0x5ee42d=this['_headingOptions']['find'](_0x7f9f25=>_0x7f9f25['model']===_0x2c21dc)['title'];return{'type':'format','content':o(_0x767967,'*Change\x20to:*\x20%0',_0x7ee438(0x1,_0x5ee42d))};}var _0x1e4d9c,_0x26d40e;});}['_getHeadingLevel'](_0x3b3eed){const _0x132300=_0x3b3eed['match'](/^heading(\d+)/);if(_0x132300)return _0x132300[0x1];const _0x2e175c=this['_headingOptions']?.['find'](_0x441a1b=>_0x441a1b['model']==_0x3b3eed);if(_0x2e175c&&_0x2e175c['view']){const _0x2fcc20=_0x2e175c['view'],_0x40362d=(_0x2fcc20['name']??_0x2fcc20)['match'](/^h(\d+)/);if(_0x40362d)return _0x40362d[0x1];}return null;}}class tt extends _0x27a926{['afterInit'](){const _0x3735ec=this['editor'];if(!_0x3735ec['plugins']['has']('HighlightEditing'))return;const _0x3773d1=_0x3735ec['plugins']['get']('TrackChangesEditing'),_0x237118=_0x3735ec['locale'];_0x3773d1['enableDefaultAttributesIntegration']('highlight'),_0x3773d1['registerInlineAttribute']('highlight'),_0x3773d1['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x237118,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xa9d1ba=this['editor'],_0x1fc59c=_0xa9d1ba['locale'];_0xa9d1ba['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3f0dc0=>{if('formatInline'!=_0x3f0dc0['type'])return;const {data:_0xffded}=_0x3f0dc0;if(_0xffded&&'highlight'==_0xffded['commandName']){const _0x3eef23=_0x1fc59c['t'],_0x4d545d=_0xffded['commandParams'][0x0]['value'];if(_0x4d545d){const _0x56f447=_0xa9d1ba['config']['get']('highlight.options')['find'](_0x42e757=>_0x42e757['model']==_0x4d545d),_0x117ca5=_0x3eef23(_0x56f447['title'])['toLowerCase']();return{'type':'format','content':o(_0x1fc59c,'*Set\x20highlight:*\x20%0',_0x117ca5),'color':{'value':_0x56f447['color'],'title':_0x56f447['title']}};}return{'type':'format','content':o(_0x1fc59c,'*Remove\x20highlight*',o(_0x1fc59c,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x27a926{['afterInit'](){const _0x3b1265=this['editor'];if(!_0x3b1265['plugins']['has']('HorizontalLineEditing'))return;_0x3b1265['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x244eac=_0x3b1265['plugins']['get']('TrackChangesEditing'),_0x1d36d2=_0x3b1265['locale'];_0x244eac['descriptionFactory']['registerElementLabel']('horizontalLine',_0x2248ba=>o(_0x1d36d2,'ELEMENT_HORIZONTAL_LINE',_0x2248ba)),_0x3b1265['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x1b61c4,{writer:_0x497733,options:_0x5499b9})=>{if(!_0x5499b9['showSuggestionHighlights'])return null;const _0x1cb0f2=_0x497733['createContainerElement']('div'),_0x4cfbca=_0x497733['createEmptyElement']('hr');return _0x497733['addClass']('ck-horizontal-line',_0x1cb0f2),_0x497733['insert'](_0x497733['createPositionAt'](_0x1cb0f2,0x0),_0x4cfbca),_0x1cb0f2;},'converterPriority':'high'});}}class nt extends _0x27a926{['afterInit'](){const _0x18a1ac=this['editor'];if(!_0x18a1ac['plugins']['has']('HtmlEmbed'))return;const _0x317b94=_0x18a1ac['plugins']['get']('TrackChangesEditing'),_0x125a60=_0x18a1ac['locale'];_0x317b94['descriptionFactory']['registerElementLabel']('rawHtml',_0x3bbbf4=>o(_0x125a60,'ELEMENT_HTML_EMBED',_0x3bbbf4)),_0x317b94['enableDefaultAttributesIntegration']('htmlEmbed'),_0x317b94['registerBlockAttribute']('value'),_0x317b94['descriptionFactory']['registerDescriptionCallback'](_0x5d0fe2=>{if('attribute'!=_0x5d0fe2['type'])return;const {data:_0x1e8076}=_0x5d0fe2;if(_0x1e8076&&'value'==_0x1e8076['key']&&_0x5d0fe2['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x2a5477=o(_0x125a60,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x125a60,'*Change\x20%0\x20content*',_0x2a5477)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xef5423=this['editor'],_0x1d6aa5=_0xef5423['locale'];_0xef5423['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x234e7a=>{if('formatBlock'!=_0x234e7a['type'])return;const {data:_0x448d6b}=_0x234e7a;if(_0x448d6b&&'htmlEmbed'==_0x448d6b['commandName']){const _0x3d5bff=o(_0x1d6aa5,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1d6aa5,'*Change\x20%0\x20content*',_0x3d5bff)};}});}}class et extends _0x27a926{['afterInit'](){const _0x1114e3=this['editor'];if(!_0x1114e3['plugins']['has']('ImageEditing'))return;const _0x5a293c=_0x1114e3['plugins']['get']('TrackChangesEditing'),_0x3d5a57=_0x1114e3['plugins']['get']('ImageUtils'),_0x55cb07=_0x1114e3['locale'];_0x5a293c['enableCommand']('insertImage'),_0x5a293c['descriptionFactory']['registerElementLabel']('imageBlock',_0x29d9c3=>o(_0x55cb07,'ELEMENT_IMAGE',_0x29d9c3)),_0x5a293c['descriptionFactory']['registerElementLabel']('imageInline',_0xec7696=>o(_0x55cb07,'ELEMENT_INLINE_IMAGE',_0xec7696)),_0x5a293c['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x55cb07,'ELEMENT_CAPTION')),_0x1114e3['plugins']['has']('ImageUploadEditing')&&_0x5a293c['enableCommand']('uploadImage'),_0x1114e3['plugins']['has']('ImageBlockEditing')&&_0x1114e3['plugins']['has']('ImageInlineEditing')&&(_0x5a293c['enableCommand']('imageTypeInline',(_0x285d32,_0x474244)=>{const _0x40e560=_0x3d5a57['getClosestSelectedImageElement'](_0x1114e3['model']['document']['selection']);_0x1114e3['model']['change'](()=>{_0x5a293c['markBlockFormat'](_0x40e560,{'commandName':'imageTypeInline','commandParams':[_0x474244]},[],'convertBlockImageToInline');});}),_0x5a293c['enableCommand']('imageTypeBlock',(_0xbc90b3,_0x39df7e)=>{_0x1114e3['model']['change'](_0x4cd552=>{let _0x3b0825=_0x3d5a57['getClosestSelectedImageElement'](_0x1114e3['model']['document']['selection']),_0x232383=_0x4cd552['createRangeOn'](_0x3b0825);const _0x4b6eaa=_0x311b31['fromPosition'](_0x232383['start'],'toPrevious'),_0x16a578=_0x311b31['fromPosition'](_0x232383['end'],'toNext');_0x5a293c['forceDefaultExecution'](()=>_0xbc90b3(_0x39df7e)),_0x3b0825=_0x3d5a57['getClosestSelectedImageElement'](_0x1114e3['model']['document']['selection']),_0x232383=_0x4cd552['createRangeOn'](_0x3b0825);const _0x445b5c=_0x4cd552['createRange'](_0x4b6eaa,_0x16a578);_0x4b6eaa['detach'](),_0x16a578['detach'](),_0x5a293c['markBlockFormat'](_0x3b0825,{'commandName':'imageTypeInline','commandParams':[_0x39df7e]},[],'convertInlineImageToBlock'),_0x445b5c['start']['isBefore'](_0x232383['start'])&&_0x5a293c['markInsertion'](_0x4cd552['createRange'](_0x445b5c['start'],_0x232383['start']),'convertInlineImageToBlock'),_0x232383['end']['isBefore'](_0x445b5c['end'])&&_0x5a293c['markInsertion'](_0x4cd552['createRange'](_0x232383['end'],_0x445b5c['end']),'convertInlineImageToBlock');});}),_0x5a293c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x5a293c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x5a293c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x5a293c['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x5a293c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x5a293c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3d5f1b])=>{const _0x27b63d=_0x5a293c['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0xb47295=_0x3d5f1b['start'],_0x344099=_0x3d5f1b['end'];const _0x26a9b9=_0x1114e3['model']['schema']['getNearestSelectionRange'](_0xb47295,'backward'),_0x371fc9=_0x1114e3['model']['schema']['getNearestSelectionRange'](_0x344099,'forward');_0x26a9b9['isCollapsed']&&(_0xb47295=_0x26a9b9['start']),_0x371fc9['isCollapsed']&&(_0x344099=_0x371fc9['end']),_0x27b63d([_0x1114e3['model']['createRange'](_0xb47295,_0x344099)]);}),_0x5a293c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x15a5b9),_0x5a293c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x15a5b9)),_0x1114e3['plugins']['has']('ImageCaptionEditing')&&(_0x5a293c['enableCommand']('toggleImageCaption',(_0x2ec76e,_0x3b62e1)=>{const _0x18287b=_0x1114e3['plugins']['get']('ImageCaptionUtils');let _0x1c26a9=_0x3d5a57['getClosestSelectedImageElement'](_0x1114e3['model']['document']['selection']),_0x5f2648=_0x18287b['getCaptionFromImageModelElement'](_0x1c26a9);_0x1114e3['model']['change'](()=>{if(_0x5f2648)return void _0x5a293c['markDeletion'](_0x1114e3['model']['createRangeOn'](_0x5f2648));const _0x138dc1=_0x3d5a57['isBlockImage'](_0x1c26a9);_0x2ec76e(_0x3b62e1),_0x1c26a9=_0x3d5a57['getClosestSelectedImageElement'](_0x1114e3['model']['document']['selection']),_0x5f2648=_0x18287b['getCaptionFromImageModelElement'](_0x1c26a9),_0x5a293c['markInsertion'](_0x1114e3['model']['createRangeOn'](_0x5f2648),_0x138dc1?null:'imageCaption');});}),_0x5a293c['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x15a5b9));const _0x531901=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5b0ee1(_0x3b574a,_0x56be64){const _0x2844fb=_0x531901['findIndex'](({type:_0x16a5cc,subType:_0x416c92})=>_0x3b574a['type']==_0x16a5cc&&_0x3b574a['subType']==_0x416c92),_0x1d6997=_0x531901['findIndex'](({type:_0x338438,subType:_0x33b33})=>_0x56be64['type']==_0x338438&&_0x56be64['subType']==_0x33b33);if(_0x2844fb<0x0||_0x1d6997<0x0)return!0x1;const _0x328ffc=_0x3b574a['getFirstRange'](),_0xf583c6=_0x56be64['getFirstRange']();if((0x0==_0x2844fb||0x1==_0x2844fb)&&0x2==_0x1d6997&&_0x328ffc['isIntersecting'](_0xf583c6))return!0x0;if(0x2==_0x2844fb&&0x3==_0x1d6997){const _0x4d1355=_0x5a293c['_findSuggestions'](_0x328ffc,'insertion')['filter'](({suggestion:_0x1a8904,meta:_0x417be7})=>_0x417be7['isOwn']&&'convertInlineImageToBlock'==_0x1a8904['subType']);if(_0x4d1355['length']>0x1&&_0xf583c6['end']['isEqual'](_0x328ffc['start']))return!0x0;if(0x1==_0x4d1355['length']&&(_0x328ffc['start']['isEqual'](_0xf583c6['end'])||_0x328ffc['end']['isEqual'](_0xf583c6['start'])))return!0x0;}if(0x3==_0x2844fb&&0x3==_0x1d6997&&_0x328ffc['start']['isBefore'](_0xf583c6['start'])){const _0x7545bc=_0x328ffc['end']['nodeAfter'],_0x1339fd=_0xf583c6['start']['nodeBefore'];return _0x3d5a57['isBlockImage'](_0x7545bc)&&_0x7545bc===_0x1339fd;}return!0x1;}function _0x15a5b9(_0x40728c,_0xeb638){return _0x5b0ee1(_0x40728c,_0xeb638)?[_0x40728c,_0xeb638]:_0x5b0ee1(_0xeb638,_0x40728c)?[_0xeb638,_0x40728c]:null;}_0x1114e3['plugins']['has']('ImageResize')&&(_0x5a293c['enableDefaultAttributesIntegration']('resizeImage'),_0x5a293c['registerBlockAttribute']('resizedWidth'),_0x5a293c['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x55cb07,'FORMAT_IMAGE_SIZE'))),_0x1114e3['plugins']['has']('ImageTextAlternativeEditing')&&(_0x5a293c['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x5a293c['registerBlockAttribute']('alt')),_0x1114e3['plugins']['has']('PictureEditing')&&(_0x5a293c['registerBlockAttribute']('sources'),_0x5a293c['descriptionFactory']['registerDescriptionCallback'](_0x326fcb=>{if('attribute'!=_0x326fcb['type'])return;const {data:_0x5d74cf}=_0x326fcb;return _0x5d74cf&&'sources'==_0x5d74cf['key']?{'type':'format','content':''}:void 0x0;})),_0x1114e3['plugins']['has']('ImageSizeAttributes')&&(_0x5a293c['registerBlockAttribute']('width'),_0x5a293c['registerBlockAttribute']('height'),_0x5a293c['descriptionFactory']['registerDescriptionCallback'](_0x2c9340=>{if('attribute'!=_0x2c9340['type'])return;const {data:_0x2ab6e0}=_0x2c9340;return!_0x2ab6e0||'width'!=_0x2ab6e0['key']&&'height'!=_0x2ab6e0['key']?void 0x0:{'type':'format','content':''};})),_0x5a293c['descriptionFactory']['registerDescriptionCallback'](_0x286aa4=>{if(!!_0x531901['find'](({type:_0x5e3170,subType:_0x40d767})=>_0x286aa4['type']==_0x5e3170&&_0x286aa4['subType']==_0x40d767))return _0x286aa4['previous']?{}:void 0x0;}),_0x5a293c['descriptionFactory']['registerDescriptionCallback'](_0x375552=>{if('insertion'==_0x375552['type']||'deletion'==_0x375552['type']){const _0x2783fc=_0x375552['getContainedElement']();if(_0x2783fc&&_0x2783fc['is']('element','caption'))return{'type':'insertion'==_0x375552['type']?'addObject':'removeObject','element':_0x2783fc,'quantity':0x1};}}),_0x5a293c['descriptionFactory']['registerDescriptionCallback'](_0x26278b=>'formatBlock'==_0x26278b['type']&&'convertInlineImageToBlock'==_0x26278b['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x26278b['type']&&'convertBlockImageToInline'==_0x26278b['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x5a293c['descriptionFactory']['registerDescriptionCallback'](_0x58efd8=>{if('attribute'!=_0x58efd8['type'])return;const {data:_0x25f404}=_0x58efd8;if(!_0x25f404||'alt'!=_0x25f404['key'])return;const _0x47f654=_0x25f404['newValue'];return _0x47f654?{'type':'format','content':o(_0x55cb07,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x47f654+'\x22')}:{'type':'format','content':o(_0x55cb07,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3e0ae5=this['editor'],_0x161587=_0x3e0ae5['locale'];_0x3e0ae5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x846502=>{if('formatBlock'!=_0x846502['type']&&'formatInline'!=_0x846502['type'])return;const {data:_0x1321c4}=_0x846502;if(_0x1321c4){if('imageTextAlternative'==_0x1321c4['commandName']){const _0x90a119=_0x1321c4['commandParams'][0x0]['newValue'];return _0x90a119?{'type':'format','content':o(_0x161587,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x90a119+'\x22')}:{'type':'format','content':o(_0x161587,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x1321c4['commandName']){const _0x18603e=_0x1321c4['commandParams'][0x0]['width'];return _0x18603e?{'type':'format','content':o(_0x161587,'*Set\x20image\x20width:*\x20%0',_0x18603e)}:{'type':'format','content':o(_0x161587,'*Reset\x20image\x20width*')};}}});}}class st extends _0x27a926{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x1a3e2d=this['editor']['locale'],_0x1bceaf=this['editor']['plugins']['get']('TrackChangesEditing');_0x1bceaf['enableDefaultAttributesIntegration']('replaceImageSource'),_0x1bceaf['registerBlockAttribute']('src'),_0x1bceaf['descriptionFactory']['registerDescriptionCallback'](_0x2c4f53=>{if('attribute'!=_0x2c4f53['type'])return;const {data:_0x184ef3}=_0x2c4f53;return _0x184ef3&&'src'==_0x184ef3['key']?_0x184ef3['newValue']&&_0x184ef3['oldValue']?{'type':'format','content':o(_0x1a3e2d,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x341ef0=this['editor']['plugins']['get']('TrackChangesEditing');_0x341ef0['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x341ef0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x341ef0['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x341ef0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x19a67c=this['editor'],_0x11070c=_0x19a67c['locale'];_0x19a67c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x445f0a=>{if('formatBlock'!=_0x445f0a['type']&&'formatInline'!=_0x445f0a['type'])return;const {data:_0x4c3e3b}=_0x445f0a;if(!_0x4c3e3b||'replaceImageSource'!=_0x4c3e3b['commandName'])return;return{'type':'format','content':o(_0x11070c,'*Format:*\x20replace\x20image\x20URL')};});}}class ot extends _0x27a926{['afterInit'](){const _0x308941=this['editor'];if(!_0x308941['plugins']['has']('ImageStyleEditing'))return;const _0x5bc288=_0x308941['plugins']['get']('TrackChangesEditing'),_0x56a65f=_0x308941['plugins']['get']('ImageUtils'),_0x55acda={};_0x5bc288['enableCommand']('imageStyle',(_0xd1c193,_0x772089)=>{const _0x5c1d80=_0x308941['plugins']['get']('Users')['me'],_0x1ef926=_0x308941['commands']['get']('imageStyle');let _0x542089=_0x56a65f['getClosestSelectedImageElement'](_0x308941['model']['document']['selection']),_0x459794=_0x308941['model']['createRangeOn'](_0x542089),_0x59edfa=_0x1ef926['value'];if(_0x59edfa==_0x772089['value'])return;const _0x42d1c1={'commandName':'imageStyle','commandParams':[_0x772089],'formatGroupId':_0x5bc718()};_0x308941['model']['change'](()=>{if(_0x5bc288['getSuggestions']()['filter'](_0x2d0492=>_0x2d0492['isInContent']&&_0x5c1d80==_0x2d0492['author']&&('formatBlock'==_0x2d0492['type']||'formatInline'==_0x2d0492['type'])&&('imageStylePreApply'==_0x2d0492['subType']||'imageStylePostApply'==_0x2d0492['subType'])&&_0x2d0492['getFirstRange']()['isEqual'](_0x459794))['forEach'](_0x2cc1d7=>_0x5bc288['discardSuggestion'](_0x2cc1d7['head'])),_0x542089=_0x56a65f['getClosestSelectedImageElement'](_0x308941['model']['document']['selection']),_0x459794=_0x308941['model']['createRangeOn'](_0x542089),_0x1ef926['refresh'](),_0x308941['commands']['get']('imageTypeInline')['refresh'](),_0x308941['commands']['get']('imageTypeBlock')['refresh'](),_0x59edfa=_0x1ef926['value'],_0x59edfa!=_0x772089['value'])return _0x56a65f['isInlineImage'](_0x542089)&&_0x1ef926['shouldConvertImageType'](_0x772089['value'],_0x542089)?(_0xd1c193({..._0x772089,'setImageSizes':!0x1}),_0x542089=_0x56a65f['getClosestSelectedImageElement'](_0x308941['model']['document']['selection']),void _0x5bc288['markBlockFormat'](_0x542089,{..._0x42d1c1,'commandReversedParams':[{'value':_0x59edfa||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x56a65f['isBlockImage'](_0x542089)?_0x5bc288['markBlockFormat'](_0x542089,_0x42d1c1,[],'imageStylePostApply'):_0x5bc288['markInlineFormat'](_0x459794,_0x42d1c1,'imageStylePostApply'));});});for(const _0x3e6c7c of _0x308941['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x55acda[_0x3e6c7c['name']]=_0x3e6c7c['title']['toLowerCase']();_0x5bc288['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x5bc288['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x5bc288['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x5bc288['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x6af972])=>{_0x56a65f['setImageNaturalSizeAttributes'](_0x6af972['getContainedElement']());}),_0x5bc288['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x5aa68d,_0x4828b6)=>{_0x5bc288['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x5aa68d,{'commandName':_0x4828b6['commandName'],'commandParams':_0x4828b6['commandReversedParams']});}),_0x5bc288['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x4cc29e,_0x37146e){if(_0x486487(_0x4cc29e,_0x37146e))return[_0x4cc29e,_0x37146e];if(_0x486487(_0x37146e,_0x4cc29e))return[_0x37146e,_0x4cc29e];return null;});const _0x5289a5=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x486487(_0x3d525c,_0x46de41){const _0x2d57b4=_0x5289a5['findIndex'](({type:_0x5b1299,subType:_0x2ca923})=>_0x3d525c['type']==_0x5b1299&&_0x3d525c['subType']==_0x2ca923),_0x3e3a9f=_0x5289a5['findIndex'](({type:_0x54d1fa,subType:_0x19a911})=>_0x46de41['type']==_0x54d1fa&&_0x46de41['subType']==_0x19a911);if(_0x2d57b4<0x0||_0x3e3a9f<0x0)return!0x1;const _0x319d31=_0x3d525c['getFirstRange'](),_0x1600c5=_0x46de41['getFirstRange']();if((0x0==_0x2d57b4||0x1==_0x2d57b4)&&0x2==_0x3e3a9f&&_0x319d31['isIntersecting'](_0x1600c5))return!0x0;if(0x2==_0x2d57b4&&0x3==_0x3e3a9f){const _0x5c6585=_0x5bc288['_findSuggestions'](_0x319d31,'insertion')['filter'](({suggestion:_0x3f1e14,meta:_0xfdc919})=>_0xfdc919['isOwn']&&'convertInlineImageToBlock'==_0x3f1e14['subType']);if(_0x5c6585['length']>0x1&&_0x1600c5['end']['isEqual'](_0x319d31['start']))return!0x0;if(0x1==_0x5c6585['length']&&(_0x319d31['start']['isEqual'](_0x1600c5['end'])||_0x319d31['end']['isEqual'](_0x1600c5['start'])))return!0x0;}if(0x3==_0x2d57b4&&0x3==_0x3e3a9f&&_0x319d31['start']['isBefore'](_0x1600c5['start'])){const _0x2c833b=_0x319d31['end']['nodeAfter'],_0x1e1e74=_0x1600c5['start']['nodeBefore'];return _0x56a65f['isBlockImage'](_0x2c833b)&&_0x2c833b===_0x1e1e74;}return!0x1;}_0x308941['model']['document']['registerPostFixer'](()=>{let _0x1f18d4=!0x1;const _0x3f9dce=Array['from'](_0x308941['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x29469b,data:_0x2eed38}of _0x3f9dce){const {group:_0x477c90,type:_0x3a7c67,subType:_0x44de89,id:_0x268201}=_0x5bc288['_splitMarkerName'](_0x29469b);if('suggestion'==_0x477c90&&_0x5bc288['hasSuggestion'](_0x268201)){if('formatBlock'==_0x3a7c67&&('imageStylePreApply'==_0x44de89||'imageStylePostApply'==_0x44de89)){const _0x5d1c99=_0x5bc288['getSuggestion'](_0x268201);if(_0x2eed38['newRange']){const _0x4b480f=_0x5d1c99['getFirstRange']()['getContainedElement']();if(_0x56a65f['isBlockImage'](_0x4b480f))continue;_0x5bc288['discardSuggestion'](_0x5d1c99),_0x1f18d4=!0x0;}}if('insertion'==_0x3a7c67&&'imageCaption'==_0x44de89&&!_0x2eed38['newRange']){const _0x19782d=_0x5bc288['getSuggestion'](_0x268201);_0x19782d['next']&&_0x19782d['next']['isInContent']&&(_0x5bc288['discardSuggestion'](_0x19782d['next']),_0x1f18d4=!0x0);}}}return _0x1f18d4;}),this['_registerLegacyDescription'](_0x55acda);}['_registerLegacyDescription'](_0x407f99){const _0x1735f1=this['editor'],_0x3f2cf9=_0x1735f1['locale'];_0x1735f1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf0f6e8=>{if('formatBlock'!=_0xf0f6e8['type']&&'formatInline'!=_0xf0f6e8['type'])return;const {data:_0x5e3fe2}=_0xf0f6e8;if(!_0x5e3fe2||'imageStyle'!=_0x5e3fe2['commandName'])return;const _0x3bcad9=_0x5e3fe2['commandParams'][0x0]['value'];return _0x336483('side'===_0x3bcad9?o(_0x3f2cf9,'FORMAT_SIDE_IMAGE'):_0x407f99[_0x3bcad9]||_0x3bcad9);function _0x336483(_0xa0e3dc){return{'type':'format','content':o(_0x3f2cf9,'*Format:*\x20%0',_0xa0e3dc)};}});}}class rt extends _0x27a926{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x2cca2c){super(_0x2cca2c),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x3c26a6=this['editor'],_0x3d56be=_0x3c26a6['commands']['get']('importWord'),_0x2ed0dc=_0x3c26a6['commands']['get']('trackChanges');_0x3d56be&&(_0x3d56be['on']('execute',(_0x5818ff,[,_0x45edc9])=>{this['_trackChangesValueDuringImport']=_0x2ed0dc['value'],_0x45edc9['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x3d56be,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x3d56be,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x2ed0dc['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x3c26a6['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x455d70,_0x2d22d6){const {suggestions:_0x131fb9}=_0x2d22d6,_0x1470cf=this['editor']['commands']['get']('trackChanges'),_0x5c5fb2=_0x1470cf['value'];this['_trackChangesValueDuringImport']!==_0x5c5fb2&&(_0x1470cf['execute'](),this['_trackChangesExecuted']=!0x0),_0x131fb9&&_0x131fb9['forEach'](({id:_0x38b632,type:_0x370b5a,author:_0x1f479e,created_at:_0x9a765})=>{const _0xa35137={'id':_0x38b632,'type':_0x370b5a,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x1f479e,'createdAt':_0x9a765?new Date(_0x9a765):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0xa35137);});}}class at extends _0x27a926{['afterInit'](){const _0x4045cc=this['editor'],_0x1ca2a3=_0x4045cc['plugins']['get']('TrackChangesEditing');if(_0x4045cc['plugins']['has']('IndentEditing')&&(_0x1ca2a3['enableCommand']('indent'),_0x1ca2a3['enableCommand']('outdent')),_0x4045cc['plugins']['has']('IndentBlock')){for(const _0x28218a of['indentBlock','outdentBlock'])_0x1ca2a3['enableDefaultAttributesIntegration'](_0x28218a);}const _0x3b72b6=_0x4045cc['locale'];_0x1ca2a3['registerBlockAttribute']('blockIndent'),_0x1ca2a3['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x3b72b6,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x39f1b8=this['editor'],_0x6fc18b=_0x39f1b8['locale'],_0x386392=_0x39f1b8['plugins']['get']('TrackChangesEditing');_0x386392['descriptionFactory']['registerDescriptionCallback'](_0x148707=>{if('formatBlock'!=_0x148707['type'])return;const {data:_0x472f6b}=_0x148707;if(!_0x472f6b)return;if('indentBlock'!=_0x472f6b['commandName']&&'outdentBlock'!=_0x472f6b['commandName'])return;const _0x58b105=_0x148707['getItems']()[0x0],_0x47c432=_0x386392['descriptionFactory']['getItemLabel'](_0x58b105);return'indentBlock'==_0x472f6b['commandName']?{'type':'format','content':o(_0x6fc18b,'*Indent:*\x20%0',_0x47c432)}:'outdentBlock'==_0x472f6b['commandName']?{'type':'format','content':o(_0x6fc18b,'*Outdent:*\x20%0',_0x47c432)}:void 0x0;});}}class ct extends _0x27a926{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ut extends _0x27a926{['afterInit'](){const _0x4f64ec=this['editor'];if(!_0x4f64ec['plugins']['has']('LinkEditing'))return;const _0x511c7e=_0x4f64ec['plugins']['get']('TrackChangesEditing'),_0x166d3c=_0x4f64ec['commands']['get']('link');_0x511c7e['enableDefaultAttributesIntegration']('link'),_0x511c7e['enableDefaultAttributesIntegration']('unlink'),_0x511c7e['registerInlineAttribute']('linkHref');for(const _0x1dab11 of _0x166d3c['manualDecorators'])_0x511c7e['registerInlineAttribute'](_0x1dab11['id']),_0x511c7e['descriptionFactory']['registerAttributeLabel'](_0x1dab11['id'],'link\x20('+_0x1dab11['label']['toLowerCase']()+')');_0x511c7e['descriptionFactory']['registerDescriptionCallback'](_0x3e4bae=>{if('attribute'!=_0x3e4bae['type'])return;const {data:_0x433c44}=_0x3e4bae;if(!_0x433c44||'linkHref'!=_0x433c44['key'])return;const _0x15abb3=_0x433c44['newValue'],_0xfdefe1=_0x4f64ec['locale'];return{'type':'format','content':null==_0x15abb3?o(_0xfdefe1,'*Remove\x20link*'):o(_0xfdefe1,'*Set\x20link:*\x20%0','\x22'+_0x15abb3+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2ec168=this['editor'],_0x7abdb3=_0x2ec168['locale'];_0x2ec168['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x539f2f=>{if('formatInline'!=_0x539f2f['type'])return;const {data:_0x3fae4b}=_0x539f2f;if(_0x3fae4b){if('link'==_0x3fae4b['commandName']){const _0x5de75f=_0x3fae4b['commandParams'][0x0];return{'type':'format','content':o(_0x7abdb3,'*Set\x20link:*\x20%0','\x22'+_0x5de75f+'\x22')};}return'unlink'==_0x3fae4b['commandName']?{'type':'format','content':o(_0x7abdb3,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x27a926{['afterInit'](){const _0x3bb248=this['editor'],_0x16891f=_0x3bb248['locale'];if(!_0x3bb248['plugins']['has']('LegacyListEditing'))return;const _0x5d79df=_0x3bb248['plugins']['get']('TrackChangesEditing'),_0x436d37=_0x3bb248['plugins']['has']('LegacyTodoListEditing');function _0x4c7012(_0x28794d){return()=>{const _0x5b20b0=_0x3bb248['model']['document']['selection'],_0x4aef1f=_0x3bb248['commands']['get'](_0x28794d);if(_0x4aef1f['value'])return void _0x3bb248['execute']('paragraph',{});const _0x4927fc=_0x28794d['slice'](0x0,-0x4),_0x9cdd3e=function(_0x14a226,_0x26d52b,_0x2a376d){let _0x393211=Array['from'](_0x14a226)['filter'](_0x39f70c=>function(_0x7d27b0,_0x47e1ae){return _0x47e1ae['checkChild'](_0x7d27b0['parent'],'listItem')&&!_0x47e1ae['isObject'](_0x7d27b0);}(_0x39f70c,_0x2a376d));_0x393211=_0x393211['filter'](_0x4f433a=>!_0x4f433a['is']('element','listItem')||_0x4f433a['getAttribute']('listType')!=_0x26d52b);const _0x45a78f=new Set();for(const _0x1af444 of _0x393211)_0x1af444['is']('element','listItem')?_0x45a78f['add'](Le(_0x1af444)):_0x45a78f['add'](_0x1af444);return Array['from'](_0x45a78f);}(_0x5b20b0['getSelectedBlocks'](),_0x4927fc,_0x3bb248['model']['schema']);_0x3bb248['model']['change'](()=>{for(const _0x18d537 of _0x9cdd3e)_0x5d79df['markBlockFormat'](_0x18d537,{'commandName':_0x28794d,'commandParams':[{'forceValue':!_0x4aef1f['value']}],'formatGroupId':'blockName'},Ee(_0x18d537));});};}function _0x43699a(_0x271715){return()=>{const _0x21f05c=function(_0x44cc0e){let _0xde3afd=Array['from'](_0x44cc0e);const _0x1d43c5=_0xde3afd['findIndex'](_0xa46a84=>'listItem'!=_0xa46a84['name']);return _0x1d43c5>-0x1&&(_0xde3afd=_0xde3afd['slice'](0x0,_0x1d43c5)),_0xde3afd;}(_0x3bb248['model']['document']['selection']['getSelectedBlocks']()),_0x59e4c7=_0x3bb248['model']['createRange'](_0x3bb248['model']['createPositionAt'](_0x21f05c[0x0],'before'),_0x3bb248['model']['createPositionAt'](_0x21f05c[_0x21f05c['length']-0x1],'end'));_0x3bb248['model']['change'](()=>{_0x5d79df['markBlockFormat'](_0x59e4c7,{'commandName':_0x271715,'commandParams':[],'formatGroupId':'listIndent'},function(_0x3cca93){const _0x986493=new Set();for(const _0x4e71a6 of _0x3cca93){let _0xbad80c=_0x4e71a6['nextSibling'];for(;_0xbad80c&&_0xbad80c['getAttribute']('listIndent')>_0x4e71a6['getAttribute']('listIndent');)_0x986493['add'](_0xbad80c),_0xbad80c=_0xbad80c['nextSibling'];}return Array['from'](_0x986493);}(_0x21f05c));});};}_0x5d79df['enableCommand']('numberedList',_0x4c7012('numberedList')),_0x5d79df['enableCommand']('bulletedList',_0x4c7012('bulletedList')),_0x436d37&&_0x5d79df['enableCommand']('todoList',_0x4c7012('todoList')),_0x5d79df['enableCommand']('indentList',_0x43699a('indentList')),_0x5d79df['enableCommand']('outdentList',_0x43699a('outdentList')),_0x436d37&&_0x5d79df['enableCommand']('checkTodoList',()=>{const _0xb6776b=_0x3bb248['commands']['get']('checkTodoList'),_0xe2a273=Array['from'](_0xb6776b['_selectedElements']);_0xe2a273['filter'](_0x39e77e=>_0x39e77e['getAttribute']('todoListChecked')!=_0xb6776b['value']),_0x3bb248['model']['change'](()=>{for(const _0x439259 of _0xe2a273)_0x5d79df['markBlockFormat'](_0x439259,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0xb6776b['value']}]});});}),_0x5d79df['descriptionFactory']['registerElementLabel']('listItem',_0x341ac0=>o(_0x16891f,'ELEMENT_LIST_ITEM',_0x341ac0)),_0x5d79df['descriptionFactory']['registerDescriptionCallback'](_0x3c98b2=>{if('formatBlock'!=_0x3c98b2['type']&&'formatInline'!=_0x3c98b2['type'])return;const {data:_0x89bec7}=_0x3c98b2;if(_0x89bec7){if('numberedList'==_0x89bec7['commandName']||'bulletedList'==_0x89bec7['commandName']||'todoList'==_0x89bec7['commandName'])switch(_0x89bec7['commandName']['replace']('List','')){case'bulleted':return _0x256596(o(_0x16891f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x256596(o(_0x16891f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x256596(o(_0x16891f,'ELEMENT_TODO_LIST'));}if('indentList'==_0x89bec7['commandName'])return{'type':'format','content':o(_0x16891f,'*Indent:*\x20%0',o(_0x16891f,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x89bec7['commandName'])return{'type':'format','content':o(_0x16891f,'*Outdent:*\x20%0',o(_0x16891f,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x89bec7['commandName'])return _0x89bec7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x16891f,'*Check\x20item*')}:{'type':'format','content':o(_0x16891f,'*Uncheck\x20item*')};}function _0x256596(_0x51c543){return{'type':'format','content':o(_0x16891f,'*Change\x20to:*\x20%0',_0x51c543)};}});}}function Le(_0x170e4c){const _0x5549b8=_0x170e4c['getAttribute']('listIndent');if(0x0==_0x5549b8)return _0x170e4c;let _0x195864=_0x170e4c;for(;_0x170e4c['previousSibling']&&_0x170e4c['previousSibling']['is']('element','listItem');){const _0x324b57=_0x170e4c['previousSibling']['getAttribute']('listIndent');if(_0x324b57==_0x5549b8)_0x195864=_0x170e4c['previousSibling'];else{if(_0x324b57<_0x5549b8)break;}_0x170e4c=_0x170e4c['previousSibling'];}return _0x195864;}function Ee(_0x3c54ed){const _0x533ad9=[];if(_0x3c54ed['is']('element','listItem')&&_0x3c54ed['getAttribute']('listIndent')>0x0){let _0x1591af=_0x3c54ed['nextSibling'];for(;_0x1591af&&'listItem'==_0x1591af['name']&&_0x1591af['getAttribute']('listIndent')==_0x3c54ed['getAttribute']('listIndent');)_0x533ad9['push'](_0x1591af),_0x1591af=_0x1591af['nextSibling'];}return _0x533ad9;}class ht extends _0x27a926{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x10ab40=this['editor']['config']['get']('list.properties'),_0x2ed310=this['editor']['plugins']['get']('TrackChangesEditing');_0x10ab40['styles']&&_0x2ed310['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x10ab40['reversed']&&_0x2ed310['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x10ab40['startIndex']&&_0x2ed310['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x2ed310['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x4cea3b,_0x5a81bc={}){const _0x2972f6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x179c16=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x2972f6['markMultiRangeBlockFormat'](_0x179c16,{'commandName':'listStyle','commandParams':[{'type':_0x5a81bc['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x575516,_0x1295dd={}){const _0x3c51fa=this['editor']['plugins']['get']('TrackChangesEditing'),_0xe3282b=this['_getSuggestionBlocks'](_0x4a9e50=>_0x4a9e50['is']('element','listItem')&&'numbered'===_0x4a9e50['getAttribute']('listType'));if(_0xe3282b['length']<0x1)return;const _0x4bdbed=_0xe3282b['map'](_0x1a912a=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1a912a,'before'),this['editor']['model']['createPositionAt'](_0x1a912a,0x0)));this['editor']['model']['change'](()=>{_0x3c51fa['markMultiRangeBlockFormat'](_0x4bdbed,{'commandName':'listReversed','commandParams':[{'reversed':_0x1295dd['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x4c16dc,_0x419575={}){const _0x4c62e6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x281578=this['_getSuggestionBlocks'](_0x22a055=>_0x22a055['is']('element','listItem')&&'numbered'===_0x22a055['getAttribute']('listType'));if(_0x281578['length']<0x1)return;const _0x48e35a=_0x281578['map'](_0x265755=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x265755,'before'),this['editor']['model']['createPositionAt'](_0x265755,0x0)));this['editor']['model']['change'](()=>{_0x4c62e6['markMultiRangeBlockFormat'](_0x48e35a,{'commandName':'listStart','commandParams':[{'startIndex':_0x419575['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x40f36d){if('formatBlock'!=_0x40f36d['type']&&'formatInline'!=_0x40f36d['type'])return;const _0x38b92f=this['editor']['locale'],{data:_0x463a43}=_0x40f36d;if(!_0x463a43)return;let _0xd06480,_0x204095;switch(_0x463a43['commandName']){case'listStyle':_0xd06480='*Change\x20to:*\x20%0',_0x204095={'type':'format','content':o(_0x38b92f,_0xd06480,o(_0x38b92f,this['_getTranslationKeyForListStyle'](_0x463a43['commandParams'][0x0]['type'])))};break;case'listReversed':_0xd06480=_0x463a43['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x204095={'type':'format','content':o(_0x38b92f,_0xd06480)};break;case'listStart':_0xd06480='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x204095={'type':'format','content':o(_0x38b92f,_0xd06480,_0x463a43['commandParams'][0x0]['startIndex'])};}return _0x204095;}['_getSuggestionBlocksForListStyle'](){const _0x49b07a=this['editor']['plugins']['get']('LegacyListUtils');let _0x154918=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x154918[0x0]?.['is']('element','listItem')&&_0x154918['unshift'](..._0x49b07a['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x154918[_0x154918['length']-0x1]?.['is']('element','listItem')&&_0x154918['push'](..._0x49b07a['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x154918=[...new Set(_0x154918)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x154918=_0x154918['filter'](_0x26c599=>_0x26c599['is']('element','listItem'))),_0x154918;}['_getSuggestionBlocks'](_0x25024f){const _0x71fbf4=this['editor']['plugins']['get']('LegacyListUtils');let _0x3ef53a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x25024f)['map'](_0x3e080f=>{const _0x1371be=this['editor']['model']['createPositionAt'](_0x3e080f,0x0);return[..._0x71fbf4['getSiblingNodes'](_0x1371be,'backward'),..._0x71fbf4['getSiblingNodes'](_0x1371be,'forward')];})['flat']();return _0x3ef53a=[...new Set(_0x3ef53a)],_0x3ef53a;}['_getTranslationKeyForListStyle'](_0x5d857a){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x5d857a)||'default')['toUpperCase']()+'_LIST_'+_0x5d857a['toUpperCase']()['replace'](/-/g,'_');}}class gt extends _0x27a926{['afterInit'](){const _0x554228=this['editor'];if(!_0x554228['plugins']['has']('MediaEmbedEditing'))return;const _0x42b3e3=_0x554228['plugins']['get']('TrackChangesEditing'),_0x5b8e13=_0x554228['locale'];_0x42b3e3['enableCommand']('mediaEmbed'),_0x42b3e3['descriptionFactory']['registerElementLabel']('media',_0x54d884=>o(_0x5b8e13,'ELEMENT_MEDIA',_0x54d884)),_0x554228['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4085b3,{writer:_0x316c49,options:_0x3db616})=>{if(_0x3db616['showSuggestionHighlights'])return _0x316c49['createEmptyElement']('div');},'converterPriority':'high'}),_0x554228['data']['downcastDispatcher']['on']('attribute:url:media',(_0x36d61c,_0x4f8762,_0x416522)=>{_0x416522['options']['showSuggestionHighlights']&&_0x36d61c['stop']();},{'priority':'high'});}}class lt extends _0x27a926{['afterInit'](){const _0x3a5f68=this['editor'];_0x3a5f68['plugins']['has']('MentionEditing')&&_0x3a5f68['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x27a926{['afterInit'](){const _0x5a6335=this['editor'];if(!_0x5a6335['plugins']['has']('MergeFieldsEditing'))return;const _0x1b05cd=_0x5a6335['plugins']['get']('TrackChangesEditing'),_0x1bc0a3=_0x5a6335['locale'];_0x1b05cd['enableCommand']('insertMergeField'),_0x1b05cd['enableCommand']('insertMergeFieldBlock'),_0x1b05cd['enableCommand']('insertMergeFieldImage'),_0x1b05cd['descriptionFactory']['registerElementLabel']('mergeField',_0x1d8cfe=>o(_0x1bc0a3,'ELEMENT_MERGE_FIELD',_0x1d8cfe)),_0x1b05cd['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x151b95=>o(_0x1bc0a3,'ELEMENT_MERGE_FIELD',_0x151b95)),_0x1b05cd['descriptionFactory']['registerDescriptionCallback'](_0x2a550c=>{if('insertion'!=_0x2a550c['type']&&'deletion'!=_0x2a550c['type'])return;const _0x43d8ec=_0x2a550c['getContainedElement']();if(null==_0x43d8ec)return;const _0x49314f=_0x5a6335['plugins']['get']('MergeFieldsEditing');let _0x10a72a;switch(_0x49314f['getMergeFieldType'](_0x43d8ec)){case null:return;case'image':{const _0x4d748d=_0x49314f['unwrapAffixes'](_0x43d8ec['getAttribute']('src'));_0x10a72a=_0x49314f['getLabel'](_0x4d748d)||_0x4d748d;break;}default:{const _0xbaec6d=_0x43d8ec['getAttribute']('id');_0x10a72a=_0x49314f['getLabel'](_0xbaec6d)||_0xbaec6d;break;}}return'insertion'==_0x2a550c['type']?{'type':'insertion','content':o(_0x1bc0a3,'*Insert:*\x20%0','\x22'+_0x10a72a+'\x22\x20'+o(_0x1bc0a3,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x1bc0a3,'*Remove:*\x20%0','\x22'+_0x10a72a+'\x22\x20'+o(_0x1bc0a3,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0x27a926{['afterInit'](){const _0x15930c=this['editor'],_0x5a7915=_0x15930c['plugins']['get']('TrackChangesEditing');_0x15930c['plugins']['has']('MultiLevelList')&&(_0x5a7915['enableDefaultAttributesIntegration']('multiLevelList'),_0x5a7915['registerBlockAttribute']('listMarkerStyle'),_0x5a7915['descriptionFactory']['registerDescriptionCallback'](_0x5029b5=>this['handleDescriptions'](_0x5029b5)));}['handleDescriptions'](_0x28f47e){const _0x3de7ae=this['editor']['locale'],{data:_0x5b5401}=_0x28f47e,_0x1622ee={'type':'format','content':''};if(_0x5b5401&&'listMarkerStyle'==_0x5b5401['key']){if(!_0x5b5401['oldValue'])return{'type':'format','content':o(_0x3de7ae,'*Set\x20format:*\x20%0',o(_0x3de7ae,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5b5401['newValue']+')'};if(!_0x5b5401['newValue']){let _0x1fb3cc=_0x28f47e['head'];for(;_0x1fb3cc;){if(_0x1fb3cc['data']&&'listType'==_0x1fb3cc['data']['key']&&_0x1fb3cc['data']['newValue'])return _0x1622ee;_0x1fb3cc=_0x1fb3cc['next'];}return{'type':'format','content':o(_0x3de7ae,'*Remove\x20format:*\x20%0',o(_0x3de7ae,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5b5401['oldValue']+')'};}}}}class pt extends _0x27a926{['afterInit'](){const _0x41c42d=this['editor'];if(!_0x41c42d['plugins']['has']('PageBreakEditing'))return;_0x41c42d['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x5a20ed=_0x41c42d['plugins']['get']('TrackChangesEditing'),_0x4b1fc5=_0x41c42d['locale'];_0x5a20ed['descriptionFactory']['registerElementLabel']('pageBreak',_0x196927=>o(_0x4b1fc5,'ELEMENT_PAGE_BREAK',_0x196927));}}class kt extends _0x27a926{['afterInit'](){const _0x232327=this['editor'];if(!_0x232327['plugins']['has']('Paragraph'))return;const _0x41bffc=_0x232327['locale'],_0x5cc5fb=_0x232327['plugins']['get']('TrackChangesEditing');_0x5cc5fb['descriptionFactory']['registerElementLabel']('paragraph',_0x5cbdc3=>o(_0x41bffc,'ELEMENT_PARAGRAPH',_0x5cbdc3)),_0x5cc5fb['enableDefaultAttributesIntegration']('paragraph'),_0x5cc5fb['enableCommand']('insertParagraph'),_0x232327['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x232327),{'priority':'highest'}),_0x232327['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x37c5dc,_0x54bb25,_0x2f07ba)=>{_0x2f07ba['options']['showSuggestionHighlights']&&nr(_0x232327,{'showActiveMarker':!0x1})(_0x37c5dc,_0x54bb25,_0x2f07ba);},{'priority':'highest'});const _0x22fa60=_0x5cc5fb['descriptionFactory'];_0x22fa60['registerDescriptionCallback'](_0x26a1ec=>{if('insertion'!==_0x26a1ec['type'])return;const {start:_0x593deb,end:_0x818109}=_0x26a1ec['getFirstRange']();if(!_0x593deb['isTouching'](_0x818109)||!_0x593deb['nodeAfter'])return;const _0x7d52a4=_0x232327['model']['schema'],_0x11aae9=_0x593deb['nodeAfter'];return _0x7d52a4['isBlock'](_0x11aae9)&&!_0x7d52a4['isLimit'](_0x11aae9)&&_0x7d52a4['checkChild'](_0x11aae9,'$text')?{'type':'insertion','content':o(_0x41bffc,'*Insert:*\x20%0',_0x22fa60['getItemLabel'](_0x11aae9,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x53852c=this['editor'],_0x531c96=_0x53852c['locale'];_0x53852c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2aac33=>{if('formatBlock'!=_0x2aac33['type'])return;const {data:_0x13643a}=_0x2aac33;return _0x13643a&&'paragraph'==_0x13643a['commandName']?{'type':'format','content':o(_0x531c96,'*Change\x20to:*\x20%0',o(_0x531c96,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x1b4c87,{showActiveMarker:_0xbd6009=!0x0}={}){return(_0x4cf788,_0x4bc00c,_0x6bca92)=>{const _0x54088b=_0x1b4c87['plugins']['get']('TrackChangesEditing'),_0x40c655=_0x4bc00c['markerRange']['start'],_0x3c44c9=_0x4bc00c['markerRange']['end'],_0x1a0d9e=_0x1b4c87['model']['schema'];if(!_0x40c655['isTouching'](_0x3c44c9)||!_0x40c655['nodeAfter'])return;const _0x625e15=_0x40c655['nodeAfter'];if(_0x1a0d9e['isBlock'](_0x625e15)&&!_0x1a0d9e['isLimit'](_0x625e15)&&_0x1a0d9e['checkChild'](_0x625e15,'$text')){if(!_0x6bca92['consumable']['consume'](_0x4bc00c['markerRange'],_0x4cf788['name']))return;const {id:_0x53cfd6,authorId:_0x559327}=_0x54088b['_splitMarkerName'](_0x4bc00c['markerName']),_0x4edb33=_0x6bca92['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x53cfd6,'data-author-id':_0x559327}),_0x5b2b02=_0x6bca92['mapper']['toViewPosition'](_0x3c44c9);_0xbd6009&&_0x54088b['activeMarkers']['includes'](_0x4bc00c['markerName'])&&_0x6bca92['writer']['addClass']('ck-suggestion-marker--active',_0x4edb33),_0x6bca92['writer']['insert'](_0x5b2b02,_0x4edb33),_0x6bca92['mapper']['bindElementToMarker'](_0x4edb33,_0x4bc00c['markerName']);}};}class wt extends _0x27a926{['afterInit'](){const _0x38e638=this['editor'];_0x38e638['commands']['get']('replaceSource')&&_0x38e638['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class bt extends _0x27a926{['afterInit'](){const _0x2b53a2=this['editor'];if(!_0x2b53a2['plugins']['has']('RemoveFormatEditing'))return;_0x2b53a2['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x53c149=this['editor'];_0x53c149['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1f61a9=>{if('formatBlock'!=_0x1f61a9['type']&&'formatInline'!=_0x1f61a9['type'])return;const {data:_0x5023c8}=_0x1f61a9;return _0x5023c8&&'removeFormat'==_0x5023c8['commandName']?{'type':'format','content':o(_0x53c149['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x27a926{['afterInit'](){const _0x3ff557=this['editor'];if(!_0x3ff557['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x3f7cad=_0x3ff557['plugins']['get']('TrackChangesEditing');_0x3f7cad['enableCommand']('goToPreviousRestrictedEditingException'),_0x3f7cad['enableCommand']('goToNextRestrictedEditingException');const _0x2c6089=_0x3ff557['plugins']['get']('RestrictedEditingModeEditing');_0x2c6089['enableCommand']('trackChanges'),_0x2c6089['enableCommand']('acceptSuggestion'),_0x2c6089['enableCommand']('discardSuggestion'),_0x2c6089['enableCommand']('acceptAllSuggestions'),_0x2c6089['enableCommand']('discardAllSuggestions'),_0x2c6089['enableCommand']('acceptSelectedSuggestions'),_0x2c6089['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x27a926{['afterInit'](){const _0x1842e9=this['editor'];if(!_0x1842e9['plugins']['has']('ShiftEnter'))return;const _0x43e6fb=_0x1842e9['plugins']['get']('TrackChangesEditing');_0x43e6fb['enableCommand']('shiftEnter'),_0x1842e9['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x1842e9),{'priority':'high'}),_0x1842e9['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x1842e9),{'priority':'high'}),_0x1842e9['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3d5103,_0x34b305,_0x542b67)=>{_0x542b67['options']['showSuggestionHighlights']&&je(_0x1842e9,{'showActiveMarker':!0x1})(_0x3d5103,_0x34b305,_0x542b67);}),_0x43e6fb['descriptionFactory']['registerElementLabel']('softBreak',_0x128327=>o(_0x1842e9['locale'],'ELEMENT_LINE_BREAK',_0x128327));}}function je(_0x41e0e2,{showActiveMarker:_0x39a028=!0x0}={}){return(_0x46af32,_0x1dd784,_0xefa4a6)=>{const _0x328f22=_0x41e0e2['plugins']['get']('TrackChangesEditing');if(!_0xefa4a6['consumable']['test'](_0x1dd784['markerRange'],_0x46af32['name']))return;const _0x17bdde=_0x41e0e2['model'];for(const _0x56bed8 of _0x1dd784['markerRange']['getItems']()){if(!_0x56bed8['is']('element','softBreak'))continue;const _0x259106='deletion'==_0x1dd784['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x5ee074,authorId:_0x31bef9}=_0x328f22['_splitMarkerName'](_0x1dd784['markerName']),_0x377ff9=_0xefa4a6['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x259106,'data-suggestion':_0x5ee074,'data-author-id':_0x31bef9}),_0x1da3f2=_0xefa4a6['mapper']['toViewPosition'](_0x17bdde['createPositionBefore'](_0x56bed8));_0x39a028&&_0x328f22['activeMarkers']['includes'](_0x1dd784['markerName'])&&_0xefa4a6['writer']['addClass']('ck-suggestion-marker--active',_0x377ff9),_0xefa4a6['writer']['insert'](_0x1da3f2,_0x377ff9),_0xefa4a6['mapper']['bindElementToMarker'](_0x377ff9,_0x1dd784['markerName']);}};}class St extends _0x27a926{['afterInit'](){const _0x466d82=this['editor'],_0x325579=_0x466d82['model'],_0x828c96=_0x466d82['locale'];if(!_0x466d82['plugins']['has']('StandardEditingModeEditing'))return;const _0x2773a3=_0x466d82['plugins']['get']('TrackChangesEditing'),_0x4926e4='restrictedEditingException',_0x2324f0=_0x466d82['commands']['get'](_0x4926e4);_0x2773a3['enableCommand'](_0x4926e4,(_0x513641,_0x1da296={})=>{const _0x25fa12=_0x325579['document']['selection'];if(_0x25fa12['isCollapsed'])return void _0x513641(_0x1da296);const _0x398541=void 0x0!==_0x1da296['forceValue']?_0x1da296['forceValue']:!_0x2324f0['value'];_0x325579['change'](()=>{const _0x1f0fb1=Array['from'](_0x25fa12['getRanges']());for(const _0x458129 of _0x1f0fb1){const _0x9b35b2=_0x398541?[_0x458129]:io(_0x4926e4,_0x458129,_0x325579);for(const _0x3eb046 of _0x9b35b2)_0x2773a3['markInlineFormat'](_0x3eb046,{'commandName':_0x4926e4,'commandParams':[{'forceValue':_0x398541}]});}});}),_0x2773a3['descriptionFactory']['registerDescriptionCallback'](_0x33d19b=>{if('formatBlock'!=_0x33d19b['type']&&'formatInline'!=_0x33d19b['type'])return;const {data:_0x1dfd90}=_0x33d19b;return _0x1dfd90&&_0x1dfd90['commandName']==_0x4926e4?_0x1dfd90['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x828c96,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x828c96,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x27a926{['afterInit'](){const _0x474e97=this['editor'];if(!_0x474e97['plugins']['has']('Style')||!_0x474e97['plugins']['has']('DataSchema'))return;const _0x136936=_0x474e97['plugins']['get']('TrackChangesEditing'),_0x3cbf39=_0x474e97['locale'],_0x382196=_0x474e97['config']['get']('style')||{},_0x5da8e7=_0x474e97['plugins']['get']('GeneralHtmlSupport'),_0x2b378e=_0x474e97['plugins']['get']('StyleUtils')['normalizeConfig'](_0x474e97['plugins']['get']('DataSchema'),_0x382196['definitions']);_0x136936['enableDefaultAttributesIntegration']('style');const _0x5a378f=new Set();for(const _0x5dca31 of _0x2b378e['block']){const _0x911d03=_0x5da8e7['getGhsAttributeNameForElement'](_0x5dca31['element']);_0x5a378f['add'](_0x911d03);}const _0x327382=new Set();for(const _0x5cf4d4 of _0x2b378e['inline']){const _0x55b7a0=_0x5da8e7['getGhsAttributeNameForElement'](_0x5cf4d4['element']);_0x327382['add'](_0x55b7a0);for(const _0x5a421f of _0x5cf4d4['ghsAttributes'])_0x327382['add'](_0x5a421f);}for(const _0x511503 of _0x5a378f)_0x136936['registerBlockAttribute'](_0x511503),_0x136936['descriptionFactory']['registerAttributeLabel'](_0x511503,o(_0x3cbf39,'FORMAT_STYLE'));for(const _0x4f2e7d of _0x327382)_0x136936['registerInlineAttribute'](_0x4f2e7d),_0x136936['descriptionFactory']['registerAttributeLabel'](_0x4f2e7d,o(_0x3cbf39,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3df9fd=this['editor'],_0x4684f4=_0x3df9fd['locale'];_0x3df9fd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x87017b=>{if('formatBlock'!=_0x87017b['type']&&'formatInline'!=_0x87017b['type'])return;const {data:_0x4ae886}=_0x87017b;return _0x4ae886&&'style'===_0x4ae886['commandName']?_0x4ae886['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4684f4,'*Set\x20format:*\x20%0',_0x4ae886['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x4684f4,'*Remove\x20format:*\x20%0',_0x4ae886['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class At extends _0x27a926{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x3cd920){super(_0x3cd920),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x1228af=this['editor'],_0x42dc1f=_0x1228af['model']['document']['selection'];if(!_0x1228af['plugins']['has']('TableEditing'))return;const _0x277693=_0x1228af['locale'],_0x24d96d=_0x1228af['plugins']['get']('TrackChangesEditing'),_0x4e927d=_0x1228af['plugins']['get']('TableUtils');_0x24d96d['descriptionFactory']['registerElementLabel']('table',_0x3bf3f7=>o(_0x277693,'ELEMENT_TABLE',_0x3bf3f7)),this['_setupColumnsRowsFixing'](),_0x24d96d['enableCommand']('insertTable'),_0x24d96d['enableCommand']('selectTableRow'),_0x24d96d['enableCommand']('selectTableColumn');for(const _0x513cdf of['insertTableRowAbove','insertTableRowBelow']){const _0x2e7ce0=_0x1228af['commands']['get'](_0x513cdf);_0x24d96d['enableCommand'](_0x513cdf,_0x575232=>{_0x1228af['model']['change'](_0x2f4cd9=>{_0x575232();const _0x5d76a9='above'===_0x2e7ce0['order'],_0x22da50=_0x4e927d['getSelectionAffectedTableCells'](_0x42dc1f),_0x402771=_0x4e927d['getRowIndexes'](_0x22da50),_0x70cd7=_0x5d76a9?_0x402771['first']-0x1:_0x402771['last']+0x1,_0x547025=_0x22da50[0x0]['findAncestor']('table'),_0x29af56=_0x4e927d['createTableWalker'](_0x547025,{'startRow':_0x70cd7,'endRow':_0x70cd7}),_0x3447d2=Array['from'](_0x29af56)['map'](_0x1ceca4=>_0x2f4cd9['createRangeOn'](_0x1ceca4['cell']));_0x24d96d['markMultiRangeInsertion'](_0x3447d2,'tableRow');});});}for(const _0xf3a6ea of['insertTableColumnLeft','insertTableColumnRight']){const _0x13ac1a=_0x1228af['commands']['get'](_0xf3a6ea);_0x24d96d['enableCommand'](_0xf3a6ea,_0x559099=>{_0x1228af['model']['change'](_0x38d301=>{_0x559099();const _0x5731f6='left'===_0x13ac1a['order'],_0xc27429=_0x4e927d['getSelectionAffectedTableCells'](_0x42dc1f),_0x15a270=_0x4e927d['getColumnIndexes'](_0xc27429),_0x53cecd=_0x5731f6?_0x15a270['first']-0x1:_0x15a270['last']+0x1,_0x10a6e8=_0xc27429[0x0]['findAncestor']('table'),_0x2d2468=_0x4e927d['createTableWalker'](_0x10a6e8,{'startRow':0x0,'column':_0x53cecd,'includeAllSlots':!0x1}),_0x42e36d=Array['from'](_0x2d2468)['map'](_0x40a60b=>_0x38d301['createRangeOn'](_0x40a60b['cell']));_0x24d96d['markMultiRangeInsertion'](_0x42e36d,'tableColumn');});});}for(const _0x1c128f of['removeTableRow','removeTableColumn']){const _0xa4db8f=_0x1c128f['substr'](0xb),_0x2764ad=_0xa4db8f['toLowerCase'](),_0x16dde0=_0x2764ad['substr'](0x0,0x3)+'span',_0x51f727='table'+_0xa4db8f,_0x26471d='min'+_0xa4db8f,_0x112335='max'+_0xa4db8f;_0x24d96d['enableCommand'](_0x1c128f,()=>{_0x1228af['model']['change'](_0x300902=>{const _0x1d5312=_0x4e927d['getSelectionAffectedTableCells'](_0x42dc1f),_0x4c4f42=_0x1d5312[0x0]['findAncestor']('table');let _0x727463;if('removeTableRow'==_0x1c128f){const _0x2c1c10=_0x4e927d['getRowIndexes'](_0x1d5312);_0x727463={'startRow':_0x2c1c10['first'],'endRow':_0x2c1c10['last'],'includeAllSlots':!0x0};}else{const _0x2d6ae4=_0x4e927d['getColumnIndexes'](_0x1d5312);_0x727463={'startColumn':_0x2d6ae4['first'],'endColumn':_0x2d6ae4['last'],'includeAllSlots':!0x0};}const _0x9470fa=_0x4e927d['createTableWalker'](_0x4c4f42,_0x727463),_0x2cbfdc=Array['from'](_0x9470fa)['map'](({cell:_0xe6a847})=>_0xe6a847),_0x611fcf=Ne(_0x2cbfdc['filter'](_0x3b7ccd=>_0x3b7ccd['hasAttribute'](_0x16dde0))),_0x20f582=Ne(_0x2cbfdc['filter'](_0x534902=>!_0x534902['hasAttribute'](_0x16dde0)))['map'](_0x13a044=>_0x300902['createRangeOn'](_0x13a044)),_0x53eebb=_0x24d96d['markMultiRangeDeletion'](_0x20f582,_0x51f727);if(_0x53eebb&&('tableRow'==_0x53eebb['subType']||'tableColumn'==_0x53eebb['subType'])){const _0x838172=this['_getSuggestionCoords'](_0x53eebb);for(const _0x588d36 of _0x611fcf){const _0x1cb359=_0x300902['createRangeOn'](_0x588d36),_0x3f88ad=_0x4e927d['getCellLocation'](_0x588d36),_0x2c3ed9=_0x588d36['getAttribute'](_0x16dde0)-0x1,_0x43a9ff=_0x838172[_0x26471d],_0x50e534=_0x838172[_0x112335];_0x43a9ff<=_0x3f88ad[_0x2764ad]&&_0x3f88ad[_0x2764ad]+_0x2c3ed9<=_0x50e534&&_0x53eebb['addRange'](_0x1cb359);}}});});}function _0x276831(_0x3f940a){const _0x503775=Array['from'](_0x42dc1f['getRanges']())['map'](_0x1ce72c=>_0x3561c8['fromRange'](_0x1ce72c));_0x1228af['model']['change'](_0x524b74=>{const _0x5bddd1=_0x524b74['batch'];_0x3f940a=_0x3f940a['filter'](_0x1081a1=>'$graveyard'!=_0x1081a1['root']['rootName']),_0x524b74['setSelection'](_0x3f940a),_0x1228af['commands']['get']('removeTableRow')['refresh'](),_0x1228af['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x1228af['model']['enqueueChange'](()=>{_0x1228af['model']['enqueueChange'](_0x5bddd1,_0x5969e9=>{const _0x586040=_0x503775['filter'](_0x321911=>'$graveyard'!=_0x321911['root']['rootName']);_0x586040['length']>0x0&&_0x5969e9['setSelection'](_0x586040);for(const _0x1c0ecf of _0x503775)_0x1c0ecf['detach']();});});});}function _0xdeb36e(_0x48e97a){_0x1228af['model']['change'](_0x3a9241=>{const _0x46edb6=Array['from'](_0x42dc1f['getRanges']())['map'](_0x2a25b5=>_0x3561c8['fromRange'](_0x2a25b5)),_0x3c89ba=[];for(const _0x3bf1c7 of _0x48e97a)for(const _0x5e591f of _0x3bf1c7['getItems']({'shallow':!0x0}))_0x3c89ba['push'](_0x5e591f);for(const _0x1b8920 of _0x3c89ba)'$graveyard'!=_0x1b8920['root']['rootName']&&(_0x3a9241['setSelection'](_0x3a9241['createPositionAt'](_0x1b8920,0x0)),_0x1228af['commands']['get']('removeTableColumn')['refresh'](),_0x1228af['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x5ac13a=_0x46edb6['filter'](_0x50671c=>'$graveyard'!=_0x50671c['root']['rootName']);_0x5ac13a['length']>0x0&&_0x3a9241['setSelection'](_0x5ac13a);for(const _0x12a420 of _0x46edb6)_0x12a420['detach']();});}function _0x1167c6(_0x5d8b26,_0x3907c7){return _0x3907c7['every'](_0x545b8d=>_0x5d8b26['some'](_0x2c60f2=>_0x2c60f2['end']['isEqual'](_0x545b8d['start'])||_0x545b8d['end']['isEqual'](_0x2c60f2['start'])));}function _0x54a11b(_0x136df8,_0xe65fb9){return!_0x136df8['some'](_0xc5d70c=>_0xe65fb9['some'](_0x39013e=>_0xc5d70c['isIntersecting'](_0x39013e)))&&_0x136df8['some'](_0x4cb45a=>_0xe65fb9['some'](_0x2936de=>_0x4cb45a['end']['isTouching'](_0x2936de['start'])));}_0x1228af['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x224bf0,_0x56a48a,_0x1ed12f)=>{if(!_0x1ed12f['options']['showSuggestionHighlights'])return;const _0x334d7f=_0x56a48a['item'];if(!_0x334d7f||!_0x334d7f['is']('element','tableCell'))return;const _0x35d06c=_0x1ed12f['mapper']['toViewElement'](_0x334d7f);if(_0x35d06c){const {id:_0x255df7,authorId:_0x77b443}=_0x24d96d['_splitMarkerName'](_0x56a48a['markerName']);_0xe7bb02(_0x35d06c,_0x1ed12f['writer'],(_0x4e4117,_0x2591ce,_0x3579a9)=>{_0x3579a9['addClass'](_0xad3d62(_0x2591ce['classes']),_0x4e4117),_0x3579a9['setAttribute']('data-suggestion-id',_0x255df7,_0x4e4117),_0x3579a9['setAttribute']('data-author-id',_0x77b443,_0x4e4117);},(_0x271265,_0x4b9f80,_0x5eaa55)=>{_0x5eaa55['removeClass'](_0xad3d62(_0x4b9f80['classes']),_0x271265),_0x5eaa55['removeAttribute']('data-suggestion-id',_0x271265),_0x5eaa55['removeAttribute']('data-author-id',_0x271265);});}},{'priority':'highest'}),_0x24d96d['descriptionFactory']['registerDescriptionCallback'](_0x436894=>{if('insertion'!=_0x436894['type']&&'deletion'!=_0x436894['type'])return;const _0xf0fe48=_0x436894['getContainedElement']();if(null!=_0xf0fe48&&_0xf0fe48['is']('element','table')){if('insertion'==_0x436894['type']){const _0x2b4ece=_0x436894['getItems']()['filter'](_0x118865=>_0x118865['is']('$textProxy'))['map'](_0x1e9f42=>_0x1e9f42['data']);if(_0x2b4ece['length'])return{'type':'insertion','content':o(_0x277693,'*Insert:*\x20%0',o(_0x277693,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2b4ece['join']('\x20')+'\x22'))};}if('deletion'==_0x436894['type']){const _0x350dd0=_0x436894['getItems']()['filter'](_0x4b5d86=>_0x4b5d86['is']('$textProxy'))['map'](_0x30e200=>_0x30e200['data']);if(_0x350dd0['length'])return{'type':'deletion','content':o(_0x277693,'*Remove:*\x20%0',o(_0x277693,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x350dd0['join']('\x20')+'\x22'))};}}}),_0x24d96d['descriptionFactory']['registerDescriptionCallback'](_0x5981a0=>{if('tableRow'==_0x5981a0['subType']){const _0x5d440d=_0x5981a0['getItems']()['filter'](_0x39560e=>_0x39560e['is']('$textProxy'))['map'](_0x38ca29=>_0x38ca29['data']),_0x19fc19=this['_getSuggestionCoords'](_0x5981a0),_0x13a0b6=_0x19fc19['maxRow']-_0x19fc19['minRow']+0x1;if('insertion'==_0x5981a0['type'])return _0x5d440d['length']?{'type':'insertion','content':o(_0x277693,'*Insert:*\x20%0',o(_0x277693,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x13a0b6,'\x22'+_0x5d440d['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x277693,'*Insert:*\x20%0',o(_0x277693,'ELEMENT_TABLE_ROW',_0x13a0b6))};if('deletion'==_0x5981a0['type'])return _0x5d440d['length']?{'type':'deletion','content':o(_0x277693,'*Remove:*\x20%0',o(_0x277693,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x13a0b6,'\x22'+_0x5d440d['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x277693,'*Remove:*\x20%0',o(_0x277693,'ELEMENT_TABLE_ROW',_0x13a0b6))};}if('tableColumn'==_0x5981a0['subType']){const _0x544135=_0x5981a0['getItems']()['filter'](_0x2ad5de=>_0x2ad5de['is']('$textProxy'))['map'](_0x30a0bd=>_0x30a0bd['data']),_0x5e68bb=this['_getSuggestionCoords'](_0x5981a0),_0x371eea=_0x5e68bb['maxColumn']-_0x5e68bb['minColumn']+0x1;if('insertion'==_0x5981a0['type'])return _0x544135['length']?{'type':'insertion','content':o(_0x277693,'*Insert:*\x20%0',o(_0x277693,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x371eea,'\x22'+_0x544135['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x277693,'*Insert:*\x20%0',o(_0x277693,'ELEMENT_TABLE_COLUMN',_0x371eea))};if('deletion'==_0x5981a0['type'])return _0x544135['length']?{'type':'deletion','content':o(_0x277693,'*Remove:*\x20%0',o(_0x277693,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x371eea,'\x22'+_0x544135['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x277693,'*Remove:*\x20%0',o(_0x277693,'ELEMENT_TABLE_COLUMN',_0x371eea))};}}),_0x24d96d['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x276831),_0x24d96d['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x276831),_0x24d96d['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0xdeb36e),_0x24d96d['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0xdeb36e),_0x24d96d['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x1167c6),_0x24d96d['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x1167c6),_0x24d96d['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x54a11b),_0x24d96d['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x54a11b);}['_acceptFormatSuggestionCallbackFactory'](){const _0x1ea3df=this['editor'],_0x1c1da4=_0x1ea3df['model']['document']['selection'];return(_0x12102e,_0x156c02)=>{_0x1ea3df['model']['change'](_0x2b512e=>{const {commandName:_0x94f0d,commandParams:_0x2c6e65}=_0x156c02;let _0x312d76=_0x12102e[0x0]['end']['nodeBefore'];_0x2c6e65&&_0x2c6e65[0x0]&&!0x1===_0x2c6e65[0x0]['forceValue']&&(_0x312d76=_0x12102e[0x0]['start']['nodeAfter']);const _0x178608=_0x2b512e['createRangeIn'](_0x312d76);if('$graveyard'==_0x178608['root']['rootName'])return;const _0x2cc4dd=Array['from'](_0x1c1da4['getRanges']())['map'](_0x45b62a=>_0x3561c8['fromRange'](_0x45b62a));_0x2b512e['setSelection'](_0x178608),_0x1ea3df['commands']['get'](_0x94f0d)['refresh'](),_0x2c6e65['push']({'forceDefaultExecution':!0x0}),_0x1ea3df['execute'](_0x94f0d,..._0x2c6e65);const _0x3f69cc=_0x2cc4dd['filter'](_0x306afa=>'$graveyard'!=_0x306afa['root']['rootName']);_0x3f69cc['length']>0x0&&_0x2b512e['setSelection'](_0x3f69cc);for(const _0x3a8621 of _0x2cc4dd)_0x3a8621['detach']();});};}['_getCoordsForCells'](_0x5012cb){const _0x4fc178=this['editor']['plugins']['get']('TableUtils');let _0x4df15c=Number['MAX_SAFE_INTEGER'],_0x5c909a=Number['MIN_SAFE_INTEGER'],_0x24eb22=Number['MAX_SAFE_INTEGER'],_0x11318b=Number['MIN_SAFE_INTEGER'];for(const _0xb5aaa7 of _0x5012cb){if('$graveyard'==_0xb5aaa7['root']['rootName'])continue;const {row:_0x15c21e,column:_0xf9eedd}=_0x4fc178['getCellLocation'](_0xb5aaa7),_0x1fbd4c=_0xb5aaa7['hasAttribute']('rowspan')?_0xb5aaa7['getAttribute']('rowspan')-0x1:0x0,_0x40281=_0xb5aaa7['hasAttribute']('colspan')?_0xb5aaa7['getAttribute']('colspan')-0x1:0x0;_0x4df15c=_0x15c21e<_0x4df15c?_0x15c21e:_0x4df15c,_0x5c909a=_0x15c21e+_0x1fbd4c>_0x5c909a?_0x15c21e+_0x1fbd4c:_0x5c909a,_0x24eb22=_0xf9eedd<_0x24eb22?_0xf9eedd:_0x24eb22,_0x11318b=_0xf9eedd+_0x40281>_0x11318b?_0xf9eedd+_0x40281:_0x11318b;}return{'minRow':_0x4df15c,'maxRow':_0x5c909a,'minColumn':_0x24eb22,'maxColumn':_0x11318b};}['_setupColumnsRowsFixing'](){const _0x846e8b=this['editor'],_0x2f0b2a=_0x846e8b['plugins']['get']('TrackChangesEditing'),_0x4d8b11=_0x846e8b['plugins']['get']('TableUtils');_0x846e8b['model']['document']['on']('change:data',()=>{const _0x2286f1=Array['from'](_0x846e8b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1744a1,data:_0x1a776e}of _0x2286f1){const {group:_0x2d73e1,id:_0x3d6e88,subType:_0x5e4977}=_0x2f0b2a['_splitMarkerName'](_0x1744a1);if('suggestion'!=_0x2d73e1)continue;if(null!=_0x1a776e['oldRange'])continue;const _0x19fd86=_0x2f0b2a['getSuggestion'](_0x3d6e88);this['_tablePostFixingSubtypes']['includes'](_0x5e4977)&&this['_tableSuggestions']['add'](_0x19fd86);}},{'priority':'low'});const _0x1523d5=(_0x3d9bf3,_0x3533f1)=>{let _0x2e0d63=!0x1;const _0x27e466=_0x3533f1['createRangeOn'](_0x3d9bf3),_0x1b6182=_0x3d9bf3['findAncestor']('table'),_0x110413=_0x4d8b11['getCellLocation'](_0x3d9bf3);for(const _0x5410a3 of this['_tableSuggestions']){const _0x118cdf=_0x5410a3['subType'],_0xa8f918=_0x118cdf['startsWith']('tablePaste'),_0x45fc20=_0x118cdf['substr'](_0xa8f918?0xa:0x5),_0x4a502d=_0x45fc20['toLowerCase'](),_0x5065e9=_0x4a502d['substr'](0x0,0x3)+'span',_0x4058eb='min'+_0x45fc20,_0x240f38='max'+_0x45fc20;if(!_0x5410a3['isInContent'])continue;if(_0x1b6182!=_0x5410a3['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x5410a3['isIntersectingWithRange'](_0x27e466))continue;const _0xb0b282=_0x3d9bf3['hasAttribute'](_0x5065e9)?_0x3d9bf3['getAttribute'](_0x5065e9)-0x1:0x0,_0x3e5327=this['_getSuggestionCoords'](_0x5410a3),_0x3a17f4=_0x3e5327[_0x4058eb],_0x3e84f9=_0x3e5327[_0x240f38];_0x3a17f4<=_0x110413[_0x4a502d]&&_0x110413[_0x4a502d]+_0xb0b282<=_0x3e84f9&&(_0x5410a3['addRange'](_0x27e466),_0x2e0d63=!0x0);}return _0x2e0d63;};_0x846e8b['model']['document']['registerPostFixer'](_0x277ca9=>{let _0x5ec65a=!0x1;for(const _0x3dee15 of _0x846e8b['model']['document']['differ']['getChanges']())if('insert'==_0x3dee15['type']){if('tableRow'==_0x3dee15['name']){for(const _0x2bc78b of _0x3dee15['position']['nodeAfter']['getChildren']())_0x5ec65a=_0x5ec65a||_0x1523d5(_0x2bc78b,_0x277ca9);}else'tableCell'==_0x3dee15['name']&&(_0x5ec65a=_0x5ec65a||_0x1523d5(_0x3dee15['position']['nodeAfter'],_0x277ca9));}return _0x5ec65a;});}['_getSuggestionCoords'](_0x832caf){return this['_getCoordsForCells'](_0x832caf['getRanges']()['map'](_0x1b6717=>_0x1b6717['start']['nodeAfter']));}}function Ne(_0x17c2d3){return Array['from'](new Set(_0x17c2d3)['values']());}class _t extends _0x27a926{static get['requires'](){return[At];}['afterInit'](){const _0x5621a3=this['editor'],_0x579060=_0x5621a3['model']['document']['selection'],_0x12283b=_0x5621a3['locale'];if(!_0x5621a3['plugins']['has']('TableEditing'))return;const _0x3dac7a=_0x5621a3['plugins']['get']('TrackChangesEditing'),_0x5ac7cb=_0x5621a3['plugins']['get']('TableUtils'),_0x28c3a2=_0x5621a3['plugins']['get'](At);_0x28c3a2['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x3dac7a['enableCommand']('mergeTableCells',()=>{const _0x5b6a13=_0x5ac7cb['getSelectionAffectedTableCells'](_0x5621a3['model']['document']['selection']);_0x5621a3['model']['change'](()=>{_0x3dac7a['markMultiRangeBlockFormat'](_0x5b6a13,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x5621a3['commands']['get']('mergeTableCells')['on']('execute',(_0xa9a069,_0x1f92b7)=>{_0x5621a3['commands']['get']('trackChanges')['value']&&(_0x1f92b7['length']>0x0&&_0x1f92b7[_0x1f92b7['length']-0x1]&&_0x1f92b7[_0x1f92b7['length']-0x1]['forceDefaultExecution']||_0x3dac7a['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0xa9a069['stop']());},{'priority':'highest'});for(const _0x14796a of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x549673=_0x5621a3['commands']['get'](_0x14796a);_0x3dac7a['enableCommand'](_0x14796a,()=>{const _0x355463=_0x5621a3['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x545211=>_0x545211['is']('element','tableCell')),_0x2338bb=_0x549673['value'];_0x5621a3['model']['change'](()=>{_0x3dac7a['markMultiRangeBlockFormat']([_0x355463,_0x2338bb],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x5a0f37 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x31808c=_0x5621a3['commands']['get'](_0x5a0f37);_0x3dac7a['enableCommand'](_0x5a0f37,()=>{const _0xaea77c=_0x5ac7cb['getSelectionAffectedTableCells'](_0x5621a3['model']['document']['selection'])[0x0],_0x13d228=_0xaea77c['findAncestor']('table'),{column:_0x6f5599,row:_0x2b4222}=_0x5ac7cb['getCellLocation'](_0xaea77c);let _0x3aa9e3=[];if('horizontally'==_0x31808c['direction']){const _0x1ef062=_0x5ac7cb['createTableWalker'](_0x13d228,{'startRow':_0x2b4222,'endRow':_0x2b4222,'includeAllSlots':!0x0});_0x3aa9e3=Array['from'](_0x1ef062)['map'](_0x2919e7=>_0x2919e7['cell']);}else{const _0x4086a0=_0x5ac7cb['createTableWalker'](_0x13d228,{'column':_0x6f5599,'includeAllSlots':!0x0});_0x3aa9e3=Array['from'](_0x4086a0)['map'](_0x39281a=>_0x39281a['cell']);}_0x5621a3['model']['change'](_0x56fda1=>{_0x3dac7a['markBlockFormat'](_0x56fda1['createRangeOn'](_0xaea77c),{'commandName':_0x5a0f37,'commandParams':[]},_0x3aa9e3,_0x5a0f37);});});}_0x3dac7a['descriptionFactory']['registerDescriptionCallback'](_0x5036ac=>{if('formatBlock'!=_0x5036ac['type']&&'formatInline'!=_0x5036ac['type'])return;const {data:_0x178963}=_0x5036ac;return _0x178963&&'mergeTableCells'==_0x178963['commandName']?{'type':'format','content':o(_0x12283b,'*Merge\x20cells*')}:void 0x0;}),_0x3dac7a['descriptionFactory']['registerDescriptionCallback'](_0x3d175c=>{if('formatBlock'!=_0x3d175c['type']&&'formatInline'!=_0x3d175c['type'])return;const {data:_0x31a7f0}=_0x3d175c;return _0x31a7f0?'splitTableCellVertically'==_0x31a7f0['commandName']?{'type':'format','content':o(_0x12283b,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x31a7f0['commandName']?{'type':'format','content':o(_0x12283b,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x3d4e6a=_0x28c3a2['_acceptFormatSuggestionCallbackFactory']();for(const _0x6c58ba of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x3dac7a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x6c58ba,'accept',_0x3d4e6a);for(const _0x2f275c of['splitTableCellVertically','splitTableCellHorizontally'])_0x3dac7a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2f275c,'accept',_0x3d4e6a);_0x3dac7a['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x31416c=>{_0x5621a3['model']['change'](_0x5f4723=>{const _0x3dc7c0=Array['from'](_0x579060['getRanges']())['map'](_0x1e55f6=>_0x3561c8['fromRange'](_0x1e55f6));_0x5f4723['setSelection'](_0x31416c),_0x5621a3['commands']['get']('mergeTableCells')['refresh'](),_0x5621a3['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x1c7b5c=_0x3dc7c0['filter'](_0x35ea59=>'$graveyard'!=_0x35ea59['root']['rootName']);_0x1c7b5c['length']>0x0&&_0x5f4723['setSelection'](_0x1c7b5c);for(const _0x57bd92 of _0x3dc7c0)_0x57bd92['detach']();});});for(const _0x515976 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x5c15da=_0x5621a3['commands']['get'](_0x515976);_0x5c15da['on']('set:isEnabled',(_0x2e7541,_0x58b995,_0x54d5ee)=>{if(_0x54d5ee){const _0x30d2e3=_0x5621a3['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2d73eb=>_0x2d73eb['is']('element','tableCell'));this['_areMergableCells'](_0x5c15da['value'],_0x30d2e3)||(_0x2e7541['return']=!0x1,_0x2e7541['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x4a0311=this['editor']['commands']['get']('mergeTableCells'),_0x214b64=this['editor']['plugins']['get']('TableUtils');if(!_0x4a0311['isEnabled'])return!0x1;const _0x4115d7=_0x214b64['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x5c0464 of _0x4115d7)for(const _0x48c977 of _0x4115d7)if(_0x5c0464!=_0x48c977&&!this['_areMergableCells'](_0x5c0464,_0x48c977))return!0x1;return!0x0;}['_areMergableCells'](_0x2167d3,_0x475d4d){const _0x511e34=this['editor']['plugins']['get']('TrackChangesEditing'),_0x50c972=this['editor']['model']['createRangeOn'](_0x2167d3),_0x2f16c8=this['editor']['model']['createRangeOn'](_0x475d4d),_0x36ff5c=new Set(),_0x3f55a3=new Set();for(const _0x36cffb of _0x511e34['getSuggestions']())if(('insertion'==_0x36cffb['type']||'deletion'==_0x36cffb['type']||'mergeTableCells'==_0x36cffb['subType'])&&_0x36cffb['isInContent']){for(const _0xbe03bc of _0x36cffb['getRanges']())_0xbe03bc['containsRange'](_0x50c972,!0x0)&&_0x36ff5c['add'](_0x36cffb['type']+':'+_0x36cffb['author']['id']),_0xbe03bc['containsRange'](_0x2f16c8,!0x0)&&_0x3f55a3['add'](_0x36cffb['type']+':'+_0x36cffb['author']['id']);}if(_0x36ff5c['size']!=_0x3f55a3['size'])return!0x1;for(const _0x373459 of _0x36ff5c)if(!_0x3f55a3['has'](_0x373459))return!0x1;return!0x0;}}class Ct extends _0x27a926{static get['requires'](){return[At];}['afterInit'](){const _0x3bb529=this['editor'];if(!_0x3bb529['plugins']['has']('TableEditing'))return;const _0x125688=_0x3bb529['locale'],_0x1e4820=_0x3bb529['plugins']['get']('TrackChangesEditing');_0x1e4820['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x1e4820['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x1e4820['registerBlockAttribute']('headingRows'),_0x1e4820['registerBlockAttribute']('headingColumns'),_0x1e4820['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x125688,'FORMAT_HEADER_ROW')),_0x1e4820['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x125688,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2b986d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4ff8a0=this['editor']['plugins']['get']('TableUtils'),_0x138cfd=this['editor']['plugins']['get'](At)['_acceptFormatSuggestionCallbackFactory']();function _0x16867c({showActiveMarker:_0x1add2e=!0x0,setDataAttribute:_0x2d6014=!0x0}={}){return(_0x3bebf7,_0x5069b7,_0x176445)=>{const {type:_0x54a3f9,id:_0x5576a8}=_0x2b986d['_splitMarkerName'](_0x5069b7['markerName']),_0x41b5dd=_0x2b986d['getSuggestion'](_0x5576a8),_0xffce72=_0x41b5dd['data'];if('formatBlock'!=_0x41b5dd['type']||!_0xffce72||'setTableColumnHeader'!=_0xffce72['commandName'])return;if(_0x5069b7['item'])return void _0x3bebf7['stop']();if(!_0x176445['consumable']['consume'](_0x5069b7['markerRange'],_0x3bebf7['name']))return;const _0x1be030=_0x5069b7['markerRange']['start']['nodeAfter'],_0x5a187b=_0x5069b7['markerRange']['end']['nodeBefore'],_0x585d20=_0x1be030['parent']['parent'],{column:_0x253f93}=_0x4ff8a0['getCellLocation'](_0x1be030),{column:_0xda3448}=_0x4ff8a0['getCellLocation'](_0x5a187b);for(let _0x4b976b=_0x253f93;_0x4b976b<=_0xda3448;_0x4b976b++){const _0x3db148=_0x4ff8a0['createTableWalker'](_0x585d20,{'column':_0x4b976b,'includeAllSlots':!0x1});for(const _0x3c055f of _0x3db148){const _0x401f81=_0x3c055f['cell'],_0xad70b7=_0x176445['mapper']['toViewElement'](_0x401f81);_0x176445['writer']['addClass']('ck-suggestion-marker-'+_0x54a3f9,_0xad70b7),_0x2d6014&&_0x176445['writer']['setAttribute']('data-suggestion',_0x5576a8,_0xad70b7),_0x176445['mapper']['bindElementToMarker'](_0xad70b7,_0x5069b7['markerName']),_0x1add2e&&(_0x2b986d['activeMarkers']['includes'](_0x5069b7['markerName'])?_0x176445['writer']['addClass']('ck-suggestion-marker--active',_0xad70b7):_0x176445['writer']['removeClass']('ck-suggestion-marker--active',_0xad70b7));}}};}_0x2b986d['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x138cfd),_0x2b986d['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x138cfd),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x16867c(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1a13fa,_0x5b3641,_0x1bc6c4)=>{_0x1bc6c4['options']['showSuggestionHighlights']&&_0x16867c({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1a13fa,_0x5b3641,_0x1bc6c4);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x287457,_0x134103,_0x22b289)=>{const {type:_0x1b621f,id:_0x5a2d87}=_0x2b986d['_splitMarkerName'](_0x134103['markerName']),_0xb1c091=_0x2b986d['getSuggestion'](_0x5a2d87),_0x447e0c=_0xb1c091['data'];if('formatBlock'!=_0xb1c091['type']||!_0x447e0c||'setTableColumnHeader'!=_0x447e0c['commandName'])return;const _0x26de05=_0x22b289['mapper']['markerNameToElements'](_0x134103['markerName']);if(_0x26de05){for(const _0x169082 of _0x26de05)_0x22b289['writer']['removeClass']('ck-suggestion-marker-'+_0x1b621f,_0x169082),_0x22b289['writer']['removeClass']('ck-suggestion-marker--active',_0x169082),_0x22b289['writer']['removeAttribute']('data-suggestion',_0x169082),_0x22b289['mapper']['unbindElementFromMarkerName'](_0x169082,_0x134103['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x28ed0b=this['editor'],_0x4fb4d8=_0x28ed0b['locale'];function _0x511d16(_0x21117b){return{'type':'format','content':o(_0x4fb4d8,'*Format:*\x20%0',_0x21117b)};}_0x28ed0b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x11ece7=>{if('formatBlock'!=_0x11ece7['type'])return;const {data:_0x1e9a2b}=_0x11ece7;if(_0x1e9a2b){if('setTableRowHeader'==_0x1e9a2b['commandName']){const _0x43ba20=_0x1e9a2b['commandParams'][0x0]['forceValue'];return _0x511d16(o(_0x4fb4d8,_0x43ba20?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x1e9a2b['commandName']){const _0x33483b=_0x1e9a2b['commandParams'][0x0]['forceValue'];return _0x511d16(o(_0x4fb4d8,_0x33483b?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class vt extends _0x27a926{['afterInit'](){const _0x45c721=this['editor'],_0x563201=_0x45c721['locale'],_0x2c8509=_0x45c721['plugins']['get']('TrackChangesEditing');function _0x3e4ee2(_0x144a28){return{'type':'format','content':''+o(_0x563201,'*Set\x20table\x20type:*\x20%0',_0x144a28)};}_0x45c721['plugins']['has']('TableLayout')&&(_0x2c8509['enableCommand']('insertTableLayout'),_0x2c8509['enableDefaultAttributesIntegration']('tableType'),_0x2c8509['registerBlockAttribute']('tableType'),_0x2c8509['descriptionFactory']['registerElementLabel'](_0x4fc255=>_0x4fc255['is']('element','table')&&'layout'===_0x4fc255['getAttribute']('tableType'),_0x6f8ea0=>o(_0x563201,'ELEMENT_LAYOUT_TABLE',_0x6f8ea0)),_0x2c8509['descriptionFactory']['registerDescriptionCallback'](_0x1aaec5=>{const {data:_0x5247d2}=_0x1aaec5;if(_0x5247d2&&'tableType'==_0x5247d2['key'])switch(_0x5247d2['newValue']){case'layout':return _0x3e4ee2(o(_0x563201,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x3e4ee2(o(_0x563201,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=/* #__PURE__ -- @preserve */
25
+ Object['fromEntries'](Be['map'](_0x4484c3=>[_0x4484c3,null]));class Nt extends _0x27a926{static get['requires'](){return[At];}['afterInit'](){const _0x5b3ce3=this['editor'];if(!_0x5b3ce3['plugins']['has']('TableClipboard'))return;const _0x394baf=_0x5b3ce3['plugins']['get']('TrackChangesEditing'),_0x56a324=_0x5b3ce3['plugins']['get']('TableUtils'),_0x2ece4b=_0x5b3ce3['plugins']['get'](At),_0x3ef65a=_0x5b3ce3['plugins']['get']('TableClipboard'),_0x5da144=_0x5b3ce3['plugins']['get']('TableSelection'),_0x3dee73=_0x5b3ce3['plugins']['get'](_0x1ff713);_0x2ece4b['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x5b3ce3['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x5b3ce3['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x3e0051=null,_0x53f74e=!0x1;_0x3dee73['on']('contentInsertion',(_0x2bb244,_0x41e285)=>{_0x53f74e='paste'===_0x41e285['method'];}),_0x5b3ce3['model']['on']('insertContent',(_0x48399c,_0x1c20bf)=>{if(!_0x53f74e&&null===_0x5da144['getSelectedTableCells']())return;const [_0x3c9db6,_0x4cbf39]=_0x1c20bf,_0x2dbb38=_0x1c20bf[_0x1c20bf['length']-0x1];_0x2dbb38&&_0x2dbb38['forceDefaultExecution']||_0x394baf['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x443241,_0x3ca675,_0x58a0d8,_0x41c261,_0x1a3720){if(_0x3ca675&&!_0x3ca675['is']('documentSelection'))return!0x1;const _0x48992b=_0x1a3720['getTableIfOnlyTableInContent'](_0x443241,_0x58a0d8);if(!_0x48992b||!Ue(_0x48992b,void 0x0,_0x41c261))return!0x1;const _0xd417aa=_0x41c261['getSelectionAffectedTableCells'](_0x58a0d8['document']['selection']);if(!_0xd417aa['length'])return!0x1;const _0x317b85=_0xd417aa[0x0]['findAncestor']('table'),_0xbafd29=_0x41c261['getRowIndexes'](_0xd417aa),_0x39c904=_0x41c261['getColumnIndexes'](_0xd417aa),_0x4d2a41={'startRow':_0xbafd29['first'],'endRow':_0xbafd29['last'],'startColumn':_0x39c904['first'],'endColumn':_0x39c904['last']};return 0x1==_0xd417aa['length']&&(_0x4d2a41['endRow']+=_0x41c261['getRows'](_0x48992b)-0x1,_0x4d2a41['endColumn']+=_0x41c261['getColumns'](_0x48992b)-0x1),Ue(_0x317b85,_0x4d2a41,_0x41c261);}(_0x3c9db6,_0x4cbf39,_0x5b3ce3['model'],_0x56a324,_0x3ef65a)&&(_0x48399c['stop'](),_0x3e0051={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x5b3ce3['model']['change'](()=>{_0x5b3ce3['model']['insertContent'](_0x1c20bf[0x0],_0x1c20bf[0x1],_0x1c20bf[0x2],{'forceDefaultExecution':!0x0});const _0x3cd8a1=_0x5bc718(),{rowInsertionRanges:_0x2dc5aa,columnInsertionRanges:_0x1cee5f,insertionRanges:_0x1f8c2d,deletionRanges:_0x2dba34,cells:_0x5e6a43}=_0x3e0051;_0x2dc5aa['length']&&_0x394baf['markMultiRangeInsertion'](_0x2dc5aa,'tablePasteRow',{'tablePasteChainId':_0x3cd8a1}),_0x1cee5f['length']&&_0x394baf['markMultiRangeInsertion'](_0x1cee5f,'tablePasteColumn',{'tablePasteChainId':_0x3cd8a1}),_0x1f8c2d['length']&&(_0x394baf['markMultiRangeInsertion'](_0x1f8c2d,'tablePaste',{'tablePasteChainId':_0x3cd8a1,'skipNestingCheck':!0x0}),_0x1f8c2d['forEach'](_0x1a158b=>_0x1a158b['detach']?.())),_0x2dba34['length']&&(_0x394baf['markMultiRangeDeletion'](_0x2dba34,'tablePaste',{'tablePasteChainId':_0x3cd8a1,'skipNestingCheck':!0x0}),_0x2dba34['forEach'](_0x39d64d=>_0x39d64d['detach']?.()));const _0x456abc=_0x394baf['markMultiRangeBlockFormat'](_0x5e6a43['map'](({element:_0x1ea966})=>_0x1ea966),{'formatGroupId':_0x5bc718()},[],'tablePasteCell',{'tablePasteChainId':_0x3cd8a1});if(_0x456abc){const _0x5793f3=_0x456abc['getMarkers'](),_0x26326f=[];for(const {element:_0x23da42,attributes:_0x562dfc}of _0x5e6a43){if(!_0x562dfc)continue;const _0x59d41e=_0x5b3ce3['model']['createRangeOn'](_0x23da42),_0x41e839=_0x5793f3['find'](_0x41c360=>_0x41c360['getRange']()['isEqual'](_0x59d41e));_0x41e839&&_0x26326f['push']([_0x41e839['name'],_0x562dfc]);}_0x26326f['length']&&_0x456abc['setAttribute']('markerAttributes',Object['fromEntries'](_0x26326f));}_0x3e0051=null;}));},{'priority':_0x40c02c['high']+0xa}),_0x3dee73['on']('contentInsertion',()=>{_0x53f74e=!0x1;},{'priority':'lowest'}),_0x5b3ce3['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x65655c,_0x16dbf4)=>{const [_0x47f531,_0x201318,,_0x1b38a1]=_0x16dbf4;if(!_0x3e0051)return;_0x65655c['stop']();const _0x37a7c2=_0x47f531['cell'],_0x3df770=_0x201318,_0x512ac2=Oe(_0x37a7c2),_0x587ed8=Oe(_0x3df770);_0x65655c['return']=_0x37a7c2;let _0x405b38=null,_0x589d45=null;if(_0x587ed8||_0x512ac2){if(_0x512ac2&&!_0x587ed8){_0x1b38a1['remove'](_0x37a7c2['getChild'](0x0));for(const _0x54981f of Array['from'](_0x3df770['getChildren']()))_0x1b38a1['insert'](_0x54981f,_0x37a7c2,'end');const _0x247852=_0x3e0051['rowInsertionIndexes']['includes'](_0x47f531['row']),_0x2bb8a4=_0x3e0051['columnInsertionIndexes']['includes'](_0x47f531['column']);_0x247852||_0x2bb8a4||(_0x405b38=_0x3561c8['fromRange'](_0x1b38a1['createRangeIn'](_0x37a7c2)));}else _0x587ed8&&!_0x512ac2&&(_0x589d45=_0x1b38a1['createRangeIn'](_0x37a7c2));}else{const _0x2c3d37=_0x1b38a1['createElement']('tableCellSuggestion'),_0x27d58f=_0x1b38a1['createElement']('tableCellSuggestion');_0x1b38a1['wrap'](_0x1b38a1['createRangeIn'](_0x37a7c2),_0x27d58f),_0x1b38a1['insert'](_0x2c3d37,_0x37a7c2,0x0);for(const _0x317767 of Array['from'](_0x3df770['getChildren']()))_0x1b38a1['insert'](_0x317767,_0x2c3d37,'end');_0x405b38=_0x3561c8['fromRange'](_0x1b38a1['createRangeOn'](_0x2c3d37)),_0x589d45=_0x3561c8['fromRange'](_0x1b38a1['createRangeOn'](_0x27d58f));}const _0x13e8ba=Array['from'](_0x3df770['getAttributes']())['filter'](([_0x2cd26a])=>Be['includes'](_0x2cd26a));_0x3e0051['cells']['push']({'element':_0x37a7c2,'attributes':_0x13e8ba['length']?Object['fromEntries'](_0x13e8ba):null}),_0x405b38&&_0x3e0051['insertionRanges']['push'](_0x405b38),_0x589d45&&_0x3e0051['deletionRanges']['push'](_0x589d45);},{'priority':'high'}),_0x56a324['on']('insertColumns',(_0x590e87,_0x3b8d4e)=>{const [_0x3c94da,_0x3d84ac={}]=_0x3b8d4e;if(!_0x3e0051)return;const _0x231785=_0x3d84ac['at']||0x0,_0x60c0ba=_0x3d84ac['columns']||0x1;_0x3e0051['columnInsertionIndexes']=new Array(_0x60c0ba)['fill'](_0x231785)['map']((_0x12a156,_0x556359)=>_0x12a156+_0x556359);for(const {cell:_0x42115a}of _0x56a324['createTableWalker'](_0x3c94da,{'startColumn':_0x231785,'endColumn':_0x231785+_0x60c0ba-0x1}))_0x3e0051['columnInsertionRanges']['push'](_0x5b3ce3['model']['createRangeOn'](_0x42115a));},{'priority':'low'}),_0x56a324['on']('insertRows',(_0x5ddbb8,_0x493b9b)=>{const [_0x1ae6fc,_0x42c4b4={}]=_0x493b9b;if(!_0x3e0051)return;const _0x256ead=_0x42c4b4['at']||0x0,_0x167f29=_0x42c4b4['rows']||0x1;_0x3e0051['rowInsertionIndexes']=new Array(_0x167f29)['fill'](_0x256ead)['map']((_0x36f7a2,_0x579ee8)=>_0x36f7a2+_0x579ee8);for(const {cell:_0x4a6825}of _0x56a324['createTableWalker'](_0x1ae6fc,{'startRow':_0x256ead,'endRow':_0x256ead+_0x167f29-0x1}))_0x3e0051['rowInsertionRanges']['push'](_0x5b3ce3['model']['createRangeOn'](_0x4a6825));},{'priority':'low'}),_0x394baf['descriptionFactory']['registerDescriptionCallback'](_0xf0d724=>{if(_0xf0d724['subType']&&_0xf0d724['subType']['startsWith']('tablePaste'))return _0xf0d724['previous']?{}:{'type':'insertion','content':o(_0x5b3ce3['locale'],'*Replace\x20table\x20cells*')};});const _0x28d18d=()=>!0x1;for(const _0x2e04f2 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x394baf['_suggestionFactory']['registerCustomCallback']('insertion',_0x2e04f2,'join',_0x28d18d),_0x394baf['_suggestionFactory']['registerCustomCallback']('deletion',_0x2e04f2,'join',_0x28d18d),_0x394baf['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2e04f2,'join',_0x28d18d);_0x394baf['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x28d18d),_0x394baf['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x1c22c6,_0x57063c,_0x36fdcd)=>{const _0x30fbc=_0x1c22c6['map'](_0x2eb1da=>_0x2eb1da['getContainedElement']())['filter'](_0x124a76=>_0x124a76),_0x3bf724=new Map(_0x30fbc['map'](_0x208430=>[_0x208430,null]));if(_0x3e0051){for(const {element:_0x1117c3,attributes:_0x5cd870}of _0x3e0051['cells'])_0x5cd870&&_0x3bf724['set'](_0x1117c3,_0x5cd870);}else{if(_0x36fdcd&&_0x36fdcd['markerAttributes'])for(const [_0x404610,_0x3b1e32]of Object['entries'](_0x36fdcd['markerAttributes'])){const _0x5c663c=_0x5b3ce3['model']['markers']['get'](_0x404610),_0x3c7098=_0x5c663c?_0x5c663c['getRange']()['getContainedElement']():null;_0x3c7098&&_0x3bf724['set'](_0x3c7098,_0x3b1e32);}}_0x5b3ce3['model']['change'](_0x3ea3f2=>{for(const [_0x2fad8f,_0x354e0e]of _0x3bf724)_0x3ea3f2['setAttributes']({...xe,..._0x354e0e},_0x2fad8f);});});const _0x2c378f=(_0x5b742a,_0x507f08)=>{_0x394baf['_suggestionFactory']['registerCustomCallback'](_0x5b742a,'tablePaste',_0x507f08,(_0x10367a,_0x22f866,_0x56885c)=>{_0x5b3ce3['model']['change'](_0x4055dc=>{const _0x13abba=[];for(const _0x34a266 of _0x10367a){const _0x53df32=_0x34a266['start']['nodeAfter'];_0x53df32['is']('element','tableCellSuggestion')&&_0x13abba['push'](_0x53df32);}_0x394baf['_suggestionFactory']['getSuggestionCallback'](_0x5b742a,null,_0x507f08)(_0x10367a,_0x22f866,_0x56885c);for(const _0x4021c2 of _0x13abba)'$graveyard'!=_0x4021c2['root']['rootName']&&_0x4055dc['unwrap'](_0x4021c2);});});};_0x2c378f('insertion','accept'),_0x2c378f('insertion','discard'),_0x2c378f('deletion','accept'),_0x2c378f('deletion','discard'),_0x394baf['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0xaf88bd=>{const _0x544718=_0xaf88bd['map'](_0x271f3e=>_0x271f3e['getContainedElement']()),_0x3f963f=_0x544718[0x0]['findAncestor']('table'),{minRow:_0x398d54,maxRow:_0x56b2da}=_0x2ece4b['_getCoordsForCells'](_0x544718);_0x56a324['removeRows'](_0x3f963f,{'at':_0x398d54,'rows':_0x56b2da-_0x398d54+0x1});}),_0x394baf['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x1db21a=>{const _0x2a4e42=_0x1db21a['map'](_0x3cee12=>_0x3cee12['getContainedElement']()),_0x340191=_0x2a4e42[0x0]['findAncestor']('table'),{minColumn:_0x55e150,maxColumn:_0x490d5a}=_0x2ece4b['_getCoordsForCells'](_0x2a4e42);_0x56a324['removeColumns'](_0x340191,{'at':_0x55e150,'columns':_0x490d5a-_0x55e150+0x1});});const _0x427dd8=(_0x4c1047,_0x2cf254)=>{if(!_0x2cf254['subType']||!_0x2cf254['subType']['startsWith']('tablePaste'))return;const _0x16cd26=_0x2cf254['attributes']['tablePasteChainId'],_0x429658=_0x394baf['getSuggestions']()['filter'](_0x2cc313=>_0x2cc313['isInContent']&&_0x2cc313['attributes']&&_0x2cc313['attributes']['tablePasteChainId']==_0x16cd26);_0x429658['length']&&_0x2cf254['getAllAdjacentSuggestions']()['length']!=_0x429658['length']&&_0x429658['reduce']((_0xd002ef,_0x1bd9f8)=>(_0xd002ef['next']=_0x1bd9f8,_0x1bd9f8['previous']=_0xd002ef,_0x1bd9f8));};function _0x55265f(_0x300251,_0x1aff23=!0x0){const {id:_0x2214c0,authorId:_0x4233a5}=_0x394baf['_splitMarkerName'](_0x300251['markerName']),_0x17c1df=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x586ae6=_0x394baf['activeMarkers']['includes'](_0x300251['markerName']);return _0x586ae6&&_0x17c1df['push']('ck-suggestion-marker--active'),{'classes':_0x17c1df,'attributes':{'data-suggestion':_0x2214c0,'data-author-id':_0x4233a5},'priority':_0x586ae6&&_0x1aff23?0xbc2:0xbb8};}_0x394baf['on']('suggestionLoaded',_0x427dd8,{'priority':'high'}),_0x394baf['on']('suggestionUnloaded',_0x427dd8,{'priority':'high'}),_0x5b3ce3['model']['document']['registerPostFixer'](()=>{let _0x147f00=!0x1;const _0x58c75e=Array['from'](_0x5b3ce3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3b8958,data:_0x32c9d6}of _0x58c75e){const {group:_0x31fd43,type:_0x2f33cb,id:_0x3c5c01}=_0x394baf['_splitMarkerName'](_0x3b8958);if('suggestion'!=_0x31fd43||'deletion'!=_0x2f33cb||_0x32c9d6['oldRange'])continue;if(!_0x394baf['hasSuggestion'](_0x3c5c01))continue;const _0xefc7fa=_0x394baf['getSuggestion'](_0x3c5c01)['getRanges'](),_0x3e2fa6=_0x5b3ce3['plugins']['get']('Users')['me'];for(const _0x2ca059 of _0x394baf['getSuggestions']()){if(!_0x2ca059['isInContent']||_0x2ca059['author']!=_0x3e2fa6)continue;if('formatBlock'!=_0x2ca059['type']||'tablePasteCell'!=_0x2ca059['subType'])continue;if(_0x2ca059['getRanges']()['every'](_0x280ba5=>_0xefc7fa['some'](_0x2bc0de=>_0x2bc0de['containsRange'](_0x280ba5,!0x0)))){for(const _0x4889f8 of _0x2ca059['getAllAdjacentSuggestions']())_0x4889f8['isInContent']&&(_0x4889f8['discard'](),_0x147f00=!0x0);}}}return _0x147f00;}),_0x5b3ce3['model']['document']['registerPostFixer'](_0x27e59d=>{const _0x4ce61a=_0x5b3ce3['commands']['get']('redo');if(!_0x4ce61a||!_0x4ce61a['_createdBatches']['has'](_0x27e59d['batch']))return!0x1;let _0x338f39=!0x1;const _0x2f84ab=_0x5b3ce3['plugins']['get']('Users')['me'],_0x41c0f4=_0x5b3ce3['model']['document']['differ']['getChanges'](),_0x36efa4=Array['from'](_0x5b3ce3['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x38d309,data:_0xee571f})=>{const {group:_0x4b7a31,subType:_0x165a6e,authorId:_0xb9965d}=_0x394baf['_splitMarkerName'](_0x38d309);return'suggestion'==_0x4b7a31&&'tablePaste'==_0x165a6e&&_0xb9965d==_0x2f84ab['id']&&!_0xee571f['oldRange'];});for(const _0x170c58 of _0x41c0f4){if('insert'!=_0x170c58['type']||'tableCellSuggestion'!=_0x170c58['name']||0x1!=_0x170c58['length'])continue;const _0x22a744=_0x27e59d['createRange'](_0x170c58['position'],_0x170c58['position']['getShiftedBy'](0x1));if(!_0x36efa4['find'](({data:_0x403136})=>_0x403136['newRange']['isEqual'](_0x22a744))){for(const {name:_0x499593,data:_0x364ac7}of _0x36efa4)if(_0x22a744['containsRange'](_0x364ac7['newRange'])){_0x27e59d['updateMarker'](_0x499593,{'range':_0x22a744}),_0x338f39=!0x0;break;}}}return _0x338f39;}),_0x5b3ce3['model']['document']['registerPostFixer'](_0x39a413=>{let _0x43ffa5=!0x1;const _0x54b469=_0x5b3ce3['plugins']['get']('Users')['me'],_0x5d6255=_0x394baf['getSuggestions']()['filter'](_0x804e27=>_0x804e27['isInContent']&&_0x804e27['author']==_0x54b469),_0x2ed0d3=new Set(),_0x29cd41=new Set();for(const _0xa8057c of _0x5d6255)if('tablePaste'==_0xa8057c['subType'])for(const _0x3f8a5c of _0xa8057c['getMarkers']()){const _0x5a1ba0=_0x3f8a5c['getRange']()['getContainedElement']();if(_0x5a1ba0){if(_0x5a1ba0['is']('element','tableCellSuggestion')&&Oe(_0x5a1ba0)){_0xa8057c['removeMarker'](_0x3f8a5c['name']),_0x2ed0d3['add'](_0x5a1ba0),_0x43ffa5=!0x0;const _0x52e468=_0x5a1ba0['nextSibling'],_0x570227=_0x5a1ba0['previousSibling'],_0x5c3dbd=_0x52e468&&_0x52e468['is']('element','tableCellSuggestion'),_0x15e3ca=_0x570227&&_0x570227['is']('element','tableCellSuggestion');_0x5c3dbd&&!_0x2ed0d3['has'](_0x52e468)&&_0x29cd41['add'](_0x52e468),_0x15e3ca&&!_0x2ed0d3['has'](_0x570227)&&_0x29cd41['add'](_0x570227);}else _0x5a1ba0['is']('element','paragraph')&&_0x5a1ba0['isEmpty']&&(_0xa8057c['removeMarker'](_0x3f8a5c['name']),_0x43ffa5=!0x0);}}else{if('tablePasteCell'==_0xa8057c['subType']){if(!_0xa8057c['attributes']||!_0xa8057c['attributes']['tablePasteChainId'])continue;const _0x632f75=_0xa8057c['attributes']['markerAttributes'];if(_0x632f75&&Object['keys'](_0x632f75)['length'])continue;const _0x5be21d=_0xa8057c['attributes']['tablePasteChainId'];let _0x4a23c1=!0x0,_0x5d5d11=!0x0;for(const _0x4ff2e0 of _0x5d6255)if(_0x4ff2e0['subType']&&_0x4ff2e0['subType']['startsWith']('tablePaste')){if(!_0x4ff2e0['attributes']['tablePasteChainId']){_0x5d5d11=!0x1;break;}if(_0x4ff2e0['id']!=_0xa8057c['id']&&_0x4ff2e0['attributes']['tablePasteChainId']==_0x5be21d){_0x4a23c1=!0x1;break;}}_0x5d5d11&&_0x4a23c1&&(_0xa8057c['removeMarkers'](),_0x43ffa5=!0x0);}}for(const _0x3ee97a of _0x2ed0d3)_0x39a413['remove'](_0x3ee97a);for(const _0x567a42 of _0x29cd41)_0x39a413['unwrap'](_0x567a42);return _0x43ffa5;}),_0x5b3ce3['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x401534=>_0x55265f(_0x401534),'converterPriority':'high'}),_0x5b3ce3['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x57315c,_0x4d2d51)=>_0x4d2d51['options']['showSuggestionHighlights']?_0x55265f(_0x57315c,!0x1):null,'converterPriority':'high'});const _0x1430c9=_0x5b3ce3['editing']['view'];this['listenTo'](_0x1430c9['document'],'clipboardOutput',(_0x5e251e,_0xdb32c)=>{const _0x449dc5=[];for(const _0x35e070 of _0x1430c9['createRangeIn'](_0xdb32c['content'])['getItems']())_0x35e070['is']('element','suggestion-td')&&_0x449dc5['push'](_0x35e070);_0x1430c9['change'](_0x917295=>{for(const _0x4a388f of _0x449dc5)_0x917295['move'](_0x917295['createRangeIn'](_0x4a388f),_0x917295['createPositionBefore'](_0x4a388f)),_0x917295['remove'](_0x4a388f);});});}}function Oe(_0x4cad0b){if(_0x4cad0b['isEmpty'])return!0x0;const _0x1bed03=_0x4cad0b['getChild'](0x0);return _0x1bed03['is']('element','paragraph')&&_0x1bed03['isEmpty'];}function Ue(_0x290bb3,_0x28a05b={},_0x2067e6){for(const {isAnchor:_0x40120f,cellHeight:_0x4a5dc2,cellWidth:_0x26b297}of _0x2067e6['createTableWalker'](_0x290bb3,{'includeAllSlots':!0x0,..._0x28a05b}))if(!_0x40120f||0x1!=_0x4a5dc2||0x1!=_0x26b297)return!0x1;return!0x0;}class Dt extends _0x27a926{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x498367=this['editor']['plugins']['get']('TrackChangesEditing');_0x498367['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x498367['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x498367['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x498367['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x498367['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x498367['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x1dfd7a,_0x5b57d8){const _0x7f75cf=this['editor']['plugins']['get']('TrackChangesEditing'),_0xa92a2=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x535ad6=_0x5b57d8['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3d121a=_0xa92a2['getColumnGroupElement'](_0x535ad6);let _0x51fd67=_0x3d121a?_0xa92a2['getTableColumnsWidths'](_0x3d121a):null,_0x23ef2a=_0x535ad6['getAttribute']('tableWidth')||null;const _0x47bc84=_0x5b57d8['tableWidth']||_0x23ef2a,_0x193097=_0x5b57d8['columnWidths']||_0x51fd67,_0x2ec0bc=this['editor']['plugins']['get']('Users')['me'];for(const _0x381a96 of _0x7f75cf['getSuggestions']()){const _0x445737=_0x381a96['getContainedElement']();if('resizeTable'===_0x381a96['subType']&&_0x445737===_0x535ad6){_0x381a96['author']!==_0x2ec0bc&&_0x381a96['discard']();const _0x1e6eda=_0x381a96['data']['commandParams'];_0x23ef2a=_0x1e6eda[0x0]['tableWidth'],_0x51fd67=_0x1e6eda[0x0]['columnWidths'];break;}}_0x1dfd7a({'table':_0x535ad6,'tableWidth':_0x47bc84,'columnWidths':_0x193097}),_0x7f75cf['markBlockFormat'](_0x535ad6,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x23ef2a,'columnWidths':_0x51fd67}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x195983){if('formatBlock'!=_0x195983['type']&&'formatInline'!=_0x195983['type'])return;const {data:_0x31eb7d}=_0x195983;if(_0x31eb7d&&'resizeTable'===_0x31eb7d['formatGroupId']){const _0x1e7dee='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x1e7dee)};}}}class $t extends _0x27a926{['afterInit'](){const _0x40396c=this['editor'];_0x40396c['plugins']['has']('Template')&&_0x40396c['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x27a926{['afterInit'](){const _0x1cc4db=this['editor'];if(!_0x1cc4db['commands']['get']('insertTableOfContents'))return;_0x1cc4db['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x3e5b41=_0x1cc4db['plugins']['get']('TrackChangesEditing'),_0x6f212b=_0x1cc4db['locale'];_0x3e5b41['descriptionFactory']['registerElementLabel']('tableOfContents',_0x189515=>o(_0x6f212b,'ELEMENT_TABLE_OF_CONTENTS',_0x189515));}}class Bt extends _0x27a926{['afterInit'](){const _0x42b4bf=this['editor'];if(!_0x42b4bf['plugins']['has']('Title'))return;const _0x4dc4b7=_0x42b4bf['plugins']['get']('TrackChangesEditing');_0x4dc4b7['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x42b4bf['locale'],'ELEMENT_TITLE')),_0x42b4bf['model']['document']['registerPostFixer'](_0x34140e=>{let _0xd0c510=!0x1;const _0x215c50=Array['from'](_0x42b4bf['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x54a2e5,data:_0x59969e}of _0x215c50){const {group:_0x1d325b}=_0x4dc4b7['_splitMarkerName'](_0x54a2e5);if('suggestion'!==_0x1d325b||!_0x59969e['newRange'])continue;const _0x2f4c2c=_0x59969e['newRange'],_0x3e9f5=_0x2f4c2c['end']['nodeBefore'];if(!_0x3e9f5||!_0x3e9f5['is']('element','title-content'))continue;if(!_0x2f4c2c['start']['isTouching'](_0x2f4c2c['end']))continue;const _0x30cb5b=_0x42b4bf['model']['schema']['getNearestSelectionRange'](_0x2f4c2c['end'],'forward');if(_0x30cb5b&&_0x30cb5b['isCollapsed']){const _0x23eec9=_0x34140e['createRange'](_0x2f4c2c['start'],_0x30cb5b['start']);_0x23eec9['isEqual'](_0x2f4c2c)||(_0x34140e['updateMarker'](_0x54a2e5,{'range':_0x23eec9}),_0xd0c510=!0x0);}_0xd0c510||(_0x34140e['removeMarker'](_0x54a2e5),_0xd0c510=!0x0);}return _0xd0c510;});}}class Tt extends _0x27a926{['afterInit'](){const _0x113e37=this['editor'],_0x1803d6=_0x113e37['plugins']['get']('TrackChangesEditing');_0x113e37['plugins']['has']('Uploadcare')&&(_0x1803d6['enableCommand']('uploadcare'),_0x113e37['plugins']['has']('UploadcareImageEdit')&&(_0x1803d6['enableCommand']('uploadcareImageEdit'),_0x1803d6['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x1803d6['registerBlockAttribute']('uploadcareImageId'),_0x1803d6['descriptionFactory']['registerDescriptionCallback'](_0xd5fea5=>{if('attribute'!=_0xd5fea5['type'])return;const {data:_0x1ec885}=_0xd5fea5;return _0x1ec885&&'uploadcareImageId'==_0x1ec885['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x27a926{['afterInit'](){const _0x59f501=this['editor'],_0x1c6b1c=_0x59f501['plugins']['get']('TrackChangesEditing');_0x59f501['plugins']['has']('UndoEditing')&&(_0x1c6b1c['enableCommand']('undo'),_0x1c6b1c['enableCommand']('redo'));}}class Ot extends _0x27a926{static get['requires'](){return[At];}['afterInit'](){const _0x2a55bd=this['editor'];if(!_0x2a55bd['plugins']['has']('TableCaptionEditing'))return;_0x2a55bd['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0x27a926{['tableProperties'];['tableCellProperties'];constructor(_0x2c4fc9){super(_0x2c4fc9),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 _0xf505ae=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x45c6b9 of this['tableProperties'])_0xf505ae['enableCommand'](_0x45c6b9,(_0x17e52d,_0x547c41)=>{const _0x195e27=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x45c6b9,[_0x195e27],this['tableProperties'],'tableProperties',_0x17e52d,_0x547c41);});_0xf505ae['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0xf505ae['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xf505ae['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x20295f,_0x510fce)=>this['handleDiscardAction'](this['tableProperties'],_0x20295f,_0x510fce)),_0xf505ae['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x1ef755 of this['tableCellProperties'])_0xf505ae['enableCommand'](_0x1ef755,(_0x418098,_0x3dc73d)=>{const _0x1984b0=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x1ef755,_0x1984b0,this['tableCellProperties'],'tableCellProperties',_0x418098,_0x3dc73d);});_0xf505ae['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0xf505ae['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xf505ae['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x51f7ee,_0x5e476a)=>this['handleDiscardAction'](this['tableCellProperties'],_0x51f7ee,_0x5e476a)),_0xf505ae['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0xf505ae['descriptionFactory']['registerDescriptionCallback'](_0x468daf=>this['handleSuggestionDescription'](_0x468daf)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x268d24,_0x28e886,_0x3cdb24,_0x4f3567,_0x28febc,_0x253a3){const _0x23fd82=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x253a3['batch'],()=>{for(const _0x424896 of _0x28e886){if(this['_getSuggestion'](_0x424896,_0x4f3567))_0x28febc(_0x253a3);else{const _0x1b1497={};for(const _0x552ddb of _0x3cdb24){const _0x470f07=_0x424896['getAttribute'](_0x552ddb);void 0x0!==_0x470f07&&(_0x1b1497[_0x552ddb]=_0x470f07);}_0x28febc(_0x253a3),_0x23fd82['markBlockFormat'](_0x424896,{'commandParams':[_0x1b1497]},[],_0x4f3567);}}});}['handleDiscardAction'](_0x460539,_0x4e63ad,_0xc6a2c0){const _0x240f5f=_0x4e63ad[0x0]['start']['nodeAfter'],_0x13b892=_0xc6a2c0['commandParams'][0x0];this['editor']['model']['change'](_0x278f02=>{for(const _0x4ceb10 of _0x460539)void 0x0!==_0x13b892[_0x4ceb10]?_0x278f02['setAttribute'](_0x4ceb10,_0x13b892[_0x4ceb10],_0x240f5f):_0x278f02['removeAttribute'](_0x4ceb10,_0x240f5f);});}['handleSuggestionDescription'](_0x58799c){if(_0x58799c['data'])switch(_0x58799c['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'](_0x55be90,_0x1ad161){const _0xf5b9ae=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x466eab of _0xf5b9ae['getSuggestions']({'skipNotAttached':!0x0})){const _0x364584=_0x466eab['getContainedElement']();if(_0x466eab['subType']===_0x1ad161&&_0x364584===_0x55be90)return _0x466eab;}return null;}['_registerTablePropertiesAttributes'](){const _0xd95430=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5ac9f3=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x11af0a of _0x5ac9f3){const _0x32bee4=_0x11af0a['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0xd95430['registerBlockAttribute'](_0x11af0a),_0xd95430['descriptionFactory']['registerAttributeLabel'](_0x11af0a,o(this['editor']['locale'],'FORMAT_'+_0x32bee4));}}}class Rt extends _0x27a926{['afterInit'](){const _0x5e678b=this['editor'];if(!_0x5e678b['plugins']['has']('LineHeight'))return;const _0x78177f=_0x5e678b['plugins']['get']('TrackChangesEditing'),_0x11f6ec=_0x5e678b['locale'];_0x78177f['enableDefaultAttributesIntegration']('lineHeight'),_0x78177f['registerBlockAttribute']('lineHeight'),_0x78177f['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x11f6ec,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x27a926{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x3c175c,_0x2edee7,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(_0x25d1ff){super(_0x25d1ff),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x34b7a7,_0x44ef2e,_0x14c499,_0x24886d)=>{this['_model']['change'](()=>{for(const _0x3b76a4 of[..._0x24886d,..._0x14c499])this['_model']['markers']['has'](_0x3b76a4)&&_0x25d1ff['editing']['reconvertMarker'](_0x3b76a4);});}),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']=_0x25d1ff['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(),_0x25d1ff['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x25d1ff['config']['get']('trackChanges.trackFormatChanges'),_0x25d1ff['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x25d1ff['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new N(_0x25d1ff,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x2dd451=this['editor'],_0x15a612=(_0x1fdbe2,_0x3009dd)=>{if('attribute'!=_0x1fdbe2)return'ck-suggestion-marker-'+_0x1fdbe2;const _0x142112=_0x3009dd['split']('|')[0x0];return this['_isBlockAttribute'](_0x142112)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x2dd451['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x92b750=>{const {id:_0x36c5e2,authorId:_0x5eceb5,type:_0x4218b2,subType:_0x3f0962}=this['_splitMarkerName'](_0x92b750['markerName']),_0x12951b=['ck-suggestion-marker',_0x15a612(_0x4218b2,_0x3f0962)];let _0x2b15fb=0xbb8;return this['activeMarkers']['includes'](_0x92b750['markerName'])&&(_0x12951b['push']('ck-suggestion-marker--active'),_0x2b15fb=0xbc2),'deletion'==_0x4218b2&&(_0x2b15fb+=0x5),{'classes':_0x12951b,'attributes':{'data-suggestion':_0x36c5e2,'data-author-id':_0x5eceb5},'priority':_0x2b15fb};}}),_0x2dd451['conversion']['for']('dataDowncast')['add'](_0x342635=>{_0x342635['on']('addMarker:suggestion',(_0x1afe68,_0x585011,_0x3325cb)=>{if(!_0x3325cb['options']['showSuggestionHighlights'])return;const _0x508932=_0x585011['item'];if(!_0x508932)return;const _0x235964=_0x3325cb['mapper']['toViewElement'](_0x508932);_0x2dd451['model']['schema']['isObject'](_0x508932)&&_0x235964&&!_0x235964['getCustomProperty']('widget')&&_0x235964['is']('containerElement')&&_0x19a0f9(_0x235964,_0x3325cb['writer']);},{'priority':'high'});}),_0x2dd451['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x5d5450,_0x10c7d7)=>{if(!_0x10c7d7['options']['showSuggestionHighlights'])return null;const {id:_0x285594,authorId:_0x2d7efb,type:_0x5cd30e,subType:_0x42ffd1}=this['_splitMarkerName'](_0x5d5450['markerName']);return{'classes':['ck-suggestion-marker',_0x15a612(_0x5cd30e,_0x42ffd1)],'priority':0xbb8,'attributes':{'data-suggestion':_0x285594,'data-author-id':_0x2d7efb}};}});const _0x4759ff=({showActiveMarkers:_0x3c31bc=!0x0,isAttributeSuggestion:_0x298aba=!0x1}={})=>(_0x897d0a,_0x4af116,_0x3fbfa7)=>{if(!_0x4af116['item'])return;const {id:_0x254e14,authorId:_0x3995ee}=this['_splitMarkerName'](_0x4af116['markerName']);if(_0x298aba){const _0x4ade98=this['_suggestions']['get'](_0x254e14),_0x487671=this['_getAttributeKey'](_0x4ade98);if(!this['_isBlockAttribute'](_0x487671))return;}if(_0x4af116['item']['is']('selection'))return void _0x3fbfa7['consumable']['consume'](_0x4af116['item'],_0x897d0a['name']);const _0x5c4e99=_0x3fbfa7['mapper']['toViewElement'](_0x4af116['item']);if(_0x4af116['item']['is']('element')&&_0x2dd451['model']['schema']['isBlock'](_0x4af116['item'])&&!_0x5c4e99['getCustomProperty']('addHighlight')){_0x3fbfa7['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x5c4e99),_0x3fbfa7['writer']['setAttribute']('data-suggestion',_0x254e14,_0x5c4e99),_0x3fbfa7['writer']['setAttribute']('data-author-id',_0x3995ee,_0x5c4e99),_0x3fbfa7['mapper']['bindElementToMarker'](_0x5c4e99,_0x4af116['markerName']),_0x3c31bc&&(this['activeMarkers']['includes'](_0x4af116['markerName'])?_0x3fbfa7['writer']['addClass']('ck-suggestion-marker--active',_0x5c4e99):_0x3fbfa7['writer']['removeClass']('ck-suggestion-marker--active',_0x5c4e99));for(const _0x8373b0 of _0x2dd451['model']['createRangeIn'](_0x4af116['item'])['getItems']())_0x3fbfa7['consumable']['consume'](_0x8373b0,_0x897d0a['name']);_0x3fbfa7['consumable']['consume'](_0x4af116['item'],_0x897d0a['name']);}};_0x2dd451['conversion']['for']('dataDowncast')['add'](_0x37ee72=>{_0x37ee72['on']('addMarker:suggestion:formatBlock',(_0x454ffe,_0x15bdec,_0x5e5b14)=>{_0x5e5b14['options']['showSuggestionHighlights']&&_0x4759ff({'showActiveMarkers':!0x1})(_0x454ffe,_0x15bdec,_0x5e5b14);},{'priority':'highest'});}),_0x2dd451['conversion']['for']('dataDowncast')['add'](_0x4a6eea=>{_0x4a6eea['on']('addMarker:suggestion:attribute',(_0x326483,_0xf96f1f,_0x4b8ec4)=>{_0x4b8ec4['options']['showSuggestionHighlights']&&_0x4759ff({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x326483,_0xf96f1f,_0x4b8ec4);},{'priority':'highest'});}),_0x2dd451['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x2e0544,_0x5b2929)=>{if(_0x5b2929['options']['showSuggestionHighlights']){const {id:_0x2795e0,authorId:_0x3c317f}=this['_splitMarkerName'](_0x2e0544);return _0x2e0544['includes'](':split')||_0x2e0544['includes'](':merge')?{'group':'suggestion','name':_0x2e0544['substr'](0xb),'attributes':{'data-suggestion':_0x2795e0,'data-author-id':_0x3c317f}}:null;}return{'group':'suggestion','name':_0x2e0544['substr'](0xb)};}}),_0x2dd451['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x307d06,{writer:_0x5c34a9})=>{let _0x58c2c4='suggestion:'+_0x307d06['getAttribute']('suggestion-type')+':'+_0x307d06['getAttribute']('id');return _0x307d06['getAttribute']('marker-count')&&(_0x58c2c4+=':'+_0x307d06['getAttribute']('marker-count')),_0x5c34a9['createElement']('$marker',{'data-name':_0x58c2c4});}}),_0x2dd451['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x2dd451['conversion']['for']('editingDowncast')['add'](_0x1f8e78=>{_0x1f8e78['on']('addMarker:suggestion:formatBlock',_0x4759ff(),{'priority':'high'});}),_0x2dd451['conversion']['for']('editingDowncast')['add'](_0x5c4428=>{_0x5c4428['on']('addMarker:suggestion:attribute',_0x4759ff({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x2dd451['conversion']['for']('editingDowncast')['add'](_0x2fd311=>{_0x2fd311['on']('removeMarker:suggestion:formatBlock',(_0x2c672f,_0x243995,_0x405ede)=>{const _0x12a994=_0x405ede['mapper']['markerNameToElements'](_0x243995['markerName']);if(_0x12a994){for(const _0x1e1688 of _0x12a994)_0x1e1688['getCustomProperty']('addHighlight')||(_0x405ede['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1e1688),_0x405ede['writer']['removeAttribute']('data-suggestion',_0x1e1688),_0x405ede['writer']['removeAttribute']('data-author-id',_0x1e1688),_0x405ede['mapper']['unbindElementFromMarkerName'](_0x1e1688,_0x243995['markerName']));}},{'priority':'high'});}),_0x2dd451['conversion']['for']('editingDowncast')['add'](_0xe0114c=>{_0xe0114c['on']('removeMarker:suggestion:attribute',(_0x491075,_0x3e5b56,_0x35dbb9)=>{const _0x50dba3=_0x35dbb9['mapper']['markerNameToElements'](_0x3e5b56['markerName']);if(!_0x50dba3)return;const {id:_0x760e1d}=this['_splitMarkerName'](_0x3e5b56['markerName']),_0xe7eab5=this['_suggestions']['get'](_0x760e1d),_0x11bbce=this['_getAttributeKey'](_0xe7eab5);if(this['_isBlockAttribute'](_0x11bbce)){for(const _0x211340 of _0x50dba3)_0x211340['getCustomProperty']('addHighlight')||(_0x35dbb9['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x211340),_0x35dbb9['writer']['removeAttribute']('data-suggestion',_0x211340),_0x35dbb9['writer']['removeAttribute']('data-author-id',_0x211340),_0x35dbb9['mapper']['unbindElementFromMarkerName'](_0x211340,_0x3e5b56['markerName']));}},{'priority':'high'});}),_0x2dd451['model']['document']['registerPostFixer'](_0x280392=>{let _0x92339d=!0x1;const _0x1bf10d=Array['from'](_0x2dd451['model']['document']['differ']['getChangedMarkers']()),_0x2b02f0=new Set();for(const {name:_0x3be4b4,data:_0x56733f}of _0x1bf10d){const {group:_0x563b36,type:_0x1ebf20,subType:_0x38a399,id:_0x5455ef}=this['_splitMarkerName'](_0x3be4b4);if('suggestion'!==_0x563b36)continue;const _0x16e677=_0x38a399?'suggestion:'+_0x1ebf20+':'+_0x38a399+':'+_0x5455ef:'suggestion:'+_0x1ebf20+':'+_0x5455ef,_0x2c2aa3=_0x2dd451['model']['markers']['getMarkersGroup'](_0x16e677),_0x3d1b40=_0x2dd451['model']['markers']['get'](_0x3be4b4),_0x46a882=this['_suggestions']['get'](_0x5455ef);if(null!=_0x56733f['newRange']){'formatInline'==_0x1ebf20&&(_0x92339d=_0x92339d||Gt(_0x56733f['newRange'],_0x3be4b4,_0x280392,_0x2dd451['model']['schema']));const _0x2ee383='attribute'==_0x1ebf20&&this['_isBlockAttribute'](_0x38a399['split']('|')[0x0]),_0x81b61a='attribute'==_0x1ebf20&&this['_isInlineAttribute'](_0x38a399['split']('|')[0x0]);if(_0x56733f['newRange']['isCollapsed']||'$graveyard'==_0x56733f['newRange']['root']['rootName']||'formatBlock'==_0x1ebf20&&!Jt(_0x56733f['newRange'])||_0x2ee383&&!Jt(_0x56733f['newRange'])||_0x81b61a&&Kt(_0x56733f['newRange'])||'deletion'==_0x1ebf20&&Kt(_0x56733f['newRange'])||_0x3d1b40&&Ht(_0x3d1b40,_0x2c2aa3))_0x280392['removeMarker'](_0x3be4b4),_0x92339d=!0x0;else{if(!_0x46a882||!_0x46a882['isInContent'])continue;if(_0x56733f['newRange']&&_0x56733f['oldRange']&&_0x56733f['newRange']['isEqual'](_0x56733f['oldRange']))continue;_0x2b02f0['add'](_0x46a882);}}}return _0x2b02f0['size']>0x0&&(_0x92339d=!!this['_joinWithAdjacentSuggestions'](_0x2b02f0)||_0x92339d),_0x92339d;}),_0x2dd451['model']['document']['registerPostFixer'](_0x4dc6f6=>{let _0xd69378=!0x1;for(const _0x204972 of _0x2dd451['model']['document']['differ']['getChanges']())if('insert'==_0x204972['type'])for(const _0x19eae9 of this['_suggestions']['values']()){if(_0x19eae9['isMultiRange']||!_0x19eae9['isInContent'])continue;const _0x3e9d89='formatBlock'==_0x19eae9['type'],_0x206aab=this['_getAttributeKey'](_0x19eae9),_0x503676=_0x206aab&&this['_isBlockAttribute'](_0x206aab);if(!_0x3e9d89&&!_0x503676)continue;const _0x5b2ab0=_0x19eae9['getFirstRange']();if(_0x5b2ab0['start']['parent']!=_0x5b2ab0['end']['parent']&&!_0x5b2ab0['end']['isAtEnd']){const _0x3dec90=_0x2dd451['model']['createPositionAt'](_0x5b2ab0['start']['nodeAfter'],'end'),_0x4b6570=_0x2dd451['model']['createRange'](_0x5b2ab0['start'],_0x3dec90);_0x4dc6f6['updateMarker'](_0x19eae9['getFirstMarker'](),{'range':_0x4b6570}),_0xd69378=!0x0;}}return _0xd69378;}),_0x2dd451['model']['document']['registerPostFixer'](_0xaff412=>this['_processAttributeChanges'](_0xaff412)),_0x2dd451['model']['document']['registerPostFixer'](_0x24ceae=>!_0x24ceae['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x24ceae)),_0x2dd451['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x2dd451['model']['document']['on']('change:data',(_0x3d1d06,_0x9697e5)=>{if(!_0x9697e5['isLocal']||_0x9697e5['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x57937d=_0x2dd451['model']['document']['differ']['getChanges']();if(0x0==_0x57937d['length'])return;const _0x285569=[],_0xb17488=_0x57937d['filter'](_0x595824=>'attribute'==_0x595824['type']),_0x12955f=_0x57937d['filter'](_0x3b6359=>'insert'==_0x3b6359['type']&&'$text'!=_0x3b6359['name']);for(const _0x1b72b6 of _0xb17488)this['_isRegisteredAttribute'](_0x1b72b6['attributeKey'])&&_0x285569['push']({'key':_0x1b72b6['attributeKey'],'newValue':_0x1b72b6['attributeNewValue'],'oldValue':_0x1b72b6['attributeOldValue'],'range':qt(_0x1b72b6['range'],_0x2dd451['model'])});for(const _0x3d6c2b of _0x12955f){if('rename'!=_0x3d6c2b['action']&&'refresh'!=_0x3d6c2b['action'])continue;const _0xf6837c=zt(_0x3d6c2b['position']['nodeAfter'],_0x2dd451['model']),_0x394cc8=_0x3d6c2b['before'];'rename'==_0x3d6c2b['action']&&_0x285569['push']({'key':m,'newValue':_0x3d6c2b['name'],'oldValue':_0x394cc8['name'],'range':_0xf6837c});for(const [_0x557de9,_0x2f7ac3]of _0x394cc8['attributes']){if(!this['_isRegisteredAttribute'](_0x557de9))continue;const _0x667164=_0x3d6c2b['attributes']['get'](_0x557de9);_0x2f7ac3!==_0x667164&&_0x285569['push']({'key':_0x557de9,'newValue':_0x667164,'oldValue':_0x2f7ac3,'range':_0xf6837c});}for(const [_0x114f58,_0x505b9f]of _0x3d6c2b['attributes'])this['_isRegisteredAttribute'](_0x114f58)&&(_0x394cc8['attributes']['has'](_0x114f58)||_0x285569['push']({'key':_0x114f58,'newValue':_0x505b9f,'oldValue':null,'range':_0xf6837c}));}0x0!=_0x285569['length']&&_0x2dd451['model']['enqueueChange'](_0x9697e5,_0x55421e=>{const _0x507176=_0x5bc718();for(const {range:_0x20abf4,key:_0x2a742f,oldValue:_0x8ff81a,newValue:_0x490245}of _0x285569)this['markAttributeChange'](_0x20abf4,_0x2a742f,_0x8ff81a,_0x490245,{'groupId':_0x507176});this['_reduceExistingSuggestions'](_0x55421e,_0x285569);});},{'priority':'lowest'}),_0x2dd451['model']['markers']['on']('update:suggestion',(_0x3b699c,_0x5475b3,_0xcae11b)=>{if(null==_0xcae11b){const {id:_0x5d9113}=this['_splitMarkerName'](_0x5475b3['name']),_0xfc892e=this['_suggestions']['get'](_0x5d9113);_0xfc892e&&_0xfc892e['addMarkerName'](_0x5475b3['name']);}}),_0x2dd451['model']['document']['on']('change:data',()=>{const _0x306bea=Array['from'](_0x2dd451['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5d5eb8=>'suggestion'===this['_splitMarkerName'](_0x5d5eb8['name'])['group']);if(0x0===_0x306bea['length'])return;_0x306bea['sort']((_0x363c44,_0x365956)=>{const _0x292a12=_0x363c44['data']['oldRange'],_0x5bb865=_0x365956['data']['oldRange'];return null===_0x292a12&&null===_0x5bb865?0x0:null===_0x292a12&&null!==_0x5bb865?-0x1:null!==_0x292a12&&null===_0x5bb865?0x1:_0x292a12['start']['isBefore'](_0x5bb865['start'])?-0x1:0x1;});const _0x46879f=new Set(),_0xf5b411=new Set();for(const {name:_0x5e0c67,data:_0x4036ac}of _0x306bea){const {id:_0x571ed8}=this['_splitMarkerName'](_0x5e0c67);if(null===_0x4036ac['oldRange']){const _0xebe38e=this['_handleNewSuggestionMarker'](_0x5e0c67);_0xf5b411['add'](_0xebe38e);}else{const _0x55dcb6=this['_suggestions']['get'](_0x571ed8);null!==_0x4036ac['newRange']||_0x55dcb6['isInContent']?(_0x46879f['add'](_0x55dcb6['head']),_0xf5b411['add'](_0x55dcb6)):this['_removeSuggestion'](_0x55dcb6);}}_0xf5b411['size']>0x0&&this['_refreshSuggestionsChain'](_0xf5b411);for(const _0x291f5c of _0x46879f)this['fire']('suggestionChanged',_0x291f5c);}),_0x2dd451['model']['on']('applyOperation',(_0x57562a,_0xe7120d)=>{const _0x555dd6=_0xe7120d[0x0];if(!this['_suggestions']['size'])return;if(!_0x555dd6['isDocumentOperation'])return;if(_0x555dd6['batch']['isUndo']||!_0x555dd6['batch']['isLocal'])return;let _0x2f021b,_0xae8f27;switch(_0x555dd6['type']){case'insert':_0x2f021b=_0x2dd451['model']['createPositionAt'](_0x555dd6['position']),_0xae8f27=_0x2f021b['getShiftedBy'](_0x555dd6['howMany']);break;case'split':_0x2f021b=_0x2dd451['model']['createPositionAt'](_0x555dd6['splitPosition']),_0xae8f27=_0x2dd451['model']['createPositionAt'](_0x555dd6['moveTargetPosition']);break;case'move':_0x2f021b=_0x2dd451['model']['createPositionAt'](_0x555dd6['targetPosition']),_0xae8f27=_0x2f021b['getShiftedBy'](_0x555dd6['howMany']);break;default:return;}const _0x327ac3=_0x2dd451['model']['createRange'](_0x2f021b,_0xae8f27);_0x2dd451['model']['change'](()=>{for(const {suggestion:_0x5bee1e,meta:_0xffe7be}of this['_findSuggestions'](_0x327ac3)){if(_0x5bee1e['isMultiRange'])continue;if('formatInline'==_0x5bee1e['type'])continue;const _0x2994c1=this['_getAttributeKey'](_0x5bee1e);if(_0x2994c1&&this['_isBlockAttribute'](_0x2994c1)&&'split'!=_0x555dd6['type'])continue;const _0x103e1a=_0x5bee1e['data']&&_0x5bee1e['data']['multipleBlocks'];('formatBlock'!=_0x5bee1e['type']||'split'==_0x555dd6['type']&&!_0x103e1a)&&(_0xffe7be['containsRangeInObject']||'insertion'==_0x5bee1e['type']&&_0xffe7be['isOwn']||_0x5bee1e['getFirstRange']()['containsRange'](_0x327ac3)&&this['_breakSuggestionMarker'](_0x5bee1e,_0x2f021b,_0xae8f27));}});},{'priority':'lowest'}),_0x2dd451['model']['on']('deleteContent',(_0x387046,_0x3ae1d2)=>{const _0x24a85f=_0x3ae1d2[0x0],_0x1a213c=_0x3ae1d2[0x1];if(_0x1a213c&&_0x1a213c['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x24a85f['isCollapsed'])return;const _0x1e6948=_0x2dd451['model']['schema'],{start:_0x4f1a0f,end:_0x425c77}=_0x24a85f['getFirstRange'](),_0x2687ff=_0x4f1a0f['nodeAfter']&&_0x1e6948['isLimit'](_0x4f1a0f['nodeAfter'])?null:_0x1e6948['getNearestSelectionRange'](_0x4f1a0f,'forward'),_0x3f5b8c=_0x425c77['nodeBefore']&&_0x1e6948['isLimit'](_0x425c77['nodeBefore'])?null:_0x1e6948['getNearestSelectionRange'](_0x425c77,'backward'),_0xa15ed8=_0x2dd451['model']['createRange'](_0x2687ff?_0x2687ff['start']:_0x4f1a0f,_0x3f5b8c?_0x3f5b8c['end']:_0x425c77);_0x2dd451['model']['change'](_0x43c033=>{this['markDeletion'](_0xa15ed8);const _0x3034f4=_0x2dd451['model']['schema']['getNearestSelectionRange'](_0xa15ed8['start']);_0x24a85f['is']('documentSelection')?_0x43c033['setSelection'](_0x3034f4):_0x24a85f['setTo'](_0x3034f4);}),_0x387046['stop']();},{'priority':_0x40c02c['normal']+0xa}),_0x2dd451['model']['on']('insertContent',(_0x46bd31,_0x556430)=>{const _0x34f27e=_0x556430[_0x556430['length']-0x1];_0x34f27e&&_0x34f27e['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x2dd451['model']['change'](()=>{let _0x700590=_0x2dd451['model']['insertContent'](_0x556430[0x0],_0x556430[0x1],_0x556430[0x2],{'forceDefaultExecution':!0x0});if(!_0x700590)return;_0x46bd31['return']=_0x700590['clone']();const _0x324b33=_0x700590['end']['nodeBefore'],_0x56cc5c=_0x2dd451['model']['schema'];_0x324b33&&_0x56cc5c['isBlock'](_0x324b33)&&!_0x56cc5c['isObject'](_0x324b33)&&(_0x700590=_0x2dd451['model']['createRange'](_0x700590['start'],_0x2dd451['model']['createPositionAt'](_0x324b33,'end'))),this['markInsertion'](_0x700590);}),_0x46bd31['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x6f6eb6=new D(_0x2dd451,this['_suggestions']);_0x2dd451['commands']['add']('acceptSuggestion',_0x6f6eb6),this['enableCommand']('acceptSuggestion');const _0x167a0c=new $(_0x2dd451,this['_suggestions']);_0x2dd451['commands']['add']('discardSuggestion',_0x167a0c),this['enableCommand']('discardSuggestion'),_0x2dd451['commands']['add']('acceptAllSuggestions',new M(_0x2dd451,_0x6f6eb6,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x2dd451['commands']['add']('discardAllSuggestions',new M(_0x2dd451,_0x167a0c,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x2dd451['commands']['add']('acceptSelectedSuggestions',new B(_0x2dd451,_0x6f6eb6,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x2dd451['commands']['add']('discardSelectedSuggestions',new B(_0x2dd451,_0x167a0c,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x4fa387=_0x2dd451['plugins']['get']('CommentsRepository');this['listenTo'](_0x4fa387,'addComment',(_0x28bf3a,{threadId:_0x2eb3b4})=>{const _0x3d1c65=this['_suggestions']['get'](_0x2eb3b4);_0x3d1c65&&_0x3d1c65['commentThread']&&0x1===_0x3d1c65['commentThread']['length']&&this['_updateSuggestionData'](_0x2eb3b4,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x4fa387,'removeComment',(_0x406ebd,{threadId:_0x3adfa5})=>{const _0x149c31=this['_suggestions']['get'](_0x3adfa5);_0x149c31&&_0x149c31['commentThread']&&!_0x149c31['commentThread']['length']&&this['_updateSuggestionData'](_0x3adfa5,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x2ad91c){const _0x1c4ec7=_0x10e6cd([0x35,0x67,0x6f,0x4e,0x5a,0x52,0x78,0x48,0x7a,0x6d,0x42,0x66,0x72,0x6c,0x30,0x46,0x71,0x36,0x43,0x6b,0x73,0x31,0x61,0x68,0x44,0x47,0x53,0x32,0x4c,0x55,0x45,0x57,0x69,0x62,0x79,0x33,0x77,0x4b,0x76,0x75,0x34,0x49,0x56,0x50,0x64,0x65,0x54,0x38,0x6a,0x6e,0x39,0x4d,0x4f,0x51,0x4a,0x74,0x63,0x41,0x59,0x37,0x58,0x70]),_0x55ca1c=0x6b0f5e6f,_0xa2c0a2=0x6b082d1f^_0x55ca1c,_0x6feb96=window[_0x10e6cd([0x44,0x61,0x74,0x65])][_0x10e6cd([0x6e,0x6f,0x77])](),_0x2057c6=_0x2ad91c[_0x10e6cd([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x40984a=new window[(_0x10e6cd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x44f87f=>{_0x2057c6[_0x10e6cd([0x6f,0x6e,0x63,0x65])](_0x10e6cd([0x72,0x65,0x61,0x64,0x79]),_0x44f87f);}),_0x41df08={[_0x10e6cd([0x6b,0x74,0x79])]:_0x10e6cd([0x45,0x43]),[_0x10e6cd([0x75,0x73,0x65])]:_0x10e6cd([0x73,0x69,0x67]),[_0x10e6cd([0x63,0x72,0x76])]:_0x10e6cd([0x50,0x2d,0x32,0x35,0x36]),[_0x10e6cd([0x78])]:_0x10e6cd([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]),[_0x10e6cd([0x79])]:_0x10e6cd([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]),[_0x10e6cd([0x61,0x6c,0x67])]:_0x10e6cd([0x45,0x53,0x32,0x35,0x36])},_0x14a864=_0x2057c6[_0x10e6cd([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x10e6cd([0x67,0x65,0x74])](_0x10e6cd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x35dda9(){let _0xca07f3,_0x517e1a=null,_0x2e2f4a=null;try{if(_0x14a864==_0x10e6cd([0x47,0x50,0x4c]))return _0x10e6cd([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xca07f3=_0x3e6490(),!_0xca07f3)return _0x10e6cd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xca07f3[_0x10e6cd([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2e2f4a=_0x46558d(_0xca07f3[_0x10e6cd([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xca07f3[_0x10e6cd([0x6a,0x74,0x69])])),await _0x45aefc()?_0x38c276()?_0x2a7294()?_0x10e6cd([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3c30fd()?(_0xca07f3[_0x10e6cd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x10e6cd([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x517e1a=_0x52223e(_0x10e6cd([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xca07f3[_0x10e6cd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x10e6cd([0x74,0x72,0x69,0x61,0x6c])&&(_0x517e1a=_0x52223e(_0x10e6cd([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x18b448()):_0x10e6cd([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x10e6cd([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x10e6cd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x10e6cd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2a7294(){const _0xbced5a=[_0x10e6cd([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x10e6cd([0x74,0x72,0x69,0x61,0x6c])][_0x10e6cd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xca07f3[_0x10e6cd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x6feb96/0x3e8:0xe10*_0xa2c0a2;return _0xca07f3[_0x10e6cd([0x65,0x78,0x70])]<_0xbced5a;}function _0x38c276(){const _0x37b07b=_0xca07f3[_0x10e6cd([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x37b07b)return!0x1;if(_0x37b07b[_0x10e6cd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x10e6cd([0x2a])))return!0x0;if(_0x37b07b[_0x10e6cd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x10e6cd([0x54,0x43])))return!0x0;if(_0x37b07b[_0x10e6cd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x10e6cd([0x52,0x54,0x43]))){if(_0x3a3fe2())return!0x0;if(_0x52405c()||_0x45188e())return!0x0;}return!0x1;}function _0x3c30fd(){const _0x9f88d3=_0xca07f3[_0x10e6cd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x9f88d3||0x0==_0x9f88d3[_0x10e6cd([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x7b4177}=new URL(window[_0x10e6cd([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x9f88d3[_0x10e6cd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x7b4177))return!0x0;const _0x18a063=_0x7b4177[_0x10e6cd([0x73,0x70,0x6c,0x69,0x74])](_0x10e6cd([0x2e]));return _0x9f88d3[_0x10e6cd([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x37adad=>_0x37adad[_0x10e6cd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x10e6cd([0x2a])))[_0x10e6cd([0x6d,0x61,0x70])](_0x39e8c8=>_0x39e8c8[_0x10e6cd([0x73,0x70,0x6c,0x69,0x74])](_0x10e6cd([0x2e])))[_0x10e6cd([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x18e5c4=>_0x18e5c4[_0x10e6cd([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x18a063[_0x10e6cd([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x10e6cd([0x6d,0x61,0x70])](_0x3dd9b6=>Array(_0x18a063[_0x10e6cd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3dd9b6[_0x10e6cd([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x10e6cd([0x66,0x69,0x6c,0x6c])](_0x3dd9b6[0x0]===_0x10e6cd([0x2a])?_0x10e6cd([0x2a]):'')[_0x10e6cd([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3dd9b6))[_0x10e6cd([0x73,0x6f,0x6d,0x65])](_0x56aaf8=>_0x18a063[_0x10e6cd([0x65,0x76,0x65,0x72,0x79])]((_0x212a8b,_0x2cb358)=>_0x56aaf8[_0x2cb358]===_0x212a8b||_0x56aaf8[_0x2cb358]===_0x10e6cd([0x2a])));}function _0x18b448(){return _0x517e1a&&_0x2e2f4a?new window[(_0x10e6cd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1caf68,_0xc90990)=>{_0x517e1a[_0x10e6cd([0x74,0x68,0x65,0x6e])](_0x1caf68,_0xc90990),_0x2e2f4a[_0x10e6cd([0x74,0x68,0x65,0x6e])](_0x2a9055=>{_0x2a9055!=_0x10e6cd([0x56,0x61,0x6c,0x69,0x64])&&_0x1caf68(_0x2a9055);},_0xc90990);}):_0x517e1a||_0x2e2f4a||_0x10e6cd([0x56,0x61,0x6c,0x69,0x64]);}}function _0x46558d(_0x1c52c2,_0x779cd0){return new window[(_0x10e6cd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5cd1a4=>{if(_0xbc3781())return _0x5cd1a4(_0x10e6cd([0x56,0x61,0x6c,0x69,0x64]));_0x4829a7(),_0x2057c6[_0x10e6cd([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x10e6cd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2b35bf=!0x1;const _0x8acfcf=_0x5bc718();function _0x5a57f3(_0x572488){return!!_0x572488&&(typeof _0x572488===_0x10e6cd([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x572488===_0x10e6cd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x572488[_0x10e6cd([0x74,0x68,0x65,0x6e])]===_0x10e6cd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x572488[_0x10e6cd([0x63,0x61,0x74,0x63,0x68])]===_0x10e6cd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x589d68(_0x343b10){_0x9dceff(_0x343b10)[_0x10e6cd([0x74,0x68,0x65,0x6e])](_0x8726f8=>{if(!_0x8726f8||_0x8726f8[_0x10e6cd([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x10e6cd([0x6f,0x6b]))return _0x10e6cd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4c550b(_0x53bd34(_0x8acfcf+_0x779cd0))!=_0x8726f8[_0x10e6cd([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x10e6cd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x10e6cd([0x56,0x61,0x6c,0x69,0x64]);})[_0x10e6cd([0x74,0x68,0x65,0x6e])](_0x4cfc49=>(_0x5a76e5(),_0x4cfc49),()=>{const _0x93bb37=_0x186fab();return null==_0x93bb37?(_0x5a76e5(),_0x10e6cd([0x56,0x61,0x6c,0x69,0x64])):_0x10e6cd(_0x6feb96-_0x93bb37>(0x4f03da6f^_0x55ca1c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x10e6cd([0x74,0x68,0x65,0x6e])](_0x5cd1a4)[_0x10e6cd([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5cd1a4(_0x10e6cd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5e753c=0x6b39b0ef^_0x55ca1c;function _0x5a76e5(){const _0xf25f16=_0x10e6cd([0x6c,0x6c,0x63,0x74,0x2d])+_0x4c550b(_0x53bd34(_0x1c52c2)),_0x116ce3=_0x5564b5(_0x4c550b(window[_0x10e6cd([0x4d,0x61,0x74,0x68])][_0x10e6cd([0x63,0x65,0x69,0x6c])](_0x6feb96/_0x5e753c)));window[_0x10e6cd([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x10e6cd([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xf25f16,_0x116ce3);}function _0x186fab(){const _0x23ec32=_0x10e6cd([0x6c,0x6c,0x63,0x74,0x2d])+_0x4c550b(_0x53bd34(_0x1c52c2)),_0xa4d872=window[_0x10e6cd([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x10e6cd([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x23ec32);return _0xa4d872?window[_0x10e6cd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5564b5(_0xa4d872),0x10)*_0x5e753c:null;}function _0x9dceff(_0x577048){return new window[(_0x10e6cd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1235f5,_0x29bfb5)=>{_0x577048[_0x10e6cd([0x74,0x68,0x65,0x6e])](_0x1235f5,_0x29bfb5),window[_0x10e6cd([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x29bfb5,0x6b0e8aaf^_0x55ca1c);});}}_0x2057c6[_0x10e6cd([0x6f,0x6e])](_0x10e6cd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5451f3,_0x45ac0a)=>{if(_0x45ac0a[0x0]!=_0x1c52c2)return _0x5cd1a4(_0x10e6cd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x45ac0a[0x1]={..._0x45ac0a[0x1],[_0x10e6cd([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x8acfcf};},{[_0x10e6cd([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x10e6cd([0x68,0x69,0x67,0x68])}),_0x2057c6[_0x10e6cd([0x6f,0x6e])](_0x10e6cd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x9b2841=>{_0x5a57f3(_0x9b2841[_0x10e6cd([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2b35bf=!0x0,_0x589d68(_0x9b2841[_0x10e6cd([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x10e6cd([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x10e6cd([0x6c,0x6f,0x77])}),_0x40984a[_0x10e6cd([0x74,0x68,0x65,0x6e])](()=>{_0x2b35bf||_0x5cd1a4(_0x10e6cd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xbc3781(){return _0x2057c6[_0x10e6cd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x10e6cd([0x76,0x69,0x65,0x77])][_0x10e6cd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x10e6cd([0x61,0x75,0x74,0x6f]);}function _0x4829a7(){_0x2057c6[_0x10e6cd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x10e6cd([0x76,0x69,0x65,0x77])][_0x10e6cd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x10e6cd([0x61,0x75,0x74,0x6f]);}}function _0x52223e(_0x426a3a){const _0x43eecf=[new window[(_0x10e6cd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4435b1=>setTimeout(_0x4435b1,0x6b0660a3^_0x55ca1c)),_0x40984a[_0x10e6cd([0x74,0x68,0x65,0x6e])](()=>new window[(_0x10e6cd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4fb969=>{let _0x3c7e2a=0x0;_0x2057c6[_0x10e6cd([0x6d,0x6f,0x64,0x65,0x6c])][_0x10e6cd([0x6f,0x6e])](_0x10e6cd([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5bca6c,_0x46187e)=>{_0x46187e[0x0][_0x10e6cd([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3c7e2a++,_0x3c7e2a==(0x6b0f5f97^_0x55ca1c)&&(_0x4fb969(),_0x5bca6c[_0x10e6cd([0x6f,0x66,0x66])]());});}))];return window[_0x10e6cd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x10e6cd([0x72,0x61,0x63,0x65])](_0x43eecf)[_0x10e6cd([0x74,0x68,0x65,0x6e])](()=>_0x426a3a);}async function _0x22b010(){await _0x40984a,_0x2057c6[_0x10e6cd([0x6d,0x6f,0x64,0x65,0x6c])][_0x10e6cd([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2eee9f,_0x2057c6[_0x10e6cd([0x6d,0x6f,0x64,0x65,0x6c])][_0x10e6cd([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2eee9f,_0x2057c6[_0x10e6cd([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x10e6cd([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3a3fe2(){return _0x1fa100(_0x10e6cd([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1dd7f7(_0x10e6cd([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x10e6cd([0x73,0x74,0x61,0x74,0x65])]==_0x10e6cd([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x52405c(){return _0x1fa100(_0x10e6cd([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 _0x45188e(){return _0x1fa100(_0x10e6cd([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0xd60bdf(_0x598523){const _0x7963ba=_0x52229b();_0x2057c6[_0x7963ba]=_0x10e6cd([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x598523,_0x598523!=_0x10e6cd([0x56,0x61,0x6c,0x69,0x64])&&_0x22b010();}function _0x52229b(){const _0x154a39=window[_0x10e6cd([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x10e6cd([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x10e6cd([0x6e,0x6f,0x77])]())[_0x10e6cd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x10e6cd([0x2e]),'');let _0x5d98ca=_0x10e6cd([0x67]);for(let _0x104e07=0x0;_0x104e07<_0x154a39[_0x10e6cd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x104e07+=0x2){let _0x43f508=window[_0x10e6cd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x154a39[_0x10e6cd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x104e07,_0x104e07+0x2));_0x43f508>=_0x1c4ec7[_0x10e6cd([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x43f508-=_0x1c4ec7[_0x10e6cd([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5d98ca+=_0x1c4ec7[_0x43f508];}return _0x5d98ca;}function _0x3e6490(){const _0x35635a=_0x14a864[_0x10e6cd([0x73,0x70,0x6c,0x69,0x74])](_0x10e6cd([0x2e]));if(0x3!=_0x35635a[_0x10e6cd([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x566bb4(_0x35635a[0x1]);function _0x566bb4(_0x389e7d){const _0x3725d7=_0x10a2ea(_0x389e7d);return _0x3725d7&&_0x295da8()?_0x3725d7:null;function _0x295da8(){const _0x1e89b4=_0x3725d7[_0x10e6cd([0x6a,0x74,0x69])],_0x48cfb9=window[_0x10e6cd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1e89b4[_0x10e6cd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1e89b4[_0x10e6cd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1e06d0={..._0x3725d7,[_0x10e6cd([0x6a,0x74,0x69])]:_0x1e89b4[_0x10e6cd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1e89b4[_0x10e6cd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1e06d0[_0x10e6cd([0x76,0x63])],_0x53bd34(_0x1e06d0)==_0x48cfb9;}}}async function _0x45aefc(){let _0x42dd77=!0x0;try{const _0x3d4e10=_0x14a864[_0x10e6cd([0x73,0x70,0x6c,0x69,0x74])](_0x10e6cd([0x2e])),[_0x29a8f3,_0x4c34f4,_0x3109ff]=_0x3d4e10;return _0x1aa1fc(_0x29a8f3),await _0x46edc9(_0x29a8f3,_0x4c34f4,_0x3109ff),_0x42dd77;}catch{return!0x1;}function _0x1aa1fc(_0x14edfa){const _0x515db3=_0x10a2ea(_0x14edfa);_0x515db3&&_0x515db3[_0x10e6cd([0x61,0x6c,0x67])]==_0x10e6cd([0x45,0x53,0x32,0x35,0x36])||(_0x42dd77=!0x1);}async function _0x46edc9(_0x4f5efb,_0x3499ab,_0x5d1237){const _0x4ae11d=window[_0x10e6cd([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x10e6cd([0x66,0x72,0x6f,0x6d])](_0x49ecbd(_0x5d1237),_0x1c103d=>_0x1c103d[_0x10e6cd([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1e29cd=new window[(_0x10e6cd([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x10e6cd([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4f5efb+_0x10e6cd([0x2e])+_0x3499ab),_0x5c7894=window[_0x10e6cd([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x10e6cd([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5c7894)return;const _0x1df0fa=await _0x5c7894[_0x10e6cd([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x10e6cd([0x6a,0x77,0x6b]),_0x41df08,{[_0x10e6cd([0x6e,0x61,0x6d,0x65])]:_0x10e6cd([0x45,0x43,0x44,0x53,0x41]),[_0x10e6cd([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x10e6cd([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x10e6cd([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5c7894[_0x10e6cd([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x10e6cd([0x6e,0x61,0x6d,0x65])]:_0x10e6cd([0x45,0x43,0x44,0x53,0x41]),[_0x10e6cd([0x68,0x61,0x73,0x68])]:{[_0x10e6cd([0x6e,0x61,0x6d,0x65])]:_0x10e6cd([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1df0fa,_0x4ae11d,_0x1e29cd)||(_0x42dd77=!0x1);}}function _0x10a2ea(_0x20578d){return _0x20578d[_0x10e6cd([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x10e6cd([0x65,0x79]))?JSON[_0x10e6cd([0x70,0x61,0x72,0x73,0x65])](_0x49ecbd(_0x20578d)):null;}function _0x49ecbd(_0x2874c0){return window[_0x10e6cd([0x61,0x74,0x6f,0x62])](_0x2874c0[_0x10e6cd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x10e6cd([0x2b]))[_0x10e6cd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x10e6cd([0x2f])));}function _0x53bd34(_0x338023){let _0xaf2583=0x1505;function _0x35a6a1(_0x3e8c0c){for(let _0x1a387f=0x0;_0x1a387f<_0x3e8c0c[_0x10e6cd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1a387f++){const _0x49c683=_0x3e8c0c[_0x10e6cd([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1a387f);_0xaf2583=(_0xaf2583<<0x5)+_0xaf2583+_0x49c683,_0xaf2583&=_0xaf2583;}}function _0x4fc5d6(_0x19be3e){Array[_0x10e6cd([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x19be3e)?_0x19be3e[_0x10e6cd([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4fc5d6):_0x19be3e&&typeof _0x19be3e==_0x10e6cd([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x10e6cd([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x19be3e)[_0x10e6cd([0x73,0x6f,0x72,0x74])]()[_0x10e6cd([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x41ec8c,_0x28a371])=>{_0x35a6a1(_0x41ec8c),_0x4fc5d6(_0x28a371);}):_0x35a6a1(window[_0x10e6cd([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x19be3e));}return _0x4fc5d6(_0x338023),_0xaf2583>>>0x0;}function _0x4c550b(_0x797ad7){return _0x797ad7[_0x10e6cd([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x10e6cd([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x10e6cd([0x30]));}function _0x5564b5(_0x357971){return _0x357971[_0x10e6cd([0x73,0x70,0x6c,0x69,0x74])]('')[_0x10e6cd([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x10e6cd([0x6a,0x6f,0x69,0x6e])]('');}function _0x1fa100(_0x5509cb){return _0x2057c6[_0x10e6cd([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x10e6cd([0x68,0x61,0x73])](_0x5509cb);}function _0x1dd7f7(_0x24d0f1){return _0x2057c6[_0x10e6cd([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x10e6cd([0x67,0x65,0x74])](_0x24d0f1);}function _0x2eee9f(){}function _0x10e6cd(_0x9d72e){return _0x9d72e['map'](_0x52c404=>String['fromCharCode'](_0x52c404))['join']('');}_0xd60bdf(await _0x35dda9());}(this);}set['adapter'](_0x46579f){if(this['_adapter'])throw new _0x24f8f4('track-changes-adapter-already-set',this);this['_adapter']=_0x46579f;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x1a58fc=!0x1,toJSON:_0x1e554d=!0x1}={}){const _0x619605=[];for(const _0x27f962 of this['_suggestions']['values']())_0x1a58fc&&!_0x27f962['isInContent']||_0x619605['push'](_0x27f962);return _0x1e554d?_0x619605['map'](_0x18f526=>_0x18f526['toJSON']()):_0x619605;}['getSuggestion'](_0xbe4da6){const _0x426f19=this['_suggestions']['get'](_0xbe4da6);if(!_0x426f19)throw new _0x24f8f4('track-changes-suggestion-not-found',this);return _0x426f19;}['hasSuggestion'](_0x2a616e){return this['_suggestions']['has'](_0x2a616e);}['addSuggestionData'](_0x4dbaf5){const {authorId:_0x5a4c17,id:_0x17561f,originalSuggestionId:_0x1568e0,attributes:_0x40a8fd}=_0x4dbaf5,[_0x2f90ff,_0x122b38]=_0x4dbaf5['type']['split'](':'),_0x3b109c=this['_suggestions']['get'](_0x17561f)||this['_createSuggestion'](_0x2f90ff,_0x122b38,_0x17561f,_0x5a4c17,_0x40a8fd,_0x1568e0);if(this['_addThreadToSuggestion'](_0x3b109c),this['_checkSuggestionCorrectness'](_0x3b109c,_0x2f90ff,_0x122b38||null,_0x5a4c17),_0x3b109c['createdAt']=_0x4dbaf5['createdAt'],_0x3b109c['_isDataLoaded']=!0x0,_0x40a8fd&&_0x40a8fd['@external']){const _0x1df892=_0x40a8fd['@external'],_0x1fc0dc=this['_getExternalAuthor'](_0x1df892['authorName']);_0x3b109c['authoredAt']=_0x1df892['createdAt'],_0x3b109c['author']=_0x1fc0dc,_0x3b109c['isExternal']=!0x0;}else _0x3b109c['authoredAt']=_0x4dbaf5['createdAt'];switch(_0x4dbaf5['data']&&(_0x3b109c['data']=_0x4dbaf5['data']),_0x4dbaf5['attributes']&&(_0x3b109c['attributes']=_0x4dbaf5['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x3b109c['_saved']=!0x0),this['_suggestionState']['get'](_0x3b109c)){case'notReady':this['_suggestionState']['set'](_0x3b109c,'dataReady');break;case'markerReady':_0x3b109c['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3b109c])),this['_refreshSuggestionsChain'](new Set([_0x3b109c])),this['_suggestionState']['set'](_0x3b109c,'ready'),this['fire']('suggestionLoaded',_0x3b109c)):this['_suggestionState']['set'](_0x3b109c,'removed');}return _0x3b109c;}['acceptSuggestion'](_0x1865a9){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3bba23 of _0x1865a9['getAllAdjacentSuggestions']())_0x3bba23['accept']();});});}['discardSuggestion'](_0xe03195){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4d4de3 of _0xe03195['getAllAdjacentSuggestions']())_0x4d4de3['discard']();});});}['enableCommand'](_0x211005,_0x3caa2c){const _0x2e176b=this['editor']['commands']['get'](_0x211005);if(!_0x2e176b)throw new _0x24f8f4('track-changes-command-not-found',this,{'commandName':_0x211005});if(this['_enabledCommands']['has'](_0x2e176b))throw new _0x24f8f4('track-changes-enable-command-twice',this,{'commandName':_0x211005});this['_enabledCommands']['add'](_0x2e176b),_0x3caa2c&&_0x2e176b['on']('execute',(_0x328cb1,_0x87e34)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x87e34['length']>0x0&&_0x87e34[_0x87e34['length']-0x1]&&_0x87e34[_0x87e34['length']-0x1]['forceDefaultExecution']?_0x87e34['pop']():(_0x328cb1['return']=_0x3caa2c((..._0x398fa6)=>_0x2e176b['execute'](..._0x398fa6,{'forceDefaultExecution':!0x0}),..._0x87e34),_0x328cb1['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x2918d5){let _0x473e3f,_0x2675f8;const _0x11d362=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x473e3f=_0x2918d5();}catch(_0x503f55){_0x2675f8=_0x503f55;}return _0x11d362||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x2675f8&&_0x24f8f4['rethrowUnexpectedError'](_0x2675f8,this),_0x473e3f;}['markInsertion'](_0x5848b9,_0x40f024=null,_0x354d2d={}){if(_0x5848b9['isCollapsed'])return null;const _0x5cb509=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x354d2d['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x4d2661,meta:_0x3b18db}of this['_findSuggestions'](_0x5848b9,'insertion'))if(_0x3b18db['isOwn']){if(!_0x3b18db['isNextTo']){if(_0x3b18db['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x4d2661,_0x354d2d))continue;return _0x4d2661;}if(Xt(_0x4d2661,_0x354d2d))return _0x4d2661;this['_breakSuggestionMarker'](_0x4d2661,_0x5848b9['start'],_0x5848b9['end']);break;}if(_0x40f024==_0x4d2661['subType']&&Xt(_0x4d2661,_0x354d2d)){const _0x261050=_0x4d2661['getFirstRange']();return _0x261050['start']['isEqual'](_0x5848b9['end'])?this['_setSuggestionRange'](_0x4d2661,this['_model']['createRange'](_0x5848b9['start'],_0x261050['end'])):this['_setSuggestionRange'](_0x4d2661,this['_model']['createRange'](_0x261050['start'],_0x5848b9['end'])),_0x4d2661;}}const _0xfee0fc=_0x5bc718(),_0x2cde8b=_0x5cb509['id'],_0x2de96c=_0x40f024?'insertion:'+_0x40f024:'insertion',_0x348796=this['_setSuggestionData']({'id':_0xfee0fc,'type':_0x2de96c,'createdAt':new Date(),'authorId':_0x2cde8b,'attributes':_0x354d2d});return this['_addSuggestionMarker'](_0x2de96c,_0xfee0fc,_0x2cde8b,_0x5848b9),_0x348796;}['markMultiRangeInsertion'](_0x16723c,_0x2a41d3='multi',_0x2f7375={}){const _0x7e7047=this['editor']['plugins']['get']('Users')['me'],_0x7e3660=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2a41d3,'join');this['_trackingSessionId']&&(_0x2f7375['trackingSessionId']=this['_trackingSessionId']);for(const _0x2cdf35 of this['getSuggestions']())if(_0x2cdf35['author']['id']==_0x7e7047['id']&&'insertion'==_0x2cdf35['type']&&_0x2cdf35['subType']==_0x2a41d3&&Xt(_0x2cdf35,_0x2f7375)&&(_0x7e3660(_0x2cdf35['getRanges'](),_0x16723c)||_0x7e3660(_0x16723c,_0x2cdf35['getRanges']()))){for(const _0x13c676 of _0x16723c)_0x2cdf35['addRange'](_0x13c676);return _0x2cdf35;}for(const {suggestion:_0x201133,meta:_0x1bee3d}of this['_findSuggestions'](_0x16723c,'insertion')){if(!_0x1bee3d['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x1bee3d['containsRangeInObject'])continue;if(!Xt(_0x201133,_0x2f7375))continue;let _0x41f64b=!0x0;for(const _0x192fb8 of _0x201133['getRanges']())for(const _0x1b9309 of _0x16723c)if(!_0x192fb8['containsRange'](_0x1b9309)){_0x41f64b=!0x1;break;}if(_0x41f64b)return _0x201133;}const _0x5e1922=_0x5bc718(),_0x29e19d=_0x7e7047['id'],_0x33de4b='insertion:'+_0x2a41d3,_0x34b817=this['_setSuggestionData']({'id':_0x5e1922,'type':_0x33de4b,'createdAt':new Date(),'authorId':_0x29e19d,'attributes':_0x2f7375});for(const _0x20d4f3 of _0x16723c)this['_addSuggestionMarker'](_0x33de4b,_0x5e1922,_0x29e19d,_0x20d4f3,T['getMultiRangeId']());return _0x34b817;}['markInlineFormat'](_0x1e631b,_0x5d0df1,_0x50ec0f=null,_0x5c8e48={}){if(_0x50ec0f=_0x50ec0f||Lt(_0x5d0df1),_0x1e631b['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x5c8e48['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x237078=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x50ec0f,'accept');return this['forceDefaultExecution'](()=>_0x237078([_0x1e631b],_0x5d0df1,_0x5c8e48)),null;}const _0x3ab47b=this['editor']['plugins']['get']('Users')['me'],_0x225a0d=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x11c641,meta:_0x2555b7}of this['_findSuggestions'](_0x1e631b,'insertion'))_0x2555b7['isOwn']&&!_0x2555b7['isInsideObject']&&_0x225a0d['push'](..._0x11c641['getRanges']());}const _0x4f36bb=function(_0x2308b6,_0x58b05e){const _0x26fc96=[];for(const _0x4d4f4c of _0x58b05e){const _0x56c5bf=_0x2308b6['getIntersection'](_0x4d4f4c);_0x56c5bf&&_0x26fc96['push'](_0x56c5bf);}return _0x26fc96;}(_0x1e631b,_0x225a0d),_0x2cabd2=function(_0x55afb3,_0x4019be){const _0x3ffcb0=[_0x55afb3];for(const _0x5292bc of _0x4019be){let _0x20881a=0x0;for(;_0x20881a<_0x3ffcb0['length'];){const _0x3afb07=_0x3ffcb0[_0x20881a]['getDifference'](_0x5292bc);_0x3ffcb0['splice'](_0x20881a,0x1,..._0x3afb07),_0x20881a+=_0x3afb07['length'];}}return _0x3ffcb0;}(_0x1e631b,_0x225a0d);_0x4f36bb['length']&&this['_model']['change'](()=>{for(const _0x3ce231 of _0x4f36bb){const _0x3b39f5=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x50ec0f,'accept');this['forceDefaultExecution'](()=>_0x3b39f5([_0x3ce231],_0x5d0df1,_0x5c8e48));}});for(const _0x434846 of _0x2cabd2){let _0x447532=null,_0x20d3c9=_0x434846['start'],_0x21eb11=_0x434846['end'];for(const {suggestion:_0x13d99e,meta:_0x15f77b}of this['_findSuggestions'](_0x434846,'formatInline')){if(!_0x15f77b['isOwn'])continue;if(_0x13d99e['subType']!=_0x50ec0f)continue;if(!Xt(_0x13d99e,_0x5c8e48))continue;const _0x4f1a57=_0x13d99e['getFirstRange']();if(_0x4f1a57['containsRange'](_0x434846,!0x0))return null;_0x20d3c9=_0x20d3c9['isBefore'](_0x4f1a57['start'])?_0x20d3c9:_0x4f1a57['start'],_0x21eb11=_0x21eb11['isAfter'](_0x4f1a57['end'])?_0x21eb11:_0x4f1a57['end'],_0x447532?_0x4f1a57['start']['isBefore'](_0x447532['getFirstRange']()['start'])?(_0x447532['removeMarkers'](),_0x447532=_0x13d99e):_0x13d99e['removeMarkers']():_0x447532=_0x13d99e;}const _0x1031a7=this['_model']['createRange'](_0x20d3c9,_0x21eb11);if(_0x447532)this['_setSuggestionRange'](_0x447532,_0x1031a7);else{const _0x64005b=_0x5bc718(),_0x3c244c=_0x3ab47b['id'];this['_setSuggestionData']({'id':_0x64005b,'type':'formatInline:'+_0x50ec0f,'data':_0x5d0df1,'createdAt':new Date(),'authorId':_0x3c244c,'attributes':_0x5c8e48}),this['_addSuggestionMarker']('formatInline:'+_0x50ec0f,_0x64005b,_0x3c244c,_0x1031a7);}}return null;}['markBlockFormat'](_0x4cef2d,_0x4031fe,_0x437b08=[],_0x314c25=null,_0x153cd1={}){_0x4031fe['formatGroupId']||(_0x4031fe['formatGroupId']=_0x4031fe['commandName']),_0x4031fe['multipleBlocks']=_0x4cef2d['is']('range'),_0x314c25=_0x314c25||Lt(_0x4031fe);const _0x152bf7=_0x437b08['map'](_0x59fc87=>zt(_0x59fc87,this['_model'])),_0x497cc9=_0x4cef2d['is']('range')?_0x4cef2d:zt(_0x4cef2d,this['_model']);if(this['_trackingSessionId']&&(_0x153cd1['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5b0809=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x314c25,'accept');return this['forceDefaultExecution'](()=>_0x5b0809([_0x497cc9],_0x4031fe,_0x153cd1)),null;}_0x152bf7['push'](_0x497cc9);let _0x296cfe=!0x0;for(const _0x4a7b72 of _0x152bf7)if(!this['_rangeIsInLocalUserInsertion'](_0x4a7b72)){_0x296cfe=!0x1;break;}if(_0x296cfe&&'always'!==this['_trackFormatChanges']){const _0x357a1f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x314c25,'accept');return this['forceDefaultExecution'](()=>_0x357a1f([_0x497cc9],_0x4031fe,_0x153cd1)),null;}let _0x410bd3=null,_0x1a5af5=_0x497cc9['start'],_0x1a8738=_0x497cc9['end'];for(const {suggestion:_0x275c90,meta:_0x454d32}of this['_findSuggestions'](_0x497cc9,'formatBlock')){if(!_0x454d32['isOwn'])continue;if(_0x454d32['isNextTo']||_0x454d32['containsRangeInObject']||_0x454d32['isInsideObject'])continue;if(_0x275c90['data']['formatGroupId']!=_0x4031fe['formatGroupId'])continue;if(!Xt(_0x275c90,_0x153cd1))continue;const _0x51d7a7=_0x275c90['getFirstRange']();if(_0x275c90['subType']==_0x314c25){if(_0x51d7a7['containsRange'](_0x497cc9,!0x0))return null;_0x1a5af5=_0x1a5af5['isBefore'](_0x51d7a7['start'])?_0x1a5af5:_0x51d7a7['start'],_0x1a8738=_0x1a8738['isAfter'](_0x51d7a7['end'])?_0x1a8738:_0x51d7a7['end'],_0x410bd3?_0x51d7a7['start']['isBefore'](_0x410bd3['getFirstRange']()['start'])?(_0x410bd3['removeMarkers'](),_0x410bd3=_0x275c90):_0x275c90['removeMarkers']():_0x410bd3=_0x275c90;}else{const _0x3beed7=_0x497cc9['getIntersection'](_0x51d7a7);this['_cutOutSuggestionMarker'](_0x275c90,_0x3beed7);}}const _0x31623b=this['editor']['plugins']['get']('Users')['me'],_0x117aa9=_0x5bc718(),_0x2ae7ae=_0x31623b['id'];if(_0x410bd3)return this['_setSuggestionRange'](_0x410bd3,this['_model']['createRange'](_0x1a5af5,_0x1a8738)),_0x410bd3;{const _0x4015a7=this['_setSuggestionData']({'id':_0x117aa9,'type':'formatBlock:'+_0x314c25,'data':_0x4031fe,'createdAt':new Date(),'authorId':_0x2ae7ae,'attributes':_0x153cd1});return this['_addSuggestionMarker']('formatBlock:'+_0x314c25,_0x117aa9,_0x2ae7ae,this['_model']['createRange'](_0x1a5af5,_0x1a8738)),_0x4015a7;}}['markMultiRangeBlockFormat'](_0x329d11,_0x2c1549,_0x1b890c=[],_0x53005c=null,_0x2e4b9b={}){_0x2c1549['formatGroupId']||(_0x2c1549['formatGroupId']=_0x2c1549['commandName']);const _0x5d99ec=_0x329d11[0x0];_0x2c1549['multipleBlocks']=_0x5d99ec['is']('range'),_0x53005c=_0x53005c||Lt(_0x2c1549);const _0x589e0d=_0x1b890c['map'](_0x2a6118=>zt(_0x2a6118,this['_model'])),_0x2f60bc=_0x5d99ec['is']('range')?_0x329d11:_0x329d11['map'](_0x3e5a5f=>zt(_0x3e5a5f,this['_model']));if(this['_trackingSessionId']&&(_0x2e4b9b['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1a3765=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x53005c,'accept');return this['forceDefaultExecution'](()=>_0x1a3765(_0x2f60bc,_0x2c1549,_0x2e4b9b)),null;}_0x589e0d['push'](..._0x2f60bc);let _0x23c08d=!0x0;for(const _0x55f741 of _0x589e0d)if(!this['_rangeIsInLocalUserInsertion'](_0x55f741)){_0x23c08d=!0x1;break;}if(_0x23c08d&&'always'!==this['_trackFormatChanges']){const _0x50b490=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x53005c,'accept');return this['forceDefaultExecution'](()=>_0x50b490(_0x2f60bc,_0x2c1549,_0x2e4b9b)),null;}const _0x4f4a6e=this['editor']['plugins']['get']('Users')['me'];for(const _0x50890a of this['getSuggestions']()){const _0x3f0a40=_0x50890a['data'];if(_0x50890a['author']['id']!=_0x4f4a6e['id'])continue;if('formatBlock'!=_0x50890a['type']||_0x3f0a40['formatGroupId']!=_0x2c1549['formatGroupId'])continue;if(!Xt(_0x50890a,_0x2e4b9b))continue;const _0x320502=_0x50890a['subType']==_0x53005c;for(let _0x27f70d=0x0;_0x27f70d<_0x2f60bc['length'];_0x27f70d++){const _0x57f4be=_0x2f60bc[_0x27f70d];for(const _0x1c9b67 of _0x50890a['getMarkers']()){const _0x5ebd10=_0x1c9b67['getRange']();if(_0x57f4be['isEqual'](_0x5ebd10)){_0x320502?(_0x2f60bc['splice'](_0x27f70d,0x1),_0x27f70d--):_0x50890a['removeMarker'](_0x1c9b67['name']);break;}}}}if(0x0==_0x2f60bc['length'])return null;const _0x40f97d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x53005c,'join');for(const _0x7f0ce3 of this['getSuggestions']()){const _0x36039e=_0x7f0ce3['data'];if(_0x7f0ce3['author']['id']==_0x4f4a6e['id']&&('formatBlock'==_0x7f0ce3['type']&&_0x36039e['formatGroupId']==_0x2c1549['formatGroupId']&&_0x7f0ce3['subType']==_0x53005c&&Xt(_0x7f0ce3,_0x2e4b9b)&&(_0x40f97d(_0x7f0ce3['getRanges'](),_0x2f60bc)||_0x40f97d(_0x2f60bc,_0x7f0ce3['getRanges']())))){for(const _0x3460b7 of _0x2f60bc)_0x7f0ce3['addRange'](_0x3460b7);return _0x7f0ce3;}}const _0x106dd2=_0x5bc718(),_0x540d98=_0x4f4a6e['id'],_0x231866='formatBlock:'+_0x53005c,_0x25cfc4=this['_setSuggestionData']({'id':_0x106dd2,'type':_0x231866,'data':_0x2c1549,'createdAt':new Date(),'authorId':_0x540d98,'attributes':_0x2e4b9b});for(const _0x43c5ae of _0x2f60bc)this['_addSuggestionMarker'](_0x231866,_0x106dd2,_0x540d98,_0x43c5ae,T['getMultiRangeId']());return _0x25cfc4;}['markDeletion'](_0x59f242,_0x588d15=null,_0xb78fca={}){if(_0x59f242['isCollapsed'])return null;const _0x538b61=this['editor']['plugins']['get']('Users')['me'],_0x1e7527=new _0x3561c8(_0x59f242['start'],_0x59f242['end']);this['_trackingSessionId']&&(_0xb78fca['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x46c515,meta:_0x5c711e}of this['_findSuggestions'](_0x1e7527,'insertion'))if(_0x5c711e['isOwn']&&!_0x5c711e['isNextTo']){if(_0x46c515['isMultiRange']){const _0x14b02d=_0x46c515['getRanges']()['filter'](_0x2d5647=>'$graveyard'!=_0x2d5647['root']['rootName']);_0x14b02d['every'](_0x326f27=>_0x1e7527['containsRange'](_0x326f27,!0x0))&&_0x46c515['discard']();if(_0x14b02d['some'](_0x146163=>_0x146163['containsRange'](_0x1e7527,!0x0))){const _0x2bd981=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x588d15,'accept');return this['forceDefaultExecution'](()=>_0x2bd981([_0x1e7527],null,_0xb78fca)),null;}}else{const _0x54a02e=_0x1e7527['getIntersection'](_0x46c515['getFirstRange']());null!==_0x54a02e&&_0x46c515['_onDiscard']([_0x54a02e],null,_0xb78fca);}}if(_0x1e7527['detach'](),_0x1e7527['isCollapsed']||'$graveyard'==_0x1e7527['root']['rootName'])return null;let _0x1152e6=null,_0x51dd68=_0x1e7527['start'],_0x5b5b51=_0x1e7527['end'];const _0x2831e1=this['_findSuggestions'](_0x1e7527,'deletion');for(const {suggestion:_0xf2fb23,meta:_0x217f09}of _0x2831e1){const _0x10bc30=this['_model']['createRange'](_0x51dd68,_0x5b5b51);if(_0x217f09['isOwn']&&(this['_mergeNestedSuggestions']||!_0x217f09['containsRangeInObject']&&!_0x217f09['isInsideObject'])){if(_0xf2fb23['isMultiRange']){if(!Xt(_0xf2fb23,_0xb78fca))continue;let _0x228205=!0x0;for(const _0x138979 of _0xf2fb23['getRanges']()){if(_0x138979['containsRange'](_0x10bc30,!0x0))return _0xf2fb23;_0x10bc30['containsRange'](_0x138979)||(_0x228205=!0x1);}_0x228205&&_0xf2fb23['discard']();}else{const _0x315557=_0xf2fb23['getFirstRange']();if(_0x315557['containsRange'](_0x10bc30,!0x0))return _0xf2fb23;if(!Xt(_0xf2fb23,_0xb78fca)){_0x10bc30['containsRange'](_0x315557)?_0xf2fb23['removeMarkers']():_0x315557['containsPosition'](_0x51dd68)?_0x51dd68=_0x315557['end']:_0x315557['containsPosition'](_0x5b5b51)&&(_0x5b5b51=_0x315557['start']);continue;}_0x51dd68=_0x51dd68['isBefore'](_0x315557['start'])?_0x51dd68:_0x315557['start'],_0x5b5b51=_0x5b5b51['isAfter'](_0x315557['end'])?_0x5b5b51:_0x315557['end'],_0xb78fca=Object['assign']({},_0xf2fb23['attributes']),_0x1152e6?_0x315557['start']['isBefore'](_0x1152e6['getFirstRange']()['start'])?(_0x1152e6['removeMarkers'](),_0x1152e6=_0xf2fb23):_0xf2fb23['removeMarkers']():_0x1152e6=_0xf2fb23;}}}if(_0x1152e6)return this['_setSuggestionRange'](_0x1152e6,this['_model']['createRange'](_0x51dd68,_0x5b5b51)),_0x1152e6;{const _0x1b1e52=_0x5bc718(),_0x1addf1=this['_model']['createRange'](_0x51dd68,_0x5b5b51),_0x54e409=_0x538b61['id'],_0x1e6a35=_0x588d15?'deletion:'+_0x588d15:'deletion',_0x17e983=this['_setSuggestionData']({'id':_0x1b1e52,'type':_0x1e6a35,'createdAt':new Date(),'authorId':_0x54e409,'attributes':_0xb78fca});return this['_addSuggestionMarker'](_0x1e6a35,_0x1b1e52,_0x54e409,_0x1addf1),_0x17e983;}}['markMultiRangeDeletion'](_0x467f15,_0x440294='multi',_0x561e9e={}){const _0x3a15d1=this['editor']['plugins']['get']('Users')['me'],_0x2df505=_0x467f15['map'](_0x1335e3=>new _0x3561c8(_0x1335e3['start'],_0x1335e3['end'])),_0x5d7c90=new Set();this['_trackingSessionId']&&(_0x561e9e['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x56ab9c,meta:_0x2f03a3}of this['_findSuggestions'](_0x2df505,'insertion'))_0x2f03a3['isOwn']&&!_0x2f03a3['isNextTo']&&_0x5d7c90['add'](_0x56ab9c);for(const _0x15c011 of _0x5d7c90)if(_0x15c011['isMultiRange']){const _0x3bfe9a=_0x15c011['getRanges']();(!_0x15c011['attributes']||!_0x15c011['attributes']['skipNestingCheck'])&&(_0x3bfe9a['every'](_0x39146=>_0x2df505['some'](_0x4a717f=>_0x4a717f['containsRange'](_0x39146,!0x0)))&&_0x15c011['discard']());if(_0x2df505['every'](_0x11d2f7=>_0x3bfe9a['some'](_0x3aa27e=>_0x3aa27e['containsRange'](_0x11d2f7,!0x0)))){const _0x7ef18b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x440294,'accept');return this['forceDefaultExecution'](()=>_0x7ef18b(_0x467f15,null,_0x561e9e)),null;}}else{const _0xeff1b=_0x15c011['getFirstRange']();_0x2df505['some'](_0x30f719=>_0x30f719['containsRange'](_0xeff1b,!0x0))&&_0x15c011['discard']();if(_0x2df505['every'](_0x2edd60=>_0xeff1b['containsRange'](_0x2edd60,!0x0))){const _0x9b08db=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x440294,'accept');return this['forceDefaultExecution'](()=>_0x9b08db(_0x2df505,null,_0x561e9e)),null;}}const _0x3b52a3=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x440294,'join');let _0x5e5cb1=null;for(const _0x1b7786 of this['getSuggestions']())if(_0x1b7786['author']['id']==_0x3a15d1['id']&&_0x1b7786['isInContent']&&'deletion'==_0x1b7786['type']&&_0x1b7786['subType']==_0x440294&&Xt(_0x1b7786,_0x561e9e)&&(_0x3b52a3(_0x1b7786['getRanges'](),_0x2df505)||_0x3b52a3(_0x2df505,_0x1b7786['getRanges']()))){if(_0x5e5cb1){if(_0x1b7786['commentThread']&&_0x1b7786['commentThread']['length'])continue;for(const _0x385a0a of _0x1b7786['getRanges']())_0x5e5cb1['isIntersectingWithRange'](_0x385a0a)||_0x5e5cb1['addRange'](_0x385a0a);_0x1b7786['removeMarkers']();}else{_0x5e5cb1=_0x1b7786;for(const _0x5476a1 of _0x2df505)_0x1b7786['isIntersectingWithRange'](_0x5476a1)||_0x1b7786['addRange'](_0x5476a1);}}if(_0x5e5cb1)return _0x5e5cb1;_0x5d7c90['clear']();for(const {suggestion:_0x5da935,meta:_0x204418}of this['_findSuggestions'](_0x2df505,'deletion'))_0x204418['isOwn']&&(this['_mergeNestedSuggestions']||!_0x204418['containsRangeInObject']&&!_0x204418['isInsideObject'])&&Xt(_0x5da935,_0x561e9e)&&_0x5d7c90['add'](_0x5da935);for(const _0x1291d7 of _0x5d7c90){const _0x565ddf=_0x1291d7['getRanges']();if(!_0x561e9e||!_0x561e9e['skipNestingCheck']){if(_0x2df505['every'](_0x11752e=>_0x565ddf['some'](_0x2d39bf=>_0x2d39bf['containsRange'](_0x11752e,!0x0))))return _0x1291d7;}(!_0x1291d7['attributes']||!_0x1291d7['attributes']['skipNestingCheck'])&&(_0x565ddf['every'](_0x142901=>_0x2df505['some'](_0x28b45b=>_0x28b45b['containsRange'](_0x142901,!0x0)))&&_0x1291d7['discard']());}const _0x5398cd=_0x5bc718(),_0x331ce2=_0x3a15d1['id'],_0x3ec5e5='deletion:'+_0x440294,_0x42ea0d=this['_setSuggestionData']({'id':_0x5398cd,'type':_0x3ec5e5,'createdAt':new Date(),'authorId':_0x331ce2,'attributes':_0x561e9e});for(const _0x193b86 of _0x2df505)_0x193b86['detach'](),_0x193b86['isCollapsed']||'$graveyard'==_0x193b86['root']['rootName']||this['_addSuggestionMarker'](_0x3ec5e5,_0x5398cd,_0x331ce2,_0x193b86,T['getMultiRangeId']());return _0x42ea0d;}['markAttributeChange'](_0x35c7ca,_0x37a870,_0x441c27,_0x18ba84,_0x820be1){if(_0x35c7ca['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2a121a=this['editor']['plugins']['get']('Users')['me']['id'],_0xd8ac48=Array['from'](this['_suggestions']['values']())['filter'](_0x24f294=>'attribute'==_0x24f294['type']&&_0x24f294['data']['key']==_0x37a870&&_0x24f294['isIntersectingWithRange'](_0x35c7ca));if(this['_trackingSessionId']&&(_0x820be1['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x43f0f5=this['_findSuggestions'](_0x35c7ca,'insertion')['filter'](({meta:_0x2ae59c})=>_0x2ae59c['isOwn']&&!_0x2ae59c['isInsideObject']&&!_0x2ae59c['isNextTo'])['map'](({suggestion:_0x3ff8ec})=>_0x3ff8ec);_0xd8ac48['unshift'](..._0x43f0f5);}const _0x4d68d1=new Map([[_0x35c7ca,_0x441c27]]);for(const _0x15eb6e of _0xd8ac48){const _0x415c39='attribute'==_0x15eb6e['type']?_0x15eb6e['data']['oldValue']:void 0x0,_0x2fc7c8=_0x15eb6e['getFirstRange'](),_0x2652f8=Array['from'](_0x4d68d1['keys']())['find'](_0x4efed9=>_0x4efed9['isIntersecting'](_0x2fc7c8));if(!_0x2652f8)continue;const _0x35e4e2=_0x2652f8['getDifference'](_0x2fc7c8);this['_isBlockAttribute'](_0x37a870)&&'insertion'==_0x15eb6e['type']&&0x0!=_0x35e4e2['length']||(_0x4d68d1['delete'](_0x2652f8),_0x35e4e2['forEach'](_0x4d8acb=>{_0x4d68d1['set'](_0x4d8acb,_0x441c27);}),'insertion'!=_0x15eb6e['type']&&_0x415c39!=_0x18ba84&&_0x4d68d1['set'](_0x2652f8['getIntersection'](_0x2fc7c8),_0x415c39));}const _0x17b8a1=[];for(const [_0x204c44,_0x2a024d]of _0x4d68d1){const _0x8aa962=_0x5bc718(),_0x26aca9={'key':_0x37a870,'oldValue':_0x2a024d,'newValue':_0x18ba84};_0x37a870['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':_0x37a870});const _0x147d20=('attribute:'+(_0x37a870+'|'+Lt({'newValue':_0x18ba84})))['substring'](0x0,0x3c),_0x25fe0c=this['_setSuggestionData']({'id':_0x8aa962,'type':_0x147d20,'data':_0x26aca9,'createdAt':new Date(),'authorId':_0x2a121a,'attributes':_0x820be1});_0x17b8a1['push'](_0x25fe0c),this['_addSuggestionMarker'](_0x147d20,_0x8aa962,_0x2a121a,_0x204c44);}return _0x17b8a1;}['enableDefaultAttributesIntegration'](_0x17f9bb){this['enableCommand'](_0x17f9bb,(_0x721569,..._0x320a6c)=>{this['recordAttributeChanges'](()=>{_0x721569(..._0x320a6c);});});}['registerBlockAttribute'](_0x4490a0){this['_blockAttributeKeys']['add'](_0x4490a0);}['registerInlineAttribute'](_0x129a7c){this['_inlineAttributeKeys']['add'](_0x129a7c);}['startTrackingSession'](_0x3268b4){return this['_trackingSessionId']=void 0x0!==_0x3268b4?_0x3268b4:_0x5bc718(),this['_trackingSessionId'];}['_getAttributeKey'](_0x1f8e8b){return'attribute'==_0x1f8e8b['type']?_0x1f8e8b['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x45cf6a,_0x1f8102){const _0x5a0825=_0x45cf6a['getFirstMarker']();this['_model']['change'](_0x154725=>{_0x154725['updateMarker'](_0x5a0825,{'range':_0x1f8102});});}['_addThreadToSuggestion'](_0x1e7444){const _0x1126b3=_0x1e7444['id'],_0xf3a17c=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x1126b3)||this['_commentsRepository']['addCommentThread']({'channelId':_0xf3a17c,'threadId':_0x1126b3,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x15faa6=this['_commentsRepository']['getCommentThread'](_0x1126b3);_0x15faa6['unbind']('isRemovable'),_0x15faa6['isRemovable']=!0x1,_0x1e7444['commentThread']=_0x15faa6;}['_checkSuggestionCorrectness'](_0x43320d,_0x51bff4,_0x33113f,_0x3865e5){if(_0x43320d['type']!=_0x51bff4||_0x43320d['subType']!=_0x33113f||_0x43320d['creator']['id']!=_0x3865e5)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x24f8f4('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x389e15,_0x358bbd){const _0x225f71=_0x389e15['getFirstRange']();if(_0x358bbd['isEqual'](_0x225f71))_0x389e15['removeMarkers']();else{if(_0x225f71['containsRange'](_0x358bbd)){const _0x3f2672=this['_model']['createPositionAt'](_0x358bbd['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x389e15,this['_model']['createRange'](_0x225f71['start'],_0x3f2672));const _0xeebac=_0x5bc718(),_0x1b35dd=_0x389e15['creator']['id'],_0x1d36df=_0x389e15['type']+':'+_0x389e15['subType'];this['_setSuggestionData']({'id':_0xeebac,'type':_0x1d36df,'createdAt':new Date(),'authorId':_0x1b35dd,'data':_0x389e15['data'],'attributes':_0x389e15['attributes']});const _0x11be97=this['_model']['createPositionAt'](_0x358bbd['end']['parent'],'after'),_0x5099d9=this['_model']['createRange'](_0x11be97,_0x225f71['end']);this['_addSuggestionMarker'](_0x1d36df,_0xeebac,_0x1b35dd,_0x5099d9);}else{if(_0x225f71['containsPosition'](_0x358bbd['start'])){const _0x1e4f70=this['_model']['createPositionAt'](_0x358bbd['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x389e15,this['_model']['createRange'](_0x225f71['start'],_0x1e4f70));}else{const _0x3c84ee=this['_model']['createPositionAt'](_0x358bbd['end']['parent'],'after');this['_setSuggestionRange'](_0x389e15,this['_model']['createRange'](_0x3c84ee,_0x225f71['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x4a400a){for(const {suggestion:_0x6f7d36,meta:_0xed7634}of this['_findSuggestions'](_0x4a400a,'insertion')){if(!_0xed7634['isOwn'])continue;const _0x931a83=_0x6f7d36['getRanges']();for(const _0x363e85 of _0x931a83)if(!_0x4a400a['getDifference'](_0x363e85)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x167a34){return this['editor']['plugins']['get']('Users')['getUser'](_0x167a34);}['_getExternalAuthor'](_0x576bd0){const _0x352fe6=this['editor']['plugins']['get']('Users'),_0x95e716=_0x34df5a('external:'+_0x576bd0),_0x38fcc9=_0x352fe6['getUser'](_0x95e716);return _0x38fcc9||_0x352fe6['addUser']({'id':_0x95e716,'name':_0x576bd0});}['_createSuggestion'](_0x2bf79d,_0x404cf7,_0x1737cf,_0x403a98,_0x576876,_0x4633d5){const _0x412da8=this['_getAuthorFromId'](_0x403a98);if(!_0x412da8)throw new _0x24f8f4('track-changes-user-not-found',this,{'authorId':_0x403a98,'suggestionId':_0x1737cf});const _0x2634de=this['_suggestionFactory']['buildSuggestion'](_0x2bf79d,_0x404cf7,_0x1737cf,_0x412da8,_0x576876,_0x2b80cb=>{this['_updateSuggestionData'](_0x1737cf,{'attributes':_0x2b80cb});const _0x24caee=this['getSuggestion'](_0x1737cf);this['_joinWithAdjacentSuggestions'](new Set([_0x24caee])),this['_refreshSuggestionsChain'](new Set([_0x24caee]));},_0x4633d5);return this['listenTo'](_0x2634de,'accept',()=>{this['_updateSuggestionData'](_0x1737cf,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x2634de,'discard',()=>{this['_updateSuggestionData'](_0x1737cf,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x1737cf,_0x2634de),this['_suggestionState']['set'](_0x2634de,'notReady'),_0x2634de;}['_splitMarkerName'](_0x5c0717){const _0x128833=_0x5c0717['split'](':');return{'group':_0x128833[0x0],'type':_0x128833[0x1],'subType':_0x128833['length']>=0x5?_0x128833[0x2]:null,'id':_0x128833['length']<0x5?_0x128833[0x2]:_0x128833[0x3],'authorId':_0x128833['length']<0x5?_0x128833[0x3]:_0x128833[0x4],'markerCount':0x6==_0x128833['length']?_0x128833[0x5]:null};}['_breakSuggestionMarker'](_0x6624c6,_0x210b09,_0x3831ac){const _0x33c022=_0x6624c6['getFirstRange'](),_0x38d1a2=_0x33c022['start'],_0x593085=_0x33c022['end'];this['_setSuggestionRange'](_0x6624c6,this['_model']['createRange'](_0x38d1a2,_0x210b09));const _0x47aa9f=_0x5bc718(),_0x5421f7=_0x6624c6['creator']['id'],_0x26c822=_0x6624c6['type']+(_0x6624c6['subType']?':'+_0x6624c6['subType']:'');this['_setSuggestionData']({'id':_0x47aa9f,'type':_0x26c822,'createdAt':new Date(),'authorId':_0x5421f7,'originalSuggestionId':_0x6624c6['_originalSuggestionId']||_0x6624c6['id'],'attributes':_0x6624c6['attributes'],'data':_0x6624c6['data']});const _0x554a6d=this['_getAttributeKey'](_0x6624c6);('formatBlock'==_0x6624c6['type']||_0x554a6d&&this['_isBlockAttribute'](_0x554a6d))&&(_0x3831ac=this['_model']['createPositionBefore'](_0x3831ac['parent'])),this['_addSuggestionMarker'](_0x26c822,_0x47aa9f,_0x5421f7,this['_model']['createRange'](_0x3831ac,_0x593085));}['_findSuggestions'](_0x194366,_0x57890d=null){const _0x48481c=[],_0x2ea135=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x194366)||(_0x194366=[_0x194366]);for(const _0x3b07f7 of this['getSuggestions']()){if(!_0x3b07f7['isInContent'])continue;if(_0x57890d&&_0x3b07f7['type']!=_0x57890d)continue;let _0x2cb588=!0x1;for(const _0x3e9250 of _0x3b07f7['getRanges']()){for(const _0x5dda3e of _0x194366){const _0x59a727=_0x5dda3e['start']['isEqual'](_0x3e9250['end'])||_0x5dda3e['end']['isEqual'](_0x3e9250['start']);if(_0x59a727||_0x5dda3e['getIntersection'](_0x3e9250)){const _0x514278=_0x5dda3e['containsRange'](_0x3e9250)&&Ft(this['_model']['schema'],_0x3e9250['start'],_0x5dda3e),_0x38e853=_0x3e9250['containsRange'](_0x5dda3e)&&Ft(this['_model']['schema'],_0x5dda3e['start'],_0x3e9250);_0x48481c['push']({'suggestion':_0x3b07f7,'meta':{'isOwn':_0x2ea135==_0x3b07f7['author'],'isNextTo':_0x59a727,'isInsideObject':_0x514278,'containsRangeInObject':_0x38e853}}),_0x2cb588=!0x0;break;}}if(_0x2cb588)break;}}return _0x48481c;}['_addSuggestionMarker'](_0x29971a,_0x41fb41,_0x1ea2fa,_0x443d09,_0x1edf29){this['_model']['change'](_0x4ea8fd=>{let _0x2ba526='suggestion:'+_0x29971a+':'+_0x41fb41+':'+_0x1ea2fa;_0x1edf29&&(_0x2ba526=_0x2ba526+':'+_0x1edf29),_0x4ea8fd['addMarker'](_0x2ba526,{'range':_0x443d09,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x178420){const _0x5d0757=_0x178420['previous'],_0x4f5f62=_0x178420['next'];_0x178420['previous']=null,_0x178420['next']=null,null!=_0x5d0757&&_0x5d0757['next']==_0x178420&&(_0x5d0757['next']=_0x4f5f62),null!=_0x4f5f62&&_0x4f5f62['previous']==_0x178420&&(_0x4f5f62['previous']=_0x5d0757),'ready'==this['_suggestionState']['get'](_0x178420)&&(this['_suggestionState']['set'](_0x178420,'removed'),this['fire']('suggestionUnloaded',_0x178420,_0x5d0757,_0x4f5f62));}['_setSuggestionData'](_0x5ed9f9){const _0x34b641=_0x5ed9f9['id'],_0x4a7068=this['addSuggestionData'](_0x5ed9f9);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x599c98=this['editor']['plugins']['get']('PendingActions'),_0xab1ed9=_0x4a7068['hasComments'],_0x26c01a=_0x4a7068['subType']?_0x4a7068['type']+':'+_0x4a7068['subType']:_0x4a7068['type'],_0x26cc9e=this['editor']['locale'],_0x43658d=_0x599c98['add'](o(_0x26cc9e,'PENDING_ACTION_SUGGESTION')),_0x24b8a7={'id':_0x34b641,'type':_0x26c01a,'hasComments':_0xab1ed9,'data':_0x5ed9f9['data']||null,'originalSuggestionId':_0x5ed9f9['originalSuggestionId']||null,'attributes':_0x4a7068['attributes']};this['_adapter']['addSuggestion'](_0x24b8a7)['then'](_0x5c330a=>{_0x4a7068['_saved']=!0x0,_0x599c98['remove'](_0x43658d),_0x5c330a&&_0x5c330a['createdAt']&&(this['_suggestions']['get'](_0x34b641)['createdAt']=_0x5c330a['createdAt']);})['catch'](_0x396106=>{throw _0x1aa416('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x4a7068['discard']();}),_0x4a7068['stopListening'](),this['_suggestions']['delete'](_0x4a7068['id']),this['_suggestionState']['delete'](_0x4a7068),_0x396106;});}return _0x4a7068;}['_isBlockAttribute'](_0x391436){return this['_blockAttributeKeys']['has'](_0x391436);}['_isInlineAttribute'](_0x3536bf){return this['_inlineAttributeKeys']['has'](_0x3536bf);}['_updateSuggestionData'](_0x5d5c9b,_0x3a70d6){const _0x4ba2f8=this['editor']['plugins']['get']('PendingActions'),_0x3cbe4a=this['getSuggestion'](_0x5d5c9b);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x3cbe4a['_saved']){const _0x51fd74=_0x4ba2f8['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x5d5c9b,_0x3a70d6)['then'](()=>{_0x4ba2f8['remove'](_0x51fd74);});}else _0x3cbe4a['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x5d5c9b,_0x3a70d6);});}}['_getSuggestionData'](_0x2cb364){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x24f8f4('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x2cb364);}['_handleNewSuggestionMarker'](_0x2775f2){const {id:_0x11b89d,type:_0x166318,subType:_0x4c4184,authorId:_0x487a88}=this['_splitMarkerName'](_0x2775f2),_0x326cfa=this['_suggestions']['get'](_0x11b89d)||this['_createSuggestion'](_0x166318,_0x4c4184,_0x11b89d,_0x487a88,{});switch(this['_checkSuggestionCorrectness'](_0x326cfa,_0x166318,_0x4c4184,_0x487a88),this['_suggestionState']['get'](_0x326cfa)){case'notReady':this['_getSuggestionData'](_0x11b89d)['then'](_0xa84c50=>{let _0x317c57=Promise['resolve']();_0xa84c50['hasComments']&&(_0x317c57=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x11b89d})),_0x317c57['then'](()=>{this['addSuggestionData'](_0xa84c50)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x326cfa,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x11b89d,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x326cfa,'ready'),this['fire']('suggestionLoaded',_0x326cfa);break;case'ready':this['fire']('suggestionChanged',_0x326cfa);}return _0x326cfa['addMarkerName'](_0x2775f2),_0x326cfa;}['_refreshSuggestionsChain'](_0x342984){const _0x40eeee=Array['from'](_0x342984),_0x1f7561=_0x40eeee['filter'](_0x3e549d=>'attribute'==_0x3e549d['type']);this['_refreshAttributeSuggestionsChain'](_0x1f7561);const _0x227e73=_0x40eeee['filter'](_0x4a27b6=>!_0x4a27b6['isMultiRange']&&'attribute'!=_0x4a27b6['type']),_0x441a8e=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xe06e92=>!_0xe06e92['isMultiRange']&&'attribute'!=_0xe06e92['type']),_0x599e6b=_0x441a8e['filter'](_0x3600e4=>!_0x342984['has'](_0x3600e4)),_0x3217a1=new Map(_0x441a8e['map'](_0x3ea94a=>[_0x3ea94a,this['_suggestionFactory']['getSuggestionCallback'](_0x3ea94a['type'],_0x3ea94a['subType'],'chain')])),_0x48ce95=new Map(_0x441a8e['map'](_0x311ddc=>[_0x311ddc,_0x311ddc['getFirstRange']()])),_0x1c5caa=new Set(),_0x596f5e=new Set();for(let _0x500474=0x0;_0x500474<_0x227e73['length'];_0x500474++)_0x21cab4(_0x227e73[_0x500474],_0x227e73,_0x500474+0x1);for(let _0x179eca=0x0;_0x179eca<_0x227e73['length'];_0x179eca++)_0x21cab4(_0x227e73[_0x179eca],_0x599e6b,0x0);const _0x389ac2=new Set();for(let _0x5d0d78=0x0;_0x5d0d78<_0x227e73['length'];_0x5d0d78++){const _0xc53725=_0x227e73[_0x5d0d78];!_0x596f5e['has'](_0xc53725)&&_0xc53725['previous']&&(_0x389ac2['add'](_0xc53725['previous']),_0xc53725['previous']['next']===_0xc53725&&(_0xc53725['previous']['next']=null),_0xc53725['previous']=null),!_0x1c5caa['has'](_0xc53725)&&_0xc53725['next']&&(_0x389ac2['add'](_0xc53725['next']),_0xc53725['next']['previous']===_0xc53725&&(_0xc53725['next']['previous']=null),_0xc53725['next']=null);}function _0x21cab4(_0x4cba6b,_0x4d4cc2,_0x595964){for(let _0x2d0909=_0x595964;_0x2d0909<_0x4d4cc2['length'];_0x2d0909++){const _0x9f17d=_0x5289da(_0x4cba6b,_0x4d4cc2[_0x2d0909]);_0x9f17d&&(_0x9f17d[0x0]['next']=_0x9f17d[0x1],_0x9f17d[0x1]['previous']=_0x9f17d[0x0],_0x1c5caa['add'](_0x9f17d[0x0]),_0x596f5e['add'](_0x9f17d[0x1]));}}function _0x5289da(_0x4def90,_0x516070){if(_0x4def90['author']['id']!==_0x516070['author']['id'])return null;const _0x6d642f=_0x3217a1['get'](_0x4def90)(_0x4def90,_0x516070,_0x48ce95['get'](_0x4def90),_0x48ce95['get'](_0x516070));if(!_0x6d642f)return null;return _0x3217a1['get'](_0x516070)(_0x4def90,_0x516070,_0x48ce95['get'](_0x4def90),_0x48ce95['get'](_0x516070))?_0x6d642f[0x1]['commentThread']&&_0x6d642f[0x1]['commentThread']['length']?null:_0x6d642f:null;}_0x389ac2['size']&&this['_refreshSuggestionsChain'](_0x389ac2);}['_refreshAttributeSuggestionsChain'](_0x4dfaab){if(0x0==_0x4dfaab['length'])return;const _0x5d8516=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2e7681=>'attribute'==_0x2e7681['type']&&_0x2e7681['_isDataLoaded']),_0x546574=[],_0x5f5100=new Map();for(const _0xfd144f of _0x5d8516){const _0x4eb186=_0x34df5a(_0xfd144f['attributes']);_0x5f5100['has'](_0x4eb186)||(_0x5f5100['set'](_0x4eb186,_0x546574['length']),_0x546574['push']([]));const _0x532f89=_0x5f5100['get'](_0x4eb186);_0x546574[_0x532f89]['push'](_0xfd144f);}!(function(){_0x546574['sort']((_0xa351f2,_0x91a86c)=>{const _0x37c3fc=_0xa351f2[0x0]['createdAt'],_0x1c174b=_0x91a86c[0x0]['createdAt'];return _0x37c3fc==_0x1c174b?_0xa351f2[0x0]['attributes']['groupId']<_0x91a86c[0x0]['attributes']['groupId']?-0x1:0x1:_0x37c3fc<_0x1c174b?-0x1:0x1;});for(const _0x943c26 of _0x546574)_0x943c26['sort']((_0x511199,_0x116df6)=>_0x511199['id']<_0x116df6['id']?-0x1:0x1);}());for(let _0x4994a1=0x0;_0x4994a1<_0x546574['length'];_0x4994a1++){if(0x0==_0x546574[_0x4994a1]['length'])continue;const _0x3abe66=[];for(let _0x5f5c18=_0x4994a1+0x1;_0x5f5c18<_0x546574['length'];_0x5f5c18++)0x0!=_0x546574[_0x5f5c18]['length']&&_0x2315d9(_0x546574[_0x4994a1],_0x546574[_0x5f5c18])&&_0x3abe66['push'](_0x5f5c18);for(const _0x2908f6 of _0x3abe66)_0x546574[_0x4994a1]=_0x546574[_0x4994a1]['concat'](_0x546574[_0x2908f6]),_0x546574[_0x2908f6]=[];}for(const _0x4b3f71 of _0x546574)for(let _0x1691af=0x0;_0x1691af<_0x4b3f71['length'];_0x1691af++){const _0x47c92e=_0x4b3f71[_0x1691af+0x1]||null;_0x4b3f71[_0x1691af]['next']!==_0x47c92e&&(_0x4b3f71[_0x1691af]['next']=_0x47c92e);}for(const _0x5a9f03 of _0x546574)for(let _0x291ca0=0x0;_0x291ca0<_0x5a9f03['length'];_0x291ca0++){const _0x4bd792=_0x5a9f03[_0x291ca0-0x1]||null;_0x5a9f03[_0x291ca0]['previous']!==_0x4bd792&&(_0x5a9f03[_0x291ca0]['previous']=_0x4bd792);}function _0x2315d9(_0x50c1fa,_0xbdd5d7){if(_0x50c1fa[0x0]['attributes']['groupId']!==_0xbdd5d7[0x0]['attributes']['groupId']&&_0x50c1fa[0x0]['author']!==_0xbdd5d7[0x0]['author'])return!0x1;if(!function(_0x56673d,_0x44d38a){if(!_0x56673d['hasComments']&&!_0x44d38a['hasComments'])return!0x0;if(_0x56673d['hasComments']&&_0x44d38a['hasComments'])return!0x1;if(_0x56673d['hasComments']&&_0x44d38a['createdAt']<_0x56673d['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x44d38a['hasComments']&&_0x56673d['createdAt']<_0x44d38a['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x50c1fa[0x0],_0xbdd5d7[0x0]))return!0x1;const _0x23d775=Ut(_0x50c1fa[0x0]['attributes'],['groupId','trackingSessionId']),_0x3789e8=Ut(_0xbdd5d7[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x35d560(_0x23d775,_0x3789e8))return!0x1;if(_0x50c1fa[0x0]['attributes']['groupId']==_0xbdd5d7[0x0]['attributes']['groupId'])return!0x0;if(_0x50c1fa[0x0]['attributes']['trackingSessionId']!==_0xbdd5d7[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x50c1fa['every'](_0xd32af1=>_0xbdd5d7['some'](_0x38b30d=>_0xd32af1['getFirstRange']()['isEqual'](_0x38b30d['getFirstRange']())))&&_0xbdd5d7['every'](_0x8aba33=>_0x50c1fa['some'](_0x323665=>_0x8aba33['getFirstRange']()['isEqual'](_0x323665['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x18d71c){const _0x834231=Array['from'](_0x18d71c),_0x19e444=this['getSuggestions']({'skipNotAttached':!0x0}),_0x5a6bd6=_0x19e444['filter'](_0x34c75c=>!_0x18d71c['has'](_0x34c75c)),_0x373ffd=new Map(_0x834231['map'](_0x2fa781=>[_0x2fa781,this['_suggestionFactory']['getSuggestionCallback'](_0x2fa781['type'],_0x2fa781['subType'],'join')])),_0x3b51b6=new Map(_0x19e444['map'](_0x2e869c=>[_0x2e869c,_0x2e869c['getRanges']()]));for(let _0x281d75=0x0;_0x281d75<_0x834231['length'];_0x281d75++){if(_0x6974aa(this,_0x834231[_0x281d75],_0x834231,_0x281d75+0x1))return!0x0;}for(let _0x4f7ecc=0x0;_0x4f7ecc<_0x834231['length'];_0x4f7ecc++){if(_0x6974aa(this,_0x834231[_0x4f7ecc],_0x5a6bd6,0x0))return!0x0;}return!0x1;function _0x6974aa(_0x1b931e,_0x30f1e1,_0x405837,_0x2e3f36){for(let _0x15d916=_0x2e3f36;_0x15d916<_0x405837['length'];_0x15d916++){const _0x4ae58d=_0x405837[_0x15d916];if(_0x4ae58d['type']!==_0x30f1e1['type']||_0x4ae58d['author']['id']!==_0x30f1e1['author']['id']||_0x4ae58d['subType']!==_0x30f1e1['subType'])continue;if(!Qt(_0x30f1e1,_0x4ae58d))continue;if('attribute'==_0x30f1e1['type']&&_0x30f1e1['data']['oldValue']!=_0x4ae58d['data']['oldValue'])continue;if('attribute'==_0x30f1e1['type']&&_0x1b931e['_isBlockAttribute'](_0x30f1e1['data']['key']))continue;if('formatBlock'==_0x30f1e1['type']){const _0x479433=_0x1b931e['editor']['model'],_0xf62917=_0x30f1e1['getContainedElement']();if(_0xf62917&&(_0x479433['schema']['isObject'](_0xf62917)||_0x479433['schema']['isLimit'](_0xf62917)))continue;}const _0x41fbe6=_0x373ffd['get'](_0x30f1e1),_0x2c4a06=_0x3b51b6['get'](_0x30f1e1),_0x1c6c10=_0x3b51b6['get'](_0x4ae58d),_0x46c2ec=_0x30f1e1['commentThread']&&_0x30f1e1['commentThread']['length'],_0x22d305=_0x4ae58d['commentThread']&&_0x4ae58d['commentThread']['length'];if(!_0x46c2ec&&_0x41fbe6(_0x1c6c10,_0x2c4a06))return _0x1b931e['_joinSuggestions'](_0x4ae58d,_0x30f1e1),_0x3b51b6['delete'](_0x30f1e1),!0x0;if(!_0x22d305&&_0x41fbe6(_0x2c4a06,_0x1c6c10))return _0x1b931e['_joinSuggestions'](_0x30f1e1,_0x4ae58d),_0x3b51b6['delete'](_0x4ae58d),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5f23ac,_0x544217){if(_0x5f23ac['isMultiRange']){for(const _0x56b5fc of _0x544217['getRanges']())_0x5f23ac['addRange'](_0x56b5fc);}else{const _0x48a52d=_0x544217['getFirstRange']()['end'];this['_setSuggestionRange'](_0x5f23ac,this['_model']['createRange'](_0x5f23ac['getFirstRange']()['start'],_0x48a52d));}_0x544217['removeMarkers']();}['_getMarkerAnnouncementText'](_0x4a9d51,_0x20ee69,_0x1dd5c1){const _0x2edbdc=_0x4a9d51['startsWith']('format')||_0x4a9d51['startsWith']('attribute')?'FORMATTING':_0x4a9d51['toUpperCase']();return o(this['editor']['locale'],_0x20ee69+'_'+_0x2edbdc+'_SUGGESTION_ANNOUNCEMENT',_0x1dd5c1);}['_initAriaMarkerChangeAnnouncements'](){const _0x3af1de=this['editor'];if(!_0x3af1de['ui'])return;const {ariaLiveAnnouncer:_0x339f19}=_0x3af1de['ui'];_0x1e4108(this['_model'],({left:_0x27023c,entered:_0x44a992})=>{for(const _0x44b89d of _0x27023c){const {group:_0x528074,type:_0x34192d}=this['_splitMarkerName'](_0x44b89d['name']);if('suggestion'===_0x528074){_0x339f19['announce'](this['_getMarkerAnnouncementText'](_0x34192d,'LEAVE'));break;}}for(const _0x4997ad of _0x44a992){const {group:_0x1ef6ba,type:_0x5a7be7}=this['_splitMarkerName'](_0x4997ad['name']);if('suggestion'===_0x1ef6ba){_0x339f19['announce'](this['_getMarkerAnnouncementText'](_0x5a7be7,'ENTER',_0x3803b2(_0x38402f)));break;}}});}['_processAttributeChanges'](_0x55d505){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3dae5d=this['editor'],_0x1b70ec=_0x3dae5d['model']['document']['differ']['getChanges']();if(0x0==_0x1b70ec['length'])return!0x1;const _0xcef402=[],_0x44a85a=_0x1b70ec['filter'](_0x45a857=>'attribute'==_0x45a857['type']),_0x158a50=_0x1b70ec['filter'](_0x310657=>'insert'==_0x310657['type']&&'$text'!=_0x310657['name']),_0x2ab114=_0x1b70ec['filter'](_0x14e9e5=>'remove'==_0x14e9e5['type']&&'$text'!=_0x14e9e5['name']);for(const _0x28229d of _0x44a85a)_0xcef402['push']({'key':_0x28229d['attributeKey'],'newValue':_0x28229d['attributeNewValue'],'oldValue':_0x28229d['attributeOldValue'],'range':qt(_0x28229d['range'],_0x3dae5d['model'])});for(const _0x12a371 of _0x158a50){const _0x9c529d=_0x2ab114['find'](_0x278def=>_0x278def['position']['isEqual'](_0x12a371['position']));_0x9c529d&&_0xcef402['push']({'key':m,'newValue':_0x12a371['name'],'oldValue':_0x9c529d['name'],'range':_0x3dae5d['model']['createRangeOn'](_0x12a371['position']['nodeAfter'])});}return 0x0!=_0xcef402['length']&&this['_reduceExistingSuggestions'](_0x55d505,_0xcef402);}['_processAttributeSuggestions'](_0x21ca42){let _0x3ca87f=!0x1;const _0x3f1dde=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x32e654=>_0x32e654['data']['newRange']&&_0x32e654['name']['startsWith']('suggestion:attribute:'));for(const _0x53347b of _0x3f1dde){const {subType:_0x3fc542,id:_0x1ebbf0}=this['_splitMarkerName'](_0x53347b['name']),_0x2ceb49=_0x3fc542['split']('|')[0x0];for(const _0x3c556d of this['getSuggestions']({'skipNotAttached':!0x0}))_0x3c556d['id']!=_0x1ebbf0&&'attribute'==_0x3c556d['type']&&_0x3c556d['data']&&_0x3c556d['data']['key']==_0x2ceb49&&_0x3c556d['getFirstRange']()['isIntersecting'](_0x53347b['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x3c556d,_0x53347b['data']['newRange'],_0x21ca42),_0x3ca87f=!0x0);}return _0x3ca87f;}['recordAttributeChanges'](_0x28686b){this['_recordAttributeSuggestions']=!0x0,_0x28686b();}['_isRegisteredAttribute'](_0x1fea43){const _0x4c929f=this['_isBlockAttribute'](_0x1fea43),_0x24d5e6=this['_isInlineAttribute'](_0x1fea43);return _0x4c929f||_0x24d5e6;}['_reduceExistingSuggestions'](_0x56ec01,_0x2db897){if(0x0==_0x2db897['length'])return!0x1;let _0x30c170=!0x1;for(const _0x7e4918 of _0x2db897){const _0x17d4a3=this['_findSuggestions'](_0x7e4918['range'],'attribute')['filter'](_0x41dd69=>!_0x41dd69['meta']['isNextTo'])['map'](_0x54d5f1=>_0x54d5f1['suggestion']),_0x3627c9=_0x34df5a({'newValue':_0x7e4918['newValue']});_0x17d4a3['filter'](_0x28fb77=>{const [_0x13c83d,_0x35ab18]=_0x28fb77['subType']['split']('|');return _0x13c83d==_0x7e4918['key']&&_0x35ab18!=_0x3627c9;})['forEach'](_0x50c0ac=>{this['_reduceSuggestionAttributeRange'](_0x50c0ac,_0x7e4918['range'],_0x56ec01),_0x30c170=!0x0;});}return _0x30c170;}['_reduceSuggestionAttributeRange'](_0x57d95a,_0x406d3d,_0x5d4648){const _0x3f85ce=_0x57d95a['getFirstRange']()['getDifference'](_0x406d3d);0x0!==_0x3f85ce['length']?0x1!==_0x3f85ce['length']?this['_breakSuggestionMarker'](_0x57d95a,_0x406d3d['start'],_0x406d3d['end']):this['_setSuggestionRange'](_0x57d95a,_0x3f85ce[0x0]):_0x5d4648['removeMarker'](_0x57d95a['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x4475c2){this['_editor']=_0x4475c2,this['_model']=_0x4475c2['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x22d874,_0x4b3a53,_0x3a45c8,_0xb7476f,_0x5efd55,_0x214553,_0x3c39eb){return new T(this['_model'],{'type':_0x22d874,'subType':_0x4b3a53,'id':_0x3a45c8,'originalSuggestionId':_0x3c39eb,'author':_0xb7476f,'creator':_0xb7476f,'attributes':_0x5efd55,'onAttributesChange':_0x214553,'onAccept':(..._0x5d771e)=>this['getSuggestionCallback'](_0x22d874,_0x4b3a53,'accept')(..._0x5d771e),'onDiscard':(..._0x3cfed7)=>this['getSuggestionCallback'](_0x22d874,_0x4b3a53,'discard')(..._0x3cfed7)});}['registerCustomCallback'](_0x9cc26e,_0x40398e,_0x132b4f,_0x1e73f3){const _0x2699ba=_0x9cc26e+':'+_0x40398e+':'+_0x132b4f;this['_customCallbacks']['set'](_0x2699ba,_0x1e73f3);}['getSuggestionCallback'](_0x5bb672,_0x53c1c4,_0x3172a8){const _0xd5f529=_0x5bb672+':'+_0x53c1c4+':'+_0x3172a8;return this['_customCallbacks']['get'](_0xd5f529)||this['_defaultCallbacks']['get'](_0x5bb672+':'+_0x3172a8);}['_registerDefaultCallbacks'](){const _0x4a3d07=()=>!0x1,_0x107bf3=_0x440664=>{_0x440664['sort']((_0x26a071,_0x2bbd57)=>_0x26a071['start']['isBefore'](_0x2bbd57['start'])?0x1:-0x1),this['_model']['change'](_0x167aff=>{for(const _0x2f468b of _0x440664){let _0x43c508;_0x43c508=_0x2f468b['end']['isAtEnd']&&_0x2f468b['end']['parent']==_0x2f468b['start']['nodeAfter']?_0x167aff['createSelection'](_0x2f468b['start']['nodeAfter'],'on'):_0x167aff['createSelection'](_0x2f468b),this['_model']['deleteContent'](_0x43c508,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x5df3d7=(_0x50fcd7,_0x267549)=>{_0x267549&&this['_model']['change'](_0xa5ea1e=>{const {commandName:_0xe7f13e,commandParams:_0x2f61c9=[]}=_0x267549,_0x10127f=_0x50fcd7['map'](_0x445c28=>(Pt(_0x445c28)&&(_0x445c28=this['_model']['createRange'](_0x445c28['end'])),_0x445c28))['filter'](_0x1077b0=>'$graveyard'!==_0x1077b0['root']['rootName']);if(_0x10127f['length']<0x1)return;const _0x52bdbe=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x15e541=>_0x3561c8['fromRange'](_0x15e541));_0xa5ea1e['setSelection'](_0x10127f);for(const _0x57c691 of this['_editor']['commands']['commands']())_0x57c691['refresh']();_0x2f61c9['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0xe7f13e,..._0x2f61c9);const _0x511805=_0x52bdbe['filter'](_0x57af62=>'$graveyard'!=_0x57af62['root']['rootName']);_0x511805['length']>0x0&&_0xa5ea1e['setSelection'](_0x511805);for(const _0x1d6442 of _0x52bdbe)_0x1d6442['detach']();});},_0x52b366=(_0x4ec57e,_0xf4ee04)=>0x1==_0x4ec57e['length']&&0x1==_0xf4ee04['length']&&_0x4ec57e[0x0]['end']['isEqual'](_0xf4ee04[0x0]['start']),_0x5e3ef3=(_0x2cdeaf,_0x52b303,_0x31654f,_0x31f2b8)=>Wt(_0x2cdeaf,_0x52b303,_0x31654f,_0x31f2b8)?[_0x2cdeaf,_0x52b303]:Wt(_0x52b303,_0x2cdeaf,_0x31f2b8,_0x31654f)?[_0x52b303,_0x2cdeaf]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x4a3d07),this['_defaultCallbacks']['set']('insertion:discard',_0x107bf3),this['_defaultCallbacks']['set']('insertion:join',_0x52b366),this['_defaultCallbacks']['set']('insertion:chain',_0x5e3ef3),this['_defaultCallbacks']['set']('deletion:accept',_0x107bf3),this['_defaultCallbacks']['set']('deletion:discard',_0x4a3d07),this['_defaultCallbacks']['set']('deletion:join',_0x52b366),this['_defaultCallbacks']['set']('deletion:chain',_0x5e3ef3),this['_defaultCallbacks']['set']('formatInline:accept',_0x5df3d7),this['_defaultCallbacks']['set']('formatInline:discard',_0x4a3d07),this['_defaultCallbacks']['set']('formatInline:join',_0x52b366),this['_defaultCallbacks']['set']('formatInline:chain',_0x4a3d07),this['_defaultCallbacks']['set']('formatBlock:accept',_0x5df3d7),this['_defaultCallbacks']['set']('formatBlock:discard',_0x4a3d07),this['_defaultCallbacks']['set']('formatBlock:join',_0x52b366),this['_defaultCallbacks']['set']('formatBlock:chain',_0x4a3d07),this['_defaultCallbacks']['set']('attribute:accept',_0x4a3d07),this['_defaultCallbacks']['set']('attribute:discard',(_0x2eae3e,_0x413a4c)=>{if(!_0x413a4c)return;const _0x3bbed7=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x4a390d=>{if(_0x413a4c['key']==m)for(const _0x4ae844 of _0x2eae3e){const _0x3624c8=_0x4ae844['start']['nodeAfter'],_0x2d4f7a=_0x413a4c['oldValue'];_0x4a390d['rename'](_0x3624c8,_0x2d4f7a);}else{if(_0x3bbed7['_isBlockAttribute'](_0x413a4c['key'])){for(const _0x17c9e4 of _0x2eae3e)void 0x0!==_0x413a4c['oldValue']?_0x4a390d['setAttribute'](_0x413a4c['key'],_0x413a4c['oldValue'],_0x17c9e4['start']['nodeAfter']):_0x4a390d['removeAttribute'](_0x413a4c['key'],_0x17c9e4['start']['nodeAfter']);}else{for(const _0x37e5e2 of _0x2eae3e)_0x413a4c['oldValue']?_0x4a390d['setAttribute'](_0x413a4c['key'],_0x413a4c['oldValue'],_0x37e5e2):_0x4a390d['removeAttribute'](_0x413a4c['key'],_0x37e5e2);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x52b366);}}function Ft(_0x3eb678,_0x46caef,_0x55a11a){for(const _0x3f6ebc of _0x46caef['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3f6ebc['root']==_0x3f6ebc)return!0x1;if(!_0x55a11a['containsItem'](_0x3f6ebc))return!0x1;if(_0x3eb678['isObject'](_0x3f6ebc)||_0x3eb678['isLimit'](_0x3f6ebc))return!0x0;}return!0x1;}function Pt(_0x1bdf07){return _0x1bdf07['end']['parent']==_0x1bdf07['start']['nodeAfter']&&_0x1bdf07['end']['isAtStart'];}function Gt(_0x1f4291,_0x1761f1,_0xcac438,_0x192728){const _0xd4ee4b=_0x521e91=>!_0x521e91['item']['is']('$textProxy')&&!_0x192728['isObject'](_0x521e91['item']),_0x1e632b=_0x1f4291['start']['getLastMatchingPosition'](_0xd4ee4b),_0x15f1ef=_0x1f4291['end']['getLastMatchingPosition'](_0xd4ee4b,{'direction':'backward'});return(!_0x1f4291['start']['isEqual'](_0x1e632b)||!_0x1f4291['end']['isEqual'](_0x15f1ef))&&(_0x1e632b['isBefore'](_0x15f1ef)?_0xcac438['updateMarker'](_0x1761f1,{'range':_0xcac438['createRange'](_0x1e632b,_0x15f1ef)}):_0xcac438['removeMarker'](_0x1761f1),!0x0);}function Lt(_0x3d68b8){return _0x34df5a(_0x3d68b8);}function Jt(_0x56179b){const _0x39a1d4=_0x56179b['start']['nodeAfter'];return _0x39a1d4&&_0x39a1d4['is']('element');}function Kt(_0x30fa81){return Pt(_0x30fa81)||function(_0x34741a){return _0x34741a['start']['parent']==_0x34741a['end']['nodeBefore']&&_0x34741a['start']['isAtEnd'];}(_0x30fa81);}function Ht(_0x5e72a4,_0x4657b7){try{const _0x23e5db=_0x5e72a4['getRange']();for(const _0x14b08e of _0x4657b7)if(_0x5e72a4!==_0x14b08e&&_0x23e5db&&_0x23e5db['isIntersecting'](_0x14b08e['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function qt(_0x40455b,_0x10fbe9){return null==_0x40455b['end']['nodeBefore']&&_0x40455b['end']['parent']==_0x40455b['start']['nodeAfter']?zt(_0x40455b['start']['nodeAfter'],_0x10fbe9):_0x40455b;}function zt(_0x26a3bd,_0x5831de){const _0xa0eade=_0x5831de['schema']['isObject'](_0x26a3bd)||_0x5831de['schema']['isSelectable'](_0x26a3bd);return _0x5831de['createRange'](_0x5831de['createPositionAt'](_0x26a3bd,'before'),_0xa0eade?_0x5831de['createPositionAfter'](_0x26a3bd):_0x5831de['createPositionAt'](_0x26a3bd,'end'));}function Wt(_0x2e6921,_0x1d0f24,_0x1e3f07,_0x23aad9){return!!Qt(_0x2e6921,_0x1d0f24)&&_0x1e3f07['end']['isEqual'](_0x23aad9['start']);}function Qt(_0x57faf9,_0x6a0624){if(!_0x57faf9['_isDataLoaded']||!_0x6a0624['_isDataLoaded'])return!0x1;const _0x20d668=new Set(Object['keys'](_0x57faf9['attributes'])),_0x293693=new Set(Object['keys'](_0x6a0624['attributes']));if(_0x20d668['delete']('groupId'),_0x293693['delete']('groupId'),0x0==_0x20d668['size']&&0x0==_0x293693['size'])return!0x0;if(_0x20d668['size']!=_0x293693['size'])return!0x1;const _0x214e6d={..._0x57faf9['attributes']},_0x5d8deb={..._0x6a0624['attributes']};return delete _0x214e6d['groupId'],delete _0x5d8deb['groupId'],JSON['stringify'](_0x214e6d)==JSON['stringify'](_0x5d8deb);}function Xt(_0x3b6718,_0x1c2ea2){const _0x365987=Yt(_0x3b6718['attributes']),_0x1038c6=Yt(_0x1c2ea2);if(!_0x3b6718['_isDataLoaded'])return!0x1;for(const _0x1369ba of Object['keys'](_0x1038c6))if(!_0x35d560(_0x365987[_0x1369ba],_0x1038c6[_0x1369ba]))return!0x1;return!0x0;}function Yt(_0x1ec752){const _0x5f5d73=Object['assign']({},_0x1ec752);return delete _0x5f5d73['skipNestingCheck'],delete _0x5f5d73['tablePasteChainId'],_0x5f5d73;}class pe extends/* #__PURE__ -- @preserve */
26
+ _0xbda74a(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x402b9c,_0x563521,_0x25321e,_0x3e37e5){super(),this['model']=_0x563521,this['view']=_0x25321e,this['commentThreadController']=_0x3e37e5,this['_editor']=_0x402b9c,this['_acceptCommand']=_0x402b9c['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x402b9c['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x5aa60d,_0x3f3e7c)=>_0x5aa60d||_0x3f3e7c),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x36cb4e=>_0x36cb4e&&this['_editor']['model']['canEditAt'](_0x563521['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x5b648a=>_0x5b648a&&this['_editor']['model']['canEditAt'](_0x563521['getRanges']())),this['_pendingAction']=null,_0x25321e['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x25321e,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x25321e,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x25321e,'change:isDirty',()=>{_0x25321e['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 _0x526746=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x526746);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x45ee84{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x50a031,_0x136be1,_0x476940,_0x559dad){super(_0x50a031),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x4b9ac5(_0x50a031,o(_0x50a031,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x136be1['authoredAt']),this['bind']('authoredAt')['to'](_0x136be1),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',_0x136be1,'authoredAt',this,'descriptionParts',(_0x350630,_0x4a6b59,_0x180522)=>{const _0x5ed172=_0x180522['map'](_0xa8deb7=>ls(_0xa8deb7['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x350630-0x1,_0x136be1['author']['name'],_0x4a6b59?_0x559dad['formatDateTime'](_0x4a6b59):'',new DOMParser()['parseFromString'](_0x5ed172,'text/html')['body']['textContent']]);}),this['focusables']=new _0x101234(),this['focusTracker']=new _0x32124a(),this['keystrokes']=new _0x2821ab(),this['focusCycler']=new _0x1157e9({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x5075ba=>_0x5075ba['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x136be1,this['_localUser']=_0x476940,this['_config']=_0x559dad,_0x559dad['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x310efe(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x225be2}=this['_config'];this['commentsListView']=new _0x225be2(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',_0x3c47e2=>_0x3c47e2+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x363023,_0xee2c90)=>_0x363023||!!_0xee2c90);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0xf46dde}=this['_config'],_0x144fa4=new _0xf46dde(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x16a899=_0x144fa4['commentInputView'];return _0x144fa4['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x16a899,'value',(_0x177e36,_0xc1a210,_0x424f00)=>!!_0x424f00||_0x177e36&&!_0xc1a210),_0x16a899['on']('submit',(_0x3243b6,_0x17cb7e)=>{this['fire']('addComment',_0x17cb7e),_0x16a899['editor']['setData']('');}),_0x16a899['on']('cancel',()=>this['focus']()),_0x16a899['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x144fa4;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x1c8d00,_0x4b5ca0,_0x179660,_0x3b55b1){super(_0x1c8d00,_0x4b5ca0,_0x179660,_0x3b55b1),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x2f4259=>_0x2f4259&&_0x2f4259[0x0]?_0x2f4259[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x47445c,_0x57abaf)=>{let _0x55ce5a='';for(const _0xfcd136 of _0x47445c)_0x55ce5a+='<p>'+ls(_0xfcd136['content'],_0xfcd136['color'])+'</p>';return _0x57abaf?_0x55ce5a:_0x420cce(_0x55ce5a,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x3b55b1['SuggestionView'](_0x1c8d00,_0x4b5ca0,{'formatDateTime':_0x3b55b1['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 _0x31ba56=this['bindTemplate'],_0x4d3b80=[this['suggestionView']];return this['commentsListView']&&_0x4d3b80['push'](this['commentsListView']),this['commentThreadInputView']&&_0x4d3b80['push'](this['commentThreadInputView']),_0x4d3b80['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x31ba56['if']('isActive','ck-suggestion-wrapper--active'),_0x31ba56['to']('type',_0x17e21f=>'ck-suggestion-'+_0x17e21f),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':_0x31ba56['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x4d3b80};}['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 _0x45ee84{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x435ae0,_0x295439,_0x3a0c78){super(_0x435ae0),this['_model']=_0x295439,this['_config']=_0x3a0c78,this['set']('description',''),this['bind']('authoredAt')['to'](_0x295439),this['acceptButton']=this['_createButton'](o(_0x435ae0,'Accept\x20suggestion'),_0x52309a,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x435ae0,'Discard\x20suggestion'),_0xac3f1f,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0xed21e2(_0x435ae0,_0x295439['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x101234([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x32124a(),this['keystrokes']=new _0x2821ab(),this['focusCycler']=new _0x1157e9({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x285da7=>_0x285da7['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x1045e2=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x1045e2['innerHTML']=this['description'],this['on']('change:description',(_0x282344,_0x147177,_0x5decf1)=>{_0x1045e2['innerHTML']=_0x5decf1;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x2afd97=this['bindTemplate'],_0x237265=[{'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':_0x2afd97['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2afd97['to']('authoredAt',_0x554ffc=>this['_config']['formatDateTime'](_0x554ffc))}]}]},{'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']&&_0x237265['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':_0x237265}]};}['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'](_0x8bfea2,_0x2cb3e0,_0x1918cf,_0x49dc22,_0x2a0ee3){const _0x4de0b6=new _0x19678b(this['locale']);return _0x4de0b6['set']({'label':_0x8bfea2,'icon':_0x2cb3e0,'tooltip':!0x0,'tooltipPosition':_0x2a0ee3}),_0x4de0b6['extendTemplate']({'attributes':{'class':_0x1918cf}}),_0x4de0b6['on']('execute',()=>{this['fire'](_0x49dc22,this['_model']['id']);}),_0x4de0b6;}['_setupKeyboardNavigation'](){const _0x12da55=this['element'];this['keystrokes']['listenTo'](_0x12da55);for(const _0x56a915 of this['focusables'])this['focusTracker']['add'](_0x56a915['element']),this['keystrokes']['listenTo'](_0x56a915['element']);this['keystrokes']['set']('enter',(_0x841ae5,_0x18f311)=>{_0x12da55===_0x841ae5['target']&&(this['focusCycler']['focusFirst'](),_0x18f311());}),this['keystrokes']['set']('esc',(_0x5b0063,_0x453715)=>{_0x12da55!==_0x5b0063['target']&&(this['focus'](),_0x453715());});}}class u extends _0x27a926{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x3c175c,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5c2093){super(_0x5c2093),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x24c4d3=this['editor']['config'];_0x24c4d3['define']('trackChanges.SuggestionThreadView',fe),_0x24c4d3['define']('trackChanges.SuggestionView',we),_0x24c4d3['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x24c4d3['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x3d9568,_0x4b1b87){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x35c3a5,_0x578fb5]of this['_handleControllerBuffer']){const _0x5b9da5=this['_suggestionToController']['has'](_0x35c3a5);_0x5b9da5||_0x578fb5?_0x5b9da5&&_0x578fb5&&this['_destroyController'](_0x35c3a5):this['_initializeController'](_0x35c3a5);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x3d9568,_0x4b1b87);}['init'](){const _0x48ad44=this['editor'],_0xc2375b=_0x48ad44['plugins']['get']('TrackChangesEditing'),_0x56bbb3=_0x48ad44['plugins']['get']('Annotations'),_0x245be4=_0x48ad44['plugins']['get']('EditorAnnotations'),_0x31ff8f=_0x48ad44['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x245be4['addSourceCollector'](()=>{const _0x5d8cdb=[];for(const [_0x1efbb6,_0x2ac9e7]of Array['from'](this['_suggestionToController'])){const _0x51ba91=_0x1efbb6['getAllAdjacentSuggestions'](),_0x326266=[];for(const _0x116768 of _0x51ba91){if(!_0x116768['isInContent'])continue;if(_0x116768['isMultiRange']){_0x326266['push'](..._0x116768['getRanges']());continue;}const _0x19315c=_0x116768['getFirstRange']();if(_0x326266['length']>0x0){const _0xcb45ff=_0x326266[0x0]['getJoined'](_0x19315c);if(_0xcb45ff){_0x326266[0x0]=_0xcb45ff;continue;}}_0x326266['push'](_0x19315c);}_0x5d8cdb['push']([_0x2ac9e7['view'],_0x326266]);}return _0x5d8cdb;}),this['listenTo'](_0xc2375b,'suggestionLoaded',(_0x36ed31,_0x3e77f1)=>{this['listenTo'](_0x3e77f1,'change:previous',(_0x28eaa2,_0x45612e,_0x217bd1,_0x5906eb)=>{_0x3e77f1['isInContent']&&(null==_0x217bd1?(this['_updateController'](_0x5906eb['head']),this['_handleSuggestionControllerDelayed'](_0x3e77f1,!0x1)):(this['_updateController'](_0x217bd1['head']),null==_0x5906eb&&this['_handleSuggestionControllerDelayed'](_0x3e77f1,!0x0)));}),null!==_0x3e77f1['previous']?this['_updateController'](_0x3e77f1['head']):this['_handleSuggestionControllerDelayed'](_0x3e77f1,!0x1);}),this['listenTo'](_0xc2375b,'suggestionUnloaded',(_0x1f4b73,_0x23b3b8,_0x26465d)=>{this['stopListening'](_0x23b3b8,'change:previous'),this['_handleControllerBuffer']['delete'](_0x23b3b8),this['_suggestionToController']['has'](_0x23b3b8)&&this['_destroyController'](_0x23b3b8),_0x26465d&&this['_updateController'](_0x26465d['head']);}),this['listenTo'](_0xc2375b,'suggestionChanged',(_0x14067b,_0x2d9d04)=>{this['_updateController'](_0x2d9d04);}),this['listenTo'](_0x56bbb3,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x31ff8f,'addComment',(_0x1ddb00,{threadId:_0x4c9d91,isFromAdapter:_0x6dc2dd})=>{if(_0x6dc2dd||!_0xc2375b['hasSuggestion'](_0x4c9d91))return;const _0x23ba59=_0xc2375b['getSuggestion'](_0x4c9d91);this['_suggestionToController']['get'](_0x23ba59)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x180f3e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2fce0f;for(const _0x4a1b9c in _0x180f3e){const _0x45e30c=_0x4a1b9c,_0x1dddb2=_0x180f3e[_0x45e30c];if('trackChangesLicenseKeyValid'==_0x1dddb2||'trackChangesLicenseKeyInvalid'==_0x1dddb2||'trackChangesLicenseKeyExpired'==_0x1dddb2||'trackChangesLicenseKeyDomainLimit'==_0x1dddb2||'trackChangesLicenseKeyNotAllowed'==_0x1dddb2||'trackChangesLicenseKeyEvaluationLimit'==_0x1dddb2||'trackChangesLicenseKeyTrialLimit'==_0x1dddb2||'trackChangesLicenseKeyUsageLimit'==_0x1dddb2){delete _0x180f3e[_0x45e30c],_0x2fce0f=_0x1dddb2,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x2fce0f&&_0x180f3e['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x2fce0f&&_0x180f3e['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x2fce0f&&_0x180f3e['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x2fce0f&&_0x180f3e['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x2fce0f&&_0x180f3e['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x2fce0f&&_0x180f3e['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x2fce0f&&_0x180f3e['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x5b2a31){const _0x32092e=this['_suggestionToController']['get'](_0x5b2a31);if(!_0x32092e)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x32092e['view'])||null;}['getSuggestionForAnnotation'](_0x5ed0c5){const _0x54a592=this['_viewToController']['get'](_0x5ed0c5['innerView']);return _0x54a592?_0x54a592['model']:null;}['_refreshActiveMarkers'](){const _0x1fa1d6=this['editor']['plugins']['get']('Annotations'),_0x1b72aa=this['editor']['plugins']['get']('TrackChangesEditing'),_0xbb06cb=Array['from'](_0x1fa1d6['activeAnnotations'],_0x53b37b=>_0x53b37b['innerView'])['filter'](_0x3cfe6e=>this['_viewToController']['has'](_0x3cfe6e)),_0xd7cd9b=[];for(const _0x30c16e of _0xbb06cb){const _0x37b0be=this['_viewToController']['get'](_0x30c16e)['model']['getAllAdjacentSuggestions']();_0xd7cd9b['push'](..._0x37b0be['reduce']((_0x15c3b5,_0x55b43b)=>[..._0x15c3b5,..._0x55b43b['getMarkerNames']()],[]));}_0x1b72aa['activeMarkers']=_0xd7cd9b;}['_addUIComponentsToFactory'](){const _0x438a06=this['editor'],_0x2f5f84=_0x438a06['locale'],_0xe42a46=o(_0x2f5f84,'Track\x20changes'),_0x4c4bb5=new _0x3e004f([{'type':'switchbutton','model':new _0x1fe74b({'withText':!0x0,'isToggleable':!0x0,'label':_0xe42a46,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x1fe74b({'withText':!0x0,'label':o(_0x2f5f84,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1fe74b({'withText':!0x0,'label':o(_0x2f5f84,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1fe74b({'withText':!0x0,'label':o(_0x2f5f84,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1fe74b({'withText':!0x0,'label':o(_0x2f5f84,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x438a06['plugins']['has']('TrackChangesPreview')&&_0x4c4bb5['addMany']([{'type':'separator'},{'type':'button','model':new _0x1fe74b({'withText':!0x0,'label':o(_0x2f5f84,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x25eb1d of _0x4c4bb5)if(ke(_0x25eb1d)){const _0x44bd00=_0x438a06['commands']['get'](_0x25eb1d['model']['commandName']);_0x25eb1d['model']['bind']('isOn','isEnabled')['to'](_0x44bd00,'value','isEnabled');}_0x438a06['ui']['componentFactory']['add']('trackChanges',_0x8d004c=>this['_createToolbarButton'](_0x8d004c,_0x4c4bb5,_0xe42a46)),_0x438a06['ui']['componentFactory']['add']('menuBar:trackChanges',_0x43725e=>this['_createMenuBarMenu'](_0x43725e,_0x4c4bb5,_0xe42a46));}['_createToolbarButton'](_0x2336f8,_0x286535,_0x4322ea){const _0x242a82=_0x317c8f(_0x2336f8,_0x5b6149),_0x5077e9=this['editor']['commands']['get']('trackChanges');_0x242a82['buttonView']['set']({'tooltip':_0x4322ea,'label':_0x4322ea,'icon':_0x3892fc}),_0x242a82['buttonView']['bind']('isOn')['to'](_0x5077e9,'value'),_0x242a82['buttonView']['on']('execute',()=>{_0x5077e9['execute'](),this['editor']['editing']['view']['focus']();}),_0x2aba32(_0x242a82,_0x286535,{'role':'menu'});const _0x630ca1=[];for(const _0x2f8f5d of _0x286535)ke(_0x2f8f5d)&&_0x630ca1['push'](this['editor']['commands']['get'](_0x2f8f5d['model']['commandName']));const _0xb5c8a0=_0x242a82['buttonView'];return _0xb5c8a0['actionView']['unbind']('isEnabled'),_0xb5c8a0['arrowView']['unbind']('isEnabled'),_0xb5c8a0['actionView']['bind']('isEnabled')['to'](_0x5077e9,'isEnabled'),_0xb5c8a0['arrowView']['bind']('isEnabled')['toMany'](_0x630ca1,'isEnabled',(..._0x56e9d1)=>_0x56e9d1['some'](_0x164ef3=>_0x164ef3)),_0x242a82['on']('execute',_0x13298f=>{this['editor']['execute'](_0x13298f['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x242a82;}['_createMenuBarMenu'](_0x3e0092,_0x4cd420,_0x3691a9){const _0x635b7e=new _0xb26ca6(_0x3e0092),_0x570715=this['editor']['commands']['get']('trackChanges');_0x635b7e['buttonView']['set']({'label':_0x3691a9,'icon':_0x3892fc});const _0x2467ea=new _0x39e173(_0x3e0092);for(const _0x1bacef of _0x4cd420){if('separator'==_0x1bacef['type']){_0x2467ea['items']['add'](new _0x5af892(_0x3e0092));continue;}const _0x18c39f=new _0x3e5c33(_0x3e0092,_0x635b7e),_0x329a2a=new _0x272d38(_0x3e0092),_0x28c185=_0x1bacef['model'];_0x329a2a['bind'](...Object['keys'](_0x28c185))['to'](_0x28c185),_0x329a2a['delegate']('execute')['to'](_0x635b7e),_0x329a2a['on']('execute',()=>{this['editor']['execute'](_0x28c185['commandName']),this['editor']['editing']['view']['focus']();}),_0x18c39f['children']['add'](_0x329a2a),_0x2467ea['items']['add'](_0x18c39f);}return _0x635b7e['bind']('isEnabled')['to'](_0x570715,'isEnabled'),_0x635b7e['panelView']['children']['add'](_0x2467ea),_0x635b7e;}['_initializeController'](_0x2bb832){const _0x447c84=this['editor'],_0xe0a350=_0x447c84['config'],_0x14ee8c=_0x447c84['plugins']['get']('Annotations'),_0x433b9c=_0x447c84['plugins']['get']('CommentsRepository'),_0x36f0a0=_0x447c84['plugins']['get']('EditorAnnotations'),_0x104068=_0x447c84['plugins']['get'](_0x3c175c)['me'],_0x2bec36=_0xe0a350['get']('trackChanges')['SuggestionThreadView'],_0x21a973=_0xe0a350['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x55daf1,CommentThreadInputView:_0x229ded}=_0x447c84['plugins']['get']('CommentsUI');let _0x456646,_0x50b5fc,_0x9e2993;this['_annotationViews']['has'](_0x2bb832['id'])?(_0x50b5fc=this['_annotationViews']['get'](_0x2bb832['id']),_0x456646=_0x50b5fc['mainView']):(_0x456646=new _0x2bec36(_0x447c84['locale'],_0x2bb832,_0x104068,{'disableComments':this['_disableComments'],'editorConfig':{..._0xe0a350['get']('comments.editorConfig'),'licenseKey':_0xe0a350['get']('licenseKey')},'maxCommentsWhenCollapsed':_0xe0a350['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0xe0a350['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0xe0a350['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3170bc(_0xe0a350['get']('locale'),_0x447c84['locale']),'CommentView':_0xe0a350['get']('comments')['CommentView'],'CommentsListView':_0x55daf1,'CommentThreadInputView':_0x229ded,'SuggestionView':_0x21a973}),_0x456646['suggestionView']['acceptButton']['on']('execute',()=>{_0x447c84['editing']['view']['focus']();}),_0x456646['suggestionView']['discardButton']['on']('execute',()=>{_0x447c84['editing']['view']['focus']();}),_0x50b5fc=_0x14ee8c['createAnnotationView'](this['editor']['locale'],_0x456646),_0x50b5fc['bind']('isDirty')['to'](_0x456646,'isDirty'),_0x50b5fc['bind']('length')['to'](_0x456646),_0x50b5fc['bind']('type')['to'](_0x456646,'type',_0x35c7ef=>'suggestion-'+_0x35c7ef),_0x456646['on']('escape',()=>{_0x9e2993['fire']('escape');}),this['_annotationViews']['set'](_0x2bb832['id'],_0x50b5fc));const _0x5b8dfd=_0x433b9c['createCommentThreadController'](_0x2bb832['commentThread'],_0x456646),_0x12e8cf=new pe(_0x447c84,_0x2bb832,_0x456646,_0x5b8dfd),_0x474999=_0x2bb832['getAllAdjacentSuggestions']()['filter'](_0x4d79d4=>_0x4d79d4['isInContent']);_0x456646['descriptionParts']=_0x447c84['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x474999),this['_suggestionToController']['set'](_0x2bb832,_0x12e8cf),this['_viewToController']['set'](_0x456646,_0x12e8cf);const _0x2abc6e=()=>{const _0x5065ba=[],_0x3ec0f4=_0x2bb832['getAllAdjacentSuggestions']()['filter'](_0x2dfa7a=>_0x2dfa7a['isInContent']);for(const _0x1d8b1d of _0x3ec0f4)_0x5065ba['push'](..._0x1d8b1d['getMarkers']());return _0x1e68c0(_0x447c84['editing'],_0x5065ba);};_0x9e2993=_0x14ee8c['createAnnotation']({'view':_0x50b5fc,'target':_0x2abc6e,'type':()=>'suggestion-'+_0x12e8cf['view']['type'],'isVisible':!!_0x2abc6e()}),_0x433b9c['_bindAnnotationToEditors'](_0x456646,_0x9e2993),_0x14ee8c['add'](_0x9e2993),_0x36f0a0['registerAnnotation'](_0x9e2993);}['_destroyController'](_0x2e4a30){const _0x597aa8=this['editor']['plugins']['get']('CommentsRepository'),_0x3fb104=this['editor']['plugins']['get']('Annotations'),_0x427fec=this['_suggestionToController']['get'](_0x2e4a30),_0x40111f=_0x427fec['view'],_0x52b9ed=_0x3fb104['getByInnerView'](_0x40111f);_0x597aa8['_unbindEditors'](_0x40111f),_0x52b9ed&&_0x3fb104['remove'](_0x52b9ed),this['_suggestionToController']['delete'](_0x2e4a30),this['_viewToController']['delete'](_0x40111f),_0x427fec['destroy']();}['_updateController'](_0x1d683f){if(!_0x1d683f['isInContent']||!this['_suggestionToController']['has'](_0x1d683f))return;const _0x5388a5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x39c1af=this['_suggestionToController']['get'](_0x1d683f),_0xecf39c=_0x1d683f['getAllAdjacentSuggestions']();_0x39c1af['view']['descriptionParts']=_0x5388a5['descriptionFactory']['getDescriptions'](_0xecf39c);}['destroy'](){for(const _0x301802 of this['_suggestionToController']['keys']())this['_destroyController'](_0x301802);for(const _0x2a0f72 of this['_annotationViews']['values']())_0x2a0f72['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x502885){return'model'in _0x502885;}class Fe extends _0x27a926{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x50cacd){this['editor']['plugins']['get'](d)['adapter']=_0x50cacd;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x348556){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x348556);}['getSuggestions']({skipNotAttached:_0x3fb756=!0x1,toJSON:_0x3e5a39=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x3fb756,'toJSON':_0x3e5a39});}['getSuggestion'](_0x3fc21c){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x3fc21c);}}const p=['Pagination'];class re extends _0x27a926{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x55a19b=this['editor'];if(_0x55a19b['config']['define']('trackChangesData.editorCreator',_0x275c04=>{const _0x2ffbe6=_0x55a19b['model']['document']['getRootNames']()['reduce']((_0x5a224f,_0x3ae160)=>(_0x5a224f[_0x3ae160]='',_0x5a224f),{});return _0x55a19b['constructor']['create'](_0x2ffbe6,_0x275c04);}),'function'!=typeof _0x55a19b['config']['get']('trackChangesData')['editorCreator'])throw new _0x24f8f4('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x1f9331){return P(this['editor'],!0x0,_0x1f9331);}['getDataWithDiscardedSuggestions'](_0x11fd0a){return P(this['editor'],!0x1,_0x11fd0a);}}class Ge extends _0x27a926{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xc4dbca){function _0x27595e(_0xf882ce){return _0xf882ce['map'](_0x23f84e=>String['fromCharCode'](_0x23f84e))['join']('');}super(_0xc4dbca),this['result']='end',_0xc4dbca[_0x27595e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x27595e([0x76,0x69,0x65,0x77])][_0x27595e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x27595e([0x61,0x75,0x74,0x6f]),_0xc4dbca[_0x27595e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x27595e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x27595e([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x27595e([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x27595e([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(_0x5b7666){return void 0x0!==_0x5b7666['getRootsAttributes'];}async function P(_0x2093dd,_0x1e9c7d,_0x503324){const _0x44448f=_0x253e0a(_0x2093dd,p);_0x44448f['plugins']['push'](d,Ge),_0x44448f['rootsAttributes']=He(_0x2093dd)?_0x2093dd['getRootsAttributes']():void 0x0;const _0x29f904=document['createDocumentFragment'](),_0x10201d=_0x2093dd['config']['get']('trackChangesData')['editorCreator'],_0x24d8ff=await _0x10201d(_0x44448f,()=>function(_0x11ff8b){const _0x961ac9=document['createElement']('div');return _0x11ff8b['appendChild'](_0x961ac9),_0x961ac9;}(_0x29f904));!function(_0x2add6e,_0x307dab){const _0x59e908=_0x2add6e['model']['document']['getRootNames']()['reduce']((_0x47572a,_0x5360dd)=>(_0x47572a[_0x5360dd]=_0x2add6e['data']['get']({'rootName':_0x5360dd}),_0x47572a),{}),_0x27c5c9=_0x2add6e['plugins']['get']('Users')['users']['map'](_0x34acfa=>({'id':_0x34acfa['id'],'name':_0x34acfa['name']})),_0xf0d6ae=_0x2add6e['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5367cb=_0x2add6e['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2c33c7=_0x307dab['plugins']['get']('Users'),_0x17b8af=_0x307dab['plugins']['get']('TrackChangesEditing'),_0xc31319=_0x307dab['plugins']['get']('CommentsRepository');for(const _0x5b21ec of _0xc31319['getCommentThreads']())_0x5b21ec['remove']();for(const _0x4d9327 of _0x27c5c9)_0x2c33c7['getUser'](_0x4d9327['id'])||_0x2c33c7['addUser'](_0x4d9327);_0x2c33c7['me']||_0x2c33c7['useAnonymousUser']();for(const _0x541461 of _0x5367cb)_0xc31319['addCommentThread'](_0x541461);for(const _0x31e513 of _0xf0d6ae)_0x17b8af['addSuggestionData'](_0x31e513);_0x307dab['data']['set'](_0x59e908);}(_0x2093dd,_0x24d8ff),_0x24d8ff['execute'](_0x1e9c7d?'acceptAllSuggestions':'discardAllSuggestions');const _0x1e5e3a=He(_0x24d8ff)?_0x24d8ff['getFullData'](_0x503324):_0x24d8ff['data']['get'](_0x503324);return await _0x24d8ff['destroy'](),_0x1e5e3a;}class Me extends _0x45ee84{['options'];constructor(_0x395767,_0x533174){super(_0x395767),this['options']=_0x533174,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'](_0x5850ff,_0x235310){if(!this['element'])return;const _0x567c58=[];for(const [_0x7e453a,_0xdf7446]of _0x5850ff){const _0x3324db=document['createElement']('div');_0x3324db['setAttribute']('data-ck-root-name',_0x7e453a),_0x3324db['className']=_0xdf7446['classes']+'\x20ck-track-changes-preview__root-container',_0x3324db['innerHTML']=_0xdf7446['content'],_0x567c58['push'](_0x3324db);}_0x235310(this['element'],_0x567c58),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x58174f{constructor(_0x1fee24){super(_0x1fee24),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x1ac6b1=this['editor'],_0x777f09=_0x1ac6b1['locale'],_0xd7b69a=_0x1ac6b1['plugins']['get']('Dialog');let _0xd57734;const _0x23790c=function(_0x546188){const _0x936227={};if('editables'in _0x546188['ui']['view']){for(const [_0x2ed9b1,_0x31a813]of Object['entries'](_0x546188['ui']['view']['editables']))_0x936227[_0x2ed9b1]=_0x31a813['element'];}else _0x936227[_0x546188['model']['document']['getRootNames']()[0x0]]=_0x546188['ui']['view']['editable']['element'];return _0x936227;}(_0x1ac6b1),_0x2a442=function(_0x1ddc5d){let _0x3a6fd4=0x0;for(const _0x48b974 of Object['values'](_0x1ddc5d))_0x3a6fd4=Math['max'](_0x3a6fd4,_0x48b974['getBoundingClientRect']()['width']);let _0x43d324=0x0;for(const _0x333558 of Object['values'](_0x1ddc5d))_0x43d324+=_0x333558['getBoundingClientRect']()['height'];const _0x3588a7=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x492148=Math['min'](_0x43d324,_0x3588a7);return{'width':_0x3a6fd4,'height':_0x492148};}(_0x23790c);_0xd7b69a['show']({'id':'finalContentPreview','title':o(_0x777f09,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x777f09,{'dialogRects':_0x2a442}),'onHide':()=>{_0xd57734['detachFromDom']();},'onShow':()=>{_0x1ac6b1['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x10c9d1=>{const _0x206573=this['_standarizeRootsData'](_0x10c9d1,_0x1ac6b1,_0x23790c);_0xd7b69a['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x206573,_0x1ac6b1['config']['get']('trackChanges.preview.renderFunction'));}),_0xd57734=new _0x57a577(_0x777f09,[_0xd7b69a['view']]),_0xd57734['attachToDom'](),_0xd57734['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x1ac6b1['once']('destroy',()=>{_0xd57734['detachFromDom']();});const _0xc872e0=_0xd7b69a['view']['headerView']['class'];_0xd7b69a['view']['headerView']['class']=_0xc872e0?_0xc872e0+'\x20ck-reset_all':'ck-reset_all',_0xd7b69a['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0xd7b69a['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x3c3e35=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x339137=_0x3c3e35['previewMode'],_0x17b286={};if('$labels'===_0x339137){for(const _0x19f8c3 of _0x3c3e35['getMergeFieldsIds']())_0x17b286[_0x19f8c3]=_0x3c3e35['getLabel'](_0x19f8c3)||_0x19f8c3;}else{const _0x30c495='$defaultValues'===_0x339137?_0x3c3e35['getDefaultValues']():_0x3c3e35['getDataSetValues'](_0x339137,!0x0);for(const _0x5165d4 of Object['entries'](_0x30c495)){const [_0x4a4113,_0x18d594]=_0x5165d4;_0x17b286[_0x4a4113]=null!==_0x18d594?_0x18d594:_0x3c3e35['getLabel'](_0x4a4113)||_0x4a4113;}}return{'mergeFieldsData':_0x17b286};}['_standarizeRootsData'](_0x4b7275,_0x78eb65,_0x1b51d2){let _0xb4e013;if('string'==typeof _0x4b7275){const _0x20d528=_0x78eb65['model']['document']['getRootNames']()[0x0];_0xb4e013={[_0x20d528]:_0x4b7275};}else _0xb4e013=_0x4b7275;const _0x5e4301=this['_fixMediaEmbeds'](_0xb4e013,_0x78eb65),_0x32650b=function(_0xef9e92,_0x74acbf){for(const [_0x31167c,_0x56e7b2]of _0xef9e92)_0x56e7b2['classes']=_0x74acbf[_0x31167c]['classList']['value']['replace']('ck-focused','');return _0xef9e92;}(this['_sortRoots'](_0x78eb65)['reduce']((_0x4a01c9,_0x142999)=>(_0x4a01c9['push']([_0x142999,{'content':_0x5e4301[_0x142999],'classes':''}]),_0x4a01c9),[]),_0x1b51d2);return _0x32650b;}['_fixMediaEmbeds'](_0x385296,_0x4a99f9){if(!_0x4a99f9['plugins']['has']('MediaEmbedEditing'))return _0x385296;const _0x95f520=_0x4a99f9['plugins']['get']('MediaEmbedEditing');for(const [_0xb0fd4a,_0x3c936f]of Object['entries'](_0x385296)){const _0x2a8b1c=document['createElement']('div');_0x2a8b1c['innerHTML']=_0x3c936f,(_0x2a8b1c['querySelectorAll']('figure.media')['forEach'](_0x36073c=>{const _0x2bd363=_0x36073c['querySelector']('oembed');if(_0x2bd363){const _0x209f87=_0x2bd363['getAttribute']('url');if(_0x209f87){const _0x1e0a97=_0x95f520['registry']['getMediaViewElement'](new _0x3fa339(_0x4a99f9['editing']['view']['document']),_0x209f87,{'elementName':'','renderForEditingView':!0x0}),_0x3859aa=document['createElement']('div');_0x3859aa['classList']['add']('ck-media__wrapper'),_0x1e0a97['render'](_0x3859aa,_0x4a99f9['editing']['view']['domConverter']),_0x2bd363['replaceWith'](_0x3859aa);}}}),_0x385296[_0xb0fd4a]=_0x2a8b1c['innerHTML']);}return _0x385296;}['_sortRoots'](_0x687b47){if(!function(_0x581306){return void 0x0!==_0x581306['getRootsAttributes'];}(_0x687b47))return _0x687b47['model']['document']['getRootNames']();const _0x27ee36=[],_0x5eb28a=new Map();for(const _0x28d6a8 of _0x687b47['model']['document']['getRootNames']()){const _0x2a4150=_0x687b47['editing']['view']['getDomRoot'](_0x28d6a8)['getClientRects']()['item'](0x0);_0x27ee36['push'](_0x28d6a8),_0x5eb28a['set'](_0x28d6a8,_0x2a4150);}return _0x27ee36['sort']((_0x2b4810,_0x5431cd)=>{const _0x4bd777=_0x5eb28a['get'](_0x2b4810),_0x2d6653=_0x5eb28a['get'](_0x5431cd);return _0x4bd777['y']-_0x2d6653['y']||_0x4bd777['x']-_0x2d6653['x'];}),_0x27ee36;}}class $e extends _0x27a926{static get['requires'](){return[re,_0x13c885];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xda89d0){super(_0xda89d0),_0xda89d0['commands']['add']('previewFinalContent',new te(this['editor'])),_0xda89d0['config']['define']('trackChanges.preview.renderFunction',(_0x355196,_0x1b3cac)=>{for(const _0x33c087 of _0x1b3cac)_0x355196['appendChild'](_0x33c087);});}}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};