@ckeditor/ckeditor5-track-changes 0.0.0-nightly-next-20250212.0 → 0.0.0-nightly-next-20250213.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (221) hide show
  1. package/build/track-changes.js +1 -1
  2. package/dist/index.js +3 -3
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/bg.js +1 -1
  12. package/dist/translations/bg.umd.js +1 -1
  13. package/dist/translations/bn.js +1 -1
  14. package/dist/translations/bn.umd.js +1 -1
  15. package/dist/translations/bs.js +1 -1
  16. package/dist/translations/bs.umd.js +1 -1
  17. package/dist/translations/ca.js +1 -1
  18. package/dist/translations/ca.umd.js +1 -1
  19. package/dist/translations/cs.js +1 -1
  20. package/dist/translations/cs.umd.js +1 -1
  21. package/dist/translations/da.js +1 -1
  22. package/dist/translations/da.umd.js +1 -1
  23. package/dist/translations/de-ch.js +1 -1
  24. package/dist/translations/de-ch.umd.js +1 -1
  25. package/dist/translations/de.js +1 -1
  26. package/dist/translations/de.umd.js +1 -1
  27. package/dist/translations/el.js +1 -1
  28. package/dist/translations/el.umd.js +1 -1
  29. package/dist/translations/en-au.js +1 -1
  30. package/dist/translations/en-au.umd.js +1 -1
  31. package/dist/translations/en-gb.js +1 -1
  32. package/dist/translations/en-gb.umd.js +1 -1
  33. package/dist/translations/en.js +1 -1
  34. package/dist/translations/en.umd.js +1 -1
  35. package/dist/translations/eo.js +1 -1
  36. package/dist/translations/eo.umd.js +1 -1
  37. package/dist/translations/es-co.js +1 -1
  38. package/dist/translations/es-co.umd.js +1 -1
  39. package/dist/translations/es.js +1 -1
  40. package/dist/translations/es.umd.js +1 -1
  41. package/dist/translations/et.js +1 -1
  42. package/dist/translations/et.umd.js +1 -1
  43. package/dist/translations/eu.js +1 -1
  44. package/dist/translations/eu.umd.js +1 -1
  45. package/dist/translations/fa.js +1 -1
  46. package/dist/translations/fa.umd.js +1 -1
  47. package/dist/translations/fi.js +1 -1
  48. package/dist/translations/fi.umd.js +1 -1
  49. package/dist/translations/fr.js +1 -1
  50. package/dist/translations/fr.umd.js +1 -1
  51. package/dist/translations/gl.js +1 -1
  52. package/dist/translations/gl.umd.js +1 -1
  53. package/dist/translations/gu.js +1 -1
  54. package/dist/translations/gu.umd.js +1 -1
  55. package/dist/translations/he.js +1 -1
  56. package/dist/translations/he.umd.js +1 -1
  57. package/dist/translations/hi.js +1 -1
  58. package/dist/translations/hi.umd.js +1 -1
  59. package/dist/translations/hr.js +1 -1
  60. package/dist/translations/hr.umd.js +1 -1
  61. package/dist/translations/hu.js +1 -1
  62. package/dist/translations/hu.umd.js +1 -1
  63. package/dist/translations/hy.js +1 -1
  64. package/dist/translations/hy.umd.js +1 -1
  65. package/dist/translations/id.js +1 -1
  66. package/dist/translations/id.umd.js +1 -1
  67. package/dist/translations/it.js +1 -1
  68. package/dist/translations/it.umd.js +1 -1
  69. package/dist/translations/ja.js +1 -1
  70. package/dist/translations/ja.umd.js +1 -1
  71. package/dist/translations/jv.js +1 -1
  72. package/dist/translations/jv.umd.js +1 -1
  73. package/dist/translations/kk.js +1 -1
  74. package/dist/translations/kk.umd.js +1 -1
  75. package/dist/translations/km.js +1 -1
  76. package/dist/translations/km.umd.js +1 -1
  77. package/dist/translations/kn.js +1 -1
  78. package/dist/translations/kn.umd.js +1 -1
  79. package/dist/translations/ko.js +1 -1
  80. package/dist/translations/ko.umd.js +1 -1
  81. package/dist/translations/ku.js +1 -1
  82. package/dist/translations/ku.umd.js +1 -1
  83. package/dist/translations/lt.js +1 -1
  84. package/dist/translations/lt.umd.js +1 -1
  85. package/dist/translations/lv.js +1 -1
  86. package/dist/translations/lv.umd.js +1 -1
  87. package/dist/translations/ms.js +1 -1
  88. package/dist/translations/ms.umd.js +1 -1
  89. package/dist/translations/nb.js +1 -1
  90. package/dist/translations/nb.umd.js +1 -1
  91. package/dist/translations/ne.js +1 -1
  92. package/dist/translations/ne.umd.js +1 -1
  93. package/dist/translations/nl.js +1 -1
  94. package/dist/translations/nl.umd.js +1 -1
  95. package/dist/translations/no.js +1 -1
  96. package/dist/translations/no.umd.js +1 -1
  97. package/dist/translations/oc.js +1 -1
  98. package/dist/translations/oc.umd.js +1 -1
  99. package/dist/translations/pl.js +1 -1
  100. package/dist/translations/pl.umd.js +1 -1
  101. package/dist/translations/pt-br.js +1 -1
  102. package/dist/translations/pt-br.umd.js +1 -1
  103. package/dist/translations/pt.js +1 -1
  104. package/dist/translations/pt.umd.js +1 -1
  105. package/dist/translations/ro.js +1 -1
  106. package/dist/translations/ro.umd.js +1 -1
  107. package/dist/translations/ru.js +1 -1
  108. package/dist/translations/ru.umd.js +1 -1
  109. package/dist/translations/si.js +1 -1
  110. package/dist/translations/si.umd.js +1 -1
  111. package/dist/translations/sk.js +1 -1
  112. package/dist/translations/sk.umd.js +1 -1
  113. package/dist/translations/sl.js +1 -1
  114. package/dist/translations/sl.umd.js +1 -1
  115. package/dist/translations/sq.js +1 -1
  116. package/dist/translations/sq.umd.js +1 -1
  117. package/dist/translations/sr-latn.js +1 -1
  118. package/dist/translations/sr-latn.umd.js +1 -1
  119. package/dist/translations/sr.js +1 -1
  120. package/dist/translations/sr.umd.js +1 -1
  121. package/dist/translations/sv.js +1 -1
  122. package/dist/translations/sv.umd.js +1 -1
  123. package/dist/translations/th.js +1 -1
  124. package/dist/translations/th.umd.js +1 -1
  125. package/dist/translations/ti.js +1 -1
  126. package/dist/translations/ti.umd.js +1 -1
  127. package/dist/translations/tk.js +1 -1
  128. package/dist/translations/tk.umd.js +1 -1
  129. package/dist/translations/tr.js +1 -1
  130. package/dist/translations/tr.umd.js +1 -1
  131. package/dist/translations/tt.js +1 -1
  132. package/dist/translations/tt.umd.js +1 -1
  133. package/dist/translations/ug.js +1 -1
  134. package/dist/translations/ug.umd.js +1 -1
  135. package/dist/translations/uk.js +1 -1
  136. package/dist/translations/uk.umd.js +1 -1
  137. package/dist/translations/ur.js +1 -1
  138. package/dist/translations/ur.umd.js +1 -1
  139. package/dist/translations/uz.js +1 -1
  140. package/dist/translations/uz.umd.js +1 -1
  141. package/dist/translations/vi.js +1 -1
  142. package/dist/translations/vi.umd.js +1 -1
  143. package/dist/translations/zh-cn.js +1 -1
  144. package/dist/translations/zh-cn.umd.js +1 -1
  145. package/dist/translations/zh.js +1 -1
  146. package/dist/translations/zh.umd.js +1 -1
  147. package/package.json +26 -26
  148. package/src/commands/acceptsuggestioncommand.js +1 -1
  149. package/src/commands/discardsuggestioncommand.js +1 -1
  150. package/src/commands/executeonallsuggestionscommand.js +1 -1
  151. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  152. package/src/commands/previewfinalcontentcommand.js +1 -1
  153. package/src/commands/trackchangescommand.js +1 -1
  154. package/src/index.js +1 -1
  155. package/src/integrations/aiassistant.js +1 -1
  156. package/src/integrations/alignment.js +1 -1
  157. package/src/integrations/basicstyles.js +1 -1
  158. package/src/integrations/blockquote.js +1 -1
  159. package/src/integrations/bookmark.js +1 -1
  160. package/src/integrations/casechange.js +1 -1
  161. package/src/integrations/ckbox.js +1 -1
  162. package/src/integrations/codeblock.js +1 -1
  163. package/src/integrations/comments.js +1 -1
  164. package/src/integrations/deletecommand.js +1 -1
  165. package/src/integrations/entercommand.js +1 -1
  166. package/src/integrations/findandreplace.js +1 -1
  167. package/src/integrations/font.js +1 -1
  168. package/src/integrations/formatpainter.js +1 -1
  169. package/src/integrations/heading.js +1 -1
  170. package/src/integrations/highlight.js +1 -1
  171. package/src/integrations/horizontalline.js +1 -1
  172. package/src/integrations/htmlembed.js +1 -1
  173. package/src/integrations/image.js +1 -1
  174. package/src/integrations/imagereplace.js +1 -1
  175. package/src/integrations/imagestyle.js +1 -1
  176. package/src/integrations/importword.js +1 -1
  177. package/src/integrations/indent.js +1 -1
  178. package/src/integrations/inputcommand.js +1 -1
  179. package/src/integrations/legacylist.js +1 -1
  180. package/src/integrations/legacylistproperties.js +1 -1
  181. package/src/integrations/link.js +1 -1
  182. package/src/integrations/list.js +1 -1
  183. package/src/integrations/listproperties.js +1 -1
  184. package/src/integrations/mediaembed.js +1 -1
  185. package/src/integrations/mention.js +1 -1
  186. package/src/integrations/mergefields.js +1 -1
  187. package/src/integrations/multilevellist.js +1 -1
  188. package/src/integrations/pagebreak.js +1 -1
  189. package/src/integrations/paragraph.js +1 -1
  190. package/src/integrations/removeformat.js +1 -1
  191. package/src/integrations/restrictededitingmode.js +1 -1
  192. package/src/integrations/shiftentercommand.js +1 -1
  193. package/src/integrations/standardeditingmode.js +1 -1
  194. package/src/integrations/style.js +1 -1
  195. package/src/integrations/table.js +1 -1
  196. package/src/integrations/tablecaption.js +1 -1
  197. package/src/integrations/tableclipboard.js +1 -1
  198. package/src/integrations/tablecolumnresize.js +1 -1
  199. package/src/integrations/tableheadings.js +1 -1
  200. package/src/integrations/tablemergesplit.js +1 -1
  201. package/src/integrations/tableofcontents.js +1 -1
  202. package/src/integrations/tableproperties.js +1 -1
  203. package/src/integrations/template.js +1 -1
  204. package/src/integrations/title.js +1 -1
  205. package/src/integrations/undo.js +1 -1
  206. package/src/integrations/uploadcare.js +1 -1
  207. package/src/integrations/utils.js +1 -1
  208. package/src/suggestion.js +2 -2
  209. package/src/suggestiondescriptionfactory.js +1 -1
  210. package/src/trackchanges.js +1 -1
  211. package/src/trackchangesdata.js +1 -1
  212. package/src/trackchangesediting.js +1 -1
  213. package/src/trackchangespreview.js +1 -1
  214. package/src/trackchangesui.js +1 -1
  215. package/src/ui/suggestioncontroller.js +2 -2
  216. package/src/ui/view/basesuggestionthreadview.js +1 -1
  217. package/src/ui/view/suggestionthreadview.js +1 -1
  218. package/src/ui/view/suggestionview.js +1 -1
  219. package/src/ui/view/trackchangespreviewview.js +1 -1
  220. package/src/utils/common-translations.js +1 -1
  221. 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 _0x2699b4,Plugin as _0x53ae92,PendingActions as _0xe8a11}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x3d4351,ObservableMixin as _0x26da1b,uid as _0x33987a,priorities as _0x9eec71,insertToPriorityArray as _0x2b1d38,logWarning as _0x2d4306,getEnvKeystrokeText as _0x3a2a25,FocusTracker as _0x3f3e84,KeystrokeHandler as _0x21acad,Collection as _0x3abf58}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x8f20bd,IconCancel as _0x297710,IconTrackChanges as _0x274568}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as Zt,View as _0x5297f1,ViewCollection as _0x2e2014,FocusCycler as _0x197fc3,ViewModel as _0x2e500b,createDropdown as _0xc838a8,SplitButtonView as _0x206658,addListToDropdown as _0x185cd5,MenuBarMenuView as _0x4e0aa7,MenuBarMenuListView as _0x2170a6,ListSeparatorView as _0x1a819b,MenuBarMenuListItemView as _0x3d208e,MenuBarMenuListItemButtonView as _0xbe4a96,BodyCollection as _0x5bf6bf,Dialog as _0xc3148a}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0xd79e0a,hashObject as _0x1c269b,surroundingMarkersDetector as _0x298a0a,FOCUS_ANNOTATION_KEYSTROKE as _0x3a9486,AriaDescriptionView as _0x5eb931,setupThreadKeyboardNavigation as _0x16eee3,trimHtml as ti,UserView as _0x25b38c,LateFocusButtonView as _0xd3f9ac,getDateTimeFormatter as _0x4e981b,getAllMarkersDomElementsSorted as _0x472501,sanitizeEditorConfig as _0x4681f7}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x11a90c,LiveRange as _0x7362da,LivePosition as _0x36d914,DowncastWriter as _0xc616a3}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0xc49cfd,toWidget as _0x5442e8}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x46ebd3,set as _0x53ca67,isEqual as _0x17e1e9,unset as _0x5e0f8b,omit as Et}from'es-toolkit/compat';import{Delete as _0x27e985,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x39beb8,ShiftEnter as _0x35e7df}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends _0x2699b4{['_enabledCommands'];constructor(_0x1f709b,_0x4fdc2c){super(_0x1f709b),this['_enabledCommands']=_0x4fdc2c,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 _0x43824e of this['editor']['commands']['commands']())_0x43824e['affectsData']&&!this['_enabledCommands']['has'](_0x43824e)&&_0x43824e['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x4794c6 of this['editor']['commands']['commands']())_0x4794c6['affectsData']&&!this['_enabledCommands']['has'](_0x4794c6)&&_0x4794c6['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x2699b4{['_suggestions'];constructor(_0x2b35a0,_0x32b381){super(_0x2b35a0),this['_suggestions']=_0x32b381,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5c583f){const _0x584912=this['_suggestions']['get'](_0x5c583f);if(!_0x584912)throw new _0x3d4351('track-changes-accept-suggestion-not-found',this);const _0x20efc1=_0x584912['getRanges']();this['editor']['model']['canEditAt'](_0x20efc1)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x584912);}}class R extends _0x2699b4{['_suggestions'];constructor(_0x519143,_0x46e24d){super(_0x519143),this['_suggestions']=_0x46e24d,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x11d2c5){const _0x5590da=this['_suggestions']['get'](_0x11d2c5);if(!_0x5590da)throw new _0x3d4351('track-changes-discard-suggestion-not-found',this);const _0x40b251=_0x5590da['getRanges']();this['editor']['model']['canEditAt'](_0x40b251)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x5590da);}}function ls(_0x2d5e06,_0x9ea59d){let _0x5a84e0='';return _0x5a84e0+=_0x2d5e06['split']('*')['map']((_0x219724,_0x7bfb2c)=>_0x7bfb2c%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x219724)+'</span>':nn(_0x219724))['join'](''),_0x9ea59d&&(_0x5a84e0+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x9ea59d['value']+'\x22\x20title=\x22'+_0x9ea59d['title']+'\x22></span>'),_0x5a84e0;}function nn(_0x4186f5){const _0x3eb65e=document['createElement']('span');return _0x3eb65e['innerText']=_0x4186f5,_0x3eb65e['innerHTML'];}function ts(_0x3b67e3){return _0x3b67e3['sort']((_0x116335,_0xc3290a)=>'deletion'==_0x116335['type']&&'deletion'!=_0xc3290a['type']?-0x1:'deletion'!=_0x116335['type']&&'deletion'==_0xc3290a['type']?0x1:0x0);}function Xt(_0x3afa9d,_0x4e642c){let _0x221519,_0x28bedb=0x0;const _0xdf66fe=[],_0x511019=_0x4e642c['schema'];for(;_0x28bedb<_0x3afa9d['length'];){const _0x4dc29d=_0x3afa9d[_0x28bedb],_0xda4e1c=_0x3afa9d[_0x28bedb+0x1];_0x221519||(_0x221519=_0x4e642c['createPositionBefore'](_0x4dc29d)),on(_0x4e642c,_0x4dc29d,_0xda4e1c)||(_0xdf66fe['push'](_0x4e642c['createRange'](_0x221519,_0x511019['isObject'](_0x4dc29d)?_0x4e642c['createPositionAfter'](_0x4dc29d):_0x4e642c['createPositionAt'](_0x4dc29d,'end'))),_0x221519=null),_0x28bedb++;}return _0xdf66fe;}function on(_0x59dc8e,_0x5059b5,_0x1d036f){if(!_0x1d036f)return!0x1;const _0x37faca=_0x59dc8e['createPositionAfter'](_0x5059b5),_0x52f9ee=_0x59dc8e['createPositionBefore'](_0x1d036f);return _0x37faca['isTouching'](_0x52f9ee);}function rs(_0x51a8c0,_0x39a9a8,_0x3a8f3f){for(;_0x3a8f3f['length'];){const _0x46ff10=_0x3a8f3f['splice'](0x0,0x64);_0x51a8c0['change'](()=>{for(const _0xf87f0c of _0x46ff10)_0xf87f0c['isInContent']&&_0x39a9a8['execute'](_0xf87f0c['id']);});}}class x extends _0x2699b4{['_command'];['_suggestions'];constructor(_0x6dffeb,_0x32e0b5,_0xd53713){super(_0x6dffeb),this['_command']=_0x32e0b5,this['_suggestions']=_0xd53713,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3fd39d=Array['from'](this['_suggestions']['values']())['some'](_0x132bb8=>_0x132bb8['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x3fd39d;}['execute'](){const _0x1dd9a0=ts(Array['from'](this['_suggestions']['values']()));for(const _0x5d982a of _0x1dd9a0){const _0x5eefdf=_0x5d982a['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5eefdf))return;}rs(this['editor']['model'],this['_command'],_0x1dd9a0);}}class E extends _0x2699b4{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x729add,_0x595039,_0x3c4e40){super(_0x729add),this['_command']=_0x595039,this['_suggestions']=_0x3c4e40,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x188731=this['editor']['model']['document']['selection'],_0x2b60b3=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x1d1d82,_0x3e092f){const _0x45e9fd=Array['from'](_0x1d1d82['getRanges']()),_0x22d223=new Set();for(const _0xf85ae of _0x3e092f)if(_0xf85ae['isInContent']){for(const _0x57d0e1 of _0x45e9fd)for(const _0x1aaac8 of _0xf85ae['getRanges']())(_0x57d0e1['isIntersecting'](_0x1aaac8)||_0x1d1d82['isCollapsed']&&!_0xf85ae['isMultiRange']&&_0xf85ae['next']&&_0x1aaac8['end']['isTouching'](_0x57d0e1['start']))&&_0x22d223['add'](_0xf85ae);}return _0x22d223;}(_0x188731,_0x2b60b3),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x232abc=ts(Array['from'](this['_selectedSuggestions']));for(const _0x379e41 of _0x232abc){const _0x4a4751=_0x379e41['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4a4751))return;}rs(this['editor']['model'],this['_command'],_0x232abc);}}class o extends/* #__PURE__ -- @preserve */
24
- _0x26da1b(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x4de20c,_0xb9b5ec){super(),this['id']=_0xb9b5ec['id'],this['type']=_0xb9b5ec['type'],this['subType']=_0xb9b5ec['subType']||null,this['author']=_0xb9b5ec['author'],this['creator']=_0xb9b5ec['creator']||_0xb9b5ec['author'],this['isExternal']=Boolean(_0xb9b5ec['attributes']&&_0xb9b5ec['attributes']['@external']),this['data']=null,this['_model']=_0x4de20c,this['_onAccept']=_0xb9b5ec['onAccept'],this['_onDiscard']=_0xb9b5ec['onDiscard'],this['_onAttributesChange']=_0xb9b5ec['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0xb9b5ec['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 _0x434cde=this;for(;_0x434cde['previous'];)_0x434cde=_0x434cde['previous'];return _0x434cde;}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'](_0x45810e){this['_markerNames']['add'](_0x45810e);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x1e7329=>this['_model']['markers']['get'](_0x1e7329))['filter'](_0x2635a6=>_0x2635a6);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x4f7c8b=>{for(const _0x311849 of this['getMarkers']())_0x4f7c8b['removeMarker'](_0x311849);}),this['_markerNames']['clear']();}['removeMarker'](_0x5814bb){this['_model']['change'](_0x4de677=>{_0x4de677['removeMarker'](_0x5814bb);}),this['_markerNames']['delete'](_0x5814bb);}['addRange'](_0x1d9f82){const _0x1ccf6e='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x1ccf6e),this['_model']['change'](_0x3f406f=>{_0x3f406f['addMarker'](_0x1ccf6e,{'range':_0x1d9f82,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x200071){for(const _0x542d65 of this['getRanges']())if(_0x542d65['isIntersecting'](_0x200071))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0xabb97e=>_0xabb97e['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x2854af,_0x2b23cf)=>[..._0x2854af,..._0x2b23cf['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x41ef1c=this['getRanges']();if(0x1!=_0x41ef1c['length'])return null;const _0x2d2f8b=_0x41ef1c[0x0],_0x3d59b0=_0x2d2f8b['start']['nodeAfter'],_0x55e1ff=_0x2d2f8b['end']['nodeBefore'];return _0x3d59b0 instanceof _0x11a90c?_0x3d59b0!=_0x55e1ff?null:_0x3d59b0: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 _0x447753=[];let _0x26ba63=this['head'];for(;_0x26ba63;)_0x447753['push'](_0x26ba63),_0x26ba63=_0x26ba63['next'];return _0x447753;}['setAttribute'](_0x5a9c71,_0x1ce070){const _0x12bd32=_0x46ebd3(this['attributes']);_0x53ca67(_0x12bd32,_0x5a9c71,_0x1ce070),_0x17e1e9(_0x12bd32,this['attributes'])||(this['attributes']=_0x12bd32,this['_onAttributesChange'](_0x12bd32));}['removeAttribute'](_0xea21c6){const _0x1877f3=_0x46ebd3(this['attributes']);_0x5e0f8b(_0x1877f3,_0xea21c6),_0x17e1e9(_0x1877f3,this['attributes'])||(this['attributes']=_0x1877f3,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 _0x33987a()['substr'](0x1,0x5);}}function c(_0x445258,_0x161206,_0x36a579){const _0x46ccb5=_0x445258['t'],t=_0x445258['t'];switch(_0x161206){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',_0x36a579);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x36a579);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x36a579);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x36a579);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x36a579);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',_0x36a579);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x36a579);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',_0x36a579);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x36a579);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x36a579);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x36a579);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x36a579);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x36a579);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x36a579);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x36a579);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x36a579);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x36a579);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x36a579);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x36a579);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x36a579);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x36a579);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x36a579);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x36a579);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x36a579);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'},_0x36a579);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x36a579);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x36a579);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x36a579);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x36a579);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x36a579);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'},_0x36a579);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x36a579);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x36a579);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x36a579);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x36a579);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'},_0x36a579);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x36a579);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'},_0x36a579);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'},_0x36a579);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x36a579);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'},_0x36a579);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x36a579);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'},_0x36a579);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x36a579);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x36a579);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'},_0x36a579);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x36a579);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 _0x46ccb5({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x36a579);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x46ccb5({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x36a579);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x36a579);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'},_0x36a579);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'},_0x36a579);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'},_0x36a579);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x161206;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x173372,_0x5ddfac){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x173372,this['_locale']=_0x5ddfac;}['getDescriptions'](_0x40cbd0){const _0x3728e8=[],_0x1e5fbb=new Set(),_0xe36461=new Set();for(let _0x4565ee=0x0;_0x4565ee<_0x40cbd0['length'];_0x4565ee++){const _0x527b7d=_0x40cbd0[_0x4565ee];if(!_0x527b7d['isInContent'])continue;const _0x137cc7=this['_handleCustomCallbackDescription'](_0x527b7d);if(_0x137cc7){if(null!=_0x527b7d['subType']){if(_0x1e5fbb['has'](_0x527b7d['subType']))continue;_0x1e5fbb['add'](_0x527b7d['subType']);}_0x3728e8['push'](_0x137cc7);}else{if('attribute'!=_0x527b7d['type'])'insertion'!=_0x527b7d['type']&&'deletion'!=_0x527b7d['type']||this['_handleInsertRemoveSuggestionDescription'](_0x3728e8,_0x527b7d,_0x40cbd0[_0x4565ee+0x1]);else{const _0x161383=_0x527b7d['data']['key'];if(_0xe36461['has'](_0x161383))continue;_0xe36461['add'](_0x527b7d['data']['key']),_0x161383==u?this['_handleRenameSuggestionDescription'](_0x3728e8,_0x527b7d):this['_handleAttributeSuggestionDescription'](_0x3728e8,_0x527b7d);}}}return this['_resolveDescriptionItems'](_0x3728e8);}['registerDescriptionCallback'](_0x3823dd){this['_customCallbacks']['push'](_0x3823dd);}['registerElementLabel'](_0x2a400d,_0x487465,_0x56ee06=_0x9eec71['normal']){'function'==typeof _0x2a400d?_0x2b1d38(this['_itemLabelsCallbacks'],{'matchingCallback':_0x2a400d,'label':_0x487465,'priority':_0x56ee06}):this['_itemLabels']['set'](_0x2a400d,_0x487465);}['registerAttributeLabel'](_0x27ca9b,_0x518b5a){this['_attributeLabels']['set'](_0x27ca9b,_0x518b5a);}['getItemLabel'](_0x825058,_0x23ec8a=0x1){let _0x26d345;for(const _0x539a94 of this['_itemLabelsCallbacks'])if(_0x539a94['matchingCallback'](_0x825058)){_0x26d345=_0x539a94['label'];break;}return _0x26d345||(_0x26d345=this['_itemLabels']['get'](_0x825058['name'])),_0x26d345?_0x26d345(_0x23ec8a):0x1!==_0x23ec8a?_0x23ec8a+'\x20'+_0x825058['name']+'s':''+_0x825058['name'];}['_addDescriptionItems'](_0x22b9ee,_0x4dc5d6){const _0x2daf35=_0x4dc5d6['getFirstRange']()['getWalker'](),_0x5936fd='insertion'==_0x4dc5d6['type']?'add':'remove';for(const _0x5d58a1 of _0x2daf35){const _0x2adece=_0x5d58a1['item'],_0x161266=_0x22b9ee[_0x22b9ee['length']-0x1];if(_0x2adece['is']('$textProxy'))_0x161266&&_0x161266['type']['indexOf']('Container')>-0x1&&_0x22b9ee['pop'](),_0x161266&&'text'==_0x161266['type']?_0x161266[_0x5936fd]+=_0x2adece['data']:_0x22b9ee['push']({'type':'text','add':'add'==_0x5936fd?_0x2adece['data']:'','remove':'remove'==_0x5936fd?_0x2adece['data']:''});else{if(this['_schema']['isObject'](_0x2adece)){const _0x5bfd4d=_0x2adece;if(_0x161266&&_0x161266['type']['indexOf']('Container')>-0x1&&_0x22b9ee['pop'](),'elementEnd'==_0x5d58a1['type'])continue;_0x161266&&_0x161266['type']==_0x5936fd+'Object'&&_0x161266['element']['name']==_0x5bfd4d['name']?_0x161266['quantity']++:_0x22b9ee['push']({'type':_0x5936fd+'Object','element':_0x5bfd4d,'quantity':0x1}),_0x2daf35['skip'](_0x48235c=>!('elementEnd'==_0x48235c['type']&&_0x48235c['item']==_0x2adece));}else{if(this['_schema']['checkChild'](_0x2adece,'$text')||_0x2adece['is']('element','softBreak')){const _0x458e20=_0x2adece;if('add'==_0x5936fd&&'elementStart'==_0x5d58a1['type']||'remove'==_0x5936fd&&'elementEnd'==_0x5d58a1['type'])continue;if(_0x161266&&-0x1==_0x161266['type']['indexOf']('Container')){'text'==_0x161266['type']&&(_0x161266[_0x5936fd]+='\x0a');continue;}let _0x43f1d6;if(_0x43f1d6='add'==_0x5936fd?_0x458e20['nextSibling']&&!this['_schema']['isObject'](_0x458e20['nextSibling'])?_0x458e20['nextSibling']:null:_0x458e20['previousSibling']&&!this['_schema']['isObject'](_0x458e20['previousSibling'])?_0x458e20['previousSibling']:null,_0x458e20['isEmpty']||_0x43f1d6&&_0x43f1d6['isEmpty']){const _0x35a29e=_0x43f1d6&&_0x43f1d6['isEmpty']?_0x43f1d6:_0x458e20;_0x161266&&_0x161266['type']==_0x5936fd+'EmptyContainer'&&_0x161266['element']['name']==_0x35a29e['name']?_0x161266['quantity']++:_0x22b9ee['push']({'type':_0x5936fd+'EmptyContainer','element':_0x35a29e,'quantity':0x1});}else _0x22b9ee['push']({'type':_0x5936fd+'Container','element':_0x458e20});}}}}}['_resolveDescriptionItems'](_0xe74452){const _0x383897=this['_locale'],_0x399312=[],_0x2ca003=[],_0x5ba6ae=[];for(const _0x160e2f of _0xe74452)switch(_0x160e2f['type']){case'text':if(_0x160e2f['add']=_0x160e2f['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x160e2f['remove']=_0x160e2f['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x160e2f['add']&&''!=_0x160e2f['remove']){_0x399312['push']({'type':'replace','content':c(_0x383897,'REPLACE_TEXT',['\x22'+_0x160e2f['remove']+'\x22','\x22'+_0x160e2f['add']+'\x22'])});continue;}if(null!=_0x160e2f['add']['match'](/^ +$/)){_0x399312['push']({'type':'insertion','content':c(_0x383897,'*Insert:*\x20%0',c(_0x383897,'ELEMENT_SPACE',_0x160e2f['add']['length']))});continue;}if(null!=_0x160e2f['remove']['match'](/^ +$/)){_0x399312['push']({'type':'deletion','content':c(_0x383897,'*Remove:*\x20%0',c(_0x383897,'ELEMENT_SPACE',_0x160e2f['remove']['length']))});continue;}if(''!=_0x160e2f['add']){_0x399312['push']({'type':'insertion','content':c(_0x383897,'*Insert:*\x20%0','\x22'+_0x160e2f['add']+'\x22')});continue;}_0x399312['push']({'type':'deletion','content':c(_0x383897,'*Remove:*\x20%0','\x22'+_0x160e2f['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x399312['push']({'type':'insertion','content':c(_0x383897,'*Insert:*\x20%0',this['getItemLabel'](_0x160e2f['element'],_0x160e2f['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x399312['push']({'type':'deletion','content':c(_0x383897,'*Remove:*\x20%0',this['getItemLabel'](_0x160e2f['element'],_0x160e2f['quantity']))});continue;case'addContainer':_0x399312['push']({'type':'insertion','content':c(_0x383897,'*Split:*\x20%0',this['getItemLabel'](_0x160e2f['element'],_0x160e2f['quantity']))});continue;case'removeContainer':_0x399312['push']({'type':'deletion','content':c(_0x383897,'*Merge:*\x20%0',this['getItemLabel'](_0x160e2f['element'],_0x160e2f['quantity']))});continue;case'addFormat':_0x2ca003['push'](_0x160e2f['key']);continue;case'removeFormat':_0x5ba6ae['push'](_0x160e2f['key']);continue;default:_0x399312['push'](_0x160e2f);}if(_0x2ca003['length']){const _0x5a3f36=_0x2ca003['map'](_0x17458a=>this['_attributeLabels']['has'](_0x17458a)?this['_attributeLabels']['get'](_0x17458a):_0x17458a)['join'](',\x20');_0x399312['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x5a3f36)});}if(_0x5ba6ae['length']){const _0xfcb476=_0x5ba6ae['map'](_0x5aaed0=>this['_attributeLabels']['has'](_0x5aaed0)?this['_attributeLabels']['get'](_0x5aaed0):_0x5aaed0)['join'](',\x20');_0x399312['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0xfcb476)});}return _0x399312;}['_handleCustomCallbackDescription'](_0x229eac){for(const _0x1c8987 of this['_customCallbacks']){const _0x2a824b=_0x1c8987(_0x229eac);if(_0x2a824b&&'type'in _0x2a824b)return _0x2a824b;}}['_handleAttributeSuggestionDescription'](_0x146db3,_0x1c1381){const _0x5d8b29=_0x1c1381['data'],_0x5658c1=void 0x0===_0x5d8b29['newValue']?'removeFormat':'addFormat';_0x146db3['push']({'type':_0x5658c1,'key':_0x5d8b29['key']});}['_handleRenameSuggestionDescription'](_0x137400,_0x35ab5d){_0x137400['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x35ab5d['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x47e149,_0x3432a9,_0x2444c2){if(this['_addDescriptionItems'](_0x47e149,_0x3432a9),_0x2444c2&&_0x2444c2['getFirstRange']()&&!_0x3432a9['getFirstRange']()['end']['isEqual'](_0x2444c2['getFirstRange']()['start'])){const _0x11f32e=_0x47e149[_0x47e149['length']-0x1],_0x42e749='insertion'==_0x3432a9['type']?'add':'remove';_0x11f32e&&'text'==_0x11f32e['type']&&(_0x11f32e[_0x42e749]+='\x0a');}}}class U extends _0x53ae92{['afterInit'](){const _0x276d9e=this['editor'],_0xba4c06=_0x276d9e['plugins']['get']('TrackChangesEditing');_0x276d9e['commands']['get']('showAIAssistant')&&_0xba4c06['enableCommand']('showAIAssistant');}}class V extends _0x53ae92{['afterInit'](){const _0x504fec=this['editor'],_0x55a0f6=_0x504fec['locale'];if(!_0x504fec['plugins']['has']('AlignmentEditing'))return;const _0x4c6ad6=_0x504fec['plugins']['get']('TrackChangesEditing');_0x4c6ad6['enableDefaultAttributesIntegration']('alignment'),_0x4c6ad6['registerBlockAttribute']('alignment'),_0x4c6ad6['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x55a0f6,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3a76d3=this['editor'],_0x1ce5ac=_0x3a76d3['locale'];_0x3a76d3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xb1aac9=>{if('formatBlock'!=_0xb1aac9['type'])return;const {data:_0xbe0c71}=_0xb1aac9;if(_0xbe0c71&&'alignment'==_0xbe0c71['commandName']){const _0x25f98b=_0xbe0c71['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x1ce5ac,'*Format:*\x20%0',function(_0x370b26){switch(_0x370b26){case'left':return c(_0x1ce5ac,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x1ce5ac,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x1ce5ac,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x1ce5ac,'FORMAT_JUSTIFY_TEXT');}}(_0x25f98b))};}});}}const Qt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x53ae92{['afterInit'](){const _0x4fa6e3=this['editor'],_0x31c3e4=_0x4fa6e3['plugins']['get']('TrackChangesEditing'),_0x209e58=_0x4fa6e3['locale'];for(const _0x112da9 of Qt){if(!_0x4fa6e3['plugins']['has'](_0x112da9))continue;const _0x222b57=_0x112da9['slice'](0x0,-0x7)['toLowerCase'](),_0x2f99ea='FORMAT_'+_0x222b57['toUpperCase']();_0x31c3e4['enableDefaultAttributesIntegration'](_0x222b57),_0x31c3e4['registerInlineAttribute'](_0x222b57),_0x31c3e4['descriptionFactory']['registerAttributeLabel'](_0x222b57,c(_0x209e58,_0x2f99ea));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4fbe7a=this['editor'],_0x347a52=_0x4fbe7a['locale'],_0x267250=_0x4fbe7a['plugins']['get']('TrackChangesEditing');function _0x136496(_0x2d3e6d,_0x305dac){_0x267250['descriptionFactory']['registerDescriptionCallback'](_0x18d288=>{if('formatInline'!=_0x18d288['type'])return;const {data:_0x39394a}=_0x18d288;return _0x39394a&&_0x39394a['commandName']===_0x2d3e6d?_0x39394a['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x347a52,'*Format:*\x20%0',_0x305dac)}:{'type':'format','content':c(_0x347a52,'*Remove\x20format:*\x20%0',_0x305dac)}:void 0x0;});}_0x136496('bold',c(_0x347a52,'FORMAT_BOLD')),_0x136496('italic',c(_0x347a52,'FORMAT_ITALIC')),_0x136496('underline',c(_0x347a52,'FORMAT_UNDERLINE')),_0x136496('code',c(_0x347a52,'FORMAT_CODE')),_0x136496('strikethrough',c(_0x347a52,'FORMAT_STRIKETHROUGH')),_0x136496('subscript',c(_0x347a52,'FORMAT_SUBSCRIPT')),_0x136496('superscript',c(_0x347a52,'FORMAT_SUPERSCRIPT'));}}class G extends _0x53ae92{['afterInit'](){const _0x2efce5=this['editor'],_0x1ab3dc=_0x2efce5['locale'];if(!_0x2efce5['plugins']['has']('BlockQuoteEditing'))return;const _0x3b33cd=_0x2efce5['plugins']['get']('TrackChangesEditing'),_0x55e0aa=this['editor']['commands']['get']('blockQuote');_0x3b33cd['enableCommand']('blockQuote',(_0x4e3933,_0x3be6c7={})=>{const _0x4b406c=this['editor']['model']['document']['selection'],_0x51ada5=_0x3be6c7&&void 0x0!==_0x3be6c7['forceValue']?_0x3be6c7['forceValue']:!_0x55e0aa['value'];let _0x1a4300=[];if(_0x51ada5){const _0x4bc6d3=Array['from'](_0x4b406c['getSelectedBlocks']())['filter'](_0x3a8db9=>Yt(_0x3a8db9)||function(_0x59b68d,_0x17aef6){const _0x2cc66c=_0x17aef6['checkChild'](_0x59b68d['parent'],'blockQuote'),_0x5cfaef=_0x17aef6['checkChild'](['$root','blockQuote'],_0x59b68d);return _0x2cc66c&&_0x5cfaef;}(_0x3a8db9,this['editor']['model']['schema']));_0x1a4300=Xt(_0x4bc6d3,_0x2efce5['model']);}else{const _0x22bf98=Array['from'](_0x4b406c['getSelectedBlocks']())['filter'](_0x279dee=>Yt(_0x279dee));_0x1a4300=Xt(_0x22bf98,_0x2efce5['model']);}_0x2efce5['model']['change'](()=>{for(const _0x16ee15 of _0x1a4300)_0x3b33cd['markBlockFormat'](_0x16ee15,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x51ada5}]});});}),_0x3b33cd['descriptionFactory']['registerDescriptionCallback'](_0x52cb22=>{const {data:_0x177d7d}=_0x52cb22;if(_0x177d7d&&'blockQuote'==_0x177d7d['commandName']){const _0x308d32=c(_0x1ab3dc,'ELEMENT_BLOCK_QUOTE');return _0x177d7d['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x1ab3dc,'*Set\x20format:*\x20%0',_0x308d32)}:{'type':'format','content':c(_0x1ab3dc,'*Remove\x20format:*\x20%0',_0x308d32)};}});}}function Yt(_0x3cb39e){return'blockQuote'==_0x3cb39e['parent']['name'];}class L extends _0x53ae92{['afterInit'](){const _0x86a8eb=this['editor'],_0x23b107=_0x86a8eb['locale'],_0x402b50=_0x86a8eb['plugins']['get']('TrackChangesEditing');_0x86a8eb['plugins']['has']('BookmarkEditing')&&(_0x402b50['enableCommand']('insertBookmark'),_0x402b50['enableDefaultAttributesIntegration']('updateBookmark'),_0x402b50['registerBlockAttribute']('bookmarkId'),_0x402b50['descriptionFactory']['registerDescriptionCallback'](_0x4b0776=>{if('insertion'!=_0x4b0776['type']&&'deletion'!=_0x4b0776['type']&&'attribute'!=_0x4b0776['type'])return;const _0x57db06=_0x4b0776['getContainedElement']();if(null==_0x57db06)return;if(!_0x57db06['is']('element','bookmark'))return;const _0xb47439=_0x57db06['getAttribute']('bookmarkId');if('insertion'==_0x4b0776['type'])return{'type':'insertion','content':c(_0x23b107,'*Insert:*\x20%0','\x22'+_0xb47439+'\x22\x20'+c(_0x23b107,'ELEMENT_BOOKMARK'))};if('deletion'==_0x4b0776['type'])return{'type':'deletion','content':c(_0x23b107,'*Remove:*\x20%0','\x22'+_0xb47439+'\x22\x20'+c(_0x23b107,'ELEMENT_BOOKMARK'))};const {data:_0x129ea3}=_0x4b0776;if(!_0x129ea3||'bookmarkId'!=_0x129ea3['key'])return;return{'type':'format','content':c(_0x23b107,'*Set\x20bookmark:*\x20%0','\x22'+_0x129ea3['newValue']+'\x22')};}));}}class J extends _0x53ae92{['afterInit'](){const _0x2d3c16=this['editor'];_0x2d3c16['plugins']['has']('CaseChange')&&(_0x2d3c16['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x2d3c16['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x2d3c16['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x53ae92{['afterInit'](){const _0x543d7f=this['editor'];_0x543d7f['commands']['get']('ckbox')&&_0x543d7f['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x53ae92{['afterInit'](){const _0x23ceff=this['editor'];if(!_0x23ceff['plugins']['has']('CodeBlock'))return;const _0x55db41=_0x23ceff['plugins']['get']('TrackChangesEditing'),_0x2e5684=_0x23ceff['locale'],_0x6114ac=_0x23ceff['config']['get']('codeBlock')['languages'],_0x249821=_0x23ceff['commands']['get']('codeBlock');_0x55db41['enableCommand']('indentCodeBlock'),_0x55db41['enableCommand']('outdentCodeBlock'),_0x55db41['enableCommand']('codeBlock',(_0x14680a,_0x4cb19d={})=>{const _0x54f9cf=_0x23ceff['model'],_0x5b5565=_0x23ceff['model']['document']['selection'],_0x4fbfa9=_0x4cb19d&&void 0x0!==_0x4cb19d['forceValue']?_0x4cb19d['forceValue']:!_0x249821['value'];let _0x2b74fe;_0x4cb19d['language']||(_0x4cb19d['language']=_0x6114ac[0x0]['language']),_0x2b74fe=_0x4fbfa9?Array['from'](_0x5b5565['getSelectedBlocks']())['filter'](_0x159df9=>oo(_0x159df9)||function(_0x4db4cf,_0x2fddcf){if(_0x4db4cf['is']('rootElement')||_0x2fddcf['isLimit'](_0x4db4cf))return!0x1;return _0x2fddcf['checkChild'](_0x4db4cf['parent'],'codeBlock');}(_0x159df9,_0x54f9cf['schema'])):Array['from'](_0x5b5565['getSelectedBlocks']())['filter'](_0x4fb2d7=>oo(_0x4fb2d7));const _0x290455=Xt(_0x2b74fe,_0x54f9cf);_0x54f9cf['change'](()=>{for(const _0x47836e of _0x290455)_0x55db41['markBlockFormat'](_0x47836e,{'commandName':'codeBlock','commandParams':[{..._0x4cb19d,'forceValue':_0x4fbfa9}],'formatGroupId':'blockName'});});}),(_0x55db41['descriptionFactory']['registerElementLabel']('codeBlock',_0x41c6c5=>c(_0x2e5684,'ELEMENT_CODE_BLOCK',_0x41c6c5)),_0x55db41['descriptionFactory']['registerDescriptionCallback'](_0x4dab37=>{if('formatBlock'!=_0x4dab37['type'])return;const _0x163334=_0x2e5684['t'],{data:_0x567ae4}=_0x4dab37;if(!_0x567ae4||'codeBlock'!=_0x567ae4['commandName'])return;const _0xada14=_0x567ae4['commandParams'][0x0]['language'],_0x293d56=_0x163334(_0x6114ac['find'](_0x10ad23=>_0x10ad23['language']===_0xada14)['label'])['toLowerCase']();return _0x567ae4['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x2e5684,'*Set\x20format:*\x20%0',c(_0x2e5684,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x293d56+')')}:{'type':'format','content':c(_0x2e5684,'*Remove\x20format:*\x20%0',c(_0x2e5684,'ELEMENT_CODE_BLOCK',0x1))};}));}}function oo(_0x1ffecf){return'codeBlock'==_0x1ffecf['name'];}class q extends _0x53ae92{['afterInit'](){const _0x2034c7=this['editor'];if(!_0x2034c7['plugins']['has']('CommentsEditing'))return;_0x2034c7['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function no(_0x215951,_0x391360,_0x4dc630){const _0x38aa22=[];for(const _0x5ed86c of _0x391360['getItems']())_0x5ed86c['hasAttribute'](_0x215951)&&_0x38aa22['push'](_0x4dc630['createRangeOn'](_0x5ed86c));return _0x38aa22;}function De(_0xc8f7eb,_0x3b85dc,{showActiveMarker:_0x106872=!0x0}={}){const _0x17c13e=_0xc8f7eb['plugins']['get']('TrackChangesEditing');return(_0x9ef24d,_0x2f249b,_0x3b9a82)=>{if(!_0x3b9a82['consumable']['test'](_0x2f249b['markerRange'],_0x9ef24d['name']))return;const _0x9dc369=_0x2f249b['markerRange']['getWalker'](),_0x107aa5=_0x2f249b['markerRange']['start'],_0xf4150b=_0xc8f7eb['model']['schema'];let _0x19e9a1=null,_0x950ce7=null,_0x484845=!0x1,_0x232993=!0x1;for(const _0x4bf9a7 of _0x9dc369){const _0x30a874=_0x4bf9a7['item'];_0x484845=_0x484845||_0xf4150b['isContent'](_0x30a874);const _0x332d15=_0x3b9a82['mapper']['toViewElement'](_0x30a874);if(_0x332d15&&_0x332d15['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4bf9a7['type']&&(_0xf4150b['isBlock'](_0x30a874)&&!_0xf4150b['isLimit'](_0x30a874)&&(_0x30a874['nextSibling']||_0x107aa5['isAtEnd']?_0x19e9a1&&_0x19e9a1['parent']==_0x30a874||(_0x19e9a1=_0x30a874,_0x5a5522(_0x4bf9a7['previousPosition']),_0x232993=!0x0):_0x950ce7=_0x950ce7||_0x4bf9a7['previousPosition']));}function _0x5a5522(_0x2a88a0){const {authorId:_0x4f39ff}=_0x17c13e['_splitMarkerName'](_0x2f249b['markerName']),_0x5cdce7=_0x3b9a82['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3b85dc,'data-author-id':_0x4f39ff}),_0x24b3c0=_0x3b9a82['mapper']['toViewPosition'](_0x2a88a0);_0x106872&&_0x17c13e['activeMarkers']['includes'](_0x2f249b['markerName'])&&_0x3b9a82['writer']['addClass']('ck-suggestion-marker--active',_0x5cdce7),_0x3b9a82['writer']['insert'](_0x24b3c0,_0x5cdce7),_0x3b9a82['mapper']['bindElementToMarker'](_0x5cdce7,_0x2f249b['markerName']);}_0x484845||_0x232993||!_0x950ce7||_0x5a5522(_0x950ce7);};}class z extends _0x53ae92{static get['requires'](){return[_0x27e985];}['init'](){const _0x2da285=this['editor'],_0x57d240=_0x2da285['plugins']['get']('TrackChangesEditing');_0x57d240['enableCommand']('delete');const _0x2516d4=_0x2da285['commands']['get']('deleteForward');_0x57d240['enableCommand']('deleteForward',(_0x506332,_0x255afa={})=>{const _0x32b11c=_0x2da285['model']['createSelection'](_0x2da285['model']['document']['selection']);_0x32b11c['isCollapsed']&&_0x2da285['model']['modifySelection'](_0x32b11c,{'direction':'forward','unit':_0x255afa['unit']});const _0x1a4222=_0x32b11c['getFirstRange'](),_0x4db71b=_0x7362da['fromRange'](_0x1a4222);let _0x5dbf04;_0x506332(_0x255afa),_0x5dbf04='$graveyard'==_0x4db71b['root']['rootName']?_0x2da285['model']['createRange'](_0x1a4222['start']):_0x2da285['model']['createRange'](_0x4db71b['start'],_0x4db71b['end']),_0x4db71b['detach'](),_0x2da285['model']['enqueueChange'](_0x2516d4['buffer']['batch'],_0x17021f=>{_0x2516d4['buffer']['lock'](),_0x17021f['setSelection'](_0x17021f['createRange'](_0x5dbf04['end'])),_0x2516d4['buffer']['unlock']();});}),_0x2da285['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x2da285,'merge'),{'priority':'high'}),_0x2da285['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x34d0e0,_0x1ec797,_0xad5f10)=>{_0xad5f10['options']['showSuggestionHighlights']&&De(_0x2da285,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x34d0e0,_0x1ec797,_0xad5f10);},{'priority':'high'}),_0x2da285['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x318cda,_0x18887b,_0xba3322)=>{const _0x45c113=_0xba3322['mapper']['markerNameToElements'](_0x18887b['markerName']);if(_0x45c113){for(const _0x21b54b of _0x45c113)_0x21b54b['is']('uiElement')&&(_0xba3322['mapper']['unbindElementFromMarkerName'](_0x21b54b,_0x18887b['markerName']),_0xba3322['writer']['remove'](_0x21b54b));}},{'priority':'high'});}}class W extends _0x53ae92{['afterInit'](){const _0x1e6a8c=this['editor'];if(!_0x1e6a8c['plugins']['has']('ListEditing'))return;const _0x47055a=_0x1e6a8c['locale'],_0x4b38f8=_0x1e6a8c['plugins']['get']('TrackChangesEditing'),_0x57261a=_0x1e6a8c['plugins']['has']('TodoListEditing'),_0x146c6c=!!_0x1e6a8c['config']['get']('list.multiBlock');function _0xd2a890(_0x4490ab){return{'type':'format','content':''+c(_0x47055a,'*Set\x20format:*\x20%0',_0x4490ab)};}function _0xa7f148(_0x4a336e){return{'type':'format','content':''+c(_0x47055a,'*Remove\x20format:*\x20%0',_0x4a336e)};}_0x4b38f8['enableDefaultAttributesIntegration']('numberedList'),_0x4b38f8['enableDefaultAttributesIntegration']('bulletedList'),_0x4b38f8['enableDefaultAttributesIntegration']('customNumberedList'),_0x4b38f8['enableDefaultAttributesIntegration']('customBulletedList'),_0x4b38f8['enableDefaultAttributesIntegration']('indentList'),_0x4b38f8['enableDefaultAttributesIntegration']('outdentList'),_0x4b38f8['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x4b38f8['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x4b38f8['registerBlockAttribute']('listItemId'),_0x4b38f8['registerBlockAttribute']('listType'),_0x4b38f8['registerBlockAttribute']('listIndent'),_0x146c6c&&(_0x4b38f8['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x4b38f8['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x57261a&&(_0x4b38f8['enableDefaultAttributesIntegration']('todoList'),_0x4b38f8['enableDefaultAttributesIntegration']('checkTodoList'),_0x4b38f8['registerBlockAttribute']('todoListChecked'),_0x4b38f8['descriptionFactory']['registerDescriptionCallback'](_0x550d74=>{const {data:_0x57b6eb}=_0x550d74;if(_0x57b6eb&&'todoListChecked'==_0x57b6eb['key'])return{'type':'format','content':_0x57b6eb['newValue']?c(_0x47055a,'*Check\x20item*'):c(_0x47055a,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x3f0df1=>{if(_0x3f0df1['batch']['isUndo'])return!0x1;let _0x1984e8=!0x1;const _0xddb77c=_0x4b38f8['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x371b62=>'todoListChecked'===_0x4b38f8['_getAttributeKey'](_0x371b62));for(const _0x46db92 of _0xddb77c){'todo'!=_0x46db92['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x4b38f8['_findSuggestions'](_0x46db92['getFirstRange'](),'attribute')['find'](_0x59ceb1=>'listType'===_0x4b38f8['_getAttributeKey'](_0x59ceb1['suggestion']))||(_0x3f0df1['removeMarker'](_0x46db92['getFirstMarker']()),_0x1984e8=!0x0));}return _0x1984e8;})),_0x4b38f8['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x47055a,'FORMAT_INDENT'));const _0x3c687e={'type':'format','content':''};_0x4b38f8['descriptionFactory']['registerDescriptionCallback'](_0x9fe488=>{const {data:_0x179acb}=_0x9fe488;if(!_0x179acb||'listType'!=_0x179acb['key'])return;let _0x57ae32=_0x9fe488['head'];for(;_0x57ae32;){if(_0x57ae32['data']&&(('listStyle'==_0x57ae32['data']['key']||'listMarkerStyle'==_0x57ae32['data']['key'])&&(_0x57ae32['data']['newValue']&&'default'!=_0x57ae32['data']['newValue']||'default'!=_0x57ae32['data']['oldValue']&&!_0x179acb['newValue'])||!_0x146c6c&&_0x57ae32['data']['key']==u))return _0x3c687e;_0x57ae32=_0x57ae32['next'];}if(null==_0x179acb['newValue'])switch(_0x179acb['oldValue']){case'bulleted':return _0xa7f148(c(_0x47055a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xa7f148(c(_0x47055a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xa7f148(c(_0x47055a,'ELEMENT_TODO_LIST'));}switch(_0x179acb['newValue']){case'bulleted':return _0xd2a890(c(_0x47055a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xd2a890(c(_0x47055a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xd2a890(c(_0x47055a,'ELEMENT_TODO_LIST'));}}),_0x4b38f8['descriptionFactory']['registerDescriptionCallback'](_0x3098e1=>{const {data:_0x1f65cb}=_0x3098e1;if(_0x1f65cb&&'listIndent'==_0x1f65cb['key'])return null==_0x1f65cb['newValue']||null==_0x1f65cb['oldValue']&&0x0==_0x1f65cb['newValue']?_0x3c687e:void 0x0;}),_0x4b38f8['descriptionFactory']['registerDescriptionCallback'](_0x3e03e2=>{if('attribute'!=_0x3e03e2['type'])return;const {data:_0x5085d0}=_0x3e03e2;if(!_0x5085d0||'listItemId'!=_0x5085d0['key'])return;const _0x48837c=Te(_0x3e03e2);return'newValue'==_0x48837c?{'type':'format','content':c(_0x47055a,'*Merge:*\x20list\x20item')}:'oldValue'==_0x48837c?{'type':'format','content':c(_0x47055a,'*Split:*\x20list\x20item')}:_0x3c687e;}),_0x1e6a8c['model']['document']['registerPostFixer'](_0x5bb07a=>this['listItemIdFixer'](_0x5bb07a)),_0x1e6a8c['model']['document']['registerPostFixer'](_0x2a1d72=>this['noTrackChangesFixer'](_0x2a1d72)),_0x1e6a8c['model']['document']['on']('change:data',(_0x49c2f1,_0x1f51e1)=>{if(_0x1f51e1['isUndo']||!_0x1f51e1['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x3fd294){if(_0x3fd294['batch']['isUndo']||!_0x3fd294['batch']['isLocal'])return!0x1;let _0x53ad04=!0x1;const _0x45ea2e=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x355c58=>_0x355c58['data']&&'listItemId'==_0x355c58['data']['key'])['filter'](_0x316f5f=>_0x316f5f['data']['newValue']&&_0x316f5f['data']['oldValue']);for(const _0x2ff5cf of _0x45ea2e)Te(_0x2ff5cf)||(_0x3fd294['removeMarker'](_0x2ff5cf['getFirstMarker']()),_0x53ad04=!0x0);return _0x53ad04;}['noTrackChangesFixer'](_0x813549){if(_0x813549['batch']['isUndo']||!_0x813549['batch']['isLocal'])return!0x1;const _0x2fc8ea=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x2fc8ea['trackChangesCommand']['value'])return!0x1;let _0x2e0421=!0x1;const _0x256b78=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x246647=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x2b06d8=>'attribute'==_0x2b06d8['type'])['filter'](_0x5dae9e=>_0x256b78['includes'](_0x5dae9e['attributeKey']));if(0x0==_0x246647['length'])return _0x2e0421;for(const _0x615b59 of _0x246647){const _0x4770d4=_0x2fc8ea['_findSuggestions'](_0x615b59['range'],'attribute')['filter'](_0x1a9546=>!_0x1a9546['meta']['isNextTo'])['map'](_0x1b2c2a=>_0x1b2c2a['suggestion'])['filter'](_0x6c2f8e=>{const _0x42d3a7=_0x2fc8ea['_getAttributeKey'](_0x6c2f8e);return _0x256b78['includes'](_0x42d3a7);});if(_0x4770d4['length']){for(const _0x1f1508 of _0x4770d4)_0x813549['removeMarker'](_0x1f1508['getFirstMarker']());_0x2e0421=!0x0;}}return _0x2e0421;}['assureChains'](){const _0x5d56e2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x113ebc=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x1bddc6;const _0x494dce=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xcb0e42=>{if(_0xcb0e42['data']['oldRange']||!_0xcb0e42['data']['newRange'])return null;if(!_0xcb0e42['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x427620}=_0x5d56e2['_splitMarkerName'](_0xcb0e42['name']);if(!_0x5d56e2['hasSuggestion'](_0x427620))return null;const _0xfb0464=_0x5d56e2['getSuggestion'](_0x427620);return _0x113ebc['includes'](_0xfb0464['data']['key']);})['map'](_0xa9774f=>{const {id:_0x58e7e4}=_0x5d56e2['_splitMarkerName'](_0xa9774f['name']),_0x196127=_0x5d56e2['getSuggestion'](_0x58e7e4);return _0x1bddc6=_0x196127['attributes']['groupId'],_0x196127['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x494dce['size'])return;const _0x37cb87=_0x5d56e2['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x179fc7=>'attribute'==_0x179fc7['type']&&_0x179fc7['data']&&_0x113ebc['includes'](_0x179fc7['data']['key'])&&_0x179fc7['attributes']['groupId']!=_0x1bddc6)['map'](_0x1abdc2=>({'listItem':_0x1abdc2['getFirstRange']()['start']['nodeAfter'],'groupId':_0x1abdc2['attributes']['groupId']})),_0x4103f5=new Set();for(const {groupId:_0x236c0b,listItem:_0x362162}of _0x37cb87)_0x494dce['has'](_0x362162)&&_0x4103f5['add'](_0x236c0b);for(const _0x36529b of _0x5d56e2['getSuggestions']())_0x4103f5['has'](_0x36529b['attributes']['groupId'])&&_0x36529b['setAttribute']('groupId',_0x1bddc6);}['_supportLegacySuggestions'](){const _0x557b24=this['editor'],_0x5e9da7=_0x557b24['locale'],_0xe5cd=_0x557b24['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0xe5cd['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x42cbaf,_0x1b7e44){const _0x43cab9=[];for(let _0x159d7e of _0x42cbaf)_0x159d7e['start']['nodeAfter']===_0x159d7e['end']['parent']&&(_0x159d7e=_0x557b24['model']['createRange'](_0x557b24['model']['createPositionAt'](_0x159d7e['start']['nodeAfter'],0x0))),_0x43cab9['push'](_0x159d7e);_0x557b24['model']['change'](_0x54821b=>{const _0x3d64d2=_0x557b24['model']['document']['selection'],_0x27cce2=Array['from'](_0x3d64d2['getRanges']())['map'](_0x4d115c=>_0x7362da['fromRange'](_0x4d115c));_0x54821b['setSelection'](_0x43cab9),_0x557b24['commands']['get'](_0x1b7e44['commandName'])['refresh'](),_0x1b7e44['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x557b24['execute'](_0x1b7e44['commandName'],..._0x1b7e44['commandParams']),_0x54821b['setSelection'](_0x27cce2);for(const _0x250add of _0x27cce2)_0x250add['detach']();});}),_0xe5cd['descriptionFactory']['registerElementLabel'](function(_0x5d2c7a){const _0x466676=!_0x557b24['model']['schema']['isObject'](_0x5d2c7a),_0x4fac8d=_0x5d2c7a['previousSibling'],_0x4d3247=_0x5d2c7a['nextSibling'],_0x11e159=_0x5d2c7a['getAttribute']('listItemId'),_0x2c3561=!_0x4fac8d||_0x4fac8d['getAttribute']('listItemId')!==_0x11e159,_0x4ae8f5=!_0x4d3247||_0x4d3247['getAttribute']('listItemId')!==_0x11e159;return _0x466676&&Boolean(_0x11e159)&&_0x2c3561&&_0x4ae8f5;},_0x350313=>c(_0x5e9da7,'ELEMENT_LIST_ITEM',_0x350313));}['_registerLegacyDescription'](){const _0x35779c=this['editor'],_0x2d6d2d=_0x35779c['locale'];function _0x19f4b1(_0x44fb9a){const _0x8b5af=_0x35779c['commands']['get']('bulletedList')['value'],_0x10cd82=_0x35779c['commands']['get']('numberedList')['value'];return'numberedList'===_0x44fb9a?_0x8b5af:_0x10cd82;}_0x35779c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x1ed8e3){if('formatBlock'!=_0x1ed8e3['type'])return;const {data:_0x37405c}=_0x1ed8e3;if(!_0x37405c)return;let _0x449451,_0x38bc2b,_0x47eb44,_0x3e7384;switch(_0x37405c['commandName']){case'bulletedList':_0x47eb44=_0x37405c['commandParams'][0x0]['forceValue'],_0x3e7384=_0x19f4b1(_0x37405c['commandName']),_0x449451=_0x47eb44?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3e7384&&_0x35779c['config']['get']('list.multiBlock')||(_0x449451='*Change\x20to:*\x20%0'),_0x38bc2b={'type':'format','content':c(_0x2d6d2d,_0x449451,c(_0x2d6d2d,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x47eb44=_0x37405c['commandParams'][0x0]['forceValue'],_0x3e7384=_0x19f4b1(_0x37405c['commandName']),_0x449451=_0x47eb44?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3e7384&&_0x35779c['config']['get']('list.multiBlock')||(_0x449451='*Change\x20to:*\x20%0'),_0x38bc2b={'type':'format','content':c(_0x2d6d2d,_0x449451,c(_0x2d6d2d,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x449451='*Indent:*\x20%0',_0x38bc2b={'type':'format','content':c(_0x2d6d2d,_0x449451,c(_0x2d6d2d,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x449451=function(_0x6acdad){const _0x518514=_0x6acdad['getFirstRange']();let _0x4890e2=_0x518514['start']['nodeAfter'];for(;_0x4890e2&&_0x518514['containsItem'](_0x4890e2);){if(_0x4890e2['getAttribute']('listIndent')>0x0)return!0x1;_0x4890e2=_0x4890e2['nextSibling'];}return!0x0;}(_0x1ed8e3)?c(_0x2d6d2d,'*Format:*\x20remove\x20from\x20%0',c(_0x2d6d2d,function(_0x4acde0){return'ELEMENT_'+_0x4acde0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x1ed8e3))):c(_0x2d6d2d,'*Outdent:*\x20%0',c(_0x2d6d2d,'ELEMENT_LIST_ITEM')),_0x38bc2b={'type':'format','content':_0x449451};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x37405c['multipleBlocks']&&(_0x449451='*Merge:*\x20%0',_0x38bc2b={'type':'deletion','content':c(_0x2d6d2d,_0x449451,c(_0x2d6d2d,'ELEMENT_LIST_ITEM'))});}return _0x38bc2b;});}}function Te(_0x2e230a){let _0x20f13b=_0x2e230a['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x20f13b;){const _0x3260bb=_0x20f13b['getAttribute']('listItemId');if(!_0x3260bb)return!0x1;if(_0x3260bb==_0x2e230a['data']['newValue'])return'newValue';if(_0x3260bb==_0x2e230a['data']['oldValue'])return'oldValue';_0x20f13b=_0x20f13b['previousSibling'];}return!0x1;}class Se extends _0x53ae92{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x17529c=this['editor']['config']['get']('list.properties'),_0xefcd5c=this['editor']['plugins']['get']('TrackChangesEditing');_0x17529c['styles']&&(_0xefcd5c['enableDefaultAttributesIntegration']('listStyle'),_0xefcd5c['registerBlockAttribute']('listStyle')),_0x17529c['reversed']&&(_0xefcd5c['enableDefaultAttributesIntegration']('listReversed'),_0xefcd5c['registerBlockAttribute']('listReversed')),_0x17529c['startIndex']&&(_0xefcd5c['enableDefaultAttributesIntegration']('listStart'),_0xefcd5c['registerBlockAttribute']('listStart'));const _0x208c6e={'type':'format','content':''};_0xefcd5c['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4a5034=this['editor']['locale'];_0xefcd5c['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x4a5034,'FORMAT_LIST_REVERSED')),_0xefcd5c['descriptionFactory']['registerDescriptionCallback'](_0x3b5521=>{const {data:_0x401140}=_0x3b5521;if(_0x401140&&'listReversed'==_0x401140['key'])return null==_0x401140['newValue']||0x0==_0x401140['newValue']&&null==_0x401140['oldValue']?_0x208c6e:void 0x0;}),_0xefcd5c['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x4a5034,'FORMAT_LIST_START')),_0xefcd5c['descriptionFactory']['registerDescriptionCallback'](_0x366cda=>{const {data:_0x399c67}=_0x366cda;if(_0x399c67&&'listStart'==_0x399c67['key'])return null==_0x399c67['newValue']||0x1==_0x399c67['newValue']&&null==_0x399c67['oldValue']?_0x208c6e:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x128dba=>{if(_0x128dba['batch']['isUndo'])return!0x1;let _0x2cfd76=!0x1;const _0x354303=_0xefcd5c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5eb88a=>{const _0x33e70f=_0xefcd5c['_getAttributeKey'](_0x5eb88a);return'listStart'==_0x33e70f||'listReversed'==_0x33e70f;});for(const _0x24d34d of _0x354303){const _0x3164cc=_0x24d34d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x3164cc||'customNumbered'==_0x3164cc)continue;_0xefcd5c['_findSuggestions'](_0x24d34d['getFirstRange'](),'attribute')['find'](_0x1a335c=>'listType'==_0xefcd5c['_getAttributeKey'](_0x1a335c['suggestion']))||(_0x128dba['removeMarker'](_0x24d34d['getFirstMarker']()),_0x2cfd76=!0x0);}return _0x2cfd76;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x3744d8){const _0x57ee15=this['editor']['locale'],{data:_0xcd177}=_0x3744d8,_0x489f5b={'type':'format','content':''};if(!_0xcd177||'listStyle'!=_0xcd177['key'])return;if(!_0xcd177['oldValue'])return'default'==_0xcd177['newValue']?_0x489f5b:{'type':'format','content':''+c(_0x57ee15,'*Set\x20format:*\x20%0',c(_0x57ee15,this['_getTranslationKeyForListStyle'](_0xcd177['newValue'])))};if(!_0xcd177['newValue']){if('default'==_0xcd177['oldValue'])return _0x489f5b;let _0x5ec66a=_0x3744d8['head'];for(;_0x5ec66a;){if(_0x5ec66a['data']&&'listType'==_0x5ec66a['data']['key']&&_0x5ec66a['data']['newValue'])return _0x489f5b;_0x5ec66a=_0x5ec66a['next'];}return{'type':'format','content':''+c(_0x57ee15,'*Remove\x20format:*\x20%0',c(_0x57ee15,this['_getTranslationKeyForListStyle'](_0xcd177['oldValue'])))};}if('default'!=_0xcd177['newValue'])return{'type':'format','content':''+c(_0x57ee15,'*Set\x20format:*\x20%0',c(_0x57ee15,this['_getTranslationKeyForListStyle'](_0xcd177['newValue'])))};let _0x4ba047=_0x3744d8['head'];for(;_0x4ba047;){if(_0x4ba047['data']&&'listType'==_0x4ba047['data']['key']&&_0x4ba047['data']['newValue']&&_0x4ba047['data']['oldValue'])return _0x489f5b;_0x4ba047=_0x4ba047['next'];}return{'type':'format','content':c(_0x57ee15,'*Set\x20format:*\x20%0',c(_0x57ee15,'ELEMENT_'+_0x3744d8['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1ed82f=this['editor'],_0x2f6419=_0x1ed82f['locale'];_0x1ed82f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a4155=>{if('formatBlock'!=_0x1a4155['type'])return;const {data:_0x4d10e5}=_0x1a4155;if(!_0x4d10e5)return;let _0x49899b,_0x4a7d67;switch(_0x4d10e5['commandName']){case'listStyle':_0x49899b='*Change\x20to:*\x20%0',_0x4a7d67={'type':'format','content':c(_0x2f6419,_0x49899b,c(_0x2f6419,this['_getTranslationKeyForListStyle'](_0x4d10e5['commandParams'][0x0]['type'])))};break;case'listReversed':_0x49899b=_0x4d10e5['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4a7d67={'type':'format','content':c(_0x2f6419,_0x49899b)};break;case'listStart':_0x49899b='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4a7d67={'type':'format','content':c(_0x2f6419,_0x49899b,_0x4d10e5['commandParams'][0x0]['startIndex'])};}return _0x4a7d67;});}['_getTranslationKeyForListStyle'](_0x4cb4a8){return'ELEMENT_'+function(_0x1e97fd){if(_e['includes'](_0x1e97fd))return'bulleted';if(Re['includes'](_0x1e97fd))return'numbered';return null;}(_0x4cb4a8)['toUpperCase']()+'_LIST_'+_0x4cb4a8['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x53ae92{static get['requires'](){return[_0x39beb8];}['init'](){const _0x3c2132=this['editor'],_0x30d709=_0x3c2132['plugins']['get']('TrackChangesEditing'),_0x43a93e=_0x3c2132['commands']['get']('enter');_0x30d709['enableCommand']('enter',()=>{_0x3c2132['model']['change'](_0x45da12=>{const _0x499753=_0x3c2132['model']['document']['selection'],_0x4854ba=_0x499753['getFirstPosition'](),_0x431c4f=_0x7362da['fromRange'](_0x499753['getFirstRange']());if(_0x43a93e['enterBlock'](_0x45da12)){const _0x10a4e5=_0x3c2132['model']['createPositionAt'](_0x4854ba['parent']['nextSibling'],0x0),_0x37991e=_0x45da12['createRange'](_0x4854ba,_0x10a4e5);_0x30d709['markInsertion'](_0x37991e);}else _0x45da12['setSelection'](_0x45da12['createRange'](_0x431c4f['end']));_0x431c4f['detach'](),_0x43a93e['fire']('afterExecute',{'writer':_0x45da12});});}),_0x3c2132['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x3c2132,'split'),{'priority':'high'}),_0x3c2132['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x8519d9,_0x3ef895,_0x4ee01f)=>{const _0x4c59c8=_0x4ee01f['mapper']['markerNameToElements'](_0x3ef895['markerName']);if(_0x4c59c8){for(const _0x542f3d of _0x4c59c8)_0x542f3d['hasClass']('ck-suggestion-marker-split')&&(_0x4ee01f['mapper']['unbindElementFromMarkerName'](_0x542f3d,_0x3ef895['markerName']),_0x4ee01f['writer']['remove'](_0x542f3d));}},{'priority':'high'}),_0x3c2132['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x484a8b,_0x200df1,_0x5cebaf)=>{_0x5cebaf['options']['showSuggestionHighlights']&&De(_0x3c2132,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x484a8b,_0x200df1,_0x5cebaf);},{'priority':'high'});}}class Y extends _0x53ae92{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x3630a4=this['editor']['plugins']['get']('TrackChangesEditing');_0x3630a4['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x3630a4['enableCommand']('findNext'),_0x3630a4['enableCommand']('findPrevious'),_0x3630a4['enableCommand']('replace'),_0x3630a4['enableCommand']('replaceAll');}['handleFindCommand'](_0x2585ab,_0x353657,_0x44d1de={}){const _0x4dea26=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x2585ab(_0x5a29d8=>{let _0x37f182=('string'==typeof _0x353657?_0x4dea26['findByTextCallback'](_0x353657,_0x44d1de):_0x353657)(_0x5a29d8);Array['isArray'](_0x37f182)&&(_0x37f182={'results':_0x37f182,'searchText':'string'==typeof _0x353657?_0x353657:''});const _0x55d9b0=_0x37f182['results']['filter'](_0x16b67c=>!0x1===this['_isInDeletionRange'](_0x16b67c,_0x5a29d8['item']));return{..._0x37f182,'results':_0x55d9b0};},_0x44d1de);}['_isInDeletionRange'](_0x23a480,_0x5e1fa9){const _0x30cd04=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5e1fa9,_0x23a480['start']),this['editor']['model']['createPositionAt'](_0x5e1fa9,_0x23a480['end']));for(const _0x37635d of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x30cd04['getIntersection'](_0x37635d['getRange']()))return!0x0;return!0x1;}}const to=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x53ae92{['afterInit'](){const _0x48bd56=this['editor']['locale'],_0x3af2ea=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x2a013c,commandName:_0x4a3604}of to)this['editor']['plugins']['has'](_0x2a013c)&&(_0x3af2ea['enableDefaultAttributesIntegration'](_0x4a3604),_0x3af2ea['registerInlineAttribute'](_0x4a3604));_0x3af2ea['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x48bd56,'FORMAT_FONT_SIZE')),_0x3af2ea['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x48bd56,'FORMAT_FONT_FAMILY')),_0x3af2ea['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x48bd56,'FORMAT_FONT_COLOR')),_0x3af2ea['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x48bd56,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x405b95=this['editor'],_0x3e448c=_0x405b95['locale'];_0x405b95['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36e8ce=>{const _0x2e6faf=_0x3e448c['t'];if('formatInline'!=_0x36e8ce['type'])return;const {data:_0x5223a6}=_0x36e8ce;if(null!=_0x5223a6){if('fontSize'==_0x5223a6['commandName']){const _0x1fbb78=_0x5223a6['commandParams'][0x0]['value'];if(_0x1fbb78){const _0x47f989=_0x2e6faf(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x40cda7=>_0x40cda7['model']==_0x1fbb78)['title'])['toLowerCase']();return{'type':'format','content':c(_0x3e448c,'*Set\x20font\x20size:*\x20%0',_0x47f989)};}return{'type':'format','content':c(_0x3e448c,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x5223a6['commandName']){const _0x8c6364=_0x5223a6['commandParams'][0x0]['value'];return _0x8c6364?{'type':'format','content':c(_0x3e448c,'*Set\x20font\x20family:*\x20%0',_0x8c6364)}:{'type':'format','content':c(_0x3e448c,'*Reset\x20font\x20family*')};}if('fontColor'==_0x5223a6['commandName']){const _0x164f18=_0x5223a6['commandParams'][0x0]['value'];if(_0x164f18){const _0x31882c=Zt(this['editor']['config']['get']('fontColor.colors'))['find'](_0xa22a96=>_0xa22a96['model']==_0x164f18);let _0x144726=_0x164f18,_0x387ec3='';return _0x31882c&&(_0x144726=_0x31882c['label'],_0x387ec3=_0x2e6faf(_0x144726)['toLowerCase']()),{'type':'format','content':c(_0x3e448c,'*Set\x20font\x20color:*\x20%0',_0x387ec3)['trim'](),'color':{'value':_0x164f18,'title':_0x387ec3||_0x144726}};}return{'type':'format','content':c(_0x3e448c,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x5223a6['commandName']){const _0x14371a=_0x5223a6['commandParams'][0x0]['value'];if(_0x14371a){const _0x27f306=Zt(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x442a30=>_0x442a30['model']==_0x14371a);let _0x3a4646=_0x14371a,_0x390a5b='';return _0x27f306&&(_0x3a4646=_0x27f306['label'],_0x390a5b=_0x2e6faf(_0x3a4646)['toLowerCase']()),{'type':'format','content':c(_0x3e448c,'*Set\x20font\x20background\x20color:*\x20%0',_0x390a5b)['trim'](),'color':{'value':_0x14371a,'title':_0x390a5b||_0x3a4646}};}return{'type':'format','content':c(_0x3e448c,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x53ae92{['afterInit'](){const _0x5a30ae=this['editor'],_0x5ddf37=_0x5a30ae['plugins']['get']('TrackChangesEditing'),_0x4076c2=_0x5a30ae['commands']['get']('copyFormat'),_0x3d2a29=_0x5a30ae['commands']['get']('pasteFormat');_0x4076c2&&_0x3d2a29&&(_0x5ddf37['enableDefaultAttributesIntegration']('pasteFormat'),_0x5ddf37['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x5ab5bc=this['editor'],_0x5851e0=_0x5ab5bc['locale'];_0x5ab5bc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4af5f8=>{if('formatBlock'!=_0x4af5f8['type']&&'formatInline'!=_0x4af5f8['type'])return;const {data:_0x386858}=_0x4af5f8;if(_0x386858&&'pasteFormat'===_0x386858['commandName']){const _0x522668=[],_0x17672f=_0x386858['commandParams'][0x0];for(const [_0x4e0f5f,_0x171e69]of Object['entries'](_0x17672f))_0x522668['push'](ro(_0x5ab5bc,_0x4e0f5f,_0x171e69));return _0x522668['length']?{'type':'format','content':c(_0x5851e0,'*Set\x20format\x20to:*\x20%0',_0x522668['join'](',\x20'))}:{'type':'format','content':c(_0x5851e0,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x3993f9,_0x12d941,_0x3afa78){const _0xa5d918=_0x3993f9['locale']['t'],_0x4c4c82=_0x12d941['split'](/(?=[A-Z])/)['join']('\x20'),_0x2df07e=_0xa5d918(_0x4c4c82['charAt'](0x0)['toUpperCase']()+_0x4c4c82['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x3afa78)return _0x2df07e;if('fontColor'===_0x12d941||'fontBackgroundColor'===_0x12d941){const _0x1d7d12=Zt(_0x3993f9['config']['get']('fontColor.colors'))['find'](_0x27e2e5=>_0x27e2e5['model']==_0x3afa78);return _0x2df07e+'\x20('+(_0x1d7d12?_0xa5d918(_0x1d7d12['label'])['toLowerCase']():_0x3afa78)+')';}if('fontSize'===_0x12d941&&isNaN(parseFloat(_0x3afa78))){const _0xd3e637=_0x3993f9['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x3993f9['config']['get']('fontSize.options'))['find'](_0x15b4e3=>_0x15b4e3['model']==_0x3afa78);return _0x2df07e+'\x20('+(_0xd3e637?_0xa5d918(_0xd3e637['title'])['toLowerCase']():_0x3afa78)+')';}return _0x2df07e+'\x20('+_0x3afa78+')';}class et extends _0x53ae92{['_headingOptions'];['afterInit'](){const _0x31b738=this['editor'];if(!_0x31b738['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x31b738['config']['get']('heading.options');const _0x3cbffa=_0x31b738['locale'],_0x41d7c3=_0x31b738['plugins']['get']('TrackChangesEditing');_0x41d7c3['enableDefaultAttributesIntegration']('heading');for(const _0x38f028 of this['_headingOptions'])'paragraph'!=_0x38f028['model']&&_0x41d7c3['descriptionFactory']['registerElementLabel'](_0x38f028['model'],_0x512e74=>{const _0x417c18=this['_getHeadingLevel'](_0x38f028['model']);return null!==_0x417c18?_0x454489(_0x512e74,_0x417c18):_0x4a5461(_0x512e74,_0x38f028['title']);});function _0x454489(_0x26e00d,_0x1cc3c2){return c(_0x3cbffa,'ELEMENT_HEADING',[_0x26e00d,_0x1cc3c2]);}function _0x4a5461(_0x1c7b50,_0x9abfca){return c(_0x3cbffa,'ELEMENT_HEADING_CUSTOM',[_0x1c7b50,_0x9abfca]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1bc3df=this['editor'],_0x2b39e0=_0x1bc3df['locale'];function _0x464bbd(_0x687da0,_0x32f8c6){return c(_0x2b39e0,'ELEMENT_HEADING_CUSTOM',[_0x687da0,_0x32f8c6]);}_0x1bc3df['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x407aaa=>{if('formatBlock'!=_0x407aaa['type'])return;const {data:_0x327dab}=_0x407aaa;if(_0x327dab&&'heading'==_0x327dab['commandName']){const _0x2f0418=_0x327dab['commandParams'][0x0]['value'],_0x3a135c=this['_getHeadingLevel'](_0x2f0418);if(null!==_0x3a135c)return{'type':'format','content':c(_0x2b39e0,'*Change\x20to:*\x20%0',(_0x69da39=0x1,_0x2c7737=_0x3a135c,c(_0x2b39e0,'ELEMENT_HEADING',[_0x69da39,_0x2c7737])))};const _0x201faa=this['_headingOptions']['find'](_0x47f0c3=>_0x47f0c3['model']===_0x2f0418)['title'];return{'type':'format','content':c(_0x2b39e0,'*Change\x20to:*\x20%0',_0x464bbd(0x1,_0x201faa))};}var _0x69da39,_0x2c7737;});}['_getHeadingLevel'](_0x258d5c){const _0x26d94f=_0x258d5c['match'](/^heading(\d+)/);if(_0x26d94f)return _0x26d94f[0x1];const _0x489f0d=this['_headingOptions']?.['find'](_0x227433=>_0x227433['model']==_0x258d5c);if(_0x489f0d&&_0x489f0d['view']){const _0x59f12e=_0x489f0d['view'],_0x4cadff=(_0x59f12e['name']??_0x59f12e)['match'](/^h(\d+)/);if(_0x4cadff)return _0x4cadff[0x1];}return null;}}class nt extends _0x53ae92{['afterInit'](){const _0x5485f6=this['editor'];if(!_0x5485f6['plugins']['has']('HighlightEditing'))return;const _0x4aec11=_0x5485f6['plugins']['get']('TrackChangesEditing'),_0x407ad9=_0x5485f6['locale'];_0x4aec11['enableDefaultAttributesIntegration']('highlight'),_0x4aec11['registerInlineAttribute']('highlight'),_0x4aec11['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x407ad9,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2bf753=this['editor'],_0x4a411d=_0x2bf753['locale'];_0x2bf753['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x506978=>{if('formatInline'!=_0x506978['type'])return;const {data:_0x5950ae}=_0x506978;if(_0x5950ae&&'highlight'==_0x5950ae['commandName']){const _0x24d1c6=_0x4a411d['t'],_0x257c6d=_0x5950ae['commandParams'][0x0]['value'];if(_0x257c6d){const _0xf80511=_0x2bf753['config']['get']('highlight.options')['find'](_0x20c920=>_0x20c920['model']==_0x257c6d),_0x42719f=_0x24d1c6(_0xf80511['title'])['toLowerCase']();return{'type':'format','content':c(_0x4a411d,'*Set\x20highlight:*\x20%0',_0x42719f),'color':{'value':_0xf80511['color'],'title':_0xf80511['title']}};}return{'type':'format','content':c(_0x4a411d,'*Remove\x20highlight*',c(_0x4a411d,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x53ae92{['afterInit'](){const _0xcef95b=this['editor'];if(!_0xcef95b['plugins']['has']('HorizontalLineEditing'))return;_0xcef95b['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x311e9f=_0xcef95b['plugins']['get']('TrackChangesEditing'),_0x50e30e=_0xcef95b['locale'];_0x311e9f['descriptionFactory']['registerElementLabel']('horizontalLine',_0x3a5c8f=>c(_0x50e30e,'ELEMENT_HORIZONTAL_LINE',_0x3a5c8f)),_0xcef95b['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x5d3d24,{writer:_0x563138,options:_0x2c977e})=>{if(!_0x2c977e['showSuggestionHighlights'])return null;const _0x3caf3a=_0x563138['createContainerElement']('div'),_0x1e8ffe=_0x563138['createEmptyElement']('hr');return _0x563138['addClass']('ck-horizontal-line',_0x3caf3a),_0x563138['insert'](_0x563138['createPositionAt'](_0x3caf3a,0x0),_0x1e8ffe),_0x3caf3a;},'converterPriority':'high'});}}class st extends _0x53ae92{['afterInit'](){const _0xd825b2=this['editor'];if(!_0xd825b2['plugins']['has']('HtmlEmbed'))return;const _0x42068a=_0xd825b2['plugins']['get']('TrackChangesEditing'),_0x52f56c=_0xd825b2['locale'];_0x42068a['descriptionFactory']['registerElementLabel']('rawHtml',_0x256315=>c(_0x52f56c,'ELEMENT_HTML_EMBED',_0x256315)),_0x42068a['enableDefaultAttributesIntegration']('htmlEmbed'),_0x42068a['registerBlockAttribute']('value'),_0x42068a['descriptionFactory']['registerDescriptionCallback'](_0x487483=>{if('attribute'!=_0x487483['type'])return;const {data:_0x487ee7}=_0x487483;if(_0x487ee7&&'value'==_0x487ee7['key']&&_0x487483['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x5c01ec=c(_0x52f56c,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x52f56c,'*Change\x20%0\x20content*',_0x5c01ec)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x19c893=this['editor'],_0xc215fe=_0x19c893['locale'];_0x19c893['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x351918=>{if('formatBlock'!=_0x351918['type'])return;const {data:_0x4657ca}=_0x351918;if(_0x4657ca&&'htmlEmbed'==_0x4657ca['commandName']){const _0x3dd5e4=c(_0xc215fe,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0xc215fe,'*Change\x20%0\x20content*',_0x3dd5e4)};}});}}class ot extends _0x53ae92{['afterInit'](){const _0x7aa3a3=this['editor'];if(!_0x7aa3a3['plugins']['has']('ImageEditing'))return;const _0x3045e4=_0x7aa3a3['plugins']['get']('TrackChangesEditing'),_0x398571=_0x7aa3a3['plugins']['get']('ImageUtils'),_0x45d506=_0x7aa3a3['locale'];_0x3045e4['enableCommand']('insertImage'),_0x3045e4['descriptionFactory']['registerElementLabel']('imageBlock',_0x7d7038=>c(_0x45d506,'ELEMENT_IMAGE',_0x7d7038)),_0x3045e4['descriptionFactory']['registerElementLabel']('imageInline',_0x2a1539=>c(_0x45d506,'ELEMENT_INLINE_IMAGE',_0x2a1539)),_0x3045e4['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x45d506,'ELEMENT_CAPTION')),_0x7aa3a3['plugins']['has']('ImageUploadEditing')&&_0x3045e4['enableCommand']('uploadImage'),_0x7aa3a3['plugins']['has']('ImageBlockEditing')&&_0x7aa3a3['plugins']['has']('ImageInlineEditing')&&(_0x3045e4['enableCommand']('imageTypeInline',(_0x4088a4,_0xeab741)=>{const _0x3a4f2e=_0x398571['getClosestSelectedImageElement'](_0x7aa3a3['model']['document']['selection']);_0x7aa3a3['model']['change'](()=>{_0x3045e4['markBlockFormat'](_0x3a4f2e,{'commandName':'imageTypeInline','commandParams':[_0xeab741]},[],'convertBlockImageToInline');});}),_0x3045e4['enableCommand']('imageTypeBlock',(_0x346ed9,_0x288212)=>{_0x7aa3a3['model']['change'](_0x4aeed6=>{let _0x855c2d=_0x398571['getClosestSelectedImageElement'](_0x7aa3a3['model']['document']['selection']),_0x52832c=_0x4aeed6['createRangeOn'](_0x855c2d);const _0x264be7=_0x36d914['fromPosition'](_0x52832c['start'],'toPrevious'),_0x626e4d=_0x36d914['fromPosition'](_0x52832c['end'],'toNext');_0x3045e4['forceDefaultExecution'](()=>_0x346ed9(_0x288212)),_0x855c2d=_0x398571['getClosestSelectedImageElement'](_0x7aa3a3['model']['document']['selection']),_0x52832c=_0x4aeed6['createRangeOn'](_0x855c2d);const _0x3b4a44=_0x4aeed6['createRange'](_0x264be7,_0x626e4d);_0x264be7['detach'](),_0x626e4d['detach'](),_0x3045e4['markBlockFormat'](_0x855c2d,{'commandName':'imageTypeInline','commandParams':[_0x288212]},[],'convertInlineImageToBlock'),_0x3b4a44['start']['isBefore'](_0x52832c['start'])&&_0x3045e4['markInsertion'](_0x4aeed6['createRange'](_0x3b4a44['start'],_0x52832c['start']),'convertInlineImageToBlock'),_0x52832c['end']['isBefore'](_0x3b4a44['end'])&&_0x3045e4['markInsertion'](_0x4aeed6['createRange'](_0x52832c['end'],_0x3b4a44['end']),'convertInlineImageToBlock');});}),_0x3045e4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3045e4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3045e4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3045e4['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3045e4['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3045e4['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x36e021])=>{const _0x454e99=_0x3045e4['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x2e7b34=_0x36e021['start'],_0x24ed53=_0x36e021['end'];const _0x28df9c=_0x7aa3a3['model']['schema']['getNearestSelectionRange'](_0x2e7b34,'backward'),_0x1daac3=_0x7aa3a3['model']['schema']['getNearestSelectionRange'](_0x24ed53,'forward');_0x28df9c['isCollapsed']&&(_0x2e7b34=_0x28df9c['start']),_0x1daac3['isCollapsed']&&(_0x24ed53=_0x1daac3['end']),_0x454e99([_0x7aa3a3['model']['createRange'](_0x2e7b34,_0x24ed53)]);}),_0x3045e4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x1360a2),_0x3045e4['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x1360a2)),_0x7aa3a3['plugins']['has']('ImageCaptionEditing')&&(_0x3045e4['enableCommand']('toggleImageCaption',(_0x514db,_0x37e831)=>{const _0x159f79=_0x7aa3a3['plugins']['get']('ImageCaptionUtils');let _0x12da71=_0x398571['getClosestSelectedImageElement'](_0x7aa3a3['model']['document']['selection']),_0x42e5d6=_0x159f79['getCaptionFromImageModelElement'](_0x12da71);_0x7aa3a3['model']['change'](()=>{if(_0x42e5d6)return void _0x3045e4['markDeletion'](_0x7aa3a3['model']['createRangeOn'](_0x42e5d6));const _0x297a2d=_0x398571['isBlockImage'](_0x12da71);_0x514db(_0x37e831),_0x12da71=_0x398571['getClosestSelectedImageElement'](_0x7aa3a3['model']['document']['selection']),_0x42e5d6=_0x159f79['getCaptionFromImageModelElement'](_0x12da71),_0x3045e4['markInsertion'](_0x7aa3a3['model']['createRangeOn'](_0x42e5d6),_0x297a2d?null:'imageCaption');});}),_0x3045e4['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x1360a2));const _0x3a9caa=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x53cd32(_0x511f8a,_0xd648a){const _0x5b9d8d=_0x3a9caa['findIndex'](({type:_0x1394da,subType:_0x3a1d12})=>_0x511f8a['type']==_0x1394da&&_0x511f8a['subType']==_0x3a1d12),_0x2185c1=_0x3a9caa['findIndex'](({type:_0x466d14,subType:_0x5ea4a5})=>_0xd648a['type']==_0x466d14&&_0xd648a['subType']==_0x5ea4a5);if(_0x5b9d8d<0x0||_0x2185c1<0x0)return!0x1;const _0x53c598=_0x511f8a['getFirstRange'](),_0x284e78=_0xd648a['getFirstRange']();if((0x0==_0x5b9d8d||0x1==_0x5b9d8d)&&0x2==_0x2185c1&&_0x53c598['isIntersecting'](_0x284e78))return!0x0;if(0x2==_0x5b9d8d&&0x3==_0x2185c1){const _0xd9420a=_0x3045e4['_findSuggestions'](_0x53c598,'insertion')['filter'](({suggestion:_0x587dc4,meta:_0x47624c})=>_0x47624c['isOwn']&&'convertInlineImageToBlock'==_0x587dc4['subType']);if(_0xd9420a['length']>0x1&&_0x284e78['end']['isEqual'](_0x53c598['start']))return!0x0;if(0x1==_0xd9420a['length']&&(_0x53c598['start']['isEqual'](_0x284e78['end'])||_0x53c598['end']['isEqual'](_0x284e78['start'])))return!0x0;}if(0x3==_0x5b9d8d&&0x3==_0x2185c1&&_0x53c598['start']['isBefore'](_0x284e78['start'])){const _0x4e1164=_0x53c598['end']['nodeAfter'],_0x11587e=_0x284e78['start']['nodeBefore'];return _0x398571['isBlockImage'](_0x4e1164)&&_0x4e1164===_0x11587e;}return!0x1;}function _0x1360a2(_0x2bb243,_0x1d3b3b){return _0x53cd32(_0x2bb243,_0x1d3b3b)?[_0x2bb243,_0x1d3b3b]:_0x53cd32(_0x1d3b3b,_0x2bb243)?[_0x1d3b3b,_0x2bb243]:null;}_0x7aa3a3['plugins']['has']('ImageResize')&&(_0x3045e4['enableDefaultAttributesIntegration']('resizeImage'),_0x3045e4['registerBlockAttribute']('resizedWidth'),_0x3045e4['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x45d506,'FORMAT_IMAGE_SIZE'))),_0x7aa3a3['plugins']['has']('ImageTextAlternativeEditing')&&(_0x3045e4['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x3045e4['registerBlockAttribute']('alt')),_0x7aa3a3['plugins']['has']('PictureEditing')&&(_0x3045e4['registerBlockAttribute']('sources'),_0x3045e4['descriptionFactory']['registerDescriptionCallback'](_0x4201ab=>{if('attribute'!=_0x4201ab['type'])return;const {data:_0x3e9487}=_0x4201ab;return _0x3e9487&&'sources'==_0x3e9487['key']?{'type':'format','content':''}:void 0x0;})),_0x7aa3a3['plugins']['has']('ImageSizeAttributes')&&(_0x3045e4['registerBlockAttribute']('width'),_0x3045e4['registerBlockAttribute']('height'),_0x3045e4['descriptionFactory']['registerDescriptionCallback'](_0x353d12=>{if('attribute'!=_0x353d12['type'])return;const {data:_0x4e8859}=_0x353d12;return!_0x4e8859||'width'!=_0x4e8859['key']&&'height'!=_0x4e8859['key']?void 0x0:{'type':'format','content':''};})),_0x3045e4['descriptionFactory']['registerDescriptionCallback'](_0x8a1e8a=>{if(!!_0x3a9caa['find'](({type:_0x17f26f,subType:_0x299dcb})=>_0x8a1e8a['type']==_0x17f26f&&_0x8a1e8a['subType']==_0x299dcb))return _0x8a1e8a['previous']?{}:void 0x0;}),_0x3045e4['descriptionFactory']['registerDescriptionCallback'](_0x41f433=>{if('insertion'==_0x41f433['type']||'deletion'==_0x41f433['type']){const _0x1b8e69=_0x41f433['getContainedElement']();if(_0x1b8e69&&_0x1b8e69['is']('element','caption'))return{'type':'insertion'==_0x41f433['type']?'addObject':'removeObject','element':_0x1b8e69,'quantity':0x1};}}),_0x3045e4['descriptionFactory']['registerDescriptionCallback'](_0x41773a=>'formatBlock'==_0x41773a['type']&&'convertInlineImageToBlock'==_0x41773a['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x41773a['type']&&'convertBlockImageToInline'==_0x41773a['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3045e4['descriptionFactory']['registerDescriptionCallback'](_0x40022a=>{if('attribute'!=_0x40022a['type'])return;const {data:_0x7155b9}=_0x40022a;if(!_0x7155b9||'alt'!=_0x7155b9['key'])return;const _0x1a7a8e=_0x7155b9['newValue'];return _0x1a7a8e?{'type':'format','content':c(_0x45d506,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1a7a8e+'\x22')}:{'type':'format','content':c(_0x45d506,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2e7dc6=this['editor'],_0x2bf0ca=_0x2e7dc6['locale'];_0x2e7dc6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x54b775=>{if('formatBlock'!=_0x54b775['type']&&'formatInline'!=_0x54b775['type'])return;const {data:_0xe8f6e}=_0x54b775;if(_0xe8f6e){if('imageTextAlternative'==_0xe8f6e['commandName']){const _0x2fb45f=_0xe8f6e['commandParams'][0x0]['newValue'];return _0x2fb45f?{'type':'format','content':c(_0x2bf0ca,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2fb45f+'\x22')}:{'type':'format','content':c(_0x2bf0ca,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0xe8f6e['commandName']){const _0x26ff76=_0xe8f6e['commandParams'][0x0]['width'];return _0x26ff76?{'type':'format','content':c(_0x2bf0ca,'*Set\x20image\x20width:*\x20%0',_0x26ff76)}:{'type':'format','content':c(_0x2bf0ca,'*Reset\x20image\x20width*')};}}});}}class rt extends _0x53ae92{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x414f4f=this['editor']['locale'],_0xfb8e42=this['editor']['plugins']['get']('TrackChangesEditing');_0xfb8e42['enableDefaultAttributesIntegration']('replaceImageSource'),_0xfb8e42['registerBlockAttribute']('src'),_0xfb8e42['descriptionFactory']['registerDescriptionCallback'](_0x3c9480=>{if('attribute'!=_0x3c9480['type'])return;const {data:_0x428a48}=_0x3c9480;return _0x428a48&&'src'==_0x428a48['key']?_0x428a48['newValue']&&_0x428a48['oldValue']?{'type':'format','content':c(_0x414f4f,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x47c087=this['editor']['plugins']['get']('TrackChangesEditing');_0x47c087['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x47c087['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x47c087['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x47c087['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x398b3a=this['editor'],_0x2a4eff=_0x398b3a['locale'];_0x398b3a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x21dcd5=>{if('formatBlock'!=_0x21dcd5['type']&&'formatInline'!=_0x21dcd5['type'])return;const {data:_0x5d3804}=_0x21dcd5;if(!_0x5d3804||'replaceImageSource'!=_0x5d3804['commandName'])return;return{'type':'format','content':c(_0x2a4eff,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0x53ae92{['afterInit'](){const _0x4625b9=this['editor'];if(!_0x4625b9['plugins']['has']('ImageStyleEditing'))return;const _0x19622b=_0x4625b9['plugins']['get']('TrackChangesEditing'),_0x465784=_0x4625b9['plugins']['get']('ImageUtils'),_0x215f7e={};_0x19622b['enableCommand']('imageStyle',(_0x20759c,_0x35b699)=>{const _0x11b6fb=_0x4625b9['plugins']['get']('Users')['me'],_0x4588c0=_0x4625b9['commands']['get']('imageStyle');let _0x593bac=_0x465784['getClosestSelectedImageElement'](_0x4625b9['model']['document']['selection']),_0x25c09b=_0x4625b9['model']['createRangeOn'](_0x593bac),_0x40677b=_0x4588c0['value'];if(_0x40677b==_0x35b699['value'])return;const _0x112b84={'commandName':'imageStyle','commandParams':[_0x35b699],'formatGroupId':_0x33987a()};_0x4625b9['model']['change'](()=>{if(_0x19622b['getSuggestions']()['filter'](_0x5d74ec=>_0x5d74ec['isInContent']&&_0x11b6fb==_0x5d74ec['author']&&('formatBlock'==_0x5d74ec['type']||'formatInline'==_0x5d74ec['type'])&&('imageStylePreApply'==_0x5d74ec['subType']||'imageStylePostApply'==_0x5d74ec['subType'])&&_0x5d74ec['getFirstRange']()['isEqual'](_0x25c09b))['forEach'](_0x3e6891=>_0x19622b['discardSuggestion'](_0x3e6891['head'])),_0x593bac=_0x465784['getClosestSelectedImageElement'](_0x4625b9['model']['document']['selection']),_0x25c09b=_0x4625b9['model']['createRangeOn'](_0x593bac),_0x4588c0['refresh'](),_0x4625b9['commands']['get']('imageTypeInline')['refresh'](),_0x4625b9['commands']['get']('imageTypeBlock')['refresh'](),_0x40677b=_0x4588c0['value'],_0x40677b!=_0x35b699['value'])return _0x465784['isInlineImage'](_0x593bac)&&_0x4588c0['shouldConvertImageType'](_0x35b699['value'],_0x593bac)?(_0x20759c({..._0x35b699,'setImageSizes':!0x1}),_0x593bac=_0x465784['getClosestSelectedImageElement'](_0x4625b9['model']['document']['selection']),void _0x19622b['markBlockFormat'](_0x593bac,{..._0x112b84,'commandReversedParams':[{'value':_0x40677b||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x465784['isBlockImage'](_0x593bac)?_0x19622b['markBlockFormat'](_0x593bac,_0x112b84,[],'imageStylePostApply'):_0x19622b['markInlineFormat'](_0x25c09b,_0x112b84,'imageStylePostApply'));});});for(const _0xf2c4c4 of _0x4625b9['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x215f7e[_0xf2c4c4['name']]=_0xf2c4c4['title']['toLowerCase']();_0x19622b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x19622b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x19622b['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x19622b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x1a5593])=>{_0x465784['setImageNaturalSizeAttributes'](_0x1a5593['getContainedElement']());}),_0x19622b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x532b4b,_0x1fb428)=>{_0x19622b['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x532b4b,{'commandName':_0x1fb428['commandName'],'commandParams':_0x1fb428['commandReversedParams']});}),_0x19622b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x3fbcb3,_0x5800de){if(_0x310fad(_0x3fbcb3,_0x5800de))return[_0x3fbcb3,_0x5800de];if(_0x310fad(_0x5800de,_0x3fbcb3))return[_0x5800de,_0x3fbcb3];return null;});const _0x3e1ff7=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x310fad(_0x5a3273,_0x1e338d){const _0x2c8a32=_0x3e1ff7['findIndex'](({type:_0x12c3cf,subType:_0x5c0978})=>_0x5a3273['type']==_0x12c3cf&&_0x5a3273['subType']==_0x5c0978),_0x157c66=_0x3e1ff7['findIndex'](({type:_0x55eda4,subType:_0x89a48a})=>_0x1e338d['type']==_0x55eda4&&_0x1e338d['subType']==_0x89a48a);if(_0x2c8a32<0x0||_0x157c66<0x0)return!0x1;const _0x4ebc33=_0x5a3273['getFirstRange'](),_0x3c5fc1=_0x1e338d['getFirstRange']();if((0x0==_0x2c8a32||0x1==_0x2c8a32)&&0x2==_0x157c66&&_0x4ebc33['isIntersecting'](_0x3c5fc1))return!0x0;if(0x2==_0x2c8a32&&0x3==_0x157c66){const _0x2ebbcd=_0x19622b['_findSuggestions'](_0x4ebc33,'insertion')['filter'](({suggestion:_0x3716a8,meta:_0x17822c})=>_0x17822c['isOwn']&&'convertInlineImageToBlock'==_0x3716a8['subType']);if(_0x2ebbcd['length']>0x1&&_0x3c5fc1['end']['isEqual'](_0x4ebc33['start']))return!0x0;if(0x1==_0x2ebbcd['length']&&(_0x4ebc33['start']['isEqual'](_0x3c5fc1['end'])||_0x4ebc33['end']['isEqual'](_0x3c5fc1['start'])))return!0x0;}if(0x3==_0x2c8a32&&0x3==_0x157c66&&_0x4ebc33['start']['isBefore'](_0x3c5fc1['start'])){const _0x49c2fe=_0x4ebc33['end']['nodeAfter'],_0x5e2631=_0x3c5fc1['start']['nodeBefore'];return _0x465784['isBlockImage'](_0x49c2fe)&&_0x49c2fe===_0x5e2631;}return!0x1;}_0x4625b9['model']['document']['registerPostFixer'](()=>{let _0x3ebf1c=!0x1;const _0x2b6ee2=Array['from'](_0x4625b9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x262ce5,data:_0x368adf}of _0x2b6ee2){const {group:_0x4fcf8f,type:_0x2424f1,subType:_0x1334ae,id:_0x4f0583}=_0x19622b['_splitMarkerName'](_0x262ce5);if('suggestion'==_0x4fcf8f&&_0x19622b['hasSuggestion'](_0x4f0583)){if('formatBlock'==_0x2424f1&&('imageStylePreApply'==_0x1334ae||'imageStylePostApply'==_0x1334ae)){const _0xa7308e=_0x19622b['getSuggestion'](_0x4f0583);if(_0x368adf['newRange']){const _0xd1c50c=_0xa7308e['getFirstRange']()['getContainedElement']();if(_0x465784['isBlockImage'](_0xd1c50c))continue;_0x19622b['discardSuggestion'](_0xa7308e),_0x3ebf1c=!0x0;}}if('insertion'==_0x2424f1&&'imageCaption'==_0x1334ae&&!_0x368adf['newRange']){const _0x153664=_0x19622b['getSuggestion'](_0x4f0583);_0x153664['next']&&_0x153664['next']['isInContent']&&(_0x19622b['discardSuggestion'](_0x153664['next']),_0x3ebf1c=!0x0);}}}return _0x3ebf1c;}),this['_registerLegacyDescription'](_0x215f7e);}['_registerLegacyDescription'](_0x263b59){const _0x1e0482=this['editor'],_0x612777=_0x1e0482['locale'];_0x1e0482['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x158935=>{if('formatBlock'!=_0x158935['type']&&'formatInline'!=_0x158935['type'])return;const {data:_0xd4aca9}=_0x158935;if(!_0xd4aca9||'imageStyle'!=_0xd4aca9['commandName'])return;const _0x58fce8=_0xd4aca9['commandParams'][0x0]['value'];return _0x349d35('side'===_0x58fce8?c(_0x612777,'FORMAT_SIDE_IMAGE'):_0x263b59[_0x58fce8]||_0x58fce8);function _0x349d35(_0x526003){return{'type':'format','content':c(_0x612777,'*Format:*\x20%0',_0x526003)};}});}}class ct extends _0x53ae92{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x11b93d){super(_0x11b93d),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x233cdf=this['editor'],_0x57e772=_0x233cdf['commands']['get']('importWord'),_0x4862b7=_0x233cdf['commands']['get']('trackChanges');_0x57e772&&(_0x57e772['on']('execute',(_0x311a50,[,_0xbb6f33])=>{this['_trackChangesValueDuringImport']=_0x4862b7['value'],_0xbb6f33['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x57e772,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x57e772,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x4862b7['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x233cdf['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x42c599,_0x24cd3e){const {suggestions:_0x2c43a4}=_0x24cd3e,_0x2cfaa9=this['editor']['commands']['get']('trackChanges'),_0xb81741=_0x2cfaa9['value'];this['_trackChangesValueDuringImport']!==_0xb81741&&(_0x2cfaa9['execute'](),this['_trackChangesExecuted']=!0x0),_0x2c43a4&&_0x2c43a4['forEach'](({id:_0x18124c,type:_0x27d84f,author:_0x1aadcf,created_at:_0x209511})=>{const _0x1622d7={'id':_0x18124c,'type':_0x27d84f,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x1aadcf,'createdAt':_0x209511?new Date(_0x209511):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1622d7);});}}class ut extends _0x53ae92{['afterInit'](){const _0x161c6c=this['editor'],_0x43d4cf=_0x161c6c['plugins']['get']('TrackChangesEditing');if(_0x161c6c['plugins']['has']('IndentEditing')&&(_0x43d4cf['enableCommand']('indent'),_0x43d4cf['enableCommand']('outdent')),_0x161c6c['plugins']['has']('IndentBlock')){for(const _0x3f4820 of['indentBlock','outdentBlock'])_0x43d4cf['enableDefaultAttributesIntegration'](_0x3f4820);}const _0x46af60=_0x161c6c['locale'];_0x43d4cf['registerBlockAttribute']('blockIndent'),_0x43d4cf['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x46af60,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x13e2d6=this['editor'],_0x4c08eb=_0x13e2d6['locale'],_0x65b4ad=_0x13e2d6['plugins']['get']('TrackChangesEditing');_0x65b4ad['descriptionFactory']['registerDescriptionCallback'](_0x37c428=>{if('formatBlock'!=_0x37c428['type'])return;const {data:_0xdc2fbb}=_0x37c428;if(!_0xdc2fbb)return;if('indentBlock'!=_0xdc2fbb['commandName']&&'outdentBlock'!=_0xdc2fbb['commandName'])return;const _0x1688eb=_0x37c428['getItems']()[0x0],_0x4904f5=_0x65b4ad['descriptionFactory']['getItemLabel'](_0x1688eb);return'indentBlock'==_0xdc2fbb['commandName']?{'type':'format','content':c(_0x4c08eb,'*Indent:*\x20%0',_0x4904f5)}:'outdentBlock'==_0xdc2fbb['commandName']?{'type':'format','content':c(_0x4c08eb,'*Outdent:*\x20%0',_0x4904f5)}:void 0x0;});}}class ft extends _0x53ae92{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x53ae92{['afterInit'](){const _0x26d4e4=this['editor'];if(!_0x26d4e4['plugins']['has']('LinkEditing'))return;const _0x2fb99f=_0x26d4e4['plugins']['get']('TrackChangesEditing'),_0x57b65c=_0x26d4e4['commands']['get']('link');_0x2fb99f['enableDefaultAttributesIntegration']('link'),_0x2fb99f['enableDefaultAttributesIntegration']('unlink'),_0x2fb99f['registerInlineAttribute']('linkHref');for(const _0x14d7d5 of _0x57b65c['manualDecorators'])_0x2fb99f['registerInlineAttribute'](_0x14d7d5['id']),_0x2fb99f['descriptionFactory']['registerAttributeLabel'](_0x14d7d5['id'],'link\x20('+_0x14d7d5['label']['toLowerCase']()+')');_0x2fb99f['descriptionFactory']['registerDescriptionCallback'](_0x12e629=>{if('attribute'!=_0x12e629['type'])return;const {data:_0x52db5d}=_0x12e629;if(!_0x52db5d||'linkHref'!=_0x52db5d['key'])return;const _0x42c658=_0x52db5d['newValue'],_0x38cc08=_0x26d4e4['locale'];return{'type':'format','content':null==_0x42c658?c(_0x38cc08,'*Remove\x20link*'):c(_0x38cc08,'*Set\x20link:*\x20%0','\x22'+_0x42c658+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x54c3e5=this['editor'],_0x1bbc42=_0x54c3e5['locale'];_0x54c3e5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2de999=>{if('formatInline'!=_0x2de999['type'])return;const {data:_0x5ee7b4}=_0x2de999;if(_0x5ee7b4){if('link'==_0x5ee7b4['commandName']){const _0x3d8a9e=_0x5ee7b4['commandParams'][0x0];return{'type':'format','content':c(_0x1bbc42,'*Set\x20link:*\x20%0','\x22'+_0x3d8a9e+'\x22')};}return'unlink'==_0x5ee7b4['commandName']?{'type':'format','content':c(_0x1bbc42,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x53ae92{['afterInit'](){const _0x3b2fa5=this['editor'],_0x4e5274=_0x3b2fa5['locale'];if(!_0x3b2fa5['plugins']['has']('LegacyListEditing'))return;const _0x459bd9=_0x3b2fa5['plugins']['get']('TrackChangesEditing'),_0x46ea79=_0x3b2fa5['plugins']['has']('LegacyTodoListEditing');function _0x52320a(_0x2e2d3f){return()=>{const _0x4e337f=_0x3b2fa5['model']['document']['selection'],_0x17377d=_0x3b2fa5['commands']['get'](_0x2e2d3f);if(_0x17377d['value'])return void _0x3b2fa5['execute']('paragraph',{});const _0x138a31=_0x2e2d3f['slice'](0x0,-0x4),_0x487e7d=function(_0x2c10ff,_0x25fde6,_0x36c516){let _0x4da2ff=Array['from'](_0x2c10ff)['filter'](_0x1cb16f=>function(_0x39fb30,_0x19f967){return _0x19f967['checkChild'](_0x39fb30['parent'],'listItem')&&!_0x19f967['isObject'](_0x39fb30);}(_0x1cb16f,_0x36c516));_0x4da2ff=_0x4da2ff['filter'](_0x30dc74=>!_0x30dc74['is']('element','listItem')||_0x30dc74['getAttribute']('listType')!=_0x25fde6);const _0x589fb6=new Set();for(const _0x5d6eae of _0x4da2ff)_0x5d6eae['is']('element','listItem')?_0x589fb6['add'](Le(_0x5d6eae)):_0x589fb6['add'](_0x5d6eae);return Array['from'](_0x589fb6);}(_0x4e337f['getSelectedBlocks'](),_0x138a31,_0x3b2fa5['model']['schema']);_0x3b2fa5['model']['change'](()=>{for(const _0x371da0 of _0x487e7d)_0x459bd9['markBlockFormat'](_0x371da0,{'commandName':_0x2e2d3f,'commandParams':[{'forceValue':!_0x17377d['value']}],'formatGroupId':'blockName'},Ee(_0x371da0));});};}function _0x537bfa(_0x33c947){return()=>{const _0xe76d53=function(_0x3734d5){let _0x5a317b=Array['from'](_0x3734d5);const _0x4377df=_0x5a317b['findIndex'](_0x31f6f2=>'listItem'!=_0x31f6f2['name']);return _0x4377df>-0x1&&(_0x5a317b=_0x5a317b['slice'](0x0,_0x4377df)),_0x5a317b;}(_0x3b2fa5['model']['document']['selection']['getSelectedBlocks']()),_0x495e28=_0x3b2fa5['model']['createRange'](_0x3b2fa5['model']['createPositionAt'](_0xe76d53[0x0],'before'),_0x3b2fa5['model']['createPositionAt'](_0xe76d53[_0xe76d53['length']-0x1],'end'));_0x3b2fa5['model']['change'](()=>{_0x459bd9['markBlockFormat'](_0x495e28,{'commandName':_0x33c947,'commandParams':[],'formatGroupId':'listIndent'},function(_0x3c8a52){const _0x41a4f3=new Set();for(const _0x2e2c3b of _0x3c8a52){let _0x4b80c7=_0x2e2c3b['nextSibling'];for(;_0x4b80c7&&_0x4b80c7['getAttribute']('listIndent')>_0x2e2c3b['getAttribute']('listIndent');)_0x41a4f3['add'](_0x4b80c7),_0x4b80c7=_0x4b80c7['nextSibling'];}return Array['from'](_0x41a4f3);}(_0xe76d53));});};}_0x459bd9['enableCommand']('numberedList',_0x52320a('numberedList')),_0x459bd9['enableCommand']('bulletedList',_0x52320a('bulletedList')),_0x46ea79&&_0x459bd9['enableCommand']('todoList',_0x52320a('todoList')),_0x459bd9['enableCommand']('indentList',_0x537bfa('indentList')),_0x459bd9['enableCommand']('outdentList',_0x537bfa('outdentList')),_0x46ea79&&_0x459bd9['enableCommand']('checkTodoList',()=>{const _0x206e38=_0x3b2fa5['commands']['get']('checkTodoList'),_0x443961=Array['from'](_0x206e38['_selectedElements']);_0x443961['filter'](_0x1886aa=>_0x1886aa['getAttribute']('todoListChecked')!=_0x206e38['value']),_0x3b2fa5['model']['change'](()=>{for(const _0x143fa9 of _0x443961)_0x459bd9['markBlockFormat'](_0x143fa9,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x206e38['value']}]});});}),_0x459bd9['descriptionFactory']['registerElementLabel']('listItem',_0x11f561=>c(_0x4e5274,'ELEMENT_LIST_ITEM',_0x11f561)),_0x459bd9['descriptionFactory']['registerDescriptionCallback'](_0x3eb263=>{if('formatBlock'!=_0x3eb263['type']&&'formatInline'!=_0x3eb263['type'])return;const {data:_0x159d35}=_0x3eb263;if(_0x159d35){if('numberedList'==_0x159d35['commandName']||'bulletedList'==_0x159d35['commandName']||'todoList'==_0x159d35['commandName'])switch(_0x159d35['commandName']['replace']('List','')){case'bulleted':return _0x14c662(c(_0x4e5274,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x14c662(c(_0x4e5274,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x14c662(c(_0x4e5274,'ELEMENT_TODO_LIST'));}if('indentList'==_0x159d35['commandName'])return{'type':'format','content':c(_0x4e5274,'*Indent:*\x20%0',c(_0x4e5274,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x159d35['commandName'])return{'type':'format','content':c(_0x4e5274,'*Outdent:*\x20%0',c(_0x4e5274,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x159d35['commandName'])return _0x159d35['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x4e5274,'*Check\x20item*')}:{'type':'format','content':c(_0x4e5274,'*Uncheck\x20item*')};}function _0x14c662(_0x1abe71){return{'type':'format','content':c(_0x4e5274,'*Change\x20to:*\x20%0',_0x1abe71)};}});}}function Le(_0xfb85e2){const _0x2575c1=_0xfb85e2['getAttribute']('listIndent');if(0x0==_0x2575c1)return _0xfb85e2;let _0x16a58f=_0xfb85e2;for(;_0xfb85e2['previousSibling']&&_0xfb85e2['previousSibling']['is']('element','listItem');){const _0x565d75=_0xfb85e2['previousSibling']['getAttribute']('listIndent');if(_0x565d75==_0x2575c1)_0x16a58f=_0xfb85e2['previousSibling'];else{if(_0x565d75<_0x2575c1)break;}_0xfb85e2=_0xfb85e2['previousSibling'];}return _0x16a58f;}function Ee(_0x2f771c){const _0x71f8d6=[];if(_0x2f771c['is']('element','listItem')&&_0x2f771c['getAttribute']('listIndent')>0x0){let _0x13989c=_0x2f771c['nextSibling'];for(;_0x13989c&&'listItem'==_0x13989c['name']&&_0x13989c['getAttribute']('listIndent')==_0x2f771c['getAttribute']('listIndent');)_0x71f8d6['push'](_0x13989c),_0x13989c=_0x13989c['nextSibling'];}return _0x71f8d6;}class Q extends _0x53ae92{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x2408f8=this['editor']['config']['get']('list.properties'),_0x166997=this['editor']['plugins']['get']('TrackChangesEditing');_0x2408f8['styles']&&_0x166997['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x2408f8['reversed']&&_0x166997['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x2408f8['startIndex']&&_0x166997['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x166997['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0xf2d1cf,_0x8799a9={}){const _0x13b554=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2976a7=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x13b554['markMultiRangeBlockFormat'](_0x2976a7,{'commandName':'listStyle','commandParams':[{'type':_0x8799a9['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x3b16da,_0xcc0bfb={}){const _0x1a0935=this['editor']['plugins']['get']('TrackChangesEditing'),_0x51dea9=this['_getSuggestionBlocks'](_0x451ca2=>_0x451ca2['is']('element','listItem')&&'numbered'===_0x451ca2['getAttribute']('listType'));if(_0x51dea9['length']<0x1)return;const _0x5641cd=_0x51dea9['map'](_0x19b0b6=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x19b0b6,'before'),this['editor']['model']['createPositionAt'](_0x19b0b6,0x0)));this['editor']['model']['change'](()=>{_0x1a0935['markMultiRangeBlockFormat'](_0x5641cd,{'commandName':'listReversed','commandParams':[{'reversed':_0xcc0bfb['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x110434,_0x2c2e9f={}){const _0x2b0ba2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x17c278=this['_getSuggestionBlocks'](_0x380058=>_0x380058['is']('element','listItem')&&'numbered'===_0x380058['getAttribute']('listType'));if(_0x17c278['length']<0x1)return;const _0x34ab16=_0x17c278['map'](_0x2d7dc6=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2d7dc6,'before'),this['editor']['model']['createPositionAt'](_0x2d7dc6,0x0)));this['editor']['model']['change'](()=>{_0x2b0ba2['markMultiRangeBlockFormat'](_0x34ab16,{'commandName':'listStart','commandParams':[{'startIndex':_0x2c2e9f['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x43819f){if('formatBlock'!=_0x43819f['type']&&'formatInline'!=_0x43819f['type'])return;const _0x367662=this['editor']['locale'],{data:_0x4b6db9}=_0x43819f;if(!_0x4b6db9)return;let _0x5a4d13,_0x27f21e;switch(_0x4b6db9['commandName']){case'listStyle':_0x5a4d13='*Change\x20to:*\x20%0',_0x27f21e={'type':'format','content':c(_0x367662,_0x5a4d13,c(_0x367662,this['_getTranslationKeyForListStyle'](_0x4b6db9['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5a4d13=_0x4b6db9['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x27f21e={'type':'format','content':c(_0x367662,_0x5a4d13)};break;case'listStart':_0x5a4d13='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x27f21e={'type':'format','content':c(_0x367662,_0x5a4d13,_0x4b6db9['commandParams'][0x0]['startIndex'])};}return _0x27f21e;}['_getSuggestionBlocksForListStyle'](){const _0x5865fc=this['editor']['plugins']['get']('LegacyListUtils');let _0x322253=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x322253[0x0]?.['is']('element','listItem')&&_0x322253['unshift'](..._0x5865fc['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x322253[_0x322253['length']-0x1]?.['is']('element','listItem')&&_0x322253['push'](..._0x5865fc['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x322253=[...new Set(_0x322253)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x322253=_0x322253['filter'](_0x1df09a=>_0x1df09a['is']('element','listItem'))),_0x322253;}['_getSuggestionBlocks'](_0x194d62){const _0x57b30=this['editor']['plugins']['get']('LegacyListUtils');let _0x142b8d=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x194d62)['map'](_0x40ff5c=>{const _0x269229=this['editor']['model']['createPositionAt'](_0x40ff5c,0x0);return[..._0x57b30['getSiblingNodes'](_0x269229,'backward'),..._0x57b30['getSiblingNodes'](_0x269229,'forward')];})['flat']();return _0x142b8d=[...new Set(_0x142b8d)],_0x142b8d;}['_getTranslationKeyForListStyle'](_0x4aa9cb){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x4aa9cb)||'default')['toUpperCase']()+'_LIST_'+_0x4aa9cb['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x53ae92{['afterInit'](){const _0x17da02=this['editor'];if(!_0x17da02['plugins']['has']('MediaEmbedEditing'))return;const _0x4a97df=_0x17da02['plugins']['get']('TrackChangesEditing'),_0x5a8176=_0x17da02['locale'];_0x4a97df['enableCommand']('mediaEmbed'),_0x4a97df['descriptionFactory']['registerElementLabel']('media',_0x442027=>c(_0x5a8176,'ELEMENT_MEDIA',_0x442027)),_0x17da02['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x21a631,{writer:_0x3853f7,options:_0x396d34})=>{if(_0x396d34['showSuggestionHighlights'])return _0x3853f7['createEmptyElement']('div');},'converterPriority':'high'}),_0x17da02['data']['downcastDispatcher']['on']('attribute:url:media',(_0x5306a4,_0x4fadbb,_0x1cb441)=>{_0x1cb441['options']['showSuggestionHighlights']&&_0x5306a4['stop']();},{'priority':'high'});}}class mt extends _0x53ae92{['afterInit'](){const _0x440940=this['editor'];_0x440940['plugins']['has']('MentionEditing')&&_0x440940['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0x53ae92{['afterInit'](){const _0x5470a0=this['editor'];if(!_0x5470a0['plugins']['has']('MergeFieldsEditing'))return;const _0x2275cb=_0x5470a0['plugins']['get']('TrackChangesEditing'),_0x9d5190=_0x5470a0['locale'];_0x2275cb['enableCommand']('insertMergeField'),_0x2275cb['enableCommand']('insertMergeFieldBlock'),_0x2275cb['enableCommand']('insertMergeFieldImage'),_0x2275cb['descriptionFactory']['registerElementLabel']('mergeField',_0x3133bd=>c(_0x9d5190,'ELEMENT_MERGE_FIELD',_0x3133bd)),_0x2275cb['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x341d84=>c(_0x9d5190,'ELEMENT_MERGE_FIELD',_0x341d84)),_0x2275cb['descriptionFactory']['registerDescriptionCallback'](_0x5d3e45=>{if('insertion'!=_0x5d3e45['type']&&'deletion'!=_0x5d3e45['type'])return;const _0x2477a8=_0x5d3e45['getContainedElement']();if(null==_0x2477a8)return;const _0x741d9e=_0x5470a0['plugins']['get']('MergeFieldsEditing');let _0x2c30c3;switch(_0x741d9e['getMergeFieldType'](_0x2477a8)){case null:return;case'image':{const _0x47e665=_0x741d9e['unwrapAffixes'](_0x2477a8['getAttribute']('src'));_0x2c30c3=_0x741d9e['getLabel'](_0x47e665)||_0x47e665;break;}default:{const _0x479911=_0x2477a8['getAttribute']('id');_0x2c30c3=_0x741d9e['getLabel'](_0x479911)||_0x479911;break;}}return'insertion'==_0x5d3e45['type']?{'type':'insertion','content':c(_0x9d5190,'*Insert:*\x20%0','\x22'+_0x2c30c3+'\x22\x20'+c(_0x9d5190,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x9d5190,'*Remove:*\x20%0','\x22'+_0x2c30c3+'\x22\x20'+c(_0x9d5190,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x53ae92{['afterInit'](){const _0x182151=this['editor'],_0x46360a=_0x182151['plugins']['get']('TrackChangesEditing');_0x182151['plugins']['has']('MultiLevelList')&&(_0x46360a['enableDefaultAttributesIntegration']('multiLevelList'),_0x46360a['registerBlockAttribute']('listMarkerStyle'),_0x46360a['descriptionFactory']['registerDescriptionCallback'](_0x29ed2b=>this['handleDescriptions'](_0x29ed2b)));}['handleDescriptions'](_0x30dcec){const _0x2b4a88=this['editor']['locale'],{data:_0x2b13c3}=_0x30dcec,_0x504311={'type':'format','content':''};if(_0x2b13c3&&'listMarkerStyle'==_0x2b13c3['key']){if(!_0x2b13c3['oldValue'])return{'type':'format','content':c(_0x2b4a88,'*Set\x20format:*\x20%0',c(_0x2b4a88,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2b13c3['newValue']+')'};if(!_0x2b13c3['newValue']){let _0x598d6e=_0x30dcec['head'];for(;_0x598d6e;){if(_0x598d6e['data']&&'listType'==_0x598d6e['data']['key']&&_0x598d6e['data']['newValue'])return _0x504311;_0x598d6e=_0x598d6e['next'];}return{'type':'format','content':c(_0x2b4a88,'*Remove\x20format:*\x20%0',c(_0x2b4a88,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2b13c3['oldValue']+')'};}}}}class kt extends _0x53ae92{['afterInit'](){const _0x2f9660=this['editor'];if(!_0x2f9660['plugins']['has']('PageBreakEditing'))return;_0x2f9660['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0xa79cbe=_0x2f9660['plugins']['get']('TrackChangesEditing'),_0x42fcb3=_0x2f9660['locale'];_0xa79cbe['descriptionFactory']['registerElementLabel']('pageBreak',_0x2a0ba1=>c(_0x42fcb3,'ELEMENT_PAGE_BREAK',_0x2a0ba1));}}class bt extends _0x53ae92{['afterInit'](){const _0x2b6f60=this['editor'];if(!_0x2b6f60['plugins']['has']('Paragraph'))return;const _0x2f325e=_0x2b6f60['locale'],_0x47a980=_0x2b6f60['plugins']['get']('TrackChangesEditing');_0x47a980['descriptionFactory']['registerElementLabel']('paragraph',_0x12134b=>c(_0x2f325e,'ELEMENT_PARAGRAPH',_0x12134b)),_0x47a980['enableDefaultAttributesIntegration']('paragraph'),_0x47a980['enableCommand']('insertParagraph'),_0x2b6f60['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x2b6f60),{'priority':'highest'}),_0x2b6f60['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x36d191,_0xb375d8,_0x33109b)=>{_0x33109b['options']['showSuggestionHighlights']&&nr(_0x2b6f60,{'showActiveMarker':!0x1})(_0x36d191,_0xb375d8,_0x33109b);},{'priority':'highest'});const _0x482141=_0x47a980['descriptionFactory'];_0x482141['registerDescriptionCallback'](_0x2628f7=>{if('insertion'!==_0x2628f7['type'])return;const {start:_0x4d3304,end:_0x34db03}=_0x2628f7['getFirstRange']();if(!_0x4d3304['isTouching'](_0x34db03)||!_0x4d3304['nodeAfter'])return;const _0x44cdba=_0x2b6f60['model']['schema'],_0x48b50c=_0x4d3304['nodeAfter'];return _0x44cdba['isBlock'](_0x48b50c)&&!_0x44cdba['isLimit'](_0x48b50c)&&_0x44cdba['checkChild'](_0x48b50c,'$text')?{'type':'insertion','content':c(_0x2f325e,'*Insert:*\x20%0',_0x482141['getItemLabel'](_0x48b50c,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5e8207=this['editor'],_0x5ef767=_0x5e8207['locale'];_0x5e8207['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x417b26=>{if('formatBlock'!=_0x417b26['type'])return;const {data:_0x2edce3}=_0x417b26;return _0x2edce3&&'paragraph'==_0x2edce3['commandName']?{'type':'format','content':c(_0x5ef767,'*Change\x20to:*\x20%0',c(_0x5ef767,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0xd81303,{showActiveMarker:_0x3da493=!0x0}={}){return(_0x110a1c,_0x19c4b4,_0x2e274e)=>{const _0x51517a=_0xd81303['plugins']['get']('TrackChangesEditing'),_0x5e2b84=_0x19c4b4['markerRange']['start'],_0x5eec5f=_0x19c4b4['markerRange']['end'],_0xab7b00=_0xd81303['model']['schema'];if(!_0x5e2b84['isTouching'](_0x5eec5f)||!_0x5e2b84['nodeAfter'])return;const _0x12df27=_0x5e2b84['nodeAfter'];if(_0xab7b00['isBlock'](_0x12df27)&&!_0xab7b00['isLimit'](_0x12df27)&&_0xab7b00['checkChild'](_0x12df27,'$text')){if(!_0x2e274e['consumable']['consume'](_0x19c4b4['markerRange'],_0x110a1c['name']))return;const {authorId:_0x4be3dd}=_0x51517a['_splitMarkerName'](_0x19c4b4['markerName']),_0x566526=_0x2e274e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x4be3dd}),_0x18f55f=_0x2e274e['mapper']['toViewPosition'](_0x5eec5f);_0x3da493&&_0x51517a['activeMarkers']['includes'](_0x19c4b4['markerName'])&&_0x2e274e['writer']['addClass']('ck-suggestion-marker--active',_0x566526),_0x2e274e['writer']['insert'](_0x18f55f,_0x566526),_0x2e274e['mapper']['bindElementToMarker'](_0x566526,_0x19c4b4['markerName']);}};}class yt extends _0x53ae92{['afterInit'](){const _0x2f6097=this['editor'];if(!_0x2f6097['plugins']['has']('RemoveFormatEditing'))return;_0x2f6097['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5c5da5=this['editor'];_0x5c5da5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2222ef=>{if('formatBlock'!=_0x2222ef['type']&&'formatInline'!=_0x2222ef['type'])return;const {data:_0xab216d}=_0x2222ef;return _0xab216d&&'removeFormat'==_0xab216d['commandName']?{'type':'format','content':c(_0x5c5da5['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0x53ae92{['afterInit'](){const _0x1eb560=this['editor'];if(!_0x1eb560['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x1ee3fe=_0x1eb560['plugins']['get']('TrackChangesEditing');_0x1ee3fe['enableCommand']('goToPreviousRestrictedEditingException'),_0x1ee3fe['enableCommand']('goToNextRestrictedEditingException');const _0x1cdcfe=_0x1eb560['plugins']['get']('RestrictedEditingModeEditing');_0x1cdcfe['enableCommand']('trackChanges'),_0x1cdcfe['enableCommand']('acceptSuggestion'),_0x1cdcfe['enableCommand']('discardSuggestion'),_0x1cdcfe['enableCommand']('acceptAllSuggestions'),_0x1cdcfe['enableCommand']('discardAllSuggestions'),_0x1cdcfe['enableCommand']('acceptSelectedSuggestions'),_0x1cdcfe['enableCommand']('discardSelectedSuggestions');}}class St extends _0x53ae92{static get['requires'](){return[_0x35e7df];}['init'](){const _0x3563d7=this['editor'],_0x3df5e4=_0x3563d7['plugins']['get']('TrackChangesEditing');_0x3df5e4['enableCommand']('shiftEnter'),_0x3563d7['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x3563d7),{'priority':'high'}),_0x3563d7['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x3563d7),{'priority':'high'}),_0x3563d7['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2b4304,_0x36cdc6,_0x2298d9)=>{_0x2298d9['options']['showSuggestionHighlights']&&je(_0x3563d7,{'showActiveMarker':!0x1})(_0x2b4304,_0x36cdc6,_0x2298d9);}),_0x3df5e4['descriptionFactory']['registerElementLabel']('softBreak',_0x327ce8=>c(_0x3563d7['locale'],'ELEMENT_LINE_BREAK',_0x327ce8));}}function je(_0x3e38f5,{showActiveMarker:_0xa0d30a=!0x0}={}){return(_0x3ce727,_0x44f710,_0x3d5272)=>{const _0x37fc77=_0x3e38f5['plugins']['get']('TrackChangesEditing');if(!_0x3d5272['consumable']['test'](_0x44f710['markerRange'],_0x3ce727['name']))return;const _0x41d434=_0x3e38f5['model'];for(const _0x1a4283 of _0x44f710['markerRange']['getItems']()){if(!_0x1a4283['is']('element','softBreak'))continue;const _0x49c313='deletion'==_0x44f710['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x4e6554}=_0x37fc77['_splitMarkerName'](_0x44f710['markerName']),_0xe03664=_0x3d5272['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x49c313,'data-author-id':_0x4e6554}),_0x4e10f2=_0x3d5272['mapper']['toViewPosition'](_0x41d434['createPositionBefore'](_0x1a4283));_0xa0d30a&&_0x37fc77['activeMarkers']['includes'](_0x44f710['markerName'])&&_0x3d5272['writer']['addClass']('ck-suggestion-marker--active',_0xe03664),_0x3d5272['writer']['insert'](_0x4e10f2,_0xe03664),_0x3d5272['mapper']['bindElementToMarker'](_0xe03664,_0x44f710['markerName']);}};}class At extends _0x53ae92{['afterInit'](){const _0x580296=this['editor'],_0x11e1da=_0x580296['model'],_0x28d1b4=_0x580296['locale'];if(!_0x580296['plugins']['has']('StandardEditingModeEditing'))return;const _0x5aeebf=_0x580296['plugins']['get']('TrackChangesEditing'),_0x1a2eb8='restrictedEditingException',_0x1dd46c=_0x580296['commands']['get'](_0x1a2eb8);_0x5aeebf['enableCommand'](_0x1a2eb8,(_0x5a7d4e,_0x40933f={})=>{const _0x5ae51a=_0x11e1da['document']['selection'];if(_0x5ae51a['isCollapsed'])return void _0x5a7d4e(_0x40933f);const _0x1ad46a=void 0x0!==_0x40933f['forceValue']?_0x40933f['forceValue']:!_0x1dd46c['value'];_0x11e1da['change'](()=>{const _0x4b9129=Array['from'](_0x5ae51a['getRanges']());for(const _0xc97528 of _0x4b9129){const _0x45f654=_0x1ad46a?[_0xc97528]:no(_0x1a2eb8,_0xc97528,_0x11e1da);for(const _0x1cd78f of _0x45f654)_0x5aeebf['markInlineFormat'](_0x1cd78f,{'commandName':_0x1a2eb8,'commandParams':[{'forceValue':_0x1ad46a}]});}});}),_0x5aeebf['descriptionFactory']['registerDescriptionCallback'](_0x1d8d97=>{if('formatBlock'!=_0x1d8d97['type']&&'formatInline'!=_0x1d8d97['type'])return;const {data:_0x20776c}=_0x1d8d97;return _0x20776c&&_0x20776c['commandName']==_0x1a2eb8?_0x20776c['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x28d1b4,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x28d1b4,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x53ae92{['afterInit'](){const _0x3bc567=this['editor'];if(!_0x3bc567['plugins']['has']('Style')||!_0x3bc567['plugins']['has']('DataSchema'))return;const _0x12b2c0=_0x3bc567['plugins']['get']('TrackChangesEditing'),_0x378bdd=_0x3bc567['locale'],_0x4e1008=_0x3bc567['config']['get']('style')||{},_0x4c295a=_0x3bc567['plugins']['get']('GeneralHtmlSupport'),_0x2cb967=_0x3bc567['plugins']['get']('StyleUtils')['normalizeConfig'](_0x3bc567['plugins']['get']('DataSchema'),_0x4e1008['definitions']);_0x12b2c0['enableDefaultAttributesIntegration']('style');const _0x148096=new Set();for(const _0x2467c3 of _0x2cb967['block']){const _0x4673ec=_0x4c295a['getGhsAttributeNameForElement'](_0x2467c3['element']);_0x148096['add'](_0x4673ec);}const _0x52e730=new Set();for(const _0x236a45 of _0x2cb967['inline']){const _0x8bef94=_0x4c295a['getGhsAttributeNameForElement'](_0x236a45['element']);_0x52e730['add'](_0x8bef94);for(const _0x2d41d0 of _0x236a45['ghsAttributes'])_0x52e730['add'](_0x2d41d0);}for(const _0x1466c3 of _0x148096)_0x12b2c0['registerBlockAttribute'](_0x1466c3),_0x12b2c0['descriptionFactory']['registerAttributeLabel'](_0x1466c3,c(_0x378bdd,'FORMAT_STYLE'));for(const _0x3941ca of _0x52e730)_0x12b2c0['registerInlineAttribute'](_0x3941ca),_0x12b2c0['descriptionFactory']['registerAttributeLabel'](_0x3941ca,c(_0x378bdd,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4afeee=this['editor'],_0x4dc2ae=_0x4afeee['locale'];_0x4afeee['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4e65ae=>{if('formatBlock'!=_0x4e65ae['type']&&'formatInline'!=_0x4e65ae['type'])return;const {data:_0x45f7ab}=_0x4e65ae;return _0x45f7ab&&'style'===_0x45f7ab['commandName']?_0x45f7ab['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x4dc2ae,'*Set\x20format:*\x20%0',_0x45f7ab['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x4dc2ae,'*Remove\x20format:*\x20%0',_0x45f7ab['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class _t extends _0x53ae92{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x5afabc){super(_0x5afabc),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x5072e4=this['editor'],_0x53b595=_0x5072e4['model']['document']['selection'];if(!_0x5072e4['plugins']['has']('TableEditing'))return;const _0x8d5024=_0x5072e4['locale'],_0x180aca=_0x5072e4['plugins']['get']('TrackChangesEditing'),_0x51aff6=_0x5072e4['plugins']['get']('TableUtils');_0x180aca['descriptionFactory']['registerElementLabel']('table',_0x3209d3=>c(_0x8d5024,'ELEMENT_TABLE',_0x3209d3)),this['_setupColumnsRowsFixing'](),_0x180aca['enableCommand']('insertTable'),_0x180aca['enableCommand']('selectTableRow'),_0x180aca['enableCommand']('selectTableColumn');for(const _0xbcd3ba of['insertTableRowAbove','insertTableRowBelow']){const _0xe286bd=_0x5072e4['commands']['get'](_0xbcd3ba);_0x180aca['enableCommand'](_0xbcd3ba,_0x823ab8=>{_0x5072e4['model']['change'](_0x201c00=>{_0x823ab8();const _0x5606c4='above'===_0xe286bd['order'],_0x5cb7d1=_0x51aff6['getSelectionAffectedTableCells'](_0x53b595),_0x44c54a=_0x51aff6['getRowIndexes'](_0x5cb7d1),_0x44595a=_0x5606c4?_0x44c54a['first']-0x1:_0x44c54a['last']+0x1,_0x30131b=_0x5cb7d1[0x0]['findAncestor']('table'),_0x1cd015=_0x51aff6['createTableWalker'](_0x30131b,{'startRow':_0x44595a,'endRow':_0x44595a}),_0x3701cc=Array['from'](_0x1cd015)['map'](_0x3f2552=>_0x201c00['createRangeOn'](_0x3f2552['cell']));_0x180aca['markMultiRangeInsertion'](_0x3701cc,'tableRow');});});}for(const _0x1331b3 of['insertTableColumnLeft','insertTableColumnRight']){const _0x4f8ff3=_0x5072e4['commands']['get'](_0x1331b3);_0x180aca['enableCommand'](_0x1331b3,_0x406262=>{_0x5072e4['model']['change'](_0x3f5775=>{_0x406262();const _0x42c6ee='left'===_0x4f8ff3['order'],_0x32e34c=_0x51aff6['getSelectionAffectedTableCells'](_0x53b595),_0x1fe7b7=_0x51aff6['getColumnIndexes'](_0x32e34c),_0x4a660a=_0x42c6ee?_0x1fe7b7['first']-0x1:_0x1fe7b7['last']+0x1,_0x42e32e=_0x32e34c[0x0]['findAncestor']('table'),_0x5d8ecd=_0x51aff6['createTableWalker'](_0x42e32e,{'startRow':0x0,'column':_0x4a660a,'includeAllSlots':!0x1}),_0x467e01=Array['from'](_0x5d8ecd)['map'](_0x37d77f=>_0x3f5775['createRangeOn'](_0x37d77f['cell']));_0x180aca['markMultiRangeInsertion'](_0x467e01,'tableColumn');});});}for(const _0x2450b6 of['removeTableRow','removeTableColumn']){const _0x1ed5d6=_0x2450b6['substr'](0xb),_0x90d4e=_0x1ed5d6['toLowerCase'](),_0x11230b=_0x90d4e['substr'](0x0,0x3)+'span',_0x587ccc='table'+_0x1ed5d6,_0x500d87='min'+_0x1ed5d6,_0x353abf='max'+_0x1ed5d6;_0x180aca['enableCommand'](_0x2450b6,()=>{_0x5072e4['model']['change'](_0x1eb875=>{const _0x384018=_0x51aff6['getSelectionAffectedTableCells'](_0x53b595),_0x83a344=_0x384018[0x0]['findAncestor']('table');let _0x520511;if('removeTableRow'==_0x2450b6){const _0x51b931=_0x51aff6['getRowIndexes'](_0x384018);_0x520511={'startRow':_0x51b931['first'],'endRow':_0x51b931['last'],'includeAllSlots':!0x0};}else{const _0x4ba385=_0x51aff6['getColumnIndexes'](_0x384018);_0x520511={'startColumn':_0x4ba385['first'],'endColumn':_0x4ba385['last'],'includeAllSlots':!0x0};}const _0xa361c7=_0x51aff6['createTableWalker'](_0x83a344,_0x520511),_0x2b8ce3=Array['from'](_0xa361c7)['map'](({cell:_0x157e94})=>_0x157e94),_0x1b622b=Ne(_0x2b8ce3['filter'](_0x4e1ce8=>_0x4e1ce8['hasAttribute'](_0x11230b))),_0x5872da=Ne(_0x2b8ce3['filter'](_0x3b66d2=>!_0x3b66d2['hasAttribute'](_0x11230b)))['map'](_0x195443=>_0x1eb875['createRangeOn'](_0x195443)),_0x3a81a0=_0x180aca['markMultiRangeDeletion'](_0x5872da,_0x587ccc);if(_0x3a81a0&&('tableRow'==_0x3a81a0['subType']||'tableColumn'==_0x3a81a0['subType'])){const _0x214d86=this['_getSuggestionCoords'](_0x3a81a0);for(const _0x18d2fb of _0x1b622b){const _0x3af098=_0x1eb875['createRangeOn'](_0x18d2fb),_0x277a70=_0x51aff6['getCellLocation'](_0x18d2fb),_0x49c855=_0x18d2fb['getAttribute'](_0x11230b)-0x1,_0x299799=_0x214d86[_0x500d87],_0xbc423f=_0x214d86[_0x353abf];_0x299799<=_0x277a70[_0x90d4e]&&_0x277a70[_0x90d4e]+_0x49c855<=_0xbc423f&&_0x3a81a0['addRange'](_0x3af098);}}});});}function _0x57b576(_0x237099){const _0x42d8ec=Array['from'](_0x53b595['getRanges']())['map'](_0x144c14=>_0x7362da['fromRange'](_0x144c14));_0x5072e4['model']['change'](_0x1397d3=>{const _0x274e52=_0x1397d3['batch'];_0x237099=_0x237099['filter'](_0x534543=>'$graveyard'!=_0x534543['root']['rootName']),_0x1397d3['setSelection'](_0x237099),_0x5072e4['commands']['get']('removeTableRow')['refresh'](),_0x5072e4['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x5072e4['model']['enqueueChange'](()=>{_0x5072e4['model']['enqueueChange'](_0x274e52,_0x1a1912=>{const _0x3f8ca4=_0x42d8ec['filter'](_0x47d0cf=>'$graveyard'!=_0x47d0cf['root']['rootName']);_0x3f8ca4['length']>0x0&&_0x1a1912['setSelection'](_0x3f8ca4);for(const _0x265106 of _0x42d8ec)_0x265106['detach']();});});});}function _0x57466d(_0x3da264){_0x5072e4['model']['change'](_0x1db899=>{const _0x165ab1=Array['from'](_0x53b595['getRanges']())['map'](_0x2d8ab8=>_0x7362da['fromRange'](_0x2d8ab8)),_0x30e9d6=[];for(const _0x3ab38e of _0x3da264)for(const _0x203c1 of _0x3ab38e['getItems']({'shallow':!0x0}))_0x30e9d6['push'](_0x203c1);for(const _0x2f9391 of _0x30e9d6)'$graveyard'!=_0x2f9391['root']['rootName']&&(_0x1db899['setSelection'](_0x1db899['createPositionAt'](_0x2f9391,0x0)),_0x5072e4['commands']['get']('removeTableColumn')['refresh'](),_0x5072e4['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x42b52b=_0x165ab1['filter'](_0x3be1ab=>'$graveyard'!=_0x3be1ab['root']['rootName']);_0x42b52b['length']>0x0&&_0x1db899['setSelection'](_0x42b52b);for(const _0x5bccb6 of _0x165ab1)_0x5bccb6['detach']();});}function _0x54a618(_0x3100ed,_0xbcf869){return _0xbcf869['every'](_0x679c48=>_0x3100ed['some'](_0x6a0a68=>_0x6a0a68['end']['isEqual'](_0x679c48['start'])||_0x679c48['end']['isEqual'](_0x6a0a68['start'])));}function _0xaec4ea(_0x1ad1ca,_0x517479){return!_0x1ad1ca['some'](_0x2a3cc8=>_0x517479['some'](_0x3bb874=>_0x2a3cc8['isIntersecting'](_0x3bb874)))&&_0x1ad1ca['some'](_0x4b692e=>_0x517479['some'](_0x2234c0=>_0x4b692e['end']['isTouching'](_0x2234c0['start'])));}_0x5072e4['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1c5192,_0x5d8c2f,_0x2d67d2)=>{if(!_0x2d67d2['options']['showSuggestionHighlights'])return;const _0x175bdb=_0x5d8c2f['item'];if(!_0x175bdb)return;const _0x196140=_0x2d67d2['mapper']['toViewElement'](_0x175bdb);function _0x4a1af7(_0xd69928){return Array['isArray'](_0xd69928)?_0xd69928:[_0xd69928];}_0x196140&&'tableCell'===_0x175bdb['name']&&_0xc49cfd(_0x196140,_0x2d67d2['writer'],(_0x6dbf3e,_0x822dc4,_0x2c5954)=>_0x2c5954['addClass'](_0x4a1af7(_0x822dc4['classes']),_0x6dbf3e),(_0x473698,_0x334e38,_0x35dbdf)=>_0x35dbdf['removeClass'](_0x4a1af7(_0x334e38['classes']),_0x473698));},{'priority':'highest'}),_0x180aca['descriptionFactory']['registerDescriptionCallback'](_0x3fc6dd=>{if('insertion'!=_0x3fc6dd['type']&&'deletion'!=_0x3fc6dd['type'])return;const _0x1dfb97=_0x3fc6dd['getContainedElement']();if(null!=_0x1dfb97&&_0x1dfb97['is']('element','table')){if('insertion'==_0x3fc6dd['type']){const _0x4c2471=_0x3fc6dd['getItems']()['filter'](_0x2d3494=>_0x2d3494['is']('$textProxy'))['map'](_0x27403e=>_0x27403e['data']);if(_0x4c2471['length'])return{'type':'insertion','content':c(_0x8d5024,'*Insert:*\x20%0',c(_0x8d5024,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4c2471['join']('\x20')+'\x22'))};}if('deletion'==_0x3fc6dd['type']){const _0x357a3e=_0x3fc6dd['getItems']()['filter'](_0x4d5511=>_0x4d5511['is']('$textProxy'))['map'](_0x5618d4=>_0x5618d4['data']);if(_0x357a3e['length'])return{'type':'deletion','content':c(_0x8d5024,'*Remove:*\x20%0',c(_0x8d5024,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x357a3e['join']('\x20')+'\x22'))};}}}),_0x180aca['descriptionFactory']['registerDescriptionCallback'](_0x257a4d=>{if('tableRow'==_0x257a4d['subType']){const _0x106d06=_0x257a4d['getItems']()['filter'](_0x4d8502=>_0x4d8502['is']('$textProxy'))['map'](_0x376f14=>_0x376f14['data']),_0x1797fe=this['_getSuggestionCoords'](_0x257a4d),_0x2bb18a=_0x1797fe['maxRow']-_0x1797fe['minRow']+0x1;if('insertion'==_0x257a4d['type'])return _0x106d06['length']?{'type':'insertion','content':c(_0x8d5024,'*Insert:*\x20%0',c(_0x8d5024,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2bb18a,'\x22'+_0x106d06['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x8d5024,'*Insert:*\x20%0',c(_0x8d5024,'ELEMENT_TABLE_ROW',_0x2bb18a))};if('deletion'==_0x257a4d['type'])return _0x106d06['length']?{'type':'deletion','content':c(_0x8d5024,'*Remove:*\x20%0',c(_0x8d5024,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2bb18a,'\x22'+_0x106d06['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x8d5024,'*Remove:*\x20%0',c(_0x8d5024,'ELEMENT_TABLE_ROW',_0x2bb18a))};}if('tableColumn'==_0x257a4d['subType']){const _0x1ec317=_0x257a4d['getItems']()['filter'](_0x29203=>_0x29203['is']('$textProxy'))['map'](_0xff08b2=>_0xff08b2['data']),_0x1cbc3e=this['_getSuggestionCoords'](_0x257a4d),_0x5336f1=_0x1cbc3e['maxColumn']-_0x1cbc3e['minColumn']+0x1;if('insertion'==_0x257a4d['type'])return _0x1ec317['length']?{'type':'insertion','content':c(_0x8d5024,'*Insert:*\x20%0',c(_0x8d5024,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5336f1,'\x22'+_0x1ec317['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x8d5024,'*Insert:*\x20%0',c(_0x8d5024,'ELEMENT_TABLE_COLUMN',_0x5336f1))};if('deletion'==_0x257a4d['type'])return _0x1ec317['length']?{'type':'deletion','content':c(_0x8d5024,'*Remove:*\x20%0',c(_0x8d5024,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5336f1,'\x22'+_0x1ec317['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x8d5024,'*Remove:*\x20%0',c(_0x8d5024,'ELEMENT_TABLE_COLUMN',_0x5336f1))};}}),_0x180aca['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x57b576),_0x180aca['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x57b576),_0x180aca['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x57466d),_0x180aca['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x57466d),_0x180aca['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x54a618),_0x180aca['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x54a618),_0x180aca['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0xaec4ea),_0x180aca['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0xaec4ea);}['_acceptFormatSuggestionCallbackFactory'](){const _0x2fc7fa=this['editor'],_0x580801=_0x2fc7fa['model']['document']['selection'];return(_0x3b4388,_0x5e4ef9)=>{_0x2fc7fa['model']['change'](_0x1fcba3=>{const {commandName:_0xd7b28e,commandParams:_0x31d7c0}=_0x5e4ef9;let _0x1030e5=_0x3b4388[0x0]['end']['nodeBefore'];_0x31d7c0&&_0x31d7c0[0x0]&&!0x1===_0x31d7c0[0x0]['forceValue']&&(_0x1030e5=_0x3b4388[0x0]['start']['nodeAfter']);const _0x4c4de1=_0x1fcba3['createRangeIn'](_0x1030e5);if('$graveyard'==_0x4c4de1['root']['rootName'])return;const _0x5b83b9=Array['from'](_0x580801['getRanges']())['map'](_0x5eb473=>_0x7362da['fromRange'](_0x5eb473));_0x1fcba3['setSelection'](_0x4c4de1),_0x2fc7fa['commands']['get'](_0xd7b28e)['refresh'](),_0x31d7c0['push']({'forceDefaultExecution':!0x0}),_0x2fc7fa['execute'](_0xd7b28e,..._0x31d7c0);const _0x8c9678=_0x5b83b9['filter'](_0x563c89=>'$graveyard'!=_0x563c89['root']['rootName']);_0x8c9678['length']>0x0&&_0x1fcba3['setSelection'](_0x8c9678);for(const _0x2405d1 of _0x5b83b9)_0x2405d1['detach']();});};}['_getCoordsForCells'](_0x4084c2){const _0x38dbab=this['editor']['plugins']['get']('TableUtils');let _0x5e1955=Number['MAX_SAFE_INTEGER'],_0x57ee36=Number['MIN_SAFE_INTEGER'],_0x3b5ae7=Number['MAX_SAFE_INTEGER'],_0x1586b3=Number['MIN_SAFE_INTEGER'];for(const _0x34ee43 of _0x4084c2){if('$graveyard'==_0x34ee43['root']['rootName'])continue;const {row:_0xe1f5eb,column:_0x3abac7}=_0x38dbab['getCellLocation'](_0x34ee43),_0x30803a=_0x34ee43['hasAttribute']('rowspan')?_0x34ee43['getAttribute']('rowspan')-0x1:0x0,_0x3624a7=_0x34ee43['hasAttribute']('colspan')?_0x34ee43['getAttribute']('colspan')-0x1:0x0;_0x5e1955=_0xe1f5eb<_0x5e1955?_0xe1f5eb:_0x5e1955,_0x57ee36=_0xe1f5eb+_0x30803a>_0x57ee36?_0xe1f5eb+_0x30803a:_0x57ee36,_0x3b5ae7=_0x3abac7<_0x3b5ae7?_0x3abac7:_0x3b5ae7,_0x1586b3=_0x3abac7+_0x3624a7>_0x1586b3?_0x3abac7+_0x3624a7:_0x1586b3;}return{'minRow':_0x5e1955,'maxRow':_0x57ee36,'minColumn':_0x3b5ae7,'maxColumn':_0x1586b3};}['_setupColumnsRowsFixing'](){const _0x4e04de=this['editor'],_0x424b0e=_0x4e04de['plugins']['get']('TrackChangesEditing'),_0x444489=_0x4e04de['plugins']['get']('TableUtils');_0x4e04de['model']['document']['on']('change:data',()=>{const _0x12da05=Array['from'](_0x4e04de['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x7c37a7,data:_0x42ba17}of _0x12da05){const {group:_0x3c7111,id:_0x247848,subType:_0x330113}=_0x424b0e['_splitMarkerName'](_0x7c37a7);if('suggestion'!=_0x3c7111)continue;if(null!=_0x42ba17['oldRange'])continue;const _0x1c3482=_0x424b0e['getSuggestion'](_0x247848);this['_tablePostFixingSubtypes']['includes'](_0x330113)&&this['_tableSuggestions']['add'](_0x1c3482);}},{'priority':'low'});const _0x8646ba=(_0x344248,_0x5201d1)=>{let _0x1c7093=!0x1;const _0x1634d7=_0x5201d1['createRangeOn'](_0x344248),_0x4751fe=_0x344248['findAncestor']('table'),_0x3549a8=_0x444489['getCellLocation'](_0x344248);for(const _0x3e1a0f of this['_tableSuggestions']){const _0x24c9a9=_0x3e1a0f['subType'],_0x2674d4=_0x24c9a9['startsWith']('tablePaste'),_0xc22ce9=_0x24c9a9['substr'](_0x2674d4?0xa:0x5),_0x25b7ee=_0xc22ce9['toLowerCase'](),_0x13d72a=_0x25b7ee['substr'](0x0,0x3)+'span',_0x100af7='min'+_0xc22ce9,_0x1af9cc='max'+_0xc22ce9;if(!_0x3e1a0f['isInContent'])continue;if(_0x4751fe!=_0x3e1a0f['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x3e1a0f['isIntersectingWithRange'](_0x1634d7))continue;const _0x2d697b=_0x344248['hasAttribute'](_0x13d72a)?_0x344248['getAttribute'](_0x13d72a)-0x1:0x0,_0x131998=this['_getSuggestionCoords'](_0x3e1a0f),_0x2b4a3b=_0x131998[_0x100af7],_0x3b43dc=_0x131998[_0x1af9cc];_0x2b4a3b<=_0x3549a8[_0x25b7ee]&&_0x3549a8[_0x25b7ee]+_0x2d697b<=_0x3b43dc&&(_0x3e1a0f['addRange'](_0x1634d7),_0x1c7093=!0x0);}return _0x1c7093;};_0x4e04de['model']['document']['registerPostFixer'](_0x533eae=>{let _0x3d4439=!0x1;for(const _0x1ab58e of _0x4e04de['model']['document']['differ']['getChanges']())if('insert'==_0x1ab58e['type']){if('tableRow'==_0x1ab58e['name']){for(const _0x2b2f3b of _0x1ab58e['position']['nodeAfter']['getChildren']())_0x3d4439=_0x3d4439||_0x8646ba(_0x2b2f3b,_0x533eae);}else'tableCell'==_0x1ab58e['name']&&(_0x3d4439=_0x3d4439||_0x8646ba(_0x1ab58e['position']['nodeAfter'],_0x533eae));}return _0x3d4439;});}['_getSuggestionCoords'](_0x36b9){return this['_getCoordsForCells'](_0x36b9['getRanges']()['map'](_0x2e6ece=>_0x2e6ece['start']['nodeAfter']));}}function Ne(_0x333f51){return Array['from'](new Set(_0x333f51)['values']());}class vt extends _0x53ae92{static get['requires'](){return[_t];}['afterInit'](){const _0x15dc41=this['editor'],_0x42a91a=_0x15dc41['model']['document']['selection'],_0x2cf320=_0x15dc41['locale'];if(!_0x15dc41['plugins']['has']('TableEditing'))return;const _0xe31d4c=_0x15dc41['plugins']['get']('TrackChangesEditing'),_0x1a71ba=_0x15dc41['plugins']['get']('TableUtils'),_0x1f4605=_0x15dc41['plugins']['get'](_t);_0x1f4605['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0xe31d4c['enableCommand']('mergeTableCells',()=>{const _0x2290b7=_0x1a71ba['getSelectionAffectedTableCells'](_0x15dc41['model']['document']['selection']);_0x15dc41['model']['change'](()=>{_0xe31d4c['markMultiRangeBlockFormat'](_0x2290b7,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x15dc41['commands']['get']('mergeTableCells')['on']('execute',(_0x40b290,_0xb644b7)=>{_0x15dc41['commands']['get']('trackChanges')['value']&&(_0xb644b7['length']>0x0&&_0xb644b7[_0xb644b7['length']-0x1]&&_0xb644b7[_0xb644b7['length']-0x1]['forceDefaultExecution']||_0xe31d4c['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x40b290['stop']());},{'priority':'highest'});for(const _0x3465c4 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x2b21b8=_0x15dc41['commands']['get'](_0x3465c4);_0xe31d4c['enableCommand'](_0x3465c4,()=>{const _0x5e126d=_0x15dc41['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x9ecb39=>_0x9ecb39['is']('element','tableCell')),_0x5d7aa5=_0x2b21b8['value'];_0x15dc41['model']['change'](()=>{_0xe31d4c['markMultiRangeBlockFormat']([_0x5e126d,_0x5d7aa5],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x22286e of['splitTableCellVertically','splitTableCellHorizontally']){const _0x3fd25e=_0x15dc41['commands']['get'](_0x22286e);_0xe31d4c['enableCommand'](_0x22286e,()=>{const _0x57e2d0=_0x1a71ba['getSelectionAffectedTableCells'](_0x15dc41['model']['document']['selection'])[0x0],_0x17f135=_0x57e2d0['findAncestor']('table'),{column:_0x5b25bf,row:_0x42c816}=_0x1a71ba['getCellLocation'](_0x57e2d0);let _0x5a3aab=[];if('horizontally'==_0x3fd25e['direction']){const _0x2a353e=_0x1a71ba['createTableWalker'](_0x17f135,{'startRow':_0x42c816,'endRow':_0x42c816,'includeAllSlots':!0x0});_0x5a3aab=Array['from'](_0x2a353e)['map'](_0x2b8d60=>_0x2b8d60['cell']);}else{const _0x3771fe=_0x1a71ba['createTableWalker'](_0x17f135,{'column':_0x5b25bf,'includeAllSlots':!0x0});_0x5a3aab=Array['from'](_0x3771fe)['map'](_0x2cf1b5=>_0x2cf1b5['cell']);}_0x15dc41['model']['change'](_0x2f39f2=>{_0xe31d4c['markBlockFormat'](_0x2f39f2['createRangeOn'](_0x57e2d0),{'commandName':_0x22286e,'commandParams':[]},_0x5a3aab,_0x22286e);});});}_0xe31d4c['descriptionFactory']['registerDescriptionCallback'](_0x1dc541=>{if('formatBlock'!=_0x1dc541['type']&&'formatInline'!=_0x1dc541['type'])return;const {data:_0x16a1b6}=_0x1dc541;return _0x16a1b6&&'mergeTableCells'==_0x16a1b6['commandName']?{'type':'format','content':c(_0x2cf320,'*Merge\x20cells*')}:void 0x0;}),_0xe31d4c['descriptionFactory']['registerDescriptionCallback'](_0x3a23b2=>{if('formatBlock'!=_0x3a23b2['type']&&'formatInline'!=_0x3a23b2['type'])return;const {data:_0x1910a0}=_0x3a23b2;return _0x1910a0?'splitTableCellVertically'==_0x1910a0['commandName']?{'type':'format','content':c(_0x2cf320,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x1910a0['commandName']?{'type':'format','content':c(_0x2cf320,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x46b722=_0x1f4605['_acceptFormatSuggestionCallbackFactory']();for(const _0x5ebd8f of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0xe31d4c['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5ebd8f,'accept',_0x46b722);for(const _0x4bcb8 of['splitTableCellVertically','splitTableCellHorizontally'])_0xe31d4c['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4bcb8,'accept',_0x46b722);_0xe31d4c['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x58872c=>{_0x15dc41['model']['change'](_0x228d2b=>{const _0x1fb6da=Array['from'](_0x42a91a['getRanges']())['map'](_0x25f0a0=>_0x7362da['fromRange'](_0x25f0a0));_0x228d2b['setSelection'](_0x58872c),_0x15dc41['commands']['get']('mergeTableCells')['refresh'](),_0x15dc41['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x1740c3=_0x1fb6da['filter'](_0x3e20f4=>'$graveyard'!=_0x3e20f4['root']['rootName']);_0x1740c3['length']>0x0&&_0x228d2b['setSelection'](_0x1740c3);for(const _0x18d758 of _0x1fb6da)_0x18d758['detach']();});});for(const _0x3ee2fe of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x155c65=_0x15dc41['commands']['get'](_0x3ee2fe);_0x155c65['on']('set:isEnabled',(_0x90df34,_0x39e9bc,_0x4bb20d)=>{if(_0x4bb20d){const _0x1ff565=_0x15dc41['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4ac616=>_0x4ac616['is']('element','tableCell'));this['_areMergableCells'](_0x155c65['value'],_0x1ff565)||(_0x90df34['return']=!0x1,_0x90df34['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x3202a8=this['editor']['commands']['get']('mergeTableCells'),_0x1b8595=this['editor']['plugins']['get']('TableUtils');if(!_0x3202a8['isEnabled'])return!0x1;const _0x270404=_0x1b8595['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x130104 of _0x270404)for(const _0x3aae8f of _0x270404)if(_0x130104!=_0x3aae8f&&!this['_areMergableCells'](_0x130104,_0x3aae8f))return!0x1;return!0x0;}['_areMergableCells'](_0x34e5a6,_0x4e5065){const _0x3a0b6d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3f4bda=this['editor']['model']['createRangeOn'](_0x34e5a6),_0x477442=this['editor']['model']['createRangeOn'](_0x4e5065),_0x3e4c5b=new Set(),_0x27644b=new Set();for(const _0x95dea1 of _0x3a0b6d['getSuggestions']())if(('insertion'==_0x95dea1['type']||'deletion'==_0x95dea1['type']||'mergeTableCells'==_0x95dea1['subType'])&&_0x95dea1['isInContent']){for(const _0x3c855a of _0x95dea1['getRanges']())_0x3c855a['containsRange'](_0x3f4bda,!0x0)&&_0x3e4c5b['add'](_0x95dea1['type']+':'+_0x95dea1['author']['id']),_0x3c855a['containsRange'](_0x477442,!0x0)&&_0x27644b['add'](_0x95dea1['type']+':'+_0x95dea1['author']['id']);}if(_0x3e4c5b['size']!=_0x27644b['size'])return!0x1;for(const _0x84e4a of _0x3e4c5b)if(!_0x27644b['has'](_0x84e4a))return!0x1;return!0x0;}}class Ct extends _0x53ae92{static get['requires'](){return[_t];}['afterInit'](){const _0x2dcd5f=this['editor'];if(!_0x2dcd5f['plugins']['has']('TableEditing'))return;const _0x25c8a0=_0x2dcd5f['locale'],_0x1b4a2b=_0x2dcd5f['plugins']['get']('TrackChangesEditing');_0x1b4a2b['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x1b4a2b['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x1b4a2b['registerBlockAttribute']('headingRows'),_0x1b4a2b['registerBlockAttribute']('headingColumns'),_0x1b4a2b['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x25c8a0,'FORMAT_HEADER_ROW')),_0x1b4a2b['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x25c8a0,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1273b2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x31ac2c=this['editor']['plugins']['get']('TableUtils'),_0x4e68b6=this['editor']['plugins']['get'](_t)['_acceptFormatSuggestionCallbackFactory']();function _0x476c86({showActiveMarker:_0x12f94b=!0x0,setDataAttribute:_0x2e030f=!0x0}={}){return(_0x169731,_0x280e4a,_0x1b559d)=>{const {type:_0x2d2cdb,id:_0x1fa0ab}=_0x1273b2['_splitMarkerName'](_0x280e4a['markerName']),_0x3d2a37=_0x1273b2['getSuggestion'](_0x1fa0ab),_0x2d3194=_0x3d2a37['data'];if('formatBlock'!=_0x3d2a37['type']||!_0x2d3194||'setTableColumnHeader'!=_0x2d3194['commandName'])return;if(_0x280e4a['item'])return void _0x169731['stop']();if(!_0x1b559d['consumable']['consume'](_0x280e4a['markerRange'],_0x169731['name']))return;const _0x3bc7f5=_0x280e4a['markerRange']['start']['nodeAfter'],_0x220ef0=_0x280e4a['markerRange']['end']['nodeBefore'],_0x56dc0e=_0x3bc7f5['parent']['parent'],{column:_0x30e5f0}=_0x31ac2c['getCellLocation'](_0x3bc7f5),{column:_0x27c6be}=_0x31ac2c['getCellLocation'](_0x220ef0);for(let _0x18e1bc=_0x30e5f0;_0x18e1bc<=_0x27c6be;_0x18e1bc++){const _0xadab8a=_0x31ac2c['createTableWalker'](_0x56dc0e,{'column':_0x18e1bc,'includeAllSlots':!0x1});for(const _0x241f4a of _0xadab8a){const _0x389406=_0x241f4a['cell'],_0x21c1fe=_0x1b559d['mapper']['toViewElement'](_0x389406);_0x1b559d['writer']['addClass']('ck-suggestion-marker-'+_0x2d2cdb,_0x21c1fe),_0x2e030f&&_0x1b559d['writer']['setAttribute']('data-suggestion',_0x1fa0ab,_0x21c1fe),_0x1b559d['mapper']['bindElementToMarker'](_0x21c1fe,_0x280e4a['markerName']),_0x12f94b&&(_0x1273b2['activeMarkers']['includes'](_0x280e4a['markerName'])?_0x1b559d['writer']['addClass']('ck-suggestion-marker--active',_0x21c1fe):_0x1b559d['writer']['removeClass']('ck-suggestion-marker--active',_0x21c1fe));}}};}_0x1273b2['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4e68b6),_0x1273b2['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4e68b6),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x476c86(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1a7ff0,_0x383e69,_0x214f5b)=>{_0x214f5b['options']['showSuggestionHighlights']&&_0x476c86({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1a7ff0,_0x383e69,_0x214f5b);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x495cf7,_0x25b282,_0x360113)=>{const {type:_0x422fc2,id:_0x38f5f2}=_0x1273b2['_splitMarkerName'](_0x25b282['markerName']),_0x5d6d56=_0x1273b2['getSuggestion'](_0x38f5f2),_0x3fcc1f=_0x5d6d56['data'];if('formatBlock'!=_0x5d6d56['type']||!_0x3fcc1f||'setTableColumnHeader'!=_0x3fcc1f['commandName'])return;const _0x1bb643=_0x360113['mapper']['markerNameToElements'](_0x25b282['markerName']);if(_0x1bb643){for(const _0x6058f of _0x1bb643)_0x360113['writer']['removeClass']('ck-suggestion-marker-'+_0x422fc2,_0x6058f),_0x360113['writer']['removeClass']('ck-suggestion-marker--active',_0x6058f),_0x360113['writer']['removeAttribute']('data-suggestion',_0x6058f),_0x360113['mapper']['unbindElementFromMarkerName'](_0x6058f,_0x25b282['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2cd324=this['editor'],_0x25b734=_0x2cd324['locale'];function _0x1b03e6(_0x3672bf){return{'type':'format','content':c(_0x25b734,'*Format:*\x20%0',_0x3672bf)};}_0x2cd324['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f1439=>{if('formatBlock'!=_0x2f1439['type'])return;const {data:_0x1f1d6}=_0x2f1439;if(_0x1f1d6){if('setTableRowHeader'==_0x1f1d6['commandName']){const _0x5392af=_0x1f1d6['commandParams'][0x0]['forceValue'];return _0x1b03e6(c(_0x25b734,_0x5392af?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x1f1d6['commandName']){const _0x4b4046=_0x1f1d6['commandParams'][0x0]['forceValue'];return _0x1b03e6(c(_0x25b734,_0x4b4046?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x824190=>[_0x824190,null]));class Nt extends _0x53ae92{static get['requires'](){return[_t];}['afterInit'](){const _0x233079=this['editor'];if(!_0x233079['plugins']['has']('TableClipboard'))return;const _0x5a48ab=_0x233079['plugins']['get']('TrackChangesEditing'),_0x5d85ec=_0x233079['plugins']['get']('TableUtils'),_0x4b6819=_0x233079['plugins']['get'](_t),_0x4119af=_0x233079['plugins']['get']('TableClipboard');_0x4b6819['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x233079['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x233079['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x397af9=null;_0x233079['model']['on']('insertContent',(_0x296cda,_0x253c91)=>{const [_0x22e53d,_0x44615c]=_0x253c91,_0x357443=_0x253c91[_0x253c91['length']-0x1];_0x357443&&_0x357443['forceDefaultExecution']||_0x5a48ab['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x4bd918,_0x187650,_0x4e54ff,_0x1ab07b,_0x51307){if(_0x187650&&!_0x187650['is']('documentSelection'))return!0x1;const _0x5c6ed3=_0x51307['getTableIfOnlyTableInContent'](_0x4bd918,_0x4e54ff);if(!_0x5c6ed3||!Ue(_0x5c6ed3,void 0x0,_0x1ab07b))return!0x1;const _0x52f7f5=_0x1ab07b['getSelectionAffectedTableCells'](_0x4e54ff['document']['selection']);if(!_0x52f7f5['length'])return!0x1;const _0x239ae0=_0x52f7f5[0x0]['findAncestor']('table'),_0x3d4251=_0x1ab07b['getRowIndexes'](_0x52f7f5),_0x539a42=_0x1ab07b['getColumnIndexes'](_0x52f7f5),_0x45b5b4={'startRow':_0x3d4251['first'],'endRow':_0x3d4251['last'],'startColumn':_0x539a42['first'],'endColumn':_0x539a42['last']};return 0x1==_0x52f7f5['length']&&(_0x45b5b4['endRow']+=_0x1ab07b['getRows'](_0x5c6ed3)-0x1,_0x45b5b4['endColumn']+=_0x1ab07b['getColumns'](_0x5c6ed3)-0x1),Ue(_0x239ae0,_0x45b5b4,_0x1ab07b);}(_0x22e53d,_0x44615c,_0x233079['model'],_0x5d85ec,_0x4119af)&&(_0x296cda['stop'](),_0x397af9={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x233079['model']['change'](()=>{_0x233079['model']['insertContent'](_0x253c91[0x0],_0x253c91[0x1],_0x253c91[0x2],{'forceDefaultExecution':!0x0});const _0x34c94d=_0x33987a(),{rowInsertionRanges:_0x5bc970,columnInsertionRanges:_0x1e5354,insertionRanges:_0x198bad,deletionRanges:_0x465adf,cells:_0x5f2050}=_0x397af9;_0x5bc970['length']&&_0x5a48ab['markMultiRangeInsertion'](_0x5bc970,'tablePasteRow',{'tablePasteChainId':_0x34c94d}),_0x1e5354['length']&&_0x5a48ab['markMultiRangeInsertion'](_0x1e5354,'tablePasteColumn',{'tablePasteChainId':_0x34c94d}),_0x198bad['length']&&(_0x5a48ab['markMultiRangeInsertion'](_0x198bad,'tablePaste',{'tablePasteChainId':_0x34c94d,'skipNestingCheck':!0x0}),_0x198bad['forEach'](_0x3b813f=>_0x3b813f['detach']?.())),_0x465adf['length']&&(_0x5a48ab['markMultiRangeDeletion'](_0x465adf,'tablePaste',{'tablePasteChainId':_0x34c94d,'skipNestingCheck':!0x0}),_0x465adf['forEach'](_0x505870=>_0x505870['detach']?.()));const _0x2c469a=_0x5a48ab['markMultiRangeBlockFormat'](_0x5f2050['map'](({element:_0x2e771a})=>_0x2e771a),{'formatGroupId':_0x33987a()},[],'tablePasteCell',{'tablePasteChainId':_0x34c94d});if(_0x2c469a){const _0x1cb144=_0x2c469a['getMarkers'](),_0xbb3264=[];for(const {element:_0x548510,attributes:_0x4ff22e}of _0x5f2050){if(!_0x4ff22e)continue;const _0x250a85=_0x233079['model']['createRangeOn'](_0x548510),_0x4edb3c=_0x1cb144['find'](_0x51c0ce=>_0x51c0ce['getRange']()['isEqual'](_0x250a85));_0x4edb3c&&_0xbb3264['push']([_0x4edb3c['name'],_0x4ff22e]);}_0xbb3264['length']&&_0x2c469a['setAttribute']('markerAttributes',Object['fromEntries'](_0xbb3264));}_0x397af9=null;}));},{'priority':_0x9eec71['high']+0xa}),_0x233079['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x22c142,_0x436c45)=>{const [_0x2afcd2,_0x445c15,,_0x1c567c]=_0x436c45;if(!_0x397af9)return;_0x22c142['stop']();const _0x57a5ae=_0x2afcd2['cell'],_0x11bd90=_0x445c15,_0x3c8790=Oe(_0x57a5ae),_0x330458=Oe(_0x11bd90);_0x22c142['return']=_0x57a5ae;let _0x330514=null,_0x5c0662=null;if(_0x330458||_0x3c8790){if(_0x3c8790&&!_0x330458){_0x1c567c['remove'](_0x57a5ae['getChild'](0x0));for(const _0x1f790d of Array['from'](_0x11bd90['getChildren']()))_0x1c567c['insert'](_0x1f790d,_0x57a5ae,'end');const _0x48c164=_0x397af9['rowInsertionIndexes']['includes'](_0x2afcd2['row']),_0x4ce7d7=_0x397af9['columnInsertionIndexes']['includes'](_0x2afcd2['column']);_0x48c164||_0x4ce7d7||(_0x330514=_0x7362da['fromRange'](_0x1c567c['createRangeIn'](_0x57a5ae)));}else _0x330458&&!_0x3c8790&&(_0x5c0662=_0x1c567c['createRangeIn'](_0x57a5ae));}else{const _0xf2ce66=_0x1c567c['createElement']('tableCellSuggestion'),_0x442bc2=_0x1c567c['createElement']('tableCellSuggestion');_0x1c567c['wrap'](_0x1c567c['createRangeIn'](_0x57a5ae),_0x442bc2),_0x1c567c['insert'](_0xf2ce66,_0x57a5ae,0x0);for(const _0x167151 of Array['from'](_0x11bd90['getChildren']()))_0x1c567c['insert'](_0x167151,_0xf2ce66,'end');_0x330514=_0x7362da['fromRange'](_0x1c567c['createRangeOn'](_0xf2ce66)),_0x5c0662=_0x7362da['fromRange'](_0x1c567c['createRangeOn'](_0x442bc2));}const _0x86168=Array['from'](_0x11bd90['getAttributes']())['filter'](([_0x145add])=>Be['includes'](_0x145add));_0x397af9['cells']['push']({'element':_0x57a5ae,'attributes':_0x86168['length']?Object['fromEntries'](_0x86168):null}),_0x330514&&_0x397af9['insertionRanges']['push'](_0x330514),_0x5c0662&&_0x397af9['deletionRanges']['push'](_0x5c0662);},{'priority':'high'}),_0x5d85ec['on']('insertColumns',(_0x31fc62,_0x335f32)=>{const [_0x4323c5,_0x1b8021={}]=_0x335f32;if(!_0x397af9)return;const _0x438978=_0x1b8021['at']||0x0,_0x1cc1cc=_0x1b8021['columns']||0x1;_0x397af9['columnInsertionIndexes']=new Array(_0x1cc1cc)['fill'](_0x438978)['map']((_0x25381f,_0xaefa5b)=>_0x25381f+_0xaefa5b);for(const {cell:_0x6497a6}of _0x5d85ec['createTableWalker'](_0x4323c5,{'startColumn':_0x438978,'endColumn':_0x438978+_0x1cc1cc-0x1}))_0x397af9['columnInsertionRanges']['push'](_0x233079['model']['createRangeOn'](_0x6497a6));},{'priority':'low'}),_0x5d85ec['on']('insertRows',(_0x562a2b,_0x1f84a6)=>{const [_0x2d88f1,_0x4fa269={}]=_0x1f84a6;if(!_0x397af9)return;const _0x28c7ba=_0x4fa269['at']||0x0,_0x24597b=_0x4fa269['rows']||0x1;_0x397af9['rowInsertionIndexes']=new Array(_0x24597b)['fill'](_0x28c7ba)['map']((_0xd062b9,_0x15fdf2)=>_0xd062b9+_0x15fdf2);for(const {cell:_0x5e8a67}of _0x5d85ec['createTableWalker'](_0x2d88f1,{'startRow':_0x28c7ba,'endRow':_0x28c7ba+_0x24597b-0x1}))_0x397af9['rowInsertionRanges']['push'](_0x233079['model']['createRangeOn'](_0x5e8a67));},{'priority':'low'}),_0x5a48ab['descriptionFactory']['registerDescriptionCallback'](_0x2b94ab=>{if(_0x2b94ab['subType']&&_0x2b94ab['subType']['startsWith']('tablePaste'))return _0x2b94ab['previous']?{}:{'type':'insertion','content':c(_0x233079['locale'],'*Replace\x20table\x20cells*')};});const _0x238f6e=()=>!0x1;for(const _0x1ee99a of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x5a48ab['_suggestionFactory']['registerCustomCallback']('insertion',_0x1ee99a,'join',_0x238f6e),_0x5a48ab['_suggestionFactory']['registerCustomCallback']('deletion',_0x1ee99a,'join',_0x238f6e),_0x5a48ab['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1ee99a,'join',_0x238f6e);_0x5a48ab['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x238f6e),_0x5a48ab['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x42525e,_0x1014fc,_0x2baca6)=>{const _0x8b35d5=_0x42525e['map'](_0x3d18f0=>_0x3d18f0['getContainedElement']())['filter'](_0x2ad483=>_0x2ad483),_0x28b04d=new Map(_0x8b35d5['map'](_0x39b21a=>[_0x39b21a,null]));if(_0x397af9){for(const {element:_0x3d2dbe,attributes:_0x4ef7d4}of _0x397af9['cells'])_0x4ef7d4&&_0x28b04d['set'](_0x3d2dbe,_0x4ef7d4);}else{if(_0x2baca6&&_0x2baca6['markerAttributes'])for(const [_0x542835,_0x576254]of Object['entries'](_0x2baca6['markerAttributes'])){const _0xb7c00b=_0x233079['model']['markers']['get'](_0x542835),_0x3d40d5=_0xb7c00b?_0xb7c00b['getRange']()['getContainedElement']():null;_0x3d40d5&&_0x28b04d['set'](_0x3d40d5,_0x576254);}}_0x233079['model']['change'](_0x57653d=>{for(const [_0x2d96e4,_0x59f550]of _0x28b04d)_0x57653d['setAttributes']({...xe,..._0x59f550},_0x2d96e4);});});const _0x549e90=(_0x3d0d17,_0x4565d4)=>{_0x5a48ab['_suggestionFactory']['registerCustomCallback'](_0x3d0d17,'tablePaste',_0x4565d4,(_0x594600,_0x432b88,_0x1c2b19)=>{_0x233079['model']['change'](_0x354cd9=>{const _0x5d2f91=[];for(const _0x57b91e of _0x594600){const _0xa95793=_0x57b91e['start']['nodeAfter'];_0xa95793['is']('element','tableCellSuggestion')&&_0x5d2f91['push'](_0xa95793);}_0x5a48ab['_suggestionFactory']['getSuggestionCallback'](_0x3d0d17,null,_0x4565d4)(_0x594600,_0x432b88,_0x1c2b19);for(const _0x2a6e54 of _0x5d2f91)'$graveyard'!=_0x2a6e54['root']['rootName']&&_0x354cd9['unwrap'](_0x2a6e54);});});};_0x549e90('insertion','accept'),_0x549e90('insertion','discard'),_0x549e90('deletion','accept'),_0x549e90('deletion','discard'),_0x5a48ab['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x255825=>{const _0xc83fa=_0x255825['map'](_0x95c196=>_0x95c196['getContainedElement']()),_0x3bb59f=_0xc83fa[0x0]['findAncestor']('table'),{minRow:_0x3f6ffe,maxRow:_0x312d2e}=_0x4b6819['_getCoordsForCells'](_0xc83fa);_0x5d85ec['removeRows'](_0x3bb59f,{'at':_0x3f6ffe,'rows':_0x312d2e-_0x3f6ffe+0x1});}),_0x5a48ab['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0xe53278=>{const _0x91db17=_0xe53278['map'](_0x335025=>_0x335025['getContainedElement']()),_0x19fd9d=_0x91db17[0x0]['findAncestor']('table'),{minColumn:_0x88c5ee,maxColumn:_0x340b27}=_0x4b6819['_getCoordsForCells'](_0x91db17);_0x5d85ec['removeColumns'](_0x19fd9d,{'at':_0x88c5ee,'columns':_0x340b27-_0x88c5ee+0x1});});const _0x72c78e=(_0x559d8c,_0xd91659)=>{if(!_0xd91659['subType']||!_0xd91659['subType']['startsWith']('tablePaste'))return;const _0x1df730=_0xd91659['attributes']['tablePasteChainId'],_0x5b6ddf=_0x5a48ab['getSuggestions']()['filter'](_0x1d4b10=>_0x1d4b10['isInContent']&&_0x1d4b10['attributes']&&_0x1d4b10['attributes']['tablePasteChainId']==_0x1df730);_0x5b6ddf['length']&&_0xd91659['getAllAdjacentSuggestions']()['length']!=_0x5b6ddf['length']&&_0x5b6ddf['reduce']((_0x31aab0,_0x4c831f)=>(_0x31aab0['next']=_0x4c831f,_0x4c831f['previous']=_0x31aab0,_0x4c831f));};function _0x4073e6(_0x38bc47,_0x46adb2=!0x0){const {id:_0x2ea17e,authorId:_0x4755ed}=_0x5a48ab['_splitMarkerName'](_0x38bc47['markerName']),_0x5da199=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x161503=_0x5a48ab['activeMarkers']['includes'](_0x38bc47['markerName']);return _0x161503&&_0x5da199['push']('ck-suggestion-marker--active'),{'classes':_0x5da199,'attributes':{'data-suggestion':_0x2ea17e,'data-author-id':_0x4755ed},'priority':_0x161503&&_0x46adb2?0xbc2:0xbb8};}_0x5a48ab['on']('suggestionLoaded',_0x72c78e,{'priority':'high'}),_0x5a48ab['on']('suggestionUnloaded',_0x72c78e,{'priority':'high'}),_0x233079['model']['document']['registerPostFixer'](()=>{let _0x3ece77=!0x1;const _0x5bea20=Array['from'](_0x233079['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x135c53,data:_0x3dfa48}of _0x5bea20){const {group:_0x10c2e1,type:_0xed3a57,id:_0x325e3a}=_0x5a48ab['_splitMarkerName'](_0x135c53);if('suggestion'!=_0x10c2e1||'deletion'!=_0xed3a57||_0x3dfa48['oldRange'])continue;if(!_0x5a48ab['hasSuggestion'](_0x325e3a))continue;const _0x578899=_0x5a48ab['getSuggestion'](_0x325e3a)['getRanges'](),_0x392e28=_0x233079['plugins']['get']('Users')['me'];for(const _0x1d3fd8 of _0x5a48ab['getSuggestions']()){if(!_0x1d3fd8['isInContent']||_0x1d3fd8['author']!=_0x392e28)continue;if('formatBlock'!=_0x1d3fd8['type']||'tablePasteCell'!=_0x1d3fd8['subType'])continue;if(_0x1d3fd8['getRanges']()['every'](_0x370b5a=>_0x578899['some'](_0x375f7b=>_0x375f7b['containsRange'](_0x370b5a,!0x0)))){for(const _0x72852c of _0x1d3fd8['getAllAdjacentSuggestions']())_0x72852c['isInContent']&&(_0x72852c['discard'](),_0x3ece77=!0x0);}}}return _0x3ece77;}),_0x233079['model']['document']['registerPostFixer'](_0x4397c8=>{const _0x246ca3=_0x233079['commands']['get']('redo');if(!_0x246ca3||!_0x246ca3['_createdBatches']['has'](_0x4397c8['batch']))return!0x1;let _0x22ac05=!0x1;const _0x995032=_0x233079['plugins']['get']('Users')['me'],_0x10be27=_0x233079['model']['document']['differ']['getChanges'](),_0x4c358a=Array['from'](_0x233079['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x5c32dc,data:_0x5b99ad})=>{const {group:_0x586a87,subType:_0x38a640,authorId:_0x223b3c}=_0x5a48ab['_splitMarkerName'](_0x5c32dc);return'suggestion'==_0x586a87&&'tablePaste'==_0x38a640&&_0x223b3c==_0x995032['id']&&!_0x5b99ad['oldRange'];});for(const _0x34b4eb of _0x10be27){if('insert'!=_0x34b4eb['type']||'tableCellSuggestion'!=_0x34b4eb['name']||0x1!=_0x34b4eb['length'])continue;const _0x491b16=_0x4397c8['createRange'](_0x34b4eb['position'],_0x34b4eb['position']['getShiftedBy'](0x1));if(!_0x4c358a['find'](({data:_0x100ce1})=>_0x100ce1['newRange']['isEqual'](_0x491b16))){for(const {name:_0x40bcbe,data:_0x253886}of _0x4c358a)if(_0x491b16['containsRange'](_0x253886['newRange'])){_0x4397c8['updateMarker'](_0x40bcbe,{'range':_0x491b16}),_0x22ac05=!0x0;break;}}}return _0x22ac05;}),_0x233079['model']['document']['registerPostFixer'](_0x4b85f3=>{let _0x46673d=!0x1;const _0x53658d=_0x233079['plugins']['get']('Users')['me'],_0x20c88f=_0x5a48ab['getSuggestions']()['filter'](_0x4bb632=>_0x4bb632['isInContent']&&_0x4bb632['author']==_0x53658d),_0x2a0963=new Set(),_0x47fbe1=new Set();for(const _0xa4f46c of _0x20c88f)if('tablePaste'==_0xa4f46c['subType'])for(const _0x4e93df of _0xa4f46c['getMarkers']()){const _0x2f5d96=_0x4e93df['getRange']()['getContainedElement']();if(_0x2f5d96){if(_0x2f5d96['is']('element','tableCellSuggestion')&&Oe(_0x2f5d96)){_0xa4f46c['removeMarker'](_0x4e93df['name']),_0x2a0963['add'](_0x2f5d96),_0x46673d=!0x0;const _0x30c5d2=_0x2f5d96['nextSibling'],_0x1867ba=_0x2f5d96['previousSibling'],_0x380812=_0x30c5d2&&_0x30c5d2['is']('element','tableCellSuggestion'),_0x594b8e=_0x1867ba&&_0x1867ba['is']('element','tableCellSuggestion');_0x380812&&!_0x2a0963['has'](_0x30c5d2)&&_0x47fbe1['add'](_0x30c5d2),_0x594b8e&&!_0x2a0963['has'](_0x1867ba)&&_0x47fbe1['add'](_0x1867ba);}else _0x2f5d96['is']('element','paragraph')&&_0x2f5d96['isEmpty']&&(_0xa4f46c['removeMarker'](_0x4e93df['name']),_0x46673d=!0x0);}}else{if('tablePasteCell'==_0xa4f46c['subType']){if(!_0xa4f46c['attributes']||!_0xa4f46c['attributes']['tablePasteChainId'])continue;const _0x579319=_0xa4f46c['attributes']['markerAttributes'];if(_0x579319&&Object['keys'](_0x579319)['length'])continue;const _0x5c2d8a=_0xa4f46c['attributes']['tablePasteChainId'];let _0x595b7a=!0x0,_0xef8216=!0x0;for(const _0x2af319 of _0x20c88f)if(_0x2af319['subType']&&_0x2af319['subType']['startsWith']('tablePaste')){if(!_0x2af319['attributes']['tablePasteChainId']){_0xef8216=!0x1;break;}if(_0x2af319['id']!=_0xa4f46c['id']&&_0x2af319['attributes']['tablePasteChainId']==_0x5c2d8a){_0x595b7a=!0x1;break;}}_0xef8216&&_0x595b7a&&(_0xa4f46c['removeMarkers'](),_0x46673d=!0x0);}}for(const _0x57a9c0 of _0x2a0963)_0x4b85f3['remove'](_0x57a9c0);for(const _0x3633d0 of _0x47fbe1)_0x4b85f3['unwrap'](_0x3633d0);return _0x46673d;}),_0x233079['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x1b0d67=>_0x4073e6(_0x1b0d67),'converterPriority':'high'}),_0x233079['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x38c874,_0x380651)=>_0x380651['options']['showSuggestionHighlights']?_0x4073e6(_0x38c874,!0x1):null,'converterPriority':'high'});const _0x1fbaa3=_0x233079['editing']['view'];this['listenTo'](_0x1fbaa3['document'],'clipboardOutput',(_0x328fc6,_0x25cd8b)=>{const _0x1738c5=[];for(const _0xc09065 of _0x1fbaa3['createRangeIn'](_0x25cd8b['content'])['getItems']())_0xc09065['is']('element','suggestion-td')&&_0x1738c5['push'](_0xc09065);_0x1fbaa3['change'](_0x355c86=>{for(const _0x488f7b of _0x1738c5)_0x355c86['move'](_0x355c86['createRangeIn'](_0x488f7b),_0x355c86['createPositionBefore'](_0x488f7b)),_0x355c86['remove'](_0x488f7b);});});}}function Oe(_0x1489c9){if(_0x1489c9['isEmpty'])return!0x0;const _0x380e62=_0x1489c9['getChild'](0x0);return _0x380e62['is']('element','paragraph')&&_0x380e62['isEmpty'];}function Ue(_0x258fe1,_0x48c481={},_0x55b733){for(const {isAnchor:_0x4f72ad,cellHeight:_0x1f4b7d,cellWidth:_0x57e794}of _0x55b733['createTableWalker'](_0x258fe1,{'includeAllSlots':!0x0,..._0x48c481}))if(!_0x4f72ad||0x1!=_0x1f4b7d||0x1!=_0x57e794)return!0x1;return!0x0;}class Dt extends _0x53ae92{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x45e726=this['editor']['plugins']['get']('TrackChangesEditing');_0x45e726['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x45e726['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x45e726['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x45e726['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x45e726['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x45e726['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x1db68f,_0x405eab){const _0x116d61=this['editor']['plugins']['get']('TrackChangesEditing'),_0x544f1e=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x7bb863=_0x405eab['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x44e451=_0x544f1e['getColumnGroupElement'](_0x7bb863);let _0x11d78e=_0x44e451?_0x544f1e['getTableColumnsWidths'](_0x44e451):null,_0x4fe5fe=_0x7bb863['getAttribute']('tableWidth')||null;const _0x25b844=_0x405eab['tableWidth']||_0x4fe5fe,_0x380b0c=_0x405eab['columnWidths']||_0x11d78e,_0x369627=this['editor']['plugins']['get']('Users')['me'];for(const _0x3fa167 of _0x116d61['getSuggestions']()){const _0x11f9e5=_0x3fa167['getContainedElement']();if('resizeTable'===_0x3fa167['subType']&&_0x11f9e5===_0x7bb863){_0x3fa167['author']!==_0x369627&&_0x3fa167['discard']();const _0x454f4d=_0x3fa167['data']['commandParams'];_0x4fe5fe=_0x454f4d[0x0]['tableWidth'],_0x11d78e=_0x454f4d[0x0]['columnWidths'];break;}}_0x1db68f({'table':_0x7bb863,'tableWidth':_0x25b844,'columnWidths':_0x380b0c}),_0x116d61['markBlockFormat'](_0x7bb863,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x4fe5fe,'columnWidths':_0x11d78e}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x1ee07f){if('formatBlock'!=_0x1ee07f['type']&&'formatInline'!=_0x1ee07f['type'])return;const {data:_0x1baf3a}=_0x1ee07f;if(_0x1baf3a&&'resizeTable'===_0x1baf3a['formatGroupId']){const _0x30817d='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x30817d)};}}}class Mt extends _0x53ae92{['afterInit'](){const _0xe2b253=this['editor'];_0xe2b253['plugins']['has']('Template')&&_0xe2b253['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x53ae92{['afterInit'](){const _0x117ab7=this['editor'];if(!_0x117ab7['commands']['get']('insertTableOfContents'))return;_0x117ab7['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x5e957d=_0x117ab7['plugins']['get']('TrackChangesEditing'),_0x28bdf9=_0x117ab7['locale'];_0x5e957d['descriptionFactory']['registerElementLabel']('tableOfContents',_0x49e100=>c(_0x28bdf9,'ELEMENT_TABLE_OF_CONTENTS',_0x49e100));}}class Bt extends _0x53ae92{['afterInit'](){const _0x302e69=this['editor'];if(!_0x302e69['plugins']['has']('Title'))return;const _0x326bb8=_0x302e69['plugins']['get']('TrackChangesEditing');_0x326bb8['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x302e69['locale'],'ELEMENT_TITLE')),_0x302e69['model']['document']['registerPostFixer'](_0x4f9069=>{let _0x372209=!0x1;const _0xde41d1=Array['from'](_0x302e69['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x43dd2a,data:_0x3c09f8}of _0xde41d1){const {group:_0x56007c}=_0x326bb8['_splitMarkerName'](_0x43dd2a);if('suggestion'!==_0x56007c||!_0x3c09f8['newRange'])continue;const _0x56e76e=_0x3c09f8['newRange'],_0x3df9b8=_0x56e76e['end']['nodeBefore'];if(!_0x3df9b8||!_0x3df9b8['is']('element','title-content'))continue;if(!_0x56e76e['start']['isTouching'](_0x56e76e['end']))continue;const _0x4de331=_0x302e69['model']['schema']['getNearestSelectionRange'](_0x56e76e['end'],'forward');if(_0x4de331&&_0x4de331['isCollapsed']){const _0x296e56=_0x4f9069['createRange'](_0x56e76e['start'],_0x4de331['start']);_0x296e56['isEqual'](_0x56e76e)||(_0x4f9069['updateMarker'](_0x43dd2a,{'range':_0x296e56}),_0x372209=!0x0);}_0x372209||(_0x4f9069['removeMarker'](_0x43dd2a),_0x372209=!0x0);}return _0x372209;});}}class Ot extends _0x53ae92{['afterInit'](){const _0x534b0d=this['editor'],_0x46ad6f=_0x534b0d['plugins']['get']('TrackChangesEditing');_0x534b0d['plugins']['has']('Uploadcare')&&(_0x46ad6f['enableCommand']('uploadcare'),_0x534b0d['plugins']['has']('UploadcareImageEdit')&&(_0x46ad6f['enableCommand']('uploadcareImageEdit'),_0x46ad6f['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x46ad6f['registerBlockAttribute']('uploadcareImageId'),_0x46ad6f['descriptionFactory']['registerDescriptionCallback'](_0x50696a=>{if('attribute'!=_0x50696a['type'])return;const {data:_0x2cf865}=_0x50696a;return _0x2cf865&&'uploadcareImageId'==_0x2cf865['key']?{'type':'format','content':''}:void 0x0;})));}}class Rt extends _0x53ae92{['afterInit'](){const _0x473ced=this['editor'],_0x187200=_0x473ced['plugins']['get']('TrackChangesEditing');_0x473ced['plugins']['has']('UndoEditing')&&(_0x187200['enableCommand']('undo'),_0x187200['enableCommand']('redo'));}}class xt extends _0x53ae92{static get['requires'](){return[_t];}['afterInit'](){const _0x3572fd=this['editor'];if(!_0x3572fd['plugins']['has']('TableCaptionEditing'))return;_0x3572fd['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Tt extends _0x53ae92{['tableProperties'];['tableCellProperties'];constructor(_0x31db57){super(_0x31db57),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 _0x5563fd=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x4ee2bf of this['tableProperties'])_0x5563fd['enableCommand'](_0x4ee2bf,(_0x9010e2,_0x1f22fe)=>{const _0x3c5e1d=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x4ee2bf,[_0x3c5e1d],this['tableProperties'],'tableProperties',_0x9010e2,_0x1f22fe);});_0x5563fd['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x5563fd['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5563fd['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x52c062,_0x196ceb)=>this['handleDiscardAction'](this['tableProperties'],_0x52c062,_0x196ceb)),_0x5563fd['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x12c8b1 of this['tableCellProperties'])_0x5563fd['enableCommand'](_0x12c8b1,(_0x2a6ac3,_0x2c477b)=>{const _0x4c055f=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x12c8b1,_0x4c055f,this['tableCellProperties'],'tableCellProperties',_0x2a6ac3,_0x2c477b);});_0x5563fd['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x5563fd['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5563fd['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x36f5c3,_0x2d3796)=>this['handleDiscardAction'](this['tableCellProperties'],_0x36f5c3,_0x2d3796)),_0x5563fd['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x5563fd['descriptionFactory']['registerDescriptionCallback'](_0x409974=>this['handleSuggestionDescription'](_0x409974));}['_handlePropertyChange'](_0x3b88c7,_0x5a3e05,_0x29cc0c,_0x30d303,_0x5498ce,_0x207531){const _0x2a4f32=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x207531['batch'],()=>{for(const _0x33fe6f of _0x5a3e05){if(this['_getSuggestion'](_0x33fe6f,_0x30d303))_0x5498ce(_0x207531);else{const _0x3e7b86={};for(const _0x362799 of _0x29cc0c){const _0x1dcf80=_0x33fe6f['getAttribute'](_0x362799);void 0x0!==_0x1dcf80&&(_0x3e7b86[_0x362799]=_0x1dcf80);}_0x5498ce(_0x207531),_0x2a4f32['markBlockFormat'](_0x33fe6f,{'commandParams':[_0x3e7b86]},[],_0x30d303);}}});}['handleDiscardAction'](_0x3561a2,_0x5b9ced,_0x4e7842){const _0x44a9c0=_0x5b9ced[0x0]['start']['nodeAfter'],_0x6865bf=_0x4e7842['commandParams'][0x0];this['editor']['model']['change'](_0xbef41=>{for(const _0x199b3c of _0x3561a2)void 0x0!==_0x6865bf[_0x199b3c]?_0xbef41['setAttribute'](_0x199b3c,_0x6865bf[_0x199b3c],_0x44a9c0):_0xbef41['removeAttribute'](_0x199b3c,_0x44a9c0);});}['handleSuggestionDescription'](_0x2615b7){if(_0x2615b7['data'])switch(_0x2615b7['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x2c5fa3,_0x3944d7){const _0x1e9525=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x32726a of _0x1e9525['getSuggestions']({'skipNotAttached':!0x0})){const _0x46b026=_0x32726a['getContainedElement']();if(_0x32726a['subType']===_0x3944d7&&_0x46b026===_0x2c5fa3)return _0x32726a;}return null;}}const u='$elementName';class p extends _0x53ae92{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0xd79e0a,_0xe8a11,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,et,nt,it,st,ot,at,rt,ct,ut,ft,lt,Q,wt,ht,W,Se,dt,mt,pt,kt,bt,yt,jt,St,At,It,_t,vt,Ct,xt,Nt,Dt,$t,Tt,Mt,Bt,Ot,Rt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x130072){super(_0x130072),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0xab41f4,_0x304434,_0xcb673e,_0x515c15)=>{this['_model']['change'](()=>{for(const _0x10bbb1 of[..._0x515c15,..._0xcb673e])this['_model']['markers']['has'](_0x10bbb1)&&_0x130072['editing']['reconvertMarker'](_0x10bbb1);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ut(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x130072['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0x130072['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x130072['config']['get']('trackChanges.trackFormatChanges'),_0x130072['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x130072['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x130072,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x5f5ac2=this['editor'],_0x7f06a0=(_0x1afc83,_0x4b3907)=>{if('attribute'!=_0x1afc83)return'ck-suggestion-marker-'+_0x1afc83;const _0xd1203c=_0x4b3907['split']('|')[0x0];return this['_isBlockAttribute'](_0xd1203c)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x5f5ac2['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x3e5fbb=>{const {id:_0x4dc045,authorId:_0x35e1cf,type:_0x42cb04,subType:_0x1d95ec}=this['_splitMarkerName'](_0x3e5fbb['markerName']),_0x1456a6=['ck-suggestion-marker',_0x7f06a0(_0x42cb04,_0x1d95ec)];let _0x57cc41=0xbb8;return this['activeMarkers']['includes'](_0x3e5fbb['markerName'])&&(_0x1456a6['push']('ck-suggestion-marker--active'),_0x57cc41=0xbc2),'deletion'==_0x42cb04&&(_0x57cc41+=0x5),{'classes':_0x1456a6,'attributes':{'data-suggestion':_0x4dc045,'data-author-id':_0x35e1cf},'priority':_0x57cc41};}}),_0x5f5ac2['conversion']['for']('dataDowncast')['add'](_0x5c651e=>{_0x5c651e['on']('addMarker:suggestion',(_0x27ced6,_0xc4f7d2,_0x3917b1)=>{if(!_0x3917b1['options']['showSuggestionHighlights'])return;const _0x51b53a=_0xc4f7d2['item'];if(!_0x51b53a)return;const _0x1f4738=_0x3917b1['mapper']['toViewElement'](_0x51b53a);_0x5f5ac2['model']['schema']['isObject'](_0x51b53a)&&_0x1f4738&&!_0x1f4738['getCustomProperty']('widget')&&_0x1f4738['is']('containerElement')&&_0x5442e8(_0x1f4738,_0x3917b1['writer']);},{'priority':'high'});}),_0x5f5ac2['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0xcad25e,_0x75f508)=>{if(!_0x75f508['options']['showSuggestionHighlights'])return null;const {type:_0x185262,subType:_0x50a21a}=this['_splitMarkerName'](_0xcad25e['markerName']);return{'classes':['ck-suggestion-marker',_0x7f06a0(_0x185262,_0x50a21a)],'priority':0xbb8};}});const _0x47abfb=({showActiveMarkers:_0x37ec69=!0x0,isAttributeSuggestion:_0x7f8433=!0x1}={})=>(_0x141f24,_0x111bc6,_0x4469eb)=>{if(!_0x111bc6['item'])return;const {id:_0x456afb,authorId:_0x18b476}=this['_splitMarkerName'](_0x111bc6['markerName']);if(_0x7f8433){const _0x4a5803=this['_suggestions']['get'](_0x456afb),_0x30a5d9=this['_getAttributeKey'](_0x4a5803);if(!this['_isBlockAttribute'](_0x30a5d9))return;}if(_0x111bc6['item']['is']('selection'))return void _0x4469eb['consumable']['consume'](_0x111bc6['item'],_0x141f24['name']);const _0x54428a=_0x4469eb['mapper']['toViewElement'](_0x111bc6['item']);if(_0x111bc6['item']['is']('element')&&_0x5f5ac2['model']['schema']['isBlock'](_0x111bc6['item'])&&!_0x54428a['getCustomProperty']('addHighlight')){_0x4469eb['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x54428a),_0x4469eb['writer']['setAttribute']('data-suggestion',_0x456afb,_0x54428a),_0x4469eb['writer']['setAttribute']('data-author-id',_0x18b476,_0x54428a),_0x4469eb['mapper']['bindElementToMarker'](_0x54428a,_0x111bc6['markerName']),_0x37ec69&&(this['activeMarkers']['includes'](_0x111bc6['markerName'])?_0x4469eb['writer']['addClass']('ck-suggestion-marker--active',_0x54428a):_0x4469eb['writer']['removeClass']('ck-suggestion-marker--active',_0x54428a));for(const _0x29704c of _0x5f5ac2['model']['createRangeIn'](_0x111bc6['item'])['getItems']())_0x4469eb['consumable']['consume'](_0x29704c,_0x141f24['name']);_0x4469eb['consumable']['consume'](_0x111bc6['item'],_0x141f24['name']);}};_0x5f5ac2['conversion']['for']('dataDowncast')['add'](_0x1af5e8=>{_0x1af5e8['on']('addMarker:suggestion:formatBlock',(_0x17ec14,_0x5e34b6,_0x3c0afe)=>{_0x3c0afe['options']['showSuggestionHighlights']&&_0x47abfb({'showActiveMarkers':!0x1})(_0x17ec14,_0x5e34b6,_0x3c0afe);},{'priority':'highest'});}),_0x5f5ac2['conversion']['for']('dataDowncast')['add'](_0x33c8df=>{_0x33c8df['on']('addMarker:suggestion:attribute',(_0x546a30,_0x46accf,_0xa32aa0)=>{_0xa32aa0['options']['showSuggestionHighlights']&&_0x47abfb({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x546a30,_0x46accf,_0xa32aa0);},{'priority':'highest'});}),_0x5f5ac2['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x4b258a,_0x2bcdc3)=>_0x2bcdc3['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x4b258a['substr'](0xb)}}),_0x5f5ac2['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x3acb83,{writer:_0xa188e6})=>{let _0x4cfdf5='suggestion:'+_0x3acb83['getAttribute']('suggestion-type')+':'+_0x3acb83['getAttribute']('id');return _0x3acb83['getAttribute']('marker-count')&&(_0x4cfdf5+=':'+_0x3acb83['getAttribute']('marker-count')),_0xa188e6['createElement']('$marker',{'data-name':_0x4cfdf5});}}),_0x5f5ac2['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x5f5ac2['conversion']['for']('editingDowncast')['add'](_0x115767=>{_0x115767['on']('addMarker:suggestion:formatBlock',_0x47abfb(),{'priority':'high'});}),_0x5f5ac2['conversion']['for']('editingDowncast')['add'](_0x3ae952=>{_0x3ae952['on']('addMarker:suggestion:attribute',_0x47abfb({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x5f5ac2['conversion']['for']('editingDowncast')['add'](_0x39719c=>{_0x39719c['on']('removeMarker:suggestion:formatBlock',(_0xec3078,_0x5430c0,_0xa2f5bc)=>{const _0xa3a307=_0xa2f5bc['mapper']['markerNameToElements'](_0x5430c0['markerName']);if(_0xa3a307){for(const _0x85a53a of _0xa3a307)_0x85a53a['getCustomProperty']('addHighlight')||(_0xa2f5bc['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x85a53a),_0xa2f5bc['writer']['removeAttribute']('data-suggestion',_0x85a53a),_0xa2f5bc['writer']['removeAttribute']('data-author-id',_0x85a53a),_0xa2f5bc['mapper']['unbindElementFromMarkerName'](_0x85a53a,_0x5430c0['markerName']));}},{'priority':'high'});}),_0x5f5ac2['conversion']['for']('editingDowncast')['add'](_0x79921=>{_0x79921['on']('removeMarker:suggestion:attribute',(_0x377504,_0x1b6c47,_0x109807)=>{const _0x12882e=_0x109807['mapper']['markerNameToElements'](_0x1b6c47['markerName']);if(!_0x12882e)return;const {id:_0xdf1a6a}=this['_splitMarkerName'](_0x1b6c47['markerName']),_0x566e99=this['_suggestions']['get'](_0xdf1a6a),_0x4d6e5a=this['_getAttributeKey'](_0x566e99);if(this['_isBlockAttribute'](_0x4d6e5a)){for(const _0x212b13 of _0x12882e)_0x212b13['getCustomProperty']('addHighlight')||(_0x109807['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x212b13),_0x109807['writer']['removeAttribute']('data-suggestion',_0x212b13),_0x109807['writer']['removeAttribute']('data-author-id',_0x212b13),_0x109807['mapper']['unbindElementFromMarkerName'](_0x212b13,_0x1b6c47['markerName']));}},{'priority':'high'});}),_0x5f5ac2['model']['document']['registerPostFixer'](_0x52dab6=>{let _0xd99213=!0x1;const _0x1aa16f=Array['from'](_0x5f5ac2['model']['document']['differ']['getChangedMarkers']()),_0x3cd641=new Set();for(const {name:_0x493964,data:_0x266131}of _0x1aa16f){const {group:_0x1b14d8,type:_0x3f9af2,subType:_0x5eb42a,id:_0x17d679}=this['_splitMarkerName'](_0x493964);if('suggestion'!==_0x1b14d8)continue;const _0xd59efa=this['_suggestions']['get'](_0x17d679);if(null!=_0x266131['newRange']){'formatInline'==_0x3f9af2&&(_0xd99213=_0xd99213||Pt(_0x266131['newRange'],_0x493964,_0x52dab6,_0x5f5ac2['model']['schema']));const _0x567369='attribute'==_0x3f9af2&&this['_isBlockAttribute'](_0x5eb42a['split']('|')[0x0]);if(_0x266131['newRange']['isCollapsed']||'$graveyard'==_0x266131['newRange']['root']['rootName']||'formatBlock'==_0x3f9af2&&!Lt(_0x266131['newRange'])||_0x567369&&!Lt(_0x266131['newRange'])||'deletion'==_0x3f9af2&&!(!Ft(_0x482c60=_0x266131['newRange'])&&!function(_0x3153a4){return _0x3153a4['start']['parent']==_0x3153a4['end']['nodeBefore']&&_0x3153a4['start']['isAtEnd'];}(_0x482c60)))_0x52dab6['removeMarker'](_0x493964),_0xd99213=!0x0;else{if(!_0xd59efa||!_0xd59efa['isInContent'])continue;if(_0x266131['newRange']&&_0x266131['oldRange']&&_0x266131['newRange']['isEqual'](_0x266131['oldRange']))continue;_0x3cd641['add'](_0xd59efa);}}}var _0x482c60;return _0x3cd641['size']>0x0&&(_0xd99213=!!this['_joinWithAdjacentSuggestions'](_0x3cd641)||_0xd99213),_0xd99213;}),_0x5f5ac2['model']['document']['registerPostFixer'](_0x5519e2=>{let _0x31b9aa=!0x1;for(const _0xfe948e of _0x5f5ac2['model']['document']['differ']['getChanges']())if('insert'==_0xfe948e['type'])for(const _0x7094c1 of this['_suggestions']['values']()){if(_0x7094c1['isMultiRange']||!_0x7094c1['isInContent'])continue;const _0x4ef33a='formatBlock'==_0x7094c1['type'],_0x2ddf4e=this['_getAttributeKey'](_0x7094c1),_0x9c63e7=_0x2ddf4e&&this['_isBlockAttribute'](_0x2ddf4e);if(!_0x4ef33a&&!_0x9c63e7)continue;const _0x169bed=_0x7094c1['getFirstRange']();if(_0x169bed['start']['parent']!=_0x169bed['end']['parent']&&!_0x169bed['end']['isAtEnd']){const _0x571329=_0x5f5ac2['model']['createPositionAt'](_0x169bed['start']['nodeAfter'],'end'),_0x31e0de=_0x5f5ac2['model']['createRange'](_0x169bed['start'],_0x571329);_0x5519e2['updateMarker'](_0x7094c1['getFirstMarker'](),{'range':_0x31e0de}),_0x31b9aa=!0x0;}}return _0x31b9aa;}),_0x5f5ac2['model']['document']['registerPostFixer'](_0x4cf11d=>this['_processAttributeChanges'](_0x4cf11d)),_0x5f5ac2['model']['document']['registerPostFixer'](_0x5722ba=>!_0x5722ba['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x5722ba)),_0x5f5ac2['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x5f5ac2['model']['document']['on']('change:data',(_0x5e780d,_0x195b77)=>{if(!_0x195b77['isLocal']||_0x195b77['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x4dccee=_0x5f5ac2['model']['document']['differ']['getChanges']();if(0x0==_0x4dccee['length'])return;const _0x28704e=[],_0x2194c4=_0x4dccee['filter'](_0x6b9ec6=>'attribute'==_0x6b9ec6['type']),_0x542d3b=_0x4dccee['filter'](_0x1d5b18=>'insert'==_0x1d5b18['type']&&'$text'!=_0x1d5b18['name']);for(const _0x1ca3dd of _0x2194c4)this['_isRegisteredAttribute'](_0x1ca3dd['attributeKey'])&&_0x28704e['push']({'key':_0x1ca3dd['attributeKey'],'newValue':_0x1ca3dd['attributeNewValue'],'oldValue':_0x1ca3dd['attributeOldValue'],'range':Jt(_0x1ca3dd['range'],_0x5f5ac2['model'])});for(const _0x565906 of _0x542d3b){if('rename'!=_0x565906['action']&&'refresh'!=_0x565906['action'])continue;const _0x2749f5=Kt(_0x565906['position']['nodeAfter'],_0x5f5ac2['model']),_0x1b9166=_0x565906['before'];'rename'==_0x565906['action']&&_0x28704e['push']({'key':u,'newValue':_0x565906['name'],'oldValue':_0x1b9166['name'],'range':_0x2749f5});for(const [_0x35f045,_0x4281a9]of _0x1b9166['attributes']){if(!this['_isRegisteredAttribute'](_0x35f045))continue;const _0x238a3f=_0x565906['attributes']['get'](_0x35f045);_0x4281a9!==_0x238a3f&&_0x28704e['push']({'key':_0x35f045,'newValue':_0x238a3f,'oldValue':_0x4281a9,'range':_0x2749f5});}for(const [_0x5b6660,_0x2da797]of _0x565906['attributes'])this['_isRegisteredAttribute'](_0x5b6660)&&(_0x1b9166['attributes']['has'](_0x5b6660)||_0x28704e['push']({'key':_0x5b6660,'newValue':_0x2da797,'oldValue':null,'range':_0x2749f5}));}0x0!=_0x28704e['length']&&_0x5f5ac2['model']['enqueueChange'](_0x195b77,_0x172011=>{const _0x336c87=_0x33987a();for(const {range:_0x129c4e,key:_0x2b290f,oldValue:_0x3980e6,newValue:_0x26844b}of _0x28704e)this['markAttributeChange'](_0x129c4e,_0x2b290f,_0x3980e6,_0x26844b,{'groupId':_0x336c87});this['_reduceExistingSuggestions'](_0x172011,_0x28704e);});},{'priority':'lowest'}),_0x5f5ac2['model']['markers']['on']('update:suggestion',(_0x41c176,_0x124bf6,_0x24bfdd)=>{if(null==_0x24bfdd){const {id:_0xfac1ec}=this['_splitMarkerName'](_0x124bf6['name']),_0x3beb5d=this['_suggestions']['get'](_0xfac1ec);_0x3beb5d&&_0x3beb5d['addMarkerName'](_0x124bf6['name']);}}),_0x5f5ac2['model']['document']['on']('change:data',()=>{const _0x371d54=Array['from'](_0x5f5ac2['model']['document']['differ']['getChangedMarkers']())['filter'](_0x31e8b3=>'suggestion'===this['_splitMarkerName'](_0x31e8b3['name'])['group']);if(0x0===_0x371d54['length'])return;_0x371d54['sort']((_0x1ebe99,_0x3a93a9)=>{const _0x12f69f=_0x1ebe99['data']['oldRange'],_0x3b2efb=_0x3a93a9['data']['oldRange'];return null===_0x12f69f&&null===_0x3b2efb?0x0:null===_0x12f69f&&null!==_0x3b2efb?-0x1:null!==_0x12f69f&&null===_0x3b2efb?0x1:_0x12f69f['start']['isBefore'](_0x3b2efb['start'])?-0x1:0x1;});const _0x110827=new Set(),_0x46d533=new Set();for(const {name:_0x236e18,data:_0xe2843f}of _0x371d54){const {id:_0x5dc555}=this['_splitMarkerName'](_0x236e18);if(null===_0xe2843f['oldRange']){const _0x2dedf1=this['_handleNewSuggestionMarker'](_0x236e18);_0x46d533['add'](_0x2dedf1);}else{const _0x4cf144=this['_suggestions']['get'](_0x5dc555);null!==_0xe2843f['newRange']||_0x4cf144['isInContent']?(_0x110827['add'](_0x4cf144['head']),_0x46d533['add'](_0x4cf144)):this['_removeSuggestion'](_0x4cf144);}}_0x46d533['size']>0x0&&this['_refreshSuggestionsChain'](_0x46d533);for(const _0x3f1664 of _0x110827)this['fire']('suggestionChanged',_0x3f1664);}),_0x5f5ac2['model']['on']('applyOperation',(_0x4b41cb,_0x1705df)=>{const _0x4ebc48=_0x1705df[0x0];if(!this['_suggestions']['size'])return;if(!_0x4ebc48['isDocumentOperation'])return;if(_0x4ebc48['batch']['isUndo']||!_0x4ebc48['batch']['isLocal'])return;let _0x57fbc7,_0x592c53;switch(_0x4ebc48['type']){case'insert':_0x57fbc7=_0x5f5ac2['model']['createPositionAt'](_0x4ebc48['position']),_0x592c53=_0x57fbc7['getShiftedBy'](_0x4ebc48['howMany']);break;case'split':_0x57fbc7=_0x5f5ac2['model']['createPositionAt'](_0x4ebc48['splitPosition']),_0x592c53=_0x5f5ac2['model']['createPositionAt'](_0x4ebc48['moveTargetPosition']);break;case'move':_0x57fbc7=_0x5f5ac2['model']['createPositionAt'](_0x4ebc48['targetPosition']),_0x592c53=_0x57fbc7['getShiftedBy'](_0x4ebc48['howMany']);break;default:return;}const _0x470182=_0x5f5ac2['model']['createRange'](_0x57fbc7,_0x592c53);_0x5f5ac2['model']['change'](()=>{for(const {suggestion:_0x2b6b58,meta:_0x493164}of this['_findSuggestions'](_0x470182)){if(_0x2b6b58['isMultiRange'])continue;if('formatInline'==_0x2b6b58['type'])continue;const _0x14f69a=this['_getAttributeKey'](_0x2b6b58);if(_0x14f69a&&this['_isBlockAttribute'](_0x14f69a)&&'split'!=_0x4ebc48['type'])continue;const _0x4d8381=_0x2b6b58['data']&&_0x2b6b58['data']['multipleBlocks'];('formatBlock'!=_0x2b6b58['type']||'split'==_0x4ebc48['type']&&!_0x4d8381)&&(_0x493164['containsRangeInObject']||'insertion'==_0x2b6b58['type']&&_0x493164['isOwn']||_0x2b6b58['getFirstRange']()['containsRange'](_0x470182)&&this['_breakSuggestionMarker'](_0x2b6b58,_0x57fbc7,_0x592c53));}});},{'priority':'lowest'}),_0x5f5ac2['model']['on']('deleteContent',(_0x3bc6ce,_0x28aaeb)=>{const _0x515579=_0x28aaeb[0x0],_0x57d494=_0x28aaeb[0x1];if(_0x57d494&&_0x57d494['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x515579['isCollapsed'])return;const _0x323b22=_0x5f5ac2['model']['schema'],{start:_0x953b5,end:_0x1d8675}=_0x515579['getFirstRange'](),_0x5254eb=_0x953b5['nodeAfter']&&_0x323b22['isLimit'](_0x953b5['nodeAfter'])?null:_0x323b22['getNearestSelectionRange'](_0x953b5,'forward'),_0x404cf8=_0x1d8675['nodeBefore']&&_0x323b22['isLimit'](_0x1d8675['nodeBefore'])?null:_0x323b22['getNearestSelectionRange'](_0x1d8675,'backward'),_0x187b4e=_0x5f5ac2['model']['createRange'](_0x5254eb?_0x5254eb['start']:_0x953b5,_0x404cf8?_0x404cf8['end']:_0x1d8675);_0x5f5ac2['model']['change'](_0x801cfd=>{this['markDeletion'](_0x187b4e);const _0x20b87f=_0x5f5ac2['model']['schema']['getNearestSelectionRange'](_0x187b4e['start']);_0x515579['is']('documentSelection')?_0x801cfd['setSelection'](_0x20b87f):_0x515579['setTo'](_0x20b87f);}),_0x3bc6ce['stop']();},{'priority':_0x9eec71['normal']+0xa}),_0x5f5ac2['model']['on']('insertContent',(_0x2f07d4,_0x54e3ec)=>{const _0x189710=_0x54e3ec[_0x54e3ec['length']-0x1];_0x189710&&_0x189710['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x5f5ac2['model']['change'](()=>{let _0x321267=_0x5f5ac2['model']['insertContent'](_0x54e3ec[0x0],_0x54e3ec[0x1],_0x54e3ec[0x2],{'forceDefaultExecution':!0x0});if(!_0x321267)return;_0x2f07d4['return']=_0x321267['clone']();const _0x28237b=_0x321267['end']['nodeBefore'],_0x50ab2a=_0x5f5ac2['model']['schema'];_0x28237b&&_0x50ab2a['isBlock'](_0x28237b)&&!_0x50ab2a['isObject'](_0x28237b)&&(_0x321267=_0x5f5ac2['model']['createRange'](_0x321267['start'],_0x5f5ac2['model']['createPositionAt'](_0x28237b,'end'))),this['markInsertion'](_0x321267);}),_0x2f07d4['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3657d1=new O(_0x5f5ac2,this['_suggestions']);_0x5f5ac2['commands']['add']('acceptSuggestion',_0x3657d1),this['enableCommand']('acceptSuggestion');const _0x322a1c=new R(_0x5f5ac2,this['_suggestions']);_0x5f5ac2['commands']['add']('discardSuggestion',_0x322a1c),this['enableCommand']('discardSuggestion'),_0x5f5ac2['commands']['add']('acceptAllSuggestions',new x(_0x5f5ac2,_0x3657d1,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x5f5ac2['commands']['add']('discardAllSuggestions',new x(_0x5f5ac2,_0x322a1c,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x5f5ac2['commands']['add']('acceptSelectedSuggestions',new E(_0x5f5ac2,_0x3657d1,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x5f5ac2['commands']['add']('discardSelectedSuggestions',new E(_0x5f5ac2,_0x322a1c,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x4653c4=_0x5f5ac2['plugins']['get']('CommentsRepository');this['listenTo'](_0x4653c4,'addComment',(_0x4c8623,{threadId:_0x17082f})=>{const _0x12948f=this['_suggestions']['get'](_0x17082f);_0x12948f&&_0x12948f['commentThread']&&0x1===_0x12948f['commentThread']['length']&&this['_updateSuggestionData'](_0x17082f,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x4653c4,'removeComment',(_0x4649a0,{threadId:_0x19b222})=>{const _0x46a0a9=this['_suggestions']['get'](_0x19b222);_0x46a0a9&&_0x46a0a9['commentThread']&&!_0x46a0a9['commentThread']['length']&&this['_updateSuggestionData'](_0x19b222,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x3cd1e7){const _0xb8464e=_0x527c35([0x74,0x76,0x37,0x4f,0x70,0x66,0x4d,0x6d,0x50,0x31,0x63,0x45,0x65,0x58,0x36,0x62,0x6e,0x33,0x41,0x32,0x4b,0x56,0x67,0x43,0x54,0x5a,0x39,0x34,0x4a,0x6f,0x4e,0x51,0x75,0x42,0x7a,0x78,0x6a,0x30,0x64,0x4c,0x38,0x53,0x69,0x73,0x6b,0x77,0x49,0x44,0x48,0x57,0x35,0x55,0x47,0x6c,0x72,0x79,0x46,0x61,0x71,0x52,0x68,0x59]),_0x57e91b=0x171e8f4e,_0x2353c3=0x1719d006^_0x57e91b,_0x44dd93=window[_0x527c35([0x44,0x61,0x74,0x65])][_0x527c35([0x6e,0x6f,0x77])](),_0x215108=_0x3cd1e7[_0x527c35([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2f8255=new window[(_0x527c35([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x42910c=>{_0x215108[_0x527c35([0x6f,0x6e,0x63,0x65])](_0x527c35([0x72,0x65,0x61,0x64,0x79]),_0x42910c);}),_0x20f6f4={[_0x527c35([0x6b,0x74,0x79])]:_0x527c35([0x45,0x43]),[_0x527c35([0x75,0x73,0x65])]:_0x527c35([0x73,0x69,0x67]),[_0x527c35([0x63,0x72,0x76])]:_0x527c35([0x50,0x2d,0x32,0x35,0x36]),[_0x527c35([0x78])]:_0x527c35([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]),[_0x527c35([0x79])]:_0x527c35([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]),[_0x527c35([0x61,0x6c,0x67])]:_0x527c35([0x45,0x53,0x32,0x35,0x36])},_0x2d328a=_0x215108[_0x527c35([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x527c35([0x67,0x65,0x74])](_0x527c35([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x271111(){let _0x2eeb7e,_0x108950=null,_0x26b411=null;try{if(_0x2d328a==_0x527c35([0x47,0x50,0x4c]))return _0x527c35([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2eeb7e=_0x4883d5(),!_0x2eeb7e)return _0x527c35([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2eeb7e[_0x527c35([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x26b411=_0x1d0ec0(_0x2eeb7e[_0x527c35([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2eeb7e[_0x527c35([0x6a,0x74,0x69])])),await _0x4f199b()?_0x3d4d7b()?_0x1e9ffe()?_0x527c35([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3cd206()?(_0x2eeb7e[_0x527c35([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x527c35([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x108950=_0x524647(_0x527c35([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2eeb7e[_0x527c35([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x527c35([0x74,0x72,0x69,0x61,0x6c])&&(_0x108950=_0x524647(_0x527c35([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2bcfe0()):_0x527c35([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x527c35([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x527c35([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x298d40){return _0x527c35([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1e9ffe(){const _0x5a2d65=[_0x527c35([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x527c35([0x74,0x72,0x69,0x61,0x6c])][_0x527c35([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2eeb7e[_0x527c35([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x44dd93/0x3e8:0xe10*_0x2353c3;return _0x2eeb7e[_0x527c35([0x65,0x78,0x70])]<_0x5a2d65;}function _0x3d4d7b(){const _0x2cfba3=_0x2eeb7e[_0x527c35([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2cfba3)return!0x1;if(_0x2cfba3[_0x527c35([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x527c35([0x2a])))return!0x0;if(_0x2cfba3[_0x527c35([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x527c35([0x54,0x43])))return!0x0;if(_0x2cfba3[_0x527c35([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x527c35([0x52,0x54,0x43]))){if(_0x3bb319())return!0x0;if(_0x4ed6b0()||_0x3940c2())return!0x0;}return!0x1;}function _0x3cd206(){const _0x44e380=_0x2eeb7e[_0x527c35([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x44e380||0x0==_0x44e380[_0x527c35([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x508449}=new URL(window[_0x527c35([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x44e380[_0x527c35([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x508449))return!0x0;const _0x583847=_0x508449[_0x527c35([0x73,0x70,0x6c,0x69,0x74])](_0x527c35([0x2e]));return _0x44e380[_0x527c35([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5c024f=>_0x5c024f[_0x527c35([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x527c35([0x2a])))[_0x527c35([0x6d,0x61,0x70])](_0x2765f7=>_0x2765f7[_0x527c35([0x73,0x70,0x6c,0x69,0x74])](_0x527c35([0x2e])))[_0x527c35([0x73,0x6f,0x6d,0x65])](_0x3c543b=>_0x583847[_0x527c35([0x65,0x76,0x65,0x72,0x79])]((_0x1d45df,_0x1dc798)=>_0x3c543b[_0x1dc798]===_0x1d45df||_0x3c543b[_0x1dc798]===_0x527c35([0x2a])));}function _0x2bcfe0(){return _0x108950&&_0x26b411?new window[(_0x527c35([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4907bb,_0x177a78)=>{_0x108950[_0x527c35([0x74,0x68,0x65,0x6e])](_0x4907bb,_0x177a78),_0x26b411[_0x527c35([0x74,0x68,0x65,0x6e])](_0x58ff72=>{_0x58ff72!=_0x527c35([0x56,0x61,0x6c,0x69,0x64])&&_0x4907bb(_0x58ff72);},_0x177a78);}):_0x108950||_0x26b411||_0x527c35([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1d0ec0(_0x14f12d,_0x19349d){return new window[(_0x527c35([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1fcba6=>{if(_0x196960())return _0x1fcba6(_0x527c35([0x56,0x61,0x6c,0x69,0x64]));_0x363e7b(),_0x215108[_0x527c35([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x527c35([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x322e9e=!0x1;const _0x7470b0=_0x33987a();function _0x46a54b(_0x2f1165){return!!_0x2f1165&&(typeof _0x2f1165===_0x527c35([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2f1165===_0x527c35([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2f1165[_0x527c35([0x74,0x68,0x65,0x6e])]===_0x527c35([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2f1165[_0x527c35([0x63,0x61,0x74,0x63,0x68])]===_0x527c35([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5161a8(_0x4890e6){_0x4117f2(_0x4890e6)[_0x527c35([0x74,0x68,0x65,0x6e])](_0x35c14a=>{if(!_0x35c14a||_0x35c14a[_0x527c35([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x527c35([0x6f,0x6b]))return _0x527c35([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xc90d8f(_0x30b870(_0x7470b0+_0x19349d))!=_0x35c14a[_0x527c35([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x527c35([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x527c35([0x56,0x61,0x6c,0x69,0x64]);})[_0x527c35([0x74,0x68,0x65,0x6e])](_0x255b90=>(_0x471767(),_0x255b90),()=>{const _0x454de1=_0x37492a();return null==_0x454de1?(_0x471767(),_0x527c35([0x56,0x61,0x6c,0x69,0x64])):_0x527c35(_0x44dd93-_0x454de1>(0x33120b4e^_0x57e91b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x527c35([0x74,0x68,0x65,0x6e])](_0x1fcba6)[_0x527c35([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1fcba6(_0x527c35([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xb9f7a4=0x172861ce^_0x57e91b;function _0x471767(){const _0x1f0fb3=_0x527c35([0x6c,0x6c,0x63,0x74,0x2d])+_0xc90d8f(_0x30b870(_0x14f12d)),_0x34192d=_0x3251d6(_0xc90d8f(window[_0x527c35([0x4d,0x61,0x74,0x68])][_0x527c35([0x63,0x65,0x69,0x6c])](_0x44dd93/_0xb9f7a4)));window[_0x527c35([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x527c35([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1f0fb3,_0x34192d);}function _0x37492a(){const _0x13c197=_0x527c35([0x6c,0x6c,0x63,0x74,0x2d])+_0xc90d8f(_0x30b870(_0x14f12d)),_0x548208=window[_0x527c35([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x527c35([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x13c197);return _0x548208?window[_0x527c35([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3251d6(_0x548208),0x10)*_0xb9f7a4:null;}function _0x4117f2(_0x5006c3){return new window[(_0x527c35([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xb60fcb,_0x4a4901)=>{_0x5006c3[_0x527c35([0x74,0x68,0x65,0x6e])](_0xb60fcb,_0x4a4901),window[_0x527c35([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4a4901,0x171f5b8e^_0x57e91b);});}}_0x215108[_0x527c35([0x6f,0x6e])](_0x527c35([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x311747,_0x4b2158)=>{if(_0x4b2158[0x0]!=_0x14f12d)return _0x1fcba6(_0x527c35([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4b2158[0x1]={..._0x4b2158[0x1],[_0x527c35([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x7470b0};},{[_0x527c35([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x527c35([0x68,0x69,0x67,0x68])}),_0x215108[_0x527c35([0x6f,0x6e])](_0x527c35([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x11f012=>{_0x46a54b(_0x11f012[_0x527c35([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x322e9e=!0x0,_0x5161a8(_0x11f012[_0x527c35([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x527c35([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x527c35([0x6c,0x6f,0x77])}),_0x2f8255[_0x527c35([0x74,0x68,0x65,0x6e])](()=>{_0x322e9e||_0x1fcba6(_0x527c35([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x196960(){return _0x215108[_0x527c35([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x527c35([0x76,0x69,0x65,0x77])][_0x527c35([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x527c35([0x61,0x75,0x74,0x6f]);}function _0x363e7b(){_0x215108[_0x527c35([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x527c35([0x76,0x69,0x65,0x77])][_0x527c35([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x527c35([0x61,0x75,0x74,0x6f]);}}function _0x524647(_0x2a2a87){const _0x35e8cf=[new window[(_0x527c35([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x16b9be=>setTimeout(_0x16b9be,0x1717b182^_0x57e91b)),_0x2f8255[_0x527c35([0x74,0x68,0x65,0x6e])](()=>new window[(_0x527c35([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a47ee=>{let _0x2dc3fb=0x0;_0x215108[_0x527c35([0x6d,0x6f,0x64,0x65,0x6c])][_0x527c35([0x6f,0x6e])](_0x527c35([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x131081,_0x58255f)=>{_0x58255f[0x0][_0x527c35([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2dc3fb++,_0x2dc3fb==(0x171e8eb6^_0x57e91b)&&(_0x5a47ee(),_0x131081[_0x527c35([0x6f,0x66,0x66])]());});}))];return window[_0x527c35([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x527c35([0x72,0x61,0x63,0x65])](_0x35e8cf)[_0x527c35([0x74,0x68,0x65,0x6e])](()=>_0x2a2a87);}async function _0x22d1ff(){await _0x2f8255,_0x215108[_0x527c35([0x6d,0x6f,0x64,0x65,0x6c])][_0x527c35([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x475b64,_0x215108[_0x527c35([0x6d,0x6f,0x64,0x65,0x6c])][_0x527c35([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x475b64,_0x215108[_0x527c35([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x527c35([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3bb319(){return _0x239590(_0x527c35([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x3f5855(_0x527c35([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x527c35([0x73,0x74,0x61,0x74,0x65])]==_0x527c35([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4ed6b0(){return _0x239590(_0x527c35([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 _0x3940c2(){return _0x239590(_0x527c35([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x554d82(_0x3c0246){const _0x2d5747=_0x48bbcd();_0x215108[_0x2d5747]=_0x527c35([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3c0246,_0x3c0246!=_0x527c35([0x56,0x61,0x6c,0x69,0x64])&&_0x22d1ff();}function _0x48bbcd(){const _0x587720=window[_0x527c35([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x527c35([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x527c35([0x6e,0x6f,0x77])]())[_0x527c35([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x527c35([0x2e]),'');let _0x51568b=_0x527c35([0x74]);for(let _0x2290b2=0x0;_0x2290b2<_0x587720[_0x527c35([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2290b2+=0x2){let _0x3ed78f=window[_0x527c35([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x587720[_0x527c35([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2290b2,_0x2290b2+0x2));_0x3ed78f>=_0xb8464e[_0x527c35([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3ed78f-=_0xb8464e[_0x527c35([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x51568b+=_0xb8464e[_0x3ed78f];}return _0x51568b;}function _0x4883d5(){const _0x3b76c1=_0x2d328a[_0x527c35([0x73,0x70,0x6c,0x69,0x74])](_0x527c35([0x2e]));if(0x3!=_0x3b76c1[_0x527c35([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x54fc1e(_0x3b76c1[0x1]);function _0x54fc1e(_0x593de9){const _0x187a6b=_0x1f86d1(_0x593de9);return _0x187a6b&&_0x3145d8()?_0x187a6b:null;function _0x3145d8(){const _0x4836ec=_0x187a6b[_0x527c35([0x6a,0x74,0x69])],_0x353c42=window[_0x527c35([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4836ec[_0x527c35([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4836ec[_0x527c35([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x51be55={..._0x187a6b,[_0x527c35([0x6a,0x74,0x69])]:_0x4836ec[_0x527c35([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4836ec[_0x527c35([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x51be55[_0x527c35([0x76,0x63])],_0x30b870(_0x51be55)==_0x353c42;}}}async function _0x4f199b(){let _0x332705=!0x0;try{const _0x2cd419=_0x2d328a[_0x527c35([0x73,0x70,0x6c,0x69,0x74])](_0x527c35([0x2e])),[_0x49b32b,_0x12493b,_0x5117e]=_0x2cd419;return _0x3e24cc(_0x49b32b),await _0x538834(_0x49b32b,_0x12493b,_0x5117e),_0x332705;}catch(_0x5a8a2e){return!0x1;}function _0x3e24cc(_0x170c3c){const _0x286167=_0x1f86d1(_0x170c3c);_0x286167&&_0x286167[_0x527c35([0x61,0x6c,0x67])]==_0x527c35([0x45,0x53,0x32,0x35,0x36])||(_0x332705=!0x1);}async function _0x538834(_0x5102cf,_0x1ca2b1,_0x24f4b7){const _0x152f41=window[_0x527c35([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x527c35([0x66,0x72,0x6f,0x6d])](_0xae838b(_0x24f4b7),_0x10c9fe=>_0x10c9fe[_0x527c35([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x138799=new window[(_0x527c35([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x527c35([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5102cf+_0x527c35([0x2e])+_0x1ca2b1),_0x285b56=window[_0x527c35([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x527c35([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x285b56)return;const _0xc34033=await _0x285b56[_0x527c35([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x527c35([0x6a,0x77,0x6b]),_0x20f6f4,{[_0x527c35([0x6e,0x61,0x6d,0x65])]:_0x527c35([0x45,0x43,0x44,0x53,0x41]),[_0x527c35([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x527c35([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x527c35([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x285b56[_0x527c35([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x527c35([0x6e,0x61,0x6d,0x65])]:_0x527c35([0x45,0x43,0x44,0x53,0x41]),[_0x527c35([0x68,0x61,0x73,0x68])]:{[_0x527c35([0x6e,0x61,0x6d,0x65])]:_0x527c35([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xc34033,_0x152f41,_0x138799)||(_0x332705=!0x1);}}function _0x1f86d1(_0x29f136){return _0x29f136[_0x527c35([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x527c35([0x65,0x79]))?JSON[_0x527c35([0x70,0x61,0x72,0x73,0x65])](_0xae838b(_0x29f136)):null;}function _0xae838b(_0x5a81a9){return window[_0x527c35([0x61,0x74,0x6f,0x62])](_0x5a81a9[_0x527c35([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x527c35([0x2b]))[_0x527c35([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x527c35([0x2f])));}function _0x30b870(_0x1f5d23){let _0x1f9f9d=0x1505;function _0x40fde9(_0x3f8d3e){for(let _0x2e1cf0=0x0;_0x2e1cf0<_0x3f8d3e[_0x527c35([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2e1cf0++){const _0x538c72=_0x3f8d3e[_0x527c35([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2e1cf0);_0x1f9f9d=(_0x1f9f9d<<0x5)+_0x1f9f9d+_0x538c72,_0x1f9f9d&=_0x1f9f9d;}}function _0x12230d(_0x454f8f){Array[_0x527c35([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x454f8f)?_0x454f8f[_0x527c35([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x12230d):_0x454f8f&&typeof _0x454f8f==_0x527c35([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x527c35([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x454f8f)[_0x527c35([0x73,0x6f,0x72,0x74])]()[_0x527c35([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x19d713,_0x31545a])=>{_0x40fde9(_0x19d713),_0x12230d(_0x31545a);}):_0x40fde9(window[_0x527c35([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x454f8f));}return _0x12230d(_0x1f5d23),_0x1f9f9d>>>0x0;}function _0xc90d8f(_0x23b617){return _0x23b617[_0x527c35([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x527c35([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x527c35([0x30]));}function _0x3251d6(_0x47570a){return _0x47570a[_0x527c35([0x73,0x70,0x6c,0x69,0x74])]('')[_0x527c35([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x527c35([0x6a,0x6f,0x69,0x6e])]('');}function _0x239590(_0x365c98){return _0x215108[_0x527c35([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x527c35([0x68,0x61,0x73])](_0x365c98);}function _0x3f5855(_0x5ddd25){return _0x215108[_0x527c35([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x527c35([0x67,0x65,0x74])](_0x5ddd25);}function _0x475b64(){}function _0x527c35(_0x55a795){return _0x55a795['map'](_0x37c72b=>String['fromCharCode'](_0x37c72b))['join']('');}_0x554d82(await _0x271111());}(this);}set['adapter'](_0x1e6aa4){if(this['_adapter'])throw new _0x3d4351('track-changes-adapter-already-set',this);this['_adapter']=_0x1e6aa4;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2286e9=!0x1,toJSON:_0x112c79=!0x1}={}){const _0x56f5c7=[];for(const _0x1c26ef of this['_suggestions']['values']())_0x2286e9&&!_0x1c26ef['isInContent']||_0x56f5c7['push'](_0x1c26ef);return _0x112c79?_0x56f5c7['map'](_0x1e1721=>_0x1e1721['toJSON']()):_0x56f5c7;}['getSuggestion'](_0x242c3c){const _0x31b7e0=this['_suggestions']['get'](_0x242c3c);if(!_0x31b7e0)throw new _0x3d4351('track-changes-suggestion-not-found',this);return _0x31b7e0;}['hasSuggestion'](_0x345fa1){return this['_suggestions']['has'](_0x345fa1);}['addSuggestionData'](_0x4328f5){const {authorId:_0x1f6c52,id:_0x5b44f7,attributes:_0x50bead}=_0x4328f5,[_0x17dae2,_0x433c50]=_0x4328f5['type']['split'](':'),_0xbadf94=this['_suggestions']['get'](_0x5b44f7)||this['_createSuggestion'](_0x17dae2,_0x433c50,_0x5b44f7,_0x1f6c52,_0x50bead);if(this['_addThreadToSuggestion'](_0xbadf94),this['_checkSuggestionCorrectness'](_0xbadf94,_0x17dae2,_0x433c50||null,_0x1f6c52),_0xbadf94['createdAt']=_0x4328f5['createdAt'],_0xbadf94['_isDataLoaded']=!0x0,_0x50bead&&_0x50bead['@external']){const _0x39bfc0=_0x50bead['@external'],_0x1820f9=this['_getExternalAuthor'](_0x39bfc0['authorName']);_0xbadf94['authoredAt']=_0x39bfc0['createdAt'],_0xbadf94['author']=_0x1820f9,_0xbadf94['isExternal']=!0x0;}else _0xbadf94['authoredAt']=_0x4328f5['createdAt'];switch(_0x4328f5['data']&&(_0xbadf94['data']=_0x4328f5['data']),_0x4328f5['attributes']&&(_0xbadf94['attributes']=_0x4328f5['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0xbadf94['_saved']=!0x0),this['_suggestionState']['get'](_0xbadf94)){case'notReady':this['_suggestionState']['set'](_0xbadf94,'dataReady');break;case'markerReady':_0xbadf94['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0xbadf94])),this['_refreshSuggestionsChain'](new Set([_0xbadf94])),this['_suggestionState']['set'](_0xbadf94,'ready'),this['fire']('suggestionLoaded',_0xbadf94)):this['_suggestionState']['set'](_0xbadf94,'removed');}return _0xbadf94;}['acceptSuggestion'](_0x505075){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5b96d2 of _0x505075['getAllAdjacentSuggestions']())_0x5b96d2['accept']();});});}['discardSuggestion'](_0x46b163){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x379521 of _0x46b163['getAllAdjacentSuggestions']())_0x379521['discard']();});});}['enableCommand'](_0x2a1019,_0xb5b7d7){const _0x477474=this['editor']['commands']['get'](_0x2a1019);if(!_0x477474)throw new _0x3d4351('track-changes-command-not-found',this,{'commandName':_0x2a1019});if(this['_enabledCommands']['has'](_0x477474))throw new _0x3d4351('track-changes-enable-command-twice',this,{'commandName':_0x2a1019});this['_enabledCommands']['add'](_0x477474),_0xb5b7d7&&_0x477474['on']('execute',(_0x9324d2,_0x502612)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x502612['length']>0x0&&_0x502612[_0x502612['length']-0x1]&&_0x502612[_0x502612['length']-0x1]['forceDefaultExecution']?_0x502612['pop']():(_0x9324d2['return']=_0xb5b7d7((..._0x5bf560)=>_0x477474['execute'](..._0x5bf560,{'forceDefaultExecution':!0x0}),..._0x502612),_0x9324d2['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x41653b){let _0x50e79e,_0x41ccd3;const _0x228ce7=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x50e79e=_0x41653b();}catch(_0x1b8f8c){_0x41ccd3=_0x1b8f8c;}return _0x228ce7||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x41ccd3&&_0x3d4351['rethrowUnexpectedError'](_0x41ccd3,this),_0x50e79e;}['markInsertion'](_0x15c7ce,_0x9e6623=null,_0x27f7d1={}){if(_0x15c7ce['isCollapsed'])return null;const _0x8082bb=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x3e3e9e,meta:_0x1f0cb3}of this['_findSuggestions'](_0x15c7ce,'insertion'))if(_0x1f0cb3['isOwn']){if(!_0x1f0cb3['isNextTo']){if(_0x1f0cb3['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!zt(_0x3e3e9e,_0x27f7d1))continue;return _0x3e3e9e;}if(zt(_0x3e3e9e,_0x27f7d1))return _0x3e3e9e;this['_breakSuggestionMarker'](_0x3e3e9e,_0x15c7ce['start'],_0x15c7ce['end']);break;}if(_0x9e6623==_0x3e3e9e['subType']&&zt(_0x3e3e9e,_0x27f7d1)){const _0x3ab122=_0x3e3e9e['getFirstRange']();return _0x3ab122['start']['isEqual'](_0x15c7ce['end'])?this['_setSuggestionRange'](_0x3e3e9e,this['_model']['createRange'](_0x15c7ce['start'],_0x3ab122['end'])):this['_setSuggestionRange'](_0x3e3e9e,this['_model']['createRange'](_0x3ab122['start'],_0x15c7ce['end'])),_0x3e3e9e;}}const _0x4c3b53=_0x33987a(),_0xf7c997=_0x8082bb['id'],_0x5069c1=_0x9e6623?'insertion:'+_0x9e6623:'insertion',_0xc420e2=this['_setSuggestionData']({'id':_0x4c3b53,'type':_0x5069c1,'createdAt':new Date(),'authorId':_0xf7c997,'attributes':_0x27f7d1});return this['_addSuggestionMarker'](_0x5069c1,_0x4c3b53,_0xf7c997,_0x15c7ce),_0xc420e2;}['markMultiRangeInsertion'](_0x355d82,_0x4c4aff='multi',_0x2355fb={}){const _0x1a0d6a=this['editor']['plugins']['get']('Users')['me'],_0xaeafca=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x4c4aff,'join');for(const _0x5d70ae of this['getSuggestions']())if(_0x5d70ae['author']['id']==_0x1a0d6a['id']&&'insertion'==_0x5d70ae['type']&&_0x5d70ae['subType']==_0x4c4aff&&zt(_0x5d70ae,_0x2355fb)&&(_0xaeafca(_0x5d70ae['getRanges'](),_0x355d82)||_0xaeafca(_0x355d82,_0x5d70ae['getRanges']()))){for(const _0x506461 of _0x355d82)_0x5d70ae['addRange'](_0x506461);return _0x5d70ae;}for(const {suggestion:_0x598aef,meta:_0x191fd8}of this['_findSuggestions'](_0x355d82,'insertion')){if(!_0x191fd8['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x191fd8['containsRangeInObject'])continue;if(!zt(_0x598aef,_0x2355fb))continue;let _0x48b10d=!0x0;for(const _0x496d65 of _0x598aef['getRanges']())for(const _0x17b082 of _0x355d82)if(!_0x496d65['containsRange'](_0x17b082)){_0x48b10d=!0x1;break;}if(_0x48b10d)return _0x598aef;}const _0xf73ac9=_0x33987a(),_0x374a82=_0x1a0d6a['id'],_0x1e7122='insertion:'+_0x4c4aff,_0x2fe1a7=this['_setSuggestionData']({'id':_0xf73ac9,'type':_0x1e7122,'createdAt':new Date(),'authorId':_0x374a82,'attributes':_0x2355fb});for(const _0x30e977 of _0x355d82)this['_addSuggestionMarker'](_0x1e7122,_0xf73ac9,_0x374a82,_0x30e977,o['getMultiRangeId']());return _0x2fe1a7;}['markInlineFormat'](_0x3fe5df,_0x15a38b,_0x4fd7df=null,_0x2e7074={}){if(_0x4fd7df=_0x4fd7df||Gt(_0x15a38b),_0x3fe5df['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x57f42a=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4fd7df,'accept');return this['forceDefaultExecution'](()=>_0x57f42a([_0x3fe5df],_0x15a38b,_0x2e7074)),null;}const _0x566a9b=this['editor']['plugins']['get']('Users')['me'],_0xaeacb1=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3d7606,meta:_0x4d2b69}of this['_findSuggestions'](_0x3fe5df,'insertion'))_0x4d2b69['isOwn']&&!_0x4d2b69['isInsideObject']&&_0xaeacb1['push'](..._0x3d7606['getRanges']());}const _0x1dccf1=function(_0x2b8841,_0xcc32fa){const _0x123c4e=[];for(const _0x196d46 of _0xcc32fa){const _0x1853f8=_0x2b8841['getIntersection'](_0x196d46);_0x1853f8&&_0x123c4e['push'](_0x1853f8);}return _0x123c4e;}(_0x3fe5df,_0xaeacb1),_0x2e0dbf=function(_0x6ee042,_0x5e4509){const _0xb0a6a5=[_0x6ee042];for(const _0x28dcd1 of _0x5e4509){let _0x36eb65=0x0;for(;_0x36eb65<_0xb0a6a5['length'];){const _0x7fb3e2=_0xb0a6a5[_0x36eb65]['getDifference'](_0x28dcd1);_0xb0a6a5['splice'](_0x36eb65,0x1,..._0x7fb3e2),_0x36eb65+=_0x7fb3e2['length'];}}return _0xb0a6a5;}(_0x3fe5df,_0xaeacb1);_0x1dccf1['length']&&this['_model']['change'](()=>{for(const _0x1b24e2 of _0x1dccf1){const _0x4d5167=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4fd7df,'accept');this['forceDefaultExecution'](()=>_0x4d5167([_0x1b24e2],_0x15a38b,_0x2e7074));}});for(const _0x5da5e7 of _0x2e0dbf){let _0x50bb99=null,_0x1e6870=_0x5da5e7['start'],_0x345e9c=_0x5da5e7['end'];for(const {suggestion:_0xb3b3f9,meta:_0x579c03}of this['_findSuggestions'](_0x5da5e7,'formatInline')){if(!_0x579c03['isOwn'])continue;if(_0xb3b3f9['subType']!=_0x4fd7df)continue;if(!zt(_0xb3b3f9,_0x2e7074))continue;const _0x7094be=_0xb3b3f9['getFirstRange']();if(_0x7094be['containsRange'](_0x5da5e7,!0x0))return null;_0x1e6870=_0x1e6870['isBefore'](_0x7094be['start'])?_0x1e6870:_0x7094be['start'],_0x345e9c=_0x345e9c['isAfter'](_0x7094be['end'])?_0x345e9c:_0x7094be['end'],_0x50bb99?_0x7094be['start']['isBefore'](_0x50bb99['getFirstRange']()['start'])?(_0x50bb99['removeMarkers'](),_0x50bb99=_0xb3b3f9):_0xb3b3f9['removeMarkers']():_0x50bb99=_0xb3b3f9;}const _0x96c5d0=this['_model']['createRange'](_0x1e6870,_0x345e9c);if(_0x50bb99)this['_setSuggestionRange'](_0x50bb99,_0x96c5d0);else{const _0x11b9be=_0x33987a(),_0x460fd3=_0x566a9b['id'];this['_setSuggestionData']({'id':_0x11b9be,'type':'formatInline:'+_0x4fd7df,'data':_0x15a38b,'createdAt':new Date(),'authorId':_0x460fd3,'attributes':_0x2e7074}),this['_addSuggestionMarker']('formatInline:'+_0x4fd7df,_0x11b9be,_0x460fd3,_0x96c5d0);}}return null;}['markBlockFormat'](_0x2f8699,_0xee17d4,_0x31b141=[],_0x5e2985=null,_0x5524ae={}){_0xee17d4['formatGroupId']||(_0xee17d4['formatGroupId']=_0xee17d4['commandName']),_0xee17d4['multipleBlocks']=_0x2f8699['is']('range'),_0x5e2985=_0x5e2985||Gt(_0xee17d4);const _0x2752d5=_0x31b141['map'](_0x973b13=>Kt(_0x973b13,this['_model'])),_0x21c712=_0x2f8699['is']('range')?_0x2f8699:Kt(_0x2f8699,this['_model']);if('never'===this['_trackFormatChanges']){const _0x380171=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5e2985,'accept');return this['forceDefaultExecution'](()=>_0x380171([_0x21c712],_0xee17d4,_0x5524ae)),null;}_0x2752d5['push'](_0x21c712);let _0x5205c4=!0x0;for(const _0x1e5a00 of _0x2752d5)if(!this['_rangeIsInLocalUserInsertion'](_0x1e5a00)){_0x5205c4=!0x1;break;}if(_0x5205c4&&'always'!==this['_trackFormatChanges']){const _0x5472bd=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5e2985,'accept');return this['forceDefaultExecution'](()=>_0x5472bd([_0x21c712],_0xee17d4,_0x5524ae)),null;}let _0x46b5bb=null,_0x46f5e4=_0x21c712['start'],_0x4fd211=_0x21c712['end'];for(const {suggestion:_0x3f4c72,meta:_0x1248ce}of this['_findSuggestions'](_0x21c712,'formatBlock')){if(!_0x1248ce['isOwn'])continue;if(_0x1248ce['isNextTo']||_0x1248ce['containsRangeInObject']||_0x1248ce['isInsideObject'])continue;if(_0x3f4c72['data']['formatGroupId']!=_0xee17d4['formatGroupId'])continue;if(!zt(_0x3f4c72,_0x5524ae))continue;const _0x4e3d94=_0x3f4c72['getFirstRange']();if(_0x3f4c72['subType']==_0x5e2985){if(_0x4e3d94['containsRange'](_0x21c712,!0x0))return null;_0x46f5e4=_0x46f5e4['isBefore'](_0x4e3d94['start'])?_0x46f5e4:_0x4e3d94['start'],_0x4fd211=_0x4fd211['isAfter'](_0x4e3d94['end'])?_0x4fd211:_0x4e3d94['end'],_0x46b5bb?_0x4e3d94['start']['isBefore'](_0x46b5bb['getFirstRange']()['start'])?(_0x46b5bb['removeMarkers'](),_0x46b5bb=_0x3f4c72):_0x3f4c72['removeMarkers']():_0x46b5bb=_0x3f4c72;}else{const _0x41d7bf=_0x21c712['getIntersection'](_0x4e3d94);this['_cutOutSuggestionMarker'](_0x3f4c72,_0x41d7bf);}}const _0x308bb5=this['editor']['plugins']['get']('Users')['me'],_0xb602cc=_0x33987a(),_0x42a47d=_0x308bb5['id'];if(_0x46b5bb)return this['_setSuggestionRange'](_0x46b5bb,this['_model']['createRange'](_0x46f5e4,_0x4fd211)),_0x46b5bb;{const _0xc3107b=this['_setSuggestionData']({'id':_0xb602cc,'type':'formatBlock:'+_0x5e2985,'data':_0xee17d4,'createdAt':new Date(),'authorId':_0x42a47d,'attributes':_0x5524ae});return this['_addSuggestionMarker']('formatBlock:'+_0x5e2985,_0xb602cc,_0x42a47d,this['_model']['createRange'](_0x46f5e4,_0x4fd211)),_0xc3107b;}}['markMultiRangeBlockFormat'](_0x66227e,_0x587048,_0x5ceec8=[],_0x4f5033=null,_0x382e27={}){_0x587048['formatGroupId']||(_0x587048['formatGroupId']=_0x587048['commandName']);const _0x1568e3=_0x66227e[0x0];_0x587048['multipleBlocks']=_0x1568e3['is']('range'),_0x4f5033=_0x4f5033||Gt(_0x587048);const _0x5023bb=_0x5ceec8['map'](_0x733e6=>Kt(_0x733e6,this['_model'])),_0x2b0547=_0x1568e3['is']('range')?_0x66227e:_0x66227e['map'](_0x157f0a=>Kt(_0x157f0a,this['_model']));if('never'===this['_trackFormatChanges']){const _0x1d4dea=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4f5033,'accept');return this['forceDefaultExecution'](()=>_0x1d4dea(_0x2b0547,_0x587048,_0x382e27)),null;}_0x5023bb['push'](..._0x2b0547);let _0x2c2577=!0x0;for(const _0x4afaab of _0x5023bb)if(!this['_rangeIsInLocalUserInsertion'](_0x4afaab)){_0x2c2577=!0x1;break;}if(_0x2c2577&&'always'!==this['_trackFormatChanges']){const _0x376177=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4f5033,'accept');return this['forceDefaultExecution'](()=>_0x376177(_0x2b0547,_0x587048,_0x382e27)),null;}const _0x3c376f=this['editor']['plugins']['get']('Users')['me'];for(const _0x3b5099 of this['getSuggestions']()){if(_0x3b5099['author']['id']!=_0x3c376f['id'])continue;if('formatBlock'!=_0x3b5099['type']||_0x3b5099['data']['formatGroupId']!=_0x587048['formatGroupId'])continue;if(!zt(_0x3b5099,_0x382e27))continue;const _0x78c471=_0x3b5099['subType']==_0x4f5033;for(let _0x53f048=0x0;_0x53f048<_0x2b0547['length'];_0x53f048++){const _0x578e87=_0x2b0547[_0x53f048];for(const _0x34b686 of _0x3b5099['getMarkers']()){const _0x35e436=_0x34b686['getRange']();if(_0x578e87['isEqual'](_0x35e436)){_0x78c471?(_0x2b0547['splice'](_0x53f048,0x1),_0x53f048--):_0x3b5099['removeMarker'](_0x34b686['name']);break;}}}}if(0x0==_0x2b0547['length'])return null;const _0x54ca16=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4f5033,'join');for(const _0x3342e4 of this['getSuggestions']())if(_0x3342e4['author']['id']==_0x3c376f['id']&&'formatBlock'==_0x3342e4['type']&&_0x3342e4['data']['formatGroupId']==_0x587048['formatGroupId']&&_0x3342e4['subType']==_0x4f5033&&zt(_0x3342e4,_0x382e27)&&(_0x54ca16(_0x3342e4['getRanges'](),_0x2b0547)||_0x54ca16(_0x2b0547,_0x3342e4['getRanges']()))){for(const _0x16c117 of _0x2b0547)_0x3342e4['addRange'](_0x16c117);return _0x3342e4;}const _0x264a79=_0x33987a(),_0x54b35d=_0x3c376f['id'],_0x5787a3='formatBlock:'+_0x4f5033,_0x1f6d9c=this['_setSuggestionData']({'id':_0x264a79,'type':_0x5787a3,'data':_0x587048,'createdAt':new Date(),'authorId':_0x54b35d,'attributes':_0x382e27});for(const _0x13793f of _0x2b0547)this['_addSuggestionMarker'](_0x5787a3,_0x264a79,_0x54b35d,_0x13793f,o['getMultiRangeId']());return _0x1f6d9c;}['markDeletion'](_0x56769c,_0x2b59d4=null,_0x4c819f={}){if(_0x56769c['isCollapsed'])return null;const _0x57fc8a=this['editor']['plugins']['get']('Users')['me'],_0x31bb26=new _0x7362da(_0x56769c['start'],_0x56769c['end']);for(const {suggestion:_0x4c97e5,meta:_0x4d94bd}of this['_findSuggestions'](_0x31bb26,'insertion'))if(_0x4d94bd['isOwn']&&!_0x4d94bd['isNextTo']){if(_0x4c97e5['isMultiRange']){const _0x2e7837=_0x4c97e5['getRanges']()['filter'](_0x1a5d5c=>'$graveyard'!=_0x1a5d5c['root']['rootName']);_0x2e7837['every'](_0x507912=>_0x31bb26['containsRange'](_0x507912,!0x0))&&_0x4c97e5['discard']();if(_0x2e7837['some'](_0x50a2f0=>_0x50a2f0['containsRange'](_0x31bb26,!0x0))){const _0x58700c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2b59d4,'accept');return this['forceDefaultExecution'](()=>_0x58700c([_0x31bb26],null,_0x4c819f)),null;}}else{const _0x24dcd9=_0x31bb26['getIntersection'](_0x4c97e5['getFirstRange']());null!==_0x24dcd9&&_0x4c97e5['_onDiscard']([_0x24dcd9],null,_0x4c819f);}}if(_0x31bb26['detach'](),_0x31bb26['isCollapsed']||'$graveyard'==_0x31bb26['root']['rootName'])return null;let _0x5a495e=null,_0x40fbec=_0x31bb26['start'],_0x3a3e6a=_0x31bb26['end'];const _0x181042=this['_findSuggestions'](_0x31bb26,'deletion');for(const {suggestion:_0x595ed3,meta:_0xf84f8f}of _0x181042){const _0x378756=this['_model']['createRange'](_0x40fbec,_0x3a3e6a);if(_0xf84f8f['isOwn']&&(this['_mergeNestedSuggestions']||!_0xf84f8f['containsRangeInObject']&&!_0xf84f8f['isInsideObject'])){if(_0x595ed3['isMultiRange']){if(!zt(_0x595ed3,_0x4c819f))continue;let _0x12f60b=!0x0;for(const _0x1a86e4 of _0x595ed3['getRanges']()){if(_0x1a86e4['containsRange'](_0x378756,!0x0))return _0x595ed3;_0x378756['containsRange'](_0x1a86e4)||(_0x12f60b=!0x1);}_0x12f60b&&_0x595ed3['discard']();}else{const _0x4c469a=_0x595ed3['getFirstRange']();if(_0x4c469a['containsRange'](_0x378756,!0x0))return _0x595ed3;if(!zt(_0x595ed3,_0x4c819f)){_0x378756['containsRange'](_0x4c469a)?_0x595ed3['removeMarkers']():_0x4c469a['containsPosition'](_0x40fbec)?_0x40fbec=_0x4c469a['end']:_0x4c469a['containsPosition'](_0x3a3e6a)&&(_0x3a3e6a=_0x4c469a['start']);continue;}_0x40fbec=_0x40fbec['isBefore'](_0x4c469a['start'])?_0x40fbec:_0x4c469a['start'],_0x3a3e6a=_0x3a3e6a['isAfter'](_0x4c469a['end'])?_0x3a3e6a:_0x4c469a['end'],_0x4c819f=Object['assign']({},_0x595ed3['attributes']),_0x5a495e?_0x4c469a['start']['isBefore'](_0x5a495e['getFirstRange']()['start'])?(_0x5a495e['removeMarkers'](),_0x5a495e=_0x595ed3):_0x595ed3['removeMarkers']():_0x5a495e=_0x595ed3;}}}if(_0x5a495e)return this['_setSuggestionRange'](_0x5a495e,this['_model']['createRange'](_0x40fbec,_0x3a3e6a)),_0x5a495e;{const _0x2096c1=_0x33987a(),_0x106a46=this['_model']['createRange'](_0x40fbec,_0x3a3e6a),_0x259814=_0x57fc8a['id'],_0x15e0ce=_0x2b59d4?'deletion:'+_0x2b59d4:'deletion',_0x180b85=this['_setSuggestionData']({'id':_0x2096c1,'type':_0x15e0ce,'createdAt':new Date(),'authorId':_0x259814,'attributes':_0x4c819f});return this['_addSuggestionMarker'](_0x15e0ce,_0x2096c1,_0x259814,_0x106a46),_0x180b85;}}['markMultiRangeDeletion'](_0x2ffb02,_0xc3d40f='multi',_0x2c1e6c={}){const _0x349f1b=this['editor']['plugins']['get']('Users')['me'],_0x229d56=_0x2ffb02['map'](_0x230d8d=>new _0x7362da(_0x230d8d['start'],_0x230d8d['end'])),_0x436eac=new Set();for(const {suggestion:_0x5d2bf0,meta:_0x672a6a}of this['_findSuggestions'](_0x229d56,'insertion'))_0x672a6a['isOwn']&&!_0x672a6a['isNextTo']&&_0x436eac['add'](_0x5d2bf0);for(const _0x527c2a of _0x436eac)if(_0x527c2a['isMultiRange']){const _0x5e086e=_0x527c2a['getRanges']();(!_0x527c2a['attributes']||!_0x527c2a['attributes']['skipNestingCheck'])&&(_0x5e086e['every'](_0x2cb7a8=>_0x229d56['some'](_0x5ba418=>_0x5ba418['containsRange'](_0x2cb7a8,!0x0)))&&_0x527c2a['discard']());if(_0x229d56['every'](_0x551a43=>_0x5e086e['some'](_0x2565ee=>_0x2565ee['containsRange'](_0x551a43,!0x0)))){const _0x429664=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xc3d40f,'accept');return this['forceDefaultExecution'](()=>_0x429664(_0x2ffb02,null,_0x2c1e6c)),null;}}else{const _0x34e218=_0x527c2a['getFirstRange']();_0x229d56['some'](_0x4dfc4b=>_0x4dfc4b['containsRange'](_0x34e218,!0x0))&&_0x527c2a['discard']();if(_0x229d56['every'](_0x115e27=>_0x34e218['containsRange'](_0x115e27,!0x0))){const _0x43ee5b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xc3d40f,'accept');return this['forceDefaultExecution'](()=>_0x43ee5b(_0x229d56,null,_0x2c1e6c)),null;}}const _0x31b2d6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xc3d40f,'join');let _0x26ca11=null;for(const _0x3030ec of this['getSuggestions']())if(_0x3030ec['author']['id']==_0x349f1b['id']&&_0x3030ec['isInContent']&&'deletion'==_0x3030ec['type']&&_0x3030ec['subType']==_0xc3d40f&&zt(_0x3030ec,_0x2c1e6c)&&(_0x31b2d6(_0x3030ec['getRanges'](),_0x229d56)||_0x31b2d6(_0x229d56,_0x3030ec['getRanges']()))){if(_0x26ca11){if(_0x3030ec['commentThread']&&_0x3030ec['commentThread']['length'])continue;for(const _0x40f214 of _0x3030ec['getRanges']())_0x26ca11['isIntersectingWithRange'](_0x40f214)||_0x26ca11['addRange'](_0x40f214);_0x3030ec['removeMarkers']();}else{_0x26ca11=_0x3030ec;for(const _0x291831 of _0x229d56)_0x3030ec['isIntersectingWithRange'](_0x291831)||_0x3030ec['addRange'](_0x291831);}}if(_0x26ca11)return _0x26ca11;_0x436eac['clear']();for(const {suggestion:_0x4f565a,meta:_0x4c3bd9}of this['_findSuggestions'](_0x229d56,'deletion'))_0x4c3bd9['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4c3bd9['containsRangeInObject']&&!_0x4c3bd9['isInsideObject'])&&zt(_0x4f565a,_0x2c1e6c)&&_0x436eac['add'](_0x4f565a);for(const _0x59d816 of _0x436eac){const _0x32bd62=_0x59d816['getRanges']();if(!_0x2c1e6c||!_0x2c1e6c['skipNestingCheck']){if(_0x229d56['every'](_0x2ad065=>_0x32bd62['some'](_0x2d3469=>_0x2d3469['containsRange'](_0x2ad065,!0x0))))return _0x59d816;}(!_0x59d816['attributes']||!_0x59d816['attributes']['skipNestingCheck'])&&(_0x32bd62['every'](_0x249521=>_0x229d56['some'](_0x50c655=>_0x50c655['containsRange'](_0x249521,!0x0)))&&_0x59d816['discard']());}const _0x536cfb=_0x33987a(),_0x5c79b5=_0x349f1b['id'],_0x3837b='deletion:'+_0xc3d40f,_0x6f1314=this['_setSuggestionData']({'id':_0x536cfb,'type':_0x3837b,'createdAt':new Date(),'authorId':_0x5c79b5,'attributes':_0x2c1e6c});for(const _0x5450e4 of _0x229d56)_0x5450e4['detach'](),_0x5450e4['isCollapsed']||'$graveyard'==_0x5450e4['root']['rootName']||this['_addSuggestionMarker'](_0x3837b,_0x536cfb,_0x5c79b5,_0x5450e4,o['getMultiRangeId']());return _0x6f1314;}['markAttributeChange'](_0x27a808,_0x3effcb,_0x83263e,_0x3fd40a,_0x25ed7a){if(_0x27a808['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x25e919=this['editor']['plugins']['get']('Users')['me']['id'],_0x351165=Array['from'](this['_suggestions']['values']())['filter'](_0x492f18=>'attribute'==_0x492f18['type']&&_0x492f18['data']['key']==_0x3effcb&&_0x492f18['isIntersectingWithRange'](_0x27a808));if('default'===this['_trackFormatChanges']){const _0x414edb=this['_findSuggestions'](_0x27a808,'insertion')['filter'](({meta:_0x39e467})=>_0x39e467['isOwn']&&!_0x39e467['isInsideObject']&&!_0x39e467['isNextTo'])['map'](({suggestion:_0x4010f7})=>_0x4010f7);_0x351165['unshift'](..._0x414edb);}const _0x58a782=new Map([[_0x27a808,_0x83263e]]);for(const _0x1784c5 of _0x351165){const _0x2031d6='attribute'==_0x1784c5['type']?_0x1784c5['data']['oldValue']:void 0x0,_0x2fc091=_0x1784c5['getFirstRange'](),_0x566cf4=Array['from'](_0x58a782['keys']())['find'](_0x2a0cb4=>_0x2a0cb4['isIntersecting'](_0x2fc091));if(!_0x566cf4)continue;const _0x1f1b79=_0x566cf4['getDifference'](_0x2fc091);this['_isBlockAttribute'](_0x3effcb)&&'insertion'==_0x1784c5['type']&&0x0!=_0x1f1b79['length']||(_0x58a782['delete'](_0x566cf4),_0x1f1b79['forEach'](_0x32ee9a=>{_0x58a782['set'](_0x32ee9a,_0x83263e);}),'insertion'!=_0x1784c5['type']&&_0x2031d6!=_0x3fd40a&&_0x58a782['set'](_0x566cf4['getIntersection'](_0x2fc091),_0x2031d6));}const _0x403168=[];for(const [_0x125451,_0x322fc3]of _0x58a782){const _0x230f86=_0x33987a(),_0x5afed4={'key':_0x3effcb,'oldValue':_0x322fc3,'newValue':_0x3fd40a};_0x3effcb['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':_0x3effcb});const _0x30f891=('attribute:'+(_0x3effcb+'|'+Gt({'newValue':_0x3fd40a})))['substring'](0x0,0x3c),_0x5a434e=this['_setSuggestionData']({'id':_0x230f86,'type':_0x30f891,'data':_0x5afed4,'createdAt':new Date(),'authorId':_0x25e919,'attributes':_0x25ed7a});_0x403168['push'](_0x5a434e),this['_addSuggestionMarker'](_0x30f891,_0x230f86,_0x25e919,_0x125451);}return _0x403168;}['enableDefaultAttributesIntegration'](_0x59128f){this['enableCommand'](_0x59128f,(_0x1e0644,..._0x10635a)=>{this['_recordAttributeChanges'](()=>{_0x1e0644(..._0x10635a);});});}['registerBlockAttribute'](_0x58b66e){this['_blockAttributeKeys']['add'](_0x58b66e);}['registerInlineAttribute'](_0x3cc797){this['_inlineAttributeKeys']['add'](_0x3cc797);}['_getAttributeKey'](_0x5c7d33){return'attribute'==_0x5c7d33['type']?_0x5c7d33['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x5308be,_0x263a86){const _0xa6e686=_0x5308be['getFirstMarker']();this['_model']['change'](_0x63a28e=>{_0x63a28e['updateMarker'](_0xa6e686,{'range':_0x263a86});});}['_addThreadToSuggestion'](_0xa74d30){const _0x46cca0=_0xa74d30['id'],_0x551638=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x46cca0)||this['_commentsRepository']['addCommentThread']({'channelId':_0x551638,'threadId':_0x46cca0,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x5381f8=this['_commentsRepository']['getCommentThread'](_0x46cca0);_0x5381f8['unbind']('isRemovable'),_0x5381f8['isRemovable']=!0x1,_0xa74d30['commentThread']=_0x5381f8;}['_checkSuggestionCorrectness'](_0x2aea19,_0x3474e8,_0x1c11db,_0x3e59e9){if(_0x2aea19['type']!=_0x3474e8||_0x2aea19['subType']!=_0x1c11db||_0x2aea19['creator']['id']!=_0x3e59e9)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x3d4351('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3b9f36,_0x4a3cfe){const _0x37a129=_0x3b9f36['getFirstRange']();if(_0x4a3cfe['isEqual'](_0x37a129))_0x3b9f36['removeMarkers']();else{if(_0x37a129['containsRange'](_0x4a3cfe)){const _0x4a2b0b=this['_model']['createPositionAt'](_0x4a3cfe['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3b9f36,this['_model']['createRange'](_0x37a129['start'],_0x4a2b0b));const _0x280e53=_0x33987a(),_0x1b949f=_0x3b9f36['creator']['id'],_0x4cdae0=_0x3b9f36['type']+':'+_0x3b9f36['subType'];this['_setSuggestionData']({'id':_0x280e53,'type':_0x4cdae0,'createdAt':new Date(),'authorId':_0x1b949f,'data':_0x3b9f36['data'],'attributes':_0x3b9f36['attributes']});const _0x285787=this['_model']['createPositionAt'](_0x4a3cfe['end']['parent'],'after'),_0x5408bb=this['_model']['createRange'](_0x285787,_0x37a129['end']);this['_addSuggestionMarker'](_0x4cdae0,_0x280e53,_0x1b949f,_0x5408bb);}else{if(_0x37a129['containsPosition'](_0x4a3cfe['start'])){const _0x2d1bae=this['_model']['createPositionAt'](_0x4a3cfe['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3b9f36,this['_model']['createRange'](_0x37a129['start'],_0x2d1bae));}else{const _0x4e0c75=this['_model']['createPositionAt'](_0x4a3cfe['end']['parent'],'after');this['_setSuggestionRange'](_0x3b9f36,this['_model']['createRange'](_0x4e0c75,_0x37a129['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x10c634){for(const {suggestion:_0x4fd2f8,meta:_0x2fc112}of this['_findSuggestions'](_0x10c634,'insertion')){if(!_0x2fc112['isOwn'])continue;const _0x36ace2=_0x4fd2f8['getRanges']();for(const _0x5ae507 of _0x36ace2)if(!_0x10c634['getDifference'](_0x5ae507)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x4d8c11){const _0x906d94=this['editor']['plugins']['get']('Users')['getUser'](_0x4d8c11);if(!_0x906d94)throw new _0x3d4351('track-changes-user-not-found',this);return _0x906d94;}['_getExternalAuthor'](_0x55739c){const _0x1684f1=this['editor']['plugins']['get']('Users'),_0x5302c7=_0x1c269b('external:'+_0x55739c),_0x200643=_0x1684f1['getUser'](_0x5302c7);return _0x200643||_0x1684f1['addUser']({'id':_0x5302c7,'name':_0x55739c});}['_createSuggestion'](_0x5221bc,_0x25e7a2,_0x3ea1c6,_0x5e6158,_0x3c57f4){const _0x31d78a=this['_getAuthorFromId'](_0x5e6158),_0x3b7013=this['_suggestionFactory']['buildSuggestion'](_0x5221bc,_0x25e7a2,_0x3ea1c6,_0x31d78a,_0x3c57f4,_0x329893=>{this['_updateSuggestionData'](_0x3ea1c6,{'attributes':_0x329893});const _0x5548d6=this['getSuggestion'](_0x3ea1c6);this['_joinWithAdjacentSuggestions'](new Set([_0x5548d6])),this['_refreshSuggestionsChain'](new Set([_0x5548d6]));});return this['listenTo'](_0x3b7013,'accept',()=>{this['_updateSuggestionData'](_0x3ea1c6,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3b7013,'discard',()=>{this['_updateSuggestionData'](_0x3ea1c6,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x3ea1c6,_0x3b7013),this['_suggestionState']['set'](_0x3b7013,'notReady'),_0x3b7013;}['_splitMarkerName'](_0x29f092){const _0x1d5864=_0x29f092['split'](':');return{'group':_0x1d5864[0x0],'type':_0x1d5864[0x1],'subType':_0x1d5864['length']>=0x5?_0x1d5864[0x2]:null,'id':_0x1d5864['length']<0x5?_0x1d5864[0x2]:_0x1d5864[0x3],'authorId':_0x1d5864['length']<0x5?_0x1d5864[0x3]:_0x1d5864[0x4],'markerCount':0x6==_0x1d5864['length']?_0x1d5864[0x5]:null};}['_breakSuggestionMarker'](_0x828720,_0x47abc5,_0x520399){const _0x53fad5=_0x828720['getFirstRange'](),_0x26f24f=_0x53fad5['start'],_0x5a1a8=_0x53fad5['end'];this['_setSuggestionRange'](_0x828720,this['_model']['createRange'](_0x26f24f,_0x47abc5));const _0x567214=_0x33987a(),_0xf040a1=_0x828720['creator']['id'],_0x35ec0d=_0x828720['type']+(_0x828720['subType']?':'+_0x828720['subType']:'');this['_setSuggestionData']({'id':_0x567214,'type':_0x35ec0d,'createdAt':new Date(),'authorId':_0xf040a1,'originalSuggestionId':_0x828720['id'],'attributes':_0x828720['attributes'],'data':_0x828720['data']});const _0x265958=this['_getAttributeKey'](_0x828720);('formatBlock'==_0x828720['type']||_0x265958&&this['_isBlockAttribute'](_0x265958))&&(_0x520399=this['_model']['createPositionBefore'](_0x520399['parent'])),this['_addSuggestionMarker'](_0x35ec0d,_0x567214,_0xf040a1,this['_model']['createRange'](_0x520399,_0x5a1a8));}['_findSuggestions'](_0x228ecb,_0x12f3c7=null){const _0x50f929=[],_0x2e820c=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x228ecb)||(_0x228ecb=[_0x228ecb]);for(const _0x52c9bf of this['getSuggestions']()){if(!_0x52c9bf['isInContent'])continue;if(_0x12f3c7&&_0x52c9bf['type']!=_0x12f3c7)continue;let _0x324abd=!0x1;for(const _0x49a0c4 of _0x52c9bf['getRanges']()){for(const _0x5a3c62 of _0x228ecb){const _0x2f7f9f=_0x5a3c62['start']['isEqual'](_0x49a0c4['end'])||_0x5a3c62['end']['isEqual'](_0x49a0c4['start']);if(_0x2f7f9f||_0x5a3c62['getIntersection'](_0x49a0c4)){const _0x4b9bbe=_0x5a3c62['containsRange'](_0x49a0c4)&&Vt(this['_model']['schema'],_0x49a0c4['start'],_0x5a3c62),_0xb11e8d=_0x49a0c4['containsRange'](_0x5a3c62)&&Vt(this['_model']['schema'],_0x5a3c62['start'],_0x49a0c4);_0x50f929['push']({'suggestion':_0x52c9bf,'meta':{'isOwn':_0x2e820c==_0x52c9bf['author'],'isNextTo':_0x2f7f9f,'isInsideObject':_0x4b9bbe,'containsRangeInObject':_0xb11e8d}}),_0x324abd=!0x0;break;}}if(_0x324abd)break;}}return _0x50f929;}['_addSuggestionMarker'](_0x48e55b,_0x928fb5,_0x4592c7,_0x4d5816,_0x4758ee){this['_model']['change'](_0x4c0d81=>{let _0x783fa0='suggestion:'+_0x48e55b+':'+_0x928fb5+':'+_0x4592c7;_0x4758ee&&(_0x783fa0=_0x783fa0+':'+_0x4758ee),_0x4c0d81['addMarker'](_0x783fa0,{'range':_0x4d5816,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x31ea2c){const _0x273be5=_0x31ea2c['previous'],_0x2de416=_0x31ea2c['next'];_0x31ea2c['previous']=null,_0x31ea2c['next']=null,null!=_0x273be5&&_0x273be5['next']==_0x31ea2c&&(_0x273be5['next']=_0x2de416),null!=_0x2de416&&_0x2de416['previous']==_0x31ea2c&&(_0x2de416['previous']=_0x273be5),'ready'==this['_suggestionState']['get'](_0x31ea2c)&&(this['_suggestionState']['set'](_0x31ea2c,'removed'),this['fire']('suggestionUnloaded',_0x31ea2c,_0x273be5,_0x2de416));}['_setSuggestionData'](_0x11ac40){const _0x5a2fc2=_0x11ac40['id'],_0x5e1a8e=this['addSuggestionData'](_0x11ac40);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x32f76e=this['editor']['plugins']['get']('PendingActions'),_0x50bbfc=_0x5e1a8e['hasComments'],_0x3c8fa6=_0x5e1a8e['subType']?_0x5e1a8e['type']+':'+_0x5e1a8e['subType']:_0x5e1a8e['type'],_0x3bd2c6=this['editor']['locale'],_0x19d56c=_0x32f76e['add'](c(_0x3bd2c6,'PENDING_ACTION_SUGGESTION')),_0x33f393={'id':_0x5a2fc2,'type':_0x3c8fa6,'hasComments':_0x50bbfc,'data':_0x11ac40['data']||null,'originalSuggestionId':_0x11ac40['originalSuggestionId']||null,'attributes':_0x5e1a8e['attributes']};this['_adapter']['addSuggestion'](_0x33f393)['then'](_0x12ec49=>{_0x5e1a8e['_saved']=!0x0,_0x32f76e['remove'](_0x19d56c),_0x12ec49&&_0x12ec49['createdAt']&&(this['_suggestions']['get'](_0x5a2fc2)['createdAt']=_0x12ec49['createdAt']);})['catch'](_0x16c19d=>{throw _0x2d4306('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x5e1a8e['discard']();}),_0x5e1a8e['stopListening'](),this['_suggestions']['delete'](_0x5e1a8e['id']),this['_suggestionState']['delete'](_0x5e1a8e),_0x16c19d;});}return _0x5e1a8e;}['_isBlockAttribute'](_0x8aa0be){return this['_blockAttributeKeys']['has'](_0x8aa0be);}['_updateSuggestionData'](_0x41f062,_0x5bc587){const _0x2d98dc=this['editor']['plugins']['get']('PendingActions'),_0x28b92d=this['getSuggestion'](_0x41f062);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x28b92d['_saved']){const _0x26406a=_0x2d98dc['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x41f062,_0x5bc587)['then'](()=>{_0x2d98dc['remove'](_0x26406a);});}else _0x28b92d['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x41f062,_0x5bc587);});}}['_getSuggestionData'](_0x17f8a8){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x3d4351('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x17f8a8);}['_handleNewSuggestionMarker'](_0x31c368){const {id:_0x5974c6,type:_0x67b688,subType:_0x5bb10b,authorId:_0x495f8a}=this['_splitMarkerName'](_0x31c368),_0x128b06=this['_suggestions']['get'](_0x5974c6)||this['_createSuggestion'](_0x67b688,_0x5bb10b,_0x5974c6,_0x495f8a,{});switch(this['_checkSuggestionCorrectness'](_0x128b06,_0x67b688,_0x5bb10b,_0x495f8a),this['_suggestionState']['get'](_0x128b06)){case'notReady':this['_getSuggestionData'](_0x5974c6)['then'](_0x41f57b=>{let _0x356ea5=Promise['resolve']();_0x41f57b['hasComments']&&(_0x356ea5=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x5974c6})),_0x356ea5['then'](()=>{this['addSuggestionData'](_0x41f57b)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x128b06,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x5974c6,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x128b06,'ready'),this['fire']('suggestionLoaded',_0x128b06);break;case'ready':this['fire']('suggestionChanged',_0x128b06);}return _0x128b06['addMarkerName'](_0x31c368),_0x128b06;}['_refreshSuggestionsChain'](_0x1fd433){const _0x56a3e5=Array['from'](_0x1fd433),_0x262e78=_0x56a3e5['filter'](_0xb3094b=>'attribute'==_0xb3094b['type']);this['_refreshAttributeSuggestionsChain'](_0x262e78);const _0x2ce37c=_0x56a3e5['filter'](_0x1657a1=>!_0x1657a1['isMultiRange']&&'attribute'!=_0x1657a1['type']),_0x3d0999=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4b81f4=>!_0x4b81f4['isMultiRange']&&'attribute'!=_0x4b81f4['type']),_0x2a06c6=_0x3d0999['filter'](_0x6da58=>!_0x1fd433['has'](_0x6da58)),_0x34d9e6=new Map(_0x3d0999['map'](_0x27be52=>[_0x27be52,this['_suggestionFactory']['getSuggestionCallback'](_0x27be52['type'],_0x27be52['subType'],'chain')])),_0x472ee1=new Map(_0x3d0999['map'](_0xb92032=>[_0xb92032,_0xb92032['getFirstRange']()])),_0x3ced7a=new Set(),_0x37684f=new Set();for(let _0x3b5f24=0x0;_0x3b5f24<_0x2ce37c['length'];_0x3b5f24++)_0x5cb92c(_0x2ce37c[_0x3b5f24],_0x2ce37c,_0x3b5f24+0x1);for(let _0x164c27=0x0;_0x164c27<_0x2ce37c['length'];_0x164c27++)_0x5cb92c(_0x2ce37c[_0x164c27],_0x2a06c6,0x0);const _0x4e8ce5=new Set();for(let _0x2b1ef0=0x0;_0x2b1ef0<_0x2ce37c['length'];_0x2b1ef0++){const _0x1c431d=_0x2ce37c[_0x2b1ef0];!_0x37684f['has'](_0x1c431d)&&_0x1c431d['previous']&&(_0x4e8ce5['add'](_0x1c431d['previous']),_0x1c431d['previous']['next']===_0x1c431d&&(_0x1c431d['previous']['next']=null),_0x1c431d['previous']=null),!_0x3ced7a['has'](_0x1c431d)&&_0x1c431d['next']&&(_0x4e8ce5['add'](_0x1c431d['next']),_0x1c431d['next']['previous']===_0x1c431d&&(_0x1c431d['next']['previous']=null),_0x1c431d['next']=null);}function _0x5cb92c(_0xfe5cd5,_0x29f7c8,_0x23070f){for(let _0x4fdd6c=_0x23070f;_0x4fdd6c<_0x29f7c8['length'];_0x4fdd6c++){const _0x4a5b03=_0x320dde(_0xfe5cd5,_0x29f7c8[_0x4fdd6c]);_0x4a5b03&&(_0x4a5b03[0x0]['next']=_0x4a5b03[0x1],_0x4a5b03[0x1]['previous']=_0x4a5b03[0x0],_0x3ced7a['add'](_0x4a5b03[0x0]),_0x37684f['add'](_0x4a5b03[0x1]));}}function _0x320dde(_0x3defda,_0x29e6d3){if(_0x3defda['author']['id']!==_0x29e6d3['author']['id'])return null;const _0x5a62a5=_0x34d9e6['get'](_0x3defda)(_0x3defda,_0x29e6d3,_0x472ee1['get'](_0x3defda),_0x472ee1['get'](_0x29e6d3));if(!_0x5a62a5)return null;return _0x34d9e6['get'](_0x29e6d3)(_0x3defda,_0x29e6d3,_0x472ee1['get'](_0x3defda),_0x472ee1['get'](_0x29e6d3))?_0x5a62a5[0x1]['commentThread']&&_0x5a62a5[0x1]['commentThread']['length']?null:_0x5a62a5:null;}_0x4e8ce5['size']&&this['_refreshSuggestionsChain'](_0x4e8ce5);}['_refreshAttributeSuggestionsChain'](_0x3af53a){if(0x0==_0x3af53a['length'])return;const _0x191040=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3e51b6=>'attribute'==_0x3e51b6['type']&&_0x3e51b6['_isDataLoaded']),_0x346ab4=[],_0x385574=new Map();for(const _0x17f3a2 of _0x191040){const _0x1115b1=_0x1c269b(_0x17f3a2['attributes']);_0x385574['has'](_0x1115b1)||(_0x385574['set'](_0x1115b1,_0x346ab4['length']),_0x346ab4['push']([]));const _0x1418df=_0x385574['get'](_0x1115b1);_0x346ab4[_0x1418df]['push'](_0x17f3a2);}!(function(){_0x346ab4['sort']((_0x24887e,_0x15b6ea)=>{const _0x55a5fa=_0x24887e[0x0]['createdAt'],_0x1c3743=_0x15b6ea[0x0]['createdAt'];return _0x55a5fa==_0x1c3743?_0x24887e[0x0]['attributes']['groupId']<_0x15b6ea[0x0]['attributes']['groupId']?-0x1:0x1:_0x55a5fa<_0x1c3743?-0x1:0x1;});for(const _0x1d078b of _0x346ab4)_0x1d078b['sort']((_0x204d03,_0x58aecc)=>_0x204d03['id']<_0x58aecc['id']?-0x1:0x1);}());for(let _0x147a1b=0x0;_0x147a1b<_0x346ab4['length'];_0x147a1b++){if(0x0==_0x346ab4[_0x147a1b]['length'])continue;const _0x3524dc=[];for(let _0x54635c=_0x147a1b+0x1;_0x54635c<_0x346ab4['length'];_0x54635c++)0x0!=_0x346ab4[_0x54635c]['length']&&_0x224c0e(_0x346ab4[_0x147a1b],_0x346ab4[_0x54635c])&&_0x3524dc['push'](_0x54635c);for(const _0x2d404b of _0x3524dc)_0x346ab4[_0x147a1b]=_0x346ab4[_0x147a1b]['concat'](_0x346ab4[_0x2d404b]),_0x346ab4[_0x2d404b]=[];}for(const _0x2f8c38 of _0x346ab4)for(let _0x3d54cc=0x0;_0x3d54cc<_0x2f8c38['length'];_0x3d54cc++){const _0x55de67=_0x2f8c38[_0x3d54cc+0x1]||null;_0x2f8c38[_0x3d54cc]['next']!==_0x55de67&&(_0x2f8c38[_0x3d54cc]['next']=_0x55de67);}for(const _0x1b8220 of _0x346ab4)for(let _0x2d54e9=0x0;_0x2d54e9<_0x1b8220['length'];_0x2d54e9++){const _0x401e72=_0x1b8220[_0x2d54e9-0x1]||null;_0x1b8220[_0x2d54e9]['previous']!==_0x401e72&&(_0x1b8220[_0x2d54e9]['previous']=_0x401e72);}function _0x224c0e(_0x55c963,_0x599a18){if(_0x55c963[0x0]['attributes']['groupId']!==_0x599a18[0x0]['attributes']['groupId']&&_0x55c963[0x0]['author']!==_0x599a18[0x0]['author'])return!0x1;if(!function(_0x233176,_0x3f497a){if(!_0x233176['hasComments']&&!_0x3f497a['hasComments'])return!0x0;if(_0x233176['hasComments']&&_0x3f497a['hasComments'])return!0x1;if(_0x233176['hasComments']&&_0x3f497a['createdAt']<_0x233176['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x3f497a['hasComments']&&_0x233176['createdAt']<_0x3f497a['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x55c963[0x0],_0x599a18[0x0]))return!0x1;const _0x30f2dc=Et(_0x55c963[0x0]['attributes'],'groupId'),_0x18a7a1=Et(_0x599a18[0x0]['attributes'],'groupId');if(!_0x17e1e9(_0x30f2dc,_0x18a7a1))return!0x1;return!!_0x55c963['every'](_0x228bdc=>_0x599a18['some'](_0x59b151=>_0x228bdc['getFirstRange']()['isEqual'](_0x59b151['getFirstRange']())))&&_0x599a18['every'](_0x1f1a8f=>_0x55c963['some'](_0x36a9a2=>_0x1f1a8f['getFirstRange']()['isEqual'](_0x36a9a2['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x2c4e3d){const _0x2f1ad1=Array['from'](_0x2c4e3d),_0x43d7f2=this['getSuggestions']({'skipNotAttached':!0x0}),_0x290532=_0x43d7f2['filter'](_0x7f722c=>!_0x2c4e3d['has'](_0x7f722c)),_0x4e997a=new Map(_0x2f1ad1['map'](_0x5e7836=>[_0x5e7836,this['_suggestionFactory']['getSuggestionCallback'](_0x5e7836['type'],_0x5e7836['subType'],'join')])),_0x2c1e89=new Map(_0x43d7f2['map'](_0x32be3f=>[_0x32be3f,_0x32be3f['getRanges']()]));for(let _0x3dd267=0x0;_0x3dd267<_0x2f1ad1['length'];_0x3dd267++){if(_0x365df2(this,_0x2f1ad1[_0x3dd267],_0x2f1ad1,_0x3dd267+0x1))return!0x0;}for(let _0x4d6dd1=0x0;_0x4d6dd1<_0x2f1ad1['length'];_0x4d6dd1++){if(_0x365df2(this,_0x2f1ad1[_0x4d6dd1],_0x290532,0x0))return!0x0;}return!0x1;function _0x365df2(_0x5f4b5f,_0x14d0fa,_0x264f44,_0x3c3f4b){for(let _0xd62686=_0x3c3f4b;_0xd62686<_0x264f44['length'];_0xd62686++){const _0x49b757=_0x264f44[_0xd62686];if(_0x49b757['type']!==_0x14d0fa['type']||_0x49b757['author']['id']!==_0x14d0fa['author']['id']||_0x49b757['subType']!==_0x14d0fa['subType'])continue;if(!qt(_0x14d0fa,_0x49b757))continue;if('attribute'==_0x14d0fa['type']&&_0x14d0fa['data']['oldValue']!=_0x49b757['data']['oldValue'])continue;if('attribute'==_0x14d0fa['type']&&_0x5f4b5f['_isBlockAttribute'](_0x14d0fa['data']['key']))continue;if('formatBlock'==_0x14d0fa['type']){const _0x2f4d7c=_0x5f4b5f['editor']['model'],_0x5e225b=_0x14d0fa['getContainedElement']();if(_0x5e225b&&(_0x2f4d7c['schema']['isObject'](_0x5e225b)||_0x2f4d7c['schema']['isLimit'](_0x5e225b)))continue;}const _0x2d57b3=_0x4e997a['get'](_0x14d0fa),_0x579b69=_0x2c1e89['get'](_0x14d0fa),_0x399888=_0x2c1e89['get'](_0x49b757),_0x4529a3=_0x14d0fa['commentThread']&&_0x14d0fa['commentThread']['length'],_0x4ddb8a=_0x49b757['commentThread']&&_0x49b757['commentThread']['length'];if(!_0x4529a3&&_0x2d57b3(_0x399888,_0x579b69))return _0x5f4b5f['_joinSuggestions'](_0x49b757,_0x14d0fa),_0x2c1e89['delete'](_0x14d0fa),!0x0;if(!_0x4ddb8a&&_0x2d57b3(_0x579b69,_0x399888))return _0x5f4b5f['_joinSuggestions'](_0x14d0fa,_0x49b757),_0x2c1e89['delete'](_0x49b757),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5b5ef8,_0x1546ec){if(_0x5b5ef8['isMultiRange']){for(const _0x1e0f85 of _0x1546ec['getRanges']())_0x5b5ef8['addRange'](_0x1e0f85);}else{const _0x45a7f8=_0x1546ec['getFirstRange']()['end'];this['_setSuggestionRange'](_0x5b5ef8,this['_model']['createRange'](_0x5b5ef8['getFirstRange']()['start'],_0x45a7f8));}_0x1546ec['removeMarkers']();}['_getMarkerAnnouncementText'](_0x5e8109,_0x33f637,_0x4ea188){const _0x15854a=_0x5e8109['startsWith']('format')||_0x5e8109['startsWith']('attribute')?'FORMATTING':_0x5e8109['toUpperCase']();return c(this['editor']['locale'],_0x33f637+'_'+_0x15854a+'_SUGGESTION_ANNOUNCEMENT',_0x4ea188);}['_initAriaMarkerChangeAnnouncements'](){const _0x520133=this['editor'];if(!_0x520133['ui'])return;const {ariaLiveAnnouncer:_0x21c7cc}=_0x520133['ui'];_0x298a0a(this['_model'],({left:_0x4b904e,entered:_0x50987b})=>{for(const _0x55aa88 of _0x4b904e){const {group:_0x3a8b09,type:_0x47532e}=this['_splitMarkerName'](_0x55aa88['name']);if('suggestion'===_0x3a8b09){_0x21c7cc['announce'](this['_getMarkerAnnouncementText'](_0x47532e,'LEAVE'));break;}}for(const _0x5c6e77 of _0x50987b){const {group:_0x546a7a,type:_0x1832c8}=this['_splitMarkerName'](_0x5c6e77['name']);if('suggestion'===_0x546a7a){_0x21c7cc['announce'](this['_getMarkerAnnouncementText'](_0x1832c8,'ENTER',_0x3a2a25(_0x3a9486)));break;}}});}['_processAttributeChanges'](_0x16bb5b){if(this['_recordAttributeSuggestions'])return!0x1;const _0x46e37e=this['editor'],_0x488160=_0x46e37e['model']['document']['differ']['getChanges']();if(0x0==_0x488160['length'])return!0x1;const _0x9d25db=[],_0x53c250=_0x488160['filter'](_0x57488b=>'attribute'==_0x57488b['type']),_0x1303cf=_0x488160['filter'](_0x153733=>'insert'==_0x153733['type']&&'$text'!=_0x153733['name']),_0x137713=_0x488160['filter'](_0x5ad43a=>'remove'==_0x5ad43a['type']&&'$text'!=_0x5ad43a['name']);for(const _0x27bba3 of _0x53c250)_0x9d25db['push']({'key':_0x27bba3['attributeKey'],'newValue':_0x27bba3['attributeNewValue'],'oldValue':_0x27bba3['attributeOldValue'],'range':Jt(_0x27bba3['range'],_0x46e37e['model'])});for(const _0x54b2ea of _0x1303cf){const _0x3e30b1=_0x137713['find'](_0x5e18d7=>_0x5e18d7['position']['isEqual'](_0x54b2ea['position']));_0x3e30b1&&_0x9d25db['push']({'key':u,'newValue':_0x54b2ea['name'],'oldValue':_0x3e30b1['name'],'range':_0x46e37e['model']['createRangeOn'](_0x54b2ea['position']['nodeAfter'])});}return 0x0!=_0x9d25db['length']&&this['_reduceExistingSuggestions'](_0x16bb5b,_0x9d25db);}['_processAttributeSuggestions'](_0x41c7d7){let _0x2123ab=!0x1;const _0x595a44=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x240506=>_0x240506['data']['newRange']&&_0x240506['name']['startsWith']('suggestion:attribute:'));for(const _0x499bd7 of _0x595a44){const {subType:_0x17c0a9,id:_0x3aed44}=this['_splitMarkerName'](_0x499bd7['name']),_0xae18dd=_0x17c0a9['split']('|')[0x0];for(const _0x377c29 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x377c29['id']!=_0x3aed44&&'attribute'==_0x377c29['type']&&_0x377c29['data']&&_0x377c29['data']['key']==_0xae18dd&&_0x377c29['getFirstRange']()['isIntersecting'](_0x499bd7['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x377c29,_0x499bd7['data']['newRange'],_0x41c7d7),_0x2123ab=!0x0);}return _0x2123ab;}['_recordAttributeChanges'](_0x137938){this['_recordAttributeSuggestions']=!0x0,_0x137938();}['_isRegisteredAttribute'](_0xbfe987){const _0x5510b3=this['_isBlockAttribute'](_0xbfe987),_0x368131=this['_inlineAttributeKeys']['has'](_0xbfe987);return _0x5510b3||_0x368131;}['_reduceExistingSuggestions'](_0x2abc7c,_0x5b2849){if(0x0==_0x5b2849['length'])return!0x1;let _0x266db1=!0x1;for(const _0x4c5638 of _0x5b2849){const _0x25d7ab=this['_findSuggestions'](_0x4c5638['range'],'attribute')['filter'](_0x204a04=>!_0x204a04['meta']['isNextTo'])['map'](_0x3d1d62=>_0x3d1d62['suggestion']),_0x425088=_0x1c269b({'newValue':_0x4c5638['newValue']});_0x25d7ab['filter'](_0x2da84e=>{const [_0xf5360c,_0x4512a3]=_0x2da84e['subType']['split']('|');return _0xf5360c==_0x4c5638['key']&&_0x4512a3!=_0x425088;})['forEach'](_0x8d45dc=>{this['_reduceSuggestionAttributeRange'](_0x8d45dc,_0x4c5638['range'],_0x2abc7c),_0x266db1=!0x0;});}return _0x266db1;}['_reduceSuggestionAttributeRange'](_0x37e31e,_0x117c30,_0xf561a4){const _0x47c65e=_0x37e31e['getFirstRange']()['getDifference'](_0x117c30);0x0!==_0x47c65e['length']?0x1!==_0x47c65e['length']?this['_breakSuggestionMarker'](_0x37e31e,_0x117c30['start'],_0x117c30['end']):this['_setSuggestionRange'](_0x37e31e,_0x47c65e[0x0]):_0xf561a4['removeMarker'](_0x37e31e['getFirstMarker']());}}class Ut{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x4fc557){this['_editor']=_0x4fc557,this['_model']=_0x4fc557['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x1526cd,_0x466923,_0x825352,_0x58b509,_0x3ccf3f,_0x3d7a3b){return new o(this['_model'],{'type':_0x1526cd,'subType':_0x466923,'id':_0x825352,'author':_0x58b509,'creator':_0x58b509,'attributes':_0x3ccf3f,'onAttributesChange':_0x3d7a3b,'onAccept':(..._0x4fd3d6)=>this['getSuggestionCallback'](_0x1526cd,_0x466923,'accept')(..._0x4fd3d6),'onDiscard':(..._0x243f1e)=>this['getSuggestionCallback'](_0x1526cd,_0x466923,'discard')(..._0x243f1e)});}['registerCustomCallback'](_0x1dd82d,_0x23a881,_0x44af1d,_0x5d84c0){const _0x4759db=_0x1dd82d+':'+_0x23a881+':'+_0x44af1d;this['_customCallbacks']['set'](_0x4759db,_0x5d84c0);}['getSuggestionCallback'](_0x447dea,_0x5ca52b,_0x2d6e5c){const _0x46b1fc=_0x447dea+':'+_0x5ca52b+':'+_0x2d6e5c;return this['_customCallbacks']['get'](_0x46b1fc)||this['_defaultCallbacks']['get'](_0x447dea+':'+_0x2d6e5c);}['_registerDefaultCallbacks'](){const _0x281967=()=>!0x1,_0xa630a=_0x15810d=>{_0x15810d['sort']((_0x475bf2,_0x233deb)=>_0x475bf2['start']['isBefore'](_0x233deb['start'])?0x1:-0x1),this['_model']['change'](_0x4fc8e9=>{for(const _0x3595be of _0x15810d){let _0x4610a1;_0x4610a1=_0x3595be['end']['isAtEnd']&&_0x3595be['end']['parent']==_0x3595be['start']['nodeAfter']?_0x4fc8e9['createSelection'](_0x3595be['start']['nodeAfter'],'on'):_0x4fc8e9['createSelection'](_0x3595be),this['_model']['deleteContent'](_0x4610a1,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x3b5654=(_0x59b36e,_0x43a768)=>{_0x43a768&&this['_model']['change'](_0x2d45f7=>{const {commandName:_0x332b04,commandParams:_0x1f1cbb=[]}=_0x43a768,_0x4b4994=_0x59b36e['map'](_0x590eb3=>(Ft(_0x590eb3)&&(_0x590eb3=this['_model']['createRange'](_0x590eb3['end'])),_0x590eb3))['filter'](_0x242a9f=>'$graveyard'!==_0x242a9f['root']['rootName']);if(_0x4b4994['length']<0x1)return;const _0x3139c5=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x4904da=>_0x7362da['fromRange'](_0x4904da));_0x2d45f7['setSelection'](_0x4b4994);for(const _0x5f15a8 of this['_editor']['commands']['commands']())_0x5f15a8['refresh']();_0x1f1cbb['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x332b04,..._0x1f1cbb);const _0x5a67e6=_0x3139c5['filter'](_0x4f6b3d=>'$graveyard'!=_0x4f6b3d['root']['rootName']);_0x5a67e6['length']>0x0&&_0x2d45f7['setSelection'](_0x5a67e6);for(const _0x322c60 of _0x3139c5)_0x322c60['detach']();});},_0x2cb1da=(_0x36c48b,_0x5a35c2)=>0x1==_0x36c48b['length']&&0x1==_0x5a35c2['length']&&_0x36c48b[0x0]['end']['isEqual'](_0x5a35c2[0x0]['start']),_0x30d5ba=(_0x346381,_0x40c43f,_0x7658fb,_0x3dc0c5)=>Ht(_0x346381,_0x40c43f,_0x7658fb,_0x3dc0c5)?[_0x346381,_0x40c43f]:Ht(_0x40c43f,_0x346381,_0x3dc0c5,_0x7658fb)?[_0x40c43f,_0x346381]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x281967),this['_defaultCallbacks']['set']('insertion:discard',_0xa630a),this['_defaultCallbacks']['set']('insertion:join',_0x2cb1da),this['_defaultCallbacks']['set']('insertion:chain',_0x30d5ba),this['_defaultCallbacks']['set']('deletion:accept',_0xa630a),this['_defaultCallbacks']['set']('deletion:discard',_0x281967),this['_defaultCallbacks']['set']('deletion:join',_0x2cb1da),this['_defaultCallbacks']['set']('deletion:chain',_0x30d5ba),this['_defaultCallbacks']['set']('formatInline:accept',_0x3b5654),this['_defaultCallbacks']['set']('formatInline:discard',_0x281967),this['_defaultCallbacks']['set']('formatInline:join',_0x2cb1da),this['_defaultCallbacks']['set']('formatInline:chain',_0x281967),this['_defaultCallbacks']['set']('formatBlock:accept',_0x3b5654),this['_defaultCallbacks']['set']('formatBlock:discard',_0x281967),this['_defaultCallbacks']['set']('formatBlock:join',_0x2cb1da),this['_defaultCallbacks']['set']('formatBlock:chain',_0x281967),this['_defaultCallbacks']['set']('attribute:accept',_0x281967),this['_defaultCallbacks']['set']('attribute:discard',(_0x48c96a,_0x334dc5)=>{if(!_0x334dc5)return;const _0x336162=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x383522=>{if(_0x334dc5['key']==u)for(const _0x1a9167 of _0x48c96a){const _0x28bec0=_0x1a9167['start']['nodeAfter'],_0x40fb9a=_0x334dc5['oldValue'];_0x383522['rename'](_0x28bec0,_0x40fb9a);}else{if(_0x336162['_isBlockAttribute'](_0x334dc5['key'])){for(const _0x411837 of _0x48c96a)void 0x0!==_0x334dc5['oldValue']?_0x383522['setAttribute'](_0x334dc5['key'],_0x334dc5['oldValue'],_0x411837['start']['nodeAfter']):_0x383522['removeAttribute'](_0x334dc5['key'],_0x411837['start']['nodeAfter']);}else{for(const _0x212dd3 of _0x48c96a)_0x334dc5['oldValue']?_0x383522['setAttribute'](_0x334dc5['key'],_0x334dc5['oldValue'],_0x212dd3):_0x383522['removeAttribute'](_0x334dc5['key'],_0x212dd3);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x2cb1da);}}function Vt(_0x343b53,_0xa38478,_0x554a28){for(const _0x23be16 of _0xa38478['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x23be16['root']==_0x23be16)return!0x1;if(!_0x554a28['containsItem'](_0x23be16))return!0x1;if(_0x343b53['isObject'](_0x23be16)||_0x343b53['isLimit'](_0x23be16))return!0x0;}return!0x1;}function Ft(_0x400b77){return _0x400b77['end']['parent']==_0x400b77['start']['nodeAfter']&&_0x400b77['end']['isAtStart'];}function Pt(_0x4daae7,_0x4b6a1c,_0x3fd618,_0x10cda2){const _0x24229b=_0x5234d6=>!_0x5234d6['item']['is']('$textProxy')&&!_0x10cda2['isObject'](_0x5234d6['item']),_0x279653=_0x4daae7['start']['getLastMatchingPosition'](_0x24229b),_0x849104=_0x4daae7['end']['getLastMatchingPosition'](_0x24229b,{'direction':'backward'});return(!_0x4daae7['start']['isEqual'](_0x279653)||!_0x4daae7['end']['isEqual'](_0x849104))&&(_0x279653['isBefore'](_0x849104)?_0x3fd618['updateMarker'](_0x4b6a1c,{'range':_0x3fd618['createRange'](_0x279653,_0x849104)}):_0x3fd618['removeMarker'](_0x4b6a1c),!0x0);}function Gt(_0x1daa8c){return _0x1c269b(_0x1daa8c);}function Lt(_0x30514b){const _0x20669d=_0x30514b['start']['nodeAfter'];return _0x20669d&&_0x20669d['is']('element');}function Jt(_0x4f7092,_0x305237){return null==_0x4f7092['end']['nodeBefore']&&_0x4f7092['end']['parent']==_0x4f7092['start']['nodeAfter']?Kt(_0x4f7092['start']['nodeAfter'],_0x305237):_0x4f7092;}function Kt(_0x5dcc53,_0x50646d){const _0x357045=_0x50646d['schema']['isObject'](_0x5dcc53)||_0x50646d['schema']['isSelectable'](_0x5dcc53);return _0x50646d['createRange'](_0x50646d['createPositionAt'](_0x5dcc53,'before'),_0x357045?_0x50646d['createPositionAfter'](_0x5dcc53):_0x50646d['createPositionAt'](_0x5dcc53,'end'));}function Ht(_0x25c9ce,_0x3d6b7b,_0x3d7e93,_0x4295dc){return!!qt(_0x25c9ce,_0x3d6b7b)&&_0x3d7e93['end']['isEqual'](_0x4295dc['start']);}function qt(_0x29a6c3,_0x14f630){if(!_0x29a6c3['_isDataLoaded']||!_0x14f630['_isDataLoaded'])return!0x1;const _0x34f231=new Set(Object['keys'](_0x29a6c3['attributes'])),_0x521205=new Set(Object['keys'](_0x14f630['attributes']));if(_0x34f231['delete']('groupId'),_0x521205['delete']('groupId'),0x0==_0x34f231['size']&&0x0==_0x521205['size'])return!0x0;if(_0x34f231['size']!=_0x521205['size'])return!0x1;const _0x3397b2={..._0x29a6c3['attributes']},_0x1e0a9b={..._0x14f630['attributes']};return delete _0x3397b2['groupId'],delete _0x1e0a9b['groupId'],JSON['stringify'](_0x3397b2)==JSON['stringify'](_0x1e0a9b);}function zt(_0xc1ea3e,_0x33b1ee){const _0x3bb657=Wt(_0xc1ea3e['attributes']),_0x5ba07e=Wt(_0x33b1ee);if(!_0xc1ea3e['_isDataLoaded'])return!0x1;for(const _0x6406e4 of Object['keys'](_0x5ba07e))if(!_0x17e1e9(_0x3bb657[_0x6406e4],_0x5ba07e[_0x6406e4]))return!0x1;return!0x0;}function Wt(_0x15f20e){const _0x25fc6b=Object['assign']({},_0x15f20e);return delete _0x25fc6b['skipNestingCheck'],delete _0x25fc6b['tablePasteChainId'],_0x25fc6b;}class pe extends/* #__PURE__ -- @preserve */
25
- _0x26da1b(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x8accac,_0x2882d2,_0x184157,_0x4524ff){super(),this['model']=_0x2882d2,this['view']=_0x184157,this['commentThreadController']=_0x4524ff,this['_editor']=_0x8accac,this['_acceptCommand']=_0x8accac['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x8accac['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x52590d,_0x2b91ef)=>_0x52590d||_0x2b91ef),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x55ea49=>_0x55ea49&&this['_editor']['model']['canEditAt'](_0x2882d2['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x587ada=>_0x587ada&&this['_editor']['model']['canEditAt'](_0x2882d2['getRanges']())),this['_pendingAction']=null,_0x184157['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x184157,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x184157,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x184157,'change:isDirty',()=>{_0x184157['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 _0x28296b=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x28296b);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x5297f1{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4af207,_0x243414,_0x226e13,_0x1e4d48){super(_0x4af207),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x5eb931(_0x4af207,c(_0x4af207,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x243414['authoredAt']),this['bind']('authoredAt')['to'](_0x243414),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',_0x243414,'authoredAt',this,'descriptionParts',(_0x1cd80a,_0x2c34ee,_0x2b4945)=>{const _0x1080f6=_0x2b4945['map'](_0x52cdc7=>ls(_0x52cdc7['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x1cd80a-0x1,_0x243414['author']['name'],_0x2c34ee?_0x1e4d48['formatDateTime'](_0x2c34ee):'',new DOMParser()['parseFromString'](_0x1080f6,'text/html')['body']['textContent']]);}),this['focusables']=new _0x2e2014(),this['focusTracker']=new _0x3f3e84(),this['keystrokes']=new _0x21acad(),this['focusCycler']=new _0x197fc3({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0xef760d=>_0xef760d['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x243414,this['_localUser']=_0x226e13,this['_config']=_0x1e4d48,_0x1e4d48['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x16eee3(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x1ef34c}=this['_config'];this['commentsListView']=new _0x1ef34c(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',_0x3e4b94=>_0x3e4b94+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x4abcf4,_0x104e84)=>_0x4abcf4||!!_0x104e84);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0xdd191}=this['_config'],_0xc35378=new _0xdd191(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x453aa=_0xc35378['commentInputView'];return _0xc35378['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x453aa,'value',(_0x267724,_0x372200,_0x214dd2)=>!!_0x214dd2||_0x267724&&!_0x372200),_0x453aa['on']('submit',(_0x9dba32,_0x1b3d8a)=>{this['fire']('addComment',_0x1b3d8a),_0x453aa['editor']['setData']('');}),_0x453aa['on']('cancel',()=>this['focus']()),_0x453aa['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0xc35378;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x56bd42,_0x474f14,_0x15b268,_0x265c2c){super(_0x56bd42,_0x474f14,_0x15b268,_0x265c2c),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x290f2f=>_0x290f2f&&_0x290f2f[0x0]?_0x290f2f[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3df544,_0x36d764)=>{let _0x5bc320='';for(const _0xe65c9f of _0x3df544)_0x5bc320+='<p>'+ls(_0xe65c9f['content'],_0xe65c9f['color'])+'</p>';return _0x36d764?_0x5bc320:ti(_0x5bc320,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x265c2c['SuggestionView'](_0x56bd42,_0x474f14,{'formatDateTime':_0x265c2c['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 _0x5a9290=this['bindTemplate'],_0x5e7de5=[this['suggestionView']];return this['commentsListView']&&_0x5e7de5['push'](this['commentsListView']),this['commentThreadInputView']&&_0x5e7de5['push'](this['commentThreadInputView']),_0x5e7de5['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x5a9290['if']('isActive','ck-suggestion-wrapper--active'),_0x5a9290['to']('type',_0x419daf=>'ck-suggestion-'+_0x419daf),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':_0x5a9290['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x5e7de5};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class we extends _0x5297f1{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x3726b9,_0x1d8a50,_0x3df107){super(_0x3726b9),this['_model']=_0x1d8a50,this['_config']=_0x3df107,this['set']('description',''),this['bind']('authoredAt')['to'](_0x1d8a50),this['acceptButton']=this['_createButton'](c(_0x3726b9,'Accept\x20suggestion'),_0x8f20bd,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x3726b9,'Discard\x20suggestion'),_0x297710,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x25b38c(_0x3726b9,_0x1d8a50['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x2e2014([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x3f3e84(),this['keystrokes']=new _0x21acad(),this['focusCycler']=new _0x197fc3({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x3a10da=>_0x3a10da['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0xbbeaac=this['element']['querySelector']('.ck-annotation__content-wrapper');_0xbbeaac['innerHTML']=this['description'],this['on']('change:description',(_0x3d94dc,_0x384a6e,_0x3086a4)=>{_0xbbeaac['innerHTML']=_0x3086a4;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x1a3b7d=this['bindTemplate'],_0x5cdaf1=[{'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':_0x1a3b7d['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x1a3b7d['to']('authoredAt',_0x1db1ae=>this['_config']['formatDateTime'](_0x1db1ae))}]}]},{'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']&&_0x5cdaf1['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':_0x5cdaf1}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x113f47,_0x49e8cf,_0x13242e,_0x498b18,_0x451a5b){const _0x5017a7=new _0xd3f9ac(this['locale']);return _0x5017a7['set']({'label':_0x113f47,'icon':_0x49e8cf,'tooltip':!0x0,'tooltipPosition':_0x451a5b}),_0x5017a7['extendTemplate']({'attributes':{'class':_0x13242e}}),_0x5017a7['on']('execute',()=>{this['fire'](_0x498b18,this['_model']['id']);}),_0x5017a7;}['_setupKeyboardNavigation'](){const _0x4fd74c=this['element'];this['keystrokes']['listenTo'](_0x4fd74c);for(const _0x2def7b of this['focusables'])this['focusTracker']['add'](_0x2def7b['element']),this['keystrokes']['listenTo'](_0x2def7b['element']);this['keystrokes']['set']('enter',(_0x428bba,_0xb8e7b9)=>{_0x4fd74c===_0x428bba['target']&&(this['focusCycler']['focusFirst'](),_0xb8e7b9());}),this['keystrokes']['set']('esc',(_0x79b2b6,_0x5bf632)=>{_0x4fd74c!==_0x79b2b6['target']&&(this['focus'](),_0x5bf632());});}}class d extends _0x53ae92{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0xd79e0a,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2a4db1){super(_0x2a4db1),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4eea47=this['editor']['config'];_0x4eea47['define']('trackChanges.SuggestionThreadView',fe),_0x4eea47['define']('trackChanges.SuggestionView',we),_0x4eea47['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4eea47['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x66a836,_0x1f05cd){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x2e01cd,_0x3b4253]of this['_handleControllerBuffer']){const _0x17f310=this['_suggestionToController']['has'](_0x2e01cd);_0x17f310||_0x3b4253?_0x17f310&&_0x3b4253&&this['_destroyController'](_0x2e01cd):this['_initializeController'](_0x2e01cd);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x66a836,_0x1f05cd);}['init'](){const _0x390075=this['editor'],_0x22bd80=_0x390075['plugins']['get']('TrackChangesEditing'),_0x5a6f9f=_0x390075['plugins']['get']('Annotations'),_0x877bc2=_0x390075['plugins']['get']('EditorAnnotations'),_0x1fa7c3=_0x390075['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x877bc2['addSourceCollector'](()=>{const _0x99fcd3=[];for(const [_0x207c39,_0x3697f2]of Array['from'](this['_suggestionToController'])){const _0x2084ca=_0x207c39['getAllAdjacentSuggestions'](),_0x26a821=[];for(const _0x16d4f8 of _0x2084ca){if(!_0x16d4f8['isInContent'])continue;if(_0x16d4f8['isMultiRange']){_0x26a821['push'](..._0x16d4f8['getRanges']());continue;}const _0x3ee623=_0x16d4f8['getFirstRange']();if(_0x26a821['length']>0x0){const _0x1c950a=_0x26a821[0x0]['getJoined'](_0x3ee623);if(_0x1c950a){_0x26a821[0x0]=_0x1c950a;continue;}}_0x26a821['push'](_0x3ee623);}_0x99fcd3['push']([_0x3697f2['view'],_0x26a821]);}return _0x99fcd3;}),this['listenTo'](_0x22bd80,'suggestionLoaded',(_0x23f7ac,_0x65b284)=>{this['listenTo'](_0x65b284,'change:previous',(_0x760b39,_0x4f0ae9,_0x2130e8,_0x4c99c6)=>{_0x65b284['isInContent']&&(null==_0x2130e8?(this['_updateController'](_0x4c99c6['head']),this['_handleSuggestionControllerDelayed'](_0x65b284,!0x1)):(this['_updateController'](_0x2130e8['head']),null==_0x4c99c6&&this['_handleSuggestionControllerDelayed'](_0x65b284,!0x0)));}),null!==_0x65b284['previous']?this['_updateController'](_0x65b284['head']):this['_handleSuggestionControllerDelayed'](_0x65b284,!0x1);}),this['listenTo'](_0x22bd80,'suggestionUnloaded',(_0x1d863e,_0x3f201c,_0x2e2fa2)=>{this['stopListening'](_0x3f201c,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3f201c),this['_suggestionToController']['has'](_0x3f201c)&&this['_destroyController'](_0x3f201c),_0x2e2fa2&&this['_updateController'](_0x2e2fa2['head']);}),this['listenTo'](_0x22bd80,'suggestionChanged',(_0x112cfb,_0x1911bc)=>{this['_updateController'](_0x1911bc);}),this['listenTo'](_0x5a6f9f,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x1fa7c3,'addComment',(_0x350506,{threadId:_0x52d362,isFromAdapter:_0x24e9b4})=>{if(_0x24e9b4||!_0x22bd80['hasSuggestion'](_0x52d362))return;const _0x509f7d=_0x22bd80['getSuggestion'](_0x52d362);this['_suggestionToController']['get'](_0x509f7d)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4b3d78=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x8d4eae;for(const _0x374c13 in _0x4b3d78){const _0x26965b=_0x374c13,_0x3f6421=_0x4b3d78[_0x26965b];if('trackChangesLicenseKeyValid'==_0x3f6421||'trackChangesLicenseKeyInvalid'==_0x3f6421||'trackChangesLicenseKeyExpired'==_0x3f6421||'trackChangesLicenseKeyDomainLimit'==_0x3f6421||'trackChangesLicenseKeyNotAllowed'==_0x3f6421||'trackChangesLicenseKeyEvaluationLimit'==_0x3f6421||'trackChangesLicenseKeyTrialLimit'==_0x3f6421||'trackChangesLicenseKeyUsageLimit'==_0x3f6421){delete _0x4b3d78[_0x26965b],_0x8d4eae=_0x3f6421,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x8d4eae&&_0x4b3d78['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x8d4eae&&_0x4b3d78['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x8d4eae&&_0x4b3d78['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x8d4eae&&_0x4b3d78['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x8d4eae&&_0x4b3d78['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x8d4eae&&_0x4b3d78['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x8d4eae&&_0x4b3d78['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x1d01d7=this['editor']['plugins']['get']('Annotations'),_0x5a81f8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x35ac71=Array['from'](_0x1d01d7['activeAnnotations'],_0x263c58=>_0x263c58['innerView'])['filter'](_0x2d4b62=>this['_viewToController']['has'](_0x2d4b62)),_0x144902=[];for(const _0x223bed of _0x35ac71){const _0x2d7291=this['_viewToController']['get'](_0x223bed)['model']['getAllAdjacentSuggestions']();_0x144902['push'](..._0x2d7291['reduce']((_0x28b752,_0x840384)=>[..._0x28b752,..._0x840384['getMarkerNames']()],[]));}_0x5a81f8['activeMarkers']=_0x144902;}['_addUIComponentsToFactory'](){const _0x1a9f5d=this['editor'],_0x35d612=_0x1a9f5d['locale'],_0x26423e=c(_0x35d612,'Track\x20changes'),_0x421147=new _0x3abf58([{'type':'switchbutton','model':new _0x2e500b({'withText':!0x0,'isToggleable':!0x0,'label':_0x26423e,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x2e500b({'withText':!0x0,'label':c(_0x35d612,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2e500b({'withText':!0x0,'label':c(_0x35d612,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2e500b({'withText':!0x0,'label':c(_0x35d612,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2e500b({'withText':!0x0,'label':c(_0x35d612,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x1a9f5d['plugins']['has']('TrackChangesPreview')&&_0x421147['addMany']([{'type':'separator'},{'type':'button','model':new _0x2e500b({'withText':!0x0,'label':c(_0x35d612,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x438dd8 of _0x421147)if(ke(_0x438dd8)){const _0x47ac6b=_0x1a9f5d['commands']['get'](_0x438dd8['model']['commandName']);_0x438dd8['model']['bind']('isOn','isEnabled')['to'](_0x47ac6b,'value','isEnabled');}_0x1a9f5d['ui']['componentFactory']['add']('trackChanges',_0x1cf24f=>this['_createToolbarButton'](_0x1cf24f,_0x421147,_0x26423e)),_0x1a9f5d['ui']['componentFactory']['add']('menuBar:trackChanges',_0x44afb5=>this['_createMenuBarMenu'](_0x44afb5,_0x421147,_0x26423e));}['_createToolbarButton'](_0xd2636,_0x36d68f,_0x344d68){const _0x296e00=_0xc838a8(_0xd2636,_0x206658),_0x3f32a1=this['editor']['commands']['get']('trackChanges');_0x296e00['buttonView']['set']({'tooltip':_0x344d68,'label':_0x344d68,'icon':_0x274568}),_0x296e00['buttonView']['bind']('isOn')['to'](_0x3f32a1,'value'),_0x296e00['buttonView']['on']('execute',()=>{_0x3f32a1['execute'](),this['editor']['editing']['view']['focus']();}),_0x185cd5(_0x296e00,_0x36d68f,{'role':'menu'});const _0x599938=[];for(const _0x176ddd of _0x36d68f)ke(_0x176ddd)&&_0x599938['push'](this['editor']['commands']['get'](_0x176ddd['model']['commandName']));const _0x45e15f=_0x296e00['buttonView'];return _0x45e15f['actionView']['unbind']('isEnabled'),_0x45e15f['arrowView']['unbind']('isEnabled'),_0x45e15f['actionView']['bind']('isEnabled')['to'](_0x3f32a1,'isEnabled'),_0x45e15f['arrowView']['bind']('isEnabled')['toMany'](_0x599938,'isEnabled',(..._0x159918)=>_0x159918['some'](_0x171c50=>_0x171c50)),_0x296e00['on']('execute',_0x53b212=>{this['editor']['execute'](_0x53b212['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x296e00;}['_createMenuBarMenu'](_0x35a977,_0x7f074a,_0x2d800a){const _0x5f0ab4=new _0x4e0aa7(_0x35a977),_0x437934=this['editor']['commands']['get']('trackChanges');_0x5f0ab4['buttonView']['set']({'label':_0x2d800a,'icon':_0x274568});const _0x433bc3=new _0x2170a6(_0x35a977);for(const _0x325a77 of _0x7f074a){if('separator'==_0x325a77['type']){_0x433bc3['items']['add'](new _0x1a819b(_0x35a977));continue;}const _0x4ec499=new _0x3d208e(_0x35a977,_0x5f0ab4),_0x4ca64d=new _0xbe4a96(_0x35a977),_0x245e61=_0x325a77['model'];_0x4ca64d['bind'](...Object['keys'](_0x245e61))['to'](_0x245e61),_0x4ca64d['delegate']('execute')['to'](_0x5f0ab4),_0x4ca64d['on']('execute',()=>{this['editor']['execute'](_0x245e61['commandName']),this['editor']['editing']['view']['focus']();}),_0x4ec499['children']['add'](_0x4ca64d),_0x433bc3['items']['add'](_0x4ec499);}return _0x5f0ab4['bind']('isEnabled')['to'](_0x437934,'isEnabled'),_0x5f0ab4['panelView']['children']['add'](_0x433bc3),_0x5f0ab4;}['_initializeController'](_0x5b9218){const _0x10a66a=this['editor'],_0xbede38=_0x10a66a['config'],_0x47e9c7=_0x10a66a['plugins']['get']('Annotations'),_0x5eadbc=_0x10a66a['plugins']['get']('CommentsRepository'),_0x2b827f=_0x10a66a['plugins']['get']('EditorAnnotations'),_0x350790=_0x10a66a['plugins']['get'](_0xd79e0a)['me'],_0x3505cb=_0xbede38['get']('trackChanges')['SuggestionThreadView'],_0xc06f9=_0xbede38['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x3eb983,CommentThreadInputView:_0x24b072}=_0x10a66a['plugins']['get']('CommentsUI');let _0x30c56f,_0x2a2cb3,_0x2ef6d3;this['_annotationViews']['has'](_0x5b9218['id'])?(_0x2a2cb3=this['_annotationViews']['get'](_0x5b9218['id']),_0x30c56f=_0x2a2cb3['mainView']):(_0x30c56f=new _0x3505cb(_0x10a66a['locale'],_0x5b9218,_0x350790,{'disableComments':this['_disableComments'],'editorConfig':{..._0xbede38['get']('comments.editorConfig'),'licenseKey':_0xbede38['get']('licenseKey')},'maxCommentsWhenCollapsed':_0xbede38['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0xbede38['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0xbede38['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x4e981b(_0xbede38['get']('locale')),'CommentView':_0xbede38['get']('comments')['CommentView'],'CommentsListView':_0x3eb983,'CommentThreadInputView':_0x24b072,'SuggestionView':_0xc06f9}),_0x30c56f['suggestionView']['acceptButton']['on']('execute',()=>{_0x10a66a['editing']['view']['focus']();}),_0x30c56f['suggestionView']['discardButton']['on']('execute',()=>{_0x10a66a['editing']['view']['focus']();}),_0x2a2cb3=_0x47e9c7['createAnnotationView'](this['editor']['locale'],_0x30c56f),_0x2a2cb3['bind']('isDirty')['to'](_0x30c56f,'isDirty'),_0x2a2cb3['bind']('length')['to'](_0x30c56f),_0x2a2cb3['bind']('type')['to'](_0x30c56f,'type',_0x24c9fd=>'suggestion-'+_0x24c9fd),_0x30c56f['on']('escape',()=>{_0x2ef6d3['fire']('escape');}),this['_annotationViews']['set'](_0x5b9218['id'],_0x2a2cb3));const _0x2935ed=_0x5eadbc['createCommentThreadController'](_0x5b9218['commentThread'],_0x30c56f),_0x5bcb59=new pe(_0x10a66a,_0x5b9218,_0x30c56f,_0x2935ed),_0x1f4ea7=_0x5b9218['getAllAdjacentSuggestions']()['filter'](_0x5df376=>_0x5df376['isInContent']);_0x30c56f['descriptionParts']=_0x10a66a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x1f4ea7),this['_suggestionToController']['set'](_0x5b9218,_0x5bcb59),this['_viewToController']['set'](_0x30c56f,_0x5bcb59),_0x2ef6d3=_0x47e9c7['createAnnotation']({'view':_0x2a2cb3,'target':()=>{const _0x23548a=[],_0x39476d=_0x5b9218['getAllAdjacentSuggestions']()['filter'](_0x4d0948=>_0x4d0948['isInContent']);for(const _0x3a6f84 of _0x39476d)_0x23548a['push'](..._0x3a6f84['getMarkers']());return _0x472501(_0x10a66a['editing'],_0x23548a);},'type':()=>'suggestion-'+_0x5bcb59['view']['type']}),_0x5eadbc['_bindAnnotationToEditors'](_0x30c56f,_0x2ef6d3),_0x47e9c7['add'](_0x2ef6d3),_0x2b827f['registerAnnotation'](_0x2ef6d3);}['_destroyController'](_0x2b7271){const _0x338fde=this['editor']['plugins']['get']('CommentsRepository'),_0x56df67=this['editor']['plugins']['get']('Annotations'),_0x2cb806=this['_suggestionToController']['get'](_0x2b7271),_0x2e41e8=_0x2cb806['view'],_0x3e044e=_0x56df67['getByInnerView'](_0x2e41e8);_0x338fde['_unbindEditors'](_0x2e41e8),_0x3e044e&&_0x56df67['remove'](_0x3e044e),this['_suggestionToController']['delete'](_0x2b7271),this['_viewToController']['delete'](_0x2e41e8),_0x2cb806['destroy']();}['_updateController'](_0x29094b){if(!_0x29094b['isInContent']||!this['_suggestionToController']['has'](_0x29094b))return;const _0x3004e6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x6c0187=this['_suggestionToController']['get'](_0x29094b),_0x59966f=_0x29094b['getAllAdjacentSuggestions']();_0x6c0187['view']['descriptionParts']=_0x3004e6['descriptionFactory']['getDescriptions'](_0x59966f);}['destroy'](){for(const _0x4013c6 of this['_suggestionToController']['keys']())this['_destroyController'](_0x4013c6);for(const _0x4b1ad4 of this['_annotationViews']['values']())_0x4b1ad4['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x5b06f8){return'model'in _0x5b06f8;}class k extends _0x53ae92{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x237319){this['editor']['plugins']['get'](p)['adapter']=_0x237319;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x15672d){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x15672d);}['getSuggestions']({skipNotAttached:_0x265990=!0x1,toJSON:_0x4e0df7=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x265990,'toJSON':_0x4e0df7});}['getSuggestion'](_0x249971){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x249971);}}const w=['Pagination'];class T extends _0x53ae92{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x583a5d=this['editor'];if(_0x583a5d['config']['define']('trackChangesData.editorCreator',_0x3fae25=>{const _0x247de7=_0x583a5d['model']['document']['getRootNames']()['reduce']((_0x41cb1d,_0xcb2603)=>(_0x41cb1d[_0xcb2603]='',_0x41cb1d),{});return _0x583a5d['constructor']['create'](_0x247de7,_0x3fae25);}),'function'!=typeof _0x583a5d['config']['get']('trackChangesData')['editorCreator'])throw new _0x3d4351('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x5427e3){return N(this['editor'],!0x0,_0x5427e3);}['getDataWithDiscardedSuggestions'](_0x253a32){return N(this['editor'],!0x1,_0x253a32);}}class D extends _0x53ae92{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3eda32){function _0x473e0c(_0x43ecc5){return _0x43ecc5['map'](_0x485581=>String['fromCharCode'](_0x485581))['join']('');}super(_0x3eda32),this['result']='end',_0x3eda32[_0x473e0c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x473e0c([0x76,0x69,0x65,0x77])][_0x473e0c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x473e0c([0x61,0x75,0x74,0x6f]),_0x3eda32[_0x473e0c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x473e0c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x473e0c([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x473e0c([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x473e0c([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(_0x2f0a04){return void 0x0!==_0x2f0a04['getRootsAttributes'];}async function N(_0x53f1e2,_0x4d6dc2,_0x45d964){const _0x16bff3=_0x4681f7(_0x53f1e2,w);_0x16bff3['plugins']['push'](p,D),_0x16bff3['rootsAttributes']=Fe(_0x53f1e2)?_0x53f1e2['getRootsAttributes']():void 0x0;const _0x443e34=document['createDocumentFragment'](),_0x5584e6=_0x53f1e2['config']['get']('trackChangesData')['editorCreator'],_0x1cd3d2=await _0x5584e6(_0x16bff3,()=>function(_0x11d662){const _0x238e3b=document['createElement']('div');return _0x11d662['appendChild'](_0x238e3b),_0x238e3b;}(_0x443e34));!function(_0x23cbc9,_0x957ed1){const _0x1833bc=_0x23cbc9['model']['document']['getRootNames']()['reduce']((_0x5f3742,_0x36bd66)=>(_0x5f3742[_0x36bd66]=_0x23cbc9['data']['get']({'rootName':_0x36bd66}),_0x5f3742),{}),_0x5c0bfa=_0x23cbc9['plugins']['get']('Users')['users']['map'](_0xdd0f49=>({'id':_0xdd0f49['id'],'name':_0xdd0f49['name']})),_0x49b385=_0x23cbc9['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xc520a6=_0x23cbc9['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1829bc=_0x957ed1['plugins']['get']('Users'),_0x11da87=_0x957ed1['plugins']['get']('TrackChangesEditing'),_0x2bcdc4=_0x957ed1['plugins']['get']('CommentsRepository');for(const _0x4a9bc5 of _0x2bcdc4['getCommentThreads']())_0x4a9bc5['remove']();for(const _0x5da4ed of _0x5c0bfa)_0x1829bc['getUser'](_0x5da4ed['id'])||_0x1829bc['addUser'](_0x5da4ed);_0x1829bc['me']||_0x1829bc['useAnonymousUser']();for(const _0x47d479 of _0xc520a6)_0x2bcdc4['addCommentThread'](_0x47d479);for(const _0xc3d409 of _0x49b385)_0x11da87['addSuggestionData'](_0xc3d409);_0x957ed1['data']['set'](_0x1833bc);}(_0x53f1e2,_0x1cd3d2),_0x1cd3d2['execute'](_0x4d6dc2?'acceptAllSuggestions':'discardAllSuggestions');const _0x3efc6b=Fe(_0x1cd3d2)?_0x1cd3d2['getFullData'](_0x45d964):_0x1cd3d2['data']['get'](_0x45d964);return await _0x1cd3d2['destroy'](),_0x3efc6b;}class Me extends _0x5297f1{['options'];constructor(_0x39ceab,_0xe9745c){super(_0x39ceab),this['options']=_0xe9745c,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'](_0x584347,_0x2c7bb3){if(!this['element'])return;const _0x1165c6=[];for(const [_0x23daf4,_0x54eb3b]of _0x584347){const _0x24e340=document['createElement']('div');_0x24e340['setAttribute']('data-ck-root-name',_0x23daf4),_0x24e340['className']=_0x54eb3b['classes']+'\x20ck-track-changes-preview__root-container',_0x24e340['innerHTML']=_0x54eb3b['content'],_0x1165c6['push'](_0x24e340);}_0x2c7bb3(this['element'],_0x1165c6),this['element']['style']['width']='',this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x2699b4{constructor(_0x449d65){super(_0x449d65),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x406043=this['editor'],_0x2b2ddc=_0x406043['locale'],_0x5303ec=_0x406043['plugins']['get']('Dialog');let _0x3ce1d7;const _0x2d3cf3=function(_0x4ddfe6){const _0x388493={};if('editables'in _0x4ddfe6['ui']['view']){for(const [_0x26eb25,_0x594a14]of Object['entries'](_0x4ddfe6['ui']['view']['editables']))_0x388493[_0x26eb25]=_0x594a14['element'];}else _0x388493[_0x4ddfe6['model']['document']['getRootNames']()[0x0]]=_0x4ddfe6['ui']['view']['editable']['element'];return _0x388493;}(_0x406043),_0x3e650f=function(_0x2491d7){let _0x5943ec=0x0;for(const _0x519fd9 of Object['values'](_0x2491d7))_0x5943ec=Math['max'](_0x5943ec,_0x519fd9['getBoundingClientRect']()['width']);let _0x3ff59a=0x0;for(const _0x433ad6 of Object['values'](_0x2491d7))_0x3ff59a+=_0x433ad6['getBoundingClientRect']()['height'];const _0x327f05=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x7dfaa0=Math['min'](_0x3ff59a,_0x327f05);return{'width':_0x5943ec,'height':_0x7dfaa0};}(_0x2d3cf3);_0x5303ec['show']({'id':'finalContentPreview','title':c(_0x2b2ddc,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x2b2ddc,{'dialogRects':_0x3e650f}),'onHide':()=>{_0x3ce1d7['detachFromDom']();},'onShow':()=>{_0x406043['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x25e5a6=>{const _0x44693e=this['_standarizeRootsData'](_0x25e5a6,_0x406043,_0x2d3cf3);_0x5303ec['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x44693e,_0x406043['config']['get']('trackChanges.preview.renderFunction'));}),_0x3ce1d7=new _0x5bf6bf(_0x2b2ddc,[_0x5303ec['view']]),_0x3ce1d7['attachToDom'](),_0x3ce1d7['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x406043['once']('destroy',()=>{_0x3ce1d7['detachFromDom']();});const _0x958c0e=_0x5303ec['view']['headerView']['class'];_0x5303ec['view']['headerView']['class']=_0x958c0e?_0x958c0e+'\x20ck-reset_all':'ck-reset_all',_0x5303ec['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x5303ec['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x30a4bf=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x278df0=_0x30a4bf['previewMode'],_0xf13a97={};if('$labels'===_0x278df0){for(const _0x4f8f9e of _0x30a4bf['getMergeFieldsIds']())_0xf13a97[_0x4f8f9e]=_0x30a4bf['getLabel'](_0x4f8f9e)||_0x4f8f9e;}else{const _0x43e29a='$defaultValues'===_0x278df0?_0x30a4bf['getDefaultValues']():_0x30a4bf['getDataSetValues'](_0x278df0,!0x0);for(const _0x5bbed3 of Object['entries'](_0x43e29a)){const [_0x19bb3f,_0x364ee5]=_0x5bbed3;_0xf13a97[_0x19bb3f]=null!==_0x364ee5?_0x364ee5:_0x30a4bf['getLabel'](_0x19bb3f)||_0x19bb3f;}}return{'mergeFieldsData':_0xf13a97};}['_standarizeRootsData'](_0x251f17,_0x20b998,_0x341a7b){let _0x1ffb62;if('string'==typeof _0x251f17){const _0x51cc45=_0x20b998['model']['document']['getRootNames']()[0x0];_0x1ffb62={[_0x51cc45]:_0x251f17};}else _0x1ffb62=_0x251f17;const _0x23e02a=this['_fixMediaEmbeds'](_0x1ffb62,_0x20b998),_0x42ed7b=function(_0x1f8032,_0x51b6b5){for(const [_0x37c171,_0x4f4ff9]of _0x1f8032)_0x4f4ff9['classes']=_0x51b6b5[_0x37c171]['classList']['value']['replace']('ck-focused','');return _0x1f8032;}(this['_sortRoots'](_0x20b998)['reduce']((_0xa760b7,_0x155a6d)=>(_0xa760b7['push']([_0x155a6d,{'content':_0x23e02a[_0x155a6d],'classes':''}]),_0xa760b7),[]),_0x341a7b);return _0x42ed7b;}['_fixMediaEmbeds'](_0x5f3fae,_0xc2e022){if(!_0xc2e022['plugins']['has']('MediaEmbedEditing'))return _0x5f3fae;const _0x15bda0=_0xc2e022['plugins']['get']('MediaEmbedEditing');for(const [_0x3d2bc2,_0x23e6f0]of Object['entries'](_0x5f3fae)){const _0x1db52c=document['createElement']('div');_0x1db52c['innerHTML']=_0x23e6f0,(_0x1db52c['querySelectorAll']('figure.media')['forEach'](_0x163f66=>{const _0x158f53=_0x163f66['querySelector']('oembed');if(_0x158f53){const _0x1c482f=_0x158f53['getAttribute']('url');if(_0x1c482f){const _0x55d2c0=_0x15bda0['registry']['getMediaViewElement'](new _0xc616a3(_0xc2e022['editing']['view']['document']),_0x1c482f,{'elementName':'','renderForEditingView':!0x0}),_0x3706ba=document['createElement']('div');_0x3706ba['classList']['add']('ck-media__wrapper'),_0x55d2c0['render'](_0x3706ba,_0xc2e022['editing']['view']['domConverter']),_0x158f53['replaceWith'](_0x3706ba);}}}),_0x5f3fae[_0x3d2bc2]=_0x1db52c['innerHTML']);}return _0x5f3fae;}['_sortRoots'](_0x15e8b7){if(!function(_0x4646c6){return void 0x0!==_0x4646c6['getRootsAttributes'];}(_0x15e8b7))return _0x15e8b7['model']['document']['getRootNames']();const _0x119ae0=[],_0x477704=new Map();for(const _0x4971c6 of _0x15e8b7['model']['document']['getRootNames']()){const _0x4b4f7f=_0x15e8b7['editing']['view']['getDomRoot'](_0x4971c6)['getClientRects']()['item'](0x0);_0x119ae0['push'](_0x4971c6),_0x477704['set'](_0x4971c6,_0x4b4f7f);}return _0x119ae0['sort']((_0x2421c9,_0x4c3275)=>{const _0x5ec352=_0x477704['get'](_0x2421c9),_0x8c5cc6=_0x477704['get'](_0x4c3275);return _0x5ec352['y']-_0x8c5cc6['y']||_0x5ec352['x']-_0x8c5cc6['x'];}),_0x119ae0;}}class te extends _0x53ae92{static get['requires'](){return[T,_0xc3148a];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x39970f){super(_0x39970f),_0x39970f['commands']['add']('previewFinalContent',new re(this['editor'])),_0x39970f['config']['define']('trackChanges.preview.renderFunction',(_0x441c4b,_0x1c6ad7)=>{for(const _0x25cac5 of _0x1c6ad7)_0x441c4b['appendChild'](_0x25cac5);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
23
+ import{Command as _0x1ef9c2,Plugin as _0x346e12,PendingActions as _0x56c221}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x97435f,ObservableMixin as _0x3c5479,uid as _0xb11af3,priorities as _0x1afaee,insertToPriorityArray as _0x545c0e,logWarning as _0x423f9c,getEnvKeystrokeText as _0x28e37d,FocusTracker as _0x4a4022,KeystrokeHandler as _0x1138ff,Collection as _0x45a5c0}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x498c5b,IconCancel as _0x27c97d,IconTrackChanges as _0x28714b}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as Zt,View as _0x235450,ViewCollection as _0x4a05f1,FocusCycler as _0x32a4a6,ViewModel as _0x56ba85,createDropdown as _0x222b05,SplitButtonView as _0x46f898,addListToDropdown as _0x5a8619,MenuBarMenuView as _0x2bb805,MenuBarMenuListView as _0x470e55,ListSeparatorView as _0x128c5e,MenuBarMenuListItemView as _0x2b8b4f,MenuBarMenuListItemButtonView as _0x4a4b4b,BodyCollection as _0x2348b9,Dialog as _0x2acc9b}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x420210,hashObject as _0x573f52,surroundingMarkersDetector as _0x3b957d,FOCUS_ANNOTATION_KEYSTROKE as _0x20e5f6,AriaDescriptionView as _0x2ded57,setupThreadKeyboardNavigation as _0x246d2c,trimHtml as ti,UserView as _0x2c1c86,LateFocusButtonView as _0x4c4533,getDateTimeFormatter as _0x20bd73,getAllMarkersDomElementsSorted as _0xdb3c95,sanitizeEditorConfig as _0x3c9f74}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x5ef052,LiveRange as _0x33a55c,LivePosition as _0x1322ed,DowncastWriter as _0x2b4665}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x510c2f,toWidget as _0x5da8b2}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x3686b7,set as _0x1cf530,isEqual as _0x25540a,unset as _0x44e642,omit as Et}from'es-toolkit/compat';import{Delete as _0x531492,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x561c61,ShiftEnter as _0x47504a}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends _0x1ef9c2{['_enabledCommands'];constructor(_0x5bb604,_0x1ed6c7){super(_0x5bb604),this['_enabledCommands']=_0x1ed6c7,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 _0x174a86 of this['editor']['commands']['commands']())_0x174a86['affectsData']&&!this['_enabledCommands']['has'](_0x174a86)&&_0x174a86['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x53e76b of this['editor']['commands']['commands']())_0x53e76b['affectsData']&&!this['_enabledCommands']['has'](_0x53e76b)&&_0x53e76b['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x1ef9c2{['_suggestions'];constructor(_0xe8441,_0x1b02dc){super(_0xe8441),this['_suggestions']=_0x1b02dc,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x1f6d0f){const _0x3e82cd=this['_suggestions']['get'](_0x1f6d0f);if(!_0x3e82cd)throw new _0x97435f('track-changes-accept-suggestion-not-found',this);const _0x4d4ede=_0x3e82cd['getRanges']();this['editor']['model']['canEditAt'](_0x4d4ede)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x3e82cd);}}class R extends _0x1ef9c2{['_suggestions'];constructor(_0x6a7e8e,_0x1ef2a2){super(_0x6a7e8e),this['_suggestions']=_0x1ef2a2,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5eb7e9){const _0x31a10b=this['_suggestions']['get'](_0x5eb7e9);if(!_0x31a10b)throw new _0x97435f('track-changes-discard-suggestion-not-found',this);const _0x4ab13c=_0x31a10b['getRanges']();this['editor']['model']['canEditAt'](_0x4ab13c)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x31a10b);}}function ls(_0x1d1485,_0x1a5aed){let _0x2c7b40='';return _0x2c7b40+=_0x1d1485['split']('*')['map']((_0x45d0c9,_0x17ba17)=>_0x17ba17%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x45d0c9)+'</span>':nn(_0x45d0c9))['join'](''),_0x1a5aed&&(_0x2c7b40+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x1a5aed['value']+'\x22\x20title=\x22'+_0x1a5aed['title']+'\x22></span>'),_0x2c7b40;}function nn(_0x259f43){const _0x57e993=document['createElement']('span');return _0x57e993['innerText']=_0x259f43,_0x57e993['innerHTML'];}function ts(_0x377d9f){return _0x377d9f['sort']((_0x196b6b,_0x43a226)=>'deletion'==_0x196b6b['type']&&'deletion'!=_0x43a226['type']?-0x1:'deletion'!=_0x196b6b['type']&&'deletion'==_0x43a226['type']?0x1:0x0);}function Xt(_0x170609,_0x3d4f67){let _0x605bfb,_0x5c05d0=0x0;const _0x53ed88=[],_0x2878e5=_0x3d4f67['schema'];for(;_0x5c05d0<_0x170609['length'];){const _0x2ce372=_0x170609[_0x5c05d0],_0x335807=_0x170609[_0x5c05d0+0x1];_0x605bfb||(_0x605bfb=_0x3d4f67['createPositionBefore'](_0x2ce372)),on(_0x3d4f67,_0x2ce372,_0x335807)||(_0x53ed88['push'](_0x3d4f67['createRange'](_0x605bfb,_0x2878e5['isObject'](_0x2ce372)?_0x3d4f67['createPositionAfter'](_0x2ce372):_0x3d4f67['createPositionAt'](_0x2ce372,'end'))),_0x605bfb=null),_0x5c05d0++;}return _0x53ed88;}function on(_0x930bd1,_0x183106,_0x5d6c5d){if(!_0x5d6c5d)return!0x1;const _0x2ed429=_0x930bd1['createPositionAfter'](_0x183106),_0x4845de=_0x930bd1['createPositionBefore'](_0x5d6c5d);return _0x2ed429['isTouching'](_0x4845de);}function rs(_0x30d37d,_0x45e6d2,_0x27a745){for(;_0x27a745['length'];){const _0x1feaf9=_0x27a745['splice'](0x0,0x64);_0x30d37d['change'](()=>{for(const _0x31bc41 of _0x1feaf9)_0x31bc41['isInContent']&&_0x45e6d2['execute'](_0x31bc41['id']);});}}class x extends _0x1ef9c2{['_command'];['_suggestions'];constructor(_0x221ca3,_0x5dc4f2,_0x285cee){super(_0x221ca3),this['_command']=_0x5dc4f2,this['_suggestions']=_0x285cee,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x36aa16=Array['from'](this['_suggestions']['values']())['some'](_0x2589d4=>_0x2589d4['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x36aa16;}['execute'](){const _0x518d5d=ts(Array['from'](this['_suggestions']['values']()));for(const _0x51a278 of _0x518d5d){const _0x45e6b4=_0x51a278['getRanges']();if(!this['editor']['model']['canEditAt'](_0x45e6b4))return;}rs(this['editor']['model'],this['_command'],_0x518d5d);}}class E extends _0x1ef9c2{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x38f0d9,_0x1c4308,_0x3c123a){super(_0x38f0d9),this['_command']=_0x1c4308,this['_suggestions']=_0x3c123a,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x297edf=this['editor']['model']['document']['selection'],_0x437a2e=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x428bcd,_0x839301){const _0x42045b=Array['from'](_0x428bcd['getRanges']()),_0x5c85b9=new Set();for(const _0x35569e of _0x839301)if(_0x35569e['isInContent']){for(const _0x7db3dc of _0x42045b)for(const _0x53bfcd of _0x35569e['getRanges']())(_0x7db3dc['isIntersecting'](_0x53bfcd)||_0x428bcd['isCollapsed']&&!_0x35569e['isMultiRange']&&_0x35569e['next']&&_0x53bfcd['end']['isTouching'](_0x7db3dc['start']))&&_0x5c85b9['add'](_0x35569e);}return _0x5c85b9;}(_0x297edf,_0x437a2e),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x4d7b72=ts(Array['from'](this['_selectedSuggestions']));for(const _0x344156 of _0x4d7b72){const _0x5fc05d=_0x344156['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5fc05d))return;}rs(this['editor']['model'],this['_command'],_0x4d7b72);}}class o extends/* #__PURE__ -- @preserve */
24
+ _0x3c5479(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x166a96,_0x1694f2){super(),this['id']=_0x1694f2['id'],this['type']=_0x1694f2['type'],this['subType']=_0x1694f2['subType']||null,this['author']=_0x1694f2['author'],this['creator']=_0x1694f2['creator']||_0x1694f2['author'],this['isExternal']=Boolean(_0x1694f2['attributes']&&_0x1694f2['attributes']['@external']),this['data']=null,this['_model']=_0x166a96,this['_onAccept']=_0x1694f2['onAccept'],this['_onDiscard']=_0x1694f2['onDiscard'],this['_onAttributesChange']=_0x1694f2['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1694f2['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 _0x366765=this;for(;_0x366765['previous'];)_0x366765=_0x366765['previous'];return _0x366765;}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'](_0x186ae9){this['_markerNames']['add'](_0x186ae9);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0xd8942e=>this['_model']['markers']['get'](_0xd8942e))['filter'](_0x150441=>_0x150441);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0xb43dc3=>{for(const _0x37a3b8 of this['getMarkers']())_0xb43dc3['removeMarker'](_0x37a3b8);}),this['_markerNames']['clear']();}['removeMarker'](_0x4a551e){this['_model']['change'](_0x8faf4=>{_0x8faf4['removeMarker'](_0x4a551e);}),this['_markerNames']['delete'](_0x4a551e);}['addRange'](_0x4db636){const _0x9c1a17='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x9c1a17),this['_model']['change'](_0xd108b5=>{_0xd108b5['addMarker'](_0x9c1a17,{'range':_0x4db636,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x3ee249){for(const _0x1fe373 of this['getRanges']())if(_0x1fe373['isIntersecting'](_0x3ee249))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x580ae2=>_0x580ae2['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x1830f3,_0x4f749e)=>[..._0x1830f3,..._0x4f749e['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x401d3d=this['getRanges']();if(0x1!=_0x401d3d['length'])return null;const _0x3084dc=_0x401d3d[0x0],_0xfbe56c=_0x3084dc['start']['nodeAfter'],_0x2c8f93=_0x3084dc['end']['nodeBefore'];return _0xfbe56c instanceof _0x5ef052?_0xfbe56c!=_0x2c8f93?null:_0xfbe56c: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 _0x1743e2=[];let _0x44d7b0=this['head'];for(;_0x44d7b0;)_0x1743e2['push'](_0x44d7b0),_0x44d7b0=_0x44d7b0['next'];return _0x1743e2;}['setAttribute'](_0x251527,_0x37a6d7){const _0x2ec89c=_0x3686b7(this['attributes']);_0x1cf530(_0x2ec89c,_0x251527,_0x37a6d7),_0x25540a(_0x2ec89c,this['attributes'])||(this['attributes']=_0x2ec89c,this['_onAttributesChange'](_0x2ec89c));}['removeAttribute'](_0x1bb220){const _0x2d0d2a=_0x3686b7(this['attributes']);_0x44e642(_0x2d0d2a,_0x1bb220),_0x25540a(_0x2d0d2a,this['attributes'])||(this['attributes']=_0x2d0d2a,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 _0xb11af3()['substr'](0x1,0x5);}}function c(_0x1de258,_0x55d83e,_0x190a67){const _0x1a963d=_0x1de258['t'],t=_0x1de258['t'];switch(_0x55d83e){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',_0x190a67);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x190a67);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x190a67);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x190a67);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x190a67);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',_0x190a67);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x190a67);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',_0x190a67);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x190a67);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x190a67);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x190a67);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x190a67);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x190a67);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x190a67);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x190a67);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x190a67);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x190a67);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x190a67);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x190a67);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x190a67);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x190a67);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x190a67);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x190a67);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x190a67);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'},_0x190a67);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x190a67);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x190a67);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x190a67);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x190a67);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x190a67);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'},_0x190a67);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x190a67);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x190a67);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x190a67);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x190a67);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'},_0x190a67);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x190a67);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'},_0x190a67);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'},_0x190a67);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x190a67);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'},_0x190a67);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x190a67);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'},_0x190a67);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x190a67);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x190a67);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'},_0x190a67);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x190a67);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 _0x1a963d({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x190a67);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x1a963d({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x190a67);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x190a67);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'},_0x190a67);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'},_0x190a67);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'},_0x190a67);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x55d83e;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x248831,_0x55417c){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x248831,this['_locale']=_0x55417c;}['getDescriptions'](_0x301494){const _0x5e6480=[],_0x4729e9=new Set(),_0x351c12=new Set();for(let _0x297a84=0x0;_0x297a84<_0x301494['length'];_0x297a84++){const _0x51a6ab=_0x301494[_0x297a84];if(!_0x51a6ab['isInContent'])continue;const _0x392554=this['_handleCustomCallbackDescription'](_0x51a6ab);if(_0x392554){if(null!=_0x51a6ab['subType']){if(_0x4729e9['has'](_0x51a6ab['subType']))continue;_0x4729e9['add'](_0x51a6ab['subType']);}_0x5e6480['push'](_0x392554);}else{if('attribute'!=_0x51a6ab['type'])'insertion'!=_0x51a6ab['type']&&'deletion'!=_0x51a6ab['type']||this['_handleInsertRemoveSuggestionDescription'](_0x5e6480,_0x51a6ab,_0x301494[_0x297a84+0x1]);else{const _0x533c68=_0x51a6ab['data']['key'];if(_0x351c12['has'](_0x533c68))continue;_0x351c12['add'](_0x51a6ab['data']['key']),_0x533c68==u?this['_handleRenameSuggestionDescription'](_0x5e6480,_0x51a6ab):this['_handleAttributeSuggestionDescription'](_0x5e6480,_0x51a6ab);}}}return this['_resolveDescriptionItems'](_0x5e6480);}['registerDescriptionCallback'](_0x2c9947){this['_customCallbacks']['push'](_0x2c9947);}['registerElementLabel'](_0x13a770,_0x160a55,_0x59879d=_0x1afaee['normal']){'function'==typeof _0x13a770?_0x545c0e(this['_itemLabelsCallbacks'],{'matchingCallback':_0x13a770,'label':_0x160a55,'priority':_0x59879d}):this['_itemLabels']['set'](_0x13a770,_0x160a55);}['registerAttributeLabel'](_0x5b2c8b,_0x13633c){this['_attributeLabels']['set'](_0x5b2c8b,_0x13633c);}['getItemLabel'](_0x2bef03,_0xd0d8e8=0x1){let _0x1b0804;for(const _0x48e2fd of this['_itemLabelsCallbacks'])if(_0x48e2fd['matchingCallback'](_0x2bef03)){_0x1b0804=_0x48e2fd['label'];break;}return _0x1b0804||(_0x1b0804=this['_itemLabels']['get'](_0x2bef03['name'])),_0x1b0804?_0x1b0804(_0xd0d8e8):0x1!==_0xd0d8e8?_0xd0d8e8+'\x20'+_0x2bef03['name']+'s':''+_0x2bef03['name'];}['_addDescriptionItems'](_0xf95b2f,_0x213cf6){const _0x5c797c=_0x213cf6['getFirstRange']()['getWalker'](),_0x354dd4='insertion'==_0x213cf6['type']?'add':'remove';for(const _0x492884 of _0x5c797c){const _0x2a5229=_0x492884['item'],_0x1303db=_0xf95b2f[_0xf95b2f['length']-0x1];if(_0x2a5229['is']('$textProxy'))_0x1303db&&_0x1303db['type']['indexOf']('Container')>-0x1&&_0xf95b2f['pop'](),_0x1303db&&'text'==_0x1303db['type']?_0x1303db[_0x354dd4]+=_0x2a5229['data']:_0xf95b2f['push']({'type':'text','add':'add'==_0x354dd4?_0x2a5229['data']:'','remove':'remove'==_0x354dd4?_0x2a5229['data']:''});else{if(this['_schema']['isObject'](_0x2a5229)){const _0xaebd86=_0x2a5229;if(_0x1303db&&_0x1303db['type']['indexOf']('Container')>-0x1&&_0xf95b2f['pop'](),'elementEnd'==_0x492884['type'])continue;_0x1303db&&_0x1303db['type']==_0x354dd4+'Object'&&_0x1303db['element']['name']==_0xaebd86['name']?_0x1303db['quantity']++:_0xf95b2f['push']({'type':_0x354dd4+'Object','element':_0xaebd86,'quantity':0x1}),_0x5c797c['skip'](_0x4c1708=>!('elementEnd'==_0x4c1708['type']&&_0x4c1708['item']==_0x2a5229));}else{if(this['_schema']['checkChild'](_0x2a5229,'$text')||_0x2a5229['is']('element','softBreak')){const _0x3950a7=_0x2a5229;if('add'==_0x354dd4&&'elementStart'==_0x492884['type']||'remove'==_0x354dd4&&'elementEnd'==_0x492884['type'])continue;if(_0x1303db&&-0x1==_0x1303db['type']['indexOf']('Container')){'text'==_0x1303db['type']&&(_0x1303db[_0x354dd4]+='\x0a');continue;}let _0x5468ed;if(_0x5468ed='add'==_0x354dd4?_0x3950a7['nextSibling']&&!this['_schema']['isObject'](_0x3950a7['nextSibling'])?_0x3950a7['nextSibling']:null:_0x3950a7['previousSibling']&&!this['_schema']['isObject'](_0x3950a7['previousSibling'])?_0x3950a7['previousSibling']:null,_0x3950a7['isEmpty']||_0x5468ed&&_0x5468ed['isEmpty']){const _0x23981b=_0x5468ed&&_0x5468ed['isEmpty']?_0x5468ed:_0x3950a7;_0x1303db&&_0x1303db['type']==_0x354dd4+'EmptyContainer'&&_0x1303db['element']['name']==_0x23981b['name']?_0x1303db['quantity']++:_0xf95b2f['push']({'type':_0x354dd4+'EmptyContainer','element':_0x23981b,'quantity':0x1});}else _0xf95b2f['push']({'type':_0x354dd4+'Container','element':_0x3950a7});}}}}}['_resolveDescriptionItems'](_0x26fc1d){const _0x14da67=this['_locale'],_0x49d590=[],_0x61f985=[],_0x46a006=[];for(const _0x28ffac of _0x26fc1d)switch(_0x28ffac['type']){case'text':if(_0x28ffac['add']=_0x28ffac['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x28ffac['remove']=_0x28ffac['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x28ffac['add']&&''!=_0x28ffac['remove']){_0x49d590['push']({'type':'replace','content':c(_0x14da67,'REPLACE_TEXT',['\x22'+_0x28ffac['remove']+'\x22','\x22'+_0x28ffac['add']+'\x22'])});continue;}if(null!=_0x28ffac['add']['match'](/^ +$/)){_0x49d590['push']({'type':'insertion','content':c(_0x14da67,'*Insert:*\x20%0',c(_0x14da67,'ELEMENT_SPACE',_0x28ffac['add']['length']))});continue;}if(null!=_0x28ffac['remove']['match'](/^ +$/)){_0x49d590['push']({'type':'deletion','content':c(_0x14da67,'*Remove:*\x20%0',c(_0x14da67,'ELEMENT_SPACE',_0x28ffac['remove']['length']))});continue;}if(''!=_0x28ffac['add']){_0x49d590['push']({'type':'insertion','content':c(_0x14da67,'*Insert:*\x20%0','\x22'+_0x28ffac['add']+'\x22')});continue;}_0x49d590['push']({'type':'deletion','content':c(_0x14da67,'*Remove:*\x20%0','\x22'+_0x28ffac['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x49d590['push']({'type':'insertion','content':c(_0x14da67,'*Insert:*\x20%0',this['getItemLabel'](_0x28ffac['element'],_0x28ffac['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x49d590['push']({'type':'deletion','content':c(_0x14da67,'*Remove:*\x20%0',this['getItemLabel'](_0x28ffac['element'],_0x28ffac['quantity']))});continue;case'addContainer':_0x49d590['push']({'type':'insertion','content':c(_0x14da67,'*Split:*\x20%0',this['getItemLabel'](_0x28ffac['element'],_0x28ffac['quantity']))});continue;case'removeContainer':_0x49d590['push']({'type':'deletion','content':c(_0x14da67,'*Merge:*\x20%0',this['getItemLabel'](_0x28ffac['element'],_0x28ffac['quantity']))});continue;case'addFormat':_0x61f985['push'](_0x28ffac['key']);continue;case'removeFormat':_0x46a006['push'](_0x28ffac['key']);continue;default:_0x49d590['push'](_0x28ffac);}if(_0x61f985['length']){const _0x10cf55=_0x61f985['map'](_0x53c40f=>this['_attributeLabels']['has'](_0x53c40f)?this['_attributeLabels']['get'](_0x53c40f):_0x53c40f)['join'](',\x20');_0x49d590['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x10cf55)});}if(_0x46a006['length']){const _0x1af44c=_0x46a006['map'](_0x45405c=>this['_attributeLabels']['has'](_0x45405c)?this['_attributeLabels']['get'](_0x45405c):_0x45405c)['join'](',\x20');_0x49d590['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x1af44c)});}return _0x49d590;}['_handleCustomCallbackDescription'](_0x4f3750){for(const _0x376298 of this['_customCallbacks']){const _0x47d5c9=_0x376298(_0x4f3750);if(_0x47d5c9&&'type'in _0x47d5c9)return _0x47d5c9;}}['_handleAttributeSuggestionDescription'](_0x378df8,_0x2d9298){const _0x4c16ee=_0x2d9298['data'],_0x3b7c04=void 0x0===_0x4c16ee['newValue']?'removeFormat':'addFormat';_0x378df8['push']({'type':_0x3b7c04,'key':_0x4c16ee['key']});}['_handleRenameSuggestionDescription'](_0x2ab8cc,_0x1c2e60){_0x2ab8cc['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x1c2e60['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0xb98c86,_0x31f3b4,_0x4ff5f8){if(this['_addDescriptionItems'](_0xb98c86,_0x31f3b4),_0x4ff5f8&&_0x4ff5f8['getFirstRange']()&&!_0x31f3b4['getFirstRange']()['end']['isEqual'](_0x4ff5f8['getFirstRange']()['start'])){const _0x3d3a98=_0xb98c86[_0xb98c86['length']-0x1],_0x405ccf='insertion'==_0x31f3b4['type']?'add':'remove';_0x3d3a98&&'text'==_0x3d3a98['type']&&(_0x3d3a98[_0x405ccf]+='\x0a');}}}class U extends _0x346e12{['afterInit'](){const _0x1aa6ca=this['editor'],_0x423977=_0x1aa6ca['plugins']['get']('TrackChangesEditing');_0x1aa6ca['commands']['get']('showAIAssistant')&&_0x423977['enableCommand']('showAIAssistant');}}class V extends _0x346e12{['afterInit'](){const _0x2be2bb=this['editor'],_0x15aaed=_0x2be2bb['locale'];if(!_0x2be2bb['plugins']['has']('AlignmentEditing'))return;const _0x477ebe=_0x2be2bb['plugins']['get']('TrackChangesEditing');_0x477ebe['enableDefaultAttributesIntegration']('alignment'),_0x477ebe['registerBlockAttribute']('alignment'),_0x477ebe['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x15aaed,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x202525=this['editor'],_0x45fc76=_0x202525['locale'];_0x202525['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x52e02a=>{if('formatBlock'!=_0x52e02a['type'])return;const {data:_0x52ed08}=_0x52e02a;if(_0x52ed08&&'alignment'==_0x52ed08['commandName']){const _0x5d4707=_0x52ed08['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x45fc76,'*Format:*\x20%0',function(_0x49c359){switch(_0x49c359){case'left':return c(_0x45fc76,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x45fc76,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x45fc76,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x45fc76,'FORMAT_JUSTIFY_TEXT');}}(_0x5d4707))};}});}}const Qt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x346e12{['afterInit'](){const _0x4c5373=this['editor'],_0x34a5c4=_0x4c5373['plugins']['get']('TrackChangesEditing'),_0x1b0ec0=_0x4c5373['locale'];for(const _0xe1e04a of Qt){if(!_0x4c5373['plugins']['has'](_0xe1e04a))continue;const _0x59aeb7=_0xe1e04a['slice'](0x0,-0x7)['toLowerCase'](),_0x4a124a='FORMAT_'+_0x59aeb7['toUpperCase']();_0x34a5c4['enableDefaultAttributesIntegration'](_0x59aeb7),_0x34a5c4['registerInlineAttribute'](_0x59aeb7),_0x34a5c4['descriptionFactory']['registerAttributeLabel'](_0x59aeb7,c(_0x1b0ec0,_0x4a124a));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x59bc24=this['editor'],_0x5242a9=_0x59bc24['locale'],_0x24967e=_0x59bc24['plugins']['get']('TrackChangesEditing');function _0x44be1a(_0x528212,_0x112afa){_0x24967e['descriptionFactory']['registerDescriptionCallback'](_0x32e271=>{if('formatInline'!=_0x32e271['type'])return;const {data:_0x17ab31}=_0x32e271;return _0x17ab31&&_0x17ab31['commandName']===_0x528212?_0x17ab31['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x5242a9,'*Format:*\x20%0',_0x112afa)}:{'type':'format','content':c(_0x5242a9,'*Remove\x20format:*\x20%0',_0x112afa)}:void 0x0;});}_0x44be1a('bold',c(_0x5242a9,'FORMAT_BOLD')),_0x44be1a('italic',c(_0x5242a9,'FORMAT_ITALIC')),_0x44be1a('underline',c(_0x5242a9,'FORMAT_UNDERLINE')),_0x44be1a('code',c(_0x5242a9,'FORMAT_CODE')),_0x44be1a('strikethrough',c(_0x5242a9,'FORMAT_STRIKETHROUGH')),_0x44be1a('subscript',c(_0x5242a9,'FORMAT_SUBSCRIPT')),_0x44be1a('superscript',c(_0x5242a9,'FORMAT_SUPERSCRIPT'));}}class G extends _0x346e12{['afterInit'](){const _0x3e75e9=this['editor'],_0x2f9cd1=_0x3e75e9['locale'];if(!_0x3e75e9['plugins']['has']('BlockQuoteEditing'))return;const _0x14468c=_0x3e75e9['plugins']['get']('TrackChangesEditing'),_0x4162d0=this['editor']['commands']['get']('blockQuote');_0x14468c['enableCommand']('blockQuote',(_0x46a1f8,_0x5c7363={})=>{const _0x5b8322=this['editor']['model']['document']['selection'],_0x20bfb4=_0x5c7363&&void 0x0!==_0x5c7363['forceValue']?_0x5c7363['forceValue']:!_0x4162d0['value'];let _0x3b5d24=[];if(_0x20bfb4){const _0x1c0f1c=Array['from'](_0x5b8322['getSelectedBlocks']())['filter'](_0x5c192f=>Yt(_0x5c192f)||function(_0x23305a,_0x1f858e){const _0x5595de=_0x1f858e['checkChild'](_0x23305a['parent'],'blockQuote'),_0x103f0a=_0x1f858e['checkChild'](['$root','blockQuote'],_0x23305a);return _0x5595de&&_0x103f0a;}(_0x5c192f,this['editor']['model']['schema']));_0x3b5d24=Xt(_0x1c0f1c,_0x3e75e9['model']);}else{const _0x53529c=Array['from'](_0x5b8322['getSelectedBlocks']())['filter'](_0x2f4fb5=>Yt(_0x2f4fb5));_0x3b5d24=Xt(_0x53529c,_0x3e75e9['model']);}_0x3e75e9['model']['change'](()=>{for(const _0x2544f of _0x3b5d24)_0x14468c['markBlockFormat'](_0x2544f,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x20bfb4}]});});}),_0x14468c['descriptionFactory']['registerDescriptionCallback'](_0xd16e46=>{const {data:_0x3e18da}=_0xd16e46;if(_0x3e18da&&'blockQuote'==_0x3e18da['commandName']){const _0x3a6fd7=c(_0x2f9cd1,'ELEMENT_BLOCK_QUOTE');return _0x3e18da['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x2f9cd1,'*Set\x20format:*\x20%0',_0x3a6fd7)}:{'type':'format','content':c(_0x2f9cd1,'*Remove\x20format:*\x20%0',_0x3a6fd7)};}});}}function Yt(_0x1c34d4){return'blockQuote'==_0x1c34d4['parent']['name'];}class L extends _0x346e12{['afterInit'](){const _0x43aed3=this['editor'],_0x1c1a12=_0x43aed3['locale'],_0x1224b6=_0x43aed3['plugins']['get']('TrackChangesEditing');_0x43aed3['plugins']['has']('BookmarkEditing')&&(_0x1224b6['enableCommand']('insertBookmark'),_0x1224b6['enableDefaultAttributesIntegration']('updateBookmark'),_0x1224b6['registerBlockAttribute']('bookmarkId'),_0x1224b6['descriptionFactory']['registerDescriptionCallback'](_0x3cff24=>{if('insertion'!=_0x3cff24['type']&&'deletion'!=_0x3cff24['type']&&'attribute'!=_0x3cff24['type'])return;const _0x1493c7=_0x3cff24['getContainedElement']();if(null==_0x1493c7)return;if(!_0x1493c7['is']('element','bookmark'))return;const _0xfc3f1b=_0x1493c7['getAttribute']('bookmarkId');if('insertion'==_0x3cff24['type'])return{'type':'insertion','content':c(_0x1c1a12,'*Insert:*\x20%0','\x22'+_0xfc3f1b+'\x22\x20'+c(_0x1c1a12,'ELEMENT_BOOKMARK'))};if('deletion'==_0x3cff24['type'])return{'type':'deletion','content':c(_0x1c1a12,'*Remove:*\x20%0','\x22'+_0xfc3f1b+'\x22\x20'+c(_0x1c1a12,'ELEMENT_BOOKMARK'))};const {data:_0x267750}=_0x3cff24;if(!_0x267750||'bookmarkId'!=_0x267750['key'])return;return{'type':'format','content':c(_0x1c1a12,'*Set\x20bookmark:*\x20%0','\x22'+_0x267750['newValue']+'\x22')};}));}}class J extends _0x346e12{['afterInit'](){const _0x357232=this['editor'];_0x357232['plugins']['has']('CaseChange')&&(_0x357232['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x357232['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x357232['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x346e12{['afterInit'](){const _0x518fd1=this['editor'];_0x518fd1['commands']['get']('ckbox')&&_0x518fd1['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x346e12{['afterInit'](){const _0x2108b8=this['editor'];if(!_0x2108b8['plugins']['has']('CodeBlock'))return;const _0x39b918=_0x2108b8['plugins']['get']('TrackChangesEditing'),_0x17798a=_0x2108b8['locale'],_0x103ecf=_0x2108b8['config']['get']('codeBlock')['languages'],_0x136754=_0x2108b8['commands']['get']('codeBlock');_0x39b918['enableCommand']('indentCodeBlock'),_0x39b918['enableCommand']('outdentCodeBlock'),_0x39b918['enableCommand']('codeBlock',(_0xfd490b,_0x2df2ac={})=>{const _0x529c44=_0x2108b8['model'],_0x24b3d2=_0x2108b8['model']['document']['selection'],_0x56d6b5=_0x2df2ac&&void 0x0!==_0x2df2ac['forceValue']?_0x2df2ac['forceValue']:!_0x136754['value'];let _0x30125e;_0x2df2ac['language']||(_0x2df2ac['language']=_0x103ecf[0x0]['language']),_0x30125e=_0x56d6b5?Array['from'](_0x24b3d2['getSelectedBlocks']())['filter'](_0x3bf160=>oo(_0x3bf160)||function(_0xa7500b,_0x59c5ea){if(_0xa7500b['is']('rootElement')||_0x59c5ea['isLimit'](_0xa7500b))return!0x1;return _0x59c5ea['checkChild'](_0xa7500b['parent'],'codeBlock');}(_0x3bf160,_0x529c44['schema'])):Array['from'](_0x24b3d2['getSelectedBlocks']())['filter'](_0xbd7e71=>oo(_0xbd7e71));const _0x5d2ec=Xt(_0x30125e,_0x529c44);_0x529c44['change'](()=>{for(const _0x48decc of _0x5d2ec)_0x39b918['markBlockFormat'](_0x48decc,{'commandName':'codeBlock','commandParams':[{..._0x2df2ac,'forceValue':_0x56d6b5}],'formatGroupId':'blockName'});});}),(_0x39b918['descriptionFactory']['registerElementLabel']('codeBlock',_0x53d467=>c(_0x17798a,'ELEMENT_CODE_BLOCK',_0x53d467)),_0x39b918['descriptionFactory']['registerDescriptionCallback'](_0x287d81=>{if('formatBlock'!=_0x287d81['type'])return;const _0x1cb2f1=_0x17798a['t'],{data:_0x4ef5a1}=_0x287d81;if(!_0x4ef5a1||'codeBlock'!=_0x4ef5a1['commandName'])return;const _0x4c4d42=_0x4ef5a1['commandParams'][0x0]['language'],_0x4b439d=_0x1cb2f1(_0x103ecf['find'](_0x24dd6e=>_0x24dd6e['language']===_0x4c4d42)['label'])['toLowerCase']();return _0x4ef5a1['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x17798a,'*Set\x20format:*\x20%0',c(_0x17798a,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x4b439d+')')}:{'type':'format','content':c(_0x17798a,'*Remove\x20format:*\x20%0',c(_0x17798a,'ELEMENT_CODE_BLOCK',0x1))};}));}}function oo(_0x27f378){return'codeBlock'==_0x27f378['name'];}class q extends _0x346e12{['afterInit'](){const _0x5610d7=this['editor'];if(!_0x5610d7['plugins']['has']('CommentsEditing'))return;_0x5610d7['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function no(_0x1322a7,_0x109193,_0x5d5cea){const _0x320693=[];for(const _0x4179f6 of _0x109193['getItems']())_0x4179f6['hasAttribute'](_0x1322a7)&&_0x320693['push'](_0x5d5cea['createRangeOn'](_0x4179f6));return _0x320693;}function De(_0x3d8b57,_0x3863dd,{showActiveMarker:_0x488351=!0x0}={}){const _0x2ad109=_0x3d8b57['plugins']['get']('TrackChangesEditing');return(_0x2ea205,_0x4d97dd,_0x44262f)=>{if(!_0x44262f['consumable']['test'](_0x4d97dd['markerRange'],_0x2ea205['name']))return;const _0x5943e8=_0x4d97dd['markerRange']['getWalker'](),_0x76b10d=_0x4d97dd['markerRange']['start'],_0x272287=_0x3d8b57['model']['schema'];let _0x290e4d=null,_0x1c6f5f=null,_0x572bef=!0x1,_0x58f4dc=!0x1;for(const _0x5859c2 of _0x5943e8){const _0x4e24c4=_0x5859c2['item'];_0x572bef=_0x572bef||_0x272287['isContent'](_0x4e24c4);const _0x293b25=_0x44262f['mapper']['toViewElement'](_0x4e24c4);if(_0x293b25&&_0x293b25['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5859c2['type']&&(_0x272287['isBlock'](_0x4e24c4)&&!_0x272287['isLimit'](_0x4e24c4)&&(_0x4e24c4['nextSibling']||_0x76b10d['isAtEnd']?_0x290e4d&&_0x290e4d['parent']==_0x4e24c4||(_0x290e4d=_0x4e24c4,_0x91273a(_0x5859c2['previousPosition']),_0x58f4dc=!0x0):_0x1c6f5f=_0x1c6f5f||_0x5859c2['previousPosition']));}function _0x91273a(_0x52403c){const {authorId:_0x1a2949}=_0x2ad109['_splitMarkerName'](_0x4d97dd['markerName']),_0x28771f=_0x44262f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3863dd,'data-author-id':_0x1a2949}),_0x226475=_0x44262f['mapper']['toViewPosition'](_0x52403c);_0x488351&&_0x2ad109['activeMarkers']['includes'](_0x4d97dd['markerName'])&&_0x44262f['writer']['addClass']('ck-suggestion-marker--active',_0x28771f),_0x44262f['writer']['insert'](_0x226475,_0x28771f),_0x44262f['mapper']['bindElementToMarker'](_0x28771f,_0x4d97dd['markerName']);}_0x572bef||_0x58f4dc||!_0x1c6f5f||_0x91273a(_0x1c6f5f);};}class z extends _0x346e12{static get['requires'](){return[_0x531492];}['init'](){const _0x4167de=this['editor'],_0x2ed96d=_0x4167de['plugins']['get']('TrackChangesEditing');_0x2ed96d['enableCommand']('delete');const _0x50872f=_0x4167de['commands']['get']('deleteForward');_0x2ed96d['enableCommand']('deleteForward',(_0x1fe122,_0xce1d28={})=>{const _0x5871af=_0x4167de['model']['createSelection'](_0x4167de['model']['document']['selection']);_0x5871af['isCollapsed']&&_0x4167de['model']['modifySelection'](_0x5871af,{'direction':'forward','unit':_0xce1d28['unit']});const _0x52d8a6=_0x5871af['getFirstRange'](),_0x3a0db5=_0x33a55c['fromRange'](_0x52d8a6);let _0x5118ed;_0x1fe122(_0xce1d28),_0x5118ed='$graveyard'==_0x3a0db5['root']['rootName']?_0x4167de['model']['createRange'](_0x52d8a6['start']):_0x4167de['model']['createRange'](_0x3a0db5['start'],_0x3a0db5['end']),_0x3a0db5['detach'](),_0x4167de['model']['enqueueChange'](_0x50872f['buffer']['batch'],_0x5accc0=>{_0x50872f['buffer']['lock'](),_0x5accc0['setSelection'](_0x5accc0['createRange'](_0x5118ed['end'])),_0x50872f['buffer']['unlock']();});}),_0x4167de['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x4167de,'merge'),{'priority':'high'}),_0x4167de['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x1723f1,_0x3511df,_0x5ecb25)=>{_0x5ecb25['options']['showSuggestionHighlights']&&De(_0x4167de,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x1723f1,_0x3511df,_0x5ecb25);},{'priority':'high'}),_0x4167de['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x310ceb,_0x1e3cd0,_0x272b16)=>{const _0x286054=_0x272b16['mapper']['markerNameToElements'](_0x1e3cd0['markerName']);if(_0x286054){for(const _0x10b08e of _0x286054)_0x10b08e['is']('uiElement')&&(_0x272b16['mapper']['unbindElementFromMarkerName'](_0x10b08e,_0x1e3cd0['markerName']),_0x272b16['writer']['remove'](_0x10b08e));}},{'priority':'high'});}}class W extends _0x346e12{['afterInit'](){const _0xf39d20=this['editor'];if(!_0xf39d20['plugins']['has']('ListEditing'))return;const _0x106c27=_0xf39d20['locale'],_0x518f40=_0xf39d20['plugins']['get']('TrackChangesEditing'),_0x50c19b=_0xf39d20['plugins']['has']('TodoListEditing'),_0x2f4105=!!_0xf39d20['config']['get']('list.multiBlock');function _0x5bd121(_0x175628){return{'type':'format','content':''+c(_0x106c27,'*Set\x20format:*\x20%0',_0x175628)};}function _0x16c3be(_0x26cc3c){return{'type':'format','content':''+c(_0x106c27,'*Remove\x20format:*\x20%0',_0x26cc3c)};}_0x518f40['enableDefaultAttributesIntegration']('numberedList'),_0x518f40['enableDefaultAttributesIntegration']('bulletedList'),_0x518f40['enableDefaultAttributesIntegration']('customNumberedList'),_0x518f40['enableDefaultAttributesIntegration']('customBulletedList'),_0x518f40['enableDefaultAttributesIntegration']('indentList'),_0x518f40['enableDefaultAttributesIntegration']('outdentList'),_0x518f40['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x518f40['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x518f40['registerBlockAttribute']('listItemId'),_0x518f40['registerBlockAttribute']('listType'),_0x518f40['registerBlockAttribute']('listIndent'),_0x2f4105&&(_0x518f40['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x518f40['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x50c19b&&(_0x518f40['enableDefaultAttributesIntegration']('todoList'),_0x518f40['enableDefaultAttributesIntegration']('checkTodoList'),_0x518f40['registerBlockAttribute']('todoListChecked'),_0x518f40['descriptionFactory']['registerDescriptionCallback'](_0x33190f=>{const {data:_0x32cecf}=_0x33190f;if(_0x32cecf&&'todoListChecked'==_0x32cecf['key'])return{'type':'format','content':_0x32cecf['newValue']?c(_0x106c27,'*Check\x20item*'):c(_0x106c27,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x138a07=>{if(_0x138a07['batch']['isUndo'])return!0x1;let _0x241546=!0x1;const _0x2b9cdc=_0x518f40['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x434563=>'todoListChecked'===_0x518f40['_getAttributeKey'](_0x434563));for(const _0xc5d03d of _0x2b9cdc){'todo'!=_0xc5d03d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x518f40['_findSuggestions'](_0xc5d03d['getFirstRange'](),'attribute')['find'](_0x599248=>'listType'===_0x518f40['_getAttributeKey'](_0x599248['suggestion']))||(_0x138a07['removeMarker'](_0xc5d03d['getFirstMarker']()),_0x241546=!0x0));}return _0x241546;})),_0x518f40['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x106c27,'FORMAT_INDENT'));const _0xc75e67={'type':'format','content':''};_0x518f40['descriptionFactory']['registerDescriptionCallback'](_0xb396c9=>{const {data:_0x1b22e7}=_0xb396c9;if(!_0x1b22e7||'listType'!=_0x1b22e7['key'])return;let _0x4b7c32=_0xb396c9['head'];for(;_0x4b7c32;){if(_0x4b7c32['data']&&(('listStyle'==_0x4b7c32['data']['key']||'listMarkerStyle'==_0x4b7c32['data']['key'])&&(_0x4b7c32['data']['newValue']&&'default'!=_0x4b7c32['data']['newValue']||'default'!=_0x4b7c32['data']['oldValue']&&!_0x1b22e7['newValue'])||!_0x2f4105&&_0x4b7c32['data']['key']==u))return _0xc75e67;_0x4b7c32=_0x4b7c32['next'];}if(null==_0x1b22e7['newValue'])switch(_0x1b22e7['oldValue']){case'bulleted':return _0x16c3be(c(_0x106c27,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x16c3be(c(_0x106c27,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x16c3be(c(_0x106c27,'ELEMENT_TODO_LIST'));}switch(_0x1b22e7['newValue']){case'bulleted':return _0x5bd121(c(_0x106c27,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5bd121(c(_0x106c27,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5bd121(c(_0x106c27,'ELEMENT_TODO_LIST'));}}),_0x518f40['descriptionFactory']['registerDescriptionCallback'](_0x17f770=>{const {data:_0x44ae7a}=_0x17f770;if(_0x44ae7a&&'listIndent'==_0x44ae7a['key'])return null==_0x44ae7a['newValue']||null==_0x44ae7a['oldValue']&&0x0==_0x44ae7a['newValue']?_0xc75e67:void 0x0;}),_0x518f40['descriptionFactory']['registerDescriptionCallback'](_0x43a741=>{if('attribute'!=_0x43a741['type'])return;const {data:_0x2ff3f6}=_0x43a741;if(!_0x2ff3f6||'listItemId'!=_0x2ff3f6['key'])return;const _0x54b3b5=Te(_0x43a741);return'newValue'==_0x54b3b5?{'type':'format','content':c(_0x106c27,'*Merge:*\x20list\x20item')}:'oldValue'==_0x54b3b5?{'type':'format','content':c(_0x106c27,'*Split:*\x20list\x20item')}:_0xc75e67;}),_0xf39d20['model']['document']['registerPostFixer'](_0x192da0=>this['listItemIdFixer'](_0x192da0)),_0xf39d20['model']['document']['registerPostFixer'](_0xc0633b=>this['noTrackChangesFixer'](_0xc0633b)),_0xf39d20['model']['document']['on']('change:data',(_0x5a7fdd,_0x5708f9)=>{if(_0x5708f9['isUndo']||!_0x5708f9['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x2c985f){if(_0x2c985f['batch']['isUndo']||!_0x2c985f['batch']['isLocal'])return!0x1;let _0x40f473=!0x1;const _0x106f2e=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3a8a3f=>_0x3a8a3f['data']&&'listItemId'==_0x3a8a3f['data']['key'])['filter'](_0x13acd7=>_0x13acd7['data']['newValue']&&_0x13acd7['data']['oldValue']);for(const _0x2d6d0c of _0x106f2e)Te(_0x2d6d0c)||(_0x2c985f['removeMarker'](_0x2d6d0c['getFirstMarker']()),_0x40f473=!0x0);return _0x40f473;}['noTrackChangesFixer'](_0x5f1eb4){if(_0x5f1eb4['batch']['isUndo']||!_0x5f1eb4['batch']['isLocal'])return!0x1;const _0x2283a9=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x2283a9['trackChangesCommand']['value'])return!0x1;let _0xa5d1b4=!0x1;const _0x312dd3=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x468aa8=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x47108a=>'attribute'==_0x47108a['type'])['filter'](_0x175075=>_0x312dd3['includes'](_0x175075['attributeKey']));if(0x0==_0x468aa8['length'])return _0xa5d1b4;for(const _0x39a4cc of _0x468aa8){const _0x1f5459=_0x2283a9['_findSuggestions'](_0x39a4cc['range'],'attribute')['filter'](_0x99d7e1=>!_0x99d7e1['meta']['isNextTo'])['map'](_0x3a30e1=>_0x3a30e1['suggestion'])['filter'](_0x5236fe=>{const _0xbcd152=_0x2283a9['_getAttributeKey'](_0x5236fe);return _0x312dd3['includes'](_0xbcd152);});if(_0x1f5459['length']){for(const _0x139258 of _0x1f5459)_0x5f1eb4['removeMarker'](_0x139258['getFirstMarker']());_0xa5d1b4=!0x0;}}return _0xa5d1b4;}['assureChains'](){const _0x49154e=this['editor']['plugins']['get']('TrackChangesEditing'),_0xdcc592=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x1ea650;const _0x49212b=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x114a42=>{if(_0x114a42['data']['oldRange']||!_0x114a42['data']['newRange'])return null;if(!_0x114a42['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x53b53b}=_0x49154e['_splitMarkerName'](_0x114a42['name']);if(!_0x49154e['hasSuggestion'](_0x53b53b))return null;const _0x507ae6=_0x49154e['getSuggestion'](_0x53b53b);return _0xdcc592['includes'](_0x507ae6['data']['key']);})['map'](_0x39a759=>{const {id:_0x328b95}=_0x49154e['_splitMarkerName'](_0x39a759['name']),_0x295165=_0x49154e['getSuggestion'](_0x328b95);return _0x1ea650=_0x295165['attributes']['groupId'],_0x295165['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x49212b['size'])return;const _0x371524=_0x49154e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3c21f3=>'attribute'==_0x3c21f3['type']&&_0x3c21f3['data']&&_0xdcc592['includes'](_0x3c21f3['data']['key'])&&_0x3c21f3['attributes']['groupId']!=_0x1ea650)['map'](_0x499008=>({'listItem':_0x499008['getFirstRange']()['start']['nodeAfter'],'groupId':_0x499008['attributes']['groupId']})),_0x452219=new Set();for(const {groupId:_0x805a7e,listItem:_0x402568}of _0x371524)_0x49212b['has'](_0x402568)&&_0x452219['add'](_0x805a7e);for(const _0x5c92ed of _0x49154e['getSuggestions']())_0x452219['has'](_0x5c92ed['attributes']['groupId'])&&_0x5c92ed['setAttribute']('groupId',_0x1ea650);}['_supportLegacySuggestions'](){const _0x82c696=this['editor'],_0x728bc1=_0x82c696['locale'],_0x502844=_0x82c696['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x502844['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x53fbb2,_0x1a31e0){const _0x225f3b=[];for(let _0x4fc3dc of _0x53fbb2)_0x4fc3dc['start']['nodeAfter']===_0x4fc3dc['end']['parent']&&(_0x4fc3dc=_0x82c696['model']['createRange'](_0x82c696['model']['createPositionAt'](_0x4fc3dc['start']['nodeAfter'],0x0))),_0x225f3b['push'](_0x4fc3dc);_0x82c696['model']['change'](_0x48c535=>{const _0x54506c=_0x82c696['model']['document']['selection'],_0xd66239=Array['from'](_0x54506c['getRanges']())['map'](_0x1c53da=>_0x33a55c['fromRange'](_0x1c53da));_0x48c535['setSelection'](_0x225f3b),_0x82c696['commands']['get'](_0x1a31e0['commandName'])['refresh'](),_0x1a31e0['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x82c696['execute'](_0x1a31e0['commandName'],..._0x1a31e0['commandParams']),_0x48c535['setSelection'](_0xd66239);for(const _0x15c6f7 of _0xd66239)_0x15c6f7['detach']();});}),_0x502844['descriptionFactory']['registerElementLabel'](function(_0x5548a5){const _0x532fc5=!_0x82c696['model']['schema']['isObject'](_0x5548a5),_0x43a47e=_0x5548a5['previousSibling'],_0x1409a2=_0x5548a5['nextSibling'],_0x1f4337=_0x5548a5['getAttribute']('listItemId'),_0x1e03dd=!_0x43a47e||_0x43a47e['getAttribute']('listItemId')!==_0x1f4337,_0x2ae20a=!_0x1409a2||_0x1409a2['getAttribute']('listItemId')!==_0x1f4337;return _0x532fc5&&Boolean(_0x1f4337)&&_0x1e03dd&&_0x2ae20a;},_0x500fe7=>c(_0x728bc1,'ELEMENT_LIST_ITEM',_0x500fe7));}['_registerLegacyDescription'](){const _0x45ddd3=this['editor'],_0x17dc13=_0x45ddd3['locale'];function _0x37c571(_0x2f64aa){const _0x578109=_0x45ddd3['commands']['get']('bulletedList')['value'],_0x4aa407=_0x45ddd3['commands']['get']('numberedList')['value'];return'numberedList'===_0x2f64aa?_0x578109:_0x4aa407;}_0x45ddd3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x53d2b5){if('formatBlock'!=_0x53d2b5['type'])return;const {data:_0x14d30a}=_0x53d2b5;if(!_0x14d30a)return;let _0x57856e,_0x3136f3,_0x288630,_0x1b2fd8;switch(_0x14d30a['commandName']){case'bulletedList':_0x288630=_0x14d30a['commandParams'][0x0]['forceValue'],_0x1b2fd8=_0x37c571(_0x14d30a['commandName']),_0x57856e=_0x288630?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1b2fd8&&_0x45ddd3['config']['get']('list.multiBlock')||(_0x57856e='*Change\x20to:*\x20%0'),_0x3136f3={'type':'format','content':c(_0x17dc13,_0x57856e,c(_0x17dc13,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x288630=_0x14d30a['commandParams'][0x0]['forceValue'],_0x1b2fd8=_0x37c571(_0x14d30a['commandName']),_0x57856e=_0x288630?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1b2fd8&&_0x45ddd3['config']['get']('list.multiBlock')||(_0x57856e='*Change\x20to:*\x20%0'),_0x3136f3={'type':'format','content':c(_0x17dc13,_0x57856e,c(_0x17dc13,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x57856e='*Indent:*\x20%0',_0x3136f3={'type':'format','content':c(_0x17dc13,_0x57856e,c(_0x17dc13,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x57856e=function(_0x4e643b){const _0x33045a=_0x4e643b['getFirstRange']();let _0x2b24af=_0x33045a['start']['nodeAfter'];for(;_0x2b24af&&_0x33045a['containsItem'](_0x2b24af);){if(_0x2b24af['getAttribute']('listIndent')>0x0)return!0x1;_0x2b24af=_0x2b24af['nextSibling'];}return!0x0;}(_0x53d2b5)?c(_0x17dc13,'*Format:*\x20remove\x20from\x20%0',c(_0x17dc13,function(_0x37e743){return'ELEMENT_'+_0x37e743['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x53d2b5))):c(_0x17dc13,'*Outdent:*\x20%0',c(_0x17dc13,'ELEMENT_LIST_ITEM')),_0x3136f3={'type':'format','content':_0x57856e};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x14d30a['multipleBlocks']&&(_0x57856e='*Merge:*\x20%0',_0x3136f3={'type':'deletion','content':c(_0x17dc13,_0x57856e,c(_0x17dc13,'ELEMENT_LIST_ITEM'))});}return _0x3136f3;});}}function Te(_0x34beb7){let _0x18303c=_0x34beb7['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x18303c;){const _0x5bac06=_0x18303c['getAttribute']('listItemId');if(!_0x5bac06)return!0x1;if(_0x5bac06==_0x34beb7['data']['newValue'])return'newValue';if(_0x5bac06==_0x34beb7['data']['oldValue'])return'oldValue';_0x18303c=_0x18303c['previousSibling'];}return!0x1;}class Se extends _0x346e12{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0xf552e6=this['editor']['config']['get']('list.properties'),_0x529d02=this['editor']['plugins']['get']('TrackChangesEditing');_0xf552e6['styles']&&(_0x529d02['enableDefaultAttributesIntegration']('listStyle'),_0x529d02['registerBlockAttribute']('listStyle')),_0xf552e6['reversed']&&(_0x529d02['enableDefaultAttributesIntegration']('listReversed'),_0x529d02['registerBlockAttribute']('listReversed')),_0xf552e6['startIndex']&&(_0x529d02['enableDefaultAttributesIntegration']('listStart'),_0x529d02['registerBlockAttribute']('listStart'));const _0xb42b12={'type':'format','content':''};_0x529d02['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x3c2451=this['editor']['locale'];_0x529d02['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x3c2451,'FORMAT_LIST_REVERSED')),_0x529d02['descriptionFactory']['registerDescriptionCallback'](_0x14a7c4=>{const {data:_0x59d0da}=_0x14a7c4;if(_0x59d0da&&'listReversed'==_0x59d0da['key'])return null==_0x59d0da['newValue']||0x0==_0x59d0da['newValue']&&null==_0x59d0da['oldValue']?_0xb42b12:void 0x0;}),_0x529d02['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x3c2451,'FORMAT_LIST_START')),_0x529d02['descriptionFactory']['registerDescriptionCallback'](_0x58729a=>{const {data:_0xf97bc4}=_0x58729a;if(_0xf97bc4&&'listStart'==_0xf97bc4['key'])return null==_0xf97bc4['newValue']||0x1==_0xf97bc4['newValue']&&null==_0xf97bc4['oldValue']?_0xb42b12:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x542378=>{if(_0x542378['batch']['isUndo'])return!0x1;let _0x186da5=!0x1;const _0x44671a=_0x529d02['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3c6dbc=>{const _0x1681b7=_0x529d02['_getAttributeKey'](_0x3c6dbc);return'listStart'==_0x1681b7||'listReversed'==_0x1681b7;});for(const _0x23bff9 of _0x44671a){const _0x46953d=_0x23bff9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x46953d||'customNumbered'==_0x46953d)continue;_0x529d02['_findSuggestions'](_0x23bff9['getFirstRange'](),'attribute')['find'](_0x8cf6b8=>'listType'==_0x529d02['_getAttributeKey'](_0x8cf6b8['suggestion']))||(_0x542378['removeMarker'](_0x23bff9['getFirstMarker']()),_0x186da5=!0x0);}return _0x186da5;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x4e657e){const _0x3171c0=this['editor']['locale'],{data:_0x259488}=_0x4e657e,_0x4116b2={'type':'format','content':''};if(!_0x259488||'listStyle'!=_0x259488['key'])return;if(!_0x259488['oldValue'])return'default'==_0x259488['newValue']?_0x4116b2:{'type':'format','content':''+c(_0x3171c0,'*Set\x20format:*\x20%0',c(_0x3171c0,this['_getTranslationKeyForListStyle'](_0x259488['newValue'])))};if(!_0x259488['newValue']){if('default'==_0x259488['oldValue'])return _0x4116b2;let _0x40639f=_0x4e657e['head'];for(;_0x40639f;){if(_0x40639f['data']&&'listType'==_0x40639f['data']['key']&&_0x40639f['data']['newValue'])return _0x4116b2;_0x40639f=_0x40639f['next'];}return{'type':'format','content':''+c(_0x3171c0,'*Remove\x20format:*\x20%0',c(_0x3171c0,this['_getTranslationKeyForListStyle'](_0x259488['oldValue'])))};}if('default'!=_0x259488['newValue'])return{'type':'format','content':''+c(_0x3171c0,'*Set\x20format:*\x20%0',c(_0x3171c0,this['_getTranslationKeyForListStyle'](_0x259488['newValue'])))};let _0x33ae91=_0x4e657e['head'];for(;_0x33ae91;){if(_0x33ae91['data']&&'listType'==_0x33ae91['data']['key']&&_0x33ae91['data']['newValue']&&_0x33ae91['data']['oldValue'])return _0x4116b2;_0x33ae91=_0x33ae91['next'];}return{'type':'format','content':c(_0x3171c0,'*Set\x20format:*\x20%0',c(_0x3171c0,'ELEMENT_'+_0x4e657e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1a2cd4=this['editor'],_0x17158=_0x1a2cd4['locale'];_0x1a2cd4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x48f44b=>{if('formatBlock'!=_0x48f44b['type'])return;const {data:_0x46f1c0}=_0x48f44b;if(!_0x46f1c0)return;let _0xd64884,_0x1a66fa;switch(_0x46f1c0['commandName']){case'listStyle':_0xd64884='*Change\x20to:*\x20%0',_0x1a66fa={'type':'format','content':c(_0x17158,_0xd64884,c(_0x17158,this['_getTranslationKeyForListStyle'](_0x46f1c0['commandParams'][0x0]['type'])))};break;case'listReversed':_0xd64884=_0x46f1c0['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1a66fa={'type':'format','content':c(_0x17158,_0xd64884)};break;case'listStart':_0xd64884='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1a66fa={'type':'format','content':c(_0x17158,_0xd64884,_0x46f1c0['commandParams'][0x0]['startIndex'])};}return _0x1a66fa;});}['_getTranslationKeyForListStyle'](_0x2a3412){return'ELEMENT_'+function(_0x3aec46){if(_e['includes'](_0x3aec46))return'bulleted';if(Re['includes'](_0x3aec46))return'numbered';return null;}(_0x2a3412)['toUpperCase']()+'_LIST_'+_0x2a3412['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x346e12{static get['requires'](){return[_0x561c61];}['init'](){const _0x4c2674=this['editor'],_0x17d521=_0x4c2674['plugins']['get']('TrackChangesEditing'),_0x2bda3a=_0x4c2674['commands']['get']('enter');_0x17d521['enableCommand']('enter',()=>{_0x4c2674['model']['change'](_0x47805f=>{const _0x48c91e=_0x4c2674['model']['document']['selection'],_0xa60fd2=_0x48c91e['getFirstPosition'](),_0x111f81=_0x33a55c['fromRange'](_0x48c91e['getFirstRange']());if(_0x2bda3a['enterBlock'](_0x47805f)){const _0x487922=_0x4c2674['model']['createPositionAt'](_0xa60fd2['parent']['nextSibling'],0x0),_0x2da5f5=_0x47805f['createRange'](_0xa60fd2,_0x487922);_0x17d521['markInsertion'](_0x2da5f5);}else _0x47805f['setSelection'](_0x47805f['createRange'](_0x111f81['end']));_0x111f81['detach'](),_0x2bda3a['fire']('afterExecute',{'writer':_0x47805f});});}),_0x4c2674['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x4c2674,'split'),{'priority':'high'}),_0x4c2674['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x2f7ac2,_0x230ba7,_0x41a19f)=>{const _0x126d1d=_0x41a19f['mapper']['markerNameToElements'](_0x230ba7['markerName']);if(_0x126d1d){for(const _0xc3823c of _0x126d1d)_0xc3823c['hasClass']('ck-suggestion-marker-split')&&(_0x41a19f['mapper']['unbindElementFromMarkerName'](_0xc3823c,_0x230ba7['markerName']),_0x41a19f['writer']['remove'](_0xc3823c));}},{'priority':'high'}),_0x4c2674['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x25d704,_0x5422bf,_0x3b445e)=>{_0x3b445e['options']['showSuggestionHighlights']&&De(_0x4c2674,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x25d704,_0x5422bf,_0x3b445e);},{'priority':'high'});}}class Y extends _0x346e12{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x31b7cf=this['editor']['plugins']['get']('TrackChangesEditing');_0x31b7cf['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x31b7cf['enableCommand']('findNext'),_0x31b7cf['enableCommand']('findPrevious'),_0x31b7cf['enableCommand']('replace'),_0x31b7cf['enableCommand']('replaceAll');}['handleFindCommand'](_0x4db189,_0x38da74,_0x54dddf={}){const _0x464ace=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x4db189(_0x2ff262=>{let _0x4ab9ae=('string'==typeof _0x38da74?_0x464ace['findByTextCallback'](_0x38da74,_0x54dddf):_0x38da74)(_0x2ff262);Array['isArray'](_0x4ab9ae)&&(_0x4ab9ae={'results':_0x4ab9ae,'searchText':'string'==typeof _0x38da74?_0x38da74:''});const _0x299a34=_0x4ab9ae['results']['filter'](_0x4f7054=>!0x1===this['_isInDeletionRange'](_0x4f7054,_0x2ff262['item']));return{..._0x4ab9ae,'results':_0x299a34};},_0x54dddf);}['_isInDeletionRange'](_0x34648c,_0x58c285){const _0x25dc7f=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x58c285,_0x34648c['start']),this['editor']['model']['createPositionAt'](_0x58c285,_0x34648c['end']));for(const _0x4f93df of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x25dc7f['getIntersection'](_0x4f93df['getRange']()))return!0x0;return!0x1;}}const to=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x346e12{['afterInit'](){const _0x475dca=this['editor']['locale'],_0xc5744=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x121566,commandName:_0x3bf266}of to)this['editor']['plugins']['has'](_0x121566)&&(_0xc5744['enableDefaultAttributesIntegration'](_0x3bf266),_0xc5744['registerInlineAttribute'](_0x3bf266));_0xc5744['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x475dca,'FORMAT_FONT_SIZE')),_0xc5744['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x475dca,'FORMAT_FONT_FAMILY')),_0xc5744['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x475dca,'FORMAT_FONT_COLOR')),_0xc5744['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x475dca,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x478d72=this['editor'],_0x84a624=_0x478d72['locale'];_0x478d72['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ae8d9=>{const _0x590510=_0x84a624['t'];if('formatInline'!=_0x3ae8d9['type'])return;const {data:_0x3e7be4}=_0x3ae8d9;if(null!=_0x3e7be4){if('fontSize'==_0x3e7be4['commandName']){const _0x3174a3=_0x3e7be4['commandParams'][0x0]['value'];if(_0x3174a3){const _0x376c82=_0x590510(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x31a5d3=>_0x31a5d3['model']==_0x3174a3)['title'])['toLowerCase']();return{'type':'format','content':c(_0x84a624,'*Set\x20font\x20size:*\x20%0',_0x376c82)};}return{'type':'format','content':c(_0x84a624,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x3e7be4['commandName']){const _0x42bbb4=_0x3e7be4['commandParams'][0x0]['value'];return _0x42bbb4?{'type':'format','content':c(_0x84a624,'*Set\x20font\x20family:*\x20%0',_0x42bbb4)}:{'type':'format','content':c(_0x84a624,'*Reset\x20font\x20family*')};}if('fontColor'==_0x3e7be4['commandName']){const _0x14d297=_0x3e7be4['commandParams'][0x0]['value'];if(_0x14d297){const _0x31044f=Zt(this['editor']['config']['get']('fontColor.colors'))['find'](_0x4b0b4b=>_0x4b0b4b['model']==_0x14d297);let _0x4f0920=_0x14d297,_0xcef1e7='';return _0x31044f&&(_0x4f0920=_0x31044f['label'],_0xcef1e7=_0x590510(_0x4f0920)['toLowerCase']()),{'type':'format','content':c(_0x84a624,'*Set\x20font\x20color:*\x20%0',_0xcef1e7)['trim'](),'color':{'value':_0x14d297,'title':_0xcef1e7||_0x4f0920}};}return{'type':'format','content':c(_0x84a624,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x3e7be4['commandName']){const _0x66c000=_0x3e7be4['commandParams'][0x0]['value'];if(_0x66c000){const _0x552836=Zt(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x2db6d9=>_0x2db6d9['model']==_0x66c000);let _0x372026=_0x66c000,_0x33c10e='';return _0x552836&&(_0x372026=_0x552836['label'],_0x33c10e=_0x590510(_0x372026)['toLowerCase']()),{'type':'format','content':c(_0x84a624,'*Set\x20font\x20background\x20color:*\x20%0',_0x33c10e)['trim'](),'color':{'value':_0x66c000,'title':_0x33c10e||_0x372026}};}return{'type':'format','content':c(_0x84a624,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x346e12{['afterInit'](){const _0x5a46ae=this['editor'],_0x510d78=_0x5a46ae['plugins']['get']('TrackChangesEditing'),_0x3e88cd=_0x5a46ae['commands']['get']('copyFormat'),_0xfe7271=_0x5a46ae['commands']['get']('pasteFormat');_0x3e88cd&&_0xfe7271&&(_0x510d78['enableDefaultAttributesIntegration']('pasteFormat'),_0x510d78['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0xf0f3f=this['editor'],_0x29dc4a=_0xf0f3f['locale'];_0xf0f3f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b4ad6=>{if('formatBlock'!=_0x3b4ad6['type']&&'formatInline'!=_0x3b4ad6['type'])return;const {data:_0x5bc0e1}=_0x3b4ad6;if(_0x5bc0e1&&'pasteFormat'===_0x5bc0e1['commandName']){const _0xb9cea8=[],_0x52e744=_0x5bc0e1['commandParams'][0x0];for(const [_0xb02ce0,_0x1aa488]of Object['entries'](_0x52e744))_0xb9cea8['push'](ro(_0xf0f3f,_0xb02ce0,_0x1aa488));return _0xb9cea8['length']?{'type':'format','content':c(_0x29dc4a,'*Set\x20format\x20to:*\x20%0',_0xb9cea8['join'](',\x20'))}:{'type':'format','content':c(_0x29dc4a,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x59779c,_0x1e5def,_0x3e3a7a){const _0x122896=_0x59779c['locale']['t'],_0x26e90e=_0x1e5def['split'](/(?=[A-Z])/)['join']('\x20'),_0x38ac5b=_0x122896(_0x26e90e['charAt'](0x0)['toUpperCase']()+_0x26e90e['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x3e3a7a)return _0x38ac5b;if('fontColor'===_0x1e5def||'fontBackgroundColor'===_0x1e5def){const _0x17286a=Zt(_0x59779c['config']['get']('fontColor.colors'))['find'](_0x24a21e=>_0x24a21e['model']==_0x3e3a7a);return _0x38ac5b+'\x20('+(_0x17286a?_0x122896(_0x17286a['label'])['toLowerCase']():_0x3e3a7a)+')';}if('fontSize'===_0x1e5def&&isNaN(parseFloat(_0x3e3a7a))){const _0x11f04f=_0x59779c['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x59779c['config']['get']('fontSize.options'))['find'](_0x2ef10c=>_0x2ef10c['model']==_0x3e3a7a);return _0x38ac5b+'\x20('+(_0x11f04f?_0x122896(_0x11f04f['title'])['toLowerCase']():_0x3e3a7a)+')';}return _0x38ac5b+'\x20('+_0x3e3a7a+')';}class et extends _0x346e12{['_headingOptions'];['afterInit'](){const _0x441e73=this['editor'];if(!_0x441e73['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x441e73['config']['get']('heading.options');const _0xf1603=_0x441e73['locale'],_0x1ae735=_0x441e73['plugins']['get']('TrackChangesEditing');_0x1ae735['enableDefaultAttributesIntegration']('heading');for(const _0xc7d6db of this['_headingOptions'])'paragraph'!=_0xc7d6db['model']&&_0x1ae735['descriptionFactory']['registerElementLabel'](_0xc7d6db['model'],_0x370c09=>{const _0x287fe5=this['_getHeadingLevel'](_0xc7d6db['model']);return null!==_0x287fe5?_0x11e5ac(_0x370c09,_0x287fe5):_0x475da0(_0x370c09,_0xc7d6db['title']);});function _0x11e5ac(_0x8ce22d,_0x44ff1e){return c(_0xf1603,'ELEMENT_HEADING',[_0x8ce22d,_0x44ff1e]);}function _0x475da0(_0x5e5dfd,_0xce03b1){return c(_0xf1603,'ELEMENT_HEADING_CUSTOM',[_0x5e5dfd,_0xce03b1]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3e938d=this['editor'],_0x319ecd=_0x3e938d['locale'];function _0x125322(_0x2f0d34,_0x14614d){return c(_0x319ecd,'ELEMENT_HEADING_CUSTOM',[_0x2f0d34,_0x14614d]);}_0x3e938d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c1d0c=>{if('formatBlock'!=_0x5c1d0c['type'])return;const {data:_0x4a830f}=_0x5c1d0c;if(_0x4a830f&&'heading'==_0x4a830f['commandName']){const _0x3e98d6=_0x4a830f['commandParams'][0x0]['value'],_0x37abfc=this['_getHeadingLevel'](_0x3e98d6);if(null!==_0x37abfc)return{'type':'format','content':c(_0x319ecd,'*Change\x20to:*\x20%0',(_0x4bf65a=0x1,_0x4137db=_0x37abfc,c(_0x319ecd,'ELEMENT_HEADING',[_0x4bf65a,_0x4137db])))};const _0x45706a=this['_headingOptions']['find'](_0x2dccdd=>_0x2dccdd['model']===_0x3e98d6)['title'];return{'type':'format','content':c(_0x319ecd,'*Change\x20to:*\x20%0',_0x125322(0x1,_0x45706a))};}var _0x4bf65a,_0x4137db;});}['_getHeadingLevel'](_0x5314c0){const _0x21dddb=_0x5314c0['match'](/^heading(\d+)/);if(_0x21dddb)return _0x21dddb[0x1];const _0x57281b=this['_headingOptions']?.['find'](_0x169404=>_0x169404['model']==_0x5314c0);if(_0x57281b&&_0x57281b['view']){const _0x3e78a2=_0x57281b['view'],_0xe1d356=(_0x3e78a2['name']??_0x3e78a2)['match'](/^h(\d+)/);if(_0xe1d356)return _0xe1d356[0x1];}return null;}}class nt extends _0x346e12{['afterInit'](){const _0x1bac52=this['editor'];if(!_0x1bac52['plugins']['has']('HighlightEditing'))return;const _0xc72c5=_0x1bac52['plugins']['get']('TrackChangesEditing'),_0x21b53f=_0x1bac52['locale'];_0xc72c5['enableDefaultAttributesIntegration']('highlight'),_0xc72c5['registerInlineAttribute']('highlight'),_0xc72c5['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x21b53f,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5ceffa=this['editor'],_0x30f7f4=_0x5ceffa['locale'];_0x5ceffa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x137b2b=>{if('formatInline'!=_0x137b2b['type'])return;const {data:_0x44fa44}=_0x137b2b;if(_0x44fa44&&'highlight'==_0x44fa44['commandName']){const _0xc3291f=_0x30f7f4['t'],_0x1d69f0=_0x44fa44['commandParams'][0x0]['value'];if(_0x1d69f0){const _0x34f577=_0x5ceffa['config']['get']('highlight.options')['find'](_0x45d3cf=>_0x45d3cf['model']==_0x1d69f0),_0x3c3621=_0xc3291f(_0x34f577['title'])['toLowerCase']();return{'type':'format','content':c(_0x30f7f4,'*Set\x20highlight:*\x20%0',_0x3c3621),'color':{'value':_0x34f577['color'],'title':_0x34f577['title']}};}return{'type':'format','content':c(_0x30f7f4,'*Remove\x20highlight*',c(_0x30f7f4,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x346e12{['afterInit'](){const _0x284658=this['editor'];if(!_0x284658['plugins']['has']('HorizontalLineEditing'))return;_0x284658['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x524766=_0x284658['plugins']['get']('TrackChangesEditing'),_0x399e06=_0x284658['locale'];_0x524766['descriptionFactory']['registerElementLabel']('horizontalLine',_0x4bbc26=>c(_0x399e06,'ELEMENT_HORIZONTAL_LINE',_0x4bbc26)),_0x284658['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x25900f,{writer:_0x11e8e1,options:_0x1e77a9})=>{if(!_0x1e77a9['showSuggestionHighlights'])return null;const _0x4bf856=_0x11e8e1['createContainerElement']('div'),_0x2fb88a=_0x11e8e1['createEmptyElement']('hr');return _0x11e8e1['addClass']('ck-horizontal-line',_0x4bf856),_0x11e8e1['insert'](_0x11e8e1['createPositionAt'](_0x4bf856,0x0),_0x2fb88a),_0x4bf856;},'converterPriority':'high'});}}class st extends _0x346e12{['afterInit'](){const _0x4e22eb=this['editor'];if(!_0x4e22eb['plugins']['has']('HtmlEmbed'))return;const _0x288cdf=_0x4e22eb['plugins']['get']('TrackChangesEditing'),_0x381f30=_0x4e22eb['locale'];_0x288cdf['descriptionFactory']['registerElementLabel']('rawHtml',_0x41b8f7=>c(_0x381f30,'ELEMENT_HTML_EMBED',_0x41b8f7)),_0x288cdf['enableDefaultAttributesIntegration']('htmlEmbed'),_0x288cdf['registerBlockAttribute']('value'),_0x288cdf['descriptionFactory']['registerDescriptionCallback'](_0x7d3b66=>{if('attribute'!=_0x7d3b66['type'])return;const {data:_0x282e66}=_0x7d3b66;if(_0x282e66&&'value'==_0x282e66['key']&&_0x7d3b66['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x56d30e=c(_0x381f30,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x381f30,'*Change\x20%0\x20content*',_0x56d30e)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1a8d59=this['editor'],_0x44ba11=_0x1a8d59['locale'];_0x1a8d59['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3764a9=>{if('formatBlock'!=_0x3764a9['type'])return;const {data:_0x48bf3f}=_0x3764a9;if(_0x48bf3f&&'htmlEmbed'==_0x48bf3f['commandName']){const _0x1d0b59=c(_0x44ba11,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x44ba11,'*Change\x20%0\x20content*',_0x1d0b59)};}});}}class ot extends _0x346e12{['afterInit'](){const _0x2be017=this['editor'];if(!_0x2be017['plugins']['has']('ImageEditing'))return;const _0x3bebb6=_0x2be017['plugins']['get']('TrackChangesEditing'),_0x275cf2=_0x2be017['plugins']['get']('ImageUtils'),_0x472baa=_0x2be017['locale'];_0x3bebb6['enableCommand']('insertImage'),_0x3bebb6['descriptionFactory']['registerElementLabel']('imageBlock',_0x46dfb8=>c(_0x472baa,'ELEMENT_IMAGE',_0x46dfb8)),_0x3bebb6['descriptionFactory']['registerElementLabel']('imageInline',_0x50e89f=>c(_0x472baa,'ELEMENT_INLINE_IMAGE',_0x50e89f)),_0x3bebb6['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x472baa,'ELEMENT_CAPTION')),_0x2be017['plugins']['has']('ImageUploadEditing')&&_0x3bebb6['enableCommand']('uploadImage'),_0x2be017['plugins']['has']('ImageBlockEditing')&&_0x2be017['plugins']['has']('ImageInlineEditing')&&(_0x3bebb6['enableCommand']('imageTypeInline',(_0x383057,_0x933fba)=>{const _0x35eaaf=_0x275cf2['getClosestSelectedImageElement'](_0x2be017['model']['document']['selection']);_0x2be017['model']['change'](()=>{_0x3bebb6['markBlockFormat'](_0x35eaaf,{'commandName':'imageTypeInline','commandParams':[_0x933fba]},[],'convertBlockImageToInline');});}),_0x3bebb6['enableCommand']('imageTypeBlock',(_0x217f0e,_0xc285e3)=>{_0x2be017['model']['change'](_0x3dbef4=>{let _0x20dc9b=_0x275cf2['getClosestSelectedImageElement'](_0x2be017['model']['document']['selection']),_0x44feae=_0x3dbef4['createRangeOn'](_0x20dc9b);const _0x39da5e=_0x1322ed['fromPosition'](_0x44feae['start'],'toPrevious'),_0x12a401=_0x1322ed['fromPosition'](_0x44feae['end'],'toNext');_0x3bebb6['forceDefaultExecution'](()=>_0x217f0e(_0xc285e3)),_0x20dc9b=_0x275cf2['getClosestSelectedImageElement'](_0x2be017['model']['document']['selection']),_0x44feae=_0x3dbef4['createRangeOn'](_0x20dc9b);const _0x266ac2=_0x3dbef4['createRange'](_0x39da5e,_0x12a401);_0x39da5e['detach'](),_0x12a401['detach'](),_0x3bebb6['markBlockFormat'](_0x20dc9b,{'commandName':'imageTypeInline','commandParams':[_0xc285e3]},[],'convertInlineImageToBlock'),_0x266ac2['start']['isBefore'](_0x44feae['start'])&&_0x3bebb6['markInsertion'](_0x3dbef4['createRange'](_0x266ac2['start'],_0x44feae['start']),'convertInlineImageToBlock'),_0x44feae['end']['isBefore'](_0x266ac2['end'])&&_0x3bebb6['markInsertion'](_0x3dbef4['createRange'](_0x44feae['end'],_0x266ac2['end']),'convertInlineImageToBlock');});}),_0x3bebb6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3bebb6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3bebb6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3bebb6['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3bebb6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3bebb6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x32d06f])=>{const _0x16123e=_0x3bebb6['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x335c56=_0x32d06f['start'],_0x179462=_0x32d06f['end'];const _0x401bb3=_0x2be017['model']['schema']['getNearestSelectionRange'](_0x335c56,'backward'),_0x284858=_0x2be017['model']['schema']['getNearestSelectionRange'](_0x179462,'forward');_0x401bb3['isCollapsed']&&(_0x335c56=_0x401bb3['start']),_0x284858['isCollapsed']&&(_0x179462=_0x284858['end']),_0x16123e([_0x2be017['model']['createRange'](_0x335c56,_0x179462)]);}),_0x3bebb6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x517462),_0x3bebb6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x517462)),_0x2be017['plugins']['has']('ImageCaptionEditing')&&(_0x3bebb6['enableCommand']('toggleImageCaption',(_0x488c29,_0xb67240)=>{const _0x115876=_0x2be017['plugins']['get']('ImageCaptionUtils');let _0x5822bb=_0x275cf2['getClosestSelectedImageElement'](_0x2be017['model']['document']['selection']),_0x577d1c=_0x115876['getCaptionFromImageModelElement'](_0x5822bb);_0x2be017['model']['change'](()=>{if(_0x577d1c)return void _0x3bebb6['markDeletion'](_0x2be017['model']['createRangeOn'](_0x577d1c));const _0x145e68=_0x275cf2['isBlockImage'](_0x5822bb);_0x488c29(_0xb67240),_0x5822bb=_0x275cf2['getClosestSelectedImageElement'](_0x2be017['model']['document']['selection']),_0x577d1c=_0x115876['getCaptionFromImageModelElement'](_0x5822bb),_0x3bebb6['markInsertion'](_0x2be017['model']['createRangeOn'](_0x577d1c),_0x145e68?null:'imageCaption');});}),_0x3bebb6['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x517462));const _0x40ec63=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4f19d1(_0x41d289,_0x2c8f1c){const _0x544c5e=_0x40ec63['findIndex'](({type:_0x89e00e,subType:_0x5ecb7d})=>_0x41d289['type']==_0x89e00e&&_0x41d289['subType']==_0x5ecb7d),_0x4ce0ca=_0x40ec63['findIndex'](({type:_0x19c630,subType:_0x349244})=>_0x2c8f1c['type']==_0x19c630&&_0x2c8f1c['subType']==_0x349244);if(_0x544c5e<0x0||_0x4ce0ca<0x0)return!0x1;const _0x297f9d=_0x41d289['getFirstRange'](),_0x29380f=_0x2c8f1c['getFirstRange']();if((0x0==_0x544c5e||0x1==_0x544c5e)&&0x2==_0x4ce0ca&&_0x297f9d['isIntersecting'](_0x29380f))return!0x0;if(0x2==_0x544c5e&&0x3==_0x4ce0ca){const _0x46f707=_0x3bebb6['_findSuggestions'](_0x297f9d,'insertion')['filter'](({suggestion:_0x1471b6,meta:_0x3d0a31})=>_0x3d0a31['isOwn']&&'convertInlineImageToBlock'==_0x1471b6['subType']);if(_0x46f707['length']>0x1&&_0x29380f['end']['isEqual'](_0x297f9d['start']))return!0x0;if(0x1==_0x46f707['length']&&(_0x297f9d['start']['isEqual'](_0x29380f['end'])||_0x297f9d['end']['isEqual'](_0x29380f['start'])))return!0x0;}if(0x3==_0x544c5e&&0x3==_0x4ce0ca&&_0x297f9d['start']['isBefore'](_0x29380f['start'])){const _0x35eb1f=_0x297f9d['end']['nodeAfter'],_0x4de78c=_0x29380f['start']['nodeBefore'];return _0x275cf2['isBlockImage'](_0x35eb1f)&&_0x35eb1f===_0x4de78c;}return!0x1;}function _0x517462(_0x57506e,_0x160746){return _0x4f19d1(_0x57506e,_0x160746)?[_0x57506e,_0x160746]:_0x4f19d1(_0x160746,_0x57506e)?[_0x160746,_0x57506e]:null;}_0x2be017['plugins']['has']('ImageResize')&&(_0x3bebb6['enableDefaultAttributesIntegration']('resizeImage'),_0x3bebb6['registerBlockAttribute']('resizedWidth'),_0x3bebb6['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x472baa,'FORMAT_IMAGE_SIZE'))),_0x2be017['plugins']['has']('ImageTextAlternativeEditing')&&(_0x3bebb6['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x3bebb6['registerBlockAttribute']('alt')),_0x2be017['plugins']['has']('PictureEditing')&&(_0x3bebb6['registerBlockAttribute']('sources'),_0x3bebb6['descriptionFactory']['registerDescriptionCallback'](_0xa2c7ac=>{if('attribute'!=_0xa2c7ac['type'])return;const {data:_0x2b6da4}=_0xa2c7ac;return _0x2b6da4&&'sources'==_0x2b6da4['key']?{'type':'format','content':''}:void 0x0;})),_0x2be017['plugins']['has']('ImageSizeAttributes')&&(_0x3bebb6['registerBlockAttribute']('width'),_0x3bebb6['registerBlockAttribute']('height'),_0x3bebb6['descriptionFactory']['registerDescriptionCallback'](_0x17bf84=>{if('attribute'!=_0x17bf84['type'])return;const {data:_0x276c22}=_0x17bf84;return!_0x276c22||'width'!=_0x276c22['key']&&'height'!=_0x276c22['key']?void 0x0:{'type':'format','content':''};})),_0x3bebb6['descriptionFactory']['registerDescriptionCallback'](_0xe711f7=>{if(!!_0x40ec63['find'](({type:_0x995af4,subType:_0x423d97})=>_0xe711f7['type']==_0x995af4&&_0xe711f7['subType']==_0x423d97))return _0xe711f7['previous']?{}:void 0x0;}),_0x3bebb6['descriptionFactory']['registerDescriptionCallback'](_0x41c95b=>{if('insertion'==_0x41c95b['type']||'deletion'==_0x41c95b['type']){const _0x3391f8=_0x41c95b['getContainedElement']();if(_0x3391f8&&_0x3391f8['is']('element','caption'))return{'type':'insertion'==_0x41c95b['type']?'addObject':'removeObject','element':_0x3391f8,'quantity':0x1};}}),_0x3bebb6['descriptionFactory']['registerDescriptionCallback'](_0x297485=>'formatBlock'==_0x297485['type']&&'convertInlineImageToBlock'==_0x297485['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x297485['type']&&'convertBlockImageToInline'==_0x297485['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3bebb6['descriptionFactory']['registerDescriptionCallback'](_0x3b9f38=>{if('attribute'!=_0x3b9f38['type'])return;const {data:_0x320e14}=_0x3b9f38;if(!_0x320e14||'alt'!=_0x320e14['key'])return;const _0x3e4a94=_0x320e14['newValue'];return _0x3e4a94?{'type':'format','content':c(_0x472baa,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3e4a94+'\x22')}:{'type':'format','content':c(_0x472baa,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2ea6c1=this['editor'],_0x1195e9=_0x2ea6c1['locale'];_0x2ea6c1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x22806e=>{if('formatBlock'!=_0x22806e['type']&&'formatInline'!=_0x22806e['type'])return;const {data:_0x308104}=_0x22806e;if(_0x308104){if('imageTextAlternative'==_0x308104['commandName']){const _0x758599=_0x308104['commandParams'][0x0]['newValue'];return _0x758599?{'type':'format','content':c(_0x1195e9,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x758599+'\x22')}:{'type':'format','content':c(_0x1195e9,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x308104['commandName']){const _0x1c6016=_0x308104['commandParams'][0x0]['width'];return _0x1c6016?{'type':'format','content':c(_0x1195e9,'*Set\x20image\x20width:*\x20%0',_0x1c6016)}:{'type':'format','content':c(_0x1195e9,'*Reset\x20image\x20width*')};}}});}}class rt extends _0x346e12{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x29e7ef=this['editor']['locale'],_0x16b504=this['editor']['plugins']['get']('TrackChangesEditing');_0x16b504['enableDefaultAttributesIntegration']('replaceImageSource'),_0x16b504['registerBlockAttribute']('src'),_0x16b504['descriptionFactory']['registerDescriptionCallback'](_0x155758=>{if('attribute'!=_0x155758['type'])return;const {data:_0x15c0cf}=_0x155758;return _0x15c0cf&&'src'==_0x15c0cf['key']?_0x15c0cf['newValue']&&_0x15c0cf['oldValue']?{'type':'format','content':c(_0x29e7ef,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4484c7=this['editor']['plugins']['get']('TrackChangesEditing');_0x4484c7['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4484c7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4484c7['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4484c7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x452942=this['editor'],_0x24905d=_0x452942['locale'];_0x452942['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x80bcb2=>{if('formatBlock'!=_0x80bcb2['type']&&'formatInline'!=_0x80bcb2['type'])return;const {data:_0x2cdc20}=_0x80bcb2;if(!_0x2cdc20||'replaceImageSource'!=_0x2cdc20['commandName'])return;return{'type':'format','content':c(_0x24905d,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0x346e12{['afterInit'](){const _0x30ba8b=this['editor'];if(!_0x30ba8b['plugins']['has']('ImageStyleEditing'))return;const _0x30deea=_0x30ba8b['plugins']['get']('TrackChangesEditing'),_0x51b303=_0x30ba8b['plugins']['get']('ImageUtils'),_0x2e7c2f={};_0x30deea['enableCommand']('imageStyle',(_0x1346ef,_0x232663)=>{const _0x339f37=_0x30ba8b['plugins']['get']('Users')['me'],_0x2f846a=_0x30ba8b['commands']['get']('imageStyle');let _0x34baba=_0x51b303['getClosestSelectedImageElement'](_0x30ba8b['model']['document']['selection']),_0x2b6c79=_0x30ba8b['model']['createRangeOn'](_0x34baba),_0x373ba9=_0x2f846a['value'];if(_0x373ba9==_0x232663['value'])return;const _0xfb821b={'commandName':'imageStyle','commandParams':[_0x232663],'formatGroupId':_0xb11af3()};_0x30ba8b['model']['change'](()=>{if(_0x30deea['getSuggestions']()['filter'](_0x977427=>_0x977427['isInContent']&&_0x339f37==_0x977427['author']&&('formatBlock'==_0x977427['type']||'formatInline'==_0x977427['type'])&&('imageStylePreApply'==_0x977427['subType']||'imageStylePostApply'==_0x977427['subType'])&&_0x977427['getFirstRange']()['isEqual'](_0x2b6c79))['forEach'](_0xfbc47d=>_0x30deea['discardSuggestion'](_0xfbc47d['head'])),_0x34baba=_0x51b303['getClosestSelectedImageElement'](_0x30ba8b['model']['document']['selection']),_0x2b6c79=_0x30ba8b['model']['createRangeOn'](_0x34baba),_0x2f846a['refresh'](),_0x30ba8b['commands']['get']('imageTypeInline')['refresh'](),_0x30ba8b['commands']['get']('imageTypeBlock')['refresh'](),_0x373ba9=_0x2f846a['value'],_0x373ba9!=_0x232663['value'])return _0x51b303['isInlineImage'](_0x34baba)&&_0x2f846a['shouldConvertImageType'](_0x232663['value'],_0x34baba)?(_0x1346ef({..._0x232663,'setImageSizes':!0x1}),_0x34baba=_0x51b303['getClosestSelectedImageElement'](_0x30ba8b['model']['document']['selection']),void _0x30deea['markBlockFormat'](_0x34baba,{..._0xfb821b,'commandReversedParams':[{'value':_0x373ba9||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x51b303['isBlockImage'](_0x34baba)?_0x30deea['markBlockFormat'](_0x34baba,_0xfb821b,[],'imageStylePostApply'):_0x30deea['markInlineFormat'](_0x2b6c79,_0xfb821b,'imageStylePostApply'));});});for(const _0x5a6c03 of _0x30ba8b['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x2e7c2f[_0x5a6c03['name']]=_0x5a6c03['title']['toLowerCase']();_0x30deea['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x30deea['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x30deea['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x30deea['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x19a2ff])=>{_0x51b303['setImageNaturalSizeAttributes'](_0x19a2ff['getContainedElement']());}),_0x30deea['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x19c401,_0x247f53)=>{_0x30deea['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x19c401,{'commandName':_0x247f53['commandName'],'commandParams':_0x247f53['commandReversedParams']});}),_0x30deea['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x567ced,_0x35a417){if(_0x290e31(_0x567ced,_0x35a417))return[_0x567ced,_0x35a417];if(_0x290e31(_0x35a417,_0x567ced))return[_0x35a417,_0x567ced];return null;});const _0x162ced=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x290e31(_0x185f71,_0x28dbb9){const _0x2685df=_0x162ced['findIndex'](({type:_0xf154cc,subType:_0x270e82})=>_0x185f71['type']==_0xf154cc&&_0x185f71['subType']==_0x270e82),_0x5391e4=_0x162ced['findIndex'](({type:_0x30c7e8,subType:_0x3be9b2})=>_0x28dbb9['type']==_0x30c7e8&&_0x28dbb9['subType']==_0x3be9b2);if(_0x2685df<0x0||_0x5391e4<0x0)return!0x1;const _0x204cd0=_0x185f71['getFirstRange'](),_0x574cdc=_0x28dbb9['getFirstRange']();if((0x0==_0x2685df||0x1==_0x2685df)&&0x2==_0x5391e4&&_0x204cd0['isIntersecting'](_0x574cdc))return!0x0;if(0x2==_0x2685df&&0x3==_0x5391e4){const _0xf94cda=_0x30deea['_findSuggestions'](_0x204cd0,'insertion')['filter'](({suggestion:_0x755699,meta:_0xf93575})=>_0xf93575['isOwn']&&'convertInlineImageToBlock'==_0x755699['subType']);if(_0xf94cda['length']>0x1&&_0x574cdc['end']['isEqual'](_0x204cd0['start']))return!0x0;if(0x1==_0xf94cda['length']&&(_0x204cd0['start']['isEqual'](_0x574cdc['end'])||_0x204cd0['end']['isEqual'](_0x574cdc['start'])))return!0x0;}if(0x3==_0x2685df&&0x3==_0x5391e4&&_0x204cd0['start']['isBefore'](_0x574cdc['start'])){const _0x4fdf22=_0x204cd0['end']['nodeAfter'],_0x376ed9=_0x574cdc['start']['nodeBefore'];return _0x51b303['isBlockImage'](_0x4fdf22)&&_0x4fdf22===_0x376ed9;}return!0x1;}_0x30ba8b['model']['document']['registerPostFixer'](()=>{let _0x1357f8=!0x1;const _0x3059ca=Array['from'](_0x30ba8b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1aaf69,data:_0xebd03b}of _0x3059ca){const {group:_0x296380,type:_0x22ff05,subType:_0x365a01,id:_0x4e3bb5}=_0x30deea['_splitMarkerName'](_0x1aaf69);if('suggestion'==_0x296380&&_0x30deea['hasSuggestion'](_0x4e3bb5)){if('formatBlock'==_0x22ff05&&('imageStylePreApply'==_0x365a01||'imageStylePostApply'==_0x365a01)){const _0x58256f=_0x30deea['getSuggestion'](_0x4e3bb5);if(_0xebd03b['newRange']){const _0x3b6d94=_0x58256f['getFirstRange']()['getContainedElement']();if(_0x51b303['isBlockImage'](_0x3b6d94))continue;_0x30deea['discardSuggestion'](_0x58256f),_0x1357f8=!0x0;}}if('insertion'==_0x22ff05&&'imageCaption'==_0x365a01&&!_0xebd03b['newRange']){const _0xae154b=_0x30deea['getSuggestion'](_0x4e3bb5);_0xae154b['next']&&_0xae154b['next']['isInContent']&&(_0x30deea['discardSuggestion'](_0xae154b['next']),_0x1357f8=!0x0);}}}return _0x1357f8;}),this['_registerLegacyDescription'](_0x2e7c2f);}['_registerLegacyDescription'](_0x1cb5ab){const _0x11f96a=this['editor'],_0x90e4da=_0x11f96a['locale'];_0x11f96a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2e0980=>{if('formatBlock'!=_0x2e0980['type']&&'formatInline'!=_0x2e0980['type'])return;const {data:_0x47ba2c}=_0x2e0980;if(!_0x47ba2c||'imageStyle'!=_0x47ba2c['commandName'])return;const _0x3df32a=_0x47ba2c['commandParams'][0x0]['value'];return _0x163bc4('side'===_0x3df32a?c(_0x90e4da,'FORMAT_SIDE_IMAGE'):_0x1cb5ab[_0x3df32a]||_0x3df32a);function _0x163bc4(_0x145373){return{'type':'format','content':c(_0x90e4da,'*Format:*\x20%0',_0x145373)};}});}}class ct extends _0x346e12{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x3a221e){super(_0x3a221e),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x59213b=this['editor'],_0x2a9201=_0x59213b['commands']['get']('importWord'),_0x584464=_0x59213b['commands']['get']('trackChanges');_0x2a9201&&(_0x2a9201['on']('execute',(_0x1e299f,[,_0x26cda1])=>{this['_trackChangesValueDuringImport']=_0x584464['value'],_0x26cda1['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x2a9201,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x2a9201,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x584464['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x59213b['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x40b23f,_0x3e2417){const {suggestions:_0x34ae56}=_0x3e2417,_0x35edf8=this['editor']['commands']['get']('trackChanges'),_0x24f011=_0x35edf8['value'];this['_trackChangesValueDuringImport']!==_0x24f011&&(_0x35edf8['execute'](),this['_trackChangesExecuted']=!0x0),_0x34ae56&&_0x34ae56['forEach'](({id:_0x1e34fb,type:_0x3ab668,author:_0x3cb09e,created_at:_0xe98f31})=>{const _0x445a1b={'id':_0x1e34fb,'type':_0x3ab668,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x3cb09e,'createdAt':_0xe98f31?new Date(_0xe98f31):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x445a1b);});}}class ut extends _0x346e12{['afterInit'](){const _0x371183=this['editor'],_0x523b65=_0x371183['plugins']['get']('TrackChangesEditing');if(_0x371183['plugins']['has']('IndentEditing')&&(_0x523b65['enableCommand']('indent'),_0x523b65['enableCommand']('outdent')),_0x371183['plugins']['has']('IndentBlock')){for(const _0x22d4e3 of['indentBlock','outdentBlock'])_0x523b65['enableDefaultAttributesIntegration'](_0x22d4e3);}const _0x198bb2=_0x371183['locale'];_0x523b65['registerBlockAttribute']('blockIndent'),_0x523b65['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x198bb2,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3cfc5d=this['editor'],_0x60fa2b=_0x3cfc5d['locale'],_0x1772e1=_0x3cfc5d['plugins']['get']('TrackChangesEditing');_0x1772e1['descriptionFactory']['registerDescriptionCallback'](_0x3ff28d=>{if('formatBlock'!=_0x3ff28d['type'])return;const {data:_0x36d91e}=_0x3ff28d;if(!_0x36d91e)return;if('indentBlock'!=_0x36d91e['commandName']&&'outdentBlock'!=_0x36d91e['commandName'])return;const _0x4a8413=_0x3ff28d['getItems']()[0x0],_0x3da182=_0x1772e1['descriptionFactory']['getItemLabel'](_0x4a8413);return'indentBlock'==_0x36d91e['commandName']?{'type':'format','content':c(_0x60fa2b,'*Indent:*\x20%0',_0x3da182)}:'outdentBlock'==_0x36d91e['commandName']?{'type':'format','content':c(_0x60fa2b,'*Outdent:*\x20%0',_0x3da182)}:void 0x0;});}}class ft extends _0x346e12{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x346e12{['afterInit'](){const _0x114e19=this['editor'];if(!_0x114e19['plugins']['has']('LinkEditing'))return;const _0x9dbd9=_0x114e19['plugins']['get']('TrackChangesEditing'),_0x2e0ba2=_0x114e19['commands']['get']('link');_0x9dbd9['enableDefaultAttributesIntegration']('link'),_0x9dbd9['enableDefaultAttributesIntegration']('unlink'),_0x9dbd9['registerInlineAttribute']('linkHref');for(const _0x3be0b0 of _0x2e0ba2['manualDecorators'])_0x9dbd9['registerInlineAttribute'](_0x3be0b0['id']),_0x9dbd9['descriptionFactory']['registerAttributeLabel'](_0x3be0b0['id'],'link\x20('+_0x3be0b0['label']['toLowerCase']()+')');_0x9dbd9['descriptionFactory']['registerDescriptionCallback'](_0x1c1c52=>{if('attribute'!=_0x1c1c52['type'])return;const {data:_0x10da29}=_0x1c1c52;if(!_0x10da29||'linkHref'!=_0x10da29['key'])return;const _0x23b278=_0x10da29['newValue'],_0xd28ad9=_0x114e19['locale'];return{'type':'format','content':null==_0x23b278?c(_0xd28ad9,'*Remove\x20link*'):c(_0xd28ad9,'*Set\x20link:*\x20%0','\x22'+_0x23b278+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2be8ef=this['editor'],_0x210610=_0x2be8ef['locale'];_0x2be8ef['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e715f=>{if('formatInline'!=_0x5e715f['type'])return;const {data:_0x3970f0}=_0x5e715f;if(_0x3970f0){if('link'==_0x3970f0['commandName']){const _0x59ae9f=_0x3970f0['commandParams'][0x0];return{'type':'format','content':c(_0x210610,'*Set\x20link:*\x20%0','\x22'+_0x59ae9f+'\x22')};}return'unlink'==_0x3970f0['commandName']?{'type':'format','content':c(_0x210610,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x346e12{['afterInit'](){const _0x48a778=this['editor'],_0x4f45c7=_0x48a778['locale'];if(!_0x48a778['plugins']['has']('LegacyListEditing'))return;const _0x28f108=_0x48a778['plugins']['get']('TrackChangesEditing'),_0x429f83=_0x48a778['plugins']['has']('LegacyTodoListEditing');function _0x359a8f(_0xce37a){return()=>{const _0x3c5766=_0x48a778['model']['document']['selection'],_0x208e59=_0x48a778['commands']['get'](_0xce37a);if(_0x208e59['value'])return void _0x48a778['execute']('paragraph',{});const _0x3f857a=_0xce37a['slice'](0x0,-0x4),_0x44ec00=function(_0x35804a,_0xd1b66a,_0xb8bf7c){let _0x309c4f=Array['from'](_0x35804a)['filter'](_0x5c3d05=>function(_0x565658,_0x3b6e83){return _0x3b6e83['checkChild'](_0x565658['parent'],'listItem')&&!_0x3b6e83['isObject'](_0x565658);}(_0x5c3d05,_0xb8bf7c));_0x309c4f=_0x309c4f['filter'](_0x4c3e92=>!_0x4c3e92['is']('element','listItem')||_0x4c3e92['getAttribute']('listType')!=_0xd1b66a);const _0x18eb86=new Set();for(const _0x45c43e of _0x309c4f)_0x45c43e['is']('element','listItem')?_0x18eb86['add'](Le(_0x45c43e)):_0x18eb86['add'](_0x45c43e);return Array['from'](_0x18eb86);}(_0x3c5766['getSelectedBlocks'](),_0x3f857a,_0x48a778['model']['schema']);_0x48a778['model']['change'](()=>{for(const _0x258616 of _0x44ec00)_0x28f108['markBlockFormat'](_0x258616,{'commandName':_0xce37a,'commandParams':[{'forceValue':!_0x208e59['value']}],'formatGroupId':'blockName'},Ee(_0x258616));});};}function _0x4b5847(_0x10e51c){return()=>{const _0x14c32c=function(_0x2825ac){let _0x9aed04=Array['from'](_0x2825ac);const _0x3f588e=_0x9aed04['findIndex'](_0x3504c5=>'listItem'!=_0x3504c5['name']);return _0x3f588e>-0x1&&(_0x9aed04=_0x9aed04['slice'](0x0,_0x3f588e)),_0x9aed04;}(_0x48a778['model']['document']['selection']['getSelectedBlocks']()),_0x3e2766=_0x48a778['model']['createRange'](_0x48a778['model']['createPositionAt'](_0x14c32c[0x0],'before'),_0x48a778['model']['createPositionAt'](_0x14c32c[_0x14c32c['length']-0x1],'end'));_0x48a778['model']['change'](()=>{_0x28f108['markBlockFormat'](_0x3e2766,{'commandName':_0x10e51c,'commandParams':[],'formatGroupId':'listIndent'},function(_0x36e599){const _0x231df3=new Set();for(const _0x33e397 of _0x36e599){let _0x18c634=_0x33e397['nextSibling'];for(;_0x18c634&&_0x18c634['getAttribute']('listIndent')>_0x33e397['getAttribute']('listIndent');)_0x231df3['add'](_0x18c634),_0x18c634=_0x18c634['nextSibling'];}return Array['from'](_0x231df3);}(_0x14c32c));});};}_0x28f108['enableCommand']('numberedList',_0x359a8f('numberedList')),_0x28f108['enableCommand']('bulletedList',_0x359a8f('bulletedList')),_0x429f83&&_0x28f108['enableCommand']('todoList',_0x359a8f('todoList')),_0x28f108['enableCommand']('indentList',_0x4b5847('indentList')),_0x28f108['enableCommand']('outdentList',_0x4b5847('outdentList')),_0x429f83&&_0x28f108['enableCommand']('checkTodoList',()=>{const _0x4b3a38=_0x48a778['commands']['get']('checkTodoList'),_0x374313=Array['from'](_0x4b3a38['_selectedElements']);_0x374313['filter'](_0xa9ddf6=>_0xa9ddf6['getAttribute']('todoListChecked')!=_0x4b3a38['value']),_0x48a778['model']['change'](()=>{for(const _0x83c397 of _0x374313)_0x28f108['markBlockFormat'](_0x83c397,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x4b3a38['value']}]});});}),_0x28f108['descriptionFactory']['registerElementLabel']('listItem',_0x444b46=>c(_0x4f45c7,'ELEMENT_LIST_ITEM',_0x444b46)),_0x28f108['descriptionFactory']['registerDescriptionCallback'](_0x1468d1=>{if('formatBlock'!=_0x1468d1['type']&&'formatInline'!=_0x1468d1['type'])return;const {data:_0x5b5856}=_0x1468d1;if(_0x5b5856){if('numberedList'==_0x5b5856['commandName']||'bulletedList'==_0x5b5856['commandName']||'todoList'==_0x5b5856['commandName'])switch(_0x5b5856['commandName']['replace']('List','')){case'bulleted':return _0xa4c291(c(_0x4f45c7,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xa4c291(c(_0x4f45c7,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xa4c291(c(_0x4f45c7,'ELEMENT_TODO_LIST'));}if('indentList'==_0x5b5856['commandName'])return{'type':'format','content':c(_0x4f45c7,'*Indent:*\x20%0',c(_0x4f45c7,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x5b5856['commandName'])return{'type':'format','content':c(_0x4f45c7,'*Outdent:*\x20%0',c(_0x4f45c7,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x5b5856['commandName'])return _0x5b5856['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x4f45c7,'*Check\x20item*')}:{'type':'format','content':c(_0x4f45c7,'*Uncheck\x20item*')};}function _0xa4c291(_0xfd4201){return{'type':'format','content':c(_0x4f45c7,'*Change\x20to:*\x20%0',_0xfd4201)};}});}}function Le(_0x257a50){const _0x233e39=_0x257a50['getAttribute']('listIndent');if(0x0==_0x233e39)return _0x257a50;let _0xd4f967=_0x257a50;for(;_0x257a50['previousSibling']&&_0x257a50['previousSibling']['is']('element','listItem');){const _0x4c19b3=_0x257a50['previousSibling']['getAttribute']('listIndent');if(_0x4c19b3==_0x233e39)_0xd4f967=_0x257a50['previousSibling'];else{if(_0x4c19b3<_0x233e39)break;}_0x257a50=_0x257a50['previousSibling'];}return _0xd4f967;}function Ee(_0x1a2e0f){const _0x3ddb94=[];if(_0x1a2e0f['is']('element','listItem')&&_0x1a2e0f['getAttribute']('listIndent')>0x0){let _0x284b0c=_0x1a2e0f['nextSibling'];for(;_0x284b0c&&'listItem'==_0x284b0c['name']&&_0x284b0c['getAttribute']('listIndent')==_0x1a2e0f['getAttribute']('listIndent');)_0x3ddb94['push'](_0x284b0c),_0x284b0c=_0x284b0c['nextSibling'];}return _0x3ddb94;}class Q extends _0x346e12{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x46689d=this['editor']['config']['get']('list.properties'),_0x597774=this['editor']['plugins']['get']('TrackChangesEditing');_0x46689d['styles']&&_0x597774['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x46689d['reversed']&&_0x597774['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x46689d['startIndex']&&_0x597774['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x597774['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x37b1b9,_0x28af4c={}){const _0x3adb2e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1542ff=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x3adb2e['markMultiRangeBlockFormat'](_0x1542ff,{'commandName':'listStyle','commandParams':[{'type':_0x28af4c['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x4e4e79,_0xc1c991={}){const _0x3c3e71=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3f546b=this['_getSuggestionBlocks'](_0x48c198=>_0x48c198['is']('element','listItem')&&'numbered'===_0x48c198['getAttribute']('listType'));if(_0x3f546b['length']<0x1)return;const _0xb45ecb=_0x3f546b['map'](_0x54f3fe=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x54f3fe,'before'),this['editor']['model']['createPositionAt'](_0x54f3fe,0x0)));this['editor']['model']['change'](()=>{_0x3c3e71['markMultiRangeBlockFormat'](_0xb45ecb,{'commandName':'listReversed','commandParams':[{'reversed':_0xc1c991['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x21c3a6,_0x20f908={}){const _0x481765=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3e2cd8=this['_getSuggestionBlocks'](_0x33b166=>_0x33b166['is']('element','listItem')&&'numbered'===_0x33b166['getAttribute']('listType'));if(_0x3e2cd8['length']<0x1)return;const _0x30bf35=_0x3e2cd8['map'](_0x152bfc=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x152bfc,'before'),this['editor']['model']['createPositionAt'](_0x152bfc,0x0)));this['editor']['model']['change'](()=>{_0x481765['markMultiRangeBlockFormat'](_0x30bf35,{'commandName':'listStart','commandParams':[{'startIndex':_0x20f908['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x501c36){if('formatBlock'!=_0x501c36['type']&&'formatInline'!=_0x501c36['type'])return;const _0x2d80c6=this['editor']['locale'],{data:_0x211cbb}=_0x501c36;if(!_0x211cbb)return;let _0x26297b,_0x54a02d;switch(_0x211cbb['commandName']){case'listStyle':_0x26297b='*Change\x20to:*\x20%0',_0x54a02d={'type':'format','content':c(_0x2d80c6,_0x26297b,c(_0x2d80c6,this['_getTranslationKeyForListStyle'](_0x211cbb['commandParams'][0x0]['type'])))};break;case'listReversed':_0x26297b=_0x211cbb['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x54a02d={'type':'format','content':c(_0x2d80c6,_0x26297b)};break;case'listStart':_0x26297b='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x54a02d={'type':'format','content':c(_0x2d80c6,_0x26297b,_0x211cbb['commandParams'][0x0]['startIndex'])};}return _0x54a02d;}['_getSuggestionBlocksForListStyle'](){const _0x260b56=this['editor']['plugins']['get']('LegacyListUtils');let _0x5274bf=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x5274bf[0x0]?.['is']('element','listItem')&&_0x5274bf['unshift'](..._0x260b56['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x5274bf[_0x5274bf['length']-0x1]?.['is']('element','listItem')&&_0x5274bf['push'](..._0x260b56['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x5274bf=[...new Set(_0x5274bf)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x5274bf=_0x5274bf['filter'](_0x984dec=>_0x984dec['is']('element','listItem'))),_0x5274bf;}['_getSuggestionBlocks'](_0x4b1145){const _0x96ae06=this['editor']['plugins']['get']('LegacyListUtils');let _0xf9ed89=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x4b1145)['map'](_0x1043ea=>{const _0x115b93=this['editor']['model']['createPositionAt'](_0x1043ea,0x0);return[..._0x96ae06['getSiblingNodes'](_0x115b93,'backward'),..._0x96ae06['getSiblingNodes'](_0x115b93,'forward')];})['flat']();return _0xf9ed89=[...new Set(_0xf9ed89)],_0xf9ed89;}['_getTranslationKeyForListStyle'](_0xc124a6){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0xc124a6)||'default')['toUpperCase']()+'_LIST_'+_0xc124a6['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x346e12{['afterInit'](){const _0x4c22b0=this['editor'];if(!_0x4c22b0['plugins']['has']('MediaEmbedEditing'))return;const _0x1bf841=_0x4c22b0['plugins']['get']('TrackChangesEditing'),_0x36035c=_0x4c22b0['locale'];_0x1bf841['enableCommand']('mediaEmbed'),_0x1bf841['descriptionFactory']['registerElementLabel']('media',_0x2815cf=>c(_0x36035c,'ELEMENT_MEDIA',_0x2815cf)),_0x4c22b0['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x54d07,{writer:_0x35071d,options:_0xe575dd})=>{if(_0xe575dd['showSuggestionHighlights'])return _0x35071d['createEmptyElement']('div');},'converterPriority':'high'}),_0x4c22b0['data']['downcastDispatcher']['on']('attribute:url:media',(_0x193c9e,_0x13dbb6,_0x5673d6)=>{_0x5673d6['options']['showSuggestionHighlights']&&_0x193c9e['stop']();},{'priority':'high'});}}class mt extends _0x346e12{['afterInit'](){const _0x4f52d7=this['editor'];_0x4f52d7['plugins']['has']('MentionEditing')&&_0x4f52d7['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0x346e12{['afterInit'](){const _0x12dd29=this['editor'];if(!_0x12dd29['plugins']['has']('MergeFieldsEditing'))return;const _0x4609f7=_0x12dd29['plugins']['get']('TrackChangesEditing'),_0x5ec619=_0x12dd29['locale'];_0x4609f7['enableCommand']('insertMergeField'),_0x4609f7['enableCommand']('insertMergeFieldBlock'),_0x4609f7['enableCommand']('insertMergeFieldImage'),_0x4609f7['descriptionFactory']['registerElementLabel']('mergeField',_0x35f27a=>c(_0x5ec619,'ELEMENT_MERGE_FIELD',_0x35f27a)),_0x4609f7['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x5c50ec=>c(_0x5ec619,'ELEMENT_MERGE_FIELD',_0x5c50ec)),_0x4609f7['descriptionFactory']['registerDescriptionCallback'](_0x260deb=>{if('insertion'!=_0x260deb['type']&&'deletion'!=_0x260deb['type'])return;const _0xf60895=_0x260deb['getContainedElement']();if(null==_0xf60895)return;const _0x49d95e=_0x12dd29['plugins']['get']('MergeFieldsEditing');let _0x5962b1;switch(_0x49d95e['getMergeFieldType'](_0xf60895)){case null:return;case'image':{const _0x4863d4=_0x49d95e['unwrapAffixes'](_0xf60895['getAttribute']('src'));_0x5962b1=_0x49d95e['getLabel'](_0x4863d4)||_0x4863d4;break;}default:{const _0x5370e1=_0xf60895['getAttribute']('id');_0x5962b1=_0x49d95e['getLabel'](_0x5370e1)||_0x5370e1;break;}}return'insertion'==_0x260deb['type']?{'type':'insertion','content':c(_0x5ec619,'*Insert:*\x20%0','\x22'+_0x5962b1+'\x22\x20'+c(_0x5ec619,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x5ec619,'*Remove:*\x20%0','\x22'+_0x5962b1+'\x22\x20'+c(_0x5ec619,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x346e12{['afterInit'](){const _0x20430a=this['editor'],_0xb155a6=_0x20430a['plugins']['get']('TrackChangesEditing');_0x20430a['plugins']['has']('MultiLevelList')&&(_0xb155a6['enableDefaultAttributesIntegration']('multiLevelList'),_0xb155a6['registerBlockAttribute']('listMarkerStyle'),_0xb155a6['descriptionFactory']['registerDescriptionCallback'](_0x4f4504=>this['handleDescriptions'](_0x4f4504)));}['handleDescriptions'](_0x277f8e){const _0x1052af=this['editor']['locale'],{data:_0x2e312d}=_0x277f8e,_0x14034b={'type':'format','content':''};if(_0x2e312d&&'listMarkerStyle'==_0x2e312d['key']){if(!_0x2e312d['oldValue'])return{'type':'format','content':c(_0x1052af,'*Set\x20format:*\x20%0',c(_0x1052af,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2e312d['newValue']+')'};if(!_0x2e312d['newValue']){let _0x4ded8c=_0x277f8e['head'];for(;_0x4ded8c;){if(_0x4ded8c['data']&&'listType'==_0x4ded8c['data']['key']&&_0x4ded8c['data']['newValue'])return _0x14034b;_0x4ded8c=_0x4ded8c['next'];}return{'type':'format','content':c(_0x1052af,'*Remove\x20format:*\x20%0',c(_0x1052af,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2e312d['oldValue']+')'};}}}}class kt extends _0x346e12{['afterInit'](){const _0x5c51ab=this['editor'];if(!_0x5c51ab['plugins']['has']('PageBreakEditing'))return;_0x5c51ab['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x263f3e=_0x5c51ab['plugins']['get']('TrackChangesEditing'),_0x4f9ab2=_0x5c51ab['locale'];_0x263f3e['descriptionFactory']['registerElementLabel']('pageBreak',_0x547b98=>c(_0x4f9ab2,'ELEMENT_PAGE_BREAK',_0x547b98));}}class bt extends _0x346e12{['afterInit'](){const _0x5dd62a=this['editor'];if(!_0x5dd62a['plugins']['has']('Paragraph'))return;const _0x46800f=_0x5dd62a['locale'],_0x2f42d6=_0x5dd62a['plugins']['get']('TrackChangesEditing');_0x2f42d6['descriptionFactory']['registerElementLabel']('paragraph',_0x513a27=>c(_0x46800f,'ELEMENT_PARAGRAPH',_0x513a27)),_0x2f42d6['enableDefaultAttributesIntegration']('paragraph'),_0x2f42d6['enableCommand']('insertParagraph'),_0x5dd62a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x5dd62a),{'priority':'highest'}),_0x5dd62a['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xedb851,_0x582c8f,_0x1ab512)=>{_0x1ab512['options']['showSuggestionHighlights']&&nr(_0x5dd62a,{'showActiveMarker':!0x1})(_0xedb851,_0x582c8f,_0x1ab512);},{'priority':'highest'});const _0x2e6643=_0x2f42d6['descriptionFactory'];_0x2e6643['registerDescriptionCallback'](_0x2af7be=>{if('insertion'!==_0x2af7be['type'])return;const {start:_0x5ac842,end:_0x2bd5c3}=_0x2af7be['getFirstRange']();if(!_0x5ac842['isTouching'](_0x2bd5c3)||!_0x5ac842['nodeAfter'])return;const _0x6b022a=_0x5dd62a['model']['schema'],_0xccd6f6=_0x5ac842['nodeAfter'];return _0x6b022a['isBlock'](_0xccd6f6)&&!_0x6b022a['isLimit'](_0xccd6f6)&&_0x6b022a['checkChild'](_0xccd6f6,'$text')?{'type':'insertion','content':c(_0x46800f,'*Insert:*\x20%0',_0x2e6643['getItemLabel'](_0xccd6f6,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5bd51f=this['editor'],_0x5331e8=_0x5bd51f['locale'];_0x5bd51f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2b2357=>{if('formatBlock'!=_0x2b2357['type'])return;const {data:_0x4a6bc4}=_0x2b2357;return _0x4a6bc4&&'paragraph'==_0x4a6bc4['commandName']?{'type':'format','content':c(_0x5331e8,'*Change\x20to:*\x20%0',c(_0x5331e8,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x503fc8,{showActiveMarker:_0x19f860=!0x0}={}){return(_0x3b1a79,_0x3bc702,_0x5466ca)=>{const _0x1f494e=_0x503fc8['plugins']['get']('TrackChangesEditing'),_0x13da58=_0x3bc702['markerRange']['start'],_0x55d186=_0x3bc702['markerRange']['end'],_0x14403d=_0x503fc8['model']['schema'];if(!_0x13da58['isTouching'](_0x55d186)||!_0x13da58['nodeAfter'])return;const _0x4521bb=_0x13da58['nodeAfter'];if(_0x14403d['isBlock'](_0x4521bb)&&!_0x14403d['isLimit'](_0x4521bb)&&_0x14403d['checkChild'](_0x4521bb,'$text')){if(!_0x5466ca['consumable']['consume'](_0x3bc702['markerRange'],_0x3b1a79['name']))return;const {authorId:_0x592b27}=_0x1f494e['_splitMarkerName'](_0x3bc702['markerName']),_0x3755fe=_0x5466ca['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x592b27}),_0x3e3fb0=_0x5466ca['mapper']['toViewPosition'](_0x55d186);_0x19f860&&_0x1f494e['activeMarkers']['includes'](_0x3bc702['markerName'])&&_0x5466ca['writer']['addClass']('ck-suggestion-marker--active',_0x3755fe),_0x5466ca['writer']['insert'](_0x3e3fb0,_0x3755fe),_0x5466ca['mapper']['bindElementToMarker'](_0x3755fe,_0x3bc702['markerName']);}};}class yt extends _0x346e12{['afterInit'](){const _0x545f4b=this['editor'];if(!_0x545f4b['plugins']['has']('RemoveFormatEditing'))return;_0x545f4b['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x12d695=this['editor'];_0x12d695['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3d1619=>{if('formatBlock'!=_0x3d1619['type']&&'formatInline'!=_0x3d1619['type'])return;const {data:_0x33b724}=_0x3d1619;return _0x33b724&&'removeFormat'==_0x33b724['commandName']?{'type':'format','content':c(_0x12d695['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0x346e12{['afterInit'](){const _0x1f3d13=this['editor'];if(!_0x1f3d13['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x15c379=_0x1f3d13['plugins']['get']('TrackChangesEditing');_0x15c379['enableCommand']('goToPreviousRestrictedEditingException'),_0x15c379['enableCommand']('goToNextRestrictedEditingException');const _0x2a45db=_0x1f3d13['plugins']['get']('RestrictedEditingModeEditing');_0x2a45db['enableCommand']('trackChanges'),_0x2a45db['enableCommand']('acceptSuggestion'),_0x2a45db['enableCommand']('discardSuggestion'),_0x2a45db['enableCommand']('acceptAllSuggestions'),_0x2a45db['enableCommand']('discardAllSuggestions'),_0x2a45db['enableCommand']('acceptSelectedSuggestions'),_0x2a45db['enableCommand']('discardSelectedSuggestions');}}class St extends _0x346e12{static get['requires'](){return[_0x47504a];}['init'](){const _0x4c05bc=this['editor'],_0x38aca5=_0x4c05bc['plugins']['get']('TrackChangesEditing');_0x38aca5['enableCommand']('shiftEnter'),_0x4c05bc['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x4c05bc),{'priority':'high'}),_0x4c05bc['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x4c05bc),{'priority':'high'}),_0x4c05bc['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x33bb5e,_0x2425d3,_0x55b009)=>{_0x55b009['options']['showSuggestionHighlights']&&je(_0x4c05bc,{'showActiveMarker':!0x1})(_0x33bb5e,_0x2425d3,_0x55b009);}),_0x38aca5['descriptionFactory']['registerElementLabel']('softBreak',_0x242b05=>c(_0x4c05bc['locale'],'ELEMENT_LINE_BREAK',_0x242b05));}}function je(_0x581c6b,{showActiveMarker:_0x2b64f9=!0x0}={}){return(_0x18e76f,_0x5238a5,_0x2022a1)=>{const _0x579dbf=_0x581c6b['plugins']['get']('TrackChangesEditing');if(!_0x2022a1['consumable']['test'](_0x5238a5['markerRange'],_0x18e76f['name']))return;const _0x195b3e=_0x581c6b['model'];for(const _0x3ac0a5 of _0x5238a5['markerRange']['getItems']()){if(!_0x3ac0a5['is']('element','softBreak'))continue;const _0x2cbdd0='deletion'==_0x5238a5['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x4c4df0}=_0x579dbf['_splitMarkerName'](_0x5238a5['markerName']),_0xe706ad=_0x2022a1['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2cbdd0,'data-author-id':_0x4c4df0}),_0xf0517d=_0x2022a1['mapper']['toViewPosition'](_0x195b3e['createPositionBefore'](_0x3ac0a5));_0x2b64f9&&_0x579dbf['activeMarkers']['includes'](_0x5238a5['markerName'])&&_0x2022a1['writer']['addClass']('ck-suggestion-marker--active',_0xe706ad),_0x2022a1['writer']['insert'](_0xf0517d,_0xe706ad),_0x2022a1['mapper']['bindElementToMarker'](_0xe706ad,_0x5238a5['markerName']);}};}class At extends _0x346e12{['afterInit'](){const _0x12837a=this['editor'],_0xe19f8=_0x12837a['model'],_0x2be251=_0x12837a['locale'];if(!_0x12837a['plugins']['has']('StandardEditingModeEditing'))return;const _0x443ad0=_0x12837a['plugins']['get']('TrackChangesEditing'),_0x5a339e='restrictedEditingException',_0x297a2c=_0x12837a['commands']['get'](_0x5a339e);_0x443ad0['enableCommand'](_0x5a339e,(_0x164c59,_0x3810d1={})=>{const _0x4d75f9=_0xe19f8['document']['selection'];if(_0x4d75f9['isCollapsed'])return void _0x164c59(_0x3810d1);const _0x5c5900=void 0x0!==_0x3810d1['forceValue']?_0x3810d1['forceValue']:!_0x297a2c['value'];_0xe19f8['change'](()=>{const _0x30656b=Array['from'](_0x4d75f9['getRanges']());for(const _0x1e2a26 of _0x30656b){const _0x17edb6=_0x5c5900?[_0x1e2a26]:no(_0x5a339e,_0x1e2a26,_0xe19f8);for(const _0x4540a7 of _0x17edb6)_0x443ad0['markInlineFormat'](_0x4540a7,{'commandName':_0x5a339e,'commandParams':[{'forceValue':_0x5c5900}]});}});}),_0x443ad0['descriptionFactory']['registerDescriptionCallback'](_0x280681=>{if('formatBlock'!=_0x280681['type']&&'formatInline'!=_0x280681['type'])return;const {data:_0x51b5d9}=_0x280681;return _0x51b5d9&&_0x51b5d9['commandName']==_0x5a339e?_0x51b5d9['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x2be251,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x2be251,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x346e12{['afterInit'](){const _0x1f4c61=this['editor'];if(!_0x1f4c61['plugins']['has']('Style')||!_0x1f4c61['plugins']['has']('DataSchema'))return;const _0x45d0d8=_0x1f4c61['plugins']['get']('TrackChangesEditing'),_0x5cd2a8=_0x1f4c61['locale'],_0x1d8178=_0x1f4c61['config']['get']('style')||{},_0x4c2385=_0x1f4c61['plugins']['get']('GeneralHtmlSupport'),_0x9241cd=_0x1f4c61['plugins']['get']('StyleUtils')['normalizeConfig'](_0x1f4c61['plugins']['get']('DataSchema'),_0x1d8178['definitions']);_0x45d0d8['enableDefaultAttributesIntegration']('style');const _0x387e08=new Set();for(const _0x4f888e of _0x9241cd['block']){const _0x51fbfd=_0x4c2385['getGhsAttributeNameForElement'](_0x4f888e['element']);_0x387e08['add'](_0x51fbfd);}const _0x36dfa7=new Set();for(const _0x4bcac6 of _0x9241cd['inline']){const _0x45cefa=_0x4c2385['getGhsAttributeNameForElement'](_0x4bcac6['element']);_0x36dfa7['add'](_0x45cefa);for(const _0x3d2efc of _0x4bcac6['ghsAttributes'])_0x36dfa7['add'](_0x3d2efc);}for(const _0x2d53c5 of _0x387e08)_0x45d0d8['registerBlockAttribute'](_0x2d53c5),_0x45d0d8['descriptionFactory']['registerAttributeLabel'](_0x2d53c5,c(_0x5cd2a8,'FORMAT_STYLE'));for(const _0x26b863 of _0x36dfa7)_0x45d0d8['registerInlineAttribute'](_0x26b863),_0x45d0d8['descriptionFactory']['registerAttributeLabel'](_0x26b863,c(_0x5cd2a8,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x404efa=this['editor'],_0x231761=_0x404efa['locale'];_0x404efa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c6824=>{if('formatBlock'!=_0x2c6824['type']&&'formatInline'!=_0x2c6824['type'])return;const {data:_0x35f6ee}=_0x2c6824;return _0x35f6ee&&'style'===_0x35f6ee['commandName']?_0x35f6ee['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x231761,'*Set\x20format:*\x20%0',_0x35f6ee['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x231761,'*Remove\x20format:*\x20%0',_0x35f6ee['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class _t extends _0x346e12{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x1fc662){super(_0x1fc662),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x223f1e=this['editor'],_0xbbc033=_0x223f1e['model']['document']['selection'];if(!_0x223f1e['plugins']['has']('TableEditing'))return;const _0x25bd1c=_0x223f1e['locale'],_0x1456b5=_0x223f1e['plugins']['get']('TrackChangesEditing'),_0x1a7e98=_0x223f1e['plugins']['get']('TableUtils');_0x1456b5['descriptionFactory']['registerElementLabel']('table',_0x99f369=>c(_0x25bd1c,'ELEMENT_TABLE',_0x99f369)),this['_setupColumnsRowsFixing'](),_0x1456b5['enableCommand']('insertTable'),_0x1456b5['enableCommand']('selectTableRow'),_0x1456b5['enableCommand']('selectTableColumn');for(const _0x3fa5bd of['insertTableRowAbove','insertTableRowBelow']){const _0x296b76=_0x223f1e['commands']['get'](_0x3fa5bd);_0x1456b5['enableCommand'](_0x3fa5bd,_0x2bcf14=>{_0x223f1e['model']['change'](_0x365281=>{_0x2bcf14();const _0xb0c476='above'===_0x296b76['order'],_0x419cc6=_0x1a7e98['getSelectionAffectedTableCells'](_0xbbc033),_0x2cdbc6=_0x1a7e98['getRowIndexes'](_0x419cc6),_0x2a9db3=_0xb0c476?_0x2cdbc6['first']-0x1:_0x2cdbc6['last']+0x1,_0x40c860=_0x419cc6[0x0]['findAncestor']('table'),_0x1bead5=_0x1a7e98['createTableWalker'](_0x40c860,{'startRow':_0x2a9db3,'endRow':_0x2a9db3}),_0x175aad=Array['from'](_0x1bead5)['map'](_0x284481=>_0x365281['createRangeOn'](_0x284481['cell']));_0x1456b5['markMultiRangeInsertion'](_0x175aad,'tableRow');});});}for(const _0x15e1d4 of['insertTableColumnLeft','insertTableColumnRight']){const _0x2e5d1b=_0x223f1e['commands']['get'](_0x15e1d4);_0x1456b5['enableCommand'](_0x15e1d4,_0x3c6e86=>{_0x223f1e['model']['change'](_0x4ba9e8=>{_0x3c6e86();const _0x42aeaa='left'===_0x2e5d1b['order'],_0x481435=_0x1a7e98['getSelectionAffectedTableCells'](_0xbbc033),_0x312554=_0x1a7e98['getColumnIndexes'](_0x481435),_0x3b25d4=_0x42aeaa?_0x312554['first']-0x1:_0x312554['last']+0x1,_0x3484d2=_0x481435[0x0]['findAncestor']('table'),_0x3e78fb=_0x1a7e98['createTableWalker'](_0x3484d2,{'startRow':0x0,'column':_0x3b25d4,'includeAllSlots':!0x1}),_0xe1e5be=Array['from'](_0x3e78fb)['map'](_0x2461a5=>_0x4ba9e8['createRangeOn'](_0x2461a5['cell']));_0x1456b5['markMultiRangeInsertion'](_0xe1e5be,'tableColumn');});});}for(const _0x418641 of['removeTableRow','removeTableColumn']){const _0x502753=_0x418641['substr'](0xb),_0x266a29=_0x502753['toLowerCase'](),_0x36d827=_0x266a29['substr'](0x0,0x3)+'span',_0x20a5de='table'+_0x502753,_0xcffe46='min'+_0x502753,_0x45e0b1='max'+_0x502753;_0x1456b5['enableCommand'](_0x418641,()=>{_0x223f1e['model']['change'](_0x108fce=>{const _0x178cc8=_0x1a7e98['getSelectionAffectedTableCells'](_0xbbc033),_0x56e931=_0x178cc8[0x0]['findAncestor']('table');let _0x40c342;if('removeTableRow'==_0x418641){const _0xfeae43=_0x1a7e98['getRowIndexes'](_0x178cc8);_0x40c342={'startRow':_0xfeae43['first'],'endRow':_0xfeae43['last'],'includeAllSlots':!0x0};}else{const _0x29b350=_0x1a7e98['getColumnIndexes'](_0x178cc8);_0x40c342={'startColumn':_0x29b350['first'],'endColumn':_0x29b350['last'],'includeAllSlots':!0x0};}const _0x841e98=_0x1a7e98['createTableWalker'](_0x56e931,_0x40c342),_0x39d9a4=Array['from'](_0x841e98)['map'](({cell:_0x252fbe})=>_0x252fbe),_0x150f62=Ne(_0x39d9a4['filter'](_0x399eab=>_0x399eab['hasAttribute'](_0x36d827))),_0x120d04=Ne(_0x39d9a4['filter'](_0x5d3f95=>!_0x5d3f95['hasAttribute'](_0x36d827)))['map'](_0x434bd7=>_0x108fce['createRangeOn'](_0x434bd7)),_0x26c3a3=_0x1456b5['markMultiRangeDeletion'](_0x120d04,_0x20a5de);if(_0x26c3a3&&('tableRow'==_0x26c3a3['subType']||'tableColumn'==_0x26c3a3['subType'])){const _0x365972=this['_getSuggestionCoords'](_0x26c3a3);for(const _0x1912e0 of _0x150f62){const _0x579042=_0x108fce['createRangeOn'](_0x1912e0),_0x1468a2=_0x1a7e98['getCellLocation'](_0x1912e0),_0x17fed3=_0x1912e0['getAttribute'](_0x36d827)-0x1,_0x5b6eda=_0x365972[_0xcffe46],_0x256b59=_0x365972[_0x45e0b1];_0x5b6eda<=_0x1468a2[_0x266a29]&&_0x1468a2[_0x266a29]+_0x17fed3<=_0x256b59&&_0x26c3a3['addRange'](_0x579042);}}});});}function _0x2b48f1(_0x24c13e){const _0x397dbc=Array['from'](_0xbbc033['getRanges']())['map'](_0x298dbd=>_0x33a55c['fromRange'](_0x298dbd));_0x223f1e['model']['change'](_0x9d8afb=>{const _0xb64f97=_0x9d8afb['batch'];_0x24c13e=_0x24c13e['filter'](_0x59f964=>'$graveyard'!=_0x59f964['root']['rootName']),_0x9d8afb['setSelection'](_0x24c13e),_0x223f1e['commands']['get']('removeTableRow')['refresh'](),_0x223f1e['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x223f1e['model']['enqueueChange'](()=>{_0x223f1e['model']['enqueueChange'](_0xb64f97,_0xe210c4=>{const _0xcb521f=_0x397dbc['filter'](_0x1b5108=>'$graveyard'!=_0x1b5108['root']['rootName']);_0xcb521f['length']>0x0&&_0xe210c4['setSelection'](_0xcb521f);for(const _0x27294f of _0x397dbc)_0x27294f['detach']();});});});}function _0x13f65f(_0xa96ea5){_0x223f1e['model']['change'](_0x76e2a2=>{const _0x3c01f0=Array['from'](_0xbbc033['getRanges']())['map'](_0x21a58b=>_0x33a55c['fromRange'](_0x21a58b)),_0x3cd0f0=[];for(const _0x47bf8b of _0xa96ea5)for(const _0x4981f5 of _0x47bf8b['getItems']({'shallow':!0x0}))_0x3cd0f0['push'](_0x4981f5);for(const _0x6bd833 of _0x3cd0f0)'$graveyard'!=_0x6bd833['root']['rootName']&&(_0x76e2a2['setSelection'](_0x76e2a2['createPositionAt'](_0x6bd833,0x0)),_0x223f1e['commands']['get']('removeTableColumn')['refresh'](),_0x223f1e['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x57e52f=_0x3c01f0['filter'](_0x22413a=>'$graveyard'!=_0x22413a['root']['rootName']);_0x57e52f['length']>0x0&&_0x76e2a2['setSelection'](_0x57e52f);for(const _0x142300 of _0x3c01f0)_0x142300['detach']();});}function _0x135f90(_0x57c868,_0xbe71b4){return _0xbe71b4['every'](_0xe1d911=>_0x57c868['some'](_0x4b4007=>_0x4b4007['end']['isEqual'](_0xe1d911['start'])||_0xe1d911['end']['isEqual'](_0x4b4007['start'])));}function _0xf48ae4(_0x18cd14,_0x2f9085){return!_0x18cd14['some'](_0x15497a=>_0x2f9085['some'](_0x42d9e1=>_0x15497a['isIntersecting'](_0x42d9e1)))&&_0x18cd14['some'](_0x198e46=>_0x2f9085['some'](_0x5e872a=>_0x198e46['end']['isTouching'](_0x5e872a['start'])));}_0x223f1e['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x47881c,_0x3acd5b,_0x456cab)=>{if(!_0x456cab['options']['showSuggestionHighlights'])return;const _0x28c1b8=_0x3acd5b['item'];if(!_0x28c1b8)return;const _0xf04344=_0x456cab['mapper']['toViewElement'](_0x28c1b8);function _0x381a2f(_0x150b1b){return Array['isArray'](_0x150b1b)?_0x150b1b:[_0x150b1b];}_0xf04344&&'tableCell'===_0x28c1b8['name']&&_0x510c2f(_0xf04344,_0x456cab['writer'],(_0x4df689,_0x2848d6,_0x1c8040)=>_0x1c8040['addClass'](_0x381a2f(_0x2848d6['classes']),_0x4df689),(_0x15743f,_0x448b34,_0x4996be)=>_0x4996be['removeClass'](_0x381a2f(_0x448b34['classes']),_0x15743f));},{'priority':'highest'}),_0x1456b5['descriptionFactory']['registerDescriptionCallback'](_0x236024=>{if('insertion'!=_0x236024['type']&&'deletion'!=_0x236024['type'])return;const _0x43a414=_0x236024['getContainedElement']();if(null!=_0x43a414&&_0x43a414['is']('element','table')){if('insertion'==_0x236024['type']){const _0x4915c9=_0x236024['getItems']()['filter'](_0x375c16=>_0x375c16['is']('$textProxy'))['map'](_0xe7d1db=>_0xe7d1db['data']);if(_0x4915c9['length'])return{'type':'insertion','content':c(_0x25bd1c,'*Insert:*\x20%0',c(_0x25bd1c,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4915c9['join']('\x20')+'\x22'))};}if('deletion'==_0x236024['type']){const _0x38ebe3=_0x236024['getItems']()['filter'](_0x30f670=>_0x30f670['is']('$textProxy'))['map'](_0xe82007=>_0xe82007['data']);if(_0x38ebe3['length'])return{'type':'deletion','content':c(_0x25bd1c,'*Remove:*\x20%0',c(_0x25bd1c,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x38ebe3['join']('\x20')+'\x22'))};}}}),_0x1456b5['descriptionFactory']['registerDescriptionCallback'](_0x1c6dc2=>{if('tableRow'==_0x1c6dc2['subType']){const _0x32bf29=_0x1c6dc2['getItems']()['filter'](_0x1d787d=>_0x1d787d['is']('$textProxy'))['map'](_0x258b84=>_0x258b84['data']),_0x5dfe4b=this['_getSuggestionCoords'](_0x1c6dc2),_0x377955=_0x5dfe4b['maxRow']-_0x5dfe4b['minRow']+0x1;if('insertion'==_0x1c6dc2['type'])return _0x32bf29['length']?{'type':'insertion','content':c(_0x25bd1c,'*Insert:*\x20%0',c(_0x25bd1c,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x377955,'\x22'+_0x32bf29['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x25bd1c,'*Insert:*\x20%0',c(_0x25bd1c,'ELEMENT_TABLE_ROW',_0x377955))};if('deletion'==_0x1c6dc2['type'])return _0x32bf29['length']?{'type':'deletion','content':c(_0x25bd1c,'*Remove:*\x20%0',c(_0x25bd1c,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x377955,'\x22'+_0x32bf29['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x25bd1c,'*Remove:*\x20%0',c(_0x25bd1c,'ELEMENT_TABLE_ROW',_0x377955))};}if('tableColumn'==_0x1c6dc2['subType']){const _0x1f6e6d=_0x1c6dc2['getItems']()['filter'](_0x5a0ba1=>_0x5a0ba1['is']('$textProxy'))['map'](_0x176c95=>_0x176c95['data']),_0x9863d3=this['_getSuggestionCoords'](_0x1c6dc2),_0x4678d5=_0x9863d3['maxColumn']-_0x9863d3['minColumn']+0x1;if('insertion'==_0x1c6dc2['type'])return _0x1f6e6d['length']?{'type':'insertion','content':c(_0x25bd1c,'*Insert:*\x20%0',c(_0x25bd1c,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4678d5,'\x22'+_0x1f6e6d['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x25bd1c,'*Insert:*\x20%0',c(_0x25bd1c,'ELEMENT_TABLE_COLUMN',_0x4678d5))};if('deletion'==_0x1c6dc2['type'])return _0x1f6e6d['length']?{'type':'deletion','content':c(_0x25bd1c,'*Remove:*\x20%0',c(_0x25bd1c,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4678d5,'\x22'+_0x1f6e6d['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x25bd1c,'*Remove:*\x20%0',c(_0x25bd1c,'ELEMENT_TABLE_COLUMN',_0x4678d5))};}}),_0x1456b5['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2b48f1),_0x1456b5['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2b48f1),_0x1456b5['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x13f65f),_0x1456b5['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x13f65f),_0x1456b5['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x135f90),_0x1456b5['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x135f90),_0x1456b5['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0xf48ae4),_0x1456b5['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0xf48ae4);}['_acceptFormatSuggestionCallbackFactory'](){const _0x2742b=this['editor'],_0x5e7bca=_0x2742b['model']['document']['selection'];return(_0x54ad42,_0x114be3)=>{_0x2742b['model']['change'](_0x10f1ba=>{const {commandName:_0x4ea11e,commandParams:_0x304332}=_0x114be3;let _0x471581=_0x54ad42[0x0]['end']['nodeBefore'];_0x304332&&_0x304332[0x0]&&!0x1===_0x304332[0x0]['forceValue']&&(_0x471581=_0x54ad42[0x0]['start']['nodeAfter']);const _0x22ec5b=_0x10f1ba['createRangeIn'](_0x471581);if('$graveyard'==_0x22ec5b['root']['rootName'])return;const _0x1b458d=Array['from'](_0x5e7bca['getRanges']())['map'](_0x4f233c=>_0x33a55c['fromRange'](_0x4f233c));_0x10f1ba['setSelection'](_0x22ec5b),_0x2742b['commands']['get'](_0x4ea11e)['refresh'](),_0x304332['push']({'forceDefaultExecution':!0x0}),_0x2742b['execute'](_0x4ea11e,..._0x304332);const _0x5f0042=_0x1b458d['filter'](_0xfd1e9a=>'$graveyard'!=_0xfd1e9a['root']['rootName']);_0x5f0042['length']>0x0&&_0x10f1ba['setSelection'](_0x5f0042);for(const _0x224cc6 of _0x1b458d)_0x224cc6['detach']();});};}['_getCoordsForCells'](_0x2d9738){const _0xfaa3d5=this['editor']['plugins']['get']('TableUtils');let _0x17b104=Number['MAX_SAFE_INTEGER'],_0x2b84ec=Number['MIN_SAFE_INTEGER'],_0x2ab1ab=Number['MAX_SAFE_INTEGER'],_0x121589=Number['MIN_SAFE_INTEGER'];for(const _0x19235f of _0x2d9738){if('$graveyard'==_0x19235f['root']['rootName'])continue;const {row:_0x1e7ad2,column:_0x513f8f}=_0xfaa3d5['getCellLocation'](_0x19235f),_0x3c91b3=_0x19235f['hasAttribute']('rowspan')?_0x19235f['getAttribute']('rowspan')-0x1:0x0,_0x372035=_0x19235f['hasAttribute']('colspan')?_0x19235f['getAttribute']('colspan')-0x1:0x0;_0x17b104=_0x1e7ad2<_0x17b104?_0x1e7ad2:_0x17b104,_0x2b84ec=_0x1e7ad2+_0x3c91b3>_0x2b84ec?_0x1e7ad2+_0x3c91b3:_0x2b84ec,_0x2ab1ab=_0x513f8f<_0x2ab1ab?_0x513f8f:_0x2ab1ab,_0x121589=_0x513f8f+_0x372035>_0x121589?_0x513f8f+_0x372035:_0x121589;}return{'minRow':_0x17b104,'maxRow':_0x2b84ec,'minColumn':_0x2ab1ab,'maxColumn':_0x121589};}['_setupColumnsRowsFixing'](){const _0x30c83d=this['editor'],_0x35b036=_0x30c83d['plugins']['get']('TrackChangesEditing'),_0x354fae=_0x30c83d['plugins']['get']('TableUtils');_0x30c83d['model']['document']['on']('change:data',()=>{const _0x587434=Array['from'](_0x30c83d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1d0c7b,data:_0x41df1c}of _0x587434){const {group:_0x1ed658,id:_0x48e852,subType:_0x27a714}=_0x35b036['_splitMarkerName'](_0x1d0c7b);if('suggestion'!=_0x1ed658)continue;if(null!=_0x41df1c['oldRange'])continue;const _0x3dd4ea=_0x35b036['getSuggestion'](_0x48e852);this['_tablePostFixingSubtypes']['includes'](_0x27a714)&&this['_tableSuggestions']['add'](_0x3dd4ea);}},{'priority':'low'});const _0x59a752=(_0x50a4ec,_0x405ca5)=>{let _0x5f3d42=!0x1;const _0x401d0d=_0x405ca5['createRangeOn'](_0x50a4ec),_0x398dad=_0x50a4ec['findAncestor']('table'),_0x1678a1=_0x354fae['getCellLocation'](_0x50a4ec);for(const _0x4b1ba4 of this['_tableSuggestions']){const _0x3c568a=_0x4b1ba4['subType'],_0xb808b7=_0x3c568a['startsWith']('tablePaste'),_0x2a1a0e=_0x3c568a['substr'](_0xb808b7?0xa:0x5),_0x18bb78=_0x2a1a0e['toLowerCase'](),_0xdb9238=_0x18bb78['substr'](0x0,0x3)+'span',_0x447ca5='min'+_0x2a1a0e,_0x1ebbce='max'+_0x2a1a0e;if(!_0x4b1ba4['isInContent'])continue;if(_0x398dad!=_0x4b1ba4['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x4b1ba4['isIntersectingWithRange'](_0x401d0d))continue;const _0x42e195=_0x50a4ec['hasAttribute'](_0xdb9238)?_0x50a4ec['getAttribute'](_0xdb9238)-0x1:0x0,_0x51767c=this['_getSuggestionCoords'](_0x4b1ba4),_0x492c57=_0x51767c[_0x447ca5],_0x486989=_0x51767c[_0x1ebbce];_0x492c57<=_0x1678a1[_0x18bb78]&&_0x1678a1[_0x18bb78]+_0x42e195<=_0x486989&&(_0x4b1ba4['addRange'](_0x401d0d),_0x5f3d42=!0x0);}return _0x5f3d42;};_0x30c83d['model']['document']['registerPostFixer'](_0x23b0ea=>{let _0x20be5b=!0x1;for(const _0x202903 of _0x30c83d['model']['document']['differ']['getChanges']())if('insert'==_0x202903['type']){if('tableRow'==_0x202903['name']){for(const _0x3a77d9 of _0x202903['position']['nodeAfter']['getChildren']())_0x20be5b=_0x20be5b||_0x59a752(_0x3a77d9,_0x23b0ea);}else'tableCell'==_0x202903['name']&&(_0x20be5b=_0x20be5b||_0x59a752(_0x202903['position']['nodeAfter'],_0x23b0ea));}return _0x20be5b;});}['_getSuggestionCoords'](_0x3de181){return this['_getCoordsForCells'](_0x3de181['getRanges']()['map'](_0x14c3d0=>_0x14c3d0['start']['nodeAfter']));}}function Ne(_0x1a769a){return Array['from'](new Set(_0x1a769a)['values']());}class vt extends _0x346e12{static get['requires'](){return[_t];}['afterInit'](){const _0x598f1b=this['editor'],_0x45da39=_0x598f1b['model']['document']['selection'],_0x5cbb7c=_0x598f1b['locale'];if(!_0x598f1b['plugins']['has']('TableEditing'))return;const _0x1ba4c3=_0x598f1b['plugins']['get']('TrackChangesEditing'),_0x43bae9=_0x598f1b['plugins']['get']('TableUtils'),_0x3af2d5=_0x598f1b['plugins']['get'](_t);_0x3af2d5['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x1ba4c3['enableCommand']('mergeTableCells',()=>{const _0x4f986e=_0x43bae9['getSelectionAffectedTableCells'](_0x598f1b['model']['document']['selection']);_0x598f1b['model']['change'](()=>{_0x1ba4c3['markMultiRangeBlockFormat'](_0x4f986e,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x598f1b['commands']['get']('mergeTableCells')['on']('execute',(_0x16d20a,_0x36a6bf)=>{_0x598f1b['commands']['get']('trackChanges')['value']&&(_0x36a6bf['length']>0x0&&_0x36a6bf[_0x36a6bf['length']-0x1]&&_0x36a6bf[_0x36a6bf['length']-0x1]['forceDefaultExecution']||_0x1ba4c3['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x16d20a['stop']());},{'priority':'highest'});for(const _0xa302fc of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x15b503=_0x598f1b['commands']['get'](_0xa302fc);_0x1ba4c3['enableCommand'](_0xa302fc,()=>{const _0x2d3c45=_0x598f1b['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3c04fe=>_0x3c04fe['is']('element','tableCell')),_0x238b13=_0x15b503['value'];_0x598f1b['model']['change'](()=>{_0x1ba4c3['markMultiRangeBlockFormat']([_0x2d3c45,_0x238b13],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x7490b5 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x5c7a5b=_0x598f1b['commands']['get'](_0x7490b5);_0x1ba4c3['enableCommand'](_0x7490b5,()=>{const _0x46dba1=_0x43bae9['getSelectionAffectedTableCells'](_0x598f1b['model']['document']['selection'])[0x0],_0x110e61=_0x46dba1['findAncestor']('table'),{column:_0x527ea0,row:_0x285414}=_0x43bae9['getCellLocation'](_0x46dba1);let _0x52afc7=[];if('horizontally'==_0x5c7a5b['direction']){const _0x483d7f=_0x43bae9['createTableWalker'](_0x110e61,{'startRow':_0x285414,'endRow':_0x285414,'includeAllSlots':!0x0});_0x52afc7=Array['from'](_0x483d7f)['map'](_0x184604=>_0x184604['cell']);}else{const _0x467011=_0x43bae9['createTableWalker'](_0x110e61,{'column':_0x527ea0,'includeAllSlots':!0x0});_0x52afc7=Array['from'](_0x467011)['map'](_0x2fd071=>_0x2fd071['cell']);}_0x598f1b['model']['change'](_0x195c3b=>{_0x1ba4c3['markBlockFormat'](_0x195c3b['createRangeOn'](_0x46dba1),{'commandName':_0x7490b5,'commandParams':[]},_0x52afc7,_0x7490b5);});});}_0x1ba4c3['descriptionFactory']['registerDescriptionCallback'](_0x2d36f8=>{if('formatBlock'!=_0x2d36f8['type']&&'formatInline'!=_0x2d36f8['type'])return;const {data:_0x179480}=_0x2d36f8;return _0x179480&&'mergeTableCells'==_0x179480['commandName']?{'type':'format','content':c(_0x5cbb7c,'*Merge\x20cells*')}:void 0x0;}),_0x1ba4c3['descriptionFactory']['registerDescriptionCallback'](_0x509276=>{if('formatBlock'!=_0x509276['type']&&'formatInline'!=_0x509276['type'])return;const {data:_0x15c77c}=_0x509276;return _0x15c77c?'splitTableCellVertically'==_0x15c77c['commandName']?{'type':'format','content':c(_0x5cbb7c,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x15c77c['commandName']?{'type':'format','content':c(_0x5cbb7c,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x192209=_0x3af2d5['_acceptFormatSuggestionCallbackFactory']();for(const _0x1f929a of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x1ba4c3['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1f929a,'accept',_0x192209);for(const _0x4c3288 of['splitTableCellVertically','splitTableCellHorizontally'])_0x1ba4c3['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4c3288,'accept',_0x192209);_0x1ba4c3['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x305a74=>{_0x598f1b['model']['change'](_0x18bf65=>{const _0x53746c=Array['from'](_0x45da39['getRanges']())['map'](_0x527559=>_0x33a55c['fromRange'](_0x527559));_0x18bf65['setSelection'](_0x305a74),_0x598f1b['commands']['get']('mergeTableCells')['refresh'](),_0x598f1b['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x5dd26b=_0x53746c['filter'](_0x18ca15=>'$graveyard'!=_0x18ca15['root']['rootName']);_0x5dd26b['length']>0x0&&_0x18bf65['setSelection'](_0x5dd26b);for(const _0x409f3d of _0x53746c)_0x409f3d['detach']();});});for(const _0x3d28a8 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x29f7c0=_0x598f1b['commands']['get'](_0x3d28a8);_0x29f7c0['on']('set:isEnabled',(_0x20694a,_0x4153f5,_0x75fc16)=>{if(_0x75fc16){const _0x3c49d7=_0x598f1b['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x45d0cb=>_0x45d0cb['is']('element','tableCell'));this['_areMergableCells'](_0x29f7c0['value'],_0x3c49d7)||(_0x20694a['return']=!0x1,_0x20694a['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x4ee404=this['editor']['commands']['get']('mergeTableCells'),_0x5638a3=this['editor']['plugins']['get']('TableUtils');if(!_0x4ee404['isEnabled'])return!0x1;const _0x4e5af6=_0x5638a3['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x5126a2 of _0x4e5af6)for(const _0x3d4985 of _0x4e5af6)if(_0x5126a2!=_0x3d4985&&!this['_areMergableCells'](_0x5126a2,_0x3d4985))return!0x1;return!0x0;}['_areMergableCells'](_0x20161a,_0x3a038b){const _0x3448df=this['editor']['plugins']['get']('TrackChangesEditing'),_0xe977e=this['editor']['model']['createRangeOn'](_0x20161a),_0x295ca2=this['editor']['model']['createRangeOn'](_0x3a038b),_0x124b6f=new Set(),_0x27fab1=new Set();for(const _0x18bf28 of _0x3448df['getSuggestions']())if(('insertion'==_0x18bf28['type']||'deletion'==_0x18bf28['type']||'mergeTableCells'==_0x18bf28['subType'])&&_0x18bf28['isInContent']){for(const _0x2fba5a of _0x18bf28['getRanges']())_0x2fba5a['containsRange'](_0xe977e,!0x0)&&_0x124b6f['add'](_0x18bf28['type']+':'+_0x18bf28['author']['id']),_0x2fba5a['containsRange'](_0x295ca2,!0x0)&&_0x27fab1['add'](_0x18bf28['type']+':'+_0x18bf28['author']['id']);}if(_0x124b6f['size']!=_0x27fab1['size'])return!0x1;for(const _0x364cd5 of _0x124b6f)if(!_0x27fab1['has'](_0x364cd5))return!0x1;return!0x0;}}class Ct extends _0x346e12{static get['requires'](){return[_t];}['afterInit'](){const _0x4560aa=this['editor'];if(!_0x4560aa['plugins']['has']('TableEditing'))return;const _0x46b55e=_0x4560aa['locale'],_0xa71c38=_0x4560aa['plugins']['get']('TrackChangesEditing');_0xa71c38['enableDefaultAttributesIntegration']('setTableRowHeader'),_0xa71c38['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0xa71c38['registerBlockAttribute']('headingRows'),_0xa71c38['registerBlockAttribute']('headingColumns'),_0xa71c38['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x46b55e,'FORMAT_HEADER_ROW')),_0xa71c38['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x46b55e,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4385ea=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1b3eda=this['editor']['plugins']['get']('TableUtils'),_0x3f05d4=this['editor']['plugins']['get'](_t)['_acceptFormatSuggestionCallbackFactory']();function _0x1f5418({showActiveMarker:_0x3dfa9d=!0x0,setDataAttribute:_0x9f256b=!0x0}={}){return(_0x287557,_0x15d5c7,_0x29f275)=>{const {type:_0x45fcf8,id:_0x3747f6}=_0x4385ea['_splitMarkerName'](_0x15d5c7['markerName']),_0x296afa=_0x4385ea['getSuggestion'](_0x3747f6),_0x34cd64=_0x296afa['data'];if('formatBlock'!=_0x296afa['type']||!_0x34cd64||'setTableColumnHeader'!=_0x34cd64['commandName'])return;if(_0x15d5c7['item'])return void _0x287557['stop']();if(!_0x29f275['consumable']['consume'](_0x15d5c7['markerRange'],_0x287557['name']))return;const _0x7d1433=_0x15d5c7['markerRange']['start']['nodeAfter'],_0x2df22d=_0x15d5c7['markerRange']['end']['nodeBefore'],_0x3d35b2=_0x7d1433['parent']['parent'],{column:_0x2f7ade}=_0x1b3eda['getCellLocation'](_0x7d1433),{column:_0x4e31f6}=_0x1b3eda['getCellLocation'](_0x2df22d);for(let _0x33bc4a=_0x2f7ade;_0x33bc4a<=_0x4e31f6;_0x33bc4a++){const _0x6240dd=_0x1b3eda['createTableWalker'](_0x3d35b2,{'column':_0x33bc4a,'includeAllSlots':!0x1});for(const _0x517af5 of _0x6240dd){const _0x5b33b0=_0x517af5['cell'],_0x2bbb29=_0x29f275['mapper']['toViewElement'](_0x5b33b0);_0x29f275['writer']['addClass']('ck-suggestion-marker-'+_0x45fcf8,_0x2bbb29),_0x9f256b&&_0x29f275['writer']['setAttribute']('data-suggestion',_0x3747f6,_0x2bbb29),_0x29f275['mapper']['bindElementToMarker'](_0x2bbb29,_0x15d5c7['markerName']),_0x3dfa9d&&(_0x4385ea['activeMarkers']['includes'](_0x15d5c7['markerName'])?_0x29f275['writer']['addClass']('ck-suggestion-marker--active',_0x2bbb29):_0x29f275['writer']['removeClass']('ck-suggestion-marker--active',_0x2bbb29));}}};}_0x4385ea['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x3f05d4),_0x4385ea['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x3f05d4),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x1f5418(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x45b84c,_0x338a38,_0x253dc1)=>{_0x253dc1['options']['showSuggestionHighlights']&&_0x1f5418({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x45b84c,_0x338a38,_0x253dc1);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x2282e2,_0x395269,_0x52ead7)=>{const {type:_0x13531d,id:_0x2bba4a}=_0x4385ea['_splitMarkerName'](_0x395269['markerName']),_0x12aae0=_0x4385ea['getSuggestion'](_0x2bba4a),_0x8d76d=_0x12aae0['data'];if('formatBlock'!=_0x12aae0['type']||!_0x8d76d||'setTableColumnHeader'!=_0x8d76d['commandName'])return;const _0x43358a=_0x52ead7['mapper']['markerNameToElements'](_0x395269['markerName']);if(_0x43358a){for(const _0xe3c3e8 of _0x43358a)_0x52ead7['writer']['removeClass']('ck-suggestion-marker-'+_0x13531d,_0xe3c3e8),_0x52ead7['writer']['removeClass']('ck-suggestion-marker--active',_0xe3c3e8),_0x52ead7['writer']['removeAttribute']('data-suggestion',_0xe3c3e8),_0x52ead7['mapper']['unbindElementFromMarkerName'](_0xe3c3e8,_0x395269['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x62b23c=this['editor'],_0x39cf8c=_0x62b23c['locale'];function _0x2bb7f6(_0x4e6c74){return{'type':'format','content':c(_0x39cf8c,'*Format:*\x20%0',_0x4e6c74)};}_0x62b23c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x307ae5=>{if('formatBlock'!=_0x307ae5['type'])return;const {data:_0x243c6e}=_0x307ae5;if(_0x243c6e){if('setTableRowHeader'==_0x243c6e['commandName']){const _0x1db3ab=_0x243c6e['commandParams'][0x0]['forceValue'];return _0x2bb7f6(c(_0x39cf8c,_0x1db3ab?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x243c6e['commandName']){const _0x579e56=_0x243c6e['commandParams'][0x0]['forceValue'];return _0x2bb7f6(c(_0x39cf8c,_0x579e56?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x127191=>[_0x127191,null]));class Nt extends _0x346e12{static get['requires'](){return[_t];}['afterInit'](){const _0x279bac=this['editor'];if(!_0x279bac['plugins']['has']('TableClipboard'))return;const _0x192ef0=_0x279bac['plugins']['get']('TrackChangesEditing'),_0x37983d=_0x279bac['plugins']['get']('TableUtils'),_0x5dc28f=_0x279bac['plugins']['get'](_t),_0x4758a2=_0x279bac['plugins']['get']('TableClipboard');_0x5dc28f['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x279bac['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x279bac['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x299481=null;_0x279bac['model']['on']('insertContent',(_0x257c25,_0xd9f231)=>{const [_0x184001,_0x896a58]=_0xd9f231,_0x1f9d07=_0xd9f231[_0xd9f231['length']-0x1];_0x1f9d07&&_0x1f9d07['forceDefaultExecution']||_0x192ef0['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x2c9d9f,_0x515c1c,_0x52bf2e,_0x35a19a,_0x29e3be){if(_0x515c1c&&!_0x515c1c['is']('documentSelection'))return!0x1;const _0x4b7b03=_0x29e3be['getTableIfOnlyTableInContent'](_0x2c9d9f,_0x52bf2e);if(!_0x4b7b03||!Ue(_0x4b7b03,void 0x0,_0x35a19a))return!0x1;const _0x2d4ed0=_0x35a19a['getSelectionAffectedTableCells'](_0x52bf2e['document']['selection']);if(!_0x2d4ed0['length'])return!0x1;const _0x54b7b2=_0x2d4ed0[0x0]['findAncestor']('table'),_0x17264a=_0x35a19a['getRowIndexes'](_0x2d4ed0),_0x10b3be=_0x35a19a['getColumnIndexes'](_0x2d4ed0),_0x165f9d={'startRow':_0x17264a['first'],'endRow':_0x17264a['last'],'startColumn':_0x10b3be['first'],'endColumn':_0x10b3be['last']};return 0x1==_0x2d4ed0['length']&&(_0x165f9d['endRow']+=_0x35a19a['getRows'](_0x4b7b03)-0x1,_0x165f9d['endColumn']+=_0x35a19a['getColumns'](_0x4b7b03)-0x1),Ue(_0x54b7b2,_0x165f9d,_0x35a19a);}(_0x184001,_0x896a58,_0x279bac['model'],_0x37983d,_0x4758a2)&&(_0x257c25['stop'](),_0x299481={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x279bac['model']['change'](()=>{_0x279bac['model']['insertContent'](_0xd9f231[0x0],_0xd9f231[0x1],_0xd9f231[0x2],{'forceDefaultExecution':!0x0});const _0xef75b9=_0xb11af3(),{rowInsertionRanges:_0x32ba39,columnInsertionRanges:_0x1b8fa1,insertionRanges:_0x5eb386,deletionRanges:_0x5d8ead,cells:_0x3a566c}=_0x299481;_0x32ba39['length']&&_0x192ef0['markMultiRangeInsertion'](_0x32ba39,'tablePasteRow',{'tablePasteChainId':_0xef75b9}),_0x1b8fa1['length']&&_0x192ef0['markMultiRangeInsertion'](_0x1b8fa1,'tablePasteColumn',{'tablePasteChainId':_0xef75b9}),_0x5eb386['length']&&(_0x192ef0['markMultiRangeInsertion'](_0x5eb386,'tablePaste',{'tablePasteChainId':_0xef75b9,'skipNestingCheck':!0x0}),_0x5eb386['forEach'](_0x5554c3=>_0x5554c3['detach']?.())),_0x5d8ead['length']&&(_0x192ef0['markMultiRangeDeletion'](_0x5d8ead,'tablePaste',{'tablePasteChainId':_0xef75b9,'skipNestingCheck':!0x0}),_0x5d8ead['forEach'](_0x62f9d5=>_0x62f9d5['detach']?.()));const _0x26a7ad=_0x192ef0['markMultiRangeBlockFormat'](_0x3a566c['map'](({element:_0x20ca87})=>_0x20ca87),{'formatGroupId':_0xb11af3()},[],'tablePasteCell',{'tablePasteChainId':_0xef75b9});if(_0x26a7ad){const _0x14979e=_0x26a7ad['getMarkers'](),_0x22540f=[];for(const {element:_0x304692,attributes:_0x124444}of _0x3a566c){if(!_0x124444)continue;const _0x443377=_0x279bac['model']['createRangeOn'](_0x304692),_0x3d0bf6=_0x14979e['find'](_0x57c8ec=>_0x57c8ec['getRange']()['isEqual'](_0x443377));_0x3d0bf6&&_0x22540f['push']([_0x3d0bf6['name'],_0x124444]);}_0x22540f['length']&&_0x26a7ad['setAttribute']('markerAttributes',Object['fromEntries'](_0x22540f));}_0x299481=null;}));},{'priority':_0x1afaee['high']+0xa}),_0x279bac['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x1d9551,_0x50e855)=>{const [_0x1c0a4d,_0x2db409,,_0x58237e]=_0x50e855;if(!_0x299481)return;_0x1d9551['stop']();const _0x6abb2f=_0x1c0a4d['cell'],_0x372b0d=_0x2db409,_0x1b7ae7=Oe(_0x6abb2f),_0x402e0e=Oe(_0x372b0d);_0x1d9551['return']=_0x6abb2f;let _0x43b53a=null,_0x2d8b24=null;if(_0x402e0e||_0x1b7ae7){if(_0x1b7ae7&&!_0x402e0e){_0x58237e['remove'](_0x6abb2f['getChild'](0x0));for(const _0x5d0200 of Array['from'](_0x372b0d['getChildren']()))_0x58237e['insert'](_0x5d0200,_0x6abb2f,'end');const _0x1ccddf=_0x299481['rowInsertionIndexes']['includes'](_0x1c0a4d['row']),_0x4e9502=_0x299481['columnInsertionIndexes']['includes'](_0x1c0a4d['column']);_0x1ccddf||_0x4e9502||(_0x43b53a=_0x33a55c['fromRange'](_0x58237e['createRangeIn'](_0x6abb2f)));}else _0x402e0e&&!_0x1b7ae7&&(_0x2d8b24=_0x58237e['createRangeIn'](_0x6abb2f));}else{const _0x1fd9ae=_0x58237e['createElement']('tableCellSuggestion'),_0x48ccc9=_0x58237e['createElement']('tableCellSuggestion');_0x58237e['wrap'](_0x58237e['createRangeIn'](_0x6abb2f),_0x48ccc9),_0x58237e['insert'](_0x1fd9ae,_0x6abb2f,0x0);for(const _0x2d7786 of Array['from'](_0x372b0d['getChildren']()))_0x58237e['insert'](_0x2d7786,_0x1fd9ae,'end');_0x43b53a=_0x33a55c['fromRange'](_0x58237e['createRangeOn'](_0x1fd9ae)),_0x2d8b24=_0x33a55c['fromRange'](_0x58237e['createRangeOn'](_0x48ccc9));}const _0x452751=Array['from'](_0x372b0d['getAttributes']())['filter'](([_0x4be406])=>Be['includes'](_0x4be406));_0x299481['cells']['push']({'element':_0x6abb2f,'attributes':_0x452751['length']?Object['fromEntries'](_0x452751):null}),_0x43b53a&&_0x299481['insertionRanges']['push'](_0x43b53a),_0x2d8b24&&_0x299481['deletionRanges']['push'](_0x2d8b24);},{'priority':'high'}),_0x37983d['on']('insertColumns',(_0x19a8c9,_0x373153)=>{const [_0x156459,_0x2a2fb9={}]=_0x373153;if(!_0x299481)return;const _0x5b333d=_0x2a2fb9['at']||0x0,_0x539e60=_0x2a2fb9['columns']||0x1;_0x299481['columnInsertionIndexes']=new Array(_0x539e60)['fill'](_0x5b333d)['map']((_0x1220d7,_0x1ca37a)=>_0x1220d7+_0x1ca37a);for(const {cell:_0x54daf0}of _0x37983d['createTableWalker'](_0x156459,{'startColumn':_0x5b333d,'endColumn':_0x5b333d+_0x539e60-0x1}))_0x299481['columnInsertionRanges']['push'](_0x279bac['model']['createRangeOn'](_0x54daf0));},{'priority':'low'}),_0x37983d['on']('insertRows',(_0x4b148d,_0x296400)=>{const [_0xe24a2b,_0x2159b9={}]=_0x296400;if(!_0x299481)return;const _0x138b86=_0x2159b9['at']||0x0,_0x9df0fe=_0x2159b9['rows']||0x1;_0x299481['rowInsertionIndexes']=new Array(_0x9df0fe)['fill'](_0x138b86)['map']((_0x5ef899,_0x1302ab)=>_0x5ef899+_0x1302ab);for(const {cell:_0x23eab1}of _0x37983d['createTableWalker'](_0xe24a2b,{'startRow':_0x138b86,'endRow':_0x138b86+_0x9df0fe-0x1}))_0x299481['rowInsertionRanges']['push'](_0x279bac['model']['createRangeOn'](_0x23eab1));},{'priority':'low'}),_0x192ef0['descriptionFactory']['registerDescriptionCallback'](_0x3fb0d7=>{if(_0x3fb0d7['subType']&&_0x3fb0d7['subType']['startsWith']('tablePaste'))return _0x3fb0d7['previous']?{}:{'type':'insertion','content':c(_0x279bac['locale'],'*Replace\x20table\x20cells*')};});const _0x9fcae1=()=>!0x1;for(const _0x3ad3a0 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x192ef0['_suggestionFactory']['registerCustomCallback']('insertion',_0x3ad3a0,'join',_0x9fcae1),_0x192ef0['_suggestionFactory']['registerCustomCallback']('deletion',_0x3ad3a0,'join',_0x9fcae1),_0x192ef0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3ad3a0,'join',_0x9fcae1);_0x192ef0['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x9fcae1),_0x192ef0['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x53c260,_0x21b307,_0x253285)=>{const _0x229b43=_0x53c260['map'](_0x586024=>_0x586024['getContainedElement']())['filter'](_0x3b05d4=>_0x3b05d4),_0x45cf8b=new Map(_0x229b43['map'](_0x256eb5=>[_0x256eb5,null]));if(_0x299481){for(const {element:_0x385c88,attributes:_0x3ec01a}of _0x299481['cells'])_0x3ec01a&&_0x45cf8b['set'](_0x385c88,_0x3ec01a);}else{if(_0x253285&&_0x253285['markerAttributes'])for(const [_0x3c83ec,_0xd48bc9]of Object['entries'](_0x253285['markerAttributes'])){const _0x55bea1=_0x279bac['model']['markers']['get'](_0x3c83ec),_0x3d62dd=_0x55bea1?_0x55bea1['getRange']()['getContainedElement']():null;_0x3d62dd&&_0x45cf8b['set'](_0x3d62dd,_0xd48bc9);}}_0x279bac['model']['change'](_0x36beac=>{for(const [_0x16546a,_0x4452d9]of _0x45cf8b)_0x36beac['setAttributes']({...xe,..._0x4452d9},_0x16546a);});});const _0x2b55f7=(_0x48315e,_0x3037b9)=>{_0x192ef0['_suggestionFactory']['registerCustomCallback'](_0x48315e,'tablePaste',_0x3037b9,(_0x3065d8,_0x5c54b7,_0x2a54ec)=>{_0x279bac['model']['change'](_0x58cc50=>{const _0x45c533=[];for(const _0x5aca97 of _0x3065d8){const _0x59f6b2=_0x5aca97['start']['nodeAfter'];_0x59f6b2['is']('element','tableCellSuggestion')&&_0x45c533['push'](_0x59f6b2);}_0x192ef0['_suggestionFactory']['getSuggestionCallback'](_0x48315e,null,_0x3037b9)(_0x3065d8,_0x5c54b7,_0x2a54ec);for(const _0x4cb33d of _0x45c533)'$graveyard'!=_0x4cb33d['root']['rootName']&&_0x58cc50['unwrap'](_0x4cb33d);});});};_0x2b55f7('insertion','accept'),_0x2b55f7('insertion','discard'),_0x2b55f7('deletion','accept'),_0x2b55f7('deletion','discard'),_0x192ef0['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x55265c=>{const _0x106600=_0x55265c['map'](_0x9cbeee=>_0x9cbeee['getContainedElement']()),_0x58bca3=_0x106600[0x0]['findAncestor']('table'),{minRow:_0x2fbce3,maxRow:_0x13afe7}=_0x5dc28f['_getCoordsForCells'](_0x106600);_0x37983d['removeRows'](_0x58bca3,{'at':_0x2fbce3,'rows':_0x13afe7-_0x2fbce3+0x1});}),_0x192ef0['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x1a8d12=>{const _0x44d46f=_0x1a8d12['map'](_0x3b4fc1=>_0x3b4fc1['getContainedElement']()),_0x3c17d5=_0x44d46f[0x0]['findAncestor']('table'),{minColumn:_0x24e621,maxColumn:_0x58ce28}=_0x5dc28f['_getCoordsForCells'](_0x44d46f);_0x37983d['removeColumns'](_0x3c17d5,{'at':_0x24e621,'columns':_0x58ce28-_0x24e621+0x1});});const _0x3f19f9=(_0x39fc6e,_0x397449)=>{if(!_0x397449['subType']||!_0x397449['subType']['startsWith']('tablePaste'))return;const _0x33aa1a=_0x397449['attributes']['tablePasteChainId'],_0x1503a0=_0x192ef0['getSuggestions']()['filter'](_0x493fd4=>_0x493fd4['isInContent']&&_0x493fd4['attributes']&&_0x493fd4['attributes']['tablePasteChainId']==_0x33aa1a);_0x1503a0['length']&&_0x397449['getAllAdjacentSuggestions']()['length']!=_0x1503a0['length']&&_0x1503a0['reduce']((_0xa1dda0,_0x2555e0)=>(_0xa1dda0['next']=_0x2555e0,_0x2555e0['previous']=_0xa1dda0,_0x2555e0));};function _0x430ecb(_0x28fdbc,_0x84bdd4=!0x0){const {id:_0x114b67,authorId:_0x2030f3}=_0x192ef0['_splitMarkerName'](_0x28fdbc['markerName']),_0x29375c=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0xe141f=_0x192ef0['activeMarkers']['includes'](_0x28fdbc['markerName']);return _0xe141f&&_0x29375c['push']('ck-suggestion-marker--active'),{'classes':_0x29375c,'attributes':{'data-suggestion':_0x114b67,'data-author-id':_0x2030f3},'priority':_0xe141f&&_0x84bdd4?0xbc2:0xbb8};}_0x192ef0['on']('suggestionLoaded',_0x3f19f9,{'priority':'high'}),_0x192ef0['on']('suggestionUnloaded',_0x3f19f9,{'priority':'high'}),_0x279bac['model']['document']['registerPostFixer'](()=>{let _0x222535=!0x1;const _0xcdf87f=Array['from'](_0x279bac['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5939a0,data:_0x3d5d3f}of _0xcdf87f){const {group:_0x542e8f,type:_0x30f209,id:_0x219cea}=_0x192ef0['_splitMarkerName'](_0x5939a0);if('suggestion'!=_0x542e8f||'deletion'!=_0x30f209||_0x3d5d3f['oldRange'])continue;if(!_0x192ef0['hasSuggestion'](_0x219cea))continue;const _0xfefe44=_0x192ef0['getSuggestion'](_0x219cea)['getRanges'](),_0x2bccb7=_0x279bac['plugins']['get']('Users')['me'];for(const _0x1dbb06 of _0x192ef0['getSuggestions']()){if(!_0x1dbb06['isInContent']||_0x1dbb06['author']!=_0x2bccb7)continue;if('formatBlock'!=_0x1dbb06['type']||'tablePasteCell'!=_0x1dbb06['subType'])continue;if(_0x1dbb06['getRanges']()['every'](_0x3aa7be=>_0xfefe44['some'](_0x25acdd=>_0x25acdd['containsRange'](_0x3aa7be,!0x0)))){for(const _0x5bb7e3 of _0x1dbb06['getAllAdjacentSuggestions']())_0x5bb7e3['isInContent']&&(_0x5bb7e3['discard'](),_0x222535=!0x0);}}}return _0x222535;}),_0x279bac['model']['document']['registerPostFixer'](_0x3f1272=>{const _0x54feca=_0x279bac['commands']['get']('redo');if(!_0x54feca||!_0x54feca['_createdBatches']['has'](_0x3f1272['batch']))return!0x1;let _0x44319b=!0x1;const _0xcf3a06=_0x279bac['plugins']['get']('Users')['me'],_0x27844c=_0x279bac['model']['document']['differ']['getChanges'](),_0x3c51d1=Array['from'](_0x279bac['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x193bb4,data:_0x27b3c9})=>{const {group:_0x3df7b8,subType:_0x27f994,authorId:_0x2ef558}=_0x192ef0['_splitMarkerName'](_0x193bb4);return'suggestion'==_0x3df7b8&&'tablePaste'==_0x27f994&&_0x2ef558==_0xcf3a06['id']&&!_0x27b3c9['oldRange'];});for(const _0x5e7a83 of _0x27844c){if('insert'!=_0x5e7a83['type']||'tableCellSuggestion'!=_0x5e7a83['name']||0x1!=_0x5e7a83['length'])continue;const _0x402116=_0x3f1272['createRange'](_0x5e7a83['position'],_0x5e7a83['position']['getShiftedBy'](0x1));if(!_0x3c51d1['find'](({data:_0x3ec8c9})=>_0x3ec8c9['newRange']['isEqual'](_0x402116))){for(const {name:_0x414b19,data:_0x2b48ea}of _0x3c51d1)if(_0x402116['containsRange'](_0x2b48ea['newRange'])){_0x3f1272['updateMarker'](_0x414b19,{'range':_0x402116}),_0x44319b=!0x0;break;}}}return _0x44319b;}),_0x279bac['model']['document']['registerPostFixer'](_0x1a9456=>{let _0x1a17cc=!0x1;const _0x2bfa97=_0x279bac['plugins']['get']('Users')['me'],_0x23a441=_0x192ef0['getSuggestions']()['filter'](_0x350c86=>_0x350c86['isInContent']&&_0x350c86['author']==_0x2bfa97),_0x2451cf=new Set(),_0x5874d9=new Set();for(const _0x44e166 of _0x23a441)if('tablePaste'==_0x44e166['subType'])for(const _0xdc8506 of _0x44e166['getMarkers']()){const _0x36c84a=_0xdc8506['getRange']()['getContainedElement']();if(_0x36c84a){if(_0x36c84a['is']('element','tableCellSuggestion')&&Oe(_0x36c84a)){_0x44e166['removeMarker'](_0xdc8506['name']),_0x2451cf['add'](_0x36c84a),_0x1a17cc=!0x0;const _0x168092=_0x36c84a['nextSibling'],_0x56a3b7=_0x36c84a['previousSibling'],_0xf4280e=_0x168092&&_0x168092['is']('element','tableCellSuggestion'),_0x336e87=_0x56a3b7&&_0x56a3b7['is']('element','tableCellSuggestion');_0xf4280e&&!_0x2451cf['has'](_0x168092)&&_0x5874d9['add'](_0x168092),_0x336e87&&!_0x2451cf['has'](_0x56a3b7)&&_0x5874d9['add'](_0x56a3b7);}else _0x36c84a['is']('element','paragraph')&&_0x36c84a['isEmpty']&&(_0x44e166['removeMarker'](_0xdc8506['name']),_0x1a17cc=!0x0);}}else{if('tablePasteCell'==_0x44e166['subType']){if(!_0x44e166['attributes']||!_0x44e166['attributes']['tablePasteChainId'])continue;const _0x3ac953=_0x44e166['attributes']['markerAttributes'];if(_0x3ac953&&Object['keys'](_0x3ac953)['length'])continue;const _0x25b9c3=_0x44e166['attributes']['tablePasteChainId'];let _0x508161=!0x0,_0xd07ec8=!0x0;for(const _0xba25a7 of _0x23a441)if(_0xba25a7['subType']&&_0xba25a7['subType']['startsWith']('tablePaste')){if(!_0xba25a7['attributes']['tablePasteChainId']){_0xd07ec8=!0x1;break;}if(_0xba25a7['id']!=_0x44e166['id']&&_0xba25a7['attributes']['tablePasteChainId']==_0x25b9c3){_0x508161=!0x1;break;}}_0xd07ec8&&_0x508161&&(_0x44e166['removeMarkers'](),_0x1a17cc=!0x0);}}for(const _0x280146 of _0x2451cf)_0x1a9456['remove'](_0x280146);for(const _0x2148ba of _0x5874d9)_0x1a9456['unwrap'](_0x2148ba);return _0x1a17cc;}),_0x279bac['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x1a2aa9=>_0x430ecb(_0x1a2aa9),'converterPriority':'high'}),_0x279bac['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x575008,_0x20e977)=>_0x20e977['options']['showSuggestionHighlights']?_0x430ecb(_0x575008,!0x1):null,'converterPriority':'high'});const _0x593747=_0x279bac['editing']['view'];this['listenTo'](_0x593747['document'],'clipboardOutput',(_0x5d5b11,_0x1d3a28)=>{const _0x50ae4a=[];for(const _0xcfe3b1 of _0x593747['createRangeIn'](_0x1d3a28['content'])['getItems']())_0xcfe3b1['is']('element','suggestion-td')&&_0x50ae4a['push'](_0xcfe3b1);_0x593747['change'](_0x588ace=>{for(const _0x28795a of _0x50ae4a)_0x588ace['move'](_0x588ace['createRangeIn'](_0x28795a),_0x588ace['createPositionBefore'](_0x28795a)),_0x588ace['remove'](_0x28795a);});});}}function Oe(_0x4055c6){if(_0x4055c6['isEmpty'])return!0x0;const _0x1c4047=_0x4055c6['getChild'](0x0);return _0x1c4047['is']('element','paragraph')&&_0x1c4047['isEmpty'];}function Ue(_0x1bc066,_0x3eaca2={},_0x51dea7){for(const {isAnchor:_0x2bacc2,cellHeight:_0x1cd584,cellWidth:_0x46233c}of _0x51dea7['createTableWalker'](_0x1bc066,{'includeAllSlots':!0x0,..._0x3eaca2}))if(!_0x2bacc2||0x1!=_0x1cd584||0x1!=_0x46233c)return!0x1;return!0x0;}class Dt extends _0x346e12{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x5a0ef1=this['editor']['plugins']['get']('TrackChangesEditing');_0x5a0ef1['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x5a0ef1['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x5a0ef1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5a0ef1['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x5a0ef1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x5a0ef1['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x134bed,_0x3cdc2c){const _0x495cdd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x54158c=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x33d702=_0x3cdc2c['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x20bdc4=_0x54158c['getColumnGroupElement'](_0x33d702);let _0x2b94ed=_0x20bdc4?_0x54158c['getTableColumnsWidths'](_0x20bdc4):null,_0x313fa3=_0x33d702['getAttribute']('tableWidth')||null;const _0x23d219=_0x3cdc2c['tableWidth']||_0x313fa3,_0x3a1e98=_0x3cdc2c['columnWidths']||_0x2b94ed,_0x128f34=this['editor']['plugins']['get']('Users')['me'];for(const _0x3f4012 of _0x495cdd['getSuggestions']()){const _0x5282dd=_0x3f4012['getContainedElement']();if('resizeTable'===_0x3f4012['subType']&&_0x5282dd===_0x33d702){_0x3f4012['author']!==_0x128f34&&_0x3f4012['discard']();const _0x41f0e7=_0x3f4012['data']['commandParams'];_0x313fa3=_0x41f0e7[0x0]['tableWidth'],_0x2b94ed=_0x41f0e7[0x0]['columnWidths'];break;}}_0x134bed({'table':_0x33d702,'tableWidth':_0x23d219,'columnWidths':_0x3a1e98}),_0x495cdd['markBlockFormat'](_0x33d702,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x313fa3,'columnWidths':_0x2b94ed}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x3b0e0c){if('formatBlock'!=_0x3b0e0c['type']&&'formatInline'!=_0x3b0e0c['type'])return;const {data:_0x4f87d3}=_0x3b0e0c;if(_0x4f87d3&&'resizeTable'===_0x4f87d3['formatGroupId']){const _0x41250c='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x41250c)};}}}class Mt extends _0x346e12{['afterInit'](){const _0x2040dd=this['editor'];_0x2040dd['plugins']['has']('Template')&&_0x2040dd['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x346e12{['afterInit'](){const _0x257dae=this['editor'];if(!_0x257dae['commands']['get']('insertTableOfContents'))return;_0x257dae['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0xa28b32=_0x257dae['plugins']['get']('TrackChangesEditing'),_0x229adf=_0x257dae['locale'];_0xa28b32['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1f009e=>c(_0x229adf,'ELEMENT_TABLE_OF_CONTENTS',_0x1f009e));}}class Bt extends _0x346e12{['afterInit'](){const _0x1f3ea9=this['editor'];if(!_0x1f3ea9['plugins']['has']('Title'))return;const _0x798b79=_0x1f3ea9['plugins']['get']('TrackChangesEditing');_0x798b79['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x1f3ea9['locale'],'ELEMENT_TITLE')),_0x1f3ea9['model']['document']['registerPostFixer'](_0x221a5b=>{let _0x565302=!0x1;const _0x7c23b7=Array['from'](_0x1f3ea9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3455c3,data:_0x3270d0}of _0x7c23b7){const {group:_0xf35439}=_0x798b79['_splitMarkerName'](_0x3455c3);if('suggestion'!==_0xf35439||!_0x3270d0['newRange'])continue;const _0x189592=_0x3270d0['newRange'],_0x392ffa=_0x189592['end']['nodeBefore'];if(!_0x392ffa||!_0x392ffa['is']('element','title-content'))continue;if(!_0x189592['start']['isTouching'](_0x189592['end']))continue;const _0x1f1aec=_0x1f3ea9['model']['schema']['getNearestSelectionRange'](_0x189592['end'],'forward');if(_0x1f1aec&&_0x1f1aec['isCollapsed']){const _0x2b2695=_0x221a5b['createRange'](_0x189592['start'],_0x1f1aec['start']);_0x2b2695['isEqual'](_0x189592)||(_0x221a5b['updateMarker'](_0x3455c3,{'range':_0x2b2695}),_0x565302=!0x0);}_0x565302||(_0x221a5b['removeMarker'](_0x3455c3),_0x565302=!0x0);}return _0x565302;});}}class Ot extends _0x346e12{['afterInit'](){const _0x522d08=this['editor'],_0x32ab45=_0x522d08['plugins']['get']('TrackChangesEditing');_0x522d08['plugins']['has']('Uploadcare')&&(_0x32ab45['enableCommand']('uploadcare'),_0x522d08['plugins']['has']('UploadcareImageEdit')&&(_0x32ab45['enableCommand']('uploadcareImageEdit'),_0x32ab45['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x32ab45['registerBlockAttribute']('uploadcareImageId'),_0x32ab45['descriptionFactory']['registerDescriptionCallback'](_0x163884=>{if('attribute'!=_0x163884['type'])return;const {data:_0x50c92e}=_0x163884;return _0x50c92e&&'uploadcareImageId'==_0x50c92e['key']?{'type':'format','content':''}:void 0x0;})));}}class Rt extends _0x346e12{['afterInit'](){const _0x5e174b=this['editor'],_0x213a02=_0x5e174b['plugins']['get']('TrackChangesEditing');_0x5e174b['plugins']['has']('UndoEditing')&&(_0x213a02['enableCommand']('undo'),_0x213a02['enableCommand']('redo'));}}class xt extends _0x346e12{static get['requires'](){return[_t];}['afterInit'](){const _0x25e78e=this['editor'];if(!_0x25e78e['plugins']['has']('TableCaptionEditing'))return;_0x25e78e['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Tt extends _0x346e12{['tableProperties'];['tableCellProperties'];constructor(_0x447b42){super(_0x447b42),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 _0xd1bd6c=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x55f50c of this['tableProperties'])_0xd1bd6c['enableCommand'](_0x55f50c,(_0x4af43d,_0x29395b)=>{const _0xce08e1=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x55f50c,[_0xce08e1],this['tableProperties'],'tableProperties',_0x4af43d,_0x29395b);});_0xd1bd6c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0xd1bd6c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xd1bd6c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x30ed18,_0x3aaf94)=>this['handleDiscardAction'](this['tableProperties'],_0x30ed18,_0x3aaf94)),_0xd1bd6c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x45b2b2 of this['tableCellProperties'])_0xd1bd6c['enableCommand'](_0x45b2b2,(_0x562cfc,_0x21ae0f)=>{const _0x2fe628=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x45b2b2,_0x2fe628,this['tableCellProperties'],'tableCellProperties',_0x562cfc,_0x21ae0f);});_0xd1bd6c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0xd1bd6c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xd1bd6c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x59ffbc,_0x25566b)=>this['handleDiscardAction'](this['tableCellProperties'],_0x59ffbc,_0x25566b)),_0xd1bd6c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0xd1bd6c['descriptionFactory']['registerDescriptionCallback'](_0x5c68cc=>this['handleSuggestionDescription'](_0x5c68cc));}['_handlePropertyChange'](_0x31c907,_0x28f5a2,_0x53ccae,_0x1fd269,_0x22128e,_0x1ccec8){const _0x3cc802=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x1ccec8['batch'],()=>{for(const _0x54743b of _0x28f5a2){if(this['_getSuggestion'](_0x54743b,_0x1fd269))_0x22128e(_0x1ccec8);else{const _0x4c3b40={};for(const _0x4cfe7c of _0x53ccae){const _0x16b9c3=_0x54743b['getAttribute'](_0x4cfe7c);void 0x0!==_0x16b9c3&&(_0x4c3b40[_0x4cfe7c]=_0x16b9c3);}_0x22128e(_0x1ccec8),_0x3cc802['markBlockFormat'](_0x54743b,{'commandParams':[_0x4c3b40]},[],_0x1fd269);}}});}['handleDiscardAction'](_0x268a2c,_0x4c4a90,_0xd073e){const _0x22b3f0=_0x4c4a90[0x0]['start']['nodeAfter'],_0x21e00a=_0xd073e['commandParams'][0x0];this['editor']['model']['change'](_0x28fd07=>{for(const _0x4321d6 of _0x268a2c)void 0x0!==_0x21e00a[_0x4321d6]?_0x28fd07['setAttribute'](_0x4321d6,_0x21e00a[_0x4321d6],_0x22b3f0):_0x28fd07['removeAttribute'](_0x4321d6,_0x22b3f0);});}['handleSuggestionDescription'](_0x5a5462){if(_0x5a5462['data'])switch(_0x5a5462['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x2b6d20,_0x30256a){const _0x504c7e=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x5b2d89 of _0x504c7e['getSuggestions']({'skipNotAttached':!0x0})){const _0x308138=_0x5b2d89['getContainedElement']();if(_0x5b2d89['subType']===_0x30256a&&_0x308138===_0x2b6d20)return _0x5b2d89;}return null;}}const u='$elementName';class p extends _0x346e12{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x420210,_0x56c221,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,et,nt,it,st,ot,at,rt,ct,ut,ft,lt,Q,wt,ht,W,Se,dt,mt,pt,kt,bt,yt,jt,St,At,It,_t,vt,Ct,xt,Nt,Dt,$t,Tt,Mt,Bt,Ot,Rt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5e6025){super(_0x5e6025),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x2f4de5,_0x2deca3,_0x239604,_0x154cb4)=>{this['_model']['change'](()=>{for(const _0x3ccff2 of[..._0x154cb4,..._0x239604])this['_model']['markers']['has'](_0x3ccff2)&&_0x5e6025['editing']['reconvertMarker'](_0x3ccff2);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ut(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x5e6025['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0x5e6025['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x5e6025['config']['get']('trackChanges.trackFormatChanges'),_0x5e6025['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x5e6025['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x5e6025,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x4d8844=this['editor'],_0x1b30aa=(_0x15f4e4,_0x5db781)=>{if('attribute'!=_0x15f4e4)return'ck-suggestion-marker-'+_0x15f4e4;const _0x86106c=_0x5db781['split']('|')[0x0];return this['_isBlockAttribute'](_0x86106c)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x4d8844['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x104673=>{const {id:_0x26edc4,authorId:_0x1a8976,type:_0x329b2d,subType:_0x5b4aab}=this['_splitMarkerName'](_0x104673['markerName']),_0x247ec0=['ck-suggestion-marker',_0x1b30aa(_0x329b2d,_0x5b4aab)];let _0x2f3ddb=0xbb8;return this['activeMarkers']['includes'](_0x104673['markerName'])&&(_0x247ec0['push']('ck-suggestion-marker--active'),_0x2f3ddb=0xbc2),'deletion'==_0x329b2d&&(_0x2f3ddb+=0x5),{'classes':_0x247ec0,'attributes':{'data-suggestion':_0x26edc4,'data-author-id':_0x1a8976},'priority':_0x2f3ddb};}}),_0x4d8844['conversion']['for']('dataDowncast')['add'](_0x31cd56=>{_0x31cd56['on']('addMarker:suggestion',(_0x3269e4,_0x33b0f2,_0x1e1c44)=>{if(!_0x1e1c44['options']['showSuggestionHighlights'])return;const _0x350a25=_0x33b0f2['item'];if(!_0x350a25)return;const _0x6d4208=_0x1e1c44['mapper']['toViewElement'](_0x350a25);_0x4d8844['model']['schema']['isObject'](_0x350a25)&&_0x6d4208&&!_0x6d4208['getCustomProperty']('widget')&&_0x6d4208['is']('containerElement')&&_0x5da8b2(_0x6d4208,_0x1e1c44['writer']);},{'priority':'high'});}),_0x4d8844['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0xf05471,_0x318537)=>{if(!_0x318537['options']['showSuggestionHighlights'])return null;const {type:_0x620bc0,subType:_0xe8cb88}=this['_splitMarkerName'](_0xf05471['markerName']);return{'classes':['ck-suggestion-marker',_0x1b30aa(_0x620bc0,_0xe8cb88)],'priority':0xbb8};}});const _0x3a4b23=({showActiveMarkers:_0x5c324b=!0x0,isAttributeSuggestion:_0x4d221c=!0x1}={})=>(_0x2b4f84,_0x202ca5,_0x17c88f)=>{if(!_0x202ca5['item'])return;const {id:_0x37e30d,authorId:_0x33db77}=this['_splitMarkerName'](_0x202ca5['markerName']);if(_0x4d221c){const _0x5a85ae=this['_suggestions']['get'](_0x37e30d),_0x5a5ea7=this['_getAttributeKey'](_0x5a85ae);if(!this['_isBlockAttribute'](_0x5a5ea7))return;}if(_0x202ca5['item']['is']('selection'))return void _0x17c88f['consumable']['consume'](_0x202ca5['item'],_0x2b4f84['name']);const _0x261a50=_0x17c88f['mapper']['toViewElement'](_0x202ca5['item']);if(_0x202ca5['item']['is']('element')&&_0x4d8844['model']['schema']['isBlock'](_0x202ca5['item'])&&!_0x261a50['getCustomProperty']('addHighlight')){_0x17c88f['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x261a50),_0x17c88f['writer']['setAttribute']('data-suggestion',_0x37e30d,_0x261a50),_0x17c88f['writer']['setAttribute']('data-author-id',_0x33db77,_0x261a50),_0x17c88f['mapper']['bindElementToMarker'](_0x261a50,_0x202ca5['markerName']),_0x5c324b&&(this['activeMarkers']['includes'](_0x202ca5['markerName'])?_0x17c88f['writer']['addClass']('ck-suggestion-marker--active',_0x261a50):_0x17c88f['writer']['removeClass']('ck-suggestion-marker--active',_0x261a50));for(const _0xcc6a93 of _0x4d8844['model']['createRangeIn'](_0x202ca5['item'])['getItems']())_0x17c88f['consumable']['consume'](_0xcc6a93,_0x2b4f84['name']);_0x17c88f['consumable']['consume'](_0x202ca5['item'],_0x2b4f84['name']);}};_0x4d8844['conversion']['for']('dataDowncast')['add'](_0x43f99b=>{_0x43f99b['on']('addMarker:suggestion:formatBlock',(_0x5344c7,_0x56f49a,_0x3e7cc7)=>{_0x3e7cc7['options']['showSuggestionHighlights']&&_0x3a4b23({'showActiveMarkers':!0x1})(_0x5344c7,_0x56f49a,_0x3e7cc7);},{'priority':'highest'});}),_0x4d8844['conversion']['for']('dataDowncast')['add'](_0x5a2059=>{_0x5a2059['on']('addMarker:suggestion:attribute',(_0x1bd1fd,_0x40f7f3,_0x598767)=>{_0x598767['options']['showSuggestionHighlights']&&_0x3a4b23({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x1bd1fd,_0x40f7f3,_0x598767);},{'priority':'highest'});}),_0x4d8844['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x1415bb,_0x2c4d6f)=>_0x2c4d6f['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x1415bb['substr'](0xb)}}),_0x4d8844['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5decad,{writer:_0x2515ca})=>{let _0x3ac799='suggestion:'+_0x5decad['getAttribute']('suggestion-type')+':'+_0x5decad['getAttribute']('id');return _0x5decad['getAttribute']('marker-count')&&(_0x3ac799+=':'+_0x5decad['getAttribute']('marker-count')),_0x2515ca['createElement']('$marker',{'data-name':_0x3ac799});}}),_0x4d8844['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x4d8844['conversion']['for']('editingDowncast')['add'](_0x48cbf2=>{_0x48cbf2['on']('addMarker:suggestion:formatBlock',_0x3a4b23(),{'priority':'high'});}),_0x4d8844['conversion']['for']('editingDowncast')['add'](_0x438802=>{_0x438802['on']('addMarker:suggestion:attribute',_0x3a4b23({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x4d8844['conversion']['for']('editingDowncast')['add'](_0x40aa0d=>{_0x40aa0d['on']('removeMarker:suggestion:formatBlock',(_0x9be042,_0x44160a,_0x432751)=>{const _0x4c9fc2=_0x432751['mapper']['markerNameToElements'](_0x44160a['markerName']);if(_0x4c9fc2){for(const _0x221c97 of _0x4c9fc2)_0x221c97['getCustomProperty']('addHighlight')||(_0x432751['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x221c97),_0x432751['writer']['removeAttribute']('data-suggestion',_0x221c97),_0x432751['writer']['removeAttribute']('data-author-id',_0x221c97),_0x432751['mapper']['unbindElementFromMarkerName'](_0x221c97,_0x44160a['markerName']));}},{'priority':'high'});}),_0x4d8844['conversion']['for']('editingDowncast')['add'](_0x3c6d2f=>{_0x3c6d2f['on']('removeMarker:suggestion:attribute',(_0x744708,_0x1837a0,_0x27df54)=>{const _0x3c4547=_0x27df54['mapper']['markerNameToElements'](_0x1837a0['markerName']);if(!_0x3c4547)return;const {id:_0xc36409}=this['_splitMarkerName'](_0x1837a0['markerName']),_0x4c9944=this['_suggestions']['get'](_0xc36409),_0x3e04a6=this['_getAttributeKey'](_0x4c9944);if(this['_isBlockAttribute'](_0x3e04a6)){for(const _0x3bee2d of _0x3c4547)_0x3bee2d['getCustomProperty']('addHighlight')||(_0x27df54['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3bee2d),_0x27df54['writer']['removeAttribute']('data-suggestion',_0x3bee2d),_0x27df54['writer']['removeAttribute']('data-author-id',_0x3bee2d),_0x27df54['mapper']['unbindElementFromMarkerName'](_0x3bee2d,_0x1837a0['markerName']));}},{'priority':'high'});}),_0x4d8844['model']['document']['registerPostFixer'](_0x3ab01b=>{let _0x4afae2=!0x1;const _0x5cac99=Array['from'](_0x4d8844['model']['document']['differ']['getChangedMarkers']()),_0x274def=new Set();for(const {name:_0xc1529c,data:_0x3c9b39}of _0x5cac99){const {group:_0xbe5ef5,type:_0x3c19b4,subType:_0x47ea2e,id:_0x577c3c}=this['_splitMarkerName'](_0xc1529c);if('suggestion'!==_0xbe5ef5)continue;const _0x293f5f=this['_suggestions']['get'](_0x577c3c);if(null!=_0x3c9b39['newRange']){'formatInline'==_0x3c19b4&&(_0x4afae2=_0x4afae2||Pt(_0x3c9b39['newRange'],_0xc1529c,_0x3ab01b,_0x4d8844['model']['schema']));const _0x51194a='attribute'==_0x3c19b4&&this['_isBlockAttribute'](_0x47ea2e['split']('|')[0x0]);if(_0x3c9b39['newRange']['isCollapsed']||'$graveyard'==_0x3c9b39['newRange']['root']['rootName']||'formatBlock'==_0x3c19b4&&!Lt(_0x3c9b39['newRange'])||_0x51194a&&!Lt(_0x3c9b39['newRange'])||'deletion'==_0x3c19b4&&!(!Ft(_0x14636d=_0x3c9b39['newRange'])&&!function(_0x4e4769){return _0x4e4769['start']['parent']==_0x4e4769['end']['nodeBefore']&&_0x4e4769['start']['isAtEnd'];}(_0x14636d)))_0x3ab01b['removeMarker'](_0xc1529c),_0x4afae2=!0x0;else{if(!_0x293f5f||!_0x293f5f['isInContent'])continue;if(_0x3c9b39['newRange']&&_0x3c9b39['oldRange']&&_0x3c9b39['newRange']['isEqual'](_0x3c9b39['oldRange']))continue;_0x274def['add'](_0x293f5f);}}}var _0x14636d;return _0x274def['size']>0x0&&(_0x4afae2=!!this['_joinWithAdjacentSuggestions'](_0x274def)||_0x4afae2),_0x4afae2;}),_0x4d8844['model']['document']['registerPostFixer'](_0x4337e6=>{let _0x17705f=!0x1;for(const _0x46e16d of _0x4d8844['model']['document']['differ']['getChanges']())if('insert'==_0x46e16d['type'])for(const _0x4325d1 of this['_suggestions']['values']()){if(_0x4325d1['isMultiRange']||!_0x4325d1['isInContent'])continue;const _0x31fc8c='formatBlock'==_0x4325d1['type'],_0x4f4842=this['_getAttributeKey'](_0x4325d1),_0x37a887=_0x4f4842&&this['_isBlockAttribute'](_0x4f4842);if(!_0x31fc8c&&!_0x37a887)continue;const _0x279a99=_0x4325d1['getFirstRange']();if(_0x279a99['start']['parent']!=_0x279a99['end']['parent']&&!_0x279a99['end']['isAtEnd']){const _0x4e9c65=_0x4d8844['model']['createPositionAt'](_0x279a99['start']['nodeAfter'],'end'),_0x19969b=_0x4d8844['model']['createRange'](_0x279a99['start'],_0x4e9c65);_0x4337e6['updateMarker'](_0x4325d1['getFirstMarker'](),{'range':_0x19969b}),_0x17705f=!0x0;}}return _0x17705f;}),_0x4d8844['model']['document']['registerPostFixer'](_0x5ebf53=>this['_processAttributeChanges'](_0x5ebf53)),_0x4d8844['model']['document']['registerPostFixer'](_0x5645a0=>!_0x5645a0['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x5645a0)),_0x4d8844['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x4d8844['model']['document']['on']('change:data',(_0x554738,_0x161f2b)=>{if(!_0x161f2b['isLocal']||_0x161f2b['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x37d15d=_0x4d8844['model']['document']['differ']['getChanges']();if(0x0==_0x37d15d['length'])return;const _0x1fedf2=[],_0x4d97f5=_0x37d15d['filter'](_0xc88863=>'attribute'==_0xc88863['type']),_0x4658e6=_0x37d15d['filter'](_0x4c78bd=>'insert'==_0x4c78bd['type']&&'$text'!=_0x4c78bd['name']);for(const _0x375164 of _0x4d97f5)this['_isRegisteredAttribute'](_0x375164['attributeKey'])&&_0x1fedf2['push']({'key':_0x375164['attributeKey'],'newValue':_0x375164['attributeNewValue'],'oldValue':_0x375164['attributeOldValue'],'range':Jt(_0x375164['range'],_0x4d8844['model'])});for(const _0x304f8f of _0x4658e6){if('rename'!=_0x304f8f['action']&&'refresh'!=_0x304f8f['action'])continue;const _0x4e93ef=Kt(_0x304f8f['position']['nodeAfter'],_0x4d8844['model']),_0x24eb1=_0x304f8f['before'];'rename'==_0x304f8f['action']&&_0x1fedf2['push']({'key':u,'newValue':_0x304f8f['name'],'oldValue':_0x24eb1['name'],'range':_0x4e93ef});for(const [_0x459809,_0x2115fd]of _0x24eb1['attributes']){if(!this['_isRegisteredAttribute'](_0x459809))continue;const _0x2c7d61=_0x304f8f['attributes']['get'](_0x459809);_0x2115fd!==_0x2c7d61&&_0x1fedf2['push']({'key':_0x459809,'newValue':_0x2c7d61,'oldValue':_0x2115fd,'range':_0x4e93ef});}for(const [_0x16500f,_0x5adb98]of _0x304f8f['attributes'])this['_isRegisteredAttribute'](_0x16500f)&&(_0x24eb1['attributes']['has'](_0x16500f)||_0x1fedf2['push']({'key':_0x16500f,'newValue':_0x5adb98,'oldValue':null,'range':_0x4e93ef}));}0x0!=_0x1fedf2['length']&&_0x4d8844['model']['enqueueChange'](_0x161f2b,_0x33e155=>{const _0x2b4ebb=_0xb11af3();for(const {range:_0x4f7998,key:_0x253336,oldValue:_0x4191fd,newValue:_0xe1c979}of _0x1fedf2)this['markAttributeChange'](_0x4f7998,_0x253336,_0x4191fd,_0xe1c979,{'groupId':_0x2b4ebb});this['_reduceExistingSuggestions'](_0x33e155,_0x1fedf2);});},{'priority':'lowest'}),_0x4d8844['model']['markers']['on']('update:suggestion',(_0x1d9a38,_0xa4c12c,_0x9cef11)=>{if(null==_0x9cef11){const {id:_0x11a28b}=this['_splitMarkerName'](_0xa4c12c['name']),_0x49556d=this['_suggestions']['get'](_0x11a28b);_0x49556d&&_0x49556d['addMarkerName'](_0xa4c12c['name']);}}),_0x4d8844['model']['document']['on']('change:data',()=>{const _0x192257=Array['from'](_0x4d8844['model']['document']['differ']['getChangedMarkers']())['filter'](_0x11725b=>'suggestion'===this['_splitMarkerName'](_0x11725b['name'])['group']);if(0x0===_0x192257['length'])return;_0x192257['sort']((_0x1e0cd6,_0x338468)=>{const _0x3d59eb=_0x1e0cd6['data']['oldRange'],_0x167f5d=_0x338468['data']['oldRange'];return null===_0x3d59eb&&null===_0x167f5d?0x0:null===_0x3d59eb&&null!==_0x167f5d?-0x1:null!==_0x3d59eb&&null===_0x167f5d?0x1:_0x3d59eb['start']['isBefore'](_0x167f5d['start'])?-0x1:0x1;});const _0x1bbc85=new Set(),_0x35d975=new Set();for(const {name:_0x40c63b,data:_0x882046}of _0x192257){const {id:_0x258a30}=this['_splitMarkerName'](_0x40c63b);if(null===_0x882046['oldRange']){const _0x2a2842=this['_handleNewSuggestionMarker'](_0x40c63b);_0x35d975['add'](_0x2a2842);}else{const _0x3a9e61=this['_suggestions']['get'](_0x258a30);null!==_0x882046['newRange']||_0x3a9e61['isInContent']?(_0x1bbc85['add'](_0x3a9e61['head']),_0x35d975['add'](_0x3a9e61)):this['_removeSuggestion'](_0x3a9e61);}}_0x35d975['size']>0x0&&this['_refreshSuggestionsChain'](_0x35d975);for(const _0x2a494e of _0x1bbc85)this['fire']('suggestionChanged',_0x2a494e);}),_0x4d8844['model']['on']('applyOperation',(_0xb8d82c,_0x17e480)=>{const _0x1a5a53=_0x17e480[0x0];if(!this['_suggestions']['size'])return;if(!_0x1a5a53['isDocumentOperation'])return;if(_0x1a5a53['batch']['isUndo']||!_0x1a5a53['batch']['isLocal'])return;let _0xefdcd2,_0xc6f52a;switch(_0x1a5a53['type']){case'insert':_0xefdcd2=_0x4d8844['model']['createPositionAt'](_0x1a5a53['position']),_0xc6f52a=_0xefdcd2['getShiftedBy'](_0x1a5a53['howMany']);break;case'split':_0xefdcd2=_0x4d8844['model']['createPositionAt'](_0x1a5a53['splitPosition']),_0xc6f52a=_0x4d8844['model']['createPositionAt'](_0x1a5a53['moveTargetPosition']);break;case'move':_0xefdcd2=_0x4d8844['model']['createPositionAt'](_0x1a5a53['targetPosition']),_0xc6f52a=_0xefdcd2['getShiftedBy'](_0x1a5a53['howMany']);break;default:return;}const _0x9d9cb0=_0x4d8844['model']['createRange'](_0xefdcd2,_0xc6f52a);_0x4d8844['model']['change'](()=>{for(const {suggestion:_0x1349d5,meta:_0x31030b}of this['_findSuggestions'](_0x9d9cb0)){if(_0x1349d5['isMultiRange'])continue;if('formatInline'==_0x1349d5['type'])continue;const _0xd89867=this['_getAttributeKey'](_0x1349d5);if(_0xd89867&&this['_isBlockAttribute'](_0xd89867)&&'split'!=_0x1a5a53['type'])continue;const _0x43dce0=_0x1349d5['data']&&_0x1349d5['data']['multipleBlocks'];('formatBlock'!=_0x1349d5['type']||'split'==_0x1a5a53['type']&&!_0x43dce0)&&(_0x31030b['containsRangeInObject']||'insertion'==_0x1349d5['type']&&_0x31030b['isOwn']||_0x1349d5['getFirstRange']()['containsRange'](_0x9d9cb0)&&this['_breakSuggestionMarker'](_0x1349d5,_0xefdcd2,_0xc6f52a));}});},{'priority':'lowest'}),_0x4d8844['model']['on']('deleteContent',(_0x2ebeb1,_0x5b70a3)=>{const _0x543974=_0x5b70a3[0x0],_0x3f8ef8=_0x5b70a3[0x1];if(_0x3f8ef8&&_0x3f8ef8['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x543974['isCollapsed'])return;const _0x10d685=_0x4d8844['model']['schema'],{start:_0x4501af,end:_0x4c4705}=_0x543974['getFirstRange'](),_0x270566=_0x4501af['nodeAfter']&&_0x10d685['isLimit'](_0x4501af['nodeAfter'])?null:_0x10d685['getNearestSelectionRange'](_0x4501af,'forward'),_0x1acdc4=_0x4c4705['nodeBefore']&&_0x10d685['isLimit'](_0x4c4705['nodeBefore'])?null:_0x10d685['getNearestSelectionRange'](_0x4c4705,'backward'),_0x3b338a=_0x4d8844['model']['createRange'](_0x270566?_0x270566['start']:_0x4501af,_0x1acdc4?_0x1acdc4['end']:_0x4c4705);_0x4d8844['model']['change'](_0x5e950d=>{this['markDeletion'](_0x3b338a);const _0x2cde22=_0x4d8844['model']['schema']['getNearestSelectionRange'](_0x3b338a['start']);_0x543974['is']('documentSelection')?_0x5e950d['setSelection'](_0x2cde22):_0x543974['setTo'](_0x2cde22);}),_0x2ebeb1['stop']();},{'priority':_0x1afaee['normal']+0xa}),_0x4d8844['model']['on']('insertContent',(_0x5e695f,_0x97837d)=>{const _0x501012=_0x97837d[_0x97837d['length']-0x1];_0x501012&&_0x501012['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x4d8844['model']['change'](()=>{let _0x33eb6c=_0x4d8844['model']['insertContent'](_0x97837d[0x0],_0x97837d[0x1],_0x97837d[0x2],{'forceDefaultExecution':!0x0});if(!_0x33eb6c)return;_0x5e695f['return']=_0x33eb6c['clone']();const _0x90dbbc=_0x33eb6c['end']['nodeBefore'],_0x16224f=_0x4d8844['model']['schema'];_0x90dbbc&&_0x16224f['isBlock'](_0x90dbbc)&&!_0x16224f['isObject'](_0x90dbbc)&&(_0x33eb6c=_0x4d8844['model']['createRange'](_0x33eb6c['start'],_0x4d8844['model']['createPositionAt'](_0x90dbbc,'end'))),this['markInsertion'](_0x33eb6c);}),_0x5e695f['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0xa14190=new O(_0x4d8844,this['_suggestions']);_0x4d8844['commands']['add']('acceptSuggestion',_0xa14190),this['enableCommand']('acceptSuggestion');const _0x2637dd=new R(_0x4d8844,this['_suggestions']);_0x4d8844['commands']['add']('discardSuggestion',_0x2637dd),this['enableCommand']('discardSuggestion'),_0x4d8844['commands']['add']('acceptAllSuggestions',new x(_0x4d8844,_0xa14190,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x4d8844['commands']['add']('discardAllSuggestions',new x(_0x4d8844,_0x2637dd,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x4d8844['commands']['add']('acceptSelectedSuggestions',new E(_0x4d8844,_0xa14190,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x4d8844['commands']['add']('discardSelectedSuggestions',new E(_0x4d8844,_0x2637dd,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x5299aa=_0x4d8844['plugins']['get']('CommentsRepository');this['listenTo'](_0x5299aa,'addComment',(_0x38a746,{threadId:_0x563060})=>{const _0x53e989=this['_suggestions']['get'](_0x563060);_0x53e989&&_0x53e989['commentThread']&&0x1===_0x53e989['commentThread']['length']&&this['_updateSuggestionData'](_0x563060,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x5299aa,'removeComment',(_0x3c9c06,{threadId:_0x10bb51})=>{const _0x4b309b=this['_suggestions']['get'](_0x10bb51);_0x4b309b&&_0x4b309b['commentThread']&&!_0x4b309b['commentThread']['length']&&this['_updateSuggestionData'](_0x10bb51,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x2ffa6a){const _0x32a354=_0x320974([0x31,0x43,0x35,0x62,0x6a,0x34,0x51,0x36,0x79,0x66,0x61,0x68,0x65,0x69,0x30,0x76,0x4a,0x47,0x73,0x5a,0x63,0x42,0x71,0x55,0x75,0x78,0x37,0x70,0x44,0x4f,0x77,0x46,0x33,0x57,0x54,0x6e,0x4e,0x6b,0x56,0x41,0x6c,0x53,0x50,0x32,0x58,0x49,0x67,0x38,0x48,0x4c,0x74,0x59,0x7a,0x72,0x45,0x4b,0x52,0x6f,0x64,0x4d,0x6d,0x39]),_0x31249b=0x2115f1dc,_0x265e87=0x2112aebc^_0x31249b,_0x183a42=window[_0x320974([0x44,0x61,0x74,0x65])][_0x320974([0x6e,0x6f,0x77])](),_0x5a4142=_0x2ffa6a[_0x320974([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x533f88=new window[(_0x320974([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x45db11=>{_0x5a4142[_0x320974([0x6f,0x6e,0x63,0x65])](_0x320974([0x72,0x65,0x61,0x64,0x79]),_0x45db11);}),_0x1e29a7={[_0x320974([0x6b,0x74,0x79])]:_0x320974([0x45,0x43]),[_0x320974([0x75,0x73,0x65])]:_0x320974([0x73,0x69,0x67]),[_0x320974([0x63,0x72,0x76])]:_0x320974([0x50,0x2d,0x32,0x35,0x36]),[_0x320974([0x78])]:_0x320974([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]),[_0x320974([0x79])]:_0x320974([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]),[_0x320974([0x61,0x6c,0x67])]:_0x320974([0x45,0x53,0x32,0x35,0x36])},_0x4e9f42=_0x5a4142[_0x320974([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x320974([0x67,0x65,0x74])](_0x320974([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5c2186(){let _0x4843ac,_0x39da5a=null,_0x15b04f=null;try{if(_0x4e9f42==_0x320974([0x47,0x50,0x4c]))return _0x320974([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4843ac=_0x1e139d(),!_0x4843ac)return _0x320974([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4843ac[_0x320974([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x15b04f=_0x1cc1f1(_0x4843ac[_0x320974([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4843ac[_0x320974([0x6a,0x74,0x69])])),await _0x2a943b()?_0x1ef57d()?_0x337c96()?_0x320974([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x11cc13()?(_0x4843ac[_0x320974([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x320974([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x39da5a=_0x5c723e(_0x320974([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4843ac[_0x320974([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x320974([0x74,0x72,0x69,0x61,0x6c])&&(_0x39da5a=_0x5c723e(_0x320974([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1422b1()):_0x320974([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x320974([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x320974([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x1a6eb1){return _0x320974([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x337c96(){const _0x58adba=[_0x320974([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x320974([0x74,0x72,0x69,0x61,0x6c])][_0x320974([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4843ac[_0x320974([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x183a42/0x3e8:0xe10*_0x265e87;return _0x4843ac[_0x320974([0x65,0x78,0x70])]<_0x58adba;}function _0x1ef57d(){const _0x3f8374=_0x4843ac[_0x320974([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3f8374)return!0x1;if(_0x3f8374[_0x320974([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x320974([0x2a])))return!0x0;if(_0x3f8374[_0x320974([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x320974([0x54,0x43])))return!0x0;if(_0x3f8374[_0x320974([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x320974([0x52,0x54,0x43]))){if(_0x284c38())return!0x0;if(_0x8b4ebb()||_0x261349())return!0x0;}return!0x1;}function _0x11cc13(){const _0x26b3ca=_0x4843ac[_0x320974([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x26b3ca||0x0==_0x26b3ca[_0x320974([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x255b3d}=new URL(window[_0x320974([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x26b3ca[_0x320974([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x255b3d))return!0x0;const _0xcd96cf=_0x255b3d[_0x320974([0x73,0x70,0x6c,0x69,0x74])](_0x320974([0x2e]));return _0x26b3ca[_0x320974([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4f97d0=>_0x4f97d0[_0x320974([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x320974([0x2a])))[_0x320974([0x6d,0x61,0x70])](_0x18a3a9=>_0x18a3a9[_0x320974([0x73,0x70,0x6c,0x69,0x74])](_0x320974([0x2e])))[_0x320974([0x73,0x6f,0x6d,0x65])](_0x490324=>_0xcd96cf[_0x320974([0x65,0x76,0x65,0x72,0x79])]((_0x3e0473,_0x13fb46)=>_0x490324[_0x13fb46]===_0x3e0473||_0x490324[_0x13fb46]===_0x320974([0x2a])));}function _0x1422b1(){return _0x39da5a&&_0x15b04f?new window[(_0x320974([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x320005,_0x3d8dc9)=>{_0x39da5a[_0x320974([0x74,0x68,0x65,0x6e])](_0x320005,_0x3d8dc9),_0x15b04f[_0x320974([0x74,0x68,0x65,0x6e])](_0xaea9fa=>{_0xaea9fa!=_0x320974([0x56,0x61,0x6c,0x69,0x64])&&_0x320005(_0xaea9fa);},_0x3d8dc9);}):_0x39da5a||_0x15b04f||_0x320974([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1cc1f1(_0x4f5b53,_0x2901e1){return new window[(_0x320974([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a9ed0=>{if(_0x46ecc3())return _0x4a9ed0(_0x320974([0x56,0x61,0x6c,0x69,0x64]));_0x2e90a6(),_0x5a4142[_0x320974([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x320974([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2abbf6=!0x1;const _0x1e76fb=_0xb11af3();function _0x2f3dbb(_0x3d353e){return!!_0x3d353e&&(typeof _0x3d353e===_0x320974([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3d353e===_0x320974([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3d353e[_0x320974([0x74,0x68,0x65,0x6e])]===_0x320974([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3d353e[_0x320974([0x63,0x61,0x74,0x63,0x68])]===_0x320974([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x328469(_0x22c8f7){_0x5681c8(_0x22c8f7)[_0x320974([0x74,0x68,0x65,0x6e])](_0x2eb04a=>{if(!_0x2eb04a||_0x2eb04a[_0x320974([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x320974([0x6f,0x6b]))return _0x320974([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x25b8a8(_0x3a4f45(_0x1e76fb+_0x2901e1))!=_0x2eb04a[_0x320974([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x320974([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x320974([0x56,0x61,0x6c,0x69,0x64]);})[_0x320974([0x74,0x68,0x65,0x6e])](_0x239aff=>(_0x191ca5(),_0x239aff),()=>{const _0x1b30b7=_0x5b21df();return null==_0x1b30b7?(_0x191ca5(),_0x320974([0x56,0x61,0x6c,0x69,0x64])):_0x320974(_0x183a42-_0x1b30b7>(0x51975dc^_0x31249b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x320974([0x74,0x68,0x65,0x6e])](_0x4a9ed0)[_0x320974([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4a9ed0(_0x320974([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xee0fc0=0x21231f5c^_0x31249b;function _0x191ca5(){const _0x2dc36c=_0x320974([0x6c,0x6c,0x63,0x74,0x2d])+_0x25b8a8(_0x3a4f45(_0x4f5b53)),_0x913692=_0x22155b(_0x25b8a8(window[_0x320974([0x4d,0x61,0x74,0x68])][_0x320974([0x63,0x65,0x69,0x6c])](_0x183a42/_0xee0fc0)));window[_0x320974([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x320974([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2dc36c,_0x913692);}function _0x5b21df(){const _0xa1778f=_0x320974([0x6c,0x6c,0x63,0x74,0x2d])+_0x25b8a8(_0x3a4f45(_0x4f5b53)),_0x34c7d9=window[_0x320974([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x320974([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xa1778f);return _0x34c7d9?window[_0x320974([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x22155b(_0x34c7d9),0x10)*_0xee0fc0:null;}function _0x5681c8(_0xdda5d3){return new window[(_0x320974([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2a4d56,_0x1e718b)=>{_0xdda5d3[_0x320974([0x74,0x68,0x65,0x6e])](_0x2a4d56,_0x1e718b),window[_0x320974([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1e718b,0x2114251c^_0x31249b);});}}_0x5a4142[_0x320974([0x6f,0x6e])](_0x320974([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x187a44,_0x18e976)=>{if(_0x18e976[0x0]!=_0x4f5b53)return _0x4a9ed0(_0x320974([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x18e976[0x1]={..._0x18e976[0x1],[_0x320974([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1e76fb};},{[_0x320974([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x320974([0x68,0x69,0x67,0x68])}),_0x5a4142[_0x320974([0x6f,0x6e])](_0x320974([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x49bf38=>{_0x2f3dbb(_0x49bf38[_0x320974([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2abbf6=!0x0,_0x328469(_0x49bf38[_0x320974([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x320974([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x320974([0x6c,0x6f,0x77])}),_0x533f88[_0x320974([0x74,0x68,0x65,0x6e])](()=>{_0x2abbf6||_0x4a9ed0(_0x320974([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x46ecc3(){return _0x5a4142[_0x320974([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x320974([0x76,0x69,0x65,0x77])][_0x320974([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x320974([0x61,0x75,0x74,0x6f]);}function _0x2e90a6(){_0x5a4142[_0x320974([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x320974([0x76,0x69,0x65,0x77])][_0x320974([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x320974([0x61,0x75,0x74,0x6f]);}}function _0x5c723e(_0x584d5b){const _0x37708c=[new window[(_0x320974([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x409216=>setTimeout(_0x409216,0x211ccf10^_0x31249b)),_0x533f88[_0x320974([0x74,0x68,0x65,0x6e])](()=>new window[(_0x320974([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5cd8df=>{let _0x287670=0x0;_0x5a4142[_0x320974([0x6d,0x6f,0x64,0x65,0x6c])][_0x320974([0x6f,0x6e])](_0x320974([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x17d21a,_0x4c885f)=>{_0x4c885f[0x0][_0x320974([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x287670++,_0x287670==(0x2115f024^_0x31249b)&&(_0x5cd8df(),_0x17d21a[_0x320974([0x6f,0x66,0x66])]());});}))];return window[_0x320974([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x320974([0x72,0x61,0x63,0x65])](_0x37708c)[_0x320974([0x74,0x68,0x65,0x6e])](()=>_0x584d5b);}async function _0x2da07f(){await _0x533f88,_0x5a4142[_0x320974([0x6d,0x6f,0x64,0x65,0x6c])][_0x320974([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4ac71d,_0x5a4142[_0x320974([0x6d,0x6f,0x64,0x65,0x6c])][_0x320974([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4ac71d,_0x5a4142[_0x320974([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x320974([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x284c38(){return _0x3b4945(_0x320974([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2693ac(_0x320974([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x320974([0x73,0x74,0x61,0x74,0x65])]==_0x320974([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x8b4ebb(){return _0x3b4945(_0x320974([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 _0x261349(){return _0x3b4945(_0x320974([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x484b6a(_0x239a7b){const _0x224431=_0x14c076();_0x5a4142[_0x224431]=_0x320974([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x239a7b,_0x239a7b!=_0x320974([0x56,0x61,0x6c,0x69,0x64])&&_0x2da07f();}function _0x14c076(){const _0x451a74=window[_0x320974([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x320974([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x320974([0x6e,0x6f,0x77])]())[_0x320974([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x320974([0x2e]),'');let _0x13efa6=_0x320974([0x43]);for(let _0x4e65f3=0x0;_0x4e65f3<_0x451a74[_0x320974([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4e65f3+=0x2){let _0x1b3bdb=window[_0x320974([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x451a74[_0x320974([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4e65f3,_0x4e65f3+0x2));_0x1b3bdb>=_0x32a354[_0x320974([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1b3bdb-=_0x32a354[_0x320974([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x13efa6+=_0x32a354[_0x1b3bdb];}return _0x13efa6;}function _0x1e139d(){const _0x349dd2=_0x4e9f42[_0x320974([0x73,0x70,0x6c,0x69,0x74])](_0x320974([0x2e]));if(0x3!=_0x349dd2[_0x320974([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x10f63e(_0x349dd2[0x1]);function _0x10f63e(_0xd4c4c9){const _0x4a9b01=_0x2ea686(_0xd4c4c9);return _0x4a9b01&&_0x1552aa()?_0x4a9b01:null;function _0x1552aa(){const _0x4995f4=_0x4a9b01[_0x320974([0x6a,0x74,0x69])],_0x1b26b9=window[_0x320974([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4995f4[_0x320974([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4995f4[_0x320974([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x150407={..._0x4a9b01,[_0x320974([0x6a,0x74,0x69])]:_0x4995f4[_0x320974([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4995f4[_0x320974([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x150407[_0x320974([0x76,0x63])],_0x3a4f45(_0x150407)==_0x1b26b9;}}}async function _0x2a943b(){let _0x4095d2=!0x0;try{const _0x2d296b=_0x4e9f42[_0x320974([0x73,0x70,0x6c,0x69,0x74])](_0x320974([0x2e])),[_0x20333c,_0x98bbf6,_0x52a9d2]=_0x2d296b;return _0x4f147b(_0x20333c),await _0x5f12bb(_0x20333c,_0x98bbf6,_0x52a9d2),_0x4095d2;}catch(_0x3450c1){return!0x1;}function _0x4f147b(_0x43adda){const _0xc8cff6=_0x2ea686(_0x43adda);_0xc8cff6&&_0xc8cff6[_0x320974([0x61,0x6c,0x67])]==_0x320974([0x45,0x53,0x32,0x35,0x36])||(_0x4095d2=!0x1);}async function _0x5f12bb(_0x2c8628,_0x25e747,_0x3e0343){const _0x4699e2=window[_0x320974([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x320974([0x66,0x72,0x6f,0x6d])](_0x1367e3(_0x3e0343),_0x3c370a=>_0x3c370a[_0x320974([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2c775e=new window[(_0x320974([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x320974([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2c8628+_0x320974([0x2e])+_0x25e747),_0x3193ff=window[_0x320974([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x320974([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3193ff)return;const _0x392822=await _0x3193ff[_0x320974([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x320974([0x6a,0x77,0x6b]),_0x1e29a7,{[_0x320974([0x6e,0x61,0x6d,0x65])]:_0x320974([0x45,0x43,0x44,0x53,0x41]),[_0x320974([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x320974([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x320974([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3193ff[_0x320974([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x320974([0x6e,0x61,0x6d,0x65])]:_0x320974([0x45,0x43,0x44,0x53,0x41]),[_0x320974([0x68,0x61,0x73,0x68])]:{[_0x320974([0x6e,0x61,0x6d,0x65])]:_0x320974([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x392822,_0x4699e2,_0x2c775e)||(_0x4095d2=!0x1);}}function _0x2ea686(_0x1b78b0){return _0x1b78b0[_0x320974([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x320974([0x65,0x79]))?JSON[_0x320974([0x70,0x61,0x72,0x73,0x65])](_0x1367e3(_0x1b78b0)):null;}function _0x1367e3(_0x53b25f){return window[_0x320974([0x61,0x74,0x6f,0x62])](_0x53b25f[_0x320974([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x320974([0x2b]))[_0x320974([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x320974([0x2f])));}function _0x3a4f45(_0x5079f3){let _0x2339a1=0x1505;function _0xc6eee4(_0x255aa7){for(let _0x533eac=0x0;_0x533eac<_0x255aa7[_0x320974([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x533eac++){const _0x5c65ff=_0x255aa7[_0x320974([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x533eac);_0x2339a1=(_0x2339a1<<0x5)+_0x2339a1+_0x5c65ff,_0x2339a1&=_0x2339a1;}}function _0x1702f0(_0x43966c){Array[_0x320974([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x43966c)?_0x43966c[_0x320974([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1702f0):_0x43966c&&typeof _0x43966c==_0x320974([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x320974([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x43966c)[_0x320974([0x73,0x6f,0x72,0x74])]()[_0x320974([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x58f8fa,_0x1bdba3])=>{_0xc6eee4(_0x58f8fa),_0x1702f0(_0x1bdba3);}):_0xc6eee4(window[_0x320974([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x43966c));}return _0x1702f0(_0x5079f3),_0x2339a1>>>0x0;}function _0x25b8a8(_0x5c546d){return _0x5c546d[_0x320974([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x320974([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x320974([0x30]));}function _0x22155b(_0xb0c926){return _0xb0c926[_0x320974([0x73,0x70,0x6c,0x69,0x74])]('')[_0x320974([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x320974([0x6a,0x6f,0x69,0x6e])]('');}function _0x3b4945(_0xd5b947){return _0x5a4142[_0x320974([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x320974([0x68,0x61,0x73])](_0xd5b947);}function _0x2693ac(_0x42b765){return _0x5a4142[_0x320974([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x320974([0x67,0x65,0x74])](_0x42b765);}function _0x4ac71d(){}function _0x320974(_0x95406c){return _0x95406c['map'](_0x730ce=>String['fromCharCode'](_0x730ce))['join']('');}_0x484b6a(await _0x5c2186());}(this);}set['adapter'](_0x5af24a){if(this['_adapter'])throw new _0x97435f('track-changes-adapter-already-set',this);this['_adapter']=_0x5af24a;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x1d6f60=!0x1,toJSON:_0x5b0540=!0x1}={}){const _0x49b496=[];for(const _0x2cc111 of this['_suggestions']['values']())_0x1d6f60&&!_0x2cc111['isInContent']||_0x49b496['push'](_0x2cc111);return _0x5b0540?_0x49b496['map'](_0x58aee0=>_0x58aee0['toJSON']()):_0x49b496;}['getSuggestion'](_0x8fd19e){const _0xe130b2=this['_suggestions']['get'](_0x8fd19e);if(!_0xe130b2)throw new _0x97435f('track-changes-suggestion-not-found',this);return _0xe130b2;}['hasSuggestion'](_0xd1b794){return this['_suggestions']['has'](_0xd1b794);}['addSuggestionData'](_0x2db563){const {authorId:_0x58d8b6,id:_0x3e377b,attributes:_0x46a2c8}=_0x2db563,[_0x5882fa,_0x589d0d]=_0x2db563['type']['split'](':'),_0x1f3b2b=this['_suggestions']['get'](_0x3e377b)||this['_createSuggestion'](_0x5882fa,_0x589d0d,_0x3e377b,_0x58d8b6,_0x46a2c8);if(this['_addThreadToSuggestion'](_0x1f3b2b),this['_checkSuggestionCorrectness'](_0x1f3b2b,_0x5882fa,_0x589d0d||null,_0x58d8b6),_0x1f3b2b['createdAt']=_0x2db563['createdAt'],_0x1f3b2b['_isDataLoaded']=!0x0,_0x46a2c8&&_0x46a2c8['@external']){const _0x571853=_0x46a2c8['@external'],_0x1e2585=this['_getExternalAuthor'](_0x571853['authorName']);_0x1f3b2b['authoredAt']=_0x571853['createdAt'],_0x1f3b2b['author']=_0x1e2585,_0x1f3b2b['isExternal']=!0x0;}else _0x1f3b2b['authoredAt']=_0x2db563['createdAt'];switch(_0x2db563['data']&&(_0x1f3b2b['data']=_0x2db563['data']),_0x2db563['attributes']&&(_0x1f3b2b['attributes']=_0x2db563['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x1f3b2b['_saved']=!0x0),this['_suggestionState']['get'](_0x1f3b2b)){case'notReady':this['_suggestionState']['set'](_0x1f3b2b,'dataReady');break;case'markerReady':_0x1f3b2b['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x1f3b2b])),this['_refreshSuggestionsChain'](new Set([_0x1f3b2b])),this['_suggestionState']['set'](_0x1f3b2b,'ready'),this['fire']('suggestionLoaded',_0x1f3b2b)):this['_suggestionState']['set'](_0x1f3b2b,'removed');}return _0x1f3b2b;}['acceptSuggestion'](_0x21da9a){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3aae3a of _0x21da9a['getAllAdjacentSuggestions']())_0x3aae3a['accept']();});});}['discardSuggestion'](_0x5d302a){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x450702 of _0x5d302a['getAllAdjacentSuggestions']())_0x450702['discard']();});});}['enableCommand'](_0x1483bb,_0x56b8a3){const _0x3e372a=this['editor']['commands']['get'](_0x1483bb);if(!_0x3e372a)throw new _0x97435f('track-changes-command-not-found',this,{'commandName':_0x1483bb});if(this['_enabledCommands']['has'](_0x3e372a))throw new _0x97435f('track-changes-enable-command-twice',this,{'commandName':_0x1483bb});this['_enabledCommands']['add'](_0x3e372a),_0x56b8a3&&_0x3e372a['on']('execute',(_0x1e988d,_0x2ee964)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x2ee964['length']>0x0&&_0x2ee964[_0x2ee964['length']-0x1]&&_0x2ee964[_0x2ee964['length']-0x1]['forceDefaultExecution']?_0x2ee964['pop']():(_0x1e988d['return']=_0x56b8a3((..._0x35887b)=>_0x3e372a['execute'](..._0x35887b,{'forceDefaultExecution':!0x0}),..._0x2ee964),_0x1e988d['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x356973){let _0x4eb828,_0x536257;const _0x220933=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4eb828=_0x356973();}catch(_0x205c9e){_0x536257=_0x205c9e;}return _0x220933||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x536257&&_0x97435f['rethrowUnexpectedError'](_0x536257,this),_0x4eb828;}['markInsertion'](_0xca0565,_0x428c36=null,_0x15f88b={}){if(_0xca0565['isCollapsed'])return null;const _0xb6e638=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x54f6da,meta:_0x2b0dc9}of this['_findSuggestions'](_0xca0565,'insertion'))if(_0x2b0dc9['isOwn']){if(!_0x2b0dc9['isNextTo']){if(_0x2b0dc9['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!zt(_0x54f6da,_0x15f88b))continue;return _0x54f6da;}if(zt(_0x54f6da,_0x15f88b))return _0x54f6da;this['_breakSuggestionMarker'](_0x54f6da,_0xca0565['start'],_0xca0565['end']);break;}if(_0x428c36==_0x54f6da['subType']&&zt(_0x54f6da,_0x15f88b)){const _0x56454b=_0x54f6da['getFirstRange']();return _0x56454b['start']['isEqual'](_0xca0565['end'])?this['_setSuggestionRange'](_0x54f6da,this['_model']['createRange'](_0xca0565['start'],_0x56454b['end'])):this['_setSuggestionRange'](_0x54f6da,this['_model']['createRange'](_0x56454b['start'],_0xca0565['end'])),_0x54f6da;}}const _0xf99638=_0xb11af3(),_0x2f8b06=_0xb6e638['id'],_0x3e6b4b=_0x428c36?'insertion:'+_0x428c36:'insertion',_0x2f1e69=this['_setSuggestionData']({'id':_0xf99638,'type':_0x3e6b4b,'createdAt':new Date(),'authorId':_0x2f8b06,'attributes':_0x15f88b});return this['_addSuggestionMarker'](_0x3e6b4b,_0xf99638,_0x2f8b06,_0xca0565),_0x2f1e69;}['markMultiRangeInsertion'](_0x3fc53b,_0x24260f='multi',_0x48b6ad={}){const _0x549ecf=this['editor']['plugins']['get']('Users')['me'],_0x55d08c=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x24260f,'join');for(const _0x253c5b of this['getSuggestions']())if(_0x253c5b['author']['id']==_0x549ecf['id']&&'insertion'==_0x253c5b['type']&&_0x253c5b['subType']==_0x24260f&&zt(_0x253c5b,_0x48b6ad)&&(_0x55d08c(_0x253c5b['getRanges'](),_0x3fc53b)||_0x55d08c(_0x3fc53b,_0x253c5b['getRanges']()))){for(const _0x1e84a8 of _0x3fc53b)_0x253c5b['addRange'](_0x1e84a8);return _0x253c5b;}for(const {suggestion:_0x42c486,meta:_0x35dd3b}of this['_findSuggestions'](_0x3fc53b,'insertion')){if(!_0x35dd3b['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x35dd3b['containsRangeInObject'])continue;if(!zt(_0x42c486,_0x48b6ad))continue;let _0x4cbf3e=!0x0;for(const _0x1878a0 of _0x42c486['getRanges']())for(const _0x3f945d of _0x3fc53b)if(!_0x1878a0['containsRange'](_0x3f945d)){_0x4cbf3e=!0x1;break;}if(_0x4cbf3e)return _0x42c486;}const _0x2ec3e1=_0xb11af3(),_0x5b5191=_0x549ecf['id'],_0xa56f8='insertion:'+_0x24260f,_0x594167=this['_setSuggestionData']({'id':_0x2ec3e1,'type':_0xa56f8,'createdAt':new Date(),'authorId':_0x5b5191,'attributes':_0x48b6ad});for(const _0x524849 of _0x3fc53b)this['_addSuggestionMarker'](_0xa56f8,_0x2ec3e1,_0x5b5191,_0x524849,o['getMultiRangeId']());return _0x594167;}['markInlineFormat'](_0x4b324c,_0x2c8e9e,_0x1c2e23=null,_0x4cab1b={}){if(_0x1c2e23=_0x1c2e23||Gt(_0x2c8e9e),_0x4b324c['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x421c4b=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1c2e23,'accept');return this['forceDefaultExecution'](()=>_0x421c4b([_0x4b324c],_0x2c8e9e,_0x4cab1b)),null;}const _0x515136=this['editor']['plugins']['get']('Users')['me'],_0x301771=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x2a548e,meta:_0x1c906a}of this['_findSuggestions'](_0x4b324c,'insertion'))_0x1c906a['isOwn']&&!_0x1c906a['isInsideObject']&&_0x301771['push'](..._0x2a548e['getRanges']());}const _0x92722=function(_0x2b5bf4,_0x20f4ca){const _0x37c7b9=[];for(const _0x141387 of _0x20f4ca){const _0x33e399=_0x2b5bf4['getIntersection'](_0x141387);_0x33e399&&_0x37c7b9['push'](_0x33e399);}return _0x37c7b9;}(_0x4b324c,_0x301771),_0x260da5=function(_0x40b0b1,_0x22e4e2){const _0x1d43f6=[_0x40b0b1];for(const _0x5779f9 of _0x22e4e2){let _0x41e36a=0x0;for(;_0x41e36a<_0x1d43f6['length'];){const _0x162ab9=_0x1d43f6[_0x41e36a]['getDifference'](_0x5779f9);_0x1d43f6['splice'](_0x41e36a,0x1,..._0x162ab9),_0x41e36a+=_0x162ab9['length'];}}return _0x1d43f6;}(_0x4b324c,_0x301771);_0x92722['length']&&this['_model']['change'](()=>{for(const _0x193763 of _0x92722){const _0x45d69e=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1c2e23,'accept');this['forceDefaultExecution'](()=>_0x45d69e([_0x193763],_0x2c8e9e,_0x4cab1b));}});for(const _0x27a535 of _0x260da5){let _0x28a6c4=null,_0x4b501d=_0x27a535['start'],_0x104bad=_0x27a535['end'];for(const {suggestion:_0x401179,meta:_0x1b3b57}of this['_findSuggestions'](_0x27a535,'formatInline')){if(!_0x1b3b57['isOwn'])continue;if(_0x401179['subType']!=_0x1c2e23)continue;if(!zt(_0x401179,_0x4cab1b))continue;const _0x207b43=_0x401179['getFirstRange']();if(_0x207b43['containsRange'](_0x27a535,!0x0))return null;_0x4b501d=_0x4b501d['isBefore'](_0x207b43['start'])?_0x4b501d:_0x207b43['start'],_0x104bad=_0x104bad['isAfter'](_0x207b43['end'])?_0x104bad:_0x207b43['end'],_0x28a6c4?_0x207b43['start']['isBefore'](_0x28a6c4['getFirstRange']()['start'])?(_0x28a6c4['removeMarkers'](),_0x28a6c4=_0x401179):_0x401179['removeMarkers']():_0x28a6c4=_0x401179;}const _0x455c49=this['_model']['createRange'](_0x4b501d,_0x104bad);if(_0x28a6c4)this['_setSuggestionRange'](_0x28a6c4,_0x455c49);else{const _0x519529=_0xb11af3(),_0x54f7e0=_0x515136['id'];this['_setSuggestionData']({'id':_0x519529,'type':'formatInline:'+_0x1c2e23,'data':_0x2c8e9e,'createdAt':new Date(),'authorId':_0x54f7e0,'attributes':_0x4cab1b}),this['_addSuggestionMarker']('formatInline:'+_0x1c2e23,_0x519529,_0x54f7e0,_0x455c49);}}return null;}['markBlockFormat'](_0x4da8dc,_0x5b717d,_0x3bd8b2=[],_0x8d8384=null,_0x2012ed={}){_0x5b717d['formatGroupId']||(_0x5b717d['formatGroupId']=_0x5b717d['commandName']),_0x5b717d['multipleBlocks']=_0x4da8dc['is']('range'),_0x8d8384=_0x8d8384||Gt(_0x5b717d);const _0x1a3b28=_0x3bd8b2['map'](_0x9871f=>Kt(_0x9871f,this['_model'])),_0x3d2ee1=_0x4da8dc['is']('range')?_0x4da8dc:Kt(_0x4da8dc,this['_model']);if('never'===this['_trackFormatChanges']){const _0x43aa89=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x8d8384,'accept');return this['forceDefaultExecution'](()=>_0x43aa89([_0x3d2ee1],_0x5b717d,_0x2012ed)),null;}_0x1a3b28['push'](_0x3d2ee1);let _0x18deae=!0x0;for(const _0x235523 of _0x1a3b28)if(!this['_rangeIsInLocalUserInsertion'](_0x235523)){_0x18deae=!0x1;break;}if(_0x18deae&&'always'!==this['_trackFormatChanges']){const _0x24c4a9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x8d8384,'accept');return this['forceDefaultExecution'](()=>_0x24c4a9([_0x3d2ee1],_0x5b717d,_0x2012ed)),null;}let _0xbfccdf=null,_0x4d2a10=_0x3d2ee1['start'],_0x1b081b=_0x3d2ee1['end'];for(const {suggestion:_0x510ddf,meta:_0x19e8d0}of this['_findSuggestions'](_0x3d2ee1,'formatBlock')){if(!_0x19e8d0['isOwn'])continue;if(_0x19e8d0['isNextTo']||_0x19e8d0['containsRangeInObject']||_0x19e8d0['isInsideObject'])continue;if(_0x510ddf['data']['formatGroupId']!=_0x5b717d['formatGroupId'])continue;if(!zt(_0x510ddf,_0x2012ed))continue;const _0x3d3694=_0x510ddf['getFirstRange']();if(_0x510ddf['subType']==_0x8d8384){if(_0x3d3694['containsRange'](_0x3d2ee1,!0x0))return null;_0x4d2a10=_0x4d2a10['isBefore'](_0x3d3694['start'])?_0x4d2a10:_0x3d3694['start'],_0x1b081b=_0x1b081b['isAfter'](_0x3d3694['end'])?_0x1b081b:_0x3d3694['end'],_0xbfccdf?_0x3d3694['start']['isBefore'](_0xbfccdf['getFirstRange']()['start'])?(_0xbfccdf['removeMarkers'](),_0xbfccdf=_0x510ddf):_0x510ddf['removeMarkers']():_0xbfccdf=_0x510ddf;}else{const _0x386091=_0x3d2ee1['getIntersection'](_0x3d3694);this['_cutOutSuggestionMarker'](_0x510ddf,_0x386091);}}const _0x295a98=this['editor']['plugins']['get']('Users')['me'],_0x5dbfde=_0xb11af3(),_0x3eca5c=_0x295a98['id'];if(_0xbfccdf)return this['_setSuggestionRange'](_0xbfccdf,this['_model']['createRange'](_0x4d2a10,_0x1b081b)),_0xbfccdf;{const _0x5beb2a=this['_setSuggestionData']({'id':_0x5dbfde,'type':'formatBlock:'+_0x8d8384,'data':_0x5b717d,'createdAt':new Date(),'authorId':_0x3eca5c,'attributes':_0x2012ed});return this['_addSuggestionMarker']('formatBlock:'+_0x8d8384,_0x5dbfde,_0x3eca5c,this['_model']['createRange'](_0x4d2a10,_0x1b081b)),_0x5beb2a;}}['markMultiRangeBlockFormat'](_0x275918,_0x3c486c,_0xffbcd1=[],_0x30db4a=null,_0x47ce5e={}){_0x3c486c['formatGroupId']||(_0x3c486c['formatGroupId']=_0x3c486c['commandName']);const _0x5a8e26=_0x275918[0x0];_0x3c486c['multipleBlocks']=_0x5a8e26['is']('range'),_0x30db4a=_0x30db4a||Gt(_0x3c486c);const _0x1020c0=_0xffbcd1['map'](_0x3a5a98=>Kt(_0x3a5a98,this['_model'])),_0x17468c=_0x5a8e26['is']('range')?_0x275918:_0x275918['map'](_0x2632cf=>Kt(_0x2632cf,this['_model']));if('never'===this['_trackFormatChanges']){const _0x374a57=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x30db4a,'accept');return this['forceDefaultExecution'](()=>_0x374a57(_0x17468c,_0x3c486c,_0x47ce5e)),null;}_0x1020c0['push'](..._0x17468c);let _0x14353e=!0x0;for(const _0x514470 of _0x1020c0)if(!this['_rangeIsInLocalUserInsertion'](_0x514470)){_0x14353e=!0x1;break;}if(_0x14353e&&'always'!==this['_trackFormatChanges']){const _0x56ee46=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x30db4a,'accept');return this['forceDefaultExecution'](()=>_0x56ee46(_0x17468c,_0x3c486c,_0x47ce5e)),null;}const _0x120f95=this['editor']['plugins']['get']('Users')['me'];for(const _0xa16aeb of this['getSuggestions']()){if(_0xa16aeb['author']['id']!=_0x120f95['id'])continue;if('formatBlock'!=_0xa16aeb['type']||_0xa16aeb['data']['formatGroupId']!=_0x3c486c['formatGroupId'])continue;if(!zt(_0xa16aeb,_0x47ce5e))continue;const _0x6e4578=_0xa16aeb['subType']==_0x30db4a;for(let _0x212a52=0x0;_0x212a52<_0x17468c['length'];_0x212a52++){const _0x15f7e1=_0x17468c[_0x212a52];for(const _0xf0b42e of _0xa16aeb['getMarkers']()){const _0x232dce=_0xf0b42e['getRange']();if(_0x15f7e1['isEqual'](_0x232dce)){_0x6e4578?(_0x17468c['splice'](_0x212a52,0x1),_0x212a52--):_0xa16aeb['removeMarker'](_0xf0b42e['name']);break;}}}}if(0x0==_0x17468c['length'])return null;const _0x2f0423=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x30db4a,'join');for(const _0x2d27cf of this['getSuggestions']())if(_0x2d27cf['author']['id']==_0x120f95['id']&&'formatBlock'==_0x2d27cf['type']&&_0x2d27cf['data']['formatGroupId']==_0x3c486c['formatGroupId']&&_0x2d27cf['subType']==_0x30db4a&&zt(_0x2d27cf,_0x47ce5e)&&(_0x2f0423(_0x2d27cf['getRanges'](),_0x17468c)||_0x2f0423(_0x17468c,_0x2d27cf['getRanges']()))){for(const _0x52299e of _0x17468c)_0x2d27cf['addRange'](_0x52299e);return _0x2d27cf;}const _0x38218b=_0xb11af3(),_0x510d73=_0x120f95['id'],_0x22c315='formatBlock:'+_0x30db4a,_0x4c221b=this['_setSuggestionData']({'id':_0x38218b,'type':_0x22c315,'data':_0x3c486c,'createdAt':new Date(),'authorId':_0x510d73,'attributes':_0x47ce5e});for(const _0x684720 of _0x17468c)this['_addSuggestionMarker'](_0x22c315,_0x38218b,_0x510d73,_0x684720,o['getMultiRangeId']());return _0x4c221b;}['markDeletion'](_0x2cad3b,_0x276b14=null,_0x529e58={}){if(_0x2cad3b['isCollapsed'])return null;const _0x1350a1=this['editor']['plugins']['get']('Users')['me'],_0x53c36d=new _0x33a55c(_0x2cad3b['start'],_0x2cad3b['end']);for(const {suggestion:_0x21cb81,meta:_0x5b492d}of this['_findSuggestions'](_0x53c36d,'insertion'))if(_0x5b492d['isOwn']&&!_0x5b492d['isNextTo']){if(_0x21cb81['isMultiRange']){const _0x31b698=_0x21cb81['getRanges']()['filter'](_0x11afc0=>'$graveyard'!=_0x11afc0['root']['rootName']);_0x31b698['every'](_0x436605=>_0x53c36d['containsRange'](_0x436605,!0x0))&&_0x21cb81['discard']();if(_0x31b698['some'](_0x29cec5=>_0x29cec5['containsRange'](_0x53c36d,!0x0))){const _0x179a31=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x276b14,'accept');return this['forceDefaultExecution'](()=>_0x179a31([_0x53c36d],null,_0x529e58)),null;}}else{const _0x1b7e27=_0x53c36d['getIntersection'](_0x21cb81['getFirstRange']());null!==_0x1b7e27&&_0x21cb81['_onDiscard']([_0x1b7e27],null,_0x529e58);}}if(_0x53c36d['detach'](),_0x53c36d['isCollapsed']||'$graveyard'==_0x53c36d['root']['rootName'])return null;let _0x22a7b2=null,_0x51f6de=_0x53c36d['start'],_0x53567f=_0x53c36d['end'];const _0x1d181b=this['_findSuggestions'](_0x53c36d,'deletion');for(const {suggestion:_0x40c4be,meta:_0x5b2068}of _0x1d181b){const _0x3d69b7=this['_model']['createRange'](_0x51f6de,_0x53567f);if(_0x5b2068['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5b2068['containsRangeInObject']&&!_0x5b2068['isInsideObject'])){if(_0x40c4be['isMultiRange']){if(!zt(_0x40c4be,_0x529e58))continue;let _0x344b3c=!0x0;for(const _0x45db44 of _0x40c4be['getRanges']()){if(_0x45db44['containsRange'](_0x3d69b7,!0x0))return _0x40c4be;_0x3d69b7['containsRange'](_0x45db44)||(_0x344b3c=!0x1);}_0x344b3c&&_0x40c4be['discard']();}else{const _0x5e2d40=_0x40c4be['getFirstRange']();if(_0x5e2d40['containsRange'](_0x3d69b7,!0x0))return _0x40c4be;if(!zt(_0x40c4be,_0x529e58)){_0x3d69b7['containsRange'](_0x5e2d40)?_0x40c4be['removeMarkers']():_0x5e2d40['containsPosition'](_0x51f6de)?_0x51f6de=_0x5e2d40['end']:_0x5e2d40['containsPosition'](_0x53567f)&&(_0x53567f=_0x5e2d40['start']);continue;}_0x51f6de=_0x51f6de['isBefore'](_0x5e2d40['start'])?_0x51f6de:_0x5e2d40['start'],_0x53567f=_0x53567f['isAfter'](_0x5e2d40['end'])?_0x53567f:_0x5e2d40['end'],_0x529e58=Object['assign']({},_0x40c4be['attributes']),_0x22a7b2?_0x5e2d40['start']['isBefore'](_0x22a7b2['getFirstRange']()['start'])?(_0x22a7b2['removeMarkers'](),_0x22a7b2=_0x40c4be):_0x40c4be['removeMarkers']():_0x22a7b2=_0x40c4be;}}}if(_0x22a7b2)return this['_setSuggestionRange'](_0x22a7b2,this['_model']['createRange'](_0x51f6de,_0x53567f)),_0x22a7b2;{const _0x32c698=_0xb11af3(),_0x301f4c=this['_model']['createRange'](_0x51f6de,_0x53567f),_0x5cf4c1=_0x1350a1['id'],_0x8f513a=_0x276b14?'deletion:'+_0x276b14:'deletion',_0x479fc5=this['_setSuggestionData']({'id':_0x32c698,'type':_0x8f513a,'createdAt':new Date(),'authorId':_0x5cf4c1,'attributes':_0x529e58});return this['_addSuggestionMarker'](_0x8f513a,_0x32c698,_0x5cf4c1,_0x301f4c),_0x479fc5;}}['markMultiRangeDeletion'](_0x19655a,_0x584f3c='multi',_0x5d5fb9={}){const _0x4d224e=this['editor']['plugins']['get']('Users')['me'],_0x2f506e=_0x19655a['map'](_0x21c2ba=>new _0x33a55c(_0x21c2ba['start'],_0x21c2ba['end'])),_0x9f4651=new Set();for(const {suggestion:_0x4060e7,meta:_0x1a39a4}of this['_findSuggestions'](_0x2f506e,'insertion'))_0x1a39a4['isOwn']&&!_0x1a39a4['isNextTo']&&_0x9f4651['add'](_0x4060e7);for(const _0x111c27 of _0x9f4651)if(_0x111c27['isMultiRange']){const _0x2a82fc=_0x111c27['getRanges']();(!_0x111c27['attributes']||!_0x111c27['attributes']['skipNestingCheck'])&&(_0x2a82fc['every'](_0x1ef86b=>_0x2f506e['some'](_0x19bd3e=>_0x19bd3e['containsRange'](_0x1ef86b,!0x0)))&&_0x111c27['discard']());if(_0x2f506e['every'](_0xcd57d5=>_0x2a82fc['some'](_0x3e02e3=>_0x3e02e3['containsRange'](_0xcd57d5,!0x0)))){const _0x56ce88=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x584f3c,'accept');return this['forceDefaultExecution'](()=>_0x56ce88(_0x19655a,null,_0x5d5fb9)),null;}}else{const _0x53f867=_0x111c27['getFirstRange']();_0x2f506e['some'](_0x1f8d59=>_0x1f8d59['containsRange'](_0x53f867,!0x0))&&_0x111c27['discard']();if(_0x2f506e['every'](_0x4c8a7a=>_0x53f867['containsRange'](_0x4c8a7a,!0x0))){const _0x13fa99=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x584f3c,'accept');return this['forceDefaultExecution'](()=>_0x13fa99(_0x2f506e,null,_0x5d5fb9)),null;}}const _0x512504=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x584f3c,'join');let _0x1ff42b=null;for(const _0x411851 of this['getSuggestions']())if(_0x411851['author']['id']==_0x4d224e['id']&&_0x411851['isInContent']&&'deletion'==_0x411851['type']&&_0x411851['subType']==_0x584f3c&&zt(_0x411851,_0x5d5fb9)&&(_0x512504(_0x411851['getRanges'](),_0x2f506e)||_0x512504(_0x2f506e,_0x411851['getRanges']()))){if(_0x1ff42b){if(_0x411851['commentThread']&&_0x411851['commentThread']['length'])continue;for(const _0x41947d of _0x411851['getRanges']())_0x1ff42b['isIntersectingWithRange'](_0x41947d)||_0x1ff42b['addRange'](_0x41947d);_0x411851['removeMarkers']();}else{_0x1ff42b=_0x411851;for(const _0x57703e of _0x2f506e)_0x411851['isIntersectingWithRange'](_0x57703e)||_0x411851['addRange'](_0x57703e);}}if(_0x1ff42b)return _0x1ff42b;_0x9f4651['clear']();for(const {suggestion:_0x4dbf6e,meta:_0x48497a}of this['_findSuggestions'](_0x2f506e,'deletion'))_0x48497a['isOwn']&&(this['_mergeNestedSuggestions']||!_0x48497a['containsRangeInObject']&&!_0x48497a['isInsideObject'])&&zt(_0x4dbf6e,_0x5d5fb9)&&_0x9f4651['add'](_0x4dbf6e);for(const _0x54d84b of _0x9f4651){const _0x4e71a9=_0x54d84b['getRanges']();if(!_0x5d5fb9||!_0x5d5fb9['skipNestingCheck']){if(_0x2f506e['every'](_0x418622=>_0x4e71a9['some'](_0x462061=>_0x462061['containsRange'](_0x418622,!0x0))))return _0x54d84b;}(!_0x54d84b['attributes']||!_0x54d84b['attributes']['skipNestingCheck'])&&(_0x4e71a9['every'](_0x560091=>_0x2f506e['some'](_0x10117f=>_0x10117f['containsRange'](_0x560091,!0x0)))&&_0x54d84b['discard']());}const _0x1f16e7=_0xb11af3(),_0x1d2960=_0x4d224e['id'],_0x562f8d='deletion:'+_0x584f3c,_0x461151=this['_setSuggestionData']({'id':_0x1f16e7,'type':_0x562f8d,'createdAt':new Date(),'authorId':_0x1d2960,'attributes':_0x5d5fb9});for(const _0x490866 of _0x2f506e)_0x490866['detach'](),_0x490866['isCollapsed']||'$graveyard'==_0x490866['root']['rootName']||this['_addSuggestionMarker'](_0x562f8d,_0x1f16e7,_0x1d2960,_0x490866,o['getMultiRangeId']());return _0x461151;}['markAttributeChange'](_0x1f6148,_0x799211,_0x1db97e,_0x157550,_0x1dd627){if(_0x1f6148['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2a4e7f=this['editor']['plugins']['get']('Users')['me']['id'],_0x16c51c=Array['from'](this['_suggestions']['values']())['filter'](_0x228aa=>'attribute'==_0x228aa['type']&&_0x228aa['data']['key']==_0x799211&&_0x228aa['isIntersectingWithRange'](_0x1f6148));if('default'===this['_trackFormatChanges']){const _0x4f03a5=this['_findSuggestions'](_0x1f6148,'insertion')['filter'](({meta:_0x1712dd})=>_0x1712dd['isOwn']&&!_0x1712dd['isInsideObject']&&!_0x1712dd['isNextTo'])['map'](({suggestion:_0x122e3d})=>_0x122e3d);_0x16c51c['unshift'](..._0x4f03a5);}const _0x2eb168=new Map([[_0x1f6148,_0x1db97e]]);for(const _0x32d4f0 of _0x16c51c){const _0x250f85='attribute'==_0x32d4f0['type']?_0x32d4f0['data']['oldValue']:void 0x0,_0x46e1cd=_0x32d4f0['getFirstRange'](),_0x1fd3f6=Array['from'](_0x2eb168['keys']())['find'](_0x462293=>_0x462293['isIntersecting'](_0x46e1cd));if(!_0x1fd3f6)continue;const _0xd80d5a=_0x1fd3f6['getDifference'](_0x46e1cd);this['_isBlockAttribute'](_0x799211)&&'insertion'==_0x32d4f0['type']&&0x0!=_0xd80d5a['length']||(_0x2eb168['delete'](_0x1fd3f6),_0xd80d5a['forEach'](_0x1ad4e9=>{_0x2eb168['set'](_0x1ad4e9,_0x1db97e);}),'insertion'!=_0x32d4f0['type']&&_0x250f85!=_0x157550&&_0x2eb168['set'](_0x1fd3f6['getIntersection'](_0x46e1cd),_0x250f85));}const _0x5b946f=[];for(const [_0x471547,_0x2d303d]of _0x2eb168){const _0x56e850=_0xb11af3(),_0x3d1d84={'key':_0x799211,'oldValue':_0x2d303d,'newValue':_0x157550};_0x799211['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':_0x799211});const _0x164b37=('attribute:'+(_0x799211+'|'+Gt({'newValue':_0x157550})))['substring'](0x0,0x3c),_0x4e2835=this['_setSuggestionData']({'id':_0x56e850,'type':_0x164b37,'data':_0x3d1d84,'createdAt':new Date(),'authorId':_0x2a4e7f,'attributes':_0x1dd627});_0x5b946f['push'](_0x4e2835),this['_addSuggestionMarker'](_0x164b37,_0x56e850,_0x2a4e7f,_0x471547);}return _0x5b946f;}['enableDefaultAttributesIntegration'](_0x2e1c69){this['enableCommand'](_0x2e1c69,(_0x3d7481,..._0x4de34a)=>{this['_recordAttributeChanges'](()=>{_0x3d7481(..._0x4de34a);});});}['registerBlockAttribute'](_0x2b1b33){this['_blockAttributeKeys']['add'](_0x2b1b33);}['registerInlineAttribute'](_0x55b619){this['_inlineAttributeKeys']['add'](_0x55b619);}['_getAttributeKey'](_0x45ed9b){return'attribute'==_0x45ed9b['type']?_0x45ed9b['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x5cc311,_0x3fd032){const _0x5f0cda=_0x5cc311['getFirstMarker']();this['_model']['change'](_0x4bab76=>{_0x4bab76['updateMarker'](_0x5f0cda,{'range':_0x3fd032});});}['_addThreadToSuggestion'](_0x2f8d7c){const _0x32c4f0=_0x2f8d7c['id'],_0x3e2225=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x32c4f0)||this['_commentsRepository']['addCommentThread']({'channelId':_0x3e2225,'threadId':_0x32c4f0,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4f4faf=this['_commentsRepository']['getCommentThread'](_0x32c4f0);_0x4f4faf['unbind']('isRemovable'),_0x4f4faf['isRemovable']=!0x1,_0x2f8d7c['commentThread']=_0x4f4faf;}['_checkSuggestionCorrectness'](_0x5dd5c6,_0x3ba573,_0x12b455,_0x5c0f56){if(_0x5dd5c6['type']!=_0x3ba573||_0x5dd5c6['subType']!=_0x12b455||_0x5dd5c6['creator']['id']!=_0x5c0f56)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x97435f('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x2db836,_0x2bcf47){const _0x8d06cd=_0x2db836['getFirstRange']();if(_0x2bcf47['isEqual'](_0x8d06cd))_0x2db836['removeMarkers']();else{if(_0x8d06cd['containsRange'](_0x2bcf47)){const _0x4e4369=this['_model']['createPositionAt'](_0x2bcf47['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2db836,this['_model']['createRange'](_0x8d06cd['start'],_0x4e4369));const _0xad879d=_0xb11af3(),_0x524ef4=_0x2db836['creator']['id'],_0x2e8f03=_0x2db836['type']+':'+_0x2db836['subType'];this['_setSuggestionData']({'id':_0xad879d,'type':_0x2e8f03,'createdAt':new Date(),'authorId':_0x524ef4,'data':_0x2db836['data'],'attributes':_0x2db836['attributes']});const _0x3e7f84=this['_model']['createPositionAt'](_0x2bcf47['end']['parent'],'after'),_0x3165f7=this['_model']['createRange'](_0x3e7f84,_0x8d06cd['end']);this['_addSuggestionMarker'](_0x2e8f03,_0xad879d,_0x524ef4,_0x3165f7);}else{if(_0x8d06cd['containsPosition'](_0x2bcf47['start'])){const _0x20736a=this['_model']['createPositionAt'](_0x2bcf47['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2db836,this['_model']['createRange'](_0x8d06cd['start'],_0x20736a));}else{const _0x31473b=this['_model']['createPositionAt'](_0x2bcf47['end']['parent'],'after');this['_setSuggestionRange'](_0x2db836,this['_model']['createRange'](_0x31473b,_0x8d06cd['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x387806){for(const {suggestion:_0x1d6feb,meta:_0x271d68}of this['_findSuggestions'](_0x387806,'insertion')){if(!_0x271d68['isOwn'])continue;const _0x2955d2=_0x1d6feb['getRanges']();for(const _0x14e865 of _0x2955d2)if(!_0x387806['getDifference'](_0x14e865)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x57b762){const _0x2472d1=this['editor']['plugins']['get']('Users')['getUser'](_0x57b762);if(!_0x2472d1)throw new _0x97435f('track-changes-user-not-found',this);return _0x2472d1;}['_getExternalAuthor'](_0x534909){const _0x2ac1aa=this['editor']['plugins']['get']('Users'),_0x4f9bb4=_0x573f52('external:'+_0x534909),_0x548214=_0x2ac1aa['getUser'](_0x4f9bb4);return _0x548214||_0x2ac1aa['addUser']({'id':_0x4f9bb4,'name':_0x534909});}['_createSuggestion'](_0x43a6ec,_0x57df10,_0x46042f,_0x1fc901,_0x5bad5a){const _0x357509=this['_getAuthorFromId'](_0x1fc901),_0x5a4fa9=this['_suggestionFactory']['buildSuggestion'](_0x43a6ec,_0x57df10,_0x46042f,_0x357509,_0x5bad5a,_0x2b0c43=>{this['_updateSuggestionData'](_0x46042f,{'attributes':_0x2b0c43});const _0xf6b05c=this['getSuggestion'](_0x46042f);this['_joinWithAdjacentSuggestions'](new Set([_0xf6b05c])),this['_refreshSuggestionsChain'](new Set([_0xf6b05c]));});return this['listenTo'](_0x5a4fa9,'accept',()=>{this['_updateSuggestionData'](_0x46042f,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x5a4fa9,'discard',()=>{this['_updateSuggestionData'](_0x46042f,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x46042f,_0x5a4fa9),this['_suggestionState']['set'](_0x5a4fa9,'notReady'),_0x5a4fa9;}['_splitMarkerName'](_0xf2ee35){const _0x29df37=_0xf2ee35['split'](':');return{'group':_0x29df37[0x0],'type':_0x29df37[0x1],'subType':_0x29df37['length']>=0x5?_0x29df37[0x2]:null,'id':_0x29df37['length']<0x5?_0x29df37[0x2]:_0x29df37[0x3],'authorId':_0x29df37['length']<0x5?_0x29df37[0x3]:_0x29df37[0x4],'markerCount':0x6==_0x29df37['length']?_0x29df37[0x5]:null};}['_breakSuggestionMarker'](_0x5a5003,_0x362848,_0x50979e){const _0x47013a=_0x5a5003['getFirstRange'](),_0x3b704f=_0x47013a['start'],_0xf09a06=_0x47013a['end'];this['_setSuggestionRange'](_0x5a5003,this['_model']['createRange'](_0x3b704f,_0x362848));const _0x2ed73d=_0xb11af3(),_0x3c129c=_0x5a5003['creator']['id'],_0x3b6274=_0x5a5003['type']+(_0x5a5003['subType']?':'+_0x5a5003['subType']:'');this['_setSuggestionData']({'id':_0x2ed73d,'type':_0x3b6274,'createdAt':new Date(),'authorId':_0x3c129c,'originalSuggestionId':_0x5a5003['id'],'attributes':_0x5a5003['attributes'],'data':_0x5a5003['data']});const _0x46636a=this['_getAttributeKey'](_0x5a5003);('formatBlock'==_0x5a5003['type']||_0x46636a&&this['_isBlockAttribute'](_0x46636a))&&(_0x50979e=this['_model']['createPositionBefore'](_0x50979e['parent'])),this['_addSuggestionMarker'](_0x3b6274,_0x2ed73d,_0x3c129c,this['_model']['createRange'](_0x50979e,_0xf09a06));}['_findSuggestions'](_0x206d13,_0x2d1606=null){const _0x12a7ac=[],_0x54d75c=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x206d13)||(_0x206d13=[_0x206d13]);for(const _0x300ea8 of this['getSuggestions']()){if(!_0x300ea8['isInContent'])continue;if(_0x2d1606&&_0x300ea8['type']!=_0x2d1606)continue;let _0x21e633=!0x1;for(const _0xadb9d9 of _0x300ea8['getRanges']()){for(const _0x3425a5 of _0x206d13){const _0x2a845e=_0x3425a5['start']['isEqual'](_0xadb9d9['end'])||_0x3425a5['end']['isEqual'](_0xadb9d9['start']);if(_0x2a845e||_0x3425a5['getIntersection'](_0xadb9d9)){const _0x398f6e=_0x3425a5['containsRange'](_0xadb9d9)&&Vt(this['_model']['schema'],_0xadb9d9['start'],_0x3425a5),_0x1eff74=_0xadb9d9['containsRange'](_0x3425a5)&&Vt(this['_model']['schema'],_0x3425a5['start'],_0xadb9d9);_0x12a7ac['push']({'suggestion':_0x300ea8,'meta':{'isOwn':_0x54d75c==_0x300ea8['author'],'isNextTo':_0x2a845e,'isInsideObject':_0x398f6e,'containsRangeInObject':_0x1eff74}}),_0x21e633=!0x0;break;}}if(_0x21e633)break;}}return _0x12a7ac;}['_addSuggestionMarker'](_0x3f9195,_0x2266ab,_0x32cc35,_0x49fb2a,_0x585700){this['_model']['change'](_0x24f386=>{let _0x465b3d='suggestion:'+_0x3f9195+':'+_0x2266ab+':'+_0x32cc35;_0x585700&&(_0x465b3d=_0x465b3d+':'+_0x585700),_0x24f386['addMarker'](_0x465b3d,{'range':_0x49fb2a,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x2d989e){const _0x474d56=_0x2d989e['previous'],_0x28367f=_0x2d989e['next'];_0x2d989e['previous']=null,_0x2d989e['next']=null,null!=_0x474d56&&_0x474d56['next']==_0x2d989e&&(_0x474d56['next']=_0x28367f),null!=_0x28367f&&_0x28367f['previous']==_0x2d989e&&(_0x28367f['previous']=_0x474d56),'ready'==this['_suggestionState']['get'](_0x2d989e)&&(this['_suggestionState']['set'](_0x2d989e,'removed'),this['fire']('suggestionUnloaded',_0x2d989e,_0x474d56,_0x28367f));}['_setSuggestionData'](_0x58583e){const _0x278a4c=_0x58583e['id'],_0x414bd5=this['addSuggestionData'](_0x58583e);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x23f144=this['editor']['plugins']['get']('PendingActions'),_0x1df8a9=_0x414bd5['hasComments'],_0x28adea=_0x414bd5['subType']?_0x414bd5['type']+':'+_0x414bd5['subType']:_0x414bd5['type'],_0x27e92d=this['editor']['locale'],_0x4a4d84=_0x23f144['add'](c(_0x27e92d,'PENDING_ACTION_SUGGESTION')),_0x524f6f={'id':_0x278a4c,'type':_0x28adea,'hasComments':_0x1df8a9,'data':_0x58583e['data']||null,'originalSuggestionId':_0x58583e['originalSuggestionId']||null,'attributes':_0x414bd5['attributes']};this['_adapter']['addSuggestion'](_0x524f6f)['then'](_0x3a3ccd=>{_0x414bd5['_saved']=!0x0,_0x23f144['remove'](_0x4a4d84),_0x3a3ccd&&_0x3a3ccd['createdAt']&&(this['_suggestions']['get'](_0x278a4c)['createdAt']=_0x3a3ccd['createdAt']);})['catch'](_0x3aae12=>{throw _0x423f9c('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x414bd5['discard']();}),_0x414bd5['stopListening'](),this['_suggestions']['delete'](_0x414bd5['id']),this['_suggestionState']['delete'](_0x414bd5),_0x3aae12;});}return _0x414bd5;}['_isBlockAttribute'](_0x4eb0f3){return this['_blockAttributeKeys']['has'](_0x4eb0f3);}['_updateSuggestionData'](_0xc5cdc9,_0x349445){const _0x128acf=this['editor']['plugins']['get']('PendingActions'),_0x5f1012=this['getSuggestion'](_0xc5cdc9);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x5f1012['_saved']){const _0x1b9af2=_0x128acf['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0xc5cdc9,_0x349445)['then'](()=>{_0x128acf['remove'](_0x1b9af2);});}else _0x5f1012['on']('change:_saved',()=>{this['_updateSuggestionData'](_0xc5cdc9,_0x349445);});}}['_getSuggestionData'](_0xfb7ee5){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x97435f('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0xfb7ee5);}['_handleNewSuggestionMarker'](_0x1e05a1){const {id:_0x1a26cd,type:_0x524189,subType:_0x267dd3,authorId:_0x4c101e}=this['_splitMarkerName'](_0x1e05a1),_0x6ff8a0=this['_suggestions']['get'](_0x1a26cd)||this['_createSuggestion'](_0x524189,_0x267dd3,_0x1a26cd,_0x4c101e,{});switch(this['_checkSuggestionCorrectness'](_0x6ff8a0,_0x524189,_0x267dd3,_0x4c101e),this['_suggestionState']['get'](_0x6ff8a0)){case'notReady':this['_getSuggestionData'](_0x1a26cd)['then'](_0x4003af=>{let _0x231c1b=Promise['resolve']();_0x4003af['hasComments']&&(_0x231c1b=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x1a26cd})),_0x231c1b['then'](()=>{this['addSuggestionData'](_0x4003af)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x6ff8a0,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x1a26cd,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x6ff8a0,'ready'),this['fire']('suggestionLoaded',_0x6ff8a0);break;case'ready':this['fire']('suggestionChanged',_0x6ff8a0);}return _0x6ff8a0['addMarkerName'](_0x1e05a1),_0x6ff8a0;}['_refreshSuggestionsChain'](_0x59cb97){const _0x257f6d=Array['from'](_0x59cb97),_0x56eac7=_0x257f6d['filter'](_0x4a7ebe=>'attribute'==_0x4a7ebe['type']);this['_refreshAttributeSuggestionsChain'](_0x56eac7);const _0x3441c1=_0x257f6d['filter'](_0x26f2e2=>!_0x26f2e2['isMultiRange']&&'attribute'!=_0x26f2e2['type']),_0x1e36e4=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3222f7=>!_0x3222f7['isMultiRange']&&'attribute'!=_0x3222f7['type']),_0x7407b7=_0x1e36e4['filter'](_0x12b01b=>!_0x59cb97['has'](_0x12b01b)),_0x413883=new Map(_0x1e36e4['map'](_0x37847a=>[_0x37847a,this['_suggestionFactory']['getSuggestionCallback'](_0x37847a['type'],_0x37847a['subType'],'chain')])),_0x32209a=new Map(_0x1e36e4['map'](_0x28fd5f=>[_0x28fd5f,_0x28fd5f['getFirstRange']()])),_0x54e46f=new Set(),_0x5993f8=new Set();for(let _0x459e32=0x0;_0x459e32<_0x3441c1['length'];_0x459e32++)_0x36b466(_0x3441c1[_0x459e32],_0x3441c1,_0x459e32+0x1);for(let _0x27e58a=0x0;_0x27e58a<_0x3441c1['length'];_0x27e58a++)_0x36b466(_0x3441c1[_0x27e58a],_0x7407b7,0x0);const _0x398085=new Set();for(let _0x33f978=0x0;_0x33f978<_0x3441c1['length'];_0x33f978++){const _0x53226f=_0x3441c1[_0x33f978];!_0x5993f8['has'](_0x53226f)&&_0x53226f['previous']&&(_0x398085['add'](_0x53226f['previous']),_0x53226f['previous']['next']===_0x53226f&&(_0x53226f['previous']['next']=null),_0x53226f['previous']=null),!_0x54e46f['has'](_0x53226f)&&_0x53226f['next']&&(_0x398085['add'](_0x53226f['next']),_0x53226f['next']['previous']===_0x53226f&&(_0x53226f['next']['previous']=null),_0x53226f['next']=null);}function _0x36b466(_0x49f6e3,_0x4c5c0a,_0x49fe2d){for(let _0x382c37=_0x49fe2d;_0x382c37<_0x4c5c0a['length'];_0x382c37++){const _0x340d0d=_0x460e34(_0x49f6e3,_0x4c5c0a[_0x382c37]);_0x340d0d&&(_0x340d0d[0x0]['next']=_0x340d0d[0x1],_0x340d0d[0x1]['previous']=_0x340d0d[0x0],_0x54e46f['add'](_0x340d0d[0x0]),_0x5993f8['add'](_0x340d0d[0x1]));}}function _0x460e34(_0x5e570c,_0xf3bd20){if(_0x5e570c['author']['id']!==_0xf3bd20['author']['id'])return null;const _0x14e4ba=_0x413883['get'](_0x5e570c)(_0x5e570c,_0xf3bd20,_0x32209a['get'](_0x5e570c),_0x32209a['get'](_0xf3bd20));if(!_0x14e4ba)return null;return _0x413883['get'](_0xf3bd20)(_0x5e570c,_0xf3bd20,_0x32209a['get'](_0x5e570c),_0x32209a['get'](_0xf3bd20))?_0x14e4ba[0x1]['commentThread']&&_0x14e4ba[0x1]['commentThread']['length']?null:_0x14e4ba:null;}_0x398085['size']&&this['_refreshSuggestionsChain'](_0x398085);}['_refreshAttributeSuggestionsChain'](_0x512f88){if(0x0==_0x512f88['length'])return;const _0x4cfcbd=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x46c583=>'attribute'==_0x46c583['type']&&_0x46c583['_isDataLoaded']),_0x13146c=[],_0x47d05b=new Map();for(const _0x4a103e of _0x4cfcbd){const _0x396e8f=_0x573f52(_0x4a103e['attributes']);_0x47d05b['has'](_0x396e8f)||(_0x47d05b['set'](_0x396e8f,_0x13146c['length']),_0x13146c['push']([]));const _0x561cc5=_0x47d05b['get'](_0x396e8f);_0x13146c[_0x561cc5]['push'](_0x4a103e);}!(function(){_0x13146c['sort']((_0x42034b,_0x48b01f)=>{const _0x3c262b=_0x42034b[0x0]['createdAt'],_0x4147d5=_0x48b01f[0x0]['createdAt'];return _0x3c262b==_0x4147d5?_0x42034b[0x0]['attributes']['groupId']<_0x48b01f[0x0]['attributes']['groupId']?-0x1:0x1:_0x3c262b<_0x4147d5?-0x1:0x1;});for(const _0xa2556e of _0x13146c)_0xa2556e['sort']((_0xd5b00f,_0x595641)=>_0xd5b00f['id']<_0x595641['id']?-0x1:0x1);}());for(let _0x2f539f=0x0;_0x2f539f<_0x13146c['length'];_0x2f539f++){if(0x0==_0x13146c[_0x2f539f]['length'])continue;const _0x4657dd=[];for(let _0x15786d=_0x2f539f+0x1;_0x15786d<_0x13146c['length'];_0x15786d++)0x0!=_0x13146c[_0x15786d]['length']&&_0x2cb184(_0x13146c[_0x2f539f],_0x13146c[_0x15786d])&&_0x4657dd['push'](_0x15786d);for(const _0x19ac95 of _0x4657dd)_0x13146c[_0x2f539f]=_0x13146c[_0x2f539f]['concat'](_0x13146c[_0x19ac95]),_0x13146c[_0x19ac95]=[];}for(const _0x5e3639 of _0x13146c)for(let _0x1000a5=0x0;_0x1000a5<_0x5e3639['length'];_0x1000a5++){const _0x28eedc=_0x5e3639[_0x1000a5+0x1]||null;_0x5e3639[_0x1000a5]['next']!==_0x28eedc&&(_0x5e3639[_0x1000a5]['next']=_0x28eedc);}for(const _0x8a1dd1 of _0x13146c)for(let _0x28e87c=0x0;_0x28e87c<_0x8a1dd1['length'];_0x28e87c++){const _0x1eff69=_0x8a1dd1[_0x28e87c-0x1]||null;_0x8a1dd1[_0x28e87c]['previous']!==_0x1eff69&&(_0x8a1dd1[_0x28e87c]['previous']=_0x1eff69);}function _0x2cb184(_0x250089,_0x12cdbc){if(_0x250089[0x0]['attributes']['groupId']!==_0x12cdbc[0x0]['attributes']['groupId']&&_0x250089[0x0]['author']!==_0x12cdbc[0x0]['author'])return!0x1;if(!function(_0x189981,_0x48ed5e){if(!_0x189981['hasComments']&&!_0x48ed5e['hasComments'])return!0x0;if(_0x189981['hasComments']&&_0x48ed5e['hasComments'])return!0x1;if(_0x189981['hasComments']&&_0x48ed5e['createdAt']<_0x189981['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x48ed5e['hasComments']&&_0x189981['createdAt']<_0x48ed5e['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x250089[0x0],_0x12cdbc[0x0]))return!0x1;const _0x14e380=Et(_0x250089[0x0]['attributes'],'groupId'),_0x4b8fcc=Et(_0x12cdbc[0x0]['attributes'],'groupId');if(!_0x25540a(_0x14e380,_0x4b8fcc))return!0x1;return!!_0x250089['every'](_0x4ff145=>_0x12cdbc['some'](_0x14090b=>_0x4ff145['getFirstRange']()['isEqual'](_0x14090b['getFirstRange']())))&&_0x12cdbc['every'](_0x473cbb=>_0x250089['some'](_0x3b9574=>_0x473cbb['getFirstRange']()['isEqual'](_0x3b9574['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x2bf1f2){const _0x2bc44e=Array['from'](_0x2bf1f2),_0x165b02=this['getSuggestions']({'skipNotAttached':!0x0}),_0x329430=_0x165b02['filter'](_0x14e3d2=>!_0x2bf1f2['has'](_0x14e3d2)),_0x5731a2=new Map(_0x2bc44e['map'](_0x3a6ed1=>[_0x3a6ed1,this['_suggestionFactory']['getSuggestionCallback'](_0x3a6ed1['type'],_0x3a6ed1['subType'],'join')])),_0x5423ab=new Map(_0x165b02['map'](_0x68b8b9=>[_0x68b8b9,_0x68b8b9['getRanges']()]));for(let _0xe36d09=0x0;_0xe36d09<_0x2bc44e['length'];_0xe36d09++){if(_0x20e992(this,_0x2bc44e[_0xe36d09],_0x2bc44e,_0xe36d09+0x1))return!0x0;}for(let _0x28f727=0x0;_0x28f727<_0x2bc44e['length'];_0x28f727++){if(_0x20e992(this,_0x2bc44e[_0x28f727],_0x329430,0x0))return!0x0;}return!0x1;function _0x20e992(_0x36701b,_0xcd4e40,_0x2b798b,_0x3ff480){for(let _0x3b0142=_0x3ff480;_0x3b0142<_0x2b798b['length'];_0x3b0142++){const _0x454f12=_0x2b798b[_0x3b0142];if(_0x454f12['type']!==_0xcd4e40['type']||_0x454f12['author']['id']!==_0xcd4e40['author']['id']||_0x454f12['subType']!==_0xcd4e40['subType'])continue;if(!qt(_0xcd4e40,_0x454f12))continue;if('attribute'==_0xcd4e40['type']&&_0xcd4e40['data']['oldValue']!=_0x454f12['data']['oldValue'])continue;if('attribute'==_0xcd4e40['type']&&_0x36701b['_isBlockAttribute'](_0xcd4e40['data']['key']))continue;if('formatBlock'==_0xcd4e40['type']){const _0x5e7638=_0x36701b['editor']['model'],_0x3fab41=_0xcd4e40['getContainedElement']();if(_0x3fab41&&(_0x5e7638['schema']['isObject'](_0x3fab41)||_0x5e7638['schema']['isLimit'](_0x3fab41)))continue;}const _0x21d88e=_0x5731a2['get'](_0xcd4e40),_0x4d010c=_0x5423ab['get'](_0xcd4e40),_0x5eaed6=_0x5423ab['get'](_0x454f12),_0x42b4ba=_0xcd4e40['commentThread']&&_0xcd4e40['commentThread']['length'],_0x2d4ed9=_0x454f12['commentThread']&&_0x454f12['commentThread']['length'];if(!_0x42b4ba&&_0x21d88e(_0x5eaed6,_0x4d010c))return _0x36701b['_joinSuggestions'](_0x454f12,_0xcd4e40),_0x5423ab['delete'](_0xcd4e40),!0x0;if(!_0x2d4ed9&&_0x21d88e(_0x4d010c,_0x5eaed6))return _0x36701b['_joinSuggestions'](_0xcd4e40,_0x454f12),_0x5423ab['delete'](_0x454f12),!0x0;}return!0x1;}}['_joinSuggestions'](_0x3d73a9,_0x2afe18){if(_0x3d73a9['isMultiRange']){for(const _0x3d8332 of _0x2afe18['getRanges']())_0x3d73a9['addRange'](_0x3d8332);}else{const _0x17cfb6=_0x2afe18['getFirstRange']()['end'];this['_setSuggestionRange'](_0x3d73a9,this['_model']['createRange'](_0x3d73a9['getFirstRange']()['start'],_0x17cfb6));}_0x2afe18['removeMarkers']();}['_getMarkerAnnouncementText'](_0x3aef14,_0x169d0f,_0x2863fd){const _0x462748=_0x3aef14['startsWith']('format')||_0x3aef14['startsWith']('attribute')?'FORMATTING':_0x3aef14['toUpperCase']();return c(this['editor']['locale'],_0x169d0f+'_'+_0x462748+'_SUGGESTION_ANNOUNCEMENT',_0x2863fd);}['_initAriaMarkerChangeAnnouncements'](){const _0x1cdaef=this['editor'];if(!_0x1cdaef['ui'])return;const {ariaLiveAnnouncer:_0x53359f}=_0x1cdaef['ui'];_0x3b957d(this['_model'],({left:_0x385a67,entered:_0x3b322f})=>{for(const _0x28c30c of _0x385a67){const {group:_0x24bec2,type:_0x165243}=this['_splitMarkerName'](_0x28c30c['name']);if('suggestion'===_0x24bec2){_0x53359f['announce'](this['_getMarkerAnnouncementText'](_0x165243,'LEAVE'));break;}}for(const _0x34585f of _0x3b322f){const {group:_0x370130,type:_0x4a2880}=this['_splitMarkerName'](_0x34585f['name']);if('suggestion'===_0x370130){_0x53359f['announce'](this['_getMarkerAnnouncementText'](_0x4a2880,'ENTER',_0x28e37d(_0x20e5f6)));break;}}});}['_processAttributeChanges'](_0x4660b7){if(this['_recordAttributeSuggestions'])return!0x1;const _0x5d0381=this['editor'],_0x7ddcc0=_0x5d0381['model']['document']['differ']['getChanges']();if(0x0==_0x7ddcc0['length'])return!0x1;const _0x254d9b=[],_0x5e06c9=_0x7ddcc0['filter'](_0x235560=>'attribute'==_0x235560['type']),_0x70f0fc=_0x7ddcc0['filter'](_0x139dc9=>'insert'==_0x139dc9['type']&&'$text'!=_0x139dc9['name']),_0x5bcf0d=_0x7ddcc0['filter'](_0x5e78b1=>'remove'==_0x5e78b1['type']&&'$text'!=_0x5e78b1['name']);for(const _0x30a74f of _0x5e06c9)_0x254d9b['push']({'key':_0x30a74f['attributeKey'],'newValue':_0x30a74f['attributeNewValue'],'oldValue':_0x30a74f['attributeOldValue'],'range':Jt(_0x30a74f['range'],_0x5d0381['model'])});for(const _0x38b2dc of _0x70f0fc){const _0x21ecf8=_0x5bcf0d['find'](_0x30c395=>_0x30c395['position']['isEqual'](_0x38b2dc['position']));_0x21ecf8&&_0x254d9b['push']({'key':u,'newValue':_0x38b2dc['name'],'oldValue':_0x21ecf8['name'],'range':_0x5d0381['model']['createRangeOn'](_0x38b2dc['position']['nodeAfter'])});}return 0x0!=_0x254d9b['length']&&this['_reduceExistingSuggestions'](_0x4660b7,_0x254d9b);}['_processAttributeSuggestions'](_0xf47f03){let _0x122d56=!0x1;const _0x4cd4eb=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1c8ea3=>_0x1c8ea3['data']['newRange']&&_0x1c8ea3['name']['startsWith']('suggestion:attribute:'));for(const _0x3c9168 of _0x4cd4eb){const {subType:_0x59e835,id:_0x4dc36f}=this['_splitMarkerName'](_0x3c9168['name']),_0x50b64e=_0x59e835['split']('|')[0x0];for(const _0x304203 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x304203['id']!=_0x4dc36f&&'attribute'==_0x304203['type']&&_0x304203['data']&&_0x304203['data']['key']==_0x50b64e&&_0x304203['getFirstRange']()['isIntersecting'](_0x3c9168['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x304203,_0x3c9168['data']['newRange'],_0xf47f03),_0x122d56=!0x0);}return _0x122d56;}['_recordAttributeChanges'](_0x37de75){this['_recordAttributeSuggestions']=!0x0,_0x37de75();}['_isRegisteredAttribute'](_0x454d71){const _0x4c160b=this['_isBlockAttribute'](_0x454d71),_0x48c0c3=this['_inlineAttributeKeys']['has'](_0x454d71);return _0x4c160b||_0x48c0c3;}['_reduceExistingSuggestions'](_0x1d0565,_0x7e7d1e){if(0x0==_0x7e7d1e['length'])return!0x1;let _0x3afacd=!0x1;for(const _0x43f9b9 of _0x7e7d1e){const _0x55147c=this['_findSuggestions'](_0x43f9b9['range'],'attribute')['filter'](_0x4f0633=>!_0x4f0633['meta']['isNextTo'])['map'](_0x4d61ff=>_0x4d61ff['suggestion']),_0x5ad4e6=_0x573f52({'newValue':_0x43f9b9['newValue']});_0x55147c['filter'](_0x45da34=>{const [_0x26a909,_0x32b0de]=_0x45da34['subType']['split']('|');return _0x26a909==_0x43f9b9['key']&&_0x32b0de!=_0x5ad4e6;})['forEach'](_0x38bced=>{this['_reduceSuggestionAttributeRange'](_0x38bced,_0x43f9b9['range'],_0x1d0565),_0x3afacd=!0x0;});}return _0x3afacd;}['_reduceSuggestionAttributeRange'](_0x119f2f,_0x6415e4,_0x4980b0){const _0x4b3062=_0x119f2f['getFirstRange']()['getDifference'](_0x6415e4);0x0!==_0x4b3062['length']?0x1!==_0x4b3062['length']?this['_breakSuggestionMarker'](_0x119f2f,_0x6415e4['start'],_0x6415e4['end']):this['_setSuggestionRange'](_0x119f2f,_0x4b3062[0x0]):_0x4980b0['removeMarker'](_0x119f2f['getFirstMarker']());}}class Ut{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x57bc5e){this['_editor']=_0x57bc5e,this['_model']=_0x57bc5e['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x389c87,_0x2eae44,_0x2bda51,_0x27b96b,_0x191c0c,_0x14a7a7){return new o(this['_model'],{'type':_0x389c87,'subType':_0x2eae44,'id':_0x2bda51,'author':_0x27b96b,'creator':_0x27b96b,'attributes':_0x191c0c,'onAttributesChange':_0x14a7a7,'onAccept':(..._0x498197)=>this['getSuggestionCallback'](_0x389c87,_0x2eae44,'accept')(..._0x498197),'onDiscard':(..._0x26789a)=>this['getSuggestionCallback'](_0x389c87,_0x2eae44,'discard')(..._0x26789a)});}['registerCustomCallback'](_0x3cf12b,_0x2d3877,_0x42f0d0,_0x11ae26){const _0x5a1513=_0x3cf12b+':'+_0x2d3877+':'+_0x42f0d0;this['_customCallbacks']['set'](_0x5a1513,_0x11ae26);}['getSuggestionCallback'](_0x4eef0b,_0x69533e,_0x4e2548){const _0x43af0b=_0x4eef0b+':'+_0x69533e+':'+_0x4e2548;return this['_customCallbacks']['get'](_0x43af0b)||this['_defaultCallbacks']['get'](_0x4eef0b+':'+_0x4e2548);}['_registerDefaultCallbacks'](){const _0x2f9bd6=()=>!0x1,_0x51aa22=_0x12e2da=>{_0x12e2da['sort']((_0x4f0053,_0x296052)=>_0x4f0053['start']['isBefore'](_0x296052['start'])?0x1:-0x1),this['_model']['change'](_0x4b76b3=>{for(const _0x309e0e of _0x12e2da){let _0x2d76b9;_0x2d76b9=_0x309e0e['end']['isAtEnd']&&_0x309e0e['end']['parent']==_0x309e0e['start']['nodeAfter']?_0x4b76b3['createSelection'](_0x309e0e['start']['nodeAfter'],'on'):_0x4b76b3['createSelection'](_0x309e0e),this['_model']['deleteContent'](_0x2d76b9,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x5b51f9=(_0x321d15,_0xb06eb9)=>{_0xb06eb9&&this['_model']['change'](_0x565fc5=>{const {commandName:_0x1d8709,commandParams:_0x13786a=[]}=_0xb06eb9,_0x3dfe35=_0x321d15['map'](_0x23a004=>(Ft(_0x23a004)&&(_0x23a004=this['_model']['createRange'](_0x23a004['end'])),_0x23a004))['filter'](_0x51a8e4=>'$graveyard'!==_0x51a8e4['root']['rootName']);if(_0x3dfe35['length']<0x1)return;const _0x2fcfe7=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x15b87b=>_0x33a55c['fromRange'](_0x15b87b));_0x565fc5['setSelection'](_0x3dfe35);for(const _0x293b13 of this['_editor']['commands']['commands']())_0x293b13['refresh']();_0x13786a['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1d8709,..._0x13786a);const _0x22df33=_0x2fcfe7['filter'](_0x33df47=>'$graveyard'!=_0x33df47['root']['rootName']);_0x22df33['length']>0x0&&_0x565fc5['setSelection'](_0x22df33);for(const _0x585327 of _0x2fcfe7)_0x585327['detach']();});},_0x43b186=(_0x224eac,_0x2c803b)=>0x1==_0x224eac['length']&&0x1==_0x2c803b['length']&&_0x224eac[0x0]['end']['isEqual'](_0x2c803b[0x0]['start']),_0x512793=(_0x1ec950,_0x279368,_0x1eac37,_0x12c0e8)=>Ht(_0x1ec950,_0x279368,_0x1eac37,_0x12c0e8)?[_0x1ec950,_0x279368]:Ht(_0x279368,_0x1ec950,_0x12c0e8,_0x1eac37)?[_0x279368,_0x1ec950]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x2f9bd6),this['_defaultCallbacks']['set']('insertion:discard',_0x51aa22),this['_defaultCallbacks']['set']('insertion:join',_0x43b186),this['_defaultCallbacks']['set']('insertion:chain',_0x512793),this['_defaultCallbacks']['set']('deletion:accept',_0x51aa22),this['_defaultCallbacks']['set']('deletion:discard',_0x2f9bd6),this['_defaultCallbacks']['set']('deletion:join',_0x43b186),this['_defaultCallbacks']['set']('deletion:chain',_0x512793),this['_defaultCallbacks']['set']('formatInline:accept',_0x5b51f9),this['_defaultCallbacks']['set']('formatInline:discard',_0x2f9bd6),this['_defaultCallbacks']['set']('formatInline:join',_0x43b186),this['_defaultCallbacks']['set']('formatInline:chain',_0x2f9bd6),this['_defaultCallbacks']['set']('formatBlock:accept',_0x5b51f9),this['_defaultCallbacks']['set']('formatBlock:discard',_0x2f9bd6),this['_defaultCallbacks']['set']('formatBlock:join',_0x43b186),this['_defaultCallbacks']['set']('formatBlock:chain',_0x2f9bd6),this['_defaultCallbacks']['set']('attribute:accept',_0x2f9bd6),this['_defaultCallbacks']['set']('attribute:discard',(_0x26ba29,_0x187e82)=>{if(!_0x187e82)return;const _0x581a16=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x44e5a8=>{if(_0x187e82['key']==u)for(const _0x3fa0d3 of _0x26ba29){const _0x172a23=_0x3fa0d3['start']['nodeAfter'],_0x4177ec=_0x187e82['oldValue'];_0x44e5a8['rename'](_0x172a23,_0x4177ec);}else{if(_0x581a16['_isBlockAttribute'](_0x187e82['key'])){for(const _0x2d4a0e of _0x26ba29)void 0x0!==_0x187e82['oldValue']?_0x44e5a8['setAttribute'](_0x187e82['key'],_0x187e82['oldValue'],_0x2d4a0e['start']['nodeAfter']):_0x44e5a8['removeAttribute'](_0x187e82['key'],_0x2d4a0e['start']['nodeAfter']);}else{for(const _0x3abc97 of _0x26ba29)_0x187e82['oldValue']?_0x44e5a8['setAttribute'](_0x187e82['key'],_0x187e82['oldValue'],_0x3abc97):_0x44e5a8['removeAttribute'](_0x187e82['key'],_0x3abc97);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x43b186);}}function Vt(_0x31a227,_0x5f09c5,_0x42a180){for(const _0xbe1235 of _0x5f09c5['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0xbe1235['root']==_0xbe1235)return!0x1;if(!_0x42a180['containsItem'](_0xbe1235))return!0x1;if(_0x31a227['isObject'](_0xbe1235)||_0x31a227['isLimit'](_0xbe1235))return!0x0;}return!0x1;}function Ft(_0x231fc1){return _0x231fc1['end']['parent']==_0x231fc1['start']['nodeAfter']&&_0x231fc1['end']['isAtStart'];}function Pt(_0x4ecdab,_0x42c9c2,_0x3b4f65,_0x420988){const _0x486efa=_0x20535a=>!_0x20535a['item']['is']('$textProxy')&&!_0x420988['isObject'](_0x20535a['item']),_0x558c12=_0x4ecdab['start']['getLastMatchingPosition'](_0x486efa),_0x32b199=_0x4ecdab['end']['getLastMatchingPosition'](_0x486efa,{'direction':'backward'});return(!_0x4ecdab['start']['isEqual'](_0x558c12)||!_0x4ecdab['end']['isEqual'](_0x32b199))&&(_0x558c12['isBefore'](_0x32b199)?_0x3b4f65['updateMarker'](_0x42c9c2,{'range':_0x3b4f65['createRange'](_0x558c12,_0x32b199)}):_0x3b4f65['removeMarker'](_0x42c9c2),!0x0);}function Gt(_0x2c6f69){return _0x573f52(_0x2c6f69);}function Lt(_0x462d6b){const _0x9558be=_0x462d6b['start']['nodeAfter'];return _0x9558be&&_0x9558be['is']('element');}function Jt(_0x16232a,_0x347bba){return null==_0x16232a['end']['nodeBefore']&&_0x16232a['end']['parent']==_0x16232a['start']['nodeAfter']?Kt(_0x16232a['start']['nodeAfter'],_0x347bba):_0x16232a;}function Kt(_0x3d4345,_0x115661){const _0x1188f6=_0x115661['schema']['isObject'](_0x3d4345)||_0x115661['schema']['isSelectable'](_0x3d4345);return _0x115661['createRange'](_0x115661['createPositionAt'](_0x3d4345,'before'),_0x1188f6?_0x115661['createPositionAfter'](_0x3d4345):_0x115661['createPositionAt'](_0x3d4345,'end'));}function Ht(_0x1de0fa,_0x5618ef,_0x405514,_0x3c70d2){return!!qt(_0x1de0fa,_0x5618ef)&&_0x405514['end']['isEqual'](_0x3c70d2['start']);}function qt(_0x4f5846,_0x3ed284){if(!_0x4f5846['_isDataLoaded']||!_0x3ed284['_isDataLoaded'])return!0x1;const _0x56b42e=new Set(Object['keys'](_0x4f5846['attributes'])),_0x6f18e8=new Set(Object['keys'](_0x3ed284['attributes']));if(_0x56b42e['delete']('groupId'),_0x6f18e8['delete']('groupId'),0x0==_0x56b42e['size']&&0x0==_0x6f18e8['size'])return!0x0;if(_0x56b42e['size']!=_0x6f18e8['size'])return!0x1;const _0x13cbfa={..._0x4f5846['attributes']},_0x51a37d={..._0x3ed284['attributes']};return delete _0x13cbfa['groupId'],delete _0x51a37d['groupId'],JSON['stringify'](_0x13cbfa)==JSON['stringify'](_0x51a37d);}function zt(_0x1ce2b0,_0x1d6421){const _0x22610a=Wt(_0x1ce2b0['attributes']),_0x423f66=Wt(_0x1d6421);if(!_0x1ce2b0['_isDataLoaded'])return!0x1;for(const _0x531525 of Object['keys'](_0x423f66))if(!_0x25540a(_0x22610a[_0x531525],_0x423f66[_0x531525]))return!0x1;return!0x0;}function Wt(_0xaafd1){const _0x3ab7a9=Object['assign']({},_0xaafd1);return delete _0x3ab7a9['skipNestingCheck'],delete _0x3ab7a9['tablePasteChainId'],_0x3ab7a9;}class pe extends/* #__PURE__ -- @preserve */
25
+ _0x3c5479(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x29f9bc,_0x3709c9,_0x2cd4f2,_0x4ad18b){super(),this['model']=_0x3709c9,this['view']=_0x2cd4f2,this['commentThreadController']=_0x4ad18b,this['_editor']=_0x29f9bc,this['_acceptCommand']=_0x29f9bc['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x29f9bc['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x2b6add,_0x311e13)=>_0x2b6add||_0x311e13),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x222593=>_0x222593&&this['_editor']['model']['canEditAt'](_0x3709c9['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x2feb8c=>_0x2feb8c&&this['_editor']['model']['canEditAt'](_0x3709c9['getRanges']())),this['_pendingAction']=null,_0x2cd4f2['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x2cd4f2,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x2cd4f2,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x2cd4f2,'change:isDirty',()=>{_0x2cd4f2['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 _0x365539=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x365539);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x235450{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x52152b,_0x405a53,_0x1278cb,_0x568113){super(_0x52152b),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x2ded57(_0x52152b,c(_0x52152b,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x405a53['authoredAt']),this['bind']('authoredAt')['to'](_0x405a53),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',_0x405a53,'authoredAt',this,'descriptionParts',(_0xffa03d,_0x490d63,_0x2ed616)=>{const _0x4ae32a=_0x2ed616['map'](_0x32b295=>ls(_0x32b295['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0xffa03d-0x1,_0x405a53['author']['name'],_0x490d63?_0x568113['formatDateTime'](_0x490d63):'',new DOMParser()['parseFromString'](_0x4ae32a,'text/html')['body']['textContent']]);}),this['focusables']=new _0x4a05f1(),this['focusTracker']=new _0x4a4022(),this['keystrokes']=new _0x1138ff(),this['focusCycler']=new _0x32a4a6({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x1087e7=>_0x1087e7['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x405a53,this['_localUser']=_0x1278cb,this['_config']=_0x568113,_0x568113['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x246d2c(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x31f9bb}=this['_config'];this['commentsListView']=new _0x31f9bb(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',_0x347e9c=>_0x347e9c+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x1ef945,_0x4cbc1d)=>_0x1ef945||!!_0x4cbc1d);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x561231}=this['_config'],_0x4b06dd=new _0x561231(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5740a3=_0x4b06dd['commentInputView'];return _0x4b06dd['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x5740a3,'value',(_0x23864b,_0x267aef,_0x428fff)=>!!_0x428fff||_0x23864b&&!_0x267aef),_0x5740a3['on']('submit',(_0x96386,_0x49a868)=>{this['fire']('addComment',_0x49a868),_0x5740a3['editor']['setData']('');}),_0x5740a3['on']('cancel',()=>this['focus']()),_0x5740a3['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4b06dd;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x9d676a,_0x3e7343,_0x28527b,_0x248644){super(_0x9d676a,_0x3e7343,_0x28527b,_0x248644),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x12f8e2=>_0x12f8e2&&_0x12f8e2[0x0]?_0x12f8e2[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x452c3f,_0x1291a2)=>{let _0xf44b45='';for(const _0x3237ad of _0x452c3f)_0xf44b45+='<p>'+ls(_0x3237ad['content'],_0x3237ad['color'])+'</p>';return _0x1291a2?_0xf44b45:ti(_0xf44b45,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x248644['SuggestionView'](_0x9d676a,_0x3e7343,{'formatDateTime':_0x248644['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 _0x328ad4=this['bindTemplate'],_0x7bff9e=[this['suggestionView']];return this['commentsListView']&&_0x7bff9e['push'](this['commentsListView']),this['commentThreadInputView']&&_0x7bff9e['push'](this['commentThreadInputView']),_0x7bff9e['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x328ad4['if']('isActive','ck-suggestion-wrapper--active'),_0x328ad4['to']('type',_0x37488e=>'ck-suggestion-'+_0x37488e),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':_0x328ad4['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x7bff9e};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class we extends _0x235450{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x640b7a,_0x249418,_0x355697){super(_0x640b7a),this['_model']=_0x249418,this['_config']=_0x355697,this['set']('description',''),this['bind']('authoredAt')['to'](_0x249418),this['acceptButton']=this['_createButton'](c(_0x640b7a,'Accept\x20suggestion'),_0x498c5b,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x640b7a,'Discard\x20suggestion'),_0x27c97d,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x2c1c86(_0x640b7a,_0x249418['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x4a05f1([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x4a4022(),this['keystrokes']=new _0x1138ff(),this['focusCycler']=new _0x32a4a6({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x11d24b=>_0x11d24b['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x388cc0=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x388cc0['innerHTML']=this['description'],this['on']('change:description',(_0x5c1ac8,_0x3b9972,_0x1cf50a)=>{_0x388cc0['innerHTML']=_0x1cf50a;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x1e1406=this['bindTemplate'],_0x262e29=[{'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':_0x1e1406['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x1e1406['to']('authoredAt',_0x15a1ea=>this['_config']['formatDateTime'](_0x15a1ea))}]}]},{'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']&&_0x262e29['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':_0x262e29}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x54a88e,_0x1df117,_0x2b94cc,_0x21e656,_0x4a86ef){const _0x5d9aa5=new _0x4c4533(this['locale']);return _0x5d9aa5['set']({'label':_0x54a88e,'icon':_0x1df117,'tooltip':!0x0,'tooltipPosition':_0x4a86ef}),_0x5d9aa5['extendTemplate']({'attributes':{'class':_0x2b94cc}}),_0x5d9aa5['on']('execute',()=>{this['fire'](_0x21e656,this['_model']['id']);}),_0x5d9aa5;}['_setupKeyboardNavigation'](){const _0x2c7510=this['element'];this['keystrokes']['listenTo'](_0x2c7510);for(const _0x74588b of this['focusables'])this['focusTracker']['add'](_0x74588b['element']),this['keystrokes']['listenTo'](_0x74588b['element']);this['keystrokes']['set']('enter',(_0x57c837,_0x22ab8c)=>{_0x2c7510===_0x57c837['target']&&(this['focusCycler']['focusFirst'](),_0x22ab8c());}),this['keystrokes']['set']('esc',(_0x483495,_0x5485d4)=>{_0x2c7510!==_0x483495['target']&&(this['focus'](),_0x5485d4());});}}class d extends _0x346e12{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x420210,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3e2e0d){super(_0x3e2e0d),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x1dae43=this['editor']['config'];_0x1dae43['define']('trackChanges.SuggestionThreadView',fe),_0x1dae43['define']('trackChanges.SuggestionView',we),_0x1dae43['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x1dae43['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x13615f,_0x5d63cd){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x43434b,_0x4e5dec]of this['_handleControllerBuffer']){const _0x2e603d=this['_suggestionToController']['has'](_0x43434b);_0x2e603d||_0x4e5dec?_0x2e603d&&_0x4e5dec&&this['_destroyController'](_0x43434b):this['_initializeController'](_0x43434b);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x13615f,_0x5d63cd);}['init'](){const _0x2e1213=this['editor'],_0x58537d=_0x2e1213['plugins']['get']('TrackChangesEditing'),_0x21bc15=_0x2e1213['plugins']['get']('Annotations'),_0x42d071=_0x2e1213['plugins']['get']('EditorAnnotations'),_0x475f81=_0x2e1213['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x42d071['addSourceCollector'](()=>{const _0xe15b37=[];for(const [_0x35e75a,_0x134b27]of Array['from'](this['_suggestionToController'])){const _0x5a5812=_0x35e75a['getAllAdjacentSuggestions'](),_0x2f5f9f=[];for(const _0x294267 of _0x5a5812){if(!_0x294267['isInContent'])continue;if(_0x294267['isMultiRange']){_0x2f5f9f['push'](..._0x294267['getRanges']());continue;}const _0x1d8811=_0x294267['getFirstRange']();if(_0x2f5f9f['length']>0x0){const _0x51f953=_0x2f5f9f[0x0]['getJoined'](_0x1d8811);if(_0x51f953){_0x2f5f9f[0x0]=_0x51f953;continue;}}_0x2f5f9f['push'](_0x1d8811);}_0xe15b37['push']([_0x134b27['view'],_0x2f5f9f]);}return _0xe15b37;}),this['listenTo'](_0x58537d,'suggestionLoaded',(_0x58f6ca,_0x4953e2)=>{this['listenTo'](_0x4953e2,'change:previous',(_0x348ea4,_0x2e3d0e,_0x4dc341,_0x5c0247)=>{_0x4953e2['isInContent']&&(null==_0x4dc341?(this['_updateController'](_0x5c0247['head']),this['_handleSuggestionControllerDelayed'](_0x4953e2,!0x1)):(this['_updateController'](_0x4dc341['head']),null==_0x5c0247&&this['_handleSuggestionControllerDelayed'](_0x4953e2,!0x0)));}),null!==_0x4953e2['previous']?this['_updateController'](_0x4953e2['head']):this['_handleSuggestionControllerDelayed'](_0x4953e2,!0x1);}),this['listenTo'](_0x58537d,'suggestionUnloaded',(_0x5b781f,_0x53bf88,_0x573516)=>{this['stopListening'](_0x53bf88,'change:previous'),this['_handleControllerBuffer']['delete'](_0x53bf88),this['_suggestionToController']['has'](_0x53bf88)&&this['_destroyController'](_0x53bf88),_0x573516&&this['_updateController'](_0x573516['head']);}),this['listenTo'](_0x58537d,'suggestionChanged',(_0x38c20c,_0x1a995a)=>{this['_updateController'](_0x1a995a);}),this['listenTo'](_0x21bc15,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x475f81,'addComment',(_0x6de47d,{threadId:_0x324ffd,isFromAdapter:_0x537a8d})=>{if(_0x537a8d||!_0x58537d['hasSuggestion'](_0x324ffd))return;const _0x5b687c=_0x58537d['getSuggestion'](_0x324ffd);this['_suggestionToController']['get'](_0x5b687c)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5d3b79=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x42f7e0;for(const _0x8a1903 in _0x5d3b79){const _0x1da41f=_0x8a1903,_0x48acca=_0x5d3b79[_0x1da41f];if('trackChangesLicenseKeyValid'==_0x48acca||'trackChangesLicenseKeyInvalid'==_0x48acca||'trackChangesLicenseKeyExpired'==_0x48acca||'trackChangesLicenseKeyDomainLimit'==_0x48acca||'trackChangesLicenseKeyNotAllowed'==_0x48acca||'trackChangesLicenseKeyEvaluationLimit'==_0x48acca||'trackChangesLicenseKeyTrialLimit'==_0x48acca||'trackChangesLicenseKeyUsageLimit'==_0x48acca){delete _0x5d3b79[_0x1da41f],_0x42f7e0=_0x48acca,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x42f7e0&&_0x5d3b79['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x42f7e0&&_0x5d3b79['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x42f7e0&&_0x5d3b79['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x42f7e0&&_0x5d3b79['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x42f7e0&&_0x5d3b79['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x42f7e0&&_0x5d3b79['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x42f7e0&&_0x5d3b79['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x1a9dbc=this['editor']['plugins']['get']('Annotations'),_0x51a351=this['editor']['plugins']['get']('TrackChangesEditing'),_0xe2f161=Array['from'](_0x1a9dbc['activeAnnotations'],_0x509f5d=>_0x509f5d['innerView'])['filter'](_0x2a32e3=>this['_viewToController']['has'](_0x2a32e3)),_0x44bf73=[];for(const _0x4abf25 of _0xe2f161){const _0x458874=this['_viewToController']['get'](_0x4abf25)['model']['getAllAdjacentSuggestions']();_0x44bf73['push'](..._0x458874['reduce']((_0x2ebe17,_0x2e601f)=>[..._0x2ebe17,..._0x2e601f['getMarkerNames']()],[]));}_0x51a351['activeMarkers']=_0x44bf73;}['_addUIComponentsToFactory'](){const _0x39b74b=this['editor'],_0xb2779=_0x39b74b['locale'],_0x43d86e=c(_0xb2779,'Track\x20changes'),_0xb7fe28=new _0x45a5c0([{'type':'switchbutton','model':new _0x56ba85({'withText':!0x0,'isToggleable':!0x0,'label':_0x43d86e,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x56ba85({'withText':!0x0,'label':c(_0xb2779,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x56ba85({'withText':!0x0,'label':c(_0xb2779,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x56ba85({'withText':!0x0,'label':c(_0xb2779,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x56ba85({'withText':!0x0,'label':c(_0xb2779,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x39b74b['plugins']['has']('TrackChangesPreview')&&_0xb7fe28['addMany']([{'type':'separator'},{'type':'button','model':new _0x56ba85({'withText':!0x0,'label':c(_0xb2779,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x2ce147 of _0xb7fe28)if(ke(_0x2ce147)){const _0x3640c5=_0x39b74b['commands']['get'](_0x2ce147['model']['commandName']);_0x2ce147['model']['bind']('isOn','isEnabled')['to'](_0x3640c5,'value','isEnabled');}_0x39b74b['ui']['componentFactory']['add']('trackChanges',_0x58cef2=>this['_createToolbarButton'](_0x58cef2,_0xb7fe28,_0x43d86e)),_0x39b74b['ui']['componentFactory']['add']('menuBar:trackChanges',_0x37fbf7=>this['_createMenuBarMenu'](_0x37fbf7,_0xb7fe28,_0x43d86e));}['_createToolbarButton'](_0x3607cb,_0x2b5662,_0x138bf0){const _0x11a6bb=_0x222b05(_0x3607cb,_0x46f898),_0x492d0c=this['editor']['commands']['get']('trackChanges');_0x11a6bb['buttonView']['set']({'tooltip':_0x138bf0,'label':_0x138bf0,'icon':_0x28714b}),_0x11a6bb['buttonView']['bind']('isOn')['to'](_0x492d0c,'value'),_0x11a6bb['buttonView']['on']('execute',()=>{_0x492d0c['execute'](),this['editor']['editing']['view']['focus']();}),_0x5a8619(_0x11a6bb,_0x2b5662,{'role':'menu'});const _0x1c2802=[];for(const _0x149c06 of _0x2b5662)ke(_0x149c06)&&_0x1c2802['push'](this['editor']['commands']['get'](_0x149c06['model']['commandName']));const _0x5bdce4=_0x11a6bb['buttonView'];return _0x5bdce4['actionView']['unbind']('isEnabled'),_0x5bdce4['arrowView']['unbind']('isEnabled'),_0x5bdce4['actionView']['bind']('isEnabled')['to'](_0x492d0c,'isEnabled'),_0x5bdce4['arrowView']['bind']('isEnabled')['toMany'](_0x1c2802,'isEnabled',(..._0x615176)=>_0x615176['some'](_0x4453df=>_0x4453df)),_0x11a6bb['on']('execute',_0x521be7=>{this['editor']['execute'](_0x521be7['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x11a6bb;}['_createMenuBarMenu'](_0x4aae7e,_0x2fc8e7,_0xbb98e4){const _0x56ada8=new _0x2bb805(_0x4aae7e),_0x11a663=this['editor']['commands']['get']('trackChanges');_0x56ada8['buttonView']['set']({'label':_0xbb98e4,'icon':_0x28714b});const _0x385b70=new _0x470e55(_0x4aae7e);for(const _0x4eccdd of _0x2fc8e7){if('separator'==_0x4eccdd['type']){_0x385b70['items']['add'](new _0x128c5e(_0x4aae7e));continue;}const _0x2243b7=new _0x2b8b4f(_0x4aae7e,_0x56ada8),_0x5007ad=new _0x4a4b4b(_0x4aae7e),_0x7d15ee=_0x4eccdd['model'];_0x5007ad['bind'](...Object['keys'](_0x7d15ee))['to'](_0x7d15ee),_0x5007ad['delegate']('execute')['to'](_0x56ada8),_0x5007ad['on']('execute',()=>{this['editor']['execute'](_0x7d15ee['commandName']),this['editor']['editing']['view']['focus']();}),_0x2243b7['children']['add'](_0x5007ad),_0x385b70['items']['add'](_0x2243b7);}return _0x56ada8['bind']('isEnabled')['to'](_0x11a663,'isEnabled'),_0x56ada8['panelView']['children']['add'](_0x385b70),_0x56ada8;}['_initializeController'](_0x3565cf){const _0x5036e5=this['editor'],_0x4db915=_0x5036e5['config'],_0x51fc20=_0x5036e5['plugins']['get']('Annotations'),_0x2c9284=_0x5036e5['plugins']['get']('CommentsRepository'),_0x1f4017=_0x5036e5['plugins']['get']('EditorAnnotations'),_0x468272=_0x5036e5['plugins']['get'](_0x420210)['me'],_0x522047=_0x4db915['get']('trackChanges')['SuggestionThreadView'],_0x312e98=_0x4db915['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x5bea0a,CommentThreadInputView:_0x3c4e99}=_0x5036e5['plugins']['get']('CommentsUI');let _0x1d2aa1,_0x1efc8c,_0x50a424;this['_annotationViews']['has'](_0x3565cf['id'])?(_0x1efc8c=this['_annotationViews']['get'](_0x3565cf['id']),_0x1d2aa1=_0x1efc8c['mainView']):(_0x1d2aa1=new _0x522047(_0x5036e5['locale'],_0x3565cf,_0x468272,{'disableComments':this['_disableComments'],'editorConfig':{..._0x4db915['get']('comments.editorConfig'),'licenseKey':_0x4db915['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x4db915['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4db915['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4db915['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x20bd73(_0x4db915['get']('locale')),'CommentView':_0x4db915['get']('comments')['CommentView'],'CommentsListView':_0x5bea0a,'CommentThreadInputView':_0x3c4e99,'SuggestionView':_0x312e98}),_0x1d2aa1['suggestionView']['acceptButton']['on']('execute',()=>{_0x5036e5['editing']['view']['focus']();}),_0x1d2aa1['suggestionView']['discardButton']['on']('execute',()=>{_0x5036e5['editing']['view']['focus']();}),_0x1efc8c=_0x51fc20['createAnnotationView'](this['editor']['locale'],_0x1d2aa1),_0x1efc8c['bind']('isDirty')['to'](_0x1d2aa1,'isDirty'),_0x1efc8c['bind']('length')['to'](_0x1d2aa1),_0x1efc8c['bind']('type')['to'](_0x1d2aa1,'type',_0x4adb91=>'suggestion-'+_0x4adb91),_0x1d2aa1['on']('escape',()=>{_0x50a424['fire']('escape');}),this['_annotationViews']['set'](_0x3565cf['id'],_0x1efc8c));const _0x18e183=_0x2c9284['createCommentThreadController'](_0x3565cf['commentThread'],_0x1d2aa1),_0x34960e=new pe(_0x5036e5,_0x3565cf,_0x1d2aa1,_0x18e183),_0x16d47b=_0x3565cf['getAllAdjacentSuggestions']()['filter'](_0x5f2016=>_0x5f2016['isInContent']);_0x1d2aa1['descriptionParts']=_0x5036e5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x16d47b),this['_suggestionToController']['set'](_0x3565cf,_0x34960e),this['_viewToController']['set'](_0x1d2aa1,_0x34960e),_0x50a424=_0x51fc20['createAnnotation']({'view':_0x1efc8c,'target':()=>{const _0x49be93=[],_0xc1f7c9=_0x3565cf['getAllAdjacentSuggestions']()['filter'](_0x122088=>_0x122088['isInContent']);for(const _0xa2dca of _0xc1f7c9)_0x49be93['push'](..._0xa2dca['getMarkers']());return _0xdb3c95(_0x5036e5['editing'],_0x49be93);},'type':()=>'suggestion-'+_0x34960e['view']['type']}),_0x2c9284['_bindAnnotationToEditors'](_0x1d2aa1,_0x50a424),_0x51fc20['add'](_0x50a424),_0x1f4017['registerAnnotation'](_0x50a424);}['_destroyController'](_0x44f705){const _0x166e7a=this['editor']['plugins']['get']('CommentsRepository'),_0x5521a1=this['editor']['plugins']['get']('Annotations'),_0x173e46=this['_suggestionToController']['get'](_0x44f705),_0x3769c6=_0x173e46['view'],_0x150b40=_0x5521a1['getByInnerView'](_0x3769c6);_0x166e7a['_unbindEditors'](_0x3769c6),_0x150b40&&_0x5521a1['remove'](_0x150b40),this['_suggestionToController']['delete'](_0x44f705),this['_viewToController']['delete'](_0x3769c6),_0x173e46['destroy']();}['_updateController'](_0x254c91){if(!_0x254c91['isInContent']||!this['_suggestionToController']['has'](_0x254c91))return;const _0x12d9dc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x126971=this['_suggestionToController']['get'](_0x254c91),_0x550fe9=_0x254c91['getAllAdjacentSuggestions']();_0x126971['view']['descriptionParts']=_0x12d9dc['descriptionFactory']['getDescriptions'](_0x550fe9);}['destroy'](){for(const _0x5cec3f of this['_suggestionToController']['keys']())this['_destroyController'](_0x5cec3f);for(const _0x23b277 of this['_annotationViews']['values']())_0x23b277['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x4aa8b4){return'model'in _0x4aa8b4;}class k extends _0x346e12{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x2d0ff9){this['editor']['plugins']['get'](p)['adapter']=_0x2d0ff9;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x4e1dec){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x4e1dec);}['getSuggestions']({skipNotAttached:_0x1d010a=!0x1,toJSON:_0x5376e3=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x1d010a,'toJSON':_0x5376e3});}['getSuggestion'](_0x42384e){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x42384e);}}const w=['Pagination'];class T extends _0x346e12{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x360204=this['editor'];if(_0x360204['config']['define']('trackChangesData.editorCreator',_0x29c405=>{const _0x1e03f5=_0x360204['model']['document']['getRootNames']()['reduce']((_0x32351e,_0x386cbc)=>(_0x32351e[_0x386cbc]='',_0x32351e),{});return _0x360204['constructor']['create'](_0x1e03f5,_0x29c405);}),'function'!=typeof _0x360204['config']['get']('trackChangesData')['editorCreator'])throw new _0x97435f('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x22166f){return N(this['editor'],!0x0,_0x22166f);}['getDataWithDiscardedSuggestions'](_0x388b41){return N(this['editor'],!0x1,_0x388b41);}}class D extends _0x346e12{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2a5be5){function _0x31b7c4(_0x511bb1){return _0x511bb1['map'](_0x386c90=>String['fromCharCode'](_0x386c90))['join']('');}super(_0x2a5be5),this['result']='end',_0x2a5be5[_0x31b7c4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x31b7c4([0x76,0x69,0x65,0x77])][_0x31b7c4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x31b7c4([0x61,0x75,0x74,0x6f]),_0x2a5be5[_0x31b7c4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x31b7c4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x31b7c4([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x31b7c4([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x31b7c4([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(_0x1d5b04){return void 0x0!==_0x1d5b04['getRootsAttributes'];}async function N(_0x387d43,_0x1e6fd6,_0x519c80){const _0x326157=_0x3c9f74(_0x387d43,w);_0x326157['plugins']['push'](p,D),_0x326157['rootsAttributes']=Fe(_0x387d43)?_0x387d43['getRootsAttributes']():void 0x0;const _0xe49762=document['createDocumentFragment'](),_0x22194b=_0x387d43['config']['get']('trackChangesData')['editorCreator'],_0x45db8b=await _0x22194b(_0x326157,()=>function(_0x7b903c){const _0x5f4b8b=document['createElement']('div');return _0x7b903c['appendChild'](_0x5f4b8b),_0x5f4b8b;}(_0xe49762));!function(_0x75e7e2,_0x1e561c){const _0x5f03c4=_0x75e7e2['model']['document']['getRootNames']()['reduce']((_0x49756e,_0x28d4d5)=>(_0x49756e[_0x28d4d5]=_0x75e7e2['data']['get']({'rootName':_0x28d4d5}),_0x49756e),{}),_0x2413ba=_0x75e7e2['plugins']['get']('Users')['users']['map'](_0x7edb92=>({'id':_0x7edb92['id'],'name':_0x7edb92['name']})),_0x380f4c=_0x75e7e2['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x557c8a=_0x75e7e2['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4693e3=_0x1e561c['plugins']['get']('Users'),_0xce6126=_0x1e561c['plugins']['get']('TrackChangesEditing'),_0x1f70ee=_0x1e561c['plugins']['get']('CommentsRepository');for(const _0x5775df of _0x1f70ee['getCommentThreads']())_0x5775df['remove']();for(const _0x48aa4d of _0x2413ba)_0x4693e3['getUser'](_0x48aa4d['id'])||_0x4693e3['addUser'](_0x48aa4d);_0x4693e3['me']||_0x4693e3['useAnonymousUser']();for(const _0x163133 of _0x557c8a)_0x1f70ee['addCommentThread'](_0x163133);for(const _0x4542ab of _0x380f4c)_0xce6126['addSuggestionData'](_0x4542ab);_0x1e561c['data']['set'](_0x5f03c4);}(_0x387d43,_0x45db8b),_0x45db8b['execute'](_0x1e6fd6?'acceptAllSuggestions':'discardAllSuggestions');const _0x857dd7=Fe(_0x45db8b)?_0x45db8b['getFullData'](_0x519c80):_0x45db8b['data']['get'](_0x519c80);return await _0x45db8b['destroy'](),_0x857dd7;}class Me extends _0x235450{['options'];constructor(_0x4afa52,_0x4eaf7c){super(_0x4afa52),this['options']=_0x4eaf7c,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'](_0x3f1c65,_0x36826d){if(!this['element'])return;const _0x4fd92a=[];for(const [_0x423baa,_0x365bf9]of _0x3f1c65){const _0x19b28d=document['createElement']('div');_0x19b28d['setAttribute']('data-ck-root-name',_0x423baa),_0x19b28d['className']=_0x365bf9['classes']+'\x20ck-track-changes-preview__root-container',_0x19b28d['innerHTML']=_0x365bf9['content'],_0x4fd92a['push'](_0x19b28d);}_0x36826d(this['element'],_0x4fd92a),this['element']['style']['width']='',this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x1ef9c2{constructor(_0xba01be){super(_0xba01be),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x3a2742=this['editor'],_0x3a24bc=_0x3a2742['locale'],_0x2a3c1e=_0x3a2742['plugins']['get']('Dialog');let _0x53482b;const _0xab236f=function(_0x39354f){const _0x5d491e={};if('editables'in _0x39354f['ui']['view']){for(const [_0x34a9a3,_0x2753a1]of Object['entries'](_0x39354f['ui']['view']['editables']))_0x5d491e[_0x34a9a3]=_0x2753a1['element'];}else _0x5d491e[_0x39354f['model']['document']['getRootNames']()[0x0]]=_0x39354f['ui']['view']['editable']['element'];return _0x5d491e;}(_0x3a2742),_0x343916=function(_0x1dfc33){let _0x4e2176=0x0;for(const _0x79e407 of Object['values'](_0x1dfc33))_0x4e2176=Math['max'](_0x4e2176,_0x79e407['getBoundingClientRect']()['width']);let _0x1fd909=0x0;for(const _0x22d11f of Object['values'](_0x1dfc33))_0x1fd909+=_0x22d11f['getBoundingClientRect']()['height'];const _0x4e5bfa=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x3fa380=Math['min'](_0x1fd909,_0x4e5bfa);return{'width':_0x4e2176,'height':_0x3fa380};}(_0xab236f);_0x2a3c1e['show']({'id':'finalContentPreview','title':c(_0x3a24bc,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x3a24bc,{'dialogRects':_0x343916}),'onHide':()=>{_0x53482b['detachFromDom']();},'onShow':()=>{_0x3a2742['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x58f222=>{const _0x1da506=this['_standarizeRootsData'](_0x58f222,_0x3a2742,_0xab236f);_0x2a3c1e['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x1da506,_0x3a2742['config']['get']('trackChanges.preview.renderFunction'));}),_0x53482b=new _0x2348b9(_0x3a24bc,[_0x2a3c1e['view']]),_0x53482b['attachToDom'](),_0x53482b['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x3a2742['once']('destroy',()=>{_0x53482b['detachFromDom']();});const _0xb202fd=_0x2a3c1e['view']['headerView']['class'];_0x2a3c1e['view']['headerView']['class']=_0xb202fd?_0xb202fd+'\x20ck-reset_all':'ck-reset_all',_0x2a3c1e['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x2a3c1e['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x3d77b2=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x391e97=_0x3d77b2['previewMode'],_0x3e3065={};if('$labels'===_0x391e97){for(const _0x3cc30f of _0x3d77b2['getMergeFieldsIds']())_0x3e3065[_0x3cc30f]=_0x3d77b2['getLabel'](_0x3cc30f)||_0x3cc30f;}else{const _0x5c345f='$defaultValues'===_0x391e97?_0x3d77b2['getDefaultValues']():_0x3d77b2['getDataSetValues'](_0x391e97,!0x0);for(const _0x5033a9 of Object['entries'](_0x5c345f)){const [_0x188333,_0x43073d]=_0x5033a9;_0x3e3065[_0x188333]=null!==_0x43073d?_0x43073d:_0x3d77b2['getLabel'](_0x188333)||_0x188333;}}return{'mergeFieldsData':_0x3e3065};}['_standarizeRootsData'](_0x342092,_0x5dc11a,_0x212ab8){let _0x36d940;if('string'==typeof _0x342092){const _0x1e0a44=_0x5dc11a['model']['document']['getRootNames']()[0x0];_0x36d940={[_0x1e0a44]:_0x342092};}else _0x36d940=_0x342092;const _0x44059d=this['_fixMediaEmbeds'](_0x36d940,_0x5dc11a),_0xa604ba=function(_0xf2988b,_0x44a82a){for(const [_0x8178e0,_0x23161b]of _0xf2988b)_0x23161b['classes']=_0x44a82a[_0x8178e0]['classList']['value']['replace']('ck-focused','');return _0xf2988b;}(this['_sortRoots'](_0x5dc11a)['reduce']((_0x569016,_0x4cef33)=>(_0x569016['push']([_0x4cef33,{'content':_0x44059d[_0x4cef33],'classes':''}]),_0x569016),[]),_0x212ab8);return _0xa604ba;}['_fixMediaEmbeds'](_0x55a531,_0x7b744c){if(!_0x7b744c['plugins']['has']('MediaEmbedEditing'))return _0x55a531;const _0x3963c3=_0x7b744c['plugins']['get']('MediaEmbedEditing');for(const [_0x1f0dc6,_0x4f6aa8]of Object['entries'](_0x55a531)){const _0x5aa713=document['createElement']('div');_0x5aa713['innerHTML']=_0x4f6aa8,(_0x5aa713['querySelectorAll']('figure.media')['forEach'](_0x29429a=>{const _0x1f1258=_0x29429a['querySelector']('oembed');if(_0x1f1258){const _0x52c555=_0x1f1258['getAttribute']('url');if(_0x52c555){const _0x5b5496=_0x3963c3['registry']['getMediaViewElement'](new _0x2b4665(_0x7b744c['editing']['view']['document']),_0x52c555,{'elementName':'','renderForEditingView':!0x0}),_0x4a7270=document['createElement']('div');_0x4a7270['classList']['add']('ck-media__wrapper'),_0x5b5496['render'](_0x4a7270,_0x7b744c['editing']['view']['domConverter']),_0x1f1258['replaceWith'](_0x4a7270);}}}),_0x55a531[_0x1f0dc6]=_0x5aa713['innerHTML']);}return _0x55a531;}['_sortRoots'](_0x7da488){if(!function(_0x70336b){return void 0x0!==_0x70336b['getRootsAttributes'];}(_0x7da488))return _0x7da488['model']['document']['getRootNames']();const _0x20e331=[],_0x37a164=new Map();for(const _0x285a00 of _0x7da488['model']['document']['getRootNames']()){const _0x34917a=_0x7da488['editing']['view']['getDomRoot'](_0x285a00)['getClientRects']()['item'](0x0);_0x20e331['push'](_0x285a00),_0x37a164['set'](_0x285a00,_0x34917a);}return _0x20e331['sort']((_0x128c49,_0x2f3847)=>{const _0x519c3b=_0x37a164['get'](_0x128c49),_0x34f9d3=_0x37a164['get'](_0x2f3847);return _0x519c3b['y']-_0x34f9d3['y']||_0x519c3b['x']-_0x34f9d3['x'];}),_0x20e331;}}class te extends _0x346e12{static get['requires'](){return[T,_0x2acc9b];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x297767){super(_0x297767),_0x297767['commands']['add']('previewFinalContent',new re(this['editor'])),_0x297767['config']['define']('trackChanges.preview.renderFunction',(_0x5832f0,_0x24c003)=>{for(const _0x385a55 of _0x24c003)_0x5832f0['appendChild'](_0x385a55);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};