@ckeditor/ckeditor5-track-changes 47.4.0 → 47.5.0-alpha.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 (230) hide show
  1. package/build/track-changes.js +1 -1
  2. package/dist/index.js +4 -4
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +28 -28
  150. package/src/commands/acceptsuggestioncommand.js +1 -1
  151. package/src/commands/discardsuggestioncommand.js +1 -1
  152. package/src/commands/executeonallsuggestionscommand.js +1 -1
  153. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  154. package/src/commands/previewfinalcontentcommand.js +1 -1
  155. package/src/commands/trackchangescommand.js +1 -1
  156. package/src/index.js +1 -1
  157. package/src/integrations/ai.js +1 -1
  158. package/src/integrations/aiassistant.js +1 -1
  159. package/src/integrations/aiquickactions.js +1 -1
  160. package/src/integrations/alignment.js +1 -1
  161. package/src/integrations/basicstyles.js +1 -1
  162. package/src/integrations/blockquote.js +1 -1
  163. package/src/integrations/bookmark.js +1 -1
  164. package/src/integrations/casechange.js +1 -1
  165. package/src/integrations/ckbox.js +1 -1
  166. package/src/integrations/codeblock.js +1 -1
  167. package/src/integrations/comments.js +1 -1
  168. package/src/integrations/deletecommand.js +1 -1
  169. package/src/integrations/emoji.js +1 -1
  170. package/src/integrations/entercommand.js +1 -1
  171. package/src/integrations/findandreplace.js +1 -1
  172. package/src/integrations/font.js +1 -1
  173. package/src/integrations/footnotes.js +1 -1
  174. package/src/integrations/formatpainter.js +1 -1
  175. package/src/integrations/heading.js +1 -1
  176. package/src/integrations/highlight.js +1 -1
  177. package/src/integrations/horizontalline.js +1 -1
  178. package/src/integrations/htmlembed.js +1 -1
  179. package/src/integrations/image.js +1 -1
  180. package/src/integrations/imagereplace.js +1 -1
  181. package/src/integrations/imagestyle.js +1 -1
  182. package/src/integrations/importword.js +1 -1
  183. package/src/integrations/indent.js +1 -1
  184. package/src/integrations/inputcommand.js +1 -1
  185. package/src/integrations/legacylist.js +1 -1
  186. package/src/integrations/legacylistproperties.js +1 -1
  187. package/src/integrations/lineheight.js +1 -1
  188. package/src/integrations/link.js +1 -1
  189. package/src/integrations/list.js +1 -1
  190. package/src/integrations/listproperties.js +1 -1
  191. package/src/integrations/mediaembed.js +1 -1
  192. package/src/integrations/mention.js +1 -1
  193. package/src/integrations/mergefields.js +1 -1
  194. package/src/integrations/multilevellist.js +1 -1
  195. package/src/integrations/pagebreak.js +1 -1
  196. package/src/integrations/paragraph.js +1 -1
  197. package/src/integrations/removeformat.js +1 -1
  198. package/src/integrations/replacesourcecommand.js +1 -1
  199. package/src/integrations/restrictededitingmode.js +1 -1
  200. package/src/integrations/shiftentercommand.js +1 -1
  201. package/src/integrations/standardeditingmode.js +1 -1
  202. package/src/integrations/style.js +1 -1
  203. package/src/integrations/table.js +1 -1
  204. package/src/integrations/tablecaption.js +1 -1
  205. package/src/integrations/tableclipboard.js +2 -2
  206. package/src/integrations/tablecolumnresize.js +1 -1
  207. package/src/integrations/tableheadings.js +1 -1
  208. package/src/integrations/tablelayout.js +1 -1
  209. package/src/integrations/tablemergesplit.js +1 -1
  210. package/src/integrations/tableofcontents.js +1 -1
  211. package/src/integrations/tableproperties.js +1 -1
  212. package/src/integrations/template.js +1 -1
  213. package/src/integrations/title.js +1 -1
  214. package/src/integrations/undo.js +1 -1
  215. package/src/integrations/uploadcare.js +1 -1
  216. package/src/integrations/utils.js +1 -1
  217. package/src/suggestion.js +2 -2
  218. package/src/suggestiondescriptionfactory.js +1 -1
  219. package/src/trackchanges.js +1 -1
  220. package/src/trackchangesdata.js +1 -1
  221. package/src/trackchangesediting.js +1 -1
  222. package/src/trackchangespreview.js +1 -1
  223. package/src/trackchangesui.js +1 -1
  224. package/src/ui/suggestioncontroller.js +2 -2
  225. package/src/ui/view/basesuggestionthreadview.js +1 -1
  226. package/src/ui/view/suggestionthreadview.js +1 -1
  227. package/src/ui/view/suggestionview.js +1 -1
  228. package/src/ui/view/trackchangespreviewview.js +1 -1
  229. package/src/utils/common-translations.js +1 -1
  230. package/src/utils/utils.js +1 -1
package/dist/index.js CHANGED
@@ -20,7 +20,7 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x2f06c1,Plugin as _0x452242,PendingActions as _0x5a281d}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x3fdb7b,ObservableMixin as _0x3cf1a1,uid as _0x3da106,priorities as _0x1a1f89,insertToPriorityArray as _0x459181,logWarning as _0x8196e7,getEnvKeystrokeText as _0x3e17e8,FocusTracker as _0x5a142d,KeystrokeHandler as _0x3d7300,Collection as _0x4de9d4}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x273bcd,IconCancel as _0x14c686,IconTrackChanges as _0x3bf8e9}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x3376c9,View as _0x456a2c,ViewCollection as _0xd7b16e,FocusCycler as _0x417dd8,UIModel as _0x46ef39,createDropdown as _0xecc729,SplitButtonView as _0x368a78,addListToDropdown as _0x8a486,MenuBarMenuView as _0x21810e,MenuBarMenuListView as _0x43d21a,ListSeparatorView as _0x5b1174,MenuBarMenuListItemView as _0x547d1c,MenuBarMenuListItemButtonView as _0x666110,BodyCollection as _0x267ee8,Dialog as _0x23f825}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x5123b8,DocumentCompare as _0x3ddfd3,hashObject as _0x6a7a5e,surroundingMarkersDetector as _0x365d21,FOCUS_ANNOTATION_KEYSTROKE as _0x3c83d2,AriaDescriptionView as _0x557dc3,setupThreadKeyboardNavigation as _0x245efb,trimHtml as _0x3f118a,UserView as _0x3a19d5,LateFocusButtonView as _0x232955,getDateTimeFormatter as _0x2d3c76,getAllMarkersDomElementsSorted as _0x5dc1b7,sanitizeEditorConfig as _0x215386}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x3046f4,ModelLiveRange as _0x1506cc,ModelLivePosition as _0x56d8cf,ViewDowncastWriter as _0x33312e}from'@ckeditor/ckeditor5-engine/dist/index.js';import{cloneDeep as _0x12ad9b,set as _0x87ddd7,isEqual as _0x21a076,unset as _0x233d23,omit as Pt}from'es-toolkit/compat';import{Delete as _0x526afb,Input as _0x19a581}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x25e692}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x2f252d}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{SuggestionsConversion as Jt,fixElementSuggestionRange as Lt,splitSuggestionMarkerName as Gt}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';class $ extends _0x2f06c1{['_enabledCommands'];constructor(_0xfcdb17,_0x40b90e){super(_0xfcdb17),this['_enabledCommands']=_0x40b90e,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 _0x1f0213 of this['editor']['commands']['commands']())_0x1f0213['affectsData']&&!this['_enabledCommands']['has'](_0x1f0213)&&_0x1f0213['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x32b6c8 of this['editor']['commands']['commands']())_0x32b6c8['affectsData']&&!this['_enabledCommands']['has'](_0x32b6c8)&&_0x32b6c8['clearForceDisabled']('TrackChangesCommand');}}class v extends _0x2f06c1{['_suggestions'];constructor(_0x5ce9ca,_0x229df5){super(_0x5ce9ca),this['_suggestions']=_0x229df5,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x558327){const _0x116e1b=this['_suggestions']['get'](_0x558327);if(!_0x116e1b)throw new _0x3fdb7b('track-changes-accept-suggestion-not-found',this);const _0x18f676=_0x116e1b['getRanges']();this['editor']['model']['canEditAt'](_0x18f676)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x116e1b);}}class D extends _0x2f06c1{['_suggestions'];constructor(_0x2fef6b,_0x303ba8){super(_0x2fef6b),this['_suggestions']=_0x303ba8,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x36e444){const _0x2a0c97=this['_suggestions']['get'](_0x36e444);if(!_0x2a0c97)throw new _0x3fdb7b('track-changes-discard-suggestion-not-found',this);const _0x33b7c7=_0x2a0c97['getRanges']();this['editor']['model']['canEditAt'](_0x33b7c7)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x2a0c97);}}function ls(_0x1a4fa2,_0x2f9d39){let _0x58a54b='';return _0x58a54b+=_0x1a4fa2['split']('*')['map']((_0x598381,_0x3b1362)=>_0x3b1362%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+rn(_0x598381)+'</span>':rn(_0x598381))['join'](''),_0x2f9d39&&(_0x58a54b+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x2f9d39['value']+'\x22\x20title=\x22'+_0x2f9d39['title']+'\x22></span>'),_0x58a54b;}function rn(_0x3a886e){const _0x58ed39=document['createElement']('span');return _0x58ed39['innerText']=_0x3a886e,_0x58ed39['innerHTML'];}function ts(_0xb67dab){return _0xb67dab['sort']((_0x2fed34,_0x15d321)=>'attribute'===_0x2fed34['type']&&'attribute'!==_0x15d321['type']?-0x1:'attribute'!==_0x2fed34['type']&&'attribute'===_0x15d321['type']?0x1:'deletion'==_0x2fed34['type']&&'deletion'!=_0x15d321['type']?-0x1:'deletion'!=_0x2fed34['type']&&'deletion'==_0x15d321['type']?0x1:0x0);}function to(_0x3f5edd,_0x4cc149){let _0x1d67cf,_0x327a1c=0x0;const _0x36745f=[],_0x102cbd=_0x4cc149['schema'];for(;_0x327a1c<_0x3f5edd['length'];){const _0x3f0ea6=_0x3f5edd[_0x327a1c],_0x1ee605=_0x3f5edd[_0x327a1c+0x1];_0x1d67cf||(_0x1d67cf=_0x4cc149['createPositionBefore'](_0x3f0ea6)),cn(_0x4cc149,_0x3f0ea6,_0x1ee605)||(_0x36745f['push'](_0x4cc149['createRange'](_0x1d67cf,_0x102cbd['isObject'](_0x3f0ea6)?_0x4cc149['createPositionAfter'](_0x3f0ea6):_0x4cc149['createPositionAt'](_0x3f0ea6,'end'))),_0x1d67cf=null),_0x327a1c++;}return _0x36745f;}function cn(_0x34a3dd,_0x6a408a,_0x38c9ea){if(!_0x38c9ea)return!0x1;const _0x4ded64=_0x34a3dd['createPositionAfter'](_0x6a408a),_0x52267d=_0x34a3dd['createPositionBefore'](_0x38c9ea);return _0x4ded64['isTouching'](_0x52267d);}function rs(_0x29aa5c,_0xe7c3b0,_0x547a33){for(;_0x547a33['length'];){const _0x13717e=_0x547a33['splice'](0x0,0x64);_0x29aa5c['change'](()=>{for(const _0x4a4c4c of _0x13717e)_0x4a4c4c['isInContent']&&_0xe7c3b0['execute'](_0x4a4c4c['id']);});}}class B extends _0x2f06c1{['_command'];['_suggestions'];constructor(_0x59c6d4,_0x50f615,_0x33f9b6){super(_0x59c6d4),this['_command']=_0x50f615,this['_suggestions']=_0x33f9b6,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x476692=Array['from'](this['_suggestions']['values']())['some'](_0x2bf609=>_0x2bf609['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x476692;}['execute'](){const _0x162564=ts(Array['from'](this['_suggestions']['values']()));for(const _0xb6a406 of _0x162564){const _0x4900e6=_0xb6a406['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4900e6))return;}rs(this['editor']['model'],this['_command'],_0x162564);}}class O extends _0x2f06c1{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x33db4b,_0x5971c5,_0xd61903){super(_0x33db4b),this['_command']=_0x5971c5,this['_suggestions']=_0xd61903,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0xae2807=this['editor']['model']['document']['selection'],_0x3551aa=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x4c7c7b,_0x3465fa){const _0x2e0541=Array['from'](_0x4c7c7b['getRanges']()),_0x15586a=new Set();for(const _0x304523 of _0x3465fa)if(_0x304523['isInContent']){for(const _0x4263c3 of _0x2e0541)for(const _0x33a194 of _0x304523['getRanges']())(_0x4263c3['isIntersecting'](_0x33a194)||_0x4c7c7b['isCollapsed']&&!_0x304523['isMultiRange']&&_0x304523['next']&&_0x33a194['end']['isTouching'](_0x4263c3['start']))&&_0x15586a['add'](_0x304523);}return _0x15586a;}(_0xae2807,_0x3551aa),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x1b1384=ts(Array['from'](this['_selectedSuggestions']));for(const _0x4d6475 of _0x1b1384){const _0x466cd9=_0x4d6475['getRanges']();if(!this['editor']['model']['canEditAt'](_0x466cd9))return;}rs(this['editor']['model'],this['_command'],_0x1b1384);}}class x extends/* #__PURE__ -- @preserve */
24
- _0x3cf1a1(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x9ef607,_0x50bccd){super(),this['id']=_0x50bccd['id'],this['type']=_0x50bccd['type'],this['subType']=_0x50bccd['subType']||null,this['author']=_0x50bccd['author'],this['creator']=_0x50bccd['creator']||_0x50bccd['author'],this['isExternal']=Boolean(_0x50bccd['attributes']&&_0x50bccd['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x50bccd['originalSuggestionId']||null,this['_model']=_0x9ef607,this['_onAccept']=_0x50bccd['onAccept'],this['_onDiscard']=_0x50bccd['onDiscard'],this['_onAttributesChange']=_0x50bccd['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x50bccd['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 _0x1089ad=this;for(;_0x1089ad['previous'];)_0x1089ad=_0x1089ad['previous'];return _0x1089ad;}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'](_0x1d11db){this['_markerNames']['add'](_0x1d11db);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x2170b3=>this['_model']['markers']['get'](_0x2170b3))['filter'](_0x1b7abb=>_0x1b7abb);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x5f2b25=>{for(const _0x56b839 of this['getMarkers']())_0x5f2b25['removeMarker'](_0x56b839);}),this['_markerNames']['clear']();}['removeMarker'](_0x4841cc){this['_model']['change'](_0x4d347a=>{_0x4d347a['removeMarker'](_0x4841cc);}),this['_markerNames']['delete'](_0x4841cc);}['addRange'](_0x7ed7b5){const _0xa8930='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+x['getMultiRangeId']();this['addMarkerName'](_0xa8930),this['_model']['change'](_0x4bdd77=>{_0x4bdd77['addMarker'](_0xa8930,{'range':_0x7ed7b5,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x4d12d3){for(const _0x41eda8 of this['getRanges']())if(_0x41eda8['isIntersecting'](_0x4d12d3))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x3dfa76=>_0x3dfa76['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x29ba16,_0x676c40)=>[..._0x29ba16,..._0x676c40['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x1675f6=this['getRanges']();if(0x1!=_0x1675f6['length'])return null;const _0x3cf9eb=_0x1675f6[0x0],_0x4d8be1=_0x3cf9eb['start']['nodeAfter'],_0x49b7f2=_0x3cf9eb['end']['nodeBefore'];return _0x4d8be1 instanceof _0x3046f4?_0x4d8be1!=_0x49b7f2?null:_0x4d8be1: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 _0x19ff5b=[];let _0x929979=this['head'];for(;_0x929979;)_0x19ff5b['push'](_0x929979),_0x929979=_0x929979['next'];return _0x19ff5b;}['setAttribute'](_0x78cca5,_0x4ed10e){const _0x5862c6=_0x12ad9b(this['attributes']);_0x87ddd7(_0x5862c6,_0x78cca5,_0x4ed10e),_0x21a076(_0x5862c6,this['attributes'])||(this['attributes']=_0x5862c6,this['_onAttributesChange'](_0x5862c6));}['removeAttribute'](_0x2d6831){const _0x131db8=_0x12ad9b(this['attributes']);_0x233d23(_0x131db8,_0x2d6831),_0x21a076(_0x131db8,this['attributes'])||(this['attributes']=_0x131db8,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 _0x3da106()['substr'](0x1,0x5);}}function o(_0x4685ba,_0x5abc78,_0x1c4ce5){const _0xbe8eec=_0x4685ba['t'],t=_0x4685ba['t'];switch(_0x5abc78){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',_0x1c4ce5);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x1c4ce5);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x1c4ce5);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x1c4ce5);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x1c4ce5);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',_0x1c4ce5);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x1c4ce5);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',_0x1c4ce5);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x1c4ce5);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x1c4ce5);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x1c4ce5);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x1c4ce5);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x1c4ce5);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x1c4ce5);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x1c4ce5);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x1c4ce5);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x1c4ce5);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x1c4ce5);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x1c4ce5);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x1c4ce5);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x1c4ce5);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x1c4ce5);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x1c4ce5);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x1c4ce5);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x1c4ce5);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'},_0x1c4ce5);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x1c4ce5);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x1c4ce5);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x1c4ce5);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x1c4ce5);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x1c4ce5);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x1c4ce5);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x1c4ce5);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'},_0x1c4ce5);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x1c4ce5);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x1c4ce5);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x1c4ce5);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x1c4ce5);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'},_0x1c4ce5);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x1c4ce5);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'},_0x1c4ce5);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_TYPE':return t({'string':'table\x20cell\x20type','id':'FORMAT_TABLE_CELL_TYPE'});case'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x1c4ce5);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x1c4ce5);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'},_0x1c4ce5);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x1c4ce5);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'},_0x1c4ce5);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x1c4ce5);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x1c4ce5);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x1c4ce5);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x1c4ce5);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x1c4ce5);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'},_0x1c4ce5);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x1c4ce5);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 _0xbe8eec({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x1c4ce5);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0xbe8eec({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x1c4ce5);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x1c4ce5);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'},_0x1c4ce5);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'},_0x1c4ce5);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'},_0x1c4ce5);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x5abc78;}}class M{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x56f1f1,_0x50e825){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x56f1f1,this['_locale']=_0x50e825;}['getDescriptions'](_0x3af43f){const _0x283e2f=[],_0xbd3970=new Set(),_0x235adc=new Set();for(let _0x37138d=0x0;_0x37138d<_0x3af43f['length'];_0x37138d++){const _0x3f44d1=_0x3af43f[_0x37138d];if(!_0x3f44d1['isInContent'])continue;const _0x4cb758=this['_handleCustomCallbackDescription'](_0x3f44d1);if(_0x4cb758){if(null!=_0x3f44d1['subType']){if(_0xbd3970['has'](_0x3f44d1['subType']))continue;_0xbd3970['add'](_0x3f44d1['subType']);}_0x283e2f['push'](_0x4cb758);}else{if('attribute'==_0x3f44d1['type']){const _0x24418e=_0x3f44d1['data']['key'];if(_0x235adc['has'](_0x24418e))continue;_0x235adc['add'](_0x3f44d1['data']['key']),_0x24418e==m?this['_handleRenameSuggestionDescription'](_0x283e2f,_0x3f44d1):this['_handleAttributeSuggestionDescription'](_0x283e2f,_0x3f44d1);continue;}'insertion'!=_0x3f44d1['type']&&'deletion'!=_0x3f44d1['type']||this['_handleInsertRemoveSuggestionDescription'](_0x283e2f,_0x3f44d1,_0x3af43f[_0x37138d+0x1]);}}return this['_resolveDescriptionItems'](_0x283e2f);}['registerDescriptionCallback'](_0x3da6e1){this['_customCallbacks']['push'](_0x3da6e1);}['registerElementLabel'](_0x2fcaa8,_0x15f181,_0x574abd=_0x1a1f89['normal']){'function'==typeof _0x2fcaa8?_0x459181(this['_itemLabelsCallbacks'],{'matchingCallback':_0x2fcaa8,'label':_0x15f181,'priority':_0x574abd}):this['_itemLabels']['set'](_0x2fcaa8,_0x15f181);}['registerAttributeLabel'](_0x529c64,_0xb69eb5){this['_attributeLabels']['set'](_0x529c64,_0xb69eb5);}['getItemLabel'](_0x9b998f,_0x34ba6b=0x1){let _0x37766a;for(const _0x2e6b7a of this['_itemLabelsCallbacks'])if(_0x2e6b7a['matchingCallback'](_0x9b998f)){_0x37766a=_0x2e6b7a['label'];break;}return _0x37766a||(_0x37766a=this['_itemLabels']['get'](_0x9b998f['name'])),_0x37766a?_0x37766a(_0x34ba6b):0x1!==_0x34ba6b?_0x34ba6b+'\x20'+_0x9b998f['name']+'s':''+_0x9b998f['name'];}['_addDescriptionItems'](_0x115a77,_0xa6866d){const _0x3b8135=_0xa6866d['getFirstRange']()['getWalker'](),_0x9407d6='insertion'==_0xa6866d['type']?'add':'remove';for(const _0x3944c2 of _0x3b8135){const _0x40ab28=_0x3944c2['item'],_0x3c07fc=_0x115a77[_0x115a77['length']-0x1];if(_0x40ab28['is']('$textProxy'))_0x3c07fc&&_0x3c07fc['type']['indexOf']('Container')>-0x1&&_0x115a77['pop'](),_0x3c07fc&&'text'==_0x3c07fc['type']?_0x3c07fc[_0x9407d6]+=_0x40ab28['data']:_0x115a77['push']({'type':'text','add':'add'==_0x9407d6?_0x40ab28['data']:'','remove':'remove'==_0x9407d6?_0x40ab28['data']:''});else{if(this['_schema']['isObject'](_0x40ab28)){const _0x1fe3e5=_0x40ab28;if(_0x3c07fc&&_0x3c07fc['type']['indexOf']('Container')>-0x1&&_0x115a77['pop'](),'elementEnd'==_0x3944c2['type'])continue;_0x3c07fc&&_0x3c07fc['type']==_0x9407d6+'Object'&&_0x3c07fc['element']['name']==_0x1fe3e5['name']?_0x3c07fc['quantity']++:_0x115a77['push']({'type':_0x9407d6+'Object','element':_0x1fe3e5,'quantity':0x1}),_0x3b8135['skip'](_0x5a78af=>!('elementEnd'==_0x5a78af['type']&&_0x5a78af['item']==_0x40ab28));}else{if(this['_schema']['checkChild'](_0x40ab28,'$text')||_0x40ab28['is']('element','softBreak')){const _0x22385b=_0x40ab28;if('add'==_0x9407d6&&'elementStart'==_0x3944c2['type']||'remove'==_0x9407d6&&'elementEnd'==_0x3944c2['type'])continue;if(_0x3c07fc&&-0x1==_0x3c07fc['type']['indexOf']('Container')){'text'==_0x3c07fc['type']&&(_0x3c07fc[_0x9407d6]+='\x0a');continue;}let _0x74dc2d;if(_0x74dc2d='add'==_0x9407d6?_0x22385b['nextSibling']&&!this['_schema']['isObject'](_0x22385b['nextSibling'])?_0x22385b['nextSibling']:null:_0x22385b['previousSibling']&&!this['_schema']['isObject'](_0x22385b['previousSibling'])?_0x22385b['previousSibling']:null,_0x22385b['isEmpty']||_0x74dc2d&&_0x74dc2d['isEmpty']){const _0x171c3d=_0x74dc2d&&_0x74dc2d['isEmpty']?_0x74dc2d:_0x22385b;_0x3c07fc&&_0x3c07fc['type']==_0x9407d6+'EmptyContainer'&&_0x3c07fc['element']['name']==_0x171c3d['name']?_0x3c07fc['quantity']++:_0x115a77['push']({'type':_0x9407d6+'EmptyContainer','element':_0x171c3d,'quantity':0x1});}else _0x115a77['push']({'type':_0x9407d6+'Container','element':_0x22385b});}}}}}['_resolveDescriptionItems'](_0x196b61){const _0x585a24=this['_locale'],_0x556d6e=[],_0xe40ebe=[],_0x136ba4=[];for(const _0x552a57 of _0x196b61)switch(_0x552a57['type']){case'text':if(_0x552a57['add']=_0x552a57['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x552a57['remove']=_0x552a57['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x552a57['add']&&''!=_0x552a57['remove']){_0x556d6e['push']({'type':'replace','content':o(_0x585a24,'REPLACE_TEXT',['\x22'+_0x552a57['remove']+'\x22','\x22'+_0x552a57['add']+'\x22'])});continue;}if(null!=_0x552a57['add']['match'](/^ +$/)){_0x556d6e['push']({'type':'insertion','content':o(_0x585a24,'*Insert:*\x20%0',o(_0x585a24,'ELEMENT_SPACE',_0x552a57['add']['length']))});continue;}if(null!=_0x552a57['remove']['match'](/^ +$/)){_0x556d6e['push']({'type':'deletion','content':o(_0x585a24,'*Remove:*\x20%0',o(_0x585a24,'ELEMENT_SPACE',_0x552a57['remove']['length']))});continue;}if(''!=_0x552a57['add']){_0x556d6e['push']({'type':'insertion','content':o(_0x585a24,'*Insert:*\x20%0','\x22'+_0x552a57['add']+'\x22')});continue;}_0x556d6e['push']({'type':'deletion','content':o(_0x585a24,'*Remove:*\x20%0','\x22'+_0x552a57['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x556d6e['push']({'type':'insertion','content':o(_0x585a24,'*Insert:*\x20%0',this['getItemLabel'](_0x552a57['element'],_0x552a57['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x556d6e['push']({'type':'deletion','content':o(_0x585a24,'*Remove:*\x20%0',this['getItemLabel'](_0x552a57['element'],_0x552a57['quantity']))});continue;case'addContainer':_0x556d6e['push']({'type':'insertion','content':o(_0x585a24,'*Split:*\x20%0',this['getItemLabel'](_0x552a57['element'],_0x552a57['quantity']))});continue;case'removeContainer':_0x556d6e['push']({'type':'deletion','content':o(_0x585a24,'*Merge:*\x20%0',this['getItemLabel'](_0x552a57['element'],_0x552a57['quantity']))});continue;case'addFormat':_0xe40ebe['push'](_0x552a57['key']);continue;case'removeFormat':_0x136ba4['push'](_0x552a57['key']);continue;default:_0x556d6e['push'](_0x552a57);}if(_0xe40ebe['length']){const _0xba0723=_0xe40ebe['map'](_0x336502=>this['_attributeLabels']['has'](_0x336502)?this['_attributeLabels']['get'](_0x336502):_0x336502)['join'](',\x20');_0x556d6e['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0xba0723)});}if(_0x136ba4['length']){const _0x242b93=_0x136ba4['map'](_0x13131e=>this['_attributeLabels']['has'](_0x13131e)?this['_attributeLabels']['get'](_0x13131e):_0x13131e)['join'](',\x20');_0x556d6e['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x242b93)});}return _0x556d6e;}['_handleCustomCallbackDescription'](_0x39f639){for(const _0x2b2843 of this['_customCallbacks']){const _0x14693f=_0x2b2843(_0x39f639);if(_0x14693f&&'type'in _0x14693f)return _0x14693f;}}['_handleAttributeSuggestionDescription'](_0x47022d,_0x151391){const _0x262b82=_0x151391['data'],_0x314520=void 0x0===_0x262b82['newValue']?'removeFormat':'addFormat';_0x47022d['push']({'type':_0x314520,'key':_0x262b82['key']});}['_handleRenameSuggestionDescription'](_0x34b0d8,_0x576a4f){_0x34b0d8['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x576a4f['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x419fc7,_0x2e3e4d,_0x5acf57){if(this['_addDescriptionItems'](_0x419fc7,_0x2e3e4d),_0x5acf57&&_0x5acf57['getFirstRange']()&&!_0x2e3e4d['getFirstRange']()['end']['isEqual'](_0x5acf57['getFirstRange']()['start'])){const _0x133c63=_0x419fc7[_0x419fc7['length']-0x1],_0x28d65f='insertion'==_0x2e3e4d['type']?'add':'remove';_0x133c63&&'text'==_0x133c63['type']&&(_0x133c63[_0x28d65f]+='\x0a');}}}class R extends _0x452242{['afterInit'](){const _0x1d475e=this['editor'],_0x318264=_0x1d475e['plugins']['get']('TrackChangesEditing');_0x1d475e['commands']['get']('showAIAssistant')&&_0x318264['enableCommand']('showAIAssistant');}}class T extends _0x452242{['afterInit'](){const _0x5ac1a5=this['editor'],_0x4d9f4e=_0x5ac1a5['plugins']['get']('TrackChangesEditing');_0x5ac1a5['commands']['get']('toggleAi')&&_0x4d9f4e['enableCommand']('toggleAi');}}class E extends _0x452242{['afterInit'](){const _0x1d3dc6=this['editor'],_0x239162=_0x1d3dc6['plugins']['get']('TrackChangesEditing');_0x1d3dc6['commands']['get']('aiQuickAction')&&_0x239162['enableCommand']('aiQuickAction');}}class U extends _0x452242{['afterInit'](){const _0x32d1d7=this['editor'],_0x28ce46=_0x32d1d7['locale'];if(!_0x32d1d7['plugins']['has']('AlignmentEditing'))return;const _0x53dfb2=_0x32d1d7['plugins']['get']('TrackChangesEditing');_0x53dfb2['enableDefaultAttributesIntegration']('alignment'),_0x53dfb2['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x28ce46,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x348e47=this['editor'],_0x1b3f58=_0x348e47['locale'];_0x348e47['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x222eae=>{if('formatBlock'!=_0x222eae['type'])return;const {data:_0x1c5e7e}=_0x222eae;if(_0x1c5e7e&&'alignment'==_0x1c5e7e['commandName']){const _0xc69183=_0x1c5e7e['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x1b3f58,'*Format:*\x20%0',function(_0x54784a){switch(_0x54784a){case'left':return o(_0x1b3f58,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x1b3f58,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x1b3f58,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x1b3f58,'FORMAT_JUSTIFY_TEXT');}}(_0xc69183))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class V extends _0x452242{['afterInit'](){const _0x1dbadb=this['editor'],_0x1088bc=_0x1dbadb['plugins']['get']('TrackChangesEditing'),_0x5618de=_0x1dbadb['locale'];for(const _0x297ee5 of ti){if(!_0x1dbadb['plugins']['has'](_0x297ee5))continue;const _0x44a02b=_0x297ee5['slice'](0x0,-0x7)['toLowerCase'](),_0x48a1cf='FORMAT_'+_0x44a02b['toUpperCase']();_0x1088bc['enableDefaultAttributesIntegration'](_0x44a02b),_0x1088bc['descriptionFactory']['registerAttributeLabel'](_0x44a02b,o(_0x5618de,_0x48a1cf));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3ad83e=this['editor'],_0x160e33=_0x3ad83e['locale'],_0x264e03=_0x3ad83e['plugins']['get']('TrackChangesEditing');function _0x47dc71(_0x1589b8,_0x555815){_0x264e03['descriptionFactory']['registerDescriptionCallback'](_0xbf95ca=>{if('formatInline'!=_0xbf95ca['type'])return;const {data:_0x56c76e}=_0xbf95ca;return _0x56c76e&&_0x56c76e['commandName']===_0x1589b8?_0x56c76e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x160e33,'*Format:*\x20%0',_0x555815)}:{'type':'format','content':o(_0x160e33,'*Remove\x20format:*\x20%0',_0x555815)}:void 0x0;});}_0x47dc71('bold',o(_0x160e33,'FORMAT_BOLD')),_0x47dc71('italic',o(_0x160e33,'FORMAT_ITALIC')),_0x47dc71('underline',o(_0x160e33,'FORMAT_UNDERLINE')),_0x47dc71('code',o(_0x160e33,'FORMAT_CODE')),_0x47dc71('strikethrough',o(_0x160e33,'FORMAT_STRIKETHROUGH')),_0x47dc71('subscript',o(_0x160e33,'FORMAT_SUBSCRIPT')),_0x47dc71('superscript',o(_0x160e33,'FORMAT_SUPERSCRIPT'));}}class F extends _0x452242{['afterInit'](){const _0x473574=this['editor'],_0xdd4028=_0x473574['locale'];if(!_0x473574['plugins']['has']('BlockQuoteEditing'))return;const _0x35d7e4=_0x473574['plugins']['get']('TrackChangesEditing'),_0x184501=this['editor']['commands']['get']('blockQuote');_0x35d7e4['enableCommand']('blockQuote',(_0x2ce117,_0x37a8ef={})=>{const _0x180e29=this['editor']['model']['document']['selection'],_0x516ee4=_0x37a8ef&&void 0x0!==_0x37a8ef['forceValue']?_0x37a8ef['forceValue']:!_0x184501['value'];let _0x4c935c=[];if(_0x516ee4){const _0x18dd2b=Array['from'](_0x180e29['getSelectedBlocks']())['filter'](_0xe207e=>oo(_0xe207e)||function(_0x1a1e74,_0x4968fe){const _0x3ec0d5=_0x4968fe['checkChild'](_0x1a1e74['parent'],'blockQuote'),_0x2f2c05=_0x4968fe['checkChild'](['$root','blockQuote'],_0x1a1e74);return _0x3ec0d5&&_0x2f2c05;}(_0xe207e,this['editor']['model']['schema']));_0x4c935c=to(_0x18dd2b,_0x473574['model']);}else{const _0x1187aa=Array['from'](_0x180e29['getSelectedBlocks']())['filter'](_0x2e63bd=>oo(_0x2e63bd));_0x4c935c=to(_0x1187aa,_0x473574['model']);}_0x473574['model']['change'](()=>{for(const _0x76aab3 of _0x4c935c)_0x35d7e4['markBlockFormat'](_0x76aab3,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x516ee4}]});});}),_0x35d7e4['descriptionFactory']['registerDescriptionCallback'](_0x2010eb=>{const {data:_0x7c0316}=_0x2010eb;if(_0x7c0316&&'blockQuote'==_0x7c0316['commandName']){const _0x4d476c=o(_0xdd4028,'ELEMENT_BLOCK_QUOTE');return _0x7c0316['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xdd4028,'*Set\x20format:*\x20%0',_0x4d476c)}:{'type':'format','content':o(_0xdd4028,'*Remove\x20format:*\x20%0',_0x4d476c)};}});}}function oo(_0x3f4dc0){return'blockQuote'==_0x3f4dc0['parent']['name'];}class G extends _0x452242{['afterInit'](){const _0x8effc1=this['editor'],_0x29ce1c=_0x8effc1['locale'],_0x20b4f2=_0x8effc1['plugins']['get']('TrackChangesEditing');_0x8effc1['plugins']['has']('BookmarkEditing')&&(_0x20b4f2['enableCommand']('insertBookmark'),_0x20b4f2['enableDefaultAttributesIntegration']('updateBookmark'),_0x20b4f2['descriptionFactory']['registerDescriptionCallback'](_0x2b71c3=>{if('insertion'!=_0x2b71c3['type']&&'deletion'!=_0x2b71c3['type']&&'attribute'!=_0x2b71c3['type'])return;const _0x541aa9=_0x2b71c3['getContainedElement']();if(null==_0x541aa9)return;if(!_0x541aa9['is']('element','bookmark'))return;const _0x18310d=_0x541aa9['getAttribute']('bookmarkId');if('insertion'==_0x2b71c3['type'])return{'type':'insertion','content':o(_0x29ce1c,'*Insert:*\x20%0','\x22'+_0x18310d+'\x22\x20'+o(_0x29ce1c,'ELEMENT_BOOKMARK'))};if('deletion'==_0x2b71c3['type'])return{'type':'deletion','content':o(_0x29ce1c,'*Remove:*\x20%0','\x22'+_0x18310d+'\x22\x20'+o(_0x29ce1c,'ELEMENT_BOOKMARK'))};const {data:_0x23c2ea}=_0x2b71c3;if(!_0x23c2ea||'bookmarkId'!=_0x23c2ea['key'])return;return{'type':'format','content':o(_0x29ce1c,'*Set\x20bookmark:*\x20%0','\x22'+_0x23c2ea['newValue']+'\x22')};}));}}class L extends _0x452242{['afterInit'](){const _0x5ecb28=this['editor'];_0x5ecb28['plugins']['has']('CaseChange')&&(_0x5ecb28['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x5ecb28['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x5ecb28['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class J extends _0x452242{['afterInit'](){const _0x2bc036=this['editor'];_0x2bc036['commands']['get']('ckbox')&&_0x2bc036['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x452242{['afterInit'](){const _0x424b95=this['editor'];if(!_0x424b95['plugins']['has']('CodeBlock'))return;const _0x46f09b=_0x424b95['plugins']['get']('TrackChangesEditing'),_0x417f37=_0x424b95['locale'],_0x3d9663=_0x424b95['config']['get']('codeBlock')['languages'],_0xc4a41f=_0x424b95['commands']['get']('codeBlock');_0x46f09b['enableCommand']('indentCodeBlock'),_0x46f09b['enableCommand']('outdentCodeBlock'),_0x46f09b['enableCommand']('codeBlock',(_0x2e36e9,_0x4bc546={})=>{const _0x444267=_0x424b95['model'],_0x53d363=_0x424b95['model']['document']['selection'],_0x557c3f=_0x4bc546&&void 0x0!==_0x4bc546['forceValue']?_0x4bc546['forceValue']:!_0xc4a41f['value'];let _0x1e25b8;_0x4bc546['language']||(_0x4bc546['language']=_0x3d9663[0x0]['language']),_0x1e25b8=_0x557c3f?Array['from'](_0x53d363['getSelectedBlocks']())['filter'](_0x1891a8=>co(_0x1891a8)||function(_0x534939,_0x15897f){if(_0x534939['is']('rootElement')||_0x15897f['isLimit'](_0x534939))return!0x1;return _0x15897f['checkChild'](_0x534939['parent'],'codeBlock');}(_0x1891a8,_0x444267['schema'])):Array['from'](_0x53d363['getSelectedBlocks']())['filter'](_0x233b99=>co(_0x233b99));const _0x404dc6=to(_0x1e25b8,_0x444267);_0x444267['change'](()=>{for(const _0x166c28 of _0x404dc6)_0x46f09b['markBlockFormat'](_0x166c28,{'commandName':'codeBlock','commandParams':[{..._0x4bc546,'forceValue':_0x557c3f}],'formatGroupId':'blockName'});});}),(_0x46f09b['descriptionFactory']['registerElementLabel']('codeBlock',_0x3b49e7=>o(_0x417f37,'ELEMENT_CODE_BLOCK',_0x3b49e7)),_0x46f09b['descriptionFactory']['registerDescriptionCallback'](_0x4c60d0=>{if('formatBlock'!=_0x4c60d0['type'])return;const _0x386a1f=_0x417f37['t'],{data:_0x26366e}=_0x4c60d0;if(!_0x26366e||'codeBlock'!=_0x26366e['commandName'])return;const _0x126542=_0x26366e['commandParams'][0x0]['language'],_0x33325d=_0x386a1f(_0x3d9663['find'](_0x167602=>_0x167602['language']===_0x126542)['label'])['toLowerCase']();return _0x26366e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x417f37,'*Set\x20format:*\x20%0',o(_0x417f37,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x33325d+')')}:{'type':'format','content':o(_0x417f37,'*Remove\x20format:*\x20%0',o(_0x417f37,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x4e58ad){return'codeBlock'==_0x4e58ad['name'];}class z extends _0x452242{['afterInit'](){const _0x1bc333=this['editor'];if(!_0x1bc333['plugins']['has']('CommentsEditing'))return;_0x1bc333['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class K extends _0x452242{static get['requires'](){return[_0x526afb];}['init'](){const _0x5c05e2=this['editor'],_0x2a0fb6=_0x5c05e2['plugins']['get']('TrackChangesEditing');_0x2a0fb6['enableCommand']('delete');const _0x3164d4=_0x5c05e2['commands']['get']('deleteForward');_0x2a0fb6['enableCommand']('deleteForward',(_0x44f09b,_0x4e9bf1={})=>{const _0x5a9af6=_0x5c05e2['model']['createSelection'](_0x5c05e2['model']['document']['selection']);_0x5a9af6['isCollapsed']&&_0x5c05e2['model']['modifySelection'](_0x5a9af6,{'direction':'forward','unit':_0x4e9bf1['unit']});const _0x24e2dc=_0x5a9af6['getFirstRange'](),_0x196c55=_0x1506cc['fromRange'](_0x24e2dc);let _0x30254e;_0x44f09b(_0x4e9bf1),_0x30254e='$graveyard'==_0x196c55['root']['rootName']?_0x5c05e2['model']['createRange'](_0x24e2dc['start']):_0x5c05e2['model']['createRange'](_0x196c55['start'],_0x196c55['end']),_0x196c55['detach'](),_0x5c05e2['model']['enqueueChange'](_0x3164d4['buffer']['batch'],_0x28dbe1=>{_0x3164d4['buffer']['lock'](),_0x28dbe1['setSelection'](_0x28dbe1['createRange'](_0x30254e['end'])),_0x3164d4['buffer']['unlock']();});});}}class W extends _0x452242{['afterInit'](){const _0x291676=this['editor'];if(!_0x291676['plugins']['has']('ListEditing'))return;const _0x1b0837=_0x291676['locale'],_0x49da49=_0x291676['plugins']['get']('TrackChangesEditing'),_0xc9c4ce=_0x291676['plugins']['has']('TodoListEditing'),_0x1d0946=!!_0x291676['config']['get']('list.multiBlock');function _0x1a2c19(_0x4466ca){return{'type':'format','content':''+o(_0x1b0837,'*Set\x20format:*\x20%0',_0x4466ca)};}function _0x14a3b5(_0x4afbaa){return{'type':'format','content':''+o(_0x1b0837,'*Remove\x20format:*\x20%0',_0x4afbaa)};}_0x49da49['enableDefaultAttributesIntegration']('numberedList'),_0x49da49['enableDefaultAttributesIntegration']('bulletedList'),_0x49da49['enableDefaultAttributesIntegration']('customNumberedList'),_0x49da49['enableDefaultAttributesIntegration']('customBulletedList'),_0x49da49['enableDefaultAttributesIntegration']('indentList'),_0x49da49['enableDefaultAttributesIntegration']('outdentList'),_0x49da49['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x49da49['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x1d0946&&(_0x49da49['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x49da49['enableDefaultAttributesIntegration']('mergeListItemForward')),_0xc9c4ce&&(_0x49da49['enableDefaultAttributesIntegration']('todoList'),_0x49da49['enableDefaultAttributesIntegration']('checkTodoList'),_0x49da49['descriptionFactory']['registerDescriptionCallback'](_0x414f0a=>{const {data:_0x3ceb03}=_0x414f0a;if(_0x3ceb03&&'todoListChecked'==_0x3ceb03['key'])return{'type':'format','content':_0x3ceb03['newValue']?o(_0x1b0837,'*Check\x20item*'):o(_0x1b0837,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x410420=>{if(_0x410420['batch']['isUndo'])return!0x1;let _0x18c441=!0x1;const _0x59ad6d=_0x49da49['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xd0d4b7=>'todoListChecked'===_0x49da49['_getAttributeKey'](_0xd0d4b7));for(const _0x54045c of _0x59ad6d){'todo'!=_0x54045c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x49da49['_findSuggestions'](_0x54045c['getFirstRange'](),'attribute')['find'](_0x332949=>'listType'===_0x49da49['_getAttributeKey'](_0x332949['suggestion']))||(_0x410420['removeMarker'](_0x54045c['getFirstMarker']()),_0x18c441=!0x0));}return _0x18c441;})),_0x49da49['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x1b0837,'FORMAT_INDENT'));const _0x77dd92={'type':'format','content':''};_0x49da49['descriptionFactory']['registerDescriptionCallback'](_0x73000c=>{const {data:_0x720ec1}=_0x73000c;if(!_0x720ec1||'listType'!=_0x720ec1['key'])return;let _0x5dd3f5=_0x73000c['head'];for(;_0x5dd3f5;){if(_0x5dd3f5['data']&&(('listStyle'==_0x5dd3f5['data']['key']||'listMarkerStyle'==_0x5dd3f5['data']['key'])&&(_0x5dd3f5['data']['newValue']&&'default'!=_0x5dd3f5['data']['newValue']||'default'!=_0x5dd3f5['data']['oldValue']&&!_0x720ec1['newValue'])||!_0x1d0946&&_0x5dd3f5['data']['key']==m))return _0x77dd92;_0x5dd3f5=_0x5dd3f5['next'];}if(null==_0x720ec1['newValue'])switch(_0x720ec1['oldValue']){case'bulleted':return _0x14a3b5(o(_0x1b0837,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x14a3b5(o(_0x1b0837,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x14a3b5(o(_0x1b0837,'ELEMENT_TODO_LIST'));}switch(_0x720ec1['newValue']){case'bulleted':return _0x1a2c19(o(_0x1b0837,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1a2c19(o(_0x1b0837,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1a2c19(o(_0x1b0837,'ELEMENT_TODO_LIST'));}}),_0x49da49['descriptionFactory']['registerDescriptionCallback'](_0x5d2efb=>{const {data:_0x48965a}=_0x5d2efb;if(_0x48965a&&'listIndent'==_0x48965a['key'])return null==_0x48965a['newValue']||null==_0x48965a['oldValue']&&0x0==_0x48965a['newValue']?_0x77dd92:void 0x0;}),_0x49da49['descriptionFactory']['registerDescriptionCallback'](_0x335225=>{if('attribute'!=_0x335225['type'])return;const {data:_0x4042f9}=_0x335225;if(!_0x4042f9||'listItemId'!=_0x4042f9['key'])return;const _0x50bbf3=Te(_0x335225);return'newValue'==_0x50bbf3?{'type':'format','content':o(_0x1b0837,'*Merge:*\x20list\x20item')}:'oldValue'==_0x50bbf3?{'type':'format','content':o(_0x1b0837,'*Split:*\x20list\x20item')}:_0x77dd92;}),_0x291676['model']['document']['registerPostFixer'](_0x2835a3=>this['listItemIdFixer'](_0x2835a3)),_0x291676['model']['document']['registerPostFixer'](_0x53c47c=>this['noTrackChangesFixer'](_0x53c47c)),_0x291676['model']['document']['on']('change:data',(_0x536979,_0x6841ac)=>{if(_0x6841ac['isUndo']||!_0x6841ac['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x3ff609){if(_0x3ff609['batch']['isUndo']||!_0x3ff609['batch']['isLocal'])return!0x1;let _0x1c6b9f=!0x1;const _0x1550fb=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4c0c62=>_0x4c0c62['data']&&'listItemId'==_0x4c0c62['data']['key'])['filter'](_0x408655=>_0x408655['data']['newValue']&&_0x408655['data']['oldValue']);for(const _0x27561a of _0x1550fb)Te(_0x27561a)||(_0x3ff609['removeMarker'](_0x27561a['getFirstMarker']()),_0x1c6b9f=!0x0);return _0x1c6b9f;}['noTrackChangesFixer'](_0x213eab){if(_0x213eab['batch']['isUndo']||!_0x213eab['batch']['isLocal'])return!0x1;const _0x2a52dc=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x2a52dc['trackChangesCommand']['value'])return!0x1;let _0x45f89a=!0x1;const _0x34bccb=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x2b2e4b=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x5a3c38=>'attribute'==_0x5a3c38['type'])['filter'](_0x3a9c9b=>_0x34bccb['includes'](_0x3a9c9b['attributeKey']));if(0x0==_0x2b2e4b['length'])return _0x45f89a;for(const _0x5dac20 of _0x2b2e4b){const _0x18c6f3=_0x2a52dc['_findSuggestions'](_0x5dac20['range'],'attribute')['filter'](_0x224f69=>!_0x224f69['meta']['isNextTo'])['map'](_0xfc4bd1=>_0xfc4bd1['suggestion'])['filter'](_0x5a8678=>{const _0x467bd9=_0x2a52dc['_getAttributeKey'](_0x5a8678);return _0x34bccb['includes'](_0x467bd9);});if(_0x18c6f3['length']){for(const _0x40b7b9 of _0x18c6f3)_0x213eab['removeMarker'](_0x40b7b9['getFirstMarker']());_0x45f89a=!0x0;}}return _0x45f89a;}['assureChains'](){const _0x35051f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x55db8c=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0xde7f64;const _0x14aad5=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x21e263=>{if(_0x21e263['data']['oldRange']||!_0x21e263['data']['newRange'])return null;if(!_0x21e263['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x2e2d52}=_0x35051f['_splitMarkerName'](_0x21e263['name']);if(!_0x35051f['hasSuggestion'](_0x2e2d52))return null;const _0x2617b9=_0x35051f['getSuggestion'](_0x2e2d52);return _0x55db8c['includes'](_0x2617b9['data']['key']);})['map'](_0x4ec8e7=>{const {id:_0x2025b1}=_0x35051f['_splitMarkerName'](_0x4ec8e7['name']),_0x19c2a1=_0x35051f['getSuggestion'](_0x2025b1);return _0xde7f64=_0x19c2a1['attributes']['groupId'],_0x19c2a1['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x14aad5['size'])return;const _0x9ed582=_0x35051f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3f5ef1=>'attribute'==_0x3f5ef1['type']&&_0x3f5ef1['data']&&_0x55db8c['includes'](_0x3f5ef1['data']['key'])&&_0x3f5ef1['attributes']['groupId']!=_0xde7f64)['map'](_0x5c5689=>({'listItem':_0x5c5689['getFirstRange']()['start']['nodeAfter'],'groupId':_0x5c5689['attributes']['groupId']})),_0x1a90cb=new Set();for(const {groupId:_0x34fec6,listItem:_0x30fad5}of _0x9ed582)_0x14aad5['has'](_0x30fad5)&&_0x1a90cb['add'](_0x34fec6);for(const _0x1db969 of _0x35051f['getSuggestions']())_0x1a90cb['has'](_0x1db969['attributes']['groupId'])&&_0x1db969['setAttribute']('groupId',_0xde7f64);}['_supportLegacySuggestions'](){const _0x2395cf=this['editor'],_0x222114=_0x2395cf['locale'],_0x4c150e=_0x2395cf['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x4c150e['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x278faf,_0x517f26){const _0x4792b8=[];for(let _0xe963d8 of _0x278faf)_0xe963d8['start']['nodeAfter']===_0xe963d8['end']['parent']&&(_0xe963d8=_0x2395cf['model']['createRange'](_0x2395cf['model']['createPositionAt'](_0xe963d8['start']['nodeAfter'],0x0))),_0x4792b8['push'](_0xe963d8);_0x2395cf['model']['change'](_0x38a63c=>{const _0x501d75=_0x2395cf['model']['document']['selection'],_0x3fdcbb=Array['from'](_0x501d75['getRanges']())['map'](_0x2b3f99=>_0x1506cc['fromRange'](_0x2b3f99));_0x38a63c['setSelection'](_0x4792b8),_0x2395cf['commands']['get'](_0x517f26['commandName'])['refresh'](),_0x517f26['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x2395cf['execute'](_0x517f26['commandName'],..._0x517f26['commandParams']),_0x38a63c['setSelection'](_0x3fdcbb);for(const _0x536d0c of _0x3fdcbb)_0x536d0c['detach']();});}),_0x4c150e['descriptionFactory']['registerElementLabel'](function(_0x2ee738){const _0x31f4af=!_0x2395cf['model']['schema']['isObject'](_0x2ee738),_0x59d0bd=_0x2ee738['previousSibling'],_0x34e71b=_0x2ee738['nextSibling'],_0x14eba2=_0x2ee738['getAttribute']('listItemId'),_0x537dc2=!_0x59d0bd||_0x59d0bd['getAttribute']('listItemId')!==_0x14eba2,_0x2dbbf8=!_0x34e71b||_0x34e71b['getAttribute']('listItemId')!==_0x14eba2;return _0x31f4af&&Boolean(_0x14eba2)&&_0x537dc2&&_0x2dbbf8;},_0x52245b=>o(_0x222114,'ELEMENT_LIST_ITEM',_0x52245b));}['_registerLegacyDescription'](){const _0x426f2b=this['editor'],_0x31b5e8=_0x426f2b['locale'];function _0x1821ed(_0x5ac914){const _0x2291a9=_0x426f2b['commands']['get']('bulletedList')['value'],_0x3f71b7=_0x426f2b['commands']['get']('numberedList')['value'];return'numberedList'===_0x5ac914?_0x2291a9:_0x3f71b7;}_0x426f2b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x348d18){if('formatBlock'!=_0x348d18['type'])return;const {data:_0xaa46f2}=_0x348d18;if(!_0xaa46f2)return;let _0xd94180,_0xec7a27,_0x63ff5b,_0x211f61;switch(_0xaa46f2['commandName']){case'bulletedList':_0x63ff5b=_0xaa46f2['commandParams'][0x0]['forceValue'],_0x211f61=_0x1821ed(_0xaa46f2['commandName']),_0xd94180=_0x63ff5b?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x211f61&&_0x426f2b['config']['get']('list.multiBlock')||(_0xd94180='*Change\x20to:*\x20%0'),_0xec7a27={'type':'format','content':o(_0x31b5e8,_0xd94180,o(_0x31b5e8,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x63ff5b=_0xaa46f2['commandParams'][0x0]['forceValue'],_0x211f61=_0x1821ed(_0xaa46f2['commandName']),_0xd94180=_0x63ff5b?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x211f61&&_0x426f2b['config']['get']('list.multiBlock')||(_0xd94180='*Change\x20to:*\x20%0'),_0xec7a27={'type':'format','content':o(_0x31b5e8,_0xd94180,o(_0x31b5e8,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0xd94180='*Indent:*\x20%0',_0xec7a27={'type':'format','content':o(_0x31b5e8,_0xd94180,o(_0x31b5e8,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0xd94180=function(_0x327edd){const _0x503612=_0x327edd['getFirstRange']();let _0x578c49=_0x503612['start']['nodeAfter'];for(;_0x578c49&&_0x503612['containsItem'](_0x578c49);){if(_0x578c49['getAttribute']('listIndent')>0x0)return!0x1;_0x578c49=_0x578c49['nextSibling'];}return!0x0;}(_0x348d18)?o(_0x31b5e8,'*Format:*\x20remove\x20from\x20%0',o(_0x31b5e8,function(_0x18d797){return'ELEMENT_'+_0x18d797['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x348d18))):o(_0x31b5e8,'*Outdent:*\x20%0',o(_0x31b5e8,'ELEMENT_LIST_ITEM')),_0xec7a27={'type':'format','content':_0xd94180};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0xaa46f2['multipleBlocks']&&(_0xd94180='*Merge:*\x20%0',_0xec7a27={'type':'deletion','content':o(_0x31b5e8,_0xd94180,o(_0x31b5e8,'ELEMENT_LIST_ITEM'))});}return _0xec7a27;});}}function Te(_0x3e647f){let _0x59bfdf=_0x3e647f['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x59bfdf;){const _0x394a4c=_0x59bfdf['getAttribute']('listItemId');if(!_0x394a4c)return!0x1;if(_0x394a4c==_0x3e647f['data']['newValue'])return'newValue';if(_0x394a4c==_0x3e647f['data']['oldValue'])return'oldValue';_0x59bfdf=_0x59bfdf['previousSibling'];}return!0x1;}class H extends _0x452242{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x3cffc6=this['editor']['config']['get']('list.properties'),_0x4c21c3=this['editor']['plugins']['get']('TrackChangesEditing');_0x3cffc6['styles']&&_0x4c21c3['enableDefaultAttributesIntegration']('listStyle'),_0x3cffc6['reversed']&&_0x4c21c3['enableDefaultAttributesIntegration']('listReversed'),_0x3cffc6['startIndex']&&_0x4c21c3['enableDefaultAttributesIntegration']('listStart');const _0x270adf={'type':'format','content':''};_0x4c21c3['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x5adc34=this['editor']['locale'];_0x4c21c3['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x5adc34,'FORMAT_LIST_REVERSED')),_0x4c21c3['descriptionFactory']['registerDescriptionCallback'](_0x1a29b0=>{const {data:_0x460311}=_0x1a29b0;if(_0x460311&&'listReversed'==_0x460311['key'])return null==_0x460311['newValue']||0x0==_0x460311['newValue']&&null==_0x460311['oldValue']?_0x270adf:void 0x0;}),_0x4c21c3['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x5adc34,'FORMAT_LIST_START')),_0x4c21c3['descriptionFactory']['registerDescriptionCallback'](_0x59a30c=>{const {data:_0x448a75}=_0x59a30c;if(_0x448a75&&'listStart'==_0x448a75['key'])return null==_0x448a75['newValue']||0x1==_0x448a75['newValue']&&null==_0x448a75['oldValue']?_0x270adf:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x5be4da=>{if(_0x5be4da['batch']['isUndo'])return!0x1;let _0x2ae14e=!0x1;const _0x406159=_0x4c21c3['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x22a7c5=>{const _0x378fe0=_0x4c21c3['_getAttributeKey'](_0x22a7c5);return'listStart'==_0x378fe0||'listReversed'==_0x378fe0;});for(const _0x95abfa of _0x406159){const _0x3f665f=_0x95abfa['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x3f665f||'customNumbered'==_0x3f665f)continue;_0x4c21c3['_findSuggestions'](_0x95abfa['getFirstRange'](),'attribute')['find'](_0x22e060=>'listType'==_0x4c21c3['_getAttributeKey'](_0x22e060['suggestion']))||(_0x5be4da['removeMarker'](_0x95abfa['getFirstMarker']()),_0x2ae14e=!0x0);}return _0x2ae14e;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x1bb972){const _0x1097c5=this['editor']['locale'],{data:_0x139b00}=_0x1bb972,_0x1c55b1={'type':'format','content':''};if(!_0x139b00||'listStyle'!=_0x139b00['key'])return;if(!_0x139b00['oldValue'])return'default'==_0x139b00['newValue']?_0x1c55b1:{'type':'format','content':''+o(_0x1097c5,'*Set\x20format:*\x20%0',o(_0x1097c5,this['_getTranslationKeyForListStyle'](_0x139b00['newValue'])))};if(!_0x139b00['newValue']){if('default'==_0x139b00['oldValue'])return _0x1c55b1;let _0x35e73f=_0x1bb972['head'];for(;_0x35e73f;){if(_0x35e73f['data']&&'listType'==_0x35e73f['data']['key']&&_0x35e73f['data']['newValue'])return _0x1c55b1;_0x35e73f=_0x35e73f['next'];}return{'type':'format','content':''+o(_0x1097c5,'*Remove\x20format:*\x20%0',o(_0x1097c5,this['_getTranslationKeyForListStyle'](_0x139b00['oldValue'])))};}if('default'!=_0x139b00['newValue'])return{'type':'format','content':''+o(_0x1097c5,'*Set\x20format:*\x20%0',o(_0x1097c5,this['_getTranslationKeyForListStyle'](_0x139b00['newValue'])))};let _0x40f915=_0x1bb972['head'];for(;_0x40f915;){if(_0x40f915['data']&&'listType'==_0x40f915['data']['key']&&_0x40f915['data']['newValue']&&_0x40f915['data']['oldValue'])return _0x1c55b1;_0x40f915=_0x40f915['next'];}return{'type':'format','content':o(_0x1097c5,'*Set\x20format:*\x20%0',o(_0x1097c5,'ELEMENT_'+_0x1bb972['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x275bd2=this['editor'],_0x2392dc=_0x275bd2['locale'];_0x275bd2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x48dcf9=>{if('formatBlock'!=_0x48dcf9['type'])return;const {data:_0x19ccd5}=_0x48dcf9;if(!_0x19ccd5)return;let _0x2668e8,_0x37cf67;switch(_0x19ccd5['commandName']){case'listStyle':_0x2668e8='*Change\x20to:*\x20%0',_0x37cf67={'type':'format','content':o(_0x2392dc,_0x2668e8,o(_0x2392dc,this['_getTranslationKeyForListStyle'](_0x19ccd5['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2668e8=_0x19ccd5['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x37cf67={'type':'format','content':o(_0x2392dc,_0x2668e8)};break;case'listStart':_0x2668e8='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x37cf67={'type':'format','content':o(_0x2392dc,_0x2668e8,_0x19ccd5['commandParams'][0x0]['startIndex'])};}return _0x37cf67;});}['_getTranslationKeyForListStyle'](_0x26ffe1){return'ELEMENT_'+function(_0x4245e5){if(ye['includes'](_0x4245e5))return'bulleted';if(Se['includes'](_0x4245e5))return'numbered';return null;}(_0x26ffe1)['toUpperCase']()+'_LIST_'+_0x26ffe1['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x452242{['afterInit'](){const _0x4ba34c=this['editor'];_0x4ba34c['commands']['get']('emoji')&&_0x4ba34c['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class X extends _0x452242{static get['requires'](){return[_0x25e692];}['init'](){const _0x7bafe3=this['editor'],_0x55acda=_0x7bafe3['plugins']['get']('TrackChangesEditing'),_0x3adae6=_0x7bafe3['commands']['get']('enter');_0x55acda['enableCommand']('enter',()=>{_0x7bafe3['model']['change'](_0x5212e9=>{const _0x35e1c0=_0x7bafe3['model']['document']['selection'],_0xaa9e9=_0x35e1c0['getFirstPosition'](),_0x9327e5=_0x1506cc['fromRange'](_0x35e1c0['getFirstRange']());if(_0x3adae6['enterBlock'](_0x5212e9)){const _0x3d05bd=_0x7bafe3['model']['createPositionAt'](_0xaa9e9['parent']['nextSibling'],0x0),_0x346610=_0x5212e9['createRange'](_0xaa9e9,_0x3d05bd);_0x55acda['markInsertion'](_0x346610);}else _0x5212e9['setSelection'](_0x5212e9['createRange'](_0x9327e5['end']));_0x9327e5['detach'](),_0x3adae6['fire']('afterExecute',{'writer':_0x5212e9});});});}}class Y extends _0x452242{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x3fe8cc=this['editor']['plugins']['get']('TrackChangesEditing');_0x3fe8cc['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x3fe8cc['enableCommand']('findNext'),_0x3fe8cc['enableCommand']('findPrevious'),_0x3fe8cc['enableCommand']('replace'),_0x3fe8cc['enableCommand']('replaceAll');}['handleFindCommand'](_0x1b9398,_0x3d393e,_0x2799ae={}){const _0x3f06ee=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x1b9398(_0xa5a781=>{let _0x5e45a9=('string'==typeof _0x3d393e?_0x3f06ee['findByTextCallback'](_0x3d393e,_0x2799ae):_0x3d393e)(_0xa5a781);Array['isArray'](_0x5e45a9)&&(_0x5e45a9={'results':_0x5e45a9,'searchText':'string'==typeof _0x3d393e?_0x3d393e:''});const _0x2d563b=_0x5e45a9['results']['filter'](_0x141e90=>!0x1===this['_isInDeletionRange'](_0x141e90,_0xa5a781['item']));return{..._0x5e45a9,'results':_0x2d563b};},_0x2799ae);}['_isInDeletionRange'](_0x439627,_0x4038c0){const _0x74f912=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4038c0,_0x439627['start']),this['editor']['model']['createPositionAt'](_0x4038c0,_0x439627['end']));for(const _0x5e5c4a of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x74f912['getIntersection'](_0x5e5c4a['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x452242{['afterInit'](){const _0x39c135=this['editor']['locale'],_0x5711a7=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x3b4eb1,commandName:_0x4d0488}of eo)this['editor']['plugins']['has'](_0x3b4eb1)&&_0x5711a7['enableDefaultAttributesIntegration'](_0x4d0488);_0x5711a7['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x39c135,'FORMAT_FONT_SIZE')),_0x5711a7['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x39c135,'FORMAT_FONT_FAMILY')),_0x5711a7['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x39c135,'FORMAT_FONT_COLOR')),_0x5711a7['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x39c135,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xc47bc2=this['editor'],_0x371913=_0xc47bc2['locale'];_0xc47bc2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x251327=>{const _0x32af50=_0x371913['t'];if('formatInline'!=_0x251327['type'])return;const {data:_0x5f29e9}=_0x251327;if(null!=_0x5f29e9){if('fontSize'==_0x5f29e9['commandName']){const _0x323402=_0x5f29e9['commandParams'][0x0]['value'];if(_0x323402){const _0x4a2633=_0x32af50(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x12c39e=>_0x12c39e['model']==_0x323402)['title'])['toLowerCase']();return{'type':'format','content':o(_0x371913,'*Set\x20font\x20size:*\x20%0',_0x4a2633)};}return{'type':'format','content':o(_0x371913,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x5f29e9['commandName']){const _0x2a4dda=_0x5f29e9['commandParams'][0x0]['value'];return _0x2a4dda?{'type':'format','content':o(_0x371913,'*Set\x20font\x20family:*\x20%0',_0x2a4dda)}:{'type':'format','content':o(_0x371913,'*Reset\x20font\x20family*')};}if('fontColor'==_0x5f29e9['commandName']){const _0x6adee9=_0x5f29e9['commandParams'][0x0]['value'];if(_0x6adee9){const _0x10da05=_0x3376c9(this['editor']['config']['get']('fontColor.colors'))['find'](_0x1aefcb=>_0x1aefcb['model']==_0x6adee9);let _0x836e68=_0x6adee9,_0x2641ed='';return _0x10da05&&(_0x836e68=_0x10da05['label'],_0x2641ed=_0x32af50(_0x836e68)['toLowerCase']()),{'type':'format','content':o(_0x371913,'*Set\x20font\x20color:*\x20%0',_0x2641ed)['trim'](),'color':{'value':_0x6adee9,'title':_0x2641ed||_0x836e68}};}return{'type':'format','content':o(_0x371913,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x5f29e9['commandName']){const _0x358905=_0x5f29e9['commandParams'][0x0]['value'];if(_0x358905){const _0x4e7d7a=_0x3376c9(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x3d9a9c=>_0x3d9a9c['model']==_0x358905);let _0xe80396=_0x358905,_0x34610e='';return _0x4e7d7a&&(_0xe80396=_0x4e7d7a['label'],_0x34610e=_0x32af50(_0xe80396)['toLowerCase']()),{'type':'format','content':o(_0x371913,'*Set\x20font\x20background\x20color:*\x20%0',_0x34610e)['trim'](),'color':{'value':_0x358905,'title':_0x34610e||_0xe80396}};}return{'type':'format','content':o(_0x371913,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x452242{['afterInit'](){const {plugins:_0x56157d}=this['editor'];_0x56157d['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x56157d['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x3aa50a,plugins:_0x6c8019,commands:_0x1b3351}=this['editor'],_0x5de071=_0x6c8019['get']('TrackChangesEditing');_0x1b3351['get']('footnotesStyle')&&_0x5de071['enableDefaultAttributesIntegration']('footnotesStyle'),_0x1b3351['get']('footnotesStart')&&_0x5de071['enableDefaultAttributesIntegration']('footnotesStart'),_0x5de071['registerBlockAttribute']('footnotesListStyle'),_0x5de071['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',o(_0x3aa50a,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x5de071['registerBlockAttribute']('footnotesListStart'),_0x5de071['descriptionFactory']['registerAttributeLabel']('footnotesListStart',o(_0x3aa50a,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x154a30=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x457e40,commands:_0x561716}=this['editor'];_0x561716['get']('insertFootnote')&&_0x154a30['enableCommand']('insertFootnote'),_0x154a30['descriptionFactory']['registerElementLabel']('footnoteRef',_0x190c75=>o(_0x457e40,'ELEMENT_FOOTNOTE_REF',_0x190c75)),_0x154a30['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x5e1c8a=>o(_0x457e40,'ELEMENT_FOOTNOTE_DEFINITION',_0x5e1c8a)),_0x154a30['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x464df1=>o(_0x457e40,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x464df1));}}class nt extends _0x452242{['afterInit'](){const _0x4f3ff0=this['editor'],_0x3c20ff=_0x4f3ff0['plugins']['get']('TrackChangesEditing'),_0xf7ec4e=_0x4f3ff0['commands']['get']('copyFormat'),_0x17df5f=_0x4f3ff0['commands']['get']('pasteFormat');_0xf7ec4e&&_0x17df5f&&(_0x3c20ff['enableDefaultAttributesIntegration']('pasteFormat'),_0x3c20ff['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x120b50=this['editor'],_0x3ecab6=_0x120b50['locale'];_0x120b50['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x42254b=>{if('formatBlock'!=_0x42254b['type']&&'formatInline'!=_0x42254b['type'])return;const {data:_0x264ba7}=_0x42254b;if(_0x264ba7&&'pasteFormat'===_0x264ba7['commandName']){const _0x3f0c8b=[],_0x5d6add=_0x264ba7['commandParams'][0x0];for(const [_0x3043b1,_0x5db44d]of Object['entries'](_0x5d6add))_0x3f0c8b['push'](ro(_0x120b50,_0x3043b1,_0x5db44d));return _0x3f0c8b['length']?{'type':'format','content':o(_0x3ecab6,'*Set\x20format\x20to:*\x20%0',_0x3f0c8b['join'](',\x20'))}:{'type':'format','content':o(_0x3ecab6,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x255e39,_0x4dcb8b,_0x1c2829){const _0xa6c155=_0x255e39['locale']['t'],_0x5c35ef=_0x4dcb8b['split'](/(?=[A-Z])/)['join']('\x20'),_0xfd5467=_0xa6c155(_0x5c35ef['charAt'](0x0)['toUpperCase']()+_0x5c35ef['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x1c2829)return _0xfd5467;if('fontColor'===_0x4dcb8b||'fontBackgroundColor'===_0x4dcb8b){const _0x22f1cf=_0x3376c9(_0x255e39['config']['get']('fontColor.colors'))['find'](_0x2c0232=>_0x2c0232['model']==_0x1c2829);return _0xfd5467+'\x20('+(_0x22f1cf?_0xa6c155(_0x22f1cf['label'])['toLowerCase']():_0x1c2829)+')';}if('fontSize'===_0x4dcb8b&&isNaN(parseFloat(_0x1c2829))){const _0x444e09=_0x255e39['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x255e39['config']['get']('fontSize.options'))['find'](_0x489b2d=>_0x489b2d['model']==_0x1c2829);return _0xfd5467+'\x20('+(_0x444e09?_0xa6c155(_0x444e09['title'])['toLowerCase']():_0x1c2829)+')';}return _0xfd5467+'\x20('+_0x1c2829+')';}class it extends _0x452242{['_headingOptions'];['afterInit'](){const _0x374b1b=this['editor'];if(!_0x374b1b['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x374b1b['config']['get']('heading.options');const _0x48a7aa=_0x374b1b['locale'],_0xd0d054=_0x374b1b['plugins']['get']('TrackChangesEditing');_0xd0d054['enableDefaultAttributesIntegration']('heading');for(const _0x5c410f of this['_headingOptions'])'paragraph'!=_0x5c410f['model']&&_0xd0d054['descriptionFactory']['registerElementLabel'](_0x5c410f['model'],_0x58ad6d=>{const _0x49f4ed=this['_getHeadingLevel'](_0x5c410f['model']);return null!==_0x49f4ed?_0x3689ee(_0x58ad6d,_0x49f4ed):_0x3b2498(_0x58ad6d,_0x5c410f['title']);});function _0x3689ee(_0x434ae8,_0x27a66c){return o(_0x48a7aa,'ELEMENT_HEADING',[_0x434ae8,_0x27a66c]);}function _0x3b2498(_0x1bcc1f,_0x12bacc){return o(_0x48a7aa,'ELEMENT_HEADING_CUSTOM',[_0x1bcc1f,_0x12bacc]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x263cc1=this['editor'],_0x4b4599=_0x263cc1['locale'];function _0x3f7d84(_0x607277,_0x227bd7){return o(_0x4b4599,'ELEMENT_HEADING_CUSTOM',[_0x607277,_0x227bd7]);}_0x263cc1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5d736c=>{if('formatBlock'!=_0x5d736c['type'])return;const {data:_0x36a02b}=_0x5d736c;if(_0x36a02b&&'heading'==_0x36a02b['commandName']){const _0x28c3fb=_0x36a02b['commandParams'][0x0]['value'],_0x262433=this['_getHeadingLevel'](_0x28c3fb);if(null!==_0x262433)return{'type':'format','content':o(_0x4b4599,'*Change\x20to:*\x20%0',(_0x1d41c5=0x1,_0x2a3969=_0x262433,o(_0x4b4599,'ELEMENT_HEADING',[_0x1d41c5,_0x2a3969])))};const _0x58bea4=this['_headingOptions']['find'](_0x4080a1=>_0x4080a1['model']===_0x28c3fb)['title'];return{'type':'format','content':o(_0x4b4599,'*Change\x20to:*\x20%0',_0x3f7d84(0x1,_0x58bea4))};}var _0x1d41c5,_0x2a3969;});}['_getHeadingLevel'](_0x790652){const _0x3750b1=_0x790652['match'](/^heading(\d+)/);if(_0x3750b1)return _0x3750b1[0x1];const _0xc22188=this['_headingOptions']?.['find'](_0x1f37a6=>_0x1f37a6['model']==_0x790652);if(_0xc22188&&_0xc22188['view']){const _0x3f2d7f=_0xc22188['view'],_0x38ee4c=(_0x3f2d7f['name']??_0x3f2d7f)['match'](/^h(\d+)/);if(_0x38ee4c)return _0x38ee4c[0x1];}return null;}}class et extends _0x452242{['afterInit'](){const _0x1340c0=this['editor'];if(!_0x1340c0['plugins']['has']('HighlightEditing'))return;const _0x1504bc=_0x1340c0['plugins']['get']('TrackChangesEditing'),_0x5523af=_0x1340c0['locale'];_0x1504bc['enableDefaultAttributesIntegration']('highlight'),_0x1504bc['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x5523af,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5e1c86=this['editor'],_0x2b5b54=_0x5e1c86['locale'];_0x5e1c86['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x262027=>{if('formatInline'!=_0x262027['type'])return;const {data:_0x415ffb}=_0x262027;if(_0x415ffb&&'highlight'==_0x415ffb['commandName']){const _0x249372=_0x2b5b54['t'],_0x5f43b6=_0x415ffb['commandParams'][0x0]['value'];if(_0x5f43b6){const _0x5886c2=_0x5e1c86['config']['get']('highlight.options')['find'](_0x19e78b=>_0x19e78b['model']==_0x5f43b6),_0x4b8721=_0x249372(_0x5886c2['title'])['toLowerCase']();return{'type':'format','content':o(_0x2b5b54,'*Set\x20highlight:*\x20%0',_0x4b8721),'color':{'value':_0x5886c2['color'],'title':_0x5886c2['title']}};}return{'type':'format','content':o(_0x2b5b54,'*Remove\x20highlight*',o(_0x2b5b54,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x452242{['afterInit'](){const _0x155454=this['editor'];if(!_0x155454['plugins']['has']('HorizontalLineEditing'))return;_0x155454['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x578b2c=_0x155454['plugins']['get']('TrackChangesEditing'),_0x382895=_0x155454['locale'];_0x578b2c['descriptionFactory']['registerElementLabel']('horizontalLine',_0x362aca=>o(_0x382895,'ELEMENT_HORIZONTAL_LINE',_0x362aca));}}class ot extends _0x452242{['afterInit'](){const _0x489ef2=this['editor'];if(!_0x489ef2['plugins']['has']('HtmlEmbed'))return;const _0x4ac149=_0x489ef2['plugins']['get']('TrackChangesEditing'),_0xf90d1e=_0x489ef2['locale'];_0x4ac149['descriptionFactory']['registerElementLabel']('rawHtml',_0x29b74f=>o(_0xf90d1e,'ELEMENT_HTML_EMBED',_0x29b74f)),_0x4ac149['enableDefaultAttributesIntegration']('htmlEmbed'),_0x4ac149['descriptionFactory']['registerDescriptionCallback'](_0x2b1d75=>{if('attribute'!=_0x2b1d75['type'])return;const {data:_0x30ab5c}=_0x2b1d75;if(_0x30ab5c&&'value'==_0x30ab5c['key']&&_0x2b1d75['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x2e6f26=o(_0xf90d1e,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0xf90d1e,'*Change\x20%0\x20content*',_0x2e6f26)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x25b77c=this['editor'],_0x51ed29=_0x25b77c['locale'];_0x25b77c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5dbb1a=>{if('formatBlock'!=_0x5dbb1a['type'])return;const {data:_0x2ebdb8}=_0x5dbb1a;if(_0x2ebdb8&&'htmlEmbed'==_0x2ebdb8['commandName']){const _0x422427=o(_0x51ed29,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x51ed29,'*Change\x20%0\x20content*',_0x422427)};}});}}class rt extends _0x452242{['afterInit'](){const _0x14f186=this['editor'];if(!_0x14f186['plugins']['has']('ImageEditing'))return;const _0xb90620=_0x14f186['plugins']['get']('TrackChangesEditing'),_0x3cc1a9=_0x14f186['plugins']['get']('ImageUtils'),_0x3d989e=_0x14f186['locale'];_0xb90620['enableCommand']('insertImage'),_0xb90620['descriptionFactory']['registerElementLabel']('imageBlock',_0x44a3d3=>o(_0x3d989e,'ELEMENT_IMAGE',_0x44a3d3)),_0xb90620['descriptionFactory']['registerElementLabel']('imageInline',_0x4331c3=>o(_0x3d989e,'ELEMENT_INLINE_IMAGE',_0x4331c3)),_0xb90620['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x3d989e,'ELEMENT_CAPTION')),_0x14f186['plugins']['has']('ImageUploadEditing')&&_0xb90620['enableCommand']('uploadImage'),_0x14f186['plugins']['has']('ImageBlockEditing')&&_0x14f186['plugins']['has']('ImageInlineEditing')&&(_0xb90620['enableCommand']('imageTypeInline',(_0x2af636,_0x3500b6)=>{const _0x52d088=_0x3cc1a9['getClosestSelectedImageElement'](_0x14f186['model']['document']['selection']);_0x14f186['model']['change'](()=>{_0xb90620['markBlockFormat'](_0x52d088,{'commandName':'imageTypeInline','commandParams':[_0x3500b6]},[],'convertBlockImageToInline');});}),_0xb90620['enableCommand']('imageTypeBlock',(_0x4b959f,_0x48ba0a)=>{_0x14f186['model']['change'](_0x268442=>{let _0x249c3a=_0x3cc1a9['getClosestSelectedImageElement'](_0x14f186['model']['document']['selection']),_0x56e420=_0x268442['createRangeOn'](_0x249c3a);const _0x177ec4=_0x56d8cf['fromPosition'](_0x56e420['start'],'toPrevious'),_0x5cad2b=_0x56d8cf['fromPosition'](_0x56e420['end'],'toNext');_0xb90620['forceDefaultExecution'](()=>_0x4b959f(_0x48ba0a)),_0x249c3a=_0x3cc1a9['getClosestSelectedImageElement'](_0x14f186['model']['document']['selection']),_0x56e420=_0x268442['createRangeOn'](_0x249c3a);const _0x2067a8=_0x268442['createRange'](_0x177ec4,_0x5cad2b);_0x177ec4['detach'](),_0x5cad2b['detach'](),_0xb90620['markBlockFormat'](_0x249c3a,{'commandName':'imageTypeInline','commandParams':[_0x48ba0a]},[],'convertInlineImageToBlock'),_0x2067a8['start']['isBefore'](_0x56e420['start'])&&_0xb90620['markInsertion'](_0x268442['createRange'](_0x2067a8['start'],_0x56e420['start']),'convertInlineImageToBlock'),_0x56e420['end']['isBefore'](_0x2067a8['end'])&&_0xb90620['markInsertion'](_0x268442['createRange'](_0x56e420['end'],_0x2067a8['end']),'convertInlineImageToBlock');});}),_0xb90620['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0xb90620['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0xb90620['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0xb90620['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0xb90620['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0xb90620['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3ae349])=>{const _0x178831=_0xb90620['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x4a2563=_0x3ae349['start'],_0x319c5e=_0x3ae349['end'];const _0x1a553a=_0x14f186['model']['schema']['getNearestSelectionRange'](_0x4a2563,'backward'),_0x400f6f=_0x14f186['model']['schema']['getNearestSelectionRange'](_0x319c5e,'forward');_0x1a553a['isCollapsed']&&(_0x4a2563=_0x1a553a['start']),_0x400f6f['isCollapsed']&&(_0x319c5e=_0x400f6f['end']),_0x178831([_0x14f186['model']['createRange'](_0x4a2563,_0x319c5e)]);}),_0xb90620['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x1ea84a),_0xb90620['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x1ea84a)),_0x14f186['plugins']['has']('ImageCaptionEditing')&&(_0xb90620['enableCommand']('toggleImageCaption',(_0x577377,_0x431c2b)=>{const _0x54eedd=_0x14f186['plugins']['get']('ImageCaptionUtils');let _0x4b5081=_0x3cc1a9['getClosestSelectedImageElement'](_0x14f186['model']['document']['selection']),_0x18cff7=_0x54eedd['getCaptionFromImageModelElement'](_0x4b5081);_0x14f186['model']['change'](()=>{if(_0x18cff7)return void _0xb90620['markDeletion'](_0x14f186['model']['createRangeOn'](_0x18cff7));const _0x430f44=_0x3cc1a9['isBlockImage'](_0x4b5081);_0x577377(_0x431c2b),_0x4b5081=_0x3cc1a9['getClosestSelectedImageElement'](_0x14f186['model']['document']['selection']),_0x18cff7=_0x54eedd['getCaptionFromImageModelElement'](_0x4b5081),_0xb90620['markInsertion'](_0x14f186['model']['createRangeOn'](_0x18cff7),_0x430f44?null:'imageCaption');});}),_0xb90620['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x1ea84a));const _0x59dd36=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5cf2fa(_0x48db34,_0xa5a235){const _0x43a3a1=_0x59dd36['findIndex'](({type:_0x58c03e,subType:_0x5d6718})=>_0x48db34['type']==_0x58c03e&&_0x48db34['subType']==_0x5d6718),_0x848938=_0x59dd36['findIndex'](({type:_0x2aa41a,subType:_0x7afbde})=>_0xa5a235['type']==_0x2aa41a&&_0xa5a235['subType']==_0x7afbde);if(_0x43a3a1<0x0||_0x848938<0x0)return!0x1;const _0x3a4a1b=_0x48db34['getFirstRange'](),_0x599d69=_0xa5a235['getFirstRange']();if((0x0==_0x43a3a1||0x1==_0x43a3a1)&&0x2==_0x848938&&_0x3a4a1b['isIntersecting'](_0x599d69))return!0x0;if(0x2==_0x43a3a1&&0x3==_0x848938){const _0x24f6de=_0xb90620['_findSuggestions'](_0x3a4a1b,'insertion')['filter'](({suggestion:_0x112a45,meta:_0x4cc1c1})=>_0x4cc1c1['isOwn']&&'convertInlineImageToBlock'==_0x112a45['subType']);if(_0x24f6de['length']>0x1&&_0x599d69['end']['isEqual'](_0x3a4a1b['start']))return!0x0;if(0x1==_0x24f6de['length']&&(_0x3a4a1b['start']['isEqual'](_0x599d69['end'])||_0x3a4a1b['end']['isEqual'](_0x599d69['start'])))return!0x0;}if(0x3==_0x43a3a1&&0x3==_0x848938&&_0x3a4a1b['start']['isBefore'](_0x599d69['start'])){const _0x58b39f=_0x3a4a1b['end']['nodeAfter'],_0xf705a2=_0x599d69['start']['nodeBefore'];return _0x3cc1a9['isBlockImage'](_0x58b39f)&&_0x58b39f===_0xf705a2;}return!0x1;}function _0x1ea84a(_0x23dd66,_0x2d191a){return _0x5cf2fa(_0x23dd66,_0x2d191a)?[_0x23dd66,_0x2d191a]:_0x5cf2fa(_0x2d191a,_0x23dd66)?[_0x2d191a,_0x23dd66]:null;}_0x14f186['plugins']['has']('ImageResize')&&(_0xb90620['enableDefaultAttributesIntegration']('resizeImage'),_0xb90620['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x3d989e,'FORMAT_IMAGE_SIZE'))),_0x14f186['plugins']['has']('ImageTextAlternativeEditing')&&_0xb90620['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x14f186['plugins']['has']('PictureEditing')&&_0xb90620['descriptionFactory']['registerDescriptionCallback'](_0x4cd595=>{if('attribute'!=_0x4cd595['type'])return;const {data:_0x2c8ed5}=_0x4cd595;return _0x2c8ed5&&'sources'==_0x2c8ed5['key']?{'type':'format','content':''}:void 0x0;}),_0x14f186['plugins']['has']('ImageSizeAttributes')&&_0xb90620['descriptionFactory']['registerDescriptionCallback'](_0x4dd628=>{if('attribute'!=_0x4dd628['type'])return;const {data:_0x12bacf}=_0x4dd628;return!_0x12bacf||'width'!=_0x12bacf['key']&&'height'!=_0x12bacf['key']?void 0x0:{'type':'format','content':''};}),_0xb90620['descriptionFactory']['registerDescriptionCallback'](_0x480503=>{if(!!_0x59dd36['find'](({type:_0xadf84d,subType:_0x4e4745})=>_0x480503['type']==_0xadf84d&&_0x480503['subType']==_0x4e4745))return _0x480503['previous']?{}:void 0x0;}),_0xb90620['descriptionFactory']['registerDescriptionCallback'](_0x3932e7=>{if('insertion'==_0x3932e7['type']||'deletion'==_0x3932e7['type']){const _0x528a78=_0x3932e7['getContainedElement']();if(_0x528a78&&_0x528a78['is']('element','caption'))return{'type':'insertion'==_0x3932e7['type']?'addObject':'removeObject','element':_0x528a78,'quantity':0x1};}}),_0xb90620['descriptionFactory']['registerDescriptionCallback'](_0x523fd9=>'formatBlock'==_0x523fd9['type']&&'convertInlineImageToBlock'==_0x523fd9['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x523fd9['type']&&'convertBlockImageToInline'==_0x523fd9['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0xb90620['descriptionFactory']['registerDescriptionCallback'](_0xdd8a9f=>{if('attribute'!=_0xdd8a9f['type'])return;const {data:_0x2743f5}=_0xdd8a9f;if(!_0x2743f5||'alt'!=_0x2743f5['key'])return;const _0x2c8438=_0x2743f5['newValue'];return _0x2c8438?{'type':'format','content':o(_0x3d989e,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2c8438+'\x22')}:{'type':'format','content':o(_0x3d989e,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x532e83=this['editor'],_0x55f09e=_0x532e83['locale'];_0x532e83['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x374f68=>{if('formatBlock'!=_0x374f68['type']&&'formatInline'!=_0x374f68['type'])return;const {data:_0x1662dc}=_0x374f68;if(_0x1662dc){if('imageTextAlternative'==_0x1662dc['commandName']){const _0x44919c=_0x1662dc['commandParams'][0x0]['newValue'];return _0x44919c?{'type':'format','content':o(_0x55f09e,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x44919c+'\x22')}:{'type':'format','content':o(_0x55f09e,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x1662dc['commandName']){const _0x3a91a6=_0x1662dc['commandParams'][0x0]['width'];return _0x3a91a6?{'type':'format','content':o(_0x55f09e,'*Set\x20image\x20width:*\x20%0',_0x3a91a6)}:{'type':'format','content':o(_0x55f09e,'*Reset\x20image\x20width*')};}}});}}class at extends _0x452242{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x508656=this['editor']['locale'],_0x3610b3=this['editor']['plugins']['get']('TrackChangesEditing');_0x3610b3['enableDefaultAttributesIntegration']('replaceImageSource'),_0x3610b3['descriptionFactory']['registerDescriptionCallback'](_0x12eff9=>{if('attribute'!=_0x12eff9['type'])return;const {data:_0x42e73}=_0x12eff9;return _0x42e73&&'src'==_0x42e73['key']?_0x42e73['newValue']&&_0x42e73['oldValue']?{'type':'format','content':o(_0x508656,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1fbd68=this['editor']['plugins']['get']('TrackChangesEditing');_0x1fbd68['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x1fbd68['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1fbd68['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x1fbd68['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1c14a3=this['editor'],_0x4bfa2d=_0x1c14a3['locale'];_0x1c14a3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x410c7b=>{if('formatBlock'!=_0x410c7b['type']&&'formatInline'!=_0x410c7b['type'])return;const {data:_0x266e84}=_0x410c7b;if(!_0x266e84||'replaceImageSource'!=_0x266e84['commandName'])return;return{'type':'format','content':o(_0x4bfa2d,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x452242{['afterInit'](){const _0x1c8816=this['editor'];if(!_0x1c8816['plugins']['has']('ImageStyleEditing'))return;const _0x3d1fc4=_0x1c8816['plugins']['get']('TrackChangesEditing'),_0x9fa65e=_0x1c8816['plugins']['get']('ImageUtils'),_0x14ae2d={};_0x3d1fc4['enableCommand']('imageStyle',(_0x1e865e,_0x2e4f03)=>{const _0x320bc3=_0x1c8816['plugins']['get']('Users')['me'],_0x3f3874=_0x1c8816['commands']['get']('imageStyle');let _0x2e0534=_0x9fa65e['getClosestSelectedImageElement'](_0x1c8816['model']['document']['selection']),_0x5a9787=_0x1c8816['model']['createRangeOn'](_0x2e0534),_0xfc664f=_0x3f3874['value'];if(_0xfc664f==_0x2e4f03['value'])return;const _0x3d502d={'commandName':'imageStyle','commandParams':[_0x2e4f03],'formatGroupId':_0x3da106()};_0x1c8816['model']['change'](()=>{if(_0x3d1fc4['getSuggestions']()['filter'](_0x2cd617=>_0x2cd617['isInContent']&&_0x320bc3==_0x2cd617['author']&&('formatBlock'==_0x2cd617['type']||'formatInline'==_0x2cd617['type'])&&('imageStylePreApply'==_0x2cd617['subType']||'imageStylePostApply'==_0x2cd617['subType'])&&_0x2cd617['getFirstRange']()['isEqual'](_0x5a9787))['forEach'](_0x270463=>_0x3d1fc4['discardSuggestion'](_0x270463['head'])),_0x2e0534=_0x9fa65e['getClosestSelectedImageElement'](_0x1c8816['model']['document']['selection']),_0x5a9787=_0x1c8816['model']['createRangeOn'](_0x2e0534),_0x3f3874['refresh'](),_0x1c8816['commands']['get']('imageTypeInline')['refresh'](),_0x1c8816['commands']['get']('imageTypeBlock')['refresh'](),_0xfc664f=_0x3f3874['value'],_0xfc664f!=_0x2e4f03['value'])return _0x9fa65e['isInlineImage'](_0x2e0534)&&_0x3f3874['shouldConvertImageType'](_0x2e4f03['value'],_0x2e0534)?(_0x1e865e({..._0x2e4f03,'setImageSizes':!0x1}),_0x2e0534=_0x9fa65e['getClosestSelectedImageElement'](_0x1c8816['model']['document']['selection']),void _0x3d1fc4['markBlockFormat'](_0x2e0534,{..._0x3d502d,'commandReversedParams':[{'value':_0xfc664f||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x9fa65e['isBlockImage'](_0x2e0534)?_0x3d1fc4['markBlockFormat'](_0x2e0534,_0x3d502d,[],'imageStylePostApply'):_0x3d1fc4['markInlineFormat'](_0x5a9787,_0x3d502d,'imageStylePostApply'));});});for(const _0x500a5b of _0x1c8816['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x14ae2d[_0x500a5b['name']]=_0x500a5b['title']['toLowerCase']();_0x3d1fc4['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x3d1fc4['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x3d1fc4['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x3d1fc4['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x19f662])=>{_0x9fa65e['setImageNaturalSizeAttributes'](_0x19f662['getContainedElement']());}),_0x3d1fc4['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x3d4bb5,_0x1723ec)=>{_0x3d1fc4['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x3d4bb5,{'commandName':_0x1723ec['commandName'],'commandParams':_0x1723ec['commandReversedParams']});}),_0x3d1fc4['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x109851,_0x1867b9){if(_0x39bd3b(_0x109851,_0x1867b9))return[_0x109851,_0x1867b9];if(_0x39bd3b(_0x1867b9,_0x109851))return[_0x1867b9,_0x109851];return null;});const _0x20a82e=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x39bd3b(_0x1df512,_0x970516){const _0x1cdea2=_0x20a82e['findIndex'](({type:_0xc161e8,subType:_0x390bc1})=>_0x1df512['type']==_0xc161e8&&_0x1df512['subType']==_0x390bc1),_0x42c18b=_0x20a82e['findIndex'](({type:_0x386fa5,subType:_0x3046c3})=>_0x970516['type']==_0x386fa5&&_0x970516['subType']==_0x3046c3);if(_0x1cdea2<0x0||_0x42c18b<0x0)return!0x1;const _0x48841e=_0x1df512['getFirstRange'](),_0x50835d=_0x970516['getFirstRange']();if((0x0==_0x1cdea2||0x1==_0x1cdea2)&&0x2==_0x42c18b&&_0x48841e['isIntersecting'](_0x50835d))return!0x0;if(0x2==_0x1cdea2&&0x3==_0x42c18b){const _0x36ee23=_0x3d1fc4['_findSuggestions'](_0x48841e,'insertion')['filter'](({suggestion:_0x151f21,meta:_0x54fcc2})=>_0x54fcc2['isOwn']&&'convertInlineImageToBlock'==_0x151f21['subType']);if(_0x36ee23['length']>0x1&&_0x50835d['end']['isEqual'](_0x48841e['start']))return!0x0;if(0x1==_0x36ee23['length']&&(_0x48841e['start']['isEqual'](_0x50835d['end'])||_0x48841e['end']['isEqual'](_0x50835d['start'])))return!0x0;}if(0x3==_0x1cdea2&&0x3==_0x42c18b&&_0x48841e['start']['isBefore'](_0x50835d['start'])){const _0x3244b4=_0x48841e['end']['nodeAfter'],_0x2ccc1e=_0x50835d['start']['nodeBefore'];return _0x9fa65e['isBlockImage'](_0x3244b4)&&_0x3244b4===_0x2ccc1e;}return!0x1;}_0x1c8816['model']['document']['registerPostFixer'](()=>{let _0x435f22=!0x1;const _0x4dd898=Array['from'](_0x1c8816['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x171c60,data:_0x35a1ce}of _0x4dd898){const {group:_0x3fb973,type:_0x2aa9d1,subType:_0x18f1ec,id:_0xee8d6}=_0x3d1fc4['_splitMarkerName'](_0x171c60);if('suggestion'==_0x3fb973&&_0x3d1fc4['hasSuggestion'](_0xee8d6)){if('formatBlock'==_0x2aa9d1&&('imageStylePreApply'==_0x18f1ec||'imageStylePostApply'==_0x18f1ec)){const _0x39431c=_0x3d1fc4['getSuggestion'](_0xee8d6);if(_0x35a1ce['newRange']){const _0xedc2b7=_0x39431c['getFirstRange']()['getContainedElement']();if(_0x9fa65e['isBlockImage'](_0xedc2b7))continue;_0x3d1fc4['discardSuggestion'](_0x39431c),_0x435f22=!0x0;}}if('insertion'==_0x2aa9d1&&'imageCaption'==_0x18f1ec&&!_0x35a1ce['newRange']){const _0x424ba0=_0x3d1fc4['getSuggestion'](_0xee8d6);_0x424ba0['next']&&_0x424ba0['next']['isInContent']&&(_0x3d1fc4['discardSuggestion'](_0x424ba0['next']),_0x435f22=!0x0);}}}return _0x435f22;}),this['_registerLegacyDescription'](_0x14ae2d);}['_registerLegacyDescription'](_0x5a7495){const _0x40bfa9=this['editor'],_0x3ffba3=_0x40bfa9['locale'];_0x40bfa9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x44b46a=>{if('formatBlock'!=_0x44b46a['type']&&'formatInline'!=_0x44b46a['type'])return;const {data:_0x11ff98}=_0x44b46a;if(!_0x11ff98||'imageStyle'!=_0x11ff98['commandName'])return;const _0x2d863c=_0x11ff98['commandParams'][0x0]['value'];return _0x44240e('side'===_0x2d863c?o(_0x3ffba3,'FORMAT_SIDE_IMAGE'):_0x5a7495[_0x2d863c]||_0x2d863c);function _0x44240e(_0x18559d){return{'type':'format','content':o(_0x3ffba3,'*Format:*\x20%0',_0x18559d)};}});}}class ut extends _0x452242{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x440d38){super(_0x440d38),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x1169fa=this['editor'],_0xf954d1=_0x1169fa['commands']['get']('importWord'),_0x2814b4=_0x1169fa['commands']['get']('trackChanges');_0xf954d1&&(_0xf954d1['on']('execute',(_0x50ff8d,[,_0x5b0849])=>{this['_trackChangesValueDuringImport']=_0x2814b4['value'],_0x5b0849['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0xf954d1,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0xf954d1,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x2814b4['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x1169fa['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x33dc4c,_0x271dee){const {suggestions:_0x1e5581}=_0x271dee,_0x344929=this['editor']['commands']['get']('trackChanges'),_0x2664d1=_0x344929['value'];this['_trackChangesValueDuringImport']!==_0x2664d1&&(_0x344929['execute'](),this['_trackChangesExecuted']=!0x0),_0x1e5581&&_0x1e5581['forEach'](({id:_0x48aa59,type:_0x25d641,author:_0x113dff,created_at:_0x5c67bc})=>{const _0x1f0566={'id':_0x48aa59,'type':_0x25d641,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x113dff,'createdAt':_0x5c67bc?new Date(_0x5c67bc):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1f0566);});}}class ft extends _0x452242{['afterInit'](){const _0x53cccd=this['editor'],_0x503e0f=_0x53cccd['plugins']['get']('TrackChangesEditing');if(_0x53cccd['plugins']['has']('IndentEditing')&&(_0x503e0f['enableCommand']('indent'),_0x503e0f['enableCommand']('outdent')),_0x53cccd['plugins']['has']('IndentBlock')){for(const _0x17556c of['indentBlock','outdentBlock'])_0x503e0f['enableDefaultAttributesIntegration'](_0x17556c);}const _0x4493d2=_0x53cccd['locale'];_0x503e0f['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x4493d2,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2455b1=this['editor'],_0x5c18c6=_0x2455b1['locale'],_0x4a20b7=_0x2455b1['plugins']['get']('TrackChangesEditing');_0x4a20b7['descriptionFactory']['registerDescriptionCallback'](_0x488165=>{if('formatBlock'!=_0x488165['type'])return;const {data:_0xe044d}=_0x488165;if(!_0xe044d)return;if('indentBlock'!=_0xe044d['commandName']&&'outdentBlock'!=_0xe044d['commandName'])return;const _0x4741c9=_0x488165['getItems']()[0x0],_0x2737d7=_0x4a20b7['descriptionFactory']['getItemLabel'](_0x4741c9);return'indentBlock'==_0xe044d['commandName']?{'type':'format','content':o(_0x5c18c6,'*Indent:*\x20%0',_0x2737d7)}:'outdentBlock'==_0xe044d['commandName']?{'type':'format','content':o(_0x5c18c6,'*Outdent:*\x20%0',_0x2737d7)}:void 0x0;});}}class ht extends _0x452242{static get['requires'](){return[_0x19a581];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x452242{['afterInit'](){const _0x3f4af1=this['editor'];if(!_0x3f4af1['plugins']['has']('LinkEditing'))return;const _0x9517b5=_0x3f4af1['plugins']['get']('TrackChangesEditing'),_0x20e872=_0x3f4af1['commands']['get']('link');_0x9517b5['enableDefaultAttributesIntegration']('link'),_0x9517b5['enableDefaultAttributesIntegration']('unlink');for(const _0x2042bd of _0x20e872['manualDecorators'])_0x9517b5['descriptionFactory']['registerAttributeLabel'](_0x2042bd['id'],'link\x20('+_0x2042bd['label']['toLowerCase']()+')');_0x9517b5['descriptionFactory']['registerDescriptionCallback'](_0x39564a=>{if('attribute'!=_0x39564a['type'])return;const {data:_0x23206e}=_0x39564a;if(!_0x23206e||'linkHref'!=_0x23206e['key'])return;const _0xc4fd85=_0x23206e['newValue'],_0x13a294=_0x3f4af1['locale'];return{'type':'format','content':null==_0xc4fd85?o(_0x13a294,'*Remove\x20link*'):o(_0x13a294,'*Set\x20link:*\x20%0','\x22'+_0xc4fd85+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x341b09=this['editor'],_0xcf73a3=_0x341b09['locale'];_0x341b09['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x106b7d=>{if('formatInline'!=_0x106b7d['type'])return;const {data:_0x5712ef}=_0x106b7d;if(_0x5712ef){if('link'==_0x5712ef['commandName']){const _0x5ade67=_0x5712ef['commandParams'][0x0];return{'type':'format','content':o(_0xcf73a3,'*Set\x20link:*\x20%0','\x22'+_0x5ade67+'\x22')};}return'unlink'==_0x5712ef['commandName']?{'type':'format','content':o(_0xcf73a3,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x452242{['afterInit'](){const _0x1ac20c=this['editor'],_0x413e1c=_0x1ac20c['locale'];if(!_0x1ac20c['plugins']['has']('LegacyListEditing'))return;const _0x36e6e4=_0x1ac20c['plugins']['get']('TrackChangesEditing'),_0x592f62=_0x1ac20c['plugins']['has']('LegacyTodoListEditing');function _0x504742(_0x58c5d6){return()=>{const _0x19c648=_0x1ac20c['model']['document']['selection'],_0x12f161=_0x1ac20c['commands']['get'](_0x58c5d6);if(_0x12f161['value'])return void _0x1ac20c['execute']('paragraph',{});const _0x28d887=_0x58c5d6['slice'](0x0,-0x4),_0x31467f=function(_0x3f7ce1,_0x29cf20,_0xc2bd22){let _0x55d688=Array['from'](_0x3f7ce1)['filter'](_0x3dc157=>function(_0x51864b,_0x55bf5f){return _0x55bf5f['checkChild'](_0x51864b['parent'],'listItem')&&!_0x55bf5f['isObject'](_0x51864b);}(_0x3dc157,_0xc2bd22));_0x55d688=_0x55d688['filter'](_0x22e002=>!_0x22e002['is']('element','listItem')||_0x22e002['getAttribute']('listType')!=_0x29cf20);const _0x30c202=new Set();for(const _0x58827f of _0x55d688)_0x58827f['is']('element','listItem')?_0x30c202['add'](Le(_0x58827f)):_0x30c202['add'](_0x58827f);return Array['from'](_0x30c202);}(_0x19c648['getSelectedBlocks'](),_0x28d887,_0x1ac20c['model']['schema']);_0x1ac20c['model']['change'](()=>{for(const _0x1a1edd of _0x31467f)_0x36e6e4['markBlockFormat'](_0x1a1edd,{'commandName':_0x58c5d6,'commandParams':[{'forceValue':!_0x12f161['value']}],'formatGroupId':'blockName'},Ee(_0x1a1edd));});};}function _0x40d05b(_0x2a494e){return()=>{const _0x30fcce=function(_0xd05ca7){let _0x161728=Array['from'](_0xd05ca7);const _0x30c970=_0x161728['findIndex'](_0x43ae86=>'listItem'!=_0x43ae86['name']);return _0x30c970>-0x1&&(_0x161728=_0x161728['slice'](0x0,_0x30c970)),_0x161728;}(_0x1ac20c['model']['document']['selection']['getSelectedBlocks']()),_0x9ccbf5=_0x1ac20c['model']['createRange'](_0x1ac20c['model']['createPositionAt'](_0x30fcce[0x0],'before'),_0x1ac20c['model']['createPositionAt'](_0x30fcce[_0x30fcce['length']-0x1],'end'));_0x1ac20c['model']['change'](()=>{_0x36e6e4['markBlockFormat'](_0x9ccbf5,{'commandName':_0x2a494e,'commandParams':[],'formatGroupId':'listIndent'},function(_0x1718f4){const _0x5a1c9c=new Set();for(const _0x557ec1 of _0x1718f4){let _0x4311d8=_0x557ec1['nextSibling'];for(;_0x4311d8&&_0x4311d8['getAttribute']('listIndent')>_0x557ec1['getAttribute']('listIndent');)_0x5a1c9c['add'](_0x4311d8),_0x4311d8=_0x4311d8['nextSibling'];}return Array['from'](_0x5a1c9c);}(_0x30fcce));});};}_0x36e6e4['enableCommand']('numberedList',_0x504742('numberedList')),_0x36e6e4['enableCommand']('bulletedList',_0x504742('bulletedList')),_0x592f62&&_0x36e6e4['enableCommand']('todoList',_0x504742('todoList')),_0x36e6e4['enableCommand']('indentList',_0x40d05b('indentList')),_0x36e6e4['enableCommand']('outdentList',_0x40d05b('outdentList')),_0x592f62&&_0x36e6e4['enableCommand']('checkTodoList',()=>{const _0x5d8908=_0x1ac20c['commands']['get']('checkTodoList'),_0x4b99ba=Array['from'](_0x5d8908['_selectedElements']);_0x4b99ba['filter'](_0x43d0fc=>_0x43d0fc['getAttribute']('todoListChecked')!=_0x5d8908['value']),_0x1ac20c['model']['change'](()=>{for(const _0x1cfd6d of _0x4b99ba)_0x36e6e4['markBlockFormat'](_0x1cfd6d,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5d8908['value']}]});});}),_0x36e6e4['descriptionFactory']['registerElementLabel']('listItem',_0x5d190b=>o(_0x413e1c,'ELEMENT_LIST_ITEM',_0x5d190b)),_0x36e6e4['descriptionFactory']['registerDescriptionCallback'](_0x395b86=>{if('formatBlock'!=_0x395b86['type']&&'formatInline'!=_0x395b86['type'])return;const {data:_0x12c5f7}=_0x395b86;if(_0x12c5f7){if('numberedList'==_0x12c5f7['commandName']||'bulletedList'==_0x12c5f7['commandName']||'todoList'==_0x12c5f7['commandName'])switch(_0x12c5f7['commandName']['replace']('List','')){case'bulleted':return _0x5369ec(o(_0x413e1c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5369ec(o(_0x413e1c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5369ec(o(_0x413e1c,'ELEMENT_TODO_LIST'));}if('indentList'==_0x12c5f7['commandName'])return{'type':'format','content':o(_0x413e1c,'*Indent:*\x20%0',o(_0x413e1c,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x12c5f7['commandName'])return{'type':'format','content':o(_0x413e1c,'*Outdent:*\x20%0',o(_0x413e1c,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x12c5f7['commandName'])return _0x12c5f7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x413e1c,'*Check\x20item*')}:{'type':'format','content':o(_0x413e1c,'*Uncheck\x20item*')};}function _0x5369ec(_0x1ceab4){return{'type':'format','content':o(_0x413e1c,'*Change\x20to:*\x20%0',_0x1ceab4)};}});}}function Le(_0xad468f){const _0x3dc1c8=_0xad468f['getAttribute']('listIndent');if(0x0==_0x3dc1c8)return _0xad468f;let _0x54cc02=_0xad468f;for(;_0xad468f['previousSibling']&&_0xad468f['previousSibling']['is']('element','listItem');){const _0x19431b=_0xad468f['previousSibling']['getAttribute']('listIndent');if(_0x19431b==_0x3dc1c8)_0x54cc02=_0xad468f['previousSibling'];else{if(_0x19431b<_0x3dc1c8)break;}_0xad468f=_0xad468f['previousSibling'];}return _0x54cc02;}function Ee(_0x3caf64){const _0x28856f=[];if(_0x3caf64['is']('element','listItem')&&_0x3caf64['getAttribute']('listIndent')>0x0){let _0x5d49bf=_0x3caf64['nextSibling'];for(;_0x5d49bf&&'listItem'==_0x5d49bf['name']&&_0x5d49bf['getAttribute']('listIndent')==_0x3caf64['getAttribute']('listIndent');)_0x28856f['push'](_0x5d49bf),_0x5d49bf=_0x5d49bf['nextSibling'];}return _0x28856f;}class mt extends _0x452242{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x5be01a=this['editor']['config']['get']('list.properties'),_0x1bc787=this['editor']['plugins']['get']('TrackChangesEditing');_0x5be01a['styles']&&_0x1bc787['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x5be01a['reversed']&&_0x1bc787['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x5be01a['startIndex']&&_0x1bc787['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1bc787['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x33dbc4,_0x5d5b4d={}){const _0x45eea0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5dda87=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x45eea0['markMultiRangeBlockFormat'](_0x5dda87,{'commandName':'listStyle','commandParams':[{'type':_0x5d5b4d['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x23f6bb,_0x1fe098={}){const _0x8bf6b1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x29a35c=this['_getSuggestionBlocks'](_0x18d9ba=>_0x18d9ba['is']('element','listItem')&&'numbered'===_0x18d9ba['getAttribute']('listType'));if(_0x29a35c['length']<0x1)return;const _0x1f221b=_0x29a35c['map'](_0x4e0e21=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4e0e21,'before'),this['editor']['model']['createPositionAt'](_0x4e0e21,0x0)));this['editor']['model']['change'](()=>{_0x8bf6b1['markMultiRangeBlockFormat'](_0x1f221b,{'commandName':'listReversed','commandParams':[{'reversed':_0x1fe098['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x21d54e,_0x32a887={}){const _0x7958f8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2d4e4b=this['_getSuggestionBlocks'](_0x1e7380=>_0x1e7380['is']('element','listItem')&&'numbered'===_0x1e7380['getAttribute']('listType'));if(_0x2d4e4b['length']<0x1)return;const _0x131190=_0x2d4e4b['map'](_0x2910ba=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2910ba,'before'),this['editor']['model']['createPositionAt'](_0x2910ba,0x0)));this['editor']['model']['change'](()=>{_0x7958f8['markMultiRangeBlockFormat'](_0x131190,{'commandName':'listStart','commandParams':[{'startIndex':_0x32a887['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x2bab8a){if('formatBlock'!=_0x2bab8a['type']&&'formatInline'!=_0x2bab8a['type'])return;const _0x29534b=this['editor']['locale'],{data:_0x2de2bd}=_0x2bab8a;if(!_0x2de2bd)return;let _0x3a3958,_0x5d3470;switch(_0x2de2bd['commandName']){case'listStyle':_0x3a3958='*Change\x20to:*\x20%0',_0x5d3470={'type':'format','content':o(_0x29534b,_0x3a3958,o(_0x29534b,this['_getTranslationKeyForListStyle'](_0x2de2bd['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3a3958=_0x2de2bd['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5d3470={'type':'format','content':o(_0x29534b,_0x3a3958)};break;case'listStart':_0x3a3958='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5d3470={'type':'format','content':o(_0x29534b,_0x3a3958,_0x2de2bd['commandParams'][0x0]['startIndex'])};}return _0x5d3470;}['_getSuggestionBlocksForListStyle'](){const _0x197ec6=this['editor']['plugins']['get']('LegacyListUtils');let _0x315bfe=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x315bfe[0x0]?.['is']('element','listItem')&&_0x315bfe['unshift'](..._0x197ec6['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x315bfe[_0x315bfe['length']-0x1]?.['is']('element','listItem')&&_0x315bfe['push'](..._0x197ec6['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x315bfe=[...new Set(_0x315bfe)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x315bfe=_0x315bfe['filter'](_0x17283c=>_0x17283c['is']('element','listItem'))),_0x315bfe;}['_getSuggestionBlocks'](_0x408e85){const _0x78214=this['editor']['plugins']['get']('LegacyListUtils');let _0x191157=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x408e85)['map'](_0x3b2308=>{const _0x29161a=this['editor']['model']['createPositionAt'](_0x3b2308,0x0);return[..._0x78214['getSiblingNodes'](_0x29161a,'backward'),..._0x78214['getSiblingNodes'](_0x29161a,'forward')];})['flat']();return _0x191157=[...new Set(_0x191157)],_0x191157;}['_getTranslationKeyForListStyle'](_0x5e7f04){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x5e7f04)||'default')['toUpperCase']()+'_LIST_'+_0x5e7f04['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x452242{['afterInit'](){const _0x1ff44e=this['editor'];if(!_0x1ff44e['plugins']['has']('MediaEmbedEditing'))return;const _0x2ed411=_0x1ff44e['plugins']['get']('TrackChangesEditing'),_0x3655bf=_0x1ff44e['locale'];_0x2ed411['enableCommand']('mediaEmbed'),_0x2ed411['descriptionFactory']['registerElementLabel']('media',_0x457e55=>o(_0x3655bf,'ELEMENT_MEDIA',_0x457e55));}}class pt extends _0x452242{['afterInit'](){const _0x133541=this['editor'];_0x133541['plugins']['has']('MentionEditing')&&_0x133541['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x452242{['afterInit'](){const _0x451f6d=this['editor'];if(!_0x451f6d['plugins']['has']('MergeFieldsEditing'))return;const _0x24ec02=_0x451f6d['plugins']['get']('TrackChangesEditing'),_0x1be03f=_0x451f6d['locale'];_0x24ec02['enableCommand']('insertMergeField'),_0x24ec02['enableCommand']('insertMergeFieldBlock'),_0x24ec02['enableCommand']('insertMergeFieldImage'),_0x24ec02['descriptionFactory']['registerElementLabel']('mergeField',_0x2d9958=>o(_0x1be03f,'ELEMENT_MERGE_FIELD',_0x2d9958)),_0x24ec02['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x307ebc=>o(_0x1be03f,'ELEMENT_MERGE_FIELD',_0x307ebc)),_0x24ec02['descriptionFactory']['registerDescriptionCallback'](_0x1e2322=>{if('insertion'!=_0x1e2322['type']&&'deletion'!=_0x1e2322['type'])return;const _0x1b32d3=_0x1e2322['getContainedElement']();if(null==_0x1b32d3)return;const _0x483805=_0x451f6d['plugins']['get']('MergeFieldsEditing');let _0x541a58;switch(_0x483805['getMergeFieldType'](_0x1b32d3)){case null:return;case'image':{const _0x181c67=_0x483805['unwrapAffixes'](_0x1b32d3['getAttribute']('src'));_0x541a58=_0x483805['getLabel'](_0x181c67)||_0x181c67;break;}default:{const _0x65d228=_0x1b32d3['getAttribute']('id');_0x541a58=_0x483805['getLabel'](_0x65d228)||_0x65d228;break;}}return'insertion'==_0x1e2322['type']?{'type':'insertion','content':o(_0x1be03f,'*Insert:*\x20%0','\x22'+_0x541a58+'\x22\x20'+o(_0x1be03f,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x1be03f,'*Remove:*\x20%0','\x22'+_0x541a58+'\x22\x20'+o(_0x1be03f,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x452242{['afterInit'](){const _0x4d1d5b=this['editor'],_0x5b7381=_0x4d1d5b['plugins']['get']('TrackChangesEditing');_0x4d1d5b['plugins']['has']('MultiLevelList')&&(_0x5b7381['enableDefaultAttributesIntegration']('multiLevelList'),_0x5b7381['descriptionFactory']['registerDescriptionCallback'](_0x27108c=>this['handleDescriptions'](_0x27108c)));}['handleDescriptions'](_0x1d1de1){const _0x582dbe=this['editor']['locale'],{data:_0x3ff595}=_0x1d1de1,_0x2db42f={'type':'format','content':''};if(_0x3ff595&&'listMarkerStyle'==_0x3ff595['key']){if(!_0x3ff595['oldValue'])return{'type':'format','content':o(_0x582dbe,'*Set\x20format:*\x20%0',o(_0x582dbe,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3ff595['newValue']+')'};if(!_0x3ff595['newValue']){let _0xd9c6e6=_0x1d1de1['head'];for(;_0xd9c6e6;){if(_0xd9c6e6['data']&&'listType'==_0xd9c6e6['data']['key']&&_0xd9c6e6['data']['newValue'])return _0x2db42f;_0xd9c6e6=_0xd9c6e6['next'];}return{'type':'format','content':o(_0x582dbe,'*Remove\x20format:*\x20%0',o(_0x582dbe,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3ff595['oldValue']+')'};}}}}class bt extends _0x452242{['afterInit'](){const _0x590177=this['editor'];if(!_0x590177['plugins']['has']('PageBreakEditing'))return;_0x590177['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x48aec0=_0x590177['plugins']['get']('TrackChangesEditing'),_0xb25501=_0x590177['locale'];_0x48aec0['descriptionFactory']['registerElementLabel']('pageBreak',_0x28dc4f=>o(_0xb25501,'ELEMENT_PAGE_BREAK',_0x28dc4f));}}class yt extends _0x452242{['afterInit'](){const _0x5d2c31=this['editor'];if(!_0x5d2c31['plugins']['has']('Paragraph'))return;const _0x3eac23=_0x5d2c31['locale'],_0x44bfd2=_0x5d2c31['plugins']['get']('TrackChangesEditing');_0x44bfd2['descriptionFactory']['registerElementLabel']('paragraph',_0x141306=>o(_0x3eac23,'ELEMENT_PARAGRAPH',_0x141306)),_0x44bfd2['enableDefaultAttributesIntegration']('paragraph'),_0x44bfd2['enableCommand']('insertParagraph');const _0x53a4c2=_0x44bfd2['descriptionFactory'];_0x53a4c2['registerDescriptionCallback'](_0xcbcb41=>{if('insertion'!==_0xcbcb41['type'])return;const {start:_0x6da103,end:_0x226d0f}=_0xcbcb41['getFirstRange']();if(!_0x6da103['isTouching'](_0x226d0f)||!_0x6da103['nodeAfter'])return;const _0x57cfba=_0x5d2c31['model']['schema'],_0x536db2=_0x6da103['nodeAfter'];return _0x57cfba['isBlock'](_0x536db2)&&!_0x57cfba['isLimit'](_0x536db2)&&_0x57cfba['checkChild'](_0x536db2,'$text')?{'type':'insertion','content':o(_0x3eac23,'*Insert:*\x20%0',_0x53a4c2['getItemLabel'](_0x536db2,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3cd42e=this['editor'],_0x34059e=_0x3cd42e['locale'];_0x3cd42e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x117bee=>{if('formatBlock'!=_0x117bee['type'])return;const {data:_0x5db587}=_0x117bee;return _0x5db587&&'paragraph'==_0x5db587['commandName']?{'type':'format','content':o(_0x34059e,'*Change\x20to:*\x20%0',o(_0x34059e,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class jt extends _0x452242{['afterInit'](){const _0x229fd1=this['editor'];_0x229fd1['commands']['get']('replaceSource')&&_0x229fd1['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x452242{['afterInit'](){const _0xe96239=this['editor'];if(!_0xe96239['plugins']['has']('RemoveFormatEditing'))return;_0xe96239['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2e68b6=this['editor'];_0x2e68b6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4d57ed=>{if('formatBlock'!=_0x4d57ed['type']&&'formatInline'!=_0x4d57ed['type'])return;const {data:_0x3538ae}=_0x4d57ed;return _0x3538ae&&'removeFormat'==_0x3538ae['commandName']?{'type':'format','content':o(_0x2e68b6['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class It extends _0x452242{['afterInit'](){const _0x1ab66b=this['editor'];if(!_0x1ab66b['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x5a7c8e=_0x1ab66b['plugins']['get']('TrackChangesEditing');_0x5a7c8e['enableCommand']('goToPreviousRestrictedEditingException'),_0x5a7c8e['enableCommand']('goToNextRestrictedEditingException');const _0x528b53=_0x1ab66b['plugins']['get']('RestrictedEditingModeEditing');_0x528b53['enableCommand']('trackChanges'),_0x528b53['enableCommand']('acceptSuggestion'),_0x528b53['enableCommand']('discardSuggestion'),_0x528b53['enableCommand']('acceptAllSuggestions'),_0x528b53['enableCommand']('discardAllSuggestions'),_0x528b53['enableCommand']('acceptSelectedSuggestions'),_0x528b53['enableCommand']('discardSelectedSuggestions');}}class At extends _0x452242{['afterInit'](){const _0x498edf=this['editor'];if(!_0x498edf['plugins']['has']('ShiftEnter'))return;const _0x3f61ce=_0x498edf['plugins']['get']('TrackChangesEditing');_0x3f61ce['enableCommand']('shiftEnter'),_0x3f61ce['descriptionFactory']['registerElementLabel']('softBreak',_0x5977c3=>o(_0x498edf['locale'],'ELEMENT_LINE_BREAK',_0x5977c3));}}function an(_0x4ff309,_0x544917,_0x3354e3){const _0x385242=[];for(const _0x201527 of _0x544917['getItems']())_0x201527['hasAttribute'](_0x4ff309)&&_0x385242['push'](_0x3354e3['createRangeOn'](_0x201527));return _0x385242;}class _t extends _0x452242{['afterInit'](){const _0x5a5be7=this['editor'],_0x5adee7=_0x5a5be7['plugins']['get']('TrackChangesEditing');_0x5a5be7['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x5adee7['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0xf58541=this['editor'],_0x5da2dc=_0xf58541['model'],_0x30a178=_0xf58541['locale'],_0x400829=_0xf58541['plugins']['get']('TrackChangesEditing'),_0x1f315c='restrictedEditingException',_0x11b96d=_0xf58541['commands']['get'](_0x1f315c);_0x400829['enableCommand'](_0x1f315c,(_0x17f35c,_0x24c0b5={})=>{const _0x46e2f6=_0x5da2dc['document']['selection'];if(_0x46e2f6['isCollapsed'])return void _0x17f35c(_0x24c0b5);const _0x36cad2=void 0x0!==_0x24c0b5['forceValue']?_0x24c0b5['forceValue']:!_0x11b96d['value'];_0x5da2dc['change'](()=>{const _0x4b311b=Array['from'](_0x46e2f6['getRanges']());for(const _0x2e2098 of _0x4b311b){const _0x5cc643=_0x36cad2?[_0x2e2098]:an(_0x1f315c,_0x2e2098,_0x5da2dc);for(const _0x5eb9d6 of _0x5cc643)_0x400829['markInlineFormat'](_0x5eb9d6,{'commandName':_0x1f315c,'commandParams':[{'forceValue':_0x36cad2}]});}});}),_0x400829['descriptionFactory']['registerDescriptionCallback'](_0x14e315=>{if('formatBlock'!=_0x14e315['type']&&'formatInline'!=_0x14e315['type'])return;const {data:_0x4b88f1}=_0x14e315;return _0x4b88f1&&_0x4b88f1['commandName']==_0x1f315c?_0x4b88f1['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x30a178,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x30a178,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x31f595=this['editor'],_0x5925c9=_0x31f595['locale'],_0x330cdc=_0x31f595['plugins']['get']('TrackChangesEditing'),_0x21890c='restrictedEditingExceptionBlock',_0x3dccdd=this['editor']['commands']['get'](_0x21890c);_0x330cdc['enableCommand'](_0x21890c,(_0x3ad028,_0xb1ceac={})=>{const _0x40d065=this['editor']['model']['document']['selection'],_0x43a0b7=_0xb1ceac&&void 0x0!==_0xb1ceac['forceValue']?_0xb1ceac['forceValue']:!_0x3dccdd['value'];let _0x5088c7=[];if(_0x43a0b7){const _0x4d8bfd=Array['from'](_0x40d065['getSelectedBlocks']())['filter'](_0x209385=>function(_0xd9259c){return!!_0xd9259c['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x209385)||function(_0x19c167,_0x225d5f){const _0x1f9f3e=_0x225d5f['createContext'](_0x19c167['parent']);if(!_0x225d5f['checkChild'](_0x1f9f3e,'restrictedEditingException'))return!0x1;if(!_0x225d5f['checkChild'](_0x1f9f3e['push']('restrictedEditingException'),_0x19c167))return!0x1;return!0x0;}(_0x209385,this['editor']['model']['schema']));_0x5088c7=to(_0x4d8bfd,_0x31f595['model']);}else{const _0x24d3b3=Array['from'](_0x40d065['getSelectedBlocks']())['map'](_0x5a5b2b=>function(_0x21ed2a){let _0x3bb624=_0x21ed2a;for(;_0x3bb624['parent'];){if('restrictedEditingException'==_0x3bb624['parent']['name'])return _0x3bb624;_0x3bb624=_0x3bb624['parent'];}return null;}(_0x5a5b2b))['filter'](_0x58919e=>!!_0x58919e);_0x5088c7=to(_0x24d3b3,_0x31f595['model']);}_0x31f595['model']['change'](()=>{for(const _0x18f0ca of _0x5088c7)_0x330cdc['markBlockFormat'](_0x18f0ca,{'commandName':_0x21890c,'commandParams':[{'forceValue':_0x43a0b7}]});});}),_0x330cdc['descriptionFactory']['registerDescriptionCallback'](_0x4dc288=>{const {data:_0x232909}=_0x4dc288;if(_0x232909&&_0x232909['commandName']==_0x21890c)return _0x232909['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5925c9,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x5925c9,'FORMAT_RESTRICTED_DISABLED')};});}}class Ct extends _0x452242{['afterInit'](){const _0x309acf=this['editor'];if(!_0x309acf['plugins']['has']('Style')||!_0x309acf['plugins']['has']('DataSchema'))return;const _0x50a5af=_0x309acf['plugins']['get']('TrackChangesEditing'),_0x5c1a74=_0x309acf['locale'],_0x3569ff=_0x309acf['config']['get']('style')||{},_0x15f329=_0x309acf['plugins']['get']('GeneralHtmlSupport'),_0x4a2831=_0x309acf['plugins']['get']('StyleUtils')['normalizeConfig'](_0x309acf['plugins']['get']('DataSchema'),_0x3569ff['definitions']);_0x50a5af['enableDefaultAttributesIntegration']('style');const _0xef7b1e=new Set();for(const _0x37adc9 of _0x4a2831['block']){const _0x4d450a=_0x15f329['getGhsAttributeNameForElement'](_0x37adc9['element']);_0xef7b1e['add'](_0x4d450a);}const _0x58196b=new Set();for(const _0x3e5580 of _0x4a2831['inline']){const _0x459052=_0x15f329['getGhsAttributeNameForElement'](_0x3e5580['element']);_0x58196b['add'](_0x459052);for(const _0x3de324 of _0x3e5580['ghsAttributes'])_0x58196b['add'](_0x3de324);}for(const _0x265efe of _0xef7b1e)_0x50a5af['descriptionFactory']['registerAttributeLabel'](_0x265efe,o(_0x5c1a74,'FORMAT_STYLE'));for(const _0x382f13 of _0x58196b)_0x50a5af['descriptionFactory']['registerAttributeLabel'](_0x382f13,o(_0x5c1a74,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3d1bfe=this['editor'],_0x39a5c8=_0x3d1bfe['locale'];_0x3d1bfe['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x43567f=>{if('formatBlock'!=_0x43567f['type']&&'formatInline'!=_0x43567f['type'])return;const {data:_0x5ef772}=_0x43567f;return _0x5ef772&&'style'===_0x5ef772['commandName']?_0x5ef772['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x39a5c8,'*Set\x20format:*\x20%0',_0x5ef772['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x39a5c8,'*Remove\x20format:*\x20%0',_0x5ef772['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Nt extends _0x452242{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x541466){super(_0x541466),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x5928a3=this['editor'],_0x1f64b4=_0x5928a3['model']['document']['selection'];if(!_0x5928a3['plugins']['has']('TableEditing'))return;const _0x722c3f=_0x5928a3['locale'],_0x399a2d=_0x5928a3['plugins']['get']('TrackChangesEditing'),_0x1c7a12=_0x5928a3['plugins']['get']('TableUtils');_0x399a2d['descriptionFactory']['registerElementLabel']('table',_0x364293=>o(_0x722c3f,'ELEMENT_TABLE',_0x364293)),this['_setupColumnsRowsFixing'](),_0x399a2d['enableCommand']('insertTable'),_0x399a2d['enableCommand']('selectTableRow'),_0x399a2d['enableCommand']('selectTableColumn');for(const _0x39308c of['insertTableRowAbove','insertTableRowBelow']){const _0x4313ef=_0x5928a3['commands']['get'](_0x39308c);_0x399a2d['enableCommand'](_0x39308c,_0x363c61=>{_0x5928a3['model']['change'](_0x47c91c=>{_0x363c61();const _0x33f9af='above'===_0x4313ef['order'],_0x3888e7=_0x1c7a12['getSelectionAffectedTableCells'](_0x1f64b4),_0x2debaf=_0x1c7a12['getRowIndexes'](_0x3888e7),_0x516332=_0x33f9af?_0x2debaf['first']-0x1:_0x2debaf['last']+0x1,_0x1aabec=_0x3888e7[0x0]['findAncestor']('table'),_0x17a50b=_0x1c7a12['createTableWalker'](_0x1aabec,{'startRow':_0x516332,'endRow':_0x516332}),_0x50dd8e=Array['from'](_0x17a50b)['map'](_0x1ebb05=>_0x47c91c['createRangeOn'](_0x1ebb05['cell']));_0x399a2d['markMultiRangeInsertion'](_0x50dd8e,'tableRow');});});}for(const _0x243e05 of['insertTableColumnLeft','insertTableColumnRight']){const _0x12e02d=_0x5928a3['commands']['get'](_0x243e05);_0x399a2d['enableCommand'](_0x243e05,_0x557480=>{_0x5928a3['model']['change'](_0x2d586b=>{_0x557480();const _0x59b5f7='left'===_0x12e02d['order'],_0x2d99d7=_0x1c7a12['getSelectionAffectedTableCells'](_0x1f64b4),_0x353038=_0x1c7a12['getColumnIndexes'](_0x2d99d7),_0x92e3ff=_0x59b5f7?_0x353038['first']-0x1:_0x353038['last']+0x1,_0x928679=_0x2d99d7[0x0]['findAncestor']('table'),_0x5d5637=_0x1c7a12['createTableWalker'](_0x928679,{'startRow':0x0,'column':_0x92e3ff,'includeAllSlots':!0x1}),_0x2fafca=Array['from'](_0x5d5637)['map'](_0x336677=>_0x2d586b['createRangeOn'](_0x336677['cell']));_0x399a2d['markMultiRangeInsertion'](_0x2fafca,'tableColumn');});});}for(const _0x5e744d of['removeTableRow','removeTableColumn']){const _0x1ab9e7=_0x5e744d['substr'](0xb),_0x26ed80=_0x1ab9e7['toLowerCase'](),_0x2cbb8=_0x26ed80['substr'](0x0,0x3)+'span',_0x14ee98='table'+_0x1ab9e7,_0x3e39d5='min'+_0x1ab9e7,_0x303c14='max'+_0x1ab9e7;_0x399a2d['enableCommand'](_0x5e744d,()=>{_0x5928a3['model']['change'](_0x282ccf=>{const _0xf5c508=_0x1c7a12['getSelectionAffectedTableCells'](_0x1f64b4),_0x22aa47=_0xf5c508[0x0]['findAncestor']('table');let _0x4c62a6;if('removeTableRow'==_0x5e744d){const _0x3c6d34=_0x1c7a12['getRowIndexes'](_0xf5c508);_0x4c62a6={'startRow':_0x3c6d34['first'],'endRow':_0x3c6d34['last'],'includeAllSlots':!0x0};}else{const _0x2eedbe=_0x1c7a12['getColumnIndexes'](_0xf5c508);_0x4c62a6={'startColumn':_0x2eedbe['first'],'endColumn':_0x2eedbe['last'],'includeAllSlots':!0x0};}const _0x4c836f=_0x1c7a12['createTableWalker'](_0x22aa47,_0x4c62a6),_0x3d7faa=Array['from'](_0x4c836f)['map'](({cell:_0x39f48f})=>_0x39f48f),_0x1d0351=_e(_0x3d7faa['filter'](_0x49427b=>_0x49427b['hasAttribute'](_0x2cbb8))),_0x2b45df=_e(_0x3d7faa['filter'](_0xdaec7e=>!_0xdaec7e['hasAttribute'](_0x2cbb8)))['map'](_0x554ed0=>_0x282ccf['createRangeOn'](_0x554ed0)),_0x4ba754=_0x399a2d['markMultiRangeDeletion'](_0x2b45df,_0x14ee98);if(_0x4ba754&&('tableRow'==_0x4ba754['subType']||'tableColumn'==_0x4ba754['subType'])){const _0x12595a=this['_getSuggestionCoords'](_0x4ba754);for(const _0x20c5a8 of _0x1d0351){const _0x37e900=_0x282ccf['createRangeOn'](_0x20c5a8),_0x3e108d=_0x1c7a12['getCellLocation'](_0x20c5a8),_0x597ea7=_0x20c5a8['getAttribute'](_0x2cbb8)-0x1,_0x5382eb=_0x12595a[_0x3e39d5],_0x4d8b6c=_0x12595a[_0x303c14];_0x5382eb<=_0x3e108d[_0x26ed80]&&_0x3e108d[_0x26ed80]+_0x597ea7<=_0x4d8b6c&&_0x4ba754['addRange'](_0x37e900);}}});});}function _0x568b2a(_0x2bc3d8){const _0x5d8575=Array['from'](_0x1f64b4['getRanges']())['map'](_0x34f3ad=>_0x1506cc['fromRange'](_0x34f3ad));_0x5928a3['model']['change'](_0x2398ad=>{const _0x48cc10=_0x2398ad['batch'];_0x2bc3d8=_0x2bc3d8['filter'](_0x4d117f=>'$graveyard'!=_0x4d117f['root']['rootName']),_0x2398ad['setSelection'](_0x2bc3d8),_0x5928a3['commands']['get']('removeTableRow')['refresh'](),_0x5928a3['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x5928a3['model']['enqueueChange'](()=>{_0x5928a3['model']['enqueueChange'](_0x48cc10,_0x26c684=>{const _0x4d2b2b=_0x5d8575['filter'](_0x3f7402=>'$graveyard'!=_0x3f7402['root']['rootName']);_0x4d2b2b['length']>0x0&&_0x26c684['setSelection'](_0x4d2b2b);for(const _0x5cc5d4 of _0x5d8575)_0x5cc5d4['detach']();});});});}function _0x34a607(_0x2ccc2a){_0x5928a3['model']['change'](_0x4814f5=>{const _0x3d27bc=Array['from'](_0x1f64b4['getRanges']())['map'](_0x444e30=>_0x1506cc['fromRange'](_0x444e30)),_0x5d62e6=[];for(const _0x316bba of _0x2ccc2a)for(const _0x43b65d of _0x316bba['getItems']({'shallow':!0x0}))_0x5d62e6['push'](_0x43b65d);for(const _0x4ea2b1 of _0x5d62e6)'$graveyard'!=_0x4ea2b1['root']['rootName']&&(_0x4814f5['setSelection'](_0x4814f5['createPositionAt'](_0x4ea2b1,0x0)),_0x5928a3['commands']['get']('removeTableColumn')['refresh'](),_0x5928a3['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x3e5b0a=_0x3d27bc['filter'](_0x2430de=>'$graveyard'!=_0x2430de['root']['rootName']);_0x3e5b0a['length']>0x0&&_0x4814f5['setSelection'](_0x3e5b0a);for(const _0x310573 of _0x3d27bc)_0x310573['detach']();});}function _0x5663b5(_0xce6664,_0x2f24f2){return _0x2f24f2['every'](_0x497916=>_0xce6664['some'](_0x5a61c2=>_0x5a61c2['end']['isEqual'](_0x497916['start'])||_0x497916['end']['isEqual'](_0x5a61c2['start'])));}function _0x4786b8(_0x3fc6a9,_0x46adad){return!_0x3fc6a9['some'](_0xb5fc86=>_0x46adad['some'](_0x22022e=>_0xb5fc86['isIntersecting'](_0x22022e)))&&_0x3fc6a9['some'](_0x5487f1=>_0x46adad['some'](_0x1a9cfe=>_0x5487f1['end']['isTouching'](_0x1a9cfe['start'])));}_0x399a2d['descriptionFactory']['registerDescriptionCallback'](_0x276325=>{if('insertion'!=_0x276325['type']&&'deletion'!=_0x276325['type'])return;const _0x22b65f=_0x276325['getContainedElement']();if(null!=_0x22b65f&&_0x22b65f['is']('element','table')){if('insertion'==_0x276325['type']){const _0x342dd4=_0x276325['getItems']()['filter'](_0x536be9=>_0x536be9['is']('$textProxy'))['map'](_0x49e2e3=>_0x49e2e3['data']);if(_0x342dd4['length'])return{'type':'insertion','content':o(_0x722c3f,'*Insert:*\x20%0',o(_0x722c3f,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x342dd4['join']('\x20')+'\x22'))};}if('deletion'==_0x276325['type']){const _0x3f2aa4=_0x276325['getItems']()['filter'](_0x1825de=>_0x1825de['is']('$textProxy'))['map'](_0x53575b=>_0x53575b['data']);if(_0x3f2aa4['length'])return{'type':'deletion','content':o(_0x722c3f,'*Remove:*\x20%0',o(_0x722c3f,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3f2aa4['join']('\x20')+'\x22'))};}}}),_0x399a2d['descriptionFactory']['registerDescriptionCallback'](_0x2c0b0c=>{if('tableRow'==_0x2c0b0c['subType']){const _0x3bf00a=_0x2c0b0c['getItems']()['filter'](_0x5177a6=>_0x5177a6['is']('$textProxy'))['map'](_0x4d5969=>_0x4d5969['data']),_0x48a89a=this['_getSuggestionCoords'](_0x2c0b0c),_0x57af79=_0x48a89a['maxRow']-_0x48a89a['minRow']+0x1;if('insertion'==_0x2c0b0c['type'])return _0x3bf00a['length']?{'type':'insertion','content':o(_0x722c3f,'*Insert:*\x20%0',o(_0x722c3f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x57af79,'\x22'+_0x3bf00a['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x722c3f,'*Insert:*\x20%0',o(_0x722c3f,'ELEMENT_TABLE_ROW',_0x57af79))};if('deletion'==_0x2c0b0c['type'])return _0x3bf00a['length']?{'type':'deletion','content':o(_0x722c3f,'*Remove:*\x20%0',o(_0x722c3f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x57af79,'\x22'+_0x3bf00a['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x722c3f,'*Remove:*\x20%0',o(_0x722c3f,'ELEMENT_TABLE_ROW',_0x57af79))};}if('tableColumn'==_0x2c0b0c['subType']){const _0x53c92a=_0x2c0b0c['getItems']()['filter'](_0x10fa30=>_0x10fa30['is']('$textProxy'))['map'](_0x3f22ba=>_0x3f22ba['data']),_0x47fdec=this['_getSuggestionCoords'](_0x2c0b0c),_0x461e27=_0x47fdec['maxColumn']-_0x47fdec['minColumn']+0x1;if('insertion'==_0x2c0b0c['type'])return _0x53c92a['length']?{'type':'insertion','content':o(_0x722c3f,'*Insert:*\x20%0',o(_0x722c3f,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x461e27,'\x22'+_0x53c92a['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x722c3f,'*Insert:*\x20%0',o(_0x722c3f,'ELEMENT_TABLE_COLUMN',_0x461e27))};if('deletion'==_0x2c0b0c['type'])return _0x53c92a['length']?{'type':'deletion','content':o(_0x722c3f,'*Remove:*\x20%0',o(_0x722c3f,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x461e27,'\x22'+_0x53c92a['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x722c3f,'*Remove:*\x20%0',o(_0x722c3f,'ELEMENT_TABLE_COLUMN',_0x461e27))};}}),_0x399a2d['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x568b2a),_0x399a2d['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x568b2a),_0x399a2d['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x34a607),_0x399a2d['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x34a607),_0x399a2d['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x5663b5),_0x399a2d['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x5663b5),_0x399a2d['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x4786b8),_0x399a2d['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x4786b8);}['_acceptFormatSuggestionCallbackFactory'](){const _0x16dfcb=this['editor'],_0x5e77d1=_0x16dfcb['model']['document']['selection'];return(_0x8f28e7,_0x378e45)=>{_0x16dfcb['model']['change'](_0x18d5ad=>{const {commandName:_0x3e98ec,commandParams:_0x58c320}=_0x378e45;let _0x30f34a=_0x8f28e7[0x0]['end']['nodeBefore'];_0x58c320&&_0x58c320[0x0]&&!0x1===_0x58c320[0x0]['forceValue']&&(_0x30f34a=_0x8f28e7[0x0]['start']['nodeAfter']);const _0x7fa16=_0x18d5ad['createRangeIn'](_0x30f34a);if('$graveyard'==_0x7fa16['root']['rootName'])return;const _0x2a7d8e=Array['from'](_0x5e77d1['getRanges']())['map'](_0x2b7c1a=>_0x1506cc['fromRange'](_0x2b7c1a));_0x18d5ad['setSelection'](_0x7fa16),_0x16dfcb['commands']['get'](_0x3e98ec)['refresh'](),_0x58c320['push']({'forceDefaultExecution':!0x0}),_0x16dfcb['execute'](_0x3e98ec,..._0x58c320);const _0x27c9d3=_0x2a7d8e['filter'](_0x543ac7=>'$graveyard'!=_0x543ac7['root']['rootName']);_0x27c9d3['length']>0x0&&_0x18d5ad['setSelection'](_0x27c9d3);for(const _0x2358d3 of _0x2a7d8e)_0x2358d3['detach']();});};}['_getCoordsForCells'](_0xb07a3c){const _0x5a2f66=this['editor']['plugins']['get']('TableUtils');let _0x3bd8c0=Number['MAX_SAFE_INTEGER'],_0xa9b1c8=Number['MIN_SAFE_INTEGER'],_0x4b8900=Number['MAX_SAFE_INTEGER'],_0x274143=Number['MIN_SAFE_INTEGER'];for(const _0x5bff77 of _0xb07a3c){if('$graveyard'==_0x5bff77['root']['rootName'])continue;const {row:_0x22e79a,column:_0x419809}=_0x5a2f66['getCellLocation'](_0x5bff77),_0xf48f9f=_0x5bff77['hasAttribute']('rowspan')?_0x5bff77['getAttribute']('rowspan')-0x1:0x0,_0xec925=_0x5bff77['hasAttribute']('colspan')?_0x5bff77['getAttribute']('colspan')-0x1:0x0;_0x3bd8c0=_0x22e79a<_0x3bd8c0?_0x22e79a:_0x3bd8c0,_0xa9b1c8=_0x22e79a+_0xf48f9f>_0xa9b1c8?_0x22e79a+_0xf48f9f:_0xa9b1c8,_0x4b8900=_0x419809<_0x4b8900?_0x419809:_0x4b8900,_0x274143=_0x419809+_0xec925>_0x274143?_0x419809+_0xec925:_0x274143;}return{'minRow':_0x3bd8c0,'maxRow':_0xa9b1c8,'minColumn':_0x4b8900,'maxColumn':_0x274143};}['_setupColumnsRowsFixing'](){const _0x5c7e6b=this['editor'],_0x2ea2ba=_0x5c7e6b['plugins']['get']('TrackChangesEditing'),_0x1c94c9=_0x5c7e6b['plugins']['get']('TableUtils');_0x5c7e6b['model']['document']['on']('change:data',()=>{const _0x30b704=Array['from'](_0x5c7e6b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3bba41,data:_0x3fdb38}of _0x30b704){const {group:_0x57ce13,id:_0x1d9b45,subType:_0x3610bf}=_0x2ea2ba['_splitMarkerName'](_0x3bba41);if('suggestion'!=_0x57ce13)continue;if(null!=_0x3fdb38['oldRange'])continue;const _0x3573cf=_0x2ea2ba['getSuggestion'](_0x1d9b45);this['_tablePostFixingSubtypes']['includes'](_0x3610bf)&&this['_tableSuggestions']['add'](_0x3573cf);}},{'priority':'low'});const _0x35e905=(_0x235e0a,_0x259647)=>{let _0x58e92a=!0x1;const _0x3a52ca=_0x259647['createRangeOn'](_0x235e0a),_0x462c64=_0x235e0a['findAncestor']('table'),_0x4b5e55=_0x1c94c9['getCellLocation'](_0x235e0a);for(const _0xf68c61 of this['_tableSuggestions']){const _0x1e5101=_0xf68c61['subType'],_0x5e627b=_0x1e5101['startsWith']('tablePaste'),_0x5214b3=_0x1e5101['substr'](_0x5e627b?0xa:0x5),_0x30ed36=_0x5214b3['toLowerCase'](),_0x378545=_0x30ed36['substr'](0x0,0x3)+'span',_0x3d0716='min'+_0x5214b3,_0x77d460='max'+_0x5214b3;if(!_0xf68c61['isInContent'])continue;if(_0x462c64!=_0xf68c61['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0xf68c61['isIntersectingWithRange'](_0x3a52ca))continue;const _0x3c5535=_0x235e0a['hasAttribute'](_0x378545)?_0x235e0a['getAttribute'](_0x378545)-0x1:0x0,_0x64e91a=this['_getSuggestionCoords'](_0xf68c61),_0x4cc902=_0x64e91a[_0x3d0716],_0x5727cc=_0x64e91a[_0x77d460];_0x4cc902<=_0x4b5e55[_0x30ed36]&&_0x4b5e55[_0x30ed36]+_0x3c5535<=_0x5727cc&&(_0xf68c61['addRange'](_0x3a52ca),_0x58e92a=!0x0);}return _0x58e92a;};_0x5c7e6b['model']['document']['registerPostFixer'](_0x8d197f=>{let _0x589c81=!0x1;for(const _0x12ac77 of _0x5c7e6b['model']['document']['differ']['getChanges']())if('insert'==_0x12ac77['type']){if('tableRow'==_0x12ac77['name']){for(const _0x55f75e of _0x12ac77['position']['nodeAfter']['getChildren']())_0x589c81=_0x589c81||_0x35e905(_0x55f75e,_0x8d197f);}else'tableCell'==_0x12ac77['name']&&(_0x589c81=_0x589c81||_0x35e905(_0x12ac77['position']['nodeAfter'],_0x8d197f));}return _0x589c81;});}['_getSuggestionCoords'](_0x3f1f82){return this['_getCoordsForCells'](_0x3f1f82['getRanges']()['map'](_0x43c3b0=>_0x43c3b0['start']['nodeAfter']));}}function _e(_0x1702e0){return Array['from'](new Set(_0x1702e0)['values']());}class $t extends _0x452242{static get['requires'](){return[Nt];}['afterInit'](){const _0x3a61fd=this['editor'],_0x3f8f94=_0x3a61fd['model']['document']['selection'],_0x59a87b=_0x3a61fd['locale'];if(!_0x3a61fd['plugins']['has']('TableEditing'))return;const _0x9579f3=_0x3a61fd['plugins']['get']('TrackChangesEditing'),_0x1310e7=_0x3a61fd['plugins']['get']('TableUtils'),_0x5cf663=_0x3a61fd['plugins']['get'](Nt);_0x5cf663['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x9579f3['enableCommand']('mergeTableCells',()=>{const _0xccf9a=_0x1310e7['getSelectionAffectedTableCells'](_0x3a61fd['model']['document']['selection']);_0x3a61fd['model']['change'](()=>{_0x9579f3['markMultiRangeBlockFormat'](_0xccf9a,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x3a61fd['commands']['get']('mergeTableCells')['on']('execute',(_0xbedbe5,_0x2a8e82)=>{_0x3a61fd['commands']['get']('trackChanges')['value']&&(_0x2a8e82['length']>0x0&&_0x2a8e82[_0x2a8e82['length']-0x1]&&_0x2a8e82[_0x2a8e82['length']-0x1]['forceDefaultExecution']||_0x9579f3['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0xbedbe5['stop']());},{'priority':'highest'});for(const _0x35bc3d of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0xd69e4b=_0x3a61fd['commands']['get'](_0x35bc3d);_0x9579f3['enableCommand'](_0x35bc3d,()=>{const _0xc96453=_0x3a61fd['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x172d1c=>_0x172d1c['is']('element','tableCell')),_0x3b6df9=_0xd69e4b['value'];_0x3a61fd['model']['change'](()=>{_0x9579f3['markMultiRangeBlockFormat']([_0xc96453,_0x3b6df9],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x252009 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x54d37d=_0x3a61fd['commands']['get'](_0x252009);_0x9579f3['enableCommand'](_0x252009,()=>{const _0x754516=_0x1310e7['getSelectionAffectedTableCells'](_0x3a61fd['model']['document']['selection'])[0x0],_0x2270e8=_0x754516['findAncestor']('table'),{column:_0x5b9995,row:_0x16cc81}=_0x1310e7['getCellLocation'](_0x754516);let _0x208a67=[];if('horizontally'==_0x54d37d['direction']){const _0x1f159f=_0x1310e7['createTableWalker'](_0x2270e8,{'startRow':_0x16cc81,'endRow':_0x16cc81,'includeAllSlots':!0x0});_0x208a67=Array['from'](_0x1f159f)['map'](_0x1b9fae=>_0x1b9fae['cell']);}else{const _0x2cf154=_0x1310e7['createTableWalker'](_0x2270e8,{'column':_0x5b9995,'includeAllSlots':!0x0});_0x208a67=Array['from'](_0x2cf154)['map'](_0x3d85f8=>_0x3d85f8['cell']);}_0x3a61fd['model']['change'](_0xdba32=>{_0x9579f3['markBlockFormat'](_0xdba32['createRangeOn'](_0x754516),{'commandName':_0x252009,'commandParams':[]},_0x208a67,_0x252009);});});}_0x9579f3['descriptionFactory']['registerDescriptionCallback'](_0x4c12da=>{if('formatBlock'!=_0x4c12da['type']&&'formatInline'!=_0x4c12da['type'])return;const {data:_0x34612f}=_0x4c12da;return _0x34612f&&'mergeTableCells'==_0x34612f['commandName']?{'type':'format','content':o(_0x59a87b,'*Merge\x20cells*')}:void 0x0;}),_0x9579f3['descriptionFactory']['registerDescriptionCallback'](_0x3a1139=>{if('formatBlock'!=_0x3a1139['type']&&'formatInline'!=_0x3a1139['type'])return;const {data:_0x528eb7}=_0x3a1139;return _0x528eb7?'splitTableCellVertically'==_0x528eb7['commandName']?{'type':'format','content':o(_0x59a87b,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x528eb7['commandName']?{'type':'format','content':o(_0x59a87b,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x2cad3e=_0x5cf663['_acceptFormatSuggestionCallbackFactory']();for(const _0x2709d3 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x9579f3['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2709d3,'accept',_0x2cad3e);for(const _0x399b91 of['splitTableCellVertically','splitTableCellHorizontally'])_0x9579f3['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x399b91,'accept',_0x2cad3e);_0x9579f3['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x2e6839=>{_0x3a61fd['model']['change'](_0x95a291=>{const _0x1f2f7f=Array['from'](_0x3f8f94['getRanges']())['map'](_0x123f18=>_0x1506cc['fromRange'](_0x123f18));_0x95a291['setSelection'](_0x2e6839),_0x3a61fd['commands']['get']('mergeTableCells')['refresh'](),_0x3a61fd['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x36c228=_0x1f2f7f['filter'](_0x4a3a95=>'$graveyard'!=_0x4a3a95['root']['rootName']);_0x36c228['length']>0x0&&_0x95a291['setSelection'](_0x36c228);for(const _0x2ec82b of _0x1f2f7f)_0x2ec82b['detach']();});});for(const _0x4108e6 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x5d193d=_0x3a61fd['commands']['get'](_0x4108e6);_0x5d193d['on']('set:isEnabled',(_0x29f150,_0x4cdb9e,_0x118a8e)=>{if(_0x118a8e){const _0x2ed827=_0x3a61fd['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1a82c7=>_0x1a82c7['is']('element','tableCell'));this['_areMergableCells'](_0x5d193d['value'],_0x2ed827)||(_0x29f150['return']=!0x1,_0x29f150['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x5237e4=this['editor']['commands']['get']('mergeTableCells'),_0x1afdec=this['editor']['plugins']['get']('TableUtils');if(!_0x5237e4['isEnabled'])return!0x1;const _0x5456ec=_0x1afdec['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x18b8b1 of _0x5456ec)for(const _0x4d9607 of _0x5456ec)if(_0x18b8b1!=_0x4d9607&&!this['_areMergableCells'](_0x18b8b1,_0x4d9607))return!0x1;return!0x0;}['_areMergableCells'](_0x1f2127,_0x2d74ba){const _0x1d93ae=this['editor']['plugins']['get']('TrackChangesEditing'),_0x757c08=this['editor']['model']['createRangeOn'](_0x1f2127),_0x5531e0=this['editor']['model']['createRangeOn'](_0x2d74ba),_0x28dc23=new Set(),_0x133a86=new Set();for(const _0x5b79cb of _0x1d93ae['getSuggestions']())if(('insertion'==_0x5b79cb['type']||'deletion'==_0x5b79cb['type']||'mergeTableCells'==_0x5b79cb['subType'])&&_0x5b79cb['isInContent']){for(const _0x30b1cb of _0x5b79cb['getRanges']())_0x30b1cb['containsRange'](_0x757c08,!0x0)&&_0x28dc23['add'](_0x5b79cb['type']+':'+_0x5b79cb['author']['id']),_0x30b1cb['containsRange'](_0x5531e0,!0x0)&&_0x133a86['add'](_0x5b79cb['type']+':'+_0x5b79cb['author']['id']);}if(_0x28dc23['size']!=_0x133a86['size'])return!0x1;for(const _0x4394de of _0x28dc23)if(!_0x133a86['has'](_0x4394de))return!0x1;return!0x0;}}class vt extends _0x452242{static get['requires'](){return[Nt];}['afterInit'](){const _0x39c7f8=this['editor'];if(!_0x39c7f8['plugins']['has']('TableEditing'))return;const _0x5c5d4d=_0x39c7f8['locale'],_0xeeb0d=_0x39c7f8['plugins']['get']('TrackChangesEditing');_0xeeb0d['enableDefaultAttributesIntegration']('setTableRowHeader'),_0xeeb0d['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0xeeb0d['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x5c5d4d,'FORMAT_HEADER_ROW')),_0xeeb0d['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x5c5d4d,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x398ed3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x43c2c1=this['editor']['plugins']['get'](Nt)['_acceptFormatSuggestionCallbackFactory']();_0x398ed3['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x43c2c1),_0x398ed3['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x43c2c1),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x28e1af=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3f53b7=this['editor']['plugins']['get']('TableUtils');function _0x147b44({showActiveMarker:_0x2e60e2=!0x0,setDataAttribute:_0x4bd8e2=!0x0}={}){return(_0x1d0dc6,_0x2f4fa0,_0x408470)=>{const {type:_0x9d5838,id:_0x146f2c}=_0x28e1af['_splitMarkerName'](_0x2f4fa0['markerName']);if(!_0x28e1af['hasSuggestion'](_0x146f2c))return;const _0x483476=_0x28e1af['getSuggestion'](_0x146f2c),_0x2af24f=_0x483476['data'];if('formatBlock'!=_0x483476['type']||!_0x2af24f||'setTableColumnHeader'!=_0x2af24f['commandName'])return;if(_0x2f4fa0['item'])return void _0x1d0dc6['stop']();if(!_0x408470['consumable']['consume'](_0x2f4fa0['markerRange'],_0x1d0dc6['name']))return;const _0x1b450a=_0x2f4fa0['markerRange']['start']['nodeAfter'],_0x541549=_0x2f4fa0['markerRange']['end']['nodeBefore'],_0x1b0692=_0x1b450a['parent']['parent'],{column:_0x2ff607}=_0x3f53b7['getCellLocation'](_0x1b450a),{column:_0x3e4773}=_0x3f53b7['getCellLocation'](_0x541549);for(let _0x5caba1=_0x2ff607;_0x5caba1<=_0x3e4773;_0x5caba1++){const _0x285921=_0x3f53b7['createTableWalker'](_0x1b0692,{'column':_0x5caba1,'includeAllSlots':!0x1});for(const _0x4540d4 of _0x285921){const _0x3c4d53=_0x4540d4['cell'],_0x13b831=_0x408470['mapper']['toViewElement'](_0x3c4d53);_0x408470['writer']['addClass']('ck-suggestion-marker-'+_0x9d5838,_0x13b831),_0x4bd8e2&&_0x408470['writer']['setAttribute']('data-suggestion',_0x146f2c,_0x13b831),_0x408470['mapper']['bindElementToMarker'](_0x13b831,_0x2f4fa0['markerName']),_0x2e60e2&&(_0x28e1af['activeMarkers']['includes'](_0x2f4fa0['markerName'])?_0x408470['writer']['addClass']('ck-suggestion-marker--active',_0x13b831):_0x408470['writer']['removeClass']('ck-suggestion-marker--active',_0x13b831));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x147b44(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1a3cbc,_0x491aa9,_0x108da6)=>{_0x108da6['options']['showSuggestionHighlights']&&_0x147b44({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1a3cbc,_0x491aa9,_0x108da6);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x368ecf,_0x54c7b8,_0x19014a)=>{const {type:_0x474d6b,id:_0x11c772}=_0x28e1af['_splitMarkerName'](_0x54c7b8['markerName']);if(!_0x28e1af['hasSuggestion'](_0x11c772))return;const _0x30f633=_0x28e1af['getSuggestion'](_0x11c772),_0x2a7c24=_0x30f633['data'];if('formatBlock'!=_0x30f633['type']||!_0x2a7c24||'setTableColumnHeader'!=_0x2a7c24['commandName'])return;const _0x54e16a=_0x19014a['mapper']['markerNameToElements'](_0x54c7b8['markerName']);if(_0x54e16a){for(const _0x1179c6 of _0x54e16a)_0x19014a['writer']['removeClass']('ck-suggestion-marker-'+_0x474d6b,_0x1179c6),_0x19014a['writer']['removeClass']('ck-suggestion-marker--active',_0x1179c6),_0x19014a['writer']['removeAttribute']('data-suggestion',_0x1179c6),_0x19014a['mapper']['unbindElementFromMarkerName'](_0x1179c6,_0x54c7b8['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x2a0c1e=this['editor'],_0x1744a9=_0x2a0c1e['locale'];function _0x5dd04b(_0x475b55){return{'type':'format','content':o(_0x1744a9,'*Format:*\x20%0',_0x475b55)};}_0x2a0c1e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2dcc02=>{if('formatBlock'!=_0x2dcc02['type'])return;const {data:_0x54bc06}=_0x2dcc02;if(_0x54bc06){if('setTableRowHeader'==_0x54bc06['commandName']){const _0x2823f6=_0x54bc06['commandParams'][0x0]['forceValue'];return _0x5dd04b(o(_0x1744a9,_0x2823f6?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x54bc06['commandName']){const _0x56b1f9=_0x54bc06['commandParams'][0x0]['forceValue'];return _0x5dd04b(o(_0x1744a9,_0x56b1f9?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Dt extends _0x452242{['afterInit'](){const _0x580f5f=this['editor'],_0x412b15=_0x580f5f['locale'],_0xe5b19e=_0x580f5f['plugins']['get']('TrackChangesEditing');function _0x2a6f6a(_0x27deb8){return{'type':'format','content':''+o(_0x412b15,'*Set\x20table\x20type:*\x20%0',_0x27deb8)};}_0x580f5f['plugins']['has']('TableLayout')&&(_0xe5b19e['enableCommand']('insertTableLayout'),_0xe5b19e['enableDefaultAttributesIntegration']('tableType'),_0xe5b19e['descriptionFactory']['registerElementLabel'](_0x389798=>_0x389798['is']('element','table')&&'layout'===_0x389798['getAttribute']('tableType'),_0xa0e606=>o(_0x412b15,'ELEMENT_LAYOUT_TABLE',_0xa0e606)),_0xe5b19e['descriptionFactory']['registerDescriptionCallback'](_0x5575d2=>{const {data:_0x5b16f2}=_0x5575d2;if(_0x5b16f2&&'tableType'==_0x5b16f2['key'])switch(_0x5b16f2['newValue']){case'layout':return _0x2a6f6a(o(_0x412b15,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x2a6f6a(o(_0x412b15,'ELEMENT_CONTENT_TABLE'));}}));}}const Re=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ae=/* #__PURE__ -- @preserve */
25
- Object['fromEntries'](Re['map'](_0x204d47=>[_0x204d47,null]));class Bt extends _0x452242{static get['requires'](){return[Nt];}['afterInit'](){const _0x17314c=this['editor'];if(!_0x17314c['plugins']['has']('TableClipboard'))return;const _0x430de9=_0x17314c['plugins']['get']('TrackChangesEditing'),_0x41abd5=_0x17314c['plugins']['get']('TableUtils'),_0xf28e68=_0x17314c['plugins']['get'](Nt),_0x365382=_0x17314c['plugins']['get']('TableClipboard'),_0x3ab1a8=_0x17314c['plugins']['get']('TableSelection'),_0x4327dd=_0x17314c['plugins']['get'](_0x2f252d);_0xf28e68['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x17314c['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x17314c['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2ffe04=null,_0x4485b1=!0x1;_0x4327dd['on']('contentInsertion',(_0x34961b,_0x2afc72)=>{_0x4485b1='paste'===_0x2afc72['method'];}),_0x17314c['model']['on']('insertContent',(_0x48998e,_0x5478a9)=>{if(!_0x4485b1&&null===_0x3ab1a8['getSelectedTableCells']())return;const [_0x26c759,_0x177511]=_0x5478a9,_0x13b222=_0x5478a9[_0x5478a9['length']-0x1];_0x13b222&&_0x13b222['forceDefaultExecution']||_0x430de9['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x97d9a4,_0x9df531,_0x6e0d62,_0x5ead06,_0x3979f0){if(_0x9df531&&!_0x9df531['is']('documentSelection'))return!0x1;const _0x4c619f=_0x3979f0['getTableIfOnlyTableInContent'](_0x97d9a4,_0x6e0d62);if(!_0x4c619f||!Oe(_0x4c619f,void 0x0,_0x5ead06))return!0x1;const _0x4e5f5d=_0x5ead06['getSelectionAffectedTableCells'](_0x6e0d62['document']['selection']);if(!_0x4e5f5d['length'])return!0x1;const _0x565fa1=_0x4e5f5d[0x0]['findAncestor']('table'),_0x3a9232=_0x5ead06['getRowIndexes'](_0x4e5f5d),_0x1b1de4=_0x5ead06['getColumnIndexes'](_0x4e5f5d),_0x3ab5ce={'startRow':_0x3a9232['first'],'endRow':_0x3a9232['last'],'startColumn':_0x1b1de4['first'],'endColumn':_0x1b1de4['last']};return 0x1==_0x4e5f5d['length']&&(_0x3ab5ce['endRow']+=_0x5ead06['getRows'](_0x4c619f)-0x1,_0x3ab5ce['endColumn']+=_0x5ead06['getColumns'](_0x4c619f)-0x1),Oe(_0x565fa1,_0x3ab5ce,_0x5ead06);}(_0x26c759,_0x177511,_0x17314c['model'],_0x41abd5,_0x365382)&&(_0x48998e['stop'](),_0x2ffe04={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x17314c['model']['change'](()=>{_0x17314c['model']['insertContent'](_0x5478a9[0x0],_0x5478a9[0x1],_0x5478a9[0x2],{'forceDefaultExecution':!0x0});const _0x4d7d4e=_0x3da106(),{rowInsertionRanges:_0x148d58,columnInsertionRanges:_0x14ff41,insertionRanges:_0x2735da,deletionRanges:_0x35d23d,cells:_0x12e768}=_0x2ffe04;_0x148d58['length']&&_0x430de9['markMultiRangeInsertion'](_0x148d58,'tablePasteRow',{'tablePasteChainId':_0x4d7d4e}),_0x14ff41['length']&&_0x430de9['markMultiRangeInsertion'](_0x14ff41,'tablePasteColumn',{'tablePasteChainId':_0x4d7d4e}),_0x2735da['length']&&(_0x430de9['markMultiRangeInsertion'](_0x2735da,'tablePaste',{'tablePasteChainId':_0x4d7d4e,'skipNestingCheck':!0x0}),_0x2735da['forEach'](_0x282fff=>_0x282fff['detach']?.())),_0x35d23d['length']&&(_0x430de9['markMultiRangeDeletion'](_0x35d23d,'tablePaste',{'tablePasteChainId':_0x4d7d4e,'skipNestingCheck':!0x0}),_0x35d23d['forEach'](_0x597306=>_0x597306['detach']?.()));const _0x41d82b=_0x430de9['markMultiRangeBlockFormat'](_0x12e768['map'](({element:_0x1b5d14})=>_0x1b5d14),{'formatGroupId':_0x3da106()},[],'tablePasteCell',{'tablePasteChainId':_0x4d7d4e});if(_0x41d82b){const _0x548d74=_0x41d82b['getMarkers'](),_0x1850df=[];for(const {element:_0x484fe8,attributes:_0x105358}of _0x12e768){if(!_0x105358)continue;const _0x261881=_0x17314c['model']['createRangeOn'](_0x484fe8),_0x57025=_0x548d74['find'](_0x355051=>_0x355051['getRange']()['isEqual'](_0x261881));_0x57025&&_0x1850df['push']([_0x57025['name'],_0x105358]);}_0x1850df['length']&&_0x41d82b['setAttribute']('markerAttributes',Object['fromEntries'](_0x1850df));}_0x2ffe04=null;}));},{'priority':_0x1a1f89['high']+0xa}),_0x4327dd['on']('contentInsertion',()=>{_0x4485b1=!0x1;},{'priority':'lowest'}),_0x17314c['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x47f93e,_0x4ca124)=>{const [_0x5424f3,_0x35ba94,,_0x2cf641]=_0x4ca124;if(!_0x2ffe04)return;_0x47f93e['stop']();const _0x54e144=_0x5424f3['cell'],_0x436dd7=_0x35ba94,_0x202f17=Be(_0x54e144),_0x295f6a=Be(_0x436dd7);_0x47f93e['return']=_0x54e144;let _0x443ed7=null,_0x1ed775=null;if(_0x295f6a||_0x202f17){if(_0x202f17&&!_0x295f6a){_0x2cf641['remove'](_0x54e144['getChild'](0x0));for(const _0x349088 of Array['from'](_0x436dd7['getChildren']()))_0x2cf641['insert'](_0x349088,_0x54e144,'end');const _0x5ecb48=_0x2ffe04['rowInsertionIndexes']['includes'](_0x5424f3['row']),_0x5b9736=_0x2ffe04['columnInsertionIndexes']['includes'](_0x5424f3['column']);_0x5ecb48||_0x5b9736||(_0x443ed7=_0x1506cc['fromRange'](_0x2cf641['createRangeIn'](_0x54e144)));}else _0x295f6a&&!_0x202f17&&(_0x1ed775=_0x2cf641['createRangeIn'](_0x54e144));}else{const _0x1a0a56=_0x2cf641['createElement']('tableCellSuggestion'),_0x4b03f2=_0x2cf641['createElement']('tableCellSuggestion');_0x2cf641['wrap'](_0x2cf641['createRangeIn'](_0x54e144),_0x4b03f2),_0x2cf641['insert'](_0x1a0a56,_0x54e144,0x0);for(const _0x5a1995 of Array['from'](_0x436dd7['getChildren']()))_0x2cf641['insert'](_0x5a1995,_0x1a0a56,'end');_0x443ed7=_0x1506cc['fromRange'](_0x2cf641['createRangeOn'](_0x1a0a56)),_0x1ed775=_0x1506cc['fromRange'](_0x2cf641['createRangeOn'](_0x4b03f2));}const _0x2d6591=Array['from'](_0x436dd7['getAttributes']())['filter'](([_0x199c00])=>Re['includes'](_0x199c00));_0x2ffe04['cells']['push']({'element':_0x54e144,'attributes':_0x2d6591['length']?Object['fromEntries'](_0x2d6591):null}),_0x443ed7&&_0x2ffe04['insertionRanges']['push'](_0x443ed7),_0x1ed775&&_0x2ffe04['deletionRanges']['push'](_0x1ed775);},{'priority':'high'}),_0x41abd5['on']('insertColumns',(_0x4298f6,_0x2b272d)=>{const [_0x21242,_0x11f99c={}]=_0x2b272d;if(!_0x2ffe04)return;const _0x384aa3=_0x11f99c['at']||0x0,_0x4c35a5=_0x11f99c['columns']||0x1;_0x2ffe04['columnInsertionIndexes']=new Array(_0x4c35a5)['fill'](_0x384aa3)['map']((_0x2c0440,_0x1429c4)=>_0x2c0440+_0x1429c4);for(const {cell:_0x26bbdc}of _0x41abd5['createTableWalker'](_0x21242,{'startColumn':_0x384aa3,'endColumn':_0x384aa3+_0x4c35a5-0x1}))_0x2ffe04['columnInsertionRanges']['push'](_0x17314c['model']['createRangeOn'](_0x26bbdc));},{'priority':'low'}),_0x41abd5['on']('insertRows',(_0x2b59f1,_0x297ce0)=>{const [_0x175f89,_0x498f9c={}]=_0x297ce0;if(!_0x2ffe04)return;const _0x1b7d76=_0x498f9c['at']||0x0,_0x2c02b4=_0x498f9c['rows']||0x1;_0x2ffe04['rowInsertionIndexes']=new Array(_0x2c02b4)['fill'](_0x1b7d76)['map']((_0x29a203,_0x58b0c1)=>_0x29a203+_0x58b0c1);for(const {cell:_0x29d5cc}of _0x41abd5['createTableWalker'](_0x175f89,{'startRow':_0x1b7d76,'endRow':_0x1b7d76+_0x2c02b4-0x1}))_0x2ffe04['rowInsertionRanges']['push'](_0x17314c['model']['createRangeOn'](_0x29d5cc));},{'priority':'low'}),_0x430de9['descriptionFactory']['registerDescriptionCallback'](_0x265a3e=>{if(_0x265a3e['subType']&&_0x265a3e['subType']['startsWith']('tablePaste'))return _0x265a3e['previous']?{}:{'type':'insertion','content':o(_0x17314c['locale'],'*Replace\x20table\x20cells*')};});const _0x1aa9bf=()=>!0x1;for(const _0x25d34c of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x430de9['_suggestionFactory']['registerCustomCallback']('insertion',_0x25d34c,'join',_0x1aa9bf),_0x430de9['_suggestionFactory']['registerCustomCallback']('deletion',_0x25d34c,'join',_0x1aa9bf),_0x430de9['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x25d34c,'join',_0x1aa9bf);_0x430de9['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x1aa9bf),_0x430de9['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0xc10c4b,_0x4ced9d,_0x235d28)=>{const _0x5e4776=_0xc10c4b['map'](_0xdb4363=>_0xdb4363['getContainedElement']())['filter'](_0x3be077=>_0x3be077),_0x5a7c24=new Map(_0x5e4776['map'](_0x572b25=>[_0x572b25,null]));if(_0x2ffe04){for(const {element:_0x1a43a4,attributes:_0x38cd90}of _0x2ffe04['cells'])_0x38cd90&&_0x5a7c24['set'](_0x1a43a4,_0x38cd90);}else{if(_0x235d28&&_0x235d28['markerAttributes'])for(const [_0x3fdf2b,_0x288fac]of Object['entries'](_0x235d28['markerAttributes'])){const _0xcd9e86=_0x17314c['model']['markers']['get'](_0x3fdf2b),_0x22f2dc=_0xcd9e86?_0xcd9e86['getRange']()['getContainedElement']():null;_0x22f2dc&&_0x5a7c24['set'](_0x22f2dc,_0x288fac);}}_0x17314c['model']['change'](_0x4b3f9a=>{for(const [_0x486aa0,_0x2a4c63]of _0x5a7c24)_0x4b3f9a['setAttributes']({...Ae,..._0x2a4c63},_0x486aa0);});});const _0x39b82f=(_0x582fe0,_0x28fe77)=>{_0x430de9['_suggestionFactory']['registerCustomCallback'](_0x582fe0,'tablePaste',_0x28fe77,(_0x1b76f5,_0xb2dc22,_0x28a18e)=>{_0x17314c['model']['change'](_0x2dfc45=>{const _0xed9617=[];for(const _0x14b64f of _0x1b76f5){const _0x4e02ea=_0x14b64f['start']['nodeAfter'];_0x4e02ea['is']('element','tableCellSuggestion')&&_0xed9617['push'](_0x4e02ea);}_0x430de9['_suggestionFactory']['getSuggestionCallback'](_0x582fe0,null,_0x28fe77)(_0x1b76f5,_0xb2dc22,_0x28a18e);for(const _0x3fdcef of _0xed9617)'$graveyard'!=_0x3fdcef['root']['rootName']&&_0x2dfc45['unwrap'](_0x3fdcef);});});};_0x39b82f('insertion','accept'),_0x39b82f('insertion','discard'),_0x39b82f('deletion','accept'),_0x39b82f('deletion','discard'),_0x430de9['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x5c600e=>{const _0xa6792d=_0x5c600e['map'](_0x3e75ef=>_0x3e75ef['getContainedElement']()),_0xc8a19d=_0xa6792d[0x0]['findAncestor']('table'),{minRow:_0x1d2e0e,maxRow:_0x47e322}=_0xf28e68['_getCoordsForCells'](_0xa6792d);_0x41abd5['removeRows'](_0xc8a19d,{'at':_0x1d2e0e,'rows':_0x47e322-_0x1d2e0e+0x1});}),_0x430de9['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x15a699=>{const _0x32d903=_0x15a699['map'](_0x527c34=>_0x527c34['getContainedElement']()),_0x23cfdf=_0x32d903[0x0]['findAncestor']('table'),{minColumn:_0x49cca8,maxColumn:_0x332f55}=_0xf28e68['_getCoordsForCells'](_0x32d903);_0x41abd5['removeColumns'](_0x23cfdf,{'at':_0x49cca8,'columns':_0x332f55-_0x49cca8+0x1});});const _0x336231=(_0x53a62d,_0x56a4c8)=>{if(!_0x56a4c8['subType']||!_0x56a4c8['subType']['startsWith']('tablePaste'))return;const _0xad9e28=_0x56a4c8['attributes']['tablePasteChainId'],_0x212115=_0x430de9['getSuggestions']()['filter'](_0x5ae82b=>_0x5ae82b['isInContent']&&_0x5ae82b['attributes']&&_0x5ae82b['attributes']['tablePasteChainId']==_0xad9e28);_0x212115['length']&&_0x56a4c8['getAllAdjacentSuggestions']()['length']!=_0x212115['length']&&_0x212115['reduce']((_0x259a06,_0x577df4)=>(_0x259a06['next']=_0x577df4,_0x577df4['previous']=_0x259a06,_0x577df4));};function _0x1c14bb(_0x4293f7,_0x18403a=!0x0){const {id:_0x3e1ea9,authorId:_0x2c4750}=_0x430de9['_splitMarkerName'](_0x4293f7['markerName']),_0x59c14a=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1128a0=_0x430de9['activeMarkers']['includes'](_0x4293f7['markerName']);return _0x1128a0&&_0x59c14a['push']('ck-suggestion-marker--active'),{'classes':_0x59c14a,'attributes':{'data-suggestion':_0x3e1ea9,'data-author-id':_0x2c4750},'priority':_0x1128a0&&_0x18403a?0xbc2:0xbb8};}_0x430de9['on']('suggestionLoaded',_0x336231,{'priority':'high'}),_0x430de9['on']('suggestionUnloaded',_0x336231,{'priority':'high'}),_0x17314c['model']['document']['registerPostFixer'](()=>{let _0xbbb534=!0x1;const _0x127208=Array['from'](_0x17314c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x35ee0e,data:_0x56c559}of _0x127208){const {group:_0x12e6af,type:_0x37c44d,id:_0x5df8f7}=_0x430de9['_splitMarkerName'](_0x35ee0e);if('suggestion'!=_0x12e6af||'deletion'!=_0x37c44d||_0x56c559['oldRange'])continue;if(!_0x430de9['hasSuggestion'](_0x5df8f7))continue;const _0x1f4c8d=_0x430de9['getSuggestion'](_0x5df8f7)['getRanges'](),_0x3a22ea=_0x17314c['plugins']['get']('Users')['me'];for(const _0x15583b of _0x430de9['getSuggestions']()){if(!_0x15583b['isInContent']||_0x15583b['author']!=_0x3a22ea)continue;if('formatBlock'!=_0x15583b['type']||'tablePasteCell'!=_0x15583b['subType'])continue;if(_0x15583b['getRanges']()['every'](_0x39c1f8=>_0x1f4c8d['some'](_0x4ce96c=>_0x4ce96c['containsRange'](_0x39c1f8,!0x0)))){for(const _0x32106d of _0x15583b['getAllAdjacentSuggestions']())_0x32106d['isInContent']&&(_0x32106d['discard'](),_0xbbb534=!0x0);}}}return _0xbbb534;}),_0x17314c['model']['document']['registerPostFixer'](_0x360f36=>{const _0x3b0b0f=_0x17314c['commands']['get']('redo');if(!_0x3b0b0f||!_0x3b0b0f['_createdBatches']['has'](_0x360f36['batch']))return!0x1;let _0x17b1c4=!0x1;const _0x50f6fe=_0x17314c['plugins']['get']('Users')['me'],_0x528ffa=_0x17314c['model']['document']['differ']['getChanges'](),_0x2e97c6=Array['from'](_0x17314c['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x1a1228,data:_0x1de06c})=>{const {group:_0x2e58df,subType:_0x3b1759,authorId:_0x579150}=_0x430de9['_splitMarkerName'](_0x1a1228);return'suggestion'==_0x2e58df&&'tablePaste'==_0x3b1759&&_0x579150==_0x50f6fe['id']&&!_0x1de06c['oldRange'];});for(const _0x5db172 of _0x528ffa){if('insert'!=_0x5db172['type']||'tableCellSuggestion'!=_0x5db172['name']||0x1!=_0x5db172['length'])continue;const _0x2c74be=_0x360f36['createRange'](_0x5db172['position'],_0x5db172['position']['getShiftedBy'](0x1));if(!_0x2e97c6['find'](({data:_0x49fce6})=>_0x49fce6['newRange']['isEqual'](_0x2c74be))){for(const {name:_0x3a33f6,data:_0x57d084}of _0x2e97c6)if(_0x2c74be['containsRange'](_0x57d084['newRange'])){_0x360f36['updateMarker'](_0x3a33f6,{'range':_0x2c74be}),_0x17b1c4=!0x0;break;}}}return _0x17b1c4;}),_0x17314c['model']['document']['registerPostFixer'](_0x4a247c=>{let _0x3f9e79=!0x1;const _0x3f2386=_0x17314c['plugins']['get']('Users')['me'],_0x2132f9=_0x430de9['getSuggestions']()['filter'](_0x1726dc=>_0x1726dc['isInContent']&&_0x1726dc['author']==_0x3f2386),_0x713041=new Set(),_0x5cc7a8=new Set();for(const _0x42a784 of _0x2132f9)if('tablePaste'==_0x42a784['subType'])for(const _0x5edc81 of _0x42a784['getMarkers']()){const _0xb97bf2=_0x5edc81['getRange']()['getContainedElement']();if(_0xb97bf2){if(_0xb97bf2['is']('element','tableCellSuggestion')&&Be(_0xb97bf2)){_0x42a784['removeMarker'](_0x5edc81['name']),_0x713041['add'](_0xb97bf2),_0x3f9e79=!0x0;const _0x8141bb=_0xb97bf2['nextSibling'],_0x23c61a=_0xb97bf2['previousSibling'],_0x19a886=_0x8141bb&&_0x8141bb['is']('element','tableCellSuggestion'),_0xd57d41=_0x23c61a&&_0x23c61a['is']('element','tableCellSuggestion');_0x19a886&&!_0x713041['has'](_0x8141bb)&&_0x5cc7a8['add'](_0x8141bb),_0xd57d41&&!_0x713041['has'](_0x23c61a)&&_0x5cc7a8['add'](_0x23c61a);}else _0xb97bf2['is']('element','paragraph')&&_0xb97bf2['isEmpty']&&(_0x42a784['removeMarker'](_0x5edc81['name']),_0x3f9e79=!0x0);}}else{if('tablePasteCell'==_0x42a784['subType']){if(!_0x42a784['attributes']||!_0x42a784['attributes']['tablePasteChainId'])continue;const _0x859fde=_0x42a784['attributes']['markerAttributes'];if(_0x859fde&&Object['keys'](_0x859fde)['length'])continue;const _0x5087b5=_0x42a784['attributes']['tablePasteChainId'];let _0x218b94=!0x0,_0x26cd77=!0x0;for(const _0x43fc0f of _0x2132f9)if(_0x43fc0f['subType']&&_0x43fc0f['subType']['startsWith']('tablePaste')){if(!_0x43fc0f['attributes']['tablePasteChainId']){_0x26cd77=!0x1;break;}if(_0x43fc0f['id']!=_0x42a784['id']&&_0x43fc0f['attributes']['tablePasteChainId']==_0x5087b5){_0x218b94=!0x1;break;}}_0x26cd77&&_0x218b94&&(_0x42a784['removeMarkers'](),_0x3f9e79=!0x0);}}for(const _0x4d104e of _0x713041)_0x4a247c['remove'](_0x4d104e);for(const _0xc5fa7a of _0x5cc7a8)_0x4a247c['unwrap'](_0xc5fa7a);return _0x3f9e79;}),_0x17314c['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x1d2623=>_0x1c14bb(_0x1d2623),'converterPriority':'high'}),_0x17314c['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4cf8d5,_0x2957df)=>_0x2957df['options']['showSuggestionHighlights']?_0x1c14bb(_0x4cf8d5,!0x1):null,'converterPriority':'high'});const _0x1602f0=_0x17314c['editing']['view'];this['listenTo'](_0x1602f0['document'],'clipboardOutput',(_0x5f2abb,_0x1e8b74)=>{const _0x17deac=[];for(const _0x49d3cf of _0x1602f0['createRangeIn'](_0x1e8b74['content'])['getItems']())_0x49d3cf['is']('element','suggestion-td')&&_0x17deac['push'](_0x49d3cf);_0x1602f0['change'](_0x2b58a4=>{for(const _0x404cfb of _0x17deac)_0x2b58a4['move'](_0x2b58a4['createRangeIn'](_0x404cfb),_0x2b58a4['createPositionBefore'](_0x404cfb)),_0x2b58a4['remove'](_0x404cfb);});});}}function Be(_0x330ffc){if(_0x330ffc['isEmpty'])return!0x0;const _0x133535=_0x330ffc['getChild'](0x0);return _0x133535['is']('element','paragraph')&&_0x133535['isEmpty'];}function Oe(_0xc5e782,_0x4d9554={},_0x341f65){for(const {isAnchor:_0x17b104,cellHeight:_0x432c86,cellWidth:_0x210bf2}of _0x341f65['createTableWalker'](_0xc5e782,{'includeAllSlots':!0x0,..._0x4d9554}))if(!_0x17b104||0x1!=_0x432c86||0x1!=_0x210bf2)return!0x1;return!0x0;}class Ot extends _0x452242{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x651ea5=this['editor']['plugins']['get']('TrackChangesEditing');_0x651ea5['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x651ea5['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x651ea5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x651ea5['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x651ea5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x651ea5['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x186bd0,_0x4b44d3){const _0x25dd4e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x215e2d=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x51cf8a=_0x4b44d3['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0xbe1bcb=_0x215e2d['getColumnGroupElement'](_0x51cf8a);let _0x5e381e=_0xbe1bcb?_0x215e2d['getTableColumnsWidths'](_0xbe1bcb):null,_0x20f2fa=_0x51cf8a['getAttribute']('tableWidth')||null;const _0x1f9c10=_0x4b44d3['tableWidth']||_0x20f2fa,_0x2b9423=_0x4b44d3['columnWidths']||_0x5e381e,_0x4ee9ab=this['editor']['plugins']['get']('Users')['me'];for(const _0x404887 of _0x25dd4e['getSuggestions']()){const _0x97cd32=_0x404887['getContainedElement']();if('resizeTable'===_0x404887['subType']&&_0x97cd32===_0x51cf8a){_0x404887['author']!==_0x4ee9ab&&_0x404887['discard']();const _0x338ec0=_0x404887['data']['commandParams'];_0x20f2fa=_0x338ec0[0x0]['tableWidth'],_0x5e381e=_0x338ec0[0x0]['columnWidths'];break;}}_0x186bd0({'table':_0x51cf8a,'tableWidth':_0x1f9c10,'columnWidths':_0x2b9423}),_0x25dd4e['markBlockFormat'](_0x51cf8a,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x20f2fa,'columnWidths':_0x5e381e}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x1bc8ac){if('formatBlock'!=_0x1bc8ac['type']&&'formatInline'!=_0x1bc8ac['type'])return;const {data:_0x1b0225}=_0x1bc8ac;if(_0x1b0225&&'resizeTable'===_0x1b0225['formatGroupId']){const _0x51d85a='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x51d85a)};}}}class xt extends _0x452242{['afterInit'](){const _0x291dc2=this['editor'];_0x291dc2['plugins']['has']('Template')&&_0x291dc2['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x452242{['afterInit'](){const _0x6b0b3d=this['editor'];if(!_0x6b0b3d['commands']['get']('insertTableOfContents'))return;_0x6b0b3d['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x5d869b=_0x6b0b3d['plugins']['get']('TrackChangesEditing'),_0x44ba7f=_0x6b0b3d['locale'];_0x5d869b['descriptionFactory']['registerElementLabel']('tableOfContents',_0x3090d3=>o(_0x44ba7f,'ELEMENT_TABLE_OF_CONTENTS',_0x3090d3));}}class Rt extends _0x452242{['afterInit'](){const _0x2cfb86=this['editor'];if(!_0x2cfb86['plugins']['has']('Title'))return;const _0xfe3516=_0x2cfb86['plugins']['get']('TrackChangesEditing');_0xfe3516['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x2cfb86['locale'],'ELEMENT_TITLE')),_0x2cfb86['model']['document']['registerPostFixer'](_0x3e638b=>{let _0x1a609a=!0x1;const _0x3849d6=Array['from'](_0x2cfb86['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x40ab5d,data:_0x4b6647}of _0x3849d6){const {group:_0x44a1cd}=_0xfe3516['_splitMarkerName'](_0x40ab5d);if('suggestion'!==_0x44a1cd||!_0x4b6647['newRange'])continue;const _0x3cca11=_0x4b6647['newRange'],_0x129d4a=_0x3cca11['end']['nodeBefore'];if(!_0x129d4a||!_0x129d4a['is']('element','title-content'))continue;if(!_0x3cca11['start']['isTouching'](_0x3cca11['end']))continue;const _0x53f4b4=_0x2cfb86['model']['schema']['getNearestSelectionRange'](_0x3cca11['end'],'forward');if(_0x53f4b4&&_0x53f4b4['isCollapsed']){const _0x4a5fa4=_0x3e638b['createRange'](_0x3cca11['start'],_0x53f4b4['start']);_0x4a5fa4['isEqual'](_0x3cca11)||(_0x3e638b['updateMarker'](_0x40ab5d,{'range':_0x4a5fa4}),_0x1a609a=!0x0);}_0x1a609a||(_0x3e638b['removeMarker'](_0x40ab5d),_0x1a609a=!0x0);}return _0x1a609a;});}}class Tt extends _0x452242{['afterInit'](){const _0x4676a4=this['editor'],_0x564e83=_0x4676a4['plugins']['get']('TrackChangesEditing');_0x4676a4['plugins']['has']('Uploadcare')&&(_0x564e83['enableCommand']('uploadcare'),_0x4676a4['plugins']['has']('UploadcareImageEdit')&&(_0x564e83['enableCommand']('uploadcareImageEdit'),_0x564e83['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x564e83['descriptionFactory']['registerDescriptionCallback'](_0x1470fd=>{if('attribute'!=_0x1470fd['type'])return;const {data:_0x3e60fe}=_0x1470fd;return _0x3e60fe&&'uploadcareImageId'==_0x3e60fe['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x452242{['afterInit'](){const _0x117b0f=this['editor'],_0x3f9d37=_0x117b0f['plugins']['get']('TrackChangesEditing');_0x117b0f['plugins']['has']('UndoEditing')&&(_0x3f9d37['enableCommand']('undo'),_0x3f9d37['enableCommand']('redo'));}}class Ut extends _0x452242{static get['requires'](){return[Nt];}['afterInit'](){const _0x169a54=this['editor'];if(!_0x169a54['plugins']['has']('TableCaptionEditing'))return;_0x169a54['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x452242{['tableProperties'];['tableCellProperties'];constructor(_0x146fae){super(_0x146fae),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'],_0x146fae['config']['get']('experimentalFlags.tableCellTypeSupport')&&this['tableCellProperties']['push']('tableCellType');}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x4cedbc=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x3a1c43 of this['tableProperties'])_0x4cedbc['enableCommand'](_0x3a1c43,(_0x4d1d0d,_0x30369a)=>{const _0x1edb1c=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x3a1c43,[_0x1edb1c],this['tableProperties'],'tableProperties',_0x4d1d0d,_0x30369a);});_0x4cedbc['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x4cedbc['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4cedbc['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x574ce0,_0x461765)=>this['handleDiscardAction'](this['tableProperties'],_0x574ce0,_0x461765)),_0x4cedbc['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x1d6df1 of this['tableCellProperties'])this['editor']['commands']['get'](_0x1d6df1)&&_0x4cedbc['enableCommand'](_0x1d6df1,(_0x3714ae,_0x29d711)=>{const _0xd08b82=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x1d6df1,_0xd08b82,this['tableCellProperties'],'tableCellProperties',_0x3714ae,_0x29d711);});_0x4cedbc['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x4cedbc['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4cedbc['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x1733ad,_0xefb7e)=>this['handleDiscardAction'](this['tableCellProperties'],_0x1733ad,_0xefb7e)),_0x4cedbc['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&(_0x4cedbc['registerBlockAttribute']('tableCellType'),_0x4cedbc['descriptionFactory']['registerAttributeLabel']('tableCellType',o(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE')));}_0x4cedbc['descriptionFactory']['registerDescriptionCallback'](_0x328379=>this['handleSuggestionDescription'](_0x328379)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x37fe8e,_0x388869,_0x3aa7c0,_0x374041,_0x5c339a,_0x1eab17){const _0x498111=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x1eab17['batch'],()=>{for(const _0x176e8c of _0x388869){if(this['_getSuggestion'](_0x176e8c,_0x374041))_0x5c339a(_0x1eab17);else{const _0x4de040={};for(const _0x56e0ef of _0x3aa7c0){const _0x344a2d=_0x176e8c['getAttribute'](_0x56e0ef);void 0x0!==_0x344a2d&&(_0x4de040[_0x56e0ef]=_0x344a2d);}_0x5c339a(_0x1eab17),_0x498111['markBlockFormat'](_0x176e8c,{'commandParams':[_0x4de040]},[],_0x374041);}}});}['handleDiscardAction'](_0x1c4a3e,_0x10d927,_0x3c03d8){const _0x3d482c=_0x10d927[0x0]['start']['nodeAfter'],_0x32c795=_0x3c03d8['commandParams'][0x0];this['editor']['model']['change'](_0x4bd204=>{for(const _0x1410ae of _0x1c4a3e)void 0x0!==_0x32c795[_0x1410ae]?_0x4bd204['setAttribute'](_0x1410ae,_0x32c795[_0x1410ae],_0x3d482c):_0x4bd204['removeAttribute'](_0x1410ae,_0x3d482c);});}['handleSuggestionDescription'](_0x2d78b6){if(_0x2d78b6['data'])switch(_0x2d78b6['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x3e949f,_0x185980){const _0x3eebe0=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3edc51 of _0x3eebe0['getSuggestions']({'skipNotAttached':!0x0})){const _0x19a4ec=_0x3edc51['getContainedElement']();if(_0x3edc51['subType']===_0x185980&&_0x19a4ec===_0x3e949f)return _0x3edc51;}return null;}['_registerTablePropertiesAttributes'](){const _0x4de748=this['editor']['plugins']['get']('TrackChangesEditing'),_0x53b470=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x3db2c6 of _0x53b470){const _0x260367=_0x3db2c6['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x4de748['descriptionFactory']['registerAttributeLabel'](_0x3db2c6,o(this['editor']['locale'],'FORMAT_'+_0x260367));}}}class Ft extends _0x452242{['afterInit'](){const _0x390cbd=this['editor'];if(!_0x390cbd['plugins']['has']('LineHeight'))return;const _0x1aaccf=_0x390cbd['plugins']['get']('TrackChangesEditing'),_0x4f20f0=_0x390cbd['locale'];_0x1aaccf['enableDefaultAttributesIntegration']('lineHeight'),_0x1aaccf['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x4f20f0,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x452242{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',Jt,_0x5123b8,_0x5a281d,_0x3ddfd3,R,T,E,U,V,F,G,J,L,q,z,K,Q,X,Y,Z,tt,nt,it,et,st,ot,rt,ct,at,ut,ft,ht,gt,mt,kt,lt,W,Ft,H,dt,pt,wt,bt,yt,jt,St,It,At,_t,Ct,Nt,$t,vt,Dt,Ut,Bt,Ot,Mt,Vt,xt,Rt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5c9fd3){super(_0x5c9fd3),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x5efc74,_0x36cbfd,_0x40aef2,_0x1baf2f)=>{this['_model']['change'](()=>{for(const _0x119cc7 of[..._0x1baf2f,..._0x40aef2])this['_model']['markers']['has'](_0x119cc7)&&_0x5c9fd3['editing']['reconvertMarker'](_0x119cc7);});}),this['descriptionFactory']=new M(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new qt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x5c9fd3['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x5c9fd3['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x5c9fd3['config']['get']('trackChanges.trackFormatChanges'),_0x5c9fd3['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x5c9fd3['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new $(_0x5c9fd3,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x2491e0=this['editor'];_0x2491e0['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x37f873,{writer:_0x37eddc})=>{let _0x348fb9='suggestion:'+_0x37f873['getAttribute']('suggestion-type')+':'+_0x37f873['getAttribute']('id');return _0x37f873['getAttribute']('marker-count')&&(_0x348fb9+=':'+_0x37f873['getAttribute']('marker-count')),_0x37eddc['createElement']('$marker',{'data-name':_0x348fb9});}}),_0x2491e0['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x2491e0['model']['document']['registerPostFixer'](_0xd74b6d=>{let _0x475798=!0x1;const _0x44d30a=Array['from'](_0x2491e0['model']['document']['differ']['getChangedMarkers']()),_0x113ce7=new Set();for(const {name:_0x3b8760,data:_0x172e2b}of _0x44d30a){const {group:_0x56a373,type:_0x52edc4,subType:_0x257e05,id:_0x4439a6}=this['_splitMarkerName'](_0x3b8760);if('suggestion'!==_0x56a373)continue;const _0x43f9cd=_0x257e05?'suggestion:'+_0x52edc4+':'+_0x257e05+':'+_0x4439a6:'suggestion:'+_0x52edc4+':'+_0x4439a6,_0x212abc=_0x2491e0['model']['markers']['getMarkersGroup'](_0x43f9cd),_0x164a76=_0x2491e0['model']['markers']['get'](_0x3b8760),_0x455e45=this['_suggestions']['get'](_0x4439a6);if(null!=_0x172e2b['newRange']){'formatInline'==_0x52edc4&&(_0x475798=_0x475798||Wt(_0x172e2b['newRange'],_0x3b8760,_0xd74b6d,_0x2491e0['model']['schema']));const _0x1fe93b='attribute'==_0x52edc4&&this['_isBlockAttribute'](_0x257e05['split']('|')[0x0]),_0x2adbe9='attribute'==_0x52edc4&&this['_isInlineAttribute'](_0x257e05['split']('|')[0x0]);if(_0x172e2b['newRange']['isCollapsed']||'$graveyard'==_0x172e2b['newRange']['root']['rootName']||'formatBlock'==_0x52edc4&&!Qt(_0x172e2b['newRange'])||_0x1fe93b&&!Qt(_0x172e2b['newRange'])||_0x2adbe9&&Xt(_0x172e2b['newRange'])||'deletion'==_0x52edc4&&Xt(_0x172e2b['newRange'])||_0x164a76&&Yt(_0x164a76,_0x212abc))_0xd74b6d['removeMarker'](_0x3b8760),_0x475798=!0x0;else{if(!_0x455e45||!_0x455e45['isInContent'])continue;if(_0x172e2b['newRange']&&_0x172e2b['oldRange']&&_0x172e2b['newRange']['isEqual'](_0x172e2b['oldRange']))continue;_0x113ce7['add'](_0x455e45);}}}return _0x113ce7['size']>0x0&&(_0x475798=!!this['_joinWithAdjacentSuggestions'](_0x113ce7)||_0x475798),_0x475798;}),_0x2491e0['model']['document']['registerPostFixer'](_0x556c4a=>{let _0x273f39=!0x1;for(const _0x375762 of _0x2491e0['model']['document']['differ']['getChanges']())if('insert'==_0x375762['type'])for(const _0x53e41e of this['_suggestions']['values']()){if(_0x53e41e['isMultiRange']||!_0x53e41e['isInContent'])continue;const _0x53b240='formatBlock'==_0x53e41e['type'],_0x308d96=this['_getAttributeKey'](_0x53e41e),_0x45886d=_0x308d96&&this['_isBlockAttribute'](_0x308d96);if(!_0x53b240&&!_0x45886d)continue;const _0x9220f1=_0x53e41e['getFirstRange']();if(_0x9220f1['start']['parent']!=_0x9220f1['end']['parent']&&!_0x9220f1['end']['isAtEnd']){const _0x7a0b18=_0x2491e0['model']['createPositionAt'](_0x9220f1['start']['nodeAfter'],'end'),_0x51fb13=_0x2491e0['model']['createRange'](_0x9220f1['start'],_0x7a0b18);_0x556c4a['updateMarker'](_0x53e41e['getFirstMarker'](),{'range':_0x51fb13}),_0x273f39=!0x0;}}return _0x273f39;}),_0x2491e0['model']['document']['registerPostFixer'](_0x55f94c=>this['_processAttributeChanges'](_0x55f94c)),_0x2491e0['model']['document']['registerPostFixer'](_0x2666ff=>!_0x2666ff['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2666ff)),_0x2491e0['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x2491e0['model']['document']['on']('change:data',(_0x561c6b,_0xea8ec3)=>{if(!_0xea8ec3['isLocal']||_0xea8ec3['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x3374ab=_0x2491e0['model']['document']['differ']['getChanges']();if(0x0==_0x3374ab['length'])return;const _0x5433d2=[],_0x2b782e=_0x3374ab['filter'](_0x463a56=>'attribute'==_0x463a56['type']),_0x4b2be4=_0x3374ab['filter'](_0x23a572=>'insert'==_0x23a572['type']&&'$text'!=_0x23a572['name']);for(const _0x49217a of _0x2b782e)this['_isRegisteredAttribute'](_0x49217a['attributeKey'])&&_0x5433d2['push']({'key':_0x49217a['attributeKey'],'newValue':_0x49217a['attributeNewValue'],'oldValue':_0x49217a['attributeOldValue'],'range':Zt(_0x49217a['range'],_0x2491e0['model'])});for(const _0x1ef27c of _0x4b2be4){if('rename'!=_0x1ef27c['action']&&'refresh'!=_0x1ef27c['action'])continue;const _0x5adc00=tn(_0x1ef27c['position']['nodeAfter'],_0x2491e0['model']),_0x16e59c=_0x1ef27c['before'];'rename'==_0x1ef27c['action']&&_0x5433d2['push']({'key':m,'newValue':_0x1ef27c['name'],'oldValue':_0x16e59c['name'],'range':_0x5adc00});for(const [_0x2af8e7,_0x5ce377]of _0x16e59c['attributes']){if(!this['_isRegisteredAttribute'](_0x2af8e7))continue;const _0x29b15f=_0x1ef27c['attributes']['get'](_0x2af8e7);_0x5ce377!==_0x29b15f&&_0x5433d2['push']({'key':_0x2af8e7,'newValue':_0x29b15f,'oldValue':_0x5ce377,'range':_0x5adc00});}for(const [_0x34bda5,_0x4cfea8]of _0x1ef27c['attributes'])this['_isRegisteredAttribute'](_0x34bda5)&&(_0x16e59c['attributes']['has'](_0x34bda5)||_0x5433d2['push']({'key':_0x34bda5,'newValue':_0x4cfea8,'oldValue':null,'range':_0x5adc00}));}0x0!=_0x5433d2['length']&&_0x2491e0['model']['enqueueChange'](_0xea8ec3,_0x45118d=>{const _0x4a1e05=_0x3da106();for(const {range:_0x49feee,key:_0x589851,oldValue:_0x575996,newValue:_0x271673}of _0x5433d2)this['markAttributeChange'](_0x49feee,_0x589851,_0x575996,_0x271673,{'groupId':_0x4a1e05});this['_reduceExistingSuggestions'](_0x45118d,_0x5433d2);});},{'priority':'lowest'}),_0x2491e0['model']['markers']['on']('update:suggestion',(_0x28e417,_0x5a83ac,_0x163ba3)=>{if(null==_0x163ba3){const {id:_0x2eee8b}=this['_splitMarkerName'](_0x5a83ac['name']),_0x5f44f6=this['_suggestions']['get'](_0x2eee8b);_0x5f44f6&&_0x5f44f6['addMarkerName'](_0x5a83ac['name']);}}),_0x2491e0['model']['document']['on']('change:data',()=>{const _0x3f0acc=Array['from'](_0x2491e0['model']['document']['differ']['getChangedMarkers']())['filter'](_0x280576=>'suggestion'===this['_splitMarkerName'](_0x280576['name'])['group']);if(0x0===_0x3f0acc['length'])return;_0x3f0acc['sort']((_0x4705e4,_0x4877d2)=>{const _0xd82c0c=_0x4705e4['data']['oldRange'],_0x565108=_0x4877d2['data']['oldRange'];return null===_0xd82c0c&&null===_0x565108?0x0:null===_0xd82c0c&&null!==_0x565108?-0x1:null!==_0xd82c0c&&null===_0x565108?0x1:_0xd82c0c['start']['isBefore'](_0x565108['start'])?-0x1:0x1;});const _0x347534=new Set(),_0x14b347=new Set();for(const {name:_0x427c7f,data:_0x442c87}of _0x3f0acc){const {id:_0x3d19e9}=this['_splitMarkerName'](_0x427c7f);if(null===_0x442c87['oldRange']){const _0x41500b=this['_handleNewSuggestionMarker'](_0x427c7f);_0x14b347['add'](_0x41500b);}else{const _0x1a8543=this['_suggestions']['get'](_0x3d19e9);null!==_0x442c87['newRange']||_0x1a8543['isInContent']?(_0x347534['add'](_0x1a8543['head']),_0x14b347['add'](_0x1a8543)):this['_removeSuggestion'](_0x1a8543);}}_0x14b347['size']>0x0&&this['_refreshSuggestionsChain'](_0x14b347);for(const _0x6a324 of _0x347534)this['fire']('suggestionChanged',_0x6a324);}),_0x2491e0['model']['on']('applyOperation',(_0x5c5ec9,_0x4bbd50)=>{const _0x4a41f9=_0x4bbd50[0x0];if(!this['_suggestions']['size'])return;if(!_0x4a41f9['isDocumentOperation'])return;if(_0x4a41f9['batch']['isUndo']||!_0x4a41f9['batch']['isLocal'])return;let _0x276652,_0x5986b4;switch(_0x4a41f9['type']){case'insert':_0x276652=_0x2491e0['model']['createPositionAt'](_0x4a41f9['position']),_0x5986b4=_0x276652['getShiftedBy'](_0x4a41f9['howMany']);break;case'split':_0x276652=_0x2491e0['model']['createPositionAt'](_0x4a41f9['splitPosition']),_0x5986b4=_0x2491e0['model']['createPositionAt'](_0x4a41f9['moveTargetPosition']);break;case'move':_0x276652=_0x2491e0['model']['createPositionAt'](_0x4a41f9['targetPosition']),_0x5986b4=_0x276652['getShiftedBy'](_0x4a41f9['howMany']);break;default:return;}const _0x201dff=_0x2491e0['model']['createRange'](_0x276652,_0x5986b4);_0x2491e0['model']['change'](()=>{for(const {suggestion:_0x18d1d0,meta:_0x19eaa8}of this['_findSuggestions'](_0x201dff)){if(_0x18d1d0['isMultiRange'])continue;if('formatInline'==_0x18d1d0['type'])continue;const _0x498463=this['_getAttributeKey'](_0x18d1d0);if(_0x498463&&this['_isBlockAttribute'](_0x498463)&&'split'!=_0x4a41f9['type'])continue;const _0x3a06a3=_0x18d1d0['data']&&_0x18d1d0['data']['multipleBlocks'];('formatBlock'!=_0x18d1d0['type']||'split'==_0x4a41f9['type']&&!_0x3a06a3)&&(_0x19eaa8['containsRangeInObject']||'insertion'==_0x18d1d0['type']&&_0x19eaa8['isOwn']||_0x18d1d0['getFirstRange']()['containsRange'](_0x201dff)&&this['_breakSuggestionMarker'](_0x18d1d0,_0x276652,_0x5986b4));}});},{'priority':'lowest'}),_0x2491e0['model']['on']('deleteContent',(_0x3b745c,_0x2c5ce1)=>{const _0x5eafe3=_0x2c5ce1[0x0],_0x463d9e=_0x2c5ce1[0x1];if(_0x463d9e&&_0x463d9e['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x5eafe3['isCollapsed'])return;const _0x19fc13=_0x2491e0['model']['schema'],{start:_0x3a9c5f,end:_0x46ea97}=_0x5eafe3['getFirstRange'](),_0x44658e=_0x3a9c5f['nodeAfter']&&_0x19fc13['isLimit'](_0x3a9c5f['nodeAfter'])?null:_0x19fc13['getNearestSelectionRange'](_0x3a9c5f,'forward'),_0x5789b2=_0x46ea97['nodeBefore']&&_0x19fc13['isLimit'](_0x46ea97['nodeBefore'])?null:_0x19fc13['getNearestSelectionRange'](_0x46ea97,'backward'),_0x48fb85=_0x2491e0['model']['createRange'](_0x44658e?_0x44658e['start']:_0x3a9c5f,_0x5789b2?_0x5789b2['end']:_0x46ea97);_0x2491e0['model']['change'](_0x43c67c=>{this['markDeletion'](_0x48fb85);const _0x2e698e=_0x2491e0['model']['schema']['getNearestSelectionRange'](_0x48fb85['start']);_0x5eafe3['is']('documentSelection')?_0x43c67c['setSelection'](_0x2e698e):_0x5eafe3['setTo'](_0x2e698e);}),_0x3b745c['stop']();},{'priority':_0x1a1f89['normal']+0xa}),_0x2491e0['model']['on']('insertContent',(_0x12f9c5,_0x4ee331)=>{const _0x239050=_0x4ee331[_0x4ee331['length']-0x1];_0x239050&&_0x239050['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x2491e0['model']['change'](()=>{let _0xc42914=_0x2491e0['model']['insertContent'](_0x4ee331[0x0],_0x4ee331[0x1],_0x4ee331[0x2],{'forceDefaultExecution':!0x0});if(!_0xc42914)return;_0x12f9c5['return']=_0xc42914['clone']();const _0x250c9b=_0xc42914['end']['nodeBefore'],_0xda9419=_0x2491e0['model']['schema'];_0x250c9b&&_0xda9419['isBlock'](_0x250c9b)&&!_0xda9419['isObject'](_0x250c9b)&&(_0xc42914=_0x2491e0['model']['createRange'](_0xc42914['start'],_0x2491e0['model']['createPositionAt'](_0x250c9b,'end'))),this['markInsertion'](_0xc42914);}),_0x12f9c5['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0xd27035=new v(_0x2491e0,this['_suggestions']);_0x2491e0['commands']['add']('acceptSuggestion',_0xd27035),this['enableCommand']('acceptSuggestion');const _0x527b49=new D(_0x2491e0,this['_suggestions']);_0x2491e0['commands']['add']('discardSuggestion',_0x527b49),this['enableCommand']('discardSuggestion'),_0x2491e0['commands']['add']('acceptAllSuggestions',new B(_0x2491e0,_0xd27035,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x2491e0['commands']['add']('discardAllSuggestions',new B(_0x2491e0,_0x527b49,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x2491e0['commands']['add']('acceptSelectedSuggestions',new O(_0x2491e0,_0xd27035,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x2491e0['commands']['add']('discardSelectedSuggestions',new O(_0x2491e0,_0x527b49,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x242ef8=_0x2491e0['plugins']['get']('CommentsRepository');this['listenTo'](_0x242ef8,'addComment',(_0x6137c,{threadId:_0x3483d6})=>{const _0x14b419=this['_suggestions']['get'](_0x3483d6);_0x14b419&&_0x14b419['commentThread']&&0x1===_0x14b419['commentThread']['length']&&this['_updateSuggestionData'](_0x3483d6,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x242ef8,'removeComment',(_0x4cc56a,{threadId:_0x2a73d7})=>{const _0x51195f=this['_suggestions']['get'](_0x2a73d7);_0x51195f&&_0x51195f['commentThread']&&!_0x51195f['commentThread']['length']&&this['_updateSuggestionData'](_0x2a73d7,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x2fa187){const _0xbd1b75=_0x5db2c1([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x35b513=0x3d8d0df,_0x226045=0x3dfae17^_0x35b513,_0x3fc022=window[_0x5db2c1([0x44,0x61,0x74,0x65])][_0x5db2c1([0x6e,0x6f,0x77])](),_0x1cead5=_0x2fa187[_0x5db2c1([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4cbf1c=new window[(_0x5db2c1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3bf3fb=>{_0x1cead5[_0x5db2c1([0x6f,0x6e,0x63,0x65])](_0x5db2c1([0x72,0x65,0x61,0x64,0x79]),_0x3bf3fb);}),_0x3a6cc9={[_0x5db2c1([0x6b,0x74,0x79])]:_0x5db2c1([0x45,0x43]),[_0x5db2c1([0x75,0x73,0x65])]:_0x5db2c1([0x73,0x69,0x67]),[_0x5db2c1([0x63,0x72,0x76])]:_0x5db2c1([0x50,0x2d,0x32,0x35,0x36]),[_0x5db2c1([0x78])]:_0x5db2c1([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]),[_0x5db2c1([0x79])]:_0x5db2c1([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]),[_0x5db2c1([0x61,0x6c,0x67])]:_0x5db2c1([0x45,0x53,0x32,0x35,0x36])},_0x242b22=_0x1cead5[_0x5db2c1([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5db2c1([0x67,0x65,0x74])](_0x5db2c1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xc6b747(){let _0x26798f,_0x34f809=null,_0x4e956e=null;try{if(_0x242b22==_0x5db2c1([0x47,0x50,0x4c]))return _0x5db2c1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x26798f=_0x4048dc(),!_0x26798f)return _0x5db2c1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x26798f[_0x5db2c1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4e956e=_0x33cb85(_0x26798f[_0x5db2c1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x26798f[_0x5db2c1([0x6a,0x74,0x69])])),await _0x1a73a4()?_0x1c659e()?_0x5d9ccf()?_0x5db2c1([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x579af4()?(_0x26798f[_0x5db2c1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5db2c1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x34f809=_0x4296f8(_0x5db2c1([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x57a58b()):_0x5db2c1([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5db2c1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5db2c1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5db2c1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5d9ccf(){const _0x4e9a4b=[_0x5db2c1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5db2c1([0x74,0x72,0x69,0x61,0x6c])][_0x5db2c1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x26798f[_0x5db2c1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3fc022/0x3e8:0xe10*_0x226045;return _0x26798f[_0x5db2c1([0x65,0x78,0x70])]<_0x4e9a4b;}function _0x1c659e(){const _0x5a292a=_0x26798f[_0x5db2c1([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x5a292a)return!0x1;if(_0x5a292a[_0x5db2c1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5db2c1([0x2a])))return!0x0;if(_0x5a292a[_0x5db2c1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5db2c1([0x54,0x43])))return!0x0;if(_0x5a292a[_0x5db2c1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5db2c1([0x52,0x54,0x43]))){if(_0x2e4cfc())return!0x0;if(_0x4a49c2()||_0x555064())return!0x0;}return!0x1;}function _0x579af4(){const _0x5e69b0=_0x26798f[_0x5db2c1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5e69b0||0x0==_0x5e69b0[_0x5db2c1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x29088d}=new URL(window[_0x5db2c1([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5e69b0[_0x5db2c1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29088d))return!0x0;const _0x346ee3=_0x29088d[_0x5db2c1([0x73,0x70,0x6c,0x69,0x74])](_0x5db2c1([0x2e]));return _0x5e69b0[_0x5db2c1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x412170=>_0x412170[_0x5db2c1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5db2c1([0x2a])))[_0x5db2c1([0x6d,0x61,0x70])](_0x520223=>_0x520223[_0x5db2c1([0x73,0x70,0x6c,0x69,0x74])](_0x5db2c1([0x2e])))[_0x5db2c1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x20a9c8=>_0x20a9c8[_0x5db2c1([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x346ee3[_0x5db2c1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5db2c1([0x6d,0x61,0x70])](_0x2153b0=>Array(_0x346ee3[_0x5db2c1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2153b0[_0x5db2c1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5db2c1([0x66,0x69,0x6c,0x6c])](_0x2153b0[0x0]===_0x5db2c1([0x2a])?_0x5db2c1([0x2a]):'')[_0x5db2c1([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2153b0))[_0x5db2c1([0x73,0x6f,0x6d,0x65])](_0x17bbbb=>_0x346ee3[_0x5db2c1([0x65,0x76,0x65,0x72,0x79])]((_0x49b085,_0x30f60e)=>_0x17bbbb[_0x30f60e]===_0x49b085||_0x17bbbb[_0x30f60e]===_0x5db2c1([0x2a])));}function _0x57a58b(){return _0x34f809&&_0x4e956e?new window[(_0x5db2c1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x41b766,_0x2f8c13)=>{_0x34f809[_0x5db2c1([0x74,0x68,0x65,0x6e])](_0x41b766,_0x2f8c13),_0x4e956e[_0x5db2c1([0x74,0x68,0x65,0x6e])](_0x2e6fb8=>{_0x2e6fb8!=_0x5db2c1([0x56,0x61,0x6c,0x69,0x64])&&_0x41b766(_0x2e6fb8);},_0x2f8c13);}):_0x34f809||_0x4e956e||_0x5db2c1([0x56,0x61,0x6c,0x69,0x64]);}}function _0x33cb85(_0x502dd1,_0x3a176a){return new window[(_0x5db2c1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4aa564=>{if(_0x16bd79())return _0x4aa564(_0x5db2c1([0x56,0x61,0x6c,0x69,0x64]));_0x3097b2(),_0x1cead5[_0x5db2c1([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5db2c1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xe5f5d2=!0x1;const _0x1b21ae=_0x3da106();function _0x2944a0(_0x3a2eba){return!!_0x3a2eba&&(typeof _0x3a2eba===_0x5db2c1([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3a2eba===_0x5db2c1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3a2eba[_0x5db2c1([0x74,0x68,0x65,0x6e])]===_0x5db2c1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3a2eba[_0x5db2c1([0x63,0x61,0x74,0x63,0x68])]===_0x5db2c1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3072fa(_0x4b6169){_0x1a00db(_0x4b6169)[_0x5db2c1([0x74,0x68,0x65,0x6e])](_0x26fd91=>{if(!_0x26fd91||_0x26fd91[_0x5db2c1([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5db2c1([0x6f,0x6b]))return _0x5db2c1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2a876e(_0x27d22b(_0x1b21ae+_0x3a176a))!=_0x26fd91[_0x5db2c1([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5db2c1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5db2c1([0x56,0x61,0x6c,0x69,0x64]);})[_0x5db2c1([0x74,0x68,0x65,0x6e])](_0x6f911b=>(_0xd812b6(),_0x6f911b),()=>{const _0x7ca2aa=_0x56a318();return null==_0x7ca2aa?(_0xd812b6(),_0x5db2c1([0x56,0x61,0x6c,0x69,0x64])):_0x5db2c1(_0x3fc022-_0x7ca2aa>(0x27d454df^_0x35b513)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5db2c1([0x74,0x68,0x65,0x6e])](_0x4aa564)[_0x5db2c1([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4aa564(_0x5db2c1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2850eb=0x3ee3e5f^_0x35b513;function _0xd812b6(){const _0x4cdee1=_0x5db2c1([0x6c,0x6c,0x63,0x74,0x2d])+_0x2a876e(_0x27d22b(_0x502dd1)),_0x3c4866=_0x3e89d0(_0x2a876e(window[_0x5db2c1([0x4d,0x61,0x74,0x68])][_0x5db2c1([0x63,0x65,0x69,0x6c])](_0x3fc022/_0x2850eb)));window[_0x5db2c1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5db2c1([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4cdee1,_0x3c4866);}function _0x56a318(){const _0x5cec81=_0x5db2c1([0x6c,0x6c,0x63,0x74,0x2d])+_0x2a876e(_0x27d22b(_0x502dd1)),_0x3199ee=window[_0x5db2c1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5db2c1([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5cec81);return _0x3199ee?window[_0x5db2c1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3e89d0(_0x3199ee),0x10)*_0x2850eb:null;}function _0x1a00db(_0x41fcbd){return new window[(_0x5db2c1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5c5bb4,_0x3b1706)=>{_0x41fcbd[_0x5db2c1([0x74,0x68,0x65,0x6e])](_0x5c5bb4,_0x3b1706),window[_0x5db2c1([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3b1706,0x3d9041f^_0x35b513);});}}_0x1cead5[_0x5db2c1([0x6f,0x6e])](_0x5db2c1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1ae5ed,_0x191387)=>{if(_0x191387[0x0]!=_0x502dd1)return _0x4aa564(_0x5db2c1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x191387[0x1]={..._0x191387[0x1],[_0x5db2c1([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1b21ae};},{[_0x5db2c1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5db2c1([0x68,0x69,0x67,0x68])}),_0x1cead5[_0x5db2c1([0x6f,0x6e])](_0x5db2c1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xcc4646=>{_0x2944a0(_0xcc4646[_0x5db2c1([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xe5f5d2=!0x0,_0x3072fa(_0xcc4646[_0x5db2c1([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5db2c1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5db2c1([0x6c,0x6f,0x77])}),_0x4cbf1c[_0x5db2c1([0x74,0x68,0x65,0x6e])](()=>{_0xe5f5d2||_0x4aa564(_0x5db2c1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x16bd79(){return _0x1cead5[_0x5db2c1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5db2c1([0x76,0x69,0x65,0x77])][_0x5db2c1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5db2c1([0x61,0x75,0x74,0x6f]);}function _0x3097b2(){_0x1cead5[_0x5db2c1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5db2c1([0x76,0x69,0x65,0x77])][_0x5db2c1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5db2c1([0x61,0x75,0x74,0x6f]);}}function _0x4296f8(_0x195877){const _0x1940a4=[new window[(_0x5db2c1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xe349e3=>setTimeout(_0xe349e3,0x3d1ee13^_0x35b513)),_0x4cbf1c[_0x5db2c1([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5db2c1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e1276=>{let _0x18ad64=0x0;_0x1cead5[_0x5db2c1([0x6d,0x6f,0x64,0x65,0x6c])][_0x5db2c1([0x6f,0x6e])](_0x5db2c1([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x176452,_0x20c318)=>{_0x20c318[0x0][_0x5db2c1([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x18ad64++,_0x18ad64==(0x3d8d537^_0x35b513)&&(_0x4e1276(),_0x176452[_0x5db2c1([0x6f,0x66,0x66])]());});}))];return window[_0x5db2c1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5db2c1([0x72,0x61,0x63,0x65])](_0x1940a4)[_0x5db2c1([0x74,0x68,0x65,0x6e])](()=>_0x195877);}async function _0x437e6e(){await _0x4cbf1c,_0x1cead5[_0x5db2c1([0x6d,0x6f,0x64,0x65,0x6c])][_0x5db2c1([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x554bd2,_0x1cead5[_0x5db2c1([0x6d,0x6f,0x64,0x65,0x6c])][_0x5db2c1([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x554bd2,_0x1cead5[_0x5db2c1([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5db2c1([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2e4cfc(){return _0x524b78(_0x5db2c1([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x28d97c(_0x5db2c1([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x5db2c1([0x73,0x74,0x61,0x74,0x65])]==_0x5db2c1([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4a49c2(){return _0x524b78(_0x5db2c1([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 _0x555064(){return _0x524b78(_0x5db2c1([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x3159d1(_0x14406d){const _0x355e17=_0x55ba54();_0x1cead5[_0x355e17]=_0x5db2c1([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x14406d,_0x14406d!=_0x5db2c1([0x56,0x61,0x6c,0x69,0x64])&&_0x437e6e();}function _0x55ba54(){const _0x33263c=window[_0x5db2c1([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5db2c1([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5db2c1([0x6e,0x6f,0x77])]())[_0x5db2c1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5db2c1([0x2e]),'');let _0x2bb3ea=_0x5db2c1([0x52]);for(let _0x494fd4=0x0;_0x494fd4<_0x33263c[_0x5db2c1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x494fd4+=0x2){let _0x2ce5b8=window[_0x5db2c1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x33263c[_0x5db2c1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x494fd4,_0x494fd4+0x2));_0x2ce5b8>=_0xbd1b75[_0x5db2c1([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2ce5b8-=_0xbd1b75[_0x5db2c1([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2bb3ea+=_0xbd1b75[_0x2ce5b8];}return _0x2bb3ea;}function _0x4048dc(){const _0x561b3d=_0x242b22[_0x5db2c1([0x73,0x70,0x6c,0x69,0x74])](_0x5db2c1([0x2e]));if(0x3!=_0x561b3d[_0x5db2c1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4b893e(_0x561b3d[0x1]);function _0x4b893e(_0xa6ba42){const _0xe2f98f=_0x538ddb(_0xa6ba42);return _0xe2f98f&&_0x5e2d13()?_0xe2f98f:null;function _0x5e2d13(){const _0x371949=_0xe2f98f[_0x5db2c1([0x6a,0x74,0x69])],_0xbbeeb5=window[_0x5db2c1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x371949[_0x5db2c1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x371949[_0x5db2c1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x395d2d={..._0xe2f98f,[_0x5db2c1([0x6a,0x74,0x69])]:_0x371949[_0x5db2c1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x371949[_0x5db2c1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x395d2d[_0x5db2c1([0x76,0x63])],_0x27d22b(_0x395d2d)==_0xbbeeb5;}}}async function _0x1a73a4(){let _0x4df3a5=!0x0;try{const _0x4adf9e=_0x242b22[_0x5db2c1([0x73,0x70,0x6c,0x69,0x74])](_0x5db2c1([0x2e])),[_0x162d7c,_0x459bc3,_0x194b91]=_0x4adf9e;return _0x33cfc2(_0x162d7c),await _0x338eb7(_0x162d7c,_0x459bc3,_0x194b91),_0x4df3a5;}catch{return!0x1;}function _0x33cfc2(_0xb12d0e){const _0x652d3b=_0x538ddb(_0xb12d0e);_0x652d3b&&_0x652d3b[_0x5db2c1([0x61,0x6c,0x67])]==_0x5db2c1([0x45,0x53,0x32,0x35,0x36])||(_0x4df3a5=!0x1);}async function _0x338eb7(_0x480d4d,_0x2db8fd,_0x4310bd){const _0x18c35d=window[_0x5db2c1([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5db2c1([0x66,0x72,0x6f,0x6d])](_0x19b989(_0x4310bd),_0x2334d0=>_0x2334d0[_0x5db2c1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xcac6de=new window[(_0x5db2c1([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5db2c1([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x480d4d+_0x5db2c1([0x2e])+_0x2db8fd),_0x5e6444=window[_0x5db2c1([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5db2c1([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5e6444)return;const _0xceb901=await _0x5e6444[_0x5db2c1([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5db2c1([0x6a,0x77,0x6b]),_0x3a6cc9,{[_0x5db2c1([0x6e,0x61,0x6d,0x65])]:_0x5db2c1([0x45,0x43,0x44,0x53,0x41]),[_0x5db2c1([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5db2c1([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5db2c1([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5e6444[_0x5db2c1([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5db2c1([0x6e,0x61,0x6d,0x65])]:_0x5db2c1([0x45,0x43,0x44,0x53,0x41]),[_0x5db2c1([0x68,0x61,0x73,0x68])]:{[_0x5db2c1([0x6e,0x61,0x6d,0x65])]:_0x5db2c1([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xceb901,_0x18c35d,_0xcac6de)||(_0x4df3a5=!0x1);}}function _0x538ddb(_0x5e5f5f){return _0x5e5f5f[_0x5db2c1([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5db2c1([0x65,0x79]))?JSON[_0x5db2c1([0x70,0x61,0x72,0x73,0x65])](_0x19b989(_0x5e5f5f)):null;}function _0x19b989(_0x534505){return window[_0x5db2c1([0x61,0x74,0x6f,0x62])](_0x534505[_0x5db2c1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5db2c1([0x2b]))[_0x5db2c1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5db2c1([0x2f])));}function _0x27d22b(_0x179fdc){let _0x2ee4c2=0x1505;function _0x268a2f(_0x137081){for(let _0x381580=0x0;_0x381580<_0x137081[_0x5db2c1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x381580++){const _0xbcd493=_0x137081[_0x5db2c1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x381580);_0x2ee4c2=(_0x2ee4c2<<0x5)+_0x2ee4c2+_0xbcd493,_0x2ee4c2&=_0x2ee4c2;}}function _0x3c3942(_0x3b7145){Array[_0x5db2c1([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3b7145)?_0x3b7145[_0x5db2c1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3c3942):_0x3b7145&&typeof _0x3b7145==_0x5db2c1([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5db2c1([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3b7145)[_0x5db2c1([0x73,0x6f,0x72,0x74])]()[_0x5db2c1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x253296,_0x4ef87e])=>{_0x268a2f(_0x253296),_0x3c3942(_0x4ef87e);}):_0x268a2f(window[_0x5db2c1([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3b7145));}return _0x3c3942(_0x179fdc),_0x2ee4c2>>>0x0;}function _0x2a876e(_0x4c12d8){return _0x4c12d8[_0x5db2c1([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5db2c1([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5db2c1([0x30]));}function _0x3e89d0(_0x7e051){return _0x7e051[_0x5db2c1([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5db2c1([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5db2c1([0x6a,0x6f,0x69,0x6e])]('');}function _0x524b78(_0x4d3a2d){return _0x1cead5[_0x5db2c1([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5db2c1([0x68,0x61,0x73])](_0x4d3a2d);}function _0x28d97c(_0x52ce11){return _0x1cead5[_0x5db2c1([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5db2c1([0x67,0x65,0x74])](_0x52ce11);}function _0x554bd2(){}function _0x5db2c1(_0x5da323){return _0x5da323['map'](_0x16f9d6=>String['fromCharCode'](_0x16f9d6))['join']('');}_0x3159d1(await _0xc6b747());}(this);}set['adapter'](_0x48e76d){if(this['_adapter'])throw new _0x3fdb7b('track-changes-adapter-already-set',this);this['_adapter']=_0x48e76d;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0xaf682a=!0x1,toJSON:_0xd9bc6e=!0x1}={}){const _0x3b7bc1=[];for(const _0x4f19a0 of this['_suggestions']['values']())_0xaf682a&&!_0x4f19a0['isInContent']||_0x3b7bc1['push'](_0x4f19a0);return _0xd9bc6e?_0x3b7bc1['map'](_0x294935=>_0x294935['toJSON']()):_0x3b7bc1;}['getSuggestion'](_0x3ae8d8){const _0x40cee8=this['_suggestions']['get'](_0x3ae8d8);if(!_0x40cee8)throw new _0x3fdb7b('track-changes-suggestion-not-found',this);return _0x40cee8;}['hasSuggestion'](_0x3f665a){return this['_suggestions']['has'](_0x3f665a);}['addSuggestionData'](_0x4d66f9){const {authorId:_0x5caca9,id:_0x2a877c,originalSuggestionId:_0x122a0d,attributes:_0x2973ce}=_0x4d66f9,[_0x5e7e17,_0x5e114e]=_0x4d66f9['type']['split'](':'),_0x463bad=this['_suggestions']['get'](_0x2a877c)||this['_createSuggestion'](_0x5e7e17,_0x5e114e,_0x2a877c,_0x5caca9,_0x2973ce,_0x122a0d);if(this['_addThreadToSuggestion'](_0x463bad),this['_checkSuggestionCorrectness'](_0x463bad,_0x5e7e17,_0x5e114e||null,_0x5caca9),_0x463bad['createdAt']=_0x4d66f9['createdAt'],_0x463bad['_isDataLoaded']=!0x0,_0x2973ce&&_0x2973ce['@external']){const _0x140f89=_0x2973ce['@external'],_0x2f6178=this['_getExternalAuthor'](_0x140f89['authorName']);_0x463bad['authoredAt']=_0x140f89['createdAt'],_0x463bad['author']=_0x2f6178,_0x463bad['isExternal']=!0x0;}else _0x463bad['authoredAt']=_0x4d66f9['createdAt'];switch(_0x4d66f9['data']&&(_0x463bad['data']=_0x4d66f9['data']),_0x4d66f9['attributes']&&(_0x463bad['attributes']=_0x4d66f9['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x463bad['_saved']=!0x0),this['_suggestionState']['get'](_0x463bad)){case'notReady':this['_suggestionState']['set'](_0x463bad,'dataReady');break;case'markerReady':_0x463bad['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x463bad])),this['_refreshSuggestionsChain'](new Set([_0x463bad])),this['_suggestionState']['set'](_0x463bad,'ready'),this['fire']('suggestionLoaded',_0x463bad)):this['_suggestionState']['set'](_0x463bad,'removed');}return _0x463bad;}['acceptSuggestion'](_0x34d4f6){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1c4c3d of _0x34d4f6['getAllAdjacentSuggestions']())_0x1c4c3d['accept']();});});}['discardSuggestion'](_0x97f980){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4bdc46 of _0x97f980['getAllAdjacentSuggestions']())_0x4bdc46['discard']();});});}['enableCommand'](_0x174155,_0x58532a){const _0x38b1a7=this['editor']['commands']['get'](_0x174155);if(!_0x38b1a7)throw new _0x3fdb7b('track-changes-command-not-found',this,{'commandName':_0x174155});if(this['_enabledCommands']['has'](_0x38b1a7))throw new _0x3fdb7b('track-changes-enable-command-twice',this,{'commandName':_0x174155});this['_enabledCommands']['add'](_0x38b1a7),_0x58532a&&_0x38b1a7['on']('execute',(_0x2b7b0b,_0x2e1198)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x2e1198['length']>0x0&&_0x2e1198[_0x2e1198['length']-0x1]&&_0x2e1198[_0x2e1198['length']-0x1]['forceDefaultExecution']?_0x2e1198['pop']():(_0x2b7b0b['return']=_0x58532a((..._0x2d44f8)=>_0x38b1a7['execute'](..._0x2d44f8,{'forceDefaultExecution':!0x0}),..._0x2e1198),_0x2b7b0b['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x25a309){let _0x55db6b,_0x4da61c;const _0x519039=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x55db6b=_0x25a309();}catch(_0x57b18f){_0x4da61c=_0x57b18f;}return _0x519039||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x4da61c&&_0x3fdb7b['rethrowUnexpectedError'](_0x4da61c,this),_0x55db6b;}['markInsertion'](_0x38c6bf,_0x3d2ab2=null,_0x2eebe9={}){if(_0x38c6bf['isCollapsed'])return null;const _0x224847=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x2eebe9['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x53da83,meta:_0xf5c246}of this['_findSuggestions'](_0x38c6bf,'insertion'))if(_0xf5c246['isOwn']){if(!_0xf5c246['isNextTo']){if(_0xf5c246['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!sn(_0x53da83,_0x2eebe9))continue;return _0x53da83;}if(sn(_0x53da83,_0x2eebe9))return _0x53da83;this['_breakSuggestionMarker'](_0x53da83,_0x38c6bf['start'],_0x38c6bf['end']);break;}if(_0x3d2ab2==_0x53da83['subType']&&sn(_0x53da83,_0x2eebe9)){const _0xa94df4=_0x53da83['getFirstRange']();return _0xa94df4['start']['isEqual'](_0x38c6bf['end'])?this['_setSuggestionRange'](_0x53da83,this['_model']['createRange'](_0x38c6bf['start'],_0xa94df4['end'])):this['_setSuggestionRange'](_0x53da83,this['_model']['createRange'](_0xa94df4['start'],_0x38c6bf['end'])),_0x53da83;}}const _0x1535be=_0x3da106(),_0x256a0d=_0x224847['id'],_0x8ce1a0=_0x3d2ab2?'insertion:'+_0x3d2ab2:'insertion',_0x5e0952=this['_setSuggestionData']({'id':_0x1535be,'type':_0x8ce1a0,'createdAt':new Date(),'authorId':_0x256a0d,'attributes':_0x2eebe9});return this['_addSuggestionMarker'](_0x8ce1a0,_0x1535be,_0x256a0d,_0x38c6bf),_0x5e0952;}['markMultiRangeInsertion'](_0x420d3e,_0x9933ab='multi',_0x1acb14={}){const _0x3c1ef2=this['editor']['plugins']['get']('Users')['me'],_0x308fc3=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x9933ab,'join');this['_trackingSessionId']&&(_0x1acb14['trackingSessionId']=this['_trackingSessionId']);for(const _0x304f27 of this['getSuggestions']())if(_0x304f27['author']['id']==_0x3c1ef2['id']&&'insertion'==_0x304f27['type']&&_0x304f27['subType']==_0x9933ab&&sn(_0x304f27,_0x1acb14)&&(_0x308fc3(_0x304f27['getRanges'](),_0x420d3e)||_0x308fc3(_0x420d3e,_0x304f27['getRanges']()))){for(const _0x15b31d of _0x420d3e)_0x304f27['addRange'](_0x15b31d);return _0x304f27;}for(const {suggestion:_0x5627a8,meta:_0x2e04fe}of this['_findSuggestions'](_0x420d3e,'insertion')){if(!_0x2e04fe['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x2e04fe['containsRangeInObject'])continue;if(!sn(_0x5627a8,_0x1acb14))continue;let _0x1f2b35=!0x0;for(const _0x41c77c of _0x5627a8['getRanges']())for(const _0x2f26ef of _0x420d3e)if(!_0x41c77c['containsRange'](_0x2f26ef)){_0x1f2b35=!0x1;break;}if(_0x1f2b35)return _0x5627a8;}const _0x2e5115=_0x3da106(),_0x4f2094=_0x3c1ef2['id'],_0x200a1f='insertion:'+_0x9933ab,_0x46369d=this['_setSuggestionData']({'id':_0x2e5115,'type':_0x200a1f,'createdAt':new Date(),'authorId':_0x4f2094,'attributes':_0x1acb14});for(const _0x12dd85 of _0x420d3e)this['_addSuggestionMarker'](_0x200a1f,_0x2e5115,_0x4f2094,_0x12dd85,x['getMultiRangeId']());return _0x46369d;}['markInlineFormat'](_0x49969f,_0x301952,_0x113ee9=null,_0x158d4b={}){if(_0x113ee9=_0x113ee9||Ht(_0x301952),_0x49969f['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x158d4b['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4ff29b=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x113ee9,'accept');return this['forceDefaultExecution'](()=>_0x4ff29b([_0x49969f],_0x301952,_0x158d4b)),null;}const _0x40bebf=this['editor']['plugins']['get']('Users')['me'],_0x872909=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x55384b,meta:_0x3ddbf9}of this['_findSuggestions'](_0x49969f,'insertion'))_0x3ddbf9['isOwn']&&!_0x3ddbf9['isInsideObject']&&_0x872909['push'](..._0x55384b['getRanges']());}const _0x144d5c=function(_0x36ea9c,_0x45dc61){const _0x43b34e=[];for(const _0x407a80 of _0x45dc61){const _0x3e4b29=_0x36ea9c['getIntersection'](_0x407a80);_0x3e4b29&&_0x43b34e['push'](_0x3e4b29);}return _0x43b34e;}(_0x49969f,_0x872909),_0xb1f047=function(_0x4b2cd1,_0x51c471){const _0x317beb=[_0x4b2cd1];for(const _0x642899 of _0x51c471){let _0x2a66a2=0x0;for(;_0x2a66a2<_0x317beb['length'];){const _0x3cabdb=_0x317beb[_0x2a66a2]['getDifference'](_0x642899);_0x317beb['splice'](_0x2a66a2,0x1,..._0x3cabdb),_0x2a66a2+=_0x3cabdb['length'];}}return _0x317beb;}(_0x49969f,_0x872909);_0x144d5c['length']&&this['_model']['change'](()=>{for(const _0x234a27 of _0x144d5c){const _0x15692a=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x113ee9,'accept');this['forceDefaultExecution'](()=>_0x15692a([_0x234a27],_0x301952,_0x158d4b));}});for(const _0x22ec96 of _0xb1f047){let _0xd513fb=null,_0x4be9ea=_0x22ec96['start'],_0x44505b=_0x22ec96['end'];for(const {suggestion:_0x12fd59,meta:_0x38f0b9}of this['_findSuggestions'](_0x22ec96,'formatInline')){if(!_0x38f0b9['isOwn'])continue;if(_0x12fd59['subType']!=_0x113ee9)continue;if(!sn(_0x12fd59,_0x158d4b))continue;const _0x1e8136=_0x12fd59['getFirstRange']();if(_0x1e8136['containsRange'](_0x22ec96,!0x0))return null;_0x4be9ea=_0x4be9ea['isBefore'](_0x1e8136['start'])?_0x4be9ea:_0x1e8136['start'],_0x44505b=_0x44505b['isAfter'](_0x1e8136['end'])?_0x44505b:_0x1e8136['end'],_0xd513fb?_0x1e8136['start']['isBefore'](_0xd513fb['getFirstRange']()['start'])?(_0xd513fb['removeMarkers'](),_0xd513fb=_0x12fd59):_0x12fd59['removeMarkers']():_0xd513fb=_0x12fd59;}const _0x40c338=this['_model']['createRange'](_0x4be9ea,_0x44505b);if(_0xd513fb)this['_setSuggestionRange'](_0xd513fb,_0x40c338);else{const _0x4a75fd=_0x3da106(),_0x382cee=_0x40bebf['id'];this['_setSuggestionData']({'id':_0x4a75fd,'type':'formatInline:'+_0x113ee9,'data':_0x301952,'createdAt':new Date(),'authorId':_0x382cee,'attributes':_0x158d4b}),this['_addSuggestionMarker']('formatInline:'+_0x113ee9,_0x4a75fd,_0x382cee,_0x40c338);}}return null;}['markBlockFormat'](_0x340c36,_0x37eed5,_0x4d5722=[],_0xf3fedc=null,_0x315a96={}){_0x37eed5['formatGroupId']||(_0x37eed5['formatGroupId']=_0x37eed5['commandName']),_0x37eed5['multipleBlocks']=_0x340c36['is']('range'),_0xf3fedc=_0xf3fedc||Ht(_0x37eed5);const _0x10d9dd=_0x4d5722['map'](_0x230fdc=>tn(_0x230fdc,this['_model'])),_0x3f2dea=_0x340c36['is']('range')?_0x340c36:tn(_0x340c36,this['_model']);if(this['_trackingSessionId']&&(_0x315a96['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5f5900=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xf3fedc,'accept');return this['forceDefaultExecution'](()=>_0x5f5900([_0x3f2dea],_0x37eed5,_0x315a96)),null;}_0x10d9dd['push'](_0x3f2dea);let _0x319f9f=!0x0;for(const _0x31ee4b of _0x10d9dd)if(!this['_rangeIsInLocalUserInsertion'](_0x31ee4b)){_0x319f9f=!0x1;break;}if(_0x319f9f&&'always'!==this['_trackFormatChanges']){const _0x55993a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xf3fedc,'accept');return this['forceDefaultExecution'](()=>_0x55993a([_0x3f2dea],_0x37eed5,_0x315a96)),null;}let _0x22d8e9=null,_0x58c14e=_0x3f2dea['start'],_0x5d58d4=_0x3f2dea['end'];for(const {suggestion:_0x5dbb04,meta:_0x546474}of this['_findSuggestions'](_0x3f2dea,'formatBlock')){if(!_0x546474['isOwn'])continue;if(_0x546474['isNextTo']||_0x546474['containsRangeInObject']||_0x546474['isInsideObject'])continue;if(_0x5dbb04['data']['formatGroupId']!=_0x37eed5['formatGroupId'])continue;if(!sn(_0x5dbb04,_0x315a96))continue;const _0x55b909=_0x5dbb04['getFirstRange']();if(_0x5dbb04['subType']==_0xf3fedc){if(_0x55b909['containsRange'](_0x3f2dea,!0x0))return null;_0x58c14e=_0x58c14e['isBefore'](_0x55b909['start'])?_0x58c14e:_0x55b909['start'],_0x5d58d4=_0x5d58d4['isAfter'](_0x55b909['end'])?_0x5d58d4:_0x55b909['end'],_0x22d8e9?_0x55b909['start']['isBefore'](_0x22d8e9['getFirstRange']()['start'])?(_0x22d8e9['removeMarkers'](),_0x22d8e9=_0x5dbb04):_0x5dbb04['removeMarkers']():_0x22d8e9=_0x5dbb04;}else{const _0x48d6b9=_0x3f2dea['getIntersection'](_0x55b909);this['_cutOutSuggestionMarker'](_0x5dbb04,_0x48d6b9);}}const _0x734fe8=this['editor']['plugins']['get']('Users')['me'],_0x596a79=_0x3da106(),_0x2e12a8=_0x734fe8['id'];if(_0x22d8e9)return this['_setSuggestionRange'](_0x22d8e9,this['_model']['createRange'](_0x58c14e,_0x5d58d4)),_0x22d8e9;{const _0x262be1=this['_setSuggestionData']({'id':_0x596a79,'type':'formatBlock:'+_0xf3fedc,'data':_0x37eed5,'createdAt':new Date(),'authorId':_0x2e12a8,'attributes':_0x315a96});return this['_addSuggestionMarker']('formatBlock:'+_0xf3fedc,_0x596a79,_0x2e12a8,this['_model']['createRange'](_0x58c14e,_0x5d58d4)),_0x262be1;}}['markMultiRangeBlockFormat'](_0x2bf319,_0x18be12,_0x3c4b38=[],_0x26fd10=null,_0x148aab={}){_0x18be12['formatGroupId']||(_0x18be12['formatGroupId']=_0x18be12['commandName']);const _0x761f5c=_0x2bf319[0x0];_0x18be12['multipleBlocks']=_0x761f5c['is']('range'),_0x26fd10=_0x26fd10||Ht(_0x18be12);const _0x2149b4=_0x3c4b38['map'](_0x24dfd4=>tn(_0x24dfd4,this['_model'])),_0x849925=_0x761f5c['is']('range')?_0x2bf319:_0x2bf319['map'](_0x1c868d=>tn(_0x1c868d,this['_model']));if(this['_trackingSessionId']&&(_0x148aab['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x292773=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x26fd10,'accept');return this['forceDefaultExecution'](()=>_0x292773(_0x849925,_0x18be12,_0x148aab)),null;}_0x2149b4['push'](..._0x849925);let _0x363062=!0x0;for(const _0x211767 of _0x2149b4)if(!this['_rangeIsInLocalUserInsertion'](_0x211767)){_0x363062=!0x1;break;}if(_0x363062&&'always'!==this['_trackFormatChanges']){const _0x124ea3=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x26fd10,'accept');return this['forceDefaultExecution'](()=>_0x124ea3(_0x849925,_0x18be12,_0x148aab)),null;}const _0x152397=this['editor']['plugins']['get']('Users')['me'];for(const _0x37a442 of this['getSuggestions']()){const _0x122762=_0x37a442['data'];if(_0x37a442['author']['id']!=_0x152397['id'])continue;if('formatBlock'!=_0x37a442['type']||_0x122762['formatGroupId']!=_0x18be12['formatGroupId'])continue;if(!sn(_0x37a442,_0x148aab))continue;const _0x501cae=_0x37a442['subType']==_0x26fd10;for(let _0x109c87=0x0;_0x109c87<_0x849925['length'];_0x109c87++){const _0x619e5f=_0x849925[_0x109c87];for(const _0x29b8fc of _0x37a442['getMarkers']()){const _0x288d7f=_0x29b8fc['getRange']();if(_0x619e5f['isEqual'](_0x288d7f)){_0x501cae?(_0x849925['splice'](_0x109c87,0x1),_0x109c87--):_0x37a442['removeMarker'](_0x29b8fc['name']);break;}}}}if(0x0==_0x849925['length'])return null;const _0x1bb538=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x26fd10,'join');for(const _0x5aa506 of this['getSuggestions']()){const _0x25c406=_0x5aa506['data'];if(_0x5aa506['author']['id']==_0x152397['id']&&('formatBlock'==_0x5aa506['type']&&_0x25c406['formatGroupId']==_0x18be12['formatGroupId']&&_0x5aa506['subType']==_0x26fd10&&sn(_0x5aa506,_0x148aab)&&(_0x1bb538(_0x5aa506['getRanges'](),_0x849925)||_0x1bb538(_0x849925,_0x5aa506['getRanges']())))){for(const _0x55cc5c of _0x849925)_0x5aa506['addRange'](_0x55cc5c);return _0x5aa506;}}const _0x4b9d72=_0x3da106(),_0x289677=_0x152397['id'],_0x3c00ee='formatBlock:'+_0x26fd10,_0xc86f84=this['_setSuggestionData']({'id':_0x4b9d72,'type':_0x3c00ee,'data':_0x18be12,'createdAt':new Date(),'authorId':_0x289677,'attributes':_0x148aab});for(const _0x5ac981 of _0x849925)this['_addSuggestionMarker'](_0x3c00ee,_0x4b9d72,_0x289677,_0x5ac981,x['getMultiRangeId']());return _0xc86f84;}['markDeletion'](_0x3c355d,_0x5bdc05=null,_0x114557={}){if(_0x3c355d['isCollapsed'])return null;const _0x179148=this['editor']['plugins']['get']('Users')['me'],_0x2e44d0=new _0x1506cc(_0x3c355d['start'],_0x3c355d['end']);this['_trackingSessionId']&&(_0x114557['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x42d226,meta:_0x346778}of this['_findSuggestions'](_0x2e44d0,'insertion'))if(_0x346778['isOwn']&&!_0x346778['isNextTo']){if(_0x42d226['isMultiRange']){const _0x536fcc=_0x42d226['getRanges']()['filter'](_0x3a44a8=>'$graveyard'!=_0x3a44a8['root']['rootName']);_0x536fcc['every'](_0x4651e9=>_0x2e44d0['containsRange'](_0x4651e9,!0x0))&&_0x42d226['discard']();if(_0x536fcc['some'](_0x373517=>_0x373517['containsRange'](_0x2e44d0,!0x0))){const _0x5c30c0=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5bdc05,'accept');return this['forceDefaultExecution'](()=>_0x5c30c0([_0x2e44d0],null,_0x114557)),null;}}else{const _0x28ccee=_0x2e44d0['getIntersection'](_0x42d226['getFirstRange']());null!==_0x28ccee&&_0x42d226['_onDiscard']([_0x28ccee],null,_0x114557);}}if(_0x2e44d0['detach'](),_0x2e44d0['isCollapsed']||'$graveyard'==_0x2e44d0['root']['rootName'])return null;let _0x47dbbc=null,_0xd0e4b0=_0x2e44d0['start'],_0x3ea646=_0x2e44d0['end'];const _0x2fd8b2=this['_findSuggestions'](_0x2e44d0,'deletion');for(const {suggestion:_0x550d45,meta:_0x3cb7f2}of _0x2fd8b2){const _0x407a2e=this['_model']['createRange'](_0xd0e4b0,_0x3ea646);if(_0x3cb7f2['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3cb7f2['containsRangeInObject']&&!_0x3cb7f2['isInsideObject'])){if(_0x550d45['isMultiRange']){if(!sn(_0x550d45,_0x114557))continue;let _0x1f2e6e=!0x0;for(const _0x444da6 of _0x550d45['getRanges']()){if(_0x444da6['containsRange'](_0x407a2e,!0x0))return _0x550d45;_0x407a2e['containsRange'](_0x444da6)||(_0x1f2e6e=!0x1);}_0x1f2e6e&&_0x550d45['discard']();}else{const _0x476829=_0x550d45['getFirstRange']();if(_0x476829['containsRange'](_0x407a2e,!0x0))return _0x550d45;if(!sn(_0x550d45,_0x114557)){_0x407a2e['containsRange'](_0x476829)?_0x550d45['removeMarkers']():_0x476829['containsPosition'](_0xd0e4b0)?_0xd0e4b0=_0x476829['end']:_0x476829['containsPosition'](_0x3ea646)&&(_0x3ea646=_0x476829['start']);continue;}_0xd0e4b0=_0xd0e4b0['isBefore'](_0x476829['start'])?_0xd0e4b0:_0x476829['start'],_0x3ea646=_0x3ea646['isAfter'](_0x476829['end'])?_0x3ea646:_0x476829['end'],_0x114557=Object['assign']({},_0x550d45['attributes']),_0x47dbbc?_0x476829['start']['isBefore'](_0x47dbbc['getFirstRange']()['start'])?(_0x47dbbc['removeMarkers'](),_0x47dbbc=_0x550d45):_0x550d45['removeMarkers']():_0x47dbbc=_0x550d45;}}}if(_0x47dbbc)return this['_setSuggestionRange'](_0x47dbbc,this['_model']['createRange'](_0xd0e4b0,_0x3ea646)),_0x47dbbc;{const _0x52545a=_0x3da106(),_0x31ac35=this['_model']['createRange'](_0xd0e4b0,_0x3ea646),_0x55c5c3=_0x179148['id'],_0x168573=_0x5bdc05?'deletion:'+_0x5bdc05:'deletion',_0x369aca=this['_setSuggestionData']({'id':_0x52545a,'type':_0x168573,'createdAt':new Date(),'authorId':_0x55c5c3,'attributes':_0x114557});return this['_addSuggestionMarker'](_0x168573,_0x52545a,_0x55c5c3,_0x31ac35),_0x369aca;}}['markMultiRangeDeletion'](_0x159602,_0x32590a='multi',_0x4f7850={}){const _0x4c8b21=this['editor']['plugins']['get']('Users')['me'],_0x256398=_0x159602['map'](_0x495e1b=>new _0x1506cc(_0x495e1b['start'],_0x495e1b['end'])),_0x49712c=new Set();this['_trackingSessionId']&&(_0x4f7850['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x43854f,meta:_0x2aeba2}of this['_findSuggestions'](_0x256398,'insertion'))_0x2aeba2['isOwn']&&!_0x2aeba2['isNextTo']&&_0x49712c['add'](_0x43854f);for(const _0x2b6f8f of _0x49712c)if(_0x2b6f8f['isMultiRange']){const _0x11253e=_0x2b6f8f['getRanges']();(!_0x2b6f8f['attributes']||!_0x2b6f8f['attributes']['skipNestingCheck'])&&(_0x11253e['every'](_0x4a4b65=>_0x256398['some'](_0x403ad4=>_0x403ad4['containsRange'](_0x4a4b65,!0x0)))&&_0x2b6f8f['discard']());if(_0x256398['every'](_0x3c212f=>_0x11253e['some'](_0x2571ba=>_0x2571ba['containsRange'](_0x3c212f,!0x0)))){const _0x13ff84=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x32590a,'accept');return this['forceDefaultExecution'](()=>_0x13ff84(_0x159602,null,_0x4f7850)),null;}}else{const _0x57fbfe=_0x2b6f8f['getFirstRange']();_0x256398['some'](_0x13729e=>_0x13729e['containsRange'](_0x57fbfe,!0x0))&&_0x2b6f8f['discard']();if(_0x256398['every'](_0x210129=>_0x57fbfe['containsRange'](_0x210129,!0x0))){const _0x577e6c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x32590a,'accept');return this['forceDefaultExecution'](()=>_0x577e6c(_0x256398,null,_0x4f7850)),null;}}const _0x1de5ef=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x32590a,'join');let _0x44fb08=null;for(const _0x2d736c of this['getSuggestions']())if(_0x2d736c['author']['id']==_0x4c8b21['id']&&_0x2d736c['isInContent']&&'deletion'==_0x2d736c['type']&&_0x2d736c['subType']==_0x32590a&&sn(_0x2d736c,_0x4f7850)&&(_0x1de5ef(_0x2d736c['getRanges'](),_0x256398)||_0x1de5ef(_0x256398,_0x2d736c['getRanges']()))){if(_0x44fb08){if(_0x2d736c['commentThread']&&_0x2d736c['commentThread']['length'])continue;for(const _0x4dc9c5 of _0x2d736c['getRanges']())_0x44fb08['isIntersectingWithRange'](_0x4dc9c5)||_0x44fb08['addRange'](_0x4dc9c5);_0x2d736c['removeMarkers']();}else{_0x44fb08=_0x2d736c;for(const _0x8ff21c of _0x256398)_0x2d736c['isIntersectingWithRange'](_0x8ff21c)||_0x2d736c['addRange'](_0x8ff21c);}}if(_0x44fb08)return _0x44fb08;_0x49712c['clear']();for(const {suggestion:_0x2c3a2a,meta:_0x49fa5a}of this['_findSuggestions'](_0x256398,'deletion'))_0x49fa5a['isOwn']&&(this['_mergeNestedSuggestions']||!_0x49fa5a['containsRangeInObject']&&!_0x49fa5a['isInsideObject'])&&sn(_0x2c3a2a,_0x4f7850)&&_0x49712c['add'](_0x2c3a2a);for(const _0x7f5a3a of _0x49712c){const _0x4468ff=_0x7f5a3a['getRanges']();if(!_0x4f7850||!_0x4f7850['skipNestingCheck']){if(_0x256398['every'](_0x516238=>_0x4468ff['some'](_0x60c49b=>_0x60c49b['containsRange'](_0x516238,!0x0))))return _0x7f5a3a;}(!_0x7f5a3a['attributes']||!_0x7f5a3a['attributes']['skipNestingCheck'])&&(_0x4468ff['every'](_0x58b7bc=>_0x256398['some'](_0x1da9a0=>_0x1da9a0['containsRange'](_0x58b7bc,!0x0)))&&_0x7f5a3a['discard']());}const _0xb8f923=_0x3da106(),_0x391219=_0x4c8b21['id'],_0x38f442='deletion:'+_0x32590a,_0x32210a=this['_setSuggestionData']({'id':_0xb8f923,'type':_0x38f442,'createdAt':new Date(),'authorId':_0x391219,'attributes':_0x4f7850});for(const _0x9af9ab of _0x256398)_0x9af9ab['detach'](),_0x9af9ab['isCollapsed']||'$graveyard'==_0x9af9ab['root']['rootName']||this['_addSuggestionMarker'](_0x38f442,_0xb8f923,_0x391219,_0x9af9ab,x['getMultiRangeId']());return _0x32210a;}['markAttributeChange'](_0x4592b9,_0x4947e0,_0xa6b6e,_0x33ebc6,_0x58df87){if(_0x4592b9['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x6bcc13=this['editor']['plugins']['get']('Users')['me']['id'],_0x535e28=Array['from'](this['_suggestions']['values']())['filter'](_0x2a8ba8=>'attribute'==_0x2a8ba8['type']&&_0x2a8ba8['data']['key']==_0x4947e0&&_0x2a8ba8['isIntersectingWithRange'](_0x4592b9));if(this['_trackingSessionId']&&(_0x58df87['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x4aa87c=this['_findSuggestions'](_0x4592b9,'insertion')['filter'](({meta:_0x4165bb})=>_0x4165bb['isOwn']&&!_0x4165bb['isInsideObject']&&!_0x4165bb['isNextTo'])['map'](({suggestion:_0x349827})=>_0x349827);_0x535e28['unshift'](..._0x4aa87c);}const _0x27cf3d=new Map([[_0x4592b9,_0xa6b6e]]);for(const _0x107bbc of _0x535e28){const _0x401798='attribute'==_0x107bbc['type']?_0x107bbc['data']['oldValue']:void 0x0,_0xb3abfc=_0x107bbc['getFirstRange'](),_0xaa3834=Array['from'](_0x27cf3d['keys']())['find'](_0xe7f0a1=>_0xe7f0a1['isIntersecting'](_0xb3abfc));if(!_0xaa3834)continue;const _0x243e57=_0xaa3834['getDifference'](_0xb3abfc);this['_isBlockAttribute'](_0x4947e0)&&'insertion'==_0x107bbc['type']&&0x0!=_0x243e57['length']||(_0x27cf3d['delete'](_0xaa3834),_0x243e57['forEach'](_0x50363c=>{_0x27cf3d['set'](_0x50363c,_0xa6b6e);}),'insertion'!=_0x107bbc['type']&&_0x401798!=_0x33ebc6&&_0x27cf3d['set'](_0xaa3834['getIntersection'](_0xb3abfc),_0x401798));}const _0x552e95=[];for(const [_0x403884,_0x444d4d]of _0x27cf3d){const _0x3be294=_0x3da106(),_0xa4734d={'key':_0x4947e0,'oldValue':_0x444d4d,'newValue':_0x33ebc6};_0x4947e0['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':_0x4947e0});const _0x201e9a=('attribute:'+(_0x4947e0+'|'+Ht({'newValue':_0x33ebc6})))['substring'](0x0,0x3c),_0xfdfbd7=this['_setSuggestionData']({'id':_0x3be294,'type':_0x201e9a,'data':_0xa4734d,'createdAt':new Date(),'authorId':_0x6bcc13,'attributes':_0x58df87});_0x552e95['push'](_0xfdfbd7),this['_addSuggestionMarker'](_0x201e9a,_0x3be294,_0x6bcc13,_0x403884);}return _0x552e95;}['enableDefaultAttributesIntegration'](_0x2b3832){this['enableCommand'](_0x2b3832,(_0x25e4c4,..._0x48f1ce)=>{this['recordAttributeChanges'](()=>{_0x25e4c4(..._0x48f1ce);});});}['registerBlockAttribute'](_0x52fd62){this['editor']['plugins']['get'](Jt)['registerBlockAttribute'](_0x52fd62);}['registerInlineAttribute'](_0x588b8d){this['editor']['plugins']['get'](Jt)['registerInlineAttribute'](_0x588b8d);}['startTrackingSession'](_0x2b40a1){return this['_trackingSessionId']=void 0x0!==_0x2b40a1?_0x2b40a1:_0x3da106(),this['_trackingSessionId'];}['_getAttributeKey'](_0xd488a1){return'attribute'==_0xd488a1['type']?_0xd488a1['subType']['split']('|')[0x0]:null;}['_applyOperationsAsSuggestions'](_0x28c826){if(0x0==_0x28c826['length'])return;const _0x42f23b=this['editor'],_0x2b57a0=_0x42f23b['plugins']['get'](_0x3ddfd3),_0xdd824e=[];_0x42f23b['model']['change'](_0x5c57fc=>{for(let _0x5ba779=0x0;_0x5ba779<_0x28c826['length'];_0x5ba779++){const _0x22454e=_0x28c826[_0x5ba779];if(_0x22454e['baseVersion']=_0x42f23b['model']['document']['version'],_0x22454e['isDocumentOperation']=!0x0,_0x2b57a0['isMarkedRemoveOperation'](_0x22454e)){const _0x2a3f52=Lt(_0x22454e['newRange'],_0x42f23b['model']);_0xdd824e['unshift'](_0x1506cc['fromRange'](_0x2a3f52));}else switch(_0x22454e['type']){case'rename':{const _0x460bfa=_0x22454e['oldName'],_0x4c622e=_0x22454e['newName'];if(_0x460bfa==_0x4c622e)break;_0x5c57fc['batch']['addOperation'](_0x22454e),_0x42f23b['model']['applyOperation'](_0x22454e);const _0x50fdd1='$elementName',_0x1e02cd=_0x22454e['position'],_0x354ce0=_0x42f23b['model']['createRange'](_0x1e02cd,_0x42f23b['model']['createPositionAt'](_0x1e02cd['nodeAfter'],'end'));this['markAttributeChange'](_0x354ce0,_0x50fdd1,_0x460bfa,_0x4c622e,{'groupId':_0x3da106()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x4d7b3c=_0x22454e['oldValue'],_0x259d8b=_0x22454e['newValue'];if(_0x4d7b3c==_0x259d8b)break;_0x5c57fc['batch']['addOperation'](_0x22454e),_0x42f23b['model']['applyOperation'](_0x22454e);const _0x35d516=_0x22454e['key'];if(!this['_isRegisteredAttribute'](_0x35d516))break;const _0x308107=Lt(_0x22454e['range'],_0x42f23b['model']);this['markAttributeChange'](_0x308107,_0x35d516,_0x4d7b3c,_0x259d8b,{'groupId':_0x3da106()});break;}case'insert':{_0x5c57fc['batch']['addOperation'](_0x22454e),_0x42f23b['model']['applyOperation'](_0x22454e);if(_0x28c826[_0x5ba779+0x1]&&'move'==_0x28c826[_0x5ba779+0x1]['type'])break;const _0x2f1755=_0x22454e['position'],_0x1e3bdc=_0x22454e['howMany'],_0x303e3c=Lt(_0x42f23b['model']['createRange'](_0x2f1755,_0x2f1755['getShiftedBy'](_0x1e3bdc)),_0x42f23b['model']);this['markInsertion'](_0x303e3c);break;}case'split':{_0x5c57fc['batch']['addOperation'](_0x22454e),_0x42f23b['model']['applyOperation'](_0x22454e);const _0x1efb8b=_0x22454e['splitPosition'],_0x53e7f7=_0x22454e['moveTargetPosition'];this['markInsertion'](_0x42f23b['model']['createRange'](_0x1efb8b,_0x53e7f7));break;}case'move':case'remove':_0x5c57fc['batch']['addOperation'](_0x22454e),_0x42f23b['model']['applyOperation'](_0x22454e);}}for(const _0xe76168 of _0xdd824e)_0xe76168['detach'](),this['markDeletion'](_0xe76168);});}['_setSuggestionRange'](_0x284816,_0x50caed){const _0x51213c=_0x284816['getFirstMarker']();this['_model']['change'](_0x47b56c=>{_0x47b56c['updateMarker'](_0x51213c,{'range':_0x50caed});});}['_addThreadToSuggestion'](_0x34af6a){const _0x533c2e=_0x34af6a['id'],_0x25d4f1=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x533c2e)||this['_commentsRepository']['addCommentThread']({'channelId':_0x25d4f1,'threadId':_0x533c2e,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x156979=this['_commentsRepository']['getCommentThread'](_0x533c2e);_0x156979['unbind']('isRemovable'),_0x156979['isRemovable']=!0x1,_0x34af6a['commentThread']=_0x156979;}['_checkSuggestionCorrectness'](_0x911c99,_0x57c4fa,_0x1251b7,_0x257394){if(_0x911c99['type']!=_0x57c4fa||_0x911c99['subType']!=_0x1251b7||_0x911c99['creator']['id']!=_0x257394)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x3fdb7b('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3ca3fb,_0x484c93){const _0x4663f5=_0x3ca3fb['getFirstRange']();if(_0x484c93['isEqual'](_0x4663f5))_0x3ca3fb['removeMarkers']();else{if(_0x4663f5['containsRange'](_0x484c93)){const _0x273e97=this['_model']['createPositionAt'](_0x484c93['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3ca3fb,this['_model']['createRange'](_0x4663f5['start'],_0x273e97));const _0x5787b7=_0x3da106(),_0x2325cc=_0x3ca3fb['creator']['id'],_0x261b41=_0x3ca3fb['type']+':'+_0x3ca3fb['subType'];this['_setSuggestionData']({'id':_0x5787b7,'type':_0x261b41,'createdAt':new Date(),'authorId':_0x2325cc,'data':_0x3ca3fb['data'],'attributes':_0x3ca3fb['attributes']});const _0x2c18b5=this['_model']['createPositionAt'](_0x484c93['end']['parent'],'after'),_0x105dff=this['_model']['createRange'](_0x2c18b5,_0x4663f5['end']);this['_addSuggestionMarker'](_0x261b41,_0x5787b7,_0x2325cc,_0x105dff);}else{if(_0x4663f5['containsPosition'](_0x484c93['start'])){const _0x233520=this['_model']['createPositionAt'](_0x484c93['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3ca3fb,this['_model']['createRange'](_0x4663f5['start'],_0x233520));}else{const _0x1d7730=this['_model']['createPositionAt'](_0x484c93['end']['parent'],'after');this['_setSuggestionRange'](_0x3ca3fb,this['_model']['createRange'](_0x1d7730,_0x4663f5['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x25798c){for(const {suggestion:_0x3a9b24,meta:_0x1a4195}of this['_findSuggestions'](_0x25798c,'insertion')){if(!_0x1a4195['isOwn'])continue;const _0x1cc2fb=_0x3a9b24['getRanges']();for(const _0x4f36f6 of _0x1cc2fb)if(!_0x25798c['getDifference'](_0x4f36f6)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x598d79){return this['editor']['plugins']['get']('Users')['getUser'](_0x598d79);}['_getExternalAuthor'](_0x4c8db3){const _0x3d5232=this['editor']['plugins']['get']('Users'),_0x31db98=_0x6a7a5e('external:'+_0x4c8db3),_0x16ea55=_0x3d5232['getUser'](_0x31db98);return _0x16ea55||_0x3d5232['addUser']({'id':_0x31db98,'name':_0x4c8db3});}['_createSuggestion'](_0x1ff29d,_0x1dc916,_0x39e738,_0x5b0857,_0x5cdd93,_0x15d973){const _0x566371=this['_getAuthorFromId'](_0x5b0857);if(!_0x566371)throw new _0x3fdb7b('track-changes-user-not-found',this,{'authorId':_0x5b0857,'suggestionId':_0x39e738});const _0x300665=this['_suggestionFactory']['buildSuggestion'](_0x1ff29d,_0x1dc916,_0x39e738,_0x566371,_0x5cdd93,_0x1b7eec=>{this['_updateSuggestionData'](_0x39e738,{'attributes':_0x1b7eec});const _0x59ffee=this['getSuggestion'](_0x39e738);this['_joinWithAdjacentSuggestions'](new Set([_0x59ffee])),this['_refreshSuggestionsChain'](new Set([_0x59ffee]));},_0x15d973);return this['listenTo'](_0x300665,'accept',()=>{this['_updateSuggestionData'](_0x39e738,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x300665,'discard',()=>{this['_updateSuggestionData'](_0x39e738,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x39e738,_0x300665),this['_suggestionState']['set'](_0x300665,'notReady'),_0x300665;}['_splitMarkerName'](_0xae324e){return Gt(_0xae324e);}['_breakSuggestionMarker'](_0x1ab95e,_0x4d134a,_0x571865){const _0xca55ec=_0x1ab95e['getFirstRange'](),_0x211924=_0xca55ec['start'],_0x566dfe=_0xca55ec['end'];this['_setSuggestionRange'](_0x1ab95e,this['_model']['createRange'](_0x211924,_0x4d134a));const _0x16292a=_0x3da106(),_0x16faf3=_0x1ab95e['creator']['id'],_0x3625a7=_0x1ab95e['type']+(_0x1ab95e['subType']?':'+_0x1ab95e['subType']:'');this['_setSuggestionData']({'id':_0x16292a,'type':_0x3625a7,'createdAt':new Date(),'authorId':_0x16faf3,'originalSuggestionId':_0x1ab95e['_originalSuggestionId']||_0x1ab95e['id'],'attributes':_0x1ab95e['attributes'],'data':_0x1ab95e['data']});const _0x11555d=this['_getAttributeKey'](_0x1ab95e);('formatBlock'==_0x1ab95e['type']||_0x11555d&&this['_isBlockAttribute'](_0x11555d))&&(_0x571865=this['_model']['createPositionBefore'](_0x571865['parent'])),this['_addSuggestionMarker'](_0x3625a7,_0x16292a,_0x16faf3,this['_model']['createRange'](_0x571865,_0x566dfe));}['_findSuggestions'](_0x11b38c,_0x102e70=null){const _0x5b45f8=[],_0x13b85b=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x11b38c)||(_0x11b38c=[_0x11b38c]);for(const _0x543fc0 of this['getSuggestions']()){if(!_0x543fc0['isInContent'])continue;if(_0x102e70&&_0x543fc0['type']!=_0x102e70)continue;let _0x11ebc1=!0x1;for(const _0x24c0c4 of _0x543fc0['getRanges']()){for(const _0x44a57 of _0x11b38c){const _0x45a137=_0x44a57['start']['isEqual'](_0x24c0c4['end'])||_0x44a57['end']['isEqual'](_0x24c0c4['start']);if(_0x45a137||_0x44a57['getIntersection'](_0x24c0c4)){const _0xd24c0a=_0x44a57['containsRange'](_0x24c0c4)&&zt(this['_model']['schema'],_0x24c0c4['start'],_0x44a57),_0x2f966f=_0x24c0c4['containsRange'](_0x44a57)&&zt(this['_model']['schema'],_0x44a57['start'],_0x24c0c4);_0x5b45f8['push']({'suggestion':_0x543fc0,'meta':{'isOwn':_0x13b85b==_0x543fc0['author'],'isNextTo':_0x45a137,'isInsideObject':_0xd24c0a,'containsRangeInObject':_0x2f966f}}),_0x11ebc1=!0x0;break;}}if(_0x11ebc1)break;}}return _0x5b45f8;}['_addSuggestionMarker'](_0x45b2fe,_0x52aec5,_0x29469b,_0x2a0d9b,_0x3fcc59){this['_model']['change'](_0x29c871=>{let _0xfed1b0='suggestion:'+_0x45b2fe+':'+_0x52aec5+':'+_0x29469b;_0x3fcc59&&(_0xfed1b0=_0xfed1b0+':'+_0x3fcc59),_0x29c871['addMarker'](_0xfed1b0,{'range':_0x2a0d9b,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x59a633){const _0x3ecfbf=_0x59a633['previous'],_0x53a3b7=_0x59a633['next'];_0x59a633['previous']=null,_0x59a633['next']=null,null!=_0x3ecfbf&&_0x3ecfbf['next']==_0x59a633&&(_0x3ecfbf['next']=_0x53a3b7),null!=_0x53a3b7&&_0x53a3b7['previous']==_0x59a633&&(_0x53a3b7['previous']=_0x3ecfbf),'ready'==this['_suggestionState']['get'](_0x59a633)&&(this['_suggestionState']['set'](_0x59a633,'removed'),this['fire']('suggestionUnloaded',_0x59a633,_0x3ecfbf,_0x53a3b7));}['_setSuggestionData'](_0x9598dc){const _0x42f53b=_0x9598dc['id'],_0x50a5cb=this['addSuggestionData'](_0x9598dc);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x3569bc=this['editor']['plugins']['get']('PendingActions'),_0x34500f=_0x50a5cb['hasComments'],_0x25346d=_0x50a5cb['subType']?_0x50a5cb['type']+':'+_0x50a5cb['subType']:_0x50a5cb['type'],_0x4fbab5=this['editor']['locale'],_0x3b1d10=_0x3569bc['add'](o(_0x4fbab5,'PENDING_ACTION_SUGGESTION')),_0x3bd6ee={'id':_0x42f53b,'type':_0x25346d,'hasComments':_0x34500f,'data':_0x9598dc['data']||null,'originalSuggestionId':_0x9598dc['originalSuggestionId']||null,'attributes':_0x50a5cb['attributes']};this['_adapter']['addSuggestion'](_0x3bd6ee)['then'](_0x5a2e16=>{_0x50a5cb['_saved']=!0x0,_0x3569bc['remove'](_0x3b1d10),_0x5a2e16&&_0x5a2e16['createdAt']&&(this['_suggestions']['get'](_0x42f53b)['createdAt']=_0x5a2e16['createdAt']);})['catch'](_0x21300d=>{throw _0x8196e7('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x50a5cb['discard']();}),_0x50a5cb['stopListening'](),this['_suggestions']['delete'](_0x50a5cb['id']),this['_suggestionState']['delete'](_0x50a5cb),_0x21300d;});}return _0x50a5cb;}['_isBlockAttribute'](_0x4d5908){return this['editor']['plugins']['get'](Jt)['isBlockAttribute'](_0x4d5908);}['_isInlineAttribute'](_0x1110b0){return this['editor']['plugins']['get'](Jt)['isInlineAttribute'](_0x1110b0);}['_updateSuggestionData'](_0x59d3f1,_0x1f2a07){const _0x5648e7=this['editor']['plugins']['get']('PendingActions'),_0x2d1f97=this['getSuggestion'](_0x59d3f1);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x2d1f97['_saved']){const _0x294040=_0x5648e7['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x59d3f1,_0x1f2a07)['then'](()=>{_0x5648e7['remove'](_0x294040);});}else _0x2d1f97['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x59d3f1,_0x1f2a07);});}}['_getSuggestionData'](_0x6a742b){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x3fdb7b('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x6a742b);}['_handleNewSuggestionMarker'](_0x57f3dc){const {id:_0x34d5ad,type:_0xa6f7de,subType:_0x12f8ae,authorId:_0x39b635}=this['_splitMarkerName'](_0x57f3dc),_0x372ab9=this['_suggestions']['get'](_0x34d5ad)||this['_createSuggestion'](_0xa6f7de,_0x12f8ae,_0x34d5ad,_0x39b635,{});switch(this['_checkSuggestionCorrectness'](_0x372ab9,_0xa6f7de,_0x12f8ae,_0x39b635),this['_suggestionState']['get'](_0x372ab9)){case'notReady':this['_getSuggestionData'](_0x34d5ad)['then'](_0x3f0040=>{let _0x1dc8c3=Promise['resolve']();_0x3f0040['hasComments']&&(_0x1dc8c3=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x34d5ad})),_0x1dc8c3['then'](()=>{this['addSuggestionData'](_0x3f0040)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x372ab9,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x34d5ad,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x372ab9,'ready'),this['fire']('suggestionLoaded',_0x372ab9);break;case'ready':this['fire']('suggestionChanged',_0x372ab9);}return _0x372ab9['addMarkerName'](_0x57f3dc),_0x372ab9;}['_refreshSuggestionsChain'](_0x64c89b){const _0x1c93ea=Array['from'](_0x64c89b),_0x4cd92d=_0x1c93ea['filter'](_0x5bb781=>'attribute'==_0x5bb781['type']);this['_refreshAttributeSuggestionsChain'](_0x4cd92d);const _0xc46aff=_0x1c93ea['filter'](_0x3e1fcc=>!_0x3e1fcc['isMultiRange']&&'attribute'!=_0x3e1fcc['type']),_0x426e7f=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2e3722=>!_0x2e3722['isMultiRange']&&'attribute'!=_0x2e3722['type']),_0x1caa89=_0x426e7f['filter'](_0x3bdc05=>!_0x64c89b['has'](_0x3bdc05)),_0x4ffeb6=new Map(_0x426e7f['map'](_0xe6b714=>[_0xe6b714,this['_suggestionFactory']['getSuggestionCallback'](_0xe6b714['type'],_0xe6b714['subType'],'chain')])),_0x19fa35=new Map(_0x426e7f['map'](_0x31b95a=>[_0x31b95a,_0x31b95a['getFirstRange']()])),_0x409adf=new Set(),_0x5a85aa=new Set();for(let _0x48494a=0x0;_0x48494a<_0xc46aff['length'];_0x48494a++)_0x31663d(_0xc46aff[_0x48494a],_0xc46aff,_0x48494a+0x1);for(let _0x4e0e2d=0x0;_0x4e0e2d<_0xc46aff['length'];_0x4e0e2d++)_0x31663d(_0xc46aff[_0x4e0e2d],_0x1caa89,0x0);const _0x2441db=new Set();for(let _0x431b86=0x0;_0x431b86<_0xc46aff['length'];_0x431b86++){const _0x2fc65d=_0xc46aff[_0x431b86];!_0x5a85aa['has'](_0x2fc65d)&&_0x2fc65d['previous']&&(_0x2441db['add'](_0x2fc65d['previous']),_0x2fc65d['previous']['next']===_0x2fc65d&&(_0x2fc65d['previous']['next']=null),_0x2fc65d['previous']=null),!_0x409adf['has'](_0x2fc65d)&&_0x2fc65d['next']&&(_0x2441db['add'](_0x2fc65d['next']),_0x2fc65d['next']['previous']===_0x2fc65d&&(_0x2fc65d['next']['previous']=null),_0x2fc65d['next']=null);}function _0x31663d(_0x12edc8,_0x49edd7,_0x227ec2){for(let _0x7b3b92=_0x227ec2;_0x7b3b92<_0x49edd7['length'];_0x7b3b92++){const _0x4ed1df=_0x19244b(_0x12edc8,_0x49edd7[_0x7b3b92]);_0x4ed1df&&(_0x4ed1df[0x0]['next']=_0x4ed1df[0x1],_0x4ed1df[0x1]['previous']=_0x4ed1df[0x0],_0x409adf['add'](_0x4ed1df[0x0]),_0x5a85aa['add'](_0x4ed1df[0x1]));}}function _0x19244b(_0x497ff1,_0x4520bd){if(_0x497ff1['author']['id']!==_0x4520bd['author']['id'])return null;const _0x573cb5=_0x4ffeb6['get'](_0x497ff1)(_0x497ff1,_0x4520bd,_0x19fa35['get'](_0x497ff1),_0x19fa35['get'](_0x4520bd));if(!_0x573cb5)return null;return _0x4ffeb6['get'](_0x4520bd)(_0x497ff1,_0x4520bd,_0x19fa35['get'](_0x497ff1),_0x19fa35['get'](_0x4520bd))?_0x573cb5[0x1]['commentThread']&&_0x573cb5[0x1]['commentThread']['length']?null:_0x573cb5:null;}_0x2441db['size']&&this['_refreshSuggestionsChain'](_0x2441db);}['_refreshAttributeSuggestionsChain'](_0x401e37){if(0x0==_0x401e37['length'])return;const _0x23648a=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3ec38d=>'attribute'==_0x3ec38d['type']&&_0x3ec38d['_isDataLoaded']),_0x482086=[],_0x2b6008=new Map();for(const _0x3e15f9 of _0x23648a){const _0x4eeffe=_0x6a7a5e(_0x3e15f9['attributes']);_0x2b6008['has'](_0x4eeffe)||(_0x2b6008['set'](_0x4eeffe,_0x482086['length']),_0x482086['push']([]));const _0x244f0a=_0x2b6008['get'](_0x4eeffe);_0x482086[_0x244f0a]['push'](_0x3e15f9);}!(function(){_0x482086['sort']((_0x1a9283,_0x3e348a)=>{const _0x33bf5d=_0x1a9283[0x0]['createdAt'],_0x3ed715=_0x3e348a[0x0]['createdAt'];return _0x33bf5d==_0x3ed715?_0x1a9283[0x0]['attributes']['groupId']<_0x3e348a[0x0]['attributes']['groupId']?-0x1:0x1:_0x33bf5d<_0x3ed715?-0x1:0x1;});for(const _0x296326 of _0x482086)_0x296326['sort']((_0x13bef8,_0x304080)=>_0x13bef8['id']<_0x304080['id']?-0x1:0x1);}());for(let _0x152afa=0x0;_0x152afa<_0x482086['length'];_0x152afa++){if(0x0==_0x482086[_0x152afa]['length'])continue;const _0x3cbf1f=[];for(let _0x140726=_0x152afa+0x1;_0x140726<_0x482086['length'];_0x140726++)0x0!=_0x482086[_0x140726]['length']&&_0x1d6bf2(_0x482086[_0x152afa],_0x482086[_0x140726])&&_0x3cbf1f['push'](_0x140726);for(const _0x37f4a6 of _0x3cbf1f)_0x482086[_0x152afa]=_0x482086[_0x152afa]['concat'](_0x482086[_0x37f4a6]),_0x482086[_0x37f4a6]=[];}for(const _0x591456 of _0x482086)for(let _0xfd2cd9=0x0;_0xfd2cd9<_0x591456['length'];_0xfd2cd9++){const _0x454840=_0x591456[_0xfd2cd9+0x1]||null;_0x591456[_0xfd2cd9]['next']!==_0x454840&&(_0x591456[_0xfd2cd9]['next']=_0x454840);}for(const _0x3a5a20 of _0x482086)for(let _0x549c50=0x0;_0x549c50<_0x3a5a20['length'];_0x549c50++){const _0x2141fa=_0x3a5a20[_0x549c50-0x1]||null;_0x3a5a20[_0x549c50]['previous']!==_0x2141fa&&(_0x3a5a20[_0x549c50]['previous']=_0x2141fa);}function _0x1d6bf2(_0x1a315f,_0x7f0a5f){if(_0x1a315f[0x0]['attributes']['groupId']!==_0x7f0a5f[0x0]['attributes']['groupId']&&_0x1a315f[0x0]['author']!==_0x7f0a5f[0x0]['author'])return!0x1;if(!function(_0x5b826c,_0x56175c){if(!_0x5b826c['hasComments']&&!_0x56175c['hasComments'])return!0x0;if(_0x5b826c['hasComments']&&_0x56175c['hasComments'])return!0x1;if(_0x5b826c['hasComments']&&_0x56175c['createdAt']<_0x5b826c['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x56175c['hasComments']&&_0x5b826c['createdAt']<_0x56175c['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x1a315f[0x0],_0x7f0a5f[0x0]))return!0x1;const _0x2b92af=Pt(_0x1a315f[0x0]['attributes'],['groupId','trackingSessionId']),_0x2b23d2=Pt(_0x7f0a5f[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x21a076(_0x2b92af,_0x2b23d2))return!0x1;if(_0x1a315f[0x0]['attributes']['groupId']==_0x7f0a5f[0x0]['attributes']['groupId'])return!0x0;if(_0x1a315f[0x0]['attributes']['trackingSessionId']!==_0x7f0a5f[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x1a315f['every'](_0x42c114=>_0x7f0a5f['some'](_0x4b693f=>_0x42c114['getFirstRange']()['isEqual'](_0x4b693f['getFirstRange']())))&&_0x7f0a5f['every'](_0x27e288=>_0x1a315f['some'](_0x268ef4=>_0x27e288['getFirstRange']()['isEqual'](_0x268ef4['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x10ebf5){const _0x23d347=Array['from'](_0x10ebf5),_0x393cd2=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4ea018=_0x393cd2['filter'](_0x53580c=>!_0x10ebf5['has'](_0x53580c)),_0x4c3c76=new Map(_0x23d347['map'](_0x56d82b=>[_0x56d82b,this['_suggestionFactory']['getSuggestionCallback'](_0x56d82b['type'],_0x56d82b['subType'],'join')])),_0x11307e=new Map(_0x393cd2['map'](_0x2d4683=>[_0x2d4683,_0x2d4683['getRanges']()]));for(let _0x4b17e5=0x0;_0x4b17e5<_0x23d347['length'];_0x4b17e5++){if(_0x4997ad(this,_0x23d347[_0x4b17e5],_0x23d347,_0x4b17e5+0x1))return!0x0;}for(let _0x2634fa=0x0;_0x2634fa<_0x23d347['length'];_0x2634fa++){if(_0x4997ad(this,_0x23d347[_0x2634fa],_0x4ea018,0x0))return!0x0;}return!0x1;function _0x4997ad(_0x33a1b7,_0x412b5b,_0x5c9237,_0x2b5871){for(let _0x2a0dd2=_0x2b5871;_0x2a0dd2<_0x5c9237['length'];_0x2a0dd2++){const _0x546b13=_0x5c9237[_0x2a0dd2];if(_0x546b13['type']!==_0x412b5b['type']||_0x546b13['author']['id']!==_0x412b5b['author']['id']||_0x546b13['subType']!==_0x412b5b['subType'])continue;if(!en(_0x412b5b,_0x546b13))continue;if('attribute'==_0x412b5b['type']&&_0x412b5b['data']['oldValue']!=_0x546b13['data']['oldValue'])continue;if('attribute'==_0x412b5b['type']&&_0x33a1b7['_isBlockAttribute'](_0x412b5b['data']['key']))continue;if('formatBlock'==_0x412b5b['type']){const _0x468782=_0x33a1b7['editor']['model'],_0xee4b00=_0x412b5b['getContainedElement']();if(_0xee4b00&&(_0x468782['schema']['isObject'](_0xee4b00)||_0x468782['schema']['isLimit'](_0xee4b00)))continue;}const _0x58fa88=_0x4c3c76['get'](_0x412b5b),_0x16214d=_0x11307e['get'](_0x412b5b),_0x58e5e5=_0x11307e['get'](_0x546b13),_0x2ad4e6=_0x412b5b['commentThread']&&_0x412b5b['commentThread']['length'],_0x29e4a5=_0x546b13['commentThread']&&_0x546b13['commentThread']['length'];if(!_0x2ad4e6&&_0x58fa88(_0x58e5e5,_0x16214d))return _0x33a1b7['_joinSuggestions'](_0x546b13,_0x412b5b),_0x11307e['delete'](_0x412b5b),!0x0;if(!_0x29e4a5&&_0x58fa88(_0x16214d,_0x58e5e5))return _0x33a1b7['_joinSuggestions'](_0x412b5b,_0x546b13),_0x11307e['delete'](_0x546b13),!0x0;}return!0x1;}}['_joinSuggestions'](_0x2a59b8,_0x2aec4f){if(_0x2a59b8['isMultiRange']){for(const _0x2da35f of _0x2aec4f['getRanges']())_0x2a59b8['addRange'](_0x2da35f);}else{const _0x1db61e=_0x2aec4f['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2a59b8,this['_model']['createRange'](_0x2a59b8['getFirstRange']()['start'],_0x1db61e));}_0x2aec4f['removeMarkers']();}['_getMarkerAnnouncementText'](_0x25dd2f,_0x20e53a,_0x3ad13b){const _0x4c0536=_0x25dd2f['startsWith']('format')||_0x25dd2f['startsWith']('attribute')?'FORMATTING':_0x25dd2f['toUpperCase']();return o(this['editor']['locale'],_0x20e53a+'_'+_0x4c0536+'_SUGGESTION_ANNOUNCEMENT',_0x3ad13b);}['_initAriaMarkerChangeAnnouncements'](){const _0x1f31b8=this['editor'];if(!_0x1f31b8['ui'])return;const {ariaLiveAnnouncer:_0x54b5e1}=_0x1f31b8['ui'];_0x365d21(this['_model'],({left:_0x867f93,entered:_0x1356ef})=>{for(const _0x17f79c of _0x867f93){const {group:_0x22608f,type:_0xcbcfd}=this['_splitMarkerName'](_0x17f79c['name']);if('suggestion'===_0x22608f){_0x54b5e1['announce'](this['_getMarkerAnnouncementText'](_0xcbcfd,'LEAVE'));break;}}for(const _0x35722d of _0x1356ef){const {group:_0x409f51,type:_0x1dd5c6}=this['_splitMarkerName'](_0x35722d['name']);if('suggestion'===_0x409f51){_0x54b5e1['announce'](this['_getMarkerAnnouncementText'](_0x1dd5c6,'ENTER',_0x3e17e8(_0x3c83d2)));break;}}});}['_processAttributeChanges'](_0x59f2e8){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3977d=this['editor'],_0x2326d8=_0x3977d['model']['document']['differ']['getChanges']();if(0x0==_0x2326d8['length'])return!0x1;const _0xea629=[],_0x9032f9=_0x2326d8['filter'](_0x163e0a=>'attribute'==_0x163e0a['type']),_0x52b5e8=_0x2326d8['filter'](_0x324dd9=>'insert'==_0x324dd9['type']&&'$text'!=_0x324dd9['name']),_0x3e06b9=_0x2326d8['filter'](_0x8c2238=>'remove'==_0x8c2238['type']&&'$text'!=_0x8c2238['name']);for(const _0x546177 of _0x9032f9)_0xea629['push']({'key':_0x546177['attributeKey'],'newValue':_0x546177['attributeNewValue'],'oldValue':_0x546177['attributeOldValue'],'range':Zt(_0x546177['range'],_0x3977d['model'])});for(const _0x12c21b of _0x52b5e8){const _0x33e67c=_0x3e06b9['find'](_0x1b1148=>_0x1b1148['position']['isEqual'](_0x12c21b['position']));_0x33e67c&&_0xea629['push']({'key':m,'newValue':_0x12c21b['name'],'oldValue':_0x33e67c['name'],'range':_0x3977d['model']['createRangeOn'](_0x12c21b['position']['nodeAfter'])});}return 0x0!=_0xea629['length']&&this['_reduceExistingSuggestions'](_0x59f2e8,_0xea629);}['_processAttributeSuggestions'](_0x2d789e){let _0x3de33c=!0x1;const _0x40ec8f=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1a3eb9=>_0x1a3eb9['data']['newRange']&&_0x1a3eb9['name']['startsWith']('suggestion:attribute:'));for(const _0x15825c of _0x40ec8f){const {subType:_0x1b7d52,id:_0x378ad2}=this['_splitMarkerName'](_0x15825c['name']),_0xafeaf7=_0x1b7d52['split']('|')[0x0];for(const _0x105a7a of this['getSuggestions']({'skipNotAttached':!0x0}))_0x105a7a['id']!=_0x378ad2&&'attribute'==_0x105a7a['type']&&_0x105a7a['data']&&_0x105a7a['data']['key']==_0xafeaf7&&_0x105a7a['getFirstRange']()['isIntersecting'](_0x15825c['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x105a7a,_0x15825c['data']['newRange'],_0x2d789e),_0x3de33c=!0x0);}return _0x3de33c;}['recordAttributeChanges'](_0x23e47c){this['_recordAttributeSuggestions']=!0x0,_0x23e47c();}['_isRegisteredAttribute'](_0x2ba33a){return this['editor']['plugins']['get'](Jt)['isRegisteredAttribute'](_0x2ba33a);}['_reduceExistingSuggestions'](_0x247144,_0x1dedc7){if(0x0==_0x1dedc7['length'])return!0x1;let _0x4d472e=!0x1;for(const _0x324e4f of _0x1dedc7){const _0x33ac70=this['_findSuggestions'](_0x324e4f['range'],'attribute')['filter'](_0x3444cc=>!_0x3444cc['meta']['isNextTo'])['map'](_0x3f6fc6=>_0x3f6fc6['suggestion']),_0xd45354=_0x6a7a5e({'newValue':_0x324e4f['newValue']});_0x33ac70['filter'](_0x55bec8=>{const [_0x47787e,_0x512530]=_0x55bec8['subType']['split']('|');return _0x47787e==_0x324e4f['key']&&_0x512530!=_0xd45354;})['forEach'](_0x48afc4=>{this['_reduceSuggestionAttributeRange'](_0x48afc4,_0x324e4f['range'],_0x247144),_0x4d472e=!0x0;});}return _0x4d472e;}['_reduceSuggestionAttributeRange'](_0x258e60,_0x5bd327,_0x1ec374){const _0x4f0b44=_0x258e60['getFirstRange']()['getDifference'](_0x5bd327);0x0!==_0x4f0b44['length']?0x1!==_0x4f0b44['length']?this['_breakSuggestionMarker'](_0x258e60,_0x5bd327['start'],_0x5bd327['end']):this['_setSuggestionRange'](_0x258e60,_0x4f0b44[0x0]):_0x1ec374['removeMarker'](_0x258e60['getFirstMarker']());}}class qt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x5e49f1){this['_editor']=_0x5e49f1,this['_model']=_0x5e49f1['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x4f693d,_0x52c0ff,_0x347a7b,_0x132ae7,_0x508461,_0x55ac10,_0x597621){return new x(this['_model'],{'type':_0x4f693d,'subType':_0x52c0ff,'id':_0x347a7b,'originalSuggestionId':_0x597621,'author':_0x132ae7,'creator':_0x132ae7,'attributes':_0x508461,'onAttributesChange':_0x55ac10,'onAccept':(..._0x39dcab)=>this['getSuggestionCallback'](_0x4f693d,_0x52c0ff,'accept')(..._0x39dcab),'onDiscard':(..._0x5c8d10)=>this['getSuggestionCallback'](_0x4f693d,_0x52c0ff,'discard')(..._0x5c8d10)});}['registerCustomCallback'](_0x325025,_0x5df660,_0x4ecc68,_0x5f03ea){const _0x239b95=_0x325025+':'+_0x5df660+':'+_0x4ecc68;this['_customCallbacks']['set'](_0x239b95,_0x5f03ea);}['getSuggestionCallback'](_0x435566,_0x136e88,_0x409721){const _0x27a0ec=_0x435566+':'+_0x136e88+':'+_0x409721;return this['_customCallbacks']['get'](_0x27a0ec)||this['_defaultCallbacks']['get'](_0x435566+':'+_0x409721);}['_registerDefaultCallbacks'](){const _0x421da2=()=>!0x1,_0x3d83d5=_0x55f197=>{_0x55f197['sort']((_0x23a458,_0x152c49)=>_0x23a458['start']['isBefore'](_0x152c49['start'])?0x1:-0x1),this['_model']['change'](_0x8ec1bf=>{for(const _0x136959 of _0x55f197){let _0x4a919e;_0x4a919e=_0x136959['end']['isAtEnd']&&_0x136959['end']['parent']==_0x136959['start']['nodeAfter']?_0x8ec1bf['createSelection'](_0x136959['start']['nodeAfter'],'on'):_0x8ec1bf['createSelection'](_0x136959),this['_model']['deleteContent'](_0x4a919e,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x49f8c5=(_0x16a5c2,_0x5a5f14)=>{_0x5a5f14&&this['_model']['change'](_0x5f0eec=>{const {commandName:_0x1fe93d,commandParams:_0xed1fe3=[]}=_0x5a5f14,_0x5f22f8=_0x16a5c2['map'](_0x30b302=>(Kt(_0x30b302)&&(_0x30b302=this['_model']['createRange'](_0x30b302['end'])),_0x30b302))['filter'](_0x47b90a=>'$graveyard'!==_0x47b90a['root']['rootName']);if(_0x5f22f8['length']<0x1)return;const _0x355769=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x34cbed=>_0x1506cc['fromRange'](_0x34cbed));_0x5f0eec['setSelection'](_0x5f22f8);for(const _0x3b7cc6 of this['_editor']['commands']['commands']())_0x3b7cc6['refresh']();_0xed1fe3['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1fe93d,..._0xed1fe3);const _0x28060d=_0x355769['filter'](_0x547b18=>'$graveyard'!=_0x547b18['root']['rootName']);_0x28060d['length']>0x0&&_0x5f0eec['setSelection'](_0x28060d);for(const _0x50b6a5 of _0x355769)_0x50b6a5['detach']();});},_0x3ad1f3=(_0x620cab,_0x4fe385)=>0x1==_0x620cab['length']&&0x1==_0x4fe385['length']&&_0x620cab[0x0]['end']['isEqual'](_0x4fe385[0x0]['start']),_0x1ab461=(_0x522a52,_0x52f6ee,_0x77a1b7,_0x4c4042)=>nn(_0x522a52,_0x52f6ee,_0x77a1b7,_0x4c4042)?[_0x522a52,_0x52f6ee]:nn(_0x52f6ee,_0x522a52,_0x4c4042,_0x77a1b7)?[_0x52f6ee,_0x522a52]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x421da2),this['_defaultCallbacks']['set']('insertion:discard',_0x3d83d5),this['_defaultCallbacks']['set']('insertion:join',_0x3ad1f3),this['_defaultCallbacks']['set']('insertion:chain',_0x1ab461),this['_defaultCallbacks']['set']('deletion:accept',_0x3d83d5),this['_defaultCallbacks']['set']('deletion:discard',_0x421da2),this['_defaultCallbacks']['set']('deletion:join',_0x3ad1f3),this['_defaultCallbacks']['set']('deletion:chain',_0x1ab461),this['_defaultCallbacks']['set']('formatInline:accept',_0x49f8c5),this['_defaultCallbacks']['set']('formatInline:discard',_0x421da2),this['_defaultCallbacks']['set']('formatInline:join',_0x3ad1f3),this['_defaultCallbacks']['set']('formatInline:chain',_0x421da2),this['_defaultCallbacks']['set']('formatBlock:accept',_0x49f8c5),this['_defaultCallbacks']['set']('formatBlock:discard',_0x421da2),this['_defaultCallbacks']['set']('formatBlock:join',_0x3ad1f3),this['_defaultCallbacks']['set']('formatBlock:chain',_0x421da2),this['_defaultCallbacks']['set']('attribute:accept',_0x421da2),this['_defaultCallbacks']['set']('attribute:discard',(_0x198046,_0x3b5c4d)=>{if(!_0x3b5c4d)return;const _0x4c5acf=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x2a3af7=>{if(_0x3b5c4d['key']==m)for(const _0x16f2ec of _0x198046){const _0x568b4b=_0x16f2ec['start']['nodeAfter'],_0x54b8a2=_0x3b5c4d['oldValue'];_0x2a3af7['rename'](_0x568b4b,_0x54b8a2);}else{if(_0x4c5acf['_isBlockAttribute'](_0x3b5c4d['key'])){for(const _0x428dc2 of _0x198046)void 0x0!==_0x3b5c4d['oldValue']?_0x2a3af7['setAttribute'](_0x3b5c4d['key'],_0x3b5c4d['oldValue'],_0x428dc2['start']['nodeAfter']):_0x2a3af7['removeAttribute'](_0x3b5c4d['key'],_0x428dc2['start']['nodeAfter']);}else{for(const _0x3b91f0 of _0x198046)_0x3b5c4d['oldValue']?_0x2a3af7['setAttribute'](_0x3b5c4d['key'],_0x3b5c4d['oldValue'],_0x3b91f0):_0x2a3af7['removeAttribute'](_0x3b5c4d['key'],_0x3b91f0);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x3ad1f3);}}function zt(_0x3b0114,_0x25a367,_0x5ecc39){for(const _0x18f432 of _0x25a367['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x18f432['root']==_0x18f432)return!0x1;if(!_0x5ecc39['containsItem'](_0x18f432))return!0x1;if(_0x3b0114['isObject'](_0x18f432)||_0x3b0114['isLimit'](_0x18f432))return!0x0;}return!0x1;}function Kt(_0x43ae5f){return _0x43ae5f['end']['parent']==_0x43ae5f['start']['nodeAfter']&&_0x43ae5f['end']['isAtStart'];}function Wt(_0x124d78,_0x1ec5a3,_0x196f6a,_0x289e10){const _0x3fe2f2=_0x280b4d=>!_0x280b4d['item']['is']('$textProxy')&&!_0x289e10['isObject'](_0x280b4d['item']),_0x85a1dd=_0x124d78['start']['getLastMatchingPosition'](_0x3fe2f2),_0x52f24d=_0x124d78['end']['getLastMatchingPosition'](_0x3fe2f2,{'direction':'backward'});return(!_0x124d78['start']['isEqual'](_0x85a1dd)||!_0x124d78['end']['isEqual'](_0x52f24d))&&(_0x85a1dd['isBefore'](_0x52f24d)?_0x196f6a['updateMarker'](_0x1ec5a3,{'range':_0x196f6a['createRange'](_0x85a1dd,_0x52f24d)}):_0x196f6a['removeMarker'](_0x1ec5a3),!0x0);}function Ht(_0x21b19d){return _0x6a7a5e(_0x21b19d);}function Qt(_0x5b1088){const _0x34678d=_0x5b1088['start']['nodeAfter'];return _0x34678d&&_0x34678d['is']('element');}function Xt(_0x5012f8){return Kt(_0x5012f8)||function(_0x25d803){return _0x25d803['start']['parent']==_0x25d803['end']['nodeBefore']&&_0x25d803['start']['isAtEnd'];}(_0x5012f8);}function Yt(_0x41509b,_0x229e0a){try{const _0x51db0a=_0x41509b['getRange']();for(const _0x162faa of _0x229e0a)if(_0x41509b!==_0x162faa&&_0x51db0a&&_0x51db0a['isIntersecting'](_0x162faa['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Zt(_0x2979d6,_0x2f03ff){return null==_0x2979d6['end']['nodeBefore']&&_0x2979d6['end']['parent']==_0x2979d6['start']['nodeAfter']?tn(_0x2979d6['start']['nodeAfter'],_0x2f03ff):_0x2979d6;}function tn(_0x47834a,_0x5e77f7){const _0x1390b8=_0x5e77f7['schema']['isObject'](_0x47834a)||_0x5e77f7['schema']['isSelectable'](_0x47834a);return _0x5e77f7['createRange'](_0x5e77f7['createPositionAt'](_0x47834a,'before'),_0x1390b8?_0x5e77f7['createPositionAfter'](_0x47834a):_0x5e77f7['createPositionAt'](_0x47834a,'end'));}function nn(_0x462e4b,_0x52fd4e,_0x4ede29,_0x31cfb5){return!!en(_0x462e4b,_0x52fd4e)&&_0x4ede29['end']['isEqual'](_0x31cfb5['start']);}function en(_0x259478,_0x107b8a){if(!_0x259478['_isDataLoaded']||!_0x107b8a['_isDataLoaded'])return!0x1;const _0x4f240f=new Set(Object['keys'](_0x259478['attributes'])),_0x4c637e=new Set(Object['keys'](_0x107b8a['attributes']));if(_0x4f240f['delete']('groupId'),_0x4c637e['delete']('groupId'),0x0==_0x4f240f['size']&&0x0==_0x4c637e['size'])return!0x0;if(_0x4f240f['size']!=_0x4c637e['size'])return!0x1;const _0x20b68a={..._0x259478['attributes']},_0x5488f3={..._0x107b8a['attributes']};return delete _0x20b68a['groupId'],delete _0x5488f3['groupId'],JSON['stringify'](_0x20b68a)==JSON['stringify'](_0x5488f3);}function sn(_0x230822,_0x2fe74f){const _0x1c79fd=on(_0x230822['attributes']),_0x51096d=on(_0x2fe74f);if(!_0x230822['_isDataLoaded'])return!0x1;for(const _0x3ec661 of Object['keys'](_0x51096d))if(!_0x21a076(_0x1c79fd[_0x3ec661],_0x51096d[_0x3ec661]))return!0x1;return!0x0;}function on(_0x2c7fe9){const _0x48ef99=Object['assign']({},_0x2c7fe9);return delete _0x48ef99['skipNestingCheck'],delete _0x48ef99['tablePasteChainId'],_0x48ef99;}class pe extends/* #__PURE__ -- @preserve */
26
- _0x3cf1a1(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0xb7f6c9,_0x37a46e,_0x1dad14,_0x3c6394){super(),this['model']=_0x37a46e,this['view']=_0x1dad14,this['commentThreadController']=_0x3c6394,this['_editor']=_0xb7f6c9,this['_acceptCommand']=_0xb7f6c9['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0xb7f6c9['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x40aed6,_0x15b371)=>_0x40aed6||_0x15b371),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x3858c5=>_0x3858c5&&this['_editor']['model']['canEditAt'](_0x37a46e['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x44a95d=>_0x44a95d&&this['_editor']['model']['canEditAt'](_0x37a46e['getRanges']())),this['_pendingAction']=null,_0x1dad14['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x1dad14,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x1dad14,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x1dad14,'change:isDirty',()=>{_0x1dad14['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 _0x3b81d9=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x3b81d9);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x456a2c{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x44c941,_0x49b000,_0x33d7d7,_0x66acf2){super(_0x44c941),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x557dc3(_0x44c941,o(_0x44c941,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x49b000['authoredAt']),this['bind']('authoredAt')['to'](_0x49b000),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',_0x49b000,'authoredAt',this,'descriptionParts',(_0x66fccc,_0x281e04,_0x54ad19)=>{const _0x3ff1cc=_0x54ad19['map'](_0x4cdd75=>ls(_0x4cdd75['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x66fccc-0x1,_0x49b000['author']['name'],_0x281e04?_0x66acf2['formatDateTime'](_0x281e04):'',new DOMParser()['parseFromString'](_0x3ff1cc,'text/html')['body']['textContent']]);}),this['focusables']=new _0xd7b16e(),this['focusTracker']=new _0x5a142d(),this['keystrokes']=new _0x3d7300(),this['focusCycler']=new _0x417dd8({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x51f478=>_0x51f478['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x49b000,this['_localUser']=_0x33d7d7,this['_config']=_0x66acf2,_0x66acf2['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x245efb(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x25e010}=this['_config'];this['commentsListView']=new _0x25e010(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',_0x5570a5=>_0x5570a5+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x146246,_0x37980a)=>_0x146246||!!_0x37980a);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x2910e9}=this['_config'],_0xb01d3=new _0x2910e9(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x538a3f=_0xb01d3['commentInputView'];return _0xb01d3['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x538a3f,'value',(_0x15f1c6,_0x3f9dde,_0x2818e1)=>!!_0x2818e1||_0x15f1c6&&!_0x3f9dde),_0x538a3f['on']('submit',(_0x48f3d7,_0x63f38)=>{this['fire']('addComment',_0x63f38),_0x538a3f['editor']['setData']('');}),_0x538a3f['on']('cancel',()=>this['focus']()),_0x538a3f['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0xb01d3;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x53df45,_0x3438c2,_0x511796,_0x32131d){super(_0x53df45,_0x3438c2,_0x511796,_0x32131d),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x2cfc10=>_0x2cfc10&&_0x2cfc10[0x0]?_0x2cfc10[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x2d55b1,_0x336d20)=>{let _0x92a52f='';for(const _0x42bdf7 of _0x2d55b1)_0x92a52f+='<p>'+ls(_0x42bdf7['content'],_0x42bdf7['color'])+'</p>';return _0x336d20?_0x92a52f:_0x3f118a(_0x92a52f,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x32131d['SuggestionView'](_0x53df45,_0x3438c2,{'formatDateTime':_0x32131d['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 _0x39f8c0=this['bindTemplate'],_0x4b91f9=[this['suggestionView']];return this['commentsListView']&&_0x4b91f9['push'](this['commentsListView']),this['commentThreadInputView']&&_0x4b91f9['push'](this['commentThreadInputView']),_0x4b91f9['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x39f8c0['if']('isActive','ck-suggestion-wrapper--active'),_0x39f8c0['to']('type',_0x3c5f23=>'ck-suggestion-'+_0x3c5f23),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':_0x39f8c0['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x4b91f9};}['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 _0x456a2c{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x299b16,_0x3181ca,_0x4ff7aa){super(_0x299b16),this['_model']=_0x3181ca,this['_config']=_0x4ff7aa,this['set']('description',''),this['bind']('authoredAt')['to'](_0x3181ca),this['acceptButton']=this['_createButton'](o(_0x299b16,'Accept\x20suggestion'),_0x273bcd,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x299b16,'Discard\x20suggestion'),_0x14c686,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x3a19d5(_0x299b16,_0x3181ca['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0xd7b16e([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x5a142d(),this['keystrokes']=new _0x3d7300(),this['focusCycler']=new _0x417dd8({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x30e1a3=>_0x30e1a3['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x83ffc6=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x83ffc6['innerHTML']=this['description'],this['on']('change:description',(_0x346596,_0x263006,_0x44a621)=>{_0x83ffc6['innerHTML']=_0x44a621;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x37b47d=this['bindTemplate'],_0x3a80b0=[{'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':_0x37b47d['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x37b47d['to']('authoredAt',_0xcde25a=>this['_config']['formatDateTime'](_0xcde25a))}]}]},{'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']&&_0x3a80b0['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':_0x3a80b0}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x513d80,_0x176746,_0xe8bf84,_0x5e0965,_0x525bed){const _0x3bb58=new _0x232955(this['locale']);return _0x3bb58['set']({'label':_0x513d80,'icon':_0x176746,'tooltip':!0x0,'tooltipPosition':_0x525bed}),_0x3bb58['extendTemplate']({'attributes':{'class':_0xe8bf84}}),_0x3bb58['on']('execute',()=>{this['fire'](_0x5e0965,this['_model']['id']);}),_0x3bb58;}['_setupKeyboardNavigation'](){const _0x484057=this['element'];this['keystrokes']['listenTo'](_0x484057);for(const _0x563463 of this['focusables'])this['focusTracker']['add'](_0x563463['element']),this['keystrokes']['listenTo'](_0x563463['element']);this['keystrokes']['set']('enter',(_0x5ad058,_0x594b7c)=>{_0x484057===_0x5ad058['target']&&(this['focusCycler']['focusFirst'](),_0x594b7c());}),this['keystrokes']['set']('esc',(_0x2d9e4c,_0x196565)=>{_0x484057!==_0x2d9e4c['target']&&(this['focus'](),_0x196565());});}}class u extends _0x452242{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x5123b8,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x267552){super(_0x267552),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x519135=this['editor']['config'];_0x519135['define']('trackChanges.SuggestionThreadView',fe),_0x519135['define']('trackChanges.SuggestionView',we),_0x519135['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x519135['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x4f3d45,_0x557c9e){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x1cce2c,_0x5c2bbc]of this['_handleControllerBuffer']){const _0x52b010=this['_suggestionToController']['has'](_0x1cce2c);_0x52b010||_0x5c2bbc?_0x52b010&&_0x5c2bbc&&this['_destroyController'](_0x1cce2c):this['_initializeController'](_0x1cce2c);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x4f3d45,_0x557c9e);}['init'](){const _0x51422c=this['editor'],_0x5c99fc=_0x51422c['plugins']['get']('TrackChangesEditing'),_0x146033=_0x51422c['plugins']['get']('Annotations'),_0x588202=_0x51422c['plugins']['get']('EditorAnnotations'),_0x4c6bda=_0x51422c['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x588202['addSourceCollector'](()=>{const _0x2b244e=[];for(const [_0x4476ec,_0x1b77e1]of Array['from'](this['_suggestionToController'])){const _0x34d579=_0x4476ec['getAllAdjacentSuggestions'](),_0x3c3a54=[];for(const _0x2e04f5 of _0x34d579){if(!_0x2e04f5['isInContent'])continue;if(_0x2e04f5['isMultiRange']){_0x3c3a54['push'](..._0x2e04f5['getRanges']());continue;}const _0x22a205=_0x2e04f5['getFirstRange']();if(_0x3c3a54['length']>0x0){const _0x37883f=_0x3c3a54[0x0]['getJoined'](_0x22a205);if(_0x37883f){_0x3c3a54[0x0]=_0x37883f;continue;}}_0x3c3a54['push'](_0x22a205);}_0x2b244e['push']([_0x1b77e1['view'],_0x3c3a54]);}return _0x2b244e;}),this['listenTo'](_0x5c99fc,'suggestionLoaded',(_0x293be8,_0x2cced8)=>{this['listenTo'](_0x2cced8,'change:previous',(_0x5088f8,_0x36e077,_0x1db106,_0xeb3a23)=>{_0x2cced8['isInContent']&&(null==_0x1db106?(this['_updateController'](_0xeb3a23['head']),this['_handleSuggestionControllerDelayed'](_0x2cced8,!0x1)):(this['_updateController'](_0x1db106['head']),null==_0xeb3a23&&this['_handleSuggestionControllerDelayed'](_0x2cced8,!0x0)));}),null!==_0x2cced8['previous']?this['_updateController'](_0x2cced8['head']):this['_handleSuggestionControllerDelayed'](_0x2cced8,!0x1);}),this['listenTo'](_0x5c99fc,'suggestionUnloaded',(_0x4175e8,_0x5980de,_0x161d8a)=>{this['stopListening'](_0x5980de,'change:previous'),this['_handleControllerBuffer']['delete'](_0x5980de),this['_suggestionToController']['has'](_0x5980de)&&this['_destroyController'](_0x5980de),_0x161d8a&&this['_updateController'](_0x161d8a['head']);}),this['listenTo'](_0x5c99fc,'suggestionChanged',(_0x3c7afe,_0x3511d7)=>{this['_updateController'](_0x3511d7);}),this['listenTo'](_0x146033,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x4c6bda,'addComment',(_0x294efa,{threadId:_0x3c8ca7,isFromAdapter:_0x927f4e})=>{if(_0x927f4e||!_0x5c99fc['hasSuggestion'](_0x3c8ca7))return;const _0x158897=_0x5c99fc['getSuggestion'](_0x3c8ca7);this['_suggestionToController']['get'](_0x158897)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2e1e31=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x398458;for(const _0x44f2e0 in _0x2e1e31){const _0x1c6380=_0x44f2e0,_0x30e127=_0x2e1e31[_0x1c6380];if('trackChangesLicenseKeyValid'==_0x30e127||'trackChangesLicenseKeyInvalid'==_0x30e127||'trackChangesLicenseKeyExpired'==_0x30e127||'trackChangesLicenseKeyDomainLimit'==_0x30e127||'trackChangesLicenseKeyNotAllowed'==_0x30e127||'trackChangesLicenseKeyEvaluationLimit'==_0x30e127||'trackChangesLicenseKeyUsageLimit'==_0x30e127){delete _0x2e1e31[_0x1c6380],_0x398458=_0x30e127,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x398458&&_0x2e1e31['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x398458&&_0x2e1e31['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x398458&&_0x2e1e31['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x398458&&_0x2e1e31['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x398458&&_0x2e1e31['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x398458&&_0x2e1e31['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x375709){const _0x45cb46=this['_suggestionToController']['get'](_0x375709);if(!_0x45cb46)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x45cb46['view'])||null;}['getSuggestionForAnnotation'](_0x2de13a){const _0x342a4d=this['_viewToController']['get'](_0x2de13a['innerView']);return _0x342a4d?_0x342a4d['model']:null;}['_refreshActiveMarkers'](){const _0x3a379d=this['editor']['plugins']['get']('Annotations'),_0x2c5074=this['editor']['plugins']['get']('TrackChangesEditing'),_0x119067=Array['from'](_0x3a379d['activeAnnotations'],_0x14c851=>_0x14c851['innerView'])['filter'](_0x43b517=>this['_viewToController']['has'](_0x43b517)),_0x3545b6=[];for(const _0x5867e7 of _0x119067){const _0x2921e4=this['_viewToController']['get'](_0x5867e7)['model']['getAllAdjacentSuggestions']();_0x3545b6['push'](..._0x2921e4['reduce']((_0x5f01c6,_0x5ca5ee)=>[..._0x5f01c6,..._0x5ca5ee['getMarkerNames']()],[]));}_0x2c5074['activeMarkers']=_0x3545b6;}['_addUIComponentsToFactory'](){const _0x258b10=this['editor'],_0x3868c8=_0x258b10['locale'],_0x170bd=o(_0x3868c8,'Track\x20changes'),_0x2488c3=new _0x4de9d4([{'type':'switchbutton','model':new _0x46ef39({'withText':!0x0,'isToggleable':!0x0,'label':_0x170bd,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x46ef39({'withText':!0x0,'label':o(_0x3868c8,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x46ef39({'withText':!0x0,'label':o(_0x3868c8,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x46ef39({'withText':!0x0,'label':o(_0x3868c8,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x46ef39({'withText':!0x0,'label':o(_0x3868c8,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x258b10['plugins']['has']('TrackChangesPreview')&&_0x2488c3['addMany']([{'type':'separator'},{'type':'button','model':new _0x46ef39({'withText':!0x0,'label':o(_0x3868c8,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x32def1 of _0x2488c3)if(ke(_0x32def1)){const _0x5668b0=_0x258b10['commands']['get'](_0x32def1['model']['commandName']);_0x32def1['model']['bind']('isOn','isEnabled')['to'](_0x5668b0,'value','isEnabled');}_0x258b10['ui']['componentFactory']['add']('trackChanges',_0x5d5adf=>this['_createToolbarButton'](_0x5d5adf,_0x2488c3,_0x170bd)),_0x258b10['ui']['componentFactory']['add']('menuBar:trackChanges',_0x4dabac=>this['_createMenuBarMenu'](_0x4dabac,_0x2488c3,_0x170bd));}['_createToolbarButton'](_0x5584d9,_0x16ef81,_0x165424){const _0x2818b8=_0xecc729(_0x5584d9,_0x368a78),_0x944c77=this['editor']['commands']['get']('trackChanges');_0x2818b8['buttonView']['set']({'tooltip':_0x165424,'label':_0x165424,'icon':_0x3bf8e9}),_0x2818b8['buttonView']['bind']('isOn')['to'](_0x944c77,'value'),_0x2818b8['buttonView']['on']('execute',()=>{_0x944c77['execute'](),this['editor']['editing']['view']['focus']();}),_0x8a486(_0x2818b8,_0x16ef81,{'role':'menu'});const _0x5e29d2=[];for(const _0x5506a6 of _0x16ef81)ke(_0x5506a6)&&_0x5e29d2['push'](this['editor']['commands']['get'](_0x5506a6['model']['commandName']));const _0x1f0dcd=_0x2818b8['buttonView'];return _0x1f0dcd['actionView']['unbind']('isEnabled'),_0x1f0dcd['arrowView']['unbind']('isEnabled'),_0x1f0dcd['actionView']['bind']('isEnabled')['to'](_0x944c77,'isEnabled'),_0x1f0dcd['arrowView']['bind']('isEnabled')['toMany'](_0x5e29d2,'isEnabled',(..._0x3de524)=>_0x3de524['some'](_0x3028bf=>_0x3028bf)),_0x2818b8['on']('execute',_0x4947dc=>{this['editor']['execute'](_0x4947dc['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x2818b8;}['_createMenuBarMenu'](_0x2400bc,_0xf481ed,_0x2dfb76){const _0x218df3=new _0x21810e(_0x2400bc),_0x2bb9a9=this['editor']['commands']['get']('trackChanges');_0x218df3['buttonView']['set']({'label':_0x2dfb76,'icon':_0x3bf8e9});const _0x16bb3d=new _0x43d21a(_0x2400bc);for(const _0x103424 of _0xf481ed){if('separator'==_0x103424['type']){_0x16bb3d['items']['add'](new _0x5b1174(_0x2400bc));continue;}const _0x291665=new _0x547d1c(_0x2400bc,_0x218df3),_0x4f1f42=new _0x666110(_0x2400bc),_0x3421a3=_0x103424['model'];_0x4f1f42['bind'](...Object['keys'](_0x3421a3))['to'](_0x3421a3),_0x4f1f42['delegate']('execute')['to'](_0x218df3),_0x4f1f42['on']('execute',()=>{this['editor']['execute'](_0x3421a3['commandName']),this['editor']['editing']['view']['focus']();}),_0x291665['children']['add'](_0x4f1f42),_0x16bb3d['items']['add'](_0x291665);}return _0x218df3['bind']('isEnabled')['to'](_0x2bb9a9,'isEnabled'),_0x218df3['panelView']['children']['add'](_0x16bb3d),_0x218df3;}['_initializeController'](_0x5e3028){const _0x18c66b=this['editor'],_0x566f37=_0x18c66b['config'],_0x58d286=_0x18c66b['plugins']['get']('Annotations'),_0x1f1fd8=_0x18c66b['plugins']['get']('CommentsRepository'),_0x532514=_0x18c66b['plugins']['get']('EditorAnnotations'),_0x2ea395=_0x18c66b['plugins']['get'](_0x5123b8)['me'],_0x2a6d47=_0x566f37['get']('trackChanges')['SuggestionThreadView'],_0x57a9c4=_0x566f37['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x3322a7,CommentThreadInputView:_0x560875}=_0x18c66b['plugins']['get']('CommentsUI');let _0x1e1ed5,_0x1eb8a0,_0x44a875;this['_annotationViews']['has'](_0x5e3028['id'])?(_0x1eb8a0=this['_annotationViews']['get'](_0x5e3028['id']),_0x1e1ed5=_0x1eb8a0['mainView']):(_0x1e1ed5=new _0x2a6d47(_0x18c66b['locale'],_0x5e3028,_0x2ea395,{'disableComments':this['_disableComments'],'editorConfig':{..._0x566f37['get']('comments.editorConfig'),'licenseKey':_0x566f37['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x566f37['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x566f37['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x566f37['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x2d3c76(_0x566f37['get']('locale'),_0x18c66b['locale']),'CommentView':_0x566f37['get']('comments')['CommentView'],'CommentsListView':_0x3322a7,'CommentThreadInputView':_0x560875,'SuggestionView':_0x57a9c4}),_0x1e1ed5['suggestionView']['acceptButton']['on']('execute',()=>{_0x18c66b['editing']['view']['focus']();}),_0x1e1ed5['suggestionView']['discardButton']['on']('execute',()=>{_0x18c66b['editing']['view']['focus']();}),_0x1eb8a0=_0x58d286['createAnnotationView'](this['editor']['locale'],_0x1e1ed5),_0x1eb8a0['bind']('isDirty')['to'](_0x1e1ed5,'isDirty'),_0x1eb8a0['bind']('length')['to'](_0x1e1ed5),_0x1eb8a0['bind']('type')['to'](_0x1e1ed5,'type',_0x2bfc94=>'suggestion-'+_0x2bfc94),_0x1e1ed5['on']('escape',()=>{_0x44a875['fire']('escape');}),this['_annotationViews']['set'](_0x5e3028['id'],_0x1eb8a0));const _0x81b5ac=_0x1f1fd8['createCommentThreadController'](_0x5e3028['commentThread'],_0x1e1ed5),_0x2b4e0d=new pe(_0x18c66b,_0x5e3028,_0x1e1ed5,_0x81b5ac),_0x4a2346=_0x5e3028['getAllAdjacentSuggestions']()['filter'](_0x1d14df=>_0x1d14df['isInContent']);_0x1e1ed5['descriptionParts']=_0x18c66b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x4a2346),this['_suggestionToController']['set'](_0x5e3028,_0x2b4e0d),this['_viewToController']['set'](_0x1e1ed5,_0x2b4e0d);const _0x29ce71=()=>{const _0x1b65a2=[],_0x8787ef=_0x5e3028['getAllAdjacentSuggestions']()['filter'](_0x288fde=>_0x288fde['isInContent']);for(const _0x58b6d4 of _0x8787ef)_0x1b65a2['push'](..._0x58b6d4['getMarkers']());return _0x5dc1b7(_0x18c66b['editing'],_0x1b65a2);};_0x44a875=_0x58d286['createAnnotation']({'view':_0x1eb8a0,'target':_0x29ce71,'type':()=>'suggestion-'+_0x2b4e0d['view']['type'],'isVisible':!!_0x29ce71()}),_0x1f1fd8['_bindAnnotationToEditors'](_0x1e1ed5,_0x44a875),_0x58d286['add'](_0x44a875),_0x532514['registerAnnotation'](_0x44a875);}['_destroyController'](_0x10f170){const _0x382dc7=this['editor']['plugins']['get']('CommentsRepository'),_0x23e4d2=this['editor']['plugins']['get']('Annotations'),_0x4fe8a4=this['_suggestionToController']['get'](_0x10f170),_0x2b4341=_0x4fe8a4['view'],_0x1c2299=_0x23e4d2['getByInnerView'](_0x2b4341);_0x382dc7['_unbindEditors'](_0x2b4341),_0x1c2299&&_0x23e4d2['remove'](_0x1c2299),this['_suggestionToController']['delete'](_0x10f170),this['_viewToController']['delete'](_0x2b4341),_0x4fe8a4['destroy']();}['_updateController'](_0xbe31f6){if(!_0xbe31f6['isInContent']||!this['_suggestionToController']['has'](_0xbe31f6))return;const _0x37b668=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5f44c6=this['_suggestionToController']['get'](_0xbe31f6),_0x3d3550=_0xbe31f6['getAllAdjacentSuggestions']();_0x5f44c6['view']['descriptionParts']=_0x37b668['descriptionFactory']['getDescriptions'](_0x3d3550);}['destroy'](){for(const _0x829295 of this['_suggestionToController']['keys']())this['_destroyController'](_0x829295);for(const _0x18cfd0 of this['_annotationViews']['values']())_0x18cfd0['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0xe8675){return'model'in _0xe8675;}class Ne extends _0x452242{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x34e514){this['editor']['plugins']['get'](d)['adapter']=_0x34e514;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x490fcb){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x490fcb);}['getSuggestions']({skipNotAttached:_0x87b1f6=!0x1,toJSON:_0x5575dd=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x87b1f6,'toJSON':_0x5575dd});}['getSuggestion'](_0x4c7842){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x4c7842);}}const p=['Pagination'];class re extends _0x452242{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x53aee9=this['editor'];if(_0x53aee9['config']['define']('trackChangesData.editorCreator',_0xbfe168=>{const _0x5e2aeb=_0x53aee9['model']['document']['getRootNames']()['reduce']((_0x14c75e,_0x504cee)=>(_0x14c75e[_0x504cee]='',_0x14c75e),{});return _0x53aee9['constructor']['create'](_0x5e2aeb,_0xbfe168);}),'function'!=typeof _0x53aee9['config']['get']('trackChangesData')['editorCreator'])throw new _0x3fdb7b('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x209913){return P(this['editor'],!0x0,_0x209913);}['getDataWithDiscardedSuggestions'](_0xd78edd){return P(this['editor'],!0x1,_0xd78edd);}}class Fe extends _0x452242{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x50986e){function _0x59db69(_0xe969c0){return _0xe969c0['map'](_0x8139d1=>String['fromCharCode'](_0x8139d1))['join']('');}super(_0x50986e),this['result']='end',_0x50986e[_0x59db69([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x59db69([0x76,0x69,0x65,0x77])][_0x59db69([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x59db69([0x61,0x75,0x74,0x6f]),_0x50986e[_0x59db69([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x59db69([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x59db69([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x59db69([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x59db69([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function De(_0x188f39){return void 0x0!==_0x188f39['getRootsAttributes'];}async function P(_0x441cd3,_0x37e5ec,_0x50e485){const _0x343d6f=_0x215386(_0x441cd3,p);_0x343d6f['plugins']['push'](d,Fe),_0x343d6f['rootsAttributes']=De(_0x441cd3)?_0x441cd3['getRootsAttributes']():void 0x0;const _0x2b24fb=document['createDocumentFragment'](),_0x267131=_0x441cd3['config']['get']('trackChangesData')['editorCreator'],_0x5d0582=await _0x267131(_0x343d6f,()=>function(_0x2092c0){const _0x57854c=document['createElement']('div');return _0x2092c0['appendChild'](_0x57854c),_0x57854c;}(_0x2b24fb));!function(_0x1ea9d1,_0x383e76){const _0x4ffbef=_0x1ea9d1['model']['document']['getRootNames']()['reduce']((_0x31df42,_0xf225cb)=>(_0x31df42[_0xf225cb]=_0x1ea9d1['data']['get']({'rootName':_0xf225cb}),_0x31df42),{}),_0x17147c=_0x1ea9d1['plugins']['get']('Users')['users']['map'](_0x57f023=>({'id':_0x57f023['id'],'name':_0x57f023['name']})),_0x57075c=_0x1ea9d1['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x20cfc0=_0x1ea9d1['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xe6d87d=_0x383e76['plugins']['get']('Users'),_0x778bfd=_0x383e76['plugins']['get']('TrackChangesEditing'),_0x2a5688=_0x383e76['plugins']['get']('CommentsRepository');for(const _0x21f6d5 of _0x2a5688['getCommentThreads']())_0x21f6d5['remove']();for(const _0xfdbdb of _0x17147c)_0xe6d87d['getUser'](_0xfdbdb['id'])||_0xe6d87d['addUser'](_0xfdbdb);_0xe6d87d['me']||_0xe6d87d['useAnonymousUser']();for(const _0x11426b of _0x20cfc0)_0x2a5688['addCommentThread'](_0x11426b);for(const _0x19e4bb of _0x57075c)_0x778bfd['addSuggestionData'](_0x19e4bb);_0x383e76['data']['set'](_0x4ffbef);}(_0x441cd3,_0x5d0582),_0x5d0582['execute'](_0x37e5ec?'acceptAllSuggestions':'discardAllSuggestions');const _0x59634e=De(_0x5d0582)?_0x5d0582['getFullData'](_0x50e485):_0x5d0582['data']['get'](_0x50e485);return await _0x5d0582['destroy'](),_0x59634e;}class Me extends _0x456a2c{['options'];constructor(_0x435238,_0x471dba){super(_0x435238),this['options']=_0x471dba,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'](_0x495711,_0xf563d){if(!this['element'])return;const _0x3b2b2a=[];for(const [_0xd4f342,_0x55c3a0]of _0x495711){const _0x13c7e=document['createElement']('div');_0x13c7e['setAttribute']('data-ck-root-name',_0xd4f342),_0x13c7e['className']=_0x55c3a0['classes']+'\x20ck-track-changes-preview__root-container',_0x13c7e['innerHTML']=_0x55c3a0['content'],_0x3b2b2a['push'](_0x13c7e);}_0xf563d(this['element'],_0x3b2b2a),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x2f06c1{constructor(_0x152153){super(_0x152153),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x480375=this['editor'],_0x521d5d=_0x480375['locale'],_0x4e1439=_0x480375['plugins']['get']('Dialog');let _0x6ecef1;const _0x4f00c6=function(_0x389b37){const _0x1cacb8={};if('editables'in _0x389b37['ui']['view']){for(const [_0x3ca001,_0x1cf592]of Object['entries'](_0x389b37['ui']['view']['editables']))_0x1cacb8[_0x3ca001]=_0x1cf592['element'];}else _0x1cacb8[_0x389b37['model']['document']['getRootNames']()[0x0]]=_0x389b37['ui']['view']['editable']['element'];return _0x1cacb8;}(_0x480375),_0x123315=function(_0x1bce75){let _0x2b954e=0x0;for(const _0x413a31 of Object['values'](_0x1bce75))_0x2b954e=Math['max'](_0x2b954e,_0x413a31['getBoundingClientRect']()['width']);let _0x5a6f76=0x0;for(const _0x38bd56 of Object['values'](_0x1bce75))_0x5a6f76+=_0x38bd56['getBoundingClientRect']()['height'];const _0x19ac4b=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x30fc5a=Math['min'](_0x5a6f76,_0x19ac4b);return{'width':_0x2b954e,'height':_0x30fc5a};}(_0x4f00c6);_0x4e1439['show']({'id':'finalContentPreview','title':o(_0x521d5d,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x521d5d,{'dialogRects':_0x123315}),'onHide':()=>{_0x6ecef1['detachFromDom']();},'onShow':()=>{_0x480375['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x86f7d6=>{const _0x33ed15=this['_standarizeRootsData'](_0x86f7d6,_0x480375,_0x4f00c6);_0x4e1439['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x33ed15,_0x480375['config']['get']('trackChanges.preview.renderFunction'));}),_0x6ecef1=new _0x267ee8(_0x521d5d,[_0x4e1439['view']]),_0x6ecef1['attachToDom'](),_0x6ecef1['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x480375['once']('destroy',()=>{_0x6ecef1['detachFromDom']();});const _0x3970e2=_0x4e1439['view']['headerView']['class'];_0x4e1439['view']['headerView']['class']=_0x3970e2?_0x3970e2+'\x20ck-reset_all':'ck-reset_all',_0x4e1439['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x4e1439['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x37bfc3=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x3e67f7=_0x37bfc3['previewMode'],_0x52a625={};if('$labels'===_0x3e67f7){for(const _0x44aaa0 of _0x37bfc3['getMergeFieldsIds']())_0x52a625[_0x44aaa0]=_0x37bfc3['getLabel'](_0x44aaa0)||_0x44aaa0;}else{const _0x346c5e='$defaultValues'===_0x3e67f7?_0x37bfc3['getDefaultValues']():_0x37bfc3['getDataSetValues'](_0x3e67f7,!0x0);for(const _0x4da913 of Object['entries'](_0x346c5e)){const [_0x8d6d7f,_0x17b653]=_0x4da913;_0x52a625[_0x8d6d7f]=null!==_0x17b653?_0x17b653:_0x37bfc3['getLabel'](_0x8d6d7f)||_0x8d6d7f;}}return{'mergeFieldsData':_0x52a625};}['_standarizeRootsData'](_0x122915,_0x30d248,_0xf3239a){let _0x599347;if('string'==typeof _0x122915){const _0x3ffacd=_0x30d248['model']['document']['getRootNames']()[0x0];_0x599347={[_0x3ffacd]:_0x122915};}else _0x599347=_0x122915;const _0x5f4b60=this['_fixMediaEmbeds'](_0x599347,_0x30d248),_0x386aef=function(_0x538038,_0x22c035){for(const [_0x1fe666,_0x1cd709]of _0x538038)_0x1cd709['classes']=_0x22c035[_0x1fe666]['classList']['value']['replace']('ck-focused','');return _0x538038;}(this['_sortRoots'](_0x30d248)['reduce']((_0xcd3f1f,_0x537a74)=>(_0xcd3f1f['push']([_0x537a74,{'content':_0x5f4b60[_0x537a74],'classes':''}]),_0xcd3f1f),[]),_0xf3239a);return _0x386aef;}['_fixMediaEmbeds'](_0x185f4c,_0x55177f){if(!_0x55177f['plugins']['has']('MediaEmbedEditing'))return _0x185f4c;const _0x105a26=_0x55177f['plugins']['get']('MediaEmbedEditing');for(const [_0x135366,_0xa3903]of Object['entries'](_0x185f4c)){const _0xa638e1=document['createElement']('div');_0xa638e1['innerHTML']=_0xa3903,(_0xa638e1['querySelectorAll']('figure.media')['forEach'](_0x46434b=>{const _0x5b4e27=_0x46434b['querySelector']('oembed');if(_0x5b4e27){const _0x18bf6d=_0x5b4e27['getAttribute']('url');if(_0x18bf6d){const _0x4e961a=_0x105a26['registry']['getMediaViewElement'](new _0x33312e(_0x55177f['editing']['view']['document']),_0x18bf6d,{'elementName':'','renderForEditingView':!0x0}),_0x346d27=document['createElement']('div');_0x346d27['classList']['add']('ck-media__wrapper'),_0x4e961a['render'](_0x346d27,_0x55177f['editing']['view']['domConverter']),_0x5b4e27['replaceWith'](_0x346d27);}}}),_0x185f4c[_0x135366]=_0xa638e1['innerHTML']);}return _0x185f4c;}['_sortRoots'](_0x37ee26){if(!function(_0x35c4d4){return void 0x0!==_0x35c4d4['getRootsAttributes'];}(_0x37ee26))return _0x37ee26['model']['document']['getRootNames']();const _0x242ee2=[],_0x31fb96=new Map();for(const _0x494d7a of _0x37ee26['model']['document']['getRootNames']()){const _0x20fb05=_0x37ee26['editing']['view']['getDomRoot'](_0x494d7a)['getClientRects']()['item'](0x0);_0x242ee2['push'](_0x494d7a),_0x31fb96['set'](_0x494d7a,_0x20fb05);}return _0x242ee2['sort']((_0x187ee3,_0x3d89e5)=>{const _0x5b1929=_0x31fb96['get'](_0x187ee3),_0x48f4cd=_0x31fb96['get'](_0x3d89e5);return _0x5b1929['y']-_0x48f4cd['y']||_0x5b1929['x']-_0x48f4cd['x'];}),_0x242ee2;}}class Ue extends _0x452242{static get['requires'](){return[re,_0x23f825];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4638b5){super(_0x4638b5),_0x4638b5['commands']['add']('previewFinalContent',new te(this['editor'])),_0x4638b5['config']['define']('trackChanges.preview.renderFunction',(_0x4fab95,_0x457355)=>{for(const _0x19f6ea of _0x457355)_0x4fab95['appendChild'](_0x19f6ea);});}}export{v as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,D as DiscardSuggestionCommand,B as ExecuteOnAllSuggestionsCommand,O as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,x as Suggestion,M as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Ne as TrackChanges,$ as TrackChangesCommand,re as TrackChangesData,Fe as TrackChangesDataGetter,d as TrackChangesEditing,Ue as TrackChangesPreview,u as TrackChangesUI};
23
+ import{Command as _0xecc457,Plugin as _0x157fa6,PendingActions as _0x3c4477}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x41ba40,ObservableMixin as _0x20d851,uid as _0x38d584,priorities as _0xb2a889,insertToPriorityArray as _0x4641fa,logWarning as _0x1965c4,getEnvKeystrokeText as _0x43cc87,FocusTracker as _0xaf9d81,KeystrokeHandler as _0x179307,Collection as _0x372b73}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x479880,IconCancel as _0x223c2e,IconTrackChanges as _0x317f87}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0xe21789,View as _0x1e5d0b,ViewCollection as _0xc10508,FocusCycler as _0x1bc210,UIModel as _0x1f5dcb,createDropdown as _0x228da2,SplitButtonView as _0x7ee3d0,addListToDropdown as _0x13a388,MenuBarMenuView as _0x1d2a96,MenuBarMenuListView as _0x5293,ListSeparatorView as _0x3c1867,MenuBarMenuListItemView as _0x52784b,MenuBarMenuListItemButtonView as _0x136fdf,BodyCollection as _0x56dace,Dialog as _0x59b530}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x43f701,DocumentCompare as _0x216fdf,hashObject as _0xa15ec3,surroundingMarkersDetector as _0x44af84,FOCUS_ANNOTATION_KEYSTROKE as _0x503785,AriaDescriptionView as _0x1a945f,setupThreadKeyboardNavigation as _0xd6aa0f,trimHtml as _0x249c32,UserView as _0x679e55,LateFocusButtonView as _0x5b8ea4,getDateTimeFormatter as _0x1f1b79,getAllMarkersDomElementsSorted as _0x2fe7be,sanitizeEditorConfig as _0x3633bf}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x3360fd,ModelLiveRange as _0x4ca1d8,ModelLivePosition as _0x3f9b6d,ViewDowncastWriter as _0x23f9a6}from'@ckeditor/ckeditor5-engine/dist/index.js';import{cloneDeep as _0x297bde,set as _0x5da6a7,isEqual as _0x2880b5,unset as _0x205f3d,omit as Pt}from'es-toolkit/compat';import{Delete as _0x8de8e4,Input as _0x45a0e2}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x21a58d}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x1b9cf9}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{SuggestionsConversion as Jt,fixElementSuggestionRange as Lt,splitSuggestionMarkerName as Gt}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';class $ extends _0xecc457{['_enabledCommands'];constructor(_0x4a5736,_0x51545c){super(_0x4a5736),this['_enabledCommands']=_0x51545c,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 _0xd33d4c of this['editor']['commands']['commands']())_0xd33d4c['affectsData']&&!this['_enabledCommands']['has'](_0xd33d4c)&&_0xd33d4c['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x1f4135 of this['editor']['commands']['commands']())_0x1f4135['affectsData']&&!this['_enabledCommands']['has'](_0x1f4135)&&_0x1f4135['clearForceDisabled']('TrackChangesCommand');}}class v extends _0xecc457{['_suggestions'];constructor(_0x50e03e,_0x580b14){super(_0x50e03e),this['_suggestions']=_0x580b14,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x43ed23){const _0xac9716=this['_suggestions']['get'](_0x43ed23);if(!_0xac9716)throw new _0x41ba40('track-changes-accept-suggestion-not-found',this);const _0x54d5e6=_0xac9716['getRanges']();this['editor']['model']['canEditAt'](_0x54d5e6)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0xac9716);}}class D extends _0xecc457{['_suggestions'];constructor(_0x2a5f57,_0x3f84f8){super(_0x2a5f57),this['_suggestions']=_0x3f84f8,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x350fbc){const _0x183fe4=this['_suggestions']['get'](_0x350fbc);if(!_0x183fe4)throw new _0x41ba40('track-changes-discard-suggestion-not-found',this);const _0x1b0812=_0x183fe4['getRanges']();this['editor']['model']['canEditAt'](_0x1b0812)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x183fe4);}}function ls(_0x2cf912,_0x4ba9ca){let _0x83f434='';return _0x83f434+=_0x2cf912['split']('*')['map']((_0x314b36,_0x1255f8)=>_0x1255f8%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+rn(_0x314b36)+'</span>':rn(_0x314b36))['join'](''),_0x4ba9ca&&(_0x83f434+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x4ba9ca['value']+'\x22\x20title=\x22'+_0x4ba9ca['title']+'\x22></span>'),_0x83f434;}function rn(_0x5e5dfc){const _0x3590f2=document['createElement']('span');return _0x3590f2['innerText']=_0x5e5dfc,_0x3590f2['innerHTML'];}function ts(_0x3f41a3){return _0x3f41a3['sort']((_0x2c0524,_0x3bf6b6)=>'attribute'===_0x2c0524['type']&&'attribute'!==_0x3bf6b6['type']?-0x1:'attribute'!==_0x2c0524['type']&&'attribute'===_0x3bf6b6['type']?0x1:'deletion'==_0x2c0524['type']&&'deletion'!=_0x3bf6b6['type']?-0x1:'deletion'!=_0x2c0524['type']&&'deletion'==_0x3bf6b6['type']?0x1:0x0);}function to(_0x3b9aed,_0x2b8557){let _0x29f331,_0x3d9ae2=0x0;const _0x3108e4=[],_0x428591=_0x2b8557['schema'];for(;_0x3d9ae2<_0x3b9aed['length'];){const _0x41be8e=_0x3b9aed[_0x3d9ae2],_0x562360=_0x3b9aed[_0x3d9ae2+0x1];_0x29f331||(_0x29f331=_0x2b8557['createPositionBefore'](_0x41be8e)),cn(_0x2b8557,_0x41be8e,_0x562360)||(_0x3108e4['push'](_0x2b8557['createRange'](_0x29f331,_0x428591['isObject'](_0x41be8e)?_0x2b8557['createPositionAfter'](_0x41be8e):_0x2b8557['createPositionAt'](_0x41be8e,'end'))),_0x29f331=null),_0x3d9ae2++;}return _0x3108e4;}function cn(_0x2564e5,_0x1d6d58,_0x45b677){if(!_0x45b677)return!0x1;const _0x4f4a57=_0x2564e5['createPositionAfter'](_0x1d6d58),_0x281187=_0x2564e5['createPositionBefore'](_0x45b677);return _0x4f4a57['isTouching'](_0x281187);}function rs(_0x11af07,_0x287db4,_0x30326d){for(;_0x30326d['length'];){const _0x2fca91=_0x30326d['splice'](0x0,0x64);_0x11af07['change'](()=>{for(const _0x5eba11 of _0x2fca91)_0x5eba11['isInContent']&&_0x287db4['execute'](_0x5eba11['id']);});}}class B extends _0xecc457{['_command'];['_suggestions'];constructor(_0x5cc108,_0x48f33a,_0x4fda7e){super(_0x5cc108),this['_command']=_0x48f33a,this['_suggestions']=_0x4fda7e,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x407991=Array['from'](this['_suggestions']['values']())['some'](_0x5bccd2=>_0x5bccd2['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x407991;}['execute'](){const _0x3f2138=ts(Array['from'](this['_suggestions']['values']()));for(const _0x1ee343 of _0x3f2138){const _0x52a330=_0x1ee343['getRanges']();if(!this['editor']['model']['canEditAt'](_0x52a330))return;}rs(this['editor']['model'],this['_command'],_0x3f2138);}}class O extends _0xecc457{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x4a3028,_0x14692a,_0x310043){super(_0x4a3028),this['_command']=_0x14692a,this['_suggestions']=_0x310043,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x34a80e=this['editor']['model']['document']['selection'],_0x2a7f6a=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x41ee4a,_0x416cd8){const _0x22196d=Array['from'](_0x41ee4a['getRanges']()),_0x27ad39=new Set();for(const _0x198f5d of _0x416cd8)if(_0x198f5d['isInContent']){for(const _0x3f89b8 of _0x22196d)for(const _0x1edbbe of _0x198f5d['getRanges']())(_0x3f89b8['isIntersecting'](_0x1edbbe)||_0x41ee4a['isCollapsed']&&!_0x198f5d['isMultiRange']&&_0x198f5d['next']&&_0x1edbbe['end']['isTouching'](_0x3f89b8['start']))&&_0x27ad39['add'](_0x198f5d);}return _0x27ad39;}(_0x34a80e,_0x2a7f6a),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x30284c=ts(Array['from'](this['_selectedSuggestions']));for(const _0xa031c3 of _0x30284c){const _0x32f440=_0xa031c3['getRanges']();if(!this['editor']['model']['canEditAt'](_0x32f440))return;}rs(this['editor']['model'],this['_command'],_0x30284c);}}class x extends/* #__PURE__ -- @preserve */
24
+ _0x20d851(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x18d502,_0x292e2c){super(),this['id']=_0x292e2c['id'],this['type']=_0x292e2c['type'],this['subType']=_0x292e2c['subType']||null,this['author']=_0x292e2c['author'],this['creator']=_0x292e2c['creator']||_0x292e2c['author'],this['isExternal']=Boolean(_0x292e2c['attributes']&&_0x292e2c['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x292e2c['originalSuggestionId']||null,this['_model']=_0x18d502,this['_onAccept']=_0x292e2c['onAccept'],this['_onDiscard']=_0x292e2c['onDiscard'],this['_onAttributesChange']=_0x292e2c['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x292e2c['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 _0xf82f04=this;for(;_0xf82f04['previous'];)_0xf82f04=_0xf82f04['previous'];return _0xf82f04;}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'](_0x5366dd){this['_markerNames']['add'](_0x5366dd);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x324633=>this['_model']['markers']['get'](_0x324633))['filter'](_0x2db26c=>_0x2db26c);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x4a3e47=>{for(const _0x4769e6 of this['getMarkers']())_0x4a3e47['removeMarker'](_0x4769e6);}),this['_markerNames']['clear']();}['removeMarker'](_0x4279b5){this['_model']['change'](_0x134441=>{_0x134441['removeMarker'](_0x4279b5);}),this['_markerNames']['delete'](_0x4279b5);}['addRange'](_0x33191a){const _0x4449ce='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+x['getMultiRangeId']();this['addMarkerName'](_0x4449ce),this['_model']['change'](_0x5c4f82=>{_0x5c4f82['addMarker'](_0x4449ce,{'range':_0x33191a,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x16820b){for(const _0xb3923e of this['getRanges']())if(_0xb3923e['isIntersecting'](_0x16820b))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x5f1079=>_0x5f1079['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x22b701,_0x19c07d)=>[..._0x22b701,..._0x19c07d['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x355841=this['getRanges']();if(0x1!=_0x355841['length'])return null;const _0x57abe8=_0x355841[0x0],_0x1729c3=_0x57abe8['start']['nodeAfter'],_0x27dda9=_0x57abe8['end']['nodeBefore'];return _0x1729c3 instanceof _0x3360fd?_0x1729c3!=_0x27dda9?null:_0x1729c3: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 _0xb9057e=[];let _0x184a53=this['head'];for(;_0x184a53;)_0xb9057e['push'](_0x184a53),_0x184a53=_0x184a53['next'];return _0xb9057e;}['setAttribute'](_0x8f90ba,_0x68917c){const _0x21fe3d=_0x297bde(this['attributes']);_0x5da6a7(_0x21fe3d,_0x8f90ba,_0x68917c),_0x2880b5(_0x21fe3d,this['attributes'])||(this['attributes']=_0x21fe3d,this['_onAttributesChange'](_0x21fe3d));}['removeAttribute'](_0x313eba){const _0x2b864d=_0x297bde(this['attributes']);_0x205f3d(_0x2b864d,_0x313eba),_0x2880b5(_0x2b864d,this['attributes'])||(this['attributes']=_0x2b864d,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 _0x38d584()['substr'](0x1,0x5);}}function o(_0x2ca379,_0x1ab66b,_0x17ba37){const _0x44e2e5=_0x2ca379['t'],t=_0x2ca379['t'];switch(_0x1ab66b){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',_0x17ba37);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x17ba37);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x17ba37);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x17ba37);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x17ba37);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',_0x17ba37);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x17ba37);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',_0x17ba37);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x17ba37);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x17ba37);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x17ba37);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x17ba37);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x17ba37);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x17ba37);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x17ba37);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x17ba37);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x17ba37);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x17ba37);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x17ba37);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x17ba37);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x17ba37);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x17ba37);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x17ba37);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x17ba37);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x17ba37);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'},_0x17ba37);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x17ba37);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x17ba37);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x17ba37);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x17ba37);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x17ba37);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x17ba37);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x17ba37);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'},_0x17ba37);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x17ba37);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x17ba37);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x17ba37);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x17ba37);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'},_0x17ba37);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x17ba37);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'},_0x17ba37);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_TYPE':return t({'string':'table\x20cell\x20type','id':'FORMAT_TABLE_CELL_TYPE'});case'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x17ba37);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x17ba37);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'},_0x17ba37);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x17ba37);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'},_0x17ba37);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x17ba37);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x17ba37);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x17ba37);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x17ba37);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x17ba37);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'},_0x17ba37);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x17ba37);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 _0x44e2e5({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x17ba37);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x44e2e5({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x17ba37);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x17ba37);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'},_0x17ba37);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'},_0x17ba37);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'},_0x17ba37);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x1ab66b;}}class M{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x23d8ae,_0x2c798b){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x23d8ae,this['_locale']=_0x2c798b;}['getDescriptions'](_0x53678e){const _0x2be6ca=[],_0x53fa0e=new Set(),_0x4e5e34=new Set();for(let _0x412d61=0x0;_0x412d61<_0x53678e['length'];_0x412d61++){const _0x279b6d=_0x53678e[_0x412d61];if(!_0x279b6d['isInContent'])continue;const _0x47344c=this['_handleCustomCallbackDescription'](_0x279b6d);if(_0x47344c){if(null!=_0x279b6d['subType']){if(_0x53fa0e['has'](_0x279b6d['subType']))continue;_0x53fa0e['add'](_0x279b6d['subType']);}_0x2be6ca['push'](_0x47344c);}else{if('attribute'==_0x279b6d['type']){const _0x23f557=_0x279b6d['data']['key'];if(_0x4e5e34['has'](_0x23f557))continue;_0x4e5e34['add'](_0x279b6d['data']['key']),_0x23f557==m?this['_handleRenameSuggestionDescription'](_0x2be6ca,_0x279b6d):this['_handleAttributeSuggestionDescription'](_0x2be6ca,_0x279b6d);continue;}'insertion'!=_0x279b6d['type']&&'deletion'!=_0x279b6d['type']||this['_handleInsertRemoveSuggestionDescription'](_0x2be6ca,_0x279b6d,_0x53678e[_0x412d61+0x1]);}}return this['_resolveDescriptionItems'](_0x2be6ca);}['registerDescriptionCallback'](_0x41354f){this['_customCallbacks']['push'](_0x41354f);}['registerElementLabel'](_0x160c10,_0x1e0d92,_0x5c6900=_0xb2a889['normal']){'function'==typeof _0x160c10?_0x4641fa(this['_itemLabelsCallbacks'],{'matchingCallback':_0x160c10,'label':_0x1e0d92,'priority':_0x5c6900}):this['_itemLabels']['set'](_0x160c10,_0x1e0d92);}['registerAttributeLabel'](_0x2c6d7f,_0x3684b2){this['_attributeLabels']['set'](_0x2c6d7f,_0x3684b2);}['getItemLabel'](_0x40a6cd,_0x1ab28f=0x1){let _0x52f6da;for(const _0x1eac02 of this['_itemLabelsCallbacks'])if(_0x1eac02['matchingCallback'](_0x40a6cd)){_0x52f6da=_0x1eac02['label'];break;}return _0x52f6da||(_0x52f6da=this['_itemLabels']['get'](_0x40a6cd['name'])),_0x52f6da?_0x52f6da(_0x1ab28f):0x1!==_0x1ab28f?_0x1ab28f+'\x20'+_0x40a6cd['name']+'s':''+_0x40a6cd['name'];}['_addDescriptionItems'](_0x4082cc,_0x4c3929){const _0x2c67bc=_0x4c3929['getFirstRange']()['getWalker'](),_0x162669='insertion'==_0x4c3929['type']?'add':'remove';for(const _0x170979 of _0x2c67bc){const _0x42036b=_0x170979['item'],_0xe58e33=_0x4082cc[_0x4082cc['length']-0x1];if(_0x42036b['is']('$textProxy'))_0xe58e33&&_0xe58e33['type']['indexOf']('Container')>-0x1&&_0x4082cc['pop'](),_0xe58e33&&'text'==_0xe58e33['type']?_0xe58e33[_0x162669]+=_0x42036b['data']:_0x4082cc['push']({'type':'text','add':'add'==_0x162669?_0x42036b['data']:'','remove':'remove'==_0x162669?_0x42036b['data']:''});else{if(this['_schema']['isObject'](_0x42036b)){const _0x3122a3=_0x42036b;if(_0xe58e33&&_0xe58e33['type']['indexOf']('Container')>-0x1&&_0x4082cc['pop'](),'elementEnd'==_0x170979['type'])continue;_0xe58e33&&_0xe58e33['type']==_0x162669+'Object'&&_0xe58e33['element']['name']==_0x3122a3['name']?_0xe58e33['quantity']++:_0x4082cc['push']({'type':_0x162669+'Object','element':_0x3122a3,'quantity':0x1}),_0x2c67bc['skip'](_0x33cf3b=>!('elementEnd'==_0x33cf3b['type']&&_0x33cf3b['item']==_0x42036b));}else{if(this['_schema']['checkChild'](_0x42036b,'$text')||_0x42036b['is']('element','softBreak')){const _0x88fbc9=_0x42036b;if('add'==_0x162669&&'elementStart'==_0x170979['type']||'remove'==_0x162669&&'elementEnd'==_0x170979['type'])continue;if(_0xe58e33&&-0x1==_0xe58e33['type']['indexOf']('Container')){'text'==_0xe58e33['type']&&(_0xe58e33[_0x162669]+='\x0a');continue;}let _0x5c0482;if(_0x5c0482='add'==_0x162669?_0x88fbc9['nextSibling']&&!this['_schema']['isObject'](_0x88fbc9['nextSibling'])?_0x88fbc9['nextSibling']:null:_0x88fbc9['previousSibling']&&!this['_schema']['isObject'](_0x88fbc9['previousSibling'])?_0x88fbc9['previousSibling']:null,_0x88fbc9['isEmpty']||_0x5c0482&&_0x5c0482['isEmpty']){const _0x2e9ffe=_0x5c0482&&_0x5c0482['isEmpty']?_0x5c0482:_0x88fbc9;_0xe58e33&&_0xe58e33['type']==_0x162669+'EmptyContainer'&&_0xe58e33['element']['name']==_0x2e9ffe['name']?_0xe58e33['quantity']++:_0x4082cc['push']({'type':_0x162669+'EmptyContainer','element':_0x2e9ffe,'quantity':0x1});}else _0x4082cc['push']({'type':_0x162669+'Container','element':_0x88fbc9});}}}}}['_resolveDescriptionItems'](_0x16b43b){const _0x33255e=this['_locale'],_0xc002e7=[],_0x35f9dc=[],_0x2303f0=[];for(const _0x13b458 of _0x16b43b)switch(_0x13b458['type']){case'text':if(_0x13b458['add']=_0x13b458['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x13b458['remove']=_0x13b458['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x13b458['add']&&''!=_0x13b458['remove']){_0xc002e7['push']({'type':'replace','content':o(_0x33255e,'REPLACE_TEXT',['\x22'+_0x13b458['remove']+'\x22','\x22'+_0x13b458['add']+'\x22'])});continue;}if(null!=_0x13b458['add']['match'](/^ +$/)){_0xc002e7['push']({'type':'insertion','content':o(_0x33255e,'*Insert:*\x20%0',o(_0x33255e,'ELEMENT_SPACE',_0x13b458['add']['length']))});continue;}if(null!=_0x13b458['remove']['match'](/^ +$/)){_0xc002e7['push']({'type':'deletion','content':o(_0x33255e,'*Remove:*\x20%0',o(_0x33255e,'ELEMENT_SPACE',_0x13b458['remove']['length']))});continue;}if(''!=_0x13b458['add']){_0xc002e7['push']({'type':'insertion','content':o(_0x33255e,'*Insert:*\x20%0','\x22'+_0x13b458['add']+'\x22')});continue;}_0xc002e7['push']({'type':'deletion','content':o(_0x33255e,'*Remove:*\x20%0','\x22'+_0x13b458['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0xc002e7['push']({'type':'insertion','content':o(_0x33255e,'*Insert:*\x20%0',this['getItemLabel'](_0x13b458['element'],_0x13b458['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0xc002e7['push']({'type':'deletion','content':o(_0x33255e,'*Remove:*\x20%0',this['getItemLabel'](_0x13b458['element'],_0x13b458['quantity']))});continue;case'addContainer':_0xc002e7['push']({'type':'insertion','content':o(_0x33255e,'*Split:*\x20%0',this['getItemLabel'](_0x13b458['element'],_0x13b458['quantity']))});continue;case'removeContainer':_0xc002e7['push']({'type':'deletion','content':o(_0x33255e,'*Merge:*\x20%0',this['getItemLabel'](_0x13b458['element'],_0x13b458['quantity']))});continue;case'addFormat':_0x35f9dc['push'](_0x13b458['key']);continue;case'removeFormat':_0x2303f0['push'](_0x13b458['key']);continue;default:_0xc002e7['push'](_0x13b458);}if(_0x35f9dc['length']){const _0x284d55=_0x35f9dc['map'](_0x27f0fc=>this['_attributeLabels']['has'](_0x27f0fc)?this['_attributeLabels']['get'](_0x27f0fc):_0x27f0fc)['join'](',\x20');_0xc002e7['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x284d55)});}if(_0x2303f0['length']){const _0x536a4b=_0x2303f0['map'](_0x5068fd=>this['_attributeLabels']['has'](_0x5068fd)?this['_attributeLabels']['get'](_0x5068fd):_0x5068fd)['join'](',\x20');_0xc002e7['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x536a4b)});}return _0xc002e7;}['_handleCustomCallbackDescription'](_0xe29a0e){for(const _0x49ade5 of this['_customCallbacks']){const _0x33b56b=_0x49ade5(_0xe29a0e);if(_0x33b56b&&'type'in _0x33b56b)return _0x33b56b;}}['_handleAttributeSuggestionDescription'](_0x1b1cdb,_0xaec1de){const _0x31fc00=_0xaec1de['data'],_0x30834b=void 0x0===_0x31fc00['newValue']?'removeFormat':'addFormat';_0x1b1cdb['push']({'type':_0x30834b,'key':_0x31fc00['key']});}['_handleRenameSuggestionDescription'](_0x442c91,_0x3e9636){_0x442c91['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x3e9636['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x3cbb12,_0x589208,_0xd05f79){if(this['_addDescriptionItems'](_0x3cbb12,_0x589208),_0xd05f79&&_0xd05f79['getFirstRange']()&&!_0x589208['getFirstRange']()['end']['isEqual'](_0xd05f79['getFirstRange']()['start'])){const _0x154b96=_0x3cbb12[_0x3cbb12['length']-0x1],_0x133617='insertion'==_0x589208['type']?'add':'remove';_0x154b96&&'text'==_0x154b96['type']&&(_0x154b96[_0x133617]+='\x0a');}}}class R extends _0x157fa6{['afterInit'](){const _0x557068=this['editor'],_0xf30ff0=_0x557068['plugins']['get']('TrackChangesEditing');_0x557068['commands']['get']('showAIAssistant')&&_0xf30ff0['enableCommand']('showAIAssistant');}}class T extends _0x157fa6{['afterInit'](){const _0xab4941=this['editor'],_0x135c78=_0xab4941['plugins']['get']('TrackChangesEditing');_0xab4941['commands']['get']('toggleAi')&&_0x135c78['enableCommand']('toggleAi');}}class E extends _0x157fa6{['afterInit'](){const _0x46668d=this['editor'],_0x5c8d0e=_0x46668d['plugins']['get']('TrackChangesEditing');_0x46668d['commands']['get']('aiQuickAction')&&_0x5c8d0e['enableCommand']('aiQuickAction');}}class U extends _0x157fa6{['afterInit'](){const _0x430cd4=this['editor'],_0x430f07=_0x430cd4['locale'];if(!_0x430cd4['plugins']['has']('AlignmentEditing'))return;const _0x3cc494=_0x430cd4['plugins']['get']('TrackChangesEditing');_0x3cc494['enableDefaultAttributesIntegration']('alignment'),_0x3cc494['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x430f07,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xd72f78=this['editor'],_0x3f6564=_0xd72f78['locale'];_0xd72f78['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x29a3de=>{if('formatBlock'!=_0x29a3de['type'])return;const {data:_0x301e62}=_0x29a3de;if(_0x301e62&&'alignment'==_0x301e62['commandName']){const _0x538a5f=_0x301e62['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x3f6564,'*Format:*\x20%0',function(_0x315d1a){switch(_0x315d1a){case'left':return o(_0x3f6564,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x3f6564,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x3f6564,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x3f6564,'FORMAT_JUSTIFY_TEXT');}}(_0x538a5f))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class V extends _0x157fa6{['afterInit'](){const _0x221462=this['editor'],_0x284a62=_0x221462['plugins']['get']('TrackChangesEditing'),_0x4fe287=_0x221462['locale'];for(const _0x341359 of ti){if(!_0x221462['plugins']['has'](_0x341359))continue;const _0x3806e2=_0x341359['slice'](0x0,-0x7)['toLowerCase'](),_0x5f5834='FORMAT_'+_0x3806e2['toUpperCase']();_0x284a62['enableDefaultAttributesIntegration'](_0x3806e2),_0x284a62['descriptionFactory']['registerAttributeLabel'](_0x3806e2,o(_0x4fe287,_0x5f5834));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2fa23f=this['editor'],_0x57a693=_0x2fa23f['locale'],_0x30c693=_0x2fa23f['plugins']['get']('TrackChangesEditing');function _0x544254(_0x3530e0,_0xee6f36){_0x30c693['descriptionFactory']['registerDescriptionCallback'](_0x4fe5f5=>{if('formatInline'!=_0x4fe5f5['type'])return;const {data:_0x208586}=_0x4fe5f5;return _0x208586&&_0x208586['commandName']===_0x3530e0?_0x208586['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x57a693,'*Format:*\x20%0',_0xee6f36)}:{'type':'format','content':o(_0x57a693,'*Remove\x20format:*\x20%0',_0xee6f36)}:void 0x0;});}_0x544254('bold',o(_0x57a693,'FORMAT_BOLD')),_0x544254('italic',o(_0x57a693,'FORMAT_ITALIC')),_0x544254('underline',o(_0x57a693,'FORMAT_UNDERLINE')),_0x544254('code',o(_0x57a693,'FORMAT_CODE')),_0x544254('strikethrough',o(_0x57a693,'FORMAT_STRIKETHROUGH')),_0x544254('subscript',o(_0x57a693,'FORMAT_SUBSCRIPT')),_0x544254('superscript',o(_0x57a693,'FORMAT_SUPERSCRIPT'));}}class F extends _0x157fa6{['afterInit'](){const _0x3c8ad6=this['editor'],_0x5b47e3=_0x3c8ad6['locale'];if(!_0x3c8ad6['plugins']['has']('BlockQuoteEditing'))return;const _0x4dade3=_0x3c8ad6['plugins']['get']('TrackChangesEditing'),_0x484fd5=this['editor']['commands']['get']('blockQuote');_0x4dade3['enableCommand']('blockQuote',(_0x53058a,_0x954eb0={})=>{const _0x3b04b0=this['editor']['model']['document']['selection'],_0x43faff=_0x954eb0&&void 0x0!==_0x954eb0['forceValue']?_0x954eb0['forceValue']:!_0x484fd5['value'];let _0x5991b2=[];if(_0x43faff){const _0x511313=Array['from'](_0x3b04b0['getSelectedBlocks']())['filter'](_0x117fb2=>oo(_0x117fb2)||function(_0x45b892,_0x321613){const _0x126ffe=_0x321613['checkChild'](_0x45b892['parent'],'blockQuote'),_0x3da083=_0x321613['checkChild'](['$root','blockQuote'],_0x45b892);return _0x126ffe&&_0x3da083;}(_0x117fb2,this['editor']['model']['schema']));_0x5991b2=to(_0x511313,_0x3c8ad6['model']);}else{const _0x465f5b=Array['from'](_0x3b04b0['getSelectedBlocks']())['filter'](_0x40610d=>oo(_0x40610d));_0x5991b2=to(_0x465f5b,_0x3c8ad6['model']);}_0x3c8ad6['model']['change'](()=>{for(const _0x10a9a1 of _0x5991b2)_0x4dade3['markBlockFormat'](_0x10a9a1,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x43faff}]});});}),_0x4dade3['descriptionFactory']['registerDescriptionCallback'](_0x19748d=>{const {data:_0x24cfb1}=_0x19748d;if(_0x24cfb1&&'blockQuote'==_0x24cfb1['commandName']){const _0x5cfcb6=o(_0x5b47e3,'ELEMENT_BLOCK_QUOTE');return _0x24cfb1['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5b47e3,'*Set\x20format:*\x20%0',_0x5cfcb6)}:{'type':'format','content':o(_0x5b47e3,'*Remove\x20format:*\x20%0',_0x5cfcb6)};}});}}function oo(_0x157e08){return'blockQuote'==_0x157e08['parent']['name'];}class G extends _0x157fa6{['afterInit'](){const _0x5bcdd5=this['editor'],_0x18210e=_0x5bcdd5['locale'],_0x97a81f=_0x5bcdd5['plugins']['get']('TrackChangesEditing');_0x5bcdd5['plugins']['has']('BookmarkEditing')&&(_0x97a81f['enableCommand']('insertBookmark'),_0x97a81f['enableDefaultAttributesIntegration']('updateBookmark'),_0x97a81f['descriptionFactory']['registerDescriptionCallback'](_0x37e051=>{if('insertion'!=_0x37e051['type']&&'deletion'!=_0x37e051['type']&&'attribute'!=_0x37e051['type'])return;const _0x21d9ce=_0x37e051['getContainedElement']();if(null==_0x21d9ce)return;if(!_0x21d9ce['is']('element','bookmark'))return;const _0x2d6a6c=_0x21d9ce['getAttribute']('bookmarkId');if('insertion'==_0x37e051['type'])return{'type':'insertion','content':o(_0x18210e,'*Insert:*\x20%0','\x22'+_0x2d6a6c+'\x22\x20'+o(_0x18210e,'ELEMENT_BOOKMARK'))};if('deletion'==_0x37e051['type'])return{'type':'deletion','content':o(_0x18210e,'*Remove:*\x20%0','\x22'+_0x2d6a6c+'\x22\x20'+o(_0x18210e,'ELEMENT_BOOKMARK'))};const {data:_0x2cc5e9}=_0x37e051;if(!_0x2cc5e9||'bookmarkId'!=_0x2cc5e9['key'])return;return{'type':'format','content':o(_0x18210e,'*Set\x20bookmark:*\x20%0','\x22'+_0x2cc5e9['newValue']+'\x22')};}));}}class L extends _0x157fa6{['afterInit'](){const _0x37fee7=this['editor'];_0x37fee7['plugins']['has']('CaseChange')&&(_0x37fee7['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x37fee7['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x37fee7['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class J extends _0x157fa6{['afterInit'](){const _0x1dea81=this['editor'];_0x1dea81['commands']['get']('ckbox')&&_0x1dea81['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x157fa6{['afterInit'](){const _0x4af471=this['editor'];if(!_0x4af471['plugins']['has']('CodeBlock'))return;const _0x3b8a6a=_0x4af471['plugins']['get']('TrackChangesEditing'),_0x2970d5=_0x4af471['locale'],_0x53f13e=_0x4af471['config']['get']('codeBlock')['languages'],_0x2a1377=_0x4af471['commands']['get']('codeBlock');_0x3b8a6a['enableCommand']('indentCodeBlock'),_0x3b8a6a['enableCommand']('outdentCodeBlock'),_0x3b8a6a['enableCommand']('codeBlock',(_0x4db6bc,_0x38a068={})=>{const _0x464fa6=_0x4af471['model'],_0x4e003c=_0x4af471['model']['document']['selection'],_0x108976=_0x38a068&&void 0x0!==_0x38a068['forceValue']?_0x38a068['forceValue']:!_0x2a1377['value'];let _0x4ff4d1;_0x38a068['language']||(_0x38a068['language']=_0x53f13e[0x0]['language']),_0x4ff4d1=_0x108976?Array['from'](_0x4e003c['getSelectedBlocks']())['filter'](_0x46c3ca=>co(_0x46c3ca)||function(_0x413d44,_0x3cc216){if(_0x413d44['is']('rootElement')||_0x3cc216['isLimit'](_0x413d44))return!0x1;return _0x3cc216['checkChild'](_0x413d44['parent'],'codeBlock');}(_0x46c3ca,_0x464fa6['schema'])):Array['from'](_0x4e003c['getSelectedBlocks']())['filter'](_0x30fbcf=>co(_0x30fbcf));const _0x19c913=to(_0x4ff4d1,_0x464fa6);_0x464fa6['change'](()=>{for(const _0x3e42e4 of _0x19c913)_0x3b8a6a['markBlockFormat'](_0x3e42e4,{'commandName':'codeBlock','commandParams':[{..._0x38a068,'forceValue':_0x108976}],'formatGroupId':'blockName'});});}),(_0x3b8a6a['descriptionFactory']['registerElementLabel']('codeBlock',_0x1ee3d4=>o(_0x2970d5,'ELEMENT_CODE_BLOCK',_0x1ee3d4)),_0x3b8a6a['descriptionFactory']['registerDescriptionCallback'](_0x15815c=>{if('formatBlock'!=_0x15815c['type'])return;const _0x18356e=_0x2970d5['t'],{data:_0x5f454f}=_0x15815c;if(!_0x5f454f||'codeBlock'!=_0x5f454f['commandName'])return;const _0x4f026d=_0x5f454f['commandParams'][0x0]['language'],_0x221fff=_0x18356e(_0x53f13e['find'](_0xc7c5d8=>_0xc7c5d8['language']===_0x4f026d)['label'])['toLowerCase']();return _0x5f454f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2970d5,'*Set\x20format:*\x20%0',o(_0x2970d5,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x221fff+')')}:{'type':'format','content':o(_0x2970d5,'*Remove\x20format:*\x20%0',o(_0x2970d5,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x408750){return'codeBlock'==_0x408750['name'];}class z extends _0x157fa6{['afterInit'](){const _0x548fd0=this['editor'];if(!_0x548fd0['plugins']['has']('CommentsEditing'))return;_0x548fd0['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class K extends _0x157fa6{static get['requires'](){return[_0x8de8e4];}['init'](){const _0x357b12=this['editor'],_0x697ada=_0x357b12['plugins']['get']('TrackChangesEditing');_0x697ada['enableCommand']('delete');const _0x49e631=_0x357b12['commands']['get']('deleteForward');_0x697ada['enableCommand']('deleteForward',(_0x256c7a,_0x1a68cc={})=>{const _0xa375d8=_0x357b12['model']['createSelection'](_0x357b12['model']['document']['selection']);_0xa375d8['isCollapsed']&&_0x357b12['model']['modifySelection'](_0xa375d8,{'direction':'forward','unit':_0x1a68cc['unit']});const _0x8019f0=_0xa375d8['getFirstRange'](),_0x393e66=_0x4ca1d8['fromRange'](_0x8019f0);let _0x4083d0;_0x256c7a(_0x1a68cc),_0x4083d0='$graveyard'==_0x393e66['root']['rootName']?_0x357b12['model']['createRange'](_0x8019f0['start']):_0x357b12['model']['createRange'](_0x393e66['start'],_0x393e66['end']),_0x393e66['detach'](),_0x357b12['model']['enqueueChange'](_0x49e631['buffer']['batch'],_0x3fd911=>{_0x49e631['buffer']['lock'](),_0x3fd911['setSelection'](_0x3fd911['createRange'](_0x4083d0['end'])),_0x49e631['buffer']['unlock']();});});}}class W extends _0x157fa6{['afterInit'](){const _0x166d25=this['editor'];if(!_0x166d25['plugins']['has']('ListEditing'))return;const _0x4c2006=_0x166d25['locale'],_0x4ba1d6=_0x166d25['plugins']['get']('TrackChangesEditing'),_0x1bbc3f=_0x166d25['plugins']['has']('TodoListEditing'),_0x40ff7c=!!_0x166d25['config']['get']('list.multiBlock');function _0x582f6b(_0x19f3a8){return{'type':'format','content':''+o(_0x4c2006,'*Set\x20format:*\x20%0',_0x19f3a8)};}function _0x315b55(_0x3933c4){return{'type':'format','content':''+o(_0x4c2006,'*Remove\x20format:*\x20%0',_0x3933c4)};}_0x4ba1d6['enableDefaultAttributesIntegration']('numberedList'),_0x4ba1d6['enableDefaultAttributesIntegration']('bulletedList'),_0x4ba1d6['enableDefaultAttributesIntegration']('customNumberedList'),_0x4ba1d6['enableDefaultAttributesIntegration']('customBulletedList'),_0x4ba1d6['enableDefaultAttributesIntegration']('indentList'),_0x4ba1d6['enableDefaultAttributesIntegration']('outdentList'),_0x4ba1d6['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x4ba1d6['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x40ff7c&&(_0x4ba1d6['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x4ba1d6['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x1bbc3f&&(_0x4ba1d6['enableDefaultAttributesIntegration']('todoList'),_0x4ba1d6['enableDefaultAttributesIntegration']('checkTodoList'),_0x4ba1d6['descriptionFactory']['registerDescriptionCallback'](_0x53f95f=>{const {data:_0x3a120e}=_0x53f95f;if(_0x3a120e&&'todoListChecked'==_0x3a120e['key'])return{'type':'format','content':_0x3a120e['newValue']?o(_0x4c2006,'*Check\x20item*'):o(_0x4c2006,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0xabe901=>{if(_0xabe901['batch']['isUndo'])return!0x1;let _0x52556e=!0x1;const _0x201b58=_0x4ba1d6['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3eab75=>'todoListChecked'===_0x4ba1d6['_getAttributeKey'](_0x3eab75));for(const _0x1787f9 of _0x201b58){'todo'!=_0x1787f9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x4ba1d6['_findSuggestions'](_0x1787f9['getFirstRange'](),'attribute')['find'](_0x25a690=>'listType'===_0x4ba1d6['_getAttributeKey'](_0x25a690['suggestion']))||(_0xabe901['removeMarker'](_0x1787f9['getFirstMarker']()),_0x52556e=!0x0));}return _0x52556e;})),_0x4ba1d6['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x4c2006,'FORMAT_INDENT'));const _0x3f837e={'type':'format','content':''};_0x4ba1d6['descriptionFactory']['registerDescriptionCallback'](_0x50d507=>{const {data:_0x40b749}=_0x50d507;if(!_0x40b749||'listType'!=_0x40b749['key'])return;let _0xc2c476=_0x50d507['head'];for(;_0xc2c476;){if(_0xc2c476['data']&&(('listStyle'==_0xc2c476['data']['key']||'listMarkerStyle'==_0xc2c476['data']['key'])&&(_0xc2c476['data']['newValue']&&'default'!=_0xc2c476['data']['newValue']||'default'!=_0xc2c476['data']['oldValue']&&!_0x40b749['newValue'])||!_0x40ff7c&&_0xc2c476['data']['key']==m))return _0x3f837e;_0xc2c476=_0xc2c476['next'];}if(null==_0x40b749['newValue'])switch(_0x40b749['oldValue']){case'bulleted':return _0x315b55(o(_0x4c2006,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x315b55(o(_0x4c2006,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x315b55(o(_0x4c2006,'ELEMENT_TODO_LIST'));}switch(_0x40b749['newValue']){case'bulleted':return _0x582f6b(o(_0x4c2006,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x582f6b(o(_0x4c2006,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x582f6b(o(_0x4c2006,'ELEMENT_TODO_LIST'));}}),_0x4ba1d6['descriptionFactory']['registerDescriptionCallback'](_0x1090c0=>{const {data:_0x4e2df7}=_0x1090c0;if(_0x4e2df7&&'listIndent'==_0x4e2df7['key'])return null==_0x4e2df7['newValue']||null==_0x4e2df7['oldValue']&&0x0==_0x4e2df7['newValue']?_0x3f837e:void 0x0;}),_0x4ba1d6['descriptionFactory']['registerDescriptionCallback'](_0x5bf183=>{if('attribute'!=_0x5bf183['type'])return;const {data:_0x4d39ae}=_0x5bf183;if(!_0x4d39ae||'listItemId'!=_0x4d39ae['key'])return;const _0x28755a=Te(_0x5bf183);return'newValue'==_0x28755a?{'type':'format','content':o(_0x4c2006,'*Merge:*\x20list\x20item')}:'oldValue'==_0x28755a?{'type':'format','content':o(_0x4c2006,'*Split:*\x20list\x20item')}:_0x3f837e;}),_0x166d25['model']['document']['registerPostFixer'](_0x566cb1=>this['listItemIdFixer'](_0x566cb1)),_0x166d25['model']['document']['registerPostFixer'](_0x24b334=>this['noTrackChangesFixer'](_0x24b334)),_0x166d25['model']['document']['on']('change:data',(_0x431401,_0x5d57fa)=>{if(_0x5d57fa['isUndo']||!_0x5d57fa['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x32f165){if(_0x32f165['batch']['isUndo']||!_0x32f165['batch']['isLocal'])return!0x1;let _0x16420d=!0x1;const _0x302aef=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x33ac89=>_0x33ac89['data']&&'listItemId'==_0x33ac89['data']['key'])['filter'](_0x5b046d=>_0x5b046d['data']['newValue']&&_0x5b046d['data']['oldValue']);for(const _0x4b5f85 of _0x302aef)Te(_0x4b5f85)||(_0x32f165['removeMarker'](_0x4b5f85['getFirstMarker']()),_0x16420d=!0x0);return _0x16420d;}['noTrackChangesFixer'](_0x53acd4){if(_0x53acd4['batch']['isUndo']||!_0x53acd4['batch']['isLocal'])return!0x1;const _0x24a01e=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x24a01e['trackChangesCommand']['value'])return!0x1;let _0x4186fd=!0x1;const _0xa3a848=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x1ab45b=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x4a8c19=>'attribute'==_0x4a8c19['type'])['filter'](_0x21a6df=>_0xa3a848['includes'](_0x21a6df['attributeKey']));if(0x0==_0x1ab45b['length'])return _0x4186fd;for(const _0x4e1508 of _0x1ab45b){const _0x13d807=_0x24a01e['_findSuggestions'](_0x4e1508['range'],'attribute')['filter'](_0x57136c=>!_0x57136c['meta']['isNextTo'])['map'](_0x187101=>_0x187101['suggestion'])['filter'](_0x592a60=>{const _0x1af36d=_0x24a01e['_getAttributeKey'](_0x592a60);return _0xa3a848['includes'](_0x1af36d);});if(_0x13d807['length']){for(const _0x251be7 of _0x13d807)_0x53acd4['removeMarker'](_0x251be7['getFirstMarker']());_0x4186fd=!0x0;}}return _0x4186fd;}['assureChains'](){const _0x2c1547=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1c5704=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x1a0fd5;const _0xe4cbf3=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x47ff30=>{if(_0x47ff30['data']['oldRange']||!_0x47ff30['data']['newRange'])return null;if(!_0x47ff30['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x252127}=_0x2c1547['_splitMarkerName'](_0x47ff30['name']);if(!_0x2c1547['hasSuggestion'](_0x252127))return null;const _0x5a2d69=_0x2c1547['getSuggestion'](_0x252127);return _0x1c5704['includes'](_0x5a2d69['data']['key']);})['map'](_0x3d1322=>{const {id:_0x381909}=_0x2c1547['_splitMarkerName'](_0x3d1322['name']),_0x22d7f0=_0x2c1547['getSuggestion'](_0x381909);return _0x1a0fd5=_0x22d7f0['attributes']['groupId'],_0x22d7f0['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0xe4cbf3['size'])return;const _0x36c149=_0x2c1547['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x13819b=>'attribute'==_0x13819b['type']&&_0x13819b['data']&&_0x1c5704['includes'](_0x13819b['data']['key'])&&_0x13819b['attributes']['groupId']!=_0x1a0fd5)['map'](_0x190fd0=>({'listItem':_0x190fd0['getFirstRange']()['start']['nodeAfter'],'groupId':_0x190fd0['attributes']['groupId']})),_0x4019d2=new Set();for(const {groupId:_0x558146,listItem:_0x52c5d7}of _0x36c149)_0xe4cbf3['has'](_0x52c5d7)&&_0x4019d2['add'](_0x558146);for(const _0x539b00 of _0x2c1547['getSuggestions']())_0x4019d2['has'](_0x539b00['attributes']['groupId'])&&_0x539b00['setAttribute']('groupId',_0x1a0fd5);}['_supportLegacySuggestions'](){const _0x4dfc31=this['editor'],_0x23bb12=_0x4dfc31['locale'],_0x5a6528=_0x4dfc31['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x5a6528['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x5490fb,_0x2ab914){const _0x53c595=[];for(let _0x199a13 of _0x5490fb)_0x199a13['start']['nodeAfter']===_0x199a13['end']['parent']&&(_0x199a13=_0x4dfc31['model']['createRange'](_0x4dfc31['model']['createPositionAt'](_0x199a13['start']['nodeAfter'],0x0))),_0x53c595['push'](_0x199a13);_0x4dfc31['model']['change'](_0x14d77b=>{const _0x1218e7=_0x4dfc31['model']['document']['selection'],_0x5d0781=Array['from'](_0x1218e7['getRanges']())['map'](_0x18d300=>_0x4ca1d8['fromRange'](_0x18d300));_0x14d77b['setSelection'](_0x53c595),_0x4dfc31['commands']['get'](_0x2ab914['commandName'])['refresh'](),_0x2ab914['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4dfc31['execute'](_0x2ab914['commandName'],..._0x2ab914['commandParams']),_0x14d77b['setSelection'](_0x5d0781);for(const _0x39cae2 of _0x5d0781)_0x39cae2['detach']();});}),_0x5a6528['descriptionFactory']['registerElementLabel'](function(_0x582f85){const _0x27c0ec=!_0x4dfc31['model']['schema']['isObject'](_0x582f85),_0x221f39=_0x582f85['previousSibling'],_0x501b7b=_0x582f85['nextSibling'],_0x291572=_0x582f85['getAttribute']('listItemId'),_0x3784e8=!_0x221f39||_0x221f39['getAttribute']('listItemId')!==_0x291572,_0x4c3cec=!_0x501b7b||_0x501b7b['getAttribute']('listItemId')!==_0x291572;return _0x27c0ec&&Boolean(_0x291572)&&_0x3784e8&&_0x4c3cec;},_0x54179b=>o(_0x23bb12,'ELEMENT_LIST_ITEM',_0x54179b));}['_registerLegacyDescription'](){const _0x4ea4a1=this['editor'],_0x412f7f=_0x4ea4a1['locale'];function _0x255631(_0x593202){const _0x5d09c8=_0x4ea4a1['commands']['get']('bulletedList')['value'],_0x3c15b2=_0x4ea4a1['commands']['get']('numberedList')['value'];return'numberedList'===_0x593202?_0x5d09c8:_0x3c15b2;}_0x4ea4a1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0xea6353){if('formatBlock'!=_0xea6353['type'])return;const {data:_0x212a00}=_0xea6353;if(!_0x212a00)return;let _0xdb1c6b,_0x4dc860,_0x51ac21,_0x2cd8ac;switch(_0x212a00['commandName']){case'bulletedList':_0x51ac21=_0x212a00['commandParams'][0x0]['forceValue'],_0x2cd8ac=_0x255631(_0x212a00['commandName']),_0xdb1c6b=_0x51ac21?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2cd8ac&&_0x4ea4a1['config']['get']('list.multiBlock')||(_0xdb1c6b='*Change\x20to:*\x20%0'),_0x4dc860={'type':'format','content':o(_0x412f7f,_0xdb1c6b,o(_0x412f7f,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x51ac21=_0x212a00['commandParams'][0x0]['forceValue'],_0x2cd8ac=_0x255631(_0x212a00['commandName']),_0xdb1c6b=_0x51ac21?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2cd8ac&&_0x4ea4a1['config']['get']('list.multiBlock')||(_0xdb1c6b='*Change\x20to:*\x20%0'),_0x4dc860={'type':'format','content':o(_0x412f7f,_0xdb1c6b,o(_0x412f7f,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0xdb1c6b='*Indent:*\x20%0',_0x4dc860={'type':'format','content':o(_0x412f7f,_0xdb1c6b,o(_0x412f7f,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0xdb1c6b=function(_0x39bc6e){const _0x5e41e5=_0x39bc6e['getFirstRange']();let _0x3ac399=_0x5e41e5['start']['nodeAfter'];for(;_0x3ac399&&_0x5e41e5['containsItem'](_0x3ac399);){if(_0x3ac399['getAttribute']('listIndent')>0x0)return!0x1;_0x3ac399=_0x3ac399['nextSibling'];}return!0x0;}(_0xea6353)?o(_0x412f7f,'*Format:*\x20remove\x20from\x20%0',o(_0x412f7f,function(_0x1f674d){return'ELEMENT_'+_0x1f674d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0xea6353))):o(_0x412f7f,'*Outdent:*\x20%0',o(_0x412f7f,'ELEMENT_LIST_ITEM')),_0x4dc860={'type':'format','content':_0xdb1c6b};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x212a00['multipleBlocks']&&(_0xdb1c6b='*Merge:*\x20%0',_0x4dc860={'type':'deletion','content':o(_0x412f7f,_0xdb1c6b,o(_0x412f7f,'ELEMENT_LIST_ITEM'))});}return _0x4dc860;});}}function Te(_0x44630f){let _0x56adbe=_0x44630f['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x56adbe;){const _0x53dc50=_0x56adbe['getAttribute']('listItemId');if(!_0x53dc50)return!0x1;if(_0x53dc50==_0x44630f['data']['newValue'])return'newValue';if(_0x53dc50==_0x44630f['data']['oldValue'])return'oldValue';_0x56adbe=_0x56adbe['previousSibling'];}return!0x1;}class H extends _0x157fa6{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x317e88=this['editor']['config']['get']('list.properties'),_0x3f769a=this['editor']['plugins']['get']('TrackChangesEditing');_0x317e88['styles']&&_0x3f769a['enableDefaultAttributesIntegration']('listStyle'),_0x317e88['reversed']&&_0x3f769a['enableDefaultAttributesIntegration']('listReversed'),_0x317e88['startIndex']&&_0x3f769a['enableDefaultAttributesIntegration']('listStart');const _0x219086={'type':'format','content':''};_0x3f769a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x2e8e26=this['editor']['locale'];_0x3f769a['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x2e8e26,'FORMAT_LIST_REVERSED')),_0x3f769a['descriptionFactory']['registerDescriptionCallback'](_0x29c831=>{const {data:_0x1f4ed0}=_0x29c831;if(_0x1f4ed0&&'listReversed'==_0x1f4ed0['key'])return null==_0x1f4ed0['newValue']||0x0==_0x1f4ed0['newValue']&&null==_0x1f4ed0['oldValue']?_0x219086:void 0x0;}),_0x3f769a['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x2e8e26,'FORMAT_LIST_START')),_0x3f769a['descriptionFactory']['registerDescriptionCallback'](_0x5a244f=>{const {data:_0x384d9b}=_0x5a244f;if(_0x384d9b&&'listStart'==_0x384d9b['key'])return null==_0x384d9b['newValue']||0x1==_0x384d9b['newValue']&&null==_0x384d9b['oldValue']?_0x219086:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x839c7=>{if(_0x839c7['batch']['isUndo'])return!0x1;let _0x5bb9b2=!0x1;const _0x374971=_0x3f769a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x825cc2=>{const _0x31a2d5=_0x3f769a['_getAttributeKey'](_0x825cc2);return'listStart'==_0x31a2d5||'listReversed'==_0x31a2d5;});for(const _0x567d46 of _0x374971){const _0x2b1e21=_0x567d46['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x2b1e21||'customNumbered'==_0x2b1e21)continue;_0x3f769a['_findSuggestions'](_0x567d46['getFirstRange'](),'attribute')['find'](_0x1dd48f=>'listType'==_0x3f769a['_getAttributeKey'](_0x1dd48f['suggestion']))||(_0x839c7['removeMarker'](_0x567d46['getFirstMarker']()),_0x5bb9b2=!0x0);}return _0x5bb9b2;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x2e1da1){const _0x45c932=this['editor']['locale'],{data:_0x1d0421}=_0x2e1da1,_0x34628a={'type':'format','content':''};if(!_0x1d0421||'listStyle'!=_0x1d0421['key'])return;if(!_0x1d0421['oldValue'])return'default'==_0x1d0421['newValue']?_0x34628a:{'type':'format','content':''+o(_0x45c932,'*Set\x20format:*\x20%0',o(_0x45c932,this['_getTranslationKeyForListStyle'](_0x1d0421['newValue'])))};if(!_0x1d0421['newValue']){if('default'==_0x1d0421['oldValue'])return _0x34628a;let _0x39576b=_0x2e1da1['head'];for(;_0x39576b;){if(_0x39576b['data']&&'listType'==_0x39576b['data']['key']&&_0x39576b['data']['newValue'])return _0x34628a;_0x39576b=_0x39576b['next'];}return{'type':'format','content':''+o(_0x45c932,'*Remove\x20format:*\x20%0',o(_0x45c932,this['_getTranslationKeyForListStyle'](_0x1d0421['oldValue'])))};}if('default'!=_0x1d0421['newValue'])return{'type':'format','content':''+o(_0x45c932,'*Set\x20format:*\x20%0',o(_0x45c932,this['_getTranslationKeyForListStyle'](_0x1d0421['newValue'])))};let _0x56b367=_0x2e1da1['head'];for(;_0x56b367;){if(_0x56b367['data']&&'listType'==_0x56b367['data']['key']&&_0x56b367['data']['newValue']&&_0x56b367['data']['oldValue'])return _0x34628a;_0x56b367=_0x56b367['next'];}return{'type':'format','content':o(_0x45c932,'*Set\x20format:*\x20%0',o(_0x45c932,'ELEMENT_'+_0x2e1da1['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1c723e=this['editor'],_0x301296=_0x1c723e['locale'];_0x1c723e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x41ca1a=>{if('formatBlock'!=_0x41ca1a['type'])return;const {data:_0x5b74f7}=_0x41ca1a;if(!_0x5b74f7)return;let _0x264496,_0x241d2c;switch(_0x5b74f7['commandName']){case'listStyle':_0x264496='*Change\x20to:*\x20%0',_0x241d2c={'type':'format','content':o(_0x301296,_0x264496,o(_0x301296,this['_getTranslationKeyForListStyle'](_0x5b74f7['commandParams'][0x0]['type'])))};break;case'listReversed':_0x264496=_0x5b74f7['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x241d2c={'type':'format','content':o(_0x301296,_0x264496)};break;case'listStart':_0x264496='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x241d2c={'type':'format','content':o(_0x301296,_0x264496,_0x5b74f7['commandParams'][0x0]['startIndex'])};}return _0x241d2c;});}['_getTranslationKeyForListStyle'](_0x3e0d9b){return'ELEMENT_'+function(_0x3b21be){if(ye['includes'](_0x3b21be))return'bulleted';if(Se['includes'](_0x3b21be))return'numbered';return null;}(_0x3e0d9b)['toUpperCase']()+'_LIST_'+_0x3e0d9b['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x157fa6{['afterInit'](){const _0x4eba1c=this['editor'];_0x4eba1c['commands']['get']('emoji')&&_0x4eba1c['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class X extends _0x157fa6{static get['requires'](){return[_0x21a58d];}['init'](){const _0x930027=this['editor'],_0x1c8e3e=_0x930027['plugins']['get']('TrackChangesEditing'),_0x1ccaef=_0x930027['commands']['get']('enter');_0x1c8e3e['enableCommand']('enter',()=>{_0x930027['model']['change'](_0x48db8a=>{const _0x294179=_0x930027['model']['document']['selection'],_0x27c7b9=_0x294179['getFirstPosition'](),_0x13a526=_0x4ca1d8['fromRange'](_0x294179['getFirstRange']());if(_0x1ccaef['enterBlock'](_0x48db8a)){const _0x388278=_0x930027['model']['createPositionAt'](_0x27c7b9['parent']['nextSibling'],0x0),_0x12f67c=_0x48db8a['createRange'](_0x27c7b9,_0x388278);_0x1c8e3e['markInsertion'](_0x12f67c);}else _0x48db8a['setSelection'](_0x48db8a['createRange'](_0x13a526['end']));_0x13a526['detach'](),_0x1ccaef['fire']('afterExecute',{'writer':_0x48db8a});});});}}class Y extends _0x157fa6{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x13797b=this['editor']['plugins']['get']('TrackChangesEditing');_0x13797b['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x13797b['enableCommand']('findNext'),_0x13797b['enableCommand']('findPrevious'),_0x13797b['enableCommand']('replace'),_0x13797b['enableCommand']('replaceAll');}['handleFindCommand'](_0x47c807,_0x100abd,_0x28cc0b={}){const _0x1b6f8e=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x47c807(_0xb7ad20=>{let _0xc5c2b7=('string'==typeof _0x100abd?_0x1b6f8e['findByTextCallback'](_0x100abd,_0x28cc0b):_0x100abd)(_0xb7ad20);Array['isArray'](_0xc5c2b7)&&(_0xc5c2b7={'results':_0xc5c2b7,'searchText':'string'==typeof _0x100abd?_0x100abd:''});const _0x531952=_0xc5c2b7['results']['filter'](_0x47247f=>!0x1===this['_isInDeletionRange'](_0x47247f,_0xb7ad20['item']));return{..._0xc5c2b7,'results':_0x531952};},_0x28cc0b);}['_isInDeletionRange'](_0x541c31,_0x5c5f44){const _0x3f1ff1=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5c5f44,_0x541c31['start']),this['editor']['model']['createPositionAt'](_0x5c5f44,_0x541c31['end']));for(const _0x50c09f of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x3f1ff1['getIntersection'](_0x50c09f['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x157fa6{['afterInit'](){const _0x36d226=this['editor']['locale'],_0x41b1d5=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x41402d,commandName:_0x6917e0}of eo)this['editor']['plugins']['has'](_0x41402d)&&_0x41b1d5['enableDefaultAttributesIntegration'](_0x6917e0);_0x41b1d5['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x36d226,'FORMAT_FONT_SIZE')),_0x41b1d5['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x36d226,'FORMAT_FONT_FAMILY')),_0x41b1d5['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x36d226,'FORMAT_FONT_COLOR')),_0x41b1d5['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x36d226,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x143d54=this['editor'],_0x5dbd36=_0x143d54['locale'];_0x143d54['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x55db0f=>{const _0x1008e9=_0x5dbd36['t'];if('formatInline'!=_0x55db0f['type'])return;const {data:_0x59438f}=_0x55db0f;if(null!=_0x59438f){if('fontSize'==_0x59438f['commandName']){const _0x21bdfd=_0x59438f['commandParams'][0x0]['value'];if(_0x21bdfd){const _0x411d1c=_0x1008e9(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0xe3e525=>_0xe3e525['model']==_0x21bdfd)['title'])['toLowerCase']();return{'type':'format','content':o(_0x5dbd36,'*Set\x20font\x20size:*\x20%0',_0x411d1c)};}return{'type':'format','content':o(_0x5dbd36,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x59438f['commandName']){const _0x3f84a8=_0x59438f['commandParams'][0x0]['value'];return _0x3f84a8?{'type':'format','content':o(_0x5dbd36,'*Set\x20font\x20family:*\x20%0',_0x3f84a8)}:{'type':'format','content':o(_0x5dbd36,'*Reset\x20font\x20family*')};}if('fontColor'==_0x59438f['commandName']){const _0x2a5de7=_0x59438f['commandParams'][0x0]['value'];if(_0x2a5de7){const _0x4445ae=_0xe21789(this['editor']['config']['get']('fontColor.colors'))['find'](_0x1fc5a1=>_0x1fc5a1['model']==_0x2a5de7);let _0x514373=_0x2a5de7,_0x2130e5='';return _0x4445ae&&(_0x514373=_0x4445ae['label'],_0x2130e5=_0x1008e9(_0x514373)['toLowerCase']()),{'type':'format','content':o(_0x5dbd36,'*Set\x20font\x20color:*\x20%0',_0x2130e5)['trim'](),'color':{'value':_0x2a5de7,'title':_0x2130e5||_0x514373}};}return{'type':'format','content':o(_0x5dbd36,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x59438f['commandName']){const _0x1e8718=_0x59438f['commandParams'][0x0]['value'];if(_0x1e8718){const _0xbc04ab=_0xe21789(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x3c1e84=>_0x3c1e84['model']==_0x1e8718);let _0xb6fcca=_0x1e8718,_0x558f84='';return _0xbc04ab&&(_0xb6fcca=_0xbc04ab['label'],_0x558f84=_0x1008e9(_0xb6fcca)['toLowerCase']()),{'type':'format','content':o(_0x5dbd36,'*Set\x20font\x20background\x20color:*\x20%0',_0x558f84)['trim'](),'color':{'value':_0x1e8718,'title':_0x558f84||_0xb6fcca}};}return{'type':'format','content':o(_0x5dbd36,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x157fa6{['afterInit'](){const {plugins:_0x525958}=this['editor'];_0x525958['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x525958['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x41ab07,plugins:_0x247586,commands:_0x49d08b}=this['editor'],_0x30b22c=_0x247586['get']('TrackChangesEditing');_0x49d08b['get']('footnotesStyle')&&_0x30b22c['enableDefaultAttributesIntegration']('footnotesStyle'),_0x49d08b['get']('footnotesStart')&&_0x30b22c['enableDefaultAttributesIntegration']('footnotesStart'),_0x30b22c['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',o(_0x41ab07,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x30b22c['descriptionFactory']['registerAttributeLabel']('footnotesListStart',o(_0x41ab07,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x23fb27=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x19aa9c,commands:_0x44c7cd}=this['editor'];_0x44c7cd['get']('insertFootnote')&&_0x23fb27['enableCommand']('insertFootnote'),_0x23fb27['descriptionFactory']['registerElementLabel']('footnoteRef',_0x8b0414=>o(_0x19aa9c,'ELEMENT_FOOTNOTE_REF',_0x8b0414)),_0x23fb27['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x34ce36=>o(_0x19aa9c,'ELEMENT_FOOTNOTE_DEFINITION',_0x34ce36)),_0x23fb27['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x2955e4=>o(_0x19aa9c,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x2955e4));}}class nt extends _0x157fa6{['afterInit'](){const _0x2235e7=this['editor'],_0x588335=_0x2235e7['plugins']['get']('TrackChangesEditing'),_0x56eb65=_0x2235e7['commands']['get']('copyFormat'),_0x549e89=_0x2235e7['commands']['get']('pasteFormat');_0x56eb65&&_0x549e89&&(_0x588335['enableDefaultAttributesIntegration']('pasteFormat'),_0x588335['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x2cc322=this['editor'],_0x31b70c=_0x2cc322['locale'];_0x2cc322['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c11fa=>{if('formatBlock'!=_0x5c11fa['type']&&'formatInline'!=_0x5c11fa['type'])return;const {data:_0x371587}=_0x5c11fa;if(_0x371587&&'pasteFormat'===_0x371587['commandName']){const _0x2794dc=[],_0x4590f2=_0x371587['commandParams'][0x0];for(const [_0x54c59f,_0x503363]of Object['entries'](_0x4590f2))_0x2794dc['push'](ro(_0x2cc322,_0x54c59f,_0x503363));return _0x2794dc['length']?{'type':'format','content':o(_0x31b70c,'*Set\x20format\x20to:*\x20%0',_0x2794dc['join'](',\x20'))}:{'type':'format','content':o(_0x31b70c,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x417860,_0x6110e9,_0xb87616){const _0x163082=_0x417860['locale']['t'],_0x5730a2=_0x6110e9['split'](/(?=[A-Z])/)['join']('\x20'),_0x16a3d8=_0x163082(_0x5730a2['charAt'](0x0)['toUpperCase']()+_0x5730a2['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0xb87616)return _0x16a3d8;if('fontColor'===_0x6110e9||'fontBackgroundColor'===_0x6110e9){const _0xd1fad4=_0xe21789(_0x417860['config']['get']('fontColor.colors'))['find'](_0xd5374e=>_0xd5374e['model']==_0xb87616);return _0x16a3d8+'\x20('+(_0xd1fad4?_0x163082(_0xd1fad4['label'])['toLowerCase']():_0xb87616)+')';}if('fontSize'===_0x6110e9&&isNaN(parseFloat(_0xb87616))){const _0x4b1b3d=_0x417860['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x417860['config']['get']('fontSize.options'))['find'](_0x330175=>_0x330175['model']==_0xb87616);return _0x16a3d8+'\x20('+(_0x4b1b3d?_0x163082(_0x4b1b3d['title'])['toLowerCase']():_0xb87616)+')';}return _0x16a3d8+'\x20('+_0xb87616+')';}class it extends _0x157fa6{['_headingOptions'];['afterInit'](){const _0x5e6d15=this['editor'];if(!_0x5e6d15['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x5e6d15['config']['get']('heading.options');const _0x817bb2=_0x5e6d15['locale'],_0x1ac1df=_0x5e6d15['plugins']['get']('TrackChangesEditing');_0x1ac1df['enableDefaultAttributesIntegration']('heading');for(const _0x20a12e of this['_headingOptions'])'paragraph'!=_0x20a12e['model']&&_0x1ac1df['descriptionFactory']['registerElementLabel'](_0x20a12e['model'],_0x2705c9=>{const _0x69f0ce=this['_getHeadingLevel'](_0x20a12e['model']);return null!==_0x69f0ce?_0x1746cb(_0x2705c9,_0x69f0ce):_0x28bd5e(_0x2705c9,_0x20a12e['title']);});function _0x1746cb(_0xbf8584,_0x252245){return o(_0x817bb2,'ELEMENT_HEADING',[_0xbf8584,_0x252245]);}function _0x28bd5e(_0x226d79,_0x5d72e6){return o(_0x817bb2,'ELEMENT_HEADING_CUSTOM',[_0x226d79,_0x5d72e6]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4466b7=this['editor'],_0x22556c=_0x4466b7['locale'];function _0x323313(_0x1f3889,_0x2f7e1a){return o(_0x22556c,'ELEMENT_HEADING_CUSTOM',[_0x1f3889,_0x2f7e1a]);}_0x4466b7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4c4f43=>{if('formatBlock'!=_0x4c4f43['type'])return;const {data:_0x52f306}=_0x4c4f43;if(_0x52f306&&'heading'==_0x52f306['commandName']){const _0x50b232=_0x52f306['commandParams'][0x0]['value'],_0x46cdec=this['_getHeadingLevel'](_0x50b232);if(null!==_0x46cdec)return{'type':'format','content':o(_0x22556c,'*Change\x20to:*\x20%0',(_0x196910=0x1,_0x4db84b=_0x46cdec,o(_0x22556c,'ELEMENT_HEADING',[_0x196910,_0x4db84b])))};const _0x53ba37=this['_headingOptions']['find'](_0x5be91b=>_0x5be91b['model']===_0x50b232)['title'];return{'type':'format','content':o(_0x22556c,'*Change\x20to:*\x20%0',_0x323313(0x1,_0x53ba37))};}var _0x196910,_0x4db84b;});}['_getHeadingLevel'](_0x7c4d11){const _0x343ce6=_0x7c4d11['match'](/^heading(\d+)/);if(_0x343ce6)return _0x343ce6[0x1];const _0x39195c=this['_headingOptions']?.['find'](_0xd8a0dd=>_0xd8a0dd['model']==_0x7c4d11);if(_0x39195c&&_0x39195c['view']){const _0x3cbf97=_0x39195c['view'],_0x2129d2=(_0x3cbf97['name']??_0x3cbf97)['match'](/^h(\d+)/);if(_0x2129d2)return _0x2129d2[0x1];}return null;}}class et extends _0x157fa6{['afterInit'](){const _0x2f72d6=this['editor'];if(!_0x2f72d6['plugins']['has']('HighlightEditing'))return;const _0x19ea7f=_0x2f72d6['plugins']['get']('TrackChangesEditing'),_0x6534ca=_0x2f72d6['locale'];_0x19ea7f['enableDefaultAttributesIntegration']('highlight'),_0x19ea7f['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x6534ca,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x42dd03=this['editor'],_0x59ad3a=_0x42dd03['locale'];_0x42dd03['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5df7a4=>{if('formatInline'!=_0x5df7a4['type'])return;const {data:_0x4c765e}=_0x5df7a4;if(_0x4c765e&&'highlight'==_0x4c765e['commandName']){const _0x263d92=_0x59ad3a['t'],_0x340b62=_0x4c765e['commandParams'][0x0]['value'];if(_0x340b62){const _0x4fd99f=_0x42dd03['config']['get']('highlight.options')['find'](_0x580768=>_0x580768['model']==_0x340b62),_0x52282f=_0x263d92(_0x4fd99f['title'])['toLowerCase']();return{'type':'format','content':o(_0x59ad3a,'*Set\x20highlight:*\x20%0',_0x52282f),'color':{'value':_0x4fd99f['color'],'title':_0x4fd99f['title']}};}return{'type':'format','content':o(_0x59ad3a,'*Remove\x20highlight*',o(_0x59ad3a,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x157fa6{['afterInit'](){const _0x300255=this['editor'];if(!_0x300255['plugins']['has']('HorizontalLineEditing'))return;_0x300255['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x33ab9e=_0x300255['plugins']['get']('TrackChangesEditing'),_0x1c2fe2=_0x300255['locale'];_0x33ab9e['descriptionFactory']['registerElementLabel']('horizontalLine',_0x5a1b26=>o(_0x1c2fe2,'ELEMENT_HORIZONTAL_LINE',_0x5a1b26));}}class ot extends _0x157fa6{['afterInit'](){const _0x185589=this['editor'];if(!_0x185589['plugins']['has']('HtmlEmbed'))return;const _0x249633=_0x185589['plugins']['get']('TrackChangesEditing'),_0x4f1755=_0x185589['locale'];_0x249633['descriptionFactory']['registerElementLabel']('rawHtml',_0x4d02dc=>o(_0x4f1755,'ELEMENT_HTML_EMBED',_0x4d02dc)),_0x249633['enableDefaultAttributesIntegration']('htmlEmbed'),_0x249633['descriptionFactory']['registerDescriptionCallback'](_0x2a2041=>{if('attribute'!=_0x2a2041['type'])return;const {data:_0x5e22e6}=_0x2a2041;if(_0x5e22e6&&'value'==_0x5e22e6['key']&&_0x2a2041['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x2d78d3=o(_0x4f1755,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4f1755,'*Change\x20%0\x20content*',_0x2d78d3)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x8563fd=this['editor'],_0x36d060=_0x8563fd['locale'];_0x8563fd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4818ef=>{if('formatBlock'!=_0x4818ef['type'])return;const {data:_0x5df796}=_0x4818ef;if(_0x5df796&&'htmlEmbed'==_0x5df796['commandName']){const _0x5df8ba=o(_0x36d060,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x36d060,'*Change\x20%0\x20content*',_0x5df8ba)};}});}}class rt extends _0x157fa6{['afterInit'](){const _0x15f80a=this['editor'];if(!_0x15f80a['plugins']['has']('ImageEditing'))return;const _0x346e98=_0x15f80a['plugins']['get']('TrackChangesEditing'),_0x5ea711=_0x15f80a['plugins']['get']('ImageUtils'),_0x29cf77=_0x15f80a['locale'];_0x346e98['enableCommand']('insertImage'),_0x346e98['descriptionFactory']['registerElementLabel']('imageBlock',_0x178167=>o(_0x29cf77,'ELEMENT_IMAGE',_0x178167)),_0x346e98['descriptionFactory']['registerElementLabel']('imageInline',_0x3ca28f=>o(_0x29cf77,'ELEMENT_INLINE_IMAGE',_0x3ca28f)),_0x346e98['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x29cf77,'ELEMENT_CAPTION')),_0x15f80a['plugins']['has']('ImageUploadEditing')&&_0x346e98['enableCommand']('uploadImage'),_0x15f80a['plugins']['has']('ImageBlockEditing')&&_0x15f80a['plugins']['has']('ImageInlineEditing')&&(_0x346e98['enableCommand']('imageTypeInline',(_0x16d461,_0x554d1d)=>{const _0x54d775=_0x5ea711['getClosestSelectedImageElement'](_0x15f80a['model']['document']['selection']);_0x15f80a['model']['change'](()=>{_0x346e98['markBlockFormat'](_0x54d775,{'commandName':'imageTypeInline','commandParams':[_0x554d1d]},[],'convertBlockImageToInline');});}),_0x346e98['enableCommand']('imageTypeBlock',(_0x386ebd,_0x12cde6)=>{_0x15f80a['model']['change'](_0x5e69b2=>{let _0xf72cb8=_0x5ea711['getClosestSelectedImageElement'](_0x15f80a['model']['document']['selection']),_0x3292ec=_0x5e69b2['createRangeOn'](_0xf72cb8);const _0x10ef67=_0x3f9b6d['fromPosition'](_0x3292ec['start'],'toPrevious'),_0x67de0d=_0x3f9b6d['fromPosition'](_0x3292ec['end'],'toNext');_0x346e98['forceDefaultExecution'](()=>_0x386ebd(_0x12cde6)),_0xf72cb8=_0x5ea711['getClosestSelectedImageElement'](_0x15f80a['model']['document']['selection']),_0x3292ec=_0x5e69b2['createRangeOn'](_0xf72cb8);const _0x1a4b49=_0x5e69b2['createRange'](_0x10ef67,_0x67de0d);_0x10ef67['detach'](),_0x67de0d['detach'](),_0x346e98['markBlockFormat'](_0xf72cb8,{'commandName':'imageTypeInline','commandParams':[_0x12cde6]},[],'convertInlineImageToBlock'),_0x1a4b49['start']['isBefore'](_0x3292ec['start'])&&_0x346e98['markInsertion'](_0x5e69b2['createRange'](_0x1a4b49['start'],_0x3292ec['start']),'convertInlineImageToBlock'),_0x3292ec['end']['isBefore'](_0x1a4b49['end'])&&_0x346e98['markInsertion'](_0x5e69b2['createRange'](_0x3292ec['end'],_0x1a4b49['end']),'convertInlineImageToBlock');});}),_0x346e98['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x346e98['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x346e98['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x346e98['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x346e98['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x346e98['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x1bef50])=>{const _0x4c3c7a=_0x346e98['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0xafa26f=_0x1bef50['start'],_0x40866b=_0x1bef50['end'];const _0x35f698=_0x15f80a['model']['schema']['getNearestSelectionRange'](_0xafa26f,'backward'),_0x52a644=_0x15f80a['model']['schema']['getNearestSelectionRange'](_0x40866b,'forward');_0x35f698['isCollapsed']&&(_0xafa26f=_0x35f698['start']),_0x52a644['isCollapsed']&&(_0x40866b=_0x52a644['end']),_0x4c3c7a([_0x15f80a['model']['createRange'](_0xafa26f,_0x40866b)]);}),_0x346e98['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0xead390),_0x346e98['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0xead390)),_0x15f80a['plugins']['has']('ImageCaptionEditing')&&(_0x346e98['enableCommand']('toggleImageCaption',(_0x58c1ec,_0x56c95c)=>{const _0x264c76=_0x15f80a['plugins']['get']('ImageCaptionUtils');let _0x32ee38=_0x5ea711['getClosestSelectedImageElement'](_0x15f80a['model']['document']['selection']),_0x51a7c5=_0x264c76['getCaptionFromImageModelElement'](_0x32ee38);_0x15f80a['model']['change'](()=>{if(_0x51a7c5)return void _0x346e98['markDeletion'](_0x15f80a['model']['createRangeOn'](_0x51a7c5));const _0x2e4221=_0x5ea711['isBlockImage'](_0x32ee38);_0x58c1ec(_0x56c95c),_0x32ee38=_0x5ea711['getClosestSelectedImageElement'](_0x15f80a['model']['document']['selection']),_0x51a7c5=_0x264c76['getCaptionFromImageModelElement'](_0x32ee38),_0x346e98['markInsertion'](_0x15f80a['model']['createRangeOn'](_0x51a7c5),_0x2e4221?null:'imageCaption');});}),_0x346e98['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0xead390));const _0x338cd0=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x31dab4(_0x1d80fa,_0x5443a1){const _0x2e2b9e=_0x338cd0['findIndex'](({type:_0x18cc8b,subType:_0x5d42fa})=>_0x1d80fa['type']==_0x18cc8b&&_0x1d80fa['subType']==_0x5d42fa),_0x23334d=_0x338cd0['findIndex'](({type:_0x551ed8,subType:_0x19cdf6})=>_0x5443a1['type']==_0x551ed8&&_0x5443a1['subType']==_0x19cdf6);if(_0x2e2b9e<0x0||_0x23334d<0x0)return!0x1;const _0x54674f=_0x1d80fa['getFirstRange'](),_0x5db6ee=_0x5443a1['getFirstRange']();if((0x0==_0x2e2b9e||0x1==_0x2e2b9e)&&0x2==_0x23334d&&_0x54674f['isIntersecting'](_0x5db6ee))return!0x0;if(0x2==_0x2e2b9e&&0x3==_0x23334d){const _0x1001d8=_0x346e98['_findSuggestions'](_0x54674f,'insertion')['filter'](({suggestion:_0x1e9169,meta:_0x45379b})=>_0x45379b['isOwn']&&'convertInlineImageToBlock'==_0x1e9169['subType']);if(_0x1001d8['length']>0x1&&_0x5db6ee['end']['isEqual'](_0x54674f['start']))return!0x0;if(0x1==_0x1001d8['length']&&(_0x54674f['start']['isEqual'](_0x5db6ee['end'])||_0x54674f['end']['isEqual'](_0x5db6ee['start'])))return!0x0;}if(0x3==_0x2e2b9e&&0x3==_0x23334d&&_0x54674f['start']['isBefore'](_0x5db6ee['start'])){const _0x317eee=_0x54674f['end']['nodeAfter'],_0x1374fe=_0x5db6ee['start']['nodeBefore'];return _0x5ea711['isBlockImage'](_0x317eee)&&_0x317eee===_0x1374fe;}return!0x1;}function _0xead390(_0x339eae,_0x5076ea){return _0x31dab4(_0x339eae,_0x5076ea)?[_0x339eae,_0x5076ea]:_0x31dab4(_0x5076ea,_0x339eae)?[_0x5076ea,_0x339eae]:null;}_0x15f80a['plugins']['has']('ImageResize')&&(_0x346e98['enableDefaultAttributesIntegration']('resizeImage'),_0x346e98['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x29cf77,'FORMAT_IMAGE_SIZE'))),_0x15f80a['plugins']['has']('ImageTextAlternativeEditing')&&_0x346e98['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x15f80a['plugins']['has']('PictureEditing')&&_0x346e98['descriptionFactory']['registerDescriptionCallback'](_0x993c1a=>{if('attribute'!=_0x993c1a['type'])return;const {data:_0xc5eef}=_0x993c1a;return _0xc5eef&&'sources'==_0xc5eef['key']?{'type':'format','content':''}:void 0x0;}),_0x15f80a['plugins']['has']('ImageSizeAttributes')&&_0x346e98['descriptionFactory']['registerDescriptionCallback'](_0x327a36=>{if('attribute'!=_0x327a36['type'])return;const {data:_0x129df1}=_0x327a36;return!_0x129df1||'width'!=_0x129df1['key']&&'height'!=_0x129df1['key']?void 0x0:{'type':'format','content':''};}),_0x346e98['descriptionFactory']['registerDescriptionCallback'](_0x2a5489=>{if(!!_0x338cd0['find'](({type:_0xfc405e,subType:_0x10bf80})=>_0x2a5489['type']==_0xfc405e&&_0x2a5489['subType']==_0x10bf80))return _0x2a5489['previous']?{}:void 0x0;}),_0x346e98['descriptionFactory']['registerDescriptionCallback'](_0x500a73=>{if('insertion'==_0x500a73['type']||'deletion'==_0x500a73['type']){const _0xdf5fc2=_0x500a73['getContainedElement']();if(_0xdf5fc2&&_0xdf5fc2['is']('element','caption'))return{'type':'insertion'==_0x500a73['type']?'addObject':'removeObject','element':_0xdf5fc2,'quantity':0x1};}}),_0x346e98['descriptionFactory']['registerDescriptionCallback'](_0x4b6479=>'formatBlock'==_0x4b6479['type']&&'convertInlineImageToBlock'==_0x4b6479['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x4b6479['type']&&'convertBlockImageToInline'==_0x4b6479['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x346e98['descriptionFactory']['registerDescriptionCallback'](_0x4aa8da=>{if('attribute'!=_0x4aa8da['type'])return;const {data:_0x1b83a6}=_0x4aa8da;if(!_0x1b83a6||'alt'!=_0x1b83a6['key'])return;const _0x15ffa8=_0x1b83a6['newValue'];return _0x15ffa8?{'type':'format','content':o(_0x29cf77,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x15ffa8+'\x22')}:{'type':'format','content':o(_0x29cf77,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x476462=this['editor'],_0x3c59a0=_0x476462['locale'];_0x476462['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4095b9=>{if('formatBlock'!=_0x4095b9['type']&&'formatInline'!=_0x4095b9['type'])return;const {data:_0x2c56b4}=_0x4095b9;if(_0x2c56b4){if('imageTextAlternative'==_0x2c56b4['commandName']){const _0x593966=_0x2c56b4['commandParams'][0x0]['newValue'];return _0x593966?{'type':'format','content':o(_0x3c59a0,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x593966+'\x22')}:{'type':'format','content':o(_0x3c59a0,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x2c56b4['commandName']){const _0x148ffb=_0x2c56b4['commandParams'][0x0]['width'];return _0x148ffb?{'type':'format','content':o(_0x3c59a0,'*Set\x20image\x20width:*\x20%0',_0x148ffb)}:{'type':'format','content':o(_0x3c59a0,'*Reset\x20image\x20width*')};}}});}}class at extends _0x157fa6{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x162186=this['editor']['locale'],_0x23263c=this['editor']['plugins']['get']('TrackChangesEditing');_0x23263c['enableDefaultAttributesIntegration']('replaceImageSource'),_0x23263c['descriptionFactory']['registerDescriptionCallback'](_0x6be827=>{if('attribute'!=_0x6be827['type'])return;const {data:_0x2bdd5b}=_0x6be827;return _0x2bdd5b&&'src'==_0x2bdd5b['key']?_0x2bdd5b['newValue']&&_0x2bdd5b['oldValue']?{'type':'format','content':o(_0x162186,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x42dd4e=this['editor']['plugins']['get']('TrackChangesEditing');_0x42dd4e['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x42dd4e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x42dd4e['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x42dd4e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2fb43a=this['editor'],_0x4bb6b6=_0x2fb43a['locale'];_0x2fb43a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf69f6f=>{if('formatBlock'!=_0xf69f6f['type']&&'formatInline'!=_0xf69f6f['type'])return;const {data:_0x3ba690}=_0xf69f6f;if(!_0x3ba690||'replaceImageSource'!=_0x3ba690['commandName'])return;return{'type':'format','content':o(_0x4bb6b6,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x157fa6{['afterInit'](){const _0x548a2e=this['editor'];if(!_0x548a2e['plugins']['has']('ImageStyleEditing'))return;const _0x1d10f1=_0x548a2e['plugins']['get']('TrackChangesEditing'),_0x295d4a=_0x548a2e['plugins']['get']('ImageUtils'),_0x35bcec={};_0x1d10f1['enableCommand']('imageStyle',(_0x3c89b8,_0x50e78d)=>{const _0x428a97=_0x548a2e['plugins']['get']('Users')['me'],_0x1d6ad8=_0x548a2e['commands']['get']('imageStyle');let _0x4a6d10=_0x295d4a['getClosestSelectedImageElement'](_0x548a2e['model']['document']['selection']),_0x598206=_0x548a2e['model']['createRangeOn'](_0x4a6d10),_0x31b8d7=_0x1d6ad8['value'];if(_0x31b8d7==_0x50e78d['value'])return;const _0x2bbbc5={'commandName':'imageStyle','commandParams':[_0x50e78d],'formatGroupId':_0x38d584()};_0x548a2e['model']['change'](()=>{if(_0x1d10f1['getSuggestions']()['filter'](_0x163d23=>_0x163d23['isInContent']&&_0x428a97==_0x163d23['author']&&('formatBlock'==_0x163d23['type']||'formatInline'==_0x163d23['type'])&&('imageStylePreApply'==_0x163d23['subType']||'imageStylePostApply'==_0x163d23['subType'])&&_0x163d23['getFirstRange']()['isEqual'](_0x598206))['forEach'](_0x83c457=>_0x1d10f1['discardSuggestion'](_0x83c457['head'])),_0x4a6d10=_0x295d4a['getClosestSelectedImageElement'](_0x548a2e['model']['document']['selection']),_0x598206=_0x548a2e['model']['createRangeOn'](_0x4a6d10),_0x1d6ad8['refresh'](),_0x548a2e['commands']['get']('imageTypeInline')['refresh'](),_0x548a2e['commands']['get']('imageTypeBlock')['refresh'](),_0x31b8d7=_0x1d6ad8['value'],_0x31b8d7!=_0x50e78d['value'])return _0x295d4a['isInlineImage'](_0x4a6d10)&&_0x1d6ad8['shouldConvertImageType'](_0x50e78d['value'],_0x4a6d10)?(_0x3c89b8({..._0x50e78d,'setImageSizes':!0x1}),_0x4a6d10=_0x295d4a['getClosestSelectedImageElement'](_0x548a2e['model']['document']['selection']),void _0x1d10f1['markBlockFormat'](_0x4a6d10,{..._0x2bbbc5,'commandReversedParams':[{'value':_0x31b8d7||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x295d4a['isBlockImage'](_0x4a6d10)?_0x1d10f1['markBlockFormat'](_0x4a6d10,_0x2bbbc5,[],'imageStylePostApply'):_0x1d10f1['markInlineFormat'](_0x598206,_0x2bbbc5,'imageStylePostApply'));});});for(const _0x397fe2 of _0x548a2e['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x35bcec[_0x397fe2['name']]=_0x397fe2['title']['toLowerCase']();_0x1d10f1['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x1d10f1['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x1d10f1['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x1d10f1['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x108fb2])=>{_0x295d4a['setImageNaturalSizeAttributes'](_0x108fb2['getContainedElement']());}),_0x1d10f1['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x41de29,_0xa3caa2)=>{_0x1d10f1['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x41de29,{'commandName':_0xa3caa2['commandName'],'commandParams':_0xa3caa2['commandReversedParams']});}),_0x1d10f1['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x5852e2,_0xdcf5d){if(_0x727869(_0x5852e2,_0xdcf5d))return[_0x5852e2,_0xdcf5d];if(_0x727869(_0xdcf5d,_0x5852e2))return[_0xdcf5d,_0x5852e2];return null;});const _0x58ce90=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x727869(_0x15125d,_0x480c73){const _0x3945f0=_0x58ce90['findIndex'](({type:_0x11ea94,subType:_0xc69e29})=>_0x15125d['type']==_0x11ea94&&_0x15125d['subType']==_0xc69e29),_0x8d24a5=_0x58ce90['findIndex'](({type:_0x414b6b,subType:_0x474455})=>_0x480c73['type']==_0x414b6b&&_0x480c73['subType']==_0x474455);if(_0x3945f0<0x0||_0x8d24a5<0x0)return!0x1;const _0xb46576=_0x15125d['getFirstRange'](),_0x449605=_0x480c73['getFirstRange']();if((0x0==_0x3945f0||0x1==_0x3945f0)&&0x2==_0x8d24a5&&_0xb46576['isIntersecting'](_0x449605))return!0x0;if(0x2==_0x3945f0&&0x3==_0x8d24a5){const _0x41110b=_0x1d10f1['_findSuggestions'](_0xb46576,'insertion')['filter'](({suggestion:_0x342c32,meta:_0x3318f3})=>_0x3318f3['isOwn']&&'convertInlineImageToBlock'==_0x342c32['subType']);if(_0x41110b['length']>0x1&&_0x449605['end']['isEqual'](_0xb46576['start']))return!0x0;if(0x1==_0x41110b['length']&&(_0xb46576['start']['isEqual'](_0x449605['end'])||_0xb46576['end']['isEqual'](_0x449605['start'])))return!0x0;}if(0x3==_0x3945f0&&0x3==_0x8d24a5&&_0xb46576['start']['isBefore'](_0x449605['start'])){const _0x2a78fa=_0xb46576['end']['nodeAfter'],_0x15f74b=_0x449605['start']['nodeBefore'];return _0x295d4a['isBlockImage'](_0x2a78fa)&&_0x2a78fa===_0x15f74b;}return!0x1;}_0x548a2e['model']['document']['registerPostFixer'](()=>{let _0x3f682b=!0x1;const _0x2a71f7=Array['from'](_0x548a2e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x456414,data:_0x33870a}of _0x2a71f7){const {group:_0x31e4c6,type:_0x1c9aa1,subType:_0x434ee4,id:_0x858744}=_0x1d10f1['_splitMarkerName'](_0x456414);if('suggestion'==_0x31e4c6&&_0x1d10f1['hasSuggestion'](_0x858744)){if('formatBlock'==_0x1c9aa1&&('imageStylePreApply'==_0x434ee4||'imageStylePostApply'==_0x434ee4)){const _0x357c32=_0x1d10f1['getSuggestion'](_0x858744);if(_0x33870a['newRange']){const _0x4643bb=_0x357c32['getFirstRange']()['getContainedElement']();if(_0x295d4a['isBlockImage'](_0x4643bb))continue;_0x1d10f1['discardSuggestion'](_0x357c32),_0x3f682b=!0x0;}}if('insertion'==_0x1c9aa1&&'imageCaption'==_0x434ee4&&!_0x33870a['newRange']){const _0x3dd0f9=_0x1d10f1['getSuggestion'](_0x858744);_0x3dd0f9['next']&&_0x3dd0f9['next']['isInContent']&&(_0x1d10f1['discardSuggestion'](_0x3dd0f9['next']),_0x3f682b=!0x0);}}}return _0x3f682b;}),this['_registerLegacyDescription'](_0x35bcec);}['_registerLegacyDescription'](_0x2a4ebe){const _0x456219=this['editor'],_0x491a19=_0x456219['locale'];_0x456219['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x12d775=>{if('formatBlock'!=_0x12d775['type']&&'formatInline'!=_0x12d775['type'])return;const {data:_0x2bc283}=_0x12d775;if(!_0x2bc283||'imageStyle'!=_0x2bc283['commandName'])return;const _0x506cb7=_0x2bc283['commandParams'][0x0]['value'];return _0x501deb('side'===_0x506cb7?o(_0x491a19,'FORMAT_SIDE_IMAGE'):_0x2a4ebe[_0x506cb7]||_0x506cb7);function _0x501deb(_0x3fadd5){return{'type':'format','content':o(_0x491a19,'*Format:*\x20%0',_0x3fadd5)};}});}}class ut extends _0x157fa6{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x54cb73){super(_0x54cb73),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x468f6b=this['editor'],_0x4d38c8=_0x468f6b['commands']['get']('importWord'),_0x459fab=_0x468f6b['commands']['get']('trackChanges');_0x4d38c8&&(_0x4d38c8['on']('execute',(_0x22fcbd,[,_0x142795])=>{this['_trackChangesValueDuringImport']=_0x459fab['value'],_0x142795['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x4d38c8,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x4d38c8,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x459fab['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x468f6b['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x160c62,_0x3477b0){const {suggestions:_0x46b0c4}=_0x3477b0,_0x92beff=this['editor']['commands']['get']('trackChanges'),_0x30365b=_0x92beff['value'];this['_trackChangesValueDuringImport']!==_0x30365b&&(_0x92beff['execute'](),this['_trackChangesExecuted']=!0x0),_0x46b0c4&&_0x46b0c4['forEach'](({id:_0x30a5d1,type:_0x8de172,author:_0x27ffcb,created_at:_0x3e2f79})=>{const _0x278630={'id':_0x30a5d1,'type':_0x8de172,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x27ffcb,'createdAt':_0x3e2f79?new Date(_0x3e2f79):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x278630);});}}class ft extends _0x157fa6{['afterInit'](){const _0x27d6d2=this['editor'],_0x3d53ee=_0x27d6d2['plugins']['get']('TrackChangesEditing');if(_0x27d6d2['plugins']['has']('IndentEditing')&&(_0x3d53ee['enableCommand']('indent'),_0x3d53ee['enableCommand']('outdent')),_0x27d6d2['plugins']['has']('IndentBlock')){for(const _0x18fb63 of['indentBlock','outdentBlock'])_0x3d53ee['enableDefaultAttributesIntegration'](_0x18fb63);}const _0x192eab=_0x27d6d2['locale'];_0x3d53ee['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x192eab,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x353de8=this['editor'],_0x5d3ef0=_0x353de8['locale'],_0x4dd87a=_0x353de8['plugins']['get']('TrackChangesEditing');_0x4dd87a['descriptionFactory']['registerDescriptionCallback'](_0x550434=>{if('formatBlock'!=_0x550434['type'])return;const {data:_0x4cb79e}=_0x550434;if(!_0x4cb79e)return;if('indentBlock'!=_0x4cb79e['commandName']&&'outdentBlock'!=_0x4cb79e['commandName'])return;const _0x71e2db=_0x550434['getItems']()[0x0],_0x1022ae=_0x4dd87a['descriptionFactory']['getItemLabel'](_0x71e2db);return'indentBlock'==_0x4cb79e['commandName']?{'type':'format','content':o(_0x5d3ef0,'*Indent:*\x20%0',_0x1022ae)}:'outdentBlock'==_0x4cb79e['commandName']?{'type':'format','content':o(_0x5d3ef0,'*Outdent:*\x20%0',_0x1022ae)}:void 0x0;});}}class ht extends _0x157fa6{static get['requires'](){return[_0x45a0e2];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x157fa6{['afterInit'](){const _0x45744a=this['editor'];if(!_0x45744a['plugins']['has']('LinkEditing'))return;const _0x5c470e=_0x45744a['plugins']['get']('TrackChangesEditing'),_0x41e231=_0x45744a['commands']['get']('link');_0x5c470e['enableDefaultAttributesIntegration']('link'),_0x5c470e['enableDefaultAttributesIntegration']('unlink');for(const _0x4ac6e7 of _0x41e231['manualDecorators'])_0x5c470e['descriptionFactory']['registerAttributeLabel'](_0x4ac6e7['id'],'link\x20('+_0x4ac6e7['label']['toLowerCase']()+')');_0x5c470e['descriptionFactory']['registerDescriptionCallback'](_0x452e82=>{if('attribute'!=_0x452e82['type'])return;const {data:_0x31adbd}=_0x452e82;if(!_0x31adbd||'linkHref'!=_0x31adbd['key'])return;const _0xf6c2b4=_0x31adbd['newValue'],_0x4760e7=_0x45744a['locale'];return{'type':'format','content':null==_0xf6c2b4?o(_0x4760e7,'*Remove\x20link*'):o(_0x4760e7,'*Set\x20link:*\x20%0','\x22'+_0xf6c2b4+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4b3d84=this['editor'],_0x5b8552=_0x4b3d84['locale'];_0x4b3d84['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x236ec7=>{if('formatInline'!=_0x236ec7['type'])return;const {data:_0x446a12}=_0x236ec7;if(_0x446a12){if('link'==_0x446a12['commandName']){const _0x3e6721=_0x446a12['commandParams'][0x0];return{'type':'format','content':o(_0x5b8552,'*Set\x20link:*\x20%0','\x22'+_0x3e6721+'\x22')};}return'unlink'==_0x446a12['commandName']?{'type':'format','content':o(_0x5b8552,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x157fa6{['afterInit'](){const _0x4f309e=this['editor'],_0x3ac321=_0x4f309e['locale'];if(!_0x4f309e['plugins']['has']('LegacyListEditing'))return;const _0x1c22df=_0x4f309e['plugins']['get']('TrackChangesEditing'),_0x3f467d=_0x4f309e['plugins']['has']('LegacyTodoListEditing');function _0x388485(_0x5cf08c){return()=>{const _0xcbd034=_0x4f309e['model']['document']['selection'],_0x1ffaee=_0x4f309e['commands']['get'](_0x5cf08c);if(_0x1ffaee['value'])return void _0x4f309e['execute']('paragraph',{});const _0x5d2772=_0x5cf08c['slice'](0x0,-0x4),_0x36d9fa=function(_0x21fe25,_0x13fea1,_0x9fddc){let _0x2e41ea=Array['from'](_0x21fe25)['filter'](_0x562424=>function(_0x35742b,_0x115a87){return _0x115a87['checkChild'](_0x35742b['parent'],'listItem')&&!_0x115a87['isObject'](_0x35742b);}(_0x562424,_0x9fddc));_0x2e41ea=_0x2e41ea['filter'](_0x1df69c=>!_0x1df69c['is']('element','listItem')||_0x1df69c['getAttribute']('listType')!=_0x13fea1);const _0x548c28=new Set();for(const _0x3f909b of _0x2e41ea)_0x3f909b['is']('element','listItem')?_0x548c28['add'](Le(_0x3f909b)):_0x548c28['add'](_0x3f909b);return Array['from'](_0x548c28);}(_0xcbd034['getSelectedBlocks'](),_0x5d2772,_0x4f309e['model']['schema']);_0x4f309e['model']['change'](()=>{for(const _0x5a11ae of _0x36d9fa)_0x1c22df['markBlockFormat'](_0x5a11ae,{'commandName':_0x5cf08c,'commandParams':[{'forceValue':!_0x1ffaee['value']}],'formatGroupId':'blockName'},Ee(_0x5a11ae));});};}function _0x225d90(_0x4a9a9c){return()=>{const _0x2fec75=function(_0x39c158){let _0x5c9636=Array['from'](_0x39c158);const _0x5c4bec=_0x5c9636['findIndex'](_0x5dd76b=>'listItem'!=_0x5dd76b['name']);return _0x5c4bec>-0x1&&(_0x5c9636=_0x5c9636['slice'](0x0,_0x5c4bec)),_0x5c9636;}(_0x4f309e['model']['document']['selection']['getSelectedBlocks']()),_0x18828a=_0x4f309e['model']['createRange'](_0x4f309e['model']['createPositionAt'](_0x2fec75[0x0],'before'),_0x4f309e['model']['createPositionAt'](_0x2fec75[_0x2fec75['length']-0x1],'end'));_0x4f309e['model']['change'](()=>{_0x1c22df['markBlockFormat'](_0x18828a,{'commandName':_0x4a9a9c,'commandParams':[],'formatGroupId':'listIndent'},function(_0x55a313){const _0x22875f=new Set();for(const _0xd9a684 of _0x55a313){let _0x19954b=_0xd9a684['nextSibling'];for(;_0x19954b&&_0x19954b['getAttribute']('listIndent')>_0xd9a684['getAttribute']('listIndent');)_0x22875f['add'](_0x19954b),_0x19954b=_0x19954b['nextSibling'];}return Array['from'](_0x22875f);}(_0x2fec75));});};}_0x1c22df['enableCommand']('numberedList',_0x388485('numberedList')),_0x1c22df['enableCommand']('bulletedList',_0x388485('bulletedList')),_0x3f467d&&_0x1c22df['enableCommand']('todoList',_0x388485('todoList')),_0x1c22df['enableCommand']('indentList',_0x225d90('indentList')),_0x1c22df['enableCommand']('outdentList',_0x225d90('outdentList')),_0x3f467d&&_0x1c22df['enableCommand']('checkTodoList',()=>{const _0x512ec2=_0x4f309e['commands']['get']('checkTodoList'),_0x5ffdf0=Array['from'](_0x512ec2['_selectedElements']);_0x5ffdf0['filter'](_0x51067d=>_0x51067d['getAttribute']('todoListChecked')!=_0x512ec2['value']),_0x4f309e['model']['change'](()=>{for(const _0x1307b1 of _0x5ffdf0)_0x1c22df['markBlockFormat'](_0x1307b1,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x512ec2['value']}]});});}),_0x1c22df['descriptionFactory']['registerElementLabel']('listItem',_0x4613fc=>o(_0x3ac321,'ELEMENT_LIST_ITEM',_0x4613fc)),_0x1c22df['descriptionFactory']['registerDescriptionCallback'](_0x300c66=>{if('formatBlock'!=_0x300c66['type']&&'formatInline'!=_0x300c66['type'])return;const {data:_0x48aabc}=_0x300c66;if(_0x48aabc){if('numberedList'==_0x48aabc['commandName']||'bulletedList'==_0x48aabc['commandName']||'todoList'==_0x48aabc['commandName'])switch(_0x48aabc['commandName']['replace']('List','')){case'bulleted':return _0x53f89c(o(_0x3ac321,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x53f89c(o(_0x3ac321,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x53f89c(o(_0x3ac321,'ELEMENT_TODO_LIST'));}if('indentList'==_0x48aabc['commandName'])return{'type':'format','content':o(_0x3ac321,'*Indent:*\x20%0',o(_0x3ac321,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x48aabc['commandName'])return{'type':'format','content':o(_0x3ac321,'*Outdent:*\x20%0',o(_0x3ac321,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x48aabc['commandName'])return _0x48aabc['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3ac321,'*Check\x20item*')}:{'type':'format','content':o(_0x3ac321,'*Uncheck\x20item*')};}function _0x53f89c(_0x1673f2){return{'type':'format','content':o(_0x3ac321,'*Change\x20to:*\x20%0',_0x1673f2)};}});}}function Le(_0x298cea){const _0x281208=_0x298cea['getAttribute']('listIndent');if(0x0==_0x281208)return _0x298cea;let _0xc0ef3d=_0x298cea;for(;_0x298cea['previousSibling']&&_0x298cea['previousSibling']['is']('element','listItem');){const _0x1c891a=_0x298cea['previousSibling']['getAttribute']('listIndent');if(_0x1c891a==_0x281208)_0xc0ef3d=_0x298cea['previousSibling'];else{if(_0x1c891a<_0x281208)break;}_0x298cea=_0x298cea['previousSibling'];}return _0xc0ef3d;}function Ee(_0x21f14d){const _0x3181e6=[];if(_0x21f14d['is']('element','listItem')&&_0x21f14d['getAttribute']('listIndent')>0x0){let _0x258f94=_0x21f14d['nextSibling'];for(;_0x258f94&&'listItem'==_0x258f94['name']&&_0x258f94['getAttribute']('listIndent')==_0x21f14d['getAttribute']('listIndent');)_0x3181e6['push'](_0x258f94),_0x258f94=_0x258f94['nextSibling'];}return _0x3181e6;}class mt extends _0x157fa6{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x3dd475=this['editor']['config']['get']('list.properties'),_0x19204e=this['editor']['plugins']['get']('TrackChangesEditing');_0x3dd475['styles']&&_0x19204e['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x3dd475['reversed']&&_0x19204e['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x3dd475['startIndex']&&_0x19204e['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x19204e['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x10c86a,_0xc7d17a={}){const _0xca31ef=this['editor']['plugins']['get']('TrackChangesEditing'),_0x53508c=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0xca31ef['markMultiRangeBlockFormat'](_0x53508c,{'commandName':'listStyle','commandParams':[{'type':_0xc7d17a['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x3eea72,_0x11e0df={}){const _0x234521=this['editor']['plugins']['get']('TrackChangesEditing'),_0x40467d=this['_getSuggestionBlocks'](_0x3d675a=>_0x3d675a['is']('element','listItem')&&'numbered'===_0x3d675a['getAttribute']('listType'));if(_0x40467d['length']<0x1)return;const _0x4838e7=_0x40467d['map'](_0x5e084e=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5e084e,'before'),this['editor']['model']['createPositionAt'](_0x5e084e,0x0)));this['editor']['model']['change'](()=>{_0x234521['markMultiRangeBlockFormat'](_0x4838e7,{'commandName':'listReversed','commandParams':[{'reversed':_0x11e0df['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x17a53d,_0x3277ec={}){const _0x244377=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2d88be=this['_getSuggestionBlocks'](_0x5801f0=>_0x5801f0['is']('element','listItem')&&'numbered'===_0x5801f0['getAttribute']('listType'));if(_0x2d88be['length']<0x1)return;const _0x4e95e0=_0x2d88be['map'](_0xa0e75e=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xa0e75e,'before'),this['editor']['model']['createPositionAt'](_0xa0e75e,0x0)));this['editor']['model']['change'](()=>{_0x244377['markMultiRangeBlockFormat'](_0x4e95e0,{'commandName':'listStart','commandParams':[{'startIndex':_0x3277ec['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x2e637f){if('formatBlock'!=_0x2e637f['type']&&'formatInline'!=_0x2e637f['type'])return;const _0x34cdd9=this['editor']['locale'],{data:_0x1d3ac4}=_0x2e637f;if(!_0x1d3ac4)return;let _0x31e824,_0xdf32b0;switch(_0x1d3ac4['commandName']){case'listStyle':_0x31e824='*Change\x20to:*\x20%0',_0xdf32b0={'type':'format','content':o(_0x34cdd9,_0x31e824,o(_0x34cdd9,this['_getTranslationKeyForListStyle'](_0x1d3ac4['commandParams'][0x0]['type'])))};break;case'listReversed':_0x31e824=_0x1d3ac4['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xdf32b0={'type':'format','content':o(_0x34cdd9,_0x31e824)};break;case'listStart':_0x31e824='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xdf32b0={'type':'format','content':o(_0x34cdd9,_0x31e824,_0x1d3ac4['commandParams'][0x0]['startIndex'])};}return _0xdf32b0;}['_getSuggestionBlocksForListStyle'](){const _0x4c4ddd=this['editor']['plugins']['get']('LegacyListUtils');let _0x2ce13b=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x2ce13b[0x0]?.['is']('element','listItem')&&_0x2ce13b['unshift'](..._0x4c4ddd['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x2ce13b[_0x2ce13b['length']-0x1]?.['is']('element','listItem')&&_0x2ce13b['push'](..._0x4c4ddd['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x2ce13b=[...new Set(_0x2ce13b)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x2ce13b=_0x2ce13b['filter'](_0x3b1dad=>_0x3b1dad['is']('element','listItem'))),_0x2ce13b;}['_getSuggestionBlocks'](_0x9f625f){const _0x40d5da=this['editor']['plugins']['get']('LegacyListUtils');let _0x39c968=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x9f625f)['map'](_0x55e5e8=>{const _0x53852a=this['editor']['model']['createPositionAt'](_0x55e5e8,0x0);return[..._0x40d5da['getSiblingNodes'](_0x53852a,'backward'),..._0x40d5da['getSiblingNodes'](_0x53852a,'forward')];})['flat']();return _0x39c968=[...new Set(_0x39c968)],_0x39c968;}['_getTranslationKeyForListStyle'](_0x112d70){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x112d70)||'default')['toUpperCase']()+'_LIST_'+_0x112d70['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x157fa6{['afterInit'](){const _0x2a859d=this['editor'];if(!_0x2a859d['plugins']['has']('MediaEmbedEditing'))return;const _0x29c593=_0x2a859d['plugins']['get']('TrackChangesEditing'),_0x6f0de1=_0x2a859d['locale'];_0x29c593['enableCommand']('mediaEmbed'),_0x29c593['descriptionFactory']['registerElementLabel']('media',_0xb101a1=>o(_0x6f0de1,'ELEMENT_MEDIA',_0xb101a1));}}class pt extends _0x157fa6{['afterInit'](){const _0xf82df1=this['editor'];_0xf82df1['plugins']['has']('MentionEditing')&&_0xf82df1['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x157fa6{['afterInit'](){const _0x30e607=this['editor'];if(!_0x30e607['plugins']['has']('MergeFieldsEditing'))return;const _0x23155f=_0x30e607['plugins']['get']('TrackChangesEditing'),_0x411b45=_0x30e607['locale'];_0x23155f['enableCommand']('insertMergeField'),_0x23155f['enableCommand']('insertMergeFieldBlock'),_0x23155f['enableCommand']('insertMergeFieldImage'),_0x23155f['descriptionFactory']['registerElementLabel']('mergeField',_0x22e2e4=>o(_0x411b45,'ELEMENT_MERGE_FIELD',_0x22e2e4)),_0x23155f['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x34c3ee=>o(_0x411b45,'ELEMENT_MERGE_FIELD',_0x34c3ee)),_0x23155f['descriptionFactory']['registerDescriptionCallback'](_0x4efa04=>{if('insertion'!=_0x4efa04['type']&&'deletion'!=_0x4efa04['type'])return;const _0x1dc238=_0x4efa04['getContainedElement']();if(null==_0x1dc238)return;const _0x2efafc=_0x30e607['plugins']['get']('MergeFieldsEditing');let _0xae1219;switch(_0x2efafc['getMergeFieldType'](_0x1dc238)){case null:return;case'image':{const _0x5cc238=_0x2efafc['unwrapAffixes'](_0x1dc238['getAttribute']('src'));_0xae1219=_0x2efafc['getLabel'](_0x5cc238)||_0x5cc238;break;}default:{const _0x527cfc=_0x1dc238['getAttribute']('id');_0xae1219=_0x2efafc['getLabel'](_0x527cfc)||_0x527cfc;break;}}return'insertion'==_0x4efa04['type']?{'type':'insertion','content':o(_0x411b45,'*Insert:*\x20%0','\x22'+_0xae1219+'\x22\x20'+o(_0x411b45,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x411b45,'*Remove:*\x20%0','\x22'+_0xae1219+'\x22\x20'+o(_0x411b45,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x157fa6{['afterInit'](){const _0xe595c0=this['editor'],_0x3b8233=_0xe595c0['plugins']['get']('TrackChangesEditing');_0xe595c0['plugins']['has']('MultiLevelList')&&(_0x3b8233['enableDefaultAttributesIntegration']('multiLevelList'),_0x3b8233['descriptionFactory']['registerDescriptionCallback'](_0x3f7ec0=>this['handleDescriptions'](_0x3f7ec0)));}['handleDescriptions'](_0x3502ca){const _0x3a086a=this['editor']['locale'],{data:_0x4f14ff}=_0x3502ca,_0x178bf3={'type':'format','content':''};if(_0x4f14ff&&'listMarkerStyle'==_0x4f14ff['key']){if(!_0x4f14ff['oldValue'])return{'type':'format','content':o(_0x3a086a,'*Set\x20format:*\x20%0',o(_0x3a086a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4f14ff['newValue']+')'};if(!_0x4f14ff['newValue']){let _0x1f38b8=_0x3502ca['head'];for(;_0x1f38b8;){if(_0x1f38b8['data']&&'listType'==_0x1f38b8['data']['key']&&_0x1f38b8['data']['newValue'])return _0x178bf3;_0x1f38b8=_0x1f38b8['next'];}return{'type':'format','content':o(_0x3a086a,'*Remove\x20format:*\x20%0',o(_0x3a086a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4f14ff['oldValue']+')'};}}}}class bt extends _0x157fa6{['afterInit'](){const _0x39b899=this['editor'];if(!_0x39b899['plugins']['has']('PageBreakEditing'))return;_0x39b899['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x5ad6db=_0x39b899['plugins']['get']('TrackChangesEditing'),_0x3292f7=_0x39b899['locale'];_0x5ad6db['descriptionFactory']['registerElementLabel']('pageBreak',_0x384ed8=>o(_0x3292f7,'ELEMENT_PAGE_BREAK',_0x384ed8));}}class yt extends _0x157fa6{['afterInit'](){const _0x4e99c8=this['editor'];if(!_0x4e99c8['plugins']['has']('Paragraph'))return;const _0x3b9fe4=_0x4e99c8['locale'],_0x13b0e0=_0x4e99c8['plugins']['get']('TrackChangesEditing');_0x13b0e0['descriptionFactory']['registerElementLabel']('paragraph',_0x184784=>o(_0x3b9fe4,'ELEMENT_PARAGRAPH',_0x184784)),_0x13b0e0['enableDefaultAttributesIntegration']('paragraph'),_0x13b0e0['enableCommand']('insertParagraph');const _0x3ec1f1=_0x13b0e0['descriptionFactory'];_0x3ec1f1['registerDescriptionCallback'](_0x50cade=>{if('insertion'!==_0x50cade['type'])return;const {start:_0x4f85cc,end:_0x1b6394}=_0x50cade['getFirstRange']();if(!_0x4f85cc['isTouching'](_0x1b6394)||!_0x4f85cc['nodeAfter'])return;const _0x3fc52a=_0x4e99c8['model']['schema'],_0x12747d=_0x4f85cc['nodeAfter'];return _0x3fc52a['isBlock'](_0x12747d)&&!_0x3fc52a['isLimit'](_0x12747d)&&_0x3fc52a['checkChild'](_0x12747d,'$text')?{'type':'insertion','content':o(_0x3b9fe4,'*Insert:*\x20%0',_0x3ec1f1['getItemLabel'](_0x12747d,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d4c2f=this['editor'],_0x550c67=_0x4d4c2f['locale'];_0x4d4c2f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1968ff=>{if('formatBlock'!=_0x1968ff['type'])return;const {data:_0x45bff4}=_0x1968ff;return _0x45bff4&&'paragraph'==_0x45bff4['commandName']?{'type':'format','content':o(_0x550c67,'*Change\x20to:*\x20%0',o(_0x550c67,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class jt extends _0x157fa6{['afterInit'](){const _0xab3c40=this['editor'];_0xab3c40['commands']['get']('replaceSource')&&_0xab3c40['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x157fa6{['afterInit'](){const _0x29808a=this['editor'];if(!_0x29808a['plugins']['has']('RemoveFormatEditing'))return;_0x29808a['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x59c772=this['editor'];_0x59c772['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2b7ee3=>{if('formatBlock'!=_0x2b7ee3['type']&&'formatInline'!=_0x2b7ee3['type'])return;const {data:_0x38b56f}=_0x2b7ee3;return _0x38b56f&&'removeFormat'==_0x38b56f['commandName']?{'type':'format','content':o(_0x59c772['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class It extends _0x157fa6{['afterInit'](){const _0x16f85d=this['editor'];if(!_0x16f85d['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x3832d1=_0x16f85d['plugins']['get']('TrackChangesEditing');_0x3832d1['enableCommand']('goToPreviousRestrictedEditingException'),_0x3832d1['enableCommand']('goToNextRestrictedEditingException');const _0x22ef9f=_0x16f85d['plugins']['get']('RestrictedEditingModeEditing');_0x22ef9f['enableCommand']('trackChanges'),_0x22ef9f['enableCommand']('acceptSuggestion'),_0x22ef9f['enableCommand']('discardSuggestion'),_0x22ef9f['enableCommand']('acceptAllSuggestions'),_0x22ef9f['enableCommand']('discardAllSuggestions'),_0x22ef9f['enableCommand']('acceptSelectedSuggestions'),_0x22ef9f['enableCommand']('discardSelectedSuggestions');}}class At extends _0x157fa6{['afterInit'](){const _0x124373=this['editor'];if(!_0x124373['plugins']['has']('ShiftEnter'))return;const _0x3cff16=_0x124373['plugins']['get']('TrackChangesEditing');_0x3cff16['enableCommand']('shiftEnter'),_0x3cff16['descriptionFactory']['registerElementLabel']('softBreak',_0x11ea35=>o(_0x124373['locale'],'ELEMENT_LINE_BREAK',_0x11ea35));}}function an(_0x4813f6,_0x1fcbe4,_0x5bde2b){const _0x4a53da=[];for(const _0x2667bb of _0x1fcbe4['getItems']())_0x2667bb['hasAttribute'](_0x4813f6)&&_0x4a53da['push'](_0x5bde2b['createRangeOn'](_0x2667bb));return _0x4a53da;}class _t extends _0x157fa6{['afterInit'](){const _0x8f0bf0=this['editor'],_0x3bdfe4=_0x8f0bf0['plugins']['get']('TrackChangesEditing');_0x8f0bf0['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x3bdfe4['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x48aa82=this['editor'],_0x3560bf=_0x48aa82['model'],_0x4d9a3e=_0x48aa82['locale'],_0x1ee47b=_0x48aa82['plugins']['get']('TrackChangesEditing'),_0x4d8c6a='restrictedEditingException',_0x5a4098=_0x48aa82['commands']['get'](_0x4d8c6a);_0x1ee47b['enableCommand'](_0x4d8c6a,(_0x38dda7,_0x569e57={})=>{const _0x1ec30d=_0x3560bf['document']['selection'];if(_0x1ec30d['isCollapsed'])return void _0x38dda7(_0x569e57);const _0x400781=void 0x0!==_0x569e57['forceValue']?_0x569e57['forceValue']:!_0x5a4098['value'];_0x3560bf['change'](()=>{const _0x57b1da=Array['from'](_0x1ec30d['getRanges']());for(const _0x501766 of _0x57b1da){const _0xc953ef=_0x400781?[_0x501766]:an(_0x4d8c6a,_0x501766,_0x3560bf);for(const _0x4ebaad of _0xc953ef)_0x1ee47b['markInlineFormat'](_0x4ebaad,{'commandName':_0x4d8c6a,'commandParams':[{'forceValue':_0x400781}]});}});}),_0x1ee47b['descriptionFactory']['registerDescriptionCallback'](_0x40ae65=>{if('formatBlock'!=_0x40ae65['type']&&'formatInline'!=_0x40ae65['type'])return;const {data:_0xd65430}=_0x40ae65;return _0xd65430&&_0xd65430['commandName']==_0x4d8c6a?_0xd65430['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4d9a3e,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x4d9a3e,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x144249=this['editor'],_0x4f7931=_0x144249['locale'],_0x2cdae2=_0x144249['plugins']['get']('TrackChangesEditing'),_0x107e60='restrictedEditingExceptionBlock',_0x37ba45=this['editor']['commands']['get'](_0x107e60);_0x2cdae2['enableCommand'](_0x107e60,(_0xb8fe86,_0x2f91f5={})=>{const _0x4b216e=this['editor']['model']['document']['selection'],_0x2bcf4c=_0x2f91f5&&void 0x0!==_0x2f91f5['forceValue']?_0x2f91f5['forceValue']:!_0x37ba45['value'];let _0x1c38a8=[];if(_0x2bcf4c){const _0x1aee7d=Array['from'](_0x4b216e['getSelectedBlocks']())['filter'](_0x24af9f=>function(_0x297f16){return!!_0x297f16['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x24af9f)||function(_0x1e9d67,_0x9aeabd){const _0x3b802c=_0x9aeabd['createContext'](_0x1e9d67['parent']);if(!_0x9aeabd['checkChild'](_0x3b802c,'restrictedEditingException'))return!0x1;if(!_0x9aeabd['checkChild'](_0x3b802c['push']('restrictedEditingException'),_0x1e9d67))return!0x1;return!0x0;}(_0x24af9f,this['editor']['model']['schema']));_0x1c38a8=to(_0x1aee7d,_0x144249['model']);}else{const _0x8c143c=Array['from'](_0x4b216e['getSelectedBlocks']())['map'](_0x37f988=>function(_0x1339e7){let _0x37f7b1=_0x1339e7;for(;_0x37f7b1['parent'];){if('restrictedEditingException'==_0x37f7b1['parent']['name'])return _0x37f7b1;_0x37f7b1=_0x37f7b1['parent'];}return null;}(_0x37f988))['filter'](_0x200d48=>!!_0x200d48);_0x1c38a8=to(_0x8c143c,_0x144249['model']);}_0x144249['model']['change'](()=>{for(const _0x4ed815 of _0x1c38a8)_0x2cdae2['markBlockFormat'](_0x4ed815,{'commandName':_0x107e60,'commandParams':[{'forceValue':_0x2bcf4c}]});});}),_0x2cdae2['descriptionFactory']['registerDescriptionCallback'](_0x24f2b8=>{const {data:_0x1c5b2e}=_0x24f2b8;if(_0x1c5b2e&&_0x1c5b2e['commandName']==_0x107e60)return _0x1c5b2e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4f7931,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x4f7931,'FORMAT_RESTRICTED_DISABLED')};});}}class Ct extends _0x157fa6{['afterInit'](){const _0x857256=this['editor'];if(!_0x857256['plugins']['has']('Style')||!_0x857256['plugins']['has']('DataSchema'))return;const _0x437faa=_0x857256['plugins']['get']('TrackChangesEditing'),_0x3ab3bf=_0x857256['locale'],_0x1552bf=_0x857256['config']['get']('style')||{},_0x34bb66=_0x857256['plugins']['get']('GeneralHtmlSupport'),_0x2b4be1=_0x857256['plugins']['get']('StyleUtils')['normalizeConfig'](_0x857256['plugins']['get']('DataSchema'),_0x1552bf['definitions']);_0x437faa['enableDefaultAttributesIntegration']('style');const _0x298cf8=new Set();for(const _0x4b9fd7 of _0x2b4be1['block']){const _0x5a1356=_0x34bb66['getGhsAttributeNameForElement'](_0x4b9fd7['element']);_0x298cf8['add'](_0x5a1356);}const _0x62f728=new Set();for(const _0x464b8e of _0x2b4be1['inline']){const _0xaeecde=_0x34bb66['getGhsAttributeNameForElement'](_0x464b8e['element']);_0x62f728['add'](_0xaeecde);for(const _0x6c7779 of _0x464b8e['ghsAttributes'])_0x62f728['add'](_0x6c7779);}for(const _0x41d3a3 of _0x298cf8)_0x437faa['descriptionFactory']['registerAttributeLabel'](_0x41d3a3,o(_0x3ab3bf,'FORMAT_STYLE'));for(const _0x644e72 of _0x62f728)_0x437faa['descriptionFactory']['registerAttributeLabel'](_0x644e72,o(_0x3ab3bf,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x29065b=this['editor'],_0x33a6a9=_0x29065b['locale'];_0x29065b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa2ebd7=>{if('formatBlock'!=_0xa2ebd7['type']&&'formatInline'!=_0xa2ebd7['type'])return;const {data:_0x977d6a}=_0xa2ebd7;return _0x977d6a&&'style'===_0x977d6a['commandName']?_0x977d6a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x33a6a9,'*Set\x20format:*\x20%0',_0x977d6a['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x33a6a9,'*Remove\x20format:*\x20%0',_0x977d6a['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Nt extends _0x157fa6{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x31a304){super(_0x31a304),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x2b38ee=this['editor'],_0x620bc7=_0x2b38ee['model']['document']['selection'];if(!_0x2b38ee['plugins']['has']('TableEditing'))return;const _0x5caec3=_0x2b38ee['locale'],_0x52dd27=_0x2b38ee['plugins']['get']('TrackChangesEditing'),_0x3b0dc1=_0x2b38ee['plugins']['get']('TableUtils');_0x52dd27['descriptionFactory']['registerElementLabel']('table',_0x53968b=>o(_0x5caec3,'ELEMENT_TABLE',_0x53968b)),this['_setupColumnsRowsFixing'](),_0x52dd27['enableCommand']('insertTable'),_0x52dd27['enableCommand']('selectTableRow'),_0x52dd27['enableCommand']('selectTableColumn');for(const _0x9d7e56 of['insertTableRowAbove','insertTableRowBelow']){const _0x243b54=_0x2b38ee['commands']['get'](_0x9d7e56);_0x52dd27['enableCommand'](_0x9d7e56,_0x26ffd6=>{_0x2b38ee['model']['change'](_0x2ecf2a=>{_0x26ffd6();const _0x585f44='above'===_0x243b54['order'],_0x2eaa0f=_0x3b0dc1['getSelectionAffectedTableCells'](_0x620bc7),_0x45d768=_0x3b0dc1['getRowIndexes'](_0x2eaa0f),_0x163a53=_0x585f44?_0x45d768['first']-0x1:_0x45d768['last']+0x1,_0x5e714c=_0x2eaa0f[0x0]['findAncestor']('table'),_0x53491c=_0x3b0dc1['createTableWalker'](_0x5e714c,{'startRow':_0x163a53,'endRow':_0x163a53}),_0xc38e31=Array['from'](_0x53491c)['map'](_0x462e00=>_0x2ecf2a['createRangeOn'](_0x462e00['cell']));_0x52dd27['markMultiRangeInsertion'](_0xc38e31,'tableRow');});});}for(const _0x4dd474 of['insertTableColumnLeft','insertTableColumnRight']){const _0x5c6976=_0x2b38ee['commands']['get'](_0x4dd474);_0x52dd27['enableCommand'](_0x4dd474,_0x3d3bb6=>{_0x2b38ee['model']['change'](_0x4d3d70=>{_0x3d3bb6();const _0x13efcc='left'===_0x5c6976['order'],_0x5df375=_0x3b0dc1['getSelectionAffectedTableCells'](_0x620bc7),_0x28d85d=_0x3b0dc1['getColumnIndexes'](_0x5df375),_0x40d94c=_0x13efcc?_0x28d85d['first']-0x1:_0x28d85d['last']+0x1,_0x31421f=_0x5df375[0x0]['findAncestor']('table'),_0x400926=_0x3b0dc1['createTableWalker'](_0x31421f,{'startRow':0x0,'column':_0x40d94c,'includeAllSlots':!0x1}),_0x598a60=Array['from'](_0x400926)['map'](_0x125c38=>_0x4d3d70['createRangeOn'](_0x125c38['cell']));_0x52dd27['markMultiRangeInsertion'](_0x598a60,'tableColumn');});});}for(const _0x5e977b of['removeTableRow','removeTableColumn']){const _0x2cf3d3=_0x5e977b['substr'](0xb),_0x3ebfb4=_0x2cf3d3['toLowerCase'](),_0x37564f=_0x3ebfb4['substr'](0x0,0x3)+'span',_0x326492='table'+_0x2cf3d3,_0x10bd3e='min'+_0x2cf3d3,_0x30565c='max'+_0x2cf3d3;_0x52dd27['enableCommand'](_0x5e977b,()=>{_0x2b38ee['model']['change'](_0x59811f=>{const _0x35dded=_0x3b0dc1['getSelectionAffectedTableCells'](_0x620bc7),_0x1e7e28=_0x35dded[0x0]['findAncestor']('table');let _0x10bbe5;if('removeTableRow'==_0x5e977b){const _0x4545d8=_0x3b0dc1['getRowIndexes'](_0x35dded);_0x10bbe5={'startRow':_0x4545d8['first'],'endRow':_0x4545d8['last'],'includeAllSlots':!0x0};}else{const _0x4319db=_0x3b0dc1['getColumnIndexes'](_0x35dded);_0x10bbe5={'startColumn':_0x4319db['first'],'endColumn':_0x4319db['last'],'includeAllSlots':!0x0};}const _0x2cc8a9=_0x3b0dc1['createTableWalker'](_0x1e7e28,_0x10bbe5),_0x53305e=Array['from'](_0x2cc8a9)['map'](({cell:_0x495832})=>_0x495832),_0x66b4b3=_e(_0x53305e['filter'](_0x2e89a4=>_0x2e89a4['hasAttribute'](_0x37564f))),_0x3cdd52=_e(_0x53305e['filter'](_0x3996c4=>!_0x3996c4['hasAttribute'](_0x37564f)))['map'](_0x8e6f3=>_0x59811f['createRangeOn'](_0x8e6f3)),_0x304971=_0x52dd27['markMultiRangeDeletion'](_0x3cdd52,_0x326492);if(_0x304971&&('tableRow'==_0x304971['subType']||'tableColumn'==_0x304971['subType'])){const _0x58740b=this['_getSuggestionCoords'](_0x304971);for(const _0x38886b of _0x66b4b3){const _0x1ea6e9=_0x59811f['createRangeOn'](_0x38886b),_0x4ea7cd=_0x3b0dc1['getCellLocation'](_0x38886b),_0x2b9fb2=_0x38886b['getAttribute'](_0x37564f)-0x1,_0x34c7f1=_0x58740b[_0x10bd3e],_0x143207=_0x58740b[_0x30565c];_0x34c7f1<=_0x4ea7cd[_0x3ebfb4]&&_0x4ea7cd[_0x3ebfb4]+_0x2b9fb2<=_0x143207&&_0x304971['addRange'](_0x1ea6e9);}}});});}function _0x81bc9f(_0x24739b){const _0x4ada91=Array['from'](_0x620bc7['getRanges']())['map'](_0x3e0abe=>_0x4ca1d8['fromRange'](_0x3e0abe));_0x2b38ee['model']['change'](_0x549b25=>{const _0x3e9d3b=_0x549b25['batch'];_0x24739b=_0x24739b['filter'](_0xe622d3=>'$graveyard'!=_0xe622d3['root']['rootName']),_0x549b25['setSelection'](_0x24739b),_0x2b38ee['commands']['get']('removeTableRow')['refresh'](),_0x2b38ee['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x2b38ee['model']['enqueueChange'](()=>{_0x2b38ee['model']['enqueueChange'](_0x3e9d3b,_0x20b116=>{const _0x5acbed=_0x4ada91['filter'](_0x1cc5e0=>'$graveyard'!=_0x1cc5e0['root']['rootName']);_0x5acbed['length']>0x0&&_0x20b116['setSelection'](_0x5acbed);for(const _0x19d73a of _0x4ada91)_0x19d73a['detach']();});});});}function _0x5118cc(_0x58504b){_0x2b38ee['model']['change'](_0x3eca54=>{const _0x5d82ab=Array['from'](_0x620bc7['getRanges']())['map'](_0x310c8c=>_0x4ca1d8['fromRange'](_0x310c8c)),_0x49cb00=[];for(const _0x26b694 of _0x58504b)for(const _0x2c437c of _0x26b694['getItems']({'shallow':!0x0}))_0x49cb00['push'](_0x2c437c);for(const _0x5dbdfa of _0x49cb00)'$graveyard'!=_0x5dbdfa['root']['rootName']&&(_0x3eca54['setSelection'](_0x3eca54['createPositionAt'](_0x5dbdfa,0x0)),_0x2b38ee['commands']['get']('removeTableColumn')['refresh'](),_0x2b38ee['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x25c50c=_0x5d82ab['filter'](_0x42047c=>'$graveyard'!=_0x42047c['root']['rootName']);_0x25c50c['length']>0x0&&_0x3eca54['setSelection'](_0x25c50c);for(const _0x39237d of _0x5d82ab)_0x39237d['detach']();});}function _0x238e9d(_0x291de9,_0x3f3dd2){return _0x3f3dd2['every'](_0x53b6e3=>_0x291de9['some'](_0x1ac56b=>_0x1ac56b['end']['isEqual'](_0x53b6e3['start'])||_0x53b6e3['end']['isEqual'](_0x1ac56b['start'])));}function _0x2d441b(_0x2ade39,_0x292de4){return!_0x2ade39['some'](_0x2bbc63=>_0x292de4['some'](_0x42fcaf=>_0x2bbc63['isIntersecting'](_0x42fcaf)))&&_0x2ade39['some'](_0x2b05cf=>_0x292de4['some'](_0x5bb9c3=>_0x2b05cf['end']['isTouching'](_0x5bb9c3['start'])));}_0x52dd27['descriptionFactory']['registerDescriptionCallback'](_0x500584=>{if('insertion'!=_0x500584['type']&&'deletion'!=_0x500584['type'])return;const _0x3391ea=_0x500584['getContainedElement']();if(null!=_0x3391ea&&_0x3391ea['is']('element','table')){if('insertion'==_0x500584['type']){const _0x8f7aa0=_0x500584['getItems']()['filter'](_0x230af9=>_0x230af9['is']('$textProxy'))['map'](_0x4e1e29=>_0x4e1e29['data']);if(_0x8f7aa0['length'])return{'type':'insertion','content':o(_0x5caec3,'*Insert:*\x20%0',o(_0x5caec3,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x8f7aa0['join']('\x20')+'\x22'))};}if('deletion'==_0x500584['type']){const _0x432b12=_0x500584['getItems']()['filter'](_0x3c0cb8=>_0x3c0cb8['is']('$textProxy'))['map'](_0xdf0122=>_0xdf0122['data']);if(_0x432b12['length'])return{'type':'deletion','content':o(_0x5caec3,'*Remove:*\x20%0',o(_0x5caec3,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x432b12['join']('\x20')+'\x22'))};}}}),_0x52dd27['descriptionFactory']['registerDescriptionCallback'](_0x18faae=>{if('tableRow'==_0x18faae['subType']){const _0x20fd2d=_0x18faae['getItems']()['filter'](_0x742522=>_0x742522['is']('$textProxy'))['map'](_0x18f2f3=>_0x18f2f3['data']),_0x57374d=this['_getSuggestionCoords'](_0x18faae),_0x563379=_0x57374d['maxRow']-_0x57374d['minRow']+0x1;if('insertion'==_0x18faae['type'])return _0x20fd2d['length']?{'type':'insertion','content':o(_0x5caec3,'*Insert:*\x20%0',o(_0x5caec3,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x563379,'\x22'+_0x20fd2d['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x5caec3,'*Insert:*\x20%0',o(_0x5caec3,'ELEMENT_TABLE_ROW',_0x563379))};if('deletion'==_0x18faae['type'])return _0x20fd2d['length']?{'type':'deletion','content':o(_0x5caec3,'*Remove:*\x20%0',o(_0x5caec3,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x563379,'\x22'+_0x20fd2d['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x5caec3,'*Remove:*\x20%0',o(_0x5caec3,'ELEMENT_TABLE_ROW',_0x563379))};}if('tableColumn'==_0x18faae['subType']){const _0x512446=_0x18faae['getItems']()['filter'](_0x2dd413=>_0x2dd413['is']('$textProxy'))['map'](_0x272bf9=>_0x272bf9['data']),_0x1d363d=this['_getSuggestionCoords'](_0x18faae),_0x28eaef=_0x1d363d['maxColumn']-_0x1d363d['minColumn']+0x1;if('insertion'==_0x18faae['type'])return _0x512446['length']?{'type':'insertion','content':o(_0x5caec3,'*Insert:*\x20%0',o(_0x5caec3,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x28eaef,'\x22'+_0x512446['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x5caec3,'*Insert:*\x20%0',o(_0x5caec3,'ELEMENT_TABLE_COLUMN',_0x28eaef))};if('deletion'==_0x18faae['type'])return _0x512446['length']?{'type':'deletion','content':o(_0x5caec3,'*Remove:*\x20%0',o(_0x5caec3,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x28eaef,'\x22'+_0x512446['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x5caec3,'*Remove:*\x20%0',o(_0x5caec3,'ELEMENT_TABLE_COLUMN',_0x28eaef))};}}),_0x52dd27['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x81bc9f),_0x52dd27['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x81bc9f),_0x52dd27['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x5118cc),_0x52dd27['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x5118cc),_0x52dd27['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x238e9d),_0x52dd27['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x238e9d),_0x52dd27['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x2d441b),_0x52dd27['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x2d441b);}['_acceptFormatSuggestionCallbackFactory'](){const _0x3b5735=this['editor'],_0x137ac7=_0x3b5735['model']['document']['selection'];return(_0x2b7549,_0x4a2d46)=>{_0x3b5735['model']['change'](_0x5ab431=>{const {commandName:_0x4a19ef,commandParams:_0x4b77f6}=_0x4a2d46;let _0x5951c1=_0x2b7549[0x0]['end']['nodeBefore'];_0x4b77f6&&_0x4b77f6[0x0]&&!0x1===_0x4b77f6[0x0]['forceValue']&&(_0x5951c1=_0x2b7549[0x0]['start']['nodeAfter']);const _0xa146a0=_0x5ab431['createRangeIn'](_0x5951c1);if('$graveyard'==_0xa146a0['root']['rootName'])return;const _0x38ddc4=Array['from'](_0x137ac7['getRanges']())['map'](_0x4b69b9=>_0x4ca1d8['fromRange'](_0x4b69b9));_0x5ab431['setSelection'](_0xa146a0),_0x3b5735['commands']['get'](_0x4a19ef)['refresh'](),_0x4b77f6['push']({'forceDefaultExecution':!0x0}),_0x3b5735['execute'](_0x4a19ef,..._0x4b77f6);const _0x3b6516=_0x38ddc4['filter'](_0x2475e7=>'$graveyard'!=_0x2475e7['root']['rootName']);_0x3b6516['length']>0x0&&_0x5ab431['setSelection'](_0x3b6516);for(const _0x5ad0e4 of _0x38ddc4)_0x5ad0e4['detach']();});};}['_getCoordsForCells'](_0x4cdfa2){const _0x5b3fc6=this['editor']['plugins']['get']('TableUtils');let _0x9ce232=Number['MAX_SAFE_INTEGER'],_0x3edcc0=Number['MIN_SAFE_INTEGER'],_0xebf917=Number['MAX_SAFE_INTEGER'],_0x3ffcb9=Number['MIN_SAFE_INTEGER'];for(const _0x591af3 of _0x4cdfa2){if('$graveyard'==_0x591af3['root']['rootName'])continue;const {row:_0x4fc7c1,column:_0x3b6fce}=_0x5b3fc6['getCellLocation'](_0x591af3),_0x2b3aa6=_0x591af3['hasAttribute']('rowspan')?_0x591af3['getAttribute']('rowspan')-0x1:0x0,_0xc0c9cd=_0x591af3['hasAttribute']('colspan')?_0x591af3['getAttribute']('colspan')-0x1:0x0;_0x9ce232=_0x4fc7c1<_0x9ce232?_0x4fc7c1:_0x9ce232,_0x3edcc0=_0x4fc7c1+_0x2b3aa6>_0x3edcc0?_0x4fc7c1+_0x2b3aa6:_0x3edcc0,_0xebf917=_0x3b6fce<_0xebf917?_0x3b6fce:_0xebf917,_0x3ffcb9=_0x3b6fce+_0xc0c9cd>_0x3ffcb9?_0x3b6fce+_0xc0c9cd:_0x3ffcb9;}return{'minRow':_0x9ce232,'maxRow':_0x3edcc0,'minColumn':_0xebf917,'maxColumn':_0x3ffcb9};}['_setupColumnsRowsFixing'](){const _0x42a776=this['editor'],_0x205d15=_0x42a776['plugins']['get']('TrackChangesEditing'),_0x4e7f25=_0x42a776['plugins']['get']('TableUtils');_0x42a776['model']['document']['on']('change:data',()=>{const _0x2ca8b5=Array['from'](_0x42a776['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x369146,data:_0x3e8fc5}of _0x2ca8b5){const {group:_0xcdfdc1,id:_0x12c917,subType:_0x4704ac}=_0x205d15['_splitMarkerName'](_0x369146);if('suggestion'!=_0xcdfdc1)continue;if(null!=_0x3e8fc5['oldRange'])continue;const _0x502e1b=_0x205d15['getSuggestion'](_0x12c917);this['_tablePostFixingSubtypes']['includes'](_0x4704ac)&&this['_tableSuggestions']['add'](_0x502e1b);}},{'priority':'low'});const _0x15a46f=(_0x2badbf,_0x1176c0)=>{let _0x585cbb=!0x1;const _0x4f80db=_0x1176c0['createRangeOn'](_0x2badbf),_0xe7c4c1=_0x2badbf['findAncestor']('table'),_0x3ef264=_0x4e7f25['getCellLocation'](_0x2badbf);for(const _0x14d71f of this['_tableSuggestions']){const _0x11b5e2=_0x14d71f['subType'],_0x3744da=_0x11b5e2['startsWith']('tablePaste'),_0x2239c0=_0x11b5e2['substr'](_0x3744da?0xa:0x5),_0x540e5c=_0x2239c0['toLowerCase'](),_0x3ab53b=_0x540e5c['substr'](0x0,0x3)+'span',_0x23663d='min'+_0x2239c0,_0x7c9e1e='max'+_0x2239c0;if(!_0x14d71f['isInContent'])continue;if(_0xe7c4c1!=_0x14d71f['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x14d71f['isIntersectingWithRange'](_0x4f80db))continue;const _0x2f8f4d=_0x2badbf['hasAttribute'](_0x3ab53b)?_0x2badbf['getAttribute'](_0x3ab53b)-0x1:0x0,_0x565586=this['_getSuggestionCoords'](_0x14d71f),_0x313403=_0x565586[_0x23663d],_0xca0731=_0x565586[_0x7c9e1e];_0x313403<=_0x3ef264[_0x540e5c]&&_0x3ef264[_0x540e5c]+_0x2f8f4d<=_0xca0731&&(_0x14d71f['addRange'](_0x4f80db),_0x585cbb=!0x0);}return _0x585cbb;};_0x42a776['model']['document']['registerPostFixer'](_0x2446fc=>{let _0x3ee4aa=!0x1;for(const _0x23f9d3 of _0x42a776['model']['document']['differ']['getChanges']())if('insert'==_0x23f9d3['type']){if('tableRow'==_0x23f9d3['name']){for(const _0x45d315 of _0x23f9d3['position']['nodeAfter']['getChildren']())_0x3ee4aa=_0x3ee4aa||_0x15a46f(_0x45d315,_0x2446fc);}else'tableCell'==_0x23f9d3['name']&&(_0x3ee4aa=_0x3ee4aa||_0x15a46f(_0x23f9d3['position']['nodeAfter'],_0x2446fc));}return _0x3ee4aa;});}['_getSuggestionCoords'](_0x53883f){return this['_getCoordsForCells'](_0x53883f['getRanges']()['map'](_0x380168=>_0x380168['start']['nodeAfter']));}}function _e(_0x3206b5){return Array['from'](new Set(_0x3206b5)['values']());}class $t extends _0x157fa6{static get['requires'](){return[Nt];}['afterInit'](){const _0x1dbc29=this['editor'],_0x118a62=_0x1dbc29['model']['document']['selection'],_0x361b3c=_0x1dbc29['locale'];if(!_0x1dbc29['plugins']['has']('TableEditing'))return;const _0x3967de=_0x1dbc29['plugins']['get']('TrackChangesEditing'),_0x508942=_0x1dbc29['plugins']['get']('TableUtils'),_0x1956e4=_0x1dbc29['plugins']['get'](Nt);_0x1956e4['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x3967de['enableCommand']('mergeTableCells',()=>{const _0x498c3a=_0x508942['getSelectionAffectedTableCells'](_0x1dbc29['model']['document']['selection']);_0x1dbc29['model']['change'](()=>{_0x3967de['markMultiRangeBlockFormat'](_0x498c3a,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x1dbc29['commands']['get']('mergeTableCells')['on']('execute',(_0x2d2ac4,_0x15ba28)=>{_0x1dbc29['commands']['get']('trackChanges')['value']&&(_0x15ba28['length']>0x0&&_0x15ba28[_0x15ba28['length']-0x1]&&_0x15ba28[_0x15ba28['length']-0x1]['forceDefaultExecution']||_0x3967de['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x2d2ac4['stop']());},{'priority':'highest'});for(const _0x4ea16c of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x1e4a68=_0x1dbc29['commands']['get'](_0x4ea16c);_0x3967de['enableCommand'](_0x4ea16c,()=>{const _0x322496=_0x1dbc29['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x43efbb=>_0x43efbb['is']('element','tableCell')),_0x17d791=_0x1e4a68['value'];_0x1dbc29['model']['change'](()=>{_0x3967de['markMultiRangeBlockFormat']([_0x322496,_0x17d791],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x53c6d8 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x1855e7=_0x1dbc29['commands']['get'](_0x53c6d8);_0x3967de['enableCommand'](_0x53c6d8,()=>{const _0x4686ed=_0x508942['getSelectionAffectedTableCells'](_0x1dbc29['model']['document']['selection'])[0x0],_0x14c4e0=_0x4686ed['findAncestor']('table'),{column:_0x5bd1fa,row:_0x9aa98f}=_0x508942['getCellLocation'](_0x4686ed);let _0x5a768a=[];if('horizontally'==_0x1855e7['direction']){const _0x41cd7d=_0x508942['createTableWalker'](_0x14c4e0,{'startRow':_0x9aa98f,'endRow':_0x9aa98f,'includeAllSlots':!0x0});_0x5a768a=Array['from'](_0x41cd7d)['map'](_0x222924=>_0x222924['cell']);}else{const _0x2388f5=_0x508942['createTableWalker'](_0x14c4e0,{'column':_0x5bd1fa,'includeAllSlots':!0x0});_0x5a768a=Array['from'](_0x2388f5)['map'](_0x28bcd9=>_0x28bcd9['cell']);}_0x1dbc29['model']['change'](_0x4002c2=>{_0x3967de['markBlockFormat'](_0x4002c2['createRangeOn'](_0x4686ed),{'commandName':_0x53c6d8,'commandParams':[]},_0x5a768a,_0x53c6d8);});});}_0x3967de['descriptionFactory']['registerDescriptionCallback'](_0x329d0b=>{if('formatBlock'!=_0x329d0b['type']&&'formatInline'!=_0x329d0b['type'])return;const {data:_0x1991dc}=_0x329d0b;return _0x1991dc&&'mergeTableCells'==_0x1991dc['commandName']?{'type':'format','content':o(_0x361b3c,'*Merge\x20cells*')}:void 0x0;}),_0x3967de['descriptionFactory']['registerDescriptionCallback'](_0x346861=>{if('formatBlock'!=_0x346861['type']&&'formatInline'!=_0x346861['type'])return;const {data:_0x1e058d}=_0x346861;return _0x1e058d?'splitTableCellVertically'==_0x1e058d['commandName']?{'type':'format','content':o(_0x361b3c,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x1e058d['commandName']?{'type':'format','content':o(_0x361b3c,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x10f0d4=_0x1956e4['_acceptFormatSuggestionCallbackFactory']();for(const _0x17597d of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x3967de['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x17597d,'accept',_0x10f0d4);for(const _0x448271 of['splitTableCellVertically','splitTableCellHorizontally'])_0x3967de['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x448271,'accept',_0x10f0d4);_0x3967de['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x16b5e5=>{_0x1dbc29['model']['change'](_0x3d1f0f=>{const _0x561690=Array['from'](_0x118a62['getRanges']())['map'](_0x46ddf1=>_0x4ca1d8['fromRange'](_0x46ddf1));_0x3d1f0f['setSelection'](_0x16b5e5),_0x1dbc29['commands']['get']('mergeTableCells')['refresh'](),_0x1dbc29['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x28a286=_0x561690['filter'](_0x90b63f=>'$graveyard'!=_0x90b63f['root']['rootName']);_0x28a286['length']>0x0&&_0x3d1f0f['setSelection'](_0x28a286);for(const _0x3429be of _0x561690)_0x3429be['detach']();});});for(const _0x2f8435 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x1fea16=_0x1dbc29['commands']['get'](_0x2f8435);_0x1fea16['on']('set:isEnabled',(_0x22bfd3,_0x459255,_0x417fc8)=>{if(_0x417fc8){const _0x57b37d=_0x1dbc29['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3f227f=>_0x3f227f['is']('element','tableCell'));this['_areMergableCells'](_0x1fea16['value'],_0x57b37d)||(_0x22bfd3['return']=!0x1,_0x22bfd3['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x4365ae=this['editor']['commands']['get']('mergeTableCells'),_0x442ce3=this['editor']['plugins']['get']('TableUtils');if(!_0x4365ae['isEnabled'])return!0x1;const _0x4e8343=_0x442ce3['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x92c482 of _0x4e8343)for(const _0x3e8ea4 of _0x4e8343)if(_0x92c482!=_0x3e8ea4&&!this['_areMergableCells'](_0x92c482,_0x3e8ea4))return!0x1;return!0x0;}['_areMergableCells'](_0x545411,_0x24f401){const _0x59960f=this['editor']['plugins']['get']('TrackChangesEditing'),_0xb9d198=this['editor']['model']['createRangeOn'](_0x545411),_0x2999c4=this['editor']['model']['createRangeOn'](_0x24f401),_0x311d3f=new Set(),_0x354432=new Set();for(const _0x398330 of _0x59960f['getSuggestions']())if(('insertion'==_0x398330['type']||'deletion'==_0x398330['type']||'mergeTableCells'==_0x398330['subType'])&&_0x398330['isInContent']){for(const _0x3df1a2 of _0x398330['getRanges']())_0x3df1a2['containsRange'](_0xb9d198,!0x0)&&_0x311d3f['add'](_0x398330['type']+':'+_0x398330['author']['id']),_0x3df1a2['containsRange'](_0x2999c4,!0x0)&&_0x354432['add'](_0x398330['type']+':'+_0x398330['author']['id']);}if(_0x311d3f['size']!=_0x354432['size'])return!0x1;for(const _0x5911b5 of _0x311d3f)if(!_0x354432['has'](_0x5911b5))return!0x1;return!0x0;}}class vt extends _0x157fa6{static get['requires'](){return[Nt];}['afterInit'](){const _0x43f129=this['editor'];if(!_0x43f129['plugins']['has']('TableEditing'))return;const _0x23b0cb=_0x43f129['locale'],_0x56720e=_0x43f129['plugins']['get']('TrackChangesEditing');_0x56720e['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x56720e['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x56720e['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x23b0cb,'FORMAT_HEADER_ROW')),_0x56720e['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x23b0cb,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x52a905=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3a1bfa=this['editor']['plugins']['get'](Nt)['_acceptFormatSuggestionCallbackFactory']();_0x52a905['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x3a1bfa),_0x52a905['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x3a1bfa),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x9897ec=this['editor']['plugins']['get']('TrackChangesEditing'),_0x241dae=this['editor']['plugins']['get']('TableUtils');function _0x333f11({showActiveMarker:_0x257e07=!0x0,setDataAttribute:_0x24b6ed=!0x0}={}){return(_0x1bd6f9,_0x480b57,_0x2df7c4)=>{const {type:_0x3f4261,id:_0x25aa61}=_0x9897ec['_splitMarkerName'](_0x480b57['markerName']);if(!_0x9897ec['hasSuggestion'](_0x25aa61))return;const _0x54ad6d=_0x9897ec['getSuggestion'](_0x25aa61),_0x10bb61=_0x54ad6d['data'];if('formatBlock'!=_0x54ad6d['type']||!_0x10bb61||'setTableColumnHeader'!=_0x10bb61['commandName'])return;if(_0x480b57['item'])return void _0x1bd6f9['stop']();if(!_0x2df7c4['consumable']['consume'](_0x480b57['markerRange'],_0x1bd6f9['name']))return;const _0x4a6817=_0x480b57['markerRange']['start']['nodeAfter'],_0x46e9b5=_0x480b57['markerRange']['end']['nodeBefore'],_0x58ecb6=_0x4a6817['parent']['parent'],{column:_0x2586aa}=_0x241dae['getCellLocation'](_0x4a6817),{column:_0x38d4ea}=_0x241dae['getCellLocation'](_0x46e9b5);for(let _0x997c0=_0x2586aa;_0x997c0<=_0x38d4ea;_0x997c0++){const _0x3f679b=_0x241dae['createTableWalker'](_0x58ecb6,{'column':_0x997c0,'includeAllSlots':!0x1});for(const _0x182ce4 of _0x3f679b){const _0x11ca67=_0x182ce4['cell'],_0x31a013=_0x2df7c4['mapper']['toViewElement'](_0x11ca67);_0x2df7c4['writer']['addClass']('ck-suggestion-marker-'+_0x3f4261,_0x31a013),_0x24b6ed&&_0x2df7c4['writer']['setAttribute']('data-suggestion',_0x25aa61,_0x31a013),_0x2df7c4['mapper']['bindElementToMarker'](_0x31a013,_0x480b57['markerName']),_0x257e07&&(_0x9897ec['activeMarkers']['includes'](_0x480b57['markerName'])?_0x2df7c4['writer']['addClass']('ck-suggestion-marker--active',_0x31a013):_0x2df7c4['writer']['removeClass']('ck-suggestion-marker--active',_0x31a013));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x333f11(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x57d634,_0x35fc75,_0x4804a0)=>{_0x4804a0['options']['showSuggestionHighlights']&&_0x333f11({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x57d634,_0x35fc75,_0x4804a0);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x9efd69,_0x118f91,_0x4e49ae)=>{const {type:_0x59a285,id:_0x57f750}=_0x9897ec['_splitMarkerName'](_0x118f91['markerName']);if(!_0x9897ec['hasSuggestion'](_0x57f750))return;const _0x245b58=_0x9897ec['getSuggestion'](_0x57f750),_0x1cf982=_0x245b58['data'];if('formatBlock'!=_0x245b58['type']||!_0x1cf982||'setTableColumnHeader'!=_0x1cf982['commandName'])return;const _0x44c500=_0x4e49ae['mapper']['markerNameToElements'](_0x118f91['markerName']);if(_0x44c500){for(const _0x1c4216 of _0x44c500)_0x4e49ae['writer']['removeClass']('ck-suggestion-marker-'+_0x59a285,_0x1c4216),_0x4e49ae['writer']['removeClass']('ck-suggestion-marker--active',_0x1c4216),_0x4e49ae['writer']['removeAttribute']('data-suggestion',_0x1c4216),_0x4e49ae['mapper']['unbindElementFromMarkerName'](_0x1c4216,_0x118f91['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x3a1320=this['editor'],_0x452a46=_0x3a1320['locale'];function _0x46b2c1(_0x433a3b){return{'type':'format','content':o(_0x452a46,'*Format:*\x20%0',_0x433a3b)};}_0x3a1320['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x23c059=>{if('formatBlock'!=_0x23c059['type'])return;const {data:_0x99b463}=_0x23c059;if(_0x99b463){if('setTableRowHeader'==_0x99b463['commandName']){const _0x28ec1a=_0x99b463['commandParams'][0x0]['forceValue'];return _0x46b2c1(o(_0x452a46,_0x28ec1a?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x99b463['commandName']){const _0x90435f=_0x99b463['commandParams'][0x0]['forceValue'];return _0x46b2c1(o(_0x452a46,_0x90435f?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Dt extends _0x157fa6{['afterInit'](){const _0x4ae475=this['editor'],_0x5d6422=_0x4ae475['locale'],_0x4ffba5=_0x4ae475['plugins']['get']('TrackChangesEditing');function _0x379a3e(_0x11f2bc){return{'type':'format','content':''+o(_0x5d6422,'*Set\x20table\x20type:*\x20%0',_0x11f2bc)};}_0x4ae475['plugins']['has']('TableLayout')&&(_0x4ffba5['enableCommand']('insertTableLayout'),_0x4ffba5['enableDefaultAttributesIntegration']('tableType'),_0x4ffba5['descriptionFactory']['registerElementLabel'](_0x51ab04=>_0x51ab04['is']('element','table')&&'layout'===_0x51ab04['getAttribute']('tableType'),_0x30e2ad=>o(_0x5d6422,'ELEMENT_LAYOUT_TABLE',_0x30e2ad)),_0x4ffba5['descriptionFactory']['registerDescriptionCallback'](_0x5e5088=>{const {data:_0x200cb1}=_0x5e5088;if(_0x200cb1&&'tableType'==_0x200cb1['key'])switch(_0x200cb1['newValue']){case'layout':return _0x379a3e(o(_0x5d6422,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x379a3e(o(_0x5d6422,'ELEMENT_CONTENT_TABLE'));}}));}}const Re=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ae=/* #__PURE__ -- @preserve */
25
+ Object['fromEntries'](Re['map'](_0x110425=>[_0x110425,null]));class Bt extends _0x157fa6{static get['requires'](){return[Nt];}['afterInit'](){const _0x201b1d=this['editor'];if(!_0x201b1d['plugins']['has']('TableClipboard'))return;const _0x33a742=_0x201b1d['plugins']['get']('TrackChangesEditing'),_0x5ce950=_0x201b1d['plugins']['get']('TableUtils'),_0x4fec0b=_0x201b1d['plugins']['get'](Nt),_0xa2cbd4=_0x201b1d['plugins']['get']('TableClipboard'),_0x5e3b2b=_0x201b1d['plugins']['get']('TableSelection'),_0x45d0bf=_0x201b1d['plugins']['get'](_0x1b9cf9);_0x4fec0b['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x201b1d['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x201b1d['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0xcc13e1=null,_0x23bd42=!0x1;_0x45d0bf['on']('contentInsertion',(_0x2ee0c8,_0xc0900d)=>{_0x23bd42='paste'===_0xc0900d['method'];}),_0x201b1d['model']['on']('insertContent',(_0x259e9e,_0x39ff85)=>{if(!_0x23bd42&&null===_0x5e3b2b['getSelectedTableCells']())return;const [_0x3a773f,_0x566057]=_0x39ff85,_0x901628=_0x39ff85[_0x39ff85['length']-0x1];_0x901628&&_0x901628['forceDefaultExecution']||_0x33a742['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x1b718d,_0x4bbd7a,_0x9a8627,_0x58f424,_0x43df9b){if(_0x4bbd7a&&!_0x4bbd7a['is']('documentSelection'))return!0x1;const _0x4ea3b2=_0x43df9b['getTableIfOnlyTableInContent'](_0x1b718d,_0x9a8627);if(!_0x4ea3b2||!Oe(_0x4ea3b2,void 0x0,_0x58f424))return!0x1;const _0x564d8a=_0x58f424['getSelectionAffectedTableCells'](_0x9a8627['document']['selection']);if(!_0x564d8a['length'])return!0x1;const _0x39326f=_0x564d8a[0x0]['findAncestor']('table'),_0x3d60e6=_0x58f424['getRowIndexes'](_0x564d8a),_0x3630df=_0x58f424['getColumnIndexes'](_0x564d8a),_0x150f09={'startRow':_0x3d60e6['first'],'endRow':_0x3d60e6['last'],'startColumn':_0x3630df['first'],'endColumn':_0x3630df['last']};return 0x1==_0x564d8a['length']&&(_0x150f09['endRow']+=_0x58f424['getRows'](_0x4ea3b2)-0x1,_0x150f09['endColumn']+=_0x58f424['getColumns'](_0x4ea3b2)-0x1),Oe(_0x39326f,_0x150f09,_0x58f424);}(_0x3a773f,_0x566057,_0x201b1d['model'],_0x5ce950,_0xa2cbd4)&&(_0x259e9e['stop'](),_0xcc13e1={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x201b1d['model']['change'](()=>{_0x201b1d['model']['insertContent'](_0x39ff85[0x0],_0x39ff85[0x1],_0x39ff85[0x2],{'forceDefaultExecution':!0x0});const _0x5e790a=_0x38d584(),{rowInsertionRanges:_0xfb0fe7,columnInsertionRanges:_0x4dacb7,insertionRanges:_0x5f3de0,deletionRanges:_0x57bcc4,cells:_0x684244}=_0xcc13e1;_0xfb0fe7['length']&&_0x33a742['markMultiRangeInsertion'](_0xfb0fe7,'tablePasteRow',{'tablePasteChainId':_0x5e790a}),_0x4dacb7['length']&&_0x33a742['markMultiRangeInsertion'](_0x4dacb7,'tablePasteColumn',{'tablePasteChainId':_0x5e790a}),_0x5f3de0['length']&&(_0x33a742['markMultiRangeInsertion'](_0x5f3de0,'tablePaste',{'tablePasteChainId':_0x5e790a,'skipNestingCheck':!0x0}),_0x5f3de0['forEach'](_0x1a36c2=>_0x1a36c2['detach']?.())),_0x57bcc4['length']&&(_0x33a742['markMultiRangeDeletion'](_0x57bcc4,'tablePaste',{'tablePasteChainId':_0x5e790a,'skipNestingCheck':!0x0}),_0x57bcc4['forEach'](_0xfbd479=>_0xfbd479['detach']?.()));const _0x169d01=_0x33a742['markMultiRangeBlockFormat'](_0x684244['map'](({element:_0x470aca})=>_0x470aca),{'formatGroupId':_0x38d584()},[],'tablePasteCell',{'tablePasteChainId':_0x5e790a});if(_0x169d01){const _0x798180=_0x169d01['getMarkers'](),_0x2492ab=[];for(const {element:_0x49d4ef,attributes:_0x4eaf66}of _0x684244){if(!_0x4eaf66)continue;const _0x1a8f4f=_0x201b1d['model']['createRangeOn'](_0x49d4ef),_0x27a209=_0x798180['find'](_0x3b3e41=>_0x3b3e41['getRange']()['isEqual'](_0x1a8f4f));_0x27a209&&_0x2492ab['push']([_0x27a209['name'],_0x4eaf66]);}_0x2492ab['length']&&_0x169d01['setAttribute']('markerAttributes',Object['fromEntries'](_0x2492ab));}_0xcc13e1=null;}));},{'priority':_0xb2a889['high']+0xa}),_0x45d0bf['on']('contentInsertion',()=>{_0x23bd42=!0x1;},{'priority':'lowest'}),_0x201b1d['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x393dd2,_0x31992f)=>{const [_0x218c8f,_0x4cc477,,_0x374c60]=_0x31992f;if(!_0xcc13e1)return;_0x393dd2['stop']();const _0x4c7c6f=_0x218c8f['cell'],_0x2ee933=_0x4cc477,_0x17432c=Be(_0x4c7c6f),_0xc3fa32=Be(_0x2ee933);_0x393dd2['return']=_0x4c7c6f;let _0x91a04e=null,_0x2a82cb=null;if(_0xc3fa32||_0x17432c){if(_0x17432c&&!_0xc3fa32){_0x374c60['remove'](_0x4c7c6f['getChild'](0x0));for(const _0xea86bd of Array['from'](_0x2ee933['getChildren']()))_0x374c60['insert'](_0xea86bd,_0x4c7c6f,'end');const _0x2e3f32=_0xcc13e1['rowInsertionIndexes']['includes'](_0x218c8f['row']),_0x2e1c93=_0xcc13e1['columnInsertionIndexes']['includes'](_0x218c8f['column']);_0x2e3f32||_0x2e1c93||(_0x91a04e=_0x4ca1d8['fromRange'](_0x374c60['createRangeIn'](_0x4c7c6f)));}else _0xc3fa32&&!_0x17432c&&(_0x2a82cb=_0x374c60['createRangeIn'](_0x4c7c6f));}else{const _0x594d69=_0x374c60['createElement']('tableCellSuggestion'),_0xbe5200=_0x374c60['createElement']('tableCellSuggestion');_0x374c60['wrap'](_0x374c60['createRangeIn'](_0x4c7c6f),_0xbe5200),_0x374c60['insert'](_0x594d69,_0x4c7c6f,0x0);for(const _0x61b022 of Array['from'](_0x2ee933['getChildren']()))_0x374c60['insert'](_0x61b022,_0x594d69,'end');_0x91a04e=_0x4ca1d8['fromRange'](_0x374c60['createRangeOn'](_0x594d69)),_0x2a82cb=_0x4ca1d8['fromRange'](_0x374c60['createRangeOn'](_0xbe5200));}const _0x223249=Array['from'](_0x2ee933['getAttributes']())['filter'](([_0x41359d])=>Re['includes'](_0x41359d));_0xcc13e1['cells']['push']({'element':_0x4c7c6f,'attributes':_0x223249['length']?Object['fromEntries'](_0x223249):null}),_0x91a04e&&_0xcc13e1['insertionRanges']['push'](_0x91a04e),_0x2a82cb&&_0xcc13e1['deletionRanges']['push'](_0x2a82cb);},{'priority':'high'}),_0x5ce950['on']('insertColumns',(_0x14834e,_0x36e57d)=>{const [_0x13d0d6,_0x13ce90={}]=_0x36e57d;if(!_0xcc13e1)return;const _0x5a5608=_0x13ce90['at']||0x0,_0x210db9=_0x13ce90['columns']||0x1;_0xcc13e1['columnInsertionIndexes']=new Array(_0x210db9)['fill'](_0x5a5608)['map']((_0x1d448a,_0x4b3235)=>_0x1d448a+_0x4b3235);for(const {cell:_0x1a7891}of _0x5ce950['createTableWalker'](_0x13d0d6,{'startColumn':_0x5a5608,'endColumn':_0x5a5608+_0x210db9-0x1}))_0xcc13e1['columnInsertionRanges']['push'](_0x201b1d['model']['createRangeOn'](_0x1a7891));},{'priority':'low'}),_0x5ce950['on']('insertRows',(_0x35e873,_0x1d7c7d)=>{const [_0x18add8,_0x58954d={}]=_0x1d7c7d;if(!_0xcc13e1)return;const _0x16cad2=_0x58954d['at']||0x0,_0x4e42f3=_0x58954d['rows']||0x1;_0xcc13e1['rowInsertionIndexes']=new Array(_0x4e42f3)['fill'](_0x16cad2)['map']((_0x337906,_0x1ddf79)=>_0x337906+_0x1ddf79);for(const {cell:_0x290f6c}of _0x5ce950['createTableWalker'](_0x18add8,{'startRow':_0x16cad2,'endRow':_0x16cad2+_0x4e42f3-0x1}))_0xcc13e1['rowInsertionRanges']['push'](_0x201b1d['model']['createRangeOn'](_0x290f6c));},{'priority':'low'}),_0x33a742['descriptionFactory']['registerDescriptionCallback'](_0x10a6a8=>{if(_0x10a6a8['subType']&&_0x10a6a8['subType']['startsWith']('tablePaste'))return _0x10a6a8['previous']?{}:{'type':'insertion','content':o(_0x201b1d['locale'],'*Replace\x20table\x20cells*')};});const _0x5d2540=()=>!0x1;for(const _0x55ea43 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x33a742['_suggestionFactory']['registerCustomCallback']('insertion',_0x55ea43,'join',_0x5d2540),_0x33a742['_suggestionFactory']['registerCustomCallback']('deletion',_0x55ea43,'join',_0x5d2540),_0x33a742['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x55ea43,'join',_0x5d2540);_0x33a742['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x5d2540),_0x33a742['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x45344f,_0x4c5e9a,_0x54d0f9)=>{const _0x5a2faf=_0x45344f['map'](_0x22b5eb=>_0x22b5eb['getContainedElement']())['filter'](_0x3f22e0=>_0x3f22e0),_0x4af197=new Map(_0x5a2faf['map'](_0x151795=>[_0x151795,null]));if(_0xcc13e1){for(const {element:_0x1a43df,attributes:_0x41c486}of _0xcc13e1['cells'])_0x41c486&&_0x4af197['set'](_0x1a43df,_0x41c486);}else{if(_0x54d0f9&&_0x54d0f9['markerAttributes'])for(const [_0x4e0dc3,_0x18f14d]of Object['entries'](_0x54d0f9['markerAttributes'])){const _0x1a6053=_0x201b1d['model']['markers']['get'](_0x4e0dc3),_0x49ba0c=_0x1a6053?_0x1a6053['getRange']()['getContainedElement']():null;_0x49ba0c&&_0x4af197['set'](_0x49ba0c,_0x18f14d);}}_0x201b1d['model']['change'](_0x25e35b=>{for(const [_0x3559bd,_0x4af273]of _0x4af197)_0x25e35b['setAttributes']({...Ae,..._0x4af273},_0x3559bd);});});const _0x49ddd4=(_0x26a7f6,_0x24aac7)=>{_0x33a742['_suggestionFactory']['registerCustomCallback'](_0x26a7f6,'tablePaste',_0x24aac7,(_0x507f87,_0x556be4,_0x33615b)=>{_0x201b1d['model']['change'](_0x4c64c5=>{const _0x16eab5=[];for(const _0x45b7ed of _0x507f87){const _0x380111=_0x45b7ed['start']['nodeAfter'];_0x380111['is']('element','tableCellSuggestion')&&_0x16eab5['push'](_0x380111);}_0x33a742['_suggestionFactory']['getSuggestionCallback'](_0x26a7f6,null,_0x24aac7)(_0x507f87,_0x556be4,_0x33615b);for(const _0x559d66 of _0x16eab5)'$graveyard'!=_0x559d66['root']['rootName']&&_0x4c64c5['unwrap'](_0x559d66);});});};_0x49ddd4('insertion','accept'),_0x49ddd4('insertion','discard'),_0x49ddd4('deletion','accept'),_0x49ddd4('deletion','discard'),_0x33a742['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x2daa20=>{const _0x1e90db=_0x2daa20['map'](_0x5a1cc4=>_0x5a1cc4['getContainedElement']()),_0x30853e=_0x1e90db[0x0]['findAncestor']('table'),{minRow:_0x18ad38,maxRow:_0x30347f}=_0x4fec0b['_getCoordsForCells'](_0x1e90db);_0x5ce950['removeRows'](_0x30853e,{'at':_0x18ad38,'rows':_0x30347f-_0x18ad38+0x1});}),_0x33a742['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x533b79=>{const _0x2c6d4c=_0x533b79['map'](_0x21b9bd=>_0x21b9bd['getContainedElement']()),_0x4c20a2=_0x2c6d4c[0x0]['findAncestor']('table'),{minColumn:_0x44914e,maxColumn:_0x3477a8}=_0x4fec0b['_getCoordsForCells'](_0x2c6d4c);_0x5ce950['removeColumns'](_0x4c20a2,{'at':_0x44914e,'columns':_0x3477a8-_0x44914e+0x1});});const _0x1d76c0=(_0x44daec,_0x2bad77)=>{if(!_0x2bad77['subType']||!_0x2bad77['subType']['startsWith']('tablePaste'))return;const _0x1245d0=_0x2bad77['attributes']['tablePasteChainId'],_0x164690=_0x33a742['getSuggestions']()['filter'](_0x369a5b=>_0x369a5b['isInContent']&&_0x369a5b['attributes']&&_0x369a5b['attributes']['tablePasteChainId']==_0x1245d0);_0x164690['length']&&_0x2bad77['getAllAdjacentSuggestions']()['length']!=_0x164690['length']&&_0x164690['reduce']((_0x5818c7,_0x310ebc)=>(_0x5818c7['next']=_0x310ebc,_0x310ebc['previous']=_0x5818c7,_0x310ebc));};function _0x3ecd74(_0x1dafb4,_0x2cc9f1=!0x0){const {id:_0x50b488,authorId:_0x3e9d9a}=_0x33a742['_splitMarkerName'](_0x1dafb4['markerName']),_0x357b07=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x4f2442=_0x33a742['activeMarkers']['includes'](_0x1dafb4['markerName']);return _0x4f2442&&_0x357b07['push']('ck-suggestion-marker--active'),{'classes':_0x357b07,'attributes':{'data-suggestion':_0x50b488,'data-author-id':_0x3e9d9a},'priority':_0x4f2442&&_0x2cc9f1?0xbc2:0xbb8};}_0x33a742['on']('suggestionLoaded',_0x1d76c0,{'priority':'high'}),_0x33a742['on']('suggestionUnloaded',_0x1d76c0,{'priority':'high'}),_0x201b1d['model']['document']['registerPostFixer'](()=>{let _0x44c35d=!0x1;const _0xd3a918=Array['from'](_0x201b1d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3431b2,data:_0x34f98f}of _0xd3a918){const {group:_0x4a9657,type:_0x29e559,id:_0x318dfb}=_0x33a742['_splitMarkerName'](_0x3431b2);if('suggestion'!=_0x4a9657||'deletion'!=_0x29e559||_0x34f98f['oldRange'])continue;if(!_0x33a742['hasSuggestion'](_0x318dfb))continue;const _0x1869b7=_0x33a742['getSuggestion'](_0x318dfb)['getRanges'](),_0xa3a204=_0x201b1d['plugins']['get']('Users')['me'];for(const _0x44c28e of _0x33a742['getSuggestions']()){if(!_0x44c28e['isInContent']||_0x44c28e['author']!=_0xa3a204)continue;if('formatBlock'!=_0x44c28e['type']||'tablePasteCell'!=_0x44c28e['subType'])continue;if(_0x44c28e['getRanges']()['every'](_0x485142=>_0x1869b7['some'](_0x5cab0b=>_0x5cab0b['containsRange'](_0x485142,!0x0)))){for(const _0x2ac949 of _0x44c28e['getAllAdjacentSuggestions']())_0x2ac949['isInContent']&&(_0x2ac949['discard'](),_0x44c35d=!0x0);}}}return _0x44c35d;}),_0x201b1d['model']['document']['registerPostFixer'](_0x1e3c56=>{const _0x400b10=_0x201b1d['commands']['get']('redo');if(!_0x400b10||!_0x400b10['_createdBatches']['has'](_0x1e3c56['batch']))return!0x1;let _0x4bc796=!0x1;const _0x4825df=_0x201b1d['plugins']['get']('Users')['me'],_0x3ba94d=_0x201b1d['model']['document']['differ']['getChanges'](),_0x287819=Array['from'](_0x201b1d['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x5ae924,data:_0x1e1062})=>{const {group:_0x4f4b9d,subType:_0x496a15,authorId:_0x52ff37}=_0x33a742['_splitMarkerName'](_0x5ae924);return'suggestion'==_0x4f4b9d&&'tablePaste'==_0x496a15&&_0x52ff37==_0x4825df['id']&&!_0x1e1062['oldRange'];});for(const _0x18a8a5 of _0x3ba94d){if('insert'!=_0x18a8a5['type']||'tableCellSuggestion'!=_0x18a8a5['name']||0x1!=_0x18a8a5['length'])continue;const _0x3ba80a=_0x1e3c56['createRange'](_0x18a8a5['position'],_0x18a8a5['position']['getShiftedBy'](0x1));if(!_0x287819['find'](({data:_0x1c54e7})=>_0x1c54e7['newRange']['isEqual'](_0x3ba80a))){for(const {name:_0x14f2a1,data:_0x3b115b}of _0x287819)if(_0x3ba80a['containsRange'](_0x3b115b['newRange'])){_0x1e3c56['updateMarker'](_0x14f2a1,{'range':_0x3ba80a}),_0x4bc796=!0x0;break;}}}return _0x4bc796;}),_0x201b1d['model']['document']['registerPostFixer'](_0x472294=>{let _0x51c173=!0x1;const _0x57e74a=_0x201b1d['plugins']['get']('Users')['me'],_0x432205=_0x33a742['getSuggestions']()['filter'](_0x443583=>_0x443583['isInContent']&&_0x443583['author']==_0x57e74a),_0xe6d891=new Set(),_0x12489f=new Set();for(const _0x1a4035 of _0x432205)if('tablePaste'==_0x1a4035['subType'])for(const _0x70765a of _0x1a4035['getMarkers']()){const _0x1e5d68=_0x70765a['getRange']()['getContainedElement']();if(_0x1e5d68){if(_0x1e5d68['is']('element','tableCellSuggestion')&&Be(_0x1e5d68)){_0x1a4035['removeMarker'](_0x70765a['name']),_0xe6d891['add'](_0x1e5d68),_0x51c173=!0x0;const _0x2e6234=_0x1e5d68['nextSibling'],_0x688aa3=_0x1e5d68['previousSibling'],_0x575059=_0x2e6234&&_0x2e6234['is']('element','tableCellSuggestion'),_0x1b2217=_0x688aa3&&_0x688aa3['is']('element','tableCellSuggestion');_0x575059&&!_0xe6d891['has'](_0x2e6234)&&_0x12489f['add'](_0x2e6234),_0x1b2217&&!_0xe6d891['has'](_0x688aa3)&&_0x12489f['add'](_0x688aa3);}else _0x1e5d68['is']('element','paragraph')&&_0x1e5d68['isEmpty']&&(_0x1a4035['removeMarker'](_0x70765a['name']),_0x51c173=!0x0);}}else{if('tablePasteCell'==_0x1a4035['subType']){if(!_0x1a4035['attributes']||!_0x1a4035['attributes']['tablePasteChainId'])continue;const _0x1d0a02=_0x1a4035['attributes']['markerAttributes'];if(_0x1d0a02&&Object['keys'](_0x1d0a02)['length'])continue;const _0x591eb4=_0x1a4035['attributes']['tablePasteChainId'];let _0x1de875=!0x0,_0x3bcdf3=!0x0;for(const _0x14a539 of _0x432205)if(_0x14a539['subType']&&_0x14a539['subType']['startsWith']('tablePaste')){if(!_0x14a539['attributes']['tablePasteChainId']){_0x3bcdf3=!0x1;break;}if(_0x14a539['id']!=_0x1a4035['id']&&_0x14a539['attributes']['tablePasteChainId']==_0x591eb4){_0x1de875=!0x1;break;}}_0x3bcdf3&&_0x1de875&&(_0x1a4035['removeMarkers'](),_0x51c173=!0x0);}}for(const _0x150763 of _0xe6d891)_0x472294['remove'](_0x150763);for(const _0x10c159 of _0x12489f)_0x472294['unwrap'](_0x10c159);return _0x51c173;}),_0x201b1d['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x24fa23=>_0x3ecd74(_0x24fa23),'converterPriority':'high'}),_0x201b1d['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x379960,_0x38b53a)=>_0x38b53a['options']['showSuggestionHighlights']?_0x3ecd74(_0x379960,!0x1):null,'converterPriority':'high'});const _0x52d331=_0x201b1d['editing']['view'];this['listenTo'](_0x52d331['document'],'clipboardOutput',(_0x2d1131,_0x915140)=>{const _0x213b25=[];for(const _0x183edf of _0x52d331['createRangeIn'](_0x915140['content'])['getItems']())_0x183edf['is']('element','suggestion-td')&&_0x213b25['push'](_0x183edf);_0x52d331['change'](_0x587d7e=>{for(const _0x10b85d of _0x213b25)_0x587d7e['move'](_0x587d7e['createRangeIn'](_0x10b85d),_0x587d7e['createPositionBefore'](_0x10b85d)),_0x587d7e['remove'](_0x10b85d);});});}}function Be(_0x9a5abd){if(_0x9a5abd['isEmpty'])return!0x0;const _0x5a117d=_0x9a5abd['getChild'](0x0);return _0x5a117d['is']('element','paragraph')&&_0x5a117d['isEmpty'];}function Oe(_0x8b79ea,_0x3e3f0a={},_0x32fd42){for(const {isAnchor:_0x460818,cellHeight:_0x4d82c3,cellWidth:_0x49cc1f}of _0x32fd42['createTableWalker'](_0x8b79ea,{'includeAllSlots':!0x0,..._0x3e3f0a}))if(!_0x460818||0x1!=_0x4d82c3||0x1!=_0x49cc1f)return!0x1;return!0x0;}class Ot extends _0x157fa6{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x32d985=this['editor']['plugins']['get']('TrackChangesEditing');_0x32d985['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x32d985['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x32d985['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x32d985['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x32d985['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x32d985['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x2654ba,_0x141dc9){const _0x461c82=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3ef649=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x112fc9=_0x141dc9['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x1ce166=_0x3ef649['getColumnGroupElement'](_0x112fc9);let _0x1ee243=_0x1ce166?_0x3ef649['getTableColumnsWidths'](_0x1ce166):null,_0x46788e=_0x112fc9['getAttribute']('tableWidth')||null;const _0x427480=_0x141dc9['tableWidth']||_0x46788e,_0x32c754=_0x141dc9['columnWidths']||_0x1ee243,_0x434bef=this['editor']['plugins']['get']('Users')['me'];for(const _0x178b59 of _0x461c82['getSuggestions']()){const _0x17098d=_0x178b59['getContainedElement']();if('resizeTable'===_0x178b59['subType']&&_0x17098d===_0x112fc9){_0x178b59['author']!==_0x434bef&&_0x178b59['discard']();const _0x56282c=_0x178b59['data']['commandParams'];_0x46788e=_0x56282c[0x0]['tableWidth'],_0x1ee243=_0x56282c[0x0]['columnWidths'];break;}}_0x2654ba({'table':_0x112fc9,'tableWidth':_0x427480,'columnWidths':_0x32c754}),_0x461c82['markBlockFormat'](_0x112fc9,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x46788e,'columnWidths':_0x1ee243}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x3772fd){if('formatBlock'!=_0x3772fd['type']&&'formatInline'!=_0x3772fd['type'])return;const {data:_0x51a619}=_0x3772fd;if(_0x51a619&&'resizeTable'===_0x51a619['formatGroupId']){const _0x1503c0='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x1503c0)};}}}class xt extends _0x157fa6{['afterInit'](){const _0x38644b=this['editor'];_0x38644b['plugins']['has']('Template')&&_0x38644b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x157fa6{['afterInit'](){const _0xe80dea=this['editor'];if(!_0xe80dea['commands']['get']('insertTableOfContents'))return;_0xe80dea['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x43c477=_0xe80dea['plugins']['get']('TrackChangesEditing'),_0x15333a=_0xe80dea['locale'];_0x43c477['descriptionFactory']['registerElementLabel']('tableOfContents',_0x22767d=>o(_0x15333a,'ELEMENT_TABLE_OF_CONTENTS',_0x22767d));}}class Rt extends _0x157fa6{['afterInit'](){const _0x2efe9d=this['editor'];if(!_0x2efe9d['plugins']['has']('Title'))return;const _0x43c976=_0x2efe9d['plugins']['get']('TrackChangesEditing');_0x43c976['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x2efe9d['locale'],'ELEMENT_TITLE')),_0x2efe9d['model']['document']['registerPostFixer'](_0x32f03c=>{let _0x3e170b=!0x1;const _0x42265e=Array['from'](_0x2efe9d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x582990,data:_0x1ecd16}of _0x42265e){const {group:_0xf531e2}=_0x43c976['_splitMarkerName'](_0x582990);if('suggestion'!==_0xf531e2||!_0x1ecd16['newRange'])continue;const _0x4a41e9=_0x1ecd16['newRange'],_0x1a81bb=_0x4a41e9['end']['nodeBefore'];if(!_0x1a81bb||!_0x1a81bb['is']('element','title-content'))continue;if(!_0x4a41e9['start']['isTouching'](_0x4a41e9['end']))continue;const _0x2f8950=_0x2efe9d['model']['schema']['getNearestSelectionRange'](_0x4a41e9['end'],'forward');if(_0x2f8950&&_0x2f8950['isCollapsed']){const _0x219b2f=_0x32f03c['createRange'](_0x4a41e9['start'],_0x2f8950['start']);_0x219b2f['isEqual'](_0x4a41e9)||(_0x32f03c['updateMarker'](_0x582990,{'range':_0x219b2f}),_0x3e170b=!0x0);}_0x3e170b||(_0x32f03c['removeMarker'](_0x582990),_0x3e170b=!0x0);}return _0x3e170b;});}}class Tt extends _0x157fa6{['afterInit'](){const _0x285752=this['editor'],_0x551539=_0x285752['plugins']['get']('TrackChangesEditing');_0x285752['plugins']['has']('Uploadcare')&&(_0x551539['enableCommand']('uploadcare'),_0x285752['plugins']['has']('UploadcareImageEdit')&&(_0x551539['enableCommand']('uploadcareImageEdit'),_0x551539['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x551539['descriptionFactory']['registerDescriptionCallback'](_0x181d26=>{if('attribute'!=_0x181d26['type'])return;const {data:_0x585311}=_0x181d26;return _0x585311&&'uploadcareImageId'==_0x585311['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x157fa6{['afterInit'](){const _0x49e7cf=this['editor'],_0x358cf6=_0x49e7cf['plugins']['get']('TrackChangesEditing');_0x49e7cf['plugins']['has']('UndoEditing')&&(_0x358cf6['enableCommand']('undo'),_0x358cf6['enableCommand']('redo'));}}class Ut extends _0x157fa6{static get['requires'](){return[Nt];}['afterInit'](){const _0xc6bc4d=this['editor'];if(!_0xc6bc4d['plugins']['has']('TableCaptionEditing'))return;_0xc6bc4d['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x157fa6{['tableProperties'];['tableCellProperties'];constructor(_0x9aa5f7){super(_0x9aa5f7),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'],_0x9aa5f7['config']['get']('experimentalFlags.tableCellTypeSupport')&&this['tableCellProperties']['push']('tableCellType');}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x1d9ece=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x1fb62a of this['tableProperties'])_0x1d9ece['enableCommand'](_0x1fb62a,(_0x13e1a3,_0x41912e)=>{const _0x4ca968=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x1fb62a,[_0x4ca968],this['tableProperties'],'tableProperties',_0x13e1a3,_0x41912e);});_0x1d9ece['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x1d9ece['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1d9ece['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0xf6f81c,_0x1664de)=>this['handleDiscardAction'](this['tableProperties'],_0xf6f81c,_0x1664de)),_0x1d9ece['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x340fdf of this['tableCellProperties'])this['editor']['commands']['get'](_0x340fdf)&&_0x1d9ece['enableCommand'](_0x340fdf,(_0x5f416b,_0x4c5833)=>{const _0x1ba9fe=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x340fdf,_0x1ba9fe,this['tableCellProperties'],'tableCellProperties',_0x5f416b,_0x4c5833);});_0x1d9ece['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x1d9ece['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1d9ece['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x38814c,_0x5ebeef)=>this['handleDiscardAction'](this['tableCellProperties'],_0x38814c,_0x5ebeef)),_0x1d9ece['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x1d9ece['descriptionFactory']['registerAttributeLabel']('tableCellType',o(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x1d9ece['descriptionFactory']['registerDescriptionCallback'](_0x520f7d=>this['handleSuggestionDescription'](_0x520f7d)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x1e486d,_0x342716,_0x2e5e90,_0xded59b,_0x43e32a,_0x448444){const _0x351433=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x448444['batch'],()=>{for(const _0x30267b of _0x342716){if(this['_getSuggestion'](_0x30267b,_0xded59b))_0x43e32a(_0x448444);else{const _0x2b5991={};for(const _0x49400c of _0x2e5e90){const _0x322142=_0x30267b['getAttribute'](_0x49400c);void 0x0!==_0x322142&&(_0x2b5991[_0x49400c]=_0x322142);}_0x43e32a(_0x448444),_0x351433['markBlockFormat'](_0x30267b,{'commandParams':[_0x2b5991]},[],_0xded59b);}}});}['handleDiscardAction'](_0x15130e,_0xa07ea4,_0x192652){const _0x584391=_0xa07ea4[0x0]['start']['nodeAfter'],_0x306f42=_0x192652['commandParams'][0x0];this['editor']['model']['change'](_0x3b3e7f=>{for(const _0x1c2dd5 of _0x15130e)void 0x0!==_0x306f42[_0x1c2dd5]?_0x3b3e7f['setAttribute'](_0x1c2dd5,_0x306f42[_0x1c2dd5],_0x584391):_0x3b3e7f['removeAttribute'](_0x1c2dd5,_0x584391);});}['handleSuggestionDescription'](_0x47e439){if(_0x47e439['data'])switch(_0x47e439['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x12457a,_0x3d01d6){const _0x3e777f=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x4ab27a of _0x3e777f['getSuggestions']({'skipNotAttached':!0x0})){const _0x56cf17=_0x4ab27a['getContainedElement']();if(_0x4ab27a['subType']===_0x3d01d6&&_0x56cf17===_0x12457a)return _0x4ab27a;}return null;}['_registerTablePropertiesAttributes'](){const _0x4a3bcd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3b799d=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x349c69 of _0x3b799d){const _0x34d0f1=_0x349c69['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x4a3bcd['descriptionFactory']['registerAttributeLabel'](_0x349c69,o(this['editor']['locale'],'FORMAT_'+_0x34d0f1));}}}class Ft extends _0x157fa6{['afterInit'](){const _0x46cea2=this['editor'];if(!_0x46cea2['plugins']['has']('LineHeight'))return;const _0x47c2a7=_0x46cea2['plugins']['get']('TrackChangesEditing'),_0xb05ec9=_0x46cea2['locale'];_0x47c2a7['enableDefaultAttributesIntegration']('lineHeight'),_0x47c2a7['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0xb05ec9,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x157fa6{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',Jt,_0x43f701,_0x3c4477,_0x216fdf,R,T,E,U,V,F,G,J,L,q,z,K,Q,X,Y,Z,tt,nt,it,et,st,ot,rt,ct,at,ut,ft,ht,gt,mt,kt,lt,W,Ft,H,dt,pt,wt,bt,yt,jt,St,It,At,_t,Ct,Nt,$t,vt,Dt,Ut,Bt,Ot,Mt,Vt,xt,Rt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3f009a){super(_0x3f009a),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0xfbf2ab,_0x454a6b,_0x56224a,_0x1a770a)=>{this['_model']['change'](()=>{for(const _0x1c32c6 of[..._0x1a770a,..._0x56224a])this['_model']['markers']['has'](_0x1c32c6)&&_0x3f009a['editing']['reconvertMarker'](_0x1c32c6);});}),this['descriptionFactory']=new M(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new qt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x3f009a['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x3f009a['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x3f009a['config']['get']('trackChanges.trackFormatChanges'),_0x3f009a['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x3f009a['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new $(_0x3f009a,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x154900=this['editor'];_0x154900['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x381f4d,{writer:_0x2b0856})=>{let _0x516917='suggestion:'+_0x381f4d['getAttribute']('suggestion-type')+':'+_0x381f4d['getAttribute']('id');return _0x381f4d['getAttribute']('marker-count')&&(_0x516917+=':'+_0x381f4d['getAttribute']('marker-count')),_0x2b0856['createElement']('$marker',{'data-name':_0x516917});}}),_0x154900['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x154900['model']['document']['registerPostFixer'](_0x11679c=>{let _0x524227=!0x1;const _0xbc6508=Array['from'](_0x154900['model']['document']['differ']['getChangedMarkers']()),_0x33a266=new Set();for(const {name:_0x3feb0a,data:_0x55ae34}of _0xbc6508){const {group:_0x3a766e,type:_0x3813ea,subType:_0x17b717,id:_0x5baa77}=this['_splitMarkerName'](_0x3feb0a);if('suggestion'!==_0x3a766e)continue;const _0x8f83b=_0x17b717?'suggestion:'+_0x3813ea+':'+_0x17b717+':'+_0x5baa77:'suggestion:'+_0x3813ea+':'+_0x5baa77,_0x52ef00=_0x154900['model']['markers']['getMarkersGroup'](_0x8f83b),_0x386b79=_0x154900['model']['markers']['get'](_0x3feb0a),_0x571efc=this['_suggestions']['get'](_0x5baa77);if(null!=_0x55ae34['newRange']){'formatInline'==_0x3813ea&&(_0x524227=_0x524227||Wt(_0x55ae34['newRange'],_0x3feb0a,_0x11679c,_0x154900['model']['schema']));const _0x43899e='attribute'==_0x3813ea&&this['_isBlockAttribute'](_0x17b717['split']('|')[0x0]),_0x218a3e='attribute'==_0x3813ea&&this['_isInlineAttribute'](_0x17b717['split']('|')[0x0]);if(_0x55ae34['newRange']['isCollapsed']||'$graveyard'==_0x55ae34['newRange']['root']['rootName']||'formatBlock'==_0x3813ea&&!Qt(_0x55ae34['newRange'])||_0x43899e&&!Qt(_0x55ae34['newRange'])||_0x218a3e&&Xt(_0x55ae34['newRange'])||'deletion'==_0x3813ea&&Xt(_0x55ae34['newRange'])||_0x386b79&&Yt(_0x386b79,_0x52ef00))_0x11679c['removeMarker'](_0x3feb0a),_0x524227=!0x0;else{if(!_0x571efc||!_0x571efc['isInContent'])continue;if(_0x55ae34['newRange']&&_0x55ae34['oldRange']&&_0x55ae34['newRange']['isEqual'](_0x55ae34['oldRange']))continue;_0x33a266['add'](_0x571efc);}}}return _0x33a266['size']>0x0&&(_0x524227=!!this['_joinWithAdjacentSuggestions'](_0x33a266)||_0x524227),_0x524227;}),_0x154900['model']['document']['registerPostFixer'](_0x45eda9=>{let _0x5949c4=!0x1;for(const _0x2d504e of _0x154900['model']['document']['differ']['getChanges']())if('insert'==_0x2d504e['type'])for(const _0x57695e of this['_suggestions']['values']()){if(_0x57695e['isMultiRange']||!_0x57695e['isInContent'])continue;const _0x64ad28='formatBlock'==_0x57695e['type'],_0x798e47=this['_getAttributeKey'](_0x57695e),_0x19d5b9=_0x798e47&&this['_isBlockAttribute'](_0x798e47);if(!_0x64ad28&&!_0x19d5b9)continue;const _0x56f3e5=_0x57695e['getFirstRange']();if(_0x56f3e5['start']['parent']!=_0x56f3e5['end']['parent']&&!_0x56f3e5['end']['isAtEnd']){const _0x5c4254=_0x154900['model']['createPositionAt'](_0x56f3e5['start']['nodeAfter'],'end'),_0x242393=_0x154900['model']['createRange'](_0x56f3e5['start'],_0x5c4254);_0x45eda9['updateMarker'](_0x57695e['getFirstMarker'](),{'range':_0x242393}),_0x5949c4=!0x0;}}return _0x5949c4;}),_0x154900['model']['document']['registerPostFixer'](_0x5b5a18=>this['_processAttributeChanges'](_0x5b5a18)),_0x154900['model']['document']['registerPostFixer'](_0x4c1aab=>!_0x4c1aab['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x4c1aab)),_0x154900['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x154900['model']['document']['on']('change:data',(_0x5e332d,_0x19661c)=>{if(!_0x19661c['isLocal']||_0x19661c['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x143bef=_0x154900['model']['document']['differ']['getChanges']();if(0x0==_0x143bef['length'])return;const _0x1f79ae=[],_0x273436=_0x143bef['filter'](_0xfb00=>'attribute'==_0xfb00['type']),_0x1375c0=_0x143bef['filter'](_0x51d9b2=>'insert'==_0x51d9b2['type']&&'$text'!=_0x51d9b2['name']);for(const _0x11dc86 of _0x273436)this['_isRegisteredAttribute'](_0x11dc86['attributeKey'])&&_0x1f79ae['push']({'key':_0x11dc86['attributeKey'],'newValue':_0x11dc86['attributeNewValue'],'oldValue':_0x11dc86['attributeOldValue'],'range':Zt(_0x11dc86['range'],_0x154900['model'])});for(const _0x3412ca of _0x1375c0){if('rename'!=_0x3412ca['action']&&'refresh'!=_0x3412ca['action'])continue;const _0x57b5e9=tn(_0x3412ca['position']['nodeAfter'],_0x154900['model']),_0x3942fe=_0x3412ca['before'];'rename'==_0x3412ca['action']&&_0x1f79ae['push']({'key':m,'newValue':_0x3412ca['name'],'oldValue':_0x3942fe['name'],'range':_0x57b5e9});for(const [_0x24230f,_0x40c8ce]of _0x3942fe['attributes']){if(!this['_isRegisteredAttribute'](_0x24230f))continue;const _0x535b2e=_0x3412ca['attributes']['get'](_0x24230f);_0x40c8ce!==_0x535b2e&&_0x1f79ae['push']({'key':_0x24230f,'newValue':_0x535b2e,'oldValue':_0x40c8ce,'range':_0x57b5e9});}for(const [_0x2a7068,_0x2edcd1]of _0x3412ca['attributes'])this['_isRegisteredAttribute'](_0x2a7068)&&(_0x3942fe['attributes']['has'](_0x2a7068)||_0x1f79ae['push']({'key':_0x2a7068,'newValue':_0x2edcd1,'oldValue':null,'range':_0x57b5e9}));}0x0!=_0x1f79ae['length']&&_0x154900['model']['enqueueChange'](_0x19661c,_0xe59f35=>{const _0x5f400c=_0x38d584();for(const {range:_0x23b7b1,key:_0x57924e,oldValue:_0x95b501,newValue:_0x58a7b5}of _0x1f79ae)this['markAttributeChange'](_0x23b7b1,_0x57924e,_0x95b501,_0x58a7b5,{'groupId':_0x5f400c});this['_reduceExistingSuggestions'](_0xe59f35,_0x1f79ae);});},{'priority':'lowest'}),_0x154900['model']['markers']['on']('update:suggestion',(_0x5e4707,_0xc40bad,_0x2f160c)=>{if(null==_0x2f160c){const {id:_0x312613}=this['_splitMarkerName'](_0xc40bad['name']),_0x1a3606=this['_suggestions']['get'](_0x312613);_0x1a3606&&_0x1a3606['addMarkerName'](_0xc40bad['name']);}}),_0x154900['model']['document']['on']('change:data',()=>{const _0x677116=Array['from'](_0x154900['model']['document']['differ']['getChangedMarkers']())['filter'](_0x13c962=>'suggestion'===this['_splitMarkerName'](_0x13c962['name'])['group']);if(0x0===_0x677116['length'])return;_0x677116['sort']((_0x45d677,_0x40af96)=>{const _0x583e8c=_0x45d677['data']['oldRange'],_0x17dde2=_0x40af96['data']['oldRange'];return null===_0x583e8c&&null===_0x17dde2?0x0:null===_0x583e8c&&null!==_0x17dde2?-0x1:null!==_0x583e8c&&null===_0x17dde2?0x1:_0x583e8c['start']['isBefore'](_0x17dde2['start'])?-0x1:0x1;});const _0x1b9a0c=new Set(),_0x5a4736=new Set();for(const {name:_0x3d6869,data:_0x48271d}of _0x677116){const {id:_0x371b43}=this['_splitMarkerName'](_0x3d6869);if(null===_0x48271d['oldRange']){const _0x34197d=this['_handleNewSuggestionMarker'](_0x3d6869);_0x5a4736['add'](_0x34197d);}else{const _0x2de937=this['_suggestions']['get'](_0x371b43);null!==_0x48271d['newRange']||_0x2de937['isInContent']?(_0x1b9a0c['add'](_0x2de937['head']),_0x5a4736['add'](_0x2de937)):this['_removeSuggestion'](_0x2de937);}}_0x5a4736['size']>0x0&&this['_refreshSuggestionsChain'](_0x5a4736);for(const _0x493920 of _0x1b9a0c)this['fire']('suggestionChanged',_0x493920);}),_0x154900['model']['on']('applyOperation',(_0x99dac6,_0x586eb3)=>{const _0x25712f=_0x586eb3[0x0];if(!this['_suggestions']['size'])return;if(!_0x25712f['isDocumentOperation'])return;if(_0x25712f['batch']['isUndo']||!_0x25712f['batch']['isLocal'])return;let _0x136f55,_0x30d584;switch(_0x25712f['type']){case'insert':_0x136f55=_0x154900['model']['createPositionAt'](_0x25712f['position']),_0x30d584=_0x136f55['getShiftedBy'](_0x25712f['howMany']);break;case'split':_0x136f55=_0x154900['model']['createPositionAt'](_0x25712f['splitPosition']),_0x30d584=_0x154900['model']['createPositionAt'](_0x25712f['moveTargetPosition']);break;case'move':_0x136f55=_0x154900['model']['createPositionAt'](_0x25712f['targetPosition']),_0x30d584=_0x136f55['getShiftedBy'](_0x25712f['howMany']);break;default:return;}const _0xab2bb9=_0x154900['model']['createRange'](_0x136f55,_0x30d584);_0x154900['model']['change'](()=>{for(const {suggestion:_0x3c4605,meta:_0x24b3d7}of this['_findSuggestions'](_0xab2bb9)){if(_0x3c4605['isMultiRange'])continue;if('formatInline'==_0x3c4605['type'])continue;const _0x4d2be9=this['_getAttributeKey'](_0x3c4605);if(_0x4d2be9&&this['_isBlockAttribute'](_0x4d2be9)&&'split'!=_0x25712f['type'])continue;const _0x471177=_0x3c4605['data']&&_0x3c4605['data']['multipleBlocks'];('formatBlock'!=_0x3c4605['type']||'split'==_0x25712f['type']&&!_0x471177)&&(_0x24b3d7['containsRangeInObject']||'insertion'==_0x3c4605['type']&&_0x24b3d7['isOwn']||_0x3c4605['getFirstRange']()['containsRange'](_0xab2bb9)&&this['_breakSuggestionMarker'](_0x3c4605,_0x136f55,_0x30d584));}});},{'priority':'lowest'}),_0x154900['model']['on']('deleteContent',(_0x4bbed8,_0x4303bc)=>{const _0x171c48=_0x4303bc[0x0],_0x3b468d=_0x4303bc[0x1];if(_0x3b468d&&_0x3b468d['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x171c48['isCollapsed'])return;const _0x5b6b64=_0x154900['model']['schema'],{start:_0x5ef826,end:_0x549b16}=_0x171c48['getFirstRange'](),_0x5d319f=_0x5ef826['nodeAfter']&&_0x5b6b64['isLimit'](_0x5ef826['nodeAfter'])?null:_0x5b6b64['getNearestSelectionRange'](_0x5ef826,'forward'),_0x3abefb=_0x549b16['nodeBefore']&&_0x5b6b64['isLimit'](_0x549b16['nodeBefore'])?null:_0x5b6b64['getNearestSelectionRange'](_0x549b16,'backward'),_0x42d1a3=_0x154900['model']['createRange'](_0x5d319f?_0x5d319f['start']:_0x5ef826,_0x3abefb?_0x3abefb['end']:_0x549b16);_0x154900['model']['change'](_0x59815e=>{this['markDeletion'](_0x42d1a3);const _0x2171e2=_0x154900['model']['schema']['getNearestSelectionRange'](_0x42d1a3['start']);_0x171c48['is']('documentSelection')?_0x59815e['setSelection'](_0x2171e2):_0x171c48['setTo'](_0x2171e2);}),_0x4bbed8['stop']();},{'priority':_0xb2a889['normal']+0xa}),_0x154900['model']['on']('insertContent',(_0x47d482,_0x22788b)=>{const _0x5729f7=_0x22788b[_0x22788b['length']-0x1];_0x5729f7&&_0x5729f7['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x154900['model']['change'](()=>{let _0x32001d=_0x154900['model']['insertContent'](_0x22788b[0x0],_0x22788b[0x1],_0x22788b[0x2],{'forceDefaultExecution':!0x0});if(!_0x32001d)return;_0x47d482['return']=_0x32001d['clone']();const _0x37f4d9=_0x32001d['end']['nodeBefore'],_0x4b6402=_0x154900['model']['schema'];_0x37f4d9&&_0x4b6402['isBlock'](_0x37f4d9)&&!_0x4b6402['isObject'](_0x37f4d9)&&(_0x32001d=_0x154900['model']['createRange'](_0x32001d['start'],_0x154900['model']['createPositionAt'](_0x37f4d9,'end'))),this['markInsertion'](_0x32001d);}),_0x47d482['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x449aca=new v(_0x154900,this['_suggestions']);_0x154900['commands']['add']('acceptSuggestion',_0x449aca),this['enableCommand']('acceptSuggestion');const _0x1041a4=new D(_0x154900,this['_suggestions']);_0x154900['commands']['add']('discardSuggestion',_0x1041a4),this['enableCommand']('discardSuggestion'),_0x154900['commands']['add']('acceptAllSuggestions',new B(_0x154900,_0x449aca,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x154900['commands']['add']('discardAllSuggestions',new B(_0x154900,_0x1041a4,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x154900['commands']['add']('acceptSelectedSuggestions',new O(_0x154900,_0x449aca,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x154900['commands']['add']('discardSelectedSuggestions',new O(_0x154900,_0x1041a4,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x488a1c=_0x154900['plugins']['get']('CommentsRepository');this['listenTo'](_0x488a1c,'addComment',(_0x108c33,{threadId:_0x4bc716})=>{const _0x4a2232=this['_suggestions']['get'](_0x4bc716);_0x4a2232&&_0x4a2232['commentThread']&&0x1===_0x4a2232['commentThread']['length']&&this['_updateSuggestionData'](_0x4bc716,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x488a1c,'removeComment',(_0x12fd37,{threadId:_0x504019})=>{const _0x8014ce=this['_suggestions']['get'](_0x504019);_0x8014ce&&_0x8014ce['commentThread']&&!_0x8014ce['commentThread']['length']&&this['_updateSuggestionData'](_0x504019,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0xcbfce6){const _0x5bd525=_0x4a0d5a([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x522581=0x3d8d0df,_0xb548d5=0x3df501f^_0x522581,_0x273518=window[_0x4a0d5a([0x44,0x61,0x74,0x65])][_0x4a0d5a([0x6e,0x6f,0x77])](),_0x946f6c=_0xcbfce6[_0x4a0d5a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3f8449=new window[(_0x4a0d5a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2b276b=>{_0x946f6c[_0x4a0d5a([0x6f,0x6e,0x63,0x65])](_0x4a0d5a([0x72,0x65,0x61,0x64,0x79]),_0x2b276b);}),_0x8553c6={[_0x4a0d5a([0x6b,0x74,0x79])]:_0x4a0d5a([0x45,0x43]),[_0x4a0d5a([0x75,0x73,0x65])]:_0x4a0d5a([0x73,0x69,0x67]),[_0x4a0d5a([0x63,0x72,0x76])]:_0x4a0d5a([0x50,0x2d,0x32,0x35,0x36]),[_0x4a0d5a([0x78])]:_0x4a0d5a([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]),[_0x4a0d5a([0x79])]:_0x4a0d5a([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]),[_0x4a0d5a([0x61,0x6c,0x67])]:_0x4a0d5a([0x45,0x53,0x32,0x35,0x36])},_0x36675c=_0x946f6c[_0x4a0d5a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4a0d5a([0x67,0x65,0x74])](_0x4a0d5a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x38b8a0(){let _0x28c90b,_0x3ed2f7=null,_0x1fa389=null;try{if(_0x36675c==_0x4a0d5a([0x47,0x50,0x4c]))return _0x4a0d5a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x28c90b=_0x311f9a(),!_0x28c90b)return _0x4a0d5a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x28c90b[_0x4a0d5a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1fa389=_0x73272e(_0x28c90b[_0x4a0d5a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x28c90b[_0x4a0d5a([0x6a,0x74,0x69])])),await _0xbda499()?_0x30876a()?_0x31e923()?_0x4a0d5a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xb6d316()?(_0x28c90b[_0x4a0d5a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4a0d5a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3ed2f7=_0x458eaa(_0x4a0d5a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1e6fa9()):_0x4a0d5a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4a0d5a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4a0d5a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4a0d5a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x31e923(){const _0x2c5282=[_0x4a0d5a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4a0d5a([0x74,0x72,0x69,0x61,0x6c])][_0x4a0d5a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x28c90b[_0x4a0d5a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x273518/0x3e8:0xe10*_0xb548d5;return _0x28c90b[_0x4a0d5a([0x65,0x78,0x70])]<_0x2c5282;}function _0x30876a(){const _0x1e7d4f=_0x28c90b[_0x4a0d5a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1e7d4f)return!0x1;if(_0x1e7d4f[_0x4a0d5a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4a0d5a([0x2a])))return!0x0;if(_0x1e7d4f[_0x4a0d5a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4a0d5a([0x54,0x43])))return!0x0;if(_0x1e7d4f[_0x4a0d5a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4a0d5a([0x52,0x54,0x43]))){if(_0x550e4c())return!0x0;if(_0x2adc6f()||_0x582b48())return!0x0;}return!0x1;}function _0xb6d316(){const _0x39c93c=_0x28c90b[_0x4a0d5a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x39c93c||0x0==_0x39c93c[_0x4a0d5a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4ea160}=new URL(window[_0x4a0d5a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x39c93c[_0x4a0d5a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ea160))return!0x0;const _0xfe776e=_0x4ea160[_0x4a0d5a([0x73,0x70,0x6c,0x69,0x74])](_0x4a0d5a([0x2e]));return _0x39c93c[_0x4a0d5a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x35cdd6=>_0x35cdd6[_0x4a0d5a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4a0d5a([0x2a])))[_0x4a0d5a([0x6d,0x61,0x70])](_0x58d64d=>_0x58d64d[_0x4a0d5a([0x73,0x70,0x6c,0x69,0x74])](_0x4a0d5a([0x2e])))[_0x4a0d5a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4af110=>_0x4af110[_0x4a0d5a([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xfe776e[_0x4a0d5a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4a0d5a([0x6d,0x61,0x70])](_0x4b4353=>Array(_0xfe776e[_0x4a0d5a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4b4353[_0x4a0d5a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4a0d5a([0x66,0x69,0x6c,0x6c])](_0x4b4353[0x0]===_0x4a0d5a([0x2a])?_0x4a0d5a([0x2a]):'')[_0x4a0d5a([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4b4353))[_0x4a0d5a([0x73,0x6f,0x6d,0x65])](_0x29bf5c=>_0xfe776e[_0x4a0d5a([0x65,0x76,0x65,0x72,0x79])]((_0x59ab80,_0x3ddcc2)=>_0x29bf5c[_0x3ddcc2]===_0x59ab80||_0x29bf5c[_0x3ddcc2]===_0x4a0d5a([0x2a])));}function _0x1e6fa9(){return _0x3ed2f7&&_0x1fa389?new window[(_0x4a0d5a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x47fc8a,_0x4c33a1)=>{_0x3ed2f7[_0x4a0d5a([0x74,0x68,0x65,0x6e])](_0x47fc8a,_0x4c33a1),_0x1fa389[_0x4a0d5a([0x74,0x68,0x65,0x6e])](_0x4b3d0b=>{_0x4b3d0b!=_0x4a0d5a([0x56,0x61,0x6c,0x69,0x64])&&_0x47fc8a(_0x4b3d0b);},_0x4c33a1);}):_0x3ed2f7||_0x1fa389||_0x4a0d5a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x73272e(_0x3d5ab4,_0x10e7ab){return new window[(_0x4a0d5a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5931fb=>{if(_0x8cfc6f())return _0x5931fb(_0x4a0d5a([0x56,0x61,0x6c,0x69,0x64]));_0x3a7f8a(),_0x946f6c[_0x4a0d5a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4a0d5a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x24a940=!0x1;const _0x478a4b=_0x38d584();function _0x2e2762(_0x6c77c2){return!!_0x6c77c2&&(typeof _0x6c77c2===_0x4a0d5a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x6c77c2===_0x4a0d5a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x6c77c2[_0x4a0d5a([0x74,0x68,0x65,0x6e])]===_0x4a0d5a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x6c77c2[_0x4a0d5a([0x63,0x61,0x74,0x63,0x68])]===_0x4a0d5a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1958eb(_0x4f96a5){_0x35043f(_0x4f96a5)[_0x4a0d5a([0x74,0x68,0x65,0x6e])](_0x16d66a=>{if(!_0x16d66a||_0x16d66a[_0x4a0d5a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4a0d5a([0x6f,0x6b]))return _0x4a0d5a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1a1e73(_0x5326a3(_0x478a4b+_0x10e7ab))!=_0x16d66a[_0x4a0d5a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4a0d5a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4a0d5a([0x56,0x61,0x6c,0x69,0x64]);})[_0x4a0d5a([0x74,0x68,0x65,0x6e])](_0x177e4b=>(_0x4f8ae4(),_0x177e4b),()=>{const _0x4ec1af=_0x3a836e();return null==_0x4ec1af?(_0x4f8ae4(),_0x4a0d5a([0x56,0x61,0x6c,0x69,0x64])):_0x4a0d5a(_0x273518-_0x4ec1af>(0x27d454df^_0x522581)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4a0d5a([0x74,0x68,0x65,0x6e])](_0x5931fb)[_0x4a0d5a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5931fb(_0x4a0d5a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3c730f=0x3ee3e5f^_0x522581;function _0x4f8ae4(){const _0x5782fd=_0x4a0d5a([0x6c,0x6c,0x63,0x74,0x2d])+_0x1a1e73(_0x5326a3(_0x3d5ab4)),_0x41ffcf=_0x5546a9(_0x1a1e73(window[_0x4a0d5a([0x4d,0x61,0x74,0x68])][_0x4a0d5a([0x63,0x65,0x69,0x6c])](_0x273518/_0x3c730f)));window[_0x4a0d5a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4a0d5a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5782fd,_0x41ffcf);}function _0x3a836e(){const _0xc216e3=_0x4a0d5a([0x6c,0x6c,0x63,0x74,0x2d])+_0x1a1e73(_0x5326a3(_0x3d5ab4)),_0x40f6f5=window[_0x4a0d5a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4a0d5a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xc216e3);return _0x40f6f5?window[_0x4a0d5a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5546a9(_0x40f6f5),0x10)*_0x3c730f:null;}function _0x35043f(_0x566c06){return new window[(_0x4a0d5a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2aa835,_0xe222ce)=>{_0x566c06[_0x4a0d5a([0x74,0x68,0x65,0x6e])](_0x2aa835,_0xe222ce),window[_0x4a0d5a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xe222ce,0x3d9041f^_0x522581);});}}_0x946f6c[_0x4a0d5a([0x6f,0x6e])](_0x4a0d5a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5a1832,_0x3dc914)=>{if(_0x3dc914[0x0]!=_0x3d5ab4)return _0x5931fb(_0x4a0d5a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3dc914[0x1]={..._0x3dc914[0x1],[_0x4a0d5a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x478a4b};},{[_0x4a0d5a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4a0d5a([0x68,0x69,0x67,0x68])}),_0x946f6c[_0x4a0d5a([0x6f,0x6e])](_0x4a0d5a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x177d4a=>{_0x2e2762(_0x177d4a[_0x4a0d5a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x24a940=!0x0,_0x1958eb(_0x177d4a[_0x4a0d5a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4a0d5a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4a0d5a([0x6c,0x6f,0x77])}),_0x3f8449[_0x4a0d5a([0x74,0x68,0x65,0x6e])](()=>{_0x24a940||_0x5931fb(_0x4a0d5a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x8cfc6f(){return _0x946f6c[_0x4a0d5a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4a0d5a([0x76,0x69,0x65,0x77])][_0x4a0d5a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4a0d5a([0x61,0x75,0x74,0x6f]);}function _0x3a7f8a(){_0x946f6c[_0x4a0d5a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4a0d5a([0x76,0x69,0x65,0x77])][_0x4a0d5a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4a0d5a([0x61,0x75,0x74,0x6f]);}}function _0x458eaa(_0x312741){const _0x892101=[new window[(_0x4a0d5a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5929fc=>setTimeout(_0x5929fc,0x3d1ee13^_0x522581)),_0x3f8449[_0x4a0d5a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4a0d5a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2683e1=>{let _0x2e6f1c=0x0;_0x946f6c[_0x4a0d5a([0x6d,0x6f,0x64,0x65,0x6c])][_0x4a0d5a([0x6f,0x6e])](_0x4a0d5a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x204da3,_0x59158f)=>{_0x59158f[0x0][_0x4a0d5a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2e6f1c++,_0x2e6f1c==(0x3d8d537^_0x522581)&&(_0x2683e1(),_0x204da3[_0x4a0d5a([0x6f,0x66,0x66])]());});}))];return window[_0x4a0d5a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4a0d5a([0x72,0x61,0x63,0x65])](_0x892101)[_0x4a0d5a([0x74,0x68,0x65,0x6e])](()=>_0x312741);}async function _0x41865d(){await _0x3f8449,_0x946f6c[_0x4a0d5a([0x6d,0x6f,0x64,0x65,0x6c])][_0x4a0d5a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x83e4c8,_0x946f6c[_0x4a0d5a([0x6d,0x6f,0x64,0x65,0x6c])][_0x4a0d5a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x83e4c8,_0x946f6c[_0x4a0d5a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4a0d5a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x550e4c(){return _0x2cfaaa(_0x4a0d5a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x119c79(_0x4a0d5a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4a0d5a([0x73,0x74,0x61,0x74,0x65])]==_0x4a0d5a([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x2adc6f(){return _0x2cfaaa(_0x4a0d5a([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 _0x582b48(){return _0x2cfaaa(_0x4a0d5a([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x3b46ca(_0x2a618a){const _0x200aa8=_0x56acfd();_0x946f6c[_0x200aa8]=_0x4a0d5a([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2a618a,_0x2a618a!=_0x4a0d5a([0x56,0x61,0x6c,0x69,0x64])&&_0x41865d();}function _0x56acfd(){const _0x43c1d0=window[_0x4a0d5a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4a0d5a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4a0d5a([0x6e,0x6f,0x77])]())[_0x4a0d5a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4a0d5a([0x2e]),'');let _0x358b16=_0x4a0d5a([0x52]);for(let _0x2ba1ee=0x0;_0x2ba1ee<_0x43c1d0[_0x4a0d5a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2ba1ee+=0x2){let _0x3e7944=window[_0x4a0d5a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x43c1d0[_0x4a0d5a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2ba1ee,_0x2ba1ee+0x2));_0x3e7944>=_0x5bd525[_0x4a0d5a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3e7944-=_0x5bd525[_0x4a0d5a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x358b16+=_0x5bd525[_0x3e7944];}return _0x358b16;}function _0x311f9a(){const _0x573edf=_0x36675c[_0x4a0d5a([0x73,0x70,0x6c,0x69,0x74])](_0x4a0d5a([0x2e]));if(0x3!=_0x573edf[_0x4a0d5a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3d7492(_0x573edf[0x1]);function _0x3d7492(_0x2289f3){const _0x50293d=_0x447cec(_0x2289f3);return _0x50293d&&_0x360fd5()?_0x50293d:null;function _0x360fd5(){const _0x3824be=_0x50293d[_0x4a0d5a([0x6a,0x74,0x69])],_0x36d5b0=window[_0x4a0d5a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3824be[_0x4a0d5a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3824be[_0x4a0d5a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1d3ce2={..._0x50293d,[_0x4a0d5a([0x6a,0x74,0x69])]:_0x3824be[_0x4a0d5a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3824be[_0x4a0d5a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1d3ce2[_0x4a0d5a([0x76,0x63])],_0x5326a3(_0x1d3ce2)==_0x36d5b0;}}}async function _0xbda499(){let _0x5ba3a5=!0x0;try{const _0x4226c6=_0x36675c[_0x4a0d5a([0x73,0x70,0x6c,0x69,0x74])](_0x4a0d5a([0x2e])),[_0x259d4b,_0x30ee57,_0x4c6e1c]=_0x4226c6;return _0x32050a(_0x259d4b),await _0x1a1612(_0x259d4b,_0x30ee57,_0x4c6e1c),_0x5ba3a5;}catch{return!0x1;}function _0x32050a(_0x185ac4){const _0x66af6=_0x447cec(_0x185ac4);_0x66af6&&_0x66af6[_0x4a0d5a([0x61,0x6c,0x67])]==_0x4a0d5a([0x45,0x53,0x32,0x35,0x36])||(_0x5ba3a5=!0x1);}async function _0x1a1612(_0x5ed231,_0x523a98,_0x1ec59b){const _0x5a2cf4=window[_0x4a0d5a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4a0d5a([0x66,0x72,0x6f,0x6d])](_0x12c7bf(_0x1ec59b),_0x5895a4=>_0x5895a4[_0x4a0d5a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2d3772=new window[(_0x4a0d5a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4a0d5a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5ed231+_0x4a0d5a([0x2e])+_0x523a98),_0x53e561=window[_0x4a0d5a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4a0d5a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x53e561)return;const _0x2f768c=await _0x53e561[_0x4a0d5a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4a0d5a([0x6a,0x77,0x6b]),_0x8553c6,{[_0x4a0d5a([0x6e,0x61,0x6d,0x65])]:_0x4a0d5a([0x45,0x43,0x44,0x53,0x41]),[_0x4a0d5a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4a0d5a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4a0d5a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x53e561[_0x4a0d5a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4a0d5a([0x6e,0x61,0x6d,0x65])]:_0x4a0d5a([0x45,0x43,0x44,0x53,0x41]),[_0x4a0d5a([0x68,0x61,0x73,0x68])]:{[_0x4a0d5a([0x6e,0x61,0x6d,0x65])]:_0x4a0d5a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2f768c,_0x5a2cf4,_0x2d3772)||(_0x5ba3a5=!0x1);}}function _0x447cec(_0x373924){return _0x373924[_0x4a0d5a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4a0d5a([0x65,0x79]))?JSON[_0x4a0d5a([0x70,0x61,0x72,0x73,0x65])](_0x12c7bf(_0x373924)):null;}function _0x12c7bf(_0xbf54dd){return window[_0x4a0d5a([0x61,0x74,0x6f,0x62])](_0xbf54dd[_0x4a0d5a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4a0d5a([0x2b]))[_0x4a0d5a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4a0d5a([0x2f])));}function _0x5326a3(_0x545ffe){let _0x29e717=0x1505;function _0x4643fc(_0x1ce4b7){for(let _0x15d227=0x0;_0x15d227<_0x1ce4b7[_0x4a0d5a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x15d227++){const _0x155e69=_0x1ce4b7[_0x4a0d5a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x15d227);_0x29e717=(_0x29e717<<0x5)+_0x29e717+_0x155e69,_0x29e717&=_0x29e717;}}function _0x57f7e2(_0x55fa6d){Array[_0x4a0d5a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x55fa6d)?_0x55fa6d[_0x4a0d5a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x57f7e2):_0x55fa6d&&typeof _0x55fa6d==_0x4a0d5a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4a0d5a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x55fa6d)[_0x4a0d5a([0x73,0x6f,0x72,0x74])]()[_0x4a0d5a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2766b6,_0x569c9d])=>{_0x4643fc(_0x2766b6),_0x57f7e2(_0x569c9d);}):_0x4643fc(window[_0x4a0d5a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x55fa6d));}return _0x57f7e2(_0x545ffe),_0x29e717>>>0x0;}function _0x1a1e73(_0x315444){return _0x315444[_0x4a0d5a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4a0d5a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4a0d5a([0x30]));}function _0x5546a9(_0x1a6d2b){return _0x1a6d2b[_0x4a0d5a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4a0d5a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4a0d5a([0x6a,0x6f,0x69,0x6e])]('');}function _0x2cfaaa(_0x5f2109){return _0x946f6c[_0x4a0d5a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4a0d5a([0x68,0x61,0x73])](_0x5f2109);}function _0x119c79(_0x5ae360){return _0x946f6c[_0x4a0d5a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4a0d5a([0x67,0x65,0x74])](_0x5ae360);}function _0x83e4c8(){}function _0x4a0d5a(_0x4fbe1a){return _0x4fbe1a['map'](_0xf8206e=>String['fromCharCode'](_0xf8206e))['join']('');}_0x3b46ca(await _0x38b8a0());}(this);}set['adapter'](_0x1fc1e6){if(this['_adapter'])throw new _0x41ba40('track-changes-adapter-already-set',this);this['_adapter']=_0x1fc1e6;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0xb9d78a=!0x1,toJSON:_0x591ac8=!0x1}={}){const _0x24fcd6=[];for(const _0x5c973d of this['_suggestions']['values']())_0xb9d78a&&!_0x5c973d['isInContent']||_0x24fcd6['push'](_0x5c973d);return _0x591ac8?_0x24fcd6['map'](_0x50f570=>_0x50f570['toJSON']()):_0x24fcd6;}['getSuggestion'](_0x527221){const _0x52ea29=this['_suggestions']['get'](_0x527221);if(!_0x52ea29)throw new _0x41ba40('track-changes-suggestion-not-found',this);return _0x52ea29;}['hasSuggestion'](_0x33f8a){return this['_suggestions']['has'](_0x33f8a);}['addSuggestionData'](_0x1142e5){const {authorId:_0x593e8e,id:_0x2552f8,originalSuggestionId:_0x1dc36f,attributes:_0x37ac1c}=_0x1142e5,[_0x5be20b,_0x5bf373]=_0x1142e5['type']['split'](':'),_0x3a8cb8=this['_suggestions']['get'](_0x2552f8)||this['_createSuggestion'](_0x5be20b,_0x5bf373,_0x2552f8,_0x593e8e,_0x37ac1c,_0x1dc36f);if(this['_addThreadToSuggestion'](_0x3a8cb8),this['_checkSuggestionCorrectness'](_0x3a8cb8,_0x5be20b,_0x5bf373||null,_0x593e8e),_0x3a8cb8['createdAt']=_0x1142e5['createdAt'],_0x3a8cb8['_isDataLoaded']=!0x0,_0x37ac1c&&_0x37ac1c['@external']){const _0x15e1a9=_0x37ac1c['@external'],_0x202379=this['_getExternalAuthor'](_0x15e1a9['authorName']);_0x3a8cb8['authoredAt']=_0x15e1a9['createdAt'],_0x3a8cb8['author']=_0x202379,_0x3a8cb8['isExternal']=!0x0;}else _0x3a8cb8['authoredAt']=_0x1142e5['createdAt'];switch(_0x1142e5['data']&&(_0x3a8cb8['data']=_0x1142e5['data']),_0x1142e5['attributes']&&(_0x3a8cb8['attributes']=_0x1142e5['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x3a8cb8['_saved']=!0x0),this['_suggestionState']['get'](_0x3a8cb8)){case'notReady':this['_suggestionState']['set'](_0x3a8cb8,'dataReady');break;case'markerReady':_0x3a8cb8['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3a8cb8])),this['_refreshSuggestionsChain'](new Set([_0x3a8cb8])),this['_suggestionState']['set'](_0x3a8cb8,'ready'),this['fire']('suggestionLoaded',_0x3a8cb8)):this['_suggestionState']['set'](_0x3a8cb8,'removed');}return _0x3a8cb8;}['acceptSuggestion'](_0xf655c9){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x453471 of _0xf655c9['getAllAdjacentSuggestions']())_0x453471['accept']();});});}['discardSuggestion'](_0x28e537){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x22aa4e of _0x28e537['getAllAdjacentSuggestions']())_0x22aa4e['discard']();});});}['enableCommand'](_0x258726,_0x3ef706){const _0x2ce3d8=this['editor']['commands']['get'](_0x258726);if(!_0x2ce3d8)throw new _0x41ba40('track-changes-command-not-found',this,{'commandName':_0x258726});if(this['_enabledCommands']['has'](_0x2ce3d8))throw new _0x41ba40('track-changes-enable-command-twice',this,{'commandName':_0x258726});this['_enabledCommands']['add'](_0x2ce3d8),_0x3ef706&&_0x2ce3d8['on']('execute',(_0x582c9c,_0x272348)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x272348['length']>0x0&&_0x272348[_0x272348['length']-0x1]&&_0x272348[_0x272348['length']-0x1]['forceDefaultExecution']?_0x272348['pop']():(_0x582c9c['return']=_0x3ef706((..._0x2b094e)=>_0x2ce3d8['execute'](..._0x2b094e,{'forceDefaultExecution':!0x0}),..._0x272348),_0x582c9c['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x5768b2){let _0x3465cc,_0x52345;const _0x650f59=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3465cc=_0x5768b2();}catch(_0x3b7ed4){_0x52345=_0x3b7ed4;}return _0x650f59||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x52345&&_0x41ba40['rethrowUnexpectedError'](_0x52345,this),_0x3465cc;}['markInsertion'](_0x520615,_0x75cd81=null,_0x16b6fd={}){if(_0x520615['isCollapsed'])return null;const _0x42b055=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x16b6fd['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x14fcd5,meta:_0x3d96c3}of this['_findSuggestions'](_0x520615,'insertion'))if(_0x3d96c3['isOwn']){if(!_0x3d96c3['isNextTo']){if(_0x3d96c3['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!sn(_0x14fcd5,_0x16b6fd))continue;return _0x14fcd5;}if(sn(_0x14fcd5,_0x16b6fd))return _0x14fcd5;this['_breakSuggestionMarker'](_0x14fcd5,_0x520615['start'],_0x520615['end']);break;}if(_0x75cd81==_0x14fcd5['subType']&&sn(_0x14fcd5,_0x16b6fd)){const _0x46f3ef=_0x14fcd5['getFirstRange']();return _0x46f3ef['start']['isEqual'](_0x520615['end'])?this['_setSuggestionRange'](_0x14fcd5,this['_model']['createRange'](_0x520615['start'],_0x46f3ef['end'])):this['_setSuggestionRange'](_0x14fcd5,this['_model']['createRange'](_0x46f3ef['start'],_0x520615['end'])),_0x14fcd5;}}const _0x3ba55c=_0x38d584(),_0x942db1=_0x42b055['id'],_0x3cfad6=_0x75cd81?'insertion:'+_0x75cd81:'insertion',_0x519848=this['_setSuggestionData']({'id':_0x3ba55c,'type':_0x3cfad6,'createdAt':new Date(),'authorId':_0x942db1,'attributes':_0x16b6fd});return this['_addSuggestionMarker'](_0x3cfad6,_0x3ba55c,_0x942db1,_0x520615),_0x519848;}['markMultiRangeInsertion'](_0x4828f2,_0x4b2aad='multi',_0xc6276d={}){const _0x578a8d=this['editor']['plugins']['get']('Users')['me'],_0x37f1a2=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x4b2aad,'join');this['_trackingSessionId']&&(_0xc6276d['trackingSessionId']=this['_trackingSessionId']);for(const _0x1ad2fd of this['getSuggestions']())if(_0x1ad2fd['author']['id']==_0x578a8d['id']&&'insertion'==_0x1ad2fd['type']&&_0x1ad2fd['subType']==_0x4b2aad&&sn(_0x1ad2fd,_0xc6276d)&&(_0x37f1a2(_0x1ad2fd['getRanges'](),_0x4828f2)||_0x37f1a2(_0x4828f2,_0x1ad2fd['getRanges']()))){for(const _0x205173 of _0x4828f2)_0x1ad2fd['addRange'](_0x205173);return _0x1ad2fd;}for(const {suggestion:_0x35c245,meta:_0x21d840}of this['_findSuggestions'](_0x4828f2,'insertion')){if(!_0x21d840['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x21d840['containsRangeInObject'])continue;if(!sn(_0x35c245,_0xc6276d))continue;let _0x493dce=!0x0;for(const _0xce0599 of _0x35c245['getRanges']())for(const _0x2a234b of _0x4828f2)if(!_0xce0599['containsRange'](_0x2a234b)){_0x493dce=!0x1;break;}if(_0x493dce)return _0x35c245;}const _0x27d8fe=_0x38d584(),_0x40af9b=_0x578a8d['id'],_0x67d8c='insertion:'+_0x4b2aad,_0x255307=this['_setSuggestionData']({'id':_0x27d8fe,'type':_0x67d8c,'createdAt':new Date(),'authorId':_0x40af9b,'attributes':_0xc6276d});for(const _0x4ab3f6 of _0x4828f2)this['_addSuggestionMarker'](_0x67d8c,_0x27d8fe,_0x40af9b,_0x4ab3f6,x['getMultiRangeId']());return _0x255307;}['markInlineFormat'](_0x2b0f2a,_0x251e1c,_0x146cf3=null,_0x41d8da={}){if(_0x146cf3=_0x146cf3||Ht(_0x251e1c),_0x2b0f2a['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x41d8da['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x56353a=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x146cf3,'accept');return this['forceDefaultExecution'](()=>_0x56353a([_0x2b0f2a],_0x251e1c,_0x41d8da)),null;}const _0x50235c=this['editor']['plugins']['get']('Users')['me'],_0x25d9c1=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x53ff04,meta:_0x1b4d10}of this['_findSuggestions'](_0x2b0f2a,'insertion'))_0x1b4d10['isOwn']&&!_0x1b4d10['isInsideObject']&&_0x25d9c1['push'](..._0x53ff04['getRanges']());}const _0x3514ce=function(_0x3e4554,_0x1f5ebc){const _0xfcd297=[];for(const _0x4a5261 of _0x1f5ebc){const _0x5a293e=_0x3e4554['getIntersection'](_0x4a5261);_0x5a293e&&_0xfcd297['push'](_0x5a293e);}return _0xfcd297;}(_0x2b0f2a,_0x25d9c1),_0x5792bd=function(_0x11fa59,_0x446307){const _0x18799f=[_0x11fa59];for(const _0x9bbf75 of _0x446307){let _0x524150=0x0;for(;_0x524150<_0x18799f['length'];){const _0x1ab0f0=_0x18799f[_0x524150]['getDifference'](_0x9bbf75);_0x18799f['splice'](_0x524150,0x1,..._0x1ab0f0),_0x524150+=_0x1ab0f0['length'];}}return _0x18799f;}(_0x2b0f2a,_0x25d9c1);_0x3514ce['length']&&this['_model']['change'](()=>{for(const _0x5e82c6 of _0x3514ce){const _0xa84979=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x146cf3,'accept');this['forceDefaultExecution'](()=>_0xa84979([_0x5e82c6],_0x251e1c,_0x41d8da));}});for(const _0x25b432 of _0x5792bd){let _0x591756=null,_0x48d720=_0x25b432['start'],_0x39b593=_0x25b432['end'];for(const {suggestion:_0x14ef2d,meta:_0x3fb62a}of this['_findSuggestions'](_0x25b432,'formatInline')){if(!_0x3fb62a['isOwn'])continue;if(_0x14ef2d['subType']!=_0x146cf3)continue;if(!sn(_0x14ef2d,_0x41d8da))continue;const _0x2024e6=_0x14ef2d['getFirstRange']();if(_0x2024e6['containsRange'](_0x25b432,!0x0))return null;_0x48d720=_0x48d720['isBefore'](_0x2024e6['start'])?_0x48d720:_0x2024e6['start'],_0x39b593=_0x39b593['isAfter'](_0x2024e6['end'])?_0x39b593:_0x2024e6['end'],_0x591756?_0x2024e6['start']['isBefore'](_0x591756['getFirstRange']()['start'])?(_0x591756['removeMarkers'](),_0x591756=_0x14ef2d):_0x14ef2d['removeMarkers']():_0x591756=_0x14ef2d;}const _0x26e7f2=this['_model']['createRange'](_0x48d720,_0x39b593);if(_0x591756)this['_setSuggestionRange'](_0x591756,_0x26e7f2);else{const _0x28ef36=_0x38d584(),_0x19e49c=_0x50235c['id'];this['_setSuggestionData']({'id':_0x28ef36,'type':'formatInline:'+_0x146cf3,'data':_0x251e1c,'createdAt':new Date(),'authorId':_0x19e49c,'attributes':_0x41d8da}),this['_addSuggestionMarker']('formatInline:'+_0x146cf3,_0x28ef36,_0x19e49c,_0x26e7f2);}}return null;}['markBlockFormat'](_0x2c409a,_0x136fb1,_0x11993b=[],_0x14f5a7=null,_0x3fcfaa={}){_0x136fb1['formatGroupId']||(_0x136fb1['formatGroupId']=_0x136fb1['commandName']),_0x136fb1['multipleBlocks']=_0x2c409a['is']('range'),_0x14f5a7=_0x14f5a7||Ht(_0x136fb1);const _0x332a50=_0x11993b['map'](_0x579b0a=>tn(_0x579b0a,this['_model'])),_0x38b910=_0x2c409a['is']('range')?_0x2c409a:tn(_0x2c409a,this['_model']);if(this['_trackingSessionId']&&(_0x3fcfaa['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4da372=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x14f5a7,'accept');return this['forceDefaultExecution'](()=>_0x4da372([_0x38b910],_0x136fb1,_0x3fcfaa)),null;}_0x332a50['push'](_0x38b910);let _0x2196b9=!0x0;for(const _0x38a838 of _0x332a50)if(!this['_rangeIsInLocalUserInsertion'](_0x38a838)){_0x2196b9=!0x1;break;}if(_0x2196b9&&'always'!==this['_trackFormatChanges']){const _0x4a6c82=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x14f5a7,'accept');return this['forceDefaultExecution'](()=>_0x4a6c82([_0x38b910],_0x136fb1,_0x3fcfaa)),null;}let _0x594903=null,_0x19b524=_0x38b910['start'],_0x3d8f8c=_0x38b910['end'];for(const {suggestion:_0x333c29,meta:_0x1ac491}of this['_findSuggestions'](_0x38b910,'formatBlock')){if(!_0x1ac491['isOwn'])continue;if(_0x1ac491['isNextTo']||_0x1ac491['containsRangeInObject']||_0x1ac491['isInsideObject'])continue;if(_0x333c29['data']['formatGroupId']!=_0x136fb1['formatGroupId'])continue;if(!sn(_0x333c29,_0x3fcfaa))continue;const _0x30208f=_0x333c29['getFirstRange']();if(_0x333c29['subType']==_0x14f5a7){if(_0x30208f['containsRange'](_0x38b910,!0x0))return null;_0x19b524=_0x19b524['isBefore'](_0x30208f['start'])?_0x19b524:_0x30208f['start'],_0x3d8f8c=_0x3d8f8c['isAfter'](_0x30208f['end'])?_0x3d8f8c:_0x30208f['end'],_0x594903?_0x30208f['start']['isBefore'](_0x594903['getFirstRange']()['start'])?(_0x594903['removeMarkers'](),_0x594903=_0x333c29):_0x333c29['removeMarkers']():_0x594903=_0x333c29;}else{const _0x4305d4=_0x38b910['getIntersection'](_0x30208f);this['_cutOutSuggestionMarker'](_0x333c29,_0x4305d4);}}const _0x3f3810=this['editor']['plugins']['get']('Users')['me'],_0x3be52a=_0x38d584(),_0xb67eb5=_0x3f3810['id'];if(_0x594903)return this['_setSuggestionRange'](_0x594903,this['_model']['createRange'](_0x19b524,_0x3d8f8c)),_0x594903;{const _0x77b1d6=this['_setSuggestionData']({'id':_0x3be52a,'type':'formatBlock:'+_0x14f5a7,'data':_0x136fb1,'createdAt':new Date(),'authorId':_0xb67eb5,'attributes':_0x3fcfaa});return this['_addSuggestionMarker']('formatBlock:'+_0x14f5a7,_0x3be52a,_0xb67eb5,this['_model']['createRange'](_0x19b524,_0x3d8f8c)),_0x77b1d6;}}['markMultiRangeBlockFormat'](_0x496fea,_0x2fd36e,_0x2d6b27=[],_0x27e534=null,_0x3f6f7c={}){_0x2fd36e['formatGroupId']||(_0x2fd36e['formatGroupId']=_0x2fd36e['commandName']);const _0x1b870f=_0x496fea[0x0];_0x2fd36e['multipleBlocks']=_0x1b870f['is']('range'),_0x27e534=_0x27e534||Ht(_0x2fd36e);const _0x1a56a9=_0x2d6b27['map'](_0x255af8=>tn(_0x255af8,this['_model'])),_0x26cf1b=_0x1b870f['is']('range')?_0x496fea:_0x496fea['map'](_0x36fe44=>tn(_0x36fe44,this['_model']));if(this['_trackingSessionId']&&(_0x3f6f7c['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x468ca6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x27e534,'accept');return this['forceDefaultExecution'](()=>_0x468ca6(_0x26cf1b,_0x2fd36e,_0x3f6f7c)),null;}_0x1a56a9['push'](..._0x26cf1b);let _0x10b674=!0x0;for(const _0x2599a0 of _0x1a56a9)if(!this['_rangeIsInLocalUserInsertion'](_0x2599a0)){_0x10b674=!0x1;break;}if(_0x10b674&&'always'!==this['_trackFormatChanges']){const _0x5807e7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x27e534,'accept');return this['forceDefaultExecution'](()=>_0x5807e7(_0x26cf1b,_0x2fd36e,_0x3f6f7c)),null;}const _0x48d792=this['editor']['plugins']['get']('Users')['me'];for(const _0x3a6d5c of this['getSuggestions']()){const _0x20a8d4=_0x3a6d5c['data'];if(_0x3a6d5c['author']['id']!=_0x48d792['id'])continue;if('formatBlock'!=_0x3a6d5c['type']||_0x20a8d4['formatGroupId']!=_0x2fd36e['formatGroupId'])continue;if(!sn(_0x3a6d5c,_0x3f6f7c))continue;const _0x2a9dc9=_0x3a6d5c['subType']==_0x27e534;for(let _0x34addf=0x0;_0x34addf<_0x26cf1b['length'];_0x34addf++){const _0x41d333=_0x26cf1b[_0x34addf];for(const _0x111578 of _0x3a6d5c['getMarkers']()){const _0x37a350=_0x111578['getRange']();if(_0x41d333['isEqual'](_0x37a350)){_0x2a9dc9?(_0x26cf1b['splice'](_0x34addf,0x1),_0x34addf--):_0x3a6d5c['removeMarker'](_0x111578['name']);break;}}}}if(0x0==_0x26cf1b['length'])return null;const _0x202b3a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x27e534,'join');for(const _0x246fab of this['getSuggestions']()){const _0x145432=_0x246fab['data'];if(_0x246fab['author']['id']==_0x48d792['id']&&('formatBlock'==_0x246fab['type']&&_0x145432['formatGroupId']==_0x2fd36e['formatGroupId']&&_0x246fab['subType']==_0x27e534&&sn(_0x246fab,_0x3f6f7c)&&(_0x202b3a(_0x246fab['getRanges'](),_0x26cf1b)||_0x202b3a(_0x26cf1b,_0x246fab['getRanges']())))){for(const _0x23f1d1 of _0x26cf1b)_0x246fab['addRange'](_0x23f1d1);return _0x246fab;}}const _0x3a097b=_0x38d584(),_0x568afb=_0x48d792['id'],_0x58e05e='formatBlock:'+_0x27e534,_0x3e0494=this['_setSuggestionData']({'id':_0x3a097b,'type':_0x58e05e,'data':_0x2fd36e,'createdAt':new Date(),'authorId':_0x568afb,'attributes':_0x3f6f7c});for(const _0x3c9ef5 of _0x26cf1b)this['_addSuggestionMarker'](_0x58e05e,_0x3a097b,_0x568afb,_0x3c9ef5,x['getMultiRangeId']());return _0x3e0494;}['markDeletion'](_0xc8fefe,_0x3dff2e=null,_0x407623={}){if(_0xc8fefe['isCollapsed'])return null;const _0x51375c=this['editor']['plugins']['get']('Users')['me'],_0x5cb2b0=new _0x4ca1d8(_0xc8fefe['start'],_0xc8fefe['end']);this['_trackingSessionId']&&(_0x407623['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x4eb599,meta:_0x4da874}of this['_findSuggestions'](_0x5cb2b0,'insertion'))if(_0x4da874['isOwn']&&!_0x4da874['isNextTo']){if(_0x4eb599['isMultiRange']){const _0x2bb1da=_0x4eb599['getRanges']()['filter'](_0x11c1b0=>'$graveyard'!=_0x11c1b0['root']['rootName']);_0x2bb1da['every'](_0x5c9bba=>_0x5cb2b0['containsRange'](_0x5c9bba,!0x0))&&_0x4eb599['discard']();if(_0x2bb1da['some'](_0x5ca914=>_0x5ca914['containsRange'](_0x5cb2b0,!0x0))){const _0x329a46=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3dff2e,'accept');return this['forceDefaultExecution'](()=>_0x329a46([_0x5cb2b0],null,_0x407623)),null;}}else{const _0x3acfd1=_0x5cb2b0['getIntersection'](_0x4eb599['getFirstRange']());null!==_0x3acfd1&&_0x4eb599['_onDiscard']([_0x3acfd1],null,_0x407623);}}if(_0x5cb2b0['detach'](),_0x5cb2b0['isCollapsed']||'$graveyard'==_0x5cb2b0['root']['rootName'])return null;let _0xfdd1dd=null,_0x27febc=_0x5cb2b0['start'],_0x1cabe8=_0x5cb2b0['end'];const _0x4f0609=this['_findSuggestions'](_0x5cb2b0,'deletion');for(const {suggestion:_0x54468e,meta:_0x4d2aae}of _0x4f0609){const _0x537d76=this['_model']['createRange'](_0x27febc,_0x1cabe8);if(_0x4d2aae['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4d2aae['containsRangeInObject']&&!_0x4d2aae['isInsideObject'])){if(_0x54468e['isMultiRange']){if(!sn(_0x54468e,_0x407623))continue;let _0x1d1ad6=!0x0;for(const _0x385d81 of _0x54468e['getRanges']()){if(_0x385d81['containsRange'](_0x537d76,!0x0))return _0x54468e;_0x537d76['containsRange'](_0x385d81)||(_0x1d1ad6=!0x1);}_0x1d1ad6&&_0x54468e['discard']();}else{const _0x534b87=_0x54468e['getFirstRange']();if(_0x534b87['containsRange'](_0x537d76,!0x0))return _0x54468e;if(!sn(_0x54468e,_0x407623)){_0x537d76['containsRange'](_0x534b87)?_0x54468e['removeMarkers']():_0x534b87['containsPosition'](_0x27febc)?_0x27febc=_0x534b87['end']:_0x534b87['containsPosition'](_0x1cabe8)&&(_0x1cabe8=_0x534b87['start']);continue;}_0x27febc=_0x27febc['isBefore'](_0x534b87['start'])?_0x27febc:_0x534b87['start'],_0x1cabe8=_0x1cabe8['isAfter'](_0x534b87['end'])?_0x1cabe8:_0x534b87['end'],_0x407623=Object['assign']({},_0x54468e['attributes']),_0xfdd1dd?_0x534b87['start']['isBefore'](_0xfdd1dd['getFirstRange']()['start'])?(_0xfdd1dd['removeMarkers'](),_0xfdd1dd=_0x54468e):_0x54468e['removeMarkers']():_0xfdd1dd=_0x54468e;}}}if(_0xfdd1dd)return this['_setSuggestionRange'](_0xfdd1dd,this['_model']['createRange'](_0x27febc,_0x1cabe8)),_0xfdd1dd;{const _0x3b7aec=_0x38d584(),_0x280af7=this['_model']['createRange'](_0x27febc,_0x1cabe8),_0x4179ee=_0x51375c['id'],_0x1805ae=_0x3dff2e?'deletion:'+_0x3dff2e:'deletion',_0x22f94b=this['_setSuggestionData']({'id':_0x3b7aec,'type':_0x1805ae,'createdAt':new Date(),'authorId':_0x4179ee,'attributes':_0x407623});return this['_addSuggestionMarker'](_0x1805ae,_0x3b7aec,_0x4179ee,_0x280af7),_0x22f94b;}}['markMultiRangeDeletion'](_0xcdd012,_0xf67fe2='multi',_0x320462={}){const _0x725ba2=this['editor']['plugins']['get']('Users')['me'],_0x411c60=_0xcdd012['map'](_0x25cef8=>new _0x4ca1d8(_0x25cef8['start'],_0x25cef8['end'])),_0x4b79b4=new Set();this['_trackingSessionId']&&(_0x320462['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x524e60,meta:_0x20d998}of this['_findSuggestions'](_0x411c60,'insertion'))_0x20d998['isOwn']&&!_0x20d998['isNextTo']&&_0x4b79b4['add'](_0x524e60);for(const _0xb0b509 of _0x4b79b4)if(_0xb0b509['isMultiRange']){const _0x521fb8=_0xb0b509['getRanges']();(!_0xb0b509['attributes']||!_0xb0b509['attributes']['skipNestingCheck'])&&(_0x521fb8['every'](_0x3b5c4c=>_0x411c60['some'](_0x48074c=>_0x48074c['containsRange'](_0x3b5c4c,!0x0)))&&_0xb0b509['discard']());if(_0x411c60['every'](_0x353ff3=>_0x521fb8['some'](_0x2e1638=>_0x2e1638['containsRange'](_0x353ff3,!0x0)))){const _0x317262=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xf67fe2,'accept');return this['forceDefaultExecution'](()=>_0x317262(_0xcdd012,null,_0x320462)),null;}}else{const _0x3ffdf0=_0xb0b509['getFirstRange']();_0x411c60['some'](_0x3003a2=>_0x3003a2['containsRange'](_0x3ffdf0,!0x0))&&_0xb0b509['discard']();if(_0x411c60['every'](_0x193f92=>_0x3ffdf0['containsRange'](_0x193f92,!0x0))){const _0x79cfa4=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xf67fe2,'accept');return this['forceDefaultExecution'](()=>_0x79cfa4(_0x411c60,null,_0x320462)),null;}}const _0x4cfd72=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xf67fe2,'join');let _0x4f9e22=null;for(const _0x2e2c57 of this['getSuggestions']())if(_0x2e2c57['author']['id']==_0x725ba2['id']&&_0x2e2c57['isInContent']&&'deletion'==_0x2e2c57['type']&&_0x2e2c57['subType']==_0xf67fe2&&sn(_0x2e2c57,_0x320462)&&(_0x4cfd72(_0x2e2c57['getRanges'](),_0x411c60)||_0x4cfd72(_0x411c60,_0x2e2c57['getRanges']()))){if(_0x4f9e22){if(_0x2e2c57['commentThread']&&_0x2e2c57['commentThread']['length'])continue;for(const _0x157cc3 of _0x2e2c57['getRanges']())_0x4f9e22['isIntersectingWithRange'](_0x157cc3)||_0x4f9e22['addRange'](_0x157cc3);_0x2e2c57['removeMarkers']();}else{_0x4f9e22=_0x2e2c57;for(const _0x5c6137 of _0x411c60)_0x2e2c57['isIntersectingWithRange'](_0x5c6137)||_0x2e2c57['addRange'](_0x5c6137);}}if(_0x4f9e22)return _0x4f9e22;_0x4b79b4['clear']();for(const {suggestion:_0x4e49cd,meta:_0x2178f5}of this['_findSuggestions'](_0x411c60,'deletion'))_0x2178f5['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2178f5['containsRangeInObject']&&!_0x2178f5['isInsideObject'])&&sn(_0x4e49cd,_0x320462)&&_0x4b79b4['add'](_0x4e49cd);for(const _0x231559 of _0x4b79b4){const _0x54754c=_0x231559['getRanges']();if(!_0x320462||!_0x320462['skipNestingCheck']){if(_0x411c60['every'](_0x523e7c=>_0x54754c['some'](_0x397417=>_0x397417['containsRange'](_0x523e7c,!0x0))))return _0x231559;}(!_0x231559['attributes']||!_0x231559['attributes']['skipNestingCheck'])&&(_0x54754c['every'](_0x17f7fe=>_0x411c60['some'](_0x768f08=>_0x768f08['containsRange'](_0x17f7fe,!0x0)))&&_0x231559['discard']());}const _0x29687a=_0x38d584(),_0x40ada0=_0x725ba2['id'],_0x503e72='deletion:'+_0xf67fe2,_0x43bf0c=this['_setSuggestionData']({'id':_0x29687a,'type':_0x503e72,'createdAt':new Date(),'authorId':_0x40ada0,'attributes':_0x320462});for(const _0x48bae1 of _0x411c60)_0x48bae1['detach'](),_0x48bae1['isCollapsed']||'$graveyard'==_0x48bae1['root']['rootName']||this['_addSuggestionMarker'](_0x503e72,_0x29687a,_0x40ada0,_0x48bae1,x['getMultiRangeId']());return _0x43bf0c;}['markAttributeChange'](_0x14edf4,_0x5c5313,_0x16993f,_0x270a28,_0x37636e){if(_0x14edf4['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x174756=this['editor']['plugins']['get']('Users')['me']['id'],_0x261158=Array['from'](this['_suggestions']['values']())['filter'](_0x2f2e99=>'attribute'==_0x2f2e99['type']&&_0x2f2e99['data']['key']==_0x5c5313&&_0x2f2e99['isIntersectingWithRange'](_0x14edf4));if(this['_trackingSessionId']&&(_0x37636e['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x4b1eed=this['_findSuggestions'](_0x14edf4,'insertion')['filter'](({meta:_0x4a8aac})=>_0x4a8aac['isOwn']&&!_0x4a8aac['isInsideObject']&&!_0x4a8aac['isNextTo'])['map'](({suggestion:_0x22cd94})=>_0x22cd94);_0x261158['unshift'](..._0x4b1eed);}const _0xa53542=new Map([[_0x14edf4,_0x16993f]]);for(const _0x337005 of _0x261158){const _0x3b4b80='attribute'==_0x337005['type']?_0x337005['data']['oldValue']:void 0x0,_0x27e8b4=_0x337005['getFirstRange'](),_0x33a3d0=Array['from'](_0xa53542['keys']())['find'](_0x14067b=>_0x14067b['isIntersecting'](_0x27e8b4));if(!_0x33a3d0)continue;const _0x2e2416=_0x33a3d0['getDifference'](_0x27e8b4);this['_isBlockAttribute'](_0x5c5313)&&'insertion'==_0x337005['type']&&0x0!=_0x2e2416['length']||(_0xa53542['delete'](_0x33a3d0),_0x2e2416['forEach'](_0x3576e5=>{_0xa53542['set'](_0x3576e5,_0x16993f);}),'insertion'!=_0x337005['type']&&_0x3b4b80!=_0x270a28&&_0xa53542['set'](_0x33a3d0['getIntersection'](_0x27e8b4),_0x3b4b80));}const _0x7d0f28=[];for(const [_0x4e52ba,_0x292f3f]of _0xa53542){const _0x60b58b=_0x38d584(),_0xbebf72={'key':_0x5c5313,'oldValue':_0x292f3f,'newValue':_0x270a28};_0x5c5313['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':_0x5c5313});const _0xc832a3=('attribute:'+(_0x5c5313+'|'+Ht({'newValue':_0x270a28})))['substring'](0x0,0x3c),_0x2cb403=this['_setSuggestionData']({'id':_0x60b58b,'type':_0xc832a3,'data':_0xbebf72,'createdAt':new Date(),'authorId':_0x174756,'attributes':_0x37636e});_0x7d0f28['push'](_0x2cb403),this['_addSuggestionMarker'](_0xc832a3,_0x60b58b,_0x174756,_0x4e52ba);}return _0x7d0f28;}['enableDefaultAttributesIntegration'](_0x5ea39b){this['enableCommand'](_0x5ea39b,(_0x4cab51,..._0x5085cf)=>{this['recordAttributeChanges'](()=>{_0x4cab51(..._0x5085cf);});});}['registerBlockAttribute'](_0x5493b6){this['editor']['plugins']['get'](Jt)['registerBlockAttribute'](_0x5493b6);}['registerInlineAttribute'](_0x1282e7){this['editor']['plugins']['get'](Jt)['registerInlineAttribute'](_0x1282e7);}['startTrackingSession'](_0x1149c7){return this['_trackingSessionId']=void 0x0!==_0x1149c7?_0x1149c7:_0x38d584(),this['_trackingSessionId'];}['_getAttributeKey'](_0x322ad4){return'attribute'==_0x322ad4['type']?_0x322ad4['subType']['split']('|')[0x0]:null;}['_applyOperationsAsSuggestions'](_0x1cf55c){if(0x0==_0x1cf55c['length'])return;const _0x492c9d=this['editor'],_0x388e14=_0x492c9d['plugins']['get'](_0x216fdf),_0x4a7877=[];_0x492c9d['model']['change'](_0x2ec53b=>{for(let _0x4bc107=0x0;_0x4bc107<_0x1cf55c['length'];_0x4bc107++){const _0x550d50=_0x1cf55c[_0x4bc107];if(_0x550d50['baseVersion']=_0x492c9d['model']['document']['version'],_0x550d50['isDocumentOperation']=!0x0,_0x388e14['isMarkedRemoveOperation'](_0x550d50)){const _0x13bf23=Lt(_0x550d50['newRange'],_0x492c9d['model']);_0x4a7877['unshift'](_0x4ca1d8['fromRange'](_0x13bf23));}else switch(_0x550d50['type']){case'rename':{const _0x2bf7a0=_0x550d50['oldName'],_0x59e3a0=_0x550d50['newName'];if(_0x2bf7a0==_0x59e3a0)break;_0x2ec53b['batch']['addOperation'](_0x550d50),_0x492c9d['model']['applyOperation'](_0x550d50);const _0xb2b167='$elementName',_0x4a0f4b=_0x550d50['position'],_0x573036=_0x492c9d['model']['createRange'](_0x4a0f4b,_0x492c9d['model']['createPositionAt'](_0x4a0f4b['nodeAfter'],'end'));this['markAttributeChange'](_0x573036,_0xb2b167,_0x2bf7a0,_0x59e3a0,{'groupId':_0x38d584()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0xaa5104=_0x550d50['oldValue'],_0x5bb8f5=_0x550d50['newValue'];if(_0xaa5104==_0x5bb8f5)break;_0x2ec53b['batch']['addOperation'](_0x550d50),_0x492c9d['model']['applyOperation'](_0x550d50);const _0x4b500d=_0x550d50['key'];if(!this['_isRegisteredAttribute'](_0x4b500d))break;const _0x5bd54e=Lt(_0x550d50['range'],_0x492c9d['model']);this['markAttributeChange'](_0x5bd54e,_0x4b500d,_0xaa5104,_0x5bb8f5,{'groupId':_0x38d584()});break;}case'insert':{_0x2ec53b['batch']['addOperation'](_0x550d50),_0x492c9d['model']['applyOperation'](_0x550d50);if(_0x1cf55c[_0x4bc107+0x1]&&'move'==_0x1cf55c[_0x4bc107+0x1]['type'])break;const _0xedfc6e=_0x550d50['position'],_0x53b1b6=_0x550d50['howMany'],_0x4d88f0=Lt(_0x492c9d['model']['createRange'](_0xedfc6e,_0xedfc6e['getShiftedBy'](_0x53b1b6)),_0x492c9d['model']);this['markInsertion'](_0x4d88f0);break;}case'split':{_0x2ec53b['batch']['addOperation'](_0x550d50),_0x492c9d['model']['applyOperation'](_0x550d50);const _0x33a423=_0x550d50['splitPosition'],_0xaa0e7e=_0x550d50['moveTargetPosition'];this['markInsertion'](_0x492c9d['model']['createRange'](_0x33a423,_0xaa0e7e));break;}case'move':case'remove':_0x2ec53b['batch']['addOperation'](_0x550d50),_0x492c9d['model']['applyOperation'](_0x550d50);}}for(const _0x4faa56 of _0x4a7877)_0x4faa56['detach'](),this['markDeletion'](_0x4faa56);});}['_setSuggestionRange'](_0xdb931d,_0x25efca){const _0x1ff836=_0xdb931d['getFirstMarker']();this['_model']['change'](_0x420c2d=>{_0x420c2d['updateMarker'](_0x1ff836,{'range':_0x25efca});});}['_addThreadToSuggestion'](_0x2acb4b){const _0x4bb35b=_0x2acb4b['id'],_0x551e67=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x4bb35b)||this['_commentsRepository']['addCommentThread']({'channelId':_0x551e67,'threadId':_0x4bb35b,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1b77e1=this['_commentsRepository']['getCommentThread'](_0x4bb35b);_0x1b77e1['unbind']('isRemovable'),_0x1b77e1['isRemovable']=!0x1,_0x2acb4b['commentThread']=_0x1b77e1;}['_checkSuggestionCorrectness'](_0x510a7f,_0x1ff75e,_0x133bb2,_0x4df40a){if(_0x510a7f['type']!=_0x1ff75e||_0x510a7f['subType']!=_0x133bb2||_0x510a7f['creator']['id']!=_0x4df40a)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x41ba40('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x2aa09d,_0x4d7815){const _0xab22fb=_0x2aa09d['getFirstRange']();if(_0x4d7815['isEqual'](_0xab22fb))_0x2aa09d['removeMarkers']();else{if(_0xab22fb['containsRange'](_0x4d7815)){const _0x3130e0=this['_model']['createPositionAt'](_0x4d7815['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2aa09d,this['_model']['createRange'](_0xab22fb['start'],_0x3130e0));const _0x41a46d=_0x38d584(),_0x51d629=_0x2aa09d['creator']['id'],_0x4a61a8=_0x2aa09d['type']+':'+_0x2aa09d['subType'];this['_setSuggestionData']({'id':_0x41a46d,'type':_0x4a61a8,'createdAt':new Date(),'authorId':_0x51d629,'data':_0x2aa09d['data'],'attributes':_0x2aa09d['attributes']});const _0x4e0186=this['_model']['createPositionAt'](_0x4d7815['end']['parent'],'after'),_0x14fcc0=this['_model']['createRange'](_0x4e0186,_0xab22fb['end']);this['_addSuggestionMarker'](_0x4a61a8,_0x41a46d,_0x51d629,_0x14fcc0);}else{if(_0xab22fb['containsPosition'](_0x4d7815['start'])){const _0x163aac=this['_model']['createPositionAt'](_0x4d7815['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2aa09d,this['_model']['createRange'](_0xab22fb['start'],_0x163aac));}else{const _0x4ecbdb=this['_model']['createPositionAt'](_0x4d7815['end']['parent'],'after');this['_setSuggestionRange'](_0x2aa09d,this['_model']['createRange'](_0x4ecbdb,_0xab22fb['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x3364f9){for(const {suggestion:_0x4a856b,meta:_0x555af1}of this['_findSuggestions'](_0x3364f9,'insertion')){if(!_0x555af1['isOwn'])continue;const _0x14481e=_0x4a856b['getRanges']();for(const _0x208347 of _0x14481e)if(!_0x3364f9['getDifference'](_0x208347)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x108f23){return this['editor']['plugins']['get']('Users')['getUser'](_0x108f23);}['_getExternalAuthor'](_0x398201){const _0x58dcc2=this['editor']['plugins']['get']('Users'),_0x393ad7=_0xa15ec3('external:'+_0x398201),_0x541f01=_0x58dcc2['getUser'](_0x393ad7);return _0x541f01||_0x58dcc2['addUser']({'id':_0x393ad7,'name':_0x398201});}['_createSuggestion'](_0x28f1b2,_0x4fcccc,_0x1fce30,_0x4bb23b,_0x3e49a3,_0x17e6f1){const _0x13daa2=this['_getAuthorFromId'](_0x4bb23b);if(!_0x13daa2)throw new _0x41ba40('track-changes-user-not-found',this,{'authorId':_0x4bb23b,'suggestionId':_0x1fce30});const _0x1f680a=this['_suggestionFactory']['buildSuggestion'](_0x28f1b2,_0x4fcccc,_0x1fce30,_0x13daa2,_0x3e49a3,_0xc004ed=>{this['_updateSuggestionData'](_0x1fce30,{'attributes':_0xc004ed});const _0x1ceb39=this['getSuggestion'](_0x1fce30);this['_joinWithAdjacentSuggestions'](new Set([_0x1ceb39])),this['_refreshSuggestionsChain'](new Set([_0x1ceb39]));},_0x17e6f1);return this['listenTo'](_0x1f680a,'accept',()=>{this['_updateSuggestionData'](_0x1fce30,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x1f680a,'discard',()=>{this['_updateSuggestionData'](_0x1fce30,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x1fce30,_0x1f680a),this['_suggestionState']['set'](_0x1f680a,'notReady'),_0x1f680a;}['_splitMarkerName'](_0x12dcfb){return Gt(_0x12dcfb);}['_breakSuggestionMarker'](_0xf92533,_0x56aa49,_0x376344){const _0x297051=_0xf92533['getFirstRange'](),_0x4f3eca=_0x297051['start'],_0x244185=_0x297051['end'];this['_setSuggestionRange'](_0xf92533,this['_model']['createRange'](_0x4f3eca,_0x56aa49));const _0x448050=_0x38d584(),_0x164775=_0xf92533['creator']['id'],_0x2564b3=_0xf92533['type']+(_0xf92533['subType']?':'+_0xf92533['subType']:'');this['_setSuggestionData']({'id':_0x448050,'type':_0x2564b3,'createdAt':new Date(),'authorId':_0x164775,'originalSuggestionId':_0xf92533['_originalSuggestionId']||_0xf92533['id'],'attributes':_0xf92533['attributes'],'data':_0xf92533['data']});const _0x17f70a=this['_getAttributeKey'](_0xf92533);('formatBlock'==_0xf92533['type']||_0x17f70a&&this['_isBlockAttribute'](_0x17f70a))&&(_0x376344=this['_model']['createPositionBefore'](_0x376344['parent'])),this['_addSuggestionMarker'](_0x2564b3,_0x448050,_0x164775,this['_model']['createRange'](_0x376344,_0x244185));}['_findSuggestions'](_0x4c8f5f,_0x3265ca=null){const _0x8bff=[],_0x3f05cf=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x4c8f5f)||(_0x4c8f5f=[_0x4c8f5f]);for(const _0x203d97 of this['getSuggestions']()){if(!_0x203d97['isInContent'])continue;if(_0x3265ca&&_0x203d97['type']!=_0x3265ca)continue;let _0x45a280=!0x1;for(const _0x4e7d9a of _0x203d97['getRanges']()){for(const _0x3f71a6 of _0x4c8f5f){const _0x5b4988=_0x3f71a6['start']['isEqual'](_0x4e7d9a['end'])||_0x3f71a6['end']['isEqual'](_0x4e7d9a['start']);if(_0x5b4988||_0x3f71a6['getIntersection'](_0x4e7d9a)){const _0x4002bb=_0x3f71a6['containsRange'](_0x4e7d9a)&&zt(this['_model']['schema'],_0x4e7d9a['start'],_0x3f71a6),_0x58d784=_0x4e7d9a['containsRange'](_0x3f71a6)&&zt(this['_model']['schema'],_0x3f71a6['start'],_0x4e7d9a);_0x8bff['push']({'suggestion':_0x203d97,'meta':{'isOwn':_0x3f05cf==_0x203d97['author'],'isNextTo':_0x5b4988,'isInsideObject':_0x4002bb,'containsRangeInObject':_0x58d784}}),_0x45a280=!0x0;break;}}if(_0x45a280)break;}}return _0x8bff;}['_addSuggestionMarker'](_0x2b49b9,_0x4f31b4,_0x259b4b,_0x35cb68,_0x4eedca){this['_model']['change'](_0x4932a9=>{let _0x2701d3='suggestion:'+_0x2b49b9+':'+_0x4f31b4+':'+_0x259b4b;_0x4eedca&&(_0x2701d3=_0x2701d3+':'+_0x4eedca),_0x4932a9['addMarker'](_0x2701d3,{'range':_0x35cb68,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x2063b0){const _0x2173d0=_0x2063b0['previous'],_0x25d3d5=_0x2063b0['next'];_0x2063b0['previous']=null,_0x2063b0['next']=null,null!=_0x2173d0&&_0x2173d0['next']==_0x2063b0&&(_0x2173d0['next']=_0x25d3d5),null!=_0x25d3d5&&_0x25d3d5['previous']==_0x2063b0&&(_0x25d3d5['previous']=_0x2173d0),'ready'==this['_suggestionState']['get'](_0x2063b0)&&(this['_suggestionState']['set'](_0x2063b0,'removed'),this['fire']('suggestionUnloaded',_0x2063b0,_0x2173d0,_0x25d3d5));}['_setSuggestionData'](_0xb1828e){const _0x4ce917=_0xb1828e['id'],_0x34c570=this['addSuggestionData'](_0xb1828e);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1e3661=this['editor']['plugins']['get']('PendingActions'),_0x253cbf=_0x34c570['hasComments'],_0x40848f=_0x34c570['subType']?_0x34c570['type']+':'+_0x34c570['subType']:_0x34c570['type'],_0x136af5=this['editor']['locale'],_0x4acd6c=_0x1e3661['add'](o(_0x136af5,'PENDING_ACTION_SUGGESTION')),_0x4a2a6f={'id':_0x4ce917,'type':_0x40848f,'hasComments':_0x253cbf,'data':_0xb1828e['data']||null,'originalSuggestionId':_0xb1828e['originalSuggestionId']||null,'attributes':_0x34c570['attributes']};this['_adapter']['addSuggestion'](_0x4a2a6f)['then'](_0x2b364b=>{_0x34c570['_saved']=!0x0,_0x1e3661['remove'](_0x4acd6c),_0x2b364b&&_0x2b364b['createdAt']&&(this['_suggestions']['get'](_0x4ce917)['createdAt']=_0x2b364b['createdAt']);})['catch'](_0x392582=>{throw _0x1965c4('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x34c570['discard']();}),_0x34c570['stopListening'](),this['_suggestions']['delete'](_0x34c570['id']),this['_suggestionState']['delete'](_0x34c570),_0x392582;});}return _0x34c570;}['_isBlockAttribute'](_0x5c550b){return this['editor']['plugins']['get'](Jt)['isBlockAttribute'](_0x5c550b);}['_isInlineAttribute'](_0x500188){return this['editor']['plugins']['get'](Jt)['isInlineAttribute'](_0x500188);}['_updateSuggestionData'](_0x43462d,_0x45cc74){const _0x151c15=this['editor']['plugins']['get']('PendingActions'),_0x5377ab=this['getSuggestion'](_0x43462d);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x5377ab['_saved']){const _0x3c4183=_0x151c15['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x43462d,_0x45cc74)['then'](()=>{_0x151c15['remove'](_0x3c4183);});}else _0x5377ab['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x43462d,_0x45cc74);});}}['_getSuggestionData'](_0x283426){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x41ba40('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x283426);}['_handleNewSuggestionMarker'](_0x93508){const {id:_0x4bef30,type:_0x42de1c,subType:_0x36a008,authorId:_0x24c58d}=this['_splitMarkerName'](_0x93508),_0x37ab0e=this['_suggestions']['get'](_0x4bef30)||this['_createSuggestion'](_0x42de1c,_0x36a008,_0x4bef30,_0x24c58d,{});switch(this['_checkSuggestionCorrectness'](_0x37ab0e,_0x42de1c,_0x36a008,_0x24c58d),this['_suggestionState']['get'](_0x37ab0e)){case'notReady':this['_getSuggestionData'](_0x4bef30)['then'](_0x5e4191=>{let _0x4620fe=Promise['resolve']();_0x5e4191['hasComments']&&(_0x4620fe=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x4bef30})),_0x4620fe['then'](()=>{this['addSuggestionData'](_0x5e4191)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x37ab0e,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x4bef30,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x37ab0e,'ready'),this['fire']('suggestionLoaded',_0x37ab0e);break;case'ready':this['fire']('suggestionChanged',_0x37ab0e);}return _0x37ab0e['addMarkerName'](_0x93508),_0x37ab0e;}['_refreshSuggestionsChain'](_0x7ae989){const _0x13720c=Array['from'](_0x7ae989),_0x1d7686=_0x13720c['filter'](_0x5af78c=>'attribute'==_0x5af78c['type']);this['_refreshAttributeSuggestionsChain'](_0x1d7686);const _0x4f4a45=_0x13720c['filter'](_0x4b0bf1=>!_0x4b0bf1['isMultiRange']&&'attribute'!=_0x4b0bf1['type']),_0x5b82b0=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xbd1f3a=>!_0xbd1f3a['isMultiRange']&&'attribute'!=_0xbd1f3a['type']),_0x1e3a27=_0x5b82b0['filter'](_0x458946=>!_0x7ae989['has'](_0x458946)),_0x309873=new Map(_0x5b82b0['map'](_0x44818e=>[_0x44818e,this['_suggestionFactory']['getSuggestionCallback'](_0x44818e['type'],_0x44818e['subType'],'chain')])),_0x1122ec=new Map(_0x5b82b0['map'](_0x5bf361=>[_0x5bf361,_0x5bf361['getFirstRange']()])),_0x2f1cf3=new Set(),_0x2ce24d=new Set();for(let _0x45aed8=0x0;_0x45aed8<_0x4f4a45['length'];_0x45aed8++)_0x4706bf(_0x4f4a45[_0x45aed8],_0x4f4a45,_0x45aed8+0x1);for(let _0x345e22=0x0;_0x345e22<_0x4f4a45['length'];_0x345e22++)_0x4706bf(_0x4f4a45[_0x345e22],_0x1e3a27,0x0);const _0x5e7105=new Set();for(let _0x58d943=0x0;_0x58d943<_0x4f4a45['length'];_0x58d943++){const _0x16fb09=_0x4f4a45[_0x58d943];!_0x2ce24d['has'](_0x16fb09)&&_0x16fb09['previous']&&(_0x5e7105['add'](_0x16fb09['previous']),_0x16fb09['previous']['next']===_0x16fb09&&(_0x16fb09['previous']['next']=null),_0x16fb09['previous']=null),!_0x2f1cf3['has'](_0x16fb09)&&_0x16fb09['next']&&(_0x5e7105['add'](_0x16fb09['next']),_0x16fb09['next']['previous']===_0x16fb09&&(_0x16fb09['next']['previous']=null),_0x16fb09['next']=null);}function _0x4706bf(_0x32b078,_0x8c0e68,_0x513b68){for(let _0x5d8325=_0x513b68;_0x5d8325<_0x8c0e68['length'];_0x5d8325++){const _0xeb5bbc=_0x749d4b(_0x32b078,_0x8c0e68[_0x5d8325]);_0xeb5bbc&&(_0xeb5bbc[0x0]['next']=_0xeb5bbc[0x1],_0xeb5bbc[0x1]['previous']=_0xeb5bbc[0x0],_0x2f1cf3['add'](_0xeb5bbc[0x0]),_0x2ce24d['add'](_0xeb5bbc[0x1]));}}function _0x749d4b(_0x53a1ee,_0x4ddb9e){if(_0x53a1ee['author']['id']!==_0x4ddb9e['author']['id'])return null;const _0x5654f1=_0x309873['get'](_0x53a1ee)(_0x53a1ee,_0x4ddb9e,_0x1122ec['get'](_0x53a1ee),_0x1122ec['get'](_0x4ddb9e));if(!_0x5654f1)return null;return _0x309873['get'](_0x4ddb9e)(_0x53a1ee,_0x4ddb9e,_0x1122ec['get'](_0x53a1ee),_0x1122ec['get'](_0x4ddb9e))?_0x5654f1[0x1]['commentThread']&&_0x5654f1[0x1]['commentThread']['length']?null:_0x5654f1:null;}_0x5e7105['size']&&this['_refreshSuggestionsChain'](_0x5e7105);}['_refreshAttributeSuggestionsChain'](_0xeced4b){if(0x0==_0xeced4b['length'])return;const _0x2a8da2=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x23439f=>'attribute'==_0x23439f['type']&&_0x23439f['_isDataLoaded']),_0x423320=[],_0x41ab98=new Map();for(const _0x4fb883 of _0x2a8da2){const _0x380140=_0xa15ec3(_0x4fb883['attributes']);_0x41ab98['has'](_0x380140)||(_0x41ab98['set'](_0x380140,_0x423320['length']),_0x423320['push']([]));const _0xd09d58=_0x41ab98['get'](_0x380140);_0x423320[_0xd09d58]['push'](_0x4fb883);}!(function(){_0x423320['sort']((_0x5993fd,_0x31e687)=>{const _0x456938=_0x5993fd[0x0]['createdAt'],_0xefc5aa=_0x31e687[0x0]['createdAt'];return _0x456938==_0xefc5aa?_0x5993fd[0x0]['attributes']['groupId']<_0x31e687[0x0]['attributes']['groupId']?-0x1:0x1:_0x456938<_0xefc5aa?-0x1:0x1;});for(const _0x292ddf of _0x423320)_0x292ddf['sort']((_0x144893,_0x47e2c8)=>_0x144893['id']<_0x47e2c8['id']?-0x1:0x1);}());for(let _0x2b37ed=0x0;_0x2b37ed<_0x423320['length'];_0x2b37ed++){if(0x0==_0x423320[_0x2b37ed]['length'])continue;const _0x28817e=[];for(let _0x4353d1=_0x2b37ed+0x1;_0x4353d1<_0x423320['length'];_0x4353d1++)0x0!=_0x423320[_0x4353d1]['length']&&_0x10ca3b(_0x423320[_0x2b37ed],_0x423320[_0x4353d1])&&_0x28817e['push'](_0x4353d1);for(const _0x116f91 of _0x28817e)_0x423320[_0x2b37ed]=_0x423320[_0x2b37ed]['concat'](_0x423320[_0x116f91]),_0x423320[_0x116f91]=[];}for(const _0x3974a6 of _0x423320)for(let _0x349f0b=0x0;_0x349f0b<_0x3974a6['length'];_0x349f0b++){const _0x1010ba=_0x3974a6[_0x349f0b+0x1]||null;_0x3974a6[_0x349f0b]['next']!==_0x1010ba&&(_0x3974a6[_0x349f0b]['next']=_0x1010ba);}for(const _0x21a67a of _0x423320)for(let _0x367cd9=0x0;_0x367cd9<_0x21a67a['length'];_0x367cd9++){const _0xd957f1=_0x21a67a[_0x367cd9-0x1]||null;_0x21a67a[_0x367cd9]['previous']!==_0xd957f1&&(_0x21a67a[_0x367cd9]['previous']=_0xd957f1);}function _0x10ca3b(_0x1ab6aa,_0x1a4d7b){if(_0x1ab6aa[0x0]['attributes']['groupId']!==_0x1a4d7b[0x0]['attributes']['groupId']&&_0x1ab6aa[0x0]['author']!==_0x1a4d7b[0x0]['author'])return!0x1;if(!function(_0x5d77ad,_0xc1065){if(!_0x5d77ad['hasComments']&&!_0xc1065['hasComments'])return!0x0;if(_0x5d77ad['hasComments']&&_0xc1065['hasComments'])return!0x1;if(_0x5d77ad['hasComments']&&_0xc1065['createdAt']<_0x5d77ad['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0xc1065['hasComments']&&_0x5d77ad['createdAt']<_0xc1065['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x1ab6aa[0x0],_0x1a4d7b[0x0]))return!0x1;const _0x3770e1=Pt(_0x1ab6aa[0x0]['attributes'],['groupId','trackingSessionId']),_0x18cd99=Pt(_0x1a4d7b[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x2880b5(_0x3770e1,_0x18cd99))return!0x1;if(_0x1ab6aa[0x0]['attributes']['groupId']==_0x1a4d7b[0x0]['attributes']['groupId'])return!0x0;if(_0x1ab6aa[0x0]['attributes']['trackingSessionId']!==_0x1a4d7b[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x1ab6aa['every'](_0x4b7ac3=>_0x1a4d7b['some'](_0x68ac2a=>_0x4b7ac3['getFirstRange']()['isEqual'](_0x68ac2a['getFirstRange']())))&&_0x1a4d7b['every'](_0x5e7849=>_0x1ab6aa['some'](_0x5dd6e4=>_0x5e7849['getFirstRange']()['isEqual'](_0x5dd6e4['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x35a9d3){const _0x102d86=Array['from'](_0x35a9d3),_0x5e71f3=this['getSuggestions']({'skipNotAttached':!0x0}),_0x2c9b40=_0x5e71f3['filter'](_0x1c4c82=>!_0x35a9d3['has'](_0x1c4c82)),_0x3e5eb8=new Map(_0x102d86['map'](_0x472cac=>[_0x472cac,this['_suggestionFactory']['getSuggestionCallback'](_0x472cac['type'],_0x472cac['subType'],'join')])),_0xbea76a=new Map(_0x5e71f3['map'](_0xb05275=>[_0xb05275,_0xb05275['getRanges']()]));for(let _0x1f10e3=0x0;_0x1f10e3<_0x102d86['length'];_0x1f10e3++){if(_0x586891(this,_0x102d86[_0x1f10e3],_0x102d86,_0x1f10e3+0x1))return!0x0;}for(let _0x3f6a5b=0x0;_0x3f6a5b<_0x102d86['length'];_0x3f6a5b++){if(_0x586891(this,_0x102d86[_0x3f6a5b],_0x2c9b40,0x0))return!0x0;}return!0x1;function _0x586891(_0x285842,_0x57af1b,_0x149031,_0x2e79ea){for(let _0x2fe021=_0x2e79ea;_0x2fe021<_0x149031['length'];_0x2fe021++){const _0x29221e=_0x149031[_0x2fe021];if(_0x29221e['type']!==_0x57af1b['type']||_0x29221e['author']['id']!==_0x57af1b['author']['id']||_0x29221e['subType']!==_0x57af1b['subType'])continue;if(!en(_0x57af1b,_0x29221e))continue;if('attribute'==_0x57af1b['type']&&_0x57af1b['data']['oldValue']!=_0x29221e['data']['oldValue'])continue;if('attribute'==_0x57af1b['type']&&_0x285842['_isBlockAttribute'](_0x57af1b['data']['key']))continue;if('formatBlock'==_0x57af1b['type']){const _0x4f8651=_0x285842['editor']['model'],_0x1a0da6=_0x57af1b['getContainedElement']();if(_0x1a0da6&&(_0x4f8651['schema']['isObject'](_0x1a0da6)||_0x4f8651['schema']['isLimit'](_0x1a0da6)))continue;}const _0x434c4f=_0x3e5eb8['get'](_0x57af1b),_0x48a44d=_0xbea76a['get'](_0x57af1b),_0x23ceaf=_0xbea76a['get'](_0x29221e),_0x3f5d35=_0x57af1b['commentThread']&&_0x57af1b['commentThread']['length'],_0x3535c0=_0x29221e['commentThread']&&_0x29221e['commentThread']['length'];if(!_0x3f5d35&&_0x434c4f(_0x23ceaf,_0x48a44d))return _0x285842['_joinSuggestions'](_0x29221e,_0x57af1b),_0xbea76a['delete'](_0x57af1b),!0x0;if(!_0x3535c0&&_0x434c4f(_0x48a44d,_0x23ceaf))return _0x285842['_joinSuggestions'](_0x57af1b,_0x29221e),_0xbea76a['delete'](_0x29221e),!0x0;}return!0x1;}}['_joinSuggestions'](_0x27144d,_0x216497){if(_0x27144d['isMultiRange']){for(const _0x470adb of _0x216497['getRanges']())_0x27144d['addRange'](_0x470adb);}else{const _0x492830=_0x216497['getFirstRange']()['end'];this['_setSuggestionRange'](_0x27144d,this['_model']['createRange'](_0x27144d['getFirstRange']()['start'],_0x492830));}_0x216497['removeMarkers']();}['_getMarkerAnnouncementText'](_0x29112d,_0x114e43,_0x164798){const _0x155358=_0x29112d['startsWith']('format')||_0x29112d['startsWith']('attribute')?'FORMATTING':_0x29112d['toUpperCase']();return o(this['editor']['locale'],_0x114e43+'_'+_0x155358+'_SUGGESTION_ANNOUNCEMENT',_0x164798);}['_initAriaMarkerChangeAnnouncements'](){const _0x5c2556=this['editor'];if(!_0x5c2556['ui'])return;const {ariaLiveAnnouncer:_0x5cc05c}=_0x5c2556['ui'];_0x44af84(this['_model'],({left:_0x8ccfd1,entered:_0x272460})=>{for(const _0x11c60d of _0x8ccfd1){const {group:_0x56e5e0,type:_0x1eb9e6}=this['_splitMarkerName'](_0x11c60d['name']);if('suggestion'===_0x56e5e0){_0x5cc05c['announce'](this['_getMarkerAnnouncementText'](_0x1eb9e6,'LEAVE'));break;}}for(const _0x6e55e8 of _0x272460){const {group:_0x1e7ea0,type:_0x403ea8}=this['_splitMarkerName'](_0x6e55e8['name']);if('suggestion'===_0x1e7ea0){_0x5cc05c['announce'](this['_getMarkerAnnouncementText'](_0x403ea8,'ENTER',_0x43cc87(_0x503785)));break;}}});}['_processAttributeChanges'](_0x37ab7f){if(this['_recordAttributeSuggestions'])return!0x1;const _0x394ed1=this['editor'],_0x155815=_0x394ed1['model']['document']['differ']['getChanges']();if(0x0==_0x155815['length'])return!0x1;const _0x537c20=[],_0x31588b=_0x155815['filter'](_0x12febd=>'attribute'==_0x12febd['type']),_0x1c1f71=_0x155815['filter'](_0x48bc18=>'insert'==_0x48bc18['type']&&'$text'!=_0x48bc18['name']),_0x47b973=_0x155815['filter'](_0x220cd7=>'remove'==_0x220cd7['type']&&'$text'!=_0x220cd7['name']);for(const _0x5dc060 of _0x31588b)_0x537c20['push']({'key':_0x5dc060['attributeKey'],'newValue':_0x5dc060['attributeNewValue'],'oldValue':_0x5dc060['attributeOldValue'],'range':Zt(_0x5dc060['range'],_0x394ed1['model'])});for(const _0x464d07 of _0x1c1f71){const _0x1ad754=_0x47b973['find'](_0x38472d=>_0x38472d['position']['isEqual'](_0x464d07['position']));_0x1ad754&&_0x537c20['push']({'key':m,'newValue':_0x464d07['name'],'oldValue':_0x1ad754['name'],'range':_0x394ed1['model']['createRangeOn'](_0x464d07['position']['nodeAfter'])});}return 0x0!=_0x537c20['length']&&this['_reduceExistingSuggestions'](_0x37ab7f,_0x537c20);}['_processAttributeSuggestions'](_0x48ac3f){let _0x2eafdb=!0x1;const _0x4655c8=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2be721=>_0x2be721['data']['newRange']&&_0x2be721['name']['startsWith']('suggestion:attribute:'));for(const _0x5161f4 of _0x4655c8){const {subType:_0x23f587,id:_0x278d83}=this['_splitMarkerName'](_0x5161f4['name']),_0x31d886=_0x23f587['split']('|')[0x0];for(const _0x3bc398 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x3bc398['id']!=_0x278d83&&'attribute'==_0x3bc398['type']&&_0x3bc398['data']&&_0x3bc398['data']['key']==_0x31d886&&_0x3bc398['getFirstRange']()['isIntersecting'](_0x5161f4['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x3bc398,_0x5161f4['data']['newRange'],_0x48ac3f),_0x2eafdb=!0x0);}return _0x2eafdb;}['recordAttributeChanges'](_0x27620a){this['_recordAttributeSuggestions']=!0x0,_0x27620a();}['_isRegisteredAttribute'](_0x9c4cf){return this['editor']['plugins']['get'](Jt)['isRegisteredAttribute'](_0x9c4cf);}['_reduceExistingSuggestions'](_0x17005d,_0x566271){if(0x0==_0x566271['length'])return!0x1;let _0x26b4f2=!0x1;for(const _0x2b92cb of _0x566271){const _0x101e8f=this['_findSuggestions'](_0x2b92cb['range'],'attribute')['filter'](_0x2a7ad5=>!_0x2a7ad5['meta']['isNextTo'])['map'](_0xf5cec9=>_0xf5cec9['suggestion']),_0xbe3135=_0xa15ec3({'newValue':_0x2b92cb['newValue']});_0x101e8f['filter'](_0x578a57=>{const [_0x2ab936,_0x2221c4]=_0x578a57['subType']['split']('|');return _0x2ab936==_0x2b92cb['key']&&_0x2221c4!=_0xbe3135;})['forEach'](_0x389d31=>{this['_reduceSuggestionAttributeRange'](_0x389d31,_0x2b92cb['range'],_0x17005d),_0x26b4f2=!0x0;});}return _0x26b4f2;}['_reduceSuggestionAttributeRange'](_0x7bcf5b,_0x5eaca9,_0x125210){const _0x4da2bc=_0x7bcf5b['getFirstRange']()['getDifference'](_0x5eaca9);0x0!==_0x4da2bc['length']?0x1!==_0x4da2bc['length']?this['_breakSuggestionMarker'](_0x7bcf5b,_0x5eaca9['start'],_0x5eaca9['end']):this['_setSuggestionRange'](_0x7bcf5b,_0x4da2bc[0x0]):_0x125210['removeMarker'](_0x7bcf5b['getFirstMarker']());}}class qt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x3dd833){this['_editor']=_0x3dd833,this['_model']=_0x3dd833['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x2f7913,_0x2cc903,_0x1eac5b,_0x3b00fc,_0x5ab4c9,_0x28c579,_0x4f7ce1){return new x(this['_model'],{'type':_0x2f7913,'subType':_0x2cc903,'id':_0x1eac5b,'originalSuggestionId':_0x4f7ce1,'author':_0x3b00fc,'creator':_0x3b00fc,'attributes':_0x5ab4c9,'onAttributesChange':_0x28c579,'onAccept':(..._0x5be358)=>this['getSuggestionCallback'](_0x2f7913,_0x2cc903,'accept')(..._0x5be358),'onDiscard':(..._0xba24b0)=>this['getSuggestionCallback'](_0x2f7913,_0x2cc903,'discard')(..._0xba24b0)});}['registerCustomCallback'](_0xc332c5,_0x17e590,_0x27091e,_0x1bdd65){const _0x42780a=_0xc332c5+':'+_0x17e590+':'+_0x27091e;this['_customCallbacks']['set'](_0x42780a,_0x1bdd65);}['getSuggestionCallback'](_0xb248f0,_0x1a84d0,_0x5e4ed8){const _0x38b5f6=_0xb248f0+':'+_0x1a84d0+':'+_0x5e4ed8;return this['_customCallbacks']['get'](_0x38b5f6)||this['_defaultCallbacks']['get'](_0xb248f0+':'+_0x5e4ed8);}['_registerDefaultCallbacks'](){const _0x313666=()=>!0x1,_0x1afd76=_0x5ac751=>{_0x5ac751['sort']((_0x1b34c9,_0x50bbcb)=>_0x1b34c9['start']['isBefore'](_0x50bbcb['start'])?0x1:-0x1),this['_model']['change'](_0x1b46d1=>{for(const _0x559795 of _0x5ac751){let _0x4e029c;_0x4e029c=_0x559795['end']['isAtEnd']&&_0x559795['end']['parent']==_0x559795['start']['nodeAfter']?_0x1b46d1['createSelection'](_0x559795['start']['nodeAfter'],'on'):_0x1b46d1['createSelection'](_0x559795),this['_model']['deleteContent'](_0x4e029c,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x18b2d5=(_0x3b298b,_0x258d4f)=>{_0x258d4f&&this['_model']['change'](_0xc1bb64=>{const {commandName:_0x163797,commandParams:_0x2c6222=[]}=_0x258d4f,_0x1deaaa=_0x3b298b['map'](_0x534ec1=>(Kt(_0x534ec1)&&(_0x534ec1=this['_model']['createRange'](_0x534ec1['end'])),_0x534ec1))['filter'](_0x3a4980=>'$graveyard'!==_0x3a4980['root']['rootName']);if(_0x1deaaa['length']<0x1)return;const _0x2803ca=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x1bce33=>_0x4ca1d8['fromRange'](_0x1bce33));_0xc1bb64['setSelection'](_0x1deaaa);for(const _0x1b9b32 of this['_editor']['commands']['commands']())_0x1b9b32['refresh']();_0x2c6222['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x163797,..._0x2c6222);const _0x125b7d=_0x2803ca['filter'](_0x3a7d16=>'$graveyard'!=_0x3a7d16['root']['rootName']);_0x125b7d['length']>0x0&&_0xc1bb64['setSelection'](_0x125b7d);for(const _0x548602 of _0x2803ca)_0x548602['detach']();});},_0x1d449a=(_0x31856e,_0x5890bf)=>0x1==_0x31856e['length']&&0x1==_0x5890bf['length']&&_0x31856e[0x0]['end']['isEqual'](_0x5890bf[0x0]['start']),_0x1d84e5=(_0x27133d,_0xf2dec3,_0x3ec4f8,_0x26ac80)=>nn(_0x27133d,_0xf2dec3,_0x3ec4f8,_0x26ac80)?[_0x27133d,_0xf2dec3]:nn(_0xf2dec3,_0x27133d,_0x26ac80,_0x3ec4f8)?[_0xf2dec3,_0x27133d]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x313666),this['_defaultCallbacks']['set']('insertion:discard',_0x1afd76),this['_defaultCallbacks']['set']('insertion:join',_0x1d449a),this['_defaultCallbacks']['set']('insertion:chain',_0x1d84e5),this['_defaultCallbacks']['set']('deletion:accept',_0x1afd76),this['_defaultCallbacks']['set']('deletion:discard',_0x313666),this['_defaultCallbacks']['set']('deletion:join',_0x1d449a),this['_defaultCallbacks']['set']('deletion:chain',_0x1d84e5),this['_defaultCallbacks']['set']('formatInline:accept',_0x18b2d5),this['_defaultCallbacks']['set']('formatInline:discard',_0x313666),this['_defaultCallbacks']['set']('formatInline:join',_0x1d449a),this['_defaultCallbacks']['set']('formatInline:chain',_0x313666),this['_defaultCallbacks']['set']('formatBlock:accept',_0x18b2d5),this['_defaultCallbacks']['set']('formatBlock:discard',_0x313666),this['_defaultCallbacks']['set']('formatBlock:join',_0x1d449a),this['_defaultCallbacks']['set']('formatBlock:chain',_0x313666),this['_defaultCallbacks']['set']('attribute:accept',_0x313666),this['_defaultCallbacks']['set']('attribute:discard',(_0x5ad784,_0x444cc7)=>{if(!_0x444cc7)return;const _0x32ba46=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x581f4e=>{if(_0x444cc7['key']==m)for(const _0x3b6b69 of _0x5ad784){const _0x5516e4=_0x3b6b69['start']['nodeAfter'],_0x531218=_0x444cc7['oldValue'];_0x581f4e['rename'](_0x5516e4,_0x531218);}else{if(_0x32ba46['_isBlockAttribute'](_0x444cc7['key'])){for(const _0x4d0f5c of _0x5ad784)void 0x0!==_0x444cc7['oldValue']?_0x581f4e['setAttribute'](_0x444cc7['key'],_0x444cc7['oldValue'],_0x4d0f5c['start']['nodeAfter']):_0x581f4e['removeAttribute'](_0x444cc7['key'],_0x4d0f5c['start']['nodeAfter']);}else{for(const _0x143937 of _0x5ad784)_0x444cc7['oldValue']?_0x581f4e['setAttribute'](_0x444cc7['key'],_0x444cc7['oldValue'],_0x143937):_0x581f4e['removeAttribute'](_0x444cc7['key'],_0x143937);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1d449a);}}function zt(_0x48bc96,_0x38e7c4,_0xf9b4fd){for(const _0x37cb70 of _0x38e7c4['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x37cb70['root']==_0x37cb70)return!0x1;if(!_0xf9b4fd['containsItem'](_0x37cb70))return!0x1;if(_0x48bc96['isObject'](_0x37cb70)||_0x48bc96['isLimit'](_0x37cb70))return!0x0;}return!0x1;}function Kt(_0x375c90){return _0x375c90['end']['parent']==_0x375c90['start']['nodeAfter']&&_0x375c90['end']['isAtStart'];}function Wt(_0x29528e,_0x2e3b08,_0x24daf8,_0x596885){const _0x1165ab=_0x2435e3=>!_0x2435e3['item']['is']('$textProxy')&&!_0x596885['isObject'](_0x2435e3['item']),_0x5123eb=_0x29528e['start']['getLastMatchingPosition'](_0x1165ab),_0x5debc7=_0x29528e['end']['getLastMatchingPosition'](_0x1165ab,{'direction':'backward'});return(!_0x29528e['start']['isEqual'](_0x5123eb)||!_0x29528e['end']['isEqual'](_0x5debc7))&&(_0x5123eb['isBefore'](_0x5debc7)?_0x24daf8['updateMarker'](_0x2e3b08,{'range':_0x24daf8['createRange'](_0x5123eb,_0x5debc7)}):_0x24daf8['removeMarker'](_0x2e3b08),!0x0);}function Ht(_0x542942){return _0xa15ec3(_0x542942);}function Qt(_0x80149){const _0x405f45=_0x80149['start']['nodeAfter'];return _0x405f45&&_0x405f45['is']('element');}function Xt(_0x110359){return Kt(_0x110359)||function(_0x2a6b85){return _0x2a6b85['start']['parent']==_0x2a6b85['end']['nodeBefore']&&_0x2a6b85['start']['isAtEnd'];}(_0x110359);}function Yt(_0x55aa3b,_0x41273d){try{const _0x34a7ae=_0x55aa3b['getRange']();for(const _0x559d3c of _0x41273d)if(_0x55aa3b!==_0x559d3c&&_0x34a7ae&&_0x34a7ae['isIntersecting'](_0x559d3c['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Zt(_0x43ee25,_0x551d06){return null==_0x43ee25['end']['nodeBefore']&&_0x43ee25['end']['parent']==_0x43ee25['start']['nodeAfter']?tn(_0x43ee25['start']['nodeAfter'],_0x551d06):_0x43ee25;}function tn(_0x2d261e,_0x3cadf1){const _0x5cd17f=_0x3cadf1['schema']['isObject'](_0x2d261e)||_0x3cadf1['schema']['isSelectable'](_0x2d261e);return _0x3cadf1['createRange'](_0x3cadf1['createPositionAt'](_0x2d261e,'before'),_0x5cd17f?_0x3cadf1['createPositionAfter'](_0x2d261e):_0x3cadf1['createPositionAt'](_0x2d261e,'end'));}function nn(_0x4a0769,_0xa8cd7d,_0x4eeb06,_0x5272e9){return!!en(_0x4a0769,_0xa8cd7d)&&_0x4eeb06['end']['isEqual'](_0x5272e9['start']);}function en(_0x45b7b7,_0x5f130e){if(!_0x45b7b7['_isDataLoaded']||!_0x5f130e['_isDataLoaded'])return!0x1;const _0x31fb87=new Set(Object['keys'](_0x45b7b7['attributes'])),_0x235feb=new Set(Object['keys'](_0x5f130e['attributes']));if(_0x31fb87['delete']('groupId'),_0x235feb['delete']('groupId'),0x0==_0x31fb87['size']&&0x0==_0x235feb['size'])return!0x0;if(_0x31fb87['size']!=_0x235feb['size'])return!0x1;const _0x4f09f0={..._0x45b7b7['attributes']},_0x49c068={..._0x5f130e['attributes']};return delete _0x4f09f0['groupId'],delete _0x49c068['groupId'],JSON['stringify'](_0x4f09f0)==JSON['stringify'](_0x49c068);}function sn(_0x18f2ad,_0x41aa80){const _0x13c5fd=on(_0x18f2ad['attributes']),_0x5c58d2=on(_0x41aa80);if(!_0x18f2ad['_isDataLoaded'])return!0x1;for(const _0x305d92 of Object['keys'](_0x5c58d2))if(!_0x2880b5(_0x13c5fd[_0x305d92],_0x5c58d2[_0x305d92]))return!0x1;return!0x0;}function on(_0xbdae05){const _0x397364=Object['assign']({},_0xbdae05);return delete _0x397364['skipNestingCheck'],delete _0x397364['tablePasteChainId'],_0x397364;}class pe extends/* #__PURE__ -- @preserve */
26
+ _0x20d851(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x502334,_0x2b4d8e,_0x1e023b,_0x18baf3){super(),this['model']=_0x2b4d8e,this['view']=_0x1e023b,this['commentThreadController']=_0x18baf3,this['_editor']=_0x502334,this['_acceptCommand']=_0x502334['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x502334['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x2aa3f0,_0x14c1de)=>_0x2aa3f0||_0x14c1de),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x2a412f=>_0x2a412f&&this['_editor']['model']['canEditAt'](_0x2b4d8e['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x42a1cb=>_0x42a1cb&&this['_editor']['model']['canEditAt'](_0x2b4d8e['getRanges']())),this['_pendingAction']=null,_0x1e023b['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x1e023b,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x1e023b,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x1e023b,'change:isDirty',()=>{_0x1e023b['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 _0x3ff47d=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x3ff47d);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x1e5d0b{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4ed397,_0x31f542,_0x3237ef,_0x533da8){super(_0x4ed397),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x1a945f(_0x4ed397,o(_0x4ed397,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x31f542['authoredAt']),this['bind']('authoredAt')['to'](_0x31f542),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',_0x31f542,'authoredAt',this,'descriptionParts',(_0x48e6cc,_0x346d9d,_0x2305d5)=>{const _0x3c9470=_0x2305d5['map'](_0x493367=>ls(_0x493367['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x48e6cc-0x1,_0x31f542['author']['name'],_0x346d9d?_0x533da8['formatDateTime'](_0x346d9d):'',new DOMParser()['parseFromString'](_0x3c9470,'text/html')['body']['textContent']]);}),this['focusables']=new _0xc10508(),this['focusTracker']=new _0xaf9d81(),this['keystrokes']=new _0x179307(),this['focusCycler']=new _0x1bc210({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x296af8=>_0x296af8['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x31f542,this['_localUser']=_0x3237ef,this['_config']=_0x533da8,_0x533da8['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0xd6aa0f(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x770975}=this['_config'];this['commentsListView']=new _0x770975(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',_0x177455=>_0x177455+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x242507,_0x4bf065)=>_0x242507||!!_0x4bf065);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x2ddfb0}=this['_config'],_0x319afa=new _0x2ddfb0(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x11a291=_0x319afa['commentInputView'];return _0x319afa['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x11a291,'value',(_0x2a5a36,_0x4cd2e6,_0x4f8476)=>!!_0x4f8476||_0x2a5a36&&!_0x4cd2e6),_0x11a291['on']('submit',(_0x4a4650,_0x19792d)=>{this['fire']('addComment',_0x19792d),_0x11a291['editor']['setData']('');}),_0x11a291['on']('cancel',()=>this['focus']()),_0x11a291['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x319afa;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x54b4bc,_0x1478a1,_0x18585a,_0x26ef06){super(_0x54b4bc,_0x1478a1,_0x18585a,_0x26ef06),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x34dd83=>_0x34dd83&&_0x34dd83[0x0]?_0x34dd83[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x370fa9,_0x977242)=>{let _0x16faa0='';for(const _0x2dbd4e of _0x370fa9)_0x16faa0+='<p>'+ls(_0x2dbd4e['content'],_0x2dbd4e['color'])+'</p>';return _0x977242?_0x16faa0:_0x249c32(_0x16faa0,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x26ef06['SuggestionView'](_0x54b4bc,_0x1478a1,{'formatDateTime':_0x26ef06['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 _0x29a2a2=this['bindTemplate'],_0xf858bf=[this['suggestionView']];return this['commentsListView']&&_0xf858bf['push'](this['commentsListView']),this['commentThreadInputView']&&_0xf858bf['push'](this['commentThreadInputView']),_0xf858bf['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x29a2a2['if']('isActive','ck-suggestion-wrapper--active'),_0x29a2a2['to']('type',_0x4eeae1=>'ck-suggestion-'+_0x4eeae1),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':_0x29a2a2['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0xf858bf};}['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 _0x1e5d0b{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x5bfde9,_0x2e8a13,_0xd4e98e){super(_0x5bfde9),this['_model']=_0x2e8a13,this['_config']=_0xd4e98e,this['set']('description',''),this['bind']('authoredAt')['to'](_0x2e8a13),this['acceptButton']=this['_createButton'](o(_0x5bfde9,'Accept\x20suggestion'),_0x479880,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x5bfde9,'Discard\x20suggestion'),_0x223c2e,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x679e55(_0x5bfde9,_0x2e8a13['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0xc10508([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0xaf9d81(),this['keystrokes']=new _0x179307(),this['focusCycler']=new _0x1bc210({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x2d0975=>_0x2d0975['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x42aab7=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x42aab7['innerHTML']=this['description'],this['on']('change:description',(_0x1338ed,_0x5209b3,_0x358b6d)=>{_0x42aab7['innerHTML']=_0x358b6d;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x4842e6=this['bindTemplate'],_0x5bda7c=[{'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':_0x4842e6['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x4842e6['to']('authoredAt',_0x4bece7=>this['_config']['formatDateTime'](_0x4bece7))}]}]},{'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']&&_0x5bda7c['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':_0x5bda7c}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x5c143c,_0x45f88b,_0x5d7814,_0x39160b,_0x259f0c){const _0xf6aeea=new _0x5b8ea4(this['locale']);return _0xf6aeea['set']({'label':_0x5c143c,'icon':_0x45f88b,'tooltip':!0x0,'tooltipPosition':_0x259f0c}),_0xf6aeea['extendTemplate']({'attributes':{'class':_0x5d7814}}),_0xf6aeea['on']('execute',()=>{this['fire'](_0x39160b,this['_model']['id']);}),_0xf6aeea;}['_setupKeyboardNavigation'](){const _0x21070b=this['element'];this['keystrokes']['listenTo'](_0x21070b);for(const _0x129047 of this['focusables'])this['focusTracker']['add'](_0x129047['element']),this['keystrokes']['listenTo'](_0x129047['element']);this['keystrokes']['set']('enter',(_0x47edd4,_0x5802cc)=>{_0x21070b===_0x47edd4['target']&&(this['focusCycler']['focusFirst'](),_0x5802cc());}),this['keystrokes']['set']('esc',(_0x5e2842,_0x2f876a)=>{_0x21070b!==_0x5e2842['target']&&(this['focus'](),_0x2f876a());});}}class u extends _0x157fa6{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x43f701,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3beb7a){super(_0x3beb7a),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x48240d=this['editor']['config'];_0x48240d['define']('trackChanges.SuggestionThreadView',fe),_0x48240d['define']('trackChanges.SuggestionView',we),_0x48240d['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x48240d['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x3ba599,_0x5885d1){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x4b7d43,_0xf975a0]of this['_handleControllerBuffer']){const _0x2eecec=this['_suggestionToController']['has'](_0x4b7d43);_0x2eecec||_0xf975a0?_0x2eecec&&_0xf975a0&&this['_destroyController'](_0x4b7d43):this['_initializeController'](_0x4b7d43);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x3ba599,_0x5885d1);}['init'](){const _0x1e6805=this['editor'],_0x2311f9=_0x1e6805['plugins']['get']('TrackChangesEditing'),_0xf1919f=_0x1e6805['plugins']['get']('Annotations'),_0x1683e0=_0x1e6805['plugins']['get']('EditorAnnotations'),_0x200aac=_0x1e6805['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x1683e0['addSourceCollector'](()=>{const _0x9a051e=[];for(const [_0x35135c,_0x134969]of Array['from'](this['_suggestionToController'])){const _0x4a6862=_0x35135c['getAllAdjacentSuggestions'](),_0x188a95=[];for(const _0x138163 of _0x4a6862){if(!_0x138163['isInContent'])continue;if(_0x138163['isMultiRange']){_0x188a95['push'](..._0x138163['getRanges']());continue;}const _0x1a2136=_0x138163['getFirstRange']();if(_0x188a95['length']>0x0){const _0x3a7dd7=_0x188a95[0x0]['getJoined'](_0x1a2136);if(_0x3a7dd7){_0x188a95[0x0]=_0x3a7dd7;continue;}}_0x188a95['push'](_0x1a2136);}_0x9a051e['push']([_0x134969['view'],_0x188a95]);}return _0x9a051e;}),this['listenTo'](_0x2311f9,'suggestionLoaded',(_0x110935,_0x2cb199)=>{this['listenTo'](_0x2cb199,'change:previous',(_0x5809ad,_0x4bb938,_0x526879,_0x2a86c5)=>{_0x2cb199['isInContent']&&(null==_0x526879?(this['_updateController'](_0x2a86c5['head']),this['_handleSuggestionControllerDelayed'](_0x2cb199,!0x1)):(this['_updateController'](_0x526879['head']),null==_0x2a86c5&&this['_handleSuggestionControllerDelayed'](_0x2cb199,!0x0)));}),null!==_0x2cb199['previous']?this['_updateController'](_0x2cb199['head']):this['_handleSuggestionControllerDelayed'](_0x2cb199,!0x1);}),this['listenTo'](_0x2311f9,'suggestionUnloaded',(_0x5bc9dd,_0x143e2f,_0x3c870a)=>{this['stopListening'](_0x143e2f,'change:previous'),this['_handleControllerBuffer']['delete'](_0x143e2f),this['_suggestionToController']['has'](_0x143e2f)&&this['_destroyController'](_0x143e2f),_0x3c870a&&this['_updateController'](_0x3c870a['head']);}),this['listenTo'](_0x2311f9,'suggestionChanged',(_0x1a04ae,_0x47c30e)=>{this['_updateController'](_0x47c30e);}),this['listenTo'](_0xf1919f,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x200aac,'addComment',(_0x4f7cc7,{threadId:_0x1a3d1a,isFromAdapter:_0x5bfd92})=>{if(_0x5bfd92||!_0x2311f9['hasSuggestion'](_0x1a3d1a))return;const _0x1dafd9=_0x2311f9['getSuggestion'](_0x1a3d1a);this['_suggestionToController']['get'](_0x1dafd9)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3952c2=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2911cc;for(const _0x73efe0 in _0x3952c2){const _0x4daa04=_0x73efe0,_0x5ab328=_0x3952c2[_0x4daa04];if('trackChangesLicenseKeyValid'==_0x5ab328||'trackChangesLicenseKeyInvalid'==_0x5ab328||'trackChangesLicenseKeyExpired'==_0x5ab328||'trackChangesLicenseKeyDomainLimit'==_0x5ab328||'trackChangesLicenseKeyNotAllowed'==_0x5ab328||'trackChangesLicenseKeyEvaluationLimit'==_0x5ab328||'trackChangesLicenseKeyUsageLimit'==_0x5ab328){delete _0x3952c2[_0x4daa04],_0x2911cc=_0x5ab328,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x2911cc&&_0x3952c2['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x2911cc&&_0x3952c2['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x2911cc&&_0x3952c2['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x2911cc&&_0x3952c2['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x2911cc&&_0x3952c2['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x2911cc&&_0x3952c2['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x25e1f1){const _0x527f5a=this['_suggestionToController']['get'](_0x25e1f1);if(!_0x527f5a)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x527f5a['view'])||null;}['getSuggestionForAnnotation'](_0x44fe2a){const _0x11e514=this['_viewToController']['get'](_0x44fe2a['innerView']);return _0x11e514?_0x11e514['model']:null;}['_refreshActiveMarkers'](){const _0x59b959=this['editor']['plugins']['get']('Annotations'),_0x5e945f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x161125=Array['from'](_0x59b959['activeAnnotations'],_0x54d5a6=>_0x54d5a6['innerView'])['filter'](_0xd7ff83=>this['_viewToController']['has'](_0xd7ff83)),_0x3fa9d0=[];for(const _0x36b948 of _0x161125){const _0x5ce1e1=this['_viewToController']['get'](_0x36b948)['model']['getAllAdjacentSuggestions']();_0x3fa9d0['push'](..._0x5ce1e1['reduce']((_0x4a0b19,_0x1077d0)=>[..._0x4a0b19,..._0x1077d0['getMarkerNames']()],[]));}_0x5e945f['activeMarkers']=_0x3fa9d0;}['_addUIComponentsToFactory'](){const _0x16f33e=this['editor'],_0x2de752=_0x16f33e['locale'],_0x570225=o(_0x2de752,'Track\x20changes'),_0xb3c05d=new _0x372b73([{'type':'switchbutton','model':new _0x1f5dcb({'withText':!0x0,'isToggleable':!0x0,'label':_0x570225,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x1f5dcb({'withText':!0x0,'label':o(_0x2de752,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1f5dcb({'withText':!0x0,'label':o(_0x2de752,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1f5dcb({'withText':!0x0,'label':o(_0x2de752,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1f5dcb({'withText':!0x0,'label':o(_0x2de752,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x16f33e['plugins']['has']('TrackChangesPreview')&&_0xb3c05d['addMany']([{'type':'separator'},{'type':'button','model':new _0x1f5dcb({'withText':!0x0,'label':o(_0x2de752,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x2ea5b6 of _0xb3c05d)if(ke(_0x2ea5b6)){const _0x415890=_0x16f33e['commands']['get'](_0x2ea5b6['model']['commandName']);_0x2ea5b6['model']['bind']('isOn','isEnabled')['to'](_0x415890,'value','isEnabled');}_0x16f33e['ui']['componentFactory']['add']('trackChanges',_0x2be132=>this['_createToolbarButton'](_0x2be132,_0xb3c05d,_0x570225)),_0x16f33e['ui']['componentFactory']['add']('menuBar:trackChanges',_0x22abc6=>this['_createMenuBarMenu'](_0x22abc6,_0xb3c05d,_0x570225));}['_createToolbarButton'](_0x186836,_0xefed7a,_0x435014){const _0x3460b2=_0x228da2(_0x186836,_0x7ee3d0),_0xbb99b3=this['editor']['commands']['get']('trackChanges');_0x3460b2['buttonView']['set']({'tooltip':_0x435014,'label':_0x435014,'icon':_0x317f87}),_0x3460b2['buttonView']['bind']('isOn')['to'](_0xbb99b3,'value'),_0x3460b2['buttonView']['on']('execute',()=>{_0xbb99b3['execute'](),this['editor']['editing']['view']['focus']();}),_0x13a388(_0x3460b2,_0xefed7a,{'role':'menu'});const _0x4cf6d4=[];for(const _0x116dd9 of _0xefed7a)ke(_0x116dd9)&&_0x4cf6d4['push'](this['editor']['commands']['get'](_0x116dd9['model']['commandName']));const _0x4f4032=_0x3460b2['buttonView'];return _0x4f4032['actionView']['unbind']('isEnabled'),_0x4f4032['arrowView']['unbind']('isEnabled'),_0x4f4032['actionView']['bind']('isEnabled')['to'](_0xbb99b3,'isEnabled'),_0x4f4032['arrowView']['bind']('isEnabled')['toMany'](_0x4cf6d4,'isEnabled',(..._0x4ff5fa)=>_0x4ff5fa['some'](_0x2d3dd2=>_0x2d3dd2)),_0x3460b2['on']('execute',_0x4ee66b=>{this['editor']['execute'](_0x4ee66b['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x3460b2;}['_createMenuBarMenu'](_0x331286,_0x40305f,_0x54d5c4){const _0x5e60f7=new _0x1d2a96(_0x331286),_0x45c309=this['editor']['commands']['get']('trackChanges');_0x5e60f7['buttonView']['set']({'label':_0x54d5c4,'icon':_0x317f87});const _0x3435dc=new _0x5293(_0x331286);for(const _0x1de883 of _0x40305f){if('separator'==_0x1de883['type']){_0x3435dc['items']['add'](new _0x3c1867(_0x331286));continue;}const _0x3dcbe6=new _0x52784b(_0x331286,_0x5e60f7),_0x5d8a4e=new _0x136fdf(_0x331286),_0x3555a5=_0x1de883['model'];_0x5d8a4e['bind'](...Object['keys'](_0x3555a5))['to'](_0x3555a5),_0x5d8a4e['delegate']('execute')['to'](_0x5e60f7),_0x5d8a4e['on']('execute',()=>{this['editor']['execute'](_0x3555a5['commandName']),this['editor']['editing']['view']['focus']();}),_0x3dcbe6['children']['add'](_0x5d8a4e),_0x3435dc['items']['add'](_0x3dcbe6);}return _0x5e60f7['bind']('isEnabled')['to'](_0x45c309,'isEnabled'),_0x5e60f7['panelView']['children']['add'](_0x3435dc),_0x5e60f7;}['_initializeController'](_0xd4f860){const _0x301543=this['editor'],_0x5788dd=_0x301543['config'],_0xc3f1f1=_0x301543['plugins']['get']('Annotations'),_0x181991=_0x301543['plugins']['get']('CommentsRepository'),_0x431994=_0x301543['plugins']['get']('EditorAnnotations'),_0x30b72c=_0x301543['plugins']['get'](_0x43f701)['me'],_0x33cdda=_0x5788dd['get']('trackChanges')['SuggestionThreadView'],_0x2179b6=_0x5788dd['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x50269b,CommentThreadInputView:_0x459e84}=_0x301543['plugins']['get']('CommentsUI');let _0x327708,_0x3e6578,_0xbd2934;this['_annotationViews']['has'](_0xd4f860['id'])?(_0x3e6578=this['_annotationViews']['get'](_0xd4f860['id']),_0x327708=_0x3e6578['mainView']):(_0x327708=new _0x33cdda(_0x301543['locale'],_0xd4f860,_0x30b72c,{'disableComments':this['_disableComments'],'editorConfig':{..._0x5788dd['get']('comments.editorConfig'),'licenseKey':_0x5788dd['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x5788dd['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x5788dd['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x5788dd['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x1f1b79(_0x5788dd['get']('locale'),_0x301543['locale']),'CommentView':_0x5788dd['get']('comments')['CommentView'],'CommentsListView':_0x50269b,'CommentThreadInputView':_0x459e84,'SuggestionView':_0x2179b6}),_0x327708['suggestionView']['acceptButton']['on']('execute',()=>{_0x301543['editing']['view']['focus']();}),_0x327708['suggestionView']['discardButton']['on']('execute',()=>{_0x301543['editing']['view']['focus']();}),_0x3e6578=_0xc3f1f1['createAnnotationView'](this['editor']['locale'],_0x327708),_0x3e6578['bind']('isDirty')['to'](_0x327708,'isDirty'),_0x3e6578['bind']('length')['to'](_0x327708),_0x3e6578['bind']('type')['to'](_0x327708,'type',_0x13b15e=>'suggestion-'+_0x13b15e),_0x327708['on']('escape',()=>{_0xbd2934['fire']('escape');}),this['_annotationViews']['set'](_0xd4f860['id'],_0x3e6578));const _0x312763=_0x181991['createCommentThreadController'](_0xd4f860['commentThread'],_0x327708),_0xd6ebf6=new pe(_0x301543,_0xd4f860,_0x327708,_0x312763),_0x561958=_0xd4f860['getAllAdjacentSuggestions']()['filter'](_0x12949a=>_0x12949a['isInContent']);_0x327708['descriptionParts']=_0x301543['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x561958),this['_suggestionToController']['set'](_0xd4f860,_0xd6ebf6),this['_viewToController']['set'](_0x327708,_0xd6ebf6);const _0x1b6b1f=()=>{const _0x2cfa92=[],_0x12b1aa=_0xd4f860['getAllAdjacentSuggestions']()['filter'](_0x1aa0cf=>_0x1aa0cf['isInContent']);for(const _0xa65838 of _0x12b1aa)_0x2cfa92['push'](..._0xa65838['getMarkers']());return _0x2fe7be(_0x301543['editing'],_0x2cfa92);};_0xbd2934=_0xc3f1f1['createAnnotation']({'view':_0x3e6578,'target':_0x1b6b1f,'type':()=>'suggestion-'+_0xd6ebf6['view']['type'],'isVisible':!!_0x1b6b1f()}),_0x181991['_bindAnnotationToEditors'](_0x327708,_0xbd2934),_0xc3f1f1['add'](_0xbd2934),_0x431994['registerAnnotation'](_0xbd2934);}['_destroyController'](_0x29b6d1){const _0x3affc5=this['editor']['plugins']['get']('CommentsRepository'),_0x1085f5=this['editor']['plugins']['get']('Annotations'),_0x1cea1d=this['_suggestionToController']['get'](_0x29b6d1),_0x13f92f=_0x1cea1d['view'],_0x5c10f6=_0x1085f5['getByInnerView'](_0x13f92f);_0x3affc5['_unbindEditors'](_0x13f92f),_0x5c10f6&&_0x1085f5['remove'](_0x5c10f6),this['_suggestionToController']['delete'](_0x29b6d1),this['_viewToController']['delete'](_0x13f92f),_0x1cea1d['destroy']();}['_updateController'](_0x585b65){if(!_0x585b65['isInContent']||!this['_suggestionToController']['has'](_0x585b65))return;const _0x4c91a5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x65a7c3=this['_suggestionToController']['get'](_0x585b65),_0x541e23=_0x585b65['getAllAdjacentSuggestions']();_0x65a7c3['view']['descriptionParts']=_0x4c91a5['descriptionFactory']['getDescriptions'](_0x541e23);}['destroy'](){for(const _0x520e80 of this['_suggestionToController']['keys']())this['_destroyController'](_0x520e80);for(const _0x52bc27 of this['_annotationViews']['values']())_0x52bc27['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x1889f1){return'model'in _0x1889f1;}class Ne extends _0x157fa6{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0xe0e7e6){this['editor']['plugins']['get'](d)['adapter']=_0xe0e7e6;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x4d5668){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x4d5668);}['getSuggestions']({skipNotAttached:_0x5a4a42=!0x1,toJSON:_0x56b343=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x5a4a42,'toJSON':_0x56b343});}['getSuggestion'](_0x366658){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x366658);}}const p=['Pagination'];class re extends _0x157fa6{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x2e361a=this['editor'];if(_0x2e361a['config']['define']('trackChangesData.editorCreator',_0x447133=>{const _0x4489e8=_0x2e361a['model']['document']['getRootNames']()['reduce']((_0x2f2985,_0x3e85ba)=>(_0x2f2985[_0x3e85ba]='',_0x2f2985),{});return _0x2e361a['constructor']['create'](_0x4489e8,_0x447133);}),'function'!=typeof _0x2e361a['config']['get']('trackChangesData')['editorCreator'])throw new _0x41ba40('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x448952){return P(this['editor'],!0x0,_0x448952);}['getDataWithDiscardedSuggestions'](_0x509cc8){return P(this['editor'],!0x1,_0x509cc8);}}class Fe extends _0x157fa6{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5b2e5f){function _0x1b94da(_0x3ff862){return _0x3ff862['map'](_0x348de2=>String['fromCharCode'](_0x348de2))['join']('');}super(_0x5b2e5f),this['result']='end',_0x5b2e5f[_0x1b94da([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1b94da([0x76,0x69,0x65,0x77])][_0x1b94da([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1b94da([0x61,0x75,0x74,0x6f]),_0x5b2e5f[_0x1b94da([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1b94da([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1b94da([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1b94da([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1b94da([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function De(_0x54baad){return void 0x0!==_0x54baad['getRootsAttributes'];}async function P(_0x2ccf85,_0x1a0076,_0x2585b9){const _0x36a10e=_0x3633bf(_0x2ccf85,p);_0x36a10e['plugins']['push'](d,Fe),_0x36a10e['rootsAttributes']=De(_0x2ccf85)?_0x2ccf85['getRootsAttributes']():void 0x0;const _0x250466=document['createDocumentFragment'](),_0x305103=_0x2ccf85['config']['get']('trackChangesData')['editorCreator'],_0x5785c6=await _0x305103(_0x36a10e,()=>function(_0x5de9c8){const _0x5f2259=document['createElement']('div');return _0x5de9c8['appendChild'](_0x5f2259),_0x5f2259;}(_0x250466));!function(_0x2e8f2a,_0x3131a4){const _0x44dfe4=_0x2e8f2a['model']['document']['getRootNames']()['reduce']((_0x11c990,_0x291841)=>(_0x11c990[_0x291841]=_0x2e8f2a['data']['get']({'rootName':_0x291841}),_0x11c990),{}),_0x1af9bb=_0x2e8f2a['plugins']['get']('Users')['users']['map'](_0x39cfe8=>({'id':_0x39cfe8['id'],'name':_0x39cfe8['name']})),_0x457a28=_0x2e8f2a['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x26a103=_0x2e8f2a['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x431c87=_0x3131a4['plugins']['get']('Users'),_0x4f3378=_0x3131a4['plugins']['get']('TrackChangesEditing'),_0x5b548e=_0x3131a4['plugins']['get']('CommentsRepository');for(const _0xd71a41 of _0x5b548e['getCommentThreads']())_0xd71a41['remove']();for(const _0x306048 of _0x1af9bb)_0x431c87['getUser'](_0x306048['id'])||_0x431c87['addUser'](_0x306048);_0x431c87['me']||_0x431c87['useAnonymousUser']();for(const _0x1a9aa2 of _0x26a103)_0x5b548e['addCommentThread'](_0x1a9aa2);for(const _0x442cf8 of _0x457a28)_0x4f3378['addSuggestionData'](_0x442cf8);_0x3131a4['data']['set'](_0x44dfe4);}(_0x2ccf85,_0x5785c6),_0x5785c6['execute'](_0x1a0076?'acceptAllSuggestions':'discardAllSuggestions');const _0x4d28b5=De(_0x5785c6)?_0x5785c6['getFullData'](_0x2585b9):_0x5785c6['data']['get'](_0x2585b9);return await _0x5785c6['destroy'](),_0x4d28b5;}class Me extends _0x1e5d0b{['options'];constructor(_0x239fb6,_0x5e88b7){super(_0x239fb6),this['options']=_0x5e88b7,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'](_0xe6245c,_0x4d2981){if(!this['element'])return;const _0x309189=[];for(const [_0x1325cc,_0x5ba6c4]of _0xe6245c){const _0x3b2967=document['createElement']('div');_0x3b2967['setAttribute']('data-ck-root-name',_0x1325cc),_0x3b2967['className']=_0x5ba6c4['classes']+'\x20ck-track-changes-preview__root-container',_0x3b2967['innerHTML']=_0x5ba6c4['content'],_0x309189['push'](_0x3b2967);}_0x4d2981(this['element'],_0x309189),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0xecc457{constructor(_0x2b7643){super(_0x2b7643),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x163938=this['editor'],_0xb21010=_0x163938['locale'],_0x35005d=_0x163938['plugins']['get']('Dialog');let _0x4c6773;const _0x529354=function(_0x3003e9){const _0xe9cca1={};if('editables'in _0x3003e9['ui']['view']){for(const [_0x399c9a,_0x3188db]of Object['entries'](_0x3003e9['ui']['view']['editables']))_0xe9cca1[_0x399c9a]=_0x3188db['element'];}else _0xe9cca1[_0x3003e9['model']['document']['getRootNames']()[0x0]]=_0x3003e9['ui']['view']['editable']['element'];return _0xe9cca1;}(_0x163938),_0x1dd943=function(_0x98a3af){let _0xcf6d3e=0x0;for(const _0x241cf1 of Object['values'](_0x98a3af))_0xcf6d3e=Math['max'](_0xcf6d3e,_0x241cf1['getBoundingClientRect']()['width']);let _0x50a5a4=0x0;for(const _0x1eb874 of Object['values'](_0x98a3af))_0x50a5a4+=_0x1eb874['getBoundingClientRect']()['height'];const _0x5a0f23=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x3130ac=Math['min'](_0x50a5a4,_0x5a0f23);return{'width':_0xcf6d3e,'height':_0x3130ac};}(_0x529354);_0x35005d['show']({'id':'finalContentPreview','title':o(_0xb21010,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0xb21010,{'dialogRects':_0x1dd943}),'onHide':()=>{_0x4c6773['detachFromDom']();},'onShow':()=>{_0x163938['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x36d1e4=>{const _0x195277=this['_standarizeRootsData'](_0x36d1e4,_0x163938,_0x529354);_0x35005d['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x195277,_0x163938['config']['get']('trackChanges.preview.renderFunction'));}),_0x4c6773=new _0x56dace(_0xb21010,[_0x35005d['view']]),_0x4c6773['attachToDom'](),_0x4c6773['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x163938['once']('destroy',()=>{_0x4c6773['detachFromDom']();});const _0x25f5f4=_0x35005d['view']['headerView']['class'];_0x35005d['view']['headerView']['class']=_0x25f5f4?_0x25f5f4+'\x20ck-reset_all':'ck-reset_all',_0x35005d['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x35005d['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x1ed147=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x10f864=_0x1ed147['previewMode'],_0x5e65ec={};if('$labels'===_0x10f864){for(const _0x146f42 of _0x1ed147['getMergeFieldsIds']())_0x5e65ec[_0x146f42]=_0x1ed147['getLabel'](_0x146f42)||_0x146f42;}else{const _0x3ed5af='$defaultValues'===_0x10f864?_0x1ed147['getDefaultValues']():_0x1ed147['getDataSetValues'](_0x10f864,!0x0);for(const _0x4de774 of Object['entries'](_0x3ed5af)){const [_0x31d757,_0x2ccbd0]=_0x4de774;_0x5e65ec[_0x31d757]=null!==_0x2ccbd0?_0x2ccbd0:_0x1ed147['getLabel'](_0x31d757)||_0x31d757;}}return{'mergeFieldsData':_0x5e65ec};}['_standarizeRootsData'](_0xa80638,_0x2ef4d7,_0x3c64a4){let _0x54bdae;if('string'==typeof _0xa80638){const _0x1dabba=_0x2ef4d7['model']['document']['getRootNames']()[0x0];_0x54bdae={[_0x1dabba]:_0xa80638};}else _0x54bdae=_0xa80638;const _0x4c5a6e=this['_fixMediaEmbeds'](_0x54bdae,_0x2ef4d7),_0x419699=function(_0x5b846b,_0x335fed){for(const [_0xdde000,_0x472d90]of _0x5b846b)_0x472d90['classes']=_0x335fed[_0xdde000]['classList']['value']['replace']('ck-focused','');return _0x5b846b;}(this['_sortRoots'](_0x2ef4d7)['reduce']((_0x5a9dad,_0x28293e)=>(_0x5a9dad['push']([_0x28293e,{'content':_0x4c5a6e[_0x28293e],'classes':''}]),_0x5a9dad),[]),_0x3c64a4);return _0x419699;}['_fixMediaEmbeds'](_0x127566,_0x4956dd){if(!_0x4956dd['plugins']['has']('MediaEmbedEditing'))return _0x127566;const _0x1b7c29=_0x4956dd['plugins']['get']('MediaEmbedEditing');for(const [_0x256d90,_0x87ccc1]of Object['entries'](_0x127566)){const _0x2ee419=document['createElement']('div');_0x2ee419['innerHTML']=_0x87ccc1,(_0x2ee419['querySelectorAll']('figure.media')['forEach'](_0x43c7bc=>{const _0x5ee4b6=_0x43c7bc['querySelector']('oembed');if(_0x5ee4b6){const _0x382621=_0x5ee4b6['getAttribute']('url');if(_0x382621){const _0x20c847=_0x1b7c29['registry']['getMediaViewElement'](new _0x23f9a6(_0x4956dd['editing']['view']['document']),_0x382621,{'elementName':'','renderForEditingView':!0x0}),_0x38c486=document['createElement']('div');_0x38c486['classList']['add']('ck-media__wrapper'),_0x20c847['render'](_0x38c486,_0x4956dd['editing']['view']['domConverter']),_0x5ee4b6['replaceWith'](_0x38c486);}}}),_0x127566[_0x256d90]=_0x2ee419['innerHTML']);}return _0x127566;}['_sortRoots'](_0x44c656){if(!function(_0x1a08fc){return void 0x0!==_0x1a08fc['getRootsAttributes'];}(_0x44c656))return _0x44c656['model']['document']['getRootNames']();const _0x41c9eb=[],_0x279033=new Map();for(const _0x1a937e of _0x44c656['model']['document']['getRootNames']()){const _0x402364=_0x44c656['editing']['view']['getDomRoot'](_0x1a937e)['getClientRects']()['item'](0x0);_0x41c9eb['push'](_0x1a937e),_0x279033['set'](_0x1a937e,_0x402364);}return _0x41c9eb['sort']((_0xa21801,_0x56b1f6)=>{const _0xf23cf6=_0x279033['get'](_0xa21801),_0x302a97=_0x279033['get'](_0x56b1f6);return _0xf23cf6['y']-_0x302a97['y']||_0xf23cf6['x']-_0x302a97['x'];}),_0x41c9eb;}}class Ue extends _0x157fa6{static get['requires'](){return[re,_0x59b530];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1a1733){super(_0x1a1733),_0x1a1733['commands']['add']('previewFinalContent',new te(this['editor'])),_0x1a1733['config']['define']('trackChanges.preview.renderFunction',(_0x44c8fa,_0x522616)=>{for(const _0x3a108c of _0x522616)_0x44c8fa['appendChild'](_0x3a108c);});}}export{v as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,D as DiscardSuggestionCommand,B as ExecuteOnAllSuggestionsCommand,O as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,x as Suggestion,M as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Ne as TrackChanges,$ as TrackChangesCommand,re as TrackChangesData,Fe as TrackChangesDataGetter,d as TrackChangesEditing,Ue as TrackChangesPreview,u as TrackChangesUI};