@ckeditor/ckeditor5-track-changes 44.2.0-alpha.6 → 44.2.0-alpha.7

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 (225) hide show
  1. package/build/track-changes.js +1 -1
  2. package/dist/index.js +3 -3
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/bg.js +1 -1
  12. package/dist/translations/bg.umd.js +1 -1
  13. package/dist/translations/bn.js +1 -1
  14. package/dist/translations/bn.umd.js +1 -1
  15. package/dist/translations/bs.js +1 -1
  16. package/dist/translations/bs.umd.js +1 -1
  17. package/dist/translations/ca.js +1 -1
  18. package/dist/translations/ca.umd.js +1 -1
  19. package/dist/translations/cs.js +1 -1
  20. package/dist/translations/cs.umd.js +1 -1
  21. package/dist/translations/da.js +1 -1
  22. package/dist/translations/da.umd.js +1 -1
  23. package/dist/translations/de-ch.js +1 -1
  24. package/dist/translations/de-ch.umd.js +1 -1
  25. package/dist/translations/de.js +1 -1
  26. package/dist/translations/de.umd.js +1 -1
  27. package/dist/translations/el.js +1 -1
  28. package/dist/translations/el.umd.js +1 -1
  29. package/dist/translations/en-au.js +1 -1
  30. package/dist/translations/en-au.umd.js +1 -1
  31. package/dist/translations/en-gb.js +1 -1
  32. package/dist/translations/en-gb.umd.js +1 -1
  33. package/dist/translations/en.js +1 -1
  34. package/dist/translations/en.umd.js +1 -1
  35. package/dist/translations/eo.js +1 -1
  36. package/dist/translations/eo.umd.js +1 -1
  37. package/dist/translations/es-co.js +1 -1
  38. package/dist/translations/es-co.umd.js +1 -1
  39. package/dist/translations/es.js +1 -1
  40. package/dist/translations/es.umd.js +1 -1
  41. package/dist/translations/et.js +1 -1
  42. package/dist/translations/et.umd.js +1 -1
  43. package/dist/translations/eu.js +1 -1
  44. package/dist/translations/eu.umd.js +1 -1
  45. package/dist/translations/fa.js +1 -1
  46. package/dist/translations/fa.umd.js +1 -1
  47. package/dist/translations/fi.js +1 -1
  48. package/dist/translations/fi.umd.js +1 -1
  49. package/dist/translations/fr.js +1 -1
  50. package/dist/translations/fr.umd.js +1 -1
  51. package/dist/translations/gl.js +1 -1
  52. package/dist/translations/gl.umd.js +1 -1
  53. package/dist/translations/gu.js +1 -1
  54. package/dist/translations/gu.umd.js +1 -1
  55. package/dist/translations/he.js +1 -1
  56. package/dist/translations/he.umd.js +1 -1
  57. package/dist/translations/hi.js +1 -1
  58. package/dist/translations/hi.umd.js +1 -1
  59. package/dist/translations/hr.js +1 -1
  60. package/dist/translations/hr.umd.js +1 -1
  61. package/dist/translations/hu.js +1 -1
  62. package/dist/translations/hu.umd.js +1 -1
  63. package/dist/translations/hy.js +1 -1
  64. package/dist/translations/hy.umd.js +1 -1
  65. package/dist/translations/id.js +1 -1
  66. package/dist/translations/id.umd.js +1 -1
  67. package/dist/translations/it.js +1 -1
  68. package/dist/translations/it.umd.js +1 -1
  69. package/dist/translations/ja.js +1 -1
  70. package/dist/translations/ja.umd.js +1 -1
  71. package/dist/translations/jv.js +1 -1
  72. package/dist/translations/jv.umd.js +1 -1
  73. package/dist/translations/kk.js +1 -1
  74. package/dist/translations/kk.umd.js +1 -1
  75. package/dist/translations/km.js +1 -1
  76. package/dist/translations/km.umd.js +1 -1
  77. package/dist/translations/kn.js +1 -1
  78. package/dist/translations/kn.umd.js +1 -1
  79. package/dist/translations/ko.js +1 -1
  80. package/dist/translations/ko.umd.js +1 -1
  81. package/dist/translations/ku.js +1 -1
  82. package/dist/translations/ku.umd.js +1 -1
  83. package/dist/translations/lt.js +1 -1
  84. package/dist/translations/lt.umd.js +1 -1
  85. package/dist/translations/lv.js +1 -1
  86. package/dist/translations/lv.umd.js +1 -1
  87. package/dist/translations/ms.js +1 -1
  88. package/dist/translations/ms.umd.js +1 -1
  89. package/dist/translations/nb.js +1 -1
  90. package/dist/translations/nb.umd.js +1 -1
  91. package/dist/translations/ne.js +1 -1
  92. package/dist/translations/ne.umd.js +1 -1
  93. package/dist/translations/nl.js +1 -1
  94. package/dist/translations/nl.umd.js +1 -1
  95. package/dist/translations/no.js +1 -1
  96. package/dist/translations/no.umd.js +1 -1
  97. package/dist/translations/oc.js +1 -1
  98. package/dist/translations/oc.umd.js +1 -1
  99. package/dist/translations/pl.js +1 -1
  100. package/dist/translations/pl.umd.js +1 -1
  101. package/dist/translations/pt-br.js +1 -1
  102. package/dist/translations/pt-br.umd.js +1 -1
  103. package/dist/translations/pt.js +1 -1
  104. package/dist/translations/pt.umd.js +1 -1
  105. package/dist/translations/ro.js +1 -1
  106. package/dist/translations/ro.umd.js +1 -1
  107. package/dist/translations/ru.js +1 -1
  108. package/dist/translations/ru.umd.js +1 -1
  109. package/dist/translations/si.js +1 -1
  110. package/dist/translations/si.umd.js +1 -1
  111. package/dist/translations/sk.js +1 -1
  112. package/dist/translations/sk.umd.js +1 -1
  113. package/dist/translations/sl.js +1 -1
  114. package/dist/translations/sl.umd.js +1 -1
  115. package/dist/translations/sq.js +1 -1
  116. package/dist/translations/sq.umd.js +1 -1
  117. package/dist/translations/sr-latn.js +1 -1
  118. package/dist/translations/sr-latn.umd.js +1 -1
  119. package/dist/translations/sr.js +1 -1
  120. package/dist/translations/sr.umd.js +1 -1
  121. package/dist/translations/sv.js +1 -1
  122. package/dist/translations/sv.umd.js +1 -1
  123. package/dist/translations/th.js +1 -1
  124. package/dist/translations/th.umd.js +1 -1
  125. package/dist/translations/ti.js +1 -1
  126. package/dist/translations/ti.umd.js +1 -1
  127. package/dist/translations/tk.js +1 -1
  128. package/dist/translations/tk.umd.js +1 -1
  129. package/dist/translations/tr.js +1 -1
  130. package/dist/translations/tr.umd.js +1 -1
  131. package/dist/translations/tt.js +1 -1
  132. package/dist/translations/tt.umd.js +1 -1
  133. package/dist/translations/ug.js +1 -1
  134. package/dist/translations/ug.umd.js +1 -1
  135. package/dist/translations/uk.js +1 -1
  136. package/dist/translations/uk.umd.js +1 -1
  137. package/dist/translations/ur.js +1 -1
  138. package/dist/translations/ur.umd.js +1 -1
  139. package/dist/translations/uz.js +1 -1
  140. package/dist/translations/uz.umd.js +1 -1
  141. package/dist/translations/vi.js +1 -1
  142. package/dist/translations/vi.umd.js +1 -1
  143. package/dist/translations/zh-cn.js +1 -1
  144. package/dist/translations/zh-cn.umd.js +1 -1
  145. package/dist/translations/zh.js +1 -1
  146. package/dist/translations/zh.umd.js +1 -1
  147. package/package.json +25 -25
  148. package/src/commands/acceptsuggestioncommand.js +1 -1
  149. package/src/commands/discardsuggestioncommand.js +1 -1
  150. package/src/commands/executeonallsuggestionscommand.js +1 -1
  151. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  152. package/src/commands/previewfinalcontentcommand.js +1 -1
  153. package/src/commands/trackchangescommand.js +1 -1
  154. package/src/index.js +1 -1
  155. package/src/integrations/aiassistant.js +1 -1
  156. package/src/integrations/alignment.js +1 -1
  157. package/src/integrations/basicstyles.js +1 -1
  158. package/src/integrations/blockquote.js +1 -1
  159. package/src/integrations/bookmark.js +1 -1
  160. package/src/integrations/casechange.js +1 -1
  161. package/src/integrations/ckbox.js +1 -1
  162. package/src/integrations/codeblock.js +1 -1
  163. package/src/integrations/comments.js +1 -1
  164. package/src/integrations/deletecommand.js +1 -1
  165. package/src/integrations/emoji.d.ts +17 -0
  166. package/src/integrations/emoji.js +23 -0
  167. package/src/integrations/entercommand.js +1 -1
  168. package/src/integrations/findandreplace.js +1 -1
  169. package/src/integrations/font.js +1 -1
  170. package/src/integrations/formatpainter.js +1 -1
  171. package/src/integrations/heading.js +1 -1
  172. package/src/integrations/highlight.js +1 -1
  173. package/src/integrations/horizontalline.js +1 -1
  174. package/src/integrations/htmlembed.js +1 -1
  175. package/src/integrations/image.js +1 -1
  176. package/src/integrations/imagereplace.js +1 -1
  177. package/src/integrations/imagestyle.js +1 -1
  178. package/src/integrations/importword.js +1 -1
  179. package/src/integrations/indent.js +1 -1
  180. package/src/integrations/inputcommand.js +1 -1
  181. package/src/integrations/legacylist.js +1 -1
  182. package/src/integrations/legacylistproperties.js +1 -1
  183. package/src/integrations/link.js +1 -1
  184. package/src/integrations/list.js +1 -1
  185. package/src/integrations/listproperties.js +1 -1
  186. package/src/integrations/mediaembed.js +1 -1
  187. package/src/integrations/mention.js +1 -1
  188. package/src/integrations/mergefields.js +1 -1
  189. package/src/integrations/multilevellist.js +1 -1
  190. package/src/integrations/pagebreak.js +1 -1
  191. package/src/integrations/paragraph.js +1 -1
  192. package/src/integrations/removeformat.js +1 -1
  193. package/src/integrations/replacesourcecommand.js +1 -1
  194. package/src/integrations/restrictededitingmode.js +1 -1
  195. package/src/integrations/shiftentercommand.js +1 -1
  196. package/src/integrations/standardeditingmode.js +1 -1
  197. package/src/integrations/style.js +1 -1
  198. package/src/integrations/table.js +1 -1
  199. package/src/integrations/tablecaption.js +1 -1
  200. package/src/integrations/tableclipboard.js +1 -1
  201. package/src/integrations/tablecolumnresize.js +1 -1
  202. package/src/integrations/tableheadings.js +1 -1
  203. package/src/integrations/tablemergesplit.js +1 -1
  204. package/src/integrations/tableofcontents.js +1 -1
  205. package/src/integrations/tableproperties.js +1 -1
  206. package/src/integrations/template.js +1 -1
  207. package/src/integrations/title.js +1 -1
  208. package/src/integrations/undo.js +1 -1
  209. package/src/integrations/uploadcare.js +1 -1
  210. package/src/integrations/utils.js +1 -1
  211. package/src/suggestion.js +2 -2
  212. package/src/suggestiondescriptionfactory.js +1 -1
  213. package/src/trackchanges.js +1 -1
  214. package/src/trackchangesdata.js +1 -1
  215. package/src/trackchangesediting.d.ts +2 -1
  216. package/src/trackchangesediting.js +1 -1
  217. package/src/trackchangespreview.js +1 -1
  218. package/src/trackchangesui.js +1 -1
  219. package/src/ui/suggestioncontroller.js +2 -2
  220. package/src/ui/view/basesuggestionthreadview.js +1 -1
  221. package/src/ui/view/suggestionthreadview.js +1 -1
  222. package/src/ui/view/suggestionview.js +1 -1
  223. package/src/ui/view/trackchangespreviewview.js +1 -1
  224. package/src/utils/common-translations.js +1 -1
  225. package/src/utils/utils.js +1 -1
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as Xt,Plugin as _0x5d703b,PendingActions as _0x29fa0d,icons as _0x33fdfa}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x5370f3,ObservableMixin as _0x5d8e8e,uid as _0x1c060f,priorities as _0x52a047,insertToPriorityArray as _0x2c9a16,logWarning as _0x57e6aa,getEnvKeystrokeText as _0x5caee9,FocusTracker as _0x516349,KeystrokeHandler as _0x4b014a,Collection as _0xd37b29}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x2069db,View as _0x3dfbdc,ViewCollection as _0x42de76,FocusCycler as _0x3b2a46,ViewModel as _0x5b4f7c,createDropdown as _0x4e24d2,SplitButtonView as _0x9de51c,addListToDropdown as _0xd64f4d,MenuBarMenuView as _0x305c2c,MenuBarMenuListView as _0xf66922,ListSeparatorView as _0x661b45,MenuBarMenuListItemView as _0xfa88bb,MenuBarMenuListItemButtonView as _0x3314c5,BodyCollection as _0x4d1af0,Dialog as _0x12483d}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x56e92b,hashObject as _0x49434c,surroundingMarkersDetector as _0x5d346e,FOCUS_ANNOTATION_KEYSTROKE as _0x2170ce,AriaDescriptionView as _0x1e1df4,setupThreadKeyboardNavigation as _0x4284c1,trimHtml as _0x16a758,UserView as _0xe4d37b,LateFocusButtonView as _0x41e2ec,getDateTimeFormatter as _0x470c2c,getAllMarkersDomElementsSorted as _0x2c4f3d,sanitizeEditorConfig as _0x1c3ca6}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x5763f1,LiveRange as _0x4b4bbe,LivePosition as _0x305aa6,DowncastWriter as _0x293891}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x50a82b,toWidget as _0x527930}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x4fadf9,set as _0x32326c,isEqual as _0x6fbfc5,unset as _0x48dd6b,omit as Ut}from'lodash-es';import{Delete as _0x1d2e4c,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x40c153,ShiftEnter as _0x21a47d}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Xt{['_enabledCommands'];constructor(_0x263ec4,_0xfbebc0){super(_0x263ec4),this['_enabledCommands']=_0xfbebc0,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 _0xd73ecc of this['editor']['commands']['commands']())_0xd73ecc['affectsData']&&!this['_enabledCommands']['has'](_0xd73ecc)&&_0xd73ecc['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x549cf8 of this['editor']['commands']['commands']())_0x549cf8['affectsData']&&!this['_enabledCommands']['has'](_0x549cf8)&&_0x549cf8['clearForceDisabled']('TrackChangesCommand');}}class O extends Xt{['_suggestions'];constructor(_0x58922a,_0x262c22){super(_0x58922a),this['_suggestions']=_0x262c22,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4e9757){const _0x5abf98=this['_suggestions']['get'](_0x4e9757);if(!_0x5abf98)throw new _0x5370f3('track-changes-accept-suggestion-not-found',this);const _0x20caff=_0x5abf98['getRanges']();this['editor']['model']['canEditAt'](_0x20caff)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x5abf98);}}class R extends Xt{['_suggestions'];constructor(_0x37fce5,_0x43e9c8){super(_0x37fce5),this['_suggestions']=_0x43e9c8,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4ba3ad){const _0x47b809=this['_suggestions']['get'](_0x4ba3ad);if(!_0x47b809)throw new _0x5370f3('track-changes-discard-suggestion-not-found',this);const _0x5d558a=_0x47b809['getRanges']();this['editor']['model']['canEditAt'](_0x5d558a)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x47b809);}}function as(_0x38d21f,_0x205955){let _0x807fc5='';return _0x807fc5+=_0x38d21f['split']('*')['map']((_0x16ce90,_0x2f2ef4)=>_0x2f2ef4%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x16ce90)+'</span>':nn(_0x16ce90))['join'](''),_0x205955&&(_0x807fc5+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x205955['value']+'\x22\x20title=\x22'+_0x205955['title']+'\x22></span>'),_0x807fc5;}function nn(_0x1da858){const _0x395e23=document['createElement']('span');return _0x395e23['innerText']=_0x1da858,_0x395e23['innerHTML'];}function Yt(_0x34abec){return _0x34abec['sort']((_0x834506,_0x5dee0c)=>'deletion'==_0x834506['type']&&'deletion'!=_0x5dee0c['type']?-0x1:'deletion'!=_0x834506['type']&&'deletion'==_0x5dee0c['type']?0x1:0x0);}function to(_0x5ebe44,_0x201af0){let _0x1c0d67,_0x33ba8d=0x0;const _0x2cafab=[],_0x4d4a4a=_0x201af0['schema'];for(;_0x33ba8d<_0x5ebe44['length'];){const _0x556f77=_0x5ebe44[_0x33ba8d],_0x242400=_0x5ebe44[_0x33ba8d+0x1];_0x1c0d67||(_0x1c0d67=_0x201af0['createPositionBefore'](_0x556f77)),on(_0x201af0,_0x556f77,_0x242400)||(_0x2cafab['push'](_0x201af0['createRange'](_0x1c0d67,_0x4d4a4a['isObject'](_0x556f77)?_0x201af0['createPositionAfter'](_0x556f77):_0x201af0['createPositionAt'](_0x556f77,'end'))),_0x1c0d67=null),_0x33ba8d++;}return _0x2cafab;}function on(_0x46419e,_0x19b886,_0x2808c1){if(!_0x2808c1)return!0x1;const _0x4c3338=_0x46419e['createPositionAfter'](_0x19b886),_0x2e6371=_0x46419e['createPositionBefore'](_0x2808c1);return _0x4c3338['isTouching'](_0x2e6371);}function Zt(_0x41fd5d,_0x3e65e9,_0x36350f){for(;_0x36350f['length'];){const _0x347736=_0x36350f['splice'](0x0,0x64);_0x41fd5d['change'](()=>{for(const _0x1232f5 of _0x347736)_0x1232f5['isInContent']&&_0x3e65e9['execute'](_0x1232f5['id']);});}}class x extends Xt{['_command'];['_suggestions'];constructor(_0x186b91,_0x52b33f,_0x6b90f9){super(_0x186b91),this['_command']=_0x52b33f,this['_suggestions']=_0x6b90f9,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1009b9=Array['from'](this['_suggestions']['values']())['some'](_0x10830c=>_0x10830c['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x1009b9;}['execute'](){const _0xc7ab7a=Yt(Array['from'](this['_suggestions']['values']()));for(const _0x18bb3a of _0xc7ab7a){const _0x3d6899=_0x18bb3a['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3d6899))return;}Zt(this['editor']['model'],this['_command'],_0xc7ab7a);}}class E extends Xt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x5d70af,_0x27960d,_0xee76b8){super(_0x5d70af),this['_command']=_0x27960d,this['_suggestions']=_0xee76b8,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x35709c=this['editor']['model']['document']['selection'],_0x33e25a=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x2b7739,_0x3aeb22){const _0x54be89=Array['from'](_0x2b7739['getRanges']()),_0x162a8f=new Set();for(const _0x4e6ada of _0x3aeb22)if(_0x4e6ada['isInContent']){for(const _0x5d589b of _0x54be89)for(const _0x3fb04d of _0x4e6ada['getRanges']())(_0x5d589b['isIntersecting'](_0x3fb04d)||_0x2b7739['isCollapsed']&&!_0x4e6ada['isMultiRange']&&_0x4e6ada['next']&&_0x3fb04d['end']['isTouching'](_0x5d589b['start']))&&_0x162a8f['add'](_0x4e6ada);}return _0x162a8f;}(_0x35709c,_0x33e25a),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x4489ce=Yt(Array['from'](this['_selectedSuggestions']));for(const _0x26e28a of _0x4489ce){const _0x364191=_0x26e28a['getRanges']();if(!this['editor']['model']['canEditAt'](_0x364191))return;}Zt(this['editor']['model'],this['_command'],_0x4489ce);}}class u extends/* #__PURE__ -- @preserve */
24
- _0x5d8e8e(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x173471,_0x52235a){super(),this['id']=_0x52235a['id'],this['type']=_0x52235a['type'],this['subType']=_0x52235a['subType']||null,this['author']=_0x52235a['author'],this['creator']=_0x52235a['creator']||_0x52235a['author'],this['isExternal']=Boolean(_0x52235a['attributes']&&_0x52235a['attributes']['@external']),this['data']=null,this['_model']=_0x173471,this['_onAccept']=_0x52235a['onAccept'],this['_onDiscard']=_0x52235a['onDiscard'],this['_onAttributesChange']=_0x52235a['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x52235a['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 _0x46f2be=this;for(;_0x46f2be['previous'];)_0x46f2be=_0x46f2be['previous'];return _0x46f2be;}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'](_0x14adbc){this['_markerNames']['add'](_0x14adbc);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x47d847=>this['_model']['markers']['get'](_0x47d847))['filter'](_0x4bc790=>_0x4bc790);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x2facad=>{for(const _0x356215 of this['getMarkers']())_0x2facad['removeMarker'](_0x356215);}),this['_markerNames']['clear']();}['removeMarker'](_0x4b37fb){this['_model']['change'](_0x34ac4e=>{_0x34ac4e['removeMarker'](_0x4b37fb);}),this['_markerNames']['delete'](_0x4b37fb);}['addRange'](_0x484b74){const _0x7aefeb='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x7aefeb),this['_model']['change'](_0x498a48=>{_0x498a48['addMarker'](_0x7aefeb,{'range':_0x484b74,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x253cb3){for(const _0x120351 of this['getRanges']())if(_0x120351['isIntersecting'](_0x253cb3))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x1ed29c=>_0x1ed29c['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x11c55f,_0x17c4ea)=>[..._0x11c55f,..._0x17c4ea['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x1534fe=this['getRanges']();if(0x1!=_0x1534fe['length'])return null;const _0x3549ee=_0x1534fe[0x0],_0x2da0d4=_0x3549ee['start']['nodeAfter'],_0x23d1ef=_0x3549ee['end']['nodeBefore'];return _0x2da0d4 instanceof _0x5763f1?_0x2da0d4!=_0x23d1ef?null:_0x2da0d4: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 _0x4ba042=[];let _0x2f6c40=this['head'];for(;_0x2f6c40;)_0x4ba042['push'](_0x2f6c40),_0x2f6c40=_0x2f6c40['next'];return _0x4ba042;}['setAttribute'](_0x5ce117,_0x3dc730){const _0x15a620=_0x4fadf9(this['attributes']);_0x32326c(_0x15a620,_0x5ce117,_0x3dc730),_0x6fbfc5(_0x15a620,this['attributes'])||(this['attributes']=_0x15a620,this['_onAttributesChange'](_0x15a620));}['removeAttribute'](_0x1f2f7e){const _0xda876a=_0x4fadf9(this['attributes']);_0x48dd6b(_0xda876a,_0x1f2f7e),_0x6fbfc5(_0xda876a,this['attributes'])||(this['attributes']=_0xda876a,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 _0x1c060f()['substr'](0x1,0x5);}}function o(_0x20b022,_0x1b41af,_0x29e395){const _0x43f8ab=_0x20b022['t'],t=_0x20b022['t'];switch(_0x1b41af){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',_0x29e395);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x29e395);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x29e395);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x29e395);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x29e395);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',_0x29e395);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x29e395);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',_0x29e395);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x29e395);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x29e395);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x29e395);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x29e395);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x29e395);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x29e395);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x29e395);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x29e395);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x29e395);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x29e395);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x29e395);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x29e395);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x29e395);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x29e395);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x29e395);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x29e395);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'},_0x29e395);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x29e395);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x29e395);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x29e395);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x29e395);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x29e395);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'},_0x29e395);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x29e395);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x29e395);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x29e395);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x29e395);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'},_0x29e395);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x29e395);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'},_0x29e395);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'},_0x29e395);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x29e395);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'},_0x29e395);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x29e395);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'},_0x29e395);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x29e395);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x29e395);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'},_0x29e395);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x29e395);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 _0x43f8ab({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x29e395);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x43f8ab({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x29e395);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x29e395);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'},_0x29e395);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'},_0x29e395);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'},_0x29e395);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x1b41af;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x2939ad,_0x2af6f8){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x2939ad,this['_locale']=_0x2af6f8;}['getDescriptions'](_0x302efb){const _0x1484c6=[],_0x2ca63e=new Set(),_0x1c1bcb=new Set();for(let _0x46d823=0x0;_0x46d823<_0x302efb['length'];_0x46d823++){const _0x383d5f=_0x302efb[_0x46d823];if(!_0x383d5f['isInContent'])continue;const _0x516b85=this['_handleCustomCallbackDescription'](_0x383d5f);if(_0x516b85){if(null!=_0x383d5f['subType']){if(_0x2ca63e['has'](_0x383d5f['subType']))continue;_0x2ca63e['add'](_0x383d5f['subType']);}_0x1484c6['push'](_0x516b85);}else{if('attribute'!=_0x383d5f['type'])'insertion'!=_0x383d5f['type']&&'deletion'!=_0x383d5f['type']||this['_handleInsertRemoveSuggestionDescription'](_0x1484c6,_0x383d5f,_0x302efb[_0x46d823+0x1]);else{const _0x90f581=_0x383d5f['data']['key'];if(_0x1c1bcb['has'](_0x90f581))continue;_0x1c1bcb['add'](_0x383d5f['data']['key']),_0x90f581==m?this['_handleRenameSuggestionDescription'](_0x1484c6,_0x383d5f):this['_handleAttributeSuggestionDescription'](_0x1484c6,_0x383d5f);}}}return this['_resolveDescriptionItems'](_0x1484c6);}['registerDescriptionCallback'](_0x59b87d){this['_customCallbacks']['push'](_0x59b87d);}['registerElementLabel'](_0x54f1ee,_0x2943f4,_0x47c56e=_0x52a047['normal']){'function'==typeof _0x54f1ee?_0x2c9a16(this['_itemLabelsCallbacks'],{'matchingCallback':_0x54f1ee,'label':_0x2943f4,'priority':_0x47c56e}):this['_itemLabels']['set'](_0x54f1ee,_0x2943f4);}['registerAttributeLabel'](_0x12b628,_0x4a0ec8){this['_attributeLabels']['set'](_0x12b628,_0x4a0ec8);}['getItemLabel'](_0x173775,_0x5a6986=0x1){let _0x36b492;for(const _0x15aa2c of this['_itemLabelsCallbacks'])if(_0x15aa2c['matchingCallback'](_0x173775)){_0x36b492=_0x15aa2c['label'];break;}return _0x36b492||(_0x36b492=this['_itemLabels']['get'](_0x173775['name'])),_0x36b492?_0x36b492(_0x5a6986):0x1!==_0x5a6986?_0x5a6986+'\x20'+_0x173775['name']+'s':''+_0x173775['name'];}['_addDescriptionItems'](_0x1b6855,_0x2f00d5){const _0x20efb1=_0x2f00d5['getFirstRange']()['getWalker'](),_0x44abe3='insertion'==_0x2f00d5['type']?'add':'remove';for(const _0x1599ee of _0x20efb1){const _0x24086f=_0x1599ee['item'],_0x2dedb3=_0x1b6855[_0x1b6855['length']-0x1];if(_0x24086f['is']('$textProxy'))_0x2dedb3&&_0x2dedb3['type']['indexOf']('Container')>-0x1&&_0x1b6855['pop'](),_0x2dedb3&&'text'==_0x2dedb3['type']?_0x2dedb3[_0x44abe3]+=_0x24086f['data']:_0x1b6855['push']({'type':'text','add':'add'==_0x44abe3?_0x24086f['data']:'','remove':'remove'==_0x44abe3?_0x24086f['data']:''});else{if(this['_schema']['isObject'](_0x24086f)){const _0x990c14=_0x24086f;if(_0x2dedb3&&_0x2dedb3['type']['indexOf']('Container')>-0x1&&_0x1b6855['pop'](),'elementEnd'==_0x1599ee['type'])continue;_0x2dedb3&&_0x2dedb3['type']==_0x44abe3+'Object'&&_0x2dedb3['element']['name']==_0x990c14['name']?_0x2dedb3['quantity']++:_0x1b6855['push']({'type':_0x44abe3+'Object','element':_0x990c14,'quantity':0x1}),_0x20efb1['skip'](_0x2b425b=>!('elementEnd'==_0x2b425b['type']&&_0x2b425b['item']==_0x24086f));}else{if(this['_schema']['checkChild'](_0x24086f,'$text')||_0x24086f['is']('element','softBreak')){const _0x51a80d=_0x24086f;if('add'==_0x44abe3&&'elementStart'==_0x1599ee['type']||'remove'==_0x44abe3&&'elementEnd'==_0x1599ee['type'])continue;if(_0x2dedb3&&-0x1==_0x2dedb3['type']['indexOf']('Container')){'text'==_0x2dedb3['type']&&(_0x2dedb3[_0x44abe3]+='\x0a');continue;}let _0xc460c2;if(_0xc460c2='add'==_0x44abe3?_0x51a80d['nextSibling']&&!this['_schema']['isObject'](_0x51a80d['nextSibling'])?_0x51a80d['nextSibling']:null:_0x51a80d['previousSibling']&&!this['_schema']['isObject'](_0x51a80d['previousSibling'])?_0x51a80d['previousSibling']:null,_0x51a80d['isEmpty']||_0xc460c2&&_0xc460c2['isEmpty']){const _0x2999b5=_0xc460c2&&_0xc460c2['isEmpty']?_0xc460c2:_0x51a80d;_0x2dedb3&&_0x2dedb3['type']==_0x44abe3+'EmptyContainer'&&_0x2dedb3['element']['name']==_0x2999b5['name']?_0x2dedb3['quantity']++:_0x1b6855['push']({'type':_0x44abe3+'EmptyContainer','element':_0x2999b5,'quantity':0x1});}else _0x1b6855['push']({'type':_0x44abe3+'Container','element':_0x51a80d});}}}}}['_resolveDescriptionItems'](_0x3d38e9){const _0x422871=this['_locale'],_0x2915c2=[],_0x2e07c2=[],_0x4dacd1=[];for(const _0x5a4fb8 of _0x3d38e9)switch(_0x5a4fb8['type']){case'text':if(_0x5a4fb8['add']=_0x5a4fb8['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x5a4fb8['remove']=_0x5a4fb8['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x5a4fb8['add']&&''!=_0x5a4fb8['remove']){_0x2915c2['push']({'type':'replace','content':o(_0x422871,'REPLACE_TEXT',['\x22'+_0x5a4fb8['remove']+'\x22','\x22'+_0x5a4fb8['add']+'\x22'])});continue;}if(null!=_0x5a4fb8['add']['match'](/^ +$/)){_0x2915c2['push']({'type':'insertion','content':o(_0x422871,'*Insert:*\x20%0',o(_0x422871,'ELEMENT_SPACE',_0x5a4fb8['add']['length']))});continue;}if(null!=_0x5a4fb8['remove']['match'](/^ +$/)){_0x2915c2['push']({'type':'deletion','content':o(_0x422871,'*Remove:*\x20%0',o(_0x422871,'ELEMENT_SPACE',_0x5a4fb8['remove']['length']))});continue;}if(''!=_0x5a4fb8['add']){_0x2915c2['push']({'type':'insertion','content':o(_0x422871,'*Insert:*\x20%0','\x22'+_0x5a4fb8['add']+'\x22')});continue;}_0x2915c2['push']({'type':'deletion','content':o(_0x422871,'*Remove:*\x20%0','\x22'+_0x5a4fb8['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x2915c2['push']({'type':'insertion','content':o(_0x422871,'*Insert:*\x20%0',this['getItemLabel'](_0x5a4fb8['element'],_0x5a4fb8['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x2915c2['push']({'type':'deletion','content':o(_0x422871,'*Remove:*\x20%0',this['getItemLabel'](_0x5a4fb8['element'],_0x5a4fb8['quantity']))});continue;case'addContainer':_0x2915c2['push']({'type':'insertion','content':o(_0x422871,'*Split:*\x20%0',this['getItemLabel'](_0x5a4fb8['element'],_0x5a4fb8['quantity']))});continue;case'removeContainer':_0x2915c2['push']({'type':'deletion','content':o(_0x422871,'*Merge:*\x20%0',this['getItemLabel'](_0x5a4fb8['element'],_0x5a4fb8['quantity']))});continue;case'addFormat':_0x2e07c2['push'](_0x5a4fb8['key']);continue;case'removeFormat':_0x4dacd1['push'](_0x5a4fb8['key']);continue;default:_0x2915c2['push'](_0x5a4fb8);}if(_0x2e07c2['length']){const _0x207d21=_0x2e07c2['map'](_0x23c363=>this['_attributeLabels']['has'](_0x23c363)?this['_attributeLabels']['get'](_0x23c363):_0x23c363)['join'](',\x20');_0x2915c2['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x207d21)});}if(_0x4dacd1['length']){const _0x4c6ff8=_0x4dacd1['map'](_0x4ff61f=>this['_attributeLabels']['has'](_0x4ff61f)?this['_attributeLabels']['get'](_0x4ff61f):_0x4ff61f)['join'](',\x20');_0x2915c2['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x4c6ff8)});}return _0x2915c2;}['_handleCustomCallbackDescription'](_0x737163){for(const _0x17628e of this['_customCallbacks']){const _0x1ba094=_0x17628e(_0x737163);if(_0x1ba094&&'type'in _0x1ba094)return _0x1ba094;}}['_handleAttributeSuggestionDescription'](_0x590aa4,_0x58ce1b){const _0x27261d=_0x58ce1b['data'],_0x1e044a=void 0x0===_0x27261d['newValue']?'removeFormat':'addFormat';_0x590aa4['push']({'type':_0x1e044a,'key':_0x27261d['key']});}['_handleRenameSuggestionDescription'](_0x65fee6,_0x3a5c6c){_0x65fee6['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x3a5c6c['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x354f49,_0x38d5bb,_0x4b82c5){if(this['_addDescriptionItems'](_0x354f49,_0x38d5bb),_0x4b82c5&&_0x4b82c5['getFirstRange']()&&!_0x38d5bb['getFirstRange']()['end']['isEqual'](_0x4b82c5['getFirstRange']()['start'])){const _0x32f1c7=_0x354f49[_0x354f49['length']-0x1],_0x289215='insertion'==_0x38d5bb['type']?'add':'remove';_0x32f1c7&&'text'==_0x32f1c7['type']&&(_0x32f1c7[_0x289215]+='\x0a');}}}class U extends _0x5d703b{['afterInit'](){const _0x2b6313=this['editor'],_0x49eba4=_0x2b6313['plugins']['get']('TrackChangesEditing');_0x2b6313['commands']['get']('showAIAssistant')&&_0x49eba4['enableCommand']('showAIAssistant');}}class V extends _0x5d703b{['afterInit'](){const _0x1f7381=this['editor'],_0x6d1c1a=_0x1f7381['locale'];if(!_0x1f7381['plugins']['has']('AlignmentEditing'))return;const _0x6386b1=_0x1f7381['plugins']['get']('TrackChangesEditing');_0x6386b1['enableDefaultAttributesIntegration']('alignment'),_0x6386b1['registerBlockAttribute']('alignment'),_0x6386b1['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x6d1c1a,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c7d76=this['editor'],_0x1b9d63=_0x4c7d76['locale'];_0x4c7d76['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4a11f6=>{if('formatBlock'!=_0x4a11f6['type'])return;const {data:_0xb0054c}=_0x4a11f6;if(_0xb0054c&&'alignment'==_0xb0054c['commandName']){const _0x417ef1=_0xb0054c['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x1b9d63,'*Format:*\x20%0',function(_0x5cc384){switch(_0x5cc384){case'left':return o(_0x1b9d63,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x1b9d63,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x1b9d63,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x1b9d63,'FORMAT_JUSTIFY_TEXT');}}(_0x417ef1))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x5d703b{['afterInit'](){const _0x36d735=this['editor'],_0x37253c=_0x36d735['plugins']['get']('TrackChangesEditing'),_0x3b7872=_0x36d735['locale'];for(const _0x340a26 of ti){if(!_0x36d735['plugins']['has'](_0x340a26))continue;const _0x3339e4=_0x340a26['slice'](0x0,-0x7)['toLowerCase'](),_0x5c6eac='FORMAT_'+_0x3339e4['toUpperCase']();_0x37253c['enableDefaultAttributesIntegration'](_0x3339e4),_0x37253c['registerInlineAttribute'](_0x3339e4),_0x37253c['descriptionFactory']['registerAttributeLabel'](_0x3339e4,o(_0x3b7872,_0x5c6eac));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x357f43=this['editor'],_0x5ea81c=_0x357f43['locale'],_0x472ca0=_0x357f43['plugins']['get']('TrackChangesEditing');function _0x539e7f(_0x10304c,_0x24aae2){_0x472ca0['descriptionFactory']['registerDescriptionCallback'](_0x3a270e=>{if('formatInline'!=_0x3a270e['type'])return;const {data:_0x11d28a}=_0x3a270e;return _0x11d28a&&_0x11d28a['commandName']===_0x10304c?_0x11d28a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5ea81c,'*Format:*\x20%0',_0x24aae2)}:{'type':'format','content':o(_0x5ea81c,'*Remove\x20format:*\x20%0',_0x24aae2)}:void 0x0;});}_0x539e7f('bold',o(_0x5ea81c,'FORMAT_BOLD')),_0x539e7f('italic',o(_0x5ea81c,'FORMAT_ITALIC')),_0x539e7f('underline',o(_0x5ea81c,'FORMAT_UNDERLINE')),_0x539e7f('code',o(_0x5ea81c,'FORMAT_CODE')),_0x539e7f('strikethrough',o(_0x5ea81c,'FORMAT_STRIKETHROUGH')),_0x539e7f('subscript',o(_0x5ea81c,'FORMAT_SUBSCRIPT')),_0x539e7f('superscript',o(_0x5ea81c,'FORMAT_SUPERSCRIPT'));}}class F extends _0x5d703b{['afterInit'](){const _0x37dbf0=this['editor'],_0x402d0f=_0x37dbf0['locale'];if(!_0x37dbf0['plugins']['has']('BlockQuoteEditing'))return;const _0x4953d0=_0x37dbf0['plugins']['get']('TrackChangesEditing'),_0x4167f6=this['editor']['commands']['get']('blockQuote');_0x4953d0['enableCommand']('blockQuote',(_0x4dfb48,_0x5ea0b0={})=>{const _0x3d0f03=this['editor']['model']['document']['selection'],_0x5eb886=_0x5ea0b0&&void 0x0!==_0x5ea0b0['forceValue']?_0x5ea0b0['forceValue']:!_0x4167f6['value'];let _0x2e3855=[];if(_0x5eb886){const _0x551ca2=Array['from'](_0x3d0f03['getSelectedBlocks']())['filter'](_0x9e1fa7=>oo(_0x9e1fa7)||function(_0x33d402,_0x20647f){const _0x204400=_0x20647f['checkChild'](_0x33d402['parent'],'blockQuote'),_0x1276e1=_0x20647f['checkChild'](['$root','blockQuote'],_0x33d402);return _0x204400&&_0x1276e1;}(_0x9e1fa7,this['editor']['model']['schema']));_0x2e3855=to(_0x551ca2,_0x37dbf0['model']);}else{const _0x444aa8=Array['from'](_0x3d0f03['getSelectedBlocks']())['filter'](_0x1cd0a7=>oo(_0x1cd0a7));_0x2e3855=to(_0x444aa8,_0x37dbf0['model']);}_0x37dbf0['model']['change'](()=>{for(const _0x40b16d of _0x2e3855)_0x4953d0['markBlockFormat'](_0x40b16d,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x5eb886}]});});}),_0x4953d0['descriptionFactory']['registerDescriptionCallback'](_0x3f0f73=>{const {data:_0x3f0d26}=_0x3f0f73;if(_0x3f0d26&&'blockQuote'==_0x3f0d26['commandName']){const _0x5aee48=o(_0x402d0f,'ELEMENT_BLOCK_QUOTE');return _0x3f0d26['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x402d0f,'*Set\x20format:*\x20%0',_0x5aee48)}:{'type':'format','content':o(_0x402d0f,'*Remove\x20format:*\x20%0',_0x5aee48)};}});}}function oo(_0x199211){return'blockQuote'==_0x199211['parent']['name'];}class L extends _0x5d703b{['afterInit'](){const _0x33c238=this['editor'],_0x172ff1=_0x33c238['locale'],_0x3e0ee2=_0x33c238['plugins']['get']('TrackChangesEditing');_0x33c238['plugins']['has']('BookmarkEditing')&&(_0x3e0ee2['enableCommand']('insertBookmark'),_0x3e0ee2['enableDefaultAttributesIntegration']('updateBookmark'),_0x3e0ee2['registerBlockAttribute']('bookmarkId'),_0x3e0ee2['descriptionFactory']['registerDescriptionCallback'](_0x418f38=>{if('insertion'!=_0x418f38['type']&&'deletion'!=_0x418f38['type']&&'attribute'!=_0x418f38['type'])return;const _0x523835=_0x418f38['getContainedElement']();if(null==_0x523835)return;if(!_0x523835['is']('element','bookmark'))return;const _0x58bd94=_0x523835['getAttribute']('bookmarkId');if('insertion'==_0x418f38['type'])return{'type':'insertion','content':o(_0x172ff1,'*Insert:*\x20%0','\x22'+_0x58bd94+'\x22\x20'+o(_0x172ff1,'ELEMENT_BOOKMARK'))};if('deletion'==_0x418f38['type'])return{'type':'deletion','content':o(_0x172ff1,'*Remove:*\x20%0','\x22'+_0x58bd94+'\x22\x20'+o(_0x172ff1,'ELEMENT_BOOKMARK'))};const {data:_0x2a584d}=_0x418f38;if(!_0x2a584d||'bookmarkId'!=_0x2a584d['key'])return;return{'type':'format','content':o(_0x172ff1,'*Set\x20bookmark:*\x20%0','\x22'+_0x2a584d['newValue']+'\x22')};}));}}class J extends _0x5d703b{['afterInit'](){const _0xfe3d04=this['editor'];_0xfe3d04['plugins']['has']('CaseChange')&&(_0xfe3d04['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0xfe3d04['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0xfe3d04['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x5d703b{['afterInit'](){const _0x165334=this['editor'];_0x165334['commands']['get']('ckbox')&&_0x165334['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x5d703b{['afterInit'](){const _0x1c9730=this['editor'];if(!_0x1c9730['plugins']['has']('CodeBlock'))return;const _0x52311e=_0x1c9730['plugins']['get']('TrackChangesEditing'),_0x38f450=_0x1c9730['locale'],_0x1b510a=_0x1c9730['config']['get']('codeBlock')['languages'],_0x1d43e=_0x1c9730['commands']['get']('codeBlock');_0x52311e['enableCommand']('indentCodeBlock'),_0x52311e['enableCommand']('outdentCodeBlock'),_0x52311e['enableCommand']('codeBlock',(_0x2be6ed,_0x3be7d3={})=>{const _0x20ec98=_0x1c9730['model'],_0x2dc39c=_0x1c9730['model']['document']['selection'],_0x368883=_0x3be7d3&&void 0x0!==_0x3be7d3['forceValue']?_0x3be7d3['forceValue']:!_0x1d43e['value'];let _0x4fe2b9;_0x3be7d3['language']||(_0x3be7d3['language']=_0x1b510a[0x0]['language']),_0x4fe2b9=_0x368883?Array['from'](_0x2dc39c['getSelectedBlocks']())['filter'](_0x4bc59c=>eo(_0x4bc59c)||function(_0x13310a,_0x13c8b3){if(_0x13310a['is']('rootElement')||_0x13c8b3['isLimit'](_0x13310a))return!0x1;return _0x13c8b3['checkChild'](_0x13310a['parent'],'codeBlock');}(_0x4bc59c,_0x20ec98['schema'])):Array['from'](_0x2dc39c['getSelectedBlocks']())['filter'](_0x1d6561=>eo(_0x1d6561));const _0x5686bd=to(_0x4fe2b9,_0x20ec98);_0x20ec98['change'](()=>{for(const _0x13815c of _0x5686bd)_0x52311e['markBlockFormat'](_0x13815c,{'commandName':'codeBlock','commandParams':[{..._0x3be7d3,'forceValue':_0x368883}],'formatGroupId':'blockName'});});}),(_0x52311e['descriptionFactory']['registerElementLabel']('codeBlock',_0x1bc6eb=>o(_0x38f450,'ELEMENT_CODE_BLOCK',_0x1bc6eb)),_0x52311e['descriptionFactory']['registerDescriptionCallback'](_0x4e4528=>{if('formatBlock'!=_0x4e4528['type'])return;const _0x3d64da=_0x38f450['t'],{data:_0x1ca019}=_0x4e4528;if(!_0x1ca019||'codeBlock'!=_0x1ca019['commandName'])return;const _0x36862f=_0x1ca019['commandParams'][0x0]['language'],_0xc9498a=_0x3d64da(_0x1b510a['find'](_0x12782d=>_0x12782d['language']===_0x36862f)['label'])['toLowerCase']();return _0x1ca019['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x38f450,'*Set\x20format:*\x20%0',o(_0x38f450,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0xc9498a+')')}:{'type':'format','content':o(_0x38f450,'*Remove\x20format:*\x20%0',o(_0x38f450,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x36c925){return'codeBlock'==_0x36c925['name'];}class z extends _0x5d703b{['afterInit'](){const _0x167dd8=this['editor'];if(!_0x167dd8['plugins']['has']('CommentsEditing'))return;_0x167dd8['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x1598c0,_0x473ac4,_0x2075e3){const _0x482de6=[];for(const _0x1ef214 of _0x473ac4['getItems']())_0x1ef214['hasAttribute'](_0x1598c0)&&_0x482de6['push'](_0x2075e3['createRangeOn'](_0x1ef214));return _0x482de6;}function De(_0x5a6ea8,_0x1ec958,{showActiveMarker:_0x39c684=!0x0}={}){const _0x5ee58d=_0x5a6ea8['plugins']['get']('TrackChangesEditing');return(_0xa83671,_0x2bf80a,_0x1181b6)=>{if(!_0x1181b6['consumable']['test'](_0x2bf80a['markerRange'],_0xa83671['name']))return;const _0x17339a=_0x2bf80a['markerRange']['getWalker'](),_0x3f6b08=_0x2bf80a['markerRange']['start'],_0x3f747a=_0x5a6ea8['model']['schema'];let _0x2fefa1=null,_0x58fb03=null,_0x2855c6=!0x1,_0x4613a1=!0x1;for(const _0x3ebd52 of _0x17339a){const _0xece24f=_0x3ebd52['item'];_0x2855c6=_0x2855c6||_0x3f747a['isContent'](_0xece24f);const _0x3a3cf5=_0x1181b6['mapper']['toViewElement'](_0xece24f);if(_0x3a3cf5&&_0x3a3cf5['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3ebd52['type']&&(_0x3f747a['isBlock'](_0xece24f)&&!_0x3f747a['isLimit'](_0xece24f)&&(_0xece24f['nextSibling']||_0x3f6b08['isAtEnd']?_0x2fefa1&&_0x2fefa1['parent']==_0xece24f||(_0x2fefa1=_0xece24f,_0x17d62e(_0x3ebd52['previousPosition']),_0x4613a1=!0x0):_0x58fb03=_0x58fb03||_0x3ebd52['previousPosition']));}function _0x17d62e(_0x51623a){const {authorId:_0x1c1383}=_0x5ee58d['_splitMarkerName'](_0x2bf80a['markerName']),_0x3b16d5=_0x1181b6['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1ec958,'data-author-id':_0x1c1383}),_0x1e56ea=_0x1181b6['mapper']['toViewPosition'](_0x51623a);_0x39c684&&_0x5ee58d['activeMarkers']['includes'](_0x2bf80a['markerName'])&&_0x1181b6['writer']['addClass']('ck-suggestion-marker--active',_0x3b16d5),_0x1181b6['writer']['insert'](_0x1e56ea,_0x3b16d5),_0x1181b6['mapper']['bindElementToMarker'](_0x3b16d5,_0x2bf80a['markerName']);}_0x2855c6||_0x4613a1||!_0x58fb03||_0x17d62e(_0x58fb03);};}class K extends _0x5d703b{static get['requires'](){return[_0x1d2e4c];}['init'](){const _0x2214ae=this['editor'],_0x3f6b61=_0x2214ae['plugins']['get']('TrackChangesEditing');_0x3f6b61['enableCommand']('delete');const _0x308691=_0x2214ae['commands']['get']('deleteForward');_0x3f6b61['enableCommand']('deleteForward',(_0x28a616,_0x3389ff={})=>{const _0x2631b8=_0x2214ae['model']['createSelection'](_0x2214ae['model']['document']['selection']);_0x2631b8['isCollapsed']&&_0x2214ae['model']['modifySelection'](_0x2631b8,{'direction':'forward','unit':_0x3389ff['unit']});const _0x333a82=_0x2631b8['getFirstRange'](),_0x49e6e2=_0x4b4bbe['fromRange'](_0x333a82);let _0x1d22a6;_0x28a616(_0x3389ff),_0x1d22a6='$graveyard'==_0x49e6e2['root']['rootName']?_0x2214ae['model']['createRange'](_0x333a82['start']):_0x2214ae['model']['createRange'](_0x49e6e2['start'],_0x49e6e2['end']),_0x49e6e2['detach'](),_0x2214ae['model']['enqueueChange'](_0x308691['buffer']['batch'],_0x3aadd9=>{_0x308691['buffer']['lock'](),_0x3aadd9['setSelection'](_0x3aadd9['createRange'](_0x1d22a6['end'])),_0x308691['buffer']['unlock']();});}),_0x2214ae['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x2214ae,'merge'),{'priority':'high'}),_0x2214ae['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x144e45,_0x58bb9b,_0x34a0af)=>{_0x34a0af['options']['showSuggestionHighlights']&&De(_0x2214ae,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x144e45,_0x58bb9b,_0x34a0af);},{'priority':'high'}),_0x2214ae['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x16ed84,_0x38167e,_0x4cf623)=>{const _0x1d9354=_0x4cf623['mapper']['markerNameToElements'](_0x38167e['markerName']);if(_0x1d9354){for(const _0x5d275c of _0x1d9354)_0x5d275c['is']('uiElement')&&(_0x4cf623['mapper']['unbindElementFromMarkerName'](_0x5d275c,_0x38167e['markerName']),_0x4cf623['writer']['remove'](_0x5d275c));}},{'priority':'high'});}}class W extends _0x5d703b{['afterInit'](){const _0x59559d=this['editor'];if(!_0x59559d['plugins']['has']('ListEditing'))return;const _0x32340c=_0x59559d['locale'],_0x417fb5=_0x59559d['plugins']['get']('TrackChangesEditing'),_0x479d90=_0x59559d['plugins']['has']('TodoListEditing'),_0x27ee72=!!_0x59559d['config']['get']('list.multiBlock');function _0x510d22(_0x28434b){return{'type':'format','content':''+o(_0x32340c,'*Set\x20format:*\x20%0',_0x28434b)};}function _0x2df55b(_0x1bda6e){return{'type':'format','content':''+o(_0x32340c,'*Remove\x20format:*\x20%0',_0x1bda6e)};}_0x417fb5['enableDefaultAttributesIntegration']('numberedList'),_0x417fb5['enableDefaultAttributesIntegration']('bulletedList'),_0x417fb5['enableDefaultAttributesIntegration']('customNumberedList'),_0x417fb5['enableDefaultAttributesIntegration']('customBulletedList'),_0x417fb5['enableDefaultAttributesIntegration']('indentList'),_0x417fb5['enableDefaultAttributesIntegration']('outdentList'),_0x417fb5['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x417fb5['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x417fb5['registerBlockAttribute']('listItemId'),_0x417fb5['registerBlockAttribute']('listType'),_0x417fb5['registerBlockAttribute']('listIndent'),_0x27ee72&&(_0x417fb5['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x417fb5['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x479d90&&(_0x417fb5['enableDefaultAttributesIntegration']('todoList'),_0x417fb5['enableDefaultAttributesIntegration']('checkTodoList'),_0x417fb5['registerBlockAttribute']('todoListChecked'),_0x417fb5['descriptionFactory']['registerDescriptionCallback'](_0x3c06fb=>{const {data:_0x305c15}=_0x3c06fb;if(_0x305c15&&'todoListChecked'==_0x305c15['key'])return{'type':'format','content':_0x305c15['newValue']?o(_0x32340c,'*Check\x20item*'):o(_0x32340c,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0xaaabe9=>{if(_0xaaabe9['batch']['isUndo'])return!0x1;let _0x495dff=!0x1;const _0x31f3a6=_0x417fb5['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xc5885a=>'todoListChecked'===_0x417fb5['_getAttributeKey'](_0xc5885a));for(const _0xa4d0ef of _0x31f3a6){'todo'!=_0xa4d0ef['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x417fb5['_findSuggestions'](_0xa4d0ef['getFirstRange'](),'attribute')['find'](_0x599792=>'listType'===_0x417fb5['_getAttributeKey'](_0x599792['suggestion']))||(_0xaaabe9['removeMarker'](_0xa4d0ef['getFirstMarker']()),_0x495dff=!0x0));}return _0x495dff;})),_0x417fb5['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x32340c,'FORMAT_INDENT'));const _0x4d0b85={'type':'format','content':''};_0x417fb5['descriptionFactory']['registerDescriptionCallback'](_0x4af3e8=>{const {data:_0x109e02}=_0x4af3e8;if(!_0x109e02||'listType'!=_0x109e02['key'])return;let _0x53d116=_0x4af3e8['head'];for(;_0x53d116;){if(_0x53d116['data']&&(('listStyle'==_0x53d116['data']['key']||'listMarkerStyle'==_0x53d116['data']['key'])&&(_0x53d116['data']['newValue']&&'default'!=_0x53d116['data']['newValue']||'default'!=_0x53d116['data']['oldValue']&&!_0x109e02['newValue'])||!_0x27ee72&&_0x53d116['data']['key']==m))return _0x4d0b85;_0x53d116=_0x53d116['next'];}if(null==_0x109e02['newValue'])switch(_0x109e02['oldValue']){case'bulleted':return _0x2df55b(o(_0x32340c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2df55b(o(_0x32340c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2df55b(o(_0x32340c,'ELEMENT_TODO_LIST'));}switch(_0x109e02['newValue']){case'bulleted':return _0x510d22(o(_0x32340c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x510d22(o(_0x32340c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x510d22(o(_0x32340c,'ELEMENT_TODO_LIST'));}}),_0x417fb5['descriptionFactory']['registerDescriptionCallback'](_0x515fb4=>{const {data:_0x270cb6}=_0x515fb4;if(_0x270cb6&&'listIndent'==_0x270cb6['key'])return null==_0x270cb6['newValue']||null==_0x270cb6['oldValue']&&0x0==_0x270cb6['newValue']?_0x4d0b85:void 0x0;}),_0x417fb5['descriptionFactory']['registerDescriptionCallback'](_0x527f10=>{if('attribute'!=_0x527f10['type'])return;const {data:_0xeb948a}=_0x527f10;if(!_0xeb948a||'listItemId'!=_0xeb948a['key'])return;const _0x227b21=Te(_0x527f10);return'newValue'==_0x227b21?{'type':'format','content':o(_0x32340c,'*Merge:*\x20list\x20item')}:'oldValue'==_0x227b21?{'type':'format','content':o(_0x32340c,'*Split:*\x20list\x20item')}:_0x4d0b85;}),_0x59559d['model']['document']['registerPostFixer'](_0x35ab87=>this['listItemIdFixer'](_0x35ab87)),_0x59559d['model']['document']['registerPostFixer'](_0x360dbf=>this['noTrackChangesFixer'](_0x360dbf)),_0x59559d['model']['document']['on']('change:data',(_0x5626ce,_0x887e94)=>{if(_0x887e94['isUndo']||!_0x887e94['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x4c8953){if(_0x4c8953['batch']['isUndo']||!_0x4c8953['batch']['isLocal'])return!0x1;let _0x24348a=!0x1;const _0x392095=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x912865=>_0x912865['data']&&'listItemId'==_0x912865['data']['key'])['filter'](_0x3ceef8=>_0x3ceef8['data']['newValue']&&_0x3ceef8['data']['oldValue']);for(const _0x2e346d of _0x392095)Te(_0x2e346d)||(_0x4c8953['removeMarker'](_0x2e346d['getFirstMarker']()),_0x24348a=!0x0);return _0x24348a;}['noTrackChangesFixer'](_0x29b0c1){if(_0x29b0c1['batch']['isUndo']||!_0x29b0c1['batch']['isLocal'])return!0x1;const _0x6052e2=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x6052e2['trackChangesCommand']['value'])return!0x1;let _0x1cd0b2=!0x1;const _0x837dc=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x741a7a=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x112d21=>'attribute'==_0x112d21['type'])['filter'](_0x5432e9=>_0x837dc['includes'](_0x5432e9['attributeKey']));if(0x0==_0x741a7a['length'])return _0x1cd0b2;for(const _0xae3fd9 of _0x741a7a){const _0x519cf6=_0x6052e2['_findSuggestions'](_0xae3fd9['range'],'attribute')['filter'](_0x29e597=>!_0x29e597['meta']['isNextTo'])['map'](_0x38cad6=>_0x38cad6['suggestion'])['filter'](_0xbd4424=>{const _0x4db1d8=_0x6052e2['_getAttributeKey'](_0xbd4424);return _0x837dc['includes'](_0x4db1d8);});if(_0x519cf6['length']){for(const _0x552dcb of _0x519cf6)_0x29b0c1['removeMarker'](_0x552dcb['getFirstMarker']());_0x1cd0b2=!0x0;}}return _0x1cd0b2;}['assureChains'](){const _0x360870=this['editor']['plugins']['get']('TrackChangesEditing'),_0x54c2e9=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x4f3320;const _0x134751=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x58519a=>{if(_0x58519a['data']['oldRange']||!_0x58519a['data']['newRange'])return null;if(!_0x58519a['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x312b88}=_0x360870['_splitMarkerName'](_0x58519a['name']);if(!_0x360870['hasSuggestion'](_0x312b88))return null;const _0x29d72e=_0x360870['getSuggestion'](_0x312b88);return _0x54c2e9['includes'](_0x29d72e['data']['key']);})['map'](_0x16dec4=>{const {id:_0x4c1d7c}=_0x360870['_splitMarkerName'](_0x16dec4['name']),_0x46a814=_0x360870['getSuggestion'](_0x4c1d7c);return _0x4f3320=_0x46a814['attributes']['groupId'],_0x46a814['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x134751['size'])return;const _0x3c35eb=_0x360870['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x37d92d=>'attribute'==_0x37d92d['type']&&_0x37d92d['data']&&_0x54c2e9['includes'](_0x37d92d['data']['key'])&&_0x37d92d['attributes']['groupId']!=_0x4f3320)['map'](_0x50fb5a=>({'listItem':_0x50fb5a['getFirstRange']()['start']['nodeAfter'],'groupId':_0x50fb5a['attributes']['groupId']})),_0x253a06=new Set();for(const {groupId:_0x32729f,listItem:_0x5bb3a1}of _0x3c35eb)_0x134751['has'](_0x5bb3a1)&&_0x253a06['add'](_0x32729f);for(const _0x11be9c of _0x360870['getSuggestions']())_0x253a06['has'](_0x11be9c['attributes']['groupId'])&&_0x11be9c['setAttribute']('groupId',_0x4f3320);}['_supportLegacySuggestions'](){const _0xa6bab5=this['editor'],_0x162a8c=_0xa6bab5['locale'],_0x4d7329=_0xa6bab5['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x4d7329['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x3904f0,_0x3d0dd9){const _0xd270c2=[];for(let _0x2e65a3 of _0x3904f0)_0x2e65a3['start']['nodeAfter']===_0x2e65a3['end']['parent']&&(_0x2e65a3=_0xa6bab5['model']['createRange'](_0xa6bab5['model']['createPositionAt'](_0x2e65a3['start']['nodeAfter'],0x0))),_0xd270c2['push'](_0x2e65a3);_0xa6bab5['model']['change'](_0x50b4d0=>{const _0x470961=_0xa6bab5['model']['document']['selection'],_0x240e95=Array['from'](_0x470961['getRanges']())['map'](_0x4f0669=>_0x4b4bbe['fromRange'](_0x4f0669));_0x50b4d0['setSelection'](_0xd270c2),_0xa6bab5['commands']['get'](_0x3d0dd9['commandName'])['refresh'](),_0x3d0dd9['commandParams']['push']({'forceDefaultExecution':!0x0}),_0xa6bab5['execute'](_0x3d0dd9['commandName'],..._0x3d0dd9['commandParams']),_0x50b4d0['setSelection'](_0x240e95);for(const _0x54857b of _0x240e95)_0x54857b['detach']();});}),_0x4d7329['descriptionFactory']['registerElementLabel'](function(_0x504ba6){const _0x17ef99=!_0xa6bab5['model']['schema']['isObject'](_0x504ba6),_0x4c81a4=_0x504ba6['previousSibling'],_0x4a4b23=_0x504ba6['nextSibling'],_0x2929b5=_0x504ba6['getAttribute']('listItemId'),_0x33cdb4=!_0x4c81a4||_0x4c81a4['getAttribute']('listItemId')!==_0x2929b5,_0x2bcded=!_0x4a4b23||_0x4a4b23['getAttribute']('listItemId')!==_0x2929b5;return _0x17ef99&&Boolean(_0x2929b5)&&_0x33cdb4&&_0x2bcded;},_0x12dfaa=>o(_0x162a8c,'ELEMENT_LIST_ITEM',_0x12dfaa));}['_registerLegacyDescription'](){const _0x356c74=this['editor'],_0x3378ce=_0x356c74['locale'];function _0x29ba5a(_0x2e9c3a){const _0x1899a4=_0x356c74['commands']['get']('bulletedList')['value'],_0x3f4b0d=_0x356c74['commands']['get']('numberedList')['value'];return'numberedList'===_0x2e9c3a?_0x1899a4:_0x3f4b0d;}_0x356c74['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x5ed414){if('formatBlock'!=_0x5ed414['type'])return;const {data:_0x3ec1b3}=_0x5ed414;if(!_0x3ec1b3)return;let _0x493a52,_0x56782e,_0x33dfbc,_0x312e7b;switch(_0x3ec1b3['commandName']){case'bulletedList':_0x33dfbc=_0x3ec1b3['commandParams'][0x0]['forceValue'],_0x312e7b=_0x29ba5a(_0x3ec1b3['commandName']),_0x493a52=_0x33dfbc?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x312e7b&&_0x356c74['config']['get']('list.multiBlock')||(_0x493a52='*Change\x20to:*\x20%0'),_0x56782e={'type':'format','content':o(_0x3378ce,_0x493a52,o(_0x3378ce,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x33dfbc=_0x3ec1b3['commandParams'][0x0]['forceValue'],_0x312e7b=_0x29ba5a(_0x3ec1b3['commandName']),_0x493a52=_0x33dfbc?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x312e7b&&_0x356c74['config']['get']('list.multiBlock')||(_0x493a52='*Change\x20to:*\x20%0'),_0x56782e={'type':'format','content':o(_0x3378ce,_0x493a52,o(_0x3378ce,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x493a52='*Indent:*\x20%0',_0x56782e={'type':'format','content':o(_0x3378ce,_0x493a52,o(_0x3378ce,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x493a52=function(_0x3a5bfb){const _0x579f64=_0x3a5bfb['getFirstRange']();let _0x4d22ea=_0x579f64['start']['nodeAfter'];for(;_0x4d22ea&&_0x579f64['containsItem'](_0x4d22ea);){if(_0x4d22ea['getAttribute']('listIndent')>0x0)return!0x1;_0x4d22ea=_0x4d22ea['nextSibling'];}return!0x0;}(_0x5ed414)?o(_0x3378ce,'*Format:*\x20remove\x20from\x20%0',o(_0x3378ce,function(_0xc4c7ed){return'ELEMENT_'+_0xc4c7ed['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x5ed414))):o(_0x3378ce,'*Outdent:*\x20%0',o(_0x3378ce,'ELEMENT_LIST_ITEM')),_0x56782e={'type':'format','content':_0x493a52};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x3ec1b3['multipleBlocks']&&(_0x493a52='*Merge:*\x20%0',_0x56782e={'type':'deletion','content':o(_0x3378ce,_0x493a52,o(_0x3378ce,'ELEMENT_LIST_ITEM'))});}return _0x56782e;});}}function Te(_0x17d869){let _0x5241c8=_0x17d869['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x5241c8;){const _0x1e9202=_0x5241c8['getAttribute']('listItemId');if(!_0x1e9202)return!0x1;if(_0x1e9202==_0x17d869['data']['newValue'])return'newValue';if(_0x1e9202==_0x17d869['data']['oldValue'])return'oldValue';_0x5241c8=_0x5241c8['previousSibling'];}return!0x1;}class Se extends _0x5d703b{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0xa6ce03=this['editor']['config']['get']('list.properties'),_0x22ef83=this['editor']['plugins']['get']('TrackChangesEditing');_0xa6ce03['styles']&&(_0x22ef83['enableDefaultAttributesIntegration']('listStyle'),_0x22ef83['registerBlockAttribute']('listStyle')),_0xa6ce03['reversed']&&(_0x22ef83['enableDefaultAttributesIntegration']('listReversed'),_0x22ef83['registerBlockAttribute']('listReversed')),_0xa6ce03['startIndex']&&(_0x22ef83['enableDefaultAttributesIntegration']('listStart'),_0x22ef83['registerBlockAttribute']('listStart'));const _0x209655={'type':'format','content':''};_0x22ef83['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x172d4e=this['editor']['locale'];_0x22ef83['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x172d4e,'FORMAT_LIST_REVERSED')),_0x22ef83['descriptionFactory']['registerDescriptionCallback'](_0x35fc0d=>{const {data:_0x12a924}=_0x35fc0d;if(_0x12a924&&'listReversed'==_0x12a924['key'])return null==_0x12a924['newValue']||0x0==_0x12a924['newValue']&&null==_0x12a924['oldValue']?_0x209655:void 0x0;}),_0x22ef83['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x172d4e,'FORMAT_LIST_START')),_0x22ef83['descriptionFactory']['registerDescriptionCallback'](_0x16f7b6=>{const {data:_0x155b19}=_0x16f7b6;if(_0x155b19&&'listStart'==_0x155b19['key'])return null==_0x155b19['newValue']||0x1==_0x155b19['newValue']&&null==_0x155b19['oldValue']?_0x209655:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x2b2ba7=>{if(_0x2b2ba7['batch']['isUndo'])return!0x1;let _0x141c62=!0x1;const _0x679bbc=_0x22ef83['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5b386c=>{const _0x554840=_0x22ef83['_getAttributeKey'](_0x5b386c);return'listStart'==_0x554840||'listReversed'==_0x554840;});for(const _0x2fabd8 of _0x679bbc){const _0x4099b4=_0x2fabd8['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x4099b4||'customNumbered'==_0x4099b4)continue;_0x22ef83['_findSuggestions'](_0x2fabd8['getFirstRange'](),'attribute')['find'](_0x1815d1=>'listType'==_0x22ef83['_getAttributeKey'](_0x1815d1['suggestion']))||(_0x2b2ba7['removeMarker'](_0x2fabd8['getFirstMarker']()),_0x141c62=!0x0);}return _0x141c62;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x43226a){const _0x1b68da=this['editor']['locale'],{data:_0x53f6d6}=_0x43226a,_0x496f9c={'type':'format','content':''};if(!_0x53f6d6||'listStyle'!=_0x53f6d6['key'])return;if(!_0x53f6d6['oldValue'])return'default'==_0x53f6d6['newValue']?_0x496f9c:{'type':'format','content':''+o(_0x1b68da,'*Set\x20format:*\x20%0',o(_0x1b68da,this['_getTranslationKeyForListStyle'](_0x53f6d6['newValue'])))};if(!_0x53f6d6['newValue']){if('default'==_0x53f6d6['oldValue'])return _0x496f9c;let _0x465a65=_0x43226a['head'];for(;_0x465a65;){if(_0x465a65['data']&&'listType'==_0x465a65['data']['key']&&_0x465a65['data']['newValue'])return _0x496f9c;_0x465a65=_0x465a65['next'];}return{'type':'format','content':''+o(_0x1b68da,'*Remove\x20format:*\x20%0',o(_0x1b68da,this['_getTranslationKeyForListStyle'](_0x53f6d6['oldValue'])))};}if('default'!=_0x53f6d6['newValue'])return{'type':'format','content':''+o(_0x1b68da,'*Set\x20format:*\x20%0',o(_0x1b68da,this['_getTranslationKeyForListStyle'](_0x53f6d6['newValue'])))};let _0xa239f8=_0x43226a['head'];for(;_0xa239f8;){if(_0xa239f8['data']&&'listType'==_0xa239f8['data']['key']&&_0xa239f8['data']['newValue']&&_0xa239f8['data']['oldValue'])return _0x496f9c;_0xa239f8=_0xa239f8['next'];}return{'type':'format','content':o(_0x1b68da,'*Set\x20format:*\x20%0',o(_0x1b68da,'ELEMENT_'+_0x43226a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1e3075=this['editor'],_0x2878b1=_0x1e3075['locale'];_0x1e3075['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x10e0d0=>{if('formatBlock'!=_0x10e0d0['type'])return;const {data:_0x46efe6}=_0x10e0d0;if(!_0x46efe6)return;let _0x51b0e4,_0x5df5a1;switch(_0x46efe6['commandName']){case'listStyle':_0x51b0e4='*Change\x20to:*\x20%0',_0x5df5a1={'type':'format','content':o(_0x2878b1,_0x51b0e4,o(_0x2878b1,this['_getTranslationKeyForListStyle'](_0x46efe6['commandParams'][0x0]['type'])))};break;case'listReversed':_0x51b0e4=_0x46efe6['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5df5a1={'type':'format','content':o(_0x2878b1,_0x51b0e4)};break;case'listStart':_0x51b0e4='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5df5a1={'type':'format','content':o(_0x2878b1,_0x51b0e4,_0x46efe6['commandParams'][0x0]['startIndex'])};}return _0x5df5a1;});}['_getTranslationKeyForListStyle'](_0x92f62f){return'ELEMENT_'+function(_0x236af2){if(_e['includes'](_0x236af2))return'bulleted';if(Re['includes'](_0x236af2))return'numbered';return null;}(_0x92f62f)['toUpperCase']()+'_LIST_'+_0x92f62f['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x5d703b{static get['requires'](){return[_0x40c153];}['init'](){const _0x2e878d=this['editor'],_0x49a11c=_0x2e878d['plugins']['get']('TrackChangesEditing'),_0x28d104=_0x2e878d['commands']['get']('enter');_0x49a11c['enableCommand']('enter',()=>{_0x2e878d['model']['change'](_0xdff48e=>{const _0x11b85e=_0x2e878d['model']['document']['selection'],_0x2cc00b=_0x11b85e['getFirstPosition'](),_0x317d87=_0x4b4bbe['fromRange'](_0x11b85e['getFirstRange']());if(_0x28d104['enterBlock'](_0xdff48e)){const _0x5646a2=_0x2e878d['model']['createPositionAt'](_0x2cc00b['parent']['nextSibling'],0x0),_0x1e1580=_0xdff48e['createRange'](_0x2cc00b,_0x5646a2);_0x49a11c['markInsertion'](_0x1e1580);}else _0xdff48e['setSelection'](_0xdff48e['createRange'](_0x317d87['end']));_0x317d87['detach'](),_0x28d104['fire']('afterExecute',{'writer':_0xdff48e});});}),_0x2e878d['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x2e878d,'split'),{'priority':'high'}),_0x2e878d['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x2fab6d,_0x1dfed9,_0x8c597f)=>{const _0x5ccb40=_0x8c597f['mapper']['markerNameToElements'](_0x1dfed9['markerName']);if(_0x5ccb40){for(const _0x5c72a3 of _0x5ccb40)_0x5c72a3['hasClass']('ck-suggestion-marker-split')&&(_0x8c597f['mapper']['unbindElementFromMarkerName'](_0x5c72a3,_0x1dfed9['markerName']),_0x8c597f['writer']['remove'](_0x5c72a3));}},{'priority':'high'}),_0x2e878d['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1b19cd,_0x585c8,_0x52a1c9)=>{_0x52a1c9['options']['showSuggestionHighlights']&&De(_0x2e878d,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x1b19cd,_0x585c8,_0x52a1c9);},{'priority':'high'});}}class Y extends _0x5d703b{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x2a7e54=this['editor']['plugins']['get']('TrackChangesEditing');_0x2a7e54['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x2a7e54['enableCommand']('findNext'),_0x2a7e54['enableCommand']('findPrevious'),_0x2a7e54['enableCommand']('replace'),_0x2a7e54['enableCommand']('replaceAll');}['handleFindCommand'](_0x4959e7,_0x176315,_0x3ae0fd={}){const _0x2bef99=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x4959e7(_0x2ea65b=>{let _0x35e634=('string'==typeof _0x176315?_0x2bef99['findByTextCallback'](_0x176315,_0x3ae0fd):_0x176315)(_0x2ea65b);Array['isArray'](_0x35e634)&&(_0x35e634={'results':_0x35e634,'searchText':'string'==typeof _0x176315?_0x176315:''});const _0x31d353=_0x35e634['results']['filter'](_0x1a3f7b=>!0x1===this['_isInDeletionRange'](_0x1a3f7b,_0x2ea65b['item']));return{..._0x35e634,'results':_0x31d353};},_0x3ae0fd);}['_isInDeletionRange'](_0x1f01db,_0xd50a4c){const _0x25833d=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xd50a4c,_0x1f01db['start']),this['editor']['model']['createPositionAt'](_0xd50a4c,_0x1f01db['end']));for(const _0x2c1ab6 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x25833d['getIntersection'](_0x2c1ab6['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x5d703b{['afterInit'](){const _0xab6243=this['editor']['locale'],_0x3c0151=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x239792,commandName:_0x4a4982}of ro)this['editor']['plugins']['has'](_0x239792)&&(_0x3c0151['enableDefaultAttributesIntegration'](_0x4a4982),_0x3c0151['registerInlineAttribute'](_0x4a4982));_0x3c0151['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0xab6243,'FORMAT_FONT_SIZE')),_0x3c0151['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0xab6243,'FORMAT_FONT_FAMILY')),_0x3c0151['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0xab6243,'FORMAT_FONT_COLOR')),_0x3c0151['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0xab6243,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1e98c=this['editor'],_0x137cbe=_0x1e98c['locale'];_0x1e98c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x15b30=>{const _0x496c0a=_0x137cbe['t'];if('formatInline'!=_0x15b30['type'])return;const {data:_0x4e2831}=_0x15b30;if(null!=_0x4e2831){if('fontSize'==_0x4e2831['commandName']){const _0x3cafe6=_0x4e2831['commandParams'][0x0]['value'];if(_0x3cafe6){const _0x3968c6=_0x496c0a(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x8979b9=>_0x8979b9['model']==_0x3cafe6)['title'])['toLowerCase']();return{'type':'format','content':o(_0x137cbe,'*Set\x20font\x20size:*\x20%0',_0x3968c6)};}return{'type':'format','content':o(_0x137cbe,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x4e2831['commandName']){const _0xa5dcf9=_0x4e2831['commandParams'][0x0]['value'];return _0xa5dcf9?{'type':'format','content':o(_0x137cbe,'*Set\x20font\x20family:*\x20%0',_0xa5dcf9)}:{'type':'format','content':o(_0x137cbe,'*Reset\x20font\x20family*')};}if('fontColor'==_0x4e2831['commandName']){const _0x6445e4=_0x4e2831['commandParams'][0x0]['value'];if(_0x6445e4){const _0x4c941e=_0x2069db(this['editor']['config']['get']('fontColor.colors'))['find'](_0x13e602=>_0x13e602['model']==_0x6445e4);let _0x289bc1=_0x6445e4,_0xd724c3='';return _0x4c941e&&(_0x289bc1=_0x4c941e['label'],_0xd724c3=_0x496c0a(_0x289bc1)['toLowerCase']()),{'type':'format','content':o(_0x137cbe,'*Set\x20font\x20color:*\x20%0',_0xd724c3)['trim'](),'color':{'value':_0x6445e4,'title':_0xd724c3||_0x289bc1}};}return{'type':'format','content':o(_0x137cbe,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x4e2831['commandName']){const _0x3ae627=_0x4e2831['commandParams'][0x0]['value'];if(_0x3ae627){const _0x2c7e98=_0x2069db(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x517e4c=>_0x517e4c['model']==_0x3ae627);let _0x4a7ff5=_0x3ae627,_0x55ceb0='';return _0x2c7e98&&(_0x4a7ff5=_0x2c7e98['label'],_0x55ceb0=_0x496c0a(_0x4a7ff5)['toLowerCase']()),{'type':'format','content':o(_0x137cbe,'*Set\x20font\x20background\x20color:*\x20%0',_0x55ceb0)['trim'](),'color':{'value':_0x3ae627,'title':_0x55ceb0||_0x4a7ff5}};}return{'type':'format','content':o(_0x137cbe,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x5d703b{['afterInit'](){const _0x4e9f12=this['editor'],_0x3b2d7d=_0x4e9f12['plugins']['get']('TrackChangesEditing'),_0x4bc45e=_0x4e9f12['commands']['get']('copyFormat'),_0x20522c=_0x4e9f12['commands']['get']('pasteFormat');_0x4bc45e&&_0x20522c&&(_0x3b2d7d['enableDefaultAttributesIntegration']('pasteFormat'),_0x3b2d7d['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0xf92b38=this['editor'],_0x5cab88=_0xf92b38['locale'];_0xf92b38['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x520ded=>{if('formatBlock'!=_0x520ded['type']&&'formatInline'!=_0x520ded['type'])return;const {data:_0x429be8}=_0x520ded;if(_0x429be8&&'pasteFormat'===_0x429be8['commandName']){const _0x301cff=[],_0x5d5bfd=_0x429be8['commandParams'][0x0];for(const [_0x47c365,_0x1ce198]of Object['entries'](_0x5d5bfd))_0x301cff['push'](so(_0xf92b38,_0x47c365,_0x1ce198));return _0x301cff['length']?{'type':'format','content':o(_0x5cab88,'*Set\x20format\x20to:*\x20%0',_0x301cff['join'](',\x20'))}:{'type':'format','content':o(_0x5cab88,'*Remove\x20all\x20formatting*')};}});}}function so(_0x476859,_0x41766f,_0x43e373){const _0x2275d0=_0x476859['locale']['t'],_0x1cb9dc=_0x41766f['split'](/(?=[A-Z])/)['join']('\x20'),_0x1da6f3=_0x2275d0(_0x1cb9dc['charAt'](0x0)['toUpperCase']()+_0x1cb9dc['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x43e373)return _0x1da6f3;if('fontColor'===_0x41766f||'fontBackgroundColor'===_0x41766f){const _0xf61e9d=_0x2069db(_0x476859['config']['get']('fontColor.colors'))['find'](_0xb9baea=>_0xb9baea['model']==_0x43e373);return _0x1da6f3+'\x20('+(_0xf61e9d?_0x2275d0(_0xf61e9d['label'])['toLowerCase']():_0x43e373)+')';}if('fontSize'===_0x41766f&&isNaN(parseFloat(_0x43e373))){const _0x6037a=_0x476859['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x476859['config']['get']('fontSize.options'))['find'](_0xde059c=>_0xde059c['model']==_0x43e373);return _0x1da6f3+'\x20('+(_0x6037a?_0x2275d0(_0x6037a['title'])['toLowerCase']():_0x43e373)+')';}return _0x1da6f3+'\x20('+_0x43e373+')';}class nt extends _0x5d703b{['_headingOptions'];['afterInit'](){const _0x2fcb1f=this['editor'];if(!_0x2fcb1f['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x2fcb1f['config']['get']('heading.options');const _0x59f829=_0x2fcb1f['locale'],_0x39fc23=_0x2fcb1f['plugins']['get']('TrackChangesEditing');_0x39fc23['enableDefaultAttributesIntegration']('heading');for(const _0x2ad8c9 of this['_headingOptions'])'paragraph'!=_0x2ad8c9['model']&&_0x39fc23['descriptionFactory']['registerElementLabel'](_0x2ad8c9['model'],_0x14ea62=>{const _0x222712=this['_getHeadingLevel'](_0x2ad8c9['model']);return null!==_0x222712?_0x1d7b63(_0x14ea62,_0x222712):_0x4e5bdc(_0x14ea62,_0x2ad8c9['title']);});function _0x1d7b63(_0x149b12,_0xf50507){return o(_0x59f829,'ELEMENT_HEADING',[_0x149b12,_0xf50507]);}function _0x4e5bdc(_0x66e7bc,_0x5169ee){return o(_0x59f829,'ELEMENT_HEADING_CUSTOM',[_0x66e7bc,_0x5169ee]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x19433a=this['editor'],_0x26f5d5=_0x19433a['locale'];function _0x211004(_0x17004e,_0x4bfc7f){return o(_0x26f5d5,'ELEMENT_HEADING_CUSTOM',[_0x17004e,_0x4bfc7f]);}_0x19433a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x476e35=>{if('formatBlock'!=_0x476e35['type'])return;const {data:_0x322610}=_0x476e35;if(_0x322610&&'heading'==_0x322610['commandName']){const _0x25cc0d=_0x322610['commandParams'][0x0]['value'],_0x5d2146=this['_getHeadingLevel'](_0x25cc0d);if(null!==_0x5d2146)return{'type':'format','content':o(_0x26f5d5,'*Change\x20to:*\x20%0',(_0xb2e0a1=0x1,_0x14c1ab=_0x5d2146,o(_0x26f5d5,'ELEMENT_HEADING',[_0xb2e0a1,_0x14c1ab])))};const _0x5ef220=this['_headingOptions']['find'](_0x280e9=>_0x280e9['model']===_0x25cc0d)['title'];return{'type':'format','content':o(_0x26f5d5,'*Change\x20to:*\x20%0',_0x211004(0x1,_0x5ef220))};}var _0xb2e0a1,_0x14c1ab;});}['_getHeadingLevel'](_0x401e38){const _0x11d857=_0x401e38['match'](/^heading(\d+)/);if(_0x11d857)return _0x11d857[0x1];const _0x45c7d8=this['_headingOptions']?.['find'](_0x26de9a=>_0x26de9a['model']==_0x401e38);if(_0x45c7d8&&_0x45c7d8['view']){const _0x54c2fe=_0x45c7d8['view'],_0x3a252e=(_0x54c2fe['name']??_0x54c2fe)['match'](/^h(\d+)/);if(_0x3a252e)return _0x3a252e[0x1];}return null;}}class it extends _0x5d703b{['afterInit'](){const _0x5ae735=this['editor'];if(!_0x5ae735['plugins']['has']('HighlightEditing'))return;const _0x2e9d98=_0x5ae735['plugins']['get']('TrackChangesEditing'),_0x53594a=_0x5ae735['locale'];_0x2e9d98['enableDefaultAttributesIntegration']('highlight'),_0x2e9d98['registerInlineAttribute']('highlight'),_0x2e9d98['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x53594a,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x328b23=this['editor'],_0x2e610a=_0x328b23['locale'];_0x328b23['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x19c6fb=>{if('formatInline'!=_0x19c6fb['type'])return;const {data:_0x1e7809}=_0x19c6fb;if(_0x1e7809&&'highlight'==_0x1e7809['commandName']){const _0x1b73fa=_0x2e610a['t'],_0x42898a=_0x1e7809['commandParams'][0x0]['value'];if(_0x42898a){const _0x5d1f0d=_0x328b23['config']['get']('highlight.options')['find'](_0x1b1686=>_0x1b1686['model']==_0x42898a),_0x144687=_0x1b73fa(_0x5d1f0d['title'])['toLowerCase']();return{'type':'format','content':o(_0x2e610a,'*Set\x20highlight:*\x20%0',_0x144687),'color':{'value':_0x5d1f0d['color'],'title':_0x5d1f0d['title']}};}return{'type':'format','content':o(_0x2e610a,'*Remove\x20highlight*',o(_0x2e610a,'FORMAT_HIGHLIGHT'))};}});}}class et extends _0x5d703b{['afterInit'](){const _0x22ec08=this['editor'];if(!_0x22ec08['plugins']['has']('HorizontalLineEditing'))return;_0x22ec08['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0xf66886=_0x22ec08['plugins']['get']('TrackChangesEditing'),_0x10a19f=_0x22ec08['locale'];_0xf66886['descriptionFactory']['registerElementLabel']('horizontalLine',_0x4c65b4=>o(_0x10a19f,'ELEMENT_HORIZONTAL_LINE',_0x4c65b4)),_0x22ec08['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x34aebb,{writer:_0x1cb97d,options:_0x4e6866})=>{if(!_0x4e6866['showSuggestionHighlights'])return null;const _0xa5d889=_0x1cb97d['createContainerElement']('div'),_0xfc6977=_0x1cb97d['createEmptyElement']('hr');return _0x1cb97d['addClass']('ck-horizontal-line',_0xa5d889),_0x1cb97d['insert'](_0x1cb97d['createPositionAt'](_0xa5d889,0x0),_0xfc6977),_0xa5d889;},'converterPriority':'high'});}}class st extends _0x5d703b{['afterInit'](){const _0x10cc84=this['editor'];if(!_0x10cc84['plugins']['has']('HtmlEmbed'))return;const _0x4174a0=_0x10cc84['plugins']['get']('TrackChangesEditing'),_0x15320f=_0x10cc84['locale'];_0x4174a0['descriptionFactory']['registerElementLabel']('rawHtml',_0x3fcb7c=>o(_0x15320f,'ELEMENT_HTML_EMBED',_0x3fcb7c)),_0x4174a0['enableDefaultAttributesIntegration']('htmlEmbed'),_0x4174a0['registerBlockAttribute']('value'),_0x4174a0['descriptionFactory']['registerDescriptionCallback'](_0x527989=>{if('attribute'!=_0x527989['type'])return;const {data:_0x2d7ab7}=_0x527989;if(_0x2d7ab7&&'value'==_0x2d7ab7['key']&&_0x527989['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0xdd80aa=o(_0x15320f,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x15320f,'*Change\x20%0\x20content*',_0xdd80aa)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x10a8c0=this['editor'],_0x5f12fc=_0x10a8c0['locale'];_0x10a8c0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x174d2c=>{if('formatBlock'!=_0x174d2c['type'])return;const {data:_0x4c2f03}=_0x174d2c;if(_0x4c2f03&&'htmlEmbed'==_0x4c2f03['commandName']){const _0x4863dd=o(_0x5f12fc,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x5f12fc,'*Change\x20%0\x20content*',_0x4863dd)};}});}}class ot extends _0x5d703b{['afterInit'](){const _0x460e20=this['editor'];if(!_0x460e20['plugins']['has']('ImageEditing'))return;const _0x480f4e=_0x460e20['plugins']['get']('TrackChangesEditing'),_0x5b2275=_0x460e20['plugins']['get']('ImageUtils'),_0x5e162a=_0x460e20['locale'];_0x480f4e['enableCommand']('insertImage'),_0x480f4e['descriptionFactory']['registerElementLabel']('imageBlock',_0x1c64b7=>o(_0x5e162a,'ELEMENT_IMAGE',_0x1c64b7)),_0x480f4e['descriptionFactory']['registerElementLabel']('imageInline',_0x2f8093=>o(_0x5e162a,'ELEMENT_INLINE_IMAGE',_0x2f8093)),_0x480f4e['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x5e162a,'ELEMENT_CAPTION')),_0x460e20['plugins']['has']('ImageUploadEditing')&&_0x480f4e['enableCommand']('uploadImage'),_0x460e20['plugins']['has']('ImageBlockEditing')&&_0x460e20['plugins']['has']('ImageInlineEditing')&&(_0x480f4e['enableCommand']('imageTypeInline',(_0x3c5159,_0x542739)=>{const _0x5daccc=_0x5b2275['getClosestSelectedImageElement'](_0x460e20['model']['document']['selection']);_0x460e20['model']['change'](()=>{_0x480f4e['markBlockFormat'](_0x5daccc,{'commandName':'imageTypeInline','commandParams':[_0x542739]},[],'convertBlockImageToInline');});}),_0x480f4e['enableCommand']('imageTypeBlock',(_0x1d996e,_0xc6be24)=>{_0x460e20['model']['change'](_0x315b51=>{let _0x2b7e0c=_0x5b2275['getClosestSelectedImageElement'](_0x460e20['model']['document']['selection']),_0x5e6087=_0x315b51['createRangeOn'](_0x2b7e0c);const _0x58fa46=_0x305aa6['fromPosition'](_0x5e6087['start'],'toPrevious'),_0x2c36cf=_0x305aa6['fromPosition'](_0x5e6087['end'],'toNext');_0x480f4e['forceDefaultExecution'](()=>_0x1d996e(_0xc6be24)),_0x2b7e0c=_0x5b2275['getClosestSelectedImageElement'](_0x460e20['model']['document']['selection']),_0x5e6087=_0x315b51['createRangeOn'](_0x2b7e0c);const _0x3f36cd=_0x315b51['createRange'](_0x58fa46,_0x2c36cf);_0x58fa46['detach'](),_0x2c36cf['detach'](),_0x480f4e['markBlockFormat'](_0x2b7e0c,{'commandName':'imageTypeInline','commandParams':[_0xc6be24]},[],'convertInlineImageToBlock'),_0x3f36cd['start']['isBefore'](_0x5e6087['start'])&&_0x480f4e['markInsertion'](_0x315b51['createRange'](_0x3f36cd['start'],_0x5e6087['start']),'convertInlineImageToBlock'),_0x5e6087['end']['isBefore'](_0x3f36cd['end'])&&_0x480f4e['markInsertion'](_0x315b51['createRange'](_0x5e6087['end'],_0x3f36cd['end']),'convertInlineImageToBlock');});}),_0x480f4e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x480f4e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x480f4e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x480f4e['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x480f4e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x480f4e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x53f7d2])=>{const _0x181a1d=_0x480f4e['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x3384bb=_0x53f7d2['start'],_0xd39ecf=_0x53f7d2['end'];const _0x3b875d=_0x460e20['model']['schema']['getNearestSelectionRange'](_0x3384bb,'backward'),_0x5949f2=_0x460e20['model']['schema']['getNearestSelectionRange'](_0xd39ecf,'forward');_0x3b875d['isCollapsed']&&(_0x3384bb=_0x3b875d['start']),_0x5949f2['isCollapsed']&&(_0xd39ecf=_0x5949f2['end']),_0x181a1d([_0x460e20['model']['createRange'](_0x3384bb,_0xd39ecf)]);}),_0x480f4e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x40ccc5),_0x480f4e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x40ccc5)),_0x460e20['plugins']['has']('ImageCaptionEditing')&&(_0x480f4e['enableCommand']('toggleImageCaption',(_0x39ef4f,_0x5bccc6)=>{const _0x47435b=_0x460e20['plugins']['get']('ImageCaptionUtils');let _0x4ec43d=_0x5b2275['getClosestSelectedImageElement'](_0x460e20['model']['document']['selection']),_0x2d3e9e=_0x47435b['getCaptionFromImageModelElement'](_0x4ec43d);_0x460e20['model']['change'](()=>{if(_0x2d3e9e)return void _0x480f4e['markDeletion'](_0x460e20['model']['createRangeOn'](_0x2d3e9e));const _0x716d59=_0x5b2275['isBlockImage'](_0x4ec43d);_0x39ef4f(_0x5bccc6),_0x4ec43d=_0x5b2275['getClosestSelectedImageElement'](_0x460e20['model']['document']['selection']),_0x2d3e9e=_0x47435b['getCaptionFromImageModelElement'](_0x4ec43d),_0x480f4e['markInsertion'](_0x460e20['model']['createRangeOn'](_0x2d3e9e),_0x716d59?null:'imageCaption');});}),_0x480f4e['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x40ccc5));const _0x1b81a2=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x13b874(_0x2b5194,_0xf3c3e5){const _0x36148d=_0x1b81a2['findIndex'](({type:_0x491475,subType:_0x66576f})=>_0x2b5194['type']==_0x491475&&_0x2b5194['subType']==_0x66576f),_0x3ed218=_0x1b81a2['findIndex'](({type:_0x4ca41b,subType:_0x30ff71})=>_0xf3c3e5['type']==_0x4ca41b&&_0xf3c3e5['subType']==_0x30ff71);if(_0x36148d<0x0||_0x3ed218<0x0)return!0x1;const _0x1adf28=_0x2b5194['getFirstRange'](),_0x35e3f3=_0xf3c3e5['getFirstRange']();if((0x0==_0x36148d||0x1==_0x36148d)&&0x2==_0x3ed218&&_0x1adf28['isIntersecting'](_0x35e3f3))return!0x0;if(0x2==_0x36148d&&0x3==_0x3ed218){const _0x1e365d=_0x480f4e['_findSuggestions'](_0x1adf28,'insertion')['filter'](({suggestion:_0x5ddb48,meta:_0x31ed11})=>_0x31ed11['isOwn']&&'convertInlineImageToBlock'==_0x5ddb48['subType']);if(_0x1e365d['length']>0x1&&_0x35e3f3['end']['isEqual'](_0x1adf28['start']))return!0x0;if(0x1==_0x1e365d['length']&&(_0x1adf28['start']['isEqual'](_0x35e3f3['end'])||_0x1adf28['end']['isEqual'](_0x35e3f3['start'])))return!0x0;}if(0x3==_0x36148d&&0x3==_0x3ed218&&_0x1adf28['start']['isBefore'](_0x35e3f3['start'])){const _0x4ac709=_0x1adf28['end']['nodeAfter'],_0x3d76bc=_0x35e3f3['start']['nodeBefore'];return _0x5b2275['isBlockImage'](_0x4ac709)&&_0x4ac709===_0x3d76bc;}return!0x1;}function _0x40ccc5(_0x160e76,_0x6fc5fa){return _0x13b874(_0x160e76,_0x6fc5fa)?[_0x160e76,_0x6fc5fa]:_0x13b874(_0x6fc5fa,_0x160e76)?[_0x6fc5fa,_0x160e76]:null;}_0x460e20['plugins']['has']('ImageResize')&&(_0x480f4e['enableDefaultAttributesIntegration']('resizeImage'),_0x480f4e['registerBlockAttribute']('resizedWidth'),_0x480f4e['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x5e162a,'FORMAT_IMAGE_SIZE'))),_0x460e20['plugins']['has']('ImageTextAlternativeEditing')&&(_0x480f4e['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x480f4e['registerBlockAttribute']('alt')),_0x460e20['plugins']['has']('PictureEditing')&&(_0x480f4e['registerBlockAttribute']('sources'),_0x480f4e['descriptionFactory']['registerDescriptionCallback'](_0x4ae0dd=>{if('attribute'!=_0x4ae0dd['type'])return;const {data:_0x42ab48}=_0x4ae0dd;return _0x42ab48&&'sources'==_0x42ab48['key']?{'type':'format','content':''}:void 0x0;})),_0x460e20['plugins']['has']('ImageSizeAttributes')&&(_0x480f4e['registerBlockAttribute']('width'),_0x480f4e['registerBlockAttribute']('height'),_0x480f4e['descriptionFactory']['registerDescriptionCallback'](_0x5713e8=>{if('attribute'!=_0x5713e8['type'])return;const {data:_0x2e9315}=_0x5713e8;return!_0x2e9315||'width'!=_0x2e9315['key']&&'height'!=_0x2e9315['key']?void 0x0:{'type':'format','content':''};})),_0x480f4e['descriptionFactory']['registerDescriptionCallback'](_0x1262e9=>{if(!!_0x1b81a2['find'](({type:_0x259ce5,subType:_0x308791})=>_0x1262e9['type']==_0x259ce5&&_0x1262e9['subType']==_0x308791))return _0x1262e9['previous']?{}:void 0x0;}),_0x480f4e['descriptionFactory']['registerDescriptionCallback'](_0x80601e=>{if('insertion'==_0x80601e['type']||'deletion'==_0x80601e['type']){const _0x3942c4=_0x80601e['getContainedElement']();if(_0x3942c4&&_0x3942c4['is']('element','caption'))return{'type':'insertion'==_0x80601e['type']?'addObject':'removeObject','element':_0x3942c4,'quantity':0x1};}}),_0x480f4e['descriptionFactory']['registerDescriptionCallback'](_0x3825e8=>'formatBlock'==_0x3825e8['type']&&'convertInlineImageToBlock'==_0x3825e8['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x3825e8['type']&&'convertBlockImageToInline'==_0x3825e8['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x480f4e['descriptionFactory']['registerDescriptionCallback'](_0x5506b8=>{if('attribute'!=_0x5506b8['type'])return;const {data:_0x339c5b}=_0x5506b8;if(!_0x339c5b||'alt'!=_0x339c5b['key'])return;const _0x3a12e9=_0x339c5b['newValue'];return _0x3a12e9?{'type':'format','content':o(_0x5e162a,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3a12e9+'\x22')}:{'type':'format','content':o(_0x5e162a,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d03d9=this['editor'],_0x23d968=_0x2d03d9['locale'];_0x2d03d9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e141e=>{if('formatBlock'!=_0x5e141e['type']&&'formatInline'!=_0x5e141e['type'])return;const {data:_0x4ca0db}=_0x5e141e;if(_0x4ca0db){if('imageTextAlternative'==_0x4ca0db['commandName']){const _0x7a46e4=_0x4ca0db['commandParams'][0x0]['newValue'];return _0x7a46e4?{'type':'format','content':o(_0x23d968,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x7a46e4+'\x22')}:{'type':'format','content':o(_0x23d968,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x4ca0db['commandName']){const _0x19f589=_0x4ca0db['commandParams'][0x0]['width'];return _0x19f589?{'type':'format','content':o(_0x23d968,'*Set\x20image\x20width:*\x20%0',_0x19f589)}:{'type':'format','content':o(_0x23d968,'*Reset\x20image\x20width*')};}}});}}class rt extends _0x5d703b{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x375909=this['editor']['locale'],_0x5cad50=this['editor']['plugins']['get']('TrackChangesEditing');_0x5cad50['enableDefaultAttributesIntegration']('replaceImageSource'),_0x5cad50['registerBlockAttribute']('src'),_0x5cad50['descriptionFactory']['registerDescriptionCallback'](_0x3f325d=>{if('attribute'!=_0x3f325d['type'])return;const {data:_0x5b02d1}=_0x3f325d;return _0x5b02d1&&'src'==_0x5b02d1['key']?_0x5b02d1['newValue']&&_0x5b02d1['oldValue']?{'type':'format','content':o(_0x375909,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x313b00=this['editor']['plugins']['get']('TrackChangesEditing');_0x313b00['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x313b00['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x313b00['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x313b00['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x31cac7=this['editor'],_0xdf186e=_0x31cac7['locale'];_0x31cac7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3868ad=>{if('formatBlock'!=_0x3868ad['type']&&'formatInline'!=_0x3868ad['type'])return;const {data:_0xdd25bc}=_0x3868ad;if(!_0xdd25bc||'replaceImageSource'!=_0xdd25bc['commandName'])return;return{'type':'format','content':o(_0xdf186e,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0x5d703b{['afterInit'](){const _0x202794=this['editor'];if(!_0x202794['plugins']['has']('ImageStyleEditing'))return;const _0x1faaba=_0x202794['plugins']['get']('TrackChangesEditing'),_0x5c5aaa=_0x202794['plugins']['get']('ImageUtils'),_0x53db09={};_0x1faaba['enableCommand']('imageStyle',(_0x4729b3,_0x1c0ec7)=>{const _0x5e9f85=_0x202794['plugins']['get']('Users')['me'],_0x3679af=_0x202794['commands']['get']('imageStyle');let _0x3924d9=_0x5c5aaa['getClosestSelectedImageElement'](_0x202794['model']['document']['selection']),_0x433339=_0x202794['model']['createRangeOn'](_0x3924d9),_0x47dae2=_0x3679af['value'];if(_0x47dae2==_0x1c0ec7['value'])return;const _0x134e37={'commandName':'imageStyle','commandParams':[_0x1c0ec7],'formatGroupId':_0x1c060f()};_0x202794['model']['change'](()=>{if(_0x1faaba['getSuggestions']()['filter'](_0x22c2e9=>_0x22c2e9['isInContent']&&_0x5e9f85==_0x22c2e9['author']&&('formatBlock'==_0x22c2e9['type']||'formatInline'==_0x22c2e9['type'])&&('imageStylePreApply'==_0x22c2e9['subType']||'imageStylePostApply'==_0x22c2e9['subType'])&&_0x22c2e9['getFirstRange']()['isEqual'](_0x433339))['forEach'](_0x4693c2=>_0x1faaba['discardSuggestion'](_0x4693c2['head'])),_0x3924d9=_0x5c5aaa['getClosestSelectedImageElement'](_0x202794['model']['document']['selection']),_0x433339=_0x202794['model']['createRangeOn'](_0x3924d9),_0x3679af['refresh'](),_0x202794['commands']['get']('imageTypeInline')['refresh'](),_0x202794['commands']['get']('imageTypeBlock')['refresh'](),_0x47dae2=_0x3679af['value'],_0x47dae2!=_0x1c0ec7['value'])return _0x5c5aaa['isInlineImage'](_0x3924d9)&&_0x3679af['shouldConvertImageType'](_0x1c0ec7['value'],_0x3924d9)?(_0x4729b3({..._0x1c0ec7,'setImageSizes':!0x1}),_0x3924d9=_0x5c5aaa['getClosestSelectedImageElement'](_0x202794['model']['document']['selection']),void _0x1faaba['markBlockFormat'](_0x3924d9,{..._0x134e37,'commandReversedParams':[{'value':_0x47dae2||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x5c5aaa['isBlockImage'](_0x3924d9)?_0x1faaba['markBlockFormat'](_0x3924d9,_0x134e37,[],'imageStylePostApply'):_0x1faaba['markInlineFormat'](_0x433339,_0x134e37,'imageStylePostApply'));});});for(const _0xfabf30 of _0x202794['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x53db09[_0xfabf30['name']]=_0xfabf30['title']['toLowerCase']();_0x1faaba['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x1faaba['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x1faaba['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x1faaba['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x3d71f5])=>{_0x5c5aaa['setImageNaturalSizeAttributes'](_0x3d71f5['getContainedElement']());}),_0x1faaba['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x104516,_0x14530a)=>{_0x1faaba['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x104516,{'commandName':_0x14530a['commandName'],'commandParams':_0x14530a['commandReversedParams']});}),_0x1faaba['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0xaab59f,_0x101dc0){if(_0x282f03(_0xaab59f,_0x101dc0))return[_0xaab59f,_0x101dc0];if(_0x282f03(_0x101dc0,_0xaab59f))return[_0x101dc0,_0xaab59f];return null;});const _0x25521e=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x282f03(_0x397063,_0x1a58d3){const _0x5a75aa=_0x25521e['findIndex'](({type:_0x12e9e5,subType:_0x2cf5db})=>_0x397063['type']==_0x12e9e5&&_0x397063['subType']==_0x2cf5db),_0x5efe5c=_0x25521e['findIndex'](({type:_0x23ef51,subType:_0x8df799})=>_0x1a58d3['type']==_0x23ef51&&_0x1a58d3['subType']==_0x8df799);if(_0x5a75aa<0x0||_0x5efe5c<0x0)return!0x1;const _0x585e5f=_0x397063['getFirstRange'](),_0x3d00ad=_0x1a58d3['getFirstRange']();if((0x0==_0x5a75aa||0x1==_0x5a75aa)&&0x2==_0x5efe5c&&_0x585e5f['isIntersecting'](_0x3d00ad))return!0x0;if(0x2==_0x5a75aa&&0x3==_0x5efe5c){const _0xb9566a=_0x1faaba['_findSuggestions'](_0x585e5f,'insertion')['filter'](({suggestion:_0x292317,meta:_0x635da7})=>_0x635da7['isOwn']&&'convertInlineImageToBlock'==_0x292317['subType']);if(_0xb9566a['length']>0x1&&_0x3d00ad['end']['isEqual'](_0x585e5f['start']))return!0x0;if(0x1==_0xb9566a['length']&&(_0x585e5f['start']['isEqual'](_0x3d00ad['end'])||_0x585e5f['end']['isEqual'](_0x3d00ad['start'])))return!0x0;}if(0x3==_0x5a75aa&&0x3==_0x5efe5c&&_0x585e5f['start']['isBefore'](_0x3d00ad['start'])){const _0x263b76=_0x585e5f['end']['nodeAfter'],_0x43879a=_0x3d00ad['start']['nodeBefore'];return _0x5c5aaa['isBlockImage'](_0x263b76)&&_0x263b76===_0x43879a;}return!0x1;}_0x202794['model']['document']['registerPostFixer'](()=>{let _0x1bbda1=!0x1;const _0x37b689=Array['from'](_0x202794['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x364488,data:_0x1da3f5}of _0x37b689){const {group:_0x2522bb,type:_0x21a1ff,subType:_0x43a79d,id:_0x4cf9db}=_0x1faaba['_splitMarkerName'](_0x364488);if('suggestion'==_0x2522bb&&_0x1faaba['hasSuggestion'](_0x4cf9db)){if('formatBlock'==_0x21a1ff&&('imageStylePreApply'==_0x43a79d||'imageStylePostApply'==_0x43a79d)){const _0x16387b=_0x1faaba['getSuggestion'](_0x4cf9db);if(_0x1da3f5['newRange']){const _0x5076c2=_0x16387b['getFirstRange']()['getContainedElement']();if(_0x5c5aaa['isBlockImage'](_0x5076c2))continue;_0x1faaba['discardSuggestion'](_0x16387b),_0x1bbda1=!0x0;}}if('insertion'==_0x21a1ff&&'imageCaption'==_0x43a79d&&!_0x1da3f5['newRange']){const _0x3f14e8=_0x1faaba['getSuggestion'](_0x4cf9db);_0x3f14e8['next']&&_0x3f14e8['next']['isInContent']&&(_0x1faaba['discardSuggestion'](_0x3f14e8['next']),_0x1bbda1=!0x0);}}}return _0x1bbda1;}),this['_registerLegacyDescription'](_0x53db09);}['_registerLegacyDescription'](_0x4ba460){const _0x5d030c=this['editor'],_0x5ec856=_0x5d030c['locale'];_0x5d030c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3591a3=>{if('formatBlock'!=_0x3591a3['type']&&'formatInline'!=_0x3591a3['type'])return;const {data:_0x3b1ac5}=_0x3591a3;if(!_0x3b1ac5||'imageStyle'!=_0x3b1ac5['commandName'])return;const _0x57841e=_0x3b1ac5['commandParams'][0x0]['value'];return _0x1acec3('side'===_0x57841e?o(_0x5ec856,'FORMAT_SIDE_IMAGE'):_0x4ba460[_0x57841e]||_0x57841e);function _0x1acec3(_0x3d9f04){return{'type':'format','content':o(_0x5ec856,'*Format:*\x20%0',_0x3d9f04)};}});}}class ct extends _0x5d703b{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x40b603){super(_0x40b603),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x1cbcf6=this['editor'],_0x49cf21=_0x1cbcf6['commands']['get']('importWord'),_0x1a2775=_0x1cbcf6['commands']['get']('trackChanges');_0x49cf21&&(_0x49cf21['on']('execute',(_0x487be2,[,_0x112956])=>{this['_trackChangesValueDuringImport']=_0x1a2775['value'],_0x112956['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x49cf21,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x49cf21,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x1a2775['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x1cbcf6['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x2259de,_0xdc365b){const {suggestions:_0x5687f9}=_0xdc365b,_0x34c00e=this['editor']['commands']['get']('trackChanges'),_0x3cd2f4=_0x34c00e['value'];this['_trackChangesValueDuringImport']!==_0x3cd2f4&&(_0x34c00e['execute'](),this['_trackChangesExecuted']=!0x0),_0x5687f9&&_0x5687f9['forEach'](({id:_0x28676e,type:_0x1058ea,author:_0x2f5450,created_at:_0x22ac77})=>{const _0x51aebd={'id':_0x28676e,'type':_0x1058ea,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x2f5450,'createdAt':_0x22ac77?new Date(_0x22ac77):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x51aebd);});}}class ut extends _0x5d703b{['afterInit'](){const _0x2d1129=this['editor'],_0xc9d55e=_0x2d1129['plugins']['get']('TrackChangesEditing');if(_0x2d1129['plugins']['has']('IndentEditing')&&(_0xc9d55e['enableCommand']('indent'),_0xc9d55e['enableCommand']('outdent')),_0x2d1129['plugins']['has']('IndentBlock')){for(const _0x4f0f14 of['indentBlock','outdentBlock'])_0xc9d55e['enableDefaultAttributesIntegration'](_0x4f0f14);}const _0x3c8631=_0x2d1129['locale'];_0xc9d55e['registerBlockAttribute']('blockIndent'),_0xc9d55e['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x3c8631,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x41cda8=this['editor'],_0xaf660d=_0x41cda8['locale'],_0x523249=_0x41cda8['plugins']['get']('TrackChangesEditing');_0x523249['descriptionFactory']['registerDescriptionCallback'](_0xbe9bf=>{if('formatBlock'!=_0xbe9bf['type'])return;const {data:_0x22cf18}=_0xbe9bf;if(!_0x22cf18)return;if('indentBlock'!=_0x22cf18['commandName']&&'outdentBlock'!=_0x22cf18['commandName'])return;const _0x2a612e=_0xbe9bf['getItems']()[0x0],_0x14fd44=_0x523249['descriptionFactory']['getItemLabel'](_0x2a612e);return'indentBlock'==_0x22cf18['commandName']?{'type':'format','content':o(_0xaf660d,'*Indent:*\x20%0',_0x14fd44)}:'outdentBlock'==_0x22cf18['commandName']?{'type':'format','content':o(_0xaf660d,'*Outdent:*\x20%0',_0x14fd44)}:void 0x0;});}}class ft extends _0x5d703b{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x5d703b{['afterInit'](){const _0xcf9304=this['editor'];if(!_0xcf9304['plugins']['has']('LinkEditing'))return;const _0x4a7547=_0xcf9304['plugins']['get']('TrackChangesEditing'),_0x2f97e0=_0xcf9304['commands']['get']('link');_0x4a7547['enableDefaultAttributesIntegration']('link'),_0x4a7547['enableDefaultAttributesIntegration']('unlink'),_0x4a7547['registerInlineAttribute']('linkHref');for(const _0x174014 of _0x2f97e0['manualDecorators'])_0x4a7547['registerInlineAttribute'](_0x174014['id']),_0x4a7547['descriptionFactory']['registerAttributeLabel'](_0x174014['id'],'link\x20('+_0x174014['label']['toLowerCase']()+')');_0x4a7547['descriptionFactory']['registerDescriptionCallback'](_0x1cd8b4=>{if('attribute'!=_0x1cd8b4['type'])return;const {data:_0x1c7da7}=_0x1cd8b4;if(!_0x1c7da7||'linkHref'!=_0x1c7da7['key'])return;const _0xe97346=_0x1c7da7['newValue'],_0x3c2979=_0xcf9304['locale'];return{'type':'format','content':null==_0xe97346?o(_0x3c2979,'*Remove\x20link*'):o(_0x3c2979,'*Set\x20link:*\x20%0','\x22'+_0xe97346+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x28b994=this['editor'],_0x4ab560=_0x28b994['locale'];_0x28b994['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xcac25b=>{if('formatInline'!=_0xcac25b['type'])return;const {data:_0x1bc741}=_0xcac25b;if(_0x1bc741){if('link'==_0x1bc741['commandName']){const _0x289fe8=_0x1bc741['commandParams'][0x0];return{'type':'format','content':o(_0x4ab560,'*Set\x20link:*\x20%0','\x22'+_0x289fe8+'\x22')};}return'unlink'==_0x1bc741['commandName']?{'type':'format','content':o(_0x4ab560,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x5d703b{['afterInit'](){const _0x1f7d98=this['editor'],_0x112be3=_0x1f7d98['locale'];if(!_0x1f7d98['plugins']['has']('LegacyListEditing'))return;const _0x8f1751=_0x1f7d98['plugins']['get']('TrackChangesEditing'),_0x1272da=_0x1f7d98['plugins']['has']('LegacyTodoListEditing');function _0x343a18(_0x525e9c){return()=>{const _0x206197=_0x1f7d98['model']['document']['selection'],_0x35e27f=_0x1f7d98['commands']['get'](_0x525e9c);if(_0x35e27f['value'])return void _0x1f7d98['execute']('paragraph',{});const _0x2093ce=_0x525e9c['slice'](0x0,-0x4),_0x3c2561=function(_0x213c10,_0xcd6aca,_0x10b5e4){let _0x5665f5=Array['from'](_0x213c10)['filter'](_0xe510d1=>function(_0x58f2b3,_0x19b42c){return _0x19b42c['checkChild'](_0x58f2b3['parent'],'listItem')&&!_0x19b42c['isObject'](_0x58f2b3);}(_0xe510d1,_0x10b5e4));_0x5665f5=_0x5665f5['filter'](_0x496265=>!_0x496265['is']('element','listItem')||_0x496265['getAttribute']('listType')!=_0xcd6aca);const _0x5ac6b8=new Set();for(const _0x1b4c7e of _0x5665f5)_0x1b4c7e['is']('element','listItem')?_0x5ac6b8['add'](Le(_0x1b4c7e)):_0x5ac6b8['add'](_0x1b4c7e);return Array['from'](_0x5ac6b8);}(_0x206197['getSelectedBlocks'](),_0x2093ce,_0x1f7d98['model']['schema']);_0x1f7d98['model']['change'](()=>{for(const _0x7fa4b2 of _0x3c2561)_0x8f1751['markBlockFormat'](_0x7fa4b2,{'commandName':_0x525e9c,'commandParams':[{'forceValue':!_0x35e27f['value']}],'formatGroupId':'blockName'},Ee(_0x7fa4b2));});};}function _0x2c23a6(_0x2361c4){return()=>{const _0x287ae2=function(_0xdb1127){let _0x317e89=Array['from'](_0xdb1127);const _0x5396fc=_0x317e89['findIndex'](_0x40a638=>'listItem'!=_0x40a638['name']);return _0x5396fc>-0x1&&(_0x317e89=_0x317e89['slice'](0x0,_0x5396fc)),_0x317e89;}(_0x1f7d98['model']['document']['selection']['getSelectedBlocks']()),_0x5bcc75=_0x1f7d98['model']['createRange'](_0x1f7d98['model']['createPositionAt'](_0x287ae2[0x0],'before'),_0x1f7d98['model']['createPositionAt'](_0x287ae2[_0x287ae2['length']-0x1],'end'));_0x1f7d98['model']['change'](()=>{_0x8f1751['markBlockFormat'](_0x5bcc75,{'commandName':_0x2361c4,'commandParams':[],'formatGroupId':'listIndent'},function(_0x28b0b5){const _0x2a6303=new Set();for(const _0x2b3a1c of _0x28b0b5){let _0x4f092a=_0x2b3a1c['nextSibling'];for(;_0x4f092a&&_0x4f092a['getAttribute']('listIndent')>_0x2b3a1c['getAttribute']('listIndent');)_0x2a6303['add'](_0x4f092a),_0x4f092a=_0x4f092a['nextSibling'];}return Array['from'](_0x2a6303);}(_0x287ae2));});};}_0x8f1751['enableCommand']('numberedList',_0x343a18('numberedList')),_0x8f1751['enableCommand']('bulletedList',_0x343a18('bulletedList')),_0x1272da&&_0x8f1751['enableCommand']('todoList',_0x343a18('todoList')),_0x8f1751['enableCommand']('indentList',_0x2c23a6('indentList')),_0x8f1751['enableCommand']('outdentList',_0x2c23a6('outdentList')),_0x1272da&&_0x8f1751['enableCommand']('checkTodoList',()=>{const _0x485508=_0x1f7d98['commands']['get']('checkTodoList'),_0x5e7652=Array['from'](_0x485508['_selectedElements']);_0x5e7652['filter'](_0x253f47=>_0x253f47['getAttribute']('todoListChecked')!=_0x485508['value']),_0x1f7d98['model']['change'](()=>{for(const _0xcf9d45 of _0x5e7652)_0x8f1751['markBlockFormat'](_0xcf9d45,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x485508['value']}]});});}),_0x8f1751['descriptionFactory']['registerElementLabel']('listItem',_0x1178be=>o(_0x112be3,'ELEMENT_LIST_ITEM',_0x1178be)),_0x8f1751['descriptionFactory']['registerDescriptionCallback'](_0x2984f2=>{if('formatBlock'!=_0x2984f2['type']&&'formatInline'!=_0x2984f2['type'])return;const {data:_0x3f8d4d}=_0x2984f2;if(_0x3f8d4d){if('numberedList'==_0x3f8d4d['commandName']||'bulletedList'==_0x3f8d4d['commandName']||'todoList'==_0x3f8d4d['commandName'])switch(_0x3f8d4d['commandName']['replace']('List','')){case'bulleted':return _0x250ba3(o(_0x112be3,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x250ba3(o(_0x112be3,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x250ba3(o(_0x112be3,'ELEMENT_TODO_LIST'));}if('indentList'==_0x3f8d4d['commandName'])return{'type':'format','content':o(_0x112be3,'*Indent:*\x20%0',o(_0x112be3,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x3f8d4d['commandName'])return{'type':'format','content':o(_0x112be3,'*Outdent:*\x20%0',o(_0x112be3,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x3f8d4d['commandName'])return _0x3f8d4d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x112be3,'*Check\x20item*')}:{'type':'format','content':o(_0x112be3,'*Uncheck\x20item*')};}function _0x250ba3(_0x5c0d86){return{'type':'format','content':o(_0x112be3,'*Change\x20to:*\x20%0',_0x5c0d86)};}});}}function Le(_0xf1175b){const _0x3118f4=_0xf1175b['getAttribute']('listIndent');if(0x0==_0x3118f4)return _0xf1175b;let _0x108ac1=_0xf1175b;for(;_0xf1175b['previousSibling']&&_0xf1175b['previousSibling']['is']('element','listItem');){const _0x31e925=_0xf1175b['previousSibling']['getAttribute']('listIndent');if(_0x31e925==_0x3118f4)_0x108ac1=_0xf1175b['previousSibling'];else{if(_0x31e925<_0x3118f4)break;}_0xf1175b=_0xf1175b['previousSibling'];}return _0x108ac1;}function Ee(_0x1a18a8){const _0x2d4af1=[];if(_0x1a18a8['is']('element','listItem')&&_0x1a18a8['getAttribute']('listIndent')>0x0){let _0xef8b4b=_0x1a18a8['nextSibling'];for(;_0xef8b4b&&'listItem'==_0xef8b4b['name']&&_0xef8b4b['getAttribute']('listIndent')==_0x1a18a8['getAttribute']('listIndent');)_0x2d4af1['push'](_0xef8b4b),_0xef8b4b=_0xef8b4b['nextSibling'];}return _0x2d4af1;}class Q extends _0x5d703b{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x1a8a2a=this['editor']['config']['get']('list.properties'),_0xcb46e5=this['editor']['plugins']['get']('TrackChangesEditing');_0x1a8a2a['styles']&&_0xcb46e5['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x1a8a2a['reversed']&&_0xcb46e5['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x1a8a2a['startIndex']&&_0xcb46e5['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0xcb46e5['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0xb42b51,_0x30c5cb={}){const _0x136560=this['editor']['plugins']['get']('TrackChangesEditing'),_0x19eb27=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x136560['markMultiRangeBlockFormat'](_0x19eb27,{'commandName':'listStyle','commandParams':[{'type':_0x30c5cb['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x1952bb,_0x9756f9={}){const _0x330bb2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1a5e06=this['_getSuggestionBlocks'](_0x2cfe1e=>_0x2cfe1e['is']('element','listItem')&&'numbered'===_0x2cfe1e['getAttribute']('listType'));if(_0x1a5e06['length']<0x1)return;const _0x111f5f=_0x1a5e06['map'](_0x2320e3=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2320e3,'before'),this['editor']['model']['createPositionAt'](_0x2320e3,0x0)));this['editor']['model']['change'](()=>{_0x330bb2['markMultiRangeBlockFormat'](_0x111f5f,{'commandName':'listReversed','commandParams':[{'reversed':_0x9756f9['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x47f7a5,_0x37e573={}){const _0x6e66cc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5bf903=this['_getSuggestionBlocks'](_0x4719c6=>_0x4719c6['is']('element','listItem')&&'numbered'===_0x4719c6['getAttribute']('listType'));if(_0x5bf903['length']<0x1)return;const _0x31a79e=_0x5bf903['map'](_0x25e857=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x25e857,'before'),this['editor']['model']['createPositionAt'](_0x25e857,0x0)));this['editor']['model']['change'](()=>{_0x6e66cc['markMultiRangeBlockFormat'](_0x31a79e,{'commandName':'listStart','commandParams':[{'startIndex':_0x37e573['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x4b8e92){if('formatBlock'!=_0x4b8e92['type']&&'formatInline'!=_0x4b8e92['type'])return;const _0x1e281b=this['editor']['locale'],{data:_0x48803a}=_0x4b8e92;if(!_0x48803a)return;let _0x189c92,_0x588084;switch(_0x48803a['commandName']){case'listStyle':_0x189c92='*Change\x20to:*\x20%0',_0x588084={'type':'format','content':o(_0x1e281b,_0x189c92,o(_0x1e281b,this['_getTranslationKeyForListStyle'](_0x48803a['commandParams'][0x0]['type'])))};break;case'listReversed':_0x189c92=_0x48803a['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x588084={'type':'format','content':o(_0x1e281b,_0x189c92)};break;case'listStart':_0x189c92='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x588084={'type':'format','content':o(_0x1e281b,_0x189c92,_0x48803a['commandParams'][0x0]['startIndex'])};}return _0x588084;}['_getSuggestionBlocksForListStyle'](){const _0x44b7c0=this['editor']['plugins']['get']('LegacyListUtils');let _0x2e908a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x2e908a[0x0]?.['is']('element','listItem')&&_0x2e908a['unshift'](..._0x44b7c0['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x2e908a[_0x2e908a['length']-0x1]?.['is']('element','listItem')&&_0x2e908a['push'](..._0x44b7c0['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x2e908a=[...new Set(_0x2e908a)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x2e908a=_0x2e908a['filter'](_0x19eac8=>_0x19eac8['is']('element','listItem'))),_0x2e908a;}['_getSuggestionBlocks'](_0x46c4e6){const _0x1e0e91=this['editor']['plugins']['get']('LegacyListUtils');let _0x572e71=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x46c4e6)['map'](_0x3d6c74=>{const _0x57cdde=this['editor']['model']['createPositionAt'](_0x3d6c74,0x0);return[..._0x1e0e91['getSiblingNodes'](_0x57cdde,'backward'),..._0x1e0e91['getSiblingNodes'](_0x57cdde,'forward')];})['flat']();return _0x572e71=[...new Set(_0x572e71)],_0x572e71;}['_getTranslationKeyForListStyle'](_0x369edb){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x369edb)||'default')['toUpperCase']()+'_LIST_'+_0x369edb['toUpperCase']()['replace'](/-/g,'_');}}class mt extends _0x5d703b{['afterInit'](){const _0x20aa91=this['editor'];if(!_0x20aa91['plugins']['has']('MediaEmbedEditing'))return;const _0x512ca8=_0x20aa91['plugins']['get']('TrackChangesEditing'),_0x51fc73=_0x20aa91['locale'];_0x512ca8['enableCommand']('mediaEmbed'),_0x512ca8['descriptionFactory']['registerElementLabel']('media',_0x3b7347=>o(_0x51fc73,'ELEMENT_MEDIA',_0x3b7347)),_0x20aa91['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x462f6d,{writer:_0x4a3257,options:_0x4f2267})=>{if(_0x4f2267['showSuggestionHighlights'])return _0x4a3257['createEmptyElement']('div');},'converterPriority':'high'}),_0x20aa91['data']['downcastDispatcher']['on']('attribute:url:media',(_0x301a1b,_0x183b01,_0x1dd422)=>{_0x1dd422['options']['showSuggestionHighlights']&&_0x301a1b['stop']();},{'priority':'high'});}}class dt extends _0x5d703b{['afterInit'](){const _0x330569=this['editor'];_0x330569['plugins']['has']('MentionEditing')&&_0x330569['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0x5d703b{['afterInit'](){const _0xdc4815=this['editor'];if(!_0xdc4815['plugins']['has']('MergeFieldsEditing'))return;const _0x4cd654=_0xdc4815['plugins']['get']('TrackChangesEditing'),_0x188658=_0xdc4815['locale'];_0x4cd654['enableCommand']('insertMergeField'),_0x4cd654['enableCommand']('insertMergeFieldBlock'),_0x4cd654['enableCommand']('insertMergeFieldImage'),_0x4cd654['descriptionFactory']['registerElementLabel']('mergeField',_0x57739f=>o(_0x188658,'ELEMENT_MERGE_FIELD',_0x57739f)),_0x4cd654['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x1cea1b=>o(_0x188658,'ELEMENT_MERGE_FIELD',_0x1cea1b)),_0x4cd654['descriptionFactory']['registerDescriptionCallback'](_0x470e1b=>{if('insertion'!=_0x470e1b['type']&&'deletion'!=_0x470e1b['type'])return;const _0x4a61e1=_0x470e1b['getContainedElement']();if(null==_0x4a61e1)return;const _0x24a1eb=_0xdc4815['plugins']['get']('MergeFieldsEditing');let _0x3505cc;switch(_0x24a1eb['getMergeFieldType'](_0x4a61e1)){case null:return;case'image':{const _0x4932c2=_0x24a1eb['unwrapAffixes'](_0x4a61e1['getAttribute']('src'));_0x3505cc=_0x24a1eb['getLabel'](_0x4932c2)||_0x4932c2;break;}default:{const _0x3b36c7=_0x4a61e1['getAttribute']('id');_0x3505cc=_0x24a1eb['getLabel'](_0x3b36c7)||_0x3b36c7;break;}}return'insertion'==_0x470e1b['type']?{'type':'insertion','content':o(_0x188658,'*Insert:*\x20%0','\x22'+_0x3505cc+'\x22\x20'+o(_0x188658,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x188658,'*Remove:*\x20%0','\x22'+_0x3505cc+'\x22\x20'+o(_0x188658,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x5d703b{['afterInit'](){const _0x41dabc=this['editor'],_0x14d5e6=_0x41dabc['plugins']['get']('TrackChangesEditing');_0x41dabc['plugins']['has']('MultiLevelList')&&(_0x14d5e6['enableDefaultAttributesIntegration']('multiLevelList'),_0x14d5e6['registerBlockAttribute']('listMarkerStyle'),_0x14d5e6['descriptionFactory']['registerDescriptionCallback'](_0x261771=>this['handleDescriptions'](_0x261771)));}['handleDescriptions'](_0x58048e){const _0x238709=this['editor']['locale'],{data:_0x10479f}=_0x58048e,_0x2e8d60={'type':'format','content':''};if(_0x10479f&&'listMarkerStyle'==_0x10479f['key']){if(!_0x10479f['oldValue'])return{'type':'format','content':o(_0x238709,'*Set\x20format:*\x20%0',o(_0x238709,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x10479f['newValue']+')'};if(!_0x10479f['newValue']){let _0x1eab13=_0x58048e['head'];for(;_0x1eab13;){if(_0x1eab13['data']&&'listType'==_0x1eab13['data']['key']&&_0x1eab13['data']['newValue'])return _0x2e8d60;_0x1eab13=_0x1eab13['next'];}return{'type':'format','content':o(_0x238709,'*Remove\x20format:*\x20%0',o(_0x238709,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x10479f['oldValue']+')'};}}}}class kt extends _0x5d703b{['afterInit'](){const _0x2d7582=this['editor'];if(!_0x2d7582['plugins']['has']('PageBreakEditing'))return;_0x2d7582['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x45d07a=_0x2d7582['plugins']['get']('TrackChangesEditing'),_0x5823d4=_0x2d7582['locale'];_0x45d07a['descriptionFactory']['registerElementLabel']('pageBreak',_0x3c0321=>o(_0x5823d4,'ELEMENT_PAGE_BREAK',_0x3c0321));}}class bt extends _0x5d703b{['afterInit'](){const _0x4cc5d6=this['editor'];if(!_0x4cc5d6['plugins']['has']('Paragraph'))return;const _0x3793cf=_0x4cc5d6['locale'],_0x4ae925=_0x4cc5d6['plugins']['get']('TrackChangesEditing');_0x4ae925['descriptionFactory']['registerElementLabel']('paragraph',_0x4e28b0=>o(_0x3793cf,'ELEMENT_PARAGRAPH',_0x4e28b0)),_0x4ae925['enableDefaultAttributesIntegration']('paragraph'),_0x4ae925['enableCommand']('insertParagraph'),_0x4cc5d6['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x4cc5d6),{'priority':'highest'}),_0x4cc5d6['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x339683,_0x1c89bf,_0xb6571f)=>{_0xb6571f['options']['showSuggestionHighlights']&&nr(_0x4cc5d6,{'showActiveMarker':!0x1})(_0x339683,_0x1c89bf,_0xb6571f);},{'priority':'highest'});const _0x50f382=_0x4ae925['descriptionFactory'];_0x50f382['registerDescriptionCallback'](_0x5e4a12=>{if('insertion'!==_0x5e4a12['type'])return;const {start:_0xc994c8,end:_0x2a578f}=_0x5e4a12['getFirstRange']();if(!_0xc994c8['isTouching'](_0x2a578f)||!_0xc994c8['nodeAfter'])return;const _0x1df114=_0x4cc5d6['model']['schema'],_0x3695b9=_0xc994c8['nodeAfter'];return _0x1df114['isBlock'](_0x3695b9)&&!_0x1df114['isLimit'](_0x3695b9)&&_0x1df114['checkChild'](_0x3695b9,'$text')?{'type':'insertion','content':o(_0x3793cf,'*Insert:*\x20%0',_0x50f382['getItemLabel'](_0x3695b9,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5963b3=this['editor'],_0x111cf8=_0x5963b3['locale'];_0x5963b3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2dd6b4=>{if('formatBlock'!=_0x2dd6b4['type'])return;const {data:_0x45f8ce}=_0x2dd6b4;return _0x45f8ce&&'paragraph'==_0x45f8ce['commandName']?{'type':'format','content':o(_0x111cf8,'*Change\x20to:*\x20%0',o(_0x111cf8,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0xe1b606,{showActiveMarker:_0x14920b=!0x0}={}){return(_0x5bd9cb,_0x5ebd0c,_0x1fd35f)=>{const _0x267fda=_0xe1b606['plugins']['get']('TrackChangesEditing'),_0x1931e4=_0x5ebd0c['markerRange']['start'],_0x380047=_0x5ebd0c['markerRange']['end'],_0x23cbc3=_0xe1b606['model']['schema'];if(!_0x1931e4['isTouching'](_0x380047)||!_0x1931e4['nodeAfter'])return;const _0x2a15cb=_0x1931e4['nodeAfter'];if(_0x23cbc3['isBlock'](_0x2a15cb)&&!_0x23cbc3['isLimit'](_0x2a15cb)&&_0x23cbc3['checkChild'](_0x2a15cb,'$text')){if(!_0x1fd35f['consumable']['consume'](_0x5ebd0c['markerRange'],_0x5bd9cb['name']))return;const {authorId:_0x33b05b}=_0x267fda['_splitMarkerName'](_0x5ebd0c['markerName']),_0x482de1=_0x1fd35f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x33b05b}),_0x1717eb=_0x1fd35f['mapper']['toViewPosition'](_0x380047);_0x14920b&&_0x267fda['activeMarkers']['includes'](_0x5ebd0c['markerName'])&&_0x1fd35f['writer']['addClass']('ck-suggestion-marker--active',_0x482de1),_0x1fd35f['writer']['insert'](_0x1717eb,_0x482de1),_0x1fd35f['mapper']['bindElementToMarker'](_0x482de1,_0x5ebd0c['markerName']);}};}class yt extends _0x5d703b{['afterInit'](){const _0x5ddee2=this['editor'];_0x5ddee2['commands']['get']('replaceSource')&&_0x5ddee2['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class jt extends _0x5d703b{['afterInit'](){const _0x31db9a=this['editor'];if(!_0x31db9a['plugins']['has']('RemoveFormatEditing'))return;_0x31db9a['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1611ea=this['editor'];_0x1611ea['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36443e=>{if('formatBlock'!=_0x36443e['type']&&'formatInline'!=_0x36443e['type'])return;const {data:_0x2bfa6f}=_0x36443e;return _0x2bfa6f&&'removeFormat'==_0x2bfa6f['commandName']?{'type':'format','content':o(_0x1611ea['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class St extends _0x5d703b{['afterInit'](){const _0x19816c=this['editor'];if(!_0x19816c['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x2bf8cb=_0x19816c['plugins']['get']('TrackChangesEditing');_0x2bf8cb['enableCommand']('goToPreviousRestrictedEditingException'),_0x2bf8cb['enableCommand']('goToNextRestrictedEditingException');const _0x2168d6=_0x19816c['plugins']['get']('RestrictedEditingModeEditing');_0x2168d6['enableCommand']('trackChanges'),_0x2168d6['enableCommand']('acceptSuggestion'),_0x2168d6['enableCommand']('discardSuggestion'),_0x2168d6['enableCommand']('acceptAllSuggestions'),_0x2168d6['enableCommand']('discardAllSuggestions'),_0x2168d6['enableCommand']('acceptSelectedSuggestions'),_0x2168d6['enableCommand']('discardSelectedSuggestions');}}class At extends _0x5d703b{static get['requires'](){return[_0x21a47d];}['init'](){const _0x4df1c7=this['editor'],_0x224b3e=_0x4df1c7['plugins']['get']('TrackChangesEditing');_0x224b3e['enableCommand']('shiftEnter'),_0x4df1c7['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x4df1c7),{'priority':'high'}),_0x4df1c7['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x4df1c7),{'priority':'high'}),_0x4df1c7['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4547a7,_0x4d4e65,_0xdca665)=>{_0xdca665['options']['showSuggestionHighlights']&&je(_0x4df1c7,{'showActiveMarker':!0x1})(_0x4547a7,_0x4d4e65,_0xdca665);}),_0x224b3e['descriptionFactory']['registerElementLabel']('softBreak',_0x4b4360=>o(_0x4df1c7['locale'],'ELEMENT_LINE_BREAK',_0x4b4360));}}function je(_0x4cf33e,{showActiveMarker:_0x3428e5=!0x0}={}){return(_0x538c3a,_0x34f152,_0x148134)=>{const _0x381f02=_0x4cf33e['plugins']['get']('TrackChangesEditing');if(!_0x148134['consumable']['test'](_0x34f152['markerRange'],_0x538c3a['name']))return;const _0x181ffd=_0x4cf33e['model'];for(const _0x1c088f of _0x34f152['markerRange']['getItems']()){if(!_0x1c088f['is']('element','softBreak'))continue;const _0x10917e='deletion'==_0x34f152['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x1a872b}=_0x381f02['_splitMarkerName'](_0x34f152['markerName']),_0x289641=_0x148134['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x10917e,'data-author-id':_0x1a872b}),_0x4b9d0b=_0x148134['mapper']['toViewPosition'](_0x181ffd['createPositionBefore'](_0x1c088f));_0x3428e5&&_0x381f02['activeMarkers']['includes'](_0x34f152['markerName'])&&_0x148134['writer']['addClass']('ck-suggestion-marker--active',_0x289641),_0x148134['writer']['insert'](_0x4b9d0b,_0x289641),_0x148134['mapper']['bindElementToMarker'](_0x289641,_0x34f152['markerName']);}};}class It extends _0x5d703b{['afterInit'](){const _0x5e1302=this['editor'],_0x17eb69=_0x5e1302['model'],_0x3595a7=_0x5e1302['locale'];if(!_0x5e1302['plugins']['has']('StandardEditingModeEditing'))return;const _0xd8e0fe=_0x5e1302['plugins']['get']('TrackChangesEditing'),_0x348e5b='restrictedEditingException',_0x2a9ef8=_0x5e1302['commands']['get'](_0x348e5b);_0xd8e0fe['enableCommand'](_0x348e5b,(_0x53ef43,_0x548b3e={})=>{const _0xa2b8fc=_0x17eb69['document']['selection'];if(_0xa2b8fc['isCollapsed'])return void _0x53ef43(_0x548b3e);const _0x2b7933=void 0x0!==_0x548b3e['forceValue']?_0x548b3e['forceValue']:!_0x2a9ef8['value'];_0x17eb69['change'](()=>{const _0x45172d=Array['from'](_0xa2b8fc['getRanges']());for(const _0x464c73 of _0x45172d){const _0x1907de=_0x2b7933?[_0x464c73]:io(_0x348e5b,_0x464c73,_0x17eb69);for(const _0xcd9ca7 of _0x1907de)_0xd8e0fe['markInlineFormat'](_0xcd9ca7,{'commandName':_0x348e5b,'commandParams':[{'forceValue':_0x2b7933}]});}});}),_0xd8e0fe['descriptionFactory']['registerDescriptionCallback'](_0x458866=>{if('formatBlock'!=_0x458866['type']&&'formatInline'!=_0x458866['type'])return;const {data:_0x43664c}=_0x458866;return _0x43664c&&_0x43664c['commandName']==_0x348e5b?_0x43664c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3595a7,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x3595a7,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x5d703b{['afterInit'](){const _0x41ba5b=this['editor'];if(!_0x41ba5b['plugins']['has']('Style')||!_0x41ba5b['plugins']['has']('DataSchema'))return;const _0x2cbcfa=_0x41ba5b['plugins']['get']('TrackChangesEditing'),_0x482af1=_0x41ba5b['locale'],_0x4f2954=_0x41ba5b['config']['get']('style')||{},_0x3a0d96=_0x41ba5b['plugins']['get']('GeneralHtmlSupport'),_0x435648=_0x41ba5b['plugins']['get']('StyleUtils')['normalizeConfig'](_0x41ba5b['plugins']['get']('DataSchema'),_0x4f2954['definitions']);_0x2cbcfa['enableDefaultAttributesIntegration']('style');const _0xf91309=new Set();for(const _0x1f7596 of _0x435648['block']){const _0x4655b1=_0x3a0d96['getGhsAttributeNameForElement'](_0x1f7596['element']);_0xf91309['add'](_0x4655b1);}const _0x1940db=new Set();for(const _0x5068cb of _0x435648['inline']){const _0x3b2a9e=_0x3a0d96['getGhsAttributeNameForElement'](_0x5068cb['element']);_0x1940db['add'](_0x3b2a9e);for(const _0x55105c of _0x5068cb['ghsAttributes'])_0x1940db['add'](_0x55105c);}for(const _0x23766c of _0xf91309)_0x2cbcfa['registerBlockAttribute'](_0x23766c),_0x2cbcfa['descriptionFactory']['registerAttributeLabel'](_0x23766c,o(_0x482af1,'FORMAT_STYLE'));for(const _0x12a7e3 of _0x1940db)_0x2cbcfa['registerInlineAttribute'](_0x12a7e3),_0x2cbcfa['descriptionFactory']['registerAttributeLabel'](_0x12a7e3,o(_0x482af1,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5ec9e7=this['editor'],_0x94ebf9=_0x5ec9e7['locale'];_0x5ec9e7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd84ed=>{if('formatBlock'!=_0xd84ed['type']&&'formatInline'!=_0xd84ed['type'])return;const {data:_0x2c1855}=_0xd84ed;return _0x2c1855&&'style'===_0x2c1855['commandName']?_0x2c1855['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x94ebf9,'*Set\x20format:*\x20%0',_0x2c1855['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x94ebf9,'*Remove\x20format:*\x20%0',_0x2c1855['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class _t extends _0x5d703b{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x670c68){super(_0x670c68),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x5618c6=this['editor'],_0x241fbc=_0x5618c6['model']['document']['selection'];if(!_0x5618c6['plugins']['has']('TableEditing'))return;const _0x418aa0=_0x5618c6['locale'],_0x19739f=_0x5618c6['plugins']['get']('TrackChangesEditing'),_0xee6b23=_0x5618c6['plugins']['get']('TableUtils');_0x19739f['descriptionFactory']['registerElementLabel']('table',_0x249735=>o(_0x418aa0,'ELEMENT_TABLE',_0x249735)),this['_setupColumnsRowsFixing'](),_0x19739f['enableCommand']('insertTable'),_0x19739f['enableCommand']('selectTableRow'),_0x19739f['enableCommand']('selectTableColumn');for(const _0x3e83fc of['insertTableRowAbove','insertTableRowBelow']){const _0x116d0f=_0x5618c6['commands']['get'](_0x3e83fc);_0x19739f['enableCommand'](_0x3e83fc,_0x37f07b=>{_0x5618c6['model']['change'](_0x401443=>{_0x37f07b();const _0x7a1003='above'===_0x116d0f['order'],_0xa1affc=_0xee6b23['getSelectionAffectedTableCells'](_0x241fbc),_0x46e82e=_0xee6b23['getRowIndexes'](_0xa1affc),_0x1aaa65=_0x7a1003?_0x46e82e['first']-0x1:_0x46e82e['last']+0x1,_0x40dea9=_0xa1affc[0x0]['findAncestor']('table'),_0x4f9bc4=_0xee6b23['createTableWalker'](_0x40dea9,{'startRow':_0x1aaa65,'endRow':_0x1aaa65}),_0x3eec78=Array['from'](_0x4f9bc4)['map'](_0x849a55=>_0x401443['createRangeOn'](_0x849a55['cell']));_0x19739f['markMultiRangeInsertion'](_0x3eec78,'tableRow');});});}for(const _0x3e9687 of['insertTableColumnLeft','insertTableColumnRight']){const _0x6c8bbb=_0x5618c6['commands']['get'](_0x3e9687);_0x19739f['enableCommand'](_0x3e9687,_0x267e41=>{_0x5618c6['model']['change'](_0x2ad991=>{_0x267e41();const _0x44586b='left'===_0x6c8bbb['order'],_0xedd508=_0xee6b23['getSelectionAffectedTableCells'](_0x241fbc),_0x1663e0=_0xee6b23['getColumnIndexes'](_0xedd508),_0x5de1e8=_0x44586b?_0x1663e0['first']-0x1:_0x1663e0['last']+0x1,_0x1cfc20=_0xedd508[0x0]['findAncestor']('table'),_0xf82510=_0xee6b23['createTableWalker'](_0x1cfc20,{'startRow':0x0,'column':_0x5de1e8,'includeAllSlots':!0x1}),_0x321c2e=Array['from'](_0xf82510)['map'](_0x24d370=>_0x2ad991['createRangeOn'](_0x24d370['cell']));_0x19739f['markMultiRangeInsertion'](_0x321c2e,'tableColumn');});});}for(const _0x25dd3e of['removeTableRow','removeTableColumn']){const _0x47a48b=_0x25dd3e['substr'](0xb),_0x143b1c=_0x47a48b['toLowerCase'](),_0x5c38f6=_0x143b1c['substr'](0x0,0x3)+'span',_0x3d1480='table'+_0x47a48b,_0x181cd6='min'+_0x47a48b,_0x22afef='max'+_0x47a48b;_0x19739f['enableCommand'](_0x25dd3e,()=>{_0x5618c6['model']['change'](_0x4f41df=>{const _0x312bb5=_0xee6b23['getSelectionAffectedTableCells'](_0x241fbc),_0xdbf187=_0x312bb5[0x0]['findAncestor']('table');let _0x395eee;if('removeTableRow'==_0x25dd3e){const _0x22c0a6=_0xee6b23['getRowIndexes'](_0x312bb5);_0x395eee={'startRow':_0x22c0a6['first'],'endRow':_0x22c0a6['last'],'includeAllSlots':!0x0};}else{const _0xf82268=_0xee6b23['getColumnIndexes'](_0x312bb5);_0x395eee={'startColumn':_0xf82268['first'],'endColumn':_0xf82268['last'],'includeAllSlots':!0x0};}const _0x3cee85=_0xee6b23['createTableWalker'](_0xdbf187,_0x395eee),_0x2eac68=Array['from'](_0x3cee85)['map'](({cell:_0xae4929})=>_0xae4929),_0x41cc94=Ne(_0x2eac68['filter'](_0x1afe8b=>_0x1afe8b['hasAttribute'](_0x5c38f6))),_0x143b90=Ne(_0x2eac68['filter'](_0x185226=>!_0x185226['hasAttribute'](_0x5c38f6)))['map'](_0x1106f8=>_0x4f41df['createRangeOn'](_0x1106f8)),_0x4f41d4=_0x19739f['markMultiRangeDeletion'](_0x143b90,_0x3d1480);if(_0x4f41d4&&('tableRow'==_0x4f41d4['subType']||'tableColumn'==_0x4f41d4['subType'])){const _0xcd3f31=this['_getSuggestionCoords'](_0x4f41d4);for(const _0xbc5d72 of _0x41cc94){const _0x50ef59=_0x4f41df['createRangeOn'](_0xbc5d72),_0x1f6e8d=_0xee6b23['getCellLocation'](_0xbc5d72),_0x22983d=_0xbc5d72['getAttribute'](_0x5c38f6)-0x1,_0x440a2e=_0xcd3f31[_0x181cd6],_0x426f8a=_0xcd3f31[_0x22afef];_0x440a2e<=_0x1f6e8d[_0x143b1c]&&_0x1f6e8d[_0x143b1c]+_0x22983d<=_0x426f8a&&_0x4f41d4['addRange'](_0x50ef59);}}});});}function _0x419fa0(_0x358cb9){const _0xebc56=Array['from'](_0x241fbc['getRanges']())['map'](_0x165e51=>_0x4b4bbe['fromRange'](_0x165e51));_0x5618c6['model']['change'](_0x594be7=>{const _0x2dd8c4=_0x594be7['batch'];_0x358cb9=_0x358cb9['filter'](_0x5eba38=>'$graveyard'!=_0x5eba38['root']['rootName']),_0x594be7['setSelection'](_0x358cb9),_0x5618c6['commands']['get']('removeTableRow')['refresh'](),_0x5618c6['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x5618c6['model']['enqueueChange'](()=>{_0x5618c6['model']['enqueueChange'](_0x2dd8c4,_0x1605ac=>{const _0x3c10a3=_0xebc56['filter'](_0x431b0a=>'$graveyard'!=_0x431b0a['root']['rootName']);_0x3c10a3['length']>0x0&&_0x1605ac['setSelection'](_0x3c10a3);for(const _0x417afb of _0xebc56)_0x417afb['detach']();});});});}function _0x411f9d(_0x292a0a){_0x5618c6['model']['change'](_0x1260e5=>{const _0x450f92=Array['from'](_0x241fbc['getRanges']())['map'](_0x3283a4=>_0x4b4bbe['fromRange'](_0x3283a4)),_0x172c41=[];for(const _0xdbeda9 of _0x292a0a)for(const _0xe6ec29 of _0xdbeda9['getItems']({'shallow':!0x0}))_0x172c41['push'](_0xe6ec29);for(const _0x3f15f7 of _0x172c41)'$graveyard'!=_0x3f15f7['root']['rootName']&&(_0x1260e5['setSelection'](_0x1260e5['createPositionAt'](_0x3f15f7,0x0)),_0x5618c6['commands']['get']('removeTableColumn')['refresh'](),_0x5618c6['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x17fb1a=_0x450f92['filter'](_0x45bf95=>'$graveyard'!=_0x45bf95['root']['rootName']);_0x17fb1a['length']>0x0&&_0x1260e5['setSelection'](_0x17fb1a);for(const _0x18aa74 of _0x450f92)_0x18aa74['detach']();});}function _0x20d98c(_0x1a599d,_0x4b0d6f){return _0x4b0d6f['every'](_0x16b7a9=>_0x1a599d['some'](_0x593bbc=>_0x593bbc['end']['isEqual'](_0x16b7a9['start'])||_0x16b7a9['end']['isEqual'](_0x593bbc['start'])));}function _0x13342a(_0x44f17d,_0x5bebf1){return!_0x44f17d['some'](_0x2be2b9=>_0x5bebf1['some'](_0x473528=>_0x2be2b9['isIntersecting'](_0x473528)))&&_0x44f17d['some'](_0x17395a=>_0x5bebf1['some'](_0x2324e3=>_0x17395a['end']['isTouching'](_0x2324e3['start'])));}_0x5618c6['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1d0f66,_0x4fe380,_0x2dba42)=>{if(!_0x2dba42['options']['showSuggestionHighlights'])return;const _0x10fddc=_0x4fe380['item'];if(!_0x10fddc)return;const _0xbb33e1=_0x2dba42['mapper']['toViewElement'](_0x10fddc);function _0xf202c7(_0x58f7ac){return Array['isArray'](_0x58f7ac)?_0x58f7ac:[_0x58f7ac];}_0xbb33e1&&'tableCell'===_0x10fddc['name']&&_0x50a82b(_0xbb33e1,_0x2dba42['writer'],(_0xe6ff93,_0x435871,_0x4b9ae2)=>_0x4b9ae2['addClass'](_0xf202c7(_0x435871['classes']),_0xe6ff93),(_0x7c8426,_0x322c3c,_0x5bb53c)=>_0x5bb53c['removeClass'](_0xf202c7(_0x322c3c['classes']),_0x7c8426));},{'priority':'highest'}),_0x19739f['descriptionFactory']['registerDescriptionCallback'](_0x54cde4=>{if('insertion'!=_0x54cde4['type']&&'deletion'!=_0x54cde4['type'])return;const _0x2f85e8=_0x54cde4['getContainedElement']();if(null!=_0x2f85e8&&_0x2f85e8['is']('element','table')){if('insertion'==_0x54cde4['type']){const _0x5ee5f6=_0x54cde4['getItems']()['filter'](_0x13002a=>_0x13002a['is']('$textProxy'))['map'](_0x3921a4=>_0x3921a4['data']);if(_0x5ee5f6['length'])return{'type':'insertion','content':o(_0x418aa0,'*Insert:*\x20%0',o(_0x418aa0,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5ee5f6['join']('\x20')+'\x22'))};}if('deletion'==_0x54cde4['type']){const _0x4ee486=_0x54cde4['getItems']()['filter'](_0x107e81=>_0x107e81['is']('$textProxy'))['map'](_0x4fed49=>_0x4fed49['data']);if(_0x4ee486['length'])return{'type':'deletion','content':o(_0x418aa0,'*Remove:*\x20%0',o(_0x418aa0,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4ee486['join']('\x20')+'\x22'))};}}}),_0x19739f['descriptionFactory']['registerDescriptionCallback'](_0x2be5c1=>{if('tableRow'==_0x2be5c1['subType']){const _0x10b275=_0x2be5c1['getItems']()['filter'](_0x417390=>_0x417390['is']('$textProxy'))['map'](_0x52ea2b=>_0x52ea2b['data']),_0x371bc5=this['_getSuggestionCoords'](_0x2be5c1),_0x22987b=_0x371bc5['maxRow']-_0x371bc5['minRow']+0x1;if('insertion'==_0x2be5c1['type'])return _0x10b275['length']?{'type':'insertion','content':o(_0x418aa0,'*Insert:*\x20%0',o(_0x418aa0,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x22987b,'\x22'+_0x10b275['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x418aa0,'*Insert:*\x20%0',o(_0x418aa0,'ELEMENT_TABLE_ROW',_0x22987b))};if('deletion'==_0x2be5c1['type'])return _0x10b275['length']?{'type':'deletion','content':o(_0x418aa0,'*Remove:*\x20%0',o(_0x418aa0,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x22987b,'\x22'+_0x10b275['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x418aa0,'*Remove:*\x20%0',o(_0x418aa0,'ELEMENT_TABLE_ROW',_0x22987b))};}if('tableColumn'==_0x2be5c1['subType']){const _0x4b0785=_0x2be5c1['getItems']()['filter'](_0x50ffb6=>_0x50ffb6['is']('$textProxy'))['map'](_0x294f76=>_0x294f76['data']),_0x59b72f=this['_getSuggestionCoords'](_0x2be5c1),_0x1f9cf1=_0x59b72f['maxColumn']-_0x59b72f['minColumn']+0x1;if('insertion'==_0x2be5c1['type'])return _0x4b0785['length']?{'type':'insertion','content':o(_0x418aa0,'*Insert:*\x20%0',o(_0x418aa0,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1f9cf1,'\x22'+_0x4b0785['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x418aa0,'*Insert:*\x20%0',o(_0x418aa0,'ELEMENT_TABLE_COLUMN',_0x1f9cf1))};if('deletion'==_0x2be5c1['type'])return _0x4b0785['length']?{'type':'deletion','content':o(_0x418aa0,'*Remove:*\x20%0',o(_0x418aa0,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1f9cf1,'\x22'+_0x4b0785['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x418aa0,'*Remove:*\x20%0',o(_0x418aa0,'ELEMENT_TABLE_COLUMN',_0x1f9cf1))};}}),_0x19739f['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x419fa0),_0x19739f['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x419fa0),_0x19739f['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x411f9d),_0x19739f['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x411f9d),_0x19739f['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x20d98c),_0x19739f['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x20d98c),_0x19739f['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x13342a),_0x19739f['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x13342a);}['_acceptFormatSuggestionCallbackFactory'](){const _0x251fdf=this['editor'],_0x1b209a=_0x251fdf['model']['document']['selection'];return(_0x1cf639,_0x5a058f)=>{_0x251fdf['model']['change'](_0x47a22f=>{const {commandName:_0x4d7da3,commandParams:_0x6362b8}=_0x5a058f;let _0xff6df7=_0x1cf639[0x0]['end']['nodeBefore'];_0x6362b8&&_0x6362b8[0x0]&&!0x1===_0x6362b8[0x0]['forceValue']&&(_0xff6df7=_0x1cf639[0x0]['start']['nodeAfter']);const _0x201ebe=_0x47a22f['createRangeIn'](_0xff6df7);if('$graveyard'==_0x201ebe['root']['rootName'])return;const _0x457a41=Array['from'](_0x1b209a['getRanges']())['map'](_0x135bcf=>_0x4b4bbe['fromRange'](_0x135bcf));_0x47a22f['setSelection'](_0x201ebe),_0x251fdf['commands']['get'](_0x4d7da3)['refresh'](),_0x6362b8['push']({'forceDefaultExecution':!0x0}),_0x251fdf['execute'](_0x4d7da3,..._0x6362b8);const _0x473972=_0x457a41['filter'](_0x3712b2=>'$graveyard'!=_0x3712b2['root']['rootName']);_0x473972['length']>0x0&&_0x47a22f['setSelection'](_0x473972);for(const _0x45569f of _0x457a41)_0x45569f['detach']();});};}['_getCoordsForCells'](_0xb6ca52){const _0xaa0d11=this['editor']['plugins']['get']('TableUtils');let _0x16f13b=Number['MAX_SAFE_INTEGER'],_0x5906e1=Number['MIN_SAFE_INTEGER'],_0x4fa9f6=Number['MAX_SAFE_INTEGER'],_0xa8c43f=Number['MIN_SAFE_INTEGER'];for(const _0x2494ec of _0xb6ca52){if('$graveyard'==_0x2494ec['root']['rootName'])continue;const {row:_0x3d285f,column:_0x558c95}=_0xaa0d11['getCellLocation'](_0x2494ec),_0x3ba9c5=_0x2494ec['hasAttribute']('rowspan')?_0x2494ec['getAttribute']('rowspan')-0x1:0x0,_0x522fc8=_0x2494ec['hasAttribute']('colspan')?_0x2494ec['getAttribute']('colspan')-0x1:0x0;_0x16f13b=_0x3d285f<_0x16f13b?_0x3d285f:_0x16f13b,_0x5906e1=_0x3d285f+_0x3ba9c5>_0x5906e1?_0x3d285f+_0x3ba9c5:_0x5906e1,_0x4fa9f6=_0x558c95<_0x4fa9f6?_0x558c95:_0x4fa9f6,_0xa8c43f=_0x558c95+_0x522fc8>_0xa8c43f?_0x558c95+_0x522fc8:_0xa8c43f;}return{'minRow':_0x16f13b,'maxRow':_0x5906e1,'minColumn':_0x4fa9f6,'maxColumn':_0xa8c43f};}['_setupColumnsRowsFixing'](){const _0x3befd1=this['editor'],_0x3f91fc=_0x3befd1['plugins']['get']('TrackChangesEditing'),_0x496b4d=_0x3befd1['plugins']['get']('TableUtils');_0x3befd1['model']['document']['on']('change:data',()=>{const _0x3c988f=Array['from'](_0x3befd1['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x55719b,data:_0x49ebb9}of _0x3c988f){const {group:_0x38de96,id:_0x34869a,subType:_0x230b02}=_0x3f91fc['_splitMarkerName'](_0x55719b);if('suggestion'!=_0x38de96)continue;if(null!=_0x49ebb9['oldRange'])continue;const _0x460f8c=_0x3f91fc['getSuggestion'](_0x34869a);this['_tablePostFixingSubtypes']['includes'](_0x230b02)&&this['_tableSuggestions']['add'](_0x460f8c);}},{'priority':'low'});const _0x9f8bd5=(_0x1419fe,_0x223f8b)=>{let _0x3c3c2d=!0x1;const _0x503e15=_0x223f8b['createRangeOn'](_0x1419fe),_0x42bf56=_0x1419fe['findAncestor']('table'),_0x25b1e9=_0x496b4d['getCellLocation'](_0x1419fe);for(const _0x550e82 of this['_tableSuggestions']){const _0x4692de=_0x550e82['subType'],_0x41e5db=_0x4692de['startsWith']('tablePaste'),_0x4161c5=_0x4692de['substr'](_0x41e5db?0xa:0x5),_0x10a445=_0x4161c5['toLowerCase'](),_0x53f4cd=_0x10a445['substr'](0x0,0x3)+'span',_0x52fd32='min'+_0x4161c5,_0x2222e5='max'+_0x4161c5;if(!_0x550e82['isInContent'])continue;if(_0x42bf56!=_0x550e82['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x550e82['isIntersectingWithRange'](_0x503e15))continue;const _0x330b24=_0x1419fe['hasAttribute'](_0x53f4cd)?_0x1419fe['getAttribute'](_0x53f4cd)-0x1:0x0,_0xfee5d7=this['_getSuggestionCoords'](_0x550e82),_0x50b9f8=_0xfee5d7[_0x52fd32],_0x531674=_0xfee5d7[_0x2222e5];_0x50b9f8<=_0x25b1e9[_0x10a445]&&_0x25b1e9[_0x10a445]+_0x330b24<=_0x531674&&(_0x550e82['addRange'](_0x503e15),_0x3c3c2d=!0x0);}return _0x3c3c2d;};_0x3befd1['model']['document']['registerPostFixer'](_0x5e9a10=>{let _0x2be679=!0x1;for(const _0x30b6ea of _0x3befd1['model']['document']['differ']['getChanges']())if('insert'==_0x30b6ea['type']){if('tableRow'==_0x30b6ea['name']){for(const _0x4a726a of _0x30b6ea['position']['nodeAfter']['getChildren']())_0x2be679=_0x2be679||_0x9f8bd5(_0x4a726a,_0x5e9a10);}else'tableCell'==_0x30b6ea['name']&&(_0x2be679=_0x2be679||_0x9f8bd5(_0x30b6ea['position']['nodeAfter'],_0x5e9a10));}return _0x2be679;});}['_getSuggestionCoords'](_0x403fef){return this['_getCoordsForCells'](_0x403fef['getRanges']()['map'](_0x5bc934=>_0x5bc934['start']['nodeAfter']));}}function Ne(_0x55e3ed){return Array['from'](new Set(_0x55e3ed)['values']());}class Ct extends _0x5d703b{static get['requires'](){return[_t];}['afterInit'](){const _0x3fa581=this['editor'],_0x57085f=_0x3fa581['model']['document']['selection'],_0x56c64b=_0x3fa581['locale'];if(!_0x3fa581['plugins']['has']('TableEditing'))return;const _0x4e2ead=_0x3fa581['plugins']['get']('TrackChangesEditing'),_0x2b7c42=_0x3fa581['plugins']['get']('TableUtils'),_0x40f55b=_0x3fa581['plugins']['get'](_t);_0x40f55b['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x4e2ead['enableCommand']('mergeTableCells',()=>{const _0x452e73=_0x2b7c42['getSelectionAffectedTableCells'](_0x3fa581['model']['document']['selection']);_0x3fa581['model']['change'](()=>{_0x4e2ead['markMultiRangeBlockFormat'](_0x452e73,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x3fa581['commands']['get']('mergeTableCells')['on']('execute',(_0x30f8d6,_0x26fc7a)=>{_0x3fa581['commands']['get']('trackChanges')['value']&&(_0x26fc7a['length']>0x0&&_0x26fc7a[_0x26fc7a['length']-0x1]&&_0x26fc7a[_0x26fc7a['length']-0x1]['forceDefaultExecution']||_0x4e2ead['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x30f8d6['stop']());},{'priority':'highest'});for(const _0x51f5e0 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x3744b6=_0x3fa581['commands']['get'](_0x51f5e0);_0x4e2ead['enableCommand'](_0x51f5e0,()=>{const _0x1cec17=_0x3fa581['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x40b907=>_0x40b907['is']('element','tableCell')),_0x5bdf5e=_0x3744b6['value'];_0x3fa581['model']['change'](()=>{_0x4e2ead['markMultiRangeBlockFormat']([_0x1cec17,_0x5bdf5e],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x40b3a9 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x1b2ecf=_0x3fa581['commands']['get'](_0x40b3a9);_0x4e2ead['enableCommand'](_0x40b3a9,()=>{const _0x525863=_0x2b7c42['getSelectionAffectedTableCells'](_0x3fa581['model']['document']['selection'])[0x0],_0x24da68=_0x525863['findAncestor']('table'),{column:_0x31cb12,row:_0x50e6f9}=_0x2b7c42['getCellLocation'](_0x525863);let _0x3612e0=[];if('horizontally'==_0x1b2ecf['direction']){const _0x23653e=_0x2b7c42['createTableWalker'](_0x24da68,{'startRow':_0x50e6f9,'endRow':_0x50e6f9,'includeAllSlots':!0x0});_0x3612e0=Array['from'](_0x23653e)['map'](_0x273a30=>_0x273a30['cell']);}else{const _0x3fd174=_0x2b7c42['createTableWalker'](_0x24da68,{'column':_0x31cb12,'includeAllSlots':!0x0});_0x3612e0=Array['from'](_0x3fd174)['map'](_0x249ba3=>_0x249ba3['cell']);}_0x3fa581['model']['change'](_0x13b9ce=>{_0x4e2ead['markBlockFormat'](_0x13b9ce['createRangeOn'](_0x525863),{'commandName':_0x40b3a9,'commandParams':[]},_0x3612e0,_0x40b3a9);});});}_0x4e2ead['descriptionFactory']['registerDescriptionCallback'](_0x5703ab=>{if('formatBlock'!=_0x5703ab['type']&&'formatInline'!=_0x5703ab['type'])return;const {data:_0x4e8b60}=_0x5703ab;return _0x4e8b60&&'mergeTableCells'==_0x4e8b60['commandName']?{'type':'format','content':o(_0x56c64b,'*Merge\x20cells*')}:void 0x0;}),_0x4e2ead['descriptionFactory']['registerDescriptionCallback'](_0x5467d0=>{if('formatBlock'!=_0x5467d0['type']&&'formatInline'!=_0x5467d0['type'])return;const {data:_0x35c53e}=_0x5467d0;return _0x35c53e?'splitTableCellVertically'==_0x35c53e['commandName']?{'type':'format','content':o(_0x56c64b,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x35c53e['commandName']?{'type':'format','content':o(_0x56c64b,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x543a08=_0x40f55b['_acceptFormatSuggestionCallbackFactory']();for(const _0x35976a of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x4e2ead['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x35976a,'accept',_0x543a08);for(const _0x315156 of['splitTableCellVertically','splitTableCellHorizontally'])_0x4e2ead['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x315156,'accept',_0x543a08);_0x4e2ead['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x1063fb=>{_0x3fa581['model']['change'](_0x154494=>{const _0x4d672d=Array['from'](_0x57085f['getRanges']())['map'](_0x18af2e=>_0x4b4bbe['fromRange'](_0x18af2e));_0x154494['setSelection'](_0x1063fb),_0x3fa581['commands']['get']('mergeTableCells')['refresh'](),_0x3fa581['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x176728=_0x4d672d['filter'](_0x43bdb1=>'$graveyard'!=_0x43bdb1['root']['rootName']);_0x176728['length']>0x0&&_0x154494['setSelection'](_0x176728);for(const _0x33389e of _0x4d672d)_0x33389e['detach']();});});for(const _0x523486 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2ea782=_0x3fa581['commands']['get'](_0x523486);_0x2ea782['on']('set:isEnabled',(_0x478d85,_0x55531f,_0x3a9e8f)=>{if(_0x3a9e8f){const _0xece991=_0x3fa581['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x36729d=>_0x36729d['is']('element','tableCell'));this['_areMergableCells'](_0x2ea782['value'],_0xece991)||(_0x478d85['return']=!0x1,_0x478d85['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x2a959b=this['editor']['commands']['get']('mergeTableCells'),_0x2daabb=this['editor']['plugins']['get']('TableUtils');if(!_0x2a959b['isEnabled'])return!0x1;const _0x2eb224=_0x2daabb['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x30c1dc of _0x2eb224)for(const _0x1449c6 of _0x2eb224)if(_0x30c1dc!=_0x1449c6&&!this['_areMergableCells'](_0x30c1dc,_0x1449c6))return!0x1;return!0x0;}['_areMergableCells'](_0x48b8ea,_0x43484f){const _0x1f6b47=this['editor']['plugins']['get']('TrackChangesEditing'),_0xa32ec0=this['editor']['model']['createRangeOn'](_0x48b8ea),_0xd2dfc0=this['editor']['model']['createRangeOn'](_0x43484f),_0x1830a=new Set(),_0x350ff7=new Set();for(const _0x4281b3 of _0x1f6b47['getSuggestions']())if(('insertion'==_0x4281b3['type']||'deletion'==_0x4281b3['type']||'mergeTableCells'==_0x4281b3['subType'])&&_0x4281b3['isInContent']){for(const _0x196503 of _0x4281b3['getRanges']())_0x196503['containsRange'](_0xa32ec0,!0x0)&&_0x1830a['add'](_0x4281b3['type']+':'+_0x4281b3['author']['id']),_0x196503['containsRange'](_0xd2dfc0,!0x0)&&_0x350ff7['add'](_0x4281b3['type']+':'+_0x4281b3['author']['id']);}if(_0x1830a['size']!=_0x350ff7['size'])return!0x1;for(const _0x2b69e0 of _0x1830a)if(!_0x350ff7['has'](_0x2b69e0))return!0x1;return!0x0;}}class Nt extends _0x5d703b{static get['requires'](){return[_t];}['afterInit'](){const _0x56b437=this['editor'];if(!_0x56b437['plugins']['has']('TableEditing'))return;const _0x110baf=_0x56b437['locale'],_0x19a788=_0x56b437['plugins']['get']('TrackChangesEditing');_0x19a788['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x19a788['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x19a788['registerBlockAttribute']('headingRows'),_0x19a788['registerBlockAttribute']('headingColumns'),_0x19a788['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x110baf,'FORMAT_HEADER_ROW')),_0x19a788['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x110baf,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x32b5a3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x372db3=this['editor']['plugins']['get']('TableUtils'),_0x15237c=this['editor']['plugins']['get'](_t)['_acceptFormatSuggestionCallbackFactory']();function _0x4e062b({showActiveMarker:_0x46e260=!0x0,setDataAttribute:_0x3de3f2=!0x0}={}){return(_0x252782,_0x28451e,_0x1e5e7b)=>{const {type:_0x4c67de,id:_0x4de8e0}=_0x32b5a3['_splitMarkerName'](_0x28451e['markerName']),_0x25eac5=_0x32b5a3['getSuggestion'](_0x4de8e0),_0x19334c=_0x25eac5['data'];if('formatBlock'!=_0x25eac5['type']||!_0x19334c||'setTableColumnHeader'!=_0x19334c['commandName'])return;if(_0x28451e['item'])return void _0x252782['stop']();if(!_0x1e5e7b['consumable']['consume'](_0x28451e['markerRange'],_0x252782['name']))return;const _0x1bd68a=_0x28451e['markerRange']['start']['nodeAfter'],_0x1e9657=_0x28451e['markerRange']['end']['nodeBefore'],_0x47cab7=_0x1bd68a['parent']['parent'],{column:_0x4abf8d}=_0x372db3['getCellLocation'](_0x1bd68a),{column:_0x2b4823}=_0x372db3['getCellLocation'](_0x1e9657);for(let _0x1e98f0=_0x4abf8d;_0x1e98f0<=_0x2b4823;_0x1e98f0++){const _0x24967a=_0x372db3['createTableWalker'](_0x47cab7,{'column':_0x1e98f0,'includeAllSlots':!0x1});for(const _0x38acef of _0x24967a){const _0x10c51f=_0x38acef['cell'],_0x1015fa=_0x1e5e7b['mapper']['toViewElement'](_0x10c51f);_0x1e5e7b['writer']['addClass']('ck-suggestion-marker-'+_0x4c67de,_0x1015fa),_0x3de3f2&&_0x1e5e7b['writer']['setAttribute']('data-suggestion',_0x4de8e0,_0x1015fa),_0x1e5e7b['mapper']['bindElementToMarker'](_0x1015fa,_0x28451e['markerName']),_0x46e260&&(_0x32b5a3['activeMarkers']['includes'](_0x28451e['markerName'])?_0x1e5e7b['writer']['addClass']('ck-suggestion-marker--active',_0x1015fa):_0x1e5e7b['writer']['removeClass']('ck-suggestion-marker--active',_0x1015fa));}}};}_0x32b5a3['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x15237c),_0x32b5a3['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x15237c),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x4e062b(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x41204f,_0x2780ea,_0x153892)=>{_0x153892['options']['showSuggestionHighlights']&&_0x4e062b({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x41204f,_0x2780ea,_0x153892);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x501339,_0x2da929,_0x3612cb)=>{const {type:_0x18548d,id:_0x53393f}=_0x32b5a3['_splitMarkerName'](_0x2da929['markerName']),_0x4cb97b=_0x32b5a3['getSuggestion'](_0x53393f),_0x31370c=_0x4cb97b['data'];if('formatBlock'!=_0x4cb97b['type']||!_0x31370c||'setTableColumnHeader'!=_0x31370c['commandName'])return;const _0x3cdbe3=_0x3612cb['mapper']['markerNameToElements'](_0x2da929['markerName']);if(_0x3cdbe3){for(const _0x5caea7 of _0x3cdbe3)_0x3612cb['writer']['removeClass']('ck-suggestion-marker-'+_0x18548d,_0x5caea7),_0x3612cb['writer']['removeClass']('ck-suggestion-marker--active',_0x5caea7),_0x3612cb['writer']['removeAttribute']('data-suggestion',_0x5caea7),_0x3612cb['mapper']['unbindElementFromMarkerName'](_0x5caea7,_0x2da929['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x144dbc=this['editor'],_0x20c343=_0x144dbc['locale'];function _0x1fcfe6(_0x101667){return{'type':'format','content':o(_0x20c343,'*Format:*\x20%0',_0x101667)};}_0x144dbc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x437cc4=>{if('formatBlock'!=_0x437cc4['type'])return;const {data:_0x2fad8c}=_0x437cc4;if(_0x2fad8c){if('setTableRowHeader'==_0x2fad8c['commandName']){const _0x22e4c5=_0x2fad8c['commandParams'][0x0]['forceValue'];return _0x1fcfe6(o(_0x20c343,_0x22e4c5?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x2fad8c['commandName']){const _0x15cb22=_0x2fad8c['commandParams'][0x0]['forceValue'];return _0x1fcfe6(o(_0x20c343,_0x15cb22?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x4358ab=>[_0x4358ab,null]));class Dt extends _0x5d703b{static get['requires'](){return[_t];}['afterInit'](){const _0x55ec3c=this['editor'];if(!_0x55ec3c['plugins']['has']('TableClipboard'))return;const _0x22cdc5=_0x55ec3c['plugins']['get']('TrackChangesEditing'),_0x10662f=_0x55ec3c['plugins']['get']('TableUtils'),_0x2b055f=_0x55ec3c['plugins']['get'](_t),_0x3f90db=_0x55ec3c['plugins']['get']('TableClipboard');_0x2b055f['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x55ec3c['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x55ec3c['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x1b8947=null;_0x55ec3c['model']['on']('insertContent',(_0x5e1059,_0x4724c1)=>{const [_0x2b0f45,_0xb6b6e9]=_0x4724c1,_0x1f4835=_0x4724c1[_0x4724c1['length']-0x1];_0x1f4835&&_0x1f4835['forceDefaultExecution']||_0x22cdc5['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0xfb4f42,_0x395c09,_0x50a97c,_0x125755,_0x3a3551){if(_0x395c09&&!_0x395c09['is']('documentSelection'))return!0x1;const _0x36f230=_0x3a3551['getTableIfOnlyTableInContent'](_0xfb4f42,_0x50a97c);if(!_0x36f230||!Ue(_0x36f230,void 0x0,_0x125755))return!0x1;const _0x31cc16=_0x125755['getSelectionAffectedTableCells'](_0x50a97c['document']['selection']);if(!_0x31cc16['length'])return!0x1;const _0x190492=_0x31cc16[0x0]['findAncestor']('table'),_0x319201=_0x125755['getRowIndexes'](_0x31cc16),_0x3b5b6f=_0x125755['getColumnIndexes'](_0x31cc16),_0x128c76={'startRow':_0x319201['first'],'endRow':_0x319201['last'],'startColumn':_0x3b5b6f['first'],'endColumn':_0x3b5b6f['last']};return 0x1==_0x31cc16['length']&&(_0x128c76['endRow']+=_0x125755['getRows'](_0x36f230)-0x1,_0x128c76['endColumn']+=_0x125755['getColumns'](_0x36f230)-0x1),Ue(_0x190492,_0x128c76,_0x125755);}(_0x2b0f45,_0xb6b6e9,_0x55ec3c['model'],_0x10662f,_0x3f90db)&&(_0x5e1059['stop'](),_0x1b8947={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x55ec3c['model']['change'](()=>{_0x55ec3c['model']['insertContent'](_0x4724c1[0x0],_0x4724c1[0x1],_0x4724c1[0x2],{'forceDefaultExecution':!0x0});const _0x540028=_0x1c060f(),{rowInsertionRanges:_0x1f8d2e,columnInsertionRanges:_0x3aedbe,insertionRanges:_0x2292cf,deletionRanges:_0x3d9307,cells:_0x6e5af2}=_0x1b8947;_0x1f8d2e['length']&&_0x22cdc5['markMultiRangeInsertion'](_0x1f8d2e,'tablePasteRow',{'tablePasteChainId':_0x540028}),_0x3aedbe['length']&&_0x22cdc5['markMultiRangeInsertion'](_0x3aedbe,'tablePasteColumn',{'tablePasteChainId':_0x540028}),_0x2292cf['length']&&(_0x22cdc5['markMultiRangeInsertion'](_0x2292cf,'tablePaste',{'tablePasteChainId':_0x540028,'skipNestingCheck':!0x0}),_0x2292cf['forEach'](_0x376aa2=>_0x376aa2['detach']?.())),_0x3d9307['length']&&(_0x22cdc5['markMultiRangeDeletion'](_0x3d9307,'tablePaste',{'tablePasteChainId':_0x540028,'skipNestingCheck':!0x0}),_0x3d9307['forEach'](_0x51567c=>_0x51567c['detach']?.()));const _0xf6a0a0=_0x22cdc5['markMultiRangeBlockFormat'](_0x6e5af2['map'](({element:_0x11a501})=>_0x11a501),{'formatGroupId':_0x1c060f()},[],'tablePasteCell',{'tablePasteChainId':_0x540028});if(_0xf6a0a0){const _0x2f5a8a=_0xf6a0a0['getMarkers'](),_0x3ecb7d=[];for(const {element:_0x5d3e65,attributes:_0x48f08e}of _0x6e5af2){if(!_0x48f08e)continue;const _0x3987a7=_0x55ec3c['model']['createRangeOn'](_0x5d3e65),_0x52c013=_0x2f5a8a['find'](_0x4823e3=>_0x4823e3['getRange']()['isEqual'](_0x3987a7));_0x52c013&&_0x3ecb7d['push']([_0x52c013['name'],_0x48f08e]);}_0x3ecb7d['length']&&_0xf6a0a0['setAttribute']('markerAttributes',Object['fromEntries'](_0x3ecb7d));}_0x1b8947=null;}));},{'priority':_0x52a047['high']+0xa}),_0x55ec3c['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x271ff3,_0x554d47)=>{const [_0x489aff,_0x34cfad,,_0x47f90c]=_0x554d47;if(!_0x1b8947)return;_0x271ff3['stop']();const _0x37182e=_0x489aff['cell'],_0x43cdce=_0x34cfad,_0x15646a=Oe(_0x37182e),_0x12d8bf=Oe(_0x43cdce);_0x271ff3['return']=_0x37182e;let _0x21e5af=null,_0x38cb86=null;if(_0x12d8bf||_0x15646a){if(_0x15646a&&!_0x12d8bf){_0x47f90c['remove'](_0x37182e['getChild'](0x0));for(const _0x319bfb of Array['from'](_0x43cdce['getChildren']()))_0x47f90c['insert'](_0x319bfb,_0x37182e,'end');const _0x3e204b=_0x1b8947['rowInsertionIndexes']['includes'](_0x489aff['row']),_0x326495=_0x1b8947['columnInsertionIndexes']['includes'](_0x489aff['column']);_0x3e204b||_0x326495||(_0x21e5af=_0x4b4bbe['fromRange'](_0x47f90c['createRangeIn'](_0x37182e)));}else _0x12d8bf&&!_0x15646a&&(_0x38cb86=_0x47f90c['createRangeIn'](_0x37182e));}else{const _0x11217e=_0x47f90c['createElement']('tableCellSuggestion'),_0x2089fd=_0x47f90c['createElement']('tableCellSuggestion');_0x47f90c['wrap'](_0x47f90c['createRangeIn'](_0x37182e),_0x2089fd),_0x47f90c['insert'](_0x11217e,_0x37182e,0x0);for(const _0x5f35b9 of Array['from'](_0x43cdce['getChildren']()))_0x47f90c['insert'](_0x5f35b9,_0x11217e,'end');_0x21e5af=_0x4b4bbe['fromRange'](_0x47f90c['createRangeOn'](_0x11217e)),_0x38cb86=_0x4b4bbe['fromRange'](_0x47f90c['createRangeOn'](_0x2089fd));}const _0x9ceb94=Array['from'](_0x43cdce['getAttributes']())['filter'](([_0x4f1634])=>Be['includes'](_0x4f1634));_0x1b8947['cells']['push']({'element':_0x37182e,'attributes':_0x9ceb94['length']?Object['fromEntries'](_0x9ceb94):null}),_0x21e5af&&_0x1b8947['insertionRanges']['push'](_0x21e5af),_0x38cb86&&_0x1b8947['deletionRanges']['push'](_0x38cb86);},{'priority':'high'}),_0x10662f['on']('insertColumns',(_0x276a69,_0x2eb68b)=>{const [_0x21b79d,_0x195654={}]=_0x2eb68b;if(!_0x1b8947)return;const _0x176612=_0x195654['at']||0x0,_0x4f0a90=_0x195654['columns']||0x1;_0x1b8947['columnInsertionIndexes']=new Array(_0x4f0a90)['fill'](_0x176612)['map']((_0x19c8f1,_0x950c9a)=>_0x19c8f1+_0x950c9a);for(const {cell:_0x14dd41}of _0x10662f['createTableWalker'](_0x21b79d,{'startColumn':_0x176612,'endColumn':_0x176612+_0x4f0a90-0x1}))_0x1b8947['columnInsertionRanges']['push'](_0x55ec3c['model']['createRangeOn'](_0x14dd41));},{'priority':'low'}),_0x10662f['on']('insertRows',(_0x1b291b,_0x408d31)=>{const [_0x57fa71,_0x313008={}]=_0x408d31;if(!_0x1b8947)return;const _0x335d66=_0x313008['at']||0x0,_0x2e5cdf=_0x313008['rows']||0x1;_0x1b8947['rowInsertionIndexes']=new Array(_0x2e5cdf)['fill'](_0x335d66)['map']((_0x4ea76a,_0x1065f6)=>_0x4ea76a+_0x1065f6);for(const {cell:_0x1a59c7}of _0x10662f['createTableWalker'](_0x57fa71,{'startRow':_0x335d66,'endRow':_0x335d66+_0x2e5cdf-0x1}))_0x1b8947['rowInsertionRanges']['push'](_0x55ec3c['model']['createRangeOn'](_0x1a59c7));},{'priority':'low'}),_0x22cdc5['descriptionFactory']['registerDescriptionCallback'](_0x5104a2=>{if(_0x5104a2['subType']&&_0x5104a2['subType']['startsWith']('tablePaste'))return _0x5104a2['previous']?{}:{'type':'insertion','content':o(_0x55ec3c['locale'],'*Replace\x20table\x20cells*')};});const _0x41d2c3=()=>!0x1;for(const _0x5b0aab of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x22cdc5['_suggestionFactory']['registerCustomCallback']('insertion',_0x5b0aab,'join',_0x41d2c3),_0x22cdc5['_suggestionFactory']['registerCustomCallback']('deletion',_0x5b0aab,'join',_0x41d2c3),_0x22cdc5['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5b0aab,'join',_0x41d2c3);_0x22cdc5['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x41d2c3),_0x22cdc5['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x3b3547,_0x359d68,_0x26dc59)=>{const _0x450b51=_0x3b3547['map'](_0x2368d1=>_0x2368d1['getContainedElement']())['filter'](_0x310a76=>_0x310a76),_0x1708a6=new Map(_0x450b51['map'](_0x2da25b=>[_0x2da25b,null]));if(_0x1b8947){for(const {element:_0x31719b,attributes:_0x567bde}of _0x1b8947['cells'])_0x567bde&&_0x1708a6['set'](_0x31719b,_0x567bde);}else{if(_0x26dc59&&_0x26dc59['markerAttributes'])for(const [_0x4451a1,_0x393191]of Object['entries'](_0x26dc59['markerAttributes'])){const _0x5430e8=_0x55ec3c['model']['markers']['get'](_0x4451a1),_0x59d95d=_0x5430e8?_0x5430e8['getRange']()['getContainedElement']():null;_0x59d95d&&_0x1708a6['set'](_0x59d95d,_0x393191);}}_0x55ec3c['model']['change'](_0x26da9c=>{for(const [_0x4a790a,_0x133014]of _0x1708a6)_0x26da9c['setAttributes']({...xe,..._0x133014},_0x4a790a);});});const _0x4334a5=(_0x12993c,_0x3c3372)=>{_0x22cdc5['_suggestionFactory']['registerCustomCallback'](_0x12993c,'tablePaste',_0x3c3372,(_0x8a158,_0x5d92f6,_0x4853b4)=>{_0x55ec3c['model']['change'](_0x5ee1d7=>{const _0x234714=[];for(const _0x1d35d2 of _0x8a158){const _0x154369=_0x1d35d2['start']['nodeAfter'];_0x154369['is']('element','tableCellSuggestion')&&_0x234714['push'](_0x154369);}_0x22cdc5['_suggestionFactory']['getSuggestionCallback'](_0x12993c,null,_0x3c3372)(_0x8a158,_0x5d92f6,_0x4853b4);for(const _0x2bc959 of _0x234714)'$graveyard'!=_0x2bc959['root']['rootName']&&_0x5ee1d7['unwrap'](_0x2bc959);});});};_0x4334a5('insertion','accept'),_0x4334a5('insertion','discard'),_0x4334a5('deletion','accept'),_0x4334a5('deletion','discard'),_0x22cdc5['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x14413c=>{const _0x4d1b0a=_0x14413c['map'](_0x3b8c8d=>_0x3b8c8d['getContainedElement']()),_0x48f352=_0x4d1b0a[0x0]['findAncestor']('table'),{minRow:_0x3a7008,maxRow:_0x21c102}=_0x2b055f['_getCoordsForCells'](_0x4d1b0a);_0x10662f['removeRows'](_0x48f352,{'at':_0x3a7008,'rows':_0x21c102-_0x3a7008+0x1});}),_0x22cdc5['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0xe12586=>{const _0x6dc445=_0xe12586['map'](_0x33f51c=>_0x33f51c['getContainedElement']()),_0x3b0e00=_0x6dc445[0x0]['findAncestor']('table'),{minColumn:_0x29d470,maxColumn:_0x48ba38}=_0x2b055f['_getCoordsForCells'](_0x6dc445);_0x10662f['removeColumns'](_0x3b0e00,{'at':_0x29d470,'columns':_0x48ba38-_0x29d470+0x1});});const _0x1fd791=(_0xfc0e24,_0x5265ec)=>{if(!_0x5265ec['subType']||!_0x5265ec['subType']['startsWith']('tablePaste'))return;const _0x1af8c4=_0x5265ec['attributes']['tablePasteChainId'],_0x4bb085=_0x22cdc5['getSuggestions']()['filter'](_0x4c56c9=>_0x4c56c9['isInContent']&&_0x4c56c9['attributes']&&_0x4c56c9['attributes']['tablePasteChainId']==_0x1af8c4);_0x4bb085['length']&&_0x5265ec['getAllAdjacentSuggestions']()['length']!=_0x4bb085['length']&&_0x4bb085['reduce']((_0x2d0db0,_0x4eced6)=>(_0x2d0db0['next']=_0x4eced6,_0x4eced6['previous']=_0x2d0db0,_0x4eced6));};function _0x15f888(_0x4bdd03,_0x554b56=!0x0){const {id:_0x230fec,authorId:_0x6b61d5}=_0x22cdc5['_splitMarkerName'](_0x4bdd03['markerName']),_0x299b98=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1bcc79=_0x22cdc5['activeMarkers']['includes'](_0x4bdd03['markerName']);return _0x1bcc79&&_0x299b98['push']('ck-suggestion-marker--active'),{'classes':_0x299b98,'attributes':{'data-suggestion':_0x230fec,'data-author-id':_0x6b61d5},'priority':_0x1bcc79&&_0x554b56?0xbc2:0xbb8};}_0x22cdc5['on']('suggestionLoaded',_0x1fd791,{'priority':'high'}),_0x22cdc5['on']('suggestionUnloaded',_0x1fd791,{'priority':'high'}),_0x55ec3c['model']['document']['registerPostFixer'](()=>{let _0x464fc5=!0x1;const _0x5d8c6d=Array['from'](_0x55ec3c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x22fd4f,data:_0x4e3a02}of _0x5d8c6d){const {group:_0x45aab0,type:_0x4a7b99,id:_0x3ec8b3}=_0x22cdc5['_splitMarkerName'](_0x22fd4f);if('suggestion'!=_0x45aab0||'deletion'!=_0x4a7b99||_0x4e3a02['oldRange'])continue;if(!_0x22cdc5['hasSuggestion'](_0x3ec8b3))continue;const _0xdd35d4=_0x22cdc5['getSuggestion'](_0x3ec8b3)['getRanges'](),_0x19135b=_0x55ec3c['plugins']['get']('Users')['me'];for(const _0x2e131d of _0x22cdc5['getSuggestions']()){if(!_0x2e131d['isInContent']||_0x2e131d['author']!=_0x19135b)continue;if('formatBlock'!=_0x2e131d['type']||'tablePasteCell'!=_0x2e131d['subType'])continue;if(_0x2e131d['getRanges']()['every'](_0xbe11c7=>_0xdd35d4['some'](_0x205571=>_0x205571['containsRange'](_0xbe11c7,!0x0)))){for(const _0x1bf321 of _0x2e131d['getAllAdjacentSuggestions']())_0x1bf321['isInContent']&&(_0x1bf321['discard'](),_0x464fc5=!0x0);}}}return _0x464fc5;}),_0x55ec3c['model']['document']['registerPostFixer'](_0x586abd=>{const _0x335efa=_0x55ec3c['commands']['get']('redo');if(!_0x335efa||!_0x335efa['_createdBatches']['has'](_0x586abd['batch']))return!0x1;let _0x503a61=!0x1;const _0x21b448=_0x55ec3c['plugins']['get']('Users')['me'],_0xef5c62=_0x55ec3c['model']['document']['differ']['getChanges'](),_0x15833e=Array['from'](_0x55ec3c['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x16fdf0,data:_0x22a385})=>{const {group:_0x63c2e8,subType:_0x37f5c0,authorId:_0x15448}=_0x22cdc5['_splitMarkerName'](_0x16fdf0);return'suggestion'==_0x63c2e8&&'tablePaste'==_0x37f5c0&&_0x15448==_0x21b448['id']&&!_0x22a385['oldRange'];});for(const _0x126b5d of _0xef5c62){if('insert'!=_0x126b5d['type']||'tableCellSuggestion'!=_0x126b5d['name']||0x1!=_0x126b5d['length'])continue;const _0x24e39a=_0x586abd['createRange'](_0x126b5d['position'],_0x126b5d['position']['getShiftedBy'](0x1));if(!_0x15833e['find'](({data:_0x38ca43})=>_0x38ca43['newRange']['isEqual'](_0x24e39a))){for(const {name:_0x240076,data:_0x4ebbdb}of _0x15833e)if(_0x24e39a['containsRange'](_0x4ebbdb['newRange'])){_0x586abd['updateMarker'](_0x240076,{'range':_0x24e39a}),_0x503a61=!0x0;break;}}}return _0x503a61;}),_0x55ec3c['model']['document']['registerPostFixer'](_0x1cc6ab=>{let _0x35c46b=!0x1;const _0x18c3ac=_0x55ec3c['plugins']['get']('Users')['me'],_0x5610=_0x22cdc5['getSuggestions']()['filter'](_0x190329=>_0x190329['isInContent']&&_0x190329['author']==_0x18c3ac),_0x1e6212=new Set(),_0x2aa9a6=new Set();for(const _0x3ca61e of _0x5610)if('tablePaste'==_0x3ca61e['subType'])for(const _0x225ebe of _0x3ca61e['getMarkers']()){const _0x3d4b7a=_0x225ebe['getRange']()['getContainedElement']();if(_0x3d4b7a){if(_0x3d4b7a['is']('element','tableCellSuggestion')&&Oe(_0x3d4b7a)){_0x3ca61e['removeMarker'](_0x225ebe['name']),_0x1e6212['add'](_0x3d4b7a),_0x35c46b=!0x0;const _0x18e6b9=_0x3d4b7a['nextSibling'],_0x14ea42=_0x3d4b7a['previousSibling'],_0x133c7e=_0x18e6b9&&_0x18e6b9['is']('element','tableCellSuggestion'),_0x3cce41=_0x14ea42&&_0x14ea42['is']('element','tableCellSuggestion');_0x133c7e&&!_0x1e6212['has'](_0x18e6b9)&&_0x2aa9a6['add'](_0x18e6b9),_0x3cce41&&!_0x1e6212['has'](_0x14ea42)&&_0x2aa9a6['add'](_0x14ea42);}else _0x3d4b7a['is']('element','paragraph')&&_0x3d4b7a['isEmpty']&&(_0x3ca61e['removeMarker'](_0x225ebe['name']),_0x35c46b=!0x0);}}else{if('tablePasteCell'==_0x3ca61e['subType']){if(!_0x3ca61e['attributes']||!_0x3ca61e['attributes']['tablePasteChainId'])continue;const _0x589e03=_0x3ca61e['attributes']['markerAttributes'];if(_0x589e03&&Object['keys'](_0x589e03)['length'])continue;const _0x30faa2=_0x3ca61e['attributes']['tablePasteChainId'];let _0x9c722a=!0x0,_0x169490=!0x0;for(const _0x55d2c7 of _0x5610)if(_0x55d2c7['subType']&&_0x55d2c7['subType']['startsWith']('tablePaste')){if(!_0x55d2c7['attributes']['tablePasteChainId']){_0x169490=!0x1;break;}if(_0x55d2c7['id']!=_0x3ca61e['id']&&_0x55d2c7['attributes']['tablePasteChainId']==_0x30faa2){_0x9c722a=!0x1;break;}}_0x169490&&_0x9c722a&&(_0x3ca61e['removeMarkers'](),_0x35c46b=!0x0);}}for(const _0x119240 of _0x1e6212)_0x1cc6ab['remove'](_0x119240);for(const _0x3617a2 of _0x2aa9a6)_0x1cc6ab['unwrap'](_0x3617a2);return _0x35c46b;}),_0x55ec3c['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x1c19ba=>_0x15f888(_0x1c19ba),'converterPriority':'high'}),_0x55ec3c['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3a11af,_0x246526)=>_0x246526['options']['showSuggestionHighlights']?_0x15f888(_0x3a11af,!0x1):null,'converterPriority':'high'});const _0x5e3ecc=_0x55ec3c['editing']['view'];this['listenTo'](_0x5e3ecc['document'],'clipboardOutput',(_0x6a7735,_0x3d7dfa)=>{const _0x51a147=[];for(const _0x25215d of _0x5e3ecc['createRangeIn'](_0x3d7dfa['content'])['getItems']())_0x25215d['is']('element','suggestion-td')&&_0x51a147['push'](_0x25215d);_0x5e3ecc['change'](_0xe5906c=>{for(const _0x3bf8f7 of _0x51a147)_0xe5906c['move'](_0xe5906c['createRangeIn'](_0x3bf8f7),_0xe5906c['createPositionBefore'](_0x3bf8f7)),_0xe5906c['remove'](_0x3bf8f7);});});}}function Oe(_0x4607f9){if(_0x4607f9['isEmpty'])return!0x0;const _0x50c1ed=_0x4607f9['getChild'](0x0);return _0x50c1ed['is']('element','paragraph')&&_0x50c1ed['isEmpty'];}function Ue(_0x27e500,_0x4e6cd9={},_0x34f492){for(const {isAnchor:_0x6670d0,cellHeight:_0x53b80d,cellWidth:_0x13b965}of _0x34f492['createTableWalker'](_0x27e500,{'includeAllSlots':!0x0,..._0x4e6cd9}))if(!_0x6670d0||0x1!=_0x53b80d||0x1!=_0x13b965)return!0x1;return!0x0;}class Mt extends _0x5d703b{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x2f707a=this['editor']['plugins']['get']('TrackChangesEditing');_0x2f707a['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x2f707a['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x2f707a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2f707a['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x2f707a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x2f707a['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x436257,_0x3419aa){const _0x2568e2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x58263b=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1b6c10=_0x3419aa['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x251451=_0x58263b['getColumnGroupElement'](_0x1b6c10);let _0x42e6f6=_0x251451?_0x58263b['getTableColumnsWidths'](_0x251451):null,_0x1d8914=_0x1b6c10['getAttribute']('tableWidth')||null;const _0xf13086=_0x3419aa['tableWidth']||_0x1d8914,_0x16926e=_0x3419aa['columnWidths']||_0x42e6f6,_0x533510=this['editor']['plugins']['get']('Users')['me'];for(const _0x4d168f of _0x2568e2['getSuggestions']()){const _0x209658=_0x4d168f['getContainedElement']();if('resizeTable'===_0x4d168f['subType']&&_0x209658===_0x1b6c10){_0x4d168f['author']!==_0x533510&&_0x4d168f['discard']();const _0x41def6=_0x4d168f['data']['commandParams'];_0x1d8914=_0x41def6[0x0]['tableWidth'],_0x42e6f6=_0x41def6[0x0]['columnWidths'];break;}}_0x436257({'table':_0x1b6c10,'tableWidth':_0xf13086,'columnWidths':_0x16926e}),_0x2568e2['markBlockFormat'](_0x1b6c10,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x1d8914,'columnWidths':_0x42e6f6}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x7a21a6){if('formatBlock'!=_0x7a21a6['type']&&'formatInline'!=_0x7a21a6['type'])return;const {data:_0x622233}=_0x7a21a6;if(_0x622233&&'resizeTable'===_0x622233['formatGroupId']){const _0x892e57='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x892e57)};}}}class $t extends _0x5d703b{['afterInit'](){const _0x20af92=this['editor'];_0x20af92['plugins']['has']('Template')&&_0x20af92['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Bt extends _0x5d703b{['afterInit'](){const _0x2ed416=this['editor'];if(!_0x2ed416['commands']['get']('insertTableOfContents'))return;_0x2ed416['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x5dd8cd=_0x2ed416['plugins']['get']('TrackChangesEditing'),_0x8794aa=_0x2ed416['locale'];_0x5dd8cd['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1761fa=>o(_0x8794aa,'ELEMENT_TABLE_OF_CONTENTS',_0x1761fa));}}class Ot extends _0x5d703b{['afterInit'](){const _0x22c31e=this['editor'];if(!_0x22c31e['plugins']['has']('Title'))return;const _0x3f3852=_0x22c31e['plugins']['get']('TrackChangesEditing');_0x3f3852['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x22c31e['locale'],'ELEMENT_TITLE')),_0x22c31e['model']['document']['registerPostFixer'](_0xdd2dcd=>{let _0x3f7197=!0x1;const _0x1f9b7d=Array['from'](_0x22c31e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3ddf64,data:_0xfdfb57}of _0x1f9b7d){const {group:_0x22fea9}=_0x3f3852['_splitMarkerName'](_0x3ddf64);if('suggestion'!==_0x22fea9||!_0xfdfb57['newRange'])continue;const _0x50c07a=_0xfdfb57['newRange'],_0x5b0062=_0x50c07a['end']['nodeBefore'];if(!_0x5b0062||!_0x5b0062['is']('element','title-content'))continue;if(!_0x50c07a['start']['isTouching'](_0x50c07a['end']))continue;const _0x50d6f5=_0x22c31e['model']['schema']['getNearestSelectionRange'](_0x50c07a['end'],'forward');if(_0x50d6f5&&_0x50d6f5['isCollapsed']){const _0x5c92e5=_0xdd2dcd['createRange'](_0x50c07a['start'],_0x50d6f5['start']);_0x5c92e5['isEqual'](_0x50c07a)||(_0xdd2dcd['updateMarker'](_0x3ddf64,{'range':_0x5c92e5}),_0x3f7197=!0x0);}_0x3f7197||(_0xdd2dcd['removeMarker'](_0x3ddf64),_0x3f7197=!0x0);}return _0x3f7197;});}}class Rt extends _0x5d703b{['afterInit'](){const _0x42344b=this['editor'],_0x58f267=_0x42344b['plugins']['get']('TrackChangesEditing');_0x42344b['plugins']['has']('Uploadcare')&&(_0x58f267['enableCommand']('uploadcare'),_0x42344b['plugins']['has']('UploadcareImageEdit')&&(_0x58f267['enableCommand']('uploadcareImageEdit'),_0x58f267['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x58f267['registerBlockAttribute']('uploadcareImageId'),_0x58f267['descriptionFactory']['registerDescriptionCallback'](_0x435c38=>{if('attribute'!=_0x435c38['type'])return;const {data:_0x4698e7}=_0x435c38;return _0x4698e7&&'uploadcareImageId'==_0x4698e7['key']?{'type':'format','content':''}:void 0x0;})));}}class Tt extends _0x5d703b{['afterInit'](){const _0x54b3b1=this['editor'],_0x3a51ea=_0x54b3b1['plugins']['get']('TrackChangesEditing');_0x54b3b1['plugins']['has']('UndoEditing')&&(_0x3a51ea['enableCommand']('undo'),_0x3a51ea['enableCommand']('redo'));}}class xt extends _0x5d703b{static get['requires'](){return[_t];}['afterInit'](){const _0x24be66=this['editor'];if(!_0x24be66['plugins']['has']('TableCaptionEditing'))return;_0x24be66['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0x5d703b{['tableProperties'];['tableCellProperties'];constructor(_0x36db10){super(_0x36db10),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 _0x490fe8=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x213b62 of this['tableProperties'])_0x490fe8['enableCommand'](_0x213b62,(_0x22dd73,_0x570b38)=>{const _0x2b1f3f=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x213b62,[_0x2b1f3f],this['tableProperties'],'tableProperties',_0x22dd73,_0x570b38);});_0x490fe8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x490fe8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x490fe8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0xd34ae7,_0x5a2c3e)=>this['handleDiscardAction'](this['tableProperties'],_0xd34ae7,_0x5a2c3e)),_0x490fe8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x37af21 of this['tableCellProperties'])_0x490fe8['enableCommand'](_0x37af21,(_0x35f317,_0x4f208c)=>{const _0x2e33a1=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x37af21,_0x2e33a1,this['tableCellProperties'],'tableCellProperties',_0x35f317,_0x4f208c);});_0x490fe8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x490fe8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x490fe8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x587223,_0x3f09ed)=>this['handleDiscardAction'](this['tableCellProperties'],_0x587223,_0x3f09ed)),_0x490fe8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x490fe8['descriptionFactory']['registerDescriptionCallback'](_0x2dbf50=>this['handleSuggestionDescription'](_0x2dbf50));}['_handlePropertyChange'](_0x1e4b32,_0x92f104,_0x369297,_0x1b2b5f,_0xcc303a,_0x7979f5){const _0x3d4f62=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x7979f5['batch'],()=>{for(const _0x11a539 of _0x92f104){if(this['_getSuggestion'](_0x11a539,_0x1b2b5f))_0xcc303a(_0x7979f5);else{const _0x28b81b={};for(const _0xc8b464 of _0x369297){const _0xd4d0cf=_0x11a539['getAttribute'](_0xc8b464);void 0x0!==_0xd4d0cf&&(_0x28b81b[_0xc8b464]=_0xd4d0cf);}_0xcc303a(_0x7979f5),_0x3d4f62['markBlockFormat'](_0x11a539,{'commandParams':[_0x28b81b]},[],_0x1b2b5f);}}});}['handleDiscardAction'](_0x400e1c,_0x49f996,_0x15dee9){const _0x4bbc50=_0x49f996[0x0]['start']['nodeAfter'],_0x550ddf=_0x15dee9['commandParams'][0x0];this['editor']['model']['change'](_0x134924=>{for(const _0x2610f9 of _0x400e1c)void 0x0!==_0x550ddf[_0x2610f9]?_0x134924['setAttribute'](_0x2610f9,_0x550ddf[_0x2610f9],_0x4bbc50):_0x134924['removeAttribute'](_0x2610f9,_0x4bbc50);});}['handleSuggestionDescription'](_0x12a3de){if(_0x12a3de['data'])switch(_0x12a3de['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'](_0x3e76e4,_0x4f1f32){const _0x475c87=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x380fe9 of _0x475c87['getSuggestions']({'skipNotAttached':!0x0})){const _0x2a09aa=_0x380fe9['getContainedElement']();if(_0x380fe9['subType']===_0x4f1f32&&_0x2a09aa===_0x3e76e4)return _0x380fe9;}return null;}}const m='$elementName';class p extends _0x5d703b{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x56e92b,_0x29fa0d,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,at,rt,ct,ut,ft,lt,Q,wt,ht,W,Se,mt,dt,pt,kt,bt,yt,jt,St,At,It,vt,_t,Ct,Nt,xt,Dt,Mt,Bt,Et,$t,Ot,Rt,Tt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x57607d){super(_0x57607d),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x329a8a,_0x476df8,_0x5dd4a1,_0x3c0606)=>{this['_model']['change'](()=>{for(const _0x35aa86 of[..._0x3c0606,..._0x5dd4a1])this['_model']['markers']['has'](_0x35aa86)&&_0x57607d['editing']['reconvertMarker'](_0x35aa86);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Vt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x57607d['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(),_0x57607d['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x57607d['config']['get']('trackChanges.trackFormatChanges'),_0x57607d['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x57607d['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x57607d,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x9c632b=this['editor'],_0x1ec0ef=(_0x4a43e8,_0x2a4336)=>{if('attribute'!=_0x4a43e8)return'ck-suggestion-marker-'+_0x4a43e8;const _0x23c0cb=_0x2a4336['split']('|')[0x0];return this['_isBlockAttribute'](_0x23c0cb)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x9c632b['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x6ba904=>{const {id:_0x51c8b6,authorId:_0x366f3e,type:_0x5ba93a,subType:_0x2b2fde}=this['_splitMarkerName'](_0x6ba904['markerName']),_0x22491d=['ck-suggestion-marker',_0x1ec0ef(_0x5ba93a,_0x2b2fde)];let _0x4b1725=0xbb8;return this['activeMarkers']['includes'](_0x6ba904['markerName'])&&(_0x22491d['push']('ck-suggestion-marker--active'),_0x4b1725=0xbc2),'deletion'==_0x5ba93a&&(_0x4b1725+=0x5),{'classes':_0x22491d,'attributes':{'data-suggestion':_0x51c8b6,'data-author-id':_0x366f3e},'priority':_0x4b1725};}}),_0x9c632b['conversion']['for']('dataDowncast')['add'](_0x42b21a=>{_0x42b21a['on']('addMarker:suggestion',(_0x3d10ca,_0x301627,_0x20bec7)=>{if(!_0x20bec7['options']['showSuggestionHighlights'])return;const _0x19552d=_0x301627['item'];if(!_0x19552d)return;const _0x3bc643=_0x20bec7['mapper']['toViewElement'](_0x19552d);_0x9c632b['model']['schema']['isObject'](_0x19552d)&&_0x3bc643&&!_0x3bc643['getCustomProperty']('widget')&&_0x3bc643['is']('containerElement')&&_0x527930(_0x3bc643,_0x20bec7['writer']);},{'priority':'high'});}),_0x9c632b['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x3d612f,_0x1d7e4e)=>{if(!_0x1d7e4e['options']['showSuggestionHighlights'])return null;const {type:_0x5062c0,subType:_0x2fec40}=this['_splitMarkerName'](_0x3d612f['markerName']);return{'classes':['ck-suggestion-marker',_0x1ec0ef(_0x5062c0,_0x2fec40)],'priority':0xbb8};}});const _0x55a064=({showActiveMarkers:_0x5cca6f=!0x0,isAttributeSuggestion:_0x50ebc0=!0x1}={})=>(_0x4252d5,_0x5c746b,_0x1037af)=>{if(!_0x5c746b['item'])return;const {id:_0x1d932e,authorId:_0x4b2bfd}=this['_splitMarkerName'](_0x5c746b['markerName']);if(_0x50ebc0){const _0x49efd5=this['_suggestions']['get'](_0x1d932e),_0x20a9a6=this['_getAttributeKey'](_0x49efd5);if(!this['_isBlockAttribute'](_0x20a9a6))return;}if(_0x5c746b['item']['is']('selection'))return void _0x1037af['consumable']['consume'](_0x5c746b['item'],_0x4252d5['name']);const _0x3d292c=_0x1037af['mapper']['toViewElement'](_0x5c746b['item']);if(_0x5c746b['item']['is']('element')&&_0x9c632b['model']['schema']['isBlock'](_0x5c746b['item'])&&!_0x3d292c['getCustomProperty']('addHighlight')){_0x1037af['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x3d292c),_0x1037af['writer']['setAttribute']('data-suggestion',_0x1d932e,_0x3d292c),_0x1037af['writer']['setAttribute']('data-author-id',_0x4b2bfd,_0x3d292c),_0x1037af['mapper']['bindElementToMarker'](_0x3d292c,_0x5c746b['markerName']),_0x5cca6f&&(this['activeMarkers']['includes'](_0x5c746b['markerName'])?_0x1037af['writer']['addClass']('ck-suggestion-marker--active',_0x3d292c):_0x1037af['writer']['removeClass']('ck-suggestion-marker--active',_0x3d292c));for(const _0x576dd8 of _0x9c632b['model']['createRangeIn'](_0x5c746b['item'])['getItems']())_0x1037af['consumable']['consume'](_0x576dd8,_0x4252d5['name']);_0x1037af['consumable']['consume'](_0x5c746b['item'],_0x4252d5['name']);}};_0x9c632b['conversion']['for']('dataDowncast')['add'](_0x1b6a3c=>{_0x1b6a3c['on']('addMarker:suggestion:formatBlock',(_0x2e54e5,_0x19568c,_0x417119)=>{_0x417119['options']['showSuggestionHighlights']&&_0x55a064({'showActiveMarkers':!0x1})(_0x2e54e5,_0x19568c,_0x417119);},{'priority':'highest'});}),_0x9c632b['conversion']['for']('dataDowncast')['add'](_0x1fddf8=>{_0x1fddf8['on']('addMarker:suggestion:attribute',(_0xb7a825,_0x15c1ee,_0x4433b3)=>{_0x4433b3['options']['showSuggestionHighlights']&&_0x55a064({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0xb7a825,_0x15c1ee,_0x4433b3);},{'priority':'highest'});}),_0x9c632b['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x527fca,_0xc0902f)=>_0xc0902f['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x527fca['substr'](0xb)}}),_0x9c632b['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x33b7b7,{writer:_0x54a1de})=>{let _0x415365='suggestion:'+_0x33b7b7['getAttribute']('suggestion-type')+':'+_0x33b7b7['getAttribute']('id');return _0x33b7b7['getAttribute']('marker-count')&&(_0x415365+=':'+_0x33b7b7['getAttribute']('marker-count')),_0x54a1de['createElement']('$marker',{'data-name':_0x415365});}}),_0x9c632b['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x9c632b['conversion']['for']('editingDowncast')['add'](_0x15a20e=>{_0x15a20e['on']('addMarker:suggestion:formatBlock',_0x55a064(),{'priority':'high'});}),_0x9c632b['conversion']['for']('editingDowncast')['add'](_0x2fb12b=>{_0x2fb12b['on']('addMarker:suggestion:attribute',_0x55a064({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x9c632b['conversion']['for']('editingDowncast')['add'](_0x1c4564=>{_0x1c4564['on']('removeMarker:suggestion:formatBlock',(_0x156080,_0x2b0e8c,_0x17fe5d)=>{const _0x31c8f1=_0x17fe5d['mapper']['markerNameToElements'](_0x2b0e8c['markerName']);if(_0x31c8f1){for(const _0x3ab024 of _0x31c8f1)_0x3ab024['getCustomProperty']('addHighlight')||(_0x17fe5d['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3ab024),_0x17fe5d['writer']['removeAttribute']('data-suggestion',_0x3ab024),_0x17fe5d['writer']['removeAttribute']('data-author-id',_0x3ab024),_0x17fe5d['mapper']['unbindElementFromMarkerName'](_0x3ab024,_0x2b0e8c['markerName']));}},{'priority':'high'});}),_0x9c632b['conversion']['for']('editingDowncast')['add'](_0x283857=>{_0x283857['on']('removeMarker:suggestion:attribute',(_0x5ab393,_0x45cc6c,_0x593d02)=>{const _0x327d8e=_0x593d02['mapper']['markerNameToElements'](_0x45cc6c['markerName']);if(!_0x327d8e)return;const {id:_0x558f2f}=this['_splitMarkerName'](_0x45cc6c['markerName']),_0x22a778=this['_suggestions']['get'](_0x558f2f),_0x130017=this['_getAttributeKey'](_0x22a778);if(this['_isBlockAttribute'](_0x130017)){for(const _0x5ec7e1 of _0x327d8e)_0x5ec7e1['getCustomProperty']('addHighlight')||(_0x593d02['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5ec7e1),_0x593d02['writer']['removeAttribute']('data-suggestion',_0x5ec7e1),_0x593d02['writer']['removeAttribute']('data-author-id',_0x5ec7e1),_0x593d02['mapper']['unbindElementFromMarkerName'](_0x5ec7e1,_0x45cc6c['markerName']));}},{'priority':'high'});}),_0x9c632b['model']['document']['registerPostFixer'](_0x1eaf6a=>{let _0x47f829=!0x1;const _0x33df28=Array['from'](_0x9c632b['model']['document']['differ']['getChangedMarkers']()),_0x17f577=new Set();for(const {name:_0x2030ab,data:_0x43c0d1}of _0x33df28){const {group:_0x5d22c3,type:_0xb0e31b,subType:_0x4c59ed,id:_0x2bb0af}=this['_splitMarkerName'](_0x2030ab);if('suggestion'!==_0x5d22c3)continue;const _0xecebf9=this['_suggestions']['get'](_0x2bb0af);if(null!=_0x43c0d1['newRange']){'formatInline'==_0xb0e31b&&(_0x47f829=_0x47f829||Ft(_0x43c0d1['newRange'],_0x2030ab,_0x1eaf6a,_0x9c632b['model']['schema']));const _0x5c9271='attribute'==_0xb0e31b&&this['_isBlockAttribute'](_0x4c59ed['split']('|')[0x0]);if(_0x43c0d1['newRange']['isCollapsed']||'$graveyard'==_0x43c0d1['newRange']['root']['rootName']||'formatBlock'==_0xb0e31b&&!Jt(_0x43c0d1['newRange'])||_0x5c9271&&!Jt(_0x43c0d1['newRange'])||'deletion'==_0xb0e31b&&!(!Gt(_0x252d17=_0x43c0d1['newRange'])&&!function(_0xd5e1af){return _0xd5e1af['start']['parent']==_0xd5e1af['end']['nodeBefore']&&_0xd5e1af['start']['isAtEnd'];}(_0x252d17)))_0x1eaf6a['removeMarker'](_0x2030ab),_0x47f829=!0x0;else{if(!_0xecebf9||!_0xecebf9['isInContent'])continue;if(_0x43c0d1['newRange']&&_0x43c0d1['oldRange']&&_0x43c0d1['newRange']['isEqual'](_0x43c0d1['oldRange']))continue;_0x17f577['add'](_0xecebf9);}}}var _0x252d17;return _0x17f577['size']>0x0&&(_0x47f829=!!this['_joinWithAdjacentSuggestions'](_0x17f577)||_0x47f829),_0x47f829;}),_0x9c632b['model']['document']['registerPostFixer'](_0x454e5c=>{let _0x58a6f5=!0x1;for(const _0x5ce5fb of _0x9c632b['model']['document']['differ']['getChanges']())if('insert'==_0x5ce5fb['type'])for(const _0x284125 of this['_suggestions']['values']()){if(_0x284125['isMultiRange']||!_0x284125['isInContent'])continue;const _0x599322='formatBlock'==_0x284125['type'],_0x5c05af=this['_getAttributeKey'](_0x284125),_0x1c87f6=_0x5c05af&&this['_isBlockAttribute'](_0x5c05af);if(!_0x599322&&!_0x1c87f6)continue;const _0x432a56=_0x284125['getFirstRange']();if(_0x432a56['start']['parent']!=_0x432a56['end']['parent']&&!_0x432a56['end']['isAtEnd']){const _0x1f37e6=_0x9c632b['model']['createPositionAt'](_0x432a56['start']['nodeAfter'],'end'),_0x365bdf=_0x9c632b['model']['createRange'](_0x432a56['start'],_0x1f37e6);_0x454e5c['updateMarker'](_0x284125['getFirstMarker'](),{'range':_0x365bdf}),_0x58a6f5=!0x0;}}return _0x58a6f5;}),_0x9c632b['model']['document']['registerPostFixer'](_0x2d074b=>this['_processAttributeChanges'](_0x2d074b)),_0x9c632b['model']['document']['registerPostFixer'](_0x589be8=>!_0x589be8['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x589be8)),_0x9c632b['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x9c632b['model']['document']['on']('change:data',(_0x39062f,_0x1ed338)=>{if(!_0x1ed338['isLocal']||_0x1ed338['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x7459da=_0x9c632b['model']['document']['differ']['getChanges']();if(0x0==_0x7459da['length'])return;const _0x607644=[],_0x2407e5=_0x7459da['filter'](_0x399e9f=>'attribute'==_0x399e9f['type']),_0x4f6315=_0x7459da['filter'](_0x57f501=>'insert'==_0x57f501['type']&&'$text'!=_0x57f501['name']);for(const _0x22d8ca of _0x2407e5)this['_isRegisteredAttribute'](_0x22d8ca['attributeKey'])&&_0x607644['push']({'key':_0x22d8ca['attributeKey'],'newValue':_0x22d8ca['attributeNewValue'],'oldValue':_0x22d8ca['attributeOldValue'],'range':Ht(_0x22d8ca['range'],_0x9c632b['model'])});for(const _0x420ad6 of _0x4f6315){if('rename'!=_0x420ad6['action']&&'refresh'!=_0x420ad6['action'])continue;const _0xf6a303=qt(_0x420ad6['position']['nodeAfter'],_0x9c632b['model']),_0x32368a=_0x420ad6['before'];'rename'==_0x420ad6['action']&&_0x607644['push']({'key':m,'newValue':_0x420ad6['name'],'oldValue':_0x32368a['name'],'range':_0xf6a303});for(const [_0xb48c0a,_0x37016e]of _0x32368a['attributes']){if(!this['_isRegisteredAttribute'](_0xb48c0a))continue;const _0x3768b8=_0x420ad6['attributes']['get'](_0xb48c0a);_0x37016e!==_0x3768b8&&_0x607644['push']({'key':_0xb48c0a,'newValue':_0x3768b8,'oldValue':_0x37016e,'range':_0xf6a303});}for(const [_0x199c35,_0x28e98f]of _0x420ad6['attributes'])this['_isRegisteredAttribute'](_0x199c35)&&(_0x32368a['attributes']['has'](_0x199c35)||_0x607644['push']({'key':_0x199c35,'newValue':_0x28e98f,'oldValue':null,'range':_0xf6a303}));}0x0!=_0x607644['length']&&_0x9c632b['model']['enqueueChange'](_0x1ed338,_0x15d1aa=>{const _0x419ecb=_0x1c060f();for(const {range:_0x186cf7,key:_0x284086,oldValue:_0x65840e,newValue:_0x333c97}of _0x607644)this['markAttributeChange'](_0x186cf7,_0x284086,_0x65840e,_0x333c97,{'groupId':_0x419ecb});this['_reduceExistingSuggestions'](_0x15d1aa,_0x607644);});},{'priority':'lowest'}),_0x9c632b['model']['markers']['on']('update:suggestion',(_0x154d37,_0x4e535d,_0xee6ca8)=>{if(null==_0xee6ca8){const {id:_0x40e5f0}=this['_splitMarkerName'](_0x4e535d['name']),_0x3455a0=this['_suggestions']['get'](_0x40e5f0);_0x3455a0&&_0x3455a0['addMarkerName'](_0x4e535d['name']);}}),_0x9c632b['model']['document']['on']('change:data',()=>{const _0x17adad=Array['from'](_0x9c632b['model']['document']['differ']['getChangedMarkers']())['filter'](_0x10af28=>'suggestion'===this['_splitMarkerName'](_0x10af28['name'])['group']);if(0x0===_0x17adad['length'])return;_0x17adad['sort']((_0x4e78ad,_0x340cc9)=>{const _0x5328c4=_0x4e78ad['data']['oldRange'],_0x5fb604=_0x340cc9['data']['oldRange'];return null===_0x5328c4&&null===_0x5fb604?0x0:null===_0x5328c4&&null!==_0x5fb604?-0x1:null!==_0x5328c4&&null===_0x5fb604?0x1:_0x5328c4['start']['isBefore'](_0x5fb604['start'])?-0x1:0x1;});const _0x5d7db9=new Set(),_0x4e1552=new Set();for(const {name:_0x1a24b5,data:_0x4e06a9}of _0x17adad){const {id:_0x2b493a}=this['_splitMarkerName'](_0x1a24b5);if(null===_0x4e06a9['oldRange']){const _0x2a00f9=this['_handleNewSuggestionMarker'](_0x1a24b5);_0x4e1552['add'](_0x2a00f9);}else{const _0x5894a1=this['_suggestions']['get'](_0x2b493a);null!==_0x4e06a9['newRange']||_0x5894a1['isInContent']?(_0x5d7db9['add'](_0x5894a1['head']),_0x4e1552['add'](_0x5894a1)):this['_removeSuggestion'](_0x5894a1);}}_0x4e1552['size']>0x0&&this['_refreshSuggestionsChain'](_0x4e1552);for(const _0x15d002 of _0x5d7db9)this['fire']('suggestionChanged',_0x15d002);}),_0x9c632b['model']['on']('applyOperation',(_0x454507,_0x3413d7)=>{const _0x9efb7d=_0x3413d7[0x0];if(!this['_suggestions']['size'])return;if(!_0x9efb7d['isDocumentOperation'])return;if(_0x9efb7d['batch']['isUndo']||!_0x9efb7d['batch']['isLocal'])return;let _0x3807d6,_0x26c7d0;switch(_0x9efb7d['type']){case'insert':_0x3807d6=_0x9c632b['model']['createPositionAt'](_0x9efb7d['position']),_0x26c7d0=_0x3807d6['getShiftedBy'](_0x9efb7d['howMany']);break;case'split':_0x3807d6=_0x9c632b['model']['createPositionAt'](_0x9efb7d['splitPosition']),_0x26c7d0=_0x9c632b['model']['createPositionAt'](_0x9efb7d['moveTargetPosition']);break;case'move':_0x3807d6=_0x9c632b['model']['createPositionAt'](_0x9efb7d['targetPosition']),_0x26c7d0=_0x3807d6['getShiftedBy'](_0x9efb7d['howMany']);break;default:return;}const _0x20e48c=_0x9c632b['model']['createRange'](_0x3807d6,_0x26c7d0);_0x9c632b['model']['change'](()=>{for(const {suggestion:_0x312e20,meta:_0x1c819e}of this['_findSuggestions'](_0x20e48c)){if(_0x312e20['isMultiRange'])continue;if('formatInline'==_0x312e20['type'])continue;const _0xd1b308=this['_getAttributeKey'](_0x312e20);if(_0xd1b308&&this['_isBlockAttribute'](_0xd1b308)&&'split'!=_0x9efb7d['type'])continue;const _0x59a2fa=_0x312e20['data']&&_0x312e20['data']['multipleBlocks'];('formatBlock'!=_0x312e20['type']||'split'==_0x9efb7d['type']&&!_0x59a2fa)&&(_0x1c819e['containsRangeInObject']||'insertion'==_0x312e20['type']&&_0x1c819e['isOwn']||_0x312e20['getFirstRange']()['containsRange'](_0x20e48c)&&this['_breakSuggestionMarker'](_0x312e20,_0x3807d6,_0x26c7d0));}});},{'priority':'lowest'}),_0x9c632b['model']['on']('deleteContent',(_0x45da7d,_0x39fc93)=>{const _0x4ec5ac=_0x39fc93[0x0],_0x2b0e21=_0x39fc93[0x1];if(_0x2b0e21&&_0x2b0e21['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x4ec5ac['isCollapsed'])return;const _0x5a5816=_0x9c632b['model']['schema'],{start:_0x1bd780,end:_0x24cf06}=_0x4ec5ac['getFirstRange'](),_0x454f71=_0x1bd780['nodeAfter']&&_0x5a5816['isLimit'](_0x1bd780['nodeAfter'])?null:_0x5a5816['getNearestSelectionRange'](_0x1bd780,'forward'),_0x74142f=_0x24cf06['nodeBefore']&&_0x5a5816['isLimit'](_0x24cf06['nodeBefore'])?null:_0x5a5816['getNearestSelectionRange'](_0x24cf06,'backward'),_0x1c635b=_0x9c632b['model']['createRange'](_0x454f71?_0x454f71['start']:_0x1bd780,_0x74142f?_0x74142f['end']:_0x24cf06);_0x9c632b['model']['change'](_0x5b29f5=>{this['markDeletion'](_0x1c635b);const _0x512891=_0x9c632b['model']['schema']['getNearestSelectionRange'](_0x1c635b['start']);_0x4ec5ac['is']('documentSelection')?_0x5b29f5['setSelection'](_0x512891):_0x4ec5ac['setTo'](_0x512891);}),_0x45da7d['stop']();},{'priority':_0x52a047['normal']+0xa}),_0x9c632b['model']['on']('insertContent',(_0x4e045d,_0x23e66c)=>{const _0x33c2c7=_0x23e66c[_0x23e66c['length']-0x1];_0x33c2c7&&_0x33c2c7['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x9c632b['model']['change'](()=>{let _0xe35baa=_0x9c632b['model']['insertContent'](_0x23e66c[0x0],_0x23e66c[0x1],_0x23e66c[0x2],{'forceDefaultExecution':!0x0});if(!_0xe35baa)return;_0x4e045d['return']=_0xe35baa['clone']();const _0x13ee36=_0xe35baa['end']['nodeBefore'],_0x4a222c=_0x9c632b['model']['schema'];_0x13ee36&&_0x4a222c['isBlock'](_0x13ee36)&&!_0x4a222c['isObject'](_0x13ee36)&&(_0xe35baa=_0x9c632b['model']['createRange'](_0xe35baa['start'],_0x9c632b['model']['createPositionAt'](_0x13ee36,'end'))),this['markInsertion'](_0xe35baa);}),_0x4e045d['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x4caef9=new O(_0x9c632b,this['_suggestions']);_0x9c632b['commands']['add']('acceptSuggestion',_0x4caef9),this['enableCommand']('acceptSuggestion');const _0x36959f=new R(_0x9c632b,this['_suggestions']);_0x9c632b['commands']['add']('discardSuggestion',_0x36959f),this['enableCommand']('discardSuggestion'),_0x9c632b['commands']['add']('acceptAllSuggestions',new x(_0x9c632b,_0x4caef9,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x9c632b['commands']['add']('discardAllSuggestions',new x(_0x9c632b,_0x36959f,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x9c632b['commands']['add']('acceptSelectedSuggestions',new E(_0x9c632b,_0x4caef9,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x9c632b['commands']['add']('discardSelectedSuggestions',new E(_0x9c632b,_0x36959f,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x27fdda=_0x9c632b['plugins']['get']('CommentsRepository');this['listenTo'](_0x27fdda,'addComment',(_0x52d571,{threadId:_0x192bd1})=>{const _0x3146d0=this['_suggestions']['get'](_0x192bd1);_0x3146d0&&_0x3146d0['commentThread']&&0x1===_0x3146d0['commentThread']['length']&&this['_updateSuggestionData'](_0x192bd1,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x27fdda,'removeComment',(_0x260d8b,{threadId:_0x2324eb})=>{const _0x107d4b=this['_suggestions']['get'](_0x2324eb);_0x107d4b&&_0x107d4b['commentThread']&&!_0x107d4b['commentThread']['length']&&this['_updateSuggestionData'](_0x2324eb,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x1b76be){const _0x12a811=_0x140d05([0x35,0x4e,0x6c,0x66,0x53,0x52,0x79,0x68,0x65,0x48,0x6e,0x67,0x69,0x6f,0x57,0x36,0x31,0x56,0x6d,0x6a,0x42,0x61,0x37,0x58,0x59,0x41,0x32,0x73,0x63,0x6b,0x4d,0x7a,0x4c,0x64,0x49,0x44,0x70,0x72,0x46,0x4f,0x47,0x34,0x30,0x54,0x33,0x39,0x5a,0x74,0x78,0x50,0x75,0x51,0x45,0x4b,0x38,0x55,0x4a,0x71,0x76,0x77,0x62,0x43]),_0x57b784=0x9bc6f1,_0x4c0830=0x9c9881^_0x57b784,_0x3826c6=window[_0x140d05([0x44,0x61,0x74,0x65])][_0x140d05([0x6e,0x6f,0x77])](),_0x1c0ec4=_0x1b76be[_0x140d05([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x19c2a6=new window[(_0x140d05([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a27d6=>{_0x1c0ec4[_0x140d05([0x6f,0x6e,0x63,0x65])](_0x140d05([0x72,0x65,0x61,0x64,0x79]),_0x4a27d6);}),_0x5bc2cb={[_0x140d05([0x6b,0x74,0x79])]:_0x140d05([0x45,0x43]),[_0x140d05([0x75,0x73,0x65])]:_0x140d05([0x73,0x69,0x67]),[_0x140d05([0x63,0x72,0x76])]:_0x140d05([0x50,0x2d,0x32,0x35,0x36]),[_0x140d05([0x78])]:_0x140d05([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]),[_0x140d05([0x79])]:_0x140d05([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]),[_0x140d05([0x61,0x6c,0x67])]:_0x140d05([0x45,0x53,0x32,0x35,0x36])},_0x36146a=_0x1c0ec4[_0x140d05([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x140d05([0x67,0x65,0x74])](_0x140d05([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5e9303(){let _0x4f59d7,_0x498cbe=null,_0x41b308=null;try{if(_0x36146a==_0x140d05([0x47,0x50,0x4c]))return _0x140d05([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4f59d7=_0x541edf(),!_0x4f59d7)return _0x140d05([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4f59d7[_0x140d05([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x41b308=_0x2135c4(_0x4f59d7[_0x140d05([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4f59d7[_0x140d05([0x6a,0x74,0x69])])),await _0x5bb8ca()?_0x54f8b5()?_0x1eb5aa()?_0x140d05([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x18f645()?(_0x4f59d7[_0x140d05([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x140d05([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x498cbe=_0x189417(_0x140d05([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4f59d7[_0x140d05([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x140d05([0x74,0x72,0x69,0x61,0x6c])&&(_0x498cbe=_0x189417(_0x140d05([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x24b1f0()):_0x140d05([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x140d05([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x140d05([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x261198){return _0x140d05([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1eb5aa(){const _0x2878bf=[_0x140d05([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x140d05([0x74,0x72,0x69,0x61,0x6c])][_0x140d05([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f59d7[_0x140d05([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3826c6/0x3e8:0xe10*_0x4c0830;return _0x4f59d7[_0x140d05([0x65,0x78,0x70])]<_0x2878bf;}function _0x54f8b5(){const _0x23a7f9=_0x4f59d7[_0x140d05([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x23a7f9)return!0x1;if(_0x23a7f9[_0x140d05([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x140d05([0x2a])))return!0x0;if(_0x23a7f9[_0x140d05([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x140d05([0x54,0x43])))return!0x0;if(_0x23a7f9[_0x140d05([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x140d05([0x52,0x54,0x43]))){if(_0x507fb0())return!0x0;if(_0x352404()||_0x404db4())return!0x0;}return!0x1;}function _0x18f645(){const _0x7d2ca4=_0x4f59d7[_0x140d05([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x7d2ca4||0x0==_0x7d2ca4[_0x140d05([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xb1e1ae}=new URL(window[_0x140d05([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x7d2ca4[_0x140d05([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb1e1ae))return!0x0;const _0x377c28=_0xb1e1ae[_0x140d05([0x73,0x70,0x6c,0x69,0x74])](_0x140d05([0x2e]));return _0x7d2ca4[_0x140d05([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x354033=>_0x354033[_0x140d05([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x140d05([0x2a])))[_0x140d05([0x6d,0x61,0x70])](_0x5740ae=>_0x5740ae[_0x140d05([0x73,0x70,0x6c,0x69,0x74])](_0x140d05([0x2e])))[_0x140d05([0x73,0x6f,0x6d,0x65])](_0x25bbd1=>_0x377c28[_0x140d05([0x65,0x76,0x65,0x72,0x79])]((_0x5ab40a,_0x5a798c)=>_0x25bbd1[_0x5a798c]===_0x5ab40a||_0x25bbd1[_0x5a798c]===_0x140d05([0x2a])));}function _0x24b1f0(){return _0x498cbe&&_0x41b308?new window[(_0x140d05([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x29f4c4,_0x267944)=>{_0x498cbe[_0x140d05([0x74,0x68,0x65,0x6e])](_0x29f4c4,_0x267944),_0x41b308[_0x140d05([0x74,0x68,0x65,0x6e])](_0x536dbf=>{_0x536dbf!=_0x140d05([0x56,0x61,0x6c,0x69,0x64])&&_0x29f4c4(_0x536dbf);},_0x267944);}):_0x498cbe||_0x41b308||_0x140d05([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2135c4(_0x2fc938,_0x1477ad){return new window[(_0x140d05([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x17256b=>{if(_0x692dd9())return _0x17256b(_0x140d05([0x56,0x61,0x6c,0x69,0x64]));_0x3931f9(),_0x1c0ec4[_0x140d05([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x140d05([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4805e2=!0x1;const _0x2f1e37=_0x1c060f();function _0x49fd4a(_0x153b6b){return!!_0x153b6b&&(typeof _0x153b6b===_0x140d05([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x153b6b===_0x140d05([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x153b6b[_0x140d05([0x74,0x68,0x65,0x6e])]===_0x140d05([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x153b6b[_0x140d05([0x63,0x61,0x74,0x63,0x68])]===_0x140d05([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x43f915(_0x5dd2d5){_0x579e6a(_0x5dd2d5)[_0x140d05([0x74,0x68,0x65,0x6e])](_0x77375=>{if(!_0x77375||_0x77375[_0x140d05([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x140d05([0x6f,0x6b]))return _0x140d05([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x704a56(_0x2333b2(_0x2f1e37+_0x1477ad))!=_0x77375[_0x140d05([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x140d05([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x140d05([0x56,0x61,0x6c,0x69,0x64]);})[_0x140d05([0x74,0x68,0x65,0x6e])](_0x3791ca=>(_0x5804cc(),_0x3791ca),()=>{const _0x4876dd=_0x193515();return null==_0x4876dd?(_0x5804cc(),_0x140d05([0x56,0x61,0x6c,0x69,0x64])):_0x140d05(_0x3826c6-_0x4876dd>(0x249742f1^_0x57b784)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x140d05([0x74,0x68,0x65,0x6e])](_0x17256b)[_0x140d05([0x63,0x61,0x74,0x63,0x68])](()=>{_0x17256b(_0x140d05([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x812750=0xad2871^_0x57b784;function _0x5804cc(){const _0x1bdd6f=_0x140d05([0x6c,0x6c,0x63,0x74,0x2d])+_0x704a56(_0x2333b2(_0x2fc938)),_0x1d166b=_0x2f9537(_0x704a56(window[_0x140d05([0x4d,0x61,0x74,0x68])][_0x140d05([0x63,0x65,0x69,0x6c])](_0x3826c6/_0x812750)));window[_0x140d05([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x140d05([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1bdd6f,_0x1d166b);}function _0x193515(){const _0xf9d3c2=_0x140d05([0x6c,0x6c,0x63,0x74,0x2d])+_0x704a56(_0x2333b2(_0x2fc938)),_0x249561=window[_0x140d05([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x140d05([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xf9d3c2);return _0x249561?window[_0x140d05([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2f9537(_0x249561),0x10)*_0x812750:null;}function _0x579e6a(_0x37a5ba){return new window[(_0x140d05([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x357762,_0x21c30e)=>{_0x37a5ba[_0x140d05([0x74,0x68,0x65,0x6e])](_0x357762,_0x21c30e),window[_0x140d05([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x21c30e,0x9a1231^_0x57b784);});}}_0x1c0ec4[_0x140d05([0x6f,0x6e])](_0x140d05([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2ecc2c,_0xb2dd5)=>{if(_0xb2dd5[0x0]!=_0x2fc938)return _0x17256b(_0x140d05([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xb2dd5[0x1]={..._0xb2dd5[0x1],[_0x140d05([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2f1e37};},{[_0x140d05([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x140d05([0x68,0x69,0x67,0x68])}),_0x1c0ec4[_0x140d05([0x6f,0x6e])](_0x140d05([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x21e58b=>{_0x49fd4a(_0x21e58b[_0x140d05([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4805e2=!0x0,_0x43f915(_0x21e58b[_0x140d05([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x140d05([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x140d05([0x6c,0x6f,0x77])}),_0x19c2a6[_0x140d05([0x74,0x68,0x65,0x6e])](()=>{_0x4805e2||_0x17256b(_0x140d05([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x692dd9(){return _0x1c0ec4[_0x140d05([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x140d05([0x76,0x69,0x65,0x77])][_0x140d05([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x140d05([0x61,0x75,0x74,0x6f]);}function _0x3931f9(){_0x1c0ec4[_0x140d05([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x140d05([0x76,0x69,0x65,0x77])][_0x140d05([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x140d05([0x61,0x75,0x74,0x6f]);}}function _0x189417(_0x123f69){const _0x5cadd0=[new window[(_0x140d05([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a6887=>setTimeout(_0x4a6887,0x92f83d^_0x57b784)),_0x19c2a6[_0x140d05([0x74,0x68,0x65,0x6e])](()=>new window[(_0x140d05([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x16809e=>{let _0x5c0667=0x0;_0x1c0ec4[_0x140d05([0x6d,0x6f,0x64,0x65,0x6c])][_0x140d05([0x6f,0x6e])](_0x140d05([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x51e7d7,_0xb909dc)=>{_0xb909dc[0x0][_0x140d05([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5c0667++,_0x5c0667==(0x9bc709^_0x57b784)&&(_0x16809e(),_0x51e7d7[_0x140d05([0x6f,0x66,0x66])]());});}))];return window[_0x140d05([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x140d05([0x72,0x61,0x63,0x65])](_0x5cadd0)[_0x140d05([0x74,0x68,0x65,0x6e])](()=>_0x123f69);}async function _0x5e0a20(){await _0x19c2a6,_0x1c0ec4[_0x140d05([0x6d,0x6f,0x64,0x65,0x6c])][_0x140d05([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x34ddbd,_0x1c0ec4[_0x140d05([0x6d,0x6f,0x64,0x65,0x6c])][_0x140d05([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x34ddbd,_0x1c0ec4[_0x140d05([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x140d05([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x507fb0(){return _0x14e376(_0x140d05([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5240db(_0x140d05([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x140d05([0x73,0x74,0x61,0x74,0x65])]==_0x140d05([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x352404(){return _0x14e376(_0x140d05([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 _0x404db4(){return _0x14e376(_0x140d05([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x5a2293(_0x24c9e7){const _0x540991=_0x4c7379();_0x1c0ec4[_0x540991]=_0x140d05([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x24c9e7,_0x24c9e7!=_0x140d05([0x56,0x61,0x6c,0x69,0x64])&&_0x5e0a20();}function _0x4c7379(){const _0x15933c=window[_0x140d05([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x140d05([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x140d05([0x6e,0x6f,0x77])]())[_0x140d05([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x140d05([0x2e]),'');let _0x4cf3b3=_0x140d05([0x4e]);for(let _0x2f87b1=0x0;_0x2f87b1<_0x15933c[_0x140d05([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2f87b1+=0x2){let _0x2c7b2d=window[_0x140d05([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x15933c[_0x140d05([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2f87b1,_0x2f87b1+0x2));_0x2c7b2d>=_0x12a811[_0x140d05([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2c7b2d-=_0x12a811[_0x140d05([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4cf3b3+=_0x12a811[_0x2c7b2d];}return _0x4cf3b3;}function _0x541edf(){const _0x1faca4=_0x36146a[_0x140d05([0x73,0x70,0x6c,0x69,0x74])](_0x140d05([0x2e]));if(0x3!=_0x1faca4[_0x140d05([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4406de(_0x1faca4[0x1]);function _0x4406de(_0xa6d7c5){const _0x110f6b=_0x163809(_0xa6d7c5);return _0x110f6b&&_0x15f3b5()?_0x110f6b:null;function _0x15f3b5(){const _0x541ee0=_0x110f6b[_0x140d05([0x6a,0x74,0x69])],_0x39f354=window[_0x140d05([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x541ee0[_0x140d05([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x541ee0[_0x140d05([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x46b862={..._0x110f6b,[_0x140d05([0x6a,0x74,0x69])]:_0x541ee0[_0x140d05([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x541ee0[_0x140d05([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x46b862[_0x140d05([0x76,0x63])],_0x2333b2(_0x46b862)==_0x39f354;}}}async function _0x5bb8ca(){let _0x36b79b=!0x0;try{const _0x25f47e=_0x36146a[_0x140d05([0x73,0x70,0x6c,0x69,0x74])](_0x140d05([0x2e])),[_0x1e6d33,_0x5beb0a,_0x2c565f]=_0x25f47e;return _0x3432d1(_0x1e6d33),await _0x1fba4c(_0x1e6d33,_0x5beb0a,_0x2c565f),_0x36b79b;}catch(_0x1d0225){return!0x1;}function _0x3432d1(_0x3bbf4e){const _0x3088f8=_0x163809(_0x3bbf4e);_0x3088f8&&_0x3088f8[_0x140d05([0x61,0x6c,0x67])]==_0x140d05([0x45,0x53,0x32,0x35,0x36])||(_0x36b79b=!0x1);}async function _0x1fba4c(_0x3f48ed,_0x17b7c2,_0x31a378){const _0x4910cb=window[_0x140d05([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x140d05([0x66,0x72,0x6f,0x6d])](_0xab9a11(_0x31a378),_0x355570=>_0x355570[_0x140d05([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x339575=new window[(_0x140d05([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x140d05([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3f48ed+_0x140d05([0x2e])+_0x17b7c2),_0x356bbe=window[_0x140d05([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x140d05([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x356bbe)return;const _0x1f4a26=await _0x356bbe[_0x140d05([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x140d05([0x6a,0x77,0x6b]),_0x5bc2cb,{[_0x140d05([0x6e,0x61,0x6d,0x65])]:_0x140d05([0x45,0x43,0x44,0x53,0x41]),[_0x140d05([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x140d05([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x140d05([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x356bbe[_0x140d05([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x140d05([0x6e,0x61,0x6d,0x65])]:_0x140d05([0x45,0x43,0x44,0x53,0x41]),[_0x140d05([0x68,0x61,0x73,0x68])]:{[_0x140d05([0x6e,0x61,0x6d,0x65])]:_0x140d05([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1f4a26,_0x4910cb,_0x339575)||(_0x36b79b=!0x1);}}function _0x163809(_0x4d00eb){return _0x4d00eb[_0x140d05([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x140d05([0x65,0x79]))?JSON[_0x140d05([0x70,0x61,0x72,0x73,0x65])](_0xab9a11(_0x4d00eb)):null;}function _0xab9a11(_0x120c15){return window[_0x140d05([0x61,0x74,0x6f,0x62])](_0x120c15[_0x140d05([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x140d05([0x2b]))[_0x140d05([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x140d05([0x2f])));}function _0x2333b2(_0x568280){let _0x42d028=0x1505;function _0x3727be(_0x52da46){for(let _0x2185b8=0x0;_0x2185b8<_0x52da46[_0x140d05([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2185b8++){const _0x203c25=_0x52da46[_0x140d05([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2185b8);_0x42d028=(_0x42d028<<0x5)+_0x42d028+_0x203c25,_0x42d028&=_0x42d028;}}function _0x473174(_0x3fba5d){Array[_0x140d05([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3fba5d)?_0x3fba5d[_0x140d05([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x473174):_0x3fba5d&&typeof _0x3fba5d==_0x140d05([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x140d05([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3fba5d)[_0x140d05([0x73,0x6f,0x72,0x74])]()[_0x140d05([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x37a72e,_0x19737d])=>{_0x3727be(_0x37a72e),_0x473174(_0x19737d);}):_0x3727be(window[_0x140d05([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3fba5d));}return _0x473174(_0x568280),_0x42d028>>>0x0;}function _0x704a56(_0x16e8ba){return _0x16e8ba[_0x140d05([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x140d05([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x140d05([0x30]));}function _0x2f9537(_0x2c4d5e){return _0x2c4d5e[_0x140d05([0x73,0x70,0x6c,0x69,0x74])]('')[_0x140d05([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x140d05([0x6a,0x6f,0x69,0x6e])]('');}function _0x14e376(_0x221a5c){return _0x1c0ec4[_0x140d05([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x140d05([0x68,0x61,0x73])](_0x221a5c);}function _0x5240db(_0x50a819){return _0x1c0ec4[_0x140d05([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x140d05([0x67,0x65,0x74])](_0x50a819);}function _0x34ddbd(){}function _0x140d05(_0x3a74db){return _0x3a74db['map'](_0x30d4a4=>String['fromCharCode'](_0x30d4a4))['join']('');}_0x5a2293(await _0x5e9303());}(this);}set['adapter'](_0x581b9b){if(this['_adapter'])throw new _0x5370f3('track-changes-adapter-already-set',this);this['_adapter']=_0x581b9b;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x4da3b8=!0x1,toJSON:_0x5e139b=!0x1}={}){const _0x3ee35f=[];for(const _0x2c23a9 of this['_suggestions']['values']())_0x4da3b8&&!_0x2c23a9['isInContent']||_0x3ee35f['push'](_0x2c23a9);return _0x5e139b?_0x3ee35f['map'](_0x3ab2e1=>_0x3ab2e1['toJSON']()):_0x3ee35f;}['getSuggestion'](_0x374e64){const _0x474183=this['_suggestions']['get'](_0x374e64);if(!_0x474183)throw new _0x5370f3('track-changes-suggestion-not-found',this);return _0x474183;}['hasSuggestion'](_0x1b1ce5){return this['_suggestions']['has'](_0x1b1ce5);}['addSuggestionData'](_0x396098){const {authorId:_0x53d178,id:_0x11e17b,attributes:_0x376558}=_0x396098,[_0x76d6ec,_0x2986d9]=_0x396098['type']['split'](':'),_0xff5938=this['_suggestions']['get'](_0x11e17b)||this['_createSuggestion'](_0x76d6ec,_0x2986d9,_0x11e17b,_0x53d178,_0x376558);if(this['_addThreadToSuggestion'](_0xff5938),this['_checkSuggestionCorrectness'](_0xff5938,_0x76d6ec,_0x2986d9||null,_0x53d178),_0xff5938['createdAt']=_0x396098['createdAt'],_0xff5938['_isDataLoaded']=!0x0,_0x376558&&_0x376558['@external']){const _0x5d515c=_0x376558['@external'],_0x19ea69=this['_getExternalAuthor'](_0x5d515c['authorName']);_0xff5938['authoredAt']=_0x5d515c['createdAt'],_0xff5938['author']=_0x19ea69,_0xff5938['isExternal']=!0x0;}else _0xff5938['authoredAt']=_0x396098['createdAt'];switch(_0x396098['data']&&(_0xff5938['data']=_0x396098['data']),_0x396098['attributes']&&(_0xff5938['attributes']=_0x396098['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0xff5938['_saved']=!0x0),this['_suggestionState']['get'](_0xff5938)){case'notReady':this['_suggestionState']['set'](_0xff5938,'dataReady');break;case'markerReady':_0xff5938['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0xff5938])),this['_refreshSuggestionsChain'](new Set([_0xff5938])),this['_suggestionState']['set'](_0xff5938,'ready'),this['fire']('suggestionLoaded',_0xff5938)):this['_suggestionState']['set'](_0xff5938,'removed');}return _0xff5938;}['acceptSuggestion'](_0x178723){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4c8dd9 of _0x178723['getAllAdjacentSuggestions']())_0x4c8dd9['accept']();});});}['discardSuggestion'](_0x5c612f){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1af898 of _0x5c612f['getAllAdjacentSuggestions']())_0x1af898['discard']();});});}['enableCommand'](_0x4da39a,_0x185b9f){const _0x1a7d0c=this['editor']['commands']['get'](_0x4da39a);if(!_0x1a7d0c)throw new _0x5370f3('track-changes-command-not-found',this,{'commandName':_0x4da39a});if(this['_enabledCommands']['has'](_0x1a7d0c))throw new _0x5370f3('track-changes-enable-command-twice',this,{'commandName':_0x4da39a});this['_enabledCommands']['add'](_0x1a7d0c),_0x185b9f&&_0x1a7d0c['on']('execute',(_0x2e753e,_0x479aba)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x479aba['length']>0x0&&_0x479aba[_0x479aba['length']-0x1]&&_0x479aba[_0x479aba['length']-0x1]['forceDefaultExecution']?_0x479aba['pop']():(_0x2e753e['return']=_0x185b9f((..._0x110aeb)=>_0x1a7d0c['execute'](..._0x110aeb,{'forceDefaultExecution':!0x0}),..._0x479aba),_0x2e753e['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x1f51b0){let _0xcaf3e0,_0x21ec41;const _0x2b65f4=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0xcaf3e0=_0x1f51b0();}catch(_0x5a77e4){_0x21ec41=_0x5a77e4;}return _0x2b65f4||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x21ec41&&_0x5370f3['rethrowUnexpectedError'](_0x21ec41,this),_0xcaf3e0;}['markInsertion'](_0x52461e,_0x1811f9=null,_0x2f09be={}){if(_0x52461e['isCollapsed'])return null;const _0x17d3fd=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x2cd861,meta:_0x144ac0}of this['_findSuggestions'](_0x52461e,'insertion'))if(_0x144ac0['isOwn']){if(!_0x144ac0['isNextTo']){if(_0x144ac0['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Wt(_0x2cd861,_0x2f09be))continue;return _0x2cd861;}if(Wt(_0x2cd861,_0x2f09be))return _0x2cd861;this['_breakSuggestionMarker'](_0x2cd861,_0x52461e['start'],_0x52461e['end']);break;}if(_0x1811f9==_0x2cd861['subType']&&Wt(_0x2cd861,_0x2f09be)){const _0xc69c48=_0x2cd861['getFirstRange']();return _0xc69c48['start']['isEqual'](_0x52461e['end'])?this['_setSuggestionRange'](_0x2cd861,this['_model']['createRange'](_0x52461e['start'],_0xc69c48['end'])):this['_setSuggestionRange'](_0x2cd861,this['_model']['createRange'](_0xc69c48['start'],_0x52461e['end'])),_0x2cd861;}}const _0x15f96a=_0x1c060f(),_0x5b4185=_0x17d3fd['id'],_0x2e4c63=_0x1811f9?'insertion:'+_0x1811f9:'insertion',_0x5cbda4=this['_setSuggestionData']({'id':_0x15f96a,'type':_0x2e4c63,'createdAt':new Date(),'authorId':_0x5b4185,'attributes':_0x2f09be});return this['_addSuggestionMarker'](_0x2e4c63,_0x15f96a,_0x5b4185,_0x52461e),_0x5cbda4;}['markMultiRangeInsertion'](_0xbd3c3f,_0x1cf437='multi',_0x5ddc77={}){const _0x284291=this['editor']['plugins']['get']('Users')['me'],_0x5044f6=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x1cf437,'join');for(const _0xa00f8e of this['getSuggestions']())if(_0xa00f8e['author']['id']==_0x284291['id']&&'insertion'==_0xa00f8e['type']&&_0xa00f8e['subType']==_0x1cf437&&Wt(_0xa00f8e,_0x5ddc77)&&(_0x5044f6(_0xa00f8e['getRanges'](),_0xbd3c3f)||_0x5044f6(_0xbd3c3f,_0xa00f8e['getRanges']()))){for(const _0x486970 of _0xbd3c3f)_0xa00f8e['addRange'](_0x486970);return _0xa00f8e;}for(const {suggestion:_0x5a4c5d,meta:_0x19cc1f}of this['_findSuggestions'](_0xbd3c3f,'insertion')){if(!_0x19cc1f['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x19cc1f['containsRangeInObject'])continue;if(!Wt(_0x5a4c5d,_0x5ddc77))continue;let _0x2ee026=!0x0;for(const _0x4909b3 of _0x5a4c5d['getRanges']())for(const _0x5e471c of _0xbd3c3f)if(!_0x4909b3['containsRange'](_0x5e471c)){_0x2ee026=!0x1;break;}if(_0x2ee026)return _0x5a4c5d;}const _0x3a43e8=_0x1c060f(),_0x42cb16=_0x284291['id'],_0x2bef50='insertion:'+_0x1cf437,_0x500d0c=this['_setSuggestionData']({'id':_0x3a43e8,'type':_0x2bef50,'createdAt':new Date(),'authorId':_0x42cb16,'attributes':_0x5ddc77});for(const _0x5071d8 of _0xbd3c3f)this['_addSuggestionMarker'](_0x2bef50,_0x3a43e8,_0x42cb16,_0x5071d8,u['getMultiRangeId']());return _0x500d0c;}['markInlineFormat'](_0x23f241,_0x32048b,_0x55dbf6=null,_0x1604f0={}){if(_0x55dbf6=_0x55dbf6||Lt(_0x32048b),_0x23f241['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x598374=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x55dbf6,'accept');return this['forceDefaultExecution'](()=>_0x598374([_0x23f241],_0x32048b,_0x1604f0)),null;}const _0x151044=this['editor']['plugins']['get']('Users')['me'],_0x377265=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x1c0c66,meta:_0x483817}of this['_findSuggestions'](_0x23f241,'insertion'))_0x483817['isOwn']&&!_0x483817['isInsideObject']&&_0x377265['push'](..._0x1c0c66['getRanges']());}const _0xe355fb=function(_0x8e9473,_0x1bcb5c){const _0xd6423f=[];for(const _0x2e8f15 of _0x1bcb5c){const _0x255078=_0x8e9473['getIntersection'](_0x2e8f15);_0x255078&&_0xd6423f['push'](_0x255078);}return _0xd6423f;}(_0x23f241,_0x377265),_0x5c226e=function(_0x534961,_0xb50839){const _0x5999e4=[_0x534961];for(const _0x514bfa of _0xb50839){let _0x15ecfc=0x0;for(;_0x15ecfc<_0x5999e4['length'];){const _0x5c930c=_0x5999e4[_0x15ecfc]['getDifference'](_0x514bfa);_0x5999e4['splice'](_0x15ecfc,0x1,..._0x5c930c),_0x15ecfc+=_0x5c930c['length'];}}return _0x5999e4;}(_0x23f241,_0x377265);_0xe355fb['length']&&this['_model']['change'](()=>{for(const _0xbb9ec0 of _0xe355fb){const _0x424f5=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x55dbf6,'accept');this['forceDefaultExecution'](()=>_0x424f5([_0xbb9ec0],_0x32048b,_0x1604f0));}});for(const _0x29b8d6 of _0x5c226e){let _0x30762e=null,_0x114c98=_0x29b8d6['start'],_0x2ca6f4=_0x29b8d6['end'];for(const {suggestion:_0x9ee956,meta:_0x14de58}of this['_findSuggestions'](_0x29b8d6,'formatInline')){if(!_0x14de58['isOwn'])continue;if(_0x9ee956['subType']!=_0x55dbf6)continue;if(!Wt(_0x9ee956,_0x1604f0))continue;const _0x24b042=_0x9ee956['getFirstRange']();if(_0x24b042['containsRange'](_0x29b8d6,!0x0))return null;_0x114c98=_0x114c98['isBefore'](_0x24b042['start'])?_0x114c98:_0x24b042['start'],_0x2ca6f4=_0x2ca6f4['isAfter'](_0x24b042['end'])?_0x2ca6f4:_0x24b042['end'],_0x30762e?_0x24b042['start']['isBefore'](_0x30762e['getFirstRange']()['start'])?(_0x30762e['removeMarkers'](),_0x30762e=_0x9ee956):_0x9ee956['removeMarkers']():_0x30762e=_0x9ee956;}const _0x876758=this['_model']['createRange'](_0x114c98,_0x2ca6f4);if(_0x30762e)this['_setSuggestionRange'](_0x30762e,_0x876758);else{const _0x21cad9=_0x1c060f(),_0x22c5d7=_0x151044['id'];this['_setSuggestionData']({'id':_0x21cad9,'type':'formatInline:'+_0x55dbf6,'data':_0x32048b,'createdAt':new Date(),'authorId':_0x22c5d7,'attributes':_0x1604f0}),this['_addSuggestionMarker']('formatInline:'+_0x55dbf6,_0x21cad9,_0x22c5d7,_0x876758);}}return null;}['markBlockFormat'](_0x63b522,_0xd21e66,_0x563233=[],_0x414db2=null,_0x3028b7={}){_0xd21e66['formatGroupId']||(_0xd21e66['formatGroupId']=_0xd21e66['commandName']),_0xd21e66['multipleBlocks']=_0x63b522['is']('range'),_0x414db2=_0x414db2||Lt(_0xd21e66);const _0x1098e6=_0x563233['map'](_0x1e1ff6=>qt(_0x1e1ff6,this['_model'])),_0x10f689=_0x63b522['is']('range')?_0x63b522:qt(_0x63b522,this['_model']);if('never'===this['_trackFormatChanges']){const _0x428414=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x414db2,'accept');return this['forceDefaultExecution'](()=>_0x428414([_0x10f689],_0xd21e66,_0x3028b7)),null;}_0x1098e6['push'](_0x10f689);let _0x29a5de=!0x0;for(const _0x52c1b0 of _0x1098e6)if(!this['_rangeIsInLocalUserInsertion'](_0x52c1b0)){_0x29a5de=!0x1;break;}if(_0x29a5de&&'always'!==this['_trackFormatChanges']){const _0x12a4cb=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x414db2,'accept');return this['forceDefaultExecution'](()=>_0x12a4cb([_0x10f689],_0xd21e66,_0x3028b7)),null;}let _0x8e0cd1=null,_0x23096e=_0x10f689['start'],_0x2e8db7=_0x10f689['end'];for(const {suggestion:_0x1cddd6,meta:_0x61c7d6}of this['_findSuggestions'](_0x10f689,'formatBlock')){if(!_0x61c7d6['isOwn'])continue;if(_0x61c7d6['isNextTo']||_0x61c7d6['containsRangeInObject']||_0x61c7d6['isInsideObject'])continue;if(_0x1cddd6['data']['formatGroupId']!=_0xd21e66['formatGroupId'])continue;if(!Wt(_0x1cddd6,_0x3028b7))continue;const _0x4edcf3=_0x1cddd6['getFirstRange']();if(_0x1cddd6['subType']==_0x414db2){if(_0x4edcf3['containsRange'](_0x10f689,!0x0))return null;_0x23096e=_0x23096e['isBefore'](_0x4edcf3['start'])?_0x23096e:_0x4edcf3['start'],_0x2e8db7=_0x2e8db7['isAfter'](_0x4edcf3['end'])?_0x2e8db7:_0x4edcf3['end'],_0x8e0cd1?_0x4edcf3['start']['isBefore'](_0x8e0cd1['getFirstRange']()['start'])?(_0x8e0cd1['removeMarkers'](),_0x8e0cd1=_0x1cddd6):_0x1cddd6['removeMarkers']():_0x8e0cd1=_0x1cddd6;}else{const _0x16fcd9=_0x10f689['getIntersection'](_0x4edcf3);this['_cutOutSuggestionMarker'](_0x1cddd6,_0x16fcd9);}}const _0x46b269=this['editor']['plugins']['get']('Users')['me'],_0xb3a7ea=_0x1c060f(),_0x268e5c=_0x46b269['id'];if(_0x8e0cd1)return this['_setSuggestionRange'](_0x8e0cd1,this['_model']['createRange'](_0x23096e,_0x2e8db7)),_0x8e0cd1;{const _0x6d2c61=this['_setSuggestionData']({'id':_0xb3a7ea,'type':'formatBlock:'+_0x414db2,'data':_0xd21e66,'createdAt':new Date(),'authorId':_0x268e5c,'attributes':_0x3028b7});return this['_addSuggestionMarker']('formatBlock:'+_0x414db2,_0xb3a7ea,_0x268e5c,this['_model']['createRange'](_0x23096e,_0x2e8db7)),_0x6d2c61;}}['markMultiRangeBlockFormat'](_0x2a8a9f,_0x35528a,_0x740e0a=[],_0x459769=null,_0x4d873f={}){_0x35528a['formatGroupId']||(_0x35528a['formatGroupId']=_0x35528a['commandName']);const _0x44457d=_0x2a8a9f[0x0];_0x35528a['multipleBlocks']=_0x44457d['is']('range'),_0x459769=_0x459769||Lt(_0x35528a);const _0x37b52c=_0x740e0a['map'](_0x39a6df=>qt(_0x39a6df,this['_model'])),_0x305263=_0x44457d['is']('range')?_0x2a8a9f:_0x2a8a9f['map'](_0x3a7e5d=>qt(_0x3a7e5d,this['_model']));if('never'===this['_trackFormatChanges']){const _0xa0ad43=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x459769,'accept');return this['forceDefaultExecution'](()=>_0xa0ad43(_0x305263,_0x35528a,_0x4d873f)),null;}_0x37b52c['push'](..._0x305263);let _0x4a449b=!0x0;for(const _0x58a27a of _0x37b52c)if(!this['_rangeIsInLocalUserInsertion'](_0x58a27a)){_0x4a449b=!0x1;break;}if(_0x4a449b&&'always'!==this['_trackFormatChanges']){const _0x3e722b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x459769,'accept');return this['forceDefaultExecution'](()=>_0x3e722b(_0x305263,_0x35528a,_0x4d873f)),null;}const _0x10f6e7=this['editor']['plugins']['get']('Users')['me'];for(const _0x35a4a4 of this['getSuggestions']()){if(_0x35a4a4['author']['id']!=_0x10f6e7['id'])continue;if('formatBlock'!=_0x35a4a4['type']||_0x35a4a4['data']['formatGroupId']!=_0x35528a['formatGroupId'])continue;if(!Wt(_0x35a4a4,_0x4d873f))continue;const _0x3276ba=_0x35a4a4['subType']==_0x459769;for(let _0x4c2d8a=0x0;_0x4c2d8a<_0x305263['length'];_0x4c2d8a++){const _0x1f413d=_0x305263[_0x4c2d8a];for(const _0x2c737 of _0x35a4a4['getMarkers']()){const _0x5c404b=_0x2c737['getRange']();if(_0x1f413d['isEqual'](_0x5c404b)){_0x3276ba?(_0x305263['splice'](_0x4c2d8a,0x1),_0x4c2d8a--):_0x35a4a4['removeMarker'](_0x2c737['name']);break;}}}}if(0x0==_0x305263['length'])return null;const _0xbb960c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x459769,'join');for(const _0x1a4079 of this['getSuggestions']())if(_0x1a4079['author']['id']==_0x10f6e7['id']&&'formatBlock'==_0x1a4079['type']&&_0x1a4079['data']['formatGroupId']==_0x35528a['formatGroupId']&&_0x1a4079['subType']==_0x459769&&Wt(_0x1a4079,_0x4d873f)&&(_0xbb960c(_0x1a4079['getRanges'](),_0x305263)||_0xbb960c(_0x305263,_0x1a4079['getRanges']()))){for(const _0xeb5a3b of _0x305263)_0x1a4079['addRange'](_0xeb5a3b);return _0x1a4079;}const _0x104a95=_0x1c060f(),_0x5985b7=_0x10f6e7['id'],_0x1d3008='formatBlock:'+_0x459769,_0x147246=this['_setSuggestionData']({'id':_0x104a95,'type':_0x1d3008,'data':_0x35528a,'createdAt':new Date(),'authorId':_0x5985b7,'attributes':_0x4d873f});for(const _0x291d47 of _0x305263)this['_addSuggestionMarker'](_0x1d3008,_0x104a95,_0x5985b7,_0x291d47,u['getMultiRangeId']());return _0x147246;}['markDeletion'](_0x3f017a,_0x4b6422=null,_0x280690={}){if(_0x3f017a['isCollapsed'])return null;const _0x523740=this['editor']['plugins']['get']('Users')['me'],_0x510cbe=new _0x4b4bbe(_0x3f017a['start'],_0x3f017a['end']);for(const {suggestion:_0x6f0d92,meta:_0x340dce}of this['_findSuggestions'](_0x510cbe,'insertion'))if(_0x340dce['isOwn']&&!_0x340dce['isNextTo']){if(_0x6f0d92['isMultiRange']){const _0x165cdc=_0x6f0d92['getRanges']()['filter'](_0x3a4854=>'$graveyard'!=_0x3a4854['root']['rootName']);_0x165cdc['every'](_0x8addfd=>_0x510cbe['containsRange'](_0x8addfd,!0x0))&&_0x6f0d92['discard']();if(_0x165cdc['some'](_0x147dfd=>_0x147dfd['containsRange'](_0x510cbe,!0x0))){const _0x312d71=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4b6422,'accept');return this['forceDefaultExecution'](()=>_0x312d71([_0x510cbe],null,_0x280690)),null;}}else{const _0x3564cd=_0x510cbe['getIntersection'](_0x6f0d92['getFirstRange']());null!==_0x3564cd&&_0x6f0d92['_onDiscard']([_0x3564cd],null,_0x280690);}}if(_0x510cbe['detach'](),_0x510cbe['isCollapsed']||'$graveyard'==_0x510cbe['root']['rootName'])return null;let _0x1c1de2=null,_0x4e878f=_0x510cbe['start'],_0x136254=_0x510cbe['end'];const _0x125516=this['_findSuggestions'](_0x510cbe,'deletion');for(const {suggestion:_0x5ee530,meta:_0x13a1ba}of _0x125516){const _0x74b948=this['_model']['createRange'](_0x4e878f,_0x136254);if(_0x13a1ba['isOwn']&&(this['_mergeNestedSuggestions']||!_0x13a1ba['containsRangeInObject']&&!_0x13a1ba['isInsideObject'])){if(_0x5ee530['isMultiRange']){if(!Wt(_0x5ee530,_0x280690))continue;let _0x47f215=!0x0;for(const _0x362261 of _0x5ee530['getRanges']()){if(_0x362261['containsRange'](_0x74b948,!0x0))return _0x5ee530;_0x74b948['containsRange'](_0x362261)||(_0x47f215=!0x1);}_0x47f215&&_0x5ee530['discard']();}else{const _0xed4b10=_0x5ee530['getFirstRange']();if(_0xed4b10['containsRange'](_0x74b948,!0x0))return _0x5ee530;if(!Wt(_0x5ee530,_0x280690)){_0x74b948['containsRange'](_0xed4b10)?_0x5ee530['removeMarkers']():_0xed4b10['containsPosition'](_0x4e878f)?_0x4e878f=_0xed4b10['end']:_0xed4b10['containsPosition'](_0x136254)&&(_0x136254=_0xed4b10['start']);continue;}_0x4e878f=_0x4e878f['isBefore'](_0xed4b10['start'])?_0x4e878f:_0xed4b10['start'],_0x136254=_0x136254['isAfter'](_0xed4b10['end'])?_0x136254:_0xed4b10['end'],_0x280690=Object['assign']({},_0x5ee530['attributes']),_0x1c1de2?_0xed4b10['start']['isBefore'](_0x1c1de2['getFirstRange']()['start'])?(_0x1c1de2['removeMarkers'](),_0x1c1de2=_0x5ee530):_0x5ee530['removeMarkers']():_0x1c1de2=_0x5ee530;}}}if(_0x1c1de2)return this['_setSuggestionRange'](_0x1c1de2,this['_model']['createRange'](_0x4e878f,_0x136254)),_0x1c1de2;{const _0x4a0e65=_0x1c060f(),_0x4f4da4=this['_model']['createRange'](_0x4e878f,_0x136254),_0x4c7b67=_0x523740['id'],_0x262210=_0x4b6422?'deletion:'+_0x4b6422:'deletion',_0x2d6b15=this['_setSuggestionData']({'id':_0x4a0e65,'type':_0x262210,'createdAt':new Date(),'authorId':_0x4c7b67,'attributes':_0x280690});return this['_addSuggestionMarker'](_0x262210,_0x4a0e65,_0x4c7b67,_0x4f4da4),_0x2d6b15;}}['markMultiRangeDeletion'](_0x29cf3c,_0x5b94ea='multi',_0x146160={}){const _0x325f6f=this['editor']['plugins']['get']('Users')['me'],_0xc312c0=_0x29cf3c['map'](_0x20010e=>new _0x4b4bbe(_0x20010e['start'],_0x20010e['end'])),_0x429d3d=new Set();for(const {suggestion:_0x41cf19,meta:_0x398721}of this['_findSuggestions'](_0xc312c0,'insertion'))_0x398721['isOwn']&&!_0x398721['isNextTo']&&_0x429d3d['add'](_0x41cf19);for(const _0x3884c5 of _0x429d3d)if(_0x3884c5['isMultiRange']){const _0x45ebbe=_0x3884c5['getRanges']();(!_0x3884c5['attributes']||!_0x3884c5['attributes']['skipNestingCheck'])&&(_0x45ebbe['every'](_0x6cd5c5=>_0xc312c0['some'](_0x19967a=>_0x19967a['containsRange'](_0x6cd5c5,!0x0)))&&_0x3884c5['discard']());if(_0xc312c0['every'](_0x43a40a=>_0x45ebbe['some'](_0x5577dd=>_0x5577dd['containsRange'](_0x43a40a,!0x0)))){const _0x347e00=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5b94ea,'accept');return this['forceDefaultExecution'](()=>_0x347e00(_0x29cf3c,null,_0x146160)),null;}}else{const _0x251f59=_0x3884c5['getFirstRange']();_0xc312c0['some'](_0xaa6f97=>_0xaa6f97['containsRange'](_0x251f59,!0x0))&&_0x3884c5['discard']();if(_0xc312c0['every'](_0x4c2b2c=>_0x251f59['containsRange'](_0x4c2b2c,!0x0))){const _0x1789f5=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5b94ea,'accept');return this['forceDefaultExecution'](()=>_0x1789f5(_0xc312c0,null,_0x146160)),null;}}const _0x434119=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5b94ea,'join');let _0x31f489=null;for(const _0x2f0830 of this['getSuggestions']())if(_0x2f0830['author']['id']==_0x325f6f['id']&&_0x2f0830['isInContent']&&'deletion'==_0x2f0830['type']&&_0x2f0830['subType']==_0x5b94ea&&Wt(_0x2f0830,_0x146160)&&(_0x434119(_0x2f0830['getRanges'](),_0xc312c0)||_0x434119(_0xc312c0,_0x2f0830['getRanges']()))){if(_0x31f489){if(_0x2f0830['commentThread']&&_0x2f0830['commentThread']['length'])continue;for(const _0x454802 of _0x2f0830['getRanges']())_0x31f489['isIntersectingWithRange'](_0x454802)||_0x31f489['addRange'](_0x454802);_0x2f0830['removeMarkers']();}else{_0x31f489=_0x2f0830;for(const _0x29a6ca of _0xc312c0)_0x2f0830['isIntersectingWithRange'](_0x29a6ca)||_0x2f0830['addRange'](_0x29a6ca);}}if(_0x31f489)return _0x31f489;_0x429d3d['clear']();for(const {suggestion:_0x17dce9,meta:_0x57be0a}of this['_findSuggestions'](_0xc312c0,'deletion'))_0x57be0a['isOwn']&&(this['_mergeNestedSuggestions']||!_0x57be0a['containsRangeInObject']&&!_0x57be0a['isInsideObject'])&&Wt(_0x17dce9,_0x146160)&&_0x429d3d['add'](_0x17dce9);for(const _0x1e575f of _0x429d3d){const _0xbaec76=_0x1e575f['getRanges']();if(!_0x146160||!_0x146160['skipNestingCheck']){if(_0xc312c0['every'](_0x5a5f17=>_0xbaec76['some'](_0x3215c2=>_0x3215c2['containsRange'](_0x5a5f17,!0x0))))return _0x1e575f;}(!_0x1e575f['attributes']||!_0x1e575f['attributes']['skipNestingCheck'])&&(_0xbaec76['every'](_0x5c48c5=>_0xc312c0['some'](_0x5edcc1=>_0x5edcc1['containsRange'](_0x5c48c5,!0x0)))&&_0x1e575f['discard']());}const _0x29c79d=_0x1c060f(),_0x9e1b9a=_0x325f6f['id'],_0x39b3ac='deletion:'+_0x5b94ea,_0x59ff43=this['_setSuggestionData']({'id':_0x29c79d,'type':_0x39b3ac,'createdAt':new Date(),'authorId':_0x9e1b9a,'attributes':_0x146160});for(const _0x55ef5e of _0xc312c0)_0x55ef5e['detach'](),_0x55ef5e['isCollapsed']||'$graveyard'==_0x55ef5e['root']['rootName']||this['_addSuggestionMarker'](_0x39b3ac,_0x29c79d,_0x9e1b9a,_0x55ef5e,u['getMultiRangeId']());return _0x59ff43;}['markAttributeChange'](_0x310a55,_0x470eee,_0x1271ac,_0x1405b7,_0x2a00b3){if(_0x310a55['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0xf50ba4=this['editor']['plugins']['get']('Users')['me']['id'],_0x498330=Array['from'](this['_suggestions']['values']())['filter'](_0x424091=>'attribute'==_0x424091['type']&&_0x424091['data']['key']==_0x470eee&&_0x424091['isIntersectingWithRange'](_0x310a55));if('default'===this['_trackFormatChanges']){const _0x29c9da=this['_findSuggestions'](_0x310a55,'insertion')['filter'](({meta:_0x4fb819})=>_0x4fb819['isOwn']&&!_0x4fb819['isInsideObject']&&!_0x4fb819['isNextTo'])['map'](({suggestion:_0x481542})=>_0x481542);_0x498330['unshift'](..._0x29c9da);}const _0x3765ba=new Map([[_0x310a55,_0x1271ac]]);for(const _0xf622f3 of _0x498330){const _0x5b3a8c='attribute'==_0xf622f3['type']?_0xf622f3['data']['oldValue']:void 0x0,_0x550802=_0xf622f3['getFirstRange'](),_0x165545=Array['from'](_0x3765ba['keys']())['find'](_0x28fb5d=>_0x28fb5d['isIntersecting'](_0x550802));if(!_0x165545)continue;const _0x56897b=_0x165545['getDifference'](_0x550802);this['_isBlockAttribute'](_0x470eee)&&'insertion'==_0xf622f3['type']&&0x0!=_0x56897b['length']||(_0x3765ba['delete'](_0x165545),_0x56897b['forEach'](_0x4ff5ab=>{_0x3765ba['set'](_0x4ff5ab,_0x1271ac);}),'insertion'!=_0xf622f3['type']&&_0x5b3a8c!=_0x1405b7&&_0x3765ba['set'](_0x165545['getIntersection'](_0x550802),_0x5b3a8c));}const _0x51bcdd=[];for(const [_0x3ae75d,_0x282a53]of _0x3765ba){const _0x255f90=_0x1c060f(),_0x2dea97={'key':_0x470eee,'oldValue':_0x282a53,'newValue':_0x1405b7};_0x470eee['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':_0x470eee});const _0x5135d7=('attribute:'+(_0x470eee+'|'+Lt({'newValue':_0x1405b7})))['substring'](0x0,0x3c),_0x3016d6=this['_setSuggestionData']({'id':_0x255f90,'type':_0x5135d7,'data':_0x2dea97,'createdAt':new Date(),'authorId':_0xf50ba4,'attributes':_0x2a00b3});_0x51bcdd['push'](_0x3016d6),this['_addSuggestionMarker'](_0x5135d7,_0x255f90,_0xf50ba4,_0x3ae75d);}return _0x51bcdd;}['enableDefaultAttributesIntegration'](_0x364a6e){this['enableCommand'](_0x364a6e,(_0xddd1b1,..._0x388ae3)=>{this['_recordAttributeChanges'](()=>{_0xddd1b1(..._0x388ae3);});});}['registerBlockAttribute'](_0x51a182){this['_blockAttributeKeys']['add'](_0x51a182);}['registerInlineAttribute'](_0x2252d9){this['_inlineAttributeKeys']['add'](_0x2252d9);}['_getAttributeKey'](_0x2fb801){return'attribute'==_0x2fb801['type']?_0x2fb801['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x403c67,_0x364b5c){const _0x7e5004=_0x403c67['getFirstMarker']();this['_model']['change'](_0x468572=>{_0x468572['updateMarker'](_0x7e5004,{'range':_0x364b5c});});}['_addThreadToSuggestion'](_0x43e863){const _0xabbf49=_0x43e863['id'],_0x5d62a5=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0xabbf49)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5d62a5,'threadId':_0xabbf49,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1f1091=this['_commentsRepository']['getCommentThread'](_0xabbf49);_0x1f1091['unbind']('isRemovable'),_0x1f1091['isRemovable']=!0x1,_0x43e863['commentThread']=_0x1f1091;}['_checkSuggestionCorrectness'](_0x165ecb,_0x57bfb4,_0x52d737,_0x55a5c7){if(_0x165ecb['type']!=_0x57bfb4||_0x165ecb['subType']!=_0x52d737||_0x165ecb['creator']['id']!=_0x55a5c7)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x5370f3('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3659b8,_0x30762b){const _0x5d0d78=_0x3659b8['getFirstRange']();if(_0x30762b['isEqual'](_0x5d0d78))_0x3659b8['removeMarkers']();else{if(_0x5d0d78['containsRange'](_0x30762b)){const _0x3ae9bb=this['_model']['createPositionAt'](_0x30762b['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3659b8,this['_model']['createRange'](_0x5d0d78['start'],_0x3ae9bb));const _0x19c17b=_0x1c060f(),_0x335dc6=_0x3659b8['creator']['id'],_0x53b3c0=_0x3659b8['type']+':'+_0x3659b8['subType'];this['_setSuggestionData']({'id':_0x19c17b,'type':_0x53b3c0,'createdAt':new Date(),'authorId':_0x335dc6,'data':_0x3659b8['data'],'attributes':_0x3659b8['attributes']});const _0x2982b0=this['_model']['createPositionAt'](_0x30762b['end']['parent'],'after'),_0x5bd2eb=this['_model']['createRange'](_0x2982b0,_0x5d0d78['end']);this['_addSuggestionMarker'](_0x53b3c0,_0x19c17b,_0x335dc6,_0x5bd2eb);}else{if(_0x5d0d78['containsPosition'](_0x30762b['start'])){const _0x19ee8a=this['_model']['createPositionAt'](_0x30762b['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3659b8,this['_model']['createRange'](_0x5d0d78['start'],_0x19ee8a));}else{const _0x50c04e=this['_model']['createPositionAt'](_0x30762b['end']['parent'],'after');this['_setSuggestionRange'](_0x3659b8,this['_model']['createRange'](_0x50c04e,_0x5d0d78['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x3753fd){for(const {suggestion:_0x415eb9,meta:_0x51a3e6}of this['_findSuggestions'](_0x3753fd,'insertion')){if(!_0x51a3e6['isOwn'])continue;const _0x47fb9e=_0x415eb9['getRanges']();for(const _0x256ade of _0x47fb9e)if(!_0x3753fd['getDifference'](_0x256ade)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x2f67fe){const _0x1c4d67=this['editor']['plugins']['get']('Users')['getUser'](_0x2f67fe);if(!_0x1c4d67)throw new _0x5370f3('track-changes-user-not-found',this);return _0x1c4d67;}['_getExternalAuthor'](_0x23f033){const _0x1572b0=this['editor']['plugins']['get']('Users'),_0x1110f4=_0x49434c('external:'+_0x23f033),_0x62300d=_0x1572b0['getUser'](_0x1110f4);return _0x62300d||_0x1572b0['addUser']({'id':_0x1110f4,'name':_0x23f033});}['_createSuggestion'](_0x5d3803,_0x108da5,_0x2b617f,_0x318d1f,_0x4c8e5a){const _0x624f71=this['_getAuthorFromId'](_0x318d1f),_0x15dd1f=this['_suggestionFactory']['buildSuggestion'](_0x5d3803,_0x108da5,_0x2b617f,_0x624f71,_0x4c8e5a,_0xc04812=>{this['_updateSuggestionData'](_0x2b617f,{'attributes':_0xc04812});const _0x30c82e=this['getSuggestion'](_0x2b617f);this['_joinWithAdjacentSuggestions'](new Set([_0x30c82e])),this['_refreshSuggestionsChain'](new Set([_0x30c82e]));});return this['listenTo'](_0x15dd1f,'accept',()=>{this['_updateSuggestionData'](_0x2b617f,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x15dd1f,'discard',()=>{this['_updateSuggestionData'](_0x2b617f,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x2b617f,_0x15dd1f),this['_suggestionState']['set'](_0x15dd1f,'notReady'),_0x15dd1f;}['_splitMarkerName'](_0x107039){const _0x2b7fbb=_0x107039['split'](':');return{'group':_0x2b7fbb[0x0],'type':_0x2b7fbb[0x1],'subType':_0x2b7fbb['length']>=0x5?_0x2b7fbb[0x2]:null,'id':_0x2b7fbb['length']<0x5?_0x2b7fbb[0x2]:_0x2b7fbb[0x3],'authorId':_0x2b7fbb['length']<0x5?_0x2b7fbb[0x3]:_0x2b7fbb[0x4],'markerCount':0x6==_0x2b7fbb['length']?_0x2b7fbb[0x5]:null};}['_breakSuggestionMarker'](_0x399570,_0x539c54,_0x472d08){const _0xb216ab=_0x399570['getFirstRange'](),_0xb61472=_0xb216ab['start'],_0x2d6662=_0xb216ab['end'];this['_setSuggestionRange'](_0x399570,this['_model']['createRange'](_0xb61472,_0x539c54));const _0x337770=_0x1c060f(),_0x40f024=_0x399570['creator']['id'],_0x2576b4=_0x399570['type']+(_0x399570['subType']?':'+_0x399570['subType']:'');this['_setSuggestionData']({'id':_0x337770,'type':_0x2576b4,'createdAt':new Date(),'authorId':_0x40f024,'originalSuggestionId':_0x399570['id'],'attributes':_0x399570['attributes'],'data':_0x399570['data']});const _0xda10d7=this['_getAttributeKey'](_0x399570);('formatBlock'==_0x399570['type']||_0xda10d7&&this['_isBlockAttribute'](_0xda10d7))&&(_0x472d08=this['_model']['createPositionBefore'](_0x472d08['parent'])),this['_addSuggestionMarker'](_0x2576b4,_0x337770,_0x40f024,this['_model']['createRange'](_0x472d08,_0x2d6662));}['_findSuggestions'](_0x4ec019,_0x3fd219=null){const _0x488131=[],_0x43f2ef=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x4ec019)||(_0x4ec019=[_0x4ec019]);for(const _0x229e0c of this['getSuggestions']()){if(!_0x229e0c['isInContent'])continue;if(_0x3fd219&&_0x229e0c['type']!=_0x3fd219)continue;let _0x28c40a=!0x1;for(const _0x4d9812 of _0x229e0c['getRanges']()){for(const _0xf7966b of _0x4ec019){const _0x124b7a=_0xf7966b['start']['isEqual'](_0x4d9812['end'])||_0xf7966b['end']['isEqual'](_0x4d9812['start']);if(_0x124b7a||_0xf7966b['getIntersection'](_0x4d9812)){const _0x5940eb=_0xf7966b['containsRange'](_0x4d9812)&&Pt(this['_model']['schema'],_0x4d9812['start'],_0xf7966b),_0x5a85d2=_0x4d9812['containsRange'](_0xf7966b)&&Pt(this['_model']['schema'],_0xf7966b['start'],_0x4d9812);_0x488131['push']({'suggestion':_0x229e0c,'meta':{'isOwn':_0x43f2ef==_0x229e0c['author'],'isNextTo':_0x124b7a,'isInsideObject':_0x5940eb,'containsRangeInObject':_0x5a85d2}}),_0x28c40a=!0x0;break;}}if(_0x28c40a)break;}}return _0x488131;}['_addSuggestionMarker'](_0x4515b1,_0x314873,_0x3e012c,_0x5c76f3,_0x250e74){this['_model']['change'](_0x5666ba=>{let _0x52ab23='suggestion:'+_0x4515b1+':'+_0x314873+':'+_0x3e012c;_0x250e74&&(_0x52ab23=_0x52ab23+':'+_0x250e74),_0x5666ba['addMarker'](_0x52ab23,{'range':_0x5c76f3,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x2e6c5b){const _0x5ad57b=_0x2e6c5b['previous'],_0x29aa80=_0x2e6c5b['next'];_0x2e6c5b['previous']=null,_0x2e6c5b['next']=null,null!=_0x5ad57b&&_0x5ad57b['next']==_0x2e6c5b&&(_0x5ad57b['next']=_0x29aa80),null!=_0x29aa80&&_0x29aa80['previous']==_0x2e6c5b&&(_0x29aa80['previous']=_0x5ad57b),'ready'==this['_suggestionState']['get'](_0x2e6c5b)&&(this['_suggestionState']['set'](_0x2e6c5b,'removed'),this['fire']('suggestionUnloaded',_0x2e6c5b,_0x5ad57b,_0x29aa80));}['_setSuggestionData'](_0x4e1c4a){const _0x105757=_0x4e1c4a['id'],_0x299c6c=this['addSuggestionData'](_0x4e1c4a);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x17ba11=this['editor']['plugins']['get']('PendingActions'),_0x5870a6=_0x299c6c['hasComments'],_0x35e0d3=_0x299c6c['subType']?_0x299c6c['type']+':'+_0x299c6c['subType']:_0x299c6c['type'],_0x1ca3c9=this['editor']['locale'],_0x5e5e58=_0x17ba11['add'](o(_0x1ca3c9,'PENDING_ACTION_SUGGESTION')),_0x57cf8e={'id':_0x105757,'type':_0x35e0d3,'hasComments':_0x5870a6,'data':_0x4e1c4a['data']||null,'originalSuggestionId':_0x4e1c4a['originalSuggestionId']||null,'attributes':_0x299c6c['attributes']};this['_adapter']['addSuggestion'](_0x57cf8e)['then'](_0x263e84=>{_0x299c6c['_saved']=!0x0,_0x17ba11['remove'](_0x5e5e58),_0x263e84&&_0x263e84['createdAt']&&(this['_suggestions']['get'](_0x105757)['createdAt']=_0x263e84['createdAt']);})['catch'](_0x232421=>{throw _0x57e6aa('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x299c6c['discard']();}),_0x299c6c['stopListening'](),this['_suggestions']['delete'](_0x299c6c['id']),this['_suggestionState']['delete'](_0x299c6c),_0x232421;});}return _0x299c6c;}['_isBlockAttribute'](_0x27e752){return this['_blockAttributeKeys']['has'](_0x27e752);}['_updateSuggestionData'](_0x491d7e,_0x322950){const _0x312956=this['editor']['plugins']['get']('PendingActions'),_0xe11ddd=this['getSuggestion'](_0x491d7e);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0xe11ddd['_saved']){const _0x3cc58d=_0x312956['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x491d7e,_0x322950)['then'](()=>{_0x312956['remove'](_0x3cc58d);});}else _0xe11ddd['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x491d7e,_0x322950);});}}['_getSuggestionData'](_0x5ccd2f){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x5370f3('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x5ccd2f);}['_handleNewSuggestionMarker'](_0x4ef7d4){const {id:_0x1f579b,type:_0x4a1b31,subType:_0x483e47,authorId:_0x1c2247}=this['_splitMarkerName'](_0x4ef7d4),_0x17d5cd=this['_suggestions']['get'](_0x1f579b)||this['_createSuggestion'](_0x4a1b31,_0x483e47,_0x1f579b,_0x1c2247,{});switch(this['_checkSuggestionCorrectness'](_0x17d5cd,_0x4a1b31,_0x483e47,_0x1c2247),this['_suggestionState']['get'](_0x17d5cd)){case'notReady':this['_getSuggestionData'](_0x1f579b)['then'](_0x2ae273=>{let _0x48eec0=Promise['resolve']();_0x2ae273['hasComments']&&(_0x48eec0=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x1f579b})),_0x48eec0['then'](()=>{this['addSuggestionData'](_0x2ae273)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x17d5cd,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x1f579b,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x17d5cd,'ready'),this['fire']('suggestionLoaded',_0x17d5cd);break;case'ready':this['fire']('suggestionChanged',_0x17d5cd);}return _0x17d5cd['addMarkerName'](_0x4ef7d4),_0x17d5cd;}['_refreshSuggestionsChain'](_0x3b112e){const _0x3c8ec5=Array['from'](_0x3b112e),_0x466e1a=_0x3c8ec5['filter'](_0x2fd4cb=>'attribute'==_0x2fd4cb['type']);this['_refreshAttributeSuggestionsChain'](_0x466e1a);const _0x4c2c4f=_0x3c8ec5['filter'](_0x7c23a4=>!_0x7c23a4['isMultiRange']&&'attribute'!=_0x7c23a4['type']),_0x412f26=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x31f11d=>!_0x31f11d['isMultiRange']&&'attribute'!=_0x31f11d['type']),_0x50e470=_0x412f26['filter'](_0x5bada6=>!_0x3b112e['has'](_0x5bada6)),_0x41159b=new Map(_0x412f26['map'](_0x5d72cd=>[_0x5d72cd,this['_suggestionFactory']['getSuggestionCallback'](_0x5d72cd['type'],_0x5d72cd['subType'],'chain')])),_0x1e8d3e=new Map(_0x412f26['map'](_0x48023d=>[_0x48023d,_0x48023d['getFirstRange']()])),_0x1b8c10=new Set(),_0x18cd19=new Set();for(let _0x37d1f6=0x0;_0x37d1f6<_0x4c2c4f['length'];_0x37d1f6++)_0x13f8fe(_0x4c2c4f[_0x37d1f6],_0x4c2c4f,_0x37d1f6+0x1);for(let _0x4a1b98=0x0;_0x4a1b98<_0x4c2c4f['length'];_0x4a1b98++)_0x13f8fe(_0x4c2c4f[_0x4a1b98],_0x50e470,0x0);const _0x2be8c3=new Set();for(let _0x4c76f1=0x0;_0x4c76f1<_0x4c2c4f['length'];_0x4c76f1++){const _0x4efcbb=_0x4c2c4f[_0x4c76f1];!_0x18cd19['has'](_0x4efcbb)&&_0x4efcbb['previous']&&(_0x2be8c3['add'](_0x4efcbb['previous']),_0x4efcbb['previous']['next']===_0x4efcbb&&(_0x4efcbb['previous']['next']=null),_0x4efcbb['previous']=null),!_0x1b8c10['has'](_0x4efcbb)&&_0x4efcbb['next']&&(_0x2be8c3['add'](_0x4efcbb['next']),_0x4efcbb['next']['previous']===_0x4efcbb&&(_0x4efcbb['next']['previous']=null),_0x4efcbb['next']=null);}function _0x13f8fe(_0x6949ad,_0x4878e1,_0x5a25e8){for(let _0x350021=_0x5a25e8;_0x350021<_0x4878e1['length'];_0x350021++){const _0x4dda72=_0x1e4e3e(_0x6949ad,_0x4878e1[_0x350021]);_0x4dda72&&(_0x4dda72[0x0]['next']=_0x4dda72[0x1],_0x4dda72[0x1]['previous']=_0x4dda72[0x0],_0x1b8c10['add'](_0x4dda72[0x0]),_0x18cd19['add'](_0x4dda72[0x1]));}}function _0x1e4e3e(_0x344d61,_0x5ee978){if(_0x344d61['author']['id']!==_0x5ee978['author']['id'])return null;const _0x17b13b=_0x41159b['get'](_0x344d61)(_0x344d61,_0x5ee978,_0x1e8d3e['get'](_0x344d61),_0x1e8d3e['get'](_0x5ee978));if(!_0x17b13b)return null;return _0x41159b['get'](_0x5ee978)(_0x344d61,_0x5ee978,_0x1e8d3e['get'](_0x344d61),_0x1e8d3e['get'](_0x5ee978))?_0x17b13b[0x1]['commentThread']&&_0x17b13b[0x1]['commentThread']['length']?null:_0x17b13b:null;}_0x2be8c3['size']&&this['_refreshSuggestionsChain'](_0x2be8c3);}['_refreshAttributeSuggestionsChain'](_0x40db70){if(0x0==_0x40db70['length'])return;const _0x444c92=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x153fba=>'attribute'==_0x153fba['type']&&_0x153fba['_isDataLoaded']),_0x50a9df=[],_0x1d6b5a=new Map();for(const _0xab6ed7 of _0x444c92){const _0x344f50=_0x49434c(_0xab6ed7['attributes']);_0x1d6b5a['has'](_0x344f50)||(_0x1d6b5a['set'](_0x344f50,_0x50a9df['length']),_0x50a9df['push']([]));const _0x139138=_0x1d6b5a['get'](_0x344f50);_0x50a9df[_0x139138]['push'](_0xab6ed7);}!(function(){_0x50a9df['sort']((_0x591f81,_0x24ebb8)=>{const _0x38506a=_0x591f81[0x0]['createdAt'],_0x545740=_0x24ebb8[0x0]['createdAt'];return _0x38506a==_0x545740?_0x591f81[0x0]['attributes']['groupId']<_0x24ebb8[0x0]['attributes']['groupId']?-0x1:0x1:_0x38506a<_0x545740?-0x1:0x1;});for(const _0x4ac1dd of _0x50a9df)_0x4ac1dd['sort']((_0x11916d,_0x45ae99)=>_0x11916d['id']<_0x45ae99['id']?-0x1:0x1);}());for(let _0x22a754=0x0;_0x22a754<_0x50a9df['length'];_0x22a754++){if(0x0==_0x50a9df[_0x22a754]['length'])continue;const _0x4e9ace=[];for(let _0x3a94b5=_0x22a754+0x1;_0x3a94b5<_0x50a9df['length'];_0x3a94b5++)0x0!=_0x50a9df[_0x3a94b5]['length']&&_0x36abff(_0x50a9df[_0x22a754],_0x50a9df[_0x3a94b5])&&_0x4e9ace['push'](_0x3a94b5);for(const _0x30e418 of _0x4e9ace)_0x50a9df[_0x22a754]=_0x50a9df[_0x22a754]['concat'](_0x50a9df[_0x30e418]),_0x50a9df[_0x30e418]=[];}for(const _0x30faa0 of _0x50a9df)for(let _0x1aea52=0x0;_0x1aea52<_0x30faa0['length'];_0x1aea52++){const _0x12b219=_0x30faa0[_0x1aea52+0x1]||null;_0x30faa0[_0x1aea52]['next']!==_0x12b219&&(_0x30faa0[_0x1aea52]['next']=_0x12b219);}for(const _0x458404 of _0x50a9df)for(let _0x6a8a52=0x0;_0x6a8a52<_0x458404['length'];_0x6a8a52++){const _0x40dd2a=_0x458404[_0x6a8a52-0x1]||null;_0x458404[_0x6a8a52]['previous']!==_0x40dd2a&&(_0x458404[_0x6a8a52]['previous']=_0x40dd2a);}function _0x36abff(_0x4665fa,_0x10eacf){if(_0x4665fa[0x0]['attributes']['groupId']!==_0x10eacf[0x0]['attributes']['groupId']&&_0x4665fa[0x0]['author']!==_0x10eacf[0x0]['author'])return!0x1;if(!function(_0x39ae8a,_0x3cfaa4){if(!_0x39ae8a['hasComments']&&!_0x3cfaa4['hasComments'])return!0x0;if(_0x39ae8a['hasComments']&&_0x3cfaa4['hasComments'])return!0x1;if(_0x39ae8a['hasComments']&&_0x3cfaa4['createdAt']<_0x39ae8a['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x3cfaa4['hasComments']&&_0x39ae8a['createdAt']<_0x3cfaa4['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x4665fa[0x0],_0x10eacf[0x0]))return!0x1;const _0x1c279a=Ut(_0x4665fa[0x0]['attributes'],'groupId'),_0x315f72=Ut(_0x10eacf[0x0]['attributes'],'groupId');if(!_0x6fbfc5(_0x1c279a,_0x315f72))return!0x1;return!!_0x4665fa['every'](_0x349ca3=>_0x10eacf['some'](_0x5a8b26=>_0x349ca3['getFirstRange']()['isEqual'](_0x5a8b26['getFirstRange']())))&&_0x10eacf['every'](_0x29a6f6=>_0x4665fa['some'](_0x289119=>_0x29a6f6['getFirstRange']()['isEqual'](_0x289119['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x6f989f){const _0x24188b=Array['from'](_0x6f989f),_0x540d60=this['getSuggestions']({'skipNotAttached':!0x0}),_0x45148b=_0x540d60['filter'](_0x33c37b=>!_0x6f989f['has'](_0x33c37b)),_0x4bc918=new Map(_0x24188b['map'](_0x496a36=>[_0x496a36,this['_suggestionFactory']['getSuggestionCallback'](_0x496a36['type'],_0x496a36['subType'],'join')])),_0x5135e8=new Map(_0x540d60['map'](_0x3e68e6=>[_0x3e68e6,_0x3e68e6['getRanges']()]));for(let _0x59abf6=0x0;_0x59abf6<_0x24188b['length'];_0x59abf6++){if(_0x255da5(this,_0x24188b[_0x59abf6],_0x24188b,_0x59abf6+0x1))return!0x0;}for(let _0x4a432a=0x0;_0x4a432a<_0x24188b['length'];_0x4a432a++){if(_0x255da5(this,_0x24188b[_0x4a432a],_0x45148b,0x0))return!0x0;}return!0x1;function _0x255da5(_0x3b3aeb,_0x5353d7,_0x44c9d8,_0x430ef2){for(let _0x294529=_0x430ef2;_0x294529<_0x44c9d8['length'];_0x294529++){const _0xdf82d8=_0x44c9d8[_0x294529];if(_0xdf82d8['type']!==_0x5353d7['type']||_0xdf82d8['author']['id']!==_0x5353d7['author']['id']||_0xdf82d8['subType']!==_0x5353d7['subType'])continue;if(!Kt(_0x5353d7,_0xdf82d8))continue;if('attribute'==_0x5353d7['type']&&_0x5353d7['data']['oldValue']!=_0xdf82d8['data']['oldValue'])continue;if('attribute'==_0x5353d7['type']&&_0x3b3aeb['_isBlockAttribute'](_0x5353d7['data']['key']))continue;if('formatBlock'==_0x5353d7['type']){const _0x232a1e=_0x3b3aeb['editor']['model'],_0x2d1a54=_0x5353d7['getContainedElement']();if(_0x2d1a54&&(_0x232a1e['schema']['isObject'](_0x2d1a54)||_0x232a1e['schema']['isLimit'](_0x2d1a54)))continue;}const _0x33b06d=_0x4bc918['get'](_0x5353d7),_0x2066e8=_0x5135e8['get'](_0x5353d7),_0x7c73e9=_0x5135e8['get'](_0xdf82d8),_0x3609b5=_0x5353d7['commentThread']&&_0x5353d7['commentThread']['length'],_0x29252d=_0xdf82d8['commentThread']&&_0xdf82d8['commentThread']['length'];if(!_0x3609b5&&_0x33b06d(_0x7c73e9,_0x2066e8))return _0x3b3aeb['_joinSuggestions'](_0xdf82d8,_0x5353d7),_0x5135e8['delete'](_0x5353d7),!0x0;if(!_0x29252d&&_0x33b06d(_0x2066e8,_0x7c73e9))return _0x3b3aeb['_joinSuggestions'](_0x5353d7,_0xdf82d8),_0x5135e8['delete'](_0xdf82d8),!0x0;}return!0x1;}}['_joinSuggestions'](_0x32e322,_0x41008f){if(_0x32e322['isMultiRange']){for(const _0x4ae435 of _0x41008f['getRanges']())_0x32e322['addRange'](_0x4ae435);}else{const _0x55ed2b=_0x41008f['getFirstRange']()['end'];this['_setSuggestionRange'](_0x32e322,this['_model']['createRange'](_0x32e322['getFirstRange']()['start'],_0x55ed2b));}_0x41008f['removeMarkers']();}['_getMarkerAnnouncementText'](_0x16a43d,_0x28ad92,_0xb4e921){const _0x26d063=_0x16a43d['startsWith']('format')||_0x16a43d['startsWith']('attribute')?'FORMATTING':_0x16a43d['toUpperCase']();return o(this['editor']['locale'],_0x28ad92+'_'+_0x26d063+'_SUGGESTION_ANNOUNCEMENT',_0xb4e921);}['_initAriaMarkerChangeAnnouncements'](){const _0x4ac9ea=this['editor'];if(!_0x4ac9ea['ui'])return;const {ariaLiveAnnouncer:_0x41f99b}=_0x4ac9ea['ui'];_0x5d346e(this['_model'],({left:_0x40ad12,entered:_0x52d0d2})=>{for(const _0x14b951 of _0x40ad12){const {group:_0x57a139,type:_0x3c6b42}=this['_splitMarkerName'](_0x14b951['name']);if('suggestion'===_0x57a139){_0x41f99b['announce'](this['_getMarkerAnnouncementText'](_0x3c6b42,'LEAVE'));break;}}for(const _0x51f8db of _0x52d0d2){const {group:_0x19be87,type:_0x5dfffc}=this['_splitMarkerName'](_0x51f8db['name']);if('suggestion'===_0x19be87){_0x41f99b['announce'](this['_getMarkerAnnouncementText'](_0x5dfffc,'ENTER',_0x5caee9(_0x2170ce)));break;}}});}['_processAttributeChanges'](_0x547c37){if(this['_recordAttributeSuggestions'])return!0x1;const _0x511243=this['editor'],_0x41578e=_0x511243['model']['document']['differ']['getChanges']();if(0x0==_0x41578e['length'])return!0x1;const _0x1803cd=[],_0x52b895=_0x41578e['filter'](_0x3a3e91=>'attribute'==_0x3a3e91['type']),_0x1509cd=_0x41578e['filter'](_0x2d0bb1=>'insert'==_0x2d0bb1['type']&&'$text'!=_0x2d0bb1['name']),_0xee00e6=_0x41578e['filter'](_0x13a293=>'remove'==_0x13a293['type']&&'$text'!=_0x13a293['name']);for(const _0x307375 of _0x52b895)_0x1803cd['push']({'key':_0x307375['attributeKey'],'newValue':_0x307375['attributeNewValue'],'oldValue':_0x307375['attributeOldValue'],'range':Ht(_0x307375['range'],_0x511243['model'])});for(const _0x4c2b7a of _0x1509cd){const _0x557300=_0xee00e6['find'](_0x50f754=>_0x50f754['position']['isEqual'](_0x4c2b7a['position']));_0x557300&&_0x1803cd['push']({'key':m,'newValue':_0x4c2b7a['name'],'oldValue':_0x557300['name'],'range':_0x511243['model']['createRangeOn'](_0x4c2b7a['position']['nodeAfter'])});}return 0x0!=_0x1803cd['length']&&this['_reduceExistingSuggestions'](_0x547c37,_0x1803cd);}['_processAttributeSuggestions'](_0x38ac8e){let _0x1fa1b5=!0x1;const _0x461389=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xed8aa7=>_0xed8aa7['data']['newRange']&&_0xed8aa7['name']['startsWith']('suggestion:attribute:'));for(const _0x25dfd4 of _0x461389){const {subType:_0x11c968,id:_0x26f2c5}=this['_splitMarkerName'](_0x25dfd4['name']),_0x4fdcd3=_0x11c968['split']('|')[0x0];for(const _0x5cedce of this['getSuggestions']({'skipNotAttached':!0x0}))_0x5cedce['id']!=_0x26f2c5&&'attribute'==_0x5cedce['type']&&_0x5cedce['data']&&_0x5cedce['data']['key']==_0x4fdcd3&&_0x5cedce['getFirstRange']()['isIntersecting'](_0x25dfd4['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x5cedce,_0x25dfd4['data']['newRange'],_0x38ac8e),_0x1fa1b5=!0x0);}return _0x1fa1b5;}['_recordAttributeChanges'](_0x37fcac){this['_recordAttributeSuggestions']=!0x0,_0x37fcac();}['_isRegisteredAttribute'](_0x494ca3){const _0x28e66c=this['_isBlockAttribute'](_0x494ca3),_0x3b9c9c=this['_inlineAttributeKeys']['has'](_0x494ca3);return _0x28e66c||_0x3b9c9c;}['_reduceExistingSuggestions'](_0x37af57,_0x4a347a){if(0x0==_0x4a347a['length'])return!0x1;let _0x14cf72=!0x1;for(const _0x338c6a of _0x4a347a){const _0x42727d=this['_findSuggestions'](_0x338c6a['range'],'attribute')['filter'](_0x271a05=>!_0x271a05['meta']['isNextTo'])['map'](_0x3174c1=>_0x3174c1['suggestion']),_0x10ab57=_0x49434c({'newValue':_0x338c6a['newValue']});_0x42727d['filter'](_0x25df02=>{const [_0x42deae,_0x5eb247]=_0x25df02['subType']['split']('|');return _0x42deae==_0x338c6a['key']&&_0x5eb247!=_0x10ab57;})['forEach'](_0x4405ab=>{this['_reduceSuggestionAttributeRange'](_0x4405ab,_0x338c6a['range'],_0x37af57),_0x14cf72=!0x0;});}return _0x14cf72;}['_reduceSuggestionAttributeRange'](_0x5ec77b,_0x572bf3,_0xad49dc){const _0x3754ce=_0x5ec77b['getFirstRange']()['getDifference'](_0x572bf3);0x0!==_0x3754ce['length']?0x1!==_0x3754ce['length']?this['_breakSuggestionMarker'](_0x5ec77b,_0x572bf3['start'],_0x572bf3['end']):this['_setSuggestionRange'](_0x5ec77b,_0x3754ce[0x0]):_0xad49dc['removeMarker'](_0x5ec77b['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x321ce6){this['_editor']=_0x321ce6,this['_model']=_0x321ce6['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x247549,_0x2b6d20,_0x33a400,_0x53b6fd,_0x49e7d3,_0x2cbd8d){return new u(this['_model'],{'type':_0x247549,'subType':_0x2b6d20,'id':_0x33a400,'author':_0x53b6fd,'creator':_0x53b6fd,'attributes':_0x49e7d3,'onAttributesChange':_0x2cbd8d,'onAccept':(..._0x585c06)=>this['getSuggestionCallback'](_0x247549,_0x2b6d20,'accept')(..._0x585c06),'onDiscard':(..._0x1c67f5)=>this['getSuggestionCallback'](_0x247549,_0x2b6d20,'discard')(..._0x1c67f5)});}['registerCustomCallback'](_0x3973fd,_0x186ffa,_0x35bda9,_0x998efe){const _0x219c9a=_0x3973fd+':'+_0x186ffa+':'+_0x35bda9;this['_customCallbacks']['set'](_0x219c9a,_0x998efe);}['getSuggestionCallback'](_0x513973,_0x1c776d,_0x432f92){const _0x42809f=_0x513973+':'+_0x1c776d+':'+_0x432f92;return this['_customCallbacks']['get'](_0x42809f)||this['_defaultCallbacks']['get'](_0x513973+':'+_0x432f92);}['_registerDefaultCallbacks'](){const _0x474a75=()=>!0x1,_0x397cf7=_0x4ee0a9=>{_0x4ee0a9['sort']((_0x12ea7c,_0x26652e)=>_0x12ea7c['start']['isBefore'](_0x26652e['start'])?0x1:-0x1),this['_model']['change'](_0x5043e9=>{for(const _0x14c578 of _0x4ee0a9){let _0x67d540;_0x67d540=_0x14c578['end']['isAtEnd']&&_0x14c578['end']['parent']==_0x14c578['start']['nodeAfter']?_0x5043e9['createSelection'](_0x14c578['start']['nodeAfter'],'on'):_0x5043e9['createSelection'](_0x14c578),this['_model']['deleteContent'](_0x67d540,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x561da7=(_0x229db1,_0x14e688)=>{_0x14e688&&this['_model']['change'](_0x2410ab=>{const {commandName:_0x2506a9,commandParams:_0x37651b=[]}=_0x14e688,_0x305d15=_0x229db1['map'](_0x151b53=>(Gt(_0x151b53)&&(_0x151b53=this['_model']['createRange'](_0x151b53['end'])),_0x151b53))['filter'](_0x59e56c=>'$graveyard'!==_0x59e56c['root']['rootName']);if(_0x305d15['length']<0x1)return;const _0x3295a7=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x573f62=>_0x4b4bbe['fromRange'](_0x573f62));_0x2410ab['setSelection'](_0x305d15);for(const _0x12b3f1 of this['_editor']['commands']['commands']())_0x12b3f1['refresh']();_0x37651b['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x2506a9,..._0x37651b);const _0x50a6b0=_0x3295a7['filter'](_0x2c6456=>'$graveyard'!=_0x2c6456['root']['rootName']);_0x50a6b0['length']>0x0&&_0x2410ab['setSelection'](_0x50a6b0);for(const _0x4e0165 of _0x3295a7)_0x4e0165['detach']();});},_0x520df4=(_0x19a7b7,_0x130228)=>0x1==_0x19a7b7['length']&&0x1==_0x130228['length']&&_0x19a7b7[0x0]['end']['isEqual'](_0x130228[0x0]['start']),_0x59502f=(_0x49a22c,_0x32d3b5,_0x18dfac,_0x490e6b)=>zt(_0x49a22c,_0x32d3b5,_0x18dfac,_0x490e6b)?[_0x49a22c,_0x32d3b5]:zt(_0x32d3b5,_0x49a22c,_0x490e6b,_0x18dfac)?[_0x32d3b5,_0x49a22c]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x474a75),this['_defaultCallbacks']['set']('insertion:discard',_0x397cf7),this['_defaultCallbacks']['set']('insertion:join',_0x520df4),this['_defaultCallbacks']['set']('insertion:chain',_0x59502f),this['_defaultCallbacks']['set']('deletion:accept',_0x397cf7),this['_defaultCallbacks']['set']('deletion:discard',_0x474a75),this['_defaultCallbacks']['set']('deletion:join',_0x520df4),this['_defaultCallbacks']['set']('deletion:chain',_0x59502f),this['_defaultCallbacks']['set']('formatInline:accept',_0x561da7),this['_defaultCallbacks']['set']('formatInline:discard',_0x474a75),this['_defaultCallbacks']['set']('formatInline:join',_0x520df4),this['_defaultCallbacks']['set']('formatInline:chain',_0x474a75),this['_defaultCallbacks']['set']('formatBlock:accept',_0x561da7),this['_defaultCallbacks']['set']('formatBlock:discard',_0x474a75),this['_defaultCallbacks']['set']('formatBlock:join',_0x520df4),this['_defaultCallbacks']['set']('formatBlock:chain',_0x474a75),this['_defaultCallbacks']['set']('attribute:accept',_0x474a75),this['_defaultCallbacks']['set']('attribute:discard',(_0x52683c,_0x24653d)=>{if(!_0x24653d)return;const _0x18c102=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x5399cd=>{if(_0x24653d['key']==m)for(const _0x38d0cd of _0x52683c){const _0x3e0241=_0x38d0cd['start']['nodeAfter'],_0x186fff=_0x24653d['oldValue'];_0x5399cd['rename'](_0x3e0241,_0x186fff);}else{if(_0x18c102['_isBlockAttribute'](_0x24653d['key'])){for(const _0x2b83da of _0x52683c)void 0x0!==_0x24653d['oldValue']?_0x5399cd['setAttribute'](_0x24653d['key'],_0x24653d['oldValue'],_0x2b83da['start']['nodeAfter']):_0x5399cd['removeAttribute'](_0x24653d['key'],_0x2b83da['start']['nodeAfter']);}else{for(const _0x550469 of _0x52683c)_0x24653d['oldValue']?_0x5399cd['setAttribute'](_0x24653d['key'],_0x24653d['oldValue'],_0x550469):_0x5399cd['removeAttribute'](_0x24653d['key'],_0x550469);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x520df4);}}function Pt(_0x73c542,_0x4659f5,_0x3e3f2e){for(const _0x168f34 of _0x4659f5['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x168f34['root']==_0x168f34)return!0x1;if(!_0x3e3f2e['containsItem'](_0x168f34))return!0x1;if(_0x73c542['isObject'](_0x168f34)||_0x73c542['isLimit'](_0x168f34))return!0x0;}return!0x1;}function Gt(_0x5549da){return _0x5549da['end']['parent']==_0x5549da['start']['nodeAfter']&&_0x5549da['end']['isAtStart'];}function Ft(_0x34e88f,_0x375447,_0x3f56e2,_0x7fc9f5){const _0x3685ba=_0x29600a=>!_0x29600a['item']['is']('$textProxy')&&!_0x7fc9f5['isObject'](_0x29600a['item']),_0x2bba39=_0x34e88f['start']['getLastMatchingPosition'](_0x3685ba),_0x5d40cd=_0x34e88f['end']['getLastMatchingPosition'](_0x3685ba,{'direction':'backward'});return(!_0x34e88f['start']['isEqual'](_0x2bba39)||!_0x34e88f['end']['isEqual'](_0x5d40cd))&&(_0x2bba39['isBefore'](_0x5d40cd)?_0x3f56e2['updateMarker'](_0x375447,{'range':_0x3f56e2['createRange'](_0x2bba39,_0x5d40cd)}):_0x3f56e2['removeMarker'](_0x375447),!0x0);}function Lt(_0x35b3ef){return _0x49434c(_0x35b3ef);}function Jt(_0x5b2c00){const _0xb1c079=_0x5b2c00['start']['nodeAfter'];return _0xb1c079&&_0xb1c079['is']('element');}function Ht(_0x40bd92,_0x97aba3){return null==_0x40bd92['end']['nodeBefore']&&_0x40bd92['end']['parent']==_0x40bd92['start']['nodeAfter']?qt(_0x40bd92['start']['nodeAfter'],_0x97aba3):_0x40bd92;}function qt(_0x48cc62,_0x1e5b51){const _0x58ee5c=_0x1e5b51['schema']['isObject'](_0x48cc62)||_0x1e5b51['schema']['isSelectable'](_0x48cc62);return _0x1e5b51['createRange'](_0x1e5b51['createPositionAt'](_0x48cc62,'before'),_0x58ee5c?_0x1e5b51['createPositionAfter'](_0x48cc62):_0x1e5b51['createPositionAt'](_0x48cc62,'end'));}function zt(_0x43f5bf,_0x4c47cc,_0x407268,_0x40b535){return!!Kt(_0x43f5bf,_0x4c47cc)&&_0x407268['end']['isEqual'](_0x40b535['start']);}function Kt(_0x3df2dc,_0x59964f){if(!_0x3df2dc['_isDataLoaded']||!_0x59964f['_isDataLoaded'])return!0x1;const _0x46240b=new Set(Object['keys'](_0x3df2dc['attributes'])),_0xe3a08f=new Set(Object['keys'](_0x59964f['attributes']));if(_0x46240b['delete']('groupId'),_0xe3a08f['delete']('groupId'),0x0==_0x46240b['size']&&0x0==_0xe3a08f['size'])return!0x0;if(_0x46240b['size']!=_0xe3a08f['size'])return!0x1;const _0x57e694={..._0x3df2dc['attributes']},_0x130f8f={..._0x59964f['attributes']};return delete _0x57e694['groupId'],delete _0x130f8f['groupId'],JSON['stringify'](_0x57e694)==JSON['stringify'](_0x130f8f);}function Wt(_0x451549,_0x58194a){const _0x32c615=Qt(_0x451549['attributes']),_0x1cb437=Qt(_0x58194a);if(!_0x451549['_isDataLoaded'])return!0x1;for(const _0x33e5c4 of Object['keys'](_0x1cb437))if(!_0x6fbfc5(_0x32c615[_0x33e5c4],_0x1cb437[_0x33e5c4]))return!0x1;return!0x0;}function Qt(_0x188ab5){const _0x563dec=Object['assign']({},_0x188ab5);return delete _0x563dec['skipNestingCheck'],delete _0x563dec['tablePasteChainId'],_0x563dec;}class Ce extends/* #__PURE__ -- @preserve */
25
- _0x5d8e8e(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x103ff0,_0x289ae7,_0x326114,_0x3f5439){super(),this['model']=_0x289ae7,this['view']=_0x326114,this['commentThreadController']=_0x3f5439,this['_editor']=_0x103ff0,this['_acceptCommand']=_0x103ff0['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x103ff0['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x3cbfa4,_0x581883)=>_0x3cbfa4||_0x581883),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x2a686f=>_0x2a686f&&this['_editor']['model']['canEditAt'](_0x289ae7['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x5b1304=>_0x5b1304&&this['_editor']['model']['canEditAt'](_0x289ae7['getRanges']())),this['_pendingAction']=null,_0x326114['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x326114,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x326114,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x326114,'change:isDirty',()=>{_0x326114['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 _0x40921f=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x40921f);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class cs extends _0x3dfbdc{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x351ce0,_0x231e3e,_0x299ff9,_0x3698af){super(_0x351ce0),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x1e1df4(_0x351ce0,o(_0x351ce0,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x231e3e['authoredAt']),this['bind']('authoredAt')['to'](_0x231e3e),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',_0x231e3e,'authoredAt',this,'descriptionParts',(_0x219cdf,_0x3c3a13,_0x2a27ef)=>{const _0x5028b3=_0x2a27ef['map'](_0x2efec4=>as(_0x2efec4['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x219cdf-0x1,_0x231e3e['author']['name'],_0x3c3a13?_0x3698af['formatDateTime'](_0x3c3a13):'',new DOMParser()['parseFromString'](_0x5028b3,'text/html')['body']['textContent']]);}),this['focusables']=new _0x42de76(),this['focusTracker']=new _0x516349(),this['keystrokes']=new _0x4b014a(),this['focusCycler']=new _0x3b2a46({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x2fa4d4=>_0x2fa4d4['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x231e3e,this['_localUser']=_0x299ff9,this['_config']=_0x3698af,_0x3698af['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x4284c1(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x57e665}=this['_config'];this['commentsListView']=new _0x57e665(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',_0x496e56=>_0x496e56+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x4f2c6b,_0x304f10)=>_0x4f2c6b||!!_0x304f10);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x5b64b5}=this['_config'],_0xcf67c0=new _0x5b64b5(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5a9bff=_0xcf67c0['commentInputView'];return _0xcf67c0['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x5a9bff,'value',(_0x1f972f,_0x5e6d14,_0x3a0d43)=>!!_0x3a0d43||_0x1f972f&&!_0x5e6d14),_0x5a9bff['on']('submit',(_0x134abe,_0x48dbc3)=>{this['fire']('addComment',_0x48dbc3),_0x5a9bff['editor']['setData']('');}),_0x5a9bff['on']('cancel',()=>this['focus']()),_0x5a9bff['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0xcf67c0;}}class pe extends cs{['suggestionView'];['_descriptionElement'];constructor(_0x377ad1,_0xbc1fbe,_0x3cb0ae,_0x5f4e3d){super(_0x377ad1,_0xbc1fbe,_0x3cb0ae,_0x5f4e3d),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x29e227=>_0x29e227&&_0x29e227[0x0]?_0x29e227[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x423e0d,_0x3d113b)=>{let _0x2a1257='';for(const _0x158793 of _0x423e0d)_0x2a1257+='<p>'+as(_0x158793['content'],_0x158793['color'])+'</p>';return _0x3d113b?_0x2a1257:_0x16a758(_0x2a1257,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x5f4e3d['SuggestionView'](_0x377ad1,_0xbc1fbe,{'formatDateTime':_0x5f4e3d['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 _0x1bd2c9=this['bindTemplate'],_0x21fead=[this['suggestionView']];return this['commentsListView']&&_0x21fead['push'](this['commentsListView']),this['commentThreadInputView']&&_0x21fead['push'](this['commentThreadInputView']),_0x21fead['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x1bd2c9['if']('isActive','ck-suggestion-wrapper--active'),_0x1bd2c9['to']('type',_0x3e70e7=>'ck-suggestion-'+_0x3e70e7),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':_0x1bd2c9['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x21fead};}['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 fe extends _0x3dfbdc{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x5992a3,_0xc4b813,_0x36befd){super(_0x5992a3),this['_model']=_0xc4b813,this['_config']=_0x36befd,this['set']('description',''),this['bind']('authoredAt')['to'](_0xc4b813),this['acceptButton']=this['_createButton'](o(_0x5992a3,'Accept\x20suggestion'),_0x33fdfa['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x5992a3,'Discard\x20suggestion'),_0x33fdfa['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0xe4d37b(_0x5992a3,_0xc4b813['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x42de76([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x516349(),this['keystrokes']=new _0x4b014a(),this['focusCycler']=new _0x3b2a46({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x52574b=>_0x52574b['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x381f48=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x381f48['innerHTML']=this['description'],this['on']('change:description',(_0x430c3d,_0x42203e,_0x2ddd4d)=>{_0x381f48['innerHTML']=_0x2ddd4d;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x3a8af1=this['bindTemplate'],_0x3102f5=[{'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':_0x3a8af1['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3a8af1['to']('authoredAt',_0x18a6ee=>this['_config']['formatDateTime'](_0x18a6ee))}]}]},{'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']&&_0x3102f5['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':_0x3102f5}]};}['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'](_0x259ef7,_0x3802dd,_0x380373,_0x2fc95d,_0x24669a){const _0x175030=new _0x41e2ec(this['locale']);return _0x175030['set']({'label':_0x259ef7,'icon':_0x3802dd,'tooltip':!0x0,'tooltipPosition':_0x24669a}),_0x175030['extendTemplate']({'attributes':{'class':_0x380373}}),_0x175030['on']('execute',()=>{this['fire'](_0x2fc95d,this['_model']['id']);}),_0x175030;}['_setupKeyboardNavigation'](){const _0x5511e0=this['element'];this['keystrokes']['listenTo'](_0x5511e0);for(const _0x5de2e9 of this['focusables'])this['focusTracker']['add'](_0x5de2e9['element']),this['keystrokes']['listenTo'](_0x5de2e9['element']);this['keystrokes']['set']('enter',(_0x4c3c07,_0x4cf952)=>{_0x5511e0===_0x4c3c07['target']&&(this['focusCycler']['focusFirst'](),_0x4cf952());}),this['keystrokes']['set']('esc',(_0xd87238,_0x42574b)=>{_0x5511e0!==_0xd87238['target']&&(this['focus'](),_0x42574b());});}}var we='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x5d703b{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x56e92b,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x64c078){super(_0x64c078),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x192650=this['editor']['config'];_0x192650['define']('trackChanges.SuggestionThreadView',pe),_0x192650['define']('trackChanges.SuggestionView',fe),_0x192650['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x192650['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x1d8377,_0x4e87a9){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x5c7595,_0x7a58e5]of this['_handleControllerBuffer']){const _0x5b5a80=this['_suggestionToController']['has'](_0x5c7595);_0x5b5a80||_0x7a58e5?_0x5b5a80&&_0x7a58e5&&this['_destroyController'](_0x5c7595):this['_initializeController'](_0x5c7595);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x1d8377,_0x4e87a9);}['init'](){const _0x5cec25=this['editor'],_0x36bec5=_0x5cec25['plugins']['get']('TrackChangesEditing'),_0x4adf64=_0x5cec25['plugins']['get']('Annotations'),_0x5b2225=_0x5cec25['plugins']['get']('EditorAnnotations'),_0x35e0e0=_0x5cec25['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x5b2225['addSourceCollector'](()=>{const _0x1c2f5d=[];for(const [_0x56d219,_0x5e9e3e]of Array['from'](this['_suggestionToController'])){const _0xa3d0bc=_0x56d219['getAllAdjacentSuggestions'](),_0x258b65=[];for(const _0x368e79 of _0xa3d0bc){if(!_0x368e79['isInContent'])continue;if(_0x368e79['isMultiRange']){_0x258b65['push'](..._0x368e79['getRanges']());continue;}const _0x1c9739=_0x368e79['getFirstRange']();if(_0x258b65['length']>0x0){const _0xf5f3fc=_0x258b65[0x0]['getJoined'](_0x1c9739);if(_0xf5f3fc){_0x258b65[0x0]=_0xf5f3fc;continue;}}_0x258b65['push'](_0x1c9739);}_0x1c2f5d['push']([_0x5e9e3e['view'],_0x258b65]);}return _0x1c2f5d;}),this['listenTo'](_0x36bec5,'suggestionLoaded',(_0x48c03f,_0x2345ac)=>{this['listenTo'](_0x2345ac,'change:previous',(_0x20009e,_0x1b0e34,_0x4a2ed2,_0x171610)=>{_0x2345ac['isInContent']&&(null==_0x4a2ed2?(this['_updateController'](_0x171610['head']),this['_handleSuggestionControllerDelayed'](_0x2345ac,!0x1)):(this['_updateController'](_0x4a2ed2['head']),null==_0x171610&&this['_handleSuggestionControllerDelayed'](_0x2345ac,!0x0)));}),null!==_0x2345ac['previous']?this['_updateController'](_0x2345ac['head']):this['_handleSuggestionControllerDelayed'](_0x2345ac,!0x1);}),this['listenTo'](_0x36bec5,'suggestionUnloaded',(_0x29e462,_0x412216,_0x1789e0)=>{this['stopListening'](_0x412216,'change:previous'),this['_handleControllerBuffer']['delete'](_0x412216),this['_suggestionToController']['has'](_0x412216)&&this['_destroyController'](_0x412216),_0x1789e0&&this['_updateController'](_0x1789e0['head']);}),this['listenTo'](_0x36bec5,'suggestionChanged',(_0x49b54f,_0xcc4c4e)=>{this['_updateController'](_0xcc4c4e);}),this['listenTo'](_0x4adf64,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x35e0e0,'addComment',(_0x7a30fb,{threadId:_0x4f8cae,isFromAdapter:_0x17e23c})=>{if(_0x17e23c||!_0x36bec5['hasSuggestion'](_0x4f8cae))return;const _0x43536b=_0x36bec5['getSuggestion'](_0x4f8cae);this['_suggestionToController']['get'](_0x43536b)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1dba90=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x51a13d;for(const _0x30faf1 in _0x1dba90){const _0x48987e=_0x30faf1,_0x4a637e=_0x1dba90[_0x48987e];if('trackChangesLicenseKeyValid'==_0x4a637e||'trackChangesLicenseKeyInvalid'==_0x4a637e||'trackChangesLicenseKeyExpired'==_0x4a637e||'trackChangesLicenseKeyDomainLimit'==_0x4a637e||'trackChangesLicenseKeyNotAllowed'==_0x4a637e||'trackChangesLicenseKeyEvaluationLimit'==_0x4a637e||'trackChangesLicenseKeyTrialLimit'==_0x4a637e||'trackChangesLicenseKeyUsageLimit'==_0x4a637e){delete _0x1dba90[_0x48987e],_0x51a13d=_0x4a637e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x51a13d&&_0x1dba90['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x51a13d&&_0x1dba90['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x51a13d&&_0x1dba90['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x51a13d&&_0x1dba90['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x51a13d&&_0x1dba90['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x51a13d&&_0x1dba90['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x51a13d&&_0x1dba90['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x31b66d=this['editor']['plugins']['get']('Annotations'),_0x486636=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1f695a=Array['from'](_0x31b66d['activeAnnotations'],_0x1dfd3e=>_0x1dfd3e['innerView'])['filter'](_0x2121c3=>this['_viewToController']['has'](_0x2121c3)),_0x3a691b=[];for(const _0x1d9384 of _0x1f695a){const _0x37fd7e=this['_viewToController']['get'](_0x1d9384)['model']['getAllAdjacentSuggestions']();_0x3a691b['push'](..._0x37fd7e['reduce']((_0x72ec5e,_0x4c014b)=>[..._0x72ec5e,..._0x4c014b['getMarkerNames']()],[]));}_0x486636['activeMarkers']=_0x3a691b;}['_addUIComponentsToFactory'](){const _0x5c19ee=this['editor'],_0x7db649=_0x5c19ee['locale'],_0x50a005=o(_0x7db649,'Track\x20changes'),_0x3630ff=new _0xd37b29([{'type':'switchbutton','model':new _0x5b4f7c({'withText':!0x0,'isToggleable':!0x0,'label':_0x50a005,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x5b4f7c({'withText':!0x0,'label':o(_0x7db649,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5b4f7c({'withText':!0x0,'label':o(_0x7db649,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5b4f7c({'withText':!0x0,'label':o(_0x7db649,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5b4f7c({'withText':!0x0,'label':o(_0x7db649,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x5c19ee['plugins']['has']('TrackChangesPreview')&&_0x3630ff['addMany']([{'type':'separator'},{'type':'button','model':new _0x5b4f7c({'withText':!0x0,'label':o(_0x7db649,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x2b7b27 of _0x3630ff)if(ke(_0x2b7b27)){const _0x33a122=_0x5c19ee['commands']['get'](_0x2b7b27['model']['commandName']);_0x2b7b27['model']['bind']('isOn','isEnabled')['to'](_0x33a122,'value','isEnabled');}_0x5c19ee['ui']['componentFactory']['add']('trackChanges',_0x23a69c=>this['_createToolbarButton'](_0x23a69c,_0x3630ff,_0x50a005)),_0x5c19ee['ui']['componentFactory']['add']('menuBar:trackChanges',_0x513609=>this['_createMenuBarMenu'](_0x513609,_0x3630ff,_0x50a005));}['_createToolbarButton'](_0x327607,_0x5dd536,_0x2193d0){const _0xe626e1=_0x4e24d2(_0x327607,_0x9de51c),_0x398ec9=this['editor']['commands']['get']('trackChanges');_0xe626e1['buttonView']['set']({'tooltip':_0x2193d0,'label':_0x2193d0,'icon':we}),_0xe626e1['buttonView']['bind']('isOn')['to'](_0x398ec9,'value'),_0xe626e1['buttonView']['on']('execute',()=>{_0x398ec9['execute'](),this['editor']['editing']['view']['focus']();}),_0xd64f4d(_0xe626e1,_0x5dd536,{'role':'menu'});const _0x484518=[];for(const _0x6ac78c of _0x5dd536)ke(_0x6ac78c)&&_0x484518['push'](this['editor']['commands']['get'](_0x6ac78c['model']['commandName']));const _0x39abf6=_0xe626e1['buttonView'];return _0x39abf6['actionView']['unbind']('isEnabled'),_0x39abf6['arrowView']['unbind']('isEnabled'),_0x39abf6['actionView']['bind']('isEnabled')['to'](_0x398ec9,'isEnabled'),_0x39abf6['arrowView']['bind']('isEnabled')['toMany'](_0x484518,'isEnabled',(..._0x50417e)=>_0x50417e['some'](_0x44d98c=>_0x44d98c)),_0xe626e1['on']('execute',_0x458876=>{this['editor']['execute'](_0x458876['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0xe626e1;}['_createMenuBarMenu'](_0x304d2a,_0xa754c4,_0x31ed5d){const _0x329827=new _0x305c2c(_0x304d2a),_0x503ec0=this['editor']['commands']['get']('trackChanges');_0x329827['buttonView']['set']({'label':_0x31ed5d,'icon':we});const _0xfe955f=new _0xf66922(_0x304d2a);for(const _0x45be9b of _0xa754c4){if('separator'==_0x45be9b['type']){_0xfe955f['items']['add'](new _0x661b45(_0x304d2a));continue;}const _0x3946c3=new _0xfa88bb(_0x304d2a,_0x329827),_0xdd70b7=new _0x3314c5(_0x304d2a),_0x2e6f6c=_0x45be9b['model'];_0xdd70b7['bind'](...Object['keys'](_0x2e6f6c))['to'](_0x2e6f6c),_0xdd70b7['delegate']('execute')['to'](_0x329827),_0xdd70b7['on']('execute',()=>{this['editor']['execute'](_0x2e6f6c['commandName']),this['editor']['editing']['view']['focus']();}),_0x3946c3['children']['add'](_0xdd70b7),_0xfe955f['items']['add'](_0x3946c3);}return _0x329827['bind']('isEnabled')['to'](_0x503ec0,'isEnabled'),_0x329827['panelView']['children']['add'](_0xfe955f),_0x329827;}['_initializeController'](_0x522d15){const _0xa9cb71=this['editor'],_0xc2b3eb=_0xa9cb71['config'],_0x1946b7=_0xa9cb71['plugins']['get']('Annotations'),_0x27f50a=_0xa9cb71['plugins']['get']('CommentsRepository'),_0xa50cdb=_0xa9cb71['plugins']['get']('EditorAnnotations'),_0x50a255=_0xa9cb71['plugins']['get'](_0x56e92b)['me'],_0x300440=_0xc2b3eb['get']('trackChanges')['SuggestionThreadView'],_0x535cfc=_0xc2b3eb['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x24da59,CommentThreadInputView:_0x25abd3}=_0xa9cb71['plugins']['get']('CommentsUI');let _0x132649,_0x2e2ec1,_0x2bbbcd;this['_annotationViews']['has'](_0x522d15['id'])?(_0x2e2ec1=this['_annotationViews']['get'](_0x522d15['id']),_0x132649=_0x2e2ec1['mainView']):(_0x132649=new _0x300440(_0xa9cb71['locale'],_0x522d15,_0x50a255,{'disableComments':this['_disableComments'],'editorConfig':{..._0xc2b3eb['get']('comments.editorConfig'),'licenseKey':_0xc2b3eb['get']('licenseKey')},'maxCommentsWhenCollapsed':_0xc2b3eb['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0xc2b3eb['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0xc2b3eb['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x470c2c(_0xc2b3eb['get']('locale')),'CommentView':_0xc2b3eb['get']('comments')['CommentView'],'CommentsListView':_0x24da59,'CommentThreadInputView':_0x25abd3,'SuggestionView':_0x535cfc}),_0x132649['suggestionView']['acceptButton']['on']('execute',()=>{_0xa9cb71['editing']['view']['focus']();}),_0x132649['suggestionView']['discardButton']['on']('execute',()=>{_0xa9cb71['editing']['view']['focus']();}),_0x2e2ec1=_0x1946b7['createAnnotationView'](this['editor']['locale'],_0x132649),_0x2e2ec1['bind']('isDirty')['to'](_0x132649,'isDirty'),_0x2e2ec1['bind']('length')['to'](_0x132649),_0x2e2ec1['bind']('type')['to'](_0x132649,'type',_0xb4993a=>'suggestion-'+_0xb4993a),_0x132649['on']('escape',()=>{_0x2bbbcd['fire']('escape');}),this['_annotationViews']['set'](_0x522d15['id'],_0x2e2ec1));const _0x5c7e0b=_0x27f50a['createCommentThreadController'](_0x522d15['commentThread'],_0x132649),_0x3be305=new Ce(_0xa9cb71,_0x522d15,_0x132649,_0x5c7e0b),_0x5ee82c=_0x522d15['getAllAdjacentSuggestions']()['filter'](_0x3f1c36=>_0x3f1c36['isInContent']);_0x132649['descriptionParts']=_0xa9cb71['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x5ee82c),this['_suggestionToController']['set'](_0x522d15,_0x3be305),this['_viewToController']['set'](_0x132649,_0x3be305),_0x2bbbcd=_0x1946b7['createAnnotation']({'view':_0x2e2ec1,'target':()=>{const _0x36a1f5=[],_0x35ef44=_0x522d15['getAllAdjacentSuggestions']()['filter'](_0x3e381a=>_0x3e381a['isInContent']);for(const _0x2c4923 of _0x35ef44)_0x36a1f5['push'](..._0x2c4923['getMarkers']());return _0x2c4f3d(_0xa9cb71['editing'],_0x36a1f5);},'type':()=>'suggestion-'+_0x3be305['view']['type']}),_0x27f50a['_bindAnnotationToEditors'](_0x132649,_0x2bbbcd),_0x1946b7['add'](_0x2bbbcd),_0xa50cdb['registerAnnotation'](_0x2bbbcd);}['_destroyController'](_0x4785c0){const _0x536e8a=this['editor']['plugins']['get']('CommentsRepository'),_0x27c13f=this['editor']['plugins']['get']('Annotations'),_0x5d0339=this['_suggestionToController']['get'](_0x4785c0),_0x3dee88=_0x5d0339['view'],_0x1ec246=_0x27c13f['getByInnerView'](_0x3dee88);_0x536e8a['_unbindEditors'](_0x3dee88),_0x1ec246&&_0x27c13f['remove'](_0x1ec246),this['_suggestionToController']['delete'](_0x4785c0),this['_viewToController']['delete'](_0x3dee88),_0x5d0339['destroy']();}['_updateController'](_0x140991){if(!_0x140991['isInContent']||!this['_suggestionToController']['has'](_0x140991))return;const _0x547b30=this['editor']['plugins']['get']('TrackChangesEditing'),_0x39ace9=this['_suggestionToController']['get'](_0x140991),_0x44f912=_0x140991['getAllAdjacentSuggestions']();_0x39ace9['view']['descriptionParts']=_0x547b30['descriptionFactory']['getDescriptions'](_0x44f912);}['destroy'](){for(const _0x31f85b of this['_suggestionToController']['keys']())this['_destroyController'](_0x31f85b);for(const _0x1e2664 of this['_annotationViews']['values']())_0x1e2664['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x253511){return'model'in _0x253511;}class k extends _0x5d703b{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x1a38ec){this['editor']['plugins']['get'](p)['adapter']=_0x1a38ec;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x9f924e){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x9f924e);}['getSuggestions']({skipNotAttached:_0x81940f=!0x1,toJSON:_0x4702c4=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x81940f,'toJSON':_0x4702c4});}['getSuggestion'](_0x9f0632){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x9f0632);}}const w=['Pagination'];class T extends _0x5d703b{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4d8101=this['editor'];if(_0x4d8101['config']['define']('trackChangesData.editorCreator',_0x3ddd00=>{const _0x44e446=_0x4d8101['model']['document']['getRootNames']()['reduce']((_0x379d6e,_0x4d35df)=>(_0x379d6e[_0x4d35df]='',_0x379d6e),{});return _0x4d8101['constructor']['create'](_0x44e446,_0x3ddd00);}),'function'!=typeof _0x4d8101['config']['get']('trackChangesData')['editorCreator'])throw new _0x5370f3('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0xb63558){return N(this['editor'],!0x0,_0xb63558);}['getDataWithDiscardedSuggestions'](_0x239bb4){return N(this['editor'],!0x1,_0x239bb4);}}class D extends _0x5d703b{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x380e46){function _0x294ca6(_0x4ed72c){return _0x4ed72c['map'](_0x2c3b43=>String['fromCharCode'](_0x2c3b43))['join']('');}super(_0x380e46),this['result']='end',_0x380e46[_0x294ca6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x294ca6([0x76,0x69,0x65,0x77])][_0x294ca6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x294ca6([0x61,0x75,0x74,0x6f]),_0x380e46[_0x294ca6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x294ca6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x294ca6([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x294ca6([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x294ca6([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function Fe(_0x775d29){return void 0x0!==_0x775d29['getRootsAttributes'];}async function N(_0xb5dded,_0x248790,_0x4ffe10){const _0x48d272=_0x1c3ca6(_0xb5dded,w);_0x48d272['plugins']['push'](p,D),_0x48d272['rootsAttributes']=Fe(_0xb5dded)?_0xb5dded['getRootsAttributes']():void 0x0;const _0x4229b4=document['createDocumentFragment'](),_0x3b3634=_0xb5dded['config']['get']('trackChangesData')['editorCreator'],_0x20fc6c=await _0x3b3634(_0x48d272,()=>function(_0x877dcd){const _0x1db0de=document['createElement']('div');return _0x877dcd['appendChild'](_0x1db0de),_0x1db0de;}(_0x4229b4));!function(_0x11faff,_0x411f4){const _0x3037c4=_0x11faff['model']['document']['getRootNames']()['reduce']((_0x216420,_0x123a49)=>(_0x216420[_0x123a49]=_0x11faff['data']['get']({'rootName':_0x123a49}),_0x216420),{}),_0x27e308=_0x11faff['plugins']['get']('Users')['users']['map'](_0x4af6fa=>({'id':_0x4af6fa['id'],'name':_0x4af6fa['name']})),_0x4e52cf=_0x11faff['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2dc79f=_0x11faff['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x374ced=_0x411f4['plugins']['get']('Users'),_0x368125=_0x411f4['plugins']['get']('TrackChangesEditing'),_0xc3f00c=_0x411f4['plugins']['get']('CommentsRepository');for(const _0x34c554 of _0xc3f00c['getCommentThreads']())_0x34c554['remove']();for(const _0x2184ae of _0x27e308)_0x374ced['getUser'](_0x2184ae['id'])||_0x374ced['addUser'](_0x2184ae);_0x374ced['me']||_0x374ced['useAnonymousUser']();for(const _0x1abedf of _0x2dc79f)_0xc3f00c['addCommentThread'](_0x1abedf);for(const _0xb64355 of _0x4e52cf)_0x368125['addSuggestionData'](_0xb64355);_0x411f4['data']['set'](_0x3037c4);}(_0xb5dded,_0x20fc6c),_0x20fc6c['execute'](_0x248790?'acceptAllSuggestions':'discardAllSuggestions');const _0x167201=Fe(_0x20fc6c)?_0x20fc6c['getFullData'](_0x4ffe10):_0x20fc6c['data']['get'](_0x4ffe10);return await _0x20fc6c['destroy'](),_0x167201;}class Me extends _0x3dfbdc{['options'];constructor(_0x18ce4d,_0x4cfa7b){super(_0x18ce4d),this['options']=_0x4cfa7b,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'](_0x28a2c3,_0x31c22f){if(!this['element'])return;const _0x43a920=[];for(const [_0x7113fe,_0x549dc7]of _0x28a2c3){const _0x453b15=document['createElement']('div');_0x453b15['setAttribute']('data-ck-root-name',_0x7113fe),_0x453b15['className']=_0x549dc7['classes']+'\x20ck-track-changes-preview__root-container',_0x453b15['innerHTML']=_0x549dc7['content'],_0x43a920['push'](_0x453b15);}_0x31c22f(this['element'],_0x43a920),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends Xt{constructor(_0x17bf43){super(_0x17bf43),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x1d63ca=this['editor'],_0x54e8d0=_0x1d63ca['locale'],_0xb46be5=_0x1d63ca['plugins']['get']('Dialog');let _0x3b231a;const _0xab492e=function(_0x49e3f2){const _0x3e656d={};if('editables'in _0x49e3f2['ui']['view']){for(const [_0x2eecc4,_0x531c1c]of Object['entries'](_0x49e3f2['ui']['view']['editables']))_0x3e656d[_0x2eecc4]=_0x531c1c['element'];}else _0x3e656d[_0x49e3f2['model']['document']['getRootNames']()[0x0]]=_0x49e3f2['ui']['view']['editable']['element'];return _0x3e656d;}(_0x1d63ca),_0x68f950=function(_0x3ab4c5){let _0x2f794c=0x0;for(const _0xfe0814 of Object['values'](_0x3ab4c5))_0x2f794c=Math['max'](_0x2f794c,_0xfe0814['getBoundingClientRect']()['width']);let _0x4b02bd=0x0;for(const _0x53f513 of Object['values'](_0x3ab4c5))_0x4b02bd+=_0x53f513['getBoundingClientRect']()['height'];const _0x5ff5c4=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x9ba954=Math['min'](_0x4b02bd,_0x5ff5c4);return{'width':_0x2f794c,'height':_0x9ba954};}(_0xab492e);_0xb46be5['show']({'id':'finalContentPreview','title':o(_0x54e8d0,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x54e8d0,{'dialogRects':_0x68f950}),'onHide':()=>{_0x3b231a['detachFromDom']();},'onShow':()=>{_0x1d63ca['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x5c9bd5=>{const _0x4db7ba=this['_standarizeRootsData'](_0x5c9bd5,_0x1d63ca,_0xab492e);_0xb46be5['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x4db7ba,_0x1d63ca['config']['get']('trackChanges.preview.renderFunction'));}),_0x3b231a=new _0x4d1af0(_0x54e8d0,[_0xb46be5['view']]),_0x3b231a['attachToDom'](),_0x3b231a['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x1d63ca['once']('destroy',()=>{_0x3b231a['detachFromDom']();});const _0x40def0=_0xb46be5['view']['headerView']['class'];_0xb46be5['view']['headerView']['class']=_0x40def0?_0x40def0+'\x20ck-reset_all':'ck-reset_all',_0xb46be5['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0xb46be5['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x2326ab=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x17f8dd=_0x2326ab['previewMode'],_0x25c593={};if('$labels'===_0x17f8dd){for(const _0x557c6e of _0x2326ab['getMergeFieldsIds']())_0x25c593[_0x557c6e]=_0x2326ab['getLabel'](_0x557c6e)||_0x557c6e;}else{const _0x24a23a='$defaultValues'===_0x17f8dd?_0x2326ab['getDefaultValues']():_0x2326ab['getDataSetValues'](_0x17f8dd,!0x0);for(const _0x5b28ba of Object['entries'](_0x24a23a)){const [_0x4649c9,_0x2dd735]=_0x5b28ba;_0x25c593[_0x4649c9]=null!==_0x2dd735?_0x2dd735:_0x2326ab['getLabel'](_0x4649c9)||_0x4649c9;}}return{'mergeFieldsData':_0x25c593};}['_standarizeRootsData'](_0x1e71df,_0x26154b,_0x4d4ca1){let _0x537c42;if('string'==typeof _0x1e71df){const _0x4c108f=_0x26154b['model']['document']['getRootNames']()[0x0];_0x537c42={[_0x4c108f]:_0x1e71df};}else _0x537c42=_0x1e71df;const _0x1d5289=this['_fixMediaEmbeds'](_0x537c42,_0x26154b),_0x129ea5=function(_0x376e06,_0x39c262){for(const [_0x231664,_0x503443]of _0x376e06)_0x503443['classes']=_0x39c262[_0x231664]['classList']['value']['replace']('ck-focused','');return _0x376e06;}(this['_sortRoots'](_0x26154b)['reduce']((_0x5dea50,_0x49904d)=>(_0x5dea50['push']([_0x49904d,{'content':_0x1d5289[_0x49904d],'classes':''}]),_0x5dea50),[]),_0x4d4ca1);return _0x129ea5;}['_fixMediaEmbeds'](_0x597321,_0x2a2e10){if(!_0x2a2e10['plugins']['has']('MediaEmbedEditing'))return _0x597321;const _0x30fc21=_0x2a2e10['plugins']['get']('MediaEmbedEditing');for(const [_0x102c39,_0x4bd83d]of Object['entries'](_0x597321)){const _0x2b613d=document['createElement']('div');_0x2b613d['innerHTML']=_0x4bd83d,(_0x2b613d['querySelectorAll']('figure.media')['forEach'](_0x5df4fb=>{const _0x4a893a=_0x5df4fb['querySelector']('oembed');if(_0x4a893a){const _0x1cbc28=_0x4a893a['getAttribute']('url');if(_0x1cbc28){const _0x25dba8=_0x30fc21['registry']['getMediaViewElement'](new _0x293891(_0x2a2e10['editing']['view']['document']),_0x1cbc28,{'elementName':'','renderForEditingView':!0x0}),_0x1128ec=document['createElement']('div');_0x1128ec['classList']['add']('ck-media__wrapper'),_0x25dba8['render'](_0x1128ec,_0x2a2e10['editing']['view']['domConverter']),_0x4a893a['replaceWith'](_0x1128ec);}}}),_0x597321[_0x102c39]=_0x2b613d['innerHTML']);}return _0x597321;}['_sortRoots'](_0x18e262){if(!function(_0x2eef0a){return void 0x0!==_0x2eef0a['getRootsAttributes'];}(_0x18e262))return _0x18e262['model']['document']['getRootNames']();const _0x5cb98d=[],_0xe927f2=new Map();for(const _0x4c2440 of _0x18e262['model']['document']['getRootNames']()){const _0x2d76ff=_0x18e262['editing']['view']['getDomRoot'](_0x4c2440)['getClientRects']()['item'](0x0);_0x5cb98d['push'](_0x4c2440),_0xe927f2['set'](_0x4c2440,_0x2d76ff);}return _0x5cb98d['sort']((_0x173cf8,_0x160db7)=>{const _0x177fae=_0xe927f2['get'](_0x173cf8),_0x299623=_0xe927f2['get'](_0x160db7);return _0x177fae['y']-_0x299623['y']||_0x177fae['x']-_0x299623['x'];}),_0x5cb98d;}}class te extends _0x5d703b{static get['requires'](){return[T,_0x12483d];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2cae34){super(_0x2cae34),_0x2cae34['commands']['add']('previewFinalContent',new re(this['editor'])),_0x2cae34['config']['define']('trackChanges.preview.renderFunction',(_0x8d2e04,_0x3d1a9b)=>{for(const _0x279142 of _0x3d1a9b)_0x8d2e04['appendChild'](_0x279142);});}}export{cs as BaseSuggestionThreadView,u as Suggestion,pe as SuggestionThreadView,fe as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
23
+ import{Command as Yt,Plugin as _0x441617,PendingActions as _0x182e37,icons as _0x527b57}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x5aa28e,ObservableMixin as _0xb3c3a1,uid as _0x1ece5b,priorities as _0x3d5167,insertToPriorityArray as _0x4ece0c,logWarning as _0x255893,getEnvKeystrokeText as _0x452b75,FocusTracker as _0x85aaa2,KeystrokeHandler as _0x1e13d7,Collection as _0xf97dcb}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x3b58ff,View as _0x5908fb,ViewCollection as _0x111720,FocusCycler as _0x24c7a1,ViewModel as _0x3d9297,createDropdown as _0x220812,SplitButtonView as _0x302371,addListToDropdown as _0x41f75a,MenuBarMenuView as _0x228501,MenuBarMenuListView as _0x80c8f7,ListSeparatorView as _0x4db66e,MenuBarMenuListItemView as _0x214a4d,MenuBarMenuListItemButtonView as _0x1ecba2,BodyCollection as _0x14366c,Dialog as _0x3a6f70}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x5d6ba8,hashObject as _0xfe0d22,surroundingMarkersDetector as _0x4d93ad,FOCUS_ANNOTATION_KEYSTROKE as _0xfe3140,AriaDescriptionView as _0x43f0b1,setupThreadKeyboardNavigation as _0x22cb5b,trimHtml as _0x4b909b,UserView as _0x52a494,LateFocusButtonView as _0x2564a7,getDateTimeFormatter as _0xd7b303,getAllMarkersDomElementsSorted as _0x4adfa6,sanitizeEditorConfig as _0x1cbbef}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x4f0742,LiveRange as _0x151380,LivePosition as _0x376056,DowncastWriter as _0x150e99}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x4460d9,toWidget as _0x26c207}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x4aa964,set as _0x544cee,isEqual as _0x431c16,unset as _0xcc503e,omit as Vt}from'lodash-es';import{Delete as _0x4ddc74,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x124fc5,ShiftEnter as _0x560f9e}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Yt{['_enabledCommands'];constructor(_0x2c7f56,_0x431fde){super(_0x2c7f56),this['_enabledCommands']=_0x431fde,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 _0x5f1370 of this['editor']['commands']['commands']())_0x5f1370['affectsData']&&!this['_enabledCommands']['has'](_0x5f1370)&&_0x5f1370['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x6cea61 of this['editor']['commands']['commands']())_0x6cea61['affectsData']&&!this['_enabledCommands']['has'](_0x6cea61)&&_0x6cea61['clearForceDisabled']('TrackChangesCommand');}}class O extends Yt{['_suggestions'];constructor(_0x1fbefe,_0x3451f2){super(_0x1fbefe),this['_suggestions']=_0x3451f2,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x792f2c){const _0x2c1721=this['_suggestions']['get'](_0x792f2c);if(!_0x2c1721)throw new _0x5aa28e('track-changes-accept-suggestion-not-found',this);const _0x51322e=_0x2c1721['getRanges']();this['editor']['model']['canEditAt'](_0x51322e)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x2c1721);}}class R extends Yt{['_suggestions'];constructor(_0x5d7210,_0x5044d8){super(_0x5d7210),this['_suggestions']=_0x5044d8,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2a34ec){const _0x32231b=this['_suggestions']['get'](_0x2a34ec);if(!_0x32231b)throw new _0x5aa28e('track-changes-discard-suggestion-not-found',this);const _0xd05120=_0x32231b['getRanges']();this['editor']['model']['canEditAt'](_0xd05120)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x32231b);}}function cs(_0x44c82d,_0x2bf277){let _0x104055='';return _0x104055+=_0x44c82d['split']('*')['map']((_0x79aacb,_0x2dccfa)=>_0x2dccfa%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x79aacb)+'</span>':nn(_0x79aacb))['join'](''),_0x2bf277&&(_0x104055+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x2bf277['value']+'\x22\x20title=\x22'+_0x2bf277['title']+'\x22></span>'),_0x104055;}function nn(_0x817ba){const _0x1983d4=document['createElement']('span');return _0x1983d4['innerText']=_0x817ba,_0x1983d4['innerHTML'];}function Zt(_0x4980db){return _0x4980db['sort']((_0xbca791,_0x1a66d5)=>'deletion'==_0xbca791['type']&&'deletion'!=_0x1a66d5['type']?-0x1:'deletion'!=_0xbca791['type']&&'deletion'==_0x1a66d5['type']?0x1:0x0);}function to(_0x26eefe,_0xf85230){let _0x4300fd,_0x60d410=0x0;const _0x4a8b1f=[],_0x380f10=_0xf85230['schema'];for(;_0x60d410<_0x26eefe['length'];){const _0x2e180b=_0x26eefe[_0x60d410],_0x55c06a=_0x26eefe[_0x60d410+0x1];_0x4300fd||(_0x4300fd=_0xf85230['createPositionBefore'](_0x2e180b)),on(_0xf85230,_0x2e180b,_0x55c06a)||(_0x4a8b1f['push'](_0xf85230['createRange'](_0x4300fd,_0x380f10['isObject'](_0x2e180b)?_0xf85230['createPositionAfter'](_0x2e180b):_0xf85230['createPositionAt'](_0x2e180b,'end'))),_0x4300fd=null),_0x60d410++;}return _0x4a8b1f;}function on(_0x48cc3c,_0x36b6bf,_0x379744){if(!_0x379744)return!0x1;const _0x22093a=_0x48cc3c['createPositionAfter'](_0x36b6bf),_0xe3a56f=_0x48cc3c['createPositionBefore'](_0x379744);return _0x22093a['isTouching'](_0xe3a56f);}function ts(_0x217337,_0x147368,_0x59a4e0){for(;_0x59a4e0['length'];){const _0x14f7a6=_0x59a4e0['splice'](0x0,0x64);_0x217337['change'](()=>{for(const _0x6567f2 of _0x14f7a6)_0x6567f2['isInContent']&&_0x147368['execute'](_0x6567f2['id']);});}}class x extends Yt{['_command'];['_suggestions'];constructor(_0x387166,_0x99ed86,_0x24c8c5){super(_0x387166),this['_command']=_0x99ed86,this['_suggestions']=_0x24c8c5,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x58b9fc=Array['from'](this['_suggestions']['values']())['some'](_0x395072=>_0x395072['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x58b9fc;}['execute'](){const _0x15e520=Zt(Array['from'](this['_suggestions']['values']()));for(const _0x241401 of _0x15e520){const _0x45bb68=_0x241401['getRanges']();if(!this['editor']['model']['canEditAt'](_0x45bb68))return;}ts(this['editor']['model'],this['_command'],_0x15e520);}}class E extends Yt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x4ec070,_0x2fd6ec,_0x55a68f){super(_0x4ec070),this['_command']=_0x2fd6ec,this['_suggestions']=_0x55a68f,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3f6588=this['editor']['model']['document']['selection'],_0x1c6782=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x14aafd,_0x545072){const _0x4af568=Array['from'](_0x14aafd['getRanges']()),_0xaabdb2=new Set();for(const _0x69b552 of _0x545072)if(_0x69b552['isInContent']){for(const _0xf79542 of _0x4af568)for(const _0x349498 of _0x69b552['getRanges']())(_0xf79542['isIntersecting'](_0x349498)||_0x14aafd['isCollapsed']&&!_0x69b552['isMultiRange']&&_0x69b552['next']&&_0x349498['end']['isTouching'](_0xf79542['start']))&&_0xaabdb2['add'](_0x69b552);}return _0xaabdb2;}(_0x3f6588,_0x1c6782),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0xad8d59=Zt(Array['from'](this['_selectedSuggestions']));for(const _0x5802e8 of _0xad8d59){const _0x25f073=_0x5802e8['getRanges']();if(!this['editor']['model']['canEditAt'](_0x25f073))return;}ts(this['editor']['model'],this['_command'],_0xad8d59);}}class u extends/* #__PURE__ -- @preserve */
24
+ _0xb3c3a1(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x16a265,_0x1ec130){super(),this['id']=_0x1ec130['id'],this['type']=_0x1ec130['type'],this['subType']=_0x1ec130['subType']||null,this['author']=_0x1ec130['author'],this['creator']=_0x1ec130['creator']||_0x1ec130['author'],this['isExternal']=Boolean(_0x1ec130['attributes']&&_0x1ec130['attributes']['@external']),this['data']=null,this['_model']=_0x16a265,this['_onAccept']=_0x1ec130['onAccept'],this['_onDiscard']=_0x1ec130['onDiscard'],this['_onAttributesChange']=_0x1ec130['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1ec130['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 _0x58cf2f=this;for(;_0x58cf2f['previous'];)_0x58cf2f=_0x58cf2f['previous'];return _0x58cf2f;}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'](_0x5b1acd){this['_markerNames']['add'](_0x5b1acd);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x3c6553=>this['_model']['markers']['get'](_0x3c6553))['filter'](_0x500099=>_0x500099);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x180641=>{for(const _0x37a41d of this['getMarkers']())_0x180641['removeMarker'](_0x37a41d);}),this['_markerNames']['clear']();}['removeMarker'](_0x42a2cf){this['_model']['change'](_0x2a8abf=>{_0x2a8abf['removeMarker'](_0x42a2cf);}),this['_markerNames']['delete'](_0x42a2cf);}['addRange'](_0x3f8d9c){const _0xa9985='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0xa9985),this['_model']['change'](_0x44b0ef=>{_0x44b0ef['addMarker'](_0xa9985,{'range':_0x3f8d9c,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x1ca92f){for(const _0x4a144a of this['getRanges']())if(_0x4a144a['isIntersecting'](_0x1ca92f))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x11ae61=>_0x11ae61['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x412376,_0x256290)=>[..._0x412376,..._0x256290['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x5ad0c9=this['getRanges']();if(0x1!=_0x5ad0c9['length'])return null;const _0x1b493a=_0x5ad0c9[0x0],_0x5238bc=_0x1b493a['start']['nodeAfter'],_0x4b58f0=_0x1b493a['end']['nodeBefore'];return _0x5238bc instanceof _0x4f0742?_0x5238bc!=_0x4b58f0?null:_0x5238bc: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 _0x28373a=[];let _0x34ba5a=this['head'];for(;_0x34ba5a;)_0x28373a['push'](_0x34ba5a),_0x34ba5a=_0x34ba5a['next'];return _0x28373a;}['setAttribute'](_0x451356,_0x5da266){const _0x22d974=_0x4aa964(this['attributes']);_0x544cee(_0x22d974,_0x451356,_0x5da266),_0x431c16(_0x22d974,this['attributes'])||(this['attributes']=_0x22d974,this['_onAttributesChange'](_0x22d974));}['removeAttribute'](_0x159ce2){const _0x119ea6=_0x4aa964(this['attributes']);_0xcc503e(_0x119ea6,_0x159ce2),_0x431c16(_0x119ea6,this['attributes'])||(this['attributes']=_0x119ea6,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 _0x1ece5b()['substr'](0x1,0x5);}}function o(_0x369569,_0x1b3d36,_0x3ebca0){const _0x6c2e69=_0x369569['t'],t=_0x369569['t'];switch(_0x1b3d36){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',_0x3ebca0);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x3ebca0);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x3ebca0);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x3ebca0);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x3ebca0);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',_0x3ebca0);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x3ebca0);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',_0x3ebca0);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x3ebca0);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x3ebca0);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x3ebca0);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x3ebca0);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x3ebca0);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x3ebca0);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x3ebca0);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x3ebca0);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x3ebca0);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x3ebca0);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x3ebca0);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x3ebca0);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x3ebca0);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x3ebca0);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x3ebca0);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x3ebca0);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'},_0x3ebca0);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x3ebca0);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x3ebca0);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x3ebca0);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x3ebca0);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x3ebca0);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'},_0x3ebca0);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x3ebca0);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x3ebca0);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x3ebca0);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x3ebca0);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'},_0x3ebca0);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x3ebca0);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'},_0x3ebca0);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'},_0x3ebca0);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x3ebca0);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'},_0x3ebca0);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x3ebca0);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'},_0x3ebca0);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x3ebca0);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x3ebca0);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'},_0x3ebca0);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x3ebca0);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 _0x6c2e69({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x3ebca0);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x6c2e69({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x3ebca0);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x3ebca0);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'},_0x3ebca0);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'},_0x3ebca0);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'},_0x3ebca0);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x1b3d36;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x5f5372,_0x3b3abe){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x5f5372,this['_locale']=_0x3b3abe;}['getDescriptions'](_0x4fe86d){const _0x357d0f=[],_0x376016=new Set(),_0x4865dc=new Set();for(let _0xd3d3bf=0x0;_0xd3d3bf<_0x4fe86d['length'];_0xd3d3bf++){const _0x2cd33a=_0x4fe86d[_0xd3d3bf];if(!_0x2cd33a['isInContent'])continue;const _0x33a7b6=this['_handleCustomCallbackDescription'](_0x2cd33a);if(_0x33a7b6){if(null!=_0x2cd33a['subType']){if(_0x376016['has'](_0x2cd33a['subType']))continue;_0x376016['add'](_0x2cd33a['subType']);}_0x357d0f['push'](_0x33a7b6);}else{if('attribute'!=_0x2cd33a['type'])'insertion'!=_0x2cd33a['type']&&'deletion'!=_0x2cd33a['type']||this['_handleInsertRemoveSuggestionDescription'](_0x357d0f,_0x2cd33a,_0x4fe86d[_0xd3d3bf+0x1]);else{const _0x36d560=_0x2cd33a['data']['key'];if(_0x4865dc['has'](_0x36d560))continue;_0x4865dc['add'](_0x2cd33a['data']['key']),_0x36d560==m?this['_handleRenameSuggestionDescription'](_0x357d0f,_0x2cd33a):this['_handleAttributeSuggestionDescription'](_0x357d0f,_0x2cd33a);}}}return this['_resolveDescriptionItems'](_0x357d0f);}['registerDescriptionCallback'](_0x4002df){this['_customCallbacks']['push'](_0x4002df);}['registerElementLabel'](_0x23e3d3,_0x38240c,_0x443863=_0x3d5167['normal']){'function'==typeof _0x23e3d3?_0x4ece0c(this['_itemLabelsCallbacks'],{'matchingCallback':_0x23e3d3,'label':_0x38240c,'priority':_0x443863}):this['_itemLabels']['set'](_0x23e3d3,_0x38240c);}['registerAttributeLabel'](_0x3dd35d,_0x484e29){this['_attributeLabels']['set'](_0x3dd35d,_0x484e29);}['getItemLabel'](_0x2d395f,_0x3884e9=0x1){let _0x4e6b2b;for(const _0x2c5526 of this['_itemLabelsCallbacks'])if(_0x2c5526['matchingCallback'](_0x2d395f)){_0x4e6b2b=_0x2c5526['label'];break;}return _0x4e6b2b||(_0x4e6b2b=this['_itemLabels']['get'](_0x2d395f['name'])),_0x4e6b2b?_0x4e6b2b(_0x3884e9):0x1!==_0x3884e9?_0x3884e9+'\x20'+_0x2d395f['name']+'s':''+_0x2d395f['name'];}['_addDescriptionItems'](_0x340255,_0x53e995){const _0x27cffc=_0x53e995['getFirstRange']()['getWalker'](),_0x3202cb='insertion'==_0x53e995['type']?'add':'remove';for(const _0xb37e91 of _0x27cffc){const _0x49d3fb=_0xb37e91['item'],_0x2cca2c=_0x340255[_0x340255['length']-0x1];if(_0x49d3fb['is']('$textProxy'))_0x2cca2c&&_0x2cca2c['type']['indexOf']('Container')>-0x1&&_0x340255['pop'](),_0x2cca2c&&'text'==_0x2cca2c['type']?_0x2cca2c[_0x3202cb]+=_0x49d3fb['data']:_0x340255['push']({'type':'text','add':'add'==_0x3202cb?_0x49d3fb['data']:'','remove':'remove'==_0x3202cb?_0x49d3fb['data']:''});else{if(this['_schema']['isObject'](_0x49d3fb)){const _0x2c8ac7=_0x49d3fb;if(_0x2cca2c&&_0x2cca2c['type']['indexOf']('Container')>-0x1&&_0x340255['pop'](),'elementEnd'==_0xb37e91['type'])continue;_0x2cca2c&&_0x2cca2c['type']==_0x3202cb+'Object'&&_0x2cca2c['element']['name']==_0x2c8ac7['name']?_0x2cca2c['quantity']++:_0x340255['push']({'type':_0x3202cb+'Object','element':_0x2c8ac7,'quantity':0x1}),_0x27cffc['skip'](_0x314b1a=>!('elementEnd'==_0x314b1a['type']&&_0x314b1a['item']==_0x49d3fb));}else{if(this['_schema']['checkChild'](_0x49d3fb,'$text')||_0x49d3fb['is']('element','softBreak')){const _0x2adb9e=_0x49d3fb;if('add'==_0x3202cb&&'elementStart'==_0xb37e91['type']||'remove'==_0x3202cb&&'elementEnd'==_0xb37e91['type'])continue;if(_0x2cca2c&&-0x1==_0x2cca2c['type']['indexOf']('Container')){'text'==_0x2cca2c['type']&&(_0x2cca2c[_0x3202cb]+='\x0a');continue;}let _0xac941e;if(_0xac941e='add'==_0x3202cb?_0x2adb9e['nextSibling']&&!this['_schema']['isObject'](_0x2adb9e['nextSibling'])?_0x2adb9e['nextSibling']:null:_0x2adb9e['previousSibling']&&!this['_schema']['isObject'](_0x2adb9e['previousSibling'])?_0x2adb9e['previousSibling']:null,_0x2adb9e['isEmpty']||_0xac941e&&_0xac941e['isEmpty']){const _0x24d23b=_0xac941e&&_0xac941e['isEmpty']?_0xac941e:_0x2adb9e;_0x2cca2c&&_0x2cca2c['type']==_0x3202cb+'EmptyContainer'&&_0x2cca2c['element']['name']==_0x24d23b['name']?_0x2cca2c['quantity']++:_0x340255['push']({'type':_0x3202cb+'EmptyContainer','element':_0x24d23b,'quantity':0x1});}else _0x340255['push']({'type':_0x3202cb+'Container','element':_0x2adb9e});}}}}}['_resolveDescriptionItems'](_0xc52386){const _0x139f74=this['_locale'],_0x22d1fe=[],_0x18ebfa=[],_0x5433ce=[];for(const _0x30dcdf of _0xc52386)switch(_0x30dcdf['type']){case'text':if(_0x30dcdf['add']=_0x30dcdf['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x30dcdf['remove']=_0x30dcdf['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x30dcdf['add']&&''!=_0x30dcdf['remove']){_0x22d1fe['push']({'type':'replace','content':o(_0x139f74,'REPLACE_TEXT',['\x22'+_0x30dcdf['remove']+'\x22','\x22'+_0x30dcdf['add']+'\x22'])});continue;}if(null!=_0x30dcdf['add']['match'](/^ +$/)){_0x22d1fe['push']({'type':'insertion','content':o(_0x139f74,'*Insert:*\x20%0',o(_0x139f74,'ELEMENT_SPACE',_0x30dcdf['add']['length']))});continue;}if(null!=_0x30dcdf['remove']['match'](/^ +$/)){_0x22d1fe['push']({'type':'deletion','content':o(_0x139f74,'*Remove:*\x20%0',o(_0x139f74,'ELEMENT_SPACE',_0x30dcdf['remove']['length']))});continue;}if(''!=_0x30dcdf['add']){_0x22d1fe['push']({'type':'insertion','content':o(_0x139f74,'*Insert:*\x20%0','\x22'+_0x30dcdf['add']+'\x22')});continue;}_0x22d1fe['push']({'type':'deletion','content':o(_0x139f74,'*Remove:*\x20%0','\x22'+_0x30dcdf['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x22d1fe['push']({'type':'insertion','content':o(_0x139f74,'*Insert:*\x20%0',this['getItemLabel'](_0x30dcdf['element'],_0x30dcdf['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x22d1fe['push']({'type':'deletion','content':o(_0x139f74,'*Remove:*\x20%0',this['getItemLabel'](_0x30dcdf['element'],_0x30dcdf['quantity']))});continue;case'addContainer':_0x22d1fe['push']({'type':'insertion','content':o(_0x139f74,'*Split:*\x20%0',this['getItemLabel'](_0x30dcdf['element'],_0x30dcdf['quantity']))});continue;case'removeContainer':_0x22d1fe['push']({'type':'deletion','content':o(_0x139f74,'*Merge:*\x20%0',this['getItemLabel'](_0x30dcdf['element'],_0x30dcdf['quantity']))});continue;case'addFormat':_0x18ebfa['push'](_0x30dcdf['key']);continue;case'removeFormat':_0x5433ce['push'](_0x30dcdf['key']);continue;default:_0x22d1fe['push'](_0x30dcdf);}if(_0x18ebfa['length']){const _0x295ae5=_0x18ebfa['map'](_0x1e034d=>this['_attributeLabels']['has'](_0x1e034d)?this['_attributeLabels']['get'](_0x1e034d):_0x1e034d)['join'](',\x20');_0x22d1fe['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x295ae5)});}if(_0x5433ce['length']){const _0x3b9653=_0x5433ce['map'](_0x229ada=>this['_attributeLabels']['has'](_0x229ada)?this['_attributeLabels']['get'](_0x229ada):_0x229ada)['join'](',\x20');_0x22d1fe['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x3b9653)});}return _0x22d1fe;}['_handleCustomCallbackDescription'](_0x264aee){for(const _0x20fe6b of this['_customCallbacks']){const _0x412062=_0x20fe6b(_0x264aee);if(_0x412062&&'type'in _0x412062)return _0x412062;}}['_handleAttributeSuggestionDescription'](_0x34299a,_0x500a7d){const _0xf62e34=_0x500a7d['data'],_0x7cc967=void 0x0===_0xf62e34['newValue']?'removeFormat':'addFormat';_0x34299a['push']({'type':_0x7cc967,'key':_0xf62e34['key']});}['_handleRenameSuggestionDescription'](_0x6e9b59,_0x36034c){_0x6e9b59['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x36034c['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x3eb2fe,_0x3ff940,_0x51127b){if(this['_addDescriptionItems'](_0x3eb2fe,_0x3ff940),_0x51127b&&_0x51127b['getFirstRange']()&&!_0x3ff940['getFirstRange']()['end']['isEqual'](_0x51127b['getFirstRange']()['start'])){const _0x116406=_0x3eb2fe[_0x3eb2fe['length']-0x1],_0x25d51a='insertion'==_0x3ff940['type']?'add':'remove';_0x116406&&'text'==_0x116406['type']&&(_0x116406[_0x25d51a]+='\x0a');}}}class U extends _0x441617{['afterInit'](){const _0x44fed9=this['editor'],_0x52723c=_0x44fed9['plugins']['get']('TrackChangesEditing');_0x44fed9['commands']['get']('showAIAssistant')&&_0x52723c['enableCommand']('showAIAssistant');}}class V extends _0x441617{['afterInit'](){const _0x7684cb=this['editor'],_0x21835f=_0x7684cb['locale'];if(!_0x7684cb['plugins']['has']('AlignmentEditing'))return;const _0x1276e1=_0x7684cb['plugins']['get']('TrackChangesEditing');_0x1276e1['enableDefaultAttributesIntegration']('alignment'),_0x1276e1['registerBlockAttribute']('alignment'),_0x1276e1['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x21835f,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x24ff55=this['editor'],_0x2aec2b=_0x24ff55['locale'];_0x24ff55['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x326b03=>{if('formatBlock'!=_0x326b03['type'])return;const {data:_0x2f6d35}=_0x326b03;if(_0x2f6d35&&'alignment'==_0x2f6d35['commandName']){const _0x2bd7fd=_0x2f6d35['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x2aec2b,'*Format:*\x20%0',function(_0x5c5b05){switch(_0x5c5b05){case'left':return o(_0x2aec2b,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x2aec2b,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x2aec2b,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x2aec2b,'FORMAT_JUSTIFY_TEXT');}}(_0x2bd7fd))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x441617{['afterInit'](){const _0xd97a9e=this['editor'],_0x538376=_0xd97a9e['plugins']['get']('TrackChangesEditing'),_0x26c0c7=_0xd97a9e['locale'];for(const _0x1316d7 of ti){if(!_0xd97a9e['plugins']['has'](_0x1316d7))continue;const _0x50dae9=_0x1316d7['slice'](0x0,-0x7)['toLowerCase'](),_0x48f836='FORMAT_'+_0x50dae9['toUpperCase']();_0x538376['enableDefaultAttributesIntegration'](_0x50dae9),_0x538376['registerInlineAttribute'](_0x50dae9),_0x538376['descriptionFactory']['registerAttributeLabel'](_0x50dae9,o(_0x26c0c7,_0x48f836));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x180aee=this['editor'],_0x522583=_0x180aee['locale'],_0x3275f4=_0x180aee['plugins']['get']('TrackChangesEditing');function _0x145a51(_0x382765,_0x4bc0c5){_0x3275f4['descriptionFactory']['registerDescriptionCallback'](_0x18fdf1=>{if('formatInline'!=_0x18fdf1['type'])return;const {data:_0xeb85cc}=_0x18fdf1;return _0xeb85cc&&_0xeb85cc['commandName']===_0x382765?_0xeb85cc['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x522583,'*Format:*\x20%0',_0x4bc0c5)}:{'type':'format','content':o(_0x522583,'*Remove\x20format:*\x20%0',_0x4bc0c5)}:void 0x0;});}_0x145a51('bold',o(_0x522583,'FORMAT_BOLD')),_0x145a51('italic',o(_0x522583,'FORMAT_ITALIC')),_0x145a51('underline',o(_0x522583,'FORMAT_UNDERLINE')),_0x145a51('code',o(_0x522583,'FORMAT_CODE')),_0x145a51('strikethrough',o(_0x522583,'FORMAT_STRIKETHROUGH')),_0x145a51('subscript',o(_0x522583,'FORMAT_SUBSCRIPT')),_0x145a51('superscript',o(_0x522583,'FORMAT_SUPERSCRIPT'));}}class F extends _0x441617{['afterInit'](){const _0x4078d3=this['editor'],_0x3bf0d5=_0x4078d3['locale'];if(!_0x4078d3['plugins']['has']('BlockQuoteEditing'))return;const _0x25b067=_0x4078d3['plugins']['get']('TrackChangesEditing'),_0x2a2e0a=this['editor']['commands']['get']('blockQuote');_0x25b067['enableCommand']('blockQuote',(_0x4bd49a,_0x256a25={})=>{const _0x1b9829=this['editor']['model']['document']['selection'],_0x4d7cc6=_0x256a25&&void 0x0!==_0x256a25['forceValue']?_0x256a25['forceValue']:!_0x2a2e0a['value'];let _0x17e403=[];if(_0x4d7cc6){const _0x19cde4=Array['from'](_0x1b9829['getSelectedBlocks']())['filter'](_0x292413=>oo(_0x292413)||function(_0x46e41a,_0x12467e){const _0x492385=_0x12467e['checkChild'](_0x46e41a['parent'],'blockQuote'),_0x2e60e4=_0x12467e['checkChild'](['$root','blockQuote'],_0x46e41a);return _0x492385&&_0x2e60e4;}(_0x292413,this['editor']['model']['schema']));_0x17e403=to(_0x19cde4,_0x4078d3['model']);}else{const _0x14c5df=Array['from'](_0x1b9829['getSelectedBlocks']())['filter'](_0x5bd485=>oo(_0x5bd485));_0x17e403=to(_0x14c5df,_0x4078d3['model']);}_0x4078d3['model']['change'](()=>{for(const _0x5d5a03 of _0x17e403)_0x25b067['markBlockFormat'](_0x5d5a03,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x4d7cc6}]});});}),_0x25b067['descriptionFactory']['registerDescriptionCallback'](_0x4eecc5=>{const {data:_0x1c2246}=_0x4eecc5;if(_0x1c2246&&'blockQuote'==_0x1c2246['commandName']){const _0x1bc835=o(_0x3bf0d5,'ELEMENT_BLOCK_QUOTE');return _0x1c2246['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3bf0d5,'*Set\x20format:*\x20%0',_0x1bc835)}:{'type':'format','content':o(_0x3bf0d5,'*Remove\x20format:*\x20%0',_0x1bc835)};}});}}function oo(_0x42b303){return'blockQuote'==_0x42b303['parent']['name'];}class L extends _0x441617{['afterInit'](){const _0x4039ff=this['editor'],_0x4d7448=_0x4039ff['locale'],_0x47e595=_0x4039ff['plugins']['get']('TrackChangesEditing');_0x4039ff['plugins']['has']('BookmarkEditing')&&(_0x47e595['enableCommand']('insertBookmark'),_0x47e595['enableDefaultAttributesIntegration']('updateBookmark'),_0x47e595['registerBlockAttribute']('bookmarkId'),_0x47e595['descriptionFactory']['registerDescriptionCallback'](_0x4a1c3c=>{if('insertion'!=_0x4a1c3c['type']&&'deletion'!=_0x4a1c3c['type']&&'attribute'!=_0x4a1c3c['type'])return;const _0x18ae8c=_0x4a1c3c['getContainedElement']();if(null==_0x18ae8c)return;if(!_0x18ae8c['is']('element','bookmark'))return;const _0xd14c9d=_0x18ae8c['getAttribute']('bookmarkId');if('insertion'==_0x4a1c3c['type'])return{'type':'insertion','content':o(_0x4d7448,'*Insert:*\x20%0','\x22'+_0xd14c9d+'\x22\x20'+o(_0x4d7448,'ELEMENT_BOOKMARK'))};if('deletion'==_0x4a1c3c['type'])return{'type':'deletion','content':o(_0x4d7448,'*Remove:*\x20%0','\x22'+_0xd14c9d+'\x22\x20'+o(_0x4d7448,'ELEMENT_BOOKMARK'))};const {data:_0x7d35d4}=_0x4a1c3c;if(!_0x7d35d4||'bookmarkId'!=_0x7d35d4['key'])return;return{'type':'format','content':o(_0x4d7448,'*Set\x20bookmark:*\x20%0','\x22'+_0x7d35d4['newValue']+'\x22')};}));}}class J extends _0x441617{['afterInit'](){const _0x40be09=this['editor'];_0x40be09['plugins']['has']('CaseChange')&&(_0x40be09['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x40be09['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x40be09['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x441617{['afterInit'](){const _0x423df2=this['editor'];_0x423df2['commands']['get']('ckbox')&&_0x423df2['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x441617{['afterInit'](){const _0x3d4c1d=this['editor'];if(!_0x3d4c1d['plugins']['has']('CodeBlock'))return;const _0x436d4d=_0x3d4c1d['plugins']['get']('TrackChangesEditing'),_0x3f1df9=_0x3d4c1d['locale'],_0x3f3bdd=_0x3d4c1d['config']['get']('codeBlock')['languages'],_0x1a6802=_0x3d4c1d['commands']['get']('codeBlock');_0x436d4d['enableCommand']('indentCodeBlock'),_0x436d4d['enableCommand']('outdentCodeBlock'),_0x436d4d['enableCommand']('codeBlock',(_0x51c3dd,_0x303eba={})=>{const _0x53b24f=_0x3d4c1d['model'],_0x51e7a1=_0x3d4c1d['model']['document']['selection'],_0x48a757=_0x303eba&&void 0x0!==_0x303eba['forceValue']?_0x303eba['forceValue']:!_0x1a6802['value'];let _0x566966;_0x303eba['language']||(_0x303eba['language']=_0x3f3bdd[0x0]['language']),_0x566966=_0x48a757?Array['from'](_0x51e7a1['getSelectedBlocks']())['filter'](_0x31e230=>eo(_0x31e230)||function(_0x447ed4,_0x4bcdc1){if(_0x447ed4['is']('rootElement')||_0x4bcdc1['isLimit'](_0x447ed4))return!0x1;return _0x4bcdc1['checkChild'](_0x447ed4['parent'],'codeBlock');}(_0x31e230,_0x53b24f['schema'])):Array['from'](_0x51e7a1['getSelectedBlocks']())['filter'](_0x5b7082=>eo(_0x5b7082));const _0x567414=to(_0x566966,_0x53b24f);_0x53b24f['change'](()=>{for(const _0x69c59c of _0x567414)_0x436d4d['markBlockFormat'](_0x69c59c,{'commandName':'codeBlock','commandParams':[{..._0x303eba,'forceValue':_0x48a757}],'formatGroupId':'blockName'});});}),(_0x436d4d['descriptionFactory']['registerElementLabel']('codeBlock',_0x4ca494=>o(_0x3f1df9,'ELEMENT_CODE_BLOCK',_0x4ca494)),_0x436d4d['descriptionFactory']['registerDescriptionCallback'](_0x1ea99a=>{if('formatBlock'!=_0x1ea99a['type'])return;const _0x1cb1ce=_0x3f1df9['t'],{data:_0x233a74}=_0x1ea99a;if(!_0x233a74||'codeBlock'!=_0x233a74['commandName'])return;const _0x592fd1=_0x233a74['commandParams'][0x0]['language'],_0x1a51f0=_0x1cb1ce(_0x3f3bdd['find'](_0x4ab2a2=>_0x4ab2a2['language']===_0x592fd1)['label'])['toLowerCase']();return _0x233a74['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3f1df9,'*Set\x20format:*\x20%0',o(_0x3f1df9,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x1a51f0+')')}:{'type':'format','content':o(_0x3f1df9,'*Remove\x20format:*\x20%0',o(_0x3f1df9,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x1e598c){return'codeBlock'==_0x1e598c['name'];}class z extends _0x441617{['afterInit'](){const _0x1bc592=this['editor'];if(!_0x1bc592['plugins']['has']('CommentsEditing'))return;_0x1bc592['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x3edae0,_0x2982c4,_0xc9925d){const _0x1d0e2b=[];for(const _0xf6de0d of _0x2982c4['getItems']())_0xf6de0d['hasAttribute'](_0x3edae0)&&_0x1d0e2b['push'](_0xc9925d['createRangeOn'](_0xf6de0d));return _0x1d0e2b;}function De(_0x1a9e81,_0x2a9523,{showActiveMarker:_0x4e78a3=!0x0}={}){const _0x403c76=_0x1a9e81['plugins']['get']('TrackChangesEditing');return(_0x11f07e,_0x2dc126,_0x324194)=>{if(!_0x324194['consumable']['test'](_0x2dc126['markerRange'],_0x11f07e['name']))return;const _0x45a629=_0x2dc126['markerRange']['getWalker'](),_0x46e256=_0x2dc126['markerRange']['start'],_0x15ea4e=_0x1a9e81['model']['schema'];let _0x505c0a=null,_0x2f2072=null,_0x47369e=!0x1,_0x1aaf56=!0x1;for(const _0x29576b of _0x45a629){const _0x2874cc=_0x29576b['item'];_0x47369e=_0x47369e||_0x15ea4e['isContent'](_0x2874cc);const _0x488fe2=_0x324194['mapper']['toViewElement'](_0x2874cc);if(_0x488fe2&&_0x488fe2['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x29576b['type']&&(_0x15ea4e['isBlock'](_0x2874cc)&&!_0x15ea4e['isLimit'](_0x2874cc)&&(_0x2874cc['nextSibling']||_0x46e256['isAtEnd']?_0x505c0a&&_0x505c0a['parent']==_0x2874cc||(_0x505c0a=_0x2874cc,_0x55bb16(_0x29576b['previousPosition']),_0x1aaf56=!0x0):_0x2f2072=_0x2f2072||_0x29576b['previousPosition']));}function _0x55bb16(_0x304544){const {authorId:_0x5b00e8}=_0x403c76['_splitMarkerName'](_0x2dc126['markerName']),_0x10d63e=_0x324194['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2a9523,'data-author-id':_0x5b00e8}),_0x23795b=_0x324194['mapper']['toViewPosition'](_0x304544);_0x4e78a3&&_0x403c76['activeMarkers']['includes'](_0x2dc126['markerName'])&&_0x324194['writer']['addClass']('ck-suggestion-marker--active',_0x10d63e),_0x324194['writer']['insert'](_0x23795b,_0x10d63e),_0x324194['mapper']['bindElementToMarker'](_0x10d63e,_0x2dc126['markerName']);}_0x47369e||_0x1aaf56||!_0x2f2072||_0x55bb16(_0x2f2072);};}class K extends _0x441617{static get['requires'](){return[_0x4ddc74];}['init'](){const _0xda16c2=this['editor'],_0x1e8d6c=_0xda16c2['plugins']['get']('TrackChangesEditing');_0x1e8d6c['enableCommand']('delete');const _0x5d02e2=_0xda16c2['commands']['get']('deleteForward');_0x1e8d6c['enableCommand']('deleteForward',(_0x4eb2a8,_0x223b6d={})=>{const _0x478873=_0xda16c2['model']['createSelection'](_0xda16c2['model']['document']['selection']);_0x478873['isCollapsed']&&_0xda16c2['model']['modifySelection'](_0x478873,{'direction':'forward','unit':_0x223b6d['unit']});const _0x47f8bd=_0x478873['getFirstRange'](),_0x4958af=_0x151380['fromRange'](_0x47f8bd);let _0x27b10a;_0x4eb2a8(_0x223b6d),_0x27b10a='$graveyard'==_0x4958af['root']['rootName']?_0xda16c2['model']['createRange'](_0x47f8bd['start']):_0xda16c2['model']['createRange'](_0x4958af['start'],_0x4958af['end']),_0x4958af['detach'](),_0xda16c2['model']['enqueueChange'](_0x5d02e2['buffer']['batch'],_0x54f06a=>{_0x5d02e2['buffer']['lock'](),_0x54f06a['setSelection'](_0x54f06a['createRange'](_0x27b10a['end'])),_0x5d02e2['buffer']['unlock']();});}),_0xda16c2['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0xda16c2,'merge'),{'priority':'high'}),_0xda16c2['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x10fa3f,_0x51ca9d,_0x3e38cf)=>{_0x3e38cf['options']['showSuggestionHighlights']&&De(_0xda16c2,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x10fa3f,_0x51ca9d,_0x3e38cf);},{'priority':'high'}),_0xda16c2['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x377203,_0x5d28d9,_0x15c2bd)=>{const _0x3a4b9d=_0x15c2bd['mapper']['markerNameToElements'](_0x5d28d9['markerName']);if(_0x3a4b9d){for(const _0x5dc4f3 of _0x3a4b9d)_0x5dc4f3['is']('uiElement')&&(_0x15c2bd['mapper']['unbindElementFromMarkerName'](_0x5dc4f3,_0x5d28d9['markerName']),_0x15c2bd['writer']['remove'](_0x5dc4f3));}},{'priority':'high'});}}class W extends _0x441617{['afterInit'](){const _0x137348=this['editor'];if(!_0x137348['plugins']['has']('ListEditing'))return;const _0x3e26cd=_0x137348['locale'],_0x537bb4=_0x137348['plugins']['get']('TrackChangesEditing'),_0x56a7d5=_0x137348['plugins']['has']('TodoListEditing'),_0x3cfdfb=!!_0x137348['config']['get']('list.multiBlock');function _0x27fc20(_0x48b8b7){return{'type':'format','content':''+o(_0x3e26cd,'*Set\x20format:*\x20%0',_0x48b8b7)};}function _0x2116d5(_0x342df9){return{'type':'format','content':''+o(_0x3e26cd,'*Remove\x20format:*\x20%0',_0x342df9)};}_0x537bb4['enableDefaultAttributesIntegration']('numberedList'),_0x537bb4['enableDefaultAttributesIntegration']('bulletedList'),_0x537bb4['enableDefaultAttributesIntegration']('customNumberedList'),_0x537bb4['enableDefaultAttributesIntegration']('customBulletedList'),_0x537bb4['enableDefaultAttributesIntegration']('indentList'),_0x537bb4['enableDefaultAttributesIntegration']('outdentList'),_0x537bb4['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x537bb4['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x537bb4['registerBlockAttribute']('listItemId'),_0x537bb4['registerBlockAttribute']('listType'),_0x537bb4['registerBlockAttribute']('listIndent'),_0x3cfdfb&&(_0x537bb4['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x537bb4['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x56a7d5&&(_0x537bb4['enableDefaultAttributesIntegration']('todoList'),_0x537bb4['enableDefaultAttributesIntegration']('checkTodoList'),_0x537bb4['registerBlockAttribute']('todoListChecked'),_0x537bb4['descriptionFactory']['registerDescriptionCallback'](_0xbc78f5=>{const {data:_0x1f3dfe}=_0xbc78f5;if(_0x1f3dfe&&'todoListChecked'==_0x1f3dfe['key'])return{'type':'format','content':_0x1f3dfe['newValue']?o(_0x3e26cd,'*Check\x20item*'):o(_0x3e26cd,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x55ce08=>{if(_0x55ce08['batch']['isUndo'])return!0x1;let _0x2665d1=!0x1;const _0x5b0e08=_0x537bb4['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x213fd1=>'todoListChecked'===_0x537bb4['_getAttributeKey'](_0x213fd1));for(const _0x3e095d of _0x5b0e08){'todo'!=_0x3e095d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x537bb4['_findSuggestions'](_0x3e095d['getFirstRange'](),'attribute')['find'](_0x27ceff=>'listType'===_0x537bb4['_getAttributeKey'](_0x27ceff['suggestion']))||(_0x55ce08['removeMarker'](_0x3e095d['getFirstMarker']()),_0x2665d1=!0x0));}return _0x2665d1;})),_0x537bb4['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x3e26cd,'FORMAT_INDENT'));const _0x2ef10d={'type':'format','content':''};_0x537bb4['descriptionFactory']['registerDescriptionCallback'](_0x3318cf=>{const {data:_0x49cfb5}=_0x3318cf;if(!_0x49cfb5||'listType'!=_0x49cfb5['key'])return;let _0x1d5371=_0x3318cf['head'];for(;_0x1d5371;){if(_0x1d5371['data']&&(('listStyle'==_0x1d5371['data']['key']||'listMarkerStyle'==_0x1d5371['data']['key'])&&(_0x1d5371['data']['newValue']&&'default'!=_0x1d5371['data']['newValue']||'default'!=_0x1d5371['data']['oldValue']&&!_0x49cfb5['newValue'])||!_0x3cfdfb&&_0x1d5371['data']['key']==m))return _0x2ef10d;_0x1d5371=_0x1d5371['next'];}if(null==_0x49cfb5['newValue'])switch(_0x49cfb5['oldValue']){case'bulleted':return _0x2116d5(o(_0x3e26cd,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2116d5(o(_0x3e26cd,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2116d5(o(_0x3e26cd,'ELEMENT_TODO_LIST'));}switch(_0x49cfb5['newValue']){case'bulleted':return _0x27fc20(o(_0x3e26cd,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x27fc20(o(_0x3e26cd,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x27fc20(o(_0x3e26cd,'ELEMENT_TODO_LIST'));}}),_0x537bb4['descriptionFactory']['registerDescriptionCallback'](_0x22a398=>{const {data:_0x58b7de}=_0x22a398;if(_0x58b7de&&'listIndent'==_0x58b7de['key'])return null==_0x58b7de['newValue']||null==_0x58b7de['oldValue']&&0x0==_0x58b7de['newValue']?_0x2ef10d:void 0x0;}),_0x537bb4['descriptionFactory']['registerDescriptionCallback'](_0x3ba3b2=>{if('attribute'!=_0x3ba3b2['type'])return;const {data:_0x3ffa4a}=_0x3ba3b2;if(!_0x3ffa4a||'listItemId'!=_0x3ffa4a['key'])return;const _0x369275=Te(_0x3ba3b2);return'newValue'==_0x369275?{'type':'format','content':o(_0x3e26cd,'*Merge:*\x20list\x20item')}:'oldValue'==_0x369275?{'type':'format','content':o(_0x3e26cd,'*Split:*\x20list\x20item')}:_0x2ef10d;}),_0x137348['model']['document']['registerPostFixer'](_0x3a0d92=>this['listItemIdFixer'](_0x3a0d92)),_0x137348['model']['document']['registerPostFixer'](_0x36a3a9=>this['noTrackChangesFixer'](_0x36a3a9)),_0x137348['model']['document']['on']('change:data',(_0x33d4d5,_0x48fbf7)=>{if(_0x48fbf7['isUndo']||!_0x48fbf7['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x5e7d60){if(_0x5e7d60['batch']['isUndo']||!_0x5e7d60['batch']['isLocal'])return!0x1;let _0x52cf29=!0x1;const _0x582b81=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x48a652=>_0x48a652['data']&&'listItemId'==_0x48a652['data']['key'])['filter'](_0x3c8886=>_0x3c8886['data']['newValue']&&_0x3c8886['data']['oldValue']);for(const _0x915b11 of _0x582b81)Te(_0x915b11)||(_0x5e7d60['removeMarker'](_0x915b11['getFirstMarker']()),_0x52cf29=!0x0);return _0x52cf29;}['noTrackChangesFixer'](_0x5b904c){if(_0x5b904c['batch']['isUndo']||!_0x5b904c['batch']['isLocal'])return!0x1;const _0x28a4f5=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x28a4f5['trackChangesCommand']['value'])return!0x1;let _0x472a88=!0x1;const _0xfbc5af=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x84b35d=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x40743b=>'attribute'==_0x40743b['type'])['filter'](_0x4fcb54=>_0xfbc5af['includes'](_0x4fcb54['attributeKey']));if(0x0==_0x84b35d['length'])return _0x472a88;for(const _0x45c13e of _0x84b35d){const _0x1c1b47=_0x28a4f5['_findSuggestions'](_0x45c13e['range'],'attribute')['filter'](_0x5a47e5=>!_0x5a47e5['meta']['isNextTo'])['map'](_0x1bb673=>_0x1bb673['suggestion'])['filter'](_0x17c427=>{const _0x3a22ec=_0x28a4f5['_getAttributeKey'](_0x17c427);return _0xfbc5af['includes'](_0x3a22ec);});if(_0x1c1b47['length']){for(const _0x41314b of _0x1c1b47)_0x5b904c['removeMarker'](_0x41314b['getFirstMarker']());_0x472a88=!0x0;}}return _0x472a88;}['assureChains'](){const _0x3b9d51=this['editor']['plugins']['get']('TrackChangesEditing'),_0x51dbd9=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x5cdfbb;const _0x31cb1c=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x20f971=>{if(_0x20f971['data']['oldRange']||!_0x20f971['data']['newRange'])return null;if(!_0x20f971['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x3feb1f}=_0x3b9d51['_splitMarkerName'](_0x20f971['name']);if(!_0x3b9d51['hasSuggestion'](_0x3feb1f))return null;const _0x50490b=_0x3b9d51['getSuggestion'](_0x3feb1f);return _0x51dbd9['includes'](_0x50490b['data']['key']);})['map'](_0xe16fea=>{const {id:_0x5ad5af}=_0x3b9d51['_splitMarkerName'](_0xe16fea['name']),_0x47107a=_0x3b9d51['getSuggestion'](_0x5ad5af);return _0x5cdfbb=_0x47107a['attributes']['groupId'],_0x47107a['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x31cb1c['size'])return;const _0x44494d=_0x3b9d51['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x27d1ab=>'attribute'==_0x27d1ab['type']&&_0x27d1ab['data']&&_0x51dbd9['includes'](_0x27d1ab['data']['key'])&&_0x27d1ab['attributes']['groupId']!=_0x5cdfbb)['map'](_0x1d1c41=>({'listItem':_0x1d1c41['getFirstRange']()['start']['nodeAfter'],'groupId':_0x1d1c41['attributes']['groupId']})),_0x12243a=new Set();for(const {groupId:_0x17b147,listItem:_0x3eb132}of _0x44494d)_0x31cb1c['has'](_0x3eb132)&&_0x12243a['add'](_0x17b147);for(const _0x3e53e4 of _0x3b9d51['getSuggestions']())_0x12243a['has'](_0x3e53e4['attributes']['groupId'])&&_0x3e53e4['setAttribute']('groupId',_0x5cdfbb);}['_supportLegacySuggestions'](){const _0x1493f6=this['editor'],_0x3a9475=_0x1493f6['locale'],_0x6019e=_0x1493f6['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x6019e['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x3daf4d,_0x4ff7f8){const _0xae48e0=[];for(let _0x255d29 of _0x3daf4d)_0x255d29['start']['nodeAfter']===_0x255d29['end']['parent']&&(_0x255d29=_0x1493f6['model']['createRange'](_0x1493f6['model']['createPositionAt'](_0x255d29['start']['nodeAfter'],0x0))),_0xae48e0['push'](_0x255d29);_0x1493f6['model']['change'](_0x1d1704=>{const _0x4c432b=_0x1493f6['model']['document']['selection'],_0x4be57e=Array['from'](_0x4c432b['getRanges']())['map'](_0x2774e9=>_0x151380['fromRange'](_0x2774e9));_0x1d1704['setSelection'](_0xae48e0),_0x1493f6['commands']['get'](_0x4ff7f8['commandName'])['refresh'](),_0x4ff7f8['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x1493f6['execute'](_0x4ff7f8['commandName'],..._0x4ff7f8['commandParams']),_0x1d1704['setSelection'](_0x4be57e);for(const _0x1864e4 of _0x4be57e)_0x1864e4['detach']();});}),_0x6019e['descriptionFactory']['registerElementLabel'](function(_0x309742){const _0x57be36=!_0x1493f6['model']['schema']['isObject'](_0x309742),_0xa19656=_0x309742['previousSibling'],_0x2947a5=_0x309742['nextSibling'],_0xc2ff49=_0x309742['getAttribute']('listItemId'),_0x21cece=!_0xa19656||_0xa19656['getAttribute']('listItemId')!==_0xc2ff49,_0x1187d8=!_0x2947a5||_0x2947a5['getAttribute']('listItemId')!==_0xc2ff49;return _0x57be36&&Boolean(_0xc2ff49)&&_0x21cece&&_0x1187d8;},_0x150f25=>o(_0x3a9475,'ELEMENT_LIST_ITEM',_0x150f25));}['_registerLegacyDescription'](){const _0x2c0e9e=this['editor'],_0x12c4ce=_0x2c0e9e['locale'];function _0x528d33(_0x6a2e33){const _0x1f404=_0x2c0e9e['commands']['get']('bulletedList')['value'],_0x1d3ba3=_0x2c0e9e['commands']['get']('numberedList')['value'];return'numberedList'===_0x6a2e33?_0x1f404:_0x1d3ba3;}_0x2c0e9e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x470151){if('formatBlock'!=_0x470151['type'])return;const {data:_0x632c35}=_0x470151;if(!_0x632c35)return;let _0x2f5bc3,_0x20e81b,_0x51a414,_0x4dba14;switch(_0x632c35['commandName']){case'bulletedList':_0x51a414=_0x632c35['commandParams'][0x0]['forceValue'],_0x4dba14=_0x528d33(_0x632c35['commandName']),_0x2f5bc3=_0x51a414?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4dba14&&_0x2c0e9e['config']['get']('list.multiBlock')||(_0x2f5bc3='*Change\x20to:*\x20%0'),_0x20e81b={'type':'format','content':o(_0x12c4ce,_0x2f5bc3,o(_0x12c4ce,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x51a414=_0x632c35['commandParams'][0x0]['forceValue'],_0x4dba14=_0x528d33(_0x632c35['commandName']),_0x2f5bc3=_0x51a414?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4dba14&&_0x2c0e9e['config']['get']('list.multiBlock')||(_0x2f5bc3='*Change\x20to:*\x20%0'),_0x20e81b={'type':'format','content':o(_0x12c4ce,_0x2f5bc3,o(_0x12c4ce,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x2f5bc3='*Indent:*\x20%0',_0x20e81b={'type':'format','content':o(_0x12c4ce,_0x2f5bc3,o(_0x12c4ce,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x2f5bc3=function(_0x5b0d48){const _0x373715=_0x5b0d48['getFirstRange']();let _0x464ac0=_0x373715['start']['nodeAfter'];for(;_0x464ac0&&_0x373715['containsItem'](_0x464ac0);){if(_0x464ac0['getAttribute']('listIndent')>0x0)return!0x1;_0x464ac0=_0x464ac0['nextSibling'];}return!0x0;}(_0x470151)?o(_0x12c4ce,'*Format:*\x20remove\x20from\x20%0',o(_0x12c4ce,function(_0x37cb80){return'ELEMENT_'+_0x37cb80['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x470151))):o(_0x12c4ce,'*Outdent:*\x20%0',o(_0x12c4ce,'ELEMENT_LIST_ITEM')),_0x20e81b={'type':'format','content':_0x2f5bc3};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x632c35['multipleBlocks']&&(_0x2f5bc3='*Merge:*\x20%0',_0x20e81b={'type':'deletion','content':o(_0x12c4ce,_0x2f5bc3,o(_0x12c4ce,'ELEMENT_LIST_ITEM'))});}return _0x20e81b;});}}function Te(_0x5b1367){let _0x990411=_0x5b1367['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x990411;){const _0x2dc23c=_0x990411['getAttribute']('listItemId');if(!_0x2dc23c)return!0x1;if(_0x2dc23c==_0x5b1367['data']['newValue'])return'newValue';if(_0x2dc23c==_0x5b1367['data']['oldValue'])return'oldValue';_0x990411=_0x990411['previousSibling'];}return!0x1;}class Se extends _0x441617{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2b220b=this['editor']['config']['get']('list.properties'),_0x4c059f=this['editor']['plugins']['get']('TrackChangesEditing');_0x2b220b['styles']&&(_0x4c059f['enableDefaultAttributesIntegration']('listStyle'),_0x4c059f['registerBlockAttribute']('listStyle')),_0x2b220b['reversed']&&(_0x4c059f['enableDefaultAttributesIntegration']('listReversed'),_0x4c059f['registerBlockAttribute']('listReversed')),_0x2b220b['startIndex']&&(_0x4c059f['enableDefaultAttributesIntegration']('listStart'),_0x4c059f['registerBlockAttribute']('listStart'));const _0x2ddbde={'type':'format','content':''};_0x4c059f['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x50fcfa=this['editor']['locale'];_0x4c059f['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x50fcfa,'FORMAT_LIST_REVERSED')),_0x4c059f['descriptionFactory']['registerDescriptionCallback'](_0x2628f4=>{const {data:_0x340712}=_0x2628f4;if(_0x340712&&'listReversed'==_0x340712['key'])return null==_0x340712['newValue']||0x0==_0x340712['newValue']&&null==_0x340712['oldValue']?_0x2ddbde:void 0x0;}),_0x4c059f['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x50fcfa,'FORMAT_LIST_START')),_0x4c059f['descriptionFactory']['registerDescriptionCallback'](_0x413766=>{const {data:_0x3d49ed}=_0x413766;if(_0x3d49ed&&'listStart'==_0x3d49ed['key'])return null==_0x3d49ed['newValue']||0x1==_0x3d49ed['newValue']&&null==_0x3d49ed['oldValue']?_0x2ddbde:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x328a12=>{if(_0x328a12['batch']['isUndo'])return!0x1;let _0x45a70e=!0x1;const _0x9f3973=_0x4c059f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x34f12c=>{const _0x3f8ad3=_0x4c059f['_getAttributeKey'](_0x34f12c);return'listStart'==_0x3f8ad3||'listReversed'==_0x3f8ad3;});for(const _0x258841 of _0x9f3973){const _0x1b6289=_0x258841['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x1b6289||'customNumbered'==_0x1b6289)continue;_0x4c059f['_findSuggestions'](_0x258841['getFirstRange'](),'attribute')['find'](_0xab454d=>'listType'==_0x4c059f['_getAttributeKey'](_0xab454d['suggestion']))||(_0x328a12['removeMarker'](_0x258841['getFirstMarker']()),_0x45a70e=!0x0);}return _0x45a70e;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x115324){const _0x1ed613=this['editor']['locale'],{data:_0x6df211}=_0x115324,_0x251684={'type':'format','content':''};if(!_0x6df211||'listStyle'!=_0x6df211['key'])return;if(!_0x6df211['oldValue'])return'default'==_0x6df211['newValue']?_0x251684:{'type':'format','content':''+o(_0x1ed613,'*Set\x20format:*\x20%0',o(_0x1ed613,this['_getTranslationKeyForListStyle'](_0x6df211['newValue'])))};if(!_0x6df211['newValue']){if('default'==_0x6df211['oldValue'])return _0x251684;let _0x3a7db2=_0x115324['head'];for(;_0x3a7db2;){if(_0x3a7db2['data']&&'listType'==_0x3a7db2['data']['key']&&_0x3a7db2['data']['newValue'])return _0x251684;_0x3a7db2=_0x3a7db2['next'];}return{'type':'format','content':''+o(_0x1ed613,'*Remove\x20format:*\x20%0',o(_0x1ed613,this['_getTranslationKeyForListStyle'](_0x6df211['oldValue'])))};}if('default'!=_0x6df211['newValue'])return{'type':'format','content':''+o(_0x1ed613,'*Set\x20format:*\x20%0',o(_0x1ed613,this['_getTranslationKeyForListStyle'](_0x6df211['newValue'])))};let _0x1b9703=_0x115324['head'];for(;_0x1b9703;){if(_0x1b9703['data']&&'listType'==_0x1b9703['data']['key']&&_0x1b9703['data']['newValue']&&_0x1b9703['data']['oldValue'])return _0x251684;_0x1b9703=_0x1b9703['next'];}return{'type':'format','content':o(_0x1ed613,'*Set\x20format:*\x20%0',o(_0x1ed613,'ELEMENT_'+_0x115324['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x471add=this['editor'],_0x147f92=_0x471add['locale'];_0x471add['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x547522=>{if('formatBlock'!=_0x547522['type'])return;const {data:_0x234018}=_0x547522;if(!_0x234018)return;let _0x36ffc9,_0xebc8b0;switch(_0x234018['commandName']){case'listStyle':_0x36ffc9='*Change\x20to:*\x20%0',_0xebc8b0={'type':'format','content':o(_0x147f92,_0x36ffc9,o(_0x147f92,this['_getTranslationKeyForListStyle'](_0x234018['commandParams'][0x0]['type'])))};break;case'listReversed':_0x36ffc9=_0x234018['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xebc8b0={'type':'format','content':o(_0x147f92,_0x36ffc9)};break;case'listStart':_0x36ffc9='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xebc8b0={'type':'format','content':o(_0x147f92,_0x36ffc9,_0x234018['commandParams'][0x0]['startIndex'])};}return _0xebc8b0;});}['_getTranslationKeyForListStyle'](_0x5e4a6d){return'ELEMENT_'+function(_0xa82b6c){if(_e['includes'](_0xa82b6c))return'bulleted';if(Re['includes'](_0xa82b6c))return'numbered';return null;}(_0x5e4a6d)['toUpperCase']()+'_LIST_'+_0x5e4a6d['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x441617{['afterInit'](){const _0x18a70=this['editor'];_0x18a70['commands']['get']('emoji')&&_0x18a70['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x441617{static get['requires'](){return[_0x124fc5];}['init'](){const _0x26f1b6=this['editor'],_0x9d82b4=_0x26f1b6['plugins']['get']('TrackChangesEditing'),_0x192637=_0x26f1b6['commands']['get']('enter');_0x9d82b4['enableCommand']('enter',()=>{_0x26f1b6['model']['change'](_0x2f2f5e=>{const _0x59b894=_0x26f1b6['model']['document']['selection'],_0x228f29=_0x59b894['getFirstPosition'](),_0x5d8da9=_0x151380['fromRange'](_0x59b894['getFirstRange']());if(_0x192637['enterBlock'](_0x2f2f5e)){const _0x1e8df6=_0x26f1b6['model']['createPositionAt'](_0x228f29['parent']['nextSibling'],0x0),_0x4038d6=_0x2f2f5e['createRange'](_0x228f29,_0x1e8df6);_0x9d82b4['markInsertion'](_0x4038d6);}else _0x2f2f5e['setSelection'](_0x2f2f5e['createRange'](_0x5d8da9['end']));_0x5d8da9['detach'](),_0x192637['fire']('afterExecute',{'writer':_0x2f2f5e});});}),_0x26f1b6['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x26f1b6,'split'),{'priority':'high'}),_0x26f1b6['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x68e10c,_0x4510c1,_0x6ee57b)=>{const _0x16def5=_0x6ee57b['mapper']['markerNameToElements'](_0x4510c1['markerName']);if(_0x16def5){for(const _0x289285 of _0x16def5)_0x289285['hasClass']('ck-suggestion-marker-split')&&(_0x6ee57b['mapper']['unbindElementFromMarkerName'](_0x289285,_0x4510c1['markerName']),_0x6ee57b['writer']['remove'](_0x289285));}},{'priority':'high'}),_0x26f1b6['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5eb7a3,_0xdbd627,_0x5c77f2)=>{_0x5c77f2['options']['showSuggestionHighlights']&&De(_0x26f1b6,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x5eb7a3,_0xdbd627,_0x5c77f2);},{'priority':'high'});}}class Z extends _0x441617{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x504eab=this['editor']['plugins']['get']('TrackChangesEditing');_0x504eab['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x504eab['enableCommand']('findNext'),_0x504eab['enableCommand']('findPrevious'),_0x504eab['enableCommand']('replace'),_0x504eab['enableCommand']('replaceAll');}['handleFindCommand'](_0x15b9fa,_0x7b5edf,_0x11543f={}){const _0x3015f7=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x15b9fa(_0x151177=>{let _0x1b2be0=('string'==typeof _0x7b5edf?_0x3015f7['findByTextCallback'](_0x7b5edf,_0x11543f):_0x7b5edf)(_0x151177);Array['isArray'](_0x1b2be0)&&(_0x1b2be0={'results':_0x1b2be0,'searchText':'string'==typeof _0x7b5edf?_0x7b5edf:''});const _0x363daf=_0x1b2be0['results']['filter'](_0xad31fe=>!0x1===this['_isInDeletionRange'](_0xad31fe,_0x151177['item']));return{..._0x1b2be0,'results':_0x363daf};},_0x11543f);}['_isInDeletionRange'](_0x31dc8f,_0x2da26c){const _0x333d55=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2da26c,_0x31dc8f['start']),this['editor']['model']['createPositionAt'](_0x2da26c,_0x31dc8f['end']));for(const _0x18fa7d of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x333d55['getIntersection'](_0x18fa7d['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x441617{['afterInit'](){const _0x220f27=this['editor']['locale'],_0x23f8ac=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x18d12c,commandName:_0x16a05d}of ro)this['editor']['plugins']['has'](_0x18d12c)&&(_0x23f8ac['enableDefaultAttributesIntegration'](_0x16a05d),_0x23f8ac['registerInlineAttribute'](_0x16a05d));_0x23f8ac['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x220f27,'FORMAT_FONT_SIZE')),_0x23f8ac['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x220f27,'FORMAT_FONT_FAMILY')),_0x23f8ac['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x220f27,'FORMAT_FONT_COLOR')),_0x23f8ac['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x220f27,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1d31bd=this['editor'],_0x3abb6a=_0x1d31bd['locale'];_0x1d31bd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x9a27f5=>{const _0x58aaa2=_0x3abb6a['t'];if('formatInline'!=_0x9a27f5['type'])return;const {data:_0x411522}=_0x9a27f5;if(null!=_0x411522){if('fontSize'==_0x411522['commandName']){const _0x25ff27=_0x411522['commandParams'][0x0]['value'];if(_0x25ff27){const _0x596e1a=_0x58aaa2(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x2ddb58=>_0x2ddb58['model']==_0x25ff27)['title'])['toLowerCase']();return{'type':'format','content':o(_0x3abb6a,'*Set\x20font\x20size:*\x20%0',_0x596e1a)};}return{'type':'format','content':o(_0x3abb6a,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x411522['commandName']){const _0x4204c9=_0x411522['commandParams'][0x0]['value'];return _0x4204c9?{'type':'format','content':o(_0x3abb6a,'*Set\x20font\x20family:*\x20%0',_0x4204c9)}:{'type':'format','content':o(_0x3abb6a,'*Reset\x20font\x20family*')};}if('fontColor'==_0x411522['commandName']){const _0x2a00f1=_0x411522['commandParams'][0x0]['value'];if(_0x2a00f1){const _0x3a9624=_0x3b58ff(this['editor']['config']['get']('fontColor.colors'))['find'](_0x126725=>_0x126725['model']==_0x2a00f1);let _0x312011=_0x2a00f1,_0x8cc767='';return _0x3a9624&&(_0x312011=_0x3a9624['label'],_0x8cc767=_0x58aaa2(_0x312011)['toLowerCase']()),{'type':'format','content':o(_0x3abb6a,'*Set\x20font\x20color:*\x20%0',_0x8cc767)['trim'](),'color':{'value':_0x2a00f1,'title':_0x8cc767||_0x312011}};}return{'type':'format','content':o(_0x3abb6a,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x411522['commandName']){const _0xaafb27=_0x411522['commandParams'][0x0]['value'];if(_0xaafb27){const _0x3162b1=_0x3b58ff(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x5a6069=>_0x5a6069['model']==_0xaafb27);let _0x193bb1=_0xaafb27,_0x505605='';return _0x3162b1&&(_0x193bb1=_0x3162b1['label'],_0x505605=_0x58aaa2(_0x193bb1)['toLowerCase']()),{'type':'format','content':o(_0x3abb6a,'*Set\x20font\x20background\x20color:*\x20%0',_0x505605)['trim'](),'color':{'value':_0xaafb27,'title':_0x505605||_0x193bb1}};}return{'type':'format','content':o(_0x3abb6a,'*Reset\x20font\x20background\x20color*')};}}});}}class nt extends _0x441617{['afterInit'](){const _0x598214=this['editor'],_0x3bf2e0=_0x598214['plugins']['get']('TrackChangesEditing'),_0x251f7c=_0x598214['commands']['get']('copyFormat'),_0x2bf717=_0x598214['commands']['get']('pasteFormat');_0x251f7c&&_0x2bf717&&(_0x3bf2e0['enableDefaultAttributesIntegration']('pasteFormat'),_0x3bf2e0['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0xdfba47=this['editor'],_0x26b93a=_0xdfba47['locale'];_0xdfba47['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xc67a21=>{if('formatBlock'!=_0xc67a21['type']&&'formatInline'!=_0xc67a21['type'])return;const {data:_0x327097}=_0xc67a21;if(_0x327097&&'pasteFormat'===_0x327097['commandName']){const _0x4c6ea9=[],_0x155839=_0x327097['commandParams'][0x0];for(const [_0x10b1f7,_0x511df3]of Object['entries'](_0x155839))_0x4c6ea9['push'](so(_0xdfba47,_0x10b1f7,_0x511df3));return _0x4c6ea9['length']?{'type':'format','content':o(_0x26b93a,'*Set\x20format\x20to:*\x20%0',_0x4c6ea9['join'](',\x20'))}:{'type':'format','content':o(_0x26b93a,'*Remove\x20all\x20formatting*')};}});}}function so(_0x3104db,_0x26649d,_0x167e89){const _0x5089a9=_0x3104db['locale']['t'],_0x221ee3=_0x26649d['split'](/(?=[A-Z])/)['join']('\x20'),_0x2dfdb0=_0x5089a9(_0x221ee3['charAt'](0x0)['toUpperCase']()+_0x221ee3['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x167e89)return _0x2dfdb0;if('fontColor'===_0x26649d||'fontBackgroundColor'===_0x26649d){const _0x6f50be=_0x3b58ff(_0x3104db['config']['get']('fontColor.colors'))['find'](_0x419229=>_0x419229['model']==_0x167e89);return _0x2dfdb0+'\x20('+(_0x6f50be?_0x5089a9(_0x6f50be['label'])['toLowerCase']():_0x167e89)+')';}if('fontSize'===_0x26649d&&isNaN(parseFloat(_0x167e89))){const _0x1ab7bc=_0x3104db['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x3104db['config']['get']('fontSize.options'))['find'](_0x1b1146=>_0x1b1146['model']==_0x167e89);return _0x2dfdb0+'\x20('+(_0x1ab7bc?_0x5089a9(_0x1ab7bc['title'])['toLowerCase']():_0x167e89)+')';}return _0x2dfdb0+'\x20('+_0x167e89+')';}class it extends _0x441617{['_headingOptions'];['afterInit'](){const _0x47ec89=this['editor'];if(!_0x47ec89['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x47ec89['config']['get']('heading.options');const _0x32631d=_0x47ec89['locale'],_0x506578=_0x47ec89['plugins']['get']('TrackChangesEditing');_0x506578['enableDefaultAttributesIntegration']('heading');for(const _0x258d72 of this['_headingOptions'])'paragraph'!=_0x258d72['model']&&_0x506578['descriptionFactory']['registerElementLabel'](_0x258d72['model'],_0x1543a6=>{const _0x237c4f=this['_getHeadingLevel'](_0x258d72['model']);return null!==_0x237c4f?_0x43b5a8(_0x1543a6,_0x237c4f):_0x5c013c(_0x1543a6,_0x258d72['title']);});function _0x43b5a8(_0x2077fe,_0x2a809d){return o(_0x32631d,'ELEMENT_HEADING',[_0x2077fe,_0x2a809d]);}function _0x5c013c(_0x43fb12,_0x47f2b4){return o(_0x32631d,'ELEMENT_HEADING_CUSTOM',[_0x43fb12,_0x47f2b4]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5415d0=this['editor'],_0x3f1179=_0x5415d0['locale'];function _0x3958ba(_0x30fe57,_0x2ac39f){return o(_0x3f1179,'ELEMENT_HEADING_CUSTOM',[_0x30fe57,_0x2ac39f]);}_0x5415d0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x87f851=>{if('formatBlock'!=_0x87f851['type'])return;const {data:_0x33b553}=_0x87f851;if(_0x33b553&&'heading'==_0x33b553['commandName']){const _0x504844=_0x33b553['commandParams'][0x0]['value'],_0x16d0cb=this['_getHeadingLevel'](_0x504844);if(null!==_0x16d0cb)return{'type':'format','content':o(_0x3f1179,'*Change\x20to:*\x20%0',(_0x837d77=0x1,_0x994a7=_0x16d0cb,o(_0x3f1179,'ELEMENT_HEADING',[_0x837d77,_0x994a7])))};const _0xde9d8=this['_headingOptions']['find'](_0x325ab7=>_0x325ab7['model']===_0x504844)['title'];return{'type':'format','content':o(_0x3f1179,'*Change\x20to:*\x20%0',_0x3958ba(0x1,_0xde9d8))};}var _0x837d77,_0x994a7;});}['_getHeadingLevel'](_0x49dda6){const _0x20dc90=_0x49dda6['match'](/^heading(\d+)/);if(_0x20dc90)return _0x20dc90[0x1];const _0x173cf5=this['_headingOptions']?.['find'](_0x395490=>_0x395490['model']==_0x49dda6);if(_0x173cf5&&_0x173cf5['view']){const _0x3991c6=_0x173cf5['view'],_0x26e53d=(_0x3991c6['name']??_0x3991c6)['match'](/^h(\d+)/);if(_0x26e53d)return _0x26e53d[0x1];}return null;}}class et extends _0x441617{['afterInit'](){const _0x267d74=this['editor'];if(!_0x267d74['plugins']['has']('HighlightEditing'))return;const _0x47b9d1=_0x267d74['plugins']['get']('TrackChangesEditing'),_0x1e470b=_0x267d74['locale'];_0x47b9d1['enableDefaultAttributesIntegration']('highlight'),_0x47b9d1['registerInlineAttribute']('highlight'),_0x47b9d1['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x1e470b,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x312002=this['editor'],_0x13ef63=_0x312002['locale'];_0x312002['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47346a=>{if('formatInline'!=_0x47346a['type'])return;const {data:_0x27c983}=_0x47346a;if(_0x27c983&&'highlight'==_0x27c983['commandName']){const _0x330106=_0x13ef63['t'],_0x435b58=_0x27c983['commandParams'][0x0]['value'];if(_0x435b58){const _0x305877=_0x312002['config']['get']('highlight.options')['find'](_0x11ab3c=>_0x11ab3c['model']==_0x435b58),_0x61f72c=_0x330106(_0x305877['title'])['toLowerCase']();return{'type':'format','content':o(_0x13ef63,'*Set\x20highlight:*\x20%0',_0x61f72c),'color':{'value':_0x305877['color'],'title':_0x305877['title']}};}return{'type':'format','content':o(_0x13ef63,'*Remove\x20highlight*',o(_0x13ef63,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x441617{['afterInit'](){const _0xf63cb1=this['editor'];if(!_0xf63cb1['plugins']['has']('HorizontalLineEditing'))return;_0xf63cb1['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x36ad22=_0xf63cb1['plugins']['get']('TrackChangesEditing'),_0x3c0953=_0xf63cb1['locale'];_0x36ad22['descriptionFactory']['registerElementLabel']('horizontalLine',_0x26a229=>o(_0x3c0953,'ELEMENT_HORIZONTAL_LINE',_0x26a229)),_0xf63cb1['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x631425,{writer:_0x53cdce,options:_0x45d103})=>{if(!_0x45d103['showSuggestionHighlights'])return null;const _0x1fdd69=_0x53cdce['createContainerElement']('div'),_0x13a7fb=_0x53cdce['createEmptyElement']('hr');return _0x53cdce['addClass']('ck-horizontal-line',_0x1fdd69),_0x53cdce['insert'](_0x53cdce['createPositionAt'](_0x1fdd69,0x0),_0x13a7fb),_0x1fdd69;},'converterPriority':'high'});}}class ot extends _0x441617{['afterInit'](){const _0x5ce6eb=this['editor'];if(!_0x5ce6eb['plugins']['has']('HtmlEmbed'))return;const _0x980f86=_0x5ce6eb['plugins']['get']('TrackChangesEditing'),_0x26bfa8=_0x5ce6eb['locale'];_0x980f86['descriptionFactory']['registerElementLabel']('rawHtml',_0x351916=>o(_0x26bfa8,'ELEMENT_HTML_EMBED',_0x351916)),_0x980f86['enableDefaultAttributesIntegration']('htmlEmbed'),_0x980f86['registerBlockAttribute']('value'),_0x980f86['descriptionFactory']['registerDescriptionCallback'](_0x4cdfa6=>{if('attribute'!=_0x4cdfa6['type'])return;const {data:_0x45a0c0}=_0x4cdfa6;if(_0x45a0c0&&'value'==_0x45a0c0['key']&&_0x4cdfa6['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x1f570b=o(_0x26bfa8,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x26bfa8,'*Change\x20%0\x20content*',_0x1f570b)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xd543ff=this['editor'],_0x1e75fb=_0xd543ff['locale'];_0xd543ff['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x52eadd=>{if('formatBlock'!=_0x52eadd['type'])return;const {data:_0x4305af}=_0x52eadd;if(_0x4305af&&'htmlEmbed'==_0x4305af['commandName']){const _0x53a180=o(_0x1e75fb,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1e75fb,'*Change\x20%0\x20content*',_0x53a180)};}});}}class rt extends _0x441617{['afterInit'](){const _0x3803de=this['editor'];if(!_0x3803de['plugins']['has']('ImageEditing'))return;const _0x9cfb31=_0x3803de['plugins']['get']('TrackChangesEditing'),_0x5412b2=_0x3803de['plugins']['get']('ImageUtils'),_0x2c067e=_0x3803de['locale'];_0x9cfb31['enableCommand']('insertImage'),_0x9cfb31['descriptionFactory']['registerElementLabel']('imageBlock',_0x1add2b=>o(_0x2c067e,'ELEMENT_IMAGE',_0x1add2b)),_0x9cfb31['descriptionFactory']['registerElementLabel']('imageInline',_0x549333=>o(_0x2c067e,'ELEMENT_INLINE_IMAGE',_0x549333)),_0x9cfb31['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x2c067e,'ELEMENT_CAPTION')),_0x3803de['plugins']['has']('ImageUploadEditing')&&_0x9cfb31['enableCommand']('uploadImage'),_0x3803de['plugins']['has']('ImageBlockEditing')&&_0x3803de['plugins']['has']('ImageInlineEditing')&&(_0x9cfb31['enableCommand']('imageTypeInline',(_0x51eec3,_0x185b8c)=>{const _0x2ed596=_0x5412b2['getClosestSelectedImageElement'](_0x3803de['model']['document']['selection']);_0x3803de['model']['change'](()=>{_0x9cfb31['markBlockFormat'](_0x2ed596,{'commandName':'imageTypeInline','commandParams':[_0x185b8c]},[],'convertBlockImageToInline');});}),_0x9cfb31['enableCommand']('imageTypeBlock',(_0x59a437,_0x33281d)=>{_0x3803de['model']['change'](_0x448fe4=>{let _0x5ca4c6=_0x5412b2['getClosestSelectedImageElement'](_0x3803de['model']['document']['selection']),_0x1b72f9=_0x448fe4['createRangeOn'](_0x5ca4c6);const _0xc281e3=_0x376056['fromPosition'](_0x1b72f9['start'],'toPrevious'),_0x7ee135=_0x376056['fromPosition'](_0x1b72f9['end'],'toNext');_0x9cfb31['forceDefaultExecution'](()=>_0x59a437(_0x33281d)),_0x5ca4c6=_0x5412b2['getClosestSelectedImageElement'](_0x3803de['model']['document']['selection']),_0x1b72f9=_0x448fe4['createRangeOn'](_0x5ca4c6);const _0x1af3ff=_0x448fe4['createRange'](_0xc281e3,_0x7ee135);_0xc281e3['detach'](),_0x7ee135['detach'](),_0x9cfb31['markBlockFormat'](_0x5ca4c6,{'commandName':'imageTypeInline','commandParams':[_0x33281d]},[],'convertInlineImageToBlock'),_0x1af3ff['start']['isBefore'](_0x1b72f9['start'])&&_0x9cfb31['markInsertion'](_0x448fe4['createRange'](_0x1af3ff['start'],_0x1b72f9['start']),'convertInlineImageToBlock'),_0x1b72f9['end']['isBefore'](_0x1af3ff['end'])&&_0x9cfb31['markInsertion'](_0x448fe4['createRange'](_0x1b72f9['end'],_0x1af3ff['end']),'convertInlineImageToBlock');});}),_0x9cfb31['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x9cfb31['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x9cfb31['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x9cfb31['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x9cfb31['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x9cfb31['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x58d231])=>{const _0x29863f=_0x9cfb31['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x1eefad=_0x58d231['start'],_0x400138=_0x58d231['end'];const _0x5bd156=_0x3803de['model']['schema']['getNearestSelectionRange'](_0x1eefad,'backward'),_0x505b3a=_0x3803de['model']['schema']['getNearestSelectionRange'](_0x400138,'forward');_0x5bd156['isCollapsed']&&(_0x1eefad=_0x5bd156['start']),_0x505b3a['isCollapsed']&&(_0x400138=_0x505b3a['end']),_0x29863f([_0x3803de['model']['createRange'](_0x1eefad,_0x400138)]);}),_0x9cfb31['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x369343),_0x9cfb31['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x369343)),_0x3803de['plugins']['has']('ImageCaptionEditing')&&(_0x9cfb31['enableCommand']('toggleImageCaption',(_0x59c865,_0x54942f)=>{const _0x2359a5=_0x3803de['plugins']['get']('ImageCaptionUtils');let _0x10f028=_0x5412b2['getClosestSelectedImageElement'](_0x3803de['model']['document']['selection']),_0x4e5318=_0x2359a5['getCaptionFromImageModelElement'](_0x10f028);_0x3803de['model']['change'](()=>{if(_0x4e5318)return void _0x9cfb31['markDeletion'](_0x3803de['model']['createRangeOn'](_0x4e5318));const _0x2b34b7=_0x5412b2['isBlockImage'](_0x10f028);_0x59c865(_0x54942f),_0x10f028=_0x5412b2['getClosestSelectedImageElement'](_0x3803de['model']['document']['selection']),_0x4e5318=_0x2359a5['getCaptionFromImageModelElement'](_0x10f028),_0x9cfb31['markInsertion'](_0x3803de['model']['createRangeOn'](_0x4e5318),_0x2b34b7?null:'imageCaption');});}),_0x9cfb31['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x369343));const _0xdde644=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x472350(_0xccf4a1,_0x4094a2){const _0x471e01=_0xdde644['findIndex'](({type:_0x54d786,subType:_0x4298ea})=>_0xccf4a1['type']==_0x54d786&&_0xccf4a1['subType']==_0x4298ea),_0x583459=_0xdde644['findIndex'](({type:_0x138ef3,subType:_0x440106})=>_0x4094a2['type']==_0x138ef3&&_0x4094a2['subType']==_0x440106);if(_0x471e01<0x0||_0x583459<0x0)return!0x1;const _0x56278a=_0xccf4a1['getFirstRange'](),_0x30729a=_0x4094a2['getFirstRange']();if((0x0==_0x471e01||0x1==_0x471e01)&&0x2==_0x583459&&_0x56278a['isIntersecting'](_0x30729a))return!0x0;if(0x2==_0x471e01&&0x3==_0x583459){const _0x4625a0=_0x9cfb31['_findSuggestions'](_0x56278a,'insertion')['filter'](({suggestion:_0x8d2bd7,meta:_0x17962d})=>_0x17962d['isOwn']&&'convertInlineImageToBlock'==_0x8d2bd7['subType']);if(_0x4625a0['length']>0x1&&_0x30729a['end']['isEqual'](_0x56278a['start']))return!0x0;if(0x1==_0x4625a0['length']&&(_0x56278a['start']['isEqual'](_0x30729a['end'])||_0x56278a['end']['isEqual'](_0x30729a['start'])))return!0x0;}if(0x3==_0x471e01&&0x3==_0x583459&&_0x56278a['start']['isBefore'](_0x30729a['start'])){const _0x1d5d67=_0x56278a['end']['nodeAfter'],_0xb0548b=_0x30729a['start']['nodeBefore'];return _0x5412b2['isBlockImage'](_0x1d5d67)&&_0x1d5d67===_0xb0548b;}return!0x1;}function _0x369343(_0x16d581,_0x3250b8){return _0x472350(_0x16d581,_0x3250b8)?[_0x16d581,_0x3250b8]:_0x472350(_0x3250b8,_0x16d581)?[_0x3250b8,_0x16d581]:null;}_0x3803de['plugins']['has']('ImageResize')&&(_0x9cfb31['enableDefaultAttributesIntegration']('resizeImage'),_0x9cfb31['registerBlockAttribute']('resizedWidth'),_0x9cfb31['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x2c067e,'FORMAT_IMAGE_SIZE'))),_0x3803de['plugins']['has']('ImageTextAlternativeEditing')&&(_0x9cfb31['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x9cfb31['registerBlockAttribute']('alt')),_0x3803de['plugins']['has']('PictureEditing')&&(_0x9cfb31['registerBlockAttribute']('sources'),_0x9cfb31['descriptionFactory']['registerDescriptionCallback'](_0x6974e7=>{if('attribute'!=_0x6974e7['type'])return;const {data:_0x2e8959}=_0x6974e7;return _0x2e8959&&'sources'==_0x2e8959['key']?{'type':'format','content':''}:void 0x0;})),_0x3803de['plugins']['has']('ImageSizeAttributes')&&(_0x9cfb31['registerBlockAttribute']('width'),_0x9cfb31['registerBlockAttribute']('height'),_0x9cfb31['descriptionFactory']['registerDescriptionCallback'](_0x38b7c0=>{if('attribute'!=_0x38b7c0['type'])return;const {data:_0x313db7}=_0x38b7c0;return!_0x313db7||'width'!=_0x313db7['key']&&'height'!=_0x313db7['key']?void 0x0:{'type':'format','content':''};})),_0x9cfb31['descriptionFactory']['registerDescriptionCallback'](_0x21d145=>{if(!!_0xdde644['find'](({type:_0x3860ec,subType:_0x4c9493})=>_0x21d145['type']==_0x3860ec&&_0x21d145['subType']==_0x4c9493))return _0x21d145['previous']?{}:void 0x0;}),_0x9cfb31['descriptionFactory']['registerDescriptionCallback'](_0x572180=>{if('insertion'==_0x572180['type']||'deletion'==_0x572180['type']){const _0x139b5c=_0x572180['getContainedElement']();if(_0x139b5c&&_0x139b5c['is']('element','caption'))return{'type':'insertion'==_0x572180['type']?'addObject':'removeObject','element':_0x139b5c,'quantity':0x1};}}),_0x9cfb31['descriptionFactory']['registerDescriptionCallback'](_0x276c58=>'formatBlock'==_0x276c58['type']&&'convertInlineImageToBlock'==_0x276c58['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x276c58['type']&&'convertBlockImageToInline'==_0x276c58['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x9cfb31['descriptionFactory']['registerDescriptionCallback'](_0x44202a=>{if('attribute'!=_0x44202a['type'])return;const {data:_0x229887}=_0x44202a;if(!_0x229887||'alt'!=_0x229887['key'])return;const _0x5ccf9a=_0x229887['newValue'];return _0x5ccf9a?{'type':'format','content':o(_0x2c067e,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5ccf9a+'\x22')}:{'type':'format','content':o(_0x2c067e,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5e1391=this['editor'],_0xcafdea=_0x5e1391['locale'];_0x5e1391['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x33b42b=>{if('formatBlock'!=_0x33b42b['type']&&'formatInline'!=_0x33b42b['type'])return;const {data:_0x350398}=_0x33b42b;if(_0x350398){if('imageTextAlternative'==_0x350398['commandName']){const _0x579337=_0x350398['commandParams'][0x0]['newValue'];return _0x579337?{'type':'format','content':o(_0xcafdea,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x579337+'\x22')}:{'type':'format','content':o(_0xcafdea,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x350398['commandName']){const _0xf857e=_0x350398['commandParams'][0x0]['width'];return _0xf857e?{'type':'format','content':o(_0xcafdea,'*Set\x20image\x20width:*\x20%0',_0xf857e)}:{'type':'format','content':o(_0xcafdea,'*Reset\x20image\x20width*')};}}});}}class at extends _0x441617{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x106b30=this['editor']['locale'],_0xa57ea=this['editor']['plugins']['get']('TrackChangesEditing');_0xa57ea['enableDefaultAttributesIntegration']('replaceImageSource'),_0xa57ea['registerBlockAttribute']('src'),_0xa57ea['descriptionFactory']['registerDescriptionCallback'](_0xac5e84=>{if('attribute'!=_0xac5e84['type'])return;const {data:_0x2668f8}=_0xac5e84;return _0x2668f8&&'src'==_0x2668f8['key']?_0x2668f8['newValue']&&_0x2668f8['oldValue']?{'type':'format','content':o(_0x106b30,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x24e87b=this['editor']['plugins']['get']('TrackChangesEditing');_0x24e87b['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x24e87b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x24e87b['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x24e87b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x456e93=this['editor'],_0x3b717e=_0x456e93['locale'];_0x456e93['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x23e41b=>{if('formatBlock'!=_0x23e41b['type']&&'formatInline'!=_0x23e41b['type'])return;const {data:_0x355f0b}=_0x23e41b;if(!_0x355f0b||'replaceImageSource'!=_0x355f0b['commandName'])return;return{'type':'format','content':o(_0x3b717e,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x441617{['afterInit'](){const _0x55f91f=this['editor'];if(!_0x55f91f['plugins']['has']('ImageStyleEditing'))return;const _0x1dae0a=_0x55f91f['plugins']['get']('TrackChangesEditing'),_0x598f38=_0x55f91f['plugins']['get']('ImageUtils'),_0x17a978={};_0x1dae0a['enableCommand']('imageStyle',(_0x3108dd,_0x5d8f8b)=>{const _0x5f14bb=_0x55f91f['plugins']['get']('Users')['me'],_0x4a3fa6=_0x55f91f['commands']['get']('imageStyle');let _0x427023=_0x598f38['getClosestSelectedImageElement'](_0x55f91f['model']['document']['selection']),_0x4ae7db=_0x55f91f['model']['createRangeOn'](_0x427023),_0x24c6f0=_0x4a3fa6['value'];if(_0x24c6f0==_0x5d8f8b['value'])return;const _0x440c2e={'commandName':'imageStyle','commandParams':[_0x5d8f8b],'formatGroupId':_0x1ece5b()};_0x55f91f['model']['change'](()=>{if(_0x1dae0a['getSuggestions']()['filter'](_0x4d7ac7=>_0x4d7ac7['isInContent']&&_0x5f14bb==_0x4d7ac7['author']&&('formatBlock'==_0x4d7ac7['type']||'formatInline'==_0x4d7ac7['type'])&&('imageStylePreApply'==_0x4d7ac7['subType']||'imageStylePostApply'==_0x4d7ac7['subType'])&&_0x4d7ac7['getFirstRange']()['isEqual'](_0x4ae7db))['forEach'](_0xd1bd1b=>_0x1dae0a['discardSuggestion'](_0xd1bd1b['head'])),_0x427023=_0x598f38['getClosestSelectedImageElement'](_0x55f91f['model']['document']['selection']),_0x4ae7db=_0x55f91f['model']['createRangeOn'](_0x427023),_0x4a3fa6['refresh'](),_0x55f91f['commands']['get']('imageTypeInline')['refresh'](),_0x55f91f['commands']['get']('imageTypeBlock')['refresh'](),_0x24c6f0=_0x4a3fa6['value'],_0x24c6f0!=_0x5d8f8b['value'])return _0x598f38['isInlineImage'](_0x427023)&&_0x4a3fa6['shouldConvertImageType'](_0x5d8f8b['value'],_0x427023)?(_0x3108dd({..._0x5d8f8b,'setImageSizes':!0x1}),_0x427023=_0x598f38['getClosestSelectedImageElement'](_0x55f91f['model']['document']['selection']),void _0x1dae0a['markBlockFormat'](_0x427023,{..._0x440c2e,'commandReversedParams':[{'value':_0x24c6f0||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x598f38['isBlockImage'](_0x427023)?_0x1dae0a['markBlockFormat'](_0x427023,_0x440c2e,[],'imageStylePostApply'):_0x1dae0a['markInlineFormat'](_0x4ae7db,_0x440c2e,'imageStylePostApply'));});});for(const _0x4165bf of _0x55f91f['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x17a978[_0x4165bf['name']]=_0x4165bf['title']['toLowerCase']();_0x1dae0a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x1dae0a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x1dae0a['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x1dae0a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x89968b])=>{_0x598f38['setImageNaturalSizeAttributes'](_0x89968b['getContainedElement']());}),_0x1dae0a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0xd73ac,_0x24ba1f)=>{_0x1dae0a['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0xd73ac,{'commandName':_0x24ba1f['commandName'],'commandParams':_0x24ba1f['commandReversedParams']});}),_0x1dae0a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x53314d,_0x530167){if(_0x14f433(_0x53314d,_0x530167))return[_0x53314d,_0x530167];if(_0x14f433(_0x530167,_0x53314d))return[_0x530167,_0x53314d];return null;});const _0x3f86b7=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x14f433(_0x47af1b,_0x3bac3c){const _0xac4133=_0x3f86b7['findIndex'](({type:_0x1e29f9,subType:_0x3eaecf})=>_0x47af1b['type']==_0x1e29f9&&_0x47af1b['subType']==_0x3eaecf),_0x27100d=_0x3f86b7['findIndex'](({type:_0x5507e0,subType:_0x5ac8dd})=>_0x3bac3c['type']==_0x5507e0&&_0x3bac3c['subType']==_0x5ac8dd);if(_0xac4133<0x0||_0x27100d<0x0)return!0x1;const _0x439b82=_0x47af1b['getFirstRange'](),_0x10ac5a=_0x3bac3c['getFirstRange']();if((0x0==_0xac4133||0x1==_0xac4133)&&0x2==_0x27100d&&_0x439b82['isIntersecting'](_0x10ac5a))return!0x0;if(0x2==_0xac4133&&0x3==_0x27100d){const _0x2ac433=_0x1dae0a['_findSuggestions'](_0x439b82,'insertion')['filter'](({suggestion:_0xfcc496,meta:_0x457abc})=>_0x457abc['isOwn']&&'convertInlineImageToBlock'==_0xfcc496['subType']);if(_0x2ac433['length']>0x1&&_0x10ac5a['end']['isEqual'](_0x439b82['start']))return!0x0;if(0x1==_0x2ac433['length']&&(_0x439b82['start']['isEqual'](_0x10ac5a['end'])||_0x439b82['end']['isEqual'](_0x10ac5a['start'])))return!0x0;}if(0x3==_0xac4133&&0x3==_0x27100d&&_0x439b82['start']['isBefore'](_0x10ac5a['start'])){const _0x2b8e9a=_0x439b82['end']['nodeAfter'],_0x5c2df4=_0x10ac5a['start']['nodeBefore'];return _0x598f38['isBlockImage'](_0x2b8e9a)&&_0x2b8e9a===_0x5c2df4;}return!0x1;}_0x55f91f['model']['document']['registerPostFixer'](()=>{let _0x143ef2=!0x1;const _0x3616f3=Array['from'](_0x55f91f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x47b859,data:_0x200956}of _0x3616f3){const {group:_0x74b9a9,type:_0x4cc53b,subType:_0x54c62c,id:_0x3c0db2}=_0x1dae0a['_splitMarkerName'](_0x47b859);if('suggestion'==_0x74b9a9&&_0x1dae0a['hasSuggestion'](_0x3c0db2)){if('formatBlock'==_0x4cc53b&&('imageStylePreApply'==_0x54c62c||'imageStylePostApply'==_0x54c62c)){const _0x430492=_0x1dae0a['getSuggestion'](_0x3c0db2);if(_0x200956['newRange']){const _0x229413=_0x430492['getFirstRange']()['getContainedElement']();if(_0x598f38['isBlockImage'](_0x229413))continue;_0x1dae0a['discardSuggestion'](_0x430492),_0x143ef2=!0x0;}}if('insertion'==_0x4cc53b&&'imageCaption'==_0x54c62c&&!_0x200956['newRange']){const _0x4c0301=_0x1dae0a['getSuggestion'](_0x3c0db2);_0x4c0301['next']&&_0x4c0301['next']['isInContent']&&(_0x1dae0a['discardSuggestion'](_0x4c0301['next']),_0x143ef2=!0x0);}}}return _0x143ef2;}),this['_registerLegacyDescription'](_0x17a978);}['_registerLegacyDescription'](_0x32c5de){const _0x4f4d9f=this['editor'],_0x58d117=_0x4f4d9f['locale'];_0x4f4d9f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a39f=>{if('formatBlock'!=_0x1a39f['type']&&'formatInline'!=_0x1a39f['type'])return;const {data:_0x1f0b06}=_0x1a39f;if(!_0x1f0b06||'imageStyle'!=_0x1f0b06['commandName'])return;const _0x336728=_0x1f0b06['commandParams'][0x0]['value'];return _0x3491c1('side'===_0x336728?o(_0x58d117,'FORMAT_SIDE_IMAGE'):_0x32c5de[_0x336728]||_0x336728);function _0x3491c1(_0x57c98f){return{'type':'format','content':o(_0x58d117,'*Format:*\x20%0',_0x57c98f)};}});}}class ut extends _0x441617{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x497e51){super(_0x497e51),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x4f57b3=this['editor'],_0x2aa08b=_0x4f57b3['commands']['get']('importWord'),_0x137ff7=_0x4f57b3['commands']['get']('trackChanges');_0x2aa08b&&(_0x2aa08b['on']('execute',(_0x1bec7e,[,_0x4d0151])=>{this['_trackChangesValueDuringImport']=_0x137ff7['value'],_0x4d0151['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x2aa08b,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x2aa08b,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x137ff7['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4f57b3['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x554553,_0x187f1b){const {suggestions:_0xd69982}=_0x187f1b,_0x126a62=this['editor']['commands']['get']('trackChanges'),_0x1bc0b9=_0x126a62['value'];this['_trackChangesValueDuringImport']!==_0x1bc0b9&&(_0x126a62['execute'](),this['_trackChangesExecuted']=!0x0),_0xd69982&&_0xd69982['forEach'](({id:_0x215256,type:_0x2ce2e1,author:_0xbe183,created_at:_0x5ea8e2})=>{const _0x930704={'id':_0x215256,'type':_0x2ce2e1,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0xbe183,'createdAt':_0x5ea8e2?new Date(_0x5ea8e2):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x930704);});}}class ft extends _0x441617{['afterInit'](){const _0x2c17c5=this['editor'],_0x34bf2b=_0x2c17c5['plugins']['get']('TrackChangesEditing');if(_0x2c17c5['plugins']['has']('IndentEditing')&&(_0x34bf2b['enableCommand']('indent'),_0x34bf2b['enableCommand']('outdent')),_0x2c17c5['plugins']['has']('IndentBlock')){for(const _0x2e866b of['indentBlock','outdentBlock'])_0x34bf2b['enableDefaultAttributesIntegration'](_0x2e866b);}const _0x55b645=_0x2c17c5['locale'];_0x34bf2b['registerBlockAttribute']('blockIndent'),_0x34bf2b['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x55b645,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x291e39=this['editor'],_0x27ea6c=_0x291e39['locale'],_0xf75649=_0x291e39['plugins']['get']('TrackChangesEditing');_0xf75649['descriptionFactory']['registerDescriptionCallback'](_0x10740b=>{if('formatBlock'!=_0x10740b['type'])return;const {data:_0x432f6a}=_0x10740b;if(!_0x432f6a)return;if('indentBlock'!=_0x432f6a['commandName']&&'outdentBlock'!=_0x432f6a['commandName'])return;const _0x264cbe=_0x10740b['getItems']()[0x0],_0x27631c=_0xf75649['descriptionFactory']['getItemLabel'](_0x264cbe);return'indentBlock'==_0x432f6a['commandName']?{'type':'format','content':o(_0x27ea6c,'*Indent:*\x20%0',_0x27631c)}:'outdentBlock'==_0x432f6a['commandName']?{'type':'format','content':o(_0x27ea6c,'*Outdent:*\x20%0',_0x27631c)}:void 0x0;});}}class ht extends _0x441617{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x441617{['afterInit'](){const _0x3732c9=this['editor'];if(!_0x3732c9['plugins']['has']('LinkEditing'))return;const _0xe5b883=_0x3732c9['plugins']['get']('TrackChangesEditing'),_0x1b8c5c=_0x3732c9['commands']['get']('link');_0xe5b883['enableDefaultAttributesIntegration']('link'),_0xe5b883['enableDefaultAttributesIntegration']('unlink'),_0xe5b883['registerInlineAttribute']('linkHref');for(const _0x26e9e6 of _0x1b8c5c['manualDecorators'])_0xe5b883['registerInlineAttribute'](_0x26e9e6['id']),_0xe5b883['descriptionFactory']['registerAttributeLabel'](_0x26e9e6['id'],'link\x20('+_0x26e9e6['label']['toLowerCase']()+')');_0xe5b883['descriptionFactory']['registerDescriptionCallback'](_0x2f0e51=>{if('attribute'!=_0x2f0e51['type'])return;const {data:_0x4e619e}=_0x2f0e51;if(!_0x4e619e||'linkHref'!=_0x4e619e['key'])return;const _0xd70fdd=_0x4e619e['newValue'],_0x26adc3=_0x3732c9['locale'];return{'type':'format','content':null==_0xd70fdd?o(_0x26adc3,'*Remove\x20link*'):o(_0x26adc3,'*Set\x20link:*\x20%0','\x22'+_0xd70fdd+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x189d38=this['editor'],_0x5a5d77=_0x189d38['locale'];_0x189d38['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x508223=>{if('formatInline'!=_0x508223['type'])return;const {data:_0x57c526}=_0x508223;if(_0x57c526){if('link'==_0x57c526['commandName']){const _0x111c40=_0x57c526['commandParams'][0x0];return{'type':'format','content':o(_0x5a5d77,'*Set\x20link:*\x20%0','\x22'+_0x111c40+'\x22')};}return'unlink'==_0x57c526['commandName']?{'type':'format','content':o(_0x5a5d77,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x441617{['afterInit'](){const _0x2456c7=this['editor'],_0xae7156=_0x2456c7['locale'];if(!_0x2456c7['plugins']['has']('LegacyListEditing'))return;const _0x10b44c=_0x2456c7['plugins']['get']('TrackChangesEditing'),_0x467dcf=_0x2456c7['plugins']['has']('LegacyTodoListEditing');function _0x2bb294(_0x4a0a7d){return()=>{const _0x5cd1f2=_0x2456c7['model']['document']['selection'],_0x219a88=_0x2456c7['commands']['get'](_0x4a0a7d);if(_0x219a88['value'])return void _0x2456c7['execute']('paragraph',{});const _0x213789=_0x4a0a7d['slice'](0x0,-0x4),_0x51d65f=function(_0x2b4642,_0x50fb6b,_0x15ad45){let _0x35475a=Array['from'](_0x2b4642)['filter'](_0x55f1cb=>function(_0xe6889,_0x4d3915){return _0x4d3915['checkChild'](_0xe6889['parent'],'listItem')&&!_0x4d3915['isObject'](_0xe6889);}(_0x55f1cb,_0x15ad45));_0x35475a=_0x35475a['filter'](_0x5af02e=>!_0x5af02e['is']('element','listItem')||_0x5af02e['getAttribute']('listType')!=_0x50fb6b);const _0x44416c=new Set();for(const _0x50ced9 of _0x35475a)_0x50ced9['is']('element','listItem')?_0x44416c['add'](Le(_0x50ced9)):_0x44416c['add'](_0x50ced9);return Array['from'](_0x44416c);}(_0x5cd1f2['getSelectedBlocks'](),_0x213789,_0x2456c7['model']['schema']);_0x2456c7['model']['change'](()=>{for(const _0x12dced of _0x51d65f)_0x10b44c['markBlockFormat'](_0x12dced,{'commandName':_0x4a0a7d,'commandParams':[{'forceValue':!_0x219a88['value']}],'formatGroupId':'blockName'},Ee(_0x12dced));});};}function _0x820a1c(_0x131669){return()=>{const _0x597462=function(_0x115131){let _0x2e3d4f=Array['from'](_0x115131);const _0x5f3351=_0x2e3d4f['findIndex'](_0x160495=>'listItem'!=_0x160495['name']);return _0x5f3351>-0x1&&(_0x2e3d4f=_0x2e3d4f['slice'](0x0,_0x5f3351)),_0x2e3d4f;}(_0x2456c7['model']['document']['selection']['getSelectedBlocks']()),_0x256110=_0x2456c7['model']['createRange'](_0x2456c7['model']['createPositionAt'](_0x597462[0x0],'before'),_0x2456c7['model']['createPositionAt'](_0x597462[_0x597462['length']-0x1],'end'));_0x2456c7['model']['change'](()=>{_0x10b44c['markBlockFormat'](_0x256110,{'commandName':_0x131669,'commandParams':[],'formatGroupId':'listIndent'},function(_0x1c3c36){const _0x8b678b=new Set();for(const _0x371752 of _0x1c3c36){let _0x567b3b=_0x371752['nextSibling'];for(;_0x567b3b&&_0x567b3b['getAttribute']('listIndent')>_0x371752['getAttribute']('listIndent');)_0x8b678b['add'](_0x567b3b),_0x567b3b=_0x567b3b['nextSibling'];}return Array['from'](_0x8b678b);}(_0x597462));});};}_0x10b44c['enableCommand']('numberedList',_0x2bb294('numberedList')),_0x10b44c['enableCommand']('bulletedList',_0x2bb294('bulletedList')),_0x467dcf&&_0x10b44c['enableCommand']('todoList',_0x2bb294('todoList')),_0x10b44c['enableCommand']('indentList',_0x820a1c('indentList')),_0x10b44c['enableCommand']('outdentList',_0x820a1c('outdentList')),_0x467dcf&&_0x10b44c['enableCommand']('checkTodoList',()=>{const _0x344c81=_0x2456c7['commands']['get']('checkTodoList'),_0x4cbb49=Array['from'](_0x344c81['_selectedElements']);_0x4cbb49['filter'](_0x3c2c1b=>_0x3c2c1b['getAttribute']('todoListChecked')!=_0x344c81['value']),_0x2456c7['model']['change'](()=>{for(const _0x4387c4 of _0x4cbb49)_0x10b44c['markBlockFormat'](_0x4387c4,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x344c81['value']}]});});}),_0x10b44c['descriptionFactory']['registerElementLabel']('listItem',_0x1cf2eb=>o(_0xae7156,'ELEMENT_LIST_ITEM',_0x1cf2eb)),_0x10b44c['descriptionFactory']['registerDescriptionCallback'](_0x5ebdc2=>{if('formatBlock'!=_0x5ebdc2['type']&&'formatInline'!=_0x5ebdc2['type'])return;const {data:_0x124ccc}=_0x5ebdc2;if(_0x124ccc){if('numberedList'==_0x124ccc['commandName']||'bulletedList'==_0x124ccc['commandName']||'todoList'==_0x124ccc['commandName'])switch(_0x124ccc['commandName']['replace']('List','')){case'bulleted':return _0x5af14f(o(_0xae7156,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5af14f(o(_0xae7156,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5af14f(o(_0xae7156,'ELEMENT_TODO_LIST'));}if('indentList'==_0x124ccc['commandName'])return{'type':'format','content':o(_0xae7156,'*Indent:*\x20%0',o(_0xae7156,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x124ccc['commandName'])return{'type':'format','content':o(_0xae7156,'*Outdent:*\x20%0',o(_0xae7156,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x124ccc['commandName'])return _0x124ccc['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xae7156,'*Check\x20item*')}:{'type':'format','content':o(_0xae7156,'*Uncheck\x20item*')};}function _0x5af14f(_0x1549ab){return{'type':'format','content':o(_0xae7156,'*Change\x20to:*\x20%0',_0x1549ab)};}});}}function Le(_0x51cfb1){const _0xd15380=_0x51cfb1['getAttribute']('listIndent');if(0x0==_0xd15380)return _0x51cfb1;let _0x219067=_0x51cfb1;for(;_0x51cfb1['previousSibling']&&_0x51cfb1['previousSibling']['is']('element','listItem');){const _0x2e2db0=_0x51cfb1['previousSibling']['getAttribute']('listIndent');if(_0x2e2db0==_0xd15380)_0x219067=_0x51cfb1['previousSibling'];else{if(_0x2e2db0<_0xd15380)break;}_0x51cfb1=_0x51cfb1['previousSibling'];}return _0x219067;}function Ee(_0x59fcc0){const _0x497936=[];if(_0x59fcc0['is']('element','listItem')&&_0x59fcc0['getAttribute']('listIndent')>0x0){let _0x53b9cd=_0x59fcc0['nextSibling'];for(;_0x53b9cd&&'listItem'==_0x53b9cd['name']&&_0x53b9cd['getAttribute']('listIndent')==_0x59fcc0['getAttribute']('listIndent');)_0x497936['push'](_0x53b9cd),_0x53b9cd=_0x53b9cd['nextSibling'];}return _0x497936;}class Q extends _0x441617{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x1364b1=this['editor']['config']['get']('list.properties'),_0x1be5b2=this['editor']['plugins']['get']('TrackChangesEditing');_0x1364b1['styles']&&_0x1be5b2['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x1364b1['reversed']&&_0x1be5b2['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x1364b1['startIndex']&&_0x1be5b2['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1be5b2['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0xdb181e,_0x4ba1b5={}){const _0x20efd1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4a486d=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x20efd1['markMultiRangeBlockFormat'](_0x4a486d,{'commandName':'listStyle','commandParams':[{'type':_0x4ba1b5['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x713af6,_0x198155={}){const _0x212ea4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4a3293=this['_getSuggestionBlocks'](_0xb57935=>_0xb57935['is']('element','listItem')&&'numbered'===_0xb57935['getAttribute']('listType'));if(_0x4a3293['length']<0x1)return;const _0x1fbdbc=_0x4a3293['map'](_0xe104b6=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xe104b6,'before'),this['editor']['model']['createPositionAt'](_0xe104b6,0x0)));this['editor']['model']['change'](()=>{_0x212ea4['markMultiRangeBlockFormat'](_0x1fbdbc,{'commandName':'listReversed','commandParams':[{'reversed':_0x198155['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0xbf58c0,_0x3bd00d={}){const _0x134ea6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x95544d=this['_getSuggestionBlocks'](_0x287130=>_0x287130['is']('element','listItem')&&'numbered'===_0x287130['getAttribute']('listType'));if(_0x95544d['length']<0x1)return;const _0x3451f6=_0x95544d['map'](_0x2e7931=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2e7931,'before'),this['editor']['model']['createPositionAt'](_0x2e7931,0x0)));this['editor']['model']['change'](()=>{_0x134ea6['markMultiRangeBlockFormat'](_0x3451f6,{'commandName':'listStart','commandParams':[{'startIndex':_0x3bd00d['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x5d0d1c){if('formatBlock'!=_0x5d0d1c['type']&&'formatInline'!=_0x5d0d1c['type'])return;const _0x3fe95d=this['editor']['locale'],{data:_0x3df116}=_0x5d0d1c;if(!_0x3df116)return;let _0x3145c6,_0x548b10;switch(_0x3df116['commandName']){case'listStyle':_0x3145c6='*Change\x20to:*\x20%0',_0x548b10={'type':'format','content':o(_0x3fe95d,_0x3145c6,o(_0x3fe95d,this['_getTranslationKeyForListStyle'](_0x3df116['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3145c6=_0x3df116['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x548b10={'type':'format','content':o(_0x3fe95d,_0x3145c6)};break;case'listStart':_0x3145c6='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x548b10={'type':'format','content':o(_0x3fe95d,_0x3145c6,_0x3df116['commandParams'][0x0]['startIndex'])};}return _0x548b10;}['_getSuggestionBlocksForListStyle'](){const _0x308eb0=this['editor']['plugins']['get']('LegacyListUtils');let _0x843db3=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x843db3[0x0]?.['is']('element','listItem')&&_0x843db3['unshift'](..._0x308eb0['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x843db3[_0x843db3['length']-0x1]?.['is']('element','listItem')&&_0x843db3['push'](..._0x308eb0['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x843db3=[...new Set(_0x843db3)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x843db3=_0x843db3['filter'](_0x3eda32=>_0x3eda32['is']('element','listItem'))),_0x843db3;}['_getSuggestionBlocks'](_0x7df112){const _0x12be7e=this['editor']['plugins']['get']('LegacyListUtils');let _0x1d1ba2=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x7df112)['map'](_0x32fef0=>{const _0x1bd06e=this['editor']['model']['createPositionAt'](_0x32fef0,0x0);return[..._0x12be7e['getSiblingNodes'](_0x1bd06e,'backward'),..._0x12be7e['getSiblingNodes'](_0x1bd06e,'forward')];})['flat']();return _0x1d1ba2=[...new Set(_0x1d1ba2)],_0x1d1ba2;}['_getTranslationKeyForListStyle'](_0x1f96b3){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x1f96b3)||'default')['toUpperCase']()+'_LIST_'+_0x1f96b3['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x441617{['afterInit'](){const _0xc4171a=this['editor'];if(!_0xc4171a['plugins']['has']('MediaEmbedEditing'))return;const _0x154506=_0xc4171a['plugins']['get']('TrackChangesEditing'),_0x9290e8=_0xc4171a['locale'];_0x154506['enableCommand']('mediaEmbed'),_0x154506['descriptionFactory']['registerElementLabel']('media',_0x303bb6=>o(_0x9290e8,'ELEMENT_MEDIA',_0x303bb6)),_0xc4171a['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x9ed41a,{writer:_0x36145c,options:_0x14b38a})=>{if(_0x14b38a['showSuggestionHighlights'])return _0x36145c['createEmptyElement']('div');},'converterPriority':'high'}),_0xc4171a['data']['downcastDispatcher']['on']('attribute:url:media',(_0x556201,_0x274989,_0x4b656e)=>{_0x4b656e['options']['showSuggestionHighlights']&&_0x556201['stop']();},{'priority':'high'});}}class pt extends _0x441617{['afterInit'](){const _0x5b6405=this['editor'];_0x5b6405['plugins']['has']('MentionEditing')&&_0x5b6405['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x441617{['afterInit'](){const _0x50fb37=this['editor'];if(!_0x50fb37['plugins']['has']('MergeFieldsEditing'))return;const _0x5056e0=_0x50fb37['plugins']['get']('TrackChangesEditing'),_0x52e44d=_0x50fb37['locale'];_0x5056e0['enableCommand']('insertMergeField'),_0x5056e0['enableCommand']('insertMergeFieldBlock'),_0x5056e0['enableCommand']('insertMergeFieldImage'),_0x5056e0['descriptionFactory']['registerElementLabel']('mergeField',_0x2207c7=>o(_0x52e44d,'ELEMENT_MERGE_FIELD',_0x2207c7)),_0x5056e0['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x5242bf=>o(_0x52e44d,'ELEMENT_MERGE_FIELD',_0x5242bf)),_0x5056e0['descriptionFactory']['registerDescriptionCallback'](_0x2b3d84=>{if('insertion'!=_0x2b3d84['type']&&'deletion'!=_0x2b3d84['type'])return;const _0x4703e5=_0x2b3d84['getContainedElement']();if(null==_0x4703e5)return;const _0x4f1fcf=_0x50fb37['plugins']['get']('MergeFieldsEditing');let _0x290c73;switch(_0x4f1fcf['getMergeFieldType'](_0x4703e5)){case null:return;case'image':{const _0x36876b=_0x4f1fcf['unwrapAffixes'](_0x4703e5['getAttribute']('src'));_0x290c73=_0x4f1fcf['getLabel'](_0x36876b)||_0x36876b;break;}default:{const _0x391ca8=_0x4703e5['getAttribute']('id');_0x290c73=_0x4f1fcf['getLabel'](_0x391ca8)||_0x391ca8;break;}}return'insertion'==_0x2b3d84['type']?{'type':'insertion','content':o(_0x52e44d,'*Insert:*\x20%0','\x22'+_0x290c73+'\x22\x20'+o(_0x52e44d,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x52e44d,'*Remove:*\x20%0','\x22'+_0x290c73+'\x22\x20'+o(_0x52e44d,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x441617{['afterInit'](){const _0xde6527=this['editor'],_0x30b4c4=_0xde6527['plugins']['get']('TrackChangesEditing');_0xde6527['plugins']['has']('MultiLevelList')&&(_0x30b4c4['enableDefaultAttributesIntegration']('multiLevelList'),_0x30b4c4['registerBlockAttribute']('listMarkerStyle'),_0x30b4c4['descriptionFactory']['registerDescriptionCallback'](_0x39a321=>this['handleDescriptions'](_0x39a321)));}['handleDescriptions'](_0x2714ae){const _0x31e6fc=this['editor']['locale'],{data:_0x6fa0de}=_0x2714ae,_0x27c774={'type':'format','content':''};if(_0x6fa0de&&'listMarkerStyle'==_0x6fa0de['key']){if(!_0x6fa0de['oldValue'])return{'type':'format','content':o(_0x31e6fc,'*Set\x20format:*\x20%0',o(_0x31e6fc,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x6fa0de['newValue']+')'};if(!_0x6fa0de['newValue']){let _0x340b39=_0x2714ae['head'];for(;_0x340b39;){if(_0x340b39['data']&&'listType'==_0x340b39['data']['key']&&_0x340b39['data']['newValue'])return _0x27c774;_0x340b39=_0x340b39['next'];}return{'type':'format','content':o(_0x31e6fc,'*Remove\x20format:*\x20%0',o(_0x31e6fc,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x6fa0de['oldValue']+')'};}}}}class bt extends _0x441617{['afterInit'](){const _0x40b17a=this['editor'];if(!_0x40b17a['plugins']['has']('PageBreakEditing'))return;_0x40b17a['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x15b069=_0x40b17a['plugins']['get']('TrackChangesEditing'),_0x4c62b9=_0x40b17a['locale'];_0x15b069['descriptionFactory']['registerElementLabel']('pageBreak',_0x16bcbd=>o(_0x4c62b9,'ELEMENT_PAGE_BREAK',_0x16bcbd));}}class yt extends _0x441617{['afterInit'](){const _0x58df0a=this['editor'];if(!_0x58df0a['plugins']['has']('Paragraph'))return;const _0x380c26=_0x58df0a['locale'],_0x205f7e=_0x58df0a['plugins']['get']('TrackChangesEditing');_0x205f7e['descriptionFactory']['registerElementLabel']('paragraph',_0xa533db=>o(_0x380c26,'ELEMENT_PARAGRAPH',_0xa533db)),_0x205f7e['enableDefaultAttributesIntegration']('paragraph'),_0x205f7e['enableCommand']('insertParagraph'),_0x58df0a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x58df0a),{'priority':'highest'}),_0x58df0a['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x8a9c7f,_0x587ec1,_0x1b2b42)=>{_0x1b2b42['options']['showSuggestionHighlights']&&nr(_0x58df0a,{'showActiveMarker':!0x1})(_0x8a9c7f,_0x587ec1,_0x1b2b42);},{'priority':'highest'});const _0x17e791=_0x205f7e['descriptionFactory'];_0x17e791['registerDescriptionCallback'](_0x1a71a6=>{if('insertion'!==_0x1a71a6['type'])return;const {start:_0x1ed984,end:_0x8afd76}=_0x1a71a6['getFirstRange']();if(!_0x1ed984['isTouching'](_0x8afd76)||!_0x1ed984['nodeAfter'])return;const _0x2684eb=_0x58df0a['model']['schema'],_0x3e6902=_0x1ed984['nodeAfter'];return _0x2684eb['isBlock'](_0x3e6902)&&!_0x2684eb['isLimit'](_0x3e6902)&&_0x2684eb['checkChild'](_0x3e6902,'$text')?{'type':'insertion','content':o(_0x380c26,'*Insert:*\x20%0',_0x17e791['getItemLabel'](_0x3e6902,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x43a804=this['editor'],_0x22b8d8=_0x43a804['locale'];_0x43a804['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5de949=>{if('formatBlock'!=_0x5de949['type'])return;const {data:_0x32f5d2}=_0x5de949;return _0x32f5d2&&'paragraph'==_0x32f5d2['commandName']?{'type':'format','content':o(_0x22b8d8,'*Change\x20to:*\x20%0',o(_0x22b8d8,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x3be2ae,{showActiveMarker:_0x3e4a6e=!0x0}={}){return(_0x1ba008,_0x2e138d,_0x5e6280)=>{const _0x78234a=_0x3be2ae['plugins']['get']('TrackChangesEditing'),_0x519403=_0x2e138d['markerRange']['start'],_0x2a79d1=_0x2e138d['markerRange']['end'],_0xc0de16=_0x3be2ae['model']['schema'];if(!_0x519403['isTouching'](_0x2a79d1)||!_0x519403['nodeAfter'])return;const _0x256518=_0x519403['nodeAfter'];if(_0xc0de16['isBlock'](_0x256518)&&!_0xc0de16['isLimit'](_0x256518)&&_0xc0de16['checkChild'](_0x256518,'$text')){if(!_0x5e6280['consumable']['consume'](_0x2e138d['markerRange'],_0x1ba008['name']))return;const {authorId:_0x3b7c2a}=_0x78234a['_splitMarkerName'](_0x2e138d['markerName']),_0x1dd2ed=_0x5e6280['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x3b7c2a}),_0x3eeb78=_0x5e6280['mapper']['toViewPosition'](_0x2a79d1);_0x3e4a6e&&_0x78234a['activeMarkers']['includes'](_0x2e138d['markerName'])&&_0x5e6280['writer']['addClass']('ck-suggestion-marker--active',_0x1dd2ed),_0x5e6280['writer']['insert'](_0x3eeb78,_0x1dd2ed),_0x5e6280['mapper']['bindElementToMarker'](_0x1dd2ed,_0x2e138d['markerName']);}};}class jt extends _0x441617{['afterInit'](){const _0x174cea=this['editor'];_0x174cea['commands']['get']('replaceSource')&&_0x174cea['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x441617{['afterInit'](){const _0x24eced=this['editor'];if(!_0x24eced['plugins']['has']('RemoveFormatEditing'))return;_0x24eced['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2886e7=this['editor'];_0x2886e7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x59ab74=>{if('formatBlock'!=_0x59ab74['type']&&'formatInline'!=_0x59ab74['type'])return;const {data:_0x2755bc}=_0x59ab74;return _0x2755bc&&'removeFormat'==_0x2755bc['commandName']?{'type':'format','content':o(_0x2886e7['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x441617{['afterInit'](){const _0x4257cd=this['editor'];if(!_0x4257cd['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x8e0559=_0x4257cd['plugins']['get']('TrackChangesEditing');_0x8e0559['enableCommand']('goToPreviousRestrictedEditingException'),_0x8e0559['enableCommand']('goToNextRestrictedEditingException');const _0x570581=_0x4257cd['plugins']['get']('RestrictedEditingModeEditing');_0x570581['enableCommand']('trackChanges'),_0x570581['enableCommand']('acceptSuggestion'),_0x570581['enableCommand']('discardSuggestion'),_0x570581['enableCommand']('acceptAllSuggestions'),_0x570581['enableCommand']('discardAllSuggestions'),_0x570581['enableCommand']('acceptSelectedSuggestions'),_0x570581['enableCommand']('discardSelectedSuggestions');}}class It extends _0x441617{static get['requires'](){return[_0x560f9e];}['init'](){const _0xad6069=this['editor'],_0x48e797=_0xad6069['plugins']['get']('TrackChangesEditing');_0x48e797['enableCommand']('shiftEnter'),_0xad6069['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0xad6069),{'priority':'high'}),_0xad6069['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0xad6069),{'priority':'high'}),_0xad6069['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xe30dbf,_0x357ebf,_0x1bc69c)=>{_0x1bc69c['options']['showSuggestionHighlights']&&je(_0xad6069,{'showActiveMarker':!0x1})(_0xe30dbf,_0x357ebf,_0x1bc69c);}),_0x48e797['descriptionFactory']['registerElementLabel']('softBreak',_0x46f081=>o(_0xad6069['locale'],'ELEMENT_LINE_BREAK',_0x46f081));}}function je(_0x58c146,{showActiveMarker:_0x1171bb=!0x0}={}){return(_0x2c1102,_0x223832,_0x119999)=>{const _0x5727f6=_0x58c146['plugins']['get']('TrackChangesEditing');if(!_0x119999['consumable']['test'](_0x223832['markerRange'],_0x2c1102['name']))return;const _0x4e0141=_0x58c146['model'];for(const _0x5c72e0 of _0x223832['markerRange']['getItems']()){if(!_0x5c72e0['is']('element','softBreak'))continue;const _0x101bc0='deletion'==_0x223832['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x197027}=_0x5727f6['_splitMarkerName'](_0x223832['markerName']),_0x3082cf=_0x119999['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x101bc0,'data-author-id':_0x197027}),_0x39c8fb=_0x119999['mapper']['toViewPosition'](_0x4e0141['createPositionBefore'](_0x5c72e0));_0x1171bb&&_0x5727f6['activeMarkers']['includes'](_0x223832['markerName'])&&_0x119999['writer']['addClass']('ck-suggestion-marker--active',_0x3082cf),_0x119999['writer']['insert'](_0x39c8fb,_0x3082cf),_0x119999['mapper']['bindElementToMarker'](_0x3082cf,_0x223832['markerName']);}};}class vt extends _0x441617{['afterInit'](){const _0x32d82c=this['editor'],_0xe24ce7=_0x32d82c['model'],_0x1e2498=_0x32d82c['locale'];if(!_0x32d82c['plugins']['has']('StandardEditingModeEditing'))return;const _0x241721=_0x32d82c['plugins']['get']('TrackChangesEditing'),_0xec5fb2='restrictedEditingException',_0x37800a=_0x32d82c['commands']['get'](_0xec5fb2);_0x241721['enableCommand'](_0xec5fb2,(_0x3c8a7d,_0x26e101={})=>{const _0x3da2eb=_0xe24ce7['document']['selection'];if(_0x3da2eb['isCollapsed'])return void _0x3c8a7d(_0x26e101);const _0x152061=void 0x0!==_0x26e101['forceValue']?_0x26e101['forceValue']:!_0x37800a['value'];_0xe24ce7['change'](()=>{const _0x6f9577=Array['from'](_0x3da2eb['getRanges']());for(const _0x33596a of _0x6f9577){const _0x777a1=_0x152061?[_0x33596a]:io(_0xec5fb2,_0x33596a,_0xe24ce7);for(const _0x44b2dc of _0x777a1)_0x241721['markInlineFormat'](_0x44b2dc,{'commandName':_0xec5fb2,'commandParams':[{'forceValue':_0x152061}]});}});}),_0x241721['descriptionFactory']['registerDescriptionCallback'](_0x580007=>{if('formatBlock'!=_0x580007['type']&&'formatInline'!=_0x580007['type'])return;const {data:_0x24ee0c}=_0x580007;return _0x24ee0c&&_0x24ee0c['commandName']==_0xec5fb2?_0x24ee0c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1e2498,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x1e2498,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class _t extends _0x441617{['afterInit'](){const _0x5e2da5=this['editor'];if(!_0x5e2da5['plugins']['has']('Style')||!_0x5e2da5['plugins']['has']('DataSchema'))return;const _0x2f3d57=_0x5e2da5['plugins']['get']('TrackChangesEditing'),_0x259bc5=_0x5e2da5['locale'],_0x2ae425=_0x5e2da5['config']['get']('style')||{},_0x77fa60=_0x5e2da5['plugins']['get']('GeneralHtmlSupport'),_0x413ddf=_0x5e2da5['plugins']['get']('StyleUtils')['normalizeConfig'](_0x5e2da5['plugins']['get']('DataSchema'),_0x2ae425['definitions']);_0x2f3d57['enableDefaultAttributesIntegration']('style');const _0x3df41f=new Set();for(const _0x165afd of _0x413ddf['block']){const _0x145ba2=_0x77fa60['getGhsAttributeNameForElement'](_0x165afd['element']);_0x3df41f['add'](_0x145ba2);}const _0x5d354b=new Set();for(const _0x21e56d of _0x413ddf['inline']){const _0x44b6f3=_0x77fa60['getGhsAttributeNameForElement'](_0x21e56d['element']);_0x5d354b['add'](_0x44b6f3);for(const _0x5d4201 of _0x21e56d['ghsAttributes'])_0x5d354b['add'](_0x5d4201);}for(const _0x46feda of _0x3df41f)_0x2f3d57['registerBlockAttribute'](_0x46feda),_0x2f3d57['descriptionFactory']['registerAttributeLabel'](_0x46feda,o(_0x259bc5,'FORMAT_STYLE'));for(const _0x4b0239 of _0x5d354b)_0x2f3d57['registerInlineAttribute'](_0x4b0239),_0x2f3d57['descriptionFactory']['registerAttributeLabel'](_0x4b0239,o(_0x259bc5,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x18708a=this['editor'],_0x15e8f4=_0x18708a['locale'];_0x18708a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a75c5=>{if('formatBlock'!=_0x3a75c5['type']&&'formatInline'!=_0x3a75c5['type'])return;const {data:_0x1ffb0b}=_0x3a75c5;return _0x1ffb0b&&'style'===_0x1ffb0b['commandName']?_0x1ffb0b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x15e8f4,'*Set\x20format:*\x20%0',_0x1ffb0b['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x15e8f4,'*Remove\x20format:*\x20%0',_0x1ffb0b['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x441617{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x280554){super(_0x280554),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x288d6a=this['editor'],_0x302e00=_0x288d6a['model']['document']['selection'];if(!_0x288d6a['plugins']['has']('TableEditing'))return;const _0x4c7d6a=_0x288d6a['locale'],_0x58b615=_0x288d6a['plugins']['get']('TrackChangesEditing'),_0x4eefc7=_0x288d6a['plugins']['get']('TableUtils');_0x58b615['descriptionFactory']['registerElementLabel']('table',_0x3fdfec=>o(_0x4c7d6a,'ELEMENT_TABLE',_0x3fdfec)),this['_setupColumnsRowsFixing'](),_0x58b615['enableCommand']('insertTable'),_0x58b615['enableCommand']('selectTableRow'),_0x58b615['enableCommand']('selectTableColumn');for(const _0x2497a4 of['insertTableRowAbove','insertTableRowBelow']){const _0x470223=_0x288d6a['commands']['get'](_0x2497a4);_0x58b615['enableCommand'](_0x2497a4,_0x4b42b1=>{_0x288d6a['model']['change'](_0x288e15=>{_0x4b42b1();const _0x523453='above'===_0x470223['order'],_0x24768c=_0x4eefc7['getSelectionAffectedTableCells'](_0x302e00),_0x4d45b4=_0x4eefc7['getRowIndexes'](_0x24768c),_0x47cd7d=_0x523453?_0x4d45b4['first']-0x1:_0x4d45b4['last']+0x1,_0x178e7a=_0x24768c[0x0]['findAncestor']('table'),_0x3acd74=_0x4eefc7['createTableWalker'](_0x178e7a,{'startRow':_0x47cd7d,'endRow':_0x47cd7d}),_0x3ca259=Array['from'](_0x3acd74)['map'](_0x5b9cc2=>_0x288e15['createRangeOn'](_0x5b9cc2['cell']));_0x58b615['markMultiRangeInsertion'](_0x3ca259,'tableRow');});});}for(const _0xe997ab of['insertTableColumnLeft','insertTableColumnRight']){const _0x2711bc=_0x288d6a['commands']['get'](_0xe997ab);_0x58b615['enableCommand'](_0xe997ab,_0x163803=>{_0x288d6a['model']['change'](_0x80973=>{_0x163803();const _0x6879c0='left'===_0x2711bc['order'],_0x31ff11=_0x4eefc7['getSelectionAffectedTableCells'](_0x302e00),_0x50c9cc=_0x4eefc7['getColumnIndexes'](_0x31ff11),_0x53ace4=_0x6879c0?_0x50c9cc['first']-0x1:_0x50c9cc['last']+0x1,_0x1869cb=_0x31ff11[0x0]['findAncestor']('table'),_0x308c4a=_0x4eefc7['createTableWalker'](_0x1869cb,{'startRow':0x0,'column':_0x53ace4,'includeAllSlots':!0x1}),_0x42139c=Array['from'](_0x308c4a)['map'](_0x4cb7e3=>_0x80973['createRangeOn'](_0x4cb7e3['cell']));_0x58b615['markMultiRangeInsertion'](_0x42139c,'tableColumn');});});}for(const _0x5c128a of['removeTableRow','removeTableColumn']){const _0x355275=_0x5c128a['substr'](0xb),_0x253bee=_0x355275['toLowerCase'](),_0x5498e4=_0x253bee['substr'](0x0,0x3)+'span',_0x16171a='table'+_0x355275,_0x54ae48='min'+_0x355275,_0x4c562f='max'+_0x355275;_0x58b615['enableCommand'](_0x5c128a,()=>{_0x288d6a['model']['change'](_0x10b035=>{const _0x353dae=_0x4eefc7['getSelectionAffectedTableCells'](_0x302e00),_0x14d082=_0x353dae[0x0]['findAncestor']('table');let _0x555fd5;if('removeTableRow'==_0x5c128a){const _0x53c68a=_0x4eefc7['getRowIndexes'](_0x353dae);_0x555fd5={'startRow':_0x53c68a['first'],'endRow':_0x53c68a['last'],'includeAllSlots':!0x0};}else{const _0x6cbe1=_0x4eefc7['getColumnIndexes'](_0x353dae);_0x555fd5={'startColumn':_0x6cbe1['first'],'endColumn':_0x6cbe1['last'],'includeAllSlots':!0x0};}const _0x57fab5=_0x4eefc7['createTableWalker'](_0x14d082,_0x555fd5),_0x20ac8a=Array['from'](_0x57fab5)['map'](({cell:_0x170c3f})=>_0x170c3f),_0x3d5abb=Ne(_0x20ac8a['filter'](_0x54cb74=>_0x54cb74['hasAttribute'](_0x5498e4))),_0x3d2e3b=Ne(_0x20ac8a['filter'](_0x558d2e=>!_0x558d2e['hasAttribute'](_0x5498e4)))['map'](_0x2d56e9=>_0x10b035['createRangeOn'](_0x2d56e9)),_0x28ca58=_0x58b615['markMultiRangeDeletion'](_0x3d2e3b,_0x16171a);if(_0x28ca58&&('tableRow'==_0x28ca58['subType']||'tableColumn'==_0x28ca58['subType'])){const _0x2d674f=this['_getSuggestionCoords'](_0x28ca58);for(const _0xec060e of _0x3d5abb){const _0xc51716=_0x10b035['createRangeOn'](_0xec060e),_0x2a3e46=_0x4eefc7['getCellLocation'](_0xec060e),_0x4346e4=_0xec060e['getAttribute'](_0x5498e4)-0x1,_0x3aebb9=_0x2d674f[_0x54ae48],_0x36713b=_0x2d674f[_0x4c562f];_0x3aebb9<=_0x2a3e46[_0x253bee]&&_0x2a3e46[_0x253bee]+_0x4346e4<=_0x36713b&&_0x28ca58['addRange'](_0xc51716);}}});});}function _0x27b2fd(_0x3f5721){const _0x4634ff=Array['from'](_0x302e00['getRanges']())['map'](_0xfbd788=>_0x151380['fromRange'](_0xfbd788));_0x288d6a['model']['change'](_0x67678f=>{const _0x38d019=_0x67678f['batch'];_0x3f5721=_0x3f5721['filter'](_0x37cd21=>'$graveyard'!=_0x37cd21['root']['rootName']),_0x67678f['setSelection'](_0x3f5721),_0x288d6a['commands']['get']('removeTableRow')['refresh'](),_0x288d6a['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x288d6a['model']['enqueueChange'](()=>{_0x288d6a['model']['enqueueChange'](_0x38d019,_0xd8674c=>{const _0x4b6b8b=_0x4634ff['filter'](_0x1bfb8c=>'$graveyard'!=_0x1bfb8c['root']['rootName']);_0x4b6b8b['length']>0x0&&_0xd8674c['setSelection'](_0x4b6b8b);for(const _0x45f62f of _0x4634ff)_0x45f62f['detach']();});});});}function _0x48f7c1(_0x2002ab){_0x288d6a['model']['change'](_0x290c52=>{const _0x5f4863=Array['from'](_0x302e00['getRanges']())['map'](_0x3dd38a=>_0x151380['fromRange'](_0x3dd38a)),_0x4492fe=[];for(const _0x4d967c of _0x2002ab)for(const _0x9a3bf1 of _0x4d967c['getItems']({'shallow':!0x0}))_0x4492fe['push'](_0x9a3bf1);for(const _0xff2403 of _0x4492fe)'$graveyard'!=_0xff2403['root']['rootName']&&(_0x290c52['setSelection'](_0x290c52['createPositionAt'](_0xff2403,0x0)),_0x288d6a['commands']['get']('removeTableColumn')['refresh'](),_0x288d6a['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0xb7f709=_0x5f4863['filter'](_0x387970=>'$graveyard'!=_0x387970['root']['rootName']);_0xb7f709['length']>0x0&&_0x290c52['setSelection'](_0xb7f709);for(const _0x320554 of _0x5f4863)_0x320554['detach']();});}function _0x318f52(_0x3dfd44,_0x262c98){return _0x262c98['every'](_0x222ff0=>_0x3dfd44['some'](_0x26af50=>_0x26af50['end']['isEqual'](_0x222ff0['start'])||_0x222ff0['end']['isEqual'](_0x26af50['start'])));}function _0x2548b6(_0x4f0cd4,_0x5f4e38){return!_0x4f0cd4['some'](_0x33d01c=>_0x5f4e38['some'](_0x138461=>_0x33d01c['isIntersecting'](_0x138461)))&&_0x4f0cd4['some'](_0x165c37=>_0x5f4e38['some'](_0x2ee23d=>_0x165c37['end']['isTouching'](_0x2ee23d['start'])));}_0x288d6a['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xd0049c,_0x3f7d66,_0x10fcbf)=>{if(!_0x10fcbf['options']['showSuggestionHighlights'])return;const _0x4b3976=_0x3f7d66['item'];if(!_0x4b3976)return;const _0x58f857=_0x10fcbf['mapper']['toViewElement'](_0x4b3976);function _0x36ede1(_0x8276c2){return Array['isArray'](_0x8276c2)?_0x8276c2:[_0x8276c2];}_0x58f857&&'tableCell'===_0x4b3976['name']&&_0x4460d9(_0x58f857,_0x10fcbf['writer'],(_0x59da38,_0x821208,_0x58806c)=>_0x58806c['addClass'](_0x36ede1(_0x821208['classes']),_0x59da38),(_0x3025bf,_0x3b1f0c,_0x10a0ab)=>_0x10a0ab['removeClass'](_0x36ede1(_0x3b1f0c['classes']),_0x3025bf));},{'priority':'highest'}),_0x58b615['descriptionFactory']['registerDescriptionCallback'](_0x5dc2a8=>{if('insertion'!=_0x5dc2a8['type']&&'deletion'!=_0x5dc2a8['type'])return;const _0x4c1c70=_0x5dc2a8['getContainedElement']();if(null!=_0x4c1c70&&_0x4c1c70['is']('element','table')){if('insertion'==_0x5dc2a8['type']){const _0x56107f=_0x5dc2a8['getItems']()['filter'](_0x109a8e=>_0x109a8e['is']('$textProxy'))['map'](_0x475eab=>_0x475eab['data']);if(_0x56107f['length'])return{'type':'insertion','content':o(_0x4c7d6a,'*Insert:*\x20%0',o(_0x4c7d6a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x56107f['join']('\x20')+'\x22'))};}if('deletion'==_0x5dc2a8['type']){const _0x42c061=_0x5dc2a8['getItems']()['filter'](_0x2abb1c=>_0x2abb1c['is']('$textProxy'))['map'](_0x18bf14=>_0x18bf14['data']);if(_0x42c061['length'])return{'type':'deletion','content':o(_0x4c7d6a,'*Remove:*\x20%0',o(_0x4c7d6a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x42c061['join']('\x20')+'\x22'))};}}}),_0x58b615['descriptionFactory']['registerDescriptionCallback'](_0x2246a1=>{if('tableRow'==_0x2246a1['subType']){const _0x1ac016=_0x2246a1['getItems']()['filter'](_0x2be796=>_0x2be796['is']('$textProxy'))['map'](_0x1ac7e1=>_0x1ac7e1['data']),_0x492889=this['_getSuggestionCoords'](_0x2246a1),_0x491a55=_0x492889['maxRow']-_0x492889['minRow']+0x1;if('insertion'==_0x2246a1['type'])return _0x1ac016['length']?{'type':'insertion','content':o(_0x4c7d6a,'*Insert:*\x20%0',o(_0x4c7d6a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x491a55,'\x22'+_0x1ac016['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x4c7d6a,'*Insert:*\x20%0',o(_0x4c7d6a,'ELEMENT_TABLE_ROW',_0x491a55))};if('deletion'==_0x2246a1['type'])return _0x1ac016['length']?{'type':'deletion','content':o(_0x4c7d6a,'*Remove:*\x20%0',o(_0x4c7d6a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x491a55,'\x22'+_0x1ac016['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x4c7d6a,'*Remove:*\x20%0',o(_0x4c7d6a,'ELEMENT_TABLE_ROW',_0x491a55))};}if('tableColumn'==_0x2246a1['subType']){const _0x5b9154=_0x2246a1['getItems']()['filter'](_0xb903b3=>_0xb903b3['is']('$textProxy'))['map'](_0x5879e0=>_0x5879e0['data']),_0xc230d0=this['_getSuggestionCoords'](_0x2246a1),_0x180167=_0xc230d0['maxColumn']-_0xc230d0['minColumn']+0x1;if('insertion'==_0x2246a1['type'])return _0x5b9154['length']?{'type':'insertion','content':o(_0x4c7d6a,'*Insert:*\x20%0',o(_0x4c7d6a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x180167,'\x22'+_0x5b9154['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x4c7d6a,'*Insert:*\x20%0',o(_0x4c7d6a,'ELEMENT_TABLE_COLUMN',_0x180167))};if('deletion'==_0x2246a1['type'])return _0x5b9154['length']?{'type':'deletion','content':o(_0x4c7d6a,'*Remove:*\x20%0',o(_0x4c7d6a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x180167,'\x22'+_0x5b9154['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x4c7d6a,'*Remove:*\x20%0',o(_0x4c7d6a,'ELEMENT_TABLE_COLUMN',_0x180167))};}}),_0x58b615['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x27b2fd),_0x58b615['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x27b2fd),_0x58b615['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x48f7c1),_0x58b615['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x48f7c1),_0x58b615['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x318f52),_0x58b615['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x318f52),_0x58b615['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x2548b6),_0x58b615['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x2548b6);}['_acceptFormatSuggestionCallbackFactory'](){const _0x4a1385=this['editor'],_0x8d6f9c=_0x4a1385['model']['document']['selection'];return(_0x563ef8,_0x5824bd)=>{_0x4a1385['model']['change'](_0x3bd24d=>{const {commandName:_0x2af6f6,commandParams:_0x3e568}=_0x5824bd;let _0x3838a8=_0x563ef8[0x0]['end']['nodeBefore'];_0x3e568&&_0x3e568[0x0]&&!0x1===_0x3e568[0x0]['forceValue']&&(_0x3838a8=_0x563ef8[0x0]['start']['nodeAfter']);const _0x1a9384=_0x3bd24d['createRangeIn'](_0x3838a8);if('$graveyard'==_0x1a9384['root']['rootName'])return;const _0x291084=Array['from'](_0x8d6f9c['getRanges']())['map'](_0x13eac9=>_0x151380['fromRange'](_0x13eac9));_0x3bd24d['setSelection'](_0x1a9384),_0x4a1385['commands']['get'](_0x2af6f6)['refresh'](),_0x3e568['push']({'forceDefaultExecution':!0x0}),_0x4a1385['execute'](_0x2af6f6,..._0x3e568);const _0x54c80f=_0x291084['filter'](_0x35f9d6=>'$graveyard'!=_0x35f9d6['root']['rootName']);_0x54c80f['length']>0x0&&_0x3bd24d['setSelection'](_0x54c80f);for(const _0x5b9c6e of _0x291084)_0x5b9c6e['detach']();});};}['_getCoordsForCells'](_0x5ac8ba){const _0x134942=this['editor']['plugins']['get']('TableUtils');let _0x4dbfb7=Number['MAX_SAFE_INTEGER'],_0x1c7489=Number['MIN_SAFE_INTEGER'],_0x50ba0e=Number['MAX_SAFE_INTEGER'],_0x12799b=Number['MIN_SAFE_INTEGER'];for(const _0x11c794 of _0x5ac8ba){if('$graveyard'==_0x11c794['root']['rootName'])continue;const {row:_0x56ea1d,column:_0x5909c3}=_0x134942['getCellLocation'](_0x11c794),_0x2de6d1=_0x11c794['hasAttribute']('rowspan')?_0x11c794['getAttribute']('rowspan')-0x1:0x0,_0x3a9de4=_0x11c794['hasAttribute']('colspan')?_0x11c794['getAttribute']('colspan')-0x1:0x0;_0x4dbfb7=_0x56ea1d<_0x4dbfb7?_0x56ea1d:_0x4dbfb7,_0x1c7489=_0x56ea1d+_0x2de6d1>_0x1c7489?_0x56ea1d+_0x2de6d1:_0x1c7489,_0x50ba0e=_0x5909c3<_0x50ba0e?_0x5909c3:_0x50ba0e,_0x12799b=_0x5909c3+_0x3a9de4>_0x12799b?_0x5909c3+_0x3a9de4:_0x12799b;}return{'minRow':_0x4dbfb7,'maxRow':_0x1c7489,'minColumn':_0x50ba0e,'maxColumn':_0x12799b};}['_setupColumnsRowsFixing'](){const _0x507347=this['editor'],_0x2a5666=_0x507347['plugins']['get']('TrackChangesEditing'),_0x2dcdf9=_0x507347['plugins']['get']('TableUtils');_0x507347['model']['document']['on']('change:data',()=>{const _0x4b02b0=Array['from'](_0x507347['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x239031,data:_0x5d7504}of _0x4b02b0){const {group:_0xb78861,id:_0x222c1d,subType:_0xb7cabb}=_0x2a5666['_splitMarkerName'](_0x239031);if('suggestion'!=_0xb78861)continue;if(null!=_0x5d7504['oldRange'])continue;const _0x54fdc5=_0x2a5666['getSuggestion'](_0x222c1d);this['_tablePostFixingSubtypes']['includes'](_0xb7cabb)&&this['_tableSuggestions']['add'](_0x54fdc5);}},{'priority':'low'});const _0x155538=(_0x1aa278,_0xc307d6)=>{let _0x23bfee=!0x1;const _0x2c9d29=_0xc307d6['createRangeOn'](_0x1aa278),_0x166b6e=_0x1aa278['findAncestor']('table'),_0x449ec6=_0x2dcdf9['getCellLocation'](_0x1aa278);for(const _0x553bde of this['_tableSuggestions']){const _0x14ead7=_0x553bde['subType'],_0x44f60d=_0x14ead7['startsWith']('tablePaste'),_0x772b16=_0x14ead7['substr'](_0x44f60d?0xa:0x5),_0x1ceee8=_0x772b16['toLowerCase'](),_0x3658bc=_0x1ceee8['substr'](0x0,0x3)+'span',_0x4ea1ca='min'+_0x772b16,_0x153d36='max'+_0x772b16;if(!_0x553bde['isInContent'])continue;if(_0x166b6e!=_0x553bde['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x553bde['isIntersectingWithRange'](_0x2c9d29))continue;const _0x1e3a5d=_0x1aa278['hasAttribute'](_0x3658bc)?_0x1aa278['getAttribute'](_0x3658bc)-0x1:0x0,_0x3dca21=this['_getSuggestionCoords'](_0x553bde),_0x39ba21=_0x3dca21[_0x4ea1ca],_0x3de4c8=_0x3dca21[_0x153d36];_0x39ba21<=_0x449ec6[_0x1ceee8]&&_0x449ec6[_0x1ceee8]+_0x1e3a5d<=_0x3de4c8&&(_0x553bde['addRange'](_0x2c9d29),_0x23bfee=!0x0);}return _0x23bfee;};_0x507347['model']['document']['registerPostFixer'](_0x3725f1=>{let _0x4662dc=!0x1;for(const _0x2748ca of _0x507347['model']['document']['differ']['getChanges']())if('insert'==_0x2748ca['type']){if('tableRow'==_0x2748ca['name']){for(const _0x3ae766 of _0x2748ca['position']['nodeAfter']['getChildren']())_0x4662dc=_0x4662dc||_0x155538(_0x3ae766,_0x3725f1);}else'tableCell'==_0x2748ca['name']&&(_0x4662dc=_0x4662dc||_0x155538(_0x2748ca['position']['nodeAfter'],_0x3725f1));}return _0x4662dc;});}['_getSuggestionCoords'](_0x1c1265){return this['_getCoordsForCells'](_0x1c1265['getRanges']()['map'](_0xc3bebc=>_0xc3bebc['start']['nodeAfter']));}}function Ne(_0x72b9e8){return Array['from'](new Set(_0x72b9e8)['values']());}class Nt extends _0x441617{static get['requires'](){return[Ct];}['afterInit'](){const _0x14d7d7=this['editor'],_0xd02686=_0x14d7d7['model']['document']['selection'],_0x978342=_0x14d7d7['locale'];if(!_0x14d7d7['plugins']['has']('TableEditing'))return;const _0x34f700=_0x14d7d7['plugins']['get']('TrackChangesEditing'),_0x65b867=_0x14d7d7['plugins']['get']('TableUtils'),_0x119a1e=_0x14d7d7['plugins']['get'](Ct);_0x119a1e['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x34f700['enableCommand']('mergeTableCells',()=>{const _0xe021b9=_0x65b867['getSelectionAffectedTableCells'](_0x14d7d7['model']['document']['selection']);_0x14d7d7['model']['change'](()=>{_0x34f700['markMultiRangeBlockFormat'](_0xe021b9,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x14d7d7['commands']['get']('mergeTableCells')['on']('execute',(_0x4337be,_0x2f5ddc)=>{_0x14d7d7['commands']['get']('trackChanges')['value']&&(_0x2f5ddc['length']>0x0&&_0x2f5ddc[_0x2f5ddc['length']-0x1]&&_0x2f5ddc[_0x2f5ddc['length']-0x1]['forceDefaultExecution']||_0x34f700['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x4337be['stop']());},{'priority':'highest'});for(const _0xedf5b5 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x220c45=_0x14d7d7['commands']['get'](_0xedf5b5);_0x34f700['enableCommand'](_0xedf5b5,()=>{const _0x1540dc=_0x14d7d7['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x45bdd0=>_0x45bdd0['is']('element','tableCell')),_0x28f33c=_0x220c45['value'];_0x14d7d7['model']['change'](()=>{_0x34f700['markMultiRangeBlockFormat']([_0x1540dc,_0x28f33c],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x1aab04 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x6e94fc=_0x14d7d7['commands']['get'](_0x1aab04);_0x34f700['enableCommand'](_0x1aab04,()=>{const _0x4faec7=_0x65b867['getSelectionAffectedTableCells'](_0x14d7d7['model']['document']['selection'])[0x0],_0x2ea865=_0x4faec7['findAncestor']('table'),{column:_0x11ac11,row:_0x50da16}=_0x65b867['getCellLocation'](_0x4faec7);let _0x178c00=[];if('horizontally'==_0x6e94fc['direction']){const _0x4c09e1=_0x65b867['createTableWalker'](_0x2ea865,{'startRow':_0x50da16,'endRow':_0x50da16,'includeAllSlots':!0x0});_0x178c00=Array['from'](_0x4c09e1)['map'](_0xe3a46d=>_0xe3a46d['cell']);}else{const _0x1f99f1=_0x65b867['createTableWalker'](_0x2ea865,{'column':_0x11ac11,'includeAllSlots':!0x0});_0x178c00=Array['from'](_0x1f99f1)['map'](_0x486aba=>_0x486aba['cell']);}_0x14d7d7['model']['change'](_0x38c968=>{_0x34f700['markBlockFormat'](_0x38c968['createRangeOn'](_0x4faec7),{'commandName':_0x1aab04,'commandParams':[]},_0x178c00,_0x1aab04);});});}_0x34f700['descriptionFactory']['registerDescriptionCallback'](_0x4580bb=>{if('formatBlock'!=_0x4580bb['type']&&'formatInline'!=_0x4580bb['type'])return;const {data:_0x468ae3}=_0x4580bb;return _0x468ae3&&'mergeTableCells'==_0x468ae3['commandName']?{'type':'format','content':o(_0x978342,'*Merge\x20cells*')}:void 0x0;}),_0x34f700['descriptionFactory']['registerDescriptionCallback'](_0x172198=>{if('formatBlock'!=_0x172198['type']&&'formatInline'!=_0x172198['type'])return;const {data:_0x3c7842}=_0x172198;return _0x3c7842?'splitTableCellVertically'==_0x3c7842['commandName']?{'type':'format','content':o(_0x978342,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x3c7842['commandName']?{'type':'format','content':o(_0x978342,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x806037=_0x119a1e['_acceptFormatSuggestionCallbackFactory']();for(const _0x4684ae of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x34f700['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4684ae,'accept',_0x806037);for(const _0x465642 of['splitTableCellVertically','splitTableCellHorizontally'])_0x34f700['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x465642,'accept',_0x806037);_0x34f700['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x39ead8=>{_0x14d7d7['model']['change'](_0x40536b=>{const _0x37dec0=Array['from'](_0xd02686['getRanges']())['map'](_0x3b7458=>_0x151380['fromRange'](_0x3b7458));_0x40536b['setSelection'](_0x39ead8),_0x14d7d7['commands']['get']('mergeTableCells')['refresh'](),_0x14d7d7['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x12b400=_0x37dec0['filter'](_0x1f0c18=>'$graveyard'!=_0x1f0c18['root']['rootName']);_0x12b400['length']>0x0&&_0x40536b['setSelection'](_0x12b400);for(const _0x44e3f3 of _0x37dec0)_0x44e3f3['detach']();});});for(const _0x5b93ad of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x4de712=_0x14d7d7['commands']['get'](_0x5b93ad);_0x4de712['on']('set:isEnabled',(_0x1784e2,_0x48a2e6,_0x541888)=>{if(_0x541888){const _0x5ccbfe=_0x14d7d7['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3cd01d=>_0x3cd01d['is']('element','tableCell'));this['_areMergableCells'](_0x4de712['value'],_0x5ccbfe)||(_0x1784e2['return']=!0x1,_0x1784e2['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x16902e=this['editor']['commands']['get']('mergeTableCells'),_0x5ac958=this['editor']['plugins']['get']('TableUtils');if(!_0x16902e['isEnabled'])return!0x1;const _0x500327=_0x5ac958['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x205391 of _0x500327)for(const _0x50ecc7 of _0x500327)if(_0x205391!=_0x50ecc7&&!this['_areMergableCells'](_0x205391,_0x50ecc7))return!0x1;return!0x0;}['_areMergableCells'](_0x534a8d,_0x4187fe){const _0xe62610=this['editor']['plugins']['get']('TrackChangesEditing'),_0x30c354=this['editor']['model']['createRangeOn'](_0x534a8d),_0x4530f3=this['editor']['model']['createRangeOn'](_0x4187fe),_0x6628dd=new Set(),_0x57fe86=new Set();for(const _0x37f25a of _0xe62610['getSuggestions']())if(('insertion'==_0x37f25a['type']||'deletion'==_0x37f25a['type']||'mergeTableCells'==_0x37f25a['subType'])&&_0x37f25a['isInContent']){for(const _0x393e64 of _0x37f25a['getRanges']())_0x393e64['containsRange'](_0x30c354,!0x0)&&_0x6628dd['add'](_0x37f25a['type']+':'+_0x37f25a['author']['id']),_0x393e64['containsRange'](_0x4530f3,!0x0)&&_0x57fe86['add'](_0x37f25a['type']+':'+_0x37f25a['author']['id']);}if(_0x6628dd['size']!=_0x57fe86['size'])return!0x1;for(const _0xfdd7f1 of _0x6628dd)if(!_0x57fe86['has'](_0xfdd7f1))return!0x1;return!0x0;}}class Dt extends _0x441617{static get['requires'](){return[Ct];}['afterInit'](){const _0x54ae23=this['editor'];if(!_0x54ae23['plugins']['has']('TableEditing'))return;const _0x309dce=_0x54ae23['locale'],_0x49234e=_0x54ae23['plugins']['get']('TrackChangesEditing');_0x49234e['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x49234e['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x49234e['registerBlockAttribute']('headingRows'),_0x49234e['registerBlockAttribute']('headingColumns'),_0x49234e['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x309dce,'FORMAT_HEADER_ROW')),_0x49234e['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x309dce,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x219bbc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x52bd68=this['editor']['plugins']['get']('TableUtils'),_0x2c0623=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x2a8d77({showActiveMarker:_0x1b2eae=!0x0,setDataAttribute:_0x559a2d=!0x0}={}){return(_0xe94309,_0x5e74a7,_0x35e367)=>{const {type:_0x26176f,id:_0x168432}=_0x219bbc['_splitMarkerName'](_0x5e74a7['markerName']),_0x7484b2=_0x219bbc['getSuggestion'](_0x168432),_0x364ad4=_0x7484b2['data'];if('formatBlock'!=_0x7484b2['type']||!_0x364ad4||'setTableColumnHeader'!=_0x364ad4['commandName'])return;if(_0x5e74a7['item'])return void _0xe94309['stop']();if(!_0x35e367['consumable']['consume'](_0x5e74a7['markerRange'],_0xe94309['name']))return;const _0x499cde=_0x5e74a7['markerRange']['start']['nodeAfter'],_0x500cff=_0x5e74a7['markerRange']['end']['nodeBefore'],_0x555307=_0x499cde['parent']['parent'],{column:_0x2d224c}=_0x52bd68['getCellLocation'](_0x499cde),{column:_0x4c73a4}=_0x52bd68['getCellLocation'](_0x500cff);for(let _0x1f3f7a=_0x2d224c;_0x1f3f7a<=_0x4c73a4;_0x1f3f7a++){const _0x2bce07=_0x52bd68['createTableWalker'](_0x555307,{'column':_0x1f3f7a,'includeAllSlots':!0x1});for(const _0x1c9170 of _0x2bce07){const _0x482375=_0x1c9170['cell'],_0x1a8648=_0x35e367['mapper']['toViewElement'](_0x482375);_0x35e367['writer']['addClass']('ck-suggestion-marker-'+_0x26176f,_0x1a8648),_0x559a2d&&_0x35e367['writer']['setAttribute']('data-suggestion',_0x168432,_0x1a8648),_0x35e367['mapper']['bindElementToMarker'](_0x1a8648,_0x5e74a7['markerName']),_0x1b2eae&&(_0x219bbc['activeMarkers']['includes'](_0x5e74a7['markerName'])?_0x35e367['writer']['addClass']('ck-suggestion-marker--active',_0x1a8648):_0x35e367['writer']['removeClass']('ck-suggestion-marker--active',_0x1a8648));}}};}_0x219bbc['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x2c0623),_0x219bbc['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x2c0623),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x2a8d77(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x223df2,_0x584232,_0x7d2ee0)=>{_0x7d2ee0['options']['showSuggestionHighlights']&&_0x2a8d77({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x223df2,_0x584232,_0x7d2ee0);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x51beac,_0x40fdc0,_0x262244)=>{const {type:_0x4be6c3,id:_0x11505d}=_0x219bbc['_splitMarkerName'](_0x40fdc0['markerName']),_0x3f90ff=_0x219bbc['getSuggestion'](_0x11505d),_0x45056d=_0x3f90ff['data'];if('formatBlock'!=_0x3f90ff['type']||!_0x45056d||'setTableColumnHeader'!=_0x45056d['commandName'])return;const _0x5e1b31=_0x262244['mapper']['markerNameToElements'](_0x40fdc0['markerName']);if(_0x5e1b31){for(const _0x253211 of _0x5e1b31)_0x262244['writer']['removeClass']('ck-suggestion-marker-'+_0x4be6c3,_0x253211),_0x262244['writer']['removeClass']('ck-suggestion-marker--active',_0x253211),_0x262244['writer']['removeAttribute']('data-suggestion',_0x253211),_0x262244['mapper']['unbindElementFromMarkerName'](_0x253211,_0x40fdc0['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x38c277=this['editor'],_0xf26b3d=_0x38c277['locale'];function _0x2e0cfc(_0x2780c8){return{'type':'format','content':o(_0xf26b3d,'*Format:*\x20%0',_0x2780c8)};}_0x38c277['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x17ab23=>{if('formatBlock'!=_0x17ab23['type'])return;const {data:_0x52fc89}=_0x17ab23;if(_0x52fc89){if('setTableRowHeader'==_0x52fc89['commandName']){const _0x2bcf28=_0x52fc89['commandParams'][0x0]['forceValue'];return _0x2e0cfc(o(_0xf26b3d,_0x2bcf28?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x52fc89['commandName']){const _0x41b12b=_0x52fc89['commandParams'][0x0]['forceValue'];return _0x2e0cfc(o(_0xf26b3d,_0x41b12b?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x55cdf5=>[_0x55cdf5,null]));class Mt extends _0x441617{static get['requires'](){return[Ct];}['afterInit'](){const _0x1de525=this['editor'];if(!_0x1de525['plugins']['has']('TableClipboard'))return;const _0x498b01=_0x1de525['plugins']['get']('TrackChangesEditing'),_0x52de95=_0x1de525['plugins']['get']('TableUtils'),_0x3a2c05=_0x1de525['plugins']['get'](Ct),_0x5114e8=_0x1de525['plugins']['get']('TableClipboard');_0x3a2c05['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x1de525['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x1de525['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x1cb2c6=null;_0x1de525['model']['on']('insertContent',(_0x145ea0,_0x216a55)=>{const [_0x3b0574,_0x1129b2]=_0x216a55,_0xbf9597=_0x216a55[_0x216a55['length']-0x1];_0xbf9597&&_0xbf9597['forceDefaultExecution']||_0x498b01['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x323c32,_0x30b914,_0x3c600a,_0x3ee35c,_0x32f675){if(_0x30b914&&!_0x30b914['is']('documentSelection'))return!0x1;const _0x174cfd=_0x32f675['getTableIfOnlyTableInContent'](_0x323c32,_0x3c600a);if(!_0x174cfd||!Ue(_0x174cfd,void 0x0,_0x3ee35c))return!0x1;const _0x1f51c7=_0x3ee35c['getSelectionAffectedTableCells'](_0x3c600a['document']['selection']);if(!_0x1f51c7['length'])return!0x1;const _0x2f01a4=_0x1f51c7[0x0]['findAncestor']('table'),_0x5a5363=_0x3ee35c['getRowIndexes'](_0x1f51c7),_0x4a2ad5=_0x3ee35c['getColumnIndexes'](_0x1f51c7),_0x117400={'startRow':_0x5a5363['first'],'endRow':_0x5a5363['last'],'startColumn':_0x4a2ad5['first'],'endColumn':_0x4a2ad5['last']};return 0x1==_0x1f51c7['length']&&(_0x117400['endRow']+=_0x3ee35c['getRows'](_0x174cfd)-0x1,_0x117400['endColumn']+=_0x3ee35c['getColumns'](_0x174cfd)-0x1),Ue(_0x2f01a4,_0x117400,_0x3ee35c);}(_0x3b0574,_0x1129b2,_0x1de525['model'],_0x52de95,_0x5114e8)&&(_0x145ea0['stop'](),_0x1cb2c6={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1de525['model']['change'](()=>{_0x1de525['model']['insertContent'](_0x216a55[0x0],_0x216a55[0x1],_0x216a55[0x2],{'forceDefaultExecution':!0x0});const _0x3cd987=_0x1ece5b(),{rowInsertionRanges:_0x4ceb8f,columnInsertionRanges:_0xcd5f5,insertionRanges:_0x65fee3,deletionRanges:_0x39424b,cells:_0x436eb9}=_0x1cb2c6;_0x4ceb8f['length']&&_0x498b01['markMultiRangeInsertion'](_0x4ceb8f,'tablePasteRow',{'tablePasteChainId':_0x3cd987}),_0xcd5f5['length']&&_0x498b01['markMultiRangeInsertion'](_0xcd5f5,'tablePasteColumn',{'tablePasteChainId':_0x3cd987}),_0x65fee3['length']&&(_0x498b01['markMultiRangeInsertion'](_0x65fee3,'tablePaste',{'tablePasteChainId':_0x3cd987,'skipNestingCheck':!0x0}),_0x65fee3['forEach'](_0x3973da=>_0x3973da['detach']?.())),_0x39424b['length']&&(_0x498b01['markMultiRangeDeletion'](_0x39424b,'tablePaste',{'tablePasteChainId':_0x3cd987,'skipNestingCheck':!0x0}),_0x39424b['forEach'](_0x511131=>_0x511131['detach']?.()));const _0x510f04=_0x498b01['markMultiRangeBlockFormat'](_0x436eb9['map'](({element:_0x8a7a5e})=>_0x8a7a5e),{'formatGroupId':_0x1ece5b()},[],'tablePasteCell',{'tablePasteChainId':_0x3cd987});if(_0x510f04){const _0x437738=_0x510f04['getMarkers'](),_0x307f6b=[];for(const {element:_0x3ccc73,attributes:_0x388ed1}of _0x436eb9){if(!_0x388ed1)continue;const _0x558bc7=_0x1de525['model']['createRangeOn'](_0x3ccc73),_0x2ee587=_0x437738['find'](_0x596057=>_0x596057['getRange']()['isEqual'](_0x558bc7));_0x2ee587&&_0x307f6b['push']([_0x2ee587['name'],_0x388ed1]);}_0x307f6b['length']&&_0x510f04['setAttribute']('markerAttributes',Object['fromEntries'](_0x307f6b));}_0x1cb2c6=null;}));},{'priority':_0x3d5167['high']+0xa}),_0x1de525['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x252ce6,_0x2a5dce)=>{const [_0x1a0a57,_0x5072d9,,_0x3b75d5]=_0x2a5dce;if(!_0x1cb2c6)return;_0x252ce6['stop']();const _0x2a7732=_0x1a0a57['cell'],_0x275b70=_0x5072d9,_0x10ce4d=Oe(_0x2a7732),_0x5d92d4=Oe(_0x275b70);_0x252ce6['return']=_0x2a7732;let _0x4d4327=null,_0x463791=null;if(_0x5d92d4||_0x10ce4d){if(_0x10ce4d&&!_0x5d92d4){_0x3b75d5['remove'](_0x2a7732['getChild'](0x0));for(const _0xad63f4 of Array['from'](_0x275b70['getChildren']()))_0x3b75d5['insert'](_0xad63f4,_0x2a7732,'end');const _0x21d0fa=_0x1cb2c6['rowInsertionIndexes']['includes'](_0x1a0a57['row']),_0x39dc10=_0x1cb2c6['columnInsertionIndexes']['includes'](_0x1a0a57['column']);_0x21d0fa||_0x39dc10||(_0x4d4327=_0x151380['fromRange'](_0x3b75d5['createRangeIn'](_0x2a7732)));}else _0x5d92d4&&!_0x10ce4d&&(_0x463791=_0x3b75d5['createRangeIn'](_0x2a7732));}else{const _0x37b331=_0x3b75d5['createElement']('tableCellSuggestion'),_0x3cd347=_0x3b75d5['createElement']('tableCellSuggestion');_0x3b75d5['wrap'](_0x3b75d5['createRangeIn'](_0x2a7732),_0x3cd347),_0x3b75d5['insert'](_0x37b331,_0x2a7732,0x0);for(const _0x544ab4 of Array['from'](_0x275b70['getChildren']()))_0x3b75d5['insert'](_0x544ab4,_0x37b331,'end');_0x4d4327=_0x151380['fromRange'](_0x3b75d5['createRangeOn'](_0x37b331)),_0x463791=_0x151380['fromRange'](_0x3b75d5['createRangeOn'](_0x3cd347));}const _0x19282c=Array['from'](_0x275b70['getAttributes']())['filter'](([_0x22a880])=>Be['includes'](_0x22a880));_0x1cb2c6['cells']['push']({'element':_0x2a7732,'attributes':_0x19282c['length']?Object['fromEntries'](_0x19282c):null}),_0x4d4327&&_0x1cb2c6['insertionRanges']['push'](_0x4d4327),_0x463791&&_0x1cb2c6['deletionRanges']['push'](_0x463791);},{'priority':'high'}),_0x52de95['on']('insertColumns',(_0x1930ed,_0x1d331d)=>{const [_0xc0de,_0x5df794={}]=_0x1d331d;if(!_0x1cb2c6)return;const _0x324d39=_0x5df794['at']||0x0,_0xc8ebe6=_0x5df794['columns']||0x1;_0x1cb2c6['columnInsertionIndexes']=new Array(_0xc8ebe6)['fill'](_0x324d39)['map']((_0x28235c,_0x5e265d)=>_0x28235c+_0x5e265d);for(const {cell:_0x4913d6}of _0x52de95['createTableWalker'](_0xc0de,{'startColumn':_0x324d39,'endColumn':_0x324d39+_0xc8ebe6-0x1}))_0x1cb2c6['columnInsertionRanges']['push'](_0x1de525['model']['createRangeOn'](_0x4913d6));},{'priority':'low'}),_0x52de95['on']('insertRows',(_0x20ca16,_0x3f4cd0)=>{const [_0x18a65c,_0x1baf05={}]=_0x3f4cd0;if(!_0x1cb2c6)return;const _0x2e7257=_0x1baf05['at']||0x0,_0x536db9=_0x1baf05['rows']||0x1;_0x1cb2c6['rowInsertionIndexes']=new Array(_0x536db9)['fill'](_0x2e7257)['map']((_0x31e86f,_0x2bc9a1)=>_0x31e86f+_0x2bc9a1);for(const {cell:_0x26c4a6}of _0x52de95['createTableWalker'](_0x18a65c,{'startRow':_0x2e7257,'endRow':_0x2e7257+_0x536db9-0x1}))_0x1cb2c6['rowInsertionRanges']['push'](_0x1de525['model']['createRangeOn'](_0x26c4a6));},{'priority':'low'}),_0x498b01['descriptionFactory']['registerDescriptionCallback'](_0x20d225=>{if(_0x20d225['subType']&&_0x20d225['subType']['startsWith']('tablePaste'))return _0x20d225['previous']?{}:{'type':'insertion','content':o(_0x1de525['locale'],'*Replace\x20table\x20cells*')};});const _0x3de5d3=()=>!0x1;for(const _0x52dbbe of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x498b01['_suggestionFactory']['registerCustomCallback']('insertion',_0x52dbbe,'join',_0x3de5d3),_0x498b01['_suggestionFactory']['registerCustomCallback']('deletion',_0x52dbbe,'join',_0x3de5d3),_0x498b01['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x52dbbe,'join',_0x3de5d3);_0x498b01['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x3de5d3),_0x498b01['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x1f6dae,_0xb2cfc2,_0x8700b7)=>{const _0x1a2f85=_0x1f6dae['map'](_0x4b70c8=>_0x4b70c8['getContainedElement']())['filter'](_0xa036b=>_0xa036b),_0x138fda=new Map(_0x1a2f85['map'](_0xcd402f=>[_0xcd402f,null]));if(_0x1cb2c6){for(const {element:_0x5acee8,attributes:_0x25af83}of _0x1cb2c6['cells'])_0x25af83&&_0x138fda['set'](_0x5acee8,_0x25af83);}else{if(_0x8700b7&&_0x8700b7['markerAttributes'])for(const [_0x5a8b81,_0x2bb9be]of Object['entries'](_0x8700b7['markerAttributes'])){const _0x8d5b35=_0x1de525['model']['markers']['get'](_0x5a8b81),_0x495e4c=_0x8d5b35?_0x8d5b35['getRange']()['getContainedElement']():null;_0x495e4c&&_0x138fda['set'](_0x495e4c,_0x2bb9be);}}_0x1de525['model']['change'](_0x106741=>{for(const [_0x19f58a,_0x4f6c03]of _0x138fda)_0x106741['setAttributes']({...xe,..._0x4f6c03},_0x19f58a);});});const _0x4f3d02=(_0x1ce3e0,_0x21235e)=>{_0x498b01['_suggestionFactory']['registerCustomCallback'](_0x1ce3e0,'tablePaste',_0x21235e,(_0x784b20,_0x4acb36,_0x3d4701)=>{_0x1de525['model']['change'](_0x467595=>{const _0x56adef=[];for(const _0x1203b1 of _0x784b20){const _0xa8f080=_0x1203b1['start']['nodeAfter'];_0xa8f080['is']('element','tableCellSuggestion')&&_0x56adef['push'](_0xa8f080);}_0x498b01['_suggestionFactory']['getSuggestionCallback'](_0x1ce3e0,null,_0x21235e)(_0x784b20,_0x4acb36,_0x3d4701);for(const _0x25c5c0 of _0x56adef)'$graveyard'!=_0x25c5c0['root']['rootName']&&_0x467595['unwrap'](_0x25c5c0);});});};_0x4f3d02('insertion','accept'),_0x4f3d02('insertion','discard'),_0x4f3d02('deletion','accept'),_0x4f3d02('deletion','discard'),_0x498b01['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x3731a1=>{const _0x109326=_0x3731a1['map'](_0x4ab48d=>_0x4ab48d['getContainedElement']()),_0x37a328=_0x109326[0x0]['findAncestor']('table'),{minRow:_0x5e5f7b,maxRow:_0x79193c}=_0x3a2c05['_getCoordsForCells'](_0x109326);_0x52de95['removeRows'](_0x37a328,{'at':_0x5e5f7b,'rows':_0x79193c-_0x5e5f7b+0x1});}),_0x498b01['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x2924c7=>{const _0x1a368b=_0x2924c7['map'](_0x48b403=>_0x48b403['getContainedElement']()),_0x437a33=_0x1a368b[0x0]['findAncestor']('table'),{minColumn:_0x54b769,maxColumn:_0x3f3335}=_0x3a2c05['_getCoordsForCells'](_0x1a368b);_0x52de95['removeColumns'](_0x437a33,{'at':_0x54b769,'columns':_0x3f3335-_0x54b769+0x1});});const _0x5e02dc=(_0x27521c,_0x5e3c81)=>{if(!_0x5e3c81['subType']||!_0x5e3c81['subType']['startsWith']('tablePaste'))return;const _0x2fd4f0=_0x5e3c81['attributes']['tablePasteChainId'],_0xcb0bf7=_0x498b01['getSuggestions']()['filter'](_0x50a225=>_0x50a225['isInContent']&&_0x50a225['attributes']&&_0x50a225['attributes']['tablePasteChainId']==_0x2fd4f0);_0xcb0bf7['length']&&_0x5e3c81['getAllAdjacentSuggestions']()['length']!=_0xcb0bf7['length']&&_0xcb0bf7['reduce']((_0xf01fcc,_0x2aa593)=>(_0xf01fcc['next']=_0x2aa593,_0x2aa593['previous']=_0xf01fcc,_0x2aa593));};function _0x2b9d73(_0x470ea2,_0x23f9d1=!0x0){const {id:_0x3ed3f7,authorId:_0x2ef5a2}=_0x498b01['_splitMarkerName'](_0x470ea2['markerName']),_0x53040b=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x97bab8=_0x498b01['activeMarkers']['includes'](_0x470ea2['markerName']);return _0x97bab8&&_0x53040b['push']('ck-suggestion-marker--active'),{'classes':_0x53040b,'attributes':{'data-suggestion':_0x3ed3f7,'data-author-id':_0x2ef5a2},'priority':_0x97bab8&&_0x23f9d1?0xbc2:0xbb8};}_0x498b01['on']('suggestionLoaded',_0x5e02dc,{'priority':'high'}),_0x498b01['on']('suggestionUnloaded',_0x5e02dc,{'priority':'high'}),_0x1de525['model']['document']['registerPostFixer'](()=>{let _0x201dd6=!0x1;const _0x3960a0=Array['from'](_0x1de525['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3e3c17,data:_0x52d4e6}of _0x3960a0){const {group:_0x10a363,type:_0x3289ca,id:_0x1ea9a0}=_0x498b01['_splitMarkerName'](_0x3e3c17);if('suggestion'!=_0x10a363||'deletion'!=_0x3289ca||_0x52d4e6['oldRange'])continue;if(!_0x498b01['hasSuggestion'](_0x1ea9a0))continue;const _0x2e0061=_0x498b01['getSuggestion'](_0x1ea9a0)['getRanges'](),_0x47aaff=_0x1de525['plugins']['get']('Users')['me'];for(const _0x25b309 of _0x498b01['getSuggestions']()){if(!_0x25b309['isInContent']||_0x25b309['author']!=_0x47aaff)continue;if('formatBlock'!=_0x25b309['type']||'tablePasteCell'!=_0x25b309['subType'])continue;if(_0x25b309['getRanges']()['every'](_0x1e625e=>_0x2e0061['some'](_0x258e85=>_0x258e85['containsRange'](_0x1e625e,!0x0)))){for(const _0x1d6735 of _0x25b309['getAllAdjacentSuggestions']())_0x1d6735['isInContent']&&(_0x1d6735['discard'](),_0x201dd6=!0x0);}}}return _0x201dd6;}),_0x1de525['model']['document']['registerPostFixer'](_0x2418d5=>{const _0x30ab02=_0x1de525['commands']['get']('redo');if(!_0x30ab02||!_0x30ab02['_createdBatches']['has'](_0x2418d5['batch']))return!0x1;let _0x37fead=!0x1;const _0x28a967=_0x1de525['plugins']['get']('Users')['me'],_0x55a00a=_0x1de525['model']['document']['differ']['getChanges'](),_0x171762=Array['from'](_0x1de525['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x1b1d06,data:_0x1ba3d9})=>{const {group:_0x5193fe,subType:_0x2bb86d,authorId:_0x324f4f}=_0x498b01['_splitMarkerName'](_0x1b1d06);return'suggestion'==_0x5193fe&&'tablePaste'==_0x2bb86d&&_0x324f4f==_0x28a967['id']&&!_0x1ba3d9['oldRange'];});for(const _0x2d1671 of _0x55a00a){if('insert'!=_0x2d1671['type']||'tableCellSuggestion'!=_0x2d1671['name']||0x1!=_0x2d1671['length'])continue;const _0x1dfcd7=_0x2418d5['createRange'](_0x2d1671['position'],_0x2d1671['position']['getShiftedBy'](0x1));if(!_0x171762['find'](({data:_0x514b49})=>_0x514b49['newRange']['isEqual'](_0x1dfcd7))){for(const {name:_0x79e0ef,data:_0x4b3f2a}of _0x171762)if(_0x1dfcd7['containsRange'](_0x4b3f2a['newRange'])){_0x2418d5['updateMarker'](_0x79e0ef,{'range':_0x1dfcd7}),_0x37fead=!0x0;break;}}}return _0x37fead;}),_0x1de525['model']['document']['registerPostFixer'](_0xa1028e=>{let _0x35ac47=!0x1;const _0xef828e=_0x1de525['plugins']['get']('Users')['me'],_0x17e8bf=_0x498b01['getSuggestions']()['filter'](_0x2426e8=>_0x2426e8['isInContent']&&_0x2426e8['author']==_0xef828e),_0x3c4e53=new Set(),_0x240944=new Set();for(const _0x3c8ef5 of _0x17e8bf)if('tablePaste'==_0x3c8ef5['subType'])for(const _0x575ea5 of _0x3c8ef5['getMarkers']()){const _0x3e8e91=_0x575ea5['getRange']()['getContainedElement']();if(_0x3e8e91){if(_0x3e8e91['is']('element','tableCellSuggestion')&&Oe(_0x3e8e91)){_0x3c8ef5['removeMarker'](_0x575ea5['name']),_0x3c4e53['add'](_0x3e8e91),_0x35ac47=!0x0;const _0x5544ed=_0x3e8e91['nextSibling'],_0x47766d=_0x3e8e91['previousSibling'],_0x81bc1f=_0x5544ed&&_0x5544ed['is']('element','tableCellSuggestion'),_0x41886a=_0x47766d&&_0x47766d['is']('element','tableCellSuggestion');_0x81bc1f&&!_0x3c4e53['has'](_0x5544ed)&&_0x240944['add'](_0x5544ed),_0x41886a&&!_0x3c4e53['has'](_0x47766d)&&_0x240944['add'](_0x47766d);}else _0x3e8e91['is']('element','paragraph')&&_0x3e8e91['isEmpty']&&(_0x3c8ef5['removeMarker'](_0x575ea5['name']),_0x35ac47=!0x0);}}else{if('tablePasteCell'==_0x3c8ef5['subType']){if(!_0x3c8ef5['attributes']||!_0x3c8ef5['attributes']['tablePasteChainId'])continue;const _0x248d9f=_0x3c8ef5['attributes']['markerAttributes'];if(_0x248d9f&&Object['keys'](_0x248d9f)['length'])continue;const _0x4e4c2d=_0x3c8ef5['attributes']['tablePasteChainId'];let _0x1ecd6=!0x0,_0x23ac5c=!0x0;for(const _0x822490 of _0x17e8bf)if(_0x822490['subType']&&_0x822490['subType']['startsWith']('tablePaste')){if(!_0x822490['attributes']['tablePasteChainId']){_0x23ac5c=!0x1;break;}if(_0x822490['id']!=_0x3c8ef5['id']&&_0x822490['attributes']['tablePasteChainId']==_0x4e4c2d){_0x1ecd6=!0x1;break;}}_0x23ac5c&&_0x1ecd6&&(_0x3c8ef5['removeMarkers'](),_0x35ac47=!0x0);}}for(const _0x2cbacc of _0x3c4e53)_0xa1028e['remove'](_0x2cbacc);for(const _0x3cbc57 of _0x240944)_0xa1028e['unwrap'](_0x3cbc57);return _0x35ac47;}),_0x1de525['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0xb05fc8=>_0x2b9d73(_0xb05fc8),'converterPriority':'high'}),_0x1de525['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x1c2bd6,_0x2b0425)=>_0x2b0425['options']['showSuggestionHighlights']?_0x2b9d73(_0x1c2bd6,!0x1):null,'converterPriority':'high'});const _0x3ae744=_0x1de525['editing']['view'];this['listenTo'](_0x3ae744['document'],'clipboardOutput',(_0x79d421,_0x3ac903)=>{const _0x34f4fc=[];for(const _0x456105 of _0x3ae744['createRangeIn'](_0x3ac903['content'])['getItems']())_0x456105['is']('element','suggestion-td')&&_0x34f4fc['push'](_0x456105);_0x3ae744['change'](_0x3d511b=>{for(const _0x595275 of _0x34f4fc)_0x3d511b['move'](_0x3d511b['createRangeIn'](_0x595275),_0x3d511b['createPositionBefore'](_0x595275)),_0x3d511b['remove'](_0x595275);});});}}function Oe(_0x4ce138){if(_0x4ce138['isEmpty'])return!0x0;const _0x5ee638=_0x4ce138['getChild'](0x0);return _0x5ee638['is']('element','paragraph')&&_0x5ee638['isEmpty'];}function Ue(_0x46d602,_0x3ec5fb={},_0x542c8e){for(const {isAnchor:_0x2de114,cellHeight:_0x331576,cellWidth:_0x54ace8}of _0x542c8e['createTableWalker'](_0x46d602,{'includeAllSlots':!0x0,..._0x3ec5fb}))if(!_0x2de114||0x1!=_0x331576||0x1!=_0x54ace8)return!0x1;return!0x0;}class $t extends _0x441617{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x162408=this['editor']['plugins']['get']('TrackChangesEditing');_0x162408['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x162408['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x162408['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x162408['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x162408['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x162408['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x46809a,_0x1c405f){const _0x4092a1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x53bd9c=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x3e4bc0=_0x1c405f['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x489aae=_0x53bd9c['getColumnGroupElement'](_0x3e4bc0);let _0x190ed4=_0x489aae?_0x53bd9c['getTableColumnsWidths'](_0x489aae):null,_0x5da0f6=_0x3e4bc0['getAttribute']('tableWidth')||null;const _0x1e0f61=_0x1c405f['tableWidth']||_0x5da0f6,_0xff4c29=_0x1c405f['columnWidths']||_0x190ed4,_0x230ce4=this['editor']['plugins']['get']('Users')['me'];for(const _0x1d1b95 of _0x4092a1['getSuggestions']()){const _0x18cf6d=_0x1d1b95['getContainedElement']();if('resizeTable'===_0x1d1b95['subType']&&_0x18cf6d===_0x3e4bc0){_0x1d1b95['author']!==_0x230ce4&&_0x1d1b95['discard']();const _0x3a6e6f=_0x1d1b95['data']['commandParams'];_0x5da0f6=_0x3a6e6f[0x0]['tableWidth'],_0x190ed4=_0x3a6e6f[0x0]['columnWidths'];break;}}_0x46809a({'table':_0x3e4bc0,'tableWidth':_0x1e0f61,'columnWidths':_0xff4c29}),_0x4092a1['markBlockFormat'](_0x3e4bc0,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5da0f6,'columnWidths':_0x190ed4}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x22e570){if('formatBlock'!=_0x22e570['type']&&'formatInline'!=_0x22e570['type'])return;const {data:_0x3d5cd9}=_0x22e570;if(_0x3d5cd9&&'resizeTable'===_0x3d5cd9['formatGroupId']){const _0x1b0305='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x1b0305)};}}}class Bt extends _0x441617{['afterInit'](){const _0x4c64a5=this['editor'];_0x4c64a5['plugins']['has']('Template')&&_0x4c64a5['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x441617{['afterInit'](){const _0x51c5ed=this['editor'];if(!_0x51c5ed['commands']['get']('insertTableOfContents'))return;_0x51c5ed['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x273a93=_0x51c5ed['plugins']['get']('TrackChangesEditing'),_0x52f2dc=_0x51c5ed['locale'];_0x273a93['descriptionFactory']['registerElementLabel']('tableOfContents',_0x517069=>o(_0x52f2dc,'ELEMENT_TABLE_OF_CONTENTS',_0x517069));}}class Rt extends _0x441617{['afterInit'](){const _0x17b007=this['editor'];if(!_0x17b007['plugins']['has']('Title'))return;const _0x21cff7=_0x17b007['plugins']['get']('TrackChangesEditing');_0x21cff7['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x17b007['locale'],'ELEMENT_TITLE')),_0x17b007['model']['document']['registerPostFixer'](_0x4fa5a0=>{let _0x4cdbf5=!0x1;const _0x22a0e4=Array['from'](_0x17b007['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x27d247,data:_0x5bf6ca}of _0x22a0e4){const {group:_0x6e956a}=_0x21cff7['_splitMarkerName'](_0x27d247);if('suggestion'!==_0x6e956a||!_0x5bf6ca['newRange'])continue;const _0x2f39ce=_0x5bf6ca['newRange'],_0x1e086b=_0x2f39ce['end']['nodeBefore'];if(!_0x1e086b||!_0x1e086b['is']('element','title-content'))continue;if(!_0x2f39ce['start']['isTouching'](_0x2f39ce['end']))continue;const _0x1444d5=_0x17b007['model']['schema']['getNearestSelectionRange'](_0x2f39ce['end'],'forward');if(_0x1444d5&&_0x1444d5['isCollapsed']){const _0x5d1097=_0x4fa5a0['createRange'](_0x2f39ce['start'],_0x1444d5['start']);_0x5d1097['isEqual'](_0x2f39ce)||(_0x4fa5a0['updateMarker'](_0x27d247,{'range':_0x5d1097}),_0x4cdbf5=!0x0);}_0x4cdbf5||(_0x4fa5a0['removeMarker'](_0x27d247),_0x4cdbf5=!0x0);}return _0x4cdbf5;});}}class Tt extends _0x441617{['afterInit'](){const _0x21865f=this['editor'],_0x2a4f4e=_0x21865f['plugins']['get']('TrackChangesEditing');_0x21865f['plugins']['has']('Uploadcare')&&(_0x2a4f4e['enableCommand']('uploadcare'),_0x21865f['plugins']['has']('UploadcareImageEdit')&&(_0x2a4f4e['enableCommand']('uploadcareImageEdit'),_0x2a4f4e['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x2a4f4e['registerBlockAttribute']('uploadcareImageId'),_0x2a4f4e['descriptionFactory']['registerDescriptionCallback'](_0x278db5=>{if('attribute'!=_0x278db5['type'])return;const {data:_0x737358}=_0x278db5;return _0x737358&&'uploadcareImageId'==_0x737358['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x441617{['afterInit'](){const _0x352b47=this['editor'],_0x4a5bec=_0x352b47['plugins']['get']('TrackChangesEditing');_0x352b47['plugins']['has']('UndoEditing')&&(_0x4a5bec['enableCommand']('undo'),_0x4a5bec['enableCommand']('redo'));}}class Et extends _0x441617{static get['requires'](){return[Ct];}['afterInit'](){const _0x465a5f=this['editor'];if(!_0x465a5f['plugins']['has']('TableCaptionEditing'))return;_0x465a5f['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ut extends _0x441617{['tableProperties'];['tableCellProperties'];constructor(_0x256c21){super(_0x256c21),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 _0x441328=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x24f517 of this['tableProperties'])_0x441328['enableCommand'](_0x24f517,(_0x2a7d8e,_0x23824d)=>{const _0x56fe84=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x24f517,[_0x56fe84],this['tableProperties'],'tableProperties',_0x2a7d8e,_0x23824d);});_0x441328['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x441328['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x441328['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x225469,_0x1e34d3)=>this['handleDiscardAction'](this['tableProperties'],_0x225469,_0x1e34d3)),_0x441328['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x446cff of this['tableCellProperties'])_0x441328['enableCommand'](_0x446cff,(_0x1420f2,_0x39e020)=>{const _0x5641d3=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x446cff,_0x5641d3,this['tableCellProperties'],'tableCellProperties',_0x1420f2,_0x39e020);});_0x441328['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x441328['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x441328['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x54522b,_0x117715)=>this['handleDiscardAction'](this['tableCellProperties'],_0x54522b,_0x117715)),_0x441328['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x441328['descriptionFactory']['registerDescriptionCallback'](_0x5430bb=>this['handleSuggestionDescription'](_0x5430bb));}['_handlePropertyChange'](_0x11e3f5,_0x8b6cf8,_0x5d5264,_0x13a3c8,_0x1ea141,_0x51e9e0){const _0x547fee=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x51e9e0['batch'],()=>{for(const _0x4f0b96 of _0x8b6cf8){if(this['_getSuggestion'](_0x4f0b96,_0x13a3c8))_0x1ea141(_0x51e9e0);else{const _0x19af2c={};for(const _0x17e701 of _0x5d5264){const _0x490c8e=_0x4f0b96['getAttribute'](_0x17e701);void 0x0!==_0x490c8e&&(_0x19af2c[_0x17e701]=_0x490c8e);}_0x1ea141(_0x51e9e0),_0x547fee['markBlockFormat'](_0x4f0b96,{'commandParams':[_0x19af2c]},[],_0x13a3c8);}}});}['handleDiscardAction'](_0x48fdb8,_0x5db8b6,_0x16fcad){const _0x4bf39e=_0x5db8b6[0x0]['start']['nodeAfter'],_0x2f926d=_0x16fcad['commandParams'][0x0];this['editor']['model']['change'](_0x559a1f=>{for(const _0x37cd1d of _0x48fdb8)void 0x0!==_0x2f926d[_0x37cd1d]?_0x559a1f['setAttribute'](_0x37cd1d,_0x2f926d[_0x37cd1d],_0x4bf39e):_0x559a1f['removeAttribute'](_0x37cd1d,_0x4bf39e);});}['handleSuggestionDescription'](_0x1e64a3){if(_0x1e64a3['data'])switch(_0x1e64a3['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'](_0x55c5d6,_0x25ed79){const _0x2388be=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x4a98da of _0x2388be['getSuggestions']({'skipNotAttached':!0x0})){const _0x5c2bb1=_0x4a98da['getContainedElement']();if(_0x4a98da['subType']===_0x25ed79&&_0x5c2bb1===_0x55c5d6)return _0x4a98da;}return null;}}const m='$elementName';class p extends _0x441617{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x5d6ba8,_0x182e37,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,vt,_t,Ct,Nt,Dt,Et,Mt,$t,Ot,Ut,Bt,Rt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x228366){super(_0x228366),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x26a0c4,_0xd0af6b,_0x32ae3e,_0x2da06a)=>{this['_model']['change'](()=>{for(const _0x52c988 of[..._0x2da06a,..._0x32ae3e])this['_model']['markers']['has'](_0x52c988)&&_0x228366['editing']['reconvertMarker'](_0x52c988);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x228366['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(),_0x228366['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x228366['config']['get']('trackChanges.trackFormatChanges'),_0x228366['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x228366['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x228366,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x461433=this['editor'],_0x1b6c23=(_0x42e142,_0x324e3f)=>{if('attribute'!=_0x42e142)return'ck-suggestion-marker-'+_0x42e142;const _0x432245=_0x324e3f['split']('|')[0x0];return this['_isBlockAttribute'](_0x432245)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x461433['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x5c93a4=>{const {id:_0x587e02,authorId:_0x2169d7,type:_0x2d9752,subType:_0x4b836d}=this['_splitMarkerName'](_0x5c93a4['markerName']),_0x315add=['ck-suggestion-marker',_0x1b6c23(_0x2d9752,_0x4b836d)];let _0x2c482b=0xbb8;return this['activeMarkers']['includes'](_0x5c93a4['markerName'])&&(_0x315add['push']('ck-suggestion-marker--active'),_0x2c482b=0xbc2),'deletion'==_0x2d9752&&(_0x2c482b+=0x5),{'classes':_0x315add,'attributes':{'data-suggestion':_0x587e02,'data-author-id':_0x2169d7},'priority':_0x2c482b};}}),_0x461433['conversion']['for']('dataDowncast')['add'](_0x175462=>{_0x175462['on']('addMarker:suggestion',(_0x2936d1,_0xf50a84,_0x43bded)=>{if(!_0x43bded['options']['showSuggestionHighlights'])return;const _0x538db8=_0xf50a84['item'];if(!_0x538db8)return;const _0x49680b=_0x43bded['mapper']['toViewElement'](_0x538db8);_0x461433['model']['schema']['isObject'](_0x538db8)&&_0x49680b&&!_0x49680b['getCustomProperty']('widget')&&_0x49680b['is']('containerElement')&&_0x26c207(_0x49680b,_0x43bded['writer']);},{'priority':'high'});}),_0x461433['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x45d5a3,_0x3492f)=>{if(!_0x3492f['options']['showSuggestionHighlights'])return null;const {type:_0x3309c6,subType:_0x21ecc6}=this['_splitMarkerName'](_0x45d5a3['markerName']);return{'classes':['ck-suggestion-marker',_0x1b6c23(_0x3309c6,_0x21ecc6)],'priority':0xbb8};}});const _0x121e65=({showActiveMarkers:_0x5b7daf=!0x0,isAttributeSuggestion:_0x2dac90=!0x1}={})=>(_0x1f665c,_0x4bcbea,_0x4dd250)=>{if(!_0x4bcbea['item'])return;const {id:_0x49d73b,authorId:_0x5ad7a0}=this['_splitMarkerName'](_0x4bcbea['markerName']);if(_0x2dac90){const _0x256c02=this['_suggestions']['get'](_0x49d73b),_0x48fbfa=this['_getAttributeKey'](_0x256c02);if(!this['_isBlockAttribute'](_0x48fbfa))return;}if(_0x4bcbea['item']['is']('selection'))return void _0x4dd250['consumable']['consume'](_0x4bcbea['item'],_0x1f665c['name']);const _0x56c157=_0x4dd250['mapper']['toViewElement'](_0x4bcbea['item']);if(_0x4bcbea['item']['is']('element')&&_0x461433['model']['schema']['isBlock'](_0x4bcbea['item'])&&!_0x56c157['getCustomProperty']('addHighlight')){_0x4dd250['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x56c157),_0x4dd250['writer']['setAttribute']('data-suggestion',_0x49d73b,_0x56c157),_0x4dd250['writer']['setAttribute']('data-author-id',_0x5ad7a0,_0x56c157),_0x4dd250['mapper']['bindElementToMarker'](_0x56c157,_0x4bcbea['markerName']),_0x5b7daf&&(this['activeMarkers']['includes'](_0x4bcbea['markerName'])?_0x4dd250['writer']['addClass']('ck-suggestion-marker--active',_0x56c157):_0x4dd250['writer']['removeClass']('ck-suggestion-marker--active',_0x56c157));for(const _0x52de13 of _0x461433['model']['createRangeIn'](_0x4bcbea['item'])['getItems']())_0x4dd250['consumable']['consume'](_0x52de13,_0x1f665c['name']);_0x4dd250['consumable']['consume'](_0x4bcbea['item'],_0x1f665c['name']);}};_0x461433['conversion']['for']('dataDowncast')['add'](_0x2d3b7d=>{_0x2d3b7d['on']('addMarker:suggestion:formatBlock',(_0xb64524,_0x1b9f94,_0x5aae89)=>{_0x5aae89['options']['showSuggestionHighlights']&&_0x121e65({'showActiveMarkers':!0x1})(_0xb64524,_0x1b9f94,_0x5aae89);},{'priority':'highest'});}),_0x461433['conversion']['for']('dataDowncast')['add'](_0x5ebd46=>{_0x5ebd46['on']('addMarker:suggestion:attribute',(_0x40b972,_0x20cdbb,_0x2edbf1)=>{_0x2edbf1['options']['showSuggestionHighlights']&&_0x121e65({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x40b972,_0x20cdbb,_0x2edbf1);},{'priority':'highest'});}),_0x461433['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x13a1b5,_0x3f6be6)=>_0x3f6be6['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x13a1b5['substr'](0xb)}}),_0x461433['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1c415c,{writer:_0x1ab68b})=>{let _0x3fa3cb='suggestion:'+_0x1c415c['getAttribute']('suggestion-type')+':'+_0x1c415c['getAttribute']('id');return _0x1c415c['getAttribute']('marker-count')&&(_0x3fa3cb+=':'+_0x1c415c['getAttribute']('marker-count')),_0x1ab68b['createElement']('$marker',{'data-name':_0x3fa3cb});}}),_0x461433['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x461433['conversion']['for']('editingDowncast')['add'](_0x280c4a=>{_0x280c4a['on']('addMarker:suggestion:formatBlock',_0x121e65(),{'priority':'high'});}),_0x461433['conversion']['for']('editingDowncast')['add'](_0x5f5aba=>{_0x5f5aba['on']('addMarker:suggestion:attribute',_0x121e65({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x461433['conversion']['for']('editingDowncast')['add'](_0x521c7b=>{_0x521c7b['on']('removeMarker:suggestion:formatBlock',(_0x44e053,_0x532d69,_0x1d0bf2)=>{const _0x271036=_0x1d0bf2['mapper']['markerNameToElements'](_0x532d69['markerName']);if(_0x271036){for(const _0x488c56 of _0x271036)_0x488c56['getCustomProperty']('addHighlight')||(_0x1d0bf2['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x488c56),_0x1d0bf2['writer']['removeAttribute']('data-suggestion',_0x488c56),_0x1d0bf2['writer']['removeAttribute']('data-author-id',_0x488c56),_0x1d0bf2['mapper']['unbindElementFromMarkerName'](_0x488c56,_0x532d69['markerName']));}},{'priority':'high'});}),_0x461433['conversion']['for']('editingDowncast')['add'](_0x236299=>{_0x236299['on']('removeMarker:suggestion:attribute',(_0x5cbc80,_0x3dd6ef,_0x2c5921)=>{const _0x4681a7=_0x2c5921['mapper']['markerNameToElements'](_0x3dd6ef['markerName']);if(!_0x4681a7)return;const {id:_0x2bd8d6}=this['_splitMarkerName'](_0x3dd6ef['markerName']),_0x8d6ddd=this['_suggestions']['get'](_0x2bd8d6),_0x4f5f03=this['_getAttributeKey'](_0x8d6ddd);if(this['_isBlockAttribute'](_0x4f5f03)){for(const _0x325d46 of _0x4681a7)_0x325d46['getCustomProperty']('addHighlight')||(_0x2c5921['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x325d46),_0x2c5921['writer']['removeAttribute']('data-suggestion',_0x325d46),_0x2c5921['writer']['removeAttribute']('data-author-id',_0x325d46),_0x2c5921['mapper']['unbindElementFromMarkerName'](_0x325d46,_0x3dd6ef['markerName']));}},{'priority':'high'});}),_0x461433['model']['document']['registerPostFixer'](_0x29bf99=>{let _0x5f3dfc=!0x1;const _0x13adc9=Array['from'](_0x461433['model']['document']['differ']['getChangedMarkers']()),_0xd67f78=new Set();for(const {name:_0x21c1ea,data:_0x3e3430}of _0x13adc9){const {group:_0x210024,type:_0x5866c8,subType:_0x322062,id:_0x343ab8}=this['_splitMarkerName'](_0x21c1ea);if('suggestion'!==_0x210024)continue;const _0x197449=this['_suggestions']['get'](_0x343ab8);if(null!=_0x3e3430['newRange']){'formatInline'==_0x5866c8&&(_0x5f3dfc=_0x5f3dfc||Lt(_0x3e3430['newRange'],_0x21c1ea,_0x29bf99,_0x461433['model']['schema']));const _0x41b839='attribute'==_0x5866c8&&this['_isBlockAttribute'](_0x322062['split']('|')[0x0]);if(_0x3e3430['newRange']['isCollapsed']||'$graveyard'==_0x3e3430['newRange']['root']['rootName']||'formatBlock'==_0x5866c8&&!Ht(_0x3e3430['newRange'])||_0x41b839&&!Ht(_0x3e3430['newRange'])||'deletion'==_0x5866c8&&!(!Ft(_0x44679f=_0x3e3430['newRange'])&&!function(_0x199c8b){return _0x199c8b['start']['parent']==_0x199c8b['end']['nodeBefore']&&_0x199c8b['start']['isAtEnd'];}(_0x44679f)))_0x29bf99['removeMarker'](_0x21c1ea),_0x5f3dfc=!0x0;else{if(!_0x197449||!_0x197449['isInContent'])continue;if(_0x3e3430['newRange']&&_0x3e3430['oldRange']&&_0x3e3430['newRange']['isEqual'](_0x3e3430['oldRange']))continue;_0xd67f78['add'](_0x197449);}}}var _0x44679f;return _0xd67f78['size']>0x0&&(_0x5f3dfc=!!this['_joinWithAdjacentSuggestions'](_0xd67f78)||_0x5f3dfc),_0x5f3dfc;}),_0x461433['model']['document']['registerPostFixer'](_0xc7f894=>{let _0x5ba344=!0x1;for(const _0x1cbf15 of _0x461433['model']['document']['differ']['getChanges']())if('insert'==_0x1cbf15['type'])for(const _0x2ecaa8 of this['_suggestions']['values']()){if(_0x2ecaa8['isMultiRange']||!_0x2ecaa8['isInContent'])continue;const _0x7ddb5f='formatBlock'==_0x2ecaa8['type'],_0x21dad4=this['_getAttributeKey'](_0x2ecaa8),_0x8baef=_0x21dad4&&this['_isBlockAttribute'](_0x21dad4);if(!_0x7ddb5f&&!_0x8baef)continue;const _0x2e8299=_0x2ecaa8['getFirstRange']();if(_0x2e8299['start']['parent']!=_0x2e8299['end']['parent']&&!_0x2e8299['end']['isAtEnd']){const _0x3d53bb=_0x461433['model']['createPositionAt'](_0x2e8299['start']['nodeAfter'],'end'),_0x48cb5b=_0x461433['model']['createRange'](_0x2e8299['start'],_0x3d53bb);_0xc7f894['updateMarker'](_0x2ecaa8['getFirstMarker'](),{'range':_0x48cb5b}),_0x5ba344=!0x0;}}return _0x5ba344;}),_0x461433['model']['document']['registerPostFixer'](_0x30f2ac=>this['_processAttributeChanges'](_0x30f2ac)),_0x461433['model']['document']['registerPostFixer'](_0x122307=>!_0x122307['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x122307)),_0x461433['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x461433['model']['document']['on']('change:data',(_0x3d1b09,_0x54eaa0)=>{if(!_0x54eaa0['isLocal']||_0x54eaa0['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x5c0cc9=_0x461433['model']['document']['differ']['getChanges']();if(0x0==_0x5c0cc9['length'])return;const _0x44d48e=[],_0x11f91e=_0x5c0cc9['filter'](_0x390eeb=>'attribute'==_0x390eeb['type']),_0x4c0e28=_0x5c0cc9['filter'](_0xfd8dfa=>'insert'==_0xfd8dfa['type']&&'$text'!=_0xfd8dfa['name']);for(const _0x57198c of _0x11f91e)this['_isRegisteredAttribute'](_0x57198c['attributeKey'])&&_0x44d48e['push']({'key':_0x57198c['attributeKey'],'newValue':_0x57198c['attributeNewValue'],'oldValue':_0x57198c['attributeOldValue'],'range':qt(_0x57198c['range'],_0x461433['model'])});for(const _0x393b92 of _0x4c0e28){if('rename'!=_0x393b92['action']&&'refresh'!=_0x393b92['action'])continue;const _0x56db30=zt(_0x393b92['position']['nodeAfter'],_0x461433['model']),_0x5682a6=_0x393b92['before'];'rename'==_0x393b92['action']&&_0x44d48e['push']({'key':m,'newValue':_0x393b92['name'],'oldValue':_0x5682a6['name'],'range':_0x56db30});for(const [_0x1a16cc,_0x1bd369]of _0x5682a6['attributes']){if(!this['_isRegisteredAttribute'](_0x1a16cc))continue;const _0x3680c6=_0x393b92['attributes']['get'](_0x1a16cc);_0x1bd369!==_0x3680c6&&_0x44d48e['push']({'key':_0x1a16cc,'newValue':_0x3680c6,'oldValue':_0x1bd369,'range':_0x56db30});}for(const [_0x1ae47c,_0x1d301e]of _0x393b92['attributes'])this['_isRegisteredAttribute'](_0x1ae47c)&&(_0x5682a6['attributes']['has'](_0x1ae47c)||_0x44d48e['push']({'key':_0x1ae47c,'newValue':_0x1d301e,'oldValue':null,'range':_0x56db30}));}0x0!=_0x44d48e['length']&&_0x461433['model']['enqueueChange'](_0x54eaa0,_0x2bffa6=>{const _0x5a3194=_0x1ece5b();for(const {range:_0x2d0551,key:_0x504093,oldValue:_0x49431b,newValue:_0x1843e7}of _0x44d48e)this['markAttributeChange'](_0x2d0551,_0x504093,_0x49431b,_0x1843e7,{'groupId':_0x5a3194});this['_reduceExistingSuggestions'](_0x2bffa6,_0x44d48e);});},{'priority':'lowest'}),_0x461433['model']['markers']['on']('update:suggestion',(_0x6f5a1f,_0x383ad5,_0x59c680)=>{if(null==_0x59c680){const {id:_0x221c89}=this['_splitMarkerName'](_0x383ad5['name']),_0x299592=this['_suggestions']['get'](_0x221c89);_0x299592&&_0x299592['addMarkerName'](_0x383ad5['name']);}}),_0x461433['model']['document']['on']('change:data',()=>{const _0x427e1f=Array['from'](_0x461433['model']['document']['differ']['getChangedMarkers']())['filter'](_0x35d1bb=>'suggestion'===this['_splitMarkerName'](_0x35d1bb['name'])['group']);if(0x0===_0x427e1f['length'])return;_0x427e1f['sort']((_0x238ade,_0x569c97)=>{const _0x4c90ba=_0x238ade['data']['oldRange'],_0x54497c=_0x569c97['data']['oldRange'];return null===_0x4c90ba&&null===_0x54497c?0x0:null===_0x4c90ba&&null!==_0x54497c?-0x1:null!==_0x4c90ba&&null===_0x54497c?0x1:_0x4c90ba['start']['isBefore'](_0x54497c['start'])?-0x1:0x1;});const _0x22935e=new Set(),_0x3fa850=new Set();for(const {name:_0x50aee9,data:_0x52e8f8}of _0x427e1f){const {id:_0x209b11}=this['_splitMarkerName'](_0x50aee9);if(null===_0x52e8f8['oldRange']){const _0x3587c7=this['_handleNewSuggestionMarker'](_0x50aee9);_0x3fa850['add'](_0x3587c7);}else{const _0x48a8e2=this['_suggestions']['get'](_0x209b11);null!==_0x52e8f8['newRange']||_0x48a8e2['isInContent']?(_0x22935e['add'](_0x48a8e2['head']),_0x3fa850['add'](_0x48a8e2)):this['_removeSuggestion'](_0x48a8e2);}}_0x3fa850['size']>0x0&&this['_refreshSuggestionsChain'](_0x3fa850);for(const _0x144c66 of _0x22935e)this['fire']('suggestionChanged',_0x144c66);}),_0x461433['model']['on']('applyOperation',(_0x58e372,_0x479825)=>{const _0x2b6bfc=_0x479825[0x0];if(!this['_suggestions']['size'])return;if(!_0x2b6bfc['isDocumentOperation'])return;if(_0x2b6bfc['batch']['isUndo']||!_0x2b6bfc['batch']['isLocal'])return;let _0x4033f3,_0x4e7e4f;switch(_0x2b6bfc['type']){case'insert':_0x4033f3=_0x461433['model']['createPositionAt'](_0x2b6bfc['position']),_0x4e7e4f=_0x4033f3['getShiftedBy'](_0x2b6bfc['howMany']);break;case'split':_0x4033f3=_0x461433['model']['createPositionAt'](_0x2b6bfc['splitPosition']),_0x4e7e4f=_0x461433['model']['createPositionAt'](_0x2b6bfc['moveTargetPosition']);break;case'move':_0x4033f3=_0x461433['model']['createPositionAt'](_0x2b6bfc['targetPosition']),_0x4e7e4f=_0x4033f3['getShiftedBy'](_0x2b6bfc['howMany']);break;default:return;}const _0x46f300=_0x461433['model']['createRange'](_0x4033f3,_0x4e7e4f);_0x461433['model']['change'](()=>{for(const {suggestion:_0x12275d,meta:_0x13cc9c}of this['_findSuggestions'](_0x46f300)){if(_0x12275d['isMultiRange'])continue;if('formatInline'==_0x12275d['type'])continue;const _0x5c0f21=this['_getAttributeKey'](_0x12275d);if(_0x5c0f21&&this['_isBlockAttribute'](_0x5c0f21)&&'split'!=_0x2b6bfc['type'])continue;const _0x5a88e0=_0x12275d['data']&&_0x12275d['data']['multipleBlocks'];('formatBlock'!=_0x12275d['type']||'split'==_0x2b6bfc['type']&&!_0x5a88e0)&&(_0x13cc9c['containsRangeInObject']||'insertion'==_0x12275d['type']&&_0x13cc9c['isOwn']||_0x12275d['getFirstRange']()['containsRange'](_0x46f300)&&this['_breakSuggestionMarker'](_0x12275d,_0x4033f3,_0x4e7e4f));}});},{'priority':'lowest'}),_0x461433['model']['on']('deleteContent',(_0x5a97e1,_0x384456)=>{const _0x144019=_0x384456[0x0],_0x5d3e66=_0x384456[0x1];if(_0x5d3e66&&_0x5d3e66['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x144019['isCollapsed'])return;const _0x3d485c=_0x461433['model']['schema'],{start:_0x582c35,end:_0x5b5117}=_0x144019['getFirstRange'](),_0x55dfe9=_0x582c35['nodeAfter']&&_0x3d485c['isLimit'](_0x582c35['nodeAfter'])?null:_0x3d485c['getNearestSelectionRange'](_0x582c35,'forward'),_0x3b2122=_0x5b5117['nodeBefore']&&_0x3d485c['isLimit'](_0x5b5117['nodeBefore'])?null:_0x3d485c['getNearestSelectionRange'](_0x5b5117,'backward'),_0x335451=_0x461433['model']['createRange'](_0x55dfe9?_0x55dfe9['start']:_0x582c35,_0x3b2122?_0x3b2122['end']:_0x5b5117);_0x461433['model']['change'](_0x23dd96=>{this['markDeletion'](_0x335451);const _0x2ba96b=_0x461433['model']['schema']['getNearestSelectionRange'](_0x335451['start']);_0x144019['is']('documentSelection')?_0x23dd96['setSelection'](_0x2ba96b):_0x144019['setTo'](_0x2ba96b);}),_0x5a97e1['stop']();},{'priority':_0x3d5167['normal']+0xa}),_0x461433['model']['on']('insertContent',(_0xc61d2a,_0x5e1481)=>{const _0x44a623=_0x5e1481[_0x5e1481['length']-0x1];_0x44a623&&_0x44a623['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x461433['model']['change'](()=>{let _0xad82b5=_0x461433['model']['insertContent'](_0x5e1481[0x0],_0x5e1481[0x1],_0x5e1481[0x2],{'forceDefaultExecution':!0x0});if(!_0xad82b5)return;_0xc61d2a['return']=_0xad82b5['clone']();const _0x2c9936=_0xad82b5['end']['nodeBefore'],_0x4219fe=_0x461433['model']['schema'];_0x2c9936&&_0x4219fe['isBlock'](_0x2c9936)&&!_0x4219fe['isObject'](_0x2c9936)&&(_0xad82b5=_0x461433['model']['createRange'](_0xad82b5['start'],_0x461433['model']['createPositionAt'](_0x2c9936,'end'))),this['markInsertion'](_0xad82b5);}),_0xc61d2a['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x453b7b=new O(_0x461433,this['_suggestions']);_0x461433['commands']['add']('acceptSuggestion',_0x453b7b),this['enableCommand']('acceptSuggestion');const _0xa88db9=new R(_0x461433,this['_suggestions']);_0x461433['commands']['add']('discardSuggestion',_0xa88db9),this['enableCommand']('discardSuggestion'),_0x461433['commands']['add']('acceptAllSuggestions',new x(_0x461433,_0x453b7b,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x461433['commands']['add']('discardAllSuggestions',new x(_0x461433,_0xa88db9,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x461433['commands']['add']('acceptSelectedSuggestions',new E(_0x461433,_0x453b7b,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x461433['commands']['add']('discardSelectedSuggestions',new E(_0x461433,_0xa88db9,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x27539=_0x461433['plugins']['get']('CommentsRepository');this['listenTo'](_0x27539,'addComment',(_0x5c23f4,{threadId:_0x27a441})=>{const _0x5d8e39=this['_suggestions']['get'](_0x27a441);_0x5d8e39&&_0x5d8e39['commentThread']&&0x1===_0x5d8e39['commentThread']['length']&&this['_updateSuggestionData'](_0x27a441,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x27539,'removeComment',(_0x227623,{threadId:_0x4ff08b})=>{const _0x161680=this['_suggestions']['get'](_0x4ff08b);_0x161680&&_0x161680['commentThread']&&!_0x161680['commentThread']['length']&&this['_updateSuggestionData'](_0x4ff08b,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x7dd2db){const _0x3accfe=_0x476500([0x43,0x4d,0x4c,0x6c,0x4f,0x61,0x79,0x39,0x45,0x69,0x63,0x62,0x76,0x74,0x32,0x78,0x66,0x6b,0x53,0x41,0x56,0x44,0x38,0x50,0x59,0x68,0x30,0x36,0x71,0x7a,0x33,0x48,0x4b,0x49,0x67,0x31,0x73,0x47,0x72,0x42,0x34,0x6e,0x54,0x77,0x4e,0x65,0x70,0x64,0x51,0x6f,0x52,0x5a,0x57,0x37,0x6d,0x6a,0x4a,0x46,0x35,0x75,0x58,0x55]),_0x274f24=0x5a38816a,_0x14da57=0x5a3fdfe2^_0x274f24,_0x417bdb=window[_0x476500([0x44,0x61,0x74,0x65])][_0x476500([0x6e,0x6f,0x77])](),_0x4ab10b=_0x7dd2db[_0x476500([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x351521=new window[(_0x476500([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x32004d=>{_0x4ab10b[_0x476500([0x6f,0x6e,0x63,0x65])](_0x476500([0x72,0x65,0x61,0x64,0x79]),_0x32004d);}),_0x384f49={[_0x476500([0x6b,0x74,0x79])]:_0x476500([0x45,0x43]),[_0x476500([0x75,0x73,0x65])]:_0x476500([0x73,0x69,0x67]),[_0x476500([0x63,0x72,0x76])]:_0x476500([0x50,0x2d,0x32,0x35,0x36]),[_0x476500([0x78])]:_0x476500([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]),[_0x476500([0x79])]:_0x476500([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]),[_0x476500([0x61,0x6c,0x67])]:_0x476500([0x45,0x53,0x32,0x35,0x36])},_0x911daa=_0x4ab10b[_0x476500([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x476500([0x67,0x65,0x74])](_0x476500([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x552fbf(){let _0x50b6cd,_0x11433e=null,_0x2a3142=null;try{if(_0x911daa==_0x476500([0x47,0x50,0x4c]))return _0x476500([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x50b6cd=_0x15105e(),!_0x50b6cd)return _0x476500([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x50b6cd[_0x476500([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2a3142=_0x29b74c(_0x50b6cd[_0x476500([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x50b6cd[_0x476500([0x6a,0x74,0x69])])),await _0x397ba2()?_0x2199b6()?_0x14bc36()?_0x476500([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x15ab44()?(_0x50b6cd[_0x476500([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x476500([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x11433e=_0x38dcb8(_0x476500([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x50b6cd[_0x476500([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x476500([0x74,0x72,0x69,0x61,0x6c])&&(_0x11433e=_0x38dcb8(_0x476500([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x22753d()):_0x476500([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x476500([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x476500([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x5088c5){return _0x476500([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x14bc36(){const _0x4ba40a=[_0x476500([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x476500([0x74,0x72,0x69,0x61,0x6c])][_0x476500([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x50b6cd[_0x476500([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x417bdb/0x3e8:0xe10*_0x14da57;return _0x50b6cd[_0x476500([0x65,0x78,0x70])]<_0x4ba40a;}function _0x2199b6(){const _0x77fa08=_0x50b6cd[_0x476500([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x77fa08)return!0x1;if(_0x77fa08[_0x476500([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x476500([0x2a])))return!0x0;if(_0x77fa08[_0x476500([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x476500([0x54,0x43])))return!0x0;if(_0x77fa08[_0x476500([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x476500([0x52,0x54,0x43]))){if(_0x4c57de())return!0x0;if(_0x362825()||_0xf25b6d())return!0x0;}return!0x1;}function _0x15ab44(){const _0xb89c64=_0x50b6cd[_0x476500([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xb89c64||0x0==_0xb89c64[_0x476500([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xff8a0e}=new URL(window[_0x476500([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xb89c64[_0x476500([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xff8a0e))return!0x0;const _0x26c71c=_0xff8a0e[_0x476500([0x73,0x70,0x6c,0x69,0x74])](_0x476500([0x2e]));return _0xb89c64[_0x476500([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5dd1a2=>_0x5dd1a2[_0x476500([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x476500([0x2a])))[_0x476500([0x6d,0x61,0x70])](_0x445450=>_0x445450[_0x476500([0x73,0x70,0x6c,0x69,0x74])](_0x476500([0x2e])))[_0x476500([0x73,0x6f,0x6d,0x65])](_0x1c9d67=>_0x26c71c[_0x476500([0x65,0x76,0x65,0x72,0x79])]((_0x22e443,_0x4ebf47)=>_0x1c9d67[_0x4ebf47]===_0x22e443||_0x1c9d67[_0x4ebf47]===_0x476500([0x2a])));}function _0x22753d(){return _0x11433e&&_0x2a3142?new window[(_0x476500([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4b78b2,_0x340f14)=>{_0x11433e[_0x476500([0x74,0x68,0x65,0x6e])](_0x4b78b2,_0x340f14),_0x2a3142[_0x476500([0x74,0x68,0x65,0x6e])](_0x33aaf0=>{_0x33aaf0!=_0x476500([0x56,0x61,0x6c,0x69,0x64])&&_0x4b78b2(_0x33aaf0);},_0x340f14);}):_0x11433e||_0x2a3142||_0x476500([0x56,0x61,0x6c,0x69,0x64]);}}function _0x29b74c(_0x3775b0,_0x59122d){return new window[(_0x476500([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x16e14b=>{if(_0xd4eceb())return _0x16e14b(_0x476500([0x56,0x61,0x6c,0x69,0x64]));_0x530613(),_0x4ab10b[_0x476500([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x476500([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x143dda=!0x1;const _0xa7b833=_0x1ece5b();function _0x59aaf7(_0x54c449){return!!_0x54c449&&(typeof _0x54c449===_0x476500([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x54c449===_0x476500([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x54c449[_0x476500([0x74,0x68,0x65,0x6e])]===_0x476500([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x54c449[_0x476500([0x63,0x61,0x74,0x63,0x68])]===_0x476500([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x314b89(_0x405060){_0x57d167(_0x405060)[_0x476500([0x74,0x68,0x65,0x6e])](_0x4d5482=>{if(!_0x4d5482||_0x4d5482[_0x476500([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x476500([0x6f,0x6b]))return _0x476500([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1fdd02(_0x4974f3(_0xa7b833+_0x59122d))!=_0x4d5482[_0x476500([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x476500([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x476500([0x56,0x61,0x6c,0x69,0x64]);})[_0x476500([0x74,0x68,0x65,0x6e])](_0xa9f53=>(_0x46c61a(),_0xa9f53),()=>{const _0x5999dc=_0x438b8e();return null==_0x5999dc?(_0x46c61a(),_0x476500([0x56,0x61,0x6c,0x69,0x64])):_0x476500(_0x417bdb-_0x5999dc>(0x7e34056a^_0x274f24)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x476500([0x74,0x68,0x65,0x6e])](_0x16e14b)[_0x476500([0x63,0x61,0x74,0x63,0x68])](()=>{_0x16e14b(_0x476500([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x39f43a=0x5a0e6fea^_0x274f24;function _0x46c61a(){const _0x1a68ea=_0x476500([0x6c,0x6c,0x63,0x74,0x2d])+_0x1fdd02(_0x4974f3(_0x3775b0)),_0x276de2=_0x529780(_0x1fdd02(window[_0x476500([0x4d,0x61,0x74,0x68])][_0x476500([0x63,0x65,0x69,0x6c])](_0x417bdb/_0x39f43a)));window[_0x476500([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x476500([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1a68ea,_0x276de2);}function _0x438b8e(){const _0x195509=_0x476500([0x6c,0x6c,0x63,0x74,0x2d])+_0x1fdd02(_0x4974f3(_0x3775b0)),_0x1053c0=window[_0x476500([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x476500([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x195509);return _0x1053c0?window[_0x476500([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x529780(_0x1053c0),0x10)*_0x39f43a:null;}function _0x57d167(_0x8cb459){return new window[(_0x476500([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x447a9a,_0x4a01a6)=>{_0x8cb459[_0x476500([0x74,0x68,0x65,0x6e])](_0x447a9a,_0x4a01a6),window[_0x476500([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4a01a6,0x5a3955aa^_0x274f24);});}}_0x4ab10b[_0x476500([0x6f,0x6e])](_0x476500([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xa1c0ab,_0x6fda8b)=>{if(_0x6fda8b[0x0]!=_0x3775b0)return _0x16e14b(_0x476500([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x6fda8b[0x1]={..._0x6fda8b[0x1],[_0x476500([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xa7b833};},{[_0x476500([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x476500([0x68,0x69,0x67,0x68])}),_0x4ab10b[_0x476500([0x6f,0x6e])](_0x476500([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x954160=>{_0x59aaf7(_0x954160[_0x476500([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x143dda=!0x0,_0x314b89(_0x954160[_0x476500([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x476500([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x476500([0x6c,0x6f,0x77])}),_0x351521[_0x476500([0x74,0x68,0x65,0x6e])](()=>{_0x143dda||_0x16e14b(_0x476500([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xd4eceb(){return _0x4ab10b[_0x476500([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x476500([0x76,0x69,0x65,0x77])][_0x476500([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x476500([0x61,0x75,0x74,0x6f]);}function _0x530613(){_0x4ab10b[_0x476500([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x476500([0x76,0x69,0x65,0x77])][_0x476500([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x476500([0x61,0x75,0x74,0x6f]);}}function _0x38dcb8(_0x22fbf5){const _0x5de021=[new window[(_0x476500([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xc56248=>setTimeout(_0xc56248,0x5a31bfa6^_0x274f24)),_0x351521[_0x476500([0x74,0x68,0x65,0x6e])](()=>new window[(_0x476500([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x16a855=>{let _0x5ceb6d=0x0;_0x4ab10b[_0x476500([0x6d,0x6f,0x64,0x65,0x6c])][_0x476500([0x6f,0x6e])](_0x476500([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4c8373,_0x2f8db4)=>{_0x2f8db4[0x0][_0x476500([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5ceb6d++,_0x5ceb6d==(0x5a388092^_0x274f24)&&(_0x16a855(),_0x4c8373[_0x476500([0x6f,0x66,0x66])]());});}))];return window[_0x476500([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x476500([0x72,0x61,0x63,0x65])](_0x5de021)[_0x476500([0x74,0x68,0x65,0x6e])](()=>_0x22fbf5);}async function _0x484960(){await _0x351521,_0x4ab10b[_0x476500([0x6d,0x6f,0x64,0x65,0x6c])][_0x476500([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x54ef00,_0x4ab10b[_0x476500([0x6d,0x6f,0x64,0x65,0x6c])][_0x476500([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x54ef00,_0x4ab10b[_0x476500([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x476500([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4c57de(){return _0x24850a(_0x476500([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x545ac7(_0x476500([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x476500([0x73,0x74,0x61,0x74,0x65])]==_0x476500([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x362825(){return _0x24850a(_0x476500([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 _0xf25b6d(){return _0x24850a(_0x476500([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x57a82a(_0x5e30ed){const _0x46f39f=_0x37cea5();_0x4ab10b[_0x46f39f]=_0x476500([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5e30ed,_0x5e30ed!=_0x476500([0x56,0x61,0x6c,0x69,0x64])&&_0x484960();}function _0x37cea5(){const _0x75b17f=window[_0x476500([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x476500([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x476500([0x6e,0x6f,0x77])]())[_0x476500([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x476500([0x2e]),'');let _0x1db0c2=_0x476500([0x43]);for(let _0x4680f0=0x0;_0x4680f0<_0x75b17f[_0x476500([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4680f0+=0x2){let _0x40ba45=window[_0x476500([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x75b17f[_0x476500([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4680f0,_0x4680f0+0x2));_0x40ba45>=_0x3accfe[_0x476500([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x40ba45-=_0x3accfe[_0x476500([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1db0c2+=_0x3accfe[_0x40ba45];}return _0x1db0c2;}function _0x15105e(){const _0x4d05a4=_0x911daa[_0x476500([0x73,0x70,0x6c,0x69,0x74])](_0x476500([0x2e]));if(0x3!=_0x4d05a4[_0x476500([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4c0056(_0x4d05a4[0x1]);function _0x4c0056(_0x4c5549){const _0x472957=_0x302f31(_0x4c5549);return _0x472957&&_0x20afb6()?_0x472957:null;function _0x20afb6(){const _0x273729=_0x472957[_0x476500([0x6a,0x74,0x69])],_0x2e956e=window[_0x476500([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x273729[_0x476500([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x273729[_0x476500([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x451b79={..._0x472957,[_0x476500([0x6a,0x74,0x69])]:_0x273729[_0x476500([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x273729[_0x476500([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x451b79[_0x476500([0x76,0x63])],_0x4974f3(_0x451b79)==_0x2e956e;}}}async function _0x397ba2(){let _0x37006b=!0x0;try{const _0x3d62c4=_0x911daa[_0x476500([0x73,0x70,0x6c,0x69,0x74])](_0x476500([0x2e])),[_0x22a174,_0x1db134,_0x2eb3d3]=_0x3d62c4;return _0x5261b7(_0x22a174),await _0x192ec6(_0x22a174,_0x1db134,_0x2eb3d3),_0x37006b;}catch(_0x46c5bb){return!0x1;}function _0x5261b7(_0x482f25){const _0x2abb4f=_0x302f31(_0x482f25);_0x2abb4f&&_0x2abb4f[_0x476500([0x61,0x6c,0x67])]==_0x476500([0x45,0x53,0x32,0x35,0x36])||(_0x37006b=!0x1);}async function _0x192ec6(_0x3e9056,_0x33f285,_0x39eb54){const _0x322a59=window[_0x476500([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x476500([0x66,0x72,0x6f,0x6d])](_0x360018(_0x39eb54),_0x139361=>_0x139361[_0x476500([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x12c44d=new window[(_0x476500([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x476500([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3e9056+_0x476500([0x2e])+_0x33f285),_0x91c864=window[_0x476500([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x476500([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x91c864)return;const _0x1f4bd5=await _0x91c864[_0x476500([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x476500([0x6a,0x77,0x6b]),_0x384f49,{[_0x476500([0x6e,0x61,0x6d,0x65])]:_0x476500([0x45,0x43,0x44,0x53,0x41]),[_0x476500([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x476500([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x476500([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x91c864[_0x476500([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x476500([0x6e,0x61,0x6d,0x65])]:_0x476500([0x45,0x43,0x44,0x53,0x41]),[_0x476500([0x68,0x61,0x73,0x68])]:{[_0x476500([0x6e,0x61,0x6d,0x65])]:_0x476500([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1f4bd5,_0x322a59,_0x12c44d)||(_0x37006b=!0x1);}}function _0x302f31(_0x3eb8cb){return _0x3eb8cb[_0x476500([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x476500([0x65,0x79]))?JSON[_0x476500([0x70,0x61,0x72,0x73,0x65])](_0x360018(_0x3eb8cb)):null;}function _0x360018(_0x3b2e53){return window[_0x476500([0x61,0x74,0x6f,0x62])](_0x3b2e53[_0x476500([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x476500([0x2b]))[_0x476500([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x476500([0x2f])));}function _0x4974f3(_0x4d9a12){let _0x51c6e6=0x1505;function _0x406a4c(_0x73b77e){for(let _0x5c8f2c=0x0;_0x5c8f2c<_0x73b77e[_0x476500([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5c8f2c++){const _0x3ac41c=_0x73b77e[_0x476500([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5c8f2c);_0x51c6e6=(_0x51c6e6<<0x5)+_0x51c6e6+_0x3ac41c,_0x51c6e6&=_0x51c6e6;}}function _0x2eaeb4(_0x310bfe){Array[_0x476500([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x310bfe)?_0x310bfe[_0x476500([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2eaeb4):_0x310bfe&&typeof _0x310bfe==_0x476500([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x476500([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x310bfe)[_0x476500([0x73,0x6f,0x72,0x74])]()[_0x476500([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x14665c,_0x21c23d])=>{_0x406a4c(_0x14665c),_0x2eaeb4(_0x21c23d);}):_0x406a4c(window[_0x476500([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x310bfe));}return _0x2eaeb4(_0x4d9a12),_0x51c6e6>>>0x0;}function _0x1fdd02(_0x4ba62c){return _0x4ba62c[_0x476500([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x476500([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x476500([0x30]));}function _0x529780(_0x558325){return _0x558325[_0x476500([0x73,0x70,0x6c,0x69,0x74])]('')[_0x476500([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x476500([0x6a,0x6f,0x69,0x6e])]('');}function _0x24850a(_0x39cbc){return _0x4ab10b[_0x476500([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x476500([0x68,0x61,0x73])](_0x39cbc);}function _0x545ac7(_0x27b958){return _0x4ab10b[_0x476500([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x476500([0x67,0x65,0x74])](_0x27b958);}function _0x54ef00(){}function _0x476500(_0x127a43){return _0x127a43['map'](_0x2065c5=>String['fromCharCode'](_0x2065c5))['join']('');}_0x57a82a(await _0x552fbf());}(this);}set['adapter'](_0x533bba){if(this['_adapter'])throw new _0x5aa28e('track-changes-adapter-already-set',this);this['_adapter']=_0x533bba;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x1ef893=!0x1,toJSON:_0x2520ea=!0x1}={}){const _0xe49b55=[];for(const _0x4d620c of this['_suggestions']['values']())_0x1ef893&&!_0x4d620c['isInContent']||_0xe49b55['push'](_0x4d620c);return _0x2520ea?_0xe49b55['map'](_0x18fbab=>_0x18fbab['toJSON']()):_0xe49b55;}['getSuggestion'](_0x129f5e){const _0x5ac69c=this['_suggestions']['get'](_0x129f5e);if(!_0x5ac69c)throw new _0x5aa28e('track-changes-suggestion-not-found',this);return _0x5ac69c;}['hasSuggestion'](_0x38bccd){return this['_suggestions']['has'](_0x38bccd);}['addSuggestionData'](_0x408fa1){const {authorId:_0x2715a4,id:_0x5c6561,attributes:_0x10ca2e}=_0x408fa1,[_0x47b69e,_0x462c8e]=_0x408fa1['type']['split'](':'),_0x5c4d84=this['_suggestions']['get'](_0x5c6561)||this['_createSuggestion'](_0x47b69e,_0x462c8e,_0x5c6561,_0x2715a4,_0x10ca2e);if(this['_addThreadToSuggestion'](_0x5c4d84),this['_checkSuggestionCorrectness'](_0x5c4d84,_0x47b69e,_0x462c8e||null,_0x2715a4),_0x5c4d84['createdAt']=_0x408fa1['createdAt'],_0x5c4d84['_isDataLoaded']=!0x0,_0x10ca2e&&_0x10ca2e['@external']){const _0x438489=_0x10ca2e['@external'],_0x316875=this['_getExternalAuthor'](_0x438489['authorName']);_0x5c4d84['authoredAt']=_0x438489['createdAt'],_0x5c4d84['author']=_0x316875,_0x5c4d84['isExternal']=!0x0;}else _0x5c4d84['authoredAt']=_0x408fa1['createdAt'];switch(_0x408fa1['data']&&(_0x5c4d84['data']=_0x408fa1['data']),_0x408fa1['attributes']&&(_0x5c4d84['attributes']=_0x408fa1['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x5c4d84['_saved']=!0x0),this['_suggestionState']['get'](_0x5c4d84)){case'notReady':this['_suggestionState']['set'](_0x5c4d84,'dataReady');break;case'markerReady':_0x5c4d84['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x5c4d84])),this['_refreshSuggestionsChain'](new Set([_0x5c4d84])),this['_suggestionState']['set'](_0x5c4d84,'ready'),this['fire']('suggestionLoaded',_0x5c4d84)):this['_suggestionState']['set'](_0x5c4d84,'removed');}return _0x5c4d84;}['acceptSuggestion'](_0xd98fb1){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x52cf35 of _0xd98fb1['getAllAdjacentSuggestions']())_0x52cf35['accept']();});});}['discardSuggestion'](_0x5f03c0){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x44e9b4 of _0x5f03c0['getAllAdjacentSuggestions']())_0x44e9b4['discard']();});});}['enableCommand'](_0x345311,_0x5c77e2){const _0xd1ebba=this['editor']['commands']['get'](_0x345311);if(!_0xd1ebba)throw new _0x5aa28e('track-changes-command-not-found',this,{'commandName':_0x345311});if(this['_enabledCommands']['has'](_0xd1ebba))throw new _0x5aa28e('track-changes-enable-command-twice',this,{'commandName':_0x345311});this['_enabledCommands']['add'](_0xd1ebba),_0x5c77e2&&_0xd1ebba['on']('execute',(_0x496bfa,_0x5116de)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x5116de['length']>0x0&&_0x5116de[_0x5116de['length']-0x1]&&_0x5116de[_0x5116de['length']-0x1]['forceDefaultExecution']?_0x5116de['pop']():(_0x496bfa['return']=_0x5c77e2((..._0xcf94c0)=>_0xd1ebba['execute'](..._0xcf94c0,{'forceDefaultExecution':!0x0}),..._0x5116de),_0x496bfa['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x1f0064){let _0x46693b,_0x437e5d;const _0x4054df=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x46693b=_0x1f0064();}catch(_0x2ef9ea){_0x437e5d=_0x2ef9ea;}return _0x4054df||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x437e5d&&_0x5aa28e['rethrowUnexpectedError'](_0x437e5d,this),_0x46693b;}['markInsertion'](_0x15c34f,_0x557419=null,_0x2721cb={}){if(_0x15c34f['isCollapsed'])return null;const _0x3041be=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x7b2c6f,meta:_0x427e35}of this['_findSuggestions'](_0x15c34f,'insertion'))if(_0x427e35['isOwn']){if(!_0x427e35['isNextTo']){if(_0x427e35['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x7b2c6f,_0x2721cb))continue;return _0x7b2c6f;}if(Qt(_0x7b2c6f,_0x2721cb))return _0x7b2c6f;this['_breakSuggestionMarker'](_0x7b2c6f,_0x15c34f['start'],_0x15c34f['end']);break;}if(_0x557419==_0x7b2c6f['subType']&&Qt(_0x7b2c6f,_0x2721cb)){const _0x382177=_0x7b2c6f['getFirstRange']();return _0x382177['start']['isEqual'](_0x15c34f['end'])?this['_setSuggestionRange'](_0x7b2c6f,this['_model']['createRange'](_0x15c34f['start'],_0x382177['end'])):this['_setSuggestionRange'](_0x7b2c6f,this['_model']['createRange'](_0x382177['start'],_0x15c34f['end'])),_0x7b2c6f;}}const _0xde7dad=_0x1ece5b(),_0x1d7e75=_0x3041be['id'],_0x43c50b=_0x557419?'insertion:'+_0x557419:'insertion',_0x3a228b=this['_setSuggestionData']({'id':_0xde7dad,'type':_0x43c50b,'createdAt':new Date(),'authorId':_0x1d7e75,'attributes':_0x2721cb});return this['_addSuggestionMarker'](_0x43c50b,_0xde7dad,_0x1d7e75,_0x15c34f),_0x3a228b;}['markMultiRangeInsertion'](_0x3070fa,_0x4591e='multi',_0x1aab3d={}){const _0x365b68=this['editor']['plugins']['get']('Users')['me'],_0x4ef337=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x4591e,'join');for(const _0x9c9922 of this['getSuggestions']())if(_0x9c9922['author']['id']==_0x365b68['id']&&'insertion'==_0x9c9922['type']&&_0x9c9922['subType']==_0x4591e&&Qt(_0x9c9922,_0x1aab3d)&&(_0x4ef337(_0x9c9922['getRanges'](),_0x3070fa)||_0x4ef337(_0x3070fa,_0x9c9922['getRanges']()))){for(const _0x1c3d86 of _0x3070fa)_0x9c9922['addRange'](_0x1c3d86);return _0x9c9922;}for(const {suggestion:_0xbd809a,meta:_0x4451cf}of this['_findSuggestions'](_0x3070fa,'insertion')){if(!_0x4451cf['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x4451cf['containsRangeInObject'])continue;if(!Qt(_0xbd809a,_0x1aab3d))continue;let _0x519504=!0x0;for(const _0x52b28e of _0xbd809a['getRanges']())for(const _0x197b4f of _0x3070fa)if(!_0x52b28e['containsRange'](_0x197b4f)){_0x519504=!0x1;break;}if(_0x519504)return _0xbd809a;}const _0xf1655=_0x1ece5b(),_0x15589a=_0x365b68['id'],_0x26927c='insertion:'+_0x4591e,_0x25e4cf=this['_setSuggestionData']({'id':_0xf1655,'type':_0x26927c,'createdAt':new Date(),'authorId':_0x15589a,'attributes':_0x1aab3d});for(const _0x344aad of _0x3070fa)this['_addSuggestionMarker'](_0x26927c,_0xf1655,_0x15589a,_0x344aad,u['getMultiRangeId']());return _0x25e4cf;}['markInlineFormat'](_0x45107c,_0x3ff36e,_0x3390d4=null,_0x59f303={}){if(_0x3390d4=_0x3390d4||Jt(_0x3ff36e),_0x45107c['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x120e7d=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3390d4,'accept');return this['forceDefaultExecution'](()=>_0x120e7d([_0x45107c],_0x3ff36e,_0x59f303)),null;}const _0x12a4f3=this['editor']['plugins']['get']('Users')['me'],_0x3fdd4c=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x47a698,meta:_0x261b7f}of this['_findSuggestions'](_0x45107c,'insertion'))_0x261b7f['isOwn']&&!_0x261b7f['isInsideObject']&&_0x3fdd4c['push'](..._0x47a698['getRanges']());}const _0x30204e=function(_0x1bebfe,_0x50af9b){const _0xd6323=[];for(const _0x573ad0 of _0x50af9b){const _0x9ef461=_0x1bebfe['getIntersection'](_0x573ad0);_0x9ef461&&_0xd6323['push'](_0x9ef461);}return _0xd6323;}(_0x45107c,_0x3fdd4c),_0x299978=function(_0x5277d6,_0x546fe8){const _0x34cd63=[_0x5277d6];for(const _0x52a7f2 of _0x546fe8){let _0x5567d6=0x0;for(;_0x5567d6<_0x34cd63['length'];){const _0xbba8d6=_0x34cd63[_0x5567d6]['getDifference'](_0x52a7f2);_0x34cd63['splice'](_0x5567d6,0x1,..._0xbba8d6),_0x5567d6+=_0xbba8d6['length'];}}return _0x34cd63;}(_0x45107c,_0x3fdd4c);_0x30204e['length']&&this['_model']['change'](()=>{for(const _0x42eb3c of _0x30204e){const _0x387920=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3390d4,'accept');this['forceDefaultExecution'](()=>_0x387920([_0x42eb3c],_0x3ff36e,_0x59f303));}});for(const _0x38300d of _0x299978){let _0x4d3249=null,_0x8e1eda=_0x38300d['start'],_0x192bd7=_0x38300d['end'];for(const {suggestion:_0x5790b3,meta:_0x111929}of this['_findSuggestions'](_0x38300d,'formatInline')){if(!_0x111929['isOwn'])continue;if(_0x5790b3['subType']!=_0x3390d4)continue;if(!Qt(_0x5790b3,_0x59f303))continue;const _0x4df51c=_0x5790b3['getFirstRange']();if(_0x4df51c['containsRange'](_0x38300d,!0x0))return null;_0x8e1eda=_0x8e1eda['isBefore'](_0x4df51c['start'])?_0x8e1eda:_0x4df51c['start'],_0x192bd7=_0x192bd7['isAfter'](_0x4df51c['end'])?_0x192bd7:_0x4df51c['end'],_0x4d3249?_0x4df51c['start']['isBefore'](_0x4d3249['getFirstRange']()['start'])?(_0x4d3249['removeMarkers'](),_0x4d3249=_0x5790b3):_0x5790b3['removeMarkers']():_0x4d3249=_0x5790b3;}const _0x37fa69=this['_model']['createRange'](_0x8e1eda,_0x192bd7);if(_0x4d3249)this['_setSuggestionRange'](_0x4d3249,_0x37fa69);else{const _0x597c8b=_0x1ece5b(),_0x4bb6c9=_0x12a4f3['id'];this['_setSuggestionData']({'id':_0x597c8b,'type':'formatInline:'+_0x3390d4,'data':_0x3ff36e,'createdAt':new Date(),'authorId':_0x4bb6c9,'attributes':_0x59f303}),this['_addSuggestionMarker']('formatInline:'+_0x3390d4,_0x597c8b,_0x4bb6c9,_0x37fa69);}}return null;}['markBlockFormat'](_0x49da8a,_0x35c71f,_0x18b3e8=[],_0x3d9cc4=null,_0x5a855a={}){_0x35c71f['formatGroupId']||(_0x35c71f['formatGroupId']=_0x35c71f['commandName']),_0x35c71f['multipleBlocks']=_0x49da8a['is']('range'),_0x3d9cc4=_0x3d9cc4||Jt(_0x35c71f);const _0x34a360=_0x18b3e8['map'](_0x4c0564=>zt(_0x4c0564,this['_model'])),_0x18d0ce=_0x49da8a['is']('range')?_0x49da8a:zt(_0x49da8a,this['_model']);if('never'===this['_trackFormatChanges']){const _0x30321e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3d9cc4,'accept');return this['forceDefaultExecution'](()=>_0x30321e([_0x18d0ce],_0x35c71f,_0x5a855a)),null;}_0x34a360['push'](_0x18d0ce);let _0x44bf87=!0x0;for(const _0x2b40f2 of _0x34a360)if(!this['_rangeIsInLocalUserInsertion'](_0x2b40f2)){_0x44bf87=!0x1;break;}if(_0x44bf87&&'always'!==this['_trackFormatChanges']){const _0x5bc05f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3d9cc4,'accept');return this['forceDefaultExecution'](()=>_0x5bc05f([_0x18d0ce],_0x35c71f,_0x5a855a)),null;}let _0x283515=null,_0x19d660=_0x18d0ce['start'],_0x242202=_0x18d0ce['end'];for(const {suggestion:_0x21e518,meta:_0x44f269}of this['_findSuggestions'](_0x18d0ce,'formatBlock')){if(!_0x44f269['isOwn'])continue;if(_0x44f269['isNextTo']||_0x44f269['containsRangeInObject']||_0x44f269['isInsideObject'])continue;if(_0x21e518['data']['formatGroupId']!=_0x35c71f['formatGroupId'])continue;if(!Qt(_0x21e518,_0x5a855a))continue;const _0x2eaa40=_0x21e518['getFirstRange']();if(_0x21e518['subType']==_0x3d9cc4){if(_0x2eaa40['containsRange'](_0x18d0ce,!0x0))return null;_0x19d660=_0x19d660['isBefore'](_0x2eaa40['start'])?_0x19d660:_0x2eaa40['start'],_0x242202=_0x242202['isAfter'](_0x2eaa40['end'])?_0x242202:_0x2eaa40['end'],_0x283515?_0x2eaa40['start']['isBefore'](_0x283515['getFirstRange']()['start'])?(_0x283515['removeMarkers'](),_0x283515=_0x21e518):_0x21e518['removeMarkers']():_0x283515=_0x21e518;}else{const _0x35a09e=_0x18d0ce['getIntersection'](_0x2eaa40);this['_cutOutSuggestionMarker'](_0x21e518,_0x35a09e);}}const _0x193d71=this['editor']['plugins']['get']('Users')['me'],_0x342c76=_0x1ece5b(),_0x5aef56=_0x193d71['id'];if(_0x283515)return this['_setSuggestionRange'](_0x283515,this['_model']['createRange'](_0x19d660,_0x242202)),_0x283515;{const _0x14246a=this['_setSuggestionData']({'id':_0x342c76,'type':'formatBlock:'+_0x3d9cc4,'data':_0x35c71f,'createdAt':new Date(),'authorId':_0x5aef56,'attributes':_0x5a855a});return this['_addSuggestionMarker']('formatBlock:'+_0x3d9cc4,_0x342c76,_0x5aef56,this['_model']['createRange'](_0x19d660,_0x242202)),_0x14246a;}}['markMultiRangeBlockFormat'](_0x41b49a,_0x26dc6a,_0x1f2f08=[],_0x3db925=null,_0x1356ae={}){_0x26dc6a['formatGroupId']||(_0x26dc6a['formatGroupId']=_0x26dc6a['commandName']);const _0x525bb8=_0x41b49a[0x0];_0x26dc6a['multipleBlocks']=_0x525bb8['is']('range'),_0x3db925=_0x3db925||Jt(_0x26dc6a);const _0x515218=_0x1f2f08['map'](_0xbd61a8=>zt(_0xbd61a8,this['_model'])),_0x3a7179=_0x525bb8['is']('range')?_0x41b49a:_0x41b49a['map'](_0xb2682a=>zt(_0xb2682a,this['_model']));if('never'===this['_trackFormatChanges']){const _0xd81701=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3db925,'accept');return this['forceDefaultExecution'](()=>_0xd81701(_0x3a7179,_0x26dc6a,_0x1356ae)),null;}_0x515218['push'](..._0x3a7179);let _0x2f92fa=!0x0;for(const _0x164395 of _0x515218)if(!this['_rangeIsInLocalUserInsertion'](_0x164395)){_0x2f92fa=!0x1;break;}if(_0x2f92fa&&'always'!==this['_trackFormatChanges']){const _0x469655=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3db925,'accept');return this['forceDefaultExecution'](()=>_0x469655(_0x3a7179,_0x26dc6a,_0x1356ae)),null;}const _0x202213=this['editor']['plugins']['get']('Users')['me'];for(const _0x401a35 of this['getSuggestions']()){if(_0x401a35['author']['id']!=_0x202213['id'])continue;if('formatBlock'!=_0x401a35['type']||_0x401a35['data']['formatGroupId']!=_0x26dc6a['formatGroupId'])continue;if(!Qt(_0x401a35,_0x1356ae))continue;const _0x4d91c=_0x401a35['subType']==_0x3db925;for(let _0x176436=0x0;_0x176436<_0x3a7179['length'];_0x176436++){const _0x5d4250=_0x3a7179[_0x176436];for(const _0x5637aa of _0x401a35['getMarkers']()){const _0x3ea8a9=_0x5637aa['getRange']();if(_0x5d4250['isEqual'](_0x3ea8a9)){_0x4d91c?(_0x3a7179['splice'](_0x176436,0x1),_0x176436--):_0x401a35['removeMarker'](_0x5637aa['name']);break;}}}}if(0x0==_0x3a7179['length'])return null;const _0x211e44=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3db925,'join');for(const _0xc41e2a of this['getSuggestions']())if(_0xc41e2a['author']['id']==_0x202213['id']&&'formatBlock'==_0xc41e2a['type']&&_0xc41e2a['data']['formatGroupId']==_0x26dc6a['formatGroupId']&&_0xc41e2a['subType']==_0x3db925&&Qt(_0xc41e2a,_0x1356ae)&&(_0x211e44(_0xc41e2a['getRanges'](),_0x3a7179)||_0x211e44(_0x3a7179,_0xc41e2a['getRanges']()))){for(const _0x54ff40 of _0x3a7179)_0xc41e2a['addRange'](_0x54ff40);return _0xc41e2a;}const _0x532298=_0x1ece5b(),_0x169d9d=_0x202213['id'],_0x58e8fa='formatBlock:'+_0x3db925,_0x4a286f=this['_setSuggestionData']({'id':_0x532298,'type':_0x58e8fa,'data':_0x26dc6a,'createdAt':new Date(),'authorId':_0x169d9d,'attributes':_0x1356ae});for(const _0x440e94 of _0x3a7179)this['_addSuggestionMarker'](_0x58e8fa,_0x532298,_0x169d9d,_0x440e94,u['getMultiRangeId']());return _0x4a286f;}['markDeletion'](_0x103ba3,_0x43207c=null,_0x1950ea={}){if(_0x103ba3['isCollapsed'])return null;const _0x5cce8a=this['editor']['plugins']['get']('Users')['me'],_0x382278=new _0x151380(_0x103ba3['start'],_0x103ba3['end']);for(const {suggestion:_0xa8917d,meta:_0x154380}of this['_findSuggestions'](_0x382278,'insertion'))if(_0x154380['isOwn']&&!_0x154380['isNextTo']){if(_0xa8917d['isMultiRange']){const _0x3af3e1=_0xa8917d['getRanges']()['filter'](_0x27a253=>'$graveyard'!=_0x27a253['root']['rootName']);_0x3af3e1['every'](_0xe8dfa9=>_0x382278['containsRange'](_0xe8dfa9,!0x0))&&_0xa8917d['discard']();if(_0x3af3e1['some'](_0x3a55f6=>_0x3a55f6['containsRange'](_0x382278,!0x0))){const _0x3c8837=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x43207c,'accept');return this['forceDefaultExecution'](()=>_0x3c8837([_0x382278],null,_0x1950ea)),null;}}else{const _0x1da76c=_0x382278['getIntersection'](_0xa8917d['getFirstRange']());null!==_0x1da76c&&_0xa8917d['_onDiscard']([_0x1da76c],null,_0x1950ea);}}if(_0x382278['detach'](),_0x382278['isCollapsed']||'$graveyard'==_0x382278['root']['rootName'])return null;let _0x44947e=null,_0x5c6f40=_0x382278['start'],_0x13be8e=_0x382278['end'];const _0x20d591=this['_findSuggestions'](_0x382278,'deletion');for(const {suggestion:_0x215a08,meta:_0x311aca}of _0x20d591){const _0x5475d8=this['_model']['createRange'](_0x5c6f40,_0x13be8e);if(_0x311aca['isOwn']&&(this['_mergeNestedSuggestions']||!_0x311aca['containsRangeInObject']&&!_0x311aca['isInsideObject'])){if(_0x215a08['isMultiRange']){if(!Qt(_0x215a08,_0x1950ea))continue;let _0x90741c=!0x0;for(const _0x39df37 of _0x215a08['getRanges']()){if(_0x39df37['containsRange'](_0x5475d8,!0x0))return _0x215a08;_0x5475d8['containsRange'](_0x39df37)||(_0x90741c=!0x1);}_0x90741c&&_0x215a08['discard']();}else{const _0x28354f=_0x215a08['getFirstRange']();if(_0x28354f['containsRange'](_0x5475d8,!0x0))return _0x215a08;if(!Qt(_0x215a08,_0x1950ea)){_0x5475d8['containsRange'](_0x28354f)?_0x215a08['removeMarkers']():_0x28354f['containsPosition'](_0x5c6f40)?_0x5c6f40=_0x28354f['end']:_0x28354f['containsPosition'](_0x13be8e)&&(_0x13be8e=_0x28354f['start']);continue;}_0x5c6f40=_0x5c6f40['isBefore'](_0x28354f['start'])?_0x5c6f40:_0x28354f['start'],_0x13be8e=_0x13be8e['isAfter'](_0x28354f['end'])?_0x13be8e:_0x28354f['end'],_0x1950ea=Object['assign']({},_0x215a08['attributes']),_0x44947e?_0x28354f['start']['isBefore'](_0x44947e['getFirstRange']()['start'])?(_0x44947e['removeMarkers'](),_0x44947e=_0x215a08):_0x215a08['removeMarkers']():_0x44947e=_0x215a08;}}}if(_0x44947e)return this['_setSuggestionRange'](_0x44947e,this['_model']['createRange'](_0x5c6f40,_0x13be8e)),_0x44947e;{const _0x11d054=_0x1ece5b(),_0x5d54d8=this['_model']['createRange'](_0x5c6f40,_0x13be8e),_0xdd6224=_0x5cce8a['id'],_0x4f55ad=_0x43207c?'deletion:'+_0x43207c:'deletion',_0x1fc85f=this['_setSuggestionData']({'id':_0x11d054,'type':_0x4f55ad,'createdAt':new Date(),'authorId':_0xdd6224,'attributes':_0x1950ea});return this['_addSuggestionMarker'](_0x4f55ad,_0x11d054,_0xdd6224,_0x5d54d8),_0x1fc85f;}}['markMultiRangeDeletion'](_0x414d44,_0xb75871='multi',_0x2da290={}){const _0x2c3ee9=this['editor']['plugins']['get']('Users')['me'],_0x8ff594=_0x414d44['map'](_0x547af7=>new _0x151380(_0x547af7['start'],_0x547af7['end'])),_0x427051=new Set();for(const {suggestion:_0x4c915e,meta:_0x25fa74}of this['_findSuggestions'](_0x8ff594,'insertion'))_0x25fa74['isOwn']&&!_0x25fa74['isNextTo']&&_0x427051['add'](_0x4c915e);for(const _0x4c310b of _0x427051)if(_0x4c310b['isMultiRange']){const _0x418f3a=_0x4c310b['getRanges']();(!_0x4c310b['attributes']||!_0x4c310b['attributes']['skipNestingCheck'])&&(_0x418f3a['every'](_0x5a4fe2=>_0x8ff594['some'](_0x31cc74=>_0x31cc74['containsRange'](_0x5a4fe2,!0x0)))&&_0x4c310b['discard']());if(_0x8ff594['every'](_0x1ac0a7=>_0x418f3a['some'](_0x7ddd4b=>_0x7ddd4b['containsRange'](_0x1ac0a7,!0x0)))){const _0x1c4328=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xb75871,'accept');return this['forceDefaultExecution'](()=>_0x1c4328(_0x414d44,null,_0x2da290)),null;}}else{const _0x208e42=_0x4c310b['getFirstRange']();_0x8ff594['some'](_0x298c32=>_0x298c32['containsRange'](_0x208e42,!0x0))&&_0x4c310b['discard']();if(_0x8ff594['every'](_0x3e5cbe=>_0x208e42['containsRange'](_0x3e5cbe,!0x0))){const _0x110b24=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xb75871,'accept');return this['forceDefaultExecution'](()=>_0x110b24(_0x8ff594,null,_0x2da290)),null;}}const _0xb85330=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xb75871,'join');let _0x261b2f=null;for(const _0x4c6c25 of this['getSuggestions']())if(_0x4c6c25['author']['id']==_0x2c3ee9['id']&&_0x4c6c25['isInContent']&&'deletion'==_0x4c6c25['type']&&_0x4c6c25['subType']==_0xb75871&&Qt(_0x4c6c25,_0x2da290)&&(_0xb85330(_0x4c6c25['getRanges'](),_0x8ff594)||_0xb85330(_0x8ff594,_0x4c6c25['getRanges']()))){if(_0x261b2f){if(_0x4c6c25['commentThread']&&_0x4c6c25['commentThread']['length'])continue;for(const _0x3c4961 of _0x4c6c25['getRanges']())_0x261b2f['isIntersectingWithRange'](_0x3c4961)||_0x261b2f['addRange'](_0x3c4961);_0x4c6c25['removeMarkers']();}else{_0x261b2f=_0x4c6c25;for(const _0x5bbaa2 of _0x8ff594)_0x4c6c25['isIntersectingWithRange'](_0x5bbaa2)||_0x4c6c25['addRange'](_0x5bbaa2);}}if(_0x261b2f)return _0x261b2f;_0x427051['clear']();for(const {suggestion:_0x1e6ed9,meta:_0x1962e0}of this['_findSuggestions'](_0x8ff594,'deletion'))_0x1962e0['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1962e0['containsRangeInObject']&&!_0x1962e0['isInsideObject'])&&Qt(_0x1e6ed9,_0x2da290)&&_0x427051['add'](_0x1e6ed9);for(const _0x366ae0 of _0x427051){const _0x1e3397=_0x366ae0['getRanges']();if(!_0x2da290||!_0x2da290['skipNestingCheck']){if(_0x8ff594['every'](_0x10f520=>_0x1e3397['some'](_0x30fecc=>_0x30fecc['containsRange'](_0x10f520,!0x0))))return _0x366ae0;}(!_0x366ae0['attributes']||!_0x366ae0['attributes']['skipNestingCheck'])&&(_0x1e3397['every'](_0x14fb96=>_0x8ff594['some'](_0x5aae90=>_0x5aae90['containsRange'](_0x14fb96,!0x0)))&&_0x366ae0['discard']());}const _0x6e7e28=_0x1ece5b(),_0x1b46c1=_0x2c3ee9['id'],_0x5ae226='deletion:'+_0xb75871,_0x4b6c46=this['_setSuggestionData']({'id':_0x6e7e28,'type':_0x5ae226,'createdAt':new Date(),'authorId':_0x1b46c1,'attributes':_0x2da290});for(const _0x48da92 of _0x8ff594)_0x48da92['detach'](),_0x48da92['isCollapsed']||'$graveyard'==_0x48da92['root']['rootName']||this['_addSuggestionMarker'](_0x5ae226,_0x6e7e28,_0x1b46c1,_0x48da92,u['getMultiRangeId']());return _0x4b6c46;}['markAttributeChange'](_0x3e4af5,_0x44c4b8,_0x41044f,_0x456fc3,_0x46eb91){if(_0x3e4af5['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x58f5ed=this['editor']['plugins']['get']('Users')['me']['id'],_0x345a5d=Array['from'](this['_suggestions']['values']())['filter'](_0x3c62a3=>'attribute'==_0x3c62a3['type']&&_0x3c62a3['data']['key']==_0x44c4b8&&_0x3c62a3['isIntersectingWithRange'](_0x3e4af5));if('default'===this['_trackFormatChanges']){const _0x5bdae2=this['_findSuggestions'](_0x3e4af5,'insertion')['filter'](({meta:_0x457b44})=>_0x457b44['isOwn']&&!_0x457b44['isInsideObject']&&!_0x457b44['isNextTo'])['map'](({suggestion:_0x5b20c4})=>_0x5b20c4);_0x345a5d['unshift'](..._0x5bdae2);}const _0x35cf62=new Map([[_0x3e4af5,_0x41044f]]);for(const _0x4a6381 of _0x345a5d){const _0x15e0e2='attribute'==_0x4a6381['type']?_0x4a6381['data']['oldValue']:void 0x0,_0x261e7e=_0x4a6381['getFirstRange'](),_0x28a109=Array['from'](_0x35cf62['keys']())['find'](_0x556a02=>_0x556a02['isIntersecting'](_0x261e7e));if(!_0x28a109)continue;const _0x2e342c=_0x28a109['getDifference'](_0x261e7e);this['_isBlockAttribute'](_0x44c4b8)&&'insertion'==_0x4a6381['type']&&0x0!=_0x2e342c['length']||(_0x35cf62['delete'](_0x28a109),_0x2e342c['forEach'](_0x168f41=>{_0x35cf62['set'](_0x168f41,_0x41044f);}),'insertion'!=_0x4a6381['type']&&_0x15e0e2!=_0x456fc3&&_0x35cf62['set'](_0x28a109['getIntersection'](_0x261e7e),_0x15e0e2));}const _0x5179a2=[];for(const [_0x42c7e8,_0x59f1cf]of _0x35cf62){const _0x2c5705=_0x1ece5b(),_0xdb7a05={'key':_0x44c4b8,'oldValue':_0x59f1cf,'newValue':_0x456fc3};_0x44c4b8['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':_0x44c4b8});const _0x127e85=('attribute:'+(_0x44c4b8+'|'+Jt({'newValue':_0x456fc3})))['substring'](0x0,0x3c),_0x26d244=this['_setSuggestionData']({'id':_0x2c5705,'type':_0x127e85,'data':_0xdb7a05,'createdAt':new Date(),'authorId':_0x58f5ed,'attributes':_0x46eb91});_0x5179a2['push'](_0x26d244),this['_addSuggestionMarker'](_0x127e85,_0x2c5705,_0x58f5ed,_0x42c7e8);}return _0x5179a2;}['enableDefaultAttributesIntegration'](_0x550d86){this['enableCommand'](_0x550d86,(_0x39289b,..._0x3a4d2e)=>{this['_recordAttributeChanges'](()=>{_0x39289b(..._0x3a4d2e);});});}['registerBlockAttribute'](_0x5596ed){this['_blockAttributeKeys']['add'](_0x5596ed);}['registerInlineAttribute'](_0x25ce01){this['_inlineAttributeKeys']['add'](_0x25ce01);}['_getAttributeKey'](_0x5650a3){return'attribute'==_0x5650a3['type']?_0x5650a3['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0xaf501f,_0x3733d8){const _0x2a663e=_0xaf501f['getFirstMarker']();this['_model']['change'](_0x496108=>{_0x496108['updateMarker'](_0x2a663e,{'range':_0x3733d8});});}['_addThreadToSuggestion'](_0x26799b){const _0x4cddb3=_0x26799b['id'],_0x5d41bd=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x4cddb3)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5d41bd,'threadId':_0x4cddb3,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x58a3d8=this['_commentsRepository']['getCommentThread'](_0x4cddb3);_0x58a3d8['unbind']('isRemovable'),_0x58a3d8['isRemovable']=!0x1,_0x26799b['commentThread']=_0x58a3d8;}['_checkSuggestionCorrectness'](_0x1afa50,_0x2d1d6e,_0x98ca08,_0x28d52d){if(_0x1afa50['type']!=_0x2d1d6e||_0x1afa50['subType']!=_0x98ca08||_0x1afa50['creator']['id']!=_0x28d52d)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x5aa28e('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x149ef7,_0x241387){const _0x5c1a0e=_0x149ef7['getFirstRange']();if(_0x241387['isEqual'](_0x5c1a0e))_0x149ef7['removeMarkers']();else{if(_0x5c1a0e['containsRange'](_0x241387)){const _0x5104b4=this['_model']['createPositionAt'](_0x241387['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x149ef7,this['_model']['createRange'](_0x5c1a0e['start'],_0x5104b4));const _0x24f91f=_0x1ece5b(),_0x1f95af=_0x149ef7['creator']['id'],_0x55a243=_0x149ef7['type']+':'+_0x149ef7['subType'];this['_setSuggestionData']({'id':_0x24f91f,'type':_0x55a243,'createdAt':new Date(),'authorId':_0x1f95af,'data':_0x149ef7['data'],'attributes':_0x149ef7['attributes']});const _0x3ac2e9=this['_model']['createPositionAt'](_0x241387['end']['parent'],'after'),_0x2b25bf=this['_model']['createRange'](_0x3ac2e9,_0x5c1a0e['end']);this['_addSuggestionMarker'](_0x55a243,_0x24f91f,_0x1f95af,_0x2b25bf);}else{if(_0x5c1a0e['containsPosition'](_0x241387['start'])){const _0x367d1b=this['_model']['createPositionAt'](_0x241387['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x149ef7,this['_model']['createRange'](_0x5c1a0e['start'],_0x367d1b));}else{const _0x384c80=this['_model']['createPositionAt'](_0x241387['end']['parent'],'after');this['_setSuggestionRange'](_0x149ef7,this['_model']['createRange'](_0x384c80,_0x5c1a0e['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x166ae0){for(const {suggestion:_0x38d4d2,meta:_0x425130}of this['_findSuggestions'](_0x166ae0,'insertion')){if(!_0x425130['isOwn'])continue;const _0x428836=_0x38d4d2['getRanges']();for(const _0x373644 of _0x428836)if(!_0x166ae0['getDifference'](_0x373644)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x2d0c97){const _0x1c0088=this['editor']['plugins']['get']('Users')['getUser'](_0x2d0c97);if(!_0x1c0088)throw new _0x5aa28e('track-changes-user-not-found',this);return _0x1c0088;}['_getExternalAuthor'](_0x546b78){const _0x2c4343=this['editor']['plugins']['get']('Users'),_0x22f7fe=_0xfe0d22('external:'+_0x546b78),_0x318144=_0x2c4343['getUser'](_0x22f7fe);return _0x318144||_0x2c4343['addUser']({'id':_0x22f7fe,'name':_0x546b78});}['_createSuggestion'](_0x4edacd,_0x31c025,_0x41ff3d,_0x51a218,_0x3ffdd2){const _0x42c472=this['_getAuthorFromId'](_0x51a218),_0x521ce6=this['_suggestionFactory']['buildSuggestion'](_0x4edacd,_0x31c025,_0x41ff3d,_0x42c472,_0x3ffdd2,_0x34c202=>{this['_updateSuggestionData'](_0x41ff3d,{'attributes':_0x34c202});const _0x9dfe8f=this['getSuggestion'](_0x41ff3d);this['_joinWithAdjacentSuggestions'](new Set([_0x9dfe8f])),this['_refreshSuggestionsChain'](new Set([_0x9dfe8f]));});return this['listenTo'](_0x521ce6,'accept',()=>{this['_updateSuggestionData'](_0x41ff3d,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x521ce6,'discard',()=>{this['_updateSuggestionData'](_0x41ff3d,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x41ff3d,_0x521ce6),this['_suggestionState']['set'](_0x521ce6,'notReady'),_0x521ce6;}['_splitMarkerName'](_0x16b851){const _0x46237f=_0x16b851['split'](':');return{'group':_0x46237f[0x0],'type':_0x46237f[0x1],'subType':_0x46237f['length']>=0x5?_0x46237f[0x2]:null,'id':_0x46237f['length']<0x5?_0x46237f[0x2]:_0x46237f[0x3],'authorId':_0x46237f['length']<0x5?_0x46237f[0x3]:_0x46237f[0x4],'markerCount':0x6==_0x46237f['length']?_0x46237f[0x5]:null};}['_breakSuggestionMarker'](_0x4d58b1,_0x51e5c5,_0x2e5a18){const _0x430a44=_0x4d58b1['getFirstRange'](),_0x2bf07e=_0x430a44['start'],_0x129119=_0x430a44['end'];this['_setSuggestionRange'](_0x4d58b1,this['_model']['createRange'](_0x2bf07e,_0x51e5c5));const _0x4d6cf2=_0x1ece5b(),_0x23c4bf=_0x4d58b1['creator']['id'],_0x58827c=_0x4d58b1['type']+(_0x4d58b1['subType']?':'+_0x4d58b1['subType']:'');this['_setSuggestionData']({'id':_0x4d6cf2,'type':_0x58827c,'createdAt':new Date(),'authorId':_0x23c4bf,'originalSuggestionId':_0x4d58b1['id'],'attributes':_0x4d58b1['attributes'],'data':_0x4d58b1['data']});const _0x4bbee5=this['_getAttributeKey'](_0x4d58b1);('formatBlock'==_0x4d58b1['type']||_0x4bbee5&&this['_isBlockAttribute'](_0x4bbee5))&&(_0x2e5a18=this['_model']['createPositionBefore'](_0x2e5a18['parent'])),this['_addSuggestionMarker'](_0x58827c,_0x4d6cf2,_0x23c4bf,this['_model']['createRange'](_0x2e5a18,_0x129119));}['_findSuggestions'](_0x4b3d1d,_0x378dce=null){const _0x1c97a0=[],_0x41279f=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x4b3d1d)||(_0x4b3d1d=[_0x4b3d1d]);for(const _0x57dff7 of this['getSuggestions']()){if(!_0x57dff7['isInContent'])continue;if(_0x378dce&&_0x57dff7['type']!=_0x378dce)continue;let _0x17b8ee=!0x1;for(const _0x47e3cd of _0x57dff7['getRanges']()){for(const _0x12e327 of _0x4b3d1d){const _0x3b8b3f=_0x12e327['start']['isEqual'](_0x47e3cd['end'])||_0x12e327['end']['isEqual'](_0x47e3cd['start']);if(_0x3b8b3f||_0x12e327['getIntersection'](_0x47e3cd)){const _0x572bc6=_0x12e327['containsRange'](_0x47e3cd)&&Gt(this['_model']['schema'],_0x47e3cd['start'],_0x12e327),_0x2fd3cf=_0x47e3cd['containsRange'](_0x12e327)&&Gt(this['_model']['schema'],_0x12e327['start'],_0x47e3cd);_0x1c97a0['push']({'suggestion':_0x57dff7,'meta':{'isOwn':_0x41279f==_0x57dff7['author'],'isNextTo':_0x3b8b3f,'isInsideObject':_0x572bc6,'containsRangeInObject':_0x2fd3cf}}),_0x17b8ee=!0x0;break;}}if(_0x17b8ee)break;}}return _0x1c97a0;}['_addSuggestionMarker'](_0x1f2c31,_0xafa07d,_0x3eb6f4,_0x403009,_0x138c09){this['_model']['change'](_0x54dccc=>{let _0xaeacf0='suggestion:'+_0x1f2c31+':'+_0xafa07d+':'+_0x3eb6f4;_0x138c09&&(_0xaeacf0=_0xaeacf0+':'+_0x138c09),_0x54dccc['addMarker'](_0xaeacf0,{'range':_0x403009,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x2307cd){const _0x52aefe=_0x2307cd['previous'],_0x34f860=_0x2307cd['next'];_0x2307cd['previous']=null,_0x2307cd['next']=null,null!=_0x52aefe&&_0x52aefe['next']==_0x2307cd&&(_0x52aefe['next']=_0x34f860),null!=_0x34f860&&_0x34f860['previous']==_0x2307cd&&(_0x34f860['previous']=_0x52aefe),'ready'==this['_suggestionState']['get'](_0x2307cd)&&(this['_suggestionState']['set'](_0x2307cd,'removed'),this['fire']('suggestionUnloaded',_0x2307cd,_0x52aefe,_0x34f860));}['_setSuggestionData'](_0x3dc2b3){const _0x39ac78=_0x3dc2b3['id'],_0x201136=this['addSuggestionData'](_0x3dc2b3);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x15873d=this['editor']['plugins']['get']('PendingActions'),_0x998d1d=_0x201136['hasComments'],_0x1d74e6=_0x201136['subType']?_0x201136['type']+':'+_0x201136['subType']:_0x201136['type'],_0x2744f5=this['editor']['locale'],_0xf25ebe=_0x15873d['add'](o(_0x2744f5,'PENDING_ACTION_SUGGESTION')),_0x5c1407={'id':_0x39ac78,'type':_0x1d74e6,'hasComments':_0x998d1d,'data':_0x3dc2b3['data']||null,'originalSuggestionId':_0x3dc2b3['originalSuggestionId']||null,'attributes':_0x201136['attributes']};this['_adapter']['addSuggestion'](_0x5c1407)['then'](_0x20d1c2=>{_0x201136['_saved']=!0x0,_0x15873d['remove'](_0xf25ebe),_0x20d1c2&&_0x20d1c2['createdAt']&&(this['_suggestions']['get'](_0x39ac78)['createdAt']=_0x20d1c2['createdAt']);})['catch'](_0x1a2a43=>{throw _0x255893('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x201136['discard']();}),_0x201136['stopListening'](),this['_suggestions']['delete'](_0x201136['id']),this['_suggestionState']['delete'](_0x201136),_0x1a2a43;});}return _0x201136;}['_isBlockAttribute'](_0x36c166){return this['_blockAttributeKeys']['has'](_0x36c166);}['_updateSuggestionData'](_0x32ecd3,_0x25b798){const _0x232eb0=this['editor']['plugins']['get']('PendingActions'),_0x27cd1b=this['getSuggestion'](_0x32ecd3);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x27cd1b['_saved']){const _0x3e9d19=_0x232eb0['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x32ecd3,_0x25b798)['then'](()=>{_0x232eb0['remove'](_0x3e9d19);});}else _0x27cd1b['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x32ecd3,_0x25b798);});}}['_getSuggestionData'](_0x324321){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x5aa28e('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x324321);}['_handleNewSuggestionMarker'](_0x150ead){const {id:_0x4cf762,type:_0x42aa19,subType:_0x3d9896,authorId:_0x200a7e}=this['_splitMarkerName'](_0x150ead),_0x50c072=this['_suggestions']['get'](_0x4cf762)||this['_createSuggestion'](_0x42aa19,_0x3d9896,_0x4cf762,_0x200a7e,{});switch(this['_checkSuggestionCorrectness'](_0x50c072,_0x42aa19,_0x3d9896,_0x200a7e),this['_suggestionState']['get'](_0x50c072)){case'notReady':this['_getSuggestionData'](_0x4cf762)['then'](_0x53cb90=>{let _0x42f545=Promise['resolve']();_0x53cb90['hasComments']&&(_0x42f545=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x4cf762})),_0x42f545['then'](()=>{this['addSuggestionData'](_0x53cb90)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x50c072,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x4cf762,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x50c072,'ready'),this['fire']('suggestionLoaded',_0x50c072);break;case'ready':this['fire']('suggestionChanged',_0x50c072);}return _0x50c072['addMarkerName'](_0x150ead),_0x50c072;}['_refreshSuggestionsChain'](_0x4d6eaa){const _0x39a522=Array['from'](_0x4d6eaa),_0xbd8716=_0x39a522['filter'](_0x417454=>'attribute'==_0x417454['type']);this['_refreshAttributeSuggestionsChain'](_0xbd8716);const _0x57a62a=_0x39a522['filter'](_0x2ce931=>!_0x2ce931['isMultiRange']&&'attribute'!=_0x2ce931['type']),_0x392aa4=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x17f459=>!_0x17f459['isMultiRange']&&'attribute'!=_0x17f459['type']),_0x4d55d5=_0x392aa4['filter'](_0x2bb6f9=>!_0x4d6eaa['has'](_0x2bb6f9)),_0xab19c8=new Map(_0x392aa4['map'](_0x413b6a=>[_0x413b6a,this['_suggestionFactory']['getSuggestionCallback'](_0x413b6a['type'],_0x413b6a['subType'],'chain')])),_0x2c7c53=new Map(_0x392aa4['map'](_0x22927f=>[_0x22927f,_0x22927f['getFirstRange']()])),_0x22e99e=new Set(),_0x2f66af=new Set();for(let _0x5ccc74=0x0;_0x5ccc74<_0x57a62a['length'];_0x5ccc74++)_0x12672d(_0x57a62a[_0x5ccc74],_0x57a62a,_0x5ccc74+0x1);for(let _0x325724=0x0;_0x325724<_0x57a62a['length'];_0x325724++)_0x12672d(_0x57a62a[_0x325724],_0x4d55d5,0x0);const _0x34f33a=new Set();for(let _0xff2f6e=0x0;_0xff2f6e<_0x57a62a['length'];_0xff2f6e++){const _0x4ae4cc=_0x57a62a[_0xff2f6e];!_0x2f66af['has'](_0x4ae4cc)&&_0x4ae4cc['previous']&&(_0x34f33a['add'](_0x4ae4cc['previous']),_0x4ae4cc['previous']['next']===_0x4ae4cc&&(_0x4ae4cc['previous']['next']=null),_0x4ae4cc['previous']=null),!_0x22e99e['has'](_0x4ae4cc)&&_0x4ae4cc['next']&&(_0x34f33a['add'](_0x4ae4cc['next']),_0x4ae4cc['next']['previous']===_0x4ae4cc&&(_0x4ae4cc['next']['previous']=null),_0x4ae4cc['next']=null);}function _0x12672d(_0x588ccc,_0x7fb1d2,_0xe8a23){for(let _0x1fdb71=_0xe8a23;_0x1fdb71<_0x7fb1d2['length'];_0x1fdb71++){const _0x84e0be=_0x2f162a(_0x588ccc,_0x7fb1d2[_0x1fdb71]);_0x84e0be&&(_0x84e0be[0x0]['next']=_0x84e0be[0x1],_0x84e0be[0x1]['previous']=_0x84e0be[0x0],_0x22e99e['add'](_0x84e0be[0x0]),_0x2f66af['add'](_0x84e0be[0x1]));}}function _0x2f162a(_0x14c6b9,_0x390967){if(_0x14c6b9['author']['id']!==_0x390967['author']['id'])return null;const _0x1d349f=_0xab19c8['get'](_0x14c6b9)(_0x14c6b9,_0x390967,_0x2c7c53['get'](_0x14c6b9),_0x2c7c53['get'](_0x390967));if(!_0x1d349f)return null;return _0xab19c8['get'](_0x390967)(_0x14c6b9,_0x390967,_0x2c7c53['get'](_0x14c6b9),_0x2c7c53['get'](_0x390967))?_0x1d349f[0x1]['commentThread']&&_0x1d349f[0x1]['commentThread']['length']?null:_0x1d349f:null;}_0x34f33a['size']&&this['_refreshSuggestionsChain'](_0x34f33a);}['_refreshAttributeSuggestionsChain'](_0x5e09a1){if(0x0==_0x5e09a1['length'])return;const _0x40572f=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4f80b1=>'attribute'==_0x4f80b1['type']&&_0x4f80b1['_isDataLoaded']),_0x5208a4=[],_0x3432c1=new Map();for(const _0x5b263f of _0x40572f){const _0x487dc4=_0xfe0d22(_0x5b263f['attributes']);_0x3432c1['has'](_0x487dc4)||(_0x3432c1['set'](_0x487dc4,_0x5208a4['length']),_0x5208a4['push']([]));const _0x432125=_0x3432c1['get'](_0x487dc4);_0x5208a4[_0x432125]['push'](_0x5b263f);}!(function(){_0x5208a4['sort']((_0x394ac2,_0x3fe9ba)=>{const _0x2255b9=_0x394ac2[0x0]['createdAt'],_0x3c14c2=_0x3fe9ba[0x0]['createdAt'];return _0x2255b9==_0x3c14c2?_0x394ac2[0x0]['attributes']['groupId']<_0x3fe9ba[0x0]['attributes']['groupId']?-0x1:0x1:_0x2255b9<_0x3c14c2?-0x1:0x1;});for(const _0x58c72f of _0x5208a4)_0x58c72f['sort']((_0x15c955,_0x43cb15)=>_0x15c955['id']<_0x43cb15['id']?-0x1:0x1);}());for(let _0x160c4f=0x0;_0x160c4f<_0x5208a4['length'];_0x160c4f++){if(0x0==_0x5208a4[_0x160c4f]['length'])continue;const _0x4d6c45=[];for(let _0x595399=_0x160c4f+0x1;_0x595399<_0x5208a4['length'];_0x595399++)0x0!=_0x5208a4[_0x595399]['length']&&_0x5d423b(_0x5208a4[_0x160c4f],_0x5208a4[_0x595399])&&_0x4d6c45['push'](_0x595399);for(const _0x271e5e of _0x4d6c45)_0x5208a4[_0x160c4f]=_0x5208a4[_0x160c4f]['concat'](_0x5208a4[_0x271e5e]),_0x5208a4[_0x271e5e]=[];}for(const _0x276648 of _0x5208a4)for(let _0x5bbfa6=0x0;_0x5bbfa6<_0x276648['length'];_0x5bbfa6++){const _0xfedc6c=_0x276648[_0x5bbfa6+0x1]||null;_0x276648[_0x5bbfa6]['next']!==_0xfedc6c&&(_0x276648[_0x5bbfa6]['next']=_0xfedc6c);}for(const _0x924fe2 of _0x5208a4)for(let _0x4f4d21=0x0;_0x4f4d21<_0x924fe2['length'];_0x4f4d21++){const _0x16f39f=_0x924fe2[_0x4f4d21-0x1]||null;_0x924fe2[_0x4f4d21]['previous']!==_0x16f39f&&(_0x924fe2[_0x4f4d21]['previous']=_0x16f39f);}function _0x5d423b(_0x45ff9f,_0x24e11e){if(_0x45ff9f[0x0]['attributes']['groupId']!==_0x24e11e[0x0]['attributes']['groupId']&&_0x45ff9f[0x0]['author']!==_0x24e11e[0x0]['author'])return!0x1;if(!function(_0xd245b0,_0x5f22d9){if(!_0xd245b0['hasComments']&&!_0x5f22d9['hasComments'])return!0x0;if(_0xd245b0['hasComments']&&_0x5f22d9['hasComments'])return!0x1;if(_0xd245b0['hasComments']&&_0x5f22d9['createdAt']<_0xd245b0['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x5f22d9['hasComments']&&_0xd245b0['createdAt']<_0x5f22d9['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x45ff9f[0x0],_0x24e11e[0x0]))return!0x1;const _0x323053=Vt(_0x45ff9f[0x0]['attributes'],'groupId'),_0x2f5432=Vt(_0x24e11e[0x0]['attributes'],'groupId');if(!_0x431c16(_0x323053,_0x2f5432))return!0x1;return!!_0x45ff9f['every'](_0x163a32=>_0x24e11e['some'](_0x5eeddf=>_0x163a32['getFirstRange']()['isEqual'](_0x5eeddf['getFirstRange']())))&&_0x24e11e['every'](_0x33515a=>_0x45ff9f['some'](_0xe7720c=>_0x33515a['getFirstRange']()['isEqual'](_0xe7720c['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x5a605){const _0x199e77=Array['from'](_0x5a605),_0x336417=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4fcce2=_0x336417['filter'](_0xdbc173=>!_0x5a605['has'](_0xdbc173)),_0x16d012=new Map(_0x199e77['map'](_0x2f43e3=>[_0x2f43e3,this['_suggestionFactory']['getSuggestionCallback'](_0x2f43e3['type'],_0x2f43e3['subType'],'join')])),_0x4638ca=new Map(_0x336417['map'](_0x35ea2d=>[_0x35ea2d,_0x35ea2d['getRanges']()]));for(let _0x48dcb3=0x0;_0x48dcb3<_0x199e77['length'];_0x48dcb3++){if(_0x449626(this,_0x199e77[_0x48dcb3],_0x199e77,_0x48dcb3+0x1))return!0x0;}for(let _0x5d3d82=0x0;_0x5d3d82<_0x199e77['length'];_0x5d3d82++){if(_0x449626(this,_0x199e77[_0x5d3d82],_0x4fcce2,0x0))return!0x0;}return!0x1;function _0x449626(_0x5779c7,_0x499392,_0x105d59,_0x5a309d){for(let _0xe63e68=_0x5a309d;_0xe63e68<_0x105d59['length'];_0xe63e68++){const _0x250d88=_0x105d59[_0xe63e68];if(_0x250d88['type']!==_0x499392['type']||_0x250d88['author']['id']!==_0x499392['author']['id']||_0x250d88['subType']!==_0x499392['subType'])continue;if(!Wt(_0x499392,_0x250d88))continue;if('attribute'==_0x499392['type']&&_0x499392['data']['oldValue']!=_0x250d88['data']['oldValue'])continue;if('attribute'==_0x499392['type']&&_0x5779c7['_isBlockAttribute'](_0x499392['data']['key']))continue;if('formatBlock'==_0x499392['type']){const _0x66ad0e=_0x5779c7['editor']['model'],_0x35b70f=_0x499392['getContainedElement']();if(_0x35b70f&&(_0x66ad0e['schema']['isObject'](_0x35b70f)||_0x66ad0e['schema']['isLimit'](_0x35b70f)))continue;}const _0x4a02fd=_0x16d012['get'](_0x499392),_0x4de7b5=_0x4638ca['get'](_0x499392),_0x1207a6=_0x4638ca['get'](_0x250d88),_0x9074dc=_0x499392['commentThread']&&_0x499392['commentThread']['length'],_0xf8a254=_0x250d88['commentThread']&&_0x250d88['commentThread']['length'];if(!_0x9074dc&&_0x4a02fd(_0x1207a6,_0x4de7b5))return _0x5779c7['_joinSuggestions'](_0x250d88,_0x499392),_0x4638ca['delete'](_0x499392),!0x0;if(!_0xf8a254&&_0x4a02fd(_0x4de7b5,_0x1207a6))return _0x5779c7['_joinSuggestions'](_0x499392,_0x250d88),_0x4638ca['delete'](_0x250d88),!0x0;}return!0x1;}}['_joinSuggestions'](_0xa5b5c9,_0x246e20){if(_0xa5b5c9['isMultiRange']){for(const _0x1a83c7 of _0x246e20['getRanges']())_0xa5b5c9['addRange'](_0x1a83c7);}else{const _0x4c1f37=_0x246e20['getFirstRange']()['end'];this['_setSuggestionRange'](_0xa5b5c9,this['_model']['createRange'](_0xa5b5c9['getFirstRange']()['start'],_0x4c1f37));}_0x246e20['removeMarkers']();}['_getMarkerAnnouncementText'](_0xb025ff,_0x209fe7,_0x5e1c87){const _0x3f0f03=_0xb025ff['startsWith']('format')||_0xb025ff['startsWith']('attribute')?'FORMATTING':_0xb025ff['toUpperCase']();return o(this['editor']['locale'],_0x209fe7+'_'+_0x3f0f03+'_SUGGESTION_ANNOUNCEMENT',_0x5e1c87);}['_initAriaMarkerChangeAnnouncements'](){const _0x439d2f=this['editor'];if(!_0x439d2f['ui'])return;const {ariaLiveAnnouncer:_0x36a79b}=_0x439d2f['ui'];_0x4d93ad(this['_model'],({left:_0x4bdffd,entered:_0x488536})=>{for(const _0x5542f0 of _0x4bdffd){const {group:_0x225c30,type:_0x339692}=this['_splitMarkerName'](_0x5542f0['name']);if('suggestion'===_0x225c30){_0x36a79b['announce'](this['_getMarkerAnnouncementText'](_0x339692,'LEAVE'));break;}}for(const _0x53873c of _0x488536){const {group:_0x448c67,type:_0x513362}=this['_splitMarkerName'](_0x53873c['name']);if('suggestion'===_0x448c67){_0x36a79b['announce'](this['_getMarkerAnnouncementText'](_0x513362,'ENTER',_0x452b75(_0xfe3140)));break;}}});}['_processAttributeChanges'](_0x201cfa){if(this['_recordAttributeSuggestions'])return!0x1;const _0x1e30db=this['editor'],_0x21434c=_0x1e30db['model']['document']['differ']['getChanges']();if(0x0==_0x21434c['length'])return!0x1;const _0x31577c=[],_0x26b76c=_0x21434c['filter'](_0xbcce95=>'attribute'==_0xbcce95['type']),_0x33fcc4=_0x21434c['filter'](_0x276ddc=>'insert'==_0x276ddc['type']&&'$text'!=_0x276ddc['name']),_0x53023d=_0x21434c['filter'](_0x126b4e=>'remove'==_0x126b4e['type']&&'$text'!=_0x126b4e['name']);for(const _0x2a35e7 of _0x26b76c)_0x31577c['push']({'key':_0x2a35e7['attributeKey'],'newValue':_0x2a35e7['attributeNewValue'],'oldValue':_0x2a35e7['attributeOldValue'],'range':qt(_0x2a35e7['range'],_0x1e30db['model'])});for(const _0x4af1a0 of _0x33fcc4){const _0x2b03eb=_0x53023d['find'](_0x389ca9=>_0x389ca9['position']['isEqual'](_0x4af1a0['position']));_0x2b03eb&&_0x31577c['push']({'key':m,'newValue':_0x4af1a0['name'],'oldValue':_0x2b03eb['name'],'range':_0x1e30db['model']['createRangeOn'](_0x4af1a0['position']['nodeAfter'])});}return 0x0!=_0x31577c['length']&&this['_reduceExistingSuggestions'](_0x201cfa,_0x31577c);}['_processAttributeSuggestions'](_0x173a99){let _0x5caf92=!0x1;const _0x414fae=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3e06bb=>_0x3e06bb['data']['newRange']&&_0x3e06bb['name']['startsWith']('suggestion:attribute:'));for(const _0x3be74e of _0x414fae){const {subType:_0x15232d,id:_0x525919}=this['_splitMarkerName'](_0x3be74e['name']),_0x451584=_0x15232d['split']('|')[0x0];for(const _0x3e6388 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x3e6388['id']!=_0x525919&&'attribute'==_0x3e6388['type']&&_0x3e6388['data']&&_0x3e6388['data']['key']==_0x451584&&_0x3e6388['getFirstRange']()['isIntersecting'](_0x3be74e['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x3e6388,_0x3be74e['data']['newRange'],_0x173a99),_0x5caf92=!0x0);}return _0x5caf92;}['_recordAttributeChanges'](_0x31c2ca){this['_recordAttributeSuggestions']=!0x0,_0x31c2ca();}['_isRegisteredAttribute'](_0x1a9504){const _0x5d2e94=this['_isBlockAttribute'](_0x1a9504),_0x290103=this['_inlineAttributeKeys']['has'](_0x1a9504);return _0x5d2e94||_0x290103;}['_reduceExistingSuggestions'](_0x16d863,_0x4eb2f2){if(0x0==_0x4eb2f2['length'])return!0x1;let _0x29723b=!0x1;for(const _0xa76834 of _0x4eb2f2){const _0x28bf50=this['_findSuggestions'](_0xa76834['range'],'attribute')['filter'](_0x519e26=>!_0x519e26['meta']['isNextTo'])['map'](_0x30d584=>_0x30d584['suggestion']),_0x1ad14e=_0xfe0d22({'newValue':_0xa76834['newValue']});_0x28bf50['filter'](_0x27b5d8=>{const [_0xce2404,_0x2ff1de]=_0x27b5d8['subType']['split']('|');return _0xce2404==_0xa76834['key']&&_0x2ff1de!=_0x1ad14e;})['forEach'](_0xbf12b6=>{this['_reduceSuggestionAttributeRange'](_0xbf12b6,_0xa76834['range'],_0x16d863),_0x29723b=!0x0;});}return _0x29723b;}['_reduceSuggestionAttributeRange'](_0x3148ab,_0x82d95a,_0x3305e1){const _0x570dba=_0x3148ab['getFirstRange']()['getDifference'](_0x82d95a);0x0!==_0x570dba['length']?0x1!==_0x570dba['length']?this['_breakSuggestionMarker'](_0x3148ab,_0x82d95a['start'],_0x82d95a['end']):this['_setSuggestionRange'](_0x3148ab,_0x570dba[0x0]):_0x3305e1['removeMarker'](_0x3148ab['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0xa949b7){this['_editor']=_0xa949b7,this['_model']=_0xa949b7['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x518c1d,_0x2ac9df,_0x19fdfc,_0xec669d,_0x24975f,_0x338f11){return new u(this['_model'],{'type':_0x518c1d,'subType':_0x2ac9df,'id':_0x19fdfc,'author':_0xec669d,'creator':_0xec669d,'attributes':_0x24975f,'onAttributesChange':_0x338f11,'onAccept':(..._0x508a1e)=>this['getSuggestionCallback'](_0x518c1d,_0x2ac9df,'accept')(..._0x508a1e),'onDiscard':(..._0x328b64)=>this['getSuggestionCallback'](_0x518c1d,_0x2ac9df,'discard')(..._0x328b64)});}['registerCustomCallback'](_0x39b2c5,_0x42955e,_0xf68096,_0x31c269){const _0x578d2f=_0x39b2c5+':'+_0x42955e+':'+_0xf68096;this['_customCallbacks']['set'](_0x578d2f,_0x31c269);}['getSuggestionCallback'](_0x564d89,_0x5a3e2a,_0x12f0a3){const _0x269d8e=_0x564d89+':'+_0x5a3e2a+':'+_0x12f0a3;return this['_customCallbacks']['get'](_0x269d8e)||this['_defaultCallbacks']['get'](_0x564d89+':'+_0x12f0a3);}['_registerDefaultCallbacks'](){const _0x10820e=()=>!0x1,_0x4f022b=_0x592bcf=>{_0x592bcf['sort']((_0x1de0ef,_0x46d720)=>_0x1de0ef['start']['isBefore'](_0x46d720['start'])?0x1:-0x1),this['_model']['change'](_0x2cd6fa=>{for(const _0x38a841 of _0x592bcf){let _0x29c0ba;_0x29c0ba=_0x38a841['end']['isAtEnd']&&_0x38a841['end']['parent']==_0x38a841['start']['nodeAfter']?_0x2cd6fa['createSelection'](_0x38a841['start']['nodeAfter'],'on'):_0x2cd6fa['createSelection'](_0x38a841),this['_model']['deleteContent'](_0x29c0ba,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x5bdf73=(_0x2855b2,_0x4f4ac8)=>{_0x4f4ac8&&this['_model']['change'](_0x5be775=>{const {commandName:_0x5c1d35,commandParams:_0x518a39=[]}=_0x4f4ac8,_0x442179=_0x2855b2['map'](_0x4b0857=>(Ft(_0x4b0857)&&(_0x4b0857=this['_model']['createRange'](_0x4b0857['end'])),_0x4b0857))['filter'](_0x3ca5cd=>'$graveyard'!==_0x3ca5cd['root']['rootName']);if(_0x442179['length']<0x1)return;const _0x262b0f=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x10982f=>_0x151380['fromRange'](_0x10982f));_0x5be775['setSelection'](_0x442179);for(const _0xf4cb52 of this['_editor']['commands']['commands']())_0xf4cb52['refresh']();_0x518a39['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x5c1d35,..._0x518a39);const _0x4f998a=_0x262b0f['filter'](_0x41447d=>'$graveyard'!=_0x41447d['root']['rootName']);_0x4f998a['length']>0x0&&_0x5be775['setSelection'](_0x4f998a);for(const _0x1497e0 of _0x262b0f)_0x1497e0['detach']();});},_0x4f1a0c=(_0x252530,_0x41695e)=>0x1==_0x252530['length']&&0x1==_0x41695e['length']&&_0x252530[0x0]['end']['isEqual'](_0x41695e[0x0]['start']),_0x8e8a71=(_0x3ae15,_0x53d7d8,_0x309e6e,_0xf0cf28)=>Kt(_0x3ae15,_0x53d7d8,_0x309e6e,_0xf0cf28)?[_0x3ae15,_0x53d7d8]:Kt(_0x53d7d8,_0x3ae15,_0xf0cf28,_0x309e6e)?[_0x53d7d8,_0x3ae15]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x10820e),this['_defaultCallbacks']['set']('insertion:discard',_0x4f022b),this['_defaultCallbacks']['set']('insertion:join',_0x4f1a0c),this['_defaultCallbacks']['set']('insertion:chain',_0x8e8a71),this['_defaultCallbacks']['set']('deletion:accept',_0x4f022b),this['_defaultCallbacks']['set']('deletion:discard',_0x10820e),this['_defaultCallbacks']['set']('deletion:join',_0x4f1a0c),this['_defaultCallbacks']['set']('deletion:chain',_0x8e8a71),this['_defaultCallbacks']['set']('formatInline:accept',_0x5bdf73),this['_defaultCallbacks']['set']('formatInline:discard',_0x10820e),this['_defaultCallbacks']['set']('formatInline:join',_0x4f1a0c),this['_defaultCallbacks']['set']('formatInline:chain',_0x10820e),this['_defaultCallbacks']['set']('formatBlock:accept',_0x5bdf73),this['_defaultCallbacks']['set']('formatBlock:discard',_0x10820e),this['_defaultCallbacks']['set']('formatBlock:join',_0x4f1a0c),this['_defaultCallbacks']['set']('formatBlock:chain',_0x10820e),this['_defaultCallbacks']['set']('attribute:accept',_0x10820e),this['_defaultCallbacks']['set']('attribute:discard',(_0x52db7f,_0x5f12a8)=>{if(!_0x5f12a8)return;const _0x520167=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x4aa865=>{if(_0x5f12a8['key']==m)for(const _0x5efbea of _0x52db7f){const _0x9a99b=_0x5efbea['start']['nodeAfter'],_0x1af966=_0x5f12a8['oldValue'];_0x4aa865['rename'](_0x9a99b,_0x1af966);}else{if(_0x520167['_isBlockAttribute'](_0x5f12a8['key'])){for(const _0x3e2017 of _0x52db7f)void 0x0!==_0x5f12a8['oldValue']?_0x4aa865['setAttribute'](_0x5f12a8['key'],_0x5f12a8['oldValue'],_0x3e2017['start']['nodeAfter']):_0x4aa865['removeAttribute'](_0x5f12a8['key'],_0x3e2017['start']['nodeAfter']);}else{for(const _0x545861 of _0x52db7f)_0x5f12a8['oldValue']?_0x4aa865['setAttribute'](_0x5f12a8['key'],_0x5f12a8['oldValue'],_0x545861):_0x4aa865['removeAttribute'](_0x5f12a8['key'],_0x545861);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x4f1a0c);}}function Gt(_0x461805,_0x36cca4,_0x4ae267){for(const _0x49f70e of _0x36cca4['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x49f70e['root']==_0x49f70e)return!0x1;if(!_0x4ae267['containsItem'](_0x49f70e))return!0x1;if(_0x461805['isObject'](_0x49f70e)||_0x461805['isLimit'](_0x49f70e))return!0x0;}return!0x1;}function Ft(_0x3af13d){return _0x3af13d['end']['parent']==_0x3af13d['start']['nodeAfter']&&_0x3af13d['end']['isAtStart'];}function Lt(_0x59d39c,_0x3bc45a,_0x207d0d,_0x7ec64c){const _0x5a4448=_0x13d47b=>!_0x13d47b['item']['is']('$textProxy')&&!_0x7ec64c['isObject'](_0x13d47b['item']),_0x5a1322=_0x59d39c['start']['getLastMatchingPosition'](_0x5a4448),_0x2559e2=_0x59d39c['end']['getLastMatchingPosition'](_0x5a4448,{'direction':'backward'});return(!_0x59d39c['start']['isEqual'](_0x5a1322)||!_0x59d39c['end']['isEqual'](_0x2559e2))&&(_0x5a1322['isBefore'](_0x2559e2)?_0x207d0d['updateMarker'](_0x3bc45a,{'range':_0x207d0d['createRange'](_0x5a1322,_0x2559e2)}):_0x207d0d['removeMarker'](_0x3bc45a),!0x0);}function Jt(_0x1d8182){return _0xfe0d22(_0x1d8182);}function Ht(_0x22955c){const _0x5e0ce5=_0x22955c['start']['nodeAfter'];return _0x5e0ce5&&_0x5e0ce5['is']('element');}function qt(_0x5a41fd,_0x4f8fb6){return null==_0x5a41fd['end']['nodeBefore']&&_0x5a41fd['end']['parent']==_0x5a41fd['start']['nodeAfter']?zt(_0x5a41fd['start']['nodeAfter'],_0x4f8fb6):_0x5a41fd;}function zt(_0x2365cf,_0x193ea5){const _0x1be8c0=_0x193ea5['schema']['isObject'](_0x2365cf)||_0x193ea5['schema']['isSelectable'](_0x2365cf);return _0x193ea5['createRange'](_0x193ea5['createPositionAt'](_0x2365cf,'before'),_0x1be8c0?_0x193ea5['createPositionAfter'](_0x2365cf):_0x193ea5['createPositionAt'](_0x2365cf,'end'));}function Kt(_0x54f651,_0x23fc11,_0x532253,_0x23eb27){return!!Wt(_0x54f651,_0x23fc11)&&_0x532253['end']['isEqual'](_0x23eb27['start']);}function Wt(_0x3ff698,_0x2c5897){if(!_0x3ff698['_isDataLoaded']||!_0x2c5897['_isDataLoaded'])return!0x1;const _0x2fe1e9=new Set(Object['keys'](_0x3ff698['attributes'])),_0x2612d2=new Set(Object['keys'](_0x2c5897['attributes']));if(_0x2fe1e9['delete']('groupId'),_0x2612d2['delete']('groupId'),0x0==_0x2fe1e9['size']&&0x0==_0x2612d2['size'])return!0x0;if(_0x2fe1e9['size']!=_0x2612d2['size'])return!0x1;const _0x47e92a={..._0x3ff698['attributes']},_0x500dd0={..._0x2c5897['attributes']};return delete _0x47e92a['groupId'],delete _0x500dd0['groupId'],JSON['stringify'](_0x47e92a)==JSON['stringify'](_0x500dd0);}function Qt(_0x3aad3e,_0x50d1c7){const _0x3d728f=Xt(_0x3aad3e['attributes']),_0x54ada7=Xt(_0x50d1c7);if(!_0x3aad3e['_isDataLoaded'])return!0x1;for(const _0x76adbd of Object['keys'](_0x54ada7))if(!_0x431c16(_0x3d728f[_0x76adbd],_0x54ada7[_0x76adbd]))return!0x1;return!0x0;}function Xt(_0x75bd03){const _0x2eef23=Object['assign']({},_0x75bd03);return delete _0x2eef23['skipNestingCheck'],delete _0x2eef23['tablePasteChainId'],_0x2eef23;}class Ce extends/* #__PURE__ -- @preserve */
25
+ _0xb3c3a1(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x45dada,_0x31f2ab,_0x179084,_0x7db0f9){super(),this['model']=_0x31f2ab,this['view']=_0x179084,this['commentThreadController']=_0x7db0f9,this['_editor']=_0x45dada,this['_acceptCommand']=_0x45dada['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x45dada['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x15901d,_0x21c88c)=>_0x15901d||_0x21c88c),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x572823=>_0x572823&&this['_editor']['model']['canEditAt'](_0x31f2ab['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x36702d=>_0x36702d&&this['_editor']['model']['canEditAt'](_0x31f2ab['getRanges']())),this['_pendingAction']=null,_0x179084['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x179084,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x179084,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x179084,'change:isDirty',()=>{_0x179084['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 _0x387e28=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x387e28);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ms extends _0x5908fb{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x25c3f5,_0x4846ad,_0x2f1adc,_0x5d0ef8){super(_0x25c3f5),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x43f0b1(_0x25c3f5,o(_0x25c3f5,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x4846ad['authoredAt']),this['bind']('authoredAt')['to'](_0x4846ad),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',_0x4846ad,'authoredAt',this,'descriptionParts',(_0x41708c,_0x38fdb9,_0x2cf8cd)=>{const _0x390acb=_0x2cf8cd['map'](_0x2bcc4a=>cs(_0x2bcc4a['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x41708c-0x1,_0x4846ad['author']['name'],_0x38fdb9?_0x5d0ef8['formatDateTime'](_0x38fdb9):'',new DOMParser()['parseFromString'](_0x390acb,'text/html')['body']['textContent']]);}),this['focusables']=new _0x111720(),this['focusTracker']=new _0x85aaa2(),this['keystrokes']=new _0x1e13d7(),this['focusCycler']=new _0x24c7a1({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x16c94c=>_0x16c94c['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x4846ad,this['_localUser']=_0x2f1adc,this['_config']=_0x5d0ef8,_0x5d0ef8['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x22cb5b(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x1ae4da}=this['_config'];this['commentsListView']=new _0x1ae4da(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',_0x39d089=>_0x39d089+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x80402e,_0x52d2e2)=>_0x80402e||!!_0x52d2e2);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0xd3be32}=this['_config'],_0x5123c3=new _0xd3be32(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x1cea0e=_0x5123c3['commentInputView'];return _0x5123c3['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x1cea0e,'value',(_0x2ba501,_0x43b555,_0x8397f5)=>!!_0x8397f5||_0x2ba501&&!_0x43b555),_0x1cea0e['on']('submit',(_0x52844a,_0x34686f)=>{this['fire']('addComment',_0x34686f),_0x1cea0e['editor']['setData']('');}),_0x1cea0e['on']('cancel',()=>this['focus']()),_0x1cea0e['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x5123c3;}}class pe extends ms{['suggestionView'];['_descriptionElement'];constructor(_0x2177a2,_0x56afad,_0x29e97a,_0x58bd01){super(_0x2177a2,_0x56afad,_0x29e97a,_0x58bd01),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x4eaaae=>_0x4eaaae&&_0x4eaaae[0x0]?_0x4eaaae[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x399d4d,_0x139754)=>{let _0x4462ec='';for(const _0x3ce19d of _0x399d4d)_0x4462ec+='<p>'+cs(_0x3ce19d['content'],_0x3ce19d['color'])+'</p>';return _0x139754?_0x4462ec:_0x4b909b(_0x4462ec,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x58bd01['SuggestionView'](_0x2177a2,_0x56afad,{'formatDateTime':_0x58bd01['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 _0x4f7387=this['bindTemplate'],_0x4c004c=[this['suggestionView']];return this['commentsListView']&&_0x4c004c['push'](this['commentsListView']),this['commentThreadInputView']&&_0x4c004c['push'](this['commentThreadInputView']),_0x4c004c['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x4f7387['if']('isActive','ck-suggestion-wrapper--active'),_0x4f7387['to']('type',_0x4266ff=>'ck-suggestion-'+_0x4266ff),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':_0x4f7387['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x4c004c};}['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 fe extends _0x5908fb{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x971bff,_0x11acb1,_0x252d2b){super(_0x971bff),this['_model']=_0x11acb1,this['_config']=_0x252d2b,this['set']('description',''),this['bind']('authoredAt')['to'](_0x11acb1),this['acceptButton']=this['_createButton'](o(_0x971bff,'Accept\x20suggestion'),_0x527b57['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x971bff,'Discard\x20suggestion'),_0x527b57['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x52a494(_0x971bff,_0x11acb1['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x111720([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x85aaa2(),this['keystrokes']=new _0x1e13d7(),this['focusCycler']=new _0x24c7a1({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x177902=>_0x177902['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x34c792=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x34c792['innerHTML']=this['description'],this['on']('change:description',(_0x39d1f7,_0x48207b,_0x3b1aa6)=>{_0x34c792['innerHTML']=_0x3b1aa6;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x1da4db=this['bindTemplate'],_0x321e92=[{'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':_0x1da4db['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x1da4db['to']('authoredAt',_0x228159=>this['_config']['formatDateTime'](_0x228159))}]}]},{'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']&&_0x321e92['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':_0x321e92}]};}['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'](_0x9fda49,_0x51e40c,_0x355c20,_0xc5b273,_0x2c4d5e){const _0x1f33dd=new _0x2564a7(this['locale']);return _0x1f33dd['set']({'label':_0x9fda49,'icon':_0x51e40c,'tooltip':!0x0,'tooltipPosition':_0x2c4d5e}),_0x1f33dd['extendTemplate']({'attributes':{'class':_0x355c20}}),_0x1f33dd['on']('execute',()=>{this['fire'](_0xc5b273,this['_model']['id']);}),_0x1f33dd;}['_setupKeyboardNavigation'](){const _0x38579a=this['element'];this['keystrokes']['listenTo'](_0x38579a);for(const _0x11b40c of this['focusables'])this['focusTracker']['add'](_0x11b40c['element']),this['keystrokes']['listenTo'](_0x11b40c['element']);this['keystrokes']['set']('enter',(_0x30e108,_0x35980e)=>{_0x38579a===_0x30e108['target']&&(this['focusCycler']['focusFirst'](),_0x35980e());}),this['keystrokes']['set']('esc',(_0x2493bb,_0x507e94)=>{_0x38579a!==_0x2493bb['target']&&(this['focus'](),_0x507e94());});}}var we='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x441617{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x5d6ba8,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x11f1cc){super(_0x11f1cc),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x40ec5d=this['editor']['config'];_0x40ec5d['define']('trackChanges.SuggestionThreadView',pe),_0x40ec5d['define']('trackChanges.SuggestionView',fe),_0x40ec5d['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x40ec5d['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0xc4c2a6,_0x133d63){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x59230e,_0x5cda44]of this['_handleControllerBuffer']){const _0x5ff42f=this['_suggestionToController']['has'](_0x59230e);_0x5ff42f||_0x5cda44?_0x5ff42f&&_0x5cda44&&this['_destroyController'](_0x59230e):this['_initializeController'](_0x59230e);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0xc4c2a6,_0x133d63);}['init'](){const _0x1fda23=this['editor'],_0xadcba0=_0x1fda23['plugins']['get']('TrackChangesEditing'),_0x13e1b8=_0x1fda23['plugins']['get']('Annotations'),_0x33e2b5=_0x1fda23['plugins']['get']('EditorAnnotations'),_0x990b44=_0x1fda23['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x33e2b5['addSourceCollector'](()=>{const _0x168c0e=[];for(const [_0x31d59d,_0x372b23]of Array['from'](this['_suggestionToController'])){const _0x32c198=_0x31d59d['getAllAdjacentSuggestions'](),_0x13fc22=[];for(const _0x21039f of _0x32c198){if(!_0x21039f['isInContent'])continue;if(_0x21039f['isMultiRange']){_0x13fc22['push'](..._0x21039f['getRanges']());continue;}const _0x348649=_0x21039f['getFirstRange']();if(_0x13fc22['length']>0x0){const _0x5b0bf7=_0x13fc22[0x0]['getJoined'](_0x348649);if(_0x5b0bf7){_0x13fc22[0x0]=_0x5b0bf7;continue;}}_0x13fc22['push'](_0x348649);}_0x168c0e['push']([_0x372b23['view'],_0x13fc22]);}return _0x168c0e;}),this['listenTo'](_0xadcba0,'suggestionLoaded',(_0x5778cf,_0x211491)=>{this['listenTo'](_0x211491,'change:previous',(_0x25a2b5,_0x111ccf,_0x18752e,_0x492750)=>{_0x211491['isInContent']&&(null==_0x18752e?(this['_updateController'](_0x492750['head']),this['_handleSuggestionControllerDelayed'](_0x211491,!0x1)):(this['_updateController'](_0x18752e['head']),null==_0x492750&&this['_handleSuggestionControllerDelayed'](_0x211491,!0x0)));}),null!==_0x211491['previous']?this['_updateController'](_0x211491['head']):this['_handleSuggestionControllerDelayed'](_0x211491,!0x1);}),this['listenTo'](_0xadcba0,'suggestionUnloaded',(_0x25daa9,_0x474a37,_0x1cdabb)=>{this['stopListening'](_0x474a37,'change:previous'),this['_handleControllerBuffer']['delete'](_0x474a37),this['_suggestionToController']['has'](_0x474a37)&&this['_destroyController'](_0x474a37),_0x1cdabb&&this['_updateController'](_0x1cdabb['head']);}),this['listenTo'](_0xadcba0,'suggestionChanged',(_0x757bdd,_0x1b40b4)=>{this['_updateController'](_0x1b40b4);}),this['listenTo'](_0x13e1b8,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x990b44,'addComment',(_0x40063f,{threadId:_0x5b1e09,isFromAdapter:_0x3aa438})=>{if(_0x3aa438||!_0xadcba0['hasSuggestion'](_0x5b1e09))return;const _0x2c9e8e=_0xadcba0['getSuggestion'](_0x5b1e09);this['_suggestionToController']['get'](_0x2c9e8e)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x620295=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x47d4ed;for(const _0x15c221 in _0x620295){const _0x5bcbc0=_0x15c221,_0x55b5b4=_0x620295[_0x5bcbc0];if('trackChangesLicenseKeyValid'==_0x55b5b4||'trackChangesLicenseKeyInvalid'==_0x55b5b4||'trackChangesLicenseKeyExpired'==_0x55b5b4||'trackChangesLicenseKeyDomainLimit'==_0x55b5b4||'trackChangesLicenseKeyNotAllowed'==_0x55b5b4||'trackChangesLicenseKeyEvaluationLimit'==_0x55b5b4||'trackChangesLicenseKeyTrialLimit'==_0x55b5b4||'trackChangesLicenseKeyUsageLimit'==_0x55b5b4){delete _0x620295[_0x5bcbc0],_0x47d4ed=_0x55b5b4,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x47d4ed&&_0x620295['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x47d4ed&&_0x620295['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x47d4ed&&_0x620295['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x47d4ed&&_0x620295['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x47d4ed&&_0x620295['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x47d4ed&&_0x620295['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x47d4ed&&_0x620295['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x3c182f=this['editor']['plugins']['get']('Annotations'),_0x31074c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3c6318=Array['from'](_0x3c182f['activeAnnotations'],_0x41e1cc=>_0x41e1cc['innerView'])['filter'](_0x313f2e=>this['_viewToController']['has'](_0x313f2e)),_0x19b985=[];for(const _0x3006d7 of _0x3c6318){const _0x15fbd6=this['_viewToController']['get'](_0x3006d7)['model']['getAllAdjacentSuggestions']();_0x19b985['push'](..._0x15fbd6['reduce']((_0x4b5f25,_0x1aa0c7)=>[..._0x4b5f25,..._0x1aa0c7['getMarkerNames']()],[]));}_0x31074c['activeMarkers']=_0x19b985;}['_addUIComponentsToFactory'](){const _0x570346=this['editor'],_0x5f08b9=_0x570346['locale'],_0x1ff375=o(_0x5f08b9,'Track\x20changes'),_0xe10660=new _0xf97dcb([{'type':'switchbutton','model':new _0x3d9297({'withText':!0x0,'isToggleable':!0x0,'label':_0x1ff375,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x3d9297({'withText':!0x0,'label':o(_0x5f08b9,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3d9297({'withText':!0x0,'label':o(_0x5f08b9,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3d9297({'withText':!0x0,'label':o(_0x5f08b9,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3d9297({'withText':!0x0,'label':o(_0x5f08b9,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x570346['plugins']['has']('TrackChangesPreview')&&_0xe10660['addMany']([{'type':'separator'},{'type':'button','model':new _0x3d9297({'withText':!0x0,'label':o(_0x5f08b9,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x384616 of _0xe10660)if(ke(_0x384616)){const _0x15e5e5=_0x570346['commands']['get'](_0x384616['model']['commandName']);_0x384616['model']['bind']('isOn','isEnabled')['to'](_0x15e5e5,'value','isEnabled');}_0x570346['ui']['componentFactory']['add']('trackChanges',_0x184307=>this['_createToolbarButton'](_0x184307,_0xe10660,_0x1ff375)),_0x570346['ui']['componentFactory']['add']('menuBar:trackChanges',_0x325948=>this['_createMenuBarMenu'](_0x325948,_0xe10660,_0x1ff375));}['_createToolbarButton'](_0x17dfcd,_0x2eed8a,_0x32723e){const _0xf1a97f=_0x220812(_0x17dfcd,_0x302371),_0x10e91b=this['editor']['commands']['get']('trackChanges');_0xf1a97f['buttonView']['set']({'tooltip':_0x32723e,'label':_0x32723e,'icon':we}),_0xf1a97f['buttonView']['bind']('isOn')['to'](_0x10e91b,'value'),_0xf1a97f['buttonView']['on']('execute',()=>{_0x10e91b['execute'](),this['editor']['editing']['view']['focus']();}),_0x41f75a(_0xf1a97f,_0x2eed8a,{'role':'menu'});const _0x39d596=[];for(const _0x56ddc4 of _0x2eed8a)ke(_0x56ddc4)&&_0x39d596['push'](this['editor']['commands']['get'](_0x56ddc4['model']['commandName']));const _0x5967c2=_0xf1a97f['buttonView'];return _0x5967c2['actionView']['unbind']('isEnabled'),_0x5967c2['arrowView']['unbind']('isEnabled'),_0x5967c2['actionView']['bind']('isEnabled')['to'](_0x10e91b,'isEnabled'),_0x5967c2['arrowView']['bind']('isEnabled')['toMany'](_0x39d596,'isEnabled',(..._0x137c9b)=>_0x137c9b['some'](_0x238ab2=>_0x238ab2)),_0xf1a97f['on']('execute',_0xb41d52=>{this['editor']['execute'](_0xb41d52['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0xf1a97f;}['_createMenuBarMenu'](_0x522e31,_0x1d8aef,_0x462871){const _0x35ba1=new _0x228501(_0x522e31),_0x164e35=this['editor']['commands']['get']('trackChanges');_0x35ba1['buttonView']['set']({'label':_0x462871,'icon':we});const _0x5d51bc=new _0x80c8f7(_0x522e31);for(const _0x15cf6f of _0x1d8aef){if('separator'==_0x15cf6f['type']){_0x5d51bc['items']['add'](new _0x4db66e(_0x522e31));continue;}const _0xe7a05a=new _0x214a4d(_0x522e31,_0x35ba1),_0x3ce5a5=new _0x1ecba2(_0x522e31),_0x592aa0=_0x15cf6f['model'];_0x3ce5a5['bind'](...Object['keys'](_0x592aa0))['to'](_0x592aa0),_0x3ce5a5['delegate']('execute')['to'](_0x35ba1),_0x3ce5a5['on']('execute',()=>{this['editor']['execute'](_0x592aa0['commandName']),this['editor']['editing']['view']['focus']();}),_0xe7a05a['children']['add'](_0x3ce5a5),_0x5d51bc['items']['add'](_0xe7a05a);}return _0x35ba1['bind']('isEnabled')['to'](_0x164e35,'isEnabled'),_0x35ba1['panelView']['children']['add'](_0x5d51bc),_0x35ba1;}['_initializeController'](_0x436363){const _0x661d74=this['editor'],_0x52c69f=_0x661d74['config'],_0x36106d=_0x661d74['plugins']['get']('Annotations'),_0x211da0=_0x661d74['plugins']['get']('CommentsRepository'),_0x5dabf4=_0x661d74['plugins']['get']('EditorAnnotations'),_0x2650e2=_0x661d74['plugins']['get'](_0x5d6ba8)['me'],_0x18be10=_0x52c69f['get']('trackChanges')['SuggestionThreadView'],_0x270644=_0x52c69f['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x1b4fdd,CommentThreadInputView:_0x97c7fd}=_0x661d74['plugins']['get']('CommentsUI');let _0x3b42ce,_0x76c9b7,_0x3b437a;this['_annotationViews']['has'](_0x436363['id'])?(_0x76c9b7=this['_annotationViews']['get'](_0x436363['id']),_0x3b42ce=_0x76c9b7['mainView']):(_0x3b42ce=new _0x18be10(_0x661d74['locale'],_0x436363,_0x2650e2,{'disableComments':this['_disableComments'],'editorConfig':{..._0x52c69f['get']('comments.editorConfig'),'licenseKey':_0x52c69f['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x52c69f['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x52c69f['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x52c69f['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0xd7b303(_0x52c69f['get']('locale')),'CommentView':_0x52c69f['get']('comments')['CommentView'],'CommentsListView':_0x1b4fdd,'CommentThreadInputView':_0x97c7fd,'SuggestionView':_0x270644}),_0x3b42ce['suggestionView']['acceptButton']['on']('execute',()=>{_0x661d74['editing']['view']['focus']();}),_0x3b42ce['suggestionView']['discardButton']['on']('execute',()=>{_0x661d74['editing']['view']['focus']();}),_0x76c9b7=_0x36106d['createAnnotationView'](this['editor']['locale'],_0x3b42ce),_0x76c9b7['bind']('isDirty')['to'](_0x3b42ce,'isDirty'),_0x76c9b7['bind']('length')['to'](_0x3b42ce),_0x76c9b7['bind']('type')['to'](_0x3b42ce,'type',_0x4cde46=>'suggestion-'+_0x4cde46),_0x3b42ce['on']('escape',()=>{_0x3b437a['fire']('escape');}),this['_annotationViews']['set'](_0x436363['id'],_0x76c9b7));const _0x3ded6b=_0x211da0['createCommentThreadController'](_0x436363['commentThread'],_0x3b42ce),_0x2ad66f=new Ce(_0x661d74,_0x436363,_0x3b42ce,_0x3ded6b),_0x2b5f84=_0x436363['getAllAdjacentSuggestions']()['filter'](_0x2cd892=>_0x2cd892['isInContent']);_0x3b42ce['descriptionParts']=_0x661d74['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x2b5f84),this['_suggestionToController']['set'](_0x436363,_0x2ad66f),this['_viewToController']['set'](_0x3b42ce,_0x2ad66f),_0x3b437a=_0x36106d['createAnnotation']({'view':_0x76c9b7,'target':()=>{const _0x123208=[],_0x40a391=_0x436363['getAllAdjacentSuggestions']()['filter'](_0x55c6e8=>_0x55c6e8['isInContent']);for(const _0x3002ca of _0x40a391)_0x123208['push'](..._0x3002ca['getMarkers']());return _0x4adfa6(_0x661d74['editing'],_0x123208);},'type':()=>'suggestion-'+_0x2ad66f['view']['type']}),_0x211da0['_bindAnnotationToEditors'](_0x3b42ce,_0x3b437a),_0x36106d['add'](_0x3b437a),_0x5dabf4['registerAnnotation'](_0x3b437a);}['_destroyController'](_0x1c4b27){const _0x9f217c=this['editor']['plugins']['get']('CommentsRepository'),_0x30578f=this['editor']['plugins']['get']('Annotations'),_0x35adff=this['_suggestionToController']['get'](_0x1c4b27),_0x2093f6=_0x35adff['view'],_0x2352ee=_0x30578f['getByInnerView'](_0x2093f6);_0x9f217c['_unbindEditors'](_0x2093f6),_0x2352ee&&_0x30578f['remove'](_0x2352ee),this['_suggestionToController']['delete'](_0x1c4b27),this['_viewToController']['delete'](_0x2093f6),_0x35adff['destroy']();}['_updateController'](_0x141287){if(!_0x141287['isInContent']||!this['_suggestionToController']['has'](_0x141287))return;const _0x43aa5a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3238df=this['_suggestionToController']['get'](_0x141287),_0x58b182=_0x141287['getAllAdjacentSuggestions']();_0x3238df['view']['descriptionParts']=_0x43aa5a['descriptionFactory']['getDescriptions'](_0x58b182);}['destroy'](){for(const _0x265838 of this['_suggestionToController']['keys']())this['_destroyController'](_0x265838);for(const _0x1321fa of this['_annotationViews']['values']())_0x1321fa['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0xadc864){return'model'in _0xadc864;}class k extends _0x441617{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x3d3493){this['editor']['plugins']['get'](p)['adapter']=_0x3d3493;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x1e87db){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x1e87db);}['getSuggestions']({skipNotAttached:_0x3362c4=!0x1,toJSON:_0x29c8ec=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x3362c4,'toJSON':_0x29c8ec});}['getSuggestion'](_0x1f69be){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x1f69be);}}const w=['Pagination'];class T extends _0x441617{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x936fb1=this['editor'];if(_0x936fb1['config']['define']('trackChangesData.editorCreator',_0x126fa2=>{const _0x3e54ae=_0x936fb1['model']['document']['getRootNames']()['reduce']((_0x22cb8a,_0x2eaa2e)=>(_0x22cb8a[_0x2eaa2e]='',_0x22cb8a),{});return _0x936fb1['constructor']['create'](_0x3e54ae,_0x126fa2);}),'function'!=typeof _0x936fb1['config']['get']('trackChangesData')['editorCreator'])throw new _0x5aa28e('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x4e647d){return N(this['editor'],!0x0,_0x4e647d);}['getDataWithDiscardedSuggestions'](_0x3da0aa){return N(this['editor'],!0x1,_0x3da0aa);}}class D extends _0x441617{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x47704b){function _0x116cf(_0x340915){return _0x340915['map'](_0x50d710=>String['fromCharCode'](_0x50d710))['join']('');}super(_0x47704b),this['result']='end',_0x47704b[_0x116cf([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x116cf([0x76,0x69,0x65,0x77])][_0x116cf([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x116cf([0x61,0x75,0x74,0x6f]),_0x47704b[_0x116cf([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x116cf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x116cf([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x116cf([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x116cf([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function Fe(_0x307dc9){return void 0x0!==_0x307dc9['getRootsAttributes'];}async function N(_0x1765d2,_0x1ad4fd,_0x2b0cbc){const _0x147211=_0x1cbbef(_0x1765d2,w);_0x147211['plugins']['push'](p,D),_0x147211['rootsAttributes']=Fe(_0x1765d2)?_0x1765d2['getRootsAttributes']():void 0x0;const _0x3ba8ee=document['createDocumentFragment'](),_0xec6a6b=_0x1765d2['config']['get']('trackChangesData')['editorCreator'],_0x4bbe24=await _0xec6a6b(_0x147211,()=>function(_0x6dd46c){const _0x5372b1=document['createElement']('div');return _0x6dd46c['appendChild'](_0x5372b1),_0x5372b1;}(_0x3ba8ee));!function(_0x36e61d,_0x544719){const _0xdac29b=_0x36e61d['model']['document']['getRootNames']()['reduce']((_0x5e4479,_0x1543f8)=>(_0x5e4479[_0x1543f8]=_0x36e61d['data']['get']({'rootName':_0x1543f8}),_0x5e4479),{}),_0x4b39e2=_0x36e61d['plugins']['get']('Users')['users']['map'](_0x9cc701=>({'id':_0x9cc701['id'],'name':_0x9cc701['name']})),_0x38cfd9=_0x36e61d['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xd39627=_0x36e61d['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x118068=_0x544719['plugins']['get']('Users'),_0x110a6e=_0x544719['plugins']['get']('TrackChangesEditing'),_0x214b20=_0x544719['plugins']['get']('CommentsRepository');for(const _0x2d040c of _0x214b20['getCommentThreads']())_0x2d040c['remove']();for(const _0x3d7416 of _0x4b39e2)_0x118068['getUser'](_0x3d7416['id'])||_0x118068['addUser'](_0x3d7416);_0x118068['me']||_0x118068['useAnonymousUser']();for(const _0x467582 of _0xd39627)_0x214b20['addCommentThread'](_0x467582);for(const _0x294723 of _0x38cfd9)_0x110a6e['addSuggestionData'](_0x294723);_0x544719['data']['set'](_0xdac29b);}(_0x1765d2,_0x4bbe24),_0x4bbe24['execute'](_0x1ad4fd?'acceptAllSuggestions':'discardAllSuggestions');const _0x3cd6c4=Fe(_0x4bbe24)?_0x4bbe24['getFullData'](_0x2b0cbc):_0x4bbe24['data']['get'](_0x2b0cbc);return await _0x4bbe24['destroy'](),_0x3cd6c4;}class Me extends _0x5908fb{['options'];constructor(_0x2a6154,_0x30f32d){super(_0x2a6154),this['options']=_0x30f32d,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'](_0x1c064a,_0x5886bd){if(!this['element'])return;const _0x14eb37=[];for(const [_0x14efbe,_0x38c920]of _0x1c064a){const _0x312081=document['createElement']('div');_0x312081['setAttribute']('data-ck-root-name',_0x14efbe),_0x312081['className']=_0x38c920['classes']+'\x20ck-track-changes-preview__root-container',_0x312081['innerHTML']=_0x38c920['content'],_0x14eb37['push'](_0x312081);}_0x5886bd(this['element'],_0x14eb37),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends Yt{constructor(_0x211c89){super(_0x211c89),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x50f28f=this['editor'],_0x25014=_0x50f28f['locale'],_0x29a5cf=_0x50f28f['plugins']['get']('Dialog');let _0x55341e;const _0x3b9784=function(_0x5ae31c){const _0x576988={};if('editables'in _0x5ae31c['ui']['view']){for(const [_0x2c7f74,_0x1f9883]of Object['entries'](_0x5ae31c['ui']['view']['editables']))_0x576988[_0x2c7f74]=_0x1f9883['element'];}else _0x576988[_0x5ae31c['model']['document']['getRootNames']()[0x0]]=_0x5ae31c['ui']['view']['editable']['element'];return _0x576988;}(_0x50f28f),_0x1cebaa=function(_0x22148e){let _0x8af096=0x0;for(const _0x14db69 of Object['values'](_0x22148e))_0x8af096=Math['max'](_0x8af096,_0x14db69['getBoundingClientRect']()['width']);let _0xf941ad=0x0;for(const _0x29fa5e of Object['values'](_0x22148e))_0xf941ad+=_0x29fa5e['getBoundingClientRect']()['height'];const _0x5a3903=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x45c9bc=Math['min'](_0xf941ad,_0x5a3903);return{'width':_0x8af096,'height':_0x45c9bc};}(_0x3b9784);_0x29a5cf['show']({'id':'finalContentPreview','title':o(_0x25014,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x25014,{'dialogRects':_0x1cebaa}),'onHide':()=>{_0x55341e['detachFromDom']();},'onShow':()=>{_0x50f28f['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x55eeef=>{const _0x352ebd=this['_standarizeRootsData'](_0x55eeef,_0x50f28f,_0x3b9784);_0x29a5cf['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x352ebd,_0x50f28f['config']['get']('trackChanges.preview.renderFunction'));}),_0x55341e=new _0x14366c(_0x25014,[_0x29a5cf['view']]),_0x55341e['attachToDom'](),_0x55341e['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x50f28f['once']('destroy',()=>{_0x55341e['detachFromDom']();});const _0x480c53=_0x29a5cf['view']['headerView']['class'];_0x29a5cf['view']['headerView']['class']=_0x480c53?_0x480c53+'\x20ck-reset_all':'ck-reset_all',_0x29a5cf['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x29a5cf['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x42c5c0=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x4183aa=_0x42c5c0['previewMode'],_0xdc94b1={};if('$labels'===_0x4183aa){for(const _0x55f739 of _0x42c5c0['getMergeFieldsIds']())_0xdc94b1[_0x55f739]=_0x42c5c0['getLabel'](_0x55f739)||_0x55f739;}else{const _0x24bf19='$defaultValues'===_0x4183aa?_0x42c5c0['getDefaultValues']():_0x42c5c0['getDataSetValues'](_0x4183aa,!0x0);for(const _0x238937 of Object['entries'](_0x24bf19)){const [_0x51feb0,_0x4f545a]=_0x238937;_0xdc94b1[_0x51feb0]=null!==_0x4f545a?_0x4f545a:_0x42c5c0['getLabel'](_0x51feb0)||_0x51feb0;}}return{'mergeFieldsData':_0xdc94b1};}['_standarizeRootsData'](_0x22e354,_0x6c86a3,_0x44da1a){let _0x3ebb02;if('string'==typeof _0x22e354){const _0x10a302=_0x6c86a3['model']['document']['getRootNames']()[0x0];_0x3ebb02={[_0x10a302]:_0x22e354};}else _0x3ebb02=_0x22e354;const _0x1cd6db=this['_fixMediaEmbeds'](_0x3ebb02,_0x6c86a3),_0x2deb93=function(_0x27874f,_0x1e7baf){for(const [_0x3a5883,_0x8122a2]of _0x27874f)_0x8122a2['classes']=_0x1e7baf[_0x3a5883]['classList']['value']['replace']('ck-focused','');return _0x27874f;}(this['_sortRoots'](_0x6c86a3)['reduce']((_0x1fafd0,_0x364e1c)=>(_0x1fafd0['push']([_0x364e1c,{'content':_0x1cd6db[_0x364e1c],'classes':''}]),_0x1fafd0),[]),_0x44da1a);return _0x2deb93;}['_fixMediaEmbeds'](_0x196b1f,_0x1561fe){if(!_0x1561fe['plugins']['has']('MediaEmbedEditing'))return _0x196b1f;const _0x239be2=_0x1561fe['plugins']['get']('MediaEmbedEditing');for(const [_0x582fc4,_0x3307f4]of Object['entries'](_0x196b1f)){const _0x19bfa6=document['createElement']('div');_0x19bfa6['innerHTML']=_0x3307f4,(_0x19bfa6['querySelectorAll']('figure.media')['forEach'](_0x437cd7=>{const _0x8baa6e=_0x437cd7['querySelector']('oembed');if(_0x8baa6e){const _0x3f774b=_0x8baa6e['getAttribute']('url');if(_0x3f774b){const _0x2617cc=_0x239be2['registry']['getMediaViewElement'](new _0x150e99(_0x1561fe['editing']['view']['document']),_0x3f774b,{'elementName':'','renderForEditingView':!0x0}),_0x2b2604=document['createElement']('div');_0x2b2604['classList']['add']('ck-media__wrapper'),_0x2617cc['render'](_0x2b2604,_0x1561fe['editing']['view']['domConverter']),_0x8baa6e['replaceWith'](_0x2b2604);}}}),_0x196b1f[_0x582fc4]=_0x19bfa6['innerHTML']);}return _0x196b1f;}['_sortRoots'](_0x22b610){if(!function(_0x30be93){return void 0x0!==_0x30be93['getRootsAttributes'];}(_0x22b610))return _0x22b610['model']['document']['getRootNames']();const _0x5de6dd=[],_0x16e9a1=new Map();for(const _0x4a8b1d of _0x22b610['model']['document']['getRootNames']()){const _0x30ddb3=_0x22b610['editing']['view']['getDomRoot'](_0x4a8b1d)['getClientRects']()['item'](0x0);_0x5de6dd['push'](_0x4a8b1d),_0x16e9a1['set'](_0x4a8b1d,_0x30ddb3);}return _0x5de6dd['sort']((_0x170abc,_0x4b7d74)=>{const _0xf17d3b=_0x16e9a1['get'](_0x170abc),_0x592177=_0x16e9a1['get'](_0x4b7d74);return _0xf17d3b['y']-_0x592177['y']||_0xf17d3b['x']-_0x592177['x'];}),_0x5de6dd;}}class te extends _0x441617{static get['requires'](){return[T,_0x3a6f70];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2456d9){super(_0x2456d9),_0x2456d9['commands']['add']('previewFinalContent',new re(this['editor'])),_0x2456d9['config']['define']('trackChanges.preview.renderFunction',(_0x40c2c0,_0x53f368)=>{for(const _0xc9a583 of _0x53f368)_0x40c2c0['appendChild'](_0xc9a583);});}}export{ms as BaseSuggestionThreadView,u as Suggestion,pe as SuggestionThreadView,fe as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};