@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20250624.0 → 0.0.0-nightly-20250625.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 +4 -4
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +27 -27
  150. package/src/commands/acceptsuggestioncommand.js +1 -1
  151. package/src/commands/discardsuggestioncommand.js +1 -1
  152. package/src/commands/executeonallsuggestionscommand.js +1 -1
  153. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  154. package/src/commands/previewfinalcontentcommand.js +1 -1
  155. package/src/commands/trackchangescommand.js +1 -1
  156. package/src/index.js +1 -1
  157. package/src/integrations/aiassistant.js +1 -1
  158. package/src/integrations/alignment.js +1 -1
  159. package/src/integrations/basicstyles.js +1 -1
  160. package/src/integrations/blockquote.js +1 -1
  161. package/src/integrations/bookmark.js +1 -1
  162. package/src/integrations/casechange.js +1 -1
  163. package/src/integrations/ckbox.js +1 -1
  164. package/src/integrations/codeblock.js +1 -1
  165. package/src/integrations/comments.js +1 -1
  166. package/src/integrations/deletecommand.js +1 -1
  167. package/src/integrations/emoji.js +1 -1
  168. package/src/integrations/entercommand.js +1 -1
  169. package/src/integrations/findandreplace.js +1 -1
  170. package/src/integrations/font.js +1 -1
  171. package/src/integrations/formatpainter.js +1 -1
  172. package/src/integrations/heading.js +1 -1
  173. package/src/integrations/highlight.js +1 -1
  174. package/src/integrations/horizontalline.js +1 -1
  175. package/src/integrations/htmlembed.js +1 -1
  176. package/src/integrations/image.js +1 -1
  177. package/src/integrations/imagereplace.js +1 -1
  178. package/src/integrations/imagestyle.js +1 -1
  179. package/src/integrations/importword.js +1 -1
  180. package/src/integrations/indent.js +1 -1
  181. package/src/integrations/inputcommand.js +1 -1
  182. package/src/integrations/legacylist.js +1 -1
  183. package/src/integrations/legacylistproperties.js +1 -1
  184. package/src/integrations/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 +2 -2
  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,7 +20,7 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x44ba3e,Plugin as _0xa5f689,PendingActions as _0x257665}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x3747a9,ObservableMixin as _0x2f002f,uid as _0xfc77eb,priorities as _0x49a958,insertToPriorityArray as _0x93283b,toArray as _0x20ad50,logWarning as _0x15d011,getEnvKeystrokeText as _0x47945f,FocusTracker as _0x13a637,KeystrokeHandler as _0x143e89,Collection as _0x1500a9}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x10c3b0,IconCancel as _0x574635,IconTrackChanges as _0x2aa3ba}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as to,View as _0x9ae41d,ViewCollection as _0x56ad1d,FocusCycler as _0x542790,UIModel as _0x479e6f,createDropdown as _0x33dc60,SplitButtonView as _0x3f3501,addListToDropdown as _0x1e974d,MenuBarMenuView as _0x1acc2f,MenuBarMenuListView as _0xb9aa23,ListSeparatorView as _0x47433d,MenuBarMenuListItemView as _0x43da19,MenuBarMenuListItemButtonView as _0x2de887,BodyCollection as _0x50cc1d,Dialog as _0x45a3c3}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x45c514,hashObject as _0x33ae19,surroundingMarkersDetector as _0x3b234c,FOCUS_ANNOTATION_KEYSTROKE as _0x154605,AriaDescriptionView as _0x553bfe,setupThreadKeyboardNavigation as _0x464450,trimHtml as _0x2a569a,UserView as _0x19bc76,LateFocusButtonView as _0x3aa75c,getDateTimeFormatter as _0x24333c,getAllMarkersDomElementsSorted as _0x5f2da0,sanitizeEditorConfig as _0x4c6ef2}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x1c2a2a,ModelLiveRange as _0x5c02ad,ModelLivePosition as _0x7b77d4,ViewDowncastWriter as _0x376a8e}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x3be7c9,toWidget as _0x43934b}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x3871bd,set as _0x317cdd,isEqual as _0x576f16,unset as _0x4b592b,omit as Rt}from'es-toolkit/compat';import{Delete as _0x3d72d7,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0xff3012}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x389c06}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class N extends _0x44ba3e{['_enabledCommands'];constructor(_0xb3c845,_0x1b45a1){super(_0xb3c845),this['_enabledCommands']=_0x1b45a1,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 _0x291ae9 of this['editor']['commands']['commands']())_0x291ae9['affectsData']&&!this['_enabledCommands']['has'](_0x291ae9)&&_0x291ae9['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x116e28 of this['editor']['commands']['commands']())_0x116e28['affectsData']&&!this['_enabledCommands']['has'](_0x116e28)&&_0x116e28['clearForceDisabled']('TrackChangesCommand');}}class D extends _0x44ba3e{['_suggestions'];constructor(_0x53488c,_0xf4d5ac){super(_0x53488c),this['_suggestions']=_0xf4d5ac,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xde26b9){const _0x34ebcc=this['_suggestions']['get'](_0xde26b9);if(!_0x34ebcc)throw new _0x3747a9('track-changes-accept-suggestion-not-found',this);const _0x494631=_0x34ebcc['getRanges']();this['editor']['model']['canEditAt'](_0x494631)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x34ebcc);}}class M extends _0x44ba3e{['_suggestions'];constructor(_0x167be4,_0xe01666){super(_0x167be4),this['_suggestions']=_0xe01666,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x48b437){const _0x29cbf8=this['_suggestions']['get'](_0x48b437);if(!_0x29cbf8)throw new _0x3747a9('track-changes-discard-suggestion-not-found',this);const _0xf707a9=_0x29cbf8['getRanges']();this['editor']['model']['canEditAt'](_0xf707a9)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x29cbf8);}}function ls(_0x2f62e8,_0x466159){let _0x4d53de='';return _0x4d53de+=_0x2f62e8['split']('*')['map']((_0xcef94b,_0x11ba08)=>_0x11ba08%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0xcef94b)+'</span>':nn(_0xcef94b))['join'](''),_0x466159&&(_0x4d53de+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x466159['value']+'\x22\x20title=\x22'+_0x466159['title']+'\x22></span>'),_0x4d53de;}function nn(_0x331813){const _0x4a2b9b=document['createElement']('span');return _0x4a2b9b['innerText']=_0x331813,_0x4a2b9b['innerHTML'];}function ts(_0xe839a8){return _0xe839a8['sort']((_0x18e5a1,_0x40242f)=>'deletion'==_0x18e5a1['type']&&'deletion'!=_0x40242f['type']?-0x1:'deletion'!=_0x18e5a1['type']&&'deletion'==_0x40242f['type']?0x1:0x0);}function Yt(_0x4aca6c,_0x296455){let _0x51c134,_0xee1b7e=0x0;const _0x310319=[],_0x2b1de8=_0x296455['schema'];for(;_0xee1b7e<_0x4aca6c['length'];){const _0x2d07f2=_0x4aca6c[_0xee1b7e],_0x513142=_0x4aca6c[_0xee1b7e+0x1];_0x51c134||(_0x51c134=_0x296455['createPositionBefore'](_0x2d07f2)),on(_0x296455,_0x2d07f2,_0x513142)||(_0x310319['push'](_0x296455['createRange'](_0x51c134,_0x2b1de8['isObject'](_0x2d07f2)?_0x296455['createPositionAfter'](_0x2d07f2):_0x296455['createPositionAt'](_0x2d07f2,'end'))),_0x51c134=null),_0xee1b7e++;}return _0x310319;}function on(_0xab8a3a,_0x435c75,_0x574b75){if(!_0x574b75)return!0x1;const _0x54dc14=_0xab8a3a['createPositionAfter'](_0x435c75),_0x41203c=_0xab8a3a['createPositionBefore'](_0x574b75);return _0x54dc14['isTouching'](_0x41203c);}function rs(_0x133e06,_0x10130c,_0x2da468){for(;_0x2da468['length'];){const _0x211282=_0x2da468['splice'](0x0,0x64);_0x133e06['change'](()=>{for(const _0x2e790f of _0x211282)_0x2e790f['isInContent']&&_0x10130c['execute'](_0x2e790f['id']);});}}class $ extends _0x44ba3e{['_command'];['_suggestions'];constructor(_0x3c2aa4,_0x33514c,_0x3da3c9){super(_0x3c2aa4),this['_command']=_0x33514c,this['_suggestions']=_0x3da3c9,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x9af25e=Array['from'](this['_suggestions']['values']())['some'](_0x412d1a=>_0x412d1a['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x9af25e;}['execute'](){const _0x558d91=ts(Array['from'](this['_suggestions']['values']()));for(const _0x51fb3f of _0x558d91){const _0x21498c=_0x51fb3f['getRanges']();if(!this['editor']['model']['canEditAt'](_0x21498c))return;}rs(this['editor']['model'],this['_command'],_0x558d91);}}class B extends _0x44ba3e{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x171d6c,_0x2be7c0,_0x596389){super(_0x171d6c),this['_command']=_0x2be7c0,this['_suggestions']=_0x596389,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4b3c42=this['editor']['model']['document']['selection'],_0x588914=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x44d9d2,_0x5409b8){const _0x206f67=Array['from'](_0x44d9d2['getRanges']()),_0x1406a9=new Set();for(const _0x272d44 of _0x5409b8)if(_0x272d44['isInContent']){for(const _0x2cc826 of _0x206f67)for(const _0x3208da of _0x272d44['getRanges']())(_0x2cc826['isIntersecting'](_0x3208da)||_0x44d9d2['isCollapsed']&&!_0x272d44['isMultiRange']&&_0x272d44['next']&&_0x3208da['end']['isTouching'](_0x2cc826['start']))&&_0x1406a9['add'](_0x272d44);}return _0x1406a9;}(_0x4b3c42,_0x588914),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x24c547=ts(Array['from'](this['_selectedSuggestions']));for(const _0x4218e9 of _0x24c547){const _0x4c304a=_0x4218e9['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4c304a))return;}rs(this['editor']['model'],this['_command'],_0x24c547);}}class T extends/* #__PURE__ -- @preserve */
24
- _0x2f002f(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x4c5ad6,_0xa922d5){super(),this['id']=_0xa922d5['id'],this['type']=_0xa922d5['type'],this['subType']=_0xa922d5['subType']||null,this['author']=_0xa922d5['author'],this['creator']=_0xa922d5['creator']||_0xa922d5['author'],this['isExternal']=Boolean(_0xa922d5['attributes']&&_0xa922d5['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0xa922d5['originalSuggestionId']||null,this['_model']=_0x4c5ad6,this['_onAccept']=_0xa922d5['onAccept'],this['_onDiscard']=_0xa922d5['onDiscard'],this['_onAttributesChange']=_0xa922d5['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0xa922d5['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 _0x1a947e=this;for(;_0x1a947e['previous'];)_0x1a947e=_0x1a947e['previous'];return _0x1a947e;}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'](_0x30f7a2){this['_markerNames']['add'](_0x30f7a2);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x5cda0d=>this['_model']['markers']['get'](_0x5cda0d))['filter'](_0x1bfe1b=>_0x1bfe1b);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x1b5a07=>{for(const _0x282b56 of this['getMarkers']())_0x1b5a07['removeMarker'](_0x282b56);}),this['_markerNames']['clear']();}['removeMarker'](_0xe0b912){this['_model']['change'](_0x5559e6=>{_0x5559e6['removeMarker'](_0xe0b912);}),this['_markerNames']['delete'](_0xe0b912);}['addRange'](_0x170aef){const _0xafb90e='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0xafb90e),this['_model']['change'](_0x3fb8ad=>{_0x3fb8ad['addMarker'](_0xafb90e,{'range':_0x170aef,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x3d34b5){for(const _0x41f6a2 of this['getRanges']())if(_0x41f6a2['isIntersecting'](_0x3d34b5))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x342496=>_0x342496['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x5393f6,_0x5edf82)=>[..._0x5393f6,..._0x5edf82['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x344585=this['getRanges']();if(0x1!=_0x344585['length'])return null;const _0x4a9916=_0x344585[0x0],_0x5013f0=_0x4a9916['start']['nodeAfter'],_0x3d98ef=_0x4a9916['end']['nodeBefore'];return _0x5013f0 instanceof _0x1c2a2a?_0x5013f0!=_0x3d98ef?null:_0x5013f0: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 _0x276736=[];let _0x15edaf=this['head'];for(;_0x15edaf;)_0x276736['push'](_0x15edaf),_0x15edaf=_0x15edaf['next'];return _0x276736;}['setAttribute'](_0x298111,_0x5d0789){const _0x34a244=_0x3871bd(this['attributes']);_0x317cdd(_0x34a244,_0x298111,_0x5d0789),_0x576f16(_0x34a244,this['attributes'])||(this['attributes']=_0x34a244,this['_onAttributesChange'](_0x34a244));}['removeAttribute'](_0x5d2840){const _0x24d52f=_0x3871bd(this['attributes']);_0x4b592b(_0x24d52f,_0x5d2840),_0x576f16(_0x24d52f,this['attributes'])||(this['attributes']=_0x24d52f,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 _0xfc77eb()['substr'](0x1,0x5);}}function o(_0x2b6c2a,_0x5e0b15,_0x173cfa){const _0x213f40=_0x2b6c2a['t'],t=_0x2b6c2a['t'];switch(_0x5e0b15){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',_0x173cfa);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x173cfa);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x173cfa);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x173cfa);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x173cfa);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',_0x173cfa);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x173cfa);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',_0x173cfa);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x173cfa);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x173cfa);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x173cfa);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x173cfa);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x173cfa);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x173cfa);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x173cfa);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x173cfa);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x173cfa);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x173cfa);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x173cfa);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x173cfa);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x173cfa);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x173cfa);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x173cfa);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x173cfa);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x173cfa);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'},_0x173cfa);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x173cfa);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x173cfa);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x173cfa);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x173cfa);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x173cfa);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x173cfa);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x173cfa);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'},_0x173cfa);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x173cfa);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x173cfa);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x173cfa);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x173cfa);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'},_0x173cfa);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x173cfa);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'},_0x173cfa);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'},_0x173cfa);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x173cfa);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'},_0x173cfa);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x173cfa);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'},_0x173cfa);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x173cfa);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x173cfa);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'},_0x173cfa);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x173cfa);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 _0x213f40({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x173cfa);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x213f40({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x173cfa);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x173cfa);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'},_0x173cfa);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'},_0x173cfa);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'},_0x173cfa);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x5e0b15;}}class x{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x5d4685,_0x1434f3){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x5d4685,this['_locale']=_0x1434f3;}['getDescriptions'](_0xdcdd03){const _0x2cfdb6=[],_0x2afab1=new Set(),_0x4006fa=new Set();for(let _0x204551=0x0;_0x204551<_0xdcdd03['length'];_0x204551++){const _0x94f611=_0xdcdd03[_0x204551];if(!_0x94f611['isInContent'])continue;const _0x47d217=this['_handleCustomCallbackDescription'](_0x94f611);if(_0x47d217){if(null!=_0x94f611['subType']){if(_0x2afab1['has'](_0x94f611['subType']))continue;_0x2afab1['add'](_0x94f611['subType']);}_0x2cfdb6['push'](_0x47d217);}else{if('attribute'==_0x94f611['type']){const _0x2281be=_0x94f611['data']['key'];if(_0x4006fa['has'](_0x2281be))continue;_0x4006fa['add'](_0x94f611['data']['key']),_0x2281be==m?this['_handleRenameSuggestionDescription'](_0x2cfdb6,_0x94f611):this['_handleAttributeSuggestionDescription'](_0x2cfdb6,_0x94f611);continue;}'insertion'!=_0x94f611['type']&&'deletion'!=_0x94f611['type']||this['_handleInsertRemoveSuggestionDescription'](_0x2cfdb6,_0x94f611,_0xdcdd03[_0x204551+0x1]);}}return this['_resolveDescriptionItems'](_0x2cfdb6);}['registerDescriptionCallback'](_0xb19b2a){this['_customCallbacks']['push'](_0xb19b2a);}['registerElementLabel'](_0xc0db62,_0x1b9996,_0x3bd8fc=_0x49a958['normal']){'function'==typeof _0xc0db62?_0x93283b(this['_itemLabelsCallbacks'],{'matchingCallback':_0xc0db62,'label':_0x1b9996,'priority':_0x3bd8fc}):this['_itemLabels']['set'](_0xc0db62,_0x1b9996);}['registerAttributeLabel'](_0x1b971e,_0x523420){this['_attributeLabels']['set'](_0x1b971e,_0x523420);}['getItemLabel'](_0x485d74,_0x42d667=0x1){let _0x4b214d;for(const _0x13cc70 of this['_itemLabelsCallbacks'])if(_0x13cc70['matchingCallback'](_0x485d74)){_0x4b214d=_0x13cc70['label'];break;}return _0x4b214d||(_0x4b214d=this['_itemLabels']['get'](_0x485d74['name'])),_0x4b214d?_0x4b214d(_0x42d667):0x1!==_0x42d667?_0x42d667+'\x20'+_0x485d74['name']+'s':''+_0x485d74['name'];}['_addDescriptionItems'](_0x585636,_0x1bce0c){const _0x1625f9=_0x1bce0c['getFirstRange']()['getWalker'](),_0x5aeee5='insertion'==_0x1bce0c['type']?'add':'remove';for(const _0x2b9e06 of _0x1625f9){const _0x3b346a=_0x2b9e06['item'],_0x19a4c8=_0x585636[_0x585636['length']-0x1];if(_0x3b346a['is']('$textProxy'))_0x19a4c8&&_0x19a4c8['type']['indexOf']('Container')>-0x1&&_0x585636['pop'](),_0x19a4c8&&'text'==_0x19a4c8['type']?_0x19a4c8[_0x5aeee5]+=_0x3b346a['data']:_0x585636['push']({'type':'text','add':'add'==_0x5aeee5?_0x3b346a['data']:'','remove':'remove'==_0x5aeee5?_0x3b346a['data']:''});else{if(this['_schema']['isObject'](_0x3b346a)){const _0xa10e3f=_0x3b346a;if(_0x19a4c8&&_0x19a4c8['type']['indexOf']('Container')>-0x1&&_0x585636['pop'](),'elementEnd'==_0x2b9e06['type'])continue;_0x19a4c8&&_0x19a4c8['type']==_0x5aeee5+'Object'&&_0x19a4c8['element']['name']==_0xa10e3f['name']?_0x19a4c8['quantity']++:_0x585636['push']({'type':_0x5aeee5+'Object','element':_0xa10e3f,'quantity':0x1}),_0x1625f9['skip'](_0x4021fd=>!('elementEnd'==_0x4021fd['type']&&_0x4021fd['item']==_0x3b346a));}else{if(this['_schema']['checkChild'](_0x3b346a,'$text')||_0x3b346a['is']('element','softBreak')){const _0x117e55=_0x3b346a;if('add'==_0x5aeee5&&'elementStart'==_0x2b9e06['type']||'remove'==_0x5aeee5&&'elementEnd'==_0x2b9e06['type'])continue;if(_0x19a4c8&&-0x1==_0x19a4c8['type']['indexOf']('Container')){'text'==_0x19a4c8['type']&&(_0x19a4c8[_0x5aeee5]+='\x0a');continue;}let _0x1f5936;if(_0x1f5936='add'==_0x5aeee5?_0x117e55['nextSibling']&&!this['_schema']['isObject'](_0x117e55['nextSibling'])?_0x117e55['nextSibling']:null:_0x117e55['previousSibling']&&!this['_schema']['isObject'](_0x117e55['previousSibling'])?_0x117e55['previousSibling']:null,_0x117e55['isEmpty']||_0x1f5936&&_0x1f5936['isEmpty']){const _0x239d8f=_0x1f5936&&_0x1f5936['isEmpty']?_0x1f5936:_0x117e55;_0x19a4c8&&_0x19a4c8['type']==_0x5aeee5+'EmptyContainer'&&_0x19a4c8['element']['name']==_0x239d8f['name']?_0x19a4c8['quantity']++:_0x585636['push']({'type':_0x5aeee5+'EmptyContainer','element':_0x239d8f,'quantity':0x1});}else _0x585636['push']({'type':_0x5aeee5+'Container','element':_0x117e55});}}}}}['_resolveDescriptionItems'](_0x2c0d39){const _0x55b8ba=this['_locale'],_0x355182=[],_0x2eee32=[],_0x308458=[];for(const _0x2b6334 of _0x2c0d39)switch(_0x2b6334['type']){case'text':if(_0x2b6334['add']=_0x2b6334['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x2b6334['remove']=_0x2b6334['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x2b6334['add']&&''!=_0x2b6334['remove']){_0x355182['push']({'type':'replace','content':o(_0x55b8ba,'REPLACE_TEXT',['\x22'+_0x2b6334['remove']+'\x22','\x22'+_0x2b6334['add']+'\x22'])});continue;}if(null!=_0x2b6334['add']['match'](/^ +$/)){_0x355182['push']({'type':'insertion','content':o(_0x55b8ba,'*Insert:*\x20%0',o(_0x55b8ba,'ELEMENT_SPACE',_0x2b6334['add']['length']))});continue;}if(null!=_0x2b6334['remove']['match'](/^ +$/)){_0x355182['push']({'type':'deletion','content':o(_0x55b8ba,'*Remove:*\x20%0',o(_0x55b8ba,'ELEMENT_SPACE',_0x2b6334['remove']['length']))});continue;}if(''!=_0x2b6334['add']){_0x355182['push']({'type':'insertion','content':o(_0x55b8ba,'*Insert:*\x20%0','\x22'+_0x2b6334['add']+'\x22')});continue;}_0x355182['push']({'type':'deletion','content':o(_0x55b8ba,'*Remove:*\x20%0','\x22'+_0x2b6334['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x355182['push']({'type':'insertion','content':o(_0x55b8ba,'*Insert:*\x20%0',this['getItemLabel'](_0x2b6334['element'],_0x2b6334['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x355182['push']({'type':'deletion','content':o(_0x55b8ba,'*Remove:*\x20%0',this['getItemLabel'](_0x2b6334['element'],_0x2b6334['quantity']))});continue;case'addContainer':_0x355182['push']({'type':'insertion','content':o(_0x55b8ba,'*Split:*\x20%0',this['getItemLabel'](_0x2b6334['element'],_0x2b6334['quantity']))});continue;case'removeContainer':_0x355182['push']({'type':'deletion','content':o(_0x55b8ba,'*Merge:*\x20%0',this['getItemLabel'](_0x2b6334['element'],_0x2b6334['quantity']))});continue;case'addFormat':_0x2eee32['push'](_0x2b6334['key']);continue;case'removeFormat':_0x308458['push'](_0x2b6334['key']);continue;default:_0x355182['push'](_0x2b6334);}if(_0x2eee32['length']){const _0x239169=_0x2eee32['map'](_0xbaf1ef=>this['_attributeLabels']['has'](_0xbaf1ef)?this['_attributeLabels']['get'](_0xbaf1ef):_0xbaf1ef)['join'](',\x20');_0x355182['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x239169)});}if(_0x308458['length']){const _0xe6fc10=_0x308458['map'](_0x4f8e47=>this['_attributeLabels']['has'](_0x4f8e47)?this['_attributeLabels']['get'](_0x4f8e47):_0x4f8e47)['join'](',\x20');_0x355182['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0xe6fc10)});}return _0x355182;}['_handleCustomCallbackDescription'](_0x3268cb){for(const _0x549433 of this['_customCallbacks']){const _0x159d94=_0x549433(_0x3268cb);if(_0x159d94&&'type'in _0x159d94)return _0x159d94;}}['_handleAttributeSuggestionDescription'](_0x5630f5,_0x3274ba){const _0x35a343=_0x3274ba['data'],_0xfce285=void 0x0===_0x35a343['newValue']?'removeFormat':'addFormat';_0x5630f5['push']({'type':_0xfce285,'key':_0x35a343['key']});}['_handleRenameSuggestionDescription'](_0x236c44,_0x50bd55){_0x236c44['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x50bd55['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0xb1569c,_0x13fcb9,_0x3587a2){if(this['_addDescriptionItems'](_0xb1569c,_0x13fcb9),_0x3587a2&&_0x3587a2['getFirstRange']()&&!_0x13fcb9['getFirstRange']()['end']['isEqual'](_0x3587a2['getFirstRange']()['start'])){const _0x9afcbb=_0xb1569c[_0xb1569c['length']-0x1],_0x482943='insertion'==_0x13fcb9['type']?'add':'remove';_0x9afcbb&&'text'==_0x9afcbb['type']&&(_0x9afcbb[_0x482943]+='\x0a');}}}class O extends _0xa5f689{['afterInit'](){const _0xc16954=this['editor'],_0x31c7d9=_0xc16954['plugins']['get']('TrackChangesEditing');_0xc16954['commands']['get']('showAIAssistant')&&_0x31c7d9['enableCommand']('showAIAssistant');}}class E extends _0xa5f689{['afterInit'](){const _0x497028=this['editor'],_0x17c1d5=_0x497028['locale'];if(!_0x497028['plugins']['has']('AlignmentEditing'))return;const _0x4bc401=_0x497028['plugins']['get']('TrackChangesEditing');_0x4bc401['enableDefaultAttributesIntegration']('alignment'),_0x4bc401['registerBlockAttribute']('alignment'),_0x4bc401['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x17c1d5,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x100149=this['editor'],_0x52ca14=_0x100149['locale'];_0x100149['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3851b0=>{if('formatBlock'!=_0x3851b0['type'])return;const {data:_0x56da17}=_0x3851b0;if(_0x56da17&&'alignment'==_0x56da17['commandName']){const _0x4af735=_0x56da17['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x52ca14,'*Format:*\x20%0',function(_0x183466){switch(_0x183466){case'left':return o(_0x52ca14,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x52ca14,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x52ca14,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x52ca14,'FORMAT_JUSTIFY_TEXT');}}(_0x4af735))};}});}}const Xt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class R extends _0xa5f689{['afterInit'](){const _0x334c9e=this['editor'],_0x2070a3=_0x334c9e['plugins']['get']('TrackChangesEditing'),_0x163015=_0x334c9e['locale'];for(const _0x2b2b4b of Xt){if(!_0x334c9e['plugins']['has'](_0x2b2b4b))continue;const _0x24329e=_0x2b2b4b['slice'](0x0,-0x7)['toLowerCase'](),_0x337e58='FORMAT_'+_0x24329e['toUpperCase']();_0x2070a3['enableDefaultAttributesIntegration'](_0x24329e),_0x2070a3['registerInlineAttribute'](_0x24329e),_0x2070a3['descriptionFactory']['registerAttributeLabel'](_0x24329e,o(_0x163015,_0x337e58));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x21d3bb=this['editor'],_0x5a07d7=_0x21d3bb['locale'],_0x38c6e0=_0x21d3bb['plugins']['get']('TrackChangesEditing');function _0x8b854b(_0xfc1294,_0x1190b1){_0x38c6e0['descriptionFactory']['registerDescriptionCallback'](_0xe80d67=>{if('formatInline'!=_0xe80d67['type'])return;const {data:_0x4d8496}=_0xe80d67;return _0x4d8496&&_0x4d8496['commandName']===_0xfc1294?_0x4d8496['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5a07d7,'*Format:*\x20%0',_0x1190b1)}:{'type':'format','content':o(_0x5a07d7,'*Remove\x20format:*\x20%0',_0x1190b1)}:void 0x0;});}_0x8b854b('bold',o(_0x5a07d7,'FORMAT_BOLD')),_0x8b854b('italic',o(_0x5a07d7,'FORMAT_ITALIC')),_0x8b854b('underline',o(_0x5a07d7,'FORMAT_UNDERLINE')),_0x8b854b('code',o(_0x5a07d7,'FORMAT_CODE')),_0x8b854b('strikethrough',o(_0x5a07d7,'FORMAT_STRIKETHROUGH')),_0x8b854b('subscript',o(_0x5a07d7,'FORMAT_SUBSCRIPT')),_0x8b854b('superscript',o(_0x5a07d7,'FORMAT_SUPERSCRIPT'));}}class U extends _0xa5f689{['afterInit'](){const _0x8faa11=this['editor'],_0x357828=_0x8faa11['locale'];if(!_0x8faa11['plugins']['has']('BlockQuoteEditing'))return;const _0x3a473b=_0x8faa11['plugins']['get']('TrackChangesEditing'),_0x4d1e11=this['editor']['commands']['get']('blockQuote');_0x3a473b['enableCommand']('blockQuote',(_0x626eb8,_0x245a61={})=>{const _0xa8b255=this['editor']['model']['document']['selection'],_0x544a6a=_0x245a61&&void 0x0!==_0x245a61['forceValue']?_0x245a61['forceValue']:!_0x4d1e11['value'];let _0x680518=[];if(_0x544a6a){const _0x51b273=Array['from'](_0xa8b255['getSelectedBlocks']())['filter'](_0x110960=>Zt(_0x110960)||function(_0x59bf16,_0x2c7866){const _0x511b98=_0x2c7866['checkChild'](_0x59bf16['parent'],'blockQuote'),_0x59b470=_0x2c7866['checkChild'](['$root','blockQuote'],_0x59bf16);return _0x511b98&&_0x59b470;}(_0x110960,this['editor']['model']['schema']));_0x680518=Yt(_0x51b273,_0x8faa11['model']);}else{const _0x2acfd2=Array['from'](_0xa8b255['getSelectedBlocks']())['filter'](_0x5a2aff=>Zt(_0x5a2aff));_0x680518=Yt(_0x2acfd2,_0x8faa11['model']);}_0x8faa11['model']['change'](()=>{for(const _0x36628d of _0x680518)_0x3a473b['markBlockFormat'](_0x36628d,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x544a6a}]});});}),_0x3a473b['descriptionFactory']['registerDescriptionCallback'](_0x3d9592=>{const {data:_0x77a6d8}=_0x3d9592;if(_0x77a6d8&&'blockQuote'==_0x77a6d8['commandName']){const _0x48e36b=o(_0x357828,'ELEMENT_BLOCK_QUOTE');return _0x77a6d8['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x357828,'*Set\x20format:*\x20%0',_0x48e36b)}:{'type':'format','content':o(_0x357828,'*Remove\x20format:*\x20%0',_0x48e36b)};}});}}function Zt(_0x2adaf5){return'blockQuote'==_0x2adaf5['parent']['name'];}class V extends _0xa5f689{['afterInit'](){const _0x393ef4=this['editor'],_0x2e1c99=_0x393ef4['locale'],_0x4531d7=_0x393ef4['plugins']['get']('TrackChangesEditing');_0x393ef4['plugins']['has']('BookmarkEditing')&&(_0x4531d7['enableCommand']('insertBookmark'),_0x4531d7['enableDefaultAttributesIntegration']('updateBookmark'),_0x4531d7['registerBlockAttribute']('bookmarkId'),_0x4531d7['descriptionFactory']['registerDescriptionCallback'](_0x345ba3=>{if('insertion'!=_0x345ba3['type']&&'deletion'!=_0x345ba3['type']&&'attribute'!=_0x345ba3['type'])return;const _0x2e8278=_0x345ba3['getContainedElement']();if(null==_0x2e8278)return;if(!_0x2e8278['is']('element','bookmark'))return;const _0x140377=_0x2e8278['getAttribute']('bookmarkId');if('insertion'==_0x345ba3['type'])return{'type':'insertion','content':o(_0x2e1c99,'*Insert:*\x20%0','\x22'+_0x140377+'\x22\x20'+o(_0x2e1c99,'ELEMENT_BOOKMARK'))};if('deletion'==_0x345ba3['type'])return{'type':'deletion','content':o(_0x2e1c99,'*Remove:*\x20%0','\x22'+_0x140377+'\x22\x20'+o(_0x2e1c99,'ELEMENT_BOOKMARK'))};const {data:_0x1a9c23}=_0x345ba3;if(!_0x1a9c23||'bookmarkId'!=_0x1a9c23['key'])return;return{'type':'format','content':o(_0x2e1c99,'*Set\x20bookmark:*\x20%0','\x22'+_0x1a9c23['newValue']+'\x22')};}));}}class F extends _0xa5f689{['afterInit'](){const _0x9ea0f4=this['editor'];_0x9ea0f4['plugins']['has']('CaseChange')&&(_0x9ea0f4['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x9ea0f4['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x9ea0f4['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0xa5f689{['afterInit'](){const _0x249785=this['editor'];_0x249785['commands']['get']('ckbox')&&_0x249785['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0xa5f689{['afterInit'](){const _0x4b4c54=this['editor'];if(!_0x4b4c54['plugins']['has']('CodeBlock'))return;const _0x54557a=_0x4b4c54['plugins']['get']('TrackChangesEditing'),_0x43438e=_0x4b4c54['locale'],_0x2c3fc0=_0x4b4c54['config']['get']('codeBlock')['languages'],_0x15b5f2=_0x4b4c54['commands']['get']('codeBlock');_0x54557a['enableCommand']('indentCodeBlock'),_0x54557a['enableCommand']('outdentCodeBlock'),_0x54557a['enableCommand']('codeBlock',(_0x11936d,_0x87eff5={})=>{const _0x598948=_0x4b4c54['model'],_0x574864=_0x4b4c54['model']['document']['selection'],_0x4b66d8=_0x87eff5&&void 0x0!==_0x87eff5['forceValue']?_0x87eff5['forceValue']:!_0x15b5f2['value'];let _0x5c00f1;_0x87eff5['language']||(_0x87eff5['language']=_0x2c3fc0[0x0]['language']),_0x5c00f1=_0x4b66d8?Array['from'](_0x574864['getSelectedBlocks']())['filter'](_0x55266d=>oo(_0x55266d)||function(_0x4ccabc,_0x125bec){if(_0x4ccabc['is']('rootElement')||_0x125bec['isLimit'](_0x4ccabc))return!0x1;return _0x125bec['checkChild'](_0x4ccabc['parent'],'codeBlock');}(_0x55266d,_0x598948['schema'])):Array['from'](_0x574864['getSelectedBlocks']())['filter'](_0x16c60a=>oo(_0x16c60a));const _0x492f21=Yt(_0x5c00f1,_0x598948);_0x598948['change'](()=>{for(const _0x3c9607 of _0x492f21)_0x54557a['markBlockFormat'](_0x3c9607,{'commandName':'codeBlock','commandParams':[{..._0x87eff5,'forceValue':_0x4b66d8}],'formatGroupId':'blockName'});});}),(_0x54557a['descriptionFactory']['registerElementLabel']('codeBlock',_0x312bde=>o(_0x43438e,'ELEMENT_CODE_BLOCK',_0x312bde)),_0x54557a['descriptionFactory']['registerDescriptionCallback'](_0x153962=>{if('formatBlock'!=_0x153962['type'])return;const _0x3db319=_0x43438e['t'],{data:_0xc97b78}=_0x153962;if(!_0xc97b78||'codeBlock'!=_0xc97b78['commandName'])return;const _0x24cd39=_0xc97b78['commandParams'][0x0]['language'],_0x2d97d1=_0x3db319(_0x2c3fc0['find'](_0x205403=>_0x205403['language']===_0x24cd39)['label'])['toLowerCase']();return _0xc97b78['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x43438e,'*Set\x20format:*\x20%0',o(_0x43438e,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x2d97d1+')')}:{'type':'format','content':o(_0x43438e,'*Remove\x20format:*\x20%0',o(_0x43438e,'ELEMENT_CODE_BLOCK',0x1))};}));}}function oo(_0x28ecc5){return'codeBlock'==_0x28ecc5['name'];}class J extends _0xa5f689{['afterInit'](){const _0x27f22e=this['editor'];if(!_0x27f22e['plugins']['has']('CommentsEditing'))return;_0x27f22e['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x250359,_0x41ea33,_0x3531b0){const _0x25c65b=[];for(const _0x29b2f2 of _0x41ea33['getItems']())_0x29b2f2['hasAttribute'](_0x250359)&&_0x25c65b['push'](_0x3531b0['createRangeOn'](_0x29b2f2));return _0x25c65b;}function De(_0x1efbe6,_0x25d7b6,{showActiveMarker:_0x5de929=!0x0}={}){const _0x5bce05=_0x1efbe6['plugins']['get']('TrackChangesEditing');return(_0xe2093c,_0x4a5793,_0x5f16d6)=>{if(!_0x5f16d6['consumable']['test'](_0x4a5793['markerRange'],_0xe2093c['name']))return;const _0x5e338a=_0x4a5793['markerRange']['getWalker'](),_0x311c2d=_0x4a5793['markerRange']['start'],_0x467be7=_0x1efbe6['model']['schema'];let _0x555186=null,_0x212152=null,_0x39b23d=!0x1,_0x616fa9=!0x1;for(const _0x2ca8f6 of _0x5e338a){const _0x304aaa=_0x2ca8f6['item'];_0x39b23d=_0x39b23d||_0x467be7['isContent'](_0x304aaa);const _0xbbefde=_0x5f16d6['mapper']['toViewElement'](_0x304aaa);if(_0xbbefde&&_0xbbefde['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2ca8f6['type']&&(_0x467be7['isBlock'](_0x304aaa)&&!_0x467be7['isLimit'](_0x304aaa)&&(_0x304aaa['nextSibling']||_0x311c2d['isAtEnd']?_0x555186&&_0x555186['parent']==_0x304aaa||(_0x555186=_0x304aaa,_0x374c4f(_0x2ca8f6['previousPosition']),_0x616fa9=!0x0):_0x212152=_0x212152||_0x2ca8f6['previousPosition']));}function _0x374c4f(_0x4361c2){const {id:_0x4bc0bb,authorId:_0x6c752d}=_0x5bce05['_splitMarkerName'](_0x4a5793['markerName']),_0x39d891=_0x5f16d6['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x25d7b6,'data-suggestion':_0x4bc0bb,'data-author-id':_0x6c752d}),_0x40cae2=_0x5f16d6['mapper']['toViewPosition'](_0x4361c2);_0x5de929&&_0x5bce05['activeMarkers']['includes'](_0x4a5793['markerName'])&&_0x5f16d6['writer']['addClass']('ck-suggestion-marker--active',_0x39d891),_0x5f16d6['writer']['insert'](_0x40cae2,_0x39d891),_0x5f16d6['mapper']['bindElementToMarker'](_0x39d891,_0x4a5793['markerName']);}_0x39b23d||_0x616fa9||!_0x212152||_0x374c4f(_0x212152);};}class K extends _0xa5f689{static get['requires'](){return[_0x3d72d7];}['init'](){const _0x6c8b40=this['editor'],_0x308a22=_0x6c8b40['plugins']['get']('TrackChangesEditing');_0x308a22['enableCommand']('delete');const _0x2a9d5e=_0x6c8b40['commands']['get']('deleteForward');_0x308a22['enableCommand']('deleteForward',(_0x5eb7a6,_0x549450={})=>{const _0x573883=_0x6c8b40['model']['createSelection'](_0x6c8b40['model']['document']['selection']);_0x573883['isCollapsed']&&_0x6c8b40['model']['modifySelection'](_0x573883,{'direction':'forward','unit':_0x549450['unit']});const _0x4951ab=_0x573883['getFirstRange'](),_0x18de04=_0x5c02ad['fromRange'](_0x4951ab);let _0x29472f;_0x5eb7a6(_0x549450),_0x29472f='$graveyard'==_0x18de04['root']['rootName']?_0x6c8b40['model']['createRange'](_0x4951ab['start']):_0x6c8b40['model']['createRange'](_0x18de04['start'],_0x18de04['end']),_0x18de04['detach'](),_0x6c8b40['model']['enqueueChange'](_0x2a9d5e['buffer']['batch'],_0x7cfe24=>{_0x2a9d5e['buffer']['lock'](),_0x7cfe24['setSelection'](_0x7cfe24['createRange'](_0x29472f['end'])),_0x2a9d5e['buffer']['unlock']();});}),_0x6c8b40['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x6c8b40,'merge'),{'priority':'high'}),_0x6c8b40['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x17ae33,_0x30c944,_0x19bd04)=>{_0x19bd04['options']['showSuggestionHighlights']&&De(_0x6c8b40,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x17ae33,_0x30c944,_0x19bd04);},{'priority':'high'}),_0x6c8b40['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x2ef888,_0x5dd1e7,_0x575f19)=>{const _0x3584c0=_0x575f19['mapper']['markerNameToElements'](_0x5dd1e7['markerName']);if(_0x3584c0){for(const _0x5a89c8 of _0x3584c0)_0x5a89c8['is']('uiElement')&&(_0x575f19['mapper']['unbindElementFromMarkerName'](_0x5a89c8,_0x5dd1e7['markerName']),_0x575f19['writer']['remove'](_0x5a89c8));}},{'priority':'high'});}}class H extends _0xa5f689{['afterInit'](){const _0x47cf2f=this['editor'];if(!_0x47cf2f['plugins']['has']('ListEditing'))return;const _0x582c7c=_0x47cf2f['locale'],_0x3f2de0=_0x47cf2f['plugins']['get']('TrackChangesEditing'),_0x2f5fea=_0x47cf2f['plugins']['has']('TodoListEditing'),_0x1f0710=!!_0x47cf2f['config']['get']('list.multiBlock');function _0x4c2684(_0x162e5f){return{'type':'format','content':''+o(_0x582c7c,'*Set\x20format:*\x20%0',_0x162e5f)};}function _0x255185(_0x63000d){return{'type':'format','content':''+o(_0x582c7c,'*Remove\x20format:*\x20%0',_0x63000d)};}_0x3f2de0['enableDefaultAttributesIntegration']('numberedList'),_0x3f2de0['enableDefaultAttributesIntegration']('bulletedList'),_0x3f2de0['enableDefaultAttributesIntegration']('customNumberedList'),_0x3f2de0['enableDefaultAttributesIntegration']('customBulletedList'),_0x3f2de0['enableDefaultAttributesIntegration']('indentList'),_0x3f2de0['enableDefaultAttributesIntegration']('outdentList'),_0x3f2de0['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x3f2de0['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x3f2de0['registerBlockAttribute']('listItemId'),_0x3f2de0['registerBlockAttribute']('listType'),_0x3f2de0['registerBlockAttribute']('listIndent'),_0x1f0710&&(_0x3f2de0['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x3f2de0['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2f5fea&&(_0x3f2de0['enableDefaultAttributesIntegration']('todoList'),_0x3f2de0['enableDefaultAttributesIntegration']('checkTodoList'),_0x3f2de0['registerBlockAttribute']('todoListChecked'),_0x3f2de0['descriptionFactory']['registerDescriptionCallback'](_0xe8a987=>{const {data:_0x213f2f}=_0xe8a987;if(_0x213f2f&&'todoListChecked'==_0x213f2f['key'])return{'type':'format','content':_0x213f2f['newValue']?o(_0x582c7c,'*Check\x20item*'):o(_0x582c7c,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x323d45=>{if(_0x323d45['batch']['isUndo'])return!0x1;let _0x4c297d=!0x1;const _0x451369=_0x3f2de0['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5e54a2=>'todoListChecked'===_0x3f2de0['_getAttributeKey'](_0x5e54a2));for(const _0x346026 of _0x451369){'todo'!=_0x346026['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x3f2de0['_findSuggestions'](_0x346026['getFirstRange'](),'attribute')['find'](_0x3d60bc=>'listType'===_0x3f2de0['_getAttributeKey'](_0x3d60bc['suggestion']))||(_0x323d45['removeMarker'](_0x346026['getFirstMarker']()),_0x4c297d=!0x0));}return _0x4c297d;})),_0x3f2de0['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x582c7c,'FORMAT_INDENT'));const _0x6364cf={'type':'format','content':''};_0x3f2de0['descriptionFactory']['registerDescriptionCallback'](_0x401c38=>{const {data:_0x534bb8}=_0x401c38;if(!_0x534bb8||'listType'!=_0x534bb8['key'])return;let _0x9a496e=_0x401c38['head'];for(;_0x9a496e;){if(_0x9a496e['data']&&(('listStyle'==_0x9a496e['data']['key']||'listMarkerStyle'==_0x9a496e['data']['key'])&&(_0x9a496e['data']['newValue']&&'default'!=_0x9a496e['data']['newValue']||'default'!=_0x9a496e['data']['oldValue']&&!_0x534bb8['newValue'])||!_0x1f0710&&_0x9a496e['data']['key']==m))return _0x6364cf;_0x9a496e=_0x9a496e['next'];}if(null==_0x534bb8['newValue'])switch(_0x534bb8['oldValue']){case'bulleted':return _0x255185(o(_0x582c7c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x255185(o(_0x582c7c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x255185(o(_0x582c7c,'ELEMENT_TODO_LIST'));}switch(_0x534bb8['newValue']){case'bulleted':return _0x4c2684(o(_0x582c7c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4c2684(o(_0x582c7c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4c2684(o(_0x582c7c,'ELEMENT_TODO_LIST'));}}),_0x3f2de0['descriptionFactory']['registerDescriptionCallback'](_0xf80f80=>{const {data:_0x2e2f4a}=_0xf80f80;if(_0x2e2f4a&&'listIndent'==_0x2e2f4a['key'])return null==_0x2e2f4a['newValue']||null==_0x2e2f4a['oldValue']&&0x0==_0x2e2f4a['newValue']?_0x6364cf:void 0x0;}),_0x3f2de0['descriptionFactory']['registerDescriptionCallback'](_0x10a01b=>{if('attribute'!=_0x10a01b['type'])return;const {data:_0x488be6}=_0x10a01b;if(!_0x488be6||'listItemId'!=_0x488be6['key'])return;const _0x3d55cb=Te(_0x10a01b);return'newValue'==_0x3d55cb?{'type':'format','content':o(_0x582c7c,'*Merge:*\x20list\x20item')}:'oldValue'==_0x3d55cb?{'type':'format','content':o(_0x582c7c,'*Split:*\x20list\x20item')}:_0x6364cf;}),_0x47cf2f['model']['document']['registerPostFixer'](_0x3f4e03=>this['listItemIdFixer'](_0x3f4e03)),_0x47cf2f['model']['document']['registerPostFixer'](_0x5e3e15=>this['noTrackChangesFixer'](_0x5e3e15)),_0x47cf2f['model']['document']['on']('change:data',(_0x4bbe25,_0x2e7dbb)=>{if(_0x2e7dbb['isUndo']||!_0x2e7dbb['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x2734cc){if(_0x2734cc['batch']['isUndo']||!_0x2734cc['batch']['isLocal'])return!0x1;let _0x15d4fb=!0x1;const _0x27f45e=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x17a72e=>_0x17a72e['data']&&'listItemId'==_0x17a72e['data']['key'])['filter'](_0x52d591=>_0x52d591['data']['newValue']&&_0x52d591['data']['oldValue']);for(const _0x2a1043 of _0x27f45e)Te(_0x2a1043)||(_0x2734cc['removeMarker'](_0x2a1043['getFirstMarker']()),_0x15d4fb=!0x0);return _0x15d4fb;}['noTrackChangesFixer'](_0x468b4f){if(_0x468b4f['batch']['isUndo']||!_0x468b4f['batch']['isLocal'])return!0x1;const _0x233549=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x233549['trackChangesCommand']['value'])return!0x1;let _0xae3bdd=!0x1;const _0x5b877d=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x21c1bc=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x51c60f=>'attribute'==_0x51c60f['type'])['filter'](_0x4d0e79=>_0x5b877d['includes'](_0x4d0e79['attributeKey']));if(0x0==_0x21c1bc['length'])return _0xae3bdd;for(const _0x223ac5 of _0x21c1bc){const _0x23f7db=_0x233549['_findSuggestions'](_0x223ac5['range'],'attribute')['filter'](_0x3f0ac0=>!_0x3f0ac0['meta']['isNextTo'])['map'](_0x5db81d=>_0x5db81d['suggestion'])['filter'](_0x519e6d=>{const _0x5d8d10=_0x233549['_getAttributeKey'](_0x519e6d);return _0x5b877d['includes'](_0x5d8d10);});if(_0x23f7db['length']){for(const _0x4a472b of _0x23f7db)_0x468b4f['removeMarker'](_0x4a472b['getFirstMarker']());_0xae3bdd=!0x0;}}return _0xae3bdd;}['assureChains'](){const _0x4dcd74=this['editor']['plugins']['get']('TrackChangesEditing'),_0x37f7de=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x383dad;const _0x394f57=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4ab520=>{if(_0x4ab520['data']['oldRange']||!_0x4ab520['data']['newRange'])return null;if(!_0x4ab520['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x3874ba}=_0x4dcd74['_splitMarkerName'](_0x4ab520['name']);if(!_0x4dcd74['hasSuggestion'](_0x3874ba))return null;const _0x348d95=_0x4dcd74['getSuggestion'](_0x3874ba);return _0x37f7de['includes'](_0x348d95['data']['key']);})['map'](_0x7e28fe=>{const {id:_0x592f0d}=_0x4dcd74['_splitMarkerName'](_0x7e28fe['name']),_0x2308db=_0x4dcd74['getSuggestion'](_0x592f0d);return _0x383dad=_0x2308db['attributes']['groupId'],_0x2308db['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x394f57['size'])return;const _0x53719e=_0x4dcd74['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x33875c=>'attribute'==_0x33875c['type']&&_0x33875c['data']&&_0x37f7de['includes'](_0x33875c['data']['key'])&&_0x33875c['attributes']['groupId']!=_0x383dad)['map'](_0x5e6735=>({'listItem':_0x5e6735['getFirstRange']()['start']['nodeAfter'],'groupId':_0x5e6735['attributes']['groupId']})),_0x47438b=new Set();for(const {groupId:_0x532ec1,listItem:_0x55c5d0}of _0x53719e)_0x394f57['has'](_0x55c5d0)&&_0x47438b['add'](_0x532ec1);for(const _0x111f5c of _0x4dcd74['getSuggestions']())_0x47438b['has'](_0x111f5c['attributes']['groupId'])&&_0x111f5c['setAttribute']('groupId',_0x383dad);}['_supportLegacySuggestions'](){const _0x48835b=this['editor'],_0x4bec6c=_0x48835b['locale'],_0xfc8a77=_0x48835b['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0xfc8a77['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x50c8d4,_0x78b44){const _0x590516=[];for(let _0x3e9154 of _0x50c8d4)_0x3e9154['start']['nodeAfter']===_0x3e9154['end']['parent']&&(_0x3e9154=_0x48835b['model']['createRange'](_0x48835b['model']['createPositionAt'](_0x3e9154['start']['nodeAfter'],0x0))),_0x590516['push'](_0x3e9154);_0x48835b['model']['change'](_0x4235c3=>{const _0x73ddfa=_0x48835b['model']['document']['selection'],_0x3b8dc2=Array['from'](_0x73ddfa['getRanges']())['map'](_0x47707c=>_0x5c02ad['fromRange'](_0x47707c));_0x4235c3['setSelection'](_0x590516),_0x48835b['commands']['get'](_0x78b44['commandName'])['refresh'](),_0x78b44['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x48835b['execute'](_0x78b44['commandName'],..._0x78b44['commandParams']),_0x4235c3['setSelection'](_0x3b8dc2);for(const _0x5a2a71 of _0x3b8dc2)_0x5a2a71['detach']();});}),_0xfc8a77['descriptionFactory']['registerElementLabel'](function(_0x2d06cf){const _0x2aa694=!_0x48835b['model']['schema']['isObject'](_0x2d06cf),_0x495168=_0x2d06cf['previousSibling'],_0x51a0c3=_0x2d06cf['nextSibling'],_0x16e9d3=_0x2d06cf['getAttribute']('listItemId'),_0x1af331=!_0x495168||_0x495168['getAttribute']('listItemId')!==_0x16e9d3,_0x2bb8c=!_0x51a0c3||_0x51a0c3['getAttribute']('listItemId')!==_0x16e9d3;return _0x2aa694&&Boolean(_0x16e9d3)&&_0x1af331&&_0x2bb8c;},_0x34b972=>o(_0x4bec6c,'ELEMENT_LIST_ITEM',_0x34b972));}['_registerLegacyDescription'](){const _0x5f1cdf=this['editor'],_0x5a3aa4=_0x5f1cdf['locale'];function _0x5b56f7(_0x3d526b){const _0x58b23f=_0x5f1cdf['commands']['get']('bulletedList')['value'],_0x46d4a8=_0x5f1cdf['commands']['get']('numberedList')['value'];return'numberedList'===_0x3d526b?_0x58b23f:_0x46d4a8;}_0x5f1cdf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x2dd056){if('formatBlock'!=_0x2dd056['type'])return;const {data:_0x227f7b}=_0x2dd056;if(!_0x227f7b)return;let _0x5d8863,_0x4fdd5d,_0x24e3e7,_0x41a311;switch(_0x227f7b['commandName']){case'bulletedList':_0x24e3e7=_0x227f7b['commandParams'][0x0]['forceValue'],_0x41a311=_0x5b56f7(_0x227f7b['commandName']),_0x5d8863=_0x24e3e7?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x41a311&&_0x5f1cdf['config']['get']('list.multiBlock')||(_0x5d8863='*Change\x20to:*\x20%0'),_0x4fdd5d={'type':'format','content':o(_0x5a3aa4,_0x5d8863,o(_0x5a3aa4,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x24e3e7=_0x227f7b['commandParams'][0x0]['forceValue'],_0x41a311=_0x5b56f7(_0x227f7b['commandName']),_0x5d8863=_0x24e3e7?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x41a311&&_0x5f1cdf['config']['get']('list.multiBlock')||(_0x5d8863='*Change\x20to:*\x20%0'),_0x4fdd5d={'type':'format','content':o(_0x5a3aa4,_0x5d8863,o(_0x5a3aa4,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x5d8863='*Indent:*\x20%0',_0x4fdd5d={'type':'format','content':o(_0x5a3aa4,_0x5d8863,o(_0x5a3aa4,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x5d8863=function(_0x52ef6e){const _0x35724c=_0x52ef6e['getFirstRange']();let _0xb0198a=_0x35724c['start']['nodeAfter'];for(;_0xb0198a&&_0x35724c['containsItem'](_0xb0198a);){if(_0xb0198a['getAttribute']('listIndent')>0x0)return!0x1;_0xb0198a=_0xb0198a['nextSibling'];}return!0x0;}(_0x2dd056)?o(_0x5a3aa4,'*Format:*\x20remove\x20from\x20%0',o(_0x5a3aa4,function(_0x97b22c){return'ELEMENT_'+_0x97b22c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x2dd056))):o(_0x5a3aa4,'*Outdent:*\x20%0',o(_0x5a3aa4,'ELEMENT_LIST_ITEM')),_0x4fdd5d={'type':'format','content':_0x5d8863};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x227f7b['multipleBlocks']&&(_0x5d8863='*Merge:*\x20%0',_0x4fdd5d={'type':'deletion','content':o(_0x5a3aa4,_0x5d8863,o(_0x5a3aa4,'ELEMENT_LIST_ITEM'))});}return _0x4fdd5d;});}}function Te(_0x23b8bc){let _0x5b2ada=_0x23b8bc['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x5b2ada;){const _0x1661d=_0x5b2ada['getAttribute']('listItemId');if(!_0x1661d)return!0x1;if(_0x1661d==_0x23b8bc['data']['newValue'])return'newValue';if(_0x1661d==_0x23b8bc['data']['oldValue'])return'oldValue';_0x5b2ada=_0x5b2ada['previousSibling'];}return!0x1;}class q extends _0xa5f689{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2b8819=this['editor']['config']['get']('list.properties'),_0x47bd68=this['editor']['plugins']['get']('TrackChangesEditing');_0x2b8819['styles']&&(_0x47bd68['enableDefaultAttributesIntegration']('listStyle'),_0x47bd68['registerBlockAttribute']('listStyle')),_0x2b8819['reversed']&&(_0x47bd68['enableDefaultAttributesIntegration']('listReversed'),_0x47bd68['registerBlockAttribute']('listReversed')),_0x2b8819['startIndex']&&(_0x47bd68['enableDefaultAttributesIntegration']('listStart'),_0x47bd68['registerBlockAttribute']('listStart'));const _0x42b1ca={'type':'format','content':''};_0x47bd68['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x31fa61=this['editor']['locale'];_0x47bd68['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x31fa61,'FORMAT_LIST_REVERSED')),_0x47bd68['descriptionFactory']['registerDescriptionCallback'](_0x2384a2=>{const {data:_0x56a006}=_0x2384a2;if(_0x56a006&&'listReversed'==_0x56a006['key'])return null==_0x56a006['newValue']||0x0==_0x56a006['newValue']&&null==_0x56a006['oldValue']?_0x42b1ca:void 0x0;}),_0x47bd68['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x31fa61,'FORMAT_LIST_START')),_0x47bd68['descriptionFactory']['registerDescriptionCallback'](_0x44c2ed=>{const {data:_0x363f89}=_0x44c2ed;if(_0x363f89&&'listStart'==_0x363f89['key'])return null==_0x363f89['newValue']||0x1==_0x363f89['newValue']&&null==_0x363f89['oldValue']?_0x42b1ca:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x455114=>{if(_0x455114['batch']['isUndo'])return!0x1;let _0x3dce32=!0x1;const _0x5819d4=_0x47bd68['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x25aace=>{const _0x519b13=_0x47bd68['_getAttributeKey'](_0x25aace);return'listStart'==_0x519b13||'listReversed'==_0x519b13;});for(const _0x484e8e of _0x5819d4){const _0x5c67c5=_0x484e8e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x5c67c5||'customNumbered'==_0x5c67c5)continue;_0x47bd68['_findSuggestions'](_0x484e8e['getFirstRange'](),'attribute')['find'](_0x5106f7=>'listType'==_0x47bd68['_getAttributeKey'](_0x5106f7['suggestion']))||(_0x455114['removeMarker'](_0x484e8e['getFirstMarker']()),_0x3dce32=!0x0);}return _0x3dce32;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0xd498ef){const _0x31a3b3=this['editor']['locale'],{data:_0x49e1bf}=_0xd498ef,_0x1e53af={'type':'format','content':''};if(!_0x49e1bf||'listStyle'!=_0x49e1bf['key'])return;if(!_0x49e1bf['oldValue'])return'default'==_0x49e1bf['newValue']?_0x1e53af:{'type':'format','content':''+o(_0x31a3b3,'*Set\x20format:*\x20%0',o(_0x31a3b3,this['_getTranslationKeyForListStyle'](_0x49e1bf['newValue'])))};if(!_0x49e1bf['newValue']){if('default'==_0x49e1bf['oldValue'])return _0x1e53af;let _0x2d7f3b=_0xd498ef['head'];for(;_0x2d7f3b;){if(_0x2d7f3b['data']&&'listType'==_0x2d7f3b['data']['key']&&_0x2d7f3b['data']['newValue'])return _0x1e53af;_0x2d7f3b=_0x2d7f3b['next'];}return{'type':'format','content':''+o(_0x31a3b3,'*Remove\x20format:*\x20%0',o(_0x31a3b3,this['_getTranslationKeyForListStyle'](_0x49e1bf['oldValue'])))};}if('default'!=_0x49e1bf['newValue'])return{'type':'format','content':''+o(_0x31a3b3,'*Set\x20format:*\x20%0',o(_0x31a3b3,this['_getTranslationKeyForListStyle'](_0x49e1bf['newValue'])))};let _0x1d9ae3=_0xd498ef['head'];for(;_0x1d9ae3;){if(_0x1d9ae3['data']&&'listType'==_0x1d9ae3['data']['key']&&_0x1d9ae3['data']['newValue']&&_0x1d9ae3['data']['oldValue'])return _0x1e53af;_0x1d9ae3=_0x1d9ae3['next'];}return{'type':'format','content':o(_0x31a3b3,'*Set\x20format:*\x20%0',o(_0x31a3b3,'ELEMENT_'+_0xd498ef['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x5f5d43=this['editor'],_0x2e7a1d=_0x5f5d43['locale'];_0x5f5d43['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ea453=>{if('formatBlock'!=_0x4ea453['type'])return;const {data:_0x440357}=_0x4ea453;if(!_0x440357)return;let _0x181e45,_0x314f3a;switch(_0x440357['commandName']){case'listStyle':_0x181e45='*Change\x20to:*\x20%0',_0x314f3a={'type':'format','content':o(_0x2e7a1d,_0x181e45,o(_0x2e7a1d,this['_getTranslationKeyForListStyle'](_0x440357['commandParams'][0x0]['type'])))};break;case'listReversed':_0x181e45=_0x440357['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x314f3a={'type':'format','content':o(_0x2e7a1d,_0x181e45)};break;case'listStart':_0x181e45='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x314f3a={'type':'format','content':o(_0x2e7a1d,_0x181e45,_0x440357['commandParams'][0x0]['startIndex'])};}return _0x314f3a;});}['_getTranslationKeyForListStyle'](_0x5c1807){return'ELEMENT_'+function(_0x3fce91){if(Se['includes'](_0x3fce91))return'bulleted';if(_e['includes'](_0x3fce91))return'numbered';return null;}(_0x5c1807)['toUpperCase']()+'_LIST_'+_0x5c1807['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class z extends _0xa5f689{['afterInit'](){const _0x5b6e1a=this['editor'];_0x5b6e1a['commands']['get']('emoji')&&_0x5b6e1a['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class W extends _0xa5f689{static get['requires'](){return[_0xff3012];}['init'](){const _0x58f6ff=this['editor'],_0x115b8d=_0x58f6ff['plugins']['get']('TrackChangesEditing'),_0x51a571=_0x58f6ff['commands']['get']('enter');_0x115b8d['enableCommand']('enter',()=>{_0x58f6ff['model']['change'](_0x3f2a54=>{const _0x4094dc=_0x58f6ff['model']['document']['selection'],_0x1b8d9a=_0x4094dc['getFirstPosition'](),_0x58d482=_0x5c02ad['fromRange'](_0x4094dc['getFirstRange']());if(_0x51a571['enterBlock'](_0x3f2a54)){const _0x1dd4cf=_0x58f6ff['model']['createPositionAt'](_0x1b8d9a['parent']['nextSibling'],0x0),_0x2b7868=_0x3f2a54['createRange'](_0x1b8d9a,_0x1dd4cf);_0x115b8d['markInsertion'](_0x2b7868);}else _0x3f2a54['setSelection'](_0x3f2a54['createRange'](_0x58d482['end']));_0x58d482['detach'](),_0x51a571['fire']('afterExecute',{'writer':_0x3f2a54});});}),_0x58f6ff['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x58f6ff,'split'),{'priority':'high'}),_0x58f6ff['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x2299d6,_0x5e80d1,_0x3ee5d6)=>{const _0x159032=_0x3ee5d6['mapper']['markerNameToElements'](_0x5e80d1['markerName']);if(_0x159032){for(const _0x2bb126 of _0x159032)_0x2bb126['hasClass']('ck-suggestion-marker-split')&&(_0x3ee5d6['mapper']['unbindElementFromMarkerName'](_0x2bb126,_0x5e80d1['markerName']),_0x3ee5d6['writer']['remove'](_0x2bb126));}},{'priority':'high'}),_0x58f6ff['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x369520,_0x4e358a,_0x44100c)=>{_0x44100c['options']['showSuggestionHighlights']&&De(_0x58f6ff,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x369520,_0x4e358a,_0x44100c);},{'priority':'high'});}}class Q extends _0xa5f689{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x270225=this['editor']['plugins']['get']('TrackChangesEditing');_0x270225['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x270225['enableCommand']('findNext'),_0x270225['enableCommand']('findPrevious'),_0x270225['enableCommand']('replace'),_0x270225['enableCommand']('replaceAll');}['handleFindCommand'](_0x58423e,_0x42eaab,_0x32ff3e={}){const _0x43c5b5=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x58423e(_0x4b0723=>{let _0x151e34=('string'==typeof _0x42eaab?_0x43c5b5['findByTextCallback'](_0x42eaab,_0x32ff3e):_0x42eaab)(_0x4b0723);Array['isArray'](_0x151e34)&&(_0x151e34={'results':_0x151e34,'searchText':'string'==typeof _0x42eaab?_0x42eaab:''});const _0x397616=_0x151e34['results']['filter'](_0x39a25c=>!0x1===this['_isInDeletionRange'](_0x39a25c,_0x4b0723['item']));return{..._0x151e34,'results':_0x397616};},_0x32ff3e);}['_isInDeletionRange'](_0x12d0c3,_0x154d6c){const _0x55cc41=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x154d6c,_0x12d0c3['start']),this['editor']['model']['createPositionAt'](_0x154d6c,_0x12d0c3['end']));for(const _0x4ffc8e of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x55cc41['getIntersection'](_0x4ffc8e['getRange']()))return!0x0;return!0x1;}}const no=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class X extends _0xa5f689{['afterInit'](){const _0x57056b=this['editor']['locale'],_0x3ae8fb=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x49f18f,commandName:_0x104f69}of no)this['editor']['plugins']['has'](_0x49f18f)&&(_0x3ae8fb['enableDefaultAttributesIntegration'](_0x104f69),_0x3ae8fb['registerInlineAttribute'](_0x104f69));_0x3ae8fb['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x57056b,'FORMAT_FONT_SIZE')),_0x3ae8fb['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x57056b,'FORMAT_FONT_FAMILY')),_0x3ae8fb['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x57056b,'FORMAT_FONT_COLOR')),_0x3ae8fb['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x57056b,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x514230=this['editor'],_0x234c5e=_0x514230['locale'];_0x514230['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1c4d7c=>{const _0x56ca9c=_0x234c5e['t'];if('formatInline'!=_0x1c4d7c['type'])return;const {data:_0x339bb7}=_0x1c4d7c;if(null!=_0x339bb7){if('fontSize'==_0x339bb7['commandName']){const _0x3a6325=_0x339bb7['commandParams'][0x0]['value'];if(_0x3a6325){const _0x590e6b=_0x56ca9c(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x16dec9=>_0x16dec9['model']==_0x3a6325)['title'])['toLowerCase']();return{'type':'format','content':o(_0x234c5e,'*Set\x20font\x20size:*\x20%0',_0x590e6b)};}return{'type':'format','content':o(_0x234c5e,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x339bb7['commandName']){const _0x4738db=_0x339bb7['commandParams'][0x0]['value'];return _0x4738db?{'type':'format','content':o(_0x234c5e,'*Set\x20font\x20family:*\x20%0',_0x4738db)}:{'type':'format','content':o(_0x234c5e,'*Reset\x20font\x20family*')};}if('fontColor'==_0x339bb7['commandName']){const _0x2ad1fb=_0x339bb7['commandParams'][0x0]['value'];if(_0x2ad1fb){const _0x45d087=to(this['editor']['config']['get']('fontColor.colors'))['find'](_0x432eb6=>_0x432eb6['model']==_0x2ad1fb);let _0x566b28=_0x2ad1fb,_0x1640a3='';return _0x45d087&&(_0x566b28=_0x45d087['label'],_0x1640a3=_0x56ca9c(_0x566b28)['toLowerCase']()),{'type':'format','content':o(_0x234c5e,'*Set\x20font\x20color:*\x20%0',_0x1640a3)['trim'](),'color':{'value':_0x2ad1fb,'title':_0x1640a3||_0x566b28}};}return{'type':'format','content':o(_0x234c5e,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x339bb7['commandName']){const _0x2bd74a=_0x339bb7['commandParams'][0x0]['value'];if(_0x2bd74a){const _0x2e0ff9=to(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x262980=>_0x262980['model']==_0x2bd74a);let _0x29e675=_0x2bd74a,_0x4b8ca5='';return _0x2e0ff9&&(_0x29e675=_0x2e0ff9['label'],_0x4b8ca5=_0x56ca9c(_0x29e675)['toLowerCase']()),{'type':'format','content':o(_0x234c5e,'*Set\x20font\x20background\x20color:*\x20%0',_0x4b8ca5)['trim'](),'color':{'value':_0x2bd74a,'title':_0x4b8ca5||_0x29e675}};}return{'type':'format','content':o(_0x234c5e,'*Reset\x20font\x20background\x20color*')};}}});}}class Y extends _0xa5f689{['afterInit'](){const _0x497ecf=this['editor'],_0xaa97c1=_0x497ecf['plugins']['get']('TrackChangesEditing'),_0x4126c7=_0x497ecf['commands']['get']('copyFormat'),_0x453667=_0x497ecf['commands']['get']('pasteFormat');_0x4126c7&&_0x453667&&(_0xaa97c1['enableDefaultAttributesIntegration']('pasteFormat'),_0xaa97c1['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x4f8b49=this['editor'],_0x5ae043=_0x4f8b49['locale'];_0x4f8b49['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x32d3a0=>{if('formatBlock'!=_0x32d3a0['type']&&'formatInline'!=_0x32d3a0['type'])return;const {data:_0x1b38b4}=_0x32d3a0;if(_0x1b38b4&&'pasteFormat'===_0x1b38b4['commandName']){const _0x1566a4=[],_0x3b4502=_0x1b38b4['commandParams'][0x0];for(const [_0x29ce98,_0x5aa0d2]of Object['entries'](_0x3b4502))_0x1566a4['push'](ro(_0x4f8b49,_0x29ce98,_0x5aa0d2));return _0x1566a4['length']?{'type':'format','content':o(_0x5ae043,'*Set\x20format\x20to:*\x20%0',_0x1566a4['join'](',\x20'))}:{'type':'format','content':o(_0x5ae043,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x6a05d9,_0x247063,_0x19f31e){const _0x525d88=_0x6a05d9['locale']['t'],_0x5867cd=_0x247063['split'](/(?=[A-Z])/)['join']('\x20'),_0x14c016=_0x525d88(_0x5867cd['charAt'](0x0)['toUpperCase']()+_0x5867cd['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x19f31e)return _0x14c016;if('fontColor'===_0x247063||'fontBackgroundColor'===_0x247063){const _0x53d29a=to(_0x6a05d9['config']['get']('fontColor.colors'))['find'](_0x3754f7=>_0x3754f7['model']==_0x19f31e);return _0x14c016+'\x20('+(_0x53d29a?_0x525d88(_0x53d29a['label'])['toLowerCase']():_0x19f31e)+')';}if('fontSize'===_0x247063&&isNaN(parseFloat(_0x19f31e))){const _0x2be1dd=_0x6a05d9['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x6a05d9['config']['get']('fontSize.options'))['find'](_0x4d7cd2=>_0x4d7cd2['model']==_0x19f31e);return _0x14c016+'\x20('+(_0x2be1dd?_0x525d88(_0x2be1dd['title'])['toLowerCase']():_0x19f31e)+')';}return _0x14c016+'\x20('+_0x19f31e+')';}class Z extends _0xa5f689{['_headingOptions'];['afterInit'](){const _0x3a1b19=this['editor'];if(!_0x3a1b19['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x3a1b19['config']['get']('heading.options');const _0xfa9e8d=_0x3a1b19['locale'],_0x122cdc=_0x3a1b19['plugins']['get']('TrackChangesEditing');_0x122cdc['enableDefaultAttributesIntegration']('heading');for(const _0x4933c4 of this['_headingOptions'])'paragraph'!=_0x4933c4['model']&&_0x122cdc['descriptionFactory']['registerElementLabel'](_0x4933c4['model'],_0x3965d6=>{const _0x269407=this['_getHeadingLevel'](_0x4933c4['model']);return null!==_0x269407?_0xba1496(_0x3965d6,_0x269407):_0x40b129(_0x3965d6,_0x4933c4['title']);});function _0xba1496(_0x49bfeb,_0x186bd8){return o(_0xfa9e8d,'ELEMENT_HEADING',[_0x49bfeb,_0x186bd8]);}function _0x40b129(_0x259657,_0xc855a3){return o(_0xfa9e8d,'ELEMENT_HEADING_CUSTOM',[_0x259657,_0xc855a3]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x58ed15=this['editor'],_0x5d7c17=_0x58ed15['locale'];function _0x5ce0e3(_0x3d16f3,_0x26b44a){return o(_0x5d7c17,'ELEMENT_HEADING_CUSTOM',[_0x3d16f3,_0x26b44a]);}_0x58ed15['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x287c86=>{if('formatBlock'!=_0x287c86['type'])return;const {data:_0x3eb75c}=_0x287c86;if(_0x3eb75c&&'heading'==_0x3eb75c['commandName']){const _0x56f955=_0x3eb75c['commandParams'][0x0]['value'],_0x456b02=this['_getHeadingLevel'](_0x56f955);if(null!==_0x456b02)return{'type':'format','content':o(_0x5d7c17,'*Change\x20to:*\x20%0',(_0x22d38d=0x1,_0x32835c=_0x456b02,o(_0x5d7c17,'ELEMENT_HEADING',[_0x22d38d,_0x32835c])))};const _0x24b84b=this['_headingOptions']['find'](_0x616760=>_0x616760['model']===_0x56f955)['title'];return{'type':'format','content':o(_0x5d7c17,'*Change\x20to:*\x20%0',_0x5ce0e3(0x1,_0x24b84b))};}var _0x22d38d,_0x32835c;});}['_getHeadingLevel'](_0x595776){const _0x16c1f4=_0x595776['match'](/^heading(\d+)/);if(_0x16c1f4)return _0x16c1f4[0x1];const _0xe09577=this['_headingOptions']?.['find'](_0x2a16a9=>_0x2a16a9['model']==_0x595776);if(_0xe09577&&_0xe09577['view']){const _0x501b38=_0xe09577['view'],_0x91e090=(_0x501b38['name']??_0x501b38)['match'](/^h(\d+)/);if(_0x91e090)return _0x91e090[0x1];}return null;}}class tt extends _0xa5f689{['afterInit'](){const _0x1c11c5=this['editor'];if(!_0x1c11c5['plugins']['has']('HighlightEditing'))return;const _0x50d79a=_0x1c11c5['plugins']['get']('TrackChangesEditing'),_0x5ee24b=_0x1c11c5['locale'];_0x50d79a['enableDefaultAttributesIntegration']('highlight'),_0x50d79a['registerInlineAttribute']('highlight'),_0x50d79a['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x5ee24b,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2ec086=this['editor'],_0x4f3340=_0x2ec086['locale'];_0x2ec086['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x59a2b1=>{if('formatInline'!=_0x59a2b1['type'])return;const {data:_0x166ad5}=_0x59a2b1;if(_0x166ad5&&'highlight'==_0x166ad5['commandName']){const _0x3841f6=_0x4f3340['t'],_0x964079=_0x166ad5['commandParams'][0x0]['value'];if(_0x964079){const _0x1f8f66=_0x2ec086['config']['get']('highlight.options')['find'](_0x4d222c=>_0x4d222c['model']==_0x964079),_0x598fb9=_0x3841f6(_0x1f8f66['title'])['toLowerCase']();return{'type':'format','content':o(_0x4f3340,'*Set\x20highlight:*\x20%0',_0x598fb9),'color':{'value':_0x1f8f66['color'],'title':_0x1f8f66['title']}};}return{'type':'format','content':o(_0x4f3340,'*Remove\x20highlight*',o(_0x4f3340,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0xa5f689{['afterInit'](){const _0x275adc=this['editor'];if(!_0x275adc['plugins']['has']('HorizontalLineEditing'))return;_0x275adc['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0xb2ab66=_0x275adc['plugins']['get']('TrackChangesEditing'),_0x363570=_0x275adc['locale'];_0xb2ab66['descriptionFactory']['registerElementLabel']('horizontalLine',_0x4fea71=>o(_0x363570,'ELEMENT_HORIZONTAL_LINE',_0x4fea71)),_0x275adc['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x7bdb76,{writer:_0x252955,options:_0x5a4f38})=>{if(!_0x5a4f38['showSuggestionHighlights'])return null;const _0x4ba308=_0x252955['createContainerElement']('div'),_0x4eff3d=_0x252955['createEmptyElement']('hr');return _0x252955['addClass']('ck-horizontal-line',_0x4ba308),_0x252955['insert'](_0x252955['createPositionAt'](_0x4ba308,0x0),_0x4eff3d),_0x4ba308;},'converterPriority':'high'});}}class nt extends _0xa5f689{['afterInit'](){const _0x50816b=this['editor'];if(!_0x50816b['plugins']['has']('HtmlEmbed'))return;const _0x252918=_0x50816b['plugins']['get']('TrackChangesEditing'),_0x4c0f53=_0x50816b['locale'];_0x252918['descriptionFactory']['registerElementLabel']('rawHtml',_0x401b6e=>o(_0x4c0f53,'ELEMENT_HTML_EMBED',_0x401b6e)),_0x252918['enableDefaultAttributesIntegration']('htmlEmbed'),_0x252918['registerBlockAttribute']('value'),_0x252918['descriptionFactory']['registerDescriptionCallback'](_0x1b033d=>{if('attribute'!=_0x1b033d['type'])return;const {data:_0x48c9f4}=_0x1b033d;if(_0x48c9f4&&'value'==_0x48c9f4['key']&&_0x1b033d['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0xb3df5f=o(_0x4c0f53,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4c0f53,'*Change\x20%0\x20content*',_0xb3df5f)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4da5fa=this['editor'],_0x9fe1c=_0x4da5fa['locale'];_0x4da5fa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x414ee7=>{if('formatBlock'!=_0x414ee7['type'])return;const {data:_0x48f89f}=_0x414ee7;if(_0x48f89f&&'htmlEmbed'==_0x48f89f['commandName']){const _0x36630b=o(_0x9fe1c,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x9fe1c,'*Change\x20%0\x20content*',_0x36630b)};}});}}class et extends _0xa5f689{['afterInit'](){const _0xf684d2=this['editor'];if(!_0xf684d2['plugins']['has']('ImageEditing'))return;const _0x13bc70=_0xf684d2['plugins']['get']('TrackChangesEditing'),_0x1d7fca=_0xf684d2['plugins']['get']('ImageUtils'),_0x1d05d6=_0xf684d2['locale'];_0x13bc70['enableCommand']('insertImage'),_0x13bc70['descriptionFactory']['registerElementLabel']('imageBlock',_0x55ca45=>o(_0x1d05d6,'ELEMENT_IMAGE',_0x55ca45)),_0x13bc70['descriptionFactory']['registerElementLabel']('imageInline',_0x36bb24=>o(_0x1d05d6,'ELEMENT_INLINE_IMAGE',_0x36bb24)),_0x13bc70['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x1d05d6,'ELEMENT_CAPTION')),_0xf684d2['plugins']['has']('ImageUploadEditing')&&_0x13bc70['enableCommand']('uploadImage'),_0xf684d2['plugins']['has']('ImageBlockEditing')&&_0xf684d2['plugins']['has']('ImageInlineEditing')&&(_0x13bc70['enableCommand']('imageTypeInline',(_0x13f9a5,_0x4d6167)=>{const _0x429a39=_0x1d7fca['getClosestSelectedImageElement'](_0xf684d2['model']['document']['selection']);_0xf684d2['model']['change'](()=>{_0x13bc70['markBlockFormat'](_0x429a39,{'commandName':'imageTypeInline','commandParams':[_0x4d6167]},[],'convertBlockImageToInline');});}),_0x13bc70['enableCommand']('imageTypeBlock',(_0x3e4d04,_0x129ef5)=>{_0xf684d2['model']['change'](_0x2e15d1=>{let _0x53ca41=_0x1d7fca['getClosestSelectedImageElement'](_0xf684d2['model']['document']['selection']),_0x333b8a=_0x2e15d1['createRangeOn'](_0x53ca41);const _0x33664c=_0x7b77d4['fromPosition'](_0x333b8a['start'],'toPrevious'),_0x3b7346=_0x7b77d4['fromPosition'](_0x333b8a['end'],'toNext');_0x13bc70['forceDefaultExecution'](()=>_0x3e4d04(_0x129ef5)),_0x53ca41=_0x1d7fca['getClosestSelectedImageElement'](_0xf684d2['model']['document']['selection']),_0x333b8a=_0x2e15d1['createRangeOn'](_0x53ca41);const _0x39768d=_0x2e15d1['createRange'](_0x33664c,_0x3b7346);_0x33664c['detach'](),_0x3b7346['detach'](),_0x13bc70['markBlockFormat'](_0x53ca41,{'commandName':'imageTypeInline','commandParams':[_0x129ef5]},[],'convertInlineImageToBlock'),_0x39768d['start']['isBefore'](_0x333b8a['start'])&&_0x13bc70['markInsertion'](_0x2e15d1['createRange'](_0x39768d['start'],_0x333b8a['start']),'convertInlineImageToBlock'),_0x333b8a['end']['isBefore'](_0x39768d['end'])&&_0x13bc70['markInsertion'](_0x2e15d1['createRange'](_0x333b8a['end'],_0x39768d['end']),'convertInlineImageToBlock');});}),_0x13bc70['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x13bc70['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x13bc70['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x13bc70['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x13bc70['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x13bc70['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x1c3093])=>{const _0x503559=_0x13bc70['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x4fbaeb=_0x1c3093['start'],_0x4da658=_0x1c3093['end'];const _0x184e36=_0xf684d2['model']['schema']['getNearestSelectionRange'](_0x4fbaeb,'backward'),_0x47658e=_0xf684d2['model']['schema']['getNearestSelectionRange'](_0x4da658,'forward');_0x184e36['isCollapsed']&&(_0x4fbaeb=_0x184e36['start']),_0x47658e['isCollapsed']&&(_0x4da658=_0x47658e['end']),_0x503559([_0xf684d2['model']['createRange'](_0x4fbaeb,_0x4da658)]);}),_0x13bc70['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0xb6b777),_0x13bc70['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0xb6b777)),_0xf684d2['plugins']['has']('ImageCaptionEditing')&&(_0x13bc70['enableCommand']('toggleImageCaption',(_0x38db45,_0x5ed529)=>{const _0x5ed8be=_0xf684d2['plugins']['get']('ImageCaptionUtils');let _0xb74299=_0x1d7fca['getClosestSelectedImageElement'](_0xf684d2['model']['document']['selection']),_0x2b5081=_0x5ed8be['getCaptionFromImageModelElement'](_0xb74299);_0xf684d2['model']['change'](()=>{if(_0x2b5081)return void _0x13bc70['markDeletion'](_0xf684d2['model']['createRangeOn'](_0x2b5081));const _0x303ed6=_0x1d7fca['isBlockImage'](_0xb74299);_0x38db45(_0x5ed529),_0xb74299=_0x1d7fca['getClosestSelectedImageElement'](_0xf684d2['model']['document']['selection']),_0x2b5081=_0x5ed8be['getCaptionFromImageModelElement'](_0xb74299),_0x13bc70['markInsertion'](_0xf684d2['model']['createRangeOn'](_0x2b5081),_0x303ed6?null:'imageCaption');});}),_0x13bc70['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0xb6b777));const _0x10dff0=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x584968(_0x27263c,_0x8c8d19){const _0x506434=_0x10dff0['findIndex'](({type:_0x51dce4,subType:_0xc831c9})=>_0x27263c['type']==_0x51dce4&&_0x27263c['subType']==_0xc831c9),_0x153753=_0x10dff0['findIndex'](({type:_0x33e66a,subType:_0x4eb9f6})=>_0x8c8d19['type']==_0x33e66a&&_0x8c8d19['subType']==_0x4eb9f6);if(_0x506434<0x0||_0x153753<0x0)return!0x1;const _0x4e7edd=_0x27263c['getFirstRange'](),_0x8e276c=_0x8c8d19['getFirstRange']();if((0x0==_0x506434||0x1==_0x506434)&&0x2==_0x153753&&_0x4e7edd['isIntersecting'](_0x8e276c))return!0x0;if(0x2==_0x506434&&0x3==_0x153753){const _0x1d575b=_0x13bc70['_findSuggestions'](_0x4e7edd,'insertion')['filter'](({suggestion:_0x546e71,meta:_0x43719a})=>_0x43719a['isOwn']&&'convertInlineImageToBlock'==_0x546e71['subType']);if(_0x1d575b['length']>0x1&&_0x8e276c['end']['isEqual'](_0x4e7edd['start']))return!0x0;if(0x1==_0x1d575b['length']&&(_0x4e7edd['start']['isEqual'](_0x8e276c['end'])||_0x4e7edd['end']['isEqual'](_0x8e276c['start'])))return!0x0;}if(0x3==_0x506434&&0x3==_0x153753&&_0x4e7edd['start']['isBefore'](_0x8e276c['start'])){const _0x505ff9=_0x4e7edd['end']['nodeAfter'],_0x2623e6=_0x8e276c['start']['nodeBefore'];return _0x1d7fca['isBlockImage'](_0x505ff9)&&_0x505ff9===_0x2623e6;}return!0x1;}function _0xb6b777(_0x487559,_0x1abedf){return _0x584968(_0x487559,_0x1abedf)?[_0x487559,_0x1abedf]:_0x584968(_0x1abedf,_0x487559)?[_0x1abedf,_0x487559]:null;}_0xf684d2['plugins']['has']('ImageResize')&&(_0x13bc70['enableDefaultAttributesIntegration']('resizeImage'),_0x13bc70['registerBlockAttribute']('resizedWidth'),_0x13bc70['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x1d05d6,'FORMAT_IMAGE_SIZE'))),_0xf684d2['plugins']['has']('ImageTextAlternativeEditing')&&(_0x13bc70['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x13bc70['registerBlockAttribute']('alt')),_0xf684d2['plugins']['has']('PictureEditing')&&(_0x13bc70['registerBlockAttribute']('sources'),_0x13bc70['descriptionFactory']['registerDescriptionCallback'](_0x2967bc=>{if('attribute'!=_0x2967bc['type'])return;const {data:_0x2c9e86}=_0x2967bc;return _0x2c9e86&&'sources'==_0x2c9e86['key']?{'type':'format','content':''}:void 0x0;})),_0xf684d2['plugins']['has']('ImageSizeAttributes')&&(_0x13bc70['registerBlockAttribute']('width'),_0x13bc70['registerBlockAttribute']('height'),_0x13bc70['descriptionFactory']['registerDescriptionCallback'](_0x123382=>{if('attribute'!=_0x123382['type'])return;const {data:_0x11891d}=_0x123382;return!_0x11891d||'width'!=_0x11891d['key']&&'height'!=_0x11891d['key']?void 0x0:{'type':'format','content':''};})),_0x13bc70['descriptionFactory']['registerDescriptionCallback'](_0x5260f3=>{if(!!_0x10dff0['find'](({type:_0x4f4937,subType:_0xf2957e})=>_0x5260f3['type']==_0x4f4937&&_0x5260f3['subType']==_0xf2957e))return _0x5260f3['previous']?{}:void 0x0;}),_0x13bc70['descriptionFactory']['registerDescriptionCallback'](_0x9491ec=>{if('insertion'==_0x9491ec['type']||'deletion'==_0x9491ec['type']){const _0x1afbd3=_0x9491ec['getContainedElement']();if(_0x1afbd3&&_0x1afbd3['is']('element','caption'))return{'type':'insertion'==_0x9491ec['type']?'addObject':'removeObject','element':_0x1afbd3,'quantity':0x1};}}),_0x13bc70['descriptionFactory']['registerDescriptionCallback'](_0x2fa784=>'formatBlock'==_0x2fa784['type']&&'convertInlineImageToBlock'==_0x2fa784['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x2fa784['type']&&'convertBlockImageToInline'==_0x2fa784['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x13bc70['descriptionFactory']['registerDescriptionCallback'](_0x3df5bf=>{if('attribute'!=_0x3df5bf['type'])return;const {data:_0xafadfb}=_0x3df5bf;if(!_0xafadfb||'alt'!=_0xafadfb['key'])return;const _0x1d6c34=_0xafadfb['newValue'];return _0x1d6c34?{'type':'format','content':o(_0x1d05d6,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1d6c34+'\x22')}:{'type':'format','content':o(_0x1d05d6,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x24e6b5=this['editor'],_0x199500=_0x24e6b5['locale'];_0x24e6b5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a7406=>{if('formatBlock'!=_0x1a7406['type']&&'formatInline'!=_0x1a7406['type'])return;const {data:_0x59fa30}=_0x1a7406;if(_0x59fa30){if('imageTextAlternative'==_0x59fa30['commandName']){const _0x172e28=_0x59fa30['commandParams'][0x0]['newValue'];return _0x172e28?{'type':'format','content':o(_0x199500,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x172e28+'\x22')}:{'type':'format','content':o(_0x199500,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x59fa30['commandName']){const _0x166a9a=_0x59fa30['commandParams'][0x0]['width'];return _0x166a9a?{'type':'format','content':o(_0x199500,'*Set\x20image\x20width:*\x20%0',_0x166a9a)}:{'type':'format','content':o(_0x199500,'*Reset\x20image\x20width*')};}}});}}class st extends _0xa5f689{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x1a8f86=this['editor']['locale'],_0x136326=this['editor']['plugins']['get']('TrackChangesEditing');_0x136326['enableDefaultAttributesIntegration']('replaceImageSource'),_0x136326['registerBlockAttribute']('src'),_0x136326['descriptionFactory']['registerDescriptionCallback'](_0x480b8f=>{if('attribute'!=_0x480b8f['type'])return;const {data:_0x21e700}=_0x480b8f;return _0x21e700&&'src'==_0x21e700['key']?_0x21e700['newValue']&&_0x21e700['oldValue']?{'type':'format','content':o(_0x1a8f86,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4947c0=this['editor']['plugins']['get']('TrackChangesEditing');_0x4947c0['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4947c0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4947c0['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4947c0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c1aa3=this['editor'],_0x4df23f=_0x2c1aa3['locale'];_0x2c1aa3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1cea26=>{if('formatBlock'!=_0x1cea26['type']&&'formatInline'!=_0x1cea26['type'])return;const {data:_0x16774d}=_0x1cea26;if(!_0x16774d||'replaceImageSource'!=_0x16774d['commandName'])return;return{'type':'format','content':o(_0x4df23f,'*Format:*\x20replace\x20image\x20URL')};});}}class ot extends _0xa5f689{['afterInit'](){const _0x4f5e4a=this['editor'];if(!_0x4f5e4a['plugins']['has']('ImageStyleEditing'))return;const _0x5bf06a=_0x4f5e4a['plugins']['get']('TrackChangesEditing'),_0x28a2f9=_0x4f5e4a['plugins']['get']('ImageUtils'),_0x2cb2f1={};_0x5bf06a['enableCommand']('imageStyle',(_0x41ce5e,_0x1ed6fb)=>{const _0x4f01fe=_0x4f5e4a['plugins']['get']('Users')['me'],_0x5203a9=_0x4f5e4a['commands']['get']('imageStyle');let _0x3b985f=_0x28a2f9['getClosestSelectedImageElement'](_0x4f5e4a['model']['document']['selection']),_0x8482f8=_0x4f5e4a['model']['createRangeOn'](_0x3b985f),_0x256829=_0x5203a9['value'];if(_0x256829==_0x1ed6fb['value'])return;const _0x1b5571={'commandName':'imageStyle','commandParams':[_0x1ed6fb],'formatGroupId':_0xfc77eb()};_0x4f5e4a['model']['change'](()=>{if(_0x5bf06a['getSuggestions']()['filter'](_0x4542fa=>_0x4542fa['isInContent']&&_0x4f01fe==_0x4542fa['author']&&('formatBlock'==_0x4542fa['type']||'formatInline'==_0x4542fa['type'])&&('imageStylePreApply'==_0x4542fa['subType']||'imageStylePostApply'==_0x4542fa['subType'])&&_0x4542fa['getFirstRange']()['isEqual'](_0x8482f8))['forEach'](_0x16d24f=>_0x5bf06a['discardSuggestion'](_0x16d24f['head'])),_0x3b985f=_0x28a2f9['getClosestSelectedImageElement'](_0x4f5e4a['model']['document']['selection']),_0x8482f8=_0x4f5e4a['model']['createRangeOn'](_0x3b985f),_0x5203a9['refresh'](),_0x4f5e4a['commands']['get']('imageTypeInline')['refresh'](),_0x4f5e4a['commands']['get']('imageTypeBlock')['refresh'](),_0x256829=_0x5203a9['value'],_0x256829!=_0x1ed6fb['value'])return _0x28a2f9['isInlineImage'](_0x3b985f)&&_0x5203a9['shouldConvertImageType'](_0x1ed6fb['value'],_0x3b985f)?(_0x41ce5e({..._0x1ed6fb,'setImageSizes':!0x1}),_0x3b985f=_0x28a2f9['getClosestSelectedImageElement'](_0x4f5e4a['model']['document']['selection']),void _0x5bf06a['markBlockFormat'](_0x3b985f,{..._0x1b5571,'commandReversedParams':[{'value':_0x256829||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x28a2f9['isBlockImage'](_0x3b985f)?_0x5bf06a['markBlockFormat'](_0x3b985f,_0x1b5571,[],'imageStylePostApply'):_0x5bf06a['markInlineFormat'](_0x8482f8,_0x1b5571,'imageStylePostApply'));});});for(const _0x22d7df of _0x4f5e4a['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x2cb2f1[_0x22d7df['name']]=_0x22d7df['title']['toLowerCase']();_0x5bf06a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x5bf06a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x5bf06a['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x5bf06a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x1bf855])=>{_0x28a2f9['setImageNaturalSizeAttributes'](_0x1bf855['getContainedElement']());}),_0x5bf06a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x4705fb,_0x1889ee)=>{_0x5bf06a['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x4705fb,{'commandName':_0x1889ee['commandName'],'commandParams':_0x1889ee['commandReversedParams']});}),_0x5bf06a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x496daf,_0x4b7b61){if(_0x2e01df(_0x496daf,_0x4b7b61))return[_0x496daf,_0x4b7b61];if(_0x2e01df(_0x4b7b61,_0x496daf))return[_0x4b7b61,_0x496daf];return null;});const _0x3ba6c7=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2e01df(_0x38f958,_0x1691b0){const _0x45ee13=_0x3ba6c7['findIndex'](({type:_0x2fc63a,subType:_0x57f7b9})=>_0x38f958['type']==_0x2fc63a&&_0x38f958['subType']==_0x57f7b9),_0x5c311c=_0x3ba6c7['findIndex'](({type:_0x1db4be,subType:_0x3f6027})=>_0x1691b0['type']==_0x1db4be&&_0x1691b0['subType']==_0x3f6027);if(_0x45ee13<0x0||_0x5c311c<0x0)return!0x1;const _0x345a43=_0x38f958['getFirstRange'](),_0x53a14a=_0x1691b0['getFirstRange']();if((0x0==_0x45ee13||0x1==_0x45ee13)&&0x2==_0x5c311c&&_0x345a43['isIntersecting'](_0x53a14a))return!0x0;if(0x2==_0x45ee13&&0x3==_0x5c311c){const _0x5872dc=_0x5bf06a['_findSuggestions'](_0x345a43,'insertion')['filter'](({suggestion:_0x53d320,meta:_0x1d885d})=>_0x1d885d['isOwn']&&'convertInlineImageToBlock'==_0x53d320['subType']);if(_0x5872dc['length']>0x1&&_0x53a14a['end']['isEqual'](_0x345a43['start']))return!0x0;if(0x1==_0x5872dc['length']&&(_0x345a43['start']['isEqual'](_0x53a14a['end'])||_0x345a43['end']['isEqual'](_0x53a14a['start'])))return!0x0;}if(0x3==_0x45ee13&&0x3==_0x5c311c&&_0x345a43['start']['isBefore'](_0x53a14a['start'])){const _0x8d4d06=_0x345a43['end']['nodeAfter'],_0x40f316=_0x53a14a['start']['nodeBefore'];return _0x28a2f9['isBlockImage'](_0x8d4d06)&&_0x8d4d06===_0x40f316;}return!0x1;}_0x4f5e4a['model']['document']['registerPostFixer'](()=>{let _0x11d755=!0x1;const _0x5e8743=Array['from'](_0x4f5e4a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x340077,data:_0x592c7c}of _0x5e8743){const {group:_0x4d6dfe,type:_0x9b4f3e,subType:_0x3187a8,id:_0x28fca5}=_0x5bf06a['_splitMarkerName'](_0x340077);if('suggestion'==_0x4d6dfe&&_0x5bf06a['hasSuggestion'](_0x28fca5)){if('formatBlock'==_0x9b4f3e&&('imageStylePreApply'==_0x3187a8||'imageStylePostApply'==_0x3187a8)){const _0x1caa14=_0x5bf06a['getSuggestion'](_0x28fca5);if(_0x592c7c['newRange']){const _0x4557e6=_0x1caa14['getFirstRange']()['getContainedElement']();if(_0x28a2f9['isBlockImage'](_0x4557e6))continue;_0x5bf06a['discardSuggestion'](_0x1caa14),_0x11d755=!0x0;}}if('insertion'==_0x9b4f3e&&'imageCaption'==_0x3187a8&&!_0x592c7c['newRange']){const _0x442696=_0x5bf06a['getSuggestion'](_0x28fca5);_0x442696['next']&&_0x442696['next']['isInContent']&&(_0x5bf06a['discardSuggestion'](_0x442696['next']),_0x11d755=!0x0);}}}return _0x11d755;}),this['_registerLegacyDescription'](_0x2cb2f1);}['_registerLegacyDescription'](_0x1fa802){const _0x529129=this['editor'],_0x2241f5=_0x529129['locale'];_0x529129['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x307088=>{if('formatBlock'!=_0x307088['type']&&'formatInline'!=_0x307088['type'])return;const {data:_0x51c925}=_0x307088;if(!_0x51c925||'imageStyle'!=_0x51c925['commandName'])return;const _0x5646fb=_0x51c925['commandParams'][0x0]['value'];return _0x7f5642('side'===_0x5646fb?o(_0x2241f5,'FORMAT_SIDE_IMAGE'):_0x1fa802[_0x5646fb]||_0x5646fb);function _0x7f5642(_0x429cbb){return{'type':'format','content':o(_0x2241f5,'*Format:*\x20%0',_0x429cbb)};}});}}class rt extends _0xa5f689{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x35273e){super(_0x35273e),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x21a915=this['editor'],_0x977c58=_0x21a915['commands']['get']('importWord'),_0x166f3b=_0x21a915['commands']['get']('trackChanges');_0x977c58&&(_0x977c58['on']('execute',(_0x213e46,[,_0x49d9ed])=>{this['_trackChangesValueDuringImport']=_0x166f3b['value'],_0x49d9ed['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x977c58,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x977c58,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x166f3b['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x21a915['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x20a723,_0x57022f){const {suggestions:_0x42eb0d}=_0x57022f,_0x3f2e8e=this['editor']['commands']['get']('trackChanges'),_0x2dbc11=_0x3f2e8e['value'];this['_trackChangesValueDuringImport']!==_0x2dbc11&&(_0x3f2e8e['execute'](),this['_trackChangesExecuted']=!0x0),_0x42eb0d&&_0x42eb0d['forEach'](({id:_0x5d24ff,type:_0x52fe16,author:_0x1c16e2,created_at:_0xb4d9f6})=>{const _0x42c17d={'id':_0x5d24ff,'type':_0x52fe16,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x1c16e2,'createdAt':_0xb4d9f6?new Date(_0xb4d9f6):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x42c17d);});}}class at extends _0xa5f689{['afterInit'](){const _0x17c877=this['editor'],_0xd3574d=_0x17c877['plugins']['get']('TrackChangesEditing');if(_0x17c877['plugins']['has']('IndentEditing')&&(_0xd3574d['enableCommand']('indent'),_0xd3574d['enableCommand']('outdent')),_0x17c877['plugins']['has']('IndentBlock')){for(const _0x4c4b11 of['indentBlock','outdentBlock'])_0xd3574d['enableDefaultAttributesIntegration'](_0x4c4b11);}const _0x4c8d66=_0x17c877['locale'];_0xd3574d['registerBlockAttribute']('blockIndent'),_0xd3574d['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x4c8d66,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x563730=this['editor'],_0x18791d=_0x563730['locale'],_0x5b5179=_0x563730['plugins']['get']('TrackChangesEditing');_0x5b5179['descriptionFactory']['registerDescriptionCallback'](_0x226606=>{if('formatBlock'!=_0x226606['type'])return;const {data:_0x445633}=_0x226606;if(!_0x445633)return;if('indentBlock'!=_0x445633['commandName']&&'outdentBlock'!=_0x445633['commandName'])return;const _0x28f706=_0x226606['getItems']()[0x0],_0x5b9a26=_0x5b5179['descriptionFactory']['getItemLabel'](_0x28f706);return'indentBlock'==_0x445633['commandName']?{'type':'format','content':o(_0x18791d,'*Indent:*\x20%0',_0x5b9a26)}:'outdentBlock'==_0x445633['commandName']?{'type':'format','content':o(_0x18791d,'*Outdent:*\x20%0',_0x5b9a26)}:void 0x0;});}}class ct extends _0xa5f689{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ut extends _0xa5f689{['afterInit'](){const _0x53e019=this['editor'];if(!_0x53e019['plugins']['has']('LinkEditing'))return;const _0x1eaa0b=_0x53e019['plugins']['get']('TrackChangesEditing'),_0xd0bcb9=_0x53e019['commands']['get']('link');_0x1eaa0b['enableDefaultAttributesIntegration']('link'),_0x1eaa0b['enableDefaultAttributesIntegration']('unlink'),_0x1eaa0b['registerInlineAttribute']('linkHref');for(const _0x279361 of _0xd0bcb9['manualDecorators'])_0x1eaa0b['registerInlineAttribute'](_0x279361['id']),_0x1eaa0b['descriptionFactory']['registerAttributeLabel'](_0x279361['id'],'link\x20('+_0x279361['label']['toLowerCase']()+')');_0x1eaa0b['descriptionFactory']['registerDescriptionCallback'](_0xa3b7df=>{if('attribute'!=_0xa3b7df['type'])return;const {data:_0x2b2f70}=_0xa3b7df;if(!_0x2b2f70||'linkHref'!=_0x2b2f70['key'])return;const _0x1d61c3=_0x2b2f70['newValue'],_0x52a562=_0x53e019['locale'];return{'type':'format','content':null==_0x1d61c3?o(_0x52a562,'*Remove\x20link*'):o(_0x52a562,'*Set\x20link:*\x20%0','\x22'+_0x1d61c3+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1088a6=this['editor'],_0x1f36bf=_0x1088a6['locale'];_0x1088a6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x123548=>{if('formatInline'!=_0x123548['type'])return;const {data:_0x8cb34e}=_0x123548;if(_0x8cb34e){if('link'==_0x8cb34e['commandName']){const _0x10684f=_0x8cb34e['commandParams'][0x0];return{'type':'format','content':o(_0x1f36bf,'*Set\x20link:*\x20%0','\x22'+_0x10684f+'\x22')};}return'unlink'==_0x8cb34e['commandName']?{'type':'format','content':o(_0x1f36bf,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0xa5f689{['afterInit'](){const _0x4162dd=this['editor'],_0x54017a=_0x4162dd['locale'];if(!_0x4162dd['plugins']['has']('LegacyListEditing'))return;const _0x1a2e9b=_0x4162dd['plugins']['get']('TrackChangesEditing'),_0x2bdb37=_0x4162dd['plugins']['has']('LegacyTodoListEditing');function _0x1674e8(_0x4eec55){return()=>{const _0x2ad7d3=_0x4162dd['model']['document']['selection'],_0x4d6ff7=_0x4162dd['commands']['get'](_0x4eec55);if(_0x4d6ff7['value'])return void _0x4162dd['execute']('paragraph',{});const _0x325f19=_0x4eec55['slice'](0x0,-0x4),_0x274e10=function(_0x34d32a,_0x46fe06,_0x1092f4){let _0x4c3d27=Array['from'](_0x34d32a)['filter'](_0x9e5251=>function(_0x108318,_0x466eb2){return _0x466eb2['checkChild'](_0x108318['parent'],'listItem')&&!_0x466eb2['isObject'](_0x108318);}(_0x9e5251,_0x1092f4));_0x4c3d27=_0x4c3d27['filter'](_0xdca30d=>!_0xdca30d['is']('element','listItem')||_0xdca30d['getAttribute']('listType')!=_0x46fe06);const _0x396b55=new Set();for(const _0x44e8d2 of _0x4c3d27)_0x44e8d2['is']('element','listItem')?_0x396b55['add'](Le(_0x44e8d2)):_0x396b55['add'](_0x44e8d2);return Array['from'](_0x396b55);}(_0x2ad7d3['getSelectedBlocks'](),_0x325f19,_0x4162dd['model']['schema']);_0x4162dd['model']['change'](()=>{for(const _0x595644 of _0x274e10)_0x1a2e9b['markBlockFormat'](_0x595644,{'commandName':_0x4eec55,'commandParams':[{'forceValue':!_0x4d6ff7['value']}],'formatGroupId':'blockName'},Ee(_0x595644));});};}function _0x16e064(_0x5ec1b1){return()=>{const _0xa322f9=function(_0xe37bfe){let _0x43c7a4=Array['from'](_0xe37bfe);const _0x559744=_0x43c7a4['findIndex'](_0x552b9d=>'listItem'!=_0x552b9d['name']);return _0x559744>-0x1&&(_0x43c7a4=_0x43c7a4['slice'](0x0,_0x559744)),_0x43c7a4;}(_0x4162dd['model']['document']['selection']['getSelectedBlocks']()),_0x1b5058=_0x4162dd['model']['createRange'](_0x4162dd['model']['createPositionAt'](_0xa322f9[0x0],'before'),_0x4162dd['model']['createPositionAt'](_0xa322f9[_0xa322f9['length']-0x1],'end'));_0x4162dd['model']['change'](()=>{_0x1a2e9b['markBlockFormat'](_0x1b5058,{'commandName':_0x5ec1b1,'commandParams':[],'formatGroupId':'listIndent'},function(_0x771a3a){const _0xa54002=new Set();for(const _0x264ef3 of _0x771a3a){let _0x2299b8=_0x264ef3['nextSibling'];for(;_0x2299b8&&_0x2299b8['getAttribute']('listIndent')>_0x264ef3['getAttribute']('listIndent');)_0xa54002['add'](_0x2299b8),_0x2299b8=_0x2299b8['nextSibling'];}return Array['from'](_0xa54002);}(_0xa322f9));});};}_0x1a2e9b['enableCommand']('numberedList',_0x1674e8('numberedList')),_0x1a2e9b['enableCommand']('bulletedList',_0x1674e8('bulletedList')),_0x2bdb37&&_0x1a2e9b['enableCommand']('todoList',_0x1674e8('todoList')),_0x1a2e9b['enableCommand']('indentList',_0x16e064('indentList')),_0x1a2e9b['enableCommand']('outdentList',_0x16e064('outdentList')),_0x2bdb37&&_0x1a2e9b['enableCommand']('checkTodoList',()=>{const _0x128236=_0x4162dd['commands']['get']('checkTodoList'),_0x299b35=Array['from'](_0x128236['_selectedElements']);_0x299b35['filter'](_0x47be5b=>_0x47be5b['getAttribute']('todoListChecked')!=_0x128236['value']),_0x4162dd['model']['change'](()=>{for(const _0x278ac3 of _0x299b35)_0x1a2e9b['markBlockFormat'](_0x278ac3,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x128236['value']}]});});}),_0x1a2e9b['descriptionFactory']['registerElementLabel']('listItem',_0x47a0c8=>o(_0x54017a,'ELEMENT_LIST_ITEM',_0x47a0c8)),_0x1a2e9b['descriptionFactory']['registerDescriptionCallback'](_0x42d4af=>{if('formatBlock'!=_0x42d4af['type']&&'formatInline'!=_0x42d4af['type'])return;const {data:_0xa93c19}=_0x42d4af;if(_0xa93c19){if('numberedList'==_0xa93c19['commandName']||'bulletedList'==_0xa93c19['commandName']||'todoList'==_0xa93c19['commandName'])switch(_0xa93c19['commandName']['replace']('List','')){case'bulleted':return _0x3f801f(o(_0x54017a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3f801f(o(_0x54017a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3f801f(o(_0x54017a,'ELEMENT_TODO_LIST'));}if('indentList'==_0xa93c19['commandName'])return{'type':'format','content':o(_0x54017a,'*Indent:*\x20%0',o(_0x54017a,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0xa93c19['commandName'])return{'type':'format','content':o(_0x54017a,'*Outdent:*\x20%0',o(_0x54017a,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0xa93c19['commandName'])return _0xa93c19['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x54017a,'*Check\x20item*')}:{'type':'format','content':o(_0x54017a,'*Uncheck\x20item*')};}function _0x3f801f(_0x4e1fca){return{'type':'format','content':o(_0x54017a,'*Change\x20to:*\x20%0',_0x4e1fca)};}});}}function Le(_0x165a97){const _0x3b2335=_0x165a97['getAttribute']('listIndent');if(0x0==_0x3b2335)return _0x165a97;let _0x35eb0c=_0x165a97;for(;_0x165a97['previousSibling']&&_0x165a97['previousSibling']['is']('element','listItem');){const _0x8bcc0c=_0x165a97['previousSibling']['getAttribute']('listIndent');if(_0x8bcc0c==_0x3b2335)_0x35eb0c=_0x165a97['previousSibling'];else{if(_0x8bcc0c<_0x3b2335)break;}_0x165a97=_0x165a97['previousSibling'];}return _0x35eb0c;}function Ee(_0x336212){const _0x14b14c=[];if(_0x336212['is']('element','listItem')&&_0x336212['getAttribute']('listIndent')>0x0){let _0x22bea2=_0x336212['nextSibling'];for(;_0x22bea2&&'listItem'==_0x22bea2['name']&&_0x22bea2['getAttribute']('listIndent')==_0x336212['getAttribute']('listIndent');)_0x14b14c['push'](_0x22bea2),_0x22bea2=_0x22bea2['nextSibling'];}return _0x14b14c;}class ht extends _0xa5f689{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x574c8a=this['editor']['config']['get']('list.properties'),_0xf84ea3=this['editor']['plugins']['get']('TrackChangesEditing');_0x574c8a['styles']&&_0xf84ea3['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x574c8a['reversed']&&_0xf84ea3['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x574c8a['startIndex']&&_0xf84ea3['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0xf84ea3['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x35a98f,_0x44aa28={}){const _0x52d85c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x555416=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x52d85c['markMultiRangeBlockFormat'](_0x555416,{'commandName':'listStyle','commandParams':[{'type':_0x44aa28['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x240a9d,_0x4f2429={}){const _0x369ae9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2d05bd=this['_getSuggestionBlocks'](_0x4e23ff=>_0x4e23ff['is']('element','listItem')&&'numbered'===_0x4e23ff['getAttribute']('listType'));if(_0x2d05bd['length']<0x1)return;const _0x4ff1a2=_0x2d05bd['map'](_0x22acf0=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x22acf0,'before'),this['editor']['model']['createPositionAt'](_0x22acf0,0x0)));this['editor']['model']['change'](()=>{_0x369ae9['markMultiRangeBlockFormat'](_0x4ff1a2,{'commandName':'listReversed','commandParams':[{'reversed':_0x4f2429['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x19b4a7,_0x93759={}){const _0x4070a4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x511a35=this['_getSuggestionBlocks'](_0x37a703=>_0x37a703['is']('element','listItem')&&'numbered'===_0x37a703['getAttribute']('listType'));if(_0x511a35['length']<0x1)return;const _0x66252=_0x511a35['map'](_0x57e555=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x57e555,'before'),this['editor']['model']['createPositionAt'](_0x57e555,0x0)));this['editor']['model']['change'](()=>{_0x4070a4['markMultiRangeBlockFormat'](_0x66252,{'commandName':'listStart','commandParams':[{'startIndex':_0x93759['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0xf82f07){if('formatBlock'!=_0xf82f07['type']&&'formatInline'!=_0xf82f07['type'])return;const _0x23cc5b=this['editor']['locale'],{data:_0x51ec7a}=_0xf82f07;if(!_0x51ec7a)return;let _0x55e514,_0x264c9d;switch(_0x51ec7a['commandName']){case'listStyle':_0x55e514='*Change\x20to:*\x20%0',_0x264c9d={'type':'format','content':o(_0x23cc5b,_0x55e514,o(_0x23cc5b,this['_getTranslationKeyForListStyle'](_0x51ec7a['commandParams'][0x0]['type'])))};break;case'listReversed':_0x55e514=_0x51ec7a['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x264c9d={'type':'format','content':o(_0x23cc5b,_0x55e514)};break;case'listStart':_0x55e514='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x264c9d={'type':'format','content':o(_0x23cc5b,_0x55e514,_0x51ec7a['commandParams'][0x0]['startIndex'])};}return _0x264c9d;}['_getSuggestionBlocksForListStyle'](){const _0x9d2b=this['editor']['plugins']['get']('LegacyListUtils');let _0x3eb250=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x3eb250[0x0]?.['is']('element','listItem')&&_0x3eb250['unshift'](..._0x9d2b['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x3eb250[_0x3eb250['length']-0x1]?.['is']('element','listItem')&&_0x3eb250['push'](..._0x9d2b['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x3eb250=[...new Set(_0x3eb250)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x3eb250=_0x3eb250['filter'](_0x2f8c0b=>_0x2f8c0b['is']('element','listItem'))),_0x3eb250;}['_getSuggestionBlocks'](_0x4e432b){const _0x5149c9=this['editor']['plugins']['get']('LegacyListUtils');let _0x486a8d=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x4e432b)['map'](_0x3e9dff=>{const _0x4c27e7=this['editor']['model']['createPositionAt'](_0x3e9dff,0x0);return[..._0x5149c9['getSiblingNodes'](_0x4c27e7,'backward'),..._0x5149c9['getSiblingNodes'](_0x4c27e7,'forward')];})['flat']();return _0x486a8d=[...new Set(_0x486a8d)],_0x486a8d;}['_getTranslationKeyForListStyle'](_0x41ef58){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x41ef58)||'default')['toUpperCase']()+'_LIST_'+_0x41ef58['toUpperCase']()['replace'](/-/g,'_');}}class gt extends _0xa5f689{['afterInit'](){const _0x1f7356=this['editor'];if(!_0x1f7356['plugins']['has']('MediaEmbedEditing'))return;const _0xa3253b=_0x1f7356['plugins']['get']('TrackChangesEditing'),_0x1fcbc6=_0x1f7356['locale'];_0xa3253b['enableCommand']('mediaEmbed'),_0xa3253b['descriptionFactory']['registerElementLabel']('media',_0x54277c=>o(_0x1fcbc6,'ELEMENT_MEDIA',_0x54277c)),_0x1f7356['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x55a0b4,{writer:_0x33bcbd,options:_0x3bfff2})=>{if(_0x3bfff2['showSuggestionHighlights'])return _0x33bcbd['createEmptyElement']('div');},'converterPriority':'high'}),_0x1f7356['data']['downcastDispatcher']['on']('attribute:url:media',(_0x5b81b6,_0x3d8433,_0x59ae47)=>{_0x59ae47['options']['showSuggestionHighlights']&&_0x5b81b6['stop']();},{'priority':'high'});}}class lt extends _0xa5f689{['afterInit'](){const _0x1b7d17=this['editor'];_0x1b7d17['plugins']['has']('MentionEditing')&&_0x1b7d17['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0xa5f689{['afterInit'](){const _0x351b77=this['editor'];if(!_0x351b77['plugins']['has']('MergeFieldsEditing'))return;const _0x5dbbe3=_0x351b77['plugins']['get']('TrackChangesEditing'),_0x509e62=_0x351b77['locale'];_0x5dbbe3['enableCommand']('insertMergeField'),_0x5dbbe3['enableCommand']('insertMergeFieldBlock'),_0x5dbbe3['enableCommand']('insertMergeFieldImage'),_0x5dbbe3['descriptionFactory']['registerElementLabel']('mergeField',_0x4f3c35=>o(_0x509e62,'ELEMENT_MERGE_FIELD',_0x4f3c35)),_0x5dbbe3['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x526dc5=>o(_0x509e62,'ELEMENT_MERGE_FIELD',_0x526dc5)),_0x5dbbe3['descriptionFactory']['registerDescriptionCallback'](_0x3df108=>{if('insertion'!=_0x3df108['type']&&'deletion'!=_0x3df108['type'])return;const _0x137b72=_0x3df108['getContainedElement']();if(null==_0x137b72)return;const _0x26f553=_0x351b77['plugins']['get']('MergeFieldsEditing');let _0x3cb8da;switch(_0x26f553['getMergeFieldType'](_0x137b72)){case null:return;case'image':{const _0x52e782=_0x26f553['unwrapAffixes'](_0x137b72['getAttribute']('src'));_0x3cb8da=_0x26f553['getLabel'](_0x52e782)||_0x52e782;break;}default:{const _0x4fdeef=_0x137b72['getAttribute']('id');_0x3cb8da=_0x26f553['getLabel'](_0x4fdeef)||_0x4fdeef;break;}}return'insertion'==_0x3df108['type']?{'type':'insertion','content':o(_0x509e62,'*Insert:*\x20%0','\x22'+_0x3cb8da+'\x22\x20'+o(_0x509e62,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x509e62,'*Remove:*\x20%0','\x22'+_0x3cb8da+'\x22\x20'+o(_0x509e62,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0xa5f689{['afterInit'](){const _0x2a2011=this['editor'],_0x95d7fe=_0x2a2011['plugins']['get']('TrackChangesEditing');_0x2a2011['plugins']['has']('MultiLevelList')&&(_0x95d7fe['enableDefaultAttributesIntegration']('multiLevelList'),_0x95d7fe['registerBlockAttribute']('listMarkerStyle'),_0x95d7fe['descriptionFactory']['registerDescriptionCallback'](_0x4ee7b9=>this['handleDescriptions'](_0x4ee7b9)));}['handleDescriptions'](_0x3fe60c){const _0x36b371=this['editor']['locale'],{data:_0x296233}=_0x3fe60c,_0x2c4f79={'type':'format','content':''};if(_0x296233&&'listMarkerStyle'==_0x296233['key']){if(!_0x296233['oldValue'])return{'type':'format','content':o(_0x36b371,'*Set\x20format:*\x20%0',o(_0x36b371,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x296233['newValue']+')'};if(!_0x296233['newValue']){let _0x515ef9=_0x3fe60c['head'];for(;_0x515ef9;){if(_0x515ef9['data']&&'listType'==_0x515ef9['data']['key']&&_0x515ef9['data']['newValue'])return _0x2c4f79;_0x515ef9=_0x515ef9['next'];}return{'type':'format','content':o(_0x36b371,'*Remove\x20format:*\x20%0',o(_0x36b371,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x296233['oldValue']+')'};}}}}class pt extends _0xa5f689{['afterInit'](){const _0x47d52f=this['editor'];if(!_0x47d52f['plugins']['has']('PageBreakEditing'))return;_0x47d52f['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x284133=_0x47d52f['plugins']['get']('TrackChangesEditing'),_0x5ddfa1=_0x47d52f['locale'];_0x284133['descriptionFactory']['registerElementLabel']('pageBreak',_0x38fd33=>o(_0x5ddfa1,'ELEMENT_PAGE_BREAK',_0x38fd33));}}class kt extends _0xa5f689{['afterInit'](){const _0x1d397e=this['editor'];if(!_0x1d397e['plugins']['has']('Paragraph'))return;const _0x14846c=_0x1d397e['locale'],_0x2a628d=_0x1d397e['plugins']['get']('TrackChangesEditing');_0x2a628d['descriptionFactory']['registerElementLabel']('paragraph',_0x2386e5=>o(_0x14846c,'ELEMENT_PARAGRAPH',_0x2386e5)),_0x2a628d['enableDefaultAttributesIntegration']('paragraph'),_0x2a628d['enableCommand']('insertParagraph'),_0x1d397e['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x1d397e),{'priority':'highest'}),_0x1d397e['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1bdbe5,_0x31acda,_0x397db2)=>{_0x397db2['options']['showSuggestionHighlights']&&nr(_0x1d397e,{'showActiveMarker':!0x1})(_0x1bdbe5,_0x31acda,_0x397db2);},{'priority':'highest'});const _0x5e84d2=_0x2a628d['descriptionFactory'];_0x5e84d2['registerDescriptionCallback'](_0x278e61=>{if('insertion'!==_0x278e61['type'])return;const {start:_0x42f86a,end:_0x1265d9}=_0x278e61['getFirstRange']();if(!_0x42f86a['isTouching'](_0x1265d9)||!_0x42f86a['nodeAfter'])return;const _0x50766d=_0x1d397e['model']['schema'],_0x2441f7=_0x42f86a['nodeAfter'];return _0x50766d['isBlock'](_0x2441f7)&&!_0x50766d['isLimit'](_0x2441f7)&&_0x50766d['checkChild'](_0x2441f7,'$text')?{'type':'insertion','content':o(_0x14846c,'*Insert:*\x20%0',_0x5e84d2['getItemLabel'](_0x2441f7,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x37f505=this['editor'],_0x43b1da=_0x37f505['locale'];_0x37f505['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x447c64=>{if('formatBlock'!=_0x447c64['type'])return;const {data:_0x196c33}=_0x447c64;return _0x196c33&&'paragraph'==_0x196c33['commandName']?{'type':'format','content':o(_0x43b1da,'*Change\x20to:*\x20%0',o(_0x43b1da,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x26dc30,{showActiveMarker:_0x227013=!0x0}={}){return(_0x1fe911,_0x56bc05,_0x322fde)=>{const _0x326171=_0x26dc30['plugins']['get']('TrackChangesEditing'),_0x303677=_0x56bc05['markerRange']['start'],_0x49a109=_0x56bc05['markerRange']['end'],_0x526ba7=_0x26dc30['model']['schema'];if(!_0x303677['isTouching'](_0x49a109)||!_0x303677['nodeAfter'])return;const _0x537a0c=_0x303677['nodeAfter'];if(_0x526ba7['isBlock'](_0x537a0c)&&!_0x526ba7['isLimit'](_0x537a0c)&&_0x526ba7['checkChild'](_0x537a0c,'$text')){if(!_0x322fde['consumable']['consume'](_0x56bc05['markerRange'],_0x1fe911['name']))return;const {id:_0x1ed908,authorId:_0x3dfe40}=_0x326171['_splitMarkerName'](_0x56bc05['markerName']),_0x5da5da=_0x322fde['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x1ed908,'data-author-id':_0x3dfe40}),_0x551ee6=_0x322fde['mapper']['toViewPosition'](_0x49a109);_0x227013&&_0x326171['activeMarkers']['includes'](_0x56bc05['markerName'])&&_0x322fde['writer']['addClass']('ck-suggestion-marker--active',_0x5da5da),_0x322fde['writer']['insert'](_0x551ee6,_0x5da5da),_0x322fde['mapper']['bindElementToMarker'](_0x5da5da,_0x56bc05['markerName']);}};}class wt extends _0xa5f689{['afterInit'](){const _0x4d876b=this['editor'];_0x4d876b['commands']['get']('replaceSource')&&_0x4d876b['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class bt extends _0xa5f689{['afterInit'](){const _0x43252a=this['editor'];if(!_0x43252a['plugins']['has']('RemoveFormatEditing'))return;_0x43252a['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4a5d94=this['editor'];_0x4a5d94['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1c9dc6=>{if('formatBlock'!=_0x1c9dc6['type']&&'formatInline'!=_0x1c9dc6['type'])return;const {data:_0x23157c}=_0x1c9dc6;return _0x23157c&&'removeFormat'==_0x23157c['commandName']?{'type':'format','content':o(_0x4a5d94['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0xa5f689{['afterInit'](){const _0x5357a3=this['editor'];if(!_0x5357a3['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x43086e=_0x5357a3['plugins']['get']('TrackChangesEditing');_0x43086e['enableCommand']('goToPreviousRestrictedEditingException'),_0x43086e['enableCommand']('goToNextRestrictedEditingException');const _0x431d76=_0x5357a3['plugins']['get']('RestrictedEditingModeEditing');_0x431d76['enableCommand']('trackChanges'),_0x431d76['enableCommand']('acceptSuggestion'),_0x431d76['enableCommand']('discardSuggestion'),_0x431d76['enableCommand']('acceptAllSuggestions'),_0x431d76['enableCommand']('discardAllSuggestions'),_0x431d76['enableCommand']('acceptSelectedSuggestions'),_0x431d76['enableCommand']('discardSelectedSuggestions');}}class St extends _0xa5f689{['afterInit'](){const _0x95bfae=this['editor'];if(!_0x95bfae['plugins']['has']('ShiftEnter'))return;const _0x3ae514=_0x95bfae['plugins']['get']('TrackChangesEditing');_0x3ae514['enableCommand']('shiftEnter'),_0x95bfae['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x95bfae),{'priority':'high'}),_0x95bfae['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x95bfae),{'priority':'high'}),_0x95bfae['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x349fc0,_0x348d74,_0x5c4f6f)=>{_0x5c4f6f['options']['showSuggestionHighlights']&&je(_0x95bfae,{'showActiveMarker':!0x1})(_0x349fc0,_0x348d74,_0x5c4f6f);}),_0x3ae514['descriptionFactory']['registerElementLabel']('softBreak',_0x557c3e=>o(_0x95bfae['locale'],'ELEMENT_LINE_BREAK',_0x557c3e));}}function je(_0x378558,{showActiveMarker:_0xe862bb=!0x0}={}){return(_0x534f9b,_0x48e78a,_0x530cbb)=>{const _0x193ab6=_0x378558['plugins']['get']('TrackChangesEditing');if(!_0x530cbb['consumable']['test'](_0x48e78a['markerRange'],_0x534f9b['name']))return;const _0x369ee2=_0x378558['model'];for(const _0x2367b1 of _0x48e78a['markerRange']['getItems']()){if(!_0x2367b1['is']('element','softBreak'))continue;const _0x243dbe='deletion'==_0x48e78a['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x2aa5b5,authorId:_0x1051c5}=_0x193ab6['_splitMarkerName'](_0x48e78a['markerName']),_0x5233ed=_0x530cbb['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x243dbe,'data-suggestion':_0x2aa5b5,'data-author-id':_0x1051c5}),_0x21e8b6=_0x530cbb['mapper']['toViewPosition'](_0x369ee2['createPositionBefore'](_0x2367b1));_0xe862bb&&_0x193ab6['activeMarkers']['includes'](_0x48e78a['markerName'])&&_0x530cbb['writer']['addClass']('ck-suggestion-marker--active',_0x5233ed),_0x530cbb['writer']['insert'](_0x21e8b6,_0x5233ed),_0x530cbb['mapper']['bindElementToMarker'](_0x5233ed,_0x48e78a['markerName']);}};}class jt extends _0xa5f689{['afterInit'](){const _0x256790=this['editor'],_0x4ddb4e=_0x256790['model'],_0x536e5b=_0x256790['locale'];if(!_0x256790['plugins']['has']('StandardEditingModeEditing'))return;const _0x3ec4e3=_0x256790['plugins']['get']('TrackChangesEditing'),_0x12fccd='restrictedEditingException',_0x6a0f11=_0x256790['commands']['get'](_0x12fccd);_0x3ec4e3['enableCommand'](_0x12fccd,(_0x347e7f,_0x343675={})=>{const _0x5b96da=_0x4ddb4e['document']['selection'];if(_0x5b96da['isCollapsed'])return void _0x347e7f(_0x343675);const _0x49a1e2=void 0x0!==_0x343675['forceValue']?_0x343675['forceValue']:!_0x6a0f11['value'];_0x4ddb4e['change'](()=>{const _0x5af114=Array['from'](_0x5b96da['getRanges']());for(const _0x415655 of _0x5af114){const _0x1b2975=_0x49a1e2?[_0x415655]:io(_0x12fccd,_0x415655,_0x4ddb4e);for(const _0x1f56ba of _0x1b2975)_0x3ec4e3['markInlineFormat'](_0x1f56ba,{'commandName':_0x12fccd,'commandParams':[{'forceValue':_0x49a1e2}]});}});}),_0x3ec4e3['descriptionFactory']['registerDescriptionCallback'](_0xb9e6c9=>{if('formatBlock'!=_0xb9e6c9['type']&&'formatInline'!=_0xb9e6c9['type'])return;const {data:_0x547bcf}=_0xb9e6c9;return _0x547bcf&&_0x547bcf['commandName']==_0x12fccd?_0x547bcf['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x536e5b,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x536e5b,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0xa5f689{['afterInit'](){const _0xb98b19=this['editor'];if(!_0xb98b19['plugins']['has']('Style')||!_0xb98b19['plugins']['has']('DataSchema'))return;const _0x1dd4b4=_0xb98b19['plugins']['get']('TrackChangesEditing'),_0x420662=_0xb98b19['locale'],_0x479742=_0xb98b19['config']['get']('style')||{},_0x34f85a=_0xb98b19['plugins']['get']('GeneralHtmlSupport'),_0x1e481b=_0xb98b19['plugins']['get']('StyleUtils')['normalizeConfig'](_0xb98b19['plugins']['get']('DataSchema'),_0x479742['definitions']);_0x1dd4b4['enableDefaultAttributesIntegration']('style');const _0x41ed79=new Set();for(const _0x1692f1 of _0x1e481b['block']){const _0x3cfbc6=_0x34f85a['getGhsAttributeNameForElement'](_0x1692f1['element']);_0x41ed79['add'](_0x3cfbc6);}const _0x19b6d4=new Set();for(const _0x43d586 of _0x1e481b['inline']){const _0x5cee1a=_0x34f85a['getGhsAttributeNameForElement'](_0x43d586['element']);_0x19b6d4['add'](_0x5cee1a);for(const _0x4ccda5 of _0x43d586['ghsAttributes'])_0x19b6d4['add'](_0x4ccda5);}for(const _0x497f71 of _0x41ed79)_0x1dd4b4['registerBlockAttribute'](_0x497f71),_0x1dd4b4['descriptionFactory']['registerAttributeLabel'](_0x497f71,o(_0x420662,'FORMAT_STYLE'));for(const _0x48a389 of _0x19b6d4)_0x1dd4b4['registerInlineAttribute'](_0x48a389),_0x1dd4b4['descriptionFactory']['registerAttributeLabel'](_0x48a389,o(_0x420662,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d6b80=this['editor'],_0x31a5a0=_0x4d6b80['locale'];_0x4d6b80['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x11b2c9=>{if('formatBlock'!=_0x11b2c9['type']&&'formatInline'!=_0x11b2c9['type'])return;const {data:_0x13e770}=_0x11b2c9;return _0x13e770&&'style'===_0x13e770['commandName']?_0x13e770['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x31a5a0,'*Set\x20format:*\x20%0',_0x13e770['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x31a5a0,'*Remove\x20format:*\x20%0',_0x13e770['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class At extends _0xa5f689{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x3f0e0f){super(_0x3f0e0f),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x1616b8=this['editor'],_0x34c404=_0x1616b8['model']['document']['selection'];if(!_0x1616b8['plugins']['has']('TableEditing'))return;const _0x1353b0=_0x1616b8['locale'],_0x26735b=_0x1616b8['plugins']['get']('TrackChangesEditing'),_0x27af34=_0x1616b8['plugins']['get']('TableUtils');_0x26735b['descriptionFactory']['registerElementLabel']('table',_0x23cb02=>o(_0x1353b0,'ELEMENT_TABLE',_0x23cb02)),this['_setupColumnsRowsFixing'](),_0x26735b['enableCommand']('insertTable'),_0x26735b['enableCommand']('selectTableRow'),_0x26735b['enableCommand']('selectTableColumn');for(const _0x4067ad of['insertTableRowAbove','insertTableRowBelow']){const _0x12b1aa=_0x1616b8['commands']['get'](_0x4067ad);_0x26735b['enableCommand'](_0x4067ad,_0x2b7fc0=>{_0x1616b8['model']['change'](_0x47d33b=>{_0x2b7fc0();const _0x5df29c='above'===_0x12b1aa['order'],_0x375b2d=_0x27af34['getSelectionAffectedTableCells'](_0x34c404),_0x1b098c=_0x27af34['getRowIndexes'](_0x375b2d),_0x39ba23=_0x5df29c?_0x1b098c['first']-0x1:_0x1b098c['last']+0x1,_0x1ff52e=_0x375b2d[0x0]['findAncestor']('table'),_0x42d0b1=_0x27af34['createTableWalker'](_0x1ff52e,{'startRow':_0x39ba23,'endRow':_0x39ba23}),_0x4372d1=Array['from'](_0x42d0b1)['map'](_0xec3d1c=>_0x47d33b['createRangeOn'](_0xec3d1c['cell']));_0x26735b['markMultiRangeInsertion'](_0x4372d1,'tableRow');});});}for(const _0x41b6d8 of['insertTableColumnLeft','insertTableColumnRight']){const _0x4dc7ae=_0x1616b8['commands']['get'](_0x41b6d8);_0x26735b['enableCommand'](_0x41b6d8,_0x2b2f33=>{_0x1616b8['model']['change'](_0x4dfe72=>{_0x2b2f33();const _0x138546='left'===_0x4dc7ae['order'],_0x277707=_0x27af34['getSelectionAffectedTableCells'](_0x34c404),_0x3fca3c=_0x27af34['getColumnIndexes'](_0x277707),_0x4bb2d8=_0x138546?_0x3fca3c['first']-0x1:_0x3fca3c['last']+0x1,_0x1625bf=_0x277707[0x0]['findAncestor']('table'),_0x40eab1=_0x27af34['createTableWalker'](_0x1625bf,{'startRow':0x0,'column':_0x4bb2d8,'includeAllSlots':!0x1}),_0x4c4c4c=Array['from'](_0x40eab1)['map'](_0x19a378=>_0x4dfe72['createRangeOn'](_0x19a378['cell']));_0x26735b['markMultiRangeInsertion'](_0x4c4c4c,'tableColumn');});});}for(const _0x52989f of['removeTableRow','removeTableColumn']){const _0x3fb21b=_0x52989f['substr'](0xb),_0x3fdd1e=_0x3fb21b['toLowerCase'](),_0x161b68=_0x3fdd1e['substr'](0x0,0x3)+'span',_0x4ebf42='table'+_0x3fb21b,_0x496da2='min'+_0x3fb21b,_0x311acf='max'+_0x3fb21b;_0x26735b['enableCommand'](_0x52989f,()=>{_0x1616b8['model']['change'](_0xe2e8cc=>{const _0x23c478=_0x27af34['getSelectionAffectedTableCells'](_0x34c404),_0x45b3fb=_0x23c478[0x0]['findAncestor']('table');let _0xcf2bb3;if('removeTableRow'==_0x52989f){const _0x154f50=_0x27af34['getRowIndexes'](_0x23c478);_0xcf2bb3={'startRow':_0x154f50['first'],'endRow':_0x154f50['last'],'includeAllSlots':!0x0};}else{const _0x3f0941=_0x27af34['getColumnIndexes'](_0x23c478);_0xcf2bb3={'startColumn':_0x3f0941['first'],'endColumn':_0x3f0941['last'],'includeAllSlots':!0x0};}const _0x56db49=_0x27af34['createTableWalker'](_0x45b3fb,_0xcf2bb3),_0x214170=Array['from'](_0x56db49)['map'](({cell:_0x43e127})=>_0x43e127),_0x233562=Ne(_0x214170['filter'](_0x195256=>_0x195256['hasAttribute'](_0x161b68))),_0x128231=Ne(_0x214170['filter'](_0xca2a28=>!_0xca2a28['hasAttribute'](_0x161b68)))['map'](_0x15cb5f=>_0xe2e8cc['createRangeOn'](_0x15cb5f)),_0x50299a=_0x26735b['markMultiRangeDeletion'](_0x128231,_0x4ebf42);if(_0x50299a&&('tableRow'==_0x50299a['subType']||'tableColumn'==_0x50299a['subType'])){const _0x1751fc=this['_getSuggestionCoords'](_0x50299a);for(const _0x41d69b of _0x233562){const _0x19d941=_0xe2e8cc['createRangeOn'](_0x41d69b),_0x337339=_0x27af34['getCellLocation'](_0x41d69b),_0xc0ee97=_0x41d69b['getAttribute'](_0x161b68)-0x1,_0x4c5f3c=_0x1751fc[_0x496da2],_0x56f852=_0x1751fc[_0x311acf];_0x4c5f3c<=_0x337339[_0x3fdd1e]&&_0x337339[_0x3fdd1e]+_0xc0ee97<=_0x56f852&&_0x50299a['addRange'](_0x19d941);}}});});}function _0x2f2be1(_0x2fcfad){const _0x4ef26c=Array['from'](_0x34c404['getRanges']())['map'](_0x3bfe01=>_0x5c02ad['fromRange'](_0x3bfe01));_0x1616b8['model']['change'](_0x30208b=>{const _0x27910c=_0x30208b['batch'];_0x2fcfad=_0x2fcfad['filter'](_0x387c6a=>'$graveyard'!=_0x387c6a['root']['rootName']),_0x30208b['setSelection'](_0x2fcfad),_0x1616b8['commands']['get']('removeTableRow')['refresh'](),_0x1616b8['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x1616b8['model']['enqueueChange'](()=>{_0x1616b8['model']['enqueueChange'](_0x27910c,_0x3713ca=>{const _0x24f485=_0x4ef26c['filter'](_0x2dd5aa=>'$graveyard'!=_0x2dd5aa['root']['rootName']);_0x24f485['length']>0x0&&_0x3713ca['setSelection'](_0x24f485);for(const _0x282739 of _0x4ef26c)_0x282739['detach']();});});});}function _0x2c2573(_0x18c3d8){_0x1616b8['model']['change'](_0x4bb04a=>{const _0x3bd17a=Array['from'](_0x34c404['getRanges']())['map'](_0x3a48f7=>_0x5c02ad['fromRange'](_0x3a48f7)),_0x2583ea=[];for(const _0x2a8b8b of _0x18c3d8)for(const _0x33dbce of _0x2a8b8b['getItems']({'shallow':!0x0}))_0x2583ea['push'](_0x33dbce);for(const _0x2f2d36 of _0x2583ea)'$graveyard'!=_0x2f2d36['root']['rootName']&&(_0x4bb04a['setSelection'](_0x4bb04a['createPositionAt'](_0x2f2d36,0x0)),_0x1616b8['commands']['get']('removeTableColumn')['refresh'](),_0x1616b8['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x72fcc2=_0x3bd17a['filter'](_0x5cb415=>'$graveyard'!=_0x5cb415['root']['rootName']);_0x72fcc2['length']>0x0&&_0x4bb04a['setSelection'](_0x72fcc2);for(const _0x4e281b of _0x3bd17a)_0x4e281b['detach']();});}function _0x4878c8(_0x5ced83,_0x1ea069){return _0x1ea069['every'](_0x27aa30=>_0x5ced83['some'](_0x3b9dd9=>_0x3b9dd9['end']['isEqual'](_0x27aa30['start'])||_0x27aa30['end']['isEqual'](_0x3b9dd9['start'])));}function _0x5a3310(_0x1eb181,_0x56230b){return!_0x1eb181['some'](_0x310442=>_0x56230b['some'](_0x33d2e1=>_0x310442['isIntersecting'](_0x33d2e1)))&&_0x1eb181['some'](_0x55fb4e=>_0x56230b['some'](_0x1ec687=>_0x55fb4e['end']['isTouching'](_0x1ec687['start'])));}_0x1616b8['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x92e690,_0x3ee577,_0x3d0795)=>{if(!_0x3d0795['options']['showSuggestionHighlights'])return;const _0x400a59=_0x3ee577['item'];if(!_0x400a59||!_0x400a59['is']('element','tableCell'))return;const _0x183caf=_0x3d0795['mapper']['toViewElement'](_0x400a59);if(_0x183caf){const {id:_0x107d0a,authorId:_0x1dc479}=_0x26735b['_splitMarkerName'](_0x3ee577['markerName']);_0x3be7c9(_0x183caf,_0x3d0795['writer'],(_0x1af10e,_0x2ee6a1,_0x170b2f)=>{_0x170b2f['addClass'](_0x20ad50(_0x2ee6a1['classes']),_0x1af10e),_0x170b2f['setAttribute']('data-suggestion-id',_0x107d0a,_0x1af10e),_0x170b2f['setAttribute']('data-author-id',_0x1dc479,_0x1af10e);},(_0x16016c,_0x269df6,_0x27f01d)=>{_0x27f01d['removeClass'](_0x20ad50(_0x269df6['classes']),_0x16016c),_0x27f01d['removeAttribute']('data-suggestion-id',_0x16016c),_0x27f01d['removeAttribute']('data-author-id',_0x16016c);});}},{'priority':'highest'}),_0x26735b['descriptionFactory']['registerDescriptionCallback'](_0x1cf16b=>{if('insertion'!=_0x1cf16b['type']&&'deletion'!=_0x1cf16b['type'])return;const _0x48e816=_0x1cf16b['getContainedElement']();if(null!=_0x48e816&&_0x48e816['is']('element','table')){if('insertion'==_0x1cf16b['type']){const _0x4ae46f=_0x1cf16b['getItems']()['filter'](_0x3fbfa8=>_0x3fbfa8['is']('$textProxy'))['map'](_0x27ae14=>_0x27ae14['data']);if(_0x4ae46f['length'])return{'type':'insertion','content':o(_0x1353b0,'*Insert:*\x20%0',o(_0x1353b0,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4ae46f['join']('\x20')+'\x22'))};}if('deletion'==_0x1cf16b['type']){const _0x3aa674=_0x1cf16b['getItems']()['filter'](_0x20e363=>_0x20e363['is']('$textProxy'))['map'](_0x5412f9=>_0x5412f9['data']);if(_0x3aa674['length'])return{'type':'deletion','content':o(_0x1353b0,'*Remove:*\x20%0',o(_0x1353b0,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3aa674['join']('\x20')+'\x22'))};}}}),_0x26735b['descriptionFactory']['registerDescriptionCallback'](_0x1afed3=>{if('tableRow'==_0x1afed3['subType']){const _0x3b8bf2=_0x1afed3['getItems']()['filter'](_0x529486=>_0x529486['is']('$textProxy'))['map'](_0x51830a=>_0x51830a['data']),_0x4d1d63=this['_getSuggestionCoords'](_0x1afed3),_0x585a03=_0x4d1d63['maxRow']-_0x4d1d63['minRow']+0x1;if('insertion'==_0x1afed3['type'])return _0x3b8bf2['length']?{'type':'insertion','content':o(_0x1353b0,'*Insert:*\x20%0',o(_0x1353b0,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x585a03,'\x22'+_0x3b8bf2['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1353b0,'*Insert:*\x20%0',o(_0x1353b0,'ELEMENT_TABLE_ROW',_0x585a03))};if('deletion'==_0x1afed3['type'])return _0x3b8bf2['length']?{'type':'deletion','content':o(_0x1353b0,'*Remove:*\x20%0',o(_0x1353b0,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x585a03,'\x22'+_0x3b8bf2['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1353b0,'*Remove:*\x20%0',o(_0x1353b0,'ELEMENT_TABLE_ROW',_0x585a03))};}if('tableColumn'==_0x1afed3['subType']){const _0x4d1f52=_0x1afed3['getItems']()['filter'](_0x585454=>_0x585454['is']('$textProxy'))['map'](_0x2c6ac5=>_0x2c6ac5['data']),_0x4146eb=this['_getSuggestionCoords'](_0x1afed3),_0x5e1487=_0x4146eb['maxColumn']-_0x4146eb['minColumn']+0x1;if('insertion'==_0x1afed3['type'])return _0x4d1f52['length']?{'type':'insertion','content':o(_0x1353b0,'*Insert:*\x20%0',o(_0x1353b0,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5e1487,'\x22'+_0x4d1f52['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1353b0,'*Insert:*\x20%0',o(_0x1353b0,'ELEMENT_TABLE_COLUMN',_0x5e1487))};if('deletion'==_0x1afed3['type'])return _0x4d1f52['length']?{'type':'deletion','content':o(_0x1353b0,'*Remove:*\x20%0',o(_0x1353b0,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5e1487,'\x22'+_0x4d1f52['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1353b0,'*Remove:*\x20%0',o(_0x1353b0,'ELEMENT_TABLE_COLUMN',_0x5e1487))};}}),_0x26735b['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2f2be1),_0x26735b['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2f2be1),_0x26735b['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x2c2573),_0x26735b['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x2c2573),_0x26735b['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x4878c8),_0x26735b['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x4878c8),_0x26735b['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x5a3310),_0x26735b['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x5a3310);}['_acceptFormatSuggestionCallbackFactory'](){const _0x865f98=this['editor'],_0x357520=_0x865f98['model']['document']['selection'];return(_0x1c0da5,_0x908464)=>{_0x865f98['model']['change'](_0x2a5c36=>{const {commandName:_0x36c851,commandParams:_0xa07a1a}=_0x908464;let _0x4a77d3=_0x1c0da5[0x0]['end']['nodeBefore'];_0xa07a1a&&_0xa07a1a[0x0]&&!0x1===_0xa07a1a[0x0]['forceValue']&&(_0x4a77d3=_0x1c0da5[0x0]['start']['nodeAfter']);const _0x1306a4=_0x2a5c36['createRangeIn'](_0x4a77d3);if('$graveyard'==_0x1306a4['root']['rootName'])return;const _0x556236=Array['from'](_0x357520['getRanges']())['map'](_0x360c21=>_0x5c02ad['fromRange'](_0x360c21));_0x2a5c36['setSelection'](_0x1306a4),_0x865f98['commands']['get'](_0x36c851)['refresh'](),_0xa07a1a['push']({'forceDefaultExecution':!0x0}),_0x865f98['execute'](_0x36c851,..._0xa07a1a);const _0x4d1bad=_0x556236['filter'](_0x5ee0a0=>'$graveyard'!=_0x5ee0a0['root']['rootName']);_0x4d1bad['length']>0x0&&_0x2a5c36['setSelection'](_0x4d1bad);for(const _0x61e44a of _0x556236)_0x61e44a['detach']();});};}['_getCoordsForCells'](_0x1ee7e5){const _0x3dadbc=this['editor']['plugins']['get']('TableUtils');let _0x45f7d7=Number['MAX_SAFE_INTEGER'],_0x14dc98=Number['MIN_SAFE_INTEGER'],_0x416c33=Number['MAX_SAFE_INTEGER'],_0x30744f=Number['MIN_SAFE_INTEGER'];for(const _0x34f2ab of _0x1ee7e5){if('$graveyard'==_0x34f2ab['root']['rootName'])continue;const {row:_0x1369eb,column:_0x5a115e}=_0x3dadbc['getCellLocation'](_0x34f2ab),_0x266ea1=_0x34f2ab['hasAttribute']('rowspan')?_0x34f2ab['getAttribute']('rowspan')-0x1:0x0,_0x5a896a=_0x34f2ab['hasAttribute']('colspan')?_0x34f2ab['getAttribute']('colspan')-0x1:0x0;_0x45f7d7=_0x1369eb<_0x45f7d7?_0x1369eb:_0x45f7d7,_0x14dc98=_0x1369eb+_0x266ea1>_0x14dc98?_0x1369eb+_0x266ea1:_0x14dc98,_0x416c33=_0x5a115e<_0x416c33?_0x5a115e:_0x416c33,_0x30744f=_0x5a115e+_0x5a896a>_0x30744f?_0x5a115e+_0x5a896a:_0x30744f;}return{'minRow':_0x45f7d7,'maxRow':_0x14dc98,'minColumn':_0x416c33,'maxColumn':_0x30744f};}['_setupColumnsRowsFixing'](){const _0x4b1ce7=this['editor'],_0x4443dd=_0x4b1ce7['plugins']['get']('TrackChangesEditing'),_0x26bbf1=_0x4b1ce7['plugins']['get']('TableUtils');_0x4b1ce7['model']['document']['on']('change:data',()=>{const _0x400528=Array['from'](_0x4b1ce7['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x174579,data:_0x1f5217}of _0x400528){const {group:_0x4c7cbb,id:_0xdac34d,subType:_0x473fab}=_0x4443dd['_splitMarkerName'](_0x174579);if('suggestion'!=_0x4c7cbb)continue;if(null!=_0x1f5217['oldRange'])continue;const _0x21b210=_0x4443dd['getSuggestion'](_0xdac34d);this['_tablePostFixingSubtypes']['includes'](_0x473fab)&&this['_tableSuggestions']['add'](_0x21b210);}},{'priority':'low'});const _0x1731de=(_0x309d73,_0x1f4a77)=>{let _0x296a37=!0x1;const _0x557c84=_0x1f4a77['createRangeOn'](_0x309d73),_0x55b352=_0x309d73['findAncestor']('table'),_0x3dc8de=_0x26bbf1['getCellLocation'](_0x309d73);for(const _0x48cced of this['_tableSuggestions']){const _0xc9e287=_0x48cced['subType'],_0x499127=_0xc9e287['startsWith']('tablePaste'),_0x184ec8=_0xc9e287['substr'](_0x499127?0xa:0x5),_0x4a5cda=_0x184ec8['toLowerCase'](),_0x8b4fde=_0x4a5cda['substr'](0x0,0x3)+'span',_0x199bb3='min'+_0x184ec8,_0x76ed30='max'+_0x184ec8;if(!_0x48cced['isInContent'])continue;if(_0x55b352!=_0x48cced['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x48cced['isIntersectingWithRange'](_0x557c84))continue;const _0xd78ec6=_0x309d73['hasAttribute'](_0x8b4fde)?_0x309d73['getAttribute'](_0x8b4fde)-0x1:0x0,_0x498896=this['_getSuggestionCoords'](_0x48cced),_0x3b2800=_0x498896[_0x199bb3],_0x439c9e=_0x498896[_0x76ed30];_0x3b2800<=_0x3dc8de[_0x4a5cda]&&_0x3dc8de[_0x4a5cda]+_0xd78ec6<=_0x439c9e&&(_0x48cced['addRange'](_0x557c84),_0x296a37=!0x0);}return _0x296a37;};_0x4b1ce7['model']['document']['registerPostFixer'](_0x29bd8d=>{let _0x51c398=!0x1;for(const _0x268a1e of _0x4b1ce7['model']['document']['differ']['getChanges']())if('insert'==_0x268a1e['type']){if('tableRow'==_0x268a1e['name']){for(const _0x18f1a7 of _0x268a1e['position']['nodeAfter']['getChildren']())_0x51c398=_0x51c398||_0x1731de(_0x18f1a7,_0x29bd8d);}else'tableCell'==_0x268a1e['name']&&(_0x51c398=_0x51c398||_0x1731de(_0x268a1e['position']['nodeAfter'],_0x29bd8d));}return _0x51c398;});}['_getSuggestionCoords'](_0x4ca07e){return this['_getCoordsForCells'](_0x4ca07e['getRanges']()['map'](_0x13d3b3=>_0x13d3b3['start']['nodeAfter']));}}function Ne(_0xc05cbd){return Array['from'](new Set(_0xc05cbd)['values']());}class _t extends _0xa5f689{static get['requires'](){return[At];}['afterInit'](){const _0x5dc22b=this['editor'],_0x3c43a4=_0x5dc22b['model']['document']['selection'],_0x5bf158=_0x5dc22b['locale'];if(!_0x5dc22b['plugins']['has']('TableEditing'))return;const _0x1a58ae=_0x5dc22b['plugins']['get']('TrackChangesEditing'),_0x57aa3c=_0x5dc22b['plugins']['get']('TableUtils'),_0x46934c=_0x5dc22b['plugins']['get'](At);_0x46934c['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x1a58ae['enableCommand']('mergeTableCells',()=>{const _0x1d03d3=_0x57aa3c['getSelectionAffectedTableCells'](_0x5dc22b['model']['document']['selection']);_0x5dc22b['model']['change'](()=>{_0x1a58ae['markMultiRangeBlockFormat'](_0x1d03d3,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x5dc22b['commands']['get']('mergeTableCells')['on']('execute',(_0x327fcd,_0x2906b4)=>{_0x5dc22b['commands']['get']('trackChanges')['value']&&(_0x2906b4['length']>0x0&&_0x2906b4[_0x2906b4['length']-0x1]&&_0x2906b4[_0x2906b4['length']-0x1]['forceDefaultExecution']||_0x1a58ae['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x327fcd['stop']());},{'priority':'highest'});for(const _0x32388f of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x432ce9=_0x5dc22b['commands']['get'](_0x32388f);_0x1a58ae['enableCommand'](_0x32388f,()=>{const _0x335d6f=_0x5dc22b['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2d1e7a=>_0x2d1e7a['is']('element','tableCell')),_0x4a3bf2=_0x432ce9['value'];_0x5dc22b['model']['change'](()=>{_0x1a58ae['markMultiRangeBlockFormat']([_0x335d6f,_0x4a3bf2],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x341189 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x4dfadc=_0x5dc22b['commands']['get'](_0x341189);_0x1a58ae['enableCommand'](_0x341189,()=>{const _0x27f661=_0x57aa3c['getSelectionAffectedTableCells'](_0x5dc22b['model']['document']['selection'])[0x0],_0x1b9c6c=_0x27f661['findAncestor']('table'),{column:_0x2a5a81,row:_0xce9af4}=_0x57aa3c['getCellLocation'](_0x27f661);let _0x52440b=[];if('horizontally'==_0x4dfadc['direction']){const _0x3d8946=_0x57aa3c['createTableWalker'](_0x1b9c6c,{'startRow':_0xce9af4,'endRow':_0xce9af4,'includeAllSlots':!0x0});_0x52440b=Array['from'](_0x3d8946)['map'](_0x5b11a9=>_0x5b11a9['cell']);}else{const _0x598132=_0x57aa3c['createTableWalker'](_0x1b9c6c,{'column':_0x2a5a81,'includeAllSlots':!0x0});_0x52440b=Array['from'](_0x598132)['map'](_0x14aa91=>_0x14aa91['cell']);}_0x5dc22b['model']['change'](_0x34b6c9=>{_0x1a58ae['markBlockFormat'](_0x34b6c9['createRangeOn'](_0x27f661),{'commandName':_0x341189,'commandParams':[]},_0x52440b,_0x341189);});});}_0x1a58ae['descriptionFactory']['registerDescriptionCallback'](_0x8f2a7e=>{if('formatBlock'!=_0x8f2a7e['type']&&'formatInline'!=_0x8f2a7e['type'])return;const {data:_0x24a0ff}=_0x8f2a7e;return _0x24a0ff&&'mergeTableCells'==_0x24a0ff['commandName']?{'type':'format','content':o(_0x5bf158,'*Merge\x20cells*')}:void 0x0;}),_0x1a58ae['descriptionFactory']['registerDescriptionCallback'](_0x241ff0=>{if('formatBlock'!=_0x241ff0['type']&&'formatInline'!=_0x241ff0['type'])return;const {data:_0x69b21c}=_0x241ff0;return _0x69b21c?'splitTableCellVertically'==_0x69b21c['commandName']?{'type':'format','content':o(_0x5bf158,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x69b21c['commandName']?{'type':'format','content':o(_0x5bf158,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x16cceb=_0x46934c['_acceptFormatSuggestionCallbackFactory']();for(const _0x2c55a4 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x1a58ae['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2c55a4,'accept',_0x16cceb);for(const _0x265a41 of['splitTableCellVertically','splitTableCellHorizontally'])_0x1a58ae['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x265a41,'accept',_0x16cceb);_0x1a58ae['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x4bd341=>{_0x5dc22b['model']['change'](_0x12fda2=>{const _0x164ec3=Array['from'](_0x3c43a4['getRanges']())['map'](_0x5d7c37=>_0x5c02ad['fromRange'](_0x5d7c37));_0x12fda2['setSelection'](_0x4bd341),_0x5dc22b['commands']['get']('mergeTableCells')['refresh'](),_0x5dc22b['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3795e8=_0x164ec3['filter'](_0x2d89d9=>'$graveyard'!=_0x2d89d9['root']['rootName']);_0x3795e8['length']>0x0&&_0x12fda2['setSelection'](_0x3795e8);for(const _0x3a8090 of _0x164ec3)_0x3a8090['detach']();});});for(const _0x2cc0c6 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x593e85=_0x5dc22b['commands']['get'](_0x2cc0c6);_0x593e85['on']('set:isEnabled',(_0x54d275,_0x3d686d,_0xa23bc6)=>{if(_0xa23bc6){const _0xeee5fc=_0x5dc22b['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x38710c=>_0x38710c['is']('element','tableCell'));this['_areMergableCells'](_0x593e85['value'],_0xeee5fc)||(_0x54d275['return']=!0x1,_0x54d275['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x262d21=this['editor']['commands']['get']('mergeTableCells'),_0x1ea796=this['editor']['plugins']['get']('TableUtils');if(!_0x262d21['isEnabled'])return!0x1;const _0x448f1b=_0x1ea796['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3f5250 of _0x448f1b)for(const _0x5cde1d of _0x448f1b)if(_0x3f5250!=_0x5cde1d&&!this['_areMergableCells'](_0x3f5250,_0x5cde1d))return!0x1;return!0x0;}['_areMergableCells'](_0x5c512b,_0x547d9a){const _0x2a6706=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1ec1f2=this['editor']['model']['createRangeOn'](_0x5c512b),_0x11525f=this['editor']['model']['createRangeOn'](_0x547d9a),_0x593e9a=new Set(),_0x18b797=new Set();for(const _0x121b85 of _0x2a6706['getSuggestions']())if(('insertion'==_0x121b85['type']||'deletion'==_0x121b85['type']||'mergeTableCells'==_0x121b85['subType'])&&_0x121b85['isInContent']){for(const _0x360740 of _0x121b85['getRanges']())_0x360740['containsRange'](_0x1ec1f2,!0x0)&&_0x593e9a['add'](_0x121b85['type']+':'+_0x121b85['author']['id']),_0x360740['containsRange'](_0x11525f,!0x0)&&_0x18b797['add'](_0x121b85['type']+':'+_0x121b85['author']['id']);}if(_0x593e9a['size']!=_0x18b797['size'])return!0x1;for(const _0x5af74d of _0x593e9a)if(!_0x18b797['has'](_0x5af74d))return!0x1;return!0x0;}}class Ct extends _0xa5f689{static get['requires'](){return[At];}['afterInit'](){const _0x570b4e=this['editor'];if(!_0x570b4e['plugins']['has']('TableEditing'))return;const _0x43f43a=_0x570b4e['locale'],_0x47c6d9=_0x570b4e['plugins']['get']('TrackChangesEditing');_0x47c6d9['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x47c6d9['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x47c6d9['registerBlockAttribute']('headingRows'),_0x47c6d9['registerBlockAttribute']('headingColumns'),_0x47c6d9['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x43f43a,'FORMAT_HEADER_ROW')),_0x47c6d9['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x43f43a,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4dca0c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x50d040=this['editor']['plugins']['get']('TableUtils'),_0x5c4926=this['editor']['plugins']['get'](At)['_acceptFormatSuggestionCallbackFactory']();function _0x40d853({showActiveMarker:_0x5905ed=!0x0,setDataAttribute:_0x461071=!0x0}={}){return(_0x435930,_0x2bd8d0,_0x2fc8ed)=>{const {type:_0x58bf97,id:_0x146c4f}=_0x4dca0c['_splitMarkerName'](_0x2bd8d0['markerName']),_0x584d98=_0x4dca0c['getSuggestion'](_0x146c4f),_0x575b62=_0x584d98['data'];if('formatBlock'!=_0x584d98['type']||!_0x575b62||'setTableColumnHeader'!=_0x575b62['commandName'])return;if(_0x2bd8d0['item'])return void _0x435930['stop']();if(!_0x2fc8ed['consumable']['consume'](_0x2bd8d0['markerRange'],_0x435930['name']))return;const _0x4b703e=_0x2bd8d0['markerRange']['start']['nodeAfter'],_0x1db080=_0x2bd8d0['markerRange']['end']['nodeBefore'],_0x2187c5=_0x4b703e['parent']['parent'],{column:_0x213cf2}=_0x50d040['getCellLocation'](_0x4b703e),{column:_0x5cdf20}=_0x50d040['getCellLocation'](_0x1db080);for(let _0x3c2569=_0x213cf2;_0x3c2569<=_0x5cdf20;_0x3c2569++){const _0x5ec3fa=_0x50d040['createTableWalker'](_0x2187c5,{'column':_0x3c2569,'includeAllSlots':!0x1});for(const _0x42da9a of _0x5ec3fa){const _0x1e016d=_0x42da9a['cell'],_0x2c6e5f=_0x2fc8ed['mapper']['toViewElement'](_0x1e016d);_0x2fc8ed['writer']['addClass']('ck-suggestion-marker-'+_0x58bf97,_0x2c6e5f),_0x461071&&_0x2fc8ed['writer']['setAttribute']('data-suggestion',_0x146c4f,_0x2c6e5f),_0x2fc8ed['mapper']['bindElementToMarker'](_0x2c6e5f,_0x2bd8d0['markerName']),_0x5905ed&&(_0x4dca0c['activeMarkers']['includes'](_0x2bd8d0['markerName'])?_0x2fc8ed['writer']['addClass']('ck-suggestion-marker--active',_0x2c6e5f):_0x2fc8ed['writer']['removeClass']('ck-suggestion-marker--active',_0x2c6e5f));}}};}_0x4dca0c['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x5c4926),_0x4dca0c['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x5c4926),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x40d853(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x17afbf,_0x59eb49,_0x18a2bf)=>{_0x18a2bf['options']['showSuggestionHighlights']&&_0x40d853({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x17afbf,_0x59eb49,_0x18a2bf);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x5a383e,_0x2db789,_0x39bc6f)=>{const {type:_0x2ae7e0,id:_0x388386}=_0x4dca0c['_splitMarkerName'](_0x2db789['markerName']),_0x5e8825=_0x4dca0c['getSuggestion'](_0x388386),_0x56af25=_0x5e8825['data'];if('formatBlock'!=_0x5e8825['type']||!_0x56af25||'setTableColumnHeader'!=_0x56af25['commandName'])return;const _0x2cb7e2=_0x39bc6f['mapper']['markerNameToElements'](_0x2db789['markerName']);if(_0x2cb7e2){for(const _0x1ac079 of _0x2cb7e2)_0x39bc6f['writer']['removeClass']('ck-suggestion-marker-'+_0x2ae7e0,_0x1ac079),_0x39bc6f['writer']['removeClass']('ck-suggestion-marker--active',_0x1ac079),_0x39bc6f['writer']['removeAttribute']('data-suggestion',_0x1ac079),_0x39bc6f['mapper']['unbindElementFromMarkerName'](_0x1ac079,_0x2db789['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x19a878=this['editor'],_0x1fe468=_0x19a878['locale'];function _0x55fa7b(_0x16ff23){return{'type':'format','content':o(_0x1fe468,'*Format:*\x20%0',_0x16ff23)};}_0x19a878['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c9b34=>{if('formatBlock'!=_0x2c9b34['type'])return;const {data:_0x4d3820}=_0x2c9b34;if(_0x4d3820){if('setTableRowHeader'==_0x4d3820['commandName']){const _0x156f98=_0x4d3820['commandParams'][0x0]['forceValue'];return _0x55fa7b(o(_0x1fe468,_0x156f98?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x4d3820['commandName']){const _0x717553=_0x4d3820['commandParams'][0x0]['forceValue'];return _0x55fa7b(o(_0x1fe468,_0x717553?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class vt extends _0xa5f689{['afterInit'](){const _0x356fdb=this['editor'],_0x54b305=_0x356fdb['locale'],_0x4d769b=_0x356fdb['plugins']['get']('TrackChangesEditing');function _0x5aed31(_0x1854c1){return{'type':'format','content':''+o(_0x54b305,'*Set\x20table\x20type:*\x20%0',_0x1854c1)};}_0x356fdb['plugins']['has']('TableLayout')&&(_0x4d769b['enableCommand']('insertTableLayout'),_0x4d769b['enableDefaultAttributesIntegration']('tableType'),_0x4d769b['registerBlockAttribute']('tableType'),_0x4d769b['descriptionFactory']['registerElementLabel'](_0x679d71=>_0x679d71['is']('element','table')&&'layout'===_0x679d71['getAttribute']('tableType'),_0x7b8e11=>o(_0x54b305,'ELEMENT_LAYOUT_TABLE',_0x7b8e11)),_0x4d769b['descriptionFactory']['registerDescriptionCallback'](_0x2d070b=>{const {data:_0x35eedd}=_0x2d070b;if(_0x35eedd&&'tableType'==_0x35eedd['key'])switch(_0x35eedd['newValue']){case'layout':return _0x5aed31(o(_0x54b305,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x5aed31(o(_0x54b305,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=/* #__PURE__ -- @preserve */
25
- Object['fromEntries'](Be['map'](_0x23046c=>[_0x23046c,null]));class Nt extends _0xa5f689{static get['requires'](){return[At];}['afterInit'](){const _0xb30e58=this['editor'];if(!_0xb30e58['plugins']['has']('TableClipboard'))return;const _0x11b6f9=_0xb30e58['plugins']['get']('TrackChangesEditing'),_0x3174bc=_0xb30e58['plugins']['get']('TableUtils'),_0x29917b=_0xb30e58['plugins']['get'](At),_0x2eae43=_0xb30e58['plugins']['get']('TableClipboard'),_0x1c1acf=_0xb30e58['plugins']['get']('TableSelection'),_0x1a7e55=_0xb30e58['plugins']['get'](_0x389c06);_0x29917b['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0xb30e58['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0xb30e58['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x1d902c=null,_0x4dd442=!0x1;_0x1a7e55['on']('contentInsertion',(_0x59a090,_0x55835c)=>{_0x4dd442='paste'===_0x55835c['method'];}),_0xb30e58['model']['on']('insertContent',(_0x140355,_0x12c9b4)=>{if(!_0x4dd442&&null===_0x1c1acf['getSelectedTableCells']())return;const [_0x5acfff,_0x18ada3]=_0x12c9b4,_0x42ee74=_0x12c9b4[_0x12c9b4['length']-0x1];_0x42ee74&&_0x42ee74['forceDefaultExecution']||_0x11b6f9['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x54c315,_0x503660,_0x3f8796,_0x1f2cd1,_0x24c8b2){if(_0x503660&&!_0x503660['is']('documentSelection'))return!0x1;const _0x663287=_0x24c8b2['getTableIfOnlyTableInContent'](_0x54c315,_0x3f8796);if(!_0x663287||!Ue(_0x663287,void 0x0,_0x1f2cd1))return!0x1;const _0x3dae26=_0x1f2cd1['getSelectionAffectedTableCells'](_0x3f8796['document']['selection']);if(!_0x3dae26['length'])return!0x1;const _0xeead01=_0x3dae26[0x0]['findAncestor']('table'),_0x2a7f19=_0x1f2cd1['getRowIndexes'](_0x3dae26),_0x22da2d=_0x1f2cd1['getColumnIndexes'](_0x3dae26),_0x271f0d={'startRow':_0x2a7f19['first'],'endRow':_0x2a7f19['last'],'startColumn':_0x22da2d['first'],'endColumn':_0x22da2d['last']};return 0x1==_0x3dae26['length']&&(_0x271f0d['endRow']+=_0x1f2cd1['getRows'](_0x663287)-0x1,_0x271f0d['endColumn']+=_0x1f2cd1['getColumns'](_0x663287)-0x1),Ue(_0xeead01,_0x271f0d,_0x1f2cd1);}(_0x5acfff,_0x18ada3,_0xb30e58['model'],_0x3174bc,_0x2eae43)&&(_0x140355['stop'](),_0x1d902c={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0xb30e58['model']['change'](()=>{_0xb30e58['model']['insertContent'](_0x12c9b4[0x0],_0x12c9b4[0x1],_0x12c9b4[0x2],{'forceDefaultExecution':!0x0});const _0x50328c=_0xfc77eb(),{rowInsertionRanges:_0xd68ff6,columnInsertionRanges:_0x15cbab,insertionRanges:_0x2faaf6,deletionRanges:_0x24490e,cells:_0x4e74c5}=_0x1d902c;_0xd68ff6['length']&&_0x11b6f9['markMultiRangeInsertion'](_0xd68ff6,'tablePasteRow',{'tablePasteChainId':_0x50328c}),_0x15cbab['length']&&_0x11b6f9['markMultiRangeInsertion'](_0x15cbab,'tablePasteColumn',{'tablePasteChainId':_0x50328c}),_0x2faaf6['length']&&(_0x11b6f9['markMultiRangeInsertion'](_0x2faaf6,'tablePaste',{'tablePasteChainId':_0x50328c,'skipNestingCheck':!0x0}),_0x2faaf6['forEach'](_0x2ad183=>_0x2ad183['detach']?.())),_0x24490e['length']&&(_0x11b6f9['markMultiRangeDeletion'](_0x24490e,'tablePaste',{'tablePasteChainId':_0x50328c,'skipNestingCheck':!0x0}),_0x24490e['forEach'](_0x1e1952=>_0x1e1952['detach']?.()));const _0xd52103=_0x11b6f9['markMultiRangeBlockFormat'](_0x4e74c5['map'](({element:_0x4d80b0})=>_0x4d80b0),{'formatGroupId':_0xfc77eb()},[],'tablePasteCell',{'tablePasteChainId':_0x50328c});if(_0xd52103){const _0x58bf89=_0xd52103['getMarkers'](),_0x3b8c4d=[];for(const {element:_0x2dffca,attributes:_0x1d1468}of _0x4e74c5){if(!_0x1d1468)continue;const _0xa04ac3=_0xb30e58['model']['createRangeOn'](_0x2dffca),_0x479148=_0x58bf89['find'](_0x1283a4=>_0x1283a4['getRange']()['isEqual'](_0xa04ac3));_0x479148&&_0x3b8c4d['push']([_0x479148['name'],_0x1d1468]);}_0x3b8c4d['length']&&_0xd52103['setAttribute']('markerAttributes',Object['fromEntries'](_0x3b8c4d));}_0x1d902c=null;}));},{'priority':_0x49a958['high']+0xa}),_0x1a7e55['on']('contentInsertion',()=>{_0x4dd442=!0x1;},{'priority':'lowest'}),_0xb30e58['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x14f6da,_0x58ec03)=>{const [_0x68815f,_0x118826,,_0x187b1a]=_0x58ec03;if(!_0x1d902c)return;_0x14f6da['stop']();const _0x422974=_0x68815f['cell'],_0x11cd53=_0x118826,_0x3e9049=Oe(_0x422974),_0x44c181=Oe(_0x11cd53);_0x14f6da['return']=_0x422974;let _0x253e5f=null,_0x4c024e=null;if(_0x44c181||_0x3e9049){if(_0x3e9049&&!_0x44c181){_0x187b1a['remove'](_0x422974['getChild'](0x0));for(const _0x32e925 of Array['from'](_0x11cd53['getChildren']()))_0x187b1a['insert'](_0x32e925,_0x422974,'end');const _0x376d05=_0x1d902c['rowInsertionIndexes']['includes'](_0x68815f['row']),_0x1d9c88=_0x1d902c['columnInsertionIndexes']['includes'](_0x68815f['column']);_0x376d05||_0x1d9c88||(_0x253e5f=_0x5c02ad['fromRange'](_0x187b1a['createRangeIn'](_0x422974)));}else _0x44c181&&!_0x3e9049&&(_0x4c024e=_0x187b1a['createRangeIn'](_0x422974));}else{const _0xc5f0f7=_0x187b1a['createElement']('tableCellSuggestion'),_0x296a11=_0x187b1a['createElement']('tableCellSuggestion');_0x187b1a['wrap'](_0x187b1a['createRangeIn'](_0x422974),_0x296a11),_0x187b1a['insert'](_0xc5f0f7,_0x422974,0x0);for(const _0x56acee of Array['from'](_0x11cd53['getChildren']()))_0x187b1a['insert'](_0x56acee,_0xc5f0f7,'end');_0x253e5f=_0x5c02ad['fromRange'](_0x187b1a['createRangeOn'](_0xc5f0f7)),_0x4c024e=_0x5c02ad['fromRange'](_0x187b1a['createRangeOn'](_0x296a11));}const _0x24edcf=Array['from'](_0x11cd53['getAttributes']())['filter'](([_0x34347d])=>Be['includes'](_0x34347d));_0x1d902c['cells']['push']({'element':_0x422974,'attributes':_0x24edcf['length']?Object['fromEntries'](_0x24edcf):null}),_0x253e5f&&_0x1d902c['insertionRanges']['push'](_0x253e5f),_0x4c024e&&_0x1d902c['deletionRanges']['push'](_0x4c024e);},{'priority':'high'}),_0x3174bc['on']('insertColumns',(_0x3e5eef,_0x4319d8)=>{const [_0x2e071b,_0x84ce0e={}]=_0x4319d8;if(!_0x1d902c)return;const _0x3d3286=_0x84ce0e['at']||0x0,_0x3b10ae=_0x84ce0e['columns']||0x1;_0x1d902c['columnInsertionIndexes']=new Array(_0x3b10ae)['fill'](_0x3d3286)['map']((_0x3c71a0,_0x264daa)=>_0x3c71a0+_0x264daa);for(const {cell:_0x1dcb3f}of _0x3174bc['createTableWalker'](_0x2e071b,{'startColumn':_0x3d3286,'endColumn':_0x3d3286+_0x3b10ae-0x1}))_0x1d902c['columnInsertionRanges']['push'](_0xb30e58['model']['createRangeOn'](_0x1dcb3f));},{'priority':'low'}),_0x3174bc['on']('insertRows',(_0x4ca453,_0x1e41d6)=>{const [_0x2355ae,_0x58f29d={}]=_0x1e41d6;if(!_0x1d902c)return;const _0x2084a8=_0x58f29d['at']||0x0,_0x13f37b=_0x58f29d['rows']||0x1;_0x1d902c['rowInsertionIndexes']=new Array(_0x13f37b)['fill'](_0x2084a8)['map']((_0x44a255,_0x432e97)=>_0x44a255+_0x432e97);for(const {cell:_0x590f57}of _0x3174bc['createTableWalker'](_0x2355ae,{'startRow':_0x2084a8,'endRow':_0x2084a8+_0x13f37b-0x1}))_0x1d902c['rowInsertionRanges']['push'](_0xb30e58['model']['createRangeOn'](_0x590f57));},{'priority':'low'}),_0x11b6f9['descriptionFactory']['registerDescriptionCallback'](_0x3e41ec=>{if(_0x3e41ec['subType']&&_0x3e41ec['subType']['startsWith']('tablePaste'))return _0x3e41ec['previous']?{}:{'type':'insertion','content':o(_0xb30e58['locale'],'*Replace\x20table\x20cells*')};});const _0x6eaccd=()=>!0x1;for(const _0xb8dfad of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x11b6f9['_suggestionFactory']['registerCustomCallback']('insertion',_0xb8dfad,'join',_0x6eaccd),_0x11b6f9['_suggestionFactory']['registerCustomCallback']('deletion',_0xb8dfad,'join',_0x6eaccd),_0x11b6f9['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xb8dfad,'join',_0x6eaccd);_0x11b6f9['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x6eaccd),_0x11b6f9['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x3a7aab,_0xdcf56c,_0x53ff6f)=>{const _0x35009d=_0x3a7aab['map'](_0x6846eb=>_0x6846eb['getContainedElement']())['filter'](_0x59318a=>_0x59318a),_0x510b50=new Map(_0x35009d['map'](_0xf3f074=>[_0xf3f074,null]));if(_0x1d902c){for(const {element:_0x47bd53,attributes:_0x538976}of _0x1d902c['cells'])_0x538976&&_0x510b50['set'](_0x47bd53,_0x538976);}else{if(_0x53ff6f&&_0x53ff6f['markerAttributes'])for(const [_0xd241d1,_0xfd3e51]of Object['entries'](_0x53ff6f['markerAttributes'])){const _0x2b82b4=_0xb30e58['model']['markers']['get'](_0xd241d1),_0x3ecd12=_0x2b82b4?_0x2b82b4['getRange']()['getContainedElement']():null;_0x3ecd12&&_0x510b50['set'](_0x3ecd12,_0xfd3e51);}}_0xb30e58['model']['change'](_0x3cea7e=>{for(const [_0x1279c2,_0x4b7512]of _0x510b50)_0x3cea7e['setAttributes']({...xe,..._0x4b7512},_0x1279c2);});});const _0x1399a4=(_0x19a4e5,_0x45ba20)=>{_0x11b6f9['_suggestionFactory']['registerCustomCallback'](_0x19a4e5,'tablePaste',_0x45ba20,(_0x458b27,_0x59185f,_0x3d0d02)=>{_0xb30e58['model']['change'](_0x377c04=>{const _0x66d5c3=[];for(const _0x4770c3 of _0x458b27){const _0x1da733=_0x4770c3['start']['nodeAfter'];_0x1da733['is']('element','tableCellSuggestion')&&_0x66d5c3['push'](_0x1da733);}_0x11b6f9['_suggestionFactory']['getSuggestionCallback'](_0x19a4e5,null,_0x45ba20)(_0x458b27,_0x59185f,_0x3d0d02);for(const _0x44242c of _0x66d5c3)'$graveyard'!=_0x44242c['root']['rootName']&&_0x377c04['unwrap'](_0x44242c);});});};_0x1399a4('insertion','accept'),_0x1399a4('insertion','discard'),_0x1399a4('deletion','accept'),_0x1399a4('deletion','discard'),_0x11b6f9['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x4f7fd0=>{const _0x1d98c7=_0x4f7fd0['map'](_0x52a646=>_0x52a646['getContainedElement']()),_0x536d63=_0x1d98c7[0x0]['findAncestor']('table'),{minRow:_0x45bd61,maxRow:_0x27581d}=_0x29917b['_getCoordsForCells'](_0x1d98c7);_0x3174bc['removeRows'](_0x536d63,{'at':_0x45bd61,'rows':_0x27581d-_0x45bd61+0x1});}),_0x11b6f9['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x2db0c0=>{const _0x5ecae2=_0x2db0c0['map'](_0x200f97=>_0x200f97['getContainedElement']()),_0x48e01d=_0x5ecae2[0x0]['findAncestor']('table'),{minColumn:_0x75a02e,maxColumn:_0x267db1}=_0x29917b['_getCoordsForCells'](_0x5ecae2);_0x3174bc['removeColumns'](_0x48e01d,{'at':_0x75a02e,'columns':_0x267db1-_0x75a02e+0x1});});const _0x58ba5b=(_0x29ea2c,_0x5b9b03)=>{if(!_0x5b9b03['subType']||!_0x5b9b03['subType']['startsWith']('tablePaste'))return;const _0x10b1b1=_0x5b9b03['attributes']['tablePasteChainId'],_0x2d8c91=_0x11b6f9['getSuggestions']()['filter'](_0x32f574=>_0x32f574['isInContent']&&_0x32f574['attributes']&&_0x32f574['attributes']['tablePasteChainId']==_0x10b1b1);_0x2d8c91['length']&&_0x5b9b03['getAllAdjacentSuggestions']()['length']!=_0x2d8c91['length']&&_0x2d8c91['reduce']((_0x23da9f,_0x3d50e8)=>(_0x23da9f['next']=_0x3d50e8,_0x3d50e8['previous']=_0x23da9f,_0x3d50e8));};function _0x294aa2(_0x44b371,_0x5479a4=!0x0){const {id:_0x4ced42,authorId:_0x201230}=_0x11b6f9['_splitMarkerName'](_0x44b371['markerName']),_0x3d9a61=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x5719e8=_0x11b6f9['activeMarkers']['includes'](_0x44b371['markerName']);return _0x5719e8&&_0x3d9a61['push']('ck-suggestion-marker--active'),{'classes':_0x3d9a61,'attributes':{'data-suggestion':_0x4ced42,'data-author-id':_0x201230},'priority':_0x5719e8&&_0x5479a4?0xbc2:0xbb8};}_0x11b6f9['on']('suggestionLoaded',_0x58ba5b,{'priority':'high'}),_0x11b6f9['on']('suggestionUnloaded',_0x58ba5b,{'priority':'high'}),_0xb30e58['model']['document']['registerPostFixer'](()=>{let _0x2f47cc=!0x1;const _0x5b9ae4=Array['from'](_0xb30e58['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5dfc31,data:_0x1565db}of _0x5b9ae4){const {group:_0xe82fc9,type:_0x38412f,id:_0x112465}=_0x11b6f9['_splitMarkerName'](_0x5dfc31);if('suggestion'!=_0xe82fc9||'deletion'!=_0x38412f||_0x1565db['oldRange'])continue;if(!_0x11b6f9['hasSuggestion'](_0x112465))continue;const _0x43b60a=_0x11b6f9['getSuggestion'](_0x112465)['getRanges'](),_0x123e3a=_0xb30e58['plugins']['get']('Users')['me'];for(const _0x21549c of _0x11b6f9['getSuggestions']()){if(!_0x21549c['isInContent']||_0x21549c['author']!=_0x123e3a)continue;if('formatBlock'!=_0x21549c['type']||'tablePasteCell'!=_0x21549c['subType'])continue;if(_0x21549c['getRanges']()['every'](_0x36f361=>_0x43b60a['some'](_0x1d3649=>_0x1d3649['containsRange'](_0x36f361,!0x0)))){for(const _0x1432ea of _0x21549c['getAllAdjacentSuggestions']())_0x1432ea['isInContent']&&(_0x1432ea['discard'](),_0x2f47cc=!0x0);}}}return _0x2f47cc;}),_0xb30e58['model']['document']['registerPostFixer'](_0x36165b=>{const _0x1d0dfb=_0xb30e58['commands']['get']('redo');if(!_0x1d0dfb||!_0x1d0dfb['_createdBatches']['has'](_0x36165b['batch']))return!0x1;let _0x58335b=!0x1;const _0x1f0c3f=_0xb30e58['plugins']['get']('Users')['me'],_0x45fb1c=_0xb30e58['model']['document']['differ']['getChanges'](),_0x51e24c=Array['from'](_0xb30e58['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x1600ed,data:_0x397ef0})=>{const {group:_0x385639,subType:_0x3c975d,authorId:_0x2b9004}=_0x11b6f9['_splitMarkerName'](_0x1600ed);return'suggestion'==_0x385639&&'tablePaste'==_0x3c975d&&_0x2b9004==_0x1f0c3f['id']&&!_0x397ef0['oldRange'];});for(const _0x35ea11 of _0x45fb1c){if('insert'!=_0x35ea11['type']||'tableCellSuggestion'!=_0x35ea11['name']||0x1!=_0x35ea11['length'])continue;const _0x5a9eeb=_0x36165b['createRange'](_0x35ea11['position'],_0x35ea11['position']['getShiftedBy'](0x1));if(!_0x51e24c['find'](({data:_0x193a52})=>_0x193a52['newRange']['isEqual'](_0x5a9eeb))){for(const {name:_0x228f73,data:_0x1f35b7}of _0x51e24c)if(_0x5a9eeb['containsRange'](_0x1f35b7['newRange'])){_0x36165b['updateMarker'](_0x228f73,{'range':_0x5a9eeb}),_0x58335b=!0x0;break;}}}return _0x58335b;}),_0xb30e58['model']['document']['registerPostFixer'](_0x3ba862=>{let _0xd12b91=!0x1;const _0x2ab405=_0xb30e58['plugins']['get']('Users')['me'],_0x3144c7=_0x11b6f9['getSuggestions']()['filter'](_0x464619=>_0x464619['isInContent']&&_0x464619['author']==_0x2ab405),_0x3b826b=new Set(),_0x3e17b5=new Set();for(const _0x18bf65 of _0x3144c7)if('tablePaste'==_0x18bf65['subType'])for(const _0x41ae6e of _0x18bf65['getMarkers']()){const _0x4118dd=_0x41ae6e['getRange']()['getContainedElement']();if(_0x4118dd){if(_0x4118dd['is']('element','tableCellSuggestion')&&Oe(_0x4118dd)){_0x18bf65['removeMarker'](_0x41ae6e['name']),_0x3b826b['add'](_0x4118dd),_0xd12b91=!0x0;const _0x11fa9c=_0x4118dd['nextSibling'],_0x1646a0=_0x4118dd['previousSibling'],_0x49cd20=_0x11fa9c&&_0x11fa9c['is']('element','tableCellSuggestion'),_0x4efb0a=_0x1646a0&&_0x1646a0['is']('element','tableCellSuggestion');_0x49cd20&&!_0x3b826b['has'](_0x11fa9c)&&_0x3e17b5['add'](_0x11fa9c),_0x4efb0a&&!_0x3b826b['has'](_0x1646a0)&&_0x3e17b5['add'](_0x1646a0);}else _0x4118dd['is']('element','paragraph')&&_0x4118dd['isEmpty']&&(_0x18bf65['removeMarker'](_0x41ae6e['name']),_0xd12b91=!0x0);}}else{if('tablePasteCell'==_0x18bf65['subType']){if(!_0x18bf65['attributes']||!_0x18bf65['attributes']['tablePasteChainId'])continue;const _0x416ef6=_0x18bf65['attributes']['markerAttributes'];if(_0x416ef6&&Object['keys'](_0x416ef6)['length'])continue;const _0x500537=_0x18bf65['attributes']['tablePasteChainId'];let _0x5aad0c=!0x0,_0x28ea48=!0x0;for(const _0x5ca524 of _0x3144c7)if(_0x5ca524['subType']&&_0x5ca524['subType']['startsWith']('tablePaste')){if(!_0x5ca524['attributes']['tablePasteChainId']){_0x28ea48=!0x1;break;}if(_0x5ca524['id']!=_0x18bf65['id']&&_0x5ca524['attributes']['tablePasteChainId']==_0x500537){_0x5aad0c=!0x1;break;}}_0x28ea48&&_0x5aad0c&&(_0x18bf65['removeMarkers'](),_0xd12b91=!0x0);}}for(const _0x400255 of _0x3b826b)_0x3ba862['remove'](_0x400255);for(const _0x57a7a9 of _0x3e17b5)_0x3ba862['unwrap'](_0x57a7a9);return _0xd12b91;}),_0xb30e58['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x26cf41=>_0x294aa2(_0x26cf41),'converterPriority':'high'}),_0xb30e58['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x252661,_0x433212)=>_0x433212['options']['showSuggestionHighlights']?_0x294aa2(_0x252661,!0x1):null,'converterPriority':'high'});const _0x5a647c=_0xb30e58['editing']['view'];this['listenTo'](_0x5a647c['document'],'clipboardOutput',(_0x5e239f,_0x2522ad)=>{const _0x682324=[];for(const _0x3e456a of _0x5a647c['createRangeIn'](_0x2522ad['content'])['getItems']())_0x3e456a['is']('element','suggestion-td')&&_0x682324['push'](_0x3e456a);_0x5a647c['change'](_0x227d50=>{for(const _0xc38485 of _0x682324)_0x227d50['move'](_0x227d50['createRangeIn'](_0xc38485),_0x227d50['createPositionBefore'](_0xc38485)),_0x227d50['remove'](_0xc38485);});});}}function Oe(_0x3bd8e9){if(_0x3bd8e9['isEmpty'])return!0x0;const _0xa2741=_0x3bd8e9['getChild'](0x0);return _0xa2741['is']('element','paragraph')&&_0xa2741['isEmpty'];}function Ue(_0x4c2dec,_0x5bcacf={},_0x3a9240){for(const {isAnchor:_0x13ba7a,cellHeight:_0x5f4941,cellWidth:_0x230958}of _0x3a9240['createTableWalker'](_0x4c2dec,{'includeAllSlots':!0x0,..._0x5bcacf}))if(!_0x13ba7a||0x1!=_0x5f4941||0x1!=_0x230958)return!0x1;return!0x0;}class Dt extends _0xa5f689{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x5d8587=this['editor']['plugins']['get']('TrackChangesEditing');_0x5d8587['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x5d8587['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x5d8587['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5d8587['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x5d8587['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x5d8587['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x1d084b,_0x33184d){const _0x40588f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3e12a1=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x28608e=_0x33184d['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3ac558=_0x3e12a1['getColumnGroupElement'](_0x28608e);let _0x227751=_0x3ac558?_0x3e12a1['getTableColumnsWidths'](_0x3ac558):null,_0x21e2cf=_0x28608e['getAttribute']('tableWidth')||null;const _0x3c6da2=_0x33184d['tableWidth']||_0x21e2cf,_0x3d116d=_0x33184d['columnWidths']||_0x227751,_0x3d6a10=this['editor']['plugins']['get']('Users')['me'];for(const _0x13396e of _0x40588f['getSuggestions']()){const _0x32c7ec=_0x13396e['getContainedElement']();if('resizeTable'===_0x13396e['subType']&&_0x32c7ec===_0x28608e){_0x13396e['author']!==_0x3d6a10&&_0x13396e['discard']();const _0x522016=_0x13396e['data']['commandParams'];_0x21e2cf=_0x522016[0x0]['tableWidth'],_0x227751=_0x522016[0x0]['columnWidths'];break;}}_0x1d084b({'table':_0x28608e,'tableWidth':_0x3c6da2,'columnWidths':_0x3d116d}),_0x40588f['markBlockFormat'](_0x28608e,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x21e2cf,'columnWidths':_0x227751}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x133791){if('formatBlock'!=_0x133791['type']&&'formatInline'!=_0x133791['type'])return;const {data:_0x6ea40f}=_0x133791;if(_0x6ea40f&&'resizeTable'===_0x6ea40f['formatGroupId']){const _0x15718a='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x15718a)};}}}class Mt extends _0xa5f689{['afterInit'](){const _0x5b39ec=this['editor'];_0x5b39ec['plugins']['has']('Template')&&_0x5b39ec['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0xa5f689{['afterInit'](){const _0x4964aa=this['editor'];if(!_0x4964aa['commands']['get']('insertTableOfContents'))return;_0x4964aa['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x1a942d=_0x4964aa['plugins']['get']('TrackChangesEditing'),_0xbd33ee=_0x4964aa['locale'];_0x1a942d['descriptionFactory']['registerElementLabel']('tableOfContents',_0x47b1c2=>o(_0xbd33ee,'ELEMENT_TABLE_OF_CONTENTS',_0x47b1c2));}}class Bt extends _0xa5f689{['afterInit'](){const _0x29fa8a=this['editor'];if(!_0x29fa8a['plugins']['has']('Title'))return;const _0x230a54=_0x29fa8a['plugins']['get']('TrackChangesEditing');_0x230a54['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x29fa8a['locale'],'ELEMENT_TITLE')),_0x29fa8a['model']['document']['registerPostFixer'](_0x5942f6=>{let _0x8df65=!0x1;const _0x1e342c=Array['from'](_0x29fa8a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x43ca4f,data:_0x408d31}of _0x1e342c){const {group:_0x18f5b6}=_0x230a54['_splitMarkerName'](_0x43ca4f);if('suggestion'!==_0x18f5b6||!_0x408d31['newRange'])continue;const _0x42acb=_0x408d31['newRange'],_0x46f41d=_0x42acb['end']['nodeBefore'];if(!_0x46f41d||!_0x46f41d['is']('element','title-content'))continue;if(!_0x42acb['start']['isTouching'](_0x42acb['end']))continue;const _0x1df4e2=_0x29fa8a['model']['schema']['getNearestSelectionRange'](_0x42acb['end'],'forward');if(_0x1df4e2&&_0x1df4e2['isCollapsed']){const _0x138f61=_0x5942f6['createRange'](_0x42acb['start'],_0x1df4e2['start']);_0x138f61['isEqual'](_0x42acb)||(_0x5942f6['updateMarker'](_0x43ca4f,{'range':_0x138f61}),_0x8df65=!0x0);}_0x8df65||(_0x5942f6['removeMarker'](_0x43ca4f),_0x8df65=!0x0);}return _0x8df65;});}}class Tt extends _0xa5f689{['afterInit'](){const _0x449843=this['editor'],_0x3c7005=_0x449843['plugins']['get']('TrackChangesEditing');_0x449843['plugins']['has']('Uploadcare')&&(_0x3c7005['enableCommand']('uploadcare'),_0x449843['plugins']['has']('UploadcareImageEdit')&&(_0x3c7005['enableCommand']('uploadcareImageEdit'),_0x3c7005['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x3c7005['registerBlockAttribute']('uploadcareImageId'),_0x3c7005['descriptionFactory']['registerDescriptionCallback'](_0x48e5f4=>{if('attribute'!=_0x48e5f4['type'])return;const {data:_0x302f3f}=_0x48e5f4;return _0x302f3f&&'uploadcareImageId'==_0x302f3f['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0xa5f689{['afterInit'](){const _0xc7e137=this['editor'],_0x4316ae=_0xc7e137['plugins']['get']('TrackChangesEditing');_0xc7e137['plugins']['has']('UndoEditing')&&(_0x4316ae['enableCommand']('undo'),_0x4316ae['enableCommand']('redo'));}}class Ot extends _0xa5f689{static get['requires'](){return[At];}['afterInit'](){const _0x4115a3=this['editor'];if(!_0x4115a3['plugins']['has']('TableCaptionEditing'))return;_0x4115a3['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0xa5f689{['tableProperties'];['tableCellProperties'];constructor(_0x519231){super(_0x519231),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 _0x47bc34=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x204ec3 of this['tableProperties'])_0x47bc34['enableCommand'](_0x204ec3,(_0x183abf,_0x1bab4c)=>{const _0x1facb2=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x204ec3,[_0x1facb2],this['tableProperties'],'tableProperties',_0x183abf,_0x1bab4c);});_0x47bc34['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x47bc34['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x47bc34['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x1fc0f9,_0x3860aa)=>this['handleDiscardAction'](this['tableProperties'],_0x1fc0f9,_0x3860aa)),_0x47bc34['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x6a8d56 of this['tableCellProperties'])_0x47bc34['enableCommand'](_0x6a8d56,(_0x434f3b,_0xfca51b)=>{const _0x11b4cb=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x6a8d56,_0x11b4cb,this['tableCellProperties'],'tableCellProperties',_0x434f3b,_0xfca51b);});_0x47bc34['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x47bc34['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x47bc34['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x2409be,_0x1136ef)=>this['handleDiscardAction'](this['tableCellProperties'],_0x2409be,_0x1136ef)),_0x47bc34['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x47bc34['descriptionFactory']['registerDescriptionCallback'](_0x2911eb=>this['handleSuggestionDescription'](_0x2911eb));}['_handlePropertyChange'](_0x2245b7,_0x581b84,_0x4ffeab,_0xfd6fc8,_0x370d8a,_0x2c3a1f){const _0x3cf43f=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x2c3a1f['batch'],()=>{for(const _0x1ccb1d of _0x581b84){if(this['_getSuggestion'](_0x1ccb1d,_0xfd6fc8))_0x370d8a(_0x2c3a1f);else{const _0x4a6616={};for(const _0x566c04 of _0x4ffeab){const _0x390eeb=_0x1ccb1d['getAttribute'](_0x566c04);void 0x0!==_0x390eeb&&(_0x4a6616[_0x566c04]=_0x390eeb);}_0x370d8a(_0x2c3a1f),_0x3cf43f['markBlockFormat'](_0x1ccb1d,{'commandParams':[_0x4a6616]},[],_0xfd6fc8);}}});}['handleDiscardAction'](_0x186973,_0x544820,_0x3ed021){const _0x28aded=_0x544820[0x0]['start']['nodeAfter'],_0x1165b6=_0x3ed021['commandParams'][0x0];this['editor']['model']['change'](_0x3ec3ff=>{for(const _0x56b7af of _0x186973)void 0x0!==_0x1165b6[_0x56b7af]?_0x3ec3ff['setAttribute'](_0x56b7af,_0x1165b6[_0x56b7af],_0x28aded):_0x3ec3ff['removeAttribute'](_0x56b7af,_0x28aded);});}['handleSuggestionDescription'](_0x4b3783){if(_0x4b3783['data'])switch(_0x4b3783['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x3fdbe8,_0x3d7248){const _0x5a377f=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0xc0f228 of _0x5a377f['getSuggestions']({'skipNotAttached':!0x0})){const _0x49efa2=_0xc0f228['getContainedElement']();if(_0xc0f228['subType']===_0x3d7248&&_0x49efa2===_0x3fdbe8)return _0xc0f228;}return null;}}const m='$elementName';class d extends _0xa5f689{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x45c514,_0x257665,O,E,R,U,V,G,F,L,J,K,z,W,Q,X,Y,Z,tt,it,nt,et,ot,st,rt,at,ct,ft,ht,mt,ut,H,q,gt,lt,dt,pt,kt,wt,bt,yt,St,jt,It,At,_t,Ct,vt,Ot,Nt,Dt,$t,Et,Mt,Bt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5854ec){super(_0x5854ec),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x12cacb,_0x31cb5b,_0x413c05,_0x3188e6)=>{this['_model']['change'](()=>{for(const _0x4ab00f of[..._0x3188e6,..._0x413c05])this['_model']['markers']['has'](_0x4ab00f)&&_0x5854ec['editing']['reconvertMarker'](_0x4ab00f);});}),this['descriptionFactory']=new x(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ut(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x5854ec['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x5854ec['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x5854ec['config']['get']('trackChanges.trackFormatChanges'),_0x5854ec['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x5854ec['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new N(_0x5854ec,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x3bc000=this['editor'],_0x55fd76=(_0x4905cb,_0x48fefd)=>{if('attribute'!=_0x4905cb)return'ck-suggestion-marker-'+_0x4905cb;const _0xd77805=_0x48fefd['split']('|')[0x0];return this['_isBlockAttribute'](_0xd77805)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x3bc000['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x1bfec4=>{const {id:_0x13b111,authorId:_0x296f0d,type:_0x35171e,subType:_0x18e743}=this['_splitMarkerName'](_0x1bfec4['markerName']),_0x5f0145=['ck-suggestion-marker',_0x55fd76(_0x35171e,_0x18e743)];let _0x1ea501=0xbb8;return this['activeMarkers']['includes'](_0x1bfec4['markerName'])&&(_0x5f0145['push']('ck-suggestion-marker--active'),_0x1ea501=0xbc2),'deletion'==_0x35171e&&(_0x1ea501+=0x5),{'classes':_0x5f0145,'attributes':{'data-suggestion':_0x13b111,'data-author-id':_0x296f0d},'priority':_0x1ea501};}}),_0x3bc000['conversion']['for']('dataDowncast')['add'](_0x568170=>{_0x568170['on']('addMarker:suggestion',(_0x50669c,_0x265811,_0x1b9ec1)=>{if(!_0x1b9ec1['options']['showSuggestionHighlights'])return;const _0x313e86=_0x265811['item'];if(!_0x313e86)return;const _0x3e7b20=_0x1b9ec1['mapper']['toViewElement'](_0x313e86);_0x3bc000['model']['schema']['isObject'](_0x313e86)&&_0x3e7b20&&!_0x3e7b20['getCustomProperty']('widget')&&_0x3e7b20['is']('containerElement')&&_0x43934b(_0x3e7b20,_0x1b9ec1['writer']);},{'priority':'high'});}),_0x3bc000['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x3de04b,_0x134783)=>{if(!_0x134783['options']['showSuggestionHighlights'])return null;const {id:_0x35c4f5,authorId:_0x231717,type:_0x1cafba,subType:_0x3f34c7}=this['_splitMarkerName'](_0x3de04b['markerName']);return{'classes':['ck-suggestion-marker',_0x55fd76(_0x1cafba,_0x3f34c7)],'priority':0xbb8,'attributes':{'data-suggestion':_0x35c4f5,'data-author-id':_0x231717}};}});const _0x55cb27=({showActiveMarkers:_0x2b1421=!0x0,isAttributeSuggestion:_0x29a5b8=!0x1}={})=>(_0x5636a3,_0x1a039d,_0xba6dfb)=>{if(!_0x1a039d['item'])return;const {id:_0x260212,authorId:_0xf8fb93}=this['_splitMarkerName'](_0x1a039d['markerName']);if(_0x29a5b8){const _0x2a3fb9=this['_suggestions']['get'](_0x260212),_0x2dd616=this['_getAttributeKey'](_0x2a3fb9);if(!this['_isBlockAttribute'](_0x2dd616))return;}if(_0x1a039d['item']['is']('selection'))return void _0xba6dfb['consumable']['consume'](_0x1a039d['item'],_0x5636a3['name']);const _0x4019e3=_0xba6dfb['mapper']['toViewElement'](_0x1a039d['item']);if(_0x1a039d['item']['is']('element')&&_0x3bc000['model']['schema']['isBlock'](_0x1a039d['item'])&&!_0x4019e3['getCustomProperty']('addHighlight')){_0xba6dfb['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x4019e3),_0xba6dfb['writer']['setAttribute']('data-suggestion',_0x260212,_0x4019e3),_0xba6dfb['writer']['setAttribute']('data-author-id',_0xf8fb93,_0x4019e3),_0xba6dfb['mapper']['bindElementToMarker'](_0x4019e3,_0x1a039d['markerName']),_0x2b1421&&(this['activeMarkers']['includes'](_0x1a039d['markerName'])?_0xba6dfb['writer']['addClass']('ck-suggestion-marker--active',_0x4019e3):_0xba6dfb['writer']['removeClass']('ck-suggestion-marker--active',_0x4019e3));for(const _0x466d9c of _0x3bc000['model']['createRangeIn'](_0x1a039d['item'])['getItems']())_0xba6dfb['consumable']['consume'](_0x466d9c,_0x5636a3['name']);_0xba6dfb['consumable']['consume'](_0x1a039d['item'],_0x5636a3['name']);}};_0x3bc000['conversion']['for']('dataDowncast')['add'](_0x55e3be=>{_0x55e3be['on']('addMarker:suggestion:formatBlock',(_0x5147d7,_0x2d5831,_0x2d890f)=>{_0x2d890f['options']['showSuggestionHighlights']&&_0x55cb27({'showActiveMarkers':!0x1})(_0x5147d7,_0x2d5831,_0x2d890f);},{'priority':'highest'});}),_0x3bc000['conversion']['for']('dataDowncast')['add'](_0x4148cc=>{_0x4148cc['on']('addMarker:suggestion:attribute',(_0x379b66,_0x4714cf,_0x297133)=>{_0x297133['options']['showSuggestionHighlights']&&_0x55cb27({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x379b66,_0x4714cf,_0x297133);},{'priority':'highest'});}),_0x3bc000['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x12a09d,_0x5c26c9)=>{if(_0x5c26c9['options']['showSuggestionHighlights']){const {id:_0x88943a,authorId:_0x260c55}=this['_splitMarkerName'](_0x12a09d);return _0x12a09d['includes'](':split')||_0x12a09d['includes'](':merge')?{'group':'suggestion','name':_0x12a09d['substr'](0xb),'attributes':{'data-suggestion':_0x88943a,'data-author-id':_0x260c55}}:null;}return{'group':'suggestion','name':_0x12a09d['substr'](0xb)};}}),_0x3bc000['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x9ae664,{writer:_0x14a1a1})=>{let _0x1b45a5='suggestion:'+_0x9ae664['getAttribute']('suggestion-type')+':'+_0x9ae664['getAttribute']('id');return _0x9ae664['getAttribute']('marker-count')&&(_0x1b45a5+=':'+_0x9ae664['getAttribute']('marker-count')),_0x14a1a1['createElement']('$marker',{'data-name':_0x1b45a5});}}),_0x3bc000['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x3bc000['conversion']['for']('editingDowncast')['add'](_0x1576d5=>{_0x1576d5['on']('addMarker:suggestion:formatBlock',_0x55cb27(),{'priority':'high'});}),_0x3bc000['conversion']['for']('editingDowncast')['add'](_0x277e26=>{_0x277e26['on']('addMarker:suggestion:attribute',_0x55cb27({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x3bc000['conversion']['for']('editingDowncast')['add'](_0x102b5f=>{_0x102b5f['on']('removeMarker:suggestion:formatBlock',(_0x28ed30,_0x13b07e,_0x358c8c)=>{const _0x3800c9=_0x358c8c['mapper']['markerNameToElements'](_0x13b07e['markerName']);if(_0x3800c9){for(const _0x4deede of _0x3800c9)_0x4deede['getCustomProperty']('addHighlight')||(_0x358c8c['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4deede),_0x358c8c['writer']['removeAttribute']('data-suggestion',_0x4deede),_0x358c8c['writer']['removeAttribute']('data-author-id',_0x4deede),_0x358c8c['mapper']['unbindElementFromMarkerName'](_0x4deede,_0x13b07e['markerName']));}},{'priority':'high'});}),_0x3bc000['conversion']['for']('editingDowncast')['add'](_0x2d7e56=>{_0x2d7e56['on']('removeMarker:suggestion:attribute',(_0x2b3d26,_0x339279,_0x29ba38)=>{const _0x7e9894=_0x29ba38['mapper']['markerNameToElements'](_0x339279['markerName']);if(!_0x7e9894)return;const {id:_0x293e0b}=this['_splitMarkerName'](_0x339279['markerName']),_0x2f6423=this['_suggestions']['get'](_0x293e0b),_0x3df785=this['_getAttributeKey'](_0x2f6423);if(this['_isBlockAttribute'](_0x3df785)){for(const _0x550f7d of _0x7e9894)_0x550f7d['getCustomProperty']('addHighlight')||(_0x29ba38['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x550f7d),_0x29ba38['writer']['removeAttribute']('data-suggestion',_0x550f7d),_0x29ba38['writer']['removeAttribute']('data-author-id',_0x550f7d),_0x29ba38['mapper']['unbindElementFromMarkerName'](_0x550f7d,_0x339279['markerName']));}},{'priority':'high'});}),_0x3bc000['model']['document']['registerPostFixer'](_0x48ddb4=>{let _0x534703=!0x1;const _0x1f6b21=Array['from'](_0x3bc000['model']['document']['differ']['getChangedMarkers']()),_0x36b602=new Set();for(const {name:_0x4cdd44,data:_0x2ebd73}of _0x1f6b21){const {group:_0x42767a,type:_0x16fdb0,subType:_0x121f2d,id:_0x4af965}=this['_splitMarkerName'](_0x4cdd44);if('suggestion'!==_0x42767a)continue;const _0x818bc4=this['_suggestions']['get'](_0x4af965);if(null!=_0x2ebd73['newRange']){'formatInline'==_0x16fdb0&&(_0x534703=_0x534703||Pt(_0x2ebd73['newRange'],_0x4cdd44,_0x48ddb4,_0x3bc000['model']['schema']));const _0x24aff6='attribute'==_0x16fdb0&&this['_isBlockAttribute'](_0x121f2d['split']('|')[0x0]);if(_0x2ebd73['newRange']['isCollapsed']||'$graveyard'==_0x2ebd73['newRange']['root']['rootName']||'formatBlock'==_0x16fdb0&&!Lt(_0x2ebd73['newRange'])||_0x24aff6&&!Lt(_0x2ebd73['newRange'])||'deletion'==_0x16fdb0&&!Jt(_0x2ebd73['newRange']))_0x48ddb4['removeMarker'](_0x4cdd44),_0x534703=!0x0;else{if(!_0x818bc4||!_0x818bc4['isInContent'])continue;if(_0x2ebd73['newRange']&&_0x2ebd73['oldRange']&&_0x2ebd73['newRange']['isEqual'](_0x2ebd73['oldRange']))continue;_0x36b602['add'](_0x818bc4);}}}return _0x36b602['size']>0x0&&(_0x534703=!!this['_joinWithAdjacentSuggestions'](_0x36b602)||_0x534703),_0x534703;}),_0x3bc000['model']['document']['registerPostFixer'](_0x2ff203=>{let _0x497137=!0x1;for(const _0x2fed13 of _0x3bc000['model']['document']['differ']['getChanges']())if('insert'==_0x2fed13['type'])for(const _0x5486e8 of this['_suggestions']['values']()){if(_0x5486e8['isMultiRange']||!_0x5486e8['isInContent'])continue;const _0x4683ae='formatBlock'==_0x5486e8['type'],_0x13a6f7=this['_getAttributeKey'](_0x5486e8),_0x1410f9=_0x13a6f7&&this['_isBlockAttribute'](_0x13a6f7);if(!_0x4683ae&&!_0x1410f9)continue;const _0x39f8c1=_0x5486e8['getFirstRange']();if(_0x39f8c1['start']['parent']!=_0x39f8c1['end']['parent']&&!_0x39f8c1['end']['isAtEnd']){const _0xa0082e=_0x3bc000['model']['createPositionAt'](_0x39f8c1['start']['nodeAfter'],'end'),_0x12f80b=_0x3bc000['model']['createRange'](_0x39f8c1['start'],_0xa0082e);_0x2ff203['updateMarker'](_0x5486e8['getFirstMarker'](),{'range':_0x12f80b}),_0x497137=!0x0;}}return _0x497137;}),_0x3bc000['model']['document']['registerPostFixer'](_0x127f41=>this['_processAttributeChanges'](_0x127f41)),_0x3bc000['model']['document']['registerPostFixer'](_0x3d1e69=>!_0x3d1e69['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x3d1e69)),_0x3bc000['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x3bc000['model']['document']['on']('change:data',(_0x5c3dcd,_0x53d5e1)=>{if(!_0x53d5e1['isLocal']||_0x53d5e1['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x87e37a=_0x3bc000['model']['document']['differ']['getChanges']();if(0x0==_0x87e37a['length'])return;const _0x312b52=[],_0x5b31b4=_0x87e37a['filter'](_0xd10026=>'attribute'==_0xd10026['type']),_0x3ab215=_0x87e37a['filter'](_0x25e894=>'insert'==_0x25e894['type']&&'$text'!=_0x25e894['name']);for(const _0x36cbc4 of _0x5b31b4)this['_isRegisteredAttribute'](_0x36cbc4['attributeKey'])&&_0x312b52['push']({'key':_0x36cbc4['attributeKey'],'newValue':_0x36cbc4['attributeNewValue'],'oldValue':_0x36cbc4['attributeOldValue'],'range':Kt(_0x36cbc4['range'],_0x3bc000['model'])});for(const _0x37c386 of _0x3ab215){if('rename'!=_0x37c386['action']&&'refresh'!=_0x37c386['action'])continue;const _0x584636=Ht(_0x37c386['position']['nodeAfter'],_0x3bc000['model']),_0xef3937=_0x37c386['before'];'rename'==_0x37c386['action']&&_0x312b52['push']({'key':m,'newValue':_0x37c386['name'],'oldValue':_0xef3937['name'],'range':_0x584636});for(const [_0x3ad4ab,_0x237fc6]of _0xef3937['attributes']){if(!this['_isRegisteredAttribute'](_0x3ad4ab))continue;const _0x1adcf5=_0x37c386['attributes']['get'](_0x3ad4ab);_0x237fc6!==_0x1adcf5&&_0x312b52['push']({'key':_0x3ad4ab,'newValue':_0x1adcf5,'oldValue':_0x237fc6,'range':_0x584636});}for(const [_0x3819b1,_0x508311]of _0x37c386['attributes'])this['_isRegisteredAttribute'](_0x3819b1)&&(_0xef3937['attributes']['has'](_0x3819b1)||_0x312b52['push']({'key':_0x3819b1,'newValue':_0x508311,'oldValue':null,'range':_0x584636}));}0x0!=_0x312b52['length']&&_0x3bc000['model']['enqueueChange'](_0x53d5e1,_0x28bacd=>{const _0x3568df=_0xfc77eb();for(const {range:_0x2a1594,key:_0x454cc5,oldValue:_0x16a958,newValue:_0x36c506}of _0x312b52)this['markAttributeChange'](_0x2a1594,_0x454cc5,_0x16a958,_0x36c506,{'groupId':_0x3568df});this['_reduceExistingSuggestions'](_0x28bacd,_0x312b52);});},{'priority':'lowest'}),_0x3bc000['model']['markers']['on']('update:suggestion',(_0x144429,_0x15d61e,_0x145c13)=>{if(null==_0x145c13){const {id:_0x53c647}=this['_splitMarkerName'](_0x15d61e['name']),_0x1c5e59=this['_suggestions']['get'](_0x53c647);_0x1c5e59&&_0x1c5e59['addMarkerName'](_0x15d61e['name']);}}),_0x3bc000['model']['document']['on']('change:data',()=>{const _0x2f3247=Array['from'](_0x3bc000['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5b41c5=>'suggestion'===this['_splitMarkerName'](_0x5b41c5['name'])['group']);if(0x0===_0x2f3247['length'])return;_0x2f3247['sort']((_0x45e4e3,_0x239a6b)=>{const _0x5a968b=_0x45e4e3['data']['oldRange'],_0x7b471d=_0x239a6b['data']['oldRange'];return null===_0x5a968b&&null===_0x7b471d?0x0:null===_0x5a968b&&null!==_0x7b471d?-0x1:null!==_0x5a968b&&null===_0x7b471d?0x1:_0x5a968b['start']['isBefore'](_0x7b471d['start'])?-0x1:0x1;});const _0x4ef44c=new Set(),_0x1bb128=new Set();for(const {name:_0xf2882c,data:_0xf1f63f}of _0x2f3247){const {id:_0x7333de}=this['_splitMarkerName'](_0xf2882c);if(null===_0xf1f63f['oldRange']){const _0x9e173b=this['_handleNewSuggestionMarker'](_0xf2882c);_0x1bb128['add'](_0x9e173b);}else{const _0x558633=this['_suggestions']['get'](_0x7333de);null!==_0xf1f63f['newRange']||_0x558633['isInContent']?(_0x4ef44c['add'](_0x558633['head']),_0x1bb128['add'](_0x558633)):this['_removeSuggestion'](_0x558633);}}_0x1bb128['size']>0x0&&this['_refreshSuggestionsChain'](_0x1bb128);for(const _0x232d39 of _0x4ef44c)this['fire']('suggestionChanged',_0x232d39);}),_0x3bc000['model']['on']('applyOperation',(_0x6251dd,_0x53f597)=>{const _0x54a021=_0x53f597[0x0];if(!this['_suggestions']['size'])return;if(!_0x54a021['isDocumentOperation'])return;if(_0x54a021['batch']['isUndo']||!_0x54a021['batch']['isLocal'])return;let _0x571f5e,_0x2879da;switch(_0x54a021['type']){case'insert':_0x571f5e=_0x3bc000['model']['createPositionAt'](_0x54a021['position']),_0x2879da=_0x571f5e['getShiftedBy'](_0x54a021['howMany']);break;case'split':_0x571f5e=_0x3bc000['model']['createPositionAt'](_0x54a021['splitPosition']),_0x2879da=_0x3bc000['model']['createPositionAt'](_0x54a021['moveTargetPosition']);break;case'move':_0x571f5e=_0x3bc000['model']['createPositionAt'](_0x54a021['targetPosition']),_0x2879da=_0x571f5e['getShiftedBy'](_0x54a021['howMany']);break;default:return;}const _0x222630=_0x3bc000['model']['createRange'](_0x571f5e,_0x2879da);_0x3bc000['model']['change'](()=>{for(const {suggestion:_0x1bf8bd,meta:_0x4dc533}of this['_findSuggestions'](_0x222630)){if(_0x1bf8bd['isMultiRange'])continue;if('formatInline'==_0x1bf8bd['type'])continue;const _0x11aad2=this['_getAttributeKey'](_0x1bf8bd);if(_0x11aad2&&this['_isBlockAttribute'](_0x11aad2)&&'split'!=_0x54a021['type'])continue;const _0x1949e4=_0x1bf8bd['data']&&_0x1bf8bd['data']['multipleBlocks'];('formatBlock'!=_0x1bf8bd['type']||'split'==_0x54a021['type']&&!_0x1949e4)&&(_0x4dc533['containsRangeInObject']||'insertion'==_0x1bf8bd['type']&&_0x4dc533['isOwn']||_0x1bf8bd['getFirstRange']()['containsRange'](_0x222630)&&this['_breakSuggestionMarker'](_0x1bf8bd,_0x571f5e,_0x2879da));}});},{'priority':'lowest'}),_0x3bc000['model']['on']('deleteContent',(_0x5b815d,_0x3773a4)=>{const _0xbfbbcb=_0x3773a4[0x0],_0x525ba4=_0x3773a4[0x1];if(_0x525ba4&&_0x525ba4['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0xbfbbcb['isCollapsed'])return;const _0x5eda66=_0x3bc000['model']['schema'],{start:_0x4177ba,end:_0xa7377}=_0xbfbbcb['getFirstRange'](),_0x30f9a3=_0x4177ba['nodeAfter']&&_0x5eda66['isLimit'](_0x4177ba['nodeAfter'])?null:_0x5eda66['getNearestSelectionRange'](_0x4177ba,'forward'),_0x4c6ee0=_0xa7377['nodeBefore']&&_0x5eda66['isLimit'](_0xa7377['nodeBefore'])?null:_0x5eda66['getNearestSelectionRange'](_0xa7377,'backward'),_0x580554=_0x3bc000['model']['createRange'](_0x30f9a3?_0x30f9a3['start']:_0x4177ba,_0x4c6ee0?_0x4c6ee0['end']:_0xa7377);_0x3bc000['model']['change'](_0x4b8023=>{this['markDeletion'](_0x580554);const _0x239fbe=_0x3bc000['model']['schema']['getNearestSelectionRange'](_0x580554['start']);_0xbfbbcb['is']('documentSelection')?_0x4b8023['setSelection'](_0x239fbe):_0xbfbbcb['setTo'](_0x239fbe);}),_0x5b815d['stop']();},{'priority':_0x49a958['normal']+0xa}),_0x3bc000['model']['on']('insertContent',(_0x148f09,_0x3677d0)=>{const _0x1fe850=_0x3677d0[_0x3677d0['length']-0x1];_0x1fe850&&_0x1fe850['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x3bc000['model']['change'](()=>{let _0x407384=_0x3bc000['model']['insertContent'](_0x3677d0[0x0],_0x3677d0[0x1],_0x3677d0[0x2],{'forceDefaultExecution':!0x0});if(!_0x407384)return;_0x148f09['return']=_0x407384['clone']();const _0x3c2b4c=_0x407384['end']['nodeBefore'],_0x68cd=_0x3bc000['model']['schema'];_0x3c2b4c&&_0x68cd['isBlock'](_0x3c2b4c)&&!_0x68cd['isObject'](_0x3c2b4c)&&(_0x407384=_0x3bc000['model']['createRange'](_0x407384['start'],_0x3bc000['model']['createPositionAt'](_0x3c2b4c,'end'))),this['markInsertion'](_0x407384);}),_0x148f09['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x22f489=new D(_0x3bc000,this['_suggestions']);_0x3bc000['commands']['add']('acceptSuggestion',_0x22f489),this['enableCommand']('acceptSuggestion');const _0x1edf5c=new M(_0x3bc000,this['_suggestions']);_0x3bc000['commands']['add']('discardSuggestion',_0x1edf5c),this['enableCommand']('discardSuggestion'),_0x3bc000['commands']['add']('acceptAllSuggestions',new $(_0x3bc000,_0x22f489,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x3bc000['commands']['add']('discardAllSuggestions',new $(_0x3bc000,_0x1edf5c,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x3bc000['commands']['add']('acceptSelectedSuggestions',new B(_0x3bc000,_0x22f489,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x3bc000['commands']['add']('discardSelectedSuggestions',new B(_0x3bc000,_0x1edf5c,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0xe7cb6d=_0x3bc000['plugins']['get']('CommentsRepository');this['listenTo'](_0xe7cb6d,'addComment',(_0x190251,{threadId:_0x3d7fab})=>{const _0x55e733=this['_suggestions']['get'](_0x3d7fab);_0x55e733&&_0x55e733['commentThread']&&0x1===_0x55e733['commentThread']['length']&&this['_updateSuggestionData'](_0x3d7fab,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0xe7cb6d,'removeComment',(_0x14103c,{threadId:_0xde8a7b})=>{const _0x5f3652=this['_suggestions']['get'](_0xde8a7b);_0x5f3652&&_0x5f3652['commentThread']&&!_0x5f3652['commentThread']['length']&&this['_updateSuggestionData'](_0xde8a7b,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x5af925){const _0x1a1f1b=_0x59eb01([0x42,0x57,0x4a,0x50,0x6b,0x52,0x75,0x35,0x63,0x70,0x58,0x41,0x4c,0x55,0x53,0x32,0x4b,0x4e,0x4f,0x4d,0x61,0x31,0x71,0x76,0x49,0x46,0x37,0x43,0x66,0x44,0x36,0x54,0x78,0x5a,0x48,0x6e,0x79,0x33,0x67,0x45,0x47,0x6c,0x38,0x65,0x59,0x68,0x74,0x64,0x56,0x6a,0x7a,0x69,0x30,0x51,0x39,0x34,0x62,0x6f,0x77,0x73,0x6d,0x72]),_0x5495bb=0x466bdb69,_0x48872a=0x466cb0c1^_0x5495bb,_0x1a0f4c=window[_0x59eb01([0x44,0x61,0x74,0x65])][_0x59eb01([0x6e,0x6f,0x77])](),_0x1c2a0e=_0x5af925[_0x59eb01([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x54a05c=new window[(_0x59eb01([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x9b6da2=>{_0x1c2a0e[_0x59eb01([0x6f,0x6e,0x63,0x65])](_0x59eb01([0x72,0x65,0x61,0x64,0x79]),_0x9b6da2);}),_0x4e9e15={[_0x59eb01([0x6b,0x74,0x79])]:_0x59eb01([0x45,0x43]),[_0x59eb01([0x75,0x73,0x65])]:_0x59eb01([0x73,0x69,0x67]),[_0x59eb01([0x63,0x72,0x76])]:_0x59eb01([0x50,0x2d,0x32,0x35,0x36]),[_0x59eb01([0x78])]:_0x59eb01([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]),[_0x59eb01([0x79])]:_0x59eb01([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]),[_0x59eb01([0x61,0x6c,0x67])]:_0x59eb01([0x45,0x53,0x32,0x35,0x36])},_0x7529b8=_0x1c2a0e[_0x59eb01([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x59eb01([0x67,0x65,0x74])](_0x59eb01([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x23611c(){let _0x15b1c1,_0x44d4f9=null,_0x1474f3=null;try{if(_0x7529b8==_0x59eb01([0x47,0x50,0x4c]))return _0x59eb01([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x15b1c1=_0x1b3336(),!_0x15b1c1)return _0x59eb01([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x15b1c1[_0x59eb01([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1474f3=_0x40ea4d(_0x15b1c1[_0x59eb01([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x15b1c1[_0x59eb01([0x6a,0x74,0x69])])),await _0x4b506a()?_0x339935()?_0x2e6481()?_0x59eb01([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1bdc04()?(_0x15b1c1[_0x59eb01([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x59eb01([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x44d4f9=_0x5bc2b9(_0x59eb01([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x15b1c1[_0x59eb01([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x59eb01([0x74,0x72,0x69,0x61,0x6c])&&(_0x44d4f9=_0x5bc2b9(_0x59eb01([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4a6d3f()):_0x59eb01([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x59eb01([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x59eb01([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x59eb01([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2e6481(){const _0x516e68=[_0x59eb01([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x59eb01([0x74,0x72,0x69,0x61,0x6c])][_0x59eb01([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15b1c1[_0x59eb01([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1a0f4c/0x3e8:0xe10*_0x48872a;return _0x15b1c1[_0x59eb01([0x65,0x78,0x70])]<_0x516e68;}function _0x339935(){const _0x5e63ca=_0x15b1c1[_0x59eb01([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x5e63ca)return!0x1;if(_0x5e63ca[_0x59eb01([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59eb01([0x2a])))return!0x0;if(_0x5e63ca[_0x59eb01([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59eb01([0x54,0x43])))return!0x0;if(_0x5e63ca[_0x59eb01([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59eb01([0x52,0x54,0x43]))){if(_0x33f417())return!0x0;if(_0x1646ae()||_0xb63f3c())return!0x0;}return!0x1;}function _0x1bdc04(){const _0xd0b40a=_0x15b1c1[_0x59eb01([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xd0b40a||0x0==_0xd0b40a[_0x59eb01([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x31191e}=new URL(window[_0x59eb01([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xd0b40a[_0x59eb01([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31191e))return!0x0;const _0x23579c=_0x31191e[_0x59eb01([0x73,0x70,0x6c,0x69,0x74])](_0x59eb01([0x2e]));return _0xd0b40a[_0x59eb01([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1b78e0=>_0x1b78e0[_0x59eb01([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59eb01([0x2a])))[_0x59eb01([0x6d,0x61,0x70])](_0x594af1=>_0x594af1[_0x59eb01([0x73,0x70,0x6c,0x69,0x74])](_0x59eb01([0x2e])))[_0x59eb01([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x26dc11=>_0x26dc11[_0x59eb01([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x23579c[_0x59eb01([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x59eb01([0x6d,0x61,0x70])](_0x342685=>Array(_0x23579c[_0x59eb01([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x342685[_0x59eb01([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x59eb01([0x66,0x69,0x6c,0x6c])](_0x342685[0x0]===_0x59eb01([0x2a])?_0x59eb01([0x2a]):'')[_0x59eb01([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x342685))[_0x59eb01([0x73,0x6f,0x6d,0x65])](_0x19c9ef=>_0x23579c[_0x59eb01([0x65,0x76,0x65,0x72,0x79])]((_0x4c6c20,_0x35a5c4)=>_0x19c9ef[_0x35a5c4]===_0x4c6c20||_0x19c9ef[_0x35a5c4]===_0x59eb01([0x2a])));}function _0x4a6d3f(){return _0x44d4f9&&_0x1474f3?new window[(_0x59eb01([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x713c3e,_0x1318bf)=>{_0x44d4f9[_0x59eb01([0x74,0x68,0x65,0x6e])](_0x713c3e,_0x1318bf),_0x1474f3[_0x59eb01([0x74,0x68,0x65,0x6e])](_0x2fa6b9=>{_0x2fa6b9!=_0x59eb01([0x56,0x61,0x6c,0x69,0x64])&&_0x713c3e(_0x2fa6b9);},_0x1318bf);}):_0x44d4f9||_0x1474f3||_0x59eb01([0x56,0x61,0x6c,0x69,0x64]);}}function _0x40ea4d(_0x2e4513,_0x46c668){return new window[(_0x59eb01([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ff49c=>{if(_0x5682a5())return _0x1ff49c(_0x59eb01([0x56,0x61,0x6c,0x69,0x64]));_0x39c9d8(),_0x1c2a0e[_0x59eb01([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x59eb01([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4c23e9=!0x1;const _0x244eba=_0xfc77eb();function _0x258359(_0x510193){return!!_0x510193&&(typeof _0x510193===_0x59eb01([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x510193===_0x59eb01([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x510193[_0x59eb01([0x74,0x68,0x65,0x6e])]===_0x59eb01([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x510193[_0x59eb01([0x63,0x61,0x74,0x63,0x68])]===_0x59eb01([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3bc9a1(_0x59c1bc){_0x1e3776(_0x59c1bc)[_0x59eb01([0x74,0x68,0x65,0x6e])](_0x361d6a=>{if(!_0x361d6a||_0x361d6a[_0x59eb01([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x59eb01([0x6f,0x6b]))return _0x59eb01([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5b209f(_0x1950dc(_0x244eba+_0x46c668))!=_0x361d6a[_0x59eb01([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x59eb01([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x59eb01([0x56,0x61,0x6c,0x69,0x64]);})[_0x59eb01([0x74,0x68,0x65,0x6e])](_0x396882=>(_0x3e58c4(),_0x396882),()=>{const _0x4c96c1=_0x22a411();return null==_0x4c96c1?(_0x3e58c4(),_0x59eb01([0x56,0x61,0x6c,0x69,0x64])):_0x59eb01(_0x1a0f4c-_0x4c96c1>(0x62675f69^_0x5495bb)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x59eb01([0x74,0x68,0x65,0x6e])](_0x1ff49c)[_0x59eb01([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1ff49c(_0x59eb01([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2645ae=0x465d35e9^_0x5495bb;function _0x3e58c4(){const _0x3713e5=_0x59eb01([0x6c,0x6c,0x63,0x74,0x2d])+_0x5b209f(_0x1950dc(_0x2e4513)),_0x16b5b2=_0x1eb4d3(_0x5b209f(window[_0x59eb01([0x4d,0x61,0x74,0x68])][_0x59eb01([0x63,0x65,0x69,0x6c])](_0x1a0f4c/_0x2645ae)));window[_0x59eb01([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x59eb01([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3713e5,_0x16b5b2);}function _0x22a411(){const _0xbf5146=_0x59eb01([0x6c,0x6c,0x63,0x74,0x2d])+_0x5b209f(_0x1950dc(_0x2e4513)),_0x5ac2ec=window[_0x59eb01([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x59eb01([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xbf5146);return _0x5ac2ec?window[_0x59eb01([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1eb4d3(_0x5ac2ec),0x10)*_0x2645ae:null;}function _0x1e3776(_0x22ab96){return new window[(_0x59eb01([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5d0afb,_0x1b2aa2)=>{_0x22ab96[_0x59eb01([0x74,0x68,0x65,0x6e])](_0x5d0afb,_0x1b2aa2),window[_0x59eb01([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1b2aa2,0x466a0fa9^_0x5495bb);});}}_0x1c2a0e[_0x59eb01([0x6f,0x6e])](_0x59eb01([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x246f54,_0x10aded)=>{if(_0x10aded[0x0]!=_0x2e4513)return _0x1ff49c(_0x59eb01([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x10aded[0x1]={..._0x10aded[0x1],[_0x59eb01([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x244eba};},{[_0x59eb01([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x59eb01([0x68,0x69,0x67,0x68])}),_0x1c2a0e[_0x59eb01([0x6f,0x6e])](_0x59eb01([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4c76eb=>{_0x258359(_0x4c76eb[_0x59eb01([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4c23e9=!0x0,_0x3bc9a1(_0x4c76eb[_0x59eb01([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x59eb01([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x59eb01([0x6c,0x6f,0x77])}),_0x54a05c[_0x59eb01([0x74,0x68,0x65,0x6e])](()=>{_0x4c23e9||_0x1ff49c(_0x59eb01([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5682a5(){return _0x1c2a0e[_0x59eb01([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x59eb01([0x76,0x69,0x65,0x77])][_0x59eb01([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x59eb01([0x61,0x75,0x74,0x6f]);}function _0x39c9d8(){_0x1c2a0e[_0x59eb01([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x59eb01([0x76,0x69,0x65,0x77])][_0x59eb01([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x59eb01([0x61,0x75,0x74,0x6f]);}}function _0x5bc2b9(_0x5aac8a){const _0x1eb16d=[new window[(_0x59eb01([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e9cdc=>setTimeout(_0x4e9cdc,0x4662e5a5^_0x5495bb)),_0x54a05c[_0x59eb01([0x74,0x68,0x65,0x6e])](()=>new window[(_0x59eb01([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4c60b4=>{let _0x5b6331=0x0;_0x1c2a0e[_0x59eb01([0x6d,0x6f,0x64,0x65,0x6c])][_0x59eb01([0x6f,0x6e])](_0x59eb01([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x473789,_0x2f9eb1)=>{_0x2f9eb1[0x0][_0x59eb01([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5b6331++,_0x5b6331==(0x466bda91^_0x5495bb)&&(_0x4c60b4(),_0x473789[_0x59eb01([0x6f,0x66,0x66])]());});}))];return window[_0x59eb01([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x59eb01([0x72,0x61,0x63,0x65])](_0x1eb16d)[_0x59eb01([0x74,0x68,0x65,0x6e])](()=>_0x5aac8a);}async function _0x51fc6e(){await _0x54a05c,_0x1c2a0e[_0x59eb01([0x6d,0x6f,0x64,0x65,0x6c])][_0x59eb01([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2da335,_0x1c2a0e[_0x59eb01([0x6d,0x6f,0x64,0x65,0x6c])][_0x59eb01([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2da335,_0x1c2a0e[_0x59eb01([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x59eb01([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x33f417(){return _0x179908(_0x59eb01([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4c9184(_0x59eb01([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x59eb01([0x73,0x74,0x61,0x74,0x65])]==_0x59eb01([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1646ae(){return _0x179908(_0x59eb01([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 _0xb63f3c(){return _0x179908(_0x59eb01([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x113255(_0x3c531b){const _0x4159af=_0x494c9f();_0x1c2a0e[_0x4159af]=_0x59eb01([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3c531b,_0x3c531b!=_0x59eb01([0x56,0x61,0x6c,0x69,0x64])&&_0x51fc6e();}function _0x494c9f(){const _0xb2ce0d=window[_0x59eb01([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x59eb01([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x59eb01([0x6e,0x6f,0x77])]())[_0x59eb01([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x59eb01([0x2e]),'');let _0x1dd75=_0x59eb01([0x42]);for(let _0x522ca8=0x0;_0x522ca8<_0xb2ce0d[_0x59eb01([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x522ca8+=0x2){let _0xa25c3f=window[_0x59eb01([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xb2ce0d[_0x59eb01([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x522ca8,_0x522ca8+0x2));_0xa25c3f>=_0x1a1f1b[_0x59eb01([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xa25c3f-=_0x1a1f1b[_0x59eb01([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1dd75+=_0x1a1f1b[_0xa25c3f];}return _0x1dd75;}function _0x1b3336(){const _0x3a0a30=_0x7529b8[_0x59eb01([0x73,0x70,0x6c,0x69,0x74])](_0x59eb01([0x2e]));if(0x3!=_0x3a0a30[_0x59eb01([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5760e2(_0x3a0a30[0x1]);function _0x5760e2(_0x2fd702){const _0x4b3ca0=_0x395dd5(_0x2fd702);return _0x4b3ca0&&_0x1674ad()?_0x4b3ca0:null;function _0x1674ad(){const _0x1bffa6=_0x4b3ca0[_0x59eb01([0x6a,0x74,0x69])],_0x4b98e7=window[_0x59eb01([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1bffa6[_0x59eb01([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1bffa6[_0x59eb01([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4fa1f6={..._0x4b3ca0,[_0x59eb01([0x6a,0x74,0x69])]:_0x1bffa6[_0x59eb01([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1bffa6[_0x59eb01([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4fa1f6[_0x59eb01([0x76,0x63])],_0x1950dc(_0x4fa1f6)==_0x4b98e7;}}}async function _0x4b506a(){let _0x596d05=!0x0;try{const _0xcaeaf1=_0x7529b8[_0x59eb01([0x73,0x70,0x6c,0x69,0x74])](_0x59eb01([0x2e])),[_0x8253ed,_0x4ed235,_0x29d53b]=_0xcaeaf1;return _0x4f9cd4(_0x8253ed),await _0xc4744a(_0x8253ed,_0x4ed235,_0x29d53b),_0x596d05;}catch{return!0x1;}function _0x4f9cd4(_0x4d0baa){const _0x2f7d97=_0x395dd5(_0x4d0baa);_0x2f7d97&&_0x2f7d97[_0x59eb01([0x61,0x6c,0x67])]==_0x59eb01([0x45,0x53,0x32,0x35,0x36])||(_0x596d05=!0x1);}async function _0xc4744a(_0x70b3cc,_0x4ed115,_0x13a330){const _0x156ab6=window[_0x59eb01([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x59eb01([0x66,0x72,0x6f,0x6d])](_0x4d7efa(_0x13a330),_0x953e2a=>_0x953e2a[_0x59eb01([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3f60be=new window[(_0x59eb01([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x59eb01([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x70b3cc+_0x59eb01([0x2e])+_0x4ed115),_0x581f80=window[_0x59eb01([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x59eb01([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x581f80)return;const _0x59189c=await _0x581f80[_0x59eb01([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x59eb01([0x6a,0x77,0x6b]),_0x4e9e15,{[_0x59eb01([0x6e,0x61,0x6d,0x65])]:_0x59eb01([0x45,0x43,0x44,0x53,0x41]),[_0x59eb01([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x59eb01([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x59eb01([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x581f80[_0x59eb01([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x59eb01([0x6e,0x61,0x6d,0x65])]:_0x59eb01([0x45,0x43,0x44,0x53,0x41]),[_0x59eb01([0x68,0x61,0x73,0x68])]:{[_0x59eb01([0x6e,0x61,0x6d,0x65])]:_0x59eb01([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x59189c,_0x156ab6,_0x3f60be)||(_0x596d05=!0x1);}}function _0x395dd5(_0x17524b){return _0x17524b[_0x59eb01([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x59eb01([0x65,0x79]))?JSON[_0x59eb01([0x70,0x61,0x72,0x73,0x65])](_0x4d7efa(_0x17524b)):null;}function _0x4d7efa(_0x426b18){return window[_0x59eb01([0x61,0x74,0x6f,0x62])](_0x426b18[_0x59eb01([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x59eb01([0x2b]))[_0x59eb01([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x59eb01([0x2f])));}function _0x1950dc(_0x5a31ea){let _0x22a18f=0x1505;function _0x27edc9(_0x24fc2d){for(let _0xc19f81=0x0;_0xc19f81<_0x24fc2d[_0x59eb01([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xc19f81++){const _0x27e482=_0x24fc2d[_0x59eb01([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xc19f81);_0x22a18f=(_0x22a18f<<0x5)+_0x22a18f+_0x27e482,_0x22a18f&=_0x22a18f;}}function _0x56f7cc(_0x5c1aa9){Array[_0x59eb01([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5c1aa9)?_0x5c1aa9[_0x59eb01([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x56f7cc):_0x5c1aa9&&typeof _0x5c1aa9==_0x59eb01([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x59eb01([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5c1aa9)[_0x59eb01([0x73,0x6f,0x72,0x74])]()[_0x59eb01([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3a6797,_0x5dd241])=>{_0x27edc9(_0x3a6797),_0x56f7cc(_0x5dd241);}):_0x27edc9(window[_0x59eb01([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5c1aa9));}return _0x56f7cc(_0x5a31ea),_0x22a18f>>>0x0;}function _0x5b209f(_0x5f6654){return _0x5f6654[_0x59eb01([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x59eb01([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x59eb01([0x30]));}function _0x1eb4d3(_0x350dd5){return _0x350dd5[_0x59eb01([0x73,0x70,0x6c,0x69,0x74])]('')[_0x59eb01([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x59eb01([0x6a,0x6f,0x69,0x6e])]('');}function _0x179908(_0x337e62){return _0x1c2a0e[_0x59eb01([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x59eb01([0x68,0x61,0x73])](_0x337e62);}function _0x4c9184(_0x31ba64){return _0x1c2a0e[_0x59eb01([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x59eb01([0x67,0x65,0x74])](_0x31ba64);}function _0x2da335(){}function _0x59eb01(_0x59226e){return _0x59226e['map'](_0x32d1fb=>String['fromCharCode'](_0x32d1fb))['join']('');}_0x113255(await _0x23611c());}(this);}set['adapter'](_0x3663d7){if(this['_adapter'])throw new _0x3747a9('track-changes-adapter-already-set',this);this['_adapter']=_0x3663d7;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0xbdb54a=!0x1,toJSON:_0x52da8b=!0x1}={}){const _0x96f091=[];for(const _0x1f71dd of this['_suggestions']['values']())_0xbdb54a&&!_0x1f71dd['isInContent']||_0x96f091['push'](_0x1f71dd);return _0x52da8b?_0x96f091['map'](_0xf5594d=>_0xf5594d['toJSON']()):_0x96f091;}['getSuggestion'](_0x4009ef){const _0x2d043b=this['_suggestions']['get'](_0x4009ef);if(!_0x2d043b)throw new _0x3747a9('track-changes-suggestion-not-found',this);return _0x2d043b;}['hasSuggestion'](_0xf59aaf){return this['_suggestions']['has'](_0xf59aaf);}['addSuggestionData'](_0x49d03c){const {authorId:_0x1f852f,id:_0x2e0351,originalSuggestionId:_0x335b16,attributes:_0x3c17a8}=_0x49d03c,[_0x5a38f0,_0x567fe3]=_0x49d03c['type']['split'](':'),_0x223d3f=this['_suggestions']['get'](_0x2e0351)||this['_createSuggestion'](_0x5a38f0,_0x567fe3,_0x2e0351,_0x1f852f,_0x3c17a8,_0x335b16);if(this['_addThreadToSuggestion'](_0x223d3f),this['_checkSuggestionCorrectness'](_0x223d3f,_0x5a38f0,_0x567fe3||null,_0x1f852f),_0x223d3f['createdAt']=_0x49d03c['createdAt'],_0x223d3f['_isDataLoaded']=!0x0,_0x3c17a8&&_0x3c17a8['@external']){const _0x4c9525=_0x3c17a8['@external'],_0x44d52f=this['_getExternalAuthor'](_0x4c9525['authorName']);_0x223d3f['authoredAt']=_0x4c9525['createdAt'],_0x223d3f['author']=_0x44d52f,_0x223d3f['isExternal']=!0x0;}else _0x223d3f['authoredAt']=_0x49d03c['createdAt'];switch(_0x49d03c['data']&&(_0x223d3f['data']=_0x49d03c['data']),_0x49d03c['attributes']&&(_0x223d3f['attributes']=_0x49d03c['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x223d3f['_saved']=!0x0),this['_suggestionState']['get'](_0x223d3f)){case'notReady':this['_suggestionState']['set'](_0x223d3f,'dataReady');break;case'markerReady':_0x223d3f['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x223d3f])),this['_refreshSuggestionsChain'](new Set([_0x223d3f])),this['_suggestionState']['set'](_0x223d3f,'ready'),this['fire']('suggestionLoaded',_0x223d3f)):this['_suggestionState']['set'](_0x223d3f,'removed');}return _0x223d3f;}['acceptSuggestion'](_0x277f4e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4f54ad of _0x277f4e['getAllAdjacentSuggestions']())_0x4f54ad['accept']();});});}['discardSuggestion'](_0x16b24f){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xda3edd of _0x16b24f['getAllAdjacentSuggestions']())_0xda3edd['discard']();});});}['enableCommand'](_0x9e5f66,_0x4bba26){const _0x1e5390=this['editor']['commands']['get'](_0x9e5f66);if(!_0x1e5390)throw new _0x3747a9('track-changes-command-not-found',this,{'commandName':_0x9e5f66});if(this['_enabledCommands']['has'](_0x1e5390))throw new _0x3747a9('track-changes-enable-command-twice',this,{'commandName':_0x9e5f66});this['_enabledCommands']['add'](_0x1e5390),_0x4bba26&&_0x1e5390['on']('execute',(_0x2a05dd,_0x442839)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x442839['length']>0x0&&_0x442839[_0x442839['length']-0x1]&&_0x442839[_0x442839['length']-0x1]['forceDefaultExecution']?_0x442839['pop']():(_0x2a05dd['return']=_0x4bba26((..._0x3b0f49)=>_0x1e5390['execute'](..._0x3b0f49,{'forceDefaultExecution':!0x0}),..._0x442839),_0x2a05dd['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x1af276){let _0x6adebd,_0x28012c;const _0x376ab5=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x6adebd=_0x1af276();}catch(_0x544b62){_0x28012c=_0x544b62;}return _0x376ab5||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x28012c&&_0x3747a9['rethrowUnexpectedError'](_0x28012c,this),_0x6adebd;}['markInsertion'](_0x150638,_0x5553d3=null,_0x208938={}){if(_0x150638['isCollapsed'])return null;const _0x5b5780=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x208938['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x53fd6d,meta:_0xe77978}of this['_findSuggestions'](_0x150638,'insertion'))if(_0xe77978['isOwn']){if(!_0xe77978['isNextTo']){if(_0xe77978['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Wt(_0x53fd6d,_0x208938))continue;return _0x53fd6d;}if(Wt(_0x53fd6d,_0x208938))return _0x53fd6d;this['_breakSuggestionMarker'](_0x53fd6d,_0x150638['start'],_0x150638['end']);break;}if(_0x5553d3==_0x53fd6d['subType']&&Wt(_0x53fd6d,_0x208938)){const _0x47562a=_0x53fd6d['getFirstRange']();return _0x47562a['start']['isEqual'](_0x150638['end'])?this['_setSuggestionRange'](_0x53fd6d,this['_model']['createRange'](_0x150638['start'],_0x47562a['end'])):this['_setSuggestionRange'](_0x53fd6d,this['_model']['createRange'](_0x47562a['start'],_0x150638['end'])),_0x53fd6d;}}const _0x4d12de=_0xfc77eb(),_0x3b7c99=_0x5b5780['id'],_0x59f772=_0x5553d3?'insertion:'+_0x5553d3:'insertion',_0xf35f3b=this['_setSuggestionData']({'id':_0x4d12de,'type':_0x59f772,'createdAt':new Date(),'authorId':_0x3b7c99,'attributes':_0x208938});return this['_addSuggestionMarker'](_0x59f772,_0x4d12de,_0x3b7c99,_0x150638),_0xf35f3b;}['markMultiRangeInsertion'](_0x37d9d3,_0x1bf4fd='multi',_0x5d963e={}){const _0x1ee7b1=this['editor']['plugins']['get']('Users')['me'],_0x51f3dc=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x1bf4fd,'join');this['_trackingSessionId']&&(_0x5d963e['trackingSessionId']=this['_trackingSessionId']);for(const _0x57a0b9 of this['getSuggestions']())if(_0x57a0b9['author']['id']==_0x1ee7b1['id']&&'insertion'==_0x57a0b9['type']&&_0x57a0b9['subType']==_0x1bf4fd&&Wt(_0x57a0b9,_0x5d963e)&&(_0x51f3dc(_0x57a0b9['getRanges'](),_0x37d9d3)||_0x51f3dc(_0x37d9d3,_0x57a0b9['getRanges']()))){for(const _0x55f422 of _0x37d9d3)_0x57a0b9['addRange'](_0x55f422);return _0x57a0b9;}for(const {suggestion:_0x762aeb,meta:_0x4c9981}of this['_findSuggestions'](_0x37d9d3,'insertion')){if(!_0x4c9981['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x4c9981['containsRangeInObject'])continue;if(!Wt(_0x762aeb,_0x5d963e))continue;let _0x27fb01=!0x0;for(const _0x88adcd of _0x762aeb['getRanges']())for(const _0x5b28e3 of _0x37d9d3)if(!_0x88adcd['containsRange'](_0x5b28e3)){_0x27fb01=!0x1;break;}if(_0x27fb01)return _0x762aeb;}const _0x28aa7c=_0xfc77eb(),_0x476ee1=_0x1ee7b1['id'],_0x1cdf37='insertion:'+_0x1bf4fd,_0x1efe9c=this['_setSuggestionData']({'id':_0x28aa7c,'type':_0x1cdf37,'createdAt':new Date(),'authorId':_0x476ee1,'attributes':_0x5d963e});for(const _0x185ce7 of _0x37d9d3)this['_addSuggestionMarker'](_0x1cdf37,_0x28aa7c,_0x476ee1,_0x185ce7,T['getMultiRangeId']());return _0x1efe9c;}['markInlineFormat'](_0x2b3a8c,_0x38f240,_0x311586=null,_0x4f8c90={}){if(_0x311586=_0x311586||Gt(_0x38f240),_0x2b3a8c['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x4f8c90['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3a0f19=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x311586,'accept');return this['forceDefaultExecution'](()=>_0x3a0f19([_0x2b3a8c],_0x38f240,_0x4f8c90)),null;}const _0x162dcd=this['editor']['plugins']['get']('Users')['me'],_0x3363e2=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x2e0390,meta:_0x226ab6}of this['_findSuggestions'](_0x2b3a8c,'insertion'))_0x226ab6['isOwn']&&!_0x226ab6['isInsideObject']&&_0x3363e2['push'](..._0x2e0390['getRanges']());}const _0x2f2b31=function(_0x517d33,_0xaa0744){const _0x46e018=[];for(const _0x2547ec of _0xaa0744){const _0x53bc2b=_0x517d33['getIntersection'](_0x2547ec);_0x53bc2b&&_0x46e018['push'](_0x53bc2b);}return _0x46e018;}(_0x2b3a8c,_0x3363e2),_0x393030=function(_0x54f6e1,_0x53681c){const _0x29aba6=[_0x54f6e1];for(const _0x3e6dce of _0x53681c){let _0x5bd649=0x0;for(;_0x5bd649<_0x29aba6['length'];){const _0x3532b6=_0x29aba6[_0x5bd649]['getDifference'](_0x3e6dce);_0x29aba6['splice'](_0x5bd649,0x1,..._0x3532b6),_0x5bd649+=_0x3532b6['length'];}}return _0x29aba6;}(_0x2b3a8c,_0x3363e2);_0x2f2b31['length']&&this['_model']['change'](()=>{for(const _0xf0794a of _0x2f2b31){const _0x591f43=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x311586,'accept');this['forceDefaultExecution'](()=>_0x591f43([_0xf0794a],_0x38f240,_0x4f8c90));}});for(const _0x5d0851 of _0x393030){let _0x4a053f=null,_0x49265f=_0x5d0851['start'],_0x435988=_0x5d0851['end'];for(const {suggestion:_0xb5f388,meta:_0x20f40b}of this['_findSuggestions'](_0x5d0851,'formatInline')){if(!_0x20f40b['isOwn'])continue;if(_0xb5f388['subType']!=_0x311586)continue;if(!Wt(_0xb5f388,_0x4f8c90))continue;const _0x439061=_0xb5f388['getFirstRange']();if(_0x439061['containsRange'](_0x5d0851,!0x0))return null;_0x49265f=_0x49265f['isBefore'](_0x439061['start'])?_0x49265f:_0x439061['start'],_0x435988=_0x435988['isAfter'](_0x439061['end'])?_0x435988:_0x439061['end'],_0x4a053f?_0x439061['start']['isBefore'](_0x4a053f['getFirstRange']()['start'])?(_0x4a053f['removeMarkers'](),_0x4a053f=_0xb5f388):_0xb5f388['removeMarkers']():_0x4a053f=_0xb5f388;}const _0x1eb673=this['_model']['createRange'](_0x49265f,_0x435988);if(_0x4a053f)this['_setSuggestionRange'](_0x4a053f,_0x1eb673);else{const _0x5b2c1a=_0xfc77eb(),_0xebeddb=_0x162dcd['id'];this['_setSuggestionData']({'id':_0x5b2c1a,'type':'formatInline:'+_0x311586,'data':_0x38f240,'createdAt':new Date(),'authorId':_0xebeddb,'attributes':_0x4f8c90}),this['_addSuggestionMarker']('formatInline:'+_0x311586,_0x5b2c1a,_0xebeddb,_0x1eb673);}}return null;}['markBlockFormat'](_0x33dc4d,_0x243792,_0x30d5f0=[],_0x641def=null,_0x418091={}){_0x243792['formatGroupId']||(_0x243792['formatGroupId']=_0x243792['commandName']),_0x243792['multipleBlocks']=_0x33dc4d['is']('range'),_0x641def=_0x641def||Gt(_0x243792);const _0x262899=_0x30d5f0['map'](_0x3e3e9b=>Ht(_0x3e3e9b,this['_model'])),_0x13c329=_0x33dc4d['is']('range')?_0x33dc4d:Ht(_0x33dc4d,this['_model']);if(this['_trackingSessionId']&&(_0x418091['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x57a9b3=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x641def,'accept');return this['forceDefaultExecution'](()=>_0x57a9b3([_0x13c329],_0x243792,_0x418091)),null;}_0x262899['push'](_0x13c329);let _0x2cf95e=!0x0;for(const _0x5e1d7a of _0x262899)if(!this['_rangeIsInLocalUserInsertion'](_0x5e1d7a)){_0x2cf95e=!0x1;break;}if(_0x2cf95e&&'always'!==this['_trackFormatChanges']){const _0x3d4b4f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x641def,'accept');return this['forceDefaultExecution'](()=>_0x3d4b4f([_0x13c329],_0x243792,_0x418091)),null;}let _0x11ceb6=null,_0xbb04c4=_0x13c329['start'],_0x3f3aaa=_0x13c329['end'];for(const {suggestion:_0x5e4d7e,meta:_0x2293b4}of this['_findSuggestions'](_0x13c329,'formatBlock')){if(!_0x2293b4['isOwn'])continue;if(_0x2293b4['isNextTo']||_0x2293b4['containsRangeInObject']||_0x2293b4['isInsideObject'])continue;if(_0x5e4d7e['data']['formatGroupId']!=_0x243792['formatGroupId'])continue;if(!Wt(_0x5e4d7e,_0x418091))continue;const _0x23b817=_0x5e4d7e['getFirstRange']();if(_0x5e4d7e['subType']==_0x641def){if(_0x23b817['containsRange'](_0x13c329,!0x0))return null;_0xbb04c4=_0xbb04c4['isBefore'](_0x23b817['start'])?_0xbb04c4:_0x23b817['start'],_0x3f3aaa=_0x3f3aaa['isAfter'](_0x23b817['end'])?_0x3f3aaa:_0x23b817['end'],_0x11ceb6?_0x23b817['start']['isBefore'](_0x11ceb6['getFirstRange']()['start'])?(_0x11ceb6['removeMarkers'](),_0x11ceb6=_0x5e4d7e):_0x5e4d7e['removeMarkers']():_0x11ceb6=_0x5e4d7e;}else{const _0x209fc8=_0x13c329['getIntersection'](_0x23b817);this['_cutOutSuggestionMarker'](_0x5e4d7e,_0x209fc8);}}const _0x44cc84=this['editor']['plugins']['get']('Users')['me'],_0x53bc5a=_0xfc77eb(),_0x47381b=_0x44cc84['id'];if(_0x11ceb6)return this['_setSuggestionRange'](_0x11ceb6,this['_model']['createRange'](_0xbb04c4,_0x3f3aaa)),_0x11ceb6;{const _0x3b51e9=this['_setSuggestionData']({'id':_0x53bc5a,'type':'formatBlock:'+_0x641def,'data':_0x243792,'createdAt':new Date(),'authorId':_0x47381b,'attributes':_0x418091});return this['_addSuggestionMarker']('formatBlock:'+_0x641def,_0x53bc5a,_0x47381b,this['_model']['createRange'](_0xbb04c4,_0x3f3aaa)),_0x3b51e9;}}['markMultiRangeBlockFormat'](_0x3786ff,_0x5b1a9b,_0x5d6cfd=[],_0x530a46=null,_0x4c7d5c={}){_0x5b1a9b['formatGroupId']||(_0x5b1a9b['formatGroupId']=_0x5b1a9b['commandName']);const _0x20b18b=_0x3786ff[0x0];_0x5b1a9b['multipleBlocks']=_0x20b18b['is']('range'),_0x530a46=_0x530a46||Gt(_0x5b1a9b);const _0x3a11d1=_0x5d6cfd['map'](_0x531488=>Ht(_0x531488,this['_model'])),_0x201e47=_0x20b18b['is']('range')?_0x3786ff:_0x3786ff['map'](_0xaab8d2=>Ht(_0xaab8d2,this['_model']));if(this['_trackingSessionId']&&(_0x4c7d5c['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x7cb43e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x530a46,'accept');return this['forceDefaultExecution'](()=>_0x7cb43e(_0x201e47,_0x5b1a9b,_0x4c7d5c)),null;}_0x3a11d1['push'](..._0x201e47);let _0x28716a=!0x0;for(const _0x438a93 of _0x3a11d1)if(!this['_rangeIsInLocalUserInsertion'](_0x438a93)){_0x28716a=!0x1;break;}if(_0x28716a&&'always'!==this['_trackFormatChanges']){const _0x558e7b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x530a46,'accept');return this['forceDefaultExecution'](()=>_0x558e7b(_0x201e47,_0x5b1a9b,_0x4c7d5c)),null;}const _0x33a21b=this['editor']['plugins']['get']('Users')['me'];for(const _0x5cc291 of this['getSuggestions']()){const _0x29e843=_0x5cc291['data'];if(_0x5cc291['author']['id']!=_0x33a21b['id'])continue;if('formatBlock'!=_0x5cc291['type']||_0x29e843['formatGroupId']!=_0x5b1a9b['formatGroupId'])continue;if(!Wt(_0x5cc291,_0x4c7d5c))continue;const _0x3964eb=_0x5cc291['subType']==_0x530a46;for(let _0x189ab6=0x0;_0x189ab6<_0x201e47['length'];_0x189ab6++){const _0x5f20a2=_0x201e47[_0x189ab6];for(const _0x7986a6 of _0x5cc291['getMarkers']()){const _0xf4912b=_0x7986a6['getRange']();if(_0x5f20a2['isEqual'](_0xf4912b)){_0x3964eb?(_0x201e47['splice'](_0x189ab6,0x1),_0x189ab6--):_0x5cc291['removeMarker'](_0x7986a6['name']);break;}}}}if(0x0==_0x201e47['length'])return null;const _0x5a840c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x530a46,'join');for(const _0x39ccdd of this['getSuggestions']()){const _0x52eee4=_0x39ccdd['data'];if(_0x39ccdd['author']['id']==_0x33a21b['id']&&('formatBlock'==_0x39ccdd['type']&&_0x52eee4['formatGroupId']==_0x5b1a9b['formatGroupId']&&_0x39ccdd['subType']==_0x530a46&&Wt(_0x39ccdd,_0x4c7d5c)&&(_0x5a840c(_0x39ccdd['getRanges'](),_0x201e47)||_0x5a840c(_0x201e47,_0x39ccdd['getRanges']())))){for(const _0x3e2aa0 of _0x201e47)_0x39ccdd['addRange'](_0x3e2aa0);return _0x39ccdd;}}const _0x410e81=_0xfc77eb(),_0x10a133=_0x33a21b['id'],_0x53a216='formatBlock:'+_0x530a46,_0x10d7c5=this['_setSuggestionData']({'id':_0x410e81,'type':_0x53a216,'data':_0x5b1a9b,'createdAt':new Date(),'authorId':_0x10a133,'attributes':_0x4c7d5c});for(const _0x5d17c8 of _0x201e47)this['_addSuggestionMarker'](_0x53a216,_0x410e81,_0x10a133,_0x5d17c8,T['getMultiRangeId']());return _0x10d7c5;}['markDeletion'](_0x146102,_0x1016c2=null,_0xca2bfa={}){if(_0x146102['isCollapsed'])return null;const _0x1cf5e8=this['editor']['plugins']['get']('Users')['me'],_0x2fb9cb=new _0x5c02ad(_0x146102['start'],_0x146102['end']);this['_trackingSessionId']&&(_0xca2bfa['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x398960,meta:_0x2ca813}of this['_findSuggestions'](_0x2fb9cb,'insertion'))if(_0x2ca813['isOwn']&&!_0x2ca813['isNextTo']){if(_0x398960['isMultiRange']){const _0x325918=_0x398960['getRanges']()['filter'](_0x77c820=>'$graveyard'!=_0x77c820['root']['rootName']);_0x325918['every'](_0x19e2a7=>_0x2fb9cb['containsRange'](_0x19e2a7,!0x0))&&_0x398960['discard']();if(_0x325918['some'](_0x19248e=>_0x19248e['containsRange'](_0x2fb9cb,!0x0))){const _0x3a3cc4=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1016c2,'accept');return this['forceDefaultExecution'](()=>_0x3a3cc4([_0x2fb9cb],null,_0xca2bfa)),null;}}else{const _0x22007a=_0x2fb9cb['getIntersection'](_0x398960['getFirstRange']());null!==_0x22007a&&_0x398960['_onDiscard']([_0x22007a],null,_0xca2bfa);}}if(_0x2fb9cb['detach'](),_0x2fb9cb['isCollapsed']||'$graveyard'==_0x2fb9cb['root']['rootName'])return null;let _0x45ec54=null,_0x24acd4=_0x2fb9cb['start'],_0x46c2f2=_0x2fb9cb['end'];const _0x10d556=this['_findSuggestions'](_0x2fb9cb,'deletion');for(const {suggestion:_0xafda0c,meta:_0x49d114}of _0x10d556){const _0x3301df=this['_model']['createRange'](_0x24acd4,_0x46c2f2);if(_0x49d114['isOwn']&&(this['_mergeNestedSuggestions']||!_0x49d114['containsRangeInObject']&&!_0x49d114['isInsideObject'])){if(_0xafda0c['isMultiRange']){if(!Wt(_0xafda0c,_0xca2bfa))continue;let _0x65a2c=!0x0;for(const _0x199cd1 of _0xafda0c['getRanges']()){if(_0x199cd1['containsRange'](_0x3301df,!0x0))return _0xafda0c;_0x3301df['containsRange'](_0x199cd1)||(_0x65a2c=!0x1);}_0x65a2c&&_0xafda0c['discard']();}else{const _0xc2377b=_0xafda0c['getFirstRange']();if(_0xc2377b['containsRange'](_0x3301df,!0x0))return _0xafda0c;if(!Wt(_0xafda0c,_0xca2bfa)){_0x3301df['containsRange'](_0xc2377b)?_0xafda0c['removeMarkers']():_0xc2377b['containsPosition'](_0x24acd4)?_0x24acd4=_0xc2377b['end']:_0xc2377b['containsPosition'](_0x46c2f2)&&(_0x46c2f2=_0xc2377b['start']);continue;}_0x24acd4=_0x24acd4['isBefore'](_0xc2377b['start'])?_0x24acd4:_0xc2377b['start'],_0x46c2f2=_0x46c2f2['isAfter'](_0xc2377b['end'])?_0x46c2f2:_0xc2377b['end'],_0xca2bfa=Object['assign']({},_0xafda0c['attributes']),_0x45ec54?_0xc2377b['start']['isBefore'](_0x45ec54['getFirstRange']()['start'])?(_0x45ec54['removeMarkers'](),_0x45ec54=_0xafda0c):_0xafda0c['removeMarkers']():_0x45ec54=_0xafda0c;}}}if(_0x45ec54)return this['_setSuggestionRange'](_0x45ec54,this['_model']['createRange'](_0x24acd4,_0x46c2f2)),_0x45ec54;{const _0x41a7f1=_0xfc77eb(),_0x25aaee=this['_model']['createRange'](_0x24acd4,_0x46c2f2),_0x4a581b=_0x1cf5e8['id'],_0x3e5be8=_0x1016c2?'deletion:'+_0x1016c2:'deletion',_0x55df3a=this['_setSuggestionData']({'id':_0x41a7f1,'type':_0x3e5be8,'createdAt':new Date(),'authorId':_0x4a581b,'attributes':_0xca2bfa});return this['_addSuggestionMarker'](_0x3e5be8,_0x41a7f1,_0x4a581b,_0x25aaee),_0x55df3a;}}['markMultiRangeDeletion'](_0x30ff01,_0x34a8d2='multi',_0x1549b7={}){const _0x20f260=this['editor']['plugins']['get']('Users')['me'],_0x3f43e9=_0x30ff01['map'](_0x15b13e=>new _0x5c02ad(_0x15b13e['start'],_0x15b13e['end'])),_0x19200c=new Set();this['_trackingSessionId']&&(_0x1549b7['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5c278b,meta:_0x12a546}of this['_findSuggestions'](_0x3f43e9,'insertion'))_0x12a546['isOwn']&&!_0x12a546['isNextTo']&&_0x19200c['add'](_0x5c278b);for(const _0x2fb9f7 of _0x19200c)if(_0x2fb9f7['isMultiRange']){const _0x5a728a=_0x2fb9f7['getRanges']();(!_0x2fb9f7['attributes']||!_0x2fb9f7['attributes']['skipNestingCheck'])&&(_0x5a728a['every'](_0x4798a3=>_0x3f43e9['some'](_0x11f551=>_0x11f551['containsRange'](_0x4798a3,!0x0)))&&_0x2fb9f7['discard']());if(_0x3f43e9['every'](_0xf35c14=>_0x5a728a['some'](_0x10420e=>_0x10420e['containsRange'](_0xf35c14,!0x0)))){const _0x5a62c7=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x34a8d2,'accept');return this['forceDefaultExecution'](()=>_0x5a62c7(_0x30ff01,null,_0x1549b7)),null;}}else{const _0x1d04e2=_0x2fb9f7['getFirstRange']();_0x3f43e9['some'](_0x51ca5a=>_0x51ca5a['containsRange'](_0x1d04e2,!0x0))&&_0x2fb9f7['discard']();if(_0x3f43e9['every'](_0x1ea372=>_0x1d04e2['containsRange'](_0x1ea372,!0x0))){const _0x3ceb59=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x34a8d2,'accept');return this['forceDefaultExecution'](()=>_0x3ceb59(_0x3f43e9,null,_0x1549b7)),null;}}const _0x3692df=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x34a8d2,'join');let _0x39993e=null;for(const _0xd873ca of this['getSuggestions']())if(_0xd873ca['author']['id']==_0x20f260['id']&&_0xd873ca['isInContent']&&'deletion'==_0xd873ca['type']&&_0xd873ca['subType']==_0x34a8d2&&Wt(_0xd873ca,_0x1549b7)&&(_0x3692df(_0xd873ca['getRanges'](),_0x3f43e9)||_0x3692df(_0x3f43e9,_0xd873ca['getRanges']()))){if(_0x39993e){if(_0xd873ca['commentThread']&&_0xd873ca['commentThread']['length'])continue;for(const _0xbd1fbf of _0xd873ca['getRanges']())_0x39993e['isIntersectingWithRange'](_0xbd1fbf)||_0x39993e['addRange'](_0xbd1fbf);_0xd873ca['removeMarkers']();}else{_0x39993e=_0xd873ca;for(const _0x4082b7 of _0x3f43e9)_0xd873ca['isIntersectingWithRange'](_0x4082b7)||_0xd873ca['addRange'](_0x4082b7);}}if(_0x39993e)return _0x39993e;_0x19200c['clear']();for(const {suggestion:_0x322658,meta:_0x5db45e}of this['_findSuggestions'](_0x3f43e9,'deletion'))_0x5db45e['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5db45e['containsRangeInObject']&&!_0x5db45e['isInsideObject'])&&Wt(_0x322658,_0x1549b7)&&_0x19200c['add'](_0x322658);for(const _0x28eb9e of _0x19200c){const _0x5455a8=_0x28eb9e['getRanges']();if(!_0x1549b7||!_0x1549b7['skipNestingCheck']){if(_0x3f43e9['every'](_0x52ca8e=>_0x5455a8['some'](_0x51f576=>_0x51f576['containsRange'](_0x52ca8e,!0x0))))return _0x28eb9e;}(!_0x28eb9e['attributes']||!_0x28eb9e['attributes']['skipNestingCheck'])&&(_0x5455a8['every'](_0x4e493c=>_0x3f43e9['some'](_0x3c31c7=>_0x3c31c7['containsRange'](_0x4e493c,!0x0)))&&_0x28eb9e['discard']());}const _0x3d7b7d=_0xfc77eb(),_0x5f416b=_0x20f260['id'],_0x34c9db='deletion:'+_0x34a8d2,_0x8ec14e=this['_setSuggestionData']({'id':_0x3d7b7d,'type':_0x34c9db,'createdAt':new Date(),'authorId':_0x5f416b,'attributes':_0x1549b7});for(const _0x4feadd of _0x3f43e9)_0x4feadd['detach'](),_0x4feadd['isCollapsed']||'$graveyard'==_0x4feadd['root']['rootName']||this['_addSuggestionMarker'](_0x34c9db,_0x3d7b7d,_0x5f416b,_0x4feadd,T['getMultiRangeId']());return _0x8ec14e;}['markAttributeChange'](_0x4bf967,_0x48a96e,_0x146d36,_0x6070e5,_0x4e6eb5){if(_0x4bf967['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2c40d6=this['editor']['plugins']['get']('Users')['me']['id'],_0x119679=Array['from'](this['_suggestions']['values']())['filter'](_0x4fb830=>'attribute'==_0x4fb830['type']&&_0x4fb830['data']['key']==_0x48a96e&&_0x4fb830['isIntersectingWithRange'](_0x4bf967));if(this['_trackingSessionId']&&(_0x4e6eb5['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x4c499a=this['_findSuggestions'](_0x4bf967,'insertion')['filter'](({meta:_0x55bbf5})=>_0x55bbf5['isOwn']&&!_0x55bbf5['isInsideObject']&&!_0x55bbf5['isNextTo'])['map'](({suggestion:_0x508b38})=>_0x508b38);_0x119679['unshift'](..._0x4c499a);}const _0x539fad=new Map([[_0x4bf967,_0x146d36]]);for(const _0x13b85c of _0x119679){const _0x51a5c6='attribute'==_0x13b85c['type']?_0x13b85c['data']['oldValue']:void 0x0,_0x2ea406=_0x13b85c['getFirstRange'](),_0x46f33e=Array['from'](_0x539fad['keys']())['find'](_0x178a4c=>_0x178a4c['isIntersecting'](_0x2ea406));if(!_0x46f33e)continue;const _0x194bf6=_0x46f33e['getDifference'](_0x2ea406);this['_isBlockAttribute'](_0x48a96e)&&'insertion'==_0x13b85c['type']&&0x0!=_0x194bf6['length']||(_0x539fad['delete'](_0x46f33e),_0x194bf6['forEach'](_0x423fa8=>{_0x539fad['set'](_0x423fa8,_0x146d36);}),'insertion'!=_0x13b85c['type']&&_0x51a5c6!=_0x6070e5&&_0x539fad['set'](_0x46f33e['getIntersection'](_0x2ea406),_0x51a5c6));}const _0xc62dc=[];for(const [_0x375967,_0x52fa6d]of _0x539fad){const _0xd0959f=_0xfc77eb(),_0x108a55={'key':_0x48a96e,'oldValue':_0x52fa6d,'newValue':_0x6070e5};_0x48a96e['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':_0x48a96e});const _0x5e5ec1=('attribute:'+(_0x48a96e+'|'+Gt({'newValue':_0x6070e5})))['substring'](0x0,0x3c),_0x35ad5c=this['_setSuggestionData']({'id':_0xd0959f,'type':_0x5e5ec1,'data':_0x108a55,'createdAt':new Date(),'authorId':_0x2c40d6,'attributes':_0x4e6eb5});_0xc62dc['push'](_0x35ad5c),this['_addSuggestionMarker'](_0x5e5ec1,_0xd0959f,_0x2c40d6,_0x375967);}return _0xc62dc;}['enableDefaultAttributesIntegration'](_0x5ac0bd){this['enableCommand'](_0x5ac0bd,(_0x18851d,..._0x204d99)=>{this['_recordAttributeChanges'](()=>{_0x18851d(..._0x204d99);});});}['registerBlockAttribute'](_0x938f17){this['_blockAttributeKeys']['add'](_0x938f17);}['registerInlineAttribute'](_0x56f971){this['_inlineAttributeKeys']['add'](_0x56f971);}['startTrackingSession'](_0x32aafd){return this['_trackingSessionId']=void 0x0!==_0x32aafd?_0x32aafd:_0xfc77eb(),this['_trackingSessionId'];}['_getAttributeKey'](_0x50ee9d){return'attribute'==_0x50ee9d['type']?_0x50ee9d['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x22fc13,_0x52cf){const _0x5c33eb=_0x22fc13['getFirstMarker']();this['_model']['change'](_0x356695=>{_0x356695['updateMarker'](_0x5c33eb,{'range':_0x52cf});});}['_addThreadToSuggestion'](_0x4ea85e){const _0x255c24=_0x4ea85e['id'],_0x592ccc=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x255c24)||this['_commentsRepository']['addCommentThread']({'channelId':_0x592ccc,'threadId':_0x255c24,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1f20ae=this['_commentsRepository']['getCommentThread'](_0x255c24);_0x1f20ae['unbind']('isRemovable'),_0x1f20ae['isRemovable']=!0x1,_0x4ea85e['commentThread']=_0x1f20ae;}['_checkSuggestionCorrectness'](_0x2171dd,_0x23697d,_0xe6ea27,_0x249233){if(_0x2171dd['type']!=_0x23697d||_0x2171dd['subType']!=_0xe6ea27||_0x2171dd['creator']['id']!=_0x249233)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x3747a9('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x2e4e08,_0x4ebfb0){const _0x3f1542=_0x2e4e08['getFirstRange']();if(_0x4ebfb0['isEqual'](_0x3f1542))_0x2e4e08['removeMarkers']();else{if(_0x3f1542['containsRange'](_0x4ebfb0)){const _0x394301=this['_model']['createPositionAt'](_0x4ebfb0['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2e4e08,this['_model']['createRange'](_0x3f1542['start'],_0x394301));const _0x119548=_0xfc77eb(),_0xa34772=_0x2e4e08['creator']['id'],_0x596a98=_0x2e4e08['type']+':'+_0x2e4e08['subType'];this['_setSuggestionData']({'id':_0x119548,'type':_0x596a98,'createdAt':new Date(),'authorId':_0xa34772,'data':_0x2e4e08['data'],'attributes':_0x2e4e08['attributes']});const _0x1d9ac0=this['_model']['createPositionAt'](_0x4ebfb0['end']['parent'],'after'),_0x10bb38=this['_model']['createRange'](_0x1d9ac0,_0x3f1542['end']);this['_addSuggestionMarker'](_0x596a98,_0x119548,_0xa34772,_0x10bb38);}else{if(_0x3f1542['containsPosition'](_0x4ebfb0['start'])){const _0x4d8222=this['_model']['createPositionAt'](_0x4ebfb0['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2e4e08,this['_model']['createRange'](_0x3f1542['start'],_0x4d8222));}else{const _0xcf3077=this['_model']['createPositionAt'](_0x4ebfb0['end']['parent'],'after');this['_setSuggestionRange'](_0x2e4e08,this['_model']['createRange'](_0xcf3077,_0x3f1542['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x2cea56){for(const {suggestion:_0x1184cd,meta:_0x4dd073}of this['_findSuggestions'](_0x2cea56,'insertion')){if(!_0x4dd073['isOwn'])continue;const _0x42537d=_0x1184cd['getRanges']();for(const _0x46b094 of _0x42537d)if(!_0x2cea56['getDifference'](_0x46b094)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x5d982b){const _0x1f90f=this['editor']['plugins']['get']('Users')['getUser'](_0x5d982b);if(!_0x1f90f)throw new _0x3747a9('track-changes-user-not-found',this);return _0x1f90f;}['_getExternalAuthor'](_0x544c39){const _0x4fe4aa=this['editor']['plugins']['get']('Users'),_0x5177ac=_0x33ae19('external:'+_0x544c39),_0x1f941d=_0x4fe4aa['getUser'](_0x5177ac);return _0x1f941d||_0x4fe4aa['addUser']({'id':_0x5177ac,'name':_0x544c39});}['_createSuggestion'](_0x98c31a,_0x32a8ca,_0x425147,_0x36680b,_0x141d69,_0x5060fc){const _0x2ba099=this['_getAuthorFromId'](_0x36680b),_0xa907e1=this['_suggestionFactory']['buildSuggestion'](_0x98c31a,_0x32a8ca,_0x425147,_0x2ba099,_0x141d69,_0x1144fc=>{this['_updateSuggestionData'](_0x425147,{'attributes':_0x1144fc});const _0x1ca865=this['getSuggestion'](_0x425147);this['_joinWithAdjacentSuggestions'](new Set([_0x1ca865])),this['_refreshSuggestionsChain'](new Set([_0x1ca865]));},_0x5060fc);return this['listenTo'](_0xa907e1,'accept',()=>{this['_updateSuggestionData'](_0x425147,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0xa907e1,'discard',()=>{this['_updateSuggestionData'](_0x425147,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x425147,_0xa907e1),this['_suggestionState']['set'](_0xa907e1,'notReady'),_0xa907e1;}['_splitMarkerName'](_0x459138){const _0x111bc9=_0x459138['split'](':');return{'group':_0x111bc9[0x0],'type':_0x111bc9[0x1],'subType':_0x111bc9['length']>=0x5?_0x111bc9[0x2]:null,'id':_0x111bc9['length']<0x5?_0x111bc9[0x2]:_0x111bc9[0x3],'authorId':_0x111bc9['length']<0x5?_0x111bc9[0x3]:_0x111bc9[0x4],'markerCount':0x6==_0x111bc9['length']?_0x111bc9[0x5]:null};}['_breakSuggestionMarker'](_0x2b2c0d,_0x2ca30a,_0x115340){const _0x37051a=_0x2b2c0d['getFirstRange'](),_0xef1edb=_0x37051a['start'],_0x400f48=_0x37051a['end'];this['_setSuggestionRange'](_0x2b2c0d,this['_model']['createRange'](_0xef1edb,_0x2ca30a));const _0xa298b9=_0xfc77eb(),_0x170787=_0x2b2c0d['creator']['id'],_0x2e011e=_0x2b2c0d['type']+(_0x2b2c0d['subType']?':'+_0x2b2c0d['subType']:'');this['_setSuggestionData']({'id':_0xa298b9,'type':_0x2e011e,'createdAt':new Date(),'authorId':_0x170787,'originalSuggestionId':_0x2b2c0d['_originalSuggestionId']||_0x2b2c0d['id'],'attributes':_0x2b2c0d['attributes'],'data':_0x2b2c0d['data']});const _0x213bc1=this['_getAttributeKey'](_0x2b2c0d);('formatBlock'==_0x2b2c0d['type']||_0x213bc1&&this['_isBlockAttribute'](_0x213bc1))&&(_0x115340=this['_model']['createPositionBefore'](_0x115340['parent'])),this['_addSuggestionMarker'](_0x2e011e,_0xa298b9,_0x170787,this['_model']['createRange'](_0x115340,_0x400f48));}['_findSuggestions'](_0x523b14,_0x5b6a83=null){const _0x1b108a=[],_0x2bc41e=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x523b14)||(_0x523b14=[_0x523b14]);for(const _0x240cc7 of this['getSuggestions']()){if(!_0x240cc7['isInContent'])continue;if(_0x5b6a83&&_0x240cc7['type']!=_0x5b6a83)continue;let _0x1e274b=!0x1;for(const _0x2344f3 of _0x240cc7['getRanges']()){for(const _0x3b3e8c of _0x523b14){const _0x305916=_0x3b3e8c['start']['isEqual'](_0x2344f3['end'])||_0x3b3e8c['end']['isEqual'](_0x2344f3['start']);if(_0x305916||_0x3b3e8c['getIntersection'](_0x2344f3)){const _0x56127e=_0x3b3e8c['containsRange'](_0x2344f3)&&Vt(this['_model']['schema'],_0x2344f3['start'],_0x3b3e8c),_0x66ccef=_0x2344f3['containsRange'](_0x3b3e8c)&&Vt(this['_model']['schema'],_0x3b3e8c['start'],_0x2344f3);_0x1b108a['push']({'suggestion':_0x240cc7,'meta':{'isOwn':_0x2bc41e==_0x240cc7['author'],'isNextTo':_0x305916,'isInsideObject':_0x56127e,'containsRangeInObject':_0x66ccef}}),_0x1e274b=!0x0;break;}}if(_0x1e274b)break;}}return _0x1b108a;}['_addSuggestionMarker'](_0x298c55,_0x5d8b67,_0x4f384b,_0xef676a,_0x249e1f){this['_model']['change'](_0x27dff9=>{let _0x2be117='suggestion:'+_0x298c55+':'+_0x5d8b67+':'+_0x4f384b;_0x249e1f&&(_0x2be117=_0x2be117+':'+_0x249e1f),_0x27dff9['addMarker'](_0x2be117,{'range':_0xef676a,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x330980){const _0x18230a=_0x330980['previous'],_0x3aea4a=_0x330980['next'];_0x330980['previous']=null,_0x330980['next']=null,null!=_0x18230a&&_0x18230a['next']==_0x330980&&(_0x18230a['next']=_0x3aea4a),null!=_0x3aea4a&&_0x3aea4a['previous']==_0x330980&&(_0x3aea4a['previous']=_0x18230a),'ready'==this['_suggestionState']['get'](_0x330980)&&(this['_suggestionState']['set'](_0x330980,'removed'),this['fire']('suggestionUnloaded',_0x330980,_0x18230a,_0x3aea4a));}['_setSuggestionData'](_0x410cbe){const _0x24c9c3=_0x410cbe['id'],_0x691813=this['addSuggestionData'](_0x410cbe);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x2ca2ad=this['editor']['plugins']['get']('PendingActions'),_0x124dc3=_0x691813['hasComments'],_0x1bc279=_0x691813['subType']?_0x691813['type']+':'+_0x691813['subType']:_0x691813['type'],_0x56aab6=this['editor']['locale'],_0x319f9c=_0x2ca2ad['add'](o(_0x56aab6,'PENDING_ACTION_SUGGESTION')),_0x2224ea={'id':_0x24c9c3,'type':_0x1bc279,'hasComments':_0x124dc3,'data':_0x410cbe['data']||null,'originalSuggestionId':_0x410cbe['originalSuggestionId']||null,'attributes':_0x691813['attributes']};this['_adapter']['addSuggestion'](_0x2224ea)['then'](_0x105a09=>{_0x691813['_saved']=!0x0,_0x2ca2ad['remove'](_0x319f9c),_0x105a09&&_0x105a09['createdAt']&&(this['_suggestions']['get'](_0x24c9c3)['createdAt']=_0x105a09['createdAt']);})['catch'](_0xeb6a81=>{throw _0x15d011('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x691813['discard']();}),_0x691813['stopListening'](),this['_suggestions']['delete'](_0x691813['id']),this['_suggestionState']['delete'](_0x691813),_0xeb6a81;});}return _0x691813;}['_isBlockAttribute'](_0x4cea4a){return this['_blockAttributeKeys']['has'](_0x4cea4a);}['_updateSuggestionData'](_0x3d5af7,_0x2f8465){const _0x91a75b=this['editor']['plugins']['get']('PendingActions'),_0x41ea02=this['getSuggestion'](_0x3d5af7);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x41ea02['_saved']){const _0x12e6a0=_0x91a75b['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x3d5af7,_0x2f8465)['then'](()=>{_0x91a75b['remove'](_0x12e6a0);});}else _0x41ea02['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x3d5af7,_0x2f8465);});}}['_getSuggestionData'](_0x2cd90b){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x3747a9('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x2cd90b);}['_handleNewSuggestionMarker'](_0x32a1d0){const {id:_0x3466b7,type:_0x3e3582,subType:_0x422451,authorId:_0x3c7afa}=this['_splitMarkerName'](_0x32a1d0),_0x536e49=this['_suggestions']['get'](_0x3466b7)||this['_createSuggestion'](_0x3e3582,_0x422451,_0x3466b7,_0x3c7afa,{});switch(this['_checkSuggestionCorrectness'](_0x536e49,_0x3e3582,_0x422451,_0x3c7afa),this['_suggestionState']['get'](_0x536e49)){case'notReady':this['_getSuggestionData'](_0x3466b7)['then'](_0x58adbb=>{let _0x7ac8=Promise['resolve']();_0x58adbb['hasComments']&&(_0x7ac8=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3466b7})),_0x7ac8['then'](()=>{this['addSuggestionData'](_0x58adbb)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x536e49,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3466b7,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x536e49,'ready'),this['fire']('suggestionLoaded',_0x536e49);break;case'ready':this['fire']('suggestionChanged',_0x536e49);}return _0x536e49['addMarkerName'](_0x32a1d0),_0x536e49;}['_refreshSuggestionsChain'](_0x3b43c4){const _0x44c26e=Array['from'](_0x3b43c4),_0x7ef344=_0x44c26e['filter'](_0x1b5dac=>'attribute'==_0x1b5dac['type']);this['_refreshAttributeSuggestionsChain'](_0x7ef344);const _0x95d943=_0x44c26e['filter'](_0xb940ae=>!_0xb940ae['isMultiRange']&&'attribute'!=_0xb940ae['type']),_0x5022db=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3a3c93=>!_0x3a3c93['isMultiRange']&&'attribute'!=_0x3a3c93['type']),_0x11cabf=_0x5022db['filter'](_0x298b4b=>!_0x3b43c4['has'](_0x298b4b)),_0x263b94=new Map(_0x5022db['map'](_0x10257c=>[_0x10257c,this['_suggestionFactory']['getSuggestionCallback'](_0x10257c['type'],_0x10257c['subType'],'chain')])),_0x1d451b=new Map(_0x5022db['map'](_0x2d13cb=>[_0x2d13cb,_0x2d13cb['getFirstRange']()])),_0x176292=new Set(),_0x291581=new Set();for(let _0x1745d8=0x0;_0x1745d8<_0x95d943['length'];_0x1745d8++)_0x1d04ac(_0x95d943[_0x1745d8],_0x95d943,_0x1745d8+0x1);for(let _0x12d680=0x0;_0x12d680<_0x95d943['length'];_0x12d680++)_0x1d04ac(_0x95d943[_0x12d680],_0x11cabf,0x0);const _0x25aa86=new Set();for(let _0x16924e=0x0;_0x16924e<_0x95d943['length'];_0x16924e++){const _0x35c610=_0x95d943[_0x16924e];!_0x291581['has'](_0x35c610)&&_0x35c610['previous']&&(_0x25aa86['add'](_0x35c610['previous']),_0x35c610['previous']['next']===_0x35c610&&(_0x35c610['previous']['next']=null),_0x35c610['previous']=null),!_0x176292['has'](_0x35c610)&&_0x35c610['next']&&(_0x25aa86['add'](_0x35c610['next']),_0x35c610['next']['previous']===_0x35c610&&(_0x35c610['next']['previous']=null),_0x35c610['next']=null);}function _0x1d04ac(_0x347658,_0x58e450,_0x3976e6){for(let _0x5109f7=_0x3976e6;_0x5109f7<_0x58e450['length'];_0x5109f7++){const _0x455dda=_0x2b96c8(_0x347658,_0x58e450[_0x5109f7]);_0x455dda&&(_0x455dda[0x0]['next']=_0x455dda[0x1],_0x455dda[0x1]['previous']=_0x455dda[0x0],_0x176292['add'](_0x455dda[0x0]),_0x291581['add'](_0x455dda[0x1]));}}function _0x2b96c8(_0x3f0878,_0x41e4c7){if(_0x3f0878['author']['id']!==_0x41e4c7['author']['id'])return null;const _0x843aea=_0x263b94['get'](_0x3f0878)(_0x3f0878,_0x41e4c7,_0x1d451b['get'](_0x3f0878),_0x1d451b['get'](_0x41e4c7));if(!_0x843aea)return null;return _0x263b94['get'](_0x41e4c7)(_0x3f0878,_0x41e4c7,_0x1d451b['get'](_0x3f0878),_0x1d451b['get'](_0x41e4c7))?_0x843aea[0x1]['commentThread']&&_0x843aea[0x1]['commentThread']['length']?null:_0x843aea:null;}_0x25aa86['size']&&this['_refreshSuggestionsChain'](_0x25aa86);}['_refreshAttributeSuggestionsChain'](_0x1ee766){if(0x0==_0x1ee766['length'])return;const _0x17aff6=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x492440=>'attribute'==_0x492440['type']&&_0x492440['_isDataLoaded']),_0x4d7e7b=[],_0x8af2b8=new Map();for(const _0x4ab092 of _0x17aff6){const _0x4d7a5=_0x33ae19(_0x4ab092['attributes']);_0x8af2b8['has'](_0x4d7a5)||(_0x8af2b8['set'](_0x4d7a5,_0x4d7e7b['length']),_0x4d7e7b['push']([]));const _0x3c29d3=_0x8af2b8['get'](_0x4d7a5);_0x4d7e7b[_0x3c29d3]['push'](_0x4ab092);}!(function(){_0x4d7e7b['sort']((_0x1286b9,_0x47ab2e)=>{const _0xa4a843=_0x1286b9[0x0]['createdAt'],_0x51491=_0x47ab2e[0x0]['createdAt'];return _0xa4a843==_0x51491?_0x1286b9[0x0]['attributes']['groupId']<_0x47ab2e[0x0]['attributes']['groupId']?-0x1:0x1:_0xa4a843<_0x51491?-0x1:0x1;});for(const _0x2fd644 of _0x4d7e7b)_0x2fd644['sort']((_0x1793cf,_0x511b07)=>_0x1793cf['id']<_0x511b07['id']?-0x1:0x1);}());for(let _0x15eee1=0x0;_0x15eee1<_0x4d7e7b['length'];_0x15eee1++){if(0x0==_0x4d7e7b[_0x15eee1]['length'])continue;const _0x15d755=[];for(let _0x1113cb=_0x15eee1+0x1;_0x1113cb<_0x4d7e7b['length'];_0x1113cb++)0x0!=_0x4d7e7b[_0x1113cb]['length']&&_0x1d07d8(_0x4d7e7b[_0x15eee1],_0x4d7e7b[_0x1113cb])&&_0x15d755['push'](_0x1113cb);for(const _0x2dc9a3 of _0x15d755)_0x4d7e7b[_0x15eee1]=_0x4d7e7b[_0x15eee1]['concat'](_0x4d7e7b[_0x2dc9a3]),_0x4d7e7b[_0x2dc9a3]=[];}for(const _0x397144 of _0x4d7e7b)for(let _0x414b08=0x0;_0x414b08<_0x397144['length'];_0x414b08++){const _0x3cbf48=_0x397144[_0x414b08+0x1]||null;_0x397144[_0x414b08]['next']!==_0x3cbf48&&(_0x397144[_0x414b08]['next']=_0x3cbf48);}for(const _0x3b17c5 of _0x4d7e7b)for(let _0x1b23c1=0x0;_0x1b23c1<_0x3b17c5['length'];_0x1b23c1++){const _0x477797=_0x3b17c5[_0x1b23c1-0x1]||null;_0x3b17c5[_0x1b23c1]['previous']!==_0x477797&&(_0x3b17c5[_0x1b23c1]['previous']=_0x477797);}function _0x1d07d8(_0x42f341,_0x1d940f){if(_0x42f341[0x0]['attributes']['groupId']!==_0x1d940f[0x0]['attributes']['groupId']&&_0x42f341[0x0]['author']!==_0x1d940f[0x0]['author'])return!0x1;if(!function(_0x4c4250,_0x2bf535){if(!_0x4c4250['hasComments']&&!_0x2bf535['hasComments'])return!0x0;if(_0x4c4250['hasComments']&&_0x2bf535['hasComments'])return!0x1;if(_0x4c4250['hasComments']&&_0x2bf535['createdAt']<_0x4c4250['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x2bf535['hasComments']&&_0x4c4250['createdAt']<_0x2bf535['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x42f341[0x0],_0x1d940f[0x0]))return!0x1;const _0x3672c9=Rt(_0x42f341[0x0]['attributes'],['groupId','trackingSessionId']),_0x3dde68=Rt(_0x1d940f[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x576f16(_0x3672c9,_0x3dde68))return!0x1;if(_0x42f341[0x0]['attributes']['groupId']==_0x1d940f[0x0]['attributes']['groupId'])return!0x0;if(_0x42f341[0x0]['attributes']['trackingSessionId']!==_0x1d940f[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x42f341['every'](_0x2635bf=>_0x1d940f['some'](_0x1a9396=>_0x2635bf['getFirstRange']()['isEqual'](_0x1a9396['getFirstRange']())))&&_0x1d940f['every'](_0xeced1e=>_0x42f341['some'](_0x41ef83=>_0xeced1e['getFirstRange']()['isEqual'](_0x41ef83['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x1823b1){const _0x3f40e8=Array['from'](_0x1823b1),_0x1dac55=this['getSuggestions']({'skipNotAttached':!0x0}),_0x220b46=_0x1dac55['filter'](_0x1eae4d=>!_0x1823b1['has'](_0x1eae4d)),_0x583c2f=new Map(_0x3f40e8['map'](_0x4fbacf=>[_0x4fbacf,this['_suggestionFactory']['getSuggestionCallback'](_0x4fbacf['type'],_0x4fbacf['subType'],'join')])),_0x3ea4d8=new Map(_0x1dac55['map'](_0x4b3875=>[_0x4b3875,_0x4b3875['getRanges']()]));for(let _0x551029=0x0;_0x551029<_0x3f40e8['length'];_0x551029++){if(_0x581b80(this,_0x3f40e8[_0x551029],_0x3f40e8,_0x551029+0x1))return!0x0;}for(let _0x46caa7=0x0;_0x46caa7<_0x3f40e8['length'];_0x46caa7++){if(_0x581b80(this,_0x3f40e8[_0x46caa7],_0x220b46,0x0))return!0x0;}return!0x1;function _0x581b80(_0x574865,_0x47dd4e,_0x5bad02,_0x3f3408){for(let _0x365dd7=_0x3f3408;_0x365dd7<_0x5bad02['length'];_0x365dd7++){const _0x36be5f=_0x5bad02[_0x365dd7];if(_0x36be5f['type']!==_0x47dd4e['type']||_0x36be5f['author']['id']!==_0x47dd4e['author']['id']||_0x36be5f['subType']!==_0x47dd4e['subType'])continue;if(!zt(_0x47dd4e,_0x36be5f))continue;if('attribute'==_0x47dd4e['type']&&_0x47dd4e['data']['oldValue']!=_0x36be5f['data']['oldValue'])continue;if('attribute'==_0x47dd4e['type']&&_0x574865['_isBlockAttribute'](_0x47dd4e['data']['key']))continue;if('formatBlock'==_0x47dd4e['type']){const _0x4d59d4=_0x574865['editor']['model'],_0x21008d=_0x47dd4e['getContainedElement']();if(_0x21008d&&(_0x4d59d4['schema']['isObject'](_0x21008d)||_0x4d59d4['schema']['isLimit'](_0x21008d)))continue;}const _0x2ca1ed=_0x583c2f['get'](_0x47dd4e),_0x13fd50=_0x3ea4d8['get'](_0x47dd4e),_0xd19ca5=_0x3ea4d8['get'](_0x36be5f),_0x46b5b7=_0x47dd4e['commentThread']&&_0x47dd4e['commentThread']['length'],_0x442b09=_0x36be5f['commentThread']&&_0x36be5f['commentThread']['length'];if(!_0x46b5b7&&_0x2ca1ed(_0xd19ca5,_0x13fd50))return _0x574865['_joinSuggestions'](_0x36be5f,_0x47dd4e),_0x3ea4d8['delete'](_0x47dd4e),!0x0;if(!_0x442b09&&_0x2ca1ed(_0x13fd50,_0xd19ca5))return _0x574865['_joinSuggestions'](_0x47dd4e,_0x36be5f),_0x3ea4d8['delete'](_0x36be5f),!0x0;}return!0x1;}}['_joinSuggestions'](_0x2bd0d1,_0x5e9ed5){if(_0x2bd0d1['isMultiRange']){for(const _0x5d520b of _0x5e9ed5['getRanges']())_0x2bd0d1['addRange'](_0x5d520b);}else{const _0xd7bbcb=_0x5e9ed5['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2bd0d1,this['_model']['createRange'](_0x2bd0d1['getFirstRange']()['start'],_0xd7bbcb));}_0x5e9ed5['removeMarkers']();}['_getMarkerAnnouncementText'](_0x5d2be8,_0x4c3643,_0x4b36a3){const _0x4b45d1=_0x5d2be8['startsWith']('format')||_0x5d2be8['startsWith']('attribute')?'FORMATTING':_0x5d2be8['toUpperCase']();return o(this['editor']['locale'],_0x4c3643+'_'+_0x4b45d1+'_SUGGESTION_ANNOUNCEMENT',_0x4b36a3);}['_initAriaMarkerChangeAnnouncements'](){const _0x4f56e7=this['editor'];if(!_0x4f56e7['ui'])return;const {ariaLiveAnnouncer:_0x31e5d4}=_0x4f56e7['ui'];_0x3b234c(this['_model'],({left:_0x154d26,entered:_0x5c0c7d})=>{for(const _0x3826d3 of _0x154d26){const {group:_0x2ec15d,type:_0x5af25c}=this['_splitMarkerName'](_0x3826d3['name']);if('suggestion'===_0x2ec15d){_0x31e5d4['announce'](this['_getMarkerAnnouncementText'](_0x5af25c,'LEAVE'));break;}}for(const _0x4098b0 of _0x5c0c7d){const {group:_0x200324,type:_0x427a82}=this['_splitMarkerName'](_0x4098b0['name']);if('suggestion'===_0x200324){_0x31e5d4['announce'](this['_getMarkerAnnouncementText'](_0x427a82,'ENTER',_0x47945f(_0x154605)));break;}}});}['_processAttributeChanges'](_0x3da187){if(this['_recordAttributeSuggestions'])return!0x1;const _0x5c492d=this['editor'],_0x308a52=_0x5c492d['model']['document']['differ']['getChanges']();if(0x0==_0x308a52['length'])return!0x1;const _0x4a04ff=[],_0x2fcb5f=_0x308a52['filter'](_0x110309=>'attribute'==_0x110309['type']),_0x3a0de6=_0x308a52['filter'](_0x3eb289=>'insert'==_0x3eb289['type']&&'$text'!=_0x3eb289['name']),_0x4b5a5f=_0x308a52['filter'](_0x2023d9=>'remove'==_0x2023d9['type']&&'$text'!=_0x2023d9['name']);for(const _0x44fd00 of _0x2fcb5f)_0x4a04ff['push']({'key':_0x44fd00['attributeKey'],'newValue':_0x44fd00['attributeNewValue'],'oldValue':_0x44fd00['attributeOldValue'],'range':Kt(_0x44fd00['range'],_0x5c492d['model'])});for(const _0x27b937 of _0x3a0de6){const _0x533de4=_0x4b5a5f['find'](_0x563083=>_0x563083['position']['isEqual'](_0x27b937['position']));_0x533de4&&_0x4a04ff['push']({'key':m,'newValue':_0x27b937['name'],'oldValue':_0x533de4['name'],'range':_0x5c492d['model']['createRangeOn'](_0x27b937['position']['nodeAfter'])});}return 0x0!=_0x4a04ff['length']&&this['_reduceExistingSuggestions'](_0x3da187,_0x4a04ff);}['_processAttributeSuggestions'](_0x44d907){let _0x3eced3=!0x1;const _0x734b45=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x32bf95=>_0x32bf95['data']['newRange']&&_0x32bf95['name']['startsWith']('suggestion:attribute:'));for(const _0x575e0c of _0x734b45){const {subType:_0x16e9c2,id:_0x4eb8be}=this['_splitMarkerName'](_0x575e0c['name']),_0x12b726=_0x16e9c2['split']('|')[0x0];for(const _0x11f352 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x11f352['id']!=_0x4eb8be&&'attribute'==_0x11f352['type']&&_0x11f352['data']&&_0x11f352['data']['key']==_0x12b726&&_0x11f352['getFirstRange']()['isIntersecting'](_0x575e0c['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x11f352,_0x575e0c['data']['newRange'],_0x44d907),_0x3eced3=!0x0);}return _0x3eced3;}['_recordAttributeChanges'](_0x44aedf){this['_recordAttributeSuggestions']=!0x0,_0x44aedf();}['_isRegisteredAttribute'](_0x37dab5){const _0xf3fd07=this['_isBlockAttribute'](_0x37dab5),_0x3220a9=this['_inlineAttributeKeys']['has'](_0x37dab5);return _0xf3fd07||_0x3220a9;}['_reduceExistingSuggestions'](_0x278eae,_0x535e51){if(0x0==_0x535e51['length'])return!0x1;let _0x4c59d5=!0x1;for(const _0x529ab4 of _0x535e51){const _0x5bf62a=this['_findSuggestions'](_0x529ab4['range'],'attribute')['filter'](_0x465873=>!_0x465873['meta']['isNextTo'])['map'](_0x1a27b9=>_0x1a27b9['suggestion']),_0xfa8fd=_0x33ae19({'newValue':_0x529ab4['newValue']});_0x5bf62a['filter'](_0x8e51d9=>{const [_0x40212d,_0x1b74c9]=_0x8e51d9['subType']['split']('|');return _0x40212d==_0x529ab4['key']&&_0x1b74c9!=_0xfa8fd;})['forEach'](_0x1e6772=>{this['_reduceSuggestionAttributeRange'](_0x1e6772,_0x529ab4['range'],_0x278eae),_0x4c59d5=!0x0;});}return _0x4c59d5;}['_reduceSuggestionAttributeRange'](_0x48036e,_0x43f92d,_0x4cff4f){const _0x5e9c07=_0x48036e['getFirstRange']()['getDifference'](_0x43f92d);0x0!==_0x5e9c07['length']?0x1!==_0x5e9c07['length']?this['_breakSuggestionMarker'](_0x48036e,_0x43f92d['start'],_0x43f92d['end']):this['_setSuggestionRange'](_0x48036e,_0x5e9c07[0x0]):_0x4cff4f['removeMarker'](_0x48036e['getFirstMarker']());}}class Ut{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x31810d){this['_editor']=_0x31810d,this['_model']=_0x31810d['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0xcd5225,_0x1a9ab1,_0x4757c9,_0x8577d3,_0x42e2bb,_0x15cbce,_0x13c6f8){return new T(this['_model'],{'type':_0xcd5225,'subType':_0x1a9ab1,'id':_0x4757c9,'originalSuggestionId':_0x13c6f8,'author':_0x8577d3,'creator':_0x8577d3,'attributes':_0x42e2bb,'onAttributesChange':_0x15cbce,'onAccept':(..._0x27a868)=>this['getSuggestionCallback'](_0xcd5225,_0x1a9ab1,'accept')(..._0x27a868),'onDiscard':(..._0x14431d)=>this['getSuggestionCallback'](_0xcd5225,_0x1a9ab1,'discard')(..._0x14431d)});}['registerCustomCallback'](_0x38dfc8,_0x17a7e0,_0x317671,_0x3d590e){const _0x277eef=_0x38dfc8+':'+_0x17a7e0+':'+_0x317671;this['_customCallbacks']['set'](_0x277eef,_0x3d590e);}['getSuggestionCallback'](_0x317be5,_0x403c9a,_0x5a4168){const _0x5c7d33=_0x317be5+':'+_0x403c9a+':'+_0x5a4168;return this['_customCallbacks']['get'](_0x5c7d33)||this['_defaultCallbacks']['get'](_0x317be5+':'+_0x5a4168);}['_registerDefaultCallbacks'](){const _0x2207a=()=>!0x1,_0x4f5db2=_0x3dc163=>{_0x3dc163['sort']((_0x30f1fd,_0x4d1579)=>_0x30f1fd['start']['isBefore'](_0x4d1579['start'])?0x1:-0x1),this['_model']['change'](_0x222098=>{for(const _0x3b5689 of _0x3dc163){let _0x301f33;_0x301f33=_0x3b5689['end']['isAtEnd']&&_0x3b5689['end']['parent']==_0x3b5689['start']['nodeAfter']?_0x222098['createSelection'](_0x3b5689['start']['nodeAfter'],'on'):_0x222098['createSelection'](_0x3b5689),this['_model']['deleteContent'](_0x301f33,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x1b38ef=(_0x39c574,_0x140c40)=>{_0x140c40&&this['_model']['change'](_0xad7a86=>{const {commandName:_0x5e917c,commandParams:_0x23b7f8=[]}=_0x140c40,_0x2d4c11=_0x39c574['map'](_0x1bf9b4=>(Ft(_0x1bf9b4)&&(_0x1bf9b4=this['_model']['createRange'](_0x1bf9b4['end'])),_0x1bf9b4))['filter'](_0x6bc6ca=>'$graveyard'!==_0x6bc6ca['root']['rootName']);if(_0x2d4c11['length']<0x1)return;const _0x3d2cd1=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x3b5d50=>_0x5c02ad['fromRange'](_0x3b5d50));_0xad7a86['setSelection'](_0x2d4c11);for(const _0x4f7d14 of this['_editor']['commands']['commands']())_0x4f7d14['refresh']();_0x23b7f8['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x5e917c,..._0x23b7f8);const _0x3196cd=_0x3d2cd1['filter'](_0x20081f=>'$graveyard'!=_0x20081f['root']['rootName']);_0x3196cd['length']>0x0&&_0xad7a86['setSelection'](_0x3196cd);for(const _0x3463 of _0x3d2cd1)_0x3463['detach']();});},_0x16f843=(_0x479e74,_0x4644f4)=>0x1==_0x479e74['length']&&0x1==_0x4644f4['length']&&_0x479e74[0x0]['end']['isEqual'](_0x4644f4[0x0]['start']),_0x5e0ae4=(_0x195a4b,_0x492cf5,_0x3e7ec0,_0x523f65)=>qt(_0x195a4b,_0x492cf5,_0x3e7ec0,_0x523f65)?[_0x195a4b,_0x492cf5]:qt(_0x492cf5,_0x195a4b,_0x523f65,_0x3e7ec0)?[_0x492cf5,_0x195a4b]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x2207a),this['_defaultCallbacks']['set']('insertion:discard',_0x4f5db2),this['_defaultCallbacks']['set']('insertion:join',_0x16f843),this['_defaultCallbacks']['set']('insertion:chain',_0x5e0ae4),this['_defaultCallbacks']['set']('deletion:accept',_0x4f5db2),this['_defaultCallbacks']['set']('deletion:discard',_0x2207a),this['_defaultCallbacks']['set']('deletion:join',_0x16f843),this['_defaultCallbacks']['set']('deletion:chain',_0x5e0ae4),this['_defaultCallbacks']['set']('formatInline:accept',_0x1b38ef),this['_defaultCallbacks']['set']('formatInline:discard',_0x2207a),this['_defaultCallbacks']['set']('formatInline:join',_0x16f843),this['_defaultCallbacks']['set']('formatInline:chain',_0x2207a),this['_defaultCallbacks']['set']('formatBlock:accept',_0x1b38ef),this['_defaultCallbacks']['set']('formatBlock:discard',_0x2207a),this['_defaultCallbacks']['set']('formatBlock:join',_0x16f843),this['_defaultCallbacks']['set']('formatBlock:chain',_0x2207a),this['_defaultCallbacks']['set']('attribute:accept',_0x2207a),this['_defaultCallbacks']['set']('attribute:discard',(_0x4185d7,_0x1f12ea)=>{if(!_0x1f12ea)return;const _0x346844=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x596109=>{if(_0x1f12ea['key']==m)for(const _0x449708 of _0x4185d7){const _0x3834a4=_0x449708['start']['nodeAfter'],_0x4aa7ee=_0x1f12ea['oldValue'];_0x596109['rename'](_0x3834a4,_0x4aa7ee);}else{if(_0x346844['_isBlockAttribute'](_0x1f12ea['key'])){for(const _0x58b232 of _0x4185d7)void 0x0!==_0x1f12ea['oldValue']?_0x596109['setAttribute'](_0x1f12ea['key'],_0x1f12ea['oldValue'],_0x58b232['start']['nodeAfter']):_0x596109['removeAttribute'](_0x1f12ea['key'],_0x58b232['start']['nodeAfter']);}else{for(const _0x50d70a of _0x4185d7)_0x1f12ea['oldValue']?_0x596109['setAttribute'](_0x1f12ea['key'],_0x1f12ea['oldValue'],_0x50d70a):_0x596109['removeAttribute'](_0x1f12ea['key'],_0x50d70a);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x16f843);}}function Vt(_0x593613,_0x13cd76,_0x12dc9d){for(const _0x1341b4 of _0x13cd76['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x1341b4['root']==_0x1341b4)return!0x1;if(!_0x12dc9d['containsItem'](_0x1341b4))return!0x1;if(_0x593613['isObject'](_0x1341b4)||_0x593613['isLimit'](_0x1341b4))return!0x0;}return!0x1;}function Ft(_0x3697df){return _0x3697df['end']['parent']==_0x3697df['start']['nodeAfter']&&_0x3697df['end']['isAtStart'];}function Pt(_0x3b5404,_0x26158a,_0x5ebd89,_0x245ab3){const _0xe3f155=_0xbcfc24=>!_0xbcfc24['item']['is']('$textProxy')&&!_0x245ab3['isObject'](_0xbcfc24['item']),_0x3fe8a6=_0x3b5404['start']['getLastMatchingPosition'](_0xe3f155),_0x362b36=_0x3b5404['end']['getLastMatchingPosition'](_0xe3f155,{'direction':'backward'});return(!_0x3b5404['start']['isEqual'](_0x3fe8a6)||!_0x3b5404['end']['isEqual'](_0x362b36))&&(_0x3fe8a6['isBefore'](_0x362b36)?_0x5ebd89['updateMarker'](_0x26158a,{'range':_0x5ebd89['createRange'](_0x3fe8a6,_0x362b36)}):_0x5ebd89['removeMarker'](_0x26158a),!0x0);}function Gt(_0x21fa56){return _0x33ae19(_0x21fa56);}function Lt(_0x18f2e5){const _0x1387c9=_0x18f2e5['start']['nodeAfter'];return _0x1387c9&&_0x1387c9['is']('element');}function Jt(_0x311e15){return!Ft(_0x311e15)&&!function(_0x186e39){return _0x186e39['start']['parent']==_0x186e39['end']['nodeBefore']&&_0x186e39['start']['isAtEnd'];}(_0x311e15);}function Kt(_0x5b264,_0x489487){return null==_0x5b264['end']['nodeBefore']&&_0x5b264['end']['parent']==_0x5b264['start']['nodeAfter']?Ht(_0x5b264['start']['nodeAfter'],_0x489487):_0x5b264;}function Ht(_0x36ce25,_0x35cae5){const _0x438180=_0x35cae5['schema']['isObject'](_0x36ce25)||_0x35cae5['schema']['isSelectable'](_0x36ce25);return _0x35cae5['createRange'](_0x35cae5['createPositionAt'](_0x36ce25,'before'),_0x438180?_0x35cae5['createPositionAfter'](_0x36ce25):_0x35cae5['createPositionAt'](_0x36ce25,'end'));}function qt(_0x352b74,_0x1c699b,_0x1e82d7,_0x273e83){return!!zt(_0x352b74,_0x1c699b)&&_0x1e82d7['end']['isEqual'](_0x273e83['start']);}function zt(_0xa26422,_0x340264){if(!_0xa26422['_isDataLoaded']||!_0x340264['_isDataLoaded'])return!0x1;const _0x112efa=new Set(Object['keys'](_0xa26422['attributes'])),_0x4edbca=new Set(Object['keys'](_0x340264['attributes']));if(_0x112efa['delete']('groupId'),_0x4edbca['delete']('groupId'),0x0==_0x112efa['size']&&0x0==_0x4edbca['size'])return!0x0;if(_0x112efa['size']!=_0x4edbca['size'])return!0x1;const _0x2ed9b7={..._0xa26422['attributes']},_0x4767da={..._0x340264['attributes']};return delete _0x2ed9b7['groupId'],delete _0x4767da['groupId'],JSON['stringify'](_0x2ed9b7)==JSON['stringify'](_0x4767da);}function Wt(_0x3a6fc0,_0x47cc51){const _0x2cd4be=Qt(_0x3a6fc0['attributes']),_0x4e3b04=Qt(_0x47cc51);if(!_0x3a6fc0['_isDataLoaded'])return!0x1;for(const _0x5db117 of Object['keys'](_0x4e3b04))if(!_0x576f16(_0x2cd4be[_0x5db117],_0x4e3b04[_0x5db117]))return!0x1;return!0x0;}function Qt(_0x4ff853){const _0x35397c=Object['assign']({},_0x4ff853);return delete _0x35397c['skipNestingCheck'],delete _0x35397c['tablePasteChainId'],_0x35397c;}class pe extends/* #__PURE__ -- @preserve */
26
- _0x2f002f(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x4773e6,_0x17a809,_0x3ad051,_0xefeeca){super(),this['model']=_0x17a809,this['view']=_0x3ad051,this['commentThreadController']=_0xefeeca,this['_editor']=_0x4773e6,this['_acceptCommand']=_0x4773e6['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x4773e6['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x3f4097,_0x2143b4)=>_0x3f4097||_0x2143b4),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x60096c=>_0x60096c&&this['_editor']['model']['canEditAt'](_0x17a809['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x21b0de=>_0x21b0de&&this['_editor']['model']['canEditAt'](_0x17a809['getRanges']())),this['_pendingAction']=null,_0x3ad051['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x3ad051,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x3ad051,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x3ad051,'change:isDirty',()=>{_0x3ad051['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 _0x55cdf7=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x55cdf7);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ti extends _0x9ae41d{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x41af70,_0x542fcb,_0x40ef0c,_0x51546e){super(_0x41af70),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x553bfe(_0x41af70,o(_0x41af70,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x542fcb['authoredAt']),this['bind']('authoredAt')['to'](_0x542fcb),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',_0x542fcb,'authoredAt',this,'descriptionParts',(_0x1e6b9a,_0x5e5678,_0x2ce4f1)=>{const _0x35fa19=_0x2ce4f1['map'](_0x2d5ed9=>ls(_0x2d5ed9['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x1e6b9a-0x1,_0x542fcb['author']['name'],_0x5e5678?_0x51546e['formatDateTime'](_0x5e5678):'',new DOMParser()['parseFromString'](_0x35fa19,'text/html')['body']['textContent']]);}),this['focusables']=new _0x56ad1d(),this['focusTracker']=new _0x13a637(),this['keystrokes']=new _0x143e89(),this['focusCycler']=new _0x542790({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x4dd3a1=>_0x4dd3a1['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x542fcb,this['_localUser']=_0x40ef0c,this['_config']=_0x51546e,_0x51546e['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x464450(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x282b35}=this['_config'];this['commentsListView']=new _0x282b35(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',_0x2e0742=>_0x2e0742+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x357080,_0x3ed2b8)=>_0x357080||!!_0x3ed2b8);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x230245}=this['_config'],_0x251713=new _0x230245(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x2d634e=_0x251713['commentInputView'];return _0x251713['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x2d634e,'value',(_0x50827f,_0x330e9a,_0x1ff7b1)=>!!_0x1ff7b1||_0x50827f&&!_0x330e9a),_0x2d634e['on']('submit',(_0x5b2f92,_0x25f957)=>{this['fire']('addComment',_0x25f957),_0x2d634e['editor']['setData']('');}),_0x2d634e['on']('cancel',()=>this['focus']()),_0x2d634e['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x251713;}}class fe extends ti{['suggestionView'];['_descriptionElement'];constructor(_0x3c08ad,_0xa81f4a,_0x31eb8e,_0x31da10){super(_0x3c08ad,_0xa81f4a,_0x31eb8e,_0x31da10),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x93a655=>_0x93a655&&_0x93a655[0x0]?_0x93a655[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x32abad,_0x3c58f2)=>{let _0x28df1a='';for(const _0x30673f of _0x32abad)_0x28df1a+='<p>'+ls(_0x30673f['content'],_0x30673f['color'])+'</p>';return _0x3c58f2?_0x28df1a:_0x2a569a(_0x28df1a,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x31da10['SuggestionView'](_0x3c08ad,_0xa81f4a,{'formatDateTime':_0x31da10['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 _0x43762d=this['bindTemplate'],_0x200642=[this['suggestionView']];return this['commentsListView']&&_0x200642['push'](this['commentsListView']),this['commentThreadInputView']&&_0x200642['push'](this['commentThreadInputView']),_0x200642['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x43762d['if']('isActive','ck-suggestion-wrapper--active'),_0x43762d['to']('type',_0x22f68e=>'ck-suggestion-'+_0x22f68e),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':_0x43762d['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x200642};}['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 _0x9ae41d{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x5479c2,_0x130ed2,_0x20943c){super(_0x5479c2),this['_model']=_0x130ed2,this['_config']=_0x20943c,this['set']('description',''),this['bind']('authoredAt')['to'](_0x130ed2),this['acceptButton']=this['_createButton'](o(_0x5479c2,'Accept\x20suggestion'),_0x10c3b0,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x5479c2,'Discard\x20suggestion'),_0x574635,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x19bc76(_0x5479c2,_0x130ed2['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x56ad1d([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x13a637(),this['keystrokes']=new _0x143e89(),this['focusCycler']=new _0x542790({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x19024a=>_0x19024a['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x4a5727=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x4a5727['innerHTML']=this['description'],this['on']('change:description',(_0x5b99ce,_0xf68cf3,_0x57c6a2)=>{_0x4a5727['innerHTML']=_0x57c6a2;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x3c4422=this['bindTemplate'],_0x112a1e=[{'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':_0x3c4422['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3c4422['to']('authoredAt',_0x2ead0a=>this['_config']['formatDateTime'](_0x2ead0a))}]}]},{'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']&&_0x112a1e['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':_0x112a1e}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x2142d1,_0x1df5cf,_0x1d8e48,_0x552315,_0x2f062d){const _0x3d7403=new _0x3aa75c(this['locale']);return _0x3d7403['set']({'label':_0x2142d1,'icon':_0x1df5cf,'tooltip':!0x0,'tooltipPosition':_0x2f062d}),_0x3d7403['extendTemplate']({'attributes':{'class':_0x1d8e48}}),_0x3d7403['on']('execute',()=>{this['fire'](_0x552315,this['_model']['id']);}),_0x3d7403;}['_setupKeyboardNavigation'](){const _0x1c5671=this['element'];this['keystrokes']['listenTo'](_0x1c5671);for(const _0x57305e of this['focusables'])this['focusTracker']['add'](_0x57305e['element']),this['keystrokes']['listenTo'](_0x57305e['element']);this['keystrokes']['set']('enter',(_0x4838f1,_0x48b7c9)=>{_0x1c5671===_0x4838f1['target']&&(this['focusCycler']['focusFirst'](),_0x48b7c9());}),this['keystrokes']['set']('esc',(_0x2a2380,_0x31a16f)=>{_0x1c5671!==_0x2a2380['target']&&(this['focus'](),_0x31a16f());});}}class u extends _0xa5f689{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x45c514,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x119744){super(_0x119744),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x51ed69=this['editor']['config'];_0x51ed69['define']('trackChanges.SuggestionThreadView',fe),_0x51ed69['define']('trackChanges.SuggestionView',we),_0x51ed69['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x51ed69['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0xc029c0,_0x4b03bc){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x318773,_0x3ad2af]of this['_handleControllerBuffer']){const _0x126b76=this['_suggestionToController']['has'](_0x318773);_0x126b76||_0x3ad2af?_0x126b76&&_0x3ad2af&&this['_destroyController'](_0x318773):this['_initializeController'](_0x318773);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0xc029c0,_0x4b03bc);}['init'](){const _0x569e9a=this['editor'],_0x391ffd=_0x569e9a['plugins']['get']('TrackChangesEditing'),_0x5b77e2=_0x569e9a['plugins']['get']('Annotations'),_0xdc769=_0x569e9a['plugins']['get']('EditorAnnotations'),_0x1de413=_0x569e9a['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0xdc769['addSourceCollector'](()=>{const _0x411d58=[];for(const [_0x497ff8,_0x397a91]of Array['from'](this['_suggestionToController'])){const _0x4f0bea=_0x497ff8['getAllAdjacentSuggestions'](),_0x844cf3=[];for(const _0x4e7fde of _0x4f0bea){if(!_0x4e7fde['isInContent'])continue;if(_0x4e7fde['isMultiRange']){_0x844cf3['push'](..._0x4e7fde['getRanges']());continue;}const _0x4d15a5=_0x4e7fde['getFirstRange']();if(_0x844cf3['length']>0x0){const _0x27dacf=_0x844cf3[0x0]['getJoined'](_0x4d15a5);if(_0x27dacf){_0x844cf3[0x0]=_0x27dacf;continue;}}_0x844cf3['push'](_0x4d15a5);}_0x411d58['push']([_0x397a91['view'],_0x844cf3]);}return _0x411d58;}),this['listenTo'](_0x391ffd,'suggestionLoaded',(_0x4a47f7,_0x5be1cf)=>{this['listenTo'](_0x5be1cf,'change:previous',(_0x463c68,_0x512eef,_0x27262f,_0x5b1c12)=>{_0x5be1cf['isInContent']&&(null==_0x27262f?(this['_updateController'](_0x5b1c12['head']),this['_handleSuggestionControllerDelayed'](_0x5be1cf,!0x1)):(this['_updateController'](_0x27262f['head']),null==_0x5b1c12&&this['_handleSuggestionControllerDelayed'](_0x5be1cf,!0x0)));}),null!==_0x5be1cf['previous']?this['_updateController'](_0x5be1cf['head']):this['_handleSuggestionControllerDelayed'](_0x5be1cf,!0x1);}),this['listenTo'](_0x391ffd,'suggestionUnloaded',(_0x1fdf24,_0x9efa99,_0xc9ee61)=>{this['stopListening'](_0x9efa99,'change:previous'),this['_handleControllerBuffer']['delete'](_0x9efa99),this['_suggestionToController']['has'](_0x9efa99)&&this['_destroyController'](_0x9efa99),_0xc9ee61&&this['_updateController'](_0xc9ee61['head']);}),this['listenTo'](_0x391ffd,'suggestionChanged',(_0x24d064,_0x164848)=>{this['_updateController'](_0x164848);}),this['listenTo'](_0x5b77e2,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x1de413,'addComment',(_0x1b2d14,{threadId:_0x4d681a,isFromAdapter:_0x94664})=>{if(_0x94664||!_0x391ffd['hasSuggestion'](_0x4d681a))return;const _0x508171=_0x391ffd['getSuggestion'](_0x4d681a);this['_suggestionToController']['get'](_0x508171)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x35bdb5=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2153b0;for(const _0xf19274 in _0x35bdb5){const _0x53825c=_0xf19274,_0x362bf7=_0x35bdb5[_0x53825c];if('trackChangesLicenseKeyValid'==_0x362bf7||'trackChangesLicenseKeyInvalid'==_0x362bf7||'trackChangesLicenseKeyExpired'==_0x362bf7||'trackChangesLicenseKeyDomainLimit'==_0x362bf7||'trackChangesLicenseKeyNotAllowed'==_0x362bf7||'trackChangesLicenseKeyEvaluationLimit'==_0x362bf7||'trackChangesLicenseKeyTrialLimit'==_0x362bf7||'trackChangesLicenseKeyUsageLimit'==_0x362bf7){delete _0x35bdb5[_0x53825c],_0x2153b0=_0x362bf7,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x2153b0&&_0x35bdb5['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x2153b0&&_0x35bdb5['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x2153b0&&_0x35bdb5['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x2153b0&&_0x35bdb5['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x2153b0&&_0x35bdb5['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x2153b0&&_0x35bdb5['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x2153b0&&_0x35bdb5['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x49bea2){const _0x537e76=this['_suggestionToController']['get'](_0x49bea2);if(!_0x537e76)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x537e76['view'])||null;}['getSuggestionForAnnotation'](_0x2f36b1){const _0x495ee2=this['_viewToController']['get'](_0x2f36b1['innerView']);return _0x495ee2?_0x495ee2['model']:null;}['_refreshActiveMarkers'](){const _0x507499=this['editor']['plugins']['get']('Annotations'),_0x5dd729=this['editor']['plugins']['get']('TrackChangesEditing'),_0x16c276=Array['from'](_0x507499['activeAnnotations'],_0x95ab4a=>_0x95ab4a['innerView'])['filter'](_0x3289f3=>this['_viewToController']['has'](_0x3289f3)),_0xd72449=[];for(const _0x252bcc of _0x16c276){const _0x51e1cd=this['_viewToController']['get'](_0x252bcc)['model']['getAllAdjacentSuggestions']();_0xd72449['push'](..._0x51e1cd['reduce']((_0x454cdc,_0x309d7d)=>[..._0x454cdc,..._0x309d7d['getMarkerNames']()],[]));}_0x5dd729['activeMarkers']=_0xd72449;}['_addUIComponentsToFactory'](){const _0x3a371d=this['editor'],_0x54a24f=_0x3a371d['locale'],_0xa1c17c=o(_0x54a24f,'Track\x20changes'),_0x2c7df=new _0x1500a9([{'type':'switchbutton','model':new _0x479e6f({'withText':!0x0,'isToggleable':!0x0,'label':_0xa1c17c,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x479e6f({'withText':!0x0,'label':o(_0x54a24f,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x479e6f({'withText':!0x0,'label':o(_0x54a24f,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x479e6f({'withText':!0x0,'label':o(_0x54a24f,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x479e6f({'withText':!0x0,'label':o(_0x54a24f,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x3a371d['plugins']['has']('TrackChangesPreview')&&_0x2c7df['addMany']([{'type':'separator'},{'type':'button','model':new _0x479e6f({'withText':!0x0,'label':o(_0x54a24f,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x1c5e7f of _0x2c7df)if(ke(_0x1c5e7f)){const _0x2d47af=_0x3a371d['commands']['get'](_0x1c5e7f['model']['commandName']);_0x1c5e7f['model']['bind']('isOn','isEnabled')['to'](_0x2d47af,'value','isEnabled');}_0x3a371d['ui']['componentFactory']['add']('trackChanges',_0x33f338=>this['_createToolbarButton'](_0x33f338,_0x2c7df,_0xa1c17c)),_0x3a371d['ui']['componentFactory']['add']('menuBar:trackChanges',_0x33ec0b=>this['_createMenuBarMenu'](_0x33ec0b,_0x2c7df,_0xa1c17c));}['_createToolbarButton'](_0x18f403,_0x3fe066,_0x292c81){const _0x5977ee=_0x33dc60(_0x18f403,_0x3f3501),_0x577f0c=this['editor']['commands']['get']('trackChanges');_0x5977ee['buttonView']['set']({'tooltip':_0x292c81,'label':_0x292c81,'icon':_0x2aa3ba}),_0x5977ee['buttonView']['bind']('isOn')['to'](_0x577f0c,'value'),_0x5977ee['buttonView']['on']('execute',()=>{_0x577f0c['execute'](),this['editor']['editing']['view']['focus']();}),_0x1e974d(_0x5977ee,_0x3fe066,{'role':'menu'});const _0xaa668b=[];for(const _0x255299 of _0x3fe066)ke(_0x255299)&&_0xaa668b['push'](this['editor']['commands']['get'](_0x255299['model']['commandName']));const _0xc9469a=_0x5977ee['buttonView'];return _0xc9469a['actionView']['unbind']('isEnabled'),_0xc9469a['arrowView']['unbind']('isEnabled'),_0xc9469a['actionView']['bind']('isEnabled')['to'](_0x577f0c,'isEnabled'),_0xc9469a['arrowView']['bind']('isEnabled')['toMany'](_0xaa668b,'isEnabled',(..._0x5e5392)=>_0x5e5392['some'](_0x20efed=>_0x20efed)),_0x5977ee['on']('execute',_0x4aaf1a=>{this['editor']['execute'](_0x4aaf1a['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x5977ee;}['_createMenuBarMenu'](_0x483994,_0x3062a2,_0x2de6df){const _0x150f81=new _0x1acc2f(_0x483994),_0x31714f=this['editor']['commands']['get']('trackChanges');_0x150f81['buttonView']['set']({'label':_0x2de6df,'icon':_0x2aa3ba});const _0x242887=new _0xb9aa23(_0x483994);for(const _0x3f0687 of _0x3062a2){if('separator'==_0x3f0687['type']){_0x242887['items']['add'](new _0x47433d(_0x483994));continue;}const _0x4de2e2=new _0x43da19(_0x483994,_0x150f81),_0x1fc66f=new _0x2de887(_0x483994),_0x25255f=_0x3f0687['model'];_0x1fc66f['bind'](...Object['keys'](_0x25255f))['to'](_0x25255f),_0x1fc66f['delegate']('execute')['to'](_0x150f81),_0x1fc66f['on']('execute',()=>{this['editor']['execute'](_0x25255f['commandName']),this['editor']['editing']['view']['focus']();}),_0x4de2e2['children']['add'](_0x1fc66f),_0x242887['items']['add'](_0x4de2e2);}return _0x150f81['bind']('isEnabled')['to'](_0x31714f,'isEnabled'),_0x150f81['panelView']['children']['add'](_0x242887),_0x150f81;}['_initializeController'](_0x26e101){const _0x773593=this['editor'],_0x50486f=_0x773593['config'],_0x11e769=_0x773593['plugins']['get']('Annotations'),_0xa21804=_0x773593['plugins']['get']('CommentsRepository'),_0x228244=_0x773593['plugins']['get']('EditorAnnotations'),_0x10365f=_0x773593['plugins']['get'](_0x45c514)['me'],_0x400d13=_0x50486f['get']('trackChanges')['SuggestionThreadView'],_0x13b6eb=_0x50486f['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x76854e,CommentThreadInputView:_0x24aa90}=_0x773593['plugins']['get']('CommentsUI');let _0x1b6fd9,_0x16ddcf,_0xb090ba;this['_annotationViews']['has'](_0x26e101['id'])?(_0x16ddcf=this['_annotationViews']['get'](_0x26e101['id']),_0x1b6fd9=_0x16ddcf['mainView']):(_0x1b6fd9=new _0x400d13(_0x773593['locale'],_0x26e101,_0x10365f,{'disableComments':this['_disableComments'],'editorConfig':{..._0x50486f['get']('comments.editorConfig'),'licenseKey':_0x50486f['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x50486f['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x50486f['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x50486f['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x24333c(_0x50486f['get']('locale'),_0x773593['locale']),'CommentView':_0x50486f['get']('comments')['CommentView'],'CommentsListView':_0x76854e,'CommentThreadInputView':_0x24aa90,'SuggestionView':_0x13b6eb}),_0x1b6fd9['suggestionView']['acceptButton']['on']('execute',()=>{_0x773593['editing']['view']['focus']();}),_0x1b6fd9['suggestionView']['discardButton']['on']('execute',()=>{_0x773593['editing']['view']['focus']();}),_0x16ddcf=_0x11e769['createAnnotationView'](this['editor']['locale'],_0x1b6fd9),_0x16ddcf['bind']('isDirty')['to'](_0x1b6fd9,'isDirty'),_0x16ddcf['bind']('length')['to'](_0x1b6fd9),_0x16ddcf['bind']('type')['to'](_0x1b6fd9,'type',_0x2bf451=>'suggestion-'+_0x2bf451),_0x1b6fd9['on']('escape',()=>{_0xb090ba['fire']('escape');}),this['_annotationViews']['set'](_0x26e101['id'],_0x16ddcf));const _0x420e1c=_0xa21804['createCommentThreadController'](_0x26e101['commentThread'],_0x1b6fd9),_0x4b0178=new pe(_0x773593,_0x26e101,_0x1b6fd9,_0x420e1c),_0x2cff17=_0x26e101['getAllAdjacentSuggestions']()['filter'](_0x45a27d=>_0x45a27d['isInContent']);_0x1b6fd9['descriptionParts']=_0x773593['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x2cff17),this['_suggestionToController']['set'](_0x26e101,_0x4b0178),this['_viewToController']['set'](_0x1b6fd9,_0x4b0178),_0xb090ba=_0x11e769['createAnnotation']({'view':_0x16ddcf,'target':()=>{const _0x15be87=[],_0xfab349=_0x26e101['getAllAdjacentSuggestions']()['filter'](_0x377f59=>_0x377f59['isInContent']);for(const _0x44d8f5 of _0xfab349)_0x15be87['push'](..._0x44d8f5['getMarkers']());return _0x5f2da0(_0x773593['editing'],_0x15be87);},'type':()=>'suggestion-'+_0x4b0178['view']['type']}),_0xa21804['_bindAnnotationToEditors'](_0x1b6fd9,_0xb090ba),_0x11e769['add'](_0xb090ba),_0x228244['registerAnnotation'](_0xb090ba);}['_destroyController'](_0x2d1784){const _0x334786=this['editor']['plugins']['get']('CommentsRepository'),_0x258541=this['editor']['plugins']['get']('Annotations'),_0x12ee68=this['_suggestionToController']['get'](_0x2d1784),_0x2a3152=_0x12ee68['view'],_0x5958aa=_0x258541['getByInnerView'](_0x2a3152);_0x334786['_unbindEditors'](_0x2a3152),_0x5958aa&&_0x258541['remove'](_0x5958aa),this['_suggestionToController']['delete'](_0x2d1784),this['_viewToController']['delete'](_0x2a3152),_0x12ee68['destroy']();}['_updateController'](_0x255891){if(!_0x255891['isInContent']||!this['_suggestionToController']['has'](_0x255891))return;const _0x533fbd=this['editor']['plugins']['get']('TrackChangesEditing'),_0xa5a48d=this['_suggestionToController']['get'](_0x255891),_0x5e78e5=_0x255891['getAllAdjacentSuggestions']();_0xa5a48d['view']['descriptionParts']=_0x533fbd['descriptionFactory']['getDescriptions'](_0x5e78e5);}['destroy'](){for(const _0x4d044d of this['_suggestionToController']['keys']())this['_destroyController'](_0x4d044d);for(const _0x115c5d of this['_annotationViews']['values']())_0x115c5d['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x2c9682){return'model'in _0x2c9682;}class Fe extends _0xa5f689{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x4c94af){this['editor']['plugins']['get'](d)['adapter']=_0x4c94af;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x403abf){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x403abf);}['getSuggestions']({skipNotAttached:_0x489ea2=!0x1,toJSON:_0x5c0b32=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x489ea2,'toJSON':_0x5c0b32});}['getSuggestion'](_0x3c4189){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x3c4189);}}const p=['Pagination'];class re extends _0xa5f689{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x362113=this['editor'];if(_0x362113['config']['define']('trackChangesData.editorCreator',_0x1c4dad=>{const _0x5f0e90=_0x362113['model']['document']['getRootNames']()['reduce']((_0x457793,_0x25afe8)=>(_0x457793[_0x25afe8]='',_0x457793),{});return _0x362113['constructor']['create'](_0x5f0e90,_0x1c4dad);}),'function'!=typeof _0x362113['config']['get']('trackChangesData')['editorCreator'])throw new _0x3747a9('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x240783){return P(this['editor'],!0x0,_0x240783);}['getDataWithDiscardedSuggestions'](_0xa9c31c){return P(this['editor'],!0x1,_0xa9c31c);}}class Ge extends _0xa5f689{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4ae60c){function _0xa4e2d3(_0x394997){return _0x394997['map'](_0x1d47c3=>String['fromCharCode'](_0x1d47c3))['join']('');}super(_0x4ae60c),this['result']='end',_0x4ae60c[_0xa4e2d3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xa4e2d3([0x76,0x69,0x65,0x77])][_0xa4e2d3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xa4e2d3([0x61,0x75,0x74,0x6f]),_0x4ae60c[_0xa4e2d3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0xa4e2d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xa4e2d3([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0xa4e2d3([0x73,0x74,0x61,0x74,0x75,0x73])]:_0xa4e2d3([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 $e(_0x2ba1eb){return void 0x0!==_0x2ba1eb['getRootsAttributes'];}async function P(_0xa89c8f,_0x3996ab,_0x438a17){const _0x83d64c=_0x4c6ef2(_0xa89c8f,p);_0x83d64c['plugins']['push'](d,Ge),_0x83d64c['rootsAttributes']=$e(_0xa89c8f)?_0xa89c8f['getRootsAttributes']():void 0x0;const _0x19fa4e=document['createDocumentFragment'](),_0x2472b1=_0xa89c8f['config']['get']('trackChangesData')['editorCreator'],_0x206221=await _0x2472b1(_0x83d64c,()=>function(_0x3a400e){const _0x17ba12=document['createElement']('div');return _0x3a400e['appendChild'](_0x17ba12),_0x17ba12;}(_0x19fa4e));!function(_0x3bbc1c,_0x5d59c3){const _0x45416d=_0x3bbc1c['model']['document']['getRootNames']()['reduce']((_0x31efc8,_0x2a3d94)=>(_0x31efc8[_0x2a3d94]=_0x3bbc1c['data']['get']({'rootName':_0x2a3d94}),_0x31efc8),{}),_0x5a3d9d=_0x3bbc1c['plugins']['get']('Users')['users']['map'](_0x352532=>({'id':_0x352532['id'],'name':_0x352532['name']})),_0x1e6fd0=_0x3bbc1c['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x13c580=_0x3bbc1c['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x507cc7=_0x5d59c3['plugins']['get']('Users'),_0x4ee927=_0x5d59c3['plugins']['get']('TrackChangesEditing'),_0x1dd199=_0x5d59c3['plugins']['get']('CommentsRepository');for(const _0x555797 of _0x1dd199['getCommentThreads']())_0x555797['remove']();for(const _0x2744c7 of _0x5a3d9d)_0x507cc7['getUser'](_0x2744c7['id'])||_0x507cc7['addUser'](_0x2744c7);_0x507cc7['me']||_0x507cc7['useAnonymousUser']();for(const _0x48d0f7 of _0x13c580)_0x1dd199['addCommentThread'](_0x48d0f7);for(const _0x1b469c of _0x1e6fd0)_0x4ee927['addSuggestionData'](_0x1b469c);_0x5d59c3['data']['set'](_0x45416d);}(_0xa89c8f,_0x206221),_0x206221['execute'](_0x3996ab?'acceptAllSuggestions':'discardAllSuggestions');const _0x11ae20=$e(_0x206221)?_0x206221['getFullData'](_0x438a17):_0x206221['data']['get'](_0x438a17);return await _0x206221['destroy'](),_0x11ae20;}class Me extends _0x9ae41d{['options'];constructor(_0x193c4e,_0x24a4ae){super(_0x193c4e),this['options']=_0x24a4ae,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'](_0x24d140,_0xa5ba7d){if(!this['element'])return;const _0x3bfbb7=[];for(const [_0x3e8856,_0x4b84e3]of _0x24d140){const _0x2dbb77=document['createElement']('div');_0x2dbb77['setAttribute']('data-ck-root-name',_0x3e8856),_0x2dbb77['className']=_0x4b84e3['classes']+'\x20ck-track-changes-preview__root-container',_0x2dbb77['innerHTML']=_0x4b84e3['content'],_0x3bfbb7['push'](_0x2dbb77);}_0xa5ba7d(this['element'],_0x3bfbb7),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x44ba3e{constructor(_0x321958){super(_0x321958),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x12a7ee=this['editor'],_0x72d5=_0x12a7ee['locale'],_0x103e5=_0x12a7ee['plugins']['get']('Dialog');let _0x5beb26;const _0x498b14=function(_0x12c1ac){const _0x4cb22b={};if('editables'in _0x12c1ac['ui']['view']){for(const [_0x4752cb,_0x6ebb03]of Object['entries'](_0x12c1ac['ui']['view']['editables']))_0x4cb22b[_0x4752cb]=_0x6ebb03['element'];}else _0x4cb22b[_0x12c1ac['model']['document']['getRootNames']()[0x0]]=_0x12c1ac['ui']['view']['editable']['element'];return _0x4cb22b;}(_0x12a7ee),_0x404a44=function(_0x35a61a){let _0x476db3=0x0;for(const _0xd2baca of Object['values'](_0x35a61a))_0x476db3=Math['max'](_0x476db3,_0xd2baca['getBoundingClientRect']()['width']);let _0x48ac93=0x0;for(const _0x16d4ba of Object['values'](_0x35a61a))_0x48ac93+=_0x16d4ba['getBoundingClientRect']()['height'];const _0x4d0aed=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x2084d9=Math['min'](_0x48ac93,_0x4d0aed);return{'width':_0x476db3,'height':_0x2084d9};}(_0x498b14);_0x103e5['show']({'id':'finalContentPreview','title':o(_0x72d5,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x72d5,{'dialogRects':_0x404a44}),'onHide':()=>{_0x5beb26['detachFromDom']();},'onShow':()=>{_0x12a7ee['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x1e890d=>{const _0x1aacbb=this['_standarizeRootsData'](_0x1e890d,_0x12a7ee,_0x498b14);_0x103e5['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x1aacbb,_0x12a7ee['config']['get']('trackChanges.preview.renderFunction'));}),_0x5beb26=new _0x50cc1d(_0x72d5,[_0x103e5['view']]),_0x5beb26['attachToDom'](),_0x5beb26['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x12a7ee['once']('destroy',()=>{_0x5beb26['detachFromDom']();});const _0x2e0e35=_0x103e5['view']['headerView']['class'];_0x103e5['view']['headerView']['class']=_0x2e0e35?_0x2e0e35+'\x20ck-reset_all':'ck-reset_all',_0x103e5['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x103e5['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x56da7a=this['editor']['plugins']['get']('MergeFieldsEditing'),_0xa0f077=_0x56da7a['previewMode'],_0x1f922d={};if('$labels'===_0xa0f077){for(const _0x236401 of _0x56da7a['getMergeFieldsIds']())_0x1f922d[_0x236401]=_0x56da7a['getLabel'](_0x236401)||_0x236401;}else{const _0x345524='$defaultValues'===_0xa0f077?_0x56da7a['getDefaultValues']():_0x56da7a['getDataSetValues'](_0xa0f077,!0x0);for(const _0x4ebfcd of Object['entries'](_0x345524)){const [_0x4b8563,_0x2b92c9]=_0x4ebfcd;_0x1f922d[_0x4b8563]=null!==_0x2b92c9?_0x2b92c9:_0x56da7a['getLabel'](_0x4b8563)||_0x4b8563;}}return{'mergeFieldsData':_0x1f922d};}['_standarizeRootsData'](_0x417bda,_0x5199cc,_0x24804e){let _0x249165;if('string'==typeof _0x417bda){const _0x142724=_0x5199cc['model']['document']['getRootNames']()[0x0];_0x249165={[_0x142724]:_0x417bda};}else _0x249165=_0x417bda;const _0x174e27=this['_fixMediaEmbeds'](_0x249165,_0x5199cc),_0x4f0d43=function(_0x33d2a0,_0x18b6af){for(const [_0x2f8737,_0xd8f647]of _0x33d2a0)_0xd8f647['classes']=_0x18b6af[_0x2f8737]['classList']['value']['replace']('ck-focused','');return _0x33d2a0;}(this['_sortRoots'](_0x5199cc)['reduce']((_0x2b8c92,_0x388656)=>(_0x2b8c92['push']([_0x388656,{'content':_0x174e27[_0x388656],'classes':''}]),_0x2b8c92),[]),_0x24804e);return _0x4f0d43;}['_fixMediaEmbeds'](_0x247c93,_0x798dce){if(!_0x798dce['plugins']['has']('MediaEmbedEditing'))return _0x247c93;const _0x907a6f=_0x798dce['plugins']['get']('MediaEmbedEditing');for(const [_0x306104,_0x39c9d0]of Object['entries'](_0x247c93)){const _0x5a220c=document['createElement']('div');_0x5a220c['innerHTML']=_0x39c9d0,(_0x5a220c['querySelectorAll']('figure.media')['forEach'](_0x5e8628=>{const _0xde2cc8=_0x5e8628['querySelector']('oembed');if(_0xde2cc8){const _0xee82ea=_0xde2cc8['getAttribute']('url');if(_0xee82ea){const _0x576b83=_0x907a6f['registry']['getMediaViewElement'](new _0x376a8e(_0x798dce['editing']['view']['document']),_0xee82ea,{'elementName':'','renderForEditingView':!0x0}),_0x2e3c6c=document['createElement']('div');_0x2e3c6c['classList']['add']('ck-media__wrapper'),_0x576b83['render'](_0x2e3c6c,_0x798dce['editing']['view']['domConverter']),_0xde2cc8['replaceWith'](_0x2e3c6c);}}}),_0x247c93[_0x306104]=_0x5a220c['innerHTML']);}return _0x247c93;}['_sortRoots'](_0x28401c){if(!function(_0x397686){return void 0x0!==_0x397686['getRootsAttributes'];}(_0x28401c))return _0x28401c['model']['document']['getRootNames']();const _0xa4e651=[],_0x435d9e=new Map();for(const _0x2ce5bd of _0x28401c['model']['document']['getRootNames']()){const _0x2e244f=_0x28401c['editing']['view']['getDomRoot'](_0x2ce5bd)['getClientRects']()['item'](0x0);_0xa4e651['push'](_0x2ce5bd),_0x435d9e['set'](_0x2ce5bd,_0x2e244f);}return _0xa4e651['sort']((_0x306c02,_0x25ca79)=>{const _0xec3753=_0x435d9e['get'](_0x306c02),_0x54ba70=_0x435d9e['get'](_0x25ca79);return _0xec3753['y']-_0x54ba70['y']||_0xec3753['x']-_0x54ba70['x'];}),_0xa4e651;}}class He extends _0xa5f689{static get['requires'](){return[re,_0x45a3c3];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x28c67a){super(_0x28c67a),_0x28c67a['commands']['add']('previewFinalContent',new te(this['editor'])),_0x28c67a['config']['define']('trackChanges.preview.renderFunction',(_0x36bbda,_0x1a0249)=>{for(const _0x1a63d4 of _0x1a0249)_0x36bbda['appendChild'](_0x1a63d4);});}}export{D as AcceptSuggestionCommand,ti as BaseSuggestionThreadView,M as DiscardSuggestionCommand,$ as ExecuteOnAllSuggestionsCommand,B as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,x as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Fe as TrackChanges,N as TrackChangesCommand,re as TrackChangesData,Ge as TrackChangesDataGetter,d as TrackChangesEditing,He as TrackChangesPreview,Me as _SuggestionsPreviewView,m as _TRACK_CHANGES_RENAME_ATTRIBUTE_KEY};
23
+ import{Command as _0x45171a,Plugin as _0x45d531,PendingActions as _0x1ea583}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x2b8fde,ObservableMixin as _0xdff992,uid as _0x23f17c,priorities as _0x32e621,insertToPriorityArray as _0x1d51c1,toArray as _0x2d1065,logWarning as _0x1d29c4,getEnvKeystrokeText as _0x337839,FocusTracker as _0x271bca,KeystrokeHandler as _0x45d71b,Collection as _0x47c311}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x29f23d,IconCancel as _0x715a3a,IconTrackChanges as _0x1ba5db}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as to,View as _0x1f1ddf,ViewCollection as _0xb549cf,FocusCycler as _0x393529,UIModel as _0x4b53ab,createDropdown as _0x3f76dd,SplitButtonView as _0x1baf99,addListToDropdown as _0x5da1ef,MenuBarMenuView as _0x54c374,MenuBarMenuListView as _0x30a610,ListSeparatorView as _0x376079,MenuBarMenuListItemView as _0x3a00e6,MenuBarMenuListItemButtonView as _0x40bebe,BodyCollection as _0x3b283f,Dialog as _0xa81a7d}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x3eafe2,hashObject as _0x1a6396,surroundingMarkersDetector as _0x5e9fd2,FOCUS_ANNOTATION_KEYSTROKE as _0x5e0307,AriaDescriptionView as _0x3b1156,setupThreadKeyboardNavigation as _0x212e37,trimHtml as _0x4964cd,UserView as _0x5742a3,LateFocusButtonView as _0x3b1a1c,getDateTimeFormatter as _0x1c53ee,getAllMarkersDomElementsSorted as _0x4e1ee8,sanitizeEditorConfig as _0x27bcd9}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x1bf0b3,ModelLiveRange as _0x5661a3,ModelLivePosition as _0x54699a,ViewDowncastWriter as _0x56fcb7}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x14ca9b,toWidget as _0x3dabca}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x526147,set as _0x4c4919,isEqual as _0x2d9ec3,unset as _0x7fb018,omit as Rt}from'es-toolkit/compat';import{Delete as _0x3783f2,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x184149}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x3b84c1}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class N extends _0x45171a{['_enabledCommands'];constructor(_0x209dba,_0x2abe9c){super(_0x209dba),this['_enabledCommands']=_0x2abe9c,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 _0x11a092 of this['editor']['commands']['commands']())_0x11a092['affectsData']&&!this['_enabledCommands']['has'](_0x11a092)&&_0x11a092['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x4743f8 of this['editor']['commands']['commands']())_0x4743f8['affectsData']&&!this['_enabledCommands']['has'](_0x4743f8)&&_0x4743f8['clearForceDisabled']('TrackChangesCommand');}}class D extends _0x45171a{['_suggestions'];constructor(_0x46ddb1,_0x58e74c){super(_0x46ddb1),this['_suggestions']=_0x58e74c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x216d6c){const _0x266ea2=this['_suggestions']['get'](_0x216d6c);if(!_0x266ea2)throw new _0x2b8fde('track-changes-accept-suggestion-not-found',this);const _0x5c0c63=_0x266ea2['getRanges']();this['editor']['model']['canEditAt'](_0x5c0c63)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x266ea2);}}class M extends _0x45171a{['_suggestions'];constructor(_0x557a66,_0x50cbf6){super(_0x557a66),this['_suggestions']=_0x50cbf6,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x172046){const _0x48b27a=this['_suggestions']['get'](_0x172046);if(!_0x48b27a)throw new _0x2b8fde('track-changes-discard-suggestion-not-found',this);const _0xae518f=_0x48b27a['getRanges']();this['editor']['model']['canEditAt'](_0xae518f)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x48b27a);}}function ls(_0x262741,_0x37c9e0){let _0x5e6187='';return _0x5e6187+=_0x262741['split']('*')['map']((_0x412526,_0x5d50e5)=>_0x5d50e5%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x412526)+'</span>':nn(_0x412526))['join'](''),_0x37c9e0&&(_0x5e6187+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x37c9e0['value']+'\x22\x20title=\x22'+_0x37c9e0['title']+'\x22></span>'),_0x5e6187;}function nn(_0x2819a1){const _0xb4bee6=document['createElement']('span');return _0xb4bee6['innerText']=_0x2819a1,_0xb4bee6['innerHTML'];}function ts(_0x3ad349){return _0x3ad349['sort']((_0x42f259,_0x49f11e)=>'deletion'==_0x42f259['type']&&'deletion'!=_0x49f11e['type']?-0x1:'deletion'!=_0x42f259['type']&&'deletion'==_0x49f11e['type']?0x1:0x0);}function Yt(_0xf5ffc8,_0x2800f6){let _0x28f1d1,_0x4c9cc7=0x0;const _0xf41df1=[],_0x125b1=_0x2800f6['schema'];for(;_0x4c9cc7<_0xf5ffc8['length'];){const _0x4fbf46=_0xf5ffc8[_0x4c9cc7],_0x3e6ef0=_0xf5ffc8[_0x4c9cc7+0x1];_0x28f1d1||(_0x28f1d1=_0x2800f6['createPositionBefore'](_0x4fbf46)),on(_0x2800f6,_0x4fbf46,_0x3e6ef0)||(_0xf41df1['push'](_0x2800f6['createRange'](_0x28f1d1,_0x125b1['isObject'](_0x4fbf46)?_0x2800f6['createPositionAfter'](_0x4fbf46):_0x2800f6['createPositionAt'](_0x4fbf46,'end'))),_0x28f1d1=null),_0x4c9cc7++;}return _0xf41df1;}function on(_0x571112,_0x4ca585,_0x3e7247){if(!_0x3e7247)return!0x1;const _0x1ee16f=_0x571112['createPositionAfter'](_0x4ca585),_0x58b19d=_0x571112['createPositionBefore'](_0x3e7247);return _0x1ee16f['isTouching'](_0x58b19d);}function rs(_0x3d466a,_0x4fb594,_0xdf218d){for(;_0xdf218d['length'];){const _0xf1d27=_0xdf218d['splice'](0x0,0x64);_0x3d466a['change'](()=>{for(const _0x16193c of _0xf1d27)_0x16193c['isInContent']&&_0x4fb594['execute'](_0x16193c['id']);});}}class $ extends _0x45171a{['_command'];['_suggestions'];constructor(_0x53c7c0,_0xc8fffa,_0x5d26b2){super(_0x53c7c0),this['_command']=_0xc8fffa,this['_suggestions']=_0x5d26b2,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5a69e5=Array['from'](this['_suggestions']['values']())['some'](_0x2d531a=>_0x2d531a['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x5a69e5;}['execute'](){const _0xe73b92=ts(Array['from'](this['_suggestions']['values']()));for(const _0x79e7b7 of _0xe73b92){const _0x2d0b8c=_0x79e7b7['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2d0b8c))return;}rs(this['editor']['model'],this['_command'],_0xe73b92);}}class B extends _0x45171a{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x354f50,_0xf196b4,_0x4c6b04){super(_0x354f50),this['_command']=_0xf196b4,this['_suggestions']=_0x4c6b04,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x283a94=this['editor']['model']['document']['selection'],_0x1eed29=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x419675,_0x894f67){const _0x11674d=Array['from'](_0x419675['getRanges']()),_0x1622b3=new Set();for(const _0x45157e of _0x894f67)if(_0x45157e['isInContent']){for(const _0x56bc1b of _0x11674d)for(const _0xaddd2c of _0x45157e['getRanges']())(_0x56bc1b['isIntersecting'](_0xaddd2c)||_0x419675['isCollapsed']&&!_0x45157e['isMultiRange']&&_0x45157e['next']&&_0xaddd2c['end']['isTouching'](_0x56bc1b['start']))&&_0x1622b3['add'](_0x45157e);}return _0x1622b3;}(_0x283a94,_0x1eed29),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x40727e=ts(Array['from'](this['_selectedSuggestions']));for(const _0x338c31 of _0x40727e){const _0x2863e4=_0x338c31['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2863e4))return;}rs(this['editor']['model'],this['_command'],_0x40727e);}}class T extends/* #__PURE__ -- @preserve */
24
+ _0xdff992(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x31558c,_0x336f66){super(),this['id']=_0x336f66['id'],this['type']=_0x336f66['type'],this['subType']=_0x336f66['subType']||null,this['author']=_0x336f66['author'],this['creator']=_0x336f66['creator']||_0x336f66['author'],this['isExternal']=Boolean(_0x336f66['attributes']&&_0x336f66['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x336f66['originalSuggestionId']||null,this['_model']=_0x31558c,this['_onAccept']=_0x336f66['onAccept'],this['_onDiscard']=_0x336f66['onDiscard'],this['_onAttributesChange']=_0x336f66['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x336f66['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 _0x19f74c=this;for(;_0x19f74c['previous'];)_0x19f74c=_0x19f74c['previous'];return _0x19f74c;}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'](_0x1b3770){this['_markerNames']['add'](_0x1b3770);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x334201=>this['_model']['markers']['get'](_0x334201))['filter'](_0x411ed1=>_0x411ed1);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x2ad1c0=>{for(const _0x3f6bac of this['getMarkers']())_0x2ad1c0['removeMarker'](_0x3f6bac);}),this['_markerNames']['clear']();}['removeMarker'](_0x340348){this['_model']['change'](_0x1d097d=>{_0x1d097d['removeMarker'](_0x340348);}),this['_markerNames']['delete'](_0x340348);}['addRange'](_0x107daf){const _0x3fc471='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x3fc471),this['_model']['change'](_0x30eca4=>{_0x30eca4['addMarker'](_0x3fc471,{'range':_0x107daf,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x16a451){for(const _0x362d3a of this['getRanges']())if(_0x362d3a['isIntersecting'](_0x16a451))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0xef127d=>_0xef127d['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x3b9c7b,_0x410f40)=>[..._0x3b9c7b,..._0x410f40['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x57c695=this['getRanges']();if(0x1!=_0x57c695['length'])return null;const _0x2d366c=_0x57c695[0x0],_0x624872=_0x2d366c['start']['nodeAfter'],_0x23bf97=_0x2d366c['end']['nodeBefore'];return _0x624872 instanceof _0x1bf0b3?_0x624872!=_0x23bf97?null:_0x624872: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 _0x45ce21=[];let _0x321153=this['head'];for(;_0x321153;)_0x45ce21['push'](_0x321153),_0x321153=_0x321153['next'];return _0x45ce21;}['setAttribute'](_0xf988da,_0x31be57){const _0x37ad65=_0x526147(this['attributes']);_0x4c4919(_0x37ad65,_0xf988da,_0x31be57),_0x2d9ec3(_0x37ad65,this['attributes'])||(this['attributes']=_0x37ad65,this['_onAttributesChange'](_0x37ad65));}['removeAttribute'](_0x4cd27f){const _0x6cb42=_0x526147(this['attributes']);_0x7fb018(_0x6cb42,_0x4cd27f),_0x2d9ec3(_0x6cb42,this['attributes'])||(this['attributes']=_0x6cb42,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 _0x23f17c()['substr'](0x1,0x5);}}function o(_0x1022e6,_0xde38a9,_0x2d3898){const _0x51793c=_0x1022e6['t'],t=_0x1022e6['t'];switch(_0xde38a9){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',_0x2d3898);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x2d3898);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x2d3898);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x2d3898);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x2d3898);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',_0x2d3898);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x2d3898);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',_0x2d3898);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x2d3898);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x2d3898);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x2d3898);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x2d3898);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x2d3898);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x2d3898);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x2d3898);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x2d3898);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x2d3898);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x2d3898);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x2d3898);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x2d3898);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x2d3898);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x2d3898);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x2d3898);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x2d3898);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x2d3898);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'},_0x2d3898);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x2d3898);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x2d3898);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x2d3898);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x2d3898);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x2d3898);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x2d3898);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x2d3898);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'},_0x2d3898);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x2d3898);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x2d3898);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x2d3898);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x2d3898);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'},_0x2d3898);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x2d3898);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'},_0x2d3898);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'},_0x2d3898);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x2d3898);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'},_0x2d3898);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x2d3898);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'},_0x2d3898);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x2d3898);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x2d3898);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'},_0x2d3898);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x2d3898);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 _0x51793c({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x2d3898);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x51793c({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x2d3898);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x2d3898);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'},_0x2d3898);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'},_0x2d3898);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'},_0x2d3898);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0xde38a9;}}class x{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x2e88a5,_0x46172e){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x2e88a5,this['_locale']=_0x46172e;}['getDescriptions'](_0x591dff){const _0x26ca91=[],_0x5de5a6=new Set(),_0x3ec65d=new Set();for(let _0x13aad6=0x0;_0x13aad6<_0x591dff['length'];_0x13aad6++){const _0x4f2ed5=_0x591dff[_0x13aad6];if(!_0x4f2ed5['isInContent'])continue;const _0xffa72a=this['_handleCustomCallbackDescription'](_0x4f2ed5);if(_0xffa72a){if(null!=_0x4f2ed5['subType']){if(_0x5de5a6['has'](_0x4f2ed5['subType']))continue;_0x5de5a6['add'](_0x4f2ed5['subType']);}_0x26ca91['push'](_0xffa72a);}else{if('attribute'==_0x4f2ed5['type']){const _0x114af3=_0x4f2ed5['data']['key'];if(_0x3ec65d['has'](_0x114af3))continue;_0x3ec65d['add'](_0x4f2ed5['data']['key']),_0x114af3==m?this['_handleRenameSuggestionDescription'](_0x26ca91,_0x4f2ed5):this['_handleAttributeSuggestionDescription'](_0x26ca91,_0x4f2ed5);continue;}'insertion'!=_0x4f2ed5['type']&&'deletion'!=_0x4f2ed5['type']||this['_handleInsertRemoveSuggestionDescription'](_0x26ca91,_0x4f2ed5,_0x591dff[_0x13aad6+0x1]);}}return this['_resolveDescriptionItems'](_0x26ca91);}['registerDescriptionCallback'](_0x17ef14){this['_customCallbacks']['push'](_0x17ef14);}['registerElementLabel'](_0x2e05fd,_0x37063,_0x3777ec=_0x32e621['normal']){'function'==typeof _0x2e05fd?_0x1d51c1(this['_itemLabelsCallbacks'],{'matchingCallback':_0x2e05fd,'label':_0x37063,'priority':_0x3777ec}):this['_itemLabels']['set'](_0x2e05fd,_0x37063);}['registerAttributeLabel'](_0x570cfe,_0x55614d){this['_attributeLabels']['set'](_0x570cfe,_0x55614d);}['getItemLabel'](_0x5116e,_0x8aefe3=0x1){let _0x54df63;for(const _0x33fcdc of this['_itemLabelsCallbacks'])if(_0x33fcdc['matchingCallback'](_0x5116e)){_0x54df63=_0x33fcdc['label'];break;}return _0x54df63||(_0x54df63=this['_itemLabels']['get'](_0x5116e['name'])),_0x54df63?_0x54df63(_0x8aefe3):0x1!==_0x8aefe3?_0x8aefe3+'\x20'+_0x5116e['name']+'s':''+_0x5116e['name'];}['_addDescriptionItems'](_0x1882ab,_0x15788d){const _0x3a73af=_0x15788d['getFirstRange']()['getWalker'](),_0x4257da='insertion'==_0x15788d['type']?'add':'remove';for(const _0x5af12c of _0x3a73af){const _0x4a3881=_0x5af12c['item'],_0x38679b=_0x1882ab[_0x1882ab['length']-0x1];if(_0x4a3881['is']('$textProxy'))_0x38679b&&_0x38679b['type']['indexOf']('Container')>-0x1&&_0x1882ab['pop'](),_0x38679b&&'text'==_0x38679b['type']?_0x38679b[_0x4257da]+=_0x4a3881['data']:_0x1882ab['push']({'type':'text','add':'add'==_0x4257da?_0x4a3881['data']:'','remove':'remove'==_0x4257da?_0x4a3881['data']:''});else{if(this['_schema']['isObject'](_0x4a3881)){const _0x51921f=_0x4a3881;if(_0x38679b&&_0x38679b['type']['indexOf']('Container')>-0x1&&_0x1882ab['pop'](),'elementEnd'==_0x5af12c['type'])continue;_0x38679b&&_0x38679b['type']==_0x4257da+'Object'&&_0x38679b['element']['name']==_0x51921f['name']?_0x38679b['quantity']++:_0x1882ab['push']({'type':_0x4257da+'Object','element':_0x51921f,'quantity':0x1}),_0x3a73af['skip'](_0x4184a8=>!('elementEnd'==_0x4184a8['type']&&_0x4184a8['item']==_0x4a3881));}else{if(this['_schema']['checkChild'](_0x4a3881,'$text')||_0x4a3881['is']('element','softBreak')){const _0xd12e6a=_0x4a3881;if('add'==_0x4257da&&'elementStart'==_0x5af12c['type']||'remove'==_0x4257da&&'elementEnd'==_0x5af12c['type'])continue;if(_0x38679b&&-0x1==_0x38679b['type']['indexOf']('Container')){'text'==_0x38679b['type']&&(_0x38679b[_0x4257da]+='\x0a');continue;}let _0x2c55ee;if(_0x2c55ee='add'==_0x4257da?_0xd12e6a['nextSibling']&&!this['_schema']['isObject'](_0xd12e6a['nextSibling'])?_0xd12e6a['nextSibling']:null:_0xd12e6a['previousSibling']&&!this['_schema']['isObject'](_0xd12e6a['previousSibling'])?_0xd12e6a['previousSibling']:null,_0xd12e6a['isEmpty']||_0x2c55ee&&_0x2c55ee['isEmpty']){const _0xc645b0=_0x2c55ee&&_0x2c55ee['isEmpty']?_0x2c55ee:_0xd12e6a;_0x38679b&&_0x38679b['type']==_0x4257da+'EmptyContainer'&&_0x38679b['element']['name']==_0xc645b0['name']?_0x38679b['quantity']++:_0x1882ab['push']({'type':_0x4257da+'EmptyContainer','element':_0xc645b0,'quantity':0x1});}else _0x1882ab['push']({'type':_0x4257da+'Container','element':_0xd12e6a});}}}}}['_resolveDescriptionItems'](_0x2170ba){const _0x142ae1=this['_locale'],_0x5add84=[],_0x5c9dcd=[],_0x20e6dc=[];for(const _0x49bd76 of _0x2170ba)switch(_0x49bd76['type']){case'text':if(_0x49bd76['add']=_0x49bd76['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x49bd76['remove']=_0x49bd76['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x49bd76['add']&&''!=_0x49bd76['remove']){_0x5add84['push']({'type':'replace','content':o(_0x142ae1,'REPLACE_TEXT',['\x22'+_0x49bd76['remove']+'\x22','\x22'+_0x49bd76['add']+'\x22'])});continue;}if(null!=_0x49bd76['add']['match'](/^ +$/)){_0x5add84['push']({'type':'insertion','content':o(_0x142ae1,'*Insert:*\x20%0',o(_0x142ae1,'ELEMENT_SPACE',_0x49bd76['add']['length']))});continue;}if(null!=_0x49bd76['remove']['match'](/^ +$/)){_0x5add84['push']({'type':'deletion','content':o(_0x142ae1,'*Remove:*\x20%0',o(_0x142ae1,'ELEMENT_SPACE',_0x49bd76['remove']['length']))});continue;}if(''!=_0x49bd76['add']){_0x5add84['push']({'type':'insertion','content':o(_0x142ae1,'*Insert:*\x20%0','\x22'+_0x49bd76['add']+'\x22')});continue;}_0x5add84['push']({'type':'deletion','content':o(_0x142ae1,'*Remove:*\x20%0','\x22'+_0x49bd76['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x5add84['push']({'type':'insertion','content':o(_0x142ae1,'*Insert:*\x20%0',this['getItemLabel'](_0x49bd76['element'],_0x49bd76['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x5add84['push']({'type':'deletion','content':o(_0x142ae1,'*Remove:*\x20%0',this['getItemLabel'](_0x49bd76['element'],_0x49bd76['quantity']))});continue;case'addContainer':_0x5add84['push']({'type':'insertion','content':o(_0x142ae1,'*Split:*\x20%0',this['getItemLabel'](_0x49bd76['element'],_0x49bd76['quantity']))});continue;case'removeContainer':_0x5add84['push']({'type':'deletion','content':o(_0x142ae1,'*Merge:*\x20%0',this['getItemLabel'](_0x49bd76['element'],_0x49bd76['quantity']))});continue;case'addFormat':_0x5c9dcd['push'](_0x49bd76['key']);continue;case'removeFormat':_0x20e6dc['push'](_0x49bd76['key']);continue;default:_0x5add84['push'](_0x49bd76);}if(_0x5c9dcd['length']){const _0x440bde=_0x5c9dcd['map'](_0xaf256a=>this['_attributeLabels']['has'](_0xaf256a)?this['_attributeLabels']['get'](_0xaf256a):_0xaf256a)['join'](',\x20');_0x5add84['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x440bde)});}if(_0x20e6dc['length']){const _0x430afc=_0x20e6dc['map'](_0x43a620=>this['_attributeLabels']['has'](_0x43a620)?this['_attributeLabels']['get'](_0x43a620):_0x43a620)['join'](',\x20');_0x5add84['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x430afc)});}return _0x5add84;}['_handleCustomCallbackDescription'](_0x31401f){for(const _0x52a7cf of this['_customCallbacks']){const _0x476a10=_0x52a7cf(_0x31401f);if(_0x476a10&&'type'in _0x476a10)return _0x476a10;}}['_handleAttributeSuggestionDescription'](_0x41eb02,_0x11d3ad){const _0x80ff07=_0x11d3ad['data'],_0x172dbc=void 0x0===_0x80ff07['newValue']?'removeFormat':'addFormat';_0x41eb02['push']({'type':_0x172dbc,'key':_0x80ff07['key']});}['_handleRenameSuggestionDescription'](_0x5bd6f5,_0x4dddd9){_0x5bd6f5['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x4dddd9['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x3b8a8b,_0x29cdfb,_0x2a4ff7){if(this['_addDescriptionItems'](_0x3b8a8b,_0x29cdfb),_0x2a4ff7&&_0x2a4ff7['getFirstRange']()&&!_0x29cdfb['getFirstRange']()['end']['isEqual'](_0x2a4ff7['getFirstRange']()['start'])){const _0x5d2e76=_0x3b8a8b[_0x3b8a8b['length']-0x1],_0x7bfe51='insertion'==_0x29cdfb['type']?'add':'remove';_0x5d2e76&&'text'==_0x5d2e76['type']&&(_0x5d2e76[_0x7bfe51]+='\x0a');}}}class O extends _0x45d531{['afterInit'](){const _0x1aed2e=this['editor'],_0x2a0e90=_0x1aed2e['plugins']['get']('TrackChangesEditing');_0x1aed2e['commands']['get']('showAIAssistant')&&_0x2a0e90['enableCommand']('showAIAssistant');}}class E extends _0x45d531{['afterInit'](){const _0x44129c=this['editor'],_0xab36a0=_0x44129c['locale'];if(!_0x44129c['plugins']['has']('AlignmentEditing'))return;const _0x142ffe=_0x44129c['plugins']['get']('TrackChangesEditing');_0x142ffe['enableDefaultAttributesIntegration']('alignment'),_0x142ffe['registerBlockAttribute']('alignment'),_0x142ffe['descriptionFactory']['registerAttributeLabel']('alignment',o(_0xab36a0,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x505c4b=this['editor'],_0x3d865b=_0x505c4b['locale'];_0x505c4b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x481f8f=>{if('formatBlock'!=_0x481f8f['type'])return;const {data:_0x2e9f03}=_0x481f8f;if(_0x2e9f03&&'alignment'==_0x2e9f03['commandName']){const _0x77e87=_0x2e9f03['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x3d865b,'*Format:*\x20%0',function(_0x4b6246){switch(_0x4b6246){case'left':return o(_0x3d865b,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x3d865b,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x3d865b,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x3d865b,'FORMAT_JUSTIFY_TEXT');}}(_0x77e87))};}});}}const Xt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class R extends _0x45d531{['afterInit'](){const _0x4e43af=this['editor'],_0x4f380a=_0x4e43af['plugins']['get']('TrackChangesEditing'),_0x3f8819=_0x4e43af['locale'];for(const _0x2160fa of Xt){if(!_0x4e43af['plugins']['has'](_0x2160fa))continue;const _0x2a7fba=_0x2160fa['slice'](0x0,-0x7)['toLowerCase'](),_0x5a64fd='FORMAT_'+_0x2a7fba['toUpperCase']();_0x4f380a['enableDefaultAttributesIntegration'](_0x2a7fba),_0x4f380a['registerInlineAttribute'](_0x2a7fba),_0x4f380a['descriptionFactory']['registerAttributeLabel'](_0x2a7fba,o(_0x3f8819,_0x5a64fd));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x54ffa0=this['editor'],_0x28bfe8=_0x54ffa0['locale'],_0x429596=_0x54ffa0['plugins']['get']('TrackChangesEditing');function _0x42f452(_0x474413,_0xb022a8){_0x429596['descriptionFactory']['registerDescriptionCallback'](_0x474707=>{if('formatInline'!=_0x474707['type'])return;const {data:_0x26439d}=_0x474707;return _0x26439d&&_0x26439d['commandName']===_0x474413?_0x26439d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x28bfe8,'*Format:*\x20%0',_0xb022a8)}:{'type':'format','content':o(_0x28bfe8,'*Remove\x20format:*\x20%0',_0xb022a8)}:void 0x0;});}_0x42f452('bold',o(_0x28bfe8,'FORMAT_BOLD')),_0x42f452('italic',o(_0x28bfe8,'FORMAT_ITALIC')),_0x42f452('underline',o(_0x28bfe8,'FORMAT_UNDERLINE')),_0x42f452('code',o(_0x28bfe8,'FORMAT_CODE')),_0x42f452('strikethrough',o(_0x28bfe8,'FORMAT_STRIKETHROUGH')),_0x42f452('subscript',o(_0x28bfe8,'FORMAT_SUBSCRIPT')),_0x42f452('superscript',o(_0x28bfe8,'FORMAT_SUPERSCRIPT'));}}class U extends _0x45d531{['afterInit'](){const _0xc048f=this['editor'],_0x514a80=_0xc048f['locale'];if(!_0xc048f['plugins']['has']('BlockQuoteEditing'))return;const _0x5bef89=_0xc048f['plugins']['get']('TrackChangesEditing'),_0x50096d=this['editor']['commands']['get']('blockQuote');_0x5bef89['enableCommand']('blockQuote',(_0x261614,_0x3c9867={})=>{const _0x1baf22=this['editor']['model']['document']['selection'],_0x521c53=_0x3c9867&&void 0x0!==_0x3c9867['forceValue']?_0x3c9867['forceValue']:!_0x50096d['value'];let _0x287352=[];if(_0x521c53){const _0x2703c5=Array['from'](_0x1baf22['getSelectedBlocks']())['filter'](_0x57813f=>Zt(_0x57813f)||function(_0x299cc4,_0x451c88){const _0x2b49b4=_0x451c88['checkChild'](_0x299cc4['parent'],'blockQuote'),_0x553271=_0x451c88['checkChild'](['$root','blockQuote'],_0x299cc4);return _0x2b49b4&&_0x553271;}(_0x57813f,this['editor']['model']['schema']));_0x287352=Yt(_0x2703c5,_0xc048f['model']);}else{const _0x549327=Array['from'](_0x1baf22['getSelectedBlocks']())['filter'](_0x3ea5cb=>Zt(_0x3ea5cb));_0x287352=Yt(_0x549327,_0xc048f['model']);}_0xc048f['model']['change'](()=>{for(const _0x4f299d of _0x287352)_0x5bef89['markBlockFormat'](_0x4f299d,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x521c53}]});});}),_0x5bef89['descriptionFactory']['registerDescriptionCallback'](_0x105cf1=>{const {data:_0x4c2438}=_0x105cf1;if(_0x4c2438&&'blockQuote'==_0x4c2438['commandName']){const _0x528182=o(_0x514a80,'ELEMENT_BLOCK_QUOTE');return _0x4c2438['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x514a80,'*Set\x20format:*\x20%0',_0x528182)}:{'type':'format','content':o(_0x514a80,'*Remove\x20format:*\x20%0',_0x528182)};}});}}function Zt(_0x4556d2){return'blockQuote'==_0x4556d2['parent']['name'];}class V extends _0x45d531{['afterInit'](){const _0x244f4b=this['editor'],_0x31daa7=_0x244f4b['locale'],_0x19ab42=_0x244f4b['plugins']['get']('TrackChangesEditing');_0x244f4b['plugins']['has']('BookmarkEditing')&&(_0x19ab42['enableCommand']('insertBookmark'),_0x19ab42['enableDefaultAttributesIntegration']('updateBookmark'),_0x19ab42['registerBlockAttribute']('bookmarkId'),_0x19ab42['descriptionFactory']['registerDescriptionCallback'](_0x1aba2e=>{if('insertion'!=_0x1aba2e['type']&&'deletion'!=_0x1aba2e['type']&&'attribute'!=_0x1aba2e['type'])return;const _0x2e1e6f=_0x1aba2e['getContainedElement']();if(null==_0x2e1e6f)return;if(!_0x2e1e6f['is']('element','bookmark'))return;const _0x2237b2=_0x2e1e6f['getAttribute']('bookmarkId');if('insertion'==_0x1aba2e['type'])return{'type':'insertion','content':o(_0x31daa7,'*Insert:*\x20%0','\x22'+_0x2237b2+'\x22\x20'+o(_0x31daa7,'ELEMENT_BOOKMARK'))};if('deletion'==_0x1aba2e['type'])return{'type':'deletion','content':o(_0x31daa7,'*Remove:*\x20%0','\x22'+_0x2237b2+'\x22\x20'+o(_0x31daa7,'ELEMENT_BOOKMARK'))};const {data:_0x2b486a}=_0x1aba2e;if(!_0x2b486a||'bookmarkId'!=_0x2b486a['key'])return;return{'type':'format','content':o(_0x31daa7,'*Set\x20bookmark:*\x20%0','\x22'+_0x2b486a['newValue']+'\x22')};}));}}class F extends _0x45d531{['afterInit'](){const _0x54d3fb=this['editor'];_0x54d3fb['plugins']['has']('CaseChange')&&(_0x54d3fb['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x54d3fb['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x54d3fb['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x45d531{['afterInit'](){const _0xa1cbcb=this['editor'];_0xa1cbcb['commands']['get']('ckbox')&&_0xa1cbcb['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x45d531{['afterInit'](){const _0x34ad91=this['editor'];if(!_0x34ad91['plugins']['has']('CodeBlock'))return;const _0x24f819=_0x34ad91['plugins']['get']('TrackChangesEditing'),_0x33c58b=_0x34ad91['locale'],_0x3905a4=_0x34ad91['config']['get']('codeBlock')['languages'],_0x44bb8e=_0x34ad91['commands']['get']('codeBlock');_0x24f819['enableCommand']('indentCodeBlock'),_0x24f819['enableCommand']('outdentCodeBlock'),_0x24f819['enableCommand']('codeBlock',(_0x38d776,_0x1f87a4={})=>{const _0x5f2b1a=_0x34ad91['model'],_0x1a19b2=_0x34ad91['model']['document']['selection'],_0x14296f=_0x1f87a4&&void 0x0!==_0x1f87a4['forceValue']?_0x1f87a4['forceValue']:!_0x44bb8e['value'];let _0x5643df;_0x1f87a4['language']||(_0x1f87a4['language']=_0x3905a4[0x0]['language']),_0x5643df=_0x14296f?Array['from'](_0x1a19b2['getSelectedBlocks']())['filter'](_0xab7e55=>oo(_0xab7e55)||function(_0x4cdb33,_0x378316){if(_0x4cdb33['is']('rootElement')||_0x378316['isLimit'](_0x4cdb33))return!0x1;return _0x378316['checkChild'](_0x4cdb33['parent'],'codeBlock');}(_0xab7e55,_0x5f2b1a['schema'])):Array['from'](_0x1a19b2['getSelectedBlocks']())['filter'](_0x2264c7=>oo(_0x2264c7));const _0x5b3eee=Yt(_0x5643df,_0x5f2b1a);_0x5f2b1a['change'](()=>{for(const _0x87a673 of _0x5b3eee)_0x24f819['markBlockFormat'](_0x87a673,{'commandName':'codeBlock','commandParams':[{..._0x1f87a4,'forceValue':_0x14296f}],'formatGroupId':'blockName'});});}),(_0x24f819['descriptionFactory']['registerElementLabel']('codeBlock',_0x37c606=>o(_0x33c58b,'ELEMENT_CODE_BLOCK',_0x37c606)),_0x24f819['descriptionFactory']['registerDescriptionCallback'](_0x1f9638=>{if('formatBlock'!=_0x1f9638['type'])return;const _0x3c1db9=_0x33c58b['t'],{data:_0x18be3d}=_0x1f9638;if(!_0x18be3d||'codeBlock'!=_0x18be3d['commandName'])return;const _0x54d3d8=_0x18be3d['commandParams'][0x0]['language'],_0x34d32d=_0x3c1db9(_0x3905a4['find'](_0x480c35=>_0x480c35['language']===_0x54d3d8)['label'])['toLowerCase']();return _0x18be3d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x33c58b,'*Set\x20format:*\x20%0',o(_0x33c58b,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x34d32d+')')}:{'type':'format','content':o(_0x33c58b,'*Remove\x20format:*\x20%0',o(_0x33c58b,'ELEMENT_CODE_BLOCK',0x1))};}));}}function oo(_0x37c86c){return'codeBlock'==_0x37c86c['name'];}class J extends _0x45d531{['afterInit'](){const _0x41ef32=this['editor'];if(!_0x41ef32['plugins']['has']('CommentsEditing'))return;_0x41ef32['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x1b4336,_0xf13c97,_0x3026b3){const _0x10c6c0=[];for(const _0x35ff98 of _0xf13c97['getItems']())_0x35ff98['hasAttribute'](_0x1b4336)&&_0x10c6c0['push'](_0x3026b3['createRangeOn'](_0x35ff98));return _0x10c6c0;}function De(_0x34184c,_0x15b7af,{showActiveMarker:_0x5d8885=!0x0}={}){const _0x446d3e=_0x34184c['plugins']['get']('TrackChangesEditing');return(_0x41729c,_0x409fbe,_0x105b30)=>{if(!_0x105b30['consumable']['test'](_0x409fbe['markerRange'],_0x41729c['name']))return;const _0x477f4b=_0x409fbe['markerRange']['getWalker'](),_0x3154ce=_0x409fbe['markerRange']['start'],_0x58a959=_0x34184c['model']['schema'];let _0x2ffcf8=null,_0x5f534a=null,_0x1f5404=!0x1,_0x3a11a6=!0x1;for(const _0x5b61be of _0x477f4b){const _0x39b280=_0x5b61be['item'];_0x1f5404=_0x1f5404||_0x58a959['isContent'](_0x39b280);const _0x186366=_0x105b30['mapper']['toViewElement'](_0x39b280);if(_0x186366&&_0x186366['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5b61be['type']&&(_0x58a959['isBlock'](_0x39b280)&&!_0x58a959['isLimit'](_0x39b280)&&(_0x39b280['nextSibling']||_0x3154ce['isAtEnd']?_0x2ffcf8&&_0x2ffcf8['parent']==_0x39b280||(_0x2ffcf8=_0x39b280,_0x121f36(_0x5b61be['previousPosition']),_0x3a11a6=!0x0):_0x5f534a=_0x5f534a||_0x5b61be['previousPosition']));}function _0x121f36(_0x842659){const {id:_0x1bcfa8,authorId:_0x24fb34}=_0x446d3e['_splitMarkerName'](_0x409fbe['markerName']),_0x3987e2=_0x105b30['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x15b7af,'data-suggestion':_0x1bcfa8,'data-author-id':_0x24fb34}),_0x4ed5be=_0x105b30['mapper']['toViewPosition'](_0x842659);_0x5d8885&&_0x446d3e['activeMarkers']['includes'](_0x409fbe['markerName'])&&_0x105b30['writer']['addClass']('ck-suggestion-marker--active',_0x3987e2),_0x105b30['writer']['insert'](_0x4ed5be,_0x3987e2),_0x105b30['mapper']['bindElementToMarker'](_0x3987e2,_0x409fbe['markerName']);}_0x1f5404||_0x3a11a6||!_0x5f534a||_0x121f36(_0x5f534a);};}class K extends _0x45d531{static get['requires'](){return[_0x3783f2];}['init'](){const _0x1c88b8=this['editor'],_0x347af6=_0x1c88b8['plugins']['get']('TrackChangesEditing');_0x347af6['enableCommand']('delete');const _0x32665c=_0x1c88b8['commands']['get']('deleteForward');_0x347af6['enableCommand']('deleteForward',(_0x4935ae,_0x44b1b8={})=>{const _0x57fec2=_0x1c88b8['model']['createSelection'](_0x1c88b8['model']['document']['selection']);_0x57fec2['isCollapsed']&&_0x1c88b8['model']['modifySelection'](_0x57fec2,{'direction':'forward','unit':_0x44b1b8['unit']});const _0x2b4e53=_0x57fec2['getFirstRange'](),_0x7cc663=_0x5661a3['fromRange'](_0x2b4e53);let _0x19bdbb;_0x4935ae(_0x44b1b8),_0x19bdbb='$graveyard'==_0x7cc663['root']['rootName']?_0x1c88b8['model']['createRange'](_0x2b4e53['start']):_0x1c88b8['model']['createRange'](_0x7cc663['start'],_0x7cc663['end']),_0x7cc663['detach'](),_0x1c88b8['model']['enqueueChange'](_0x32665c['buffer']['batch'],_0x329f51=>{_0x32665c['buffer']['lock'](),_0x329f51['setSelection'](_0x329f51['createRange'](_0x19bdbb['end'])),_0x32665c['buffer']['unlock']();});}),_0x1c88b8['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x1c88b8,'merge'),{'priority':'high'}),_0x1c88b8['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x106d70,_0x22637d,_0x342118)=>{_0x342118['options']['showSuggestionHighlights']&&De(_0x1c88b8,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x106d70,_0x22637d,_0x342118);},{'priority':'high'}),_0x1c88b8['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x219c55,_0xf7fff7,_0x352855)=>{const _0x156621=_0x352855['mapper']['markerNameToElements'](_0xf7fff7['markerName']);if(_0x156621){for(const _0x33cfcb of _0x156621)_0x33cfcb['is']('uiElement')&&(_0x352855['mapper']['unbindElementFromMarkerName'](_0x33cfcb,_0xf7fff7['markerName']),_0x352855['writer']['remove'](_0x33cfcb));}},{'priority':'high'});}}class H extends _0x45d531{['afterInit'](){const _0x1d78ff=this['editor'];if(!_0x1d78ff['plugins']['has']('ListEditing'))return;const _0x20a5ec=_0x1d78ff['locale'],_0x19c7a8=_0x1d78ff['plugins']['get']('TrackChangesEditing'),_0xd15530=_0x1d78ff['plugins']['has']('TodoListEditing'),_0x262e37=!!_0x1d78ff['config']['get']('list.multiBlock');function _0x5e472a(_0x37c715){return{'type':'format','content':''+o(_0x20a5ec,'*Set\x20format:*\x20%0',_0x37c715)};}function _0x2c61e8(_0x307005){return{'type':'format','content':''+o(_0x20a5ec,'*Remove\x20format:*\x20%0',_0x307005)};}_0x19c7a8['enableDefaultAttributesIntegration']('numberedList'),_0x19c7a8['enableDefaultAttributesIntegration']('bulletedList'),_0x19c7a8['enableDefaultAttributesIntegration']('customNumberedList'),_0x19c7a8['enableDefaultAttributesIntegration']('customBulletedList'),_0x19c7a8['enableDefaultAttributesIntegration']('indentList'),_0x19c7a8['enableDefaultAttributesIntegration']('outdentList'),_0x19c7a8['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x19c7a8['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x19c7a8['registerBlockAttribute']('listItemId'),_0x19c7a8['registerBlockAttribute']('listType'),_0x19c7a8['registerBlockAttribute']('listIndent'),_0x262e37&&(_0x19c7a8['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x19c7a8['enableDefaultAttributesIntegration']('mergeListItemForward')),_0xd15530&&(_0x19c7a8['enableDefaultAttributesIntegration']('todoList'),_0x19c7a8['enableDefaultAttributesIntegration']('checkTodoList'),_0x19c7a8['registerBlockAttribute']('todoListChecked'),_0x19c7a8['descriptionFactory']['registerDescriptionCallback'](_0x36796b=>{const {data:_0x433701}=_0x36796b;if(_0x433701&&'todoListChecked'==_0x433701['key'])return{'type':'format','content':_0x433701['newValue']?o(_0x20a5ec,'*Check\x20item*'):o(_0x20a5ec,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x2d0cb9=>{if(_0x2d0cb9['batch']['isUndo'])return!0x1;let _0x196abf=!0x1;const _0x27c2ec=_0x19c7a8['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3e3e69=>'todoListChecked'===_0x19c7a8['_getAttributeKey'](_0x3e3e69));for(const _0x51aa82 of _0x27c2ec){'todo'!=_0x51aa82['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x19c7a8['_findSuggestions'](_0x51aa82['getFirstRange'](),'attribute')['find'](_0x18f79f=>'listType'===_0x19c7a8['_getAttributeKey'](_0x18f79f['suggestion']))||(_0x2d0cb9['removeMarker'](_0x51aa82['getFirstMarker']()),_0x196abf=!0x0));}return _0x196abf;})),_0x19c7a8['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x20a5ec,'FORMAT_INDENT'));const _0x3e629a={'type':'format','content':''};_0x19c7a8['descriptionFactory']['registerDescriptionCallback'](_0x85bf09=>{const {data:_0x5a7748}=_0x85bf09;if(!_0x5a7748||'listType'!=_0x5a7748['key'])return;let _0x5b6583=_0x85bf09['head'];for(;_0x5b6583;){if(_0x5b6583['data']&&(('listStyle'==_0x5b6583['data']['key']||'listMarkerStyle'==_0x5b6583['data']['key'])&&(_0x5b6583['data']['newValue']&&'default'!=_0x5b6583['data']['newValue']||'default'!=_0x5b6583['data']['oldValue']&&!_0x5a7748['newValue'])||!_0x262e37&&_0x5b6583['data']['key']==m))return _0x3e629a;_0x5b6583=_0x5b6583['next'];}if(null==_0x5a7748['newValue'])switch(_0x5a7748['oldValue']){case'bulleted':return _0x2c61e8(o(_0x20a5ec,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2c61e8(o(_0x20a5ec,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2c61e8(o(_0x20a5ec,'ELEMENT_TODO_LIST'));}switch(_0x5a7748['newValue']){case'bulleted':return _0x5e472a(o(_0x20a5ec,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5e472a(o(_0x20a5ec,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5e472a(o(_0x20a5ec,'ELEMENT_TODO_LIST'));}}),_0x19c7a8['descriptionFactory']['registerDescriptionCallback'](_0x1d36b1=>{const {data:_0x4146a4}=_0x1d36b1;if(_0x4146a4&&'listIndent'==_0x4146a4['key'])return null==_0x4146a4['newValue']||null==_0x4146a4['oldValue']&&0x0==_0x4146a4['newValue']?_0x3e629a:void 0x0;}),_0x19c7a8['descriptionFactory']['registerDescriptionCallback'](_0x4d8993=>{if('attribute'!=_0x4d8993['type'])return;const {data:_0x1e214f}=_0x4d8993;if(!_0x1e214f||'listItemId'!=_0x1e214f['key'])return;const _0x145237=Te(_0x4d8993);return'newValue'==_0x145237?{'type':'format','content':o(_0x20a5ec,'*Merge:*\x20list\x20item')}:'oldValue'==_0x145237?{'type':'format','content':o(_0x20a5ec,'*Split:*\x20list\x20item')}:_0x3e629a;}),_0x1d78ff['model']['document']['registerPostFixer'](_0x400a25=>this['listItemIdFixer'](_0x400a25)),_0x1d78ff['model']['document']['registerPostFixer'](_0x1fed9f=>this['noTrackChangesFixer'](_0x1fed9f)),_0x1d78ff['model']['document']['on']('change:data',(_0x562ee5,_0x37c85f)=>{if(_0x37c85f['isUndo']||!_0x37c85f['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x5de674){if(_0x5de674['batch']['isUndo']||!_0x5de674['batch']['isLocal'])return!0x1;let _0x5e7397=!0x1;const _0xe48744=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x12f053=>_0x12f053['data']&&'listItemId'==_0x12f053['data']['key'])['filter'](_0xa43b49=>_0xa43b49['data']['newValue']&&_0xa43b49['data']['oldValue']);for(const _0x15f98c of _0xe48744)Te(_0x15f98c)||(_0x5de674['removeMarker'](_0x15f98c['getFirstMarker']()),_0x5e7397=!0x0);return _0x5e7397;}['noTrackChangesFixer'](_0x1cc066){if(_0x1cc066['batch']['isUndo']||!_0x1cc066['batch']['isLocal'])return!0x1;const _0x13907b=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x13907b['trackChangesCommand']['value'])return!0x1;let _0x22f83b=!0x1;const _0x5b4819=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x525357=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0xed399=>'attribute'==_0xed399['type'])['filter'](_0x4c6949=>_0x5b4819['includes'](_0x4c6949['attributeKey']));if(0x0==_0x525357['length'])return _0x22f83b;for(const _0x703294 of _0x525357){const _0x2e4f1e=_0x13907b['_findSuggestions'](_0x703294['range'],'attribute')['filter'](_0x6e06aa=>!_0x6e06aa['meta']['isNextTo'])['map'](_0x33ab23=>_0x33ab23['suggestion'])['filter'](_0x5af988=>{const _0x34a937=_0x13907b['_getAttributeKey'](_0x5af988);return _0x5b4819['includes'](_0x34a937);});if(_0x2e4f1e['length']){for(const _0x4bd465 of _0x2e4f1e)_0x1cc066['removeMarker'](_0x4bd465['getFirstMarker']());_0x22f83b=!0x0;}}return _0x22f83b;}['assureChains'](){const _0x412275=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5b905c=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x16ca19;const _0x10fd75=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x56448f=>{if(_0x56448f['data']['oldRange']||!_0x56448f['data']['newRange'])return null;if(!_0x56448f['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x74bab9}=_0x412275['_splitMarkerName'](_0x56448f['name']);if(!_0x412275['hasSuggestion'](_0x74bab9))return null;const _0x1284e0=_0x412275['getSuggestion'](_0x74bab9);return _0x5b905c['includes'](_0x1284e0['data']['key']);})['map'](_0x1e6992=>{const {id:_0x374bd7}=_0x412275['_splitMarkerName'](_0x1e6992['name']),_0x2bac2e=_0x412275['getSuggestion'](_0x374bd7);return _0x16ca19=_0x2bac2e['attributes']['groupId'],_0x2bac2e['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x10fd75['size'])return;const _0x42e6c1=_0x412275['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x44b911=>'attribute'==_0x44b911['type']&&_0x44b911['data']&&_0x5b905c['includes'](_0x44b911['data']['key'])&&_0x44b911['attributes']['groupId']!=_0x16ca19)['map'](_0x3f6e0a=>({'listItem':_0x3f6e0a['getFirstRange']()['start']['nodeAfter'],'groupId':_0x3f6e0a['attributes']['groupId']})),_0x4f6608=new Set();for(const {groupId:_0x276a55,listItem:_0x1ec272}of _0x42e6c1)_0x10fd75['has'](_0x1ec272)&&_0x4f6608['add'](_0x276a55);for(const _0x4d9bab of _0x412275['getSuggestions']())_0x4f6608['has'](_0x4d9bab['attributes']['groupId'])&&_0x4d9bab['setAttribute']('groupId',_0x16ca19);}['_supportLegacySuggestions'](){const _0x58dc77=this['editor'],_0x36a269=_0x58dc77['locale'],_0x3bf846=_0x58dc77['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x3bf846['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x4958d8,_0x3b39e4){const _0x1def5d=[];for(let _0x3a062e of _0x4958d8)_0x3a062e['start']['nodeAfter']===_0x3a062e['end']['parent']&&(_0x3a062e=_0x58dc77['model']['createRange'](_0x58dc77['model']['createPositionAt'](_0x3a062e['start']['nodeAfter'],0x0))),_0x1def5d['push'](_0x3a062e);_0x58dc77['model']['change'](_0x4b6e15=>{const _0x566fd5=_0x58dc77['model']['document']['selection'],_0xcc34b3=Array['from'](_0x566fd5['getRanges']())['map'](_0x2de6ca=>_0x5661a3['fromRange'](_0x2de6ca));_0x4b6e15['setSelection'](_0x1def5d),_0x58dc77['commands']['get'](_0x3b39e4['commandName'])['refresh'](),_0x3b39e4['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x58dc77['execute'](_0x3b39e4['commandName'],..._0x3b39e4['commandParams']),_0x4b6e15['setSelection'](_0xcc34b3);for(const _0x46a8d7 of _0xcc34b3)_0x46a8d7['detach']();});}),_0x3bf846['descriptionFactory']['registerElementLabel'](function(_0x161b34){const _0x20b528=!_0x58dc77['model']['schema']['isObject'](_0x161b34),_0x4e1ad1=_0x161b34['previousSibling'],_0x920b9a=_0x161b34['nextSibling'],_0x569d54=_0x161b34['getAttribute']('listItemId'),_0x91342a=!_0x4e1ad1||_0x4e1ad1['getAttribute']('listItemId')!==_0x569d54,_0x51a809=!_0x920b9a||_0x920b9a['getAttribute']('listItemId')!==_0x569d54;return _0x20b528&&Boolean(_0x569d54)&&_0x91342a&&_0x51a809;},_0x5a6f7e=>o(_0x36a269,'ELEMENT_LIST_ITEM',_0x5a6f7e));}['_registerLegacyDescription'](){const _0x321088=this['editor'],_0x335027=_0x321088['locale'];function _0xa8fb45(_0x247790){const _0x51c817=_0x321088['commands']['get']('bulletedList')['value'],_0x3e48a5=_0x321088['commands']['get']('numberedList')['value'];return'numberedList'===_0x247790?_0x51c817:_0x3e48a5;}_0x321088['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x4c67c7){if('formatBlock'!=_0x4c67c7['type'])return;const {data:_0x11260a}=_0x4c67c7;if(!_0x11260a)return;let _0x399681,_0x27f8a2,_0x3acc1b,_0x50e08d;switch(_0x11260a['commandName']){case'bulletedList':_0x3acc1b=_0x11260a['commandParams'][0x0]['forceValue'],_0x50e08d=_0xa8fb45(_0x11260a['commandName']),_0x399681=_0x3acc1b?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x50e08d&&_0x321088['config']['get']('list.multiBlock')||(_0x399681='*Change\x20to:*\x20%0'),_0x27f8a2={'type':'format','content':o(_0x335027,_0x399681,o(_0x335027,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x3acc1b=_0x11260a['commandParams'][0x0]['forceValue'],_0x50e08d=_0xa8fb45(_0x11260a['commandName']),_0x399681=_0x3acc1b?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x50e08d&&_0x321088['config']['get']('list.multiBlock')||(_0x399681='*Change\x20to:*\x20%0'),_0x27f8a2={'type':'format','content':o(_0x335027,_0x399681,o(_0x335027,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x399681='*Indent:*\x20%0',_0x27f8a2={'type':'format','content':o(_0x335027,_0x399681,o(_0x335027,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x399681=function(_0x8fbef4){const _0x5a7258=_0x8fbef4['getFirstRange']();let _0x48864f=_0x5a7258['start']['nodeAfter'];for(;_0x48864f&&_0x5a7258['containsItem'](_0x48864f);){if(_0x48864f['getAttribute']('listIndent')>0x0)return!0x1;_0x48864f=_0x48864f['nextSibling'];}return!0x0;}(_0x4c67c7)?o(_0x335027,'*Format:*\x20remove\x20from\x20%0',o(_0x335027,function(_0x1d35da){return'ELEMENT_'+_0x1d35da['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4c67c7))):o(_0x335027,'*Outdent:*\x20%0',o(_0x335027,'ELEMENT_LIST_ITEM')),_0x27f8a2={'type':'format','content':_0x399681};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x11260a['multipleBlocks']&&(_0x399681='*Merge:*\x20%0',_0x27f8a2={'type':'deletion','content':o(_0x335027,_0x399681,o(_0x335027,'ELEMENT_LIST_ITEM'))});}return _0x27f8a2;});}}function Te(_0x87f9f3){let _0x3dfd74=_0x87f9f3['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x3dfd74;){const _0x4b7478=_0x3dfd74['getAttribute']('listItemId');if(!_0x4b7478)return!0x1;if(_0x4b7478==_0x87f9f3['data']['newValue'])return'newValue';if(_0x4b7478==_0x87f9f3['data']['oldValue'])return'oldValue';_0x3dfd74=_0x3dfd74['previousSibling'];}return!0x1;}class q extends _0x45d531{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x44f970=this['editor']['config']['get']('list.properties'),_0x4dad8b=this['editor']['plugins']['get']('TrackChangesEditing');_0x44f970['styles']&&(_0x4dad8b['enableDefaultAttributesIntegration']('listStyle'),_0x4dad8b['registerBlockAttribute']('listStyle')),_0x44f970['reversed']&&(_0x4dad8b['enableDefaultAttributesIntegration']('listReversed'),_0x4dad8b['registerBlockAttribute']('listReversed')),_0x44f970['startIndex']&&(_0x4dad8b['enableDefaultAttributesIntegration']('listStart'),_0x4dad8b['registerBlockAttribute']('listStart'));const _0x39b76b={'type':'format','content':''};_0x4dad8b['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x5b1cee=this['editor']['locale'];_0x4dad8b['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x5b1cee,'FORMAT_LIST_REVERSED')),_0x4dad8b['descriptionFactory']['registerDescriptionCallback'](_0x72e5d4=>{const {data:_0x1146a1}=_0x72e5d4;if(_0x1146a1&&'listReversed'==_0x1146a1['key'])return null==_0x1146a1['newValue']||0x0==_0x1146a1['newValue']&&null==_0x1146a1['oldValue']?_0x39b76b:void 0x0;}),_0x4dad8b['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x5b1cee,'FORMAT_LIST_START')),_0x4dad8b['descriptionFactory']['registerDescriptionCallback'](_0x4b9791=>{const {data:_0x57ba41}=_0x4b9791;if(_0x57ba41&&'listStart'==_0x57ba41['key'])return null==_0x57ba41['newValue']||0x1==_0x57ba41['newValue']&&null==_0x57ba41['oldValue']?_0x39b76b:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x5d7316=>{if(_0x5d7316['batch']['isUndo'])return!0x1;let _0x382db2=!0x1;const _0xfa536b=_0x4dad8b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x545d7d=>{const _0x29b95c=_0x4dad8b['_getAttributeKey'](_0x545d7d);return'listStart'==_0x29b95c||'listReversed'==_0x29b95c;});for(const _0x509a3f of _0xfa536b){const _0x1f93d7=_0x509a3f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x1f93d7||'customNumbered'==_0x1f93d7)continue;_0x4dad8b['_findSuggestions'](_0x509a3f['getFirstRange'](),'attribute')['find'](_0x27789a=>'listType'==_0x4dad8b['_getAttributeKey'](_0x27789a['suggestion']))||(_0x5d7316['removeMarker'](_0x509a3f['getFirstMarker']()),_0x382db2=!0x0);}return _0x382db2;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x5d8029){const _0x4ca14d=this['editor']['locale'],{data:_0x37714d}=_0x5d8029,_0x444581={'type':'format','content':''};if(!_0x37714d||'listStyle'!=_0x37714d['key'])return;if(!_0x37714d['oldValue'])return'default'==_0x37714d['newValue']?_0x444581:{'type':'format','content':''+o(_0x4ca14d,'*Set\x20format:*\x20%0',o(_0x4ca14d,this['_getTranslationKeyForListStyle'](_0x37714d['newValue'])))};if(!_0x37714d['newValue']){if('default'==_0x37714d['oldValue'])return _0x444581;let _0x4f6019=_0x5d8029['head'];for(;_0x4f6019;){if(_0x4f6019['data']&&'listType'==_0x4f6019['data']['key']&&_0x4f6019['data']['newValue'])return _0x444581;_0x4f6019=_0x4f6019['next'];}return{'type':'format','content':''+o(_0x4ca14d,'*Remove\x20format:*\x20%0',o(_0x4ca14d,this['_getTranslationKeyForListStyle'](_0x37714d['oldValue'])))};}if('default'!=_0x37714d['newValue'])return{'type':'format','content':''+o(_0x4ca14d,'*Set\x20format:*\x20%0',o(_0x4ca14d,this['_getTranslationKeyForListStyle'](_0x37714d['newValue'])))};let _0x3760fa=_0x5d8029['head'];for(;_0x3760fa;){if(_0x3760fa['data']&&'listType'==_0x3760fa['data']['key']&&_0x3760fa['data']['newValue']&&_0x3760fa['data']['oldValue'])return _0x444581;_0x3760fa=_0x3760fa['next'];}return{'type':'format','content':o(_0x4ca14d,'*Set\x20format:*\x20%0',o(_0x4ca14d,'ELEMENT_'+_0x5d8029['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x247774=this['editor'],_0x3c305c=_0x247774['locale'];_0x247774['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x26fd09=>{if('formatBlock'!=_0x26fd09['type'])return;const {data:_0xf8f26c}=_0x26fd09;if(!_0xf8f26c)return;let _0x3d1b01,_0x12f112;switch(_0xf8f26c['commandName']){case'listStyle':_0x3d1b01='*Change\x20to:*\x20%0',_0x12f112={'type':'format','content':o(_0x3c305c,_0x3d1b01,o(_0x3c305c,this['_getTranslationKeyForListStyle'](_0xf8f26c['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3d1b01=_0xf8f26c['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x12f112={'type':'format','content':o(_0x3c305c,_0x3d1b01)};break;case'listStart':_0x3d1b01='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x12f112={'type':'format','content':o(_0x3c305c,_0x3d1b01,_0xf8f26c['commandParams'][0x0]['startIndex'])};}return _0x12f112;});}['_getTranslationKeyForListStyle'](_0x58d582){return'ELEMENT_'+function(_0x327518){if(Se['includes'](_0x327518))return'bulleted';if(_e['includes'](_0x327518))return'numbered';return null;}(_0x58d582)['toUpperCase']()+'_LIST_'+_0x58d582['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class z extends _0x45d531{['afterInit'](){const _0x4d9f0c=this['editor'];_0x4d9f0c['commands']['get']('emoji')&&_0x4d9f0c['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class W extends _0x45d531{static get['requires'](){return[_0x184149];}['init'](){const _0x4aa4aa=this['editor'],_0x275da5=_0x4aa4aa['plugins']['get']('TrackChangesEditing'),_0x5c2651=_0x4aa4aa['commands']['get']('enter');_0x275da5['enableCommand']('enter',()=>{_0x4aa4aa['model']['change'](_0x29b5f7=>{const _0x426f27=_0x4aa4aa['model']['document']['selection'],_0x10e512=_0x426f27['getFirstPosition'](),_0x46b300=_0x5661a3['fromRange'](_0x426f27['getFirstRange']());if(_0x5c2651['enterBlock'](_0x29b5f7)){const _0x1ac1ae=_0x4aa4aa['model']['createPositionAt'](_0x10e512['parent']['nextSibling'],0x0),_0x558af4=_0x29b5f7['createRange'](_0x10e512,_0x1ac1ae);_0x275da5['markInsertion'](_0x558af4);}else _0x29b5f7['setSelection'](_0x29b5f7['createRange'](_0x46b300['end']));_0x46b300['detach'](),_0x5c2651['fire']('afterExecute',{'writer':_0x29b5f7});});}),_0x4aa4aa['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x4aa4aa,'split'),{'priority':'high'}),_0x4aa4aa['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x1c8ced,_0x394f94,_0x3a345b)=>{const _0x37894b=_0x3a345b['mapper']['markerNameToElements'](_0x394f94['markerName']);if(_0x37894b){for(const _0x2359eb of _0x37894b)_0x2359eb['hasClass']('ck-suggestion-marker-split')&&(_0x3a345b['mapper']['unbindElementFromMarkerName'](_0x2359eb,_0x394f94['markerName']),_0x3a345b['writer']['remove'](_0x2359eb));}},{'priority':'high'}),_0x4aa4aa['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x99c76c,_0x118efb,_0x4ed601)=>{_0x4ed601['options']['showSuggestionHighlights']&&De(_0x4aa4aa,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x99c76c,_0x118efb,_0x4ed601);},{'priority':'high'});}}class Q extends _0x45d531{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x53c6ad=this['editor']['plugins']['get']('TrackChangesEditing');_0x53c6ad['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x53c6ad['enableCommand']('findNext'),_0x53c6ad['enableCommand']('findPrevious'),_0x53c6ad['enableCommand']('replace'),_0x53c6ad['enableCommand']('replaceAll');}['handleFindCommand'](_0x527cd7,_0x51a035,_0x1884f0={}){const _0xb95d4c=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x527cd7(_0x523387=>{let _0x4db6ed=('string'==typeof _0x51a035?_0xb95d4c['findByTextCallback'](_0x51a035,_0x1884f0):_0x51a035)(_0x523387);Array['isArray'](_0x4db6ed)&&(_0x4db6ed={'results':_0x4db6ed,'searchText':'string'==typeof _0x51a035?_0x51a035:''});const _0x851ae6=_0x4db6ed['results']['filter'](_0x3587b4=>!0x1===this['_isInDeletionRange'](_0x3587b4,_0x523387['item']));return{..._0x4db6ed,'results':_0x851ae6};},_0x1884f0);}['_isInDeletionRange'](_0x3c9278,_0x5ef304){const _0x44a0c2=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5ef304,_0x3c9278['start']),this['editor']['model']['createPositionAt'](_0x5ef304,_0x3c9278['end']));for(const _0x28d1b7 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x44a0c2['getIntersection'](_0x28d1b7['getRange']()))return!0x0;return!0x1;}}const no=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class X extends _0x45d531{['afterInit'](){const _0x1d6ba3=this['editor']['locale'],_0x2b820e=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x180fd0,commandName:_0x271291}of no)this['editor']['plugins']['has'](_0x180fd0)&&(_0x2b820e['enableDefaultAttributesIntegration'](_0x271291),_0x2b820e['registerInlineAttribute'](_0x271291));_0x2b820e['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x1d6ba3,'FORMAT_FONT_SIZE')),_0x2b820e['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x1d6ba3,'FORMAT_FONT_FAMILY')),_0x2b820e['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x1d6ba3,'FORMAT_FONT_COLOR')),_0x2b820e['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x1d6ba3,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x204d9e=this['editor'],_0x43450d=_0x204d9e['locale'];_0x204d9e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x101bb6=>{const _0x46769c=_0x43450d['t'];if('formatInline'!=_0x101bb6['type'])return;const {data:_0x23fffb}=_0x101bb6;if(null!=_0x23fffb){if('fontSize'==_0x23fffb['commandName']){const _0x4ec1ac=_0x23fffb['commandParams'][0x0]['value'];if(_0x4ec1ac){const _0x49937b=_0x46769c(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x6f313c=>_0x6f313c['model']==_0x4ec1ac)['title'])['toLowerCase']();return{'type':'format','content':o(_0x43450d,'*Set\x20font\x20size:*\x20%0',_0x49937b)};}return{'type':'format','content':o(_0x43450d,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x23fffb['commandName']){const _0x3838a0=_0x23fffb['commandParams'][0x0]['value'];return _0x3838a0?{'type':'format','content':o(_0x43450d,'*Set\x20font\x20family:*\x20%0',_0x3838a0)}:{'type':'format','content':o(_0x43450d,'*Reset\x20font\x20family*')};}if('fontColor'==_0x23fffb['commandName']){const _0x1f761a=_0x23fffb['commandParams'][0x0]['value'];if(_0x1f761a){const _0x302d55=to(this['editor']['config']['get']('fontColor.colors'))['find'](_0x50dd62=>_0x50dd62['model']==_0x1f761a);let _0x5629f2=_0x1f761a,_0x102e40='';return _0x302d55&&(_0x5629f2=_0x302d55['label'],_0x102e40=_0x46769c(_0x5629f2)['toLowerCase']()),{'type':'format','content':o(_0x43450d,'*Set\x20font\x20color:*\x20%0',_0x102e40)['trim'](),'color':{'value':_0x1f761a,'title':_0x102e40||_0x5629f2}};}return{'type':'format','content':o(_0x43450d,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x23fffb['commandName']){const _0x1014c9=_0x23fffb['commandParams'][0x0]['value'];if(_0x1014c9){const _0x2771bc=to(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x1e3b48=>_0x1e3b48['model']==_0x1014c9);let _0x23bfa9=_0x1014c9,_0x21506c='';return _0x2771bc&&(_0x23bfa9=_0x2771bc['label'],_0x21506c=_0x46769c(_0x23bfa9)['toLowerCase']()),{'type':'format','content':o(_0x43450d,'*Set\x20font\x20background\x20color:*\x20%0',_0x21506c)['trim'](),'color':{'value':_0x1014c9,'title':_0x21506c||_0x23bfa9}};}return{'type':'format','content':o(_0x43450d,'*Reset\x20font\x20background\x20color*')};}}});}}class Y extends _0x45d531{['afterInit'](){const _0x41fd42=this['editor'],_0xc3597=_0x41fd42['plugins']['get']('TrackChangesEditing'),_0x2a1826=_0x41fd42['commands']['get']('copyFormat'),_0x413b2f=_0x41fd42['commands']['get']('pasteFormat');_0x2a1826&&_0x413b2f&&(_0xc3597['enableDefaultAttributesIntegration']('pasteFormat'),_0xc3597['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x5e677=this['editor'],_0x3a159c=_0x5e677['locale'];_0x5e677['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x555deb=>{if('formatBlock'!=_0x555deb['type']&&'formatInline'!=_0x555deb['type'])return;const {data:_0x352411}=_0x555deb;if(_0x352411&&'pasteFormat'===_0x352411['commandName']){const _0x442e5b=[],_0x2b4a14=_0x352411['commandParams'][0x0];for(const [_0x51fbe7,_0x53c433]of Object['entries'](_0x2b4a14))_0x442e5b['push'](ro(_0x5e677,_0x51fbe7,_0x53c433));return _0x442e5b['length']?{'type':'format','content':o(_0x3a159c,'*Set\x20format\x20to:*\x20%0',_0x442e5b['join'](',\x20'))}:{'type':'format','content':o(_0x3a159c,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x3e2f5d,_0x4c93f2,_0x126a69){const _0x49caaa=_0x3e2f5d['locale']['t'],_0x13d31b=_0x4c93f2['split'](/(?=[A-Z])/)['join']('\x20'),_0x555d7b=_0x49caaa(_0x13d31b['charAt'](0x0)['toUpperCase']()+_0x13d31b['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x126a69)return _0x555d7b;if('fontColor'===_0x4c93f2||'fontBackgroundColor'===_0x4c93f2){const _0x2640f7=to(_0x3e2f5d['config']['get']('fontColor.colors'))['find'](_0x523eb1=>_0x523eb1['model']==_0x126a69);return _0x555d7b+'\x20('+(_0x2640f7?_0x49caaa(_0x2640f7['label'])['toLowerCase']():_0x126a69)+')';}if('fontSize'===_0x4c93f2&&isNaN(parseFloat(_0x126a69))){const _0x490b8f=_0x3e2f5d['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x3e2f5d['config']['get']('fontSize.options'))['find'](_0x101d08=>_0x101d08['model']==_0x126a69);return _0x555d7b+'\x20('+(_0x490b8f?_0x49caaa(_0x490b8f['title'])['toLowerCase']():_0x126a69)+')';}return _0x555d7b+'\x20('+_0x126a69+')';}class Z extends _0x45d531{['_headingOptions'];['afterInit'](){const _0x4fb8ad=this['editor'];if(!_0x4fb8ad['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x4fb8ad['config']['get']('heading.options');const _0x30b2ba=_0x4fb8ad['locale'],_0x5b188e=_0x4fb8ad['plugins']['get']('TrackChangesEditing');_0x5b188e['enableDefaultAttributesIntegration']('heading');for(const _0x32e200 of this['_headingOptions'])'paragraph'!=_0x32e200['model']&&_0x5b188e['descriptionFactory']['registerElementLabel'](_0x32e200['model'],_0x424fb1=>{const _0x5ceb67=this['_getHeadingLevel'](_0x32e200['model']);return null!==_0x5ceb67?_0x28c79c(_0x424fb1,_0x5ceb67):_0x183ff0(_0x424fb1,_0x32e200['title']);});function _0x28c79c(_0x20fb6d,_0x1264ab){return o(_0x30b2ba,'ELEMENT_HEADING',[_0x20fb6d,_0x1264ab]);}function _0x183ff0(_0x12696e,_0x1ff72b){return o(_0x30b2ba,'ELEMENT_HEADING_CUSTOM',[_0x12696e,_0x1ff72b]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x13298f=this['editor'],_0x1aba9d=_0x13298f['locale'];function _0x520e8e(_0x197092,_0x1c03aa){return o(_0x1aba9d,'ELEMENT_HEADING_CUSTOM',[_0x197092,_0x1c03aa]);}_0x13298f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x9b7029=>{if('formatBlock'!=_0x9b7029['type'])return;const {data:_0x58f8ff}=_0x9b7029;if(_0x58f8ff&&'heading'==_0x58f8ff['commandName']){const _0x958cb4=_0x58f8ff['commandParams'][0x0]['value'],_0x38b984=this['_getHeadingLevel'](_0x958cb4);if(null!==_0x38b984)return{'type':'format','content':o(_0x1aba9d,'*Change\x20to:*\x20%0',(_0x511c71=0x1,_0x548de9=_0x38b984,o(_0x1aba9d,'ELEMENT_HEADING',[_0x511c71,_0x548de9])))};const _0x28539e=this['_headingOptions']['find'](_0xfa3778=>_0xfa3778['model']===_0x958cb4)['title'];return{'type':'format','content':o(_0x1aba9d,'*Change\x20to:*\x20%0',_0x520e8e(0x1,_0x28539e))};}var _0x511c71,_0x548de9;});}['_getHeadingLevel'](_0x5f4bcc){const _0x551352=_0x5f4bcc['match'](/^heading(\d+)/);if(_0x551352)return _0x551352[0x1];const _0x5013b5=this['_headingOptions']?.['find'](_0x12f598=>_0x12f598['model']==_0x5f4bcc);if(_0x5013b5&&_0x5013b5['view']){const _0xbe05ef=_0x5013b5['view'],_0x149102=(_0xbe05ef['name']??_0xbe05ef)['match'](/^h(\d+)/);if(_0x149102)return _0x149102[0x1];}return null;}}class tt extends _0x45d531{['afterInit'](){const _0x5b0799=this['editor'];if(!_0x5b0799['plugins']['has']('HighlightEditing'))return;const _0x49950e=_0x5b0799['plugins']['get']('TrackChangesEditing'),_0x7d796c=_0x5b0799['locale'];_0x49950e['enableDefaultAttributesIntegration']('highlight'),_0x49950e['registerInlineAttribute']('highlight'),_0x49950e['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x7d796c,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x121973=this['editor'],_0x12da1d=_0x121973['locale'];_0x121973['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ef8dc=>{if('formatInline'!=_0x1ef8dc['type'])return;const {data:_0x5efc72}=_0x1ef8dc;if(_0x5efc72&&'highlight'==_0x5efc72['commandName']){const _0x10fa05=_0x12da1d['t'],_0x82b5a=_0x5efc72['commandParams'][0x0]['value'];if(_0x82b5a){const _0x2246a8=_0x121973['config']['get']('highlight.options')['find'](_0x119481=>_0x119481['model']==_0x82b5a),_0x282d87=_0x10fa05(_0x2246a8['title'])['toLowerCase']();return{'type':'format','content':o(_0x12da1d,'*Set\x20highlight:*\x20%0',_0x282d87),'color':{'value':_0x2246a8['color'],'title':_0x2246a8['title']}};}return{'type':'format','content':o(_0x12da1d,'*Remove\x20highlight*',o(_0x12da1d,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x45d531{['afterInit'](){const _0x215a36=this['editor'];if(!_0x215a36['plugins']['has']('HorizontalLineEditing'))return;_0x215a36['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x269c5c=_0x215a36['plugins']['get']('TrackChangesEditing'),_0x190711=_0x215a36['locale'];_0x269c5c['descriptionFactory']['registerElementLabel']('horizontalLine',_0x429159=>o(_0x190711,'ELEMENT_HORIZONTAL_LINE',_0x429159)),_0x215a36['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x34a2be,{writer:_0x19657c,options:_0x4543bf})=>{if(!_0x4543bf['showSuggestionHighlights'])return null;const _0x3f5c66=_0x19657c['createContainerElement']('div'),_0x1e441d=_0x19657c['createEmptyElement']('hr');return _0x19657c['addClass']('ck-horizontal-line',_0x3f5c66),_0x19657c['insert'](_0x19657c['createPositionAt'](_0x3f5c66,0x0),_0x1e441d),_0x3f5c66;},'converterPriority':'high'});}}class nt extends _0x45d531{['afterInit'](){const _0xb9b15=this['editor'];if(!_0xb9b15['plugins']['has']('HtmlEmbed'))return;const _0x44e93b=_0xb9b15['plugins']['get']('TrackChangesEditing'),_0x5e2e06=_0xb9b15['locale'];_0x44e93b['descriptionFactory']['registerElementLabel']('rawHtml',_0x304201=>o(_0x5e2e06,'ELEMENT_HTML_EMBED',_0x304201)),_0x44e93b['enableDefaultAttributesIntegration']('htmlEmbed'),_0x44e93b['registerBlockAttribute']('value'),_0x44e93b['descriptionFactory']['registerDescriptionCallback'](_0x5ca9a3=>{if('attribute'!=_0x5ca9a3['type'])return;const {data:_0x371e7e}=_0x5ca9a3;if(_0x371e7e&&'value'==_0x371e7e['key']&&_0x5ca9a3['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x1fdd41=o(_0x5e2e06,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x5e2e06,'*Change\x20%0\x20content*',_0x1fdd41)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1611c4=this['editor'],_0x280e88=_0x1611c4['locale'];_0x1611c4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ed9f8=>{if('formatBlock'!=_0x4ed9f8['type'])return;const {data:_0xb09da4}=_0x4ed9f8;if(_0xb09da4&&'htmlEmbed'==_0xb09da4['commandName']){const _0x4389a5=o(_0x280e88,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x280e88,'*Change\x20%0\x20content*',_0x4389a5)};}});}}class et extends _0x45d531{['afterInit'](){const _0x5e1f64=this['editor'];if(!_0x5e1f64['plugins']['has']('ImageEditing'))return;const _0x55636e=_0x5e1f64['plugins']['get']('TrackChangesEditing'),_0x349cee=_0x5e1f64['plugins']['get']('ImageUtils'),_0x5ef14b=_0x5e1f64['locale'];_0x55636e['enableCommand']('insertImage'),_0x55636e['descriptionFactory']['registerElementLabel']('imageBlock',_0xa29c2c=>o(_0x5ef14b,'ELEMENT_IMAGE',_0xa29c2c)),_0x55636e['descriptionFactory']['registerElementLabel']('imageInline',_0x5ec7b6=>o(_0x5ef14b,'ELEMENT_INLINE_IMAGE',_0x5ec7b6)),_0x55636e['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x5ef14b,'ELEMENT_CAPTION')),_0x5e1f64['plugins']['has']('ImageUploadEditing')&&_0x55636e['enableCommand']('uploadImage'),_0x5e1f64['plugins']['has']('ImageBlockEditing')&&_0x5e1f64['plugins']['has']('ImageInlineEditing')&&(_0x55636e['enableCommand']('imageTypeInline',(_0x421527,_0x110e1e)=>{const _0x10c552=_0x349cee['getClosestSelectedImageElement'](_0x5e1f64['model']['document']['selection']);_0x5e1f64['model']['change'](()=>{_0x55636e['markBlockFormat'](_0x10c552,{'commandName':'imageTypeInline','commandParams':[_0x110e1e]},[],'convertBlockImageToInline');});}),_0x55636e['enableCommand']('imageTypeBlock',(_0x4b2b56,_0x59c54f)=>{_0x5e1f64['model']['change'](_0x1c93c4=>{let _0x2e3404=_0x349cee['getClosestSelectedImageElement'](_0x5e1f64['model']['document']['selection']),_0x1ffc7e=_0x1c93c4['createRangeOn'](_0x2e3404);const _0x15826b=_0x54699a['fromPosition'](_0x1ffc7e['start'],'toPrevious'),_0x357358=_0x54699a['fromPosition'](_0x1ffc7e['end'],'toNext');_0x55636e['forceDefaultExecution'](()=>_0x4b2b56(_0x59c54f)),_0x2e3404=_0x349cee['getClosestSelectedImageElement'](_0x5e1f64['model']['document']['selection']),_0x1ffc7e=_0x1c93c4['createRangeOn'](_0x2e3404);const _0x54490c=_0x1c93c4['createRange'](_0x15826b,_0x357358);_0x15826b['detach'](),_0x357358['detach'](),_0x55636e['markBlockFormat'](_0x2e3404,{'commandName':'imageTypeInline','commandParams':[_0x59c54f]},[],'convertInlineImageToBlock'),_0x54490c['start']['isBefore'](_0x1ffc7e['start'])&&_0x55636e['markInsertion'](_0x1c93c4['createRange'](_0x54490c['start'],_0x1ffc7e['start']),'convertInlineImageToBlock'),_0x1ffc7e['end']['isBefore'](_0x54490c['end'])&&_0x55636e['markInsertion'](_0x1c93c4['createRange'](_0x1ffc7e['end'],_0x54490c['end']),'convertInlineImageToBlock');});}),_0x55636e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x55636e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x55636e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x55636e['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x55636e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x55636e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x5e4af1])=>{const _0x4a16fe=_0x55636e['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x258d7c=_0x5e4af1['start'],_0x29f9ce=_0x5e4af1['end'];const _0x33d598=_0x5e1f64['model']['schema']['getNearestSelectionRange'](_0x258d7c,'backward'),_0x579972=_0x5e1f64['model']['schema']['getNearestSelectionRange'](_0x29f9ce,'forward');_0x33d598['isCollapsed']&&(_0x258d7c=_0x33d598['start']),_0x579972['isCollapsed']&&(_0x29f9ce=_0x579972['end']),_0x4a16fe([_0x5e1f64['model']['createRange'](_0x258d7c,_0x29f9ce)]);}),_0x55636e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x4605cd),_0x55636e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x4605cd)),_0x5e1f64['plugins']['has']('ImageCaptionEditing')&&(_0x55636e['enableCommand']('toggleImageCaption',(_0xb9f01b,_0x3cd7ef)=>{const _0x708218=_0x5e1f64['plugins']['get']('ImageCaptionUtils');let _0x5177a0=_0x349cee['getClosestSelectedImageElement'](_0x5e1f64['model']['document']['selection']),_0x28d96f=_0x708218['getCaptionFromImageModelElement'](_0x5177a0);_0x5e1f64['model']['change'](()=>{if(_0x28d96f)return void _0x55636e['markDeletion'](_0x5e1f64['model']['createRangeOn'](_0x28d96f));const _0x27a09d=_0x349cee['isBlockImage'](_0x5177a0);_0xb9f01b(_0x3cd7ef),_0x5177a0=_0x349cee['getClosestSelectedImageElement'](_0x5e1f64['model']['document']['selection']),_0x28d96f=_0x708218['getCaptionFromImageModelElement'](_0x5177a0),_0x55636e['markInsertion'](_0x5e1f64['model']['createRangeOn'](_0x28d96f),_0x27a09d?null:'imageCaption');});}),_0x55636e['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x4605cd));const _0x1756d7=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1b15f3(_0x3580d2,_0x1414cf){const _0x579b8e=_0x1756d7['findIndex'](({type:_0x3383c6,subType:_0x2066ba})=>_0x3580d2['type']==_0x3383c6&&_0x3580d2['subType']==_0x2066ba),_0x576e7f=_0x1756d7['findIndex'](({type:_0x597627,subType:_0x5ad1cb})=>_0x1414cf['type']==_0x597627&&_0x1414cf['subType']==_0x5ad1cb);if(_0x579b8e<0x0||_0x576e7f<0x0)return!0x1;const _0xebc185=_0x3580d2['getFirstRange'](),_0x189586=_0x1414cf['getFirstRange']();if((0x0==_0x579b8e||0x1==_0x579b8e)&&0x2==_0x576e7f&&_0xebc185['isIntersecting'](_0x189586))return!0x0;if(0x2==_0x579b8e&&0x3==_0x576e7f){const _0x3eb157=_0x55636e['_findSuggestions'](_0xebc185,'insertion')['filter'](({suggestion:_0x4e33ed,meta:_0x5e6485})=>_0x5e6485['isOwn']&&'convertInlineImageToBlock'==_0x4e33ed['subType']);if(_0x3eb157['length']>0x1&&_0x189586['end']['isEqual'](_0xebc185['start']))return!0x0;if(0x1==_0x3eb157['length']&&(_0xebc185['start']['isEqual'](_0x189586['end'])||_0xebc185['end']['isEqual'](_0x189586['start'])))return!0x0;}if(0x3==_0x579b8e&&0x3==_0x576e7f&&_0xebc185['start']['isBefore'](_0x189586['start'])){const _0x5d87c3=_0xebc185['end']['nodeAfter'],_0x1a2a15=_0x189586['start']['nodeBefore'];return _0x349cee['isBlockImage'](_0x5d87c3)&&_0x5d87c3===_0x1a2a15;}return!0x1;}function _0x4605cd(_0x5a5e23,_0x24fe9a){return _0x1b15f3(_0x5a5e23,_0x24fe9a)?[_0x5a5e23,_0x24fe9a]:_0x1b15f3(_0x24fe9a,_0x5a5e23)?[_0x24fe9a,_0x5a5e23]:null;}_0x5e1f64['plugins']['has']('ImageResize')&&(_0x55636e['enableDefaultAttributesIntegration']('resizeImage'),_0x55636e['registerBlockAttribute']('resizedWidth'),_0x55636e['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x5ef14b,'FORMAT_IMAGE_SIZE'))),_0x5e1f64['plugins']['has']('ImageTextAlternativeEditing')&&(_0x55636e['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x55636e['registerBlockAttribute']('alt')),_0x5e1f64['plugins']['has']('PictureEditing')&&(_0x55636e['registerBlockAttribute']('sources'),_0x55636e['descriptionFactory']['registerDescriptionCallback'](_0x5303c6=>{if('attribute'!=_0x5303c6['type'])return;const {data:_0x555d69}=_0x5303c6;return _0x555d69&&'sources'==_0x555d69['key']?{'type':'format','content':''}:void 0x0;})),_0x5e1f64['plugins']['has']('ImageSizeAttributes')&&(_0x55636e['registerBlockAttribute']('width'),_0x55636e['registerBlockAttribute']('height'),_0x55636e['descriptionFactory']['registerDescriptionCallback'](_0x1a5ef9=>{if('attribute'!=_0x1a5ef9['type'])return;const {data:_0x627b23}=_0x1a5ef9;return!_0x627b23||'width'!=_0x627b23['key']&&'height'!=_0x627b23['key']?void 0x0:{'type':'format','content':''};})),_0x55636e['descriptionFactory']['registerDescriptionCallback'](_0x6d475d=>{if(!!_0x1756d7['find'](({type:_0x97ea96,subType:_0x33d916})=>_0x6d475d['type']==_0x97ea96&&_0x6d475d['subType']==_0x33d916))return _0x6d475d['previous']?{}:void 0x0;}),_0x55636e['descriptionFactory']['registerDescriptionCallback'](_0x3681c6=>{if('insertion'==_0x3681c6['type']||'deletion'==_0x3681c6['type']){const _0x141b3a=_0x3681c6['getContainedElement']();if(_0x141b3a&&_0x141b3a['is']('element','caption'))return{'type':'insertion'==_0x3681c6['type']?'addObject':'removeObject','element':_0x141b3a,'quantity':0x1};}}),_0x55636e['descriptionFactory']['registerDescriptionCallback'](_0x5a38f8=>'formatBlock'==_0x5a38f8['type']&&'convertInlineImageToBlock'==_0x5a38f8['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x5a38f8['type']&&'convertBlockImageToInline'==_0x5a38f8['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x55636e['descriptionFactory']['registerDescriptionCallback'](_0x3e35c1=>{if('attribute'!=_0x3e35c1['type'])return;const {data:_0x4e1d03}=_0x3e35c1;if(!_0x4e1d03||'alt'!=_0x4e1d03['key'])return;const _0x169902=_0x4e1d03['newValue'];return _0x169902?{'type':'format','content':o(_0x5ef14b,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x169902+'\x22')}:{'type':'format','content':o(_0x5ef14b,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x388b92=this['editor'],_0x132c3d=_0x388b92['locale'];_0x388b92['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x48a391=>{if('formatBlock'!=_0x48a391['type']&&'formatInline'!=_0x48a391['type'])return;const {data:_0x21f890}=_0x48a391;if(_0x21f890){if('imageTextAlternative'==_0x21f890['commandName']){const _0x426fd2=_0x21f890['commandParams'][0x0]['newValue'];return _0x426fd2?{'type':'format','content':o(_0x132c3d,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x426fd2+'\x22')}:{'type':'format','content':o(_0x132c3d,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x21f890['commandName']){const _0x51ff3b=_0x21f890['commandParams'][0x0]['width'];return _0x51ff3b?{'type':'format','content':o(_0x132c3d,'*Set\x20image\x20width:*\x20%0',_0x51ff3b)}:{'type':'format','content':o(_0x132c3d,'*Reset\x20image\x20width*')};}}});}}class st extends _0x45d531{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x52f191=this['editor']['locale'],_0x48bd15=this['editor']['plugins']['get']('TrackChangesEditing');_0x48bd15['enableDefaultAttributesIntegration']('replaceImageSource'),_0x48bd15['registerBlockAttribute']('src'),_0x48bd15['descriptionFactory']['registerDescriptionCallback'](_0x18d206=>{if('attribute'!=_0x18d206['type'])return;const {data:_0x43b011}=_0x18d206;return _0x43b011&&'src'==_0x43b011['key']?_0x43b011['newValue']&&_0x43b011['oldValue']?{'type':'format','content':o(_0x52f191,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x69be50=this['editor']['plugins']['get']('TrackChangesEditing');_0x69be50['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x69be50['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x69be50['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x69be50['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x50c738=this['editor'],_0x41c8a0=_0x50c738['locale'];_0x50c738['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1c63a1=>{if('formatBlock'!=_0x1c63a1['type']&&'formatInline'!=_0x1c63a1['type'])return;const {data:_0x276e85}=_0x1c63a1;if(!_0x276e85||'replaceImageSource'!=_0x276e85['commandName'])return;return{'type':'format','content':o(_0x41c8a0,'*Format:*\x20replace\x20image\x20URL')};});}}class ot extends _0x45d531{['afterInit'](){const _0x761c7d=this['editor'];if(!_0x761c7d['plugins']['has']('ImageStyleEditing'))return;const _0x1e7ff3=_0x761c7d['plugins']['get']('TrackChangesEditing'),_0xc74411=_0x761c7d['plugins']['get']('ImageUtils'),_0x2fcf6f={};_0x1e7ff3['enableCommand']('imageStyle',(_0x4f863f,_0x3213c9)=>{const _0x5b888f=_0x761c7d['plugins']['get']('Users')['me'],_0x285720=_0x761c7d['commands']['get']('imageStyle');let _0x260e75=_0xc74411['getClosestSelectedImageElement'](_0x761c7d['model']['document']['selection']),_0x3c92d1=_0x761c7d['model']['createRangeOn'](_0x260e75),_0x253862=_0x285720['value'];if(_0x253862==_0x3213c9['value'])return;const _0x6f951f={'commandName':'imageStyle','commandParams':[_0x3213c9],'formatGroupId':_0x23f17c()};_0x761c7d['model']['change'](()=>{if(_0x1e7ff3['getSuggestions']()['filter'](_0x270409=>_0x270409['isInContent']&&_0x5b888f==_0x270409['author']&&('formatBlock'==_0x270409['type']||'formatInline'==_0x270409['type'])&&('imageStylePreApply'==_0x270409['subType']||'imageStylePostApply'==_0x270409['subType'])&&_0x270409['getFirstRange']()['isEqual'](_0x3c92d1))['forEach'](_0x1d2dd0=>_0x1e7ff3['discardSuggestion'](_0x1d2dd0['head'])),_0x260e75=_0xc74411['getClosestSelectedImageElement'](_0x761c7d['model']['document']['selection']),_0x3c92d1=_0x761c7d['model']['createRangeOn'](_0x260e75),_0x285720['refresh'](),_0x761c7d['commands']['get']('imageTypeInline')['refresh'](),_0x761c7d['commands']['get']('imageTypeBlock')['refresh'](),_0x253862=_0x285720['value'],_0x253862!=_0x3213c9['value'])return _0xc74411['isInlineImage'](_0x260e75)&&_0x285720['shouldConvertImageType'](_0x3213c9['value'],_0x260e75)?(_0x4f863f({..._0x3213c9,'setImageSizes':!0x1}),_0x260e75=_0xc74411['getClosestSelectedImageElement'](_0x761c7d['model']['document']['selection']),void _0x1e7ff3['markBlockFormat'](_0x260e75,{..._0x6f951f,'commandReversedParams':[{'value':_0x253862||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0xc74411['isBlockImage'](_0x260e75)?_0x1e7ff3['markBlockFormat'](_0x260e75,_0x6f951f,[],'imageStylePostApply'):_0x1e7ff3['markInlineFormat'](_0x3c92d1,_0x6f951f,'imageStylePostApply'));});});for(const _0x15d870 of _0x761c7d['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x2fcf6f[_0x15d870['name']]=_0x15d870['title']['toLowerCase']();_0x1e7ff3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x1e7ff3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x1e7ff3['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x1e7ff3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x213a35])=>{_0xc74411['setImageNaturalSizeAttributes'](_0x213a35['getContainedElement']());}),_0x1e7ff3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x24f96e,_0x1974b1)=>{_0x1e7ff3['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x24f96e,{'commandName':_0x1974b1['commandName'],'commandParams':_0x1974b1['commandReversedParams']});}),_0x1e7ff3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x381a54,_0x357c49){if(_0x580a10(_0x381a54,_0x357c49))return[_0x381a54,_0x357c49];if(_0x580a10(_0x357c49,_0x381a54))return[_0x357c49,_0x381a54];return null;});const _0x5d408c=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x580a10(_0x577ff0,_0x30aaa7){const _0x24bce4=_0x5d408c['findIndex'](({type:_0x330c99,subType:_0x1f97e0})=>_0x577ff0['type']==_0x330c99&&_0x577ff0['subType']==_0x1f97e0),_0x321370=_0x5d408c['findIndex'](({type:_0x54c240,subType:_0x48fe4f})=>_0x30aaa7['type']==_0x54c240&&_0x30aaa7['subType']==_0x48fe4f);if(_0x24bce4<0x0||_0x321370<0x0)return!0x1;const _0x13da06=_0x577ff0['getFirstRange'](),_0x7a8fa=_0x30aaa7['getFirstRange']();if((0x0==_0x24bce4||0x1==_0x24bce4)&&0x2==_0x321370&&_0x13da06['isIntersecting'](_0x7a8fa))return!0x0;if(0x2==_0x24bce4&&0x3==_0x321370){const _0x419f43=_0x1e7ff3['_findSuggestions'](_0x13da06,'insertion')['filter'](({suggestion:_0x3a5627,meta:_0xa2b21})=>_0xa2b21['isOwn']&&'convertInlineImageToBlock'==_0x3a5627['subType']);if(_0x419f43['length']>0x1&&_0x7a8fa['end']['isEqual'](_0x13da06['start']))return!0x0;if(0x1==_0x419f43['length']&&(_0x13da06['start']['isEqual'](_0x7a8fa['end'])||_0x13da06['end']['isEqual'](_0x7a8fa['start'])))return!0x0;}if(0x3==_0x24bce4&&0x3==_0x321370&&_0x13da06['start']['isBefore'](_0x7a8fa['start'])){const _0x20b790=_0x13da06['end']['nodeAfter'],_0x2b6425=_0x7a8fa['start']['nodeBefore'];return _0xc74411['isBlockImage'](_0x20b790)&&_0x20b790===_0x2b6425;}return!0x1;}_0x761c7d['model']['document']['registerPostFixer'](()=>{let _0x52c49f=!0x1;const _0x59b819=Array['from'](_0x761c7d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4196b3,data:_0x360f34}of _0x59b819){const {group:_0x1da6f5,type:_0x293240,subType:_0x19e605,id:_0x4335d6}=_0x1e7ff3['_splitMarkerName'](_0x4196b3);if('suggestion'==_0x1da6f5&&_0x1e7ff3['hasSuggestion'](_0x4335d6)){if('formatBlock'==_0x293240&&('imageStylePreApply'==_0x19e605||'imageStylePostApply'==_0x19e605)){const _0x3948bf=_0x1e7ff3['getSuggestion'](_0x4335d6);if(_0x360f34['newRange']){const _0x31f16e=_0x3948bf['getFirstRange']()['getContainedElement']();if(_0xc74411['isBlockImage'](_0x31f16e))continue;_0x1e7ff3['discardSuggestion'](_0x3948bf),_0x52c49f=!0x0;}}if('insertion'==_0x293240&&'imageCaption'==_0x19e605&&!_0x360f34['newRange']){const _0x588e74=_0x1e7ff3['getSuggestion'](_0x4335d6);_0x588e74['next']&&_0x588e74['next']['isInContent']&&(_0x1e7ff3['discardSuggestion'](_0x588e74['next']),_0x52c49f=!0x0);}}}return _0x52c49f;}),this['_registerLegacyDescription'](_0x2fcf6f);}['_registerLegacyDescription'](_0x25fb95){const _0x4cf3c6=this['editor'],_0x326696=_0x4cf3c6['locale'];_0x4cf3c6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a97c0=>{if('formatBlock'!=_0x1a97c0['type']&&'formatInline'!=_0x1a97c0['type'])return;const {data:_0x232f8f}=_0x1a97c0;if(!_0x232f8f||'imageStyle'!=_0x232f8f['commandName'])return;const _0x17069e=_0x232f8f['commandParams'][0x0]['value'];return _0x5d41fc('side'===_0x17069e?o(_0x326696,'FORMAT_SIDE_IMAGE'):_0x25fb95[_0x17069e]||_0x17069e);function _0x5d41fc(_0x337552){return{'type':'format','content':o(_0x326696,'*Format:*\x20%0',_0x337552)};}});}}class rt extends _0x45d531{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x5015de){super(_0x5015de),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x32c687=this['editor'],_0x1c1d7b=_0x32c687['commands']['get']('importWord'),_0x385d79=_0x32c687['commands']['get']('trackChanges');_0x1c1d7b&&(_0x1c1d7b['on']('execute',(_0x32679b,[,_0x28ab6e])=>{this['_trackChangesValueDuringImport']=_0x385d79['value'],_0x28ab6e['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x1c1d7b,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x1c1d7b,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x385d79['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x32c687['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x243799,_0x40d60a){const {suggestions:_0x4d1f69}=_0x40d60a,_0x4ffce1=this['editor']['commands']['get']('trackChanges'),_0x318bc3=_0x4ffce1['value'];this['_trackChangesValueDuringImport']!==_0x318bc3&&(_0x4ffce1['execute'](),this['_trackChangesExecuted']=!0x0),_0x4d1f69&&_0x4d1f69['forEach'](({id:_0x2150fd,type:_0x56e259,author:_0x34d5d5,created_at:_0x1c0c75})=>{const _0x25acfb={'id':_0x2150fd,'type':_0x56e259,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x34d5d5,'createdAt':_0x1c0c75?new Date(_0x1c0c75):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x25acfb);});}}class at extends _0x45d531{['afterInit'](){const _0x171c03=this['editor'],_0x34d6ac=_0x171c03['plugins']['get']('TrackChangesEditing');if(_0x171c03['plugins']['has']('IndentEditing')&&(_0x34d6ac['enableCommand']('indent'),_0x34d6ac['enableCommand']('outdent')),_0x171c03['plugins']['has']('IndentBlock')){for(const _0x44e11f of['indentBlock','outdentBlock'])_0x34d6ac['enableDefaultAttributesIntegration'](_0x44e11f);}const _0x2742a6=_0x171c03['locale'];_0x34d6ac['registerBlockAttribute']('blockIndent'),_0x34d6ac['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x2742a6,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d46ea=this['editor'],_0x39f9e7=_0x4d46ea['locale'],_0x5c72f6=_0x4d46ea['plugins']['get']('TrackChangesEditing');_0x5c72f6['descriptionFactory']['registerDescriptionCallback'](_0x319e79=>{if('formatBlock'!=_0x319e79['type'])return;const {data:_0x475107}=_0x319e79;if(!_0x475107)return;if('indentBlock'!=_0x475107['commandName']&&'outdentBlock'!=_0x475107['commandName'])return;const _0x169eaf=_0x319e79['getItems']()[0x0],_0x40162f=_0x5c72f6['descriptionFactory']['getItemLabel'](_0x169eaf);return'indentBlock'==_0x475107['commandName']?{'type':'format','content':o(_0x39f9e7,'*Indent:*\x20%0',_0x40162f)}:'outdentBlock'==_0x475107['commandName']?{'type':'format','content':o(_0x39f9e7,'*Outdent:*\x20%0',_0x40162f)}:void 0x0;});}}class ct extends _0x45d531{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ut extends _0x45d531{['afterInit'](){const _0x189399=this['editor'];if(!_0x189399['plugins']['has']('LinkEditing'))return;const _0x1e5d16=_0x189399['plugins']['get']('TrackChangesEditing'),_0x495aa2=_0x189399['commands']['get']('link');_0x1e5d16['enableDefaultAttributesIntegration']('link'),_0x1e5d16['enableDefaultAttributesIntegration']('unlink'),_0x1e5d16['registerInlineAttribute']('linkHref');for(const _0x46f922 of _0x495aa2['manualDecorators'])_0x1e5d16['registerInlineAttribute'](_0x46f922['id']),_0x1e5d16['descriptionFactory']['registerAttributeLabel'](_0x46f922['id'],'link\x20('+_0x46f922['label']['toLowerCase']()+')');_0x1e5d16['descriptionFactory']['registerDescriptionCallback'](_0x38370a=>{if('attribute'!=_0x38370a['type'])return;const {data:_0x319a9a}=_0x38370a;if(!_0x319a9a||'linkHref'!=_0x319a9a['key'])return;const _0x412241=_0x319a9a['newValue'],_0x1e028e=_0x189399['locale'];return{'type':'format','content':null==_0x412241?o(_0x1e028e,'*Remove\x20link*'):o(_0x1e028e,'*Set\x20link:*\x20%0','\x22'+_0x412241+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4fb393=this['editor'],_0xa9298b=_0x4fb393['locale'];_0x4fb393['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x11b896=>{if('formatInline'!=_0x11b896['type'])return;const {data:_0x3eb7a5}=_0x11b896;if(_0x3eb7a5){if('link'==_0x3eb7a5['commandName']){const _0x238057=_0x3eb7a5['commandParams'][0x0];return{'type':'format','content':o(_0xa9298b,'*Set\x20link:*\x20%0','\x22'+_0x238057+'\x22')};}return'unlink'==_0x3eb7a5['commandName']?{'type':'format','content':o(_0xa9298b,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x45d531{['afterInit'](){const _0x3b89d4=this['editor'],_0xe945a1=_0x3b89d4['locale'];if(!_0x3b89d4['plugins']['has']('LegacyListEditing'))return;const _0x3170e4=_0x3b89d4['plugins']['get']('TrackChangesEditing'),_0x2448c8=_0x3b89d4['plugins']['has']('LegacyTodoListEditing');function _0x4227fb(_0x801e74){return()=>{const _0x202e51=_0x3b89d4['model']['document']['selection'],_0x449621=_0x3b89d4['commands']['get'](_0x801e74);if(_0x449621['value'])return void _0x3b89d4['execute']('paragraph',{});const _0x283139=_0x801e74['slice'](0x0,-0x4),_0x7b59d6=function(_0x2b05ad,_0x26b8b1,_0xae7c73){let _0x12e47a=Array['from'](_0x2b05ad)['filter'](_0x370a43=>function(_0x511294,_0x1b0209){return _0x1b0209['checkChild'](_0x511294['parent'],'listItem')&&!_0x1b0209['isObject'](_0x511294);}(_0x370a43,_0xae7c73));_0x12e47a=_0x12e47a['filter'](_0x1c354a=>!_0x1c354a['is']('element','listItem')||_0x1c354a['getAttribute']('listType')!=_0x26b8b1);const _0x384475=new Set();for(const _0x8f1275 of _0x12e47a)_0x8f1275['is']('element','listItem')?_0x384475['add'](Le(_0x8f1275)):_0x384475['add'](_0x8f1275);return Array['from'](_0x384475);}(_0x202e51['getSelectedBlocks'](),_0x283139,_0x3b89d4['model']['schema']);_0x3b89d4['model']['change'](()=>{for(const _0x545512 of _0x7b59d6)_0x3170e4['markBlockFormat'](_0x545512,{'commandName':_0x801e74,'commandParams':[{'forceValue':!_0x449621['value']}],'formatGroupId':'blockName'},Ee(_0x545512));});};}function _0x4e8884(_0x575dd1){return()=>{const _0x1be978=function(_0x42ea18){let _0x2d5ef3=Array['from'](_0x42ea18);const _0x5919ff=_0x2d5ef3['findIndex'](_0x28c567=>'listItem'!=_0x28c567['name']);return _0x5919ff>-0x1&&(_0x2d5ef3=_0x2d5ef3['slice'](0x0,_0x5919ff)),_0x2d5ef3;}(_0x3b89d4['model']['document']['selection']['getSelectedBlocks']()),_0x2b43e2=_0x3b89d4['model']['createRange'](_0x3b89d4['model']['createPositionAt'](_0x1be978[0x0],'before'),_0x3b89d4['model']['createPositionAt'](_0x1be978[_0x1be978['length']-0x1],'end'));_0x3b89d4['model']['change'](()=>{_0x3170e4['markBlockFormat'](_0x2b43e2,{'commandName':_0x575dd1,'commandParams':[],'formatGroupId':'listIndent'},function(_0x524730){const _0x29e41a=new Set();for(const _0x33c18d of _0x524730){let _0xabe946=_0x33c18d['nextSibling'];for(;_0xabe946&&_0xabe946['getAttribute']('listIndent')>_0x33c18d['getAttribute']('listIndent');)_0x29e41a['add'](_0xabe946),_0xabe946=_0xabe946['nextSibling'];}return Array['from'](_0x29e41a);}(_0x1be978));});};}_0x3170e4['enableCommand']('numberedList',_0x4227fb('numberedList')),_0x3170e4['enableCommand']('bulletedList',_0x4227fb('bulletedList')),_0x2448c8&&_0x3170e4['enableCommand']('todoList',_0x4227fb('todoList')),_0x3170e4['enableCommand']('indentList',_0x4e8884('indentList')),_0x3170e4['enableCommand']('outdentList',_0x4e8884('outdentList')),_0x2448c8&&_0x3170e4['enableCommand']('checkTodoList',()=>{const _0x3add1c=_0x3b89d4['commands']['get']('checkTodoList'),_0x52e1ee=Array['from'](_0x3add1c['_selectedElements']);_0x52e1ee['filter'](_0x1739ae=>_0x1739ae['getAttribute']('todoListChecked')!=_0x3add1c['value']),_0x3b89d4['model']['change'](()=>{for(const _0x536855 of _0x52e1ee)_0x3170e4['markBlockFormat'](_0x536855,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x3add1c['value']}]});});}),_0x3170e4['descriptionFactory']['registerElementLabel']('listItem',_0x19298b=>o(_0xe945a1,'ELEMENT_LIST_ITEM',_0x19298b)),_0x3170e4['descriptionFactory']['registerDescriptionCallback'](_0x5ec79a=>{if('formatBlock'!=_0x5ec79a['type']&&'formatInline'!=_0x5ec79a['type'])return;const {data:_0x330594}=_0x5ec79a;if(_0x330594){if('numberedList'==_0x330594['commandName']||'bulletedList'==_0x330594['commandName']||'todoList'==_0x330594['commandName'])switch(_0x330594['commandName']['replace']('List','')){case'bulleted':return _0x6a3ea0(o(_0xe945a1,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x6a3ea0(o(_0xe945a1,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x6a3ea0(o(_0xe945a1,'ELEMENT_TODO_LIST'));}if('indentList'==_0x330594['commandName'])return{'type':'format','content':o(_0xe945a1,'*Indent:*\x20%0',o(_0xe945a1,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x330594['commandName'])return{'type':'format','content':o(_0xe945a1,'*Outdent:*\x20%0',o(_0xe945a1,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x330594['commandName'])return _0x330594['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xe945a1,'*Check\x20item*')}:{'type':'format','content':o(_0xe945a1,'*Uncheck\x20item*')};}function _0x6a3ea0(_0x3b7845){return{'type':'format','content':o(_0xe945a1,'*Change\x20to:*\x20%0',_0x3b7845)};}});}}function Le(_0x34e06b){const _0x38e11f=_0x34e06b['getAttribute']('listIndent');if(0x0==_0x38e11f)return _0x34e06b;let _0x226760=_0x34e06b;for(;_0x34e06b['previousSibling']&&_0x34e06b['previousSibling']['is']('element','listItem');){const _0x50aa11=_0x34e06b['previousSibling']['getAttribute']('listIndent');if(_0x50aa11==_0x38e11f)_0x226760=_0x34e06b['previousSibling'];else{if(_0x50aa11<_0x38e11f)break;}_0x34e06b=_0x34e06b['previousSibling'];}return _0x226760;}function Ee(_0x4f107e){const _0x40bc8c=[];if(_0x4f107e['is']('element','listItem')&&_0x4f107e['getAttribute']('listIndent')>0x0){let _0x592a72=_0x4f107e['nextSibling'];for(;_0x592a72&&'listItem'==_0x592a72['name']&&_0x592a72['getAttribute']('listIndent')==_0x4f107e['getAttribute']('listIndent');)_0x40bc8c['push'](_0x592a72),_0x592a72=_0x592a72['nextSibling'];}return _0x40bc8c;}class ht extends _0x45d531{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x5c4cf5=this['editor']['config']['get']('list.properties'),_0x511021=this['editor']['plugins']['get']('TrackChangesEditing');_0x5c4cf5['styles']&&_0x511021['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x5c4cf5['reversed']&&_0x511021['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x5c4cf5['startIndex']&&_0x511021['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x511021['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x48ac3e,_0x2e5ed8={}){const _0x3f9ddc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4bcb99=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x3f9ddc['markMultiRangeBlockFormat'](_0x4bcb99,{'commandName':'listStyle','commandParams':[{'type':_0x2e5ed8['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x74a9a8,_0x40f2b3={}){const _0x26dfad=this['editor']['plugins']['get']('TrackChangesEditing'),_0x28bc51=this['_getSuggestionBlocks'](_0xff73e1=>_0xff73e1['is']('element','listItem')&&'numbered'===_0xff73e1['getAttribute']('listType'));if(_0x28bc51['length']<0x1)return;const _0x5ec8e7=_0x28bc51['map'](_0x5f0a84=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5f0a84,'before'),this['editor']['model']['createPositionAt'](_0x5f0a84,0x0)));this['editor']['model']['change'](()=>{_0x26dfad['markMultiRangeBlockFormat'](_0x5ec8e7,{'commandName':'listReversed','commandParams':[{'reversed':_0x40f2b3['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x3c91f1,_0x5c48a1={}){const _0x520341=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2016cc=this['_getSuggestionBlocks'](_0x3365bd=>_0x3365bd['is']('element','listItem')&&'numbered'===_0x3365bd['getAttribute']('listType'));if(_0x2016cc['length']<0x1)return;const _0x51274e=_0x2016cc['map'](_0x5f4b2e=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5f4b2e,'before'),this['editor']['model']['createPositionAt'](_0x5f4b2e,0x0)));this['editor']['model']['change'](()=>{_0x520341['markMultiRangeBlockFormat'](_0x51274e,{'commandName':'listStart','commandParams':[{'startIndex':_0x5c48a1['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x106125){if('formatBlock'!=_0x106125['type']&&'formatInline'!=_0x106125['type'])return;const _0x38567d=this['editor']['locale'],{data:_0x1aa9d1}=_0x106125;if(!_0x1aa9d1)return;let _0x4ab75c,_0x11183a;switch(_0x1aa9d1['commandName']){case'listStyle':_0x4ab75c='*Change\x20to:*\x20%0',_0x11183a={'type':'format','content':o(_0x38567d,_0x4ab75c,o(_0x38567d,this['_getTranslationKeyForListStyle'](_0x1aa9d1['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4ab75c=_0x1aa9d1['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x11183a={'type':'format','content':o(_0x38567d,_0x4ab75c)};break;case'listStart':_0x4ab75c='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x11183a={'type':'format','content':o(_0x38567d,_0x4ab75c,_0x1aa9d1['commandParams'][0x0]['startIndex'])};}return _0x11183a;}['_getSuggestionBlocksForListStyle'](){const _0x25a005=this['editor']['plugins']['get']('LegacyListUtils');let _0x2158ab=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x2158ab[0x0]?.['is']('element','listItem')&&_0x2158ab['unshift'](..._0x25a005['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x2158ab[_0x2158ab['length']-0x1]?.['is']('element','listItem')&&_0x2158ab['push'](..._0x25a005['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x2158ab=[...new Set(_0x2158ab)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x2158ab=_0x2158ab['filter'](_0x3243ec=>_0x3243ec['is']('element','listItem'))),_0x2158ab;}['_getSuggestionBlocks'](_0x2d6cf9){const _0x2f4c18=this['editor']['plugins']['get']('LegacyListUtils');let _0x5ee582=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x2d6cf9)['map'](_0xc2ecd5=>{const _0x297577=this['editor']['model']['createPositionAt'](_0xc2ecd5,0x0);return[..._0x2f4c18['getSiblingNodes'](_0x297577,'backward'),..._0x2f4c18['getSiblingNodes'](_0x297577,'forward')];})['flat']();return _0x5ee582=[...new Set(_0x5ee582)],_0x5ee582;}['_getTranslationKeyForListStyle'](_0x1f2083){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x1f2083)||'default')['toUpperCase']()+'_LIST_'+_0x1f2083['toUpperCase']()['replace'](/-/g,'_');}}class gt extends _0x45d531{['afterInit'](){const _0x1904d4=this['editor'];if(!_0x1904d4['plugins']['has']('MediaEmbedEditing'))return;const _0x53d045=_0x1904d4['plugins']['get']('TrackChangesEditing'),_0x53e032=_0x1904d4['locale'];_0x53d045['enableCommand']('mediaEmbed'),_0x53d045['descriptionFactory']['registerElementLabel']('media',_0x5f0483=>o(_0x53e032,'ELEMENT_MEDIA',_0x5f0483)),_0x1904d4['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x1633f7,{writer:_0x143ccc,options:_0x4dc1c6})=>{if(_0x4dc1c6['showSuggestionHighlights'])return _0x143ccc['createEmptyElement']('div');},'converterPriority':'high'}),_0x1904d4['data']['downcastDispatcher']['on']('attribute:url:media',(_0x4bac24,_0x3b6f3f,_0x201712)=>{_0x201712['options']['showSuggestionHighlights']&&_0x4bac24['stop']();},{'priority':'high'});}}class lt extends _0x45d531{['afterInit'](){const _0x2839dc=this['editor'];_0x2839dc['plugins']['has']('MentionEditing')&&_0x2839dc['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x45d531{['afterInit'](){const _0x3a91b2=this['editor'];if(!_0x3a91b2['plugins']['has']('MergeFieldsEditing'))return;const _0x2fa0c5=_0x3a91b2['plugins']['get']('TrackChangesEditing'),_0x369bf8=_0x3a91b2['locale'];_0x2fa0c5['enableCommand']('insertMergeField'),_0x2fa0c5['enableCommand']('insertMergeFieldBlock'),_0x2fa0c5['enableCommand']('insertMergeFieldImage'),_0x2fa0c5['descriptionFactory']['registerElementLabel']('mergeField',_0x16f521=>o(_0x369bf8,'ELEMENT_MERGE_FIELD',_0x16f521)),_0x2fa0c5['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x743ce0=>o(_0x369bf8,'ELEMENT_MERGE_FIELD',_0x743ce0)),_0x2fa0c5['descriptionFactory']['registerDescriptionCallback'](_0x36ec17=>{if('insertion'!=_0x36ec17['type']&&'deletion'!=_0x36ec17['type'])return;const _0x12748b=_0x36ec17['getContainedElement']();if(null==_0x12748b)return;const _0x47eba0=_0x3a91b2['plugins']['get']('MergeFieldsEditing');let _0x6011f6;switch(_0x47eba0['getMergeFieldType'](_0x12748b)){case null:return;case'image':{const _0x164d34=_0x47eba0['unwrapAffixes'](_0x12748b['getAttribute']('src'));_0x6011f6=_0x47eba0['getLabel'](_0x164d34)||_0x164d34;break;}default:{const _0x1b5006=_0x12748b['getAttribute']('id');_0x6011f6=_0x47eba0['getLabel'](_0x1b5006)||_0x1b5006;break;}}return'insertion'==_0x36ec17['type']?{'type':'insertion','content':o(_0x369bf8,'*Insert:*\x20%0','\x22'+_0x6011f6+'\x22\x20'+o(_0x369bf8,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x369bf8,'*Remove:*\x20%0','\x22'+_0x6011f6+'\x22\x20'+o(_0x369bf8,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0x45d531{['afterInit'](){const _0x41c72e=this['editor'],_0xa46e9=_0x41c72e['plugins']['get']('TrackChangesEditing');_0x41c72e['plugins']['has']('MultiLevelList')&&(_0xa46e9['enableDefaultAttributesIntegration']('multiLevelList'),_0xa46e9['registerBlockAttribute']('listMarkerStyle'),_0xa46e9['descriptionFactory']['registerDescriptionCallback'](_0x8d1f54=>this['handleDescriptions'](_0x8d1f54)));}['handleDescriptions'](_0x2b9870){const _0x409a2d=this['editor']['locale'],{data:_0x5ce010}=_0x2b9870,_0x2786d2={'type':'format','content':''};if(_0x5ce010&&'listMarkerStyle'==_0x5ce010['key']){if(!_0x5ce010['oldValue'])return{'type':'format','content':o(_0x409a2d,'*Set\x20format:*\x20%0',o(_0x409a2d,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5ce010['newValue']+')'};if(!_0x5ce010['newValue']){let _0x370838=_0x2b9870['head'];for(;_0x370838;){if(_0x370838['data']&&'listType'==_0x370838['data']['key']&&_0x370838['data']['newValue'])return _0x2786d2;_0x370838=_0x370838['next'];}return{'type':'format','content':o(_0x409a2d,'*Remove\x20format:*\x20%0',o(_0x409a2d,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5ce010['oldValue']+')'};}}}}class pt extends _0x45d531{['afterInit'](){const _0x4732f5=this['editor'];if(!_0x4732f5['plugins']['has']('PageBreakEditing'))return;_0x4732f5['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0xc2e3ff=_0x4732f5['plugins']['get']('TrackChangesEditing'),_0x2faa21=_0x4732f5['locale'];_0xc2e3ff['descriptionFactory']['registerElementLabel']('pageBreak',_0x59690a=>o(_0x2faa21,'ELEMENT_PAGE_BREAK',_0x59690a));}}class kt extends _0x45d531{['afterInit'](){const _0x3c3115=this['editor'];if(!_0x3c3115['plugins']['has']('Paragraph'))return;const _0x502f26=_0x3c3115['locale'],_0x3a4fe4=_0x3c3115['plugins']['get']('TrackChangesEditing');_0x3a4fe4['descriptionFactory']['registerElementLabel']('paragraph',_0x41cd6d=>o(_0x502f26,'ELEMENT_PARAGRAPH',_0x41cd6d)),_0x3a4fe4['enableDefaultAttributesIntegration']('paragraph'),_0x3a4fe4['enableCommand']('insertParagraph'),_0x3c3115['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x3c3115),{'priority':'highest'}),_0x3c3115['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xf6c140,_0x438abe,_0x492d45)=>{_0x492d45['options']['showSuggestionHighlights']&&nr(_0x3c3115,{'showActiveMarker':!0x1})(_0xf6c140,_0x438abe,_0x492d45);},{'priority':'highest'});const _0x2f0080=_0x3a4fe4['descriptionFactory'];_0x2f0080['registerDescriptionCallback'](_0x4da900=>{if('insertion'!==_0x4da900['type'])return;const {start:_0x246c85,end:_0x3d8f2c}=_0x4da900['getFirstRange']();if(!_0x246c85['isTouching'](_0x3d8f2c)||!_0x246c85['nodeAfter'])return;const _0xaadb96=_0x3c3115['model']['schema'],_0x239967=_0x246c85['nodeAfter'];return _0xaadb96['isBlock'](_0x239967)&&!_0xaadb96['isLimit'](_0x239967)&&_0xaadb96['checkChild'](_0x239967,'$text')?{'type':'insertion','content':o(_0x502f26,'*Insert:*\x20%0',_0x2f0080['getItemLabel'](_0x239967,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x376dad=this['editor'],_0x1aa5c5=_0x376dad['locale'];_0x376dad['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2364f9=>{if('formatBlock'!=_0x2364f9['type'])return;const {data:_0x459f65}=_0x2364f9;return _0x459f65&&'paragraph'==_0x459f65['commandName']?{'type':'format','content':o(_0x1aa5c5,'*Change\x20to:*\x20%0',o(_0x1aa5c5,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x842a9c,{showActiveMarker:_0x3ca74e=!0x0}={}){return(_0x571fd4,_0x216908,_0x1b8a37)=>{const _0x2056a6=_0x842a9c['plugins']['get']('TrackChangesEditing'),_0x53e35a=_0x216908['markerRange']['start'],_0x218f95=_0x216908['markerRange']['end'],_0x3b5ecc=_0x842a9c['model']['schema'];if(!_0x53e35a['isTouching'](_0x218f95)||!_0x53e35a['nodeAfter'])return;const _0x3f0e71=_0x53e35a['nodeAfter'];if(_0x3b5ecc['isBlock'](_0x3f0e71)&&!_0x3b5ecc['isLimit'](_0x3f0e71)&&_0x3b5ecc['checkChild'](_0x3f0e71,'$text')){if(!_0x1b8a37['consumable']['consume'](_0x216908['markerRange'],_0x571fd4['name']))return;const {id:_0x2484cf,authorId:_0x97b02d}=_0x2056a6['_splitMarkerName'](_0x216908['markerName']),_0x3efbad=_0x1b8a37['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x2484cf,'data-author-id':_0x97b02d}),_0x281a2e=_0x1b8a37['mapper']['toViewPosition'](_0x218f95);_0x3ca74e&&_0x2056a6['activeMarkers']['includes'](_0x216908['markerName'])&&_0x1b8a37['writer']['addClass']('ck-suggestion-marker--active',_0x3efbad),_0x1b8a37['writer']['insert'](_0x281a2e,_0x3efbad),_0x1b8a37['mapper']['bindElementToMarker'](_0x3efbad,_0x216908['markerName']);}};}class wt extends _0x45d531{['afterInit'](){const _0x3507f8=this['editor'];_0x3507f8['commands']['get']('replaceSource')&&_0x3507f8['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class bt extends _0x45d531{['afterInit'](){const _0x142705=this['editor'];if(!_0x142705['plugins']['has']('RemoveFormatEditing'))return;_0x142705['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x309ef3=this['editor'];_0x309ef3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2d3bd6=>{if('formatBlock'!=_0x2d3bd6['type']&&'formatInline'!=_0x2d3bd6['type'])return;const {data:_0x300d1c}=_0x2d3bd6;return _0x300d1c&&'removeFormat'==_0x300d1c['commandName']?{'type':'format','content':o(_0x309ef3['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x45d531{['afterInit'](){const _0x1a29b6=this['editor'];if(!_0x1a29b6['plugins']['has']('RestrictedEditingModeEditing'))return;const _0xdf818c=_0x1a29b6['plugins']['get']('TrackChangesEditing');_0xdf818c['enableCommand']('goToPreviousRestrictedEditingException'),_0xdf818c['enableCommand']('goToNextRestrictedEditingException');const _0xb7d590=_0x1a29b6['plugins']['get']('RestrictedEditingModeEditing');_0xb7d590['enableCommand']('trackChanges'),_0xb7d590['enableCommand']('acceptSuggestion'),_0xb7d590['enableCommand']('discardSuggestion'),_0xb7d590['enableCommand']('acceptAllSuggestions'),_0xb7d590['enableCommand']('discardAllSuggestions'),_0xb7d590['enableCommand']('acceptSelectedSuggestions'),_0xb7d590['enableCommand']('discardSelectedSuggestions');}}class St extends _0x45d531{['afterInit'](){const _0x2018f1=this['editor'];if(!_0x2018f1['plugins']['has']('ShiftEnter'))return;const _0x3071a4=_0x2018f1['plugins']['get']('TrackChangesEditing');_0x3071a4['enableCommand']('shiftEnter'),_0x2018f1['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x2018f1),{'priority':'high'}),_0x2018f1['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x2018f1),{'priority':'high'}),_0x2018f1['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x19eee7,_0x2fa9a9,_0x3a3130)=>{_0x3a3130['options']['showSuggestionHighlights']&&je(_0x2018f1,{'showActiveMarker':!0x1})(_0x19eee7,_0x2fa9a9,_0x3a3130);}),_0x3071a4['descriptionFactory']['registerElementLabel']('softBreak',_0x40f699=>o(_0x2018f1['locale'],'ELEMENT_LINE_BREAK',_0x40f699));}}function je(_0xf7dc99,{showActiveMarker:_0x3e7df3=!0x0}={}){return(_0x2e40a2,_0x16f2b3,_0x4eb745)=>{const _0x62caa=_0xf7dc99['plugins']['get']('TrackChangesEditing');if(!_0x4eb745['consumable']['test'](_0x16f2b3['markerRange'],_0x2e40a2['name']))return;const _0xe2fc92=_0xf7dc99['model'];for(const _0x66a70b of _0x16f2b3['markerRange']['getItems']()){if(!_0x66a70b['is']('element','softBreak'))continue;const _0x56318b='deletion'==_0x16f2b3['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x1d3092,authorId:_0x3a3cec}=_0x62caa['_splitMarkerName'](_0x16f2b3['markerName']),_0x2767cd=_0x4eb745['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x56318b,'data-suggestion':_0x1d3092,'data-author-id':_0x3a3cec}),_0x50c2a4=_0x4eb745['mapper']['toViewPosition'](_0xe2fc92['createPositionBefore'](_0x66a70b));_0x3e7df3&&_0x62caa['activeMarkers']['includes'](_0x16f2b3['markerName'])&&_0x4eb745['writer']['addClass']('ck-suggestion-marker--active',_0x2767cd),_0x4eb745['writer']['insert'](_0x50c2a4,_0x2767cd),_0x4eb745['mapper']['bindElementToMarker'](_0x2767cd,_0x16f2b3['markerName']);}};}class jt extends _0x45d531{['afterInit'](){const _0x38e422=this['editor'],_0x2da682=_0x38e422['model'],_0x194c6c=_0x38e422['locale'];if(!_0x38e422['plugins']['has']('StandardEditingModeEditing'))return;const _0x17fd98=_0x38e422['plugins']['get']('TrackChangesEditing'),_0x467fbb='restrictedEditingException',_0x4a9d85=_0x38e422['commands']['get'](_0x467fbb);_0x17fd98['enableCommand'](_0x467fbb,(_0x5ea724,_0xc0103d={})=>{const _0x5a0a1a=_0x2da682['document']['selection'];if(_0x5a0a1a['isCollapsed'])return void _0x5ea724(_0xc0103d);const _0xbdd4e2=void 0x0!==_0xc0103d['forceValue']?_0xc0103d['forceValue']:!_0x4a9d85['value'];_0x2da682['change'](()=>{const _0x598880=Array['from'](_0x5a0a1a['getRanges']());for(const _0x550fb5 of _0x598880){const _0x1a936d=_0xbdd4e2?[_0x550fb5]:io(_0x467fbb,_0x550fb5,_0x2da682);for(const _0x489349 of _0x1a936d)_0x17fd98['markInlineFormat'](_0x489349,{'commandName':_0x467fbb,'commandParams':[{'forceValue':_0xbdd4e2}]});}});}),_0x17fd98['descriptionFactory']['registerDescriptionCallback'](_0xaee25c=>{if('formatBlock'!=_0xaee25c['type']&&'formatInline'!=_0xaee25c['type'])return;const {data:_0x4fca91}=_0xaee25c;return _0x4fca91&&_0x4fca91['commandName']==_0x467fbb?_0x4fca91['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x194c6c,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x194c6c,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x45d531{['afterInit'](){const _0x2ebcb3=this['editor'];if(!_0x2ebcb3['plugins']['has']('Style')||!_0x2ebcb3['plugins']['has']('DataSchema'))return;const _0x2c764a=_0x2ebcb3['plugins']['get']('TrackChangesEditing'),_0x4e0da7=_0x2ebcb3['locale'],_0x2eef6a=_0x2ebcb3['config']['get']('style')||{},_0x10ae2c=_0x2ebcb3['plugins']['get']('GeneralHtmlSupport'),_0x39ad7b=_0x2ebcb3['plugins']['get']('StyleUtils')['normalizeConfig'](_0x2ebcb3['plugins']['get']('DataSchema'),_0x2eef6a['definitions']);_0x2c764a['enableDefaultAttributesIntegration']('style');const _0x591579=new Set();for(const _0x1a6d0d of _0x39ad7b['block']){const _0x418889=_0x10ae2c['getGhsAttributeNameForElement'](_0x1a6d0d['element']);_0x591579['add'](_0x418889);}const _0x4b83d5=new Set();for(const _0x2998b3 of _0x39ad7b['inline']){const _0xbdf958=_0x10ae2c['getGhsAttributeNameForElement'](_0x2998b3['element']);_0x4b83d5['add'](_0xbdf958);for(const _0x3fefa4 of _0x2998b3['ghsAttributes'])_0x4b83d5['add'](_0x3fefa4);}for(const _0x128de4 of _0x591579)_0x2c764a['registerBlockAttribute'](_0x128de4),_0x2c764a['descriptionFactory']['registerAttributeLabel'](_0x128de4,o(_0x4e0da7,'FORMAT_STYLE'));for(const _0x37f56d of _0x4b83d5)_0x2c764a['registerInlineAttribute'](_0x37f56d),_0x2c764a['descriptionFactory']['registerAttributeLabel'](_0x37f56d,o(_0x4e0da7,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c0fab=this['editor'],_0x4e1967=_0x4c0fab['locale'];_0x4c0fab['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd13eaf=>{if('formatBlock'!=_0xd13eaf['type']&&'formatInline'!=_0xd13eaf['type'])return;const {data:_0x4844b0}=_0xd13eaf;return _0x4844b0&&'style'===_0x4844b0['commandName']?_0x4844b0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4e1967,'*Set\x20format:*\x20%0',_0x4844b0['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x4e1967,'*Remove\x20format:*\x20%0',_0x4844b0['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class At extends _0x45d531{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x2bb985){super(_0x2bb985),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x4bc72b=this['editor'],_0x3a04aa=_0x4bc72b['model']['document']['selection'];if(!_0x4bc72b['plugins']['has']('TableEditing'))return;const _0x2912d0=_0x4bc72b['locale'],_0x27e518=_0x4bc72b['plugins']['get']('TrackChangesEditing'),_0x1d9d43=_0x4bc72b['plugins']['get']('TableUtils');_0x27e518['descriptionFactory']['registerElementLabel']('table',_0x1cebd9=>o(_0x2912d0,'ELEMENT_TABLE',_0x1cebd9)),this['_setupColumnsRowsFixing'](),_0x27e518['enableCommand']('insertTable'),_0x27e518['enableCommand']('selectTableRow'),_0x27e518['enableCommand']('selectTableColumn');for(const _0x518c81 of['insertTableRowAbove','insertTableRowBelow']){const _0x502434=_0x4bc72b['commands']['get'](_0x518c81);_0x27e518['enableCommand'](_0x518c81,_0x509797=>{_0x4bc72b['model']['change'](_0x5500f0=>{_0x509797();const _0x59dc8b='above'===_0x502434['order'],_0x5acfd3=_0x1d9d43['getSelectionAffectedTableCells'](_0x3a04aa),_0x53128a=_0x1d9d43['getRowIndexes'](_0x5acfd3),_0x570475=_0x59dc8b?_0x53128a['first']-0x1:_0x53128a['last']+0x1,_0x5c8689=_0x5acfd3[0x0]['findAncestor']('table'),_0x62020c=_0x1d9d43['createTableWalker'](_0x5c8689,{'startRow':_0x570475,'endRow':_0x570475}),_0x2a39fb=Array['from'](_0x62020c)['map'](_0x1160cd=>_0x5500f0['createRangeOn'](_0x1160cd['cell']));_0x27e518['markMultiRangeInsertion'](_0x2a39fb,'tableRow');});});}for(const _0x8de3f8 of['insertTableColumnLeft','insertTableColumnRight']){const _0x54934e=_0x4bc72b['commands']['get'](_0x8de3f8);_0x27e518['enableCommand'](_0x8de3f8,_0x3b9a59=>{_0x4bc72b['model']['change'](_0x4de468=>{_0x3b9a59();const _0xb41c3d='left'===_0x54934e['order'],_0x1785a5=_0x1d9d43['getSelectionAffectedTableCells'](_0x3a04aa),_0x38e1a7=_0x1d9d43['getColumnIndexes'](_0x1785a5),_0x201238=_0xb41c3d?_0x38e1a7['first']-0x1:_0x38e1a7['last']+0x1,_0x25775e=_0x1785a5[0x0]['findAncestor']('table'),_0x1bf1c8=_0x1d9d43['createTableWalker'](_0x25775e,{'startRow':0x0,'column':_0x201238,'includeAllSlots':!0x1}),_0x5de2d0=Array['from'](_0x1bf1c8)['map'](_0x3b453b=>_0x4de468['createRangeOn'](_0x3b453b['cell']));_0x27e518['markMultiRangeInsertion'](_0x5de2d0,'tableColumn');});});}for(const _0x426553 of['removeTableRow','removeTableColumn']){const _0x154b75=_0x426553['substr'](0xb),_0x3ca0df=_0x154b75['toLowerCase'](),_0x212c4b=_0x3ca0df['substr'](0x0,0x3)+'span',_0xf28ccb='table'+_0x154b75,_0x20ea2b='min'+_0x154b75,_0x2795a9='max'+_0x154b75;_0x27e518['enableCommand'](_0x426553,()=>{_0x4bc72b['model']['change'](_0x33d8e1=>{const _0x270436=_0x1d9d43['getSelectionAffectedTableCells'](_0x3a04aa),_0x1a11ac=_0x270436[0x0]['findAncestor']('table');let _0x10eed2;if('removeTableRow'==_0x426553){const _0xbe11bf=_0x1d9d43['getRowIndexes'](_0x270436);_0x10eed2={'startRow':_0xbe11bf['first'],'endRow':_0xbe11bf['last'],'includeAllSlots':!0x0};}else{const _0x388010=_0x1d9d43['getColumnIndexes'](_0x270436);_0x10eed2={'startColumn':_0x388010['first'],'endColumn':_0x388010['last'],'includeAllSlots':!0x0};}const _0x4d5b4c=_0x1d9d43['createTableWalker'](_0x1a11ac,_0x10eed2),_0x2c9077=Array['from'](_0x4d5b4c)['map'](({cell:_0xcf1a50})=>_0xcf1a50),_0x1df8d7=Ne(_0x2c9077['filter'](_0x595fea=>_0x595fea['hasAttribute'](_0x212c4b))),_0x4ea303=Ne(_0x2c9077['filter'](_0x1061fb=>!_0x1061fb['hasAttribute'](_0x212c4b)))['map'](_0x52fa28=>_0x33d8e1['createRangeOn'](_0x52fa28)),_0x4ae5be=_0x27e518['markMultiRangeDeletion'](_0x4ea303,_0xf28ccb);if(_0x4ae5be&&('tableRow'==_0x4ae5be['subType']||'tableColumn'==_0x4ae5be['subType'])){const _0x3059ae=this['_getSuggestionCoords'](_0x4ae5be);for(const _0x206f85 of _0x1df8d7){const _0x5074ba=_0x33d8e1['createRangeOn'](_0x206f85),_0x268478=_0x1d9d43['getCellLocation'](_0x206f85),_0x3f0a51=_0x206f85['getAttribute'](_0x212c4b)-0x1,_0x5405df=_0x3059ae[_0x20ea2b],_0xdfed94=_0x3059ae[_0x2795a9];_0x5405df<=_0x268478[_0x3ca0df]&&_0x268478[_0x3ca0df]+_0x3f0a51<=_0xdfed94&&_0x4ae5be['addRange'](_0x5074ba);}}});});}function _0x57448e(_0xf109e9){const _0x9111c8=Array['from'](_0x3a04aa['getRanges']())['map'](_0x3d671c=>_0x5661a3['fromRange'](_0x3d671c));_0x4bc72b['model']['change'](_0x41eb8a=>{const _0x819ea6=_0x41eb8a['batch'];_0xf109e9=_0xf109e9['filter'](_0x2626d1=>'$graveyard'!=_0x2626d1['root']['rootName']),_0x41eb8a['setSelection'](_0xf109e9),_0x4bc72b['commands']['get']('removeTableRow')['refresh'](),_0x4bc72b['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x4bc72b['model']['enqueueChange'](()=>{_0x4bc72b['model']['enqueueChange'](_0x819ea6,_0x1c2417=>{const _0x3ae435=_0x9111c8['filter'](_0x4f7afd=>'$graveyard'!=_0x4f7afd['root']['rootName']);_0x3ae435['length']>0x0&&_0x1c2417['setSelection'](_0x3ae435);for(const _0x1323de of _0x9111c8)_0x1323de['detach']();});});});}function _0x3087f4(_0x21f0ae){_0x4bc72b['model']['change'](_0xbcd625=>{const _0x1e44d3=Array['from'](_0x3a04aa['getRanges']())['map'](_0x9fdcf8=>_0x5661a3['fromRange'](_0x9fdcf8)),_0x5b704c=[];for(const _0x12fb59 of _0x21f0ae)for(const _0x8308f5 of _0x12fb59['getItems']({'shallow':!0x0}))_0x5b704c['push'](_0x8308f5);for(const _0x341544 of _0x5b704c)'$graveyard'!=_0x341544['root']['rootName']&&(_0xbcd625['setSelection'](_0xbcd625['createPositionAt'](_0x341544,0x0)),_0x4bc72b['commands']['get']('removeTableColumn')['refresh'](),_0x4bc72b['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x597e64=_0x1e44d3['filter'](_0x459769=>'$graveyard'!=_0x459769['root']['rootName']);_0x597e64['length']>0x0&&_0xbcd625['setSelection'](_0x597e64);for(const _0x128c75 of _0x1e44d3)_0x128c75['detach']();});}function _0x58f156(_0x4d9152,_0x10fb0c){return _0x10fb0c['every'](_0x192894=>_0x4d9152['some'](_0x5e1fe5=>_0x5e1fe5['end']['isEqual'](_0x192894['start'])||_0x192894['end']['isEqual'](_0x5e1fe5['start'])));}function _0x1735ee(_0x1d22f3,_0x3b65ee){return!_0x1d22f3['some'](_0x44768c=>_0x3b65ee['some'](_0x1952b3=>_0x44768c['isIntersecting'](_0x1952b3)))&&_0x1d22f3['some'](_0x48156c=>_0x3b65ee['some'](_0x29a181=>_0x48156c['end']['isTouching'](_0x29a181['start'])));}_0x4bc72b['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2fafac,_0x1563fe,_0xa63a4b)=>{if(!_0xa63a4b['options']['showSuggestionHighlights'])return;const _0x46ba7b=_0x1563fe['item'];if(!_0x46ba7b||!_0x46ba7b['is']('element','tableCell'))return;const _0x2e571d=_0xa63a4b['mapper']['toViewElement'](_0x46ba7b);if(_0x2e571d){const {id:_0x18e2b8,authorId:_0x33239c}=_0x27e518['_splitMarkerName'](_0x1563fe['markerName']);_0x14ca9b(_0x2e571d,_0xa63a4b['writer'],(_0x4a0f51,_0x3de00c,_0x2e3978)=>{_0x2e3978['addClass'](_0x2d1065(_0x3de00c['classes']),_0x4a0f51),_0x2e3978['setAttribute']('data-suggestion-id',_0x18e2b8,_0x4a0f51),_0x2e3978['setAttribute']('data-author-id',_0x33239c,_0x4a0f51);},(_0x571f50,_0x326cc5,_0x1b0deb)=>{_0x1b0deb['removeClass'](_0x2d1065(_0x326cc5['classes']),_0x571f50),_0x1b0deb['removeAttribute']('data-suggestion-id',_0x571f50),_0x1b0deb['removeAttribute']('data-author-id',_0x571f50);});}},{'priority':'highest'}),_0x27e518['descriptionFactory']['registerDescriptionCallback'](_0xd58ec4=>{if('insertion'!=_0xd58ec4['type']&&'deletion'!=_0xd58ec4['type'])return;const _0x118e5c=_0xd58ec4['getContainedElement']();if(null!=_0x118e5c&&_0x118e5c['is']('element','table')){if('insertion'==_0xd58ec4['type']){const _0x1860e5=_0xd58ec4['getItems']()['filter'](_0x5be60d=>_0x5be60d['is']('$textProxy'))['map'](_0x4dad62=>_0x4dad62['data']);if(_0x1860e5['length'])return{'type':'insertion','content':o(_0x2912d0,'*Insert:*\x20%0',o(_0x2912d0,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1860e5['join']('\x20')+'\x22'))};}if('deletion'==_0xd58ec4['type']){const _0x4baacb=_0xd58ec4['getItems']()['filter'](_0x492703=>_0x492703['is']('$textProxy'))['map'](_0x353cd6=>_0x353cd6['data']);if(_0x4baacb['length'])return{'type':'deletion','content':o(_0x2912d0,'*Remove:*\x20%0',o(_0x2912d0,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4baacb['join']('\x20')+'\x22'))};}}}),_0x27e518['descriptionFactory']['registerDescriptionCallback'](_0x21afa7=>{if('tableRow'==_0x21afa7['subType']){const _0x3bab2e=_0x21afa7['getItems']()['filter'](_0x20fd1e=>_0x20fd1e['is']('$textProxy'))['map'](_0x4c781b=>_0x4c781b['data']),_0x1b902e=this['_getSuggestionCoords'](_0x21afa7),_0x446654=_0x1b902e['maxRow']-_0x1b902e['minRow']+0x1;if('insertion'==_0x21afa7['type'])return _0x3bab2e['length']?{'type':'insertion','content':o(_0x2912d0,'*Insert:*\x20%0',o(_0x2912d0,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x446654,'\x22'+_0x3bab2e['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2912d0,'*Insert:*\x20%0',o(_0x2912d0,'ELEMENT_TABLE_ROW',_0x446654))};if('deletion'==_0x21afa7['type'])return _0x3bab2e['length']?{'type':'deletion','content':o(_0x2912d0,'*Remove:*\x20%0',o(_0x2912d0,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x446654,'\x22'+_0x3bab2e['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2912d0,'*Remove:*\x20%0',o(_0x2912d0,'ELEMENT_TABLE_ROW',_0x446654))};}if('tableColumn'==_0x21afa7['subType']){const _0x1b47cf=_0x21afa7['getItems']()['filter'](_0xb8390=>_0xb8390['is']('$textProxy'))['map'](_0x15d65e=>_0x15d65e['data']),_0x4a898c=this['_getSuggestionCoords'](_0x21afa7),_0x11df81=_0x4a898c['maxColumn']-_0x4a898c['minColumn']+0x1;if('insertion'==_0x21afa7['type'])return _0x1b47cf['length']?{'type':'insertion','content':o(_0x2912d0,'*Insert:*\x20%0',o(_0x2912d0,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x11df81,'\x22'+_0x1b47cf['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2912d0,'*Insert:*\x20%0',o(_0x2912d0,'ELEMENT_TABLE_COLUMN',_0x11df81))};if('deletion'==_0x21afa7['type'])return _0x1b47cf['length']?{'type':'deletion','content':o(_0x2912d0,'*Remove:*\x20%0',o(_0x2912d0,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x11df81,'\x22'+_0x1b47cf['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2912d0,'*Remove:*\x20%0',o(_0x2912d0,'ELEMENT_TABLE_COLUMN',_0x11df81))};}}),_0x27e518['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x57448e),_0x27e518['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x57448e),_0x27e518['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x3087f4),_0x27e518['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x3087f4),_0x27e518['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x58f156),_0x27e518['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x58f156),_0x27e518['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x1735ee),_0x27e518['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x1735ee);}['_acceptFormatSuggestionCallbackFactory'](){const _0x57b862=this['editor'],_0x2b11a6=_0x57b862['model']['document']['selection'];return(_0x1c03f5,_0x4537ce)=>{_0x57b862['model']['change'](_0x439dbc=>{const {commandName:_0x8af2a5,commandParams:_0x2bd5d6}=_0x4537ce;let _0x576f1d=_0x1c03f5[0x0]['end']['nodeBefore'];_0x2bd5d6&&_0x2bd5d6[0x0]&&!0x1===_0x2bd5d6[0x0]['forceValue']&&(_0x576f1d=_0x1c03f5[0x0]['start']['nodeAfter']);const _0x29e53e=_0x439dbc['createRangeIn'](_0x576f1d);if('$graveyard'==_0x29e53e['root']['rootName'])return;const _0x2c8573=Array['from'](_0x2b11a6['getRanges']())['map'](_0x1e7373=>_0x5661a3['fromRange'](_0x1e7373));_0x439dbc['setSelection'](_0x29e53e),_0x57b862['commands']['get'](_0x8af2a5)['refresh'](),_0x2bd5d6['push']({'forceDefaultExecution':!0x0}),_0x57b862['execute'](_0x8af2a5,..._0x2bd5d6);const _0x525fd4=_0x2c8573['filter'](_0x55e1d4=>'$graveyard'!=_0x55e1d4['root']['rootName']);_0x525fd4['length']>0x0&&_0x439dbc['setSelection'](_0x525fd4);for(const _0x3921d9 of _0x2c8573)_0x3921d9['detach']();});};}['_getCoordsForCells'](_0x23cfe9){const _0x117516=this['editor']['plugins']['get']('TableUtils');let _0x2c5e98=Number['MAX_SAFE_INTEGER'],_0x5259f7=Number['MIN_SAFE_INTEGER'],_0x299416=Number['MAX_SAFE_INTEGER'],_0x844646=Number['MIN_SAFE_INTEGER'];for(const _0x3637ac of _0x23cfe9){if('$graveyard'==_0x3637ac['root']['rootName'])continue;const {row:_0x48005d,column:_0x54ec98}=_0x117516['getCellLocation'](_0x3637ac),_0x3e1e9c=_0x3637ac['hasAttribute']('rowspan')?_0x3637ac['getAttribute']('rowspan')-0x1:0x0,_0x1e766d=_0x3637ac['hasAttribute']('colspan')?_0x3637ac['getAttribute']('colspan')-0x1:0x0;_0x2c5e98=_0x48005d<_0x2c5e98?_0x48005d:_0x2c5e98,_0x5259f7=_0x48005d+_0x3e1e9c>_0x5259f7?_0x48005d+_0x3e1e9c:_0x5259f7,_0x299416=_0x54ec98<_0x299416?_0x54ec98:_0x299416,_0x844646=_0x54ec98+_0x1e766d>_0x844646?_0x54ec98+_0x1e766d:_0x844646;}return{'minRow':_0x2c5e98,'maxRow':_0x5259f7,'minColumn':_0x299416,'maxColumn':_0x844646};}['_setupColumnsRowsFixing'](){const _0x548cc4=this['editor'],_0x1e609f=_0x548cc4['plugins']['get']('TrackChangesEditing'),_0x3e2e6d=_0x548cc4['plugins']['get']('TableUtils');_0x548cc4['model']['document']['on']('change:data',()=>{const _0x5697fc=Array['from'](_0x548cc4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4b5973,data:_0x31e5b1}of _0x5697fc){const {group:_0xc3648d,id:_0x18a96a,subType:_0x2cb9a4}=_0x1e609f['_splitMarkerName'](_0x4b5973);if('suggestion'!=_0xc3648d)continue;if(null!=_0x31e5b1['oldRange'])continue;const _0x385d62=_0x1e609f['getSuggestion'](_0x18a96a);this['_tablePostFixingSubtypes']['includes'](_0x2cb9a4)&&this['_tableSuggestions']['add'](_0x385d62);}},{'priority':'low'});const _0x40320a=(_0x7fbc92,_0x2c18fd)=>{let _0x17aefc=!0x1;const _0x1ce04c=_0x2c18fd['createRangeOn'](_0x7fbc92),_0x14a46b=_0x7fbc92['findAncestor']('table'),_0x398f39=_0x3e2e6d['getCellLocation'](_0x7fbc92);for(const _0x29d63 of this['_tableSuggestions']){const _0x2c2da6=_0x29d63['subType'],_0x69cd3b=_0x2c2da6['startsWith']('tablePaste'),_0x400821=_0x2c2da6['substr'](_0x69cd3b?0xa:0x5),_0xfbb5e2=_0x400821['toLowerCase'](),_0x139045=_0xfbb5e2['substr'](0x0,0x3)+'span',_0x1a6ce7='min'+_0x400821,_0x321999='max'+_0x400821;if(!_0x29d63['isInContent'])continue;if(_0x14a46b!=_0x29d63['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x29d63['isIntersectingWithRange'](_0x1ce04c))continue;const _0x1f3956=_0x7fbc92['hasAttribute'](_0x139045)?_0x7fbc92['getAttribute'](_0x139045)-0x1:0x0,_0x2ae18f=this['_getSuggestionCoords'](_0x29d63),_0x486193=_0x2ae18f[_0x1a6ce7],_0x38fe23=_0x2ae18f[_0x321999];_0x486193<=_0x398f39[_0xfbb5e2]&&_0x398f39[_0xfbb5e2]+_0x1f3956<=_0x38fe23&&(_0x29d63['addRange'](_0x1ce04c),_0x17aefc=!0x0);}return _0x17aefc;};_0x548cc4['model']['document']['registerPostFixer'](_0x4cff57=>{let _0x32f3be=!0x1;for(const _0x46fb19 of _0x548cc4['model']['document']['differ']['getChanges']())if('insert'==_0x46fb19['type']){if('tableRow'==_0x46fb19['name']){for(const _0x4b7d3b of _0x46fb19['position']['nodeAfter']['getChildren']())_0x32f3be=_0x32f3be||_0x40320a(_0x4b7d3b,_0x4cff57);}else'tableCell'==_0x46fb19['name']&&(_0x32f3be=_0x32f3be||_0x40320a(_0x46fb19['position']['nodeAfter'],_0x4cff57));}return _0x32f3be;});}['_getSuggestionCoords'](_0x2f0684){return this['_getCoordsForCells'](_0x2f0684['getRanges']()['map'](_0x2c53fe=>_0x2c53fe['start']['nodeAfter']));}}function Ne(_0x25e60d){return Array['from'](new Set(_0x25e60d)['values']());}class _t extends _0x45d531{static get['requires'](){return[At];}['afterInit'](){const _0x557360=this['editor'],_0x1fe0c7=_0x557360['model']['document']['selection'],_0x46af8a=_0x557360['locale'];if(!_0x557360['plugins']['has']('TableEditing'))return;const _0x568621=_0x557360['plugins']['get']('TrackChangesEditing'),_0x158baa=_0x557360['plugins']['get']('TableUtils'),_0x31f85f=_0x557360['plugins']['get'](At);_0x31f85f['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x568621['enableCommand']('mergeTableCells',()=>{const _0x2f348e=_0x158baa['getSelectionAffectedTableCells'](_0x557360['model']['document']['selection']);_0x557360['model']['change'](()=>{_0x568621['markMultiRangeBlockFormat'](_0x2f348e,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x557360['commands']['get']('mergeTableCells')['on']('execute',(_0x4e89d4,_0x19fe32)=>{_0x557360['commands']['get']('trackChanges')['value']&&(_0x19fe32['length']>0x0&&_0x19fe32[_0x19fe32['length']-0x1]&&_0x19fe32[_0x19fe32['length']-0x1]['forceDefaultExecution']||_0x568621['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x4e89d4['stop']());},{'priority':'highest'});for(const _0xca8d9 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x49eccb=_0x557360['commands']['get'](_0xca8d9);_0x568621['enableCommand'](_0xca8d9,()=>{const _0x511b4c=_0x557360['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5f485c=>_0x5f485c['is']('element','tableCell')),_0x15f9ff=_0x49eccb['value'];_0x557360['model']['change'](()=>{_0x568621['markMultiRangeBlockFormat']([_0x511b4c,_0x15f9ff],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x26dab1 of['splitTableCellVertically','splitTableCellHorizontally']){const _0xe9bbda=_0x557360['commands']['get'](_0x26dab1);_0x568621['enableCommand'](_0x26dab1,()=>{const _0x555b0e=_0x158baa['getSelectionAffectedTableCells'](_0x557360['model']['document']['selection'])[0x0],_0x4b7bbc=_0x555b0e['findAncestor']('table'),{column:_0x6a6864,row:_0x25e09f}=_0x158baa['getCellLocation'](_0x555b0e);let _0x355a26=[];if('horizontally'==_0xe9bbda['direction']){const _0x2c8cac=_0x158baa['createTableWalker'](_0x4b7bbc,{'startRow':_0x25e09f,'endRow':_0x25e09f,'includeAllSlots':!0x0});_0x355a26=Array['from'](_0x2c8cac)['map'](_0x293503=>_0x293503['cell']);}else{const _0x4e0622=_0x158baa['createTableWalker'](_0x4b7bbc,{'column':_0x6a6864,'includeAllSlots':!0x0});_0x355a26=Array['from'](_0x4e0622)['map'](_0x539e56=>_0x539e56['cell']);}_0x557360['model']['change'](_0x303dd1=>{_0x568621['markBlockFormat'](_0x303dd1['createRangeOn'](_0x555b0e),{'commandName':_0x26dab1,'commandParams':[]},_0x355a26,_0x26dab1);});});}_0x568621['descriptionFactory']['registerDescriptionCallback'](_0x2cff0f=>{if('formatBlock'!=_0x2cff0f['type']&&'formatInline'!=_0x2cff0f['type'])return;const {data:_0x4d62f8}=_0x2cff0f;return _0x4d62f8&&'mergeTableCells'==_0x4d62f8['commandName']?{'type':'format','content':o(_0x46af8a,'*Merge\x20cells*')}:void 0x0;}),_0x568621['descriptionFactory']['registerDescriptionCallback'](_0xb95850=>{if('formatBlock'!=_0xb95850['type']&&'formatInline'!=_0xb95850['type'])return;const {data:_0xfec57c}=_0xb95850;return _0xfec57c?'splitTableCellVertically'==_0xfec57c['commandName']?{'type':'format','content':o(_0x46af8a,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0xfec57c['commandName']?{'type':'format','content':o(_0x46af8a,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x2e3daf=_0x31f85f['_acceptFormatSuggestionCallbackFactory']();for(const _0x212710 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x568621['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x212710,'accept',_0x2e3daf);for(const _0x19e8f0 of['splitTableCellVertically','splitTableCellHorizontally'])_0x568621['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x19e8f0,'accept',_0x2e3daf);_0x568621['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x164d1c=>{_0x557360['model']['change'](_0x44fd0e=>{const _0x483bab=Array['from'](_0x1fe0c7['getRanges']())['map'](_0x56b56a=>_0x5661a3['fromRange'](_0x56b56a));_0x44fd0e['setSelection'](_0x164d1c),_0x557360['commands']['get']('mergeTableCells')['refresh'](),_0x557360['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x593fbd=_0x483bab['filter'](_0x52a7f0=>'$graveyard'!=_0x52a7f0['root']['rootName']);_0x593fbd['length']>0x0&&_0x44fd0e['setSelection'](_0x593fbd);for(const _0x4b6718 of _0x483bab)_0x4b6718['detach']();});});for(const _0x33446e of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x3c0c3a=_0x557360['commands']['get'](_0x33446e);_0x3c0c3a['on']('set:isEnabled',(_0x35313e,_0x24147e,_0x5d8642)=>{if(_0x5d8642){const _0x1647a1=_0x557360['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5a02b7=>_0x5a02b7['is']('element','tableCell'));this['_areMergableCells'](_0x3c0c3a['value'],_0x1647a1)||(_0x35313e['return']=!0x1,_0x35313e['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x3fcb64=this['editor']['commands']['get']('mergeTableCells'),_0x4702f9=this['editor']['plugins']['get']('TableUtils');if(!_0x3fcb64['isEnabled'])return!0x1;const _0x1d0b01=_0x4702f9['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x49f66d of _0x1d0b01)for(const _0x2ebaf7 of _0x1d0b01)if(_0x49f66d!=_0x2ebaf7&&!this['_areMergableCells'](_0x49f66d,_0x2ebaf7))return!0x1;return!0x0;}['_areMergableCells'](_0x44cf54,_0x105983){const _0x1027bb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5ed451=this['editor']['model']['createRangeOn'](_0x44cf54),_0x3ac462=this['editor']['model']['createRangeOn'](_0x105983),_0x38d161=new Set(),_0xc6fdec=new Set();for(const _0x4b82a8 of _0x1027bb['getSuggestions']())if(('insertion'==_0x4b82a8['type']||'deletion'==_0x4b82a8['type']||'mergeTableCells'==_0x4b82a8['subType'])&&_0x4b82a8['isInContent']){for(const _0x14bf1a of _0x4b82a8['getRanges']())_0x14bf1a['containsRange'](_0x5ed451,!0x0)&&_0x38d161['add'](_0x4b82a8['type']+':'+_0x4b82a8['author']['id']),_0x14bf1a['containsRange'](_0x3ac462,!0x0)&&_0xc6fdec['add'](_0x4b82a8['type']+':'+_0x4b82a8['author']['id']);}if(_0x38d161['size']!=_0xc6fdec['size'])return!0x1;for(const _0x509011 of _0x38d161)if(!_0xc6fdec['has'](_0x509011))return!0x1;return!0x0;}}class Ct extends _0x45d531{static get['requires'](){return[At];}['afterInit'](){const _0x4cf4bb=this['editor'];if(!_0x4cf4bb['plugins']['has']('TableEditing'))return;const _0x16f9ad=_0x4cf4bb['locale'],_0x2aecec=_0x4cf4bb['plugins']['get']('TrackChangesEditing');_0x2aecec['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x2aecec['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x2aecec['registerBlockAttribute']('headingRows'),_0x2aecec['registerBlockAttribute']('headingColumns'),_0x2aecec['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x16f9ad,'FORMAT_HEADER_ROW')),_0x2aecec['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x16f9ad,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x392119=this['editor']['plugins']['get']('TrackChangesEditing'),_0x46e522=this['editor']['plugins']['get']('TableUtils'),_0x224b92=this['editor']['plugins']['get'](At)['_acceptFormatSuggestionCallbackFactory']();function _0x5463b6({showActiveMarker:_0x135671=!0x0,setDataAttribute:_0x50e89a=!0x0}={}){return(_0x32598f,_0x465983,_0x1762eb)=>{const {type:_0x3ddb9a,id:_0x31584e}=_0x392119['_splitMarkerName'](_0x465983['markerName']),_0x17c60d=_0x392119['getSuggestion'](_0x31584e),_0x542e9c=_0x17c60d['data'];if('formatBlock'!=_0x17c60d['type']||!_0x542e9c||'setTableColumnHeader'!=_0x542e9c['commandName'])return;if(_0x465983['item'])return void _0x32598f['stop']();if(!_0x1762eb['consumable']['consume'](_0x465983['markerRange'],_0x32598f['name']))return;const _0xc1972d=_0x465983['markerRange']['start']['nodeAfter'],_0x59a603=_0x465983['markerRange']['end']['nodeBefore'],_0x3ff673=_0xc1972d['parent']['parent'],{column:_0x5b3708}=_0x46e522['getCellLocation'](_0xc1972d),{column:_0x31e4ae}=_0x46e522['getCellLocation'](_0x59a603);for(let _0x6266d0=_0x5b3708;_0x6266d0<=_0x31e4ae;_0x6266d0++){const _0x173e22=_0x46e522['createTableWalker'](_0x3ff673,{'column':_0x6266d0,'includeAllSlots':!0x1});for(const _0x1e44d0 of _0x173e22){const _0x52995e=_0x1e44d0['cell'],_0xd8ddc2=_0x1762eb['mapper']['toViewElement'](_0x52995e);_0x1762eb['writer']['addClass']('ck-suggestion-marker-'+_0x3ddb9a,_0xd8ddc2),_0x50e89a&&_0x1762eb['writer']['setAttribute']('data-suggestion',_0x31584e,_0xd8ddc2),_0x1762eb['mapper']['bindElementToMarker'](_0xd8ddc2,_0x465983['markerName']),_0x135671&&(_0x392119['activeMarkers']['includes'](_0x465983['markerName'])?_0x1762eb['writer']['addClass']('ck-suggestion-marker--active',_0xd8ddc2):_0x1762eb['writer']['removeClass']('ck-suggestion-marker--active',_0xd8ddc2));}}};}_0x392119['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x224b92),_0x392119['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x224b92),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x5463b6(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2911f8,_0xcdd1fd,_0x2bb2bd)=>{_0x2bb2bd['options']['showSuggestionHighlights']&&_0x5463b6({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x2911f8,_0xcdd1fd,_0x2bb2bd);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x1b5283,_0x589326,_0x4b4080)=>{const {type:_0x4bab4a,id:_0x3dbfac}=_0x392119['_splitMarkerName'](_0x589326['markerName']),_0x54bf23=_0x392119['getSuggestion'](_0x3dbfac),_0x144f30=_0x54bf23['data'];if('formatBlock'!=_0x54bf23['type']||!_0x144f30||'setTableColumnHeader'!=_0x144f30['commandName'])return;const _0x1136f1=_0x4b4080['mapper']['markerNameToElements'](_0x589326['markerName']);if(_0x1136f1){for(const _0xae53c of _0x1136f1)_0x4b4080['writer']['removeClass']('ck-suggestion-marker-'+_0x4bab4a,_0xae53c),_0x4b4080['writer']['removeClass']('ck-suggestion-marker--active',_0xae53c),_0x4b4080['writer']['removeAttribute']('data-suggestion',_0xae53c),_0x4b4080['mapper']['unbindElementFromMarkerName'](_0xae53c,_0x589326['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x489e81=this['editor'],_0x3b335f=_0x489e81['locale'];function _0x4864c9(_0x139503){return{'type':'format','content':o(_0x3b335f,'*Format:*\x20%0',_0x139503)};}_0x489e81['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1eccc6=>{if('formatBlock'!=_0x1eccc6['type'])return;const {data:_0x4e5bdb}=_0x1eccc6;if(_0x4e5bdb){if('setTableRowHeader'==_0x4e5bdb['commandName']){const _0x4f3c29=_0x4e5bdb['commandParams'][0x0]['forceValue'];return _0x4864c9(o(_0x3b335f,_0x4f3c29?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x4e5bdb['commandName']){const _0x1fd16d=_0x4e5bdb['commandParams'][0x0]['forceValue'];return _0x4864c9(o(_0x3b335f,_0x1fd16d?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class vt extends _0x45d531{['afterInit'](){const _0x1338a4=this['editor'],_0x363944=_0x1338a4['locale'],_0x5530cc=_0x1338a4['plugins']['get']('TrackChangesEditing');function _0x40936f(_0x4e75e4){return{'type':'format','content':''+o(_0x363944,'*Set\x20table\x20type:*\x20%0',_0x4e75e4)};}_0x1338a4['plugins']['has']('TableLayout')&&(_0x5530cc['enableCommand']('insertTableLayout'),_0x5530cc['enableDefaultAttributesIntegration']('tableType'),_0x5530cc['registerBlockAttribute']('tableType'),_0x5530cc['descriptionFactory']['registerElementLabel'](_0x5d360e=>_0x5d360e['is']('element','table')&&'layout'===_0x5d360e['getAttribute']('tableType'),_0x4e9f96=>o(_0x363944,'ELEMENT_LAYOUT_TABLE',_0x4e9f96)),_0x5530cc['descriptionFactory']['registerDescriptionCallback'](_0x2ccfff=>{const {data:_0x3ddbe5}=_0x2ccfff;if(_0x3ddbe5&&'tableType'==_0x3ddbe5['key'])switch(_0x3ddbe5['newValue']){case'layout':return _0x40936f(o(_0x363944,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x40936f(o(_0x363944,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=/* #__PURE__ -- @preserve */
25
+ Object['fromEntries'](Be['map'](_0xeefc08=>[_0xeefc08,null]));class Nt extends _0x45d531{static get['requires'](){return[At];}['afterInit'](){const _0x4160be=this['editor'];if(!_0x4160be['plugins']['has']('TableClipboard'))return;const _0x130f73=_0x4160be['plugins']['get']('TrackChangesEditing'),_0x431e06=_0x4160be['plugins']['get']('TableUtils'),_0xb554e8=_0x4160be['plugins']['get'](At),_0xe28996=_0x4160be['plugins']['get']('TableClipboard'),_0x1bb378=_0x4160be['plugins']['get']('TableSelection'),_0x4605f2=_0x4160be['plugins']['get'](_0x3b84c1);_0xb554e8['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x4160be['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x4160be['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x3171ea=null,_0x1f84ef=!0x1;_0x4605f2['on']('contentInsertion',(_0x4e1c52,_0x44010d)=>{_0x1f84ef='paste'===_0x44010d['method'];}),_0x4160be['model']['on']('insertContent',(_0xa77d7,_0x53e95f)=>{if(!_0x1f84ef&&null===_0x1bb378['getSelectedTableCells']())return;const [_0x333301,_0x360314]=_0x53e95f,_0x4147a2=_0x53e95f[_0x53e95f['length']-0x1];_0x4147a2&&_0x4147a2['forceDefaultExecution']||_0x130f73['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x23fa94,_0x7cfb5f,_0x19991b,_0x3cd41d,_0x359b3e){if(_0x7cfb5f&&!_0x7cfb5f['is']('documentSelection'))return!0x1;const _0x1f5cde=_0x359b3e['getTableIfOnlyTableInContent'](_0x23fa94,_0x19991b);if(!_0x1f5cde||!Ue(_0x1f5cde,void 0x0,_0x3cd41d))return!0x1;const _0x11e05d=_0x3cd41d['getSelectionAffectedTableCells'](_0x19991b['document']['selection']);if(!_0x11e05d['length'])return!0x1;const _0x411d8e=_0x11e05d[0x0]['findAncestor']('table'),_0x4017ee=_0x3cd41d['getRowIndexes'](_0x11e05d),_0x54fdf1=_0x3cd41d['getColumnIndexes'](_0x11e05d),_0x768c47={'startRow':_0x4017ee['first'],'endRow':_0x4017ee['last'],'startColumn':_0x54fdf1['first'],'endColumn':_0x54fdf1['last']};return 0x1==_0x11e05d['length']&&(_0x768c47['endRow']+=_0x3cd41d['getRows'](_0x1f5cde)-0x1,_0x768c47['endColumn']+=_0x3cd41d['getColumns'](_0x1f5cde)-0x1),Ue(_0x411d8e,_0x768c47,_0x3cd41d);}(_0x333301,_0x360314,_0x4160be['model'],_0x431e06,_0xe28996)&&(_0xa77d7['stop'](),_0x3171ea={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x4160be['model']['change'](()=>{_0x4160be['model']['insertContent'](_0x53e95f[0x0],_0x53e95f[0x1],_0x53e95f[0x2],{'forceDefaultExecution':!0x0});const _0x17560c=_0x23f17c(),{rowInsertionRanges:_0x5e5d60,columnInsertionRanges:_0xe1d75,insertionRanges:_0xb5fe36,deletionRanges:_0x4a9a60,cells:_0x5c7aac}=_0x3171ea;_0x5e5d60['length']&&_0x130f73['markMultiRangeInsertion'](_0x5e5d60,'tablePasteRow',{'tablePasteChainId':_0x17560c}),_0xe1d75['length']&&_0x130f73['markMultiRangeInsertion'](_0xe1d75,'tablePasteColumn',{'tablePasteChainId':_0x17560c}),_0xb5fe36['length']&&(_0x130f73['markMultiRangeInsertion'](_0xb5fe36,'tablePaste',{'tablePasteChainId':_0x17560c,'skipNestingCheck':!0x0}),_0xb5fe36['forEach'](_0x3f6080=>_0x3f6080['detach']?.())),_0x4a9a60['length']&&(_0x130f73['markMultiRangeDeletion'](_0x4a9a60,'tablePaste',{'tablePasteChainId':_0x17560c,'skipNestingCheck':!0x0}),_0x4a9a60['forEach'](_0x5b3331=>_0x5b3331['detach']?.()));const _0x3bf9f3=_0x130f73['markMultiRangeBlockFormat'](_0x5c7aac['map'](({element:_0x242098})=>_0x242098),{'formatGroupId':_0x23f17c()},[],'tablePasteCell',{'tablePasteChainId':_0x17560c});if(_0x3bf9f3){const _0x3d93ca=_0x3bf9f3['getMarkers'](),_0xd915dc=[];for(const {element:_0x22c6a2,attributes:_0x3ba430}of _0x5c7aac){if(!_0x3ba430)continue;const _0x9b31ab=_0x4160be['model']['createRangeOn'](_0x22c6a2),_0x2a92ba=_0x3d93ca['find'](_0x45fd85=>_0x45fd85['getRange']()['isEqual'](_0x9b31ab));_0x2a92ba&&_0xd915dc['push']([_0x2a92ba['name'],_0x3ba430]);}_0xd915dc['length']&&_0x3bf9f3['setAttribute']('markerAttributes',Object['fromEntries'](_0xd915dc));}_0x3171ea=null;}));},{'priority':_0x32e621['high']+0xa}),_0x4605f2['on']('contentInsertion',()=>{_0x1f84ef=!0x1;},{'priority':'lowest'}),_0x4160be['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x15085f,_0x40a9d5)=>{const [_0x7d9327,_0x53d879,,_0x351792]=_0x40a9d5;if(!_0x3171ea)return;_0x15085f['stop']();const _0x3910ed=_0x7d9327['cell'],_0x978d2b=_0x53d879,_0x57f542=Oe(_0x3910ed),_0x10f0f6=Oe(_0x978d2b);_0x15085f['return']=_0x3910ed;let _0x3f78a3=null,_0x36e2b2=null;if(_0x10f0f6||_0x57f542){if(_0x57f542&&!_0x10f0f6){_0x351792['remove'](_0x3910ed['getChild'](0x0));for(const _0x1dc221 of Array['from'](_0x978d2b['getChildren']()))_0x351792['insert'](_0x1dc221,_0x3910ed,'end');const _0x38d46c=_0x3171ea['rowInsertionIndexes']['includes'](_0x7d9327['row']),_0x386a56=_0x3171ea['columnInsertionIndexes']['includes'](_0x7d9327['column']);_0x38d46c||_0x386a56||(_0x3f78a3=_0x5661a3['fromRange'](_0x351792['createRangeIn'](_0x3910ed)));}else _0x10f0f6&&!_0x57f542&&(_0x36e2b2=_0x351792['createRangeIn'](_0x3910ed));}else{const _0x5c1de1=_0x351792['createElement']('tableCellSuggestion'),_0x368354=_0x351792['createElement']('tableCellSuggestion');_0x351792['wrap'](_0x351792['createRangeIn'](_0x3910ed),_0x368354),_0x351792['insert'](_0x5c1de1,_0x3910ed,0x0);for(const _0x13737d of Array['from'](_0x978d2b['getChildren']()))_0x351792['insert'](_0x13737d,_0x5c1de1,'end');_0x3f78a3=_0x5661a3['fromRange'](_0x351792['createRangeOn'](_0x5c1de1)),_0x36e2b2=_0x5661a3['fromRange'](_0x351792['createRangeOn'](_0x368354));}const _0x3eedec=Array['from'](_0x978d2b['getAttributes']())['filter'](([_0x41ccbe])=>Be['includes'](_0x41ccbe));_0x3171ea['cells']['push']({'element':_0x3910ed,'attributes':_0x3eedec['length']?Object['fromEntries'](_0x3eedec):null}),_0x3f78a3&&_0x3171ea['insertionRanges']['push'](_0x3f78a3),_0x36e2b2&&_0x3171ea['deletionRanges']['push'](_0x36e2b2);},{'priority':'high'}),_0x431e06['on']('insertColumns',(_0x1c6876,_0x105f1c)=>{const [_0x3fc278,_0x568f6a={}]=_0x105f1c;if(!_0x3171ea)return;const _0x31aa82=_0x568f6a['at']||0x0,_0x127137=_0x568f6a['columns']||0x1;_0x3171ea['columnInsertionIndexes']=new Array(_0x127137)['fill'](_0x31aa82)['map']((_0x444b20,_0x4dfa08)=>_0x444b20+_0x4dfa08);for(const {cell:_0x1d3539}of _0x431e06['createTableWalker'](_0x3fc278,{'startColumn':_0x31aa82,'endColumn':_0x31aa82+_0x127137-0x1}))_0x3171ea['columnInsertionRanges']['push'](_0x4160be['model']['createRangeOn'](_0x1d3539));},{'priority':'low'}),_0x431e06['on']('insertRows',(_0x369b53,_0x486de9)=>{const [_0x49bf21,_0x43a87f={}]=_0x486de9;if(!_0x3171ea)return;const _0x485e72=_0x43a87f['at']||0x0,_0x205186=_0x43a87f['rows']||0x1;_0x3171ea['rowInsertionIndexes']=new Array(_0x205186)['fill'](_0x485e72)['map']((_0x3f5e30,_0x2c74db)=>_0x3f5e30+_0x2c74db);for(const {cell:_0x3d2e35}of _0x431e06['createTableWalker'](_0x49bf21,{'startRow':_0x485e72,'endRow':_0x485e72+_0x205186-0x1}))_0x3171ea['rowInsertionRanges']['push'](_0x4160be['model']['createRangeOn'](_0x3d2e35));},{'priority':'low'}),_0x130f73['descriptionFactory']['registerDescriptionCallback'](_0x20cb64=>{if(_0x20cb64['subType']&&_0x20cb64['subType']['startsWith']('tablePaste'))return _0x20cb64['previous']?{}:{'type':'insertion','content':o(_0x4160be['locale'],'*Replace\x20table\x20cells*')};});const _0x170b3a=()=>!0x1;for(const _0x226184 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x130f73['_suggestionFactory']['registerCustomCallback']('insertion',_0x226184,'join',_0x170b3a),_0x130f73['_suggestionFactory']['registerCustomCallback']('deletion',_0x226184,'join',_0x170b3a),_0x130f73['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x226184,'join',_0x170b3a);_0x130f73['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x170b3a),_0x130f73['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x2ccf18,_0x3a39db,_0x4f57da)=>{const _0x375c9d=_0x2ccf18['map'](_0x402166=>_0x402166['getContainedElement']())['filter'](_0x66cbc8=>_0x66cbc8),_0xb00a9d=new Map(_0x375c9d['map'](_0x358559=>[_0x358559,null]));if(_0x3171ea){for(const {element:_0xbe55fe,attributes:_0x1b3d73}of _0x3171ea['cells'])_0x1b3d73&&_0xb00a9d['set'](_0xbe55fe,_0x1b3d73);}else{if(_0x4f57da&&_0x4f57da['markerAttributes'])for(const [_0x402114,_0x476d17]of Object['entries'](_0x4f57da['markerAttributes'])){const _0x5614d1=_0x4160be['model']['markers']['get'](_0x402114),_0x16e7b4=_0x5614d1?_0x5614d1['getRange']()['getContainedElement']():null;_0x16e7b4&&_0xb00a9d['set'](_0x16e7b4,_0x476d17);}}_0x4160be['model']['change'](_0x4db26a=>{for(const [_0xed8afb,_0x4b91fd]of _0xb00a9d)_0x4db26a['setAttributes']({...xe,..._0x4b91fd},_0xed8afb);});});const _0x468027=(_0x33fd7f,_0x30a03f)=>{_0x130f73['_suggestionFactory']['registerCustomCallback'](_0x33fd7f,'tablePaste',_0x30a03f,(_0x1c48cc,_0x5d451b,_0x231b49)=>{_0x4160be['model']['change'](_0xdcd239=>{const _0x1523a9=[];for(const _0x1b8dc5 of _0x1c48cc){const _0x48224a=_0x1b8dc5['start']['nodeAfter'];_0x48224a['is']('element','tableCellSuggestion')&&_0x1523a9['push'](_0x48224a);}_0x130f73['_suggestionFactory']['getSuggestionCallback'](_0x33fd7f,null,_0x30a03f)(_0x1c48cc,_0x5d451b,_0x231b49);for(const _0x41464e of _0x1523a9)'$graveyard'!=_0x41464e['root']['rootName']&&_0xdcd239['unwrap'](_0x41464e);});});};_0x468027('insertion','accept'),_0x468027('insertion','discard'),_0x468027('deletion','accept'),_0x468027('deletion','discard'),_0x130f73['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1af19d=>{const _0x53e175=_0x1af19d['map'](_0x437163=>_0x437163['getContainedElement']()),_0x25d508=_0x53e175[0x0]['findAncestor']('table'),{minRow:_0x3a03e3,maxRow:_0x17feb0}=_0xb554e8['_getCoordsForCells'](_0x53e175);_0x431e06['removeRows'](_0x25d508,{'at':_0x3a03e3,'rows':_0x17feb0-_0x3a03e3+0x1});}),_0x130f73['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x345eed=>{const _0x531be0=_0x345eed['map'](_0x271939=>_0x271939['getContainedElement']()),_0x16c878=_0x531be0[0x0]['findAncestor']('table'),{minColumn:_0x54cf44,maxColumn:_0x456119}=_0xb554e8['_getCoordsForCells'](_0x531be0);_0x431e06['removeColumns'](_0x16c878,{'at':_0x54cf44,'columns':_0x456119-_0x54cf44+0x1});});const _0x50c7fc=(_0x5e40fc,_0x4617ce)=>{if(!_0x4617ce['subType']||!_0x4617ce['subType']['startsWith']('tablePaste'))return;const _0x184982=_0x4617ce['attributes']['tablePasteChainId'],_0x14f247=_0x130f73['getSuggestions']()['filter'](_0x18c293=>_0x18c293['isInContent']&&_0x18c293['attributes']&&_0x18c293['attributes']['tablePasteChainId']==_0x184982);_0x14f247['length']&&_0x4617ce['getAllAdjacentSuggestions']()['length']!=_0x14f247['length']&&_0x14f247['reduce']((_0x9fc904,_0x4488af)=>(_0x9fc904['next']=_0x4488af,_0x4488af['previous']=_0x9fc904,_0x4488af));};function _0x223aa(_0x4a88cf,_0x407d72=!0x0){const {id:_0x445650,authorId:_0x79420f}=_0x130f73['_splitMarkerName'](_0x4a88cf['markerName']),_0x147dbe=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x5ca234=_0x130f73['activeMarkers']['includes'](_0x4a88cf['markerName']);return _0x5ca234&&_0x147dbe['push']('ck-suggestion-marker--active'),{'classes':_0x147dbe,'attributes':{'data-suggestion':_0x445650,'data-author-id':_0x79420f},'priority':_0x5ca234&&_0x407d72?0xbc2:0xbb8};}_0x130f73['on']('suggestionLoaded',_0x50c7fc,{'priority':'high'}),_0x130f73['on']('suggestionUnloaded',_0x50c7fc,{'priority':'high'}),_0x4160be['model']['document']['registerPostFixer'](()=>{let _0x22d186=!0x1;const _0x315bcb=Array['from'](_0x4160be['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x501e9b,data:_0x13f191}of _0x315bcb){const {group:_0x5e2d49,type:_0x2cd974,id:_0x561373}=_0x130f73['_splitMarkerName'](_0x501e9b);if('suggestion'!=_0x5e2d49||'deletion'!=_0x2cd974||_0x13f191['oldRange'])continue;if(!_0x130f73['hasSuggestion'](_0x561373))continue;const _0x5739a1=_0x130f73['getSuggestion'](_0x561373)['getRanges'](),_0x5c9861=_0x4160be['plugins']['get']('Users')['me'];for(const _0x5c3604 of _0x130f73['getSuggestions']()){if(!_0x5c3604['isInContent']||_0x5c3604['author']!=_0x5c9861)continue;if('formatBlock'!=_0x5c3604['type']||'tablePasteCell'!=_0x5c3604['subType'])continue;if(_0x5c3604['getRanges']()['every'](_0x240be0=>_0x5739a1['some'](_0x36bd66=>_0x36bd66['containsRange'](_0x240be0,!0x0)))){for(const _0x10263f of _0x5c3604['getAllAdjacentSuggestions']())_0x10263f['isInContent']&&(_0x10263f['discard'](),_0x22d186=!0x0);}}}return _0x22d186;}),_0x4160be['model']['document']['registerPostFixer'](_0x34d4d8=>{const _0x1d4038=_0x4160be['commands']['get']('redo');if(!_0x1d4038||!_0x1d4038['_createdBatches']['has'](_0x34d4d8['batch']))return!0x1;let _0xece172=!0x1;const _0x7e70dc=_0x4160be['plugins']['get']('Users')['me'],_0x35c1bf=_0x4160be['model']['document']['differ']['getChanges'](),_0x484a01=Array['from'](_0x4160be['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x29276c,data:_0x2a2f3e})=>{const {group:_0x1ec84f,subType:_0x57a15d,authorId:_0x3e6547}=_0x130f73['_splitMarkerName'](_0x29276c);return'suggestion'==_0x1ec84f&&'tablePaste'==_0x57a15d&&_0x3e6547==_0x7e70dc['id']&&!_0x2a2f3e['oldRange'];});for(const _0x2e7a3c of _0x35c1bf){if('insert'!=_0x2e7a3c['type']||'tableCellSuggestion'!=_0x2e7a3c['name']||0x1!=_0x2e7a3c['length'])continue;const _0x1e1bc0=_0x34d4d8['createRange'](_0x2e7a3c['position'],_0x2e7a3c['position']['getShiftedBy'](0x1));if(!_0x484a01['find'](({data:_0x2c7832})=>_0x2c7832['newRange']['isEqual'](_0x1e1bc0))){for(const {name:_0x3faf61,data:_0x1186b7}of _0x484a01)if(_0x1e1bc0['containsRange'](_0x1186b7['newRange'])){_0x34d4d8['updateMarker'](_0x3faf61,{'range':_0x1e1bc0}),_0xece172=!0x0;break;}}}return _0xece172;}),_0x4160be['model']['document']['registerPostFixer'](_0xc532a7=>{let _0x1bf157=!0x1;const _0x26e559=_0x4160be['plugins']['get']('Users')['me'],_0x5ed1ee=_0x130f73['getSuggestions']()['filter'](_0x574cb2=>_0x574cb2['isInContent']&&_0x574cb2['author']==_0x26e559),_0x12c141=new Set(),_0x285f68=new Set();for(const _0xef99b4 of _0x5ed1ee)if('tablePaste'==_0xef99b4['subType'])for(const _0x5ac6cc of _0xef99b4['getMarkers']()){const _0x562830=_0x5ac6cc['getRange']()['getContainedElement']();if(_0x562830){if(_0x562830['is']('element','tableCellSuggestion')&&Oe(_0x562830)){_0xef99b4['removeMarker'](_0x5ac6cc['name']),_0x12c141['add'](_0x562830),_0x1bf157=!0x0;const _0x188394=_0x562830['nextSibling'],_0x3f9fa2=_0x562830['previousSibling'],_0x15aeed=_0x188394&&_0x188394['is']('element','tableCellSuggestion'),_0x5c8c56=_0x3f9fa2&&_0x3f9fa2['is']('element','tableCellSuggestion');_0x15aeed&&!_0x12c141['has'](_0x188394)&&_0x285f68['add'](_0x188394),_0x5c8c56&&!_0x12c141['has'](_0x3f9fa2)&&_0x285f68['add'](_0x3f9fa2);}else _0x562830['is']('element','paragraph')&&_0x562830['isEmpty']&&(_0xef99b4['removeMarker'](_0x5ac6cc['name']),_0x1bf157=!0x0);}}else{if('tablePasteCell'==_0xef99b4['subType']){if(!_0xef99b4['attributes']||!_0xef99b4['attributes']['tablePasteChainId'])continue;const _0x26126a=_0xef99b4['attributes']['markerAttributes'];if(_0x26126a&&Object['keys'](_0x26126a)['length'])continue;const _0x4c8818=_0xef99b4['attributes']['tablePasteChainId'];let _0xbb4592=!0x0,_0x33086d=!0x0;for(const _0x30731d of _0x5ed1ee)if(_0x30731d['subType']&&_0x30731d['subType']['startsWith']('tablePaste')){if(!_0x30731d['attributes']['tablePasteChainId']){_0x33086d=!0x1;break;}if(_0x30731d['id']!=_0xef99b4['id']&&_0x30731d['attributes']['tablePasteChainId']==_0x4c8818){_0xbb4592=!0x1;break;}}_0x33086d&&_0xbb4592&&(_0xef99b4['removeMarkers'](),_0x1bf157=!0x0);}}for(const _0x1ac6bc of _0x12c141)_0xc532a7['remove'](_0x1ac6bc);for(const _0x22e4d6 of _0x285f68)_0xc532a7['unwrap'](_0x22e4d6);return _0x1bf157;}),_0x4160be['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0xc2b922=>_0x223aa(_0xc2b922),'converterPriority':'high'}),_0x4160be['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x105240,_0x9968b7)=>_0x9968b7['options']['showSuggestionHighlights']?_0x223aa(_0x105240,!0x1):null,'converterPriority':'high'});const _0x53148a=_0x4160be['editing']['view'];this['listenTo'](_0x53148a['document'],'clipboardOutput',(_0x395a58,_0x1db165)=>{const _0x6a5d47=[];for(const _0x233ff9 of _0x53148a['createRangeIn'](_0x1db165['content'])['getItems']())_0x233ff9['is']('element','suggestion-td')&&_0x6a5d47['push'](_0x233ff9);_0x53148a['change'](_0x56c416=>{for(const _0x408026 of _0x6a5d47)_0x56c416['move'](_0x56c416['createRangeIn'](_0x408026),_0x56c416['createPositionBefore'](_0x408026)),_0x56c416['remove'](_0x408026);});});}}function Oe(_0x3bf5e8){if(_0x3bf5e8['isEmpty'])return!0x0;const _0x5a1895=_0x3bf5e8['getChild'](0x0);return _0x5a1895['is']('element','paragraph')&&_0x5a1895['isEmpty'];}function Ue(_0x439c35,_0x33bff6={},_0x311ba9){for(const {isAnchor:_0x1f199a,cellHeight:_0xdc476f,cellWidth:_0x4a597c}of _0x311ba9['createTableWalker'](_0x439c35,{'includeAllSlots':!0x0,..._0x33bff6}))if(!_0x1f199a||0x1!=_0xdc476f||0x1!=_0x4a597c)return!0x1;return!0x0;}class Dt extends _0x45d531{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x36c7c8=this['editor']['plugins']['get']('TrackChangesEditing');_0x36c7c8['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x36c7c8['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x36c7c8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x36c7c8['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x36c7c8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x36c7c8['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x210fc4,_0x4b6b74){const _0x4c7bbd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x159018=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0xe4a0ce=_0x4b6b74['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x1c84d2=_0x159018['getColumnGroupElement'](_0xe4a0ce);let _0x5308b9=_0x1c84d2?_0x159018['getTableColumnsWidths'](_0x1c84d2):null,_0x330b13=_0xe4a0ce['getAttribute']('tableWidth')||null;const _0x33f8cd=_0x4b6b74['tableWidth']||_0x330b13,_0x26e5bf=_0x4b6b74['columnWidths']||_0x5308b9,_0x492cfc=this['editor']['plugins']['get']('Users')['me'];for(const _0x3738e9 of _0x4c7bbd['getSuggestions']()){const _0x5f12a0=_0x3738e9['getContainedElement']();if('resizeTable'===_0x3738e9['subType']&&_0x5f12a0===_0xe4a0ce){_0x3738e9['author']!==_0x492cfc&&_0x3738e9['discard']();const _0x5f3c50=_0x3738e9['data']['commandParams'];_0x330b13=_0x5f3c50[0x0]['tableWidth'],_0x5308b9=_0x5f3c50[0x0]['columnWidths'];break;}}_0x210fc4({'table':_0xe4a0ce,'tableWidth':_0x33f8cd,'columnWidths':_0x26e5bf}),_0x4c7bbd['markBlockFormat'](_0xe4a0ce,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x330b13,'columnWidths':_0x5308b9}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x19d26c){if('formatBlock'!=_0x19d26c['type']&&'formatInline'!=_0x19d26c['type'])return;const {data:_0x33100b}=_0x19d26c;if(_0x33100b&&'resizeTable'===_0x33100b['formatGroupId']){const _0x172ac3='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x172ac3)};}}}class Mt extends _0x45d531{['afterInit'](){const _0x34a8c3=this['editor'];_0x34a8c3['plugins']['has']('Template')&&_0x34a8c3['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x45d531{['afterInit'](){const _0x20a5b2=this['editor'];if(!_0x20a5b2['commands']['get']('insertTableOfContents'))return;_0x20a5b2['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x40a807=_0x20a5b2['plugins']['get']('TrackChangesEditing'),_0x2fa68f=_0x20a5b2['locale'];_0x40a807['descriptionFactory']['registerElementLabel']('tableOfContents',_0x17598d=>o(_0x2fa68f,'ELEMENT_TABLE_OF_CONTENTS',_0x17598d));}}class Bt extends _0x45d531{['afterInit'](){const _0x434cde=this['editor'];if(!_0x434cde['plugins']['has']('Title'))return;const _0x59db31=_0x434cde['plugins']['get']('TrackChangesEditing');_0x59db31['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x434cde['locale'],'ELEMENT_TITLE')),_0x434cde['model']['document']['registerPostFixer'](_0x257df3=>{let _0x26aaa8=!0x1;const _0x2a9f43=Array['from'](_0x434cde['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4f51d9,data:_0x46eb57}of _0x2a9f43){const {group:_0x34265d}=_0x59db31['_splitMarkerName'](_0x4f51d9);if('suggestion'!==_0x34265d||!_0x46eb57['newRange'])continue;const _0x373bb0=_0x46eb57['newRange'],_0x79d6b7=_0x373bb0['end']['nodeBefore'];if(!_0x79d6b7||!_0x79d6b7['is']('element','title-content'))continue;if(!_0x373bb0['start']['isTouching'](_0x373bb0['end']))continue;const _0x10c5d9=_0x434cde['model']['schema']['getNearestSelectionRange'](_0x373bb0['end'],'forward');if(_0x10c5d9&&_0x10c5d9['isCollapsed']){const _0x1b0e9b=_0x257df3['createRange'](_0x373bb0['start'],_0x10c5d9['start']);_0x1b0e9b['isEqual'](_0x373bb0)||(_0x257df3['updateMarker'](_0x4f51d9,{'range':_0x1b0e9b}),_0x26aaa8=!0x0);}_0x26aaa8||(_0x257df3['removeMarker'](_0x4f51d9),_0x26aaa8=!0x0);}return _0x26aaa8;});}}class Tt extends _0x45d531{['afterInit'](){const _0x3be7a6=this['editor'],_0x3977a4=_0x3be7a6['plugins']['get']('TrackChangesEditing');_0x3be7a6['plugins']['has']('Uploadcare')&&(_0x3977a4['enableCommand']('uploadcare'),_0x3be7a6['plugins']['has']('UploadcareImageEdit')&&(_0x3977a4['enableCommand']('uploadcareImageEdit'),_0x3977a4['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x3977a4['registerBlockAttribute']('uploadcareImageId'),_0x3977a4['descriptionFactory']['registerDescriptionCallback'](_0x50bed6=>{if('attribute'!=_0x50bed6['type'])return;const {data:_0x4871a1}=_0x50bed6;return _0x4871a1&&'uploadcareImageId'==_0x4871a1['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x45d531{['afterInit'](){const _0x1afb49=this['editor'],_0x2c0fe9=_0x1afb49['plugins']['get']('TrackChangesEditing');_0x1afb49['plugins']['has']('UndoEditing')&&(_0x2c0fe9['enableCommand']('undo'),_0x2c0fe9['enableCommand']('redo'));}}class Ot extends _0x45d531{static get['requires'](){return[At];}['afterInit'](){const _0xc96f99=this['editor'];if(!_0xc96f99['plugins']['has']('TableCaptionEditing'))return;_0xc96f99['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0x45d531{['tableProperties'];['tableCellProperties'];constructor(_0x4f76b3){super(_0x4f76b3),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 _0x4298d5=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x4d55d1 of this['tableProperties'])_0x4298d5['enableCommand'](_0x4d55d1,(_0x39caba,_0x5a56fc)=>{const _0xd1055e=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x4d55d1,[_0xd1055e],this['tableProperties'],'tableProperties',_0x39caba,_0x5a56fc);});_0x4298d5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x4298d5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4298d5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x3189af,_0x4c70fc)=>this['handleDiscardAction'](this['tableProperties'],_0x3189af,_0x4c70fc)),_0x4298d5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x17d7bd of this['tableCellProperties'])_0x4298d5['enableCommand'](_0x17d7bd,(_0x4d7bd9,_0x3239fe)=>{const _0x10eeee=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x17d7bd,_0x10eeee,this['tableCellProperties'],'tableCellProperties',_0x4d7bd9,_0x3239fe);});_0x4298d5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x4298d5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4298d5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x4fdd21,_0x3111bf)=>this['handleDiscardAction'](this['tableCellProperties'],_0x4fdd21,_0x3111bf)),_0x4298d5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x4298d5['descriptionFactory']['registerDescriptionCallback'](_0x146e43=>this['handleSuggestionDescription'](_0x146e43));}['_handlePropertyChange'](_0x5d224c,_0x128eec,_0x3e1668,_0x531b03,_0x569128,_0x233e58){const _0x5aa3a0=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x233e58['batch'],()=>{for(const _0x1b3a0a of _0x128eec){if(this['_getSuggestion'](_0x1b3a0a,_0x531b03))_0x569128(_0x233e58);else{const _0xb9d379={};for(const _0x883f46 of _0x3e1668){const _0x1db617=_0x1b3a0a['getAttribute'](_0x883f46);void 0x0!==_0x1db617&&(_0xb9d379[_0x883f46]=_0x1db617);}_0x569128(_0x233e58),_0x5aa3a0['markBlockFormat'](_0x1b3a0a,{'commandParams':[_0xb9d379]},[],_0x531b03);}}});}['handleDiscardAction'](_0x1aa5c4,_0x1a1d0e,_0x5c33d8){const _0x485856=_0x1a1d0e[0x0]['start']['nodeAfter'],_0x21f052=_0x5c33d8['commandParams'][0x0];this['editor']['model']['change'](_0x5f5bd7=>{for(const _0x2a483d of _0x1aa5c4)void 0x0!==_0x21f052[_0x2a483d]?_0x5f5bd7['setAttribute'](_0x2a483d,_0x21f052[_0x2a483d],_0x485856):_0x5f5bd7['removeAttribute'](_0x2a483d,_0x485856);});}['handleSuggestionDescription'](_0x1a9c78){if(_0x1a9c78['data'])switch(_0x1a9c78['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x559e04,_0x279f49){const _0x5cc8ee=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x390b94 of _0x5cc8ee['getSuggestions']({'skipNotAttached':!0x0})){const _0x443df5=_0x390b94['getContainedElement']();if(_0x390b94['subType']===_0x279f49&&_0x443df5===_0x559e04)return _0x390b94;}return null;}}const m='$elementName';class d extends _0x45d531{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x3eafe2,_0x1ea583,O,E,R,U,V,G,F,L,J,K,z,W,Q,X,Y,Z,tt,it,nt,et,ot,st,rt,at,ct,ft,ht,mt,ut,H,q,gt,lt,dt,pt,kt,wt,bt,yt,St,jt,It,At,_t,Ct,vt,Ot,Nt,Dt,$t,Et,Mt,Bt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x505d68){super(_0x505d68),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x2b9594,_0x24f100,_0x3f1266,_0x450377)=>{this['_model']['change'](()=>{for(const _0x8579d7 of[..._0x450377,..._0x3f1266])this['_model']['markers']['has'](_0x8579d7)&&_0x505d68['editing']['reconvertMarker'](_0x8579d7);});}),this['descriptionFactory']=new x(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ut(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x505d68['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x505d68['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x505d68['config']['get']('trackChanges.trackFormatChanges'),_0x505d68['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x505d68['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new N(_0x505d68,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x362cb5=this['editor'],_0x2e1cf3=(_0x3006d6,_0x235bf9)=>{if('attribute'!=_0x3006d6)return'ck-suggestion-marker-'+_0x3006d6;const _0x2869d9=_0x235bf9['split']('|')[0x0];return this['_isBlockAttribute'](_0x2869d9)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x362cb5['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x485d24=>{const {id:_0x30db0b,authorId:_0x4f182f,type:_0x1b1dce,subType:_0x3002fb}=this['_splitMarkerName'](_0x485d24['markerName']),_0x4e106c=['ck-suggestion-marker',_0x2e1cf3(_0x1b1dce,_0x3002fb)];let _0x3e6ad3=0xbb8;return this['activeMarkers']['includes'](_0x485d24['markerName'])&&(_0x4e106c['push']('ck-suggestion-marker--active'),_0x3e6ad3=0xbc2),'deletion'==_0x1b1dce&&(_0x3e6ad3+=0x5),{'classes':_0x4e106c,'attributes':{'data-suggestion':_0x30db0b,'data-author-id':_0x4f182f},'priority':_0x3e6ad3};}}),_0x362cb5['conversion']['for']('dataDowncast')['add'](_0x1cab1e=>{_0x1cab1e['on']('addMarker:suggestion',(_0x96a728,_0x39e9f0,_0x2bfb07)=>{if(!_0x2bfb07['options']['showSuggestionHighlights'])return;const _0x4a6457=_0x39e9f0['item'];if(!_0x4a6457)return;const _0x24fee1=_0x2bfb07['mapper']['toViewElement'](_0x4a6457);_0x362cb5['model']['schema']['isObject'](_0x4a6457)&&_0x24fee1&&!_0x24fee1['getCustomProperty']('widget')&&_0x24fee1['is']('containerElement')&&_0x3dabca(_0x24fee1,_0x2bfb07['writer']);},{'priority':'high'});}),_0x362cb5['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x365750,_0x37cc6a)=>{if(!_0x37cc6a['options']['showSuggestionHighlights'])return null;const {id:_0x48d618,authorId:_0x4afbd6,type:_0x53f1ab,subType:_0x3595ec}=this['_splitMarkerName'](_0x365750['markerName']);return{'classes':['ck-suggestion-marker',_0x2e1cf3(_0x53f1ab,_0x3595ec)],'priority':0xbb8,'attributes':{'data-suggestion':_0x48d618,'data-author-id':_0x4afbd6}};}});const _0x264287=({showActiveMarkers:_0x409a86=!0x0,isAttributeSuggestion:_0x13c429=!0x1}={})=>(_0x1c01c3,_0x42f2bf,_0x253633)=>{if(!_0x42f2bf['item'])return;const {id:_0x5936b6,authorId:_0x3bca99}=this['_splitMarkerName'](_0x42f2bf['markerName']);if(_0x13c429){const _0xfa9efb=this['_suggestions']['get'](_0x5936b6),_0x415ff7=this['_getAttributeKey'](_0xfa9efb);if(!this['_isBlockAttribute'](_0x415ff7))return;}if(_0x42f2bf['item']['is']('selection'))return void _0x253633['consumable']['consume'](_0x42f2bf['item'],_0x1c01c3['name']);const _0x123537=_0x253633['mapper']['toViewElement'](_0x42f2bf['item']);if(_0x42f2bf['item']['is']('element')&&_0x362cb5['model']['schema']['isBlock'](_0x42f2bf['item'])&&!_0x123537['getCustomProperty']('addHighlight')){_0x253633['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x123537),_0x253633['writer']['setAttribute']('data-suggestion',_0x5936b6,_0x123537),_0x253633['writer']['setAttribute']('data-author-id',_0x3bca99,_0x123537),_0x253633['mapper']['bindElementToMarker'](_0x123537,_0x42f2bf['markerName']),_0x409a86&&(this['activeMarkers']['includes'](_0x42f2bf['markerName'])?_0x253633['writer']['addClass']('ck-suggestion-marker--active',_0x123537):_0x253633['writer']['removeClass']('ck-suggestion-marker--active',_0x123537));for(const _0x2a4a92 of _0x362cb5['model']['createRangeIn'](_0x42f2bf['item'])['getItems']())_0x253633['consumable']['consume'](_0x2a4a92,_0x1c01c3['name']);_0x253633['consumable']['consume'](_0x42f2bf['item'],_0x1c01c3['name']);}};_0x362cb5['conversion']['for']('dataDowncast')['add'](_0x4294d3=>{_0x4294d3['on']('addMarker:suggestion:formatBlock',(_0xcdcf86,_0xc67bba,_0x210528)=>{_0x210528['options']['showSuggestionHighlights']&&_0x264287({'showActiveMarkers':!0x1})(_0xcdcf86,_0xc67bba,_0x210528);},{'priority':'highest'});}),_0x362cb5['conversion']['for']('dataDowncast')['add'](_0x47ce7b=>{_0x47ce7b['on']('addMarker:suggestion:attribute',(_0x24daf7,_0x213114,_0x4b7ad7)=>{_0x4b7ad7['options']['showSuggestionHighlights']&&_0x264287({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x24daf7,_0x213114,_0x4b7ad7);},{'priority':'highest'});}),_0x362cb5['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x4f13aa,_0x57a4e3)=>{if(_0x57a4e3['options']['showSuggestionHighlights']){const {id:_0x459700,authorId:_0x48914e}=this['_splitMarkerName'](_0x4f13aa);return _0x4f13aa['includes'](':split')||_0x4f13aa['includes'](':merge')?{'group':'suggestion','name':_0x4f13aa['substr'](0xb),'attributes':{'data-suggestion':_0x459700,'data-author-id':_0x48914e}}:null;}return{'group':'suggestion','name':_0x4f13aa['substr'](0xb)};}}),_0x362cb5['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x50ac9b,{writer:_0x3286fe})=>{let _0x382db1='suggestion:'+_0x50ac9b['getAttribute']('suggestion-type')+':'+_0x50ac9b['getAttribute']('id');return _0x50ac9b['getAttribute']('marker-count')&&(_0x382db1+=':'+_0x50ac9b['getAttribute']('marker-count')),_0x3286fe['createElement']('$marker',{'data-name':_0x382db1});}}),_0x362cb5['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x362cb5['conversion']['for']('editingDowncast')['add'](_0x2aa6e7=>{_0x2aa6e7['on']('addMarker:suggestion:formatBlock',_0x264287(),{'priority':'high'});}),_0x362cb5['conversion']['for']('editingDowncast')['add'](_0x636612=>{_0x636612['on']('addMarker:suggestion:attribute',_0x264287({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x362cb5['conversion']['for']('editingDowncast')['add'](_0x31414b=>{_0x31414b['on']('removeMarker:suggestion:formatBlock',(_0x532a2a,_0x25339b,_0x3533fd)=>{const _0x1f58d0=_0x3533fd['mapper']['markerNameToElements'](_0x25339b['markerName']);if(_0x1f58d0){for(const _0x3e4c76 of _0x1f58d0)_0x3e4c76['getCustomProperty']('addHighlight')||(_0x3533fd['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3e4c76),_0x3533fd['writer']['removeAttribute']('data-suggestion',_0x3e4c76),_0x3533fd['writer']['removeAttribute']('data-author-id',_0x3e4c76),_0x3533fd['mapper']['unbindElementFromMarkerName'](_0x3e4c76,_0x25339b['markerName']));}},{'priority':'high'});}),_0x362cb5['conversion']['for']('editingDowncast')['add'](_0x345be3=>{_0x345be3['on']('removeMarker:suggestion:attribute',(_0x25e4b7,_0x5e3085,_0x26a3f4)=>{const _0x4da3f6=_0x26a3f4['mapper']['markerNameToElements'](_0x5e3085['markerName']);if(!_0x4da3f6)return;const {id:_0x46fb12}=this['_splitMarkerName'](_0x5e3085['markerName']),_0x192810=this['_suggestions']['get'](_0x46fb12),_0x5e42a1=this['_getAttributeKey'](_0x192810);if(this['_isBlockAttribute'](_0x5e42a1)){for(const _0xe68f1 of _0x4da3f6)_0xe68f1['getCustomProperty']('addHighlight')||(_0x26a3f4['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0xe68f1),_0x26a3f4['writer']['removeAttribute']('data-suggestion',_0xe68f1),_0x26a3f4['writer']['removeAttribute']('data-author-id',_0xe68f1),_0x26a3f4['mapper']['unbindElementFromMarkerName'](_0xe68f1,_0x5e3085['markerName']));}},{'priority':'high'});}),_0x362cb5['model']['document']['registerPostFixer'](_0x214cff=>{let _0x8ae10e=!0x1;const _0x276a82=Array['from'](_0x362cb5['model']['document']['differ']['getChangedMarkers']()),_0xb15885=new Set();for(const {name:_0x3cb131,data:_0x306a89}of _0x276a82){const {group:_0x5da814,type:_0x3594cc,subType:_0x39062b,id:_0x3f2444}=this['_splitMarkerName'](_0x3cb131);if('suggestion'!==_0x5da814)continue;const _0x4c08f0=this['_suggestions']['get'](_0x3f2444);if(null!=_0x306a89['newRange']){'formatInline'==_0x3594cc&&(_0x8ae10e=_0x8ae10e||Pt(_0x306a89['newRange'],_0x3cb131,_0x214cff,_0x362cb5['model']['schema']));const _0x2d075e='attribute'==_0x3594cc&&this['_isBlockAttribute'](_0x39062b['split']('|')[0x0]);if(_0x306a89['newRange']['isCollapsed']||'$graveyard'==_0x306a89['newRange']['root']['rootName']||'formatBlock'==_0x3594cc&&!Lt(_0x306a89['newRange'])||_0x2d075e&&!Lt(_0x306a89['newRange'])||'deletion'==_0x3594cc&&!Jt(_0x306a89['newRange']))_0x214cff['removeMarker'](_0x3cb131),_0x8ae10e=!0x0;else{if(!_0x4c08f0||!_0x4c08f0['isInContent'])continue;if(_0x306a89['newRange']&&_0x306a89['oldRange']&&_0x306a89['newRange']['isEqual'](_0x306a89['oldRange']))continue;_0xb15885['add'](_0x4c08f0);}}}return _0xb15885['size']>0x0&&(_0x8ae10e=!!this['_joinWithAdjacentSuggestions'](_0xb15885)||_0x8ae10e),_0x8ae10e;}),_0x362cb5['model']['document']['registerPostFixer'](_0x1f54df=>{let _0x54e01d=!0x1;for(const _0x49c074 of _0x362cb5['model']['document']['differ']['getChanges']())if('insert'==_0x49c074['type'])for(const _0x52cbf1 of this['_suggestions']['values']()){if(_0x52cbf1['isMultiRange']||!_0x52cbf1['isInContent'])continue;const _0x4d582b='formatBlock'==_0x52cbf1['type'],_0x47e225=this['_getAttributeKey'](_0x52cbf1),_0x1ff570=_0x47e225&&this['_isBlockAttribute'](_0x47e225);if(!_0x4d582b&&!_0x1ff570)continue;const _0x5c9c75=_0x52cbf1['getFirstRange']();if(_0x5c9c75['start']['parent']!=_0x5c9c75['end']['parent']&&!_0x5c9c75['end']['isAtEnd']){const _0x17eb9f=_0x362cb5['model']['createPositionAt'](_0x5c9c75['start']['nodeAfter'],'end'),_0x50f655=_0x362cb5['model']['createRange'](_0x5c9c75['start'],_0x17eb9f);_0x1f54df['updateMarker'](_0x52cbf1['getFirstMarker'](),{'range':_0x50f655}),_0x54e01d=!0x0;}}return _0x54e01d;}),_0x362cb5['model']['document']['registerPostFixer'](_0x4072f6=>this['_processAttributeChanges'](_0x4072f6)),_0x362cb5['model']['document']['registerPostFixer'](_0x5040d0=>!_0x5040d0['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x5040d0)),_0x362cb5['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x362cb5['model']['document']['on']('change:data',(_0x531ccc,_0x4d6848)=>{if(!_0x4d6848['isLocal']||_0x4d6848['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x168540=_0x362cb5['model']['document']['differ']['getChanges']();if(0x0==_0x168540['length'])return;const _0x1d2993=[],_0x23b1b2=_0x168540['filter'](_0x44bc72=>'attribute'==_0x44bc72['type']),_0x4747c1=_0x168540['filter'](_0x528cd2=>'insert'==_0x528cd2['type']&&'$text'!=_0x528cd2['name']);for(const _0x57f5db of _0x23b1b2)this['_isRegisteredAttribute'](_0x57f5db['attributeKey'])&&_0x1d2993['push']({'key':_0x57f5db['attributeKey'],'newValue':_0x57f5db['attributeNewValue'],'oldValue':_0x57f5db['attributeOldValue'],'range':Kt(_0x57f5db['range'],_0x362cb5['model'])});for(const _0xa7d2d5 of _0x4747c1){if('rename'!=_0xa7d2d5['action']&&'refresh'!=_0xa7d2d5['action'])continue;const _0x131e28=Ht(_0xa7d2d5['position']['nodeAfter'],_0x362cb5['model']),_0x52c081=_0xa7d2d5['before'];'rename'==_0xa7d2d5['action']&&_0x1d2993['push']({'key':m,'newValue':_0xa7d2d5['name'],'oldValue':_0x52c081['name'],'range':_0x131e28});for(const [_0x246d5d,_0x6d5a1e]of _0x52c081['attributes']){if(!this['_isRegisteredAttribute'](_0x246d5d))continue;const _0x345286=_0xa7d2d5['attributes']['get'](_0x246d5d);_0x6d5a1e!==_0x345286&&_0x1d2993['push']({'key':_0x246d5d,'newValue':_0x345286,'oldValue':_0x6d5a1e,'range':_0x131e28});}for(const [_0x148264,_0xb09300]of _0xa7d2d5['attributes'])this['_isRegisteredAttribute'](_0x148264)&&(_0x52c081['attributes']['has'](_0x148264)||_0x1d2993['push']({'key':_0x148264,'newValue':_0xb09300,'oldValue':null,'range':_0x131e28}));}0x0!=_0x1d2993['length']&&_0x362cb5['model']['enqueueChange'](_0x4d6848,_0xa33701=>{const _0x5376fd=_0x23f17c();for(const {range:_0x487956,key:_0x1cc7e6,oldValue:_0x40d47e,newValue:_0x16b828}of _0x1d2993)this['markAttributeChange'](_0x487956,_0x1cc7e6,_0x40d47e,_0x16b828,{'groupId':_0x5376fd});this['_reduceExistingSuggestions'](_0xa33701,_0x1d2993);});},{'priority':'lowest'}),_0x362cb5['model']['markers']['on']('update:suggestion',(_0x3dce3c,_0xcc8a4d,_0x18f22a)=>{if(null==_0x18f22a){const {id:_0x32c239}=this['_splitMarkerName'](_0xcc8a4d['name']),_0x936c8=this['_suggestions']['get'](_0x32c239);_0x936c8&&_0x936c8['addMarkerName'](_0xcc8a4d['name']);}}),_0x362cb5['model']['document']['on']('change:data',()=>{const _0x2698e6=Array['from'](_0x362cb5['model']['document']['differ']['getChangedMarkers']())['filter'](_0x229e10=>'suggestion'===this['_splitMarkerName'](_0x229e10['name'])['group']);if(0x0===_0x2698e6['length'])return;_0x2698e6['sort']((_0x25d660,_0x4b130e)=>{const _0x266428=_0x25d660['data']['oldRange'],_0x273b07=_0x4b130e['data']['oldRange'];return null===_0x266428&&null===_0x273b07?0x0:null===_0x266428&&null!==_0x273b07?-0x1:null!==_0x266428&&null===_0x273b07?0x1:_0x266428['start']['isBefore'](_0x273b07['start'])?-0x1:0x1;});const _0x31f4a8=new Set(),_0x2adce0=new Set();for(const {name:_0x9afdcc,data:_0x263c03}of _0x2698e6){const {id:_0x4297ee}=this['_splitMarkerName'](_0x9afdcc);if(null===_0x263c03['oldRange']){const _0x1ee89f=this['_handleNewSuggestionMarker'](_0x9afdcc);_0x2adce0['add'](_0x1ee89f);}else{const _0x1474f5=this['_suggestions']['get'](_0x4297ee);null!==_0x263c03['newRange']||_0x1474f5['isInContent']?(_0x31f4a8['add'](_0x1474f5['head']),_0x2adce0['add'](_0x1474f5)):this['_removeSuggestion'](_0x1474f5);}}_0x2adce0['size']>0x0&&this['_refreshSuggestionsChain'](_0x2adce0);for(const _0x4b6b75 of _0x31f4a8)this['fire']('suggestionChanged',_0x4b6b75);}),_0x362cb5['model']['on']('applyOperation',(_0x4ff0bc,_0x4bd9ce)=>{const _0x1cadb6=_0x4bd9ce[0x0];if(!this['_suggestions']['size'])return;if(!_0x1cadb6['isDocumentOperation'])return;if(_0x1cadb6['batch']['isUndo']||!_0x1cadb6['batch']['isLocal'])return;let _0x5cc181,_0x18afa4;switch(_0x1cadb6['type']){case'insert':_0x5cc181=_0x362cb5['model']['createPositionAt'](_0x1cadb6['position']),_0x18afa4=_0x5cc181['getShiftedBy'](_0x1cadb6['howMany']);break;case'split':_0x5cc181=_0x362cb5['model']['createPositionAt'](_0x1cadb6['splitPosition']),_0x18afa4=_0x362cb5['model']['createPositionAt'](_0x1cadb6['moveTargetPosition']);break;case'move':_0x5cc181=_0x362cb5['model']['createPositionAt'](_0x1cadb6['targetPosition']),_0x18afa4=_0x5cc181['getShiftedBy'](_0x1cadb6['howMany']);break;default:return;}const _0x52db36=_0x362cb5['model']['createRange'](_0x5cc181,_0x18afa4);_0x362cb5['model']['change'](()=>{for(const {suggestion:_0x4ebab7,meta:_0x4712b0}of this['_findSuggestions'](_0x52db36)){if(_0x4ebab7['isMultiRange'])continue;if('formatInline'==_0x4ebab7['type'])continue;const _0x456a31=this['_getAttributeKey'](_0x4ebab7);if(_0x456a31&&this['_isBlockAttribute'](_0x456a31)&&'split'!=_0x1cadb6['type'])continue;const _0x5ba830=_0x4ebab7['data']&&_0x4ebab7['data']['multipleBlocks'];('formatBlock'!=_0x4ebab7['type']||'split'==_0x1cadb6['type']&&!_0x5ba830)&&(_0x4712b0['containsRangeInObject']||'insertion'==_0x4ebab7['type']&&_0x4712b0['isOwn']||_0x4ebab7['getFirstRange']()['containsRange'](_0x52db36)&&this['_breakSuggestionMarker'](_0x4ebab7,_0x5cc181,_0x18afa4));}});},{'priority':'lowest'}),_0x362cb5['model']['on']('deleteContent',(_0x88e21c,_0xff24a6)=>{const _0x2a7207=_0xff24a6[0x0],_0x1213fa=_0xff24a6[0x1];if(_0x1213fa&&_0x1213fa['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x2a7207['isCollapsed'])return;const _0xae8d86=_0x362cb5['model']['schema'],{start:_0x13a7ad,end:_0x2202a4}=_0x2a7207['getFirstRange'](),_0x3837fe=_0x13a7ad['nodeAfter']&&_0xae8d86['isLimit'](_0x13a7ad['nodeAfter'])?null:_0xae8d86['getNearestSelectionRange'](_0x13a7ad,'forward'),_0xe62cad=_0x2202a4['nodeBefore']&&_0xae8d86['isLimit'](_0x2202a4['nodeBefore'])?null:_0xae8d86['getNearestSelectionRange'](_0x2202a4,'backward'),_0x5163b0=_0x362cb5['model']['createRange'](_0x3837fe?_0x3837fe['start']:_0x13a7ad,_0xe62cad?_0xe62cad['end']:_0x2202a4);_0x362cb5['model']['change'](_0x3d93d4=>{this['markDeletion'](_0x5163b0);const _0x79f1f1=_0x362cb5['model']['schema']['getNearestSelectionRange'](_0x5163b0['start']);_0x2a7207['is']('documentSelection')?_0x3d93d4['setSelection'](_0x79f1f1):_0x2a7207['setTo'](_0x79f1f1);}),_0x88e21c['stop']();},{'priority':_0x32e621['normal']+0xa}),_0x362cb5['model']['on']('insertContent',(_0x51a5d3,_0x547824)=>{const _0x2f6d5f=_0x547824[_0x547824['length']-0x1];_0x2f6d5f&&_0x2f6d5f['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x362cb5['model']['change'](()=>{let _0x587ee7=_0x362cb5['model']['insertContent'](_0x547824[0x0],_0x547824[0x1],_0x547824[0x2],{'forceDefaultExecution':!0x0});if(!_0x587ee7)return;_0x51a5d3['return']=_0x587ee7['clone']();const _0x330c32=_0x587ee7['end']['nodeBefore'],_0x156e63=_0x362cb5['model']['schema'];_0x330c32&&_0x156e63['isBlock'](_0x330c32)&&!_0x156e63['isObject'](_0x330c32)&&(_0x587ee7=_0x362cb5['model']['createRange'](_0x587ee7['start'],_0x362cb5['model']['createPositionAt'](_0x330c32,'end'))),this['markInsertion'](_0x587ee7);}),_0x51a5d3['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x25ff67=new D(_0x362cb5,this['_suggestions']);_0x362cb5['commands']['add']('acceptSuggestion',_0x25ff67),this['enableCommand']('acceptSuggestion');const _0x1afc7f=new M(_0x362cb5,this['_suggestions']);_0x362cb5['commands']['add']('discardSuggestion',_0x1afc7f),this['enableCommand']('discardSuggestion'),_0x362cb5['commands']['add']('acceptAllSuggestions',new $(_0x362cb5,_0x25ff67,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x362cb5['commands']['add']('discardAllSuggestions',new $(_0x362cb5,_0x1afc7f,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x362cb5['commands']['add']('acceptSelectedSuggestions',new B(_0x362cb5,_0x25ff67,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x362cb5['commands']['add']('discardSelectedSuggestions',new B(_0x362cb5,_0x1afc7f,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x403258=_0x362cb5['plugins']['get']('CommentsRepository');this['listenTo'](_0x403258,'addComment',(_0x5506ea,{threadId:_0x51861f})=>{const _0x4103b4=this['_suggestions']['get'](_0x51861f);_0x4103b4&&_0x4103b4['commentThread']&&0x1===_0x4103b4['commentThread']['length']&&this['_updateSuggestionData'](_0x51861f,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x403258,'removeComment',(_0xa1b874,{threadId:_0x379560})=>{const _0x3d3ca3=this['_suggestions']['get'](_0x379560);_0x3d3ca3&&_0x3d3ca3['commentThread']&&!_0x3d3ca3['commentThread']['length']&&this['_updateSuggestionData'](_0x379560,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x1f0244){const _0x1dd37a=_0x212f84([0x78,0x58,0x70,0x79,0x32,0x4e,0x77,0x48,0x76,0x39,0x34,0x63,0x68,0x35,0x38,0x5a,0x4d,0x69,0x73,0x33,0x67,0x50,0x6a,0x62,0x49,0x43,0x4c,0x36,0x47,0x57,0x56,0x66,0x6e,0x72,0x75,0x6b,0x55,0x6f,0x4a,0x65,0x4f,0x45,0x64,0x52,0x51,0x74,0x41,0x46,0x61,0x6c,0x44,0x30,0x37,0x31,0x42,0x54,0x6d,0x7a,0x53,0x59,0x4b,0x71]),_0x16c442=0x74110ca2,_0x561c5e=0x74166762^_0x16c442,_0x2e1864=window[_0x212f84([0x44,0x61,0x74,0x65])][_0x212f84([0x6e,0x6f,0x77])](),_0x4ec661=_0x1f0244[_0x212f84([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4ed7f4=new window[(_0x212f84([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2eb592=>{_0x4ec661[_0x212f84([0x6f,0x6e,0x63,0x65])](_0x212f84([0x72,0x65,0x61,0x64,0x79]),_0x2eb592);}),_0x3e6353={[_0x212f84([0x6b,0x74,0x79])]:_0x212f84([0x45,0x43]),[_0x212f84([0x75,0x73,0x65])]:_0x212f84([0x73,0x69,0x67]),[_0x212f84([0x63,0x72,0x76])]:_0x212f84([0x50,0x2d,0x32,0x35,0x36]),[_0x212f84([0x78])]:_0x212f84([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]),[_0x212f84([0x79])]:_0x212f84([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]),[_0x212f84([0x61,0x6c,0x67])]:_0x212f84([0x45,0x53,0x32,0x35,0x36])},_0x5084f0=_0x4ec661[_0x212f84([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x212f84([0x67,0x65,0x74])](_0x212f84([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4d9eee(){let _0x578989,_0x4b7d68=null,_0x4b3423=null;try{if(_0x5084f0==_0x212f84([0x47,0x50,0x4c]))return _0x212f84([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x578989=_0x45c86c(),!_0x578989)return _0x212f84([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x578989[_0x212f84([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4b3423=_0xaf3b2f(_0x578989[_0x212f84([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x578989[_0x212f84([0x6a,0x74,0x69])])),await _0x2eb4ac()?_0x583d07()?_0x158094()?_0x212f84([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x310f06()?(_0x578989[_0x212f84([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x212f84([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4b7d68=_0x4f10d1(_0x212f84([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x578989[_0x212f84([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x212f84([0x74,0x72,0x69,0x61,0x6c])&&(_0x4b7d68=_0x4f10d1(_0x212f84([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x25b970()):_0x212f84([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x212f84([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x212f84([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x212f84([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x158094(){const _0x48f2c4=[_0x212f84([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x212f84([0x74,0x72,0x69,0x61,0x6c])][_0x212f84([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x578989[_0x212f84([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2e1864/0x3e8:0xe10*_0x561c5e;return _0x578989[_0x212f84([0x65,0x78,0x70])]<_0x48f2c4;}function _0x583d07(){const _0x1d1ff7=_0x578989[_0x212f84([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1d1ff7)return!0x1;if(_0x1d1ff7[_0x212f84([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x212f84([0x2a])))return!0x0;if(_0x1d1ff7[_0x212f84([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x212f84([0x54,0x43])))return!0x0;if(_0x1d1ff7[_0x212f84([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x212f84([0x52,0x54,0x43]))){if(_0x2fcda2())return!0x0;if(_0x28eedc()||_0x539d58())return!0x0;}return!0x1;}function _0x310f06(){const _0x541dc2=_0x578989[_0x212f84([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x541dc2||0x0==_0x541dc2[_0x212f84([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x45f76c}=new URL(window[_0x212f84([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x541dc2[_0x212f84([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x45f76c))return!0x0;const _0x548e87=_0x45f76c[_0x212f84([0x73,0x70,0x6c,0x69,0x74])](_0x212f84([0x2e]));return _0x541dc2[_0x212f84([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x196d0a=>_0x196d0a[_0x212f84([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x212f84([0x2a])))[_0x212f84([0x6d,0x61,0x70])](_0xccd93f=>_0xccd93f[_0x212f84([0x73,0x70,0x6c,0x69,0x74])](_0x212f84([0x2e])))[_0x212f84([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5dbfa7=>_0x5dbfa7[_0x212f84([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x548e87[_0x212f84([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x212f84([0x6d,0x61,0x70])](_0x14787f=>Array(_0x548e87[_0x212f84([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x14787f[_0x212f84([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x212f84([0x66,0x69,0x6c,0x6c])](_0x14787f[0x0]===_0x212f84([0x2a])?_0x212f84([0x2a]):'')[_0x212f84([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x14787f))[_0x212f84([0x73,0x6f,0x6d,0x65])](_0x3200d7=>_0x548e87[_0x212f84([0x65,0x76,0x65,0x72,0x79])]((_0x2e1a0d,_0xedf465)=>_0x3200d7[_0xedf465]===_0x2e1a0d||_0x3200d7[_0xedf465]===_0x212f84([0x2a])));}function _0x25b970(){return _0x4b7d68&&_0x4b3423?new window[(_0x212f84([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x283e93,_0x2faa26)=>{_0x4b7d68[_0x212f84([0x74,0x68,0x65,0x6e])](_0x283e93,_0x2faa26),_0x4b3423[_0x212f84([0x74,0x68,0x65,0x6e])](_0x58d278=>{_0x58d278!=_0x212f84([0x56,0x61,0x6c,0x69,0x64])&&_0x283e93(_0x58d278);},_0x2faa26);}):_0x4b7d68||_0x4b3423||_0x212f84([0x56,0x61,0x6c,0x69,0x64]);}}function _0xaf3b2f(_0x12fd6c,_0x4edf82){return new window[(_0x212f84([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x45d6fb=>{if(_0x44db0b())return _0x45d6fb(_0x212f84([0x56,0x61,0x6c,0x69,0x64]));_0x1111c3(),_0x4ec661[_0x212f84([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x212f84([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5c9a24=!0x1;const _0x49b985=_0x23f17c();function _0x4df446(_0xcadaf8){return!!_0xcadaf8&&(typeof _0xcadaf8===_0x212f84([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xcadaf8===_0x212f84([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xcadaf8[_0x212f84([0x74,0x68,0x65,0x6e])]===_0x212f84([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xcadaf8[_0x212f84([0x63,0x61,0x74,0x63,0x68])]===_0x212f84([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x57baea(_0x2ce2a7){_0x27e705(_0x2ce2a7)[_0x212f84([0x74,0x68,0x65,0x6e])](_0x134bf2=>{if(!_0x134bf2||_0x134bf2[_0x212f84([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x212f84([0x6f,0x6b]))return _0x212f84([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xd6148c(_0x483c87(_0x49b985+_0x4edf82))!=_0x134bf2[_0x212f84([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x212f84([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x212f84([0x56,0x61,0x6c,0x69,0x64]);})[_0x212f84([0x74,0x68,0x65,0x6e])](_0x5b10fa=>(_0x39be3b(),_0x5b10fa),()=>{const _0x36505e=_0x5d1c7b();return null==_0x36505e?(_0x39be3b(),_0x212f84([0x56,0x61,0x6c,0x69,0x64])):_0x212f84(_0x2e1864-_0x36505e>(0x501d88a2^_0x16c442)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x212f84([0x74,0x68,0x65,0x6e])](_0x45d6fb)[_0x212f84([0x63,0x61,0x74,0x63,0x68])](()=>{_0x45d6fb(_0x212f84([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2e9990=0x7427e222^_0x16c442;function _0x39be3b(){const _0x5b9faa=_0x212f84([0x6c,0x6c,0x63,0x74,0x2d])+_0xd6148c(_0x483c87(_0x12fd6c)),_0x17375c=_0xe9888e(_0xd6148c(window[_0x212f84([0x4d,0x61,0x74,0x68])][_0x212f84([0x63,0x65,0x69,0x6c])](_0x2e1864/_0x2e9990)));window[_0x212f84([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x212f84([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5b9faa,_0x17375c);}function _0x5d1c7b(){const _0x1af0a5=_0x212f84([0x6c,0x6c,0x63,0x74,0x2d])+_0xd6148c(_0x483c87(_0x12fd6c)),_0x5a514b=window[_0x212f84([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x212f84([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1af0a5);return _0x5a514b?window[_0x212f84([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xe9888e(_0x5a514b),0x10)*_0x2e9990:null;}function _0x27e705(_0xd95e1){return new window[(_0x212f84([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3db26d,_0x58ba1e)=>{_0xd95e1[_0x212f84([0x74,0x68,0x65,0x6e])](_0x3db26d,_0x58ba1e),window[_0x212f84([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x58ba1e,0x7410d862^_0x16c442);});}}_0x4ec661[_0x212f84([0x6f,0x6e])](_0x212f84([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x23d176,_0x4ac900)=>{if(_0x4ac900[0x0]!=_0x12fd6c)return _0x45d6fb(_0x212f84([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4ac900[0x1]={..._0x4ac900[0x1],[_0x212f84([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x49b985};},{[_0x212f84([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x212f84([0x68,0x69,0x67,0x68])}),_0x4ec661[_0x212f84([0x6f,0x6e])](_0x212f84([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5754bc=>{_0x4df446(_0x5754bc[_0x212f84([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5c9a24=!0x0,_0x57baea(_0x5754bc[_0x212f84([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x212f84([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x212f84([0x6c,0x6f,0x77])}),_0x4ed7f4[_0x212f84([0x74,0x68,0x65,0x6e])](()=>{_0x5c9a24||_0x45d6fb(_0x212f84([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x44db0b(){return _0x4ec661[_0x212f84([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x212f84([0x76,0x69,0x65,0x77])][_0x212f84([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x212f84([0x61,0x75,0x74,0x6f]);}function _0x1111c3(){_0x4ec661[_0x212f84([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x212f84([0x76,0x69,0x65,0x77])][_0x212f84([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x212f84([0x61,0x75,0x74,0x6f]);}}function _0x4f10d1(_0x242ae2){const _0x1a9b3e=[new window[(_0x212f84([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x15ef53=>setTimeout(_0x15ef53,0x7418326e^_0x16c442)),_0x4ed7f4[_0x212f84([0x74,0x68,0x65,0x6e])](()=>new window[(_0x212f84([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x117a44=>{let _0x3db7c7=0x0;_0x4ec661[_0x212f84([0x6d,0x6f,0x64,0x65,0x6c])][_0x212f84([0x6f,0x6e])](_0x212f84([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x18432a,_0x1e6b4a)=>{_0x1e6b4a[0x0][_0x212f84([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3db7c7++,_0x3db7c7==(0x74110d5a^_0x16c442)&&(_0x117a44(),_0x18432a[_0x212f84([0x6f,0x66,0x66])]());});}))];return window[_0x212f84([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x212f84([0x72,0x61,0x63,0x65])](_0x1a9b3e)[_0x212f84([0x74,0x68,0x65,0x6e])](()=>_0x242ae2);}async function _0x346e82(){await _0x4ed7f4,_0x4ec661[_0x212f84([0x6d,0x6f,0x64,0x65,0x6c])][_0x212f84([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x55ae8d,_0x4ec661[_0x212f84([0x6d,0x6f,0x64,0x65,0x6c])][_0x212f84([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x55ae8d,_0x4ec661[_0x212f84([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x212f84([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2fcda2(){return _0x42297b(_0x212f84([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4fb200(_0x212f84([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x212f84([0x73,0x74,0x61,0x74,0x65])]==_0x212f84([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x28eedc(){return _0x42297b(_0x212f84([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 _0x539d58(){return _0x42297b(_0x212f84([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x3294d2(_0x1e1518){const _0x1baff6=_0x17b50e();_0x4ec661[_0x1baff6]=_0x212f84([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1e1518,_0x1e1518!=_0x212f84([0x56,0x61,0x6c,0x69,0x64])&&_0x346e82();}function _0x17b50e(){const _0x5a2200=window[_0x212f84([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x212f84([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x212f84([0x6e,0x6f,0x77])]())[_0x212f84([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x212f84([0x2e]),'');let _0x18c139=_0x212f84([0x78]);for(let _0x262a1d=0x0;_0x262a1d<_0x5a2200[_0x212f84([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x262a1d+=0x2){let _0x29584f=window[_0x212f84([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5a2200[_0x212f84([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x262a1d,_0x262a1d+0x2));_0x29584f>=_0x1dd37a[_0x212f84([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x29584f-=_0x1dd37a[_0x212f84([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x18c139+=_0x1dd37a[_0x29584f];}return _0x18c139;}function _0x45c86c(){const _0x66322e=_0x5084f0[_0x212f84([0x73,0x70,0x6c,0x69,0x74])](_0x212f84([0x2e]));if(0x3!=_0x66322e[_0x212f84([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4e4249(_0x66322e[0x1]);function _0x4e4249(_0x2863d8){const _0x36764f=_0x22c954(_0x2863d8);return _0x36764f&&_0x4823c8()?_0x36764f:null;function _0x4823c8(){const _0x2aa529=_0x36764f[_0x212f84([0x6a,0x74,0x69])],_0x42e238=window[_0x212f84([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2aa529[_0x212f84([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2aa529[_0x212f84([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2a3d2d={..._0x36764f,[_0x212f84([0x6a,0x74,0x69])]:_0x2aa529[_0x212f84([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2aa529[_0x212f84([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2a3d2d[_0x212f84([0x76,0x63])],_0x483c87(_0x2a3d2d)==_0x42e238;}}}async function _0x2eb4ac(){let _0xa377b7=!0x0;try{const _0x38afe4=_0x5084f0[_0x212f84([0x73,0x70,0x6c,0x69,0x74])](_0x212f84([0x2e])),[_0x99f6e5,_0x424349,_0x593ca4]=_0x38afe4;return _0x548183(_0x99f6e5),await _0x4723c7(_0x99f6e5,_0x424349,_0x593ca4),_0xa377b7;}catch{return!0x1;}function _0x548183(_0x3b1626){const _0x434972=_0x22c954(_0x3b1626);_0x434972&&_0x434972[_0x212f84([0x61,0x6c,0x67])]==_0x212f84([0x45,0x53,0x32,0x35,0x36])||(_0xa377b7=!0x1);}async function _0x4723c7(_0x620557,_0x4986f0,_0x119887){const _0x5b8cce=window[_0x212f84([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x212f84([0x66,0x72,0x6f,0x6d])](_0x5580dc(_0x119887),_0x122c4d=>_0x122c4d[_0x212f84([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x52ef99=new window[(_0x212f84([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x212f84([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x620557+_0x212f84([0x2e])+_0x4986f0),_0xac464c=window[_0x212f84([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x212f84([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xac464c)return;const _0x359b9f=await _0xac464c[_0x212f84([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x212f84([0x6a,0x77,0x6b]),_0x3e6353,{[_0x212f84([0x6e,0x61,0x6d,0x65])]:_0x212f84([0x45,0x43,0x44,0x53,0x41]),[_0x212f84([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x212f84([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x212f84([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xac464c[_0x212f84([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x212f84([0x6e,0x61,0x6d,0x65])]:_0x212f84([0x45,0x43,0x44,0x53,0x41]),[_0x212f84([0x68,0x61,0x73,0x68])]:{[_0x212f84([0x6e,0x61,0x6d,0x65])]:_0x212f84([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x359b9f,_0x5b8cce,_0x52ef99)||(_0xa377b7=!0x1);}}function _0x22c954(_0x22599f){return _0x22599f[_0x212f84([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x212f84([0x65,0x79]))?JSON[_0x212f84([0x70,0x61,0x72,0x73,0x65])](_0x5580dc(_0x22599f)):null;}function _0x5580dc(_0x1ec3b9){return window[_0x212f84([0x61,0x74,0x6f,0x62])](_0x1ec3b9[_0x212f84([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x212f84([0x2b]))[_0x212f84([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x212f84([0x2f])));}function _0x483c87(_0x4043e1){let _0x3ef695=0x1505;function _0xfb4916(_0x2463d1){for(let _0x261cbf=0x0;_0x261cbf<_0x2463d1[_0x212f84([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x261cbf++){const _0x48c4d9=_0x2463d1[_0x212f84([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x261cbf);_0x3ef695=(_0x3ef695<<0x5)+_0x3ef695+_0x48c4d9,_0x3ef695&=_0x3ef695;}}function _0x54b07a(_0x5e60c1){Array[_0x212f84([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5e60c1)?_0x5e60c1[_0x212f84([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x54b07a):_0x5e60c1&&typeof _0x5e60c1==_0x212f84([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x212f84([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5e60c1)[_0x212f84([0x73,0x6f,0x72,0x74])]()[_0x212f84([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4ec0d2,_0xc14209])=>{_0xfb4916(_0x4ec0d2),_0x54b07a(_0xc14209);}):_0xfb4916(window[_0x212f84([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5e60c1));}return _0x54b07a(_0x4043e1),_0x3ef695>>>0x0;}function _0xd6148c(_0x189759){return _0x189759[_0x212f84([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x212f84([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x212f84([0x30]));}function _0xe9888e(_0x53cc05){return _0x53cc05[_0x212f84([0x73,0x70,0x6c,0x69,0x74])]('')[_0x212f84([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x212f84([0x6a,0x6f,0x69,0x6e])]('');}function _0x42297b(_0x4134c7){return _0x4ec661[_0x212f84([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x212f84([0x68,0x61,0x73])](_0x4134c7);}function _0x4fb200(_0x3cc65d){return _0x4ec661[_0x212f84([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x212f84([0x67,0x65,0x74])](_0x3cc65d);}function _0x55ae8d(){}function _0x212f84(_0x2c4a74){return _0x2c4a74['map'](_0x2e6960=>String['fromCharCode'](_0x2e6960))['join']('');}_0x3294d2(await _0x4d9eee());}(this);}set['adapter'](_0xadde76){if(this['_adapter'])throw new _0x2b8fde('track-changes-adapter-already-set',this);this['_adapter']=_0xadde76;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x55d40b=!0x1,toJSON:_0x3b6904=!0x1}={}){const _0x1d4acf=[];for(const _0x597dec of this['_suggestions']['values']())_0x55d40b&&!_0x597dec['isInContent']||_0x1d4acf['push'](_0x597dec);return _0x3b6904?_0x1d4acf['map'](_0x44826a=>_0x44826a['toJSON']()):_0x1d4acf;}['getSuggestion'](_0x1cf85d){const _0x44f9a8=this['_suggestions']['get'](_0x1cf85d);if(!_0x44f9a8)throw new _0x2b8fde('track-changes-suggestion-not-found',this);return _0x44f9a8;}['hasSuggestion'](_0x377656){return this['_suggestions']['has'](_0x377656);}['addSuggestionData'](_0x45cff8){const {authorId:_0x2e5ec7,id:_0x150945,originalSuggestionId:_0xe9c27,attributes:_0x3875ec}=_0x45cff8,[_0x1e2f91,_0x3b062e]=_0x45cff8['type']['split'](':'),_0x2df808=this['_suggestions']['get'](_0x150945)||this['_createSuggestion'](_0x1e2f91,_0x3b062e,_0x150945,_0x2e5ec7,_0x3875ec,_0xe9c27);if(this['_addThreadToSuggestion'](_0x2df808),this['_checkSuggestionCorrectness'](_0x2df808,_0x1e2f91,_0x3b062e||null,_0x2e5ec7),_0x2df808['createdAt']=_0x45cff8['createdAt'],_0x2df808['_isDataLoaded']=!0x0,_0x3875ec&&_0x3875ec['@external']){const _0x162060=_0x3875ec['@external'],_0x553174=this['_getExternalAuthor'](_0x162060['authorName']);_0x2df808['authoredAt']=_0x162060['createdAt'],_0x2df808['author']=_0x553174,_0x2df808['isExternal']=!0x0;}else _0x2df808['authoredAt']=_0x45cff8['createdAt'];switch(_0x45cff8['data']&&(_0x2df808['data']=_0x45cff8['data']),_0x45cff8['attributes']&&(_0x2df808['attributes']=_0x45cff8['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x2df808['_saved']=!0x0),this['_suggestionState']['get'](_0x2df808)){case'notReady':this['_suggestionState']['set'](_0x2df808,'dataReady');break;case'markerReady':_0x2df808['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x2df808])),this['_refreshSuggestionsChain'](new Set([_0x2df808])),this['_suggestionState']['set'](_0x2df808,'ready'),this['fire']('suggestionLoaded',_0x2df808)):this['_suggestionState']['set'](_0x2df808,'removed');}return _0x2df808;}['acceptSuggestion'](_0x480e7f){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xd3f3a6 of _0x480e7f['getAllAdjacentSuggestions']())_0xd3f3a6['accept']();});});}['discardSuggestion'](_0x29397b){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2d2d50 of _0x29397b['getAllAdjacentSuggestions']())_0x2d2d50['discard']();});});}['enableCommand'](_0x285b7e,_0x5df176){const _0x4aa8cc=this['editor']['commands']['get'](_0x285b7e);if(!_0x4aa8cc)throw new _0x2b8fde('track-changes-command-not-found',this,{'commandName':_0x285b7e});if(this['_enabledCommands']['has'](_0x4aa8cc))throw new _0x2b8fde('track-changes-enable-command-twice',this,{'commandName':_0x285b7e});this['_enabledCommands']['add'](_0x4aa8cc),_0x5df176&&_0x4aa8cc['on']('execute',(_0x246775,_0x19efb1)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x19efb1['length']>0x0&&_0x19efb1[_0x19efb1['length']-0x1]&&_0x19efb1[_0x19efb1['length']-0x1]['forceDefaultExecution']?_0x19efb1['pop']():(_0x246775['return']=_0x5df176((..._0x2b7808)=>_0x4aa8cc['execute'](..._0x2b7808,{'forceDefaultExecution':!0x0}),..._0x19efb1),_0x246775['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0xc32941){let _0x5e740d,_0x307a11;const _0x224b90=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x5e740d=_0xc32941();}catch(_0xe1058e){_0x307a11=_0xe1058e;}return _0x224b90||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x307a11&&_0x2b8fde['rethrowUnexpectedError'](_0x307a11,this),_0x5e740d;}['markInsertion'](_0x119e7f,_0xc2edcb=null,_0x547df4={}){if(_0x119e7f['isCollapsed'])return null;const _0x5c8549=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x547df4['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x34ff06,meta:_0x26764a}of this['_findSuggestions'](_0x119e7f,'insertion'))if(_0x26764a['isOwn']){if(!_0x26764a['isNextTo']){if(_0x26764a['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Wt(_0x34ff06,_0x547df4))continue;return _0x34ff06;}if(Wt(_0x34ff06,_0x547df4))return _0x34ff06;this['_breakSuggestionMarker'](_0x34ff06,_0x119e7f['start'],_0x119e7f['end']);break;}if(_0xc2edcb==_0x34ff06['subType']&&Wt(_0x34ff06,_0x547df4)){const _0x9a3be3=_0x34ff06['getFirstRange']();return _0x9a3be3['start']['isEqual'](_0x119e7f['end'])?this['_setSuggestionRange'](_0x34ff06,this['_model']['createRange'](_0x119e7f['start'],_0x9a3be3['end'])):this['_setSuggestionRange'](_0x34ff06,this['_model']['createRange'](_0x9a3be3['start'],_0x119e7f['end'])),_0x34ff06;}}const _0x101155=_0x23f17c(),_0x349df4=_0x5c8549['id'],_0x24aa37=_0xc2edcb?'insertion:'+_0xc2edcb:'insertion',_0x2944d6=this['_setSuggestionData']({'id':_0x101155,'type':_0x24aa37,'createdAt':new Date(),'authorId':_0x349df4,'attributes':_0x547df4});return this['_addSuggestionMarker'](_0x24aa37,_0x101155,_0x349df4,_0x119e7f),_0x2944d6;}['markMultiRangeInsertion'](_0x2fd15d,_0xe1277a='multi',_0x7590f1={}){const _0x4f26f2=this['editor']['plugins']['get']('Users')['me'],_0x4572cd=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0xe1277a,'join');this['_trackingSessionId']&&(_0x7590f1['trackingSessionId']=this['_trackingSessionId']);for(const _0x217464 of this['getSuggestions']())if(_0x217464['author']['id']==_0x4f26f2['id']&&'insertion'==_0x217464['type']&&_0x217464['subType']==_0xe1277a&&Wt(_0x217464,_0x7590f1)&&(_0x4572cd(_0x217464['getRanges'](),_0x2fd15d)||_0x4572cd(_0x2fd15d,_0x217464['getRanges']()))){for(const _0x273f1b of _0x2fd15d)_0x217464['addRange'](_0x273f1b);return _0x217464;}for(const {suggestion:_0x56e1e7,meta:_0x2ca740}of this['_findSuggestions'](_0x2fd15d,'insertion')){if(!_0x2ca740['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x2ca740['containsRangeInObject'])continue;if(!Wt(_0x56e1e7,_0x7590f1))continue;let _0x533ea8=!0x0;for(const _0x3a1b69 of _0x56e1e7['getRanges']())for(const _0x249c8f of _0x2fd15d)if(!_0x3a1b69['containsRange'](_0x249c8f)){_0x533ea8=!0x1;break;}if(_0x533ea8)return _0x56e1e7;}const _0x4ff06e=_0x23f17c(),_0x5dcee9=_0x4f26f2['id'],_0x3f9f97='insertion:'+_0xe1277a,_0x3f4dc6=this['_setSuggestionData']({'id':_0x4ff06e,'type':_0x3f9f97,'createdAt':new Date(),'authorId':_0x5dcee9,'attributes':_0x7590f1});for(const _0x3b9765 of _0x2fd15d)this['_addSuggestionMarker'](_0x3f9f97,_0x4ff06e,_0x5dcee9,_0x3b9765,T['getMultiRangeId']());return _0x3f4dc6;}['markInlineFormat'](_0x1e3aeb,_0x52449b,_0x2e3de9=null,_0xd5e87b={}){if(_0x2e3de9=_0x2e3de9||Gt(_0x52449b),_0x1e3aeb['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0xd5e87b['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5f09d5=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2e3de9,'accept');return this['forceDefaultExecution'](()=>_0x5f09d5([_0x1e3aeb],_0x52449b,_0xd5e87b)),null;}const _0x503aed=this['editor']['plugins']['get']('Users')['me'],_0x1a3f53=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x57fb73,meta:_0xb7ff02}of this['_findSuggestions'](_0x1e3aeb,'insertion'))_0xb7ff02['isOwn']&&!_0xb7ff02['isInsideObject']&&_0x1a3f53['push'](..._0x57fb73['getRanges']());}const _0x3a80c5=function(_0x51aa5a,_0x36f36d){const _0x544fdf=[];for(const _0x910b63 of _0x36f36d){const _0x348789=_0x51aa5a['getIntersection'](_0x910b63);_0x348789&&_0x544fdf['push'](_0x348789);}return _0x544fdf;}(_0x1e3aeb,_0x1a3f53),_0x3a828e=function(_0x4da831,_0x3fdca3){const _0x5eee45=[_0x4da831];for(const _0x1f3a7c of _0x3fdca3){let _0x181b91=0x0;for(;_0x181b91<_0x5eee45['length'];){const _0x61bf60=_0x5eee45[_0x181b91]['getDifference'](_0x1f3a7c);_0x5eee45['splice'](_0x181b91,0x1,..._0x61bf60),_0x181b91+=_0x61bf60['length'];}}return _0x5eee45;}(_0x1e3aeb,_0x1a3f53);_0x3a80c5['length']&&this['_model']['change'](()=>{for(const _0x45047d of _0x3a80c5){const _0x20d1aa=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2e3de9,'accept');this['forceDefaultExecution'](()=>_0x20d1aa([_0x45047d],_0x52449b,_0xd5e87b));}});for(const _0x2eb94e of _0x3a828e){let _0x4be825=null,_0x3a01c8=_0x2eb94e['start'],_0x23b541=_0x2eb94e['end'];for(const {suggestion:_0x9f5285,meta:_0x25ca09}of this['_findSuggestions'](_0x2eb94e,'formatInline')){if(!_0x25ca09['isOwn'])continue;if(_0x9f5285['subType']!=_0x2e3de9)continue;if(!Wt(_0x9f5285,_0xd5e87b))continue;const _0x58372c=_0x9f5285['getFirstRange']();if(_0x58372c['containsRange'](_0x2eb94e,!0x0))return null;_0x3a01c8=_0x3a01c8['isBefore'](_0x58372c['start'])?_0x3a01c8:_0x58372c['start'],_0x23b541=_0x23b541['isAfter'](_0x58372c['end'])?_0x23b541:_0x58372c['end'],_0x4be825?_0x58372c['start']['isBefore'](_0x4be825['getFirstRange']()['start'])?(_0x4be825['removeMarkers'](),_0x4be825=_0x9f5285):_0x9f5285['removeMarkers']():_0x4be825=_0x9f5285;}const _0x270df3=this['_model']['createRange'](_0x3a01c8,_0x23b541);if(_0x4be825)this['_setSuggestionRange'](_0x4be825,_0x270df3);else{const _0x22ff0c=_0x23f17c(),_0x291f9b=_0x503aed['id'];this['_setSuggestionData']({'id':_0x22ff0c,'type':'formatInline:'+_0x2e3de9,'data':_0x52449b,'createdAt':new Date(),'authorId':_0x291f9b,'attributes':_0xd5e87b}),this['_addSuggestionMarker']('formatInline:'+_0x2e3de9,_0x22ff0c,_0x291f9b,_0x270df3);}}return null;}['markBlockFormat'](_0x384ebd,_0xa78a45,_0x42c74e=[],_0x3f7e21=null,_0x16564a={}){_0xa78a45['formatGroupId']||(_0xa78a45['formatGroupId']=_0xa78a45['commandName']),_0xa78a45['multipleBlocks']=_0x384ebd['is']('range'),_0x3f7e21=_0x3f7e21||Gt(_0xa78a45);const _0x15b95d=_0x42c74e['map'](_0x153189=>Ht(_0x153189,this['_model'])),_0x593ead=_0x384ebd['is']('range')?_0x384ebd:Ht(_0x384ebd,this['_model']);if(this['_trackingSessionId']&&(_0x16564a['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x48abb8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3f7e21,'accept');return this['forceDefaultExecution'](()=>_0x48abb8([_0x593ead],_0xa78a45,_0x16564a)),null;}_0x15b95d['push'](_0x593ead);let _0x2539b1=!0x0;for(const _0x41c750 of _0x15b95d)if(!this['_rangeIsInLocalUserInsertion'](_0x41c750)){_0x2539b1=!0x1;break;}if(_0x2539b1&&'always'!==this['_trackFormatChanges']){const _0x65c9ad=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3f7e21,'accept');return this['forceDefaultExecution'](()=>_0x65c9ad([_0x593ead],_0xa78a45,_0x16564a)),null;}let _0x4b7271=null,_0x110eb7=_0x593ead['start'],_0x247d32=_0x593ead['end'];for(const {suggestion:_0x1cf15f,meta:_0x1e6e86}of this['_findSuggestions'](_0x593ead,'formatBlock')){if(!_0x1e6e86['isOwn'])continue;if(_0x1e6e86['isNextTo']||_0x1e6e86['containsRangeInObject']||_0x1e6e86['isInsideObject'])continue;if(_0x1cf15f['data']['formatGroupId']!=_0xa78a45['formatGroupId'])continue;if(!Wt(_0x1cf15f,_0x16564a))continue;const _0x8b93b=_0x1cf15f['getFirstRange']();if(_0x1cf15f['subType']==_0x3f7e21){if(_0x8b93b['containsRange'](_0x593ead,!0x0))return null;_0x110eb7=_0x110eb7['isBefore'](_0x8b93b['start'])?_0x110eb7:_0x8b93b['start'],_0x247d32=_0x247d32['isAfter'](_0x8b93b['end'])?_0x247d32:_0x8b93b['end'],_0x4b7271?_0x8b93b['start']['isBefore'](_0x4b7271['getFirstRange']()['start'])?(_0x4b7271['removeMarkers'](),_0x4b7271=_0x1cf15f):_0x1cf15f['removeMarkers']():_0x4b7271=_0x1cf15f;}else{const _0x20653d=_0x593ead['getIntersection'](_0x8b93b);this['_cutOutSuggestionMarker'](_0x1cf15f,_0x20653d);}}const _0x1796e1=this['editor']['plugins']['get']('Users')['me'],_0x34c190=_0x23f17c(),_0x54e825=_0x1796e1['id'];if(_0x4b7271)return this['_setSuggestionRange'](_0x4b7271,this['_model']['createRange'](_0x110eb7,_0x247d32)),_0x4b7271;{const _0x56a528=this['_setSuggestionData']({'id':_0x34c190,'type':'formatBlock:'+_0x3f7e21,'data':_0xa78a45,'createdAt':new Date(),'authorId':_0x54e825,'attributes':_0x16564a});return this['_addSuggestionMarker']('formatBlock:'+_0x3f7e21,_0x34c190,_0x54e825,this['_model']['createRange'](_0x110eb7,_0x247d32)),_0x56a528;}}['markMultiRangeBlockFormat'](_0x191a4b,_0x365bb6,_0xb96e65=[],_0x5b6fa2=null,_0x585f4a={}){_0x365bb6['formatGroupId']||(_0x365bb6['formatGroupId']=_0x365bb6['commandName']);const _0x2e79f9=_0x191a4b[0x0];_0x365bb6['multipleBlocks']=_0x2e79f9['is']('range'),_0x5b6fa2=_0x5b6fa2||Gt(_0x365bb6);const _0x54475b=_0xb96e65['map'](_0x1527aa=>Ht(_0x1527aa,this['_model'])),_0x11189f=_0x2e79f9['is']('range')?_0x191a4b:_0x191a4b['map'](_0x4521b8=>Ht(_0x4521b8,this['_model']));if(this['_trackingSessionId']&&(_0x585f4a['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x54778c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5b6fa2,'accept');return this['forceDefaultExecution'](()=>_0x54778c(_0x11189f,_0x365bb6,_0x585f4a)),null;}_0x54475b['push'](..._0x11189f);let _0x26fb4b=!0x0;for(const _0x2e3261 of _0x54475b)if(!this['_rangeIsInLocalUserInsertion'](_0x2e3261)){_0x26fb4b=!0x1;break;}if(_0x26fb4b&&'always'!==this['_trackFormatChanges']){const _0x30eed8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5b6fa2,'accept');return this['forceDefaultExecution'](()=>_0x30eed8(_0x11189f,_0x365bb6,_0x585f4a)),null;}const _0x5e2fc5=this['editor']['plugins']['get']('Users')['me'];for(const _0x812fb7 of this['getSuggestions']()){const _0x45a318=_0x812fb7['data'];if(_0x812fb7['author']['id']!=_0x5e2fc5['id'])continue;if('formatBlock'!=_0x812fb7['type']||_0x45a318['formatGroupId']!=_0x365bb6['formatGroupId'])continue;if(!Wt(_0x812fb7,_0x585f4a))continue;const _0x401dcb=_0x812fb7['subType']==_0x5b6fa2;for(let _0x3bbb2b=0x0;_0x3bbb2b<_0x11189f['length'];_0x3bbb2b++){const _0x5be6f7=_0x11189f[_0x3bbb2b];for(const _0x16c0f1 of _0x812fb7['getMarkers']()){const _0xa25fd9=_0x16c0f1['getRange']();if(_0x5be6f7['isEqual'](_0xa25fd9)){_0x401dcb?(_0x11189f['splice'](_0x3bbb2b,0x1),_0x3bbb2b--):_0x812fb7['removeMarker'](_0x16c0f1['name']);break;}}}}if(0x0==_0x11189f['length'])return null;const _0x503764=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5b6fa2,'join');for(const _0x3964fe of this['getSuggestions']()){const _0x39be41=_0x3964fe['data'];if(_0x3964fe['author']['id']==_0x5e2fc5['id']&&('formatBlock'==_0x3964fe['type']&&_0x39be41['formatGroupId']==_0x365bb6['formatGroupId']&&_0x3964fe['subType']==_0x5b6fa2&&Wt(_0x3964fe,_0x585f4a)&&(_0x503764(_0x3964fe['getRanges'](),_0x11189f)||_0x503764(_0x11189f,_0x3964fe['getRanges']())))){for(const _0x433b4c of _0x11189f)_0x3964fe['addRange'](_0x433b4c);return _0x3964fe;}}const _0x34092e=_0x23f17c(),_0x246a87=_0x5e2fc5['id'],_0x111b67='formatBlock:'+_0x5b6fa2,_0x575c85=this['_setSuggestionData']({'id':_0x34092e,'type':_0x111b67,'data':_0x365bb6,'createdAt':new Date(),'authorId':_0x246a87,'attributes':_0x585f4a});for(const _0x506674 of _0x11189f)this['_addSuggestionMarker'](_0x111b67,_0x34092e,_0x246a87,_0x506674,T['getMultiRangeId']());return _0x575c85;}['markDeletion'](_0x599cb5,_0x539593=null,_0x5a29d1={}){if(_0x599cb5['isCollapsed'])return null;const _0x209b63=this['editor']['plugins']['get']('Users')['me'],_0x48336a=new _0x5661a3(_0x599cb5['start'],_0x599cb5['end']);this['_trackingSessionId']&&(_0x5a29d1['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x118af5,meta:_0x4f2631}of this['_findSuggestions'](_0x48336a,'insertion'))if(_0x4f2631['isOwn']&&!_0x4f2631['isNextTo']){if(_0x118af5['isMultiRange']){const _0x943b13=_0x118af5['getRanges']()['filter'](_0x52178d=>'$graveyard'!=_0x52178d['root']['rootName']);_0x943b13['every'](_0x3de44e=>_0x48336a['containsRange'](_0x3de44e,!0x0))&&_0x118af5['discard']();if(_0x943b13['some'](_0x21d623=>_0x21d623['containsRange'](_0x48336a,!0x0))){const _0x373692=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x539593,'accept');return this['forceDefaultExecution'](()=>_0x373692([_0x48336a],null,_0x5a29d1)),null;}}else{const _0x2c42f7=_0x48336a['getIntersection'](_0x118af5['getFirstRange']());null!==_0x2c42f7&&_0x118af5['_onDiscard']([_0x2c42f7],null,_0x5a29d1);}}if(_0x48336a['detach'](),_0x48336a['isCollapsed']||'$graveyard'==_0x48336a['root']['rootName'])return null;let _0x758fa8=null,_0x3cbde0=_0x48336a['start'],_0x6b00f1=_0x48336a['end'];const _0x323cbc=this['_findSuggestions'](_0x48336a,'deletion');for(const {suggestion:_0x37cdd9,meta:_0x43501d}of _0x323cbc){const _0x3c88a0=this['_model']['createRange'](_0x3cbde0,_0x6b00f1);if(_0x43501d['isOwn']&&(this['_mergeNestedSuggestions']||!_0x43501d['containsRangeInObject']&&!_0x43501d['isInsideObject'])){if(_0x37cdd9['isMultiRange']){if(!Wt(_0x37cdd9,_0x5a29d1))continue;let _0x3c8d5d=!0x0;for(const _0x4800b7 of _0x37cdd9['getRanges']()){if(_0x4800b7['containsRange'](_0x3c88a0,!0x0))return _0x37cdd9;_0x3c88a0['containsRange'](_0x4800b7)||(_0x3c8d5d=!0x1);}_0x3c8d5d&&_0x37cdd9['discard']();}else{const _0x1eeb52=_0x37cdd9['getFirstRange']();if(_0x1eeb52['containsRange'](_0x3c88a0,!0x0))return _0x37cdd9;if(!Wt(_0x37cdd9,_0x5a29d1)){_0x3c88a0['containsRange'](_0x1eeb52)?_0x37cdd9['removeMarkers']():_0x1eeb52['containsPosition'](_0x3cbde0)?_0x3cbde0=_0x1eeb52['end']:_0x1eeb52['containsPosition'](_0x6b00f1)&&(_0x6b00f1=_0x1eeb52['start']);continue;}_0x3cbde0=_0x3cbde0['isBefore'](_0x1eeb52['start'])?_0x3cbde0:_0x1eeb52['start'],_0x6b00f1=_0x6b00f1['isAfter'](_0x1eeb52['end'])?_0x6b00f1:_0x1eeb52['end'],_0x5a29d1=Object['assign']({},_0x37cdd9['attributes']),_0x758fa8?_0x1eeb52['start']['isBefore'](_0x758fa8['getFirstRange']()['start'])?(_0x758fa8['removeMarkers'](),_0x758fa8=_0x37cdd9):_0x37cdd9['removeMarkers']():_0x758fa8=_0x37cdd9;}}}if(_0x758fa8)return this['_setSuggestionRange'](_0x758fa8,this['_model']['createRange'](_0x3cbde0,_0x6b00f1)),_0x758fa8;{const _0x25d90c=_0x23f17c(),_0x4c2ad8=this['_model']['createRange'](_0x3cbde0,_0x6b00f1),_0x52585c=_0x209b63['id'],_0x419b8c=_0x539593?'deletion:'+_0x539593:'deletion',_0x30c497=this['_setSuggestionData']({'id':_0x25d90c,'type':_0x419b8c,'createdAt':new Date(),'authorId':_0x52585c,'attributes':_0x5a29d1});return this['_addSuggestionMarker'](_0x419b8c,_0x25d90c,_0x52585c,_0x4c2ad8),_0x30c497;}}['markMultiRangeDeletion'](_0x1e3445,_0x3948ad='multi',_0x8c8ad8={}){const _0x419eac=this['editor']['plugins']['get']('Users')['me'],_0x2f5897=_0x1e3445['map'](_0x52a67e=>new _0x5661a3(_0x52a67e['start'],_0x52a67e['end'])),_0x51df1d=new Set();this['_trackingSessionId']&&(_0x8c8ad8['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0xbb677,meta:_0x6d5616}of this['_findSuggestions'](_0x2f5897,'insertion'))_0x6d5616['isOwn']&&!_0x6d5616['isNextTo']&&_0x51df1d['add'](_0xbb677);for(const _0x38cb6b of _0x51df1d)if(_0x38cb6b['isMultiRange']){const _0x59841a=_0x38cb6b['getRanges']();(!_0x38cb6b['attributes']||!_0x38cb6b['attributes']['skipNestingCheck'])&&(_0x59841a['every'](_0x3f10c9=>_0x2f5897['some'](_0x11905a=>_0x11905a['containsRange'](_0x3f10c9,!0x0)))&&_0x38cb6b['discard']());if(_0x2f5897['every'](_0x3434c5=>_0x59841a['some'](_0x4c1ead=>_0x4c1ead['containsRange'](_0x3434c5,!0x0)))){const _0xe90918=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3948ad,'accept');return this['forceDefaultExecution'](()=>_0xe90918(_0x1e3445,null,_0x8c8ad8)),null;}}else{const _0x2c3a1c=_0x38cb6b['getFirstRange']();_0x2f5897['some'](_0x366b4c=>_0x366b4c['containsRange'](_0x2c3a1c,!0x0))&&_0x38cb6b['discard']();if(_0x2f5897['every'](_0x4e5ad4=>_0x2c3a1c['containsRange'](_0x4e5ad4,!0x0))){const _0x58cbe7=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3948ad,'accept');return this['forceDefaultExecution'](()=>_0x58cbe7(_0x2f5897,null,_0x8c8ad8)),null;}}const _0x5e74d5=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3948ad,'join');let _0x2ad532=null;for(const _0x4badfb of this['getSuggestions']())if(_0x4badfb['author']['id']==_0x419eac['id']&&_0x4badfb['isInContent']&&'deletion'==_0x4badfb['type']&&_0x4badfb['subType']==_0x3948ad&&Wt(_0x4badfb,_0x8c8ad8)&&(_0x5e74d5(_0x4badfb['getRanges'](),_0x2f5897)||_0x5e74d5(_0x2f5897,_0x4badfb['getRanges']()))){if(_0x2ad532){if(_0x4badfb['commentThread']&&_0x4badfb['commentThread']['length'])continue;for(const _0x442c6e of _0x4badfb['getRanges']())_0x2ad532['isIntersectingWithRange'](_0x442c6e)||_0x2ad532['addRange'](_0x442c6e);_0x4badfb['removeMarkers']();}else{_0x2ad532=_0x4badfb;for(const _0x520042 of _0x2f5897)_0x4badfb['isIntersectingWithRange'](_0x520042)||_0x4badfb['addRange'](_0x520042);}}if(_0x2ad532)return _0x2ad532;_0x51df1d['clear']();for(const {suggestion:_0x470c8f,meta:_0x59f7af}of this['_findSuggestions'](_0x2f5897,'deletion'))_0x59f7af['isOwn']&&(this['_mergeNestedSuggestions']||!_0x59f7af['containsRangeInObject']&&!_0x59f7af['isInsideObject'])&&Wt(_0x470c8f,_0x8c8ad8)&&_0x51df1d['add'](_0x470c8f);for(const _0x226776 of _0x51df1d){const _0x4795c3=_0x226776['getRanges']();if(!_0x8c8ad8||!_0x8c8ad8['skipNestingCheck']){if(_0x2f5897['every'](_0x2b380c=>_0x4795c3['some'](_0x33a5d3=>_0x33a5d3['containsRange'](_0x2b380c,!0x0))))return _0x226776;}(!_0x226776['attributes']||!_0x226776['attributes']['skipNestingCheck'])&&(_0x4795c3['every'](_0x22e2a3=>_0x2f5897['some'](_0x24d841=>_0x24d841['containsRange'](_0x22e2a3,!0x0)))&&_0x226776['discard']());}const _0x59087e=_0x23f17c(),_0x4fa8bc=_0x419eac['id'],_0x2136df='deletion:'+_0x3948ad,_0x34aebd=this['_setSuggestionData']({'id':_0x59087e,'type':_0x2136df,'createdAt':new Date(),'authorId':_0x4fa8bc,'attributes':_0x8c8ad8});for(const _0x496871 of _0x2f5897)_0x496871['detach'](),_0x496871['isCollapsed']||'$graveyard'==_0x496871['root']['rootName']||this['_addSuggestionMarker'](_0x2136df,_0x59087e,_0x4fa8bc,_0x496871,T['getMultiRangeId']());return _0x34aebd;}['markAttributeChange'](_0x3a4b28,_0x9fbfec,_0x56e007,_0x1115bf,_0x296b03){if(_0x3a4b28['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x57e8a3=this['editor']['plugins']['get']('Users')['me']['id'],_0x15aaee=Array['from'](this['_suggestions']['values']())['filter'](_0x148d7e=>'attribute'==_0x148d7e['type']&&_0x148d7e['data']['key']==_0x9fbfec&&_0x148d7e['isIntersectingWithRange'](_0x3a4b28));if(this['_trackingSessionId']&&(_0x296b03['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x4813b8=this['_findSuggestions'](_0x3a4b28,'insertion')['filter'](({meta:_0x28189f})=>_0x28189f['isOwn']&&!_0x28189f['isInsideObject']&&!_0x28189f['isNextTo'])['map'](({suggestion:_0x2d964d})=>_0x2d964d);_0x15aaee['unshift'](..._0x4813b8);}const _0x336bf3=new Map([[_0x3a4b28,_0x56e007]]);for(const _0x201e87 of _0x15aaee){const _0x29487b='attribute'==_0x201e87['type']?_0x201e87['data']['oldValue']:void 0x0,_0xc1164d=_0x201e87['getFirstRange'](),_0x37e73d=Array['from'](_0x336bf3['keys']())['find'](_0x458bd1=>_0x458bd1['isIntersecting'](_0xc1164d));if(!_0x37e73d)continue;const _0x566ec6=_0x37e73d['getDifference'](_0xc1164d);this['_isBlockAttribute'](_0x9fbfec)&&'insertion'==_0x201e87['type']&&0x0!=_0x566ec6['length']||(_0x336bf3['delete'](_0x37e73d),_0x566ec6['forEach'](_0x5de2bb=>{_0x336bf3['set'](_0x5de2bb,_0x56e007);}),'insertion'!=_0x201e87['type']&&_0x29487b!=_0x1115bf&&_0x336bf3['set'](_0x37e73d['getIntersection'](_0xc1164d),_0x29487b));}const _0x167232=[];for(const [_0x46bad0,_0x27203f]of _0x336bf3){const _0xfc2b2f=_0x23f17c(),_0x3e026d={'key':_0x9fbfec,'oldValue':_0x27203f,'newValue':_0x1115bf};_0x9fbfec['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':_0x9fbfec});const _0x4135a0=('attribute:'+(_0x9fbfec+'|'+Gt({'newValue':_0x1115bf})))['substring'](0x0,0x3c),_0x254280=this['_setSuggestionData']({'id':_0xfc2b2f,'type':_0x4135a0,'data':_0x3e026d,'createdAt':new Date(),'authorId':_0x57e8a3,'attributes':_0x296b03});_0x167232['push'](_0x254280),this['_addSuggestionMarker'](_0x4135a0,_0xfc2b2f,_0x57e8a3,_0x46bad0);}return _0x167232;}['enableDefaultAttributesIntegration'](_0x33176f){this['enableCommand'](_0x33176f,(_0x34621b,..._0x194d32)=>{this['_recordAttributeChanges'](()=>{_0x34621b(..._0x194d32);});});}['registerBlockAttribute'](_0x2dc23f){this['_blockAttributeKeys']['add'](_0x2dc23f);}['registerInlineAttribute'](_0x4249ea){this['_inlineAttributeKeys']['add'](_0x4249ea);}['startTrackingSession'](_0x2869de){return this['_trackingSessionId']=void 0x0!==_0x2869de?_0x2869de:_0x23f17c(),this['_trackingSessionId'];}['_getAttributeKey'](_0x40e08a){return'attribute'==_0x40e08a['type']?_0x40e08a['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x2ec118,_0x21d2e2){const _0x7ca5ef=_0x2ec118['getFirstMarker']();this['_model']['change'](_0x3cdba2=>{_0x3cdba2['updateMarker'](_0x7ca5ef,{'range':_0x21d2e2});});}['_addThreadToSuggestion'](_0x122a2c){const _0x3d4972=_0x122a2c['id'],_0x2e392e=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x3d4972)||this['_commentsRepository']['addCommentThread']({'channelId':_0x2e392e,'threadId':_0x3d4972,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x2916b6=this['_commentsRepository']['getCommentThread'](_0x3d4972);_0x2916b6['unbind']('isRemovable'),_0x2916b6['isRemovable']=!0x1,_0x122a2c['commentThread']=_0x2916b6;}['_checkSuggestionCorrectness'](_0x30935e,_0x213cbf,_0x555df4,_0x3b0c04){if(_0x30935e['type']!=_0x213cbf||_0x30935e['subType']!=_0x555df4||_0x30935e['creator']['id']!=_0x3b0c04)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x2b8fde('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3f4788,_0x57e350){const _0x41f84d=_0x3f4788['getFirstRange']();if(_0x57e350['isEqual'](_0x41f84d))_0x3f4788['removeMarkers']();else{if(_0x41f84d['containsRange'](_0x57e350)){const _0x36a0b6=this['_model']['createPositionAt'](_0x57e350['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3f4788,this['_model']['createRange'](_0x41f84d['start'],_0x36a0b6));const _0x4873b1=_0x23f17c(),_0x2a4dc6=_0x3f4788['creator']['id'],_0x527997=_0x3f4788['type']+':'+_0x3f4788['subType'];this['_setSuggestionData']({'id':_0x4873b1,'type':_0x527997,'createdAt':new Date(),'authorId':_0x2a4dc6,'data':_0x3f4788['data'],'attributes':_0x3f4788['attributes']});const _0x3bc191=this['_model']['createPositionAt'](_0x57e350['end']['parent'],'after'),_0x94b113=this['_model']['createRange'](_0x3bc191,_0x41f84d['end']);this['_addSuggestionMarker'](_0x527997,_0x4873b1,_0x2a4dc6,_0x94b113);}else{if(_0x41f84d['containsPosition'](_0x57e350['start'])){const _0x1fa7f9=this['_model']['createPositionAt'](_0x57e350['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3f4788,this['_model']['createRange'](_0x41f84d['start'],_0x1fa7f9));}else{const _0x4816b2=this['_model']['createPositionAt'](_0x57e350['end']['parent'],'after');this['_setSuggestionRange'](_0x3f4788,this['_model']['createRange'](_0x4816b2,_0x41f84d['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x2b13d6){for(const {suggestion:_0x15a5bc,meta:_0x57e71e}of this['_findSuggestions'](_0x2b13d6,'insertion')){if(!_0x57e71e['isOwn'])continue;const _0x3370d1=_0x15a5bc['getRanges']();for(const _0x5eea75 of _0x3370d1)if(!_0x2b13d6['getDifference'](_0x5eea75)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x3948fe){const _0x530963=this['editor']['plugins']['get']('Users')['getUser'](_0x3948fe);if(!_0x530963)throw new _0x2b8fde('track-changes-user-not-found',this);return _0x530963;}['_getExternalAuthor'](_0x2436d4){const _0x30e28e=this['editor']['plugins']['get']('Users'),_0x11565e=_0x1a6396('external:'+_0x2436d4),_0x28d75f=_0x30e28e['getUser'](_0x11565e);return _0x28d75f||_0x30e28e['addUser']({'id':_0x11565e,'name':_0x2436d4});}['_createSuggestion'](_0x247217,_0x10d684,_0x37fad4,_0x420c16,_0x28b023,_0x538238){const _0x2ae32a=this['_getAuthorFromId'](_0x420c16),_0x517099=this['_suggestionFactory']['buildSuggestion'](_0x247217,_0x10d684,_0x37fad4,_0x2ae32a,_0x28b023,_0x4ecf37=>{this['_updateSuggestionData'](_0x37fad4,{'attributes':_0x4ecf37});const _0xc291d2=this['getSuggestion'](_0x37fad4);this['_joinWithAdjacentSuggestions'](new Set([_0xc291d2])),this['_refreshSuggestionsChain'](new Set([_0xc291d2]));},_0x538238);return this['listenTo'](_0x517099,'accept',()=>{this['_updateSuggestionData'](_0x37fad4,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x517099,'discard',()=>{this['_updateSuggestionData'](_0x37fad4,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x37fad4,_0x517099),this['_suggestionState']['set'](_0x517099,'notReady'),_0x517099;}['_splitMarkerName'](_0x460e0e){const _0xe206c7=_0x460e0e['split'](':');return{'group':_0xe206c7[0x0],'type':_0xe206c7[0x1],'subType':_0xe206c7['length']>=0x5?_0xe206c7[0x2]:null,'id':_0xe206c7['length']<0x5?_0xe206c7[0x2]:_0xe206c7[0x3],'authorId':_0xe206c7['length']<0x5?_0xe206c7[0x3]:_0xe206c7[0x4],'markerCount':0x6==_0xe206c7['length']?_0xe206c7[0x5]:null};}['_breakSuggestionMarker'](_0x122783,_0x5552bc,_0x215eda){const _0x2efdd5=_0x122783['getFirstRange'](),_0x2599ca=_0x2efdd5['start'],_0x1533e6=_0x2efdd5['end'];this['_setSuggestionRange'](_0x122783,this['_model']['createRange'](_0x2599ca,_0x5552bc));const _0x5b3424=_0x23f17c(),_0x3ae841=_0x122783['creator']['id'],_0x3e901b=_0x122783['type']+(_0x122783['subType']?':'+_0x122783['subType']:'');this['_setSuggestionData']({'id':_0x5b3424,'type':_0x3e901b,'createdAt':new Date(),'authorId':_0x3ae841,'originalSuggestionId':_0x122783['_originalSuggestionId']||_0x122783['id'],'attributes':_0x122783['attributes'],'data':_0x122783['data']});const _0x1ae90f=this['_getAttributeKey'](_0x122783);('formatBlock'==_0x122783['type']||_0x1ae90f&&this['_isBlockAttribute'](_0x1ae90f))&&(_0x215eda=this['_model']['createPositionBefore'](_0x215eda['parent'])),this['_addSuggestionMarker'](_0x3e901b,_0x5b3424,_0x3ae841,this['_model']['createRange'](_0x215eda,_0x1533e6));}['_findSuggestions'](_0x33b577,_0x32cfc3=null){const _0x4a812f=[],_0x230e0a=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x33b577)||(_0x33b577=[_0x33b577]);for(const _0x26b0b1 of this['getSuggestions']()){if(!_0x26b0b1['isInContent'])continue;if(_0x32cfc3&&_0x26b0b1['type']!=_0x32cfc3)continue;let _0x5908d8=!0x1;for(const _0x55b2d8 of _0x26b0b1['getRanges']()){for(const _0x547ff5 of _0x33b577){const _0x595af1=_0x547ff5['start']['isEqual'](_0x55b2d8['end'])||_0x547ff5['end']['isEqual'](_0x55b2d8['start']);if(_0x595af1||_0x547ff5['getIntersection'](_0x55b2d8)){const _0x134a50=_0x547ff5['containsRange'](_0x55b2d8)&&Vt(this['_model']['schema'],_0x55b2d8['start'],_0x547ff5),_0x580d5c=_0x55b2d8['containsRange'](_0x547ff5)&&Vt(this['_model']['schema'],_0x547ff5['start'],_0x55b2d8);_0x4a812f['push']({'suggestion':_0x26b0b1,'meta':{'isOwn':_0x230e0a==_0x26b0b1['author'],'isNextTo':_0x595af1,'isInsideObject':_0x134a50,'containsRangeInObject':_0x580d5c}}),_0x5908d8=!0x0;break;}}if(_0x5908d8)break;}}return _0x4a812f;}['_addSuggestionMarker'](_0x23d842,_0x254197,_0x3fbf33,_0x579665,_0x28ce8f){this['_model']['change'](_0x244df8=>{let _0x9466e1='suggestion:'+_0x23d842+':'+_0x254197+':'+_0x3fbf33;_0x28ce8f&&(_0x9466e1=_0x9466e1+':'+_0x28ce8f),_0x244df8['addMarker'](_0x9466e1,{'range':_0x579665,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x3df383){const _0x3fd263=_0x3df383['previous'],_0x368fad=_0x3df383['next'];_0x3df383['previous']=null,_0x3df383['next']=null,null!=_0x3fd263&&_0x3fd263['next']==_0x3df383&&(_0x3fd263['next']=_0x368fad),null!=_0x368fad&&_0x368fad['previous']==_0x3df383&&(_0x368fad['previous']=_0x3fd263),'ready'==this['_suggestionState']['get'](_0x3df383)&&(this['_suggestionState']['set'](_0x3df383,'removed'),this['fire']('suggestionUnloaded',_0x3df383,_0x3fd263,_0x368fad));}['_setSuggestionData'](_0x12e634){const _0x3ec803=_0x12e634['id'],_0x5b7f1f=this['addSuggestionData'](_0x12e634);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x4205b3=this['editor']['plugins']['get']('PendingActions'),_0x3459ec=_0x5b7f1f['hasComments'],_0x5dc82b=_0x5b7f1f['subType']?_0x5b7f1f['type']+':'+_0x5b7f1f['subType']:_0x5b7f1f['type'],_0x2d2f73=this['editor']['locale'],_0x98b9b1=_0x4205b3['add'](o(_0x2d2f73,'PENDING_ACTION_SUGGESTION')),_0x3e9d7c={'id':_0x3ec803,'type':_0x5dc82b,'hasComments':_0x3459ec,'data':_0x12e634['data']||null,'originalSuggestionId':_0x12e634['originalSuggestionId']||null,'attributes':_0x5b7f1f['attributes']};this['_adapter']['addSuggestion'](_0x3e9d7c)['then'](_0xc8bb0e=>{_0x5b7f1f['_saved']=!0x0,_0x4205b3['remove'](_0x98b9b1),_0xc8bb0e&&_0xc8bb0e['createdAt']&&(this['_suggestions']['get'](_0x3ec803)['createdAt']=_0xc8bb0e['createdAt']);})['catch'](_0x2484d3=>{throw _0x1d29c4('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x5b7f1f['discard']();}),_0x5b7f1f['stopListening'](),this['_suggestions']['delete'](_0x5b7f1f['id']),this['_suggestionState']['delete'](_0x5b7f1f),_0x2484d3;});}return _0x5b7f1f;}['_isBlockAttribute'](_0x1a2d49){return this['_blockAttributeKeys']['has'](_0x1a2d49);}['_updateSuggestionData'](_0x38452e,_0x19f31f){const _0x27b79f=this['editor']['plugins']['get']('PendingActions'),_0x54ce4a=this['getSuggestion'](_0x38452e);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x54ce4a['_saved']){const _0x39a1a8=_0x27b79f['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x38452e,_0x19f31f)['then'](()=>{_0x27b79f['remove'](_0x39a1a8);});}else _0x54ce4a['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x38452e,_0x19f31f);});}}['_getSuggestionData'](_0x152fc6){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x2b8fde('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x152fc6);}['_handleNewSuggestionMarker'](_0x1a4858){const {id:_0x18f980,type:_0xbbd561,subType:_0x590b86,authorId:_0x3849f7}=this['_splitMarkerName'](_0x1a4858),_0x53aab7=this['_suggestions']['get'](_0x18f980)||this['_createSuggestion'](_0xbbd561,_0x590b86,_0x18f980,_0x3849f7,{});switch(this['_checkSuggestionCorrectness'](_0x53aab7,_0xbbd561,_0x590b86,_0x3849f7),this['_suggestionState']['get'](_0x53aab7)){case'notReady':this['_getSuggestionData'](_0x18f980)['then'](_0x1cd39f=>{let _0x2c4bfd=Promise['resolve']();_0x1cd39f['hasComments']&&(_0x2c4bfd=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x18f980})),_0x2c4bfd['then'](()=>{this['addSuggestionData'](_0x1cd39f)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x53aab7,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x18f980,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x53aab7,'ready'),this['fire']('suggestionLoaded',_0x53aab7);break;case'ready':this['fire']('suggestionChanged',_0x53aab7);}return _0x53aab7['addMarkerName'](_0x1a4858),_0x53aab7;}['_refreshSuggestionsChain'](_0x2d0776){const _0x5e8c3f=Array['from'](_0x2d0776),_0x2828ac=_0x5e8c3f['filter'](_0x1ae702=>'attribute'==_0x1ae702['type']);this['_refreshAttributeSuggestionsChain'](_0x2828ac);const _0x401cec=_0x5e8c3f['filter'](_0x4101f4=>!_0x4101f4['isMultiRange']&&'attribute'!=_0x4101f4['type']),_0x2aca85=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3eda66=>!_0x3eda66['isMultiRange']&&'attribute'!=_0x3eda66['type']),_0x1b5801=_0x2aca85['filter'](_0x3ed2a3=>!_0x2d0776['has'](_0x3ed2a3)),_0x395acc=new Map(_0x2aca85['map'](_0x223dd5=>[_0x223dd5,this['_suggestionFactory']['getSuggestionCallback'](_0x223dd5['type'],_0x223dd5['subType'],'chain')])),_0x187a64=new Map(_0x2aca85['map'](_0x41c288=>[_0x41c288,_0x41c288['getFirstRange']()])),_0x29c00b=new Set(),_0x1a3b2c=new Set();for(let _0x2c0950=0x0;_0x2c0950<_0x401cec['length'];_0x2c0950++)_0x324600(_0x401cec[_0x2c0950],_0x401cec,_0x2c0950+0x1);for(let _0x5d5db3=0x0;_0x5d5db3<_0x401cec['length'];_0x5d5db3++)_0x324600(_0x401cec[_0x5d5db3],_0x1b5801,0x0);const _0x20a5b8=new Set();for(let _0x45c624=0x0;_0x45c624<_0x401cec['length'];_0x45c624++){const _0x1165a5=_0x401cec[_0x45c624];!_0x1a3b2c['has'](_0x1165a5)&&_0x1165a5['previous']&&(_0x20a5b8['add'](_0x1165a5['previous']),_0x1165a5['previous']['next']===_0x1165a5&&(_0x1165a5['previous']['next']=null),_0x1165a5['previous']=null),!_0x29c00b['has'](_0x1165a5)&&_0x1165a5['next']&&(_0x20a5b8['add'](_0x1165a5['next']),_0x1165a5['next']['previous']===_0x1165a5&&(_0x1165a5['next']['previous']=null),_0x1165a5['next']=null);}function _0x324600(_0x3a8b06,_0x54752e,_0x2ea8f4){for(let _0x533c26=_0x2ea8f4;_0x533c26<_0x54752e['length'];_0x533c26++){const _0x2fd45f=_0x4ce336(_0x3a8b06,_0x54752e[_0x533c26]);_0x2fd45f&&(_0x2fd45f[0x0]['next']=_0x2fd45f[0x1],_0x2fd45f[0x1]['previous']=_0x2fd45f[0x0],_0x29c00b['add'](_0x2fd45f[0x0]),_0x1a3b2c['add'](_0x2fd45f[0x1]));}}function _0x4ce336(_0x59947a,_0x50edcd){if(_0x59947a['author']['id']!==_0x50edcd['author']['id'])return null;const _0x110269=_0x395acc['get'](_0x59947a)(_0x59947a,_0x50edcd,_0x187a64['get'](_0x59947a),_0x187a64['get'](_0x50edcd));if(!_0x110269)return null;return _0x395acc['get'](_0x50edcd)(_0x59947a,_0x50edcd,_0x187a64['get'](_0x59947a),_0x187a64['get'](_0x50edcd))?_0x110269[0x1]['commentThread']&&_0x110269[0x1]['commentThread']['length']?null:_0x110269:null;}_0x20a5b8['size']&&this['_refreshSuggestionsChain'](_0x20a5b8);}['_refreshAttributeSuggestionsChain'](_0x4693a6){if(0x0==_0x4693a6['length'])return;const _0x3053d3=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x31a7e9=>'attribute'==_0x31a7e9['type']&&_0x31a7e9['_isDataLoaded']),_0x3d58df=[],_0x29882b=new Map();for(const _0x408258 of _0x3053d3){const _0xda1daf=_0x1a6396(_0x408258['attributes']);_0x29882b['has'](_0xda1daf)||(_0x29882b['set'](_0xda1daf,_0x3d58df['length']),_0x3d58df['push']([]));const _0x31445d=_0x29882b['get'](_0xda1daf);_0x3d58df[_0x31445d]['push'](_0x408258);}!(function(){_0x3d58df['sort']((_0x3aee59,_0x32048d)=>{const _0x36a2e5=_0x3aee59[0x0]['createdAt'],_0x3cbdf7=_0x32048d[0x0]['createdAt'];return _0x36a2e5==_0x3cbdf7?_0x3aee59[0x0]['attributes']['groupId']<_0x32048d[0x0]['attributes']['groupId']?-0x1:0x1:_0x36a2e5<_0x3cbdf7?-0x1:0x1;});for(const _0x255da5 of _0x3d58df)_0x255da5['sort']((_0xbda519,_0x4ce5ac)=>_0xbda519['id']<_0x4ce5ac['id']?-0x1:0x1);}());for(let _0x54b8e9=0x0;_0x54b8e9<_0x3d58df['length'];_0x54b8e9++){if(0x0==_0x3d58df[_0x54b8e9]['length'])continue;const _0x108ab6=[];for(let _0x39a1de=_0x54b8e9+0x1;_0x39a1de<_0x3d58df['length'];_0x39a1de++)0x0!=_0x3d58df[_0x39a1de]['length']&&_0x53d683(_0x3d58df[_0x54b8e9],_0x3d58df[_0x39a1de])&&_0x108ab6['push'](_0x39a1de);for(const _0x25f20e of _0x108ab6)_0x3d58df[_0x54b8e9]=_0x3d58df[_0x54b8e9]['concat'](_0x3d58df[_0x25f20e]),_0x3d58df[_0x25f20e]=[];}for(const _0x25c695 of _0x3d58df)for(let _0x38ab51=0x0;_0x38ab51<_0x25c695['length'];_0x38ab51++){const _0x1b0246=_0x25c695[_0x38ab51+0x1]||null;_0x25c695[_0x38ab51]['next']!==_0x1b0246&&(_0x25c695[_0x38ab51]['next']=_0x1b0246);}for(const _0x4ac822 of _0x3d58df)for(let _0x1788a2=0x0;_0x1788a2<_0x4ac822['length'];_0x1788a2++){const _0x4f4b61=_0x4ac822[_0x1788a2-0x1]||null;_0x4ac822[_0x1788a2]['previous']!==_0x4f4b61&&(_0x4ac822[_0x1788a2]['previous']=_0x4f4b61);}function _0x53d683(_0x20b74b,_0x1260da){if(_0x20b74b[0x0]['attributes']['groupId']!==_0x1260da[0x0]['attributes']['groupId']&&_0x20b74b[0x0]['author']!==_0x1260da[0x0]['author'])return!0x1;if(!function(_0x226cd1,_0x30eb5d){if(!_0x226cd1['hasComments']&&!_0x30eb5d['hasComments'])return!0x0;if(_0x226cd1['hasComments']&&_0x30eb5d['hasComments'])return!0x1;if(_0x226cd1['hasComments']&&_0x30eb5d['createdAt']<_0x226cd1['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x30eb5d['hasComments']&&_0x226cd1['createdAt']<_0x30eb5d['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x20b74b[0x0],_0x1260da[0x0]))return!0x1;const _0x30271a=Rt(_0x20b74b[0x0]['attributes'],['groupId','trackingSessionId']),_0x42b387=Rt(_0x1260da[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x2d9ec3(_0x30271a,_0x42b387))return!0x1;if(_0x20b74b[0x0]['attributes']['groupId']==_0x1260da[0x0]['attributes']['groupId'])return!0x0;if(_0x20b74b[0x0]['attributes']['trackingSessionId']!==_0x1260da[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x20b74b['every'](_0x1cf6c0=>_0x1260da['some'](_0x307f6c=>_0x1cf6c0['getFirstRange']()['isEqual'](_0x307f6c['getFirstRange']())))&&_0x1260da['every'](_0x563087=>_0x20b74b['some'](_0xabb7bb=>_0x563087['getFirstRange']()['isEqual'](_0xabb7bb['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x44e719){const _0x325db0=Array['from'](_0x44e719),_0x29b868=this['getSuggestions']({'skipNotAttached':!0x0}),_0x39f98c=_0x29b868['filter'](_0x401302=>!_0x44e719['has'](_0x401302)),_0x1e383e=new Map(_0x325db0['map'](_0x815fe8=>[_0x815fe8,this['_suggestionFactory']['getSuggestionCallback'](_0x815fe8['type'],_0x815fe8['subType'],'join')])),_0x7cd05d=new Map(_0x29b868['map'](_0x38b6d8=>[_0x38b6d8,_0x38b6d8['getRanges']()]));for(let _0x4a3a7b=0x0;_0x4a3a7b<_0x325db0['length'];_0x4a3a7b++){if(_0x1524ab(this,_0x325db0[_0x4a3a7b],_0x325db0,_0x4a3a7b+0x1))return!0x0;}for(let _0x1b66fa=0x0;_0x1b66fa<_0x325db0['length'];_0x1b66fa++){if(_0x1524ab(this,_0x325db0[_0x1b66fa],_0x39f98c,0x0))return!0x0;}return!0x1;function _0x1524ab(_0x214ad7,_0x566a1d,_0x50020b,_0x20872c){for(let _0x88f72e=_0x20872c;_0x88f72e<_0x50020b['length'];_0x88f72e++){const _0x48cecc=_0x50020b[_0x88f72e];if(_0x48cecc['type']!==_0x566a1d['type']||_0x48cecc['author']['id']!==_0x566a1d['author']['id']||_0x48cecc['subType']!==_0x566a1d['subType'])continue;if(!zt(_0x566a1d,_0x48cecc))continue;if('attribute'==_0x566a1d['type']&&_0x566a1d['data']['oldValue']!=_0x48cecc['data']['oldValue'])continue;if('attribute'==_0x566a1d['type']&&_0x214ad7['_isBlockAttribute'](_0x566a1d['data']['key']))continue;if('formatBlock'==_0x566a1d['type']){const _0x550440=_0x214ad7['editor']['model'],_0x59a489=_0x566a1d['getContainedElement']();if(_0x59a489&&(_0x550440['schema']['isObject'](_0x59a489)||_0x550440['schema']['isLimit'](_0x59a489)))continue;}const _0x101a41=_0x1e383e['get'](_0x566a1d),_0x407bf2=_0x7cd05d['get'](_0x566a1d),_0x77d090=_0x7cd05d['get'](_0x48cecc),_0x1b1087=_0x566a1d['commentThread']&&_0x566a1d['commentThread']['length'],_0x3d5e88=_0x48cecc['commentThread']&&_0x48cecc['commentThread']['length'];if(!_0x1b1087&&_0x101a41(_0x77d090,_0x407bf2))return _0x214ad7['_joinSuggestions'](_0x48cecc,_0x566a1d),_0x7cd05d['delete'](_0x566a1d),!0x0;if(!_0x3d5e88&&_0x101a41(_0x407bf2,_0x77d090))return _0x214ad7['_joinSuggestions'](_0x566a1d,_0x48cecc),_0x7cd05d['delete'](_0x48cecc),!0x0;}return!0x1;}}['_joinSuggestions'](_0x1fd214,_0x1f4402){if(_0x1fd214['isMultiRange']){for(const _0x40daeb of _0x1f4402['getRanges']())_0x1fd214['addRange'](_0x40daeb);}else{const _0x3023fc=_0x1f4402['getFirstRange']()['end'];this['_setSuggestionRange'](_0x1fd214,this['_model']['createRange'](_0x1fd214['getFirstRange']()['start'],_0x3023fc));}_0x1f4402['removeMarkers']();}['_getMarkerAnnouncementText'](_0x1b0ac4,_0x16e4cf,_0x13a208){const _0x134c45=_0x1b0ac4['startsWith']('format')||_0x1b0ac4['startsWith']('attribute')?'FORMATTING':_0x1b0ac4['toUpperCase']();return o(this['editor']['locale'],_0x16e4cf+'_'+_0x134c45+'_SUGGESTION_ANNOUNCEMENT',_0x13a208);}['_initAriaMarkerChangeAnnouncements'](){const _0x544c35=this['editor'];if(!_0x544c35['ui'])return;const {ariaLiveAnnouncer:_0x2f933f}=_0x544c35['ui'];_0x5e9fd2(this['_model'],({left:_0x6796ae,entered:_0x1f9960})=>{for(const _0x190e34 of _0x6796ae){const {group:_0x20ecb1,type:_0x4efde8}=this['_splitMarkerName'](_0x190e34['name']);if('suggestion'===_0x20ecb1){_0x2f933f['announce'](this['_getMarkerAnnouncementText'](_0x4efde8,'LEAVE'));break;}}for(const _0x3d61d1 of _0x1f9960){const {group:_0x26d52b,type:_0x93e3b4}=this['_splitMarkerName'](_0x3d61d1['name']);if('suggestion'===_0x26d52b){_0x2f933f['announce'](this['_getMarkerAnnouncementText'](_0x93e3b4,'ENTER',_0x337839(_0x5e0307)));break;}}});}['_processAttributeChanges'](_0x279b75){if(this['_recordAttributeSuggestions'])return!0x1;const _0x271543=this['editor'],_0x191f09=_0x271543['model']['document']['differ']['getChanges']();if(0x0==_0x191f09['length'])return!0x1;const _0x2459d1=[],_0x5e79cc=_0x191f09['filter'](_0x1cf406=>'attribute'==_0x1cf406['type']),_0x4bbaa3=_0x191f09['filter'](_0x36b9b1=>'insert'==_0x36b9b1['type']&&'$text'!=_0x36b9b1['name']),_0x4cb87b=_0x191f09['filter'](_0x36f11a=>'remove'==_0x36f11a['type']&&'$text'!=_0x36f11a['name']);for(const _0x470f39 of _0x5e79cc)_0x2459d1['push']({'key':_0x470f39['attributeKey'],'newValue':_0x470f39['attributeNewValue'],'oldValue':_0x470f39['attributeOldValue'],'range':Kt(_0x470f39['range'],_0x271543['model'])});for(const _0x2b4ea1 of _0x4bbaa3){const _0x5620c5=_0x4cb87b['find'](_0x3e5f86=>_0x3e5f86['position']['isEqual'](_0x2b4ea1['position']));_0x5620c5&&_0x2459d1['push']({'key':m,'newValue':_0x2b4ea1['name'],'oldValue':_0x5620c5['name'],'range':_0x271543['model']['createRangeOn'](_0x2b4ea1['position']['nodeAfter'])});}return 0x0!=_0x2459d1['length']&&this['_reduceExistingSuggestions'](_0x279b75,_0x2459d1);}['_processAttributeSuggestions'](_0x10601a){let _0x2301d6=!0x1;const _0x226dda=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x51c6ea=>_0x51c6ea['data']['newRange']&&_0x51c6ea['name']['startsWith']('suggestion:attribute:'));for(const _0x3b482a of _0x226dda){const {subType:_0x2779ac,id:_0x333360}=this['_splitMarkerName'](_0x3b482a['name']),_0x54cac1=_0x2779ac['split']('|')[0x0];for(const _0x59ca60 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x59ca60['id']!=_0x333360&&'attribute'==_0x59ca60['type']&&_0x59ca60['data']&&_0x59ca60['data']['key']==_0x54cac1&&_0x59ca60['getFirstRange']()['isIntersecting'](_0x3b482a['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x59ca60,_0x3b482a['data']['newRange'],_0x10601a),_0x2301d6=!0x0);}return _0x2301d6;}['_recordAttributeChanges'](_0x4f60e3){this['_recordAttributeSuggestions']=!0x0,_0x4f60e3();}['_isRegisteredAttribute'](_0x39cd3f){const _0xe83abf=this['_isBlockAttribute'](_0x39cd3f),_0x1f8820=this['_inlineAttributeKeys']['has'](_0x39cd3f);return _0xe83abf||_0x1f8820;}['_reduceExistingSuggestions'](_0x2e4134,_0x35aae1){if(0x0==_0x35aae1['length'])return!0x1;let _0x377db0=!0x1;for(const _0x33babc of _0x35aae1){const _0x3f6ecc=this['_findSuggestions'](_0x33babc['range'],'attribute')['filter'](_0x2092f1=>!_0x2092f1['meta']['isNextTo'])['map'](_0x12ded8=>_0x12ded8['suggestion']),_0xd11f66=_0x1a6396({'newValue':_0x33babc['newValue']});_0x3f6ecc['filter'](_0x4ae3b0=>{const [_0x2e2f13,_0x4f7b65]=_0x4ae3b0['subType']['split']('|');return _0x2e2f13==_0x33babc['key']&&_0x4f7b65!=_0xd11f66;})['forEach'](_0x2b70d2=>{this['_reduceSuggestionAttributeRange'](_0x2b70d2,_0x33babc['range'],_0x2e4134),_0x377db0=!0x0;});}return _0x377db0;}['_reduceSuggestionAttributeRange'](_0x119d3a,_0x55c222,_0x4149c1){const _0x59503d=_0x119d3a['getFirstRange']()['getDifference'](_0x55c222);0x0!==_0x59503d['length']?0x1!==_0x59503d['length']?this['_breakSuggestionMarker'](_0x119d3a,_0x55c222['start'],_0x55c222['end']):this['_setSuggestionRange'](_0x119d3a,_0x59503d[0x0]):_0x4149c1['removeMarker'](_0x119d3a['getFirstMarker']());}}class Ut{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x301584){this['_editor']=_0x301584,this['_model']=_0x301584['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x41dc5c,_0xcb566c,_0x1e4d38,_0x23fb36,_0xbd1c0a,_0x4b8224,_0x2afbe0){return new T(this['_model'],{'type':_0x41dc5c,'subType':_0xcb566c,'id':_0x1e4d38,'originalSuggestionId':_0x2afbe0,'author':_0x23fb36,'creator':_0x23fb36,'attributes':_0xbd1c0a,'onAttributesChange':_0x4b8224,'onAccept':(..._0x20fc87)=>this['getSuggestionCallback'](_0x41dc5c,_0xcb566c,'accept')(..._0x20fc87),'onDiscard':(..._0x3ae26a)=>this['getSuggestionCallback'](_0x41dc5c,_0xcb566c,'discard')(..._0x3ae26a)});}['registerCustomCallback'](_0x434ca6,_0x50b319,_0xc1c939,_0x2fd78b){const _0x18eb77=_0x434ca6+':'+_0x50b319+':'+_0xc1c939;this['_customCallbacks']['set'](_0x18eb77,_0x2fd78b);}['getSuggestionCallback'](_0x53f276,_0x1bce96,_0xce1f10){const _0x3ab1c3=_0x53f276+':'+_0x1bce96+':'+_0xce1f10;return this['_customCallbacks']['get'](_0x3ab1c3)||this['_defaultCallbacks']['get'](_0x53f276+':'+_0xce1f10);}['_registerDefaultCallbacks'](){const _0x3f1ee0=()=>!0x1,_0x58a409=_0x3544fa=>{_0x3544fa['sort']((_0x2bbef9,_0x563802)=>_0x2bbef9['start']['isBefore'](_0x563802['start'])?0x1:-0x1),this['_model']['change'](_0x26171b=>{for(const _0x255f94 of _0x3544fa){let _0x2c5590;_0x2c5590=_0x255f94['end']['isAtEnd']&&_0x255f94['end']['parent']==_0x255f94['start']['nodeAfter']?_0x26171b['createSelection'](_0x255f94['start']['nodeAfter'],'on'):_0x26171b['createSelection'](_0x255f94),this['_model']['deleteContent'](_0x2c5590,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x3926fa=(_0x2d7170,_0x288549)=>{_0x288549&&this['_model']['change'](_0x4638e7=>{const {commandName:_0x44d846,commandParams:_0x15249e=[]}=_0x288549,_0xf6a1ec=_0x2d7170['map'](_0x1e383c=>(Ft(_0x1e383c)&&(_0x1e383c=this['_model']['createRange'](_0x1e383c['end'])),_0x1e383c))['filter'](_0x5e44bd=>'$graveyard'!==_0x5e44bd['root']['rootName']);if(_0xf6a1ec['length']<0x1)return;const _0x22e463=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x376c9c=>_0x5661a3['fromRange'](_0x376c9c));_0x4638e7['setSelection'](_0xf6a1ec);for(const _0x4215ec of this['_editor']['commands']['commands']())_0x4215ec['refresh']();_0x15249e['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x44d846,..._0x15249e);const _0x895390=_0x22e463['filter'](_0x41da89=>'$graveyard'!=_0x41da89['root']['rootName']);_0x895390['length']>0x0&&_0x4638e7['setSelection'](_0x895390);for(const _0x383f69 of _0x22e463)_0x383f69['detach']();});},_0x570e16=(_0x8deb02,_0x15f5f4)=>0x1==_0x8deb02['length']&&0x1==_0x15f5f4['length']&&_0x8deb02[0x0]['end']['isEqual'](_0x15f5f4[0x0]['start']),_0xf64d18=(_0x595961,_0x3e207a,_0x472d71,_0x44cd2b)=>qt(_0x595961,_0x3e207a,_0x472d71,_0x44cd2b)?[_0x595961,_0x3e207a]:qt(_0x3e207a,_0x595961,_0x44cd2b,_0x472d71)?[_0x3e207a,_0x595961]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x3f1ee0),this['_defaultCallbacks']['set']('insertion:discard',_0x58a409),this['_defaultCallbacks']['set']('insertion:join',_0x570e16),this['_defaultCallbacks']['set']('insertion:chain',_0xf64d18),this['_defaultCallbacks']['set']('deletion:accept',_0x58a409),this['_defaultCallbacks']['set']('deletion:discard',_0x3f1ee0),this['_defaultCallbacks']['set']('deletion:join',_0x570e16),this['_defaultCallbacks']['set']('deletion:chain',_0xf64d18),this['_defaultCallbacks']['set']('formatInline:accept',_0x3926fa),this['_defaultCallbacks']['set']('formatInline:discard',_0x3f1ee0),this['_defaultCallbacks']['set']('formatInline:join',_0x570e16),this['_defaultCallbacks']['set']('formatInline:chain',_0x3f1ee0),this['_defaultCallbacks']['set']('formatBlock:accept',_0x3926fa),this['_defaultCallbacks']['set']('formatBlock:discard',_0x3f1ee0),this['_defaultCallbacks']['set']('formatBlock:join',_0x570e16),this['_defaultCallbacks']['set']('formatBlock:chain',_0x3f1ee0),this['_defaultCallbacks']['set']('attribute:accept',_0x3f1ee0),this['_defaultCallbacks']['set']('attribute:discard',(_0x50d0ac,_0x5abb7d)=>{if(!_0x5abb7d)return;const _0x54162b=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x242c19=>{if(_0x5abb7d['key']==m)for(const _0x58aa4e of _0x50d0ac){const _0x138df7=_0x58aa4e['start']['nodeAfter'],_0x7c2c20=_0x5abb7d['oldValue'];_0x242c19['rename'](_0x138df7,_0x7c2c20);}else{if(_0x54162b['_isBlockAttribute'](_0x5abb7d['key'])){for(const _0x25be97 of _0x50d0ac)void 0x0!==_0x5abb7d['oldValue']?_0x242c19['setAttribute'](_0x5abb7d['key'],_0x5abb7d['oldValue'],_0x25be97['start']['nodeAfter']):_0x242c19['removeAttribute'](_0x5abb7d['key'],_0x25be97['start']['nodeAfter']);}else{for(const _0x2f6088 of _0x50d0ac)_0x5abb7d['oldValue']?_0x242c19['setAttribute'](_0x5abb7d['key'],_0x5abb7d['oldValue'],_0x2f6088):_0x242c19['removeAttribute'](_0x5abb7d['key'],_0x2f6088);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x570e16);}}function Vt(_0x62443a,_0x159366,_0x10b2e3){for(const _0x2e4a06 of _0x159366['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2e4a06['root']==_0x2e4a06)return!0x1;if(!_0x10b2e3['containsItem'](_0x2e4a06))return!0x1;if(_0x62443a['isObject'](_0x2e4a06)||_0x62443a['isLimit'](_0x2e4a06))return!0x0;}return!0x1;}function Ft(_0x2aa05c){return _0x2aa05c['end']['parent']==_0x2aa05c['start']['nodeAfter']&&_0x2aa05c['end']['isAtStart'];}function Pt(_0xb51cb5,_0x23a7a8,_0x511a79,_0x4ce26a){const _0xf20e45=_0x487d9e=>!_0x487d9e['item']['is']('$textProxy')&&!_0x4ce26a['isObject'](_0x487d9e['item']),_0x4a4dc2=_0xb51cb5['start']['getLastMatchingPosition'](_0xf20e45),_0x4a3807=_0xb51cb5['end']['getLastMatchingPosition'](_0xf20e45,{'direction':'backward'});return(!_0xb51cb5['start']['isEqual'](_0x4a4dc2)||!_0xb51cb5['end']['isEqual'](_0x4a3807))&&(_0x4a4dc2['isBefore'](_0x4a3807)?_0x511a79['updateMarker'](_0x23a7a8,{'range':_0x511a79['createRange'](_0x4a4dc2,_0x4a3807)}):_0x511a79['removeMarker'](_0x23a7a8),!0x0);}function Gt(_0x34e4e8){return _0x1a6396(_0x34e4e8);}function Lt(_0x1650ce){const _0x594d2b=_0x1650ce['start']['nodeAfter'];return _0x594d2b&&_0x594d2b['is']('element');}function Jt(_0x3054a0){return!Ft(_0x3054a0)&&!function(_0x5b78c5){return _0x5b78c5['start']['parent']==_0x5b78c5['end']['nodeBefore']&&_0x5b78c5['start']['isAtEnd'];}(_0x3054a0);}function Kt(_0x5480bd,_0x166d48){return null==_0x5480bd['end']['nodeBefore']&&_0x5480bd['end']['parent']==_0x5480bd['start']['nodeAfter']?Ht(_0x5480bd['start']['nodeAfter'],_0x166d48):_0x5480bd;}function Ht(_0x245221,_0x4db029){const _0x5e150d=_0x4db029['schema']['isObject'](_0x245221)||_0x4db029['schema']['isSelectable'](_0x245221);return _0x4db029['createRange'](_0x4db029['createPositionAt'](_0x245221,'before'),_0x5e150d?_0x4db029['createPositionAfter'](_0x245221):_0x4db029['createPositionAt'](_0x245221,'end'));}function qt(_0x335c1b,_0x4ab50d,_0x555c8b,_0x8979d4){return!!zt(_0x335c1b,_0x4ab50d)&&_0x555c8b['end']['isEqual'](_0x8979d4['start']);}function zt(_0x12f8eb,_0x3082b9){if(!_0x12f8eb['_isDataLoaded']||!_0x3082b9['_isDataLoaded'])return!0x1;const _0x1f9f82=new Set(Object['keys'](_0x12f8eb['attributes'])),_0x5caca3=new Set(Object['keys'](_0x3082b9['attributes']));if(_0x1f9f82['delete']('groupId'),_0x5caca3['delete']('groupId'),0x0==_0x1f9f82['size']&&0x0==_0x5caca3['size'])return!0x0;if(_0x1f9f82['size']!=_0x5caca3['size'])return!0x1;const _0x19c935={..._0x12f8eb['attributes']},_0x424710={..._0x3082b9['attributes']};return delete _0x19c935['groupId'],delete _0x424710['groupId'],JSON['stringify'](_0x19c935)==JSON['stringify'](_0x424710);}function Wt(_0x562421,_0x120efe){const _0x50b7c8=Qt(_0x562421['attributes']),_0x2c3fa6=Qt(_0x120efe);if(!_0x562421['_isDataLoaded'])return!0x1;for(const _0x3d691d of Object['keys'](_0x2c3fa6))if(!_0x2d9ec3(_0x50b7c8[_0x3d691d],_0x2c3fa6[_0x3d691d]))return!0x1;return!0x0;}function Qt(_0x7cfbd5){const _0x4aaf3a=Object['assign']({},_0x7cfbd5);return delete _0x4aaf3a['skipNestingCheck'],delete _0x4aaf3a['tablePasteChainId'],_0x4aaf3a;}class pe extends/* #__PURE__ -- @preserve */
26
+ _0xdff992(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x1fd266,_0x3d1446,_0x416344,_0x398ede){super(),this['model']=_0x3d1446,this['view']=_0x416344,this['commentThreadController']=_0x398ede,this['_editor']=_0x1fd266,this['_acceptCommand']=_0x1fd266['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x1fd266['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x12f228,_0x5c0fae)=>_0x12f228||_0x5c0fae),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x1d47db=>_0x1d47db&&this['_editor']['model']['canEditAt'](_0x3d1446['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x27443b=>_0x27443b&&this['_editor']['model']['canEditAt'](_0x3d1446['getRanges']())),this['_pendingAction']=null,_0x416344['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x416344,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x416344,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x416344,'change:isDirty',()=>{_0x416344['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 _0x53f4c5=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x53f4c5);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ti extends _0x1f1ddf{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x2e225a,_0x43e9c8,_0x57ed37,_0x4ec77e){super(_0x2e225a),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x3b1156(_0x2e225a,o(_0x2e225a,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x43e9c8['authoredAt']),this['bind']('authoredAt')['to'](_0x43e9c8),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',_0x43e9c8,'authoredAt',this,'descriptionParts',(_0x562272,_0x3b166e,_0x3a2fd3)=>{const _0x26b6d6=_0x3a2fd3['map'](_0x56901e=>ls(_0x56901e['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x562272-0x1,_0x43e9c8['author']['name'],_0x3b166e?_0x4ec77e['formatDateTime'](_0x3b166e):'',new DOMParser()['parseFromString'](_0x26b6d6,'text/html')['body']['textContent']]);}),this['focusables']=new _0xb549cf(),this['focusTracker']=new _0x271bca(),this['keystrokes']=new _0x45d71b(),this['focusCycler']=new _0x393529({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x33b34a=>_0x33b34a['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x43e9c8,this['_localUser']=_0x57ed37,this['_config']=_0x4ec77e,_0x4ec77e['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x212e37(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x5b89ce}=this['_config'];this['commentsListView']=new _0x5b89ce(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',_0x45c523=>_0x45c523+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0xb6c6f9,_0x52913a)=>_0xb6c6f9||!!_0x52913a);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x248cac}=this['_config'],_0x55b091=new _0x248cac(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x1bb87c=_0x55b091['commentInputView'];return _0x55b091['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x1bb87c,'value',(_0x29420e,_0x4833c0,_0x28efbf)=>!!_0x28efbf||_0x29420e&&!_0x4833c0),_0x1bb87c['on']('submit',(_0x4ba396,_0x112e76)=>{this['fire']('addComment',_0x112e76),_0x1bb87c['editor']['setData']('');}),_0x1bb87c['on']('cancel',()=>this['focus']()),_0x1bb87c['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x55b091;}}class fe extends ti{['suggestionView'];['_descriptionElement'];constructor(_0x4828d1,_0x36c82a,_0x346b7f,_0x37a198){super(_0x4828d1,_0x36c82a,_0x346b7f,_0x37a198),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x1cc9e6=>_0x1cc9e6&&_0x1cc9e6[0x0]?_0x1cc9e6[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x28b9a1,_0x4ea42e)=>{let _0x5515c7='';for(const _0x5606ed of _0x28b9a1)_0x5515c7+='<p>'+ls(_0x5606ed['content'],_0x5606ed['color'])+'</p>';return _0x4ea42e?_0x5515c7:_0x4964cd(_0x5515c7,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x37a198['SuggestionView'](_0x4828d1,_0x36c82a,{'formatDateTime':_0x37a198['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 _0x4f4d71=this['bindTemplate'],_0x508b11=[this['suggestionView']];return this['commentsListView']&&_0x508b11['push'](this['commentsListView']),this['commentThreadInputView']&&_0x508b11['push'](this['commentThreadInputView']),_0x508b11['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x4f4d71['if']('isActive','ck-suggestion-wrapper--active'),_0x4f4d71['to']('type',_0x42b32b=>'ck-suggestion-'+_0x42b32b),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':_0x4f4d71['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x508b11};}['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 _0x1f1ddf{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x5616d3,_0x49dc8e,_0x10de29){super(_0x5616d3),this['_model']=_0x49dc8e,this['_config']=_0x10de29,this['set']('description',''),this['bind']('authoredAt')['to'](_0x49dc8e),this['acceptButton']=this['_createButton'](o(_0x5616d3,'Accept\x20suggestion'),_0x29f23d,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x5616d3,'Discard\x20suggestion'),_0x715a3a,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x5742a3(_0x5616d3,_0x49dc8e['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0xb549cf([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x271bca(),this['keystrokes']=new _0x45d71b(),this['focusCycler']=new _0x393529({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x56934e=>_0x56934e['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x2a62bb=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x2a62bb['innerHTML']=this['description'],this['on']('change:description',(_0x424993,_0x2c3acd,_0x28e937)=>{_0x2a62bb['innerHTML']=_0x28e937;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x42bbd6=this['bindTemplate'],_0x1f79c1=[{'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':_0x42bbd6['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x42bbd6['to']('authoredAt',_0x36e1af=>this['_config']['formatDateTime'](_0x36e1af))}]}]},{'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']&&_0x1f79c1['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':_0x1f79c1}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x381ca0,_0x3d188d,_0x272f02,_0x2fc606,_0x397a45){const _0x2aba30=new _0x3b1a1c(this['locale']);return _0x2aba30['set']({'label':_0x381ca0,'icon':_0x3d188d,'tooltip':!0x0,'tooltipPosition':_0x397a45}),_0x2aba30['extendTemplate']({'attributes':{'class':_0x272f02}}),_0x2aba30['on']('execute',()=>{this['fire'](_0x2fc606,this['_model']['id']);}),_0x2aba30;}['_setupKeyboardNavigation'](){const _0x1ed708=this['element'];this['keystrokes']['listenTo'](_0x1ed708);for(const _0x3ebbfe of this['focusables'])this['focusTracker']['add'](_0x3ebbfe['element']),this['keystrokes']['listenTo'](_0x3ebbfe['element']);this['keystrokes']['set']('enter',(_0x417628,_0x16affe)=>{_0x1ed708===_0x417628['target']&&(this['focusCycler']['focusFirst'](),_0x16affe());}),this['keystrokes']['set']('esc',(_0x42323f,_0x5c2eef)=>{_0x1ed708!==_0x42323f['target']&&(this['focus'](),_0x5c2eef());});}}class u extends _0x45d531{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x3eafe2,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x38125b){super(_0x38125b),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x2b5a30=this['editor']['config'];_0x2b5a30['define']('trackChanges.SuggestionThreadView',fe),_0x2b5a30['define']('trackChanges.SuggestionView',we),_0x2b5a30['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x2b5a30['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x212292,_0x14ce2d){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x5a1eba,_0x461a78]of this['_handleControllerBuffer']){const _0x42f15e=this['_suggestionToController']['has'](_0x5a1eba);_0x42f15e||_0x461a78?_0x42f15e&&_0x461a78&&this['_destroyController'](_0x5a1eba):this['_initializeController'](_0x5a1eba);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x212292,_0x14ce2d);}['init'](){const _0x5a2a57=this['editor'],_0xf306ef=_0x5a2a57['plugins']['get']('TrackChangesEditing'),_0x7573b1=_0x5a2a57['plugins']['get']('Annotations'),_0x10a300=_0x5a2a57['plugins']['get']('EditorAnnotations'),_0x3521bb=_0x5a2a57['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x10a300['addSourceCollector'](()=>{const _0x3760da=[];for(const [_0x1544c4,_0x123b4f]of Array['from'](this['_suggestionToController'])){const _0x2870d2=_0x1544c4['getAllAdjacentSuggestions'](),_0x398964=[];for(const _0x428e59 of _0x2870d2){if(!_0x428e59['isInContent'])continue;if(_0x428e59['isMultiRange']){_0x398964['push'](..._0x428e59['getRanges']());continue;}const _0x1c7789=_0x428e59['getFirstRange']();if(_0x398964['length']>0x0){const _0x11b552=_0x398964[0x0]['getJoined'](_0x1c7789);if(_0x11b552){_0x398964[0x0]=_0x11b552;continue;}}_0x398964['push'](_0x1c7789);}_0x3760da['push']([_0x123b4f['view'],_0x398964]);}return _0x3760da;}),this['listenTo'](_0xf306ef,'suggestionLoaded',(_0xad0e8f,_0x434250)=>{this['listenTo'](_0x434250,'change:previous',(_0x4d0330,_0x5547e1,_0x516908,_0xc6ce87)=>{_0x434250['isInContent']&&(null==_0x516908?(this['_updateController'](_0xc6ce87['head']),this['_handleSuggestionControllerDelayed'](_0x434250,!0x1)):(this['_updateController'](_0x516908['head']),null==_0xc6ce87&&this['_handleSuggestionControllerDelayed'](_0x434250,!0x0)));}),null!==_0x434250['previous']?this['_updateController'](_0x434250['head']):this['_handleSuggestionControllerDelayed'](_0x434250,!0x1);}),this['listenTo'](_0xf306ef,'suggestionUnloaded',(_0x333f97,_0xa9d39f,_0x44934e)=>{this['stopListening'](_0xa9d39f,'change:previous'),this['_handleControllerBuffer']['delete'](_0xa9d39f),this['_suggestionToController']['has'](_0xa9d39f)&&this['_destroyController'](_0xa9d39f),_0x44934e&&this['_updateController'](_0x44934e['head']);}),this['listenTo'](_0xf306ef,'suggestionChanged',(_0x52f991,_0x1c9012)=>{this['_updateController'](_0x1c9012);}),this['listenTo'](_0x7573b1,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x3521bb,'addComment',(_0x4995a4,{threadId:_0x2a2da9,isFromAdapter:_0x30cb68})=>{if(_0x30cb68||!_0xf306ef['hasSuggestion'](_0x2a2da9))return;const _0x52d914=_0xf306ef['getSuggestion'](_0x2a2da9);this['_suggestionToController']['get'](_0x52d914)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2cffe7=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x27736d;for(const _0x2d0d56 in _0x2cffe7){const _0x12b0cb=_0x2d0d56,_0x27a636=_0x2cffe7[_0x12b0cb];if('trackChangesLicenseKeyValid'==_0x27a636||'trackChangesLicenseKeyInvalid'==_0x27a636||'trackChangesLicenseKeyExpired'==_0x27a636||'trackChangesLicenseKeyDomainLimit'==_0x27a636||'trackChangesLicenseKeyNotAllowed'==_0x27a636||'trackChangesLicenseKeyEvaluationLimit'==_0x27a636||'trackChangesLicenseKeyTrialLimit'==_0x27a636||'trackChangesLicenseKeyUsageLimit'==_0x27a636){delete _0x2cffe7[_0x12b0cb],_0x27736d=_0x27a636,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x27736d&&_0x2cffe7['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x27736d&&_0x2cffe7['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x27736d&&_0x2cffe7['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x27736d&&_0x2cffe7['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x27736d&&_0x2cffe7['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x27736d&&_0x2cffe7['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x27736d&&_0x2cffe7['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x58120d){const _0x14cea5=this['_suggestionToController']['get'](_0x58120d);if(!_0x14cea5)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x14cea5['view'])||null;}['getSuggestionForAnnotation'](_0x8039a6){const _0x4b9e3b=this['_viewToController']['get'](_0x8039a6['innerView']);return _0x4b9e3b?_0x4b9e3b['model']:null;}['_refreshActiveMarkers'](){const _0x5f26ad=this['editor']['plugins']['get']('Annotations'),_0x3741b4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x52ae78=Array['from'](_0x5f26ad['activeAnnotations'],_0x54d380=>_0x54d380['innerView'])['filter'](_0x55cbd4=>this['_viewToController']['has'](_0x55cbd4)),_0x4f9180=[];for(const _0x59293b of _0x52ae78){const _0x32dd10=this['_viewToController']['get'](_0x59293b)['model']['getAllAdjacentSuggestions']();_0x4f9180['push'](..._0x32dd10['reduce']((_0x401629,_0x21eb79)=>[..._0x401629,..._0x21eb79['getMarkerNames']()],[]));}_0x3741b4['activeMarkers']=_0x4f9180;}['_addUIComponentsToFactory'](){const _0x135415=this['editor'],_0xe39c6=_0x135415['locale'],_0x222720=o(_0xe39c6,'Track\x20changes'),_0x47d274=new _0x47c311([{'type':'switchbutton','model':new _0x4b53ab({'withText':!0x0,'isToggleable':!0x0,'label':_0x222720,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x4b53ab({'withText':!0x0,'label':o(_0xe39c6,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4b53ab({'withText':!0x0,'label':o(_0xe39c6,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4b53ab({'withText':!0x0,'label':o(_0xe39c6,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4b53ab({'withText':!0x0,'label':o(_0xe39c6,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x135415['plugins']['has']('TrackChangesPreview')&&_0x47d274['addMany']([{'type':'separator'},{'type':'button','model':new _0x4b53ab({'withText':!0x0,'label':o(_0xe39c6,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x593c1a of _0x47d274)if(ke(_0x593c1a)){const _0x5bbbea=_0x135415['commands']['get'](_0x593c1a['model']['commandName']);_0x593c1a['model']['bind']('isOn','isEnabled')['to'](_0x5bbbea,'value','isEnabled');}_0x135415['ui']['componentFactory']['add']('trackChanges',_0x28840a=>this['_createToolbarButton'](_0x28840a,_0x47d274,_0x222720)),_0x135415['ui']['componentFactory']['add']('menuBar:trackChanges',_0x4a214f=>this['_createMenuBarMenu'](_0x4a214f,_0x47d274,_0x222720));}['_createToolbarButton'](_0x421465,_0x9e07d,_0x7a52d1){const _0x8d5b35=_0x3f76dd(_0x421465,_0x1baf99),_0x2df1f4=this['editor']['commands']['get']('trackChanges');_0x8d5b35['buttonView']['set']({'tooltip':_0x7a52d1,'label':_0x7a52d1,'icon':_0x1ba5db}),_0x8d5b35['buttonView']['bind']('isOn')['to'](_0x2df1f4,'value'),_0x8d5b35['buttonView']['on']('execute',()=>{_0x2df1f4['execute'](),this['editor']['editing']['view']['focus']();}),_0x5da1ef(_0x8d5b35,_0x9e07d,{'role':'menu'});const _0x560d35=[];for(const _0x7e4b6c of _0x9e07d)ke(_0x7e4b6c)&&_0x560d35['push'](this['editor']['commands']['get'](_0x7e4b6c['model']['commandName']));const _0x119846=_0x8d5b35['buttonView'];return _0x119846['actionView']['unbind']('isEnabled'),_0x119846['arrowView']['unbind']('isEnabled'),_0x119846['actionView']['bind']('isEnabled')['to'](_0x2df1f4,'isEnabled'),_0x119846['arrowView']['bind']('isEnabled')['toMany'](_0x560d35,'isEnabled',(..._0x57ff95)=>_0x57ff95['some'](_0x14717d=>_0x14717d)),_0x8d5b35['on']('execute',_0x2e3a0d=>{this['editor']['execute'](_0x2e3a0d['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x8d5b35;}['_createMenuBarMenu'](_0x254319,_0x4bb90f,_0x4b9589){const _0x31479c=new _0x54c374(_0x254319),_0x494775=this['editor']['commands']['get']('trackChanges');_0x31479c['buttonView']['set']({'label':_0x4b9589,'icon':_0x1ba5db});const _0x3fd257=new _0x30a610(_0x254319);for(const _0x35e467 of _0x4bb90f){if('separator'==_0x35e467['type']){_0x3fd257['items']['add'](new _0x376079(_0x254319));continue;}const _0x197d2e=new _0x3a00e6(_0x254319,_0x31479c),_0xce6037=new _0x40bebe(_0x254319),_0x2bc41e=_0x35e467['model'];_0xce6037['bind'](...Object['keys'](_0x2bc41e))['to'](_0x2bc41e),_0xce6037['delegate']('execute')['to'](_0x31479c),_0xce6037['on']('execute',()=>{this['editor']['execute'](_0x2bc41e['commandName']),this['editor']['editing']['view']['focus']();}),_0x197d2e['children']['add'](_0xce6037),_0x3fd257['items']['add'](_0x197d2e);}return _0x31479c['bind']('isEnabled')['to'](_0x494775,'isEnabled'),_0x31479c['panelView']['children']['add'](_0x3fd257),_0x31479c;}['_initializeController'](_0x23a969){const _0x2854fd=this['editor'],_0x15d313=_0x2854fd['config'],_0x14c133=_0x2854fd['plugins']['get']('Annotations'),_0x14f434=_0x2854fd['plugins']['get']('CommentsRepository'),_0x103e9c=_0x2854fd['plugins']['get']('EditorAnnotations'),_0xd5e9dc=_0x2854fd['plugins']['get'](_0x3eafe2)['me'],_0x2bfdfc=_0x15d313['get']('trackChanges')['SuggestionThreadView'],_0x1392f7=_0x15d313['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x3eeb04,CommentThreadInputView:_0x1a0968}=_0x2854fd['plugins']['get']('CommentsUI');let _0x442d66,_0x572ee7,_0x1e2096;this['_annotationViews']['has'](_0x23a969['id'])?(_0x572ee7=this['_annotationViews']['get'](_0x23a969['id']),_0x442d66=_0x572ee7['mainView']):(_0x442d66=new _0x2bfdfc(_0x2854fd['locale'],_0x23a969,_0xd5e9dc,{'disableComments':this['_disableComments'],'editorConfig':{..._0x15d313['get']('comments.editorConfig'),'licenseKey':_0x15d313['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x15d313['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x15d313['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x15d313['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x1c53ee(_0x15d313['get']('locale'),_0x2854fd['locale']),'CommentView':_0x15d313['get']('comments')['CommentView'],'CommentsListView':_0x3eeb04,'CommentThreadInputView':_0x1a0968,'SuggestionView':_0x1392f7}),_0x442d66['suggestionView']['acceptButton']['on']('execute',()=>{_0x2854fd['editing']['view']['focus']();}),_0x442d66['suggestionView']['discardButton']['on']('execute',()=>{_0x2854fd['editing']['view']['focus']();}),_0x572ee7=_0x14c133['createAnnotationView'](this['editor']['locale'],_0x442d66),_0x572ee7['bind']('isDirty')['to'](_0x442d66,'isDirty'),_0x572ee7['bind']('length')['to'](_0x442d66),_0x572ee7['bind']('type')['to'](_0x442d66,'type',_0xff1bb=>'suggestion-'+_0xff1bb),_0x442d66['on']('escape',()=>{_0x1e2096['fire']('escape');}),this['_annotationViews']['set'](_0x23a969['id'],_0x572ee7));const _0x52b20b=_0x14f434['createCommentThreadController'](_0x23a969['commentThread'],_0x442d66),_0x435eb2=new pe(_0x2854fd,_0x23a969,_0x442d66,_0x52b20b),_0x1f6af7=_0x23a969['getAllAdjacentSuggestions']()['filter'](_0x91e6e4=>_0x91e6e4['isInContent']);_0x442d66['descriptionParts']=_0x2854fd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x1f6af7),this['_suggestionToController']['set'](_0x23a969,_0x435eb2),this['_viewToController']['set'](_0x442d66,_0x435eb2),_0x1e2096=_0x14c133['createAnnotation']({'view':_0x572ee7,'target':()=>{const _0x417e49=[],_0x215a40=_0x23a969['getAllAdjacentSuggestions']()['filter'](_0x262d4c=>_0x262d4c['isInContent']);for(const _0x4fece0 of _0x215a40)_0x417e49['push'](..._0x4fece0['getMarkers']());return _0x4e1ee8(_0x2854fd['editing'],_0x417e49);},'type':()=>'suggestion-'+_0x435eb2['view']['type']}),_0x14f434['_bindAnnotationToEditors'](_0x442d66,_0x1e2096),_0x14c133['add'](_0x1e2096),_0x103e9c['registerAnnotation'](_0x1e2096);}['_destroyController'](_0x52ebdc){const _0x5a572a=this['editor']['plugins']['get']('CommentsRepository'),_0x1c1ffa=this['editor']['plugins']['get']('Annotations'),_0x256291=this['_suggestionToController']['get'](_0x52ebdc),_0xf5a2ae=_0x256291['view'],_0x5b002d=_0x1c1ffa['getByInnerView'](_0xf5a2ae);_0x5a572a['_unbindEditors'](_0xf5a2ae),_0x5b002d&&_0x1c1ffa['remove'](_0x5b002d),this['_suggestionToController']['delete'](_0x52ebdc),this['_viewToController']['delete'](_0xf5a2ae),_0x256291['destroy']();}['_updateController'](_0xeb6efa){if(!_0xeb6efa['isInContent']||!this['_suggestionToController']['has'](_0xeb6efa))return;const _0x145212=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5e836a=this['_suggestionToController']['get'](_0xeb6efa),_0x12dee7=_0xeb6efa['getAllAdjacentSuggestions']();_0x5e836a['view']['descriptionParts']=_0x145212['descriptionFactory']['getDescriptions'](_0x12dee7);}['destroy'](){for(const _0x29f3cd of this['_suggestionToController']['keys']())this['_destroyController'](_0x29f3cd);for(const _0x19576b of this['_annotationViews']['values']())_0x19576b['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x23fd2e){return'model'in _0x23fd2e;}class Fe extends _0x45d531{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x1da7fe){this['editor']['plugins']['get'](d)['adapter']=_0x1da7fe;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x191ac9){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x191ac9);}['getSuggestions']({skipNotAttached:_0x1852e2=!0x1,toJSON:_0x528a25=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x1852e2,'toJSON':_0x528a25});}['getSuggestion'](_0x7c193d){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x7c193d);}}const p=['Pagination'];class re extends _0x45d531{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0xc1c77e=this['editor'];if(_0xc1c77e['config']['define']('trackChangesData.editorCreator',_0x47fce9=>{const _0x1783af=_0xc1c77e['model']['document']['getRootNames']()['reduce']((_0x3d7334,_0x2fb5d8)=>(_0x3d7334[_0x2fb5d8]='',_0x3d7334),{});return _0xc1c77e['constructor']['create'](_0x1783af,_0x47fce9);}),'function'!=typeof _0xc1c77e['config']['get']('trackChangesData')['editorCreator'])throw new _0x2b8fde('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x244d83){return P(this['editor'],!0x0,_0x244d83);}['getDataWithDiscardedSuggestions'](_0x11e9ed){return P(this['editor'],!0x1,_0x11e9ed);}}class Ge extends _0x45d531{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x46b14f){function _0x1d87f7(_0x6cb6c6){return _0x6cb6c6['map'](_0x41e2f2=>String['fromCharCode'](_0x41e2f2))['join']('');}super(_0x46b14f),this['result']='end',_0x46b14f[_0x1d87f7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1d87f7([0x76,0x69,0x65,0x77])][_0x1d87f7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1d87f7([0x61,0x75,0x74,0x6f]),_0x46b14f[_0x1d87f7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1d87f7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1d87f7([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1d87f7([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1d87f7([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 $e(_0x707188){return void 0x0!==_0x707188['getRootsAttributes'];}async function P(_0x34f337,_0x4545ed,_0x96610b){const _0x1b709d=_0x27bcd9(_0x34f337,p);_0x1b709d['plugins']['push'](d,Ge),_0x1b709d['rootsAttributes']=$e(_0x34f337)?_0x34f337['getRootsAttributes']():void 0x0;const _0x2d265c=document['createDocumentFragment'](),_0x5b0a12=_0x34f337['config']['get']('trackChangesData')['editorCreator'],_0x2c2eb3=await _0x5b0a12(_0x1b709d,()=>function(_0x288a76){const _0xb4d80e=document['createElement']('div');return _0x288a76['appendChild'](_0xb4d80e),_0xb4d80e;}(_0x2d265c));!function(_0x41e565,_0x308217){const _0x3e6204=_0x41e565['model']['document']['getRootNames']()['reduce']((_0xdd9be4,_0x4d25c6)=>(_0xdd9be4[_0x4d25c6]=_0x41e565['data']['get']({'rootName':_0x4d25c6}),_0xdd9be4),{}),_0x3f373d=_0x41e565['plugins']['get']('Users')['users']['map'](_0x20a030=>({'id':_0x20a030['id'],'name':_0x20a030['name']})),_0x187cc4=_0x41e565['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x22fcea=_0x41e565['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2ee1a1=_0x308217['plugins']['get']('Users'),_0x55726b=_0x308217['plugins']['get']('TrackChangesEditing'),_0x4a7739=_0x308217['plugins']['get']('CommentsRepository');for(const _0x25dd5a of _0x4a7739['getCommentThreads']())_0x25dd5a['remove']();for(const _0x2f0b1e of _0x3f373d)_0x2ee1a1['getUser'](_0x2f0b1e['id'])||_0x2ee1a1['addUser'](_0x2f0b1e);_0x2ee1a1['me']||_0x2ee1a1['useAnonymousUser']();for(const _0x1487c4 of _0x22fcea)_0x4a7739['addCommentThread'](_0x1487c4);for(const _0xa03149 of _0x187cc4)_0x55726b['addSuggestionData'](_0xa03149);_0x308217['data']['set'](_0x3e6204);}(_0x34f337,_0x2c2eb3),_0x2c2eb3['execute'](_0x4545ed?'acceptAllSuggestions':'discardAllSuggestions');const _0x46896e=$e(_0x2c2eb3)?_0x2c2eb3['getFullData'](_0x96610b):_0x2c2eb3['data']['get'](_0x96610b);return await _0x2c2eb3['destroy'](),_0x46896e;}class Me extends _0x1f1ddf{['options'];constructor(_0x48db5d,_0x4a57df){super(_0x48db5d),this['options']=_0x4a57df,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'](_0x188af6,_0x57c0d3){if(!this['element'])return;const _0x453f14=[];for(const [_0x8662d5,_0x5e0533]of _0x188af6){const _0x569ce1=document['createElement']('div');_0x569ce1['setAttribute']('data-ck-root-name',_0x8662d5),_0x569ce1['className']=_0x5e0533['classes']+'\x20ck-track-changes-preview__root-container',_0x569ce1['innerHTML']=_0x5e0533['content'],_0x453f14['push'](_0x569ce1);}_0x57c0d3(this['element'],_0x453f14),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x45171a{constructor(_0x273e71){super(_0x273e71),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x48d79e=this['editor'],_0x344119=_0x48d79e['locale'],_0x1acd2a=_0x48d79e['plugins']['get']('Dialog');let _0xc9a0bf;const _0x2f104f=function(_0x518707){const _0x4b9ff3={};if('editables'in _0x518707['ui']['view']){for(const [_0x20a9aa,_0x3aecf6]of Object['entries'](_0x518707['ui']['view']['editables']))_0x4b9ff3[_0x20a9aa]=_0x3aecf6['element'];}else _0x4b9ff3[_0x518707['model']['document']['getRootNames']()[0x0]]=_0x518707['ui']['view']['editable']['element'];return _0x4b9ff3;}(_0x48d79e),_0x2866c=function(_0xa6a2e6){let _0x4cff1c=0x0;for(const _0x15d3a2 of Object['values'](_0xa6a2e6))_0x4cff1c=Math['max'](_0x4cff1c,_0x15d3a2['getBoundingClientRect']()['width']);let _0x582d3d=0x0;for(const _0x18e7dc of Object['values'](_0xa6a2e6))_0x582d3d+=_0x18e7dc['getBoundingClientRect']()['height'];const _0x149d8a=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x2e557f=Math['min'](_0x582d3d,_0x149d8a);return{'width':_0x4cff1c,'height':_0x2e557f};}(_0x2f104f);_0x1acd2a['show']({'id':'finalContentPreview','title':o(_0x344119,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x344119,{'dialogRects':_0x2866c}),'onHide':()=>{_0xc9a0bf['detachFromDom']();},'onShow':()=>{_0x48d79e['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x27b7bf=>{const _0x413cd0=this['_standarizeRootsData'](_0x27b7bf,_0x48d79e,_0x2f104f);_0x1acd2a['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x413cd0,_0x48d79e['config']['get']('trackChanges.preview.renderFunction'));}),_0xc9a0bf=new _0x3b283f(_0x344119,[_0x1acd2a['view']]),_0xc9a0bf['attachToDom'](),_0xc9a0bf['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x48d79e['once']('destroy',()=>{_0xc9a0bf['detachFromDom']();});const _0x33b8c1=_0x1acd2a['view']['headerView']['class'];_0x1acd2a['view']['headerView']['class']=_0x33b8c1?_0x33b8c1+'\x20ck-reset_all':'ck-reset_all',_0x1acd2a['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x1acd2a['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x1dd7c7=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x58de80=_0x1dd7c7['previewMode'],_0x59f9d5={};if('$labels'===_0x58de80){for(const _0x4c7e7b of _0x1dd7c7['getMergeFieldsIds']())_0x59f9d5[_0x4c7e7b]=_0x1dd7c7['getLabel'](_0x4c7e7b)||_0x4c7e7b;}else{const _0x54b520='$defaultValues'===_0x58de80?_0x1dd7c7['getDefaultValues']():_0x1dd7c7['getDataSetValues'](_0x58de80,!0x0);for(const _0x1141bd of Object['entries'](_0x54b520)){const [_0x540a68,_0x3fbaa5]=_0x1141bd;_0x59f9d5[_0x540a68]=null!==_0x3fbaa5?_0x3fbaa5:_0x1dd7c7['getLabel'](_0x540a68)||_0x540a68;}}return{'mergeFieldsData':_0x59f9d5};}['_standarizeRootsData'](_0x20c349,_0x5d21e0,_0x2e9611){let _0x5db92e;if('string'==typeof _0x20c349){const _0x47b476=_0x5d21e0['model']['document']['getRootNames']()[0x0];_0x5db92e={[_0x47b476]:_0x20c349};}else _0x5db92e=_0x20c349;const _0x35e80d=this['_fixMediaEmbeds'](_0x5db92e,_0x5d21e0),_0x475e38=function(_0x2228ef,_0x50185e){for(const [_0x6d9020,_0xe34bf1]of _0x2228ef)_0xe34bf1['classes']=_0x50185e[_0x6d9020]['classList']['value']['replace']('ck-focused','');return _0x2228ef;}(this['_sortRoots'](_0x5d21e0)['reduce']((_0x243ed0,_0x56e9fb)=>(_0x243ed0['push']([_0x56e9fb,{'content':_0x35e80d[_0x56e9fb],'classes':''}]),_0x243ed0),[]),_0x2e9611);return _0x475e38;}['_fixMediaEmbeds'](_0x41e61d,_0x527d21){if(!_0x527d21['plugins']['has']('MediaEmbedEditing'))return _0x41e61d;const _0x3d8c91=_0x527d21['plugins']['get']('MediaEmbedEditing');for(const [_0x45f5ee,_0x1c74bb]of Object['entries'](_0x41e61d)){const _0x4fb6a8=document['createElement']('div');_0x4fb6a8['innerHTML']=_0x1c74bb,(_0x4fb6a8['querySelectorAll']('figure.media')['forEach'](_0x4d0588=>{const _0x2f0349=_0x4d0588['querySelector']('oembed');if(_0x2f0349){const _0x1e18c8=_0x2f0349['getAttribute']('url');if(_0x1e18c8){const _0x1c7559=_0x3d8c91['registry']['getMediaViewElement'](new _0x56fcb7(_0x527d21['editing']['view']['document']),_0x1e18c8,{'elementName':'','renderForEditingView':!0x0}),_0xabbe88=document['createElement']('div');_0xabbe88['classList']['add']('ck-media__wrapper'),_0x1c7559['render'](_0xabbe88,_0x527d21['editing']['view']['domConverter']),_0x2f0349['replaceWith'](_0xabbe88);}}}),_0x41e61d[_0x45f5ee]=_0x4fb6a8['innerHTML']);}return _0x41e61d;}['_sortRoots'](_0x3c20a3){if(!function(_0x1763fe){return void 0x0!==_0x1763fe['getRootsAttributes'];}(_0x3c20a3))return _0x3c20a3['model']['document']['getRootNames']();const _0x21c4d4=[],_0x11135e=new Map();for(const _0x4a1c79 of _0x3c20a3['model']['document']['getRootNames']()){const _0x449898=_0x3c20a3['editing']['view']['getDomRoot'](_0x4a1c79)['getClientRects']()['item'](0x0);_0x21c4d4['push'](_0x4a1c79),_0x11135e['set'](_0x4a1c79,_0x449898);}return _0x21c4d4['sort']((_0x46e565,_0x4469e3)=>{const _0x4f9e4f=_0x11135e['get'](_0x46e565),_0x390140=_0x11135e['get'](_0x4469e3);return _0x4f9e4f['y']-_0x390140['y']||_0x4f9e4f['x']-_0x390140['x'];}),_0x21c4d4;}}class He extends _0x45d531{static get['requires'](){return[re,_0xa81a7d];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x44b568){super(_0x44b568),_0x44b568['commands']['add']('previewFinalContent',new te(this['editor'])),_0x44b568['config']['define']('trackChanges.preview.renderFunction',(_0x3486ea,_0x39b045)=>{for(const _0x3ac290 of _0x39b045)_0x3486ea['appendChild'](_0x3ac290);});}}export{D as AcceptSuggestionCommand,ti as BaseSuggestionThreadView,M as DiscardSuggestionCommand,$ as ExecuteOnAllSuggestionsCommand,B as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,x as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Fe as TrackChanges,N as TrackChangesCommand,re as TrackChangesData,Ge as TrackChangesDataGetter,d as TrackChangesEditing,He as TrackChangesPreview,Me as _SuggestionsPreviewView,m as _TRACK_CHANGES_RENAME_ATTRIBUTE_KEY};