@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20250409.0 → 0.0.0-nightly-20250412.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 (226) hide show
  1. package/build/track-changes.js +1 -1
  2. package/dist/index.js +3 -3
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +27 -27
  150. package/src/commands/acceptsuggestioncommand.js +1 -1
  151. package/src/commands/discardsuggestioncommand.js +1 -1
  152. package/src/commands/executeonallsuggestionscommand.js +1 -1
  153. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  154. package/src/commands/previewfinalcontentcommand.js +1 -1
  155. package/src/commands/trackchangescommand.js +1 -1
  156. package/src/index.js +1 -1
  157. package/src/integrations/aiassistant.js +1 -1
  158. package/src/integrations/alignment.js +1 -1
  159. package/src/integrations/basicstyles.js +1 -1
  160. package/src/integrations/blockquote.js +1 -1
  161. package/src/integrations/bookmark.js +1 -1
  162. package/src/integrations/casechange.js +1 -1
  163. package/src/integrations/ckbox.js +1 -1
  164. package/src/integrations/codeblock.js +1 -1
  165. package/src/integrations/comments.js +1 -1
  166. package/src/integrations/deletecommand.js +1 -1
  167. package/src/integrations/emoji.js +1 -1
  168. package/src/integrations/entercommand.js +1 -1
  169. package/src/integrations/findandreplace.js +1 -1
  170. package/src/integrations/font.js +1 -1
  171. package/src/integrations/formatpainter.js +1 -1
  172. package/src/integrations/heading.js +1 -1
  173. package/src/integrations/highlight.js +1 -1
  174. package/src/integrations/horizontalline.js +1 -1
  175. package/src/integrations/htmlembed.js +1 -1
  176. package/src/integrations/image.js +1 -1
  177. package/src/integrations/imagereplace.js +1 -1
  178. package/src/integrations/imagestyle.js +1 -1
  179. package/src/integrations/importword.js +1 -1
  180. package/src/integrations/indent.js +1 -1
  181. package/src/integrations/inputcommand.js +1 -1
  182. package/src/integrations/legacylist.js +1 -1
  183. package/src/integrations/legacylistproperties.js +1 -1
  184. package/src/integrations/link.js +1 -1
  185. package/src/integrations/list.js +1 -1
  186. package/src/integrations/listproperties.js +1 -1
  187. package/src/integrations/mediaembed.js +1 -1
  188. package/src/integrations/mention.js +1 -1
  189. package/src/integrations/mergefields.js +1 -1
  190. package/src/integrations/multilevellist.js +1 -1
  191. package/src/integrations/pagebreak.js +1 -1
  192. package/src/integrations/paragraph.js +1 -1
  193. package/src/integrations/removeformat.js +1 -1
  194. package/src/integrations/replacesourcecommand.js +1 -1
  195. package/src/integrations/restrictededitingmode.js +1 -1
  196. package/src/integrations/shiftentercommand.js +1 -1
  197. package/src/integrations/standardeditingmode.js +1 -1
  198. package/src/integrations/style.js +1 -1
  199. package/src/integrations/table.js +1 -1
  200. package/src/integrations/tablecaption.js +1 -1
  201. package/src/integrations/tableclipboard.js +1 -1
  202. package/src/integrations/tablecolumnresize.js +1 -1
  203. package/src/integrations/tableheadings.js +1 -1
  204. package/src/integrations/tablelayout.js +1 -1
  205. package/src/integrations/tablemergesplit.js +1 -1
  206. package/src/integrations/tableofcontents.js +1 -1
  207. package/src/integrations/tableproperties.js +1 -1
  208. package/src/integrations/template.js +1 -1
  209. package/src/integrations/title.js +1 -1
  210. package/src/integrations/undo.js +1 -1
  211. package/src/integrations/uploadcare.js +1 -1
  212. package/src/integrations/utils.js +1 -1
  213. package/src/suggestion.js +2 -2
  214. package/src/suggestiondescriptionfactory.js +1 -1
  215. package/src/trackchanges.js +1 -1
  216. package/src/trackchangesdata.js +1 -1
  217. package/src/trackchangesediting.js +1 -1
  218. package/src/trackchangespreview.js +1 -1
  219. package/src/trackchangesui.js +1 -1
  220. package/src/ui/suggestioncontroller.js +2 -2
  221. package/src/ui/view/basesuggestionthreadview.js +1 -1
  222. package/src/ui/view/suggestionthreadview.js +1 -1
  223. package/src/ui/view/suggestionview.js +1 -1
  224. package/src/ui/view/trackchangespreviewview.js +1 -1
  225. package/src/utils/common-translations.js +1 -1
  226. package/src/utils/utils.js +1 -1
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x498d20,Plugin as _0x23c200,PendingActions as _0x33e286}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x135682,ObservableMixin as _0x2d11cf,uid as _0x53d19c,priorities as _0x3d0176,insertToPriorityArray as _0x10b125,logWarning as _0x2beec8,getEnvKeystrokeText as _0x409b4d,FocusTracker as _0x2929e3,KeystrokeHandler as _0x25983f,Collection as _0x48a8d2}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x5f3596,IconCancel as _0x94c7b6,IconTrackChanges as _0x58988a}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0xfbdb76,View as _0x3399c7,ViewCollection as _0x4bfd5d,FocusCycler as _0x1f0301,ViewModel as _0x3b56a2,createDropdown as _0x49ac1c,SplitButtonView as _0x354460,addListToDropdown as _0x457cdc,MenuBarMenuView as _0x1518f2,MenuBarMenuListView as _0x43e795,ListSeparatorView as _0x4b3274,MenuBarMenuListItemView as _0x5de00b,MenuBarMenuListItemButtonView as _0x4654ec,BodyCollection as _0x274fda,Dialog as _0x97573}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x2d1043,hashObject as _0x46b12e,surroundingMarkersDetector as _0x46dcc9,FOCUS_ANNOTATION_KEYSTROKE as _0x1eee70,AriaDescriptionView as _0x4b2f20,setupThreadKeyboardNavigation as _0x413ee0,trimHtml as ti,UserView as _0x1524eb,LateFocusButtonView as _0x36ea76,getDateTimeFormatter as _0x58b884,getAllMarkersDomElementsSorted as _0x529b2c,sanitizeEditorConfig as _0x1567b8}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x2686aa,LiveRange as _0x2de0d6,LivePosition as _0x4f4955,DowncastWriter as _0x173656}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x420c05,toWidget as _0x3b0d81}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x13be22,set as _0x2455ee,isEqual as _0x35ec39,unset as _0x4e4915,omit as Ft}from'es-toolkit/compat';import{Delete as _0x4cf11b,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x3d6c20}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x3a22ec}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x498d20{['_enabledCommands'];constructor(_0x4ec996,_0x4a18a7){super(_0x4ec996),this['_enabledCommands']=_0x4a18a7,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 _0x5636c9 of this['editor']['commands']['commands']())_0x5636c9['affectsData']&&!this['_enabledCommands']['has'](_0x5636c9)&&_0x5636c9['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x26fe43 of this['editor']['commands']['commands']())_0x26fe43['affectsData']&&!this['_enabledCommands']['has'](_0x26fe43)&&_0x26fe43['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x498d20{['_suggestions'];constructor(_0x571314,_0x12d19d){super(_0x571314),this['_suggestions']=_0x12d19d,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4b0d11){const _0x4f1a30=this['_suggestions']['get'](_0x4b0d11);if(!_0x4f1a30)throw new _0x135682('track-changes-accept-suggestion-not-found',this);const _0x213d15=_0x4f1a30['getRanges']();this['editor']['model']['canEditAt'](_0x213d15)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x4f1a30);}}class R extends _0x498d20{['_suggestions'];constructor(_0x37b250,_0x5b259d){super(_0x37b250),this['_suggestions']=_0x5b259d,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x1273ed){const _0x25e039=this['_suggestions']['get'](_0x1273ed);if(!_0x25e039)throw new _0x135682('track-changes-discard-suggestion-not-found',this);const _0x5b2de3=_0x25e039['getRanges']();this['editor']['model']['canEditAt'](_0x5b2de3)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x25e039);}}function ls(_0x3b385b,_0x1d4601){let _0x18997e='';return _0x18997e+=_0x3b385b['split']('*')['map']((_0x1355f0,_0x27bb10)=>_0x27bb10%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x1355f0)+'</span>':nn(_0x1355f0))['join'](''),_0x1d4601&&(_0x18997e+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x1d4601['value']+'\x22\x20title=\x22'+_0x1d4601['title']+'\x22></span>'),_0x18997e;}function nn(_0x2076ad){const _0x38c9bf=document['createElement']('span');return _0x38c9bf['innerText']=_0x2076ad,_0x38c9bf['innerHTML'];}function ts(_0x3adeaf){return _0x3adeaf['sort']((_0x43e5ed,_0x13d86f)=>'deletion'==_0x43e5ed['type']&&'deletion'!=_0x13d86f['type']?-0x1:'deletion'!=_0x43e5ed['type']&&'deletion'==_0x13d86f['type']?0x1:0x0);}function to(_0x23a2d3,_0x460fbe){let _0x2d110c,_0x314266=0x0;const _0x51db5d=[],_0x323470=_0x460fbe['schema'];for(;_0x314266<_0x23a2d3['length'];){const _0x5b1b91=_0x23a2d3[_0x314266],_0x11b9e3=_0x23a2d3[_0x314266+0x1];_0x2d110c||(_0x2d110c=_0x460fbe['createPositionBefore'](_0x5b1b91)),on(_0x460fbe,_0x5b1b91,_0x11b9e3)||(_0x51db5d['push'](_0x460fbe['createRange'](_0x2d110c,_0x323470['isObject'](_0x5b1b91)?_0x460fbe['createPositionAfter'](_0x5b1b91):_0x460fbe['createPositionAt'](_0x5b1b91,'end'))),_0x2d110c=null),_0x314266++;}return _0x51db5d;}function on(_0x31d510,_0x168c8d,_0x55b161){if(!_0x55b161)return!0x1;const _0x3d2774=_0x31d510['createPositionAfter'](_0x168c8d),_0x452f26=_0x31d510['createPositionBefore'](_0x55b161);return _0x3d2774['isTouching'](_0x452f26);}function rs(_0x59acf5,_0x2743d5,_0x58df0d){for(;_0x58df0d['length'];){const _0x45b646=_0x58df0d['splice'](0x0,0x64);_0x59acf5['change'](()=>{for(const _0x59c964 of _0x45b646)_0x59c964['isInContent']&&_0x2743d5['execute'](_0x59c964['id']);});}}class x extends _0x498d20{['_command'];['_suggestions'];constructor(_0x3c32a8,_0x58948d,_0x36ef26){super(_0x3c32a8),this['_command']=_0x58948d,this['_suggestions']=_0x36ef26,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3f88ca=Array['from'](this['_suggestions']['values']())['some'](_0x360097=>_0x360097['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x3f88ca;}['execute'](){const _0x46aed3=ts(Array['from'](this['_suggestions']['values']()));for(const _0x2cb0bb of _0x46aed3){const _0x2d212d=_0x2cb0bb['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2d212d))return;}rs(this['editor']['model'],this['_command'],_0x46aed3);}}class E extends _0x498d20{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x4d8007,_0x443f5a,_0x2a41db){super(_0x4d8007),this['_command']=_0x443f5a,this['_suggestions']=_0x2a41db,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x44be27=this['editor']['model']['document']['selection'],_0x2d4b15=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x20758d,_0x2fcac5){const _0x22fca6=Array['from'](_0x20758d['getRanges']()),_0x2299bc=new Set();for(const _0x3f9aa9 of _0x2fcac5)if(_0x3f9aa9['isInContent']){for(const _0x302902 of _0x22fca6)for(const _0x390db4 of _0x3f9aa9['getRanges']())(_0x302902['isIntersecting'](_0x390db4)||_0x20758d['isCollapsed']&&!_0x3f9aa9['isMultiRange']&&_0x3f9aa9['next']&&_0x390db4['end']['isTouching'](_0x302902['start']))&&_0x2299bc['add'](_0x3f9aa9);}return _0x2299bc;}(_0x44be27,_0x2d4b15),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x340f3c=ts(Array['from'](this['_selectedSuggestions']));for(const _0x2ddd09 of _0x340f3c){const _0x16b9eb=_0x2ddd09['getRanges']();if(!this['editor']['model']['canEditAt'](_0x16b9eb))return;}rs(this['editor']['model'],this['_command'],_0x340f3c);}}class o extends/* #__PURE__ -- @preserve */
24
- _0x2d11cf(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x549cb8,_0x5ef23f){super(),this['id']=_0x5ef23f['id'],this['type']=_0x5ef23f['type'],this['subType']=_0x5ef23f['subType']||null,this['author']=_0x5ef23f['author'],this['creator']=_0x5ef23f['creator']||_0x5ef23f['author'],this['isExternal']=Boolean(_0x5ef23f['attributes']&&_0x5ef23f['attributes']['@external']),this['data']=null,this['_model']=_0x549cb8,this['_onAccept']=_0x5ef23f['onAccept'],this['_onDiscard']=_0x5ef23f['onDiscard'],this['_onAttributesChange']=_0x5ef23f['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x5ef23f['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 _0x5d164f=this;for(;_0x5d164f['previous'];)_0x5d164f=_0x5d164f['previous'];return _0x5d164f;}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'](_0x421c03){this['_markerNames']['add'](_0x421c03);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x1d46b2=>this['_model']['markers']['get'](_0x1d46b2))['filter'](_0x25529e=>_0x25529e);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x4c44e1=>{for(const _0x3938c6 of this['getMarkers']())_0x4c44e1['removeMarker'](_0x3938c6);}),this['_markerNames']['clear']();}['removeMarker'](_0x129c4d){this['_model']['change'](_0x4574b0=>{_0x4574b0['removeMarker'](_0x129c4d);}),this['_markerNames']['delete'](_0x129c4d);}['addRange'](_0x4bbfc8){const _0x2fffa5='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x2fffa5),this['_model']['change'](_0x50c656=>{_0x50c656['addMarker'](_0x2fffa5,{'range':_0x4bbfc8,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x3747da){for(const _0x273cf7 of this['getRanges']())if(_0x273cf7['isIntersecting'](_0x3747da))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x7e3f50=>_0x7e3f50['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x3a157c,_0x3ef7ce)=>[..._0x3a157c,..._0x3ef7ce['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x454a1e=this['getRanges']();if(0x1!=_0x454a1e['length'])return null;const _0x5409ad=_0x454a1e[0x0],_0x1200b4=_0x5409ad['start']['nodeAfter'],_0x336699=_0x5409ad['end']['nodeBefore'];return _0x1200b4 instanceof _0x2686aa?_0x1200b4!=_0x336699?null:_0x1200b4: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 _0x44d253=[];let _0x2ba8db=this['head'];for(;_0x2ba8db;)_0x44d253['push'](_0x2ba8db),_0x2ba8db=_0x2ba8db['next'];return _0x44d253;}['setAttribute'](_0x55366c,_0x1ef52a){const _0x736202=_0x13be22(this['attributes']);_0x2455ee(_0x736202,_0x55366c,_0x1ef52a),_0x35ec39(_0x736202,this['attributes'])||(this['attributes']=_0x736202,this['_onAttributesChange'](_0x736202));}['removeAttribute'](_0xfa5cb9){const _0x55a5dc=_0x13be22(this['attributes']);_0x4e4915(_0x55a5dc,_0xfa5cb9),_0x35ec39(_0x55a5dc,this['attributes'])||(this['attributes']=_0x55a5dc,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 _0x53d19c()['substr'](0x1,0x5);}}function c(_0x5ba9f3,_0x40656e,_0x2208f8){const _0x239cae=_0x5ba9f3['t'],t=_0x5ba9f3['t'];switch(_0x40656e){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',_0x2208f8);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x2208f8);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x2208f8);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x2208f8);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x2208f8);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',_0x2208f8);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x2208f8);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',_0x2208f8);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x2208f8);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x2208f8);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x2208f8);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x2208f8);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x2208f8);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x2208f8);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x2208f8);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x2208f8);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x2208f8);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x2208f8);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x2208f8);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x2208f8);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x2208f8);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x2208f8);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x2208f8);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x2208f8);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x2208f8);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'},_0x2208f8);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x2208f8);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x2208f8);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x2208f8);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x2208f8);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x2208f8);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x2208f8);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x2208f8);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'},_0x2208f8);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x2208f8);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x2208f8);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x2208f8);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x2208f8);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'},_0x2208f8);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x2208f8);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'},_0x2208f8);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x2208f8);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x2208f8);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'},_0x2208f8);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x2208f8);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'},_0x2208f8);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x2208f8);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x2208f8);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'},_0x2208f8);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x2208f8);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 _0x239cae({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x2208f8);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x239cae({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x2208f8);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x2208f8);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'},_0x2208f8);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'},_0x2208f8);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'},_0x2208f8);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x40656e;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x42ac93,_0x55562f){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x42ac93,this['_locale']=_0x55562f;}['getDescriptions'](_0x390481){const _0x2b8e53=[],_0x531ddc=new Set(),_0x5b629d=new Set();for(let _0x5a4bec=0x0;_0x5a4bec<_0x390481['length'];_0x5a4bec++){const _0x191ab4=_0x390481[_0x5a4bec];if(!_0x191ab4['isInContent'])continue;const _0x3059f8=this['_handleCustomCallbackDescription'](_0x191ab4);if(_0x3059f8){if(null!=_0x191ab4['subType']){if(_0x531ddc['has'](_0x191ab4['subType']))continue;_0x531ddc['add'](_0x191ab4['subType']);}_0x2b8e53['push'](_0x3059f8);}else{if('attribute'!=_0x191ab4['type'])'insertion'!=_0x191ab4['type']&&'deletion'!=_0x191ab4['type']||this['_handleInsertRemoveSuggestionDescription'](_0x2b8e53,_0x191ab4,_0x390481[_0x5a4bec+0x1]);else{const _0x36d1c8=_0x191ab4['data']['key'];if(_0x5b629d['has'](_0x36d1c8))continue;_0x5b629d['add'](_0x191ab4['data']['key']),_0x36d1c8==u?this['_handleRenameSuggestionDescription'](_0x2b8e53,_0x191ab4):this['_handleAttributeSuggestionDescription'](_0x2b8e53,_0x191ab4);}}}return this['_resolveDescriptionItems'](_0x2b8e53);}['registerDescriptionCallback'](_0x441ead){this['_customCallbacks']['push'](_0x441ead);}['registerElementLabel'](_0x4d9cf9,_0x660f6,_0xc16094=_0x3d0176['normal']){'function'==typeof _0x4d9cf9?_0x10b125(this['_itemLabelsCallbacks'],{'matchingCallback':_0x4d9cf9,'label':_0x660f6,'priority':_0xc16094}):this['_itemLabels']['set'](_0x4d9cf9,_0x660f6);}['registerAttributeLabel'](_0x5e70c5,_0x4f29d1){this['_attributeLabels']['set'](_0x5e70c5,_0x4f29d1);}['getItemLabel'](_0x18e0c0,_0x45794f=0x1){let _0x2c94d8;for(const _0x252aa8 of this['_itemLabelsCallbacks'])if(_0x252aa8['matchingCallback'](_0x18e0c0)){_0x2c94d8=_0x252aa8['label'];break;}return _0x2c94d8||(_0x2c94d8=this['_itemLabels']['get'](_0x18e0c0['name'])),_0x2c94d8?_0x2c94d8(_0x45794f):0x1!==_0x45794f?_0x45794f+'\x20'+_0x18e0c0['name']+'s':''+_0x18e0c0['name'];}['_addDescriptionItems'](_0x225150,_0x9d5f7f){const _0x2daefb=_0x9d5f7f['getFirstRange']()['getWalker'](),_0x19ada2='insertion'==_0x9d5f7f['type']?'add':'remove';for(const _0xbce4b1 of _0x2daefb){const _0xd2a0f0=_0xbce4b1['item'],_0x416463=_0x225150[_0x225150['length']-0x1];if(_0xd2a0f0['is']('$textProxy'))_0x416463&&_0x416463['type']['indexOf']('Container')>-0x1&&_0x225150['pop'](),_0x416463&&'text'==_0x416463['type']?_0x416463[_0x19ada2]+=_0xd2a0f0['data']:_0x225150['push']({'type':'text','add':'add'==_0x19ada2?_0xd2a0f0['data']:'','remove':'remove'==_0x19ada2?_0xd2a0f0['data']:''});else{if(this['_schema']['isObject'](_0xd2a0f0)){const _0x140d67=_0xd2a0f0;if(_0x416463&&_0x416463['type']['indexOf']('Container')>-0x1&&_0x225150['pop'](),'elementEnd'==_0xbce4b1['type'])continue;_0x416463&&_0x416463['type']==_0x19ada2+'Object'&&_0x416463['element']['name']==_0x140d67['name']?_0x416463['quantity']++:_0x225150['push']({'type':_0x19ada2+'Object','element':_0x140d67,'quantity':0x1}),_0x2daefb['skip'](_0x42b616=>!('elementEnd'==_0x42b616['type']&&_0x42b616['item']==_0xd2a0f0));}else{if(this['_schema']['checkChild'](_0xd2a0f0,'$text')||_0xd2a0f0['is']('element','softBreak')){const _0x114d3a=_0xd2a0f0;if('add'==_0x19ada2&&'elementStart'==_0xbce4b1['type']||'remove'==_0x19ada2&&'elementEnd'==_0xbce4b1['type'])continue;if(_0x416463&&-0x1==_0x416463['type']['indexOf']('Container')){'text'==_0x416463['type']&&(_0x416463[_0x19ada2]+='\x0a');continue;}let _0x424378;if(_0x424378='add'==_0x19ada2?_0x114d3a['nextSibling']&&!this['_schema']['isObject'](_0x114d3a['nextSibling'])?_0x114d3a['nextSibling']:null:_0x114d3a['previousSibling']&&!this['_schema']['isObject'](_0x114d3a['previousSibling'])?_0x114d3a['previousSibling']:null,_0x114d3a['isEmpty']||_0x424378&&_0x424378['isEmpty']){const _0x24a7e9=_0x424378&&_0x424378['isEmpty']?_0x424378:_0x114d3a;_0x416463&&_0x416463['type']==_0x19ada2+'EmptyContainer'&&_0x416463['element']['name']==_0x24a7e9['name']?_0x416463['quantity']++:_0x225150['push']({'type':_0x19ada2+'EmptyContainer','element':_0x24a7e9,'quantity':0x1});}else _0x225150['push']({'type':_0x19ada2+'Container','element':_0x114d3a});}}}}}['_resolveDescriptionItems'](_0x4a4345){const _0x161b47=this['_locale'],_0x1029bf=[],_0x2062c2=[],_0x45eac9=[];for(const _0x2547f1 of _0x4a4345)switch(_0x2547f1['type']){case'text':if(_0x2547f1['add']=_0x2547f1['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x2547f1['remove']=_0x2547f1['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x2547f1['add']&&''!=_0x2547f1['remove']){_0x1029bf['push']({'type':'replace','content':c(_0x161b47,'REPLACE_TEXT',['\x22'+_0x2547f1['remove']+'\x22','\x22'+_0x2547f1['add']+'\x22'])});continue;}if(null!=_0x2547f1['add']['match'](/^ +$/)){_0x1029bf['push']({'type':'insertion','content':c(_0x161b47,'*Insert:*\x20%0',c(_0x161b47,'ELEMENT_SPACE',_0x2547f1['add']['length']))});continue;}if(null!=_0x2547f1['remove']['match'](/^ +$/)){_0x1029bf['push']({'type':'deletion','content':c(_0x161b47,'*Remove:*\x20%0',c(_0x161b47,'ELEMENT_SPACE',_0x2547f1['remove']['length']))});continue;}if(''!=_0x2547f1['add']){_0x1029bf['push']({'type':'insertion','content':c(_0x161b47,'*Insert:*\x20%0','\x22'+_0x2547f1['add']+'\x22')});continue;}_0x1029bf['push']({'type':'deletion','content':c(_0x161b47,'*Remove:*\x20%0','\x22'+_0x2547f1['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x1029bf['push']({'type':'insertion','content':c(_0x161b47,'*Insert:*\x20%0',this['getItemLabel'](_0x2547f1['element'],_0x2547f1['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x1029bf['push']({'type':'deletion','content':c(_0x161b47,'*Remove:*\x20%0',this['getItemLabel'](_0x2547f1['element'],_0x2547f1['quantity']))});continue;case'addContainer':_0x1029bf['push']({'type':'insertion','content':c(_0x161b47,'*Split:*\x20%0',this['getItemLabel'](_0x2547f1['element'],_0x2547f1['quantity']))});continue;case'removeContainer':_0x1029bf['push']({'type':'deletion','content':c(_0x161b47,'*Merge:*\x20%0',this['getItemLabel'](_0x2547f1['element'],_0x2547f1['quantity']))});continue;case'addFormat':_0x2062c2['push'](_0x2547f1['key']);continue;case'removeFormat':_0x45eac9['push'](_0x2547f1['key']);continue;default:_0x1029bf['push'](_0x2547f1);}if(_0x2062c2['length']){const _0xa5094e=_0x2062c2['map'](_0xf62980=>this['_attributeLabels']['has'](_0xf62980)?this['_attributeLabels']['get'](_0xf62980):_0xf62980)['join'](',\x20');_0x1029bf['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0xa5094e)});}if(_0x45eac9['length']){const _0x126688=_0x45eac9['map'](_0x40ab62=>this['_attributeLabels']['has'](_0x40ab62)?this['_attributeLabels']['get'](_0x40ab62):_0x40ab62)['join'](',\x20');_0x1029bf['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x126688)});}return _0x1029bf;}['_handleCustomCallbackDescription'](_0x31dd23){for(const _0x501960 of this['_customCallbacks']){const _0x3de277=_0x501960(_0x31dd23);if(_0x3de277&&'type'in _0x3de277)return _0x3de277;}}['_handleAttributeSuggestionDescription'](_0x1a5edb,_0x5c7899){const _0xb58f6c=_0x5c7899['data'],_0x3cf7d4=void 0x0===_0xb58f6c['newValue']?'removeFormat':'addFormat';_0x1a5edb['push']({'type':_0x3cf7d4,'key':_0xb58f6c['key']});}['_handleRenameSuggestionDescription'](_0xc10254,_0xbcda8d){_0xc10254['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0xbcda8d['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0xf156,_0x4065d9,_0x13e341){if(this['_addDescriptionItems'](_0xf156,_0x4065d9),_0x13e341&&_0x13e341['getFirstRange']()&&!_0x4065d9['getFirstRange']()['end']['isEqual'](_0x13e341['getFirstRange']()['start'])){const _0x48bd50=_0xf156[_0xf156['length']-0x1],_0x3295eb='insertion'==_0x4065d9['type']?'add':'remove';_0x48bd50&&'text'==_0x48bd50['type']&&(_0x48bd50[_0x3295eb]+='\x0a');}}}class U extends _0x23c200{['afterInit'](){const _0xae19fb=this['editor'],_0x4fc67a=_0xae19fb['plugins']['get']('TrackChangesEditing');_0xae19fb['commands']['get']('showAIAssistant')&&_0x4fc67a['enableCommand']('showAIAssistant');}}class V extends _0x23c200{['afterInit'](){const _0x48ebd1=this['editor'],_0x89bdea=_0x48ebd1['locale'];if(!_0x48ebd1['plugins']['has']('AlignmentEditing'))return;const _0xf99754=_0x48ebd1['plugins']['get']('TrackChangesEditing');_0xf99754['enableDefaultAttributesIntegration']('alignment'),_0xf99754['registerBlockAttribute']('alignment'),_0xf99754['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x89bdea,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x303a79=this['editor'],_0x3e6e4a=_0x303a79['locale'];_0x303a79['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36076d=>{if('formatBlock'!=_0x36076d['type'])return;const {data:_0x50ddb9}=_0x36076d;if(_0x50ddb9&&'alignment'==_0x50ddb9['commandName']){const _0x340120=_0x50ddb9['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x3e6e4a,'*Format:*\x20%0',function(_0xd86061){switch(_0xd86061){case'left':return c(_0x3e6e4a,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x3e6e4a,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x3e6e4a,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x3e6e4a,'FORMAT_JUSTIFY_TEXT');}}(_0x340120))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x23c200{['afterInit'](){const _0x1fcefc=this['editor'],_0x271c6a=_0x1fcefc['plugins']['get']('TrackChangesEditing'),_0x1c491e=_0x1fcefc['locale'];for(const _0x2b39e5 of Zt){if(!_0x1fcefc['plugins']['has'](_0x2b39e5))continue;const _0x302f0d=_0x2b39e5['slice'](0x0,-0x7)['toLowerCase'](),_0x3721a6='FORMAT_'+_0x302f0d['toUpperCase']();_0x271c6a['enableDefaultAttributesIntegration'](_0x302f0d),_0x271c6a['registerInlineAttribute'](_0x302f0d),_0x271c6a['descriptionFactory']['registerAttributeLabel'](_0x302f0d,c(_0x1c491e,_0x3721a6));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1c67a4=this['editor'],_0x3d25c7=_0x1c67a4['locale'],_0x1e0cfe=_0x1c67a4['plugins']['get']('TrackChangesEditing');function _0x40d727(_0xf9e74d,_0x2bab10){_0x1e0cfe['descriptionFactory']['registerDescriptionCallback'](_0x2768d8=>{if('formatInline'!=_0x2768d8['type'])return;const {data:_0x1ad930}=_0x2768d8;return _0x1ad930&&_0x1ad930['commandName']===_0xf9e74d?_0x1ad930['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x3d25c7,'*Format:*\x20%0',_0x2bab10)}:{'type':'format','content':c(_0x3d25c7,'*Remove\x20format:*\x20%0',_0x2bab10)}:void 0x0;});}_0x40d727('bold',c(_0x3d25c7,'FORMAT_BOLD')),_0x40d727('italic',c(_0x3d25c7,'FORMAT_ITALIC')),_0x40d727('underline',c(_0x3d25c7,'FORMAT_UNDERLINE')),_0x40d727('code',c(_0x3d25c7,'FORMAT_CODE')),_0x40d727('strikethrough',c(_0x3d25c7,'FORMAT_STRIKETHROUGH')),_0x40d727('subscript',c(_0x3d25c7,'FORMAT_SUBSCRIPT')),_0x40d727('superscript',c(_0x3d25c7,'FORMAT_SUPERSCRIPT'));}}class G extends _0x23c200{['afterInit'](){const _0x104a5e=this['editor'],_0xfbf9fa=_0x104a5e['locale'];if(!_0x104a5e['plugins']['has']('BlockQuoteEditing'))return;const _0x28ef5d=_0x104a5e['plugins']['get']('TrackChangesEditing'),_0x2077be=this['editor']['commands']['get']('blockQuote');_0x28ef5d['enableCommand']('blockQuote',(_0x1f3db9,_0x21a783={})=>{const _0x1e2f59=this['editor']['model']['document']['selection'],_0x4543c7=_0x21a783&&void 0x0!==_0x21a783['forceValue']?_0x21a783['forceValue']:!_0x2077be['value'];let _0x452c5b=[];if(_0x4543c7){const _0x1e131c=Array['from'](_0x1e2f59['getSelectedBlocks']())['filter'](_0x32fcf4=>oo(_0x32fcf4)||function(_0xc7ffce,_0x2f8332){const _0x3b73fa=_0x2f8332['checkChild'](_0xc7ffce['parent'],'blockQuote'),_0x4e3c97=_0x2f8332['checkChild'](['$root','blockQuote'],_0xc7ffce);return _0x3b73fa&&_0x4e3c97;}(_0x32fcf4,this['editor']['model']['schema']));_0x452c5b=to(_0x1e131c,_0x104a5e['model']);}else{const _0x5e3624=Array['from'](_0x1e2f59['getSelectedBlocks']())['filter'](_0x1e40b1=>oo(_0x1e40b1));_0x452c5b=to(_0x5e3624,_0x104a5e['model']);}_0x104a5e['model']['change'](()=>{for(const _0x6f697c of _0x452c5b)_0x28ef5d['markBlockFormat'](_0x6f697c,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x4543c7}]});});}),_0x28ef5d['descriptionFactory']['registerDescriptionCallback'](_0x1a0b4d=>{const {data:_0x2c0b55}=_0x1a0b4d;if(_0x2c0b55&&'blockQuote'==_0x2c0b55['commandName']){const _0x4be1bb=c(_0xfbf9fa,'ELEMENT_BLOCK_QUOTE');return _0x2c0b55['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0xfbf9fa,'*Set\x20format:*\x20%0',_0x4be1bb)}:{'type':'format','content':c(_0xfbf9fa,'*Remove\x20format:*\x20%0',_0x4be1bb)};}});}}function oo(_0x1bbf19){return'blockQuote'==_0x1bbf19['parent']['name'];}class L extends _0x23c200{['afterInit'](){const _0x340546=this['editor'],_0x49f2e4=_0x340546['locale'],_0x566c71=_0x340546['plugins']['get']('TrackChangesEditing');_0x340546['plugins']['has']('BookmarkEditing')&&(_0x566c71['enableCommand']('insertBookmark'),_0x566c71['enableDefaultAttributesIntegration']('updateBookmark'),_0x566c71['registerBlockAttribute']('bookmarkId'),_0x566c71['descriptionFactory']['registerDescriptionCallback'](_0x502faf=>{if('insertion'!=_0x502faf['type']&&'deletion'!=_0x502faf['type']&&'attribute'!=_0x502faf['type'])return;const _0x356b4d=_0x502faf['getContainedElement']();if(null==_0x356b4d)return;if(!_0x356b4d['is']('element','bookmark'))return;const _0x38f8e4=_0x356b4d['getAttribute']('bookmarkId');if('insertion'==_0x502faf['type'])return{'type':'insertion','content':c(_0x49f2e4,'*Insert:*\x20%0','\x22'+_0x38f8e4+'\x22\x20'+c(_0x49f2e4,'ELEMENT_BOOKMARK'))};if('deletion'==_0x502faf['type'])return{'type':'deletion','content':c(_0x49f2e4,'*Remove:*\x20%0','\x22'+_0x38f8e4+'\x22\x20'+c(_0x49f2e4,'ELEMENT_BOOKMARK'))};const {data:_0x1c4b27}=_0x502faf;if(!_0x1c4b27||'bookmarkId'!=_0x1c4b27['key'])return;return{'type':'format','content':c(_0x49f2e4,'*Set\x20bookmark:*\x20%0','\x22'+_0x1c4b27['newValue']+'\x22')};}));}}class J extends _0x23c200{['afterInit'](){const _0x19de65=this['editor'];_0x19de65['plugins']['has']('CaseChange')&&(_0x19de65['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x19de65['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x19de65['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x23c200{['afterInit'](){const _0x405203=this['editor'];_0x405203['commands']['get']('ckbox')&&_0x405203['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x23c200{['afterInit'](){const _0x5745a4=this['editor'];if(!_0x5745a4['plugins']['has']('CodeBlock'))return;const _0x4bf5ab=_0x5745a4['plugins']['get']('TrackChangesEditing'),_0x401d6d=_0x5745a4['locale'],_0x2e1ed3=_0x5745a4['config']['get']('codeBlock')['languages'],_0x35d472=_0x5745a4['commands']['get']('codeBlock');_0x4bf5ab['enableCommand']('indentCodeBlock'),_0x4bf5ab['enableCommand']('outdentCodeBlock'),_0x4bf5ab['enableCommand']('codeBlock',(_0x5c2fab,_0x3d18c2={})=>{const _0x237c47=_0x5745a4['model'],_0x45551c=_0x5745a4['model']['document']['selection'],_0x3c47fd=_0x3d18c2&&void 0x0!==_0x3d18c2['forceValue']?_0x3d18c2['forceValue']:!_0x35d472['value'];let _0x34ce3b;_0x3d18c2['language']||(_0x3d18c2['language']=_0x2e1ed3[0x0]['language']),_0x34ce3b=_0x3c47fd?Array['from'](_0x45551c['getSelectedBlocks']())['filter'](_0x5d965c=>eo(_0x5d965c)||function(_0x1db2f7,_0x4cbc87){if(_0x1db2f7['is']('rootElement')||_0x4cbc87['isLimit'](_0x1db2f7))return!0x1;return _0x4cbc87['checkChild'](_0x1db2f7['parent'],'codeBlock');}(_0x5d965c,_0x237c47['schema'])):Array['from'](_0x45551c['getSelectedBlocks']())['filter'](_0x45a64f=>eo(_0x45a64f));const _0x2f6693=to(_0x34ce3b,_0x237c47);_0x237c47['change'](()=>{for(const _0x799985 of _0x2f6693)_0x4bf5ab['markBlockFormat'](_0x799985,{'commandName':'codeBlock','commandParams':[{..._0x3d18c2,'forceValue':_0x3c47fd}],'formatGroupId':'blockName'});});}),(_0x4bf5ab['descriptionFactory']['registerElementLabel']('codeBlock',_0x3edfb7=>c(_0x401d6d,'ELEMENT_CODE_BLOCK',_0x3edfb7)),_0x4bf5ab['descriptionFactory']['registerDescriptionCallback'](_0x1fca52=>{if('formatBlock'!=_0x1fca52['type'])return;const _0x25189d=_0x401d6d['t'],{data:_0x101a6f}=_0x1fca52;if(!_0x101a6f||'codeBlock'!=_0x101a6f['commandName'])return;const _0x465e39=_0x101a6f['commandParams'][0x0]['language'],_0x2f3199=_0x25189d(_0x2e1ed3['find'](_0x34d958=>_0x34d958['language']===_0x465e39)['label'])['toLowerCase']();return _0x101a6f['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x401d6d,'*Set\x20format:*\x20%0',c(_0x401d6d,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x2f3199+')')}:{'type':'format','content':c(_0x401d6d,'*Remove\x20format:*\x20%0',c(_0x401d6d,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x57d56c){return'codeBlock'==_0x57d56c['name'];}class q extends _0x23c200{['afterInit'](){const _0x10b97f=this['editor'];if(!_0x10b97f['plugins']['has']('CommentsEditing'))return;_0x10b97f['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x15dc3a,_0x48cf4b,_0x487f35){const _0x2d293c=[];for(const _0x5a59e5 of _0x48cf4b['getItems']())_0x5a59e5['hasAttribute'](_0x15dc3a)&&_0x2d293c['push'](_0x487f35['createRangeOn'](_0x5a59e5));return _0x2d293c;}function Fe(_0x179a49,_0x432b2b,{showActiveMarker:_0x8eb19c=!0x0}={}){const _0x5b4caa=_0x179a49['plugins']['get']('TrackChangesEditing');return(_0x20c6d8,_0xdcce90,_0x14c935)=>{if(!_0x14c935['consumable']['test'](_0xdcce90['markerRange'],_0x20c6d8['name']))return;const _0x64610f=_0xdcce90['markerRange']['getWalker'](),_0x5c9b7e=_0xdcce90['markerRange']['start'],_0x1911f0=_0x179a49['model']['schema'];let _0xc109e5=null,_0x398c8d=null,_0x32a004=!0x1,_0x273fe8=!0x1;for(const _0x121f62 of _0x64610f){const _0x12dfd6=_0x121f62['item'];_0x32a004=_0x32a004||_0x1911f0['isContent'](_0x12dfd6);const _0x363930=_0x14c935['mapper']['toViewElement'](_0x12dfd6);if(_0x363930&&_0x363930['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x121f62['type']&&(_0x1911f0['isBlock'](_0x12dfd6)&&!_0x1911f0['isLimit'](_0x12dfd6)&&(_0x12dfd6['nextSibling']||_0x5c9b7e['isAtEnd']?_0xc109e5&&_0xc109e5['parent']==_0x12dfd6||(_0xc109e5=_0x12dfd6,_0x15a4c1(_0x121f62['previousPosition']),_0x273fe8=!0x0):_0x398c8d=_0x398c8d||_0x121f62['previousPosition']));}function _0x15a4c1(_0x5212dc){const {authorId:_0x4e91e3}=_0x5b4caa['_splitMarkerName'](_0xdcce90['markerName']),_0x5462c0=_0x14c935['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x432b2b,'data-author-id':_0x4e91e3}),_0x3ef95a=_0x14c935['mapper']['toViewPosition'](_0x5212dc);_0x8eb19c&&_0x5b4caa['activeMarkers']['includes'](_0xdcce90['markerName'])&&_0x14c935['writer']['addClass']('ck-suggestion-marker--active',_0x5462c0),_0x14c935['writer']['insert'](_0x3ef95a,_0x5462c0),_0x14c935['mapper']['bindElementToMarker'](_0x5462c0,_0xdcce90['markerName']);}_0x32a004||_0x273fe8||!_0x398c8d||_0x15a4c1(_0x398c8d);};}class z extends _0x23c200{static get['requires'](){return[_0x4cf11b];}['init'](){const _0x5cd710=this['editor'],_0x127185=_0x5cd710['plugins']['get']('TrackChangesEditing');_0x127185['enableCommand']('delete');const _0x262c7a=_0x5cd710['commands']['get']('deleteForward');_0x127185['enableCommand']('deleteForward',(_0x56758a,_0x320a97={})=>{const _0x5bbe8b=_0x5cd710['model']['createSelection'](_0x5cd710['model']['document']['selection']);_0x5bbe8b['isCollapsed']&&_0x5cd710['model']['modifySelection'](_0x5bbe8b,{'direction':'forward','unit':_0x320a97['unit']});const _0x290e99=_0x5bbe8b['getFirstRange'](),_0x59787d=_0x2de0d6['fromRange'](_0x290e99);let _0x4df75d;_0x56758a(_0x320a97),_0x4df75d='$graveyard'==_0x59787d['root']['rootName']?_0x5cd710['model']['createRange'](_0x290e99['start']):_0x5cd710['model']['createRange'](_0x59787d['start'],_0x59787d['end']),_0x59787d['detach'](),_0x5cd710['model']['enqueueChange'](_0x262c7a['buffer']['batch'],_0x29b991=>{_0x262c7a['buffer']['lock'](),_0x29b991['setSelection'](_0x29b991['createRange'](_0x4df75d['end'])),_0x262c7a['buffer']['unlock']();});}),_0x5cd710['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x5cd710,'merge'),{'priority':'high'}),_0x5cd710['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x277c95,_0x2a299b,_0x5cb756)=>{_0x5cb756['options']['showSuggestionHighlights']&&Fe(_0x5cd710,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x277c95,_0x2a299b,_0x5cb756);},{'priority':'high'}),_0x5cd710['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x3c24e4,_0x5d1170,_0x5583b4)=>{const _0x37f69e=_0x5583b4['mapper']['markerNameToElements'](_0x5d1170['markerName']);if(_0x37f69e){for(const _0x5ebabc of _0x37f69e)_0x5ebabc['is']('uiElement')&&(_0x5583b4['mapper']['unbindElementFromMarkerName'](_0x5ebabc,_0x5d1170['markerName']),_0x5583b4['writer']['remove'](_0x5ebabc));}},{'priority':'high'});}}class W extends _0x23c200{['afterInit'](){const _0x3fab3a=this['editor'];if(!_0x3fab3a['plugins']['has']('ListEditing'))return;const _0x2df8f8=_0x3fab3a['locale'],_0xfc7e69=_0x3fab3a['plugins']['get']('TrackChangesEditing'),_0x3846bf=_0x3fab3a['plugins']['has']('TodoListEditing'),_0xdadb43=!!_0x3fab3a['config']['get']('list.multiBlock');function _0x5bace7(_0x251bfe){return{'type':'format','content':''+c(_0x2df8f8,'*Set\x20format:*\x20%0',_0x251bfe)};}function _0x4fb4e9(_0x108538){return{'type':'format','content':''+c(_0x2df8f8,'*Remove\x20format:*\x20%0',_0x108538)};}_0xfc7e69['enableDefaultAttributesIntegration']('numberedList'),_0xfc7e69['enableDefaultAttributesIntegration']('bulletedList'),_0xfc7e69['enableDefaultAttributesIntegration']('customNumberedList'),_0xfc7e69['enableDefaultAttributesIntegration']('customBulletedList'),_0xfc7e69['enableDefaultAttributesIntegration']('indentList'),_0xfc7e69['enableDefaultAttributesIntegration']('outdentList'),_0xfc7e69['enableDefaultAttributesIntegration']('splitListItemAfter'),_0xfc7e69['enableDefaultAttributesIntegration']('splitListItemBefore'),_0xfc7e69['registerBlockAttribute']('listItemId'),_0xfc7e69['registerBlockAttribute']('listType'),_0xfc7e69['registerBlockAttribute']('listIndent'),_0xdadb43&&(_0xfc7e69['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0xfc7e69['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x3846bf&&(_0xfc7e69['enableDefaultAttributesIntegration']('todoList'),_0xfc7e69['enableDefaultAttributesIntegration']('checkTodoList'),_0xfc7e69['registerBlockAttribute']('todoListChecked'),_0xfc7e69['descriptionFactory']['registerDescriptionCallback'](_0x21de89=>{const {data:_0xe6d6aa}=_0x21de89;if(_0xe6d6aa&&'todoListChecked'==_0xe6d6aa['key'])return{'type':'format','content':_0xe6d6aa['newValue']?c(_0x2df8f8,'*Check\x20item*'):c(_0x2df8f8,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x1ee27f=>{if(_0x1ee27f['batch']['isUndo'])return!0x1;let _0x5095d=!0x1;const _0x525332=_0xfc7e69['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xc7e24d=>'todoListChecked'===_0xfc7e69['_getAttributeKey'](_0xc7e24d));for(const _0x39ba55 of _0x525332){'todo'!=_0x39ba55['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0xfc7e69['_findSuggestions'](_0x39ba55['getFirstRange'](),'attribute')['find'](_0x3fb602=>'listType'===_0xfc7e69['_getAttributeKey'](_0x3fb602['suggestion']))||(_0x1ee27f['removeMarker'](_0x39ba55['getFirstMarker']()),_0x5095d=!0x0));}return _0x5095d;})),_0xfc7e69['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x2df8f8,'FORMAT_INDENT'));const _0x48e536={'type':'format','content':''};_0xfc7e69['descriptionFactory']['registerDescriptionCallback'](_0x4f904d=>{const {data:_0x39d673}=_0x4f904d;if(!_0x39d673||'listType'!=_0x39d673['key'])return;let _0x1f0e93=_0x4f904d['head'];for(;_0x1f0e93;){if(_0x1f0e93['data']&&(('listStyle'==_0x1f0e93['data']['key']||'listMarkerStyle'==_0x1f0e93['data']['key'])&&(_0x1f0e93['data']['newValue']&&'default'!=_0x1f0e93['data']['newValue']||'default'!=_0x1f0e93['data']['oldValue']&&!_0x39d673['newValue'])||!_0xdadb43&&_0x1f0e93['data']['key']==u))return _0x48e536;_0x1f0e93=_0x1f0e93['next'];}if(null==_0x39d673['newValue'])switch(_0x39d673['oldValue']){case'bulleted':return _0x4fb4e9(c(_0x2df8f8,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4fb4e9(c(_0x2df8f8,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4fb4e9(c(_0x2df8f8,'ELEMENT_TODO_LIST'));}switch(_0x39d673['newValue']){case'bulleted':return _0x5bace7(c(_0x2df8f8,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5bace7(c(_0x2df8f8,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5bace7(c(_0x2df8f8,'ELEMENT_TODO_LIST'));}}),_0xfc7e69['descriptionFactory']['registerDescriptionCallback'](_0x49dc7f=>{const {data:_0x408476}=_0x49dc7f;if(_0x408476&&'listIndent'==_0x408476['key'])return null==_0x408476['newValue']||null==_0x408476['oldValue']&&0x0==_0x408476['newValue']?_0x48e536:void 0x0;}),_0xfc7e69['descriptionFactory']['registerDescriptionCallback'](_0x310679=>{if('attribute'!=_0x310679['type'])return;const {data:_0x25629c}=_0x310679;if(!_0x25629c||'listItemId'!=_0x25629c['key'])return;const _0x5f29f5=Te(_0x310679);return'newValue'==_0x5f29f5?{'type':'format','content':c(_0x2df8f8,'*Merge:*\x20list\x20item')}:'oldValue'==_0x5f29f5?{'type':'format','content':c(_0x2df8f8,'*Split:*\x20list\x20item')}:_0x48e536;}),_0x3fab3a['model']['document']['registerPostFixer'](_0x404f60=>this['listItemIdFixer'](_0x404f60)),_0x3fab3a['model']['document']['registerPostFixer'](_0x4e13f2=>this['noTrackChangesFixer'](_0x4e13f2)),_0x3fab3a['model']['document']['on']('change:data',(_0x26e945,_0x4bac6c)=>{if(_0x4bac6c['isUndo']||!_0x4bac6c['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x4d08f6){if(_0x4d08f6['batch']['isUndo']||!_0x4d08f6['batch']['isLocal'])return!0x1;let _0x59b9f8=!0x1;const _0x4674fd=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xed1458=>_0xed1458['data']&&'listItemId'==_0xed1458['data']['key'])['filter'](_0x109f1c=>_0x109f1c['data']['newValue']&&_0x109f1c['data']['oldValue']);for(const _0x16d522 of _0x4674fd)Te(_0x16d522)||(_0x4d08f6['removeMarker'](_0x16d522['getFirstMarker']()),_0x59b9f8=!0x0);return _0x59b9f8;}['noTrackChangesFixer'](_0x57f712){if(_0x57f712['batch']['isUndo']||!_0x57f712['batch']['isLocal'])return!0x1;const _0x4806e4=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4806e4['trackChangesCommand']['value'])return!0x1;let _0x44e165=!0x1;const _0xc39f73=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x4feda2=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x438185=>'attribute'==_0x438185['type'])['filter'](_0x21107c=>_0xc39f73['includes'](_0x21107c['attributeKey']));if(0x0==_0x4feda2['length'])return _0x44e165;for(const _0x21a3ab of _0x4feda2){const _0x1c5728=_0x4806e4['_findSuggestions'](_0x21a3ab['range'],'attribute')['filter'](_0x81c2af=>!_0x81c2af['meta']['isNextTo'])['map'](_0x3b5aee=>_0x3b5aee['suggestion'])['filter'](_0xe1803a=>{const _0x4a88f0=_0x4806e4['_getAttributeKey'](_0xe1803a);return _0xc39f73['includes'](_0x4a88f0);});if(_0x1c5728['length']){for(const _0xdc6327 of _0x1c5728)_0x57f712['removeMarker'](_0xdc6327['getFirstMarker']());_0x44e165=!0x0;}}return _0x44e165;}['assureChains'](){const _0x3a607a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x13b471=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x281b76;const _0x32937d=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xd39606=>{if(_0xd39606['data']['oldRange']||!_0xd39606['data']['newRange'])return null;if(!_0xd39606['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x36dc8b}=_0x3a607a['_splitMarkerName'](_0xd39606['name']);if(!_0x3a607a['hasSuggestion'](_0x36dc8b))return null;const _0x24ed3a=_0x3a607a['getSuggestion'](_0x36dc8b);return _0x13b471['includes'](_0x24ed3a['data']['key']);})['map'](_0x1447a3=>{const {id:_0x44eb94}=_0x3a607a['_splitMarkerName'](_0x1447a3['name']),_0x3528a9=_0x3a607a['getSuggestion'](_0x44eb94);return _0x281b76=_0x3528a9['attributes']['groupId'],_0x3528a9['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x32937d['size'])return;const _0x320eed=_0x3a607a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x456ec7=>'attribute'==_0x456ec7['type']&&_0x456ec7['data']&&_0x13b471['includes'](_0x456ec7['data']['key'])&&_0x456ec7['attributes']['groupId']!=_0x281b76)['map'](_0x1c848d=>({'listItem':_0x1c848d['getFirstRange']()['start']['nodeAfter'],'groupId':_0x1c848d['attributes']['groupId']})),_0x3c46e1=new Set();for(const {groupId:_0x3b186f,listItem:_0x1cda0f}of _0x320eed)_0x32937d['has'](_0x1cda0f)&&_0x3c46e1['add'](_0x3b186f);for(const _0x597035 of _0x3a607a['getSuggestions']())_0x3c46e1['has'](_0x597035['attributes']['groupId'])&&_0x597035['setAttribute']('groupId',_0x281b76);}['_supportLegacySuggestions'](){const _0x351a74=this['editor'],_0x1e1836=_0x351a74['locale'],_0x157804=_0x351a74['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x157804['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x37f5dc,_0x107fc0){const _0x3a635d=[];for(let _0x69918e of _0x37f5dc)_0x69918e['start']['nodeAfter']===_0x69918e['end']['parent']&&(_0x69918e=_0x351a74['model']['createRange'](_0x351a74['model']['createPositionAt'](_0x69918e['start']['nodeAfter'],0x0))),_0x3a635d['push'](_0x69918e);_0x351a74['model']['change'](_0x5b6b27=>{const _0x169791=_0x351a74['model']['document']['selection'],_0x301a70=Array['from'](_0x169791['getRanges']())['map'](_0x325397=>_0x2de0d6['fromRange'](_0x325397));_0x5b6b27['setSelection'](_0x3a635d),_0x351a74['commands']['get'](_0x107fc0['commandName'])['refresh'](),_0x107fc0['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x351a74['execute'](_0x107fc0['commandName'],..._0x107fc0['commandParams']),_0x5b6b27['setSelection'](_0x301a70);for(const _0x4fb366 of _0x301a70)_0x4fb366['detach']();});}),_0x157804['descriptionFactory']['registerElementLabel'](function(_0x5ec689){const _0x44a18d=!_0x351a74['model']['schema']['isObject'](_0x5ec689),_0x5092fa=_0x5ec689['previousSibling'],_0x25a0c3=_0x5ec689['nextSibling'],_0x582ee7=_0x5ec689['getAttribute']('listItemId'),_0x45de67=!_0x5092fa||_0x5092fa['getAttribute']('listItemId')!==_0x582ee7,_0x376c4a=!_0x25a0c3||_0x25a0c3['getAttribute']('listItemId')!==_0x582ee7;return _0x44a18d&&Boolean(_0x582ee7)&&_0x45de67&&_0x376c4a;},_0x4b02=>c(_0x1e1836,'ELEMENT_LIST_ITEM',_0x4b02));}['_registerLegacyDescription'](){const _0x36606b=this['editor'],_0x3e0e77=_0x36606b['locale'];function _0xbd9263(_0xcfc0e0){const _0x51859c=_0x36606b['commands']['get']('bulletedList')['value'],_0x4bf1e6=_0x36606b['commands']['get']('numberedList')['value'];return'numberedList'===_0xcfc0e0?_0x51859c:_0x4bf1e6;}_0x36606b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x4d1124){if('formatBlock'!=_0x4d1124['type'])return;const {data:_0x2fd9fe}=_0x4d1124;if(!_0x2fd9fe)return;let _0x1a56eb,_0x18af32,_0x144fb9,_0x340d5d;switch(_0x2fd9fe['commandName']){case'bulletedList':_0x144fb9=_0x2fd9fe['commandParams'][0x0]['forceValue'],_0x340d5d=_0xbd9263(_0x2fd9fe['commandName']),_0x1a56eb=_0x144fb9?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x340d5d&&_0x36606b['config']['get']('list.multiBlock')||(_0x1a56eb='*Change\x20to:*\x20%0'),_0x18af32={'type':'format','content':c(_0x3e0e77,_0x1a56eb,c(_0x3e0e77,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x144fb9=_0x2fd9fe['commandParams'][0x0]['forceValue'],_0x340d5d=_0xbd9263(_0x2fd9fe['commandName']),_0x1a56eb=_0x144fb9?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x340d5d&&_0x36606b['config']['get']('list.multiBlock')||(_0x1a56eb='*Change\x20to:*\x20%0'),_0x18af32={'type':'format','content':c(_0x3e0e77,_0x1a56eb,c(_0x3e0e77,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x1a56eb='*Indent:*\x20%0',_0x18af32={'type':'format','content':c(_0x3e0e77,_0x1a56eb,c(_0x3e0e77,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x1a56eb=function(_0x1754ea){const _0x229579=_0x1754ea['getFirstRange']();let _0x5afe7b=_0x229579['start']['nodeAfter'];for(;_0x5afe7b&&_0x229579['containsItem'](_0x5afe7b);){if(_0x5afe7b['getAttribute']('listIndent')>0x0)return!0x1;_0x5afe7b=_0x5afe7b['nextSibling'];}return!0x0;}(_0x4d1124)?c(_0x3e0e77,'*Format:*\x20remove\x20from\x20%0',c(_0x3e0e77,function(_0x1553a5){return'ELEMENT_'+_0x1553a5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4d1124))):c(_0x3e0e77,'*Outdent:*\x20%0',c(_0x3e0e77,'ELEMENT_LIST_ITEM')),_0x18af32={'type':'format','content':_0x1a56eb};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x2fd9fe['multipleBlocks']&&(_0x1a56eb='*Merge:*\x20%0',_0x18af32={'type':'deletion','content':c(_0x3e0e77,_0x1a56eb,c(_0x3e0e77,'ELEMENT_LIST_ITEM'))});}return _0x18af32;});}}function Te(_0x507366){let _0x10716f=_0x507366['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x10716f;){const _0x386aae=_0x10716f['getAttribute']('listItemId');if(!_0x386aae)return!0x1;if(_0x386aae==_0x507366['data']['newValue'])return'newValue';if(_0x386aae==_0x507366['data']['oldValue'])return'oldValue';_0x10716f=_0x10716f['previousSibling'];}return!0x1;}class Se extends _0x23c200{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x4dd936=this['editor']['config']['get']('list.properties'),_0x30fb86=this['editor']['plugins']['get']('TrackChangesEditing');_0x4dd936['styles']&&(_0x30fb86['enableDefaultAttributesIntegration']('listStyle'),_0x30fb86['registerBlockAttribute']('listStyle')),_0x4dd936['reversed']&&(_0x30fb86['enableDefaultAttributesIntegration']('listReversed'),_0x30fb86['registerBlockAttribute']('listReversed')),_0x4dd936['startIndex']&&(_0x30fb86['enableDefaultAttributesIntegration']('listStart'),_0x30fb86['registerBlockAttribute']('listStart'));const _0xece3d1={'type':'format','content':''};_0x30fb86['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x41d8c5=this['editor']['locale'];_0x30fb86['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x41d8c5,'FORMAT_LIST_REVERSED')),_0x30fb86['descriptionFactory']['registerDescriptionCallback'](_0x16879f=>{const {data:_0x29ca74}=_0x16879f;if(_0x29ca74&&'listReversed'==_0x29ca74['key'])return null==_0x29ca74['newValue']||0x0==_0x29ca74['newValue']&&null==_0x29ca74['oldValue']?_0xece3d1:void 0x0;}),_0x30fb86['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x41d8c5,'FORMAT_LIST_START')),_0x30fb86['descriptionFactory']['registerDescriptionCallback'](_0x151afc=>{const {data:_0x369dfc}=_0x151afc;if(_0x369dfc&&'listStart'==_0x369dfc['key'])return null==_0x369dfc['newValue']||0x1==_0x369dfc['newValue']&&null==_0x369dfc['oldValue']?_0xece3d1:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x508a57=>{if(_0x508a57['batch']['isUndo'])return!0x1;let _0x5d5b79=!0x1;const _0x36a53e=_0x30fb86['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x47fb8d=>{const _0x28fa71=_0x30fb86['_getAttributeKey'](_0x47fb8d);return'listStart'==_0x28fa71||'listReversed'==_0x28fa71;});for(const _0x1354dd of _0x36a53e){const _0xe32366=_0x1354dd['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0xe32366||'customNumbered'==_0xe32366)continue;_0x30fb86['_findSuggestions'](_0x1354dd['getFirstRange'](),'attribute')['find'](_0x11506f=>'listType'==_0x30fb86['_getAttributeKey'](_0x11506f['suggestion']))||(_0x508a57['removeMarker'](_0x1354dd['getFirstMarker']()),_0x5d5b79=!0x0);}return _0x5d5b79;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x2a2a48){const _0x1c240c=this['editor']['locale'],{data:_0x58764f}=_0x2a2a48,_0x300246={'type':'format','content':''};if(!_0x58764f||'listStyle'!=_0x58764f['key'])return;if(!_0x58764f['oldValue'])return'default'==_0x58764f['newValue']?_0x300246:{'type':'format','content':''+c(_0x1c240c,'*Set\x20format:*\x20%0',c(_0x1c240c,this['_getTranslationKeyForListStyle'](_0x58764f['newValue'])))};if(!_0x58764f['newValue']){if('default'==_0x58764f['oldValue'])return _0x300246;let _0x57582b=_0x2a2a48['head'];for(;_0x57582b;){if(_0x57582b['data']&&'listType'==_0x57582b['data']['key']&&_0x57582b['data']['newValue'])return _0x300246;_0x57582b=_0x57582b['next'];}return{'type':'format','content':''+c(_0x1c240c,'*Remove\x20format:*\x20%0',c(_0x1c240c,this['_getTranslationKeyForListStyle'](_0x58764f['oldValue'])))};}if('default'!=_0x58764f['newValue'])return{'type':'format','content':''+c(_0x1c240c,'*Set\x20format:*\x20%0',c(_0x1c240c,this['_getTranslationKeyForListStyle'](_0x58764f['newValue'])))};let _0x498bdb=_0x2a2a48['head'];for(;_0x498bdb;){if(_0x498bdb['data']&&'listType'==_0x498bdb['data']['key']&&_0x498bdb['data']['newValue']&&_0x498bdb['data']['oldValue'])return _0x300246;_0x498bdb=_0x498bdb['next'];}return{'type':'format','content':c(_0x1c240c,'*Set\x20format:*\x20%0',c(_0x1c240c,'ELEMENT_'+_0x2a2a48['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x482abe=this['editor'],_0xe1111=_0x482abe['locale'];_0x482abe['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x12daed=>{if('formatBlock'!=_0x12daed['type'])return;const {data:_0x4cfab0}=_0x12daed;if(!_0x4cfab0)return;let _0x269f8b,_0xf2195b;switch(_0x4cfab0['commandName']){case'listStyle':_0x269f8b='*Change\x20to:*\x20%0',_0xf2195b={'type':'format','content':c(_0xe1111,_0x269f8b,c(_0xe1111,this['_getTranslationKeyForListStyle'](_0x4cfab0['commandParams'][0x0]['type'])))};break;case'listReversed':_0x269f8b=_0x4cfab0['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xf2195b={'type':'format','content':c(_0xe1111,_0x269f8b)};break;case'listStart':_0x269f8b='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xf2195b={'type':'format','content':c(_0xe1111,_0x269f8b,_0x4cfab0['commandParams'][0x0]['startIndex'])};}return _0xf2195b;});}['_getTranslationKeyForListStyle'](_0x42dae4){return'ELEMENT_'+function(_0x1f038d){if(_e['includes'](_0x1f038d))return'bulleted';if(Re['includes'](_0x1f038d))return'numbered';return null;}(_0x42dae4)['toUpperCase']()+'_LIST_'+_0x42dae4['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x23c200{['afterInit'](){const _0x413f90=this['editor'];_0x413f90['commands']['get']('emoji')&&_0x413f90['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x23c200{static get['requires'](){return[_0x3d6c20];}['init'](){const _0x534201=this['editor'],_0x1ae96a=_0x534201['plugins']['get']('TrackChangesEditing'),_0x3aa9e1=_0x534201['commands']['get']('enter');_0x1ae96a['enableCommand']('enter',()=>{_0x534201['model']['change'](_0x50c61a=>{const _0x3bbe3c=_0x534201['model']['document']['selection'],_0xcbf776=_0x3bbe3c['getFirstPosition'](),_0x1ea21a=_0x2de0d6['fromRange'](_0x3bbe3c['getFirstRange']());if(_0x3aa9e1['enterBlock'](_0x50c61a)){const _0x262310=_0x534201['model']['createPositionAt'](_0xcbf776['parent']['nextSibling'],0x0),_0xbfd2a2=_0x50c61a['createRange'](_0xcbf776,_0x262310);_0x1ae96a['markInsertion'](_0xbfd2a2);}else _0x50c61a['setSelection'](_0x50c61a['createRange'](_0x1ea21a['end']));_0x1ea21a['detach'](),_0x3aa9e1['fire']('afterExecute',{'writer':_0x50c61a});});}),_0x534201['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x534201,'split'),{'priority':'high'}),_0x534201['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x2fdbbc,_0x26a6e2,_0xc16763)=>{const _0x3e1dc6=_0xc16763['mapper']['markerNameToElements'](_0x26a6e2['markerName']);if(_0x3e1dc6){for(const _0x48e11e of _0x3e1dc6)_0x48e11e['hasClass']('ck-suggestion-marker-split')&&(_0xc16763['mapper']['unbindElementFromMarkerName'](_0x48e11e,_0x26a6e2['markerName']),_0xc16763['writer']['remove'](_0x48e11e));}},{'priority':'high'}),_0x534201['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2251c4,_0x1f17c4,_0x3c3610)=>{_0x3c3610['options']['showSuggestionHighlights']&&Fe(_0x534201,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x2251c4,_0x1f17c4,_0x3c3610);},{'priority':'high'});}}class Z extends _0x23c200{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x5a02c0=this['editor']['plugins']['get']('TrackChangesEditing');_0x5a02c0['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x5a02c0['enableCommand']('findNext'),_0x5a02c0['enableCommand']('findPrevious'),_0x5a02c0['enableCommand']('replace'),_0x5a02c0['enableCommand']('replaceAll');}['handleFindCommand'](_0x2e23db,_0x36ddde,_0x34c486={}){const _0x352aee=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x2e23db(_0x3510ca=>{let _0x3471ed=('string'==typeof _0x36ddde?_0x352aee['findByTextCallback'](_0x36ddde,_0x34c486):_0x36ddde)(_0x3510ca);Array['isArray'](_0x3471ed)&&(_0x3471ed={'results':_0x3471ed,'searchText':'string'==typeof _0x36ddde?_0x36ddde:''});const _0x399108=_0x3471ed['results']['filter'](_0x2092d5=>!0x1===this['_isInDeletionRange'](_0x2092d5,_0x3510ca['item']));return{..._0x3471ed,'results':_0x399108};},_0x34c486);}['_isInDeletionRange'](_0x1dcd7c,_0x1a9c67){const _0x3b0f36=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1a9c67,_0x1dcd7c['start']),this['editor']['model']['createPositionAt'](_0x1a9c67,_0x1dcd7c['end']));for(const _0x5f3740 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x3b0f36['getIntersection'](_0x5f3740['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x23c200{['afterInit'](){const _0x14adec=this['editor']['locale'],_0x51a599=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x659af3,commandName:_0x32b354}of ro)this['editor']['plugins']['has'](_0x659af3)&&(_0x51a599['enableDefaultAttributesIntegration'](_0x32b354),_0x51a599['registerInlineAttribute'](_0x32b354));_0x51a599['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x14adec,'FORMAT_FONT_SIZE')),_0x51a599['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x14adec,'FORMAT_FONT_FAMILY')),_0x51a599['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x14adec,'FORMAT_FONT_COLOR')),_0x51a599['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x14adec,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3b6f64=this['editor'],_0x1b53f4=_0x3b6f64['locale'];_0x3b6f64['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x54ba95=>{const _0x499f42=_0x1b53f4['t'];if('formatInline'!=_0x54ba95['type'])return;const {data:_0x3738f6}=_0x54ba95;if(null!=_0x3738f6){if('fontSize'==_0x3738f6['commandName']){const _0x38e89a=_0x3738f6['commandParams'][0x0]['value'];if(_0x38e89a){const _0x154f20=_0x499f42(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x42074c=>_0x42074c['model']==_0x38e89a)['title'])['toLowerCase']();return{'type':'format','content':c(_0x1b53f4,'*Set\x20font\x20size:*\x20%0',_0x154f20)};}return{'type':'format','content':c(_0x1b53f4,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x3738f6['commandName']){const _0x337d52=_0x3738f6['commandParams'][0x0]['value'];return _0x337d52?{'type':'format','content':c(_0x1b53f4,'*Set\x20font\x20family:*\x20%0',_0x337d52)}:{'type':'format','content':c(_0x1b53f4,'*Reset\x20font\x20family*')};}if('fontColor'==_0x3738f6['commandName']){const _0x231263=_0x3738f6['commandParams'][0x0]['value'];if(_0x231263){const _0x2d84af=_0xfbdb76(this['editor']['config']['get']('fontColor.colors'))['find'](_0x4fa04b=>_0x4fa04b['model']==_0x231263);let _0x49e3a6=_0x231263,_0x5a1a3c='';return _0x2d84af&&(_0x49e3a6=_0x2d84af['label'],_0x5a1a3c=_0x499f42(_0x49e3a6)['toLowerCase']()),{'type':'format','content':c(_0x1b53f4,'*Set\x20font\x20color:*\x20%0',_0x5a1a3c)['trim'](),'color':{'value':_0x231263,'title':_0x5a1a3c||_0x49e3a6}};}return{'type':'format','content':c(_0x1b53f4,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x3738f6['commandName']){const _0x4e31d7=_0x3738f6['commandParams'][0x0]['value'];if(_0x4e31d7){const _0x1ce43c=_0xfbdb76(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x142515=>_0x142515['model']==_0x4e31d7);let _0x1c77de=_0x4e31d7,_0x150854='';return _0x1ce43c&&(_0x1c77de=_0x1ce43c['label'],_0x150854=_0x499f42(_0x1c77de)['toLowerCase']()),{'type':'format','content':c(_0x1b53f4,'*Set\x20font\x20background\x20color:*\x20%0',_0x150854)['trim'](),'color':{'value':_0x4e31d7,'title':_0x150854||_0x1c77de}};}return{'type':'format','content':c(_0x1b53f4,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x23c200{['afterInit'](){const _0x3fad7f=this['editor'],_0xfda1d0=_0x3fad7f['plugins']['get']('TrackChangesEditing'),_0x501b17=_0x3fad7f['commands']['get']('copyFormat'),_0x31ea18=_0x3fad7f['commands']['get']('pasteFormat');_0x501b17&&_0x31ea18&&(_0xfda1d0['enableDefaultAttributesIntegration']('pasteFormat'),_0xfda1d0['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x1d64a8=this['editor'],_0x37ef1b=_0x1d64a8['locale'];_0x1d64a8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x203b6a=>{if('formatBlock'!=_0x203b6a['type']&&'formatInline'!=_0x203b6a['type'])return;const {data:_0x209134}=_0x203b6a;if(_0x209134&&'pasteFormat'===_0x209134['commandName']){const _0x354279=[],_0x426892=_0x209134['commandParams'][0x0];for(const [_0x5dd79e,_0x221bca]of Object['entries'](_0x426892))_0x354279['push'](so(_0x1d64a8,_0x5dd79e,_0x221bca));return _0x354279['length']?{'type':'format','content':c(_0x37ef1b,'*Set\x20format\x20to:*\x20%0',_0x354279['join'](',\x20'))}:{'type':'format','content':c(_0x37ef1b,'*Remove\x20all\x20formatting*')};}});}}function so(_0x317b09,_0x4fd1cb,_0x11251f){const _0x1328cc=_0x317b09['locale']['t'],_0x171fe1=_0x4fd1cb['split'](/(?=[A-Z])/)['join']('\x20'),_0x514d46=_0x1328cc(_0x171fe1['charAt'](0x0)['toUpperCase']()+_0x171fe1['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x11251f)return _0x514d46;if('fontColor'===_0x4fd1cb||'fontBackgroundColor'===_0x4fd1cb){const _0x3b7bb7=_0xfbdb76(_0x317b09['config']['get']('fontColor.colors'))['find'](_0x16681b=>_0x16681b['model']==_0x11251f);return _0x514d46+'\x20('+(_0x3b7bb7?_0x1328cc(_0x3b7bb7['label'])['toLowerCase']():_0x11251f)+')';}if('fontSize'===_0x4fd1cb&&isNaN(parseFloat(_0x11251f))){const _0x5d2718=_0x317b09['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x317b09['config']['get']('fontSize.options'))['find'](_0x2d3093=>_0x2d3093['model']==_0x11251f);return _0x514d46+'\x20('+(_0x5d2718?_0x1328cc(_0x5d2718['title'])['toLowerCase']():_0x11251f)+')';}return _0x514d46+'\x20('+_0x11251f+')';}class nt extends _0x23c200{['_headingOptions'];['afterInit'](){const _0x21b052=this['editor'];if(!_0x21b052['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x21b052['config']['get']('heading.options');const _0x54541d=_0x21b052['locale'],_0x1898d4=_0x21b052['plugins']['get']('TrackChangesEditing');_0x1898d4['enableDefaultAttributesIntegration']('heading');for(const _0x1249b5 of this['_headingOptions'])'paragraph'!=_0x1249b5['model']&&_0x1898d4['descriptionFactory']['registerElementLabel'](_0x1249b5['model'],_0x4bfbfe=>{const _0x39d849=this['_getHeadingLevel'](_0x1249b5['model']);return null!==_0x39d849?_0x529d58(_0x4bfbfe,_0x39d849):_0x26a73d(_0x4bfbfe,_0x1249b5['title']);});function _0x529d58(_0x559454,_0xbd184e){return c(_0x54541d,'ELEMENT_HEADING',[_0x559454,_0xbd184e]);}function _0x26a73d(_0xedf2a5,_0xce5931){return c(_0x54541d,'ELEMENT_HEADING_CUSTOM',[_0xedf2a5,_0xce5931]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3d5882=this['editor'],_0x3b2ea0=_0x3d5882['locale'];function _0x2e77b5(_0x17f13b,_0x1e5caf){return c(_0x3b2ea0,'ELEMENT_HEADING_CUSTOM',[_0x17f13b,_0x1e5caf]);}_0x3d5882['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x249310=>{if('formatBlock'!=_0x249310['type'])return;const {data:_0x160028}=_0x249310;if(_0x160028&&'heading'==_0x160028['commandName']){const _0x245c0c=_0x160028['commandParams'][0x0]['value'],_0x19fc7b=this['_getHeadingLevel'](_0x245c0c);if(null!==_0x19fc7b)return{'type':'format','content':c(_0x3b2ea0,'*Change\x20to:*\x20%0',(_0x2ed143=0x1,_0x4edaff=_0x19fc7b,c(_0x3b2ea0,'ELEMENT_HEADING',[_0x2ed143,_0x4edaff])))};const _0x5bebb3=this['_headingOptions']['find'](_0x2e3111=>_0x2e3111['model']===_0x245c0c)['title'];return{'type':'format','content':c(_0x3b2ea0,'*Change\x20to:*\x20%0',_0x2e77b5(0x1,_0x5bebb3))};}var _0x2ed143,_0x4edaff;});}['_getHeadingLevel'](_0x3b1091){const _0x580806=_0x3b1091['match'](/^heading(\d+)/);if(_0x580806)return _0x580806[0x1];const _0x94b786=this['_headingOptions']?.['find'](_0x5440a0=>_0x5440a0['model']==_0x3b1091);if(_0x94b786&&_0x94b786['view']){const _0x1e0469=_0x94b786['view'],_0x23070c=(_0x1e0469['name']??_0x1e0469)['match'](/^h(\d+)/);if(_0x23070c)return _0x23070c[0x1];}return null;}}class it extends _0x23c200{['afterInit'](){const _0x4d2b11=this['editor'];if(!_0x4d2b11['plugins']['has']('HighlightEditing'))return;const _0x586faf=_0x4d2b11['plugins']['get']('TrackChangesEditing'),_0x381fb5=_0x4d2b11['locale'];_0x586faf['enableDefaultAttributesIntegration']('highlight'),_0x586faf['registerInlineAttribute']('highlight'),_0x586faf['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x381fb5,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x52f9bb=this['editor'],_0x175e5c=_0x52f9bb['locale'];_0x52f9bb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4fe8b3=>{if('formatInline'!=_0x4fe8b3['type'])return;const {data:_0x53c15c}=_0x4fe8b3;if(_0x53c15c&&'highlight'==_0x53c15c['commandName']){const _0x320734=_0x175e5c['t'],_0x36a566=_0x53c15c['commandParams'][0x0]['value'];if(_0x36a566){const _0x303f61=_0x52f9bb['config']['get']('highlight.options')['find'](_0x1c817a=>_0x1c817a['model']==_0x36a566),_0x506cbc=_0x320734(_0x303f61['title'])['toLowerCase']();return{'type':'format','content':c(_0x175e5c,'*Set\x20highlight:*\x20%0',_0x506cbc),'color':{'value':_0x303f61['color'],'title':_0x303f61['title']}};}return{'type':'format','content':c(_0x175e5c,'*Remove\x20highlight*',c(_0x175e5c,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x23c200{['afterInit'](){const _0x3060b3=this['editor'];if(!_0x3060b3['plugins']['has']('HorizontalLineEditing'))return;_0x3060b3['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x47b025=_0x3060b3['plugins']['get']('TrackChangesEditing'),_0x35ebc5=_0x3060b3['locale'];_0x47b025['descriptionFactory']['registerElementLabel']('horizontalLine',_0x31ee88=>c(_0x35ebc5,'ELEMENT_HORIZONTAL_LINE',_0x31ee88)),_0x3060b3['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x45fc23,{writer:_0x313dd1,options:_0x56f529})=>{if(!_0x56f529['showSuggestionHighlights'])return null;const _0x255428=_0x313dd1['createContainerElement']('div'),_0x3f5f81=_0x313dd1['createEmptyElement']('hr');return _0x313dd1['addClass']('ck-horizontal-line',_0x255428),_0x313dd1['insert'](_0x313dd1['createPositionAt'](_0x255428,0x0),_0x3f5f81),_0x255428;},'converterPriority':'high'});}}class ot extends _0x23c200{['afterInit'](){const _0x193337=this['editor'];if(!_0x193337['plugins']['has']('HtmlEmbed'))return;const _0x44bf47=_0x193337['plugins']['get']('TrackChangesEditing'),_0x311b76=_0x193337['locale'];_0x44bf47['descriptionFactory']['registerElementLabel']('rawHtml',_0x249cb2=>c(_0x311b76,'ELEMENT_HTML_EMBED',_0x249cb2)),_0x44bf47['enableDefaultAttributesIntegration']('htmlEmbed'),_0x44bf47['registerBlockAttribute']('value'),_0x44bf47['descriptionFactory']['registerDescriptionCallback'](_0xa75089=>{if('attribute'!=_0xa75089['type'])return;const {data:_0x33d231}=_0xa75089;if(_0x33d231&&'value'==_0x33d231['key']&&_0xa75089['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x1f1da8=c(_0x311b76,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x311b76,'*Change\x20%0\x20content*',_0x1f1da8)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2837c4=this['editor'],_0x1bcc93=_0x2837c4['locale'];_0x2837c4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b09cd=>{if('formatBlock'!=_0x1b09cd['type'])return;const {data:_0x1f97c7}=_0x1b09cd;if(_0x1f97c7&&'htmlEmbed'==_0x1f97c7['commandName']){const _0x1516cc=c(_0x1bcc93,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x1bcc93,'*Change\x20%0\x20content*',_0x1516cc)};}});}}class rt extends _0x23c200{['afterInit'](){const _0x1def4e=this['editor'];if(!_0x1def4e['plugins']['has']('ImageEditing'))return;const _0x5c8187=_0x1def4e['plugins']['get']('TrackChangesEditing'),_0x2376cb=_0x1def4e['plugins']['get']('ImageUtils'),_0x39dd96=_0x1def4e['locale'];_0x5c8187['enableCommand']('insertImage'),_0x5c8187['descriptionFactory']['registerElementLabel']('imageBlock',_0x271d6f=>c(_0x39dd96,'ELEMENT_IMAGE',_0x271d6f)),_0x5c8187['descriptionFactory']['registerElementLabel']('imageInline',_0x2dd123=>c(_0x39dd96,'ELEMENT_INLINE_IMAGE',_0x2dd123)),_0x5c8187['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x39dd96,'ELEMENT_CAPTION')),_0x1def4e['plugins']['has']('ImageUploadEditing')&&_0x5c8187['enableCommand']('uploadImage'),_0x1def4e['plugins']['has']('ImageBlockEditing')&&_0x1def4e['plugins']['has']('ImageInlineEditing')&&(_0x5c8187['enableCommand']('imageTypeInline',(_0x2a7bf3,_0x1e0928)=>{const _0x5e115f=_0x2376cb['getClosestSelectedImageElement'](_0x1def4e['model']['document']['selection']);_0x1def4e['model']['change'](()=>{_0x5c8187['markBlockFormat'](_0x5e115f,{'commandName':'imageTypeInline','commandParams':[_0x1e0928]},[],'convertBlockImageToInline');});}),_0x5c8187['enableCommand']('imageTypeBlock',(_0x37cb29,_0x15f7b9)=>{_0x1def4e['model']['change'](_0x309968=>{let _0x40e7f3=_0x2376cb['getClosestSelectedImageElement'](_0x1def4e['model']['document']['selection']),_0x22c454=_0x309968['createRangeOn'](_0x40e7f3);const _0xd83c4e=_0x4f4955['fromPosition'](_0x22c454['start'],'toPrevious'),_0x590639=_0x4f4955['fromPosition'](_0x22c454['end'],'toNext');_0x5c8187['forceDefaultExecution'](()=>_0x37cb29(_0x15f7b9)),_0x40e7f3=_0x2376cb['getClosestSelectedImageElement'](_0x1def4e['model']['document']['selection']),_0x22c454=_0x309968['createRangeOn'](_0x40e7f3);const _0x9345bb=_0x309968['createRange'](_0xd83c4e,_0x590639);_0xd83c4e['detach'](),_0x590639['detach'](),_0x5c8187['markBlockFormat'](_0x40e7f3,{'commandName':'imageTypeInline','commandParams':[_0x15f7b9]},[],'convertInlineImageToBlock'),_0x9345bb['start']['isBefore'](_0x22c454['start'])&&_0x5c8187['markInsertion'](_0x309968['createRange'](_0x9345bb['start'],_0x22c454['start']),'convertInlineImageToBlock'),_0x22c454['end']['isBefore'](_0x9345bb['end'])&&_0x5c8187['markInsertion'](_0x309968['createRange'](_0x22c454['end'],_0x9345bb['end']),'convertInlineImageToBlock');});}),_0x5c8187['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x5c8187['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x5c8187['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x5c8187['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x5c8187['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x5c8187['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x4088f9])=>{const _0x2ae390=_0x5c8187['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x128776=_0x4088f9['start'],_0xdbb78f=_0x4088f9['end'];const _0xa0f8b0=_0x1def4e['model']['schema']['getNearestSelectionRange'](_0x128776,'backward'),_0x2bbc35=_0x1def4e['model']['schema']['getNearestSelectionRange'](_0xdbb78f,'forward');_0xa0f8b0['isCollapsed']&&(_0x128776=_0xa0f8b0['start']),_0x2bbc35['isCollapsed']&&(_0xdbb78f=_0x2bbc35['end']),_0x2ae390([_0x1def4e['model']['createRange'](_0x128776,_0xdbb78f)]);}),_0x5c8187['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0xb6c9f1),_0x5c8187['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0xb6c9f1)),_0x1def4e['plugins']['has']('ImageCaptionEditing')&&(_0x5c8187['enableCommand']('toggleImageCaption',(_0xfe456e,_0x40ad56)=>{const _0x5856fa=_0x1def4e['plugins']['get']('ImageCaptionUtils');let _0x469a95=_0x2376cb['getClosestSelectedImageElement'](_0x1def4e['model']['document']['selection']),_0x147545=_0x5856fa['getCaptionFromImageModelElement'](_0x469a95);_0x1def4e['model']['change'](()=>{if(_0x147545)return void _0x5c8187['markDeletion'](_0x1def4e['model']['createRangeOn'](_0x147545));const _0x4d80a8=_0x2376cb['isBlockImage'](_0x469a95);_0xfe456e(_0x40ad56),_0x469a95=_0x2376cb['getClosestSelectedImageElement'](_0x1def4e['model']['document']['selection']),_0x147545=_0x5856fa['getCaptionFromImageModelElement'](_0x469a95),_0x5c8187['markInsertion'](_0x1def4e['model']['createRangeOn'](_0x147545),_0x4d80a8?null:'imageCaption');});}),_0x5c8187['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0xb6c9f1));const _0x46fc26=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x345577(_0x549cc0,_0x59f121){const _0x565e4b=_0x46fc26['findIndex'](({type:_0x2bed3d,subType:_0x20573d})=>_0x549cc0['type']==_0x2bed3d&&_0x549cc0['subType']==_0x20573d),_0x585b25=_0x46fc26['findIndex'](({type:_0x39fc9c,subType:_0x2edb6f})=>_0x59f121['type']==_0x39fc9c&&_0x59f121['subType']==_0x2edb6f);if(_0x565e4b<0x0||_0x585b25<0x0)return!0x1;const _0xd3a63a=_0x549cc0['getFirstRange'](),_0x354941=_0x59f121['getFirstRange']();if((0x0==_0x565e4b||0x1==_0x565e4b)&&0x2==_0x585b25&&_0xd3a63a['isIntersecting'](_0x354941))return!0x0;if(0x2==_0x565e4b&&0x3==_0x585b25){const _0x51da2a=_0x5c8187['_findSuggestions'](_0xd3a63a,'insertion')['filter'](({suggestion:_0x28a1ae,meta:_0xb1f359})=>_0xb1f359['isOwn']&&'convertInlineImageToBlock'==_0x28a1ae['subType']);if(_0x51da2a['length']>0x1&&_0x354941['end']['isEqual'](_0xd3a63a['start']))return!0x0;if(0x1==_0x51da2a['length']&&(_0xd3a63a['start']['isEqual'](_0x354941['end'])||_0xd3a63a['end']['isEqual'](_0x354941['start'])))return!0x0;}if(0x3==_0x565e4b&&0x3==_0x585b25&&_0xd3a63a['start']['isBefore'](_0x354941['start'])){const _0x3e2484=_0xd3a63a['end']['nodeAfter'],_0x587797=_0x354941['start']['nodeBefore'];return _0x2376cb['isBlockImage'](_0x3e2484)&&_0x3e2484===_0x587797;}return!0x1;}function _0xb6c9f1(_0x3b1f30,_0x35ddd4){return _0x345577(_0x3b1f30,_0x35ddd4)?[_0x3b1f30,_0x35ddd4]:_0x345577(_0x35ddd4,_0x3b1f30)?[_0x35ddd4,_0x3b1f30]:null;}_0x1def4e['plugins']['has']('ImageResize')&&(_0x5c8187['enableDefaultAttributesIntegration']('resizeImage'),_0x5c8187['registerBlockAttribute']('resizedWidth'),_0x5c8187['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x39dd96,'FORMAT_IMAGE_SIZE'))),_0x1def4e['plugins']['has']('ImageTextAlternativeEditing')&&(_0x5c8187['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x5c8187['registerBlockAttribute']('alt')),_0x1def4e['plugins']['has']('PictureEditing')&&(_0x5c8187['registerBlockAttribute']('sources'),_0x5c8187['descriptionFactory']['registerDescriptionCallback'](_0x140c5c=>{if('attribute'!=_0x140c5c['type'])return;const {data:_0x451b52}=_0x140c5c;return _0x451b52&&'sources'==_0x451b52['key']?{'type':'format','content':''}:void 0x0;})),_0x1def4e['plugins']['has']('ImageSizeAttributes')&&(_0x5c8187['registerBlockAttribute']('width'),_0x5c8187['registerBlockAttribute']('height'),_0x5c8187['descriptionFactory']['registerDescriptionCallback'](_0x2b01bd=>{if('attribute'!=_0x2b01bd['type'])return;const {data:_0x45e25a}=_0x2b01bd;return!_0x45e25a||'width'!=_0x45e25a['key']&&'height'!=_0x45e25a['key']?void 0x0:{'type':'format','content':''};})),_0x5c8187['descriptionFactory']['registerDescriptionCallback'](_0x5b620f=>{if(!!_0x46fc26['find'](({type:_0x13f9a0,subType:_0x608f59})=>_0x5b620f['type']==_0x13f9a0&&_0x5b620f['subType']==_0x608f59))return _0x5b620f['previous']?{}:void 0x0;}),_0x5c8187['descriptionFactory']['registerDescriptionCallback'](_0x5ae4a3=>{if('insertion'==_0x5ae4a3['type']||'deletion'==_0x5ae4a3['type']){const _0x32b9cd=_0x5ae4a3['getContainedElement']();if(_0x32b9cd&&_0x32b9cd['is']('element','caption'))return{'type':'insertion'==_0x5ae4a3['type']?'addObject':'removeObject','element':_0x32b9cd,'quantity':0x1};}}),_0x5c8187['descriptionFactory']['registerDescriptionCallback'](_0x540512=>'formatBlock'==_0x540512['type']&&'convertInlineImageToBlock'==_0x540512['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x540512['type']&&'convertBlockImageToInline'==_0x540512['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x5c8187['descriptionFactory']['registerDescriptionCallback'](_0x5f5dbb=>{if('attribute'!=_0x5f5dbb['type'])return;const {data:_0x306b95}=_0x5f5dbb;if(!_0x306b95||'alt'!=_0x306b95['key'])return;const _0x2c58a7=_0x306b95['newValue'];return _0x2c58a7?{'type':'format','content':c(_0x39dd96,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2c58a7+'\x22')}:{'type':'format','content':c(_0x39dd96,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x31b002=this['editor'],_0x13cc3f=_0x31b002['locale'];_0x31b002['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd4f872=>{if('formatBlock'!=_0xd4f872['type']&&'formatInline'!=_0xd4f872['type'])return;const {data:_0x184e3a}=_0xd4f872;if(_0x184e3a){if('imageTextAlternative'==_0x184e3a['commandName']){const _0x170f02=_0x184e3a['commandParams'][0x0]['newValue'];return _0x170f02?{'type':'format','content':c(_0x13cc3f,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x170f02+'\x22')}:{'type':'format','content':c(_0x13cc3f,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x184e3a['commandName']){const _0x5dfb8f=_0x184e3a['commandParams'][0x0]['width'];return _0x5dfb8f?{'type':'format','content':c(_0x13cc3f,'*Set\x20image\x20width:*\x20%0',_0x5dfb8f)}:{'type':'format','content':c(_0x13cc3f,'*Reset\x20image\x20width*')};}}});}}class at extends _0x23c200{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x384bf7=this['editor']['locale'],_0x3717aa=this['editor']['plugins']['get']('TrackChangesEditing');_0x3717aa['enableDefaultAttributesIntegration']('replaceImageSource'),_0x3717aa['registerBlockAttribute']('src'),_0x3717aa['descriptionFactory']['registerDescriptionCallback'](_0x4edd2a=>{if('attribute'!=_0x4edd2a['type'])return;const {data:_0x39e62d}=_0x4edd2a;return _0x39e62d&&'src'==_0x39e62d['key']?_0x39e62d['newValue']&&_0x39e62d['oldValue']?{'type':'format','content':c(_0x384bf7,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xf13736=this['editor']['plugins']['get']('TrackChangesEditing');_0xf13736['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0xf13736['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xf13736['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0xf13736['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1c41bb=this['editor'],_0x407276=_0x1c41bb['locale'];_0x1c41bb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3d9810=>{if('formatBlock'!=_0x3d9810['type']&&'formatInline'!=_0x3d9810['type'])return;const {data:_0x7846d2}=_0x3d9810;if(!_0x7846d2||'replaceImageSource'!=_0x7846d2['commandName'])return;return{'type':'format','content':c(_0x407276,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x23c200{['afterInit'](){const _0x23037a=this['editor'];if(!_0x23037a['plugins']['has']('ImageStyleEditing'))return;const _0x1419f0=_0x23037a['plugins']['get']('TrackChangesEditing'),_0x33be9a=_0x23037a['plugins']['get']('ImageUtils'),_0xee43c={};_0x1419f0['enableCommand']('imageStyle',(_0x7cca01,_0x269890)=>{const _0x3b8944=_0x23037a['plugins']['get']('Users')['me'],_0x1fe084=_0x23037a['commands']['get']('imageStyle');let _0x273cfb=_0x33be9a['getClosestSelectedImageElement'](_0x23037a['model']['document']['selection']),_0x248370=_0x23037a['model']['createRangeOn'](_0x273cfb),_0x10c2d2=_0x1fe084['value'];if(_0x10c2d2==_0x269890['value'])return;const _0x1534cc={'commandName':'imageStyle','commandParams':[_0x269890],'formatGroupId':_0x53d19c()};_0x23037a['model']['change'](()=>{if(_0x1419f0['getSuggestions']()['filter'](_0x378c6a=>_0x378c6a['isInContent']&&_0x3b8944==_0x378c6a['author']&&('formatBlock'==_0x378c6a['type']||'formatInline'==_0x378c6a['type'])&&('imageStylePreApply'==_0x378c6a['subType']||'imageStylePostApply'==_0x378c6a['subType'])&&_0x378c6a['getFirstRange']()['isEqual'](_0x248370))['forEach'](_0x353fcd=>_0x1419f0['discardSuggestion'](_0x353fcd['head'])),_0x273cfb=_0x33be9a['getClosestSelectedImageElement'](_0x23037a['model']['document']['selection']),_0x248370=_0x23037a['model']['createRangeOn'](_0x273cfb),_0x1fe084['refresh'](),_0x23037a['commands']['get']('imageTypeInline')['refresh'](),_0x23037a['commands']['get']('imageTypeBlock')['refresh'](),_0x10c2d2=_0x1fe084['value'],_0x10c2d2!=_0x269890['value'])return _0x33be9a['isInlineImage'](_0x273cfb)&&_0x1fe084['shouldConvertImageType'](_0x269890['value'],_0x273cfb)?(_0x7cca01({..._0x269890,'setImageSizes':!0x1}),_0x273cfb=_0x33be9a['getClosestSelectedImageElement'](_0x23037a['model']['document']['selection']),void _0x1419f0['markBlockFormat'](_0x273cfb,{..._0x1534cc,'commandReversedParams':[{'value':_0x10c2d2||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x33be9a['isBlockImage'](_0x273cfb)?_0x1419f0['markBlockFormat'](_0x273cfb,_0x1534cc,[],'imageStylePostApply'):_0x1419f0['markInlineFormat'](_0x248370,_0x1534cc,'imageStylePostApply'));});});for(const _0x3a05b1 of _0x23037a['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0xee43c[_0x3a05b1['name']]=_0x3a05b1['title']['toLowerCase']();_0x1419f0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x1419f0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x1419f0['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x1419f0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0xe5b5a9])=>{_0x33be9a['setImageNaturalSizeAttributes'](_0xe5b5a9['getContainedElement']());}),_0x1419f0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x3705e9,_0x3da1ac)=>{_0x1419f0['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x3705e9,{'commandName':_0x3da1ac['commandName'],'commandParams':_0x3da1ac['commandReversedParams']});}),_0x1419f0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x4a69bb,_0x20f1ff){if(_0x5e3e91(_0x4a69bb,_0x20f1ff))return[_0x4a69bb,_0x20f1ff];if(_0x5e3e91(_0x20f1ff,_0x4a69bb))return[_0x20f1ff,_0x4a69bb];return null;});const _0x5b5b91=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5e3e91(_0xa5fff4,_0xc9050){const _0x5c0328=_0x5b5b91['findIndex'](({type:_0x2f7417,subType:_0x25907c})=>_0xa5fff4['type']==_0x2f7417&&_0xa5fff4['subType']==_0x25907c),_0x123fa9=_0x5b5b91['findIndex'](({type:_0x2e9e4f,subType:_0x53beeb})=>_0xc9050['type']==_0x2e9e4f&&_0xc9050['subType']==_0x53beeb);if(_0x5c0328<0x0||_0x123fa9<0x0)return!0x1;const _0x35fb29=_0xa5fff4['getFirstRange'](),_0x4eed4f=_0xc9050['getFirstRange']();if((0x0==_0x5c0328||0x1==_0x5c0328)&&0x2==_0x123fa9&&_0x35fb29['isIntersecting'](_0x4eed4f))return!0x0;if(0x2==_0x5c0328&&0x3==_0x123fa9){const _0x53ccd1=_0x1419f0['_findSuggestions'](_0x35fb29,'insertion')['filter'](({suggestion:_0x174c44,meta:_0x58a932})=>_0x58a932['isOwn']&&'convertInlineImageToBlock'==_0x174c44['subType']);if(_0x53ccd1['length']>0x1&&_0x4eed4f['end']['isEqual'](_0x35fb29['start']))return!0x0;if(0x1==_0x53ccd1['length']&&(_0x35fb29['start']['isEqual'](_0x4eed4f['end'])||_0x35fb29['end']['isEqual'](_0x4eed4f['start'])))return!0x0;}if(0x3==_0x5c0328&&0x3==_0x123fa9&&_0x35fb29['start']['isBefore'](_0x4eed4f['start'])){const _0x4013e0=_0x35fb29['end']['nodeAfter'],_0x595d71=_0x4eed4f['start']['nodeBefore'];return _0x33be9a['isBlockImage'](_0x4013e0)&&_0x4013e0===_0x595d71;}return!0x1;}_0x23037a['model']['document']['registerPostFixer'](()=>{let _0x406a15=!0x1;const _0x4cffae=Array['from'](_0x23037a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2f3721,data:_0x2c1c79}of _0x4cffae){const {group:_0x17912e,type:_0x5443ed,subType:_0x5933b3,id:_0x18d6f4}=_0x1419f0['_splitMarkerName'](_0x2f3721);if('suggestion'==_0x17912e&&_0x1419f0['hasSuggestion'](_0x18d6f4)){if('formatBlock'==_0x5443ed&&('imageStylePreApply'==_0x5933b3||'imageStylePostApply'==_0x5933b3)){const _0x39e10e=_0x1419f0['getSuggestion'](_0x18d6f4);if(_0x2c1c79['newRange']){const _0xfb4663=_0x39e10e['getFirstRange']()['getContainedElement']();if(_0x33be9a['isBlockImage'](_0xfb4663))continue;_0x1419f0['discardSuggestion'](_0x39e10e),_0x406a15=!0x0;}}if('insertion'==_0x5443ed&&'imageCaption'==_0x5933b3&&!_0x2c1c79['newRange']){const _0x1c9dc3=_0x1419f0['getSuggestion'](_0x18d6f4);_0x1c9dc3['next']&&_0x1c9dc3['next']['isInContent']&&(_0x1419f0['discardSuggestion'](_0x1c9dc3['next']),_0x406a15=!0x0);}}}return _0x406a15;}),this['_registerLegacyDescription'](_0xee43c);}['_registerLegacyDescription'](_0x6c4aad){const _0x4fbb60=this['editor'],_0x34e042=_0x4fbb60['locale'];_0x4fbb60['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3332a8=>{if('formatBlock'!=_0x3332a8['type']&&'formatInline'!=_0x3332a8['type'])return;const {data:_0x173aa9}=_0x3332a8;if(!_0x173aa9||'imageStyle'!=_0x173aa9['commandName'])return;const _0x37d693=_0x173aa9['commandParams'][0x0]['value'];return _0x3d2d14('side'===_0x37d693?c(_0x34e042,'FORMAT_SIDE_IMAGE'):_0x6c4aad[_0x37d693]||_0x37d693);function _0x3d2d14(_0x4473f0){return{'type':'format','content':c(_0x34e042,'*Format:*\x20%0',_0x4473f0)};}});}}class ut extends _0x23c200{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x248505){super(_0x248505),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x463f61=this['editor'],_0xa258b7=_0x463f61['commands']['get']('importWord'),_0x976cf=_0x463f61['commands']['get']('trackChanges');_0xa258b7&&(_0xa258b7['on']('execute',(_0x2693bc,[,_0x1784cc])=>{this['_trackChangesValueDuringImport']=_0x976cf['value'],_0x1784cc['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0xa258b7,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0xa258b7,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x976cf['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x463f61['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x2fe36b,_0x3e82af){const {suggestions:_0x5b40d8}=_0x3e82af,_0x14ea66=this['editor']['commands']['get']('trackChanges'),_0x5711cf=_0x14ea66['value'];this['_trackChangesValueDuringImport']!==_0x5711cf&&(_0x14ea66['execute'](),this['_trackChangesExecuted']=!0x0),_0x5b40d8&&_0x5b40d8['forEach'](({id:_0x27d1f8,type:_0x48b8fd,author:_0x18faef,created_at:_0xe447d7})=>{const _0x14dbcb={'id':_0x27d1f8,'type':_0x48b8fd,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x18faef,'createdAt':_0xe447d7?new Date(_0xe447d7):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x14dbcb);});}}class ft extends _0x23c200{['afterInit'](){const _0x5ef25f=this['editor'],_0x162a3d=_0x5ef25f['plugins']['get']('TrackChangesEditing');if(_0x5ef25f['plugins']['has']('IndentEditing')&&(_0x162a3d['enableCommand']('indent'),_0x162a3d['enableCommand']('outdent')),_0x5ef25f['plugins']['has']('IndentBlock')){for(const _0x416006 of['indentBlock','outdentBlock'])_0x162a3d['enableDefaultAttributesIntegration'](_0x416006);}const _0x1a5043=_0x5ef25f['locale'];_0x162a3d['registerBlockAttribute']('blockIndent'),_0x162a3d['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x1a5043,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x42c013=this['editor'],_0x59d624=_0x42c013['locale'],_0x2af81b=_0x42c013['plugins']['get']('TrackChangesEditing');_0x2af81b['descriptionFactory']['registerDescriptionCallback'](_0x4d16d5=>{if('formatBlock'!=_0x4d16d5['type'])return;const {data:_0x3e20d8}=_0x4d16d5;if(!_0x3e20d8)return;if('indentBlock'!=_0x3e20d8['commandName']&&'outdentBlock'!=_0x3e20d8['commandName'])return;const _0x1eb21e=_0x4d16d5['getItems']()[0x0],_0x4b2e05=_0x2af81b['descriptionFactory']['getItemLabel'](_0x1eb21e);return'indentBlock'==_0x3e20d8['commandName']?{'type':'format','content':c(_0x59d624,'*Indent:*\x20%0',_0x4b2e05)}:'outdentBlock'==_0x3e20d8['commandName']?{'type':'format','content':c(_0x59d624,'*Outdent:*\x20%0',_0x4b2e05)}:void 0x0;});}}class ht extends _0x23c200{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x23c200{['afterInit'](){const _0x2fd8a6=this['editor'];if(!_0x2fd8a6['plugins']['has']('LinkEditing'))return;const _0x13eb3f=_0x2fd8a6['plugins']['get']('TrackChangesEditing'),_0xc2ef70=_0x2fd8a6['commands']['get']('link');_0x13eb3f['enableDefaultAttributesIntegration']('link'),_0x13eb3f['enableDefaultAttributesIntegration']('unlink'),_0x13eb3f['registerInlineAttribute']('linkHref');for(const _0x4abeb7 of _0xc2ef70['manualDecorators'])_0x13eb3f['registerInlineAttribute'](_0x4abeb7['id']),_0x13eb3f['descriptionFactory']['registerAttributeLabel'](_0x4abeb7['id'],'link\x20('+_0x4abeb7['label']['toLowerCase']()+')');_0x13eb3f['descriptionFactory']['registerDescriptionCallback'](_0x2805b4=>{if('attribute'!=_0x2805b4['type'])return;const {data:_0x44ad1b}=_0x2805b4;if(!_0x44ad1b||'linkHref'!=_0x44ad1b['key'])return;const _0x1c282b=_0x44ad1b['newValue'],_0x28f23e=_0x2fd8a6['locale'];return{'type':'format','content':null==_0x1c282b?c(_0x28f23e,'*Remove\x20link*'):c(_0x28f23e,'*Set\x20link:*\x20%0','\x22'+_0x1c282b+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1322cc=this['editor'],_0x3a2439=_0x1322cc['locale'];_0x1322cc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e0404=>{if('formatInline'!=_0x5e0404['type'])return;const {data:_0x485d4c}=_0x5e0404;if(_0x485d4c){if('link'==_0x485d4c['commandName']){const _0x57a47a=_0x485d4c['commandParams'][0x0];return{'type':'format','content':c(_0x3a2439,'*Set\x20link:*\x20%0','\x22'+_0x57a47a+'\x22')};}return'unlink'==_0x485d4c['commandName']?{'type':'format','content':c(_0x3a2439,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x23c200{['afterInit'](){const _0x1bc247=this['editor'],_0x30592c=_0x1bc247['locale'];if(!_0x1bc247['plugins']['has']('LegacyListEditing'))return;const _0x3b8062=_0x1bc247['plugins']['get']('TrackChangesEditing'),_0x2ef623=_0x1bc247['plugins']['has']('LegacyTodoListEditing');function _0x2361b6(_0xfd4f04){return()=>{const _0x1a37e2=_0x1bc247['model']['document']['selection'],_0x17412=_0x1bc247['commands']['get'](_0xfd4f04);if(_0x17412['value'])return void _0x1bc247['execute']('paragraph',{});const _0x24c2c8=_0xfd4f04['slice'](0x0,-0x4),_0x5922f2=function(_0x18af48,_0x5cf785,_0x309f47){let _0x246465=Array['from'](_0x18af48)['filter'](_0x1df616=>function(_0x2d4afa,_0x581345){return _0x581345['checkChild'](_0x2d4afa['parent'],'listItem')&&!_0x581345['isObject'](_0x2d4afa);}(_0x1df616,_0x309f47));_0x246465=_0x246465['filter'](_0x44d07f=>!_0x44d07f['is']('element','listItem')||_0x44d07f['getAttribute']('listType')!=_0x5cf785);const _0x26038e=new Set();for(const _0x51edd0 of _0x246465)_0x51edd0['is']('element','listItem')?_0x26038e['add'](Le(_0x51edd0)):_0x26038e['add'](_0x51edd0);return Array['from'](_0x26038e);}(_0x1a37e2['getSelectedBlocks'](),_0x24c2c8,_0x1bc247['model']['schema']);_0x1bc247['model']['change'](()=>{for(const _0x4b6cb4 of _0x5922f2)_0x3b8062['markBlockFormat'](_0x4b6cb4,{'commandName':_0xfd4f04,'commandParams':[{'forceValue':!_0x17412['value']}],'formatGroupId':'blockName'},Ee(_0x4b6cb4));});};}function _0x21dc5d(_0x1461dd){return()=>{const _0x209c75=function(_0x1854d1){let _0x386169=Array['from'](_0x1854d1);const _0x48b56c=_0x386169['findIndex'](_0x2944d0=>'listItem'!=_0x2944d0['name']);return _0x48b56c>-0x1&&(_0x386169=_0x386169['slice'](0x0,_0x48b56c)),_0x386169;}(_0x1bc247['model']['document']['selection']['getSelectedBlocks']()),_0x1cebf7=_0x1bc247['model']['createRange'](_0x1bc247['model']['createPositionAt'](_0x209c75[0x0],'before'),_0x1bc247['model']['createPositionAt'](_0x209c75[_0x209c75['length']-0x1],'end'));_0x1bc247['model']['change'](()=>{_0x3b8062['markBlockFormat'](_0x1cebf7,{'commandName':_0x1461dd,'commandParams':[],'formatGroupId':'listIndent'},function(_0x4ec810){const _0x1cb64a=new Set();for(const _0x4fc3fe of _0x4ec810){let _0x186447=_0x4fc3fe['nextSibling'];for(;_0x186447&&_0x186447['getAttribute']('listIndent')>_0x4fc3fe['getAttribute']('listIndent');)_0x1cb64a['add'](_0x186447),_0x186447=_0x186447['nextSibling'];}return Array['from'](_0x1cb64a);}(_0x209c75));});};}_0x3b8062['enableCommand']('numberedList',_0x2361b6('numberedList')),_0x3b8062['enableCommand']('bulletedList',_0x2361b6('bulletedList')),_0x2ef623&&_0x3b8062['enableCommand']('todoList',_0x2361b6('todoList')),_0x3b8062['enableCommand']('indentList',_0x21dc5d('indentList')),_0x3b8062['enableCommand']('outdentList',_0x21dc5d('outdentList')),_0x2ef623&&_0x3b8062['enableCommand']('checkTodoList',()=>{const _0x5834cb=_0x1bc247['commands']['get']('checkTodoList'),_0xf60df6=Array['from'](_0x5834cb['_selectedElements']);_0xf60df6['filter'](_0x471c4d=>_0x471c4d['getAttribute']('todoListChecked')!=_0x5834cb['value']),_0x1bc247['model']['change'](()=>{for(const _0x317f36 of _0xf60df6)_0x3b8062['markBlockFormat'](_0x317f36,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5834cb['value']}]});});}),_0x3b8062['descriptionFactory']['registerElementLabel']('listItem',_0x4cd9fb=>c(_0x30592c,'ELEMENT_LIST_ITEM',_0x4cd9fb)),_0x3b8062['descriptionFactory']['registerDescriptionCallback'](_0x5feaca=>{if('formatBlock'!=_0x5feaca['type']&&'formatInline'!=_0x5feaca['type'])return;const {data:_0x1c27e0}=_0x5feaca;if(_0x1c27e0){if('numberedList'==_0x1c27e0['commandName']||'bulletedList'==_0x1c27e0['commandName']||'todoList'==_0x1c27e0['commandName'])switch(_0x1c27e0['commandName']['replace']('List','')){case'bulleted':return _0x33167(c(_0x30592c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x33167(c(_0x30592c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x33167(c(_0x30592c,'ELEMENT_TODO_LIST'));}if('indentList'==_0x1c27e0['commandName'])return{'type':'format','content':c(_0x30592c,'*Indent:*\x20%0',c(_0x30592c,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x1c27e0['commandName'])return{'type':'format','content':c(_0x30592c,'*Outdent:*\x20%0',c(_0x30592c,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x1c27e0['commandName'])return _0x1c27e0['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x30592c,'*Check\x20item*')}:{'type':'format','content':c(_0x30592c,'*Uncheck\x20item*')};}function _0x33167(_0x27abff){return{'type':'format','content':c(_0x30592c,'*Change\x20to:*\x20%0',_0x27abff)};}});}}function Le(_0x4cb2c1){const _0x591cc4=_0x4cb2c1['getAttribute']('listIndent');if(0x0==_0x591cc4)return _0x4cb2c1;let _0x1c7431=_0x4cb2c1;for(;_0x4cb2c1['previousSibling']&&_0x4cb2c1['previousSibling']['is']('element','listItem');){const _0x59236d=_0x4cb2c1['previousSibling']['getAttribute']('listIndent');if(_0x59236d==_0x591cc4)_0x1c7431=_0x4cb2c1['previousSibling'];else{if(_0x59236d<_0x591cc4)break;}_0x4cb2c1=_0x4cb2c1['previousSibling'];}return _0x1c7431;}function Ee(_0x425364){const _0x1ad8f6=[];if(_0x425364['is']('element','listItem')&&_0x425364['getAttribute']('listIndent')>0x0){let _0x5f028a=_0x425364['nextSibling'];for(;_0x5f028a&&'listItem'==_0x5f028a['name']&&_0x5f028a['getAttribute']('listIndent')==_0x425364['getAttribute']('listIndent');)_0x1ad8f6['push'](_0x5f028a),_0x5f028a=_0x5f028a['nextSibling'];}return _0x1ad8f6;}class Q extends _0x23c200{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x463199=this['editor']['config']['get']('list.properties'),_0x36c1ce=this['editor']['plugins']['get']('TrackChangesEditing');_0x463199['styles']&&_0x36c1ce['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x463199['reversed']&&_0x36c1ce['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x463199['startIndex']&&_0x36c1ce['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x36c1ce['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0xd207f7,_0x16e285={}){const _0x52765f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3586c0=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x52765f['markMultiRangeBlockFormat'](_0x3586c0,{'commandName':'listStyle','commandParams':[{'type':_0x16e285['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x4abe36,_0x3cdb9b={}){const _0xa20d29=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3ee9e0=this['_getSuggestionBlocks'](_0x514c75=>_0x514c75['is']('element','listItem')&&'numbered'===_0x514c75['getAttribute']('listType'));if(_0x3ee9e0['length']<0x1)return;const _0x2be268=_0x3ee9e0['map'](_0x1075aa=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1075aa,'before'),this['editor']['model']['createPositionAt'](_0x1075aa,0x0)));this['editor']['model']['change'](()=>{_0xa20d29['markMultiRangeBlockFormat'](_0x2be268,{'commandName':'listReversed','commandParams':[{'reversed':_0x3cdb9b['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x371b47,_0x1e591f={}){const _0x54b6cd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2a2162=this['_getSuggestionBlocks'](_0x4c0c57=>_0x4c0c57['is']('element','listItem')&&'numbered'===_0x4c0c57['getAttribute']('listType'));if(_0x2a2162['length']<0x1)return;const _0xbe41bb=_0x2a2162['map'](_0x31cdb2=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x31cdb2,'before'),this['editor']['model']['createPositionAt'](_0x31cdb2,0x0)));this['editor']['model']['change'](()=>{_0x54b6cd['markMultiRangeBlockFormat'](_0xbe41bb,{'commandName':'listStart','commandParams':[{'startIndex':_0x1e591f['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x19697d){if('formatBlock'!=_0x19697d['type']&&'formatInline'!=_0x19697d['type'])return;const _0x455c41=this['editor']['locale'],{data:_0x3b1b64}=_0x19697d;if(!_0x3b1b64)return;let _0x5f3eac,_0x265f48;switch(_0x3b1b64['commandName']){case'listStyle':_0x5f3eac='*Change\x20to:*\x20%0',_0x265f48={'type':'format','content':c(_0x455c41,_0x5f3eac,c(_0x455c41,this['_getTranslationKeyForListStyle'](_0x3b1b64['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5f3eac=_0x3b1b64['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x265f48={'type':'format','content':c(_0x455c41,_0x5f3eac)};break;case'listStart':_0x5f3eac='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x265f48={'type':'format','content':c(_0x455c41,_0x5f3eac,_0x3b1b64['commandParams'][0x0]['startIndex'])};}return _0x265f48;}['_getSuggestionBlocksForListStyle'](){const _0x550786=this['editor']['plugins']['get']('LegacyListUtils');let _0x22dd86=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x22dd86[0x0]?.['is']('element','listItem')&&_0x22dd86['unshift'](..._0x550786['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x22dd86[_0x22dd86['length']-0x1]?.['is']('element','listItem')&&_0x22dd86['push'](..._0x550786['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x22dd86=[...new Set(_0x22dd86)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x22dd86=_0x22dd86['filter'](_0xa27586=>_0xa27586['is']('element','listItem'))),_0x22dd86;}['_getSuggestionBlocks'](_0x31274c){const _0x30f9aa=this['editor']['plugins']['get']('LegacyListUtils');let _0x4b1c4a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x31274c)['map'](_0x94b7ed=>{const _0xe1b847=this['editor']['model']['createPositionAt'](_0x94b7ed,0x0);return[..._0x30f9aa['getSiblingNodes'](_0xe1b847,'backward'),..._0x30f9aa['getSiblingNodes'](_0xe1b847,'forward')];})['flat']();return _0x4b1c4a=[...new Set(_0x4b1c4a)],_0x4b1c4a;}['_getTranslationKeyForListStyle'](_0x398249){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x398249)||'default')['toUpperCase']()+'_LIST_'+_0x398249['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x23c200{['afterInit'](){const _0x5a53ac=this['editor'];if(!_0x5a53ac['plugins']['has']('MediaEmbedEditing'))return;const _0x38aecf=_0x5a53ac['plugins']['get']('TrackChangesEditing'),_0x25532c=_0x5a53ac['locale'];_0x38aecf['enableCommand']('mediaEmbed'),_0x38aecf['descriptionFactory']['registerElementLabel']('media',_0x5e2606=>c(_0x25532c,'ELEMENT_MEDIA',_0x5e2606)),_0x5a53ac['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x2bcb5b,{writer:_0x6e9a32,options:_0x4fed14})=>{if(_0x4fed14['showSuggestionHighlights'])return _0x6e9a32['createEmptyElement']('div');},'converterPriority':'high'}),_0x5a53ac['data']['downcastDispatcher']['on']('attribute:url:media',(_0x2417be,_0x1375f5,_0x29407b)=>{_0x29407b['options']['showSuggestionHighlights']&&_0x2417be['stop']();},{'priority':'high'});}}class pt extends _0x23c200{['afterInit'](){const _0x2a64b3=this['editor'];_0x2a64b3['plugins']['has']('MentionEditing')&&_0x2a64b3['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x23c200{['afterInit'](){const _0x442697=this['editor'];if(!_0x442697['plugins']['has']('MergeFieldsEditing'))return;const _0x443821=_0x442697['plugins']['get']('TrackChangesEditing'),_0x4d1a9a=_0x442697['locale'];_0x443821['enableCommand']('insertMergeField'),_0x443821['enableCommand']('insertMergeFieldBlock'),_0x443821['enableCommand']('insertMergeFieldImage'),_0x443821['descriptionFactory']['registerElementLabel']('mergeField',_0x483337=>c(_0x4d1a9a,'ELEMENT_MERGE_FIELD',_0x483337)),_0x443821['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x26f7a7=>c(_0x4d1a9a,'ELEMENT_MERGE_FIELD',_0x26f7a7)),_0x443821['descriptionFactory']['registerDescriptionCallback'](_0x45bf69=>{if('insertion'!=_0x45bf69['type']&&'deletion'!=_0x45bf69['type'])return;const _0x21bfea=_0x45bf69['getContainedElement']();if(null==_0x21bfea)return;const _0x5c9d5d=_0x442697['plugins']['get']('MergeFieldsEditing');let _0x527543;switch(_0x5c9d5d['getMergeFieldType'](_0x21bfea)){case null:return;case'image':{const _0x433d11=_0x5c9d5d['unwrapAffixes'](_0x21bfea['getAttribute']('src'));_0x527543=_0x5c9d5d['getLabel'](_0x433d11)||_0x433d11;break;}default:{const _0x2aaaf7=_0x21bfea['getAttribute']('id');_0x527543=_0x5c9d5d['getLabel'](_0x2aaaf7)||_0x2aaaf7;break;}}return'insertion'==_0x45bf69['type']?{'type':'insertion','content':c(_0x4d1a9a,'*Insert:*\x20%0','\x22'+_0x527543+'\x22\x20'+c(_0x4d1a9a,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x4d1a9a,'*Remove:*\x20%0','\x22'+_0x527543+'\x22\x20'+c(_0x4d1a9a,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x23c200{['afterInit'](){const _0x1bfe04=this['editor'],_0x5b6976=_0x1bfe04['plugins']['get']('TrackChangesEditing');_0x1bfe04['plugins']['has']('MultiLevelList')&&(_0x5b6976['enableDefaultAttributesIntegration']('multiLevelList'),_0x5b6976['registerBlockAttribute']('listMarkerStyle'),_0x5b6976['descriptionFactory']['registerDescriptionCallback'](_0x20204a=>this['handleDescriptions'](_0x20204a)));}['handleDescriptions'](_0x3982b5){const _0x54c8ae=this['editor']['locale'],{data:_0x159d38}=_0x3982b5,_0xee26={'type':'format','content':''};if(_0x159d38&&'listMarkerStyle'==_0x159d38['key']){if(!_0x159d38['oldValue'])return{'type':'format','content':c(_0x54c8ae,'*Set\x20format:*\x20%0',c(_0x54c8ae,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x159d38['newValue']+')'};if(!_0x159d38['newValue']){let _0x1bc47d=_0x3982b5['head'];for(;_0x1bc47d;){if(_0x1bc47d['data']&&'listType'==_0x1bc47d['data']['key']&&_0x1bc47d['data']['newValue'])return _0xee26;_0x1bc47d=_0x1bc47d['next'];}return{'type':'format','content':c(_0x54c8ae,'*Remove\x20format:*\x20%0',c(_0x54c8ae,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x159d38['oldValue']+')'};}}}}class bt extends _0x23c200{['afterInit'](){const _0x3ed57b=this['editor'];if(!_0x3ed57b['plugins']['has']('PageBreakEditing'))return;_0x3ed57b['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x21aa34=_0x3ed57b['plugins']['get']('TrackChangesEditing'),_0x262081=_0x3ed57b['locale'];_0x21aa34['descriptionFactory']['registerElementLabel']('pageBreak',_0x40f155=>c(_0x262081,'ELEMENT_PAGE_BREAK',_0x40f155));}}class yt extends _0x23c200{['afterInit'](){const _0x47c832=this['editor'];if(!_0x47c832['plugins']['has']('Paragraph'))return;const _0x164292=_0x47c832['locale'],_0x3b13d1=_0x47c832['plugins']['get']('TrackChangesEditing');_0x3b13d1['descriptionFactory']['registerElementLabel']('paragraph',_0x479fcd=>c(_0x164292,'ELEMENT_PARAGRAPH',_0x479fcd)),_0x3b13d1['enableDefaultAttributesIntegration']('paragraph'),_0x3b13d1['enableCommand']('insertParagraph'),_0x47c832['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x47c832),{'priority':'highest'}),_0x47c832['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x322edb,_0x3bd913,_0x3be87b)=>{_0x3be87b['options']['showSuggestionHighlights']&&nr(_0x47c832,{'showActiveMarker':!0x1})(_0x322edb,_0x3bd913,_0x3be87b);},{'priority':'highest'});const _0x54b907=_0x3b13d1['descriptionFactory'];_0x54b907['registerDescriptionCallback'](_0x2d4688=>{if('insertion'!==_0x2d4688['type'])return;const {start:_0x222586,end:_0x40bdf9}=_0x2d4688['getFirstRange']();if(!_0x222586['isTouching'](_0x40bdf9)||!_0x222586['nodeAfter'])return;const _0x4d589d=_0x47c832['model']['schema'],_0x5017a2=_0x222586['nodeAfter'];return _0x4d589d['isBlock'](_0x5017a2)&&!_0x4d589d['isLimit'](_0x5017a2)&&_0x4d589d['checkChild'](_0x5017a2,'$text')?{'type':'insertion','content':c(_0x164292,'*Insert:*\x20%0',_0x54b907['getItemLabel'](_0x5017a2,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1e6a63=this['editor'],_0x28d63b=_0x1e6a63['locale'];_0x1e6a63['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b9581=>{if('formatBlock'!=_0x5b9581['type'])return;const {data:_0x2daa0f}=_0x5b9581;return _0x2daa0f&&'paragraph'==_0x2daa0f['commandName']?{'type':'format','content':c(_0x28d63b,'*Change\x20to:*\x20%0',c(_0x28d63b,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x1782f8,{showActiveMarker:_0x4ec86c=!0x0}={}){return(_0x60c7a7,_0x2dc7f4,_0x127db6)=>{const _0x1cada9=_0x1782f8['plugins']['get']('TrackChangesEditing'),_0xc9e40c=_0x2dc7f4['markerRange']['start'],_0xd6d7c4=_0x2dc7f4['markerRange']['end'],_0x1740b2=_0x1782f8['model']['schema'];if(!_0xc9e40c['isTouching'](_0xd6d7c4)||!_0xc9e40c['nodeAfter'])return;const _0x1aeaa=_0xc9e40c['nodeAfter'];if(_0x1740b2['isBlock'](_0x1aeaa)&&!_0x1740b2['isLimit'](_0x1aeaa)&&_0x1740b2['checkChild'](_0x1aeaa,'$text')){if(!_0x127db6['consumable']['consume'](_0x2dc7f4['markerRange'],_0x60c7a7['name']))return;const {authorId:_0x295a0e}=_0x1cada9['_splitMarkerName'](_0x2dc7f4['markerName']),_0xedbdad=_0x127db6['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x295a0e}),_0x582a25=_0x127db6['mapper']['toViewPosition'](_0xd6d7c4);_0x4ec86c&&_0x1cada9['activeMarkers']['includes'](_0x2dc7f4['markerName'])&&_0x127db6['writer']['addClass']('ck-suggestion-marker--active',_0xedbdad),_0x127db6['writer']['insert'](_0x582a25,_0xedbdad),_0x127db6['mapper']['bindElementToMarker'](_0xedbdad,_0x2dc7f4['markerName']);}};}class jt extends _0x23c200{['afterInit'](){const _0x424005=this['editor'];_0x424005['commands']['get']('replaceSource')&&_0x424005['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x23c200{['afterInit'](){const _0x257d30=this['editor'];if(!_0x257d30['plugins']['has']('RemoveFormatEditing'))return;_0x257d30['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x44ec16=this['editor'];_0x44ec16['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x37d1bb=>{if('formatBlock'!=_0x37d1bb['type']&&'formatInline'!=_0x37d1bb['type'])return;const {data:_0x1edc8c}=_0x37d1bb;return _0x1edc8c&&'removeFormat'==_0x1edc8c['commandName']?{'type':'format','content':c(_0x44ec16['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x23c200{['afterInit'](){const _0x4a3daf=this['editor'];if(!_0x4a3daf['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x3329b1=_0x4a3daf['plugins']['get']('TrackChangesEditing');_0x3329b1['enableCommand']('goToPreviousRestrictedEditingException'),_0x3329b1['enableCommand']('goToNextRestrictedEditingException');const _0x443dd1=_0x4a3daf['plugins']['get']('RestrictedEditingModeEditing');_0x443dd1['enableCommand']('trackChanges'),_0x443dd1['enableCommand']('acceptSuggestion'),_0x443dd1['enableCommand']('discardSuggestion'),_0x443dd1['enableCommand']('acceptAllSuggestions'),_0x443dd1['enableCommand']('discardAllSuggestions'),_0x443dd1['enableCommand']('acceptSelectedSuggestions'),_0x443dd1['enableCommand']('discardSelectedSuggestions');}}class It extends _0x23c200{['afterInit'](){const _0x41cfb5=this['editor'];if(!_0x41cfb5['plugins']['has']('ShiftEnter'))return;const _0x4abf5a=_0x41cfb5['plugins']['get']('TrackChangesEditing');_0x4abf5a['enableCommand']('shiftEnter'),_0x41cfb5['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x41cfb5),{'priority':'high'}),_0x41cfb5['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x41cfb5),{'priority':'high'}),_0x41cfb5['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x30f563,_0x49e7b3,_0x23d87e)=>{_0x23d87e['options']['showSuggestionHighlights']&&je(_0x41cfb5,{'showActiveMarker':!0x1})(_0x30f563,_0x49e7b3,_0x23d87e);}),_0x4abf5a['descriptionFactory']['registerElementLabel']('softBreak',_0x4a7556=>c(_0x41cfb5['locale'],'ELEMENT_LINE_BREAK',_0x4a7556));}}function je(_0x33f604,{showActiveMarker:_0x4c4187=!0x0}={}){return(_0xd9af7a,_0x4ab47f,_0x22a8c5)=>{const _0x43f036=_0x33f604['plugins']['get']('TrackChangesEditing');if(!_0x22a8c5['consumable']['test'](_0x4ab47f['markerRange'],_0xd9af7a['name']))return;const _0x229b7c=_0x33f604['model'];for(const _0x36414e of _0x4ab47f['markerRange']['getItems']()){if(!_0x36414e['is']('element','softBreak'))continue;const _0x355e11='deletion'==_0x4ab47f['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x85d7b8}=_0x43f036['_splitMarkerName'](_0x4ab47f['markerName']),_0x3c6098=_0x22a8c5['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x355e11,'data-author-id':_0x85d7b8}),_0x24315e=_0x22a8c5['mapper']['toViewPosition'](_0x229b7c['createPositionBefore'](_0x36414e));_0x4c4187&&_0x43f036['activeMarkers']['includes'](_0x4ab47f['markerName'])&&_0x22a8c5['writer']['addClass']('ck-suggestion-marker--active',_0x3c6098),_0x22a8c5['writer']['insert'](_0x24315e,_0x3c6098),_0x22a8c5['mapper']['bindElementToMarker'](_0x3c6098,_0x4ab47f['markerName']);}};}class _t extends _0x23c200{['afterInit'](){const _0x566059=this['editor'],_0x1a5bc3=_0x566059['model'],_0x2b1af7=_0x566059['locale'];if(!_0x566059['plugins']['has']('StandardEditingModeEditing'))return;const _0x272cf1=_0x566059['plugins']['get']('TrackChangesEditing'),_0x1ecfeb='restrictedEditingException',_0x50db57=_0x566059['commands']['get'](_0x1ecfeb);_0x272cf1['enableCommand'](_0x1ecfeb,(_0x7c9d30,_0x5781ed={})=>{const _0x43d837=_0x1a5bc3['document']['selection'];if(_0x43d837['isCollapsed'])return void _0x7c9d30(_0x5781ed);const _0xcc2b6=void 0x0!==_0x5781ed['forceValue']?_0x5781ed['forceValue']:!_0x50db57['value'];_0x1a5bc3['change'](()=>{const _0x10c140=Array['from'](_0x43d837['getRanges']());for(const _0x3038df of _0x10c140){const _0x412b8d=_0xcc2b6?[_0x3038df]:io(_0x1ecfeb,_0x3038df,_0x1a5bc3);for(const _0x5c859b of _0x412b8d)_0x272cf1['markInlineFormat'](_0x5c859b,{'commandName':_0x1ecfeb,'commandParams':[{'forceValue':_0xcc2b6}]});}});}),_0x272cf1['descriptionFactory']['registerDescriptionCallback'](_0x4d264e=>{if('formatBlock'!=_0x4d264e['type']&&'formatInline'!=_0x4d264e['type'])return;const {data:_0x42345f}=_0x4d264e;return _0x42345f&&_0x42345f['commandName']==_0x1ecfeb?_0x42345f['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x2b1af7,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x2b1af7,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x23c200{['afterInit'](){const _0x2295f0=this['editor'];if(!_0x2295f0['plugins']['has']('Style')||!_0x2295f0['plugins']['has']('DataSchema'))return;const _0x2573c5=_0x2295f0['plugins']['get']('TrackChangesEditing'),_0x301d6a=_0x2295f0['locale'],_0x13e96f=_0x2295f0['config']['get']('style')||{},_0x4ab1c8=_0x2295f0['plugins']['get']('GeneralHtmlSupport'),_0x36ed22=_0x2295f0['plugins']['get']('StyleUtils')['normalizeConfig'](_0x2295f0['plugins']['get']('DataSchema'),_0x13e96f['definitions']);_0x2573c5['enableDefaultAttributesIntegration']('style');const _0x59a6be=new Set();for(const _0x476564 of _0x36ed22['block']){const _0xea401d=_0x4ab1c8['getGhsAttributeNameForElement'](_0x476564['element']);_0x59a6be['add'](_0xea401d);}const _0x380270=new Set();for(const _0x4a972a of _0x36ed22['inline']){const _0x5c6da3=_0x4ab1c8['getGhsAttributeNameForElement'](_0x4a972a['element']);_0x380270['add'](_0x5c6da3);for(const _0x34cd7b of _0x4a972a['ghsAttributes'])_0x380270['add'](_0x34cd7b);}for(const _0xdc1b44 of _0x59a6be)_0x2573c5['registerBlockAttribute'](_0xdc1b44),_0x2573c5['descriptionFactory']['registerAttributeLabel'](_0xdc1b44,c(_0x301d6a,'FORMAT_STYLE'));for(const _0x5821e4 of _0x380270)_0x2573c5['registerInlineAttribute'](_0x5821e4),_0x2573c5['descriptionFactory']['registerAttributeLabel'](_0x5821e4,c(_0x301d6a,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xadde23=this['editor'],_0x14e92c=_0xadde23['locale'];_0xadde23['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4fe724=>{if('formatBlock'!=_0x4fe724['type']&&'formatInline'!=_0x4fe724['type'])return;const {data:_0x2be892}=_0x4fe724;return _0x2be892&&'style'===_0x2be892['commandName']?_0x2be892['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x14e92c,'*Set\x20format:*\x20%0',_0x2be892['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x14e92c,'*Remove\x20format:*\x20%0',_0x2be892['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x23c200{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x36c30f){super(_0x36c30f),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x440c39=this['editor'],_0x6ccde=_0x440c39['model']['document']['selection'];if(!_0x440c39['plugins']['has']('TableEditing'))return;const _0x18c1cb=_0x440c39['locale'],_0x88979c=_0x440c39['plugins']['get']('TrackChangesEditing'),_0x3856d1=_0x440c39['plugins']['get']('TableUtils');_0x88979c['descriptionFactory']['registerElementLabel']('table',_0x1e7839=>c(_0x18c1cb,'ELEMENT_TABLE',_0x1e7839)),this['_setupColumnsRowsFixing'](),_0x88979c['enableCommand']('insertTable'),_0x88979c['enableCommand']('selectTableRow'),_0x88979c['enableCommand']('selectTableColumn');for(const _0x9d32dd of['insertTableRowAbove','insertTableRowBelow']){const _0x27a153=_0x440c39['commands']['get'](_0x9d32dd);_0x88979c['enableCommand'](_0x9d32dd,_0x58b3c3=>{_0x440c39['model']['change'](_0x493ad1=>{_0x58b3c3();const _0x34f430='above'===_0x27a153['order'],_0x27a0b6=_0x3856d1['getSelectionAffectedTableCells'](_0x6ccde),_0x115f82=_0x3856d1['getRowIndexes'](_0x27a0b6),_0x53bc80=_0x34f430?_0x115f82['first']-0x1:_0x115f82['last']+0x1,_0x5955c3=_0x27a0b6[0x0]['findAncestor']('table'),_0x53617f=_0x3856d1['createTableWalker'](_0x5955c3,{'startRow':_0x53bc80,'endRow':_0x53bc80}),_0xb3156b=Array['from'](_0x53617f)['map'](_0x1a01b5=>_0x493ad1['createRangeOn'](_0x1a01b5['cell']));_0x88979c['markMultiRangeInsertion'](_0xb3156b,'tableRow');});});}for(const _0x19d5df of['insertTableColumnLeft','insertTableColumnRight']){const _0x5f167e=_0x440c39['commands']['get'](_0x19d5df);_0x88979c['enableCommand'](_0x19d5df,_0x2b4660=>{_0x440c39['model']['change'](_0x55eed5=>{_0x2b4660();const _0x2ee5c7='left'===_0x5f167e['order'],_0x2a83d1=_0x3856d1['getSelectionAffectedTableCells'](_0x6ccde),_0x388334=_0x3856d1['getColumnIndexes'](_0x2a83d1),_0x2d5b78=_0x2ee5c7?_0x388334['first']-0x1:_0x388334['last']+0x1,_0x5996d2=_0x2a83d1[0x0]['findAncestor']('table'),_0x1c345d=_0x3856d1['createTableWalker'](_0x5996d2,{'startRow':0x0,'column':_0x2d5b78,'includeAllSlots':!0x1}),_0x1eb2aa=Array['from'](_0x1c345d)['map'](_0x2d7f6b=>_0x55eed5['createRangeOn'](_0x2d7f6b['cell']));_0x88979c['markMultiRangeInsertion'](_0x1eb2aa,'tableColumn');});});}for(const _0x38e9ad of['removeTableRow','removeTableColumn']){const _0x449ded=_0x38e9ad['substr'](0xb),_0x5ae8c2=_0x449ded['toLowerCase'](),_0x387837=_0x5ae8c2['substr'](0x0,0x3)+'span',_0x174c1b='table'+_0x449ded,_0x572e77='min'+_0x449ded,_0x22f9ca='max'+_0x449ded;_0x88979c['enableCommand'](_0x38e9ad,()=>{_0x440c39['model']['change'](_0x8d1747=>{const _0x5cebbd=_0x3856d1['getSelectionAffectedTableCells'](_0x6ccde),_0x557e34=_0x5cebbd[0x0]['findAncestor']('table');let _0x8c40e4;if('removeTableRow'==_0x38e9ad){const _0x563b27=_0x3856d1['getRowIndexes'](_0x5cebbd);_0x8c40e4={'startRow':_0x563b27['first'],'endRow':_0x563b27['last'],'includeAllSlots':!0x0};}else{const _0x4ed0c8=_0x3856d1['getColumnIndexes'](_0x5cebbd);_0x8c40e4={'startColumn':_0x4ed0c8['first'],'endColumn':_0x4ed0c8['last'],'includeAllSlots':!0x0};}const _0x2115ad=_0x3856d1['createTableWalker'](_0x557e34,_0x8c40e4),_0x39fd9c=Array['from'](_0x2115ad)['map'](({cell:_0xf4c154})=>_0xf4c154),_0x2e7180=Ne(_0x39fd9c['filter'](_0x664c4=>_0x664c4['hasAttribute'](_0x387837))),_0x353937=Ne(_0x39fd9c['filter'](_0x9ddbe5=>!_0x9ddbe5['hasAttribute'](_0x387837)))['map'](_0x328f0a=>_0x8d1747['createRangeOn'](_0x328f0a)),_0x38377e=_0x88979c['markMultiRangeDeletion'](_0x353937,_0x174c1b);if(_0x38377e&&('tableRow'==_0x38377e['subType']||'tableColumn'==_0x38377e['subType'])){const _0x17f610=this['_getSuggestionCoords'](_0x38377e);for(const _0x43f54b of _0x2e7180){const _0x3cb1b5=_0x8d1747['createRangeOn'](_0x43f54b),_0x184f36=_0x3856d1['getCellLocation'](_0x43f54b),_0x4ac719=_0x43f54b['getAttribute'](_0x387837)-0x1,_0x58a6bd=_0x17f610[_0x572e77],_0x30a092=_0x17f610[_0x22f9ca];_0x58a6bd<=_0x184f36[_0x5ae8c2]&&_0x184f36[_0x5ae8c2]+_0x4ac719<=_0x30a092&&_0x38377e['addRange'](_0x3cb1b5);}}});});}function _0x6c1ec4(_0x41a2cf){const _0x38e294=Array['from'](_0x6ccde['getRanges']())['map'](_0x5e3b0a=>_0x2de0d6['fromRange'](_0x5e3b0a));_0x440c39['model']['change'](_0x3bd9f0=>{const _0x3486b0=_0x3bd9f0['batch'];_0x41a2cf=_0x41a2cf['filter'](_0x24ecc8=>'$graveyard'!=_0x24ecc8['root']['rootName']),_0x3bd9f0['setSelection'](_0x41a2cf),_0x440c39['commands']['get']('removeTableRow')['refresh'](),_0x440c39['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x440c39['model']['enqueueChange'](()=>{_0x440c39['model']['enqueueChange'](_0x3486b0,_0xf93c87=>{const _0x4cd331=_0x38e294['filter'](_0x503feb=>'$graveyard'!=_0x503feb['root']['rootName']);_0x4cd331['length']>0x0&&_0xf93c87['setSelection'](_0x4cd331);for(const _0x521ebc of _0x38e294)_0x521ebc['detach']();});});});}function _0x1c3c1d(_0x393294){_0x440c39['model']['change'](_0x27347f=>{const _0x182566=Array['from'](_0x6ccde['getRanges']())['map'](_0xbb4d23=>_0x2de0d6['fromRange'](_0xbb4d23)),_0x2af57f=[];for(const _0x51f15d of _0x393294)for(const _0x341093 of _0x51f15d['getItems']({'shallow':!0x0}))_0x2af57f['push'](_0x341093);for(const _0x2cb93c of _0x2af57f)'$graveyard'!=_0x2cb93c['root']['rootName']&&(_0x27347f['setSelection'](_0x27347f['createPositionAt'](_0x2cb93c,0x0)),_0x440c39['commands']['get']('removeTableColumn')['refresh'](),_0x440c39['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x5537f9=_0x182566['filter'](_0x3537d7=>'$graveyard'!=_0x3537d7['root']['rootName']);_0x5537f9['length']>0x0&&_0x27347f['setSelection'](_0x5537f9);for(const _0x24a2c7 of _0x182566)_0x24a2c7['detach']();});}function _0x2d2f26(_0x11fda5,_0x4777b8){return _0x4777b8['every'](_0xa18a62=>_0x11fda5['some'](_0xe7cc20=>_0xe7cc20['end']['isEqual'](_0xa18a62['start'])||_0xa18a62['end']['isEqual'](_0xe7cc20['start'])));}function _0x1b0aed(_0x3fbf8e,_0x2493f5){return!_0x3fbf8e['some'](_0x1cc6bc=>_0x2493f5['some'](_0x574faa=>_0x1cc6bc['isIntersecting'](_0x574faa)))&&_0x3fbf8e['some'](_0x1e0bd8=>_0x2493f5['some'](_0xb46031=>_0x1e0bd8['end']['isTouching'](_0xb46031['start'])));}_0x440c39['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x24d139,_0x2bc128,_0x4681a4)=>{if(!_0x4681a4['options']['showSuggestionHighlights'])return;const _0x81632d=_0x2bc128['item'];if(!_0x81632d)return;const _0x2fd6df=_0x4681a4['mapper']['toViewElement'](_0x81632d);function _0x105f5a(_0x24a070){return Array['isArray'](_0x24a070)?_0x24a070:[_0x24a070];}_0x2fd6df&&'tableCell'===_0x81632d['name']&&_0x420c05(_0x2fd6df,_0x4681a4['writer'],(_0x51665b,_0x2a4ad0,_0x2a8021)=>_0x2a8021['addClass'](_0x105f5a(_0x2a4ad0['classes']),_0x51665b),(_0x5d8774,_0x434859,_0x2a2a41)=>_0x2a2a41['removeClass'](_0x105f5a(_0x434859['classes']),_0x5d8774));},{'priority':'highest'}),_0x88979c['descriptionFactory']['registerDescriptionCallback'](_0x48f632=>{if('insertion'!=_0x48f632['type']&&'deletion'!=_0x48f632['type'])return;const _0x122835=_0x48f632['getContainedElement']();if(null!=_0x122835&&_0x122835['is']('element','table')){if('insertion'==_0x48f632['type']){const _0x255c4e=_0x48f632['getItems']()['filter'](_0x198363=>_0x198363['is']('$textProxy'))['map'](_0xf207a5=>_0xf207a5['data']);if(_0x255c4e['length'])return{'type':'insertion','content':c(_0x18c1cb,'*Insert:*\x20%0',c(_0x18c1cb,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x255c4e['join']('\x20')+'\x22'))};}if('deletion'==_0x48f632['type']){const _0x120a6e=_0x48f632['getItems']()['filter'](_0x31cb20=>_0x31cb20['is']('$textProxy'))['map'](_0x304861=>_0x304861['data']);if(_0x120a6e['length'])return{'type':'deletion','content':c(_0x18c1cb,'*Remove:*\x20%0',c(_0x18c1cb,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x120a6e['join']('\x20')+'\x22'))};}}}),_0x88979c['descriptionFactory']['registerDescriptionCallback'](_0x28fc13=>{if('tableRow'==_0x28fc13['subType']){const _0x2e0ed6=_0x28fc13['getItems']()['filter'](_0xf46428=>_0xf46428['is']('$textProxy'))['map'](_0x19ba5b=>_0x19ba5b['data']),_0x14618c=this['_getSuggestionCoords'](_0x28fc13),_0x2ac71b=_0x14618c['maxRow']-_0x14618c['minRow']+0x1;if('insertion'==_0x28fc13['type'])return _0x2e0ed6['length']?{'type':'insertion','content':c(_0x18c1cb,'*Insert:*\x20%0',c(_0x18c1cb,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2ac71b,'\x22'+_0x2e0ed6['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x18c1cb,'*Insert:*\x20%0',c(_0x18c1cb,'ELEMENT_TABLE_ROW',_0x2ac71b))};if('deletion'==_0x28fc13['type'])return _0x2e0ed6['length']?{'type':'deletion','content':c(_0x18c1cb,'*Remove:*\x20%0',c(_0x18c1cb,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2ac71b,'\x22'+_0x2e0ed6['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x18c1cb,'*Remove:*\x20%0',c(_0x18c1cb,'ELEMENT_TABLE_ROW',_0x2ac71b))};}if('tableColumn'==_0x28fc13['subType']){const _0x2f179a=_0x28fc13['getItems']()['filter'](_0x39ef81=>_0x39ef81['is']('$textProxy'))['map'](_0x336c77=>_0x336c77['data']),_0x1844fc=this['_getSuggestionCoords'](_0x28fc13),_0x4663c2=_0x1844fc['maxColumn']-_0x1844fc['minColumn']+0x1;if('insertion'==_0x28fc13['type'])return _0x2f179a['length']?{'type':'insertion','content':c(_0x18c1cb,'*Insert:*\x20%0',c(_0x18c1cb,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4663c2,'\x22'+_0x2f179a['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x18c1cb,'*Insert:*\x20%0',c(_0x18c1cb,'ELEMENT_TABLE_COLUMN',_0x4663c2))};if('deletion'==_0x28fc13['type'])return _0x2f179a['length']?{'type':'deletion','content':c(_0x18c1cb,'*Remove:*\x20%0',c(_0x18c1cb,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4663c2,'\x22'+_0x2f179a['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x18c1cb,'*Remove:*\x20%0',c(_0x18c1cb,'ELEMENT_TABLE_COLUMN',_0x4663c2))};}}),_0x88979c['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x6c1ec4),_0x88979c['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x6c1ec4),_0x88979c['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x1c3c1d),_0x88979c['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x1c3c1d),_0x88979c['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x2d2f26),_0x88979c['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x2d2f26),_0x88979c['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x1b0aed),_0x88979c['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x1b0aed);}['_acceptFormatSuggestionCallbackFactory'](){const _0x373eaf=this['editor'],_0x48a9fb=_0x373eaf['model']['document']['selection'];return(_0x4ed40f,_0x56010e)=>{_0x373eaf['model']['change'](_0x45f876=>{const {commandName:_0x1dd6c0,commandParams:_0x3acb1a}=_0x56010e;let _0x26eae6=_0x4ed40f[0x0]['end']['nodeBefore'];_0x3acb1a&&_0x3acb1a[0x0]&&!0x1===_0x3acb1a[0x0]['forceValue']&&(_0x26eae6=_0x4ed40f[0x0]['start']['nodeAfter']);const _0x45370e=_0x45f876['createRangeIn'](_0x26eae6);if('$graveyard'==_0x45370e['root']['rootName'])return;const _0x9134b0=Array['from'](_0x48a9fb['getRanges']())['map'](_0x3b8d40=>_0x2de0d6['fromRange'](_0x3b8d40));_0x45f876['setSelection'](_0x45370e),_0x373eaf['commands']['get'](_0x1dd6c0)['refresh'](),_0x3acb1a['push']({'forceDefaultExecution':!0x0}),_0x373eaf['execute'](_0x1dd6c0,..._0x3acb1a);const _0x36aeac=_0x9134b0['filter'](_0x1902e2=>'$graveyard'!=_0x1902e2['root']['rootName']);_0x36aeac['length']>0x0&&_0x45f876['setSelection'](_0x36aeac);for(const _0x5b33af of _0x9134b0)_0x5b33af['detach']();});};}['_getCoordsForCells'](_0x5a3433){const _0x22011e=this['editor']['plugins']['get']('TableUtils');let _0x45cce5=Number['MAX_SAFE_INTEGER'],_0x27d396=Number['MIN_SAFE_INTEGER'],_0x49c6e2=Number['MAX_SAFE_INTEGER'],_0x18ce0a=Number['MIN_SAFE_INTEGER'];for(const _0x479c12 of _0x5a3433){if('$graveyard'==_0x479c12['root']['rootName'])continue;const {row:_0x38564c,column:_0x28f552}=_0x22011e['getCellLocation'](_0x479c12),_0x37eabc=_0x479c12['hasAttribute']('rowspan')?_0x479c12['getAttribute']('rowspan')-0x1:0x0,_0x261334=_0x479c12['hasAttribute']('colspan')?_0x479c12['getAttribute']('colspan')-0x1:0x0;_0x45cce5=_0x38564c<_0x45cce5?_0x38564c:_0x45cce5,_0x27d396=_0x38564c+_0x37eabc>_0x27d396?_0x38564c+_0x37eabc:_0x27d396,_0x49c6e2=_0x28f552<_0x49c6e2?_0x28f552:_0x49c6e2,_0x18ce0a=_0x28f552+_0x261334>_0x18ce0a?_0x28f552+_0x261334:_0x18ce0a;}return{'minRow':_0x45cce5,'maxRow':_0x27d396,'minColumn':_0x49c6e2,'maxColumn':_0x18ce0a};}['_setupColumnsRowsFixing'](){const _0x1a6c7e=this['editor'],_0x36cc35=_0x1a6c7e['plugins']['get']('TrackChangesEditing'),_0x4754a9=_0x1a6c7e['plugins']['get']('TableUtils');_0x1a6c7e['model']['document']['on']('change:data',()=>{const _0x515c5c=Array['from'](_0x1a6c7e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4a43d7,data:_0x2e7389}of _0x515c5c){const {group:_0x5ed453,id:_0x12b503,subType:_0x481c89}=_0x36cc35['_splitMarkerName'](_0x4a43d7);if('suggestion'!=_0x5ed453)continue;if(null!=_0x2e7389['oldRange'])continue;const _0x4f0074=_0x36cc35['getSuggestion'](_0x12b503);this['_tablePostFixingSubtypes']['includes'](_0x481c89)&&this['_tableSuggestions']['add'](_0x4f0074);}},{'priority':'low'});const _0x226a19=(_0x438c1a,_0x35b182)=>{let _0x2e7e24=!0x1;const _0x228551=_0x35b182['createRangeOn'](_0x438c1a),_0x29933c=_0x438c1a['findAncestor']('table'),_0x2fa622=_0x4754a9['getCellLocation'](_0x438c1a);for(const _0x2e63ba of this['_tableSuggestions']){const _0x4dc47b=_0x2e63ba['subType'],_0x48e71c=_0x4dc47b['startsWith']('tablePaste'),_0x31d3bd=_0x4dc47b['substr'](_0x48e71c?0xa:0x5),_0x59fb21=_0x31d3bd['toLowerCase'](),_0x109acd=_0x59fb21['substr'](0x0,0x3)+'span',_0x1c389f='min'+_0x31d3bd,_0x2bad55='max'+_0x31d3bd;if(!_0x2e63ba['isInContent'])continue;if(_0x29933c!=_0x2e63ba['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x2e63ba['isIntersectingWithRange'](_0x228551))continue;const _0x573b12=_0x438c1a['hasAttribute'](_0x109acd)?_0x438c1a['getAttribute'](_0x109acd)-0x1:0x0,_0x357fe1=this['_getSuggestionCoords'](_0x2e63ba),_0x30a085=_0x357fe1[_0x1c389f],_0x43bda8=_0x357fe1[_0x2bad55];_0x30a085<=_0x2fa622[_0x59fb21]&&_0x2fa622[_0x59fb21]+_0x573b12<=_0x43bda8&&(_0x2e63ba['addRange'](_0x228551),_0x2e7e24=!0x0);}return _0x2e7e24;};_0x1a6c7e['model']['document']['registerPostFixer'](_0x36869e=>{let _0x4022c1=!0x1;for(const _0xa5f265 of _0x1a6c7e['model']['document']['differ']['getChanges']())if('insert'==_0xa5f265['type']){if('tableRow'==_0xa5f265['name']){for(const _0x53d850 of _0xa5f265['position']['nodeAfter']['getChildren']())_0x4022c1=_0x4022c1||_0x226a19(_0x53d850,_0x36869e);}else'tableCell'==_0xa5f265['name']&&(_0x4022c1=_0x4022c1||_0x226a19(_0xa5f265['position']['nodeAfter'],_0x36869e));}return _0x4022c1;});}['_getSuggestionCoords'](_0x350638){return this['_getCoordsForCells'](_0x350638['getRanges']()['map'](_0x41219c=>_0x41219c['start']['nodeAfter']));}}function Ne(_0x26e651){return Array['from'](new Set(_0x26e651)['values']());}class Nt extends _0x23c200{static get['requires'](){return[Ct];}['afterInit'](){const _0x12ba88=this['editor'],_0x58a0a1=_0x12ba88['model']['document']['selection'],_0x4b4058=_0x12ba88['locale'];if(!_0x12ba88['plugins']['has']('TableEditing'))return;const _0x55cbf6=_0x12ba88['plugins']['get']('TrackChangesEditing'),_0x2a0328=_0x12ba88['plugins']['get']('TableUtils'),_0x3cb7c2=_0x12ba88['plugins']['get'](Ct);_0x3cb7c2['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x55cbf6['enableCommand']('mergeTableCells',()=>{const _0x213007=_0x2a0328['getSelectionAffectedTableCells'](_0x12ba88['model']['document']['selection']);_0x12ba88['model']['change'](()=>{_0x55cbf6['markMultiRangeBlockFormat'](_0x213007,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x12ba88['commands']['get']('mergeTableCells')['on']('execute',(_0x2aa2e5,_0x19ab2d)=>{_0x12ba88['commands']['get']('trackChanges')['value']&&(_0x19ab2d['length']>0x0&&_0x19ab2d[_0x19ab2d['length']-0x1]&&_0x19ab2d[_0x19ab2d['length']-0x1]['forceDefaultExecution']||_0x55cbf6['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x2aa2e5['stop']());},{'priority':'highest'});for(const _0x548225 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x15f41e=_0x12ba88['commands']['get'](_0x548225);_0x55cbf6['enableCommand'](_0x548225,()=>{const _0x5a71c6=_0x12ba88['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4e8368=>_0x4e8368['is']('element','tableCell')),_0x2fa049=_0x15f41e['value'];_0x12ba88['model']['change'](()=>{_0x55cbf6['markMultiRangeBlockFormat']([_0x5a71c6,_0x2fa049],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x5e93a8 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x50aed7=_0x12ba88['commands']['get'](_0x5e93a8);_0x55cbf6['enableCommand'](_0x5e93a8,()=>{const _0x3bf782=_0x2a0328['getSelectionAffectedTableCells'](_0x12ba88['model']['document']['selection'])[0x0],_0x453123=_0x3bf782['findAncestor']('table'),{column:_0x4fabb7,row:_0x43fe}=_0x2a0328['getCellLocation'](_0x3bf782);let _0x4bf174=[];if('horizontally'==_0x50aed7['direction']){const _0x3209bf=_0x2a0328['createTableWalker'](_0x453123,{'startRow':_0x43fe,'endRow':_0x43fe,'includeAllSlots':!0x0});_0x4bf174=Array['from'](_0x3209bf)['map'](_0x50b0b3=>_0x50b0b3['cell']);}else{const _0x588a87=_0x2a0328['createTableWalker'](_0x453123,{'column':_0x4fabb7,'includeAllSlots':!0x0});_0x4bf174=Array['from'](_0x588a87)['map'](_0x2a7363=>_0x2a7363['cell']);}_0x12ba88['model']['change'](_0x3db7a4=>{_0x55cbf6['markBlockFormat'](_0x3db7a4['createRangeOn'](_0x3bf782),{'commandName':_0x5e93a8,'commandParams':[]},_0x4bf174,_0x5e93a8);});});}_0x55cbf6['descriptionFactory']['registerDescriptionCallback'](_0x317479=>{if('formatBlock'!=_0x317479['type']&&'formatInline'!=_0x317479['type'])return;const {data:_0x2b8100}=_0x317479;return _0x2b8100&&'mergeTableCells'==_0x2b8100['commandName']?{'type':'format','content':c(_0x4b4058,'*Merge\x20cells*')}:void 0x0;}),_0x55cbf6['descriptionFactory']['registerDescriptionCallback'](_0x4ef494=>{if('formatBlock'!=_0x4ef494['type']&&'formatInline'!=_0x4ef494['type'])return;const {data:_0x59bf7d}=_0x4ef494;return _0x59bf7d?'splitTableCellVertically'==_0x59bf7d['commandName']?{'type':'format','content':c(_0x4b4058,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x59bf7d['commandName']?{'type':'format','content':c(_0x4b4058,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x29ebd7=_0x3cb7c2['_acceptFormatSuggestionCallbackFactory']();for(const _0x1a76c6 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x55cbf6['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1a76c6,'accept',_0x29ebd7);for(const _0x5dc67d of['splitTableCellVertically','splitTableCellHorizontally'])_0x55cbf6['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5dc67d,'accept',_0x29ebd7);_0x55cbf6['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x586a58=>{_0x12ba88['model']['change'](_0xd84316=>{const _0xa3d0c2=Array['from'](_0x58a0a1['getRanges']())['map'](_0x23b5b8=>_0x2de0d6['fromRange'](_0x23b5b8));_0xd84316['setSelection'](_0x586a58),_0x12ba88['commands']['get']('mergeTableCells')['refresh'](),_0x12ba88['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3cb35a=_0xa3d0c2['filter'](_0x577c20=>'$graveyard'!=_0x577c20['root']['rootName']);_0x3cb35a['length']>0x0&&_0xd84316['setSelection'](_0x3cb35a);for(const _0xbc706a of _0xa3d0c2)_0xbc706a['detach']();});});for(const _0x4a012a of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x1f8244=_0x12ba88['commands']['get'](_0x4a012a);_0x1f8244['on']('set:isEnabled',(_0x28e595,_0x49830a,_0x3bb665)=>{if(_0x3bb665){const _0x8657d0=_0x12ba88['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4a64ac=>_0x4a64ac['is']('element','tableCell'));this['_areMergableCells'](_0x1f8244['value'],_0x8657d0)||(_0x28e595['return']=!0x1,_0x28e595['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x427c94=this['editor']['commands']['get']('mergeTableCells'),_0x44cb37=this['editor']['plugins']['get']('TableUtils');if(!_0x427c94['isEnabled'])return!0x1;const _0x53a127=_0x44cb37['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x30057d of _0x53a127)for(const _0x1d1a1e of _0x53a127)if(_0x30057d!=_0x1d1a1e&&!this['_areMergableCells'](_0x30057d,_0x1d1a1e))return!0x1;return!0x0;}['_areMergableCells'](_0x356e02,_0x224618){const _0x3a6167=this['editor']['plugins']['get']('TrackChangesEditing'),_0x530530=this['editor']['model']['createRangeOn'](_0x356e02),_0x11f2e2=this['editor']['model']['createRangeOn'](_0x224618),_0x393762=new Set(),_0x5b26de=new Set();for(const _0x2c8071 of _0x3a6167['getSuggestions']())if(('insertion'==_0x2c8071['type']||'deletion'==_0x2c8071['type']||'mergeTableCells'==_0x2c8071['subType'])&&_0x2c8071['isInContent']){for(const _0x5c4417 of _0x2c8071['getRanges']())_0x5c4417['containsRange'](_0x530530,!0x0)&&_0x393762['add'](_0x2c8071['type']+':'+_0x2c8071['author']['id']),_0x5c4417['containsRange'](_0x11f2e2,!0x0)&&_0x5b26de['add'](_0x2c8071['type']+':'+_0x2c8071['author']['id']);}if(_0x393762['size']!=_0x5b26de['size'])return!0x1;for(const _0x13d84b of _0x393762)if(!_0x5b26de['has'](_0x13d84b))return!0x1;return!0x0;}}class Dt extends _0x23c200{static get['requires'](){return[Ct];}['afterInit'](){const _0x5ae166=this['editor'];if(!_0x5ae166['plugins']['has']('TableEditing'))return;const _0x315ab5=_0x5ae166['locale'],_0x150ec8=_0x5ae166['plugins']['get']('TrackChangesEditing');_0x150ec8['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x150ec8['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x150ec8['registerBlockAttribute']('headingRows'),_0x150ec8['registerBlockAttribute']('headingColumns'),_0x150ec8['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x315ab5,'FORMAT_HEADER_ROW')),_0x150ec8['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x315ab5,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x59f359=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1494b9=this['editor']['plugins']['get']('TableUtils'),_0x479328=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x444900({showActiveMarker:_0x1c5c4b=!0x0,setDataAttribute:_0x1a836a=!0x0}={}){return(_0x4d7491,_0x16d3a8,_0x5aef8c)=>{const {type:_0x54c93a,id:_0x1c7e27}=_0x59f359['_splitMarkerName'](_0x16d3a8['markerName']),_0x501b23=_0x59f359['getSuggestion'](_0x1c7e27),_0x2f7812=_0x501b23['data'];if('formatBlock'!=_0x501b23['type']||!_0x2f7812||'setTableColumnHeader'!=_0x2f7812['commandName'])return;if(_0x16d3a8['item'])return void _0x4d7491['stop']();if(!_0x5aef8c['consumable']['consume'](_0x16d3a8['markerRange'],_0x4d7491['name']))return;const _0x4a0b26=_0x16d3a8['markerRange']['start']['nodeAfter'],_0x55840e=_0x16d3a8['markerRange']['end']['nodeBefore'],_0x3641b1=_0x4a0b26['parent']['parent'],{column:_0x2ae354}=_0x1494b9['getCellLocation'](_0x4a0b26),{column:_0x47d3ef}=_0x1494b9['getCellLocation'](_0x55840e);for(let _0x4af406=_0x2ae354;_0x4af406<=_0x47d3ef;_0x4af406++){const _0x16cae3=_0x1494b9['createTableWalker'](_0x3641b1,{'column':_0x4af406,'includeAllSlots':!0x1});for(const _0x1986b8 of _0x16cae3){const _0x5a1587=_0x1986b8['cell'],_0x32af62=_0x5aef8c['mapper']['toViewElement'](_0x5a1587);_0x5aef8c['writer']['addClass']('ck-suggestion-marker-'+_0x54c93a,_0x32af62),_0x1a836a&&_0x5aef8c['writer']['setAttribute']('data-suggestion',_0x1c7e27,_0x32af62),_0x5aef8c['mapper']['bindElementToMarker'](_0x32af62,_0x16d3a8['markerName']),_0x1c5c4b&&(_0x59f359['activeMarkers']['includes'](_0x16d3a8['markerName'])?_0x5aef8c['writer']['addClass']('ck-suggestion-marker--active',_0x32af62):_0x5aef8c['writer']['removeClass']('ck-suggestion-marker--active',_0x32af62));}}};}_0x59f359['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x479328),_0x59f359['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x479328),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x444900(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1940b9,_0x1d55cd,_0x2ea76f)=>{_0x2ea76f['options']['showSuggestionHighlights']&&_0x444900({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1940b9,_0x1d55cd,_0x2ea76f);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x1e5cd3,_0x240314,_0xf68995)=>{const {type:_0x232fd3,id:_0x22c40b}=_0x59f359['_splitMarkerName'](_0x240314['markerName']),_0x3808ea=_0x59f359['getSuggestion'](_0x22c40b),_0x30dbfc=_0x3808ea['data'];if('formatBlock'!=_0x3808ea['type']||!_0x30dbfc||'setTableColumnHeader'!=_0x30dbfc['commandName'])return;const _0x49b70a=_0xf68995['mapper']['markerNameToElements'](_0x240314['markerName']);if(_0x49b70a){for(const _0x6a0404 of _0x49b70a)_0xf68995['writer']['removeClass']('ck-suggestion-marker-'+_0x232fd3,_0x6a0404),_0xf68995['writer']['removeClass']('ck-suggestion-marker--active',_0x6a0404),_0xf68995['writer']['removeAttribute']('data-suggestion',_0x6a0404),_0xf68995['mapper']['unbindElementFromMarkerName'](_0x6a0404,_0x240314['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4bc84d=this['editor'],_0x69efc7=_0x4bc84d['locale'];function _0x1eb08a(_0x366c2b){return{'type':'format','content':c(_0x69efc7,'*Format:*\x20%0',_0x366c2b)};}_0x4bc84d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x273706=>{if('formatBlock'!=_0x273706['type'])return;const {data:_0x54c8df}=_0x273706;if(_0x54c8df){if('setTableRowHeader'==_0x54c8df['commandName']){const _0x3eb6d2=_0x54c8df['commandParams'][0x0]['forceValue'];return _0x1eb08a(c(_0x69efc7,_0x3eb6d2?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x54c8df['commandName']){const _0x47ceee=_0x54c8df['commandParams'][0x0]['forceValue'];return _0x1eb08a(c(_0x69efc7,_0x47ceee?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x23c200{['afterInit'](){const _0x3e5124=this['editor'],_0x368360=_0x3e5124['locale'],_0x3e83fe=_0x3e5124['plugins']['get']('TrackChangesEditing');function _0x219f02(_0x3d5fa0){return{'type':'format','content':''+c(_0x368360,'*Set\x20table\x20type:*\x20%0',_0x3d5fa0)};}_0x3e5124['plugins']['has']('TableLayout')&&(_0x3e83fe['enableCommand']('insertTableLayout'),_0x3e83fe['enableDefaultAttributesIntegration']('tableType'),_0x3e83fe['registerBlockAttribute']('tableType'),_0x3e83fe['descriptionFactory']['registerElementLabel'](_0x5b9d64=>_0x5b9d64['is']('element','table')&&'layout'===_0x5b9d64['getAttribute']('tableType'),_0xaf12f7=>c(_0x368360,'ELEMENT_LAYOUT_TABLE',_0xaf12f7)),_0x3e83fe['descriptionFactory']['registerDescriptionCallback'](_0x5de409=>{const {data:_0x1fdcb0}=_0x5de409;if(_0x1fdcb0&&'tableType'==_0x1fdcb0['key'])switch(_0x1fdcb0['newValue']){case'layout':return _0x219f02(c(_0x368360,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x219f02(c(_0x368360,'ELEMENT_CONTENT_TABLE'));}}));}}const xe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Oe=Object['fromEntries'](xe['map'](_0xa2663c=>[_0xa2663c,null]));class $t extends _0x23c200{static get['requires'](){return[Ct];}['afterInit'](){const _0x1d7cb3=this['editor'];if(!_0x1d7cb3['plugins']['has']('TableClipboard'))return;const _0x60a84a=_0x1d7cb3['plugins']['get']('TrackChangesEditing'),_0x2a8622=_0x1d7cb3['plugins']['get']('TableUtils'),_0x28a923=_0x1d7cb3['plugins']['get'](Ct),_0x1433f8=_0x1d7cb3['plugins']['get']('TableClipboard'),_0x3b507f=_0x1d7cb3['plugins']['get']('TableSelection'),_0x130672=_0x1d7cb3['plugins']['get'](_0x3a22ec);_0x28a923['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x1d7cb3['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x1d7cb3['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x57f266=null,_0x1005df=!0x1;_0x130672['on']('contentInsertion',(_0x16ea60,_0xd4e44a)=>{_0x1005df='paste'===_0xd4e44a['method'];}),_0x1d7cb3['model']['on']('insertContent',(_0x30dc07,_0x137038)=>{if(!_0x1005df&&null===_0x3b507f['getSelectedTableCells']())return;const [_0xc10be5,_0x51e346]=_0x137038,_0x663eef=_0x137038[_0x137038['length']-0x1];_0x663eef&&_0x663eef['forceDefaultExecution']||_0x60a84a['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x3e1295,_0x3e7346,_0x3d46d8,_0x591d34,_0x4a7076){if(_0x3e7346&&!_0x3e7346['is']('documentSelection'))return!0x1;const _0x5e7865=_0x4a7076['getTableIfOnlyTableInContent'](_0x3e1295,_0x3d46d8);if(!_0x5e7865||!De(_0x5e7865,void 0x0,_0x591d34))return!0x1;const _0x348570=_0x591d34['getSelectionAffectedTableCells'](_0x3d46d8['document']['selection']);if(!_0x348570['length'])return!0x1;const _0x581213=_0x348570[0x0]['findAncestor']('table'),_0x321ed0=_0x591d34['getRowIndexes'](_0x348570),_0x5563c7=_0x591d34['getColumnIndexes'](_0x348570),_0x2412c7={'startRow':_0x321ed0['first'],'endRow':_0x321ed0['last'],'startColumn':_0x5563c7['first'],'endColumn':_0x5563c7['last']};return 0x1==_0x348570['length']&&(_0x2412c7['endRow']+=_0x591d34['getRows'](_0x5e7865)-0x1,_0x2412c7['endColumn']+=_0x591d34['getColumns'](_0x5e7865)-0x1),De(_0x581213,_0x2412c7,_0x591d34);}(_0xc10be5,_0x51e346,_0x1d7cb3['model'],_0x2a8622,_0x1433f8)&&(_0x30dc07['stop'](),_0x57f266={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1d7cb3['model']['change'](()=>{_0x1d7cb3['model']['insertContent'](_0x137038[0x0],_0x137038[0x1],_0x137038[0x2],{'forceDefaultExecution':!0x0});const _0x4351b8=_0x53d19c(),{rowInsertionRanges:_0x390588,columnInsertionRanges:_0xeeec03,insertionRanges:_0x56ef01,deletionRanges:_0x51528b,cells:_0x572338}=_0x57f266;_0x390588['length']&&_0x60a84a['markMultiRangeInsertion'](_0x390588,'tablePasteRow',{'tablePasteChainId':_0x4351b8}),_0xeeec03['length']&&_0x60a84a['markMultiRangeInsertion'](_0xeeec03,'tablePasteColumn',{'tablePasteChainId':_0x4351b8}),_0x56ef01['length']&&(_0x60a84a['markMultiRangeInsertion'](_0x56ef01,'tablePaste',{'tablePasteChainId':_0x4351b8,'skipNestingCheck':!0x0}),_0x56ef01['forEach'](_0x4bddcf=>_0x4bddcf['detach']?.())),_0x51528b['length']&&(_0x60a84a['markMultiRangeDeletion'](_0x51528b,'tablePaste',{'tablePasteChainId':_0x4351b8,'skipNestingCheck':!0x0}),_0x51528b['forEach'](_0x22485d=>_0x22485d['detach']?.()));const _0x504439=_0x60a84a['markMultiRangeBlockFormat'](_0x572338['map'](({element:_0x5477e9})=>_0x5477e9),{'formatGroupId':_0x53d19c()},[],'tablePasteCell',{'tablePasteChainId':_0x4351b8});if(_0x504439){const _0x335e5d=_0x504439['getMarkers'](),_0x43077b=[];for(const {element:_0x5f2663,attributes:_0x25d9f8}of _0x572338){if(!_0x25d9f8)continue;const _0x157051=_0x1d7cb3['model']['createRangeOn'](_0x5f2663),_0x4604e1=_0x335e5d['find'](_0x3d28fd=>_0x3d28fd['getRange']()['isEqual'](_0x157051));_0x4604e1&&_0x43077b['push']([_0x4604e1['name'],_0x25d9f8]);}_0x43077b['length']&&_0x504439['setAttribute']('markerAttributes',Object['fromEntries'](_0x43077b));}_0x57f266=null;}));},{'priority':_0x3d0176['high']+0xa}),_0x130672['on']('contentInsertion',()=>{_0x1005df=!0x1;},{'priority':'lowest'}),_0x1d7cb3['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0xf0140d,_0x3f75ee)=>{const [_0x361b52,_0x3e9792,,_0x231a97]=_0x3f75ee;if(!_0x57f266)return;_0xf0140d['stop']();const _0x8e2331=_0x361b52['cell'],_0x27c0fc=_0x3e9792,_0x3a97b4=Ue(_0x8e2331),_0x35732a=Ue(_0x27c0fc);_0xf0140d['return']=_0x8e2331;let _0x4996bb=null,_0x404178=null;if(_0x35732a||_0x3a97b4){if(_0x3a97b4&&!_0x35732a){_0x231a97['remove'](_0x8e2331['getChild'](0x0));for(const _0x27dee9 of Array['from'](_0x27c0fc['getChildren']()))_0x231a97['insert'](_0x27dee9,_0x8e2331,'end');const _0x4d73e7=_0x57f266['rowInsertionIndexes']['includes'](_0x361b52['row']),_0x226bc8=_0x57f266['columnInsertionIndexes']['includes'](_0x361b52['column']);_0x4d73e7||_0x226bc8||(_0x4996bb=_0x2de0d6['fromRange'](_0x231a97['createRangeIn'](_0x8e2331)));}else _0x35732a&&!_0x3a97b4&&(_0x404178=_0x231a97['createRangeIn'](_0x8e2331));}else{const _0x24f247=_0x231a97['createElement']('tableCellSuggestion'),_0x88a7c9=_0x231a97['createElement']('tableCellSuggestion');_0x231a97['wrap'](_0x231a97['createRangeIn'](_0x8e2331),_0x88a7c9),_0x231a97['insert'](_0x24f247,_0x8e2331,0x0);for(const _0x425208 of Array['from'](_0x27c0fc['getChildren']()))_0x231a97['insert'](_0x425208,_0x24f247,'end');_0x4996bb=_0x2de0d6['fromRange'](_0x231a97['createRangeOn'](_0x24f247)),_0x404178=_0x2de0d6['fromRange'](_0x231a97['createRangeOn'](_0x88a7c9));}const _0x3d42ce=Array['from'](_0x27c0fc['getAttributes']())['filter'](([_0x198a3e])=>xe['includes'](_0x198a3e));_0x57f266['cells']['push']({'element':_0x8e2331,'attributes':_0x3d42ce['length']?Object['fromEntries'](_0x3d42ce):null}),_0x4996bb&&_0x57f266['insertionRanges']['push'](_0x4996bb),_0x404178&&_0x57f266['deletionRanges']['push'](_0x404178);},{'priority':'high'}),_0x2a8622['on']('insertColumns',(_0x44cea4,_0x33a09f)=>{const [_0x58b58e,_0x119162={}]=_0x33a09f;if(!_0x57f266)return;const _0x5270b0=_0x119162['at']||0x0,_0x4ce9ec=_0x119162['columns']||0x1;_0x57f266['columnInsertionIndexes']=new Array(_0x4ce9ec)['fill'](_0x5270b0)['map']((_0x5a04cc,_0x46e937)=>_0x5a04cc+_0x46e937);for(const {cell:_0x487693}of _0x2a8622['createTableWalker'](_0x58b58e,{'startColumn':_0x5270b0,'endColumn':_0x5270b0+_0x4ce9ec-0x1}))_0x57f266['columnInsertionRanges']['push'](_0x1d7cb3['model']['createRangeOn'](_0x487693));},{'priority':'low'}),_0x2a8622['on']('insertRows',(_0x3c015d,_0x3ef64e)=>{const [_0x3a9ecd,_0x4405ff={}]=_0x3ef64e;if(!_0x57f266)return;const _0x14c215=_0x4405ff['at']||0x0,_0xac824c=_0x4405ff['rows']||0x1;_0x57f266['rowInsertionIndexes']=new Array(_0xac824c)['fill'](_0x14c215)['map']((_0x4610d8,_0x313dd2)=>_0x4610d8+_0x313dd2);for(const {cell:_0x228704}of _0x2a8622['createTableWalker'](_0x3a9ecd,{'startRow':_0x14c215,'endRow':_0x14c215+_0xac824c-0x1}))_0x57f266['rowInsertionRanges']['push'](_0x1d7cb3['model']['createRangeOn'](_0x228704));},{'priority':'low'}),_0x60a84a['descriptionFactory']['registerDescriptionCallback'](_0x3e9d9f=>{if(_0x3e9d9f['subType']&&_0x3e9d9f['subType']['startsWith']('tablePaste'))return _0x3e9d9f['previous']?{}:{'type':'insertion','content':c(_0x1d7cb3['locale'],'*Replace\x20table\x20cells*')};});const _0x40bdff=()=>!0x1;for(const _0x4484fe of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x60a84a['_suggestionFactory']['registerCustomCallback']('insertion',_0x4484fe,'join',_0x40bdff),_0x60a84a['_suggestionFactory']['registerCustomCallback']('deletion',_0x4484fe,'join',_0x40bdff),_0x60a84a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4484fe,'join',_0x40bdff);_0x60a84a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x40bdff),_0x60a84a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x50cc72,_0x5a6ec0,_0x196522)=>{const _0x1e4940=_0x50cc72['map'](_0x2c1cca=>_0x2c1cca['getContainedElement']())['filter'](_0x33ed69=>_0x33ed69),_0x440ee9=new Map(_0x1e4940['map'](_0x10474d=>[_0x10474d,null]));if(_0x57f266){for(const {element:_0x1a8448,attributes:_0x2d8da6}of _0x57f266['cells'])_0x2d8da6&&_0x440ee9['set'](_0x1a8448,_0x2d8da6);}else{if(_0x196522&&_0x196522['markerAttributes'])for(const [_0x1e3bf1,_0x363419]of Object['entries'](_0x196522['markerAttributes'])){const _0x415e1b=_0x1d7cb3['model']['markers']['get'](_0x1e3bf1),_0x1d20a6=_0x415e1b?_0x415e1b['getRange']()['getContainedElement']():null;_0x1d20a6&&_0x440ee9['set'](_0x1d20a6,_0x363419);}}_0x1d7cb3['model']['change'](_0x8968d5=>{for(const [_0x125bdb,_0x91b425]of _0x440ee9)_0x8968d5['setAttributes']({...Oe,..._0x91b425},_0x125bdb);});});const _0x2c4731=(_0x1cebb8,_0x152f16)=>{_0x60a84a['_suggestionFactory']['registerCustomCallback'](_0x1cebb8,'tablePaste',_0x152f16,(_0x4a206d,_0x13f399,_0x5e4996)=>{_0x1d7cb3['model']['change'](_0xb93bcc=>{const _0x3daf2c=[];for(const _0x1790cd of _0x4a206d){const _0x2b0c7c=_0x1790cd['start']['nodeAfter'];_0x2b0c7c['is']('element','tableCellSuggestion')&&_0x3daf2c['push'](_0x2b0c7c);}_0x60a84a['_suggestionFactory']['getSuggestionCallback'](_0x1cebb8,null,_0x152f16)(_0x4a206d,_0x13f399,_0x5e4996);for(const _0x191c0e of _0x3daf2c)'$graveyard'!=_0x191c0e['root']['rootName']&&_0xb93bcc['unwrap'](_0x191c0e);});});};_0x2c4731('insertion','accept'),_0x2c4731('insertion','discard'),_0x2c4731('deletion','accept'),_0x2c4731('deletion','discard'),_0x60a84a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x5314c4=>{const _0x3c2cd4=_0x5314c4['map'](_0x27a34f=>_0x27a34f['getContainedElement']()),_0x11b5e1=_0x3c2cd4[0x0]['findAncestor']('table'),{minRow:_0x14979f,maxRow:_0x584e78}=_0x28a923['_getCoordsForCells'](_0x3c2cd4);_0x2a8622['removeRows'](_0x11b5e1,{'at':_0x14979f,'rows':_0x584e78-_0x14979f+0x1});}),_0x60a84a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x2a8195=>{const _0x1ae9d5=_0x2a8195['map'](_0x399d78=>_0x399d78['getContainedElement']()),_0x4ef338=_0x1ae9d5[0x0]['findAncestor']('table'),{minColumn:_0x406461,maxColumn:_0x2a1aad}=_0x28a923['_getCoordsForCells'](_0x1ae9d5);_0x2a8622['removeColumns'](_0x4ef338,{'at':_0x406461,'columns':_0x2a1aad-_0x406461+0x1});});const _0x42a009=(_0x40e163,_0x1b521b)=>{if(!_0x1b521b['subType']||!_0x1b521b['subType']['startsWith']('tablePaste'))return;const _0x4f783e=_0x1b521b['attributes']['tablePasteChainId'],_0x56ea67=_0x60a84a['getSuggestions']()['filter'](_0x3bf79a=>_0x3bf79a['isInContent']&&_0x3bf79a['attributes']&&_0x3bf79a['attributes']['tablePasteChainId']==_0x4f783e);_0x56ea67['length']&&_0x1b521b['getAllAdjacentSuggestions']()['length']!=_0x56ea67['length']&&_0x56ea67['reduce']((_0x4a008e,_0x1cb9af)=>(_0x4a008e['next']=_0x1cb9af,_0x1cb9af['previous']=_0x4a008e,_0x1cb9af));};function _0x2bdfe5(_0xb9f071,_0x5e198f=!0x0){const {id:_0x36c6cd,authorId:_0x4b45e9}=_0x60a84a['_splitMarkerName'](_0xb9f071['markerName']),_0x21e9b6=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x4af9fa=_0x60a84a['activeMarkers']['includes'](_0xb9f071['markerName']);return _0x4af9fa&&_0x21e9b6['push']('ck-suggestion-marker--active'),{'classes':_0x21e9b6,'attributes':{'data-suggestion':_0x36c6cd,'data-author-id':_0x4b45e9},'priority':_0x4af9fa&&_0x5e198f?0xbc2:0xbb8};}_0x60a84a['on']('suggestionLoaded',_0x42a009,{'priority':'high'}),_0x60a84a['on']('suggestionUnloaded',_0x42a009,{'priority':'high'}),_0x1d7cb3['model']['document']['registerPostFixer'](()=>{let _0x1d1c9f=!0x1;const _0x447d27=Array['from'](_0x1d7cb3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x509b53,data:_0x26de2b}of _0x447d27){const {group:_0x3e68a5,type:_0x809c26,id:_0x39f5b2}=_0x60a84a['_splitMarkerName'](_0x509b53);if('suggestion'!=_0x3e68a5||'deletion'!=_0x809c26||_0x26de2b['oldRange'])continue;if(!_0x60a84a['hasSuggestion'](_0x39f5b2))continue;const _0x5601ae=_0x60a84a['getSuggestion'](_0x39f5b2)['getRanges'](),_0xc41767=_0x1d7cb3['plugins']['get']('Users')['me'];for(const _0xd4ee18 of _0x60a84a['getSuggestions']()){if(!_0xd4ee18['isInContent']||_0xd4ee18['author']!=_0xc41767)continue;if('formatBlock'!=_0xd4ee18['type']||'tablePasteCell'!=_0xd4ee18['subType'])continue;if(_0xd4ee18['getRanges']()['every'](_0x43b07e=>_0x5601ae['some'](_0x46cc5e=>_0x46cc5e['containsRange'](_0x43b07e,!0x0)))){for(const _0x3c3f24 of _0xd4ee18['getAllAdjacentSuggestions']())_0x3c3f24['isInContent']&&(_0x3c3f24['discard'](),_0x1d1c9f=!0x0);}}}return _0x1d1c9f;}),_0x1d7cb3['model']['document']['registerPostFixer'](_0x183bfc=>{const _0x3a1731=_0x1d7cb3['commands']['get']('redo');if(!_0x3a1731||!_0x3a1731['_createdBatches']['has'](_0x183bfc['batch']))return!0x1;let _0x45cb7b=!0x1;const _0x90376b=_0x1d7cb3['plugins']['get']('Users')['me'],_0x2d1087=_0x1d7cb3['model']['document']['differ']['getChanges'](),_0x2f3642=Array['from'](_0x1d7cb3['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x5b9209,data:_0x42cc7f})=>{const {group:_0x15d5ef,subType:_0x277b6e,authorId:_0x55b4d8}=_0x60a84a['_splitMarkerName'](_0x5b9209);return'suggestion'==_0x15d5ef&&'tablePaste'==_0x277b6e&&_0x55b4d8==_0x90376b['id']&&!_0x42cc7f['oldRange'];});for(const _0x4dbb56 of _0x2d1087){if('insert'!=_0x4dbb56['type']||'tableCellSuggestion'!=_0x4dbb56['name']||0x1!=_0x4dbb56['length'])continue;const _0x214d00=_0x183bfc['createRange'](_0x4dbb56['position'],_0x4dbb56['position']['getShiftedBy'](0x1));if(!_0x2f3642['find'](({data:_0x1d064e})=>_0x1d064e['newRange']['isEqual'](_0x214d00))){for(const {name:_0x12cc75,data:_0x40d823}of _0x2f3642)if(_0x214d00['containsRange'](_0x40d823['newRange'])){_0x183bfc['updateMarker'](_0x12cc75,{'range':_0x214d00}),_0x45cb7b=!0x0;break;}}}return _0x45cb7b;}),_0x1d7cb3['model']['document']['registerPostFixer'](_0x33a804=>{let _0x30c033=!0x1;const _0xb2711b=_0x1d7cb3['plugins']['get']('Users')['me'],_0x1e631c=_0x60a84a['getSuggestions']()['filter'](_0x4b80e8=>_0x4b80e8['isInContent']&&_0x4b80e8['author']==_0xb2711b),_0x2f3b3b=new Set(),_0x3d1aa0=new Set();for(const _0x5affd3 of _0x1e631c)if('tablePaste'==_0x5affd3['subType'])for(const _0x21e5c5 of _0x5affd3['getMarkers']()){const _0x4e462e=_0x21e5c5['getRange']()['getContainedElement']();if(_0x4e462e){if(_0x4e462e['is']('element','tableCellSuggestion')&&Ue(_0x4e462e)){_0x5affd3['removeMarker'](_0x21e5c5['name']),_0x2f3b3b['add'](_0x4e462e),_0x30c033=!0x0;const _0x1ed693=_0x4e462e['nextSibling'],_0x17b1ba=_0x4e462e['previousSibling'],_0x5c464d=_0x1ed693&&_0x1ed693['is']('element','tableCellSuggestion'),_0x18aafc=_0x17b1ba&&_0x17b1ba['is']('element','tableCellSuggestion');_0x5c464d&&!_0x2f3b3b['has'](_0x1ed693)&&_0x3d1aa0['add'](_0x1ed693),_0x18aafc&&!_0x2f3b3b['has'](_0x17b1ba)&&_0x3d1aa0['add'](_0x17b1ba);}else _0x4e462e['is']('element','paragraph')&&_0x4e462e['isEmpty']&&(_0x5affd3['removeMarker'](_0x21e5c5['name']),_0x30c033=!0x0);}}else{if('tablePasteCell'==_0x5affd3['subType']){if(!_0x5affd3['attributes']||!_0x5affd3['attributes']['tablePasteChainId'])continue;const _0x2e863d=_0x5affd3['attributes']['markerAttributes'];if(_0x2e863d&&Object['keys'](_0x2e863d)['length'])continue;const _0xf90ec4=_0x5affd3['attributes']['tablePasteChainId'];let _0x5186f0=!0x0,_0x512407=!0x0;for(const _0x44ee2b of _0x1e631c)if(_0x44ee2b['subType']&&_0x44ee2b['subType']['startsWith']('tablePaste')){if(!_0x44ee2b['attributes']['tablePasteChainId']){_0x512407=!0x1;break;}if(_0x44ee2b['id']!=_0x5affd3['id']&&_0x44ee2b['attributes']['tablePasteChainId']==_0xf90ec4){_0x5186f0=!0x1;break;}}_0x512407&&_0x5186f0&&(_0x5affd3['removeMarkers'](),_0x30c033=!0x0);}}for(const _0x33a183 of _0x2f3b3b)_0x33a804['remove'](_0x33a183);for(const _0x5d8ecf of _0x3d1aa0)_0x33a804['unwrap'](_0x5d8ecf);return _0x30c033;}),_0x1d7cb3['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x273141=>_0x2bdfe5(_0x273141),'converterPriority':'high'}),_0x1d7cb3['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2e93ca,_0x5b0000)=>_0x5b0000['options']['showSuggestionHighlights']?_0x2bdfe5(_0x2e93ca,!0x1):null,'converterPriority':'high'});const _0x4cd494=_0x1d7cb3['editing']['view'];this['listenTo'](_0x4cd494['document'],'clipboardOutput',(_0x2c154a,_0x459f47)=>{const _0x54c89d=[];for(const _0x3b6839 of _0x4cd494['createRangeIn'](_0x459f47['content'])['getItems']())_0x3b6839['is']('element','suggestion-td')&&_0x54c89d['push'](_0x3b6839);_0x4cd494['change'](_0x11222f=>{for(const _0x1a9b1 of _0x54c89d)_0x11222f['move'](_0x11222f['createRangeIn'](_0x1a9b1),_0x11222f['createPositionBefore'](_0x1a9b1)),_0x11222f['remove'](_0x1a9b1);});});}}function Ue(_0xaacf80){if(_0xaacf80['isEmpty'])return!0x0;const _0x17dd50=_0xaacf80['getChild'](0x0);return _0x17dd50['is']('element','paragraph')&&_0x17dd50['isEmpty'];}function De(_0x5807e2,_0x52308a={},_0x32cbcc){for(const {isAnchor:_0x2ea04a,cellHeight:_0x5b700b,cellWidth:_0x330788}of _0x32cbcc['createTableWalker'](_0x5807e2,{'includeAllSlots':!0x0,..._0x52308a}))if(!_0x2ea04a||0x1!=_0x5b700b||0x1!=_0x330788)return!0x1;return!0x0;}class Bt extends _0x23c200{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x57aef1=this['editor']['plugins']['get']('TrackChangesEditing');_0x57aef1['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x57aef1['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x57aef1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x57aef1['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x57aef1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x57aef1['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x11cc26,_0x62b427){const _0xb5e30b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x22e4aa=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x268256=_0x62b427['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x542575=_0x22e4aa['getColumnGroupElement'](_0x268256);let _0x426675=_0x542575?_0x22e4aa['getTableColumnsWidths'](_0x542575):null,_0xc54dab=_0x268256['getAttribute']('tableWidth')||null;const _0x543989=_0x62b427['tableWidth']||_0xc54dab,_0x23cbf6=_0x62b427['columnWidths']||_0x426675,_0x42d652=this['editor']['plugins']['get']('Users')['me'];for(const _0x253713 of _0xb5e30b['getSuggestions']()){const _0x1265f4=_0x253713['getContainedElement']();if('resizeTable'===_0x253713['subType']&&_0x1265f4===_0x268256){_0x253713['author']!==_0x42d652&&_0x253713['discard']();const _0x4e4a31=_0x253713['data']['commandParams'];_0xc54dab=_0x4e4a31[0x0]['tableWidth'],_0x426675=_0x4e4a31[0x0]['columnWidths'];break;}}_0x11cc26({'table':_0x268256,'tableWidth':_0x543989,'columnWidths':_0x23cbf6}),_0xb5e30b['markBlockFormat'](_0x268256,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0xc54dab,'columnWidths':_0x426675}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x494a9a){if('formatBlock'!=_0x494a9a['type']&&'formatInline'!=_0x494a9a['type'])return;const {data:_0x3a690e}=_0x494a9a;if(_0x3a690e&&'resizeTable'===_0x3a690e['formatGroupId']){const _0x76728='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x76728)};}}}class Ot extends _0x23c200{['afterInit'](){const _0x3c5461=this['editor'];_0x3c5461['plugins']['has']('Template')&&_0x3c5461['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Rt extends _0x23c200{['afterInit'](){const _0x15eaca=this['editor'];if(!_0x15eaca['commands']['get']('insertTableOfContents'))return;_0x15eaca['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x46351b=_0x15eaca['plugins']['get']('TrackChangesEditing'),_0x21e5b5=_0x15eaca['locale'];_0x46351b['descriptionFactory']['registerElementLabel']('tableOfContents',_0x23fc3f=>c(_0x21e5b5,'ELEMENT_TABLE_OF_CONTENTS',_0x23fc3f));}}class xt extends _0x23c200{['afterInit'](){const _0x2eb707=this['editor'];if(!_0x2eb707['plugins']['has']('Title'))return;const _0x5cf3c3=_0x2eb707['plugins']['get']('TrackChangesEditing');_0x5cf3c3['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x2eb707['locale'],'ELEMENT_TITLE')),_0x2eb707['model']['document']['registerPostFixer'](_0x23a0de=>{let _0x3168b9=!0x1;const _0x47d795=Array['from'](_0x2eb707['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x486c8c,data:_0x1b9088}of _0x47d795){const {group:_0x1aa3b3}=_0x5cf3c3['_splitMarkerName'](_0x486c8c);if('suggestion'!==_0x1aa3b3||!_0x1b9088['newRange'])continue;const _0x2be93f=_0x1b9088['newRange'],_0x2a7d4b=_0x2be93f['end']['nodeBefore'];if(!_0x2a7d4b||!_0x2a7d4b['is']('element','title-content'))continue;if(!_0x2be93f['start']['isTouching'](_0x2be93f['end']))continue;const _0x1b60c7=_0x2eb707['model']['schema']['getNearestSelectionRange'](_0x2be93f['end'],'forward');if(_0x1b60c7&&_0x1b60c7['isCollapsed']){const _0x13cb2e=_0x23a0de['createRange'](_0x2be93f['start'],_0x1b60c7['start']);_0x13cb2e['isEqual'](_0x2be93f)||(_0x23a0de['updateMarker'](_0x486c8c,{'range':_0x13cb2e}),_0x3168b9=!0x0);}_0x3168b9||(_0x23a0de['removeMarker'](_0x486c8c),_0x3168b9=!0x0);}return _0x3168b9;});}}class Tt extends _0x23c200{['afterInit'](){const _0x2eacc8=this['editor'],_0x200180=_0x2eacc8['plugins']['get']('TrackChangesEditing');_0x2eacc8['plugins']['has']('Uploadcare')&&(_0x200180['enableCommand']('uploadcare'),_0x2eacc8['plugins']['has']('UploadcareImageEdit')&&(_0x200180['enableCommand']('uploadcareImageEdit'),_0x200180['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x200180['registerBlockAttribute']('uploadcareImageId'),_0x200180['descriptionFactory']['registerDescriptionCallback'](_0x3b0929=>{if('attribute'!=_0x3b0929['type'])return;const {data:_0x35469f}=_0x3b0929;return _0x35469f&&'uploadcareImageId'==_0x35469f['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x23c200{['afterInit'](){const _0x235a55=this['editor'],_0x659779=_0x235a55['plugins']['get']('TrackChangesEditing');_0x235a55['plugins']['has']('UndoEditing')&&(_0x659779['enableCommand']('undo'),_0x659779['enableCommand']('redo'));}}class Ut extends _0x23c200{static get['requires'](){return[Ct];}['afterInit'](){const _0x49e011=this['editor'];if(!_0x49e011['plugins']['has']('TableCaptionEditing'))return;_0x49e011['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x23c200{['tableProperties'];['tableCellProperties'];constructor(_0x37ea8e){super(_0x37ea8e),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x332431=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x4098f2 of this['tableProperties'])_0x332431['enableCommand'](_0x4098f2,(_0x172927,_0x290b23)=>{const _0x346454=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x4098f2,[_0x346454],this['tableProperties'],'tableProperties',_0x172927,_0x290b23);});_0x332431['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x332431['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x332431['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x283c08,_0x2488e8)=>this['handleDiscardAction'](this['tableProperties'],_0x283c08,_0x2488e8)),_0x332431['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x3229af of this['tableCellProperties'])_0x332431['enableCommand'](_0x3229af,(_0x372e7b,_0x5b4650)=>{const _0x419495=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x3229af,_0x419495,this['tableCellProperties'],'tableCellProperties',_0x372e7b,_0x5b4650);});_0x332431['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x332431['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x332431['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x343165,_0x54e532)=>this['handleDiscardAction'](this['tableCellProperties'],_0x343165,_0x54e532)),_0x332431['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x332431['descriptionFactory']['registerDescriptionCallback'](_0x968e53=>this['handleSuggestionDescription'](_0x968e53));}['_handlePropertyChange'](_0x7e38f6,_0x452bd5,_0x3d412f,_0x324363,_0x3f7a78,_0x36e03b){const _0x228892=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x36e03b['batch'],()=>{for(const _0x5dd858 of _0x452bd5){if(this['_getSuggestion'](_0x5dd858,_0x324363))_0x3f7a78(_0x36e03b);else{const _0x41d36e={};for(const _0x523dc0 of _0x3d412f){const _0x339fc4=_0x5dd858['getAttribute'](_0x523dc0);void 0x0!==_0x339fc4&&(_0x41d36e[_0x523dc0]=_0x339fc4);}_0x3f7a78(_0x36e03b),_0x228892['markBlockFormat'](_0x5dd858,{'commandParams':[_0x41d36e]},[],_0x324363);}}});}['handleDiscardAction'](_0x41866d,_0x4d6302,_0xdb3222){const _0xf08752=_0x4d6302[0x0]['start']['nodeAfter'],_0x9e1ac9=_0xdb3222['commandParams'][0x0];this['editor']['model']['change'](_0x3186ab=>{for(const _0x1fc0eb of _0x41866d)void 0x0!==_0x9e1ac9[_0x1fc0eb]?_0x3186ab['setAttribute'](_0x1fc0eb,_0x9e1ac9[_0x1fc0eb],_0xf08752):_0x3186ab['removeAttribute'](_0x1fc0eb,_0xf08752);});}['handleSuggestionDescription'](_0xf64018){if(_0xf64018['data'])switch(_0xf64018['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0xc90d4,_0xfabcec){const _0xbce09a=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0xfee035 of _0xbce09a['getSuggestions']({'skipNotAttached':!0x0})){const _0x194d6b=_0xfee035['getContainedElement']();if(_0xfee035['subType']===_0xfabcec&&_0x194d6b===_0xc90d4)return _0xfee035;}return null;}}const u='$elementName';class p extends _0x23c200{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x2d1043,_0x33e286,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,et,nt,it,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,_t,vt,Ct,Nt,Dt,Ye,Ut,$t,Bt,Rt,Vt,Ot,xt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x50ba8d){super(_0x50ba8d),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x19d15c,_0x3f96ce,_0x5e4ec3,_0x594328)=>{this['_model']['change'](()=>{for(const _0x4b174a of[..._0x594328,..._0x5e4ec3])this['_model']['markers']['has'](_0x4b174a)&&_0x50ba8d['editing']['reconvertMarker'](_0x4b174a);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x50ba8d['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0x50ba8d['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x50ba8d['config']['get']('trackChanges.trackFormatChanges'),_0x50ba8d['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x50ba8d['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x50ba8d,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x4bfddd=this['editor'],_0x24be48=(_0x3e90d4,_0x35df11)=>{if('attribute'!=_0x3e90d4)return'ck-suggestion-marker-'+_0x3e90d4;const _0x9b9b31=_0x35df11['split']('|')[0x0];return this['_isBlockAttribute'](_0x9b9b31)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x4bfddd['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0xdab36b=>{const {id:_0x28a8bc,authorId:_0x2a3680,type:_0x766255,subType:_0x2f20a2}=this['_splitMarkerName'](_0xdab36b['markerName']),_0x4b7aac=['ck-suggestion-marker',_0x24be48(_0x766255,_0x2f20a2)];let _0x2e61b5=0xbb8;return this['activeMarkers']['includes'](_0xdab36b['markerName'])&&(_0x4b7aac['push']('ck-suggestion-marker--active'),_0x2e61b5=0xbc2),'deletion'==_0x766255&&(_0x2e61b5+=0x5),{'classes':_0x4b7aac,'attributes':{'data-suggestion':_0x28a8bc,'data-author-id':_0x2a3680},'priority':_0x2e61b5};}}),_0x4bfddd['conversion']['for']('dataDowncast')['add'](_0xad45cb=>{_0xad45cb['on']('addMarker:suggestion',(_0x10fe9f,_0x1298d6,_0x4a377b)=>{if(!_0x4a377b['options']['showSuggestionHighlights'])return;const _0x339501=_0x1298d6['item'];if(!_0x339501)return;const _0x414ef1=_0x4a377b['mapper']['toViewElement'](_0x339501);_0x4bfddd['model']['schema']['isObject'](_0x339501)&&_0x414ef1&&!_0x414ef1['getCustomProperty']('widget')&&_0x414ef1['is']('containerElement')&&_0x3b0d81(_0x414ef1,_0x4a377b['writer']);},{'priority':'high'});}),_0x4bfddd['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x2adab4,_0x16ac5a)=>{if(!_0x16ac5a['options']['showSuggestionHighlights'])return null;const {type:_0x909c6d,subType:_0x288c14}=this['_splitMarkerName'](_0x2adab4['markerName']);return{'classes':['ck-suggestion-marker',_0x24be48(_0x909c6d,_0x288c14)],'priority':0xbb8};}});const _0x76455c=({showActiveMarkers:_0x36d614=!0x0,isAttributeSuggestion:_0x3a8f89=!0x1}={})=>(_0x5bb572,_0x2b221c,_0x5abad4)=>{if(!_0x2b221c['item'])return;const {id:_0x2d67e2,authorId:_0xcb9c9d}=this['_splitMarkerName'](_0x2b221c['markerName']);if(_0x3a8f89){const _0x333213=this['_suggestions']['get'](_0x2d67e2),_0x4e5d0d=this['_getAttributeKey'](_0x333213);if(!this['_isBlockAttribute'](_0x4e5d0d))return;}if(_0x2b221c['item']['is']('selection'))return void _0x5abad4['consumable']['consume'](_0x2b221c['item'],_0x5bb572['name']);const _0x179a21=_0x5abad4['mapper']['toViewElement'](_0x2b221c['item']);if(_0x2b221c['item']['is']('element')&&_0x4bfddd['model']['schema']['isBlock'](_0x2b221c['item'])&&!_0x179a21['getCustomProperty']('addHighlight')){_0x5abad4['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x179a21),_0x5abad4['writer']['setAttribute']('data-suggestion',_0x2d67e2,_0x179a21),_0x5abad4['writer']['setAttribute']('data-author-id',_0xcb9c9d,_0x179a21),_0x5abad4['mapper']['bindElementToMarker'](_0x179a21,_0x2b221c['markerName']),_0x36d614&&(this['activeMarkers']['includes'](_0x2b221c['markerName'])?_0x5abad4['writer']['addClass']('ck-suggestion-marker--active',_0x179a21):_0x5abad4['writer']['removeClass']('ck-suggestion-marker--active',_0x179a21));for(const _0x1fe8b7 of _0x4bfddd['model']['createRangeIn'](_0x2b221c['item'])['getItems']())_0x5abad4['consumable']['consume'](_0x1fe8b7,_0x5bb572['name']);_0x5abad4['consumable']['consume'](_0x2b221c['item'],_0x5bb572['name']);}};_0x4bfddd['conversion']['for']('dataDowncast')['add'](_0x130579=>{_0x130579['on']('addMarker:suggestion:formatBlock',(_0x188470,_0x4a6cf0,_0x29cce4)=>{_0x29cce4['options']['showSuggestionHighlights']&&_0x76455c({'showActiveMarkers':!0x1})(_0x188470,_0x4a6cf0,_0x29cce4);},{'priority':'highest'});}),_0x4bfddd['conversion']['for']('dataDowncast')['add'](_0x65b65b=>{_0x65b65b['on']('addMarker:suggestion:attribute',(_0x2c31f0,_0x3fef96,_0x7d462e)=>{_0x7d462e['options']['showSuggestionHighlights']&&_0x76455c({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x2c31f0,_0x3fef96,_0x7d462e);},{'priority':'highest'});}),_0x4bfddd['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x313837,_0x175d4f)=>_0x175d4f['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x313837['substr'](0xb)}}),_0x4bfddd['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x2a07a6,{writer:_0x58aa17})=>{let _0x456ffc='suggestion:'+_0x2a07a6['getAttribute']('suggestion-type')+':'+_0x2a07a6['getAttribute']('id');return _0x2a07a6['getAttribute']('marker-count')&&(_0x456ffc+=':'+_0x2a07a6['getAttribute']('marker-count')),_0x58aa17['createElement']('$marker',{'data-name':_0x456ffc});}}),_0x4bfddd['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x4bfddd['conversion']['for']('editingDowncast')['add'](_0x4e0793=>{_0x4e0793['on']('addMarker:suggestion:formatBlock',_0x76455c(),{'priority':'high'});}),_0x4bfddd['conversion']['for']('editingDowncast')['add'](_0x56dc60=>{_0x56dc60['on']('addMarker:suggestion:attribute',_0x76455c({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x4bfddd['conversion']['for']('editingDowncast')['add'](_0x178640=>{_0x178640['on']('removeMarker:suggestion:formatBlock',(_0x50789d,_0x12aeca,_0x48f89c)=>{const _0x4751fc=_0x48f89c['mapper']['markerNameToElements'](_0x12aeca['markerName']);if(_0x4751fc){for(const _0x42c5ae of _0x4751fc)_0x42c5ae['getCustomProperty']('addHighlight')||(_0x48f89c['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x42c5ae),_0x48f89c['writer']['removeAttribute']('data-suggestion',_0x42c5ae),_0x48f89c['writer']['removeAttribute']('data-author-id',_0x42c5ae),_0x48f89c['mapper']['unbindElementFromMarkerName'](_0x42c5ae,_0x12aeca['markerName']));}},{'priority':'high'});}),_0x4bfddd['conversion']['for']('editingDowncast')['add'](_0x36b38c=>{_0x36b38c['on']('removeMarker:suggestion:attribute',(_0x29ce72,_0x16c9d5,_0x961f)=>{const _0x471927=_0x961f['mapper']['markerNameToElements'](_0x16c9d5['markerName']);if(!_0x471927)return;const {id:_0xb6372d}=this['_splitMarkerName'](_0x16c9d5['markerName']),_0x2dbbc7=this['_suggestions']['get'](_0xb6372d),_0x71299b=this['_getAttributeKey'](_0x2dbbc7);if(this['_isBlockAttribute'](_0x71299b)){for(const _0x3fbf19 of _0x471927)_0x3fbf19['getCustomProperty']('addHighlight')||(_0x961f['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3fbf19),_0x961f['writer']['removeAttribute']('data-suggestion',_0x3fbf19),_0x961f['writer']['removeAttribute']('data-author-id',_0x3fbf19),_0x961f['mapper']['unbindElementFromMarkerName'](_0x3fbf19,_0x16c9d5['markerName']));}},{'priority':'high'});}),_0x4bfddd['model']['document']['registerPostFixer'](_0x207649=>{let _0x23461f=!0x1;const _0x2a1e7f=Array['from'](_0x4bfddd['model']['document']['differ']['getChangedMarkers']()),_0x13d193=new Set();for(const {name:_0x1d1b2b,data:_0x3e2658}of _0x2a1e7f){const {group:_0x36f3fd,type:_0x32b7f6,subType:_0xda6fad,id:_0x5324bd}=this['_splitMarkerName'](_0x1d1b2b);if('suggestion'!==_0x36f3fd)continue;const _0x1ca480=this['_suggestions']['get'](_0x5324bd);if(null!=_0x3e2658['newRange']){'formatInline'==_0x32b7f6&&(_0x23461f=_0x23461f||Jt(_0x3e2658['newRange'],_0x1d1b2b,_0x207649,_0x4bfddd['model']['schema']));const _0x38edf1='attribute'==_0x32b7f6&&this['_isBlockAttribute'](_0xda6fad['split']('|')[0x0]);if(_0x3e2658['newRange']['isCollapsed']||'$graveyard'==_0x3e2658['newRange']['root']['rootName']||'formatBlock'==_0x32b7f6&&!Ht(_0x3e2658['newRange'])||_0x38edf1&&!Ht(_0x3e2658['newRange'])||'deletion'==_0x32b7f6&&!(!Lt(_0x363088=_0x3e2658['newRange'])&&!function(_0x77389){return _0x77389['start']['parent']==_0x77389['end']['nodeBefore']&&_0x77389['start']['isAtEnd'];}(_0x363088)))_0x207649['removeMarker'](_0x1d1b2b),_0x23461f=!0x0;else{if(!_0x1ca480||!_0x1ca480['isInContent'])continue;if(_0x3e2658['newRange']&&_0x3e2658['oldRange']&&_0x3e2658['newRange']['isEqual'](_0x3e2658['oldRange']))continue;_0x13d193['add'](_0x1ca480);}}}var _0x363088;return _0x13d193['size']>0x0&&(_0x23461f=!!this['_joinWithAdjacentSuggestions'](_0x13d193)||_0x23461f),_0x23461f;}),_0x4bfddd['model']['document']['registerPostFixer'](_0x2dda2f=>{let _0x20d389=!0x1;for(const _0xa52749 of _0x4bfddd['model']['document']['differ']['getChanges']())if('insert'==_0xa52749['type'])for(const _0x418a45 of this['_suggestions']['values']()){if(_0x418a45['isMultiRange']||!_0x418a45['isInContent'])continue;const _0x24f673='formatBlock'==_0x418a45['type'],_0x52237b=this['_getAttributeKey'](_0x418a45),_0x1b9e54=_0x52237b&&this['_isBlockAttribute'](_0x52237b);if(!_0x24f673&&!_0x1b9e54)continue;const _0x37116e=_0x418a45['getFirstRange']();if(_0x37116e['start']['parent']!=_0x37116e['end']['parent']&&!_0x37116e['end']['isAtEnd']){const _0xf1265f=_0x4bfddd['model']['createPositionAt'](_0x37116e['start']['nodeAfter'],'end'),_0x167a1f=_0x4bfddd['model']['createRange'](_0x37116e['start'],_0xf1265f);_0x2dda2f['updateMarker'](_0x418a45['getFirstMarker'](),{'range':_0x167a1f}),_0x20d389=!0x0;}}return _0x20d389;}),_0x4bfddd['model']['document']['registerPostFixer'](_0x7bdaa0=>this['_processAttributeChanges'](_0x7bdaa0)),_0x4bfddd['model']['document']['registerPostFixer'](_0x3f3900=>!_0x3f3900['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x3f3900)),_0x4bfddd['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x4bfddd['model']['document']['on']('change:data',(_0x1bf795,_0x1ac455)=>{if(!_0x1ac455['isLocal']||_0x1ac455['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x2601ac=_0x4bfddd['model']['document']['differ']['getChanges']();if(0x0==_0x2601ac['length'])return;const _0x222314=[],_0x19f823=_0x2601ac['filter'](_0xecd648=>'attribute'==_0xecd648['type']),_0x11dd4e=_0x2601ac['filter'](_0x481e63=>'insert'==_0x481e63['type']&&'$text'!=_0x481e63['name']);for(const _0x328372 of _0x19f823)this['_isRegisteredAttribute'](_0x328372['attributeKey'])&&_0x222314['push']({'key':_0x328372['attributeKey'],'newValue':_0x328372['attributeNewValue'],'oldValue':_0x328372['attributeOldValue'],'range':qt(_0x328372['range'],_0x4bfddd['model'])});for(const _0x5cec8f of _0x11dd4e){if('rename'!=_0x5cec8f['action']&&'refresh'!=_0x5cec8f['action'])continue;const _0x2c1fa2=zt(_0x5cec8f['position']['nodeAfter'],_0x4bfddd['model']),_0x39165b=_0x5cec8f['before'];'rename'==_0x5cec8f['action']&&_0x222314['push']({'key':u,'newValue':_0x5cec8f['name'],'oldValue':_0x39165b['name'],'range':_0x2c1fa2});for(const [_0x571926,_0x5212a3]of _0x39165b['attributes']){if(!this['_isRegisteredAttribute'](_0x571926))continue;const _0x1a6e26=_0x5cec8f['attributes']['get'](_0x571926);_0x5212a3!==_0x1a6e26&&_0x222314['push']({'key':_0x571926,'newValue':_0x1a6e26,'oldValue':_0x5212a3,'range':_0x2c1fa2});}for(const [_0x494e8c,_0x5505d7]of _0x5cec8f['attributes'])this['_isRegisteredAttribute'](_0x494e8c)&&(_0x39165b['attributes']['has'](_0x494e8c)||_0x222314['push']({'key':_0x494e8c,'newValue':_0x5505d7,'oldValue':null,'range':_0x2c1fa2}));}0x0!=_0x222314['length']&&_0x4bfddd['model']['enqueueChange'](_0x1ac455,_0x15a184=>{const _0x548234=_0x53d19c();for(const {range:_0x32fc69,key:_0x153b84,oldValue:_0x3f5932,newValue:_0x32f5fc}of _0x222314)this['markAttributeChange'](_0x32fc69,_0x153b84,_0x3f5932,_0x32f5fc,{'groupId':_0x548234});this['_reduceExistingSuggestions'](_0x15a184,_0x222314);});},{'priority':'lowest'}),_0x4bfddd['model']['markers']['on']('update:suggestion',(_0x54f088,_0x98bfd1,_0x556b49)=>{if(null==_0x556b49){const {id:_0x2023b9}=this['_splitMarkerName'](_0x98bfd1['name']),_0x5441b2=this['_suggestions']['get'](_0x2023b9);_0x5441b2&&_0x5441b2['addMarkerName'](_0x98bfd1['name']);}}),_0x4bfddd['model']['document']['on']('change:data',()=>{const _0x5118a8=Array['from'](_0x4bfddd['model']['document']['differ']['getChangedMarkers']())['filter'](_0xebcf85=>'suggestion'===this['_splitMarkerName'](_0xebcf85['name'])['group']);if(0x0===_0x5118a8['length'])return;_0x5118a8['sort']((_0x5344ff,_0x1676a6)=>{const _0x4d1cae=_0x5344ff['data']['oldRange'],_0x59a2aa=_0x1676a6['data']['oldRange'];return null===_0x4d1cae&&null===_0x59a2aa?0x0:null===_0x4d1cae&&null!==_0x59a2aa?-0x1:null!==_0x4d1cae&&null===_0x59a2aa?0x1:_0x4d1cae['start']['isBefore'](_0x59a2aa['start'])?-0x1:0x1;});const _0x491049=new Set(),_0x1e538=new Set();for(const {name:_0x5a466d,data:_0x52361b}of _0x5118a8){const {id:_0x2c0bd2}=this['_splitMarkerName'](_0x5a466d);if(null===_0x52361b['oldRange']){const _0x478caf=this['_handleNewSuggestionMarker'](_0x5a466d);_0x1e538['add'](_0x478caf);}else{const _0x689cb0=this['_suggestions']['get'](_0x2c0bd2);null!==_0x52361b['newRange']||_0x689cb0['isInContent']?(_0x491049['add'](_0x689cb0['head']),_0x1e538['add'](_0x689cb0)):this['_removeSuggestion'](_0x689cb0);}}_0x1e538['size']>0x0&&this['_refreshSuggestionsChain'](_0x1e538);for(const _0x29da1f of _0x491049)this['fire']('suggestionChanged',_0x29da1f);}),_0x4bfddd['model']['on']('applyOperation',(_0x3812d4,_0x15a256)=>{const _0x47ad21=_0x15a256[0x0];if(!this['_suggestions']['size'])return;if(!_0x47ad21['isDocumentOperation'])return;if(_0x47ad21['batch']['isUndo']||!_0x47ad21['batch']['isLocal'])return;let _0x86218f,_0x2542f9;switch(_0x47ad21['type']){case'insert':_0x86218f=_0x4bfddd['model']['createPositionAt'](_0x47ad21['position']),_0x2542f9=_0x86218f['getShiftedBy'](_0x47ad21['howMany']);break;case'split':_0x86218f=_0x4bfddd['model']['createPositionAt'](_0x47ad21['splitPosition']),_0x2542f9=_0x4bfddd['model']['createPositionAt'](_0x47ad21['moveTargetPosition']);break;case'move':_0x86218f=_0x4bfddd['model']['createPositionAt'](_0x47ad21['targetPosition']),_0x2542f9=_0x86218f['getShiftedBy'](_0x47ad21['howMany']);break;default:return;}const _0x5abf30=_0x4bfddd['model']['createRange'](_0x86218f,_0x2542f9);_0x4bfddd['model']['change'](()=>{for(const {suggestion:_0x3943eb,meta:_0x460403}of this['_findSuggestions'](_0x5abf30)){if(_0x3943eb['isMultiRange'])continue;if('formatInline'==_0x3943eb['type'])continue;const _0x31cbd0=this['_getAttributeKey'](_0x3943eb);if(_0x31cbd0&&this['_isBlockAttribute'](_0x31cbd0)&&'split'!=_0x47ad21['type'])continue;const _0xf8e213=_0x3943eb['data']&&_0x3943eb['data']['multipleBlocks'];('formatBlock'!=_0x3943eb['type']||'split'==_0x47ad21['type']&&!_0xf8e213)&&(_0x460403['containsRangeInObject']||'insertion'==_0x3943eb['type']&&_0x460403['isOwn']||_0x3943eb['getFirstRange']()['containsRange'](_0x5abf30)&&this['_breakSuggestionMarker'](_0x3943eb,_0x86218f,_0x2542f9));}});},{'priority':'lowest'}),_0x4bfddd['model']['on']('deleteContent',(_0x2e573a,_0x4d6560)=>{const _0x2d20b2=_0x4d6560[0x0],_0x2a568e=_0x4d6560[0x1];if(_0x2a568e&&_0x2a568e['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x2d20b2['isCollapsed'])return;const _0x1722f5=_0x4bfddd['model']['schema'],{start:_0x287f6d,end:_0x2d3104}=_0x2d20b2['getFirstRange'](),_0x5a130e=_0x287f6d['nodeAfter']&&_0x1722f5['isLimit'](_0x287f6d['nodeAfter'])?null:_0x1722f5['getNearestSelectionRange'](_0x287f6d,'forward'),_0x1efc42=_0x2d3104['nodeBefore']&&_0x1722f5['isLimit'](_0x2d3104['nodeBefore'])?null:_0x1722f5['getNearestSelectionRange'](_0x2d3104,'backward'),_0x4b4d7f=_0x4bfddd['model']['createRange'](_0x5a130e?_0x5a130e['start']:_0x287f6d,_0x1efc42?_0x1efc42['end']:_0x2d3104);_0x4bfddd['model']['change'](_0x157be9=>{this['markDeletion'](_0x4b4d7f);const _0x4f27fd=_0x4bfddd['model']['schema']['getNearestSelectionRange'](_0x4b4d7f['start']);_0x2d20b2['is']('documentSelection')?_0x157be9['setSelection'](_0x4f27fd):_0x2d20b2['setTo'](_0x4f27fd);}),_0x2e573a['stop']();},{'priority':_0x3d0176['normal']+0xa}),_0x4bfddd['model']['on']('insertContent',(_0x171cb6,_0x18e34a)=>{const _0x1b7932=_0x18e34a[_0x18e34a['length']-0x1];_0x1b7932&&_0x1b7932['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x4bfddd['model']['change'](()=>{let _0x7ad3ad=_0x4bfddd['model']['insertContent'](_0x18e34a[0x0],_0x18e34a[0x1],_0x18e34a[0x2],{'forceDefaultExecution':!0x0});if(!_0x7ad3ad)return;_0x171cb6['return']=_0x7ad3ad['clone']();const _0x5689ca=_0x7ad3ad['end']['nodeBefore'],_0x40fb7d=_0x4bfddd['model']['schema'];_0x5689ca&&_0x40fb7d['isBlock'](_0x5689ca)&&!_0x40fb7d['isObject'](_0x5689ca)&&(_0x7ad3ad=_0x4bfddd['model']['createRange'](_0x7ad3ad['start'],_0x4bfddd['model']['createPositionAt'](_0x5689ca,'end'))),this['markInsertion'](_0x7ad3ad);}),_0x171cb6['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x4cfc5e=new O(_0x4bfddd,this['_suggestions']);_0x4bfddd['commands']['add']('acceptSuggestion',_0x4cfc5e),this['enableCommand']('acceptSuggestion');const _0x56eb9a=new R(_0x4bfddd,this['_suggestions']);_0x4bfddd['commands']['add']('discardSuggestion',_0x56eb9a),this['enableCommand']('discardSuggestion'),_0x4bfddd['commands']['add']('acceptAllSuggestions',new x(_0x4bfddd,_0x4cfc5e,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x4bfddd['commands']['add']('discardAllSuggestions',new x(_0x4bfddd,_0x56eb9a,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x4bfddd['commands']['add']('acceptSelectedSuggestions',new E(_0x4bfddd,_0x4cfc5e,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x4bfddd['commands']['add']('discardSelectedSuggestions',new E(_0x4bfddd,_0x56eb9a,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x648537=_0x4bfddd['plugins']['get']('CommentsRepository');this['listenTo'](_0x648537,'addComment',(_0x1f4f7d,{threadId:_0x32d100})=>{const _0x137d33=this['_suggestions']['get'](_0x32d100);_0x137d33&&_0x137d33['commentThread']&&0x1===_0x137d33['commentThread']['length']&&this['_updateSuggestionData'](_0x32d100,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x648537,'removeComment',(_0x2c4606,{threadId:_0x29a115})=>{const _0x34e733=this['_suggestions']['get'](_0x29a115);_0x34e733&&_0x34e733['commentThread']&&!_0x34e733['commentThread']['length']&&this['_updateSuggestionData'](_0x29a115,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x3bfb0a){const _0x262937=_0x56ff49([0x76,0x48,0x39,0x34,0x52,0x6b,0x66,0x61,0x65,0x41,0x56,0x31,0x37,0x62,0x36,0x50,0x69,0x71,0x47,0x59,0x6d,0x4c,0x4e,0x55,0x51,0x46,0x38,0x79,0x7a,0x54,0x4d,0x73,0x74,0x4a,0x53,0x57,0x49,0x64,0x45,0x6a,0x6e,0x33,0x35,0x68,0x72,0x63,0x5a,0x58,0x77,0x6c,0x30,0x70,0x78,0x4f,0x75,0x44,0x4b,0x67,0x6f,0x43,0x32,0x42]),_0x14ad35=0x1a0123af,_0x2071e4=0x1a064727^_0x14ad35,_0x7f053=window[_0x56ff49([0x44,0x61,0x74,0x65])][_0x56ff49([0x6e,0x6f,0x77])](),_0xa84b4a=_0x3bfb0a[_0x56ff49([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3dbf68=new window[(_0x56ff49([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x495cb1=>{_0xa84b4a[_0x56ff49([0x6f,0x6e,0x63,0x65])](_0x56ff49([0x72,0x65,0x61,0x64,0x79]),_0x495cb1);}),_0x451825={[_0x56ff49([0x6b,0x74,0x79])]:_0x56ff49([0x45,0x43]),[_0x56ff49([0x75,0x73,0x65])]:_0x56ff49([0x73,0x69,0x67]),[_0x56ff49([0x63,0x72,0x76])]:_0x56ff49([0x50,0x2d,0x32,0x35,0x36]),[_0x56ff49([0x78])]:_0x56ff49([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]),[_0x56ff49([0x79])]:_0x56ff49([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]),[_0x56ff49([0x61,0x6c,0x67])]:_0x56ff49([0x45,0x53,0x32,0x35,0x36])},_0x12ac92=_0xa84b4a[_0x56ff49([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x56ff49([0x67,0x65,0x74])](_0x56ff49([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2b6d40(){let _0x10865d,_0x5eef68=null,_0xd97e6a=null;try{if(_0x12ac92==_0x56ff49([0x47,0x50,0x4c]))return _0x56ff49([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x10865d=_0x3c3589(),!_0x10865d)return _0x56ff49([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x10865d[_0x56ff49([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xd97e6a=_0x1294ea(_0x10865d[_0x56ff49([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x10865d[_0x56ff49([0x6a,0x74,0x69])])),await _0x540975()?_0x27c442()?_0x3c7eb3()?_0x56ff49([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x59a3d8()?(_0x10865d[_0x56ff49([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x56ff49([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5eef68=_0x18a363(_0x56ff49([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x10865d[_0x56ff49([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x56ff49([0x74,0x72,0x69,0x61,0x6c])&&(_0x5eef68=_0x18a363(_0x56ff49([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x243d6a()):_0x56ff49([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x56ff49([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x56ff49([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x568e07){return _0x56ff49([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3c7eb3(){const _0x51fe24=[_0x56ff49([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x56ff49([0x74,0x72,0x69,0x61,0x6c])][_0x56ff49([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x10865d[_0x56ff49([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x7f053/0x3e8:0xe10*_0x2071e4;return _0x10865d[_0x56ff49([0x65,0x78,0x70])]<_0x51fe24;}function _0x27c442(){const _0x564322=_0x10865d[_0x56ff49([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x564322)return!0x1;if(_0x564322[_0x56ff49([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x56ff49([0x2a])))return!0x0;if(_0x564322[_0x56ff49([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x56ff49([0x54,0x43])))return!0x0;if(_0x564322[_0x56ff49([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x56ff49([0x52,0x54,0x43]))){if(_0x2cfa83())return!0x0;if(_0x33aab9()||_0x43b62f())return!0x0;}return!0x1;}function _0x59a3d8(){const _0x5d5947=_0x10865d[_0x56ff49([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5d5947||0x0==_0x5d5947[_0x56ff49([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3092ba}=new URL(window[_0x56ff49([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5d5947[_0x56ff49([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3092ba))return!0x0;const _0x52bf76=_0x3092ba[_0x56ff49([0x73,0x70,0x6c,0x69,0x74])](_0x56ff49([0x2e]));return _0x5d5947[_0x56ff49([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1ae68d=>_0x1ae68d[_0x56ff49([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x56ff49([0x2a])))[_0x56ff49([0x6d,0x61,0x70])](_0x19f864=>_0x19f864[_0x56ff49([0x73,0x70,0x6c,0x69,0x74])](_0x56ff49([0x2e])))[_0x56ff49([0x73,0x6f,0x6d,0x65])](_0x5137c1=>_0x52bf76[_0x56ff49([0x65,0x76,0x65,0x72,0x79])]((_0x35838b,_0x3470e8)=>_0x5137c1[_0x3470e8]===_0x35838b||_0x5137c1[_0x3470e8]===_0x56ff49([0x2a])));}function _0x243d6a(){return _0x5eef68&&_0xd97e6a?new window[(_0x56ff49([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x431f18,_0x177a45)=>{_0x5eef68[_0x56ff49([0x74,0x68,0x65,0x6e])](_0x431f18,_0x177a45),_0xd97e6a[_0x56ff49([0x74,0x68,0x65,0x6e])](_0x55ab2e=>{_0x55ab2e!=_0x56ff49([0x56,0x61,0x6c,0x69,0x64])&&_0x431f18(_0x55ab2e);},_0x177a45);}):_0x5eef68||_0xd97e6a||_0x56ff49([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1294ea(_0x1af07a,_0xdb28ff){return new window[(_0x56ff49([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x28d94e=>{if(_0x32a122())return _0x28d94e(_0x56ff49([0x56,0x61,0x6c,0x69,0x64]));_0x5393f0(),_0xa84b4a[_0x56ff49([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x56ff49([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x12e6e3=!0x1;const _0x27e466=_0x53d19c();function _0xedcd06(_0x3faac6){return!!_0x3faac6&&(typeof _0x3faac6===_0x56ff49([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3faac6===_0x56ff49([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3faac6[_0x56ff49([0x74,0x68,0x65,0x6e])]===_0x56ff49([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3faac6[_0x56ff49([0x63,0x61,0x74,0x63,0x68])]===_0x56ff49([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x490b21(_0x111ce3){_0x1d010c(_0x111ce3)[_0x56ff49([0x74,0x68,0x65,0x6e])](_0x24618e=>{if(!_0x24618e||_0x24618e[_0x56ff49([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x56ff49([0x6f,0x6b]))return _0x56ff49([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x420454(_0xc85188(_0x27e466+_0xdb28ff))!=_0x24618e[_0x56ff49([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x56ff49([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x56ff49([0x56,0x61,0x6c,0x69,0x64]);})[_0x56ff49([0x74,0x68,0x65,0x6e])](_0xd5805=>(_0x5196df(),_0xd5805),()=>{const _0x7ab6a1=_0x5cdb24();return null==_0x7ab6a1?(_0x5196df(),_0x56ff49([0x56,0x61,0x6c,0x69,0x64])):_0x56ff49(_0x7f053-_0x7ab6a1>(0x3e0da7af^_0x14ad35)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x56ff49([0x74,0x68,0x65,0x6e])](_0x28d94e)[_0x56ff49([0x63,0x61,0x74,0x63,0x68])](()=>{_0x28d94e(_0x56ff49([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4f9259=0x1a37cd2f^_0x14ad35;function _0x5196df(){const _0x304e65=_0x56ff49([0x6c,0x6c,0x63,0x74,0x2d])+_0x420454(_0xc85188(_0x1af07a)),_0xcbca9c=_0x5885aa(_0x420454(window[_0x56ff49([0x4d,0x61,0x74,0x68])][_0x56ff49([0x63,0x65,0x69,0x6c])](_0x7f053/_0x4f9259)));window[_0x56ff49([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x56ff49([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x304e65,_0xcbca9c);}function _0x5cdb24(){const _0x3e0348=_0x56ff49([0x6c,0x6c,0x63,0x74,0x2d])+_0x420454(_0xc85188(_0x1af07a)),_0x48364e=window[_0x56ff49([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x56ff49([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3e0348);return _0x48364e?window[_0x56ff49([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5885aa(_0x48364e),0x10)*_0x4f9259:null;}function _0x1d010c(_0x3a9b5e){return new window[(_0x56ff49([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x51f20c,_0x2822cf)=>{_0x3a9b5e[_0x56ff49([0x74,0x68,0x65,0x6e])](_0x51f20c,_0x2822cf),window[_0x56ff49([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2822cf,0x1a00f76f^_0x14ad35);});}}_0xa84b4a[_0x56ff49([0x6f,0x6e])](_0x56ff49([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1587c3,_0x3fbe4f)=>{if(_0x3fbe4f[0x0]!=_0x1af07a)return _0x28d94e(_0x56ff49([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3fbe4f[0x1]={..._0x3fbe4f[0x1],[_0x56ff49([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x27e466};},{[_0x56ff49([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x56ff49([0x68,0x69,0x67,0x68])}),_0xa84b4a[_0x56ff49([0x6f,0x6e])](_0x56ff49([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x10b69e=>{_0xedcd06(_0x10b69e[_0x56ff49([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x12e6e3=!0x0,_0x490b21(_0x10b69e[_0x56ff49([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x56ff49([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x56ff49([0x6c,0x6f,0x77])}),_0x3dbf68[_0x56ff49([0x74,0x68,0x65,0x6e])](()=>{_0x12e6e3||_0x28d94e(_0x56ff49([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x32a122(){return _0xa84b4a[_0x56ff49([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x56ff49([0x76,0x69,0x65,0x77])][_0x56ff49([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x56ff49([0x61,0x75,0x74,0x6f]);}function _0x5393f0(){_0xa84b4a[_0x56ff49([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x56ff49([0x76,0x69,0x65,0x77])][_0x56ff49([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x56ff49([0x61,0x75,0x74,0x6f]);}}function _0x18a363(_0x2dbac1){const _0x211a50=[new window[(_0x56ff49([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x8b406b=>setTimeout(_0x8b406b,0x1a081d63^_0x14ad35)),_0x3dbf68[_0x56ff49([0x74,0x68,0x65,0x6e])](()=>new window[(_0x56ff49([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x105219=>{let _0xc45f79=0x0;_0xa84b4a[_0x56ff49([0x6d,0x6f,0x64,0x65,0x6c])][_0x56ff49([0x6f,0x6e])](_0x56ff49([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1aa79a,_0x1e3158)=>{_0x1e3158[0x0][_0x56ff49([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xc45f79++,_0xc45f79==(0x1a012257^_0x14ad35)&&(_0x105219(),_0x1aa79a[_0x56ff49([0x6f,0x66,0x66])]());});}))];return window[_0x56ff49([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x56ff49([0x72,0x61,0x63,0x65])](_0x211a50)[_0x56ff49([0x74,0x68,0x65,0x6e])](()=>_0x2dbac1);}async function _0x8c1587(){await _0x3dbf68,_0xa84b4a[_0x56ff49([0x6d,0x6f,0x64,0x65,0x6c])][_0x56ff49([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2cb7b9,_0xa84b4a[_0x56ff49([0x6d,0x6f,0x64,0x65,0x6c])][_0x56ff49([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2cb7b9,_0xa84b4a[_0x56ff49([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x56ff49([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2cfa83(){return _0x5955ea(_0x56ff49([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x35c987(_0x56ff49([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x56ff49([0x73,0x74,0x61,0x74,0x65])]==_0x56ff49([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x33aab9(){return _0x5955ea(_0x56ff49([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 _0x43b62f(){return _0x5955ea(_0x56ff49([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4a8fbe(_0x48f55f){const _0x2776ac=_0x16c6b3();_0xa84b4a[_0x2776ac]=_0x56ff49([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x48f55f,_0x48f55f!=_0x56ff49([0x56,0x61,0x6c,0x69,0x64])&&_0x8c1587();}function _0x16c6b3(){const _0x4ba0d5=window[_0x56ff49([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x56ff49([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x56ff49([0x6e,0x6f,0x77])]())[_0x56ff49([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x56ff49([0x2e]),'');let _0x4fc697=_0x56ff49([0x76]);for(let _0x528485=0x0;_0x528485<_0x4ba0d5[_0x56ff49([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x528485+=0x2){let _0x131777=window[_0x56ff49([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4ba0d5[_0x56ff49([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x528485,_0x528485+0x2));_0x131777>=_0x262937[_0x56ff49([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x131777-=_0x262937[_0x56ff49([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4fc697+=_0x262937[_0x131777];}return _0x4fc697;}function _0x3c3589(){const _0x4ddc23=_0x12ac92[_0x56ff49([0x73,0x70,0x6c,0x69,0x74])](_0x56ff49([0x2e]));if(0x3!=_0x4ddc23[_0x56ff49([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5e6afe(_0x4ddc23[0x1]);function _0x5e6afe(_0x34b364){const _0x549d8b=_0x24a5fb(_0x34b364);return _0x549d8b&&_0x257730()?_0x549d8b:null;function _0x257730(){const _0x4bf8f0=_0x549d8b[_0x56ff49([0x6a,0x74,0x69])],_0x1a0925=window[_0x56ff49([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4bf8f0[_0x56ff49([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4bf8f0[_0x56ff49([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x483bed={..._0x549d8b,[_0x56ff49([0x6a,0x74,0x69])]:_0x4bf8f0[_0x56ff49([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4bf8f0[_0x56ff49([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x483bed[_0x56ff49([0x76,0x63])],_0xc85188(_0x483bed)==_0x1a0925;}}}async function _0x540975(){let _0x154dde=!0x0;try{const _0x1bd37d=_0x12ac92[_0x56ff49([0x73,0x70,0x6c,0x69,0x74])](_0x56ff49([0x2e])),[_0x23e502,_0x375cda,_0xa1f371]=_0x1bd37d;return _0x301917(_0x23e502),await _0xccc633(_0x23e502,_0x375cda,_0xa1f371),_0x154dde;}catch(_0x544f33){return!0x1;}function _0x301917(_0x11f6aa){const _0x153208=_0x24a5fb(_0x11f6aa);_0x153208&&_0x153208[_0x56ff49([0x61,0x6c,0x67])]==_0x56ff49([0x45,0x53,0x32,0x35,0x36])||(_0x154dde=!0x1);}async function _0xccc633(_0x51e1af,_0x4b841b,_0x5d7b3c){const _0x2d1944=window[_0x56ff49([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x56ff49([0x66,0x72,0x6f,0x6d])](_0x4e895b(_0x5d7b3c),_0x59276c=>_0x59276c[_0x56ff49([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2a3a6d=new window[(_0x56ff49([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x56ff49([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x51e1af+_0x56ff49([0x2e])+_0x4b841b),_0x4124f5=window[_0x56ff49([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x56ff49([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4124f5)return;const _0x5bce87=await _0x4124f5[_0x56ff49([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x56ff49([0x6a,0x77,0x6b]),_0x451825,{[_0x56ff49([0x6e,0x61,0x6d,0x65])]:_0x56ff49([0x45,0x43,0x44,0x53,0x41]),[_0x56ff49([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x56ff49([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x56ff49([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4124f5[_0x56ff49([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x56ff49([0x6e,0x61,0x6d,0x65])]:_0x56ff49([0x45,0x43,0x44,0x53,0x41]),[_0x56ff49([0x68,0x61,0x73,0x68])]:{[_0x56ff49([0x6e,0x61,0x6d,0x65])]:_0x56ff49([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5bce87,_0x2d1944,_0x2a3a6d)||(_0x154dde=!0x1);}}function _0x24a5fb(_0x2c9bcb){return _0x2c9bcb[_0x56ff49([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x56ff49([0x65,0x79]))?JSON[_0x56ff49([0x70,0x61,0x72,0x73,0x65])](_0x4e895b(_0x2c9bcb)):null;}function _0x4e895b(_0x432571){return window[_0x56ff49([0x61,0x74,0x6f,0x62])](_0x432571[_0x56ff49([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x56ff49([0x2b]))[_0x56ff49([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x56ff49([0x2f])));}function _0xc85188(_0x3e9438){let _0x41235a=0x1505;function _0x310c3f(_0x1f6b46){for(let _0x46ac0c=0x0;_0x46ac0c<_0x1f6b46[_0x56ff49([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x46ac0c++){const _0x579bbf=_0x1f6b46[_0x56ff49([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x46ac0c);_0x41235a=(_0x41235a<<0x5)+_0x41235a+_0x579bbf,_0x41235a&=_0x41235a;}}function _0x27b3f9(_0x3cb36d){Array[_0x56ff49([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3cb36d)?_0x3cb36d[_0x56ff49([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x27b3f9):_0x3cb36d&&typeof _0x3cb36d==_0x56ff49([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x56ff49([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3cb36d)[_0x56ff49([0x73,0x6f,0x72,0x74])]()[_0x56ff49([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x40f4df,_0x49d8])=>{_0x310c3f(_0x40f4df),_0x27b3f9(_0x49d8);}):_0x310c3f(window[_0x56ff49([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3cb36d));}return _0x27b3f9(_0x3e9438),_0x41235a>>>0x0;}function _0x420454(_0x204863){return _0x204863[_0x56ff49([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x56ff49([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x56ff49([0x30]));}function _0x5885aa(_0x698cbb){return _0x698cbb[_0x56ff49([0x73,0x70,0x6c,0x69,0x74])]('')[_0x56ff49([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x56ff49([0x6a,0x6f,0x69,0x6e])]('');}function _0x5955ea(_0x41db0d){return _0xa84b4a[_0x56ff49([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x56ff49([0x68,0x61,0x73])](_0x41db0d);}function _0x35c987(_0x3c67c1){return _0xa84b4a[_0x56ff49([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x56ff49([0x67,0x65,0x74])](_0x3c67c1);}function _0x2cb7b9(){}function _0x56ff49(_0x3d5945){return _0x3d5945['map'](_0x327545=>String['fromCharCode'](_0x327545))['join']('');}_0x4a8fbe(await _0x2b6d40());}(this);}set['adapter'](_0xa0210f){if(this['_adapter'])throw new _0x135682('track-changes-adapter-already-set',this);this['_adapter']=_0xa0210f;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x120292=!0x1,toJSON:_0x4d9ae2=!0x1}={}){const _0xc63e4a=[];for(const _0x21eaaf of this['_suggestions']['values']())_0x120292&&!_0x21eaaf['isInContent']||_0xc63e4a['push'](_0x21eaaf);return _0x4d9ae2?_0xc63e4a['map'](_0x5a7f2b=>_0x5a7f2b['toJSON']()):_0xc63e4a;}['getSuggestion'](_0x4b62e6){const _0x2ead7d=this['_suggestions']['get'](_0x4b62e6);if(!_0x2ead7d)throw new _0x135682('track-changes-suggestion-not-found',this);return _0x2ead7d;}['hasSuggestion'](_0x96c70){return this['_suggestions']['has'](_0x96c70);}['addSuggestionData'](_0x452407){const {authorId:_0x38070d,id:_0x2e85a7,attributes:_0x55cdff}=_0x452407,[_0x27447b,_0x3b1a1e]=_0x452407['type']['split'](':'),_0x369879=this['_suggestions']['get'](_0x2e85a7)||this['_createSuggestion'](_0x27447b,_0x3b1a1e,_0x2e85a7,_0x38070d,_0x55cdff);if(this['_addThreadToSuggestion'](_0x369879),this['_checkSuggestionCorrectness'](_0x369879,_0x27447b,_0x3b1a1e||null,_0x38070d),_0x369879['createdAt']=_0x452407['createdAt'],_0x369879['_isDataLoaded']=!0x0,_0x55cdff&&_0x55cdff['@external']){const _0x18375b=_0x55cdff['@external'],_0x2dc31c=this['_getExternalAuthor'](_0x18375b['authorName']);_0x369879['authoredAt']=_0x18375b['createdAt'],_0x369879['author']=_0x2dc31c,_0x369879['isExternal']=!0x0;}else _0x369879['authoredAt']=_0x452407['createdAt'];switch(_0x452407['data']&&(_0x369879['data']=_0x452407['data']),_0x452407['attributes']&&(_0x369879['attributes']=_0x452407['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x369879['_saved']=!0x0),this['_suggestionState']['get'](_0x369879)){case'notReady':this['_suggestionState']['set'](_0x369879,'dataReady');break;case'markerReady':_0x369879['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x369879])),this['_refreshSuggestionsChain'](new Set([_0x369879])),this['_suggestionState']['set'](_0x369879,'ready'),this['fire']('suggestionLoaded',_0x369879)):this['_suggestionState']['set'](_0x369879,'removed');}return _0x369879;}['acceptSuggestion'](_0x1fc986){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x35bc66 of _0x1fc986['getAllAdjacentSuggestions']())_0x35bc66['accept']();});});}['discardSuggestion'](_0x4ba8dd){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x125d5f of _0x4ba8dd['getAllAdjacentSuggestions']())_0x125d5f['discard']();});});}['enableCommand'](_0x1a8938,_0x41dd0a){const _0x4a77ab=this['editor']['commands']['get'](_0x1a8938);if(!_0x4a77ab)throw new _0x135682('track-changes-command-not-found',this,{'commandName':_0x1a8938});if(this['_enabledCommands']['has'](_0x4a77ab))throw new _0x135682('track-changes-enable-command-twice',this,{'commandName':_0x1a8938});this['_enabledCommands']['add'](_0x4a77ab),_0x41dd0a&&_0x4a77ab['on']('execute',(_0x51fa19,_0x43c27b)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x43c27b['length']>0x0&&_0x43c27b[_0x43c27b['length']-0x1]&&_0x43c27b[_0x43c27b['length']-0x1]['forceDefaultExecution']?_0x43c27b['pop']():(_0x51fa19['return']=_0x41dd0a((..._0x2aee4a)=>_0x4a77ab['execute'](..._0x2aee4a,{'forceDefaultExecution':!0x0}),..._0x43c27b),_0x51fa19['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x53e4f6){let _0x3250da,_0x410571;const _0x148c79=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3250da=_0x53e4f6();}catch(_0x425628){_0x410571=_0x425628;}return _0x148c79||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x410571&&_0x135682['rethrowUnexpectedError'](_0x410571,this),_0x3250da;}['markInsertion'](_0x111daa,_0x3aae23=null,_0x23e702={}){if(_0x111daa['isCollapsed'])return null;const _0x343a5d=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x5e85be,meta:_0x346242}of this['_findSuggestions'](_0x111daa,'insertion'))if(_0x346242['isOwn']){if(!_0x346242['isNextTo']){if(_0x346242['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x5e85be,_0x23e702))continue;return _0x5e85be;}if(Xt(_0x5e85be,_0x23e702))return _0x5e85be;this['_breakSuggestionMarker'](_0x5e85be,_0x111daa['start'],_0x111daa['end']);break;}if(_0x3aae23==_0x5e85be['subType']&&Xt(_0x5e85be,_0x23e702)){const _0x1f5095=_0x5e85be['getFirstRange']();return _0x1f5095['start']['isEqual'](_0x111daa['end'])?this['_setSuggestionRange'](_0x5e85be,this['_model']['createRange'](_0x111daa['start'],_0x1f5095['end'])):this['_setSuggestionRange'](_0x5e85be,this['_model']['createRange'](_0x1f5095['start'],_0x111daa['end'])),_0x5e85be;}}const _0xb6e3b2=_0x53d19c(),_0x10defa=_0x343a5d['id'],_0x43fcf9=_0x3aae23?'insertion:'+_0x3aae23:'insertion',_0x589855=this['_setSuggestionData']({'id':_0xb6e3b2,'type':_0x43fcf9,'createdAt':new Date(),'authorId':_0x10defa,'attributes':_0x23e702});return this['_addSuggestionMarker'](_0x43fcf9,_0xb6e3b2,_0x10defa,_0x111daa),_0x589855;}['markMultiRangeInsertion'](_0x185179,_0x20b318='multi',_0x241f6a={}){const _0x53a9ce=this['editor']['plugins']['get']('Users')['me'],_0x5a7e47=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x20b318,'join');for(const _0x607482 of this['getSuggestions']())if(_0x607482['author']['id']==_0x53a9ce['id']&&'insertion'==_0x607482['type']&&_0x607482['subType']==_0x20b318&&Xt(_0x607482,_0x241f6a)&&(_0x5a7e47(_0x607482['getRanges'](),_0x185179)||_0x5a7e47(_0x185179,_0x607482['getRanges']()))){for(const _0x35d7a1 of _0x185179)_0x607482['addRange'](_0x35d7a1);return _0x607482;}for(const {suggestion:_0x125230,meta:_0x2d292c}of this['_findSuggestions'](_0x185179,'insertion')){if(!_0x2d292c['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x2d292c['containsRangeInObject'])continue;if(!Xt(_0x125230,_0x241f6a))continue;let _0x3eae33=!0x0;for(const _0x1c1292 of _0x125230['getRanges']())for(const _0x30a8a8 of _0x185179)if(!_0x1c1292['containsRange'](_0x30a8a8)){_0x3eae33=!0x1;break;}if(_0x3eae33)return _0x125230;}const _0x3152c6=_0x53d19c(),_0x55082b=_0x53a9ce['id'],_0xbba6cd='insertion:'+_0x20b318,_0x48fca5=this['_setSuggestionData']({'id':_0x3152c6,'type':_0xbba6cd,'createdAt':new Date(),'authorId':_0x55082b,'attributes':_0x241f6a});for(const _0x19008f of _0x185179)this['_addSuggestionMarker'](_0xbba6cd,_0x3152c6,_0x55082b,_0x19008f,o['getMultiRangeId']());return _0x48fca5;}['markInlineFormat'](_0x497b72,_0x4cb4dd,_0x4e468b=null,_0x4ea07b={}){if(_0x4e468b=_0x4e468b||Kt(_0x4cb4dd),_0x497b72['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x594c34=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4e468b,'accept');return this['forceDefaultExecution'](()=>_0x594c34([_0x497b72],_0x4cb4dd,_0x4ea07b)),null;}const _0x56d17e=this['editor']['plugins']['get']('Users')['me'],_0x63516e=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x10342c,meta:_0x3a8bf0}of this['_findSuggestions'](_0x497b72,'insertion'))_0x3a8bf0['isOwn']&&!_0x3a8bf0['isInsideObject']&&_0x63516e['push'](..._0x10342c['getRanges']());}const _0x29c687=function(_0x2ed4ce,_0x2b7376){const _0x28e753=[];for(const _0x54394c of _0x2b7376){const _0x863dfc=_0x2ed4ce['getIntersection'](_0x54394c);_0x863dfc&&_0x28e753['push'](_0x863dfc);}return _0x28e753;}(_0x497b72,_0x63516e),_0x163a44=function(_0x960f36,_0x57aeca){const _0x1c4546=[_0x960f36];for(const _0x3bd436 of _0x57aeca){let _0x17828c=0x0;for(;_0x17828c<_0x1c4546['length'];){const _0x2f2963=_0x1c4546[_0x17828c]['getDifference'](_0x3bd436);_0x1c4546['splice'](_0x17828c,0x1,..._0x2f2963),_0x17828c+=_0x2f2963['length'];}}return _0x1c4546;}(_0x497b72,_0x63516e);_0x29c687['length']&&this['_model']['change'](()=>{for(const _0x7ac845 of _0x29c687){const _0x4f54cf=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4e468b,'accept');this['forceDefaultExecution'](()=>_0x4f54cf([_0x7ac845],_0x4cb4dd,_0x4ea07b));}});for(const _0x3b361c of _0x163a44){let _0xe62a8a=null,_0x5c2bd9=_0x3b361c['start'],_0x42959c=_0x3b361c['end'];for(const {suggestion:_0x35e5d9,meta:_0x397c8a}of this['_findSuggestions'](_0x3b361c,'formatInline')){if(!_0x397c8a['isOwn'])continue;if(_0x35e5d9['subType']!=_0x4e468b)continue;if(!Xt(_0x35e5d9,_0x4ea07b))continue;const _0x3c5d13=_0x35e5d9['getFirstRange']();if(_0x3c5d13['containsRange'](_0x3b361c,!0x0))return null;_0x5c2bd9=_0x5c2bd9['isBefore'](_0x3c5d13['start'])?_0x5c2bd9:_0x3c5d13['start'],_0x42959c=_0x42959c['isAfter'](_0x3c5d13['end'])?_0x42959c:_0x3c5d13['end'],_0xe62a8a?_0x3c5d13['start']['isBefore'](_0xe62a8a['getFirstRange']()['start'])?(_0xe62a8a['removeMarkers'](),_0xe62a8a=_0x35e5d9):_0x35e5d9['removeMarkers']():_0xe62a8a=_0x35e5d9;}const _0x636fb=this['_model']['createRange'](_0x5c2bd9,_0x42959c);if(_0xe62a8a)this['_setSuggestionRange'](_0xe62a8a,_0x636fb);else{const _0xc12ad0=_0x53d19c(),_0x172787=_0x56d17e['id'];this['_setSuggestionData']({'id':_0xc12ad0,'type':'formatInline:'+_0x4e468b,'data':_0x4cb4dd,'createdAt':new Date(),'authorId':_0x172787,'attributes':_0x4ea07b}),this['_addSuggestionMarker']('formatInline:'+_0x4e468b,_0xc12ad0,_0x172787,_0x636fb);}}return null;}['markBlockFormat'](_0xf21c48,_0x235e20,_0xfdf9c9=[],_0x45d26b=null,_0xab3e15={}){_0x235e20['formatGroupId']||(_0x235e20['formatGroupId']=_0x235e20['commandName']),_0x235e20['multipleBlocks']=_0xf21c48['is']('range'),_0x45d26b=_0x45d26b||Kt(_0x235e20);const _0x2db75a=_0xfdf9c9['map'](_0xa263b9=>zt(_0xa263b9,this['_model'])),_0x23c61f=_0xf21c48['is']('range')?_0xf21c48:zt(_0xf21c48,this['_model']);if('never'===this['_trackFormatChanges']){const _0x43233d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x45d26b,'accept');return this['forceDefaultExecution'](()=>_0x43233d([_0x23c61f],_0x235e20,_0xab3e15)),null;}_0x2db75a['push'](_0x23c61f);let _0x2f234f=!0x0;for(const _0x39ca41 of _0x2db75a)if(!this['_rangeIsInLocalUserInsertion'](_0x39ca41)){_0x2f234f=!0x1;break;}if(_0x2f234f&&'always'!==this['_trackFormatChanges']){const _0x4b1e67=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x45d26b,'accept');return this['forceDefaultExecution'](()=>_0x4b1e67([_0x23c61f],_0x235e20,_0xab3e15)),null;}let _0xce6d16=null,_0x441850=_0x23c61f['start'],_0x4213d8=_0x23c61f['end'];for(const {suggestion:_0x5ebe58,meta:_0x86be6d}of this['_findSuggestions'](_0x23c61f,'formatBlock')){if(!_0x86be6d['isOwn'])continue;if(_0x86be6d['isNextTo']||_0x86be6d['containsRangeInObject']||_0x86be6d['isInsideObject'])continue;if(_0x5ebe58['data']['formatGroupId']!=_0x235e20['formatGroupId'])continue;if(!Xt(_0x5ebe58,_0xab3e15))continue;const _0x462ee2=_0x5ebe58['getFirstRange']();if(_0x5ebe58['subType']==_0x45d26b){if(_0x462ee2['containsRange'](_0x23c61f,!0x0))return null;_0x441850=_0x441850['isBefore'](_0x462ee2['start'])?_0x441850:_0x462ee2['start'],_0x4213d8=_0x4213d8['isAfter'](_0x462ee2['end'])?_0x4213d8:_0x462ee2['end'],_0xce6d16?_0x462ee2['start']['isBefore'](_0xce6d16['getFirstRange']()['start'])?(_0xce6d16['removeMarkers'](),_0xce6d16=_0x5ebe58):_0x5ebe58['removeMarkers']():_0xce6d16=_0x5ebe58;}else{const _0x23b33a=_0x23c61f['getIntersection'](_0x462ee2);this['_cutOutSuggestionMarker'](_0x5ebe58,_0x23b33a);}}const _0x35b891=this['editor']['plugins']['get']('Users')['me'],_0x371a94=_0x53d19c(),_0x237eab=_0x35b891['id'];if(_0xce6d16)return this['_setSuggestionRange'](_0xce6d16,this['_model']['createRange'](_0x441850,_0x4213d8)),_0xce6d16;{const _0x4ff26e=this['_setSuggestionData']({'id':_0x371a94,'type':'formatBlock:'+_0x45d26b,'data':_0x235e20,'createdAt':new Date(),'authorId':_0x237eab,'attributes':_0xab3e15});return this['_addSuggestionMarker']('formatBlock:'+_0x45d26b,_0x371a94,_0x237eab,this['_model']['createRange'](_0x441850,_0x4213d8)),_0x4ff26e;}}['markMultiRangeBlockFormat'](_0x5898d4,_0x264d6b,_0x5ab3dc=[],_0x3df979=null,_0x193a35={}){_0x264d6b['formatGroupId']||(_0x264d6b['formatGroupId']=_0x264d6b['commandName']);const _0x586ec0=_0x5898d4[0x0];_0x264d6b['multipleBlocks']=_0x586ec0['is']('range'),_0x3df979=_0x3df979||Kt(_0x264d6b);const _0x117909=_0x5ab3dc['map'](_0x4aacef=>zt(_0x4aacef,this['_model'])),_0x484579=_0x586ec0['is']('range')?_0x5898d4:_0x5898d4['map'](_0x354a1a=>zt(_0x354a1a,this['_model']));if('never'===this['_trackFormatChanges']){const _0x121fef=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3df979,'accept');return this['forceDefaultExecution'](()=>_0x121fef(_0x484579,_0x264d6b,_0x193a35)),null;}_0x117909['push'](..._0x484579);let _0x52320d=!0x0;for(const _0x28ed78 of _0x117909)if(!this['_rangeIsInLocalUserInsertion'](_0x28ed78)){_0x52320d=!0x1;break;}if(_0x52320d&&'always'!==this['_trackFormatChanges']){const _0x181d3b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3df979,'accept');return this['forceDefaultExecution'](()=>_0x181d3b(_0x484579,_0x264d6b,_0x193a35)),null;}const _0xe36ee3=this['editor']['plugins']['get']('Users')['me'];for(const _0x33be22 of this['getSuggestions']()){if(_0x33be22['author']['id']!=_0xe36ee3['id'])continue;if('formatBlock'!=_0x33be22['type']||_0x33be22['data']['formatGroupId']!=_0x264d6b['formatGroupId'])continue;if(!Xt(_0x33be22,_0x193a35))continue;const _0x4d26c7=_0x33be22['subType']==_0x3df979;for(let _0x35406e=0x0;_0x35406e<_0x484579['length'];_0x35406e++){const _0x189aea=_0x484579[_0x35406e];for(const _0x2b4f65 of _0x33be22['getMarkers']()){const _0x1dafa3=_0x2b4f65['getRange']();if(_0x189aea['isEqual'](_0x1dafa3)){_0x4d26c7?(_0x484579['splice'](_0x35406e,0x1),_0x35406e--):_0x33be22['removeMarker'](_0x2b4f65['name']);break;}}}}if(0x0==_0x484579['length'])return null;const _0x44f444=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3df979,'join');for(const _0x38cc03 of this['getSuggestions']())if(_0x38cc03['author']['id']==_0xe36ee3['id']&&'formatBlock'==_0x38cc03['type']&&_0x38cc03['data']['formatGroupId']==_0x264d6b['formatGroupId']&&_0x38cc03['subType']==_0x3df979&&Xt(_0x38cc03,_0x193a35)&&(_0x44f444(_0x38cc03['getRanges'](),_0x484579)||_0x44f444(_0x484579,_0x38cc03['getRanges']()))){for(const _0x21e588 of _0x484579)_0x38cc03['addRange'](_0x21e588);return _0x38cc03;}const _0x519dba=_0x53d19c(),_0x579ff9=_0xe36ee3['id'],_0xacaa14='formatBlock:'+_0x3df979,_0x379865=this['_setSuggestionData']({'id':_0x519dba,'type':_0xacaa14,'data':_0x264d6b,'createdAt':new Date(),'authorId':_0x579ff9,'attributes':_0x193a35});for(const _0x2cd1c6 of _0x484579)this['_addSuggestionMarker'](_0xacaa14,_0x519dba,_0x579ff9,_0x2cd1c6,o['getMultiRangeId']());return _0x379865;}['markDeletion'](_0x241594,_0x4a40d2=null,_0x5bb480={}){if(_0x241594['isCollapsed'])return null;const _0x3ca2fc=this['editor']['plugins']['get']('Users')['me'],_0x3ea8d5=new _0x2de0d6(_0x241594['start'],_0x241594['end']);for(const {suggestion:_0x316f7a,meta:_0x46d207}of this['_findSuggestions'](_0x3ea8d5,'insertion'))if(_0x46d207['isOwn']&&!_0x46d207['isNextTo']){if(_0x316f7a['isMultiRange']){const _0x9d0b3b=_0x316f7a['getRanges']()['filter'](_0x11ee3e=>'$graveyard'!=_0x11ee3e['root']['rootName']);_0x9d0b3b['every'](_0x28904a=>_0x3ea8d5['containsRange'](_0x28904a,!0x0))&&_0x316f7a['discard']();if(_0x9d0b3b['some'](_0x52bea5=>_0x52bea5['containsRange'](_0x3ea8d5,!0x0))){const _0x12cc99=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4a40d2,'accept');return this['forceDefaultExecution'](()=>_0x12cc99([_0x3ea8d5],null,_0x5bb480)),null;}}else{const _0x4c2f0a=_0x3ea8d5['getIntersection'](_0x316f7a['getFirstRange']());null!==_0x4c2f0a&&_0x316f7a['_onDiscard']([_0x4c2f0a],null,_0x5bb480);}}if(_0x3ea8d5['detach'](),_0x3ea8d5['isCollapsed']||'$graveyard'==_0x3ea8d5['root']['rootName'])return null;let _0x3e4c65=null,_0x68a57e=_0x3ea8d5['start'],_0x97b4e=_0x3ea8d5['end'];const _0x27a1d9=this['_findSuggestions'](_0x3ea8d5,'deletion');for(const {suggestion:_0x1cc7b2,meta:_0x256d03}of _0x27a1d9){const _0x4ad6fb=this['_model']['createRange'](_0x68a57e,_0x97b4e);if(_0x256d03['isOwn']&&(this['_mergeNestedSuggestions']||!_0x256d03['containsRangeInObject']&&!_0x256d03['isInsideObject'])){if(_0x1cc7b2['isMultiRange']){if(!Xt(_0x1cc7b2,_0x5bb480))continue;let _0x3f2d69=!0x0;for(const _0x4d1133 of _0x1cc7b2['getRanges']()){if(_0x4d1133['containsRange'](_0x4ad6fb,!0x0))return _0x1cc7b2;_0x4ad6fb['containsRange'](_0x4d1133)||(_0x3f2d69=!0x1);}_0x3f2d69&&_0x1cc7b2['discard']();}else{const _0x18d7c0=_0x1cc7b2['getFirstRange']();if(_0x18d7c0['containsRange'](_0x4ad6fb,!0x0))return _0x1cc7b2;if(!Xt(_0x1cc7b2,_0x5bb480)){_0x4ad6fb['containsRange'](_0x18d7c0)?_0x1cc7b2['removeMarkers']():_0x18d7c0['containsPosition'](_0x68a57e)?_0x68a57e=_0x18d7c0['end']:_0x18d7c0['containsPosition'](_0x97b4e)&&(_0x97b4e=_0x18d7c0['start']);continue;}_0x68a57e=_0x68a57e['isBefore'](_0x18d7c0['start'])?_0x68a57e:_0x18d7c0['start'],_0x97b4e=_0x97b4e['isAfter'](_0x18d7c0['end'])?_0x97b4e:_0x18d7c0['end'],_0x5bb480=Object['assign']({},_0x1cc7b2['attributes']),_0x3e4c65?_0x18d7c0['start']['isBefore'](_0x3e4c65['getFirstRange']()['start'])?(_0x3e4c65['removeMarkers'](),_0x3e4c65=_0x1cc7b2):_0x1cc7b2['removeMarkers']():_0x3e4c65=_0x1cc7b2;}}}if(_0x3e4c65)return this['_setSuggestionRange'](_0x3e4c65,this['_model']['createRange'](_0x68a57e,_0x97b4e)),_0x3e4c65;{const _0x23efd7=_0x53d19c(),_0x1cd3d2=this['_model']['createRange'](_0x68a57e,_0x97b4e),_0x137b5a=_0x3ca2fc['id'],_0x2a7285=_0x4a40d2?'deletion:'+_0x4a40d2:'deletion',_0x4c6100=this['_setSuggestionData']({'id':_0x23efd7,'type':_0x2a7285,'createdAt':new Date(),'authorId':_0x137b5a,'attributes':_0x5bb480});return this['_addSuggestionMarker'](_0x2a7285,_0x23efd7,_0x137b5a,_0x1cd3d2),_0x4c6100;}}['markMultiRangeDeletion'](_0x17c3ee,_0x36fcac='multi',_0x483d8b={}){const _0xfd8dc5=this['editor']['plugins']['get']('Users')['me'],_0x556159=_0x17c3ee['map'](_0x4b78ae=>new _0x2de0d6(_0x4b78ae['start'],_0x4b78ae['end'])),_0x28555b=new Set();for(const {suggestion:_0x3bdaf9,meta:_0x23f6c2}of this['_findSuggestions'](_0x556159,'insertion'))_0x23f6c2['isOwn']&&!_0x23f6c2['isNextTo']&&_0x28555b['add'](_0x3bdaf9);for(const _0x315d66 of _0x28555b)if(_0x315d66['isMultiRange']){const _0x1b270b=_0x315d66['getRanges']();(!_0x315d66['attributes']||!_0x315d66['attributes']['skipNestingCheck'])&&(_0x1b270b['every'](_0x20e793=>_0x556159['some'](_0x359390=>_0x359390['containsRange'](_0x20e793,!0x0)))&&_0x315d66['discard']());if(_0x556159['every'](_0x4b6412=>_0x1b270b['some'](_0x57385=>_0x57385['containsRange'](_0x4b6412,!0x0)))){const _0x5727ba=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x36fcac,'accept');return this['forceDefaultExecution'](()=>_0x5727ba(_0x17c3ee,null,_0x483d8b)),null;}}else{const _0x3e5bba=_0x315d66['getFirstRange']();_0x556159['some'](_0x2c878c=>_0x2c878c['containsRange'](_0x3e5bba,!0x0))&&_0x315d66['discard']();if(_0x556159['every'](_0x585c48=>_0x3e5bba['containsRange'](_0x585c48,!0x0))){const _0x542d8d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x36fcac,'accept');return this['forceDefaultExecution'](()=>_0x542d8d(_0x556159,null,_0x483d8b)),null;}}const _0x332270=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x36fcac,'join');let _0x375101=null;for(const _0x1d88e7 of this['getSuggestions']())if(_0x1d88e7['author']['id']==_0xfd8dc5['id']&&_0x1d88e7['isInContent']&&'deletion'==_0x1d88e7['type']&&_0x1d88e7['subType']==_0x36fcac&&Xt(_0x1d88e7,_0x483d8b)&&(_0x332270(_0x1d88e7['getRanges'](),_0x556159)||_0x332270(_0x556159,_0x1d88e7['getRanges']()))){if(_0x375101){if(_0x1d88e7['commentThread']&&_0x1d88e7['commentThread']['length'])continue;for(const _0x364b8d of _0x1d88e7['getRanges']())_0x375101['isIntersectingWithRange'](_0x364b8d)||_0x375101['addRange'](_0x364b8d);_0x1d88e7['removeMarkers']();}else{_0x375101=_0x1d88e7;for(const _0x13bcf3 of _0x556159)_0x1d88e7['isIntersectingWithRange'](_0x13bcf3)||_0x1d88e7['addRange'](_0x13bcf3);}}if(_0x375101)return _0x375101;_0x28555b['clear']();for(const {suggestion:_0x1892ad,meta:_0x31db40}of this['_findSuggestions'](_0x556159,'deletion'))_0x31db40['isOwn']&&(this['_mergeNestedSuggestions']||!_0x31db40['containsRangeInObject']&&!_0x31db40['isInsideObject'])&&Xt(_0x1892ad,_0x483d8b)&&_0x28555b['add'](_0x1892ad);for(const _0x5b5512 of _0x28555b){const _0x2a283a=_0x5b5512['getRanges']();if(!_0x483d8b||!_0x483d8b['skipNestingCheck']){if(_0x556159['every'](_0x2f0023=>_0x2a283a['some'](_0x360c55=>_0x360c55['containsRange'](_0x2f0023,!0x0))))return _0x5b5512;}(!_0x5b5512['attributes']||!_0x5b5512['attributes']['skipNestingCheck'])&&(_0x2a283a['every'](_0x5ea0b7=>_0x556159['some'](_0x12a798=>_0x12a798['containsRange'](_0x5ea0b7,!0x0)))&&_0x5b5512['discard']());}const _0x1828f8=_0x53d19c(),_0x506276=_0xfd8dc5['id'],_0x5295d0='deletion:'+_0x36fcac,_0xf17c9c=this['_setSuggestionData']({'id':_0x1828f8,'type':_0x5295d0,'createdAt':new Date(),'authorId':_0x506276,'attributes':_0x483d8b});for(const _0x31e82b of _0x556159)_0x31e82b['detach'](),_0x31e82b['isCollapsed']||'$graveyard'==_0x31e82b['root']['rootName']||this['_addSuggestionMarker'](_0x5295d0,_0x1828f8,_0x506276,_0x31e82b,o['getMultiRangeId']());return _0xf17c9c;}['markAttributeChange'](_0x147c65,_0x4307f0,_0x1b9ae9,_0x34437a,_0x270a2c){if(_0x147c65['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x45b7b8=this['editor']['plugins']['get']('Users')['me']['id'],_0x485805=Array['from'](this['_suggestions']['values']())['filter'](_0x309b99=>'attribute'==_0x309b99['type']&&_0x309b99['data']['key']==_0x4307f0&&_0x309b99['isIntersectingWithRange'](_0x147c65));if('default'===this['_trackFormatChanges']){const _0x495e77=this['_findSuggestions'](_0x147c65,'insertion')['filter'](({meta:_0x6b8c36})=>_0x6b8c36['isOwn']&&!_0x6b8c36['isInsideObject']&&!_0x6b8c36['isNextTo'])['map'](({suggestion:_0xb6ce78})=>_0xb6ce78);_0x485805['unshift'](..._0x495e77);}const _0x3c8f0d=new Map([[_0x147c65,_0x1b9ae9]]);for(const _0x29d40a of _0x485805){const _0xa3aaf='attribute'==_0x29d40a['type']?_0x29d40a['data']['oldValue']:void 0x0,_0x13b86a=_0x29d40a['getFirstRange'](),_0x53f03b=Array['from'](_0x3c8f0d['keys']())['find'](_0x411162=>_0x411162['isIntersecting'](_0x13b86a));if(!_0x53f03b)continue;const _0x4eeeca=_0x53f03b['getDifference'](_0x13b86a);this['_isBlockAttribute'](_0x4307f0)&&'insertion'==_0x29d40a['type']&&0x0!=_0x4eeeca['length']||(_0x3c8f0d['delete'](_0x53f03b),_0x4eeeca['forEach'](_0x2bf8de=>{_0x3c8f0d['set'](_0x2bf8de,_0x1b9ae9);}),'insertion'!=_0x29d40a['type']&&_0xa3aaf!=_0x34437a&&_0x3c8f0d['set'](_0x53f03b['getIntersection'](_0x13b86a),_0xa3aaf));}const _0x3a591c=[];for(const [_0x451109,_0x374ac3]of _0x3c8f0d){const _0x51012b=_0x53d19c(),_0x4f86e8={'key':_0x4307f0,'oldValue':_0x374ac3,'newValue':_0x34437a};_0x4307f0['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':_0x4307f0});const _0x3b31e9=('attribute:'+(_0x4307f0+'|'+Kt({'newValue':_0x34437a})))['substring'](0x0,0x3c),_0x56c4a5=this['_setSuggestionData']({'id':_0x51012b,'type':_0x3b31e9,'data':_0x4f86e8,'createdAt':new Date(),'authorId':_0x45b7b8,'attributes':_0x270a2c});_0x3a591c['push'](_0x56c4a5),this['_addSuggestionMarker'](_0x3b31e9,_0x51012b,_0x45b7b8,_0x451109);}return _0x3a591c;}['enableDefaultAttributesIntegration'](_0x49d35a){this['enableCommand'](_0x49d35a,(_0x219fb2,..._0x30df02)=>{this['_recordAttributeChanges'](()=>{_0x219fb2(..._0x30df02);});});}['registerBlockAttribute'](_0x37f75d){this['_blockAttributeKeys']['add'](_0x37f75d);}['registerInlineAttribute'](_0x515892){this['_inlineAttributeKeys']['add'](_0x515892);}['_getAttributeKey'](_0x550b8c){return'attribute'==_0x550b8c['type']?_0x550b8c['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x3876e8,_0x34b2cb){const _0x7ae57a=_0x3876e8['getFirstMarker']();this['_model']['change'](_0x334c3b=>{_0x334c3b['updateMarker'](_0x7ae57a,{'range':_0x34b2cb});});}['_addThreadToSuggestion'](_0x48250c){const _0x56c3db=_0x48250c['id'],_0x56d268=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x56c3db)||this['_commentsRepository']['addCommentThread']({'channelId':_0x56d268,'threadId':_0x56c3db,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3adb2b=this['_commentsRepository']['getCommentThread'](_0x56c3db);_0x3adb2b['unbind']('isRemovable'),_0x3adb2b['isRemovable']=!0x1,_0x48250c['commentThread']=_0x3adb2b;}['_checkSuggestionCorrectness'](_0x19169e,_0x5d199e,_0x3ce91f,_0x93882b){if(_0x19169e['type']!=_0x5d199e||_0x19169e['subType']!=_0x3ce91f||_0x19169e['creator']['id']!=_0x93882b)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x135682('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x111245,_0x1ae9a8){const _0x38e975=_0x111245['getFirstRange']();if(_0x1ae9a8['isEqual'](_0x38e975))_0x111245['removeMarkers']();else{if(_0x38e975['containsRange'](_0x1ae9a8)){const _0x7c128e=this['_model']['createPositionAt'](_0x1ae9a8['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x111245,this['_model']['createRange'](_0x38e975['start'],_0x7c128e));const _0x505e76=_0x53d19c(),_0x719adb=_0x111245['creator']['id'],_0x2e4cef=_0x111245['type']+':'+_0x111245['subType'];this['_setSuggestionData']({'id':_0x505e76,'type':_0x2e4cef,'createdAt':new Date(),'authorId':_0x719adb,'data':_0x111245['data'],'attributes':_0x111245['attributes']});const _0x4e4648=this['_model']['createPositionAt'](_0x1ae9a8['end']['parent'],'after'),_0x3b9f89=this['_model']['createRange'](_0x4e4648,_0x38e975['end']);this['_addSuggestionMarker'](_0x2e4cef,_0x505e76,_0x719adb,_0x3b9f89);}else{if(_0x38e975['containsPosition'](_0x1ae9a8['start'])){const _0xd748e7=this['_model']['createPositionAt'](_0x1ae9a8['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x111245,this['_model']['createRange'](_0x38e975['start'],_0xd748e7));}else{const _0x3711d5=this['_model']['createPositionAt'](_0x1ae9a8['end']['parent'],'after');this['_setSuggestionRange'](_0x111245,this['_model']['createRange'](_0x3711d5,_0x38e975['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x15a803){for(const {suggestion:_0x3acd16,meta:_0x27a1e2}of this['_findSuggestions'](_0x15a803,'insertion')){if(!_0x27a1e2['isOwn'])continue;const _0x2ffceb=_0x3acd16['getRanges']();for(const _0x497f1b of _0x2ffceb)if(!_0x15a803['getDifference'](_0x497f1b)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x187eb7){const _0x1b5388=this['editor']['plugins']['get']('Users')['getUser'](_0x187eb7);if(!_0x1b5388)throw new _0x135682('track-changes-user-not-found',this);return _0x1b5388;}['_getExternalAuthor'](_0x50f976){const _0x480b27=this['editor']['plugins']['get']('Users'),_0x13ffa1=_0x46b12e('external:'+_0x50f976),_0x1f6863=_0x480b27['getUser'](_0x13ffa1);return _0x1f6863||_0x480b27['addUser']({'id':_0x13ffa1,'name':_0x50f976});}['_createSuggestion'](_0x3551f0,_0x9f63d3,_0x1ba32d,_0x1ded6a,_0x952ed7){const _0xb977df=this['_getAuthorFromId'](_0x1ded6a),_0x195eda=this['_suggestionFactory']['buildSuggestion'](_0x3551f0,_0x9f63d3,_0x1ba32d,_0xb977df,_0x952ed7,_0x5d6ff8=>{this['_updateSuggestionData'](_0x1ba32d,{'attributes':_0x5d6ff8});const _0x3cd5d0=this['getSuggestion'](_0x1ba32d);this['_joinWithAdjacentSuggestions'](new Set([_0x3cd5d0])),this['_refreshSuggestionsChain'](new Set([_0x3cd5d0]));});return this['listenTo'](_0x195eda,'accept',()=>{this['_updateSuggestionData'](_0x1ba32d,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x195eda,'discard',()=>{this['_updateSuggestionData'](_0x1ba32d,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x1ba32d,_0x195eda),this['_suggestionState']['set'](_0x195eda,'notReady'),_0x195eda;}['_splitMarkerName'](_0x402213){const _0x4541fa=_0x402213['split'](':');return{'group':_0x4541fa[0x0],'type':_0x4541fa[0x1],'subType':_0x4541fa['length']>=0x5?_0x4541fa[0x2]:null,'id':_0x4541fa['length']<0x5?_0x4541fa[0x2]:_0x4541fa[0x3],'authorId':_0x4541fa['length']<0x5?_0x4541fa[0x3]:_0x4541fa[0x4],'markerCount':0x6==_0x4541fa['length']?_0x4541fa[0x5]:null};}['_breakSuggestionMarker'](_0x4e269a,_0x2d8a98,_0x38d452){const _0x69f8de=_0x4e269a['getFirstRange'](),_0x4de800=_0x69f8de['start'],_0x1ba011=_0x69f8de['end'];this['_setSuggestionRange'](_0x4e269a,this['_model']['createRange'](_0x4de800,_0x2d8a98));const _0x366574=_0x53d19c(),_0x516417=_0x4e269a['creator']['id'],_0x59ee97=_0x4e269a['type']+(_0x4e269a['subType']?':'+_0x4e269a['subType']:'');this['_setSuggestionData']({'id':_0x366574,'type':_0x59ee97,'createdAt':new Date(),'authorId':_0x516417,'originalSuggestionId':_0x4e269a['id'],'attributes':_0x4e269a['attributes'],'data':_0x4e269a['data']});const _0x2a00e7=this['_getAttributeKey'](_0x4e269a);('formatBlock'==_0x4e269a['type']||_0x2a00e7&&this['_isBlockAttribute'](_0x2a00e7))&&(_0x38d452=this['_model']['createPositionBefore'](_0x38d452['parent'])),this['_addSuggestionMarker'](_0x59ee97,_0x366574,_0x516417,this['_model']['createRange'](_0x38d452,_0x1ba011));}['_findSuggestions'](_0xda4272,_0x2ce3dd=null){const _0x2a922c=[],_0x38a5a3=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0xda4272)||(_0xda4272=[_0xda4272]);for(const _0x2faa4c of this['getSuggestions']()){if(!_0x2faa4c['isInContent'])continue;if(_0x2ce3dd&&_0x2faa4c['type']!=_0x2ce3dd)continue;let _0x2d8b3e=!0x1;for(const _0x4f46e3 of _0x2faa4c['getRanges']()){for(const _0x4b257e of _0xda4272){const _0x574676=_0x4b257e['start']['isEqual'](_0x4f46e3['end'])||_0x4b257e['end']['isEqual'](_0x4f46e3['start']);if(_0x574676||_0x4b257e['getIntersection'](_0x4f46e3)){const _0x3ea2aa=_0x4b257e['containsRange'](_0x4f46e3)&&Gt(this['_model']['schema'],_0x4f46e3['start'],_0x4b257e),_0x435e15=_0x4f46e3['containsRange'](_0x4b257e)&&Gt(this['_model']['schema'],_0x4b257e['start'],_0x4f46e3);_0x2a922c['push']({'suggestion':_0x2faa4c,'meta':{'isOwn':_0x38a5a3==_0x2faa4c['author'],'isNextTo':_0x574676,'isInsideObject':_0x3ea2aa,'containsRangeInObject':_0x435e15}}),_0x2d8b3e=!0x0;break;}}if(_0x2d8b3e)break;}}return _0x2a922c;}['_addSuggestionMarker'](_0x42d056,_0x5588f2,_0x35cb08,_0x5dca7f,_0xf11e68){this['_model']['change'](_0x2b6329=>{let _0x41808a='suggestion:'+_0x42d056+':'+_0x5588f2+':'+_0x35cb08;_0xf11e68&&(_0x41808a=_0x41808a+':'+_0xf11e68),_0x2b6329['addMarker'](_0x41808a,{'range':_0x5dca7f,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x50b295){const _0x4766ce=_0x50b295['previous'],_0x5b2b3a=_0x50b295['next'];_0x50b295['previous']=null,_0x50b295['next']=null,null!=_0x4766ce&&_0x4766ce['next']==_0x50b295&&(_0x4766ce['next']=_0x5b2b3a),null!=_0x5b2b3a&&_0x5b2b3a['previous']==_0x50b295&&(_0x5b2b3a['previous']=_0x4766ce),'ready'==this['_suggestionState']['get'](_0x50b295)&&(this['_suggestionState']['set'](_0x50b295,'removed'),this['fire']('suggestionUnloaded',_0x50b295,_0x4766ce,_0x5b2b3a));}['_setSuggestionData'](_0x5cc269){const _0x596cad=_0x5cc269['id'],_0x12ba0b=this['addSuggestionData'](_0x5cc269);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x78bc50=this['editor']['plugins']['get']('PendingActions'),_0x857cdf=_0x12ba0b['hasComments'],_0x2081f4=_0x12ba0b['subType']?_0x12ba0b['type']+':'+_0x12ba0b['subType']:_0x12ba0b['type'],_0x51d5be=this['editor']['locale'],_0x2c7a2c=_0x78bc50['add'](c(_0x51d5be,'PENDING_ACTION_SUGGESTION')),_0x707117={'id':_0x596cad,'type':_0x2081f4,'hasComments':_0x857cdf,'data':_0x5cc269['data']||null,'originalSuggestionId':_0x5cc269['originalSuggestionId']||null,'attributes':_0x12ba0b['attributes']};this['_adapter']['addSuggestion'](_0x707117)['then'](_0x2c7cfa=>{_0x12ba0b['_saved']=!0x0,_0x78bc50['remove'](_0x2c7a2c),_0x2c7cfa&&_0x2c7cfa['createdAt']&&(this['_suggestions']['get'](_0x596cad)['createdAt']=_0x2c7cfa['createdAt']);})['catch'](_0x10f96c=>{throw _0x2beec8('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x12ba0b['discard']();}),_0x12ba0b['stopListening'](),this['_suggestions']['delete'](_0x12ba0b['id']),this['_suggestionState']['delete'](_0x12ba0b),_0x10f96c;});}return _0x12ba0b;}['_isBlockAttribute'](_0x4bb1bb){return this['_blockAttributeKeys']['has'](_0x4bb1bb);}['_updateSuggestionData'](_0x253326,_0x11c189){const _0xbb33d2=this['editor']['plugins']['get']('PendingActions'),_0x5bb5c0=this['getSuggestion'](_0x253326);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x5bb5c0['_saved']){const _0x2cf0d7=_0xbb33d2['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x253326,_0x11c189)['then'](()=>{_0xbb33d2['remove'](_0x2cf0d7);});}else _0x5bb5c0['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x253326,_0x11c189);});}}['_getSuggestionData'](_0x4fc4fe){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x135682('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x4fc4fe);}['_handleNewSuggestionMarker'](_0x1c173b){const {id:_0x573349,type:_0x5519df,subType:_0x482a92,authorId:_0x345137}=this['_splitMarkerName'](_0x1c173b),_0x5631a7=this['_suggestions']['get'](_0x573349)||this['_createSuggestion'](_0x5519df,_0x482a92,_0x573349,_0x345137,{});switch(this['_checkSuggestionCorrectness'](_0x5631a7,_0x5519df,_0x482a92,_0x345137),this['_suggestionState']['get'](_0x5631a7)){case'notReady':this['_getSuggestionData'](_0x573349)['then'](_0x1c4a46=>{let _0x37e19f=Promise['resolve']();_0x1c4a46['hasComments']&&(_0x37e19f=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x573349})),_0x37e19f['then'](()=>{this['addSuggestionData'](_0x1c4a46)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x5631a7,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x573349,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x5631a7,'ready'),this['fire']('suggestionLoaded',_0x5631a7);break;case'ready':this['fire']('suggestionChanged',_0x5631a7);}return _0x5631a7['addMarkerName'](_0x1c173b),_0x5631a7;}['_refreshSuggestionsChain'](_0x32b259){const _0x4a326d=Array['from'](_0x32b259),_0x7a1418=_0x4a326d['filter'](_0x2bba6a=>'attribute'==_0x2bba6a['type']);this['_refreshAttributeSuggestionsChain'](_0x7a1418);const _0x371555=_0x4a326d['filter'](_0x30d169=>!_0x30d169['isMultiRange']&&'attribute'!=_0x30d169['type']),_0x316ec3=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xea139a=>!_0xea139a['isMultiRange']&&'attribute'!=_0xea139a['type']),_0x8b0871=_0x316ec3['filter'](_0x116302=>!_0x32b259['has'](_0x116302)),_0x661b6b=new Map(_0x316ec3['map'](_0x35d05c=>[_0x35d05c,this['_suggestionFactory']['getSuggestionCallback'](_0x35d05c['type'],_0x35d05c['subType'],'chain')])),_0x1fc241=new Map(_0x316ec3['map'](_0x29b611=>[_0x29b611,_0x29b611['getFirstRange']()])),_0x24249c=new Set(),_0x3e9d24=new Set();for(let _0x337564=0x0;_0x337564<_0x371555['length'];_0x337564++)_0xcd7db9(_0x371555[_0x337564],_0x371555,_0x337564+0x1);for(let _0x198bcf=0x0;_0x198bcf<_0x371555['length'];_0x198bcf++)_0xcd7db9(_0x371555[_0x198bcf],_0x8b0871,0x0);const _0x23aecf=new Set();for(let _0x1fac6c=0x0;_0x1fac6c<_0x371555['length'];_0x1fac6c++){const _0x37da58=_0x371555[_0x1fac6c];!_0x3e9d24['has'](_0x37da58)&&_0x37da58['previous']&&(_0x23aecf['add'](_0x37da58['previous']),_0x37da58['previous']['next']===_0x37da58&&(_0x37da58['previous']['next']=null),_0x37da58['previous']=null),!_0x24249c['has'](_0x37da58)&&_0x37da58['next']&&(_0x23aecf['add'](_0x37da58['next']),_0x37da58['next']['previous']===_0x37da58&&(_0x37da58['next']['previous']=null),_0x37da58['next']=null);}function _0xcd7db9(_0x578e57,_0x58de80,_0x52f919){for(let _0x6034b3=_0x52f919;_0x6034b3<_0x58de80['length'];_0x6034b3++){const _0x5abe3d=_0x3f883f(_0x578e57,_0x58de80[_0x6034b3]);_0x5abe3d&&(_0x5abe3d[0x0]['next']=_0x5abe3d[0x1],_0x5abe3d[0x1]['previous']=_0x5abe3d[0x0],_0x24249c['add'](_0x5abe3d[0x0]),_0x3e9d24['add'](_0x5abe3d[0x1]));}}function _0x3f883f(_0x11c44c,_0x494a06){if(_0x11c44c['author']['id']!==_0x494a06['author']['id'])return null;const _0x3d9f26=_0x661b6b['get'](_0x11c44c)(_0x11c44c,_0x494a06,_0x1fc241['get'](_0x11c44c),_0x1fc241['get'](_0x494a06));if(!_0x3d9f26)return null;return _0x661b6b['get'](_0x494a06)(_0x11c44c,_0x494a06,_0x1fc241['get'](_0x11c44c),_0x1fc241['get'](_0x494a06))?_0x3d9f26[0x1]['commentThread']&&_0x3d9f26[0x1]['commentThread']['length']?null:_0x3d9f26:null;}_0x23aecf['size']&&this['_refreshSuggestionsChain'](_0x23aecf);}['_refreshAttributeSuggestionsChain'](_0x38f407){if(0x0==_0x38f407['length'])return;const _0x54838c=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x596d23=>'attribute'==_0x596d23['type']&&_0x596d23['_isDataLoaded']),_0x3433ec=[],_0x2440a2=new Map();for(const _0x44c9fb of _0x54838c){const _0x56b3e9=_0x46b12e(_0x44c9fb['attributes']);_0x2440a2['has'](_0x56b3e9)||(_0x2440a2['set'](_0x56b3e9,_0x3433ec['length']),_0x3433ec['push']([]));const _0x299c61=_0x2440a2['get'](_0x56b3e9);_0x3433ec[_0x299c61]['push'](_0x44c9fb);}!(function(){_0x3433ec['sort']((_0x5845fe,_0x3a92d7)=>{const _0x5a6473=_0x5845fe[0x0]['createdAt'],_0x1e1612=_0x3a92d7[0x0]['createdAt'];return _0x5a6473==_0x1e1612?_0x5845fe[0x0]['attributes']['groupId']<_0x3a92d7[0x0]['attributes']['groupId']?-0x1:0x1:_0x5a6473<_0x1e1612?-0x1:0x1;});for(const _0x52d9e7 of _0x3433ec)_0x52d9e7['sort']((_0x712d1f,_0x310abf)=>_0x712d1f['id']<_0x310abf['id']?-0x1:0x1);}());for(let _0x285df9=0x0;_0x285df9<_0x3433ec['length'];_0x285df9++){if(0x0==_0x3433ec[_0x285df9]['length'])continue;const _0x32d73b=[];for(let _0x31f171=_0x285df9+0x1;_0x31f171<_0x3433ec['length'];_0x31f171++)0x0!=_0x3433ec[_0x31f171]['length']&&_0x1998ec(_0x3433ec[_0x285df9],_0x3433ec[_0x31f171])&&_0x32d73b['push'](_0x31f171);for(const _0x54f4ac of _0x32d73b)_0x3433ec[_0x285df9]=_0x3433ec[_0x285df9]['concat'](_0x3433ec[_0x54f4ac]),_0x3433ec[_0x54f4ac]=[];}for(const _0x5c2b79 of _0x3433ec)for(let _0x128b05=0x0;_0x128b05<_0x5c2b79['length'];_0x128b05++){const _0x4121d7=_0x5c2b79[_0x128b05+0x1]||null;_0x5c2b79[_0x128b05]['next']!==_0x4121d7&&(_0x5c2b79[_0x128b05]['next']=_0x4121d7);}for(const _0x3de669 of _0x3433ec)for(let _0x5b5571=0x0;_0x5b5571<_0x3de669['length'];_0x5b5571++){const _0x2c7570=_0x3de669[_0x5b5571-0x1]||null;_0x3de669[_0x5b5571]['previous']!==_0x2c7570&&(_0x3de669[_0x5b5571]['previous']=_0x2c7570);}function _0x1998ec(_0x5d3aef,_0x3395bb){if(_0x5d3aef[0x0]['attributes']['groupId']!==_0x3395bb[0x0]['attributes']['groupId']&&_0x5d3aef[0x0]['author']!==_0x3395bb[0x0]['author'])return!0x1;if(!function(_0x6d1b1b,_0x48d00a){if(!_0x6d1b1b['hasComments']&&!_0x48d00a['hasComments'])return!0x0;if(_0x6d1b1b['hasComments']&&_0x48d00a['hasComments'])return!0x1;if(_0x6d1b1b['hasComments']&&_0x48d00a['createdAt']<_0x6d1b1b['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x48d00a['hasComments']&&_0x6d1b1b['createdAt']<_0x48d00a['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x5d3aef[0x0],_0x3395bb[0x0]))return!0x1;const _0x4e3939=Ft(_0x5d3aef[0x0]['attributes'],'groupId'),_0x2ca4fc=Ft(_0x3395bb[0x0]['attributes'],'groupId');if(!_0x35ec39(_0x4e3939,_0x2ca4fc))return!0x1;return!!_0x5d3aef['every'](_0x1def10=>_0x3395bb['some'](_0x500add=>_0x1def10['getFirstRange']()['isEqual'](_0x500add['getFirstRange']())))&&_0x3395bb['every'](_0xd23c0=>_0x5d3aef['some'](_0x39fa27=>_0xd23c0['getFirstRange']()['isEqual'](_0x39fa27['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x3ff9b7){const _0xe40786=Array['from'](_0x3ff9b7),_0x37ef4a=this['getSuggestions']({'skipNotAttached':!0x0}),_0x14e4a5=_0x37ef4a['filter'](_0x3c40ba=>!_0x3ff9b7['has'](_0x3c40ba)),_0x415253=new Map(_0xe40786['map'](_0x1ac5b5=>[_0x1ac5b5,this['_suggestionFactory']['getSuggestionCallback'](_0x1ac5b5['type'],_0x1ac5b5['subType'],'join')])),_0x10d459=new Map(_0x37ef4a['map'](_0x480006=>[_0x480006,_0x480006['getRanges']()]));for(let _0x4383f4=0x0;_0x4383f4<_0xe40786['length'];_0x4383f4++){if(_0x2cf363(this,_0xe40786[_0x4383f4],_0xe40786,_0x4383f4+0x1))return!0x0;}for(let _0x3881a7=0x0;_0x3881a7<_0xe40786['length'];_0x3881a7++){if(_0x2cf363(this,_0xe40786[_0x3881a7],_0x14e4a5,0x0))return!0x0;}return!0x1;function _0x2cf363(_0x346022,_0x3534c7,_0x1a8ac7,_0x306a3b){for(let _0x2d368b=_0x306a3b;_0x2d368b<_0x1a8ac7['length'];_0x2d368b++){const _0x1584b3=_0x1a8ac7[_0x2d368b];if(_0x1584b3['type']!==_0x3534c7['type']||_0x1584b3['author']['id']!==_0x3534c7['author']['id']||_0x1584b3['subType']!==_0x3534c7['subType'])continue;if(!Qt(_0x3534c7,_0x1584b3))continue;if('attribute'==_0x3534c7['type']&&_0x3534c7['data']['oldValue']!=_0x1584b3['data']['oldValue'])continue;if('attribute'==_0x3534c7['type']&&_0x346022['_isBlockAttribute'](_0x3534c7['data']['key']))continue;if('formatBlock'==_0x3534c7['type']){const _0x3ae7e3=_0x346022['editor']['model'],_0x26eeab=_0x3534c7['getContainedElement']();if(_0x26eeab&&(_0x3ae7e3['schema']['isObject'](_0x26eeab)||_0x3ae7e3['schema']['isLimit'](_0x26eeab)))continue;}const _0x275f94=_0x415253['get'](_0x3534c7),_0x4f8f80=_0x10d459['get'](_0x3534c7),_0x3b3299=_0x10d459['get'](_0x1584b3),_0x4998bb=_0x3534c7['commentThread']&&_0x3534c7['commentThread']['length'],_0x3fbee8=_0x1584b3['commentThread']&&_0x1584b3['commentThread']['length'];if(!_0x4998bb&&_0x275f94(_0x3b3299,_0x4f8f80))return _0x346022['_joinSuggestions'](_0x1584b3,_0x3534c7),_0x10d459['delete'](_0x3534c7),!0x0;if(!_0x3fbee8&&_0x275f94(_0x4f8f80,_0x3b3299))return _0x346022['_joinSuggestions'](_0x3534c7,_0x1584b3),_0x10d459['delete'](_0x1584b3),!0x0;}return!0x1;}}['_joinSuggestions'](_0x14516c,_0x5adea1){if(_0x14516c['isMultiRange']){for(const _0x30671c of _0x5adea1['getRanges']())_0x14516c['addRange'](_0x30671c);}else{const _0x574f99=_0x5adea1['getFirstRange']()['end'];this['_setSuggestionRange'](_0x14516c,this['_model']['createRange'](_0x14516c['getFirstRange']()['start'],_0x574f99));}_0x5adea1['removeMarkers']();}['_getMarkerAnnouncementText'](_0x42fb91,_0x4b29c4,_0x3886a4){const _0x4b4ce1=_0x42fb91['startsWith']('format')||_0x42fb91['startsWith']('attribute')?'FORMATTING':_0x42fb91['toUpperCase']();return c(this['editor']['locale'],_0x4b29c4+'_'+_0x4b4ce1+'_SUGGESTION_ANNOUNCEMENT',_0x3886a4);}['_initAriaMarkerChangeAnnouncements'](){const _0x88781d=this['editor'];if(!_0x88781d['ui'])return;const {ariaLiveAnnouncer:_0x12f050}=_0x88781d['ui'];_0x46dcc9(this['_model'],({left:_0x4130fd,entered:_0xf0da3e})=>{for(const _0x35b1a5 of _0x4130fd){const {group:_0x53dc22,type:_0xd541e}=this['_splitMarkerName'](_0x35b1a5['name']);if('suggestion'===_0x53dc22){_0x12f050['announce'](this['_getMarkerAnnouncementText'](_0xd541e,'LEAVE'));break;}}for(const _0x2eeaf8 of _0xf0da3e){const {group:_0x5c0e1c,type:_0x16ed11}=this['_splitMarkerName'](_0x2eeaf8['name']);if('suggestion'===_0x5c0e1c){_0x12f050['announce'](this['_getMarkerAnnouncementText'](_0x16ed11,'ENTER',_0x409b4d(_0x1eee70)));break;}}});}['_processAttributeChanges'](_0x457719){if(this['_recordAttributeSuggestions'])return!0x1;const _0xf5d1dd=this['editor'],_0x43e36f=_0xf5d1dd['model']['document']['differ']['getChanges']();if(0x0==_0x43e36f['length'])return!0x1;const _0x4af5ad=[],_0xa60c4f=_0x43e36f['filter'](_0x5a0f9d=>'attribute'==_0x5a0f9d['type']),_0x29f975=_0x43e36f['filter'](_0x3932ac=>'insert'==_0x3932ac['type']&&'$text'!=_0x3932ac['name']),_0x5afcb1=_0x43e36f['filter'](_0x44406c=>'remove'==_0x44406c['type']&&'$text'!=_0x44406c['name']);for(const _0x573b24 of _0xa60c4f)_0x4af5ad['push']({'key':_0x573b24['attributeKey'],'newValue':_0x573b24['attributeNewValue'],'oldValue':_0x573b24['attributeOldValue'],'range':qt(_0x573b24['range'],_0xf5d1dd['model'])});for(const _0x509292 of _0x29f975){const _0xc17308=_0x5afcb1['find'](_0x41628a=>_0x41628a['position']['isEqual'](_0x509292['position']));_0xc17308&&_0x4af5ad['push']({'key':u,'newValue':_0x509292['name'],'oldValue':_0xc17308['name'],'range':_0xf5d1dd['model']['createRangeOn'](_0x509292['position']['nodeAfter'])});}return 0x0!=_0x4af5ad['length']&&this['_reduceExistingSuggestions'](_0x457719,_0x4af5ad);}['_processAttributeSuggestions'](_0x55949c){let _0x530022=!0x1;const _0x5579e6=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x30e76c=>_0x30e76c['data']['newRange']&&_0x30e76c['name']['startsWith']('suggestion:attribute:'));for(const _0x30c764 of _0x5579e6){const {subType:_0x32ffd3,id:_0x2da211}=this['_splitMarkerName'](_0x30c764['name']),_0x5ac5ab=_0x32ffd3['split']('|')[0x0];for(const _0x420762 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x420762['id']!=_0x2da211&&'attribute'==_0x420762['type']&&_0x420762['data']&&_0x420762['data']['key']==_0x5ac5ab&&_0x420762['getFirstRange']()['isIntersecting'](_0x30c764['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x420762,_0x30c764['data']['newRange'],_0x55949c),_0x530022=!0x0);}return _0x530022;}['_recordAttributeChanges'](_0x31c5d4){this['_recordAttributeSuggestions']=!0x0,_0x31c5d4();}['_isRegisteredAttribute'](_0x9068be){const _0x297ca1=this['_isBlockAttribute'](_0x9068be),_0x21b751=this['_inlineAttributeKeys']['has'](_0x9068be);return _0x297ca1||_0x21b751;}['_reduceExistingSuggestions'](_0x482295,_0x142823){if(0x0==_0x142823['length'])return!0x1;let _0x23cbdb=!0x1;for(const _0x32c417 of _0x142823){const _0x2f7a6f=this['_findSuggestions'](_0x32c417['range'],'attribute')['filter'](_0x490909=>!_0x490909['meta']['isNextTo'])['map'](_0x197a5c=>_0x197a5c['suggestion']),_0x562158=_0x46b12e({'newValue':_0x32c417['newValue']});_0x2f7a6f['filter'](_0x1d57f8=>{const [_0x151091,_0x9ea7d0]=_0x1d57f8['subType']['split']('|');return _0x151091==_0x32c417['key']&&_0x9ea7d0!=_0x562158;})['forEach'](_0x150ece=>{this['_reduceSuggestionAttributeRange'](_0x150ece,_0x32c417['range'],_0x482295),_0x23cbdb=!0x0;});}return _0x23cbdb;}['_reduceSuggestionAttributeRange'](_0x209063,_0x3ec626,_0x1b8121){const _0x252e62=_0x209063['getFirstRange']()['getDifference'](_0x3ec626);0x0!==_0x252e62['length']?0x1!==_0x252e62['length']?this['_breakSuggestionMarker'](_0x209063,_0x3ec626['start'],_0x3ec626['end']):this['_setSuggestionRange'](_0x209063,_0x252e62[0x0]):_0x1b8121['removeMarker'](_0x209063['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x5cfa22){this['_editor']=_0x5cfa22,this['_model']=_0x5cfa22['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x3ca767,_0x11170e,_0x3718e4,_0x288791,_0x1d0214,_0x21a15c){return new o(this['_model'],{'type':_0x3ca767,'subType':_0x11170e,'id':_0x3718e4,'author':_0x288791,'creator':_0x288791,'attributes':_0x1d0214,'onAttributesChange':_0x21a15c,'onAccept':(..._0x4af4ee)=>this['getSuggestionCallback'](_0x3ca767,_0x11170e,'accept')(..._0x4af4ee),'onDiscard':(..._0x2e7e2f)=>this['getSuggestionCallback'](_0x3ca767,_0x11170e,'discard')(..._0x2e7e2f)});}['registerCustomCallback'](_0x20e3b3,_0x53f23d,_0x44db84,_0x43f272){const _0x125908=_0x20e3b3+':'+_0x53f23d+':'+_0x44db84;this['_customCallbacks']['set'](_0x125908,_0x43f272);}['getSuggestionCallback'](_0x545a2d,_0x5a8ae2,_0x2f21e8){const _0x11be7b=_0x545a2d+':'+_0x5a8ae2+':'+_0x2f21e8;return this['_customCallbacks']['get'](_0x11be7b)||this['_defaultCallbacks']['get'](_0x545a2d+':'+_0x2f21e8);}['_registerDefaultCallbacks'](){const _0x203584=()=>!0x1,_0x27c709=_0x7ade85=>{_0x7ade85['sort']((_0x2c1318,_0x132578)=>_0x2c1318['start']['isBefore'](_0x132578['start'])?0x1:-0x1),this['_model']['change'](_0x47306f=>{for(const _0x543fea of _0x7ade85){let _0x5e6e77;_0x5e6e77=_0x543fea['end']['isAtEnd']&&_0x543fea['end']['parent']==_0x543fea['start']['nodeAfter']?_0x47306f['createSelection'](_0x543fea['start']['nodeAfter'],'on'):_0x47306f['createSelection'](_0x543fea),this['_model']['deleteContent'](_0x5e6e77,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x31ef8c=(_0x30ec6b,_0x454c3c)=>{_0x454c3c&&this['_model']['change'](_0x1c2e67=>{const {commandName:_0x25e675,commandParams:_0x5c46ed=[]}=_0x454c3c,_0x39001d=_0x30ec6b['map'](_0x57ac1c=>(Lt(_0x57ac1c)&&(_0x57ac1c=this['_model']['createRange'](_0x57ac1c['end'])),_0x57ac1c))['filter'](_0x1de23c=>'$graveyard'!==_0x1de23c['root']['rootName']);if(_0x39001d['length']<0x1)return;const _0x6d19b8=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x4e570e=>_0x2de0d6['fromRange'](_0x4e570e));_0x1c2e67['setSelection'](_0x39001d);for(const _0x3752d of this['_editor']['commands']['commands']())_0x3752d['refresh']();_0x5c46ed['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x25e675,..._0x5c46ed);const _0x5a3f17=_0x6d19b8['filter'](_0x105acd=>'$graveyard'!=_0x105acd['root']['rootName']);_0x5a3f17['length']>0x0&&_0x1c2e67['setSelection'](_0x5a3f17);for(const _0x41aa41 of _0x6d19b8)_0x41aa41['detach']();});},_0x2e6543=(_0x2fe181,_0x2519e1)=>0x1==_0x2fe181['length']&&0x1==_0x2519e1['length']&&_0x2fe181[0x0]['end']['isEqual'](_0x2519e1[0x0]['start']),_0x39c3da=(_0x483823,_0x36fabe,_0x38e263,_0x34d1f3)=>Wt(_0x483823,_0x36fabe,_0x38e263,_0x34d1f3)?[_0x483823,_0x36fabe]:Wt(_0x36fabe,_0x483823,_0x34d1f3,_0x38e263)?[_0x36fabe,_0x483823]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x203584),this['_defaultCallbacks']['set']('insertion:discard',_0x27c709),this['_defaultCallbacks']['set']('insertion:join',_0x2e6543),this['_defaultCallbacks']['set']('insertion:chain',_0x39c3da),this['_defaultCallbacks']['set']('deletion:accept',_0x27c709),this['_defaultCallbacks']['set']('deletion:discard',_0x203584),this['_defaultCallbacks']['set']('deletion:join',_0x2e6543),this['_defaultCallbacks']['set']('deletion:chain',_0x39c3da),this['_defaultCallbacks']['set']('formatInline:accept',_0x31ef8c),this['_defaultCallbacks']['set']('formatInline:discard',_0x203584),this['_defaultCallbacks']['set']('formatInline:join',_0x2e6543),this['_defaultCallbacks']['set']('formatInline:chain',_0x203584),this['_defaultCallbacks']['set']('formatBlock:accept',_0x31ef8c),this['_defaultCallbacks']['set']('formatBlock:discard',_0x203584),this['_defaultCallbacks']['set']('formatBlock:join',_0x2e6543),this['_defaultCallbacks']['set']('formatBlock:chain',_0x203584),this['_defaultCallbacks']['set']('attribute:accept',_0x203584),this['_defaultCallbacks']['set']('attribute:discard',(_0x1f5882,_0x515bb1)=>{if(!_0x515bb1)return;const _0xa04d11=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x3721d4=>{if(_0x515bb1['key']==u)for(const _0x3e8ba9 of _0x1f5882){const _0x1e666d=_0x3e8ba9['start']['nodeAfter'],_0x229f9d=_0x515bb1['oldValue'];_0x3721d4['rename'](_0x1e666d,_0x229f9d);}else{if(_0xa04d11['_isBlockAttribute'](_0x515bb1['key'])){for(const _0x5a0347 of _0x1f5882)void 0x0!==_0x515bb1['oldValue']?_0x3721d4['setAttribute'](_0x515bb1['key'],_0x515bb1['oldValue'],_0x5a0347['start']['nodeAfter']):_0x3721d4['removeAttribute'](_0x515bb1['key'],_0x5a0347['start']['nodeAfter']);}else{for(const _0xf47026 of _0x1f5882)_0x515bb1['oldValue']?_0x3721d4['setAttribute'](_0x515bb1['key'],_0x515bb1['oldValue'],_0xf47026):_0x3721d4['removeAttribute'](_0x515bb1['key'],_0xf47026);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x2e6543);}}function Gt(_0x36c42,_0x110044,_0xedbd3c){for(const _0x182b6a of _0x110044['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x182b6a['root']==_0x182b6a)return!0x1;if(!_0xedbd3c['containsItem'](_0x182b6a))return!0x1;if(_0x36c42['isObject'](_0x182b6a)||_0x36c42['isLimit'](_0x182b6a))return!0x0;}return!0x1;}function Lt(_0x5d2707){return _0x5d2707['end']['parent']==_0x5d2707['start']['nodeAfter']&&_0x5d2707['end']['isAtStart'];}function Jt(_0x25ad3b,_0x3dd5ed,_0x3ab15b,_0x30bf1d){const _0x268626=_0x1821cd=>!_0x1821cd['item']['is']('$textProxy')&&!_0x30bf1d['isObject'](_0x1821cd['item']),_0x3c3de8=_0x25ad3b['start']['getLastMatchingPosition'](_0x268626),_0x372bfa=_0x25ad3b['end']['getLastMatchingPosition'](_0x268626,{'direction':'backward'});return(!_0x25ad3b['start']['isEqual'](_0x3c3de8)||!_0x25ad3b['end']['isEqual'](_0x372bfa))&&(_0x3c3de8['isBefore'](_0x372bfa)?_0x3ab15b['updateMarker'](_0x3dd5ed,{'range':_0x3ab15b['createRange'](_0x3c3de8,_0x372bfa)}):_0x3ab15b['removeMarker'](_0x3dd5ed),!0x0);}function Kt(_0x1a00cb){return _0x46b12e(_0x1a00cb);}function Ht(_0x217992){const _0x4d08c4=_0x217992['start']['nodeAfter'];return _0x4d08c4&&_0x4d08c4['is']('element');}function qt(_0x42133f,_0x4cb404){return null==_0x42133f['end']['nodeBefore']&&_0x42133f['end']['parent']==_0x42133f['start']['nodeAfter']?zt(_0x42133f['start']['nodeAfter'],_0x4cb404):_0x42133f;}function zt(_0x19ff15,_0x30807b){const _0x11451e=_0x30807b['schema']['isObject'](_0x19ff15)||_0x30807b['schema']['isSelectable'](_0x19ff15);return _0x30807b['createRange'](_0x30807b['createPositionAt'](_0x19ff15,'before'),_0x11451e?_0x30807b['createPositionAfter'](_0x19ff15):_0x30807b['createPositionAt'](_0x19ff15,'end'));}function Wt(_0x54678d,_0x7bc636,_0x4a23b5,_0x5a7345){return!!Qt(_0x54678d,_0x7bc636)&&_0x4a23b5['end']['isEqual'](_0x5a7345['start']);}function Qt(_0x223677,_0x3e5c80){if(!_0x223677['_isDataLoaded']||!_0x3e5c80['_isDataLoaded'])return!0x1;const _0x5e9fc1=new Set(Object['keys'](_0x223677['attributes'])),_0x4ab845=new Set(Object['keys'](_0x3e5c80['attributes']));if(_0x5e9fc1['delete']('groupId'),_0x4ab845['delete']('groupId'),0x0==_0x5e9fc1['size']&&0x0==_0x4ab845['size'])return!0x0;if(_0x5e9fc1['size']!=_0x4ab845['size'])return!0x1;const _0x248154={..._0x223677['attributes']},_0x5413cd={..._0x3e5c80['attributes']};return delete _0x248154['groupId'],delete _0x5413cd['groupId'],JSON['stringify'](_0x248154)==JSON['stringify'](_0x5413cd);}function Xt(_0x4f04bf,_0x32f790){const _0x755649=Yt(_0x4f04bf['attributes']),_0x1945f9=Yt(_0x32f790);if(!_0x4f04bf['_isDataLoaded'])return!0x1;for(const _0x5b2c71 of Object['keys'](_0x1945f9))if(!_0x35ec39(_0x755649[_0x5b2c71],_0x1945f9[_0x5b2c71]))return!0x1;return!0x0;}function Yt(_0x2926b9){const _0x16758c=Object['assign']({},_0x2926b9);return delete _0x16758c['skipNestingCheck'],delete _0x16758c['tablePasteChainId'],_0x16758c;}class pe extends/* #__PURE__ -- @preserve */
25
- _0x2d11cf(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x53c3ef,_0x8119db,_0x2ee534,_0x4e335e){super(),this['model']=_0x8119db,this['view']=_0x2ee534,this['commentThreadController']=_0x4e335e,this['_editor']=_0x53c3ef,this['_acceptCommand']=_0x53c3ef['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x53c3ef['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x38bdfb,_0x4c1a31)=>_0x38bdfb||_0x4c1a31),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x4798d1=>_0x4798d1&&this['_editor']['model']['canEditAt'](_0x8119db['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x2f903a=>_0x2f903a&&this['_editor']['model']['canEditAt'](_0x8119db['getRanges']())),this['_pendingAction']=null,_0x2ee534['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x2ee534,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x2ee534,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x2ee534,'change:isDirty',()=>{_0x2ee534['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 _0x17498a=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x17498a);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x3399c7{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x463567,_0x47d2a7,_0x1379d8,_0x18b17b){super(_0x463567),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x4b2f20(_0x463567,c(_0x463567,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x47d2a7['authoredAt']),this['bind']('authoredAt')['to'](_0x47d2a7),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',_0x47d2a7,'authoredAt',this,'descriptionParts',(_0x216405,_0x319bca,_0x633e22)=>{const _0x1eed30=_0x633e22['map'](_0x2c42a3=>ls(_0x2c42a3['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x216405-0x1,_0x47d2a7['author']['name'],_0x319bca?_0x18b17b['formatDateTime'](_0x319bca):'',new DOMParser()['parseFromString'](_0x1eed30,'text/html')['body']['textContent']]);}),this['focusables']=new _0x4bfd5d(),this['focusTracker']=new _0x2929e3(),this['keystrokes']=new _0x25983f(),this['focusCycler']=new _0x1f0301({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x512a2d=>_0x512a2d['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x47d2a7,this['_localUser']=_0x1379d8,this['_config']=_0x18b17b,_0x18b17b['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x413ee0(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x25d998}=this['_config'];this['commentsListView']=new _0x25d998(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',_0x22b001=>_0x22b001+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x1473cf,_0x35edea)=>_0x1473cf||!!_0x35edea);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x28ec43}=this['_config'],_0x347c24=new _0x28ec43(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x37e89a=_0x347c24['commentInputView'];return _0x347c24['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x37e89a,'value',(_0x5e0982,_0x39f5d1,_0x5f2710)=>!!_0x5f2710||_0x5e0982&&!_0x39f5d1),_0x37e89a['on']('submit',(_0x499970,_0x37b5b9)=>{this['fire']('addComment',_0x37b5b9),_0x37e89a['editor']['setData']('');}),_0x37e89a['on']('cancel',()=>this['focus']()),_0x37e89a['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x347c24;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0xcde070,_0x407f5a,_0x133040,_0x29600e){super(_0xcde070,_0x407f5a,_0x133040,_0x29600e),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x2f4f99=>_0x2f4f99&&_0x2f4f99[0x0]?_0x2f4f99[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x108e0c,_0x2f2b31)=>{let _0x3ee951='';for(const _0x444984 of _0x108e0c)_0x3ee951+='<p>'+ls(_0x444984['content'],_0x444984['color'])+'</p>';return _0x2f2b31?_0x3ee951:ti(_0x3ee951,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x29600e['SuggestionView'](_0xcde070,_0x407f5a,{'formatDateTime':_0x29600e['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 _0x1d71c0=this['bindTemplate'],_0x4d58d8=[this['suggestionView']];return this['commentsListView']&&_0x4d58d8['push'](this['commentsListView']),this['commentThreadInputView']&&_0x4d58d8['push'](this['commentThreadInputView']),_0x4d58d8['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x1d71c0['if']('isActive','ck-suggestion-wrapper--active'),_0x1d71c0['to']('type',_0x33a484=>'ck-suggestion-'+_0x33a484),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':_0x1d71c0['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x4d58d8};}['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 _0x3399c7{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x4e45a8,_0x3c8a88,_0x45647d){super(_0x4e45a8),this['_model']=_0x3c8a88,this['_config']=_0x45647d,this['set']('description',''),this['bind']('authoredAt')['to'](_0x3c8a88),this['acceptButton']=this['_createButton'](c(_0x4e45a8,'Accept\x20suggestion'),_0x5f3596,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x4e45a8,'Discard\x20suggestion'),_0x94c7b6,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x1524eb(_0x4e45a8,_0x3c8a88['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x4bfd5d([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x2929e3(),this['keystrokes']=new _0x25983f(),this['focusCycler']=new _0x1f0301({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x2f900c=>_0x2f900c['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x15bdcc=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x15bdcc['innerHTML']=this['description'],this['on']('change:description',(_0x4287c1,_0x478138,_0x226230)=>{_0x15bdcc['innerHTML']=_0x226230;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x4136f8=this['bindTemplate'],_0x3087fb=[{'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':_0x4136f8['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x4136f8['to']('authoredAt',_0x15accd=>this['_config']['formatDateTime'](_0x15accd))}]}]},{'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']&&_0x3087fb['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':_0x3087fb}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x31c6a0,_0x3c3165,_0x1bcb3b,_0x46b5f4,_0x428426){const _0x12d745=new _0x36ea76(this['locale']);return _0x12d745['set']({'label':_0x31c6a0,'icon':_0x3c3165,'tooltip':!0x0,'tooltipPosition':_0x428426}),_0x12d745['extendTemplate']({'attributes':{'class':_0x1bcb3b}}),_0x12d745['on']('execute',()=>{this['fire'](_0x46b5f4,this['_model']['id']);}),_0x12d745;}['_setupKeyboardNavigation'](){const _0x10a1c3=this['element'];this['keystrokes']['listenTo'](_0x10a1c3);for(const _0x13ba24 of this['focusables'])this['focusTracker']['add'](_0x13ba24['element']),this['keystrokes']['listenTo'](_0x13ba24['element']);this['keystrokes']['set']('enter',(_0x5c1d6e,_0xeae2c0)=>{_0x10a1c3===_0x5c1d6e['target']&&(this['focusCycler']['focusFirst'](),_0xeae2c0());}),this['keystrokes']['set']('esc',(_0x5e48d9,_0x419906)=>{_0x10a1c3!==_0x5e48d9['target']&&(this['focus'](),_0x419906());});}}class d extends _0x23c200{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x2d1043,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x950bc){super(_0x950bc),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x545f51=this['editor']['config'];_0x545f51['define']('trackChanges.SuggestionThreadView',fe),_0x545f51['define']('trackChanges.SuggestionView',we),_0x545f51['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x545f51['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x55bf19,_0x34a051){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x14a06b,_0xeaa3c5]of this['_handleControllerBuffer']){const _0x5e7db7=this['_suggestionToController']['has'](_0x14a06b);_0x5e7db7||_0xeaa3c5?_0x5e7db7&&_0xeaa3c5&&this['_destroyController'](_0x14a06b):this['_initializeController'](_0x14a06b);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x55bf19,_0x34a051);}['init'](){const _0x13c927=this['editor'],_0x182bb8=_0x13c927['plugins']['get']('TrackChangesEditing'),_0x2d1375=_0x13c927['plugins']['get']('Annotations'),_0x4e39ba=_0x13c927['plugins']['get']('EditorAnnotations'),_0x58c8e7=_0x13c927['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x4e39ba['addSourceCollector'](()=>{const _0x1b6464=[];for(const [_0x4b2a69,_0x54a98a]of Array['from'](this['_suggestionToController'])){const _0x45aed5=_0x4b2a69['getAllAdjacentSuggestions'](),_0x2ed6ac=[];for(const _0x3bf229 of _0x45aed5){if(!_0x3bf229['isInContent'])continue;if(_0x3bf229['isMultiRange']){_0x2ed6ac['push'](..._0x3bf229['getRanges']());continue;}const _0xb20aea=_0x3bf229['getFirstRange']();if(_0x2ed6ac['length']>0x0){const _0x227007=_0x2ed6ac[0x0]['getJoined'](_0xb20aea);if(_0x227007){_0x2ed6ac[0x0]=_0x227007;continue;}}_0x2ed6ac['push'](_0xb20aea);}_0x1b6464['push']([_0x54a98a['view'],_0x2ed6ac]);}return _0x1b6464;}),this['listenTo'](_0x182bb8,'suggestionLoaded',(_0x456778,_0x2a8c77)=>{this['listenTo'](_0x2a8c77,'change:previous',(_0x2cb724,_0x64cf30,_0x25cbe4,_0x2d0992)=>{_0x2a8c77['isInContent']&&(null==_0x25cbe4?(this['_updateController'](_0x2d0992['head']),this['_handleSuggestionControllerDelayed'](_0x2a8c77,!0x1)):(this['_updateController'](_0x25cbe4['head']),null==_0x2d0992&&this['_handleSuggestionControllerDelayed'](_0x2a8c77,!0x0)));}),null!==_0x2a8c77['previous']?this['_updateController'](_0x2a8c77['head']):this['_handleSuggestionControllerDelayed'](_0x2a8c77,!0x1);}),this['listenTo'](_0x182bb8,'suggestionUnloaded',(_0x4ddefe,_0x3ca74c,_0x593421)=>{this['stopListening'](_0x3ca74c,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3ca74c),this['_suggestionToController']['has'](_0x3ca74c)&&this['_destroyController'](_0x3ca74c),_0x593421&&this['_updateController'](_0x593421['head']);}),this['listenTo'](_0x182bb8,'suggestionChanged',(_0x18cd7a,_0x2b79b4)=>{this['_updateController'](_0x2b79b4);}),this['listenTo'](_0x2d1375,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x58c8e7,'addComment',(_0x30ce46,{threadId:_0x2135a0,isFromAdapter:_0x4e0ddf})=>{if(_0x4e0ddf||!_0x182bb8['hasSuggestion'](_0x2135a0))return;const _0x2f2e59=_0x182bb8['getSuggestion'](_0x2135a0);this['_suggestionToController']['get'](_0x2f2e59)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2cac3f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2dc4a4;for(const _0x2b8968 in _0x2cac3f){const _0x24b5d2=_0x2b8968,_0xccd756=_0x2cac3f[_0x24b5d2];if('trackChangesLicenseKeyValid'==_0xccd756||'trackChangesLicenseKeyInvalid'==_0xccd756||'trackChangesLicenseKeyExpired'==_0xccd756||'trackChangesLicenseKeyDomainLimit'==_0xccd756||'trackChangesLicenseKeyNotAllowed'==_0xccd756||'trackChangesLicenseKeyEvaluationLimit'==_0xccd756||'trackChangesLicenseKeyTrialLimit'==_0xccd756||'trackChangesLicenseKeyUsageLimit'==_0xccd756){delete _0x2cac3f[_0x24b5d2],_0x2dc4a4=_0xccd756,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x2dc4a4&&_0x2cac3f['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x2dc4a4&&_0x2cac3f['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x2dc4a4&&_0x2cac3f['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x2dc4a4&&_0x2cac3f['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x2dc4a4&&_0x2cac3f['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x2dc4a4&&_0x2cac3f['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x2dc4a4&&_0x2cac3f['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x326dff=this['editor']['plugins']['get']('Annotations'),_0x52797f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5e208b=Array['from'](_0x326dff['activeAnnotations'],_0xd74ea0=>_0xd74ea0['innerView'])['filter'](_0x3221c7=>this['_viewToController']['has'](_0x3221c7)),_0x3926ce=[];for(const _0x5e8a4e of _0x5e208b){const _0x5566d8=this['_viewToController']['get'](_0x5e8a4e)['model']['getAllAdjacentSuggestions']();_0x3926ce['push'](..._0x5566d8['reduce']((_0x5d4606,_0x3116e3)=>[..._0x5d4606,..._0x3116e3['getMarkerNames']()],[]));}_0x52797f['activeMarkers']=_0x3926ce;}['_addUIComponentsToFactory'](){const _0x47d331=this['editor'],_0x362a1d=_0x47d331['locale'],_0x38d022=c(_0x362a1d,'Track\x20changes'),_0x43338e=new _0x48a8d2([{'type':'switchbutton','model':new _0x3b56a2({'withText':!0x0,'isToggleable':!0x0,'label':_0x38d022,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x3b56a2({'withText':!0x0,'label':c(_0x362a1d,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3b56a2({'withText':!0x0,'label':c(_0x362a1d,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3b56a2({'withText':!0x0,'label':c(_0x362a1d,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3b56a2({'withText':!0x0,'label':c(_0x362a1d,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x47d331['plugins']['has']('TrackChangesPreview')&&_0x43338e['addMany']([{'type':'separator'},{'type':'button','model':new _0x3b56a2({'withText':!0x0,'label':c(_0x362a1d,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x1ccf3d of _0x43338e)if(ke(_0x1ccf3d)){const _0x360689=_0x47d331['commands']['get'](_0x1ccf3d['model']['commandName']);_0x1ccf3d['model']['bind']('isOn','isEnabled')['to'](_0x360689,'value','isEnabled');}_0x47d331['ui']['componentFactory']['add']('trackChanges',_0x4610f2=>this['_createToolbarButton'](_0x4610f2,_0x43338e,_0x38d022)),_0x47d331['ui']['componentFactory']['add']('menuBar:trackChanges',_0x561cd0=>this['_createMenuBarMenu'](_0x561cd0,_0x43338e,_0x38d022));}['_createToolbarButton'](_0x44370b,_0x54f4a0,_0x429df2){const _0x1b3ad5=_0x49ac1c(_0x44370b,_0x354460),_0x18a040=this['editor']['commands']['get']('trackChanges');_0x1b3ad5['buttonView']['set']({'tooltip':_0x429df2,'label':_0x429df2,'icon':_0x58988a}),_0x1b3ad5['buttonView']['bind']('isOn')['to'](_0x18a040,'value'),_0x1b3ad5['buttonView']['on']('execute',()=>{_0x18a040['execute'](),this['editor']['editing']['view']['focus']();}),_0x457cdc(_0x1b3ad5,_0x54f4a0,{'role':'menu'});const _0x3beeaf=[];for(const _0x20f6e2 of _0x54f4a0)ke(_0x20f6e2)&&_0x3beeaf['push'](this['editor']['commands']['get'](_0x20f6e2['model']['commandName']));const _0x51ff7a=_0x1b3ad5['buttonView'];return _0x51ff7a['actionView']['unbind']('isEnabled'),_0x51ff7a['arrowView']['unbind']('isEnabled'),_0x51ff7a['actionView']['bind']('isEnabled')['to'](_0x18a040,'isEnabled'),_0x51ff7a['arrowView']['bind']('isEnabled')['toMany'](_0x3beeaf,'isEnabled',(..._0x3c9db3)=>_0x3c9db3['some'](_0x274d70=>_0x274d70)),_0x1b3ad5['on']('execute',_0x27693a=>{this['editor']['execute'](_0x27693a['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x1b3ad5;}['_createMenuBarMenu'](_0x1b13ea,_0x2ef080,_0x3560b0){const _0x16825b=new _0x1518f2(_0x1b13ea),_0x1767b3=this['editor']['commands']['get']('trackChanges');_0x16825b['buttonView']['set']({'label':_0x3560b0,'icon':_0x58988a});const _0x450d2e=new _0x43e795(_0x1b13ea);for(const _0x465302 of _0x2ef080){if('separator'==_0x465302['type']){_0x450d2e['items']['add'](new _0x4b3274(_0x1b13ea));continue;}const _0x5247be=new _0x5de00b(_0x1b13ea,_0x16825b),_0x2ae632=new _0x4654ec(_0x1b13ea),_0x107397=_0x465302['model'];_0x2ae632['bind'](...Object['keys'](_0x107397))['to'](_0x107397),_0x2ae632['delegate']('execute')['to'](_0x16825b),_0x2ae632['on']('execute',()=>{this['editor']['execute'](_0x107397['commandName']),this['editor']['editing']['view']['focus']();}),_0x5247be['children']['add'](_0x2ae632),_0x450d2e['items']['add'](_0x5247be);}return _0x16825b['bind']('isEnabled')['to'](_0x1767b3,'isEnabled'),_0x16825b['panelView']['children']['add'](_0x450d2e),_0x16825b;}['_initializeController'](_0x1be3e9){const _0x3e5f01=this['editor'],_0x83a6a9=_0x3e5f01['config'],_0x919746=_0x3e5f01['plugins']['get']('Annotations'),_0x387ee1=_0x3e5f01['plugins']['get']('CommentsRepository'),_0x3ebde6=_0x3e5f01['plugins']['get']('EditorAnnotations'),_0x4257f7=_0x3e5f01['plugins']['get'](_0x2d1043)['me'],_0x1bea19=_0x83a6a9['get']('trackChanges')['SuggestionThreadView'],_0x2a19e1=_0x83a6a9['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x4cf00d,CommentThreadInputView:_0x11a2c9}=_0x3e5f01['plugins']['get']('CommentsUI');let _0x270efe,_0x37b322,_0x5f0dda;this['_annotationViews']['has'](_0x1be3e9['id'])?(_0x37b322=this['_annotationViews']['get'](_0x1be3e9['id']),_0x270efe=_0x37b322['mainView']):(_0x270efe=new _0x1bea19(_0x3e5f01['locale'],_0x1be3e9,_0x4257f7,{'disableComments':this['_disableComments'],'editorConfig':{..._0x83a6a9['get']('comments.editorConfig'),'licenseKey':_0x83a6a9['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x83a6a9['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x83a6a9['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x83a6a9['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x58b884(_0x83a6a9['get']('locale'),_0x3e5f01['locale']),'CommentView':_0x83a6a9['get']('comments')['CommentView'],'CommentsListView':_0x4cf00d,'CommentThreadInputView':_0x11a2c9,'SuggestionView':_0x2a19e1}),_0x270efe['suggestionView']['acceptButton']['on']('execute',()=>{_0x3e5f01['editing']['view']['focus']();}),_0x270efe['suggestionView']['discardButton']['on']('execute',()=>{_0x3e5f01['editing']['view']['focus']();}),_0x37b322=_0x919746['createAnnotationView'](this['editor']['locale'],_0x270efe),_0x37b322['bind']('isDirty')['to'](_0x270efe,'isDirty'),_0x37b322['bind']('length')['to'](_0x270efe),_0x37b322['bind']('type')['to'](_0x270efe,'type',_0x343a0e=>'suggestion-'+_0x343a0e),_0x270efe['on']('escape',()=>{_0x5f0dda['fire']('escape');}),this['_annotationViews']['set'](_0x1be3e9['id'],_0x37b322));const _0x576a90=_0x387ee1['createCommentThreadController'](_0x1be3e9['commentThread'],_0x270efe),_0x245ce7=new pe(_0x3e5f01,_0x1be3e9,_0x270efe,_0x576a90),_0x2f4735=_0x1be3e9['getAllAdjacentSuggestions']()['filter'](_0x24af9f=>_0x24af9f['isInContent']);_0x270efe['descriptionParts']=_0x3e5f01['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x2f4735),this['_suggestionToController']['set'](_0x1be3e9,_0x245ce7),this['_viewToController']['set'](_0x270efe,_0x245ce7),_0x5f0dda=_0x919746['createAnnotation']({'view':_0x37b322,'target':()=>{const _0x5c02aa=[],_0xd9216c=_0x1be3e9['getAllAdjacentSuggestions']()['filter'](_0x235256=>_0x235256['isInContent']);for(const _0x451ead of _0xd9216c)_0x5c02aa['push'](..._0x451ead['getMarkers']());return _0x529b2c(_0x3e5f01['editing'],_0x5c02aa);},'type':()=>'suggestion-'+_0x245ce7['view']['type']}),_0x387ee1['_bindAnnotationToEditors'](_0x270efe,_0x5f0dda),_0x919746['add'](_0x5f0dda),_0x3ebde6['registerAnnotation'](_0x5f0dda);}['_destroyController'](_0x5aaa56){const _0x4d3f5b=this['editor']['plugins']['get']('CommentsRepository'),_0x182e81=this['editor']['plugins']['get']('Annotations'),_0x542f75=this['_suggestionToController']['get'](_0x5aaa56),_0x4444ca=_0x542f75['view'],_0x46f9b5=_0x182e81['getByInnerView'](_0x4444ca);_0x4d3f5b['_unbindEditors'](_0x4444ca),_0x46f9b5&&_0x182e81['remove'](_0x46f9b5),this['_suggestionToController']['delete'](_0x5aaa56),this['_viewToController']['delete'](_0x4444ca),_0x542f75['destroy']();}['_updateController'](_0x411351){if(!_0x411351['isInContent']||!this['_suggestionToController']['has'](_0x411351))return;const _0x4d92c5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1f476a=this['_suggestionToController']['get'](_0x411351),_0x1955ac=_0x411351['getAllAdjacentSuggestions']();_0x1f476a['view']['descriptionParts']=_0x4d92c5['descriptionFactory']['getDescriptions'](_0x1955ac);}['destroy'](){for(const _0x5ed7a6 of this['_suggestionToController']['keys']())this['_destroyController'](_0x5ed7a6);for(const _0x15e412 of this['_annotationViews']['values']())_0x15e412['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x4ec3cd){return'model'in _0x4ec3cd;}class k extends _0x23c200{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x3bac5b){this['editor']['plugins']['get'](p)['adapter']=_0x3bac5b;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x48a8e1){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x48a8e1);}['getSuggestions']({skipNotAttached:_0x574906=!0x1,toJSON:_0x5d9aa4=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x574906,'toJSON':_0x5d9aa4});}['getSuggestion'](_0x4a94a2){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x4a94a2);}}const w=['Pagination'];class T extends _0x23c200{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x12c587=this['editor'];if(_0x12c587['config']['define']('trackChangesData.editorCreator',_0x1fce40=>{const _0x27e927=_0x12c587['model']['document']['getRootNames']()['reduce']((_0x32c303,_0x4ba31d)=>(_0x32c303[_0x4ba31d]='',_0x32c303),{});return _0x12c587['constructor']['create'](_0x27e927,_0x1fce40);}),'function'!=typeof _0x12c587['config']['get']('trackChangesData')['editorCreator'])throw new _0x135682('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x410fc0){return N(this['editor'],!0x0,_0x410fc0);}['getDataWithDiscardedSuggestions'](_0x4f5bb6){return N(this['editor'],!0x1,_0x4f5bb6);}}class D extends _0x23c200{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x22ac95){function _0xe6c5e8(_0x3ec9b6){return _0x3ec9b6['map'](_0x28d458=>String['fromCharCode'](_0x28d458))['join']('');}super(_0x22ac95),this['result']='end',_0x22ac95[_0xe6c5e8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xe6c5e8([0x76,0x69,0x65,0x77])][_0xe6c5e8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xe6c5e8([0x61,0x75,0x74,0x6f]),_0x22ac95[_0xe6c5e8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0xe6c5e8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xe6c5e8([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0xe6c5e8([0x73,0x74,0x61,0x74,0x75,0x73])]:_0xe6c5e8([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 Ge(_0x597fc1){return void 0x0!==_0x597fc1['getRootsAttributes'];}async function N(_0x2c0288,_0x28a7f3,_0x34fe01){const _0x40919f=_0x1567b8(_0x2c0288,w);_0x40919f['plugins']['push'](p,D),_0x40919f['rootsAttributes']=Ge(_0x2c0288)?_0x2c0288['getRootsAttributes']():void 0x0;const _0x5b3cb1=document['createDocumentFragment'](),_0x20ec10=_0x2c0288['config']['get']('trackChangesData')['editorCreator'],_0x11b641=await _0x20ec10(_0x40919f,()=>function(_0x57f5fd){const _0x1b9742=document['createElement']('div');return _0x57f5fd['appendChild'](_0x1b9742),_0x1b9742;}(_0x5b3cb1));!function(_0x16ab1c,_0x1458e4){const _0x3109a5=_0x16ab1c['model']['document']['getRootNames']()['reduce']((_0x17eda2,_0xef1d84)=>(_0x17eda2[_0xef1d84]=_0x16ab1c['data']['get']({'rootName':_0xef1d84}),_0x17eda2),{}),_0x2d1cd5=_0x16ab1c['plugins']['get']('Users')['users']['map'](_0xb5f282=>({'id':_0xb5f282['id'],'name':_0xb5f282['name']})),_0x261e7b=_0x16ab1c['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x524655=_0x16ab1c['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5a9116=_0x1458e4['plugins']['get']('Users'),_0x28423d=_0x1458e4['plugins']['get']('TrackChangesEditing'),_0x7e064c=_0x1458e4['plugins']['get']('CommentsRepository');for(const _0x29b358 of _0x7e064c['getCommentThreads']())_0x29b358['remove']();for(const _0x39f2d0 of _0x2d1cd5)_0x5a9116['getUser'](_0x39f2d0['id'])||_0x5a9116['addUser'](_0x39f2d0);_0x5a9116['me']||_0x5a9116['useAnonymousUser']();for(const _0x1e888e of _0x524655)_0x7e064c['addCommentThread'](_0x1e888e);for(const _0x3702b3 of _0x261e7b)_0x28423d['addSuggestionData'](_0x3702b3);_0x1458e4['data']['set'](_0x3109a5);}(_0x2c0288,_0x11b641),_0x11b641['execute'](_0x28a7f3?'acceptAllSuggestions':'discardAllSuggestions');const _0x19a3f7=Ge(_0x11b641)?_0x11b641['getFullData'](_0x34fe01):_0x11b641['data']['get'](_0x34fe01);return await _0x11b641['destroy'](),_0x19a3f7;}class Me extends _0x3399c7{['options'];constructor(_0x261fe4,_0x3f9662){super(_0x261fe4),this['options']=_0x3f9662,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'](_0x2e8436,_0x3b7d9e){if(!this['element'])return;const _0x10a644=[];for(const [_0x5866ca,_0x471ba1]of _0x2e8436){const _0x343b31=document['createElement']('div');_0x343b31['setAttribute']('data-ck-root-name',_0x5866ca),_0x343b31['className']=_0x471ba1['classes']+'\x20ck-track-changes-preview__root-container',_0x343b31['innerHTML']=_0x471ba1['content'],_0x10a644['push'](_0x343b31);}_0x3b7d9e(this['element'],_0x10a644),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x498d20{constructor(_0x28ca8f){super(_0x28ca8f),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x5c97f8=this['editor'],_0x5b0697=_0x5c97f8['locale'],_0x6cb5b4=_0x5c97f8['plugins']['get']('Dialog');let _0x473eef;const _0x459335=function(_0x2a9da3){const _0x4d7a43={};if('editables'in _0x2a9da3['ui']['view']){for(const [_0x3e724a,_0x151710]of Object['entries'](_0x2a9da3['ui']['view']['editables']))_0x4d7a43[_0x3e724a]=_0x151710['element'];}else _0x4d7a43[_0x2a9da3['model']['document']['getRootNames']()[0x0]]=_0x2a9da3['ui']['view']['editable']['element'];return _0x4d7a43;}(_0x5c97f8),_0x1a25ad=function(_0x1805f3){let _0x1b2499=0x0;for(const _0x4b3106 of Object['values'](_0x1805f3))_0x1b2499=Math['max'](_0x1b2499,_0x4b3106['getBoundingClientRect']()['width']);let _0x71f597=0x0;for(const _0x42ac9d of Object['values'](_0x1805f3))_0x71f597+=_0x42ac9d['getBoundingClientRect']()['height'];const _0x301b06=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x3da189=Math['min'](_0x71f597,_0x301b06);return{'width':_0x1b2499,'height':_0x3da189};}(_0x459335);_0x6cb5b4['show']({'id':'finalContentPreview','title':c(_0x5b0697,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x5b0697,{'dialogRects':_0x1a25ad}),'onHide':()=>{_0x473eef['detachFromDom']();},'onShow':()=>{_0x5c97f8['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x40b99e=>{const _0x38d206=this['_standarizeRootsData'](_0x40b99e,_0x5c97f8,_0x459335);_0x6cb5b4['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x38d206,_0x5c97f8['config']['get']('trackChanges.preview.renderFunction'));}),_0x473eef=new _0x274fda(_0x5b0697,[_0x6cb5b4['view']]),_0x473eef['attachToDom'](),_0x473eef['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x5c97f8['once']('destroy',()=>{_0x473eef['detachFromDom']();});const _0x12ccd1=_0x6cb5b4['view']['headerView']['class'];_0x6cb5b4['view']['headerView']['class']=_0x12ccd1?_0x12ccd1+'\x20ck-reset_all':'ck-reset_all',_0x6cb5b4['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x6cb5b4['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x1370fa=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x52afb0=_0x1370fa['previewMode'],_0x21ec0f={};if('$labels'===_0x52afb0){for(const _0x4fd7c0 of _0x1370fa['getMergeFieldsIds']())_0x21ec0f[_0x4fd7c0]=_0x1370fa['getLabel'](_0x4fd7c0)||_0x4fd7c0;}else{const _0x558317='$defaultValues'===_0x52afb0?_0x1370fa['getDefaultValues']():_0x1370fa['getDataSetValues'](_0x52afb0,!0x0);for(const _0x1dfe20 of Object['entries'](_0x558317)){const [_0x4dd5b0,_0x48f112]=_0x1dfe20;_0x21ec0f[_0x4dd5b0]=null!==_0x48f112?_0x48f112:_0x1370fa['getLabel'](_0x4dd5b0)||_0x4dd5b0;}}return{'mergeFieldsData':_0x21ec0f};}['_standarizeRootsData'](_0x23be7c,_0x62df0f,_0x130c49){let _0x2a98f7;if('string'==typeof _0x23be7c){const _0x48eb0f=_0x62df0f['model']['document']['getRootNames']()[0x0];_0x2a98f7={[_0x48eb0f]:_0x23be7c};}else _0x2a98f7=_0x23be7c;const _0xeb042a=this['_fixMediaEmbeds'](_0x2a98f7,_0x62df0f),_0x4d92af=function(_0x255fd3,_0x52b65e){for(const [_0x4676dc,_0x34c43b]of _0x255fd3)_0x34c43b['classes']=_0x52b65e[_0x4676dc]['classList']['value']['replace']('ck-focused','');return _0x255fd3;}(this['_sortRoots'](_0x62df0f)['reduce']((_0x4dea4c,_0x2eaaf6)=>(_0x4dea4c['push']([_0x2eaaf6,{'content':_0xeb042a[_0x2eaaf6],'classes':''}]),_0x4dea4c),[]),_0x130c49);return _0x4d92af;}['_fixMediaEmbeds'](_0x50648b,_0x4f8c32){if(!_0x4f8c32['plugins']['has']('MediaEmbedEditing'))return _0x50648b;const _0x47d73c=_0x4f8c32['plugins']['get']('MediaEmbedEditing');for(const [_0x585715,_0x526035]of Object['entries'](_0x50648b)){const _0x4135c9=document['createElement']('div');_0x4135c9['innerHTML']=_0x526035,(_0x4135c9['querySelectorAll']('figure.media')['forEach'](_0x384dcf=>{const _0x5608d5=_0x384dcf['querySelector']('oembed');if(_0x5608d5){const _0x15b148=_0x5608d5['getAttribute']('url');if(_0x15b148){const _0xe5bcd2=_0x47d73c['registry']['getMediaViewElement'](new _0x173656(_0x4f8c32['editing']['view']['document']),_0x15b148,{'elementName':'','renderForEditingView':!0x0}),_0x8bb211=document['createElement']('div');_0x8bb211['classList']['add']('ck-media__wrapper'),_0xe5bcd2['render'](_0x8bb211,_0x4f8c32['editing']['view']['domConverter']),_0x5608d5['replaceWith'](_0x8bb211);}}}),_0x50648b[_0x585715]=_0x4135c9['innerHTML']);}return _0x50648b;}['_sortRoots'](_0x173bfd){if(!function(_0x58fc19){return void 0x0!==_0x58fc19['getRootsAttributes'];}(_0x173bfd))return _0x173bfd['model']['document']['getRootNames']();const _0x11b927=[],_0x2f6004=new Map();for(const _0x4f86b7 of _0x173bfd['model']['document']['getRootNames']()){const _0x58d728=_0x173bfd['editing']['view']['getDomRoot'](_0x4f86b7)['getClientRects']()['item'](0x0);_0x11b927['push'](_0x4f86b7),_0x2f6004['set'](_0x4f86b7,_0x58d728);}return _0x11b927['sort']((_0x5e6fca,_0x5e19f6)=>{const _0x215d03=_0x2f6004['get'](_0x5e6fca),_0x1d0b45=_0x2f6004['get'](_0x5e19f6);return _0x215d03['y']-_0x1d0b45['y']||_0x215d03['x']-_0x1d0b45['x'];}),_0x11b927;}}class te extends _0x23c200{static get['requires'](){return[T,_0x97573];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1394c3){super(_0x1394c3),_0x1394c3['commands']['add']('previewFinalContent',new re(this['editor'])),_0x1394c3['config']['define']('trackChanges.preview.renderFunction',(_0x47dfda,_0x3bf13d)=>{for(const _0xf0925f of _0x3bf13d)_0x47dfda['appendChild'](_0xf0925f);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
23
+ import{Command as _0x631e31,Plugin as _0x5682b5,PendingActions as _0x18bbf8}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x5e8aa1,ObservableMixin as _0x5ac5bf,uid as _0x49332a,priorities as _0x2de02f,insertToPriorityArray as _0x297391,logWarning as _0x3c939c,getEnvKeystrokeText as _0x1e72b8,FocusTracker as _0xc81acb,KeystrokeHandler as _0x397f8b,Collection as _0x529266}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x4c7b73,IconCancel as _0x2a4c3f,IconTrackChanges as _0x5e4411}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x2a5518,View as _0x24738e,ViewCollection as _0x3b0eca,FocusCycler as _0x4a3c57,ViewModel as _0x2af654,createDropdown as _0x4eefe7,SplitButtonView as _0x2ec16a,addListToDropdown as _0x44f811,MenuBarMenuView as _0x10c09e,MenuBarMenuListView as _0x40a007,ListSeparatorView as _0x26af5f,MenuBarMenuListItemView as _0xb5bc81,MenuBarMenuListItemButtonView as _0xdc3e60,BodyCollection as _0x4b862a,Dialog as _0x5d426e}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x1c49f1,hashObject as _0x178afd,surroundingMarkersDetector as _0x54fe47,FOCUS_ANNOTATION_KEYSTROKE as _0x2e8e57,AriaDescriptionView as _0x3487aa,setupThreadKeyboardNavigation as _0x177f7d,trimHtml as ti,UserView as _0x30bbce,LateFocusButtonView as _0x11640c,getDateTimeFormatter as _0x2109ba,getAllMarkersDomElementsSorted as _0x20520b,sanitizeEditorConfig as _0x2ff564}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x259c7c,LiveRange as _0x28bdcd,LivePosition as _0x281dbc,DowncastWriter as _0xa1d97}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x1a800b,toWidget as _0x32c6c4}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x7ae127,set as _0x238810,isEqual as _0x337fb7,unset as _0x1c9667,omit as Ft}from'es-toolkit/compat';import{Delete as _0x5bd98b,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x54fe2a}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x5b2e35}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x631e31{['_enabledCommands'];constructor(_0x49cb19,_0x406018){super(_0x49cb19),this['_enabledCommands']=_0x406018,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 _0x444c62 of this['editor']['commands']['commands']())_0x444c62['affectsData']&&!this['_enabledCommands']['has'](_0x444c62)&&_0x444c62['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x199023 of this['editor']['commands']['commands']())_0x199023['affectsData']&&!this['_enabledCommands']['has'](_0x199023)&&_0x199023['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x631e31{['_suggestions'];constructor(_0x32497d,_0xb04297){super(_0x32497d),this['_suggestions']=_0xb04297,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x20de38){const _0x3f07df=this['_suggestions']['get'](_0x20de38);if(!_0x3f07df)throw new _0x5e8aa1('track-changes-accept-suggestion-not-found',this);const _0x12704b=_0x3f07df['getRanges']();this['editor']['model']['canEditAt'](_0x12704b)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x3f07df);}}class R extends _0x631e31{['_suggestions'];constructor(_0x366c96,_0x5a0313){super(_0x366c96),this['_suggestions']=_0x5a0313,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5535ef){const _0x15ffdc=this['_suggestions']['get'](_0x5535ef);if(!_0x15ffdc)throw new _0x5e8aa1('track-changes-discard-suggestion-not-found',this);const _0x3ea451=_0x15ffdc['getRanges']();this['editor']['model']['canEditAt'](_0x3ea451)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x15ffdc);}}function ls(_0x14af59,_0x1c32cf){let _0x2edf5c='';return _0x2edf5c+=_0x14af59['split']('*')['map']((_0x1a2fc5,_0x53b940)=>_0x53b940%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x1a2fc5)+'</span>':nn(_0x1a2fc5))['join'](''),_0x1c32cf&&(_0x2edf5c+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x1c32cf['value']+'\x22\x20title=\x22'+_0x1c32cf['title']+'\x22></span>'),_0x2edf5c;}function nn(_0x37976b){const _0x4cccd2=document['createElement']('span');return _0x4cccd2['innerText']=_0x37976b,_0x4cccd2['innerHTML'];}function ts(_0x412fe4){return _0x412fe4['sort']((_0x1341a2,_0x30f6ed)=>'deletion'==_0x1341a2['type']&&'deletion'!=_0x30f6ed['type']?-0x1:'deletion'!=_0x1341a2['type']&&'deletion'==_0x30f6ed['type']?0x1:0x0);}function to(_0x3245c8,_0x5bd8b8){let _0x4d9a5f,_0x2b016e=0x0;const _0x523082=[],_0x404629=_0x5bd8b8['schema'];for(;_0x2b016e<_0x3245c8['length'];){const _0x385fdb=_0x3245c8[_0x2b016e],_0x21da2e=_0x3245c8[_0x2b016e+0x1];_0x4d9a5f||(_0x4d9a5f=_0x5bd8b8['createPositionBefore'](_0x385fdb)),on(_0x5bd8b8,_0x385fdb,_0x21da2e)||(_0x523082['push'](_0x5bd8b8['createRange'](_0x4d9a5f,_0x404629['isObject'](_0x385fdb)?_0x5bd8b8['createPositionAfter'](_0x385fdb):_0x5bd8b8['createPositionAt'](_0x385fdb,'end'))),_0x4d9a5f=null),_0x2b016e++;}return _0x523082;}function on(_0x38da4f,_0x5d8712,_0x2dccc5){if(!_0x2dccc5)return!0x1;const _0x363298=_0x38da4f['createPositionAfter'](_0x5d8712),_0x37ff51=_0x38da4f['createPositionBefore'](_0x2dccc5);return _0x363298['isTouching'](_0x37ff51);}function rs(_0xc3e2e2,_0x42af21,_0x470930){for(;_0x470930['length'];){const _0x81d7c4=_0x470930['splice'](0x0,0x64);_0xc3e2e2['change'](()=>{for(const _0x595e23 of _0x81d7c4)_0x595e23['isInContent']&&_0x42af21['execute'](_0x595e23['id']);});}}class x extends _0x631e31{['_command'];['_suggestions'];constructor(_0x28b63c,_0x5c0a95,_0x27d5ea){super(_0x28b63c),this['_command']=_0x5c0a95,this['_suggestions']=_0x27d5ea,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x16b385=Array['from'](this['_suggestions']['values']())['some'](_0x2af592=>_0x2af592['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x16b385;}['execute'](){const _0x1aede2=ts(Array['from'](this['_suggestions']['values']()));for(const _0xd462d8 of _0x1aede2){const _0x55b131=_0xd462d8['getRanges']();if(!this['editor']['model']['canEditAt'](_0x55b131))return;}rs(this['editor']['model'],this['_command'],_0x1aede2);}}class E extends _0x631e31{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x41fd69,_0x109889,_0x4d2dbd){super(_0x41fd69),this['_command']=_0x109889,this['_suggestions']=_0x4d2dbd,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x52dff3=this['editor']['model']['document']['selection'],_0x1844cd=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x18b2c8,_0x246a0c){const _0x1e8d32=Array['from'](_0x18b2c8['getRanges']()),_0x1e22db=new Set();for(const _0x1435fe of _0x246a0c)if(_0x1435fe['isInContent']){for(const _0x5e8fdc of _0x1e8d32)for(const _0x30c001 of _0x1435fe['getRanges']())(_0x5e8fdc['isIntersecting'](_0x30c001)||_0x18b2c8['isCollapsed']&&!_0x1435fe['isMultiRange']&&_0x1435fe['next']&&_0x30c001['end']['isTouching'](_0x5e8fdc['start']))&&_0x1e22db['add'](_0x1435fe);}return _0x1e22db;}(_0x52dff3,_0x1844cd),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0xeab1e9=ts(Array['from'](this['_selectedSuggestions']));for(const _0x213c00 of _0xeab1e9){const _0x17b62e=_0x213c00['getRanges']();if(!this['editor']['model']['canEditAt'](_0x17b62e))return;}rs(this['editor']['model'],this['_command'],_0xeab1e9);}}class o extends/* #__PURE__ -- @preserve */
24
+ _0x5ac5bf(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x1fa36d,_0x14a59f){super(),this['id']=_0x14a59f['id'],this['type']=_0x14a59f['type'],this['subType']=_0x14a59f['subType']||null,this['author']=_0x14a59f['author'],this['creator']=_0x14a59f['creator']||_0x14a59f['author'],this['isExternal']=Boolean(_0x14a59f['attributes']&&_0x14a59f['attributes']['@external']),this['data']=null,this['_model']=_0x1fa36d,this['_onAccept']=_0x14a59f['onAccept'],this['_onDiscard']=_0x14a59f['onDiscard'],this['_onAttributesChange']=_0x14a59f['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x14a59f['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 _0x4dd2c1=this;for(;_0x4dd2c1['previous'];)_0x4dd2c1=_0x4dd2c1['previous'];return _0x4dd2c1;}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'](_0x282ab8){this['_markerNames']['add'](_0x282ab8);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x563e99=>this['_model']['markers']['get'](_0x563e99))['filter'](_0x1d8d86=>_0x1d8d86);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x4803e5=>{for(const _0x330afd of this['getMarkers']())_0x4803e5['removeMarker'](_0x330afd);}),this['_markerNames']['clear']();}['removeMarker'](_0x2a6569){this['_model']['change'](_0x1e7754=>{_0x1e7754['removeMarker'](_0x2a6569);}),this['_markerNames']['delete'](_0x2a6569);}['addRange'](_0x4e3608){const _0x4463fe='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x4463fe),this['_model']['change'](_0x537df8=>{_0x537df8['addMarker'](_0x4463fe,{'range':_0x4e3608,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0xcc931){for(const _0x41491b of this['getRanges']())if(_0x41491b['isIntersecting'](_0xcc931))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0xfaf39b=>_0xfaf39b['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x332f1e,_0x4fb211)=>[..._0x332f1e,..._0x4fb211['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x23e850=this['getRanges']();if(0x1!=_0x23e850['length'])return null;const _0x18cf82=_0x23e850[0x0],_0x1c1a37=_0x18cf82['start']['nodeAfter'],_0x253b46=_0x18cf82['end']['nodeBefore'];return _0x1c1a37 instanceof _0x259c7c?_0x1c1a37!=_0x253b46?null:_0x1c1a37: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 _0x506291=[];let _0x38f0cd=this['head'];for(;_0x38f0cd;)_0x506291['push'](_0x38f0cd),_0x38f0cd=_0x38f0cd['next'];return _0x506291;}['setAttribute'](_0x12a3fc,_0x152055){const _0x3e906f=_0x7ae127(this['attributes']);_0x238810(_0x3e906f,_0x12a3fc,_0x152055),_0x337fb7(_0x3e906f,this['attributes'])||(this['attributes']=_0x3e906f,this['_onAttributesChange'](_0x3e906f));}['removeAttribute'](_0x190307){const _0x3adced=_0x7ae127(this['attributes']);_0x1c9667(_0x3adced,_0x190307),_0x337fb7(_0x3adced,this['attributes'])||(this['attributes']=_0x3adced,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 _0x49332a()['substr'](0x1,0x5);}}function c(_0x5454d8,_0x4bef87,_0x2f26e3){const _0x1fc017=_0x5454d8['t'],t=_0x5454d8['t'];switch(_0x4bef87){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',_0x2f26e3);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x2f26e3);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x2f26e3);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x2f26e3);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x2f26e3);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',_0x2f26e3);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x2f26e3);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',_0x2f26e3);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x2f26e3);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x2f26e3);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x2f26e3);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x2f26e3);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x2f26e3);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x2f26e3);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x2f26e3);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x2f26e3);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x2f26e3);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x2f26e3);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x2f26e3);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x2f26e3);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x2f26e3);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x2f26e3);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x2f26e3);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x2f26e3);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x2f26e3);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'},_0x2f26e3);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x2f26e3);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x2f26e3);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x2f26e3);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x2f26e3);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x2f26e3);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x2f26e3);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x2f26e3);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'},_0x2f26e3);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x2f26e3);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x2f26e3);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x2f26e3);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x2f26e3);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'},_0x2f26e3);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x2f26e3);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'},_0x2f26e3);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x2f26e3);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x2f26e3);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'},_0x2f26e3);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x2f26e3);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'},_0x2f26e3);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x2f26e3);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x2f26e3);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'},_0x2f26e3);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x2f26e3);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 _0x1fc017({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x2f26e3);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x1fc017({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x2f26e3);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x2f26e3);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'},_0x2f26e3);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'},_0x2f26e3);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'},_0x2f26e3);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x4bef87;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0xcb3478,_0x347f63){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0xcb3478,this['_locale']=_0x347f63;}['getDescriptions'](_0x119e17){const _0x416411=[],_0x20fdb8=new Set(),_0x11fc50=new Set();for(let _0x1d894a=0x0;_0x1d894a<_0x119e17['length'];_0x1d894a++){const _0x2760f0=_0x119e17[_0x1d894a];if(!_0x2760f0['isInContent'])continue;const _0x2b5d08=this['_handleCustomCallbackDescription'](_0x2760f0);if(_0x2b5d08){if(null!=_0x2760f0['subType']){if(_0x20fdb8['has'](_0x2760f0['subType']))continue;_0x20fdb8['add'](_0x2760f0['subType']);}_0x416411['push'](_0x2b5d08);}else{if('attribute'!=_0x2760f0['type'])'insertion'!=_0x2760f0['type']&&'deletion'!=_0x2760f0['type']||this['_handleInsertRemoveSuggestionDescription'](_0x416411,_0x2760f0,_0x119e17[_0x1d894a+0x1]);else{const _0x4f7f01=_0x2760f0['data']['key'];if(_0x11fc50['has'](_0x4f7f01))continue;_0x11fc50['add'](_0x2760f0['data']['key']),_0x4f7f01==u?this['_handleRenameSuggestionDescription'](_0x416411,_0x2760f0):this['_handleAttributeSuggestionDescription'](_0x416411,_0x2760f0);}}}return this['_resolveDescriptionItems'](_0x416411);}['registerDescriptionCallback'](_0x44354b){this['_customCallbacks']['push'](_0x44354b);}['registerElementLabel'](_0x178f4f,_0x28358f,_0xf716c2=_0x2de02f['normal']){'function'==typeof _0x178f4f?_0x297391(this['_itemLabelsCallbacks'],{'matchingCallback':_0x178f4f,'label':_0x28358f,'priority':_0xf716c2}):this['_itemLabels']['set'](_0x178f4f,_0x28358f);}['registerAttributeLabel'](_0x4c554f,_0x4ba1b1){this['_attributeLabels']['set'](_0x4c554f,_0x4ba1b1);}['getItemLabel'](_0xdb1631,_0x10788d=0x1){let _0x58fd12;for(const _0x1fcde7 of this['_itemLabelsCallbacks'])if(_0x1fcde7['matchingCallback'](_0xdb1631)){_0x58fd12=_0x1fcde7['label'];break;}return _0x58fd12||(_0x58fd12=this['_itemLabels']['get'](_0xdb1631['name'])),_0x58fd12?_0x58fd12(_0x10788d):0x1!==_0x10788d?_0x10788d+'\x20'+_0xdb1631['name']+'s':''+_0xdb1631['name'];}['_addDescriptionItems'](_0x1907cf,_0x18118a){const _0x36baa3=_0x18118a['getFirstRange']()['getWalker'](),_0x4ec442='insertion'==_0x18118a['type']?'add':'remove';for(const _0x5148b5 of _0x36baa3){const _0x59384f=_0x5148b5['item'],_0x16c3ab=_0x1907cf[_0x1907cf['length']-0x1];if(_0x59384f['is']('$textProxy'))_0x16c3ab&&_0x16c3ab['type']['indexOf']('Container')>-0x1&&_0x1907cf['pop'](),_0x16c3ab&&'text'==_0x16c3ab['type']?_0x16c3ab[_0x4ec442]+=_0x59384f['data']:_0x1907cf['push']({'type':'text','add':'add'==_0x4ec442?_0x59384f['data']:'','remove':'remove'==_0x4ec442?_0x59384f['data']:''});else{if(this['_schema']['isObject'](_0x59384f)){const _0x3a35cc=_0x59384f;if(_0x16c3ab&&_0x16c3ab['type']['indexOf']('Container')>-0x1&&_0x1907cf['pop'](),'elementEnd'==_0x5148b5['type'])continue;_0x16c3ab&&_0x16c3ab['type']==_0x4ec442+'Object'&&_0x16c3ab['element']['name']==_0x3a35cc['name']?_0x16c3ab['quantity']++:_0x1907cf['push']({'type':_0x4ec442+'Object','element':_0x3a35cc,'quantity':0x1}),_0x36baa3['skip'](_0x4c4e84=>!('elementEnd'==_0x4c4e84['type']&&_0x4c4e84['item']==_0x59384f));}else{if(this['_schema']['checkChild'](_0x59384f,'$text')||_0x59384f['is']('element','softBreak')){const _0x1eff80=_0x59384f;if('add'==_0x4ec442&&'elementStart'==_0x5148b5['type']||'remove'==_0x4ec442&&'elementEnd'==_0x5148b5['type'])continue;if(_0x16c3ab&&-0x1==_0x16c3ab['type']['indexOf']('Container')){'text'==_0x16c3ab['type']&&(_0x16c3ab[_0x4ec442]+='\x0a');continue;}let _0x1c03d6;if(_0x1c03d6='add'==_0x4ec442?_0x1eff80['nextSibling']&&!this['_schema']['isObject'](_0x1eff80['nextSibling'])?_0x1eff80['nextSibling']:null:_0x1eff80['previousSibling']&&!this['_schema']['isObject'](_0x1eff80['previousSibling'])?_0x1eff80['previousSibling']:null,_0x1eff80['isEmpty']||_0x1c03d6&&_0x1c03d6['isEmpty']){const _0x846c5f=_0x1c03d6&&_0x1c03d6['isEmpty']?_0x1c03d6:_0x1eff80;_0x16c3ab&&_0x16c3ab['type']==_0x4ec442+'EmptyContainer'&&_0x16c3ab['element']['name']==_0x846c5f['name']?_0x16c3ab['quantity']++:_0x1907cf['push']({'type':_0x4ec442+'EmptyContainer','element':_0x846c5f,'quantity':0x1});}else _0x1907cf['push']({'type':_0x4ec442+'Container','element':_0x1eff80});}}}}}['_resolveDescriptionItems'](_0xad4456){const _0x227f96=this['_locale'],_0x436a1e=[],_0x3e95e2=[],_0x59349a=[];for(const _0x4ff8f3 of _0xad4456)switch(_0x4ff8f3['type']){case'text':if(_0x4ff8f3['add']=_0x4ff8f3['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4ff8f3['remove']=_0x4ff8f3['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4ff8f3['add']&&''!=_0x4ff8f3['remove']){_0x436a1e['push']({'type':'replace','content':c(_0x227f96,'REPLACE_TEXT',['\x22'+_0x4ff8f3['remove']+'\x22','\x22'+_0x4ff8f3['add']+'\x22'])});continue;}if(null!=_0x4ff8f3['add']['match'](/^ +$/)){_0x436a1e['push']({'type':'insertion','content':c(_0x227f96,'*Insert:*\x20%0',c(_0x227f96,'ELEMENT_SPACE',_0x4ff8f3['add']['length']))});continue;}if(null!=_0x4ff8f3['remove']['match'](/^ +$/)){_0x436a1e['push']({'type':'deletion','content':c(_0x227f96,'*Remove:*\x20%0',c(_0x227f96,'ELEMENT_SPACE',_0x4ff8f3['remove']['length']))});continue;}if(''!=_0x4ff8f3['add']){_0x436a1e['push']({'type':'insertion','content':c(_0x227f96,'*Insert:*\x20%0','\x22'+_0x4ff8f3['add']+'\x22')});continue;}_0x436a1e['push']({'type':'deletion','content':c(_0x227f96,'*Remove:*\x20%0','\x22'+_0x4ff8f3['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x436a1e['push']({'type':'insertion','content':c(_0x227f96,'*Insert:*\x20%0',this['getItemLabel'](_0x4ff8f3['element'],_0x4ff8f3['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x436a1e['push']({'type':'deletion','content':c(_0x227f96,'*Remove:*\x20%0',this['getItemLabel'](_0x4ff8f3['element'],_0x4ff8f3['quantity']))});continue;case'addContainer':_0x436a1e['push']({'type':'insertion','content':c(_0x227f96,'*Split:*\x20%0',this['getItemLabel'](_0x4ff8f3['element'],_0x4ff8f3['quantity']))});continue;case'removeContainer':_0x436a1e['push']({'type':'deletion','content':c(_0x227f96,'*Merge:*\x20%0',this['getItemLabel'](_0x4ff8f3['element'],_0x4ff8f3['quantity']))});continue;case'addFormat':_0x3e95e2['push'](_0x4ff8f3['key']);continue;case'removeFormat':_0x59349a['push'](_0x4ff8f3['key']);continue;default:_0x436a1e['push'](_0x4ff8f3);}if(_0x3e95e2['length']){const _0x1e7ed5=_0x3e95e2['map'](_0x3217da=>this['_attributeLabels']['has'](_0x3217da)?this['_attributeLabels']['get'](_0x3217da):_0x3217da)['join'](',\x20');_0x436a1e['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x1e7ed5)});}if(_0x59349a['length']){const _0x590d67=_0x59349a['map'](_0x31be35=>this['_attributeLabels']['has'](_0x31be35)?this['_attributeLabels']['get'](_0x31be35):_0x31be35)['join'](',\x20');_0x436a1e['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x590d67)});}return _0x436a1e;}['_handleCustomCallbackDescription'](_0x15edbe){for(const _0x1a1a4b of this['_customCallbacks']){const _0x4bf6f7=_0x1a1a4b(_0x15edbe);if(_0x4bf6f7&&'type'in _0x4bf6f7)return _0x4bf6f7;}}['_handleAttributeSuggestionDescription'](_0x488388,_0x45fcc3){const _0x546953=_0x45fcc3['data'],_0x1b5f1a=void 0x0===_0x546953['newValue']?'removeFormat':'addFormat';_0x488388['push']({'type':_0x1b5f1a,'key':_0x546953['key']});}['_handleRenameSuggestionDescription'](_0x351594,_0x54bbde){_0x351594['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x54bbde['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x4178bc,_0x552d9c,_0x27ceae){if(this['_addDescriptionItems'](_0x4178bc,_0x552d9c),_0x27ceae&&_0x27ceae['getFirstRange']()&&!_0x552d9c['getFirstRange']()['end']['isEqual'](_0x27ceae['getFirstRange']()['start'])){const _0x349a66=_0x4178bc[_0x4178bc['length']-0x1],_0x45d369='insertion'==_0x552d9c['type']?'add':'remove';_0x349a66&&'text'==_0x349a66['type']&&(_0x349a66[_0x45d369]+='\x0a');}}}class U extends _0x5682b5{['afterInit'](){const _0x24566c=this['editor'],_0x2f9cd6=_0x24566c['plugins']['get']('TrackChangesEditing');_0x24566c['commands']['get']('showAIAssistant')&&_0x2f9cd6['enableCommand']('showAIAssistant');}}class V extends _0x5682b5{['afterInit'](){const _0x2b064d=this['editor'],_0x3a5322=_0x2b064d['locale'];if(!_0x2b064d['plugins']['has']('AlignmentEditing'))return;const _0x51d36d=_0x2b064d['plugins']['get']('TrackChangesEditing');_0x51d36d['enableDefaultAttributesIntegration']('alignment'),_0x51d36d['registerBlockAttribute']('alignment'),_0x51d36d['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x3a5322,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x88800f=this['editor'],_0xc0ba2=_0x88800f['locale'];_0x88800f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x20eac0=>{if('formatBlock'!=_0x20eac0['type'])return;const {data:_0x241f5a}=_0x20eac0;if(_0x241f5a&&'alignment'==_0x241f5a['commandName']){const _0x3dfbc3=_0x241f5a['commandParams'][0x0]['value'];return{'type':'format','content':c(_0xc0ba2,'*Format:*\x20%0',function(_0x48600f){switch(_0x48600f){case'left':return c(_0xc0ba2,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0xc0ba2,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0xc0ba2,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0xc0ba2,'FORMAT_JUSTIFY_TEXT');}}(_0x3dfbc3))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x5682b5{['afterInit'](){const _0x411497=this['editor'],_0x825a20=_0x411497['plugins']['get']('TrackChangesEditing'),_0x5840ce=_0x411497['locale'];for(const _0x31b979 of Zt){if(!_0x411497['plugins']['has'](_0x31b979))continue;const _0x9a6628=_0x31b979['slice'](0x0,-0x7)['toLowerCase'](),_0x2571c3='FORMAT_'+_0x9a6628['toUpperCase']();_0x825a20['enableDefaultAttributesIntegration'](_0x9a6628),_0x825a20['registerInlineAttribute'](_0x9a6628),_0x825a20['descriptionFactory']['registerAttributeLabel'](_0x9a6628,c(_0x5840ce,_0x2571c3));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x475a66=this['editor'],_0x478b9b=_0x475a66['locale'],_0x152c6a=_0x475a66['plugins']['get']('TrackChangesEditing');function _0x278a13(_0x211f3a,_0x336492){_0x152c6a['descriptionFactory']['registerDescriptionCallback'](_0x3b7384=>{if('formatInline'!=_0x3b7384['type'])return;const {data:_0x52a601}=_0x3b7384;return _0x52a601&&_0x52a601['commandName']===_0x211f3a?_0x52a601['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x478b9b,'*Format:*\x20%0',_0x336492)}:{'type':'format','content':c(_0x478b9b,'*Remove\x20format:*\x20%0',_0x336492)}:void 0x0;});}_0x278a13('bold',c(_0x478b9b,'FORMAT_BOLD')),_0x278a13('italic',c(_0x478b9b,'FORMAT_ITALIC')),_0x278a13('underline',c(_0x478b9b,'FORMAT_UNDERLINE')),_0x278a13('code',c(_0x478b9b,'FORMAT_CODE')),_0x278a13('strikethrough',c(_0x478b9b,'FORMAT_STRIKETHROUGH')),_0x278a13('subscript',c(_0x478b9b,'FORMAT_SUBSCRIPT')),_0x278a13('superscript',c(_0x478b9b,'FORMAT_SUPERSCRIPT'));}}class G extends _0x5682b5{['afterInit'](){const _0xd087b=this['editor'],_0x380c57=_0xd087b['locale'];if(!_0xd087b['plugins']['has']('BlockQuoteEditing'))return;const _0x5d9ada=_0xd087b['plugins']['get']('TrackChangesEditing'),_0x4b1e37=this['editor']['commands']['get']('blockQuote');_0x5d9ada['enableCommand']('blockQuote',(_0x4ce20e,_0x14bbc2={})=>{const _0x3122ac=this['editor']['model']['document']['selection'],_0x4b6d0b=_0x14bbc2&&void 0x0!==_0x14bbc2['forceValue']?_0x14bbc2['forceValue']:!_0x4b1e37['value'];let _0x523f26=[];if(_0x4b6d0b){const _0x4fbc37=Array['from'](_0x3122ac['getSelectedBlocks']())['filter'](_0x155f21=>oo(_0x155f21)||function(_0x17f6d7,_0x122514){const _0x10e616=_0x122514['checkChild'](_0x17f6d7['parent'],'blockQuote'),_0x30fb58=_0x122514['checkChild'](['$root','blockQuote'],_0x17f6d7);return _0x10e616&&_0x30fb58;}(_0x155f21,this['editor']['model']['schema']));_0x523f26=to(_0x4fbc37,_0xd087b['model']);}else{const _0x343ad5=Array['from'](_0x3122ac['getSelectedBlocks']())['filter'](_0x3a036a=>oo(_0x3a036a));_0x523f26=to(_0x343ad5,_0xd087b['model']);}_0xd087b['model']['change'](()=>{for(const _0x79d1e9 of _0x523f26)_0x5d9ada['markBlockFormat'](_0x79d1e9,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x4b6d0b}]});});}),_0x5d9ada['descriptionFactory']['registerDescriptionCallback'](_0x5a6ec1=>{const {data:_0x2e1a5c}=_0x5a6ec1;if(_0x2e1a5c&&'blockQuote'==_0x2e1a5c['commandName']){const _0x2a9898=c(_0x380c57,'ELEMENT_BLOCK_QUOTE');return _0x2e1a5c['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x380c57,'*Set\x20format:*\x20%0',_0x2a9898)}:{'type':'format','content':c(_0x380c57,'*Remove\x20format:*\x20%0',_0x2a9898)};}});}}function oo(_0x35735c){return'blockQuote'==_0x35735c['parent']['name'];}class L extends _0x5682b5{['afterInit'](){const _0x3fd839=this['editor'],_0x2a4600=_0x3fd839['locale'],_0x434db4=_0x3fd839['plugins']['get']('TrackChangesEditing');_0x3fd839['plugins']['has']('BookmarkEditing')&&(_0x434db4['enableCommand']('insertBookmark'),_0x434db4['enableDefaultAttributesIntegration']('updateBookmark'),_0x434db4['registerBlockAttribute']('bookmarkId'),_0x434db4['descriptionFactory']['registerDescriptionCallback'](_0xe6a94f=>{if('insertion'!=_0xe6a94f['type']&&'deletion'!=_0xe6a94f['type']&&'attribute'!=_0xe6a94f['type'])return;const _0x2bd4c9=_0xe6a94f['getContainedElement']();if(null==_0x2bd4c9)return;if(!_0x2bd4c9['is']('element','bookmark'))return;const _0xb60459=_0x2bd4c9['getAttribute']('bookmarkId');if('insertion'==_0xe6a94f['type'])return{'type':'insertion','content':c(_0x2a4600,'*Insert:*\x20%0','\x22'+_0xb60459+'\x22\x20'+c(_0x2a4600,'ELEMENT_BOOKMARK'))};if('deletion'==_0xe6a94f['type'])return{'type':'deletion','content':c(_0x2a4600,'*Remove:*\x20%0','\x22'+_0xb60459+'\x22\x20'+c(_0x2a4600,'ELEMENT_BOOKMARK'))};const {data:_0x1ffb9b}=_0xe6a94f;if(!_0x1ffb9b||'bookmarkId'!=_0x1ffb9b['key'])return;return{'type':'format','content':c(_0x2a4600,'*Set\x20bookmark:*\x20%0','\x22'+_0x1ffb9b['newValue']+'\x22')};}));}}class J extends _0x5682b5{['afterInit'](){const _0x3a8c52=this['editor'];_0x3a8c52['plugins']['has']('CaseChange')&&(_0x3a8c52['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3a8c52['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3a8c52['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x5682b5{['afterInit'](){const _0x6d05dd=this['editor'];_0x6d05dd['commands']['get']('ckbox')&&_0x6d05dd['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x5682b5{['afterInit'](){const _0x344096=this['editor'];if(!_0x344096['plugins']['has']('CodeBlock'))return;const _0x16141b=_0x344096['plugins']['get']('TrackChangesEditing'),_0x2c2a2e=_0x344096['locale'],_0x595afd=_0x344096['config']['get']('codeBlock')['languages'],_0x5447ce=_0x344096['commands']['get']('codeBlock');_0x16141b['enableCommand']('indentCodeBlock'),_0x16141b['enableCommand']('outdentCodeBlock'),_0x16141b['enableCommand']('codeBlock',(_0x3754aa,_0x30d8cd={})=>{const _0x58f7b4=_0x344096['model'],_0x3a5624=_0x344096['model']['document']['selection'],_0x874221=_0x30d8cd&&void 0x0!==_0x30d8cd['forceValue']?_0x30d8cd['forceValue']:!_0x5447ce['value'];let _0x593e5b;_0x30d8cd['language']||(_0x30d8cd['language']=_0x595afd[0x0]['language']),_0x593e5b=_0x874221?Array['from'](_0x3a5624['getSelectedBlocks']())['filter'](_0x22f10c=>eo(_0x22f10c)||function(_0x47a5ce,_0x5d3605){if(_0x47a5ce['is']('rootElement')||_0x5d3605['isLimit'](_0x47a5ce))return!0x1;return _0x5d3605['checkChild'](_0x47a5ce['parent'],'codeBlock');}(_0x22f10c,_0x58f7b4['schema'])):Array['from'](_0x3a5624['getSelectedBlocks']())['filter'](_0x591573=>eo(_0x591573));const _0x54dc74=to(_0x593e5b,_0x58f7b4);_0x58f7b4['change'](()=>{for(const _0x3b9c18 of _0x54dc74)_0x16141b['markBlockFormat'](_0x3b9c18,{'commandName':'codeBlock','commandParams':[{..._0x30d8cd,'forceValue':_0x874221}],'formatGroupId':'blockName'});});}),(_0x16141b['descriptionFactory']['registerElementLabel']('codeBlock',_0x39ca7a=>c(_0x2c2a2e,'ELEMENT_CODE_BLOCK',_0x39ca7a)),_0x16141b['descriptionFactory']['registerDescriptionCallback'](_0x368808=>{if('formatBlock'!=_0x368808['type'])return;const _0x1a0b8c=_0x2c2a2e['t'],{data:_0x5f01c9}=_0x368808;if(!_0x5f01c9||'codeBlock'!=_0x5f01c9['commandName'])return;const _0x2fccb6=_0x5f01c9['commandParams'][0x0]['language'],_0x7a6ce3=_0x1a0b8c(_0x595afd['find'](_0x5bdb93=>_0x5bdb93['language']===_0x2fccb6)['label'])['toLowerCase']();return _0x5f01c9['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x2c2a2e,'*Set\x20format:*\x20%0',c(_0x2c2a2e,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x7a6ce3+')')}:{'type':'format','content':c(_0x2c2a2e,'*Remove\x20format:*\x20%0',c(_0x2c2a2e,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0xbf7340){return'codeBlock'==_0xbf7340['name'];}class q extends _0x5682b5{['afterInit'](){const _0x4b65ea=this['editor'];if(!_0x4b65ea['plugins']['has']('CommentsEditing'))return;_0x4b65ea['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x99643f,_0x387320,_0xdac6e1){const _0x513dfe=[];for(const _0xa4ffd9 of _0x387320['getItems']())_0xa4ffd9['hasAttribute'](_0x99643f)&&_0x513dfe['push'](_0xdac6e1['createRangeOn'](_0xa4ffd9));return _0x513dfe;}function Fe(_0x559e74,_0x24ee64,{showActiveMarker:_0x38062e=!0x0}={}){const _0x21b631=_0x559e74['plugins']['get']('TrackChangesEditing');return(_0x1c0246,_0x55a189,_0x383793)=>{if(!_0x383793['consumable']['test'](_0x55a189['markerRange'],_0x1c0246['name']))return;const _0x1043d1=_0x55a189['markerRange']['getWalker'](),_0x467b61=_0x55a189['markerRange']['start'],_0x2e448e=_0x559e74['model']['schema'];let _0x419149=null,_0x52605d=null,_0x51e5cf=!0x1,_0x29fa13=!0x1;for(const _0x26e465 of _0x1043d1){const _0x481448=_0x26e465['item'];_0x51e5cf=_0x51e5cf||_0x2e448e['isContent'](_0x481448);const _0x41f70e=_0x383793['mapper']['toViewElement'](_0x481448);if(_0x41f70e&&_0x41f70e['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x26e465['type']&&(_0x2e448e['isBlock'](_0x481448)&&!_0x2e448e['isLimit'](_0x481448)&&(_0x481448['nextSibling']||_0x467b61['isAtEnd']?_0x419149&&_0x419149['parent']==_0x481448||(_0x419149=_0x481448,_0x24f61a(_0x26e465['previousPosition']),_0x29fa13=!0x0):_0x52605d=_0x52605d||_0x26e465['previousPosition']));}function _0x24f61a(_0x224c6c){const {authorId:_0x42ad62}=_0x21b631['_splitMarkerName'](_0x55a189['markerName']),_0x3656c3=_0x383793['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x24ee64,'data-author-id':_0x42ad62}),_0xeb3f93=_0x383793['mapper']['toViewPosition'](_0x224c6c);_0x38062e&&_0x21b631['activeMarkers']['includes'](_0x55a189['markerName'])&&_0x383793['writer']['addClass']('ck-suggestion-marker--active',_0x3656c3),_0x383793['writer']['insert'](_0xeb3f93,_0x3656c3),_0x383793['mapper']['bindElementToMarker'](_0x3656c3,_0x55a189['markerName']);}_0x51e5cf||_0x29fa13||!_0x52605d||_0x24f61a(_0x52605d);};}class z extends _0x5682b5{static get['requires'](){return[_0x5bd98b];}['init'](){const _0x7f8f8d=this['editor'],_0x1bba05=_0x7f8f8d['plugins']['get']('TrackChangesEditing');_0x1bba05['enableCommand']('delete');const _0x17df75=_0x7f8f8d['commands']['get']('deleteForward');_0x1bba05['enableCommand']('deleteForward',(_0x569c1b,_0x1e2130={})=>{const _0x3bdd21=_0x7f8f8d['model']['createSelection'](_0x7f8f8d['model']['document']['selection']);_0x3bdd21['isCollapsed']&&_0x7f8f8d['model']['modifySelection'](_0x3bdd21,{'direction':'forward','unit':_0x1e2130['unit']});const _0x43da22=_0x3bdd21['getFirstRange'](),_0x4dd0e5=_0x28bdcd['fromRange'](_0x43da22);let _0xd9a603;_0x569c1b(_0x1e2130),_0xd9a603='$graveyard'==_0x4dd0e5['root']['rootName']?_0x7f8f8d['model']['createRange'](_0x43da22['start']):_0x7f8f8d['model']['createRange'](_0x4dd0e5['start'],_0x4dd0e5['end']),_0x4dd0e5['detach'](),_0x7f8f8d['model']['enqueueChange'](_0x17df75['buffer']['batch'],_0x2fc52b=>{_0x17df75['buffer']['lock'](),_0x2fc52b['setSelection'](_0x2fc52b['createRange'](_0xd9a603['end'])),_0x17df75['buffer']['unlock']();});}),_0x7f8f8d['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x7f8f8d,'merge'),{'priority':'high'}),_0x7f8f8d['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x49235d,_0x633c9e,_0x11b8bc)=>{_0x11b8bc['options']['showSuggestionHighlights']&&Fe(_0x7f8f8d,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x49235d,_0x633c9e,_0x11b8bc);},{'priority':'high'}),_0x7f8f8d['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x2e9110,_0x28f4d5,_0x5741dd)=>{const _0x99c121=_0x5741dd['mapper']['markerNameToElements'](_0x28f4d5['markerName']);if(_0x99c121){for(const _0x341e80 of _0x99c121)_0x341e80['is']('uiElement')&&(_0x5741dd['mapper']['unbindElementFromMarkerName'](_0x341e80,_0x28f4d5['markerName']),_0x5741dd['writer']['remove'](_0x341e80));}},{'priority':'high'});}}class W extends _0x5682b5{['afterInit'](){const _0x3aa9f9=this['editor'];if(!_0x3aa9f9['plugins']['has']('ListEditing'))return;const _0x3073c5=_0x3aa9f9['locale'],_0x249f88=_0x3aa9f9['plugins']['get']('TrackChangesEditing'),_0x26509b=_0x3aa9f9['plugins']['has']('TodoListEditing'),_0x518204=!!_0x3aa9f9['config']['get']('list.multiBlock');function _0x3f0bc3(_0x4337e8){return{'type':'format','content':''+c(_0x3073c5,'*Set\x20format:*\x20%0',_0x4337e8)};}function _0x577a31(_0x437b62){return{'type':'format','content':''+c(_0x3073c5,'*Remove\x20format:*\x20%0',_0x437b62)};}_0x249f88['enableDefaultAttributesIntegration']('numberedList'),_0x249f88['enableDefaultAttributesIntegration']('bulletedList'),_0x249f88['enableDefaultAttributesIntegration']('customNumberedList'),_0x249f88['enableDefaultAttributesIntegration']('customBulletedList'),_0x249f88['enableDefaultAttributesIntegration']('indentList'),_0x249f88['enableDefaultAttributesIntegration']('outdentList'),_0x249f88['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x249f88['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x249f88['registerBlockAttribute']('listItemId'),_0x249f88['registerBlockAttribute']('listType'),_0x249f88['registerBlockAttribute']('listIndent'),_0x518204&&(_0x249f88['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x249f88['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x26509b&&(_0x249f88['enableDefaultAttributesIntegration']('todoList'),_0x249f88['enableDefaultAttributesIntegration']('checkTodoList'),_0x249f88['registerBlockAttribute']('todoListChecked'),_0x249f88['descriptionFactory']['registerDescriptionCallback'](_0xf44c61=>{const {data:_0x90f42b}=_0xf44c61;if(_0x90f42b&&'todoListChecked'==_0x90f42b['key'])return{'type':'format','content':_0x90f42b['newValue']?c(_0x3073c5,'*Check\x20item*'):c(_0x3073c5,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x5b6909=>{if(_0x5b6909['batch']['isUndo'])return!0x1;let _0x2802af=!0x1;const _0x219138=_0x249f88['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x31ea6d=>'todoListChecked'===_0x249f88['_getAttributeKey'](_0x31ea6d));for(const _0x5eeb14 of _0x219138){'todo'!=_0x5eeb14['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x249f88['_findSuggestions'](_0x5eeb14['getFirstRange'](),'attribute')['find'](_0x157110=>'listType'===_0x249f88['_getAttributeKey'](_0x157110['suggestion']))||(_0x5b6909['removeMarker'](_0x5eeb14['getFirstMarker']()),_0x2802af=!0x0));}return _0x2802af;})),_0x249f88['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x3073c5,'FORMAT_INDENT'));const _0x2f7e61={'type':'format','content':''};_0x249f88['descriptionFactory']['registerDescriptionCallback'](_0x576624=>{const {data:_0x3d726c}=_0x576624;if(!_0x3d726c||'listType'!=_0x3d726c['key'])return;let _0x45ba73=_0x576624['head'];for(;_0x45ba73;){if(_0x45ba73['data']&&(('listStyle'==_0x45ba73['data']['key']||'listMarkerStyle'==_0x45ba73['data']['key'])&&(_0x45ba73['data']['newValue']&&'default'!=_0x45ba73['data']['newValue']||'default'!=_0x45ba73['data']['oldValue']&&!_0x3d726c['newValue'])||!_0x518204&&_0x45ba73['data']['key']==u))return _0x2f7e61;_0x45ba73=_0x45ba73['next'];}if(null==_0x3d726c['newValue'])switch(_0x3d726c['oldValue']){case'bulleted':return _0x577a31(c(_0x3073c5,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x577a31(c(_0x3073c5,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x577a31(c(_0x3073c5,'ELEMENT_TODO_LIST'));}switch(_0x3d726c['newValue']){case'bulleted':return _0x3f0bc3(c(_0x3073c5,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3f0bc3(c(_0x3073c5,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3f0bc3(c(_0x3073c5,'ELEMENT_TODO_LIST'));}}),_0x249f88['descriptionFactory']['registerDescriptionCallback'](_0x4e9172=>{const {data:_0x73d9b4}=_0x4e9172;if(_0x73d9b4&&'listIndent'==_0x73d9b4['key'])return null==_0x73d9b4['newValue']||null==_0x73d9b4['oldValue']&&0x0==_0x73d9b4['newValue']?_0x2f7e61:void 0x0;}),_0x249f88['descriptionFactory']['registerDescriptionCallback'](_0x28c807=>{if('attribute'!=_0x28c807['type'])return;const {data:_0x4fa173}=_0x28c807;if(!_0x4fa173||'listItemId'!=_0x4fa173['key'])return;const _0xf9a915=Te(_0x28c807);return'newValue'==_0xf9a915?{'type':'format','content':c(_0x3073c5,'*Merge:*\x20list\x20item')}:'oldValue'==_0xf9a915?{'type':'format','content':c(_0x3073c5,'*Split:*\x20list\x20item')}:_0x2f7e61;}),_0x3aa9f9['model']['document']['registerPostFixer'](_0x55abf3=>this['listItemIdFixer'](_0x55abf3)),_0x3aa9f9['model']['document']['registerPostFixer'](_0x4fb948=>this['noTrackChangesFixer'](_0x4fb948)),_0x3aa9f9['model']['document']['on']('change:data',(_0x583437,_0x162918)=>{if(_0x162918['isUndo']||!_0x162918['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x5f541e){if(_0x5f541e['batch']['isUndo']||!_0x5f541e['batch']['isLocal'])return!0x1;let _0x1669b1=!0x1;const _0x21145d=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x494d41=>_0x494d41['data']&&'listItemId'==_0x494d41['data']['key'])['filter'](_0x367b97=>_0x367b97['data']['newValue']&&_0x367b97['data']['oldValue']);for(const _0x4d99b4 of _0x21145d)Te(_0x4d99b4)||(_0x5f541e['removeMarker'](_0x4d99b4['getFirstMarker']()),_0x1669b1=!0x0);return _0x1669b1;}['noTrackChangesFixer'](_0x227555){if(_0x227555['batch']['isUndo']||!_0x227555['batch']['isLocal'])return!0x1;const _0x3fafac=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x3fafac['trackChangesCommand']['value'])return!0x1;let _0x29085e=!0x1;const _0x5fbcd1=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0xe2f51=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x31120c=>'attribute'==_0x31120c['type'])['filter'](_0x186e41=>_0x5fbcd1['includes'](_0x186e41['attributeKey']));if(0x0==_0xe2f51['length'])return _0x29085e;for(const _0x56dc2a of _0xe2f51){const _0x153e36=_0x3fafac['_findSuggestions'](_0x56dc2a['range'],'attribute')['filter'](_0x23a02c=>!_0x23a02c['meta']['isNextTo'])['map'](_0x167c95=>_0x167c95['suggestion'])['filter'](_0xeaefa0=>{const _0x5d2b2c=_0x3fafac['_getAttributeKey'](_0xeaefa0);return _0x5fbcd1['includes'](_0x5d2b2c);});if(_0x153e36['length']){for(const _0x5ecc6c of _0x153e36)_0x227555['removeMarker'](_0x5ecc6c['getFirstMarker']());_0x29085e=!0x0;}}return _0x29085e;}['assureChains'](){const _0x37d2c2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x262aef=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x24dc76;const _0x4c3ad6=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x258add=>{if(_0x258add['data']['oldRange']||!_0x258add['data']['newRange'])return null;if(!_0x258add['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x115235}=_0x37d2c2['_splitMarkerName'](_0x258add['name']);if(!_0x37d2c2['hasSuggestion'](_0x115235))return null;const _0x6c7c0c=_0x37d2c2['getSuggestion'](_0x115235);return _0x262aef['includes'](_0x6c7c0c['data']['key']);})['map'](_0x2ea430=>{const {id:_0x57dd93}=_0x37d2c2['_splitMarkerName'](_0x2ea430['name']),_0x5c1783=_0x37d2c2['getSuggestion'](_0x57dd93);return _0x24dc76=_0x5c1783['attributes']['groupId'],_0x5c1783['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x4c3ad6['size'])return;const _0x2ce210=_0x37d2c2['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5aefd5=>'attribute'==_0x5aefd5['type']&&_0x5aefd5['data']&&_0x262aef['includes'](_0x5aefd5['data']['key'])&&_0x5aefd5['attributes']['groupId']!=_0x24dc76)['map'](_0x4a9660=>({'listItem':_0x4a9660['getFirstRange']()['start']['nodeAfter'],'groupId':_0x4a9660['attributes']['groupId']})),_0x299606=new Set();for(const {groupId:_0x311720,listItem:_0x9a1e81}of _0x2ce210)_0x4c3ad6['has'](_0x9a1e81)&&_0x299606['add'](_0x311720);for(const _0x4bbdec of _0x37d2c2['getSuggestions']())_0x299606['has'](_0x4bbdec['attributes']['groupId'])&&_0x4bbdec['setAttribute']('groupId',_0x24dc76);}['_supportLegacySuggestions'](){const _0x4f1292=this['editor'],_0xcee302=_0x4f1292['locale'],_0x3086ee=_0x4f1292['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x3086ee['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x133ab7,_0x233997){const _0x18b1a0=[];for(let _0xfe5f36 of _0x133ab7)_0xfe5f36['start']['nodeAfter']===_0xfe5f36['end']['parent']&&(_0xfe5f36=_0x4f1292['model']['createRange'](_0x4f1292['model']['createPositionAt'](_0xfe5f36['start']['nodeAfter'],0x0))),_0x18b1a0['push'](_0xfe5f36);_0x4f1292['model']['change'](_0x118825=>{const _0x5a2d65=_0x4f1292['model']['document']['selection'],_0x306a01=Array['from'](_0x5a2d65['getRanges']())['map'](_0x404833=>_0x28bdcd['fromRange'](_0x404833));_0x118825['setSelection'](_0x18b1a0),_0x4f1292['commands']['get'](_0x233997['commandName'])['refresh'](),_0x233997['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4f1292['execute'](_0x233997['commandName'],..._0x233997['commandParams']),_0x118825['setSelection'](_0x306a01);for(const _0x3fa0e3 of _0x306a01)_0x3fa0e3['detach']();});}),_0x3086ee['descriptionFactory']['registerElementLabel'](function(_0x2c812c){const _0x12b392=!_0x4f1292['model']['schema']['isObject'](_0x2c812c),_0x486948=_0x2c812c['previousSibling'],_0x7bdb79=_0x2c812c['nextSibling'],_0x3753c7=_0x2c812c['getAttribute']('listItemId'),_0x13e0fc=!_0x486948||_0x486948['getAttribute']('listItemId')!==_0x3753c7,_0x18e1f7=!_0x7bdb79||_0x7bdb79['getAttribute']('listItemId')!==_0x3753c7;return _0x12b392&&Boolean(_0x3753c7)&&_0x13e0fc&&_0x18e1f7;},_0xb4d080=>c(_0xcee302,'ELEMENT_LIST_ITEM',_0xb4d080));}['_registerLegacyDescription'](){const _0x3c32f2=this['editor'],_0x20ea2d=_0x3c32f2['locale'];function _0x4d3abb(_0x184129){const _0x148c5c=_0x3c32f2['commands']['get']('bulletedList')['value'],_0x507e8b=_0x3c32f2['commands']['get']('numberedList')['value'];return'numberedList'===_0x184129?_0x148c5c:_0x507e8b;}_0x3c32f2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x304b13){if('formatBlock'!=_0x304b13['type'])return;const {data:_0x494a19}=_0x304b13;if(!_0x494a19)return;let _0x4d7f05,_0x3f7664,_0x1e69b2,_0x4d7a5b;switch(_0x494a19['commandName']){case'bulletedList':_0x1e69b2=_0x494a19['commandParams'][0x0]['forceValue'],_0x4d7a5b=_0x4d3abb(_0x494a19['commandName']),_0x4d7f05=_0x1e69b2?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4d7a5b&&_0x3c32f2['config']['get']('list.multiBlock')||(_0x4d7f05='*Change\x20to:*\x20%0'),_0x3f7664={'type':'format','content':c(_0x20ea2d,_0x4d7f05,c(_0x20ea2d,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x1e69b2=_0x494a19['commandParams'][0x0]['forceValue'],_0x4d7a5b=_0x4d3abb(_0x494a19['commandName']),_0x4d7f05=_0x1e69b2?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4d7a5b&&_0x3c32f2['config']['get']('list.multiBlock')||(_0x4d7f05='*Change\x20to:*\x20%0'),_0x3f7664={'type':'format','content':c(_0x20ea2d,_0x4d7f05,c(_0x20ea2d,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x4d7f05='*Indent:*\x20%0',_0x3f7664={'type':'format','content':c(_0x20ea2d,_0x4d7f05,c(_0x20ea2d,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x4d7f05=function(_0x337af1){const _0x37d339=_0x337af1['getFirstRange']();let _0x2390d8=_0x37d339['start']['nodeAfter'];for(;_0x2390d8&&_0x37d339['containsItem'](_0x2390d8);){if(_0x2390d8['getAttribute']('listIndent')>0x0)return!0x1;_0x2390d8=_0x2390d8['nextSibling'];}return!0x0;}(_0x304b13)?c(_0x20ea2d,'*Format:*\x20remove\x20from\x20%0',c(_0x20ea2d,function(_0x4742c9){return'ELEMENT_'+_0x4742c9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x304b13))):c(_0x20ea2d,'*Outdent:*\x20%0',c(_0x20ea2d,'ELEMENT_LIST_ITEM')),_0x3f7664={'type':'format','content':_0x4d7f05};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x494a19['multipleBlocks']&&(_0x4d7f05='*Merge:*\x20%0',_0x3f7664={'type':'deletion','content':c(_0x20ea2d,_0x4d7f05,c(_0x20ea2d,'ELEMENT_LIST_ITEM'))});}return _0x3f7664;});}}function Te(_0x201bea){let _0x454ac7=_0x201bea['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x454ac7;){const _0xfdf76=_0x454ac7['getAttribute']('listItemId');if(!_0xfdf76)return!0x1;if(_0xfdf76==_0x201bea['data']['newValue'])return'newValue';if(_0xfdf76==_0x201bea['data']['oldValue'])return'oldValue';_0x454ac7=_0x454ac7['previousSibling'];}return!0x1;}class Se extends _0x5682b5{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x4c4950=this['editor']['config']['get']('list.properties'),_0x3f9fbf=this['editor']['plugins']['get']('TrackChangesEditing');_0x4c4950['styles']&&(_0x3f9fbf['enableDefaultAttributesIntegration']('listStyle'),_0x3f9fbf['registerBlockAttribute']('listStyle')),_0x4c4950['reversed']&&(_0x3f9fbf['enableDefaultAttributesIntegration']('listReversed'),_0x3f9fbf['registerBlockAttribute']('listReversed')),_0x4c4950['startIndex']&&(_0x3f9fbf['enableDefaultAttributesIntegration']('listStart'),_0x3f9fbf['registerBlockAttribute']('listStart'));const _0x7ac8e1={'type':'format','content':''};_0x3f9fbf['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x5e889c=this['editor']['locale'];_0x3f9fbf['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x5e889c,'FORMAT_LIST_REVERSED')),_0x3f9fbf['descriptionFactory']['registerDescriptionCallback'](_0x410048=>{const {data:_0x13091b}=_0x410048;if(_0x13091b&&'listReversed'==_0x13091b['key'])return null==_0x13091b['newValue']||0x0==_0x13091b['newValue']&&null==_0x13091b['oldValue']?_0x7ac8e1:void 0x0;}),_0x3f9fbf['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x5e889c,'FORMAT_LIST_START')),_0x3f9fbf['descriptionFactory']['registerDescriptionCallback'](_0x3bb79c=>{const {data:_0x1cdb6d}=_0x3bb79c;if(_0x1cdb6d&&'listStart'==_0x1cdb6d['key'])return null==_0x1cdb6d['newValue']||0x1==_0x1cdb6d['newValue']&&null==_0x1cdb6d['oldValue']?_0x7ac8e1:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x5b44b1=>{if(_0x5b44b1['batch']['isUndo'])return!0x1;let _0x5377dd=!0x1;const _0x561f2d=_0x3f9fbf['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4f38c4=>{const _0x5e30c2=_0x3f9fbf['_getAttributeKey'](_0x4f38c4);return'listStart'==_0x5e30c2||'listReversed'==_0x5e30c2;});for(const _0x21804e of _0x561f2d){const _0x913f7d=_0x21804e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x913f7d||'customNumbered'==_0x913f7d)continue;_0x3f9fbf['_findSuggestions'](_0x21804e['getFirstRange'](),'attribute')['find'](_0x1cd1a3=>'listType'==_0x3f9fbf['_getAttributeKey'](_0x1cd1a3['suggestion']))||(_0x5b44b1['removeMarker'](_0x21804e['getFirstMarker']()),_0x5377dd=!0x0);}return _0x5377dd;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x33f8a4){const _0x941d4d=this['editor']['locale'],{data:_0x1b6d9b}=_0x33f8a4,_0x4a1fd7={'type':'format','content':''};if(!_0x1b6d9b||'listStyle'!=_0x1b6d9b['key'])return;if(!_0x1b6d9b['oldValue'])return'default'==_0x1b6d9b['newValue']?_0x4a1fd7:{'type':'format','content':''+c(_0x941d4d,'*Set\x20format:*\x20%0',c(_0x941d4d,this['_getTranslationKeyForListStyle'](_0x1b6d9b['newValue'])))};if(!_0x1b6d9b['newValue']){if('default'==_0x1b6d9b['oldValue'])return _0x4a1fd7;let _0x393a7e=_0x33f8a4['head'];for(;_0x393a7e;){if(_0x393a7e['data']&&'listType'==_0x393a7e['data']['key']&&_0x393a7e['data']['newValue'])return _0x4a1fd7;_0x393a7e=_0x393a7e['next'];}return{'type':'format','content':''+c(_0x941d4d,'*Remove\x20format:*\x20%0',c(_0x941d4d,this['_getTranslationKeyForListStyle'](_0x1b6d9b['oldValue'])))};}if('default'!=_0x1b6d9b['newValue'])return{'type':'format','content':''+c(_0x941d4d,'*Set\x20format:*\x20%0',c(_0x941d4d,this['_getTranslationKeyForListStyle'](_0x1b6d9b['newValue'])))};let _0x21cf9b=_0x33f8a4['head'];for(;_0x21cf9b;){if(_0x21cf9b['data']&&'listType'==_0x21cf9b['data']['key']&&_0x21cf9b['data']['newValue']&&_0x21cf9b['data']['oldValue'])return _0x4a1fd7;_0x21cf9b=_0x21cf9b['next'];}return{'type':'format','content':c(_0x941d4d,'*Set\x20format:*\x20%0',c(_0x941d4d,'ELEMENT_'+_0x33f8a4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x556517=this['editor'],_0x460135=_0x556517['locale'];_0x556517['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x526652=>{if('formatBlock'!=_0x526652['type'])return;const {data:_0x324c4b}=_0x526652;if(!_0x324c4b)return;let _0x155624,_0xce2003;switch(_0x324c4b['commandName']){case'listStyle':_0x155624='*Change\x20to:*\x20%0',_0xce2003={'type':'format','content':c(_0x460135,_0x155624,c(_0x460135,this['_getTranslationKeyForListStyle'](_0x324c4b['commandParams'][0x0]['type'])))};break;case'listReversed':_0x155624=_0x324c4b['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xce2003={'type':'format','content':c(_0x460135,_0x155624)};break;case'listStart':_0x155624='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xce2003={'type':'format','content':c(_0x460135,_0x155624,_0x324c4b['commandParams'][0x0]['startIndex'])};}return _0xce2003;});}['_getTranslationKeyForListStyle'](_0x245a7f){return'ELEMENT_'+function(_0x9e7cc5){if(_e['includes'](_0x9e7cc5))return'bulleted';if(Re['includes'](_0x9e7cc5))return'numbered';return null;}(_0x245a7f)['toUpperCase']()+'_LIST_'+_0x245a7f['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x5682b5{['afterInit'](){const _0xce04b2=this['editor'];_0xce04b2['commands']['get']('emoji')&&_0xce04b2['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x5682b5{static get['requires'](){return[_0x54fe2a];}['init'](){const _0x3225f4=this['editor'],_0x227204=_0x3225f4['plugins']['get']('TrackChangesEditing'),_0x11b2e8=_0x3225f4['commands']['get']('enter');_0x227204['enableCommand']('enter',()=>{_0x3225f4['model']['change'](_0x474c4a=>{const _0x4f5b9e=_0x3225f4['model']['document']['selection'],_0x215017=_0x4f5b9e['getFirstPosition'](),_0x23b27c=_0x28bdcd['fromRange'](_0x4f5b9e['getFirstRange']());if(_0x11b2e8['enterBlock'](_0x474c4a)){const _0x1236ec=_0x3225f4['model']['createPositionAt'](_0x215017['parent']['nextSibling'],0x0),_0x2376d7=_0x474c4a['createRange'](_0x215017,_0x1236ec);_0x227204['markInsertion'](_0x2376d7);}else _0x474c4a['setSelection'](_0x474c4a['createRange'](_0x23b27c['end']));_0x23b27c['detach'](),_0x11b2e8['fire']('afterExecute',{'writer':_0x474c4a});});}),_0x3225f4['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x3225f4,'split'),{'priority':'high'}),_0x3225f4['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x544343,_0x104a6c,_0x46d6e8)=>{const _0x963439=_0x46d6e8['mapper']['markerNameToElements'](_0x104a6c['markerName']);if(_0x963439){for(const _0x3cad93 of _0x963439)_0x3cad93['hasClass']('ck-suggestion-marker-split')&&(_0x46d6e8['mapper']['unbindElementFromMarkerName'](_0x3cad93,_0x104a6c['markerName']),_0x46d6e8['writer']['remove'](_0x3cad93));}},{'priority':'high'}),_0x3225f4['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4f84db,_0x41c91c,_0x316a5f)=>{_0x316a5f['options']['showSuggestionHighlights']&&Fe(_0x3225f4,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x4f84db,_0x41c91c,_0x316a5f);},{'priority':'high'});}}class Z extends _0x5682b5{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x56b3fa=this['editor']['plugins']['get']('TrackChangesEditing');_0x56b3fa['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x56b3fa['enableCommand']('findNext'),_0x56b3fa['enableCommand']('findPrevious'),_0x56b3fa['enableCommand']('replace'),_0x56b3fa['enableCommand']('replaceAll');}['handleFindCommand'](_0x17e205,_0x83cad4,_0x128aa4={}){const _0x4cf61b=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x17e205(_0x4fe271=>{let _0xc7c717=('string'==typeof _0x83cad4?_0x4cf61b['findByTextCallback'](_0x83cad4,_0x128aa4):_0x83cad4)(_0x4fe271);Array['isArray'](_0xc7c717)&&(_0xc7c717={'results':_0xc7c717,'searchText':'string'==typeof _0x83cad4?_0x83cad4:''});const _0x346457=_0xc7c717['results']['filter'](_0x2a9afb=>!0x1===this['_isInDeletionRange'](_0x2a9afb,_0x4fe271['item']));return{..._0xc7c717,'results':_0x346457};},_0x128aa4);}['_isInDeletionRange'](_0x498a93,_0x3b6b22){const _0x569468=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3b6b22,_0x498a93['start']),this['editor']['model']['createPositionAt'](_0x3b6b22,_0x498a93['end']));for(const _0x21c746 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x569468['getIntersection'](_0x21c746['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x5682b5{['afterInit'](){const _0x620d32=this['editor']['locale'],_0x220650=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x26dca0,commandName:_0x540c98}of ro)this['editor']['plugins']['has'](_0x26dca0)&&(_0x220650['enableDefaultAttributesIntegration'](_0x540c98),_0x220650['registerInlineAttribute'](_0x540c98));_0x220650['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x620d32,'FORMAT_FONT_SIZE')),_0x220650['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x620d32,'FORMAT_FONT_FAMILY')),_0x220650['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x620d32,'FORMAT_FONT_COLOR')),_0x220650['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x620d32,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x40bd4f=this['editor'],_0x325afd=_0x40bd4f['locale'];_0x40bd4f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x200dc3=>{const _0x45934a=_0x325afd['t'];if('formatInline'!=_0x200dc3['type'])return;const {data:_0x57674b}=_0x200dc3;if(null!=_0x57674b){if('fontSize'==_0x57674b['commandName']){const _0x5ea221=_0x57674b['commandParams'][0x0]['value'];if(_0x5ea221){const _0x3afa5f=_0x45934a(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x93b93c=>_0x93b93c['model']==_0x5ea221)['title'])['toLowerCase']();return{'type':'format','content':c(_0x325afd,'*Set\x20font\x20size:*\x20%0',_0x3afa5f)};}return{'type':'format','content':c(_0x325afd,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x57674b['commandName']){const _0x2d8297=_0x57674b['commandParams'][0x0]['value'];return _0x2d8297?{'type':'format','content':c(_0x325afd,'*Set\x20font\x20family:*\x20%0',_0x2d8297)}:{'type':'format','content':c(_0x325afd,'*Reset\x20font\x20family*')};}if('fontColor'==_0x57674b['commandName']){const _0x220f83=_0x57674b['commandParams'][0x0]['value'];if(_0x220f83){const _0x2dfcdf=_0x2a5518(this['editor']['config']['get']('fontColor.colors'))['find'](_0x1470ef=>_0x1470ef['model']==_0x220f83);let _0x5d5151=_0x220f83,_0x6898b9='';return _0x2dfcdf&&(_0x5d5151=_0x2dfcdf['label'],_0x6898b9=_0x45934a(_0x5d5151)['toLowerCase']()),{'type':'format','content':c(_0x325afd,'*Set\x20font\x20color:*\x20%0',_0x6898b9)['trim'](),'color':{'value':_0x220f83,'title':_0x6898b9||_0x5d5151}};}return{'type':'format','content':c(_0x325afd,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x57674b['commandName']){const _0x1f718f=_0x57674b['commandParams'][0x0]['value'];if(_0x1f718f){const _0x55217f=_0x2a5518(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x397d8d=>_0x397d8d['model']==_0x1f718f);let _0x5b38fe=_0x1f718f,_0x3b4067='';return _0x55217f&&(_0x5b38fe=_0x55217f['label'],_0x3b4067=_0x45934a(_0x5b38fe)['toLowerCase']()),{'type':'format','content':c(_0x325afd,'*Set\x20font\x20background\x20color:*\x20%0',_0x3b4067)['trim'](),'color':{'value':_0x1f718f,'title':_0x3b4067||_0x5b38fe}};}return{'type':'format','content':c(_0x325afd,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x5682b5{['afterInit'](){const _0x36059c=this['editor'],_0x4bd614=_0x36059c['plugins']['get']('TrackChangesEditing'),_0x4edd97=_0x36059c['commands']['get']('copyFormat'),_0x56d02a=_0x36059c['commands']['get']('pasteFormat');_0x4edd97&&_0x56d02a&&(_0x4bd614['enableDefaultAttributesIntegration']('pasteFormat'),_0x4bd614['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x174043=this['editor'],_0xa1342f=_0x174043['locale'];_0x174043['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x239801=>{if('formatBlock'!=_0x239801['type']&&'formatInline'!=_0x239801['type'])return;const {data:_0xf7249f}=_0x239801;if(_0xf7249f&&'pasteFormat'===_0xf7249f['commandName']){const _0x4d8571=[],_0x5843fb=_0xf7249f['commandParams'][0x0];for(const [_0x23f752,_0x25d5af]of Object['entries'](_0x5843fb))_0x4d8571['push'](so(_0x174043,_0x23f752,_0x25d5af));return _0x4d8571['length']?{'type':'format','content':c(_0xa1342f,'*Set\x20format\x20to:*\x20%0',_0x4d8571['join'](',\x20'))}:{'type':'format','content':c(_0xa1342f,'*Remove\x20all\x20formatting*')};}});}}function so(_0xce87b4,_0x490f3,_0x5860c3){const _0x136d6d=_0xce87b4['locale']['t'],_0x1ff511=_0x490f3['split'](/(?=[A-Z])/)['join']('\x20'),_0x5a6094=_0x136d6d(_0x1ff511['charAt'](0x0)['toUpperCase']()+_0x1ff511['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x5860c3)return _0x5a6094;if('fontColor'===_0x490f3||'fontBackgroundColor'===_0x490f3){const _0xf62336=_0x2a5518(_0xce87b4['config']['get']('fontColor.colors'))['find'](_0x273a71=>_0x273a71['model']==_0x5860c3);return _0x5a6094+'\x20('+(_0xf62336?_0x136d6d(_0xf62336['label'])['toLowerCase']():_0x5860c3)+')';}if('fontSize'===_0x490f3&&isNaN(parseFloat(_0x5860c3))){const _0x9a23e6=_0xce87b4['plugins']['get']('FontSize')['normalizeSizeOptions'](_0xce87b4['config']['get']('fontSize.options'))['find'](_0x13080d=>_0x13080d['model']==_0x5860c3);return _0x5a6094+'\x20('+(_0x9a23e6?_0x136d6d(_0x9a23e6['title'])['toLowerCase']():_0x5860c3)+')';}return _0x5a6094+'\x20('+_0x5860c3+')';}class nt extends _0x5682b5{['_headingOptions'];['afterInit'](){const _0x5da5bd=this['editor'];if(!_0x5da5bd['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x5da5bd['config']['get']('heading.options');const _0x2b7c58=_0x5da5bd['locale'],_0x1ca7b4=_0x5da5bd['plugins']['get']('TrackChangesEditing');_0x1ca7b4['enableDefaultAttributesIntegration']('heading');for(const _0x353ba4 of this['_headingOptions'])'paragraph'!=_0x353ba4['model']&&_0x1ca7b4['descriptionFactory']['registerElementLabel'](_0x353ba4['model'],_0x3c23fa=>{const _0x20be74=this['_getHeadingLevel'](_0x353ba4['model']);return null!==_0x20be74?_0x44a9a5(_0x3c23fa,_0x20be74):_0x327a58(_0x3c23fa,_0x353ba4['title']);});function _0x44a9a5(_0x35ed11,_0x2653ee){return c(_0x2b7c58,'ELEMENT_HEADING',[_0x35ed11,_0x2653ee]);}function _0x327a58(_0x1393bf,_0x33c2ea){return c(_0x2b7c58,'ELEMENT_HEADING_CUSTOM',[_0x1393bf,_0x33c2ea]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4a4630=this['editor'],_0x1382ef=_0x4a4630['locale'];function _0x3c4f19(_0x27f3b6,_0x2e9031){return c(_0x1382ef,'ELEMENT_HEADING_CUSTOM',[_0x27f3b6,_0x2e9031]);}_0x4a4630['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4cf293=>{if('formatBlock'!=_0x4cf293['type'])return;const {data:_0x153d2f}=_0x4cf293;if(_0x153d2f&&'heading'==_0x153d2f['commandName']){const _0x5fbad=_0x153d2f['commandParams'][0x0]['value'],_0x53e81f=this['_getHeadingLevel'](_0x5fbad);if(null!==_0x53e81f)return{'type':'format','content':c(_0x1382ef,'*Change\x20to:*\x20%0',(_0x5e07eb=0x1,_0x43a85b=_0x53e81f,c(_0x1382ef,'ELEMENT_HEADING',[_0x5e07eb,_0x43a85b])))};const _0x809fdf=this['_headingOptions']['find'](_0x492478=>_0x492478['model']===_0x5fbad)['title'];return{'type':'format','content':c(_0x1382ef,'*Change\x20to:*\x20%0',_0x3c4f19(0x1,_0x809fdf))};}var _0x5e07eb,_0x43a85b;});}['_getHeadingLevel'](_0x187b60){const _0x2b03b9=_0x187b60['match'](/^heading(\d+)/);if(_0x2b03b9)return _0x2b03b9[0x1];const _0x205382=this['_headingOptions']?.['find'](_0x283340=>_0x283340['model']==_0x187b60);if(_0x205382&&_0x205382['view']){const _0x36e032=_0x205382['view'],_0x32d1fa=(_0x36e032['name']??_0x36e032)['match'](/^h(\d+)/);if(_0x32d1fa)return _0x32d1fa[0x1];}return null;}}class it extends _0x5682b5{['afterInit'](){const _0x1b2219=this['editor'];if(!_0x1b2219['plugins']['has']('HighlightEditing'))return;const _0x48096e=_0x1b2219['plugins']['get']('TrackChangesEditing'),_0xfcbee1=_0x1b2219['locale'];_0x48096e['enableDefaultAttributesIntegration']('highlight'),_0x48096e['registerInlineAttribute']('highlight'),_0x48096e['descriptionFactory']['registerAttributeLabel']('highlight',c(_0xfcbee1,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x50c334=this['editor'],_0x5c3e65=_0x50c334['locale'];_0x50c334['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x43f780=>{if('formatInline'!=_0x43f780['type'])return;const {data:_0x28471f}=_0x43f780;if(_0x28471f&&'highlight'==_0x28471f['commandName']){const _0x116862=_0x5c3e65['t'],_0xaaa7a5=_0x28471f['commandParams'][0x0]['value'];if(_0xaaa7a5){const _0x403590=_0x50c334['config']['get']('highlight.options')['find'](_0x6be291=>_0x6be291['model']==_0xaaa7a5),_0xea8da=_0x116862(_0x403590['title'])['toLowerCase']();return{'type':'format','content':c(_0x5c3e65,'*Set\x20highlight:*\x20%0',_0xea8da),'color':{'value':_0x403590['color'],'title':_0x403590['title']}};}return{'type':'format','content':c(_0x5c3e65,'*Remove\x20highlight*',c(_0x5c3e65,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x5682b5{['afterInit'](){const _0x564e9d=this['editor'];if(!_0x564e9d['plugins']['has']('HorizontalLineEditing'))return;_0x564e9d['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4950e7=_0x564e9d['plugins']['get']('TrackChangesEditing'),_0x16cdec=_0x564e9d['locale'];_0x4950e7['descriptionFactory']['registerElementLabel']('horizontalLine',_0x5d010b=>c(_0x16cdec,'ELEMENT_HORIZONTAL_LINE',_0x5d010b)),_0x564e9d['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x571d3b,{writer:_0x259a28,options:_0x37105b})=>{if(!_0x37105b['showSuggestionHighlights'])return null;const _0x2270d7=_0x259a28['createContainerElement']('div'),_0x30dbe5=_0x259a28['createEmptyElement']('hr');return _0x259a28['addClass']('ck-horizontal-line',_0x2270d7),_0x259a28['insert'](_0x259a28['createPositionAt'](_0x2270d7,0x0),_0x30dbe5),_0x2270d7;},'converterPriority':'high'});}}class ot extends _0x5682b5{['afterInit'](){const _0x5cd106=this['editor'];if(!_0x5cd106['plugins']['has']('HtmlEmbed'))return;const _0x53a2a4=_0x5cd106['plugins']['get']('TrackChangesEditing'),_0x5842b5=_0x5cd106['locale'];_0x53a2a4['descriptionFactory']['registerElementLabel']('rawHtml',_0x298058=>c(_0x5842b5,'ELEMENT_HTML_EMBED',_0x298058)),_0x53a2a4['enableDefaultAttributesIntegration']('htmlEmbed'),_0x53a2a4['registerBlockAttribute']('value'),_0x53a2a4['descriptionFactory']['registerDescriptionCallback'](_0x17af9c=>{if('attribute'!=_0x17af9c['type'])return;const {data:_0x1dea31}=_0x17af9c;if(_0x1dea31&&'value'==_0x1dea31['key']&&_0x17af9c['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x54abc5=c(_0x5842b5,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x5842b5,'*Change\x20%0\x20content*',_0x54abc5)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xd22095=this['editor'],_0x278824=_0xd22095['locale'];_0xd22095['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x424a1b=>{if('formatBlock'!=_0x424a1b['type'])return;const {data:_0x124d36}=_0x424a1b;if(_0x124d36&&'htmlEmbed'==_0x124d36['commandName']){const _0x2c5909=c(_0x278824,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x278824,'*Change\x20%0\x20content*',_0x2c5909)};}});}}class rt extends _0x5682b5{['afterInit'](){const _0x184f27=this['editor'];if(!_0x184f27['plugins']['has']('ImageEditing'))return;const _0x5607bd=_0x184f27['plugins']['get']('TrackChangesEditing'),_0xbabc81=_0x184f27['plugins']['get']('ImageUtils'),_0x48be52=_0x184f27['locale'];_0x5607bd['enableCommand']('insertImage'),_0x5607bd['descriptionFactory']['registerElementLabel']('imageBlock',_0x1dd697=>c(_0x48be52,'ELEMENT_IMAGE',_0x1dd697)),_0x5607bd['descriptionFactory']['registerElementLabel']('imageInline',_0x399b49=>c(_0x48be52,'ELEMENT_INLINE_IMAGE',_0x399b49)),_0x5607bd['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x48be52,'ELEMENT_CAPTION')),_0x184f27['plugins']['has']('ImageUploadEditing')&&_0x5607bd['enableCommand']('uploadImage'),_0x184f27['plugins']['has']('ImageBlockEditing')&&_0x184f27['plugins']['has']('ImageInlineEditing')&&(_0x5607bd['enableCommand']('imageTypeInline',(_0x44d316,_0x1a4aef)=>{const _0x431c62=_0xbabc81['getClosestSelectedImageElement'](_0x184f27['model']['document']['selection']);_0x184f27['model']['change'](()=>{_0x5607bd['markBlockFormat'](_0x431c62,{'commandName':'imageTypeInline','commandParams':[_0x1a4aef]},[],'convertBlockImageToInline');});}),_0x5607bd['enableCommand']('imageTypeBlock',(_0x2a73e7,_0x316e62)=>{_0x184f27['model']['change'](_0x457cc0=>{let _0x3c53a2=_0xbabc81['getClosestSelectedImageElement'](_0x184f27['model']['document']['selection']),_0x47ff2f=_0x457cc0['createRangeOn'](_0x3c53a2);const _0x5f561d=_0x281dbc['fromPosition'](_0x47ff2f['start'],'toPrevious'),_0x3b61ac=_0x281dbc['fromPosition'](_0x47ff2f['end'],'toNext');_0x5607bd['forceDefaultExecution'](()=>_0x2a73e7(_0x316e62)),_0x3c53a2=_0xbabc81['getClosestSelectedImageElement'](_0x184f27['model']['document']['selection']),_0x47ff2f=_0x457cc0['createRangeOn'](_0x3c53a2);const _0x37bd1c=_0x457cc0['createRange'](_0x5f561d,_0x3b61ac);_0x5f561d['detach'](),_0x3b61ac['detach'](),_0x5607bd['markBlockFormat'](_0x3c53a2,{'commandName':'imageTypeInline','commandParams':[_0x316e62]},[],'convertInlineImageToBlock'),_0x37bd1c['start']['isBefore'](_0x47ff2f['start'])&&_0x5607bd['markInsertion'](_0x457cc0['createRange'](_0x37bd1c['start'],_0x47ff2f['start']),'convertInlineImageToBlock'),_0x47ff2f['end']['isBefore'](_0x37bd1c['end'])&&_0x5607bd['markInsertion'](_0x457cc0['createRange'](_0x47ff2f['end'],_0x37bd1c['end']),'convertInlineImageToBlock');});}),_0x5607bd['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x5607bd['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x5607bd['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x5607bd['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x5607bd['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x5607bd['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x19062b])=>{const _0xb7277a=_0x5607bd['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x2fa2d6=_0x19062b['start'],_0x59babe=_0x19062b['end'];const _0xd3e42d=_0x184f27['model']['schema']['getNearestSelectionRange'](_0x2fa2d6,'backward'),_0x3f6a08=_0x184f27['model']['schema']['getNearestSelectionRange'](_0x59babe,'forward');_0xd3e42d['isCollapsed']&&(_0x2fa2d6=_0xd3e42d['start']),_0x3f6a08['isCollapsed']&&(_0x59babe=_0x3f6a08['end']),_0xb7277a([_0x184f27['model']['createRange'](_0x2fa2d6,_0x59babe)]);}),_0x5607bd['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x20ce5a),_0x5607bd['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x20ce5a)),_0x184f27['plugins']['has']('ImageCaptionEditing')&&(_0x5607bd['enableCommand']('toggleImageCaption',(_0x2d62cc,_0x33938e)=>{const _0x55ff5b=_0x184f27['plugins']['get']('ImageCaptionUtils');let _0x249dd2=_0xbabc81['getClosestSelectedImageElement'](_0x184f27['model']['document']['selection']),_0x46e372=_0x55ff5b['getCaptionFromImageModelElement'](_0x249dd2);_0x184f27['model']['change'](()=>{if(_0x46e372)return void _0x5607bd['markDeletion'](_0x184f27['model']['createRangeOn'](_0x46e372));const _0x20691b=_0xbabc81['isBlockImage'](_0x249dd2);_0x2d62cc(_0x33938e),_0x249dd2=_0xbabc81['getClosestSelectedImageElement'](_0x184f27['model']['document']['selection']),_0x46e372=_0x55ff5b['getCaptionFromImageModelElement'](_0x249dd2),_0x5607bd['markInsertion'](_0x184f27['model']['createRangeOn'](_0x46e372),_0x20691b?null:'imageCaption');});}),_0x5607bd['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x20ce5a));const _0x2711f1=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x191ec4(_0x230b3b,_0x46b035){const _0x563d74=_0x2711f1['findIndex'](({type:_0x170ece,subType:_0x4be193})=>_0x230b3b['type']==_0x170ece&&_0x230b3b['subType']==_0x4be193),_0x243705=_0x2711f1['findIndex'](({type:_0x2256d8,subType:_0x33494a})=>_0x46b035['type']==_0x2256d8&&_0x46b035['subType']==_0x33494a);if(_0x563d74<0x0||_0x243705<0x0)return!0x1;const _0x554e31=_0x230b3b['getFirstRange'](),_0x15033c=_0x46b035['getFirstRange']();if((0x0==_0x563d74||0x1==_0x563d74)&&0x2==_0x243705&&_0x554e31['isIntersecting'](_0x15033c))return!0x0;if(0x2==_0x563d74&&0x3==_0x243705){const _0x1c09c4=_0x5607bd['_findSuggestions'](_0x554e31,'insertion')['filter'](({suggestion:_0x518550,meta:_0x1e96c5})=>_0x1e96c5['isOwn']&&'convertInlineImageToBlock'==_0x518550['subType']);if(_0x1c09c4['length']>0x1&&_0x15033c['end']['isEqual'](_0x554e31['start']))return!0x0;if(0x1==_0x1c09c4['length']&&(_0x554e31['start']['isEqual'](_0x15033c['end'])||_0x554e31['end']['isEqual'](_0x15033c['start'])))return!0x0;}if(0x3==_0x563d74&&0x3==_0x243705&&_0x554e31['start']['isBefore'](_0x15033c['start'])){const _0x4d1fa6=_0x554e31['end']['nodeAfter'],_0x2a81d=_0x15033c['start']['nodeBefore'];return _0xbabc81['isBlockImage'](_0x4d1fa6)&&_0x4d1fa6===_0x2a81d;}return!0x1;}function _0x20ce5a(_0x34547c,_0x1789cd){return _0x191ec4(_0x34547c,_0x1789cd)?[_0x34547c,_0x1789cd]:_0x191ec4(_0x1789cd,_0x34547c)?[_0x1789cd,_0x34547c]:null;}_0x184f27['plugins']['has']('ImageResize')&&(_0x5607bd['enableDefaultAttributesIntegration']('resizeImage'),_0x5607bd['registerBlockAttribute']('resizedWidth'),_0x5607bd['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x48be52,'FORMAT_IMAGE_SIZE'))),_0x184f27['plugins']['has']('ImageTextAlternativeEditing')&&(_0x5607bd['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x5607bd['registerBlockAttribute']('alt')),_0x184f27['plugins']['has']('PictureEditing')&&(_0x5607bd['registerBlockAttribute']('sources'),_0x5607bd['descriptionFactory']['registerDescriptionCallback'](_0x106136=>{if('attribute'!=_0x106136['type'])return;const {data:_0x533090}=_0x106136;return _0x533090&&'sources'==_0x533090['key']?{'type':'format','content':''}:void 0x0;})),_0x184f27['plugins']['has']('ImageSizeAttributes')&&(_0x5607bd['registerBlockAttribute']('width'),_0x5607bd['registerBlockAttribute']('height'),_0x5607bd['descriptionFactory']['registerDescriptionCallback'](_0x1f8399=>{if('attribute'!=_0x1f8399['type'])return;const {data:_0x5013ea}=_0x1f8399;return!_0x5013ea||'width'!=_0x5013ea['key']&&'height'!=_0x5013ea['key']?void 0x0:{'type':'format','content':''};})),_0x5607bd['descriptionFactory']['registerDescriptionCallback'](_0x12d979=>{if(!!_0x2711f1['find'](({type:_0xcf83d6,subType:_0x101d17})=>_0x12d979['type']==_0xcf83d6&&_0x12d979['subType']==_0x101d17))return _0x12d979['previous']?{}:void 0x0;}),_0x5607bd['descriptionFactory']['registerDescriptionCallback'](_0x496703=>{if('insertion'==_0x496703['type']||'deletion'==_0x496703['type']){const _0xcfb522=_0x496703['getContainedElement']();if(_0xcfb522&&_0xcfb522['is']('element','caption'))return{'type':'insertion'==_0x496703['type']?'addObject':'removeObject','element':_0xcfb522,'quantity':0x1};}}),_0x5607bd['descriptionFactory']['registerDescriptionCallback'](_0x469027=>'formatBlock'==_0x469027['type']&&'convertInlineImageToBlock'==_0x469027['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x469027['type']&&'convertBlockImageToInline'==_0x469027['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x5607bd['descriptionFactory']['registerDescriptionCallback'](_0xdce6d=>{if('attribute'!=_0xdce6d['type'])return;const {data:_0x3f618f}=_0xdce6d;if(!_0x3f618f||'alt'!=_0x3f618f['key'])return;const _0x332a75=_0x3f618f['newValue'];return _0x332a75?{'type':'format','content':c(_0x48be52,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x332a75+'\x22')}:{'type':'format','content':c(_0x48be52,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x57cdf5=this['editor'],_0x5be36f=_0x57cdf5['locale'];_0x57cdf5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x45d4ea=>{if('formatBlock'!=_0x45d4ea['type']&&'formatInline'!=_0x45d4ea['type'])return;const {data:_0x17c8f7}=_0x45d4ea;if(_0x17c8f7){if('imageTextAlternative'==_0x17c8f7['commandName']){const _0x4f8b34=_0x17c8f7['commandParams'][0x0]['newValue'];return _0x4f8b34?{'type':'format','content':c(_0x5be36f,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4f8b34+'\x22')}:{'type':'format','content':c(_0x5be36f,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x17c8f7['commandName']){const _0x13c182=_0x17c8f7['commandParams'][0x0]['width'];return _0x13c182?{'type':'format','content':c(_0x5be36f,'*Set\x20image\x20width:*\x20%0',_0x13c182)}:{'type':'format','content':c(_0x5be36f,'*Reset\x20image\x20width*')};}}});}}class at extends _0x5682b5{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x1fe133=this['editor']['locale'],_0x4c5f89=this['editor']['plugins']['get']('TrackChangesEditing');_0x4c5f89['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4c5f89['registerBlockAttribute']('src'),_0x4c5f89['descriptionFactory']['registerDescriptionCallback'](_0x4ddcf1=>{if('attribute'!=_0x4ddcf1['type'])return;const {data:_0x13bfd0}=_0x4ddcf1;return _0x13bfd0&&'src'==_0x13bfd0['key']?_0x13bfd0['newValue']&&_0x13bfd0['oldValue']?{'type':'format','content':c(_0x1fe133,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xd73e66=this['editor']['plugins']['get']('TrackChangesEditing');_0xd73e66['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0xd73e66['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xd73e66['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0xd73e66['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe17d1c=this['editor'],_0x1b8453=_0xe17d1c['locale'];_0xe17d1c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x395cc0=>{if('formatBlock'!=_0x395cc0['type']&&'formatInline'!=_0x395cc0['type'])return;const {data:_0x14a2fb}=_0x395cc0;if(!_0x14a2fb||'replaceImageSource'!=_0x14a2fb['commandName'])return;return{'type':'format','content':c(_0x1b8453,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x5682b5{['afterInit'](){const _0x1f012c=this['editor'];if(!_0x1f012c['plugins']['has']('ImageStyleEditing'))return;const _0x468301=_0x1f012c['plugins']['get']('TrackChangesEditing'),_0x3d9adb=_0x1f012c['plugins']['get']('ImageUtils'),_0x1be863={};_0x468301['enableCommand']('imageStyle',(_0xba94da,_0x416624)=>{const _0x532a29=_0x1f012c['plugins']['get']('Users')['me'],_0x5dcc7=_0x1f012c['commands']['get']('imageStyle');let _0x21ee29=_0x3d9adb['getClosestSelectedImageElement'](_0x1f012c['model']['document']['selection']),_0x26d588=_0x1f012c['model']['createRangeOn'](_0x21ee29),_0x303cd4=_0x5dcc7['value'];if(_0x303cd4==_0x416624['value'])return;const _0xb2e568={'commandName':'imageStyle','commandParams':[_0x416624],'formatGroupId':_0x49332a()};_0x1f012c['model']['change'](()=>{if(_0x468301['getSuggestions']()['filter'](_0x17d253=>_0x17d253['isInContent']&&_0x532a29==_0x17d253['author']&&('formatBlock'==_0x17d253['type']||'formatInline'==_0x17d253['type'])&&('imageStylePreApply'==_0x17d253['subType']||'imageStylePostApply'==_0x17d253['subType'])&&_0x17d253['getFirstRange']()['isEqual'](_0x26d588))['forEach'](_0x527c25=>_0x468301['discardSuggestion'](_0x527c25['head'])),_0x21ee29=_0x3d9adb['getClosestSelectedImageElement'](_0x1f012c['model']['document']['selection']),_0x26d588=_0x1f012c['model']['createRangeOn'](_0x21ee29),_0x5dcc7['refresh'](),_0x1f012c['commands']['get']('imageTypeInline')['refresh'](),_0x1f012c['commands']['get']('imageTypeBlock')['refresh'](),_0x303cd4=_0x5dcc7['value'],_0x303cd4!=_0x416624['value'])return _0x3d9adb['isInlineImage'](_0x21ee29)&&_0x5dcc7['shouldConvertImageType'](_0x416624['value'],_0x21ee29)?(_0xba94da({..._0x416624,'setImageSizes':!0x1}),_0x21ee29=_0x3d9adb['getClosestSelectedImageElement'](_0x1f012c['model']['document']['selection']),void _0x468301['markBlockFormat'](_0x21ee29,{..._0xb2e568,'commandReversedParams':[{'value':_0x303cd4||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3d9adb['isBlockImage'](_0x21ee29)?_0x468301['markBlockFormat'](_0x21ee29,_0xb2e568,[],'imageStylePostApply'):_0x468301['markInlineFormat'](_0x26d588,_0xb2e568,'imageStylePostApply'));});});for(const _0xaeb13a of _0x1f012c['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x1be863[_0xaeb13a['name']]=_0xaeb13a['title']['toLowerCase']();_0x468301['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x468301['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x468301['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x468301['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x30cb39])=>{_0x3d9adb['setImageNaturalSizeAttributes'](_0x30cb39['getContainedElement']());}),_0x468301['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2d129d,_0x33c23f)=>{_0x468301['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2d129d,{'commandName':_0x33c23f['commandName'],'commandParams':_0x33c23f['commandReversedParams']});}),_0x468301['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x9820ce,_0x4fe6da){if(_0x109846(_0x9820ce,_0x4fe6da))return[_0x9820ce,_0x4fe6da];if(_0x109846(_0x4fe6da,_0x9820ce))return[_0x4fe6da,_0x9820ce];return null;});const _0x3d9f82=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x109846(_0xac18a3,_0x3ed781){const _0x430a8d=_0x3d9f82['findIndex'](({type:_0x8e110c,subType:_0x4744fb})=>_0xac18a3['type']==_0x8e110c&&_0xac18a3['subType']==_0x4744fb),_0x18a825=_0x3d9f82['findIndex'](({type:_0xa87e30,subType:_0x10123c})=>_0x3ed781['type']==_0xa87e30&&_0x3ed781['subType']==_0x10123c);if(_0x430a8d<0x0||_0x18a825<0x0)return!0x1;const _0x2b3083=_0xac18a3['getFirstRange'](),_0x233184=_0x3ed781['getFirstRange']();if((0x0==_0x430a8d||0x1==_0x430a8d)&&0x2==_0x18a825&&_0x2b3083['isIntersecting'](_0x233184))return!0x0;if(0x2==_0x430a8d&&0x3==_0x18a825){const _0xe26b86=_0x468301['_findSuggestions'](_0x2b3083,'insertion')['filter'](({suggestion:_0x37ad5d,meta:_0xb9176d})=>_0xb9176d['isOwn']&&'convertInlineImageToBlock'==_0x37ad5d['subType']);if(_0xe26b86['length']>0x1&&_0x233184['end']['isEqual'](_0x2b3083['start']))return!0x0;if(0x1==_0xe26b86['length']&&(_0x2b3083['start']['isEqual'](_0x233184['end'])||_0x2b3083['end']['isEqual'](_0x233184['start'])))return!0x0;}if(0x3==_0x430a8d&&0x3==_0x18a825&&_0x2b3083['start']['isBefore'](_0x233184['start'])){const _0x4da70b=_0x2b3083['end']['nodeAfter'],_0x1a2460=_0x233184['start']['nodeBefore'];return _0x3d9adb['isBlockImage'](_0x4da70b)&&_0x4da70b===_0x1a2460;}return!0x1;}_0x1f012c['model']['document']['registerPostFixer'](()=>{let _0x79ae5f=!0x1;const _0x349cd6=Array['from'](_0x1f012c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2e526d,data:_0x399d08}of _0x349cd6){const {group:_0x22feb2,type:_0x42ce65,subType:_0x35bc6f,id:_0xf967f3}=_0x468301['_splitMarkerName'](_0x2e526d);if('suggestion'==_0x22feb2&&_0x468301['hasSuggestion'](_0xf967f3)){if('formatBlock'==_0x42ce65&&('imageStylePreApply'==_0x35bc6f||'imageStylePostApply'==_0x35bc6f)){const _0x2a1b3c=_0x468301['getSuggestion'](_0xf967f3);if(_0x399d08['newRange']){const _0x8c5a1f=_0x2a1b3c['getFirstRange']()['getContainedElement']();if(_0x3d9adb['isBlockImage'](_0x8c5a1f))continue;_0x468301['discardSuggestion'](_0x2a1b3c),_0x79ae5f=!0x0;}}if('insertion'==_0x42ce65&&'imageCaption'==_0x35bc6f&&!_0x399d08['newRange']){const _0x33ea71=_0x468301['getSuggestion'](_0xf967f3);_0x33ea71['next']&&_0x33ea71['next']['isInContent']&&(_0x468301['discardSuggestion'](_0x33ea71['next']),_0x79ae5f=!0x0);}}}return _0x79ae5f;}),this['_registerLegacyDescription'](_0x1be863);}['_registerLegacyDescription'](_0x282e24){const _0xfe23de=this['editor'],_0x55610e=_0xfe23de['locale'];_0xfe23de['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x148445=>{if('formatBlock'!=_0x148445['type']&&'formatInline'!=_0x148445['type'])return;const {data:_0x4c5790}=_0x148445;if(!_0x4c5790||'imageStyle'!=_0x4c5790['commandName'])return;const _0x105996=_0x4c5790['commandParams'][0x0]['value'];return _0x123835('side'===_0x105996?c(_0x55610e,'FORMAT_SIDE_IMAGE'):_0x282e24[_0x105996]||_0x105996);function _0x123835(_0x55f11f){return{'type':'format','content':c(_0x55610e,'*Format:*\x20%0',_0x55f11f)};}});}}class ut extends _0x5682b5{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x5a4ca3){super(_0x5a4ca3),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0xef2ab8=this['editor'],_0xb3601c=_0xef2ab8['commands']['get']('importWord'),_0x51ee1b=_0xef2ab8['commands']['get']('trackChanges');_0xb3601c&&(_0xb3601c['on']('execute',(_0x33f586,[,_0x74acf0])=>{this['_trackChangesValueDuringImport']=_0x51ee1b['value'],_0x74acf0['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0xb3601c,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0xb3601c,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x51ee1b['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0xef2ab8['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x5c79bf,_0x293a5b){const {suggestions:_0x59054e}=_0x293a5b,_0x514a0e=this['editor']['commands']['get']('trackChanges'),_0xdbfa07=_0x514a0e['value'];this['_trackChangesValueDuringImport']!==_0xdbfa07&&(_0x514a0e['execute'](),this['_trackChangesExecuted']=!0x0),_0x59054e&&_0x59054e['forEach'](({id:_0x11da7e,type:_0x53b484,author:_0x4dec16,created_at:_0x2cffe2})=>{const _0x571285={'id':_0x11da7e,'type':_0x53b484,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x4dec16,'createdAt':_0x2cffe2?new Date(_0x2cffe2):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x571285);});}}class ft extends _0x5682b5{['afterInit'](){const _0x3991de=this['editor'],_0x59ed27=_0x3991de['plugins']['get']('TrackChangesEditing');if(_0x3991de['plugins']['has']('IndentEditing')&&(_0x59ed27['enableCommand']('indent'),_0x59ed27['enableCommand']('outdent')),_0x3991de['plugins']['has']('IndentBlock')){for(const _0x4fa606 of['indentBlock','outdentBlock'])_0x59ed27['enableDefaultAttributesIntegration'](_0x4fa606);}const _0x5bfa50=_0x3991de['locale'];_0x59ed27['registerBlockAttribute']('blockIndent'),_0x59ed27['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x5bfa50,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x113012=this['editor'],_0x28a419=_0x113012['locale'],_0x4625c2=_0x113012['plugins']['get']('TrackChangesEditing');_0x4625c2['descriptionFactory']['registerDescriptionCallback'](_0x53a82e=>{if('formatBlock'!=_0x53a82e['type'])return;const {data:_0x441a57}=_0x53a82e;if(!_0x441a57)return;if('indentBlock'!=_0x441a57['commandName']&&'outdentBlock'!=_0x441a57['commandName'])return;const _0x20da6f=_0x53a82e['getItems']()[0x0],_0x12d8df=_0x4625c2['descriptionFactory']['getItemLabel'](_0x20da6f);return'indentBlock'==_0x441a57['commandName']?{'type':'format','content':c(_0x28a419,'*Indent:*\x20%0',_0x12d8df)}:'outdentBlock'==_0x441a57['commandName']?{'type':'format','content':c(_0x28a419,'*Outdent:*\x20%0',_0x12d8df)}:void 0x0;});}}class ht extends _0x5682b5{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x5682b5{['afterInit'](){const _0x55d749=this['editor'];if(!_0x55d749['plugins']['has']('LinkEditing'))return;const _0x35f44b=_0x55d749['plugins']['get']('TrackChangesEditing'),_0x542508=_0x55d749['commands']['get']('link');_0x35f44b['enableDefaultAttributesIntegration']('link'),_0x35f44b['enableDefaultAttributesIntegration']('unlink'),_0x35f44b['registerInlineAttribute']('linkHref');for(const _0x4e5d14 of _0x542508['manualDecorators'])_0x35f44b['registerInlineAttribute'](_0x4e5d14['id']),_0x35f44b['descriptionFactory']['registerAttributeLabel'](_0x4e5d14['id'],'link\x20('+_0x4e5d14['label']['toLowerCase']()+')');_0x35f44b['descriptionFactory']['registerDescriptionCallback'](_0x35e024=>{if('attribute'!=_0x35e024['type'])return;const {data:_0x30d2db}=_0x35e024;if(!_0x30d2db||'linkHref'!=_0x30d2db['key'])return;const _0x3c5942=_0x30d2db['newValue'],_0x5ab8fb=_0x55d749['locale'];return{'type':'format','content':null==_0x3c5942?c(_0x5ab8fb,'*Remove\x20link*'):c(_0x5ab8fb,'*Set\x20link:*\x20%0','\x22'+_0x3c5942+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3c806c=this['editor'],_0x25e0e6=_0x3c806c['locale'];_0x3c806c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2572f1=>{if('formatInline'!=_0x2572f1['type'])return;const {data:_0x402b56}=_0x2572f1;if(_0x402b56){if('link'==_0x402b56['commandName']){const _0x35b252=_0x402b56['commandParams'][0x0];return{'type':'format','content':c(_0x25e0e6,'*Set\x20link:*\x20%0','\x22'+_0x35b252+'\x22')};}return'unlink'==_0x402b56['commandName']?{'type':'format','content':c(_0x25e0e6,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x5682b5{['afterInit'](){const _0x274c2f=this['editor'],_0x19ac7f=_0x274c2f['locale'];if(!_0x274c2f['plugins']['has']('LegacyListEditing'))return;const _0x8a48fd=_0x274c2f['plugins']['get']('TrackChangesEditing'),_0xf52a8f=_0x274c2f['plugins']['has']('LegacyTodoListEditing');function _0x4020c6(_0x2d36fb){return()=>{const _0xf26302=_0x274c2f['model']['document']['selection'],_0x158239=_0x274c2f['commands']['get'](_0x2d36fb);if(_0x158239['value'])return void _0x274c2f['execute']('paragraph',{});const _0x9b53d4=_0x2d36fb['slice'](0x0,-0x4),_0x192d52=function(_0x27a42d,_0x547727,_0x5c3340){let _0x1ed849=Array['from'](_0x27a42d)['filter'](_0x44e04c=>function(_0x3cfa4d,_0x5ea2b3){return _0x5ea2b3['checkChild'](_0x3cfa4d['parent'],'listItem')&&!_0x5ea2b3['isObject'](_0x3cfa4d);}(_0x44e04c,_0x5c3340));_0x1ed849=_0x1ed849['filter'](_0x39ab57=>!_0x39ab57['is']('element','listItem')||_0x39ab57['getAttribute']('listType')!=_0x547727);const _0x2d450f=new Set();for(const _0x1d2190 of _0x1ed849)_0x1d2190['is']('element','listItem')?_0x2d450f['add'](Le(_0x1d2190)):_0x2d450f['add'](_0x1d2190);return Array['from'](_0x2d450f);}(_0xf26302['getSelectedBlocks'](),_0x9b53d4,_0x274c2f['model']['schema']);_0x274c2f['model']['change'](()=>{for(const _0x230640 of _0x192d52)_0x8a48fd['markBlockFormat'](_0x230640,{'commandName':_0x2d36fb,'commandParams':[{'forceValue':!_0x158239['value']}],'formatGroupId':'blockName'},Ee(_0x230640));});};}function _0x2e30bd(_0x136027){return()=>{const _0x1c0457=function(_0x1d7be7){let _0x3781c2=Array['from'](_0x1d7be7);const _0x20a055=_0x3781c2['findIndex'](_0x418ff7=>'listItem'!=_0x418ff7['name']);return _0x20a055>-0x1&&(_0x3781c2=_0x3781c2['slice'](0x0,_0x20a055)),_0x3781c2;}(_0x274c2f['model']['document']['selection']['getSelectedBlocks']()),_0x207553=_0x274c2f['model']['createRange'](_0x274c2f['model']['createPositionAt'](_0x1c0457[0x0],'before'),_0x274c2f['model']['createPositionAt'](_0x1c0457[_0x1c0457['length']-0x1],'end'));_0x274c2f['model']['change'](()=>{_0x8a48fd['markBlockFormat'](_0x207553,{'commandName':_0x136027,'commandParams':[],'formatGroupId':'listIndent'},function(_0x45d1c5){const _0x2d0cbe=new Set();for(const _0x3b868f of _0x45d1c5){let _0x2ec879=_0x3b868f['nextSibling'];for(;_0x2ec879&&_0x2ec879['getAttribute']('listIndent')>_0x3b868f['getAttribute']('listIndent');)_0x2d0cbe['add'](_0x2ec879),_0x2ec879=_0x2ec879['nextSibling'];}return Array['from'](_0x2d0cbe);}(_0x1c0457));});};}_0x8a48fd['enableCommand']('numberedList',_0x4020c6('numberedList')),_0x8a48fd['enableCommand']('bulletedList',_0x4020c6('bulletedList')),_0xf52a8f&&_0x8a48fd['enableCommand']('todoList',_0x4020c6('todoList')),_0x8a48fd['enableCommand']('indentList',_0x2e30bd('indentList')),_0x8a48fd['enableCommand']('outdentList',_0x2e30bd('outdentList')),_0xf52a8f&&_0x8a48fd['enableCommand']('checkTodoList',()=>{const _0x4aa5db=_0x274c2f['commands']['get']('checkTodoList'),_0x4ab915=Array['from'](_0x4aa5db['_selectedElements']);_0x4ab915['filter'](_0x2845d8=>_0x2845d8['getAttribute']('todoListChecked')!=_0x4aa5db['value']),_0x274c2f['model']['change'](()=>{for(const _0xaf7308 of _0x4ab915)_0x8a48fd['markBlockFormat'](_0xaf7308,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x4aa5db['value']}]});});}),_0x8a48fd['descriptionFactory']['registerElementLabel']('listItem',_0xb2e475=>c(_0x19ac7f,'ELEMENT_LIST_ITEM',_0xb2e475)),_0x8a48fd['descriptionFactory']['registerDescriptionCallback'](_0x403cc0=>{if('formatBlock'!=_0x403cc0['type']&&'formatInline'!=_0x403cc0['type'])return;const {data:_0x1f4ccc}=_0x403cc0;if(_0x1f4ccc){if('numberedList'==_0x1f4ccc['commandName']||'bulletedList'==_0x1f4ccc['commandName']||'todoList'==_0x1f4ccc['commandName'])switch(_0x1f4ccc['commandName']['replace']('List','')){case'bulleted':return _0x1fff95(c(_0x19ac7f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1fff95(c(_0x19ac7f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1fff95(c(_0x19ac7f,'ELEMENT_TODO_LIST'));}if('indentList'==_0x1f4ccc['commandName'])return{'type':'format','content':c(_0x19ac7f,'*Indent:*\x20%0',c(_0x19ac7f,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x1f4ccc['commandName'])return{'type':'format','content':c(_0x19ac7f,'*Outdent:*\x20%0',c(_0x19ac7f,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x1f4ccc['commandName'])return _0x1f4ccc['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x19ac7f,'*Check\x20item*')}:{'type':'format','content':c(_0x19ac7f,'*Uncheck\x20item*')};}function _0x1fff95(_0x195ee9){return{'type':'format','content':c(_0x19ac7f,'*Change\x20to:*\x20%0',_0x195ee9)};}});}}function Le(_0x2d6bf3){const _0x4dbc55=_0x2d6bf3['getAttribute']('listIndent');if(0x0==_0x4dbc55)return _0x2d6bf3;let _0x145e9a=_0x2d6bf3;for(;_0x2d6bf3['previousSibling']&&_0x2d6bf3['previousSibling']['is']('element','listItem');){const _0x10598f=_0x2d6bf3['previousSibling']['getAttribute']('listIndent');if(_0x10598f==_0x4dbc55)_0x145e9a=_0x2d6bf3['previousSibling'];else{if(_0x10598f<_0x4dbc55)break;}_0x2d6bf3=_0x2d6bf3['previousSibling'];}return _0x145e9a;}function Ee(_0x561b43){const _0xc624ee=[];if(_0x561b43['is']('element','listItem')&&_0x561b43['getAttribute']('listIndent')>0x0){let _0x44af4f=_0x561b43['nextSibling'];for(;_0x44af4f&&'listItem'==_0x44af4f['name']&&_0x44af4f['getAttribute']('listIndent')==_0x561b43['getAttribute']('listIndent');)_0xc624ee['push'](_0x44af4f),_0x44af4f=_0x44af4f['nextSibling'];}return _0xc624ee;}class Q extends _0x5682b5{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x59df8f=this['editor']['config']['get']('list.properties'),_0x1b5edd=this['editor']['plugins']['get']('TrackChangesEditing');_0x59df8f['styles']&&_0x1b5edd['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x59df8f['reversed']&&_0x1b5edd['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x59df8f['startIndex']&&_0x1b5edd['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1b5edd['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x545701,_0x1ef93d={}){const _0x420c16=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4546db=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x420c16['markMultiRangeBlockFormat'](_0x4546db,{'commandName':'listStyle','commandParams':[{'type':_0x1ef93d['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x414c25,_0x595f7a={}){const _0x287f80=this['editor']['plugins']['get']('TrackChangesEditing'),_0x40ec74=this['_getSuggestionBlocks'](_0x3bfdbe=>_0x3bfdbe['is']('element','listItem')&&'numbered'===_0x3bfdbe['getAttribute']('listType'));if(_0x40ec74['length']<0x1)return;const _0x24f8ee=_0x40ec74['map'](_0x5180f6=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5180f6,'before'),this['editor']['model']['createPositionAt'](_0x5180f6,0x0)));this['editor']['model']['change'](()=>{_0x287f80['markMultiRangeBlockFormat'](_0x24f8ee,{'commandName':'listReversed','commandParams':[{'reversed':_0x595f7a['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x2d1617,_0x3e41ea={}){const _0x88263f=this['editor']['plugins']['get']('TrackChangesEditing'),_0xc635e6=this['_getSuggestionBlocks'](_0x5079c6=>_0x5079c6['is']('element','listItem')&&'numbered'===_0x5079c6['getAttribute']('listType'));if(_0xc635e6['length']<0x1)return;const _0x576b32=_0xc635e6['map'](_0x342de4=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x342de4,'before'),this['editor']['model']['createPositionAt'](_0x342de4,0x0)));this['editor']['model']['change'](()=>{_0x88263f['markMultiRangeBlockFormat'](_0x576b32,{'commandName':'listStart','commandParams':[{'startIndex':_0x3e41ea['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x3d04aa){if('formatBlock'!=_0x3d04aa['type']&&'formatInline'!=_0x3d04aa['type'])return;const _0x1fab2f=this['editor']['locale'],{data:_0x55ce1c}=_0x3d04aa;if(!_0x55ce1c)return;let _0x43cf5c,_0x4c260c;switch(_0x55ce1c['commandName']){case'listStyle':_0x43cf5c='*Change\x20to:*\x20%0',_0x4c260c={'type':'format','content':c(_0x1fab2f,_0x43cf5c,c(_0x1fab2f,this['_getTranslationKeyForListStyle'](_0x55ce1c['commandParams'][0x0]['type'])))};break;case'listReversed':_0x43cf5c=_0x55ce1c['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4c260c={'type':'format','content':c(_0x1fab2f,_0x43cf5c)};break;case'listStart':_0x43cf5c='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4c260c={'type':'format','content':c(_0x1fab2f,_0x43cf5c,_0x55ce1c['commandParams'][0x0]['startIndex'])};}return _0x4c260c;}['_getSuggestionBlocksForListStyle'](){const _0x1f2487=this['editor']['plugins']['get']('LegacyListUtils');let _0x144f59=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x144f59[0x0]?.['is']('element','listItem')&&_0x144f59['unshift'](..._0x1f2487['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x144f59[_0x144f59['length']-0x1]?.['is']('element','listItem')&&_0x144f59['push'](..._0x1f2487['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x144f59=[...new Set(_0x144f59)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x144f59=_0x144f59['filter'](_0x27cf0c=>_0x27cf0c['is']('element','listItem'))),_0x144f59;}['_getSuggestionBlocks'](_0x471fc1){const _0x5596a2=this['editor']['plugins']['get']('LegacyListUtils');let _0x1e9b53=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x471fc1)['map'](_0x1392a3=>{const _0x261e22=this['editor']['model']['createPositionAt'](_0x1392a3,0x0);return[..._0x5596a2['getSiblingNodes'](_0x261e22,'backward'),..._0x5596a2['getSiblingNodes'](_0x261e22,'forward')];})['flat']();return _0x1e9b53=[...new Set(_0x1e9b53)],_0x1e9b53;}['_getTranslationKeyForListStyle'](_0xcaae85){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0xcaae85)||'default')['toUpperCase']()+'_LIST_'+_0xcaae85['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x5682b5{['afterInit'](){const _0x3762c5=this['editor'];if(!_0x3762c5['plugins']['has']('MediaEmbedEditing'))return;const _0x1ad126=_0x3762c5['plugins']['get']('TrackChangesEditing'),_0x54ba81=_0x3762c5['locale'];_0x1ad126['enableCommand']('mediaEmbed'),_0x1ad126['descriptionFactory']['registerElementLabel']('media',_0x24dce3=>c(_0x54ba81,'ELEMENT_MEDIA',_0x24dce3)),_0x3762c5['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4ccc0d,{writer:_0x2bb745,options:_0x5696a})=>{if(_0x5696a['showSuggestionHighlights'])return _0x2bb745['createEmptyElement']('div');},'converterPriority':'high'}),_0x3762c5['data']['downcastDispatcher']['on']('attribute:url:media',(_0x478e68,_0x14f1d8,_0x4eec48)=>{_0x4eec48['options']['showSuggestionHighlights']&&_0x478e68['stop']();},{'priority':'high'});}}class pt extends _0x5682b5{['afterInit'](){const _0x3bd580=this['editor'];_0x3bd580['plugins']['has']('MentionEditing')&&_0x3bd580['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x5682b5{['afterInit'](){const _0x309276=this['editor'];if(!_0x309276['plugins']['has']('MergeFieldsEditing'))return;const _0x51b60f=_0x309276['plugins']['get']('TrackChangesEditing'),_0x2dde59=_0x309276['locale'];_0x51b60f['enableCommand']('insertMergeField'),_0x51b60f['enableCommand']('insertMergeFieldBlock'),_0x51b60f['enableCommand']('insertMergeFieldImage'),_0x51b60f['descriptionFactory']['registerElementLabel']('mergeField',_0x3d117b=>c(_0x2dde59,'ELEMENT_MERGE_FIELD',_0x3d117b)),_0x51b60f['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x36706c=>c(_0x2dde59,'ELEMENT_MERGE_FIELD',_0x36706c)),_0x51b60f['descriptionFactory']['registerDescriptionCallback'](_0x6583d5=>{if('insertion'!=_0x6583d5['type']&&'deletion'!=_0x6583d5['type'])return;const _0x14049b=_0x6583d5['getContainedElement']();if(null==_0x14049b)return;const _0x282162=_0x309276['plugins']['get']('MergeFieldsEditing');let _0x3dcb1e;switch(_0x282162['getMergeFieldType'](_0x14049b)){case null:return;case'image':{const _0x4fd97f=_0x282162['unwrapAffixes'](_0x14049b['getAttribute']('src'));_0x3dcb1e=_0x282162['getLabel'](_0x4fd97f)||_0x4fd97f;break;}default:{const _0x2157df=_0x14049b['getAttribute']('id');_0x3dcb1e=_0x282162['getLabel'](_0x2157df)||_0x2157df;break;}}return'insertion'==_0x6583d5['type']?{'type':'insertion','content':c(_0x2dde59,'*Insert:*\x20%0','\x22'+_0x3dcb1e+'\x22\x20'+c(_0x2dde59,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x2dde59,'*Remove:*\x20%0','\x22'+_0x3dcb1e+'\x22\x20'+c(_0x2dde59,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x5682b5{['afterInit'](){const _0x228eab=this['editor'],_0x567a0d=_0x228eab['plugins']['get']('TrackChangesEditing');_0x228eab['plugins']['has']('MultiLevelList')&&(_0x567a0d['enableDefaultAttributesIntegration']('multiLevelList'),_0x567a0d['registerBlockAttribute']('listMarkerStyle'),_0x567a0d['descriptionFactory']['registerDescriptionCallback'](_0x9c8b0d=>this['handleDescriptions'](_0x9c8b0d)));}['handleDescriptions'](_0x3db1e6){const _0xd93229=this['editor']['locale'],{data:_0x557dcd}=_0x3db1e6,_0x19ed2d={'type':'format','content':''};if(_0x557dcd&&'listMarkerStyle'==_0x557dcd['key']){if(!_0x557dcd['oldValue'])return{'type':'format','content':c(_0xd93229,'*Set\x20format:*\x20%0',c(_0xd93229,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x557dcd['newValue']+')'};if(!_0x557dcd['newValue']){let _0x4185a3=_0x3db1e6['head'];for(;_0x4185a3;){if(_0x4185a3['data']&&'listType'==_0x4185a3['data']['key']&&_0x4185a3['data']['newValue'])return _0x19ed2d;_0x4185a3=_0x4185a3['next'];}return{'type':'format','content':c(_0xd93229,'*Remove\x20format:*\x20%0',c(_0xd93229,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x557dcd['oldValue']+')'};}}}}class bt extends _0x5682b5{['afterInit'](){const _0x1cba2b=this['editor'];if(!_0x1cba2b['plugins']['has']('PageBreakEditing'))return;_0x1cba2b['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x192cac=_0x1cba2b['plugins']['get']('TrackChangesEditing'),_0x47ac30=_0x1cba2b['locale'];_0x192cac['descriptionFactory']['registerElementLabel']('pageBreak',_0x567200=>c(_0x47ac30,'ELEMENT_PAGE_BREAK',_0x567200));}}class yt extends _0x5682b5{['afterInit'](){const _0x1ff689=this['editor'];if(!_0x1ff689['plugins']['has']('Paragraph'))return;const _0x33446e=_0x1ff689['locale'],_0x26372a=_0x1ff689['plugins']['get']('TrackChangesEditing');_0x26372a['descriptionFactory']['registerElementLabel']('paragraph',_0xa7d443=>c(_0x33446e,'ELEMENT_PARAGRAPH',_0xa7d443)),_0x26372a['enableDefaultAttributesIntegration']('paragraph'),_0x26372a['enableCommand']('insertParagraph'),_0x1ff689['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x1ff689),{'priority':'highest'}),_0x1ff689['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x46d8b7,_0x2c69d6,_0x2efecb)=>{_0x2efecb['options']['showSuggestionHighlights']&&nr(_0x1ff689,{'showActiveMarker':!0x1})(_0x46d8b7,_0x2c69d6,_0x2efecb);},{'priority':'highest'});const _0x91e271=_0x26372a['descriptionFactory'];_0x91e271['registerDescriptionCallback'](_0x1dd426=>{if('insertion'!==_0x1dd426['type'])return;const {start:_0x2a4d27,end:_0x205df8}=_0x1dd426['getFirstRange']();if(!_0x2a4d27['isTouching'](_0x205df8)||!_0x2a4d27['nodeAfter'])return;const _0x35db28=_0x1ff689['model']['schema'],_0x1b5e57=_0x2a4d27['nodeAfter'];return _0x35db28['isBlock'](_0x1b5e57)&&!_0x35db28['isLimit'](_0x1b5e57)&&_0x35db28['checkChild'](_0x1b5e57,'$text')?{'type':'insertion','content':c(_0x33446e,'*Insert:*\x20%0',_0x91e271['getItemLabel'](_0x1b5e57,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5ecab8=this['editor'],_0x4b8174=_0x5ecab8['locale'];_0x5ecab8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x40672a=>{if('formatBlock'!=_0x40672a['type'])return;const {data:_0x1aac75}=_0x40672a;return _0x1aac75&&'paragraph'==_0x1aac75['commandName']?{'type':'format','content':c(_0x4b8174,'*Change\x20to:*\x20%0',c(_0x4b8174,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0xbec8f,{showActiveMarker:_0x4ff3a7=!0x0}={}){return(_0x7b4ae4,_0x10b80c,_0x17d830)=>{const _0x1ed988=_0xbec8f['plugins']['get']('TrackChangesEditing'),_0x57b42f=_0x10b80c['markerRange']['start'],_0x43e9f0=_0x10b80c['markerRange']['end'],_0x23ebc4=_0xbec8f['model']['schema'];if(!_0x57b42f['isTouching'](_0x43e9f0)||!_0x57b42f['nodeAfter'])return;const _0x4daf7f=_0x57b42f['nodeAfter'];if(_0x23ebc4['isBlock'](_0x4daf7f)&&!_0x23ebc4['isLimit'](_0x4daf7f)&&_0x23ebc4['checkChild'](_0x4daf7f,'$text')){if(!_0x17d830['consumable']['consume'](_0x10b80c['markerRange'],_0x7b4ae4['name']))return;const {authorId:_0x4b0cdf}=_0x1ed988['_splitMarkerName'](_0x10b80c['markerName']),_0x8b1a27=_0x17d830['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x4b0cdf}),_0x59529a=_0x17d830['mapper']['toViewPosition'](_0x43e9f0);_0x4ff3a7&&_0x1ed988['activeMarkers']['includes'](_0x10b80c['markerName'])&&_0x17d830['writer']['addClass']('ck-suggestion-marker--active',_0x8b1a27),_0x17d830['writer']['insert'](_0x59529a,_0x8b1a27),_0x17d830['mapper']['bindElementToMarker'](_0x8b1a27,_0x10b80c['markerName']);}};}class jt extends _0x5682b5{['afterInit'](){const _0x178fe9=this['editor'];_0x178fe9['commands']['get']('replaceSource')&&_0x178fe9['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x5682b5{['afterInit'](){const _0x29cb47=this['editor'];if(!_0x29cb47['plugins']['has']('RemoveFormatEditing'))return;_0x29cb47['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5ed84f=this['editor'];_0x5ed84f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b2e1c=>{if('formatBlock'!=_0x5b2e1c['type']&&'formatInline'!=_0x5b2e1c['type'])return;const {data:_0x4e0b98}=_0x5b2e1c;return _0x4e0b98&&'removeFormat'==_0x4e0b98['commandName']?{'type':'format','content':c(_0x5ed84f['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x5682b5{['afterInit'](){const _0x3d2b51=this['editor'];if(!_0x3d2b51['plugins']['has']('RestrictedEditingModeEditing'))return;const _0xce440a=_0x3d2b51['plugins']['get']('TrackChangesEditing');_0xce440a['enableCommand']('goToPreviousRestrictedEditingException'),_0xce440a['enableCommand']('goToNextRestrictedEditingException');const _0x94a03=_0x3d2b51['plugins']['get']('RestrictedEditingModeEditing');_0x94a03['enableCommand']('trackChanges'),_0x94a03['enableCommand']('acceptSuggestion'),_0x94a03['enableCommand']('discardSuggestion'),_0x94a03['enableCommand']('acceptAllSuggestions'),_0x94a03['enableCommand']('discardAllSuggestions'),_0x94a03['enableCommand']('acceptSelectedSuggestions'),_0x94a03['enableCommand']('discardSelectedSuggestions');}}class It extends _0x5682b5{['afterInit'](){const _0x4e5942=this['editor'];if(!_0x4e5942['plugins']['has']('ShiftEnter'))return;const _0x34228e=_0x4e5942['plugins']['get']('TrackChangesEditing');_0x34228e['enableCommand']('shiftEnter'),_0x4e5942['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x4e5942),{'priority':'high'}),_0x4e5942['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x4e5942),{'priority':'high'}),_0x4e5942['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3cacd0,_0x1b4684,_0x2b7c3f)=>{_0x2b7c3f['options']['showSuggestionHighlights']&&je(_0x4e5942,{'showActiveMarker':!0x1})(_0x3cacd0,_0x1b4684,_0x2b7c3f);}),_0x34228e['descriptionFactory']['registerElementLabel']('softBreak',_0x189029=>c(_0x4e5942['locale'],'ELEMENT_LINE_BREAK',_0x189029));}}function je(_0x408706,{showActiveMarker:_0x11f7d6=!0x0}={}){return(_0x3ea642,_0x5457f1,_0x135644)=>{const _0x1a59b4=_0x408706['plugins']['get']('TrackChangesEditing');if(!_0x135644['consumable']['test'](_0x5457f1['markerRange'],_0x3ea642['name']))return;const _0x55d443=_0x408706['model'];for(const _0x4cc941 of _0x5457f1['markerRange']['getItems']()){if(!_0x4cc941['is']('element','softBreak'))continue;const _0x23b0da='deletion'==_0x5457f1['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x58c86b}=_0x1a59b4['_splitMarkerName'](_0x5457f1['markerName']),_0x6d2f18=_0x135644['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x23b0da,'data-author-id':_0x58c86b}),_0x5e33b9=_0x135644['mapper']['toViewPosition'](_0x55d443['createPositionBefore'](_0x4cc941));_0x11f7d6&&_0x1a59b4['activeMarkers']['includes'](_0x5457f1['markerName'])&&_0x135644['writer']['addClass']('ck-suggestion-marker--active',_0x6d2f18),_0x135644['writer']['insert'](_0x5e33b9,_0x6d2f18),_0x135644['mapper']['bindElementToMarker'](_0x6d2f18,_0x5457f1['markerName']);}};}class _t extends _0x5682b5{['afterInit'](){const _0x4a8138=this['editor'],_0x40eac3=_0x4a8138['model'],_0x5858b6=_0x4a8138['locale'];if(!_0x4a8138['plugins']['has']('StandardEditingModeEditing'))return;const _0x559b7e=_0x4a8138['plugins']['get']('TrackChangesEditing'),_0x3edfe7='restrictedEditingException',_0x23dafc=_0x4a8138['commands']['get'](_0x3edfe7);_0x559b7e['enableCommand'](_0x3edfe7,(_0x10b374,_0x38365={})=>{const _0x2e7ae5=_0x40eac3['document']['selection'];if(_0x2e7ae5['isCollapsed'])return void _0x10b374(_0x38365);const _0x55e99c=void 0x0!==_0x38365['forceValue']?_0x38365['forceValue']:!_0x23dafc['value'];_0x40eac3['change'](()=>{const _0x17a75a=Array['from'](_0x2e7ae5['getRanges']());for(const _0x3be350 of _0x17a75a){const _0x417964=_0x55e99c?[_0x3be350]:io(_0x3edfe7,_0x3be350,_0x40eac3);for(const _0x1d41c5 of _0x417964)_0x559b7e['markInlineFormat'](_0x1d41c5,{'commandName':_0x3edfe7,'commandParams':[{'forceValue':_0x55e99c}]});}});}),_0x559b7e['descriptionFactory']['registerDescriptionCallback'](_0x4815f8=>{if('formatBlock'!=_0x4815f8['type']&&'formatInline'!=_0x4815f8['type'])return;const {data:_0x41eb60}=_0x4815f8;return _0x41eb60&&_0x41eb60['commandName']==_0x3edfe7?_0x41eb60['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x5858b6,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x5858b6,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x5682b5{['afterInit'](){const _0x56ee78=this['editor'];if(!_0x56ee78['plugins']['has']('Style')||!_0x56ee78['plugins']['has']('DataSchema'))return;const _0x53f11f=_0x56ee78['plugins']['get']('TrackChangesEditing'),_0xb87f2=_0x56ee78['locale'],_0x5b6575=_0x56ee78['config']['get']('style')||{},_0x1679a5=_0x56ee78['plugins']['get']('GeneralHtmlSupport'),_0x2fafae=_0x56ee78['plugins']['get']('StyleUtils')['normalizeConfig'](_0x56ee78['plugins']['get']('DataSchema'),_0x5b6575['definitions']);_0x53f11f['enableDefaultAttributesIntegration']('style');const _0x49279c=new Set();for(const _0x273b24 of _0x2fafae['block']){const _0xbf4da1=_0x1679a5['getGhsAttributeNameForElement'](_0x273b24['element']);_0x49279c['add'](_0xbf4da1);}const _0x3efb0b=new Set();for(const _0x1e15b8 of _0x2fafae['inline']){const _0x38f849=_0x1679a5['getGhsAttributeNameForElement'](_0x1e15b8['element']);_0x3efb0b['add'](_0x38f849);for(const _0x2268f2 of _0x1e15b8['ghsAttributes'])_0x3efb0b['add'](_0x2268f2);}for(const _0x4a2674 of _0x49279c)_0x53f11f['registerBlockAttribute'](_0x4a2674),_0x53f11f['descriptionFactory']['registerAttributeLabel'](_0x4a2674,c(_0xb87f2,'FORMAT_STYLE'));for(const _0x264678 of _0x3efb0b)_0x53f11f['registerInlineAttribute'](_0x264678),_0x53f11f['descriptionFactory']['registerAttributeLabel'](_0x264678,c(_0xb87f2,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x38fe5b=this['editor'],_0x392986=_0x38fe5b['locale'];_0x38fe5b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x25d184=>{if('formatBlock'!=_0x25d184['type']&&'formatInline'!=_0x25d184['type'])return;const {data:_0x4052ac}=_0x25d184;return _0x4052ac&&'style'===_0x4052ac['commandName']?_0x4052ac['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x392986,'*Set\x20format:*\x20%0',_0x4052ac['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x392986,'*Remove\x20format:*\x20%0',_0x4052ac['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x5682b5{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x24238c){super(_0x24238c),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x3ad196=this['editor'],_0x2d7ae6=_0x3ad196['model']['document']['selection'];if(!_0x3ad196['plugins']['has']('TableEditing'))return;const _0x3a99a1=_0x3ad196['locale'],_0x5e51b2=_0x3ad196['plugins']['get']('TrackChangesEditing'),_0x4b81ea=_0x3ad196['plugins']['get']('TableUtils');_0x5e51b2['descriptionFactory']['registerElementLabel']('table',_0x293753=>c(_0x3a99a1,'ELEMENT_TABLE',_0x293753)),this['_setupColumnsRowsFixing'](),_0x5e51b2['enableCommand']('insertTable'),_0x5e51b2['enableCommand']('selectTableRow'),_0x5e51b2['enableCommand']('selectTableColumn');for(const _0x1c7037 of['insertTableRowAbove','insertTableRowBelow']){const _0x3ae888=_0x3ad196['commands']['get'](_0x1c7037);_0x5e51b2['enableCommand'](_0x1c7037,_0x25a462=>{_0x3ad196['model']['change'](_0x4d6534=>{_0x25a462();const _0x20c3e2='above'===_0x3ae888['order'],_0x3881e3=_0x4b81ea['getSelectionAffectedTableCells'](_0x2d7ae6),_0x42d01f=_0x4b81ea['getRowIndexes'](_0x3881e3),_0x48a490=_0x20c3e2?_0x42d01f['first']-0x1:_0x42d01f['last']+0x1,_0x12957d=_0x3881e3[0x0]['findAncestor']('table'),_0x2772f8=_0x4b81ea['createTableWalker'](_0x12957d,{'startRow':_0x48a490,'endRow':_0x48a490}),_0x50154a=Array['from'](_0x2772f8)['map'](_0x57928e=>_0x4d6534['createRangeOn'](_0x57928e['cell']));_0x5e51b2['markMultiRangeInsertion'](_0x50154a,'tableRow');});});}for(const _0x364587 of['insertTableColumnLeft','insertTableColumnRight']){const _0x4b8cd7=_0x3ad196['commands']['get'](_0x364587);_0x5e51b2['enableCommand'](_0x364587,_0x28bece=>{_0x3ad196['model']['change'](_0x12559c=>{_0x28bece();const _0x13de78='left'===_0x4b8cd7['order'],_0x1f3188=_0x4b81ea['getSelectionAffectedTableCells'](_0x2d7ae6),_0x2a0ff4=_0x4b81ea['getColumnIndexes'](_0x1f3188),_0x3f55f1=_0x13de78?_0x2a0ff4['first']-0x1:_0x2a0ff4['last']+0x1,_0x253b44=_0x1f3188[0x0]['findAncestor']('table'),_0x13c22d=_0x4b81ea['createTableWalker'](_0x253b44,{'startRow':0x0,'column':_0x3f55f1,'includeAllSlots':!0x1}),_0x350116=Array['from'](_0x13c22d)['map'](_0x2a9b28=>_0x12559c['createRangeOn'](_0x2a9b28['cell']));_0x5e51b2['markMultiRangeInsertion'](_0x350116,'tableColumn');});});}for(const _0x4db1af of['removeTableRow','removeTableColumn']){const _0x58efb6=_0x4db1af['substr'](0xb),_0x38aabb=_0x58efb6['toLowerCase'](),_0x220bb0=_0x38aabb['substr'](0x0,0x3)+'span',_0x108698='table'+_0x58efb6,_0x3085dc='min'+_0x58efb6,_0x2a480c='max'+_0x58efb6;_0x5e51b2['enableCommand'](_0x4db1af,()=>{_0x3ad196['model']['change'](_0xb541e4=>{const _0x4ed103=_0x4b81ea['getSelectionAffectedTableCells'](_0x2d7ae6),_0x21f29b=_0x4ed103[0x0]['findAncestor']('table');let _0x343078;if('removeTableRow'==_0x4db1af){const _0x2ec41b=_0x4b81ea['getRowIndexes'](_0x4ed103);_0x343078={'startRow':_0x2ec41b['first'],'endRow':_0x2ec41b['last'],'includeAllSlots':!0x0};}else{const _0x1c82ef=_0x4b81ea['getColumnIndexes'](_0x4ed103);_0x343078={'startColumn':_0x1c82ef['first'],'endColumn':_0x1c82ef['last'],'includeAllSlots':!0x0};}const _0x3bcdd7=_0x4b81ea['createTableWalker'](_0x21f29b,_0x343078),_0x40a804=Array['from'](_0x3bcdd7)['map'](({cell:_0x376f01})=>_0x376f01),_0x5ea01a=Ne(_0x40a804['filter'](_0x2b275e=>_0x2b275e['hasAttribute'](_0x220bb0))),_0x16fafc=Ne(_0x40a804['filter'](_0x5ccc1a=>!_0x5ccc1a['hasAttribute'](_0x220bb0)))['map'](_0x55378c=>_0xb541e4['createRangeOn'](_0x55378c)),_0x21dbfa=_0x5e51b2['markMultiRangeDeletion'](_0x16fafc,_0x108698);if(_0x21dbfa&&('tableRow'==_0x21dbfa['subType']||'tableColumn'==_0x21dbfa['subType'])){const _0x3ec0ef=this['_getSuggestionCoords'](_0x21dbfa);for(const _0x2c3bf3 of _0x5ea01a){const _0x1259f7=_0xb541e4['createRangeOn'](_0x2c3bf3),_0x312923=_0x4b81ea['getCellLocation'](_0x2c3bf3),_0x5b2136=_0x2c3bf3['getAttribute'](_0x220bb0)-0x1,_0x5eca78=_0x3ec0ef[_0x3085dc],_0x464cf1=_0x3ec0ef[_0x2a480c];_0x5eca78<=_0x312923[_0x38aabb]&&_0x312923[_0x38aabb]+_0x5b2136<=_0x464cf1&&_0x21dbfa['addRange'](_0x1259f7);}}});});}function _0x249150(_0x5e16cb){const _0x22c0bc=Array['from'](_0x2d7ae6['getRanges']())['map'](_0x3fda5f=>_0x28bdcd['fromRange'](_0x3fda5f));_0x3ad196['model']['change'](_0x3bf916=>{const _0xbdefa=_0x3bf916['batch'];_0x5e16cb=_0x5e16cb['filter'](_0x1faaa3=>'$graveyard'!=_0x1faaa3['root']['rootName']),_0x3bf916['setSelection'](_0x5e16cb),_0x3ad196['commands']['get']('removeTableRow')['refresh'](),_0x3ad196['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x3ad196['model']['enqueueChange'](()=>{_0x3ad196['model']['enqueueChange'](_0xbdefa,_0x1301d6=>{const _0x81d25d=_0x22c0bc['filter'](_0x208df4=>'$graveyard'!=_0x208df4['root']['rootName']);_0x81d25d['length']>0x0&&_0x1301d6['setSelection'](_0x81d25d);for(const _0x1a5971 of _0x22c0bc)_0x1a5971['detach']();});});});}function _0x16afc6(_0x3e92d0){_0x3ad196['model']['change'](_0x309a85=>{const _0xeb7bc1=Array['from'](_0x2d7ae6['getRanges']())['map'](_0x5d2c60=>_0x28bdcd['fromRange'](_0x5d2c60)),_0x116ce4=[];for(const _0x5cd1a1 of _0x3e92d0)for(const _0x5a051e of _0x5cd1a1['getItems']({'shallow':!0x0}))_0x116ce4['push'](_0x5a051e);for(const _0x510130 of _0x116ce4)'$graveyard'!=_0x510130['root']['rootName']&&(_0x309a85['setSelection'](_0x309a85['createPositionAt'](_0x510130,0x0)),_0x3ad196['commands']['get']('removeTableColumn')['refresh'](),_0x3ad196['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x5f5952=_0xeb7bc1['filter'](_0x3f00dd=>'$graveyard'!=_0x3f00dd['root']['rootName']);_0x5f5952['length']>0x0&&_0x309a85['setSelection'](_0x5f5952);for(const _0x5e3459 of _0xeb7bc1)_0x5e3459['detach']();});}function _0x30ae12(_0x191b16,_0x43d10f){return _0x43d10f['every'](_0x1845bb=>_0x191b16['some'](_0x7e6f36=>_0x7e6f36['end']['isEqual'](_0x1845bb['start'])||_0x1845bb['end']['isEqual'](_0x7e6f36['start'])));}function _0x4dbd5f(_0x8fad77,_0x564efc){return!_0x8fad77['some'](_0x1ff864=>_0x564efc['some'](_0x3f826d=>_0x1ff864['isIntersecting'](_0x3f826d)))&&_0x8fad77['some'](_0x205df4=>_0x564efc['some'](_0x54597a=>_0x205df4['end']['isTouching'](_0x54597a['start'])));}_0x3ad196['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x460f62,_0x3ddc77,_0x4200a3)=>{if(!_0x4200a3['options']['showSuggestionHighlights'])return;const _0x23cb86=_0x3ddc77['item'];if(!_0x23cb86)return;const _0x36c8e3=_0x4200a3['mapper']['toViewElement'](_0x23cb86);function _0x496812(_0x4c54a8){return Array['isArray'](_0x4c54a8)?_0x4c54a8:[_0x4c54a8];}_0x36c8e3&&'tableCell'===_0x23cb86['name']&&_0x1a800b(_0x36c8e3,_0x4200a3['writer'],(_0x561d55,_0x5734c0,_0x5dc7d2)=>_0x5dc7d2['addClass'](_0x496812(_0x5734c0['classes']),_0x561d55),(_0x67b52d,_0x2106e0,_0x5a5720)=>_0x5a5720['removeClass'](_0x496812(_0x2106e0['classes']),_0x67b52d));},{'priority':'highest'}),_0x5e51b2['descriptionFactory']['registerDescriptionCallback'](_0x51b4f6=>{if('insertion'!=_0x51b4f6['type']&&'deletion'!=_0x51b4f6['type'])return;const _0x5089cf=_0x51b4f6['getContainedElement']();if(null!=_0x5089cf&&_0x5089cf['is']('element','table')){if('insertion'==_0x51b4f6['type']){const _0x1d025f=_0x51b4f6['getItems']()['filter'](_0x4854bc=>_0x4854bc['is']('$textProxy'))['map'](_0x398504=>_0x398504['data']);if(_0x1d025f['length'])return{'type':'insertion','content':c(_0x3a99a1,'*Insert:*\x20%0',c(_0x3a99a1,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1d025f['join']('\x20')+'\x22'))};}if('deletion'==_0x51b4f6['type']){const _0x5c044e=_0x51b4f6['getItems']()['filter'](_0x38bab2=>_0x38bab2['is']('$textProxy'))['map'](_0x11aaac=>_0x11aaac['data']);if(_0x5c044e['length'])return{'type':'deletion','content':c(_0x3a99a1,'*Remove:*\x20%0',c(_0x3a99a1,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5c044e['join']('\x20')+'\x22'))};}}}),_0x5e51b2['descriptionFactory']['registerDescriptionCallback'](_0x2393e3=>{if('tableRow'==_0x2393e3['subType']){const _0x3a9b0e=_0x2393e3['getItems']()['filter'](_0x4802a4=>_0x4802a4['is']('$textProxy'))['map'](_0x46d047=>_0x46d047['data']),_0xa0b797=this['_getSuggestionCoords'](_0x2393e3),_0x3c5468=_0xa0b797['maxRow']-_0xa0b797['minRow']+0x1;if('insertion'==_0x2393e3['type'])return _0x3a9b0e['length']?{'type':'insertion','content':c(_0x3a99a1,'*Insert:*\x20%0',c(_0x3a99a1,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3c5468,'\x22'+_0x3a9b0e['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x3a99a1,'*Insert:*\x20%0',c(_0x3a99a1,'ELEMENT_TABLE_ROW',_0x3c5468))};if('deletion'==_0x2393e3['type'])return _0x3a9b0e['length']?{'type':'deletion','content':c(_0x3a99a1,'*Remove:*\x20%0',c(_0x3a99a1,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3c5468,'\x22'+_0x3a9b0e['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x3a99a1,'*Remove:*\x20%0',c(_0x3a99a1,'ELEMENT_TABLE_ROW',_0x3c5468))};}if('tableColumn'==_0x2393e3['subType']){const _0x4f1683=_0x2393e3['getItems']()['filter'](_0x27610a=>_0x27610a['is']('$textProxy'))['map'](_0x46fbe3=>_0x46fbe3['data']),_0x22e7fe=this['_getSuggestionCoords'](_0x2393e3),_0x425cf8=_0x22e7fe['maxColumn']-_0x22e7fe['minColumn']+0x1;if('insertion'==_0x2393e3['type'])return _0x4f1683['length']?{'type':'insertion','content':c(_0x3a99a1,'*Insert:*\x20%0',c(_0x3a99a1,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x425cf8,'\x22'+_0x4f1683['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x3a99a1,'*Insert:*\x20%0',c(_0x3a99a1,'ELEMENT_TABLE_COLUMN',_0x425cf8))};if('deletion'==_0x2393e3['type'])return _0x4f1683['length']?{'type':'deletion','content':c(_0x3a99a1,'*Remove:*\x20%0',c(_0x3a99a1,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x425cf8,'\x22'+_0x4f1683['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x3a99a1,'*Remove:*\x20%0',c(_0x3a99a1,'ELEMENT_TABLE_COLUMN',_0x425cf8))};}}),_0x5e51b2['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x249150),_0x5e51b2['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x249150),_0x5e51b2['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x16afc6),_0x5e51b2['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x16afc6),_0x5e51b2['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x30ae12),_0x5e51b2['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x30ae12),_0x5e51b2['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x4dbd5f),_0x5e51b2['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x4dbd5f);}['_acceptFormatSuggestionCallbackFactory'](){const _0x2dbc8b=this['editor'],_0x14a8a2=_0x2dbc8b['model']['document']['selection'];return(_0x35bd97,_0x5c5a94)=>{_0x2dbc8b['model']['change'](_0x2b6e85=>{const {commandName:_0x27fce8,commandParams:_0x40e2ed}=_0x5c5a94;let _0x5dffb1=_0x35bd97[0x0]['end']['nodeBefore'];_0x40e2ed&&_0x40e2ed[0x0]&&!0x1===_0x40e2ed[0x0]['forceValue']&&(_0x5dffb1=_0x35bd97[0x0]['start']['nodeAfter']);const _0xf81e20=_0x2b6e85['createRangeIn'](_0x5dffb1);if('$graveyard'==_0xf81e20['root']['rootName'])return;const _0x2b3ba9=Array['from'](_0x14a8a2['getRanges']())['map'](_0x411529=>_0x28bdcd['fromRange'](_0x411529));_0x2b6e85['setSelection'](_0xf81e20),_0x2dbc8b['commands']['get'](_0x27fce8)['refresh'](),_0x40e2ed['push']({'forceDefaultExecution':!0x0}),_0x2dbc8b['execute'](_0x27fce8,..._0x40e2ed);const _0x52b69d=_0x2b3ba9['filter'](_0x47d10f=>'$graveyard'!=_0x47d10f['root']['rootName']);_0x52b69d['length']>0x0&&_0x2b6e85['setSelection'](_0x52b69d);for(const _0x4168d4 of _0x2b3ba9)_0x4168d4['detach']();});};}['_getCoordsForCells'](_0x5f1aa6){const _0x3e79c5=this['editor']['plugins']['get']('TableUtils');let _0x5b840e=Number['MAX_SAFE_INTEGER'],_0x291468=Number['MIN_SAFE_INTEGER'],_0x57a6fb=Number['MAX_SAFE_INTEGER'],_0x9bf194=Number['MIN_SAFE_INTEGER'];for(const _0x4aaccb of _0x5f1aa6){if('$graveyard'==_0x4aaccb['root']['rootName'])continue;const {row:_0x160ebe,column:_0x16d930}=_0x3e79c5['getCellLocation'](_0x4aaccb),_0x2183f5=_0x4aaccb['hasAttribute']('rowspan')?_0x4aaccb['getAttribute']('rowspan')-0x1:0x0,_0x4e41e8=_0x4aaccb['hasAttribute']('colspan')?_0x4aaccb['getAttribute']('colspan')-0x1:0x0;_0x5b840e=_0x160ebe<_0x5b840e?_0x160ebe:_0x5b840e,_0x291468=_0x160ebe+_0x2183f5>_0x291468?_0x160ebe+_0x2183f5:_0x291468,_0x57a6fb=_0x16d930<_0x57a6fb?_0x16d930:_0x57a6fb,_0x9bf194=_0x16d930+_0x4e41e8>_0x9bf194?_0x16d930+_0x4e41e8:_0x9bf194;}return{'minRow':_0x5b840e,'maxRow':_0x291468,'minColumn':_0x57a6fb,'maxColumn':_0x9bf194};}['_setupColumnsRowsFixing'](){const _0x221f46=this['editor'],_0xe41946=_0x221f46['plugins']['get']('TrackChangesEditing'),_0x132b53=_0x221f46['plugins']['get']('TableUtils');_0x221f46['model']['document']['on']('change:data',()=>{const _0x51f9f0=Array['from'](_0x221f46['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x465ab2,data:_0x277823}of _0x51f9f0){const {group:_0x5399f9,id:_0x401c0e,subType:_0x40c8ce}=_0xe41946['_splitMarkerName'](_0x465ab2);if('suggestion'!=_0x5399f9)continue;if(null!=_0x277823['oldRange'])continue;const _0x4fffed=_0xe41946['getSuggestion'](_0x401c0e);this['_tablePostFixingSubtypes']['includes'](_0x40c8ce)&&this['_tableSuggestions']['add'](_0x4fffed);}},{'priority':'low'});const _0x35d7f1=(_0x47be75,_0x4add0a)=>{let _0x2a5e0c=!0x1;const _0x384692=_0x4add0a['createRangeOn'](_0x47be75),_0x3a1ca2=_0x47be75['findAncestor']('table'),_0x30c798=_0x132b53['getCellLocation'](_0x47be75);for(const _0x25cf34 of this['_tableSuggestions']){const _0x54f5b6=_0x25cf34['subType'],_0x1387f4=_0x54f5b6['startsWith']('tablePaste'),_0x5e8b7c=_0x54f5b6['substr'](_0x1387f4?0xa:0x5),_0x2cc6ab=_0x5e8b7c['toLowerCase'](),_0x55b448=_0x2cc6ab['substr'](0x0,0x3)+'span',_0x2eb427='min'+_0x5e8b7c,_0x3069ea='max'+_0x5e8b7c;if(!_0x25cf34['isInContent'])continue;if(_0x3a1ca2!=_0x25cf34['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x25cf34['isIntersectingWithRange'](_0x384692))continue;const _0x1f89c2=_0x47be75['hasAttribute'](_0x55b448)?_0x47be75['getAttribute'](_0x55b448)-0x1:0x0,_0x474abc=this['_getSuggestionCoords'](_0x25cf34),_0x17eeb2=_0x474abc[_0x2eb427],_0x56ac78=_0x474abc[_0x3069ea];_0x17eeb2<=_0x30c798[_0x2cc6ab]&&_0x30c798[_0x2cc6ab]+_0x1f89c2<=_0x56ac78&&(_0x25cf34['addRange'](_0x384692),_0x2a5e0c=!0x0);}return _0x2a5e0c;};_0x221f46['model']['document']['registerPostFixer'](_0x548b25=>{let _0x5bd7ca=!0x1;for(const _0xa129bc of _0x221f46['model']['document']['differ']['getChanges']())if('insert'==_0xa129bc['type']){if('tableRow'==_0xa129bc['name']){for(const _0x15a84e of _0xa129bc['position']['nodeAfter']['getChildren']())_0x5bd7ca=_0x5bd7ca||_0x35d7f1(_0x15a84e,_0x548b25);}else'tableCell'==_0xa129bc['name']&&(_0x5bd7ca=_0x5bd7ca||_0x35d7f1(_0xa129bc['position']['nodeAfter'],_0x548b25));}return _0x5bd7ca;});}['_getSuggestionCoords'](_0x288822){return this['_getCoordsForCells'](_0x288822['getRanges']()['map'](_0x2fba4f=>_0x2fba4f['start']['nodeAfter']));}}function Ne(_0x20d6c1){return Array['from'](new Set(_0x20d6c1)['values']());}class Nt extends _0x5682b5{static get['requires'](){return[Ct];}['afterInit'](){const _0x25c76c=this['editor'],_0x4ddce7=_0x25c76c['model']['document']['selection'],_0x393a5e=_0x25c76c['locale'];if(!_0x25c76c['plugins']['has']('TableEditing'))return;const _0x4e01ef=_0x25c76c['plugins']['get']('TrackChangesEditing'),_0x47f084=_0x25c76c['plugins']['get']('TableUtils'),_0x254efe=_0x25c76c['plugins']['get'](Ct);_0x254efe['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x4e01ef['enableCommand']('mergeTableCells',()=>{const _0x1b2b72=_0x47f084['getSelectionAffectedTableCells'](_0x25c76c['model']['document']['selection']);_0x25c76c['model']['change'](()=>{_0x4e01ef['markMultiRangeBlockFormat'](_0x1b2b72,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x25c76c['commands']['get']('mergeTableCells')['on']('execute',(_0x3e45aa,_0x1e6a44)=>{_0x25c76c['commands']['get']('trackChanges')['value']&&(_0x1e6a44['length']>0x0&&_0x1e6a44[_0x1e6a44['length']-0x1]&&_0x1e6a44[_0x1e6a44['length']-0x1]['forceDefaultExecution']||_0x4e01ef['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x3e45aa['stop']());},{'priority':'highest'});for(const _0x5c22fb of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x1c9fa7=_0x25c76c['commands']['get'](_0x5c22fb);_0x4e01ef['enableCommand'](_0x5c22fb,()=>{const _0xea5a1a=_0x25c76c['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4a6c47=>_0x4a6c47['is']('element','tableCell')),_0x2f2c3c=_0x1c9fa7['value'];_0x25c76c['model']['change'](()=>{_0x4e01ef['markMultiRangeBlockFormat']([_0xea5a1a,_0x2f2c3c],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x2b429f of['splitTableCellVertically','splitTableCellHorizontally']){const _0x202d1e=_0x25c76c['commands']['get'](_0x2b429f);_0x4e01ef['enableCommand'](_0x2b429f,()=>{const _0x41763f=_0x47f084['getSelectionAffectedTableCells'](_0x25c76c['model']['document']['selection'])[0x0],_0x99e4c1=_0x41763f['findAncestor']('table'),{column:_0x58eda9,row:_0x58dcfa}=_0x47f084['getCellLocation'](_0x41763f);let _0x5bf65a=[];if('horizontally'==_0x202d1e['direction']){const _0x2eb94f=_0x47f084['createTableWalker'](_0x99e4c1,{'startRow':_0x58dcfa,'endRow':_0x58dcfa,'includeAllSlots':!0x0});_0x5bf65a=Array['from'](_0x2eb94f)['map'](_0x453662=>_0x453662['cell']);}else{const _0x48d0dc=_0x47f084['createTableWalker'](_0x99e4c1,{'column':_0x58eda9,'includeAllSlots':!0x0});_0x5bf65a=Array['from'](_0x48d0dc)['map'](_0x21c8e0=>_0x21c8e0['cell']);}_0x25c76c['model']['change'](_0x53cf95=>{_0x4e01ef['markBlockFormat'](_0x53cf95['createRangeOn'](_0x41763f),{'commandName':_0x2b429f,'commandParams':[]},_0x5bf65a,_0x2b429f);});});}_0x4e01ef['descriptionFactory']['registerDescriptionCallback'](_0x350a71=>{if('formatBlock'!=_0x350a71['type']&&'formatInline'!=_0x350a71['type'])return;const {data:_0x3cac2d}=_0x350a71;return _0x3cac2d&&'mergeTableCells'==_0x3cac2d['commandName']?{'type':'format','content':c(_0x393a5e,'*Merge\x20cells*')}:void 0x0;}),_0x4e01ef['descriptionFactory']['registerDescriptionCallback'](_0x45df0a=>{if('formatBlock'!=_0x45df0a['type']&&'formatInline'!=_0x45df0a['type'])return;const {data:_0x1de898}=_0x45df0a;return _0x1de898?'splitTableCellVertically'==_0x1de898['commandName']?{'type':'format','content':c(_0x393a5e,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x1de898['commandName']?{'type':'format','content':c(_0x393a5e,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0xd61d3f=_0x254efe['_acceptFormatSuggestionCallbackFactory']();for(const _0x3672a4 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x4e01ef['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3672a4,'accept',_0xd61d3f);for(const _0x839b3e of['splitTableCellVertically','splitTableCellHorizontally'])_0x4e01ef['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x839b3e,'accept',_0xd61d3f);_0x4e01ef['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x47a62e=>{_0x25c76c['model']['change'](_0xac2bcb=>{const _0x4cd8cb=Array['from'](_0x4ddce7['getRanges']())['map'](_0x3325fe=>_0x28bdcd['fromRange'](_0x3325fe));_0xac2bcb['setSelection'](_0x47a62e),_0x25c76c['commands']['get']('mergeTableCells')['refresh'](),_0x25c76c['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x1e7054=_0x4cd8cb['filter'](_0x42822d=>'$graveyard'!=_0x42822d['root']['rootName']);_0x1e7054['length']>0x0&&_0xac2bcb['setSelection'](_0x1e7054);for(const _0x526f1a of _0x4cd8cb)_0x526f1a['detach']();});});for(const _0x5460fc of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x1511bf=_0x25c76c['commands']['get'](_0x5460fc);_0x1511bf['on']('set:isEnabled',(_0x5c2c32,_0x52cf5f,_0x46cab2)=>{if(_0x46cab2){const _0x424385=_0x25c76c['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3d9496=>_0x3d9496['is']('element','tableCell'));this['_areMergableCells'](_0x1511bf['value'],_0x424385)||(_0x5c2c32['return']=!0x1,_0x5c2c32['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x3632ef=this['editor']['commands']['get']('mergeTableCells'),_0xecdde7=this['editor']['plugins']['get']('TableUtils');if(!_0x3632ef['isEnabled'])return!0x1;const _0x3d5413=_0xecdde7['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x28d99d of _0x3d5413)for(const _0x53ebd3 of _0x3d5413)if(_0x28d99d!=_0x53ebd3&&!this['_areMergableCells'](_0x28d99d,_0x53ebd3))return!0x1;return!0x0;}['_areMergableCells'](_0x4096c6,_0x880bae){const _0x98d03=this['editor']['plugins']['get']('TrackChangesEditing'),_0x55fa77=this['editor']['model']['createRangeOn'](_0x4096c6),_0x1a6cbf=this['editor']['model']['createRangeOn'](_0x880bae),_0x8f5c67=new Set(),_0x3ef66b=new Set();for(const _0x3d0e7f of _0x98d03['getSuggestions']())if(('insertion'==_0x3d0e7f['type']||'deletion'==_0x3d0e7f['type']||'mergeTableCells'==_0x3d0e7f['subType'])&&_0x3d0e7f['isInContent']){for(const _0x39d260 of _0x3d0e7f['getRanges']())_0x39d260['containsRange'](_0x55fa77,!0x0)&&_0x8f5c67['add'](_0x3d0e7f['type']+':'+_0x3d0e7f['author']['id']),_0x39d260['containsRange'](_0x1a6cbf,!0x0)&&_0x3ef66b['add'](_0x3d0e7f['type']+':'+_0x3d0e7f['author']['id']);}if(_0x8f5c67['size']!=_0x3ef66b['size'])return!0x1;for(const _0x145aa2 of _0x8f5c67)if(!_0x3ef66b['has'](_0x145aa2))return!0x1;return!0x0;}}class Dt extends _0x5682b5{static get['requires'](){return[Ct];}['afterInit'](){const _0x27c11d=this['editor'];if(!_0x27c11d['plugins']['has']('TableEditing'))return;const _0x8828c1=_0x27c11d['locale'],_0x85f305=_0x27c11d['plugins']['get']('TrackChangesEditing');_0x85f305['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x85f305['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x85f305['registerBlockAttribute']('headingRows'),_0x85f305['registerBlockAttribute']('headingColumns'),_0x85f305['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x8828c1,'FORMAT_HEADER_ROW')),_0x85f305['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x8828c1,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x590d51=this['editor']['plugins']['get']('TrackChangesEditing'),_0x49c081=this['editor']['plugins']['get']('TableUtils'),_0x4dfaae=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x47f702({showActiveMarker:_0x1491a9=!0x0,setDataAttribute:_0x11dbce=!0x0}={}){return(_0x4231fa,_0x2e4b4c,_0x22eb43)=>{const {type:_0x155a03,id:_0x4d2d04}=_0x590d51['_splitMarkerName'](_0x2e4b4c['markerName']),_0x1edd58=_0x590d51['getSuggestion'](_0x4d2d04),_0x5722dd=_0x1edd58['data'];if('formatBlock'!=_0x1edd58['type']||!_0x5722dd||'setTableColumnHeader'!=_0x5722dd['commandName'])return;if(_0x2e4b4c['item'])return void _0x4231fa['stop']();if(!_0x22eb43['consumable']['consume'](_0x2e4b4c['markerRange'],_0x4231fa['name']))return;const _0x32f448=_0x2e4b4c['markerRange']['start']['nodeAfter'],_0x4be53c=_0x2e4b4c['markerRange']['end']['nodeBefore'],_0x3787d4=_0x32f448['parent']['parent'],{column:_0x3a4750}=_0x49c081['getCellLocation'](_0x32f448),{column:_0x58ab4e}=_0x49c081['getCellLocation'](_0x4be53c);for(let _0x3798b9=_0x3a4750;_0x3798b9<=_0x58ab4e;_0x3798b9++){const _0x423f42=_0x49c081['createTableWalker'](_0x3787d4,{'column':_0x3798b9,'includeAllSlots':!0x1});for(const _0x5cc279 of _0x423f42){const _0x1c073b=_0x5cc279['cell'],_0x4c5df4=_0x22eb43['mapper']['toViewElement'](_0x1c073b);_0x22eb43['writer']['addClass']('ck-suggestion-marker-'+_0x155a03,_0x4c5df4),_0x11dbce&&_0x22eb43['writer']['setAttribute']('data-suggestion',_0x4d2d04,_0x4c5df4),_0x22eb43['mapper']['bindElementToMarker'](_0x4c5df4,_0x2e4b4c['markerName']),_0x1491a9&&(_0x590d51['activeMarkers']['includes'](_0x2e4b4c['markerName'])?_0x22eb43['writer']['addClass']('ck-suggestion-marker--active',_0x4c5df4):_0x22eb43['writer']['removeClass']('ck-suggestion-marker--active',_0x4c5df4));}}};}_0x590d51['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4dfaae),_0x590d51['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4dfaae),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x47f702(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x7c46ba,_0x4501bc,_0x29441f)=>{_0x29441f['options']['showSuggestionHighlights']&&_0x47f702({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x7c46ba,_0x4501bc,_0x29441f);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0xbc2874,_0x1eca41,_0x40ec35)=>{const {type:_0x125a27,id:_0x41583a}=_0x590d51['_splitMarkerName'](_0x1eca41['markerName']),_0x59ab60=_0x590d51['getSuggestion'](_0x41583a),_0x5ca456=_0x59ab60['data'];if('formatBlock'!=_0x59ab60['type']||!_0x5ca456||'setTableColumnHeader'!=_0x5ca456['commandName'])return;const _0x2f08d4=_0x40ec35['mapper']['markerNameToElements'](_0x1eca41['markerName']);if(_0x2f08d4){for(const _0x5c8ecb of _0x2f08d4)_0x40ec35['writer']['removeClass']('ck-suggestion-marker-'+_0x125a27,_0x5c8ecb),_0x40ec35['writer']['removeClass']('ck-suggestion-marker--active',_0x5c8ecb),_0x40ec35['writer']['removeAttribute']('data-suggestion',_0x5c8ecb),_0x40ec35['mapper']['unbindElementFromMarkerName'](_0x5c8ecb,_0x1eca41['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x59029d=this['editor'],_0x2e0477=_0x59029d['locale'];function _0xd93eb6(_0x50e52c){return{'type':'format','content':c(_0x2e0477,'*Format:*\x20%0',_0x50e52c)};}_0x59029d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3210fa=>{if('formatBlock'!=_0x3210fa['type'])return;const {data:_0x2d322b}=_0x3210fa;if(_0x2d322b){if('setTableRowHeader'==_0x2d322b['commandName']){const _0x276d73=_0x2d322b['commandParams'][0x0]['forceValue'];return _0xd93eb6(c(_0x2e0477,_0x276d73?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x2d322b['commandName']){const _0x4bebd1=_0x2d322b['commandParams'][0x0]['forceValue'];return _0xd93eb6(c(_0x2e0477,_0x4bebd1?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x5682b5{['afterInit'](){const _0x2f0b54=this['editor'],_0x2a3007=_0x2f0b54['locale'],_0x5ca845=_0x2f0b54['plugins']['get']('TrackChangesEditing');function _0x5cb34c(_0x1f2b68){return{'type':'format','content':''+c(_0x2a3007,'*Set\x20table\x20type:*\x20%0',_0x1f2b68)};}_0x2f0b54['plugins']['has']('TableLayout')&&(_0x5ca845['enableCommand']('insertTableLayout'),_0x5ca845['enableDefaultAttributesIntegration']('tableType'),_0x5ca845['registerBlockAttribute']('tableType'),_0x5ca845['descriptionFactory']['registerElementLabel'](_0x174ace=>_0x174ace['is']('element','table')&&'layout'===_0x174ace['getAttribute']('tableType'),_0x5345e9=>c(_0x2a3007,'ELEMENT_LAYOUT_TABLE',_0x5345e9)),_0x5ca845['descriptionFactory']['registerDescriptionCallback'](_0x55ca5e=>{const {data:_0x9b2cab}=_0x55ca5e;if(_0x9b2cab&&'tableType'==_0x9b2cab['key'])switch(_0x9b2cab['newValue']){case'layout':return _0x5cb34c(c(_0x2a3007,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x5cb34c(c(_0x2a3007,'ELEMENT_CONTENT_TABLE'));}}));}}const xe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Oe=Object['fromEntries'](xe['map'](_0x2874ef=>[_0x2874ef,null]));class $t extends _0x5682b5{static get['requires'](){return[Ct];}['afterInit'](){const _0x1dabc3=this['editor'];if(!_0x1dabc3['plugins']['has']('TableClipboard'))return;const _0x302bbf=_0x1dabc3['plugins']['get']('TrackChangesEditing'),_0x5c9713=_0x1dabc3['plugins']['get']('TableUtils'),_0x57575a=_0x1dabc3['plugins']['get'](Ct),_0x2f886f=_0x1dabc3['plugins']['get']('TableClipboard'),_0x59db13=_0x1dabc3['plugins']['get']('TableSelection'),_0x50b48f=_0x1dabc3['plugins']['get'](_0x5b2e35);_0x57575a['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x1dabc3['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x1dabc3['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x1fccfa=null,_0x1e947c=!0x1;_0x50b48f['on']('contentInsertion',(_0x27761d,_0x4b3f21)=>{_0x1e947c='paste'===_0x4b3f21['method'];}),_0x1dabc3['model']['on']('insertContent',(_0x10a660,_0x108f5f)=>{if(!_0x1e947c&&null===_0x59db13['getSelectedTableCells']())return;const [_0xd78c04,_0x1ddf5e]=_0x108f5f,_0x2a8cc3=_0x108f5f[_0x108f5f['length']-0x1];_0x2a8cc3&&_0x2a8cc3['forceDefaultExecution']||_0x302bbf['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x4a8930,_0x3da582,_0x50b66e,_0x58e2eb,_0x1d34ad){if(_0x3da582&&!_0x3da582['is']('documentSelection'))return!0x1;const _0x170d70=_0x1d34ad['getTableIfOnlyTableInContent'](_0x4a8930,_0x50b66e);if(!_0x170d70||!De(_0x170d70,void 0x0,_0x58e2eb))return!0x1;const _0x2d5b1c=_0x58e2eb['getSelectionAffectedTableCells'](_0x50b66e['document']['selection']);if(!_0x2d5b1c['length'])return!0x1;const _0x42bb67=_0x2d5b1c[0x0]['findAncestor']('table'),_0x2096c3=_0x58e2eb['getRowIndexes'](_0x2d5b1c),_0x2895b1=_0x58e2eb['getColumnIndexes'](_0x2d5b1c),_0xe4aec9={'startRow':_0x2096c3['first'],'endRow':_0x2096c3['last'],'startColumn':_0x2895b1['first'],'endColumn':_0x2895b1['last']};return 0x1==_0x2d5b1c['length']&&(_0xe4aec9['endRow']+=_0x58e2eb['getRows'](_0x170d70)-0x1,_0xe4aec9['endColumn']+=_0x58e2eb['getColumns'](_0x170d70)-0x1),De(_0x42bb67,_0xe4aec9,_0x58e2eb);}(_0xd78c04,_0x1ddf5e,_0x1dabc3['model'],_0x5c9713,_0x2f886f)&&(_0x10a660['stop'](),_0x1fccfa={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1dabc3['model']['change'](()=>{_0x1dabc3['model']['insertContent'](_0x108f5f[0x0],_0x108f5f[0x1],_0x108f5f[0x2],{'forceDefaultExecution':!0x0});const _0x1ca6e4=_0x49332a(),{rowInsertionRanges:_0x863ca5,columnInsertionRanges:_0x93b281,insertionRanges:_0x238c01,deletionRanges:_0x4daa44,cells:_0x1823c0}=_0x1fccfa;_0x863ca5['length']&&_0x302bbf['markMultiRangeInsertion'](_0x863ca5,'tablePasteRow',{'tablePasteChainId':_0x1ca6e4}),_0x93b281['length']&&_0x302bbf['markMultiRangeInsertion'](_0x93b281,'tablePasteColumn',{'tablePasteChainId':_0x1ca6e4}),_0x238c01['length']&&(_0x302bbf['markMultiRangeInsertion'](_0x238c01,'tablePaste',{'tablePasteChainId':_0x1ca6e4,'skipNestingCheck':!0x0}),_0x238c01['forEach'](_0x57d457=>_0x57d457['detach']?.())),_0x4daa44['length']&&(_0x302bbf['markMultiRangeDeletion'](_0x4daa44,'tablePaste',{'tablePasteChainId':_0x1ca6e4,'skipNestingCheck':!0x0}),_0x4daa44['forEach'](_0x3f2e79=>_0x3f2e79['detach']?.()));const _0x247087=_0x302bbf['markMultiRangeBlockFormat'](_0x1823c0['map'](({element:_0x73d7e5})=>_0x73d7e5),{'formatGroupId':_0x49332a()},[],'tablePasteCell',{'tablePasteChainId':_0x1ca6e4});if(_0x247087){const _0x44a5b5=_0x247087['getMarkers'](),_0x44614d=[];for(const {element:_0x4c6bd5,attributes:_0x1e730b}of _0x1823c0){if(!_0x1e730b)continue;const _0x52181a=_0x1dabc3['model']['createRangeOn'](_0x4c6bd5),_0x108297=_0x44a5b5['find'](_0x7a82c1=>_0x7a82c1['getRange']()['isEqual'](_0x52181a));_0x108297&&_0x44614d['push']([_0x108297['name'],_0x1e730b]);}_0x44614d['length']&&_0x247087['setAttribute']('markerAttributes',Object['fromEntries'](_0x44614d));}_0x1fccfa=null;}));},{'priority':_0x2de02f['high']+0xa}),_0x50b48f['on']('contentInsertion',()=>{_0x1e947c=!0x1;},{'priority':'lowest'}),_0x1dabc3['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x24f42d,_0x11479b)=>{const [_0x39ed53,_0x4494d6,,_0x2680b8]=_0x11479b;if(!_0x1fccfa)return;_0x24f42d['stop']();const _0x4aec3a=_0x39ed53['cell'],_0x45be8a=_0x4494d6,_0xb62ae4=Ue(_0x4aec3a),_0x30a150=Ue(_0x45be8a);_0x24f42d['return']=_0x4aec3a;let _0x25b884=null,_0x316d8b=null;if(_0x30a150||_0xb62ae4){if(_0xb62ae4&&!_0x30a150){_0x2680b8['remove'](_0x4aec3a['getChild'](0x0));for(const _0x1a8e6e of Array['from'](_0x45be8a['getChildren']()))_0x2680b8['insert'](_0x1a8e6e,_0x4aec3a,'end');const _0x20e029=_0x1fccfa['rowInsertionIndexes']['includes'](_0x39ed53['row']),_0x3e7353=_0x1fccfa['columnInsertionIndexes']['includes'](_0x39ed53['column']);_0x20e029||_0x3e7353||(_0x25b884=_0x28bdcd['fromRange'](_0x2680b8['createRangeIn'](_0x4aec3a)));}else _0x30a150&&!_0xb62ae4&&(_0x316d8b=_0x2680b8['createRangeIn'](_0x4aec3a));}else{const _0x3e0b78=_0x2680b8['createElement']('tableCellSuggestion'),_0x2d703e=_0x2680b8['createElement']('tableCellSuggestion');_0x2680b8['wrap'](_0x2680b8['createRangeIn'](_0x4aec3a),_0x2d703e),_0x2680b8['insert'](_0x3e0b78,_0x4aec3a,0x0);for(const _0x34f5fb of Array['from'](_0x45be8a['getChildren']()))_0x2680b8['insert'](_0x34f5fb,_0x3e0b78,'end');_0x25b884=_0x28bdcd['fromRange'](_0x2680b8['createRangeOn'](_0x3e0b78)),_0x316d8b=_0x28bdcd['fromRange'](_0x2680b8['createRangeOn'](_0x2d703e));}const _0x139d17=Array['from'](_0x45be8a['getAttributes']())['filter'](([_0x3c6157])=>xe['includes'](_0x3c6157));_0x1fccfa['cells']['push']({'element':_0x4aec3a,'attributes':_0x139d17['length']?Object['fromEntries'](_0x139d17):null}),_0x25b884&&_0x1fccfa['insertionRanges']['push'](_0x25b884),_0x316d8b&&_0x1fccfa['deletionRanges']['push'](_0x316d8b);},{'priority':'high'}),_0x5c9713['on']('insertColumns',(_0x2050da,_0x3fc850)=>{const [_0x48515e,_0x5019a7={}]=_0x3fc850;if(!_0x1fccfa)return;const _0x1b16f8=_0x5019a7['at']||0x0,_0x369bc1=_0x5019a7['columns']||0x1;_0x1fccfa['columnInsertionIndexes']=new Array(_0x369bc1)['fill'](_0x1b16f8)['map']((_0x1549d5,_0x593a4a)=>_0x1549d5+_0x593a4a);for(const {cell:_0x2ba80f}of _0x5c9713['createTableWalker'](_0x48515e,{'startColumn':_0x1b16f8,'endColumn':_0x1b16f8+_0x369bc1-0x1}))_0x1fccfa['columnInsertionRanges']['push'](_0x1dabc3['model']['createRangeOn'](_0x2ba80f));},{'priority':'low'}),_0x5c9713['on']('insertRows',(_0x3a87c4,_0x31a344)=>{const [_0x16d4fc,_0x2b1bb9={}]=_0x31a344;if(!_0x1fccfa)return;const _0x250eb3=_0x2b1bb9['at']||0x0,_0x1d4f4a=_0x2b1bb9['rows']||0x1;_0x1fccfa['rowInsertionIndexes']=new Array(_0x1d4f4a)['fill'](_0x250eb3)['map']((_0x571cbf,_0x240597)=>_0x571cbf+_0x240597);for(const {cell:_0x51fdab}of _0x5c9713['createTableWalker'](_0x16d4fc,{'startRow':_0x250eb3,'endRow':_0x250eb3+_0x1d4f4a-0x1}))_0x1fccfa['rowInsertionRanges']['push'](_0x1dabc3['model']['createRangeOn'](_0x51fdab));},{'priority':'low'}),_0x302bbf['descriptionFactory']['registerDescriptionCallback'](_0x1bf52a=>{if(_0x1bf52a['subType']&&_0x1bf52a['subType']['startsWith']('tablePaste'))return _0x1bf52a['previous']?{}:{'type':'insertion','content':c(_0x1dabc3['locale'],'*Replace\x20table\x20cells*')};});const _0x20b1e3=()=>!0x1;for(const _0x27c3df of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x302bbf['_suggestionFactory']['registerCustomCallback']('insertion',_0x27c3df,'join',_0x20b1e3),_0x302bbf['_suggestionFactory']['registerCustomCallback']('deletion',_0x27c3df,'join',_0x20b1e3),_0x302bbf['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x27c3df,'join',_0x20b1e3);_0x302bbf['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x20b1e3),_0x302bbf['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x32e6bc,_0x32bf21,_0x9ea731)=>{const _0x11f3d3=_0x32e6bc['map'](_0x404051=>_0x404051['getContainedElement']())['filter'](_0x5c7e50=>_0x5c7e50),_0x1a7a14=new Map(_0x11f3d3['map'](_0x11bfc6=>[_0x11bfc6,null]));if(_0x1fccfa){for(const {element:_0x269d36,attributes:_0x54a41c}of _0x1fccfa['cells'])_0x54a41c&&_0x1a7a14['set'](_0x269d36,_0x54a41c);}else{if(_0x9ea731&&_0x9ea731['markerAttributes'])for(const [_0x32c7c7,_0x37e202]of Object['entries'](_0x9ea731['markerAttributes'])){const _0x4e210f=_0x1dabc3['model']['markers']['get'](_0x32c7c7),_0x9b1b8c=_0x4e210f?_0x4e210f['getRange']()['getContainedElement']():null;_0x9b1b8c&&_0x1a7a14['set'](_0x9b1b8c,_0x37e202);}}_0x1dabc3['model']['change'](_0x23d42e=>{for(const [_0x3034cf,_0x2f4e0c]of _0x1a7a14)_0x23d42e['setAttributes']({...Oe,..._0x2f4e0c},_0x3034cf);});});const _0x388a17=(_0x3b331b,_0x296907)=>{_0x302bbf['_suggestionFactory']['registerCustomCallback'](_0x3b331b,'tablePaste',_0x296907,(_0x37e9df,_0x11b0d8,_0x583f33)=>{_0x1dabc3['model']['change'](_0x80c25=>{const _0x3c9c83=[];for(const _0x4919b8 of _0x37e9df){const _0x37debe=_0x4919b8['start']['nodeAfter'];_0x37debe['is']('element','tableCellSuggestion')&&_0x3c9c83['push'](_0x37debe);}_0x302bbf['_suggestionFactory']['getSuggestionCallback'](_0x3b331b,null,_0x296907)(_0x37e9df,_0x11b0d8,_0x583f33);for(const _0x4a58fb of _0x3c9c83)'$graveyard'!=_0x4a58fb['root']['rootName']&&_0x80c25['unwrap'](_0x4a58fb);});});};_0x388a17('insertion','accept'),_0x388a17('insertion','discard'),_0x388a17('deletion','accept'),_0x388a17('deletion','discard'),_0x302bbf['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0xb884f3=>{const _0x391972=_0xb884f3['map'](_0x1dd955=>_0x1dd955['getContainedElement']()),_0x2435ab=_0x391972[0x0]['findAncestor']('table'),{minRow:_0x39364a,maxRow:_0x1d8390}=_0x57575a['_getCoordsForCells'](_0x391972);_0x5c9713['removeRows'](_0x2435ab,{'at':_0x39364a,'rows':_0x1d8390-_0x39364a+0x1});}),_0x302bbf['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x5bc4ba=>{const _0x4c17f3=_0x5bc4ba['map'](_0x1a554b=>_0x1a554b['getContainedElement']()),_0x5296dd=_0x4c17f3[0x0]['findAncestor']('table'),{minColumn:_0x3b9c49,maxColumn:_0x28c0c5}=_0x57575a['_getCoordsForCells'](_0x4c17f3);_0x5c9713['removeColumns'](_0x5296dd,{'at':_0x3b9c49,'columns':_0x28c0c5-_0x3b9c49+0x1});});const _0x367bee=(_0x12c30a,_0x37adc6)=>{if(!_0x37adc6['subType']||!_0x37adc6['subType']['startsWith']('tablePaste'))return;const _0x458526=_0x37adc6['attributes']['tablePasteChainId'],_0x10b028=_0x302bbf['getSuggestions']()['filter'](_0x3457df=>_0x3457df['isInContent']&&_0x3457df['attributes']&&_0x3457df['attributes']['tablePasteChainId']==_0x458526);_0x10b028['length']&&_0x37adc6['getAllAdjacentSuggestions']()['length']!=_0x10b028['length']&&_0x10b028['reduce']((_0xdec83e,_0x22db0b)=>(_0xdec83e['next']=_0x22db0b,_0x22db0b['previous']=_0xdec83e,_0x22db0b));};function _0x3a602d(_0x5915b3,_0x2df6bc=!0x0){const {id:_0x1df663,authorId:_0x1d7e44}=_0x302bbf['_splitMarkerName'](_0x5915b3['markerName']),_0x18baa8=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x357b1b=_0x302bbf['activeMarkers']['includes'](_0x5915b3['markerName']);return _0x357b1b&&_0x18baa8['push']('ck-suggestion-marker--active'),{'classes':_0x18baa8,'attributes':{'data-suggestion':_0x1df663,'data-author-id':_0x1d7e44},'priority':_0x357b1b&&_0x2df6bc?0xbc2:0xbb8};}_0x302bbf['on']('suggestionLoaded',_0x367bee,{'priority':'high'}),_0x302bbf['on']('suggestionUnloaded',_0x367bee,{'priority':'high'}),_0x1dabc3['model']['document']['registerPostFixer'](()=>{let _0x201953=!0x1;const _0x48d6b8=Array['from'](_0x1dabc3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3bd6ea,data:_0x5f1701}of _0x48d6b8){const {group:_0x2e2d97,type:_0x43694e,id:_0x4b99c6}=_0x302bbf['_splitMarkerName'](_0x3bd6ea);if('suggestion'!=_0x2e2d97||'deletion'!=_0x43694e||_0x5f1701['oldRange'])continue;if(!_0x302bbf['hasSuggestion'](_0x4b99c6))continue;const _0x58b375=_0x302bbf['getSuggestion'](_0x4b99c6)['getRanges'](),_0x2129ce=_0x1dabc3['plugins']['get']('Users')['me'];for(const _0x4ac19c of _0x302bbf['getSuggestions']()){if(!_0x4ac19c['isInContent']||_0x4ac19c['author']!=_0x2129ce)continue;if('formatBlock'!=_0x4ac19c['type']||'tablePasteCell'!=_0x4ac19c['subType'])continue;if(_0x4ac19c['getRanges']()['every'](_0x5525ef=>_0x58b375['some'](_0x24b60b=>_0x24b60b['containsRange'](_0x5525ef,!0x0)))){for(const _0xe385d9 of _0x4ac19c['getAllAdjacentSuggestions']())_0xe385d9['isInContent']&&(_0xe385d9['discard'](),_0x201953=!0x0);}}}return _0x201953;}),_0x1dabc3['model']['document']['registerPostFixer'](_0x258fb2=>{const _0x5ba5cd=_0x1dabc3['commands']['get']('redo');if(!_0x5ba5cd||!_0x5ba5cd['_createdBatches']['has'](_0x258fb2['batch']))return!0x1;let _0x4f0bc2=!0x1;const _0x54e024=_0x1dabc3['plugins']['get']('Users')['me'],_0x447c61=_0x1dabc3['model']['document']['differ']['getChanges'](),_0x312197=Array['from'](_0x1dabc3['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x21ee6e,data:_0xf12ab3})=>{const {group:_0x1bb5d5,subType:_0x565b61,authorId:_0x2f48b4}=_0x302bbf['_splitMarkerName'](_0x21ee6e);return'suggestion'==_0x1bb5d5&&'tablePaste'==_0x565b61&&_0x2f48b4==_0x54e024['id']&&!_0xf12ab3['oldRange'];});for(const _0x3b7167 of _0x447c61){if('insert'!=_0x3b7167['type']||'tableCellSuggestion'!=_0x3b7167['name']||0x1!=_0x3b7167['length'])continue;const _0x8e22d9=_0x258fb2['createRange'](_0x3b7167['position'],_0x3b7167['position']['getShiftedBy'](0x1));if(!_0x312197['find'](({data:_0x46d930})=>_0x46d930['newRange']['isEqual'](_0x8e22d9))){for(const {name:_0x5779c4,data:_0x52954b}of _0x312197)if(_0x8e22d9['containsRange'](_0x52954b['newRange'])){_0x258fb2['updateMarker'](_0x5779c4,{'range':_0x8e22d9}),_0x4f0bc2=!0x0;break;}}}return _0x4f0bc2;}),_0x1dabc3['model']['document']['registerPostFixer'](_0x78e102=>{let _0x1818b9=!0x1;const _0xbca1ab=_0x1dabc3['plugins']['get']('Users')['me'],_0x26d48b=_0x302bbf['getSuggestions']()['filter'](_0x1b86dd=>_0x1b86dd['isInContent']&&_0x1b86dd['author']==_0xbca1ab),_0x41f9f8=new Set(),_0x280004=new Set();for(const _0xefb1a9 of _0x26d48b)if('tablePaste'==_0xefb1a9['subType'])for(const _0x1989f4 of _0xefb1a9['getMarkers']()){const _0x876008=_0x1989f4['getRange']()['getContainedElement']();if(_0x876008){if(_0x876008['is']('element','tableCellSuggestion')&&Ue(_0x876008)){_0xefb1a9['removeMarker'](_0x1989f4['name']),_0x41f9f8['add'](_0x876008),_0x1818b9=!0x0;const _0x21f394=_0x876008['nextSibling'],_0x5eeed5=_0x876008['previousSibling'],_0x1f3c8f=_0x21f394&&_0x21f394['is']('element','tableCellSuggestion'),_0x3f03b4=_0x5eeed5&&_0x5eeed5['is']('element','tableCellSuggestion');_0x1f3c8f&&!_0x41f9f8['has'](_0x21f394)&&_0x280004['add'](_0x21f394),_0x3f03b4&&!_0x41f9f8['has'](_0x5eeed5)&&_0x280004['add'](_0x5eeed5);}else _0x876008['is']('element','paragraph')&&_0x876008['isEmpty']&&(_0xefb1a9['removeMarker'](_0x1989f4['name']),_0x1818b9=!0x0);}}else{if('tablePasteCell'==_0xefb1a9['subType']){if(!_0xefb1a9['attributes']||!_0xefb1a9['attributes']['tablePasteChainId'])continue;const _0x435346=_0xefb1a9['attributes']['markerAttributes'];if(_0x435346&&Object['keys'](_0x435346)['length'])continue;const _0x55ecad=_0xefb1a9['attributes']['tablePasteChainId'];let _0xa3f5f4=!0x0,_0x56f2bb=!0x0;for(const _0x4b8826 of _0x26d48b)if(_0x4b8826['subType']&&_0x4b8826['subType']['startsWith']('tablePaste')){if(!_0x4b8826['attributes']['tablePasteChainId']){_0x56f2bb=!0x1;break;}if(_0x4b8826['id']!=_0xefb1a9['id']&&_0x4b8826['attributes']['tablePasteChainId']==_0x55ecad){_0xa3f5f4=!0x1;break;}}_0x56f2bb&&_0xa3f5f4&&(_0xefb1a9['removeMarkers'](),_0x1818b9=!0x0);}}for(const _0x18879c of _0x41f9f8)_0x78e102['remove'](_0x18879c);for(const _0x4bf722 of _0x280004)_0x78e102['unwrap'](_0x4bf722);return _0x1818b9;}),_0x1dabc3['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x2e29ec=>_0x3a602d(_0x2e29ec),'converterPriority':'high'}),_0x1dabc3['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2cc8d3,_0x5296c2)=>_0x5296c2['options']['showSuggestionHighlights']?_0x3a602d(_0x2cc8d3,!0x1):null,'converterPriority':'high'});const _0x1b9904=_0x1dabc3['editing']['view'];this['listenTo'](_0x1b9904['document'],'clipboardOutput',(_0x2b64e0,_0x5007c3)=>{const _0x2922ab=[];for(const _0x73757e of _0x1b9904['createRangeIn'](_0x5007c3['content'])['getItems']())_0x73757e['is']('element','suggestion-td')&&_0x2922ab['push'](_0x73757e);_0x1b9904['change'](_0x3d190e=>{for(const _0x1ddc6f of _0x2922ab)_0x3d190e['move'](_0x3d190e['createRangeIn'](_0x1ddc6f),_0x3d190e['createPositionBefore'](_0x1ddc6f)),_0x3d190e['remove'](_0x1ddc6f);});});}}function Ue(_0x3ec2e0){if(_0x3ec2e0['isEmpty'])return!0x0;const _0x5b76e9=_0x3ec2e0['getChild'](0x0);return _0x5b76e9['is']('element','paragraph')&&_0x5b76e9['isEmpty'];}function De(_0x211537,_0x5eaf1a={},_0x2f769a){for(const {isAnchor:_0x1c8c8,cellHeight:_0x4dd7af,cellWidth:_0x200c92}of _0x2f769a['createTableWalker'](_0x211537,{'includeAllSlots':!0x0,..._0x5eaf1a}))if(!_0x1c8c8||0x1!=_0x4dd7af||0x1!=_0x200c92)return!0x1;return!0x0;}class Bt extends _0x5682b5{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x66ba25=this['editor']['plugins']['get']('TrackChangesEditing');_0x66ba25['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x66ba25['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x66ba25['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x66ba25['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x66ba25['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x66ba25['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x327889,_0x50cd72){const _0xb1455e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5f5b87=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x65028b=_0x50cd72['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0xe4e79d=_0x5f5b87['getColumnGroupElement'](_0x65028b);let _0x47247d=_0xe4e79d?_0x5f5b87['getTableColumnsWidths'](_0xe4e79d):null,_0x5bd738=_0x65028b['getAttribute']('tableWidth')||null;const _0x4a033f=_0x50cd72['tableWidth']||_0x5bd738,_0xa43494=_0x50cd72['columnWidths']||_0x47247d,_0x2a4d60=this['editor']['plugins']['get']('Users')['me'];for(const _0x37115b of _0xb1455e['getSuggestions']()){const _0x353c2e=_0x37115b['getContainedElement']();if('resizeTable'===_0x37115b['subType']&&_0x353c2e===_0x65028b){_0x37115b['author']!==_0x2a4d60&&_0x37115b['discard']();const _0x35ce47=_0x37115b['data']['commandParams'];_0x5bd738=_0x35ce47[0x0]['tableWidth'],_0x47247d=_0x35ce47[0x0]['columnWidths'];break;}}_0x327889({'table':_0x65028b,'tableWidth':_0x4a033f,'columnWidths':_0xa43494}),_0xb1455e['markBlockFormat'](_0x65028b,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5bd738,'columnWidths':_0x47247d}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x452205){if('formatBlock'!=_0x452205['type']&&'formatInline'!=_0x452205['type'])return;const {data:_0x582edc}=_0x452205;if(_0x582edc&&'resizeTable'===_0x582edc['formatGroupId']){const _0x39f05a='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x39f05a)};}}}class Ot extends _0x5682b5{['afterInit'](){const _0x5f24b2=this['editor'];_0x5f24b2['plugins']['has']('Template')&&_0x5f24b2['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Rt extends _0x5682b5{['afterInit'](){const _0x108de0=this['editor'];if(!_0x108de0['commands']['get']('insertTableOfContents'))return;_0x108de0['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x13489b=_0x108de0['plugins']['get']('TrackChangesEditing'),_0x435b8d=_0x108de0['locale'];_0x13489b['descriptionFactory']['registerElementLabel']('tableOfContents',_0x3340a3=>c(_0x435b8d,'ELEMENT_TABLE_OF_CONTENTS',_0x3340a3));}}class xt extends _0x5682b5{['afterInit'](){const _0x1f699d=this['editor'];if(!_0x1f699d['plugins']['has']('Title'))return;const _0x161ed1=_0x1f699d['plugins']['get']('TrackChangesEditing');_0x161ed1['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x1f699d['locale'],'ELEMENT_TITLE')),_0x1f699d['model']['document']['registerPostFixer'](_0x658c56=>{let _0x46ec74=!0x1;const _0x3ea1c5=Array['from'](_0x1f699d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3aa637,data:_0x382df3}of _0x3ea1c5){const {group:_0x4b1c51}=_0x161ed1['_splitMarkerName'](_0x3aa637);if('suggestion'!==_0x4b1c51||!_0x382df3['newRange'])continue;const _0x30ebe6=_0x382df3['newRange'],_0x12455e=_0x30ebe6['end']['nodeBefore'];if(!_0x12455e||!_0x12455e['is']('element','title-content'))continue;if(!_0x30ebe6['start']['isTouching'](_0x30ebe6['end']))continue;const _0x35c8f0=_0x1f699d['model']['schema']['getNearestSelectionRange'](_0x30ebe6['end'],'forward');if(_0x35c8f0&&_0x35c8f0['isCollapsed']){const _0x3a46d4=_0x658c56['createRange'](_0x30ebe6['start'],_0x35c8f0['start']);_0x3a46d4['isEqual'](_0x30ebe6)||(_0x658c56['updateMarker'](_0x3aa637,{'range':_0x3a46d4}),_0x46ec74=!0x0);}_0x46ec74||(_0x658c56['removeMarker'](_0x3aa637),_0x46ec74=!0x0);}return _0x46ec74;});}}class Tt extends _0x5682b5{['afterInit'](){const _0x32a3a4=this['editor'],_0x441abe=_0x32a3a4['plugins']['get']('TrackChangesEditing');_0x32a3a4['plugins']['has']('Uploadcare')&&(_0x441abe['enableCommand']('uploadcare'),_0x32a3a4['plugins']['has']('UploadcareImageEdit')&&(_0x441abe['enableCommand']('uploadcareImageEdit'),_0x441abe['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x441abe['registerBlockAttribute']('uploadcareImageId'),_0x441abe['descriptionFactory']['registerDescriptionCallback'](_0x189f94=>{if('attribute'!=_0x189f94['type'])return;const {data:_0x57ad56}=_0x189f94;return _0x57ad56&&'uploadcareImageId'==_0x57ad56['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x5682b5{['afterInit'](){const _0x4f331b=this['editor'],_0xa24164=_0x4f331b['plugins']['get']('TrackChangesEditing');_0x4f331b['plugins']['has']('UndoEditing')&&(_0xa24164['enableCommand']('undo'),_0xa24164['enableCommand']('redo'));}}class Ut extends _0x5682b5{static get['requires'](){return[Ct];}['afterInit'](){const _0x358dc3=this['editor'];if(!_0x358dc3['plugins']['has']('TableCaptionEditing'))return;_0x358dc3['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x5682b5{['tableProperties'];['tableCellProperties'];constructor(_0xedc20f){super(_0xedc20f),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0xd11c71=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x2b3723 of this['tableProperties'])_0xd11c71['enableCommand'](_0x2b3723,(_0xc33574,_0x16536b)=>{const _0x4c9182=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x2b3723,[_0x4c9182],this['tableProperties'],'tableProperties',_0xc33574,_0x16536b);});_0xd11c71['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0xd11c71['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xd11c71['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x1efed7,_0x2abc4e)=>this['handleDiscardAction'](this['tableProperties'],_0x1efed7,_0x2abc4e)),_0xd11c71['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x1d4103 of this['tableCellProperties'])_0xd11c71['enableCommand'](_0x1d4103,(_0x52abf9,_0x47c32b)=>{const _0x38b35b=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x1d4103,_0x38b35b,this['tableCellProperties'],'tableCellProperties',_0x52abf9,_0x47c32b);});_0xd11c71['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0xd11c71['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xd11c71['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0xd338aa,_0x3c77fd)=>this['handleDiscardAction'](this['tableCellProperties'],_0xd338aa,_0x3c77fd)),_0xd11c71['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0xd11c71['descriptionFactory']['registerDescriptionCallback'](_0x213a97=>this['handleSuggestionDescription'](_0x213a97));}['_handlePropertyChange'](_0x3a38bb,_0x5bf52a,_0x74bb70,_0x3e22a1,_0x59c208,_0x3d274f){const _0x1dc639=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x3d274f['batch'],()=>{for(const _0x4e8baa of _0x5bf52a){if(this['_getSuggestion'](_0x4e8baa,_0x3e22a1))_0x59c208(_0x3d274f);else{const _0x13dbc2={};for(const _0x55cea3 of _0x74bb70){const _0x548a13=_0x4e8baa['getAttribute'](_0x55cea3);void 0x0!==_0x548a13&&(_0x13dbc2[_0x55cea3]=_0x548a13);}_0x59c208(_0x3d274f),_0x1dc639['markBlockFormat'](_0x4e8baa,{'commandParams':[_0x13dbc2]},[],_0x3e22a1);}}});}['handleDiscardAction'](_0x235d13,_0x5ac4f0,_0x1393ca){const _0x386471=_0x5ac4f0[0x0]['start']['nodeAfter'],_0x39e9c5=_0x1393ca['commandParams'][0x0];this['editor']['model']['change'](_0x4e07f2=>{for(const _0x4407f6 of _0x235d13)void 0x0!==_0x39e9c5[_0x4407f6]?_0x4e07f2['setAttribute'](_0x4407f6,_0x39e9c5[_0x4407f6],_0x386471):_0x4e07f2['removeAttribute'](_0x4407f6,_0x386471);});}['handleSuggestionDescription'](_0x4f59e8){if(_0x4f59e8['data'])switch(_0x4f59e8['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x1d8f37,_0xffc01){const _0x1c6fe3=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x54a4a4 of _0x1c6fe3['getSuggestions']({'skipNotAttached':!0x0})){const _0x2536bf=_0x54a4a4['getContainedElement']();if(_0x54a4a4['subType']===_0xffc01&&_0x2536bf===_0x1d8f37)return _0x54a4a4;}return null;}}const u='$elementName';class p extends _0x5682b5{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x1c49f1,_0x18bbf8,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,et,nt,it,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,_t,vt,Ct,Nt,Dt,Ye,Ut,$t,Bt,Rt,Vt,Ot,xt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x29fc58){super(_0x29fc58),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x8378af,_0x12eeff,_0x48eb6b,_0x3e2377)=>{this['_model']['change'](()=>{for(const _0x25c4fe of[..._0x3e2377,..._0x48eb6b])this['_model']['markers']['has'](_0x25c4fe)&&_0x29fc58['editing']['reconvertMarker'](_0x25c4fe);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x29fc58['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0x29fc58['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x29fc58['config']['get']('trackChanges.trackFormatChanges'),_0x29fc58['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x29fc58['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x29fc58,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x40d674=this['editor'],_0x1c71cd=(_0xad0d10,_0x1f4557)=>{if('attribute'!=_0xad0d10)return'ck-suggestion-marker-'+_0xad0d10;const _0x57c8a8=_0x1f4557['split']('|')[0x0];return this['_isBlockAttribute'](_0x57c8a8)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x40d674['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x5592e1=>{const {id:_0x3522fc,authorId:_0x4c7da7,type:_0x46468d,subType:_0x3b081d}=this['_splitMarkerName'](_0x5592e1['markerName']),_0x1f5e81=['ck-suggestion-marker',_0x1c71cd(_0x46468d,_0x3b081d)];let _0x517a51=0xbb8;return this['activeMarkers']['includes'](_0x5592e1['markerName'])&&(_0x1f5e81['push']('ck-suggestion-marker--active'),_0x517a51=0xbc2),'deletion'==_0x46468d&&(_0x517a51+=0x5),{'classes':_0x1f5e81,'attributes':{'data-suggestion':_0x3522fc,'data-author-id':_0x4c7da7},'priority':_0x517a51};}}),_0x40d674['conversion']['for']('dataDowncast')['add'](_0x33c204=>{_0x33c204['on']('addMarker:suggestion',(_0x49d8aa,_0x1892cb,_0x45f084)=>{if(!_0x45f084['options']['showSuggestionHighlights'])return;const _0x5d2ead=_0x1892cb['item'];if(!_0x5d2ead)return;const _0x4dd14d=_0x45f084['mapper']['toViewElement'](_0x5d2ead);_0x40d674['model']['schema']['isObject'](_0x5d2ead)&&_0x4dd14d&&!_0x4dd14d['getCustomProperty']('widget')&&_0x4dd14d['is']('containerElement')&&_0x32c6c4(_0x4dd14d,_0x45f084['writer']);},{'priority':'high'});}),_0x40d674['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x310c96,_0x351bc4)=>{if(!_0x351bc4['options']['showSuggestionHighlights'])return null;const {type:_0x9c5d28,subType:_0x5b52c3}=this['_splitMarkerName'](_0x310c96['markerName']);return{'classes':['ck-suggestion-marker',_0x1c71cd(_0x9c5d28,_0x5b52c3)],'priority':0xbb8};}});const _0x534526=({showActiveMarkers:_0x2fea33=!0x0,isAttributeSuggestion:_0x246e52=!0x1}={})=>(_0x484b56,_0x4c39a5,_0x5e8961)=>{if(!_0x4c39a5['item'])return;const {id:_0x462bb2,authorId:_0x2d191e}=this['_splitMarkerName'](_0x4c39a5['markerName']);if(_0x246e52){const _0x4bb950=this['_suggestions']['get'](_0x462bb2),_0x1a1b14=this['_getAttributeKey'](_0x4bb950);if(!this['_isBlockAttribute'](_0x1a1b14))return;}if(_0x4c39a5['item']['is']('selection'))return void _0x5e8961['consumable']['consume'](_0x4c39a5['item'],_0x484b56['name']);const _0x1fbcae=_0x5e8961['mapper']['toViewElement'](_0x4c39a5['item']);if(_0x4c39a5['item']['is']('element')&&_0x40d674['model']['schema']['isBlock'](_0x4c39a5['item'])&&!_0x1fbcae['getCustomProperty']('addHighlight')){_0x5e8961['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x1fbcae),_0x5e8961['writer']['setAttribute']('data-suggestion',_0x462bb2,_0x1fbcae),_0x5e8961['writer']['setAttribute']('data-author-id',_0x2d191e,_0x1fbcae),_0x5e8961['mapper']['bindElementToMarker'](_0x1fbcae,_0x4c39a5['markerName']),_0x2fea33&&(this['activeMarkers']['includes'](_0x4c39a5['markerName'])?_0x5e8961['writer']['addClass']('ck-suggestion-marker--active',_0x1fbcae):_0x5e8961['writer']['removeClass']('ck-suggestion-marker--active',_0x1fbcae));for(const _0xeda1df of _0x40d674['model']['createRangeIn'](_0x4c39a5['item'])['getItems']())_0x5e8961['consumable']['consume'](_0xeda1df,_0x484b56['name']);_0x5e8961['consumable']['consume'](_0x4c39a5['item'],_0x484b56['name']);}};_0x40d674['conversion']['for']('dataDowncast')['add'](_0x373d3f=>{_0x373d3f['on']('addMarker:suggestion:formatBlock',(_0x863bc3,_0x4db23d,_0x2fad36)=>{_0x2fad36['options']['showSuggestionHighlights']&&_0x534526({'showActiveMarkers':!0x1})(_0x863bc3,_0x4db23d,_0x2fad36);},{'priority':'highest'});}),_0x40d674['conversion']['for']('dataDowncast')['add'](_0x94ffcc=>{_0x94ffcc['on']('addMarker:suggestion:attribute',(_0x4a47d7,_0x235d8c,_0x3fce50)=>{_0x3fce50['options']['showSuggestionHighlights']&&_0x534526({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x4a47d7,_0x235d8c,_0x3fce50);},{'priority':'highest'});}),_0x40d674['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0xcab476,_0x576720)=>_0x576720['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0xcab476['substr'](0xb)}}),_0x40d674['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x7b2b44,{writer:_0x306114})=>{let _0x2b0b39='suggestion:'+_0x7b2b44['getAttribute']('suggestion-type')+':'+_0x7b2b44['getAttribute']('id');return _0x7b2b44['getAttribute']('marker-count')&&(_0x2b0b39+=':'+_0x7b2b44['getAttribute']('marker-count')),_0x306114['createElement']('$marker',{'data-name':_0x2b0b39});}}),_0x40d674['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x40d674['conversion']['for']('editingDowncast')['add'](_0x5e732b=>{_0x5e732b['on']('addMarker:suggestion:formatBlock',_0x534526(),{'priority':'high'});}),_0x40d674['conversion']['for']('editingDowncast')['add'](_0x3435fa=>{_0x3435fa['on']('addMarker:suggestion:attribute',_0x534526({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x40d674['conversion']['for']('editingDowncast')['add'](_0x2cb96a=>{_0x2cb96a['on']('removeMarker:suggestion:formatBlock',(_0x2d503e,_0x242e1c,_0x1885ac)=>{const _0x349311=_0x1885ac['mapper']['markerNameToElements'](_0x242e1c['markerName']);if(_0x349311){for(const _0x15b501 of _0x349311)_0x15b501['getCustomProperty']('addHighlight')||(_0x1885ac['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x15b501),_0x1885ac['writer']['removeAttribute']('data-suggestion',_0x15b501),_0x1885ac['writer']['removeAttribute']('data-author-id',_0x15b501),_0x1885ac['mapper']['unbindElementFromMarkerName'](_0x15b501,_0x242e1c['markerName']));}},{'priority':'high'});}),_0x40d674['conversion']['for']('editingDowncast')['add'](_0x4e365a=>{_0x4e365a['on']('removeMarker:suggestion:attribute',(_0x23d7c4,_0x10155f,_0x3251a2)=>{const _0x4577ed=_0x3251a2['mapper']['markerNameToElements'](_0x10155f['markerName']);if(!_0x4577ed)return;const {id:_0x2be065}=this['_splitMarkerName'](_0x10155f['markerName']),_0x44b95d=this['_suggestions']['get'](_0x2be065),_0x1b5cca=this['_getAttributeKey'](_0x44b95d);if(this['_isBlockAttribute'](_0x1b5cca)){for(const _0x179ab3 of _0x4577ed)_0x179ab3['getCustomProperty']('addHighlight')||(_0x3251a2['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x179ab3),_0x3251a2['writer']['removeAttribute']('data-suggestion',_0x179ab3),_0x3251a2['writer']['removeAttribute']('data-author-id',_0x179ab3),_0x3251a2['mapper']['unbindElementFromMarkerName'](_0x179ab3,_0x10155f['markerName']));}},{'priority':'high'});}),_0x40d674['model']['document']['registerPostFixer'](_0x21916e=>{let _0x4f6a37=!0x1;const _0x38f857=Array['from'](_0x40d674['model']['document']['differ']['getChangedMarkers']()),_0x1a7b8f=new Set();for(const {name:_0x5f1362,data:_0x1a94cf}of _0x38f857){const {group:_0x1f3a1d,type:_0x5e733c,subType:_0x2cdc17,id:_0x4ef47e}=this['_splitMarkerName'](_0x5f1362);if('suggestion'!==_0x1f3a1d)continue;const _0x57e068=this['_suggestions']['get'](_0x4ef47e);if(null!=_0x1a94cf['newRange']){'formatInline'==_0x5e733c&&(_0x4f6a37=_0x4f6a37||Jt(_0x1a94cf['newRange'],_0x5f1362,_0x21916e,_0x40d674['model']['schema']));const _0x5cf7eb='attribute'==_0x5e733c&&this['_isBlockAttribute'](_0x2cdc17['split']('|')[0x0]);if(_0x1a94cf['newRange']['isCollapsed']||'$graveyard'==_0x1a94cf['newRange']['root']['rootName']||'formatBlock'==_0x5e733c&&!Ht(_0x1a94cf['newRange'])||_0x5cf7eb&&!Ht(_0x1a94cf['newRange'])||'deletion'==_0x5e733c&&!(!Lt(_0x39a804=_0x1a94cf['newRange'])&&!function(_0x32494a){return _0x32494a['start']['parent']==_0x32494a['end']['nodeBefore']&&_0x32494a['start']['isAtEnd'];}(_0x39a804)))_0x21916e['removeMarker'](_0x5f1362),_0x4f6a37=!0x0;else{if(!_0x57e068||!_0x57e068['isInContent'])continue;if(_0x1a94cf['newRange']&&_0x1a94cf['oldRange']&&_0x1a94cf['newRange']['isEqual'](_0x1a94cf['oldRange']))continue;_0x1a7b8f['add'](_0x57e068);}}}var _0x39a804;return _0x1a7b8f['size']>0x0&&(_0x4f6a37=!!this['_joinWithAdjacentSuggestions'](_0x1a7b8f)||_0x4f6a37),_0x4f6a37;}),_0x40d674['model']['document']['registerPostFixer'](_0x51c7dd=>{let _0x29551c=!0x1;for(const _0x1720e0 of _0x40d674['model']['document']['differ']['getChanges']())if('insert'==_0x1720e0['type'])for(const _0x5df7c5 of this['_suggestions']['values']()){if(_0x5df7c5['isMultiRange']||!_0x5df7c5['isInContent'])continue;const _0x4e1c95='formatBlock'==_0x5df7c5['type'],_0x716200=this['_getAttributeKey'](_0x5df7c5),_0x55d4b5=_0x716200&&this['_isBlockAttribute'](_0x716200);if(!_0x4e1c95&&!_0x55d4b5)continue;const _0x48f150=_0x5df7c5['getFirstRange']();if(_0x48f150['start']['parent']!=_0x48f150['end']['parent']&&!_0x48f150['end']['isAtEnd']){const _0x2f7a33=_0x40d674['model']['createPositionAt'](_0x48f150['start']['nodeAfter'],'end'),_0x3958d6=_0x40d674['model']['createRange'](_0x48f150['start'],_0x2f7a33);_0x51c7dd['updateMarker'](_0x5df7c5['getFirstMarker'](),{'range':_0x3958d6}),_0x29551c=!0x0;}}return _0x29551c;}),_0x40d674['model']['document']['registerPostFixer'](_0x520e5b=>this['_processAttributeChanges'](_0x520e5b)),_0x40d674['model']['document']['registerPostFixer'](_0x184447=>!_0x184447['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x184447)),_0x40d674['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x40d674['model']['document']['on']('change:data',(_0x2c6954,_0x4f59fd)=>{if(!_0x4f59fd['isLocal']||_0x4f59fd['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x3b22ad=_0x40d674['model']['document']['differ']['getChanges']();if(0x0==_0x3b22ad['length'])return;const _0x277d17=[],_0x534c9f=_0x3b22ad['filter'](_0x2a1b22=>'attribute'==_0x2a1b22['type']),_0x17e3cf=_0x3b22ad['filter'](_0x1fa0ea=>'insert'==_0x1fa0ea['type']&&'$text'!=_0x1fa0ea['name']);for(const _0x3ebd9d of _0x534c9f)this['_isRegisteredAttribute'](_0x3ebd9d['attributeKey'])&&_0x277d17['push']({'key':_0x3ebd9d['attributeKey'],'newValue':_0x3ebd9d['attributeNewValue'],'oldValue':_0x3ebd9d['attributeOldValue'],'range':qt(_0x3ebd9d['range'],_0x40d674['model'])});for(const _0x3edc3a of _0x17e3cf){if('rename'!=_0x3edc3a['action']&&'refresh'!=_0x3edc3a['action'])continue;const _0x382100=zt(_0x3edc3a['position']['nodeAfter'],_0x40d674['model']),_0x554437=_0x3edc3a['before'];'rename'==_0x3edc3a['action']&&_0x277d17['push']({'key':u,'newValue':_0x3edc3a['name'],'oldValue':_0x554437['name'],'range':_0x382100});for(const [_0x34100f,_0x295188]of _0x554437['attributes']){if(!this['_isRegisteredAttribute'](_0x34100f))continue;const _0x56ccba=_0x3edc3a['attributes']['get'](_0x34100f);_0x295188!==_0x56ccba&&_0x277d17['push']({'key':_0x34100f,'newValue':_0x56ccba,'oldValue':_0x295188,'range':_0x382100});}for(const [_0x5ac9f3,_0x769360]of _0x3edc3a['attributes'])this['_isRegisteredAttribute'](_0x5ac9f3)&&(_0x554437['attributes']['has'](_0x5ac9f3)||_0x277d17['push']({'key':_0x5ac9f3,'newValue':_0x769360,'oldValue':null,'range':_0x382100}));}0x0!=_0x277d17['length']&&_0x40d674['model']['enqueueChange'](_0x4f59fd,_0x416082=>{const _0x377784=_0x49332a();for(const {range:_0x129ca4,key:_0xc39878,oldValue:_0x432393,newValue:_0x367dee}of _0x277d17)this['markAttributeChange'](_0x129ca4,_0xc39878,_0x432393,_0x367dee,{'groupId':_0x377784});this['_reduceExistingSuggestions'](_0x416082,_0x277d17);});},{'priority':'lowest'}),_0x40d674['model']['markers']['on']('update:suggestion',(_0x322f7a,_0x2f438d,_0x2ac468)=>{if(null==_0x2ac468){const {id:_0x4ccf22}=this['_splitMarkerName'](_0x2f438d['name']),_0x348071=this['_suggestions']['get'](_0x4ccf22);_0x348071&&_0x348071['addMarkerName'](_0x2f438d['name']);}}),_0x40d674['model']['document']['on']('change:data',()=>{const _0x442a6c=Array['from'](_0x40d674['model']['document']['differ']['getChangedMarkers']())['filter'](_0x592fb8=>'suggestion'===this['_splitMarkerName'](_0x592fb8['name'])['group']);if(0x0===_0x442a6c['length'])return;_0x442a6c['sort']((_0x4bab5d,_0x393151)=>{const _0x1b175f=_0x4bab5d['data']['oldRange'],_0x37f5b0=_0x393151['data']['oldRange'];return null===_0x1b175f&&null===_0x37f5b0?0x0:null===_0x1b175f&&null!==_0x37f5b0?-0x1:null!==_0x1b175f&&null===_0x37f5b0?0x1:_0x1b175f['start']['isBefore'](_0x37f5b0['start'])?-0x1:0x1;});const _0x947ba2=new Set(),_0x31b66d=new Set();for(const {name:_0xda2263,data:_0x58d9be}of _0x442a6c){const {id:_0x4267ff}=this['_splitMarkerName'](_0xda2263);if(null===_0x58d9be['oldRange']){const _0xf02a56=this['_handleNewSuggestionMarker'](_0xda2263);_0x31b66d['add'](_0xf02a56);}else{const _0x492d93=this['_suggestions']['get'](_0x4267ff);null!==_0x58d9be['newRange']||_0x492d93['isInContent']?(_0x947ba2['add'](_0x492d93['head']),_0x31b66d['add'](_0x492d93)):this['_removeSuggestion'](_0x492d93);}}_0x31b66d['size']>0x0&&this['_refreshSuggestionsChain'](_0x31b66d);for(const _0x360a65 of _0x947ba2)this['fire']('suggestionChanged',_0x360a65);}),_0x40d674['model']['on']('applyOperation',(_0x2c566b,_0x8808ea)=>{const _0x310947=_0x8808ea[0x0];if(!this['_suggestions']['size'])return;if(!_0x310947['isDocumentOperation'])return;if(_0x310947['batch']['isUndo']||!_0x310947['batch']['isLocal'])return;let _0x4fa7af,_0x2025bd;switch(_0x310947['type']){case'insert':_0x4fa7af=_0x40d674['model']['createPositionAt'](_0x310947['position']),_0x2025bd=_0x4fa7af['getShiftedBy'](_0x310947['howMany']);break;case'split':_0x4fa7af=_0x40d674['model']['createPositionAt'](_0x310947['splitPosition']),_0x2025bd=_0x40d674['model']['createPositionAt'](_0x310947['moveTargetPosition']);break;case'move':_0x4fa7af=_0x40d674['model']['createPositionAt'](_0x310947['targetPosition']),_0x2025bd=_0x4fa7af['getShiftedBy'](_0x310947['howMany']);break;default:return;}const _0xc8b9e9=_0x40d674['model']['createRange'](_0x4fa7af,_0x2025bd);_0x40d674['model']['change'](()=>{for(const {suggestion:_0x17591a,meta:_0x3716b2}of this['_findSuggestions'](_0xc8b9e9)){if(_0x17591a['isMultiRange'])continue;if('formatInline'==_0x17591a['type'])continue;const _0x1fde46=this['_getAttributeKey'](_0x17591a);if(_0x1fde46&&this['_isBlockAttribute'](_0x1fde46)&&'split'!=_0x310947['type'])continue;const _0x168737=_0x17591a['data']&&_0x17591a['data']['multipleBlocks'];('formatBlock'!=_0x17591a['type']||'split'==_0x310947['type']&&!_0x168737)&&(_0x3716b2['containsRangeInObject']||'insertion'==_0x17591a['type']&&_0x3716b2['isOwn']||_0x17591a['getFirstRange']()['containsRange'](_0xc8b9e9)&&this['_breakSuggestionMarker'](_0x17591a,_0x4fa7af,_0x2025bd));}});},{'priority':'lowest'}),_0x40d674['model']['on']('deleteContent',(_0x14045c,_0xfb379c)=>{const _0x4a68f9=_0xfb379c[0x0],_0x28bd85=_0xfb379c[0x1];if(_0x28bd85&&_0x28bd85['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x4a68f9['isCollapsed'])return;const _0x37a784=_0x40d674['model']['schema'],{start:_0x57b222,end:_0x1b5712}=_0x4a68f9['getFirstRange'](),_0x1fe0ff=_0x57b222['nodeAfter']&&_0x37a784['isLimit'](_0x57b222['nodeAfter'])?null:_0x37a784['getNearestSelectionRange'](_0x57b222,'forward'),_0x320f90=_0x1b5712['nodeBefore']&&_0x37a784['isLimit'](_0x1b5712['nodeBefore'])?null:_0x37a784['getNearestSelectionRange'](_0x1b5712,'backward'),_0x5babd2=_0x40d674['model']['createRange'](_0x1fe0ff?_0x1fe0ff['start']:_0x57b222,_0x320f90?_0x320f90['end']:_0x1b5712);_0x40d674['model']['change'](_0x2150fc=>{this['markDeletion'](_0x5babd2);const _0x444c6d=_0x40d674['model']['schema']['getNearestSelectionRange'](_0x5babd2['start']);_0x4a68f9['is']('documentSelection')?_0x2150fc['setSelection'](_0x444c6d):_0x4a68f9['setTo'](_0x444c6d);}),_0x14045c['stop']();},{'priority':_0x2de02f['normal']+0xa}),_0x40d674['model']['on']('insertContent',(_0x113795,_0x3a3fcc)=>{const _0x16f0d1=_0x3a3fcc[_0x3a3fcc['length']-0x1];_0x16f0d1&&_0x16f0d1['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x40d674['model']['change'](()=>{let _0x4c36c2=_0x40d674['model']['insertContent'](_0x3a3fcc[0x0],_0x3a3fcc[0x1],_0x3a3fcc[0x2],{'forceDefaultExecution':!0x0});if(!_0x4c36c2)return;_0x113795['return']=_0x4c36c2['clone']();const _0x5da323=_0x4c36c2['end']['nodeBefore'],_0x4a587d=_0x40d674['model']['schema'];_0x5da323&&_0x4a587d['isBlock'](_0x5da323)&&!_0x4a587d['isObject'](_0x5da323)&&(_0x4c36c2=_0x40d674['model']['createRange'](_0x4c36c2['start'],_0x40d674['model']['createPositionAt'](_0x5da323,'end'))),this['markInsertion'](_0x4c36c2);}),_0x113795['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x4e0ca4=new O(_0x40d674,this['_suggestions']);_0x40d674['commands']['add']('acceptSuggestion',_0x4e0ca4),this['enableCommand']('acceptSuggestion');const _0x54a07d=new R(_0x40d674,this['_suggestions']);_0x40d674['commands']['add']('discardSuggestion',_0x54a07d),this['enableCommand']('discardSuggestion'),_0x40d674['commands']['add']('acceptAllSuggestions',new x(_0x40d674,_0x4e0ca4,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x40d674['commands']['add']('discardAllSuggestions',new x(_0x40d674,_0x54a07d,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x40d674['commands']['add']('acceptSelectedSuggestions',new E(_0x40d674,_0x4e0ca4,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x40d674['commands']['add']('discardSelectedSuggestions',new E(_0x40d674,_0x54a07d,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x413a68=_0x40d674['plugins']['get']('CommentsRepository');this['listenTo'](_0x413a68,'addComment',(_0x44c282,{threadId:_0x1a1b9c})=>{const _0x13dce7=this['_suggestions']['get'](_0x1a1b9c);_0x13dce7&&_0x13dce7['commentThread']&&0x1===_0x13dce7['commentThread']['length']&&this['_updateSuggestionData'](_0x1a1b9c,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x413a68,'removeComment',(_0x3e341c,{threadId:_0x3994ea})=>{const _0x9d2197=this['_suggestions']['get'](_0x3994ea);_0x9d2197&&_0x9d2197['commentThread']&&!_0x9d2197['commentThread']['length']&&this['_updateSuggestionData'](_0x3994ea,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x720d37){const _0x96cd75=_0x39b59e([0x39,0x6a,0x47,0x6b,0x49,0x4d,0x53,0x72,0x6d,0x6f,0x65,0x31,0x52,0x61,0x55,0x37,0x62,0x42,0x35,0x5a,0x68,0x64,0x41,0x30,0x43,0x75,0x74,0x56,0x66,0x78,0x79,0x58,0x54,0x36,0x38,0x4c,0x6e,0x34,0x77,0x45,0x7a,0x70,0x46,0x6c,0x48,0x50,0x73,0x4f,0x44,0x33,0x63,0x4b,0x51,0x67,0x4e,0x32,0x4a,0x69,0x71,0x57,0x76,0x59]),_0xa483e7=0x7d119863,_0x1de6cb=0x7d16fcb3^_0xa483e7,_0x271f2c=window[_0x39b59e([0x44,0x61,0x74,0x65])][_0x39b59e([0x6e,0x6f,0x77])](),_0x5bce6e=_0x720d37[_0x39b59e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4b9c74=new window[(_0x39b59e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x403f89=>{_0x5bce6e[_0x39b59e([0x6f,0x6e,0x63,0x65])](_0x39b59e([0x72,0x65,0x61,0x64,0x79]),_0x403f89);}),_0x161116={[_0x39b59e([0x6b,0x74,0x79])]:_0x39b59e([0x45,0x43]),[_0x39b59e([0x75,0x73,0x65])]:_0x39b59e([0x73,0x69,0x67]),[_0x39b59e([0x63,0x72,0x76])]:_0x39b59e([0x50,0x2d,0x32,0x35,0x36]),[_0x39b59e([0x78])]:_0x39b59e([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]),[_0x39b59e([0x79])]:_0x39b59e([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]),[_0x39b59e([0x61,0x6c,0x67])]:_0x39b59e([0x45,0x53,0x32,0x35,0x36])},_0x552af0=_0x5bce6e[_0x39b59e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x39b59e([0x67,0x65,0x74])](_0x39b59e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1d9d51(){let _0x5df9bd,_0x20ede0=null,_0x4edcde=null;try{if(_0x552af0==_0x39b59e([0x47,0x50,0x4c]))return _0x39b59e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5df9bd=_0x41c429(),!_0x5df9bd)return _0x39b59e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5df9bd[_0x39b59e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4edcde=_0x549563(_0x5df9bd[_0x39b59e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5df9bd[_0x39b59e([0x6a,0x74,0x69])])),await _0x5a1c0f()?_0x3a189c()?_0x304fae()?_0x39b59e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x480d1b()?(_0x5df9bd[_0x39b59e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x39b59e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x20ede0=_0x5e4d79(_0x39b59e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5df9bd[_0x39b59e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x39b59e([0x74,0x72,0x69,0x61,0x6c])&&(_0x20ede0=_0x5e4d79(_0x39b59e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3b3e6a()):_0x39b59e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x39b59e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x39b59e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x4995d0){return _0x39b59e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x304fae(){const _0x5af50e=[_0x39b59e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x39b59e([0x74,0x72,0x69,0x61,0x6c])][_0x39b59e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5df9bd[_0x39b59e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x271f2c/0x3e8:0xe10*_0x1de6cb;return _0x5df9bd[_0x39b59e([0x65,0x78,0x70])]<_0x5af50e;}function _0x3a189c(){const _0xd1be83=_0x5df9bd[_0x39b59e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xd1be83)return!0x1;if(_0xd1be83[_0x39b59e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x39b59e([0x2a])))return!0x0;if(_0xd1be83[_0x39b59e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x39b59e([0x54,0x43])))return!0x0;if(_0xd1be83[_0x39b59e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x39b59e([0x52,0x54,0x43]))){if(_0x213439())return!0x0;if(_0x34a971()||_0x1db6b8())return!0x0;}return!0x1;}function _0x480d1b(){const _0x49bc80=_0x5df9bd[_0x39b59e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x49bc80||0x0==_0x49bc80[_0x39b59e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x68dbc4}=new URL(window[_0x39b59e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x49bc80[_0x39b59e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x68dbc4))return!0x0;const _0x3f9143=_0x68dbc4[_0x39b59e([0x73,0x70,0x6c,0x69,0x74])](_0x39b59e([0x2e]));return _0x49bc80[_0x39b59e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1e8453=>_0x1e8453[_0x39b59e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x39b59e([0x2a])))[_0x39b59e([0x6d,0x61,0x70])](_0xff3d6e=>_0xff3d6e[_0x39b59e([0x73,0x70,0x6c,0x69,0x74])](_0x39b59e([0x2e])))[_0x39b59e([0x73,0x6f,0x6d,0x65])](_0x2b0a36=>_0x3f9143[_0x39b59e([0x65,0x76,0x65,0x72,0x79])]((_0x157e6e,_0x31da21)=>_0x2b0a36[_0x31da21]===_0x157e6e||_0x2b0a36[_0x31da21]===_0x39b59e([0x2a])));}function _0x3b3e6a(){return _0x20ede0&&_0x4edcde?new window[(_0x39b59e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5afd14,_0x6bfcdd)=>{_0x20ede0[_0x39b59e([0x74,0x68,0x65,0x6e])](_0x5afd14,_0x6bfcdd),_0x4edcde[_0x39b59e([0x74,0x68,0x65,0x6e])](_0x451b4e=>{_0x451b4e!=_0x39b59e([0x56,0x61,0x6c,0x69,0x64])&&_0x5afd14(_0x451b4e);},_0x6bfcdd);}):_0x20ede0||_0x4edcde||_0x39b59e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x549563(_0x1a2495,_0x3f032c){return new window[(_0x39b59e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x282d72=>{if(_0x64e54())return _0x282d72(_0x39b59e([0x56,0x61,0x6c,0x69,0x64]));_0x14e0fc(),_0x5bce6e[_0x39b59e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x39b59e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x29a9b3=!0x1;const _0x4e41d9=_0x49332a();function _0x2183fe(_0x19752a){return!!_0x19752a&&(typeof _0x19752a===_0x39b59e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x19752a===_0x39b59e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x19752a[_0x39b59e([0x74,0x68,0x65,0x6e])]===_0x39b59e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x19752a[_0x39b59e([0x63,0x61,0x74,0x63,0x68])]===_0x39b59e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x6766c2(_0x5505e4){_0x2546a6(_0x5505e4)[_0x39b59e([0x74,0x68,0x65,0x6e])](_0x444ab3=>{if(!_0x444ab3||_0x444ab3[_0x39b59e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x39b59e([0x6f,0x6b]))return _0x39b59e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x533bc4(_0x5406e1(_0x4e41d9+_0x3f032c))!=_0x444ab3[_0x39b59e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x39b59e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x39b59e([0x56,0x61,0x6c,0x69,0x64]);})[_0x39b59e([0x74,0x68,0x65,0x6e])](_0x356bb6=>(_0x4841f1(),_0x356bb6),()=>{const _0x527d9a=_0x46a8dc();return null==_0x527d9a?(_0x4841f1(),_0x39b59e([0x56,0x61,0x6c,0x69,0x64])):_0x39b59e(_0x271f2c-_0x527d9a>(0x591d1c63^_0xa483e7)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x39b59e([0x74,0x68,0x65,0x6e])](_0x282d72)[_0x39b59e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x282d72(_0x39b59e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2fcbb5=0x7d2776e3^_0xa483e7;function _0x4841f1(){const _0x1c4c05=_0x39b59e([0x6c,0x6c,0x63,0x74,0x2d])+_0x533bc4(_0x5406e1(_0x1a2495)),_0x2b8110=_0x1fc6dd(_0x533bc4(window[_0x39b59e([0x4d,0x61,0x74,0x68])][_0x39b59e([0x63,0x65,0x69,0x6c])](_0x271f2c/_0x2fcbb5)));window[_0x39b59e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x39b59e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1c4c05,_0x2b8110);}function _0x46a8dc(){const _0x2b9706=_0x39b59e([0x6c,0x6c,0x63,0x74,0x2d])+_0x533bc4(_0x5406e1(_0x1a2495)),_0x3258ee=window[_0x39b59e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x39b59e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2b9706);return _0x3258ee?window[_0x39b59e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1fc6dd(_0x3258ee),0x10)*_0x2fcbb5:null;}function _0x2546a6(_0x4f4800){return new window[(_0x39b59e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2f63df,_0x4c03ee)=>{_0x4f4800[_0x39b59e([0x74,0x68,0x65,0x6e])](_0x2f63df,_0x4c03ee),window[_0x39b59e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4c03ee,0x7d104ca3^_0xa483e7);});}}_0x5bce6e[_0x39b59e([0x6f,0x6e])](_0x39b59e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xf8f2cc,_0x592e79)=>{if(_0x592e79[0x0]!=_0x1a2495)return _0x282d72(_0x39b59e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x592e79[0x1]={..._0x592e79[0x1],[_0x39b59e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4e41d9};},{[_0x39b59e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x39b59e([0x68,0x69,0x67,0x68])}),_0x5bce6e[_0x39b59e([0x6f,0x6e])](_0x39b59e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xed70b7=>{_0x2183fe(_0xed70b7[_0x39b59e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x29a9b3=!0x0,_0x6766c2(_0xed70b7[_0x39b59e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x39b59e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x39b59e([0x6c,0x6f,0x77])}),_0x4b9c74[_0x39b59e([0x74,0x68,0x65,0x6e])](()=>{_0x29a9b3||_0x282d72(_0x39b59e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x64e54(){return _0x5bce6e[_0x39b59e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x39b59e([0x76,0x69,0x65,0x77])][_0x39b59e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x39b59e([0x61,0x75,0x74,0x6f]);}function _0x14e0fc(){_0x5bce6e[_0x39b59e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x39b59e([0x76,0x69,0x65,0x77])][_0x39b59e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x39b59e([0x61,0x75,0x74,0x6f]);}}function _0x5e4d79(_0x5bb42e){const _0x198f3b=[new window[(_0x39b59e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x43a3aa=>setTimeout(_0x43a3aa,0x7d18a6af^_0xa483e7)),_0x4b9c74[_0x39b59e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x39b59e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x510ec9=>{let _0xf726c6=0x0;_0x5bce6e[_0x39b59e([0x6d,0x6f,0x64,0x65,0x6c])][_0x39b59e([0x6f,0x6e])](_0x39b59e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x566c03,_0x4acd9e)=>{_0x4acd9e[0x0][_0x39b59e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xf726c6++,_0xf726c6==(0x7d11999b^_0xa483e7)&&(_0x510ec9(),_0x566c03[_0x39b59e([0x6f,0x66,0x66])]());});}))];return window[_0x39b59e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x39b59e([0x72,0x61,0x63,0x65])](_0x198f3b)[_0x39b59e([0x74,0x68,0x65,0x6e])](()=>_0x5bb42e);}async function _0x3a1a37(){await _0x4b9c74,_0x5bce6e[_0x39b59e([0x6d,0x6f,0x64,0x65,0x6c])][_0x39b59e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4c4db4,_0x5bce6e[_0x39b59e([0x6d,0x6f,0x64,0x65,0x6c])][_0x39b59e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4c4db4,_0x5bce6e[_0x39b59e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x39b59e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x213439(){return _0x200247(_0x39b59e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x426fd4(_0x39b59e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x39b59e([0x73,0x74,0x61,0x74,0x65])]==_0x39b59e([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x34a971(){return _0x200247(_0x39b59e([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 _0x1db6b8(){return _0x200247(_0x39b59e([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x2b2773(_0x27de9f){const _0x4ba225=_0x26a43b();_0x5bce6e[_0x4ba225]=_0x39b59e([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x27de9f,_0x27de9f!=_0x39b59e([0x56,0x61,0x6c,0x69,0x64])&&_0x3a1a37();}function _0x26a43b(){const _0x48fd76=window[_0x39b59e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x39b59e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x39b59e([0x6e,0x6f,0x77])]())[_0x39b59e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x39b59e([0x2e]),'');let _0x494a37=_0x39b59e([0x6a]);for(let _0x514c77=0x0;_0x514c77<_0x48fd76[_0x39b59e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x514c77+=0x2){let _0x54d079=window[_0x39b59e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x48fd76[_0x39b59e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x514c77,_0x514c77+0x2));_0x54d079>=_0x96cd75[_0x39b59e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x54d079-=_0x96cd75[_0x39b59e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x494a37+=_0x96cd75[_0x54d079];}return _0x494a37;}function _0x41c429(){const _0x40cb17=_0x552af0[_0x39b59e([0x73,0x70,0x6c,0x69,0x74])](_0x39b59e([0x2e]));if(0x3!=_0x40cb17[_0x39b59e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x298cdb(_0x40cb17[0x1]);function _0x298cdb(_0x4f318a){const _0x77ff4c=_0xbfd1f4(_0x4f318a);return _0x77ff4c&&_0x1263af()?_0x77ff4c:null;function _0x1263af(){const _0x50ca35=_0x77ff4c[_0x39b59e([0x6a,0x74,0x69])],_0x51a691=window[_0x39b59e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x50ca35[_0x39b59e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x50ca35[_0x39b59e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4932da={..._0x77ff4c,[_0x39b59e([0x6a,0x74,0x69])]:_0x50ca35[_0x39b59e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x50ca35[_0x39b59e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4932da[_0x39b59e([0x76,0x63])],_0x5406e1(_0x4932da)==_0x51a691;}}}async function _0x5a1c0f(){let _0x5d49aa=!0x0;try{const _0x2c8eef=_0x552af0[_0x39b59e([0x73,0x70,0x6c,0x69,0x74])](_0x39b59e([0x2e])),[_0x4c0cc0,_0x1554b7,_0x21359b]=_0x2c8eef;return _0x4adebc(_0x4c0cc0),await _0x9a9104(_0x4c0cc0,_0x1554b7,_0x21359b),_0x5d49aa;}catch(_0x5d95b1){return!0x1;}function _0x4adebc(_0x2df9e3){const _0x1b8464=_0xbfd1f4(_0x2df9e3);_0x1b8464&&_0x1b8464[_0x39b59e([0x61,0x6c,0x67])]==_0x39b59e([0x45,0x53,0x32,0x35,0x36])||(_0x5d49aa=!0x1);}async function _0x9a9104(_0x57178b,_0x350b37,_0x505aea){const _0x704032=window[_0x39b59e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x39b59e([0x66,0x72,0x6f,0x6d])](_0x5726a0(_0x505aea),_0x436806=>_0x436806[_0x39b59e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1db31d=new window[(_0x39b59e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x39b59e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x57178b+_0x39b59e([0x2e])+_0x350b37),_0x6b9f53=window[_0x39b59e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x39b59e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x6b9f53)return;const _0x5af084=await _0x6b9f53[_0x39b59e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x39b59e([0x6a,0x77,0x6b]),_0x161116,{[_0x39b59e([0x6e,0x61,0x6d,0x65])]:_0x39b59e([0x45,0x43,0x44,0x53,0x41]),[_0x39b59e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x39b59e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x39b59e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x6b9f53[_0x39b59e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x39b59e([0x6e,0x61,0x6d,0x65])]:_0x39b59e([0x45,0x43,0x44,0x53,0x41]),[_0x39b59e([0x68,0x61,0x73,0x68])]:{[_0x39b59e([0x6e,0x61,0x6d,0x65])]:_0x39b59e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5af084,_0x704032,_0x1db31d)||(_0x5d49aa=!0x1);}}function _0xbfd1f4(_0x2d41b1){return _0x2d41b1[_0x39b59e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x39b59e([0x65,0x79]))?JSON[_0x39b59e([0x70,0x61,0x72,0x73,0x65])](_0x5726a0(_0x2d41b1)):null;}function _0x5726a0(_0x50bf0b){return window[_0x39b59e([0x61,0x74,0x6f,0x62])](_0x50bf0b[_0x39b59e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x39b59e([0x2b]))[_0x39b59e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x39b59e([0x2f])));}function _0x5406e1(_0x3e8b05){let _0x30568c=0x1505;function _0x3d241d(_0x508219){for(let _0x4d8f2b=0x0;_0x4d8f2b<_0x508219[_0x39b59e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4d8f2b++){const _0x13a031=_0x508219[_0x39b59e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4d8f2b);_0x30568c=(_0x30568c<<0x5)+_0x30568c+_0x13a031,_0x30568c&=_0x30568c;}}function _0x266b38(_0x264ff7){Array[_0x39b59e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x264ff7)?_0x264ff7[_0x39b59e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x266b38):_0x264ff7&&typeof _0x264ff7==_0x39b59e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x39b59e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x264ff7)[_0x39b59e([0x73,0x6f,0x72,0x74])]()[_0x39b59e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x7f2448,_0x5283bd])=>{_0x3d241d(_0x7f2448),_0x266b38(_0x5283bd);}):_0x3d241d(window[_0x39b59e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x264ff7));}return _0x266b38(_0x3e8b05),_0x30568c>>>0x0;}function _0x533bc4(_0x14ad5f){return _0x14ad5f[_0x39b59e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x39b59e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x39b59e([0x30]));}function _0x1fc6dd(_0x52e47b){return _0x52e47b[_0x39b59e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x39b59e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x39b59e([0x6a,0x6f,0x69,0x6e])]('');}function _0x200247(_0x48eccb){return _0x5bce6e[_0x39b59e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x39b59e([0x68,0x61,0x73])](_0x48eccb);}function _0x426fd4(_0x4882ee){return _0x5bce6e[_0x39b59e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x39b59e([0x67,0x65,0x74])](_0x4882ee);}function _0x4c4db4(){}function _0x39b59e(_0x246bb5){return _0x246bb5['map'](_0x511410=>String['fromCharCode'](_0x511410))['join']('');}_0x2b2773(await _0x1d9d51());}(this);}set['adapter'](_0x112a18){if(this['_adapter'])throw new _0x5e8aa1('track-changes-adapter-already-set',this);this['_adapter']=_0x112a18;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x3a11c2=!0x1,toJSON:_0x3b0566=!0x1}={}){const _0x5ae0a3=[];for(const _0x623270 of this['_suggestions']['values']())_0x3a11c2&&!_0x623270['isInContent']||_0x5ae0a3['push'](_0x623270);return _0x3b0566?_0x5ae0a3['map'](_0x177094=>_0x177094['toJSON']()):_0x5ae0a3;}['getSuggestion'](_0x251425){const _0x15d07a=this['_suggestions']['get'](_0x251425);if(!_0x15d07a)throw new _0x5e8aa1('track-changes-suggestion-not-found',this);return _0x15d07a;}['hasSuggestion'](_0x17c408){return this['_suggestions']['has'](_0x17c408);}['addSuggestionData'](_0x558edd){const {authorId:_0x338fa8,id:_0x3bcab2,attributes:_0x4dd0a5}=_0x558edd,[_0x39845c,_0x423c99]=_0x558edd['type']['split'](':'),_0x24b91d=this['_suggestions']['get'](_0x3bcab2)||this['_createSuggestion'](_0x39845c,_0x423c99,_0x3bcab2,_0x338fa8,_0x4dd0a5);if(this['_addThreadToSuggestion'](_0x24b91d),this['_checkSuggestionCorrectness'](_0x24b91d,_0x39845c,_0x423c99||null,_0x338fa8),_0x24b91d['createdAt']=_0x558edd['createdAt'],_0x24b91d['_isDataLoaded']=!0x0,_0x4dd0a5&&_0x4dd0a5['@external']){const _0x1b41a9=_0x4dd0a5['@external'],_0x37efc2=this['_getExternalAuthor'](_0x1b41a9['authorName']);_0x24b91d['authoredAt']=_0x1b41a9['createdAt'],_0x24b91d['author']=_0x37efc2,_0x24b91d['isExternal']=!0x0;}else _0x24b91d['authoredAt']=_0x558edd['createdAt'];switch(_0x558edd['data']&&(_0x24b91d['data']=_0x558edd['data']),_0x558edd['attributes']&&(_0x24b91d['attributes']=_0x558edd['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x24b91d['_saved']=!0x0),this['_suggestionState']['get'](_0x24b91d)){case'notReady':this['_suggestionState']['set'](_0x24b91d,'dataReady');break;case'markerReady':_0x24b91d['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x24b91d])),this['_refreshSuggestionsChain'](new Set([_0x24b91d])),this['_suggestionState']['set'](_0x24b91d,'ready'),this['fire']('suggestionLoaded',_0x24b91d)):this['_suggestionState']['set'](_0x24b91d,'removed');}return _0x24b91d;}['acceptSuggestion'](_0x30d9f1){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x50987a of _0x30d9f1['getAllAdjacentSuggestions']())_0x50987a['accept']();});});}['discardSuggestion'](_0xb08be){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x10bacc of _0xb08be['getAllAdjacentSuggestions']())_0x10bacc['discard']();});});}['enableCommand'](_0x32a858,_0x141b1a){const _0x11c125=this['editor']['commands']['get'](_0x32a858);if(!_0x11c125)throw new _0x5e8aa1('track-changes-command-not-found',this,{'commandName':_0x32a858});if(this['_enabledCommands']['has'](_0x11c125))throw new _0x5e8aa1('track-changes-enable-command-twice',this,{'commandName':_0x32a858});this['_enabledCommands']['add'](_0x11c125),_0x141b1a&&_0x11c125['on']('execute',(_0x4ddeb7,_0x133826)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x133826['length']>0x0&&_0x133826[_0x133826['length']-0x1]&&_0x133826[_0x133826['length']-0x1]['forceDefaultExecution']?_0x133826['pop']():(_0x4ddeb7['return']=_0x141b1a((..._0x4d74c7)=>_0x11c125['execute'](..._0x4d74c7,{'forceDefaultExecution':!0x0}),..._0x133826),_0x4ddeb7['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x13f2da){let _0x5deb55,_0xf9caf;const _0x1f4748=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x5deb55=_0x13f2da();}catch(_0x19f577){_0xf9caf=_0x19f577;}return _0x1f4748||(this['_isForcedDefaultExecutionBlock']=!0x1),_0xf9caf&&_0x5e8aa1['rethrowUnexpectedError'](_0xf9caf,this),_0x5deb55;}['markInsertion'](_0x385957,_0xe002b7=null,_0x29d57d={}){if(_0x385957['isCollapsed'])return null;const _0x25d89c=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x3bd372,meta:_0x24d59e}of this['_findSuggestions'](_0x385957,'insertion'))if(_0x24d59e['isOwn']){if(!_0x24d59e['isNextTo']){if(_0x24d59e['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x3bd372,_0x29d57d))continue;return _0x3bd372;}if(Xt(_0x3bd372,_0x29d57d))return _0x3bd372;this['_breakSuggestionMarker'](_0x3bd372,_0x385957['start'],_0x385957['end']);break;}if(_0xe002b7==_0x3bd372['subType']&&Xt(_0x3bd372,_0x29d57d)){const _0x2b9bc6=_0x3bd372['getFirstRange']();return _0x2b9bc6['start']['isEqual'](_0x385957['end'])?this['_setSuggestionRange'](_0x3bd372,this['_model']['createRange'](_0x385957['start'],_0x2b9bc6['end'])):this['_setSuggestionRange'](_0x3bd372,this['_model']['createRange'](_0x2b9bc6['start'],_0x385957['end'])),_0x3bd372;}}const _0x40672e=_0x49332a(),_0x18e8d6=_0x25d89c['id'],_0x423fe9=_0xe002b7?'insertion:'+_0xe002b7:'insertion',_0x51aa74=this['_setSuggestionData']({'id':_0x40672e,'type':_0x423fe9,'createdAt':new Date(),'authorId':_0x18e8d6,'attributes':_0x29d57d});return this['_addSuggestionMarker'](_0x423fe9,_0x40672e,_0x18e8d6,_0x385957),_0x51aa74;}['markMultiRangeInsertion'](_0x1f01c6,_0x416951='multi',_0x1ccd47={}){const _0x3bcb65=this['editor']['plugins']['get']('Users')['me'],_0x457fcf=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x416951,'join');for(const _0x4b1755 of this['getSuggestions']())if(_0x4b1755['author']['id']==_0x3bcb65['id']&&'insertion'==_0x4b1755['type']&&_0x4b1755['subType']==_0x416951&&Xt(_0x4b1755,_0x1ccd47)&&(_0x457fcf(_0x4b1755['getRanges'](),_0x1f01c6)||_0x457fcf(_0x1f01c6,_0x4b1755['getRanges']()))){for(const _0x253d9b of _0x1f01c6)_0x4b1755['addRange'](_0x253d9b);return _0x4b1755;}for(const {suggestion:_0x3b3c99,meta:_0x19311b}of this['_findSuggestions'](_0x1f01c6,'insertion')){if(!_0x19311b['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x19311b['containsRangeInObject'])continue;if(!Xt(_0x3b3c99,_0x1ccd47))continue;let _0x36e763=!0x0;for(const _0x1cfaf of _0x3b3c99['getRanges']())for(const _0x120ca9 of _0x1f01c6)if(!_0x1cfaf['containsRange'](_0x120ca9)){_0x36e763=!0x1;break;}if(_0x36e763)return _0x3b3c99;}const _0x99a7b=_0x49332a(),_0x3835ed=_0x3bcb65['id'],_0xfacdf8='insertion:'+_0x416951,_0x1d78d2=this['_setSuggestionData']({'id':_0x99a7b,'type':_0xfacdf8,'createdAt':new Date(),'authorId':_0x3835ed,'attributes':_0x1ccd47});for(const _0x15db66 of _0x1f01c6)this['_addSuggestionMarker'](_0xfacdf8,_0x99a7b,_0x3835ed,_0x15db66,o['getMultiRangeId']());return _0x1d78d2;}['markInlineFormat'](_0x5b59b1,_0x2a9341,_0x2c74e0=null,_0x392c7b={}){if(_0x2c74e0=_0x2c74e0||Kt(_0x2a9341),_0x5b59b1['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x44b9e1=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2c74e0,'accept');return this['forceDefaultExecution'](()=>_0x44b9e1([_0x5b59b1],_0x2a9341,_0x392c7b)),null;}const _0x1c1a43=this['editor']['plugins']['get']('Users')['me'],_0x324e28=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x499eb1,meta:_0x5bcfa3}of this['_findSuggestions'](_0x5b59b1,'insertion'))_0x5bcfa3['isOwn']&&!_0x5bcfa3['isInsideObject']&&_0x324e28['push'](..._0x499eb1['getRanges']());}const _0x38f556=function(_0x485ee1,_0x292b7c){const _0x18426d=[];for(const _0x1bddb2 of _0x292b7c){const _0x35a73d=_0x485ee1['getIntersection'](_0x1bddb2);_0x35a73d&&_0x18426d['push'](_0x35a73d);}return _0x18426d;}(_0x5b59b1,_0x324e28),_0xb8ed07=function(_0x37e07c,_0x2f2ac4){const _0x345c09=[_0x37e07c];for(const _0x2970c9 of _0x2f2ac4){let _0x7c2fe=0x0;for(;_0x7c2fe<_0x345c09['length'];){const _0x4fec99=_0x345c09[_0x7c2fe]['getDifference'](_0x2970c9);_0x345c09['splice'](_0x7c2fe,0x1,..._0x4fec99),_0x7c2fe+=_0x4fec99['length'];}}return _0x345c09;}(_0x5b59b1,_0x324e28);_0x38f556['length']&&this['_model']['change'](()=>{for(const _0x2f8a5a of _0x38f556){const _0x3df673=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2c74e0,'accept');this['forceDefaultExecution'](()=>_0x3df673([_0x2f8a5a],_0x2a9341,_0x392c7b));}});for(const _0x38b8d7 of _0xb8ed07){let _0x338ef4=null,_0x4fbe18=_0x38b8d7['start'],_0x45cdb5=_0x38b8d7['end'];for(const {suggestion:_0x20d974,meta:_0x41e26b}of this['_findSuggestions'](_0x38b8d7,'formatInline')){if(!_0x41e26b['isOwn'])continue;if(_0x20d974['subType']!=_0x2c74e0)continue;if(!Xt(_0x20d974,_0x392c7b))continue;const _0x2aa83e=_0x20d974['getFirstRange']();if(_0x2aa83e['containsRange'](_0x38b8d7,!0x0))return null;_0x4fbe18=_0x4fbe18['isBefore'](_0x2aa83e['start'])?_0x4fbe18:_0x2aa83e['start'],_0x45cdb5=_0x45cdb5['isAfter'](_0x2aa83e['end'])?_0x45cdb5:_0x2aa83e['end'],_0x338ef4?_0x2aa83e['start']['isBefore'](_0x338ef4['getFirstRange']()['start'])?(_0x338ef4['removeMarkers'](),_0x338ef4=_0x20d974):_0x20d974['removeMarkers']():_0x338ef4=_0x20d974;}const _0x2dfd62=this['_model']['createRange'](_0x4fbe18,_0x45cdb5);if(_0x338ef4)this['_setSuggestionRange'](_0x338ef4,_0x2dfd62);else{const _0x302310=_0x49332a(),_0xed9910=_0x1c1a43['id'];this['_setSuggestionData']({'id':_0x302310,'type':'formatInline:'+_0x2c74e0,'data':_0x2a9341,'createdAt':new Date(),'authorId':_0xed9910,'attributes':_0x392c7b}),this['_addSuggestionMarker']('formatInline:'+_0x2c74e0,_0x302310,_0xed9910,_0x2dfd62);}}return null;}['markBlockFormat'](_0x26b082,_0x3a3c69,_0x2ac56d=[],_0x3eb70d=null,_0x294784={}){_0x3a3c69['formatGroupId']||(_0x3a3c69['formatGroupId']=_0x3a3c69['commandName']),_0x3a3c69['multipleBlocks']=_0x26b082['is']('range'),_0x3eb70d=_0x3eb70d||Kt(_0x3a3c69);const _0x485de4=_0x2ac56d['map'](_0x49a7f7=>zt(_0x49a7f7,this['_model'])),_0x36427f=_0x26b082['is']('range')?_0x26b082:zt(_0x26b082,this['_model']);if('never'===this['_trackFormatChanges']){const _0x44192a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3eb70d,'accept');return this['forceDefaultExecution'](()=>_0x44192a([_0x36427f],_0x3a3c69,_0x294784)),null;}_0x485de4['push'](_0x36427f);let _0x3d5488=!0x0;for(const _0x428819 of _0x485de4)if(!this['_rangeIsInLocalUserInsertion'](_0x428819)){_0x3d5488=!0x1;break;}if(_0x3d5488&&'always'!==this['_trackFormatChanges']){const _0x19112e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3eb70d,'accept');return this['forceDefaultExecution'](()=>_0x19112e([_0x36427f],_0x3a3c69,_0x294784)),null;}let _0x281ff1=null,_0x501f78=_0x36427f['start'],_0x205cac=_0x36427f['end'];for(const {suggestion:_0x2b069a,meta:_0x4d0f9a}of this['_findSuggestions'](_0x36427f,'formatBlock')){if(!_0x4d0f9a['isOwn'])continue;if(_0x4d0f9a['isNextTo']||_0x4d0f9a['containsRangeInObject']||_0x4d0f9a['isInsideObject'])continue;if(_0x2b069a['data']['formatGroupId']!=_0x3a3c69['formatGroupId'])continue;if(!Xt(_0x2b069a,_0x294784))continue;const _0x43ca92=_0x2b069a['getFirstRange']();if(_0x2b069a['subType']==_0x3eb70d){if(_0x43ca92['containsRange'](_0x36427f,!0x0))return null;_0x501f78=_0x501f78['isBefore'](_0x43ca92['start'])?_0x501f78:_0x43ca92['start'],_0x205cac=_0x205cac['isAfter'](_0x43ca92['end'])?_0x205cac:_0x43ca92['end'],_0x281ff1?_0x43ca92['start']['isBefore'](_0x281ff1['getFirstRange']()['start'])?(_0x281ff1['removeMarkers'](),_0x281ff1=_0x2b069a):_0x2b069a['removeMarkers']():_0x281ff1=_0x2b069a;}else{const _0x44a5fd=_0x36427f['getIntersection'](_0x43ca92);this['_cutOutSuggestionMarker'](_0x2b069a,_0x44a5fd);}}const _0x23dcab=this['editor']['plugins']['get']('Users')['me'],_0x1155a3=_0x49332a(),_0x333e2e=_0x23dcab['id'];if(_0x281ff1)return this['_setSuggestionRange'](_0x281ff1,this['_model']['createRange'](_0x501f78,_0x205cac)),_0x281ff1;{const _0x1d4de9=this['_setSuggestionData']({'id':_0x1155a3,'type':'formatBlock:'+_0x3eb70d,'data':_0x3a3c69,'createdAt':new Date(),'authorId':_0x333e2e,'attributes':_0x294784});return this['_addSuggestionMarker']('formatBlock:'+_0x3eb70d,_0x1155a3,_0x333e2e,this['_model']['createRange'](_0x501f78,_0x205cac)),_0x1d4de9;}}['markMultiRangeBlockFormat'](_0x55ed2b,_0x519020,_0x5968f8=[],_0x3ab264=null,_0x22f320={}){_0x519020['formatGroupId']||(_0x519020['formatGroupId']=_0x519020['commandName']);const _0xed67dd=_0x55ed2b[0x0];_0x519020['multipleBlocks']=_0xed67dd['is']('range'),_0x3ab264=_0x3ab264||Kt(_0x519020);const _0x5b4c27=_0x5968f8['map'](_0x197ee6=>zt(_0x197ee6,this['_model'])),_0x1654bd=_0xed67dd['is']('range')?_0x55ed2b:_0x55ed2b['map'](_0x50cb80=>zt(_0x50cb80,this['_model']));if('never'===this['_trackFormatChanges']){const _0x33715e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3ab264,'accept');return this['forceDefaultExecution'](()=>_0x33715e(_0x1654bd,_0x519020,_0x22f320)),null;}_0x5b4c27['push'](..._0x1654bd);let _0x50d980=!0x0;for(const _0x56fcee of _0x5b4c27)if(!this['_rangeIsInLocalUserInsertion'](_0x56fcee)){_0x50d980=!0x1;break;}if(_0x50d980&&'always'!==this['_trackFormatChanges']){const _0x242160=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3ab264,'accept');return this['forceDefaultExecution'](()=>_0x242160(_0x1654bd,_0x519020,_0x22f320)),null;}const _0x1b5e14=this['editor']['plugins']['get']('Users')['me'];for(const _0xe90022 of this['getSuggestions']()){if(_0xe90022['author']['id']!=_0x1b5e14['id'])continue;if('formatBlock'!=_0xe90022['type']||_0xe90022['data']['formatGroupId']!=_0x519020['formatGroupId'])continue;if(!Xt(_0xe90022,_0x22f320))continue;const _0x6fd79a=_0xe90022['subType']==_0x3ab264;for(let _0xb132ee=0x0;_0xb132ee<_0x1654bd['length'];_0xb132ee++){const _0x333496=_0x1654bd[_0xb132ee];for(const _0x5037ec of _0xe90022['getMarkers']()){const _0x2b2be7=_0x5037ec['getRange']();if(_0x333496['isEqual'](_0x2b2be7)){_0x6fd79a?(_0x1654bd['splice'](_0xb132ee,0x1),_0xb132ee--):_0xe90022['removeMarker'](_0x5037ec['name']);break;}}}}if(0x0==_0x1654bd['length'])return null;const _0x12f6b7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3ab264,'join');for(const _0x166c50 of this['getSuggestions']())if(_0x166c50['author']['id']==_0x1b5e14['id']&&'formatBlock'==_0x166c50['type']&&_0x166c50['data']['formatGroupId']==_0x519020['formatGroupId']&&_0x166c50['subType']==_0x3ab264&&Xt(_0x166c50,_0x22f320)&&(_0x12f6b7(_0x166c50['getRanges'](),_0x1654bd)||_0x12f6b7(_0x1654bd,_0x166c50['getRanges']()))){for(const _0x1c2172 of _0x1654bd)_0x166c50['addRange'](_0x1c2172);return _0x166c50;}const _0xebcdb8=_0x49332a(),_0x4c569c=_0x1b5e14['id'],_0x1a9754='formatBlock:'+_0x3ab264,_0x39e133=this['_setSuggestionData']({'id':_0xebcdb8,'type':_0x1a9754,'data':_0x519020,'createdAt':new Date(),'authorId':_0x4c569c,'attributes':_0x22f320});for(const _0x14af38 of _0x1654bd)this['_addSuggestionMarker'](_0x1a9754,_0xebcdb8,_0x4c569c,_0x14af38,o['getMultiRangeId']());return _0x39e133;}['markDeletion'](_0x5b7429,_0x1dde63=null,_0x5b2b91={}){if(_0x5b7429['isCollapsed'])return null;const _0x4d057a=this['editor']['plugins']['get']('Users')['me'],_0x1f16a0=new _0x28bdcd(_0x5b7429['start'],_0x5b7429['end']);for(const {suggestion:_0x1e39b4,meta:_0x359b4f}of this['_findSuggestions'](_0x1f16a0,'insertion'))if(_0x359b4f['isOwn']&&!_0x359b4f['isNextTo']){if(_0x1e39b4['isMultiRange']){const _0xa391c4=_0x1e39b4['getRanges']()['filter'](_0x4a6f7f=>'$graveyard'!=_0x4a6f7f['root']['rootName']);_0xa391c4['every'](_0x22d0fe=>_0x1f16a0['containsRange'](_0x22d0fe,!0x0))&&_0x1e39b4['discard']();if(_0xa391c4['some'](_0x2ee9b8=>_0x2ee9b8['containsRange'](_0x1f16a0,!0x0))){const _0x3c79a7=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1dde63,'accept');return this['forceDefaultExecution'](()=>_0x3c79a7([_0x1f16a0],null,_0x5b2b91)),null;}}else{const _0x73af2d=_0x1f16a0['getIntersection'](_0x1e39b4['getFirstRange']());null!==_0x73af2d&&_0x1e39b4['_onDiscard']([_0x73af2d],null,_0x5b2b91);}}if(_0x1f16a0['detach'](),_0x1f16a0['isCollapsed']||'$graveyard'==_0x1f16a0['root']['rootName'])return null;let _0x1be303=null,_0xf77a56=_0x1f16a0['start'],_0xa3f3a7=_0x1f16a0['end'];const _0x4c9855=this['_findSuggestions'](_0x1f16a0,'deletion');for(const {suggestion:_0x416c16,meta:_0x555248}of _0x4c9855){const _0x4617ea=this['_model']['createRange'](_0xf77a56,_0xa3f3a7);if(_0x555248['isOwn']&&(this['_mergeNestedSuggestions']||!_0x555248['containsRangeInObject']&&!_0x555248['isInsideObject'])){if(_0x416c16['isMultiRange']){if(!Xt(_0x416c16,_0x5b2b91))continue;let _0x357bfc=!0x0;for(const _0x3b3660 of _0x416c16['getRanges']()){if(_0x3b3660['containsRange'](_0x4617ea,!0x0))return _0x416c16;_0x4617ea['containsRange'](_0x3b3660)||(_0x357bfc=!0x1);}_0x357bfc&&_0x416c16['discard']();}else{const _0x296eb9=_0x416c16['getFirstRange']();if(_0x296eb9['containsRange'](_0x4617ea,!0x0))return _0x416c16;if(!Xt(_0x416c16,_0x5b2b91)){_0x4617ea['containsRange'](_0x296eb9)?_0x416c16['removeMarkers']():_0x296eb9['containsPosition'](_0xf77a56)?_0xf77a56=_0x296eb9['end']:_0x296eb9['containsPosition'](_0xa3f3a7)&&(_0xa3f3a7=_0x296eb9['start']);continue;}_0xf77a56=_0xf77a56['isBefore'](_0x296eb9['start'])?_0xf77a56:_0x296eb9['start'],_0xa3f3a7=_0xa3f3a7['isAfter'](_0x296eb9['end'])?_0xa3f3a7:_0x296eb9['end'],_0x5b2b91=Object['assign']({},_0x416c16['attributes']),_0x1be303?_0x296eb9['start']['isBefore'](_0x1be303['getFirstRange']()['start'])?(_0x1be303['removeMarkers'](),_0x1be303=_0x416c16):_0x416c16['removeMarkers']():_0x1be303=_0x416c16;}}}if(_0x1be303)return this['_setSuggestionRange'](_0x1be303,this['_model']['createRange'](_0xf77a56,_0xa3f3a7)),_0x1be303;{const _0x925cc1=_0x49332a(),_0x4fcbf6=this['_model']['createRange'](_0xf77a56,_0xa3f3a7),_0x2605cf=_0x4d057a['id'],_0x52bc0d=_0x1dde63?'deletion:'+_0x1dde63:'deletion',_0x2692aa=this['_setSuggestionData']({'id':_0x925cc1,'type':_0x52bc0d,'createdAt':new Date(),'authorId':_0x2605cf,'attributes':_0x5b2b91});return this['_addSuggestionMarker'](_0x52bc0d,_0x925cc1,_0x2605cf,_0x4fcbf6),_0x2692aa;}}['markMultiRangeDeletion'](_0x5e5461,_0x3eedab='multi',_0x175657={}){const _0x37191b=this['editor']['plugins']['get']('Users')['me'],_0xf0d671=_0x5e5461['map'](_0x4b4edf=>new _0x28bdcd(_0x4b4edf['start'],_0x4b4edf['end'])),_0x83934e=new Set();for(const {suggestion:_0x52652b,meta:_0x10c88b}of this['_findSuggestions'](_0xf0d671,'insertion'))_0x10c88b['isOwn']&&!_0x10c88b['isNextTo']&&_0x83934e['add'](_0x52652b);for(const _0xcb647b of _0x83934e)if(_0xcb647b['isMultiRange']){const _0x21c221=_0xcb647b['getRanges']();(!_0xcb647b['attributes']||!_0xcb647b['attributes']['skipNestingCheck'])&&(_0x21c221['every'](_0x138687=>_0xf0d671['some'](_0x10527f=>_0x10527f['containsRange'](_0x138687,!0x0)))&&_0xcb647b['discard']());if(_0xf0d671['every'](_0x16533f=>_0x21c221['some'](_0x3af6cd=>_0x3af6cd['containsRange'](_0x16533f,!0x0)))){const _0x4ffe6a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3eedab,'accept');return this['forceDefaultExecution'](()=>_0x4ffe6a(_0x5e5461,null,_0x175657)),null;}}else{const _0x46791a=_0xcb647b['getFirstRange']();_0xf0d671['some'](_0x3570b5=>_0x3570b5['containsRange'](_0x46791a,!0x0))&&_0xcb647b['discard']();if(_0xf0d671['every'](_0x110ddb=>_0x46791a['containsRange'](_0x110ddb,!0x0))){const _0x8e605e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3eedab,'accept');return this['forceDefaultExecution'](()=>_0x8e605e(_0xf0d671,null,_0x175657)),null;}}const _0x2d51bd=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3eedab,'join');let _0x2a9789=null;for(const _0x25c554 of this['getSuggestions']())if(_0x25c554['author']['id']==_0x37191b['id']&&_0x25c554['isInContent']&&'deletion'==_0x25c554['type']&&_0x25c554['subType']==_0x3eedab&&Xt(_0x25c554,_0x175657)&&(_0x2d51bd(_0x25c554['getRanges'](),_0xf0d671)||_0x2d51bd(_0xf0d671,_0x25c554['getRanges']()))){if(_0x2a9789){if(_0x25c554['commentThread']&&_0x25c554['commentThread']['length'])continue;for(const _0x1f2998 of _0x25c554['getRanges']())_0x2a9789['isIntersectingWithRange'](_0x1f2998)||_0x2a9789['addRange'](_0x1f2998);_0x25c554['removeMarkers']();}else{_0x2a9789=_0x25c554;for(const _0x549024 of _0xf0d671)_0x25c554['isIntersectingWithRange'](_0x549024)||_0x25c554['addRange'](_0x549024);}}if(_0x2a9789)return _0x2a9789;_0x83934e['clear']();for(const {suggestion:_0xb0ea85,meta:_0x29be2f}of this['_findSuggestions'](_0xf0d671,'deletion'))_0x29be2f['isOwn']&&(this['_mergeNestedSuggestions']||!_0x29be2f['containsRangeInObject']&&!_0x29be2f['isInsideObject'])&&Xt(_0xb0ea85,_0x175657)&&_0x83934e['add'](_0xb0ea85);for(const _0x10a299 of _0x83934e){const _0x52b3e3=_0x10a299['getRanges']();if(!_0x175657||!_0x175657['skipNestingCheck']){if(_0xf0d671['every'](_0x4a67ac=>_0x52b3e3['some'](_0x54c036=>_0x54c036['containsRange'](_0x4a67ac,!0x0))))return _0x10a299;}(!_0x10a299['attributes']||!_0x10a299['attributes']['skipNestingCheck'])&&(_0x52b3e3['every'](_0x4acb23=>_0xf0d671['some'](_0x3e8dd1=>_0x3e8dd1['containsRange'](_0x4acb23,!0x0)))&&_0x10a299['discard']());}const _0xed929a=_0x49332a(),_0x50d73b=_0x37191b['id'],_0x328554='deletion:'+_0x3eedab,_0x197fe8=this['_setSuggestionData']({'id':_0xed929a,'type':_0x328554,'createdAt':new Date(),'authorId':_0x50d73b,'attributes':_0x175657});for(const _0x168337 of _0xf0d671)_0x168337['detach'](),_0x168337['isCollapsed']||'$graveyard'==_0x168337['root']['rootName']||this['_addSuggestionMarker'](_0x328554,_0xed929a,_0x50d73b,_0x168337,o['getMultiRangeId']());return _0x197fe8;}['markAttributeChange'](_0x1bee59,_0x4ff408,_0x5b0efa,_0x49dc44,_0x2e184f){if(_0x1bee59['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x5c697c=this['editor']['plugins']['get']('Users')['me']['id'],_0x9aba=Array['from'](this['_suggestions']['values']())['filter'](_0x32085c=>'attribute'==_0x32085c['type']&&_0x32085c['data']['key']==_0x4ff408&&_0x32085c['isIntersectingWithRange'](_0x1bee59));if('default'===this['_trackFormatChanges']){const _0x369653=this['_findSuggestions'](_0x1bee59,'insertion')['filter'](({meta:_0x216909})=>_0x216909['isOwn']&&!_0x216909['isInsideObject']&&!_0x216909['isNextTo'])['map'](({suggestion:_0x1e529e})=>_0x1e529e);_0x9aba['unshift'](..._0x369653);}const _0x2defd0=new Map([[_0x1bee59,_0x5b0efa]]);for(const _0x20cd79 of _0x9aba){const _0x25316a='attribute'==_0x20cd79['type']?_0x20cd79['data']['oldValue']:void 0x0,_0x4de1cf=_0x20cd79['getFirstRange'](),_0x125019=Array['from'](_0x2defd0['keys']())['find'](_0x2e9bb9=>_0x2e9bb9['isIntersecting'](_0x4de1cf));if(!_0x125019)continue;const _0x28d837=_0x125019['getDifference'](_0x4de1cf);this['_isBlockAttribute'](_0x4ff408)&&'insertion'==_0x20cd79['type']&&0x0!=_0x28d837['length']||(_0x2defd0['delete'](_0x125019),_0x28d837['forEach'](_0x1b7eab=>{_0x2defd0['set'](_0x1b7eab,_0x5b0efa);}),'insertion'!=_0x20cd79['type']&&_0x25316a!=_0x49dc44&&_0x2defd0['set'](_0x125019['getIntersection'](_0x4de1cf),_0x25316a));}const _0x24508a=[];for(const [_0x50cdb4,_0x29b539]of _0x2defd0){const _0x149186=_0x49332a(),_0x296fbb={'key':_0x4ff408,'oldValue':_0x29b539,'newValue':_0x49dc44};_0x4ff408['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':_0x4ff408});const _0x3a80d3=('attribute:'+(_0x4ff408+'|'+Kt({'newValue':_0x49dc44})))['substring'](0x0,0x3c),_0x4e01e1=this['_setSuggestionData']({'id':_0x149186,'type':_0x3a80d3,'data':_0x296fbb,'createdAt':new Date(),'authorId':_0x5c697c,'attributes':_0x2e184f});_0x24508a['push'](_0x4e01e1),this['_addSuggestionMarker'](_0x3a80d3,_0x149186,_0x5c697c,_0x50cdb4);}return _0x24508a;}['enableDefaultAttributesIntegration'](_0x49f528){this['enableCommand'](_0x49f528,(_0x186c22,..._0x141673)=>{this['_recordAttributeChanges'](()=>{_0x186c22(..._0x141673);});});}['registerBlockAttribute'](_0x4b5d64){this['_blockAttributeKeys']['add'](_0x4b5d64);}['registerInlineAttribute'](_0x859c8b){this['_inlineAttributeKeys']['add'](_0x859c8b);}['_getAttributeKey'](_0x4a9b3b){return'attribute'==_0x4a9b3b['type']?_0x4a9b3b['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x3f546e,_0x35d07b){const _0x479857=_0x3f546e['getFirstMarker']();this['_model']['change'](_0x3e1a95=>{_0x3e1a95['updateMarker'](_0x479857,{'range':_0x35d07b});});}['_addThreadToSuggestion'](_0x1e8d35){const _0x5ae91c=_0x1e8d35['id'],_0x435647=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x5ae91c)||this['_commentsRepository']['addCommentThread']({'channelId':_0x435647,'threadId':_0x5ae91c,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x32f42e=this['_commentsRepository']['getCommentThread'](_0x5ae91c);_0x32f42e['unbind']('isRemovable'),_0x32f42e['isRemovable']=!0x1,_0x1e8d35['commentThread']=_0x32f42e;}['_checkSuggestionCorrectness'](_0x305b6d,_0x54d934,_0x51f039,_0x41217a){if(_0x305b6d['type']!=_0x54d934||_0x305b6d['subType']!=_0x51f039||_0x305b6d['creator']['id']!=_0x41217a)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x5e8aa1('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x4603c1,_0x483cff){const _0x17a634=_0x4603c1['getFirstRange']();if(_0x483cff['isEqual'](_0x17a634))_0x4603c1['removeMarkers']();else{if(_0x17a634['containsRange'](_0x483cff)){const _0x36e4fc=this['_model']['createPositionAt'](_0x483cff['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4603c1,this['_model']['createRange'](_0x17a634['start'],_0x36e4fc));const _0x374b32=_0x49332a(),_0x15831c=_0x4603c1['creator']['id'],_0x327316=_0x4603c1['type']+':'+_0x4603c1['subType'];this['_setSuggestionData']({'id':_0x374b32,'type':_0x327316,'createdAt':new Date(),'authorId':_0x15831c,'data':_0x4603c1['data'],'attributes':_0x4603c1['attributes']});const _0x36ffc2=this['_model']['createPositionAt'](_0x483cff['end']['parent'],'after'),_0x13244a=this['_model']['createRange'](_0x36ffc2,_0x17a634['end']);this['_addSuggestionMarker'](_0x327316,_0x374b32,_0x15831c,_0x13244a);}else{if(_0x17a634['containsPosition'](_0x483cff['start'])){const _0x480399=this['_model']['createPositionAt'](_0x483cff['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4603c1,this['_model']['createRange'](_0x17a634['start'],_0x480399));}else{const _0x514384=this['_model']['createPositionAt'](_0x483cff['end']['parent'],'after');this['_setSuggestionRange'](_0x4603c1,this['_model']['createRange'](_0x514384,_0x17a634['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x129ecc){for(const {suggestion:_0x41215,meta:_0x4a347f}of this['_findSuggestions'](_0x129ecc,'insertion')){if(!_0x4a347f['isOwn'])continue;const _0x549305=_0x41215['getRanges']();for(const _0x148ce0 of _0x549305)if(!_0x129ecc['getDifference'](_0x148ce0)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x114cff){const _0x45ec59=this['editor']['plugins']['get']('Users')['getUser'](_0x114cff);if(!_0x45ec59)throw new _0x5e8aa1('track-changes-user-not-found',this);return _0x45ec59;}['_getExternalAuthor'](_0x5c826d){const _0x40a7c7=this['editor']['plugins']['get']('Users'),_0x433e1f=_0x178afd('external:'+_0x5c826d),_0x2387f9=_0x40a7c7['getUser'](_0x433e1f);return _0x2387f9||_0x40a7c7['addUser']({'id':_0x433e1f,'name':_0x5c826d});}['_createSuggestion'](_0x169954,_0x219074,_0x1af028,_0x96c9fa,_0x37cb79){const _0x1493d3=this['_getAuthorFromId'](_0x96c9fa),_0x77e9ea=this['_suggestionFactory']['buildSuggestion'](_0x169954,_0x219074,_0x1af028,_0x1493d3,_0x37cb79,_0x365f60=>{this['_updateSuggestionData'](_0x1af028,{'attributes':_0x365f60});const _0x1ff6f0=this['getSuggestion'](_0x1af028);this['_joinWithAdjacentSuggestions'](new Set([_0x1ff6f0])),this['_refreshSuggestionsChain'](new Set([_0x1ff6f0]));});return this['listenTo'](_0x77e9ea,'accept',()=>{this['_updateSuggestionData'](_0x1af028,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x77e9ea,'discard',()=>{this['_updateSuggestionData'](_0x1af028,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x1af028,_0x77e9ea),this['_suggestionState']['set'](_0x77e9ea,'notReady'),_0x77e9ea;}['_splitMarkerName'](_0x1ff6a8){const _0x40dd84=_0x1ff6a8['split'](':');return{'group':_0x40dd84[0x0],'type':_0x40dd84[0x1],'subType':_0x40dd84['length']>=0x5?_0x40dd84[0x2]:null,'id':_0x40dd84['length']<0x5?_0x40dd84[0x2]:_0x40dd84[0x3],'authorId':_0x40dd84['length']<0x5?_0x40dd84[0x3]:_0x40dd84[0x4],'markerCount':0x6==_0x40dd84['length']?_0x40dd84[0x5]:null};}['_breakSuggestionMarker'](_0x4b9518,_0x4566da,_0x16ffd3){const _0xf9a8a8=_0x4b9518['getFirstRange'](),_0x384f33=_0xf9a8a8['start'],_0x122b4d=_0xf9a8a8['end'];this['_setSuggestionRange'](_0x4b9518,this['_model']['createRange'](_0x384f33,_0x4566da));const _0xd65e83=_0x49332a(),_0x1f5327=_0x4b9518['creator']['id'],_0x4742b6=_0x4b9518['type']+(_0x4b9518['subType']?':'+_0x4b9518['subType']:'');this['_setSuggestionData']({'id':_0xd65e83,'type':_0x4742b6,'createdAt':new Date(),'authorId':_0x1f5327,'originalSuggestionId':_0x4b9518['id'],'attributes':_0x4b9518['attributes'],'data':_0x4b9518['data']});const _0x1c612a=this['_getAttributeKey'](_0x4b9518);('formatBlock'==_0x4b9518['type']||_0x1c612a&&this['_isBlockAttribute'](_0x1c612a))&&(_0x16ffd3=this['_model']['createPositionBefore'](_0x16ffd3['parent'])),this['_addSuggestionMarker'](_0x4742b6,_0xd65e83,_0x1f5327,this['_model']['createRange'](_0x16ffd3,_0x122b4d));}['_findSuggestions'](_0xd98e9,_0x1437a3=null){const _0x353700=[],_0x123d56=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0xd98e9)||(_0xd98e9=[_0xd98e9]);for(const _0x45e4d9 of this['getSuggestions']()){if(!_0x45e4d9['isInContent'])continue;if(_0x1437a3&&_0x45e4d9['type']!=_0x1437a3)continue;let _0x104c20=!0x1;for(const _0x19a831 of _0x45e4d9['getRanges']()){for(const _0x3098c8 of _0xd98e9){const _0xee378f=_0x3098c8['start']['isEqual'](_0x19a831['end'])||_0x3098c8['end']['isEqual'](_0x19a831['start']);if(_0xee378f||_0x3098c8['getIntersection'](_0x19a831)){const _0x45ab57=_0x3098c8['containsRange'](_0x19a831)&&Gt(this['_model']['schema'],_0x19a831['start'],_0x3098c8),_0x458412=_0x19a831['containsRange'](_0x3098c8)&&Gt(this['_model']['schema'],_0x3098c8['start'],_0x19a831);_0x353700['push']({'suggestion':_0x45e4d9,'meta':{'isOwn':_0x123d56==_0x45e4d9['author'],'isNextTo':_0xee378f,'isInsideObject':_0x45ab57,'containsRangeInObject':_0x458412}}),_0x104c20=!0x0;break;}}if(_0x104c20)break;}}return _0x353700;}['_addSuggestionMarker'](_0x5189e1,_0x24a41b,_0x26c187,_0x5d20ff,_0x36f10c){this['_model']['change'](_0x4a91e8=>{let _0x6a3c38='suggestion:'+_0x5189e1+':'+_0x24a41b+':'+_0x26c187;_0x36f10c&&(_0x6a3c38=_0x6a3c38+':'+_0x36f10c),_0x4a91e8['addMarker'](_0x6a3c38,{'range':_0x5d20ff,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x5a16e3){const _0x7b1dd8=_0x5a16e3['previous'],_0x2e022e=_0x5a16e3['next'];_0x5a16e3['previous']=null,_0x5a16e3['next']=null,null!=_0x7b1dd8&&_0x7b1dd8['next']==_0x5a16e3&&(_0x7b1dd8['next']=_0x2e022e),null!=_0x2e022e&&_0x2e022e['previous']==_0x5a16e3&&(_0x2e022e['previous']=_0x7b1dd8),'ready'==this['_suggestionState']['get'](_0x5a16e3)&&(this['_suggestionState']['set'](_0x5a16e3,'removed'),this['fire']('suggestionUnloaded',_0x5a16e3,_0x7b1dd8,_0x2e022e));}['_setSuggestionData'](_0x5c6c72){const _0x111562=_0x5c6c72['id'],_0x23987d=this['addSuggestionData'](_0x5c6c72);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x3661d4=this['editor']['plugins']['get']('PendingActions'),_0x8c3600=_0x23987d['hasComments'],_0x54bdab=_0x23987d['subType']?_0x23987d['type']+':'+_0x23987d['subType']:_0x23987d['type'],_0x44815f=this['editor']['locale'],_0x26f63a=_0x3661d4['add'](c(_0x44815f,'PENDING_ACTION_SUGGESTION')),_0x8ab046={'id':_0x111562,'type':_0x54bdab,'hasComments':_0x8c3600,'data':_0x5c6c72['data']||null,'originalSuggestionId':_0x5c6c72['originalSuggestionId']||null,'attributes':_0x23987d['attributes']};this['_adapter']['addSuggestion'](_0x8ab046)['then'](_0x454b80=>{_0x23987d['_saved']=!0x0,_0x3661d4['remove'](_0x26f63a),_0x454b80&&_0x454b80['createdAt']&&(this['_suggestions']['get'](_0x111562)['createdAt']=_0x454b80['createdAt']);})['catch'](_0x585401=>{throw _0x3c939c('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x23987d['discard']();}),_0x23987d['stopListening'](),this['_suggestions']['delete'](_0x23987d['id']),this['_suggestionState']['delete'](_0x23987d),_0x585401;});}return _0x23987d;}['_isBlockAttribute'](_0x103c8a){return this['_blockAttributeKeys']['has'](_0x103c8a);}['_updateSuggestionData'](_0x364b31,_0x473546){const _0xa5e31b=this['editor']['plugins']['get']('PendingActions'),_0x263414=this['getSuggestion'](_0x364b31);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x263414['_saved']){const _0x11ae8e=_0xa5e31b['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x364b31,_0x473546)['then'](()=>{_0xa5e31b['remove'](_0x11ae8e);});}else _0x263414['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x364b31,_0x473546);});}}['_getSuggestionData'](_0x4a0a11){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x5e8aa1('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x4a0a11);}['_handleNewSuggestionMarker'](_0x50e9f3){const {id:_0x67eea3,type:_0x3e762d,subType:_0x29b280,authorId:_0x45076f}=this['_splitMarkerName'](_0x50e9f3),_0x2ad3f5=this['_suggestions']['get'](_0x67eea3)||this['_createSuggestion'](_0x3e762d,_0x29b280,_0x67eea3,_0x45076f,{});switch(this['_checkSuggestionCorrectness'](_0x2ad3f5,_0x3e762d,_0x29b280,_0x45076f),this['_suggestionState']['get'](_0x2ad3f5)){case'notReady':this['_getSuggestionData'](_0x67eea3)['then'](_0x3195fa=>{let _0x5259ed=Promise['resolve']();_0x3195fa['hasComments']&&(_0x5259ed=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x67eea3})),_0x5259ed['then'](()=>{this['addSuggestionData'](_0x3195fa)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x2ad3f5,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x67eea3,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x2ad3f5,'ready'),this['fire']('suggestionLoaded',_0x2ad3f5);break;case'ready':this['fire']('suggestionChanged',_0x2ad3f5);}return _0x2ad3f5['addMarkerName'](_0x50e9f3),_0x2ad3f5;}['_refreshSuggestionsChain'](_0x5406a3){const _0x2e64b2=Array['from'](_0x5406a3),_0x299a66=_0x2e64b2['filter'](_0x14332d=>'attribute'==_0x14332d['type']);this['_refreshAttributeSuggestionsChain'](_0x299a66);const _0x40d120=_0x2e64b2['filter'](_0x1c5ef4=>!_0x1c5ef4['isMultiRange']&&'attribute'!=_0x1c5ef4['type']),_0x42f74f=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x42a655=>!_0x42a655['isMultiRange']&&'attribute'!=_0x42a655['type']),_0x434136=_0x42f74f['filter'](_0x39b7b1=>!_0x5406a3['has'](_0x39b7b1)),_0xcecd13=new Map(_0x42f74f['map'](_0x2765aa=>[_0x2765aa,this['_suggestionFactory']['getSuggestionCallback'](_0x2765aa['type'],_0x2765aa['subType'],'chain')])),_0x25f6ac=new Map(_0x42f74f['map'](_0x19e69e=>[_0x19e69e,_0x19e69e['getFirstRange']()])),_0x5b3c6e=new Set(),_0x5726bd=new Set();for(let _0x515d7a=0x0;_0x515d7a<_0x40d120['length'];_0x515d7a++)_0x204242(_0x40d120[_0x515d7a],_0x40d120,_0x515d7a+0x1);for(let _0x311373=0x0;_0x311373<_0x40d120['length'];_0x311373++)_0x204242(_0x40d120[_0x311373],_0x434136,0x0);const _0x477e3f=new Set();for(let _0x2b3290=0x0;_0x2b3290<_0x40d120['length'];_0x2b3290++){const _0x328972=_0x40d120[_0x2b3290];!_0x5726bd['has'](_0x328972)&&_0x328972['previous']&&(_0x477e3f['add'](_0x328972['previous']),_0x328972['previous']['next']===_0x328972&&(_0x328972['previous']['next']=null),_0x328972['previous']=null),!_0x5b3c6e['has'](_0x328972)&&_0x328972['next']&&(_0x477e3f['add'](_0x328972['next']),_0x328972['next']['previous']===_0x328972&&(_0x328972['next']['previous']=null),_0x328972['next']=null);}function _0x204242(_0x381cb7,_0xd6c3ca,_0x23b237){for(let _0x936196=_0x23b237;_0x936196<_0xd6c3ca['length'];_0x936196++){const _0x6a866=_0x44f727(_0x381cb7,_0xd6c3ca[_0x936196]);_0x6a866&&(_0x6a866[0x0]['next']=_0x6a866[0x1],_0x6a866[0x1]['previous']=_0x6a866[0x0],_0x5b3c6e['add'](_0x6a866[0x0]),_0x5726bd['add'](_0x6a866[0x1]));}}function _0x44f727(_0x7ce845,_0x10d851){if(_0x7ce845['author']['id']!==_0x10d851['author']['id'])return null;const _0x5f1bcd=_0xcecd13['get'](_0x7ce845)(_0x7ce845,_0x10d851,_0x25f6ac['get'](_0x7ce845),_0x25f6ac['get'](_0x10d851));if(!_0x5f1bcd)return null;return _0xcecd13['get'](_0x10d851)(_0x7ce845,_0x10d851,_0x25f6ac['get'](_0x7ce845),_0x25f6ac['get'](_0x10d851))?_0x5f1bcd[0x1]['commentThread']&&_0x5f1bcd[0x1]['commentThread']['length']?null:_0x5f1bcd:null;}_0x477e3f['size']&&this['_refreshSuggestionsChain'](_0x477e3f);}['_refreshAttributeSuggestionsChain'](_0x138b7b){if(0x0==_0x138b7b['length'])return;const _0x2f497c=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x6a08d0=>'attribute'==_0x6a08d0['type']&&_0x6a08d0['_isDataLoaded']),_0x355a5e=[],_0x303f53=new Map();for(const _0x39249d of _0x2f497c){const _0xdc71b7=_0x178afd(_0x39249d['attributes']);_0x303f53['has'](_0xdc71b7)||(_0x303f53['set'](_0xdc71b7,_0x355a5e['length']),_0x355a5e['push']([]));const _0x1185e3=_0x303f53['get'](_0xdc71b7);_0x355a5e[_0x1185e3]['push'](_0x39249d);}!(function(){_0x355a5e['sort']((_0x3712ea,_0x199faa)=>{const _0x5a00a0=_0x3712ea[0x0]['createdAt'],_0x3c2875=_0x199faa[0x0]['createdAt'];return _0x5a00a0==_0x3c2875?_0x3712ea[0x0]['attributes']['groupId']<_0x199faa[0x0]['attributes']['groupId']?-0x1:0x1:_0x5a00a0<_0x3c2875?-0x1:0x1;});for(const _0x5d49de of _0x355a5e)_0x5d49de['sort']((_0x241551,_0x189b90)=>_0x241551['id']<_0x189b90['id']?-0x1:0x1);}());for(let _0x244ce1=0x0;_0x244ce1<_0x355a5e['length'];_0x244ce1++){if(0x0==_0x355a5e[_0x244ce1]['length'])continue;const _0x485ed1=[];for(let _0x2617f2=_0x244ce1+0x1;_0x2617f2<_0x355a5e['length'];_0x2617f2++)0x0!=_0x355a5e[_0x2617f2]['length']&&_0x35d80b(_0x355a5e[_0x244ce1],_0x355a5e[_0x2617f2])&&_0x485ed1['push'](_0x2617f2);for(const _0x50966a of _0x485ed1)_0x355a5e[_0x244ce1]=_0x355a5e[_0x244ce1]['concat'](_0x355a5e[_0x50966a]),_0x355a5e[_0x50966a]=[];}for(const _0xcdacc2 of _0x355a5e)for(let _0x186cd3=0x0;_0x186cd3<_0xcdacc2['length'];_0x186cd3++){const _0x40b503=_0xcdacc2[_0x186cd3+0x1]||null;_0xcdacc2[_0x186cd3]['next']!==_0x40b503&&(_0xcdacc2[_0x186cd3]['next']=_0x40b503);}for(const _0x442fba of _0x355a5e)for(let _0x57272a=0x0;_0x57272a<_0x442fba['length'];_0x57272a++){const _0x35d955=_0x442fba[_0x57272a-0x1]||null;_0x442fba[_0x57272a]['previous']!==_0x35d955&&(_0x442fba[_0x57272a]['previous']=_0x35d955);}function _0x35d80b(_0x4b0e4b,_0x5b2689){if(_0x4b0e4b[0x0]['attributes']['groupId']!==_0x5b2689[0x0]['attributes']['groupId']&&_0x4b0e4b[0x0]['author']!==_0x5b2689[0x0]['author'])return!0x1;if(!function(_0x5299c3,_0x269b87){if(!_0x5299c3['hasComments']&&!_0x269b87['hasComments'])return!0x0;if(_0x5299c3['hasComments']&&_0x269b87['hasComments'])return!0x1;if(_0x5299c3['hasComments']&&_0x269b87['createdAt']<_0x5299c3['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x269b87['hasComments']&&_0x5299c3['createdAt']<_0x269b87['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x4b0e4b[0x0],_0x5b2689[0x0]))return!0x1;const _0xc3c60=Ft(_0x4b0e4b[0x0]['attributes'],'groupId'),_0x4defc4=Ft(_0x5b2689[0x0]['attributes'],'groupId');if(!_0x337fb7(_0xc3c60,_0x4defc4))return!0x1;return!!_0x4b0e4b['every'](_0x3c9ff8=>_0x5b2689['some'](_0x1c5669=>_0x3c9ff8['getFirstRange']()['isEqual'](_0x1c5669['getFirstRange']())))&&_0x5b2689['every'](_0x10dfc7=>_0x4b0e4b['some'](_0x1dc81e=>_0x10dfc7['getFirstRange']()['isEqual'](_0x1dc81e['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x27b0d0){const _0x1bd327=Array['from'](_0x27b0d0),_0x3f533b=this['getSuggestions']({'skipNotAttached':!0x0}),_0x48bea7=_0x3f533b['filter'](_0x406e76=>!_0x27b0d0['has'](_0x406e76)),_0x3f21d3=new Map(_0x1bd327['map'](_0x79bb6f=>[_0x79bb6f,this['_suggestionFactory']['getSuggestionCallback'](_0x79bb6f['type'],_0x79bb6f['subType'],'join')])),_0x3caf03=new Map(_0x3f533b['map'](_0x3117f6=>[_0x3117f6,_0x3117f6['getRanges']()]));for(let _0x5d78fb=0x0;_0x5d78fb<_0x1bd327['length'];_0x5d78fb++){if(_0x4043ad(this,_0x1bd327[_0x5d78fb],_0x1bd327,_0x5d78fb+0x1))return!0x0;}for(let _0x463c8b=0x0;_0x463c8b<_0x1bd327['length'];_0x463c8b++){if(_0x4043ad(this,_0x1bd327[_0x463c8b],_0x48bea7,0x0))return!0x0;}return!0x1;function _0x4043ad(_0xe225d3,_0x3e2a6f,_0x54ec80,_0x5452a4){for(let _0x1d7393=_0x5452a4;_0x1d7393<_0x54ec80['length'];_0x1d7393++){const _0x15685a=_0x54ec80[_0x1d7393];if(_0x15685a['type']!==_0x3e2a6f['type']||_0x15685a['author']['id']!==_0x3e2a6f['author']['id']||_0x15685a['subType']!==_0x3e2a6f['subType'])continue;if(!Qt(_0x3e2a6f,_0x15685a))continue;if('attribute'==_0x3e2a6f['type']&&_0x3e2a6f['data']['oldValue']!=_0x15685a['data']['oldValue'])continue;if('attribute'==_0x3e2a6f['type']&&_0xe225d3['_isBlockAttribute'](_0x3e2a6f['data']['key']))continue;if('formatBlock'==_0x3e2a6f['type']){const _0x43f6e2=_0xe225d3['editor']['model'],_0x5da543=_0x3e2a6f['getContainedElement']();if(_0x5da543&&(_0x43f6e2['schema']['isObject'](_0x5da543)||_0x43f6e2['schema']['isLimit'](_0x5da543)))continue;}const _0x22a926=_0x3f21d3['get'](_0x3e2a6f),_0xd0a8c7=_0x3caf03['get'](_0x3e2a6f),_0x2ebba1=_0x3caf03['get'](_0x15685a),_0x373592=_0x3e2a6f['commentThread']&&_0x3e2a6f['commentThread']['length'],_0x17e38a=_0x15685a['commentThread']&&_0x15685a['commentThread']['length'];if(!_0x373592&&_0x22a926(_0x2ebba1,_0xd0a8c7))return _0xe225d3['_joinSuggestions'](_0x15685a,_0x3e2a6f),_0x3caf03['delete'](_0x3e2a6f),!0x0;if(!_0x17e38a&&_0x22a926(_0xd0a8c7,_0x2ebba1))return _0xe225d3['_joinSuggestions'](_0x3e2a6f,_0x15685a),_0x3caf03['delete'](_0x15685a),!0x0;}return!0x1;}}['_joinSuggestions'](_0x8609cf,_0x21f6a2){if(_0x8609cf['isMultiRange']){for(const _0x43f65a of _0x21f6a2['getRanges']())_0x8609cf['addRange'](_0x43f65a);}else{const _0x2d3464=_0x21f6a2['getFirstRange']()['end'];this['_setSuggestionRange'](_0x8609cf,this['_model']['createRange'](_0x8609cf['getFirstRange']()['start'],_0x2d3464));}_0x21f6a2['removeMarkers']();}['_getMarkerAnnouncementText'](_0xd03cb4,_0x90dac6,_0x2137c7){const _0x355198=_0xd03cb4['startsWith']('format')||_0xd03cb4['startsWith']('attribute')?'FORMATTING':_0xd03cb4['toUpperCase']();return c(this['editor']['locale'],_0x90dac6+'_'+_0x355198+'_SUGGESTION_ANNOUNCEMENT',_0x2137c7);}['_initAriaMarkerChangeAnnouncements'](){const _0x707be6=this['editor'];if(!_0x707be6['ui'])return;const {ariaLiveAnnouncer:_0x506a51}=_0x707be6['ui'];_0x54fe47(this['_model'],({left:_0x584345,entered:_0x17d45e})=>{for(const _0x3c2088 of _0x584345){const {group:_0x7493c9,type:_0x1ebfea}=this['_splitMarkerName'](_0x3c2088['name']);if('suggestion'===_0x7493c9){_0x506a51['announce'](this['_getMarkerAnnouncementText'](_0x1ebfea,'LEAVE'));break;}}for(const _0x1865f4 of _0x17d45e){const {group:_0x26143b,type:_0x44353b}=this['_splitMarkerName'](_0x1865f4['name']);if('suggestion'===_0x26143b){_0x506a51['announce'](this['_getMarkerAnnouncementText'](_0x44353b,'ENTER',_0x1e72b8(_0x2e8e57)));break;}}});}['_processAttributeChanges'](_0x360142){if(this['_recordAttributeSuggestions'])return!0x1;const _0x48e8b5=this['editor'],_0x1f7961=_0x48e8b5['model']['document']['differ']['getChanges']();if(0x0==_0x1f7961['length'])return!0x1;const _0x31df53=[],_0xacfb02=_0x1f7961['filter'](_0x26041c=>'attribute'==_0x26041c['type']),_0x4a80bc=_0x1f7961['filter'](_0xe2f90e=>'insert'==_0xe2f90e['type']&&'$text'!=_0xe2f90e['name']),_0x4a18f4=_0x1f7961['filter'](_0x2b708c=>'remove'==_0x2b708c['type']&&'$text'!=_0x2b708c['name']);for(const _0x3e0951 of _0xacfb02)_0x31df53['push']({'key':_0x3e0951['attributeKey'],'newValue':_0x3e0951['attributeNewValue'],'oldValue':_0x3e0951['attributeOldValue'],'range':qt(_0x3e0951['range'],_0x48e8b5['model'])});for(const _0x50bfc6 of _0x4a80bc){const _0x4e32c1=_0x4a18f4['find'](_0x1a57e6=>_0x1a57e6['position']['isEqual'](_0x50bfc6['position']));_0x4e32c1&&_0x31df53['push']({'key':u,'newValue':_0x50bfc6['name'],'oldValue':_0x4e32c1['name'],'range':_0x48e8b5['model']['createRangeOn'](_0x50bfc6['position']['nodeAfter'])});}return 0x0!=_0x31df53['length']&&this['_reduceExistingSuggestions'](_0x360142,_0x31df53);}['_processAttributeSuggestions'](_0x19a62f){let _0x19c232=!0x1;const _0x5248c2=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x43c343=>_0x43c343['data']['newRange']&&_0x43c343['name']['startsWith']('suggestion:attribute:'));for(const _0x6d181c of _0x5248c2){const {subType:_0x29118a,id:_0x5d6d2e}=this['_splitMarkerName'](_0x6d181c['name']),_0x28ba4f=_0x29118a['split']('|')[0x0];for(const _0x361f1f of this['getSuggestions']({'skipNotAttached':!0x0}))_0x361f1f['id']!=_0x5d6d2e&&'attribute'==_0x361f1f['type']&&_0x361f1f['data']&&_0x361f1f['data']['key']==_0x28ba4f&&_0x361f1f['getFirstRange']()['isIntersecting'](_0x6d181c['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x361f1f,_0x6d181c['data']['newRange'],_0x19a62f),_0x19c232=!0x0);}return _0x19c232;}['_recordAttributeChanges'](_0x3844d1){this['_recordAttributeSuggestions']=!0x0,_0x3844d1();}['_isRegisteredAttribute'](_0x5a1111){const _0x4a2d5a=this['_isBlockAttribute'](_0x5a1111),_0x4a294d=this['_inlineAttributeKeys']['has'](_0x5a1111);return _0x4a2d5a||_0x4a294d;}['_reduceExistingSuggestions'](_0x2d675f,_0x5ca73d){if(0x0==_0x5ca73d['length'])return!0x1;let _0x2f4303=!0x1;for(const _0x5ae715 of _0x5ca73d){const _0x57bec6=this['_findSuggestions'](_0x5ae715['range'],'attribute')['filter'](_0x17e1af=>!_0x17e1af['meta']['isNextTo'])['map'](_0x16b23f=>_0x16b23f['suggestion']),_0x37e198=_0x178afd({'newValue':_0x5ae715['newValue']});_0x57bec6['filter'](_0x14e197=>{const [_0x8caac2,_0xffcd94]=_0x14e197['subType']['split']('|');return _0x8caac2==_0x5ae715['key']&&_0xffcd94!=_0x37e198;})['forEach'](_0x31f681=>{this['_reduceSuggestionAttributeRange'](_0x31f681,_0x5ae715['range'],_0x2d675f),_0x2f4303=!0x0;});}return _0x2f4303;}['_reduceSuggestionAttributeRange'](_0x194653,_0x169a7b,_0x346282){const _0x232fbc=_0x194653['getFirstRange']()['getDifference'](_0x169a7b);0x0!==_0x232fbc['length']?0x1!==_0x232fbc['length']?this['_breakSuggestionMarker'](_0x194653,_0x169a7b['start'],_0x169a7b['end']):this['_setSuggestionRange'](_0x194653,_0x232fbc[0x0]):_0x346282['removeMarker'](_0x194653['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x2ef3a8){this['_editor']=_0x2ef3a8,this['_model']=_0x2ef3a8['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x223f43,_0x796705,_0x1b1fb1,_0x426bad,_0x14bcfa,_0x1b3020){return new o(this['_model'],{'type':_0x223f43,'subType':_0x796705,'id':_0x1b1fb1,'author':_0x426bad,'creator':_0x426bad,'attributes':_0x14bcfa,'onAttributesChange':_0x1b3020,'onAccept':(..._0x49d44d)=>this['getSuggestionCallback'](_0x223f43,_0x796705,'accept')(..._0x49d44d),'onDiscard':(..._0x4ab318)=>this['getSuggestionCallback'](_0x223f43,_0x796705,'discard')(..._0x4ab318)});}['registerCustomCallback'](_0xb46f6e,_0x562f4e,_0xb4554d,_0x131200){const _0x580472=_0xb46f6e+':'+_0x562f4e+':'+_0xb4554d;this['_customCallbacks']['set'](_0x580472,_0x131200);}['getSuggestionCallback'](_0x5c694c,_0x197cc8,_0x31be13){const _0xfce280=_0x5c694c+':'+_0x197cc8+':'+_0x31be13;return this['_customCallbacks']['get'](_0xfce280)||this['_defaultCallbacks']['get'](_0x5c694c+':'+_0x31be13);}['_registerDefaultCallbacks'](){const _0x1cf28a=()=>!0x1,_0x344622=_0x29bee9=>{_0x29bee9['sort']((_0x271f27,_0x1cef33)=>_0x271f27['start']['isBefore'](_0x1cef33['start'])?0x1:-0x1),this['_model']['change'](_0x39df96=>{for(const _0x4ac949 of _0x29bee9){let _0x2b0051;_0x2b0051=_0x4ac949['end']['isAtEnd']&&_0x4ac949['end']['parent']==_0x4ac949['start']['nodeAfter']?_0x39df96['createSelection'](_0x4ac949['start']['nodeAfter'],'on'):_0x39df96['createSelection'](_0x4ac949),this['_model']['deleteContent'](_0x2b0051,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x30b2bc=(_0x4c7a42,_0x3acb28)=>{_0x3acb28&&this['_model']['change'](_0x4b8511=>{const {commandName:_0x4fbefb,commandParams:_0x17c09b=[]}=_0x3acb28,_0x624db9=_0x4c7a42['map'](_0x34f9d1=>(Lt(_0x34f9d1)&&(_0x34f9d1=this['_model']['createRange'](_0x34f9d1['end'])),_0x34f9d1))['filter'](_0x19d017=>'$graveyard'!==_0x19d017['root']['rootName']);if(_0x624db9['length']<0x1)return;const _0x19411d=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x1896a9=>_0x28bdcd['fromRange'](_0x1896a9));_0x4b8511['setSelection'](_0x624db9);for(const _0x1dea21 of this['_editor']['commands']['commands']())_0x1dea21['refresh']();_0x17c09b['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x4fbefb,..._0x17c09b);const _0x217411=_0x19411d['filter'](_0x453253=>'$graveyard'!=_0x453253['root']['rootName']);_0x217411['length']>0x0&&_0x4b8511['setSelection'](_0x217411);for(const _0x100768 of _0x19411d)_0x100768['detach']();});},_0x219223=(_0x6c2668,_0x509506)=>0x1==_0x6c2668['length']&&0x1==_0x509506['length']&&_0x6c2668[0x0]['end']['isEqual'](_0x509506[0x0]['start']),_0x1d19f6=(_0x342fb0,_0x367b02,_0x24cd0f,_0xd0d7d6)=>Wt(_0x342fb0,_0x367b02,_0x24cd0f,_0xd0d7d6)?[_0x342fb0,_0x367b02]:Wt(_0x367b02,_0x342fb0,_0xd0d7d6,_0x24cd0f)?[_0x367b02,_0x342fb0]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x1cf28a),this['_defaultCallbacks']['set']('insertion:discard',_0x344622),this['_defaultCallbacks']['set']('insertion:join',_0x219223),this['_defaultCallbacks']['set']('insertion:chain',_0x1d19f6),this['_defaultCallbacks']['set']('deletion:accept',_0x344622),this['_defaultCallbacks']['set']('deletion:discard',_0x1cf28a),this['_defaultCallbacks']['set']('deletion:join',_0x219223),this['_defaultCallbacks']['set']('deletion:chain',_0x1d19f6),this['_defaultCallbacks']['set']('formatInline:accept',_0x30b2bc),this['_defaultCallbacks']['set']('formatInline:discard',_0x1cf28a),this['_defaultCallbacks']['set']('formatInline:join',_0x219223),this['_defaultCallbacks']['set']('formatInline:chain',_0x1cf28a),this['_defaultCallbacks']['set']('formatBlock:accept',_0x30b2bc),this['_defaultCallbacks']['set']('formatBlock:discard',_0x1cf28a),this['_defaultCallbacks']['set']('formatBlock:join',_0x219223),this['_defaultCallbacks']['set']('formatBlock:chain',_0x1cf28a),this['_defaultCallbacks']['set']('attribute:accept',_0x1cf28a),this['_defaultCallbacks']['set']('attribute:discard',(_0x5d29d6,_0x59c26f)=>{if(!_0x59c26f)return;const _0x406122=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x24d06f=>{if(_0x59c26f['key']==u)for(const _0x3cb4cb of _0x5d29d6){const _0x624364=_0x3cb4cb['start']['nodeAfter'],_0x2ea78b=_0x59c26f['oldValue'];_0x24d06f['rename'](_0x624364,_0x2ea78b);}else{if(_0x406122['_isBlockAttribute'](_0x59c26f['key'])){for(const _0x49e10f of _0x5d29d6)void 0x0!==_0x59c26f['oldValue']?_0x24d06f['setAttribute'](_0x59c26f['key'],_0x59c26f['oldValue'],_0x49e10f['start']['nodeAfter']):_0x24d06f['removeAttribute'](_0x59c26f['key'],_0x49e10f['start']['nodeAfter']);}else{for(const _0x2f6c2c of _0x5d29d6)_0x59c26f['oldValue']?_0x24d06f['setAttribute'](_0x59c26f['key'],_0x59c26f['oldValue'],_0x2f6c2c):_0x24d06f['removeAttribute'](_0x59c26f['key'],_0x2f6c2c);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x219223);}}function Gt(_0x33ed4e,_0x2398e3,_0x1e52f1){for(const _0x2cff86 of _0x2398e3['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2cff86['root']==_0x2cff86)return!0x1;if(!_0x1e52f1['containsItem'](_0x2cff86))return!0x1;if(_0x33ed4e['isObject'](_0x2cff86)||_0x33ed4e['isLimit'](_0x2cff86))return!0x0;}return!0x1;}function Lt(_0x432e4c){return _0x432e4c['end']['parent']==_0x432e4c['start']['nodeAfter']&&_0x432e4c['end']['isAtStart'];}function Jt(_0x8ffc22,_0x375603,_0x267f8e,_0x3aa374){const _0x2560e8=_0x214a74=>!_0x214a74['item']['is']('$textProxy')&&!_0x3aa374['isObject'](_0x214a74['item']),_0x44545d=_0x8ffc22['start']['getLastMatchingPosition'](_0x2560e8),_0x47d707=_0x8ffc22['end']['getLastMatchingPosition'](_0x2560e8,{'direction':'backward'});return(!_0x8ffc22['start']['isEqual'](_0x44545d)||!_0x8ffc22['end']['isEqual'](_0x47d707))&&(_0x44545d['isBefore'](_0x47d707)?_0x267f8e['updateMarker'](_0x375603,{'range':_0x267f8e['createRange'](_0x44545d,_0x47d707)}):_0x267f8e['removeMarker'](_0x375603),!0x0);}function Kt(_0x2447be){return _0x178afd(_0x2447be);}function Ht(_0x6ef352){const _0x1ec920=_0x6ef352['start']['nodeAfter'];return _0x1ec920&&_0x1ec920['is']('element');}function qt(_0x2336bd,_0x1ed0e1){return null==_0x2336bd['end']['nodeBefore']&&_0x2336bd['end']['parent']==_0x2336bd['start']['nodeAfter']?zt(_0x2336bd['start']['nodeAfter'],_0x1ed0e1):_0x2336bd;}function zt(_0x523c46,_0x3445d2){const _0x4e64e5=_0x3445d2['schema']['isObject'](_0x523c46)||_0x3445d2['schema']['isSelectable'](_0x523c46);return _0x3445d2['createRange'](_0x3445d2['createPositionAt'](_0x523c46,'before'),_0x4e64e5?_0x3445d2['createPositionAfter'](_0x523c46):_0x3445d2['createPositionAt'](_0x523c46,'end'));}function Wt(_0x48f19d,_0x456a8f,_0xe4ec9c,_0x181fb0){return!!Qt(_0x48f19d,_0x456a8f)&&_0xe4ec9c['end']['isEqual'](_0x181fb0['start']);}function Qt(_0x1e7472,_0x2840dc){if(!_0x1e7472['_isDataLoaded']||!_0x2840dc['_isDataLoaded'])return!0x1;const _0x3ab671=new Set(Object['keys'](_0x1e7472['attributes'])),_0x3fd0b2=new Set(Object['keys'](_0x2840dc['attributes']));if(_0x3ab671['delete']('groupId'),_0x3fd0b2['delete']('groupId'),0x0==_0x3ab671['size']&&0x0==_0x3fd0b2['size'])return!0x0;if(_0x3ab671['size']!=_0x3fd0b2['size'])return!0x1;const _0x59c4d3={..._0x1e7472['attributes']},_0x160119={..._0x2840dc['attributes']};return delete _0x59c4d3['groupId'],delete _0x160119['groupId'],JSON['stringify'](_0x59c4d3)==JSON['stringify'](_0x160119);}function Xt(_0x4e604f,_0x270e2f){const _0x2b3ab9=Yt(_0x4e604f['attributes']),_0x1b2d01=Yt(_0x270e2f);if(!_0x4e604f['_isDataLoaded'])return!0x1;for(const _0x2cfcae of Object['keys'](_0x1b2d01))if(!_0x337fb7(_0x2b3ab9[_0x2cfcae],_0x1b2d01[_0x2cfcae]))return!0x1;return!0x0;}function Yt(_0x466452){const _0x5a1120=Object['assign']({},_0x466452);return delete _0x5a1120['skipNestingCheck'],delete _0x5a1120['tablePasteChainId'],_0x5a1120;}class pe extends/* #__PURE__ -- @preserve */
25
+ _0x5ac5bf(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x43e02d,_0x389cca,_0xbf9ecc,_0x3ebfe7){super(),this['model']=_0x389cca,this['view']=_0xbf9ecc,this['commentThreadController']=_0x3ebfe7,this['_editor']=_0x43e02d,this['_acceptCommand']=_0x43e02d['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x43e02d['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0xe0275,_0x28883d)=>_0xe0275||_0x28883d),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x11f7e0=>_0x11f7e0&&this['_editor']['model']['canEditAt'](_0x389cca['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x299b93=>_0x299b93&&this['_editor']['model']['canEditAt'](_0x389cca['getRanges']())),this['_pendingAction']=null,_0xbf9ecc['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0xbf9ecc,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0xbf9ecc,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0xbf9ecc,'change:isDirty',()=>{_0xbf9ecc['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 _0x7cf33=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x7cf33);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x24738e{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x5708d8,_0xce07c9,_0x4a6e1a,_0x5bb22d){super(_0x5708d8),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x3487aa(_0x5708d8,c(_0x5708d8,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0xce07c9['authoredAt']),this['bind']('authoredAt')['to'](_0xce07c9),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',_0xce07c9,'authoredAt',this,'descriptionParts',(_0x2ebd08,_0x1633c2,_0x4ccd69)=>{const _0x308bd2=_0x4ccd69['map'](_0x5c9474=>ls(_0x5c9474['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x2ebd08-0x1,_0xce07c9['author']['name'],_0x1633c2?_0x5bb22d['formatDateTime'](_0x1633c2):'',new DOMParser()['parseFromString'](_0x308bd2,'text/html')['body']['textContent']]);}),this['focusables']=new _0x3b0eca(),this['focusTracker']=new _0xc81acb(),this['keystrokes']=new _0x397f8b(),this['focusCycler']=new _0x4a3c57({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x40871d=>_0x40871d['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0xce07c9,this['_localUser']=_0x4a6e1a,this['_config']=_0x5bb22d,_0x5bb22d['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x177f7d(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x4923a0}=this['_config'];this['commentsListView']=new _0x4923a0(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',_0x36c53c=>_0x36c53c+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x2d0986,_0x6b1bd)=>_0x2d0986||!!_0x6b1bd);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x237c9c}=this['_config'],_0x5647ad=new _0x237c9c(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4856f2=_0x5647ad['commentInputView'];return _0x5647ad['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4856f2,'value',(_0x5d880f,_0x4f276e,_0x3d11e4)=>!!_0x3d11e4||_0x5d880f&&!_0x4f276e),_0x4856f2['on']('submit',(_0x3914f6,_0x2eb674)=>{this['fire']('addComment',_0x2eb674),_0x4856f2['editor']['setData']('');}),_0x4856f2['on']('cancel',()=>this['focus']()),_0x4856f2['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x5647ad;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x27d487,_0x5b2d0e,_0x171121,_0x31a7b8){super(_0x27d487,_0x5b2d0e,_0x171121,_0x31a7b8),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x54b3e8=>_0x54b3e8&&_0x54b3e8[0x0]?_0x54b3e8[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x5593a2,_0x280a43)=>{let _0x2c0c19='';for(const _0x2bb82c of _0x5593a2)_0x2c0c19+='<p>'+ls(_0x2bb82c['content'],_0x2bb82c['color'])+'</p>';return _0x280a43?_0x2c0c19:ti(_0x2c0c19,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x31a7b8['SuggestionView'](_0x27d487,_0x5b2d0e,{'formatDateTime':_0x31a7b8['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 _0x278535=this['bindTemplate'],_0x573628=[this['suggestionView']];return this['commentsListView']&&_0x573628['push'](this['commentsListView']),this['commentThreadInputView']&&_0x573628['push'](this['commentThreadInputView']),_0x573628['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x278535['if']('isActive','ck-suggestion-wrapper--active'),_0x278535['to']('type',_0x243d03=>'ck-suggestion-'+_0x243d03),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':_0x278535['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x573628};}['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 _0x24738e{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x313bde,_0x1f888f,_0x47af1a){super(_0x313bde),this['_model']=_0x1f888f,this['_config']=_0x47af1a,this['set']('description',''),this['bind']('authoredAt')['to'](_0x1f888f),this['acceptButton']=this['_createButton'](c(_0x313bde,'Accept\x20suggestion'),_0x4c7b73,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x313bde,'Discard\x20suggestion'),_0x2a4c3f,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x30bbce(_0x313bde,_0x1f888f['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x3b0eca([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0xc81acb(),this['keystrokes']=new _0x397f8b(),this['focusCycler']=new _0x4a3c57({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x3d8c82=>_0x3d8c82['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x1fae81=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x1fae81['innerHTML']=this['description'],this['on']('change:description',(_0xd0b841,_0x39c147,_0x5964d1)=>{_0x1fae81['innerHTML']=_0x5964d1;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x2e4b24=this['bindTemplate'],_0x115fbb=[{'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':_0x2e4b24['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2e4b24['to']('authoredAt',_0x171723=>this['_config']['formatDateTime'](_0x171723))}]}]},{'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']&&_0x115fbb['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':_0x115fbb}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x40fe4b,_0x4bf1c6,_0x3637ad,_0x281a8f,_0x4fcbc5){const _0x111d0c=new _0x11640c(this['locale']);return _0x111d0c['set']({'label':_0x40fe4b,'icon':_0x4bf1c6,'tooltip':!0x0,'tooltipPosition':_0x4fcbc5}),_0x111d0c['extendTemplate']({'attributes':{'class':_0x3637ad}}),_0x111d0c['on']('execute',()=>{this['fire'](_0x281a8f,this['_model']['id']);}),_0x111d0c;}['_setupKeyboardNavigation'](){const _0x32d6e2=this['element'];this['keystrokes']['listenTo'](_0x32d6e2);for(const _0x626409 of this['focusables'])this['focusTracker']['add'](_0x626409['element']),this['keystrokes']['listenTo'](_0x626409['element']);this['keystrokes']['set']('enter',(_0x40d345,_0x341928)=>{_0x32d6e2===_0x40d345['target']&&(this['focusCycler']['focusFirst'](),_0x341928());}),this['keystrokes']['set']('esc',(_0x26cc57,_0x161017)=>{_0x32d6e2!==_0x26cc57['target']&&(this['focus'](),_0x161017());});}}class d extends _0x5682b5{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x1c49f1,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x445c43){super(_0x445c43),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x2246a9=this['editor']['config'];_0x2246a9['define']('trackChanges.SuggestionThreadView',fe),_0x2246a9['define']('trackChanges.SuggestionView',we),_0x2246a9['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x2246a9['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x168674,_0x564bb7){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0xd94b44,_0x23ec40]of this['_handleControllerBuffer']){const _0x1f0956=this['_suggestionToController']['has'](_0xd94b44);_0x1f0956||_0x23ec40?_0x1f0956&&_0x23ec40&&this['_destroyController'](_0xd94b44):this['_initializeController'](_0xd94b44);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x168674,_0x564bb7);}['init'](){const _0x333577=this['editor'],_0x330d7d=_0x333577['plugins']['get']('TrackChangesEditing'),_0x1dff7d=_0x333577['plugins']['get']('Annotations'),_0x43526f=_0x333577['plugins']['get']('EditorAnnotations'),_0x2763de=_0x333577['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x43526f['addSourceCollector'](()=>{const _0x3f92eb=[];for(const [_0x15fecc,_0x16d649]of Array['from'](this['_suggestionToController'])){const _0x430a5c=_0x15fecc['getAllAdjacentSuggestions'](),_0x161ac3=[];for(const _0x248cd4 of _0x430a5c){if(!_0x248cd4['isInContent'])continue;if(_0x248cd4['isMultiRange']){_0x161ac3['push'](..._0x248cd4['getRanges']());continue;}const _0x42287e=_0x248cd4['getFirstRange']();if(_0x161ac3['length']>0x0){const _0x2eec4a=_0x161ac3[0x0]['getJoined'](_0x42287e);if(_0x2eec4a){_0x161ac3[0x0]=_0x2eec4a;continue;}}_0x161ac3['push'](_0x42287e);}_0x3f92eb['push']([_0x16d649['view'],_0x161ac3]);}return _0x3f92eb;}),this['listenTo'](_0x330d7d,'suggestionLoaded',(_0x23c372,_0x402032)=>{this['listenTo'](_0x402032,'change:previous',(_0x23bdf6,_0x4aad5c,_0x101eef,_0x1d128b)=>{_0x402032['isInContent']&&(null==_0x101eef?(this['_updateController'](_0x1d128b['head']),this['_handleSuggestionControllerDelayed'](_0x402032,!0x1)):(this['_updateController'](_0x101eef['head']),null==_0x1d128b&&this['_handleSuggestionControllerDelayed'](_0x402032,!0x0)));}),null!==_0x402032['previous']?this['_updateController'](_0x402032['head']):this['_handleSuggestionControllerDelayed'](_0x402032,!0x1);}),this['listenTo'](_0x330d7d,'suggestionUnloaded',(_0x5a1c98,_0x3f82b7,_0x48c64e)=>{this['stopListening'](_0x3f82b7,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3f82b7),this['_suggestionToController']['has'](_0x3f82b7)&&this['_destroyController'](_0x3f82b7),_0x48c64e&&this['_updateController'](_0x48c64e['head']);}),this['listenTo'](_0x330d7d,'suggestionChanged',(_0x53f825,_0x5d6b86)=>{this['_updateController'](_0x5d6b86);}),this['listenTo'](_0x1dff7d,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x2763de,'addComment',(_0x5e490d,{threadId:_0x31069d,isFromAdapter:_0x5740c5})=>{if(_0x5740c5||!_0x330d7d['hasSuggestion'](_0x31069d))return;const _0x39bad1=_0x330d7d['getSuggestion'](_0x31069d);this['_suggestionToController']['get'](_0x39bad1)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xeafeec=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4ac936;for(const _0x37819e in _0xeafeec){const _0x4d9b46=_0x37819e,_0x2a001e=_0xeafeec[_0x4d9b46];if('trackChangesLicenseKeyValid'==_0x2a001e||'trackChangesLicenseKeyInvalid'==_0x2a001e||'trackChangesLicenseKeyExpired'==_0x2a001e||'trackChangesLicenseKeyDomainLimit'==_0x2a001e||'trackChangesLicenseKeyNotAllowed'==_0x2a001e||'trackChangesLicenseKeyEvaluationLimit'==_0x2a001e||'trackChangesLicenseKeyTrialLimit'==_0x2a001e||'trackChangesLicenseKeyUsageLimit'==_0x2a001e){delete _0xeafeec[_0x4d9b46],_0x4ac936=_0x2a001e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x4ac936&&_0xeafeec['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x4ac936&&_0xeafeec['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x4ac936&&_0xeafeec['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x4ac936&&_0xeafeec['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x4ac936&&_0xeafeec['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x4ac936&&_0xeafeec['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x4ac936&&_0xeafeec['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x4f3493=this['editor']['plugins']['get']('Annotations'),_0x33e150=this['editor']['plugins']['get']('TrackChangesEditing'),_0x93c1c3=Array['from'](_0x4f3493['activeAnnotations'],_0x19dac5=>_0x19dac5['innerView'])['filter'](_0x321eaa=>this['_viewToController']['has'](_0x321eaa)),_0x40d717=[];for(const _0x7806d0 of _0x93c1c3){const _0x7fc062=this['_viewToController']['get'](_0x7806d0)['model']['getAllAdjacentSuggestions']();_0x40d717['push'](..._0x7fc062['reduce']((_0x32f704,_0x1415f2)=>[..._0x32f704,..._0x1415f2['getMarkerNames']()],[]));}_0x33e150['activeMarkers']=_0x40d717;}['_addUIComponentsToFactory'](){const _0x277bcc=this['editor'],_0x29fc7c=_0x277bcc['locale'],_0x1c7945=c(_0x29fc7c,'Track\x20changes'),_0x448edc=new _0x529266([{'type':'switchbutton','model':new _0x2af654({'withText':!0x0,'isToggleable':!0x0,'label':_0x1c7945,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x2af654({'withText':!0x0,'label':c(_0x29fc7c,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2af654({'withText':!0x0,'label':c(_0x29fc7c,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2af654({'withText':!0x0,'label':c(_0x29fc7c,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2af654({'withText':!0x0,'label':c(_0x29fc7c,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x277bcc['plugins']['has']('TrackChangesPreview')&&_0x448edc['addMany']([{'type':'separator'},{'type':'button','model':new _0x2af654({'withText':!0x0,'label':c(_0x29fc7c,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0xf0af10 of _0x448edc)if(ke(_0xf0af10)){const _0x1b5fe4=_0x277bcc['commands']['get'](_0xf0af10['model']['commandName']);_0xf0af10['model']['bind']('isOn','isEnabled')['to'](_0x1b5fe4,'value','isEnabled');}_0x277bcc['ui']['componentFactory']['add']('trackChanges',_0xff728e=>this['_createToolbarButton'](_0xff728e,_0x448edc,_0x1c7945)),_0x277bcc['ui']['componentFactory']['add']('menuBar:trackChanges',_0xbeb93d=>this['_createMenuBarMenu'](_0xbeb93d,_0x448edc,_0x1c7945));}['_createToolbarButton'](_0x17aeb0,_0x1c0a73,_0x2f6ed3){const _0x439638=_0x4eefe7(_0x17aeb0,_0x2ec16a),_0x22d0b8=this['editor']['commands']['get']('trackChanges');_0x439638['buttonView']['set']({'tooltip':_0x2f6ed3,'label':_0x2f6ed3,'icon':_0x5e4411}),_0x439638['buttonView']['bind']('isOn')['to'](_0x22d0b8,'value'),_0x439638['buttonView']['on']('execute',()=>{_0x22d0b8['execute'](),this['editor']['editing']['view']['focus']();}),_0x44f811(_0x439638,_0x1c0a73,{'role':'menu'});const _0x3bbd57=[];for(const _0x888b40 of _0x1c0a73)ke(_0x888b40)&&_0x3bbd57['push'](this['editor']['commands']['get'](_0x888b40['model']['commandName']));const _0x1b5e02=_0x439638['buttonView'];return _0x1b5e02['actionView']['unbind']('isEnabled'),_0x1b5e02['arrowView']['unbind']('isEnabled'),_0x1b5e02['actionView']['bind']('isEnabled')['to'](_0x22d0b8,'isEnabled'),_0x1b5e02['arrowView']['bind']('isEnabled')['toMany'](_0x3bbd57,'isEnabled',(..._0x508ad7)=>_0x508ad7['some'](_0xf4f43b=>_0xf4f43b)),_0x439638['on']('execute',_0x301c32=>{this['editor']['execute'](_0x301c32['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x439638;}['_createMenuBarMenu'](_0x4ef89f,_0x431b65,_0x4be628){const _0x5dddf0=new _0x10c09e(_0x4ef89f),_0x1d118a=this['editor']['commands']['get']('trackChanges');_0x5dddf0['buttonView']['set']({'label':_0x4be628,'icon':_0x5e4411});const _0xb0569d=new _0x40a007(_0x4ef89f);for(const _0x149602 of _0x431b65){if('separator'==_0x149602['type']){_0xb0569d['items']['add'](new _0x26af5f(_0x4ef89f));continue;}const _0x217de2=new _0xb5bc81(_0x4ef89f,_0x5dddf0),_0x2bb135=new _0xdc3e60(_0x4ef89f),_0x38c623=_0x149602['model'];_0x2bb135['bind'](...Object['keys'](_0x38c623))['to'](_0x38c623),_0x2bb135['delegate']('execute')['to'](_0x5dddf0),_0x2bb135['on']('execute',()=>{this['editor']['execute'](_0x38c623['commandName']),this['editor']['editing']['view']['focus']();}),_0x217de2['children']['add'](_0x2bb135),_0xb0569d['items']['add'](_0x217de2);}return _0x5dddf0['bind']('isEnabled')['to'](_0x1d118a,'isEnabled'),_0x5dddf0['panelView']['children']['add'](_0xb0569d),_0x5dddf0;}['_initializeController'](_0xa20769){const _0x10099d=this['editor'],_0x1e2bdf=_0x10099d['config'],_0x4c10e5=_0x10099d['plugins']['get']('Annotations'),_0x391bcb=_0x10099d['plugins']['get']('CommentsRepository'),_0x46e778=_0x10099d['plugins']['get']('EditorAnnotations'),_0x36a571=_0x10099d['plugins']['get'](_0x1c49f1)['me'],_0x49241b=_0x1e2bdf['get']('trackChanges')['SuggestionThreadView'],_0x500e61=_0x1e2bdf['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x1a25d7,CommentThreadInputView:_0x391b02}=_0x10099d['plugins']['get']('CommentsUI');let _0x4494e0,_0x2c3ca5,_0x37f22d;this['_annotationViews']['has'](_0xa20769['id'])?(_0x2c3ca5=this['_annotationViews']['get'](_0xa20769['id']),_0x4494e0=_0x2c3ca5['mainView']):(_0x4494e0=new _0x49241b(_0x10099d['locale'],_0xa20769,_0x36a571,{'disableComments':this['_disableComments'],'editorConfig':{..._0x1e2bdf['get']('comments.editorConfig'),'licenseKey':_0x1e2bdf['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x1e2bdf['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x1e2bdf['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x1e2bdf['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x2109ba(_0x1e2bdf['get']('locale'),_0x10099d['locale']),'CommentView':_0x1e2bdf['get']('comments')['CommentView'],'CommentsListView':_0x1a25d7,'CommentThreadInputView':_0x391b02,'SuggestionView':_0x500e61}),_0x4494e0['suggestionView']['acceptButton']['on']('execute',()=>{_0x10099d['editing']['view']['focus']();}),_0x4494e0['suggestionView']['discardButton']['on']('execute',()=>{_0x10099d['editing']['view']['focus']();}),_0x2c3ca5=_0x4c10e5['createAnnotationView'](this['editor']['locale'],_0x4494e0),_0x2c3ca5['bind']('isDirty')['to'](_0x4494e0,'isDirty'),_0x2c3ca5['bind']('length')['to'](_0x4494e0),_0x2c3ca5['bind']('type')['to'](_0x4494e0,'type',_0x2017cf=>'suggestion-'+_0x2017cf),_0x4494e0['on']('escape',()=>{_0x37f22d['fire']('escape');}),this['_annotationViews']['set'](_0xa20769['id'],_0x2c3ca5));const _0x4b4e49=_0x391bcb['createCommentThreadController'](_0xa20769['commentThread'],_0x4494e0),_0xd616ea=new pe(_0x10099d,_0xa20769,_0x4494e0,_0x4b4e49),_0x272546=_0xa20769['getAllAdjacentSuggestions']()['filter'](_0x52921f=>_0x52921f['isInContent']);_0x4494e0['descriptionParts']=_0x10099d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x272546),this['_suggestionToController']['set'](_0xa20769,_0xd616ea),this['_viewToController']['set'](_0x4494e0,_0xd616ea),_0x37f22d=_0x4c10e5['createAnnotation']({'view':_0x2c3ca5,'target':()=>{const _0x18d168=[],_0x5c47bb=_0xa20769['getAllAdjacentSuggestions']()['filter'](_0x47f124=>_0x47f124['isInContent']);for(const _0x568107 of _0x5c47bb)_0x18d168['push'](..._0x568107['getMarkers']());return _0x20520b(_0x10099d['editing'],_0x18d168);},'type':()=>'suggestion-'+_0xd616ea['view']['type']}),_0x391bcb['_bindAnnotationToEditors'](_0x4494e0,_0x37f22d),_0x4c10e5['add'](_0x37f22d),_0x46e778['registerAnnotation'](_0x37f22d);}['_destroyController'](_0x282d2c){const _0x6dd454=this['editor']['plugins']['get']('CommentsRepository'),_0x37f94a=this['editor']['plugins']['get']('Annotations'),_0x48e379=this['_suggestionToController']['get'](_0x282d2c),_0x4340a6=_0x48e379['view'],_0x12173b=_0x37f94a['getByInnerView'](_0x4340a6);_0x6dd454['_unbindEditors'](_0x4340a6),_0x12173b&&_0x37f94a['remove'](_0x12173b),this['_suggestionToController']['delete'](_0x282d2c),this['_viewToController']['delete'](_0x4340a6),_0x48e379['destroy']();}['_updateController'](_0x5f40c2){if(!_0x5f40c2['isInContent']||!this['_suggestionToController']['has'](_0x5f40c2))return;const _0x5de22c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1541a8=this['_suggestionToController']['get'](_0x5f40c2),_0x1fe1f6=_0x5f40c2['getAllAdjacentSuggestions']();_0x1541a8['view']['descriptionParts']=_0x5de22c['descriptionFactory']['getDescriptions'](_0x1fe1f6);}['destroy'](){for(const _0x1f122b of this['_suggestionToController']['keys']())this['_destroyController'](_0x1f122b);for(const _0x59ade8 of this['_annotationViews']['values']())_0x59ade8['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x19480a){return'model'in _0x19480a;}class k extends _0x5682b5{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x3579d1){this['editor']['plugins']['get'](p)['adapter']=_0x3579d1;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x54ac9e){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x54ac9e);}['getSuggestions']({skipNotAttached:_0x2f6816=!0x1,toJSON:_0xa7a7ad=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x2f6816,'toJSON':_0xa7a7ad});}['getSuggestion'](_0x5271c9){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x5271c9);}}const w=['Pagination'];class T extends _0x5682b5{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x520086=this['editor'];if(_0x520086['config']['define']('trackChangesData.editorCreator',_0x22d851=>{const _0x199d39=_0x520086['model']['document']['getRootNames']()['reduce']((_0x67355c,_0x778062)=>(_0x67355c[_0x778062]='',_0x67355c),{});return _0x520086['constructor']['create'](_0x199d39,_0x22d851);}),'function'!=typeof _0x520086['config']['get']('trackChangesData')['editorCreator'])throw new _0x5e8aa1('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2967af){return N(this['editor'],!0x0,_0x2967af);}['getDataWithDiscardedSuggestions'](_0x43dd9c){return N(this['editor'],!0x1,_0x43dd9c);}}class D extends _0x5682b5{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x29bc5d){function _0x47bdea(_0x163b81){return _0x163b81['map'](_0x3166ac=>String['fromCharCode'](_0x3166ac))['join']('');}super(_0x29bc5d),this['result']='end',_0x29bc5d[_0x47bdea([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x47bdea([0x76,0x69,0x65,0x77])][_0x47bdea([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x47bdea([0x61,0x75,0x74,0x6f]),_0x29bc5d[_0x47bdea([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x47bdea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x47bdea([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x47bdea([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x47bdea([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 Ge(_0x15bafc){return void 0x0!==_0x15bafc['getRootsAttributes'];}async function N(_0x41210d,_0x54631e,_0x5b6124){const _0x19f598=_0x2ff564(_0x41210d,w);_0x19f598['plugins']['push'](p,D),_0x19f598['rootsAttributes']=Ge(_0x41210d)?_0x41210d['getRootsAttributes']():void 0x0;const _0xd9ab0=document['createDocumentFragment'](),_0x274992=_0x41210d['config']['get']('trackChangesData')['editorCreator'],_0x1c9892=await _0x274992(_0x19f598,()=>function(_0x5690f9){const _0x28ca74=document['createElement']('div');return _0x5690f9['appendChild'](_0x28ca74),_0x28ca74;}(_0xd9ab0));!function(_0x907958,_0x45e10c){const _0x4595a5=_0x907958['model']['document']['getRootNames']()['reduce']((_0x4caa91,_0x3276b3)=>(_0x4caa91[_0x3276b3]=_0x907958['data']['get']({'rootName':_0x3276b3}),_0x4caa91),{}),_0x40e80e=_0x907958['plugins']['get']('Users')['users']['map'](_0x58b96e=>({'id':_0x58b96e['id'],'name':_0x58b96e['name']})),_0x14d1f7=_0x907958['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x38d3dd=_0x907958['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x22b23d=_0x45e10c['plugins']['get']('Users'),_0x4f3082=_0x45e10c['plugins']['get']('TrackChangesEditing'),_0x5cd99a=_0x45e10c['plugins']['get']('CommentsRepository');for(const _0x42bc86 of _0x5cd99a['getCommentThreads']())_0x42bc86['remove']();for(const _0x441b82 of _0x40e80e)_0x22b23d['getUser'](_0x441b82['id'])||_0x22b23d['addUser'](_0x441b82);_0x22b23d['me']||_0x22b23d['useAnonymousUser']();for(const _0x461998 of _0x38d3dd)_0x5cd99a['addCommentThread'](_0x461998);for(const _0x57ed50 of _0x14d1f7)_0x4f3082['addSuggestionData'](_0x57ed50);_0x45e10c['data']['set'](_0x4595a5);}(_0x41210d,_0x1c9892),_0x1c9892['execute'](_0x54631e?'acceptAllSuggestions':'discardAllSuggestions');const _0x40ba42=Ge(_0x1c9892)?_0x1c9892['getFullData'](_0x5b6124):_0x1c9892['data']['get'](_0x5b6124);return await _0x1c9892['destroy'](),_0x40ba42;}class Me extends _0x24738e{['options'];constructor(_0x5247c4,_0x25e5b0){super(_0x5247c4),this['options']=_0x25e5b0,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'](_0x82c409,_0x7530b7){if(!this['element'])return;const _0x211214=[];for(const [_0x2f9ea2,_0x54f3ee]of _0x82c409){const _0x55695d=document['createElement']('div');_0x55695d['setAttribute']('data-ck-root-name',_0x2f9ea2),_0x55695d['className']=_0x54f3ee['classes']+'\x20ck-track-changes-preview__root-container',_0x55695d['innerHTML']=_0x54f3ee['content'],_0x211214['push'](_0x55695d);}_0x7530b7(this['element'],_0x211214),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x631e31{constructor(_0x8a15ec){super(_0x8a15ec),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x52dadf=this['editor'],_0x1b96eb=_0x52dadf['locale'],_0x2e2b3e=_0x52dadf['plugins']['get']('Dialog');let _0x4fe9cd;const _0x29f2d8=function(_0x2220eb){const _0x8f1ebf={};if('editables'in _0x2220eb['ui']['view']){for(const [_0x46d83a,_0x54eab4]of Object['entries'](_0x2220eb['ui']['view']['editables']))_0x8f1ebf[_0x46d83a]=_0x54eab4['element'];}else _0x8f1ebf[_0x2220eb['model']['document']['getRootNames']()[0x0]]=_0x2220eb['ui']['view']['editable']['element'];return _0x8f1ebf;}(_0x52dadf),_0x2f8bca=function(_0x52d403){let _0x6e1727=0x0;for(const _0x4b1f59 of Object['values'](_0x52d403))_0x6e1727=Math['max'](_0x6e1727,_0x4b1f59['getBoundingClientRect']()['width']);let _0x12c61d=0x0;for(const _0x35e639 of Object['values'](_0x52d403))_0x12c61d+=_0x35e639['getBoundingClientRect']()['height'];const _0x291ed6=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x3eba5e=Math['min'](_0x12c61d,_0x291ed6);return{'width':_0x6e1727,'height':_0x3eba5e};}(_0x29f2d8);_0x2e2b3e['show']({'id':'finalContentPreview','title':c(_0x1b96eb,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x1b96eb,{'dialogRects':_0x2f8bca}),'onHide':()=>{_0x4fe9cd['detachFromDom']();},'onShow':()=>{_0x52dadf['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x30406d=>{const _0x3f3508=this['_standarizeRootsData'](_0x30406d,_0x52dadf,_0x29f2d8);_0x2e2b3e['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x3f3508,_0x52dadf['config']['get']('trackChanges.preview.renderFunction'));}),_0x4fe9cd=new _0x4b862a(_0x1b96eb,[_0x2e2b3e['view']]),_0x4fe9cd['attachToDom'](),_0x4fe9cd['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x52dadf['once']('destroy',()=>{_0x4fe9cd['detachFromDom']();});const _0x43382a=_0x2e2b3e['view']['headerView']['class'];_0x2e2b3e['view']['headerView']['class']=_0x43382a?_0x43382a+'\x20ck-reset_all':'ck-reset_all',_0x2e2b3e['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x2e2b3e['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x53db44=this['editor']['plugins']['get']('MergeFieldsEditing'),_0xeb6406=_0x53db44['previewMode'],_0x407338={};if('$labels'===_0xeb6406){for(const _0x513bc1 of _0x53db44['getMergeFieldsIds']())_0x407338[_0x513bc1]=_0x53db44['getLabel'](_0x513bc1)||_0x513bc1;}else{const _0x415f08='$defaultValues'===_0xeb6406?_0x53db44['getDefaultValues']():_0x53db44['getDataSetValues'](_0xeb6406,!0x0);for(const _0xaeddbe of Object['entries'](_0x415f08)){const [_0x391e3d,_0x464251]=_0xaeddbe;_0x407338[_0x391e3d]=null!==_0x464251?_0x464251:_0x53db44['getLabel'](_0x391e3d)||_0x391e3d;}}return{'mergeFieldsData':_0x407338};}['_standarizeRootsData'](_0x578199,_0x558271,_0x3278af){let _0x5482de;if('string'==typeof _0x578199){const _0x1e0985=_0x558271['model']['document']['getRootNames']()[0x0];_0x5482de={[_0x1e0985]:_0x578199};}else _0x5482de=_0x578199;const _0xed45f1=this['_fixMediaEmbeds'](_0x5482de,_0x558271),_0x2a9389=function(_0x440a01,_0x2256b0){for(const [_0x1c533f,_0x9927be]of _0x440a01)_0x9927be['classes']=_0x2256b0[_0x1c533f]['classList']['value']['replace']('ck-focused','');return _0x440a01;}(this['_sortRoots'](_0x558271)['reduce']((_0x3ef0f9,_0x4f1fae)=>(_0x3ef0f9['push']([_0x4f1fae,{'content':_0xed45f1[_0x4f1fae],'classes':''}]),_0x3ef0f9),[]),_0x3278af);return _0x2a9389;}['_fixMediaEmbeds'](_0x338a2b,_0x196149){if(!_0x196149['plugins']['has']('MediaEmbedEditing'))return _0x338a2b;const _0x36fb11=_0x196149['plugins']['get']('MediaEmbedEditing');for(const [_0x5d9985,_0x36ee44]of Object['entries'](_0x338a2b)){const _0x249116=document['createElement']('div');_0x249116['innerHTML']=_0x36ee44,(_0x249116['querySelectorAll']('figure.media')['forEach'](_0x3fd9c9=>{const _0x602692=_0x3fd9c9['querySelector']('oembed');if(_0x602692){const _0x3e9648=_0x602692['getAttribute']('url');if(_0x3e9648){const _0x5d4000=_0x36fb11['registry']['getMediaViewElement'](new _0xa1d97(_0x196149['editing']['view']['document']),_0x3e9648,{'elementName':'','renderForEditingView':!0x0}),_0x21e9af=document['createElement']('div');_0x21e9af['classList']['add']('ck-media__wrapper'),_0x5d4000['render'](_0x21e9af,_0x196149['editing']['view']['domConverter']),_0x602692['replaceWith'](_0x21e9af);}}}),_0x338a2b[_0x5d9985]=_0x249116['innerHTML']);}return _0x338a2b;}['_sortRoots'](_0x4c6cb6){if(!function(_0x212c5f){return void 0x0!==_0x212c5f['getRootsAttributes'];}(_0x4c6cb6))return _0x4c6cb6['model']['document']['getRootNames']();const _0x17fbbc=[],_0x10f943=new Map();for(const _0x5ab4fb of _0x4c6cb6['model']['document']['getRootNames']()){const _0x5af0fa=_0x4c6cb6['editing']['view']['getDomRoot'](_0x5ab4fb)['getClientRects']()['item'](0x0);_0x17fbbc['push'](_0x5ab4fb),_0x10f943['set'](_0x5ab4fb,_0x5af0fa);}return _0x17fbbc['sort']((_0x531721,_0x2ad552)=>{const _0x18efdd=_0x10f943['get'](_0x531721),_0x1634a2=_0x10f943['get'](_0x2ad552);return _0x18efdd['y']-_0x1634a2['y']||_0x18efdd['x']-_0x1634a2['x'];}),_0x17fbbc;}}class te extends _0x5682b5{static get['requires'](){return[T,_0x5d426e];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x592627){super(_0x592627),_0x592627['commands']['add']('previewFinalContent',new re(this['editor'])),_0x592627['config']['define']('trackChanges.preview.renderFunction',(_0x2b5797,_0x2753f3)=>{for(const _0x33d9dc of _0x2753f3)_0x2b5797['appendChild'](_0x33d9dc);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};