@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20250313.0 → 0.0.0-nightly-20250315.0

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 (223) hide show
  1. package/build/track-changes.js +1 -1
  2. package/dist/index.js +3 -3
  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/bg.js +1 -1
  12. package/dist/translations/bg.umd.js +1 -1
  13. package/dist/translations/bn.js +1 -1
  14. package/dist/translations/bn.umd.js +1 -1
  15. package/dist/translations/bs.js +1 -1
  16. package/dist/translations/bs.umd.js +1 -1
  17. package/dist/translations/ca.js +1 -1
  18. package/dist/translations/ca.umd.js +1 -1
  19. package/dist/translations/cs.js +1 -1
  20. package/dist/translations/cs.umd.js +1 -1
  21. package/dist/translations/da.js +1 -1
  22. package/dist/translations/da.umd.js +1 -1
  23. package/dist/translations/de-ch.js +1 -1
  24. package/dist/translations/de-ch.umd.js +1 -1
  25. package/dist/translations/de.js +1 -1
  26. package/dist/translations/de.umd.js +1 -1
  27. package/dist/translations/el.js +1 -1
  28. package/dist/translations/el.umd.js +1 -1
  29. package/dist/translations/en-au.js +1 -1
  30. package/dist/translations/en-au.umd.js +1 -1
  31. package/dist/translations/en-gb.js +1 -1
  32. package/dist/translations/en-gb.umd.js +1 -1
  33. package/dist/translations/en.js +1 -1
  34. package/dist/translations/en.umd.js +1 -1
  35. package/dist/translations/eo.js +1 -1
  36. package/dist/translations/eo.umd.js +1 -1
  37. package/dist/translations/es-co.js +1 -1
  38. package/dist/translations/es-co.umd.js +1 -1
  39. package/dist/translations/es.js +1 -1
  40. package/dist/translations/es.umd.js +1 -1
  41. package/dist/translations/et.js +1 -1
  42. package/dist/translations/et.umd.js +1 -1
  43. package/dist/translations/eu.js +1 -1
  44. package/dist/translations/eu.umd.js +1 -1
  45. package/dist/translations/fa.js +1 -1
  46. package/dist/translations/fa.umd.js +1 -1
  47. package/dist/translations/fi.js +1 -1
  48. package/dist/translations/fi.umd.js +1 -1
  49. package/dist/translations/fr.js +1 -1
  50. package/dist/translations/fr.umd.js +1 -1
  51. package/dist/translations/gl.js +1 -1
  52. package/dist/translations/gl.umd.js +1 -1
  53. package/dist/translations/gu.js +1 -1
  54. package/dist/translations/gu.umd.js +1 -1
  55. package/dist/translations/he.js +1 -1
  56. package/dist/translations/he.umd.js +1 -1
  57. package/dist/translations/hi.js +1 -1
  58. package/dist/translations/hi.umd.js +1 -1
  59. package/dist/translations/hr.js +1 -1
  60. package/dist/translations/hr.umd.js +1 -1
  61. package/dist/translations/hu.js +1 -1
  62. package/dist/translations/hu.umd.js +1 -1
  63. package/dist/translations/hy.js +1 -1
  64. package/dist/translations/hy.umd.js +1 -1
  65. package/dist/translations/id.js +1 -1
  66. package/dist/translations/id.umd.js +1 -1
  67. package/dist/translations/it.js +1 -1
  68. package/dist/translations/it.umd.js +1 -1
  69. package/dist/translations/ja.js +1 -1
  70. package/dist/translations/ja.umd.js +1 -1
  71. package/dist/translations/jv.js +1 -1
  72. package/dist/translations/jv.umd.js +1 -1
  73. package/dist/translations/kk.js +1 -1
  74. package/dist/translations/kk.umd.js +1 -1
  75. package/dist/translations/km.js +1 -1
  76. package/dist/translations/km.umd.js +1 -1
  77. package/dist/translations/kn.js +1 -1
  78. package/dist/translations/kn.umd.js +1 -1
  79. package/dist/translations/ko.js +1 -1
  80. package/dist/translations/ko.umd.js +1 -1
  81. package/dist/translations/ku.js +1 -1
  82. package/dist/translations/ku.umd.js +1 -1
  83. package/dist/translations/lt.js +1 -1
  84. package/dist/translations/lt.umd.js +1 -1
  85. package/dist/translations/lv.js +1 -1
  86. package/dist/translations/lv.umd.js +1 -1
  87. package/dist/translations/ms.js +1 -1
  88. package/dist/translations/ms.umd.js +1 -1
  89. package/dist/translations/nb.js +1 -1
  90. package/dist/translations/nb.umd.js +1 -1
  91. package/dist/translations/ne.js +1 -1
  92. package/dist/translations/ne.umd.js +1 -1
  93. package/dist/translations/nl.js +1 -1
  94. package/dist/translations/nl.umd.js +1 -1
  95. package/dist/translations/no.js +1 -1
  96. package/dist/translations/no.umd.js +1 -1
  97. package/dist/translations/oc.js +1 -1
  98. package/dist/translations/oc.umd.js +1 -1
  99. package/dist/translations/pl.js +1 -1
  100. package/dist/translations/pl.umd.js +1 -1
  101. package/dist/translations/pt-br.js +1 -1
  102. package/dist/translations/pt-br.umd.js +1 -1
  103. package/dist/translations/pt.js +1 -1
  104. package/dist/translations/pt.umd.js +1 -1
  105. package/dist/translations/ro.js +1 -1
  106. package/dist/translations/ro.umd.js +1 -1
  107. package/dist/translations/ru.js +1 -1
  108. package/dist/translations/ru.umd.js +1 -1
  109. package/dist/translations/si.js +1 -1
  110. package/dist/translations/si.umd.js +1 -1
  111. package/dist/translations/sk.js +1 -1
  112. package/dist/translations/sk.umd.js +1 -1
  113. package/dist/translations/sl.js +1 -1
  114. package/dist/translations/sl.umd.js +1 -1
  115. package/dist/translations/sq.js +1 -1
  116. package/dist/translations/sq.umd.js +1 -1
  117. package/dist/translations/sr-latn.js +1 -1
  118. package/dist/translations/sr-latn.umd.js +1 -1
  119. package/dist/translations/sr.js +1 -1
  120. package/dist/translations/sr.umd.js +1 -1
  121. package/dist/translations/sv.js +1 -1
  122. package/dist/translations/sv.umd.js +1 -1
  123. package/dist/translations/th.js +1 -1
  124. package/dist/translations/th.umd.js +1 -1
  125. package/dist/translations/ti.js +1 -1
  126. package/dist/translations/ti.umd.js +1 -1
  127. package/dist/translations/tk.js +1 -1
  128. package/dist/translations/tk.umd.js +1 -1
  129. package/dist/translations/tr.js +1 -1
  130. package/dist/translations/tr.umd.js +1 -1
  131. package/dist/translations/tt.js +1 -1
  132. package/dist/translations/tt.umd.js +1 -1
  133. package/dist/translations/ug.js +1 -1
  134. package/dist/translations/ug.umd.js +1 -1
  135. package/dist/translations/uk.js +1 -1
  136. package/dist/translations/uk.umd.js +1 -1
  137. package/dist/translations/ur.js +1 -1
  138. package/dist/translations/ur.umd.js +1 -1
  139. package/dist/translations/uz.js +1 -1
  140. package/dist/translations/uz.umd.js +1 -1
  141. package/dist/translations/vi.js +1 -1
  142. package/dist/translations/vi.umd.js +1 -1
  143. package/dist/translations/zh-cn.js +1 -1
  144. package/dist/translations/zh-cn.umd.js +1 -1
  145. package/dist/translations/zh.js +1 -1
  146. package/dist/translations/zh.umd.js +1 -1
  147. package/package.json +26 -26
  148. package/src/commands/acceptsuggestioncommand.js +1 -1
  149. package/src/commands/discardsuggestioncommand.js +1 -1
  150. package/src/commands/executeonallsuggestionscommand.js +1 -1
  151. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  152. package/src/commands/previewfinalcontentcommand.js +1 -1
  153. package/src/commands/trackchangescommand.js +1 -1
  154. package/src/index.js +1 -1
  155. package/src/integrations/aiassistant.js +1 -1
  156. package/src/integrations/alignment.js +1 -1
  157. package/src/integrations/basicstyles.js +1 -1
  158. package/src/integrations/blockquote.js +1 -1
  159. package/src/integrations/bookmark.js +1 -1
  160. package/src/integrations/casechange.js +1 -1
  161. package/src/integrations/ckbox.js +1 -1
  162. package/src/integrations/codeblock.js +1 -1
  163. package/src/integrations/comments.js +1 -1
  164. package/src/integrations/deletecommand.js +1 -1
  165. package/src/integrations/emoji.js +1 -1
  166. package/src/integrations/entercommand.js +1 -1
  167. package/src/integrations/findandreplace.js +1 -1
  168. package/src/integrations/font.js +1 -1
  169. package/src/integrations/formatpainter.js +1 -1
  170. package/src/integrations/heading.js +1 -1
  171. package/src/integrations/highlight.js +1 -1
  172. package/src/integrations/horizontalline.js +1 -1
  173. package/src/integrations/htmlembed.js +1 -1
  174. package/src/integrations/image.js +1 -1
  175. package/src/integrations/imagereplace.js +1 -1
  176. package/src/integrations/imagestyle.js +1 -1
  177. package/src/integrations/importword.js +1 -1
  178. package/src/integrations/indent.js +1 -1
  179. package/src/integrations/inputcommand.js +1 -1
  180. package/src/integrations/legacylist.js +1 -1
  181. package/src/integrations/legacylistproperties.js +1 -1
  182. package/src/integrations/link.js +1 -1
  183. package/src/integrations/list.js +1 -1
  184. package/src/integrations/listproperties.js +1 -1
  185. package/src/integrations/mediaembed.js +1 -1
  186. package/src/integrations/mention.js +1 -1
  187. package/src/integrations/mergefields.js +1 -1
  188. package/src/integrations/multilevellist.js +1 -1
  189. package/src/integrations/pagebreak.js +1 -1
  190. package/src/integrations/paragraph.js +1 -1
  191. package/src/integrations/removeformat.js +1 -1
  192. package/src/integrations/replacesourcecommand.js +1 -1
  193. package/src/integrations/restrictededitingmode.js +1 -1
  194. package/src/integrations/shiftentercommand.js +1 -1
  195. package/src/integrations/standardeditingmode.js +1 -1
  196. package/src/integrations/style.js +1 -1
  197. package/src/integrations/table.js +1 -1
  198. package/src/integrations/tablecaption.js +1 -1
  199. package/src/integrations/tableclipboard.js +1 -1
  200. package/src/integrations/tablecolumnresize.js +1 -1
  201. package/src/integrations/tableheadings.js +1 -1
  202. package/src/integrations/tablemergesplit.js +1 -1
  203. package/src/integrations/tableofcontents.js +1 -1
  204. package/src/integrations/tableproperties.js +1 -1
  205. package/src/integrations/template.js +1 -1
  206. package/src/integrations/title.js +1 -1
  207. package/src/integrations/undo.js +1 -1
  208. package/src/integrations/uploadcare.js +1 -1
  209. package/src/integrations/utils.js +1 -1
  210. package/src/suggestion.js +2 -2
  211. package/src/suggestiondescriptionfactory.js +1 -1
  212. package/src/trackchanges.js +1 -1
  213. package/src/trackchangesdata.js +1 -1
  214. package/src/trackchangesediting.js +1 -1
  215. package/src/trackchangespreview.js +1 -1
  216. package/src/trackchangesui.js +1 -1
  217. package/src/ui/suggestioncontroller.js +2 -2
  218. package/src/ui/view/basesuggestionthreadview.js +1 -1
  219. package/src/ui/view/suggestionthreadview.js +1 -1
  220. package/src/ui/view/suggestionview.js +1 -1
  221. package/src/ui/view/trackchangespreviewview.js +1 -1
  222. package/src/utils/common-translations.js +1 -1
  223. package/src/utils/utils.js +1 -1
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x5e0592,Plugin as _0x2b6060,PendingActions as _0x3da5b7}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x1ee9fa,ObservableMixin as _0x5eb22a,uid as _0x930f5e,priorities as _0x44c6f3,insertToPriorityArray as _0x5cc13c,logWarning as _0x5ddbd7,getEnvKeystrokeText as _0x4c29ef,FocusTracker as _0x1f00fc,KeystrokeHandler as _0x1835dd,Collection as _0x82bc9c}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x32e88f,IconCancel as _0x274e77,IconTrackChanges as _0x385c3b}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x5a756e,View as _0x5c55ad,ViewCollection as _0x58e801,FocusCycler as _0x59a2da,ViewModel as _0x55cb97,createDropdown as _0x3e0239,SplitButtonView as _0x5bf7d9,addListToDropdown as _0x16270a,MenuBarMenuView as _0x16b25f,MenuBarMenuListView as _0x2a8198,ListSeparatorView as _0x2cefe1,MenuBarMenuListItemView as _0x1822df,MenuBarMenuListItemButtonView as _0x169d54,BodyCollection as _0x4e56ea,Dialog as _0x12ea89}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x1ac468,hashObject as _0x53c7b9,surroundingMarkersDetector as _0x2bc2f7,FOCUS_ANNOTATION_KEYSTROKE as _0x106847,AriaDescriptionView as _0x488671,setupThreadKeyboardNavigation as _0x330c23,trimHtml as ti,UserView as _0x55e2a3,LateFocusButtonView as _0x21a31f,getDateTimeFormatter as _0x3679b4,getAllMarkersDomElementsSorted as _0xa7507c,sanitizeEditorConfig as _0x5293de}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x1943f9,LiveRange as _0x3a6c5d,LivePosition as _0x629474,DowncastWriter as _0x343894}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x335dd6,toWidget as _0x7a10f}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x5113e9,set as _0x26c832,isEqual as _0x5376df,unset as _0xc17e13,omit as Vt}from'es-toolkit/compat';import{Delete as _0x7d13b5,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x52261c,ShiftEnter as _0x1929ea}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends _0x5e0592{['_enabledCommands'];constructor(_0x28ccbd,_0x5a512a){super(_0x28ccbd),this['_enabledCommands']=_0x5a512a,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 _0x701c59 of this['editor']['commands']['commands']())_0x701c59['affectsData']&&!this['_enabledCommands']['has'](_0x701c59)&&_0x701c59['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x537c07 of this['editor']['commands']['commands']())_0x537c07['affectsData']&&!this['_enabledCommands']['has'](_0x537c07)&&_0x537c07['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x5e0592{['_suggestions'];constructor(_0x219bb1,_0x46b829){super(_0x219bb1),this['_suggestions']=_0x46b829,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x58323a){const _0x16b132=this['_suggestions']['get'](_0x58323a);if(!_0x16b132)throw new _0x1ee9fa('track-changes-accept-suggestion-not-found',this);const _0x3e3dc2=_0x16b132['getRanges']();this['editor']['model']['canEditAt'](_0x3e3dc2)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x16b132);}}class R extends _0x5e0592{['_suggestions'];constructor(_0x10cae9,_0x50f4d4){super(_0x10cae9),this['_suggestions']=_0x50f4d4,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xc27464){const _0xbc4af0=this['_suggestions']['get'](_0xc27464);if(!_0xbc4af0)throw new _0x1ee9fa('track-changes-discard-suggestion-not-found',this);const _0x1f34d4=_0xbc4af0['getRanges']();this['editor']['model']['canEditAt'](_0x1f34d4)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0xbc4af0);}}function ls(_0x45bc45,_0x34f73b){let _0x102f59='';return _0x102f59+=_0x45bc45['split']('*')['map']((_0x9b4215,_0xb8387b)=>_0xb8387b%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x9b4215)+'</span>':nn(_0x9b4215))['join'](''),_0x34f73b&&(_0x102f59+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x34f73b['value']+'\x22\x20title=\x22'+_0x34f73b['title']+'\x22></span>'),_0x102f59;}function nn(_0x1cfc46){const _0x37235e=document['createElement']('span');return _0x37235e['innerText']=_0x1cfc46,_0x37235e['innerHTML'];}function ts(_0x3ba621){return _0x3ba621['sort']((_0xf64a4e,_0x5727f9)=>'deletion'==_0xf64a4e['type']&&'deletion'!=_0x5727f9['type']?-0x1:'deletion'!=_0xf64a4e['type']&&'deletion'==_0x5727f9['type']?0x1:0x0);}function Zt(_0x5d17c9,_0x1725e0){let _0x16cae7,_0x31e2fe=0x0;const _0x472b76=[],_0x4f50db=_0x1725e0['schema'];for(;_0x31e2fe<_0x5d17c9['length'];){const _0x4b9880=_0x5d17c9[_0x31e2fe],_0x38a9e6=_0x5d17c9[_0x31e2fe+0x1];_0x16cae7||(_0x16cae7=_0x1725e0['createPositionBefore'](_0x4b9880)),on(_0x1725e0,_0x4b9880,_0x38a9e6)||(_0x472b76['push'](_0x1725e0['createRange'](_0x16cae7,_0x4f50db['isObject'](_0x4b9880)?_0x1725e0['createPositionAfter'](_0x4b9880):_0x1725e0['createPositionAt'](_0x4b9880,'end'))),_0x16cae7=null),_0x31e2fe++;}return _0x472b76;}function on(_0x1908c2,_0x5a4fd3,_0x2b1326){if(!_0x2b1326)return!0x1;const _0x2534d5=_0x1908c2['createPositionAfter'](_0x5a4fd3),_0x280dd3=_0x1908c2['createPositionBefore'](_0x2b1326);return _0x2534d5['isTouching'](_0x280dd3);}function rs(_0x1114a3,_0x332ef9,_0x2a2d01){for(;_0x2a2d01['length'];){const _0x1f1e10=_0x2a2d01['splice'](0x0,0x64);_0x1114a3['change'](()=>{for(const _0x309d24 of _0x1f1e10)_0x309d24['isInContent']&&_0x332ef9['execute'](_0x309d24['id']);});}}class x extends _0x5e0592{['_command'];['_suggestions'];constructor(_0x4b989d,_0x248d60,_0x34e956){super(_0x4b989d),this['_command']=_0x248d60,this['_suggestions']=_0x34e956,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3308b9=Array['from'](this['_suggestions']['values']())['some'](_0x587650=>_0x587650['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x3308b9;}['execute'](){const _0x4c96a1=ts(Array['from'](this['_suggestions']['values']()));for(const _0x324b3e of _0x4c96a1){const _0x4f32ed=_0x324b3e['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4f32ed))return;}rs(this['editor']['model'],this['_command'],_0x4c96a1);}}class E extends _0x5e0592{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x35113a,_0x33aa0d,_0x2fdfa8){super(_0x35113a),this['_command']=_0x33aa0d,this['_suggestions']=_0x2fdfa8,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3960a6=this['editor']['model']['document']['selection'],_0xb6dd6c=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x21bcec,_0x238f98){const _0x1e4fb3=Array['from'](_0x21bcec['getRanges']()),_0x4d1eba=new Set();for(const _0x4c9bca of _0x238f98)if(_0x4c9bca['isInContent']){for(const _0x10547a of _0x1e4fb3)for(const _0x5de0c6 of _0x4c9bca['getRanges']())(_0x10547a['isIntersecting'](_0x5de0c6)||_0x21bcec['isCollapsed']&&!_0x4c9bca['isMultiRange']&&_0x4c9bca['next']&&_0x5de0c6['end']['isTouching'](_0x10547a['start']))&&_0x4d1eba['add'](_0x4c9bca);}return _0x4d1eba;}(_0x3960a6,_0xb6dd6c),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x5322b7=ts(Array['from'](this['_selectedSuggestions']));for(const _0xf4f7f7 of _0x5322b7){const _0xdac315=_0xf4f7f7['getRanges']();if(!this['editor']['model']['canEditAt'](_0xdac315))return;}rs(this['editor']['model'],this['_command'],_0x5322b7);}}class o extends/* #__PURE__ -- @preserve */
24
- _0x5eb22a(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x4058ee,_0x513d40){super(),this['id']=_0x513d40['id'],this['type']=_0x513d40['type'],this['subType']=_0x513d40['subType']||null,this['author']=_0x513d40['author'],this['creator']=_0x513d40['creator']||_0x513d40['author'],this['isExternal']=Boolean(_0x513d40['attributes']&&_0x513d40['attributes']['@external']),this['data']=null,this['_model']=_0x4058ee,this['_onAccept']=_0x513d40['onAccept'],this['_onDiscard']=_0x513d40['onDiscard'],this['_onAttributesChange']=_0x513d40['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x513d40['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 _0x4f641c=this;for(;_0x4f641c['previous'];)_0x4f641c=_0x4f641c['previous'];return _0x4f641c;}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'](_0x276992){this['_markerNames']['add'](_0x276992);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x153c7e=>this['_model']['markers']['get'](_0x153c7e))['filter'](_0x355fdd=>_0x355fdd);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x4bfd59=>{for(const _0xd14d15 of this['getMarkers']())_0x4bfd59['removeMarker'](_0xd14d15);}),this['_markerNames']['clear']();}['removeMarker'](_0x391777){this['_model']['change'](_0x50ca19=>{_0x50ca19['removeMarker'](_0x391777);}),this['_markerNames']['delete'](_0x391777);}['addRange'](_0x527b06){const _0x32b361='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x32b361),this['_model']['change'](_0x31db52=>{_0x31db52['addMarker'](_0x32b361,{'range':_0x527b06,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x1e462e){for(const _0x35004c of this['getRanges']())if(_0x35004c['isIntersecting'](_0x1e462e))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x527051=>_0x527051['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x350f20,_0x40405a)=>[..._0x350f20,..._0x40405a['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x4c153c=this['getRanges']();if(0x1!=_0x4c153c['length'])return null;const _0xc6077b=_0x4c153c[0x0],_0x3c17e0=_0xc6077b['start']['nodeAfter'],_0x4f7e20=_0xc6077b['end']['nodeBefore'];return _0x3c17e0 instanceof _0x1943f9?_0x3c17e0!=_0x4f7e20?null:_0x3c17e0: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 _0xe9f218=[];let _0x3735f7=this['head'];for(;_0x3735f7;)_0xe9f218['push'](_0x3735f7),_0x3735f7=_0x3735f7['next'];return _0xe9f218;}['setAttribute'](_0x243757,_0x52bd4c){const _0x1a5399=_0x5113e9(this['attributes']);_0x26c832(_0x1a5399,_0x243757,_0x52bd4c),_0x5376df(_0x1a5399,this['attributes'])||(this['attributes']=_0x1a5399,this['_onAttributesChange'](_0x1a5399));}['removeAttribute'](_0x293926){const _0x282349=_0x5113e9(this['attributes']);_0xc17e13(_0x282349,_0x293926),_0x5376df(_0x282349,this['attributes'])||(this['attributes']=_0x282349,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 _0x930f5e()['substr'](0x1,0x5);}}function c(_0x322ebd,_0x4f1335,_0xd31c48){const _0x1231ed=_0x322ebd['t'],t=_0x322ebd['t'];switch(_0x4f1335){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',_0xd31c48);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0xd31c48);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0xd31c48);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0xd31c48);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0xd31c48);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',_0xd31c48);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0xd31c48);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',_0xd31c48);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0xd31c48);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0xd31c48);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0xd31c48);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0xd31c48);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0xd31c48);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0xd31c48);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0xd31c48);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0xd31c48);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0xd31c48);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0xd31c48);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0xd31c48);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0xd31c48);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0xd31c48);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0xd31c48);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0xd31c48);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0xd31c48);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'},_0xd31c48);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0xd31c48);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0xd31c48);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0xd31c48);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0xd31c48);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0xd31c48);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'},_0xd31c48);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0xd31c48);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0xd31c48);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0xd31c48);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0xd31c48);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'},_0xd31c48);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0xd31c48);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'},_0xd31c48);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'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'},_0xd31c48);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0xd31c48);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'},_0xd31c48);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0xd31c48);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'},_0xd31c48);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0xd31c48);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0xd31c48);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'},_0xd31c48);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0xd31c48);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 _0x1231ed({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0xd31c48);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x1231ed({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0xd31c48);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0xd31c48);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'},_0xd31c48);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'},_0xd31c48);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'},_0xd31c48);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x4f1335;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x556a0c,_0x490863){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x556a0c,this['_locale']=_0x490863;}['getDescriptions'](_0x315fbf){const _0x28c8eb=[],_0x3b6389=new Set(),_0x585c12=new Set();for(let _0x3f3448=0x0;_0x3f3448<_0x315fbf['length'];_0x3f3448++){const _0x5dbaed=_0x315fbf[_0x3f3448];if(!_0x5dbaed['isInContent'])continue;const _0x99857=this['_handleCustomCallbackDescription'](_0x5dbaed);if(_0x99857){if(null!=_0x5dbaed['subType']){if(_0x3b6389['has'](_0x5dbaed['subType']))continue;_0x3b6389['add'](_0x5dbaed['subType']);}_0x28c8eb['push'](_0x99857);}else{if('attribute'!=_0x5dbaed['type'])'insertion'!=_0x5dbaed['type']&&'deletion'!=_0x5dbaed['type']||this['_handleInsertRemoveSuggestionDescription'](_0x28c8eb,_0x5dbaed,_0x315fbf[_0x3f3448+0x1]);else{const _0x972e15=_0x5dbaed['data']['key'];if(_0x585c12['has'](_0x972e15))continue;_0x585c12['add'](_0x5dbaed['data']['key']),_0x972e15==u?this['_handleRenameSuggestionDescription'](_0x28c8eb,_0x5dbaed):this['_handleAttributeSuggestionDescription'](_0x28c8eb,_0x5dbaed);}}}return this['_resolveDescriptionItems'](_0x28c8eb);}['registerDescriptionCallback'](_0x51d346){this['_customCallbacks']['push'](_0x51d346);}['registerElementLabel'](_0x5ddc82,_0x51b0fd,_0x1d99ee=_0x44c6f3['normal']){'function'==typeof _0x5ddc82?_0x5cc13c(this['_itemLabelsCallbacks'],{'matchingCallback':_0x5ddc82,'label':_0x51b0fd,'priority':_0x1d99ee}):this['_itemLabels']['set'](_0x5ddc82,_0x51b0fd);}['registerAttributeLabel'](_0x45c14a,_0x1a60d7){this['_attributeLabels']['set'](_0x45c14a,_0x1a60d7);}['getItemLabel'](_0x1e9abe,_0x33a2a3=0x1){let _0x1a0f69;for(const _0x5e60c7 of this['_itemLabelsCallbacks'])if(_0x5e60c7['matchingCallback'](_0x1e9abe)){_0x1a0f69=_0x5e60c7['label'];break;}return _0x1a0f69||(_0x1a0f69=this['_itemLabels']['get'](_0x1e9abe['name'])),_0x1a0f69?_0x1a0f69(_0x33a2a3):0x1!==_0x33a2a3?_0x33a2a3+'\x20'+_0x1e9abe['name']+'s':''+_0x1e9abe['name'];}['_addDescriptionItems'](_0xb7ee1a,_0x261e7b){const _0x22734e=_0x261e7b['getFirstRange']()['getWalker'](),_0x2bc2c5='insertion'==_0x261e7b['type']?'add':'remove';for(const _0x43a995 of _0x22734e){const _0x3c9ea4=_0x43a995['item'],_0x4c405a=_0xb7ee1a[_0xb7ee1a['length']-0x1];if(_0x3c9ea4['is']('$textProxy'))_0x4c405a&&_0x4c405a['type']['indexOf']('Container')>-0x1&&_0xb7ee1a['pop'](),_0x4c405a&&'text'==_0x4c405a['type']?_0x4c405a[_0x2bc2c5]+=_0x3c9ea4['data']:_0xb7ee1a['push']({'type':'text','add':'add'==_0x2bc2c5?_0x3c9ea4['data']:'','remove':'remove'==_0x2bc2c5?_0x3c9ea4['data']:''});else{if(this['_schema']['isObject'](_0x3c9ea4)){const _0x36b6a7=_0x3c9ea4;if(_0x4c405a&&_0x4c405a['type']['indexOf']('Container')>-0x1&&_0xb7ee1a['pop'](),'elementEnd'==_0x43a995['type'])continue;_0x4c405a&&_0x4c405a['type']==_0x2bc2c5+'Object'&&_0x4c405a['element']['name']==_0x36b6a7['name']?_0x4c405a['quantity']++:_0xb7ee1a['push']({'type':_0x2bc2c5+'Object','element':_0x36b6a7,'quantity':0x1}),_0x22734e['skip'](_0x29f733=>!('elementEnd'==_0x29f733['type']&&_0x29f733['item']==_0x3c9ea4));}else{if(this['_schema']['checkChild'](_0x3c9ea4,'$text')||_0x3c9ea4['is']('element','softBreak')){const _0x368566=_0x3c9ea4;if('add'==_0x2bc2c5&&'elementStart'==_0x43a995['type']||'remove'==_0x2bc2c5&&'elementEnd'==_0x43a995['type'])continue;if(_0x4c405a&&-0x1==_0x4c405a['type']['indexOf']('Container')){'text'==_0x4c405a['type']&&(_0x4c405a[_0x2bc2c5]+='\x0a');continue;}let _0x158b3c;if(_0x158b3c='add'==_0x2bc2c5?_0x368566['nextSibling']&&!this['_schema']['isObject'](_0x368566['nextSibling'])?_0x368566['nextSibling']:null:_0x368566['previousSibling']&&!this['_schema']['isObject'](_0x368566['previousSibling'])?_0x368566['previousSibling']:null,_0x368566['isEmpty']||_0x158b3c&&_0x158b3c['isEmpty']){const _0xf4cd68=_0x158b3c&&_0x158b3c['isEmpty']?_0x158b3c:_0x368566;_0x4c405a&&_0x4c405a['type']==_0x2bc2c5+'EmptyContainer'&&_0x4c405a['element']['name']==_0xf4cd68['name']?_0x4c405a['quantity']++:_0xb7ee1a['push']({'type':_0x2bc2c5+'EmptyContainer','element':_0xf4cd68,'quantity':0x1});}else _0xb7ee1a['push']({'type':_0x2bc2c5+'Container','element':_0x368566});}}}}}['_resolveDescriptionItems'](_0x198041){const _0x5a1404=this['_locale'],_0x5b7deb=[],_0x2aa6de=[],_0x46eba0=[];for(const _0x52a193 of _0x198041)switch(_0x52a193['type']){case'text':if(_0x52a193['add']=_0x52a193['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x52a193['remove']=_0x52a193['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x52a193['add']&&''!=_0x52a193['remove']){_0x5b7deb['push']({'type':'replace','content':c(_0x5a1404,'REPLACE_TEXT',['\x22'+_0x52a193['remove']+'\x22','\x22'+_0x52a193['add']+'\x22'])});continue;}if(null!=_0x52a193['add']['match'](/^ +$/)){_0x5b7deb['push']({'type':'insertion','content':c(_0x5a1404,'*Insert:*\x20%0',c(_0x5a1404,'ELEMENT_SPACE',_0x52a193['add']['length']))});continue;}if(null!=_0x52a193['remove']['match'](/^ +$/)){_0x5b7deb['push']({'type':'deletion','content':c(_0x5a1404,'*Remove:*\x20%0',c(_0x5a1404,'ELEMENT_SPACE',_0x52a193['remove']['length']))});continue;}if(''!=_0x52a193['add']){_0x5b7deb['push']({'type':'insertion','content':c(_0x5a1404,'*Insert:*\x20%0','\x22'+_0x52a193['add']+'\x22')});continue;}_0x5b7deb['push']({'type':'deletion','content':c(_0x5a1404,'*Remove:*\x20%0','\x22'+_0x52a193['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x5b7deb['push']({'type':'insertion','content':c(_0x5a1404,'*Insert:*\x20%0',this['getItemLabel'](_0x52a193['element'],_0x52a193['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x5b7deb['push']({'type':'deletion','content':c(_0x5a1404,'*Remove:*\x20%0',this['getItemLabel'](_0x52a193['element'],_0x52a193['quantity']))});continue;case'addContainer':_0x5b7deb['push']({'type':'insertion','content':c(_0x5a1404,'*Split:*\x20%0',this['getItemLabel'](_0x52a193['element'],_0x52a193['quantity']))});continue;case'removeContainer':_0x5b7deb['push']({'type':'deletion','content':c(_0x5a1404,'*Merge:*\x20%0',this['getItemLabel'](_0x52a193['element'],_0x52a193['quantity']))});continue;case'addFormat':_0x2aa6de['push'](_0x52a193['key']);continue;case'removeFormat':_0x46eba0['push'](_0x52a193['key']);continue;default:_0x5b7deb['push'](_0x52a193);}if(_0x2aa6de['length']){const _0x4ce4cb=_0x2aa6de['map'](_0x58a927=>this['_attributeLabels']['has'](_0x58a927)?this['_attributeLabels']['get'](_0x58a927):_0x58a927)['join'](',\x20');_0x5b7deb['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x4ce4cb)});}if(_0x46eba0['length']){const _0xa28386=_0x46eba0['map'](_0x4154bb=>this['_attributeLabels']['has'](_0x4154bb)?this['_attributeLabels']['get'](_0x4154bb):_0x4154bb)['join'](',\x20');_0x5b7deb['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0xa28386)});}return _0x5b7deb;}['_handleCustomCallbackDescription'](_0x313a5d){for(const _0x19208e of this['_customCallbacks']){const _0x2d9623=_0x19208e(_0x313a5d);if(_0x2d9623&&'type'in _0x2d9623)return _0x2d9623;}}['_handleAttributeSuggestionDescription'](_0x5082bc,_0x305762){const _0x5e3009=_0x305762['data'],_0x5d6fbd=void 0x0===_0x5e3009['newValue']?'removeFormat':'addFormat';_0x5082bc['push']({'type':_0x5d6fbd,'key':_0x5e3009['key']});}['_handleRenameSuggestionDescription'](_0x5c2ab4,_0xada719){_0x5c2ab4['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0xada719['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x5b8ae9,_0x58112d,_0x3d847c){if(this['_addDescriptionItems'](_0x5b8ae9,_0x58112d),_0x3d847c&&_0x3d847c['getFirstRange']()&&!_0x58112d['getFirstRange']()['end']['isEqual'](_0x3d847c['getFirstRange']()['start'])){const _0x5009f0=_0x5b8ae9[_0x5b8ae9['length']-0x1],_0x2e5418='insertion'==_0x58112d['type']?'add':'remove';_0x5009f0&&'text'==_0x5009f0['type']&&(_0x5009f0[_0x2e5418]+='\x0a');}}}class U extends _0x2b6060{['afterInit'](){const _0x182473=this['editor'],_0x561d8e=_0x182473['plugins']['get']('TrackChangesEditing');_0x182473['commands']['get']('showAIAssistant')&&_0x561d8e['enableCommand']('showAIAssistant');}}class V extends _0x2b6060{['afterInit'](){const _0x3417ee=this['editor'],_0x2c86e1=_0x3417ee['locale'];if(!_0x3417ee['plugins']['has']('AlignmentEditing'))return;const _0x2e1d13=_0x3417ee['plugins']['get']('TrackChangesEditing');_0x2e1d13['enableDefaultAttributesIntegration']('alignment'),_0x2e1d13['registerBlockAttribute']('alignment'),_0x2e1d13['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x2c86e1,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x534fc6=this['editor'],_0x3002e0=_0x534fc6['locale'];_0x534fc6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x545763=>{if('formatBlock'!=_0x545763['type'])return;const {data:_0x12f611}=_0x545763;if(_0x12f611&&'alignment'==_0x12f611['commandName']){const _0x5433bf=_0x12f611['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x3002e0,'*Format:*\x20%0',function(_0x13f3c4){switch(_0x13f3c4){case'left':return c(_0x3002e0,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x3002e0,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x3002e0,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x3002e0,'FORMAT_JUSTIFY_TEXT');}}(_0x5433bf))};}});}}const Yt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x2b6060{['afterInit'](){const _0x1b52d3=this['editor'],_0x3b2ae4=_0x1b52d3['plugins']['get']('TrackChangesEditing'),_0x321a46=_0x1b52d3['locale'];for(const _0x3a61fb of Yt){if(!_0x1b52d3['plugins']['has'](_0x3a61fb))continue;const _0x4717bc=_0x3a61fb['slice'](0x0,-0x7)['toLowerCase'](),_0x5e8420='FORMAT_'+_0x4717bc['toUpperCase']();_0x3b2ae4['enableDefaultAttributesIntegration'](_0x4717bc),_0x3b2ae4['registerInlineAttribute'](_0x4717bc),_0x3b2ae4['descriptionFactory']['registerAttributeLabel'](_0x4717bc,c(_0x321a46,_0x5e8420));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xae86ea=this['editor'],_0x5ccba8=_0xae86ea['locale'],_0x3d085c=_0xae86ea['plugins']['get']('TrackChangesEditing');function _0x43a139(_0x393b78,_0x1156db){_0x3d085c['descriptionFactory']['registerDescriptionCallback'](_0x320f49=>{if('formatInline'!=_0x320f49['type'])return;const {data:_0x1a19db}=_0x320f49;return _0x1a19db&&_0x1a19db['commandName']===_0x393b78?_0x1a19db['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x5ccba8,'*Format:*\x20%0',_0x1156db)}:{'type':'format','content':c(_0x5ccba8,'*Remove\x20format:*\x20%0',_0x1156db)}:void 0x0;});}_0x43a139('bold',c(_0x5ccba8,'FORMAT_BOLD')),_0x43a139('italic',c(_0x5ccba8,'FORMAT_ITALIC')),_0x43a139('underline',c(_0x5ccba8,'FORMAT_UNDERLINE')),_0x43a139('code',c(_0x5ccba8,'FORMAT_CODE')),_0x43a139('strikethrough',c(_0x5ccba8,'FORMAT_STRIKETHROUGH')),_0x43a139('subscript',c(_0x5ccba8,'FORMAT_SUBSCRIPT')),_0x43a139('superscript',c(_0x5ccba8,'FORMAT_SUPERSCRIPT'));}}class G extends _0x2b6060{['afterInit'](){const _0x5f164f=this['editor'],_0x4fd4c5=_0x5f164f['locale'];if(!_0x5f164f['plugins']['has']('BlockQuoteEditing'))return;const _0x4c7b70=_0x5f164f['plugins']['get']('TrackChangesEditing'),_0x1b5077=this['editor']['commands']['get']('blockQuote');_0x4c7b70['enableCommand']('blockQuote',(_0x4c0b63,_0x374954={})=>{const _0xc935c6=this['editor']['model']['document']['selection'],_0x416b52=_0x374954&&void 0x0!==_0x374954['forceValue']?_0x374954['forceValue']:!_0x1b5077['value'];let _0x498392=[];if(_0x416b52){const _0x28793d=Array['from'](_0xc935c6['getSelectedBlocks']())['filter'](_0x637df5=>to(_0x637df5)||function(_0x5eb7a2,_0x5d890){const _0x1536ce=_0x5d890['checkChild'](_0x5eb7a2['parent'],'blockQuote'),_0x3ce3cd=_0x5d890['checkChild'](['$root','blockQuote'],_0x5eb7a2);return _0x1536ce&&_0x3ce3cd;}(_0x637df5,this['editor']['model']['schema']));_0x498392=Zt(_0x28793d,_0x5f164f['model']);}else{const _0x2ff6b5=Array['from'](_0xc935c6['getSelectedBlocks']())['filter'](_0x3de0e7=>to(_0x3de0e7));_0x498392=Zt(_0x2ff6b5,_0x5f164f['model']);}_0x5f164f['model']['change'](()=>{for(const _0x4ce2fd of _0x498392)_0x4c7b70['markBlockFormat'](_0x4ce2fd,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x416b52}]});});}),_0x4c7b70['descriptionFactory']['registerDescriptionCallback'](_0x52efd1=>{const {data:_0x5188da}=_0x52efd1;if(_0x5188da&&'blockQuote'==_0x5188da['commandName']){const _0x4f1703=c(_0x4fd4c5,'ELEMENT_BLOCK_QUOTE');return _0x5188da['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x4fd4c5,'*Set\x20format:*\x20%0',_0x4f1703)}:{'type':'format','content':c(_0x4fd4c5,'*Remove\x20format:*\x20%0',_0x4f1703)};}});}}function to(_0x3c8047){return'blockQuote'==_0x3c8047['parent']['name'];}class L extends _0x2b6060{['afterInit'](){const _0x51c4ac=this['editor'],_0x4e8807=_0x51c4ac['locale'],_0x1187d7=_0x51c4ac['plugins']['get']('TrackChangesEditing');_0x51c4ac['plugins']['has']('BookmarkEditing')&&(_0x1187d7['enableCommand']('insertBookmark'),_0x1187d7['enableDefaultAttributesIntegration']('updateBookmark'),_0x1187d7['registerBlockAttribute']('bookmarkId'),_0x1187d7['descriptionFactory']['registerDescriptionCallback'](_0x32ea70=>{if('insertion'!=_0x32ea70['type']&&'deletion'!=_0x32ea70['type']&&'attribute'!=_0x32ea70['type'])return;const _0x5eaa2c=_0x32ea70['getContainedElement']();if(null==_0x5eaa2c)return;if(!_0x5eaa2c['is']('element','bookmark'))return;const _0x343a12=_0x5eaa2c['getAttribute']('bookmarkId');if('insertion'==_0x32ea70['type'])return{'type':'insertion','content':c(_0x4e8807,'*Insert:*\x20%0','\x22'+_0x343a12+'\x22\x20'+c(_0x4e8807,'ELEMENT_BOOKMARK'))};if('deletion'==_0x32ea70['type'])return{'type':'deletion','content':c(_0x4e8807,'*Remove:*\x20%0','\x22'+_0x343a12+'\x22\x20'+c(_0x4e8807,'ELEMENT_BOOKMARK'))};const {data:_0x148745}=_0x32ea70;if(!_0x148745||'bookmarkId'!=_0x148745['key'])return;return{'type':'format','content':c(_0x4e8807,'*Set\x20bookmark:*\x20%0','\x22'+_0x148745['newValue']+'\x22')};}));}}class J extends _0x2b6060{['afterInit'](){const _0x34148c=this['editor'];_0x34148c['plugins']['has']('CaseChange')&&(_0x34148c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x34148c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x34148c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x2b6060{['afterInit'](){const _0x1572c1=this['editor'];_0x1572c1['commands']['get']('ckbox')&&_0x1572c1['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x2b6060{['afterInit'](){const _0x3ea7cf=this['editor'];if(!_0x3ea7cf['plugins']['has']('CodeBlock'))return;const _0x2f6701=_0x3ea7cf['plugins']['get']('TrackChangesEditing'),_0x3a9052=_0x3ea7cf['locale'],_0x56adb8=_0x3ea7cf['config']['get']('codeBlock')['languages'],_0x1a9259=_0x3ea7cf['commands']['get']('codeBlock');_0x2f6701['enableCommand']('indentCodeBlock'),_0x2f6701['enableCommand']('outdentCodeBlock'),_0x2f6701['enableCommand']('codeBlock',(_0x3f5245,_0x4bb6d7={})=>{const _0x34b455=_0x3ea7cf['model'],_0x44cb4b=_0x3ea7cf['model']['document']['selection'],_0x4c1b4f=_0x4bb6d7&&void 0x0!==_0x4bb6d7['forceValue']?_0x4bb6d7['forceValue']:!_0x1a9259['value'];let _0x539db8;_0x4bb6d7['language']||(_0x4bb6d7['language']=_0x56adb8[0x0]['language']),_0x539db8=_0x4c1b4f?Array['from'](_0x44cb4b['getSelectedBlocks']())['filter'](_0x339cd9=>oo(_0x339cd9)||function(_0x32d7e2,_0xa7b2a2){if(_0x32d7e2['is']('rootElement')||_0xa7b2a2['isLimit'](_0x32d7e2))return!0x1;return _0xa7b2a2['checkChild'](_0x32d7e2['parent'],'codeBlock');}(_0x339cd9,_0x34b455['schema'])):Array['from'](_0x44cb4b['getSelectedBlocks']())['filter'](_0x266779=>oo(_0x266779));const _0x4fe964=Zt(_0x539db8,_0x34b455);_0x34b455['change'](()=>{for(const _0x13d946 of _0x4fe964)_0x2f6701['markBlockFormat'](_0x13d946,{'commandName':'codeBlock','commandParams':[{..._0x4bb6d7,'forceValue':_0x4c1b4f}],'formatGroupId':'blockName'});});}),(_0x2f6701['descriptionFactory']['registerElementLabel']('codeBlock',_0x2aeb2b=>c(_0x3a9052,'ELEMENT_CODE_BLOCK',_0x2aeb2b)),_0x2f6701['descriptionFactory']['registerDescriptionCallback'](_0xab65fa=>{if('formatBlock'!=_0xab65fa['type'])return;const _0x689f8d=_0x3a9052['t'],{data:_0x2acf4d}=_0xab65fa;if(!_0x2acf4d||'codeBlock'!=_0x2acf4d['commandName'])return;const _0x560073=_0x2acf4d['commandParams'][0x0]['language'],_0x4b9932=_0x689f8d(_0x56adb8['find'](_0x6a1322=>_0x6a1322['language']===_0x560073)['label'])['toLowerCase']();return _0x2acf4d['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x3a9052,'*Set\x20format:*\x20%0',c(_0x3a9052,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x4b9932+')')}:{'type':'format','content':c(_0x3a9052,'*Remove\x20format:*\x20%0',c(_0x3a9052,'ELEMENT_CODE_BLOCK',0x1))};}));}}function oo(_0x366854){return'codeBlock'==_0x366854['name'];}class q extends _0x2b6060{['afterInit'](){const _0x56b6c7=this['editor'];if(!_0x56b6c7['plugins']['has']('CommentsEditing'))return;_0x56b6c7['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x2db0ed,_0x539991,_0xca1cca){const _0x323e7d=[];for(const _0xc71ac of _0x539991['getItems']())_0xc71ac['hasAttribute'](_0x2db0ed)&&_0x323e7d['push'](_0xca1cca['createRangeOn'](_0xc71ac));return _0x323e7d;}function De(_0x26682b,_0x515c88,{showActiveMarker:_0x3126ef=!0x0}={}){const _0x5975cb=_0x26682b['plugins']['get']('TrackChangesEditing');return(_0x47a19a,_0x18851a,_0x2cc032)=>{if(!_0x2cc032['consumable']['test'](_0x18851a['markerRange'],_0x47a19a['name']))return;const _0x23ef11=_0x18851a['markerRange']['getWalker'](),_0x4beb07=_0x18851a['markerRange']['start'],_0x409916=_0x26682b['model']['schema'];let _0x193899=null,_0x4dc1fb=null,_0x3c0382=!0x1,_0x38ed3d=!0x1;for(const _0x5b7fec of _0x23ef11){const _0x48b248=_0x5b7fec['item'];_0x3c0382=_0x3c0382||_0x409916['isContent'](_0x48b248);const _0x310371=_0x2cc032['mapper']['toViewElement'](_0x48b248);if(_0x310371&&_0x310371['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5b7fec['type']&&(_0x409916['isBlock'](_0x48b248)&&!_0x409916['isLimit'](_0x48b248)&&(_0x48b248['nextSibling']||_0x4beb07['isAtEnd']?_0x193899&&_0x193899['parent']==_0x48b248||(_0x193899=_0x48b248,_0x1f173e(_0x5b7fec['previousPosition']),_0x38ed3d=!0x0):_0x4dc1fb=_0x4dc1fb||_0x5b7fec['previousPosition']));}function _0x1f173e(_0xb033ea){const {authorId:_0x26f339}=_0x5975cb['_splitMarkerName'](_0x18851a['markerName']),_0x4f726f=_0x2cc032['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x515c88,'data-author-id':_0x26f339}),_0x1ce09e=_0x2cc032['mapper']['toViewPosition'](_0xb033ea);_0x3126ef&&_0x5975cb['activeMarkers']['includes'](_0x18851a['markerName'])&&_0x2cc032['writer']['addClass']('ck-suggestion-marker--active',_0x4f726f),_0x2cc032['writer']['insert'](_0x1ce09e,_0x4f726f),_0x2cc032['mapper']['bindElementToMarker'](_0x4f726f,_0x18851a['markerName']);}_0x3c0382||_0x38ed3d||!_0x4dc1fb||_0x1f173e(_0x4dc1fb);};}class z extends _0x2b6060{static get['requires'](){return[_0x7d13b5];}['init'](){const _0xf595ea=this['editor'],_0x253b08=_0xf595ea['plugins']['get']('TrackChangesEditing');_0x253b08['enableCommand']('delete');const _0x3aa6f2=_0xf595ea['commands']['get']('deleteForward');_0x253b08['enableCommand']('deleteForward',(_0x2b1025,_0x3e7630={})=>{const _0x2c9b6f=_0xf595ea['model']['createSelection'](_0xf595ea['model']['document']['selection']);_0x2c9b6f['isCollapsed']&&_0xf595ea['model']['modifySelection'](_0x2c9b6f,{'direction':'forward','unit':_0x3e7630['unit']});const _0xc0bc12=_0x2c9b6f['getFirstRange'](),_0x1f635e=_0x3a6c5d['fromRange'](_0xc0bc12);let _0x2b0b42;_0x2b1025(_0x3e7630),_0x2b0b42='$graveyard'==_0x1f635e['root']['rootName']?_0xf595ea['model']['createRange'](_0xc0bc12['start']):_0xf595ea['model']['createRange'](_0x1f635e['start'],_0x1f635e['end']),_0x1f635e['detach'](),_0xf595ea['model']['enqueueChange'](_0x3aa6f2['buffer']['batch'],_0x53af37=>{_0x3aa6f2['buffer']['lock'](),_0x53af37['setSelection'](_0x53af37['createRange'](_0x2b0b42['end'])),_0x3aa6f2['buffer']['unlock']();});}),_0xf595ea['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0xf595ea,'merge'),{'priority':'high'}),_0xf595ea['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x388c71,_0xbbfb02,_0x47283e)=>{_0x47283e['options']['showSuggestionHighlights']&&De(_0xf595ea,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x388c71,_0xbbfb02,_0x47283e);},{'priority':'high'}),_0xf595ea['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x1863f2,_0x5d07ce,_0x840d72)=>{const _0x2176a5=_0x840d72['mapper']['markerNameToElements'](_0x5d07ce['markerName']);if(_0x2176a5){for(const _0x25a53d of _0x2176a5)_0x25a53d['is']('uiElement')&&(_0x840d72['mapper']['unbindElementFromMarkerName'](_0x25a53d,_0x5d07ce['markerName']),_0x840d72['writer']['remove'](_0x25a53d));}},{'priority':'high'});}}class W extends _0x2b6060{['afterInit'](){const _0x225f69=this['editor'];if(!_0x225f69['plugins']['has']('ListEditing'))return;const _0x5a0f46=_0x225f69['locale'],_0x1cddb3=_0x225f69['plugins']['get']('TrackChangesEditing'),_0x2b4949=_0x225f69['plugins']['has']('TodoListEditing'),_0x314c4f=!!_0x225f69['config']['get']('list.multiBlock');function _0x595842(_0x171e8e){return{'type':'format','content':''+c(_0x5a0f46,'*Set\x20format:*\x20%0',_0x171e8e)};}function _0x5c27f5(_0x14610e){return{'type':'format','content':''+c(_0x5a0f46,'*Remove\x20format:*\x20%0',_0x14610e)};}_0x1cddb3['enableDefaultAttributesIntegration']('numberedList'),_0x1cddb3['enableDefaultAttributesIntegration']('bulletedList'),_0x1cddb3['enableDefaultAttributesIntegration']('customNumberedList'),_0x1cddb3['enableDefaultAttributesIntegration']('customBulletedList'),_0x1cddb3['enableDefaultAttributesIntegration']('indentList'),_0x1cddb3['enableDefaultAttributesIntegration']('outdentList'),_0x1cddb3['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x1cddb3['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x1cddb3['registerBlockAttribute']('listItemId'),_0x1cddb3['registerBlockAttribute']('listType'),_0x1cddb3['registerBlockAttribute']('listIndent'),_0x314c4f&&(_0x1cddb3['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x1cddb3['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2b4949&&(_0x1cddb3['enableDefaultAttributesIntegration']('todoList'),_0x1cddb3['enableDefaultAttributesIntegration']('checkTodoList'),_0x1cddb3['registerBlockAttribute']('todoListChecked'),_0x1cddb3['descriptionFactory']['registerDescriptionCallback'](_0x26c7c5=>{const {data:_0x4260d1}=_0x26c7c5;if(_0x4260d1&&'todoListChecked'==_0x4260d1['key'])return{'type':'format','content':_0x4260d1['newValue']?c(_0x5a0f46,'*Check\x20item*'):c(_0x5a0f46,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x3cb6e3=>{if(_0x3cb6e3['batch']['isUndo'])return!0x1;let _0x36b373=!0x1;const _0x27061a=_0x1cddb3['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xc893d9=>'todoListChecked'===_0x1cddb3['_getAttributeKey'](_0xc893d9));for(const _0x274ada of _0x27061a){'todo'!=_0x274ada['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x1cddb3['_findSuggestions'](_0x274ada['getFirstRange'](),'attribute')['find'](_0x124c5f=>'listType'===_0x1cddb3['_getAttributeKey'](_0x124c5f['suggestion']))||(_0x3cb6e3['removeMarker'](_0x274ada['getFirstMarker']()),_0x36b373=!0x0));}return _0x36b373;})),_0x1cddb3['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x5a0f46,'FORMAT_INDENT'));const _0x2a02f5={'type':'format','content':''};_0x1cddb3['descriptionFactory']['registerDescriptionCallback'](_0x52d1ad=>{const {data:_0x76b47}=_0x52d1ad;if(!_0x76b47||'listType'!=_0x76b47['key'])return;let _0x17cdc0=_0x52d1ad['head'];for(;_0x17cdc0;){if(_0x17cdc0['data']&&(('listStyle'==_0x17cdc0['data']['key']||'listMarkerStyle'==_0x17cdc0['data']['key'])&&(_0x17cdc0['data']['newValue']&&'default'!=_0x17cdc0['data']['newValue']||'default'!=_0x17cdc0['data']['oldValue']&&!_0x76b47['newValue'])||!_0x314c4f&&_0x17cdc0['data']['key']==u))return _0x2a02f5;_0x17cdc0=_0x17cdc0['next'];}if(null==_0x76b47['newValue'])switch(_0x76b47['oldValue']){case'bulleted':return _0x5c27f5(c(_0x5a0f46,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5c27f5(c(_0x5a0f46,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5c27f5(c(_0x5a0f46,'ELEMENT_TODO_LIST'));}switch(_0x76b47['newValue']){case'bulleted':return _0x595842(c(_0x5a0f46,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x595842(c(_0x5a0f46,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x595842(c(_0x5a0f46,'ELEMENT_TODO_LIST'));}}),_0x1cddb3['descriptionFactory']['registerDescriptionCallback'](_0x4dd475=>{const {data:_0x3f67b5}=_0x4dd475;if(_0x3f67b5&&'listIndent'==_0x3f67b5['key'])return null==_0x3f67b5['newValue']||null==_0x3f67b5['oldValue']&&0x0==_0x3f67b5['newValue']?_0x2a02f5:void 0x0;}),_0x1cddb3['descriptionFactory']['registerDescriptionCallback'](_0x525c3=>{if('attribute'!=_0x525c3['type'])return;const {data:_0x2776e1}=_0x525c3;if(!_0x2776e1||'listItemId'!=_0x2776e1['key'])return;const _0x179d00=Te(_0x525c3);return'newValue'==_0x179d00?{'type':'format','content':c(_0x5a0f46,'*Merge:*\x20list\x20item')}:'oldValue'==_0x179d00?{'type':'format','content':c(_0x5a0f46,'*Split:*\x20list\x20item')}:_0x2a02f5;}),_0x225f69['model']['document']['registerPostFixer'](_0xfc38ba=>this['listItemIdFixer'](_0xfc38ba)),_0x225f69['model']['document']['registerPostFixer'](_0x6dd309=>this['noTrackChangesFixer'](_0x6dd309)),_0x225f69['model']['document']['on']('change:data',(_0x7f99c4,_0x401e44)=>{if(_0x401e44['isUndo']||!_0x401e44['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0xfe4a1d){if(_0xfe4a1d['batch']['isUndo']||!_0xfe4a1d['batch']['isLocal'])return!0x1;let _0x388c35=!0x1;const _0xaad2d1=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4a91c3=>_0x4a91c3['data']&&'listItemId'==_0x4a91c3['data']['key'])['filter'](_0x247248=>_0x247248['data']['newValue']&&_0x247248['data']['oldValue']);for(const _0x482694 of _0xaad2d1)Te(_0x482694)||(_0xfe4a1d['removeMarker'](_0x482694['getFirstMarker']()),_0x388c35=!0x0);return _0x388c35;}['noTrackChangesFixer'](_0x56ed98){if(_0x56ed98['batch']['isUndo']||!_0x56ed98['batch']['isLocal'])return!0x1;const _0x492bac=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x492bac['trackChangesCommand']['value'])return!0x1;let _0x12e2f2=!0x1;const _0x347786=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x5c1c84=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x56130c=>'attribute'==_0x56130c['type'])['filter'](_0x7183d2=>_0x347786['includes'](_0x7183d2['attributeKey']));if(0x0==_0x5c1c84['length'])return _0x12e2f2;for(const _0x47fee3 of _0x5c1c84){const _0x4035d6=_0x492bac['_findSuggestions'](_0x47fee3['range'],'attribute')['filter'](_0x4f40d0=>!_0x4f40d0['meta']['isNextTo'])['map'](_0x1b89bc=>_0x1b89bc['suggestion'])['filter'](_0x8ad732=>{const _0x5964d1=_0x492bac['_getAttributeKey'](_0x8ad732);return _0x347786['includes'](_0x5964d1);});if(_0x4035d6['length']){for(const _0x283313 of _0x4035d6)_0x56ed98['removeMarker'](_0x283313['getFirstMarker']());_0x12e2f2=!0x0;}}return _0x12e2f2;}['assureChains'](){const _0x5d79a4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4410ba=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x2295da;const _0x534433=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x35c3de=>{if(_0x35c3de['data']['oldRange']||!_0x35c3de['data']['newRange'])return null;if(!_0x35c3de['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x1ea09d}=_0x5d79a4['_splitMarkerName'](_0x35c3de['name']);if(!_0x5d79a4['hasSuggestion'](_0x1ea09d))return null;const _0x2b3c1a=_0x5d79a4['getSuggestion'](_0x1ea09d);return _0x4410ba['includes'](_0x2b3c1a['data']['key']);})['map'](_0x604152=>{const {id:_0x45c500}=_0x5d79a4['_splitMarkerName'](_0x604152['name']),_0x5802a8=_0x5d79a4['getSuggestion'](_0x45c500);return _0x2295da=_0x5802a8['attributes']['groupId'],_0x5802a8['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x534433['size'])return;const _0x203438=_0x5d79a4['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x49bcb2=>'attribute'==_0x49bcb2['type']&&_0x49bcb2['data']&&_0x4410ba['includes'](_0x49bcb2['data']['key'])&&_0x49bcb2['attributes']['groupId']!=_0x2295da)['map'](_0x438a24=>({'listItem':_0x438a24['getFirstRange']()['start']['nodeAfter'],'groupId':_0x438a24['attributes']['groupId']})),_0x3df279=new Set();for(const {groupId:_0x5daae7,listItem:_0x4a79ff}of _0x203438)_0x534433['has'](_0x4a79ff)&&_0x3df279['add'](_0x5daae7);for(const _0x332ada of _0x5d79a4['getSuggestions']())_0x3df279['has'](_0x332ada['attributes']['groupId'])&&_0x332ada['setAttribute']('groupId',_0x2295da);}['_supportLegacySuggestions'](){const _0x35d29c=this['editor'],_0x49f554=_0x35d29c['locale'],_0x467938=_0x35d29c['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x467938['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x241048,_0x28d232){const _0x55caa1=[];for(let _0x194185 of _0x241048)_0x194185['start']['nodeAfter']===_0x194185['end']['parent']&&(_0x194185=_0x35d29c['model']['createRange'](_0x35d29c['model']['createPositionAt'](_0x194185['start']['nodeAfter'],0x0))),_0x55caa1['push'](_0x194185);_0x35d29c['model']['change'](_0x3fe545=>{const _0x13b1a6=_0x35d29c['model']['document']['selection'],_0x275abc=Array['from'](_0x13b1a6['getRanges']())['map'](_0x30c6fa=>_0x3a6c5d['fromRange'](_0x30c6fa));_0x3fe545['setSelection'](_0x55caa1),_0x35d29c['commands']['get'](_0x28d232['commandName'])['refresh'](),_0x28d232['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x35d29c['execute'](_0x28d232['commandName'],..._0x28d232['commandParams']),_0x3fe545['setSelection'](_0x275abc);for(const _0x503434 of _0x275abc)_0x503434['detach']();});}),_0x467938['descriptionFactory']['registerElementLabel'](function(_0x5e74be){const _0x44e2cd=!_0x35d29c['model']['schema']['isObject'](_0x5e74be),_0x5223cf=_0x5e74be['previousSibling'],_0xdee19b=_0x5e74be['nextSibling'],_0x58207b=_0x5e74be['getAttribute']('listItemId'),_0x3e0fbd=!_0x5223cf||_0x5223cf['getAttribute']('listItemId')!==_0x58207b,_0x7666b7=!_0xdee19b||_0xdee19b['getAttribute']('listItemId')!==_0x58207b;return _0x44e2cd&&Boolean(_0x58207b)&&_0x3e0fbd&&_0x7666b7;},_0x866103=>c(_0x49f554,'ELEMENT_LIST_ITEM',_0x866103));}['_registerLegacyDescription'](){const _0x4bed99=this['editor'],_0x68d8f3=_0x4bed99['locale'];function _0x18cc8a(_0x53265b){const _0x14cd38=_0x4bed99['commands']['get']('bulletedList')['value'],_0x26615a=_0x4bed99['commands']['get']('numberedList')['value'];return'numberedList'===_0x53265b?_0x14cd38:_0x26615a;}_0x4bed99['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x3d51a9){if('formatBlock'!=_0x3d51a9['type'])return;const {data:_0x42c5f9}=_0x3d51a9;if(!_0x42c5f9)return;let _0x3ce7fd,_0xded1e9,_0x407ba9,_0x3d0344;switch(_0x42c5f9['commandName']){case'bulletedList':_0x407ba9=_0x42c5f9['commandParams'][0x0]['forceValue'],_0x3d0344=_0x18cc8a(_0x42c5f9['commandName']),_0x3ce7fd=_0x407ba9?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3d0344&&_0x4bed99['config']['get']('list.multiBlock')||(_0x3ce7fd='*Change\x20to:*\x20%0'),_0xded1e9={'type':'format','content':c(_0x68d8f3,_0x3ce7fd,c(_0x68d8f3,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x407ba9=_0x42c5f9['commandParams'][0x0]['forceValue'],_0x3d0344=_0x18cc8a(_0x42c5f9['commandName']),_0x3ce7fd=_0x407ba9?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3d0344&&_0x4bed99['config']['get']('list.multiBlock')||(_0x3ce7fd='*Change\x20to:*\x20%0'),_0xded1e9={'type':'format','content':c(_0x68d8f3,_0x3ce7fd,c(_0x68d8f3,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x3ce7fd='*Indent:*\x20%0',_0xded1e9={'type':'format','content':c(_0x68d8f3,_0x3ce7fd,c(_0x68d8f3,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x3ce7fd=function(_0x5196de){const _0x2f1cdb=_0x5196de['getFirstRange']();let _0x2d8ef1=_0x2f1cdb['start']['nodeAfter'];for(;_0x2d8ef1&&_0x2f1cdb['containsItem'](_0x2d8ef1);){if(_0x2d8ef1['getAttribute']('listIndent')>0x0)return!0x1;_0x2d8ef1=_0x2d8ef1['nextSibling'];}return!0x0;}(_0x3d51a9)?c(_0x68d8f3,'*Format:*\x20remove\x20from\x20%0',c(_0x68d8f3,function(_0x156464){return'ELEMENT_'+_0x156464['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x3d51a9))):c(_0x68d8f3,'*Outdent:*\x20%0',c(_0x68d8f3,'ELEMENT_LIST_ITEM')),_0xded1e9={'type':'format','content':_0x3ce7fd};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x42c5f9['multipleBlocks']&&(_0x3ce7fd='*Merge:*\x20%0',_0xded1e9={'type':'deletion','content':c(_0x68d8f3,_0x3ce7fd,c(_0x68d8f3,'ELEMENT_LIST_ITEM'))});}return _0xded1e9;});}}function Te(_0x113971){let _0x467527=_0x113971['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x467527;){const _0x5cd3f1=_0x467527['getAttribute']('listItemId');if(!_0x5cd3f1)return!0x1;if(_0x5cd3f1==_0x113971['data']['newValue'])return'newValue';if(_0x5cd3f1==_0x113971['data']['oldValue'])return'oldValue';_0x467527=_0x467527['previousSibling'];}return!0x1;}class Se extends _0x2b6060{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x1c6577=this['editor']['config']['get']('list.properties'),_0xad6b89=this['editor']['plugins']['get']('TrackChangesEditing');_0x1c6577['styles']&&(_0xad6b89['enableDefaultAttributesIntegration']('listStyle'),_0xad6b89['registerBlockAttribute']('listStyle')),_0x1c6577['reversed']&&(_0xad6b89['enableDefaultAttributesIntegration']('listReversed'),_0xad6b89['registerBlockAttribute']('listReversed')),_0x1c6577['startIndex']&&(_0xad6b89['enableDefaultAttributesIntegration']('listStart'),_0xad6b89['registerBlockAttribute']('listStart'));const _0x31ebea={'type':'format','content':''};_0xad6b89['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x5dab6e=this['editor']['locale'];_0xad6b89['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x5dab6e,'FORMAT_LIST_REVERSED')),_0xad6b89['descriptionFactory']['registerDescriptionCallback'](_0x33c4cc=>{const {data:_0x13464b}=_0x33c4cc;if(_0x13464b&&'listReversed'==_0x13464b['key'])return null==_0x13464b['newValue']||0x0==_0x13464b['newValue']&&null==_0x13464b['oldValue']?_0x31ebea:void 0x0;}),_0xad6b89['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x5dab6e,'FORMAT_LIST_START')),_0xad6b89['descriptionFactory']['registerDescriptionCallback'](_0x4f55a6=>{const {data:_0x2ff811}=_0x4f55a6;if(_0x2ff811&&'listStart'==_0x2ff811['key'])return null==_0x2ff811['newValue']||0x1==_0x2ff811['newValue']&&null==_0x2ff811['oldValue']?_0x31ebea:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x172229=>{if(_0x172229['batch']['isUndo'])return!0x1;let _0x56aefc=!0x1;const _0x347a2b=_0xad6b89['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x341478=>{const _0x134229=_0xad6b89['_getAttributeKey'](_0x341478);return'listStart'==_0x134229||'listReversed'==_0x134229;});for(const _0x3a6ccb of _0x347a2b){const _0x167cfd=_0x3a6ccb['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x167cfd||'customNumbered'==_0x167cfd)continue;_0xad6b89['_findSuggestions'](_0x3a6ccb['getFirstRange'](),'attribute')['find'](_0x56644d=>'listType'==_0xad6b89['_getAttributeKey'](_0x56644d['suggestion']))||(_0x172229['removeMarker'](_0x3a6ccb['getFirstMarker']()),_0x56aefc=!0x0);}return _0x56aefc;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x42c03c){const _0x98fe3=this['editor']['locale'],{data:_0x276b45}=_0x42c03c,_0x8177fd={'type':'format','content':''};if(!_0x276b45||'listStyle'!=_0x276b45['key'])return;if(!_0x276b45['oldValue'])return'default'==_0x276b45['newValue']?_0x8177fd:{'type':'format','content':''+c(_0x98fe3,'*Set\x20format:*\x20%0',c(_0x98fe3,this['_getTranslationKeyForListStyle'](_0x276b45['newValue'])))};if(!_0x276b45['newValue']){if('default'==_0x276b45['oldValue'])return _0x8177fd;let _0x452759=_0x42c03c['head'];for(;_0x452759;){if(_0x452759['data']&&'listType'==_0x452759['data']['key']&&_0x452759['data']['newValue'])return _0x8177fd;_0x452759=_0x452759['next'];}return{'type':'format','content':''+c(_0x98fe3,'*Remove\x20format:*\x20%0',c(_0x98fe3,this['_getTranslationKeyForListStyle'](_0x276b45['oldValue'])))};}if('default'!=_0x276b45['newValue'])return{'type':'format','content':''+c(_0x98fe3,'*Set\x20format:*\x20%0',c(_0x98fe3,this['_getTranslationKeyForListStyle'](_0x276b45['newValue'])))};let _0x4ce04e=_0x42c03c['head'];for(;_0x4ce04e;){if(_0x4ce04e['data']&&'listType'==_0x4ce04e['data']['key']&&_0x4ce04e['data']['newValue']&&_0x4ce04e['data']['oldValue'])return _0x8177fd;_0x4ce04e=_0x4ce04e['next'];}return{'type':'format','content':c(_0x98fe3,'*Set\x20format:*\x20%0',c(_0x98fe3,'ELEMENT_'+_0x42c03c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x56c1df=this['editor'],_0x9a5777=_0x56c1df['locale'];_0x56c1df['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b0326=>{if('formatBlock'!=_0x1b0326['type'])return;const {data:_0x4afb49}=_0x1b0326;if(!_0x4afb49)return;let _0x4c0623,_0x4bcdec;switch(_0x4afb49['commandName']){case'listStyle':_0x4c0623='*Change\x20to:*\x20%0',_0x4bcdec={'type':'format','content':c(_0x9a5777,_0x4c0623,c(_0x9a5777,this['_getTranslationKeyForListStyle'](_0x4afb49['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4c0623=_0x4afb49['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4bcdec={'type':'format','content':c(_0x9a5777,_0x4c0623)};break;case'listStart':_0x4c0623='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4bcdec={'type':'format','content':c(_0x9a5777,_0x4c0623,_0x4afb49['commandParams'][0x0]['startIndex'])};}return _0x4bcdec;});}['_getTranslationKeyForListStyle'](_0x485f6d){return'ELEMENT_'+function(_0x2d55ae){if(_e['includes'](_0x2d55ae))return'bulleted';if(Re['includes'](_0x2d55ae))return'numbered';return null;}(_0x485f6d)['toUpperCase']()+'_LIST_'+_0x485f6d['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x2b6060{['afterInit'](){const _0x240ca0=this['editor'];_0x240ca0['commands']['get']('emoji')&&_0x240ca0['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x2b6060{static get['requires'](){return[_0x52261c];}['init'](){const _0x474d05=this['editor'],_0x1312ca=_0x474d05['plugins']['get']('TrackChangesEditing'),_0x367508=_0x474d05['commands']['get']('enter');_0x1312ca['enableCommand']('enter',()=>{_0x474d05['model']['change'](_0xe3ec6d=>{const _0x5b76b3=_0x474d05['model']['document']['selection'],_0x2d47d1=_0x5b76b3['getFirstPosition'](),_0x26eada=_0x3a6c5d['fromRange'](_0x5b76b3['getFirstRange']());if(_0x367508['enterBlock'](_0xe3ec6d)){const _0x5f1ed8=_0x474d05['model']['createPositionAt'](_0x2d47d1['parent']['nextSibling'],0x0),_0x1bee28=_0xe3ec6d['createRange'](_0x2d47d1,_0x5f1ed8);_0x1312ca['markInsertion'](_0x1bee28);}else _0xe3ec6d['setSelection'](_0xe3ec6d['createRange'](_0x26eada['end']));_0x26eada['detach'](),_0x367508['fire']('afterExecute',{'writer':_0xe3ec6d});});}),_0x474d05['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x474d05,'split'),{'priority':'high'}),_0x474d05['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x2b093b,_0x45ab13,_0x2e40ab)=>{const _0xb5a257=_0x2e40ab['mapper']['markerNameToElements'](_0x45ab13['markerName']);if(_0xb5a257){for(const _0x40d373 of _0xb5a257)_0x40d373['hasClass']('ck-suggestion-marker-split')&&(_0x2e40ab['mapper']['unbindElementFromMarkerName'](_0x40d373,_0x45ab13['markerName']),_0x2e40ab['writer']['remove'](_0x40d373));}},{'priority':'high'}),_0x474d05['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x51bb12,_0x222d4c,_0x5c37ba)=>{_0x5c37ba['options']['showSuggestionHighlights']&&De(_0x474d05,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x51bb12,_0x222d4c,_0x5c37ba);},{'priority':'high'});}}class Z extends _0x2b6060{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x3ceef6=this['editor']['plugins']['get']('TrackChangesEditing');_0x3ceef6['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x3ceef6['enableCommand']('findNext'),_0x3ceef6['enableCommand']('findPrevious'),_0x3ceef6['enableCommand']('replace'),_0x3ceef6['enableCommand']('replaceAll');}['handleFindCommand'](_0x4f294f,_0x2e657b,_0x5f34f5={}){const _0x1b941f=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x4f294f(_0x2782f8=>{let _0x302e8a=('string'==typeof _0x2e657b?_0x1b941f['findByTextCallback'](_0x2e657b,_0x5f34f5):_0x2e657b)(_0x2782f8);Array['isArray'](_0x302e8a)&&(_0x302e8a={'results':_0x302e8a,'searchText':'string'==typeof _0x2e657b?_0x2e657b:''});const _0x5e2821=_0x302e8a['results']['filter'](_0x5a9e88=>!0x1===this['_isInDeletionRange'](_0x5a9e88,_0x2782f8['item']));return{..._0x302e8a,'results':_0x5e2821};},_0x5f34f5);}['_isInDeletionRange'](_0x5ec899,_0x30e005){const _0x5b03cc=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x30e005,_0x5ec899['start']),this['editor']['model']['createPositionAt'](_0x30e005,_0x5ec899['end']));for(const _0x35609d of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x5b03cc['getIntersection'](_0x35609d['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x2b6060{['afterInit'](){const _0x5ab3e7=this['editor']['locale'],_0x3bc2b8=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x4ba329,commandName:_0x1eb303}of eo)this['editor']['plugins']['has'](_0x4ba329)&&(_0x3bc2b8['enableDefaultAttributesIntegration'](_0x1eb303),_0x3bc2b8['registerInlineAttribute'](_0x1eb303));_0x3bc2b8['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x5ab3e7,'FORMAT_FONT_SIZE')),_0x3bc2b8['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x5ab3e7,'FORMAT_FONT_FAMILY')),_0x3bc2b8['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x5ab3e7,'FORMAT_FONT_COLOR')),_0x3bc2b8['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x5ab3e7,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4f5a87=this['editor'],_0x2f5973=_0x4f5a87['locale'];_0x4f5a87['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x465ed0=>{const _0x4bd4a5=_0x2f5973['t'];if('formatInline'!=_0x465ed0['type'])return;const {data:_0xda26dc}=_0x465ed0;if(null!=_0xda26dc){if('fontSize'==_0xda26dc['commandName']){const _0x51bf2f=_0xda26dc['commandParams'][0x0]['value'];if(_0x51bf2f){const _0x2a7896=_0x4bd4a5(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x2a2bc8=>_0x2a2bc8['model']==_0x51bf2f)['title'])['toLowerCase']();return{'type':'format','content':c(_0x2f5973,'*Set\x20font\x20size:*\x20%0',_0x2a7896)};}return{'type':'format','content':c(_0x2f5973,'*Reset\x20font\x20size*')};}if('fontFamily'==_0xda26dc['commandName']){const _0x514764=_0xda26dc['commandParams'][0x0]['value'];return _0x514764?{'type':'format','content':c(_0x2f5973,'*Set\x20font\x20family:*\x20%0',_0x514764)}:{'type':'format','content':c(_0x2f5973,'*Reset\x20font\x20family*')};}if('fontColor'==_0xda26dc['commandName']){const _0x309b13=_0xda26dc['commandParams'][0x0]['value'];if(_0x309b13){const _0x5c8e9e=_0x5a756e(this['editor']['config']['get']('fontColor.colors'))['find'](_0x3e58ea=>_0x3e58ea['model']==_0x309b13);let _0x1dad48=_0x309b13,_0x861167='';return _0x5c8e9e&&(_0x1dad48=_0x5c8e9e['label'],_0x861167=_0x4bd4a5(_0x1dad48)['toLowerCase']()),{'type':'format','content':c(_0x2f5973,'*Set\x20font\x20color:*\x20%0',_0x861167)['trim'](),'color':{'value':_0x309b13,'title':_0x861167||_0x1dad48}};}return{'type':'format','content':c(_0x2f5973,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0xda26dc['commandName']){const _0x58e241=_0xda26dc['commandParams'][0x0]['value'];if(_0x58e241){const _0x3fe40e=_0x5a756e(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x3e57bf=>_0x3e57bf['model']==_0x58e241);let _0x3cbd89=_0x58e241,_0x59f052='';return _0x3fe40e&&(_0x3cbd89=_0x3fe40e['label'],_0x59f052=_0x4bd4a5(_0x3cbd89)['toLowerCase']()),{'type':'format','content':c(_0x2f5973,'*Set\x20font\x20background\x20color:*\x20%0',_0x59f052)['trim'](),'color':{'value':_0x58e241,'title':_0x59f052||_0x3cbd89}};}return{'type':'format','content':c(_0x2f5973,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x2b6060{['afterInit'](){const _0x31d7d1=this['editor'],_0x4d3396=_0x31d7d1['plugins']['get']('TrackChangesEditing'),_0x2ad3a2=_0x31d7d1['commands']['get']('copyFormat'),_0x177c3e=_0x31d7d1['commands']['get']('pasteFormat');_0x2ad3a2&&_0x177c3e&&(_0x4d3396['enableDefaultAttributesIntegration']('pasteFormat'),_0x4d3396['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x459aa8=this['editor'],_0x59bdd5=_0x459aa8['locale'];_0x459aa8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4fb9a4=>{if('formatBlock'!=_0x4fb9a4['type']&&'formatInline'!=_0x4fb9a4['type'])return;const {data:_0x1663c9}=_0x4fb9a4;if(_0x1663c9&&'pasteFormat'===_0x1663c9['commandName']){const _0x47953d=[],_0x27242a=_0x1663c9['commandParams'][0x0];for(const [_0x373ff6,_0x3e63b1]of Object['entries'](_0x27242a))_0x47953d['push'](ro(_0x459aa8,_0x373ff6,_0x3e63b1));return _0x47953d['length']?{'type':'format','content':c(_0x59bdd5,'*Set\x20format\x20to:*\x20%0',_0x47953d['join'](',\x20'))}:{'type':'format','content':c(_0x59bdd5,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x3e6bff,_0x10e464,_0x3fb9cb){const _0x234909=_0x3e6bff['locale']['t'],_0x1df4d1=_0x10e464['split'](/(?=[A-Z])/)['join']('\x20'),_0x1d6049=_0x234909(_0x1df4d1['charAt'](0x0)['toUpperCase']()+_0x1df4d1['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x3fb9cb)return _0x1d6049;if('fontColor'===_0x10e464||'fontBackgroundColor'===_0x10e464){const _0x3e02bf=_0x5a756e(_0x3e6bff['config']['get']('fontColor.colors'))['find'](_0x18264f=>_0x18264f['model']==_0x3fb9cb);return _0x1d6049+'\x20('+(_0x3e02bf?_0x234909(_0x3e02bf['label'])['toLowerCase']():_0x3fb9cb)+')';}if('fontSize'===_0x10e464&&isNaN(parseFloat(_0x3fb9cb))){const _0x431e0e=_0x3e6bff['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x3e6bff['config']['get']('fontSize.options'))['find'](_0x180aba=>_0x180aba['model']==_0x3fb9cb);return _0x1d6049+'\x20('+(_0x431e0e?_0x234909(_0x431e0e['title'])['toLowerCase']():_0x3fb9cb)+')';}return _0x1d6049+'\x20('+_0x3fb9cb+')';}class nt extends _0x2b6060{['_headingOptions'];['afterInit'](){const _0x270087=this['editor'];if(!_0x270087['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x270087['config']['get']('heading.options');const _0x5077e5=_0x270087['locale'],_0x24c7f8=_0x270087['plugins']['get']('TrackChangesEditing');_0x24c7f8['enableDefaultAttributesIntegration']('heading');for(const _0xc54c8 of this['_headingOptions'])'paragraph'!=_0xc54c8['model']&&_0x24c7f8['descriptionFactory']['registerElementLabel'](_0xc54c8['model'],_0x5c2bb8=>{const _0x505ae0=this['_getHeadingLevel'](_0xc54c8['model']);return null!==_0x505ae0?_0x5b11d8(_0x5c2bb8,_0x505ae0):_0x21d5db(_0x5c2bb8,_0xc54c8['title']);});function _0x5b11d8(_0xcd2a0,_0x41d5a4){return c(_0x5077e5,'ELEMENT_HEADING',[_0xcd2a0,_0x41d5a4]);}function _0x21d5db(_0x4c4650,_0x582fee){return c(_0x5077e5,'ELEMENT_HEADING_CUSTOM',[_0x4c4650,_0x582fee]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x570f83=this['editor'],_0x3a77b2=_0x570f83['locale'];function _0x27113d(_0x3984e1,_0x2cd53a){return c(_0x3a77b2,'ELEMENT_HEADING_CUSTOM',[_0x3984e1,_0x2cd53a]);}_0x570f83['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x578a6c=>{if('formatBlock'!=_0x578a6c['type'])return;const {data:_0x4f4c11}=_0x578a6c;if(_0x4f4c11&&'heading'==_0x4f4c11['commandName']){const _0x4f9f69=_0x4f4c11['commandParams'][0x0]['value'],_0x1b0df5=this['_getHeadingLevel'](_0x4f9f69);if(null!==_0x1b0df5)return{'type':'format','content':c(_0x3a77b2,'*Change\x20to:*\x20%0',(_0x2f9439=0x1,_0x363264=_0x1b0df5,c(_0x3a77b2,'ELEMENT_HEADING',[_0x2f9439,_0x363264])))};const _0x2467e0=this['_headingOptions']['find'](_0x6ddaf4=>_0x6ddaf4['model']===_0x4f9f69)['title'];return{'type':'format','content':c(_0x3a77b2,'*Change\x20to:*\x20%0',_0x27113d(0x1,_0x2467e0))};}var _0x2f9439,_0x363264;});}['_getHeadingLevel'](_0x3557df){const _0x57383d=_0x3557df['match'](/^heading(\d+)/);if(_0x57383d)return _0x57383d[0x1];const _0x49bf70=this['_headingOptions']?.['find'](_0x1cd153=>_0x1cd153['model']==_0x3557df);if(_0x49bf70&&_0x49bf70['view']){const _0x40ccde=_0x49bf70['view'],_0x1c2af7=(_0x40ccde['name']??_0x40ccde)['match'](/^h(\d+)/);if(_0x1c2af7)return _0x1c2af7[0x1];}return null;}}class it extends _0x2b6060{['afterInit'](){const _0x28d001=this['editor'];if(!_0x28d001['plugins']['has']('HighlightEditing'))return;const _0x4562e9=_0x28d001['plugins']['get']('TrackChangesEditing'),_0x4e369c=_0x28d001['locale'];_0x4562e9['enableDefaultAttributesIntegration']('highlight'),_0x4562e9['registerInlineAttribute']('highlight'),_0x4562e9['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x4e369c,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x147fd3=this['editor'],_0x154ffe=_0x147fd3['locale'];_0x147fd3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x469889=>{if('formatInline'!=_0x469889['type'])return;const {data:_0x32f0e6}=_0x469889;if(_0x32f0e6&&'highlight'==_0x32f0e6['commandName']){const _0x4f70f8=_0x154ffe['t'],_0x3ceb83=_0x32f0e6['commandParams'][0x0]['value'];if(_0x3ceb83){const _0x48eca1=_0x147fd3['config']['get']('highlight.options')['find'](_0x457d62=>_0x457d62['model']==_0x3ceb83),_0x162b51=_0x4f70f8(_0x48eca1['title'])['toLowerCase']();return{'type':'format','content':c(_0x154ffe,'*Set\x20highlight:*\x20%0',_0x162b51),'color':{'value':_0x48eca1['color'],'title':_0x48eca1['title']}};}return{'type':'format','content':c(_0x154ffe,'*Remove\x20highlight*',c(_0x154ffe,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x2b6060{['afterInit'](){const _0x487988=this['editor'];if(!_0x487988['plugins']['has']('HorizontalLineEditing'))return;_0x487988['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x515492=_0x487988['plugins']['get']('TrackChangesEditing'),_0x299c08=_0x487988['locale'];_0x515492['descriptionFactory']['registerElementLabel']('horizontalLine',_0x3d97ac=>c(_0x299c08,'ELEMENT_HORIZONTAL_LINE',_0x3d97ac)),_0x487988['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x29c4e3,{writer:_0x56877f,options:_0x4a13cf})=>{if(!_0x4a13cf['showSuggestionHighlights'])return null;const _0x41a489=_0x56877f['createContainerElement']('div'),_0x4ed58f=_0x56877f['createEmptyElement']('hr');return _0x56877f['addClass']('ck-horizontal-line',_0x41a489),_0x56877f['insert'](_0x56877f['createPositionAt'](_0x41a489,0x0),_0x4ed58f),_0x41a489;},'converterPriority':'high'});}}class ot extends _0x2b6060{['afterInit'](){const _0x2ced51=this['editor'];if(!_0x2ced51['plugins']['has']('HtmlEmbed'))return;const _0x389a85=_0x2ced51['plugins']['get']('TrackChangesEditing'),_0x5f07a4=_0x2ced51['locale'];_0x389a85['descriptionFactory']['registerElementLabel']('rawHtml',_0x4252c6=>c(_0x5f07a4,'ELEMENT_HTML_EMBED',_0x4252c6)),_0x389a85['enableDefaultAttributesIntegration']('htmlEmbed'),_0x389a85['registerBlockAttribute']('value'),_0x389a85['descriptionFactory']['registerDescriptionCallback'](_0x46e4a8=>{if('attribute'!=_0x46e4a8['type'])return;const {data:_0x36a297}=_0x46e4a8;if(_0x36a297&&'value'==_0x36a297['key']&&_0x46e4a8['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x19a8d3=c(_0x5f07a4,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x5f07a4,'*Change\x20%0\x20content*',_0x19a8d3)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x142ee4=this['editor'],_0x8d967b=_0x142ee4['locale'];_0x142ee4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f687f=>{if('formatBlock'!=_0x4f687f['type'])return;const {data:_0xab4aea}=_0x4f687f;if(_0xab4aea&&'htmlEmbed'==_0xab4aea['commandName']){const _0x275916=c(_0x8d967b,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x8d967b,'*Change\x20%0\x20content*',_0x275916)};}});}}class rt extends _0x2b6060{['afterInit'](){const _0x8577a3=this['editor'];if(!_0x8577a3['plugins']['has']('ImageEditing'))return;const _0x2c1f17=_0x8577a3['plugins']['get']('TrackChangesEditing'),_0x17b09b=_0x8577a3['plugins']['get']('ImageUtils'),_0x4d99de=_0x8577a3['locale'];_0x2c1f17['enableCommand']('insertImage'),_0x2c1f17['descriptionFactory']['registerElementLabel']('imageBlock',_0x43c9f0=>c(_0x4d99de,'ELEMENT_IMAGE',_0x43c9f0)),_0x2c1f17['descriptionFactory']['registerElementLabel']('imageInline',_0x514044=>c(_0x4d99de,'ELEMENT_INLINE_IMAGE',_0x514044)),_0x2c1f17['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x4d99de,'ELEMENT_CAPTION')),_0x8577a3['plugins']['has']('ImageUploadEditing')&&_0x2c1f17['enableCommand']('uploadImage'),_0x8577a3['plugins']['has']('ImageBlockEditing')&&_0x8577a3['plugins']['has']('ImageInlineEditing')&&(_0x2c1f17['enableCommand']('imageTypeInline',(_0x4f1497,_0x35a0db)=>{const _0x389794=_0x17b09b['getClosestSelectedImageElement'](_0x8577a3['model']['document']['selection']);_0x8577a3['model']['change'](()=>{_0x2c1f17['markBlockFormat'](_0x389794,{'commandName':'imageTypeInline','commandParams':[_0x35a0db]},[],'convertBlockImageToInline');});}),_0x2c1f17['enableCommand']('imageTypeBlock',(_0x10ef3d,_0x4a902a)=>{_0x8577a3['model']['change'](_0x278f75=>{let _0x40a4db=_0x17b09b['getClosestSelectedImageElement'](_0x8577a3['model']['document']['selection']),_0x3c9bdd=_0x278f75['createRangeOn'](_0x40a4db);const _0x2382e0=_0x629474['fromPosition'](_0x3c9bdd['start'],'toPrevious'),_0x5f4c4c=_0x629474['fromPosition'](_0x3c9bdd['end'],'toNext');_0x2c1f17['forceDefaultExecution'](()=>_0x10ef3d(_0x4a902a)),_0x40a4db=_0x17b09b['getClosestSelectedImageElement'](_0x8577a3['model']['document']['selection']),_0x3c9bdd=_0x278f75['createRangeOn'](_0x40a4db);const _0x450053=_0x278f75['createRange'](_0x2382e0,_0x5f4c4c);_0x2382e0['detach'](),_0x5f4c4c['detach'](),_0x2c1f17['markBlockFormat'](_0x40a4db,{'commandName':'imageTypeInline','commandParams':[_0x4a902a]},[],'convertInlineImageToBlock'),_0x450053['start']['isBefore'](_0x3c9bdd['start'])&&_0x2c1f17['markInsertion'](_0x278f75['createRange'](_0x450053['start'],_0x3c9bdd['start']),'convertInlineImageToBlock'),_0x3c9bdd['end']['isBefore'](_0x450053['end'])&&_0x2c1f17['markInsertion'](_0x278f75['createRange'](_0x3c9bdd['end'],_0x450053['end']),'convertInlineImageToBlock');});}),_0x2c1f17['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x2c1f17['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x2c1f17['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x2c1f17['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x2c1f17['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x2c1f17['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x4ebb58])=>{const _0x40bdcc=_0x2c1f17['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x74901b=_0x4ebb58['start'],_0x53326f=_0x4ebb58['end'];const _0x4d4390=_0x8577a3['model']['schema']['getNearestSelectionRange'](_0x74901b,'backward'),_0x59e6f2=_0x8577a3['model']['schema']['getNearestSelectionRange'](_0x53326f,'forward');_0x4d4390['isCollapsed']&&(_0x74901b=_0x4d4390['start']),_0x59e6f2['isCollapsed']&&(_0x53326f=_0x59e6f2['end']),_0x40bdcc([_0x8577a3['model']['createRange'](_0x74901b,_0x53326f)]);}),_0x2c1f17['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2034b5),_0x2c1f17['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2034b5)),_0x8577a3['plugins']['has']('ImageCaptionEditing')&&(_0x2c1f17['enableCommand']('toggleImageCaption',(_0x606dec,_0x29d6d8)=>{const _0x4dc0f7=_0x8577a3['plugins']['get']('ImageCaptionUtils');let _0x265651=_0x17b09b['getClosestSelectedImageElement'](_0x8577a3['model']['document']['selection']),_0xdf4b01=_0x4dc0f7['getCaptionFromImageModelElement'](_0x265651);_0x8577a3['model']['change'](()=>{if(_0xdf4b01)return void _0x2c1f17['markDeletion'](_0x8577a3['model']['createRangeOn'](_0xdf4b01));const _0x5e2c9d=_0x17b09b['isBlockImage'](_0x265651);_0x606dec(_0x29d6d8),_0x265651=_0x17b09b['getClosestSelectedImageElement'](_0x8577a3['model']['document']['selection']),_0xdf4b01=_0x4dc0f7['getCaptionFromImageModelElement'](_0x265651),_0x2c1f17['markInsertion'](_0x8577a3['model']['createRangeOn'](_0xdf4b01),_0x5e2c9d?null:'imageCaption');});}),_0x2c1f17['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2034b5));const _0x542829=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4f381e(_0x55eb85,_0x3a93bd){const _0x1e60f1=_0x542829['findIndex'](({type:_0x681624,subType:_0x357669})=>_0x55eb85['type']==_0x681624&&_0x55eb85['subType']==_0x357669),_0x1514df=_0x542829['findIndex'](({type:_0x58084a,subType:_0x58b93e})=>_0x3a93bd['type']==_0x58084a&&_0x3a93bd['subType']==_0x58b93e);if(_0x1e60f1<0x0||_0x1514df<0x0)return!0x1;const _0x3de731=_0x55eb85['getFirstRange'](),_0x3af1fe=_0x3a93bd['getFirstRange']();if((0x0==_0x1e60f1||0x1==_0x1e60f1)&&0x2==_0x1514df&&_0x3de731['isIntersecting'](_0x3af1fe))return!0x0;if(0x2==_0x1e60f1&&0x3==_0x1514df){const _0x422404=_0x2c1f17['_findSuggestions'](_0x3de731,'insertion')['filter'](({suggestion:_0x20f496,meta:_0x4b2d91})=>_0x4b2d91['isOwn']&&'convertInlineImageToBlock'==_0x20f496['subType']);if(_0x422404['length']>0x1&&_0x3af1fe['end']['isEqual'](_0x3de731['start']))return!0x0;if(0x1==_0x422404['length']&&(_0x3de731['start']['isEqual'](_0x3af1fe['end'])||_0x3de731['end']['isEqual'](_0x3af1fe['start'])))return!0x0;}if(0x3==_0x1e60f1&&0x3==_0x1514df&&_0x3de731['start']['isBefore'](_0x3af1fe['start'])){const _0x2bad2b=_0x3de731['end']['nodeAfter'],_0x1b9626=_0x3af1fe['start']['nodeBefore'];return _0x17b09b['isBlockImage'](_0x2bad2b)&&_0x2bad2b===_0x1b9626;}return!0x1;}function _0x2034b5(_0x46901d,_0x56802f){return _0x4f381e(_0x46901d,_0x56802f)?[_0x46901d,_0x56802f]:_0x4f381e(_0x56802f,_0x46901d)?[_0x56802f,_0x46901d]:null;}_0x8577a3['plugins']['has']('ImageResize')&&(_0x2c1f17['enableDefaultAttributesIntegration']('resizeImage'),_0x2c1f17['registerBlockAttribute']('resizedWidth'),_0x2c1f17['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x4d99de,'FORMAT_IMAGE_SIZE'))),_0x8577a3['plugins']['has']('ImageTextAlternativeEditing')&&(_0x2c1f17['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x2c1f17['registerBlockAttribute']('alt')),_0x8577a3['plugins']['has']('PictureEditing')&&(_0x2c1f17['registerBlockAttribute']('sources'),_0x2c1f17['descriptionFactory']['registerDescriptionCallback'](_0xe07ecc=>{if('attribute'!=_0xe07ecc['type'])return;const {data:_0x2fd2cd}=_0xe07ecc;return _0x2fd2cd&&'sources'==_0x2fd2cd['key']?{'type':'format','content':''}:void 0x0;})),_0x8577a3['plugins']['has']('ImageSizeAttributes')&&(_0x2c1f17['registerBlockAttribute']('width'),_0x2c1f17['registerBlockAttribute']('height'),_0x2c1f17['descriptionFactory']['registerDescriptionCallback'](_0x403d16=>{if('attribute'!=_0x403d16['type'])return;const {data:_0x48d0dc}=_0x403d16;return!_0x48d0dc||'width'!=_0x48d0dc['key']&&'height'!=_0x48d0dc['key']?void 0x0:{'type':'format','content':''};})),_0x2c1f17['descriptionFactory']['registerDescriptionCallback'](_0xd8edfb=>{if(!!_0x542829['find'](({type:_0x5109c4,subType:_0x20cd10})=>_0xd8edfb['type']==_0x5109c4&&_0xd8edfb['subType']==_0x20cd10))return _0xd8edfb['previous']?{}:void 0x0;}),_0x2c1f17['descriptionFactory']['registerDescriptionCallback'](_0x29d3b5=>{if('insertion'==_0x29d3b5['type']||'deletion'==_0x29d3b5['type']){const _0x420ac1=_0x29d3b5['getContainedElement']();if(_0x420ac1&&_0x420ac1['is']('element','caption'))return{'type':'insertion'==_0x29d3b5['type']?'addObject':'removeObject','element':_0x420ac1,'quantity':0x1};}}),_0x2c1f17['descriptionFactory']['registerDescriptionCallback'](_0x3780ab=>'formatBlock'==_0x3780ab['type']&&'convertInlineImageToBlock'==_0x3780ab['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x3780ab['type']&&'convertBlockImageToInline'==_0x3780ab['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x2c1f17['descriptionFactory']['registerDescriptionCallback'](_0x1873ef=>{if('attribute'!=_0x1873ef['type'])return;const {data:_0x2d81b4}=_0x1873ef;if(!_0x2d81b4||'alt'!=_0x2d81b4['key'])return;const _0xd81819=_0x2d81b4['newValue'];return _0xd81819?{'type':'format','content':c(_0x4d99de,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xd81819+'\x22')}:{'type':'format','content':c(_0x4d99de,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x27ebce=this['editor'],_0x253bfc=_0x27ebce['locale'];_0x27ebce['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a85f6=>{if('formatBlock'!=_0x3a85f6['type']&&'formatInline'!=_0x3a85f6['type'])return;const {data:_0x3b4d78}=_0x3a85f6;if(_0x3b4d78){if('imageTextAlternative'==_0x3b4d78['commandName']){const _0x34f98a=_0x3b4d78['commandParams'][0x0]['newValue'];return _0x34f98a?{'type':'format','content':c(_0x253bfc,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x34f98a+'\x22')}:{'type':'format','content':c(_0x253bfc,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x3b4d78['commandName']){const _0x3b4e68=_0x3b4d78['commandParams'][0x0]['width'];return _0x3b4e68?{'type':'format','content':c(_0x253bfc,'*Set\x20image\x20width:*\x20%0',_0x3b4e68)}:{'type':'format','content':c(_0x253bfc,'*Reset\x20image\x20width*')};}}});}}class at extends _0x2b6060{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x151f40=this['editor']['locale'],_0x429500=this['editor']['plugins']['get']('TrackChangesEditing');_0x429500['enableDefaultAttributesIntegration']('replaceImageSource'),_0x429500['registerBlockAttribute']('src'),_0x429500['descriptionFactory']['registerDescriptionCallback'](_0x54e113=>{if('attribute'!=_0x54e113['type'])return;const {data:_0x135211}=_0x54e113;return _0x135211&&'src'==_0x135211['key']?_0x135211['newValue']&&_0x135211['oldValue']?{'type':'format','content':c(_0x151f40,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xda040d=this['editor']['plugins']['get']('TrackChangesEditing');_0xda040d['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0xda040d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xda040d['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0xda040d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ccc44=this['editor'],_0x22efe1=_0x4ccc44['locale'];_0x4ccc44['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4a9353=>{if('formatBlock'!=_0x4a9353['type']&&'formatInline'!=_0x4a9353['type'])return;const {data:_0xae7e70}=_0x4a9353;if(!_0xae7e70||'replaceImageSource'!=_0xae7e70['commandName'])return;return{'type':'format','content':c(_0x22efe1,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x2b6060{['afterInit'](){const _0x207e07=this['editor'];if(!_0x207e07['plugins']['has']('ImageStyleEditing'))return;const _0x4e1b45=_0x207e07['plugins']['get']('TrackChangesEditing'),_0x4e23d8=_0x207e07['plugins']['get']('ImageUtils'),_0x483a8a={};_0x4e1b45['enableCommand']('imageStyle',(_0x1d5064,_0x18cb84)=>{const _0xc34361=_0x207e07['plugins']['get']('Users')['me'],_0x346364=_0x207e07['commands']['get']('imageStyle');let _0x4c8a1e=_0x4e23d8['getClosestSelectedImageElement'](_0x207e07['model']['document']['selection']),_0x82cd10=_0x207e07['model']['createRangeOn'](_0x4c8a1e),_0x3b5617=_0x346364['value'];if(_0x3b5617==_0x18cb84['value'])return;const _0x3016d4={'commandName':'imageStyle','commandParams':[_0x18cb84],'formatGroupId':_0x930f5e()};_0x207e07['model']['change'](()=>{if(_0x4e1b45['getSuggestions']()['filter'](_0xd13f18=>_0xd13f18['isInContent']&&_0xc34361==_0xd13f18['author']&&('formatBlock'==_0xd13f18['type']||'formatInline'==_0xd13f18['type'])&&('imageStylePreApply'==_0xd13f18['subType']||'imageStylePostApply'==_0xd13f18['subType'])&&_0xd13f18['getFirstRange']()['isEqual'](_0x82cd10))['forEach'](_0x317428=>_0x4e1b45['discardSuggestion'](_0x317428['head'])),_0x4c8a1e=_0x4e23d8['getClosestSelectedImageElement'](_0x207e07['model']['document']['selection']),_0x82cd10=_0x207e07['model']['createRangeOn'](_0x4c8a1e),_0x346364['refresh'](),_0x207e07['commands']['get']('imageTypeInline')['refresh'](),_0x207e07['commands']['get']('imageTypeBlock')['refresh'](),_0x3b5617=_0x346364['value'],_0x3b5617!=_0x18cb84['value'])return _0x4e23d8['isInlineImage'](_0x4c8a1e)&&_0x346364['shouldConvertImageType'](_0x18cb84['value'],_0x4c8a1e)?(_0x1d5064({..._0x18cb84,'setImageSizes':!0x1}),_0x4c8a1e=_0x4e23d8['getClosestSelectedImageElement'](_0x207e07['model']['document']['selection']),void _0x4e1b45['markBlockFormat'](_0x4c8a1e,{..._0x3016d4,'commandReversedParams':[{'value':_0x3b5617||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x4e23d8['isBlockImage'](_0x4c8a1e)?_0x4e1b45['markBlockFormat'](_0x4c8a1e,_0x3016d4,[],'imageStylePostApply'):_0x4e1b45['markInlineFormat'](_0x82cd10,_0x3016d4,'imageStylePostApply'));});});for(const _0x5b12bf of _0x207e07['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x483a8a[_0x5b12bf['name']]=_0x5b12bf['title']['toLowerCase']();_0x4e1b45['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x4e1b45['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x4e1b45['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x4e1b45['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x3cb5a])=>{_0x4e23d8['setImageNaturalSizeAttributes'](_0x3cb5a['getContainedElement']());}),_0x4e1b45['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2842c3,_0x2bd3a5)=>{_0x4e1b45['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2842c3,{'commandName':_0x2bd3a5['commandName'],'commandParams':_0x2bd3a5['commandReversedParams']});}),_0x4e1b45['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x3ae31b,_0x119c6e){if(_0x527dfd(_0x3ae31b,_0x119c6e))return[_0x3ae31b,_0x119c6e];if(_0x527dfd(_0x119c6e,_0x3ae31b))return[_0x119c6e,_0x3ae31b];return null;});const _0x4e48f4=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x527dfd(_0x5acf27,_0x4a7fa8){const _0x5781bb=_0x4e48f4['findIndex'](({type:_0x22ca6e,subType:_0x44a695})=>_0x5acf27['type']==_0x22ca6e&&_0x5acf27['subType']==_0x44a695),_0x52e9ad=_0x4e48f4['findIndex'](({type:_0x487333,subType:_0x391e76})=>_0x4a7fa8['type']==_0x487333&&_0x4a7fa8['subType']==_0x391e76);if(_0x5781bb<0x0||_0x52e9ad<0x0)return!0x1;const _0x7467dd=_0x5acf27['getFirstRange'](),_0x321204=_0x4a7fa8['getFirstRange']();if((0x0==_0x5781bb||0x1==_0x5781bb)&&0x2==_0x52e9ad&&_0x7467dd['isIntersecting'](_0x321204))return!0x0;if(0x2==_0x5781bb&&0x3==_0x52e9ad){const _0x576307=_0x4e1b45['_findSuggestions'](_0x7467dd,'insertion')['filter'](({suggestion:_0x23f4e9,meta:_0x62785b})=>_0x62785b['isOwn']&&'convertInlineImageToBlock'==_0x23f4e9['subType']);if(_0x576307['length']>0x1&&_0x321204['end']['isEqual'](_0x7467dd['start']))return!0x0;if(0x1==_0x576307['length']&&(_0x7467dd['start']['isEqual'](_0x321204['end'])||_0x7467dd['end']['isEqual'](_0x321204['start'])))return!0x0;}if(0x3==_0x5781bb&&0x3==_0x52e9ad&&_0x7467dd['start']['isBefore'](_0x321204['start'])){const _0x58bef1=_0x7467dd['end']['nodeAfter'],_0x6324b=_0x321204['start']['nodeBefore'];return _0x4e23d8['isBlockImage'](_0x58bef1)&&_0x58bef1===_0x6324b;}return!0x1;}_0x207e07['model']['document']['registerPostFixer'](()=>{let _0x562899=!0x1;const _0x3b10c6=Array['from'](_0x207e07['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x42e42d,data:_0x2e327a}of _0x3b10c6){const {group:_0x18544b,type:_0x79969b,subType:_0x5a9631,id:_0x5e86dd}=_0x4e1b45['_splitMarkerName'](_0x42e42d);if('suggestion'==_0x18544b&&_0x4e1b45['hasSuggestion'](_0x5e86dd)){if('formatBlock'==_0x79969b&&('imageStylePreApply'==_0x5a9631||'imageStylePostApply'==_0x5a9631)){const _0x23c306=_0x4e1b45['getSuggestion'](_0x5e86dd);if(_0x2e327a['newRange']){const _0x23f097=_0x23c306['getFirstRange']()['getContainedElement']();if(_0x4e23d8['isBlockImage'](_0x23f097))continue;_0x4e1b45['discardSuggestion'](_0x23c306),_0x562899=!0x0;}}if('insertion'==_0x79969b&&'imageCaption'==_0x5a9631&&!_0x2e327a['newRange']){const _0x4a95f2=_0x4e1b45['getSuggestion'](_0x5e86dd);_0x4a95f2['next']&&_0x4a95f2['next']['isInContent']&&(_0x4e1b45['discardSuggestion'](_0x4a95f2['next']),_0x562899=!0x0);}}}return _0x562899;}),this['_registerLegacyDescription'](_0x483a8a);}['_registerLegacyDescription'](_0x3d395a){const _0x2581bb=this['editor'],_0x11f476=_0x2581bb['locale'];_0x2581bb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b0189=>{if('formatBlock'!=_0x5b0189['type']&&'formatInline'!=_0x5b0189['type'])return;const {data:_0x482102}=_0x5b0189;if(!_0x482102||'imageStyle'!=_0x482102['commandName'])return;const _0x2f3afd=_0x482102['commandParams'][0x0]['value'];return _0x3229f6('side'===_0x2f3afd?c(_0x11f476,'FORMAT_SIDE_IMAGE'):_0x3d395a[_0x2f3afd]||_0x2f3afd);function _0x3229f6(_0x4ab42f){return{'type':'format','content':c(_0x11f476,'*Format:*\x20%0',_0x4ab42f)};}});}}class ut extends _0x2b6060{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x5a7593){super(_0x5a7593),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x19fa12=this['editor'],_0x1ebb4e=_0x19fa12['commands']['get']('importWord'),_0x5f4506=_0x19fa12['commands']['get']('trackChanges');_0x1ebb4e&&(_0x1ebb4e['on']('execute',(_0x2b276e,[,_0x4568bb])=>{this['_trackChangesValueDuringImport']=_0x5f4506['value'],_0x4568bb['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x1ebb4e,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x1ebb4e,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x5f4506['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x19fa12['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x5f0166,_0x445f3c){const {suggestions:_0x10e577}=_0x445f3c,_0x3c056f=this['editor']['commands']['get']('trackChanges'),_0x3a0010=_0x3c056f['value'];this['_trackChangesValueDuringImport']!==_0x3a0010&&(_0x3c056f['execute'](),this['_trackChangesExecuted']=!0x0),_0x10e577&&_0x10e577['forEach'](({id:_0x2d0e0b,type:_0x2411e4,author:_0x3631c6,created_at:_0x3b6178})=>{const _0x1fa0a7={'id':_0x2d0e0b,'type':_0x2411e4,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x3631c6,'createdAt':_0x3b6178?new Date(_0x3b6178):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1fa0a7);});}}class ft extends _0x2b6060{['afterInit'](){const _0x2a01a4=this['editor'],_0x42602e=_0x2a01a4['plugins']['get']('TrackChangesEditing');if(_0x2a01a4['plugins']['has']('IndentEditing')&&(_0x42602e['enableCommand']('indent'),_0x42602e['enableCommand']('outdent')),_0x2a01a4['plugins']['has']('IndentBlock')){for(const _0xd3d242 of['indentBlock','outdentBlock'])_0x42602e['enableDefaultAttributesIntegration'](_0xd3d242);}const _0x1c0db5=_0x2a01a4['locale'];_0x42602e['registerBlockAttribute']('blockIndent'),_0x42602e['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x1c0db5,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2b1b1a=this['editor'],_0x5e78d7=_0x2b1b1a['locale'],_0x3392e1=_0x2b1b1a['plugins']['get']('TrackChangesEditing');_0x3392e1['descriptionFactory']['registerDescriptionCallback'](_0x1ae5ad=>{if('formatBlock'!=_0x1ae5ad['type'])return;const {data:_0x2dc027}=_0x1ae5ad;if(!_0x2dc027)return;if('indentBlock'!=_0x2dc027['commandName']&&'outdentBlock'!=_0x2dc027['commandName'])return;const _0x5e2112=_0x1ae5ad['getItems']()[0x0],_0xa749cb=_0x3392e1['descriptionFactory']['getItemLabel'](_0x5e2112);return'indentBlock'==_0x2dc027['commandName']?{'type':'format','content':c(_0x5e78d7,'*Indent:*\x20%0',_0xa749cb)}:'outdentBlock'==_0x2dc027['commandName']?{'type':'format','content':c(_0x5e78d7,'*Outdent:*\x20%0',_0xa749cb)}:void 0x0;});}}class ht extends _0x2b6060{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x2b6060{['afterInit'](){const _0x4393c4=this['editor'];if(!_0x4393c4['plugins']['has']('LinkEditing'))return;const _0x256b50=_0x4393c4['plugins']['get']('TrackChangesEditing'),_0x502e11=_0x4393c4['commands']['get']('link');_0x256b50['enableDefaultAttributesIntegration']('link'),_0x256b50['enableDefaultAttributesIntegration']('unlink'),_0x256b50['registerInlineAttribute']('linkHref');for(const _0x2a8225 of _0x502e11['manualDecorators'])_0x256b50['registerInlineAttribute'](_0x2a8225['id']),_0x256b50['descriptionFactory']['registerAttributeLabel'](_0x2a8225['id'],'link\x20('+_0x2a8225['label']['toLowerCase']()+')');_0x256b50['descriptionFactory']['registerDescriptionCallback'](_0x4fd9c1=>{if('attribute'!=_0x4fd9c1['type'])return;const {data:_0x17aa25}=_0x4fd9c1;if(!_0x17aa25||'linkHref'!=_0x17aa25['key'])return;const _0x4ac10a=_0x17aa25['newValue'],_0xe43ad=_0x4393c4['locale'];return{'type':'format','content':null==_0x4ac10a?c(_0xe43ad,'*Remove\x20link*'):c(_0xe43ad,'*Set\x20link:*\x20%0','\x22'+_0x4ac10a+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x56b7e5=this['editor'],_0x53999a=_0x56b7e5['locale'];_0x56b7e5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x323ba7=>{if('formatInline'!=_0x323ba7['type'])return;const {data:_0x4633ff}=_0x323ba7;if(_0x4633ff){if('link'==_0x4633ff['commandName']){const _0x497a7b=_0x4633ff['commandParams'][0x0];return{'type':'format','content':c(_0x53999a,'*Set\x20link:*\x20%0','\x22'+_0x497a7b+'\x22')};}return'unlink'==_0x4633ff['commandName']?{'type':'format','content':c(_0x53999a,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x2b6060{['afterInit'](){const _0x56190c=this['editor'],_0x2ccee1=_0x56190c['locale'];if(!_0x56190c['plugins']['has']('LegacyListEditing'))return;const _0x1e04a0=_0x56190c['plugins']['get']('TrackChangesEditing'),_0x3ef407=_0x56190c['plugins']['has']('LegacyTodoListEditing');function _0x541c98(_0x9adcfd){return()=>{const _0x3d8c86=_0x56190c['model']['document']['selection'],_0x2b7520=_0x56190c['commands']['get'](_0x9adcfd);if(_0x2b7520['value'])return void _0x56190c['execute']('paragraph',{});const _0x1b3786=_0x9adcfd['slice'](0x0,-0x4),_0x4da81e=function(_0x153ddc,_0x420645,_0x6ff89f){let _0x56930a=Array['from'](_0x153ddc)['filter'](_0x5e5d2e=>function(_0x389d39,_0x3650c0){return _0x3650c0['checkChild'](_0x389d39['parent'],'listItem')&&!_0x3650c0['isObject'](_0x389d39);}(_0x5e5d2e,_0x6ff89f));_0x56930a=_0x56930a['filter'](_0x41c5e9=>!_0x41c5e9['is']('element','listItem')||_0x41c5e9['getAttribute']('listType')!=_0x420645);const _0x4f0ced=new Set();for(const _0x3689f2 of _0x56930a)_0x3689f2['is']('element','listItem')?_0x4f0ced['add'](Le(_0x3689f2)):_0x4f0ced['add'](_0x3689f2);return Array['from'](_0x4f0ced);}(_0x3d8c86['getSelectedBlocks'](),_0x1b3786,_0x56190c['model']['schema']);_0x56190c['model']['change'](()=>{for(const _0x4e2e28 of _0x4da81e)_0x1e04a0['markBlockFormat'](_0x4e2e28,{'commandName':_0x9adcfd,'commandParams':[{'forceValue':!_0x2b7520['value']}],'formatGroupId':'blockName'},Ee(_0x4e2e28));});};}function _0x1d3aa0(_0x1ff423){return()=>{const _0x3c10bc=function(_0x5e467d){let _0x1944a6=Array['from'](_0x5e467d);const _0x2a96af=_0x1944a6['findIndex'](_0x21c3e7=>'listItem'!=_0x21c3e7['name']);return _0x2a96af>-0x1&&(_0x1944a6=_0x1944a6['slice'](0x0,_0x2a96af)),_0x1944a6;}(_0x56190c['model']['document']['selection']['getSelectedBlocks']()),_0x603ce5=_0x56190c['model']['createRange'](_0x56190c['model']['createPositionAt'](_0x3c10bc[0x0],'before'),_0x56190c['model']['createPositionAt'](_0x3c10bc[_0x3c10bc['length']-0x1],'end'));_0x56190c['model']['change'](()=>{_0x1e04a0['markBlockFormat'](_0x603ce5,{'commandName':_0x1ff423,'commandParams':[],'formatGroupId':'listIndent'},function(_0x1d5a11){const _0x5796e6=new Set();for(const _0x193cd6 of _0x1d5a11){let _0x60ac4b=_0x193cd6['nextSibling'];for(;_0x60ac4b&&_0x60ac4b['getAttribute']('listIndent')>_0x193cd6['getAttribute']('listIndent');)_0x5796e6['add'](_0x60ac4b),_0x60ac4b=_0x60ac4b['nextSibling'];}return Array['from'](_0x5796e6);}(_0x3c10bc));});};}_0x1e04a0['enableCommand']('numberedList',_0x541c98('numberedList')),_0x1e04a0['enableCommand']('bulletedList',_0x541c98('bulletedList')),_0x3ef407&&_0x1e04a0['enableCommand']('todoList',_0x541c98('todoList')),_0x1e04a0['enableCommand']('indentList',_0x1d3aa0('indentList')),_0x1e04a0['enableCommand']('outdentList',_0x1d3aa0('outdentList')),_0x3ef407&&_0x1e04a0['enableCommand']('checkTodoList',()=>{const _0x8ff956=_0x56190c['commands']['get']('checkTodoList'),_0xfab8be=Array['from'](_0x8ff956['_selectedElements']);_0xfab8be['filter'](_0x88b22b=>_0x88b22b['getAttribute']('todoListChecked')!=_0x8ff956['value']),_0x56190c['model']['change'](()=>{for(const _0x311fd0 of _0xfab8be)_0x1e04a0['markBlockFormat'](_0x311fd0,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x8ff956['value']}]});});}),_0x1e04a0['descriptionFactory']['registerElementLabel']('listItem',_0x1cd9b1=>c(_0x2ccee1,'ELEMENT_LIST_ITEM',_0x1cd9b1)),_0x1e04a0['descriptionFactory']['registerDescriptionCallback'](_0x3840a5=>{if('formatBlock'!=_0x3840a5['type']&&'formatInline'!=_0x3840a5['type'])return;const {data:_0x46ba16}=_0x3840a5;if(_0x46ba16){if('numberedList'==_0x46ba16['commandName']||'bulletedList'==_0x46ba16['commandName']||'todoList'==_0x46ba16['commandName'])switch(_0x46ba16['commandName']['replace']('List','')){case'bulleted':return _0x563bc3(c(_0x2ccee1,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x563bc3(c(_0x2ccee1,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x563bc3(c(_0x2ccee1,'ELEMENT_TODO_LIST'));}if('indentList'==_0x46ba16['commandName'])return{'type':'format','content':c(_0x2ccee1,'*Indent:*\x20%0',c(_0x2ccee1,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x46ba16['commandName'])return{'type':'format','content':c(_0x2ccee1,'*Outdent:*\x20%0',c(_0x2ccee1,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x46ba16['commandName'])return _0x46ba16['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x2ccee1,'*Check\x20item*')}:{'type':'format','content':c(_0x2ccee1,'*Uncheck\x20item*')};}function _0x563bc3(_0x4f26a4){return{'type':'format','content':c(_0x2ccee1,'*Change\x20to:*\x20%0',_0x4f26a4)};}});}}function Le(_0x418c8e){const _0x56641d=_0x418c8e['getAttribute']('listIndent');if(0x0==_0x56641d)return _0x418c8e;let _0x69c568=_0x418c8e;for(;_0x418c8e['previousSibling']&&_0x418c8e['previousSibling']['is']('element','listItem');){const _0xb8a7f4=_0x418c8e['previousSibling']['getAttribute']('listIndent');if(_0xb8a7f4==_0x56641d)_0x69c568=_0x418c8e['previousSibling'];else{if(_0xb8a7f4<_0x56641d)break;}_0x418c8e=_0x418c8e['previousSibling'];}return _0x69c568;}function Ee(_0x4cf6b4){const _0x2fec78=[];if(_0x4cf6b4['is']('element','listItem')&&_0x4cf6b4['getAttribute']('listIndent')>0x0){let _0x2feedb=_0x4cf6b4['nextSibling'];for(;_0x2feedb&&'listItem'==_0x2feedb['name']&&_0x2feedb['getAttribute']('listIndent')==_0x4cf6b4['getAttribute']('listIndent');)_0x2fec78['push'](_0x2feedb),_0x2feedb=_0x2feedb['nextSibling'];}return _0x2fec78;}class Q extends _0x2b6060{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x4729b5=this['editor']['config']['get']('list.properties'),_0x4ea7c0=this['editor']['plugins']['get']('TrackChangesEditing');_0x4729b5['styles']&&_0x4ea7c0['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x4729b5['reversed']&&_0x4ea7c0['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x4729b5['startIndex']&&_0x4ea7c0['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x4ea7c0['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x5e812d,_0x35460f={}){const _0x58e3bc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x489844=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x58e3bc['markMultiRangeBlockFormat'](_0x489844,{'commandName':'listStyle','commandParams':[{'type':_0x35460f['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x48e535,_0x4d5050={}){const _0x12207a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3bf744=this['_getSuggestionBlocks'](_0x1241c2=>_0x1241c2['is']('element','listItem')&&'numbered'===_0x1241c2['getAttribute']('listType'));if(_0x3bf744['length']<0x1)return;const _0x20d5c3=_0x3bf744['map'](_0x51e7e8=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x51e7e8,'before'),this['editor']['model']['createPositionAt'](_0x51e7e8,0x0)));this['editor']['model']['change'](()=>{_0x12207a['markMultiRangeBlockFormat'](_0x20d5c3,{'commandName':'listReversed','commandParams':[{'reversed':_0x4d5050['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x5708b9,_0x4e962b={}){const _0xe0b816=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3d5fcc=this['_getSuggestionBlocks'](_0x10fe85=>_0x10fe85['is']('element','listItem')&&'numbered'===_0x10fe85['getAttribute']('listType'));if(_0x3d5fcc['length']<0x1)return;const _0x20371a=_0x3d5fcc['map'](_0x245b3b=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x245b3b,'before'),this['editor']['model']['createPositionAt'](_0x245b3b,0x0)));this['editor']['model']['change'](()=>{_0xe0b816['markMultiRangeBlockFormat'](_0x20371a,{'commandName':'listStart','commandParams':[{'startIndex':_0x4e962b['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x2ccfc9){if('formatBlock'!=_0x2ccfc9['type']&&'formatInline'!=_0x2ccfc9['type'])return;const _0x4ccec5=this['editor']['locale'],{data:_0x509fc4}=_0x2ccfc9;if(!_0x509fc4)return;let _0x2e0b91,_0x40d70d;switch(_0x509fc4['commandName']){case'listStyle':_0x2e0b91='*Change\x20to:*\x20%0',_0x40d70d={'type':'format','content':c(_0x4ccec5,_0x2e0b91,c(_0x4ccec5,this['_getTranslationKeyForListStyle'](_0x509fc4['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2e0b91=_0x509fc4['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x40d70d={'type':'format','content':c(_0x4ccec5,_0x2e0b91)};break;case'listStart':_0x2e0b91='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x40d70d={'type':'format','content':c(_0x4ccec5,_0x2e0b91,_0x509fc4['commandParams'][0x0]['startIndex'])};}return _0x40d70d;}['_getSuggestionBlocksForListStyle'](){const _0x5a1327=this['editor']['plugins']['get']('LegacyListUtils');let _0x17ee9d=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x17ee9d[0x0]?.['is']('element','listItem')&&_0x17ee9d['unshift'](..._0x5a1327['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x17ee9d[_0x17ee9d['length']-0x1]?.['is']('element','listItem')&&_0x17ee9d['push'](..._0x5a1327['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x17ee9d=[...new Set(_0x17ee9d)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x17ee9d=_0x17ee9d['filter'](_0x582ab3=>_0x582ab3['is']('element','listItem'))),_0x17ee9d;}['_getSuggestionBlocks'](_0x5b5830){const _0x4eab93=this['editor']['plugins']['get']('LegacyListUtils');let _0x3b034f=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x5b5830)['map'](_0x563b04=>{const _0x577b48=this['editor']['model']['createPositionAt'](_0x563b04,0x0);return[..._0x4eab93['getSiblingNodes'](_0x577b48,'backward'),..._0x4eab93['getSiblingNodes'](_0x577b48,'forward')];})['flat']();return _0x3b034f=[...new Set(_0x3b034f)],_0x3b034f;}['_getTranslationKeyForListStyle'](_0x2e1893){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x2e1893)||'default')['toUpperCase']()+'_LIST_'+_0x2e1893['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x2b6060{['afterInit'](){const _0x5d18e6=this['editor'];if(!_0x5d18e6['plugins']['has']('MediaEmbedEditing'))return;const _0x23767f=_0x5d18e6['plugins']['get']('TrackChangesEditing'),_0x5cec45=_0x5d18e6['locale'];_0x23767f['enableCommand']('mediaEmbed'),_0x23767f['descriptionFactory']['registerElementLabel']('media',_0x80778d=>c(_0x5cec45,'ELEMENT_MEDIA',_0x80778d)),_0x5d18e6['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x5da53c,{writer:_0x270726,options:_0x2c1667})=>{if(_0x2c1667['showSuggestionHighlights'])return _0x270726['createEmptyElement']('div');},'converterPriority':'high'}),_0x5d18e6['data']['downcastDispatcher']['on']('attribute:url:media',(_0x1a6109,_0x2e8aa5,_0x60c1c4)=>{_0x60c1c4['options']['showSuggestionHighlights']&&_0x1a6109['stop']();},{'priority':'high'});}}class pt extends _0x2b6060{['afterInit'](){const _0x23ac1a=this['editor'];_0x23ac1a['plugins']['has']('MentionEditing')&&_0x23ac1a['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x2b6060{['afterInit'](){const _0x269906=this['editor'];if(!_0x269906['plugins']['has']('MergeFieldsEditing'))return;const _0x16b705=_0x269906['plugins']['get']('TrackChangesEditing'),_0x5313a1=_0x269906['locale'];_0x16b705['enableCommand']('insertMergeField'),_0x16b705['enableCommand']('insertMergeFieldBlock'),_0x16b705['enableCommand']('insertMergeFieldImage'),_0x16b705['descriptionFactory']['registerElementLabel']('mergeField',_0x20ccf8=>c(_0x5313a1,'ELEMENT_MERGE_FIELD',_0x20ccf8)),_0x16b705['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x210013=>c(_0x5313a1,'ELEMENT_MERGE_FIELD',_0x210013)),_0x16b705['descriptionFactory']['registerDescriptionCallback'](_0x10b46a=>{if('insertion'!=_0x10b46a['type']&&'deletion'!=_0x10b46a['type'])return;const _0x5f1544=_0x10b46a['getContainedElement']();if(null==_0x5f1544)return;const _0x53822c=_0x269906['plugins']['get']('MergeFieldsEditing');let _0x27fbe9;switch(_0x53822c['getMergeFieldType'](_0x5f1544)){case null:return;case'image':{const _0x3f079d=_0x53822c['unwrapAffixes'](_0x5f1544['getAttribute']('src'));_0x27fbe9=_0x53822c['getLabel'](_0x3f079d)||_0x3f079d;break;}default:{const _0xbdd621=_0x5f1544['getAttribute']('id');_0x27fbe9=_0x53822c['getLabel'](_0xbdd621)||_0xbdd621;break;}}return'insertion'==_0x10b46a['type']?{'type':'insertion','content':c(_0x5313a1,'*Insert:*\x20%0','\x22'+_0x27fbe9+'\x22\x20'+c(_0x5313a1,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x5313a1,'*Remove:*\x20%0','\x22'+_0x27fbe9+'\x22\x20'+c(_0x5313a1,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x2b6060{['afterInit'](){const _0x4ed786=this['editor'],_0x40043b=_0x4ed786['plugins']['get']('TrackChangesEditing');_0x4ed786['plugins']['has']('MultiLevelList')&&(_0x40043b['enableDefaultAttributesIntegration']('multiLevelList'),_0x40043b['registerBlockAttribute']('listMarkerStyle'),_0x40043b['descriptionFactory']['registerDescriptionCallback'](_0x3db836=>this['handleDescriptions'](_0x3db836)));}['handleDescriptions'](_0x20513d){const _0x5993b7=this['editor']['locale'],{data:_0x56d338}=_0x20513d,_0x4ac0ee={'type':'format','content':''};if(_0x56d338&&'listMarkerStyle'==_0x56d338['key']){if(!_0x56d338['oldValue'])return{'type':'format','content':c(_0x5993b7,'*Set\x20format:*\x20%0',c(_0x5993b7,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x56d338['newValue']+')'};if(!_0x56d338['newValue']){let _0x52be68=_0x20513d['head'];for(;_0x52be68;){if(_0x52be68['data']&&'listType'==_0x52be68['data']['key']&&_0x52be68['data']['newValue'])return _0x4ac0ee;_0x52be68=_0x52be68['next'];}return{'type':'format','content':c(_0x5993b7,'*Remove\x20format:*\x20%0',c(_0x5993b7,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x56d338['oldValue']+')'};}}}}class bt extends _0x2b6060{['afterInit'](){const _0x455471=this['editor'];if(!_0x455471['plugins']['has']('PageBreakEditing'))return;_0x455471['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x2d896a=_0x455471['plugins']['get']('TrackChangesEditing'),_0x2c5bfc=_0x455471['locale'];_0x2d896a['descriptionFactory']['registerElementLabel']('pageBreak',_0x108aad=>c(_0x2c5bfc,'ELEMENT_PAGE_BREAK',_0x108aad));}}class yt extends _0x2b6060{['afterInit'](){const _0x276d5c=this['editor'];if(!_0x276d5c['plugins']['has']('Paragraph'))return;const _0x2c8c2c=_0x276d5c['locale'],_0x19e5af=_0x276d5c['plugins']['get']('TrackChangesEditing');_0x19e5af['descriptionFactory']['registerElementLabel']('paragraph',_0x3eb604=>c(_0x2c8c2c,'ELEMENT_PARAGRAPH',_0x3eb604)),_0x19e5af['enableDefaultAttributesIntegration']('paragraph'),_0x19e5af['enableCommand']('insertParagraph'),_0x276d5c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x276d5c),{'priority':'highest'}),_0x276d5c['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x9181e0,_0x20a631,_0x928a9f)=>{_0x928a9f['options']['showSuggestionHighlights']&&nr(_0x276d5c,{'showActiveMarker':!0x1})(_0x9181e0,_0x20a631,_0x928a9f);},{'priority':'highest'});const _0x163ec9=_0x19e5af['descriptionFactory'];_0x163ec9['registerDescriptionCallback'](_0x2830da=>{if('insertion'!==_0x2830da['type'])return;const {start:_0x48fcce,end:_0x5d0f58}=_0x2830da['getFirstRange']();if(!_0x48fcce['isTouching'](_0x5d0f58)||!_0x48fcce['nodeAfter'])return;const _0x3c47a8=_0x276d5c['model']['schema'],_0x336357=_0x48fcce['nodeAfter'];return _0x3c47a8['isBlock'](_0x336357)&&!_0x3c47a8['isLimit'](_0x336357)&&_0x3c47a8['checkChild'](_0x336357,'$text')?{'type':'insertion','content':c(_0x2c8c2c,'*Insert:*\x20%0',_0x163ec9['getItemLabel'](_0x336357,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3d46e6=this['editor'],_0x423238=_0x3d46e6['locale'];_0x3d46e6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x179e7c=>{if('formatBlock'!=_0x179e7c['type'])return;const {data:_0x10da4f}=_0x179e7c;return _0x10da4f&&'paragraph'==_0x10da4f['commandName']?{'type':'format','content':c(_0x423238,'*Change\x20to:*\x20%0',c(_0x423238,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x248752,{showActiveMarker:_0x43c382=!0x0}={}){return(_0x4629ee,_0x14f7f5,_0x1c25a5)=>{const _0x47d90a=_0x248752['plugins']['get']('TrackChangesEditing'),_0x18b54e=_0x14f7f5['markerRange']['start'],_0x331b14=_0x14f7f5['markerRange']['end'],_0x50e305=_0x248752['model']['schema'];if(!_0x18b54e['isTouching'](_0x331b14)||!_0x18b54e['nodeAfter'])return;const _0x1a1e7a=_0x18b54e['nodeAfter'];if(_0x50e305['isBlock'](_0x1a1e7a)&&!_0x50e305['isLimit'](_0x1a1e7a)&&_0x50e305['checkChild'](_0x1a1e7a,'$text')){if(!_0x1c25a5['consumable']['consume'](_0x14f7f5['markerRange'],_0x4629ee['name']))return;const {authorId:_0xbd94af}=_0x47d90a['_splitMarkerName'](_0x14f7f5['markerName']),_0x24b704=_0x1c25a5['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0xbd94af}),_0x5b5bae=_0x1c25a5['mapper']['toViewPosition'](_0x331b14);_0x43c382&&_0x47d90a['activeMarkers']['includes'](_0x14f7f5['markerName'])&&_0x1c25a5['writer']['addClass']('ck-suggestion-marker--active',_0x24b704),_0x1c25a5['writer']['insert'](_0x5b5bae,_0x24b704),_0x1c25a5['mapper']['bindElementToMarker'](_0x24b704,_0x14f7f5['markerName']);}};}class jt extends _0x2b6060{['afterInit'](){const _0x441c83=this['editor'];_0x441c83['commands']['get']('replaceSource')&&_0x441c83['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x2b6060{['afterInit'](){const _0xeef628=this['editor'];if(!_0xeef628['plugins']['has']('RemoveFormatEditing'))return;_0xeef628['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2899ac=this['editor'];_0x2899ac['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c23db=>{if('formatBlock'!=_0x3c23db['type']&&'formatInline'!=_0x3c23db['type'])return;const {data:_0x703d4c}=_0x3c23db;return _0x703d4c&&'removeFormat'==_0x703d4c['commandName']?{'type':'format','content':c(_0x2899ac['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x2b6060{['afterInit'](){const _0x1b9b53=this['editor'];if(!_0x1b9b53['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x25630a=_0x1b9b53['plugins']['get']('TrackChangesEditing');_0x25630a['enableCommand']('goToPreviousRestrictedEditingException'),_0x25630a['enableCommand']('goToNextRestrictedEditingException');const _0x3ecbae=_0x1b9b53['plugins']['get']('RestrictedEditingModeEditing');_0x3ecbae['enableCommand']('trackChanges'),_0x3ecbae['enableCommand']('acceptSuggestion'),_0x3ecbae['enableCommand']('discardSuggestion'),_0x3ecbae['enableCommand']('acceptAllSuggestions'),_0x3ecbae['enableCommand']('discardAllSuggestions'),_0x3ecbae['enableCommand']('acceptSelectedSuggestions'),_0x3ecbae['enableCommand']('discardSelectedSuggestions');}}class It extends _0x2b6060{static get['requires'](){return[_0x1929ea];}['init'](){const _0x325204=this['editor'],_0x516943=_0x325204['plugins']['get']('TrackChangesEditing');_0x516943['enableCommand']('shiftEnter'),_0x325204['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x325204),{'priority':'high'}),_0x325204['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x325204),{'priority':'high'}),_0x325204['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4852c3,_0x192add,_0x1ff06e)=>{_0x1ff06e['options']['showSuggestionHighlights']&&je(_0x325204,{'showActiveMarker':!0x1})(_0x4852c3,_0x192add,_0x1ff06e);}),_0x516943['descriptionFactory']['registerElementLabel']('softBreak',_0x165d4c=>c(_0x325204['locale'],'ELEMENT_LINE_BREAK',_0x165d4c));}}function je(_0x472da1,{showActiveMarker:_0x73b8cd=!0x0}={}){return(_0xf8d64a,_0xf8d73f,_0x24763c)=>{const _0x16283a=_0x472da1['plugins']['get']('TrackChangesEditing');if(!_0x24763c['consumable']['test'](_0xf8d73f['markerRange'],_0xf8d64a['name']))return;const _0x23d00d=_0x472da1['model'];for(const _0x1474fe of _0xf8d73f['markerRange']['getItems']()){if(!_0x1474fe['is']('element','softBreak'))continue;const _0x22c08b='deletion'==_0xf8d73f['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x265717}=_0x16283a['_splitMarkerName'](_0xf8d73f['markerName']),_0x4be124=_0x24763c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x22c08b,'data-author-id':_0x265717}),_0x1b40ee=_0x24763c['mapper']['toViewPosition'](_0x23d00d['createPositionBefore'](_0x1474fe));_0x73b8cd&&_0x16283a['activeMarkers']['includes'](_0xf8d73f['markerName'])&&_0x24763c['writer']['addClass']('ck-suggestion-marker--active',_0x4be124),_0x24763c['writer']['insert'](_0x1b40ee,_0x4be124),_0x24763c['mapper']['bindElementToMarker'](_0x4be124,_0xf8d73f['markerName']);}};}class _t extends _0x2b6060{['afterInit'](){const _0x37bab1=this['editor'],_0x5c7ca7=_0x37bab1['model'],_0x1ee191=_0x37bab1['locale'];if(!_0x37bab1['plugins']['has']('StandardEditingModeEditing'))return;const _0x3e954a=_0x37bab1['plugins']['get']('TrackChangesEditing'),_0x3e1c9e='restrictedEditingException',_0x553444=_0x37bab1['commands']['get'](_0x3e1c9e);_0x3e954a['enableCommand'](_0x3e1c9e,(_0x5287f7,_0x3b8948={})=>{const _0x48d107=_0x5c7ca7['document']['selection'];if(_0x48d107['isCollapsed'])return void _0x5287f7(_0x3b8948);const _0x320746=void 0x0!==_0x3b8948['forceValue']?_0x3b8948['forceValue']:!_0x553444['value'];_0x5c7ca7['change'](()=>{const _0x3aa19d=Array['from'](_0x48d107['getRanges']());for(const _0x11aa43 of _0x3aa19d){const _0x230e7d=_0x320746?[_0x11aa43]:io(_0x3e1c9e,_0x11aa43,_0x5c7ca7);for(const _0x36f4af of _0x230e7d)_0x3e954a['markInlineFormat'](_0x36f4af,{'commandName':_0x3e1c9e,'commandParams':[{'forceValue':_0x320746}]});}});}),_0x3e954a['descriptionFactory']['registerDescriptionCallback'](_0x517a14=>{if('formatBlock'!=_0x517a14['type']&&'formatInline'!=_0x517a14['type'])return;const {data:_0x331a2d}=_0x517a14;return _0x331a2d&&_0x331a2d['commandName']==_0x3e1c9e?_0x331a2d['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x1ee191,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x1ee191,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x2b6060{['afterInit'](){const _0x1ca96e=this['editor'];if(!_0x1ca96e['plugins']['has']('Style')||!_0x1ca96e['plugins']['has']('DataSchema'))return;const _0xa4705b=_0x1ca96e['plugins']['get']('TrackChangesEditing'),_0x4e1597=_0x1ca96e['locale'],_0xdba626=_0x1ca96e['config']['get']('style')||{},_0x5d3058=_0x1ca96e['plugins']['get']('GeneralHtmlSupport'),_0x31f321=_0x1ca96e['plugins']['get']('StyleUtils')['normalizeConfig'](_0x1ca96e['plugins']['get']('DataSchema'),_0xdba626['definitions']);_0xa4705b['enableDefaultAttributesIntegration']('style');const _0x2bf01d=new Set();for(const _0x55d3f7 of _0x31f321['block']){const _0x24514c=_0x5d3058['getGhsAttributeNameForElement'](_0x55d3f7['element']);_0x2bf01d['add'](_0x24514c);}const _0x328bbb=new Set();for(const _0x22e6bc of _0x31f321['inline']){const _0x5efb8c=_0x5d3058['getGhsAttributeNameForElement'](_0x22e6bc['element']);_0x328bbb['add'](_0x5efb8c);for(const _0x5e9f62 of _0x22e6bc['ghsAttributes'])_0x328bbb['add'](_0x5e9f62);}for(const _0x42a24c of _0x2bf01d)_0xa4705b['registerBlockAttribute'](_0x42a24c),_0xa4705b['descriptionFactory']['registerAttributeLabel'](_0x42a24c,c(_0x4e1597,'FORMAT_STYLE'));for(const _0x2ae901 of _0x328bbb)_0xa4705b['registerInlineAttribute'](_0x2ae901),_0xa4705b['descriptionFactory']['registerAttributeLabel'](_0x2ae901,c(_0x4e1597,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x37d7fa=this['editor'],_0x46b660=_0x37d7fa['locale'];_0x37d7fa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa3e914=>{if('formatBlock'!=_0xa3e914['type']&&'formatInline'!=_0xa3e914['type'])return;const {data:_0x4b1087}=_0xa3e914;return _0x4b1087&&'style'===_0x4b1087['commandName']?_0x4b1087['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x46b660,'*Set\x20format:*\x20%0',_0x4b1087['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x46b660,'*Remove\x20format:*\x20%0',_0x4b1087['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x2b6060{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x425203){super(_0x425203),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x4ead18=this['editor'],_0x31eb31=_0x4ead18['model']['document']['selection'];if(!_0x4ead18['plugins']['has']('TableEditing'))return;const _0x1f228b=_0x4ead18['locale'],_0x29269f=_0x4ead18['plugins']['get']('TrackChangesEditing'),_0x4ffee0=_0x4ead18['plugins']['get']('TableUtils');_0x29269f['descriptionFactory']['registerElementLabel']('table',_0x581916=>c(_0x1f228b,'ELEMENT_TABLE',_0x581916)),this['_setupColumnsRowsFixing'](),_0x29269f['enableCommand']('insertTable'),_0x29269f['enableCommand']('selectTableRow'),_0x29269f['enableCommand']('selectTableColumn');for(const _0x3e98ac of['insertTableRowAbove','insertTableRowBelow']){const _0x3780df=_0x4ead18['commands']['get'](_0x3e98ac);_0x29269f['enableCommand'](_0x3e98ac,_0x511354=>{_0x4ead18['model']['change'](_0xe50320=>{_0x511354();const _0x321d3c='above'===_0x3780df['order'],_0x443a01=_0x4ffee0['getSelectionAffectedTableCells'](_0x31eb31),_0x45cfc2=_0x4ffee0['getRowIndexes'](_0x443a01),_0x319d11=_0x321d3c?_0x45cfc2['first']-0x1:_0x45cfc2['last']+0x1,_0x36278e=_0x443a01[0x0]['findAncestor']('table'),_0x546f9a=_0x4ffee0['createTableWalker'](_0x36278e,{'startRow':_0x319d11,'endRow':_0x319d11}),_0x54d984=Array['from'](_0x546f9a)['map'](_0x1375b0=>_0xe50320['createRangeOn'](_0x1375b0['cell']));_0x29269f['markMultiRangeInsertion'](_0x54d984,'tableRow');});});}for(const _0x2becf2 of['insertTableColumnLeft','insertTableColumnRight']){const _0x1474e6=_0x4ead18['commands']['get'](_0x2becf2);_0x29269f['enableCommand'](_0x2becf2,_0xb598ac=>{_0x4ead18['model']['change'](_0xf16ff0=>{_0xb598ac();const _0x5987d7='left'===_0x1474e6['order'],_0x4d55ec=_0x4ffee0['getSelectionAffectedTableCells'](_0x31eb31),_0x2f4a16=_0x4ffee0['getColumnIndexes'](_0x4d55ec),_0x3b25cf=_0x5987d7?_0x2f4a16['first']-0x1:_0x2f4a16['last']+0x1,_0x351997=_0x4d55ec[0x0]['findAncestor']('table'),_0x434a19=_0x4ffee0['createTableWalker'](_0x351997,{'startRow':0x0,'column':_0x3b25cf,'includeAllSlots':!0x1}),_0x3997f0=Array['from'](_0x434a19)['map'](_0x728ea4=>_0xf16ff0['createRangeOn'](_0x728ea4['cell']));_0x29269f['markMultiRangeInsertion'](_0x3997f0,'tableColumn');});});}for(const _0x2fe710 of['removeTableRow','removeTableColumn']){const _0x285af0=_0x2fe710['substr'](0xb),_0x77cc47=_0x285af0['toLowerCase'](),_0x326f5a=_0x77cc47['substr'](0x0,0x3)+'span',_0x4fe2d5='table'+_0x285af0,_0x4dcd35='min'+_0x285af0,_0x38b6b4='max'+_0x285af0;_0x29269f['enableCommand'](_0x2fe710,()=>{_0x4ead18['model']['change'](_0x2ceee8=>{const _0x2f6056=_0x4ffee0['getSelectionAffectedTableCells'](_0x31eb31),_0x2c0b39=_0x2f6056[0x0]['findAncestor']('table');let _0x1610e8;if('removeTableRow'==_0x2fe710){const _0x36b526=_0x4ffee0['getRowIndexes'](_0x2f6056);_0x1610e8={'startRow':_0x36b526['first'],'endRow':_0x36b526['last'],'includeAllSlots':!0x0};}else{const _0x53e5c6=_0x4ffee0['getColumnIndexes'](_0x2f6056);_0x1610e8={'startColumn':_0x53e5c6['first'],'endColumn':_0x53e5c6['last'],'includeAllSlots':!0x0};}const _0x2937f9=_0x4ffee0['createTableWalker'](_0x2c0b39,_0x1610e8),_0x4ed64c=Array['from'](_0x2937f9)['map'](({cell:_0x44727d})=>_0x44727d),_0x5c4bc6=Ne(_0x4ed64c['filter'](_0x329059=>_0x329059['hasAttribute'](_0x326f5a))),_0x279c5b=Ne(_0x4ed64c['filter'](_0x1b7b61=>!_0x1b7b61['hasAttribute'](_0x326f5a)))['map'](_0x352a52=>_0x2ceee8['createRangeOn'](_0x352a52)),_0x21fed6=_0x29269f['markMultiRangeDeletion'](_0x279c5b,_0x4fe2d5);if(_0x21fed6&&('tableRow'==_0x21fed6['subType']||'tableColumn'==_0x21fed6['subType'])){const _0x5e50ed=this['_getSuggestionCoords'](_0x21fed6);for(const _0x38fe09 of _0x5c4bc6){const _0x498794=_0x2ceee8['createRangeOn'](_0x38fe09),_0x284acc=_0x4ffee0['getCellLocation'](_0x38fe09),_0x3c585b=_0x38fe09['getAttribute'](_0x326f5a)-0x1,_0x4812bc=_0x5e50ed[_0x4dcd35],_0x40a47f=_0x5e50ed[_0x38b6b4];_0x4812bc<=_0x284acc[_0x77cc47]&&_0x284acc[_0x77cc47]+_0x3c585b<=_0x40a47f&&_0x21fed6['addRange'](_0x498794);}}});});}function _0x257ba9(_0x3c1ec6){const _0x2ead12=Array['from'](_0x31eb31['getRanges']())['map'](_0x3f7793=>_0x3a6c5d['fromRange'](_0x3f7793));_0x4ead18['model']['change'](_0x3d8eac=>{const _0x32d650=_0x3d8eac['batch'];_0x3c1ec6=_0x3c1ec6['filter'](_0x538f56=>'$graveyard'!=_0x538f56['root']['rootName']),_0x3d8eac['setSelection'](_0x3c1ec6),_0x4ead18['commands']['get']('removeTableRow')['refresh'](),_0x4ead18['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x4ead18['model']['enqueueChange'](()=>{_0x4ead18['model']['enqueueChange'](_0x32d650,_0x38c6fa=>{const _0x439fab=_0x2ead12['filter'](_0x44adf5=>'$graveyard'!=_0x44adf5['root']['rootName']);_0x439fab['length']>0x0&&_0x38c6fa['setSelection'](_0x439fab);for(const _0x4cc889 of _0x2ead12)_0x4cc889['detach']();});});});}function _0x1eccab(_0x36f3a5){_0x4ead18['model']['change'](_0x44ec64=>{const _0x2e4d9c=Array['from'](_0x31eb31['getRanges']())['map'](_0x51ea43=>_0x3a6c5d['fromRange'](_0x51ea43)),_0x11615d=[];for(const _0x442c36 of _0x36f3a5)for(const _0xe8657f of _0x442c36['getItems']({'shallow':!0x0}))_0x11615d['push'](_0xe8657f);for(const _0x140c85 of _0x11615d)'$graveyard'!=_0x140c85['root']['rootName']&&(_0x44ec64['setSelection'](_0x44ec64['createPositionAt'](_0x140c85,0x0)),_0x4ead18['commands']['get']('removeTableColumn')['refresh'](),_0x4ead18['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x36914d=_0x2e4d9c['filter'](_0x91b3f0=>'$graveyard'!=_0x91b3f0['root']['rootName']);_0x36914d['length']>0x0&&_0x44ec64['setSelection'](_0x36914d);for(const _0xd06f20 of _0x2e4d9c)_0xd06f20['detach']();});}function _0x1bd6f2(_0x4972eb,_0x1cb9b1){return _0x1cb9b1['every'](_0x17d8ac=>_0x4972eb['some'](_0x1474ef=>_0x1474ef['end']['isEqual'](_0x17d8ac['start'])||_0x17d8ac['end']['isEqual'](_0x1474ef['start'])));}function _0x443ba5(_0x23cd24,_0x524df8){return!_0x23cd24['some'](_0x829571=>_0x524df8['some'](_0x2e47e6=>_0x829571['isIntersecting'](_0x2e47e6)))&&_0x23cd24['some'](_0x45ee97=>_0x524df8['some'](_0x36e9e1=>_0x45ee97['end']['isTouching'](_0x36e9e1['start'])));}_0x4ead18['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x42395d,_0x59152c,_0x391a84)=>{if(!_0x391a84['options']['showSuggestionHighlights'])return;const _0x2ce04d=_0x59152c['item'];if(!_0x2ce04d)return;const _0x153642=_0x391a84['mapper']['toViewElement'](_0x2ce04d);function _0x3ef1ef(_0x373f63){return Array['isArray'](_0x373f63)?_0x373f63:[_0x373f63];}_0x153642&&'tableCell'===_0x2ce04d['name']&&_0x335dd6(_0x153642,_0x391a84['writer'],(_0x457715,_0x426ffc,_0xe129f)=>_0xe129f['addClass'](_0x3ef1ef(_0x426ffc['classes']),_0x457715),(_0xaef3f5,_0x2d35d3,_0x4ae24a)=>_0x4ae24a['removeClass'](_0x3ef1ef(_0x2d35d3['classes']),_0xaef3f5));},{'priority':'highest'}),_0x29269f['descriptionFactory']['registerDescriptionCallback'](_0x5660c1=>{if('insertion'!=_0x5660c1['type']&&'deletion'!=_0x5660c1['type'])return;const _0x3c23b1=_0x5660c1['getContainedElement']();if(null!=_0x3c23b1&&_0x3c23b1['is']('element','table')){if('insertion'==_0x5660c1['type']){const _0x14e41e=_0x5660c1['getItems']()['filter'](_0x583058=>_0x583058['is']('$textProxy'))['map'](_0x52b6e2=>_0x52b6e2['data']);if(_0x14e41e['length'])return{'type':'insertion','content':c(_0x1f228b,'*Insert:*\x20%0',c(_0x1f228b,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x14e41e['join']('\x20')+'\x22'))};}if('deletion'==_0x5660c1['type']){const _0x41d5fd=_0x5660c1['getItems']()['filter'](_0x2e5b6a=>_0x2e5b6a['is']('$textProxy'))['map'](_0x71aca2=>_0x71aca2['data']);if(_0x41d5fd['length'])return{'type':'deletion','content':c(_0x1f228b,'*Remove:*\x20%0',c(_0x1f228b,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x41d5fd['join']('\x20')+'\x22'))};}}}),_0x29269f['descriptionFactory']['registerDescriptionCallback'](_0x108760=>{if('tableRow'==_0x108760['subType']){const _0x577cfe=_0x108760['getItems']()['filter'](_0x162a90=>_0x162a90['is']('$textProxy'))['map'](_0x38bb7a=>_0x38bb7a['data']),_0x4be9e8=this['_getSuggestionCoords'](_0x108760),_0x14ede3=_0x4be9e8['maxRow']-_0x4be9e8['minRow']+0x1;if('insertion'==_0x108760['type'])return _0x577cfe['length']?{'type':'insertion','content':c(_0x1f228b,'*Insert:*\x20%0',c(_0x1f228b,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x14ede3,'\x22'+_0x577cfe['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x1f228b,'*Insert:*\x20%0',c(_0x1f228b,'ELEMENT_TABLE_ROW',_0x14ede3))};if('deletion'==_0x108760['type'])return _0x577cfe['length']?{'type':'deletion','content':c(_0x1f228b,'*Remove:*\x20%0',c(_0x1f228b,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x14ede3,'\x22'+_0x577cfe['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x1f228b,'*Remove:*\x20%0',c(_0x1f228b,'ELEMENT_TABLE_ROW',_0x14ede3))};}if('tableColumn'==_0x108760['subType']){const _0x185a00=_0x108760['getItems']()['filter'](_0x4a950b=>_0x4a950b['is']('$textProxy'))['map'](_0x5d5523=>_0x5d5523['data']),_0x24a84f=this['_getSuggestionCoords'](_0x108760),_0x599cc0=_0x24a84f['maxColumn']-_0x24a84f['minColumn']+0x1;if('insertion'==_0x108760['type'])return _0x185a00['length']?{'type':'insertion','content':c(_0x1f228b,'*Insert:*\x20%0',c(_0x1f228b,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x599cc0,'\x22'+_0x185a00['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x1f228b,'*Insert:*\x20%0',c(_0x1f228b,'ELEMENT_TABLE_COLUMN',_0x599cc0))};if('deletion'==_0x108760['type'])return _0x185a00['length']?{'type':'deletion','content':c(_0x1f228b,'*Remove:*\x20%0',c(_0x1f228b,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x599cc0,'\x22'+_0x185a00['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x1f228b,'*Remove:*\x20%0',c(_0x1f228b,'ELEMENT_TABLE_COLUMN',_0x599cc0))};}}),_0x29269f['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x257ba9),_0x29269f['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x257ba9),_0x29269f['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x1eccab),_0x29269f['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x1eccab),_0x29269f['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x1bd6f2),_0x29269f['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x1bd6f2),_0x29269f['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x443ba5),_0x29269f['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x443ba5);}['_acceptFormatSuggestionCallbackFactory'](){const _0x2acce1=this['editor'],_0x451435=_0x2acce1['model']['document']['selection'];return(_0x5d5aee,_0x5527d)=>{_0x2acce1['model']['change'](_0x30ca5d=>{const {commandName:_0x1f1e65,commandParams:_0x3819c2}=_0x5527d;let _0x298f61=_0x5d5aee[0x0]['end']['nodeBefore'];_0x3819c2&&_0x3819c2[0x0]&&!0x1===_0x3819c2[0x0]['forceValue']&&(_0x298f61=_0x5d5aee[0x0]['start']['nodeAfter']);const _0x589028=_0x30ca5d['createRangeIn'](_0x298f61);if('$graveyard'==_0x589028['root']['rootName'])return;const _0x5abcf9=Array['from'](_0x451435['getRanges']())['map'](_0x10c63c=>_0x3a6c5d['fromRange'](_0x10c63c));_0x30ca5d['setSelection'](_0x589028),_0x2acce1['commands']['get'](_0x1f1e65)['refresh'](),_0x3819c2['push']({'forceDefaultExecution':!0x0}),_0x2acce1['execute'](_0x1f1e65,..._0x3819c2);const _0x37c35e=_0x5abcf9['filter'](_0x39fb88=>'$graveyard'!=_0x39fb88['root']['rootName']);_0x37c35e['length']>0x0&&_0x30ca5d['setSelection'](_0x37c35e);for(const _0x38b5e7 of _0x5abcf9)_0x38b5e7['detach']();});};}['_getCoordsForCells'](_0x2e2636){const _0x3fe27d=this['editor']['plugins']['get']('TableUtils');let _0x47b712=Number['MAX_SAFE_INTEGER'],_0x49291c=Number['MIN_SAFE_INTEGER'],_0x1afdc5=Number['MAX_SAFE_INTEGER'],_0x30a49e=Number['MIN_SAFE_INTEGER'];for(const _0xfbf32 of _0x2e2636){if('$graveyard'==_0xfbf32['root']['rootName'])continue;const {row:_0x43481a,column:_0x89f6d0}=_0x3fe27d['getCellLocation'](_0xfbf32),_0x2bf6bf=_0xfbf32['hasAttribute']('rowspan')?_0xfbf32['getAttribute']('rowspan')-0x1:0x0,_0xb90618=_0xfbf32['hasAttribute']('colspan')?_0xfbf32['getAttribute']('colspan')-0x1:0x0;_0x47b712=_0x43481a<_0x47b712?_0x43481a:_0x47b712,_0x49291c=_0x43481a+_0x2bf6bf>_0x49291c?_0x43481a+_0x2bf6bf:_0x49291c,_0x1afdc5=_0x89f6d0<_0x1afdc5?_0x89f6d0:_0x1afdc5,_0x30a49e=_0x89f6d0+_0xb90618>_0x30a49e?_0x89f6d0+_0xb90618:_0x30a49e;}return{'minRow':_0x47b712,'maxRow':_0x49291c,'minColumn':_0x1afdc5,'maxColumn':_0x30a49e};}['_setupColumnsRowsFixing'](){const _0x23d24a=this['editor'],_0x36c3f9=_0x23d24a['plugins']['get']('TrackChangesEditing'),_0x148697=_0x23d24a['plugins']['get']('TableUtils');_0x23d24a['model']['document']['on']('change:data',()=>{const _0x10d388=Array['from'](_0x23d24a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x51db95,data:_0x27a01e}of _0x10d388){const {group:_0x48c941,id:_0x21bfc2,subType:_0x1091d7}=_0x36c3f9['_splitMarkerName'](_0x51db95);if('suggestion'!=_0x48c941)continue;if(null!=_0x27a01e['oldRange'])continue;const _0x8d983=_0x36c3f9['getSuggestion'](_0x21bfc2);this['_tablePostFixingSubtypes']['includes'](_0x1091d7)&&this['_tableSuggestions']['add'](_0x8d983);}},{'priority':'low'});const _0x5e49a0=(_0x226987,_0x13dec2)=>{let _0x2bc7bf=!0x1;const _0x579ba2=_0x13dec2['createRangeOn'](_0x226987),_0x535e58=_0x226987['findAncestor']('table'),_0x18ac95=_0x148697['getCellLocation'](_0x226987);for(const _0x3fb4f5 of this['_tableSuggestions']){const _0x47a041=_0x3fb4f5['subType'],_0x52c9c5=_0x47a041['startsWith']('tablePaste'),_0x20b4c9=_0x47a041['substr'](_0x52c9c5?0xa:0x5),_0x3a2971=_0x20b4c9['toLowerCase'](),_0x4c3ce3=_0x3a2971['substr'](0x0,0x3)+'span',_0x4dbb34='min'+_0x20b4c9,_0x496568='max'+_0x20b4c9;if(!_0x3fb4f5['isInContent'])continue;if(_0x535e58!=_0x3fb4f5['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x3fb4f5['isIntersectingWithRange'](_0x579ba2))continue;const _0x1e54b2=_0x226987['hasAttribute'](_0x4c3ce3)?_0x226987['getAttribute'](_0x4c3ce3)-0x1:0x0,_0x34c025=this['_getSuggestionCoords'](_0x3fb4f5),_0x3312e8=_0x34c025[_0x4dbb34],_0x32e9a8=_0x34c025[_0x496568];_0x3312e8<=_0x18ac95[_0x3a2971]&&_0x18ac95[_0x3a2971]+_0x1e54b2<=_0x32e9a8&&(_0x3fb4f5['addRange'](_0x579ba2),_0x2bc7bf=!0x0);}return _0x2bc7bf;};_0x23d24a['model']['document']['registerPostFixer'](_0x4d4f3b=>{let _0xb44f0b=!0x1;for(const _0x4371d4 of _0x23d24a['model']['document']['differ']['getChanges']())if('insert'==_0x4371d4['type']){if('tableRow'==_0x4371d4['name']){for(const _0x57296e of _0x4371d4['position']['nodeAfter']['getChildren']())_0xb44f0b=_0xb44f0b||_0x5e49a0(_0x57296e,_0x4d4f3b);}else'tableCell'==_0x4371d4['name']&&(_0xb44f0b=_0xb44f0b||_0x5e49a0(_0x4371d4['position']['nodeAfter'],_0x4d4f3b));}return _0xb44f0b;});}['_getSuggestionCoords'](_0x448d83){return this['_getCoordsForCells'](_0x448d83['getRanges']()['map'](_0x3251e0=>_0x3251e0['start']['nodeAfter']));}}function Ne(_0x1f4b41){return Array['from'](new Set(_0x1f4b41)['values']());}class Nt extends _0x2b6060{static get['requires'](){return[Ct];}['afterInit'](){const _0x668e1b=this['editor'],_0x1c51c3=_0x668e1b['model']['document']['selection'],_0xd402ec=_0x668e1b['locale'];if(!_0x668e1b['plugins']['has']('TableEditing'))return;const _0x22bfa2=_0x668e1b['plugins']['get']('TrackChangesEditing'),_0x60fbcb=_0x668e1b['plugins']['get']('TableUtils'),_0x5e50e8=_0x668e1b['plugins']['get'](Ct);_0x5e50e8['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x22bfa2['enableCommand']('mergeTableCells',()=>{const _0x33b3e2=_0x60fbcb['getSelectionAffectedTableCells'](_0x668e1b['model']['document']['selection']);_0x668e1b['model']['change'](()=>{_0x22bfa2['markMultiRangeBlockFormat'](_0x33b3e2,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x668e1b['commands']['get']('mergeTableCells')['on']('execute',(_0x142378,_0x1eb3e7)=>{_0x668e1b['commands']['get']('trackChanges')['value']&&(_0x1eb3e7['length']>0x0&&_0x1eb3e7[_0x1eb3e7['length']-0x1]&&_0x1eb3e7[_0x1eb3e7['length']-0x1]['forceDefaultExecution']||_0x22bfa2['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x142378['stop']());},{'priority':'highest'});for(const _0x2f4cff of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x452040=_0x668e1b['commands']['get'](_0x2f4cff);_0x22bfa2['enableCommand'](_0x2f4cff,()=>{const _0x457da9=_0x668e1b['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5a49a4=>_0x5a49a4['is']('element','tableCell')),_0xd64f25=_0x452040['value'];_0x668e1b['model']['change'](()=>{_0x22bfa2['markMultiRangeBlockFormat']([_0x457da9,_0xd64f25],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x1f2fb1 of['splitTableCellVertically','splitTableCellHorizontally']){const _0xedbc2c=_0x668e1b['commands']['get'](_0x1f2fb1);_0x22bfa2['enableCommand'](_0x1f2fb1,()=>{const _0x233098=_0x60fbcb['getSelectionAffectedTableCells'](_0x668e1b['model']['document']['selection'])[0x0],_0x419424=_0x233098['findAncestor']('table'),{column:_0x1567e7,row:_0x304917}=_0x60fbcb['getCellLocation'](_0x233098);let _0x86e630=[];if('horizontally'==_0xedbc2c['direction']){const _0x4ca823=_0x60fbcb['createTableWalker'](_0x419424,{'startRow':_0x304917,'endRow':_0x304917,'includeAllSlots':!0x0});_0x86e630=Array['from'](_0x4ca823)['map'](_0x4736f8=>_0x4736f8['cell']);}else{const _0x2a9e7d=_0x60fbcb['createTableWalker'](_0x419424,{'column':_0x1567e7,'includeAllSlots':!0x0});_0x86e630=Array['from'](_0x2a9e7d)['map'](_0x4879c4=>_0x4879c4['cell']);}_0x668e1b['model']['change'](_0x159255=>{_0x22bfa2['markBlockFormat'](_0x159255['createRangeOn'](_0x233098),{'commandName':_0x1f2fb1,'commandParams':[]},_0x86e630,_0x1f2fb1);});});}_0x22bfa2['descriptionFactory']['registerDescriptionCallback'](_0x5ab0a5=>{if('formatBlock'!=_0x5ab0a5['type']&&'formatInline'!=_0x5ab0a5['type'])return;const {data:_0x302a5c}=_0x5ab0a5;return _0x302a5c&&'mergeTableCells'==_0x302a5c['commandName']?{'type':'format','content':c(_0xd402ec,'*Merge\x20cells*')}:void 0x0;}),_0x22bfa2['descriptionFactory']['registerDescriptionCallback'](_0x5cdb41=>{if('formatBlock'!=_0x5cdb41['type']&&'formatInline'!=_0x5cdb41['type'])return;const {data:_0x1646bd}=_0x5cdb41;return _0x1646bd?'splitTableCellVertically'==_0x1646bd['commandName']?{'type':'format','content':c(_0xd402ec,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x1646bd['commandName']?{'type':'format','content':c(_0xd402ec,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x47d3ed=_0x5e50e8['_acceptFormatSuggestionCallbackFactory']();for(const _0x5ad844 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x22bfa2['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5ad844,'accept',_0x47d3ed);for(const _0x157ff0 of['splitTableCellVertically','splitTableCellHorizontally'])_0x22bfa2['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x157ff0,'accept',_0x47d3ed);_0x22bfa2['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x521f8e=>{_0x668e1b['model']['change'](_0x1332bb=>{const _0x241d05=Array['from'](_0x1c51c3['getRanges']())['map'](_0x3f0139=>_0x3a6c5d['fromRange'](_0x3f0139));_0x1332bb['setSelection'](_0x521f8e),_0x668e1b['commands']['get']('mergeTableCells')['refresh'](),_0x668e1b['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x1e9f21=_0x241d05['filter'](_0x5a3ae4=>'$graveyard'!=_0x5a3ae4['root']['rootName']);_0x1e9f21['length']>0x0&&_0x1332bb['setSelection'](_0x1e9f21);for(const _0x9f62c2 of _0x241d05)_0x9f62c2['detach']();});});for(const _0xff51d0 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x3123db=_0x668e1b['commands']['get'](_0xff51d0);_0x3123db['on']('set:isEnabled',(_0x46804a,_0x23d614,_0x9c3847)=>{if(_0x9c3847){const _0x794191=_0x668e1b['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x16c6a0=>_0x16c6a0['is']('element','tableCell'));this['_areMergableCells'](_0x3123db['value'],_0x794191)||(_0x46804a['return']=!0x1,_0x46804a['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x511c13=this['editor']['commands']['get']('mergeTableCells'),_0x2ab635=this['editor']['plugins']['get']('TableUtils');if(!_0x511c13['isEnabled'])return!0x1;const _0x39ddee=_0x2ab635['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0xba3e34 of _0x39ddee)for(const _0x3fda18 of _0x39ddee)if(_0xba3e34!=_0x3fda18&&!this['_areMergableCells'](_0xba3e34,_0x3fda18))return!0x1;return!0x0;}['_areMergableCells'](_0xae575f,_0x16cc04){const _0x5a1c3b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2a4cae=this['editor']['model']['createRangeOn'](_0xae575f),_0x24dd81=this['editor']['model']['createRangeOn'](_0x16cc04),_0x410a52=new Set(),_0x41d4cc=new Set();for(const _0x3fba9a of _0x5a1c3b['getSuggestions']())if(('insertion'==_0x3fba9a['type']||'deletion'==_0x3fba9a['type']||'mergeTableCells'==_0x3fba9a['subType'])&&_0x3fba9a['isInContent']){for(const _0x8784f3 of _0x3fba9a['getRanges']())_0x8784f3['containsRange'](_0x2a4cae,!0x0)&&_0x410a52['add'](_0x3fba9a['type']+':'+_0x3fba9a['author']['id']),_0x8784f3['containsRange'](_0x24dd81,!0x0)&&_0x41d4cc['add'](_0x3fba9a['type']+':'+_0x3fba9a['author']['id']);}if(_0x410a52['size']!=_0x41d4cc['size'])return!0x1;for(const _0x397e30 of _0x410a52)if(!_0x41d4cc['has'](_0x397e30))return!0x1;return!0x0;}}class Dt extends _0x2b6060{static get['requires'](){return[Ct];}['afterInit'](){const _0x28aee7=this['editor'];if(!_0x28aee7['plugins']['has']('TableEditing'))return;const _0x56f687=_0x28aee7['locale'],_0x58702e=_0x28aee7['plugins']['get']('TrackChangesEditing');_0x58702e['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x58702e['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x58702e['registerBlockAttribute']('headingRows'),_0x58702e['registerBlockAttribute']('headingColumns'),_0x58702e['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x56f687,'FORMAT_HEADER_ROW')),_0x58702e['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x56f687,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1c8a6b=this['editor']['plugins']['get']('TrackChangesEditing'),_0xb620d5=this['editor']['plugins']['get']('TableUtils'),_0x30dab7=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0xf64a8f({showActiveMarker:_0x3181b3=!0x0,setDataAttribute:_0x44b110=!0x0}={}){return(_0x2b29ef,_0x5c6b84,_0x455f16)=>{const {type:_0x4f63ea,id:_0x3d4444}=_0x1c8a6b['_splitMarkerName'](_0x5c6b84['markerName']),_0x4a8c70=_0x1c8a6b['getSuggestion'](_0x3d4444),_0x54fcdc=_0x4a8c70['data'];if('formatBlock'!=_0x4a8c70['type']||!_0x54fcdc||'setTableColumnHeader'!=_0x54fcdc['commandName'])return;if(_0x5c6b84['item'])return void _0x2b29ef['stop']();if(!_0x455f16['consumable']['consume'](_0x5c6b84['markerRange'],_0x2b29ef['name']))return;const _0x255a77=_0x5c6b84['markerRange']['start']['nodeAfter'],_0x3680df=_0x5c6b84['markerRange']['end']['nodeBefore'],_0x2440cc=_0x255a77['parent']['parent'],{column:_0x343b22}=_0xb620d5['getCellLocation'](_0x255a77),{column:_0x294168}=_0xb620d5['getCellLocation'](_0x3680df);for(let _0x1eada6=_0x343b22;_0x1eada6<=_0x294168;_0x1eada6++){const _0x5db057=_0xb620d5['createTableWalker'](_0x2440cc,{'column':_0x1eada6,'includeAllSlots':!0x1});for(const _0x217e69 of _0x5db057){const _0x2bcfb4=_0x217e69['cell'],_0x45c9b7=_0x455f16['mapper']['toViewElement'](_0x2bcfb4);_0x455f16['writer']['addClass']('ck-suggestion-marker-'+_0x4f63ea,_0x45c9b7),_0x44b110&&_0x455f16['writer']['setAttribute']('data-suggestion',_0x3d4444,_0x45c9b7),_0x455f16['mapper']['bindElementToMarker'](_0x45c9b7,_0x5c6b84['markerName']),_0x3181b3&&(_0x1c8a6b['activeMarkers']['includes'](_0x5c6b84['markerName'])?_0x455f16['writer']['addClass']('ck-suggestion-marker--active',_0x45c9b7):_0x455f16['writer']['removeClass']('ck-suggestion-marker--active',_0x45c9b7));}}};}_0x1c8a6b['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x30dab7),_0x1c8a6b['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x30dab7),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0xf64a8f(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1cd9cb,_0xcaeaff,_0x30dc6a)=>{_0x30dc6a['options']['showSuggestionHighlights']&&_0xf64a8f({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1cd9cb,_0xcaeaff,_0x30dc6a);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x5d87a5,_0x25425b,_0x3d5f74)=>{const {type:_0x49eed3,id:_0x193fea}=_0x1c8a6b['_splitMarkerName'](_0x25425b['markerName']),_0x10f8cc=_0x1c8a6b['getSuggestion'](_0x193fea),_0x25cf31=_0x10f8cc['data'];if('formatBlock'!=_0x10f8cc['type']||!_0x25cf31||'setTableColumnHeader'!=_0x25cf31['commandName'])return;const _0x108425=_0x3d5f74['mapper']['markerNameToElements'](_0x25425b['markerName']);if(_0x108425){for(const _0x2e53ea of _0x108425)_0x3d5f74['writer']['removeClass']('ck-suggestion-marker-'+_0x49eed3,_0x2e53ea),_0x3d5f74['writer']['removeClass']('ck-suggestion-marker--active',_0x2e53ea),_0x3d5f74['writer']['removeAttribute']('data-suggestion',_0x2e53ea),_0x3d5f74['mapper']['unbindElementFromMarkerName'](_0x2e53ea,_0x25425b['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xd353ea=this['editor'],_0xcd426=_0xd353ea['locale'];function _0x351d01(_0x2327b2){return{'type':'format','content':c(_0xcd426,'*Format:*\x20%0',_0x2327b2)};}_0xd353ea['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x8399c8=>{if('formatBlock'!=_0x8399c8['type'])return;const {data:_0x3de5e4}=_0x8399c8;if(_0x3de5e4){if('setTableRowHeader'==_0x3de5e4['commandName']){const _0x27e526=_0x3de5e4['commandParams'][0x0]['forceValue'];return _0x351d01(c(_0xcd426,_0x27e526?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x3de5e4['commandName']){const _0x1dfa42=_0x3de5e4['commandParams'][0x0]['forceValue'];return _0x351d01(c(_0xcd426,_0x1dfa42?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x5aa250=>[_0x5aa250,null]));class Mt extends _0x2b6060{static get['requires'](){return[Ct];}['afterInit'](){const _0x48db21=this['editor'];if(!_0x48db21['plugins']['has']('TableClipboard'))return;const _0x57c718=_0x48db21['plugins']['get']('TrackChangesEditing'),_0xbba38c=_0x48db21['plugins']['get']('TableUtils'),_0x4adb1f=_0x48db21['plugins']['get'](Ct),_0x5cc9f8=_0x48db21['plugins']['get']('TableClipboard');_0x4adb1f['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x48db21['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x48db21['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x35fc1c=null;_0x48db21['model']['on']('insertContent',(_0x3c4fc2,_0x2f07a0)=>{const [_0x1114cd,_0x1bc125]=_0x2f07a0,_0x7511b2=_0x2f07a0[_0x2f07a0['length']-0x1];_0x7511b2&&_0x7511b2['forceDefaultExecution']||_0x57c718['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x2969ab,_0xc769b8,_0x29913b,_0x1b56de,_0x19876e){if(_0xc769b8&&!_0xc769b8['is']('documentSelection'))return!0x1;const _0x462bd3=_0x19876e['getTableIfOnlyTableInContent'](_0x2969ab,_0x29913b);if(!_0x462bd3||!Ue(_0x462bd3,void 0x0,_0x1b56de))return!0x1;const _0x32d607=_0x1b56de['getSelectionAffectedTableCells'](_0x29913b['document']['selection']);if(!_0x32d607['length'])return!0x1;const _0x182e59=_0x32d607[0x0]['findAncestor']('table'),_0x3a3646=_0x1b56de['getRowIndexes'](_0x32d607),_0x566650=_0x1b56de['getColumnIndexes'](_0x32d607),_0x189860={'startRow':_0x3a3646['first'],'endRow':_0x3a3646['last'],'startColumn':_0x566650['first'],'endColumn':_0x566650['last']};return 0x1==_0x32d607['length']&&(_0x189860['endRow']+=_0x1b56de['getRows'](_0x462bd3)-0x1,_0x189860['endColumn']+=_0x1b56de['getColumns'](_0x462bd3)-0x1),Ue(_0x182e59,_0x189860,_0x1b56de);}(_0x1114cd,_0x1bc125,_0x48db21['model'],_0xbba38c,_0x5cc9f8)&&(_0x3c4fc2['stop'](),_0x35fc1c={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x48db21['model']['change'](()=>{_0x48db21['model']['insertContent'](_0x2f07a0[0x0],_0x2f07a0[0x1],_0x2f07a0[0x2],{'forceDefaultExecution':!0x0});const _0x18eece=_0x930f5e(),{rowInsertionRanges:_0x5610a8,columnInsertionRanges:_0x463a29,insertionRanges:_0x55986c,deletionRanges:_0x1e905b,cells:_0x1f1372}=_0x35fc1c;_0x5610a8['length']&&_0x57c718['markMultiRangeInsertion'](_0x5610a8,'tablePasteRow',{'tablePasteChainId':_0x18eece}),_0x463a29['length']&&_0x57c718['markMultiRangeInsertion'](_0x463a29,'tablePasteColumn',{'tablePasteChainId':_0x18eece}),_0x55986c['length']&&(_0x57c718['markMultiRangeInsertion'](_0x55986c,'tablePaste',{'tablePasteChainId':_0x18eece,'skipNestingCheck':!0x0}),_0x55986c['forEach'](_0x357cbf=>_0x357cbf['detach']?.())),_0x1e905b['length']&&(_0x57c718['markMultiRangeDeletion'](_0x1e905b,'tablePaste',{'tablePasteChainId':_0x18eece,'skipNestingCheck':!0x0}),_0x1e905b['forEach'](_0x4bb89b=>_0x4bb89b['detach']?.()));const _0x52175f=_0x57c718['markMultiRangeBlockFormat'](_0x1f1372['map'](({element:_0x449d08})=>_0x449d08),{'formatGroupId':_0x930f5e()},[],'tablePasteCell',{'tablePasteChainId':_0x18eece});if(_0x52175f){const _0x1eb829=_0x52175f['getMarkers'](),_0x26bb1d=[];for(const {element:_0x1b4bf1,attributes:_0x3436bf}of _0x1f1372){if(!_0x3436bf)continue;const _0x439c57=_0x48db21['model']['createRangeOn'](_0x1b4bf1),_0x7bc6=_0x1eb829['find'](_0x5d62a4=>_0x5d62a4['getRange']()['isEqual'](_0x439c57));_0x7bc6&&_0x26bb1d['push']([_0x7bc6['name'],_0x3436bf]);}_0x26bb1d['length']&&_0x52175f['setAttribute']('markerAttributes',Object['fromEntries'](_0x26bb1d));}_0x35fc1c=null;}));},{'priority':_0x44c6f3['high']+0xa}),_0x48db21['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x33047e,_0x5efe45)=>{const [_0x435bcd,_0x121868,,_0x5c6108]=_0x5efe45;if(!_0x35fc1c)return;_0x33047e['stop']();const _0x3e18e8=_0x435bcd['cell'],_0x53bdc9=_0x121868,_0x30d2f3=Oe(_0x3e18e8),_0x43696a=Oe(_0x53bdc9);_0x33047e['return']=_0x3e18e8;let _0x821e79=null,_0x3ed695=null;if(_0x43696a||_0x30d2f3){if(_0x30d2f3&&!_0x43696a){_0x5c6108['remove'](_0x3e18e8['getChild'](0x0));for(const _0x327957 of Array['from'](_0x53bdc9['getChildren']()))_0x5c6108['insert'](_0x327957,_0x3e18e8,'end');const _0x42efcc=_0x35fc1c['rowInsertionIndexes']['includes'](_0x435bcd['row']),_0x1146c2=_0x35fc1c['columnInsertionIndexes']['includes'](_0x435bcd['column']);_0x42efcc||_0x1146c2||(_0x821e79=_0x3a6c5d['fromRange'](_0x5c6108['createRangeIn'](_0x3e18e8)));}else _0x43696a&&!_0x30d2f3&&(_0x3ed695=_0x5c6108['createRangeIn'](_0x3e18e8));}else{const _0x877ec=_0x5c6108['createElement']('tableCellSuggestion'),_0x4f3174=_0x5c6108['createElement']('tableCellSuggestion');_0x5c6108['wrap'](_0x5c6108['createRangeIn'](_0x3e18e8),_0x4f3174),_0x5c6108['insert'](_0x877ec,_0x3e18e8,0x0);for(const _0x441747 of Array['from'](_0x53bdc9['getChildren']()))_0x5c6108['insert'](_0x441747,_0x877ec,'end');_0x821e79=_0x3a6c5d['fromRange'](_0x5c6108['createRangeOn'](_0x877ec)),_0x3ed695=_0x3a6c5d['fromRange'](_0x5c6108['createRangeOn'](_0x4f3174));}const _0x1610eb=Array['from'](_0x53bdc9['getAttributes']())['filter'](([_0x3f8e18])=>Be['includes'](_0x3f8e18));_0x35fc1c['cells']['push']({'element':_0x3e18e8,'attributes':_0x1610eb['length']?Object['fromEntries'](_0x1610eb):null}),_0x821e79&&_0x35fc1c['insertionRanges']['push'](_0x821e79),_0x3ed695&&_0x35fc1c['deletionRanges']['push'](_0x3ed695);},{'priority':'high'}),_0xbba38c['on']('insertColumns',(_0x41d13a,_0x2b15b1)=>{const [_0x48a034,_0x540e60={}]=_0x2b15b1;if(!_0x35fc1c)return;const _0x25911d=_0x540e60['at']||0x0,_0x554ef5=_0x540e60['columns']||0x1;_0x35fc1c['columnInsertionIndexes']=new Array(_0x554ef5)['fill'](_0x25911d)['map']((_0x3a59af,_0x512753)=>_0x3a59af+_0x512753);for(const {cell:_0x38c2d1}of _0xbba38c['createTableWalker'](_0x48a034,{'startColumn':_0x25911d,'endColumn':_0x25911d+_0x554ef5-0x1}))_0x35fc1c['columnInsertionRanges']['push'](_0x48db21['model']['createRangeOn'](_0x38c2d1));},{'priority':'low'}),_0xbba38c['on']('insertRows',(_0x1ea3af,_0x4fa977)=>{const [_0x42a19e,_0x22cfef={}]=_0x4fa977;if(!_0x35fc1c)return;const _0x250432=_0x22cfef['at']||0x0,_0xed2117=_0x22cfef['rows']||0x1;_0x35fc1c['rowInsertionIndexes']=new Array(_0xed2117)['fill'](_0x250432)['map']((_0x42036a,_0x9c757b)=>_0x42036a+_0x9c757b);for(const {cell:_0x4cfa39}of _0xbba38c['createTableWalker'](_0x42a19e,{'startRow':_0x250432,'endRow':_0x250432+_0xed2117-0x1}))_0x35fc1c['rowInsertionRanges']['push'](_0x48db21['model']['createRangeOn'](_0x4cfa39));},{'priority':'low'}),_0x57c718['descriptionFactory']['registerDescriptionCallback'](_0x3f26f6=>{if(_0x3f26f6['subType']&&_0x3f26f6['subType']['startsWith']('tablePaste'))return _0x3f26f6['previous']?{}:{'type':'insertion','content':c(_0x48db21['locale'],'*Replace\x20table\x20cells*')};});const _0x5a7849=()=>!0x1;for(const _0x3c24a4 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x57c718['_suggestionFactory']['registerCustomCallback']('insertion',_0x3c24a4,'join',_0x5a7849),_0x57c718['_suggestionFactory']['registerCustomCallback']('deletion',_0x3c24a4,'join',_0x5a7849),_0x57c718['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3c24a4,'join',_0x5a7849);_0x57c718['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x5a7849),_0x57c718['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x1fefd9,_0x38b6b2,_0x3aaa06)=>{const _0xb544ef=_0x1fefd9['map'](_0x3ddf98=>_0x3ddf98['getContainedElement']())['filter'](_0x45b2f2=>_0x45b2f2),_0x26f2c9=new Map(_0xb544ef['map'](_0x1763b1=>[_0x1763b1,null]));if(_0x35fc1c){for(const {element:_0x5d124b,attributes:_0x166d73}of _0x35fc1c['cells'])_0x166d73&&_0x26f2c9['set'](_0x5d124b,_0x166d73);}else{if(_0x3aaa06&&_0x3aaa06['markerAttributes'])for(const [_0x1dc2a7,_0x4c4f9a]of Object['entries'](_0x3aaa06['markerAttributes'])){const _0x4cdd6c=_0x48db21['model']['markers']['get'](_0x1dc2a7),_0x1bbea0=_0x4cdd6c?_0x4cdd6c['getRange']()['getContainedElement']():null;_0x1bbea0&&_0x26f2c9['set'](_0x1bbea0,_0x4c4f9a);}}_0x48db21['model']['change'](_0x33af1f=>{for(const [_0x2805ba,_0xff5fab]of _0x26f2c9)_0x33af1f['setAttributes']({...xe,..._0xff5fab},_0x2805ba);});});const _0x45037a=(_0x34b025,_0x2df69b)=>{_0x57c718['_suggestionFactory']['registerCustomCallback'](_0x34b025,'tablePaste',_0x2df69b,(_0x444eaf,_0x1b7541,_0x1f68eb)=>{_0x48db21['model']['change'](_0x2bcf4a=>{const _0x57628d=[];for(const _0xd0907b of _0x444eaf){const _0x1b30b1=_0xd0907b['start']['nodeAfter'];_0x1b30b1['is']('element','tableCellSuggestion')&&_0x57628d['push'](_0x1b30b1);}_0x57c718['_suggestionFactory']['getSuggestionCallback'](_0x34b025,null,_0x2df69b)(_0x444eaf,_0x1b7541,_0x1f68eb);for(const _0x37e3da of _0x57628d)'$graveyard'!=_0x37e3da['root']['rootName']&&_0x2bcf4a['unwrap'](_0x37e3da);});});};_0x45037a('insertion','accept'),_0x45037a('insertion','discard'),_0x45037a('deletion','accept'),_0x45037a('deletion','discard'),_0x57c718['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0xe645bf=>{const _0x5ac309=_0xe645bf['map'](_0x30c585=>_0x30c585['getContainedElement']()),_0x4dc0c9=_0x5ac309[0x0]['findAncestor']('table'),{minRow:_0x3d4018,maxRow:_0x1b53c7}=_0x4adb1f['_getCoordsForCells'](_0x5ac309);_0xbba38c['removeRows'](_0x4dc0c9,{'at':_0x3d4018,'rows':_0x1b53c7-_0x3d4018+0x1});}),_0x57c718['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x361674=>{const _0x12bb49=_0x361674['map'](_0x42af7c=>_0x42af7c['getContainedElement']()),_0x7f5ac6=_0x12bb49[0x0]['findAncestor']('table'),{minColumn:_0x1626d2,maxColumn:_0x152d82}=_0x4adb1f['_getCoordsForCells'](_0x12bb49);_0xbba38c['removeColumns'](_0x7f5ac6,{'at':_0x1626d2,'columns':_0x152d82-_0x1626d2+0x1});});const _0xb76370=(_0x3a3dc5,_0x117515)=>{if(!_0x117515['subType']||!_0x117515['subType']['startsWith']('tablePaste'))return;const _0x1825c5=_0x117515['attributes']['tablePasteChainId'],_0x31c4d0=_0x57c718['getSuggestions']()['filter'](_0x490227=>_0x490227['isInContent']&&_0x490227['attributes']&&_0x490227['attributes']['tablePasteChainId']==_0x1825c5);_0x31c4d0['length']&&_0x117515['getAllAdjacentSuggestions']()['length']!=_0x31c4d0['length']&&_0x31c4d0['reduce']((_0x51eb68,_0x53101c)=>(_0x51eb68['next']=_0x53101c,_0x53101c['previous']=_0x51eb68,_0x53101c));};function _0x2ff426(_0x15a91f,_0x4b31de=!0x0){const {id:_0x2644cb,authorId:_0x5a0729}=_0x57c718['_splitMarkerName'](_0x15a91f['markerName']),_0x23633a=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x564627=_0x57c718['activeMarkers']['includes'](_0x15a91f['markerName']);return _0x564627&&_0x23633a['push']('ck-suggestion-marker--active'),{'classes':_0x23633a,'attributes':{'data-suggestion':_0x2644cb,'data-author-id':_0x5a0729},'priority':_0x564627&&_0x4b31de?0xbc2:0xbb8};}_0x57c718['on']('suggestionLoaded',_0xb76370,{'priority':'high'}),_0x57c718['on']('suggestionUnloaded',_0xb76370,{'priority':'high'}),_0x48db21['model']['document']['registerPostFixer'](()=>{let _0x282d12=!0x1;const _0x248766=Array['from'](_0x48db21['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3d19e1,data:_0x601173}of _0x248766){const {group:_0x33bfe1,type:_0x206426,id:_0x13bfb9}=_0x57c718['_splitMarkerName'](_0x3d19e1);if('suggestion'!=_0x33bfe1||'deletion'!=_0x206426||_0x601173['oldRange'])continue;if(!_0x57c718['hasSuggestion'](_0x13bfb9))continue;const _0x52d367=_0x57c718['getSuggestion'](_0x13bfb9)['getRanges'](),_0xd70855=_0x48db21['plugins']['get']('Users')['me'];for(const _0x2e5c0a of _0x57c718['getSuggestions']()){if(!_0x2e5c0a['isInContent']||_0x2e5c0a['author']!=_0xd70855)continue;if('formatBlock'!=_0x2e5c0a['type']||'tablePasteCell'!=_0x2e5c0a['subType'])continue;if(_0x2e5c0a['getRanges']()['every'](_0x4c0474=>_0x52d367['some'](_0xc7e940=>_0xc7e940['containsRange'](_0x4c0474,!0x0)))){for(const _0x5114fc of _0x2e5c0a['getAllAdjacentSuggestions']())_0x5114fc['isInContent']&&(_0x5114fc['discard'](),_0x282d12=!0x0);}}}return _0x282d12;}),_0x48db21['model']['document']['registerPostFixer'](_0x413c6c=>{const _0x3be4ec=_0x48db21['commands']['get']('redo');if(!_0x3be4ec||!_0x3be4ec['_createdBatches']['has'](_0x413c6c['batch']))return!0x1;let _0x2307c2=!0x1;const _0x5efed4=_0x48db21['plugins']['get']('Users')['me'],_0x38cd13=_0x48db21['model']['document']['differ']['getChanges'](),_0x21596d=Array['from'](_0x48db21['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x52c2c9,data:_0xc2b99c})=>{const {group:_0x44b2e1,subType:_0x521c02,authorId:_0x3403b9}=_0x57c718['_splitMarkerName'](_0x52c2c9);return'suggestion'==_0x44b2e1&&'tablePaste'==_0x521c02&&_0x3403b9==_0x5efed4['id']&&!_0xc2b99c['oldRange'];});for(const _0x33d783 of _0x38cd13){if('insert'!=_0x33d783['type']||'tableCellSuggestion'!=_0x33d783['name']||0x1!=_0x33d783['length'])continue;const _0x3b329f=_0x413c6c['createRange'](_0x33d783['position'],_0x33d783['position']['getShiftedBy'](0x1));if(!_0x21596d['find'](({data:_0x2529ed})=>_0x2529ed['newRange']['isEqual'](_0x3b329f))){for(const {name:_0x24892a,data:_0x5d2669}of _0x21596d)if(_0x3b329f['containsRange'](_0x5d2669['newRange'])){_0x413c6c['updateMarker'](_0x24892a,{'range':_0x3b329f}),_0x2307c2=!0x0;break;}}}return _0x2307c2;}),_0x48db21['model']['document']['registerPostFixer'](_0x55558a=>{let _0x44de16=!0x1;const _0xe58a0a=_0x48db21['plugins']['get']('Users')['me'],_0x1cfe07=_0x57c718['getSuggestions']()['filter'](_0x1a1fde=>_0x1a1fde['isInContent']&&_0x1a1fde['author']==_0xe58a0a),_0x24314b=new Set(),_0x546e5b=new Set();for(const _0x490499 of _0x1cfe07)if('tablePaste'==_0x490499['subType'])for(const _0x41ee2e of _0x490499['getMarkers']()){const _0x2ed3a5=_0x41ee2e['getRange']()['getContainedElement']();if(_0x2ed3a5){if(_0x2ed3a5['is']('element','tableCellSuggestion')&&Oe(_0x2ed3a5)){_0x490499['removeMarker'](_0x41ee2e['name']),_0x24314b['add'](_0x2ed3a5),_0x44de16=!0x0;const _0x11df50=_0x2ed3a5['nextSibling'],_0x2cfedd=_0x2ed3a5['previousSibling'],_0x2b119c=_0x11df50&&_0x11df50['is']('element','tableCellSuggestion'),_0x127f85=_0x2cfedd&&_0x2cfedd['is']('element','tableCellSuggestion');_0x2b119c&&!_0x24314b['has'](_0x11df50)&&_0x546e5b['add'](_0x11df50),_0x127f85&&!_0x24314b['has'](_0x2cfedd)&&_0x546e5b['add'](_0x2cfedd);}else _0x2ed3a5['is']('element','paragraph')&&_0x2ed3a5['isEmpty']&&(_0x490499['removeMarker'](_0x41ee2e['name']),_0x44de16=!0x0);}}else{if('tablePasteCell'==_0x490499['subType']){if(!_0x490499['attributes']||!_0x490499['attributes']['tablePasteChainId'])continue;const _0x103e90=_0x490499['attributes']['markerAttributes'];if(_0x103e90&&Object['keys'](_0x103e90)['length'])continue;const _0x1c7a30=_0x490499['attributes']['tablePasteChainId'];let _0x24b2de=!0x0,_0x542632=!0x0;for(const _0x4fe97e of _0x1cfe07)if(_0x4fe97e['subType']&&_0x4fe97e['subType']['startsWith']('tablePaste')){if(!_0x4fe97e['attributes']['tablePasteChainId']){_0x542632=!0x1;break;}if(_0x4fe97e['id']!=_0x490499['id']&&_0x4fe97e['attributes']['tablePasteChainId']==_0x1c7a30){_0x24b2de=!0x1;break;}}_0x542632&&_0x24b2de&&(_0x490499['removeMarkers'](),_0x44de16=!0x0);}}for(const _0xde072f of _0x24314b)_0x55558a['remove'](_0xde072f);for(const _0x31f064 of _0x546e5b)_0x55558a['unwrap'](_0x31f064);return _0x44de16;}),_0x48db21['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x4c31c1=>_0x2ff426(_0x4c31c1),'converterPriority':'high'}),_0x48db21['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2c3e11,_0x5428e7)=>_0x5428e7['options']['showSuggestionHighlights']?_0x2ff426(_0x2c3e11,!0x1):null,'converterPriority':'high'});const _0x297ac4=_0x48db21['editing']['view'];this['listenTo'](_0x297ac4['document'],'clipboardOutput',(_0x4f18d6,_0x1f3b77)=>{const _0x13241f=[];for(const _0x410384 of _0x297ac4['createRangeIn'](_0x1f3b77['content'])['getItems']())_0x410384['is']('element','suggestion-td')&&_0x13241f['push'](_0x410384);_0x297ac4['change'](_0x13e303=>{for(const _0x58bbeb of _0x13241f)_0x13e303['move'](_0x13e303['createRangeIn'](_0x58bbeb),_0x13e303['createPositionBefore'](_0x58bbeb)),_0x13e303['remove'](_0x58bbeb);});});}}function Oe(_0x4bbd70){if(_0x4bbd70['isEmpty'])return!0x0;const _0x1d154a=_0x4bbd70['getChild'](0x0);return _0x1d154a['is']('element','paragraph')&&_0x1d154a['isEmpty'];}function Ue(_0x3ab5f7,_0x2ec12f={},_0x24cd48){for(const {isAnchor:_0x1cc028,cellHeight:_0x1b667b,cellWidth:_0x3e731a}of _0x24cd48['createTableWalker'](_0x3ab5f7,{'includeAllSlots':!0x0,..._0x2ec12f}))if(!_0x1cc028||0x1!=_0x1b667b||0x1!=_0x3e731a)return!0x1;return!0x0;}class $t extends _0x2b6060{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x539985=this['editor']['plugins']['get']('TrackChangesEditing');_0x539985['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x539985['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x539985['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x539985['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x539985['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x539985['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x3952f2,_0x2c4feb){const _0x11680a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5e34e9=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x51b63b=_0x2c4feb['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x5b5bdc=_0x5e34e9['getColumnGroupElement'](_0x51b63b);let _0x20b1a9=_0x5b5bdc?_0x5e34e9['getTableColumnsWidths'](_0x5b5bdc):null,_0x5bd331=_0x51b63b['getAttribute']('tableWidth')||null;const _0x3bb5e8=_0x2c4feb['tableWidth']||_0x5bd331,_0x4e174e=_0x2c4feb['columnWidths']||_0x20b1a9,_0x1be17f=this['editor']['plugins']['get']('Users')['me'];for(const _0x49b8b1 of _0x11680a['getSuggestions']()){const _0x276cb2=_0x49b8b1['getContainedElement']();if('resizeTable'===_0x49b8b1['subType']&&_0x276cb2===_0x51b63b){_0x49b8b1['author']!==_0x1be17f&&_0x49b8b1['discard']();const _0x1b0a51=_0x49b8b1['data']['commandParams'];_0x5bd331=_0x1b0a51[0x0]['tableWidth'],_0x20b1a9=_0x1b0a51[0x0]['columnWidths'];break;}}_0x3952f2({'table':_0x51b63b,'tableWidth':_0x3bb5e8,'columnWidths':_0x4e174e}),_0x11680a['markBlockFormat'](_0x51b63b,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5bd331,'columnWidths':_0x20b1a9}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x546ce3){if('formatBlock'!=_0x546ce3['type']&&'formatInline'!=_0x546ce3['type'])return;const {data:_0x18784b}=_0x546ce3;if(_0x18784b&&'resizeTable'===_0x18784b['formatGroupId']){const _0x4030ec='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x4030ec)};}}}class Bt extends _0x2b6060{['afterInit'](){const _0x2db749=this['editor'];_0x2db749['plugins']['has']('Template')&&_0x2db749['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x2b6060{['afterInit'](){const _0x2932bd=this['editor'];if(!_0x2932bd['commands']['get']('insertTableOfContents'))return;_0x2932bd['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0xc065b3=_0x2932bd['plugins']['get']('TrackChangesEditing'),_0x431f12=_0x2932bd['locale'];_0xc065b3['descriptionFactory']['registerElementLabel']('tableOfContents',_0x4e3fa4=>c(_0x431f12,'ELEMENT_TABLE_OF_CONTENTS',_0x4e3fa4));}}class Rt extends _0x2b6060{['afterInit'](){const _0x2a58ae=this['editor'];if(!_0x2a58ae['plugins']['has']('Title'))return;const _0x709370=_0x2a58ae['plugins']['get']('TrackChangesEditing');_0x709370['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x2a58ae['locale'],'ELEMENT_TITLE')),_0x2a58ae['model']['document']['registerPostFixer'](_0x431a1e=>{let _0x1fa164=!0x1;const _0x35b9da=Array['from'](_0x2a58ae['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xa3c9f3,data:_0x49bc1d}of _0x35b9da){const {group:_0x11d856}=_0x709370['_splitMarkerName'](_0xa3c9f3);if('suggestion'!==_0x11d856||!_0x49bc1d['newRange'])continue;const _0x53080d=_0x49bc1d['newRange'],_0x4dc28a=_0x53080d['end']['nodeBefore'];if(!_0x4dc28a||!_0x4dc28a['is']('element','title-content'))continue;if(!_0x53080d['start']['isTouching'](_0x53080d['end']))continue;const _0xb0d393=_0x2a58ae['model']['schema']['getNearestSelectionRange'](_0x53080d['end'],'forward');if(_0xb0d393&&_0xb0d393['isCollapsed']){const _0x282bcf=_0x431a1e['createRange'](_0x53080d['start'],_0xb0d393['start']);_0x282bcf['isEqual'](_0x53080d)||(_0x431a1e['updateMarker'](_0xa3c9f3,{'range':_0x282bcf}),_0x1fa164=!0x0);}_0x1fa164||(_0x431a1e['removeMarker'](_0xa3c9f3),_0x1fa164=!0x0);}return _0x1fa164;});}}class xt extends _0x2b6060{['afterInit'](){const _0x994829=this['editor'],_0xbf3c1e=_0x994829['plugins']['get']('TrackChangesEditing');_0x994829['plugins']['has']('Uploadcare')&&(_0xbf3c1e['enableCommand']('uploadcare'),_0x994829['plugins']['has']('UploadcareImageEdit')&&(_0xbf3c1e['enableCommand']('uploadcareImageEdit'),_0xbf3c1e['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0xbf3c1e['registerBlockAttribute']('uploadcareImageId'),_0xbf3c1e['descriptionFactory']['registerDescriptionCallback'](_0x57887b=>{if('attribute'!=_0x57887b['type'])return;const {data:_0x130993}=_0x57887b;return _0x130993&&'uploadcareImageId'==_0x130993['key']?{'type':'format','content':''}:void 0x0;})));}}class Tt extends _0x2b6060{['afterInit'](){const _0x55b55d=this['editor'],_0x184b9e=_0x55b55d['plugins']['get']('TrackChangesEditing');_0x55b55d['plugins']['has']('UndoEditing')&&(_0x184b9e['enableCommand']('undo'),_0x184b9e['enableCommand']('redo'));}}class Et extends _0x2b6060{static get['requires'](){return[Ct];}['afterInit'](){const _0x257fe9=this['editor'];if(!_0x257fe9['plugins']['has']('TableCaptionEditing'))return;_0x257fe9['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ut extends _0x2b6060{['tableProperties'];['tableCellProperties'];constructor(_0x21ab1c){super(_0x21ab1c),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 _0x13364f=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x1f0fb0 of this['tableProperties'])_0x13364f['enableCommand'](_0x1f0fb0,(_0x3df37a,_0x44e59d)=>{const _0x151cbd=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x1f0fb0,[_0x151cbd],this['tableProperties'],'tableProperties',_0x3df37a,_0x44e59d);});_0x13364f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x13364f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x13364f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x4ca4a1,_0x58609a)=>this['handleDiscardAction'](this['tableProperties'],_0x4ca4a1,_0x58609a)),_0x13364f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x462e0b of this['tableCellProperties'])_0x13364f['enableCommand'](_0x462e0b,(_0x1a73ec,_0x26d25f)=>{const _0x326057=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x462e0b,_0x326057,this['tableCellProperties'],'tableCellProperties',_0x1a73ec,_0x26d25f);});_0x13364f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x13364f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x13364f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x222091,_0x374a79)=>this['handleDiscardAction'](this['tableCellProperties'],_0x222091,_0x374a79)),_0x13364f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x13364f['descriptionFactory']['registerDescriptionCallback'](_0x1ef5db=>this['handleSuggestionDescription'](_0x1ef5db));}['_handlePropertyChange'](_0x4da75e,_0x2a1719,_0xcd5313,_0x284578,_0x2670c8,_0xc5e112){const _0x145783=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0xc5e112['batch'],()=>{for(const _0x289054 of _0x2a1719){if(this['_getSuggestion'](_0x289054,_0x284578))_0x2670c8(_0xc5e112);else{const _0x2b1955={};for(const _0xeadc33 of _0xcd5313){const _0xe84eea=_0x289054['getAttribute'](_0xeadc33);void 0x0!==_0xe84eea&&(_0x2b1955[_0xeadc33]=_0xe84eea);}_0x2670c8(_0xc5e112),_0x145783['markBlockFormat'](_0x289054,{'commandParams':[_0x2b1955]},[],_0x284578);}}});}['handleDiscardAction'](_0x5ae10f,_0x518795,_0x2964c0){const _0x34b867=_0x518795[0x0]['start']['nodeAfter'],_0x31c5e4=_0x2964c0['commandParams'][0x0];this['editor']['model']['change'](_0x5c85e2=>{for(const _0x18925f of _0x5ae10f)void 0x0!==_0x31c5e4[_0x18925f]?_0x5c85e2['setAttribute'](_0x18925f,_0x31c5e4[_0x18925f],_0x34b867):_0x5c85e2['removeAttribute'](_0x18925f,_0x34b867);});}['handleSuggestionDescription'](_0x4fd775){if(_0x4fd775['data'])switch(_0x4fd775['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x341c13,_0x228da2){const _0x186365=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3d19f0 of _0x186365['getSuggestions']({'skipNotAttached':!0x0})){const _0x5e8550=_0x3d19f0['getContainedElement']();if(_0x3d19f0['subType']===_0x228da2&&_0x5e8550===_0x341c13)return _0x3d19f0;}return null;}}const u='$elementName';class p extends _0x2b6060{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x1ac468,_0x3da5b7,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,et,nt,it,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,_t,vt,Ct,Nt,Dt,Et,Mt,$t,Ot,Ut,Bt,Rt,xt,Tt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3cae05){super(_0x3cae05),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x3f3925,_0x50ef87,_0x469f5c,_0x3cfbc3)=>{this['_model']['change'](()=>{for(const _0x379b28 of[..._0x3cfbc3,..._0x469f5c])this['_model']['markers']['has'](_0x379b28)&&_0x3cae05['editing']['reconvertMarker'](_0x379b28);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ft(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x3cae05['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0x3cae05['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x3cae05['config']['get']('trackChanges.trackFormatChanges'),_0x3cae05['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x3cae05['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x3cae05,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x1be87=this['editor'],_0x1c3c3e=(_0x489a5c,_0xee911a)=>{if('attribute'!=_0x489a5c)return'ck-suggestion-marker-'+_0x489a5c;const _0x48afef=_0xee911a['split']('|')[0x0];return this['_isBlockAttribute'](_0x48afef)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x1be87['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x266765=>{const {id:_0x506659,authorId:_0x1c92e5,type:_0x104357,subType:_0x6d60c7}=this['_splitMarkerName'](_0x266765['markerName']),_0x3564a8=['ck-suggestion-marker',_0x1c3c3e(_0x104357,_0x6d60c7)];let _0x520b64=0xbb8;return this['activeMarkers']['includes'](_0x266765['markerName'])&&(_0x3564a8['push']('ck-suggestion-marker--active'),_0x520b64=0xbc2),'deletion'==_0x104357&&(_0x520b64+=0x5),{'classes':_0x3564a8,'attributes':{'data-suggestion':_0x506659,'data-author-id':_0x1c92e5},'priority':_0x520b64};}}),_0x1be87['conversion']['for']('dataDowncast')['add'](_0xfa754=>{_0xfa754['on']('addMarker:suggestion',(_0x3b50d2,_0x13973c,_0x5e3f65)=>{if(!_0x5e3f65['options']['showSuggestionHighlights'])return;const _0x1e5cfa=_0x13973c['item'];if(!_0x1e5cfa)return;const _0x350162=_0x5e3f65['mapper']['toViewElement'](_0x1e5cfa);_0x1be87['model']['schema']['isObject'](_0x1e5cfa)&&_0x350162&&!_0x350162['getCustomProperty']('widget')&&_0x350162['is']('containerElement')&&_0x7a10f(_0x350162,_0x5e3f65['writer']);},{'priority':'high'});}),_0x1be87['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0xf18bfa,_0x41fa08)=>{if(!_0x41fa08['options']['showSuggestionHighlights'])return null;const {type:_0x338741,subType:_0x51b778}=this['_splitMarkerName'](_0xf18bfa['markerName']);return{'classes':['ck-suggestion-marker',_0x1c3c3e(_0x338741,_0x51b778)],'priority':0xbb8};}});const _0x328103=({showActiveMarkers:_0x100ea3=!0x0,isAttributeSuggestion:_0x20979f=!0x1}={})=>(_0x5618a0,_0x1f4c4e,_0x37e0d3)=>{if(!_0x1f4c4e['item'])return;const {id:_0x1a4ed7,authorId:_0xc72864}=this['_splitMarkerName'](_0x1f4c4e['markerName']);if(_0x20979f){const _0x88e819=this['_suggestions']['get'](_0x1a4ed7),_0x58638d=this['_getAttributeKey'](_0x88e819);if(!this['_isBlockAttribute'](_0x58638d))return;}if(_0x1f4c4e['item']['is']('selection'))return void _0x37e0d3['consumable']['consume'](_0x1f4c4e['item'],_0x5618a0['name']);const _0xff2a19=_0x37e0d3['mapper']['toViewElement'](_0x1f4c4e['item']);if(_0x1f4c4e['item']['is']('element')&&_0x1be87['model']['schema']['isBlock'](_0x1f4c4e['item'])&&!_0xff2a19['getCustomProperty']('addHighlight')){_0x37e0d3['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0xff2a19),_0x37e0d3['writer']['setAttribute']('data-suggestion',_0x1a4ed7,_0xff2a19),_0x37e0d3['writer']['setAttribute']('data-author-id',_0xc72864,_0xff2a19),_0x37e0d3['mapper']['bindElementToMarker'](_0xff2a19,_0x1f4c4e['markerName']),_0x100ea3&&(this['activeMarkers']['includes'](_0x1f4c4e['markerName'])?_0x37e0d3['writer']['addClass']('ck-suggestion-marker--active',_0xff2a19):_0x37e0d3['writer']['removeClass']('ck-suggestion-marker--active',_0xff2a19));for(const _0xfe7178 of _0x1be87['model']['createRangeIn'](_0x1f4c4e['item'])['getItems']())_0x37e0d3['consumable']['consume'](_0xfe7178,_0x5618a0['name']);_0x37e0d3['consumable']['consume'](_0x1f4c4e['item'],_0x5618a0['name']);}};_0x1be87['conversion']['for']('dataDowncast')['add'](_0x3670db=>{_0x3670db['on']('addMarker:suggestion:formatBlock',(_0x2d5b4c,_0x9d693b,_0x5db8bc)=>{_0x5db8bc['options']['showSuggestionHighlights']&&_0x328103({'showActiveMarkers':!0x1})(_0x2d5b4c,_0x9d693b,_0x5db8bc);},{'priority':'highest'});}),_0x1be87['conversion']['for']('dataDowncast')['add'](_0x277e67=>{_0x277e67['on']('addMarker:suggestion:attribute',(_0x3db336,_0x22d4ae,_0x38f9c3)=>{_0x38f9c3['options']['showSuggestionHighlights']&&_0x328103({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x3db336,_0x22d4ae,_0x38f9c3);},{'priority':'highest'});}),_0x1be87['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x3f5d1c,_0x5161d6)=>_0x5161d6['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x3f5d1c['substr'](0xb)}}),_0x1be87['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x20fcf1,{writer:_0x270930})=>{let _0x3a8ec0='suggestion:'+_0x20fcf1['getAttribute']('suggestion-type')+':'+_0x20fcf1['getAttribute']('id');return _0x20fcf1['getAttribute']('marker-count')&&(_0x3a8ec0+=':'+_0x20fcf1['getAttribute']('marker-count')),_0x270930['createElement']('$marker',{'data-name':_0x3a8ec0});}}),_0x1be87['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x1be87['conversion']['for']('editingDowncast')['add'](_0x2bfc28=>{_0x2bfc28['on']('addMarker:suggestion:formatBlock',_0x328103(),{'priority':'high'});}),_0x1be87['conversion']['for']('editingDowncast')['add'](_0x44042c=>{_0x44042c['on']('addMarker:suggestion:attribute',_0x328103({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x1be87['conversion']['for']('editingDowncast')['add'](_0x5930df=>{_0x5930df['on']('removeMarker:suggestion:formatBlock',(_0x18b450,_0x30f653,_0x4f9e73)=>{const _0x2b2ef4=_0x4f9e73['mapper']['markerNameToElements'](_0x30f653['markerName']);if(_0x2b2ef4){for(const _0x3bf8b4 of _0x2b2ef4)_0x3bf8b4['getCustomProperty']('addHighlight')||(_0x4f9e73['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3bf8b4),_0x4f9e73['writer']['removeAttribute']('data-suggestion',_0x3bf8b4),_0x4f9e73['writer']['removeAttribute']('data-author-id',_0x3bf8b4),_0x4f9e73['mapper']['unbindElementFromMarkerName'](_0x3bf8b4,_0x30f653['markerName']));}},{'priority':'high'});}),_0x1be87['conversion']['for']('editingDowncast')['add'](_0x2bd267=>{_0x2bd267['on']('removeMarker:suggestion:attribute',(_0x58af5e,_0x1323f2,_0x130280)=>{const _0x1744c2=_0x130280['mapper']['markerNameToElements'](_0x1323f2['markerName']);if(!_0x1744c2)return;const {id:_0x3241f5}=this['_splitMarkerName'](_0x1323f2['markerName']),_0x4f3195=this['_suggestions']['get'](_0x3241f5),_0x14a748=this['_getAttributeKey'](_0x4f3195);if(this['_isBlockAttribute'](_0x14a748)){for(const _0x35c813 of _0x1744c2)_0x35c813['getCustomProperty']('addHighlight')||(_0x130280['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x35c813),_0x130280['writer']['removeAttribute']('data-suggestion',_0x35c813),_0x130280['writer']['removeAttribute']('data-author-id',_0x35c813),_0x130280['mapper']['unbindElementFromMarkerName'](_0x35c813,_0x1323f2['markerName']));}},{'priority':'high'});}),_0x1be87['model']['document']['registerPostFixer'](_0x4119b5=>{let _0x3eb03e=!0x1;const _0x4cf40d=Array['from'](_0x1be87['model']['document']['differ']['getChangedMarkers']()),_0x131a94=new Set();for(const {name:_0x32cec2,data:_0x320f38}of _0x4cf40d){const {group:_0x44359c,type:_0xd506c7,subType:_0x10b1ee,id:_0x1dcdb2}=this['_splitMarkerName'](_0x32cec2);if('suggestion'!==_0x44359c)continue;const _0x593526=this['_suggestions']['get'](_0x1dcdb2);if(null!=_0x320f38['newRange']){'formatInline'==_0xd506c7&&(_0x3eb03e=_0x3eb03e||Lt(_0x320f38['newRange'],_0x32cec2,_0x4119b5,_0x1be87['model']['schema']));const _0x445498='attribute'==_0xd506c7&&this['_isBlockAttribute'](_0x10b1ee['split']('|')[0x0]);if(_0x320f38['newRange']['isCollapsed']||'$graveyard'==_0x320f38['newRange']['root']['rootName']||'formatBlock'==_0xd506c7&&!Kt(_0x320f38['newRange'])||_0x445498&&!Kt(_0x320f38['newRange'])||'deletion'==_0xd506c7&&!(!Gt(_0x1af83a=_0x320f38['newRange'])&&!function(_0x5b41c){return _0x5b41c['start']['parent']==_0x5b41c['end']['nodeBefore']&&_0x5b41c['start']['isAtEnd'];}(_0x1af83a)))_0x4119b5['removeMarker'](_0x32cec2),_0x3eb03e=!0x0;else{if(!_0x593526||!_0x593526['isInContent'])continue;if(_0x320f38['newRange']&&_0x320f38['oldRange']&&_0x320f38['newRange']['isEqual'](_0x320f38['oldRange']))continue;_0x131a94['add'](_0x593526);}}}var _0x1af83a;return _0x131a94['size']>0x0&&(_0x3eb03e=!!this['_joinWithAdjacentSuggestions'](_0x131a94)||_0x3eb03e),_0x3eb03e;}),_0x1be87['model']['document']['registerPostFixer'](_0x11a2aa=>{let _0x1ac9d7=!0x1;for(const _0x2be358 of _0x1be87['model']['document']['differ']['getChanges']())if('insert'==_0x2be358['type'])for(const _0x3d1e70 of this['_suggestions']['values']()){if(_0x3d1e70['isMultiRange']||!_0x3d1e70['isInContent'])continue;const _0x2cbf59='formatBlock'==_0x3d1e70['type'],_0x406dd1=this['_getAttributeKey'](_0x3d1e70),_0x56ded2=_0x406dd1&&this['_isBlockAttribute'](_0x406dd1);if(!_0x2cbf59&&!_0x56ded2)continue;const _0x2c4615=_0x3d1e70['getFirstRange']();if(_0x2c4615['start']['parent']!=_0x2c4615['end']['parent']&&!_0x2c4615['end']['isAtEnd']){const _0x2d9669=_0x1be87['model']['createPositionAt'](_0x2c4615['start']['nodeAfter'],'end'),_0x4e2558=_0x1be87['model']['createRange'](_0x2c4615['start'],_0x2d9669);_0x11a2aa['updateMarker'](_0x3d1e70['getFirstMarker'](),{'range':_0x4e2558}),_0x1ac9d7=!0x0;}}return _0x1ac9d7;}),_0x1be87['model']['document']['registerPostFixer'](_0x2127a6=>this['_processAttributeChanges'](_0x2127a6)),_0x1be87['model']['document']['registerPostFixer'](_0x3a0121=>!_0x3a0121['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x3a0121)),_0x1be87['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x1be87['model']['document']['on']('change:data',(_0x2ceddf,_0x22ba05)=>{if(!_0x22ba05['isLocal']||_0x22ba05['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x10d404=_0x1be87['model']['document']['differ']['getChanges']();if(0x0==_0x10d404['length'])return;const _0x47c956=[],_0x3440e3=_0x10d404['filter'](_0x2591ea=>'attribute'==_0x2591ea['type']),_0x153644=_0x10d404['filter'](_0x1daa47=>'insert'==_0x1daa47['type']&&'$text'!=_0x1daa47['name']);for(const _0x35b33c of _0x3440e3)this['_isRegisteredAttribute'](_0x35b33c['attributeKey'])&&_0x47c956['push']({'key':_0x35b33c['attributeKey'],'newValue':_0x35b33c['attributeNewValue'],'oldValue':_0x35b33c['attributeOldValue'],'range':Ht(_0x35b33c['range'],_0x1be87['model'])});for(const _0x15195b of _0x153644){if('rename'!=_0x15195b['action']&&'refresh'!=_0x15195b['action'])continue;const _0x512fb7=qt(_0x15195b['position']['nodeAfter'],_0x1be87['model']),_0x2d6d90=_0x15195b['before'];'rename'==_0x15195b['action']&&_0x47c956['push']({'key':u,'newValue':_0x15195b['name'],'oldValue':_0x2d6d90['name'],'range':_0x512fb7});for(const [_0x283eb9,_0x3dd495]of _0x2d6d90['attributes']){if(!this['_isRegisteredAttribute'](_0x283eb9))continue;const _0x58c7bc=_0x15195b['attributes']['get'](_0x283eb9);_0x3dd495!==_0x58c7bc&&_0x47c956['push']({'key':_0x283eb9,'newValue':_0x58c7bc,'oldValue':_0x3dd495,'range':_0x512fb7});}for(const [_0x369051,_0x502c9d]of _0x15195b['attributes'])this['_isRegisteredAttribute'](_0x369051)&&(_0x2d6d90['attributes']['has'](_0x369051)||_0x47c956['push']({'key':_0x369051,'newValue':_0x502c9d,'oldValue':null,'range':_0x512fb7}));}0x0!=_0x47c956['length']&&_0x1be87['model']['enqueueChange'](_0x22ba05,_0x26a135=>{const _0x20adba=_0x930f5e();for(const {range:_0x47a2b2,key:_0xeca030,oldValue:_0x53a2de,newValue:_0x11e1b8}of _0x47c956)this['markAttributeChange'](_0x47a2b2,_0xeca030,_0x53a2de,_0x11e1b8,{'groupId':_0x20adba});this['_reduceExistingSuggestions'](_0x26a135,_0x47c956);});},{'priority':'lowest'}),_0x1be87['model']['markers']['on']('update:suggestion',(_0x361c87,_0x33ed1d,_0x179795)=>{if(null==_0x179795){const {id:_0x2b408c}=this['_splitMarkerName'](_0x33ed1d['name']),_0x8ff7d=this['_suggestions']['get'](_0x2b408c);_0x8ff7d&&_0x8ff7d['addMarkerName'](_0x33ed1d['name']);}}),_0x1be87['model']['document']['on']('change:data',()=>{const _0x457f92=Array['from'](_0x1be87['model']['document']['differ']['getChangedMarkers']())['filter'](_0x48fe34=>'suggestion'===this['_splitMarkerName'](_0x48fe34['name'])['group']);if(0x0===_0x457f92['length'])return;_0x457f92['sort']((_0x565319,_0xe6c41f)=>{const _0x5a11c0=_0x565319['data']['oldRange'],_0x7c243d=_0xe6c41f['data']['oldRange'];return null===_0x5a11c0&&null===_0x7c243d?0x0:null===_0x5a11c0&&null!==_0x7c243d?-0x1:null!==_0x5a11c0&&null===_0x7c243d?0x1:_0x5a11c0['start']['isBefore'](_0x7c243d['start'])?-0x1:0x1;});const _0x3c842e=new Set(),_0x580626=new Set();for(const {name:_0xd9191b,data:_0x10ac30}of _0x457f92){const {id:_0x2caba1}=this['_splitMarkerName'](_0xd9191b);if(null===_0x10ac30['oldRange']){const _0x280823=this['_handleNewSuggestionMarker'](_0xd9191b);_0x580626['add'](_0x280823);}else{const _0x4aa3f0=this['_suggestions']['get'](_0x2caba1);null!==_0x10ac30['newRange']||_0x4aa3f0['isInContent']?(_0x3c842e['add'](_0x4aa3f0['head']),_0x580626['add'](_0x4aa3f0)):this['_removeSuggestion'](_0x4aa3f0);}}_0x580626['size']>0x0&&this['_refreshSuggestionsChain'](_0x580626);for(const _0xe5cc7f of _0x3c842e)this['fire']('suggestionChanged',_0xe5cc7f);}),_0x1be87['model']['on']('applyOperation',(_0x2400c4,_0x428e60)=>{const _0xa9389a=_0x428e60[0x0];if(!this['_suggestions']['size'])return;if(!_0xa9389a['isDocumentOperation'])return;if(_0xa9389a['batch']['isUndo']||!_0xa9389a['batch']['isLocal'])return;let _0x5d0beb,_0x1a4953;switch(_0xa9389a['type']){case'insert':_0x5d0beb=_0x1be87['model']['createPositionAt'](_0xa9389a['position']),_0x1a4953=_0x5d0beb['getShiftedBy'](_0xa9389a['howMany']);break;case'split':_0x5d0beb=_0x1be87['model']['createPositionAt'](_0xa9389a['splitPosition']),_0x1a4953=_0x1be87['model']['createPositionAt'](_0xa9389a['moveTargetPosition']);break;case'move':_0x5d0beb=_0x1be87['model']['createPositionAt'](_0xa9389a['targetPosition']),_0x1a4953=_0x5d0beb['getShiftedBy'](_0xa9389a['howMany']);break;default:return;}const _0x1d2097=_0x1be87['model']['createRange'](_0x5d0beb,_0x1a4953);_0x1be87['model']['change'](()=>{for(const {suggestion:_0x24063d,meta:_0x147b11}of this['_findSuggestions'](_0x1d2097)){if(_0x24063d['isMultiRange'])continue;if('formatInline'==_0x24063d['type'])continue;const _0x138dd6=this['_getAttributeKey'](_0x24063d);if(_0x138dd6&&this['_isBlockAttribute'](_0x138dd6)&&'split'!=_0xa9389a['type'])continue;const _0x4b3bae=_0x24063d['data']&&_0x24063d['data']['multipleBlocks'];('formatBlock'!=_0x24063d['type']||'split'==_0xa9389a['type']&&!_0x4b3bae)&&(_0x147b11['containsRangeInObject']||'insertion'==_0x24063d['type']&&_0x147b11['isOwn']||_0x24063d['getFirstRange']()['containsRange'](_0x1d2097)&&this['_breakSuggestionMarker'](_0x24063d,_0x5d0beb,_0x1a4953));}});},{'priority':'lowest'}),_0x1be87['model']['on']('deleteContent',(_0x48d1a5,_0x58c6c1)=>{const _0x1c18d0=_0x58c6c1[0x0],_0x4dfe19=_0x58c6c1[0x1];if(_0x4dfe19&&_0x4dfe19['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x1c18d0['isCollapsed'])return;const _0x16cd8f=_0x1be87['model']['schema'],{start:_0x5a2bab,end:_0x3a67ef}=_0x1c18d0['getFirstRange'](),_0xb27639=_0x5a2bab['nodeAfter']&&_0x16cd8f['isLimit'](_0x5a2bab['nodeAfter'])?null:_0x16cd8f['getNearestSelectionRange'](_0x5a2bab,'forward'),_0x437021=_0x3a67ef['nodeBefore']&&_0x16cd8f['isLimit'](_0x3a67ef['nodeBefore'])?null:_0x16cd8f['getNearestSelectionRange'](_0x3a67ef,'backward'),_0x3f758a=_0x1be87['model']['createRange'](_0xb27639?_0xb27639['start']:_0x5a2bab,_0x437021?_0x437021['end']:_0x3a67ef);_0x1be87['model']['change'](_0x3a6561=>{this['markDeletion'](_0x3f758a);const _0x5d6ed4=_0x1be87['model']['schema']['getNearestSelectionRange'](_0x3f758a['start']);_0x1c18d0['is']('documentSelection')?_0x3a6561['setSelection'](_0x5d6ed4):_0x1c18d0['setTo'](_0x5d6ed4);}),_0x48d1a5['stop']();},{'priority':_0x44c6f3['normal']+0xa}),_0x1be87['model']['on']('insertContent',(_0x2bdfdc,_0x207085)=>{const _0x250df1=_0x207085[_0x207085['length']-0x1];_0x250df1&&_0x250df1['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x1be87['model']['change'](()=>{let _0x225005=_0x1be87['model']['insertContent'](_0x207085[0x0],_0x207085[0x1],_0x207085[0x2],{'forceDefaultExecution':!0x0});if(!_0x225005)return;_0x2bdfdc['return']=_0x225005['clone']();const _0x363a99=_0x225005['end']['nodeBefore'],_0x1f2873=_0x1be87['model']['schema'];_0x363a99&&_0x1f2873['isBlock'](_0x363a99)&&!_0x1f2873['isObject'](_0x363a99)&&(_0x225005=_0x1be87['model']['createRange'](_0x225005['start'],_0x1be87['model']['createPositionAt'](_0x363a99,'end'))),this['markInsertion'](_0x225005);}),_0x2bdfdc['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x24249c=new O(_0x1be87,this['_suggestions']);_0x1be87['commands']['add']('acceptSuggestion',_0x24249c),this['enableCommand']('acceptSuggestion');const _0x120a2c=new R(_0x1be87,this['_suggestions']);_0x1be87['commands']['add']('discardSuggestion',_0x120a2c),this['enableCommand']('discardSuggestion'),_0x1be87['commands']['add']('acceptAllSuggestions',new x(_0x1be87,_0x24249c,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x1be87['commands']['add']('discardAllSuggestions',new x(_0x1be87,_0x120a2c,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x1be87['commands']['add']('acceptSelectedSuggestions',new E(_0x1be87,_0x24249c,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x1be87['commands']['add']('discardSelectedSuggestions',new E(_0x1be87,_0x120a2c,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x6081dc=_0x1be87['plugins']['get']('CommentsRepository');this['listenTo'](_0x6081dc,'addComment',(_0x1990ab,{threadId:_0x14b54d})=>{const _0x2d7383=this['_suggestions']['get'](_0x14b54d);_0x2d7383&&_0x2d7383['commentThread']&&0x1===_0x2d7383['commentThread']['length']&&this['_updateSuggestionData'](_0x14b54d,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x6081dc,'removeComment',(_0x48e9db,{threadId:_0x3401ea})=>{const _0x42841c=this['_suggestions']['get'](_0x3401ea);_0x42841c&&_0x42841c['commentThread']&&!_0x42841c['commentThread']['length']&&this['_updateSuggestionData'](_0x3401ea,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x446a6d){const _0x2819b7=_0x3c9d99([0x77,0x69,0x4a,0x76,0x52,0x35,0x36,0x43,0x39,0x67,0x6a,0x61,0x79,0x4e,0x46,0x34,0x6b,0x38,0x65,0x6e,0x41,0x70,0x55,0x33,0x47,0x5a,0x30,0x54,0x6d,0x71,0x64,0x58,0x62,0x7a,0x32,0x59,0x44,0x63,0x50,0x4d,0x45,0x57,0x73,0x49,0x6c,0x4f,0x37,0x78,0x42,0x68,0x48,0x66,0x72,0x6f,0x51,0x75,0x31,0x56,0x74,0x4b,0x53,0x4c]),_0x36c6ea=0x21ac55e9,_0x52d328=0x21ab37e9^_0x36c6ea,_0x5680a5=window[_0x3c9d99([0x44,0x61,0x74,0x65])][_0x3c9d99([0x6e,0x6f,0x77])](),_0x5d9c25=_0x446a6d[_0x3c9d99([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5e4480=new window[(_0x3c9d99([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x53006c=>{_0x5d9c25[_0x3c9d99([0x6f,0x6e,0x63,0x65])](_0x3c9d99([0x72,0x65,0x61,0x64,0x79]),_0x53006c);}),_0x4ccf2d={[_0x3c9d99([0x6b,0x74,0x79])]:_0x3c9d99([0x45,0x43]),[_0x3c9d99([0x75,0x73,0x65])]:_0x3c9d99([0x73,0x69,0x67]),[_0x3c9d99([0x63,0x72,0x76])]:_0x3c9d99([0x50,0x2d,0x32,0x35,0x36]),[_0x3c9d99([0x78])]:_0x3c9d99([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]),[_0x3c9d99([0x79])]:_0x3c9d99([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]),[_0x3c9d99([0x61,0x6c,0x67])]:_0x3c9d99([0x45,0x53,0x32,0x35,0x36])},_0xc8e5c5=_0x5d9c25[_0x3c9d99([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3c9d99([0x67,0x65,0x74])](_0x3c9d99([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4443c9(){let _0xe12fab,_0x367100=null,_0x29545b=null;try{if(_0xc8e5c5==_0x3c9d99([0x47,0x50,0x4c]))return _0x3c9d99([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xe12fab=_0x23905c(),!_0xe12fab)return _0x3c9d99([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xe12fab[_0x3c9d99([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x29545b=_0x503183(_0xe12fab[_0x3c9d99([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xe12fab[_0x3c9d99([0x6a,0x74,0x69])])),await _0xb9317d()?_0x54bb14()?_0x4c15ff()?_0x3c9d99([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xe5b5b0()?(_0xe12fab[_0x3c9d99([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3c9d99([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x367100=_0x10d0e8(_0x3c9d99([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xe12fab[_0x3c9d99([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3c9d99([0x74,0x72,0x69,0x61,0x6c])&&(_0x367100=_0x10d0e8(_0x3c9d99([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1a7977()):_0x3c9d99([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3c9d99([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3c9d99([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x58783f){return _0x3c9d99([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4c15ff(){const _0x4fd007=[_0x3c9d99([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3c9d99([0x74,0x72,0x69,0x61,0x6c])][_0x3c9d99([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe12fab[_0x3c9d99([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5680a5/0x3e8:0xe10*_0x52d328;return _0xe12fab[_0x3c9d99([0x65,0x78,0x70])]<_0x4fd007;}function _0x54bb14(){const _0x77d16f=_0xe12fab[_0x3c9d99([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x77d16f)return!0x1;if(_0x77d16f[_0x3c9d99([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c9d99([0x2a])))return!0x0;if(_0x77d16f[_0x3c9d99([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c9d99([0x54,0x43])))return!0x0;if(_0x77d16f[_0x3c9d99([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c9d99([0x52,0x54,0x43]))){if(_0x35e27b())return!0x0;if(_0xcb10c3()||_0x40be72())return!0x0;}return!0x1;}function _0xe5b5b0(){const _0x59967c=_0xe12fab[_0x3c9d99([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x59967c||0x0==_0x59967c[_0x3c9d99([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3ab5c6}=new URL(window[_0x3c9d99([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x59967c[_0x3c9d99([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ab5c6))return!0x0;const _0x415df5=_0x3ab5c6[_0x3c9d99([0x73,0x70,0x6c,0x69,0x74])](_0x3c9d99([0x2e]));return _0x59967c[_0x3c9d99([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xf2b7d=>_0xf2b7d[_0x3c9d99([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c9d99([0x2a])))[_0x3c9d99([0x6d,0x61,0x70])](_0x11977f=>_0x11977f[_0x3c9d99([0x73,0x70,0x6c,0x69,0x74])](_0x3c9d99([0x2e])))[_0x3c9d99([0x73,0x6f,0x6d,0x65])](_0x8d2e18=>_0x415df5[_0x3c9d99([0x65,0x76,0x65,0x72,0x79])]((_0x2873ee,_0x1d2f08)=>_0x8d2e18[_0x1d2f08]===_0x2873ee||_0x8d2e18[_0x1d2f08]===_0x3c9d99([0x2a])));}function _0x1a7977(){return _0x367100&&_0x29545b?new window[(_0x3c9d99([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x254160,_0x284eca)=>{_0x367100[_0x3c9d99([0x74,0x68,0x65,0x6e])](_0x254160,_0x284eca),_0x29545b[_0x3c9d99([0x74,0x68,0x65,0x6e])](_0x12722e=>{_0x12722e!=_0x3c9d99([0x56,0x61,0x6c,0x69,0x64])&&_0x254160(_0x12722e);},_0x284eca);}):_0x367100||_0x29545b||_0x3c9d99([0x56,0x61,0x6c,0x69,0x64]);}}function _0x503183(_0x4e8443,_0x4c24bd){return new window[(_0x3c9d99([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4985c1=>{if(_0x1d4675())return _0x4985c1(_0x3c9d99([0x56,0x61,0x6c,0x69,0x64]));_0x58355a(),_0x5d9c25[_0x3c9d99([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3c9d99([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3e2574=!0x1;const _0x32533c=_0x930f5e();function _0x1baf96(_0x10f810){return!!_0x10f810&&(typeof _0x10f810===_0x3c9d99([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x10f810===_0x3c9d99([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x10f810[_0x3c9d99([0x74,0x68,0x65,0x6e])]===_0x3c9d99([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x10f810[_0x3c9d99([0x63,0x61,0x74,0x63,0x68])]===_0x3c9d99([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4b2f72(_0x2fd01f){_0x5a9d24(_0x2fd01f)[_0x3c9d99([0x74,0x68,0x65,0x6e])](_0x5f73e1=>{if(!_0x5f73e1||_0x5f73e1[_0x3c9d99([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3c9d99([0x6f,0x6b]))return _0x3c9d99([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2a9c1b(_0xbdf118(_0x32533c+_0x4c24bd))!=_0x5f73e1[_0x3c9d99([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3c9d99([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3c9d99([0x56,0x61,0x6c,0x69,0x64]);})[_0x3c9d99([0x74,0x68,0x65,0x6e])](_0x550c70=>(_0x52b3be(),_0x550c70),()=>{const _0x2e4fb6=_0x50f2ef();return null==_0x2e4fb6?(_0x52b3be(),_0x3c9d99([0x56,0x61,0x6c,0x69,0x64])):_0x3c9d99(_0x5680a5-_0x2e4fb6>(0x5a0d1e9^_0x36c6ea)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3c9d99([0x74,0x68,0x65,0x6e])](_0x4985c1)[_0x3c9d99([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4985c1(_0x3c9d99([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2db417=0x219abb69^_0x36c6ea;function _0x52b3be(){const _0x11e6da=_0x3c9d99([0x6c,0x6c,0x63,0x74,0x2d])+_0x2a9c1b(_0xbdf118(_0x4e8443)),_0x316468=_0x2350d0(_0x2a9c1b(window[_0x3c9d99([0x4d,0x61,0x74,0x68])][_0x3c9d99([0x63,0x65,0x69,0x6c])](_0x5680a5/_0x2db417)));window[_0x3c9d99([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3c9d99([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x11e6da,_0x316468);}function _0x50f2ef(){const _0xf9d230=_0x3c9d99([0x6c,0x6c,0x63,0x74,0x2d])+_0x2a9c1b(_0xbdf118(_0x4e8443)),_0x14b312=window[_0x3c9d99([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3c9d99([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xf9d230);return _0x14b312?window[_0x3c9d99([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2350d0(_0x14b312),0x10)*_0x2db417:null;}function _0x5a9d24(_0x39a285){return new window[(_0x3c9d99([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x459626,_0xaf87dd)=>{_0x39a285[_0x3c9d99([0x74,0x68,0x65,0x6e])](_0x459626,_0xaf87dd),window[_0x3c9d99([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xaf87dd,0x21ad8129^_0x36c6ea);});}}_0x5d9c25[_0x3c9d99([0x6f,0x6e])](_0x3c9d99([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2676f0,_0x1335e3)=>{if(_0x1335e3[0x0]!=_0x4e8443)return _0x4985c1(_0x3c9d99([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1335e3[0x1]={..._0x1335e3[0x1],[_0x3c9d99([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x32533c};},{[_0x3c9d99([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3c9d99([0x68,0x69,0x67,0x68])}),_0x5d9c25[_0x3c9d99([0x6f,0x6e])](_0x3c9d99([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x58bac7=>{_0x1baf96(_0x58bac7[_0x3c9d99([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3e2574=!0x0,_0x4b2f72(_0x58bac7[_0x3c9d99([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3c9d99([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3c9d99([0x6c,0x6f,0x77])}),_0x5e4480[_0x3c9d99([0x74,0x68,0x65,0x6e])](()=>{_0x3e2574||_0x4985c1(_0x3c9d99([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1d4675(){return _0x5d9c25[_0x3c9d99([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3c9d99([0x76,0x69,0x65,0x77])][_0x3c9d99([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3c9d99([0x61,0x75,0x74,0x6f]);}function _0x58355a(){_0x5d9c25[_0x3c9d99([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3c9d99([0x76,0x69,0x65,0x77])][_0x3c9d99([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3c9d99([0x61,0x75,0x74,0x6f]);}}function _0x10d0e8(_0x49f04e){const _0x24bc16=[new window[(_0x3c9d99([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x333121=>setTimeout(_0x333121,0x21a56b25^_0x36c6ea)),_0x5e4480[_0x3c9d99([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3c9d99([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x42b4a9=>{let _0x1cbd72=0x0;_0x5d9c25[_0x3c9d99([0x6d,0x6f,0x64,0x65,0x6c])][_0x3c9d99([0x6f,0x6e])](_0x3c9d99([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x822bc0,_0x5596b7)=>{_0x5596b7[0x0][_0x3c9d99([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1cbd72++,_0x1cbd72==(0x21ac5411^_0x36c6ea)&&(_0x42b4a9(),_0x822bc0[_0x3c9d99([0x6f,0x66,0x66])]());});}))];return window[_0x3c9d99([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3c9d99([0x72,0x61,0x63,0x65])](_0x24bc16)[_0x3c9d99([0x74,0x68,0x65,0x6e])](()=>_0x49f04e);}async function _0x38e746(){await _0x5e4480,_0x5d9c25[_0x3c9d99([0x6d,0x6f,0x64,0x65,0x6c])][_0x3c9d99([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5b03c5,_0x5d9c25[_0x3c9d99([0x6d,0x6f,0x64,0x65,0x6c])][_0x3c9d99([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5b03c5,_0x5d9c25[_0x3c9d99([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3c9d99([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x35e27b(){return _0x4a2b40(_0x3c9d99([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x272df1(_0x3c9d99([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3c9d99([0x73,0x74,0x61,0x74,0x65])]==_0x3c9d99([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xcb10c3(){return _0x4a2b40(_0x3c9d99([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 _0x40be72(){return _0x4a2b40(_0x3c9d99([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x17dd44(_0x1425f1){const _0x3ff376=_0x526b2d();_0x5d9c25[_0x3ff376]=_0x3c9d99([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1425f1,_0x1425f1!=_0x3c9d99([0x56,0x61,0x6c,0x69,0x64])&&_0x38e746();}function _0x526b2d(){const _0x3866b2=window[_0x3c9d99([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3c9d99([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3c9d99([0x6e,0x6f,0x77])]())[_0x3c9d99([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3c9d99([0x2e]),'');let _0x2e1566=_0x3c9d99([0x77]);for(let _0x4eedbd=0x0;_0x4eedbd<_0x3866b2[_0x3c9d99([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4eedbd+=0x2){let _0x2d80e4=window[_0x3c9d99([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3866b2[_0x3c9d99([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4eedbd,_0x4eedbd+0x2));_0x2d80e4>=_0x2819b7[_0x3c9d99([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2d80e4-=_0x2819b7[_0x3c9d99([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2e1566+=_0x2819b7[_0x2d80e4];}return _0x2e1566;}function _0x23905c(){const _0x6b190e=_0xc8e5c5[_0x3c9d99([0x73,0x70,0x6c,0x69,0x74])](_0x3c9d99([0x2e]));if(0x3!=_0x6b190e[_0x3c9d99([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x40d54c(_0x6b190e[0x1]);function _0x40d54c(_0x1b39df){const _0x1d6c7b=_0x2a40d4(_0x1b39df);return _0x1d6c7b&&_0x22464e()?_0x1d6c7b:null;function _0x22464e(){const _0x92168f=_0x1d6c7b[_0x3c9d99([0x6a,0x74,0x69])],_0x28e0f9=window[_0x3c9d99([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x92168f[_0x3c9d99([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x92168f[_0x3c9d99([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5cc022={..._0x1d6c7b,[_0x3c9d99([0x6a,0x74,0x69])]:_0x92168f[_0x3c9d99([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x92168f[_0x3c9d99([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5cc022[_0x3c9d99([0x76,0x63])],_0xbdf118(_0x5cc022)==_0x28e0f9;}}}async function _0xb9317d(){let _0x115845=!0x0;try{const _0x1aad53=_0xc8e5c5[_0x3c9d99([0x73,0x70,0x6c,0x69,0x74])](_0x3c9d99([0x2e])),[_0x4e3069,_0xf187b9,_0x4b0862]=_0x1aad53;return _0x56ef11(_0x4e3069),await _0x481e34(_0x4e3069,_0xf187b9,_0x4b0862),_0x115845;}catch(_0x43898e){return!0x1;}function _0x56ef11(_0x16512d){const _0x2f83a9=_0x2a40d4(_0x16512d);_0x2f83a9&&_0x2f83a9[_0x3c9d99([0x61,0x6c,0x67])]==_0x3c9d99([0x45,0x53,0x32,0x35,0x36])||(_0x115845=!0x1);}async function _0x481e34(_0x3cf82d,_0x2f4f6c,_0x1873b8){const _0x1a3c6d=window[_0x3c9d99([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3c9d99([0x66,0x72,0x6f,0x6d])](_0x5270ac(_0x1873b8),_0x39b36d=>_0x39b36d[_0x3c9d99([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1b88c=new window[(_0x3c9d99([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3c9d99([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3cf82d+_0x3c9d99([0x2e])+_0x2f4f6c),_0x5b74e5=window[_0x3c9d99([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3c9d99([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5b74e5)return;const _0x1c3564=await _0x5b74e5[_0x3c9d99([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3c9d99([0x6a,0x77,0x6b]),_0x4ccf2d,{[_0x3c9d99([0x6e,0x61,0x6d,0x65])]:_0x3c9d99([0x45,0x43,0x44,0x53,0x41]),[_0x3c9d99([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3c9d99([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3c9d99([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5b74e5[_0x3c9d99([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3c9d99([0x6e,0x61,0x6d,0x65])]:_0x3c9d99([0x45,0x43,0x44,0x53,0x41]),[_0x3c9d99([0x68,0x61,0x73,0x68])]:{[_0x3c9d99([0x6e,0x61,0x6d,0x65])]:_0x3c9d99([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1c3564,_0x1a3c6d,_0x1b88c)||(_0x115845=!0x1);}}function _0x2a40d4(_0x3e309f){return _0x3e309f[_0x3c9d99([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3c9d99([0x65,0x79]))?JSON[_0x3c9d99([0x70,0x61,0x72,0x73,0x65])](_0x5270ac(_0x3e309f)):null;}function _0x5270ac(_0x3169c5){return window[_0x3c9d99([0x61,0x74,0x6f,0x62])](_0x3169c5[_0x3c9d99([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3c9d99([0x2b]))[_0x3c9d99([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3c9d99([0x2f])));}function _0xbdf118(_0xbf1505){let _0x159713=0x1505;function _0x29139d(_0x1e4071){for(let _0x559a68=0x0;_0x559a68<_0x1e4071[_0x3c9d99([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x559a68++){const _0x1ff351=_0x1e4071[_0x3c9d99([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x559a68);_0x159713=(_0x159713<<0x5)+_0x159713+_0x1ff351,_0x159713&=_0x159713;}}function _0x167ffb(_0x4d6e59){Array[_0x3c9d99([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4d6e59)?_0x4d6e59[_0x3c9d99([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x167ffb):_0x4d6e59&&typeof _0x4d6e59==_0x3c9d99([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3c9d99([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4d6e59)[_0x3c9d99([0x73,0x6f,0x72,0x74])]()[_0x3c9d99([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x44c1d0,_0x17b54c])=>{_0x29139d(_0x44c1d0),_0x167ffb(_0x17b54c);}):_0x29139d(window[_0x3c9d99([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4d6e59));}return _0x167ffb(_0xbf1505),_0x159713>>>0x0;}function _0x2a9c1b(_0x448823){return _0x448823[_0x3c9d99([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3c9d99([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3c9d99([0x30]));}function _0x2350d0(_0x3b281b){return _0x3b281b[_0x3c9d99([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3c9d99([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3c9d99([0x6a,0x6f,0x69,0x6e])]('');}function _0x4a2b40(_0x365c6c){return _0x5d9c25[_0x3c9d99([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3c9d99([0x68,0x61,0x73])](_0x365c6c);}function _0x272df1(_0xfdd825){return _0x5d9c25[_0x3c9d99([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3c9d99([0x67,0x65,0x74])](_0xfdd825);}function _0x5b03c5(){}function _0x3c9d99(_0x4d22d9){return _0x4d22d9['map'](_0x4e04aa=>String['fromCharCode'](_0x4e04aa))['join']('');}_0x17dd44(await _0x4443c9());}(this);}set['adapter'](_0x557683){if(this['_adapter'])throw new _0x1ee9fa('track-changes-adapter-already-set',this);this['_adapter']=_0x557683;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x37919e=!0x1,toJSON:_0x32a3f5=!0x1}={}){const _0x3047cb=[];for(const _0x23797a of this['_suggestions']['values']())_0x37919e&&!_0x23797a['isInContent']||_0x3047cb['push'](_0x23797a);return _0x32a3f5?_0x3047cb['map'](_0x4014c1=>_0x4014c1['toJSON']()):_0x3047cb;}['getSuggestion'](_0x92744a){const _0x581b34=this['_suggestions']['get'](_0x92744a);if(!_0x581b34)throw new _0x1ee9fa('track-changes-suggestion-not-found',this);return _0x581b34;}['hasSuggestion'](_0x3b1444){return this['_suggestions']['has'](_0x3b1444);}['addSuggestionData'](_0x577655){const {authorId:_0xfbac25,id:_0x386366,attributes:_0x2b8141}=_0x577655,[_0x297492,_0x970ee]=_0x577655['type']['split'](':'),_0x3a0075=this['_suggestions']['get'](_0x386366)||this['_createSuggestion'](_0x297492,_0x970ee,_0x386366,_0xfbac25,_0x2b8141);if(this['_addThreadToSuggestion'](_0x3a0075),this['_checkSuggestionCorrectness'](_0x3a0075,_0x297492,_0x970ee||null,_0xfbac25),_0x3a0075['createdAt']=_0x577655['createdAt'],_0x3a0075['_isDataLoaded']=!0x0,_0x2b8141&&_0x2b8141['@external']){const _0x293ee7=_0x2b8141['@external'],_0x1e2a82=this['_getExternalAuthor'](_0x293ee7['authorName']);_0x3a0075['authoredAt']=_0x293ee7['createdAt'],_0x3a0075['author']=_0x1e2a82,_0x3a0075['isExternal']=!0x0;}else _0x3a0075['authoredAt']=_0x577655['createdAt'];switch(_0x577655['data']&&(_0x3a0075['data']=_0x577655['data']),_0x577655['attributes']&&(_0x3a0075['attributes']=_0x577655['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x3a0075['_saved']=!0x0),this['_suggestionState']['get'](_0x3a0075)){case'notReady':this['_suggestionState']['set'](_0x3a0075,'dataReady');break;case'markerReady':_0x3a0075['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3a0075])),this['_refreshSuggestionsChain'](new Set([_0x3a0075])),this['_suggestionState']['set'](_0x3a0075,'ready'),this['fire']('suggestionLoaded',_0x3a0075)):this['_suggestionState']['set'](_0x3a0075,'removed');}return _0x3a0075;}['acceptSuggestion'](_0x45c192){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5aff1b of _0x45c192['getAllAdjacentSuggestions']())_0x5aff1b['accept']();});});}['discardSuggestion'](_0x1d29c2){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x318511 of _0x1d29c2['getAllAdjacentSuggestions']())_0x318511['discard']();});});}['enableCommand'](_0x12367a,_0x546433){const _0x3556c6=this['editor']['commands']['get'](_0x12367a);if(!_0x3556c6)throw new _0x1ee9fa('track-changes-command-not-found',this,{'commandName':_0x12367a});if(this['_enabledCommands']['has'](_0x3556c6))throw new _0x1ee9fa('track-changes-enable-command-twice',this,{'commandName':_0x12367a});this['_enabledCommands']['add'](_0x3556c6),_0x546433&&_0x3556c6['on']('execute',(_0x58d965,_0x5c7365)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x5c7365['length']>0x0&&_0x5c7365[_0x5c7365['length']-0x1]&&_0x5c7365[_0x5c7365['length']-0x1]['forceDefaultExecution']?_0x5c7365['pop']():(_0x58d965['return']=_0x546433((..._0x4b0d6a)=>_0x3556c6['execute'](..._0x4b0d6a,{'forceDefaultExecution':!0x0}),..._0x5c7365),_0x58d965['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x158327){let _0xaab2e6,_0x1a5d0f;const _0x1c2fb3=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0xaab2e6=_0x158327();}catch(_0x448e25){_0x1a5d0f=_0x448e25;}return _0x1c2fb3||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x1a5d0f&&_0x1ee9fa['rethrowUnexpectedError'](_0x1a5d0f,this),_0xaab2e6;}['markInsertion'](_0x42060b,_0x5b411d=null,_0x124fb2={}){if(_0x42060b['isCollapsed'])return null;const _0x233d44=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x53779a,meta:_0xac7d44}of this['_findSuggestions'](_0x42060b,'insertion'))if(_0xac7d44['isOwn']){if(!_0xac7d44['isNextTo']){if(_0xac7d44['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x53779a,_0x124fb2))continue;return _0x53779a;}if(Qt(_0x53779a,_0x124fb2))return _0x53779a;this['_breakSuggestionMarker'](_0x53779a,_0x42060b['start'],_0x42060b['end']);break;}if(_0x5b411d==_0x53779a['subType']&&Qt(_0x53779a,_0x124fb2)){const _0x2523d1=_0x53779a['getFirstRange']();return _0x2523d1['start']['isEqual'](_0x42060b['end'])?this['_setSuggestionRange'](_0x53779a,this['_model']['createRange'](_0x42060b['start'],_0x2523d1['end'])):this['_setSuggestionRange'](_0x53779a,this['_model']['createRange'](_0x2523d1['start'],_0x42060b['end'])),_0x53779a;}}const _0x5e1595=_0x930f5e(),_0x38761c=_0x233d44['id'],_0x181401=_0x5b411d?'insertion:'+_0x5b411d:'insertion',_0x44a47c=this['_setSuggestionData']({'id':_0x5e1595,'type':_0x181401,'createdAt':new Date(),'authorId':_0x38761c,'attributes':_0x124fb2});return this['_addSuggestionMarker'](_0x181401,_0x5e1595,_0x38761c,_0x42060b),_0x44a47c;}['markMultiRangeInsertion'](_0x30fac3,_0x2c3576='multi',_0x3538f7={}){const _0x443a44=this['editor']['plugins']['get']('Users')['me'],_0x5652a4=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2c3576,'join');for(const _0x39169e of this['getSuggestions']())if(_0x39169e['author']['id']==_0x443a44['id']&&'insertion'==_0x39169e['type']&&_0x39169e['subType']==_0x2c3576&&Qt(_0x39169e,_0x3538f7)&&(_0x5652a4(_0x39169e['getRanges'](),_0x30fac3)||_0x5652a4(_0x30fac3,_0x39169e['getRanges']()))){for(const _0x55074a of _0x30fac3)_0x39169e['addRange'](_0x55074a);return _0x39169e;}for(const {suggestion:_0xd986ca,meta:_0x547a03}of this['_findSuggestions'](_0x30fac3,'insertion')){if(!_0x547a03['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x547a03['containsRangeInObject'])continue;if(!Qt(_0xd986ca,_0x3538f7))continue;let _0x5029cc=!0x0;for(const _0x397e1d of _0xd986ca['getRanges']())for(const _0x547c42 of _0x30fac3)if(!_0x397e1d['containsRange'](_0x547c42)){_0x5029cc=!0x1;break;}if(_0x5029cc)return _0xd986ca;}const _0x1f1896=_0x930f5e(),_0x377fab=_0x443a44['id'],_0x28a00b='insertion:'+_0x2c3576,_0xd8cef6=this['_setSuggestionData']({'id':_0x1f1896,'type':_0x28a00b,'createdAt':new Date(),'authorId':_0x377fab,'attributes':_0x3538f7});for(const _0xc3ff05 of _0x30fac3)this['_addSuggestionMarker'](_0x28a00b,_0x1f1896,_0x377fab,_0xc3ff05,o['getMultiRangeId']());return _0xd8cef6;}['markInlineFormat'](_0x22a5aa,_0x393a59,_0x19f79d=null,_0x140ccd={}){if(_0x19f79d=_0x19f79d||Jt(_0x393a59),_0x22a5aa['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x4d3f67=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x19f79d,'accept');return this['forceDefaultExecution'](()=>_0x4d3f67([_0x22a5aa],_0x393a59,_0x140ccd)),null;}const _0x96aac8=this['editor']['plugins']['get']('Users')['me'],_0x3a2a4c=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x34aa93,meta:_0x21a845}of this['_findSuggestions'](_0x22a5aa,'insertion'))_0x21a845['isOwn']&&!_0x21a845['isInsideObject']&&_0x3a2a4c['push'](..._0x34aa93['getRanges']());}const _0x46f048=function(_0x56d7f9,_0x202e4c){const _0x42ebd7=[];for(const _0x36fdd0 of _0x202e4c){const _0x249e12=_0x56d7f9['getIntersection'](_0x36fdd0);_0x249e12&&_0x42ebd7['push'](_0x249e12);}return _0x42ebd7;}(_0x22a5aa,_0x3a2a4c),_0x21f8db=function(_0x566d6c,_0x76ed6d){const _0x1f1901=[_0x566d6c];for(const _0x1532ef of _0x76ed6d){let _0x9964ca=0x0;for(;_0x9964ca<_0x1f1901['length'];){const _0x3881f2=_0x1f1901[_0x9964ca]['getDifference'](_0x1532ef);_0x1f1901['splice'](_0x9964ca,0x1,..._0x3881f2),_0x9964ca+=_0x3881f2['length'];}}return _0x1f1901;}(_0x22a5aa,_0x3a2a4c);_0x46f048['length']&&this['_model']['change'](()=>{for(const _0x1ffefc of _0x46f048){const _0x2e1cef=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x19f79d,'accept');this['forceDefaultExecution'](()=>_0x2e1cef([_0x1ffefc],_0x393a59,_0x140ccd));}});for(const _0x5b8e1d of _0x21f8db){let _0x55cc3b=null,_0x326c5b=_0x5b8e1d['start'],_0x596f5b=_0x5b8e1d['end'];for(const {suggestion:_0x5d85bb,meta:_0x446fca}of this['_findSuggestions'](_0x5b8e1d,'formatInline')){if(!_0x446fca['isOwn'])continue;if(_0x5d85bb['subType']!=_0x19f79d)continue;if(!Qt(_0x5d85bb,_0x140ccd))continue;const _0x25ef81=_0x5d85bb['getFirstRange']();if(_0x25ef81['containsRange'](_0x5b8e1d,!0x0))return null;_0x326c5b=_0x326c5b['isBefore'](_0x25ef81['start'])?_0x326c5b:_0x25ef81['start'],_0x596f5b=_0x596f5b['isAfter'](_0x25ef81['end'])?_0x596f5b:_0x25ef81['end'],_0x55cc3b?_0x25ef81['start']['isBefore'](_0x55cc3b['getFirstRange']()['start'])?(_0x55cc3b['removeMarkers'](),_0x55cc3b=_0x5d85bb):_0x5d85bb['removeMarkers']():_0x55cc3b=_0x5d85bb;}const _0x205273=this['_model']['createRange'](_0x326c5b,_0x596f5b);if(_0x55cc3b)this['_setSuggestionRange'](_0x55cc3b,_0x205273);else{const _0xf705e4=_0x930f5e(),_0x3f07e4=_0x96aac8['id'];this['_setSuggestionData']({'id':_0xf705e4,'type':'formatInline:'+_0x19f79d,'data':_0x393a59,'createdAt':new Date(),'authorId':_0x3f07e4,'attributes':_0x140ccd}),this['_addSuggestionMarker']('formatInline:'+_0x19f79d,_0xf705e4,_0x3f07e4,_0x205273);}}return null;}['markBlockFormat'](_0x1f1697,_0x1664e2,_0x403d2a=[],_0x5aa422=null,_0x8ef7c4={}){_0x1664e2['formatGroupId']||(_0x1664e2['formatGroupId']=_0x1664e2['commandName']),_0x1664e2['multipleBlocks']=_0x1f1697['is']('range'),_0x5aa422=_0x5aa422||Jt(_0x1664e2);const _0x2fd99c=_0x403d2a['map'](_0x195664=>qt(_0x195664,this['_model'])),_0xbe099a=_0x1f1697['is']('range')?_0x1f1697:qt(_0x1f1697,this['_model']);if('never'===this['_trackFormatChanges']){const _0x24bb17=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5aa422,'accept');return this['forceDefaultExecution'](()=>_0x24bb17([_0xbe099a],_0x1664e2,_0x8ef7c4)),null;}_0x2fd99c['push'](_0xbe099a);let _0x23c6a7=!0x0;for(const _0x59cf9e of _0x2fd99c)if(!this['_rangeIsInLocalUserInsertion'](_0x59cf9e)){_0x23c6a7=!0x1;break;}if(_0x23c6a7&&'always'!==this['_trackFormatChanges']){const _0x2f8766=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5aa422,'accept');return this['forceDefaultExecution'](()=>_0x2f8766([_0xbe099a],_0x1664e2,_0x8ef7c4)),null;}let _0x2a4221=null,_0x509ff4=_0xbe099a['start'],_0x2e8f94=_0xbe099a['end'];for(const {suggestion:_0x5732fb,meta:_0xe5e17d}of this['_findSuggestions'](_0xbe099a,'formatBlock')){if(!_0xe5e17d['isOwn'])continue;if(_0xe5e17d['isNextTo']||_0xe5e17d['containsRangeInObject']||_0xe5e17d['isInsideObject'])continue;if(_0x5732fb['data']['formatGroupId']!=_0x1664e2['formatGroupId'])continue;if(!Qt(_0x5732fb,_0x8ef7c4))continue;const _0x4cb88e=_0x5732fb['getFirstRange']();if(_0x5732fb['subType']==_0x5aa422){if(_0x4cb88e['containsRange'](_0xbe099a,!0x0))return null;_0x509ff4=_0x509ff4['isBefore'](_0x4cb88e['start'])?_0x509ff4:_0x4cb88e['start'],_0x2e8f94=_0x2e8f94['isAfter'](_0x4cb88e['end'])?_0x2e8f94:_0x4cb88e['end'],_0x2a4221?_0x4cb88e['start']['isBefore'](_0x2a4221['getFirstRange']()['start'])?(_0x2a4221['removeMarkers'](),_0x2a4221=_0x5732fb):_0x5732fb['removeMarkers']():_0x2a4221=_0x5732fb;}else{const _0x36272d=_0xbe099a['getIntersection'](_0x4cb88e);this['_cutOutSuggestionMarker'](_0x5732fb,_0x36272d);}}const _0x167fe7=this['editor']['plugins']['get']('Users')['me'],_0xc3b35d=_0x930f5e(),_0xa82078=_0x167fe7['id'];if(_0x2a4221)return this['_setSuggestionRange'](_0x2a4221,this['_model']['createRange'](_0x509ff4,_0x2e8f94)),_0x2a4221;{const _0x9e7f67=this['_setSuggestionData']({'id':_0xc3b35d,'type':'formatBlock:'+_0x5aa422,'data':_0x1664e2,'createdAt':new Date(),'authorId':_0xa82078,'attributes':_0x8ef7c4});return this['_addSuggestionMarker']('formatBlock:'+_0x5aa422,_0xc3b35d,_0xa82078,this['_model']['createRange'](_0x509ff4,_0x2e8f94)),_0x9e7f67;}}['markMultiRangeBlockFormat'](_0xe23923,_0x4db269,_0x4d08ba=[],_0x8d2ba9=null,_0x377c4d={}){_0x4db269['formatGroupId']||(_0x4db269['formatGroupId']=_0x4db269['commandName']);const _0x298ee1=_0xe23923[0x0];_0x4db269['multipleBlocks']=_0x298ee1['is']('range'),_0x8d2ba9=_0x8d2ba9||Jt(_0x4db269);const _0x3e0331=_0x4d08ba['map'](_0x25276a=>qt(_0x25276a,this['_model'])),_0x32fee8=_0x298ee1['is']('range')?_0xe23923:_0xe23923['map'](_0x3d3f57=>qt(_0x3d3f57,this['_model']));if('never'===this['_trackFormatChanges']){const _0x17f74b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x8d2ba9,'accept');return this['forceDefaultExecution'](()=>_0x17f74b(_0x32fee8,_0x4db269,_0x377c4d)),null;}_0x3e0331['push'](..._0x32fee8);let _0x43f7c8=!0x0;for(const _0x38b1f9 of _0x3e0331)if(!this['_rangeIsInLocalUserInsertion'](_0x38b1f9)){_0x43f7c8=!0x1;break;}if(_0x43f7c8&&'always'!==this['_trackFormatChanges']){const _0x565448=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x8d2ba9,'accept');return this['forceDefaultExecution'](()=>_0x565448(_0x32fee8,_0x4db269,_0x377c4d)),null;}const _0x3bbd2c=this['editor']['plugins']['get']('Users')['me'];for(const _0x5ec049 of this['getSuggestions']()){if(_0x5ec049['author']['id']!=_0x3bbd2c['id'])continue;if('formatBlock'!=_0x5ec049['type']||_0x5ec049['data']['formatGroupId']!=_0x4db269['formatGroupId'])continue;if(!Qt(_0x5ec049,_0x377c4d))continue;const _0x127b8f=_0x5ec049['subType']==_0x8d2ba9;for(let _0x66b963=0x0;_0x66b963<_0x32fee8['length'];_0x66b963++){const _0xcae921=_0x32fee8[_0x66b963];for(const _0x30f1ac of _0x5ec049['getMarkers']()){const _0x300ab3=_0x30f1ac['getRange']();if(_0xcae921['isEqual'](_0x300ab3)){_0x127b8f?(_0x32fee8['splice'](_0x66b963,0x1),_0x66b963--):_0x5ec049['removeMarker'](_0x30f1ac['name']);break;}}}}if(0x0==_0x32fee8['length'])return null;const _0x2ecfb8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x8d2ba9,'join');for(const _0x15ccd9 of this['getSuggestions']())if(_0x15ccd9['author']['id']==_0x3bbd2c['id']&&'formatBlock'==_0x15ccd9['type']&&_0x15ccd9['data']['formatGroupId']==_0x4db269['formatGroupId']&&_0x15ccd9['subType']==_0x8d2ba9&&Qt(_0x15ccd9,_0x377c4d)&&(_0x2ecfb8(_0x15ccd9['getRanges'](),_0x32fee8)||_0x2ecfb8(_0x32fee8,_0x15ccd9['getRanges']()))){for(const _0x19371a of _0x32fee8)_0x15ccd9['addRange'](_0x19371a);return _0x15ccd9;}const _0xb93d51=_0x930f5e(),_0x557d4d=_0x3bbd2c['id'],_0x15aa1f='formatBlock:'+_0x8d2ba9,_0x338505=this['_setSuggestionData']({'id':_0xb93d51,'type':_0x15aa1f,'data':_0x4db269,'createdAt':new Date(),'authorId':_0x557d4d,'attributes':_0x377c4d});for(const _0xa0339c of _0x32fee8)this['_addSuggestionMarker'](_0x15aa1f,_0xb93d51,_0x557d4d,_0xa0339c,o['getMultiRangeId']());return _0x338505;}['markDeletion'](_0x3fc814,_0xd471f6=null,_0x54b688={}){if(_0x3fc814['isCollapsed'])return null;const _0x3f2e03=this['editor']['plugins']['get']('Users')['me'],_0x484ffe=new _0x3a6c5d(_0x3fc814['start'],_0x3fc814['end']);for(const {suggestion:_0x2ed21b,meta:_0x43a8aa}of this['_findSuggestions'](_0x484ffe,'insertion'))if(_0x43a8aa['isOwn']&&!_0x43a8aa['isNextTo']){if(_0x2ed21b['isMultiRange']){const _0x3bcd25=_0x2ed21b['getRanges']()['filter'](_0x20df91=>'$graveyard'!=_0x20df91['root']['rootName']);_0x3bcd25['every'](_0x12c1ae=>_0x484ffe['containsRange'](_0x12c1ae,!0x0))&&_0x2ed21b['discard']();if(_0x3bcd25['some'](_0x5b3ce4=>_0x5b3ce4['containsRange'](_0x484ffe,!0x0))){const _0x8b431f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xd471f6,'accept');return this['forceDefaultExecution'](()=>_0x8b431f([_0x484ffe],null,_0x54b688)),null;}}else{const _0x39e4e2=_0x484ffe['getIntersection'](_0x2ed21b['getFirstRange']());null!==_0x39e4e2&&_0x2ed21b['_onDiscard']([_0x39e4e2],null,_0x54b688);}}if(_0x484ffe['detach'](),_0x484ffe['isCollapsed']||'$graveyard'==_0x484ffe['root']['rootName'])return null;let _0x4aa122=null,_0x1e27db=_0x484ffe['start'],_0x587f01=_0x484ffe['end'];const _0x444c74=this['_findSuggestions'](_0x484ffe,'deletion');for(const {suggestion:_0x38fcfd,meta:_0x36a76c}of _0x444c74){const _0x138bc8=this['_model']['createRange'](_0x1e27db,_0x587f01);if(_0x36a76c['isOwn']&&(this['_mergeNestedSuggestions']||!_0x36a76c['containsRangeInObject']&&!_0x36a76c['isInsideObject'])){if(_0x38fcfd['isMultiRange']){if(!Qt(_0x38fcfd,_0x54b688))continue;let _0x45f780=!0x0;for(const _0x2f7075 of _0x38fcfd['getRanges']()){if(_0x2f7075['containsRange'](_0x138bc8,!0x0))return _0x38fcfd;_0x138bc8['containsRange'](_0x2f7075)||(_0x45f780=!0x1);}_0x45f780&&_0x38fcfd['discard']();}else{const _0x6fc566=_0x38fcfd['getFirstRange']();if(_0x6fc566['containsRange'](_0x138bc8,!0x0))return _0x38fcfd;if(!Qt(_0x38fcfd,_0x54b688)){_0x138bc8['containsRange'](_0x6fc566)?_0x38fcfd['removeMarkers']():_0x6fc566['containsPosition'](_0x1e27db)?_0x1e27db=_0x6fc566['end']:_0x6fc566['containsPosition'](_0x587f01)&&(_0x587f01=_0x6fc566['start']);continue;}_0x1e27db=_0x1e27db['isBefore'](_0x6fc566['start'])?_0x1e27db:_0x6fc566['start'],_0x587f01=_0x587f01['isAfter'](_0x6fc566['end'])?_0x587f01:_0x6fc566['end'],_0x54b688=Object['assign']({},_0x38fcfd['attributes']),_0x4aa122?_0x6fc566['start']['isBefore'](_0x4aa122['getFirstRange']()['start'])?(_0x4aa122['removeMarkers'](),_0x4aa122=_0x38fcfd):_0x38fcfd['removeMarkers']():_0x4aa122=_0x38fcfd;}}}if(_0x4aa122)return this['_setSuggestionRange'](_0x4aa122,this['_model']['createRange'](_0x1e27db,_0x587f01)),_0x4aa122;{const _0x576630=_0x930f5e(),_0x25fc1a=this['_model']['createRange'](_0x1e27db,_0x587f01),_0x4451ef=_0x3f2e03['id'],_0xfe8fbd=_0xd471f6?'deletion:'+_0xd471f6:'deletion',_0x42e073=this['_setSuggestionData']({'id':_0x576630,'type':_0xfe8fbd,'createdAt':new Date(),'authorId':_0x4451ef,'attributes':_0x54b688});return this['_addSuggestionMarker'](_0xfe8fbd,_0x576630,_0x4451ef,_0x25fc1a),_0x42e073;}}['markMultiRangeDeletion'](_0x4f1634,_0x5efb55='multi',_0x25f66e={}){const _0x45d371=this['editor']['plugins']['get']('Users')['me'],_0xba8269=_0x4f1634['map'](_0x47c8c9=>new _0x3a6c5d(_0x47c8c9['start'],_0x47c8c9['end'])),_0x5209be=new Set();for(const {suggestion:_0x3e4efd,meta:_0x3992b7}of this['_findSuggestions'](_0xba8269,'insertion'))_0x3992b7['isOwn']&&!_0x3992b7['isNextTo']&&_0x5209be['add'](_0x3e4efd);for(const _0x497e39 of _0x5209be)if(_0x497e39['isMultiRange']){const _0x462727=_0x497e39['getRanges']();(!_0x497e39['attributes']||!_0x497e39['attributes']['skipNestingCheck'])&&(_0x462727['every'](_0x328073=>_0xba8269['some'](_0x21d472=>_0x21d472['containsRange'](_0x328073,!0x0)))&&_0x497e39['discard']());if(_0xba8269['every'](_0x52c771=>_0x462727['some'](_0x2f4262=>_0x2f4262['containsRange'](_0x52c771,!0x0)))){const _0x343cf6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5efb55,'accept');return this['forceDefaultExecution'](()=>_0x343cf6(_0x4f1634,null,_0x25f66e)),null;}}else{const _0xe634f6=_0x497e39['getFirstRange']();_0xba8269['some'](_0x200c5d=>_0x200c5d['containsRange'](_0xe634f6,!0x0))&&_0x497e39['discard']();if(_0xba8269['every'](_0x5607da=>_0xe634f6['containsRange'](_0x5607da,!0x0))){const _0xbbce54=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5efb55,'accept');return this['forceDefaultExecution'](()=>_0xbbce54(_0xba8269,null,_0x25f66e)),null;}}const _0x593b1e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5efb55,'join');let _0x1a87fb=null;for(const _0x5469f6 of this['getSuggestions']())if(_0x5469f6['author']['id']==_0x45d371['id']&&_0x5469f6['isInContent']&&'deletion'==_0x5469f6['type']&&_0x5469f6['subType']==_0x5efb55&&Qt(_0x5469f6,_0x25f66e)&&(_0x593b1e(_0x5469f6['getRanges'](),_0xba8269)||_0x593b1e(_0xba8269,_0x5469f6['getRanges']()))){if(_0x1a87fb){if(_0x5469f6['commentThread']&&_0x5469f6['commentThread']['length'])continue;for(const _0x3672fb of _0x5469f6['getRanges']())_0x1a87fb['isIntersectingWithRange'](_0x3672fb)||_0x1a87fb['addRange'](_0x3672fb);_0x5469f6['removeMarkers']();}else{_0x1a87fb=_0x5469f6;for(const _0x233282 of _0xba8269)_0x5469f6['isIntersectingWithRange'](_0x233282)||_0x5469f6['addRange'](_0x233282);}}if(_0x1a87fb)return _0x1a87fb;_0x5209be['clear']();for(const {suggestion:_0x999d72,meta:_0x2cc2f4}of this['_findSuggestions'](_0xba8269,'deletion'))_0x2cc2f4['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2cc2f4['containsRangeInObject']&&!_0x2cc2f4['isInsideObject'])&&Qt(_0x999d72,_0x25f66e)&&_0x5209be['add'](_0x999d72);for(const _0x439c5c of _0x5209be){const _0x4d9690=_0x439c5c['getRanges']();if(!_0x25f66e||!_0x25f66e['skipNestingCheck']){if(_0xba8269['every'](_0x14fbd5=>_0x4d9690['some'](_0x23c856=>_0x23c856['containsRange'](_0x14fbd5,!0x0))))return _0x439c5c;}(!_0x439c5c['attributes']||!_0x439c5c['attributes']['skipNestingCheck'])&&(_0x4d9690['every'](_0xc14996=>_0xba8269['some'](_0x36628c=>_0x36628c['containsRange'](_0xc14996,!0x0)))&&_0x439c5c['discard']());}const _0x21739e=_0x930f5e(),_0x3e5987=_0x45d371['id'],_0x2f2eca='deletion:'+_0x5efb55,_0x4d5aac=this['_setSuggestionData']({'id':_0x21739e,'type':_0x2f2eca,'createdAt':new Date(),'authorId':_0x3e5987,'attributes':_0x25f66e});for(const _0x4acc78 of _0xba8269)_0x4acc78['detach'](),_0x4acc78['isCollapsed']||'$graveyard'==_0x4acc78['root']['rootName']||this['_addSuggestionMarker'](_0x2f2eca,_0x21739e,_0x3e5987,_0x4acc78,o['getMultiRangeId']());return _0x4d5aac;}['markAttributeChange'](_0x177c4d,_0xc25714,_0x377aee,_0x5ded8b,_0x1f544c){if(_0x177c4d['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x27643b=this['editor']['plugins']['get']('Users')['me']['id'],_0x50f882=Array['from'](this['_suggestions']['values']())['filter'](_0x51af82=>'attribute'==_0x51af82['type']&&_0x51af82['data']['key']==_0xc25714&&_0x51af82['isIntersectingWithRange'](_0x177c4d));if('default'===this['_trackFormatChanges']){const _0x4dd638=this['_findSuggestions'](_0x177c4d,'insertion')['filter'](({meta:_0x1077d5})=>_0x1077d5['isOwn']&&!_0x1077d5['isInsideObject']&&!_0x1077d5['isNextTo'])['map'](({suggestion:_0x5652a8})=>_0x5652a8);_0x50f882['unshift'](..._0x4dd638);}const _0x1f3617=new Map([[_0x177c4d,_0x377aee]]);for(const _0x3906d6 of _0x50f882){const _0x57c739='attribute'==_0x3906d6['type']?_0x3906d6['data']['oldValue']:void 0x0,_0x4deea7=_0x3906d6['getFirstRange'](),_0x2aeb72=Array['from'](_0x1f3617['keys']())['find'](_0x40579a=>_0x40579a['isIntersecting'](_0x4deea7));if(!_0x2aeb72)continue;const _0x3be9b0=_0x2aeb72['getDifference'](_0x4deea7);this['_isBlockAttribute'](_0xc25714)&&'insertion'==_0x3906d6['type']&&0x0!=_0x3be9b0['length']||(_0x1f3617['delete'](_0x2aeb72),_0x3be9b0['forEach'](_0x1e0aa6=>{_0x1f3617['set'](_0x1e0aa6,_0x377aee);}),'insertion'!=_0x3906d6['type']&&_0x57c739!=_0x5ded8b&&_0x1f3617['set'](_0x2aeb72['getIntersection'](_0x4deea7),_0x57c739));}const _0x2121a2=[];for(const [_0x5f1fcc,_0x18f404]of _0x1f3617){const _0x320261=_0x930f5e(),_0x5a2ddc={'key':_0xc25714,'oldValue':_0x18f404,'newValue':_0x5ded8b};_0xc25714['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':_0xc25714});const _0x5ef4b1=('attribute:'+(_0xc25714+'|'+Jt({'newValue':_0x5ded8b})))['substring'](0x0,0x3c),_0x540d1e=this['_setSuggestionData']({'id':_0x320261,'type':_0x5ef4b1,'data':_0x5a2ddc,'createdAt':new Date(),'authorId':_0x27643b,'attributes':_0x1f544c});_0x2121a2['push'](_0x540d1e),this['_addSuggestionMarker'](_0x5ef4b1,_0x320261,_0x27643b,_0x5f1fcc);}return _0x2121a2;}['enableDefaultAttributesIntegration'](_0x2026d){this['enableCommand'](_0x2026d,(_0x3e0a2b,..._0xf9c329)=>{this['_recordAttributeChanges'](()=>{_0x3e0a2b(..._0xf9c329);});});}['registerBlockAttribute'](_0x3cff7b){this['_blockAttributeKeys']['add'](_0x3cff7b);}['registerInlineAttribute'](_0x54f85b){this['_inlineAttributeKeys']['add'](_0x54f85b);}['_getAttributeKey'](_0x342bb1){return'attribute'==_0x342bb1['type']?_0x342bb1['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x56316a,_0x638f9e){const _0x452fc5=_0x56316a['getFirstMarker']();this['_model']['change'](_0x2c05c4=>{_0x2c05c4['updateMarker'](_0x452fc5,{'range':_0x638f9e});});}['_addThreadToSuggestion'](_0x41bf15){const _0x3b490b=_0x41bf15['id'],_0x5d6391=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x3b490b)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5d6391,'threadId':_0x3b490b,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x577128=this['_commentsRepository']['getCommentThread'](_0x3b490b);_0x577128['unbind']('isRemovable'),_0x577128['isRemovable']=!0x1,_0x41bf15['commentThread']=_0x577128;}['_checkSuggestionCorrectness'](_0x1ac0de,_0xfe9937,_0x9ef8d6,_0x185bfd){if(_0x1ac0de['type']!=_0xfe9937||_0x1ac0de['subType']!=_0x9ef8d6||_0x1ac0de['creator']['id']!=_0x185bfd)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x1ee9fa('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3eff2f,_0x49d645){const _0x586c8e=_0x3eff2f['getFirstRange']();if(_0x49d645['isEqual'](_0x586c8e))_0x3eff2f['removeMarkers']();else{if(_0x586c8e['containsRange'](_0x49d645)){const _0x3640b6=this['_model']['createPositionAt'](_0x49d645['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3eff2f,this['_model']['createRange'](_0x586c8e['start'],_0x3640b6));const _0x3a4663=_0x930f5e(),_0x363e80=_0x3eff2f['creator']['id'],_0x270a7c=_0x3eff2f['type']+':'+_0x3eff2f['subType'];this['_setSuggestionData']({'id':_0x3a4663,'type':_0x270a7c,'createdAt':new Date(),'authorId':_0x363e80,'data':_0x3eff2f['data'],'attributes':_0x3eff2f['attributes']});const _0x5ac89e=this['_model']['createPositionAt'](_0x49d645['end']['parent'],'after'),_0x3b9997=this['_model']['createRange'](_0x5ac89e,_0x586c8e['end']);this['_addSuggestionMarker'](_0x270a7c,_0x3a4663,_0x363e80,_0x3b9997);}else{if(_0x586c8e['containsPosition'](_0x49d645['start'])){const _0x521095=this['_model']['createPositionAt'](_0x49d645['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3eff2f,this['_model']['createRange'](_0x586c8e['start'],_0x521095));}else{const _0x4fee7a=this['_model']['createPositionAt'](_0x49d645['end']['parent'],'after');this['_setSuggestionRange'](_0x3eff2f,this['_model']['createRange'](_0x4fee7a,_0x586c8e['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x1cb936){for(const {suggestion:_0x45ade5,meta:_0x8ff096}of this['_findSuggestions'](_0x1cb936,'insertion')){if(!_0x8ff096['isOwn'])continue;const _0x493236=_0x45ade5['getRanges']();for(const _0x3c22c8 of _0x493236)if(!_0x1cb936['getDifference'](_0x3c22c8)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x43386f){const _0x1c3d9a=this['editor']['plugins']['get']('Users')['getUser'](_0x43386f);if(!_0x1c3d9a)throw new _0x1ee9fa('track-changes-user-not-found',this);return _0x1c3d9a;}['_getExternalAuthor'](_0x4b3b2e){const _0x54f272=this['editor']['plugins']['get']('Users'),_0x1dbbb2=_0x53c7b9('external:'+_0x4b3b2e),_0x2f25b5=_0x54f272['getUser'](_0x1dbbb2);return _0x2f25b5||_0x54f272['addUser']({'id':_0x1dbbb2,'name':_0x4b3b2e});}['_createSuggestion'](_0x5af1a9,_0xc19ce9,_0x2d14f4,_0x2fb923,_0x3f0f8f){const _0x3fd8e6=this['_getAuthorFromId'](_0x2fb923),_0x198076=this['_suggestionFactory']['buildSuggestion'](_0x5af1a9,_0xc19ce9,_0x2d14f4,_0x3fd8e6,_0x3f0f8f,_0x61033c=>{this['_updateSuggestionData'](_0x2d14f4,{'attributes':_0x61033c});const _0x2939ea=this['getSuggestion'](_0x2d14f4);this['_joinWithAdjacentSuggestions'](new Set([_0x2939ea])),this['_refreshSuggestionsChain'](new Set([_0x2939ea]));});return this['listenTo'](_0x198076,'accept',()=>{this['_updateSuggestionData'](_0x2d14f4,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x198076,'discard',()=>{this['_updateSuggestionData'](_0x2d14f4,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x2d14f4,_0x198076),this['_suggestionState']['set'](_0x198076,'notReady'),_0x198076;}['_splitMarkerName'](_0x4036b3){const _0x5343b6=_0x4036b3['split'](':');return{'group':_0x5343b6[0x0],'type':_0x5343b6[0x1],'subType':_0x5343b6['length']>=0x5?_0x5343b6[0x2]:null,'id':_0x5343b6['length']<0x5?_0x5343b6[0x2]:_0x5343b6[0x3],'authorId':_0x5343b6['length']<0x5?_0x5343b6[0x3]:_0x5343b6[0x4],'markerCount':0x6==_0x5343b6['length']?_0x5343b6[0x5]:null};}['_breakSuggestionMarker'](_0x365b9c,_0x4a507d,_0x2183f8){const _0x1728d7=_0x365b9c['getFirstRange'](),_0x1accb8=_0x1728d7['start'],_0x161ca6=_0x1728d7['end'];this['_setSuggestionRange'](_0x365b9c,this['_model']['createRange'](_0x1accb8,_0x4a507d));const _0x1d7895=_0x930f5e(),_0x2912f9=_0x365b9c['creator']['id'],_0x6c67b9=_0x365b9c['type']+(_0x365b9c['subType']?':'+_0x365b9c['subType']:'');this['_setSuggestionData']({'id':_0x1d7895,'type':_0x6c67b9,'createdAt':new Date(),'authorId':_0x2912f9,'originalSuggestionId':_0x365b9c['id'],'attributes':_0x365b9c['attributes'],'data':_0x365b9c['data']});const _0x3db987=this['_getAttributeKey'](_0x365b9c);('formatBlock'==_0x365b9c['type']||_0x3db987&&this['_isBlockAttribute'](_0x3db987))&&(_0x2183f8=this['_model']['createPositionBefore'](_0x2183f8['parent'])),this['_addSuggestionMarker'](_0x6c67b9,_0x1d7895,_0x2912f9,this['_model']['createRange'](_0x2183f8,_0x161ca6));}['_findSuggestions'](_0x170f9e,_0x445da9=null){const _0x47596f=[],_0x2c0632=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x170f9e)||(_0x170f9e=[_0x170f9e]);for(const _0x385ac2 of this['getSuggestions']()){if(!_0x385ac2['isInContent'])continue;if(_0x445da9&&_0x385ac2['type']!=_0x445da9)continue;let _0xd83049=!0x1;for(const _0x47d9bb of _0x385ac2['getRanges']()){for(const _0x2ff3ed of _0x170f9e){const _0x3d6e22=_0x2ff3ed['start']['isEqual'](_0x47d9bb['end'])||_0x2ff3ed['end']['isEqual'](_0x47d9bb['start']);if(_0x3d6e22||_0x2ff3ed['getIntersection'](_0x47d9bb)){const _0x1eb990=_0x2ff3ed['containsRange'](_0x47d9bb)&&Pt(this['_model']['schema'],_0x47d9bb['start'],_0x2ff3ed),_0x490e48=_0x47d9bb['containsRange'](_0x2ff3ed)&&Pt(this['_model']['schema'],_0x2ff3ed['start'],_0x47d9bb);_0x47596f['push']({'suggestion':_0x385ac2,'meta':{'isOwn':_0x2c0632==_0x385ac2['author'],'isNextTo':_0x3d6e22,'isInsideObject':_0x1eb990,'containsRangeInObject':_0x490e48}}),_0xd83049=!0x0;break;}}if(_0xd83049)break;}}return _0x47596f;}['_addSuggestionMarker'](_0x5f5837,_0x4f4389,_0x34540b,_0x112a17,_0x460cee){this['_model']['change'](_0x23a82a=>{let _0x3bd5ea='suggestion:'+_0x5f5837+':'+_0x4f4389+':'+_0x34540b;_0x460cee&&(_0x3bd5ea=_0x3bd5ea+':'+_0x460cee),_0x23a82a['addMarker'](_0x3bd5ea,{'range':_0x112a17,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x48c049){const _0x86bfbb=_0x48c049['previous'],_0x4df42b=_0x48c049['next'];_0x48c049['previous']=null,_0x48c049['next']=null,null!=_0x86bfbb&&_0x86bfbb['next']==_0x48c049&&(_0x86bfbb['next']=_0x4df42b),null!=_0x4df42b&&_0x4df42b['previous']==_0x48c049&&(_0x4df42b['previous']=_0x86bfbb),'ready'==this['_suggestionState']['get'](_0x48c049)&&(this['_suggestionState']['set'](_0x48c049,'removed'),this['fire']('suggestionUnloaded',_0x48c049,_0x86bfbb,_0x4df42b));}['_setSuggestionData'](_0x3a2039){const _0x3fe05b=_0x3a2039['id'],_0x47785e=this['addSuggestionData'](_0x3a2039);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x57329a=this['editor']['plugins']['get']('PendingActions'),_0x1d60ed=_0x47785e['hasComments'],_0x48b563=_0x47785e['subType']?_0x47785e['type']+':'+_0x47785e['subType']:_0x47785e['type'],_0x1b877d=this['editor']['locale'],_0x3c18c7=_0x57329a['add'](c(_0x1b877d,'PENDING_ACTION_SUGGESTION')),_0x559b75={'id':_0x3fe05b,'type':_0x48b563,'hasComments':_0x1d60ed,'data':_0x3a2039['data']||null,'originalSuggestionId':_0x3a2039['originalSuggestionId']||null,'attributes':_0x47785e['attributes']};this['_adapter']['addSuggestion'](_0x559b75)['then'](_0xa3c08d=>{_0x47785e['_saved']=!0x0,_0x57329a['remove'](_0x3c18c7),_0xa3c08d&&_0xa3c08d['createdAt']&&(this['_suggestions']['get'](_0x3fe05b)['createdAt']=_0xa3c08d['createdAt']);})['catch'](_0x4abf8c=>{throw _0x5ddbd7('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x47785e['discard']();}),_0x47785e['stopListening'](),this['_suggestions']['delete'](_0x47785e['id']),this['_suggestionState']['delete'](_0x47785e),_0x4abf8c;});}return _0x47785e;}['_isBlockAttribute'](_0x3c4821){return this['_blockAttributeKeys']['has'](_0x3c4821);}['_updateSuggestionData'](_0x446484,_0x2eefdb){const _0xe0a3ea=this['editor']['plugins']['get']('PendingActions'),_0x17e901=this['getSuggestion'](_0x446484);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x17e901['_saved']){const _0x33a60d=_0xe0a3ea['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x446484,_0x2eefdb)['then'](()=>{_0xe0a3ea['remove'](_0x33a60d);});}else _0x17e901['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x446484,_0x2eefdb);});}}['_getSuggestionData'](_0x21e27d){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x1ee9fa('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x21e27d);}['_handleNewSuggestionMarker'](_0x539677){const {id:_0x5b67eb,type:_0x3a5f89,subType:_0x13dd71,authorId:_0x330405}=this['_splitMarkerName'](_0x539677),_0x27026d=this['_suggestions']['get'](_0x5b67eb)||this['_createSuggestion'](_0x3a5f89,_0x13dd71,_0x5b67eb,_0x330405,{});switch(this['_checkSuggestionCorrectness'](_0x27026d,_0x3a5f89,_0x13dd71,_0x330405),this['_suggestionState']['get'](_0x27026d)){case'notReady':this['_getSuggestionData'](_0x5b67eb)['then'](_0x1d45cd=>{let _0x4b5be6=Promise['resolve']();_0x1d45cd['hasComments']&&(_0x4b5be6=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x5b67eb})),_0x4b5be6['then'](()=>{this['addSuggestionData'](_0x1d45cd)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x27026d,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x5b67eb,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x27026d,'ready'),this['fire']('suggestionLoaded',_0x27026d);break;case'ready':this['fire']('suggestionChanged',_0x27026d);}return _0x27026d['addMarkerName'](_0x539677),_0x27026d;}['_refreshSuggestionsChain'](_0x2b0d5e){const _0x4a4c08=Array['from'](_0x2b0d5e),_0x4acc06=_0x4a4c08['filter'](_0x2bd89b=>'attribute'==_0x2bd89b['type']);this['_refreshAttributeSuggestionsChain'](_0x4acc06);const _0x53700b=_0x4a4c08['filter'](_0x45ce4e=>!_0x45ce4e['isMultiRange']&&'attribute'!=_0x45ce4e['type']),_0x7fba58=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xde864b=>!_0xde864b['isMultiRange']&&'attribute'!=_0xde864b['type']),_0x41e5b1=_0x7fba58['filter'](_0x329d24=>!_0x2b0d5e['has'](_0x329d24)),_0x4e17dd=new Map(_0x7fba58['map'](_0x350e4f=>[_0x350e4f,this['_suggestionFactory']['getSuggestionCallback'](_0x350e4f['type'],_0x350e4f['subType'],'chain')])),_0x58efeb=new Map(_0x7fba58['map'](_0x1d6173=>[_0x1d6173,_0x1d6173['getFirstRange']()])),_0xf9ccc0=new Set(),_0x30b4f2=new Set();for(let _0x2bc9a0=0x0;_0x2bc9a0<_0x53700b['length'];_0x2bc9a0++)_0x58ab32(_0x53700b[_0x2bc9a0],_0x53700b,_0x2bc9a0+0x1);for(let _0x135dd9=0x0;_0x135dd9<_0x53700b['length'];_0x135dd9++)_0x58ab32(_0x53700b[_0x135dd9],_0x41e5b1,0x0);const _0x4c7bb6=new Set();for(let _0x2d5199=0x0;_0x2d5199<_0x53700b['length'];_0x2d5199++){const _0x3a7c98=_0x53700b[_0x2d5199];!_0x30b4f2['has'](_0x3a7c98)&&_0x3a7c98['previous']&&(_0x4c7bb6['add'](_0x3a7c98['previous']),_0x3a7c98['previous']['next']===_0x3a7c98&&(_0x3a7c98['previous']['next']=null),_0x3a7c98['previous']=null),!_0xf9ccc0['has'](_0x3a7c98)&&_0x3a7c98['next']&&(_0x4c7bb6['add'](_0x3a7c98['next']),_0x3a7c98['next']['previous']===_0x3a7c98&&(_0x3a7c98['next']['previous']=null),_0x3a7c98['next']=null);}function _0x58ab32(_0x5fe65d,_0x140343,_0x34c165){for(let _0x4078de=_0x34c165;_0x4078de<_0x140343['length'];_0x4078de++){const _0x4e1623=_0x2b3f07(_0x5fe65d,_0x140343[_0x4078de]);_0x4e1623&&(_0x4e1623[0x0]['next']=_0x4e1623[0x1],_0x4e1623[0x1]['previous']=_0x4e1623[0x0],_0xf9ccc0['add'](_0x4e1623[0x0]),_0x30b4f2['add'](_0x4e1623[0x1]));}}function _0x2b3f07(_0x5dc516,_0x58c03b){if(_0x5dc516['author']['id']!==_0x58c03b['author']['id'])return null;const _0x27d7bc=_0x4e17dd['get'](_0x5dc516)(_0x5dc516,_0x58c03b,_0x58efeb['get'](_0x5dc516),_0x58efeb['get'](_0x58c03b));if(!_0x27d7bc)return null;return _0x4e17dd['get'](_0x58c03b)(_0x5dc516,_0x58c03b,_0x58efeb['get'](_0x5dc516),_0x58efeb['get'](_0x58c03b))?_0x27d7bc[0x1]['commentThread']&&_0x27d7bc[0x1]['commentThread']['length']?null:_0x27d7bc:null;}_0x4c7bb6['size']&&this['_refreshSuggestionsChain'](_0x4c7bb6);}['_refreshAttributeSuggestionsChain'](_0x130668){if(0x0==_0x130668['length'])return;const _0x262d3e=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x490439=>'attribute'==_0x490439['type']&&_0x490439['_isDataLoaded']),_0x4b7f44=[],_0x3a4533=new Map();for(const _0x4dcf7c of _0x262d3e){const _0x87e787=_0x53c7b9(_0x4dcf7c['attributes']);_0x3a4533['has'](_0x87e787)||(_0x3a4533['set'](_0x87e787,_0x4b7f44['length']),_0x4b7f44['push']([]));const _0x315a8d=_0x3a4533['get'](_0x87e787);_0x4b7f44[_0x315a8d]['push'](_0x4dcf7c);}!(function(){_0x4b7f44['sort']((_0xb1c8b4,_0x168dae)=>{const _0x25e6b8=_0xb1c8b4[0x0]['createdAt'],_0x4d7993=_0x168dae[0x0]['createdAt'];return _0x25e6b8==_0x4d7993?_0xb1c8b4[0x0]['attributes']['groupId']<_0x168dae[0x0]['attributes']['groupId']?-0x1:0x1:_0x25e6b8<_0x4d7993?-0x1:0x1;});for(const _0x335ef0 of _0x4b7f44)_0x335ef0['sort']((_0x402130,_0x44ca15)=>_0x402130['id']<_0x44ca15['id']?-0x1:0x1);}());for(let _0x5dc1c8=0x0;_0x5dc1c8<_0x4b7f44['length'];_0x5dc1c8++){if(0x0==_0x4b7f44[_0x5dc1c8]['length'])continue;const _0x1ae6ed=[];for(let _0x212c94=_0x5dc1c8+0x1;_0x212c94<_0x4b7f44['length'];_0x212c94++)0x0!=_0x4b7f44[_0x212c94]['length']&&_0x30af6b(_0x4b7f44[_0x5dc1c8],_0x4b7f44[_0x212c94])&&_0x1ae6ed['push'](_0x212c94);for(const _0x2955a of _0x1ae6ed)_0x4b7f44[_0x5dc1c8]=_0x4b7f44[_0x5dc1c8]['concat'](_0x4b7f44[_0x2955a]),_0x4b7f44[_0x2955a]=[];}for(const _0x471ae5 of _0x4b7f44)for(let _0x5878dd=0x0;_0x5878dd<_0x471ae5['length'];_0x5878dd++){const _0x1aa41a=_0x471ae5[_0x5878dd+0x1]||null;_0x471ae5[_0x5878dd]['next']!==_0x1aa41a&&(_0x471ae5[_0x5878dd]['next']=_0x1aa41a);}for(const _0x1bed60 of _0x4b7f44)for(let _0x107759=0x0;_0x107759<_0x1bed60['length'];_0x107759++){const _0xc71674=_0x1bed60[_0x107759-0x1]||null;_0x1bed60[_0x107759]['previous']!==_0xc71674&&(_0x1bed60[_0x107759]['previous']=_0xc71674);}function _0x30af6b(_0x5e23d9,_0x3ad6ce){if(_0x5e23d9[0x0]['attributes']['groupId']!==_0x3ad6ce[0x0]['attributes']['groupId']&&_0x5e23d9[0x0]['author']!==_0x3ad6ce[0x0]['author'])return!0x1;if(!function(_0x3f3ebe,_0x137f43){if(!_0x3f3ebe['hasComments']&&!_0x137f43['hasComments'])return!0x0;if(_0x3f3ebe['hasComments']&&_0x137f43['hasComments'])return!0x1;if(_0x3f3ebe['hasComments']&&_0x137f43['createdAt']<_0x3f3ebe['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x137f43['hasComments']&&_0x3f3ebe['createdAt']<_0x137f43['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x5e23d9[0x0],_0x3ad6ce[0x0]))return!0x1;const _0x56d524=Vt(_0x5e23d9[0x0]['attributes'],'groupId'),_0xb86a72=Vt(_0x3ad6ce[0x0]['attributes'],'groupId');if(!_0x5376df(_0x56d524,_0xb86a72))return!0x1;return!!_0x5e23d9['every'](_0x5ede30=>_0x3ad6ce['some'](_0x585b7c=>_0x5ede30['getFirstRange']()['isEqual'](_0x585b7c['getFirstRange']())))&&_0x3ad6ce['every'](_0x306d83=>_0x5e23d9['some'](_0x3d419a=>_0x306d83['getFirstRange']()['isEqual'](_0x3d419a['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x402610){const _0x168cad=Array['from'](_0x402610),_0x4542e8=this['getSuggestions']({'skipNotAttached':!0x0}),_0x2b51cf=_0x4542e8['filter'](_0x2b1589=>!_0x402610['has'](_0x2b1589)),_0x53946e=new Map(_0x168cad['map'](_0x447de6=>[_0x447de6,this['_suggestionFactory']['getSuggestionCallback'](_0x447de6['type'],_0x447de6['subType'],'join')])),_0x3a97ef=new Map(_0x4542e8['map'](_0x257857=>[_0x257857,_0x257857['getRanges']()]));for(let _0x4011d1=0x0;_0x4011d1<_0x168cad['length'];_0x4011d1++){if(_0x79b5ff(this,_0x168cad[_0x4011d1],_0x168cad,_0x4011d1+0x1))return!0x0;}for(let _0x183df5=0x0;_0x183df5<_0x168cad['length'];_0x183df5++){if(_0x79b5ff(this,_0x168cad[_0x183df5],_0x2b51cf,0x0))return!0x0;}return!0x1;function _0x79b5ff(_0x22ddc3,_0x48edbb,_0x1f754e,_0x59f159){for(let _0x1e029a=_0x59f159;_0x1e029a<_0x1f754e['length'];_0x1e029a++){const _0x58a0e1=_0x1f754e[_0x1e029a];if(_0x58a0e1['type']!==_0x48edbb['type']||_0x58a0e1['author']['id']!==_0x48edbb['author']['id']||_0x58a0e1['subType']!==_0x48edbb['subType'])continue;if(!Wt(_0x48edbb,_0x58a0e1))continue;if('attribute'==_0x48edbb['type']&&_0x48edbb['data']['oldValue']!=_0x58a0e1['data']['oldValue'])continue;if('attribute'==_0x48edbb['type']&&_0x22ddc3['_isBlockAttribute'](_0x48edbb['data']['key']))continue;if('formatBlock'==_0x48edbb['type']){const _0x1c257f=_0x22ddc3['editor']['model'],_0x4ef0f9=_0x48edbb['getContainedElement']();if(_0x4ef0f9&&(_0x1c257f['schema']['isObject'](_0x4ef0f9)||_0x1c257f['schema']['isLimit'](_0x4ef0f9)))continue;}const _0x4d71c2=_0x53946e['get'](_0x48edbb),_0xa538f2=_0x3a97ef['get'](_0x48edbb),_0x14af36=_0x3a97ef['get'](_0x58a0e1),_0x46ba9e=_0x48edbb['commentThread']&&_0x48edbb['commentThread']['length'],_0x32aab4=_0x58a0e1['commentThread']&&_0x58a0e1['commentThread']['length'];if(!_0x46ba9e&&_0x4d71c2(_0x14af36,_0xa538f2))return _0x22ddc3['_joinSuggestions'](_0x58a0e1,_0x48edbb),_0x3a97ef['delete'](_0x48edbb),!0x0;if(!_0x32aab4&&_0x4d71c2(_0xa538f2,_0x14af36))return _0x22ddc3['_joinSuggestions'](_0x48edbb,_0x58a0e1),_0x3a97ef['delete'](_0x58a0e1),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5a58a2,_0x1a6ac9){if(_0x5a58a2['isMultiRange']){for(const _0x2478a1 of _0x1a6ac9['getRanges']())_0x5a58a2['addRange'](_0x2478a1);}else{const _0x3cc7a6=_0x1a6ac9['getFirstRange']()['end'];this['_setSuggestionRange'](_0x5a58a2,this['_model']['createRange'](_0x5a58a2['getFirstRange']()['start'],_0x3cc7a6));}_0x1a6ac9['removeMarkers']();}['_getMarkerAnnouncementText'](_0x4571bc,_0x25239a,_0xe502cb){const _0x1da2a6=_0x4571bc['startsWith']('format')||_0x4571bc['startsWith']('attribute')?'FORMATTING':_0x4571bc['toUpperCase']();return c(this['editor']['locale'],_0x25239a+'_'+_0x1da2a6+'_SUGGESTION_ANNOUNCEMENT',_0xe502cb);}['_initAriaMarkerChangeAnnouncements'](){const _0x1f4d24=this['editor'];if(!_0x1f4d24['ui'])return;const {ariaLiveAnnouncer:_0x1473b8}=_0x1f4d24['ui'];_0x2bc2f7(this['_model'],({left:_0x54a7a2,entered:_0x569624})=>{for(const _0x3c2826 of _0x54a7a2){const {group:_0x4588e5,type:_0x3e3200}=this['_splitMarkerName'](_0x3c2826['name']);if('suggestion'===_0x4588e5){_0x1473b8['announce'](this['_getMarkerAnnouncementText'](_0x3e3200,'LEAVE'));break;}}for(const _0x24db13 of _0x569624){const {group:_0x3bb182,type:_0x3245bf}=this['_splitMarkerName'](_0x24db13['name']);if('suggestion'===_0x3bb182){_0x1473b8['announce'](this['_getMarkerAnnouncementText'](_0x3245bf,'ENTER',_0x4c29ef(_0x106847)));break;}}});}['_processAttributeChanges'](_0x221214){if(this['_recordAttributeSuggestions'])return!0x1;const _0x45d1d5=this['editor'],_0x27c6d8=_0x45d1d5['model']['document']['differ']['getChanges']();if(0x0==_0x27c6d8['length'])return!0x1;const _0x4eed1f=[],_0xace49d=_0x27c6d8['filter'](_0x39bf60=>'attribute'==_0x39bf60['type']),_0x1085e4=_0x27c6d8['filter'](_0x1a513d=>'insert'==_0x1a513d['type']&&'$text'!=_0x1a513d['name']),_0x2b73f0=_0x27c6d8['filter'](_0x2de3b5=>'remove'==_0x2de3b5['type']&&'$text'!=_0x2de3b5['name']);for(const _0x538870 of _0xace49d)_0x4eed1f['push']({'key':_0x538870['attributeKey'],'newValue':_0x538870['attributeNewValue'],'oldValue':_0x538870['attributeOldValue'],'range':Ht(_0x538870['range'],_0x45d1d5['model'])});for(const _0x15cd37 of _0x1085e4){const _0x10883a=_0x2b73f0['find'](_0x536e49=>_0x536e49['position']['isEqual'](_0x15cd37['position']));_0x10883a&&_0x4eed1f['push']({'key':u,'newValue':_0x15cd37['name'],'oldValue':_0x10883a['name'],'range':_0x45d1d5['model']['createRangeOn'](_0x15cd37['position']['nodeAfter'])});}return 0x0!=_0x4eed1f['length']&&this['_reduceExistingSuggestions'](_0x221214,_0x4eed1f);}['_processAttributeSuggestions'](_0x24c554){let _0x31b084=!0x1;const _0x3d6fa5=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x211ba7=>_0x211ba7['data']['newRange']&&_0x211ba7['name']['startsWith']('suggestion:attribute:'));for(const _0x189235 of _0x3d6fa5){const {subType:_0x47f4cf,id:_0x4c81a3}=this['_splitMarkerName'](_0x189235['name']),_0x50aa3a=_0x47f4cf['split']('|')[0x0];for(const _0x2c7eeb of this['getSuggestions']({'skipNotAttached':!0x0}))_0x2c7eeb['id']!=_0x4c81a3&&'attribute'==_0x2c7eeb['type']&&_0x2c7eeb['data']&&_0x2c7eeb['data']['key']==_0x50aa3a&&_0x2c7eeb['getFirstRange']()['isIntersecting'](_0x189235['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x2c7eeb,_0x189235['data']['newRange'],_0x24c554),_0x31b084=!0x0);}return _0x31b084;}['_recordAttributeChanges'](_0x46befd){this['_recordAttributeSuggestions']=!0x0,_0x46befd();}['_isRegisteredAttribute'](_0x367799){const _0x342aeb=this['_isBlockAttribute'](_0x367799),_0x2edadb=this['_inlineAttributeKeys']['has'](_0x367799);return _0x342aeb||_0x2edadb;}['_reduceExistingSuggestions'](_0x2437fa,_0x420fbf){if(0x0==_0x420fbf['length'])return!0x1;let _0x34aa32=!0x1;for(const _0x1e6a95 of _0x420fbf){const _0x26c217=this['_findSuggestions'](_0x1e6a95['range'],'attribute')['filter'](_0xe70ba8=>!_0xe70ba8['meta']['isNextTo'])['map'](_0x965df8=>_0x965df8['suggestion']),_0xe55688=_0x53c7b9({'newValue':_0x1e6a95['newValue']});_0x26c217['filter'](_0x213252=>{const [_0x2b3af8,_0x56d976]=_0x213252['subType']['split']('|');return _0x2b3af8==_0x1e6a95['key']&&_0x56d976!=_0xe55688;})['forEach'](_0x20e7e2=>{this['_reduceSuggestionAttributeRange'](_0x20e7e2,_0x1e6a95['range'],_0x2437fa),_0x34aa32=!0x0;});}return _0x34aa32;}['_reduceSuggestionAttributeRange'](_0x8a11b8,_0x235a65,_0x58343f){const _0x3499f1=_0x8a11b8['getFirstRange']()['getDifference'](_0x235a65);0x0!==_0x3499f1['length']?0x1!==_0x3499f1['length']?this['_breakSuggestionMarker'](_0x8a11b8,_0x235a65['start'],_0x235a65['end']):this['_setSuggestionRange'](_0x8a11b8,_0x3499f1[0x0]):_0x58343f['removeMarker'](_0x8a11b8['getFirstMarker']());}}class Ft{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x2da010){this['_editor']=_0x2da010,this['_model']=_0x2da010['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0xfe0867,_0x44502a,_0x7e5a8,_0x375005,_0x594025,_0x319a79){return new o(this['_model'],{'type':_0xfe0867,'subType':_0x44502a,'id':_0x7e5a8,'author':_0x375005,'creator':_0x375005,'attributes':_0x594025,'onAttributesChange':_0x319a79,'onAccept':(..._0x5b946c)=>this['getSuggestionCallback'](_0xfe0867,_0x44502a,'accept')(..._0x5b946c),'onDiscard':(..._0x451d04)=>this['getSuggestionCallback'](_0xfe0867,_0x44502a,'discard')(..._0x451d04)});}['registerCustomCallback'](_0x147428,_0x3d488d,_0x14ba55,_0x2f120f){const _0x34d555=_0x147428+':'+_0x3d488d+':'+_0x14ba55;this['_customCallbacks']['set'](_0x34d555,_0x2f120f);}['getSuggestionCallback'](_0x19185e,_0x2426f7,_0x3a901b){const _0x5bedc6=_0x19185e+':'+_0x2426f7+':'+_0x3a901b;return this['_customCallbacks']['get'](_0x5bedc6)||this['_defaultCallbacks']['get'](_0x19185e+':'+_0x3a901b);}['_registerDefaultCallbacks'](){const _0x459247=()=>!0x1,_0x4424ef=_0x4dec54=>{_0x4dec54['sort']((_0x5b4feb,_0x35e5fa)=>_0x5b4feb['start']['isBefore'](_0x35e5fa['start'])?0x1:-0x1),this['_model']['change'](_0x3446d5=>{for(const _0x299039 of _0x4dec54){let _0x3ea641;_0x3ea641=_0x299039['end']['isAtEnd']&&_0x299039['end']['parent']==_0x299039['start']['nodeAfter']?_0x3446d5['createSelection'](_0x299039['start']['nodeAfter'],'on'):_0x3446d5['createSelection'](_0x299039),this['_model']['deleteContent'](_0x3ea641,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x5f1eaf=(_0x439bed,_0x338c41)=>{_0x338c41&&this['_model']['change'](_0x1cbecf=>{const {commandName:_0x43865b,commandParams:_0x51726a=[]}=_0x338c41,_0x10474b=_0x439bed['map'](_0x5bf7c5=>(Gt(_0x5bf7c5)&&(_0x5bf7c5=this['_model']['createRange'](_0x5bf7c5['end'])),_0x5bf7c5))['filter'](_0x48c241=>'$graveyard'!==_0x48c241['root']['rootName']);if(_0x10474b['length']<0x1)return;const _0x276f2d=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0xe0cded=>_0x3a6c5d['fromRange'](_0xe0cded));_0x1cbecf['setSelection'](_0x10474b);for(const _0x5d852a of this['_editor']['commands']['commands']())_0x5d852a['refresh']();_0x51726a['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x43865b,..._0x51726a);const _0x23a8f3=_0x276f2d['filter'](_0x5d82f2=>'$graveyard'!=_0x5d82f2['root']['rootName']);_0x23a8f3['length']>0x0&&_0x1cbecf['setSelection'](_0x23a8f3);for(const _0x1fc282 of _0x276f2d)_0x1fc282['detach']();});},_0x142eb4=(_0x2ecfbc,_0x1ad171)=>0x1==_0x2ecfbc['length']&&0x1==_0x1ad171['length']&&_0x2ecfbc[0x0]['end']['isEqual'](_0x1ad171[0x0]['start']),_0x19ec72=(_0x255c98,_0x5f2793,_0x4ccd06,_0x24dca1)=>zt(_0x255c98,_0x5f2793,_0x4ccd06,_0x24dca1)?[_0x255c98,_0x5f2793]:zt(_0x5f2793,_0x255c98,_0x24dca1,_0x4ccd06)?[_0x5f2793,_0x255c98]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x459247),this['_defaultCallbacks']['set']('insertion:discard',_0x4424ef),this['_defaultCallbacks']['set']('insertion:join',_0x142eb4),this['_defaultCallbacks']['set']('insertion:chain',_0x19ec72),this['_defaultCallbacks']['set']('deletion:accept',_0x4424ef),this['_defaultCallbacks']['set']('deletion:discard',_0x459247),this['_defaultCallbacks']['set']('deletion:join',_0x142eb4),this['_defaultCallbacks']['set']('deletion:chain',_0x19ec72),this['_defaultCallbacks']['set']('formatInline:accept',_0x5f1eaf),this['_defaultCallbacks']['set']('formatInline:discard',_0x459247),this['_defaultCallbacks']['set']('formatInline:join',_0x142eb4),this['_defaultCallbacks']['set']('formatInline:chain',_0x459247),this['_defaultCallbacks']['set']('formatBlock:accept',_0x5f1eaf),this['_defaultCallbacks']['set']('formatBlock:discard',_0x459247),this['_defaultCallbacks']['set']('formatBlock:join',_0x142eb4),this['_defaultCallbacks']['set']('formatBlock:chain',_0x459247),this['_defaultCallbacks']['set']('attribute:accept',_0x459247),this['_defaultCallbacks']['set']('attribute:discard',(_0x144b05,_0x1f4550)=>{if(!_0x1f4550)return;const _0x3d667b=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x37351e=>{if(_0x1f4550['key']==u)for(const _0x4d7e0d of _0x144b05){const _0x1fa6ba=_0x4d7e0d['start']['nodeAfter'],_0x38150c=_0x1f4550['oldValue'];_0x37351e['rename'](_0x1fa6ba,_0x38150c);}else{if(_0x3d667b['_isBlockAttribute'](_0x1f4550['key'])){for(const _0x4ab1c6 of _0x144b05)void 0x0!==_0x1f4550['oldValue']?_0x37351e['setAttribute'](_0x1f4550['key'],_0x1f4550['oldValue'],_0x4ab1c6['start']['nodeAfter']):_0x37351e['removeAttribute'](_0x1f4550['key'],_0x4ab1c6['start']['nodeAfter']);}else{for(const _0x1d82fb of _0x144b05)_0x1f4550['oldValue']?_0x37351e['setAttribute'](_0x1f4550['key'],_0x1f4550['oldValue'],_0x1d82fb):_0x37351e['removeAttribute'](_0x1f4550['key'],_0x1d82fb);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x142eb4);}}function Pt(_0xa2a839,_0x405c08,_0x48f802){for(const _0x32f836 of _0x405c08['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x32f836['root']==_0x32f836)return!0x1;if(!_0x48f802['containsItem'](_0x32f836))return!0x1;if(_0xa2a839['isObject'](_0x32f836)||_0xa2a839['isLimit'](_0x32f836))return!0x0;}return!0x1;}function Gt(_0x93959b){return _0x93959b['end']['parent']==_0x93959b['start']['nodeAfter']&&_0x93959b['end']['isAtStart'];}function Lt(_0x1b4b94,_0x2782c3,_0x39b4da,_0x79379e){const _0x678021=_0xb67c5e=>!_0xb67c5e['item']['is']('$textProxy')&&!_0x79379e['isObject'](_0xb67c5e['item']),_0x1739a2=_0x1b4b94['start']['getLastMatchingPosition'](_0x678021),_0x5368a6=_0x1b4b94['end']['getLastMatchingPosition'](_0x678021,{'direction':'backward'});return(!_0x1b4b94['start']['isEqual'](_0x1739a2)||!_0x1b4b94['end']['isEqual'](_0x5368a6))&&(_0x1739a2['isBefore'](_0x5368a6)?_0x39b4da['updateMarker'](_0x2782c3,{'range':_0x39b4da['createRange'](_0x1739a2,_0x5368a6)}):_0x39b4da['removeMarker'](_0x2782c3),!0x0);}function Jt(_0x3295b7){return _0x53c7b9(_0x3295b7);}function Kt(_0x1fa864){const _0x2a6776=_0x1fa864['start']['nodeAfter'];return _0x2a6776&&_0x2a6776['is']('element');}function Ht(_0x462b2b,_0x5081b7){return null==_0x462b2b['end']['nodeBefore']&&_0x462b2b['end']['parent']==_0x462b2b['start']['nodeAfter']?qt(_0x462b2b['start']['nodeAfter'],_0x5081b7):_0x462b2b;}function qt(_0x4eb4c3,_0x21fb2c){const _0x23aa8e=_0x21fb2c['schema']['isObject'](_0x4eb4c3)||_0x21fb2c['schema']['isSelectable'](_0x4eb4c3);return _0x21fb2c['createRange'](_0x21fb2c['createPositionAt'](_0x4eb4c3,'before'),_0x23aa8e?_0x21fb2c['createPositionAfter'](_0x4eb4c3):_0x21fb2c['createPositionAt'](_0x4eb4c3,'end'));}function zt(_0x3c31eb,_0x5399bf,_0x524f12,_0x1dfa9a){return!!Wt(_0x3c31eb,_0x5399bf)&&_0x524f12['end']['isEqual'](_0x1dfa9a['start']);}function Wt(_0x588567,_0x2cf16d){if(!_0x588567['_isDataLoaded']||!_0x2cf16d['_isDataLoaded'])return!0x1;const _0xb71a05=new Set(Object['keys'](_0x588567['attributes'])),_0x3641a8=new Set(Object['keys'](_0x2cf16d['attributes']));if(_0xb71a05['delete']('groupId'),_0x3641a8['delete']('groupId'),0x0==_0xb71a05['size']&&0x0==_0x3641a8['size'])return!0x0;if(_0xb71a05['size']!=_0x3641a8['size'])return!0x1;const _0x2721b4={..._0x588567['attributes']},_0x54b7c9={..._0x2cf16d['attributes']};return delete _0x2721b4['groupId'],delete _0x54b7c9['groupId'],JSON['stringify'](_0x2721b4)==JSON['stringify'](_0x54b7c9);}function Qt(_0xc08ab9,_0x16e04e){const _0x211972=Xt(_0xc08ab9['attributes']),_0x35d9a6=Xt(_0x16e04e);if(!_0xc08ab9['_isDataLoaded'])return!0x1;for(const _0x4289b4 of Object['keys'](_0x35d9a6))if(!_0x5376df(_0x211972[_0x4289b4],_0x35d9a6[_0x4289b4]))return!0x1;return!0x0;}function Xt(_0x1e1bdf){const _0x19b628=Object['assign']({},_0x1e1bdf);return delete _0x19b628['skipNestingCheck'],delete _0x19b628['tablePasteChainId'],_0x19b628;}class pe extends/* #__PURE__ -- @preserve */
25
- _0x5eb22a(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0xa4c7f1,_0x41457f,_0x1d2f3a,_0x5e2b45){super(),this['model']=_0x41457f,this['view']=_0x1d2f3a,this['commentThreadController']=_0x5e2b45,this['_editor']=_0xa4c7f1,this['_acceptCommand']=_0xa4c7f1['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0xa4c7f1['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x34d0ee,_0x15ab39)=>_0x34d0ee||_0x15ab39),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x5881c1=>_0x5881c1&&this['_editor']['model']['canEditAt'](_0x41457f['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x2f1d9d=>_0x2f1d9d&&this['_editor']['model']['canEditAt'](_0x41457f['getRanges']())),this['_pendingAction']=null,_0x1d2f3a['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x1d2f3a,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x1d2f3a,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x1d2f3a,'change:isDirty',()=>{_0x1d2f3a['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 _0x352d4e=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x352d4e);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x5c55ad{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x25436b,_0x4cb63f,_0xa52734,_0x34c550){super(_0x25436b),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x488671(_0x25436b,c(_0x25436b,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x4cb63f['authoredAt']),this['bind']('authoredAt')['to'](_0x4cb63f),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',_0x4cb63f,'authoredAt',this,'descriptionParts',(_0x1185af,_0x36cfe6,_0x23c7c4)=>{const _0x3be39f=_0x23c7c4['map'](_0x143ef0=>ls(_0x143ef0['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x1185af-0x1,_0x4cb63f['author']['name'],_0x36cfe6?_0x34c550['formatDateTime'](_0x36cfe6):'',new DOMParser()['parseFromString'](_0x3be39f,'text/html')['body']['textContent']]);}),this['focusables']=new _0x58e801(),this['focusTracker']=new _0x1f00fc(),this['keystrokes']=new _0x1835dd(),this['focusCycler']=new _0x59a2da({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x40a906=>_0x40a906['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x4cb63f,this['_localUser']=_0xa52734,this['_config']=_0x34c550,_0x34c550['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x330c23(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x3a82e6}=this['_config'];this['commentsListView']=new _0x3a82e6(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',_0x110ce0=>_0x110ce0+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x34a4b8,_0x1bdc60)=>_0x34a4b8||!!_0x1bdc60);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x1cefe7}=this['_config'],_0x21da4f=new _0x1cefe7(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x148c80=_0x21da4f['commentInputView'];return _0x21da4f['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x148c80,'value',(_0x2127cf,_0x33828f,_0x150116)=>!!_0x150116||_0x2127cf&&!_0x33828f),_0x148c80['on']('submit',(_0x271001,_0x5a2aef)=>{this['fire']('addComment',_0x5a2aef),_0x148c80['editor']['setData']('');}),_0x148c80['on']('cancel',()=>this['focus']()),_0x148c80['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x21da4f;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x3876ea,_0x25729e,_0x124e3a,_0x327158){super(_0x3876ea,_0x25729e,_0x124e3a,_0x327158),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x87f9d1=>_0x87f9d1&&_0x87f9d1[0x0]?_0x87f9d1[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x1b0c1b,_0x293981)=>{let _0x280f52='';for(const _0xdd0f2f of _0x1b0c1b)_0x280f52+='<p>'+ls(_0xdd0f2f['content'],_0xdd0f2f['color'])+'</p>';return _0x293981?_0x280f52:ti(_0x280f52,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x327158['SuggestionView'](_0x3876ea,_0x25729e,{'formatDateTime':_0x327158['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 _0x32b5eb=this['bindTemplate'],_0x4bae48=[this['suggestionView']];return this['commentsListView']&&_0x4bae48['push'](this['commentsListView']),this['commentThreadInputView']&&_0x4bae48['push'](this['commentThreadInputView']),_0x4bae48['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x32b5eb['if']('isActive','ck-suggestion-wrapper--active'),_0x32b5eb['to']('type',_0x4c6fc2=>'ck-suggestion-'+_0x4c6fc2),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':_0x32b5eb['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x4bae48};}['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 _0x5c55ad{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x4310a1,_0x19f42c,_0x56be4b){super(_0x4310a1),this['_model']=_0x19f42c,this['_config']=_0x56be4b,this['set']('description',''),this['bind']('authoredAt')['to'](_0x19f42c),this['acceptButton']=this['_createButton'](c(_0x4310a1,'Accept\x20suggestion'),_0x32e88f,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x4310a1,'Discard\x20suggestion'),_0x274e77,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x55e2a3(_0x4310a1,_0x19f42c['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x58e801([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x1f00fc(),this['keystrokes']=new _0x1835dd(),this['focusCycler']=new _0x59a2da({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x32122e=>_0x32122e['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0xab39fc=this['element']['querySelector']('.ck-annotation__content-wrapper');_0xab39fc['innerHTML']=this['description'],this['on']('change:description',(_0x228a37,_0x50dce1,_0x533447)=>{_0xab39fc['innerHTML']=_0x533447;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x136d2b=this['bindTemplate'],_0x5696ec=[{'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':_0x136d2b['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x136d2b['to']('authoredAt',_0x1a095e=>this['_config']['formatDateTime'](_0x1a095e))}]}]},{'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']&&_0x5696ec['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':_0x5696ec}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x1b00db,_0x1ae77e,_0x2b1561,_0x39ab62,_0xbf2bc5){const _0x216626=new _0x21a31f(this['locale']);return _0x216626['set']({'label':_0x1b00db,'icon':_0x1ae77e,'tooltip':!0x0,'tooltipPosition':_0xbf2bc5}),_0x216626['extendTemplate']({'attributes':{'class':_0x2b1561}}),_0x216626['on']('execute',()=>{this['fire'](_0x39ab62,this['_model']['id']);}),_0x216626;}['_setupKeyboardNavigation'](){const _0x561648=this['element'];this['keystrokes']['listenTo'](_0x561648);for(const _0x149838 of this['focusables'])this['focusTracker']['add'](_0x149838['element']),this['keystrokes']['listenTo'](_0x149838['element']);this['keystrokes']['set']('enter',(_0xb2924b,_0x488676)=>{_0x561648===_0xb2924b['target']&&(this['focusCycler']['focusFirst'](),_0x488676());}),this['keystrokes']['set']('esc',(_0x317c26,_0x3732a3)=>{_0x561648!==_0x317c26['target']&&(this['focus'](),_0x3732a3());});}}class d extends _0x2b6060{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x1ac468,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2d9e76){super(_0x2d9e76),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x15402d=this['editor']['config'];_0x15402d['define']('trackChanges.SuggestionThreadView',fe),_0x15402d['define']('trackChanges.SuggestionView',we),_0x15402d['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x15402d['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x3fb8a9,_0x117647){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x53225c,_0x212a62]of this['_handleControllerBuffer']){const _0x4d62b6=this['_suggestionToController']['has'](_0x53225c);_0x4d62b6||_0x212a62?_0x4d62b6&&_0x212a62&&this['_destroyController'](_0x53225c):this['_initializeController'](_0x53225c);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x3fb8a9,_0x117647);}['init'](){const _0x29468a=this['editor'],_0x541b96=_0x29468a['plugins']['get']('TrackChangesEditing'),_0x5810e2=_0x29468a['plugins']['get']('Annotations'),_0x20d37b=_0x29468a['plugins']['get']('EditorAnnotations'),_0x51dbcf=_0x29468a['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x20d37b['addSourceCollector'](()=>{const _0x59adee=[];for(const [_0x20d954,_0x4750c5]of Array['from'](this['_suggestionToController'])){const _0x95f6c2=_0x20d954['getAllAdjacentSuggestions'](),_0x55f45d=[];for(const _0x337f5a of _0x95f6c2){if(!_0x337f5a['isInContent'])continue;if(_0x337f5a['isMultiRange']){_0x55f45d['push'](..._0x337f5a['getRanges']());continue;}const _0x1a6a16=_0x337f5a['getFirstRange']();if(_0x55f45d['length']>0x0){const _0x2a329d=_0x55f45d[0x0]['getJoined'](_0x1a6a16);if(_0x2a329d){_0x55f45d[0x0]=_0x2a329d;continue;}}_0x55f45d['push'](_0x1a6a16);}_0x59adee['push']([_0x4750c5['view'],_0x55f45d]);}return _0x59adee;}),this['listenTo'](_0x541b96,'suggestionLoaded',(_0xdd2388,_0x2a2ca4)=>{this['listenTo'](_0x2a2ca4,'change:previous',(_0x2eed6c,_0x19e332,_0x16f3d2,_0x14af0a)=>{_0x2a2ca4['isInContent']&&(null==_0x16f3d2?(this['_updateController'](_0x14af0a['head']),this['_handleSuggestionControllerDelayed'](_0x2a2ca4,!0x1)):(this['_updateController'](_0x16f3d2['head']),null==_0x14af0a&&this['_handleSuggestionControllerDelayed'](_0x2a2ca4,!0x0)));}),null!==_0x2a2ca4['previous']?this['_updateController'](_0x2a2ca4['head']):this['_handleSuggestionControllerDelayed'](_0x2a2ca4,!0x1);}),this['listenTo'](_0x541b96,'suggestionUnloaded',(_0xef6eb1,_0x257238,_0x1d2912)=>{this['stopListening'](_0x257238,'change:previous'),this['_handleControllerBuffer']['delete'](_0x257238),this['_suggestionToController']['has'](_0x257238)&&this['_destroyController'](_0x257238),_0x1d2912&&this['_updateController'](_0x1d2912['head']);}),this['listenTo'](_0x541b96,'suggestionChanged',(_0x535e43,_0x4489b6)=>{this['_updateController'](_0x4489b6);}),this['listenTo'](_0x5810e2,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x51dbcf,'addComment',(_0x27a8ba,{threadId:_0x40d9f1,isFromAdapter:_0x1479f7})=>{if(_0x1479f7||!_0x541b96['hasSuggestion'](_0x40d9f1))return;const _0x1dd545=_0x541b96['getSuggestion'](_0x40d9f1);this['_suggestionToController']['get'](_0x1dd545)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4d0266=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x215f18;for(const _0x297138 in _0x4d0266){const _0x3bd3dc=_0x297138,_0x2a76ca=_0x4d0266[_0x3bd3dc];if('trackChangesLicenseKeyValid'==_0x2a76ca||'trackChangesLicenseKeyInvalid'==_0x2a76ca||'trackChangesLicenseKeyExpired'==_0x2a76ca||'trackChangesLicenseKeyDomainLimit'==_0x2a76ca||'trackChangesLicenseKeyNotAllowed'==_0x2a76ca||'trackChangesLicenseKeyEvaluationLimit'==_0x2a76ca||'trackChangesLicenseKeyTrialLimit'==_0x2a76ca||'trackChangesLicenseKeyUsageLimit'==_0x2a76ca){delete _0x4d0266[_0x3bd3dc],_0x215f18=_0x2a76ca,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x215f18&&_0x4d0266['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x215f18&&_0x4d0266['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x215f18&&_0x4d0266['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x215f18&&_0x4d0266['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x215f18&&_0x4d0266['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x215f18&&_0x4d0266['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x215f18&&_0x4d0266['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x73c299=this['editor']['plugins']['get']('Annotations'),_0x347194=this['editor']['plugins']['get']('TrackChangesEditing'),_0x10594b=Array['from'](_0x73c299['activeAnnotations'],_0x1b313d=>_0x1b313d['innerView'])['filter'](_0x56207c=>this['_viewToController']['has'](_0x56207c)),_0x335acf=[];for(const _0x102d92 of _0x10594b){const _0x13d0e8=this['_viewToController']['get'](_0x102d92)['model']['getAllAdjacentSuggestions']();_0x335acf['push'](..._0x13d0e8['reduce']((_0x2a73fd,_0x4df9f6)=>[..._0x2a73fd,..._0x4df9f6['getMarkerNames']()],[]));}_0x347194['activeMarkers']=_0x335acf;}['_addUIComponentsToFactory'](){const _0x18f26a=this['editor'],_0x309004=_0x18f26a['locale'],_0x5dc99c=c(_0x309004,'Track\x20changes'),_0x4694a8=new _0x82bc9c([{'type':'switchbutton','model':new _0x55cb97({'withText':!0x0,'isToggleable':!0x0,'label':_0x5dc99c,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x55cb97({'withText':!0x0,'label':c(_0x309004,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x55cb97({'withText':!0x0,'label':c(_0x309004,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x55cb97({'withText':!0x0,'label':c(_0x309004,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x55cb97({'withText':!0x0,'label':c(_0x309004,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x18f26a['plugins']['has']('TrackChangesPreview')&&_0x4694a8['addMany']([{'type':'separator'},{'type':'button','model':new _0x55cb97({'withText':!0x0,'label':c(_0x309004,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x30215e of _0x4694a8)if(ke(_0x30215e)){const _0x27be3a=_0x18f26a['commands']['get'](_0x30215e['model']['commandName']);_0x30215e['model']['bind']('isOn','isEnabled')['to'](_0x27be3a,'value','isEnabled');}_0x18f26a['ui']['componentFactory']['add']('trackChanges',_0x47d095=>this['_createToolbarButton'](_0x47d095,_0x4694a8,_0x5dc99c)),_0x18f26a['ui']['componentFactory']['add']('menuBar:trackChanges',_0x3445b1=>this['_createMenuBarMenu'](_0x3445b1,_0x4694a8,_0x5dc99c));}['_createToolbarButton'](_0x2d05f6,_0x1ddc05,_0x37f068){const _0x23ff31=_0x3e0239(_0x2d05f6,_0x5bf7d9),_0xcfc241=this['editor']['commands']['get']('trackChanges');_0x23ff31['buttonView']['set']({'tooltip':_0x37f068,'label':_0x37f068,'icon':_0x385c3b}),_0x23ff31['buttonView']['bind']('isOn')['to'](_0xcfc241,'value'),_0x23ff31['buttonView']['on']('execute',()=>{_0xcfc241['execute'](),this['editor']['editing']['view']['focus']();}),_0x16270a(_0x23ff31,_0x1ddc05,{'role':'menu'});const _0x2aedf5=[];for(const _0x4ce07 of _0x1ddc05)ke(_0x4ce07)&&_0x2aedf5['push'](this['editor']['commands']['get'](_0x4ce07['model']['commandName']));const _0x205213=_0x23ff31['buttonView'];return _0x205213['actionView']['unbind']('isEnabled'),_0x205213['arrowView']['unbind']('isEnabled'),_0x205213['actionView']['bind']('isEnabled')['to'](_0xcfc241,'isEnabled'),_0x205213['arrowView']['bind']('isEnabled')['toMany'](_0x2aedf5,'isEnabled',(..._0x4fe9af)=>_0x4fe9af['some'](_0x206513=>_0x206513)),_0x23ff31['on']('execute',_0x636e34=>{this['editor']['execute'](_0x636e34['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x23ff31;}['_createMenuBarMenu'](_0x878997,_0x108c00,_0x4a98ab){const _0x503c63=new _0x16b25f(_0x878997),_0x4ac309=this['editor']['commands']['get']('trackChanges');_0x503c63['buttonView']['set']({'label':_0x4a98ab,'icon':_0x385c3b});const _0x1b406e=new _0x2a8198(_0x878997);for(const _0x241f38 of _0x108c00){if('separator'==_0x241f38['type']){_0x1b406e['items']['add'](new _0x2cefe1(_0x878997));continue;}const _0x1c9ab0=new _0x1822df(_0x878997,_0x503c63),_0x52b45e=new _0x169d54(_0x878997),_0x4203bb=_0x241f38['model'];_0x52b45e['bind'](...Object['keys'](_0x4203bb))['to'](_0x4203bb),_0x52b45e['delegate']('execute')['to'](_0x503c63),_0x52b45e['on']('execute',()=>{this['editor']['execute'](_0x4203bb['commandName']),this['editor']['editing']['view']['focus']();}),_0x1c9ab0['children']['add'](_0x52b45e),_0x1b406e['items']['add'](_0x1c9ab0);}return _0x503c63['bind']('isEnabled')['to'](_0x4ac309,'isEnabled'),_0x503c63['panelView']['children']['add'](_0x1b406e),_0x503c63;}['_initializeController'](_0x19d108){const _0x57df6b=this['editor'],_0x54668b=_0x57df6b['config'],_0x502f81=_0x57df6b['plugins']['get']('Annotations'),_0x2c48a=_0x57df6b['plugins']['get']('CommentsRepository'),_0x2bcc1b=_0x57df6b['plugins']['get']('EditorAnnotations'),_0x4ca964=_0x57df6b['plugins']['get'](_0x1ac468)['me'],_0x510e15=_0x54668b['get']('trackChanges')['SuggestionThreadView'],_0x3cc703=_0x54668b['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x27ed92,CommentThreadInputView:_0x4d52f7}=_0x57df6b['plugins']['get']('CommentsUI');let _0x36a094,_0x43b220,_0x67cded;this['_annotationViews']['has'](_0x19d108['id'])?(_0x43b220=this['_annotationViews']['get'](_0x19d108['id']),_0x36a094=_0x43b220['mainView']):(_0x36a094=new _0x510e15(_0x57df6b['locale'],_0x19d108,_0x4ca964,{'disableComments':this['_disableComments'],'editorConfig':{..._0x54668b['get']('comments.editorConfig'),'licenseKey':_0x54668b['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x54668b['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x54668b['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x54668b['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3679b4(_0x54668b['get']('locale')),'CommentView':_0x54668b['get']('comments')['CommentView'],'CommentsListView':_0x27ed92,'CommentThreadInputView':_0x4d52f7,'SuggestionView':_0x3cc703}),_0x36a094['suggestionView']['acceptButton']['on']('execute',()=>{_0x57df6b['editing']['view']['focus']();}),_0x36a094['suggestionView']['discardButton']['on']('execute',()=>{_0x57df6b['editing']['view']['focus']();}),_0x43b220=_0x502f81['createAnnotationView'](this['editor']['locale'],_0x36a094),_0x43b220['bind']('isDirty')['to'](_0x36a094,'isDirty'),_0x43b220['bind']('length')['to'](_0x36a094),_0x43b220['bind']('type')['to'](_0x36a094,'type',_0x33ce31=>'suggestion-'+_0x33ce31),_0x36a094['on']('escape',()=>{_0x67cded['fire']('escape');}),this['_annotationViews']['set'](_0x19d108['id'],_0x43b220));const _0x3238f6=_0x2c48a['createCommentThreadController'](_0x19d108['commentThread'],_0x36a094),_0x5ed5ae=new pe(_0x57df6b,_0x19d108,_0x36a094,_0x3238f6),_0x15fe02=_0x19d108['getAllAdjacentSuggestions']()['filter'](_0x1d2e33=>_0x1d2e33['isInContent']);_0x36a094['descriptionParts']=_0x57df6b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x15fe02),this['_suggestionToController']['set'](_0x19d108,_0x5ed5ae),this['_viewToController']['set'](_0x36a094,_0x5ed5ae),_0x67cded=_0x502f81['createAnnotation']({'view':_0x43b220,'target':()=>{const _0x3c6416=[],_0x4dc94a=_0x19d108['getAllAdjacentSuggestions']()['filter'](_0x4dccd2=>_0x4dccd2['isInContent']);for(const _0x543662 of _0x4dc94a)_0x3c6416['push'](..._0x543662['getMarkers']());return _0xa7507c(_0x57df6b['editing'],_0x3c6416);},'type':()=>'suggestion-'+_0x5ed5ae['view']['type']}),_0x2c48a['_bindAnnotationToEditors'](_0x36a094,_0x67cded),_0x502f81['add'](_0x67cded),_0x2bcc1b['registerAnnotation'](_0x67cded);}['_destroyController'](_0x1e1dd4){const _0x2312f5=this['editor']['plugins']['get']('CommentsRepository'),_0x1eebee=this['editor']['plugins']['get']('Annotations'),_0x44aae1=this['_suggestionToController']['get'](_0x1e1dd4),_0x3b1252=_0x44aae1['view'],_0xc91b53=_0x1eebee['getByInnerView'](_0x3b1252);_0x2312f5['_unbindEditors'](_0x3b1252),_0xc91b53&&_0x1eebee['remove'](_0xc91b53),this['_suggestionToController']['delete'](_0x1e1dd4),this['_viewToController']['delete'](_0x3b1252),_0x44aae1['destroy']();}['_updateController'](_0x2e66a3){if(!_0x2e66a3['isInContent']||!this['_suggestionToController']['has'](_0x2e66a3))return;const _0x10cbc5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x22aaac=this['_suggestionToController']['get'](_0x2e66a3),_0x596987=_0x2e66a3['getAllAdjacentSuggestions']();_0x22aaac['view']['descriptionParts']=_0x10cbc5['descriptionFactory']['getDescriptions'](_0x596987);}['destroy'](){for(const _0x34e5d0 of this['_suggestionToController']['keys']())this['_destroyController'](_0x34e5d0);for(const _0x2a66e7 of this['_annotationViews']['values']())_0x2a66e7['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x2bd776){return'model'in _0x2bd776;}class k extends _0x2b6060{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x24c3e3){this['editor']['plugins']['get'](p)['adapter']=_0x24c3e3;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x16ac1b){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x16ac1b);}['getSuggestions']({skipNotAttached:_0x8077ff=!0x1,toJSON:_0x5e3b88=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x8077ff,'toJSON':_0x5e3b88});}['getSuggestion'](_0x1cdbbe){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x1cdbbe);}}const w=['Pagination'];class T extends _0x2b6060{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x15980e=this['editor'];if(_0x15980e['config']['define']('trackChangesData.editorCreator',_0x3dcf71=>{const _0x3bbe22=_0x15980e['model']['document']['getRootNames']()['reduce']((_0x314ebb,_0x28dda6)=>(_0x314ebb[_0x28dda6]='',_0x314ebb),{});return _0x15980e['constructor']['create'](_0x3bbe22,_0x3dcf71);}),'function'!=typeof _0x15980e['config']['get']('trackChangesData')['editorCreator'])throw new _0x1ee9fa('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x4a106c){return N(this['editor'],!0x0,_0x4a106c);}['getDataWithDiscardedSuggestions'](_0x24dea6){return N(this['editor'],!0x1,_0x24dea6);}}class D extends _0x2b6060{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x34e698){function _0x357c0d(_0x50227e){return _0x50227e['map'](_0x2e654b=>String['fromCharCode'](_0x2e654b))['join']('');}super(_0x34e698),this['result']='end',_0x34e698[_0x357c0d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x357c0d([0x76,0x69,0x65,0x77])][_0x357c0d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x357c0d([0x61,0x75,0x74,0x6f]),_0x34e698[_0x357c0d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x357c0d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x357c0d([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x357c0d([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x357c0d([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 Fe(_0x5df009){return void 0x0!==_0x5df009['getRootsAttributes'];}async function N(_0x738c5f,_0x5e842e,_0x11aa92){const _0x3c7c8f=_0x5293de(_0x738c5f,w);_0x3c7c8f['plugins']['push'](p,D),_0x3c7c8f['rootsAttributes']=Fe(_0x738c5f)?_0x738c5f['getRootsAttributes']():void 0x0;const _0x35f8b5=document['createDocumentFragment'](),_0x389d58=_0x738c5f['config']['get']('trackChangesData')['editorCreator'],_0x50d697=await _0x389d58(_0x3c7c8f,()=>function(_0x100f80){const _0x343070=document['createElement']('div');return _0x100f80['appendChild'](_0x343070),_0x343070;}(_0x35f8b5));!function(_0x45e15c,_0x4a78e2){const _0x4d6fb9=_0x45e15c['model']['document']['getRootNames']()['reduce']((_0x47c613,_0x16c739)=>(_0x47c613[_0x16c739]=_0x45e15c['data']['get']({'rootName':_0x16c739}),_0x47c613),{}),_0x5915e0=_0x45e15c['plugins']['get']('Users')['users']['map'](_0x1d9b7c=>({'id':_0x1d9b7c['id'],'name':_0x1d9b7c['name']})),_0x1639d1=_0x45e15c['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x124d23=_0x45e15c['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x169be3=_0x4a78e2['plugins']['get']('Users'),_0x31e99f=_0x4a78e2['plugins']['get']('TrackChangesEditing'),_0x5c739a=_0x4a78e2['plugins']['get']('CommentsRepository');for(const _0x31cec5 of _0x5c739a['getCommentThreads']())_0x31cec5['remove']();for(const _0x31a2c2 of _0x5915e0)_0x169be3['getUser'](_0x31a2c2['id'])||_0x169be3['addUser'](_0x31a2c2);_0x169be3['me']||_0x169be3['useAnonymousUser']();for(const _0x5457d4 of _0x124d23)_0x5c739a['addCommentThread'](_0x5457d4);for(const _0x1cc869 of _0x1639d1)_0x31e99f['addSuggestionData'](_0x1cc869);_0x4a78e2['data']['set'](_0x4d6fb9);}(_0x738c5f,_0x50d697),_0x50d697['execute'](_0x5e842e?'acceptAllSuggestions':'discardAllSuggestions');const _0x3c6e21=Fe(_0x50d697)?_0x50d697['getFullData'](_0x11aa92):_0x50d697['data']['get'](_0x11aa92);return await _0x50d697['destroy'](),_0x3c6e21;}class Me extends _0x5c55ad{['options'];constructor(_0x2a2df3,_0x2b2d8f){super(_0x2a2df3),this['options']=_0x2b2d8f,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'](_0x56ad5c,_0x2e7fc8){if(!this['element'])return;const _0x5cb33c=[];for(const [_0x36ec77,_0x24c9f9]of _0x56ad5c){const _0x24aa54=document['createElement']('div');_0x24aa54['setAttribute']('data-ck-root-name',_0x36ec77),_0x24aa54['className']=_0x24c9f9['classes']+'\x20ck-track-changes-preview__root-container',_0x24aa54['innerHTML']=_0x24c9f9['content'],_0x5cb33c['push'](_0x24aa54);}_0x2e7fc8(this['element'],_0x5cb33c),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x5e0592{constructor(_0x48a69d){super(_0x48a69d),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x469a53=this['editor'],_0x3246bc=_0x469a53['locale'],_0x26a274=_0x469a53['plugins']['get']('Dialog');let _0x141388;const _0x2e0d79=function(_0x3f8c42){const _0x3a7c92={};if('editables'in _0x3f8c42['ui']['view']){for(const [_0x5cf2cd,_0x403f44]of Object['entries'](_0x3f8c42['ui']['view']['editables']))_0x3a7c92[_0x5cf2cd]=_0x403f44['element'];}else _0x3a7c92[_0x3f8c42['model']['document']['getRootNames']()[0x0]]=_0x3f8c42['ui']['view']['editable']['element'];return _0x3a7c92;}(_0x469a53),_0x26b13a=function(_0x566d00){let _0x54a67c=0x0;for(const _0x50c51e of Object['values'](_0x566d00))_0x54a67c=Math['max'](_0x54a67c,_0x50c51e['getBoundingClientRect']()['width']);let _0x14dad0=0x0;for(const _0x4be41c of Object['values'](_0x566d00))_0x14dad0+=_0x4be41c['getBoundingClientRect']()['height'];const _0x572785=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x2cc765=Math['min'](_0x14dad0,_0x572785);return{'width':_0x54a67c,'height':_0x2cc765};}(_0x2e0d79);_0x26a274['show']({'id':'finalContentPreview','title':c(_0x3246bc,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x3246bc,{'dialogRects':_0x26b13a}),'onHide':()=>{_0x141388['detachFromDom']();},'onShow':()=>{_0x469a53['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x3e4b4f=>{const _0x529e43=this['_standarizeRootsData'](_0x3e4b4f,_0x469a53,_0x2e0d79);_0x26a274['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x529e43,_0x469a53['config']['get']('trackChanges.preview.renderFunction'));}),_0x141388=new _0x4e56ea(_0x3246bc,[_0x26a274['view']]),_0x141388['attachToDom'](),_0x141388['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x469a53['once']('destroy',()=>{_0x141388['detachFromDom']();});const _0x5bc662=_0x26a274['view']['headerView']['class'];_0x26a274['view']['headerView']['class']=_0x5bc662?_0x5bc662+'\x20ck-reset_all':'ck-reset_all',_0x26a274['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x26a274['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x584bfb=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x18e813=_0x584bfb['previewMode'],_0x2a1b95={};if('$labels'===_0x18e813){for(const _0x19632e of _0x584bfb['getMergeFieldsIds']())_0x2a1b95[_0x19632e]=_0x584bfb['getLabel'](_0x19632e)||_0x19632e;}else{const _0x3330b5='$defaultValues'===_0x18e813?_0x584bfb['getDefaultValues']():_0x584bfb['getDataSetValues'](_0x18e813,!0x0);for(const _0x1f75f2 of Object['entries'](_0x3330b5)){const [_0x5d7f75,_0x22ec2a]=_0x1f75f2;_0x2a1b95[_0x5d7f75]=null!==_0x22ec2a?_0x22ec2a:_0x584bfb['getLabel'](_0x5d7f75)||_0x5d7f75;}}return{'mergeFieldsData':_0x2a1b95};}['_standarizeRootsData'](_0xa22be0,_0x1e2bd9,_0x36918b){let _0x3e2572;if('string'==typeof _0xa22be0){const _0x24b765=_0x1e2bd9['model']['document']['getRootNames']()[0x0];_0x3e2572={[_0x24b765]:_0xa22be0};}else _0x3e2572=_0xa22be0;const _0x5a176a=this['_fixMediaEmbeds'](_0x3e2572,_0x1e2bd9),_0x2ed481=function(_0x4016fe,_0x174e06){for(const [_0x3f1f83,_0x5c6022]of _0x4016fe)_0x5c6022['classes']=_0x174e06[_0x3f1f83]['classList']['value']['replace']('ck-focused','');return _0x4016fe;}(this['_sortRoots'](_0x1e2bd9)['reduce']((_0x4274bb,_0x971ddd)=>(_0x4274bb['push']([_0x971ddd,{'content':_0x5a176a[_0x971ddd],'classes':''}]),_0x4274bb),[]),_0x36918b);return _0x2ed481;}['_fixMediaEmbeds'](_0x3a4f87,_0x113379){if(!_0x113379['plugins']['has']('MediaEmbedEditing'))return _0x3a4f87;const _0x5842b4=_0x113379['plugins']['get']('MediaEmbedEditing');for(const [_0x3ca62b,_0x47066c]of Object['entries'](_0x3a4f87)){const _0x41be0e=document['createElement']('div');_0x41be0e['innerHTML']=_0x47066c,(_0x41be0e['querySelectorAll']('figure.media')['forEach'](_0x289e0b=>{const _0x29129a=_0x289e0b['querySelector']('oembed');if(_0x29129a){const _0x36c83d=_0x29129a['getAttribute']('url');if(_0x36c83d){const _0x11a124=_0x5842b4['registry']['getMediaViewElement'](new _0x343894(_0x113379['editing']['view']['document']),_0x36c83d,{'elementName':'','renderForEditingView':!0x0}),_0x399a2b=document['createElement']('div');_0x399a2b['classList']['add']('ck-media__wrapper'),_0x11a124['render'](_0x399a2b,_0x113379['editing']['view']['domConverter']),_0x29129a['replaceWith'](_0x399a2b);}}}),_0x3a4f87[_0x3ca62b]=_0x41be0e['innerHTML']);}return _0x3a4f87;}['_sortRoots'](_0x56803e){if(!function(_0x949126){return void 0x0!==_0x949126['getRootsAttributes'];}(_0x56803e))return _0x56803e['model']['document']['getRootNames']();const _0x18a828=[],_0x3d4dfc=new Map();for(const _0x1f903e of _0x56803e['model']['document']['getRootNames']()){const _0x5d9a12=_0x56803e['editing']['view']['getDomRoot'](_0x1f903e)['getClientRects']()['item'](0x0);_0x18a828['push'](_0x1f903e),_0x3d4dfc['set'](_0x1f903e,_0x5d9a12);}return _0x18a828['sort']((_0x2c5681,_0x1f91f3)=>{const _0x4876fb=_0x3d4dfc['get'](_0x2c5681),_0x24f356=_0x3d4dfc['get'](_0x1f91f3);return _0x4876fb['y']-_0x24f356['y']||_0x4876fb['x']-_0x24f356['x'];}),_0x18a828;}}class te extends _0x2b6060{static get['requires'](){return[T,_0x12ea89];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x906500){super(_0x906500),_0x906500['commands']['add']('previewFinalContent',new re(this['editor'])),_0x906500['config']['define']('trackChanges.preview.renderFunction',(_0x5339e1,_0x46d5ce)=>{for(const _0xed1334 of _0x46d5ce)_0x5339e1['appendChild'](_0xed1334);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
23
+ import{Command as _0xc75cc7,Plugin as _0x32ae11,PendingActions as _0x3043e2}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x20d2d0,ObservableMixin as _0x26a4b6,uid as _0x1b6899,priorities as _0x44647c,insertToPriorityArray as _0xc9a975,logWarning as _0x48babe,getEnvKeystrokeText as _0x25bbef,FocusTracker as _0x5bf86a,KeystrokeHandler as _0x410361,Collection as _0x39d645}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0xa30e5d,IconCancel as _0x5f50fb,IconTrackChanges as _0x3f82ae}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x3b4ca4,View as _0x4557e4,ViewCollection as _0x5b0d43,FocusCycler as _0xeedd1e,ViewModel as _0x459d5c,createDropdown as _0x5c60a8,SplitButtonView as _0x279193,addListToDropdown as _0x3916fd,MenuBarMenuView as _0x2c6665,MenuBarMenuListView as _0x5d645a,ListSeparatorView as _0xfc7a50,MenuBarMenuListItemView as _0x3a2351,MenuBarMenuListItemButtonView as _0x45c64b,BodyCollection as _0x23dbfe,Dialog as _0x434bf9}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x1140a0,hashObject as _0x2246de,surroundingMarkersDetector as _0x27355f,FOCUS_ANNOTATION_KEYSTROKE as _0x5e2705,AriaDescriptionView as _0x230b3c,setupThreadKeyboardNavigation as _0xe77174,trimHtml as ti,UserView as _0x3def6c,LateFocusButtonView as _0x2890f9,getDateTimeFormatter as _0x40c99f,getAllMarkersDomElementsSorted as _0x1fe4aa,sanitizeEditorConfig as _0x5d9ba8}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x5e7052,LiveRange as _0x54bc73,LivePosition as _0x3a8e88,DowncastWriter as _0x41f0f1}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x36f102,toWidget as _0x14a02e}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x3ee16e,set as _0x2c1bc2,isEqual as _0x1c217d,unset as _0x3bf44c,omit as Vt}from'es-toolkit/compat';import{Delete as _0x19a3a7,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x1b4ceb,ShiftEnter as _0x5ecba6}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends _0xc75cc7{['_enabledCommands'];constructor(_0x4fd03c,_0x1512ee){super(_0x4fd03c),this['_enabledCommands']=_0x1512ee,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 _0x5c1256 of this['editor']['commands']['commands']())_0x5c1256['affectsData']&&!this['_enabledCommands']['has'](_0x5c1256)&&_0x5c1256['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x59c78e of this['editor']['commands']['commands']())_0x59c78e['affectsData']&&!this['_enabledCommands']['has'](_0x59c78e)&&_0x59c78e['clearForceDisabled']('TrackChangesCommand');}}class O extends _0xc75cc7{['_suggestions'];constructor(_0x1b746f,_0x3b892f){super(_0x1b746f),this['_suggestions']=_0x3b892f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x385504){const _0x411948=this['_suggestions']['get'](_0x385504);if(!_0x411948)throw new _0x20d2d0('track-changes-accept-suggestion-not-found',this);const _0x13e989=_0x411948['getRanges']();this['editor']['model']['canEditAt'](_0x13e989)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x411948);}}class R extends _0xc75cc7{['_suggestions'];constructor(_0x2ca9e3,_0x1a872b){super(_0x2ca9e3),this['_suggestions']=_0x1a872b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2cddb1){const _0x42595d=this['_suggestions']['get'](_0x2cddb1);if(!_0x42595d)throw new _0x20d2d0('track-changes-discard-suggestion-not-found',this);const _0x58799a=_0x42595d['getRanges']();this['editor']['model']['canEditAt'](_0x58799a)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x42595d);}}function ls(_0x13a1ab,_0x1a11bc){let _0x327f11='';return _0x327f11+=_0x13a1ab['split']('*')['map']((_0x2d9f8d,_0x1a465c)=>_0x1a465c%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x2d9f8d)+'</span>':nn(_0x2d9f8d))['join'](''),_0x1a11bc&&(_0x327f11+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x1a11bc['value']+'\x22\x20title=\x22'+_0x1a11bc['title']+'\x22></span>'),_0x327f11;}function nn(_0x1dc109){const _0x3a9027=document['createElement']('span');return _0x3a9027['innerText']=_0x1dc109,_0x3a9027['innerHTML'];}function ts(_0xfb3969){return _0xfb3969['sort']((_0xad6371,_0x52312b)=>'deletion'==_0xad6371['type']&&'deletion'!=_0x52312b['type']?-0x1:'deletion'!=_0xad6371['type']&&'deletion'==_0x52312b['type']?0x1:0x0);}function Zt(_0x397ed0,_0x39b352){let _0x5e9379,_0x3fa3bd=0x0;const _0x1f6da2=[],_0x4d2802=_0x39b352['schema'];for(;_0x3fa3bd<_0x397ed0['length'];){const _0x336fe4=_0x397ed0[_0x3fa3bd],_0x55cda8=_0x397ed0[_0x3fa3bd+0x1];_0x5e9379||(_0x5e9379=_0x39b352['createPositionBefore'](_0x336fe4)),on(_0x39b352,_0x336fe4,_0x55cda8)||(_0x1f6da2['push'](_0x39b352['createRange'](_0x5e9379,_0x4d2802['isObject'](_0x336fe4)?_0x39b352['createPositionAfter'](_0x336fe4):_0x39b352['createPositionAt'](_0x336fe4,'end'))),_0x5e9379=null),_0x3fa3bd++;}return _0x1f6da2;}function on(_0x2496ba,_0x546dc2,_0x3c3f42){if(!_0x3c3f42)return!0x1;const _0x1ea295=_0x2496ba['createPositionAfter'](_0x546dc2),_0x13296d=_0x2496ba['createPositionBefore'](_0x3c3f42);return _0x1ea295['isTouching'](_0x13296d);}function rs(_0x4c7538,_0x1a4f52,_0x1fce4a){for(;_0x1fce4a['length'];){const _0x3c26b2=_0x1fce4a['splice'](0x0,0x64);_0x4c7538['change'](()=>{for(const _0x341c8e of _0x3c26b2)_0x341c8e['isInContent']&&_0x1a4f52['execute'](_0x341c8e['id']);});}}class x extends _0xc75cc7{['_command'];['_suggestions'];constructor(_0x242be2,_0x956fc7,_0x5c90a9){super(_0x242be2),this['_command']=_0x956fc7,this['_suggestions']=_0x5c90a9,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x465920=Array['from'](this['_suggestions']['values']())['some'](_0x198c15=>_0x198c15['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x465920;}['execute'](){const _0x44e1cb=ts(Array['from'](this['_suggestions']['values']()));for(const _0x4a9b59 of _0x44e1cb){const _0x36a4bf=_0x4a9b59['getRanges']();if(!this['editor']['model']['canEditAt'](_0x36a4bf))return;}rs(this['editor']['model'],this['_command'],_0x44e1cb);}}class E extends _0xc75cc7{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x275661,_0x2a16a4,_0x16775d){super(_0x275661),this['_command']=_0x2a16a4,this['_suggestions']=_0x16775d,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3b5cca=this['editor']['model']['document']['selection'],_0x3eeb6a=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x191f53,_0x5ac73a){const _0x543a7d=Array['from'](_0x191f53['getRanges']()),_0x20d172=new Set();for(const _0x86f0cf of _0x5ac73a)if(_0x86f0cf['isInContent']){for(const _0x5db970 of _0x543a7d)for(const _0x42d578 of _0x86f0cf['getRanges']())(_0x5db970['isIntersecting'](_0x42d578)||_0x191f53['isCollapsed']&&!_0x86f0cf['isMultiRange']&&_0x86f0cf['next']&&_0x42d578['end']['isTouching'](_0x5db970['start']))&&_0x20d172['add'](_0x86f0cf);}return _0x20d172;}(_0x3b5cca,_0x3eeb6a),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x3f283a=ts(Array['from'](this['_selectedSuggestions']));for(const _0x294662 of _0x3f283a){const _0x10c739=_0x294662['getRanges']();if(!this['editor']['model']['canEditAt'](_0x10c739))return;}rs(this['editor']['model'],this['_command'],_0x3f283a);}}class o extends/* #__PURE__ -- @preserve */
24
+ _0x26a4b6(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x17fb66,_0x5b82dc){super(),this['id']=_0x5b82dc['id'],this['type']=_0x5b82dc['type'],this['subType']=_0x5b82dc['subType']||null,this['author']=_0x5b82dc['author'],this['creator']=_0x5b82dc['creator']||_0x5b82dc['author'],this['isExternal']=Boolean(_0x5b82dc['attributes']&&_0x5b82dc['attributes']['@external']),this['data']=null,this['_model']=_0x17fb66,this['_onAccept']=_0x5b82dc['onAccept'],this['_onDiscard']=_0x5b82dc['onDiscard'],this['_onAttributesChange']=_0x5b82dc['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x5b82dc['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 _0x1f2db3=this;for(;_0x1f2db3['previous'];)_0x1f2db3=_0x1f2db3['previous'];return _0x1f2db3;}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'](_0x2a1dab){this['_markerNames']['add'](_0x2a1dab);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x426f44=>this['_model']['markers']['get'](_0x426f44))['filter'](_0x27d9cf=>_0x27d9cf);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x5c83c8=>{for(const _0x386ea9 of this['getMarkers']())_0x5c83c8['removeMarker'](_0x386ea9);}),this['_markerNames']['clear']();}['removeMarker'](_0x3746e8){this['_model']['change'](_0x4ece6d=>{_0x4ece6d['removeMarker'](_0x3746e8);}),this['_markerNames']['delete'](_0x3746e8);}['addRange'](_0x2f36dd){const _0x269fa2='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x269fa2),this['_model']['change'](_0x18d940=>{_0x18d940['addMarker'](_0x269fa2,{'range':_0x2f36dd,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x5ee0b4){for(const _0x62f1eb of this['getRanges']())if(_0x62f1eb['isIntersecting'](_0x5ee0b4))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x6c0588=>_0x6c0588['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x258047,_0x384833)=>[..._0x258047,..._0x384833['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x2b9383=this['getRanges']();if(0x1!=_0x2b9383['length'])return null;const _0x3bddfb=_0x2b9383[0x0],_0x2eb7e1=_0x3bddfb['start']['nodeAfter'],_0x3f7292=_0x3bddfb['end']['nodeBefore'];return _0x2eb7e1 instanceof _0x5e7052?_0x2eb7e1!=_0x3f7292?null:_0x2eb7e1: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 _0x445faf=[];let _0x5cd80e=this['head'];for(;_0x5cd80e;)_0x445faf['push'](_0x5cd80e),_0x5cd80e=_0x5cd80e['next'];return _0x445faf;}['setAttribute'](_0x5a62ea,_0x4d0539){const _0x3abd1e=_0x3ee16e(this['attributes']);_0x2c1bc2(_0x3abd1e,_0x5a62ea,_0x4d0539),_0x1c217d(_0x3abd1e,this['attributes'])||(this['attributes']=_0x3abd1e,this['_onAttributesChange'](_0x3abd1e));}['removeAttribute'](_0x586062){const _0x1291df=_0x3ee16e(this['attributes']);_0x3bf44c(_0x1291df,_0x586062),_0x1c217d(_0x1291df,this['attributes'])||(this['attributes']=_0x1291df,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 _0x1b6899()['substr'](0x1,0x5);}}function c(_0x2d654d,_0x212e37,_0x29b1d3){const _0x2f6d0a=_0x2d654d['t'],t=_0x2d654d['t'];switch(_0x212e37){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',_0x29b1d3);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x29b1d3);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x29b1d3);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x29b1d3);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x29b1d3);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',_0x29b1d3);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x29b1d3);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',_0x29b1d3);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x29b1d3);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x29b1d3);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x29b1d3);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x29b1d3);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x29b1d3);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x29b1d3);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x29b1d3);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x29b1d3);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x29b1d3);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x29b1d3);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x29b1d3);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x29b1d3);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x29b1d3);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x29b1d3);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x29b1d3);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x29b1d3);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'},_0x29b1d3);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x29b1d3);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x29b1d3);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x29b1d3);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x29b1d3);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x29b1d3);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'},_0x29b1d3);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x29b1d3);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x29b1d3);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x29b1d3);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x29b1d3);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'},_0x29b1d3);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x29b1d3);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'},_0x29b1d3);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'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'},_0x29b1d3);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x29b1d3);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'},_0x29b1d3);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x29b1d3);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'},_0x29b1d3);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x29b1d3);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x29b1d3);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'},_0x29b1d3);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x29b1d3);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 _0x2f6d0a({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x29b1d3);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x2f6d0a({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x29b1d3);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x29b1d3);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'},_0x29b1d3);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'},_0x29b1d3);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'},_0x29b1d3);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x212e37;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x567439,_0x158268){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x567439,this['_locale']=_0x158268;}['getDescriptions'](_0x4bc4c3){const _0x3d7689=[],_0x12f977=new Set(),_0x1b9d58=new Set();for(let _0x405b8e=0x0;_0x405b8e<_0x4bc4c3['length'];_0x405b8e++){const _0x3bbf9c=_0x4bc4c3[_0x405b8e];if(!_0x3bbf9c['isInContent'])continue;const _0x3b659b=this['_handleCustomCallbackDescription'](_0x3bbf9c);if(_0x3b659b){if(null!=_0x3bbf9c['subType']){if(_0x12f977['has'](_0x3bbf9c['subType']))continue;_0x12f977['add'](_0x3bbf9c['subType']);}_0x3d7689['push'](_0x3b659b);}else{if('attribute'!=_0x3bbf9c['type'])'insertion'!=_0x3bbf9c['type']&&'deletion'!=_0x3bbf9c['type']||this['_handleInsertRemoveSuggestionDescription'](_0x3d7689,_0x3bbf9c,_0x4bc4c3[_0x405b8e+0x1]);else{const _0x2bd690=_0x3bbf9c['data']['key'];if(_0x1b9d58['has'](_0x2bd690))continue;_0x1b9d58['add'](_0x3bbf9c['data']['key']),_0x2bd690==u?this['_handleRenameSuggestionDescription'](_0x3d7689,_0x3bbf9c):this['_handleAttributeSuggestionDescription'](_0x3d7689,_0x3bbf9c);}}}return this['_resolveDescriptionItems'](_0x3d7689);}['registerDescriptionCallback'](_0x1b6d64){this['_customCallbacks']['push'](_0x1b6d64);}['registerElementLabel'](_0x4766ea,_0x9b8513,_0x4a3d78=_0x44647c['normal']){'function'==typeof _0x4766ea?_0xc9a975(this['_itemLabelsCallbacks'],{'matchingCallback':_0x4766ea,'label':_0x9b8513,'priority':_0x4a3d78}):this['_itemLabels']['set'](_0x4766ea,_0x9b8513);}['registerAttributeLabel'](_0x179fd3,_0x1d409c){this['_attributeLabels']['set'](_0x179fd3,_0x1d409c);}['getItemLabel'](_0x7ec024,_0x8c5b03=0x1){let _0x348e89;for(const _0x219f3a of this['_itemLabelsCallbacks'])if(_0x219f3a['matchingCallback'](_0x7ec024)){_0x348e89=_0x219f3a['label'];break;}return _0x348e89||(_0x348e89=this['_itemLabels']['get'](_0x7ec024['name'])),_0x348e89?_0x348e89(_0x8c5b03):0x1!==_0x8c5b03?_0x8c5b03+'\x20'+_0x7ec024['name']+'s':''+_0x7ec024['name'];}['_addDescriptionItems'](_0x5cc2b4,_0x338c4e){const _0x4afea3=_0x338c4e['getFirstRange']()['getWalker'](),_0x485943='insertion'==_0x338c4e['type']?'add':'remove';for(const _0x87ed6d of _0x4afea3){const _0x30ee52=_0x87ed6d['item'],_0xb571a2=_0x5cc2b4[_0x5cc2b4['length']-0x1];if(_0x30ee52['is']('$textProxy'))_0xb571a2&&_0xb571a2['type']['indexOf']('Container')>-0x1&&_0x5cc2b4['pop'](),_0xb571a2&&'text'==_0xb571a2['type']?_0xb571a2[_0x485943]+=_0x30ee52['data']:_0x5cc2b4['push']({'type':'text','add':'add'==_0x485943?_0x30ee52['data']:'','remove':'remove'==_0x485943?_0x30ee52['data']:''});else{if(this['_schema']['isObject'](_0x30ee52)){const _0x44f2aa=_0x30ee52;if(_0xb571a2&&_0xb571a2['type']['indexOf']('Container')>-0x1&&_0x5cc2b4['pop'](),'elementEnd'==_0x87ed6d['type'])continue;_0xb571a2&&_0xb571a2['type']==_0x485943+'Object'&&_0xb571a2['element']['name']==_0x44f2aa['name']?_0xb571a2['quantity']++:_0x5cc2b4['push']({'type':_0x485943+'Object','element':_0x44f2aa,'quantity':0x1}),_0x4afea3['skip'](_0x3ad371=>!('elementEnd'==_0x3ad371['type']&&_0x3ad371['item']==_0x30ee52));}else{if(this['_schema']['checkChild'](_0x30ee52,'$text')||_0x30ee52['is']('element','softBreak')){const _0x84f8a6=_0x30ee52;if('add'==_0x485943&&'elementStart'==_0x87ed6d['type']||'remove'==_0x485943&&'elementEnd'==_0x87ed6d['type'])continue;if(_0xb571a2&&-0x1==_0xb571a2['type']['indexOf']('Container')){'text'==_0xb571a2['type']&&(_0xb571a2[_0x485943]+='\x0a');continue;}let _0x3d4ce7;if(_0x3d4ce7='add'==_0x485943?_0x84f8a6['nextSibling']&&!this['_schema']['isObject'](_0x84f8a6['nextSibling'])?_0x84f8a6['nextSibling']:null:_0x84f8a6['previousSibling']&&!this['_schema']['isObject'](_0x84f8a6['previousSibling'])?_0x84f8a6['previousSibling']:null,_0x84f8a6['isEmpty']||_0x3d4ce7&&_0x3d4ce7['isEmpty']){const _0x22e926=_0x3d4ce7&&_0x3d4ce7['isEmpty']?_0x3d4ce7:_0x84f8a6;_0xb571a2&&_0xb571a2['type']==_0x485943+'EmptyContainer'&&_0xb571a2['element']['name']==_0x22e926['name']?_0xb571a2['quantity']++:_0x5cc2b4['push']({'type':_0x485943+'EmptyContainer','element':_0x22e926,'quantity':0x1});}else _0x5cc2b4['push']({'type':_0x485943+'Container','element':_0x84f8a6});}}}}}['_resolveDescriptionItems'](_0x415d6e){const _0x4a196a=this['_locale'],_0x10bef5=[],_0x123c4e=[],_0x5a7313=[];for(const _0x3cdb39 of _0x415d6e)switch(_0x3cdb39['type']){case'text':if(_0x3cdb39['add']=_0x3cdb39['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x3cdb39['remove']=_0x3cdb39['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x3cdb39['add']&&''!=_0x3cdb39['remove']){_0x10bef5['push']({'type':'replace','content':c(_0x4a196a,'REPLACE_TEXT',['\x22'+_0x3cdb39['remove']+'\x22','\x22'+_0x3cdb39['add']+'\x22'])});continue;}if(null!=_0x3cdb39['add']['match'](/^ +$/)){_0x10bef5['push']({'type':'insertion','content':c(_0x4a196a,'*Insert:*\x20%0',c(_0x4a196a,'ELEMENT_SPACE',_0x3cdb39['add']['length']))});continue;}if(null!=_0x3cdb39['remove']['match'](/^ +$/)){_0x10bef5['push']({'type':'deletion','content':c(_0x4a196a,'*Remove:*\x20%0',c(_0x4a196a,'ELEMENT_SPACE',_0x3cdb39['remove']['length']))});continue;}if(''!=_0x3cdb39['add']){_0x10bef5['push']({'type':'insertion','content':c(_0x4a196a,'*Insert:*\x20%0','\x22'+_0x3cdb39['add']+'\x22')});continue;}_0x10bef5['push']({'type':'deletion','content':c(_0x4a196a,'*Remove:*\x20%0','\x22'+_0x3cdb39['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x10bef5['push']({'type':'insertion','content':c(_0x4a196a,'*Insert:*\x20%0',this['getItemLabel'](_0x3cdb39['element'],_0x3cdb39['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x10bef5['push']({'type':'deletion','content':c(_0x4a196a,'*Remove:*\x20%0',this['getItemLabel'](_0x3cdb39['element'],_0x3cdb39['quantity']))});continue;case'addContainer':_0x10bef5['push']({'type':'insertion','content':c(_0x4a196a,'*Split:*\x20%0',this['getItemLabel'](_0x3cdb39['element'],_0x3cdb39['quantity']))});continue;case'removeContainer':_0x10bef5['push']({'type':'deletion','content':c(_0x4a196a,'*Merge:*\x20%0',this['getItemLabel'](_0x3cdb39['element'],_0x3cdb39['quantity']))});continue;case'addFormat':_0x123c4e['push'](_0x3cdb39['key']);continue;case'removeFormat':_0x5a7313['push'](_0x3cdb39['key']);continue;default:_0x10bef5['push'](_0x3cdb39);}if(_0x123c4e['length']){const _0x54ce78=_0x123c4e['map'](_0x76bf45=>this['_attributeLabels']['has'](_0x76bf45)?this['_attributeLabels']['get'](_0x76bf45):_0x76bf45)['join'](',\x20');_0x10bef5['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x54ce78)});}if(_0x5a7313['length']){const _0x42ac78=_0x5a7313['map'](_0x138f3d=>this['_attributeLabels']['has'](_0x138f3d)?this['_attributeLabels']['get'](_0x138f3d):_0x138f3d)['join'](',\x20');_0x10bef5['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x42ac78)});}return _0x10bef5;}['_handleCustomCallbackDescription'](_0x31798c){for(const _0x175220 of this['_customCallbacks']){const _0x423ed5=_0x175220(_0x31798c);if(_0x423ed5&&'type'in _0x423ed5)return _0x423ed5;}}['_handleAttributeSuggestionDescription'](_0xdf20,_0x3a826e){const _0xda1088=_0x3a826e['data'],_0x4e333e=void 0x0===_0xda1088['newValue']?'removeFormat':'addFormat';_0xdf20['push']({'type':_0x4e333e,'key':_0xda1088['key']});}['_handleRenameSuggestionDescription'](_0x29bbe8,_0x4b6542){_0x29bbe8['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x4b6542['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x4afb65,_0x3f8b77,_0x4b5217){if(this['_addDescriptionItems'](_0x4afb65,_0x3f8b77),_0x4b5217&&_0x4b5217['getFirstRange']()&&!_0x3f8b77['getFirstRange']()['end']['isEqual'](_0x4b5217['getFirstRange']()['start'])){const _0x2262f3=_0x4afb65[_0x4afb65['length']-0x1],_0x143ce4='insertion'==_0x3f8b77['type']?'add':'remove';_0x2262f3&&'text'==_0x2262f3['type']&&(_0x2262f3[_0x143ce4]+='\x0a');}}}class U extends _0x32ae11{['afterInit'](){const _0x1e1893=this['editor'],_0x8e4575=_0x1e1893['plugins']['get']('TrackChangesEditing');_0x1e1893['commands']['get']('showAIAssistant')&&_0x8e4575['enableCommand']('showAIAssistant');}}class V extends _0x32ae11{['afterInit'](){const _0x325826=this['editor'],_0x1b1265=_0x325826['locale'];if(!_0x325826['plugins']['has']('AlignmentEditing'))return;const _0x583dcc=_0x325826['plugins']['get']('TrackChangesEditing');_0x583dcc['enableDefaultAttributesIntegration']('alignment'),_0x583dcc['registerBlockAttribute']('alignment'),_0x583dcc['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x1b1265,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4af30d=this['editor'],_0x20835b=_0x4af30d['locale'];_0x4af30d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x16bfd6=>{if('formatBlock'!=_0x16bfd6['type'])return;const {data:_0x5e2c0b}=_0x16bfd6;if(_0x5e2c0b&&'alignment'==_0x5e2c0b['commandName']){const _0x5d4f45=_0x5e2c0b['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x20835b,'*Format:*\x20%0',function(_0x2d0799){switch(_0x2d0799){case'left':return c(_0x20835b,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x20835b,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x20835b,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x20835b,'FORMAT_JUSTIFY_TEXT');}}(_0x5d4f45))};}});}}const Yt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x32ae11{['afterInit'](){const _0x369f22=this['editor'],_0x31d9b4=_0x369f22['plugins']['get']('TrackChangesEditing'),_0xd51ed9=_0x369f22['locale'];for(const _0x4c3d1f of Yt){if(!_0x369f22['plugins']['has'](_0x4c3d1f))continue;const _0xcc8937=_0x4c3d1f['slice'](0x0,-0x7)['toLowerCase'](),_0x2cb944='FORMAT_'+_0xcc8937['toUpperCase']();_0x31d9b4['enableDefaultAttributesIntegration'](_0xcc8937),_0x31d9b4['registerInlineAttribute'](_0xcc8937),_0x31d9b4['descriptionFactory']['registerAttributeLabel'](_0xcc8937,c(_0xd51ed9,_0x2cb944));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x468fa0=this['editor'],_0x4eadae=_0x468fa0['locale'],_0x1a1b27=_0x468fa0['plugins']['get']('TrackChangesEditing');function _0x2b5844(_0x4f2de6,_0x3c3073){_0x1a1b27['descriptionFactory']['registerDescriptionCallback'](_0x5cfb13=>{if('formatInline'!=_0x5cfb13['type'])return;const {data:_0x24869f}=_0x5cfb13;return _0x24869f&&_0x24869f['commandName']===_0x4f2de6?_0x24869f['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x4eadae,'*Format:*\x20%0',_0x3c3073)}:{'type':'format','content':c(_0x4eadae,'*Remove\x20format:*\x20%0',_0x3c3073)}:void 0x0;});}_0x2b5844('bold',c(_0x4eadae,'FORMAT_BOLD')),_0x2b5844('italic',c(_0x4eadae,'FORMAT_ITALIC')),_0x2b5844('underline',c(_0x4eadae,'FORMAT_UNDERLINE')),_0x2b5844('code',c(_0x4eadae,'FORMAT_CODE')),_0x2b5844('strikethrough',c(_0x4eadae,'FORMAT_STRIKETHROUGH')),_0x2b5844('subscript',c(_0x4eadae,'FORMAT_SUBSCRIPT')),_0x2b5844('superscript',c(_0x4eadae,'FORMAT_SUPERSCRIPT'));}}class G extends _0x32ae11{['afterInit'](){const _0x54bf39=this['editor'],_0x3e80a6=_0x54bf39['locale'];if(!_0x54bf39['plugins']['has']('BlockQuoteEditing'))return;const _0x145571=_0x54bf39['plugins']['get']('TrackChangesEditing'),_0x2b7376=this['editor']['commands']['get']('blockQuote');_0x145571['enableCommand']('blockQuote',(_0x4d9423,_0x203299={})=>{const _0x31fcd0=this['editor']['model']['document']['selection'],_0x218944=_0x203299&&void 0x0!==_0x203299['forceValue']?_0x203299['forceValue']:!_0x2b7376['value'];let _0x255b8f=[];if(_0x218944){const _0x51bfa7=Array['from'](_0x31fcd0['getSelectedBlocks']())['filter'](_0x3bf8ed=>to(_0x3bf8ed)||function(_0x4eddd3,_0x4e28de){const _0x320800=_0x4e28de['checkChild'](_0x4eddd3['parent'],'blockQuote'),_0x28bbca=_0x4e28de['checkChild'](['$root','blockQuote'],_0x4eddd3);return _0x320800&&_0x28bbca;}(_0x3bf8ed,this['editor']['model']['schema']));_0x255b8f=Zt(_0x51bfa7,_0x54bf39['model']);}else{const _0x2d9b93=Array['from'](_0x31fcd0['getSelectedBlocks']())['filter'](_0x28d972=>to(_0x28d972));_0x255b8f=Zt(_0x2d9b93,_0x54bf39['model']);}_0x54bf39['model']['change'](()=>{for(const _0x14c5e3 of _0x255b8f)_0x145571['markBlockFormat'](_0x14c5e3,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x218944}]});});}),_0x145571['descriptionFactory']['registerDescriptionCallback'](_0x2fd59f=>{const {data:_0x389170}=_0x2fd59f;if(_0x389170&&'blockQuote'==_0x389170['commandName']){const _0x506879=c(_0x3e80a6,'ELEMENT_BLOCK_QUOTE');return _0x389170['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x3e80a6,'*Set\x20format:*\x20%0',_0x506879)}:{'type':'format','content':c(_0x3e80a6,'*Remove\x20format:*\x20%0',_0x506879)};}});}}function to(_0x13974e){return'blockQuote'==_0x13974e['parent']['name'];}class L extends _0x32ae11{['afterInit'](){const _0x35f5bb=this['editor'],_0xb62726=_0x35f5bb['locale'],_0x426391=_0x35f5bb['plugins']['get']('TrackChangesEditing');_0x35f5bb['plugins']['has']('BookmarkEditing')&&(_0x426391['enableCommand']('insertBookmark'),_0x426391['enableDefaultAttributesIntegration']('updateBookmark'),_0x426391['registerBlockAttribute']('bookmarkId'),_0x426391['descriptionFactory']['registerDescriptionCallback'](_0x1d8259=>{if('insertion'!=_0x1d8259['type']&&'deletion'!=_0x1d8259['type']&&'attribute'!=_0x1d8259['type'])return;const _0x50599f=_0x1d8259['getContainedElement']();if(null==_0x50599f)return;if(!_0x50599f['is']('element','bookmark'))return;const _0x597a78=_0x50599f['getAttribute']('bookmarkId');if('insertion'==_0x1d8259['type'])return{'type':'insertion','content':c(_0xb62726,'*Insert:*\x20%0','\x22'+_0x597a78+'\x22\x20'+c(_0xb62726,'ELEMENT_BOOKMARK'))};if('deletion'==_0x1d8259['type'])return{'type':'deletion','content':c(_0xb62726,'*Remove:*\x20%0','\x22'+_0x597a78+'\x22\x20'+c(_0xb62726,'ELEMENT_BOOKMARK'))};const {data:_0x36e9d3}=_0x1d8259;if(!_0x36e9d3||'bookmarkId'!=_0x36e9d3['key'])return;return{'type':'format','content':c(_0xb62726,'*Set\x20bookmark:*\x20%0','\x22'+_0x36e9d3['newValue']+'\x22')};}));}}class J extends _0x32ae11{['afterInit'](){const _0x3f08c4=this['editor'];_0x3f08c4['plugins']['has']('CaseChange')&&(_0x3f08c4['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3f08c4['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3f08c4['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x32ae11{['afterInit'](){const _0x39b943=this['editor'];_0x39b943['commands']['get']('ckbox')&&_0x39b943['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x32ae11{['afterInit'](){const _0x1f0067=this['editor'];if(!_0x1f0067['plugins']['has']('CodeBlock'))return;const _0x8b2bd6=_0x1f0067['plugins']['get']('TrackChangesEditing'),_0x2fe5f1=_0x1f0067['locale'],_0x26688e=_0x1f0067['config']['get']('codeBlock')['languages'],_0x151277=_0x1f0067['commands']['get']('codeBlock');_0x8b2bd6['enableCommand']('indentCodeBlock'),_0x8b2bd6['enableCommand']('outdentCodeBlock'),_0x8b2bd6['enableCommand']('codeBlock',(_0x31666f,_0x49f8f6={})=>{const _0x477a14=_0x1f0067['model'],_0x3182df=_0x1f0067['model']['document']['selection'],_0xaab6a6=_0x49f8f6&&void 0x0!==_0x49f8f6['forceValue']?_0x49f8f6['forceValue']:!_0x151277['value'];let _0x23c06f;_0x49f8f6['language']||(_0x49f8f6['language']=_0x26688e[0x0]['language']),_0x23c06f=_0xaab6a6?Array['from'](_0x3182df['getSelectedBlocks']())['filter'](_0x480f65=>oo(_0x480f65)||function(_0x13302b,_0x2dd7b3){if(_0x13302b['is']('rootElement')||_0x2dd7b3['isLimit'](_0x13302b))return!0x1;return _0x2dd7b3['checkChild'](_0x13302b['parent'],'codeBlock');}(_0x480f65,_0x477a14['schema'])):Array['from'](_0x3182df['getSelectedBlocks']())['filter'](_0x45864f=>oo(_0x45864f));const _0x1415bf=Zt(_0x23c06f,_0x477a14);_0x477a14['change'](()=>{for(const _0x42cd36 of _0x1415bf)_0x8b2bd6['markBlockFormat'](_0x42cd36,{'commandName':'codeBlock','commandParams':[{..._0x49f8f6,'forceValue':_0xaab6a6}],'formatGroupId':'blockName'});});}),(_0x8b2bd6['descriptionFactory']['registerElementLabel']('codeBlock',_0x3cb519=>c(_0x2fe5f1,'ELEMENT_CODE_BLOCK',_0x3cb519)),_0x8b2bd6['descriptionFactory']['registerDescriptionCallback'](_0x400474=>{if('formatBlock'!=_0x400474['type'])return;const _0x8fd06a=_0x2fe5f1['t'],{data:_0x29d9d8}=_0x400474;if(!_0x29d9d8||'codeBlock'!=_0x29d9d8['commandName'])return;const _0x399378=_0x29d9d8['commandParams'][0x0]['language'],_0x50aa03=_0x8fd06a(_0x26688e['find'](_0x113eaa=>_0x113eaa['language']===_0x399378)['label'])['toLowerCase']();return _0x29d9d8['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x2fe5f1,'*Set\x20format:*\x20%0',c(_0x2fe5f1,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x50aa03+')')}:{'type':'format','content':c(_0x2fe5f1,'*Remove\x20format:*\x20%0',c(_0x2fe5f1,'ELEMENT_CODE_BLOCK',0x1))};}));}}function oo(_0x14887a){return'codeBlock'==_0x14887a['name'];}class q extends _0x32ae11{['afterInit'](){const _0x4f1a56=this['editor'];if(!_0x4f1a56['plugins']['has']('CommentsEditing'))return;_0x4f1a56['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x524489,_0x469308,_0x9c084){const _0xad16e0=[];for(const _0x498858 of _0x469308['getItems']())_0x498858['hasAttribute'](_0x524489)&&_0xad16e0['push'](_0x9c084['createRangeOn'](_0x498858));return _0xad16e0;}function De(_0x1d7cda,_0x50e5b9,{showActiveMarker:_0x374e88=!0x0}={}){const _0x496df8=_0x1d7cda['plugins']['get']('TrackChangesEditing');return(_0x3711bc,_0x445ee4,_0x113388)=>{if(!_0x113388['consumable']['test'](_0x445ee4['markerRange'],_0x3711bc['name']))return;const _0x274478=_0x445ee4['markerRange']['getWalker'](),_0xe00ce2=_0x445ee4['markerRange']['start'],_0x321061=_0x1d7cda['model']['schema'];let _0x2c8e7a=null,_0x584dfb=null,_0x11ff20=!0x1,_0x11f8ef=!0x1;for(const _0x548fd8 of _0x274478){const _0x295bc8=_0x548fd8['item'];_0x11ff20=_0x11ff20||_0x321061['isContent'](_0x295bc8);const _0x2ce7fa=_0x113388['mapper']['toViewElement'](_0x295bc8);if(_0x2ce7fa&&_0x2ce7fa['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x548fd8['type']&&(_0x321061['isBlock'](_0x295bc8)&&!_0x321061['isLimit'](_0x295bc8)&&(_0x295bc8['nextSibling']||_0xe00ce2['isAtEnd']?_0x2c8e7a&&_0x2c8e7a['parent']==_0x295bc8||(_0x2c8e7a=_0x295bc8,_0x150910(_0x548fd8['previousPosition']),_0x11f8ef=!0x0):_0x584dfb=_0x584dfb||_0x548fd8['previousPosition']));}function _0x150910(_0x420daf){const {authorId:_0x2350a2}=_0x496df8['_splitMarkerName'](_0x445ee4['markerName']),_0x88a558=_0x113388['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x50e5b9,'data-author-id':_0x2350a2}),_0x4c8f03=_0x113388['mapper']['toViewPosition'](_0x420daf);_0x374e88&&_0x496df8['activeMarkers']['includes'](_0x445ee4['markerName'])&&_0x113388['writer']['addClass']('ck-suggestion-marker--active',_0x88a558),_0x113388['writer']['insert'](_0x4c8f03,_0x88a558),_0x113388['mapper']['bindElementToMarker'](_0x88a558,_0x445ee4['markerName']);}_0x11ff20||_0x11f8ef||!_0x584dfb||_0x150910(_0x584dfb);};}class z extends _0x32ae11{static get['requires'](){return[_0x19a3a7];}['init'](){const _0x1e136b=this['editor'],_0x8f0474=_0x1e136b['plugins']['get']('TrackChangesEditing');_0x8f0474['enableCommand']('delete');const _0x25cc02=_0x1e136b['commands']['get']('deleteForward');_0x8f0474['enableCommand']('deleteForward',(_0x297345,_0x2b255f={})=>{const _0x47bd81=_0x1e136b['model']['createSelection'](_0x1e136b['model']['document']['selection']);_0x47bd81['isCollapsed']&&_0x1e136b['model']['modifySelection'](_0x47bd81,{'direction':'forward','unit':_0x2b255f['unit']});const _0x5619f6=_0x47bd81['getFirstRange'](),_0x3bf53e=_0x54bc73['fromRange'](_0x5619f6);let _0x1516b6;_0x297345(_0x2b255f),_0x1516b6='$graveyard'==_0x3bf53e['root']['rootName']?_0x1e136b['model']['createRange'](_0x5619f6['start']):_0x1e136b['model']['createRange'](_0x3bf53e['start'],_0x3bf53e['end']),_0x3bf53e['detach'](),_0x1e136b['model']['enqueueChange'](_0x25cc02['buffer']['batch'],_0x1bccd0=>{_0x25cc02['buffer']['lock'](),_0x1bccd0['setSelection'](_0x1bccd0['createRange'](_0x1516b6['end'])),_0x25cc02['buffer']['unlock']();});}),_0x1e136b['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x1e136b,'merge'),{'priority':'high'}),_0x1e136b['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x2119ff,_0x163061,_0xbda3ca)=>{_0xbda3ca['options']['showSuggestionHighlights']&&De(_0x1e136b,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x2119ff,_0x163061,_0xbda3ca);},{'priority':'high'}),_0x1e136b['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x209318,_0x5db102,_0x33b318)=>{const _0x4c10b6=_0x33b318['mapper']['markerNameToElements'](_0x5db102['markerName']);if(_0x4c10b6){for(const _0x33b7e2 of _0x4c10b6)_0x33b7e2['is']('uiElement')&&(_0x33b318['mapper']['unbindElementFromMarkerName'](_0x33b7e2,_0x5db102['markerName']),_0x33b318['writer']['remove'](_0x33b7e2));}},{'priority':'high'});}}class W extends _0x32ae11{['afterInit'](){const _0x40903e=this['editor'];if(!_0x40903e['plugins']['has']('ListEditing'))return;const _0x238109=_0x40903e['locale'],_0x3d574b=_0x40903e['plugins']['get']('TrackChangesEditing'),_0xdf7235=_0x40903e['plugins']['has']('TodoListEditing'),_0x347f83=!!_0x40903e['config']['get']('list.multiBlock');function _0x3b65fc(_0x51c4b8){return{'type':'format','content':''+c(_0x238109,'*Set\x20format:*\x20%0',_0x51c4b8)};}function _0x3b5efd(_0x5c6762){return{'type':'format','content':''+c(_0x238109,'*Remove\x20format:*\x20%0',_0x5c6762)};}_0x3d574b['enableDefaultAttributesIntegration']('numberedList'),_0x3d574b['enableDefaultAttributesIntegration']('bulletedList'),_0x3d574b['enableDefaultAttributesIntegration']('customNumberedList'),_0x3d574b['enableDefaultAttributesIntegration']('customBulletedList'),_0x3d574b['enableDefaultAttributesIntegration']('indentList'),_0x3d574b['enableDefaultAttributesIntegration']('outdentList'),_0x3d574b['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x3d574b['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x3d574b['registerBlockAttribute']('listItemId'),_0x3d574b['registerBlockAttribute']('listType'),_0x3d574b['registerBlockAttribute']('listIndent'),_0x347f83&&(_0x3d574b['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x3d574b['enableDefaultAttributesIntegration']('mergeListItemForward')),_0xdf7235&&(_0x3d574b['enableDefaultAttributesIntegration']('todoList'),_0x3d574b['enableDefaultAttributesIntegration']('checkTodoList'),_0x3d574b['registerBlockAttribute']('todoListChecked'),_0x3d574b['descriptionFactory']['registerDescriptionCallback'](_0x260363=>{const {data:_0x4bf54c}=_0x260363;if(_0x4bf54c&&'todoListChecked'==_0x4bf54c['key'])return{'type':'format','content':_0x4bf54c['newValue']?c(_0x238109,'*Check\x20item*'):c(_0x238109,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x58edc7=>{if(_0x58edc7['batch']['isUndo'])return!0x1;let _0x3b45ad=!0x1;const _0x41c172=_0x3d574b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xe213fa=>'todoListChecked'===_0x3d574b['_getAttributeKey'](_0xe213fa));for(const _0x1d77cf of _0x41c172){'todo'!=_0x1d77cf['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x3d574b['_findSuggestions'](_0x1d77cf['getFirstRange'](),'attribute')['find'](_0xa49102=>'listType'===_0x3d574b['_getAttributeKey'](_0xa49102['suggestion']))||(_0x58edc7['removeMarker'](_0x1d77cf['getFirstMarker']()),_0x3b45ad=!0x0));}return _0x3b45ad;})),_0x3d574b['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x238109,'FORMAT_INDENT'));const _0x3ff8b1={'type':'format','content':''};_0x3d574b['descriptionFactory']['registerDescriptionCallback'](_0x5e595c=>{const {data:_0x4adefa}=_0x5e595c;if(!_0x4adefa||'listType'!=_0x4adefa['key'])return;let _0x5cf5ea=_0x5e595c['head'];for(;_0x5cf5ea;){if(_0x5cf5ea['data']&&(('listStyle'==_0x5cf5ea['data']['key']||'listMarkerStyle'==_0x5cf5ea['data']['key'])&&(_0x5cf5ea['data']['newValue']&&'default'!=_0x5cf5ea['data']['newValue']||'default'!=_0x5cf5ea['data']['oldValue']&&!_0x4adefa['newValue'])||!_0x347f83&&_0x5cf5ea['data']['key']==u))return _0x3ff8b1;_0x5cf5ea=_0x5cf5ea['next'];}if(null==_0x4adefa['newValue'])switch(_0x4adefa['oldValue']){case'bulleted':return _0x3b5efd(c(_0x238109,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3b5efd(c(_0x238109,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3b5efd(c(_0x238109,'ELEMENT_TODO_LIST'));}switch(_0x4adefa['newValue']){case'bulleted':return _0x3b65fc(c(_0x238109,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3b65fc(c(_0x238109,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3b65fc(c(_0x238109,'ELEMENT_TODO_LIST'));}}),_0x3d574b['descriptionFactory']['registerDescriptionCallback'](_0x55828c=>{const {data:_0x486b6f}=_0x55828c;if(_0x486b6f&&'listIndent'==_0x486b6f['key'])return null==_0x486b6f['newValue']||null==_0x486b6f['oldValue']&&0x0==_0x486b6f['newValue']?_0x3ff8b1:void 0x0;}),_0x3d574b['descriptionFactory']['registerDescriptionCallback'](_0x21d860=>{if('attribute'!=_0x21d860['type'])return;const {data:_0x4e18d8}=_0x21d860;if(!_0x4e18d8||'listItemId'!=_0x4e18d8['key'])return;const _0x1ab6e4=Te(_0x21d860);return'newValue'==_0x1ab6e4?{'type':'format','content':c(_0x238109,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1ab6e4?{'type':'format','content':c(_0x238109,'*Split:*\x20list\x20item')}:_0x3ff8b1;}),_0x40903e['model']['document']['registerPostFixer'](_0x50c2a0=>this['listItemIdFixer'](_0x50c2a0)),_0x40903e['model']['document']['registerPostFixer'](_0x241e85=>this['noTrackChangesFixer'](_0x241e85)),_0x40903e['model']['document']['on']('change:data',(_0x4170ee,_0x33f748)=>{if(_0x33f748['isUndo']||!_0x33f748['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x56a482){if(_0x56a482['batch']['isUndo']||!_0x56a482['batch']['isLocal'])return!0x1;let _0x10ef1a=!0x1;const _0x31197d=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3e3044=>_0x3e3044['data']&&'listItemId'==_0x3e3044['data']['key'])['filter'](_0x4978b5=>_0x4978b5['data']['newValue']&&_0x4978b5['data']['oldValue']);for(const _0x138df1 of _0x31197d)Te(_0x138df1)||(_0x56a482['removeMarker'](_0x138df1['getFirstMarker']()),_0x10ef1a=!0x0);return _0x10ef1a;}['noTrackChangesFixer'](_0x5938fa){if(_0x5938fa['batch']['isUndo']||!_0x5938fa['batch']['isLocal'])return!0x1;const _0x350b94=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x350b94['trackChangesCommand']['value'])return!0x1;let _0x4c436a=!0x1;const _0x10a687=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x97747c=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x584fa4=>'attribute'==_0x584fa4['type'])['filter'](_0x3b455a=>_0x10a687['includes'](_0x3b455a['attributeKey']));if(0x0==_0x97747c['length'])return _0x4c436a;for(const _0x22f52f of _0x97747c){const _0x32a5a1=_0x350b94['_findSuggestions'](_0x22f52f['range'],'attribute')['filter'](_0xd89ad0=>!_0xd89ad0['meta']['isNextTo'])['map'](_0x46274a=>_0x46274a['suggestion'])['filter'](_0x16a4d9=>{const _0x121140=_0x350b94['_getAttributeKey'](_0x16a4d9);return _0x10a687['includes'](_0x121140);});if(_0x32a5a1['length']){for(const _0x223d2a of _0x32a5a1)_0x5938fa['removeMarker'](_0x223d2a['getFirstMarker']());_0x4c436a=!0x0;}}return _0x4c436a;}['assureChains'](){const _0x2b999a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5dd41a=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x59704a;const _0x2259f2=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x434850=>{if(_0x434850['data']['oldRange']||!_0x434850['data']['newRange'])return null;if(!_0x434850['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x2ee248}=_0x2b999a['_splitMarkerName'](_0x434850['name']);if(!_0x2b999a['hasSuggestion'](_0x2ee248))return null;const _0x4251cd=_0x2b999a['getSuggestion'](_0x2ee248);return _0x5dd41a['includes'](_0x4251cd['data']['key']);})['map'](_0x517b99=>{const {id:_0x36aabd}=_0x2b999a['_splitMarkerName'](_0x517b99['name']),_0x5526c1=_0x2b999a['getSuggestion'](_0x36aabd);return _0x59704a=_0x5526c1['attributes']['groupId'],_0x5526c1['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x2259f2['size'])return;const _0x5e76ec=_0x2b999a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xc2ca71=>'attribute'==_0xc2ca71['type']&&_0xc2ca71['data']&&_0x5dd41a['includes'](_0xc2ca71['data']['key'])&&_0xc2ca71['attributes']['groupId']!=_0x59704a)['map'](_0x27b2fb=>({'listItem':_0x27b2fb['getFirstRange']()['start']['nodeAfter'],'groupId':_0x27b2fb['attributes']['groupId']})),_0x20c423=new Set();for(const {groupId:_0x4a4153,listItem:_0xba1fde}of _0x5e76ec)_0x2259f2['has'](_0xba1fde)&&_0x20c423['add'](_0x4a4153);for(const _0x41a9f8 of _0x2b999a['getSuggestions']())_0x20c423['has'](_0x41a9f8['attributes']['groupId'])&&_0x41a9f8['setAttribute']('groupId',_0x59704a);}['_supportLegacySuggestions'](){const _0x23b0d9=this['editor'],_0x14d953=_0x23b0d9['locale'],_0x1b5db5=_0x23b0d9['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x1b5db5['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x1aa6b8,_0x39951d){const _0x3f3118=[];for(let _0xc58029 of _0x1aa6b8)_0xc58029['start']['nodeAfter']===_0xc58029['end']['parent']&&(_0xc58029=_0x23b0d9['model']['createRange'](_0x23b0d9['model']['createPositionAt'](_0xc58029['start']['nodeAfter'],0x0))),_0x3f3118['push'](_0xc58029);_0x23b0d9['model']['change'](_0x48e06d=>{const _0x87c478=_0x23b0d9['model']['document']['selection'],_0xc70c75=Array['from'](_0x87c478['getRanges']())['map'](_0x5e6704=>_0x54bc73['fromRange'](_0x5e6704));_0x48e06d['setSelection'](_0x3f3118),_0x23b0d9['commands']['get'](_0x39951d['commandName'])['refresh'](),_0x39951d['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x23b0d9['execute'](_0x39951d['commandName'],..._0x39951d['commandParams']),_0x48e06d['setSelection'](_0xc70c75);for(const _0x3b1c83 of _0xc70c75)_0x3b1c83['detach']();});}),_0x1b5db5['descriptionFactory']['registerElementLabel'](function(_0x58b0c9){const _0x24689e=!_0x23b0d9['model']['schema']['isObject'](_0x58b0c9),_0x155828=_0x58b0c9['previousSibling'],_0x25ad26=_0x58b0c9['nextSibling'],_0x3ff515=_0x58b0c9['getAttribute']('listItemId'),_0x58b0d6=!_0x155828||_0x155828['getAttribute']('listItemId')!==_0x3ff515,_0x5b9bd7=!_0x25ad26||_0x25ad26['getAttribute']('listItemId')!==_0x3ff515;return _0x24689e&&Boolean(_0x3ff515)&&_0x58b0d6&&_0x5b9bd7;},_0x1233e7=>c(_0x14d953,'ELEMENT_LIST_ITEM',_0x1233e7));}['_registerLegacyDescription'](){const _0x262263=this['editor'],_0x506f47=_0x262263['locale'];function _0x1dcf32(_0x4063e3){const _0x57e980=_0x262263['commands']['get']('bulletedList')['value'],_0x1560f3=_0x262263['commands']['get']('numberedList')['value'];return'numberedList'===_0x4063e3?_0x57e980:_0x1560f3;}_0x262263['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x4bf3e1){if('formatBlock'!=_0x4bf3e1['type'])return;const {data:_0x4aceb1}=_0x4bf3e1;if(!_0x4aceb1)return;let _0x48c75d,_0x554509,_0x4e8be0,_0x3f48e1;switch(_0x4aceb1['commandName']){case'bulletedList':_0x4e8be0=_0x4aceb1['commandParams'][0x0]['forceValue'],_0x3f48e1=_0x1dcf32(_0x4aceb1['commandName']),_0x48c75d=_0x4e8be0?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3f48e1&&_0x262263['config']['get']('list.multiBlock')||(_0x48c75d='*Change\x20to:*\x20%0'),_0x554509={'type':'format','content':c(_0x506f47,_0x48c75d,c(_0x506f47,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x4e8be0=_0x4aceb1['commandParams'][0x0]['forceValue'],_0x3f48e1=_0x1dcf32(_0x4aceb1['commandName']),_0x48c75d=_0x4e8be0?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3f48e1&&_0x262263['config']['get']('list.multiBlock')||(_0x48c75d='*Change\x20to:*\x20%0'),_0x554509={'type':'format','content':c(_0x506f47,_0x48c75d,c(_0x506f47,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x48c75d='*Indent:*\x20%0',_0x554509={'type':'format','content':c(_0x506f47,_0x48c75d,c(_0x506f47,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x48c75d=function(_0x3e76d4){const _0x466a55=_0x3e76d4['getFirstRange']();let _0x35b55a=_0x466a55['start']['nodeAfter'];for(;_0x35b55a&&_0x466a55['containsItem'](_0x35b55a);){if(_0x35b55a['getAttribute']('listIndent')>0x0)return!0x1;_0x35b55a=_0x35b55a['nextSibling'];}return!0x0;}(_0x4bf3e1)?c(_0x506f47,'*Format:*\x20remove\x20from\x20%0',c(_0x506f47,function(_0x476af5){return'ELEMENT_'+_0x476af5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4bf3e1))):c(_0x506f47,'*Outdent:*\x20%0',c(_0x506f47,'ELEMENT_LIST_ITEM')),_0x554509={'type':'format','content':_0x48c75d};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x4aceb1['multipleBlocks']&&(_0x48c75d='*Merge:*\x20%0',_0x554509={'type':'deletion','content':c(_0x506f47,_0x48c75d,c(_0x506f47,'ELEMENT_LIST_ITEM'))});}return _0x554509;});}}function Te(_0x569094){let _0x25f711=_0x569094['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x25f711;){const _0x4c2b8e=_0x25f711['getAttribute']('listItemId');if(!_0x4c2b8e)return!0x1;if(_0x4c2b8e==_0x569094['data']['newValue'])return'newValue';if(_0x4c2b8e==_0x569094['data']['oldValue'])return'oldValue';_0x25f711=_0x25f711['previousSibling'];}return!0x1;}class Se extends _0x32ae11{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x300e3e=this['editor']['config']['get']('list.properties'),_0x60955=this['editor']['plugins']['get']('TrackChangesEditing');_0x300e3e['styles']&&(_0x60955['enableDefaultAttributesIntegration']('listStyle'),_0x60955['registerBlockAttribute']('listStyle')),_0x300e3e['reversed']&&(_0x60955['enableDefaultAttributesIntegration']('listReversed'),_0x60955['registerBlockAttribute']('listReversed')),_0x300e3e['startIndex']&&(_0x60955['enableDefaultAttributesIntegration']('listStart'),_0x60955['registerBlockAttribute']('listStart'));const _0x2bc9c5={'type':'format','content':''};_0x60955['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x102980=this['editor']['locale'];_0x60955['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x102980,'FORMAT_LIST_REVERSED')),_0x60955['descriptionFactory']['registerDescriptionCallback'](_0x4b5a70=>{const {data:_0x224e97}=_0x4b5a70;if(_0x224e97&&'listReversed'==_0x224e97['key'])return null==_0x224e97['newValue']||0x0==_0x224e97['newValue']&&null==_0x224e97['oldValue']?_0x2bc9c5:void 0x0;}),_0x60955['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x102980,'FORMAT_LIST_START')),_0x60955['descriptionFactory']['registerDescriptionCallback'](_0xcf6706=>{const {data:_0xcdcd81}=_0xcf6706;if(_0xcdcd81&&'listStart'==_0xcdcd81['key'])return null==_0xcdcd81['newValue']||0x1==_0xcdcd81['newValue']&&null==_0xcdcd81['oldValue']?_0x2bc9c5:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x421e4f=>{if(_0x421e4f['batch']['isUndo'])return!0x1;let _0x126fae=!0x1;const _0x262420=_0x60955['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1bbc9c=>{const _0x7bf203=_0x60955['_getAttributeKey'](_0x1bbc9c);return'listStart'==_0x7bf203||'listReversed'==_0x7bf203;});for(const _0x2f5463 of _0x262420){const _0x3ca55f=_0x2f5463['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x3ca55f||'customNumbered'==_0x3ca55f)continue;_0x60955['_findSuggestions'](_0x2f5463['getFirstRange'](),'attribute')['find'](_0x1e062c=>'listType'==_0x60955['_getAttributeKey'](_0x1e062c['suggestion']))||(_0x421e4f['removeMarker'](_0x2f5463['getFirstMarker']()),_0x126fae=!0x0);}return _0x126fae;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x371fbe){const _0x3ed8c8=this['editor']['locale'],{data:_0x170a33}=_0x371fbe,_0x2ebd0a={'type':'format','content':''};if(!_0x170a33||'listStyle'!=_0x170a33['key'])return;if(!_0x170a33['oldValue'])return'default'==_0x170a33['newValue']?_0x2ebd0a:{'type':'format','content':''+c(_0x3ed8c8,'*Set\x20format:*\x20%0',c(_0x3ed8c8,this['_getTranslationKeyForListStyle'](_0x170a33['newValue'])))};if(!_0x170a33['newValue']){if('default'==_0x170a33['oldValue'])return _0x2ebd0a;let _0x1baf10=_0x371fbe['head'];for(;_0x1baf10;){if(_0x1baf10['data']&&'listType'==_0x1baf10['data']['key']&&_0x1baf10['data']['newValue'])return _0x2ebd0a;_0x1baf10=_0x1baf10['next'];}return{'type':'format','content':''+c(_0x3ed8c8,'*Remove\x20format:*\x20%0',c(_0x3ed8c8,this['_getTranslationKeyForListStyle'](_0x170a33['oldValue'])))};}if('default'!=_0x170a33['newValue'])return{'type':'format','content':''+c(_0x3ed8c8,'*Set\x20format:*\x20%0',c(_0x3ed8c8,this['_getTranslationKeyForListStyle'](_0x170a33['newValue'])))};let _0xe7e733=_0x371fbe['head'];for(;_0xe7e733;){if(_0xe7e733['data']&&'listType'==_0xe7e733['data']['key']&&_0xe7e733['data']['newValue']&&_0xe7e733['data']['oldValue'])return _0x2ebd0a;_0xe7e733=_0xe7e733['next'];}return{'type':'format','content':c(_0x3ed8c8,'*Set\x20format:*\x20%0',c(_0x3ed8c8,'ELEMENT_'+_0x371fbe['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1a77ab=this['editor'],_0x4a70b6=_0x1a77ab['locale'];_0x1a77ab['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x27d2db=>{if('formatBlock'!=_0x27d2db['type'])return;const {data:_0x3df923}=_0x27d2db;if(!_0x3df923)return;let _0x297895,_0x2c9dc4;switch(_0x3df923['commandName']){case'listStyle':_0x297895='*Change\x20to:*\x20%0',_0x2c9dc4={'type':'format','content':c(_0x4a70b6,_0x297895,c(_0x4a70b6,this['_getTranslationKeyForListStyle'](_0x3df923['commandParams'][0x0]['type'])))};break;case'listReversed':_0x297895=_0x3df923['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2c9dc4={'type':'format','content':c(_0x4a70b6,_0x297895)};break;case'listStart':_0x297895='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2c9dc4={'type':'format','content':c(_0x4a70b6,_0x297895,_0x3df923['commandParams'][0x0]['startIndex'])};}return _0x2c9dc4;});}['_getTranslationKeyForListStyle'](_0x45635a){return'ELEMENT_'+function(_0x5bdf5c){if(_e['includes'](_0x5bdf5c))return'bulleted';if(Re['includes'](_0x5bdf5c))return'numbered';return null;}(_0x45635a)['toUpperCase']()+'_LIST_'+_0x45635a['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x32ae11{['afterInit'](){const _0x4984d9=this['editor'];_0x4984d9['commands']['get']('emoji')&&_0x4984d9['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x32ae11{static get['requires'](){return[_0x1b4ceb];}['init'](){const _0x3fae91=this['editor'],_0x43ccad=_0x3fae91['plugins']['get']('TrackChangesEditing'),_0x476d2c=_0x3fae91['commands']['get']('enter');_0x43ccad['enableCommand']('enter',()=>{_0x3fae91['model']['change'](_0x54c53b=>{const _0x2fb76a=_0x3fae91['model']['document']['selection'],_0x503b85=_0x2fb76a['getFirstPosition'](),_0x4b167c=_0x54bc73['fromRange'](_0x2fb76a['getFirstRange']());if(_0x476d2c['enterBlock'](_0x54c53b)){const _0x101c8e=_0x3fae91['model']['createPositionAt'](_0x503b85['parent']['nextSibling'],0x0),_0x59ea95=_0x54c53b['createRange'](_0x503b85,_0x101c8e);_0x43ccad['markInsertion'](_0x59ea95);}else _0x54c53b['setSelection'](_0x54c53b['createRange'](_0x4b167c['end']));_0x4b167c['detach'](),_0x476d2c['fire']('afterExecute',{'writer':_0x54c53b});});}),_0x3fae91['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x3fae91,'split'),{'priority':'high'}),_0x3fae91['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x5dd068,_0x262a4f,_0x15fb87)=>{const _0x29aecd=_0x15fb87['mapper']['markerNameToElements'](_0x262a4f['markerName']);if(_0x29aecd){for(const _0x10e72f of _0x29aecd)_0x10e72f['hasClass']('ck-suggestion-marker-split')&&(_0x15fb87['mapper']['unbindElementFromMarkerName'](_0x10e72f,_0x262a4f['markerName']),_0x15fb87['writer']['remove'](_0x10e72f));}},{'priority':'high'}),_0x3fae91['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x183304,_0x50e7e6,_0x28aa97)=>{_0x28aa97['options']['showSuggestionHighlights']&&De(_0x3fae91,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x183304,_0x50e7e6,_0x28aa97);},{'priority':'high'});}}class Z extends _0x32ae11{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x28fffe=this['editor']['plugins']['get']('TrackChangesEditing');_0x28fffe['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x28fffe['enableCommand']('findNext'),_0x28fffe['enableCommand']('findPrevious'),_0x28fffe['enableCommand']('replace'),_0x28fffe['enableCommand']('replaceAll');}['handleFindCommand'](_0xd69fd0,_0x35ffef,_0x389452={}){const _0x43d0a5=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0xd69fd0(_0x278696=>{let _0x845325=('string'==typeof _0x35ffef?_0x43d0a5['findByTextCallback'](_0x35ffef,_0x389452):_0x35ffef)(_0x278696);Array['isArray'](_0x845325)&&(_0x845325={'results':_0x845325,'searchText':'string'==typeof _0x35ffef?_0x35ffef:''});const _0x5e35fd=_0x845325['results']['filter'](_0xfa070e=>!0x1===this['_isInDeletionRange'](_0xfa070e,_0x278696['item']));return{..._0x845325,'results':_0x5e35fd};},_0x389452);}['_isInDeletionRange'](_0x47bf43,_0x4f515e){const _0x5dafe1=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4f515e,_0x47bf43['start']),this['editor']['model']['createPositionAt'](_0x4f515e,_0x47bf43['end']));for(const _0xd9d214 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x5dafe1['getIntersection'](_0xd9d214['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x32ae11{['afterInit'](){const _0x256318=this['editor']['locale'],_0x49a64c=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x787588,commandName:_0x2dd67a}of eo)this['editor']['plugins']['has'](_0x787588)&&(_0x49a64c['enableDefaultAttributesIntegration'](_0x2dd67a),_0x49a64c['registerInlineAttribute'](_0x2dd67a));_0x49a64c['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x256318,'FORMAT_FONT_SIZE')),_0x49a64c['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x256318,'FORMAT_FONT_FAMILY')),_0x49a64c['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x256318,'FORMAT_FONT_COLOR')),_0x49a64c['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x256318,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x273cf8=this['editor'],_0x5d744f=_0x273cf8['locale'];_0x273cf8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x393ebc=>{const _0x3e79e6=_0x5d744f['t'];if('formatInline'!=_0x393ebc['type'])return;const {data:_0x35c425}=_0x393ebc;if(null!=_0x35c425){if('fontSize'==_0x35c425['commandName']){const _0xb9ccb5=_0x35c425['commandParams'][0x0]['value'];if(_0xb9ccb5){const _0x29f05c=_0x3e79e6(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4f4c39=>_0x4f4c39['model']==_0xb9ccb5)['title'])['toLowerCase']();return{'type':'format','content':c(_0x5d744f,'*Set\x20font\x20size:*\x20%0',_0x29f05c)};}return{'type':'format','content':c(_0x5d744f,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x35c425['commandName']){const _0x4ed957=_0x35c425['commandParams'][0x0]['value'];return _0x4ed957?{'type':'format','content':c(_0x5d744f,'*Set\x20font\x20family:*\x20%0',_0x4ed957)}:{'type':'format','content':c(_0x5d744f,'*Reset\x20font\x20family*')};}if('fontColor'==_0x35c425['commandName']){const _0x3dd776=_0x35c425['commandParams'][0x0]['value'];if(_0x3dd776){const _0x362136=_0x3b4ca4(this['editor']['config']['get']('fontColor.colors'))['find'](_0x8f8014=>_0x8f8014['model']==_0x3dd776);let _0x280eca=_0x3dd776,_0x50aa7e='';return _0x362136&&(_0x280eca=_0x362136['label'],_0x50aa7e=_0x3e79e6(_0x280eca)['toLowerCase']()),{'type':'format','content':c(_0x5d744f,'*Set\x20font\x20color:*\x20%0',_0x50aa7e)['trim'](),'color':{'value':_0x3dd776,'title':_0x50aa7e||_0x280eca}};}return{'type':'format','content':c(_0x5d744f,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x35c425['commandName']){const _0x5cbd23=_0x35c425['commandParams'][0x0]['value'];if(_0x5cbd23){const _0x7378f1=_0x3b4ca4(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x100b2=>_0x100b2['model']==_0x5cbd23);let _0x34b108=_0x5cbd23,_0x42ad01='';return _0x7378f1&&(_0x34b108=_0x7378f1['label'],_0x42ad01=_0x3e79e6(_0x34b108)['toLowerCase']()),{'type':'format','content':c(_0x5d744f,'*Set\x20font\x20background\x20color:*\x20%0',_0x42ad01)['trim'](),'color':{'value':_0x5cbd23,'title':_0x42ad01||_0x34b108}};}return{'type':'format','content':c(_0x5d744f,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x32ae11{['afterInit'](){const _0x244dd7=this['editor'],_0xd63a53=_0x244dd7['plugins']['get']('TrackChangesEditing'),_0x405d13=_0x244dd7['commands']['get']('copyFormat'),_0x3ecef8=_0x244dd7['commands']['get']('pasteFormat');_0x405d13&&_0x3ecef8&&(_0xd63a53['enableDefaultAttributesIntegration']('pasteFormat'),_0xd63a53['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x1dea20=this['editor'],_0x4f5ed7=_0x1dea20['locale'];_0x1dea20['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c46a3=>{if('formatBlock'!=_0x3c46a3['type']&&'formatInline'!=_0x3c46a3['type'])return;const {data:_0x50eafc}=_0x3c46a3;if(_0x50eafc&&'pasteFormat'===_0x50eafc['commandName']){const _0x2e5fc6=[],_0x275b32=_0x50eafc['commandParams'][0x0];for(const [_0x198f14,_0x1ea4be]of Object['entries'](_0x275b32))_0x2e5fc6['push'](ro(_0x1dea20,_0x198f14,_0x1ea4be));return _0x2e5fc6['length']?{'type':'format','content':c(_0x4f5ed7,'*Set\x20format\x20to:*\x20%0',_0x2e5fc6['join'](',\x20'))}:{'type':'format','content':c(_0x4f5ed7,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x47c69f,_0x196d7f,_0x3d7664){const _0x5eee4f=_0x47c69f['locale']['t'],_0x26e8b2=_0x196d7f['split'](/(?=[A-Z])/)['join']('\x20'),_0x530b93=_0x5eee4f(_0x26e8b2['charAt'](0x0)['toUpperCase']()+_0x26e8b2['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x3d7664)return _0x530b93;if('fontColor'===_0x196d7f||'fontBackgroundColor'===_0x196d7f){const _0x5184d9=_0x3b4ca4(_0x47c69f['config']['get']('fontColor.colors'))['find'](_0x14d7f7=>_0x14d7f7['model']==_0x3d7664);return _0x530b93+'\x20('+(_0x5184d9?_0x5eee4f(_0x5184d9['label'])['toLowerCase']():_0x3d7664)+')';}if('fontSize'===_0x196d7f&&isNaN(parseFloat(_0x3d7664))){const _0x2447eb=_0x47c69f['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x47c69f['config']['get']('fontSize.options'))['find'](_0x45485c=>_0x45485c['model']==_0x3d7664);return _0x530b93+'\x20('+(_0x2447eb?_0x5eee4f(_0x2447eb['title'])['toLowerCase']():_0x3d7664)+')';}return _0x530b93+'\x20('+_0x3d7664+')';}class nt extends _0x32ae11{['_headingOptions'];['afterInit'](){const _0x57cd38=this['editor'];if(!_0x57cd38['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x57cd38['config']['get']('heading.options');const _0x4f4c67=_0x57cd38['locale'],_0x374c2e=_0x57cd38['plugins']['get']('TrackChangesEditing');_0x374c2e['enableDefaultAttributesIntegration']('heading');for(const _0x1b0b7c of this['_headingOptions'])'paragraph'!=_0x1b0b7c['model']&&_0x374c2e['descriptionFactory']['registerElementLabel'](_0x1b0b7c['model'],_0x51317f=>{const _0x33a399=this['_getHeadingLevel'](_0x1b0b7c['model']);return null!==_0x33a399?_0x414f28(_0x51317f,_0x33a399):_0x43817d(_0x51317f,_0x1b0b7c['title']);});function _0x414f28(_0x15e2b8,_0x15c13b){return c(_0x4f4c67,'ELEMENT_HEADING',[_0x15e2b8,_0x15c13b]);}function _0x43817d(_0xf14a5f,_0x5f0171){return c(_0x4f4c67,'ELEMENT_HEADING_CUSTOM',[_0xf14a5f,_0x5f0171]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x18272b=this['editor'],_0x579e4f=_0x18272b['locale'];function _0x484486(_0x49c635,_0x10324b){return c(_0x579e4f,'ELEMENT_HEADING_CUSTOM',[_0x49c635,_0x10324b]);}_0x18272b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b6032=>{if('formatBlock'!=_0x4b6032['type'])return;const {data:_0x2e684b}=_0x4b6032;if(_0x2e684b&&'heading'==_0x2e684b['commandName']){const _0x609c88=_0x2e684b['commandParams'][0x0]['value'],_0x1166c8=this['_getHeadingLevel'](_0x609c88);if(null!==_0x1166c8)return{'type':'format','content':c(_0x579e4f,'*Change\x20to:*\x20%0',(_0x419042=0x1,_0x31e3cb=_0x1166c8,c(_0x579e4f,'ELEMENT_HEADING',[_0x419042,_0x31e3cb])))};const _0x4e2cb6=this['_headingOptions']['find'](_0x5459a0=>_0x5459a0['model']===_0x609c88)['title'];return{'type':'format','content':c(_0x579e4f,'*Change\x20to:*\x20%0',_0x484486(0x1,_0x4e2cb6))};}var _0x419042,_0x31e3cb;});}['_getHeadingLevel'](_0xf6d0ea){const _0x526c39=_0xf6d0ea['match'](/^heading(\d+)/);if(_0x526c39)return _0x526c39[0x1];const _0x5013c6=this['_headingOptions']?.['find'](_0x15bae0=>_0x15bae0['model']==_0xf6d0ea);if(_0x5013c6&&_0x5013c6['view']){const _0x546612=_0x5013c6['view'],_0x56beec=(_0x546612['name']??_0x546612)['match'](/^h(\d+)/);if(_0x56beec)return _0x56beec[0x1];}return null;}}class it extends _0x32ae11{['afterInit'](){const _0x23ec71=this['editor'];if(!_0x23ec71['plugins']['has']('HighlightEditing'))return;const _0x1cc237=_0x23ec71['plugins']['get']('TrackChangesEditing'),_0x2bd854=_0x23ec71['locale'];_0x1cc237['enableDefaultAttributesIntegration']('highlight'),_0x1cc237['registerInlineAttribute']('highlight'),_0x1cc237['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x2bd854,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x55b11c=this['editor'],_0x16f9c4=_0x55b11c['locale'];_0x55b11c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x219b58=>{if('formatInline'!=_0x219b58['type'])return;const {data:_0x126253}=_0x219b58;if(_0x126253&&'highlight'==_0x126253['commandName']){const _0x4dd6fa=_0x16f9c4['t'],_0x50f184=_0x126253['commandParams'][0x0]['value'];if(_0x50f184){const _0x36bad9=_0x55b11c['config']['get']('highlight.options')['find'](_0x4ef6b=>_0x4ef6b['model']==_0x50f184),_0x5511dc=_0x4dd6fa(_0x36bad9['title'])['toLowerCase']();return{'type':'format','content':c(_0x16f9c4,'*Set\x20highlight:*\x20%0',_0x5511dc),'color':{'value':_0x36bad9['color'],'title':_0x36bad9['title']}};}return{'type':'format','content':c(_0x16f9c4,'*Remove\x20highlight*',c(_0x16f9c4,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x32ae11{['afterInit'](){const _0x50ac9c=this['editor'];if(!_0x50ac9c['plugins']['has']('HorizontalLineEditing'))return;_0x50ac9c['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x52a9ef=_0x50ac9c['plugins']['get']('TrackChangesEditing'),_0x21010d=_0x50ac9c['locale'];_0x52a9ef['descriptionFactory']['registerElementLabel']('horizontalLine',_0x575269=>c(_0x21010d,'ELEMENT_HORIZONTAL_LINE',_0x575269)),_0x50ac9c['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x4881e2,{writer:_0x46b9b3,options:_0x6c96b5})=>{if(!_0x6c96b5['showSuggestionHighlights'])return null;const _0x12f75f=_0x46b9b3['createContainerElement']('div'),_0x258dd8=_0x46b9b3['createEmptyElement']('hr');return _0x46b9b3['addClass']('ck-horizontal-line',_0x12f75f),_0x46b9b3['insert'](_0x46b9b3['createPositionAt'](_0x12f75f,0x0),_0x258dd8),_0x12f75f;},'converterPriority':'high'});}}class ot extends _0x32ae11{['afterInit'](){const _0x203175=this['editor'];if(!_0x203175['plugins']['has']('HtmlEmbed'))return;const _0x3eb44a=_0x203175['plugins']['get']('TrackChangesEditing'),_0x1e98ea=_0x203175['locale'];_0x3eb44a['descriptionFactory']['registerElementLabel']('rawHtml',_0x233a73=>c(_0x1e98ea,'ELEMENT_HTML_EMBED',_0x233a73)),_0x3eb44a['enableDefaultAttributesIntegration']('htmlEmbed'),_0x3eb44a['registerBlockAttribute']('value'),_0x3eb44a['descriptionFactory']['registerDescriptionCallback'](_0xecf730=>{if('attribute'!=_0xecf730['type'])return;const {data:_0x50f0f5}=_0xecf730;if(_0x50f0f5&&'value'==_0x50f0f5['key']&&_0xecf730['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x4654f8=c(_0x1e98ea,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x1e98ea,'*Change\x20%0\x20content*',_0x4654f8)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2cba08=this['editor'],_0x35db15=_0x2cba08['locale'];_0x2cba08['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x476379=>{if('formatBlock'!=_0x476379['type'])return;const {data:_0x9bd998}=_0x476379;if(_0x9bd998&&'htmlEmbed'==_0x9bd998['commandName']){const _0x55f68a=c(_0x35db15,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x35db15,'*Change\x20%0\x20content*',_0x55f68a)};}});}}class rt extends _0x32ae11{['afterInit'](){const _0x16469e=this['editor'];if(!_0x16469e['plugins']['has']('ImageEditing'))return;const _0x4011ec=_0x16469e['plugins']['get']('TrackChangesEditing'),_0x1ada32=_0x16469e['plugins']['get']('ImageUtils'),_0x57a1b0=_0x16469e['locale'];_0x4011ec['enableCommand']('insertImage'),_0x4011ec['descriptionFactory']['registerElementLabel']('imageBlock',_0x2460be=>c(_0x57a1b0,'ELEMENT_IMAGE',_0x2460be)),_0x4011ec['descriptionFactory']['registerElementLabel']('imageInline',_0x342e8e=>c(_0x57a1b0,'ELEMENT_INLINE_IMAGE',_0x342e8e)),_0x4011ec['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x57a1b0,'ELEMENT_CAPTION')),_0x16469e['plugins']['has']('ImageUploadEditing')&&_0x4011ec['enableCommand']('uploadImage'),_0x16469e['plugins']['has']('ImageBlockEditing')&&_0x16469e['plugins']['has']('ImageInlineEditing')&&(_0x4011ec['enableCommand']('imageTypeInline',(_0x1820e1,_0x3391d4)=>{const _0x369e1d=_0x1ada32['getClosestSelectedImageElement'](_0x16469e['model']['document']['selection']);_0x16469e['model']['change'](()=>{_0x4011ec['markBlockFormat'](_0x369e1d,{'commandName':'imageTypeInline','commandParams':[_0x3391d4]},[],'convertBlockImageToInline');});}),_0x4011ec['enableCommand']('imageTypeBlock',(_0x2da196,_0x20fda6)=>{_0x16469e['model']['change'](_0x445925=>{let _0x12cedd=_0x1ada32['getClosestSelectedImageElement'](_0x16469e['model']['document']['selection']),_0x1cd756=_0x445925['createRangeOn'](_0x12cedd);const _0x5a924c=_0x3a8e88['fromPosition'](_0x1cd756['start'],'toPrevious'),_0x1f38a0=_0x3a8e88['fromPosition'](_0x1cd756['end'],'toNext');_0x4011ec['forceDefaultExecution'](()=>_0x2da196(_0x20fda6)),_0x12cedd=_0x1ada32['getClosestSelectedImageElement'](_0x16469e['model']['document']['selection']),_0x1cd756=_0x445925['createRangeOn'](_0x12cedd);const _0x1573ef=_0x445925['createRange'](_0x5a924c,_0x1f38a0);_0x5a924c['detach'](),_0x1f38a0['detach'](),_0x4011ec['markBlockFormat'](_0x12cedd,{'commandName':'imageTypeInline','commandParams':[_0x20fda6]},[],'convertInlineImageToBlock'),_0x1573ef['start']['isBefore'](_0x1cd756['start'])&&_0x4011ec['markInsertion'](_0x445925['createRange'](_0x1573ef['start'],_0x1cd756['start']),'convertInlineImageToBlock'),_0x1cd756['end']['isBefore'](_0x1573ef['end'])&&_0x4011ec['markInsertion'](_0x445925['createRange'](_0x1cd756['end'],_0x1573ef['end']),'convertInlineImageToBlock');});}),_0x4011ec['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x4011ec['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x4011ec['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x4011ec['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x4011ec['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x4011ec['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x133da4])=>{const _0x391cb8=_0x4011ec['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0xab5cbd=_0x133da4['start'],_0x50c292=_0x133da4['end'];const _0x2e7a79=_0x16469e['model']['schema']['getNearestSelectionRange'](_0xab5cbd,'backward'),_0x5f0b4e=_0x16469e['model']['schema']['getNearestSelectionRange'](_0x50c292,'forward');_0x2e7a79['isCollapsed']&&(_0xab5cbd=_0x2e7a79['start']),_0x5f0b4e['isCollapsed']&&(_0x50c292=_0x5f0b4e['end']),_0x391cb8([_0x16469e['model']['createRange'](_0xab5cbd,_0x50c292)]);}),_0x4011ec['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x556ed5),_0x4011ec['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x556ed5)),_0x16469e['plugins']['has']('ImageCaptionEditing')&&(_0x4011ec['enableCommand']('toggleImageCaption',(_0xf82da2,_0x53e5f4)=>{const _0x3c54be=_0x16469e['plugins']['get']('ImageCaptionUtils');let _0xc7c0f8=_0x1ada32['getClosestSelectedImageElement'](_0x16469e['model']['document']['selection']),_0x105f35=_0x3c54be['getCaptionFromImageModelElement'](_0xc7c0f8);_0x16469e['model']['change'](()=>{if(_0x105f35)return void _0x4011ec['markDeletion'](_0x16469e['model']['createRangeOn'](_0x105f35));const _0x430a2d=_0x1ada32['isBlockImage'](_0xc7c0f8);_0xf82da2(_0x53e5f4),_0xc7c0f8=_0x1ada32['getClosestSelectedImageElement'](_0x16469e['model']['document']['selection']),_0x105f35=_0x3c54be['getCaptionFromImageModelElement'](_0xc7c0f8),_0x4011ec['markInsertion'](_0x16469e['model']['createRangeOn'](_0x105f35),_0x430a2d?null:'imageCaption');});}),_0x4011ec['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x556ed5));const _0x492631=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x17470d(_0x541ee2,_0x5171cf){const _0xcbd306=_0x492631['findIndex'](({type:_0x8b0246,subType:_0x255c9f})=>_0x541ee2['type']==_0x8b0246&&_0x541ee2['subType']==_0x255c9f),_0x4744cf=_0x492631['findIndex'](({type:_0xe93c8b,subType:_0x471a1e})=>_0x5171cf['type']==_0xe93c8b&&_0x5171cf['subType']==_0x471a1e);if(_0xcbd306<0x0||_0x4744cf<0x0)return!0x1;const _0x53215c=_0x541ee2['getFirstRange'](),_0x2df350=_0x5171cf['getFirstRange']();if((0x0==_0xcbd306||0x1==_0xcbd306)&&0x2==_0x4744cf&&_0x53215c['isIntersecting'](_0x2df350))return!0x0;if(0x2==_0xcbd306&&0x3==_0x4744cf){const _0x568446=_0x4011ec['_findSuggestions'](_0x53215c,'insertion')['filter'](({suggestion:_0x4c7acb,meta:_0x1502fa})=>_0x1502fa['isOwn']&&'convertInlineImageToBlock'==_0x4c7acb['subType']);if(_0x568446['length']>0x1&&_0x2df350['end']['isEqual'](_0x53215c['start']))return!0x0;if(0x1==_0x568446['length']&&(_0x53215c['start']['isEqual'](_0x2df350['end'])||_0x53215c['end']['isEqual'](_0x2df350['start'])))return!0x0;}if(0x3==_0xcbd306&&0x3==_0x4744cf&&_0x53215c['start']['isBefore'](_0x2df350['start'])){const _0x2fa01c=_0x53215c['end']['nodeAfter'],_0x5caec8=_0x2df350['start']['nodeBefore'];return _0x1ada32['isBlockImage'](_0x2fa01c)&&_0x2fa01c===_0x5caec8;}return!0x1;}function _0x556ed5(_0x3753ac,_0x1c2529){return _0x17470d(_0x3753ac,_0x1c2529)?[_0x3753ac,_0x1c2529]:_0x17470d(_0x1c2529,_0x3753ac)?[_0x1c2529,_0x3753ac]:null;}_0x16469e['plugins']['has']('ImageResize')&&(_0x4011ec['enableDefaultAttributesIntegration']('resizeImage'),_0x4011ec['registerBlockAttribute']('resizedWidth'),_0x4011ec['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x57a1b0,'FORMAT_IMAGE_SIZE'))),_0x16469e['plugins']['has']('ImageTextAlternativeEditing')&&(_0x4011ec['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x4011ec['registerBlockAttribute']('alt')),_0x16469e['plugins']['has']('PictureEditing')&&(_0x4011ec['registerBlockAttribute']('sources'),_0x4011ec['descriptionFactory']['registerDescriptionCallback'](_0x46b541=>{if('attribute'!=_0x46b541['type'])return;const {data:_0x48c910}=_0x46b541;return _0x48c910&&'sources'==_0x48c910['key']?{'type':'format','content':''}:void 0x0;})),_0x16469e['plugins']['has']('ImageSizeAttributes')&&(_0x4011ec['registerBlockAttribute']('width'),_0x4011ec['registerBlockAttribute']('height'),_0x4011ec['descriptionFactory']['registerDescriptionCallback'](_0x25c649=>{if('attribute'!=_0x25c649['type'])return;const {data:_0x1c443a}=_0x25c649;return!_0x1c443a||'width'!=_0x1c443a['key']&&'height'!=_0x1c443a['key']?void 0x0:{'type':'format','content':''};})),_0x4011ec['descriptionFactory']['registerDescriptionCallback'](_0x28eb87=>{if(!!_0x492631['find'](({type:_0x5e9fdd,subType:_0x17f21e})=>_0x28eb87['type']==_0x5e9fdd&&_0x28eb87['subType']==_0x17f21e))return _0x28eb87['previous']?{}:void 0x0;}),_0x4011ec['descriptionFactory']['registerDescriptionCallback'](_0x2f187d=>{if('insertion'==_0x2f187d['type']||'deletion'==_0x2f187d['type']){const _0xb41743=_0x2f187d['getContainedElement']();if(_0xb41743&&_0xb41743['is']('element','caption'))return{'type':'insertion'==_0x2f187d['type']?'addObject':'removeObject','element':_0xb41743,'quantity':0x1};}}),_0x4011ec['descriptionFactory']['registerDescriptionCallback'](_0x57c071=>'formatBlock'==_0x57c071['type']&&'convertInlineImageToBlock'==_0x57c071['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x57c071['type']&&'convertBlockImageToInline'==_0x57c071['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x4011ec['descriptionFactory']['registerDescriptionCallback'](_0x1b2177=>{if('attribute'!=_0x1b2177['type'])return;const {data:_0x28c86e}=_0x1b2177;if(!_0x28c86e||'alt'!=_0x28c86e['key'])return;const _0x3beeba=_0x28c86e['newValue'];return _0x3beeba?{'type':'format','content':c(_0x57a1b0,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3beeba+'\x22')}:{'type':'format','content':c(_0x57a1b0,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x41d9d9=this['editor'],_0x5f4043=_0x41d9d9['locale'];_0x41d9d9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x58ece1=>{if('formatBlock'!=_0x58ece1['type']&&'formatInline'!=_0x58ece1['type'])return;const {data:_0x3d156d}=_0x58ece1;if(_0x3d156d){if('imageTextAlternative'==_0x3d156d['commandName']){const _0x2c03ac=_0x3d156d['commandParams'][0x0]['newValue'];return _0x2c03ac?{'type':'format','content':c(_0x5f4043,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2c03ac+'\x22')}:{'type':'format','content':c(_0x5f4043,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x3d156d['commandName']){const _0x1f2cce=_0x3d156d['commandParams'][0x0]['width'];return _0x1f2cce?{'type':'format','content':c(_0x5f4043,'*Set\x20image\x20width:*\x20%0',_0x1f2cce)}:{'type':'format','content':c(_0x5f4043,'*Reset\x20image\x20width*')};}}});}}class at extends _0x32ae11{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0xc64da=this['editor']['locale'],_0x2abb8f=this['editor']['plugins']['get']('TrackChangesEditing');_0x2abb8f['enableDefaultAttributesIntegration']('replaceImageSource'),_0x2abb8f['registerBlockAttribute']('src'),_0x2abb8f['descriptionFactory']['registerDescriptionCallback'](_0x44d17b=>{if('attribute'!=_0x44d17b['type'])return;const {data:_0x36da60}=_0x44d17b;return _0x36da60&&'src'==_0x36da60['key']?_0x36da60['newValue']&&_0x36da60['oldValue']?{'type':'format','content':c(_0xc64da,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3069da=this['editor']['plugins']['get']('TrackChangesEditing');_0x3069da['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x3069da['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3069da['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x3069da['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x25adaf=this['editor'],_0x1e3dbb=_0x25adaf['locale'];_0x25adaf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1dea94=>{if('formatBlock'!=_0x1dea94['type']&&'formatInline'!=_0x1dea94['type'])return;const {data:_0x52d287}=_0x1dea94;if(!_0x52d287||'replaceImageSource'!=_0x52d287['commandName'])return;return{'type':'format','content':c(_0x1e3dbb,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x32ae11{['afterInit'](){const _0x598821=this['editor'];if(!_0x598821['plugins']['has']('ImageStyleEditing'))return;const _0x2a0515=_0x598821['plugins']['get']('TrackChangesEditing'),_0x3b28a9=_0x598821['plugins']['get']('ImageUtils'),_0x5e0038={};_0x2a0515['enableCommand']('imageStyle',(_0x1b9056,_0x64e72f)=>{const _0xa97bf0=_0x598821['plugins']['get']('Users')['me'],_0x2e6961=_0x598821['commands']['get']('imageStyle');let _0x41df35=_0x3b28a9['getClosestSelectedImageElement'](_0x598821['model']['document']['selection']),_0xc61129=_0x598821['model']['createRangeOn'](_0x41df35),_0x1b6b73=_0x2e6961['value'];if(_0x1b6b73==_0x64e72f['value'])return;const _0x30ace2={'commandName':'imageStyle','commandParams':[_0x64e72f],'formatGroupId':_0x1b6899()};_0x598821['model']['change'](()=>{if(_0x2a0515['getSuggestions']()['filter'](_0x3f470f=>_0x3f470f['isInContent']&&_0xa97bf0==_0x3f470f['author']&&('formatBlock'==_0x3f470f['type']||'formatInline'==_0x3f470f['type'])&&('imageStylePreApply'==_0x3f470f['subType']||'imageStylePostApply'==_0x3f470f['subType'])&&_0x3f470f['getFirstRange']()['isEqual'](_0xc61129))['forEach'](_0x275c7c=>_0x2a0515['discardSuggestion'](_0x275c7c['head'])),_0x41df35=_0x3b28a9['getClosestSelectedImageElement'](_0x598821['model']['document']['selection']),_0xc61129=_0x598821['model']['createRangeOn'](_0x41df35),_0x2e6961['refresh'](),_0x598821['commands']['get']('imageTypeInline')['refresh'](),_0x598821['commands']['get']('imageTypeBlock')['refresh'](),_0x1b6b73=_0x2e6961['value'],_0x1b6b73!=_0x64e72f['value'])return _0x3b28a9['isInlineImage'](_0x41df35)&&_0x2e6961['shouldConvertImageType'](_0x64e72f['value'],_0x41df35)?(_0x1b9056({..._0x64e72f,'setImageSizes':!0x1}),_0x41df35=_0x3b28a9['getClosestSelectedImageElement'](_0x598821['model']['document']['selection']),void _0x2a0515['markBlockFormat'](_0x41df35,{..._0x30ace2,'commandReversedParams':[{'value':_0x1b6b73||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3b28a9['isBlockImage'](_0x41df35)?_0x2a0515['markBlockFormat'](_0x41df35,_0x30ace2,[],'imageStylePostApply'):_0x2a0515['markInlineFormat'](_0xc61129,_0x30ace2,'imageStylePostApply'));});});for(const _0x1a904f of _0x598821['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x5e0038[_0x1a904f['name']]=_0x1a904f['title']['toLowerCase']();_0x2a0515['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x2a0515['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x2a0515['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x2a0515['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x409049])=>{_0x3b28a9['setImageNaturalSizeAttributes'](_0x409049['getContainedElement']());}),_0x2a0515['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x178fdc,_0x334bcf)=>{_0x2a0515['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x178fdc,{'commandName':_0x334bcf['commandName'],'commandParams':_0x334bcf['commandReversedParams']});}),_0x2a0515['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x37a5ae,_0x2798df){if(_0x4f5c03(_0x37a5ae,_0x2798df))return[_0x37a5ae,_0x2798df];if(_0x4f5c03(_0x2798df,_0x37a5ae))return[_0x2798df,_0x37a5ae];return null;});const _0x30a0be=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4f5c03(_0x1cceab,_0x32b821){const _0x586007=_0x30a0be['findIndex'](({type:_0x569008,subType:_0x181799})=>_0x1cceab['type']==_0x569008&&_0x1cceab['subType']==_0x181799),_0x2299ff=_0x30a0be['findIndex'](({type:_0x338991,subType:_0x48fef1})=>_0x32b821['type']==_0x338991&&_0x32b821['subType']==_0x48fef1);if(_0x586007<0x0||_0x2299ff<0x0)return!0x1;const _0x19f41e=_0x1cceab['getFirstRange'](),_0x3ee5f7=_0x32b821['getFirstRange']();if((0x0==_0x586007||0x1==_0x586007)&&0x2==_0x2299ff&&_0x19f41e['isIntersecting'](_0x3ee5f7))return!0x0;if(0x2==_0x586007&&0x3==_0x2299ff){const _0x83416b=_0x2a0515['_findSuggestions'](_0x19f41e,'insertion')['filter'](({suggestion:_0x56b4bd,meta:_0x4e80ad})=>_0x4e80ad['isOwn']&&'convertInlineImageToBlock'==_0x56b4bd['subType']);if(_0x83416b['length']>0x1&&_0x3ee5f7['end']['isEqual'](_0x19f41e['start']))return!0x0;if(0x1==_0x83416b['length']&&(_0x19f41e['start']['isEqual'](_0x3ee5f7['end'])||_0x19f41e['end']['isEqual'](_0x3ee5f7['start'])))return!0x0;}if(0x3==_0x586007&&0x3==_0x2299ff&&_0x19f41e['start']['isBefore'](_0x3ee5f7['start'])){const _0x3e572c=_0x19f41e['end']['nodeAfter'],_0x7b296=_0x3ee5f7['start']['nodeBefore'];return _0x3b28a9['isBlockImage'](_0x3e572c)&&_0x3e572c===_0x7b296;}return!0x1;}_0x598821['model']['document']['registerPostFixer'](()=>{let _0x1ab473=!0x1;const _0x6eafa1=Array['from'](_0x598821['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x22b057,data:_0x4d28b5}of _0x6eafa1){const {group:_0x1cf2f8,type:_0x394311,subType:_0x5dcf83,id:_0x26d87}=_0x2a0515['_splitMarkerName'](_0x22b057);if('suggestion'==_0x1cf2f8&&_0x2a0515['hasSuggestion'](_0x26d87)){if('formatBlock'==_0x394311&&('imageStylePreApply'==_0x5dcf83||'imageStylePostApply'==_0x5dcf83)){const _0x44e881=_0x2a0515['getSuggestion'](_0x26d87);if(_0x4d28b5['newRange']){const _0x342736=_0x44e881['getFirstRange']()['getContainedElement']();if(_0x3b28a9['isBlockImage'](_0x342736))continue;_0x2a0515['discardSuggestion'](_0x44e881),_0x1ab473=!0x0;}}if('insertion'==_0x394311&&'imageCaption'==_0x5dcf83&&!_0x4d28b5['newRange']){const _0x48f826=_0x2a0515['getSuggestion'](_0x26d87);_0x48f826['next']&&_0x48f826['next']['isInContent']&&(_0x2a0515['discardSuggestion'](_0x48f826['next']),_0x1ab473=!0x0);}}}return _0x1ab473;}),this['_registerLegacyDescription'](_0x5e0038);}['_registerLegacyDescription'](_0x1b1e90){const _0x32c87b=this['editor'],_0x2683de=_0x32c87b['locale'];_0x32c87b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x699f76=>{if('formatBlock'!=_0x699f76['type']&&'formatInline'!=_0x699f76['type'])return;const {data:_0x1582aa}=_0x699f76;if(!_0x1582aa||'imageStyle'!=_0x1582aa['commandName'])return;const _0x4f0ed8=_0x1582aa['commandParams'][0x0]['value'];return _0x36957c('side'===_0x4f0ed8?c(_0x2683de,'FORMAT_SIDE_IMAGE'):_0x1b1e90[_0x4f0ed8]||_0x4f0ed8);function _0x36957c(_0x37362b){return{'type':'format','content':c(_0x2683de,'*Format:*\x20%0',_0x37362b)};}});}}class ut extends _0x32ae11{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x37e939){super(_0x37e939),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0xe36f55=this['editor'],_0x1c94f8=_0xe36f55['commands']['get']('importWord'),_0x5d1e0a=_0xe36f55['commands']['get']('trackChanges');_0x1c94f8&&(_0x1c94f8['on']('execute',(_0x41e04f,[,_0x376247])=>{this['_trackChangesValueDuringImport']=_0x5d1e0a['value'],_0x376247['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x1c94f8,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x1c94f8,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x5d1e0a['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0xe36f55['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x383989,_0x5f0a17){const {suggestions:_0x4f9ca8}=_0x5f0a17,_0x2f6d15=this['editor']['commands']['get']('trackChanges'),_0x58b28a=_0x2f6d15['value'];this['_trackChangesValueDuringImport']!==_0x58b28a&&(_0x2f6d15['execute'](),this['_trackChangesExecuted']=!0x0),_0x4f9ca8&&_0x4f9ca8['forEach'](({id:_0x2603c7,type:_0x333f20,author:_0x5b735b,created_at:_0x3872b5})=>{const _0x3aca56={'id':_0x2603c7,'type':_0x333f20,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x5b735b,'createdAt':_0x3872b5?new Date(_0x3872b5):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x3aca56);});}}class ft extends _0x32ae11{['afterInit'](){const _0x9aa94d=this['editor'],_0x3c00c1=_0x9aa94d['plugins']['get']('TrackChangesEditing');if(_0x9aa94d['plugins']['has']('IndentEditing')&&(_0x3c00c1['enableCommand']('indent'),_0x3c00c1['enableCommand']('outdent')),_0x9aa94d['plugins']['has']('IndentBlock')){for(const _0x59df8c of['indentBlock','outdentBlock'])_0x3c00c1['enableDefaultAttributesIntegration'](_0x59df8c);}const _0x37246f=_0x9aa94d['locale'];_0x3c00c1['registerBlockAttribute']('blockIndent'),_0x3c00c1['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x37246f,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x44fa44=this['editor'],_0x31885c=_0x44fa44['locale'],_0x7ae394=_0x44fa44['plugins']['get']('TrackChangesEditing');_0x7ae394['descriptionFactory']['registerDescriptionCallback'](_0xb14016=>{if('formatBlock'!=_0xb14016['type'])return;const {data:_0x3bd787}=_0xb14016;if(!_0x3bd787)return;if('indentBlock'!=_0x3bd787['commandName']&&'outdentBlock'!=_0x3bd787['commandName'])return;const _0x32da75=_0xb14016['getItems']()[0x0],_0x274c3c=_0x7ae394['descriptionFactory']['getItemLabel'](_0x32da75);return'indentBlock'==_0x3bd787['commandName']?{'type':'format','content':c(_0x31885c,'*Indent:*\x20%0',_0x274c3c)}:'outdentBlock'==_0x3bd787['commandName']?{'type':'format','content':c(_0x31885c,'*Outdent:*\x20%0',_0x274c3c)}:void 0x0;});}}class ht extends _0x32ae11{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x32ae11{['afterInit'](){const _0x1a13a6=this['editor'];if(!_0x1a13a6['plugins']['has']('LinkEditing'))return;const _0x37a6e9=_0x1a13a6['plugins']['get']('TrackChangesEditing'),_0x41727c=_0x1a13a6['commands']['get']('link');_0x37a6e9['enableDefaultAttributesIntegration']('link'),_0x37a6e9['enableDefaultAttributesIntegration']('unlink'),_0x37a6e9['registerInlineAttribute']('linkHref');for(const _0x23e083 of _0x41727c['manualDecorators'])_0x37a6e9['registerInlineAttribute'](_0x23e083['id']),_0x37a6e9['descriptionFactory']['registerAttributeLabel'](_0x23e083['id'],'link\x20('+_0x23e083['label']['toLowerCase']()+')');_0x37a6e9['descriptionFactory']['registerDescriptionCallback'](_0x3371b7=>{if('attribute'!=_0x3371b7['type'])return;const {data:_0x4eabb8}=_0x3371b7;if(!_0x4eabb8||'linkHref'!=_0x4eabb8['key'])return;const _0x388821=_0x4eabb8['newValue'],_0x234906=_0x1a13a6['locale'];return{'type':'format','content':null==_0x388821?c(_0x234906,'*Remove\x20link*'):c(_0x234906,'*Set\x20link:*\x20%0','\x22'+_0x388821+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x49ddcf=this['editor'],_0x3ede08=_0x49ddcf['locale'];_0x49ddcf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x162e9c=>{if('formatInline'!=_0x162e9c['type'])return;const {data:_0x4f011f}=_0x162e9c;if(_0x4f011f){if('link'==_0x4f011f['commandName']){const _0x59bc6d=_0x4f011f['commandParams'][0x0];return{'type':'format','content':c(_0x3ede08,'*Set\x20link:*\x20%0','\x22'+_0x59bc6d+'\x22')};}return'unlink'==_0x4f011f['commandName']?{'type':'format','content':c(_0x3ede08,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x32ae11{['afterInit'](){const _0xe1d2f2=this['editor'],_0x21261e=_0xe1d2f2['locale'];if(!_0xe1d2f2['plugins']['has']('LegacyListEditing'))return;const _0x570d81=_0xe1d2f2['plugins']['get']('TrackChangesEditing'),_0x41e1f0=_0xe1d2f2['plugins']['has']('LegacyTodoListEditing');function _0x17ab67(_0x36962e){return()=>{const _0x3d6804=_0xe1d2f2['model']['document']['selection'],_0x558721=_0xe1d2f2['commands']['get'](_0x36962e);if(_0x558721['value'])return void _0xe1d2f2['execute']('paragraph',{});const _0x50f70f=_0x36962e['slice'](0x0,-0x4),_0x313ae4=function(_0x258bb5,_0x33a4ae,_0x3ada64){let _0x5a8986=Array['from'](_0x258bb5)['filter'](_0x5586ea=>function(_0x2c1df1,_0x45ddf0){return _0x45ddf0['checkChild'](_0x2c1df1['parent'],'listItem')&&!_0x45ddf0['isObject'](_0x2c1df1);}(_0x5586ea,_0x3ada64));_0x5a8986=_0x5a8986['filter'](_0x9a44ec=>!_0x9a44ec['is']('element','listItem')||_0x9a44ec['getAttribute']('listType')!=_0x33a4ae);const _0x45cbfb=new Set();for(const _0xa73bd2 of _0x5a8986)_0xa73bd2['is']('element','listItem')?_0x45cbfb['add'](Le(_0xa73bd2)):_0x45cbfb['add'](_0xa73bd2);return Array['from'](_0x45cbfb);}(_0x3d6804['getSelectedBlocks'](),_0x50f70f,_0xe1d2f2['model']['schema']);_0xe1d2f2['model']['change'](()=>{for(const _0x2ba07f of _0x313ae4)_0x570d81['markBlockFormat'](_0x2ba07f,{'commandName':_0x36962e,'commandParams':[{'forceValue':!_0x558721['value']}],'formatGroupId':'blockName'},Ee(_0x2ba07f));});};}function _0x37a38(_0x10c9ad){return()=>{const _0x19b8b6=function(_0x1316e0){let _0x568dcf=Array['from'](_0x1316e0);const _0x304ec5=_0x568dcf['findIndex'](_0x57b869=>'listItem'!=_0x57b869['name']);return _0x304ec5>-0x1&&(_0x568dcf=_0x568dcf['slice'](0x0,_0x304ec5)),_0x568dcf;}(_0xe1d2f2['model']['document']['selection']['getSelectedBlocks']()),_0x18c3c5=_0xe1d2f2['model']['createRange'](_0xe1d2f2['model']['createPositionAt'](_0x19b8b6[0x0],'before'),_0xe1d2f2['model']['createPositionAt'](_0x19b8b6[_0x19b8b6['length']-0x1],'end'));_0xe1d2f2['model']['change'](()=>{_0x570d81['markBlockFormat'](_0x18c3c5,{'commandName':_0x10c9ad,'commandParams':[],'formatGroupId':'listIndent'},function(_0x43acce){const _0x21906d=new Set();for(const _0x497fdc of _0x43acce){let _0x47993e=_0x497fdc['nextSibling'];for(;_0x47993e&&_0x47993e['getAttribute']('listIndent')>_0x497fdc['getAttribute']('listIndent');)_0x21906d['add'](_0x47993e),_0x47993e=_0x47993e['nextSibling'];}return Array['from'](_0x21906d);}(_0x19b8b6));});};}_0x570d81['enableCommand']('numberedList',_0x17ab67('numberedList')),_0x570d81['enableCommand']('bulletedList',_0x17ab67('bulletedList')),_0x41e1f0&&_0x570d81['enableCommand']('todoList',_0x17ab67('todoList')),_0x570d81['enableCommand']('indentList',_0x37a38('indentList')),_0x570d81['enableCommand']('outdentList',_0x37a38('outdentList')),_0x41e1f0&&_0x570d81['enableCommand']('checkTodoList',()=>{const _0x57a91f=_0xe1d2f2['commands']['get']('checkTodoList'),_0x1b3ea5=Array['from'](_0x57a91f['_selectedElements']);_0x1b3ea5['filter'](_0x16060c=>_0x16060c['getAttribute']('todoListChecked')!=_0x57a91f['value']),_0xe1d2f2['model']['change'](()=>{for(const _0x195de9 of _0x1b3ea5)_0x570d81['markBlockFormat'](_0x195de9,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x57a91f['value']}]});});}),_0x570d81['descriptionFactory']['registerElementLabel']('listItem',_0x5ee598=>c(_0x21261e,'ELEMENT_LIST_ITEM',_0x5ee598)),_0x570d81['descriptionFactory']['registerDescriptionCallback'](_0x4e445d=>{if('formatBlock'!=_0x4e445d['type']&&'formatInline'!=_0x4e445d['type'])return;const {data:_0x13b196}=_0x4e445d;if(_0x13b196){if('numberedList'==_0x13b196['commandName']||'bulletedList'==_0x13b196['commandName']||'todoList'==_0x13b196['commandName'])switch(_0x13b196['commandName']['replace']('List','')){case'bulleted':return _0x55f0d6(c(_0x21261e,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x55f0d6(c(_0x21261e,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x55f0d6(c(_0x21261e,'ELEMENT_TODO_LIST'));}if('indentList'==_0x13b196['commandName'])return{'type':'format','content':c(_0x21261e,'*Indent:*\x20%0',c(_0x21261e,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x13b196['commandName'])return{'type':'format','content':c(_0x21261e,'*Outdent:*\x20%0',c(_0x21261e,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x13b196['commandName'])return _0x13b196['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x21261e,'*Check\x20item*')}:{'type':'format','content':c(_0x21261e,'*Uncheck\x20item*')};}function _0x55f0d6(_0x4bab2f){return{'type':'format','content':c(_0x21261e,'*Change\x20to:*\x20%0',_0x4bab2f)};}});}}function Le(_0x56007d){const _0x530146=_0x56007d['getAttribute']('listIndent');if(0x0==_0x530146)return _0x56007d;let _0x5f3cc6=_0x56007d;for(;_0x56007d['previousSibling']&&_0x56007d['previousSibling']['is']('element','listItem');){const _0x4c887c=_0x56007d['previousSibling']['getAttribute']('listIndent');if(_0x4c887c==_0x530146)_0x5f3cc6=_0x56007d['previousSibling'];else{if(_0x4c887c<_0x530146)break;}_0x56007d=_0x56007d['previousSibling'];}return _0x5f3cc6;}function Ee(_0x3d2406){const _0x1d7409=[];if(_0x3d2406['is']('element','listItem')&&_0x3d2406['getAttribute']('listIndent')>0x0){let _0x57cee5=_0x3d2406['nextSibling'];for(;_0x57cee5&&'listItem'==_0x57cee5['name']&&_0x57cee5['getAttribute']('listIndent')==_0x3d2406['getAttribute']('listIndent');)_0x1d7409['push'](_0x57cee5),_0x57cee5=_0x57cee5['nextSibling'];}return _0x1d7409;}class Q extends _0x32ae11{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x4d98d3=this['editor']['config']['get']('list.properties'),_0x26e41a=this['editor']['plugins']['get']('TrackChangesEditing');_0x4d98d3['styles']&&_0x26e41a['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x4d98d3['reversed']&&_0x26e41a['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x4d98d3['startIndex']&&_0x26e41a['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x26e41a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x27e4e1,_0x55a9e9={}){const _0x2ab21b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x585a46=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x2ab21b['markMultiRangeBlockFormat'](_0x585a46,{'commandName':'listStyle','commandParams':[{'type':_0x55a9e9['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x500f0f,_0x476ce1={}){const _0x4666cc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4cd7fe=this['_getSuggestionBlocks'](_0xc97d4e=>_0xc97d4e['is']('element','listItem')&&'numbered'===_0xc97d4e['getAttribute']('listType'));if(_0x4cd7fe['length']<0x1)return;const _0x2bebc0=_0x4cd7fe['map'](_0x52ae71=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x52ae71,'before'),this['editor']['model']['createPositionAt'](_0x52ae71,0x0)));this['editor']['model']['change'](()=>{_0x4666cc['markMultiRangeBlockFormat'](_0x2bebc0,{'commandName':'listReversed','commandParams':[{'reversed':_0x476ce1['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x512a11,_0x4a7d29={}){const _0x5c7fba=this['editor']['plugins']['get']('TrackChangesEditing'),_0x220c8a=this['_getSuggestionBlocks'](_0x476c09=>_0x476c09['is']('element','listItem')&&'numbered'===_0x476c09['getAttribute']('listType'));if(_0x220c8a['length']<0x1)return;const _0x1ed2e7=_0x220c8a['map'](_0xe91c25=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xe91c25,'before'),this['editor']['model']['createPositionAt'](_0xe91c25,0x0)));this['editor']['model']['change'](()=>{_0x5c7fba['markMultiRangeBlockFormat'](_0x1ed2e7,{'commandName':'listStart','commandParams':[{'startIndex':_0x4a7d29['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0xd013a){if('formatBlock'!=_0xd013a['type']&&'formatInline'!=_0xd013a['type'])return;const _0x5d254d=this['editor']['locale'],{data:_0x2db314}=_0xd013a;if(!_0x2db314)return;let _0x132b5a,_0x105d52;switch(_0x2db314['commandName']){case'listStyle':_0x132b5a='*Change\x20to:*\x20%0',_0x105d52={'type':'format','content':c(_0x5d254d,_0x132b5a,c(_0x5d254d,this['_getTranslationKeyForListStyle'](_0x2db314['commandParams'][0x0]['type'])))};break;case'listReversed':_0x132b5a=_0x2db314['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x105d52={'type':'format','content':c(_0x5d254d,_0x132b5a)};break;case'listStart':_0x132b5a='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x105d52={'type':'format','content':c(_0x5d254d,_0x132b5a,_0x2db314['commandParams'][0x0]['startIndex'])};}return _0x105d52;}['_getSuggestionBlocksForListStyle'](){const _0x4c5675=this['editor']['plugins']['get']('LegacyListUtils');let _0x4a275e=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x4a275e[0x0]?.['is']('element','listItem')&&_0x4a275e['unshift'](..._0x4c5675['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x4a275e[_0x4a275e['length']-0x1]?.['is']('element','listItem')&&_0x4a275e['push'](..._0x4c5675['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x4a275e=[...new Set(_0x4a275e)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x4a275e=_0x4a275e['filter'](_0x4f14e6=>_0x4f14e6['is']('element','listItem'))),_0x4a275e;}['_getSuggestionBlocks'](_0x3fc9c2){const _0x14933a=this['editor']['plugins']['get']('LegacyListUtils');let _0x5aea5b=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x3fc9c2)['map'](_0x5a77ca=>{const _0x30a589=this['editor']['model']['createPositionAt'](_0x5a77ca,0x0);return[..._0x14933a['getSiblingNodes'](_0x30a589,'backward'),..._0x14933a['getSiblingNodes'](_0x30a589,'forward')];})['flat']();return _0x5aea5b=[...new Set(_0x5aea5b)],_0x5aea5b;}['_getTranslationKeyForListStyle'](_0x4dffe3){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x4dffe3)||'default')['toUpperCase']()+'_LIST_'+_0x4dffe3['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x32ae11{['afterInit'](){const _0x35286a=this['editor'];if(!_0x35286a['plugins']['has']('MediaEmbedEditing'))return;const _0x105cab=_0x35286a['plugins']['get']('TrackChangesEditing'),_0x20355a=_0x35286a['locale'];_0x105cab['enableCommand']('mediaEmbed'),_0x105cab['descriptionFactory']['registerElementLabel']('media',_0x202749=>c(_0x20355a,'ELEMENT_MEDIA',_0x202749)),_0x35286a['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x5b0755,{writer:_0x513309,options:_0x476970})=>{if(_0x476970['showSuggestionHighlights'])return _0x513309['createEmptyElement']('div');},'converterPriority':'high'}),_0x35286a['data']['downcastDispatcher']['on']('attribute:url:media',(_0xc87c93,_0x43a2e8,_0x4c15b1)=>{_0x4c15b1['options']['showSuggestionHighlights']&&_0xc87c93['stop']();},{'priority':'high'});}}class pt extends _0x32ae11{['afterInit'](){const _0x3d8354=this['editor'];_0x3d8354['plugins']['has']('MentionEditing')&&_0x3d8354['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x32ae11{['afterInit'](){const _0x2110fc=this['editor'];if(!_0x2110fc['plugins']['has']('MergeFieldsEditing'))return;const _0x4109b3=_0x2110fc['plugins']['get']('TrackChangesEditing'),_0x32cc66=_0x2110fc['locale'];_0x4109b3['enableCommand']('insertMergeField'),_0x4109b3['enableCommand']('insertMergeFieldBlock'),_0x4109b3['enableCommand']('insertMergeFieldImage'),_0x4109b3['descriptionFactory']['registerElementLabel']('mergeField',_0x3a590f=>c(_0x32cc66,'ELEMENT_MERGE_FIELD',_0x3a590f)),_0x4109b3['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x22958a=>c(_0x32cc66,'ELEMENT_MERGE_FIELD',_0x22958a)),_0x4109b3['descriptionFactory']['registerDescriptionCallback'](_0x4639fb=>{if('insertion'!=_0x4639fb['type']&&'deletion'!=_0x4639fb['type'])return;const _0x7a3d50=_0x4639fb['getContainedElement']();if(null==_0x7a3d50)return;const _0x584bc8=_0x2110fc['plugins']['get']('MergeFieldsEditing');let _0x2d56dd;switch(_0x584bc8['getMergeFieldType'](_0x7a3d50)){case null:return;case'image':{const _0x2b59fe=_0x584bc8['unwrapAffixes'](_0x7a3d50['getAttribute']('src'));_0x2d56dd=_0x584bc8['getLabel'](_0x2b59fe)||_0x2b59fe;break;}default:{const _0x22cc32=_0x7a3d50['getAttribute']('id');_0x2d56dd=_0x584bc8['getLabel'](_0x22cc32)||_0x22cc32;break;}}return'insertion'==_0x4639fb['type']?{'type':'insertion','content':c(_0x32cc66,'*Insert:*\x20%0','\x22'+_0x2d56dd+'\x22\x20'+c(_0x32cc66,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x32cc66,'*Remove:*\x20%0','\x22'+_0x2d56dd+'\x22\x20'+c(_0x32cc66,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x32ae11{['afterInit'](){const _0x4312d9=this['editor'],_0x17baca=_0x4312d9['plugins']['get']('TrackChangesEditing');_0x4312d9['plugins']['has']('MultiLevelList')&&(_0x17baca['enableDefaultAttributesIntegration']('multiLevelList'),_0x17baca['registerBlockAttribute']('listMarkerStyle'),_0x17baca['descriptionFactory']['registerDescriptionCallback'](_0x31ce14=>this['handleDescriptions'](_0x31ce14)));}['handleDescriptions'](_0x3c9b26){const _0x1449c2=this['editor']['locale'],{data:_0xf46fca}=_0x3c9b26,_0x4ad154={'type':'format','content':''};if(_0xf46fca&&'listMarkerStyle'==_0xf46fca['key']){if(!_0xf46fca['oldValue'])return{'type':'format','content':c(_0x1449c2,'*Set\x20format:*\x20%0',c(_0x1449c2,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xf46fca['newValue']+')'};if(!_0xf46fca['newValue']){let _0x52d654=_0x3c9b26['head'];for(;_0x52d654;){if(_0x52d654['data']&&'listType'==_0x52d654['data']['key']&&_0x52d654['data']['newValue'])return _0x4ad154;_0x52d654=_0x52d654['next'];}return{'type':'format','content':c(_0x1449c2,'*Remove\x20format:*\x20%0',c(_0x1449c2,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xf46fca['oldValue']+')'};}}}}class bt extends _0x32ae11{['afterInit'](){const _0x11533b=this['editor'];if(!_0x11533b['plugins']['has']('PageBreakEditing'))return;_0x11533b['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x7bada6=_0x11533b['plugins']['get']('TrackChangesEditing'),_0x79cb87=_0x11533b['locale'];_0x7bada6['descriptionFactory']['registerElementLabel']('pageBreak',_0x2a0593=>c(_0x79cb87,'ELEMENT_PAGE_BREAK',_0x2a0593));}}class yt extends _0x32ae11{['afterInit'](){const _0x448da2=this['editor'];if(!_0x448da2['plugins']['has']('Paragraph'))return;const _0x36513e=_0x448da2['locale'],_0xfd88f6=_0x448da2['plugins']['get']('TrackChangesEditing');_0xfd88f6['descriptionFactory']['registerElementLabel']('paragraph',_0x293444=>c(_0x36513e,'ELEMENT_PARAGRAPH',_0x293444)),_0xfd88f6['enableDefaultAttributesIntegration']('paragraph'),_0xfd88f6['enableCommand']('insertParagraph'),_0x448da2['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x448da2),{'priority':'highest'}),_0x448da2['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x59c682,_0x1088d3,_0x3e0f35)=>{_0x3e0f35['options']['showSuggestionHighlights']&&nr(_0x448da2,{'showActiveMarker':!0x1})(_0x59c682,_0x1088d3,_0x3e0f35);},{'priority':'highest'});const _0x1848f6=_0xfd88f6['descriptionFactory'];_0x1848f6['registerDescriptionCallback'](_0x2a3750=>{if('insertion'!==_0x2a3750['type'])return;const {start:_0x36c83e,end:_0x59ca16}=_0x2a3750['getFirstRange']();if(!_0x36c83e['isTouching'](_0x59ca16)||!_0x36c83e['nodeAfter'])return;const _0x3d5d7b=_0x448da2['model']['schema'],_0x47f280=_0x36c83e['nodeAfter'];return _0x3d5d7b['isBlock'](_0x47f280)&&!_0x3d5d7b['isLimit'](_0x47f280)&&_0x3d5d7b['checkChild'](_0x47f280,'$text')?{'type':'insertion','content':c(_0x36513e,'*Insert:*\x20%0',_0x1848f6['getItemLabel'](_0x47f280,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x6e2c2a=this['editor'],_0xc5e5a2=_0x6e2c2a['locale'];_0x6e2c2a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a212c=>{if('formatBlock'!=_0x1a212c['type'])return;const {data:_0x20811e}=_0x1a212c;return _0x20811e&&'paragraph'==_0x20811e['commandName']?{'type':'format','content':c(_0xc5e5a2,'*Change\x20to:*\x20%0',c(_0xc5e5a2,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x26280a,{showActiveMarker:_0x1efcb6=!0x0}={}){return(_0x5e92fa,_0x46931f,_0x6b73c1)=>{const _0x31b20c=_0x26280a['plugins']['get']('TrackChangesEditing'),_0x58de50=_0x46931f['markerRange']['start'],_0x436cd3=_0x46931f['markerRange']['end'],_0x4f62ea=_0x26280a['model']['schema'];if(!_0x58de50['isTouching'](_0x436cd3)||!_0x58de50['nodeAfter'])return;const _0x421878=_0x58de50['nodeAfter'];if(_0x4f62ea['isBlock'](_0x421878)&&!_0x4f62ea['isLimit'](_0x421878)&&_0x4f62ea['checkChild'](_0x421878,'$text')){if(!_0x6b73c1['consumable']['consume'](_0x46931f['markerRange'],_0x5e92fa['name']))return;const {authorId:_0x57681e}=_0x31b20c['_splitMarkerName'](_0x46931f['markerName']),_0x57d5f6=_0x6b73c1['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x57681e}),_0xc1de47=_0x6b73c1['mapper']['toViewPosition'](_0x436cd3);_0x1efcb6&&_0x31b20c['activeMarkers']['includes'](_0x46931f['markerName'])&&_0x6b73c1['writer']['addClass']('ck-suggestion-marker--active',_0x57d5f6),_0x6b73c1['writer']['insert'](_0xc1de47,_0x57d5f6),_0x6b73c1['mapper']['bindElementToMarker'](_0x57d5f6,_0x46931f['markerName']);}};}class jt extends _0x32ae11{['afterInit'](){const _0x5646b4=this['editor'];_0x5646b4['commands']['get']('replaceSource')&&_0x5646b4['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x32ae11{['afterInit'](){const _0x3a532f=this['editor'];if(!_0x3a532f['plugins']['has']('RemoveFormatEditing'))return;_0x3a532f['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x13a7b5=this['editor'];_0x13a7b5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x478557=>{if('formatBlock'!=_0x478557['type']&&'formatInline'!=_0x478557['type'])return;const {data:_0x36a5e1}=_0x478557;return _0x36a5e1&&'removeFormat'==_0x36a5e1['commandName']?{'type':'format','content':c(_0x13a7b5['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x32ae11{['afterInit'](){const _0x54639b=this['editor'];if(!_0x54639b['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x58b3f1=_0x54639b['plugins']['get']('TrackChangesEditing');_0x58b3f1['enableCommand']('goToPreviousRestrictedEditingException'),_0x58b3f1['enableCommand']('goToNextRestrictedEditingException');const _0x4be002=_0x54639b['plugins']['get']('RestrictedEditingModeEditing');_0x4be002['enableCommand']('trackChanges'),_0x4be002['enableCommand']('acceptSuggestion'),_0x4be002['enableCommand']('discardSuggestion'),_0x4be002['enableCommand']('acceptAllSuggestions'),_0x4be002['enableCommand']('discardAllSuggestions'),_0x4be002['enableCommand']('acceptSelectedSuggestions'),_0x4be002['enableCommand']('discardSelectedSuggestions');}}class It extends _0x32ae11{static get['requires'](){return[_0x5ecba6];}['init'](){const _0x11e39f=this['editor'],_0x5f2f6d=_0x11e39f['plugins']['get']('TrackChangesEditing');_0x5f2f6d['enableCommand']('shiftEnter'),_0x11e39f['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x11e39f),{'priority':'high'}),_0x11e39f['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x11e39f),{'priority':'high'}),_0x11e39f['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1f3ef4,_0x20a0c2,_0x4ab042)=>{_0x4ab042['options']['showSuggestionHighlights']&&je(_0x11e39f,{'showActiveMarker':!0x1})(_0x1f3ef4,_0x20a0c2,_0x4ab042);}),_0x5f2f6d['descriptionFactory']['registerElementLabel']('softBreak',_0x529ab4=>c(_0x11e39f['locale'],'ELEMENT_LINE_BREAK',_0x529ab4));}}function je(_0x227d0d,{showActiveMarker:_0x46a9fc=!0x0}={}){return(_0x43751e,_0x4b8302,_0x54228b)=>{const _0x551e60=_0x227d0d['plugins']['get']('TrackChangesEditing');if(!_0x54228b['consumable']['test'](_0x4b8302['markerRange'],_0x43751e['name']))return;const _0x432e10=_0x227d0d['model'];for(const _0x509ce4 of _0x4b8302['markerRange']['getItems']()){if(!_0x509ce4['is']('element','softBreak'))continue;const _0x4a641b='deletion'==_0x4b8302['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x49f0ca}=_0x551e60['_splitMarkerName'](_0x4b8302['markerName']),_0x3ded77=_0x54228b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4a641b,'data-author-id':_0x49f0ca}),_0x482a47=_0x54228b['mapper']['toViewPosition'](_0x432e10['createPositionBefore'](_0x509ce4));_0x46a9fc&&_0x551e60['activeMarkers']['includes'](_0x4b8302['markerName'])&&_0x54228b['writer']['addClass']('ck-suggestion-marker--active',_0x3ded77),_0x54228b['writer']['insert'](_0x482a47,_0x3ded77),_0x54228b['mapper']['bindElementToMarker'](_0x3ded77,_0x4b8302['markerName']);}};}class _t extends _0x32ae11{['afterInit'](){const _0x1f22f0=this['editor'],_0x7196e3=_0x1f22f0['model'],_0x408be9=_0x1f22f0['locale'];if(!_0x1f22f0['plugins']['has']('StandardEditingModeEditing'))return;const _0x4002f7=_0x1f22f0['plugins']['get']('TrackChangesEditing'),_0x2b83c8='restrictedEditingException',_0x6ca215=_0x1f22f0['commands']['get'](_0x2b83c8);_0x4002f7['enableCommand'](_0x2b83c8,(_0x452807,_0x18128f={})=>{const _0xd217d3=_0x7196e3['document']['selection'];if(_0xd217d3['isCollapsed'])return void _0x452807(_0x18128f);const _0x178e5d=void 0x0!==_0x18128f['forceValue']?_0x18128f['forceValue']:!_0x6ca215['value'];_0x7196e3['change'](()=>{const _0x2a1fdf=Array['from'](_0xd217d3['getRanges']());for(const _0x1baa38 of _0x2a1fdf){const _0xafdeaa=_0x178e5d?[_0x1baa38]:io(_0x2b83c8,_0x1baa38,_0x7196e3);for(const _0x2ceb12 of _0xafdeaa)_0x4002f7['markInlineFormat'](_0x2ceb12,{'commandName':_0x2b83c8,'commandParams':[{'forceValue':_0x178e5d}]});}});}),_0x4002f7['descriptionFactory']['registerDescriptionCallback'](_0x215993=>{if('formatBlock'!=_0x215993['type']&&'formatInline'!=_0x215993['type'])return;const {data:_0x1ec0e5}=_0x215993;return _0x1ec0e5&&_0x1ec0e5['commandName']==_0x2b83c8?_0x1ec0e5['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x408be9,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x408be9,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x32ae11{['afterInit'](){const _0xc25949=this['editor'];if(!_0xc25949['plugins']['has']('Style')||!_0xc25949['plugins']['has']('DataSchema'))return;const _0x5afdab=_0xc25949['plugins']['get']('TrackChangesEditing'),_0xb3ca66=_0xc25949['locale'],_0x546139=_0xc25949['config']['get']('style')||{},_0x4cc670=_0xc25949['plugins']['get']('GeneralHtmlSupport'),_0xdf5568=_0xc25949['plugins']['get']('StyleUtils')['normalizeConfig'](_0xc25949['plugins']['get']('DataSchema'),_0x546139['definitions']);_0x5afdab['enableDefaultAttributesIntegration']('style');const _0x49a9df=new Set();for(const _0x1dc2b5 of _0xdf5568['block']){const _0x1b8aa2=_0x4cc670['getGhsAttributeNameForElement'](_0x1dc2b5['element']);_0x49a9df['add'](_0x1b8aa2);}const _0x2383f2=new Set();for(const _0x22eba8 of _0xdf5568['inline']){const _0x462f51=_0x4cc670['getGhsAttributeNameForElement'](_0x22eba8['element']);_0x2383f2['add'](_0x462f51);for(const _0x236f60 of _0x22eba8['ghsAttributes'])_0x2383f2['add'](_0x236f60);}for(const _0x38694a of _0x49a9df)_0x5afdab['registerBlockAttribute'](_0x38694a),_0x5afdab['descriptionFactory']['registerAttributeLabel'](_0x38694a,c(_0xb3ca66,'FORMAT_STYLE'));for(const _0xbc66c7 of _0x2383f2)_0x5afdab['registerInlineAttribute'](_0xbc66c7),_0x5afdab['descriptionFactory']['registerAttributeLabel'](_0xbc66c7,c(_0xb3ca66,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5026fe=this['editor'],_0x30f77d=_0x5026fe['locale'];_0x5026fe['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47783b=>{if('formatBlock'!=_0x47783b['type']&&'formatInline'!=_0x47783b['type'])return;const {data:_0x19b115}=_0x47783b;return _0x19b115&&'style'===_0x19b115['commandName']?_0x19b115['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x30f77d,'*Set\x20format:*\x20%0',_0x19b115['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x30f77d,'*Remove\x20format:*\x20%0',_0x19b115['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x32ae11{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x4e9a83){super(_0x4e9a83),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x1b97c1=this['editor'],_0x38cec4=_0x1b97c1['model']['document']['selection'];if(!_0x1b97c1['plugins']['has']('TableEditing'))return;const _0x47b936=_0x1b97c1['locale'],_0x141a2f=_0x1b97c1['plugins']['get']('TrackChangesEditing'),_0x250c4f=_0x1b97c1['plugins']['get']('TableUtils');_0x141a2f['descriptionFactory']['registerElementLabel']('table',_0x45df3b=>c(_0x47b936,'ELEMENT_TABLE',_0x45df3b)),this['_setupColumnsRowsFixing'](),_0x141a2f['enableCommand']('insertTable'),_0x141a2f['enableCommand']('selectTableRow'),_0x141a2f['enableCommand']('selectTableColumn');for(const _0x4a772b of['insertTableRowAbove','insertTableRowBelow']){const _0x3e96ad=_0x1b97c1['commands']['get'](_0x4a772b);_0x141a2f['enableCommand'](_0x4a772b,_0x43766a=>{_0x1b97c1['model']['change'](_0x37ec17=>{_0x43766a();const _0x41b81d='above'===_0x3e96ad['order'],_0x531007=_0x250c4f['getSelectionAffectedTableCells'](_0x38cec4),_0x44ea26=_0x250c4f['getRowIndexes'](_0x531007),_0x8f376=_0x41b81d?_0x44ea26['first']-0x1:_0x44ea26['last']+0x1,_0x3a2560=_0x531007[0x0]['findAncestor']('table'),_0x26910c=_0x250c4f['createTableWalker'](_0x3a2560,{'startRow':_0x8f376,'endRow':_0x8f376}),_0x56865c=Array['from'](_0x26910c)['map'](_0x1d331f=>_0x37ec17['createRangeOn'](_0x1d331f['cell']));_0x141a2f['markMultiRangeInsertion'](_0x56865c,'tableRow');});});}for(const _0x577af0 of['insertTableColumnLeft','insertTableColumnRight']){const _0x5d18d9=_0x1b97c1['commands']['get'](_0x577af0);_0x141a2f['enableCommand'](_0x577af0,_0x3e47ca=>{_0x1b97c1['model']['change'](_0x4197e2=>{_0x3e47ca();const _0x241252='left'===_0x5d18d9['order'],_0x94d56f=_0x250c4f['getSelectionAffectedTableCells'](_0x38cec4),_0x2233b7=_0x250c4f['getColumnIndexes'](_0x94d56f),_0x3c967b=_0x241252?_0x2233b7['first']-0x1:_0x2233b7['last']+0x1,_0x4ec852=_0x94d56f[0x0]['findAncestor']('table'),_0x1aef8e=_0x250c4f['createTableWalker'](_0x4ec852,{'startRow':0x0,'column':_0x3c967b,'includeAllSlots':!0x1}),_0x2d6211=Array['from'](_0x1aef8e)['map'](_0x26ba44=>_0x4197e2['createRangeOn'](_0x26ba44['cell']));_0x141a2f['markMultiRangeInsertion'](_0x2d6211,'tableColumn');});});}for(const _0x2c800b of['removeTableRow','removeTableColumn']){const _0x2243db=_0x2c800b['substr'](0xb),_0x373dda=_0x2243db['toLowerCase'](),_0x4d66d0=_0x373dda['substr'](0x0,0x3)+'span',_0x212d1a='table'+_0x2243db,_0x56fb3f='min'+_0x2243db,_0xe4e58='max'+_0x2243db;_0x141a2f['enableCommand'](_0x2c800b,()=>{_0x1b97c1['model']['change'](_0x27047a=>{const _0xa6c7f9=_0x250c4f['getSelectionAffectedTableCells'](_0x38cec4),_0x43c49e=_0xa6c7f9[0x0]['findAncestor']('table');let _0xe28413;if('removeTableRow'==_0x2c800b){const _0x23ee45=_0x250c4f['getRowIndexes'](_0xa6c7f9);_0xe28413={'startRow':_0x23ee45['first'],'endRow':_0x23ee45['last'],'includeAllSlots':!0x0};}else{const _0x6798f7=_0x250c4f['getColumnIndexes'](_0xa6c7f9);_0xe28413={'startColumn':_0x6798f7['first'],'endColumn':_0x6798f7['last'],'includeAllSlots':!0x0};}const _0xbab738=_0x250c4f['createTableWalker'](_0x43c49e,_0xe28413),_0xa190d7=Array['from'](_0xbab738)['map'](({cell:_0x2e89f7})=>_0x2e89f7),_0x294e0e=Ne(_0xa190d7['filter'](_0x315e0c=>_0x315e0c['hasAttribute'](_0x4d66d0))),_0x2bf41d=Ne(_0xa190d7['filter'](_0x49956f=>!_0x49956f['hasAttribute'](_0x4d66d0)))['map'](_0x33d32c=>_0x27047a['createRangeOn'](_0x33d32c)),_0x26901e=_0x141a2f['markMultiRangeDeletion'](_0x2bf41d,_0x212d1a);if(_0x26901e&&('tableRow'==_0x26901e['subType']||'tableColumn'==_0x26901e['subType'])){const _0x368838=this['_getSuggestionCoords'](_0x26901e);for(const _0x195cb9 of _0x294e0e){const _0x49b208=_0x27047a['createRangeOn'](_0x195cb9),_0x50eb54=_0x250c4f['getCellLocation'](_0x195cb9),_0xcae98d=_0x195cb9['getAttribute'](_0x4d66d0)-0x1,_0x47f64e=_0x368838[_0x56fb3f],_0x19cb26=_0x368838[_0xe4e58];_0x47f64e<=_0x50eb54[_0x373dda]&&_0x50eb54[_0x373dda]+_0xcae98d<=_0x19cb26&&_0x26901e['addRange'](_0x49b208);}}});});}function _0x529cac(_0x3ad591){const _0x3e0ef7=Array['from'](_0x38cec4['getRanges']())['map'](_0x5c0a8=>_0x54bc73['fromRange'](_0x5c0a8));_0x1b97c1['model']['change'](_0x42cfdb=>{const _0x4ad8de=_0x42cfdb['batch'];_0x3ad591=_0x3ad591['filter'](_0x4b9d6b=>'$graveyard'!=_0x4b9d6b['root']['rootName']),_0x42cfdb['setSelection'](_0x3ad591),_0x1b97c1['commands']['get']('removeTableRow')['refresh'](),_0x1b97c1['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x1b97c1['model']['enqueueChange'](()=>{_0x1b97c1['model']['enqueueChange'](_0x4ad8de,_0x2a11ae=>{const _0x22de53=_0x3e0ef7['filter'](_0x4e1a5a=>'$graveyard'!=_0x4e1a5a['root']['rootName']);_0x22de53['length']>0x0&&_0x2a11ae['setSelection'](_0x22de53);for(const _0x47e107 of _0x3e0ef7)_0x47e107['detach']();});});});}function _0x3e0a83(_0xc1ff1e){_0x1b97c1['model']['change'](_0x1725bf=>{const _0x1b7f47=Array['from'](_0x38cec4['getRanges']())['map'](_0x13c8ae=>_0x54bc73['fromRange'](_0x13c8ae)),_0x2dc35a=[];for(const _0x5d6f06 of _0xc1ff1e)for(const _0x503f67 of _0x5d6f06['getItems']({'shallow':!0x0}))_0x2dc35a['push'](_0x503f67);for(const _0x22fd25 of _0x2dc35a)'$graveyard'!=_0x22fd25['root']['rootName']&&(_0x1725bf['setSelection'](_0x1725bf['createPositionAt'](_0x22fd25,0x0)),_0x1b97c1['commands']['get']('removeTableColumn')['refresh'](),_0x1b97c1['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0xf56815=_0x1b7f47['filter'](_0x375819=>'$graveyard'!=_0x375819['root']['rootName']);_0xf56815['length']>0x0&&_0x1725bf['setSelection'](_0xf56815);for(const _0x2dd83b of _0x1b7f47)_0x2dd83b['detach']();});}function _0x1b7030(_0x36b276,_0x43b82e){return _0x43b82e['every'](_0x22b246=>_0x36b276['some'](_0x523990=>_0x523990['end']['isEqual'](_0x22b246['start'])||_0x22b246['end']['isEqual'](_0x523990['start'])));}function _0x31ba8c(_0x3f78f7,_0x579d18){return!_0x3f78f7['some'](_0x114ea6=>_0x579d18['some'](_0x5ebbcc=>_0x114ea6['isIntersecting'](_0x5ebbcc)))&&_0x3f78f7['some'](_0x1c55cf=>_0x579d18['some'](_0x52e042=>_0x1c55cf['end']['isTouching'](_0x52e042['start'])));}_0x1b97c1['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x53e1af,_0x468215,_0x6aad02)=>{if(!_0x6aad02['options']['showSuggestionHighlights'])return;const _0x5d74e4=_0x468215['item'];if(!_0x5d74e4)return;const _0x1717c7=_0x6aad02['mapper']['toViewElement'](_0x5d74e4);function _0x35adb0(_0x151c8e){return Array['isArray'](_0x151c8e)?_0x151c8e:[_0x151c8e];}_0x1717c7&&'tableCell'===_0x5d74e4['name']&&_0x36f102(_0x1717c7,_0x6aad02['writer'],(_0x30127e,_0x160563,_0x547c11)=>_0x547c11['addClass'](_0x35adb0(_0x160563['classes']),_0x30127e),(_0x1235d6,_0x3d87df,_0x148e68)=>_0x148e68['removeClass'](_0x35adb0(_0x3d87df['classes']),_0x1235d6));},{'priority':'highest'}),_0x141a2f['descriptionFactory']['registerDescriptionCallback'](_0x50424c=>{if('insertion'!=_0x50424c['type']&&'deletion'!=_0x50424c['type'])return;const _0x5ecacf=_0x50424c['getContainedElement']();if(null!=_0x5ecacf&&_0x5ecacf['is']('element','table')){if('insertion'==_0x50424c['type']){const _0x19d48b=_0x50424c['getItems']()['filter'](_0x57451a=>_0x57451a['is']('$textProxy'))['map'](_0x25c7ee=>_0x25c7ee['data']);if(_0x19d48b['length'])return{'type':'insertion','content':c(_0x47b936,'*Insert:*\x20%0',c(_0x47b936,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x19d48b['join']('\x20')+'\x22'))};}if('deletion'==_0x50424c['type']){const _0x499aa0=_0x50424c['getItems']()['filter'](_0x3304aa=>_0x3304aa['is']('$textProxy'))['map'](_0x3de5e1=>_0x3de5e1['data']);if(_0x499aa0['length'])return{'type':'deletion','content':c(_0x47b936,'*Remove:*\x20%0',c(_0x47b936,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x499aa0['join']('\x20')+'\x22'))};}}}),_0x141a2f['descriptionFactory']['registerDescriptionCallback'](_0x40ce74=>{if('tableRow'==_0x40ce74['subType']){const _0x34378f=_0x40ce74['getItems']()['filter'](_0x336177=>_0x336177['is']('$textProxy'))['map'](_0xa5d44c=>_0xa5d44c['data']),_0x1fd7a2=this['_getSuggestionCoords'](_0x40ce74),_0x1a697d=_0x1fd7a2['maxRow']-_0x1fd7a2['minRow']+0x1;if('insertion'==_0x40ce74['type'])return _0x34378f['length']?{'type':'insertion','content':c(_0x47b936,'*Insert:*\x20%0',c(_0x47b936,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1a697d,'\x22'+_0x34378f['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x47b936,'*Insert:*\x20%0',c(_0x47b936,'ELEMENT_TABLE_ROW',_0x1a697d))};if('deletion'==_0x40ce74['type'])return _0x34378f['length']?{'type':'deletion','content':c(_0x47b936,'*Remove:*\x20%0',c(_0x47b936,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1a697d,'\x22'+_0x34378f['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x47b936,'*Remove:*\x20%0',c(_0x47b936,'ELEMENT_TABLE_ROW',_0x1a697d))};}if('tableColumn'==_0x40ce74['subType']){const _0x44bfc1=_0x40ce74['getItems']()['filter'](_0x319412=>_0x319412['is']('$textProxy'))['map'](_0x50d655=>_0x50d655['data']),_0x42eb36=this['_getSuggestionCoords'](_0x40ce74),_0x6297e5=_0x42eb36['maxColumn']-_0x42eb36['minColumn']+0x1;if('insertion'==_0x40ce74['type'])return _0x44bfc1['length']?{'type':'insertion','content':c(_0x47b936,'*Insert:*\x20%0',c(_0x47b936,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x6297e5,'\x22'+_0x44bfc1['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x47b936,'*Insert:*\x20%0',c(_0x47b936,'ELEMENT_TABLE_COLUMN',_0x6297e5))};if('deletion'==_0x40ce74['type'])return _0x44bfc1['length']?{'type':'deletion','content':c(_0x47b936,'*Remove:*\x20%0',c(_0x47b936,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x6297e5,'\x22'+_0x44bfc1['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x47b936,'*Remove:*\x20%0',c(_0x47b936,'ELEMENT_TABLE_COLUMN',_0x6297e5))};}}),_0x141a2f['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x529cac),_0x141a2f['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x529cac),_0x141a2f['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x3e0a83),_0x141a2f['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x3e0a83),_0x141a2f['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x1b7030),_0x141a2f['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x1b7030),_0x141a2f['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x31ba8c),_0x141a2f['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x31ba8c);}['_acceptFormatSuggestionCallbackFactory'](){const _0x3dfd54=this['editor'],_0x36b611=_0x3dfd54['model']['document']['selection'];return(_0x113d6f,_0x66dd38)=>{_0x3dfd54['model']['change'](_0x878598=>{const {commandName:_0x31b126,commandParams:_0x3fd052}=_0x66dd38;let _0x526692=_0x113d6f[0x0]['end']['nodeBefore'];_0x3fd052&&_0x3fd052[0x0]&&!0x1===_0x3fd052[0x0]['forceValue']&&(_0x526692=_0x113d6f[0x0]['start']['nodeAfter']);const _0x4baa33=_0x878598['createRangeIn'](_0x526692);if('$graveyard'==_0x4baa33['root']['rootName'])return;const _0x52adc9=Array['from'](_0x36b611['getRanges']())['map'](_0x1f3a01=>_0x54bc73['fromRange'](_0x1f3a01));_0x878598['setSelection'](_0x4baa33),_0x3dfd54['commands']['get'](_0x31b126)['refresh'](),_0x3fd052['push']({'forceDefaultExecution':!0x0}),_0x3dfd54['execute'](_0x31b126,..._0x3fd052);const _0x443638=_0x52adc9['filter'](_0x5f3e97=>'$graveyard'!=_0x5f3e97['root']['rootName']);_0x443638['length']>0x0&&_0x878598['setSelection'](_0x443638);for(const _0x226b7a of _0x52adc9)_0x226b7a['detach']();});};}['_getCoordsForCells'](_0x5a6bc3){const _0x10f523=this['editor']['plugins']['get']('TableUtils');let _0x177261=Number['MAX_SAFE_INTEGER'],_0x3bf31b=Number['MIN_SAFE_INTEGER'],_0x325789=Number['MAX_SAFE_INTEGER'],_0x4cb2fa=Number['MIN_SAFE_INTEGER'];for(const _0x39f758 of _0x5a6bc3){if('$graveyard'==_0x39f758['root']['rootName'])continue;const {row:_0x279458,column:_0xf24d26}=_0x10f523['getCellLocation'](_0x39f758),_0x414ed9=_0x39f758['hasAttribute']('rowspan')?_0x39f758['getAttribute']('rowspan')-0x1:0x0,_0x4cc933=_0x39f758['hasAttribute']('colspan')?_0x39f758['getAttribute']('colspan')-0x1:0x0;_0x177261=_0x279458<_0x177261?_0x279458:_0x177261,_0x3bf31b=_0x279458+_0x414ed9>_0x3bf31b?_0x279458+_0x414ed9:_0x3bf31b,_0x325789=_0xf24d26<_0x325789?_0xf24d26:_0x325789,_0x4cb2fa=_0xf24d26+_0x4cc933>_0x4cb2fa?_0xf24d26+_0x4cc933:_0x4cb2fa;}return{'minRow':_0x177261,'maxRow':_0x3bf31b,'minColumn':_0x325789,'maxColumn':_0x4cb2fa};}['_setupColumnsRowsFixing'](){const _0x4aed21=this['editor'],_0xfe6fb4=_0x4aed21['plugins']['get']('TrackChangesEditing'),_0xfc72e1=_0x4aed21['plugins']['get']('TableUtils');_0x4aed21['model']['document']['on']('change:data',()=>{const _0x307ba5=Array['from'](_0x4aed21['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x991aec,data:_0x455cf1}of _0x307ba5){const {group:_0x3af02e,id:_0x5c708e,subType:_0x1813c5}=_0xfe6fb4['_splitMarkerName'](_0x991aec);if('suggestion'!=_0x3af02e)continue;if(null!=_0x455cf1['oldRange'])continue;const _0x7f7cdd=_0xfe6fb4['getSuggestion'](_0x5c708e);this['_tablePostFixingSubtypes']['includes'](_0x1813c5)&&this['_tableSuggestions']['add'](_0x7f7cdd);}},{'priority':'low'});const _0x44e34d=(_0x240213,_0x157bf7)=>{let _0xa3e32c=!0x1;const _0x59bb3b=_0x157bf7['createRangeOn'](_0x240213),_0x2a2414=_0x240213['findAncestor']('table'),_0x1803a9=_0xfc72e1['getCellLocation'](_0x240213);for(const _0x55d5b3 of this['_tableSuggestions']){const _0x45d9cd=_0x55d5b3['subType'],_0x21df55=_0x45d9cd['startsWith']('tablePaste'),_0x1a12bf=_0x45d9cd['substr'](_0x21df55?0xa:0x5),_0x6ee4b1=_0x1a12bf['toLowerCase'](),_0x3eeb03=_0x6ee4b1['substr'](0x0,0x3)+'span',_0x4be72e='min'+_0x1a12bf,_0xb9e1f7='max'+_0x1a12bf;if(!_0x55d5b3['isInContent'])continue;if(_0x2a2414!=_0x55d5b3['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x55d5b3['isIntersectingWithRange'](_0x59bb3b))continue;const _0x3b478c=_0x240213['hasAttribute'](_0x3eeb03)?_0x240213['getAttribute'](_0x3eeb03)-0x1:0x0,_0xbc9340=this['_getSuggestionCoords'](_0x55d5b3),_0x158c3c=_0xbc9340[_0x4be72e],_0x41ae4a=_0xbc9340[_0xb9e1f7];_0x158c3c<=_0x1803a9[_0x6ee4b1]&&_0x1803a9[_0x6ee4b1]+_0x3b478c<=_0x41ae4a&&(_0x55d5b3['addRange'](_0x59bb3b),_0xa3e32c=!0x0);}return _0xa3e32c;};_0x4aed21['model']['document']['registerPostFixer'](_0x220f76=>{let _0x5172b5=!0x1;for(const _0x5edd7b of _0x4aed21['model']['document']['differ']['getChanges']())if('insert'==_0x5edd7b['type']){if('tableRow'==_0x5edd7b['name']){for(const _0x4452ea of _0x5edd7b['position']['nodeAfter']['getChildren']())_0x5172b5=_0x5172b5||_0x44e34d(_0x4452ea,_0x220f76);}else'tableCell'==_0x5edd7b['name']&&(_0x5172b5=_0x5172b5||_0x44e34d(_0x5edd7b['position']['nodeAfter'],_0x220f76));}return _0x5172b5;});}['_getSuggestionCoords'](_0x4d8f82){return this['_getCoordsForCells'](_0x4d8f82['getRanges']()['map'](_0x10e8a0=>_0x10e8a0['start']['nodeAfter']));}}function Ne(_0x2fd304){return Array['from'](new Set(_0x2fd304)['values']());}class Nt extends _0x32ae11{static get['requires'](){return[Ct];}['afterInit'](){const _0x319306=this['editor'],_0x4d68e4=_0x319306['model']['document']['selection'],_0x54b7dd=_0x319306['locale'];if(!_0x319306['plugins']['has']('TableEditing'))return;const _0x5497e8=_0x319306['plugins']['get']('TrackChangesEditing'),_0x506088=_0x319306['plugins']['get']('TableUtils'),_0x468f65=_0x319306['plugins']['get'](Ct);_0x468f65['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x5497e8['enableCommand']('mergeTableCells',()=>{const _0x2ca6e9=_0x506088['getSelectionAffectedTableCells'](_0x319306['model']['document']['selection']);_0x319306['model']['change'](()=>{_0x5497e8['markMultiRangeBlockFormat'](_0x2ca6e9,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x319306['commands']['get']('mergeTableCells')['on']('execute',(_0x539d78,_0x170609)=>{_0x319306['commands']['get']('trackChanges')['value']&&(_0x170609['length']>0x0&&_0x170609[_0x170609['length']-0x1]&&_0x170609[_0x170609['length']-0x1]['forceDefaultExecution']||_0x5497e8['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x539d78['stop']());},{'priority':'highest'});for(const _0x537cce of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x581d83=_0x319306['commands']['get'](_0x537cce);_0x5497e8['enableCommand'](_0x537cce,()=>{const _0x17f3d0=_0x319306['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5cad40=>_0x5cad40['is']('element','tableCell')),_0x2f08be=_0x581d83['value'];_0x319306['model']['change'](()=>{_0x5497e8['markMultiRangeBlockFormat']([_0x17f3d0,_0x2f08be],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x765c9d of['splitTableCellVertically','splitTableCellHorizontally']){const _0x4ab5b7=_0x319306['commands']['get'](_0x765c9d);_0x5497e8['enableCommand'](_0x765c9d,()=>{const _0x5193aa=_0x506088['getSelectionAffectedTableCells'](_0x319306['model']['document']['selection'])[0x0],_0xf7307c=_0x5193aa['findAncestor']('table'),{column:_0x49a0e3,row:_0xbc1134}=_0x506088['getCellLocation'](_0x5193aa);let _0x48a42b=[];if('horizontally'==_0x4ab5b7['direction']){const _0x25b058=_0x506088['createTableWalker'](_0xf7307c,{'startRow':_0xbc1134,'endRow':_0xbc1134,'includeAllSlots':!0x0});_0x48a42b=Array['from'](_0x25b058)['map'](_0x228e7e=>_0x228e7e['cell']);}else{const _0x3224d3=_0x506088['createTableWalker'](_0xf7307c,{'column':_0x49a0e3,'includeAllSlots':!0x0});_0x48a42b=Array['from'](_0x3224d3)['map'](_0x492214=>_0x492214['cell']);}_0x319306['model']['change'](_0x27d178=>{_0x5497e8['markBlockFormat'](_0x27d178['createRangeOn'](_0x5193aa),{'commandName':_0x765c9d,'commandParams':[]},_0x48a42b,_0x765c9d);});});}_0x5497e8['descriptionFactory']['registerDescriptionCallback'](_0x1d3cd1=>{if('formatBlock'!=_0x1d3cd1['type']&&'formatInline'!=_0x1d3cd1['type'])return;const {data:_0x38434a}=_0x1d3cd1;return _0x38434a&&'mergeTableCells'==_0x38434a['commandName']?{'type':'format','content':c(_0x54b7dd,'*Merge\x20cells*')}:void 0x0;}),_0x5497e8['descriptionFactory']['registerDescriptionCallback'](_0xe3f193=>{if('formatBlock'!=_0xe3f193['type']&&'formatInline'!=_0xe3f193['type'])return;const {data:_0x5447f5}=_0xe3f193;return _0x5447f5?'splitTableCellVertically'==_0x5447f5['commandName']?{'type':'format','content':c(_0x54b7dd,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x5447f5['commandName']?{'type':'format','content':c(_0x54b7dd,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x412007=_0x468f65['_acceptFormatSuggestionCallbackFactory']();for(const _0x23c78b of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x5497e8['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x23c78b,'accept',_0x412007);for(const _0x41b617 of['splitTableCellVertically','splitTableCellHorizontally'])_0x5497e8['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x41b617,'accept',_0x412007);_0x5497e8['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x1344b7=>{_0x319306['model']['change'](_0x295eb5=>{const _0x4c6b80=Array['from'](_0x4d68e4['getRanges']())['map'](_0x44c1f3=>_0x54bc73['fromRange'](_0x44c1f3));_0x295eb5['setSelection'](_0x1344b7),_0x319306['commands']['get']('mergeTableCells')['refresh'](),_0x319306['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x568a9f=_0x4c6b80['filter'](_0x45472b=>'$graveyard'!=_0x45472b['root']['rootName']);_0x568a9f['length']>0x0&&_0x295eb5['setSelection'](_0x568a9f);for(const _0x31579b of _0x4c6b80)_0x31579b['detach']();});});for(const _0x5b1ed4 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x395642=_0x319306['commands']['get'](_0x5b1ed4);_0x395642['on']('set:isEnabled',(_0x134858,_0x2a23e0,_0x4311af)=>{if(_0x4311af){const _0x3e5b16=_0x319306['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2949dd=>_0x2949dd['is']('element','tableCell'));this['_areMergableCells'](_0x395642['value'],_0x3e5b16)||(_0x134858['return']=!0x1,_0x134858['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x1770af=this['editor']['commands']['get']('mergeTableCells'),_0x519e99=this['editor']['plugins']['get']('TableUtils');if(!_0x1770af['isEnabled'])return!0x1;const _0x45f8cd=_0x519e99['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x59f093 of _0x45f8cd)for(const _0x1c0bdc of _0x45f8cd)if(_0x59f093!=_0x1c0bdc&&!this['_areMergableCells'](_0x59f093,_0x1c0bdc))return!0x1;return!0x0;}['_areMergableCells'](_0x5d0bec,_0x14031a){const _0x44963c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2d185c=this['editor']['model']['createRangeOn'](_0x5d0bec),_0x49402e=this['editor']['model']['createRangeOn'](_0x14031a),_0x3bd090=new Set(),_0x3f6ed4=new Set();for(const _0x4a6356 of _0x44963c['getSuggestions']())if(('insertion'==_0x4a6356['type']||'deletion'==_0x4a6356['type']||'mergeTableCells'==_0x4a6356['subType'])&&_0x4a6356['isInContent']){for(const _0x314309 of _0x4a6356['getRanges']())_0x314309['containsRange'](_0x2d185c,!0x0)&&_0x3bd090['add'](_0x4a6356['type']+':'+_0x4a6356['author']['id']),_0x314309['containsRange'](_0x49402e,!0x0)&&_0x3f6ed4['add'](_0x4a6356['type']+':'+_0x4a6356['author']['id']);}if(_0x3bd090['size']!=_0x3f6ed4['size'])return!0x1;for(const _0x2fefe2 of _0x3bd090)if(!_0x3f6ed4['has'](_0x2fefe2))return!0x1;return!0x0;}}class Dt extends _0x32ae11{static get['requires'](){return[Ct];}['afterInit'](){const _0xc83bdb=this['editor'];if(!_0xc83bdb['plugins']['has']('TableEditing'))return;const _0x2cae40=_0xc83bdb['locale'],_0x395b94=_0xc83bdb['plugins']['get']('TrackChangesEditing');_0x395b94['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x395b94['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x395b94['registerBlockAttribute']('headingRows'),_0x395b94['registerBlockAttribute']('headingColumns'),_0x395b94['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x2cae40,'FORMAT_HEADER_ROW')),_0x395b94['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x2cae40,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x41d91e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x505cc9=this['editor']['plugins']['get']('TableUtils'),_0x36e91c=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x138a46({showActiveMarker:_0x15b97f=!0x0,setDataAttribute:_0x29a0e7=!0x0}={}){return(_0x505a0b,_0x3682a7,_0xdbbf3)=>{const {type:_0xfb192e,id:_0x21ed2f}=_0x41d91e['_splitMarkerName'](_0x3682a7['markerName']),_0x51c003=_0x41d91e['getSuggestion'](_0x21ed2f),_0x414898=_0x51c003['data'];if('formatBlock'!=_0x51c003['type']||!_0x414898||'setTableColumnHeader'!=_0x414898['commandName'])return;if(_0x3682a7['item'])return void _0x505a0b['stop']();if(!_0xdbbf3['consumable']['consume'](_0x3682a7['markerRange'],_0x505a0b['name']))return;const _0x1595f8=_0x3682a7['markerRange']['start']['nodeAfter'],_0x591582=_0x3682a7['markerRange']['end']['nodeBefore'],_0x588362=_0x1595f8['parent']['parent'],{column:_0x4ef216}=_0x505cc9['getCellLocation'](_0x1595f8),{column:_0x2cd8f0}=_0x505cc9['getCellLocation'](_0x591582);for(let _0x35146c=_0x4ef216;_0x35146c<=_0x2cd8f0;_0x35146c++){const _0x18c2d0=_0x505cc9['createTableWalker'](_0x588362,{'column':_0x35146c,'includeAllSlots':!0x1});for(const _0x30e097 of _0x18c2d0){const _0x5b4ddc=_0x30e097['cell'],_0x5cfc25=_0xdbbf3['mapper']['toViewElement'](_0x5b4ddc);_0xdbbf3['writer']['addClass']('ck-suggestion-marker-'+_0xfb192e,_0x5cfc25),_0x29a0e7&&_0xdbbf3['writer']['setAttribute']('data-suggestion',_0x21ed2f,_0x5cfc25),_0xdbbf3['mapper']['bindElementToMarker'](_0x5cfc25,_0x3682a7['markerName']),_0x15b97f&&(_0x41d91e['activeMarkers']['includes'](_0x3682a7['markerName'])?_0xdbbf3['writer']['addClass']('ck-suggestion-marker--active',_0x5cfc25):_0xdbbf3['writer']['removeClass']('ck-suggestion-marker--active',_0x5cfc25));}}};}_0x41d91e['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x36e91c),_0x41d91e['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x36e91c),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x138a46(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5dc4de,_0x1f544d,_0x506314)=>{_0x506314['options']['showSuggestionHighlights']&&_0x138a46({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x5dc4de,_0x1f544d,_0x506314);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x3acf33,_0x5e0220,_0x39ff83)=>{const {type:_0x81d486,id:_0x462762}=_0x41d91e['_splitMarkerName'](_0x5e0220['markerName']),_0x249bb2=_0x41d91e['getSuggestion'](_0x462762),_0x3690b4=_0x249bb2['data'];if('formatBlock'!=_0x249bb2['type']||!_0x3690b4||'setTableColumnHeader'!=_0x3690b4['commandName'])return;const _0x187948=_0x39ff83['mapper']['markerNameToElements'](_0x5e0220['markerName']);if(_0x187948){for(const _0x477b4d of _0x187948)_0x39ff83['writer']['removeClass']('ck-suggestion-marker-'+_0x81d486,_0x477b4d),_0x39ff83['writer']['removeClass']('ck-suggestion-marker--active',_0x477b4d),_0x39ff83['writer']['removeAttribute']('data-suggestion',_0x477b4d),_0x39ff83['mapper']['unbindElementFromMarkerName'](_0x477b4d,_0x5e0220['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x14ee7a=this['editor'],_0x5ab697=_0x14ee7a['locale'];function _0x15bd6d(_0x146af3){return{'type':'format','content':c(_0x5ab697,'*Format:*\x20%0',_0x146af3)};}_0x14ee7a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x13faec=>{if('formatBlock'!=_0x13faec['type'])return;const {data:_0xbbf8f0}=_0x13faec;if(_0xbbf8f0){if('setTableRowHeader'==_0xbbf8f0['commandName']){const _0x51b234=_0xbbf8f0['commandParams'][0x0]['forceValue'];return _0x15bd6d(c(_0x5ab697,_0x51b234?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0xbbf8f0['commandName']){const _0x119275=_0xbbf8f0['commandParams'][0x0]['forceValue'];return _0x15bd6d(c(_0x5ab697,_0x119275?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x4bfaa1=>[_0x4bfaa1,null]));class Mt extends _0x32ae11{static get['requires'](){return[Ct];}['afterInit'](){const _0x571c4c=this['editor'];if(!_0x571c4c['plugins']['has']('TableClipboard'))return;const _0x43fe14=_0x571c4c['plugins']['get']('TrackChangesEditing'),_0x37ece2=_0x571c4c['plugins']['get']('TableUtils'),_0x20883f=_0x571c4c['plugins']['get'](Ct),_0x303f3a=_0x571c4c['plugins']['get']('TableClipboard');_0x20883f['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x571c4c['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x571c4c['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x347e56=null;_0x571c4c['model']['on']('insertContent',(_0x57e7e6,_0x2b2f8a)=>{const [_0x5f13bd,_0x1c0812]=_0x2b2f8a,_0x1565fa=_0x2b2f8a[_0x2b2f8a['length']-0x1];_0x1565fa&&_0x1565fa['forceDefaultExecution']||_0x43fe14['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x3b6be7,_0x3a5007,_0x3c06e3,_0x14775b,_0x3238e7){if(_0x3a5007&&!_0x3a5007['is']('documentSelection'))return!0x1;const _0x52437c=_0x3238e7['getTableIfOnlyTableInContent'](_0x3b6be7,_0x3c06e3);if(!_0x52437c||!Ue(_0x52437c,void 0x0,_0x14775b))return!0x1;const _0x251714=_0x14775b['getSelectionAffectedTableCells'](_0x3c06e3['document']['selection']);if(!_0x251714['length'])return!0x1;const _0x531a7b=_0x251714[0x0]['findAncestor']('table'),_0x333e24=_0x14775b['getRowIndexes'](_0x251714),_0x275d7e=_0x14775b['getColumnIndexes'](_0x251714),_0x5c130d={'startRow':_0x333e24['first'],'endRow':_0x333e24['last'],'startColumn':_0x275d7e['first'],'endColumn':_0x275d7e['last']};return 0x1==_0x251714['length']&&(_0x5c130d['endRow']+=_0x14775b['getRows'](_0x52437c)-0x1,_0x5c130d['endColumn']+=_0x14775b['getColumns'](_0x52437c)-0x1),Ue(_0x531a7b,_0x5c130d,_0x14775b);}(_0x5f13bd,_0x1c0812,_0x571c4c['model'],_0x37ece2,_0x303f3a)&&(_0x57e7e6['stop'](),_0x347e56={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x571c4c['model']['change'](()=>{_0x571c4c['model']['insertContent'](_0x2b2f8a[0x0],_0x2b2f8a[0x1],_0x2b2f8a[0x2],{'forceDefaultExecution':!0x0});const _0x47c143=_0x1b6899(),{rowInsertionRanges:_0x276a73,columnInsertionRanges:_0x372a70,insertionRanges:_0x1d699d,deletionRanges:_0xd4f89c,cells:_0x272e21}=_0x347e56;_0x276a73['length']&&_0x43fe14['markMultiRangeInsertion'](_0x276a73,'tablePasteRow',{'tablePasteChainId':_0x47c143}),_0x372a70['length']&&_0x43fe14['markMultiRangeInsertion'](_0x372a70,'tablePasteColumn',{'tablePasteChainId':_0x47c143}),_0x1d699d['length']&&(_0x43fe14['markMultiRangeInsertion'](_0x1d699d,'tablePaste',{'tablePasteChainId':_0x47c143,'skipNestingCheck':!0x0}),_0x1d699d['forEach'](_0x46aa9b=>_0x46aa9b['detach']?.())),_0xd4f89c['length']&&(_0x43fe14['markMultiRangeDeletion'](_0xd4f89c,'tablePaste',{'tablePasteChainId':_0x47c143,'skipNestingCheck':!0x0}),_0xd4f89c['forEach'](_0x4bf16b=>_0x4bf16b['detach']?.()));const _0x602ec7=_0x43fe14['markMultiRangeBlockFormat'](_0x272e21['map'](({element:_0x540d75})=>_0x540d75),{'formatGroupId':_0x1b6899()},[],'tablePasteCell',{'tablePasteChainId':_0x47c143});if(_0x602ec7){const _0x2398b8=_0x602ec7['getMarkers'](),_0x37738a=[];for(const {element:_0x5f0c44,attributes:_0x2385a2}of _0x272e21){if(!_0x2385a2)continue;const _0x3d4a47=_0x571c4c['model']['createRangeOn'](_0x5f0c44),_0x29a55d=_0x2398b8['find'](_0x488871=>_0x488871['getRange']()['isEqual'](_0x3d4a47));_0x29a55d&&_0x37738a['push']([_0x29a55d['name'],_0x2385a2]);}_0x37738a['length']&&_0x602ec7['setAttribute']('markerAttributes',Object['fromEntries'](_0x37738a));}_0x347e56=null;}));},{'priority':_0x44647c['high']+0xa}),_0x571c4c['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x7165ef,_0x1b118b)=>{const [_0x52ee9f,_0x173559,,_0xd9a859]=_0x1b118b;if(!_0x347e56)return;_0x7165ef['stop']();const _0x137f88=_0x52ee9f['cell'],_0x538555=_0x173559,_0x331824=Oe(_0x137f88),_0x308dae=Oe(_0x538555);_0x7165ef['return']=_0x137f88;let _0x5bd4dc=null,_0x34fb27=null;if(_0x308dae||_0x331824){if(_0x331824&&!_0x308dae){_0xd9a859['remove'](_0x137f88['getChild'](0x0));for(const _0xce03d0 of Array['from'](_0x538555['getChildren']()))_0xd9a859['insert'](_0xce03d0,_0x137f88,'end');const _0x1a0824=_0x347e56['rowInsertionIndexes']['includes'](_0x52ee9f['row']),_0xc1edb7=_0x347e56['columnInsertionIndexes']['includes'](_0x52ee9f['column']);_0x1a0824||_0xc1edb7||(_0x5bd4dc=_0x54bc73['fromRange'](_0xd9a859['createRangeIn'](_0x137f88)));}else _0x308dae&&!_0x331824&&(_0x34fb27=_0xd9a859['createRangeIn'](_0x137f88));}else{const _0x129860=_0xd9a859['createElement']('tableCellSuggestion'),_0x392072=_0xd9a859['createElement']('tableCellSuggestion');_0xd9a859['wrap'](_0xd9a859['createRangeIn'](_0x137f88),_0x392072),_0xd9a859['insert'](_0x129860,_0x137f88,0x0);for(const _0x58862a of Array['from'](_0x538555['getChildren']()))_0xd9a859['insert'](_0x58862a,_0x129860,'end');_0x5bd4dc=_0x54bc73['fromRange'](_0xd9a859['createRangeOn'](_0x129860)),_0x34fb27=_0x54bc73['fromRange'](_0xd9a859['createRangeOn'](_0x392072));}const _0x24b713=Array['from'](_0x538555['getAttributes']())['filter'](([_0x5d621b])=>Be['includes'](_0x5d621b));_0x347e56['cells']['push']({'element':_0x137f88,'attributes':_0x24b713['length']?Object['fromEntries'](_0x24b713):null}),_0x5bd4dc&&_0x347e56['insertionRanges']['push'](_0x5bd4dc),_0x34fb27&&_0x347e56['deletionRanges']['push'](_0x34fb27);},{'priority':'high'}),_0x37ece2['on']('insertColumns',(_0x41e815,_0x147d73)=>{const [_0x50cee8,_0x5595cc={}]=_0x147d73;if(!_0x347e56)return;const _0x4e2a94=_0x5595cc['at']||0x0,_0x302ba6=_0x5595cc['columns']||0x1;_0x347e56['columnInsertionIndexes']=new Array(_0x302ba6)['fill'](_0x4e2a94)['map']((_0x5063f2,_0x310b89)=>_0x5063f2+_0x310b89);for(const {cell:_0x59d750}of _0x37ece2['createTableWalker'](_0x50cee8,{'startColumn':_0x4e2a94,'endColumn':_0x4e2a94+_0x302ba6-0x1}))_0x347e56['columnInsertionRanges']['push'](_0x571c4c['model']['createRangeOn'](_0x59d750));},{'priority':'low'}),_0x37ece2['on']('insertRows',(_0x1decfa,_0x398d1d)=>{const [_0x8a91d9,_0xc3f1e3={}]=_0x398d1d;if(!_0x347e56)return;const _0x6f070=_0xc3f1e3['at']||0x0,_0x2eb8f6=_0xc3f1e3['rows']||0x1;_0x347e56['rowInsertionIndexes']=new Array(_0x2eb8f6)['fill'](_0x6f070)['map']((_0x3bf0c6,_0x28b039)=>_0x3bf0c6+_0x28b039);for(const {cell:_0x3b5441}of _0x37ece2['createTableWalker'](_0x8a91d9,{'startRow':_0x6f070,'endRow':_0x6f070+_0x2eb8f6-0x1}))_0x347e56['rowInsertionRanges']['push'](_0x571c4c['model']['createRangeOn'](_0x3b5441));},{'priority':'low'}),_0x43fe14['descriptionFactory']['registerDescriptionCallback'](_0x222ab1=>{if(_0x222ab1['subType']&&_0x222ab1['subType']['startsWith']('tablePaste'))return _0x222ab1['previous']?{}:{'type':'insertion','content':c(_0x571c4c['locale'],'*Replace\x20table\x20cells*')};});const _0x5ddf7a=()=>!0x1;for(const _0x43a0f6 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x43fe14['_suggestionFactory']['registerCustomCallback']('insertion',_0x43a0f6,'join',_0x5ddf7a),_0x43fe14['_suggestionFactory']['registerCustomCallback']('deletion',_0x43a0f6,'join',_0x5ddf7a),_0x43fe14['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x43a0f6,'join',_0x5ddf7a);_0x43fe14['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x5ddf7a),_0x43fe14['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0xa48c06,_0x5f2e5b,_0x34fed5)=>{const _0x58f440=_0xa48c06['map'](_0x4cc6dc=>_0x4cc6dc['getContainedElement']())['filter'](_0x54ca6d=>_0x54ca6d),_0x6d8c09=new Map(_0x58f440['map'](_0x5d90e5=>[_0x5d90e5,null]));if(_0x347e56){for(const {element:_0x201525,attributes:_0x423fbc}of _0x347e56['cells'])_0x423fbc&&_0x6d8c09['set'](_0x201525,_0x423fbc);}else{if(_0x34fed5&&_0x34fed5['markerAttributes'])for(const [_0x141dd0,_0x37b284]of Object['entries'](_0x34fed5['markerAttributes'])){const _0x3ab75f=_0x571c4c['model']['markers']['get'](_0x141dd0),_0x8949e9=_0x3ab75f?_0x3ab75f['getRange']()['getContainedElement']():null;_0x8949e9&&_0x6d8c09['set'](_0x8949e9,_0x37b284);}}_0x571c4c['model']['change'](_0x5dfc19=>{for(const [_0x54cc94,_0x37ddca]of _0x6d8c09)_0x5dfc19['setAttributes']({...xe,..._0x37ddca},_0x54cc94);});});const _0x4d2faa=(_0x1e0547,_0x561fef)=>{_0x43fe14['_suggestionFactory']['registerCustomCallback'](_0x1e0547,'tablePaste',_0x561fef,(_0x4ec472,_0x88bd2b,_0x455ada)=>{_0x571c4c['model']['change'](_0x26a0e4=>{const _0x1fa6c2=[];for(const _0x202bff of _0x4ec472){const _0x2617d6=_0x202bff['start']['nodeAfter'];_0x2617d6['is']('element','tableCellSuggestion')&&_0x1fa6c2['push'](_0x2617d6);}_0x43fe14['_suggestionFactory']['getSuggestionCallback'](_0x1e0547,null,_0x561fef)(_0x4ec472,_0x88bd2b,_0x455ada);for(const _0x33e16e of _0x1fa6c2)'$graveyard'!=_0x33e16e['root']['rootName']&&_0x26a0e4['unwrap'](_0x33e16e);});});};_0x4d2faa('insertion','accept'),_0x4d2faa('insertion','discard'),_0x4d2faa('deletion','accept'),_0x4d2faa('deletion','discard'),_0x43fe14['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x361b25=>{const _0x28db86=_0x361b25['map'](_0x11efa6=>_0x11efa6['getContainedElement']()),_0x466f36=_0x28db86[0x0]['findAncestor']('table'),{minRow:_0x45d3bd,maxRow:_0x5ccf1c}=_0x20883f['_getCoordsForCells'](_0x28db86);_0x37ece2['removeRows'](_0x466f36,{'at':_0x45d3bd,'rows':_0x5ccf1c-_0x45d3bd+0x1});}),_0x43fe14['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x138823=>{const _0x481dc3=_0x138823['map'](_0x3db3a1=>_0x3db3a1['getContainedElement']()),_0x3c69f=_0x481dc3[0x0]['findAncestor']('table'),{minColumn:_0x222823,maxColumn:_0x37b615}=_0x20883f['_getCoordsForCells'](_0x481dc3);_0x37ece2['removeColumns'](_0x3c69f,{'at':_0x222823,'columns':_0x37b615-_0x222823+0x1});});const _0xd4be9e=(_0x26e755,_0x45ec33)=>{if(!_0x45ec33['subType']||!_0x45ec33['subType']['startsWith']('tablePaste'))return;const _0x411b49=_0x45ec33['attributes']['tablePasteChainId'],_0x19a2a6=_0x43fe14['getSuggestions']()['filter'](_0x473efa=>_0x473efa['isInContent']&&_0x473efa['attributes']&&_0x473efa['attributes']['tablePasteChainId']==_0x411b49);_0x19a2a6['length']&&_0x45ec33['getAllAdjacentSuggestions']()['length']!=_0x19a2a6['length']&&_0x19a2a6['reduce']((_0x25cd2e,_0x2b8b58)=>(_0x25cd2e['next']=_0x2b8b58,_0x2b8b58['previous']=_0x25cd2e,_0x2b8b58));};function _0xb8ac87(_0x1ca17c,_0x268144=!0x0){const {id:_0x3813e6,authorId:_0x3bb373}=_0x43fe14['_splitMarkerName'](_0x1ca17c['markerName']),_0x43eb2b=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x24339b=_0x43fe14['activeMarkers']['includes'](_0x1ca17c['markerName']);return _0x24339b&&_0x43eb2b['push']('ck-suggestion-marker--active'),{'classes':_0x43eb2b,'attributes':{'data-suggestion':_0x3813e6,'data-author-id':_0x3bb373},'priority':_0x24339b&&_0x268144?0xbc2:0xbb8};}_0x43fe14['on']('suggestionLoaded',_0xd4be9e,{'priority':'high'}),_0x43fe14['on']('suggestionUnloaded',_0xd4be9e,{'priority':'high'}),_0x571c4c['model']['document']['registerPostFixer'](()=>{let _0x4b4ae1=!0x1;const _0x14e4dd=Array['from'](_0x571c4c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1d329c,data:_0x21b8ac}of _0x14e4dd){const {group:_0xf1068c,type:_0x43d5fc,id:_0x5ae418}=_0x43fe14['_splitMarkerName'](_0x1d329c);if('suggestion'!=_0xf1068c||'deletion'!=_0x43d5fc||_0x21b8ac['oldRange'])continue;if(!_0x43fe14['hasSuggestion'](_0x5ae418))continue;const _0x8dfe31=_0x43fe14['getSuggestion'](_0x5ae418)['getRanges'](),_0x1958f7=_0x571c4c['plugins']['get']('Users')['me'];for(const _0x5a0507 of _0x43fe14['getSuggestions']()){if(!_0x5a0507['isInContent']||_0x5a0507['author']!=_0x1958f7)continue;if('formatBlock'!=_0x5a0507['type']||'tablePasteCell'!=_0x5a0507['subType'])continue;if(_0x5a0507['getRanges']()['every'](_0x27ed2f=>_0x8dfe31['some'](_0x28569b=>_0x28569b['containsRange'](_0x27ed2f,!0x0)))){for(const _0x970ab2 of _0x5a0507['getAllAdjacentSuggestions']())_0x970ab2['isInContent']&&(_0x970ab2['discard'](),_0x4b4ae1=!0x0);}}}return _0x4b4ae1;}),_0x571c4c['model']['document']['registerPostFixer'](_0x2991a8=>{const _0x3147ca=_0x571c4c['commands']['get']('redo');if(!_0x3147ca||!_0x3147ca['_createdBatches']['has'](_0x2991a8['batch']))return!0x1;let _0x4721d4=!0x1;const _0x670158=_0x571c4c['plugins']['get']('Users')['me'],_0xe6ba6f=_0x571c4c['model']['document']['differ']['getChanges'](),_0xc6fa9e=Array['from'](_0x571c4c['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x5b4a0f,data:_0x5d5168})=>{const {group:_0x2fc11d,subType:_0x4a8094,authorId:_0x2be45b}=_0x43fe14['_splitMarkerName'](_0x5b4a0f);return'suggestion'==_0x2fc11d&&'tablePaste'==_0x4a8094&&_0x2be45b==_0x670158['id']&&!_0x5d5168['oldRange'];});for(const _0x1974c5 of _0xe6ba6f){if('insert'!=_0x1974c5['type']||'tableCellSuggestion'!=_0x1974c5['name']||0x1!=_0x1974c5['length'])continue;const _0x2d2724=_0x2991a8['createRange'](_0x1974c5['position'],_0x1974c5['position']['getShiftedBy'](0x1));if(!_0xc6fa9e['find'](({data:_0x111440})=>_0x111440['newRange']['isEqual'](_0x2d2724))){for(const {name:_0x5382e4,data:_0x42f2b9}of _0xc6fa9e)if(_0x2d2724['containsRange'](_0x42f2b9['newRange'])){_0x2991a8['updateMarker'](_0x5382e4,{'range':_0x2d2724}),_0x4721d4=!0x0;break;}}}return _0x4721d4;}),_0x571c4c['model']['document']['registerPostFixer'](_0x26237d=>{let _0x1255a3=!0x1;const _0x425bd3=_0x571c4c['plugins']['get']('Users')['me'],_0xa16b18=_0x43fe14['getSuggestions']()['filter'](_0x30271a=>_0x30271a['isInContent']&&_0x30271a['author']==_0x425bd3),_0x2b38ce=new Set(),_0x258ab6=new Set();for(const _0x365fa5 of _0xa16b18)if('tablePaste'==_0x365fa5['subType'])for(const _0x44419f of _0x365fa5['getMarkers']()){const _0x24426c=_0x44419f['getRange']()['getContainedElement']();if(_0x24426c){if(_0x24426c['is']('element','tableCellSuggestion')&&Oe(_0x24426c)){_0x365fa5['removeMarker'](_0x44419f['name']),_0x2b38ce['add'](_0x24426c),_0x1255a3=!0x0;const _0x221c22=_0x24426c['nextSibling'],_0x1000e0=_0x24426c['previousSibling'],_0x4425d3=_0x221c22&&_0x221c22['is']('element','tableCellSuggestion'),_0x2b67fc=_0x1000e0&&_0x1000e0['is']('element','tableCellSuggestion');_0x4425d3&&!_0x2b38ce['has'](_0x221c22)&&_0x258ab6['add'](_0x221c22),_0x2b67fc&&!_0x2b38ce['has'](_0x1000e0)&&_0x258ab6['add'](_0x1000e0);}else _0x24426c['is']('element','paragraph')&&_0x24426c['isEmpty']&&(_0x365fa5['removeMarker'](_0x44419f['name']),_0x1255a3=!0x0);}}else{if('tablePasteCell'==_0x365fa5['subType']){if(!_0x365fa5['attributes']||!_0x365fa5['attributes']['tablePasteChainId'])continue;const _0x3160e0=_0x365fa5['attributes']['markerAttributes'];if(_0x3160e0&&Object['keys'](_0x3160e0)['length'])continue;const _0x1fdfe9=_0x365fa5['attributes']['tablePasteChainId'];let _0x24dfa2=!0x0,_0x577bdf=!0x0;for(const _0x1964e3 of _0xa16b18)if(_0x1964e3['subType']&&_0x1964e3['subType']['startsWith']('tablePaste')){if(!_0x1964e3['attributes']['tablePasteChainId']){_0x577bdf=!0x1;break;}if(_0x1964e3['id']!=_0x365fa5['id']&&_0x1964e3['attributes']['tablePasteChainId']==_0x1fdfe9){_0x24dfa2=!0x1;break;}}_0x577bdf&&_0x24dfa2&&(_0x365fa5['removeMarkers'](),_0x1255a3=!0x0);}}for(const _0x26fd30 of _0x2b38ce)_0x26237d['remove'](_0x26fd30);for(const _0x1375d1 of _0x258ab6)_0x26237d['unwrap'](_0x1375d1);return _0x1255a3;}),_0x571c4c['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x464747=>_0xb8ac87(_0x464747),'converterPriority':'high'}),_0x571c4c['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x28b5a9,_0x541d55)=>_0x541d55['options']['showSuggestionHighlights']?_0xb8ac87(_0x28b5a9,!0x1):null,'converterPriority':'high'});const _0x34cf9a=_0x571c4c['editing']['view'];this['listenTo'](_0x34cf9a['document'],'clipboardOutput',(_0x377779,_0x50a5f2)=>{const _0x3f18db=[];for(const _0x2ce00d of _0x34cf9a['createRangeIn'](_0x50a5f2['content'])['getItems']())_0x2ce00d['is']('element','suggestion-td')&&_0x3f18db['push'](_0x2ce00d);_0x34cf9a['change'](_0x5e253c=>{for(const _0x571729 of _0x3f18db)_0x5e253c['move'](_0x5e253c['createRangeIn'](_0x571729),_0x5e253c['createPositionBefore'](_0x571729)),_0x5e253c['remove'](_0x571729);});});}}function Oe(_0x53b066){if(_0x53b066['isEmpty'])return!0x0;const _0xbf137=_0x53b066['getChild'](0x0);return _0xbf137['is']('element','paragraph')&&_0xbf137['isEmpty'];}function Ue(_0x182b2b,_0xef68={},_0x431e6f){for(const {isAnchor:_0x422ebf,cellHeight:_0x5e511c,cellWidth:_0x243d60}of _0x431e6f['createTableWalker'](_0x182b2b,{'includeAllSlots':!0x0,..._0xef68}))if(!_0x422ebf||0x1!=_0x5e511c||0x1!=_0x243d60)return!0x1;return!0x0;}class $t extends _0x32ae11{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x24d161=this['editor']['plugins']['get']('TrackChangesEditing');_0x24d161['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x24d161['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x24d161['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x24d161['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x24d161['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x24d161['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x2981ca,_0x39017a){const _0x336dd1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1aea04=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x37e9af=_0x39017a['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x1c6f7a=_0x1aea04['getColumnGroupElement'](_0x37e9af);let _0x7b782e=_0x1c6f7a?_0x1aea04['getTableColumnsWidths'](_0x1c6f7a):null,_0x46241f=_0x37e9af['getAttribute']('tableWidth')||null;const _0x565c64=_0x39017a['tableWidth']||_0x46241f,_0x2a03e2=_0x39017a['columnWidths']||_0x7b782e,_0x301334=this['editor']['plugins']['get']('Users')['me'];for(const _0x5ddcd6 of _0x336dd1['getSuggestions']()){const _0x2b5bf4=_0x5ddcd6['getContainedElement']();if('resizeTable'===_0x5ddcd6['subType']&&_0x2b5bf4===_0x37e9af){_0x5ddcd6['author']!==_0x301334&&_0x5ddcd6['discard']();const _0x48acd6=_0x5ddcd6['data']['commandParams'];_0x46241f=_0x48acd6[0x0]['tableWidth'],_0x7b782e=_0x48acd6[0x0]['columnWidths'];break;}}_0x2981ca({'table':_0x37e9af,'tableWidth':_0x565c64,'columnWidths':_0x2a03e2}),_0x336dd1['markBlockFormat'](_0x37e9af,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x46241f,'columnWidths':_0x7b782e}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x1bdb06){if('formatBlock'!=_0x1bdb06['type']&&'formatInline'!=_0x1bdb06['type'])return;const {data:_0x17ca8a}=_0x1bdb06;if(_0x17ca8a&&'resizeTable'===_0x17ca8a['formatGroupId']){const _0x434574='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x434574)};}}}class Bt extends _0x32ae11{['afterInit'](){const _0x1e5e0a=this['editor'];_0x1e5e0a['plugins']['has']('Template')&&_0x1e5e0a['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x32ae11{['afterInit'](){const _0x501328=this['editor'];if(!_0x501328['commands']['get']('insertTableOfContents'))return;_0x501328['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x3b0446=_0x501328['plugins']['get']('TrackChangesEditing'),_0x19a51d=_0x501328['locale'];_0x3b0446['descriptionFactory']['registerElementLabel']('tableOfContents',_0x103187=>c(_0x19a51d,'ELEMENT_TABLE_OF_CONTENTS',_0x103187));}}class Rt extends _0x32ae11{['afterInit'](){const _0xaf281=this['editor'];if(!_0xaf281['plugins']['has']('Title'))return;const _0x49afe0=_0xaf281['plugins']['get']('TrackChangesEditing');_0x49afe0['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0xaf281['locale'],'ELEMENT_TITLE')),_0xaf281['model']['document']['registerPostFixer'](_0x39de81=>{let _0x26b2cc=!0x1;const _0xc9a5ce=Array['from'](_0xaf281['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2f18e6,data:_0x28b2a6}of _0xc9a5ce){const {group:_0x2a8d77}=_0x49afe0['_splitMarkerName'](_0x2f18e6);if('suggestion'!==_0x2a8d77||!_0x28b2a6['newRange'])continue;const _0x4ef5de=_0x28b2a6['newRange'],_0x2e444e=_0x4ef5de['end']['nodeBefore'];if(!_0x2e444e||!_0x2e444e['is']('element','title-content'))continue;if(!_0x4ef5de['start']['isTouching'](_0x4ef5de['end']))continue;const _0x19dab3=_0xaf281['model']['schema']['getNearestSelectionRange'](_0x4ef5de['end'],'forward');if(_0x19dab3&&_0x19dab3['isCollapsed']){const _0x3da163=_0x39de81['createRange'](_0x4ef5de['start'],_0x19dab3['start']);_0x3da163['isEqual'](_0x4ef5de)||(_0x39de81['updateMarker'](_0x2f18e6,{'range':_0x3da163}),_0x26b2cc=!0x0);}_0x26b2cc||(_0x39de81['removeMarker'](_0x2f18e6),_0x26b2cc=!0x0);}return _0x26b2cc;});}}class xt extends _0x32ae11{['afterInit'](){const _0x262625=this['editor'],_0x50c642=_0x262625['plugins']['get']('TrackChangesEditing');_0x262625['plugins']['has']('Uploadcare')&&(_0x50c642['enableCommand']('uploadcare'),_0x262625['plugins']['has']('UploadcareImageEdit')&&(_0x50c642['enableCommand']('uploadcareImageEdit'),_0x50c642['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x50c642['registerBlockAttribute']('uploadcareImageId'),_0x50c642['descriptionFactory']['registerDescriptionCallback'](_0x22714f=>{if('attribute'!=_0x22714f['type'])return;const {data:_0x11b125}=_0x22714f;return _0x11b125&&'uploadcareImageId'==_0x11b125['key']?{'type':'format','content':''}:void 0x0;})));}}class Tt extends _0x32ae11{['afterInit'](){const _0x28830d=this['editor'],_0x3a51c6=_0x28830d['plugins']['get']('TrackChangesEditing');_0x28830d['plugins']['has']('UndoEditing')&&(_0x3a51c6['enableCommand']('undo'),_0x3a51c6['enableCommand']('redo'));}}class Et extends _0x32ae11{static get['requires'](){return[Ct];}['afterInit'](){const _0x32d8be=this['editor'];if(!_0x32d8be['plugins']['has']('TableCaptionEditing'))return;_0x32d8be['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ut extends _0x32ae11{['tableProperties'];['tableCellProperties'];constructor(_0x123ea5){super(_0x123ea5),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 _0x356206=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x4da161 of this['tableProperties'])_0x356206['enableCommand'](_0x4da161,(_0x317d83,_0x266032)=>{const _0x591662=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x4da161,[_0x591662],this['tableProperties'],'tableProperties',_0x317d83,_0x266032);});_0x356206['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x356206['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x356206['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2fc3a0,_0x567d96)=>this['handleDiscardAction'](this['tableProperties'],_0x2fc3a0,_0x567d96)),_0x356206['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0xe5bcd1 of this['tableCellProperties'])_0x356206['enableCommand'](_0xe5bcd1,(_0x279e48,_0x2fd1e5)=>{const _0x5ec2b9=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0xe5bcd1,_0x5ec2b9,this['tableCellProperties'],'tableCellProperties',_0x279e48,_0x2fd1e5);});_0x356206['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x356206['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x356206['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x494da0,_0x20bfeb)=>this['handleDiscardAction'](this['tableCellProperties'],_0x494da0,_0x20bfeb)),_0x356206['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x356206['descriptionFactory']['registerDescriptionCallback'](_0xac1a73=>this['handleSuggestionDescription'](_0xac1a73));}['_handlePropertyChange'](_0x4ce2fa,_0x1d07bf,_0x36bc23,_0x189976,_0x3248ee,_0x1e4f05){const _0x30f5d8=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x1e4f05['batch'],()=>{for(const _0xe56ae8 of _0x1d07bf){if(this['_getSuggestion'](_0xe56ae8,_0x189976))_0x3248ee(_0x1e4f05);else{const _0x39ec90={};for(const _0x14f46b of _0x36bc23){const _0x5a18f9=_0xe56ae8['getAttribute'](_0x14f46b);void 0x0!==_0x5a18f9&&(_0x39ec90[_0x14f46b]=_0x5a18f9);}_0x3248ee(_0x1e4f05),_0x30f5d8['markBlockFormat'](_0xe56ae8,{'commandParams':[_0x39ec90]},[],_0x189976);}}});}['handleDiscardAction'](_0x1ba563,_0x1024a5,_0x4d6e5f){const _0x321d0a=_0x1024a5[0x0]['start']['nodeAfter'],_0x55ac27=_0x4d6e5f['commandParams'][0x0];this['editor']['model']['change'](_0x261f30=>{for(const _0x5834b0 of _0x1ba563)void 0x0!==_0x55ac27[_0x5834b0]?_0x261f30['setAttribute'](_0x5834b0,_0x55ac27[_0x5834b0],_0x321d0a):_0x261f30['removeAttribute'](_0x5834b0,_0x321d0a);});}['handleSuggestionDescription'](_0x568267){if(_0x568267['data'])switch(_0x568267['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x2267f5,_0x54ef3f){const _0x598b20=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0xaeb75f of _0x598b20['getSuggestions']({'skipNotAttached':!0x0})){const _0x1725e6=_0xaeb75f['getContainedElement']();if(_0xaeb75f['subType']===_0x54ef3f&&_0x1725e6===_0x2267f5)return _0xaeb75f;}return null;}}const u='$elementName';class p extends _0x32ae11{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x1140a0,_0x3043e2,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,et,nt,it,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,_t,vt,Ct,Nt,Dt,Et,Mt,$t,Ot,Ut,Bt,Rt,xt,Tt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x53e02d){super(_0x53e02d),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x12e32f,_0x16b7db,_0x36855d,_0x5ea2e4)=>{this['_model']['change'](()=>{for(const _0x40e588 of[..._0x5ea2e4,..._0x36855d])this['_model']['markers']['has'](_0x40e588)&&_0x53e02d['editing']['reconvertMarker'](_0x40e588);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ft(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x53e02d['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0x53e02d['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x53e02d['config']['get']('trackChanges.trackFormatChanges'),_0x53e02d['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x53e02d['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x53e02d,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x5a7f41=this['editor'],_0x548d2d=(_0x55a2b8,_0x4b96a0)=>{if('attribute'!=_0x55a2b8)return'ck-suggestion-marker-'+_0x55a2b8;const _0x51ea28=_0x4b96a0['split']('|')[0x0];return this['_isBlockAttribute'](_0x51ea28)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x5a7f41['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x2a5eb9=>{const {id:_0x1e266f,authorId:_0x369c07,type:_0x5ce9b8,subType:_0x44e8f0}=this['_splitMarkerName'](_0x2a5eb9['markerName']),_0x83033b=['ck-suggestion-marker',_0x548d2d(_0x5ce9b8,_0x44e8f0)];let _0x523691=0xbb8;return this['activeMarkers']['includes'](_0x2a5eb9['markerName'])&&(_0x83033b['push']('ck-suggestion-marker--active'),_0x523691=0xbc2),'deletion'==_0x5ce9b8&&(_0x523691+=0x5),{'classes':_0x83033b,'attributes':{'data-suggestion':_0x1e266f,'data-author-id':_0x369c07},'priority':_0x523691};}}),_0x5a7f41['conversion']['for']('dataDowncast')['add'](_0x574e04=>{_0x574e04['on']('addMarker:suggestion',(_0x41d436,_0x2df25c,_0x2bf1)=>{if(!_0x2bf1['options']['showSuggestionHighlights'])return;const _0x62b5c0=_0x2df25c['item'];if(!_0x62b5c0)return;const _0x457075=_0x2bf1['mapper']['toViewElement'](_0x62b5c0);_0x5a7f41['model']['schema']['isObject'](_0x62b5c0)&&_0x457075&&!_0x457075['getCustomProperty']('widget')&&_0x457075['is']('containerElement')&&_0x14a02e(_0x457075,_0x2bf1['writer']);},{'priority':'high'});}),_0x5a7f41['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x4101ac,_0x272354)=>{if(!_0x272354['options']['showSuggestionHighlights'])return null;const {type:_0x1bae33,subType:_0x59de49}=this['_splitMarkerName'](_0x4101ac['markerName']);return{'classes':['ck-suggestion-marker',_0x548d2d(_0x1bae33,_0x59de49)],'priority':0xbb8};}});const _0x30f52a=({showActiveMarkers:_0x3bb639=!0x0,isAttributeSuggestion:_0x1f2150=!0x1}={})=>(_0x1b1ca2,_0x4b1ddc,_0x287d56)=>{if(!_0x4b1ddc['item'])return;const {id:_0x4d4fed,authorId:_0x318d2c}=this['_splitMarkerName'](_0x4b1ddc['markerName']);if(_0x1f2150){const _0x1b8837=this['_suggestions']['get'](_0x4d4fed),_0x3ab085=this['_getAttributeKey'](_0x1b8837);if(!this['_isBlockAttribute'](_0x3ab085))return;}if(_0x4b1ddc['item']['is']('selection'))return void _0x287d56['consumable']['consume'](_0x4b1ddc['item'],_0x1b1ca2['name']);const _0x1b8ab2=_0x287d56['mapper']['toViewElement'](_0x4b1ddc['item']);if(_0x4b1ddc['item']['is']('element')&&_0x5a7f41['model']['schema']['isBlock'](_0x4b1ddc['item'])&&!_0x1b8ab2['getCustomProperty']('addHighlight')){_0x287d56['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x1b8ab2),_0x287d56['writer']['setAttribute']('data-suggestion',_0x4d4fed,_0x1b8ab2),_0x287d56['writer']['setAttribute']('data-author-id',_0x318d2c,_0x1b8ab2),_0x287d56['mapper']['bindElementToMarker'](_0x1b8ab2,_0x4b1ddc['markerName']),_0x3bb639&&(this['activeMarkers']['includes'](_0x4b1ddc['markerName'])?_0x287d56['writer']['addClass']('ck-suggestion-marker--active',_0x1b8ab2):_0x287d56['writer']['removeClass']('ck-suggestion-marker--active',_0x1b8ab2));for(const _0x3ab8a3 of _0x5a7f41['model']['createRangeIn'](_0x4b1ddc['item'])['getItems']())_0x287d56['consumable']['consume'](_0x3ab8a3,_0x1b1ca2['name']);_0x287d56['consumable']['consume'](_0x4b1ddc['item'],_0x1b1ca2['name']);}};_0x5a7f41['conversion']['for']('dataDowncast')['add'](_0x20f6bb=>{_0x20f6bb['on']('addMarker:suggestion:formatBlock',(_0x548cef,_0x234999,_0x1a128f)=>{_0x1a128f['options']['showSuggestionHighlights']&&_0x30f52a({'showActiveMarkers':!0x1})(_0x548cef,_0x234999,_0x1a128f);},{'priority':'highest'});}),_0x5a7f41['conversion']['for']('dataDowncast')['add'](_0x6fcd88=>{_0x6fcd88['on']('addMarker:suggestion:attribute',(_0x1f2b99,_0x25ba8b,_0x1d0976)=>{_0x1d0976['options']['showSuggestionHighlights']&&_0x30f52a({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x1f2b99,_0x25ba8b,_0x1d0976);},{'priority':'highest'});}),_0x5a7f41['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x28cae0,_0x13b528)=>_0x13b528['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x28cae0['substr'](0xb)}}),_0x5a7f41['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xb442f4,{writer:_0x29e7e9})=>{let _0x56af27='suggestion:'+_0xb442f4['getAttribute']('suggestion-type')+':'+_0xb442f4['getAttribute']('id');return _0xb442f4['getAttribute']('marker-count')&&(_0x56af27+=':'+_0xb442f4['getAttribute']('marker-count')),_0x29e7e9['createElement']('$marker',{'data-name':_0x56af27});}}),_0x5a7f41['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x5a7f41['conversion']['for']('editingDowncast')['add'](_0xd84d1f=>{_0xd84d1f['on']('addMarker:suggestion:formatBlock',_0x30f52a(),{'priority':'high'});}),_0x5a7f41['conversion']['for']('editingDowncast')['add'](_0x38ffe4=>{_0x38ffe4['on']('addMarker:suggestion:attribute',_0x30f52a({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x5a7f41['conversion']['for']('editingDowncast')['add'](_0x5e5228=>{_0x5e5228['on']('removeMarker:suggestion:formatBlock',(_0x3c373e,_0x11f8f9,_0x4d17f2)=>{const _0x328f73=_0x4d17f2['mapper']['markerNameToElements'](_0x11f8f9['markerName']);if(_0x328f73){for(const _0x1d905d of _0x328f73)_0x1d905d['getCustomProperty']('addHighlight')||(_0x4d17f2['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1d905d),_0x4d17f2['writer']['removeAttribute']('data-suggestion',_0x1d905d),_0x4d17f2['writer']['removeAttribute']('data-author-id',_0x1d905d),_0x4d17f2['mapper']['unbindElementFromMarkerName'](_0x1d905d,_0x11f8f9['markerName']));}},{'priority':'high'});}),_0x5a7f41['conversion']['for']('editingDowncast')['add'](_0x4516c2=>{_0x4516c2['on']('removeMarker:suggestion:attribute',(_0x499f87,_0x400a7c,_0x2756fc)=>{const _0x119d13=_0x2756fc['mapper']['markerNameToElements'](_0x400a7c['markerName']);if(!_0x119d13)return;const {id:_0x59028d}=this['_splitMarkerName'](_0x400a7c['markerName']),_0x4ff9bb=this['_suggestions']['get'](_0x59028d),_0x54a267=this['_getAttributeKey'](_0x4ff9bb);if(this['_isBlockAttribute'](_0x54a267)){for(const _0x526956 of _0x119d13)_0x526956['getCustomProperty']('addHighlight')||(_0x2756fc['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x526956),_0x2756fc['writer']['removeAttribute']('data-suggestion',_0x526956),_0x2756fc['writer']['removeAttribute']('data-author-id',_0x526956),_0x2756fc['mapper']['unbindElementFromMarkerName'](_0x526956,_0x400a7c['markerName']));}},{'priority':'high'});}),_0x5a7f41['model']['document']['registerPostFixer'](_0x5c8bd5=>{let _0x4f9e14=!0x1;const _0x3fe37b=Array['from'](_0x5a7f41['model']['document']['differ']['getChangedMarkers']()),_0x3c4d97=new Set();for(const {name:_0x540c30,data:_0x5a0db8}of _0x3fe37b){const {group:_0x134b2f,type:_0x683fd,subType:_0x152edb,id:_0x2d817b}=this['_splitMarkerName'](_0x540c30);if('suggestion'!==_0x134b2f)continue;const _0x50a5d5=this['_suggestions']['get'](_0x2d817b);if(null!=_0x5a0db8['newRange']){'formatInline'==_0x683fd&&(_0x4f9e14=_0x4f9e14||Lt(_0x5a0db8['newRange'],_0x540c30,_0x5c8bd5,_0x5a7f41['model']['schema']));const _0x5d7aca='attribute'==_0x683fd&&this['_isBlockAttribute'](_0x152edb['split']('|')[0x0]);if(_0x5a0db8['newRange']['isCollapsed']||'$graveyard'==_0x5a0db8['newRange']['root']['rootName']||'formatBlock'==_0x683fd&&!Kt(_0x5a0db8['newRange'])||_0x5d7aca&&!Kt(_0x5a0db8['newRange'])||'deletion'==_0x683fd&&!(!Gt(_0x4b9a69=_0x5a0db8['newRange'])&&!function(_0x3b5876){return _0x3b5876['start']['parent']==_0x3b5876['end']['nodeBefore']&&_0x3b5876['start']['isAtEnd'];}(_0x4b9a69)))_0x5c8bd5['removeMarker'](_0x540c30),_0x4f9e14=!0x0;else{if(!_0x50a5d5||!_0x50a5d5['isInContent'])continue;if(_0x5a0db8['newRange']&&_0x5a0db8['oldRange']&&_0x5a0db8['newRange']['isEqual'](_0x5a0db8['oldRange']))continue;_0x3c4d97['add'](_0x50a5d5);}}}var _0x4b9a69;return _0x3c4d97['size']>0x0&&(_0x4f9e14=!!this['_joinWithAdjacentSuggestions'](_0x3c4d97)||_0x4f9e14),_0x4f9e14;}),_0x5a7f41['model']['document']['registerPostFixer'](_0x9431b6=>{let _0x6302c2=!0x1;for(const _0x5b4e1b of _0x5a7f41['model']['document']['differ']['getChanges']())if('insert'==_0x5b4e1b['type'])for(const _0x2646ea of this['_suggestions']['values']()){if(_0x2646ea['isMultiRange']||!_0x2646ea['isInContent'])continue;const _0x2e9d1a='formatBlock'==_0x2646ea['type'],_0x3d4998=this['_getAttributeKey'](_0x2646ea),_0x2b0900=_0x3d4998&&this['_isBlockAttribute'](_0x3d4998);if(!_0x2e9d1a&&!_0x2b0900)continue;const _0x3563cc=_0x2646ea['getFirstRange']();if(_0x3563cc['start']['parent']!=_0x3563cc['end']['parent']&&!_0x3563cc['end']['isAtEnd']){const _0x5451c9=_0x5a7f41['model']['createPositionAt'](_0x3563cc['start']['nodeAfter'],'end'),_0x58bbe8=_0x5a7f41['model']['createRange'](_0x3563cc['start'],_0x5451c9);_0x9431b6['updateMarker'](_0x2646ea['getFirstMarker'](),{'range':_0x58bbe8}),_0x6302c2=!0x0;}}return _0x6302c2;}),_0x5a7f41['model']['document']['registerPostFixer'](_0x335eca=>this['_processAttributeChanges'](_0x335eca)),_0x5a7f41['model']['document']['registerPostFixer'](_0x16cb31=>!_0x16cb31['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x16cb31)),_0x5a7f41['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x5a7f41['model']['document']['on']('change:data',(_0xcb5e3d,_0x1228c0)=>{if(!_0x1228c0['isLocal']||_0x1228c0['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x1ea998=_0x5a7f41['model']['document']['differ']['getChanges']();if(0x0==_0x1ea998['length'])return;const _0x12cff0=[],_0x455020=_0x1ea998['filter'](_0x3fd787=>'attribute'==_0x3fd787['type']),_0x566ce6=_0x1ea998['filter'](_0x1c2c94=>'insert'==_0x1c2c94['type']&&'$text'!=_0x1c2c94['name']);for(const _0x2c4654 of _0x455020)this['_isRegisteredAttribute'](_0x2c4654['attributeKey'])&&_0x12cff0['push']({'key':_0x2c4654['attributeKey'],'newValue':_0x2c4654['attributeNewValue'],'oldValue':_0x2c4654['attributeOldValue'],'range':Ht(_0x2c4654['range'],_0x5a7f41['model'])});for(const _0x246821 of _0x566ce6){if('rename'!=_0x246821['action']&&'refresh'!=_0x246821['action'])continue;const _0x2c70f3=qt(_0x246821['position']['nodeAfter'],_0x5a7f41['model']),_0x2cc7b4=_0x246821['before'];'rename'==_0x246821['action']&&_0x12cff0['push']({'key':u,'newValue':_0x246821['name'],'oldValue':_0x2cc7b4['name'],'range':_0x2c70f3});for(const [_0x35e868,_0x5a6d5f]of _0x2cc7b4['attributes']){if(!this['_isRegisteredAttribute'](_0x35e868))continue;const _0x2f070b=_0x246821['attributes']['get'](_0x35e868);_0x5a6d5f!==_0x2f070b&&_0x12cff0['push']({'key':_0x35e868,'newValue':_0x2f070b,'oldValue':_0x5a6d5f,'range':_0x2c70f3});}for(const [_0x593d5f,_0x30246f]of _0x246821['attributes'])this['_isRegisteredAttribute'](_0x593d5f)&&(_0x2cc7b4['attributes']['has'](_0x593d5f)||_0x12cff0['push']({'key':_0x593d5f,'newValue':_0x30246f,'oldValue':null,'range':_0x2c70f3}));}0x0!=_0x12cff0['length']&&_0x5a7f41['model']['enqueueChange'](_0x1228c0,_0x503104=>{const _0x3a384c=_0x1b6899();for(const {range:_0x45a78f,key:_0x470daf,oldValue:_0xe0cfbf,newValue:_0x21bd18}of _0x12cff0)this['markAttributeChange'](_0x45a78f,_0x470daf,_0xe0cfbf,_0x21bd18,{'groupId':_0x3a384c});this['_reduceExistingSuggestions'](_0x503104,_0x12cff0);});},{'priority':'lowest'}),_0x5a7f41['model']['markers']['on']('update:suggestion',(_0x3a33a7,_0x3445b3,_0xea453d)=>{if(null==_0xea453d){const {id:_0x8e6df1}=this['_splitMarkerName'](_0x3445b3['name']),_0x57f386=this['_suggestions']['get'](_0x8e6df1);_0x57f386&&_0x57f386['addMarkerName'](_0x3445b3['name']);}}),_0x5a7f41['model']['document']['on']('change:data',()=>{const _0x150a74=Array['from'](_0x5a7f41['model']['document']['differ']['getChangedMarkers']())['filter'](_0x4378d=>'suggestion'===this['_splitMarkerName'](_0x4378d['name'])['group']);if(0x0===_0x150a74['length'])return;_0x150a74['sort']((_0x39587e,_0x54b16b)=>{const _0x339025=_0x39587e['data']['oldRange'],_0x5537b4=_0x54b16b['data']['oldRange'];return null===_0x339025&&null===_0x5537b4?0x0:null===_0x339025&&null!==_0x5537b4?-0x1:null!==_0x339025&&null===_0x5537b4?0x1:_0x339025['start']['isBefore'](_0x5537b4['start'])?-0x1:0x1;});const _0x21fc6e=new Set(),_0xe3f35c=new Set();for(const {name:_0x3fac3c,data:_0x393b15}of _0x150a74){const {id:_0x30ed48}=this['_splitMarkerName'](_0x3fac3c);if(null===_0x393b15['oldRange']){const _0x327485=this['_handleNewSuggestionMarker'](_0x3fac3c);_0xe3f35c['add'](_0x327485);}else{const _0x4d4641=this['_suggestions']['get'](_0x30ed48);null!==_0x393b15['newRange']||_0x4d4641['isInContent']?(_0x21fc6e['add'](_0x4d4641['head']),_0xe3f35c['add'](_0x4d4641)):this['_removeSuggestion'](_0x4d4641);}}_0xe3f35c['size']>0x0&&this['_refreshSuggestionsChain'](_0xe3f35c);for(const _0x2dfedc of _0x21fc6e)this['fire']('suggestionChanged',_0x2dfedc);}),_0x5a7f41['model']['on']('applyOperation',(_0x52b334,_0x5776ab)=>{const _0x34435b=_0x5776ab[0x0];if(!this['_suggestions']['size'])return;if(!_0x34435b['isDocumentOperation'])return;if(_0x34435b['batch']['isUndo']||!_0x34435b['batch']['isLocal'])return;let _0x2343e4,_0x3afef6;switch(_0x34435b['type']){case'insert':_0x2343e4=_0x5a7f41['model']['createPositionAt'](_0x34435b['position']),_0x3afef6=_0x2343e4['getShiftedBy'](_0x34435b['howMany']);break;case'split':_0x2343e4=_0x5a7f41['model']['createPositionAt'](_0x34435b['splitPosition']),_0x3afef6=_0x5a7f41['model']['createPositionAt'](_0x34435b['moveTargetPosition']);break;case'move':_0x2343e4=_0x5a7f41['model']['createPositionAt'](_0x34435b['targetPosition']),_0x3afef6=_0x2343e4['getShiftedBy'](_0x34435b['howMany']);break;default:return;}const _0x2c94f9=_0x5a7f41['model']['createRange'](_0x2343e4,_0x3afef6);_0x5a7f41['model']['change'](()=>{for(const {suggestion:_0x5cce5f,meta:_0xf244ca}of this['_findSuggestions'](_0x2c94f9)){if(_0x5cce5f['isMultiRange'])continue;if('formatInline'==_0x5cce5f['type'])continue;const _0x2106b3=this['_getAttributeKey'](_0x5cce5f);if(_0x2106b3&&this['_isBlockAttribute'](_0x2106b3)&&'split'!=_0x34435b['type'])continue;const _0x286cb6=_0x5cce5f['data']&&_0x5cce5f['data']['multipleBlocks'];('formatBlock'!=_0x5cce5f['type']||'split'==_0x34435b['type']&&!_0x286cb6)&&(_0xf244ca['containsRangeInObject']||'insertion'==_0x5cce5f['type']&&_0xf244ca['isOwn']||_0x5cce5f['getFirstRange']()['containsRange'](_0x2c94f9)&&this['_breakSuggestionMarker'](_0x5cce5f,_0x2343e4,_0x3afef6));}});},{'priority':'lowest'}),_0x5a7f41['model']['on']('deleteContent',(_0x5bc338,_0xa014c6)=>{const _0x414168=_0xa014c6[0x0],_0x268c6e=_0xa014c6[0x1];if(_0x268c6e&&_0x268c6e['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x414168['isCollapsed'])return;const _0xa23a52=_0x5a7f41['model']['schema'],{start:_0x1764b8,end:_0x4a32e7}=_0x414168['getFirstRange'](),_0x567e1f=_0x1764b8['nodeAfter']&&_0xa23a52['isLimit'](_0x1764b8['nodeAfter'])?null:_0xa23a52['getNearestSelectionRange'](_0x1764b8,'forward'),_0x2cd70b=_0x4a32e7['nodeBefore']&&_0xa23a52['isLimit'](_0x4a32e7['nodeBefore'])?null:_0xa23a52['getNearestSelectionRange'](_0x4a32e7,'backward'),_0x14d2d2=_0x5a7f41['model']['createRange'](_0x567e1f?_0x567e1f['start']:_0x1764b8,_0x2cd70b?_0x2cd70b['end']:_0x4a32e7);_0x5a7f41['model']['change'](_0x57fb0b=>{this['markDeletion'](_0x14d2d2);const _0x4cd0de=_0x5a7f41['model']['schema']['getNearestSelectionRange'](_0x14d2d2['start']);_0x414168['is']('documentSelection')?_0x57fb0b['setSelection'](_0x4cd0de):_0x414168['setTo'](_0x4cd0de);}),_0x5bc338['stop']();},{'priority':_0x44647c['normal']+0xa}),_0x5a7f41['model']['on']('insertContent',(_0x5d4626,_0x5805cb)=>{const _0x1f0610=_0x5805cb[_0x5805cb['length']-0x1];_0x1f0610&&_0x1f0610['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x5a7f41['model']['change'](()=>{let _0x2264ba=_0x5a7f41['model']['insertContent'](_0x5805cb[0x0],_0x5805cb[0x1],_0x5805cb[0x2],{'forceDefaultExecution':!0x0});if(!_0x2264ba)return;_0x5d4626['return']=_0x2264ba['clone']();const _0x3edd6e=_0x2264ba['end']['nodeBefore'],_0xb89b2b=_0x5a7f41['model']['schema'];_0x3edd6e&&_0xb89b2b['isBlock'](_0x3edd6e)&&!_0xb89b2b['isObject'](_0x3edd6e)&&(_0x2264ba=_0x5a7f41['model']['createRange'](_0x2264ba['start'],_0x5a7f41['model']['createPositionAt'](_0x3edd6e,'end'))),this['markInsertion'](_0x2264ba);}),_0x5d4626['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x42d2cc=new O(_0x5a7f41,this['_suggestions']);_0x5a7f41['commands']['add']('acceptSuggestion',_0x42d2cc),this['enableCommand']('acceptSuggestion');const _0x2a2d98=new R(_0x5a7f41,this['_suggestions']);_0x5a7f41['commands']['add']('discardSuggestion',_0x2a2d98),this['enableCommand']('discardSuggestion'),_0x5a7f41['commands']['add']('acceptAllSuggestions',new x(_0x5a7f41,_0x42d2cc,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x5a7f41['commands']['add']('discardAllSuggestions',new x(_0x5a7f41,_0x2a2d98,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x5a7f41['commands']['add']('acceptSelectedSuggestions',new E(_0x5a7f41,_0x42d2cc,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x5a7f41['commands']['add']('discardSelectedSuggestions',new E(_0x5a7f41,_0x2a2d98,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x13e70d=_0x5a7f41['plugins']['get']('CommentsRepository');this['listenTo'](_0x13e70d,'addComment',(_0x1112c1,{threadId:_0x46c9b0})=>{const _0x14d8c6=this['_suggestions']['get'](_0x46c9b0);_0x14d8c6&&_0x14d8c6['commentThread']&&0x1===_0x14d8c6['commentThread']['length']&&this['_updateSuggestionData'](_0x46c9b0,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x13e70d,'removeComment',(_0x415102,{threadId:_0x48cfb7})=>{const _0x12dc0e=this['_suggestions']['get'](_0x48cfb7);_0x12dc0e&&_0x12dc0e['commentThread']&&!_0x12dc0e['commentThread']['length']&&this['_updateSuggestionData'](_0x48cfb7,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x37ce49){const _0x136d84=_0x123c49([0x63,0x68,0x65,0x30,0x54,0x59,0x55,0x70,0x50,0x58,0x52,0x4d,0x5a,0x35,0x39,0x4c,0x6b,0x6a,0x62,0x78,0x57,0x4e,0x44,0x45,0x36,0x33,0x6c,0x77,0x4b,0x42,0x6f,0x51,0x41,0x56,0x4f,0x7a,0x38,0x46,0x37,0x67,0x6e,0x72,0x64,0x79,0x73,0x43,0x31,0x71,0x4a,0x32,0x75,0x66,0x6d,0x48,0x69,0x76,0x53,0x74,0x61,0x34,0x47,0x49]),_0x42a84d=0x7941b799,_0xe478d5=0x7946d5a9^_0x42a84d,_0x2a4517=window[_0x123c49([0x44,0x61,0x74,0x65])][_0x123c49([0x6e,0x6f,0x77])](),_0x24afe8=_0x37ce49[_0x123c49([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x242458=new window[(_0x123c49([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x330bc2=>{_0x24afe8[_0x123c49([0x6f,0x6e,0x63,0x65])](_0x123c49([0x72,0x65,0x61,0x64,0x79]),_0x330bc2);}),_0x4996d1={[_0x123c49([0x6b,0x74,0x79])]:_0x123c49([0x45,0x43]),[_0x123c49([0x75,0x73,0x65])]:_0x123c49([0x73,0x69,0x67]),[_0x123c49([0x63,0x72,0x76])]:_0x123c49([0x50,0x2d,0x32,0x35,0x36]),[_0x123c49([0x78])]:_0x123c49([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]),[_0x123c49([0x79])]:_0x123c49([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]),[_0x123c49([0x61,0x6c,0x67])]:_0x123c49([0x45,0x53,0x32,0x35,0x36])},_0x47732a=_0x24afe8[_0x123c49([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x123c49([0x67,0x65,0x74])](_0x123c49([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x161ae5(){let _0x19c635,_0x2fb151=null,_0x5e9d9e=null;try{if(_0x47732a==_0x123c49([0x47,0x50,0x4c]))return _0x123c49([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x19c635=_0x3eda74(),!_0x19c635)return _0x123c49([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x19c635[_0x123c49([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5e9d9e=_0x470e1b(_0x19c635[_0x123c49([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x19c635[_0x123c49([0x6a,0x74,0x69])])),await _0x4679d5()?_0x1f01e8()?_0x1e1987()?_0x123c49([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3b550c()?(_0x19c635[_0x123c49([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x123c49([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2fb151=_0x32c033(_0x123c49([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x19c635[_0x123c49([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x123c49([0x74,0x72,0x69,0x61,0x6c])&&(_0x2fb151=_0x32c033(_0x123c49([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x246fe2()):_0x123c49([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x123c49([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x123c49([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x578a90){return _0x123c49([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1e1987(){const _0x51e4ba=[_0x123c49([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x123c49([0x74,0x72,0x69,0x61,0x6c])][_0x123c49([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x19c635[_0x123c49([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2a4517/0x3e8:0xe10*_0xe478d5;return _0x19c635[_0x123c49([0x65,0x78,0x70])]<_0x51e4ba;}function _0x1f01e8(){const _0x2f053d=_0x19c635[_0x123c49([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2f053d)return!0x1;if(_0x2f053d[_0x123c49([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x123c49([0x2a])))return!0x0;if(_0x2f053d[_0x123c49([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x123c49([0x54,0x43])))return!0x0;if(_0x2f053d[_0x123c49([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x123c49([0x52,0x54,0x43]))){if(_0xf9ec99())return!0x0;if(_0x5761ec()||_0x5a8678())return!0x0;}return!0x1;}function _0x3b550c(){const _0x2fcf86=_0x19c635[_0x123c49([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2fcf86||0x0==_0x2fcf86[_0x123c49([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x214478}=new URL(window[_0x123c49([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2fcf86[_0x123c49([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x214478))return!0x0;const _0x23d12f=_0x214478[_0x123c49([0x73,0x70,0x6c,0x69,0x74])](_0x123c49([0x2e]));return _0x2fcf86[_0x123c49([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5e7b4e=>_0x5e7b4e[_0x123c49([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x123c49([0x2a])))[_0x123c49([0x6d,0x61,0x70])](_0x315e55=>_0x315e55[_0x123c49([0x73,0x70,0x6c,0x69,0x74])](_0x123c49([0x2e])))[_0x123c49([0x73,0x6f,0x6d,0x65])](_0x204a56=>_0x23d12f[_0x123c49([0x65,0x76,0x65,0x72,0x79])]((_0x34fbdf,_0x20ca69)=>_0x204a56[_0x20ca69]===_0x34fbdf||_0x204a56[_0x20ca69]===_0x123c49([0x2a])));}function _0x246fe2(){return _0x2fb151&&_0x5e9d9e?new window[(_0x123c49([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1a7e5f,_0x167861)=>{_0x2fb151[_0x123c49([0x74,0x68,0x65,0x6e])](_0x1a7e5f,_0x167861),_0x5e9d9e[_0x123c49([0x74,0x68,0x65,0x6e])](_0x57c982=>{_0x57c982!=_0x123c49([0x56,0x61,0x6c,0x69,0x64])&&_0x1a7e5f(_0x57c982);},_0x167861);}):_0x2fb151||_0x5e9d9e||_0x123c49([0x56,0x61,0x6c,0x69,0x64]);}}function _0x470e1b(_0xb2b29d,_0x359274){return new window[(_0x123c49([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x110b8a=>{if(_0x41178e())return _0x110b8a(_0x123c49([0x56,0x61,0x6c,0x69,0x64]));_0x4ada20(),_0x24afe8[_0x123c49([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x123c49([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xc4d13f=!0x1;const _0x2f1e37=_0x1b6899();function _0x59c25a(_0xd9395b){return!!_0xd9395b&&(typeof _0xd9395b===_0x123c49([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xd9395b===_0x123c49([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xd9395b[_0x123c49([0x74,0x68,0x65,0x6e])]===_0x123c49([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xd9395b[_0x123c49([0x63,0x61,0x74,0x63,0x68])]===_0x123c49([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3795a3(_0x3175ae){_0x3ffcfd(_0x3175ae)[_0x123c49([0x74,0x68,0x65,0x6e])](_0xb08789=>{if(!_0xb08789||_0xb08789[_0x123c49([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x123c49([0x6f,0x6b]))return _0x123c49([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2973b5(_0x1d7561(_0x2f1e37+_0x359274))!=_0xb08789[_0x123c49([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x123c49([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x123c49([0x56,0x61,0x6c,0x69,0x64]);})[_0x123c49([0x74,0x68,0x65,0x6e])](_0x5b810e=>(_0x4d5924(),_0x5b810e),()=>{const _0x5b17fa=_0x356dc9();return null==_0x5b17fa?(_0x4d5924(),_0x123c49([0x56,0x61,0x6c,0x69,0x64])):_0x123c49(_0x2a4517-_0x5b17fa>(0x5d4d3399^_0x42a84d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x123c49([0x74,0x68,0x65,0x6e])](_0x110b8a)[_0x123c49([0x63,0x61,0x74,0x63,0x68])](()=>{_0x110b8a(_0x123c49([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x43667d=0x79775919^_0x42a84d;function _0x4d5924(){const _0x1c1216=_0x123c49([0x6c,0x6c,0x63,0x74,0x2d])+_0x2973b5(_0x1d7561(_0xb2b29d)),_0x4e0d32=_0x4c419a(_0x2973b5(window[_0x123c49([0x4d,0x61,0x74,0x68])][_0x123c49([0x63,0x65,0x69,0x6c])](_0x2a4517/_0x43667d)));window[_0x123c49([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x123c49([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1c1216,_0x4e0d32);}function _0x356dc9(){const _0x4c2c97=_0x123c49([0x6c,0x6c,0x63,0x74,0x2d])+_0x2973b5(_0x1d7561(_0xb2b29d)),_0x21fafc=window[_0x123c49([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x123c49([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4c2c97);return _0x21fafc?window[_0x123c49([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4c419a(_0x21fafc),0x10)*_0x43667d:null;}function _0x3ffcfd(_0x3d2f99){return new window[(_0x123c49([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5931b6,_0x17e1fe)=>{_0x3d2f99[_0x123c49([0x74,0x68,0x65,0x6e])](_0x5931b6,_0x17e1fe),window[_0x123c49([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x17e1fe,0x79406359^_0x42a84d);});}}_0x24afe8[_0x123c49([0x6f,0x6e])](_0x123c49([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x182f00,_0x57dfb6)=>{if(_0x57dfb6[0x0]!=_0xb2b29d)return _0x110b8a(_0x123c49([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x57dfb6[0x1]={..._0x57dfb6[0x1],[_0x123c49([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2f1e37};},{[_0x123c49([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x123c49([0x68,0x69,0x67,0x68])}),_0x24afe8[_0x123c49([0x6f,0x6e])](_0x123c49([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x19dc12=>{_0x59c25a(_0x19dc12[_0x123c49([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xc4d13f=!0x0,_0x3795a3(_0x19dc12[_0x123c49([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x123c49([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x123c49([0x6c,0x6f,0x77])}),_0x242458[_0x123c49([0x74,0x68,0x65,0x6e])](()=>{_0xc4d13f||_0x110b8a(_0x123c49([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x41178e(){return _0x24afe8[_0x123c49([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x123c49([0x76,0x69,0x65,0x77])][_0x123c49([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x123c49([0x61,0x75,0x74,0x6f]);}function _0x4ada20(){_0x24afe8[_0x123c49([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x123c49([0x76,0x69,0x65,0x77])][_0x123c49([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x123c49([0x61,0x75,0x74,0x6f]);}}function _0x32c033(_0x2122e0){const _0x366dcb=[new window[(_0x123c49([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x34ea03=>setTimeout(_0x34ea03,0x79488955^_0x42a84d)),_0x242458[_0x123c49([0x74,0x68,0x65,0x6e])](()=>new window[(_0x123c49([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x15859d=>{let _0x39f4f1=0x0;_0x24afe8[_0x123c49([0x6d,0x6f,0x64,0x65,0x6c])][_0x123c49([0x6f,0x6e])](_0x123c49([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x139efe,_0x30c81c)=>{_0x30c81c[0x0][_0x123c49([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x39f4f1++,_0x39f4f1==(0x7941b661^_0x42a84d)&&(_0x15859d(),_0x139efe[_0x123c49([0x6f,0x66,0x66])]());});}))];return window[_0x123c49([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x123c49([0x72,0x61,0x63,0x65])](_0x366dcb)[_0x123c49([0x74,0x68,0x65,0x6e])](()=>_0x2122e0);}async function _0x31f230(){await _0x242458,_0x24afe8[_0x123c49([0x6d,0x6f,0x64,0x65,0x6c])][_0x123c49([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3c5c68,_0x24afe8[_0x123c49([0x6d,0x6f,0x64,0x65,0x6c])][_0x123c49([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3c5c68,_0x24afe8[_0x123c49([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x123c49([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xf9ec99(){return _0x118fad(_0x123c49([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x246225(_0x123c49([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x123c49([0x73,0x74,0x61,0x74,0x65])]==_0x123c49([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x5761ec(){return _0x118fad(_0x123c49([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 _0x5a8678(){return _0x118fad(_0x123c49([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x28ff20(_0x3bbe37){const _0x55d818=_0x3749bd();_0x24afe8[_0x55d818]=_0x123c49([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3bbe37,_0x3bbe37!=_0x123c49([0x56,0x61,0x6c,0x69,0x64])&&_0x31f230();}function _0x3749bd(){const _0x29d996=window[_0x123c49([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x123c49([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x123c49([0x6e,0x6f,0x77])]())[_0x123c49([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x123c49([0x2e]),'');let _0x219800=_0x123c49([0x63]);for(let _0x35955b=0x0;_0x35955b<_0x29d996[_0x123c49([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x35955b+=0x2){let _0x9e113b=window[_0x123c49([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x29d996[_0x123c49([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x35955b,_0x35955b+0x2));_0x9e113b>=_0x136d84[_0x123c49([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x9e113b-=_0x136d84[_0x123c49([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x219800+=_0x136d84[_0x9e113b];}return _0x219800;}function _0x3eda74(){const _0x36cac7=_0x47732a[_0x123c49([0x73,0x70,0x6c,0x69,0x74])](_0x123c49([0x2e]));if(0x3!=_0x36cac7[_0x123c49([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x28ac97(_0x36cac7[0x1]);function _0x28ac97(_0x23d8e6){const _0x52cc88=_0x4bc1d5(_0x23d8e6);return _0x52cc88&&_0x44467f()?_0x52cc88:null;function _0x44467f(){const _0x1757ed=_0x52cc88[_0x123c49([0x6a,0x74,0x69])],_0x26125a=window[_0x123c49([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1757ed[_0x123c49([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1757ed[_0x123c49([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2b0ed6={..._0x52cc88,[_0x123c49([0x6a,0x74,0x69])]:_0x1757ed[_0x123c49([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1757ed[_0x123c49([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2b0ed6[_0x123c49([0x76,0x63])],_0x1d7561(_0x2b0ed6)==_0x26125a;}}}async function _0x4679d5(){let _0x4eb298=!0x0;try{const _0x524d35=_0x47732a[_0x123c49([0x73,0x70,0x6c,0x69,0x74])](_0x123c49([0x2e])),[_0x53eb96,_0x2deab5,_0x445c9c]=_0x524d35;return _0xc99e9c(_0x53eb96),await _0x5d6fab(_0x53eb96,_0x2deab5,_0x445c9c),_0x4eb298;}catch(_0x34e426){return!0x1;}function _0xc99e9c(_0x9c7a12){const _0x2aacf6=_0x4bc1d5(_0x9c7a12);_0x2aacf6&&_0x2aacf6[_0x123c49([0x61,0x6c,0x67])]==_0x123c49([0x45,0x53,0x32,0x35,0x36])||(_0x4eb298=!0x1);}async function _0x5d6fab(_0x1e926a,_0x181240,_0x34b660){const _0x480dc1=window[_0x123c49([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x123c49([0x66,0x72,0x6f,0x6d])](_0x3b6063(_0x34b660),_0xa79d04=>_0xa79d04[_0x123c49([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xea981e=new window[(_0x123c49([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x123c49([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1e926a+_0x123c49([0x2e])+_0x181240),_0x31e552=window[_0x123c49([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x123c49([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x31e552)return;const _0x366cff=await _0x31e552[_0x123c49([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x123c49([0x6a,0x77,0x6b]),_0x4996d1,{[_0x123c49([0x6e,0x61,0x6d,0x65])]:_0x123c49([0x45,0x43,0x44,0x53,0x41]),[_0x123c49([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x123c49([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x123c49([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x31e552[_0x123c49([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x123c49([0x6e,0x61,0x6d,0x65])]:_0x123c49([0x45,0x43,0x44,0x53,0x41]),[_0x123c49([0x68,0x61,0x73,0x68])]:{[_0x123c49([0x6e,0x61,0x6d,0x65])]:_0x123c49([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x366cff,_0x480dc1,_0xea981e)||(_0x4eb298=!0x1);}}function _0x4bc1d5(_0x36d7ab){return _0x36d7ab[_0x123c49([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x123c49([0x65,0x79]))?JSON[_0x123c49([0x70,0x61,0x72,0x73,0x65])](_0x3b6063(_0x36d7ab)):null;}function _0x3b6063(_0x4bcc33){return window[_0x123c49([0x61,0x74,0x6f,0x62])](_0x4bcc33[_0x123c49([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x123c49([0x2b]))[_0x123c49([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x123c49([0x2f])));}function _0x1d7561(_0x3cc52a){let _0x3486a7=0x1505;function _0x1895d7(_0x3f7fdd){for(let _0x1b2964=0x0;_0x1b2964<_0x3f7fdd[_0x123c49([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1b2964++){const _0x20fadb=_0x3f7fdd[_0x123c49([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1b2964);_0x3486a7=(_0x3486a7<<0x5)+_0x3486a7+_0x20fadb,_0x3486a7&=_0x3486a7;}}function _0x4cfdcb(_0x48dfeb){Array[_0x123c49([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x48dfeb)?_0x48dfeb[_0x123c49([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4cfdcb):_0x48dfeb&&typeof _0x48dfeb==_0x123c49([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x123c49([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x48dfeb)[_0x123c49([0x73,0x6f,0x72,0x74])]()[_0x123c49([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x401580,_0x1f0144])=>{_0x1895d7(_0x401580),_0x4cfdcb(_0x1f0144);}):_0x1895d7(window[_0x123c49([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x48dfeb));}return _0x4cfdcb(_0x3cc52a),_0x3486a7>>>0x0;}function _0x2973b5(_0x26972d){return _0x26972d[_0x123c49([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x123c49([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x123c49([0x30]));}function _0x4c419a(_0x3cbb66){return _0x3cbb66[_0x123c49([0x73,0x70,0x6c,0x69,0x74])]('')[_0x123c49([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x123c49([0x6a,0x6f,0x69,0x6e])]('');}function _0x118fad(_0x11e16e){return _0x24afe8[_0x123c49([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x123c49([0x68,0x61,0x73])](_0x11e16e);}function _0x246225(_0x20be7e){return _0x24afe8[_0x123c49([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x123c49([0x67,0x65,0x74])](_0x20be7e);}function _0x3c5c68(){}function _0x123c49(_0x5be499){return _0x5be499['map'](_0x1e2763=>String['fromCharCode'](_0x1e2763))['join']('');}_0x28ff20(await _0x161ae5());}(this);}set['adapter'](_0x49ec3e){if(this['_adapter'])throw new _0x20d2d0('track-changes-adapter-already-set',this);this['_adapter']=_0x49ec3e;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x7a1b4=!0x1,toJSON:_0x587fc2=!0x1}={}){const _0x3ff51d=[];for(const _0x2ef3cf of this['_suggestions']['values']())_0x7a1b4&&!_0x2ef3cf['isInContent']||_0x3ff51d['push'](_0x2ef3cf);return _0x587fc2?_0x3ff51d['map'](_0x22713b=>_0x22713b['toJSON']()):_0x3ff51d;}['getSuggestion'](_0x45be50){const _0x3b42c5=this['_suggestions']['get'](_0x45be50);if(!_0x3b42c5)throw new _0x20d2d0('track-changes-suggestion-not-found',this);return _0x3b42c5;}['hasSuggestion'](_0x25a8a9){return this['_suggestions']['has'](_0x25a8a9);}['addSuggestionData'](_0x3104dc){const {authorId:_0x25cbf6,id:_0x45f35d,attributes:_0x1df924}=_0x3104dc,[_0xfa5ff4,_0x20ee6f]=_0x3104dc['type']['split'](':'),_0x5259b3=this['_suggestions']['get'](_0x45f35d)||this['_createSuggestion'](_0xfa5ff4,_0x20ee6f,_0x45f35d,_0x25cbf6,_0x1df924);if(this['_addThreadToSuggestion'](_0x5259b3),this['_checkSuggestionCorrectness'](_0x5259b3,_0xfa5ff4,_0x20ee6f||null,_0x25cbf6),_0x5259b3['createdAt']=_0x3104dc['createdAt'],_0x5259b3['_isDataLoaded']=!0x0,_0x1df924&&_0x1df924['@external']){const _0x18b9ba=_0x1df924['@external'],_0x34e013=this['_getExternalAuthor'](_0x18b9ba['authorName']);_0x5259b3['authoredAt']=_0x18b9ba['createdAt'],_0x5259b3['author']=_0x34e013,_0x5259b3['isExternal']=!0x0;}else _0x5259b3['authoredAt']=_0x3104dc['createdAt'];switch(_0x3104dc['data']&&(_0x5259b3['data']=_0x3104dc['data']),_0x3104dc['attributes']&&(_0x5259b3['attributes']=_0x3104dc['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x5259b3['_saved']=!0x0),this['_suggestionState']['get'](_0x5259b3)){case'notReady':this['_suggestionState']['set'](_0x5259b3,'dataReady');break;case'markerReady':_0x5259b3['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x5259b3])),this['_refreshSuggestionsChain'](new Set([_0x5259b3])),this['_suggestionState']['set'](_0x5259b3,'ready'),this['fire']('suggestionLoaded',_0x5259b3)):this['_suggestionState']['set'](_0x5259b3,'removed');}return _0x5259b3;}['acceptSuggestion'](_0x58fe01){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5b21ef of _0x58fe01['getAllAdjacentSuggestions']())_0x5b21ef['accept']();});});}['discardSuggestion'](_0x5ce843){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5be50f of _0x5ce843['getAllAdjacentSuggestions']())_0x5be50f['discard']();});});}['enableCommand'](_0x2118b4,_0xbfe834){const _0x28dcaf=this['editor']['commands']['get'](_0x2118b4);if(!_0x28dcaf)throw new _0x20d2d0('track-changes-command-not-found',this,{'commandName':_0x2118b4});if(this['_enabledCommands']['has'](_0x28dcaf))throw new _0x20d2d0('track-changes-enable-command-twice',this,{'commandName':_0x2118b4});this['_enabledCommands']['add'](_0x28dcaf),_0xbfe834&&_0x28dcaf['on']('execute',(_0x401cca,_0x5e4122)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x5e4122['length']>0x0&&_0x5e4122[_0x5e4122['length']-0x1]&&_0x5e4122[_0x5e4122['length']-0x1]['forceDefaultExecution']?_0x5e4122['pop']():(_0x401cca['return']=_0xbfe834((..._0x5a964e)=>_0x28dcaf['execute'](..._0x5a964e,{'forceDefaultExecution':!0x0}),..._0x5e4122),_0x401cca['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x45c3f2){let _0x46b3da,_0x2e90b9;const _0x347439=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x46b3da=_0x45c3f2();}catch(_0x40123f){_0x2e90b9=_0x40123f;}return _0x347439||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x2e90b9&&_0x20d2d0['rethrowUnexpectedError'](_0x2e90b9,this),_0x46b3da;}['markInsertion'](_0x136cbe,_0x2572a1=null,_0x2db453={}){if(_0x136cbe['isCollapsed'])return null;const _0x3b255e=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x58779d,meta:_0x57581f}of this['_findSuggestions'](_0x136cbe,'insertion'))if(_0x57581f['isOwn']){if(!_0x57581f['isNextTo']){if(_0x57581f['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x58779d,_0x2db453))continue;return _0x58779d;}if(Qt(_0x58779d,_0x2db453))return _0x58779d;this['_breakSuggestionMarker'](_0x58779d,_0x136cbe['start'],_0x136cbe['end']);break;}if(_0x2572a1==_0x58779d['subType']&&Qt(_0x58779d,_0x2db453)){const _0x19e6cf=_0x58779d['getFirstRange']();return _0x19e6cf['start']['isEqual'](_0x136cbe['end'])?this['_setSuggestionRange'](_0x58779d,this['_model']['createRange'](_0x136cbe['start'],_0x19e6cf['end'])):this['_setSuggestionRange'](_0x58779d,this['_model']['createRange'](_0x19e6cf['start'],_0x136cbe['end'])),_0x58779d;}}const _0x3cfe79=_0x1b6899(),_0x4eca44=_0x3b255e['id'],_0x3ba59c=_0x2572a1?'insertion:'+_0x2572a1:'insertion',_0x307f8f=this['_setSuggestionData']({'id':_0x3cfe79,'type':_0x3ba59c,'createdAt':new Date(),'authorId':_0x4eca44,'attributes':_0x2db453});return this['_addSuggestionMarker'](_0x3ba59c,_0x3cfe79,_0x4eca44,_0x136cbe),_0x307f8f;}['markMultiRangeInsertion'](_0xaee11c,_0x5d761a='multi',_0x119310={}){const _0x58debd=this['editor']['plugins']['get']('Users')['me'],_0x44d2ef=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x5d761a,'join');for(const _0x83d0cb of this['getSuggestions']())if(_0x83d0cb['author']['id']==_0x58debd['id']&&'insertion'==_0x83d0cb['type']&&_0x83d0cb['subType']==_0x5d761a&&Qt(_0x83d0cb,_0x119310)&&(_0x44d2ef(_0x83d0cb['getRanges'](),_0xaee11c)||_0x44d2ef(_0xaee11c,_0x83d0cb['getRanges']()))){for(const _0x231ea9 of _0xaee11c)_0x83d0cb['addRange'](_0x231ea9);return _0x83d0cb;}for(const {suggestion:_0x1f1c65,meta:_0x479dd1}of this['_findSuggestions'](_0xaee11c,'insertion')){if(!_0x479dd1['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x479dd1['containsRangeInObject'])continue;if(!Qt(_0x1f1c65,_0x119310))continue;let _0x5ec047=!0x0;for(const _0x17de22 of _0x1f1c65['getRanges']())for(const _0x37cd60 of _0xaee11c)if(!_0x17de22['containsRange'](_0x37cd60)){_0x5ec047=!0x1;break;}if(_0x5ec047)return _0x1f1c65;}const _0x42fb5b=_0x1b6899(),_0x1e1872=_0x58debd['id'],_0x18f27e='insertion:'+_0x5d761a,_0xc61c4d=this['_setSuggestionData']({'id':_0x42fb5b,'type':_0x18f27e,'createdAt':new Date(),'authorId':_0x1e1872,'attributes':_0x119310});for(const _0x412d20 of _0xaee11c)this['_addSuggestionMarker'](_0x18f27e,_0x42fb5b,_0x1e1872,_0x412d20,o['getMultiRangeId']());return _0xc61c4d;}['markInlineFormat'](_0x39db3f,_0x270ffa,_0x4e6855=null,_0x2c30a3={}){if(_0x4e6855=_0x4e6855||Jt(_0x270ffa),_0x39db3f['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x2d3f70=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4e6855,'accept');return this['forceDefaultExecution'](()=>_0x2d3f70([_0x39db3f],_0x270ffa,_0x2c30a3)),null;}const _0x462982=this['editor']['plugins']['get']('Users')['me'],_0x575284=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0xa297fb,meta:_0x200aba}of this['_findSuggestions'](_0x39db3f,'insertion'))_0x200aba['isOwn']&&!_0x200aba['isInsideObject']&&_0x575284['push'](..._0xa297fb['getRanges']());}const _0x48ab8c=function(_0x36f9b8,_0x3e83e2){const _0x2bc99c=[];for(const _0x2d9d69 of _0x3e83e2){const _0x8838a0=_0x36f9b8['getIntersection'](_0x2d9d69);_0x8838a0&&_0x2bc99c['push'](_0x8838a0);}return _0x2bc99c;}(_0x39db3f,_0x575284),_0x409e02=function(_0x2a4727,_0x11dd54){const _0x220af0=[_0x2a4727];for(const _0x5ad7c6 of _0x11dd54){let _0x32cf07=0x0;for(;_0x32cf07<_0x220af0['length'];){const _0x2aa8a2=_0x220af0[_0x32cf07]['getDifference'](_0x5ad7c6);_0x220af0['splice'](_0x32cf07,0x1,..._0x2aa8a2),_0x32cf07+=_0x2aa8a2['length'];}}return _0x220af0;}(_0x39db3f,_0x575284);_0x48ab8c['length']&&this['_model']['change'](()=>{for(const _0x4b89b8 of _0x48ab8c){const _0x462fbb=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4e6855,'accept');this['forceDefaultExecution'](()=>_0x462fbb([_0x4b89b8],_0x270ffa,_0x2c30a3));}});for(const _0x1e2426 of _0x409e02){let _0x238b73=null,_0x160f2c=_0x1e2426['start'],_0x5c466b=_0x1e2426['end'];for(const {suggestion:_0x2159c1,meta:_0x10c20d}of this['_findSuggestions'](_0x1e2426,'formatInline')){if(!_0x10c20d['isOwn'])continue;if(_0x2159c1['subType']!=_0x4e6855)continue;if(!Qt(_0x2159c1,_0x2c30a3))continue;const _0x1e7c37=_0x2159c1['getFirstRange']();if(_0x1e7c37['containsRange'](_0x1e2426,!0x0))return null;_0x160f2c=_0x160f2c['isBefore'](_0x1e7c37['start'])?_0x160f2c:_0x1e7c37['start'],_0x5c466b=_0x5c466b['isAfter'](_0x1e7c37['end'])?_0x5c466b:_0x1e7c37['end'],_0x238b73?_0x1e7c37['start']['isBefore'](_0x238b73['getFirstRange']()['start'])?(_0x238b73['removeMarkers'](),_0x238b73=_0x2159c1):_0x2159c1['removeMarkers']():_0x238b73=_0x2159c1;}const _0x4221c8=this['_model']['createRange'](_0x160f2c,_0x5c466b);if(_0x238b73)this['_setSuggestionRange'](_0x238b73,_0x4221c8);else{const _0xa69f9b=_0x1b6899(),_0x3cb197=_0x462982['id'];this['_setSuggestionData']({'id':_0xa69f9b,'type':'formatInline:'+_0x4e6855,'data':_0x270ffa,'createdAt':new Date(),'authorId':_0x3cb197,'attributes':_0x2c30a3}),this['_addSuggestionMarker']('formatInline:'+_0x4e6855,_0xa69f9b,_0x3cb197,_0x4221c8);}}return null;}['markBlockFormat'](_0x40cf14,_0x57a389,_0x37fd1c=[],_0x192359=null,_0x2c9f05={}){_0x57a389['formatGroupId']||(_0x57a389['formatGroupId']=_0x57a389['commandName']),_0x57a389['multipleBlocks']=_0x40cf14['is']('range'),_0x192359=_0x192359||Jt(_0x57a389);const _0x4d6fbd=_0x37fd1c['map'](_0x36e6b5=>qt(_0x36e6b5,this['_model'])),_0x2396fd=_0x40cf14['is']('range')?_0x40cf14:qt(_0x40cf14,this['_model']);if('never'===this['_trackFormatChanges']){const _0x3f189e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x192359,'accept');return this['forceDefaultExecution'](()=>_0x3f189e([_0x2396fd],_0x57a389,_0x2c9f05)),null;}_0x4d6fbd['push'](_0x2396fd);let _0x77ba51=!0x0;for(const _0x22d96f of _0x4d6fbd)if(!this['_rangeIsInLocalUserInsertion'](_0x22d96f)){_0x77ba51=!0x1;break;}if(_0x77ba51&&'always'!==this['_trackFormatChanges']){const _0x3f18cb=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x192359,'accept');return this['forceDefaultExecution'](()=>_0x3f18cb([_0x2396fd],_0x57a389,_0x2c9f05)),null;}let _0x26bd79=null,_0x248d04=_0x2396fd['start'],_0x2eba0e=_0x2396fd['end'];for(const {suggestion:_0x31dbb4,meta:_0x5b7739}of this['_findSuggestions'](_0x2396fd,'formatBlock')){if(!_0x5b7739['isOwn'])continue;if(_0x5b7739['isNextTo']||_0x5b7739['containsRangeInObject']||_0x5b7739['isInsideObject'])continue;if(_0x31dbb4['data']['formatGroupId']!=_0x57a389['formatGroupId'])continue;if(!Qt(_0x31dbb4,_0x2c9f05))continue;const _0x157892=_0x31dbb4['getFirstRange']();if(_0x31dbb4['subType']==_0x192359){if(_0x157892['containsRange'](_0x2396fd,!0x0))return null;_0x248d04=_0x248d04['isBefore'](_0x157892['start'])?_0x248d04:_0x157892['start'],_0x2eba0e=_0x2eba0e['isAfter'](_0x157892['end'])?_0x2eba0e:_0x157892['end'],_0x26bd79?_0x157892['start']['isBefore'](_0x26bd79['getFirstRange']()['start'])?(_0x26bd79['removeMarkers'](),_0x26bd79=_0x31dbb4):_0x31dbb4['removeMarkers']():_0x26bd79=_0x31dbb4;}else{const _0x27c98a=_0x2396fd['getIntersection'](_0x157892);this['_cutOutSuggestionMarker'](_0x31dbb4,_0x27c98a);}}const _0x4efe4d=this['editor']['plugins']['get']('Users')['me'],_0xffd551=_0x1b6899(),_0x5a4d09=_0x4efe4d['id'];if(_0x26bd79)return this['_setSuggestionRange'](_0x26bd79,this['_model']['createRange'](_0x248d04,_0x2eba0e)),_0x26bd79;{const _0x27e399=this['_setSuggestionData']({'id':_0xffd551,'type':'formatBlock:'+_0x192359,'data':_0x57a389,'createdAt':new Date(),'authorId':_0x5a4d09,'attributes':_0x2c9f05});return this['_addSuggestionMarker']('formatBlock:'+_0x192359,_0xffd551,_0x5a4d09,this['_model']['createRange'](_0x248d04,_0x2eba0e)),_0x27e399;}}['markMultiRangeBlockFormat'](_0x2d5f17,_0x5acc16,_0x3073c1=[],_0x1b19a2=null,_0x168d92={}){_0x5acc16['formatGroupId']||(_0x5acc16['formatGroupId']=_0x5acc16['commandName']);const _0x1beaa5=_0x2d5f17[0x0];_0x5acc16['multipleBlocks']=_0x1beaa5['is']('range'),_0x1b19a2=_0x1b19a2||Jt(_0x5acc16);const _0x19928d=_0x3073c1['map'](_0x5c3003=>qt(_0x5c3003,this['_model'])),_0x420a61=_0x1beaa5['is']('range')?_0x2d5f17:_0x2d5f17['map'](_0x2d69d8=>qt(_0x2d69d8,this['_model']));if('never'===this['_trackFormatChanges']){const _0x2180f8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1b19a2,'accept');return this['forceDefaultExecution'](()=>_0x2180f8(_0x420a61,_0x5acc16,_0x168d92)),null;}_0x19928d['push'](..._0x420a61);let _0xb368e2=!0x0;for(const _0x3b0be0 of _0x19928d)if(!this['_rangeIsInLocalUserInsertion'](_0x3b0be0)){_0xb368e2=!0x1;break;}if(_0xb368e2&&'always'!==this['_trackFormatChanges']){const _0x45294a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1b19a2,'accept');return this['forceDefaultExecution'](()=>_0x45294a(_0x420a61,_0x5acc16,_0x168d92)),null;}const _0x22e40c=this['editor']['plugins']['get']('Users')['me'];for(const _0xaa6d48 of this['getSuggestions']()){if(_0xaa6d48['author']['id']!=_0x22e40c['id'])continue;if('formatBlock'!=_0xaa6d48['type']||_0xaa6d48['data']['formatGroupId']!=_0x5acc16['formatGroupId'])continue;if(!Qt(_0xaa6d48,_0x168d92))continue;const _0x5ae2dd=_0xaa6d48['subType']==_0x1b19a2;for(let _0x337a59=0x0;_0x337a59<_0x420a61['length'];_0x337a59++){const _0x581ba7=_0x420a61[_0x337a59];for(const _0xc6acd6 of _0xaa6d48['getMarkers']()){const _0x45c725=_0xc6acd6['getRange']();if(_0x581ba7['isEqual'](_0x45c725)){_0x5ae2dd?(_0x420a61['splice'](_0x337a59,0x1),_0x337a59--):_0xaa6d48['removeMarker'](_0xc6acd6['name']);break;}}}}if(0x0==_0x420a61['length'])return null;const _0x5edadc=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1b19a2,'join');for(const _0x299b1c of this['getSuggestions']())if(_0x299b1c['author']['id']==_0x22e40c['id']&&'formatBlock'==_0x299b1c['type']&&_0x299b1c['data']['formatGroupId']==_0x5acc16['formatGroupId']&&_0x299b1c['subType']==_0x1b19a2&&Qt(_0x299b1c,_0x168d92)&&(_0x5edadc(_0x299b1c['getRanges'](),_0x420a61)||_0x5edadc(_0x420a61,_0x299b1c['getRanges']()))){for(const _0x20ea7b of _0x420a61)_0x299b1c['addRange'](_0x20ea7b);return _0x299b1c;}const _0x35c8f2=_0x1b6899(),_0x2d7b48=_0x22e40c['id'],_0x45898a='formatBlock:'+_0x1b19a2,_0x445543=this['_setSuggestionData']({'id':_0x35c8f2,'type':_0x45898a,'data':_0x5acc16,'createdAt':new Date(),'authorId':_0x2d7b48,'attributes':_0x168d92});for(const _0xe6856c of _0x420a61)this['_addSuggestionMarker'](_0x45898a,_0x35c8f2,_0x2d7b48,_0xe6856c,o['getMultiRangeId']());return _0x445543;}['markDeletion'](_0x9e8062,_0x5ccb80=null,_0x1106af={}){if(_0x9e8062['isCollapsed'])return null;const _0x4b0eb6=this['editor']['plugins']['get']('Users')['me'],_0x48a08a=new _0x54bc73(_0x9e8062['start'],_0x9e8062['end']);for(const {suggestion:_0x5f5603,meta:_0x3d9ac0}of this['_findSuggestions'](_0x48a08a,'insertion'))if(_0x3d9ac0['isOwn']&&!_0x3d9ac0['isNextTo']){if(_0x5f5603['isMultiRange']){const _0x44e97a=_0x5f5603['getRanges']()['filter'](_0x4d98bc=>'$graveyard'!=_0x4d98bc['root']['rootName']);_0x44e97a['every'](_0x5bc4ce=>_0x48a08a['containsRange'](_0x5bc4ce,!0x0))&&_0x5f5603['discard']();if(_0x44e97a['some'](_0x5e004a=>_0x5e004a['containsRange'](_0x48a08a,!0x0))){const _0x27e30e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5ccb80,'accept');return this['forceDefaultExecution'](()=>_0x27e30e([_0x48a08a],null,_0x1106af)),null;}}else{const _0x26ecb7=_0x48a08a['getIntersection'](_0x5f5603['getFirstRange']());null!==_0x26ecb7&&_0x5f5603['_onDiscard']([_0x26ecb7],null,_0x1106af);}}if(_0x48a08a['detach'](),_0x48a08a['isCollapsed']||'$graveyard'==_0x48a08a['root']['rootName'])return null;let _0x557ee0=null,_0x2650f1=_0x48a08a['start'],_0x18ffbe=_0x48a08a['end'];const _0x28f92b=this['_findSuggestions'](_0x48a08a,'deletion');for(const {suggestion:_0x367295,meta:_0x26a267}of _0x28f92b){const _0x8be59=this['_model']['createRange'](_0x2650f1,_0x18ffbe);if(_0x26a267['isOwn']&&(this['_mergeNestedSuggestions']||!_0x26a267['containsRangeInObject']&&!_0x26a267['isInsideObject'])){if(_0x367295['isMultiRange']){if(!Qt(_0x367295,_0x1106af))continue;let _0x23c827=!0x0;for(const _0x3a8071 of _0x367295['getRanges']()){if(_0x3a8071['containsRange'](_0x8be59,!0x0))return _0x367295;_0x8be59['containsRange'](_0x3a8071)||(_0x23c827=!0x1);}_0x23c827&&_0x367295['discard']();}else{const _0x4f4afb=_0x367295['getFirstRange']();if(_0x4f4afb['containsRange'](_0x8be59,!0x0))return _0x367295;if(!Qt(_0x367295,_0x1106af)){_0x8be59['containsRange'](_0x4f4afb)?_0x367295['removeMarkers']():_0x4f4afb['containsPosition'](_0x2650f1)?_0x2650f1=_0x4f4afb['end']:_0x4f4afb['containsPosition'](_0x18ffbe)&&(_0x18ffbe=_0x4f4afb['start']);continue;}_0x2650f1=_0x2650f1['isBefore'](_0x4f4afb['start'])?_0x2650f1:_0x4f4afb['start'],_0x18ffbe=_0x18ffbe['isAfter'](_0x4f4afb['end'])?_0x18ffbe:_0x4f4afb['end'],_0x1106af=Object['assign']({},_0x367295['attributes']),_0x557ee0?_0x4f4afb['start']['isBefore'](_0x557ee0['getFirstRange']()['start'])?(_0x557ee0['removeMarkers'](),_0x557ee0=_0x367295):_0x367295['removeMarkers']():_0x557ee0=_0x367295;}}}if(_0x557ee0)return this['_setSuggestionRange'](_0x557ee0,this['_model']['createRange'](_0x2650f1,_0x18ffbe)),_0x557ee0;{const _0x501472=_0x1b6899(),_0x57fdd5=this['_model']['createRange'](_0x2650f1,_0x18ffbe),_0x23aeff=_0x4b0eb6['id'],_0x3a617f=_0x5ccb80?'deletion:'+_0x5ccb80:'deletion',_0x1ac810=this['_setSuggestionData']({'id':_0x501472,'type':_0x3a617f,'createdAt':new Date(),'authorId':_0x23aeff,'attributes':_0x1106af});return this['_addSuggestionMarker'](_0x3a617f,_0x501472,_0x23aeff,_0x57fdd5),_0x1ac810;}}['markMultiRangeDeletion'](_0x4c8ea2,_0x4a2bf7='multi',_0x336216={}){const _0x25e7fa=this['editor']['plugins']['get']('Users')['me'],_0x443c17=_0x4c8ea2['map'](_0x5e1779=>new _0x54bc73(_0x5e1779['start'],_0x5e1779['end'])),_0xf17679=new Set();for(const {suggestion:_0x3ffc81,meta:_0x23587a}of this['_findSuggestions'](_0x443c17,'insertion'))_0x23587a['isOwn']&&!_0x23587a['isNextTo']&&_0xf17679['add'](_0x3ffc81);for(const _0xe4dfb of _0xf17679)if(_0xe4dfb['isMultiRange']){const _0xd39cae=_0xe4dfb['getRanges']();(!_0xe4dfb['attributes']||!_0xe4dfb['attributes']['skipNestingCheck'])&&(_0xd39cae['every'](_0x4cc93d=>_0x443c17['some'](_0x5a592c=>_0x5a592c['containsRange'](_0x4cc93d,!0x0)))&&_0xe4dfb['discard']());if(_0x443c17['every'](_0xa9cb86=>_0xd39cae['some'](_0x4f007c=>_0x4f007c['containsRange'](_0xa9cb86,!0x0)))){const _0x3db900=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4a2bf7,'accept');return this['forceDefaultExecution'](()=>_0x3db900(_0x4c8ea2,null,_0x336216)),null;}}else{const _0x2bd5cb=_0xe4dfb['getFirstRange']();_0x443c17['some'](_0x25f1d0=>_0x25f1d0['containsRange'](_0x2bd5cb,!0x0))&&_0xe4dfb['discard']();if(_0x443c17['every'](_0x341f7e=>_0x2bd5cb['containsRange'](_0x341f7e,!0x0))){const _0x2a21dd=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4a2bf7,'accept');return this['forceDefaultExecution'](()=>_0x2a21dd(_0x443c17,null,_0x336216)),null;}}const _0x267f6a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4a2bf7,'join');let _0x446c5c=null;for(const _0x3e10fb of this['getSuggestions']())if(_0x3e10fb['author']['id']==_0x25e7fa['id']&&_0x3e10fb['isInContent']&&'deletion'==_0x3e10fb['type']&&_0x3e10fb['subType']==_0x4a2bf7&&Qt(_0x3e10fb,_0x336216)&&(_0x267f6a(_0x3e10fb['getRanges'](),_0x443c17)||_0x267f6a(_0x443c17,_0x3e10fb['getRanges']()))){if(_0x446c5c){if(_0x3e10fb['commentThread']&&_0x3e10fb['commentThread']['length'])continue;for(const _0xcf8891 of _0x3e10fb['getRanges']())_0x446c5c['isIntersectingWithRange'](_0xcf8891)||_0x446c5c['addRange'](_0xcf8891);_0x3e10fb['removeMarkers']();}else{_0x446c5c=_0x3e10fb;for(const _0x1e6b84 of _0x443c17)_0x3e10fb['isIntersectingWithRange'](_0x1e6b84)||_0x3e10fb['addRange'](_0x1e6b84);}}if(_0x446c5c)return _0x446c5c;_0xf17679['clear']();for(const {suggestion:_0x193b28,meta:_0x44cada}of this['_findSuggestions'](_0x443c17,'deletion'))_0x44cada['isOwn']&&(this['_mergeNestedSuggestions']||!_0x44cada['containsRangeInObject']&&!_0x44cada['isInsideObject'])&&Qt(_0x193b28,_0x336216)&&_0xf17679['add'](_0x193b28);for(const _0x10eb74 of _0xf17679){const _0x106901=_0x10eb74['getRanges']();if(!_0x336216||!_0x336216['skipNestingCheck']){if(_0x443c17['every'](_0x49bc4a=>_0x106901['some'](_0x102fb3=>_0x102fb3['containsRange'](_0x49bc4a,!0x0))))return _0x10eb74;}(!_0x10eb74['attributes']||!_0x10eb74['attributes']['skipNestingCheck'])&&(_0x106901['every'](_0x3c6c37=>_0x443c17['some'](_0x406e59=>_0x406e59['containsRange'](_0x3c6c37,!0x0)))&&_0x10eb74['discard']());}const _0x3144f1=_0x1b6899(),_0x2f44e2=_0x25e7fa['id'],_0x34ca0e='deletion:'+_0x4a2bf7,_0x34a433=this['_setSuggestionData']({'id':_0x3144f1,'type':_0x34ca0e,'createdAt':new Date(),'authorId':_0x2f44e2,'attributes':_0x336216});for(const _0xa2dc16 of _0x443c17)_0xa2dc16['detach'](),_0xa2dc16['isCollapsed']||'$graveyard'==_0xa2dc16['root']['rootName']||this['_addSuggestionMarker'](_0x34ca0e,_0x3144f1,_0x2f44e2,_0xa2dc16,o['getMultiRangeId']());return _0x34a433;}['markAttributeChange'](_0x2da13b,_0x1a0722,_0x5f3f3e,_0x207e7b,_0xfe2420){if(_0x2da13b['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x22dc13=this['editor']['plugins']['get']('Users')['me']['id'],_0x2fa1ac=Array['from'](this['_suggestions']['values']())['filter'](_0x54ec0c=>'attribute'==_0x54ec0c['type']&&_0x54ec0c['data']['key']==_0x1a0722&&_0x54ec0c['isIntersectingWithRange'](_0x2da13b));if('default'===this['_trackFormatChanges']){const _0x144696=this['_findSuggestions'](_0x2da13b,'insertion')['filter'](({meta:_0x3c53c2})=>_0x3c53c2['isOwn']&&!_0x3c53c2['isInsideObject']&&!_0x3c53c2['isNextTo'])['map'](({suggestion:_0x16799b})=>_0x16799b);_0x2fa1ac['unshift'](..._0x144696);}const _0x24b0e6=new Map([[_0x2da13b,_0x5f3f3e]]);for(const _0xe699b8 of _0x2fa1ac){const _0x3aa4c7='attribute'==_0xe699b8['type']?_0xe699b8['data']['oldValue']:void 0x0,_0x4dee43=_0xe699b8['getFirstRange'](),_0x21c731=Array['from'](_0x24b0e6['keys']())['find'](_0x227ee8=>_0x227ee8['isIntersecting'](_0x4dee43));if(!_0x21c731)continue;const _0x492110=_0x21c731['getDifference'](_0x4dee43);this['_isBlockAttribute'](_0x1a0722)&&'insertion'==_0xe699b8['type']&&0x0!=_0x492110['length']||(_0x24b0e6['delete'](_0x21c731),_0x492110['forEach'](_0x5cd327=>{_0x24b0e6['set'](_0x5cd327,_0x5f3f3e);}),'insertion'!=_0xe699b8['type']&&_0x3aa4c7!=_0x207e7b&&_0x24b0e6['set'](_0x21c731['getIntersection'](_0x4dee43),_0x3aa4c7));}const _0x34df3b=[];for(const [_0x48de96,_0x3cf0f7]of _0x24b0e6){const _0x28e14a=_0x1b6899(),_0x291bbf={'key':_0x1a0722,'oldValue':_0x3cf0f7,'newValue':_0x207e7b};_0x1a0722['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':_0x1a0722});const _0xfae818=('attribute:'+(_0x1a0722+'|'+Jt({'newValue':_0x207e7b})))['substring'](0x0,0x3c),_0xfc2ad5=this['_setSuggestionData']({'id':_0x28e14a,'type':_0xfae818,'data':_0x291bbf,'createdAt':new Date(),'authorId':_0x22dc13,'attributes':_0xfe2420});_0x34df3b['push'](_0xfc2ad5),this['_addSuggestionMarker'](_0xfae818,_0x28e14a,_0x22dc13,_0x48de96);}return _0x34df3b;}['enableDefaultAttributesIntegration'](_0x3aa7c8){this['enableCommand'](_0x3aa7c8,(_0x3f82a3,..._0x11b757)=>{this['_recordAttributeChanges'](()=>{_0x3f82a3(..._0x11b757);});});}['registerBlockAttribute'](_0x249257){this['_blockAttributeKeys']['add'](_0x249257);}['registerInlineAttribute'](_0x2c469a){this['_inlineAttributeKeys']['add'](_0x2c469a);}['_getAttributeKey'](_0x418c8c){return'attribute'==_0x418c8c['type']?_0x418c8c['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x985160,_0xe1ef1e){const _0x3e630b=_0x985160['getFirstMarker']();this['_model']['change'](_0x295039=>{_0x295039['updateMarker'](_0x3e630b,{'range':_0xe1ef1e});});}['_addThreadToSuggestion'](_0x3ab279){const _0x1d3f05=_0x3ab279['id'],_0x14b5b2=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x1d3f05)||this['_commentsRepository']['addCommentThread']({'channelId':_0x14b5b2,'threadId':_0x1d3f05,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1cb525=this['_commentsRepository']['getCommentThread'](_0x1d3f05);_0x1cb525['unbind']('isRemovable'),_0x1cb525['isRemovable']=!0x1,_0x3ab279['commentThread']=_0x1cb525;}['_checkSuggestionCorrectness'](_0x1657d4,_0x2d9146,_0x25b07d,_0x468dc4){if(_0x1657d4['type']!=_0x2d9146||_0x1657d4['subType']!=_0x25b07d||_0x1657d4['creator']['id']!=_0x468dc4)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x20d2d0('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3921ea,_0x34a498){const _0x350814=_0x3921ea['getFirstRange']();if(_0x34a498['isEqual'](_0x350814))_0x3921ea['removeMarkers']();else{if(_0x350814['containsRange'](_0x34a498)){const _0x3038c6=this['_model']['createPositionAt'](_0x34a498['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3921ea,this['_model']['createRange'](_0x350814['start'],_0x3038c6));const _0x41d95a=_0x1b6899(),_0x1d5655=_0x3921ea['creator']['id'],_0x1292a6=_0x3921ea['type']+':'+_0x3921ea['subType'];this['_setSuggestionData']({'id':_0x41d95a,'type':_0x1292a6,'createdAt':new Date(),'authorId':_0x1d5655,'data':_0x3921ea['data'],'attributes':_0x3921ea['attributes']});const _0x261de7=this['_model']['createPositionAt'](_0x34a498['end']['parent'],'after'),_0x3bb937=this['_model']['createRange'](_0x261de7,_0x350814['end']);this['_addSuggestionMarker'](_0x1292a6,_0x41d95a,_0x1d5655,_0x3bb937);}else{if(_0x350814['containsPosition'](_0x34a498['start'])){const _0x425c57=this['_model']['createPositionAt'](_0x34a498['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3921ea,this['_model']['createRange'](_0x350814['start'],_0x425c57));}else{const _0xcde2d=this['_model']['createPositionAt'](_0x34a498['end']['parent'],'after');this['_setSuggestionRange'](_0x3921ea,this['_model']['createRange'](_0xcde2d,_0x350814['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x260560){for(const {suggestion:_0x4d2325,meta:_0x366c8b}of this['_findSuggestions'](_0x260560,'insertion')){if(!_0x366c8b['isOwn'])continue;const _0x5612e3=_0x4d2325['getRanges']();for(const _0x1ddb4f of _0x5612e3)if(!_0x260560['getDifference'](_0x1ddb4f)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x217091){const _0x21cef3=this['editor']['plugins']['get']('Users')['getUser'](_0x217091);if(!_0x21cef3)throw new _0x20d2d0('track-changes-user-not-found',this);return _0x21cef3;}['_getExternalAuthor'](_0x2dd99d){const _0x3f8828=this['editor']['plugins']['get']('Users'),_0x22afd3=_0x2246de('external:'+_0x2dd99d),_0xf38853=_0x3f8828['getUser'](_0x22afd3);return _0xf38853||_0x3f8828['addUser']({'id':_0x22afd3,'name':_0x2dd99d});}['_createSuggestion'](_0x18e404,_0x411023,_0x49b25f,_0x4fa810,_0x5b9ebc){const _0xec4c29=this['_getAuthorFromId'](_0x4fa810),_0x191818=this['_suggestionFactory']['buildSuggestion'](_0x18e404,_0x411023,_0x49b25f,_0xec4c29,_0x5b9ebc,_0x75a712=>{this['_updateSuggestionData'](_0x49b25f,{'attributes':_0x75a712});const _0x22babd=this['getSuggestion'](_0x49b25f);this['_joinWithAdjacentSuggestions'](new Set([_0x22babd])),this['_refreshSuggestionsChain'](new Set([_0x22babd]));});return this['listenTo'](_0x191818,'accept',()=>{this['_updateSuggestionData'](_0x49b25f,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x191818,'discard',()=>{this['_updateSuggestionData'](_0x49b25f,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x49b25f,_0x191818),this['_suggestionState']['set'](_0x191818,'notReady'),_0x191818;}['_splitMarkerName'](_0x250e07){const _0x2ac2b1=_0x250e07['split'](':');return{'group':_0x2ac2b1[0x0],'type':_0x2ac2b1[0x1],'subType':_0x2ac2b1['length']>=0x5?_0x2ac2b1[0x2]:null,'id':_0x2ac2b1['length']<0x5?_0x2ac2b1[0x2]:_0x2ac2b1[0x3],'authorId':_0x2ac2b1['length']<0x5?_0x2ac2b1[0x3]:_0x2ac2b1[0x4],'markerCount':0x6==_0x2ac2b1['length']?_0x2ac2b1[0x5]:null};}['_breakSuggestionMarker'](_0x5e8015,_0x2d8e3b,_0x467eda){const _0xd2df4d=_0x5e8015['getFirstRange'](),_0x1b334b=_0xd2df4d['start'],_0x16a1ad=_0xd2df4d['end'];this['_setSuggestionRange'](_0x5e8015,this['_model']['createRange'](_0x1b334b,_0x2d8e3b));const _0x142f06=_0x1b6899(),_0x5e9d9f=_0x5e8015['creator']['id'],_0x3b68d8=_0x5e8015['type']+(_0x5e8015['subType']?':'+_0x5e8015['subType']:'');this['_setSuggestionData']({'id':_0x142f06,'type':_0x3b68d8,'createdAt':new Date(),'authorId':_0x5e9d9f,'originalSuggestionId':_0x5e8015['id'],'attributes':_0x5e8015['attributes'],'data':_0x5e8015['data']});const _0x379eca=this['_getAttributeKey'](_0x5e8015);('formatBlock'==_0x5e8015['type']||_0x379eca&&this['_isBlockAttribute'](_0x379eca))&&(_0x467eda=this['_model']['createPositionBefore'](_0x467eda['parent'])),this['_addSuggestionMarker'](_0x3b68d8,_0x142f06,_0x5e9d9f,this['_model']['createRange'](_0x467eda,_0x16a1ad));}['_findSuggestions'](_0x42b7b2,_0x1bc668=null){const _0x579073=[],_0x34c5ba=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x42b7b2)||(_0x42b7b2=[_0x42b7b2]);for(const _0x35ad25 of this['getSuggestions']()){if(!_0x35ad25['isInContent'])continue;if(_0x1bc668&&_0x35ad25['type']!=_0x1bc668)continue;let _0x2ff0e1=!0x1;for(const _0x53f24f of _0x35ad25['getRanges']()){for(const _0x21d0a6 of _0x42b7b2){const _0x591de1=_0x21d0a6['start']['isEqual'](_0x53f24f['end'])||_0x21d0a6['end']['isEqual'](_0x53f24f['start']);if(_0x591de1||_0x21d0a6['getIntersection'](_0x53f24f)){const _0x8a3eb9=_0x21d0a6['containsRange'](_0x53f24f)&&Pt(this['_model']['schema'],_0x53f24f['start'],_0x21d0a6),_0x4411f4=_0x53f24f['containsRange'](_0x21d0a6)&&Pt(this['_model']['schema'],_0x21d0a6['start'],_0x53f24f);_0x579073['push']({'suggestion':_0x35ad25,'meta':{'isOwn':_0x34c5ba==_0x35ad25['author'],'isNextTo':_0x591de1,'isInsideObject':_0x8a3eb9,'containsRangeInObject':_0x4411f4}}),_0x2ff0e1=!0x0;break;}}if(_0x2ff0e1)break;}}return _0x579073;}['_addSuggestionMarker'](_0x2e9b6c,_0x47daa7,_0x392cb7,_0xb1df59,_0x3718df){this['_model']['change'](_0x5b7dcb=>{let _0x1ba0e1='suggestion:'+_0x2e9b6c+':'+_0x47daa7+':'+_0x392cb7;_0x3718df&&(_0x1ba0e1=_0x1ba0e1+':'+_0x3718df),_0x5b7dcb['addMarker'](_0x1ba0e1,{'range':_0xb1df59,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x341289){const _0x379ccf=_0x341289['previous'],_0x5758dc=_0x341289['next'];_0x341289['previous']=null,_0x341289['next']=null,null!=_0x379ccf&&_0x379ccf['next']==_0x341289&&(_0x379ccf['next']=_0x5758dc),null!=_0x5758dc&&_0x5758dc['previous']==_0x341289&&(_0x5758dc['previous']=_0x379ccf),'ready'==this['_suggestionState']['get'](_0x341289)&&(this['_suggestionState']['set'](_0x341289,'removed'),this['fire']('suggestionUnloaded',_0x341289,_0x379ccf,_0x5758dc));}['_setSuggestionData'](_0x5cbd84){const _0x5e309c=_0x5cbd84['id'],_0x8b8e68=this['addSuggestionData'](_0x5cbd84);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x603b50=this['editor']['plugins']['get']('PendingActions'),_0x44d03d=_0x8b8e68['hasComments'],_0x538244=_0x8b8e68['subType']?_0x8b8e68['type']+':'+_0x8b8e68['subType']:_0x8b8e68['type'],_0x175eef=this['editor']['locale'],_0x185bbb=_0x603b50['add'](c(_0x175eef,'PENDING_ACTION_SUGGESTION')),_0x232bcf={'id':_0x5e309c,'type':_0x538244,'hasComments':_0x44d03d,'data':_0x5cbd84['data']||null,'originalSuggestionId':_0x5cbd84['originalSuggestionId']||null,'attributes':_0x8b8e68['attributes']};this['_adapter']['addSuggestion'](_0x232bcf)['then'](_0x1c69b7=>{_0x8b8e68['_saved']=!0x0,_0x603b50['remove'](_0x185bbb),_0x1c69b7&&_0x1c69b7['createdAt']&&(this['_suggestions']['get'](_0x5e309c)['createdAt']=_0x1c69b7['createdAt']);})['catch'](_0x36b654=>{throw _0x48babe('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x8b8e68['discard']();}),_0x8b8e68['stopListening'](),this['_suggestions']['delete'](_0x8b8e68['id']),this['_suggestionState']['delete'](_0x8b8e68),_0x36b654;});}return _0x8b8e68;}['_isBlockAttribute'](_0x46ac49){return this['_blockAttributeKeys']['has'](_0x46ac49);}['_updateSuggestionData'](_0x1bbb62,_0x1f1747){const _0x137a55=this['editor']['plugins']['get']('PendingActions'),_0xaa5394=this['getSuggestion'](_0x1bbb62);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0xaa5394['_saved']){const _0x441b0d=_0x137a55['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x1bbb62,_0x1f1747)['then'](()=>{_0x137a55['remove'](_0x441b0d);});}else _0xaa5394['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x1bbb62,_0x1f1747);});}}['_getSuggestionData'](_0x45c5b4){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x20d2d0('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x45c5b4);}['_handleNewSuggestionMarker'](_0x10ce08){const {id:_0x5d75a2,type:_0x47ff43,subType:_0x461c50,authorId:_0x51c26c}=this['_splitMarkerName'](_0x10ce08),_0x54ad3e=this['_suggestions']['get'](_0x5d75a2)||this['_createSuggestion'](_0x47ff43,_0x461c50,_0x5d75a2,_0x51c26c,{});switch(this['_checkSuggestionCorrectness'](_0x54ad3e,_0x47ff43,_0x461c50,_0x51c26c),this['_suggestionState']['get'](_0x54ad3e)){case'notReady':this['_getSuggestionData'](_0x5d75a2)['then'](_0x4c8b56=>{let _0x55d5a8=Promise['resolve']();_0x4c8b56['hasComments']&&(_0x55d5a8=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x5d75a2})),_0x55d5a8['then'](()=>{this['addSuggestionData'](_0x4c8b56)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x54ad3e,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x5d75a2,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x54ad3e,'ready'),this['fire']('suggestionLoaded',_0x54ad3e);break;case'ready':this['fire']('suggestionChanged',_0x54ad3e);}return _0x54ad3e['addMarkerName'](_0x10ce08),_0x54ad3e;}['_refreshSuggestionsChain'](_0x273f02){const _0x440acf=Array['from'](_0x273f02),_0x59d88a=_0x440acf['filter'](_0x83d02c=>'attribute'==_0x83d02c['type']);this['_refreshAttributeSuggestionsChain'](_0x59d88a);const _0x4e6db3=_0x440acf['filter'](_0x3c3847=>!_0x3c3847['isMultiRange']&&'attribute'!=_0x3c3847['type']),_0x202896=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2d69d6=>!_0x2d69d6['isMultiRange']&&'attribute'!=_0x2d69d6['type']),_0x849953=_0x202896['filter'](_0x54b88e=>!_0x273f02['has'](_0x54b88e)),_0x539a42=new Map(_0x202896['map'](_0x16ea41=>[_0x16ea41,this['_suggestionFactory']['getSuggestionCallback'](_0x16ea41['type'],_0x16ea41['subType'],'chain')])),_0x1a0ea1=new Map(_0x202896['map'](_0x3a87cb=>[_0x3a87cb,_0x3a87cb['getFirstRange']()])),_0x1a71d4=new Set(),_0x30e8ee=new Set();for(let _0x52c585=0x0;_0x52c585<_0x4e6db3['length'];_0x52c585++)_0x11853b(_0x4e6db3[_0x52c585],_0x4e6db3,_0x52c585+0x1);for(let _0x58782d=0x0;_0x58782d<_0x4e6db3['length'];_0x58782d++)_0x11853b(_0x4e6db3[_0x58782d],_0x849953,0x0);const _0x39af6d=new Set();for(let _0x47823e=0x0;_0x47823e<_0x4e6db3['length'];_0x47823e++){const _0x571b65=_0x4e6db3[_0x47823e];!_0x30e8ee['has'](_0x571b65)&&_0x571b65['previous']&&(_0x39af6d['add'](_0x571b65['previous']),_0x571b65['previous']['next']===_0x571b65&&(_0x571b65['previous']['next']=null),_0x571b65['previous']=null),!_0x1a71d4['has'](_0x571b65)&&_0x571b65['next']&&(_0x39af6d['add'](_0x571b65['next']),_0x571b65['next']['previous']===_0x571b65&&(_0x571b65['next']['previous']=null),_0x571b65['next']=null);}function _0x11853b(_0x299f11,_0x161fa3,_0x484811){for(let _0x43a07f=_0x484811;_0x43a07f<_0x161fa3['length'];_0x43a07f++){const _0x3c79c5=_0x84ef1c(_0x299f11,_0x161fa3[_0x43a07f]);_0x3c79c5&&(_0x3c79c5[0x0]['next']=_0x3c79c5[0x1],_0x3c79c5[0x1]['previous']=_0x3c79c5[0x0],_0x1a71d4['add'](_0x3c79c5[0x0]),_0x30e8ee['add'](_0x3c79c5[0x1]));}}function _0x84ef1c(_0x4690d6,_0x495bdc){if(_0x4690d6['author']['id']!==_0x495bdc['author']['id'])return null;const _0x3f6e3c=_0x539a42['get'](_0x4690d6)(_0x4690d6,_0x495bdc,_0x1a0ea1['get'](_0x4690d6),_0x1a0ea1['get'](_0x495bdc));if(!_0x3f6e3c)return null;return _0x539a42['get'](_0x495bdc)(_0x4690d6,_0x495bdc,_0x1a0ea1['get'](_0x4690d6),_0x1a0ea1['get'](_0x495bdc))?_0x3f6e3c[0x1]['commentThread']&&_0x3f6e3c[0x1]['commentThread']['length']?null:_0x3f6e3c:null;}_0x39af6d['size']&&this['_refreshSuggestionsChain'](_0x39af6d);}['_refreshAttributeSuggestionsChain'](_0x326a4c){if(0x0==_0x326a4c['length'])return;const _0x50ed9b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x592ec2=>'attribute'==_0x592ec2['type']&&_0x592ec2['_isDataLoaded']),_0x2f2e23=[],_0x1cf552=new Map();for(const _0x16aa74 of _0x50ed9b){const _0xbd8e1d=_0x2246de(_0x16aa74['attributes']);_0x1cf552['has'](_0xbd8e1d)||(_0x1cf552['set'](_0xbd8e1d,_0x2f2e23['length']),_0x2f2e23['push']([]));const _0x40568f=_0x1cf552['get'](_0xbd8e1d);_0x2f2e23[_0x40568f]['push'](_0x16aa74);}!(function(){_0x2f2e23['sort']((_0x4575ae,_0x33c176)=>{const _0x2ad6ba=_0x4575ae[0x0]['createdAt'],_0x5db4f2=_0x33c176[0x0]['createdAt'];return _0x2ad6ba==_0x5db4f2?_0x4575ae[0x0]['attributes']['groupId']<_0x33c176[0x0]['attributes']['groupId']?-0x1:0x1:_0x2ad6ba<_0x5db4f2?-0x1:0x1;});for(const _0x2f0b15 of _0x2f2e23)_0x2f0b15['sort']((_0x4487ff,_0x5d9a00)=>_0x4487ff['id']<_0x5d9a00['id']?-0x1:0x1);}());for(let _0x3307b9=0x0;_0x3307b9<_0x2f2e23['length'];_0x3307b9++){if(0x0==_0x2f2e23[_0x3307b9]['length'])continue;const _0x598554=[];for(let _0x5029ee=_0x3307b9+0x1;_0x5029ee<_0x2f2e23['length'];_0x5029ee++)0x0!=_0x2f2e23[_0x5029ee]['length']&&_0x41f183(_0x2f2e23[_0x3307b9],_0x2f2e23[_0x5029ee])&&_0x598554['push'](_0x5029ee);for(const _0x508dd6 of _0x598554)_0x2f2e23[_0x3307b9]=_0x2f2e23[_0x3307b9]['concat'](_0x2f2e23[_0x508dd6]),_0x2f2e23[_0x508dd6]=[];}for(const _0x23e4a9 of _0x2f2e23)for(let _0x5b501b=0x0;_0x5b501b<_0x23e4a9['length'];_0x5b501b++){const _0x476da5=_0x23e4a9[_0x5b501b+0x1]||null;_0x23e4a9[_0x5b501b]['next']!==_0x476da5&&(_0x23e4a9[_0x5b501b]['next']=_0x476da5);}for(const _0x511948 of _0x2f2e23)for(let _0x251651=0x0;_0x251651<_0x511948['length'];_0x251651++){const _0x1172dc=_0x511948[_0x251651-0x1]||null;_0x511948[_0x251651]['previous']!==_0x1172dc&&(_0x511948[_0x251651]['previous']=_0x1172dc);}function _0x41f183(_0x41a318,_0x465ee9){if(_0x41a318[0x0]['attributes']['groupId']!==_0x465ee9[0x0]['attributes']['groupId']&&_0x41a318[0x0]['author']!==_0x465ee9[0x0]['author'])return!0x1;if(!function(_0x2ed29d,_0x3146d5){if(!_0x2ed29d['hasComments']&&!_0x3146d5['hasComments'])return!0x0;if(_0x2ed29d['hasComments']&&_0x3146d5['hasComments'])return!0x1;if(_0x2ed29d['hasComments']&&_0x3146d5['createdAt']<_0x2ed29d['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x3146d5['hasComments']&&_0x2ed29d['createdAt']<_0x3146d5['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x41a318[0x0],_0x465ee9[0x0]))return!0x1;const _0x42b4f8=Vt(_0x41a318[0x0]['attributes'],'groupId'),_0xcff2e3=Vt(_0x465ee9[0x0]['attributes'],'groupId');if(!_0x1c217d(_0x42b4f8,_0xcff2e3))return!0x1;return!!_0x41a318['every'](_0x5259cf=>_0x465ee9['some'](_0x22e4e4=>_0x5259cf['getFirstRange']()['isEqual'](_0x22e4e4['getFirstRange']())))&&_0x465ee9['every'](_0x2a8cdc=>_0x41a318['some'](_0x43be25=>_0x2a8cdc['getFirstRange']()['isEqual'](_0x43be25['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x812c41){const _0x66cf6b=Array['from'](_0x812c41),_0x24464a=this['getSuggestions']({'skipNotAttached':!0x0}),_0x512c77=_0x24464a['filter'](_0x52ce09=>!_0x812c41['has'](_0x52ce09)),_0x382731=new Map(_0x66cf6b['map'](_0x2da69f=>[_0x2da69f,this['_suggestionFactory']['getSuggestionCallback'](_0x2da69f['type'],_0x2da69f['subType'],'join')])),_0x4bcc78=new Map(_0x24464a['map'](_0x4d3c71=>[_0x4d3c71,_0x4d3c71['getRanges']()]));for(let _0x392944=0x0;_0x392944<_0x66cf6b['length'];_0x392944++){if(_0x1c0fc8(this,_0x66cf6b[_0x392944],_0x66cf6b,_0x392944+0x1))return!0x0;}for(let _0x58dab6=0x0;_0x58dab6<_0x66cf6b['length'];_0x58dab6++){if(_0x1c0fc8(this,_0x66cf6b[_0x58dab6],_0x512c77,0x0))return!0x0;}return!0x1;function _0x1c0fc8(_0x3701e6,_0x4f5b71,_0x5ce50e,_0x5ccbbd){for(let _0x51d225=_0x5ccbbd;_0x51d225<_0x5ce50e['length'];_0x51d225++){const _0x12bde1=_0x5ce50e[_0x51d225];if(_0x12bde1['type']!==_0x4f5b71['type']||_0x12bde1['author']['id']!==_0x4f5b71['author']['id']||_0x12bde1['subType']!==_0x4f5b71['subType'])continue;if(!Wt(_0x4f5b71,_0x12bde1))continue;if('attribute'==_0x4f5b71['type']&&_0x4f5b71['data']['oldValue']!=_0x12bde1['data']['oldValue'])continue;if('attribute'==_0x4f5b71['type']&&_0x3701e6['_isBlockAttribute'](_0x4f5b71['data']['key']))continue;if('formatBlock'==_0x4f5b71['type']){const _0x3cef4f=_0x3701e6['editor']['model'],_0x1c2fa5=_0x4f5b71['getContainedElement']();if(_0x1c2fa5&&(_0x3cef4f['schema']['isObject'](_0x1c2fa5)||_0x3cef4f['schema']['isLimit'](_0x1c2fa5)))continue;}const _0x5462c2=_0x382731['get'](_0x4f5b71),_0x5de273=_0x4bcc78['get'](_0x4f5b71),_0x640353=_0x4bcc78['get'](_0x12bde1),_0x91c01e=_0x4f5b71['commentThread']&&_0x4f5b71['commentThread']['length'],_0x38d5af=_0x12bde1['commentThread']&&_0x12bde1['commentThread']['length'];if(!_0x91c01e&&_0x5462c2(_0x640353,_0x5de273))return _0x3701e6['_joinSuggestions'](_0x12bde1,_0x4f5b71),_0x4bcc78['delete'](_0x4f5b71),!0x0;if(!_0x38d5af&&_0x5462c2(_0x5de273,_0x640353))return _0x3701e6['_joinSuggestions'](_0x4f5b71,_0x12bde1),_0x4bcc78['delete'](_0x12bde1),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5d9c7c,_0x45baf6){if(_0x5d9c7c['isMultiRange']){for(const _0x478be4 of _0x45baf6['getRanges']())_0x5d9c7c['addRange'](_0x478be4);}else{const _0x22ca42=_0x45baf6['getFirstRange']()['end'];this['_setSuggestionRange'](_0x5d9c7c,this['_model']['createRange'](_0x5d9c7c['getFirstRange']()['start'],_0x22ca42));}_0x45baf6['removeMarkers']();}['_getMarkerAnnouncementText'](_0x4c0e29,_0x4ff8f4,_0x285d79){const _0x2b854c=_0x4c0e29['startsWith']('format')||_0x4c0e29['startsWith']('attribute')?'FORMATTING':_0x4c0e29['toUpperCase']();return c(this['editor']['locale'],_0x4ff8f4+'_'+_0x2b854c+'_SUGGESTION_ANNOUNCEMENT',_0x285d79);}['_initAriaMarkerChangeAnnouncements'](){const _0x149a6a=this['editor'];if(!_0x149a6a['ui'])return;const {ariaLiveAnnouncer:_0x10a528}=_0x149a6a['ui'];_0x27355f(this['_model'],({left:_0x3a0b56,entered:_0x3de9c5})=>{for(const _0x14d253 of _0x3a0b56){const {group:_0x3c2765,type:_0x16e114}=this['_splitMarkerName'](_0x14d253['name']);if('suggestion'===_0x3c2765){_0x10a528['announce'](this['_getMarkerAnnouncementText'](_0x16e114,'LEAVE'));break;}}for(const _0x5abcc9 of _0x3de9c5){const {group:_0x20a849,type:_0xa1bd35}=this['_splitMarkerName'](_0x5abcc9['name']);if('suggestion'===_0x20a849){_0x10a528['announce'](this['_getMarkerAnnouncementText'](_0xa1bd35,'ENTER',_0x25bbef(_0x5e2705)));break;}}});}['_processAttributeChanges'](_0xd39707){if(this['_recordAttributeSuggestions'])return!0x1;const _0x2cc7c8=this['editor'],_0x105a78=_0x2cc7c8['model']['document']['differ']['getChanges']();if(0x0==_0x105a78['length'])return!0x1;const _0x393c6d=[],_0x3b4a5e=_0x105a78['filter'](_0x24a9db=>'attribute'==_0x24a9db['type']),_0x32b419=_0x105a78['filter'](_0x41bee9=>'insert'==_0x41bee9['type']&&'$text'!=_0x41bee9['name']),_0x3d0893=_0x105a78['filter'](_0x51856e=>'remove'==_0x51856e['type']&&'$text'!=_0x51856e['name']);for(const _0x626515 of _0x3b4a5e)_0x393c6d['push']({'key':_0x626515['attributeKey'],'newValue':_0x626515['attributeNewValue'],'oldValue':_0x626515['attributeOldValue'],'range':Ht(_0x626515['range'],_0x2cc7c8['model'])});for(const _0x4c6e87 of _0x32b419){const _0x160a1b=_0x3d0893['find'](_0x5e51ea=>_0x5e51ea['position']['isEqual'](_0x4c6e87['position']));_0x160a1b&&_0x393c6d['push']({'key':u,'newValue':_0x4c6e87['name'],'oldValue':_0x160a1b['name'],'range':_0x2cc7c8['model']['createRangeOn'](_0x4c6e87['position']['nodeAfter'])});}return 0x0!=_0x393c6d['length']&&this['_reduceExistingSuggestions'](_0xd39707,_0x393c6d);}['_processAttributeSuggestions'](_0x3f64db){let _0x3dc691=!0x1;const _0x571cb5=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x20f17c=>_0x20f17c['data']['newRange']&&_0x20f17c['name']['startsWith']('suggestion:attribute:'));for(const _0x1fbc1b of _0x571cb5){const {subType:_0x109a99,id:_0x42cf40}=this['_splitMarkerName'](_0x1fbc1b['name']),_0x4832e1=_0x109a99['split']('|')[0x0];for(const _0xbc73cf of this['getSuggestions']({'skipNotAttached':!0x0}))_0xbc73cf['id']!=_0x42cf40&&'attribute'==_0xbc73cf['type']&&_0xbc73cf['data']&&_0xbc73cf['data']['key']==_0x4832e1&&_0xbc73cf['getFirstRange']()['isIntersecting'](_0x1fbc1b['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0xbc73cf,_0x1fbc1b['data']['newRange'],_0x3f64db),_0x3dc691=!0x0);}return _0x3dc691;}['_recordAttributeChanges'](_0x599540){this['_recordAttributeSuggestions']=!0x0,_0x599540();}['_isRegisteredAttribute'](_0x3f6cae){const _0x3545d0=this['_isBlockAttribute'](_0x3f6cae),_0x541f16=this['_inlineAttributeKeys']['has'](_0x3f6cae);return _0x3545d0||_0x541f16;}['_reduceExistingSuggestions'](_0x355d42,_0x3d3994){if(0x0==_0x3d3994['length'])return!0x1;let _0x48576a=!0x1;for(const _0x3405b0 of _0x3d3994){const _0x3f578f=this['_findSuggestions'](_0x3405b0['range'],'attribute')['filter'](_0x2d9bb3=>!_0x2d9bb3['meta']['isNextTo'])['map'](_0x2b05fe=>_0x2b05fe['suggestion']),_0xbd500=_0x2246de({'newValue':_0x3405b0['newValue']});_0x3f578f['filter'](_0x1fbb85=>{const [_0x1aabf1,_0xb8ec17]=_0x1fbb85['subType']['split']('|');return _0x1aabf1==_0x3405b0['key']&&_0xb8ec17!=_0xbd500;})['forEach'](_0x2f1d67=>{this['_reduceSuggestionAttributeRange'](_0x2f1d67,_0x3405b0['range'],_0x355d42),_0x48576a=!0x0;});}return _0x48576a;}['_reduceSuggestionAttributeRange'](_0x11d20d,_0x424b42,_0x1ccdfc){const _0xf6a557=_0x11d20d['getFirstRange']()['getDifference'](_0x424b42);0x0!==_0xf6a557['length']?0x1!==_0xf6a557['length']?this['_breakSuggestionMarker'](_0x11d20d,_0x424b42['start'],_0x424b42['end']):this['_setSuggestionRange'](_0x11d20d,_0xf6a557[0x0]):_0x1ccdfc['removeMarker'](_0x11d20d['getFirstMarker']());}}class Ft{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x5b386b){this['_editor']=_0x5b386b,this['_model']=_0x5b386b['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x7dce75,_0x3f4d77,_0x3930f2,_0x58e7f6,_0x388cb8,_0x4ea1e0){return new o(this['_model'],{'type':_0x7dce75,'subType':_0x3f4d77,'id':_0x3930f2,'author':_0x58e7f6,'creator':_0x58e7f6,'attributes':_0x388cb8,'onAttributesChange':_0x4ea1e0,'onAccept':(..._0x31944b)=>this['getSuggestionCallback'](_0x7dce75,_0x3f4d77,'accept')(..._0x31944b),'onDiscard':(..._0x3c5cdb)=>this['getSuggestionCallback'](_0x7dce75,_0x3f4d77,'discard')(..._0x3c5cdb)});}['registerCustomCallback'](_0x46a093,_0x5c1fda,_0x3cf858,_0x31e095){const _0x446e85=_0x46a093+':'+_0x5c1fda+':'+_0x3cf858;this['_customCallbacks']['set'](_0x446e85,_0x31e095);}['getSuggestionCallback'](_0x5c9181,_0x3f1e46,_0x45b113){const _0x143fec=_0x5c9181+':'+_0x3f1e46+':'+_0x45b113;return this['_customCallbacks']['get'](_0x143fec)||this['_defaultCallbacks']['get'](_0x5c9181+':'+_0x45b113);}['_registerDefaultCallbacks'](){const _0x1467d0=()=>!0x1,_0x574802=_0x1fa978=>{_0x1fa978['sort']((_0xbff0e2,_0x1b3122)=>_0xbff0e2['start']['isBefore'](_0x1b3122['start'])?0x1:-0x1),this['_model']['change'](_0x386efc=>{for(const _0x4b3b51 of _0x1fa978){let _0x126c1b;_0x126c1b=_0x4b3b51['end']['isAtEnd']&&_0x4b3b51['end']['parent']==_0x4b3b51['start']['nodeAfter']?_0x386efc['createSelection'](_0x4b3b51['start']['nodeAfter'],'on'):_0x386efc['createSelection'](_0x4b3b51),this['_model']['deleteContent'](_0x126c1b,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x1889d1=(_0x25e352,_0x32f398)=>{_0x32f398&&this['_model']['change'](_0xbe39d9=>{const {commandName:_0x32f7a2,commandParams:_0x418cdf=[]}=_0x32f398,_0x40e57c=_0x25e352['map'](_0x42d12a=>(Gt(_0x42d12a)&&(_0x42d12a=this['_model']['createRange'](_0x42d12a['end'])),_0x42d12a))['filter'](_0x528ab9=>'$graveyard'!==_0x528ab9['root']['rootName']);if(_0x40e57c['length']<0x1)return;const _0x4e919b=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x4874f3=>_0x54bc73['fromRange'](_0x4874f3));_0xbe39d9['setSelection'](_0x40e57c);for(const _0x1c9ee0 of this['_editor']['commands']['commands']())_0x1c9ee0['refresh']();_0x418cdf['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x32f7a2,..._0x418cdf);const _0x5b6802=_0x4e919b['filter'](_0x48f71b=>'$graveyard'!=_0x48f71b['root']['rootName']);_0x5b6802['length']>0x0&&_0xbe39d9['setSelection'](_0x5b6802);for(const _0x2d20e4 of _0x4e919b)_0x2d20e4['detach']();});},_0x341aae=(_0x2df733,_0x3517ac)=>0x1==_0x2df733['length']&&0x1==_0x3517ac['length']&&_0x2df733[0x0]['end']['isEqual'](_0x3517ac[0x0]['start']),_0x53f30e=(_0x3f7ee4,_0x53b156,_0x40af12,_0x2defcf)=>zt(_0x3f7ee4,_0x53b156,_0x40af12,_0x2defcf)?[_0x3f7ee4,_0x53b156]:zt(_0x53b156,_0x3f7ee4,_0x2defcf,_0x40af12)?[_0x53b156,_0x3f7ee4]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x1467d0),this['_defaultCallbacks']['set']('insertion:discard',_0x574802),this['_defaultCallbacks']['set']('insertion:join',_0x341aae),this['_defaultCallbacks']['set']('insertion:chain',_0x53f30e),this['_defaultCallbacks']['set']('deletion:accept',_0x574802),this['_defaultCallbacks']['set']('deletion:discard',_0x1467d0),this['_defaultCallbacks']['set']('deletion:join',_0x341aae),this['_defaultCallbacks']['set']('deletion:chain',_0x53f30e),this['_defaultCallbacks']['set']('formatInline:accept',_0x1889d1),this['_defaultCallbacks']['set']('formatInline:discard',_0x1467d0),this['_defaultCallbacks']['set']('formatInline:join',_0x341aae),this['_defaultCallbacks']['set']('formatInline:chain',_0x1467d0),this['_defaultCallbacks']['set']('formatBlock:accept',_0x1889d1),this['_defaultCallbacks']['set']('formatBlock:discard',_0x1467d0),this['_defaultCallbacks']['set']('formatBlock:join',_0x341aae),this['_defaultCallbacks']['set']('formatBlock:chain',_0x1467d0),this['_defaultCallbacks']['set']('attribute:accept',_0x1467d0),this['_defaultCallbacks']['set']('attribute:discard',(_0x78a3f7,_0x4a8c0)=>{if(!_0x4a8c0)return;const _0xbc13e=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x2a3dee=>{if(_0x4a8c0['key']==u)for(const _0x2dc144 of _0x78a3f7){const _0xac6beb=_0x2dc144['start']['nodeAfter'],_0x592248=_0x4a8c0['oldValue'];_0x2a3dee['rename'](_0xac6beb,_0x592248);}else{if(_0xbc13e['_isBlockAttribute'](_0x4a8c0['key'])){for(const _0x2da4d3 of _0x78a3f7)void 0x0!==_0x4a8c0['oldValue']?_0x2a3dee['setAttribute'](_0x4a8c0['key'],_0x4a8c0['oldValue'],_0x2da4d3['start']['nodeAfter']):_0x2a3dee['removeAttribute'](_0x4a8c0['key'],_0x2da4d3['start']['nodeAfter']);}else{for(const _0x311b09 of _0x78a3f7)_0x4a8c0['oldValue']?_0x2a3dee['setAttribute'](_0x4a8c0['key'],_0x4a8c0['oldValue'],_0x311b09):_0x2a3dee['removeAttribute'](_0x4a8c0['key'],_0x311b09);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x341aae);}}function Pt(_0x488d57,_0x1f4b79,_0x36a05f){for(const _0x6727f8 of _0x1f4b79['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x6727f8['root']==_0x6727f8)return!0x1;if(!_0x36a05f['containsItem'](_0x6727f8))return!0x1;if(_0x488d57['isObject'](_0x6727f8)||_0x488d57['isLimit'](_0x6727f8))return!0x0;}return!0x1;}function Gt(_0x2c080d){return _0x2c080d['end']['parent']==_0x2c080d['start']['nodeAfter']&&_0x2c080d['end']['isAtStart'];}function Lt(_0x43984a,_0x1454fa,_0x233785,_0x5b9c46){const _0x474d94=_0x57f9c6=>!_0x57f9c6['item']['is']('$textProxy')&&!_0x5b9c46['isObject'](_0x57f9c6['item']),_0x40f4b2=_0x43984a['start']['getLastMatchingPosition'](_0x474d94),_0x116fac=_0x43984a['end']['getLastMatchingPosition'](_0x474d94,{'direction':'backward'});return(!_0x43984a['start']['isEqual'](_0x40f4b2)||!_0x43984a['end']['isEqual'](_0x116fac))&&(_0x40f4b2['isBefore'](_0x116fac)?_0x233785['updateMarker'](_0x1454fa,{'range':_0x233785['createRange'](_0x40f4b2,_0x116fac)}):_0x233785['removeMarker'](_0x1454fa),!0x0);}function Jt(_0x9b65ae){return _0x2246de(_0x9b65ae);}function Kt(_0x1539b1){const _0x3a00cf=_0x1539b1['start']['nodeAfter'];return _0x3a00cf&&_0x3a00cf['is']('element');}function Ht(_0x1f12e3,_0x463066){return null==_0x1f12e3['end']['nodeBefore']&&_0x1f12e3['end']['parent']==_0x1f12e3['start']['nodeAfter']?qt(_0x1f12e3['start']['nodeAfter'],_0x463066):_0x1f12e3;}function qt(_0x3076af,_0x249136){const _0x1ed9f0=_0x249136['schema']['isObject'](_0x3076af)||_0x249136['schema']['isSelectable'](_0x3076af);return _0x249136['createRange'](_0x249136['createPositionAt'](_0x3076af,'before'),_0x1ed9f0?_0x249136['createPositionAfter'](_0x3076af):_0x249136['createPositionAt'](_0x3076af,'end'));}function zt(_0x582a32,_0x618201,_0x16051b,_0x56d43f){return!!Wt(_0x582a32,_0x618201)&&_0x16051b['end']['isEqual'](_0x56d43f['start']);}function Wt(_0x4ff8c9,_0xfe410){if(!_0x4ff8c9['_isDataLoaded']||!_0xfe410['_isDataLoaded'])return!0x1;const _0x34ff16=new Set(Object['keys'](_0x4ff8c9['attributes'])),_0x14edc7=new Set(Object['keys'](_0xfe410['attributes']));if(_0x34ff16['delete']('groupId'),_0x14edc7['delete']('groupId'),0x0==_0x34ff16['size']&&0x0==_0x14edc7['size'])return!0x0;if(_0x34ff16['size']!=_0x14edc7['size'])return!0x1;const _0x38f101={..._0x4ff8c9['attributes']},_0x4397cb={..._0xfe410['attributes']};return delete _0x38f101['groupId'],delete _0x4397cb['groupId'],JSON['stringify'](_0x38f101)==JSON['stringify'](_0x4397cb);}function Qt(_0x5f436c,_0x1291de){const _0x5083f9=Xt(_0x5f436c['attributes']),_0x276a2d=Xt(_0x1291de);if(!_0x5f436c['_isDataLoaded'])return!0x1;for(const _0x10d828 of Object['keys'](_0x276a2d))if(!_0x1c217d(_0x5083f9[_0x10d828],_0x276a2d[_0x10d828]))return!0x1;return!0x0;}function Xt(_0x66b902){const _0x2d71f3=Object['assign']({},_0x66b902);return delete _0x2d71f3['skipNestingCheck'],delete _0x2d71f3['tablePasteChainId'],_0x2d71f3;}class pe extends/* #__PURE__ -- @preserve */
25
+ _0x26a4b6(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x5e9811,_0x5706a8,_0x350ee6,_0x4c11bf){super(),this['model']=_0x5706a8,this['view']=_0x350ee6,this['commentThreadController']=_0x4c11bf,this['_editor']=_0x5e9811,this['_acceptCommand']=_0x5e9811['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x5e9811['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x4b1e16,_0x2fdef6)=>_0x4b1e16||_0x2fdef6),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x54b9ec=>_0x54b9ec&&this['_editor']['model']['canEditAt'](_0x5706a8['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x4067b3=>_0x4067b3&&this['_editor']['model']['canEditAt'](_0x5706a8['getRanges']())),this['_pendingAction']=null,_0x350ee6['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x350ee6,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x350ee6,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x350ee6,'change:isDirty',()=>{_0x350ee6['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 _0x59507e=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x59507e);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x4557e4{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x1671a8,_0x251640,_0x1aaecc,_0x104110){super(_0x1671a8),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x230b3c(_0x1671a8,c(_0x1671a8,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x251640['authoredAt']),this['bind']('authoredAt')['to'](_0x251640),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',_0x251640,'authoredAt',this,'descriptionParts',(_0x52754c,_0x9d6d54,_0x4cd33a)=>{const _0x2437b2=_0x4cd33a['map'](_0x160b39=>ls(_0x160b39['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x52754c-0x1,_0x251640['author']['name'],_0x9d6d54?_0x104110['formatDateTime'](_0x9d6d54):'',new DOMParser()['parseFromString'](_0x2437b2,'text/html')['body']['textContent']]);}),this['focusables']=new _0x5b0d43(),this['focusTracker']=new _0x5bf86a(),this['keystrokes']=new _0x410361(),this['focusCycler']=new _0xeedd1e({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x2ea335=>_0x2ea335['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x251640,this['_localUser']=_0x1aaecc,this['_config']=_0x104110,_0x104110['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0xe77174(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x2b3a61}=this['_config'];this['commentsListView']=new _0x2b3a61(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',_0x3f6203=>_0x3f6203+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x35df5e,_0x219e00)=>_0x35df5e||!!_0x219e00);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x3aedf4}=this['_config'],_0x3a01ec=new _0x3aedf4(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x17b812=_0x3a01ec['commentInputView'];return _0x3a01ec['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x17b812,'value',(_0x5ddbac,_0x50ee08,_0x560afb)=>!!_0x560afb||_0x5ddbac&&!_0x50ee08),_0x17b812['on']('submit',(_0x2b2651,_0x54c87e)=>{this['fire']('addComment',_0x54c87e),_0x17b812['editor']['setData']('');}),_0x17b812['on']('cancel',()=>this['focus']()),_0x17b812['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x3a01ec;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x26d4db,_0x271fdb,_0x1b54f3,_0x73c7a3){super(_0x26d4db,_0x271fdb,_0x1b54f3,_0x73c7a3),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x4bd774=>_0x4bd774&&_0x4bd774[0x0]?_0x4bd774[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0xe4d737,_0x377858)=>{let _0x4824ca='';for(const _0x3944f6 of _0xe4d737)_0x4824ca+='<p>'+ls(_0x3944f6['content'],_0x3944f6['color'])+'</p>';return _0x377858?_0x4824ca:ti(_0x4824ca,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x73c7a3['SuggestionView'](_0x26d4db,_0x271fdb,{'formatDateTime':_0x73c7a3['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 _0x7a6e7=this['bindTemplate'],_0x2f8d5b=[this['suggestionView']];return this['commentsListView']&&_0x2f8d5b['push'](this['commentsListView']),this['commentThreadInputView']&&_0x2f8d5b['push'](this['commentThreadInputView']),_0x2f8d5b['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x7a6e7['if']('isActive','ck-suggestion-wrapper--active'),_0x7a6e7['to']('type',_0x348d99=>'ck-suggestion-'+_0x348d99),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':_0x7a6e7['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x2f8d5b};}['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 _0x4557e4{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x13ee5c,_0x55d040,_0x73d43d){super(_0x13ee5c),this['_model']=_0x55d040,this['_config']=_0x73d43d,this['set']('description',''),this['bind']('authoredAt')['to'](_0x55d040),this['acceptButton']=this['_createButton'](c(_0x13ee5c,'Accept\x20suggestion'),_0xa30e5d,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x13ee5c,'Discard\x20suggestion'),_0x5f50fb,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x3def6c(_0x13ee5c,_0x55d040['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x5b0d43([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x5bf86a(),this['keystrokes']=new _0x410361(),this['focusCycler']=new _0xeedd1e({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x18ba06=>_0x18ba06['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x1f244f=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x1f244f['innerHTML']=this['description'],this['on']('change:description',(_0x12e3ca,_0x44d210,_0x32f3ae)=>{_0x1f244f['innerHTML']=_0x32f3ae;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x560173=this['bindTemplate'],_0x43f51b=[{'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':_0x560173['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x560173['to']('authoredAt',_0x3fb567=>this['_config']['formatDateTime'](_0x3fb567))}]}]},{'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']&&_0x43f51b['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':_0x43f51b}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x5322ec,_0x16dbab,_0x588b00,_0x59b1c6,_0x284228){const _0x4c0b80=new _0x2890f9(this['locale']);return _0x4c0b80['set']({'label':_0x5322ec,'icon':_0x16dbab,'tooltip':!0x0,'tooltipPosition':_0x284228}),_0x4c0b80['extendTemplate']({'attributes':{'class':_0x588b00}}),_0x4c0b80['on']('execute',()=>{this['fire'](_0x59b1c6,this['_model']['id']);}),_0x4c0b80;}['_setupKeyboardNavigation'](){const _0x56d71c=this['element'];this['keystrokes']['listenTo'](_0x56d71c);for(const _0x538f7b of this['focusables'])this['focusTracker']['add'](_0x538f7b['element']),this['keystrokes']['listenTo'](_0x538f7b['element']);this['keystrokes']['set']('enter',(_0x2b1624,_0x5d5e76)=>{_0x56d71c===_0x2b1624['target']&&(this['focusCycler']['focusFirst'](),_0x5d5e76());}),this['keystrokes']['set']('esc',(_0x1fdc2c,_0x4ba31e)=>{_0x56d71c!==_0x1fdc2c['target']&&(this['focus'](),_0x4ba31e());});}}class d extends _0x32ae11{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x1140a0,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x752b4a){super(_0x752b4a),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x2c35ed=this['editor']['config'];_0x2c35ed['define']('trackChanges.SuggestionThreadView',fe),_0x2c35ed['define']('trackChanges.SuggestionView',we),_0x2c35ed['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x2c35ed['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x33b2ce,_0x38a4c4){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x1f2680,_0x54c7e3]of this['_handleControllerBuffer']){const _0x49e1a8=this['_suggestionToController']['has'](_0x1f2680);_0x49e1a8||_0x54c7e3?_0x49e1a8&&_0x54c7e3&&this['_destroyController'](_0x1f2680):this['_initializeController'](_0x1f2680);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x33b2ce,_0x38a4c4);}['init'](){const _0x411b27=this['editor'],_0xe69098=_0x411b27['plugins']['get']('TrackChangesEditing'),_0x52320e=_0x411b27['plugins']['get']('Annotations'),_0xcef23b=_0x411b27['plugins']['get']('EditorAnnotations'),_0x35a181=_0x411b27['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0xcef23b['addSourceCollector'](()=>{const _0x514f9a=[];for(const [_0x4de98c,_0x345bb4]of Array['from'](this['_suggestionToController'])){const _0x2306c4=_0x4de98c['getAllAdjacentSuggestions'](),_0x5ad601=[];for(const _0x239808 of _0x2306c4){if(!_0x239808['isInContent'])continue;if(_0x239808['isMultiRange']){_0x5ad601['push'](..._0x239808['getRanges']());continue;}const _0x428680=_0x239808['getFirstRange']();if(_0x5ad601['length']>0x0){const _0x182bc1=_0x5ad601[0x0]['getJoined'](_0x428680);if(_0x182bc1){_0x5ad601[0x0]=_0x182bc1;continue;}}_0x5ad601['push'](_0x428680);}_0x514f9a['push']([_0x345bb4['view'],_0x5ad601]);}return _0x514f9a;}),this['listenTo'](_0xe69098,'suggestionLoaded',(_0x51d023,_0x588c8e)=>{this['listenTo'](_0x588c8e,'change:previous',(_0x374019,_0x2ced8e,_0x3795a2,_0x3f1437)=>{_0x588c8e['isInContent']&&(null==_0x3795a2?(this['_updateController'](_0x3f1437['head']),this['_handleSuggestionControllerDelayed'](_0x588c8e,!0x1)):(this['_updateController'](_0x3795a2['head']),null==_0x3f1437&&this['_handleSuggestionControllerDelayed'](_0x588c8e,!0x0)));}),null!==_0x588c8e['previous']?this['_updateController'](_0x588c8e['head']):this['_handleSuggestionControllerDelayed'](_0x588c8e,!0x1);}),this['listenTo'](_0xe69098,'suggestionUnloaded',(_0x10ce7c,_0x1acb71,_0x49fb07)=>{this['stopListening'](_0x1acb71,'change:previous'),this['_handleControllerBuffer']['delete'](_0x1acb71),this['_suggestionToController']['has'](_0x1acb71)&&this['_destroyController'](_0x1acb71),_0x49fb07&&this['_updateController'](_0x49fb07['head']);}),this['listenTo'](_0xe69098,'suggestionChanged',(_0x3d37bf,_0x1008c7)=>{this['_updateController'](_0x1008c7);}),this['listenTo'](_0x52320e,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x35a181,'addComment',(_0x52ce49,{threadId:_0x2d4841,isFromAdapter:_0xc65820})=>{if(_0xc65820||!_0xe69098['hasSuggestion'](_0x2d4841))return;const _0x2309b5=_0xe69098['getSuggestion'](_0x2d4841);this['_suggestionToController']['get'](_0x2309b5)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2235e1=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x294da5;for(const _0x5e78e3 in _0x2235e1){const _0x1ace49=_0x5e78e3,_0x43af82=_0x2235e1[_0x1ace49];if('trackChangesLicenseKeyValid'==_0x43af82||'trackChangesLicenseKeyInvalid'==_0x43af82||'trackChangesLicenseKeyExpired'==_0x43af82||'trackChangesLicenseKeyDomainLimit'==_0x43af82||'trackChangesLicenseKeyNotAllowed'==_0x43af82||'trackChangesLicenseKeyEvaluationLimit'==_0x43af82||'trackChangesLicenseKeyTrialLimit'==_0x43af82||'trackChangesLicenseKeyUsageLimit'==_0x43af82){delete _0x2235e1[_0x1ace49],_0x294da5=_0x43af82,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x294da5&&_0x2235e1['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x294da5&&_0x2235e1['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x294da5&&_0x2235e1['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x294da5&&_0x2235e1['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x294da5&&_0x2235e1['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x294da5&&_0x2235e1['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x294da5&&_0x2235e1['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x5ada5f=this['editor']['plugins']['get']('Annotations'),_0x16d678=this['editor']['plugins']['get']('TrackChangesEditing'),_0x33c6ee=Array['from'](_0x5ada5f['activeAnnotations'],_0x4be97b=>_0x4be97b['innerView'])['filter'](_0x2c8c9c=>this['_viewToController']['has'](_0x2c8c9c)),_0xb4526e=[];for(const _0x330dc2 of _0x33c6ee){const _0x338457=this['_viewToController']['get'](_0x330dc2)['model']['getAllAdjacentSuggestions']();_0xb4526e['push'](..._0x338457['reduce']((_0x2633ca,_0x371394)=>[..._0x2633ca,..._0x371394['getMarkerNames']()],[]));}_0x16d678['activeMarkers']=_0xb4526e;}['_addUIComponentsToFactory'](){const _0x17d46e=this['editor'],_0x4c9ef1=_0x17d46e['locale'],_0x391b68=c(_0x4c9ef1,'Track\x20changes'),_0x52583f=new _0x39d645([{'type':'switchbutton','model':new _0x459d5c({'withText':!0x0,'isToggleable':!0x0,'label':_0x391b68,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x459d5c({'withText':!0x0,'label':c(_0x4c9ef1,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x459d5c({'withText':!0x0,'label':c(_0x4c9ef1,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x459d5c({'withText':!0x0,'label':c(_0x4c9ef1,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x459d5c({'withText':!0x0,'label':c(_0x4c9ef1,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x17d46e['plugins']['has']('TrackChangesPreview')&&_0x52583f['addMany']([{'type':'separator'},{'type':'button','model':new _0x459d5c({'withText':!0x0,'label':c(_0x4c9ef1,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x4c8c01 of _0x52583f)if(ke(_0x4c8c01)){const _0x162142=_0x17d46e['commands']['get'](_0x4c8c01['model']['commandName']);_0x4c8c01['model']['bind']('isOn','isEnabled')['to'](_0x162142,'value','isEnabled');}_0x17d46e['ui']['componentFactory']['add']('trackChanges',_0x17ec0b=>this['_createToolbarButton'](_0x17ec0b,_0x52583f,_0x391b68)),_0x17d46e['ui']['componentFactory']['add']('menuBar:trackChanges',_0x220b56=>this['_createMenuBarMenu'](_0x220b56,_0x52583f,_0x391b68));}['_createToolbarButton'](_0x5cedd1,_0x5a635f,_0x26111a){const _0x697998=_0x5c60a8(_0x5cedd1,_0x279193),_0x5abedc=this['editor']['commands']['get']('trackChanges');_0x697998['buttonView']['set']({'tooltip':_0x26111a,'label':_0x26111a,'icon':_0x3f82ae}),_0x697998['buttonView']['bind']('isOn')['to'](_0x5abedc,'value'),_0x697998['buttonView']['on']('execute',()=>{_0x5abedc['execute'](),this['editor']['editing']['view']['focus']();}),_0x3916fd(_0x697998,_0x5a635f,{'role':'menu'});const _0x14ab53=[];for(const _0x3384e7 of _0x5a635f)ke(_0x3384e7)&&_0x14ab53['push'](this['editor']['commands']['get'](_0x3384e7['model']['commandName']));const _0x1f2b2a=_0x697998['buttonView'];return _0x1f2b2a['actionView']['unbind']('isEnabled'),_0x1f2b2a['arrowView']['unbind']('isEnabled'),_0x1f2b2a['actionView']['bind']('isEnabled')['to'](_0x5abedc,'isEnabled'),_0x1f2b2a['arrowView']['bind']('isEnabled')['toMany'](_0x14ab53,'isEnabled',(..._0x45830f)=>_0x45830f['some'](_0x126290=>_0x126290)),_0x697998['on']('execute',_0x2970a5=>{this['editor']['execute'](_0x2970a5['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x697998;}['_createMenuBarMenu'](_0x4dc203,_0x76dc0e,_0x472432){const _0x57c216=new _0x2c6665(_0x4dc203),_0xe58304=this['editor']['commands']['get']('trackChanges');_0x57c216['buttonView']['set']({'label':_0x472432,'icon':_0x3f82ae});const _0x4b4745=new _0x5d645a(_0x4dc203);for(const _0x5aedb2 of _0x76dc0e){if('separator'==_0x5aedb2['type']){_0x4b4745['items']['add'](new _0xfc7a50(_0x4dc203));continue;}const _0x11d37=new _0x3a2351(_0x4dc203,_0x57c216),_0x44ecdb=new _0x45c64b(_0x4dc203),_0x2e28d=_0x5aedb2['model'];_0x44ecdb['bind'](...Object['keys'](_0x2e28d))['to'](_0x2e28d),_0x44ecdb['delegate']('execute')['to'](_0x57c216),_0x44ecdb['on']('execute',()=>{this['editor']['execute'](_0x2e28d['commandName']),this['editor']['editing']['view']['focus']();}),_0x11d37['children']['add'](_0x44ecdb),_0x4b4745['items']['add'](_0x11d37);}return _0x57c216['bind']('isEnabled')['to'](_0xe58304,'isEnabled'),_0x57c216['panelView']['children']['add'](_0x4b4745),_0x57c216;}['_initializeController'](_0x45848a){const _0x3dceec=this['editor'],_0x2ed708=_0x3dceec['config'],_0x296d45=_0x3dceec['plugins']['get']('Annotations'),_0x2c0349=_0x3dceec['plugins']['get']('CommentsRepository'),_0x542583=_0x3dceec['plugins']['get']('EditorAnnotations'),_0x1d10ce=_0x3dceec['plugins']['get'](_0x1140a0)['me'],_0x4b019c=_0x2ed708['get']('trackChanges')['SuggestionThreadView'],_0x436c66=_0x2ed708['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x5db27e,CommentThreadInputView:_0x425324}=_0x3dceec['plugins']['get']('CommentsUI');let _0x15eec2,_0x5a4a73,_0x543000;this['_annotationViews']['has'](_0x45848a['id'])?(_0x5a4a73=this['_annotationViews']['get'](_0x45848a['id']),_0x15eec2=_0x5a4a73['mainView']):(_0x15eec2=new _0x4b019c(_0x3dceec['locale'],_0x45848a,_0x1d10ce,{'disableComments':this['_disableComments'],'editorConfig':{..._0x2ed708['get']('comments.editorConfig'),'licenseKey':_0x2ed708['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x2ed708['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x2ed708['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x2ed708['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x40c99f(_0x2ed708['get']('locale')),'CommentView':_0x2ed708['get']('comments')['CommentView'],'CommentsListView':_0x5db27e,'CommentThreadInputView':_0x425324,'SuggestionView':_0x436c66}),_0x15eec2['suggestionView']['acceptButton']['on']('execute',()=>{_0x3dceec['editing']['view']['focus']();}),_0x15eec2['suggestionView']['discardButton']['on']('execute',()=>{_0x3dceec['editing']['view']['focus']();}),_0x5a4a73=_0x296d45['createAnnotationView'](this['editor']['locale'],_0x15eec2),_0x5a4a73['bind']('isDirty')['to'](_0x15eec2,'isDirty'),_0x5a4a73['bind']('length')['to'](_0x15eec2),_0x5a4a73['bind']('type')['to'](_0x15eec2,'type',_0x498290=>'suggestion-'+_0x498290),_0x15eec2['on']('escape',()=>{_0x543000['fire']('escape');}),this['_annotationViews']['set'](_0x45848a['id'],_0x5a4a73));const _0x5cdb6b=_0x2c0349['createCommentThreadController'](_0x45848a['commentThread'],_0x15eec2),_0x134cbd=new pe(_0x3dceec,_0x45848a,_0x15eec2,_0x5cdb6b),_0x1f1ea3=_0x45848a['getAllAdjacentSuggestions']()['filter'](_0x2f359e=>_0x2f359e['isInContent']);_0x15eec2['descriptionParts']=_0x3dceec['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x1f1ea3),this['_suggestionToController']['set'](_0x45848a,_0x134cbd),this['_viewToController']['set'](_0x15eec2,_0x134cbd),_0x543000=_0x296d45['createAnnotation']({'view':_0x5a4a73,'target':()=>{const _0x593896=[],_0x44cc73=_0x45848a['getAllAdjacentSuggestions']()['filter'](_0xa77015=>_0xa77015['isInContent']);for(const _0x56e965 of _0x44cc73)_0x593896['push'](..._0x56e965['getMarkers']());return _0x1fe4aa(_0x3dceec['editing'],_0x593896);},'type':()=>'suggestion-'+_0x134cbd['view']['type']}),_0x2c0349['_bindAnnotationToEditors'](_0x15eec2,_0x543000),_0x296d45['add'](_0x543000),_0x542583['registerAnnotation'](_0x543000);}['_destroyController'](_0x5e3a29){const _0x3b1170=this['editor']['plugins']['get']('CommentsRepository'),_0x4398d0=this['editor']['plugins']['get']('Annotations'),_0x3b2483=this['_suggestionToController']['get'](_0x5e3a29),_0x3fe97b=_0x3b2483['view'],_0x57ed61=_0x4398d0['getByInnerView'](_0x3fe97b);_0x3b1170['_unbindEditors'](_0x3fe97b),_0x57ed61&&_0x4398d0['remove'](_0x57ed61),this['_suggestionToController']['delete'](_0x5e3a29),this['_viewToController']['delete'](_0x3fe97b),_0x3b2483['destroy']();}['_updateController'](_0x44416c){if(!_0x44416c['isInContent']||!this['_suggestionToController']['has'](_0x44416c))return;const _0x550473=this['editor']['plugins']['get']('TrackChangesEditing'),_0x26dcad=this['_suggestionToController']['get'](_0x44416c),_0x1e8c8c=_0x44416c['getAllAdjacentSuggestions']();_0x26dcad['view']['descriptionParts']=_0x550473['descriptionFactory']['getDescriptions'](_0x1e8c8c);}['destroy'](){for(const _0x582860 of this['_suggestionToController']['keys']())this['_destroyController'](_0x582860);for(const _0x337a6d of this['_annotationViews']['values']())_0x337a6d['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x38b1e8){return'model'in _0x38b1e8;}class k extends _0x32ae11{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x54e936){this['editor']['plugins']['get'](p)['adapter']=_0x54e936;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x3c981b){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x3c981b);}['getSuggestions']({skipNotAttached:_0x1dc3a1=!0x1,toJSON:_0x2ad474=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x1dc3a1,'toJSON':_0x2ad474});}['getSuggestion'](_0x243122){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x243122);}}const w=['Pagination'];class T extends _0x32ae11{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x257471=this['editor'];if(_0x257471['config']['define']('trackChangesData.editorCreator',_0xd13679=>{const _0x1e0446=_0x257471['model']['document']['getRootNames']()['reduce']((_0x3f00e8,_0x4f4a1a)=>(_0x3f00e8[_0x4f4a1a]='',_0x3f00e8),{});return _0x257471['constructor']['create'](_0x1e0446,_0xd13679);}),'function'!=typeof _0x257471['config']['get']('trackChangesData')['editorCreator'])throw new _0x20d2d0('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x12794a){return N(this['editor'],!0x0,_0x12794a);}['getDataWithDiscardedSuggestions'](_0x40f3a9){return N(this['editor'],!0x1,_0x40f3a9);}}class D extends _0x32ae11{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4f74c8){function _0x222448(_0x551d61){return _0x551d61['map'](_0x481a80=>String['fromCharCode'](_0x481a80))['join']('');}super(_0x4f74c8),this['result']='end',_0x4f74c8[_0x222448([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x222448([0x76,0x69,0x65,0x77])][_0x222448([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x222448([0x61,0x75,0x74,0x6f]),_0x4f74c8[_0x222448([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x222448([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x222448([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x222448([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x222448([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 Fe(_0x293ad6){return void 0x0!==_0x293ad6['getRootsAttributes'];}async function N(_0x2ff47f,_0x5a72f3,_0x2be56a){const _0x237178=_0x5d9ba8(_0x2ff47f,w);_0x237178['plugins']['push'](p,D),_0x237178['rootsAttributes']=Fe(_0x2ff47f)?_0x2ff47f['getRootsAttributes']():void 0x0;const _0x3625fe=document['createDocumentFragment'](),_0x1b15a=_0x2ff47f['config']['get']('trackChangesData')['editorCreator'],_0x3805e2=await _0x1b15a(_0x237178,()=>function(_0x54235c){const _0x569c8b=document['createElement']('div');return _0x54235c['appendChild'](_0x569c8b),_0x569c8b;}(_0x3625fe));!function(_0x38c953,_0x36903d){const _0x3d10ba=_0x38c953['model']['document']['getRootNames']()['reduce']((_0x34f394,_0x18a4ce)=>(_0x34f394[_0x18a4ce]=_0x38c953['data']['get']({'rootName':_0x18a4ce}),_0x34f394),{}),_0x4661a6=_0x38c953['plugins']['get']('Users')['users']['map'](_0x141a75=>({'id':_0x141a75['id'],'name':_0x141a75['name']})),_0x185d24=_0x38c953['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2e6225=_0x38c953['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x288924=_0x36903d['plugins']['get']('Users'),_0x1bfc80=_0x36903d['plugins']['get']('TrackChangesEditing'),_0xc5cd4a=_0x36903d['plugins']['get']('CommentsRepository');for(const _0x58ca2c of _0xc5cd4a['getCommentThreads']())_0x58ca2c['remove']();for(const _0x2ece98 of _0x4661a6)_0x288924['getUser'](_0x2ece98['id'])||_0x288924['addUser'](_0x2ece98);_0x288924['me']||_0x288924['useAnonymousUser']();for(const _0x4fe389 of _0x2e6225)_0xc5cd4a['addCommentThread'](_0x4fe389);for(const _0x261b78 of _0x185d24)_0x1bfc80['addSuggestionData'](_0x261b78);_0x36903d['data']['set'](_0x3d10ba);}(_0x2ff47f,_0x3805e2),_0x3805e2['execute'](_0x5a72f3?'acceptAllSuggestions':'discardAllSuggestions');const _0x390837=Fe(_0x3805e2)?_0x3805e2['getFullData'](_0x2be56a):_0x3805e2['data']['get'](_0x2be56a);return await _0x3805e2['destroy'](),_0x390837;}class Me extends _0x4557e4{['options'];constructor(_0x1ef2ca,_0x15e921){super(_0x1ef2ca),this['options']=_0x15e921,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'](_0x40937c,_0x4b9a4b){if(!this['element'])return;const _0xe9c7cb=[];for(const [_0x6b18f4,_0xcbc979]of _0x40937c){const _0x32010f=document['createElement']('div');_0x32010f['setAttribute']('data-ck-root-name',_0x6b18f4),_0x32010f['className']=_0xcbc979['classes']+'\x20ck-track-changes-preview__root-container',_0x32010f['innerHTML']=_0xcbc979['content'],_0xe9c7cb['push'](_0x32010f);}_0x4b9a4b(this['element'],_0xe9c7cb),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0xc75cc7{constructor(_0x54fcce){super(_0x54fcce),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x288643=this['editor'],_0xb359a8=_0x288643['locale'],_0xa4d094=_0x288643['plugins']['get']('Dialog');let _0x1aa714;const _0x4375ad=function(_0x4133f2){const _0x581002={};if('editables'in _0x4133f2['ui']['view']){for(const [_0xcead69,_0x5d697a]of Object['entries'](_0x4133f2['ui']['view']['editables']))_0x581002[_0xcead69]=_0x5d697a['element'];}else _0x581002[_0x4133f2['model']['document']['getRootNames']()[0x0]]=_0x4133f2['ui']['view']['editable']['element'];return _0x581002;}(_0x288643),_0x3172c6=function(_0x271295){let _0x2b38f1=0x0;for(const _0xdf39b9 of Object['values'](_0x271295))_0x2b38f1=Math['max'](_0x2b38f1,_0xdf39b9['getBoundingClientRect']()['width']);let _0x2dace3=0x0;for(const _0x3bbff6 of Object['values'](_0x271295))_0x2dace3+=_0x3bbff6['getBoundingClientRect']()['height'];const _0x47bb4c=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x3289c4=Math['min'](_0x2dace3,_0x47bb4c);return{'width':_0x2b38f1,'height':_0x3289c4};}(_0x4375ad);_0xa4d094['show']({'id':'finalContentPreview','title':c(_0xb359a8,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0xb359a8,{'dialogRects':_0x3172c6}),'onHide':()=>{_0x1aa714['detachFromDom']();},'onShow':()=>{_0x288643['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0xea85ac=>{const _0x363a17=this['_standarizeRootsData'](_0xea85ac,_0x288643,_0x4375ad);_0xa4d094['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x363a17,_0x288643['config']['get']('trackChanges.preview.renderFunction'));}),_0x1aa714=new _0x23dbfe(_0xb359a8,[_0xa4d094['view']]),_0x1aa714['attachToDom'](),_0x1aa714['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x288643['once']('destroy',()=>{_0x1aa714['detachFromDom']();});const _0x5aac22=_0xa4d094['view']['headerView']['class'];_0xa4d094['view']['headerView']['class']=_0x5aac22?_0x5aac22+'\x20ck-reset_all':'ck-reset_all',_0xa4d094['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0xa4d094['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x1574b2=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x14e0a5=_0x1574b2['previewMode'],_0x5bda3c={};if('$labels'===_0x14e0a5){for(const _0x234b57 of _0x1574b2['getMergeFieldsIds']())_0x5bda3c[_0x234b57]=_0x1574b2['getLabel'](_0x234b57)||_0x234b57;}else{const _0x4ca1c4='$defaultValues'===_0x14e0a5?_0x1574b2['getDefaultValues']():_0x1574b2['getDataSetValues'](_0x14e0a5,!0x0);for(const _0x5f549a of Object['entries'](_0x4ca1c4)){const [_0x25ef27,_0x583ca7]=_0x5f549a;_0x5bda3c[_0x25ef27]=null!==_0x583ca7?_0x583ca7:_0x1574b2['getLabel'](_0x25ef27)||_0x25ef27;}}return{'mergeFieldsData':_0x5bda3c};}['_standarizeRootsData'](_0x3bda95,_0x2f5733,_0x23387a){let _0x1a457a;if('string'==typeof _0x3bda95){const _0x33b534=_0x2f5733['model']['document']['getRootNames']()[0x0];_0x1a457a={[_0x33b534]:_0x3bda95};}else _0x1a457a=_0x3bda95;const _0x56397b=this['_fixMediaEmbeds'](_0x1a457a,_0x2f5733),_0x3d6d50=function(_0x693376,_0xf40db6){for(const [_0x2d6efc,_0x4bf295]of _0x693376)_0x4bf295['classes']=_0xf40db6[_0x2d6efc]['classList']['value']['replace']('ck-focused','');return _0x693376;}(this['_sortRoots'](_0x2f5733)['reduce']((_0x3b96c5,_0x3b560f)=>(_0x3b96c5['push']([_0x3b560f,{'content':_0x56397b[_0x3b560f],'classes':''}]),_0x3b96c5),[]),_0x23387a);return _0x3d6d50;}['_fixMediaEmbeds'](_0x586070,_0x68c3a6){if(!_0x68c3a6['plugins']['has']('MediaEmbedEditing'))return _0x586070;const _0x427fa4=_0x68c3a6['plugins']['get']('MediaEmbedEditing');for(const [_0x27c373,_0x2a80be]of Object['entries'](_0x586070)){const _0x3eee9d=document['createElement']('div');_0x3eee9d['innerHTML']=_0x2a80be,(_0x3eee9d['querySelectorAll']('figure.media')['forEach'](_0x4ea93f=>{const _0x57c378=_0x4ea93f['querySelector']('oembed');if(_0x57c378){const _0x487f3b=_0x57c378['getAttribute']('url');if(_0x487f3b){const _0x683e38=_0x427fa4['registry']['getMediaViewElement'](new _0x41f0f1(_0x68c3a6['editing']['view']['document']),_0x487f3b,{'elementName':'','renderForEditingView':!0x0}),_0x4bb7cd=document['createElement']('div');_0x4bb7cd['classList']['add']('ck-media__wrapper'),_0x683e38['render'](_0x4bb7cd,_0x68c3a6['editing']['view']['domConverter']),_0x57c378['replaceWith'](_0x4bb7cd);}}}),_0x586070[_0x27c373]=_0x3eee9d['innerHTML']);}return _0x586070;}['_sortRoots'](_0x3d09e4){if(!function(_0x4998d7){return void 0x0!==_0x4998d7['getRootsAttributes'];}(_0x3d09e4))return _0x3d09e4['model']['document']['getRootNames']();const _0x157ca0=[],_0x4fa0d7=new Map();for(const _0x51c50c of _0x3d09e4['model']['document']['getRootNames']()){const _0x30be29=_0x3d09e4['editing']['view']['getDomRoot'](_0x51c50c)['getClientRects']()['item'](0x0);_0x157ca0['push'](_0x51c50c),_0x4fa0d7['set'](_0x51c50c,_0x30be29);}return _0x157ca0['sort']((_0x4946f9,_0x381a41)=>{const _0x1035bd=_0x4fa0d7['get'](_0x4946f9),_0x291518=_0x4fa0d7['get'](_0x381a41);return _0x1035bd['y']-_0x291518['y']||_0x1035bd['x']-_0x291518['x'];}),_0x157ca0;}}class te extends _0x32ae11{static get['requires'](){return[T,_0x434bf9];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x872828){super(_0x872828),_0x872828['commands']['add']('previewFinalContent',new re(this['editor'])),_0x872828['config']['define']('trackChanges.preview.renderFunction',(_0x420d1f,_0x2f081c)=>{for(const _0x59e89b of _0x2f081c)_0x420d1f['appendChild'](_0x59e89b);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};