@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20250924.0 → 0.0.0-nightly-20250926.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 (227) hide show
  1. package/build/track-changes.js +1 -1
  2. package/dist/index.js +4 -4
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +27 -27
  150. package/src/commands/acceptsuggestioncommand.js +1 -1
  151. package/src/commands/discardsuggestioncommand.js +1 -1
  152. package/src/commands/executeonallsuggestionscommand.js +1 -1
  153. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  154. package/src/commands/previewfinalcontentcommand.js +1 -1
  155. package/src/commands/trackchangescommand.js +1 -1
  156. package/src/index.js +1 -1
  157. package/src/integrations/aiassistant.js +1 -1
  158. package/src/integrations/alignment.js +1 -1
  159. package/src/integrations/basicstyles.js +1 -1
  160. package/src/integrations/blockquote.js +1 -1
  161. package/src/integrations/bookmark.js +1 -1
  162. package/src/integrations/casechange.js +1 -1
  163. package/src/integrations/ckbox.js +1 -1
  164. package/src/integrations/codeblock.js +1 -1
  165. package/src/integrations/comments.js +1 -1
  166. package/src/integrations/deletecommand.js +1 -1
  167. package/src/integrations/emoji.js +1 -1
  168. package/src/integrations/entercommand.js +1 -1
  169. package/src/integrations/findandreplace.js +1 -1
  170. package/src/integrations/font.js +1 -1
  171. package/src/integrations/formatpainter.js +1 -1
  172. package/src/integrations/heading.js +1 -1
  173. package/src/integrations/highlight.js +1 -1
  174. package/src/integrations/horizontalline.js +1 -1
  175. package/src/integrations/htmlembed.js +1 -1
  176. package/src/integrations/image.js +1 -1
  177. package/src/integrations/imagereplace.js +1 -1
  178. package/src/integrations/imagestyle.js +1 -1
  179. package/src/integrations/importword.js +1 -1
  180. package/src/integrations/indent.js +1 -1
  181. package/src/integrations/inputcommand.js +1 -1
  182. package/src/integrations/legacylist.js +1 -1
  183. package/src/integrations/legacylistproperties.js +1 -1
  184. package/src/integrations/lineheight.js +1 -1
  185. package/src/integrations/link.js +1 -1
  186. package/src/integrations/list.js +1 -1
  187. package/src/integrations/listproperties.js +1 -1
  188. package/src/integrations/mediaembed.js +1 -1
  189. package/src/integrations/mention.js +1 -1
  190. package/src/integrations/mergefields.js +1 -1
  191. package/src/integrations/multilevellist.js +1 -1
  192. package/src/integrations/pagebreak.js +1 -1
  193. package/src/integrations/paragraph.js +1 -1
  194. package/src/integrations/removeformat.js +1 -1
  195. package/src/integrations/replacesourcecommand.js +1 -1
  196. package/src/integrations/restrictededitingmode.js +1 -1
  197. package/src/integrations/shiftentercommand.js +1 -1
  198. package/src/integrations/standardeditingmode.js +1 -1
  199. package/src/integrations/style.js +1 -1
  200. package/src/integrations/table.js +1 -1
  201. package/src/integrations/tablecaption.js +1 -1
  202. package/src/integrations/tableclipboard.js +2 -2
  203. package/src/integrations/tablecolumnresize.js +1 -1
  204. package/src/integrations/tableheadings.js +1 -1
  205. package/src/integrations/tablelayout.js +1 -1
  206. package/src/integrations/tablemergesplit.js +1 -1
  207. package/src/integrations/tableofcontents.js +1 -1
  208. package/src/integrations/tableproperties.js +1 -1
  209. package/src/integrations/template.js +1 -1
  210. package/src/integrations/title.js +1 -1
  211. package/src/integrations/undo.js +1 -1
  212. package/src/integrations/uploadcare.js +1 -1
  213. package/src/integrations/utils.js +1 -1
  214. package/src/suggestion.js +2 -2
  215. package/src/suggestiondescriptionfactory.js +1 -1
  216. package/src/trackchanges.js +1 -1
  217. package/src/trackchangesdata.js +1 -1
  218. package/src/trackchangesediting.js +1 -1
  219. package/src/trackchangespreview.js +1 -1
  220. package/src/trackchangesui.js +1 -1
  221. package/src/ui/suggestioncontroller.js +2 -2
  222. package/src/ui/view/basesuggestionthreadview.js +1 -1
  223. package/src/ui/view/suggestionthreadview.js +1 -1
  224. package/src/ui/view/suggestionview.js +1 -1
  225. package/src/ui/view/trackchangespreviewview.js +1 -1
  226. package/src/utils/common-translations.js +1 -1
  227. package/src/utils/utils.js +1 -1
package/dist/index.js CHANGED
@@ -20,7 +20,7 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x6d5462,Plugin as _0x391ea2,PendingActions as _0x4fc19a}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x4fb79c,ObservableMixin as _0x4426f7,uid as _0x337574,priorities as _0x36d8eb,insertToPriorityArray as _0x3e47f3,toArray as _0x827f38,logWarning as _0xe7b98c,getEnvKeystrokeText as _0x54ef2c,FocusTracker as _0x57db96,KeystrokeHandler as _0x23845a,Collection as _0x2354f7}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x4b5f2c,IconCancel as _0x531dac,IconTrackChanges as _0x46ba60}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0xe51466,View as _0x1a9b8b,ViewCollection as _0x124ccd,FocusCycler as _0x3897c2,UIModel as _0xeebd88,createDropdown as _0x3d2fa5,SplitButtonView as _0x126eeb,addListToDropdown as _0x5c8048,MenuBarMenuView as _0x283ea5,MenuBarMenuListView as _0x8587c7,ListSeparatorView as _0x5bc23c,MenuBarMenuListItemView as _0x1e5e87,MenuBarMenuListItemButtonView as _0x57ad30,BodyCollection as _0x382327,Dialog as _0x134b2e}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x5616f9,DocumentCompare as _0x371209,hashObject as _0x250706,surroundingMarkersDetector as _0x2f4d24,FOCUS_ANNOTATION_KEYSTROKE as _0x1750a5,AriaDescriptionView as _0x564bb6,setupThreadKeyboardNavigation as _0x3c22e6,trimHtml as _0x4146b1,UserView as _0x199c5c,LateFocusButtonView as _0x410860,getDateTimeFormatter as _0x4cb554,getAllMarkersDomElementsSorted as _0x1487e7,sanitizeEditorConfig as _0x730548}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x3c58d7,ModelLiveRange as _0x4c47d7,ModelLivePosition as _0x575139,ModelPosition as _0x8cdcc2,ModelRange as _0x349021,_DetachOperation as _0x126049,ViewDowncastWriter as _0x46bdde}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x23e323,toWidget as _0x28f42d}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x29a6cc,set as _0x143f09,isEqual as _0x313a6c,unset as _0x4ffa4b,omit as Gt}from'es-toolkit/compat';import{Delete as _0x4bb6d0,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x28e4c7}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x267f27}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x6d5462{['_enabledCommands'];constructor(_0x69ec7d,_0x5d2536){super(_0x69ec7d),this['_enabledCommands']=_0x5d2536,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 _0x2773dc of this['editor']['commands']['commands']())_0x2773dc['affectsData']&&!this['_enabledCommands']['has'](_0x2773dc)&&_0x2773dc['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x84c3db of this['editor']['commands']['commands']())_0x84c3db['affectsData']&&!this['_enabledCommands']['has'](_0x84c3db)&&_0x84c3db['clearForceDisabled']('TrackChangesCommand');}}class T extends _0x6d5462{['_suggestions'];constructor(_0x18425e,_0x3ff42e){super(_0x18425e),this['_suggestions']=_0x3ff42e,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2a05a8){const _0x2f4c69=this['_suggestions']['get'](_0x2a05a8);if(!_0x2f4c69)throw new _0x4fb79c('track-changes-accept-suggestion-not-found',this);const _0x8598e2=_0x2f4c69['getRanges']();this['editor']['model']['canEditAt'](_0x8598e2)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x2f4c69);}}class O extends _0x6d5462{['_suggestions'];constructor(_0xa4e979,_0x3670e1){super(_0xa4e979),this['_suggestions']=_0x3670e1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2bb02f){const _0x5cf616=this['_suggestions']['get'](_0x2bb02f);if(!_0x5cf616)throw new _0x4fb79c('track-changes-discard-suggestion-not-found',this);const _0x27d6f5=_0x5cf616['getRanges']();this['editor']['model']['canEditAt'](_0x27d6f5)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x5cf616);}}function ls(_0xbd80d,_0x492e17){let _0x29e9ca='';return _0x29e9ca+=_0xbd80d['split']('*')['map']((_0x22a7b5,_0xb53ed1)=>_0xb53ed1%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+tn(_0x22a7b5)+'</span>':tn(_0x22a7b5))['join'](''),_0x492e17&&(_0x29e9ca+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x492e17['value']+'\x22\x20title=\x22'+_0x492e17['title']+'\x22></span>'),_0x29e9ca;}function tn(_0x1d6e88){const _0x5ebd60=document['createElement']('span');return _0x5ebd60['innerText']=_0x1d6e88,_0x5ebd60['innerHTML'];}function ts(_0xb04cf6){return _0xb04cf6['sort']((_0x5480cd,_0x2cb186)=>'attribute'===_0x5480cd['type']&&'attribute'!==_0x2cb186['type']?-0x1:'attribute'!==_0x5480cd['type']&&'attribute'===_0x2cb186['type']?0x1:'deletion'==_0x5480cd['type']&&'deletion'!=_0x2cb186['type']?-0x1:'deletion'!=_0x5480cd['type']&&'deletion'==_0x2cb186['type']?0x1:0x0);}function to(_0x9788be,_0x56a6f3){let _0x4d0538,_0x57b821=0x0;const _0x5aeece=[],_0x537015=_0x56a6f3['schema'];for(;_0x57b821<_0x9788be['length'];){const _0x30b07e=_0x9788be[_0x57b821],_0x529282=_0x9788be[_0x57b821+0x1];_0x4d0538||(_0x4d0538=_0x56a6f3['createPositionBefore'](_0x30b07e)),nn(_0x56a6f3,_0x30b07e,_0x529282)||(_0x5aeece['push'](_0x56a6f3['createRange'](_0x4d0538,_0x537015['isObject'](_0x30b07e)?_0x56a6f3['createPositionAfter'](_0x30b07e):_0x56a6f3['createPositionAt'](_0x30b07e,'end'))),_0x4d0538=null),_0x57b821++;}return _0x5aeece;}function nn(_0x4b23b7,_0x344158,_0x3365c6){if(!_0x3365c6)return!0x1;const _0x57ecdd=_0x4b23b7['createPositionAfter'](_0x344158),_0x53efda=_0x4b23b7['createPositionBefore'](_0x3365c6);return _0x57ecdd['isTouching'](_0x53efda);}function rs(_0x301ed0,_0x106ef7,_0x57c97e){for(;_0x57c97e['length'];){const _0x472f47=_0x57c97e['splice'](0x0,0x64);_0x301ed0['change'](()=>{for(const _0x110896 of _0x472f47)_0x110896['isInContent']&&_0x106ef7['execute'](_0x110896['id']);});}}class x extends _0x6d5462{['_command'];['_suggestions'];constructor(_0x204a6b,_0x5d30dd,_0x1a6597){super(_0x204a6b),this['_command']=_0x5d30dd,this['_suggestions']=_0x1a6597,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4de204=Array['from'](this['_suggestions']['values']())['some'](_0x32abc1=>_0x32abc1['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x4de204;}['execute'](){const _0x45e792=ts(Array['from'](this['_suggestions']['values']()));for(const _0x15bcdc of _0x45e792){const _0x198082=_0x15bcdc['getRanges']();if(!this['editor']['model']['canEditAt'](_0x198082))return;}rs(this['editor']['model'],this['_command'],_0x45e792);}}class E extends _0x6d5462{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x18c119,_0x1e8ad4,_0x25c38d){super(_0x18c119),this['_command']=_0x1e8ad4,this['_suggestions']=_0x25c38d,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x198cc7=this['editor']['model']['document']['selection'],_0x38ce34=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x202909,_0x5e8c59){const _0x3a7ab0=Array['from'](_0x202909['getRanges']()),_0x46bd36=new Set();for(const _0x26d48c of _0x5e8c59)if(_0x26d48c['isInContent']){for(const _0x5496d8 of _0x3a7ab0)for(const _0x216c55 of _0x26d48c['getRanges']())(_0x5496d8['isIntersecting'](_0x216c55)||_0x202909['isCollapsed']&&!_0x26d48c['isMultiRange']&&_0x26d48c['next']&&_0x216c55['end']['isTouching'](_0x5496d8['start']))&&_0x46bd36['add'](_0x26d48c);}return _0x46bd36;}(_0x198cc7,_0x38ce34),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x143362=ts(Array['from'](this['_selectedSuggestions']));for(const _0x23d4d3 of _0x143362){const _0x592d28=_0x23d4d3['getRanges']();if(!this['editor']['model']['canEditAt'](_0x592d28))return;}rs(this['editor']['model'],this['_command'],_0x143362);}}class R extends/* #__PURE__ -- @preserve */
24
- _0x4426f7(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x4385c2,_0x1b91a2){super(),this['id']=_0x1b91a2['id'],this['type']=_0x1b91a2['type'],this['subType']=_0x1b91a2['subType']||null,this['author']=_0x1b91a2['author'],this['creator']=_0x1b91a2['creator']||_0x1b91a2['author'],this['isExternal']=Boolean(_0x1b91a2['attributes']&&_0x1b91a2['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x1b91a2['originalSuggestionId']||null,this['_model']=_0x4385c2,this['_onAccept']=_0x1b91a2['onAccept'],this['_onDiscard']=_0x1b91a2['onDiscard'],this['_onAttributesChange']=_0x1b91a2['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1b91a2['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 _0x332607=this;for(;_0x332607['previous'];)_0x332607=_0x332607['previous'];return _0x332607;}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'](_0x1295cd){this['_markerNames']['add'](_0x1295cd);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x1ce04c=>this['_model']['markers']['get'](_0x1ce04c))['filter'](_0x1dba42=>_0x1dba42);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x9f478b=>{for(const _0x7fdea8 of this['getMarkers']())_0x9f478b['removeMarker'](_0x7fdea8);}),this['_markerNames']['clear']();}['removeMarker'](_0x7d9885){this['_model']['change'](_0xb4a5f4=>{_0xb4a5f4['removeMarker'](_0x7d9885);}),this['_markerNames']['delete'](_0x7d9885);}['addRange'](_0x2e8926){const _0x2e1e41='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+R['getMultiRangeId']();this['addMarkerName'](_0x2e1e41),this['_model']['change'](_0x3f2fcf=>{_0x3f2fcf['addMarker'](_0x2e1e41,{'range':_0x2e8926,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x131908){for(const _0x5e8676 of this['getRanges']())if(_0x5e8676['isIntersecting'](_0x131908))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x53be99=>_0x53be99['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x2f9fcf,_0x1d89c3)=>[..._0x2f9fcf,..._0x1d89c3['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x40a1f7=this['getRanges']();if(0x1!=_0x40a1f7['length'])return null;const _0x45c916=_0x40a1f7[0x0],_0x508d50=_0x45c916['start']['nodeAfter'],_0x39308a=_0x45c916['end']['nodeBefore'];return _0x508d50 instanceof _0x3c58d7?_0x508d50!=_0x39308a?null:_0x508d50: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 _0x5ee6d1=[];let _0x439f2a=this['head'];for(;_0x439f2a;)_0x5ee6d1['push'](_0x439f2a),_0x439f2a=_0x439f2a['next'];return _0x5ee6d1;}['setAttribute'](_0x8609e0,_0x19e4cb){const _0x537c6c=_0x29a6cc(this['attributes']);_0x143f09(_0x537c6c,_0x8609e0,_0x19e4cb),_0x313a6c(_0x537c6c,this['attributes'])||(this['attributes']=_0x537c6c,this['_onAttributesChange'](_0x537c6c));}['removeAttribute'](_0x1e25ef){const _0xb692b2=_0x29a6cc(this['attributes']);_0x4ffa4b(_0xb692b2,_0x1e25ef),_0x313a6c(_0xb692b2,this['attributes'])||(this['attributes']=_0xb692b2,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 _0x337574()['substr'](0x1,0x5);}}function o(_0x3f7050,_0x4e8eb0,_0x2abd29){const _0x1de2ae=_0x3f7050['t'],t=_0x3f7050['t'];switch(_0x4e8eb0){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',_0x2abd29);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x2abd29);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x2abd29);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x2abd29);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x2abd29);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',_0x2abd29);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x2abd29);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',_0x2abd29);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x2abd29);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x2abd29);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x2abd29);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x2abd29);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x2abd29);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x2abd29);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x2abd29);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x2abd29);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x2abd29);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x2abd29);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x2abd29);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x2abd29);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x2abd29);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x2abd29);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x2abd29);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x2abd29);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x2abd29);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'},_0x2abd29);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x2abd29);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x2abd29);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x2abd29);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x2abd29);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x2abd29);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x2abd29);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x2abd29);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'},_0x2abd29);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x2abd29);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x2abd29);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x2abd29);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x2abd29);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'},_0x2abd29);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x2abd29);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'},_0x2abd29);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'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'},_0x2abd29);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x2abd29);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'},_0x2abd29);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x2abd29);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'},_0x2abd29);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x2abd29);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x2abd29);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'},_0x2abd29);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x2abd29);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 _0x1de2ae({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x2abd29);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x1de2ae({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x2abd29);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x2abd29);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'},_0x2abd29);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'},_0x2abd29);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'},_0x2abd29);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x4e8eb0;}}class U{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0xdceba9,_0x58cea8){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0xdceba9,this['_locale']=_0x58cea8;}['getDescriptions'](_0xd351f){const _0x19c044=[],_0x393c9e=new Set(),_0x3d533c=new Set();for(let _0x2ff4ea=0x0;_0x2ff4ea<_0xd351f['length'];_0x2ff4ea++){const _0x2ddd3b=_0xd351f[_0x2ff4ea];if(!_0x2ddd3b['isInContent'])continue;const _0x39a5c5=this['_handleCustomCallbackDescription'](_0x2ddd3b);if(_0x39a5c5){if(null!=_0x2ddd3b['subType']){if(_0x393c9e['has'](_0x2ddd3b['subType']))continue;_0x393c9e['add'](_0x2ddd3b['subType']);}_0x19c044['push'](_0x39a5c5);}else{if('attribute'==_0x2ddd3b['type']){const _0x228c21=_0x2ddd3b['data']['key'];if(_0x3d533c['has'](_0x228c21))continue;_0x3d533c['add'](_0x2ddd3b['data']['key']),_0x228c21==m?this['_handleRenameSuggestionDescription'](_0x19c044,_0x2ddd3b):this['_handleAttributeSuggestionDescription'](_0x19c044,_0x2ddd3b);continue;}'insertion'!=_0x2ddd3b['type']&&'deletion'!=_0x2ddd3b['type']||this['_handleInsertRemoveSuggestionDescription'](_0x19c044,_0x2ddd3b,_0xd351f[_0x2ff4ea+0x1]);}}return this['_resolveDescriptionItems'](_0x19c044);}['registerDescriptionCallback'](_0x2b019e){this['_customCallbacks']['push'](_0x2b019e);}['registerElementLabel'](_0x368b07,_0x2ae975,_0x4e0c05=_0x36d8eb['normal']){'function'==typeof _0x368b07?_0x3e47f3(this['_itemLabelsCallbacks'],{'matchingCallback':_0x368b07,'label':_0x2ae975,'priority':_0x4e0c05}):this['_itemLabels']['set'](_0x368b07,_0x2ae975);}['registerAttributeLabel'](_0x30318c,_0x31e38c){this['_attributeLabels']['set'](_0x30318c,_0x31e38c);}['getItemLabel'](_0x1bead3,_0x3dc9c5=0x1){let _0x52865e;for(const _0x3f5618 of this['_itemLabelsCallbacks'])if(_0x3f5618['matchingCallback'](_0x1bead3)){_0x52865e=_0x3f5618['label'];break;}return _0x52865e||(_0x52865e=this['_itemLabels']['get'](_0x1bead3['name'])),_0x52865e?_0x52865e(_0x3dc9c5):0x1!==_0x3dc9c5?_0x3dc9c5+'\x20'+_0x1bead3['name']+'s':''+_0x1bead3['name'];}['_addDescriptionItems'](_0x3559cb,_0x9ef1ef){const _0x44bfba=_0x9ef1ef['getFirstRange']()['getWalker'](),_0x164183='insertion'==_0x9ef1ef['type']?'add':'remove';for(const _0x511e8a of _0x44bfba){const _0x407683=_0x511e8a['item'],_0xaadfb6=_0x3559cb[_0x3559cb['length']-0x1];if(_0x407683['is']('$textProxy'))_0xaadfb6&&_0xaadfb6['type']['indexOf']('Container')>-0x1&&_0x3559cb['pop'](),_0xaadfb6&&'text'==_0xaadfb6['type']?_0xaadfb6[_0x164183]+=_0x407683['data']:_0x3559cb['push']({'type':'text','add':'add'==_0x164183?_0x407683['data']:'','remove':'remove'==_0x164183?_0x407683['data']:''});else{if(this['_schema']['isObject'](_0x407683)){const _0x45c740=_0x407683;if(_0xaadfb6&&_0xaadfb6['type']['indexOf']('Container')>-0x1&&_0x3559cb['pop'](),'elementEnd'==_0x511e8a['type'])continue;_0xaadfb6&&_0xaadfb6['type']==_0x164183+'Object'&&_0xaadfb6['element']['name']==_0x45c740['name']?_0xaadfb6['quantity']++:_0x3559cb['push']({'type':_0x164183+'Object','element':_0x45c740,'quantity':0x1}),_0x44bfba['skip'](_0x2159b9=>!('elementEnd'==_0x2159b9['type']&&_0x2159b9['item']==_0x407683));}else{if(this['_schema']['checkChild'](_0x407683,'$text')||_0x407683['is']('element','softBreak')){const _0x1b65b8=_0x407683;if('add'==_0x164183&&'elementStart'==_0x511e8a['type']||'remove'==_0x164183&&'elementEnd'==_0x511e8a['type'])continue;if(_0xaadfb6&&-0x1==_0xaadfb6['type']['indexOf']('Container')){'text'==_0xaadfb6['type']&&(_0xaadfb6[_0x164183]+='\x0a');continue;}let _0x47b987;if(_0x47b987='add'==_0x164183?_0x1b65b8['nextSibling']&&!this['_schema']['isObject'](_0x1b65b8['nextSibling'])?_0x1b65b8['nextSibling']:null:_0x1b65b8['previousSibling']&&!this['_schema']['isObject'](_0x1b65b8['previousSibling'])?_0x1b65b8['previousSibling']:null,_0x1b65b8['isEmpty']||_0x47b987&&_0x47b987['isEmpty']){const _0x3c3aa7=_0x47b987&&_0x47b987['isEmpty']?_0x47b987:_0x1b65b8;_0xaadfb6&&_0xaadfb6['type']==_0x164183+'EmptyContainer'&&_0xaadfb6['element']['name']==_0x3c3aa7['name']?_0xaadfb6['quantity']++:_0x3559cb['push']({'type':_0x164183+'EmptyContainer','element':_0x3c3aa7,'quantity':0x1});}else _0x3559cb['push']({'type':_0x164183+'Container','element':_0x1b65b8});}}}}}['_resolveDescriptionItems'](_0x1590f8){const _0x32c99b=this['_locale'],_0x558c86=[],_0x2ea38b=[],_0x5049f2=[];for(const _0x5a2fd6 of _0x1590f8)switch(_0x5a2fd6['type']){case'text':if(_0x5a2fd6['add']=_0x5a2fd6['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x5a2fd6['remove']=_0x5a2fd6['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x5a2fd6['add']&&''!=_0x5a2fd6['remove']){_0x558c86['push']({'type':'replace','content':o(_0x32c99b,'REPLACE_TEXT',['\x22'+_0x5a2fd6['remove']+'\x22','\x22'+_0x5a2fd6['add']+'\x22'])});continue;}if(null!=_0x5a2fd6['add']['match'](/^ +$/)){_0x558c86['push']({'type':'insertion','content':o(_0x32c99b,'*Insert:*\x20%0',o(_0x32c99b,'ELEMENT_SPACE',_0x5a2fd6['add']['length']))});continue;}if(null!=_0x5a2fd6['remove']['match'](/^ +$/)){_0x558c86['push']({'type':'deletion','content':o(_0x32c99b,'*Remove:*\x20%0',o(_0x32c99b,'ELEMENT_SPACE',_0x5a2fd6['remove']['length']))});continue;}if(''!=_0x5a2fd6['add']){_0x558c86['push']({'type':'insertion','content':o(_0x32c99b,'*Insert:*\x20%0','\x22'+_0x5a2fd6['add']+'\x22')});continue;}_0x558c86['push']({'type':'deletion','content':o(_0x32c99b,'*Remove:*\x20%0','\x22'+_0x5a2fd6['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x558c86['push']({'type':'insertion','content':o(_0x32c99b,'*Insert:*\x20%0',this['getItemLabel'](_0x5a2fd6['element'],_0x5a2fd6['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x558c86['push']({'type':'deletion','content':o(_0x32c99b,'*Remove:*\x20%0',this['getItemLabel'](_0x5a2fd6['element'],_0x5a2fd6['quantity']))});continue;case'addContainer':_0x558c86['push']({'type':'insertion','content':o(_0x32c99b,'*Split:*\x20%0',this['getItemLabel'](_0x5a2fd6['element'],_0x5a2fd6['quantity']))});continue;case'removeContainer':_0x558c86['push']({'type':'deletion','content':o(_0x32c99b,'*Merge:*\x20%0',this['getItemLabel'](_0x5a2fd6['element'],_0x5a2fd6['quantity']))});continue;case'addFormat':_0x2ea38b['push'](_0x5a2fd6['key']);continue;case'removeFormat':_0x5049f2['push'](_0x5a2fd6['key']);continue;default:_0x558c86['push'](_0x5a2fd6);}if(_0x2ea38b['length']){const _0xe7659c=_0x2ea38b['map'](_0x30ad9d=>this['_attributeLabels']['has'](_0x30ad9d)?this['_attributeLabels']['get'](_0x30ad9d):_0x30ad9d)['join'](',\x20');_0x558c86['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0xe7659c)});}if(_0x5049f2['length']){const _0x2709db=_0x5049f2['map'](_0x472b09=>this['_attributeLabels']['has'](_0x472b09)?this['_attributeLabels']['get'](_0x472b09):_0x472b09)['join'](',\x20');_0x558c86['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x2709db)});}return _0x558c86;}['_handleCustomCallbackDescription'](_0x1a2c74){for(const _0x584de6 of this['_customCallbacks']){const _0x1e7312=_0x584de6(_0x1a2c74);if(_0x1e7312&&'type'in _0x1e7312)return _0x1e7312;}}['_handleAttributeSuggestionDescription'](_0x367b09,_0x148a17){const _0x7c0e8a=_0x148a17['data'],_0x2ba956=void 0x0===_0x7c0e8a['newValue']?'removeFormat':'addFormat';_0x367b09['push']({'type':_0x2ba956,'key':_0x7c0e8a['key']});}['_handleRenameSuggestionDescription'](_0x14c27e,_0x1edbf7){_0x14c27e['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x1edbf7['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x51d033,_0x19c0c9,_0x2c4fa1){if(this['_addDescriptionItems'](_0x51d033,_0x19c0c9),_0x2c4fa1&&_0x2c4fa1['getFirstRange']()&&!_0x19c0c9['getFirstRange']()['end']['isEqual'](_0x2c4fa1['getFirstRange']()['start'])){const _0x543b9b=_0x51d033[_0x51d033['length']-0x1],_0x5dd4fd='insertion'==_0x19c0c9['type']?'add':'remove';_0x543b9b&&'text'==_0x543b9b['type']&&(_0x543b9b[_0x5dd4fd]+='\x0a');}}}class V extends _0x391ea2{['afterInit'](){const _0x3acb47=this['editor'],_0x3cbfd9=_0x3acb47['plugins']['get']('TrackChangesEditing');_0x3acb47['commands']['get']('showAIAssistant')&&_0x3cbfd9['enableCommand']('showAIAssistant');}}class F extends _0x391ea2{['afterInit'](){const _0x17e179=this['editor'],_0x15e5da=_0x17e179['locale'];if(!_0x17e179['plugins']['has']('AlignmentEditing'))return;const _0x5c23bc=_0x17e179['plugins']['get']('TrackChangesEditing');_0x5c23bc['enableDefaultAttributesIntegration']('alignment'),_0x5c23bc['registerBlockAttribute']('alignment'),_0x5c23bc['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x15e5da,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5f28ca=this['editor'],_0x5d8bbc=_0x5f28ca['locale'];_0x5f28ca['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xc4259a=>{if('formatBlock'!=_0xc4259a['type'])return;const {data:_0x426c71}=_0xc4259a;if(_0x426c71&&'alignment'==_0x426c71['commandName']){const _0x5e8091=_0x426c71['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x5d8bbc,'*Format:*\x20%0',function(_0x37147e){switch(_0x37147e){case'left':return o(_0x5d8bbc,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x5d8bbc,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x5d8bbc,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x5d8bbc,'FORMAT_JUSTIFY_TEXT');}}(_0x5e8091))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x391ea2{['afterInit'](){const _0x31f261=this['editor'],_0x36ea74=_0x31f261['plugins']['get']('TrackChangesEditing'),_0x246471=_0x31f261['locale'];for(const _0x425f26 of ti){if(!_0x31f261['plugins']['has'](_0x425f26))continue;const _0x326732=_0x425f26['slice'](0x0,-0x7)['toLowerCase'](),_0x3715dd='FORMAT_'+_0x326732['toUpperCase']();_0x36ea74['enableDefaultAttributesIntegration'](_0x326732),_0x36ea74['registerInlineAttribute'](_0x326732),_0x36ea74['descriptionFactory']['registerAttributeLabel'](_0x326732,o(_0x246471,_0x3715dd));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4047d5=this['editor'],_0x2fd856=_0x4047d5['locale'],_0x1e317f=_0x4047d5['plugins']['get']('TrackChangesEditing');function _0x3e7e21(_0x56d624,_0x920d38){_0x1e317f['descriptionFactory']['registerDescriptionCallback'](_0x18d76f=>{if('formatInline'!=_0x18d76f['type'])return;const {data:_0x7248ba}=_0x18d76f;return _0x7248ba&&_0x7248ba['commandName']===_0x56d624?_0x7248ba['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2fd856,'*Format:*\x20%0',_0x920d38)}:{'type':'format','content':o(_0x2fd856,'*Remove\x20format:*\x20%0',_0x920d38)}:void 0x0;});}_0x3e7e21('bold',o(_0x2fd856,'FORMAT_BOLD')),_0x3e7e21('italic',o(_0x2fd856,'FORMAT_ITALIC')),_0x3e7e21('underline',o(_0x2fd856,'FORMAT_UNDERLINE')),_0x3e7e21('code',o(_0x2fd856,'FORMAT_CODE')),_0x3e7e21('strikethrough',o(_0x2fd856,'FORMAT_STRIKETHROUGH')),_0x3e7e21('subscript',o(_0x2fd856,'FORMAT_SUBSCRIPT')),_0x3e7e21('superscript',o(_0x2fd856,'FORMAT_SUPERSCRIPT'));}}class L extends _0x391ea2{['afterInit'](){const _0x512984=this['editor'],_0x96ca03=_0x512984['locale'];if(!_0x512984['plugins']['has']('BlockQuoteEditing'))return;const _0x50a81f=_0x512984['plugins']['get']('TrackChangesEditing'),_0x5ce89=this['editor']['commands']['get']('blockQuote');_0x50a81f['enableCommand']('blockQuote',(_0x7d412a,_0x2e9032={})=>{const _0x1dd7d2=this['editor']['model']['document']['selection'],_0x2781fa=_0x2e9032&&void 0x0!==_0x2e9032['forceValue']?_0x2e9032['forceValue']:!_0x5ce89['value'];let _0x163df5=[];if(_0x2781fa){const _0x34a20b=Array['from'](_0x1dd7d2['getSelectedBlocks']())['filter'](_0x14ddca=>oo(_0x14ddca)||function(_0x50539d,_0x1dd742){const _0x3858de=_0x1dd742['checkChild'](_0x50539d['parent'],'blockQuote'),_0xd520fb=_0x1dd742['checkChild'](['$root','blockQuote'],_0x50539d);return _0x3858de&&_0xd520fb;}(_0x14ddca,this['editor']['model']['schema']));_0x163df5=to(_0x34a20b,_0x512984['model']);}else{const _0x32b705=Array['from'](_0x1dd7d2['getSelectedBlocks']())['filter'](_0x79b20b=>oo(_0x79b20b));_0x163df5=to(_0x32b705,_0x512984['model']);}_0x512984['model']['change'](()=>{for(const _0x3f3dd1 of _0x163df5)_0x50a81f['markBlockFormat'](_0x3f3dd1,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2781fa}]});});}),_0x50a81f['descriptionFactory']['registerDescriptionCallback'](_0x362ff6=>{const {data:_0x374574}=_0x362ff6;if(_0x374574&&'blockQuote'==_0x374574['commandName']){const _0x2a82cd=o(_0x96ca03,'ELEMENT_BLOCK_QUOTE');return _0x374574['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x96ca03,'*Set\x20format:*\x20%0',_0x2a82cd)}:{'type':'format','content':o(_0x96ca03,'*Remove\x20format:*\x20%0',_0x2a82cd)};}});}}function oo(_0x427954){return'blockQuote'==_0x427954['parent']['name'];}class J extends _0x391ea2{['afterInit'](){const _0x1743fa=this['editor'],_0x3eadcb=_0x1743fa['locale'],_0x56f478=_0x1743fa['plugins']['get']('TrackChangesEditing');_0x1743fa['plugins']['has']('BookmarkEditing')&&(_0x56f478['enableCommand']('insertBookmark'),_0x56f478['enableDefaultAttributesIntegration']('updateBookmark'),_0x56f478['registerBlockAttribute']('bookmarkId'),_0x56f478['descriptionFactory']['registerDescriptionCallback'](_0x5af732=>{if('insertion'!=_0x5af732['type']&&'deletion'!=_0x5af732['type']&&'attribute'!=_0x5af732['type'])return;const _0x5b3d61=_0x5af732['getContainedElement']();if(null==_0x5b3d61)return;if(!_0x5b3d61['is']('element','bookmark'))return;const _0xf6f910=_0x5b3d61['getAttribute']('bookmarkId');if('insertion'==_0x5af732['type'])return{'type':'insertion','content':o(_0x3eadcb,'*Insert:*\x20%0','\x22'+_0xf6f910+'\x22\x20'+o(_0x3eadcb,'ELEMENT_BOOKMARK'))};if('deletion'==_0x5af732['type'])return{'type':'deletion','content':o(_0x3eadcb,'*Remove:*\x20%0','\x22'+_0xf6f910+'\x22\x20'+o(_0x3eadcb,'ELEMENT_BOOKMARK'))};const {data:_0x47587d}=_0x5af732;if(!_0x47587d||'bookmarkId'!=_0x47587d['key'])return;return{'type':'format','content':o(_0x3eadcb,'*Set\x20bookmark:*\x20%0','\x22'+_0x47587d['newValue']+'\x22')};}));}}class K extends _0x391ea2{['afterInit'](){const _0x3a6d4c=this['editor'];_0x3a6d4c['plugins']['has']('CaseChange')&&(_0x3a6d4c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3a6d4c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3a6d4c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x391ea2{['afterInit'](){const _0x8f8042=this['editor'];_0x8f8042['commands']['get']('ckbox')&&_0x8f8042['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class W extends _0x391ea2{['afterInit'](){const _0x5f18c6=this['editor'];if(!_0x5f18c6['plugins']['has']('CodeBlock'))return;const _0x4d960f=_0x5f18c6['plugins']['get']('TrackChangesEditing'),_0x2094bc=_0x5f18c6['locale'],_0x3d4831=_0x5f18c6['config']['get']('codeBlock')['languages'],_0x7323b7=_0x5f18c6['commands']['get']('codeBlock');_0x4d960f['enableCommand']('indentCodeBlock'),_0x4d960f['enableCommand']('outdentCodeBlock'),_0x4d960f['enableCommand']('codeBlock',(_0x4052a8,_0x67ed83={})=>{const _0x312449=_0x5f18c6['model'],_0x2cd3b0=_0x5f18c6['model']['document']['selection'],_0x402dfd=_0x67ed83&&void 0x0!==_0x67ed83['forceValue']?_0x67ed83['forceValue']:!_0x7323b7['value'];let _0x247c65;_0x67ed83['language']||(_0x67ed83['language']=_0x3d4831[0x0]['language']),_0x247c65=_0x402dfd?Array['from'](_0x2cd3b0['getSelectedBlocks']())['filter'](_0x3e2661=>co(_0x3e2661)||function(_0xc2d974,_0x5ef623){if(_0xc2d974['is']('rootElement')||_0x5ef623['isLimit'](_0xc2d974))return!0x1;return _0x5ef623['checkChild'](_0xc2d974['parent'],'codeBlock');}(_0x3e2661,_0x312449['schema'])):Array['from'](_0x2cd3b0['getSelectedBlocks']())['filter'](_0x5653b7=>co(_0x5653b7));const _0x4e5027=to(_0x247c65,_0x312449);_0x312449['change'](()=>{for(const _0xf996b5 of _0x4e5027)_0x4d960f['markBlockFormat'](_0xf996b5,{'commandName':'codeBlock','commandParams':[{..._0x67ed83,'forceValue':_0x402dfd}],'formatGroupId':'blockName'});});}),(_0x4d960f['descriptionFactory']['registerElementLabel']('codeBlock',_0x3dd55b=>o(_0x2094bc,'ELEMENT_CODE_BLOCK',_0x3dd55b)),_0x4d960f['descriptionFactory']['registerDescriptionCallback'](_0xafa4f4=>{if('formatBlock'!=_0xafa4f4['type'])return;const _0x49af43=_0x2094bc['t'],{data:_0x41793c}=_0xafa4f4;if(!_0x41793c||'codeBlock'!=_0x41793c['commandName'])return;const _0x4af7b2=_0x41793c['commandParams'][0x0]['language'],_0x4b92be=_0x49af43(_0x3d4831['find'](_0x819e90=>_0x819e90['language']===_0x4af7b2)['label'])['toLowerCase']();return _0x41793c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2094bc,'*Set\x20format:*\x20%0',o(_0x2094bc,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x4b92be+')')}:{'type':'format','content':o(_0x2094bc,'*Remove\x20format:*\x20%0',o(_0x2094bc,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x4056dd){return'codeBlock'==_0x4056dd['name'];}class q extends _0x391ea2{['afterInit'](){const _0x4c5959=this['editor'];if(!_0x4c5959['plugins']['has']('CommentsEditing'))return;_0x4c5959['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x170250,_0x10c4b3,_0x22e358){const _0x223794=[];for(const _0x4db1cb of _0x10c4b3['getItems']())_0x4db1cb['hasAttribute'](_0x170250)&&_0x223794['push'](_0x22e358['createRangeOn'](_0x4db1cb));return _0x223794;}function Ge(_0x9d740b,_0x2bcc8a,{showActiveMarker:_0x7b86b1=!0x0}={}){const _0x2db56b=_0x9d740b['plugins']['get']('TrackChangesEditing');return(_0x568e98,_0x551121,_0x281abd)=>{if(!_0x281abd['consumable']['test'](_0x551121['markerRange'],_0x568e98['name']))return;const _0x40ed09=_0x551121['markerRange']['getWalker'](),_0x16b3b1=_0x551121['markerRange']['start'],_0x272485=_0x9d740b['model']['schema'];let _0x3ccdbd=null,_0x3f5044=null,_0x3e8202=!0x1,_0x339c56=!0x1;for(const _0x469c48 of _0x40ed09){const _0x111795=_0x469c48['item'];_0x3e8202=_0x3e8202||_0x272485['isContent'](_0x111795);const _0x3cd6b8=_0x281abd['mapper']['toViewElement'](_0x111795);if(_0x3cd6b8&&_0x3cd6b8['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x469c48['type']&&(_0x272485['isBlock'](_0x111795)&&!_0x272485['isLimit'](_0x111795)&&(_0x111795['nextSibling']||_0x16b3b1['isAtEnd']?_0x3ccdbd&&_0x3ccdbd['parent']==_0x111795||(_0x3ccdbd=_0x111795,_0x217c26(_0x469c48['previousPosition']),_0x339c56=!0x0):_0x3f5044=_0x3f5044||_0x469c48['previousPosition']));}function _0x217c26(_0x1dd7c4){const {id:_0x2321d9,authorId:_0x1f89a7}=_0x2db56b['_splitMarkerName'](_0x551121['markerName']),_0x16b70b=_0x281abd['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2bcc8a,'data-suggestion':_0x2321d9,'data-author-id':_0x1f89a7}),_0x1bfa32=_0x281abd['mapper']['toViewPosition'](_0x1dd7c4);_0x7b86b1&&_0x2db56b['activeMarkers']['includes'](_0x551121['markerName'])&&_0x281abd['writer']['addClass']('ck-suggestion-marker--active',_0x16b70b),_0x281abd['writer']['insert'](_0x1bfa32,_0x16b70b),_0x281abd['mapper']['bindElementToMarker'](_0x16b70b,_0x551121['markerName']);}_0x3e8202||_0x339c56||!_0x3f5044||_0x217c26(_0x3f5044);};}class z extends _0x391ea2{static get['requires'](){return[_0x4bb6d0];}['init'](){const _0x57587d=this['editor'],_0x1b6248=_0x57587d['plugins']['get']('TrackChangesEditing');_0x1b6248['enableCommand']('delete');const _0x16ef52=_0x57587d['commands']['get']('deleteForward');_0x1b6248['enableCommand']('deleteForward',(_0x41446b,_0x1d571f={})=>{const _0x489f24=_0x57587d['model']['createSelection'](_0x57587d['model']['document']['selection']);_0x489f24['isCollapsed']&&_0x57587d['model']['modifySelection'](_0x489f24,{'direction':'forward','unit':_0x1d571f['unit']});const _0x4b6b3d=_0x489f24['getFirstRange'](),_0x1e7478=_0x4c47d7['fromRange'](_0x4b6b3d);let _0x16887f;_0x41446b(_0x1d571f),_0x16887f='$graveyard'==_0x1e7478['root']['rootName']?_0x57587d['model']['createRange'](_0x4b6b3d['start']):_0x57587d['model']['createRange'](_0x1e7478['start'],_0x1e7478['end']),_0x1e7478['detach'](),_0x57587d['model']['enqueueChange'](_0x16ef52['buffer']['batch'],_0x546b15=>{_0x16ef52['buffer']['lock'](),_0x546b15['setSelection'](_0x546b15['createRange'](_0x16887f['end'])),_0x16ef52['buffer']['unlock']();});}),_0x57587d['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ge(_0x57587d,'merge'),{'priority':'high'}),_0x57587d['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x4e506c,_0x14a30e,_0x5d6897)=>{_0x5d6897['options']['showSuggestionHighlights']&&Ge(_0x57587d,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x4e506c,_0x14a30e,_0x5d6897);},{'priority':'high'}),_0x57587d['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x2e86ba,_0x5d33c7,_0x4938a9)=>{const _0xfe5b4b=_0x4938a9['mapper']['markerNameToElements'](_0x5d33c7['markerName']);if(_0xfe5b4b){for(const _0x4caf9e of _0xfe5b4b)_0x4caf9e['is']('uiElement')&&(_0x4938a9['mapper']['unbindElementFromMarkerName'](_0x4caf9e,_0x5d33c7['markerName']),_0x4938a9['writer']['remove'](_0x4caf9e));}},{'priority':'high'});}}class Q extends _0x391ea2{['afterInit'](){const _0x22e43f=this['editor'];if(!_0x22e43f['plugins']['has']('ListEditing'))return;const _0x16b321=_0x22e43f['locale'],_0x38bf63=_0x22e43f['plugins']['get']('TrackChangesEditing'),_0x359e3e=_0x22e43f['plugins']['has']('TodoListEditing'),_0x3356df=!!_0x22e43f['config']['get']('list.multiBlock');function _0x13c09e(_0x34dc5a){return{'type':'format','content':''+o(_0x16b321,'*Set\x20format:*\x20%0',_0x34dc5a)};}function _0x2f584c(_0x4a67b1){return{'type':'format','content':''+o(_0x16b321,'*Remove\x20format:*\x20%0',_0x4a67b1)};}_0x38bf63['enableDefaultAttributesIntegration']('numberedList'),_0x38bf63['enableDefaultAttributesIntegration']('bulletedList'),_0x38bf63['enableDefaultAttributesIntegration']('customNumberedList'),_0x38bf63['enableDefaultAttributesIntegration']('customBulletedList'),_0x38bf63['enableDefaultAttributesIntegration']('indentList'),_0x38bf63['enableDefaultAttributesIntegration']('outdentList'),_0x38bf63['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x38bf63['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x38bf63['registerBlockAttribute']('listItemId'),_0x38bf63['registerBlockAttribute']('listType'),_0x38bf63['registerBlockAttribute']('listIndent'),_0x3356df&&(_0x38bf63['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x38bf63['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x359e3e&&(_0x38bf63['enableDefaultAttributesIntegration']('todoList'),_0x38bf63['enableDefaultAttributesIntegration']('checkTodoList'),_0x38bf63['registerBlockAttribute']('todoListChecked'),_0x38bf63['descriptionFactory']['registerDescriptionCallback'](_0x2d6c84=>{const {data:_0x511496}=_0x2d6c84;if(_0x511496&&'todoListChecked'==_0x511496['key'])return{'type':'format','content':_0x511496['newValue']?o(_0x16b321,'*Check\x20item*'):o(_0x16b321,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x1123d0=>{if(_0x1123d0['batch']['isUndo'])return!0x1;let _0x2243ac=!0x1;const _0x33dd72=_0x38bf63['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4d2cc3=>'todoListChecked'===_0x38bf63['_getAttributeKey'](_0x4d2cc3));for(const _0x3358d4 of _0x33dd72){'todo'!=_0x3358d4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x38bf63['_findSuggestions'](_0x3358d4['getFirstRange'](),'attribute')['find'](_0x353e18=>'listType'===_0x38bf63['_getAttributeKey'](_0x353e18['suggestion']))||(_0x1123d0['removeMarker'](_0x3358d4['getFirstMarker']()),_0x2243ac=!0x0));}return _0x2243ac;})),_0x38bf63['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x16b321,'FORMAT_INDENT'));const _0x5bd1f2={'type':'format','content':''};_0x38bf63['descriptionFactory']['registerDescriptionCallback'](_0x50a697=>{const {data:_0x37b51b}=_0x50a697;if(!_0x37b51b||'listType'!=_0x37b51b['key'])return;let _0x4731ef=_0x50a697['head'];for(;_0x4731ef;){if(_0x4731ef['data']&&(('listStyle'==_0x4731ef['data']['key']||'listMarkerStyle'==_0x4731ef['data']['key'])&&(_0x4731ef['data']['newValue']&&'default'!=_0x4731ef['data']['newValue']||'default'!=_0x4731ef['data']['oldValue']&&!_0x37b51b['newValue'])||!_0x3356df&&_0x4731ef['data']['key']==m))return _0x5bd1f2;_0x4731ef=_0x4731ef['next'];}if(null==_0x37b51b['newValue'])switch(_0x37b51b['oldValue']){case'bulleted':return _0x2f584c(o(_0x16b321,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2f584c(o(_0x16b321,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2f584c(o(_0x16b321,'ELEMENT_TODO_LIST'));}switch(_0x37b51b['newValue']){case'bulleted':return _0x13c09e(o(_0x16b321,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x13c09e(o(_0x16b321,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x13c09e(o(_0x16b321,'ELEMENT_TODO_LIST'));}}),_0x38bf63['descriptionFactory']['registerDescriptionCallback'](_0x12b5f4=>{const {data:_0x148c6d}=_0x12b5f4;if(_0x148c6d&&'listIndent'==_0x148c6d['key'])return null==_0x148c6d['newValue']||null==_0x148c6d['oldValue']&&0x0==_0x148c6d['newValue']?_0x5bd1f2:void 0x0;}),_0x38bf63['descriptionFactory']['registerDescriptionCallback'](_0x555d1a=>{if('attribute'!=_0x555d1a['type'])return;const {data:_0x18d1e8}=_0x555d1a;if(!_0x18d1e8||'listItemId'!=_0x18d1e8['key'])return;const _0x3910af=Be(_0x555d1a);return'newValue'==_0x3910af?{'type':'format','content':o(_0x16b321,'*Merge:*\x20list\x20item')}:'oldValue'==_0x3910af?{'type':'format','content':o(_0x16b321,'*Split:*\x20list\x20item')}:_0x5bd1f2;}),_0x22e43f['model']['document']['registerPostFixer'](_0x213523=>this['listItemIdFixer'](_0x213523)),_0x22e43f['model']['document']['registerPostFixer'](_0x4caefc=>this['noTrackChangesFixer'](_0x4caefc)),_0x22e43f['model']['document']['on']('change:data',(_0x1cdb01,_0x51f105)=>{if(_0x51f105['isUndo']||!_0x51f105['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x6d2e97){if(_0x6d2e97['batch']['isUndo']||!_0x6d2e97['batch']['isLocal'])return!0x1;let _0x5b0195=!0x1;const _0x25ae4e=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x445f9c=>_0x445f9c['data']&&'listItemId'==_0x445f9c['data']['key'])['filter'](_0x3ec52d=>_0x3ec52d['data']['newValue']&&_0x3ec52d['data']['oldValue']);for(const _0x489572 of _0x25ae4e)Be(_0x489572)||(_0x6d2e97['removeMarker'](_0x489572['getFirstMarker']()),_0x5b0195=!0x0);return _0x5b0195;}['noTrackChangesFixer'](_0x4d1a34){if(_0x4d1a34['batch']['isUndo']||!_0x4d1a34['batch']['isLocal'])return!0x1;const _0x44c52d=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x44c52d['trackChangesCommand']['value'])return!0x1;let _0x1717d7=!0x1;const _0x1c3f83=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0xf51a8b=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x108bc7=>'attribute'==_0x108bc7['type'])['filter'](_0x2d2537=>_0x1c3f83['includes'](_0x2d2537['attributeKey']));if(0x0==_0xf51a8b['length'])return _0x1717d7;for(const _0x58c917 of _0xf51a8b){const _0x21716e=_0x44c52d['_findSuggestions'](_0x58c917['range'],'attribute')['filter'](_0x189dc8=>!_0x189dc8['meta']['isNextTo'])['map'](_0x272474=>_0x272474['suggestion'])['filter'](_0x3c3023=>{const _0x42e2e1=_0x44c52d['_getAttributeKey'](_0x3c3023);return _0x1c3f83['includes'](_0x42e2e1);});if(_0x21716e['length']){for(const _0x355e51 of _0x21716e)_0x4d1a34['removeMarker'](_0x355e51['getFirstMarker']());_0x1717d7=!0x0;}}return _0x1717d7;}['assureChains'](){const _0x77ed32=this['editor']['plugins']['get']('TrackChangesEditing'),_0x50e112=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x25ef44;const _0x3ef159=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2cce81=>{if(_0x2cce81['data']['oldRange']||!_0x2cce81['data']['newRange'])return null;if(!_0x2cce81['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x246302}=_0x77ed32['_splitMarkerName'](_0x2cce81['name']);if(!_0x77ed32['hasSuggestion'](_0x246302))return null;const _0x536d83=_0x77ed32['getSuggestion'](_0x246302);return _0x50e112['includes'](_0x536d83['data']['key']);})['map'](_0x40803c=>{const {id:_0x567ea2}=_0x77ed32['_splitMarkerName'](_0x40803c['name']),_0x5861b0=_0x77ed32['getSuggestion'](_0x567ea2);return _0x25ef44=_0x5861b0['attributes']['groupId'],_0x5861b0['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x3ef159['size'])return;const _0x2d2685=_0x77ed32['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4988bc=>'attribute'==_0x4988bc['type']&&_0x4988bc['data']&&_0x50e112['includes'](_0x4988bc['data']['key'])&&_0x4988bc['attributes']['groupId']!=_0x25ef44)['map'](_0x4531cc=>({'listItem':_0x4531cc['getFirstRange']()['start']['nodeAfter'],'groupId':_0x4531cc['attributes']['groupId']})),_0x54c913=new Set();for(const {groupId:_0x196ff9,listItem:_0x4524e1}of _0x2d2685)_0x3ef159['has'](_0x4524e1)&&_0x54c913['add'](_0x196ff9);for(const _0x4c8b10 of _0x77ed32['getSuggestions']())_0x54c913['has'](_0x4c8b10['attributes']['groupId'])&&_0x4c8b10['setAttribute']('groupId',_0x25ef44);}['_supportLegacySuggestions'](){const _0x5db998=this['editor'],_0xfa4dc4=_0x5db998['locale'],_0x50bd04=_0x5db998['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x50bd04['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x53f8fd,_0x300f6b){const _0x563f28=[];for(let _0x3936fd of _0x53f8fd)_0x3936fd['start']['nodeAfter']===_0x3936fd['end']['parent']&&(_0x3936fd=_0x5db998['model']['createRange'](_0x5db998['model']['createPositionAt'](_0x3936fd['start']['nodeAfter'],0x0))),_0x563f28['push'](_0x3936fd);_0x5db998['model']['change'](_0x47631e=>{const _0x1d4422=_0x5db998['model']['document']['selection'],_0x4f1949=Array['from'](_0x1d4422['getRanges']())['map'](_0x3341dd=>_0x4c47d7['fromRange'](_0x3341dd));_0x47631e['setSelection'](_0x563f28),_0x5db998['commands']['get'](_0x300f6b['commandName'])['refresh'](),_0x300f6b['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x5db998['execute'](_0x300f6b['commandName'],..._0x300f6b['commandParams']),_0x47631e['setSelection'](_0x4f1949);for(const _0x26c305 of _0x4f1949)_0x26c305['detach']();});}),_0x50bd04['descriptionFactory']['registerElementLabel'](function(_0x2e1dba){const _0x86bf20=!_0x5db998['model']['schema']['isObject'](_0x2e1dba),_0x203d5d=_0x2e1dba['previousSibling'],_0x45c10b=_0x2e1dba['nextSibling'],_0x45ff87=_0x2e1dba['getAttribute']('listItemId'),_0x13aaf7=!_0x203d5d||_0x203d5d['getAttribute']('listItemId')!==_0x45ff87,_0x5a88bf=!_0x45c10b||_0x45c10b['getAttribute']('listItemId')!==_0x45ff87;return _0x86bf20&&Boolean(_0x45ff87)&&_0x13aaf7&&_0x5a88bf;},_0x424abd=>o(_0xfa4dc4,'ELEMENT_LIST_ITEM',_0x424abd));}['_registerLegacyDescription'](){const _0xfaaf72=this['editor'],_0xf52096=_0xfaaf72['locale'];function _0x258999(_0x2c3266){const _0xa8e0a8=_0xfaaf72['commands']['get']('bulletedList')['value'],_0x323600=_0xfaaf72['commands']['get']('numberedList')['value'];return'numberedList'===_0x2c3266?_0xa8e0a8:_0x323600;}_0xfaaf72['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x3cdba9){if('formatBlock'!=_0x3cdba9['type'])return;const {data:_0x16be98}=_0x3cdba9;if(!_0x16be98)return;let _0x20bb4d,_0x11b657,_0x2161b4,_0x49551a;switch(_0x16be98['commandName']){case'bulletedList':_0x2161b4=_0x16be98['commandParams'][0x0]['forceValue'],_0x49551a=_0x258999(_0x16be98['commandName']),_0x20bb4d=_0x2161b4?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x49551a&&_0xfaaf72['config']['get']('list.multiBlock')||(_0x20bb4d='*Change\x20to:*\x20%0'),_0x11b657={'type':'format','content':o(_0xf52096,_0x20bb4d,o(_0xf52096,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x2161b4=_0x16be98['commandParams'][0x0]['forceValue'],_0x49551a=_0x258999(_0x16be98['commandName']),_0x20bb4d=_0x2161b4?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x49551a&&_0xfaaf72['config']['get']('list.multiBlock')||(_0x20bb4d='*Change\x20to:*\x20%0'),_0x11b657={'type':'format','content':o(_0xf52096,_0x20bb4d,o(_0xf52096,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x20bb4d='*Indent:*\x20%0',_0x11b657={'type':'format','content':o(_0xf52096,_0x20bb4d,o(_0xf52096,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x20bb4d=function(_0x2225b2){const _0x268567=_0x2225b2['getFirstRange']();let _0x3a70fa=_0x268567['start']['nodeAfter'];for(;_0x3a70fa&&_0x268567['containsItem'](_0x3a70fa);){if(_0x3a70fa['getAttribute']('listIndent')>0x0)return!0x1;_0x3a70fa=_0x3a70fa['nextSibling'];}return!0x0;}(_0x3cdba9)?o(_0xf52096,'*Format:*\x20remove\x20from\x20%0',o(_0xf52096,function(_0xa9d809){return'ELEMENT_'+_0xa9d809['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x3cdba9))):o(_0xf52096,'*Outdent:*\x20%0',o(_0xf52096,'ELEMENT_LIST_ITEM')),_0x11b657={'type':'format','content':_0x20bb4d};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x16be98['multipleBlocks']&&(_0x20bb4d='*Merge:*\x20%0',_0x11b657={'type':'deletion','content':o(_0xf52096,_0x20bb4d,o(_0xf52096,'ELEMENT_LIST_ITEM'))});}return _0x11b657;});}}function Be(_0x2895a4){let _0x32183e=_0x2895a4['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x32183e;){const _0xde03fe=_0x32183e['getAttribute']('listItemId');if(!_0xde03fe)return!0x1;if(_0xde03fe==_0x2895a4['data']['newValue'])return'newValue';if(_0xde03fe==_0x2895a4['data']['oldValue'])return'oldValue';_0x32183e=_0x32183e['previousSibling'];}return!0x1;}class X extends _0x391ea2{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x5f257e=this['editor']['config']['get']('list.properties'),_0x4a801e=this['editor']['plugins']['get']('TrackChangesEditing');_0x5f257e['styles']&&(_0x4a801e['enableDefaultAttributesIntegration']('listStyle'),_0x4a801e['registerBlockAttribute']('listStyle')),_0x5f257e['reversed']&&(_0x4a801e['enableDefaultAttributesIntegration']('listReversed'),_0x4a801e['registerBlockAttribute']('listReversed')),_0x5f257e['startIndex']&&(_0x4a801e['enableDefaultAttributesIntegration']('listStart'),_0x4a801e['registerBlockAttribute']('listStart'));const _0x89287c={'type':'format','content':''};_0x4a801e['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x305f66=this['editor']['locale'];_0x4a801e['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x305f66,'FORMAT_LIST_REVERSED')),_0x4a801e['descriptionFactory']['registerDescriptionCallback'](_0x23fd58=>{const {data:_0xa539a5}=_0x23fd58;if(_0xa539a5&&'listReversed'==_0xa539a5['key'])return null==_0xa539a5['newValue']||0x0==_0xa539a5['newValue']&&null==_0xa539a5['oldValue']?_0x89287c:void 0x0;}),_0x4a801e['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x305f66,'FORMAT_LIST_START')),_0x4a801e['descriptionFactory']['registerDescriptionCallback'](_0x2915ff=>{const {data:_0x3ab7aa}=_0x2915ff;if(_0x3ab7aa&&'listStart'==_0x3ab7aa['key'])return null==_0x3ab7aa['newValue']||0x1==_0x3ab7aa['newValue']&&null==_0x3ab7aa['oldValue']?_0x89287c:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x3143cc=>{if(_0x3143cc['batch']['isUndo'])return!0x1;let _0x473cef=!0x1;const _0x2760cc=_0x4a801e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4af17e=>{const _0x212178=_0x4a801e['_getAttributeKey'](_0x4af17e);return'listStart'==_0x212178||'listReversed'==_0x212178;});for(const _0x3d8c34 of _0x2760cc){const _0xdfb603=_0x3d8c34['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0xdfb603||'customNumbered'==_0xdfb603)continue;_0x4a801e['_findSuggestions'](_0x3d8c34['getFirstRange'](),'attribute')['find'](_0x21aaba=>'listType'==_0x4a801e['_getAttributeKey'](_0x21aaba['suggestion']))||(_0x3143cc['removeMarker'](_0x3d8c34['getFirstMarker']()),_0x473cef=!0x0);}return _0x473cef;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x3215be){const _0x5aeaa5=this['editor']['locale'],{data:_0xcbe279}=_0x3215be,_0xd7cd64={'type':'format','content':''};if(!_0xcbe279||'listStyle'!=_0xcbe279['key'])return;if(!_0xcbe279['oldValue'])return'default'==_0xcbe279['newValue']?_0xd7cd64:{'type':'format','content':''+o(_0x5aeaa5,'*Set\x20format:*\x20%0',o(_0x5aeaa5,this['_getTranslationKeyForListStyle'](_0xcbe279['newValue'])))};if(!_0xcbe279['newValue']){if('default'==_0xcbe279['oldValue'])return _0xd7cd64;let _0x5e8ca1=_0x3215be['head'];for(;_0x5e8ca1;){if(_0x5e8ca1['data']&&'listType'==_0x5e8ca1['data']['key']&&_0x5e8ca1['data']['newValue'])return _0xd7cd64;_0x5e8ca1=_0x5e8ca1['next'];}return{'type':'format','content':''+o(_0x5aeaa5,'*Remove\x20format:*\x20%0',o(_0x5aeaa5,this['_getTranslationKeyForListStyle'](_0xcbe279['oldValue'])))};}if('default'!=_0xcbe279['newValue'])return{'type':'format','content':''+o(_0x5aeaa5,'*Set\x20format:*\x20%0',o(_0x5aeaa5,this['_getTranslationKeyForListStyle'](_0xcbe279['newValue'])))};let _0x54b530=_0x3215be['head'];for(;_0x54b530;){if(_0x54b530['data']&&'listType'==_0x54b530['data']['key']&&_0x54b530['data']['newValue']&&_0x54b530['data']['oldValue'])return _0xd7cd64;_0x54b530=_0x54b530['next'];}return{'type':'format','content':o(_0x5aeaa5,'*Set\x20format:*\x20%0',o(_0x5aeaa5,'ELEMENT_'+_0x3215be['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1e9eff=this['editor'],_0x3bcd7b=_0x1e9eff['locale'];_0x1e9eff['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xb84044=>{if('formatBlock'!=_0xb84044['type'])return;const {data:_0x4f24c6}=_0xb84044;if(!_0x4f24c6)return;let _0x35aec3,_0x5e60fa;switch(_0x4f24c6['commandName']){case'listStyle':_0x35aec3='*Change\x20to:*\x20%0',_0x5e60fa={'type':'format','content':o(_0x3bcd7b,_0x35aec3,o(_0x3bcd7b,this['_getTranslationKeyForListStyle'](_0x4f24c6['commandParams'][0x0]['type'])))};break;case'listReversed':_0x35aec3=_0x4f24c6['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5e60fa={'type':'format','content':o(_0x3bcd7b,_0x35aec3)};break;case'listStart':_0x35aec3='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5e60fa={'type':'format','content':o(_0x3bcd7b,_0x35aec3,_0x4f24c6['commandParams'][0x0]['startIndex'])};}return _0x5e60fa;});}['_getTranslationKeyForListStyle'](_0x2c1172){return'ELEMENT_'+function(_0x23bbac){if(Re['includes'](_0x23bbac))return'bulleted';if(Fe['includes'](_0x23bbac))return'numbered';return null;}(_0x2c1172)['toUpperCase']()+'_LIST_'+_0x2c1172['toUpperCase']()['replace'](/-/g,'_');}}const Re=['disc','circle','square'],Fe=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Y extends _0x391ea2{['afterInit'](){const _0x15625f=this['editor'];_0x15625f['commands']['get']('emoji')&&_0x15625f['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Z extends _0x391ea2{static get['requires'](){return[_0x28e4c7];}['init'](){const _0x47393f=this['editor'],_0x575ed3=_0x47393f['plugins']['get']('TrackChangesEditing'),_0x3f69d8=_0x47393f['commands']['get']('enter');_0x575ed3['enableCommand']('enter',()=>{_0x47393f['model']['change'](_0x478ca3=>{const _0x2376e0=_0x47393f['model']['document']['selection'],_0x31d7d1=_0x2376e0['getFirstPosition'](),_0x3df913=_0x4c47d7['fromRange'](_0x2376e0['getFirstRange']());if(_0x3f69d8['enterBlock'](_0x478ca3)){const _0x2c388=_0x47393f['model']['createPositionAt'](_0x31d7d1['parent']['nextSibling'],0x0),_0x391117=_0x478ca3['createRange'](_0x31d7d1,_0x2c388);_0x575ed3['markInsertion'](_0x391117);}else _0x478ca3['setSelection'](_0x478ca3['createRange'](_0x3df913['end']));_0x3df913['detach'](),_0x3f69d8['fire']('afterExecute',{'writer':_0x478ca3});});}),_0x47393f['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ge(_0x47393f,'split'),{'priority':'high'}),_0x47393f['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x27c859,_0xd5175e,_0x5c2ef2)=>{const _0x38e191=_0x5c2ef2['mapper']['markerNameToElements'](_0xd5175e['markerName']);if(_0x38e191){for(const _0x31f51e of _0x38e191)_0x31f51e['hasClass']('ck-suggestion-marker-split')&&(_0x5c2ef2['mapper']['unbindElementFromMarkerName'](_0x31f51e,_0xd5175e['markerName']),_0x5c2ef2['writer']['remove'](_0x31f51e));}},{'priority':'high'}),_0x47393f['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x206584,_0x4ea229,_0x46a27e)=>{_0x46a27e['options']['showSuggestionHighlights']&&Ge(_0x47393f,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x206584,_0x4ea229,_0x46a27e);},{'priority':'high'});}}class tt extends _0x391ea2{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x95f7de=this['editor']['plugins']['get']('TrackChangesEditing');_0x95f7de['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x95f7de['enableCommand']('findNext'),_0x95f7de['enableCommand']('findPrevious'),_0x95f7de['enableCommand']('replace'),_0x95f7de['enableCommand']('replaceAll');}['handleFindCommand'](_0x241c1d,_0x215512,_0x5ec723={}){const _0x33e064=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x241c1d(_0x3d049c=>{let _0x510e56=('string'==typeof _0x215512?_0x33e064['findByTextCallback'](_0x215512,_0x5ec723):_0x215512)(_0x3d049c);Array['isArray'](_0x510e56)&&(_0x510e56={'results':_0x510e56,'searchText':'string'==typeof _0x215512?_0x215512:''});const _0x41b165=_0x510e56['results']['filter'](_0x5b4c1e=>!0x1===this['_isInDeletionRange'](_0x5b4c1e,_0x3d049c['item']));return{..._0x510e56,'results':_0x41b165};},_0x5ec723);}['_isInDeletionRange'](_0xfc5361,_0x1482a5){const _0x4cd6ac=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1482a5,_0xfc5361['start']),this['editor']['model']['createPositionAt'](_0x1482a5,_0xfc5361['end']));for(const _0x784884 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x4cd6ac['getIntersection'](_0x784884['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class et extends _0x391ea2{['afterInit'](){const _0x1e2ac7=this['editor']['locale'],_0x4ad3c6=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x2cc642,commandName:_0x301378}of eo)this['editor']['plugins']['has'](_0x2cc642)&&(_0x4ad3c6['enableDefaultAttributesIntegration'](_0x301378),_0x4ad3c6['registerInlineAttribute'](_0x301378));_0x4ad3c6['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x1e2ac7,'FORMAT_FONT_SIZE')),_0x4ad3c6['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x1e2ac7,'FORMAT_FONT_FAMILY')),_0x4ad3c6['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x1e2ac7,'FORMAT_FONT_COLOR')),_0x4ad3c6['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x1e2ac7,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5d3325=this['editor'],_0x5ae156=_0x5d3325['locale'];_0x5d3325['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xaa8025=>{const _0x27216b=_0x5ae156['t'];if('formatInline'!=_0xaa8025['type'])return;const {data:_0x3b8e8d}=_0xaa8025;if(null!=_0x3b8e8d){if('fontSize'==_0x3b8e8d['commandName']){const _0x27da0f=_0x3b8e8d['commandParams'][0x0]['value'];if(_0x27da0f){const _0x38f96d=_0x27216b(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0xedd216=>_0xedd216['model']==_0x27da0f)['title'])['toLowerCase']();return{'type':'format','content':o(_0x5ae156,'*Set\x20font\x20size:*\x20%0',_0x38f96d)};}return{'type':'format','content':o(_0x5ae156,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x3b8e8d['commandName']){const _0x54de0c=_0x3b8e8d['commandParams'][0x0]['value'];return _0x54de0c?{'type':'format','content':o(_0x5ae156,'*Set\x20font\x20family:*\x20%0',_0x54de0c)}:{'type':'format','content':o(_0x5ae156,'*Reset\x20font\x20family*')};}if('fontColor'==_0x3b8e8d['commandName']){const _0x19874c=_0x3b8e8d['commandParams'][0x0]['value'];if(_0x19874c){const _0x366733=_0xe51466(this['editor']['config']['get']('fontColor.colors'))['find'](_0x19c37a=>_0x19c37a['model']==_0x19874c);let _0x1badb0=_0x19874c,_0x3f1098='';return _0x366733&&(_0x1badb0=_0x366733['label'],_0x3f1098=_0x27216b(_0x1badb0)['toLowerCase']()),{'type':'format','content':o(_0x5ae156,'*Set\x20font\x20color:*\x20%0',_0x3f1098)['trim'](),'color':{'value':_0x19874c,'title':_0x3f1098||_0x1badb0}};}return{'type':'format','content':o(_0x5ae156,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x3b8e8d['commandName']){const _0x4cbfb7=_0x3b8e8d['commandParams'][0x0]['value'];if(_0x4cbfb7){const _0x3cf18a=_0xe51466(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x1440f1=>_0x1440f1['model']==_0x4cbfb7);let _0xb54eab=_0x4cbfb7,_0x159cc6='';return _0x3cf18a&&(_0xb54eab=_0x3cf18a['label'],_0x159cc6=_0x27216b(_0xb54eab)['toLowerCase']()),{'type':'format','content':o(_0x5ae156,'*Set\x20font\x20background\x20color:*\x20%0',_0x159cc6)['trim'](),'color':{'value':_0x4cbfb7,'title':_0x159cc6||_0xb54eab}};}return{'type':'format','content':o(_0x5ae156,'*Reset\x20font\x20background\x20color*')};}}});}}class it extends _0x391ea2{['afterInit'](){const _0x19733e=this['editor'],_0x44e4cf=_0x19733e['plugins']['get']('TrackChangesEditing'),_0x5c7c26=_0x19733e['commands']['get']('copyFormat'),_0x23668b=_0x19733e['commands']['get']('pasteFormat');_0x5c7c26&&_0x23668b&&(_0x44e4cf['enableDefaultAttributesIntegration']('pasteFormat'),_0x44e4cf['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x207d36=this['editor'],_0x1ddf17=_0x207d36['locale'];_0x207d36['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1fb2eb=>{if('formatBlock'!=_0x1fb2eb['type']&&'formatInline'!=_0x1fb2eb['type'])return;const {data:_0x241af3}=_0x1fb2eb;if(_0x241af3&&'pasteFormat'===_0x241af3['commandName']){const _0x2a9faf=[],_0x5cce27=_0x241af3['commandParams'][0x0];for(const [_0x26ea3a,_0x20d4ef]of Object['entries'](_0x5cce27))_0x2a9faf['push'](ro(_0x207d36,_0x26ea3a,_0x20d4ef));return _0x2a9faf['length']?{'type':'format','content':o(_0x1ddf17,'*Set\x20format\x20to:*\x20%0',_0x2a9faf['join'](',\x20'))}:{'type':'format','content':o(_0x1ddf17,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x116080,_0x1d5324,_0x15d895){const _0x59a6dd=_0x116080['locale']['t'],_0x16d7e7=_0x1d5324['split'](/(?=[A-Z])/)['join']('\x20'),_0x5e6cfa=_0x59a6dd(_0x16d7e7['charAt'](0x0)['toUpperCase']()+_0x16d7e7['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x15d895)return _0x5e6cfa;if('fontColor'===_0x1d5324||'fontBackgroundColor'===_0x1d5324){const _0x7cd69b=_0xe51466(_0x116080['config']['get']('fontColor.colors'))['find'](_0xa81d5f=>_0xa81d5f['model']==_0x15d895);return _0x5e6cfa+'\x20('+(_0x7cd69b?_0x59a6dd(_0x7cd69b['label'])['toLowerCase']():_0x15d895)+')';}if('fontSize'===_0x1d5324&&isNaN(parseFloat(_0x15d895))){const _0x5cb917=_0x116080['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x116080['config']['get']('fontSize.options'))['find'](_0xe29721=>_0xe29721['model']==_0x15d895);return _0x5e6cfa+'\x20('+(_0x5cb917?_0x59a6dd(_0x5cb917['title'])['toLowerCase']():_0x15d895)+')';}return _0x5e6cfa+'\x20('+_0x15d895+')';}class nt extends _0x391ea2{['_headingOptions'];['afterInit'](){const _0x680a04=this['editor'];if(!_0x680a04['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x680a04['config']['get']('heading.options');const _0x47344b=_0x680a04['locale'],_0x55b632=_0x680a04['plugins']['get']('TrackChangesEditing');_0x55b632['enableDefaultAttributesIntegration']('heading');for(const _0x58d072 of this['_headingOptions'])'paragraph'!=_0x58d072['model']&&_0x55b632['descriptionFactory']['registerElementLabel'](_0x58d072['model'],_0x21ee12=>{const _0x2080a3=this['_getHeadingLevel'](_0x58d072['model']);return null!==_0x2080a3?_0x9d35ab(_0x21ee12,_0x2080a3):_0x134f56(_0x21ee12,_0x58d072['title']);});function _0x9d35ab(_0x597723,_0x425e12){return o(_0x47344b,'ELEMENT_HEADING',[_0x597723,_0x425e12]);}function _0x134f56(_0x5d0712,_0x4da698){return o(_0x47344b,'ELEMENT_HEADING_CUSTOM',[_0x5d0712,_0x4da698]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xbd4fcb=this['editor'],_0x32157=_0xbd4fcb['locale'];function _0xe8c58(_0x2954e8,_0x486e25){return o(_0x32157,'ELEMENT_HEADING_CUSTOM',[_0x2954e8,_0x486e25]);}_0xbd4fcb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x55a1cc=>{if('formatBlock'!=_0x55a1cc['type'])return;const {data:_0x1ff205}=_0x55a1cc;if(_0x1ff205&&'heading'==_0x1ff205['commandName']){const _0x18891b=_0x1ff205['commandParams'][0x0]['value'],_0x3d4036=this['_getHeadingLevel'](_0x18891b);if(null!==_0x3d4036)return{'type':'format','content':o(_0x32157,'*Change\x20to:*\x20%0',(_0x16a147=0x1,_0x5bef95=_0x3d4036,o(_0x32157,'ELEMENT_HEADING',[_0x16a147,_0x5bef95])))};const _0x1fd2c9=this['_headingOptions']['find'](_0x2828cc=>_0x2828cc['model']===_0x18891b)['title'];return{'type':'format','content':o(_0x32157,'*Change\x20to:*\x20%0',_0xe8c58(0x1,_0x1fd2c9))};}var _0x16a147,_0x5bef95;});}['_getHeadingLevel'](_0x46660d){const _0x4a3db1=_0x46660d['match'](/^heading(\d+)/);if(_0x4a3db1)return _0x4a3db1[0x1];const _0x14b933=this['_headingOptions']?.['find'](_0x34fc26=>_0x34fc26['model']==_0x46660d);if(_0x14b933&&_0x14b933['view']){const _0x5de756=_0x14b933['view'],_0x1d986a=(_0x5de756['name']??_0x5de756)['match'](/^h(\d+)/);if(_0x1d986a)return _0x1d986a[0x1];}return null;}}class st extends _0x391ea2{['afterInit'](){const _0x730d9e=this['editor'];if(!_0x730d9e['plugins']['has']('HighlightEditing'))return;const _0x2b32ff=_0x730d9e['plugins']['get']('TrackChangesEditing'),_0x4027d3=_0x730d9e['locale'];_0x2b32ff['enableDefaultAttributesIntegration']('highlight'),_0x2b32ff['registerInlineAttribute']('highlight'),_0x2b32ff['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x4027d3,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x198c9a=this['editor'],_0x27f652=_0x198c9a['locale'];_0x198c9a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ccd47=>{if('formatInline'!=_0x1ccd47['type'])return;const {data:_0x160e68}=_0x1ccd47;if(_0x160e68&&'highlight'==_0x160e68['commandName']){const _0x37e161=_0x27f652['t'],_0x39823e=_0x160e68['commandParams'][0x0]['value'];if(_0x39823e){const _0x57b108=_0x198c9a['config']['get']('highlight.options')['find'](_0x5a34e5=>_0x5a34e5['model']==_0x39823e),_0x172158=_0x37e161(_0x57b108['title'])['toLowerCase']();return{'type':'format','content':o(_0x27f652,'*Set\x20highlight:*\x20%0',_0x172158),'color':{'value':_0x57b108['color'],'title':_0x57b108['title']}};}return{'type':'format','content':o(_0x27f652,'*Remove\x20highlight*',o(_0x27f652,'FORMAT_HIGHLIGHT'))};}});}}class ot extends _0x391ea2{['afterInit'](){const _0x3d456a=this['editor'];if(!_0x3d456a['plugins']['has']('HorizontalLineEditing'))return;_0x3d456a['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4a34cb=_0x3d456a['plugins']['get']('TrackChangesEditing'),_0x19a025=_0x3d456a['locale'];_0x4a34cb['descriptionFactory']['registerElementLabel']('horizontalLine',_0x50753f=>o(_0x19a025,'ELEMENT_HORIZONTAL_LINE',_0x50753f)),_0x3d456a['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0xea2c91,{writer:_0xca48a1,options:_0xa2741a})=>{if(!_0xa2741a['showSuggestionHighlights'])return null;const _0x55519c=_0xca48a1['createContainerElement']('div'),_0xeeda0c=_0xca48a1['createEmptyElement']('hr');return _0xca48a1['addClass']('ck-horizontal-line',_0x55519c),_0xca48a1['insert'](_0xca48a1['createPositionAt'](_0x55519c,0x0),_0xeeda0c),_0x55519c;},'converterPriority':'high'});}}class rt extends _0x391ea2{['afterInit'](){const _0x4aa384=this['editor'];if(!_0x4aa384['plugins']['has']('HtmlEmbed'))return;const _0x3d22db=_0x4aa384['plugins']['get']('TrackChangesEditing'),_0x1973d6=_0x4aa384['locale'];_0x3d22db['descriptionFactory']['registerElementLabel']('rawHtml',_0x16f9f0=>o(_0x1973d6,'ELEMENT_HTML_EMBED',_0x16f9f0)),_0x3d22db['enableDefaultAttributesIntegration']('htmlEmbed'),_0x3d22db['registerBlockAttribute']('value'),_0x3d22db['descriptionFactory']['registerDescriptionCallback'](_0x1da2f4=>{if('attribute'!=_0x1da2f4['type'])return;const {data:_0x444fff}=_0x1da2f4;if(_0x444fff&&'value'==_0x444fff['key']&&_0x1da2f4['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x65a49c=o(_0x1973d6,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1973d6,'*Change\x20%0\x20content*',_0x65a49c)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x56c423=this['editor'],_0x192a06=_0x56c423['locale'];_0x56c423['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x493a9c=>{if('formatBlock'!=_0x493a9c['type'])return;const {data:_0x19dd0d}=_0x493a9c;if(_0x19dd0d&&'htmlEmbed'==_0x19dd0d['commandName']){const _0x22a692=o(_0x192a06,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x192a06,'*Change\x20%0\x20content*',_0x22a692)};}});}}class at extends _0x391ea2{['afterInit'](){const _0x3e6762=this['editor'];if(!_0x3e6762['plugins']['has']('ImageEditing'))return;const _0x88b009=_0x3e6762['plugins']['get']('TrackChangesEditing'),_0x1e2f38=_0x3e6762['plugins']['get']('ImageUtils'),_0x5a2aad=_0x3e6762['locale'];_0x88b009['enableCommand']('insertImage'),_0x88b009['descriptionFactory']['registerElementLabel']('imageBlock',_0x2137ce=>o(_0x5a2aad,'ELEMENT_IMAGE',_0x2137ce)),_0x88b009['descriptionFactory']['registerElementLabel']('imageInline',_0x2a6c20=>o(_0x5a2aad,'ELEMENT_INLINE_IMAGE',_0x2a6c20)),_0x88b009['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x5a2aad,'ELEMENT_CAPTION')),_0x3e6762['plugins']['has']('ImageUploadEditing')&&_0x88b009['enableCommand']('uploadImage'),_0x3e6762['plugins']['has']('ImageBlockEditing')&&_0x3e6762['plugins']['has']('ImageInlineEditing')&&(_0x88b009['enableCommand']('imageTypeInline',(_0x44b813,_0x3fbc83)=>{const _0x36480d=_0x1e2f38['getClosestSelectedImageElement'](_0x3e6762['model']['document']['selection']);_0x3e6762['model']['change'](()=>{_0x88b009['markBlockFormat'](_0x36480d,{'commandName':'imageTypeInline','commandParams':[_0x3fbc83]},[],'convertBlockImageToInline');});}),_0x88b009['enableCommand']('imageTypeBlock',(_0x4e5479,_0x294c95)=>{_0x3e6762['model']['change'](_0xf0c133=>{let _0x400713=_0x1e2f38['getClosestSelectedImageElement'](_0x3e6762['model']['document']['selection']),_0x5337dd=_0xf0c133['createRangeOn'](_0x400713);const _0x30cc94=_0x575139['fromPosition'](_0x5337dd['start'],'toPrevious'),_0x1f68ea=_0x575139['fromPosition'](_0x5337dd['end'],'toNext');_0x88b009['forceDefaultExecution'](()=>_0x4e5479(_0x294c95)),_0x400713=_0x1e2f38['getClosestSelectedImageElement'](_0x3e6762['model']['document']['selection']),_0x5337dd=_0xf0c133['createRangeOn'](_0x400713);const _0x161331=_0xf0c133['createRange'](_0x30cc94,_0x1f68ea);_0x30cc94['detach'](),_0x1f68ea['detach'](),_0x88b009['markBlockFormat'](_0x400713,{'commandName':'imageTypeInline','commandParams':[_0x294c95]},[],'convertInlineImageToBlock'),_0x161331['start']['isBefore'](_0x5337dd['start'])&&_0x88b009['markInsertion'](_0xf0c133['createRange'](_0x161331['start'],_0x5337dd['start']),'convertInlineImageToBlock'),_0x5337dd['end']['isBefore'](_0x161331['end'])&&_0x88b009['markInsertion'](_0xf0c133['createRange'](_0x5337dd['end'],_0x161331['end']),'convertInlineImageToBlock');});}),_0x88b009['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x88b009['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x88b009['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x88b009['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x88b009['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x88b009['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x242968])=>{const _0x17364b=_0x88b009['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x33607f=_0x242968['start'],_0x1e32b6=_0x242968['end'];const _0x28e9d4=_0x3e6762['model']['schema']['getNearestSelectionRange'](_0x33607f,'backward'),_0x1eb4d9=_0x3e6762['model']['schema']['getNearestSelectionRange'](_0x1e32b6,'forward');_0x28e9d4['isCollapsed']&&(_0x33607f=_0x28e9d4['start']),_0x1eb4d9['isCollapsed']&&(_0x1e32b6=_0x1eb4d9['end']),_0x17364b([_0x3e6762['model']['createRange'](_0x33607f,_0x1e32b6)]);}),_0x88b009['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x3c7bcf),_0x88b009['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x3c7bcf)),_0x3e6762['plugins']['has']('ImageCaptionEditing')&&(_0x88b009['enableCommand']('toggleImageCaption',(_0x21210c,_0x10d778)=>{const _0xa556e5=_0x3e6762['plugins']['get']('ImageCaptionUtils');let _0x15dc82=_0x1e2f38['getClosestSelectedImageElement'](_0x3e6762['model']['document']['selection']),_0x5bda7e=_0xa556e5['getCaptionFromImageModelElement'](_0x15dc82);_0x3e6762['model']['change'](()=>{if(_0x5bda7e)return void _0x88b009['markDeletion'](_0x3e6762['model']['createRangeOn'](_0x5bda7e));const _0x4e11ce=_0x1e2f38['isBlockImage'](_0x15dc82);_0x21210c(_0x10d778),_0x15dc82=_0x1e2f38['getClosestSelectedImageElement'](_0x3e6762['model']['document']['selection']),_0x5bda7e=_0xa556e5['getCaptionFromImageModelElement'](_0x15dc82),_0x88b009['markInsertion'](_0x3e6762['model']['createRangeOn'](_0x5bda7e),_0x4e11ce?null:'imageCaption');});}),_0x88b009['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x3c7bcf));const _0xb49169=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x56618d(_0x505013,_0x1b2ac2){const _0xfba689=_0xb49169['findIndex'](({type:_0x49bc33,subType:_0x515165})=>_0x505013['type']==_0x49bc33&&_0x505013['subType']==_0x515165),_0x1ee1f9=_0xb49169['findIndex'](({type:_0x411a41,subType:_0x4b3852})=>_0x1b2ac2['type']==_0x411a41&&_0x1b2ac2['subType']==_0x4b3852);if(_0xfba689<0x0||_0x1ee1f9<0x0)return!0x1;const _0x4e056b=_0x505013['getFirstRange'](),_0x1b16d9=_0x1b2ac2['getFirstRange']();if((0x0==_0xfba689||0x1==_0xfba689)&&0x2==_0x1ee1f9&&_0x4e056b['isIntersecting'](_0x1b16d9))return!0x0;if(0x2==_0xfba689&&0x3==_0x1ee1f9){const _0x2b10d1=_0x88b009['_findSuggestions'](_0x4e056b,'insertion')['filter'](({suggestion:_0x14992e,meta:_0x5b0053})=>_0x5b0053['isOwn']&&'convertInlineImageToBlock'==_0x14992e['subType']);if(_0x2b10d1['length']>0x1&&_0x1b16d9['end']['isEqual'](_0x4e056b['start']))return!0x0;if(0x1==_0x2b10d1['length']&&(_0x4e056b['start']['isEqual'](_0x1b16d9['end'])||_0x4e056b['end']['isEqual'](_0x1b16d9['start'])))return!0x0;}if(0x3==_0xfba689&&0x3==_0x1ee1f9&&_0x4e056b['start']['isBefore'](_0x1b16d9['start'])){const _0x233983=_0x4e056b['end']['nodeAfter'],_0x53ed04=_0x1b16d9['start']['nodeBefore'];return _0x1e2f38['isBlockImage'](_0x233983)&&_0x233983===_0x53ed04;}return!0x1;}function _0x3c7bcf(_0x2e5529,_0x516205){return _0x56618d(_0x2e5529,_0x516205)?[_0x2e5529,_0x516205]:_0x56618d(_0x516205,_0x2e5529)?[_0x516205,_0x2e5529]:null;}_0x3e6762['plugins']['has']('ImageResize')&&(_0x88b009['enableDefaultAttributesIntegration']('resizeImage'),_0x88b009['registerBlockAttribute']('resizedWidth'),_0x88b009['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x5a2aad,'FORMAT_IMAGE_SIZE'))),_0x3e6762['plugins']['has']('ImageTextAlternativeEditing')&&(_0x88b009['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x88b009['registerBlockAttribute']('alt')),_0x3e6762['plugins']['has']('PictureEditing')&&(_0x88b009['registerBlockAttribute']('sources'),_0x88b009['descriptionFactory']['registerDescriptionCallback'](_0x217cbb=>{if('attribute'!=_0x217cbb['type'])return;const {data:_0x2b7759}=_0x217cbb;return _0x2b7759&&'sources'==_0x2b7759['key']?{'type':'format','content':''}:void 0x0;})),_0x3e6762['plugins']['has']('ImageSizeAttributes')&&(_0x88b009['registerBlockAttribute']('width'),_0x88b009['registerBlockAttribute']('height'),_0x88b009['descriptionFactory']['registerDescriptionCallback'](_0x16865d=>{if('attribute'!=_0x16865d['type'])return;const {data:_0xbc9158}=_0x16865d;return!_0xbc9158||'width'!=_0xbc9158['key']&&'height'!=_0xbc9158['key']?void 0x0:{'type':'format','content':''};})),_0x88b009['descriptionFactory']['registerDescriptionCallback'](_0x254990=>{if(!!_0xb49169['find'](({type:_0x2fb7b7,subType:_0x184c3e})=>_0x254990['type']==_0x2fb7b7&&_0x254990['subType']==_0x184c3e))return _0x254990['previous']?{}:void 0x0;}),_0x88b009['descriptionFactory']['registerDescriptionCallback'](_0x587a80=>{if('insertion'==_0x587a80['type']||'deletion'==_0x587a80['type']){const _0x66ad05=_0x587a80['getContainedElement']();if(_0x66ad05&&_0x66ad05['is']('element','caption'))return{'type':'insertion'==_0x587a80['type']?'addObject':'removeObject','element':_0x66ad05,'quantity':0x1};}}),_0x88b009['descriptionFactory']['registerDescriptionCallback'](_0x58df06=>'formatBlock'==_0x58df06['type']&&'convertInlineImageToBlock'==_0x58df06['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x58df06['type']&&'convertBlockImageToInline'==_0x58df06['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x88b009['descriptionFactory']['registerDescriptionCallback'](_0x3941e3=>{if('attribute'!=_0x3941e3['type'])return;const {data:_0x5e09c5}=_0x3941e3;if(!_0x5e09c5||'alt'!=_0x5e09c5['key'])return;const _0x203efd=_0x5e09c5['newValue'];return _0x203efd?{'type':'format','content':o(_0x5a2aad,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x203efd+'\x22')}:{'type':'format','content':o(_0x5a2aad,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x434088=this['editor'],_0x2eb127=_0x434088['locale'];_0x434088['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a77aa=>{if('formatBlock'!=_0x5a77aa['type']&&'formatInline'!=_0x5a77aa['type'])return;const {data:_0x336f5d}=_0x5a77aa;if(_0x336f5d){if('imageTextAlternative'==_0x336f5d['commandName']){const _0x5a6eeb=_0x336f5d['commandParams'][0x0]['newValue'];return _0x5a6eeb?{'type':'format','content':o(_0x2eb127,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5a6eeb+'\x22')}:{'type':'format','content':o(_0x2eb127,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x336f5d['commandName']){const _0x4aad98=_0x336f5d['commandParams'][0x0]['width'];return _0x4aad98?{'type':'format','content':o(_0x2eb127,'*Set\x20image\x20width:*\x20%0',_0x4aad98)}:{'type':'format','content':o(_0x2eb127,'*Reset\x20image\x20width*')};}}});}}class ct extends _0x391ea2{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x486d16=this['editor']['locale'],_0x5a5669=this['editor']['plugins']['get']('TrackChangesEditing');_0x5a5669['enableDefaultAttributesIntegration']('replaceImageSource'),_0x5a5669['registerBlockAttribute']('src'),_0x5a5669['descriptionFactory']['registerDescriptionCallback'](_0x5f206e=>{if('attribute'!=_0x5f206e['type'])return;const {data:_0x507c2d}=_0x5f206e;return _0x507c2d&&'src'==_0x507c2d['key']?_0x507c2d['newValue']&&_0x507c2d['oldValue']?{'type':'format','content':o(_0x486d16,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4a15fe=this['editor']['plugins']['get']('TrackChangesEditing');_0x4a15fe['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4a15fe['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4a15fe['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4a15fe['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3fc881=this['editor'],_0xcef2e7=_0x3fc881['locale'];_0x3fc881['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a800c=>{if('formatBlock'!=_0x1a800c['type']&&'formatInline'!=_0x1a800c['type'])return;const {data:_0xb7e0f5}=_0x1a800c;if(!_0xb7e0f5||'replaceImageSource'!=_0xb7e0f5['commandName'])return;return{'type':'format','content':o(_0xcef2e7,'*Format:*\x20replace\x20image\x20URL')};});}}class ut extends _0x391ea2{['afterInit'](){const _0x3a14d9=this['editor'];if(!_0x3a14d9['plugins']['has']('ImageStyleEditing'))return;const _0x2c9a01=_0x3a14d9['plugins']['get']('TrackChangesEditing'),_0x3e8d8e=_0x3a14d9['plugins']['get']('ImageUtils'),_0x390218={};_0x2c9a01['enableCommand']('imageStyle',(_0x2ef96d,_0x7da81a)=>{const _0x2d81bc=_0x3a14d9['plugins']['get']('Users')['me'],_0x27e78f=_0x3a14d9['commands']['get']('imageStyle');let _0x537174=_0x3e8d8e['getClosestSelectedImageElement'](_0x3a14d9['model']['document']['selection']),_0x21df19=_0x3a14d9['model']['createRangeOn'](_0x537174),_0x11c7fd=_0x27e78f['value'];if(_0x11c7fd==_0x7da81a['value'])return;const _0x519e1a={'commandName':'imageStyle','commandParams':[_0x7da81a],'formatGroupId':_0x337574()};_0x3a14d9['model']['change'](()=>{if(_0x2c9a01['getSuggestions']()['filter'](_0x1217be=>_0x1217be['isInContent']&&_0x2d81bc==_0x1217be['author']&&('formatBlock'==_0x1217be['type']||'formatInline'==_0x1217be['type'])&&('imageStylePreApply'==_0x1217be['subType']||'imageStylePostApply'==_0x1217be['subType'])&&_0x1217be['getFirstRange']()['isEqual'](_0x21df19))['forEach'](_0x2dcc37=>_0x2c9a01['discardSuggestion'](_0x2dcc37['head'])),_0x537174=_0x3e8d8e['getClosestSelectedImageElement'](_0x3a14d9['model']['document']['selection']),_0x21df19=_0x3a14d9['model']['createRangeOn'](_0x537174),_0x27e78f['refresh'](),_0x3a14d9['commands']['get']('imageTypeInline')['refresh'](),_0x3a14d9['commands']['get']('imageTypeBlock')['refresh'](),_0x11c7fd=_0x27e78f['value'],_0x11c7fd!=_0x7da81a['value'])return _0x3e8d8e['isInlineImage'](_0x537174)&&_0x27e78f['shouldConvertImageType'](_0x7da81a['value'],_0x537174)?(_0x2ef96d({..._0x7da81a,'setImageSizes':!0x1}),_0x537174=_0x3e8d8e['getClosestSelectedImageElement'](_0x3a14d9['model']['document']['selection']),void _0x2c9a01['markBlockFormat'](_0x537174,{..._0x519e1a,'commandReversedParams':[{'value':_0x11c7fd||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3e8d8e['isBlockImage'](_0x537174)?_0x2c9a01['markBlockFormat'](_0x537174,_0x519e1a,[],'imageStylePostApply'):_0x2c9a01['markInlineFormat'](_0x21df19,_0x519e1a,'imageStylePostApply'));});});for(const _0x38a277 of _0x3a14d9['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x390218[_0x38a277['name']]=_0x38a277['title']['toLowerCase']();_0x2c9a01['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x2c9a01['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x2c9a01['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x2c9a01['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x24595f])=>{_0x3e8d8e['setImageNaturalSizeAttributes'](_0x24595f['getContainedElement']());}),_0x2c9a01['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x3b88a7,_0x5252f1)=>{_0x2c9a01['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x3b88a7,{'commandName':_0x5252f1['commandName'],'commandParams':_0x5252f1['commandReversedParams']});}),_0x2c9a01['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x2996ea,_0x42dfb3){if(_0x343ac0(_0x2996ea,_0x42dfb3))return[_0x2996ea,_0x42dfb3];if(_0x343ac0(_0x42dfb3,_0x2996ea))return[_0x42dfb3,_0x2996ea];return null;});const _0x595dd7=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x343ac0(_0xd2ff95,_0x3940a7){const _0x2cc318=_0x595dd7['findIndex'](({type:_0x571123,subType:_0x474120})=>_0xd2ff95['type']==_0x571123&&_0xd2ff95['subType']==_0x474120),_0x49401a=_0x595dd7['findIndex'](({type:_0xeb4689,subType:_0x3498a7})=>_0x3940a7['type']==_0xeb4689&&_0x3940a7['subType']==_0x3498a7);if(_0x2cc318<0x0||_0x49401a<0x0)return!0x1;const _0x25835a=_0xd2ff95['getFirstRange'](),_0xb425d9=_0x3940a7['getFirstRange']();if((0x0==_0x2cc318||0x1==_0x2cc318)&&0x2==_0x49401a&&_0x25835a['isIntersecting'](_0xb425d9))return!0x0;if(0x2==_0x2cc318&&0x3==_0x49401a){const _0x304658=_0x2c9a01['_findSuggestions'](_0x25835a,'insertion')['filter'](({suggestion:_0xe45365,meta:_0x73646b})=>_0x73646b['isOwn']&&'convertInlineImageToBlock'==_0xe45365['subType']);if(_0x304658['length']>0x1&&_0xb425d9['end']['isEqual'](_0x25835a['start']))return!0x0;if(0x1==_0x304658['length']&&(_0x25835a['start']['isEqual'](_0xb425d9['end'])||_0x25835a['end']['isEqual'](_0xb425d9['start'])))return!0x0;}if(0x3==_0x2cc318&&0x3==_0x49401a&&_0x25835a['start']['isBefore'](_0xb425d9['start'])){const _0x37f5a3=_0x25835a['end']['nodeAfter'],_0x27303b=_0xb425d9['start']['nodeBefore'];return _0x3e8d8e['isBlockImage'](_0x37f5a3)&&_0x37f5a3===_0x27303b;}return!0x1;}_0x3a14d9['model']['document']['registerPostFixer'](()=>{let _0x46df11=!0x1;const _0x222249=Array['from'](_0x3a14d9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2991e7,data:_0xb35d77}of _0x222249){const {group:_0x34b300,type:_0x5502d5,subType:_0x842981,id:_0x26b72a}=_0x2c9a01['_splitMarkerName'](_0x2991e7);if('suggestion'==_0x34b300&&_0x2c9a01['hasSuggestion'](_0x26b72a)){if('formatBlock'==_0x5502d5&&('imageStylePreApply'==_0x842981||'imageStylePostApply'==_0x842981)){const _0x3328a5=_0x2c9a01['getSuggestion'](_0x26b72a);if(_0xb35d77['newRange']){const _0x276841=_0x3328a5['getFirstRange']()['getContainedElement']();if(_0x3e8d8e['isBlockImage'](_0x276841))continue;_0x2c9a01['discardSuggestion'](_0x3328a5),_0x46df11=!0x0;}}if('insertion'==_0x5502d5&&'imageCaption'==_0x842981&&!_0xb35d77['newRange']){const _0x1c7c06=_0x2c9a01['getSuggestion'](_0x26b72a);_0x1c7c06['next']&&_0x1c7c06['next']['isInContent']&&(_0x2c9a01['discardSuggestion'](_0x1c7c06['next']),_0x46df11=!0x0);}}}return _0x46df11;}),this['_registerLegacyDescription'](_0x390218);}['_registerLegacyDescription'](_0x2bf8d6){const _0x2316bc=this['editor'],_0x354fea=_0x2316bc['locale'];_0x2316bc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x264a97=>{if('formatBlock'!=_0x264a97['type']&&'formatInline'!=_0x264a97['type'])return;const {data:_0x1218b4}=_0x264a97;if(!_0x1218b4||'imageStyle'!=_0x1218b4['commandName'])return;const _0x43a02a=_0x1218b4['commandParams'][0x0]['value'];return _0x48b2bc('side'===_0x43a02a?o(_0x354fea,'FORMAT_SIDE_IMAGE'):_0x2bf8d6[_0x43a02a]||_0x43a02a);function _0x48b2bc(_0x4d3f66){return{'type':'format','content':o(_0x354fea,'*Format:*\x20%0',_0x4d3f66)};}});}}class ft extends _0x391ea2{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x3f9209){super(_0x3f9209),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x221145=this['editor'],_0x3c7a39=_0x221145['commands']['get']('importWord'),_0x36cac8=_0x221145['commands']['get']('trackChanges');_0x3c7a39&&(_0x3c7a39['on']('execute',(_0x2842b7,[,_0x5486ae])=>{this['_trackChangesValueDuringImport']=_0x36cac8['value'],_0x5486ae['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x3c7a39,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x3c7a39,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x36cac8['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x221145['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x2f0db1,_0x50dfd0){const {suggestions:_0xcb0881}=_0x50dfd0,_0xd18853=this['editor']['commands']['get']('trackChanges'),_0x5adb32=_0xd18853['value'];this['_trackChangesValueDuringImport']!==_0x5adb32&&(_0xd18853['execute'](),this['_trackChangesExecuted']=!0x0),_0xcb0881&&_0xcb0881['forEach'](({id:_0x506e22,type:_0x1e7b2f,author:_0x5981a4,created_at:_0x2b84ba})=>{const _0x322c2e={'id':_0x506e22,'type':_0x1e7b2f,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x5981a4,'createdAt':_0x2b84ba?new Date(_0x2b84ba):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x322c2e);});}}class ht extends _0x391ea2{['afterInit'](){const _0x2cdbd7=this['editor'],_0x3a61db=_0x2cdbd7['plugins']['get']('TrackChangesEditing');if(_0x2cdbd7['plugins']['has']('IndentEditing')&&(_0x3a61db['enableCommand']('indent'),_0x3a61db['enableCommand']('outdent')),_0x2cdbd7['plugins']['has']('IndentBlock')){for(const _0x1f0f9a of['indentBlock','outdentBlock'])_0x3a61db['enableDefaultAttributesIntegration'](_0x1f0f9a);}const _0x13cc5b=_0x2cdbd7['locale'];_0x3a61db['registerBlockAttribute']('blockIndent'),_0x3a61db['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x13cc5b,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x29ff94=this['editor'],_0x1f5344=_0x29ff94['locale'],_0x3a84de=_0x29ff94['plugins']['get']('TrackChangesEditing');_0x3a84de['descriptionFactory']['registerDescriptionCallback'](_0x36d762=>{if('formatBlock'!=_0x36d762['type'])return;const {data:_0x2cf3d0}=_0x36d762;if(!_0x2cf3d0)return;if('indentBlock'!=_0x2cf3d0['commandName']&&'outdentBlock'!=_0x2cf3d0['commandName'])return;const _0x223363=_0x36d762['getItems']()[0x0],_0x530982=_0x3a84de['descriptionFactory']['getItemLabel'](_0x223363);return'indentBlock'==_0x2cf3d0['commandName']?{'type':'format','content':o(_0x1f5344,'*Indent:*\x20%0',_0x530982)}:'outdentBlock'==_0x2cf3d0['commandName']?{'type':'format','content':o(_0x1f5344,'*Outdent:*\x20%0',_0x530982)}:void 0x0;});}}class gt extends _0x391ea2{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x391ea2{['afterInit'](){const _0x36c316=this['editor'];if(!_0x36c316['plugins']['has']('LinkEditing'))return;const _0x4b2656=_0x36c316['plugins']['get']('TrackChangesEditing'),_0x3c21c9=_0x36c316['commands']['get']('link');_0x4b2656['enableDefaultAttributesIntegration']('link'),_0x4b2656['enableDefaultAttributesIntegration']('unlink'),_0x4b2656['registerInlineAttribute']('linkHref');for(const _0x172655 of _0x3c21c9['manualDecorators'])_0x4b2656['registerInlineAttribute'](_0x172655['id']),_0x4b2656['descriptionFactory']['registerAttributeLabel'](_0x172655['id'],'link\x20('+_0x172655['label']['toLowerCase']()+')');_0x4b2656['descriptionFactory']['registerDescriptionCallback'](_0x1da6ec=>{if('attribute'!=_0x1da6ec['type'])return;const {data:_0x5a9db7}=_0x1da6ec;if(!_0x5a9db7||'linkHref'!=_0x5a9db7['key'])return;const _0x1c1d13=_0x5a9db7['newValue'],_0x50c23e=_0x36c316['locale'];return{'type':'format','content':null==_0x1c1d13?o(_0x50c23e,'*Remove\x20link*'):o(_0x50c23e,'*Set\x20link:*\x20%0','\x22'+_0x1c1d13+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xc3c1d0=this['editor'],_0x323088=_0xc3c1d0['locale'];_0xc3c1d0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d3fd5=>{if('formatInline'!=_0x1d3fd5['type'])return;const {data:_0x5ce116}=_0x1d3fd5;if(_0x5ce116){if('link'==_0x5ce116['commandName']){const _0x172897=_0x5ce116['commandParams'][0x0];return{'type':'format','content':o(_0x323088,'*Set\x20link:*\x20%0','\x22'+_0x172897+'\x22')};}return'unlink'==_0x5ce116['commandName']?{'type':'format','content':o(_0x323088,'*Remove\x20link*')}:void 0x0;}});}}class dt extends _0x391ea2{['afterInit'](){const _0x2d3f9d=this['editor'],_0x459920=_0x2d3f9d['locale'];if(!_0x2d3f9d['plugins']['has']('LegacyListEditing'))return;const _0x4730ae=_0x2d3f9d['plugins']['get']('TrackChangesEditing'),_0x4fba89=_0x2d3f9d['plugins']['has']('LegacyTodoListEditing');function _0x2c120f(_0x4a629e){return()=>{const _0x6cd92a=_0x2d3f9d['model']['document']['selection'],_0x760dcf=_0x2d3f9d['commands']['get'](_0x4a629e);if(_0x760dcf['value'])return void _0x2d3f9d['execute']('paragraph',{});const _0x56a3b8=_0x4a629e['slice'](0x0,-0x4),_0x188a74=function(_0x493dc6,_0x32d95f,_0x2b4aed){let _0x4a1150=Array['from'](_0x493dc6)['filter'](_0x55693f=>function(_0x56ba6f,_0x5d0520){return _0x5d0520['checkChild'](_0x56ba6f['parent'],'listItem')&&!_0x5d0520['isObject'](_0x56ba6f);}(_0x55693f,_0x2b4aed));_0x4a1150=_0x4a1150['filter'](_0x461efc=>!_0x461efc['is']('element','listItem')||_0x461efc['getAttribute']('listType')!=_0x32d95f);const _0x330ed4=new Set();for(const _0x55dfc7 of _0x4a1150)_0x55dfc7['is']('element','listItem')?_0x330ed4['add'](Ne(_0x55dfc7)):_0x330ed4['add'](_0x55dfc7);return Array['from'](_0x330ed4);}(_0x6cd92a['getSelectedBlocks'](),_0x56a3b8,_0x2d3f9d['model']['schema']);_0x2d3f9d['model']['change'](()=>{for(const _0x4a36d2 of _0x188a74)_0x4730ae['markBlockFormat'](_0x4a36d2,{'commandName':_0x4a629e,'commandParams':[{'forceValue':!_0x760dcf['value']}],'formatGroupId':'blockName'},Se(_0x4a36d2));});};}function _0x46c3d9(_0x5a5a2b){return()=>{const _0x151bb3=function(_0x3ab654){let _0x188a4a=Array['from'](_0x3ab654);const _0x2fc72c=_0x188a4a['findIndex'](_0x532589=>'listItem'!=_0x532589['name']);return _0x2fc72c>-0x1&&(_0x188a4a=_0x188a4a['slice'](0x0,_0x2fc72c)),_0x188a4a;}(_0x2d3f9d['model']['document']['selection']['getSelectedBlocks']()),_0x23d576=_0x2d3f9d['model']['createRange'](_0x2d3f9d['model']['createPositionAt'](_0x151bb3[0x0],'before'),_0x2d3f9d['model']['createPositionAt'](_0x151bb3[_0x151bb3['length']-0x1],'end'));_0x2d3f9d['model']['change'](()=>{_0x4730ae['markBlockFormat'](_0x23d576,{'commandName':_0x5a5a2b,'commandParams':[],'formatGroupId':'listIndent'},function(_0x1eb0d8){const _0xa8ff70=new Set();for(const _0xf3f57f of _0x1eb0d8){let _0x50de8b=_0xf3f57f['nextSibling'];for(;_0x50de8b&&_0x50de8b['getAttribute']('listIndent')>_0xf3f57f['getAttribute']('listIndent');)_0xa8ff70['add'](_0x50de8b),_0x50de8b=_0x50de8b['nextSibling'];}return Array['from'](_0xa8ff70);}(_0x151bb3));});};}_0x4730ae['enableCommand']('numberedList',_0x2c120f('numberedList')),_0x4730ae['enableCommand']('bulletedList',_0x2c120f('bulletedList')),_0x4fba89&&_0x4730ae['enableCommand']('todoList',_0x2c120f('todoList')),_0x4730ae['enableCommand']('indentList',_0x46c3d9('indentList')),_0x4730ae['enableCommand']('outdentList',_0x46c3d9('outdentList')),_0x4fba89&&_0x4730ae['enableCommand']('checkTodoList',()=>{const _0x177428=_0x2d3f9d['commands']['get']('checkTodoList'),_0x1a682b=Array['from'](_0x177428['_selectedElements']);_0x1a682b['filter'](_0x271cb7=>_0x271cb7['getAttribute']('todoListChecked')!=_0x177428['value']),_0x2d3f9d['model']['change'](()=>{for(const _0x3af287 of _0x1a682b)_0x4730ae['markBlockFormat'](_0x3af287,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x177428['value']}]});});}),_0x4730ae['descriptionFactory']['registerElementLabel']('listItem',_0x45feee=>o(_0x459920,'ELEMENT_LIST_ITEM',_0x45feee)),_0x4730ae['descriptionFactory']['registerDescriptionCallback'](_0x3db20f=>{if('formatBlock'!=_0x3db20f['type']&&'formatInline'!=_0x3db20f['type'])return;const {data:_0x2cee20}=_0x3db20f;if(_0x2cee20){if('numberedList'==_0x2cee20['commandName']||'bulletedList'==_0x2cee20['commandName']||'todoList'==_0x2cee20['commandName'])switch(_0x2cee20['commandName']['replace']('List','')){case'bulleted':return _0x23b26f(o(_0x459920,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x23b26f(o(_0x459920,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x23b26f(o(_0x459920,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2cee20['commandName'])return{'type':'format','content':o(_0x459920,'*Indent:*\x20%0',o(_0x459920,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2cee20['commandName'])return{'type':'format','content':o(_0x459920,'*Outdent:*\x20%0',o(_0x459920,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2cee20['commandName'])return _0x2cee20['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x459920,'*Check\x20item*')}:{'type':'format','content':o(_0x459920,'*Uncheck\x20item*')};}function _0x23b26f(_0x3fc00f){return{'type':'format','content':o(_0x459920,'*Change\x20to:*\x20%0',_0x3fc00f)};}});}}function Ne(_0x541126){const _0x4d794d=_0x541126['getAttribute']('listIndent');if(0x0==_0x4d794d)return _0x541126;let _0x339a7f=_0x541126;for(;_0x541126['previousSibling']&&_0x541126['previousSibling']['is']('element','listItem');){const _0x1595fd=_0x541126['previousSibling']['getAttribute']('listIndent');if(_0x1595fd==_0x4d794d)_0x339a7f=_0x541126['previousSibling'];else{if(_0x1595fd<_0x4d794d)break;}_0x541126=_0x541126['previousSibling'];}return _0x339a7f;}function Se(_0x31d853){const _0x331078=[];if(_0x31d853['is']('element','listItem')&&_0x31d853['getAttribute']('listIndent')>0x0){let _0x2ddb7b=_0x31d853['nextSibling'];for(;_0x2ddb7b&&'listItem'==_0x2ddb7b['name']&&_0x2ddb7b['getAttribute']('listIndent')==_0x31d853['getAttribute']('listIndent');)_0x331078['push'](_0x2ddb7b),_0x2ddb7b=_0x2ddb7b['nextSibling'];}return _0x331078;}class mt extends _0x391ea2{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x14d08c=this['editor']['config']['get']('list.properties'),_0x5026af=this['editor']['plugins']['get']('TrackChangesEditing');_0x14d08c['styles']&&_0x5026af['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x14d08c['reversed']&&_0x5026af['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x14d08c['startIndex']&&_0x5026af['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x5026af['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x4765ff,_0x368f0e={}){const _0x51859d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2ca6dc=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x51859d['markMultiRangeBlockFormat'](_0x2ca6dc,{'commandName':'listStyle','commandParams':[{'type':_0x368f0e['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x8a06fd,_0xe75bd4={}){const _0x38c192=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1173dc=this['_getSuggestionBlocks'](_0x39536d=>_0x39536d['is']('element','listItem')&&'numbered'===_0x39536d['getAttribute']('listType'));if(_0x1173dc['length']<0x1)return;const _0x573643=_0x1173dc['map'](_0x3faa52=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3faa52,'before'),this['editor']['model']['createPositionAt'](_0x3faa52,0x0)));this['editor']['model']['change'](()=>{_0x38c192['markMultiRangeBlockFormat'](_0x573643,{'commandName':'listReversed','commandParams':[{'reversed':_0xe75bd4['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x5c648e,_0x299e4c={}){const _0x35b36c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x92847f=this['_getSuggestionBlocks'](_0x113304=>_0x113304['is']('element','listItem')&&'numbered'===_0x113304['getAttribute']('listType'));if(_0x92847f['length']<0x1)return;const _0x5878f5=_0x92847f['map'](_0x3d3cee=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3d3cee,'before'),this['editor']['model']['createPositionAt'](_0x3d3cee,0x0)));this['editor']['model']['change'](()=>{_0x35b36c['markMultiRangeBlockFormat'](_0x5878f5,{'commandName':'listStart','commandParams':[{'startIndex':_0x299e4c['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x3d8d86){if('formatBlock'!=_0x3d8d86['type']&&'formatInline'!=_0x3d8d86['type'])return;const _0x1f425b=this['editor']['locale'],{data:_0xccc9a0}=_0x3d8d86;if(!_0xccc9a0)return;let _0xb7db6b,_0x5025d7;switch(_0xccc9a0['commandName']){case'listStyle':_0xb7db6b='*Change\x20to:*\x20%0',_0x5025d7={'type':'format','content':o(_0x1f425b,_0xb7db6b,o(_0x1f425b,this['_getTranslationKeyForListStyle'](_0xccc9a0['commandParams'][0x0]['type'])))};break;case'listReversed':_0xb7db6b=_0xccc9a0['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5025d7={'type':'format','content':o(_0x1f425b,_0xb7db6b)};break;case'listStart':_0xb7db6b='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5025d7={'type':'format','content':o(_0x1f425b,_0xb7db6b,_0xccc9a0['commandParams'][0x0]['startIndex'])};}return _0x5025d7;}['_getSuggestionBlocksForListStyle'](){const _0x15f42b=this['editor']['plugins']['get']('LegacyListUtils');let _0x4a22f8=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x4a22f8[0x0]?.['is']('element','listItem')&&_0x4a22f8['unshift'](..._0x15f42b['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x4a22f8[_0x4a22f8['length']-0x1]?.['is']('element','listItem')&&_0x4a22f8['push'](..._0x15f42b['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x4a22f8=[...new Set(_0x4a22f8)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x4a22f8=_0x4a22f8['filter'](_0x32966e=>_0x32966e['is']('element','listItem'))),_0x4a22f8;}['_getSuggestionBlocks'](_0x35920e){const _0x411fd4=this['editor']['plugins']['get']('LegacyListUtils');let _0x7aab81=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x35920e)['map'](_0x236ad4=>{const _0x2ba696=this['editor']['model']['createPositionAt'](_0x236ad4,0x0);return[..._0x411fd4['getSiblingNodes'](_0x2ba696,'backward'),..._0x411fd4['getSiblingNodes'](_0x2ba696,'forward')];})['flat']();return _0x7aab81=[...new Set(_0x7aab81)],_0x7aab81;}['_getTranslationKeyForListStyle'](_0x4e5e98){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x4e5e98)||'default')['toUpperCase']()+'_LIST_'+_0x4e5e98['toUpperCase']()['replace'](/-/g,'_');}}class pt extends _0x391ea2{['afterInit'](){const _0x25d468=this['editor'];if(!_0x25d468['plugins']['has']('MediaEmbedEditing'))return;const _0x49b7b6=_0x25d468['plugins']['get']('TrackChangesEditing'),_0x86746a=_0x25d468['locale'];_0x49b7b6['enableCommand']('mediaEmbed'),_0x49b7b6['descriptionFactory']['registerElementLabel']('media',_0x2dd61c=>o(_0x86746a,'ELEMENT_MEDIA',_0x2dd61c)),_0x25d468['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x154664,{writer:_0x360c9c,options:_0x5b56fe})=>{if(_0x5b56fe['showSuggestionHighlights'])return _0x360c9c['createEmptyElement']('div');},'converterPriority':'high'}),_0x25d468['data']['downcastDispatcher']['on']('attribute:url:media',(_0x5b17d1,_0x3d6105,_0x1be310)=>{_0x1be310['options']['showSuggestionHighlights']&&_0x5b17d1['stop']();},{'priority':'high'});}}class kt extends _0x391ea2{['afterInit'](){const _0x11b098=this['editor'];_0x11b098['plugins']['has']('MentionEditing')&&_0x11b098['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x391ea2{['afterInit'](){const _0x2e2015=this['editor'];if(!_0x2e2015['plugins']['has']('MergeFieldsEditing'))return;const _0x48af81=_0x2e2015['plugins']['get']('TrackChangesEditing'),_0x155362=_0x2e2015['locale'];_0x48af81['enableCommand']('insertMergeField'),_0x48af81['enableCommand']('insertMergeFieldBlock'),_0x48af81['enableCommand']('insertMergeFieldImage'),_0x48af81['descriptionFactory']['registerElementLabel']('mergeField',_0x5f07e2=>o(_0x155362,'ELEMENT_MERGE_FIELD',_0x5f07e2)),_0x48af81['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x37df13=>o(_0x155362,'ELEMENT_MERGE_FIELD',_0x37df13)),_0x48af81['descriptionFactory']['registerDescriptionCallback'](_0x35bb9f=>{if('insertion'!=_0x35bb9f['type']&&'deletion'!=_0x35bb9f['type'])return;const _0x38054f=_0x35bb9f['getContainedElement']();if(null==_0x38054f)return;const _0x113f93=_0x2e2015['plugins']['get']('MergeFieldsEditing');let _0x2b4a15;switch(_0x113f93['getMergeFieldType'](_0x38054f)){case null:return;case'image':{const _0x844701=_0x113f93['unwrapAffixes'](_0x38054f['getAttribute']('src'));_0x2b4a15=_0x113f93['getLabel'](_0x844701)||_0x844701;break;}default:{const _0x3a710a=_0x38054f['getAttribute']('id');_0x2b4a15=_0x113f93['getLabel'](_0x3a710a)||_0x3a710a;break;}}return'insertion'==_0x35bb9f['type']?{'type':'insertion','content':o(_0x155362,'*Insert:*\x20%0','\x22'+_0x2b4a15+'\x22\x20'+o(_0x155362,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x155362,'*Remove:*\x20%0','\x22'+_0x2b4a15+'\x22\x20'+o(_0x155362,'ELEMENT_MERGE_FIELD'))};});}}class bt extends _0x391ea2{['afterInit'](){const _0x506837=this['editor'],_0x13a8dc=_0x506837['plugins']['get']('TrackChangesEditing');_0x506837['plugins']['has']('MultiLevelList')&&(_0x13a8dc['enableDefaultAttributesIntegration']('multiLevelList'),_0x13a8dc['registerBlockAttribute']('listMarkerStyle'),_0x13a8dc['descriptionFactory']['registerDescriptionCallback'](_0x1a5d89=>this['handleDescriptions'](_0x1a5d89)));}['handleDescriptions'](_0x5c8b81){const _0xab00f=this['editor']['locale'],{data:_0x44ecbb}=_0x5c8b81,_0x3910a6={'type':'format','content':''};if(_0x44ecbb&&'listMarkerStyle'==_0x44ecbb['key']){if(!_0x44ecbb['oldValue'])return{'type':'format','content':o(_0xab00f,'*Set\x20format:*\x20%0',o(_0xab00f,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x44ecbb['newValue']+')'};if(!_0x44ecbb['newValue']){let _0x3ad61d=_0x5c8b81['head'];for(;_0x3ad61d;){if(_0x3ad61d['data']&&'listType'==_0x3ad61d['data']['key']&&_0x3ad61d['data']['newValue'])return _0x3910a6;_0x3ad61d=_0x3ad61d['next'];}return{'type':'format','content':o(_0xab00f,'*Remove\x20format:*\x20%0',o(_0xab00f,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x44ecbb['oldValue']+')'};}}}}class yt extends _0x391ea2{['afterInit'](){const _0x577375=this['editor'];if(!_0x577375['plugins']['has']('PageBreakEditing'))return;_0x577375['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x2c68da=_0x577375['plugins']['get']('TrackChangesEditing'),_0x299c3a=_0x577375['locale'];_0x2c68da['descriptionFactory']['registerElementLabel']('pageBreak',_0x601364=>o(_0x299c3a,'ELEMENT_PAGE_BREAK',_0x601364));}}class St extends _0x391ea2{['afterInit'](){const _0x2b0ce2=this['editor'];if(!_0x2b0ce2['plugins']['has']('Paragraph'))return;const _0x161a5c=_0x2b0ce2['locale'],_0x1cdf7c=_0x2b0ce2['plugins']['get']('TrackChangesEditing');_0x1cdf7c['descriptionFactory']['registerElementLabel']('paragraph',_0xebd4e1=>o(_0x161a5c,'ELEMENT_PARAGRAPH',_0xebd4e1)),_0x1cdf7c['enableDefaultAttributesIntegration']('paragraph'),_0x1cdf7c['enableCommand']('insertParagraph'),_0x2b0ce2['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x2b0ce2),{'priority':'highest'}),_0x2b0ce2['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2e17e9,_0x53a1c3,_0x4fd828)=>{_0x4fd828['options']['showSuggestionHighlights']&&nr(_0x2b0ce2,{'showActiveMarker':!0x1})(_0x2e17e9,_0x53a1c3,_0x4fd828);},{'priority':'highest'});const _0x4f5a66=_0x1cdf7c['descriptionFactory'];_0x4f5a66['registerDescriptionCallback'](_0x23148e=>{if('insertion'!==_0x23148e['type'])return;const {start:_0x576e74,end:_0x2d7c4f}=_0x23148e['getFirstRange']();if(!_0x576e74['isTouching'](_0x2d7c4f)||!_0x576e74['nodeAfter'])return;const _0xe88f3a=_0x2b0ce2['model']['schema'],_0x3dd609=_0x576e74['nodeAfter'];return _0xe88f3a['isBlock'](_0x3dd609)&&!_0xe88f3a['isLimit'](_0x3dd609)&&_0xe88f3a['checkChild'](_0x3dd609,'$text')?{'type':'insertion','content':o(_0x161a5c,'*Insert:*\x20%0',_0x4f5a66['getItemLabel'](_0x3dd609,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x206856=this['editor'],_0x65cc8a=_0x206856['locale'];_0x206856['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x40ecd9=>{if('formatBlock'!=_0x40ecd9['type'])return;const {data:_0x4d4583}=_0x40ecd9;return _0x4d4583&&'paragraph'==_0x4d4583['commandName']?{'type':'format','content':o(_0x65cc8a,'*Change\x20to:*\x20%0',o(_0x65cc8a,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x149012,{showActiveMarker:_0x58fd59=!0x0}={}){return(_0x36daa4,_0x5364cd,_0x1ba6f3)=>{const _0x4bdffe=_0x149012['plugins']['get']('TrackChangesEditing'),_0x553a8e=_0x5364cd['markerRange']['start'],_0x1b8c1b=_0x5364cd['markerRange']['end'],_0x5265e2=_0x149012['model']['schema'];if(!_0x553a8e['isTouching'](_0x1b8c1b)||!_0x553a8e['nodeAfter'])return;const _0x71fb40=_0x553a8e['nodeAfter'];if(_0x5265e2['isBlock'](_0x71fb40)&&!_0x5265e2['isLimit'](_0x71fb40)&&_0x5265e2['checkChild'](_0x71fb40,'$text')){if(!_0x1ba6f3['consumable']['consume'](_0x5364cd['markerRange'],_0x36daa4['name']))return;const {id:_0x17ac4e,authorId:_0x52dba8}=_0x4bdffe['_splitMarkerName'](_0x5364cd['markerName']),_0x1fec34=_0x1ba6f3['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x17ac4e,'data-author-id':_0x52dba8}),_0x251a8a=_0x1ba6f3['mapper']['toViewPosition'](_0x1b8c1b);_0x58fd59&&_0x4bdffe['activeMarkers']['includes'](_0x5364cd['markerName'])&&_0x1ba6f3['writer']['addClass']('ck-suggestion-marker--active',_0x1fec34),_0x1ba6f3['writer']['insert'](_0x251a8a,_0x1fec34),_0x1ba6f3['mapper']['bindElementToMarker'](_0x1fec34,_0x5364cd['markerName']);}};}class jt extends _0x391ea2{['afterInit'](){const _0x184631=this['editor'];_0x184631['commands']['get']('replaceSource')&&_0x184631['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class It extends _0x391ea2{['afterInit'](){const _0x1896c0=this['editor'];if(!_0x1896c0['plugins']['has']('RemoveFormatEditing'))return;_0x1896c0['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1fe3b2=this['editor'];_0x1fe3b2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x254923=>{if('formatBlock'!=_0x254923['type']&&'formatInline'!=_0x254923['type'])return;const {data:_0x59b37c}=_0x254923;return _0x59b37c&&'removeFormat'==_0x59b37c['commandName']?{'type':'format','content':o(_0x1fe3b2['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x391ea2{['afterInit'](){const _0x357889=this['editor'];if(!_0x357889['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x56f967=_0x357889['plugins']['get']('TrackChangesEditing');_0x56f967['enableCommand']('goToPreviousRestrictedEditingException'),_0x56f967['enableCommand']('goToNextRestrictedEditingException');const _0x49224e=_0x357889['plugins']['get']('RestrictedEditingModeEditing');_0x49224e['enableCommand']('trackChanges'),_0x49224e['enableCommand']('acceptSuggestion'),_0x49224e['enableCommand']('discardSuggestion'),_0x49224e['enableCommand']('acceptAllSuggestions'),_0x49224e['enableCommand']('discardAllSuggestions'),_0x49224e['enableCommand']('acceptSelectedSuggestions'),_0x49224e['enableCommand']('discardSelectedSuggestions');}}class _t extends _0x391ea2{['afterInit'](){const _0x4c659d=this['editor'];if(!_0x4c659d['plugins']['has']('ShiftEnter'))return;const _0xec9aba=_0x4c659d['plugins']['get']('TrackChangesEditing');_0xec9aba['enableCommand']('shiftEnter'),_0x4c659d['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ee(_0x4c659d),{'priority':'high'}),_0x4c659d['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ee(_0x4c659d),{'priority':'high'}),_0x4c659d['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5e927f,_0x220069,_0x627022)=>{_0x627022['options']['showSuggestionHighlights']&&Ee(_0x4c659d,{'showActiveMarker':!0x1})(_0x5e927f,_0x220069,_0x627022);}),_0xec9aba['descriptionFactory']['registerElementLabel']('softBreak',_0x4b54e1=>o(_0x4c659d['locale'],'ELEMENT_LINE_BREAK',_0x4b54e1));}}function Ee(_0x222193,{showActiveMarker:_0x57c87b=!0x0}={}){return(_0x5882e3,_0x5a69fd,_0x495671)=>{const _0x19150f=_0x222193['plugins']['get']('TrackChangesEditing');if(!_0x495671['consumable']['test'](_0x5a69fd['markerRange'],_0x5882e3['name']))return;const _0x4b5cd9=_0x222193['model'];for(const _0x320bb4 of _0x5a69fd['markerRange']['getItems']()){if(!_0x320bb4['is']('element','softBreak'))continue;const _0x2169ef='deletion'==_0x5a69fd['markerName']['split'](':')[0x1]?'merge':'split',{id:_0xcaad5b,authorId:_0x5ebd7a}=_0x19150f['_splitMarkerName'](_0x5a69fd['markerName']),_0x2ff716=_0x495671['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2169ef,'data-suggestion':_0xcaad5b,'data-author-id':_0x5ebd7a}),_0x446c8f=_0x495671['mapper']['toViewPosition'](_0x4b5cd9['createPositionBefore'](_0x320bb4));_0x57c87b&&_0x19150f['activeMarkers']['includes'](_0x5a69fd['markerName'])&&_0x495671['writer']['addClass']('ck-suggestion-marker--active',_0x2ff716),_0x495671['writer']['insert'](_0x446c8f,_0x2ff716),_0x495671['mapper']['bindElementToMarker'](_0x2ff716,_0x5a69fd['markerName']);}};}class vt extends _0x391ea2{['afterInit'](){const _0x456101=this['editor'],_0x5b47aa=_0x456101['model'],_0x2c17b0=_0x456101['locale'];if(!_0x456101['plugins']['has']('StandardEditingModeEditing'))return;const _0x490048=_0x456101['plugins']['get']('TrackChangesEditing'),_0x25f71d='restrictedEditingException',_0x42c9af=_0x456101['commands']['get'](_0x25f71d);_0x490048['enableCommand'](_0x25f71d,(_0x4117e8,_0x30d3ec={})=>{const _0x354a60=_0x5b47aa['document']['selection'];if(_0x354a60['isCollapsed'])return void _0x4117e8(_0x30d3ec);const _0x18b9b9=void 0x0!==_0x30d3ec['forceValue']?_0x30d3ec['forceValue']:!_0x42c9af['value'];_0x5b47aa['change'](()=>{const _0x53d1e6=Array['from'](_0x354a60['getRanges']());for(const _0x9d9344 of _0x53d1e6){const _0x35853f=_0x18b9b9?[_0x9d9344]:io(_0x25f71d,_0x9d9344,_0x5b47aa);for(const _0x3b35d0 of _0x35853f)_0x490048['markInlineFormat'](_0x3b35d0,{'commandName':_0x25f71d,'commandParams':[{'forceValue':_0x18b9b9}]});}});}),_0x490048['descriptionFactory']['registerDescriptionCallback'](_0x30dbec=>{if('formatBlock'!=_0x30dbec['type']&&'formatInline'!=_0x30dbec['type'])return;const {data:_0x472c6a}=_0x30dbec;return _0x472c6a&&_0x472c6a['commandName']==_0x25f71d?_0x472c6a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2c17b0,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x2c17b0,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class Ct extends _0x391ea2{['afterInit'](){const _0x265b86=this['editor'];if(!_0x265b86['plugins']['has']('Style')||!_0x265b86['plugins']['has']('DataSchema'))return;const _0x2e499b=_0x265b86['plugins']['get']('TrackChangesEditing'),_0xa4e2e8=_0x265b86['locale'],_0x782403=_0x265b86['config']['get']('style')||{},_0x2aa698=_0x265b86['plugins']['get']('GeneralHtmlSupport'),_0xe4ea95=_0x265b86['plugins']['get']('StyleUtils')['normalizeConfig'](_0x265b86['plugins']['get']('DataSchema'),_0x782403['definitions']);_0x2e499b['enableDefaultAttributesIntegration']('style');const _0x270d59=new Set();for(const _0xdae96 of _0xe4ea95['block']){const _0xa0866f=_0x2aa698['getGhsAttributeNameForElement'](_0xdae96['element']);_0x270d59['add'](_0xa0866f);}const _0x586ba2=new Set();for(const _0xc1989 of _0xe4ea95['inline']){const _0x492f1c=_0x2aa698['getGhsAttributeNameForElement'](_0xc1989['element']);_0x586ba2['add'](_0x492f1c);for(const _0x711ec6 of _0xc1989['ghsAttributes'])_0x586ba2['add'](_0x711ec6);}for(const _0x1a092b of _0x270d59)_0x2e499b['registerBlockAttribute'](_0x1a092b),_0x2e499b['descriptionFactory']['registerAttributeLabel'](_0x1a092b,o(_0xa4e2e8,'FORMAT_STYLE'));for(const _0x4e5dde of _0x586ba2)_0x2e499b['registerInlineAttribute'](_0x4e5dde),_0x2e499b['descriptionFactory']['registerAttributeLabel'](_0x4e5dde,o(_0xa4e2e8,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x22dcdd=this['editor'],_0x2360cd=_0x22dcdd['locale'];_0x22dcdd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x406974=>{if('formatBlock'!=_0x406974['type']&&'formatInline'!=_0x406974['type'])return;const {data:_0x28dd1c}=_0x406974;return _0x28dd1c&&'style'===_0x28dd1c['commandName']?_0x28dd1c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2360cd,'*Set\x20format:*\x20%0',_0x28dd1c['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x2360cd,'*Remove\x20format:*\x20%0',_0x28dd1c['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class $t extends _0x391ea2{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x2f34bd){super(_0x2f34bd),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x51918c=this['editor'],_0x355a14=_0x51918c['model']['document']['selection'];if(!_0x51918c['plugins']['has']('TableEditing'))return;const _0x362cb7=_0x51918c['locale'],_0x389138=_0x51918c['plugins']['get']('TrackChangesEditing'),_0x5430af=_0x51918c['plugins']['get']('TableUtils');_0x389138['descriptionFactory']['registerElementLabel']('table',_0x3e2b5d=>o(_0x362cb7,'ELEMENT_TABLE',_0x3e2b5d)),this['_setupColumnsRowsFixing'](),_0x389138['enableCommand']('insertTable'),_0x389138['enableCommand']('selectTableRow'),_0x389138['enableCommand']('selectTableColumn');for(const _0x5c78bb of['insertTableRowAbove','insertTableRowBelow']){const _0x4d501a=_0x51918c['commands']['get'](_0x5c78bb);_0x389138['enableCommand'](_0x5c78bb,_0x4a971e=>{_0x51918c['model']['change'](_0x31160a=>{_0x4a971e();const _0x2deeff='above'===_0x4d501a['order'],_0x2c38bd=_0x5430af['getSelectionAffectedTableCells'](_0x355a14),_0x31d9a9=_0x5430af['getRowIndexes'](_0x2c38bd),_0x325a7c=_0x2deeff?_0x31d9a9['first']-0x1:_0x31d9a9['last']+0x1,_0x474ea9=_0x2c38bd[0x0]['findAncestor']('table'),_0x48226e=_0x5430af['createTableWalker'](_0x474ea9,{'startRow':_0x325a7c,'endRow':_0x325a7c}),_0x2058fe=Array['from'](_0x48226e)['map'](_0x99c5be=>_0x31160a['createRangeOn'](_0x99c5be['cell']));_0x389138['markMultiRangeInsertion'](_0x2058fe,'tableRow');});});}for(const _0x3eb410 of['insertTableColumnLeft','insertTableColumnRight']){const _0x47e2ae=_0x51918c['commands']['get'](_0x3eb410);_0x389138['enableCommand'](_0x3eb410,_0x1dc228=>{_0x51918c['model']['change'](_0x177acf=>{_0x1dc228();const _0x20b6da='left'===_0x47e2ae['order'],_0x2a1bdb=_0x5430af['getSelectionAffectedTableCells'](_0x355a14),_0x25a617=_0x5430af['getColumnIndexes'](_0x2a1bdb),_0xabe602=_0x20b6da?_0x25a617['first']-0x1:_0x25a617['last']+0x1,_0x1d6e5e=_0x2a1bdb[0x0]['findAncestor']('table'),_0x574cfa=_0x5430af['createTableWalker'](_0x1d6e5e,{'startRow':0x0,'column':_0xabe602,'includeAllSlots':!0x1}),_0x20fd59=Array['from'](_0x574cfa)['map'](_0x436314=>_0x177acf['createRangeOn'](_0x436314['cell']));_0x389138['markMultiRangeInsertion'](_0x20fd59,'tableColumn');});});}for(const _0x4b64c2 of['removeTableRow','removeTableColumn']){const _0x4b49fa=_0x4b64c2['substr'](0xb),_0x33fd0f=_0x4b49fa['toLowerCase'](),_0x231b36=_0x33fd0f['substr'](0x0,0x3)+'span',_0x345212='table'+_0x4b49fa,_0x3dbfb8='min'+_0x4b49fa,_0x1bd911='max'+_0x4b49fa;_0x389138['enableCommand'](_0x4b64c2,()=>{_0x51918c['model']['change'](_0x382338=>{const _0x1f3201=_0x5430af['getSelectionAffectedTableCells'](_0x355a14),_0x4c5d37=_0x1f3201[0x0]['findAncestor']('table');let _0x57383a;if('removeTableRow'==_0x4b64c2){const _0x50bf00=_0x5430af['getRowIndexes'](_0x1f3201);_0x57383a={'startRow':_0x50bf00['first'],'endRow':_0x50bf00['last'],'includeAllSlots':!0x0};}else{const _0x3a4231=_0x5430af['getColumnIndexes'](_0x1f3201);_0x57383a={'startColumn':_0x3a4231['first'],'endColumn':_0x3a4231['last'],'includeAllSlots':!0x0};}const _0x34977a=_0x5430af['createTableWalker'](_0x4c5d37,_0x57383a),_0x3e97b1=Array['from'](_0x34977a)['map'](({cell:_0x130098})=>_0x130098),_0x1faca9=We(_0x3e97b1['filter'](_0x5af150=>_0x5af150['hasAttribute'](_0x231b36))),_0xa91152=We(_0x3e97b1['filter'](_0x34acef=>!_0x34acef['hasAttribute'](_0x231b36)))['map'](_0x8f61b6=>_0x382338['createRangeOn'](_0x8f61b6)),_0x295b7d=_0x389138['markMultiRangeDeletion'](_0xa91152,_0x345212);if(_0x295b7d&&('tableRow'==_0x295b7d['subType']||'tableColumn'==_0x295b7d['subType'])){const _0x456e6a=this['_getSuggestionCoords'](_0x295b7d);for(const _0x3a8a03 of _0x1faca9){const _0x2bea71=_0x382338['createRangeOn'](_0x3a8a03),_0x1e5884=_0x5430af['getCellLocation'](_0x3a8a03),_0x41a7a4=_0x3a8a03['getAttribute'](_0x231b36)-0x1,_0x119769=_0x456e6a[_0x3dbfb8],_0x5ef759=_0x456e6a[_0x1bd911];_0x119769<=_0x1e5884[_0x33fd0f]&&_0x1e5884[_0x33fd0f]+_0x41a7a4<=_0x5ef759&&_0x295b7d['addRange'](_0x2bea71);}}});});}function _0x21cae1(_0x27c3ce){const _0xa27db7=Array['from'](_0x355a14['getRanges']())['map'](_0x647bf1=>_0x4c47d7['fromRange'](_0x647bf1));_0x51918c['model']['change'](_0x2c6d50=>{const _0xe09afb=_0x2c6d50['batch'];_0x27c3ce=_0x27c3ce['filter'](_0x2f5ef0=>'$graveyard'!=_0x2f5ef0['root']['rootName']),_0x2c6d50['setSelection'](_0x27c3ce),_0x51918c['commands']['get']('removeTableRow')['refresh'](),_0x51918c['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x51918c['model']['enqueueChange'](()=>{_0x51918c['model']['enqueueChange'](_0xe09afb,_0x189142=>{const _0x52e837=_0xa27db7['filter'](_0x2f78ec=>'$graveyard'!=_0x2f78ec['root']['rootName']);_0x52e837['length']>0x0&&_0x189142['setSelection'](_0x52e837);for(const _0x5a3151 of _0xa27db7)_0x5a3151['detach']();});});});}function _0x2f50bb(_0x47abf8){_0x51918c['model']['change'](_0x2cc451=>{const _0x3d059f=Array['from'](_0x355a14['getRanges']())['map'](_0x1433bb=>_0x4c47d7['fromRange'](_0x1433bb)),_0x2d40dc=[];for(const _0x202632 of _0x47abf8)for(const _0x32fbd3 of _0x202632['getItems']({'shallow':!0x0}))_0x2d40dc['push'](_0x32fbd3);for(const _0x168f3a of _0x2d40dc)'$graveyard'!=_0x168f3a['root']['rootName']&&(_0x2cc451['setSelection'](_0x2cc451['createPositionAt'](_0x168f3a,0x0)),_0x51918c['commands']['get']('removeTableColumn')['refresh'](),_0x51918c['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x129215=_0x3d059f['filter'](_0x184aea=>'$graveyard'!=_0x184aea['root']['rootName']);_0x129215['length']>0x0&&_0x2cc451['setSelection'](_0x129215);for(const _0x3fa214 of _0x3d059f)_0x3fa214['detach']();});}function _0x3b3972(_0x5c8417,_0x20f537){return _0x20f537['every'](_0x162584=>_0x5c8417['some'](_0x3b8681=>_0x3b8681['end']['isEqual'](_0x162584['start'])||_0x162584['end']['isEqual'](_0x3b8681['start'])));}function _0x14adf8(_0x2a4fc0,_0x588203){return!_0x2a4fc0['some'](_0x4fbf9d=>_0x588203['some'](_0x71e1a5=>_0x4fbf9d['isIntersecting'](_0x71e1a5)))&&_0x2a4fc0['some'](_0x423426=>_0x588203['some'](_0x2d8ba3=>_0x423426['end']['isTouching'](_0x2d8ba3['start'])));}_0x51918c['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x167495,_0x410912,_0xca8e76)=>{if(!_0xca8e76['options']['showSuggestionHighlights'])return;const _0x2d889a=_0x410912['item'];if(!_0x2d889a||!_0x2d889a['is']('element','tableCell'))return;const _0x23b4bb=_0xca8e76['mapper']['toViewElement'](_0x2d889a);if(_0x23b4bb){const {id:_0x422bbc,authorId:_0x9eeb8a}=_0x389138['_splitMarkerName'](_0x410912['markerName']);_0x23e323(_0x23b4bb,_0xca8e76['writer'],(_0x477341,_0x1e3361,_0x487366)=>{_0x487366['addClass'](_0x827f38(_0x1e3361['classes']),_0x477341),_0x487366['setAttribute']('data-suggestion-id',_0x422bbc,_0x477341),_0x487366['setAttribute']('data-author-id',_0x9eeb8a,_0x477341);},(_0x1afad7,_0x985bb1,_0x26a9ad)=>{_0x26a9ad['removeClass'](_0x827f38(_0x985bb1['classes']),_0x1afad7),_0x26a9ad['removeAttribute']('data-suggestion-id',_0x1afad7),_0x26a9ad['removeAttribute']('data-author-id',_0x1afad7);});}},{'priority':'highest'}),_0x389138['descriptionFactory']['registerDescriptionCallback'](_0x8342c2=>{if('insertion'!=_0x8342c2['type']&&'deletion'!=_0x8342c2['type'])return;const _0x5c661d=_0x8342c2['getContainedElement']();if(null!=_0x5c661d&&_0x5c661d['is']('element','table')){if('insertion'==_0x8342c2['type']){const _0xafd0b=_0x8342c2['getItems']()['filter'](_0x4ae019=>_0x4ae019['is']('$textProxy'))['map'](_0x9ff78d=>_0x9ff78d['data']);if(_0xafd0b['length'])return{'type':'insertion','content':o(_0x362cb7,'*Insert:*\x20%0',o(_0x362cb7,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xafd0b['join']('\x20')+'\x22'))};}if('deletion'==_0x8342c2['type']){const _0x344ba8=_0x8342c2['getItems']()['filter'](_0x3b386e=>_0x3b386e['is']('$textProxy'))['map'](_0x20f77f=>_0x20f77f['data']);if(_0x344ba8['length'])return{'type':'deletion','content':o(_0x362cb7,'*Remove:*\x20%0',o(_0x362cb7,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x344ba8['join']('\x20')+'\x22'))};}}}),_0x389138['descriptionFactory']['registerDescriptionCallback'](_0x28c121=>{if('tableRow'==_0x28c121['subType']){const _0x391bb1=_0x28c121['getItems']()['filter'](_0xa5c517=>_0xa5c517['is']('$textProxy'))['map'](_0x29599d=>_0x29599d['data']),_0x2e7d28=this['_getSuggestionCoords'](_0x28c121),_0x5b8165=_0x2e7d28['maxRow']-_0x2e7d28['minRow']+0x1;if('insertion'==_0x28c121['type'])return _0x391bb1['length']?{'type':'insertion','content':o(_0x362cb7,'*Insert:*\x20%0',o(_0x362cb7,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5b8165,'\x22'+_0x391bb1['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x362cb7,'*Insert:*\x20%0',o(_0x362cb7,'ELEMENT_TABLE_ROW',_0x5b8165))};if('deletion'==_0x28c121['type'])return _0x391bb1['length']?{'type':'deletion','content':o(_0x362cb7,'*Remove:*\x20%0',o(_0x362cb7,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5b8165,'\x22'+_0x391bb1['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x362cb7,'*Remove:*\x20%0',o(_0x362cb7,'ELEMENT_TABLE_ROW',_0x5b8165))};}if('tableColumn'==_0x28c121['subType']){const _0x5b0f3b=_0x28c121['getItems']()['filter'](_0x615ccb=>_0x615ccb['is']('$textProxy'))['map'](_0x2d38ae=>_0x2d38ae['data']),_0x14f45a=this['_getSuggestionCoords'](_0x28c121),_0xdf195c=_0x14f45a['maxColumn']-_0x14f45a['minColumn']+0x1;if('insertion'==_0x28c121['type'])return _0x5b0f3b['length']?{'type':'insertion','content':o(_0x362cb7,'*Insert:*\x20%0',o(_0x362cb7,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xdf195c,'\x22'+_0x5b0f3b['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x362cb7,'*Insert:*\x20%0',o(_0x362cb7,'ELEMENT_TABLE_COLUMN',_0xdf195c))};if('deletion'==_0x28c121['type'])return _0x5b0f3b['length']?{'type':'deletion','content':o(_0x362cb7,'*Remove:*\x20%0',o(_0x362cb7,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xdf195c,'\x22'+_0x5b0f3b['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x362cb7,'*Remove:*\x20%0',o(_0x362cb7,'ELEMENT_TABLE_COLUMN',_0xdf195c))};}}),_0x389138['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x21cae1),_0x389138['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x21cae1),_0x389138['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x2f50bb),_0x389138['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x2f50bb),_0x389138['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x3b3972),_0x389138['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x3b3972),_0x389138['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x14adf8),_0x389138['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x14adf8);}['_acceptFormatSuggestionCallbackFactory'](){const _0x303b2d=this['editor'],_0x572d1c=_0x303b2d['model']['document']['selection'];return(_0x2c9bcb,_0xb612b6)=>{_0x303b2d['model']['change'](_0xd3b5f4=>{const {commandName:_0x56eb28,commandParams:_0x2e77dd}=_0xb612b6;let _0x1f501e=_0x2c9bcb[0x0]['end']['nodeBefore'];_0x2e77dd&&_0x2e77dd[0x0]&&!0x1===_0x2e77dd[0x0]['forceValue']&&(_0x1f501e=_0x2c9bcb[0x0]['start']['nodeAfter']);const _0x32eba3=_0xd3b5f4['createRangeIn'](_0x1f501e);if('$graveyard'==_0x32eba3['root']['rootName'])return;const _0x219c50=Array['from'](_0x572d1c['getRanges']())['map'](_0x15564a=>_0x4c47d7['fromRange'](_0x15564a));_0xd3b5f4['setSelection'](_0x32eba3),_0x303b2d['commands']['get'](_0x56eb28)['refresh'](),_0x2e77dd['push']({'forceDefaultExecution':!0x0}),_0x303b2d['execute'](_0x56eb28,..._0x2e77dd);const _0x3ae4ea=_0x219c50['filter'](_0x3b8420=>'$graveyard'!=_0x3b8420['root']['rootName']);_0x3ae4ea['length']>0x0&&_0xd3b5f4['setSelection'](_0x3ae4ea);for(const _0x1e54f5 of _0x219c50)_0x1e54f5['detach']();});};}['_getCoordsForCells'](_0x573c3a){const _0xb09c11=this['editor']['plugins']['get']('TableUtils');let _0xabe576=Number['MAX_SAFE_INTEGER'],_0x42b4b1=Number['MIN_SAFE_INTEGER'],_0x267aa0=Number['MAX_SAFE_INTEGER'],_0x133f29=Number['MIN_SAFE_INTEGER'];for(const _0x390364 of _0x573c3a){if('$graveyard'==_0x390364['root']['rootName'])continue;const {row:_0x3ca3f6,column:_0x7ab787}=_0xb09c11['getCellLocation'](_0x390364),_0x10279c=_0x390364['hasAttribute']('rowspan')?_0x390364['getAttribute']('rowspan')-0x1:0x0,_0x2db91f=_0x390364['hasAttribute']('colspan')?_0x390364['getAttribute']('colspan')-0x1:0x0;_0xabe576=_0x3ca3f6<_0xabe576?_0x3ca3f6:_0xabe576,_0x42b4b1=_0x3ca3f6+_0x10279c>_0x42b4b1?_0x3ca3f6+_0x10279c:_0x42b4b1,_0x267aa0=_0x7ab787<_0x267aa0?_0x7ab787:_0x267aa0,_0x133f29=_0x7ab787+_0x2db91f>_0x133f29?_0x7ab787+_0x2db91f:_0x133f29;}return{'minRow':_0xabe576,'maxRow':_0x42b4b1,'minColumn':_0x267aa0,'maxColumn':_0x133f29};}['_setupColumnsRowsFixing'](){const _0x1caaad=this['editor'],_0x198d0a=_0x1caaad['plugins']['get']('TrackChangesEditing'),_0x5399e3=_0x1caaad['plugins']['get']('TableUtils');_0x1caaad['model']['document']['on']('change:data',()=>{const _0x48acc4=Array['from'](_0x1caaad['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2bfda5,data:_0x7161d}of _0x48acc4){const {group:_0x1b0135,id:_0x3c7e9f,subType:_0x487c49}=_0x198d0a['_splitMarkerName'](_0x2bfda5);if('suggestion'!=_0x1b0135)continue;if(null!=_0x7161d['oldRange'])continue;const _0x1e05e4=_0x198d0a['getSuggestion'](_0x3c7e9f);this['_tablePostFixingSubtypes']['includes'](_0x487c49)&&this['_tableSuggestions']['add'](_0x1e05e4);}},{'priority':'low'});const _0x5ee0da=(_0x2fa341,_0x58b23e)=>{let _0x1616f4=!0x1;const _0x27a3c3=_0x58b23e['createRangeOn'](_0x2fa341),_0x1c8d73=_0x2fa341['findAncestor']('table'),_0x14e2cf=_0x5399e3['getCellLocation'](_0x2fa341);for(const _0x546d9e of this['_tableSuggestions']){const _0x493560=_0x546d9e['subType'],_0x3b468e=_0x493560['startsWith']('tablePaste'),_0x266ece=_0x493560['substr'](_0x3b468e?0xa:0x5),_0x3ed6bf=_0x266ece['toLowerCase'](),_0x261304=_0x3ed6bf['substr'](0x0,0x3)+'span',_0x38f324='min'+_0x266ece,_0x30776f='max'+_0x266ece;if(!_0x546d9e['isInContent'])continue;if(_0x1c8d73!=_0x546d9e['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x546d9e['isIntersectingWithRange'](_0x27a3c3))continue;const _0xbcbce5=_0x2fa341['hasAttribute'](_0x261304)?_0x2fa341['getAttribute'](_0x261304)-0x1:0x0,_0x102f35=this['_getSuggestionCoords'](_0x546d9e),_0x1cff4c=_0x102f35[_0x38f324],_0x18228e=_0x102f35[_0x30776f];_0x1cff4c<=_0x14e2cf[_0x3ed6bf]&&_0x14e2cf[_0x3ed6bf]+_0xbcbce5<=_0x18228e&&(_0x546d9e['addRange'](_0x27a3c3),_0x1616f4=!0x0);}return _0x1616f4;};_0x1caaad['model']['document']['registerPostFixer'](_0x1f244d=>{let _0x3d40f1=!0x1;for(const _0x34b60e of _0x1caaad['model']['document']['differ']['getChanges']())if('insert'==_0x34b60e['type']){if('tableRow'==_0x34b60e['name']){for(const _0x916ab7 of _0x34b60e['position']['nodeAfter']['getChildren']())_0x3d40f1=_0x3d40f1||_0x5ee0da(_0x916ab7,_0x1f244d);}else'tableCell'==_0x34b60e['name']&&(_0x3d40f1=_0x3d40f1||_0x5ee0da(_0x34b60e['position']['nodeAfter'],_0x1f244d));}return _0x3d40f1;});}['_getSuggestionCoords'](_0x3c3e7c){return this['_getCoordsForCells'](_0x3c3e7c['getRanges']()['map'](_0xe00de8=>_0xe00de8['start']['nodeAfter']));}}function We(_0x30c36c){return Array['from'](new Set(_0x30c36c)['values']());}class Nt extends _0x391ea2{static get['requires'](){return[$t];}['afterInit'](){const _0x4f71d5=this['editor'],_0x799af6=_0x4f71d5['model']['document']['selection'],_0x267fc5=_0x4f71d5['locale'];if(!_0x4f71d5['plugins']['has']('TableEditing'))return;const _0x12285e=_0x4f71d5['plugins']['get']('TrackChangesEditing'),_0x5cea8a=_0x4f71d5['plugins']['get']('TableUtils'),_0x5738ba=_0x4f71d5['plugins']['get']($t);_0x5738ba['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x12285e['enableCommand']('mergeTableCells',()=>{const _0x401f30=_0x5cea8a['getSelectionAffectedTableCells'](_0x4f71d5['model']['document']['selection']);_0x4f71d5['model']['change'](()=>{_0x12285e['markMultiRangeBlockFormat'](_0x401f30,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x4f71d5['commands']['get']('mergeTableCells')['on']('execute',(_0x1410f5,_0x468eff)=>{_0x4f71d5['commands']['get']('trackChanges')['value']&&(_0x468eff['length']>0x0&&_0x468eff[_0x468eff['length']-0x1]&&_0x468eff[_0x468eff['length']-0x1]['forceDefaultExecution']||_0x12285e['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x1410f5['stop']());},{'priority':'highest'});for(const _0x59cbd7 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x4cf505=_0x4f71d5['commands']['get'](_0x59cbd7);_0x12285e['enableCommand'](_0x59cbd7,()=>{const _0x153427=_0x4f71d5['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1d7105=>_0x1d7105['is']('element','tableCell')),_0x3874c6=_0x4cf505['value'];_0x4f71d5['model']['change'](()=>{_0x12285e['markMultiRangeBlockFormat']([_0x153427,_0x3874c6],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x170d8a of['splitTableCellVertically','splitTableCellHorizontally']){const _0x14939b=_0x4f71d5['commands']['get'](_0x170d8a);_0x12285e['enableCommand'](_0x170d8a,()=>{const _0x49b5c4=_0x5cea8a['getSelectionAffectedTableCells'](_0x4f71d5['model']['document']['selection'])[0x0],_0x276095=_0x49b5c4['findAncestor']('table'),{column:_0x8b6921,row:_0x312d79}=_0x5cea8a['getCellLocation'](_0x49b5c4);let _0x10d74f=[];if('horizontally'==_0x14939b['direction']){const _0x572d3b=_0x5cea8a['createTableWalker'](_0x276095,{'startRow':_0x312d79,'endRow':_0x312d79,'includeAllSlots':!0x0});_0x10d74f=Array['from'](_0x572d3b)['map'](_0x1d0976=>_0x1d0976['cell']);}else{const _0x269f8e=_0x5cea8a['createTableWalker'](_0x276095,{'column':_0x8b6921,'includeAllSlots':!0x0});_0x10d74f=Array['from'](_0x269f8e)['map'](_0x59923d=>_0x59923d['cell']);}_0x4f71d5['model']['change'](_0x5848c2=>{_0x12285e['markBlockFormat'](_0x5848c2['createRangeOn'](_0x49b5c4),{'commandName':_0x170d8a,'commandParams':[]},_0x10d74f,_0x170d8a);});});}_0x12285e['descriptionFactory']['registerDescriptionCallback'](_0x3cddfb=>{if('formatBlock'!=_0x3cddfb['type']&&'formatInline'!=_0x3cddfb['type'])return;const {data:_0x30f90b}=_0x3cddfb;return _0x30f90b&&'mergeTableCells'==_0x30f90b['commandName']?{'type':'format','content':o(_0x267fc5,'*Merge\x20cells*')}:void 0x0;}),_0x12285e['descriptionFactory']['registerDescriptionCallback'](_0x4a9663=>{if('formatBlock'!=_0x4a9663['type']&&'formatInline'!=_0x4a9663['type'])return;const {data:_0xeb480a}=_0x4a9663;return _0xeb480a?'splitTableCellVertically'==_0xeb480a['commandName']?{'type':'format','content':o(_0x267fc5,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0xeb480a['commandName']?{'type':'format','content':o(_0x267fc5,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x34704c=_0x5738ba['_acceptFormatSuggestionCallbackFactory']();for(const _0x1b6272 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x12285e['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1b6272,'accept',_0x34704c);for(const _0x2dda2b of['splitTableCellVertically','splitTableCellHorizontally'])_0x12285e['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2dda2b,'accept',_0x34704c);_0x12285e['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x16e82e=>{_0x4f71d5['model']['change'](_0x447374=>{const _0x1c746b=Array['from'](_0x799af6['getRanges']())['map'](_0x24bbb2=>_0x4c47d7['fromRange'](_0x24bbb2));_0x447374['setSelection'](_0x16e82e),_0x4f71d5['commands']['get']('mergeTableCells')['refresh'](),_0x4f71d5['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x35c4f2=_0x1c746b['filter'](_0x5ed179=>'$graveyard'!=_0x5ed179['root']['rootName']);_0x35c4f2['length']>0x0&&_0x447374['setSelection'](_0x35c4f2);for(const _0x3dd910 of _0x1c746b)_0x3dd910['detach']();});});for(const _0x1b7ed3 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x14200e=_0x4f71d5['commands']['get'](_0x1b7ed3);_0x14200e['on']('set:isEnabled',(_0x16dc71,_0x31845c,_0x4c76da)=>{if(_0x4c76da){const _0x15e6b7=_0x4f71d5['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2a6b1c=>_0x2a6b1c['is']('element','tableCell'));this['_areMergableCells'](_0x14200e['value'],_0x15e6b7)||(_0x16dc71['return']=!0x1,_0x16dc71['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x4ab134=this['editor']['commands']['get']('mergeTableCells'),_0x11e03f=this['editor']['plugins']['get']('TableUtils');if(!_0x4ab134['isEnabled'])return!0x1;const _0x32bf39=_0x11e03f['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x49ed9b of _0x32bf39)for(const _0x4ccf1b of _0x32bf39)if(_0x49ed9b!=_0x4ccf1b&&!this['_areMergableCells'](_0x49ed9b,_0x4ccf1b))return!0x1;return!0x0;}['_areMergableCells'](_0x40dbf9,_0x484bfd){const _0x3da4b9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x371f96=this['editor']['model']['createRangeOn'](_0x40dbf9),_0x41b624=this['editor']['model']['createRangeOn'](_0x484bfd),_0xdd855=new Set(),_0x589e24=new Set();for(const _0x207a00 of _0x3da4b9['getSuggestions']())if(('insertion'==_0x207a00['type']||'deletion'==_0x207a00['type']||'mergeTableCells'==_0x207a00['subType'])&&_0x207a00['isInContent']){for(const _0x4e2cd3 of _0x207a00['getRanges']())_0x4e2cd3['containsRange'](_0x371f96,!0x0)&&_0xdd855['add'](_0x207a00['type']+':'+_0x207a00['author']['id']),_0x4e2cd3['containsRange'](_0x41b624,!0x0)&&_0x589e24['add'](_0x207a00['type']+':'+_0x207a00['author']['id']);}if(_0xdd855['size']!=_0x589e24['size'])return!0x1;for(const _0x5c13bb of _0xdd855)if(!_0x589e24['has'](_0x5c13bb))return!0x1;return!0x0;}}class Dt extends _0x391ea2{static get['requires'](){return[$t];}['afterInit'](){const _0xae2323=this['editor'];if(!_0xae2323['plugins']['has']('TableEditing'))return;const _0x1b3d1b=_0xae2323['locale'],_0x2daf33=_0xae2323['plugins']['get']('TrackChangesEditing');_0x2daf33['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x2daf33['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x2daf33['registerBlockAttribute']('headingRows'),_0x2daf33['registerBlockAttribute']('headingColumns'),_0x2daf33['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x1b3d1b,'FORMAT_HEADER_ROW')),_0x2daf33['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x1b3d1b,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x32ad78=this['editor']['plugins']['get']('TrackChangesEditing'),_0x577088=this['editor']['plugins']['get']('TableUtils'),_0x55a6e4=this['editor']['plugins']['get']($t)['_acceptFormatSuggestionCallbackFactory']();function _0x425c5d({showActiveMarker:_0x93cca1=!0x0,setDataAttribute:_0x4704fc=!0x0}={}){return(_0x17624a,_0x408206,_0x10c395)=>{const {type:_0x998f0a,id:_0x4eb983}=_0x32ad78['_splitMarkerName'](_0x408206['markerName']);if(!_0x32ad78['hasSuggestion'](_0x4eb983))return;const _0xa0b6fe=_0x32ad78['getSuggestion'](_0x4eb983),_0x2e22f6=_0xa0b6fe['data'];if('formatBlock'!=_0xa0b6fe['type']||!_0x2e22f6||'setTableColumnHeader'!=_0x2e22f6['commandName'])return;if(_0x408206['item'])return void _0x17624a['stop']();if(!_0x10c395['consumable']['consume'](_0x408206['markerRange'],_0x17624a['name']))return;const _0x408d99=_0x408206['markerRange']['start']['nodeAfter'],_0x4884bb=_0x408206['markerRange']['end']['nodeBefore'],_0x12a38a=_0x408d99['parent']['parent'],{column:_0x60b029}=_0x577088['getCellLocation'](_0x408d99),{column:_0x473781}=_0x577088['getCellLocation'](_0x4884bb);for(let _0x2a4103=_0x60b029;_0x2a4103<=_0x473781;_0x2a4103++){const _0xcddbe7=_0x577088['createTableWalker'](_0x12a38a,{'column':_0x2a4103,'includeAllSlots':!0x1});for(const _0x664f of _0xcddbe7){const _0x35a1e6=_0x664f['cell'],_0x5495c2=_0x10c395['mapper']['toViewElement'](_0x35a1e6);_0x10c395['writer']['addClass']('ck-suggestion-marker-'+_0x998f0a,_0x5495c2),_0x4704fc&&_0x10c395['writer']['setAttribute']('data-suggestion',_0x4eb983,_0x5495c2),_0x10c395['mapper']['bindElementToMarker'](_0x5495c2,_0x408206['markerName']),_0x93cca1&&(_0x32ad78['activeMarkers']['includes'](_0x408206['markerName'])?_0x10c395['writer']['addClass']('ck-suggestion-marker--active',_0x5495c2):_0x10c395['writer']['removeClass']('ck-suggestion-marker--active',_0x5495c2));}}};}_0x32ad78['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x55a6e4),_0x32ad78['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x55a6e4),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x425c5d(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x584351,_0x222018,_0x34e614)=>{_0x34e614['options']['showSuggestionHighlights']&&_0x425c5d({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x584351,_0x222018,_0x34e614);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x2c8767,_0x4b9742,_0x94ff51)=>{const {type:_0x4a7eaa,id:_0x36274c}=_0x32ad78['_splitMarkerName'](_0x4b9742['markerName']);if(!_0x32ad78['hasSuggestion'](_0x36274c))return;const _0x23ce9b=_0x32ad78['getSuggestion'](_0x36274c),_0x1095e3=_0x23ce9b['data'];if('formatBlock'!=_0x23ce9b['type']||!_0x1095e3||'setTableColumnHeader'!=_0x1095e3['commandName'])return;const _0x311b00=_0x94ff51['mapper']['markerNameToElements'](_0x4b9742['markerName']);if(_0x311b00){for(const _0x43d3d9 of _0x311b00)_0x94ff51['writer']['removeClass']('ck-suggestion-marker-'+_0x4a7eaa,_0x43d3d9),_0x94ff51['writer']['removeClass']('ck-suggestion-marker--active',_0x43d3d9),_0x94ff51['writer']['removeAttribute']('data-suggestion',_0x43d3d9),_0x94ff51['mapper']['unbindElementFromMarkerName'](_0x43d3d9,_0x4b9742['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x6f17ef=this['editor'],_0x5578be=_0x6f17ef['locale'];function _0x10dc50(_0x501f8f){return{'type':'format','content':o(_0x5578be,'*Format:*\x20%0',_0x501f8f)};}_0x6f17ef['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x268960=>{if('formatBlock'!=_0x268960['type'])return;const {data:_0x4dd7a9}=_0x268960;if(_0x4dd7a9){if('setTableRowHeader'==_0x4dd7a9['commandName']){const _0x34e8aa=_0x4dd7a9['commandParams'][0x0]['forceValue'];return _0x10dc50(o(_0x5578be,_0x34e8aa?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x4dd7a9['commandName']){const _0x1a52db=_0x4dd7a9['commandParams'][0x0]['forceValue'];return _0x10dc50(o(_0x5578be,_0x1a52db?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Mt extends _0x391ea2{['afterInit'](){const _0x21e34d=this['editor'],_0x36b36c=_0x21e34d['locale'],_0x4b9149=_0x21e34d['plugins']['get']('TrackChangesEditing');function _0x57ac4a(_0x3b6795){return{'type':'format','content':''+o(_0x36b36c,'*Set\x20table\x20type:*\x20%0',_0x3b6795)};}_0x21e34d['plugins']['has']('TableLayout')&&(_0x4b9149['enableCommand']('insertTableLayout'),_0x4b9149['enableDefaultAttributesIntegration']('tableType'),_0x4b9149['registerBlockAttribute']('tableType'),_0x4b9149['descriptionFactory']['registerElementLabel'](_0x36f704=>_0x36f704['is']('element','table')&&'layout'===_0x36f704['getAttribute']('tableType'),_0x39ad38=>o(_0x36b36c,'ELEMENT_LAYOUT_TABLE',_0x39ad38)),_0x4b9149['descriptionFactory']['registerDescriptionCallback'](_0x1e05cc=>{const {data:_0x75d713}=_0x1e05cc;if(_0x75d713&&'tableType'==_0x75d713['key'])switch(_0x75d713['newValue']){case'layout':return _0x57ac4a(o(_0x36b36c,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x57ac4a(o(_0x36b36c,'ELEMENT_CONTENT_TABLE'));}}));}}const Oe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ue=/* #__PURE__ -- @preserve */
25
- Object['fromEntries'](Oe['map'](_0x3601ec=>[_0x3601ec,null]));class Bt extends _0x391ea2{static get['requires'](){return[$t];}['afterInit'](){const _0x55399f=this['editor'];if(!_0x55399f['plugins']['has']('TableClipboard'))return;const _0x28655a=_0x55399f['plugins']['get']('TrackChangesEditing'),_0x462c5d=_0x55399f['plugins']['get']('TableUtils'),_0x5beaaf=_0x55399f['plugins']['get']($t),_0x4669b7=_0x55399f['plugins']['get']('TableClipboard'),_0x29b4f1=_0x55399f['plugins']['get']('TableSelection'),_0x46e21f=_0x55399f['plugins']['get'](_0x267f27);_0x5beaaf['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x55399f['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x55399f['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x1f3124=null,_0x345804=!0x1;_0x46e21f['on']('contentInsertion',(_0x40d193,_0x43d89d)=>{_0x345804='paste'===_0x43d89d['method'];}),_0x55399f['model']['on']('insertContent',(_0x297fc9,_0x2a5601)=>{if(!_0x345804&&null===_0x29b4f1['getSelectedTableCells']())return;const [_0x22573a,_0x3d46c6]=_0x2a5601,_0x2737b9=_0x2a5601[_0x2a5601['length']-0x1];_0x2737b9&&_0x2737b9['forceDefaultExecution']||_0x28655a['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x38465e,_0x408423,_0x46596d,_0x20a7c6,_0x18020d){if(_0x408423&&!_0x408423['is']('documentSelection'))return!0x1;const _0x52f519=_0x18020d['getTableIfOnlyTableInContent'](_0x38465e,_0x46596d);if(!_0x52f519||!He(_0x52f519,void 0x0,_0x20a7c6))return!0x1;const _0xfd9368=_0x20a7c6['getSelectionAffectedTableCells'](_0x46596d['document']['selection']);if(!_0xfd9368['length'])return!0x1;const _0x16107a=_0xfd9368[0x0]['findAncestor']('table'),_0x314b05=_0x20a7c6['getRowIndexes'](_0xfd9368),_0x1b0ebe=_0x20a7c6['getColumnIndexes'](_0xfd9368),_0x12157c={'startRow':_0x314b05['first'],'endRow':_0x314b05['last'],'startColumn':_0x1b0ebe['first'],'endColumn':_0x1b0ebe['last']};return 0x1==_0xfd9368['length']&&(_0x12157c['endRow']+=_0x20a7c6['getRows'](_0x52f519)-0x1,_0x12157c['endColumn']+=_0x20a7c6['getColumns'](_0x52f519)-0x1),He(_0x16107a,_0x12157c,_0x20a7c6);}(_0x22573a,_0x3d46c6,_0x55399f['model'],_0x462c5d,_0x4669b7)&&(_0x297fc9['stop'](),_0x1f3124={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x55399f['model']['change'](()=>{_0x55399f['model']['insertContent'](_0x2a5601[0x0],_0x2a5601[0x1],_0x2a5601[0x2],{'forceDefaultExecution':!0x0});const _0x18d2c5=_0x337574(),{rowInsertionRanges:_0x48e02e,columnInsertionRanges:_0x2abbc5,insertionRanges:_0x24ec05,deletionRanges:_0x1f90de,cells:_0xd7d82e}=_0x1f3124;_0x48e02e['length']&&_0x28655a['markMultiRangeInsertion'](_0x48e02e,'tablePasteRow',{'tablePasteChainId':_0x18d2c5}),_0x2abbc5['length']&&_0x28655a['markMultiRangeInsertion'](_0x2abbc5,'tablePasteColumn',{'tablePasteChainId':_0x18d2c5}),_0x24ec05['length']&&(_0x28655a['markMultiRangeInsertion'](_0x24ec05,'tablePaste',{'tablePasteChainId':_0x18d2c5,'skipNestingCheck':!0x0}),_0x24ec05['forEach'](_0x4c1e5b=>_0x4c1e5b['detach']?.())),_0x1f90de['length']&&(_0x28655a['markMultiRangeDeletion'](_0x1f90de,'tablePaste',{'tablePasteChainId':_0x18d2c5,'skipNestingCheck':!0x0}),_0x1f90de['forEach'](_0x442545=>_0x442545['detach']?.()));const _0x303c31=_0x28655a['markMultiRangeBlockFormat'](_0xd7d82e['map'](({element:_0x7e6125})=>_0x7e6125),{'formatGroupId':_0x337574()},[],'tablePasteCell',{'tablePasteChainId':_0x18d2c5});if(_0x303c31){const _0x226220=_0x303c31['getMarkers'](),_0x2e242a=[];for(const {element:_0x19284c,attributes:_0xf16512}of _0xd7d82e){if(!_0xf16512)continue;const _0x508f16=_0x55399f['model']['createRangeOn'](_0x19284c),_0x4f08a5=_0x226220['find'](_0x56942a=>_0x56942a['getRange']()['isEqual'](_0x508f16));_0x4f08a5&&_0x2e242a['push']([_0x4f08a5['name'],_0xf16512]);}_0x2e242a['length']&&_0x303c31['setAttribute']('markerAttributes',Object['fromEntries'](_0x2e242a));}_0x1f3124=null;}));},{'priority':_0x36d8eb['high']+0xa}),_0x46e21f['on']('contentInsertion',()=>{_0x345804=!0x1;},{'priority':'lowest'}),_0x55399f['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3cd893,_0x3d39da)=>{const [_0x2a8e28,_0x504506,,_0x5d7983]=_0x3d39da;if(!_0x1f3124)return;_0x3cd893['stop']();const _0x311c6a=_0x2a8e28['cell'],_0x4ee0bb=_0x504506,_0x4b4215=De(_0x311c6a),_0x57172a=De(_0x4ee0bb);_0x3cd893['return']=_0x311c6a;let _0xa50eab=null,_0xe0c7e1=null;if(_0x57172a||_0x4b4215){if(_0x4b4215&&!_0x57172a){_0x5d7983['remove'](_0x311c6a['getChild'](0x0));for(const _0x2accb6 of Array['from'](_0x4ee0bb['getChildren']()))_0x5d7983['insert'](_0x2accb6,_0x311c6a,'end');const _0x2f6f6f=_0x1f3124['rowInsertionIndexes']['includes'](_0x2a8e28['row']),_0xd79b8c=_0x1f3124['columnInsertionIndexes']['includes'](_0x2a8e28['column']);_0x2f6f6f||_0xd79b8c||(_0xa50eab=_0x4c47d7['fromRange'](_0x5d7983['createRangeIn'](_0x311c6a)));}else _0x57172a&&!_0x4b4215&&(_0xe0c7e1=_0x5d7983['createRangeIn'](_0x311c6a));}else{const _0x46cb01=_0x5d7983['createElement']('tableCellSuggestion'),_0x317ab5=_0x5d7983['createElement']('tableCellSuggestion');_0x5d7983['wrap'](_0x5d7983['createRangeIn'](_0x311c6a),_0x317ab5),_0x5d7983['insert'](_0x46cb01,_0x311c6a,0x0);for(const _0x342c90 of Array['from'](_0x4ee0bb['getChildren']()))_0x5d7983['insert'](_0x342c90,_0x46cb01,'end');_0xa50eab=_0x4c47d7['fromRange'](_0x5d7983['createRangeOn'](_0x46cb01)),_0xe0c7e1=_0x4c47d7['fromRange'](_0x5d7983['createRangeOn'](_0x317ab5));}const _0x4eba9f=Array['from'](_0x4ee0bb['getAttributes']())['filter'](([_0x3f09f0])=>Oe['includes'](_0x3f09f0));_0x1f3124['cells']['push']({'element':_0x311c6a,'attributes':_0x4eba9f['length']?Object['fromEntries'](_0x4eba9f):null}),_0xa50eab&&_0x1f3124['insertionRanges']['push'](_0xa50eab),_0xe0c7e1&&_0x1f3124['deletionRanges']['push'](_0xe0c7e1);},{'priority':'high'}),_0x462c5d['on']('insertColumns',(_0x5c02e1,_0x568c76)=>{const [_0x140fab,_0x455c49={}]=_0x568c76;if(!_0x1f3124)return;const _0x1a8dfa=_0x455c49['at']||0x0,_0x85e35e=_0x455c49['columns']||0x1;_0x1f3124['columnInsertionIndexes']=new Array(_0x85e35e)['fill'](_0x1a8dfa)['map']((_0x1e3db1,_0x48e805)=>_0x1e3db1+_0x48e805);for(const {cell:_0x50a027}of _0x462c5d['createTableWalker'](_0x140fab,{'startColumn':_0x1a8dfa,'endColumn':_0x1a8dfa+_0x85e35e-0x1}))_0x1f3124['columnInsertionRanges']['push'](_0x55399f['model']['createRangeOn'](_0x50a027));},{'priority':'low'}),_0x462c5d['on']('insertRows',(_0x5e79e3,_0x81a50a)=>{const [_0x12fb85,_0x1a5ce4={}]=_0x81a50a;if(!_0x1f3124)return;const _0x48d3b0=_0x1a5ce4['at']||0x0,_0x580de0=_0x1a5ce4['rows']||0x1;_0x1f3124['rowInsertionIndexes']=new Array(_0x580de0)['fill'](_0x48d3b0)['map']((_0x270385,_0x53a40e)=>_0x270385+_0x53a40e);for(const {cell:_0x54b273}of _0x462c5d['createTableWalker'](_0x12fb85,{'startRow':_0x48d3b0,'endRow':_0x48d3b0+_0x580de0-0x1}))_0x1f3124['rowInsertionRanges']['push'](_0x55399f['model']['createRangeOn'](_0x54b273));},{'priority':'low'}),_0x28655a['descriptionFactory']['registerDescriptionCallback'](_0x360470=>{if(_0x360470['subType']&&_0x360470['subType']['startsWith']('tablePaste'))return _0x360470['previous']?{}:{'type':'insertion','content':o(_0x55399f['locale'],'*Replace\x20table\x20cells*')};});const _0x449db1=()=>!0x1;for(const _0x1db440 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x28655a['_suggestionFactory']['registerCustomCallback']('insertion',_0x1db440,'join',_0x449db1),_0x28655a['_suggestionFactory']['registerCustomCallback']('deletion',_0x1db440,'join',_0x449db1),_0x28655a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1db440,'join',_0x449db1);_0x28655a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x449db1),_0x28655a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x3e29d9,_0x516731,_0x3f6e13)=>{const _0x1a72f2=_0x3e29d9['map'](_0x458bc2=>_0x458bc2['getContainedElement']())['filter'](_0x53973b=>_0x53973b),_0x24fe3c=new Map(_0x1a72f2['map'](_0x50c137=>[_0x50c137,null]));if(_0x1f3124){for(const {element:_0x4089b1,attributes:_0x507052}of _0x1f3124['cells'])_0x507052&&_0x24fe3c['set'](_0x4089b1,_0x507052);}else{if(_0x3f6e13&&_0x3f6e13['markerAttributes'])for(const [_0x1898e5,_0x563567]of Object['entries'](_0x3f6e13['markerAttributes'])){const _0x2bb2cd=_0x55399f['model']['markers']['get'](_0x1898e5),_0x32b3d5=_0x2bb2cd?_0x2bb2cd['getRange']()['getContainedElement']():null;_0x32b3d5&&_0x24fe3c['set'](_0x32b3d5,_0x563567);}}_0x55399f['model']['change'](_0x3e87e7=>{for(const [_0xcb712a,_0x2c3262]of _0x24fe3c)_0x3e87e7['setAttributes']({...Ue,..._0x2c3262},_0xcb712a);});});const _0xce5360=(_0x25081a,_0x422ac8)=>{_0x28655a['_suggestionFactory']['registerCustomCallback'](_0x25081a,'tablePaste',_0x422ac8,(_0xc2c5ae,_0x2d0162,_0x25203a)=>{_0x55399f['model']['change'](_0x49bb72=>{const _0x19f98f=[];for(const _0x270dae of _0xc2c5ae){const _0x4d0eb8=_0x270dae['start']['nodeAfter'];_0x4d0eb8['is']('element','tableCellSuggestion')&&_0x19f98f['push'](_0x4d0eb8);}_0x28655a['_suggestionFactory']['getSuggestionCallback'](_0x25081a,null,_0x422ac8)(_0xc2c5ae,_0x2d0162,_0x25203a);for(const _0xebff5a of _0x19f98f)'$graveyard'!=_0xebff5a['root']['rootName']&&_0x49bb72['unwrap'](_0xebff5a);});});};_0xce5360('insertion','accept'),_0xce5360('insertion','discard'),_0xce5360('deletion','accept'),_0xce5360('deletion','discard'),_0x28655a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x2f2f7d=>{const _0x5b5443=_0x2f2f7d['map'](_0x4e03c0=>_0x4e03c0['getContainedElement']()),_0x4cd25b=_0x5b5443[0x0]['findAncestor']('table'),{minRow:_0x3d217b,maxRow:_0x376843}=_0x5beaaf['_getCoordsForCells'](_0x5b5443);_0x462c5d['removeRows'](_0x4cd25b,{'at':_0x3d217b,'rows':_0x376843-_0x3d217b+0x1});}),_0x28655a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x1edf80=>{const _0x5a06b3=_0x1edf80['map'](_0x24dd74=>_0x24dd74['getContainedElement']()),_0xce4eb3=_0x5a06b3[0x0]['findAncestor']('table'),{minColumn:_0x320956,maxColumn:_0x30ecbe}=_0x5beaaf['_getCoordsForCells'](_0x5a06b3);_0x462c5d['removeColumns'](_0xce4eb3,{'at':_0x320956,'columns':_0x30ecbe-_0x320956+0x1});});const _0x2ca90c=(_0x2242af,_0x20eb60)=>{if(!_0x20eb60['subType']||!_0x20eb60['subType']['startsWith']('tablePaste'))return;const _0x56f70c=_0x20eb60['attributes']['tablePasteChainId'],_0x6134a5=_0x28655a['getSuggestions']()['filter'](_0x43931d=>_0x43931d['isInContent']&&_0x43931d['attributes']&&_0x43931d['attributes']['tablePasteChainId']==_0x56f70c);_0x6134a5['length']&&_0x20eb60['getAllAdjacentSuggestions']()['length']!=_0x6134a5['length']&&_0x6134a5['reduce']((_0xab079c,_0x2a4f4a)=>(_0xab079c['next']=_0x2a4f4a,_0x2a4f4a['previous']=_0xab079c,_0x2a4f4a));};function _0x2816be(_0x1bdb73,_0x3ad5dc=!0x0){const {id:_0x45bbd1,authorId:_0x27967e}=_0x28655a['_splitMarkerName'](_0x1bdb73['markerName']),_0x3b20db=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x2e1a6f=_0x28655a['activeMarkers']['includes'](_0x1bdb73['markerName']);return _0x2e1a6f&&_0x3b20db['push']('ck-suggestion-marker--active'),{'classes':_0x3b20db,'attributes':{'data-suggestion':_0x45bbd1,'data-author-id':_0x27967e},'priority':_0x2e1a6f&&_0x3ad5dc?0xbc2:0xbb8};}_0x28655a['on']('suggestionLoaded',_0x2ca90c,{'priority':'high'}),_0x28655a['on']('suggestionUnloaded',_0x2ca90c,{'priority':'high'}),_0x55399f['model']['document']['registerPostFixer'](()=>{let _0x5ac2ca=!0x1;const _0x715a60=Array['from'](_0x55399f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4e45c6,data:_0x464bed}of _0x715a60){const {group:_0x3152e4,type:_0x36cfc1,id:_0x4b0d73}=_0x28655a['_splitMarkerName'](_0x4e45c6);if('suggestion'!=_0x3152e4||'deletion'!=_0x36cfc1||_0x464bed['oldRange'])continue;if(!_0x28655a['hasSuggestion'](_0x4b0d73))continue;const _0x3279af=_0x28655a['getSuggestion'](_0x4b0d73)['getRanges'](),_0x1ab4de=_0x55399f['plugins']['get']('Users')['me'];for(const _0xa86a97 of _0x28655a['getSuggestions']()){if(!_0xa86a97['isInContent']||_0xa86a97['author']!=_0x1ab4de)continue;if('formatBlock'!=_0xa86a97['type']||'tablePasteCell'!=_0xa86a97['subType'])continue;if(_0xa86a97['getRanges']()['every'](_0x369ee8=>_0x3279af['some'](_0x3e6677=>_0x3e6677['containsRange'](_0x369ee8,!0x0)))){for(const _0x219243 of _0xa86a97['getAllAdjacentSuggestions']())_0x219243['isInContent']&&(_0x219243['discard'](),_0x5ac2ca=!0x0);}}}return _0x5ac2ca;}),_0x55399f['model']['document']['registerPostFixer'](_0x4de97d=>{const _0x388646=_0x55399f['commands']['get']('redo');if(!_0x388646||!_0x388646['_createdBatches']['has'](_0x4de97d['batch']))return!0x1;let _0x294b98=!0x1;const _0x1a427a=_0x55399f['plugins']['get']('Users')['me'],_0x4a6d84=_0x55399f['model']['document']['differ']['getChanges'](),_0x35bdfa=Array['from'](_0x55399f['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x584ce8,data:_0x3b8e36})=>{const {group:_0x57e738,subType:_0x2676ba,authorId:_0x57b2ec}=_0x28655a['_splitMarkerName'](_0x584ce8);return'suggestion'==_0x57e738&&'tablePaste'==_0x2676ba&&_0x57b2ec==_0x1a427a['id']&&!_0x3b8e36['oldRange'];});for(const _0x516c12 of _0x4a6d84){if('insert'!=_0x516c12['type']||'tableCellSuggestion'!=_0x516c12['name']||0x1!=_0x516c12['length'])continue;const _0x312fc9=_0x4de97d['createRange'](_0x516c12['position'],_0x516c12['position']['getShiftedBy'](0x1));if(!_0x35bdfa['find'](({data:_0x1311b6})=>_0x1311b6['newRange']['isEqual'](_0x312fc9))){for(const {name:_0x52c62b,data:_0x536c3f}of _0x35bdfa)if(_0x312fc9['containsRange'](_0x536c3f['newRange'])){_0x4de97d['updateMarker'](_0x52c62b,{'range':_0x312fc9}),_0x294b98=!0x0;break;}}}return _0x294b98;}),_0x55399f['model']['document']['registerPostFixer'](_0x3ede7b=>{let _0x2d4daf=!0x1;const _0x22d8a0=_0x55399f['plugins']['get']('Users')['me'],_0x2e4f84=_0x28655a['getSuggestions']()['filter'](_0xf97fbf=>_0xf97fbf['isInContent']&&_0xf97fbf['author']==_0x22d8a0),_0x431371=new Set(),_0x3943b3=new Set();for(const _0x41cd91 of _0x2e4f84)if('tablePaste'==_0x41cd91['subType'])for(const _0x519bdb of _0x41cd91['getMarkers']()){const _0x4b776e=_0x519bdb['getRange']()['getContainedElement']();if(_0x4b776e){if(_0x4b776e['is']('element','tableCellSuggestion')&&De(_0x4b776e)){_0x41cd91['removeMarker'](_0x519bdb['name']),_0x431371['add'](_0x4b776e),_0x2d4daf=!0x0;const _0x8a50c5=_0x4b776e['nextSibling'],_0x41a952=_0x4b776e['previousSibling'],_0x5579e1=_0x8a50c5&&_0x8a50c5['is']('element','tableCellSuggestion'),_0x29d7cd=_0x41a952&&_0x41a952['is']('element','tableCellSuggestion');_0x5579e1&&!_0x431371['has'](_0x8a50c5)&&_0x3943b3['add'](_0x8a50c5),_0x29d7cd&&!_0x431371['has'](_0x41a952)&&_0x3943b3['add'](_0x41a952);}else _0x4b776e['is']('element','paragraph')&&_0x4b776e['isEmpty']&&(_0x41cd91['removeMarker'](_0x519bdb['name']),_0x2d4daf=!0x0);}}else{if('tablePasteCell'==_0x41cd91['subType']){if(!_0x41cd91['attributes']||!_0x41cd91['attributes']['tablePasteChainId'])continue;const _0x4ef385=_0x41cd91['attributes']['markerAttributes'];if(_0x4ef385&&Object['keys'](_0x4ef385)['length'])continue;const _0x6ff222=_0x41cd91['attributes']['tablePasteChainId'];let _0x461317=!0x0,_0x46eca2=!0x0;for(const _0x12cd78 of _0x2e4f84)if(_0x12cd78['subType']&&_0x12cd78['subType']['startsWith']('tablePaste')){if(!_0x12cd78['attributes']['tablePasteChainId']){_0x46eca2=!0x1;break;}if(_0x12cd78['id']!=_0x41cd91['id']&&_0x12cd78['attributes']['tablePasteChainId']==_0x6ff222){_0x461317=!0x1;break;}}_0x46eca2&&_0x461317&&(_0x41cd91['removeMarkers'](),_0x2d4daf=!0x0);}}for(const _0x5553ac of _0x431371)_0x3ede7b['remove'](_0x5553ac);for(const _0xe839f of _0x3943b3)_0x3ede7b['unwrap'](_0xe839f);return _0x2d4daf;}),_0x55399f['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x26b65=>_0x2816be(_0x26b65),'converterPriority':'high'}),_0x55399f['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x59e5b1,_0x10c7eb)=>_0x10c7eb['options']['showSuggestionHighlights']?_0x2816be(_0x59e5b1,!0x1):null,'converterPriority':'high'});const _0x42237d=_0x55399f['editing']['view'];this['listenTo'](_0x42237d['document'],'clipboardOutput',(_0x46765d,_0x3a7f1e)=>{const _0x39a647=[];for(const _0x5be1c3 of _0x42237d['createRangeIn'](_0x3a7f1e['content'])['getItems']())_0x5be1c3['is']('element','suggestion-td')&&_0x39a647['push'](_0x5be1c3);_0x42237d['change'](_0x44ae47=>{for(const _0x409d73 of _0x39a647)_0x44ae47['move'](_0x44ae47['createRangeIn'](_0x409d73),_0x44ae47['createPositionBefore'](_0x409d73)),_0x44ae47['remove'](_0x409d73);});});}}function De(_0x2981a3){if(_0x2981a3['isEmpty'])return!0x0;const _0x245fe4=_0x2981a3['getChild'](0x0);return _0x245fe4['is']('element','paragraph')&&_0x245fe4['isEmpty'];}function He(_0x5b26a6,_0x5e6d7d={},_0x62ab63){for(const {isAnchor:_0x2bbdf7,cellHeight:_0x59c763,cellWidth:_0x5ab647}of _0x62ab63['createTableWalker'](_0x5b26a6,{'includeAllSlots':!0x0,..._0x5e6d7d}))if(!_0x2bbdf7||0x1!=_0x59c763||0x1!=_0x5ab647)return!0x1;return!0x0;}class Tt extends _0x391ea2{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x1da331=this['editor']['plugins']['get']('TrackChangesEditing');_0x1da331['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x1da331['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x1da331['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1da331['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x1da331['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x1da331['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x57ecfe,_0x3df57b){const _0x517b17=this['editor']['plugins']['get']('TrackChangesEditing'),_0xfa9996=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x2369e8=_0x3df57b['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3589a8=_0xfa9996['getColumnGroupElement'](_0x2369e8);let _0x5e2827=_0x3589a8?_0xfa9996['getTableColumnsWidths'](_0x3589a8):null,_0x3e05f8=_0x2369e8['getAttribute']('tableWidth')||null;const _0x33ec92=_0x3df57b['tableWidth']||_0x3e05f8,_0x156c05=_0x3df57b['columnWidths']||_0x5e2827,_0x578c74=this['editor']['plugins']['get']('Users')['me'];for(const _0x8ec7d2 of _0x517b17['getSuggestions']()){const _0x2e360c=_0x8ec7d2['getContainedElement']();if('resizeTable'===_0x8ec7d2['subType']&&_0x2e360c===_0x2369e8){_0x8ec7d2['author']!==_0x578c74&&_0x8ec7d2['discard']();const _0x2fee5a=_0x8ec7d2['data']['commandParams'];_0x3e05f8=_0x2fee5a[0x0]['tableWidth'],_0x5e2827=_0x2fee5a[0x0]['columnWidths'];break;}}_0x57ecfe({'table':_0x2369e8,'tableWidth':_0x33ec92,'columnWidths':_0x156c05}),_0x517b17['markBlockFormat'](_0x2369e8,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3e05f8,'columnWidths':_0x5e2827}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x13b106){if('formatBlock'!=_0x13b106['type']&&'formatInline'!=_0x13b106['type'])return;const {data:_0x4a4a7d}=_0x13b106;if(_0x4a4a7d&&'resizeTable'===_0x4a4a7d['formatGroupId']){const _0x32362c='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x32362c)};}}}class Ot extends _0x391ea2{['afterInit'](){const _0xd3ab70=this['editor'];_0xd3ab70['plugins']['has']('Template')&&_0xd3ab70['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class xt extends _0x391ea2{['afterInit'](){const _0x4aebcb=this['editor'];if(!_0x4aebcb['commands']['get']('insertTableOfContents'))return;_0x4aebcb['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x37bc6a=_0x4aebcb['plugins']['get']('TrackChangesEditing'),_0x35739a=_0x4aebcb['locale'];_0x37bc6a['descriptionFactory']['registerElementLabel']('tableOfContents',_0x17ca6b=>o(_0x35739a,'ELEMENT_TABLE_OF_CONTENTS',_0x17ca6b));}}class Et extends _0x391ea2{['afterInit'](){const _0x561c5a=this['editor'];if(!_0x561c5a['plugins']['has']('Title'))return;const _0xc3b76d=_0x561c5a['plugins']['get']('TrackChangesEditing');_0xc3b76d['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x561c5a['locale'],'ELEMENT_TITLE')),_0x561c5a['model']['document']['registerPostFixer'](_0x45c3c0=>{let _0x6277bd=!0x1;const _0x24ccec=Array['from'](_0x561c5a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xc20a86,data:_0x107b73}of _0x24ccec){const {group:_0x43ec69}=_0xc3b76d['_splitMarkerName'](_0xc20a86);if('suggestion'!==_0x43ec69||!_0x107b73['newRange'])continue;const _0x44512d=_0x107b73['newRange'],_0x298c8b=_0x44512d['end']['nodeBefore'];if(!_0x298c8b||!_0x298c8b['is']('element','title-content'))continue;if(!_0x44512d['start']['isTouching'](_0x44512d['end']))continue;const _0x32ba67=_0x561c5a['model']['schema']['getNearestSelectionRange'](_0x44512d['end'],'forward');if(_0x32ba67&&_0x32ba67['isCollapsed']){const _0x28eeb8=_0x45c3c0['createRange'](_0x44512d['start'],_0x32ba67['start']);_0x28eeb8['isEqual'](_0x44512d)||(_0x45c3c0['updateMarker'](_0xc20a86,{'range':_0x28eeb8}),_0x6277bd=!0x0);}_0x6277bd||(_0x45c3c0['removeMarker'](_0xc20a86),_0x6277bd=!0x0);}return _0x6277bd;});}}class Rt extends _0x391ea2{['afterInit'](){const _0x5663d4=this['editor'],_0x32d5df=_0x5663d4['plugins']['get']('TrackChangesEditing');_0x5663d4['plugins']['has']('Uploadcare')&&(_0x32d5df['enableCommand']('uploadcare'),_0x5663d4['plugins']['has']('UploadcareImageEdit')&&(_0x32d5df['enableCommand']('uploadcareImageEdit'),_0x32d5df['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x32d5df['registerBlockAttribute']('uploadcareImageId'),_0x32d5df['descriptionFactory']['registerDescriptionCallback'](_0x176188=>{if('attribute'!=_0x176188['type'])return;const {data:_0x156eee}=_0x176188;return _0x156eee&&'uploadcareImageId'==_0x156eee['key']?{'type':'format','content':''}:void 0x0;})));}}class Ut extends _0x391ea2{['afterInit'](){const _0x5b7d3b=this['editor'],_0x12c153=_0x5b7d3b['plugins']['get']('TrackChangesEditing');_0x5b7d3b['plugins']['has']('UndoEditing')&&(_0x12c153['enableCommand']('undo'),_0x12c153['enableCommand']('redo'));}}class Vt extends _0x391ea2{static get['requires'](){return[$t];}['afterInit'](){const _0x54db24=this['editor'];if(!_0x54db24['plugins']['has']('TableCaptionEditing'))return;_0x54db24['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ft extends _0x391ea2{['tableProperties'];['tableCellProperties'];constructor(_0x2299fd){super(_0x2299fd),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 _0x1f81f7=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x429f52 of this['tableProperties'])_0x1f81f7['enableCommand'](_0x429f52,(_0x1748b9,_0x38b9d8)=>{const _0x1b1251=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x429f52,[_0x1b1251],this['tableProperties'],'tableProperties',_0x1748b9,_0x38b9d8);});_0x1f81f7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x1f81f7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1f81f7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x40b4dd,_0x422485)=>this['handleDiscardAction'](this['tableProperties'],_0x40b4dd,_0x422485)),_0x1f81f7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x374b28 of this['tableCellProperties'])_0x1f81f7['enableCommand'](_0x374b28,(_0x1c3f17,_0x49e03d)=>{const _0x94c94f=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x374b28,_0x94c94f,this['tableCellProperties'],'tableCellProperties',_0x1c3f17,_0x49e03d);});_0x1f81f7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x1f81f7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1f81f7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x8b57b7,_0x230f71)=>this['handleDiscardAction'](this['tableCellProperties'],_0x8b57b7,_0x230f71)),_0x1f81f7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x1f81f7['descriptionFactory']['registerDescriptionCallback'](_0x5e161e=>this['handleSuggestionDescription'](_0x5e161e)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x3a2a49,_0x3ed90d,_0x4e6d37,_0x530753,_0x4ea0f8,_0x512a51){const _0x1be0b3=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x512a51['batch'],()=>{for(const _0x130aa7 of _0x3ed90d){if(this['_getSuggestion'](_0x130aa7,_0x530753))_0x4ea0f8(_0x512a51);else{const _0x2527c4={};for(const _0x4152ca of _0x4e6d37){const _0x41b921=_0x130aa7['getAttribute'](_0x4152ca);void 0x0!==_0x41b921&&(_0x2527c4[_0x4152ca]=_0x41b921);}_0x4ea0f8(_0x512a51),_0x1be0b3['markBlockFormat'](_0x130aa7,{'commandParams':[_0x2527c4]},[],_0x530753);}}});}['handleDiscardAction'](_0x22ebc6,_0x45c09c,_0x1cd3e4){const _0x419aa3=_0x45c09c[0x0]['start']['nodeAfter'],_0x4dde0f=_0x1cd3e4['commandParams'][0x0];this['editor']['model']['change'](_0x432063=>{for(const _0x52de8b of _0x22ebc6)void 0x0!==_0x4dde0f[_0x52de8b]?_0x432063['setAttribute'](_0x52de8b,_0x4dde0f[_0x52de8b],_0x419aa3):_0x432063['removeAttribute'](_0x52de8b,_0x419aa3);});}['handleSuggestionDescription'](_0x4ccca4){if(_0x4ccca4['data'])switch(_0x4ccca4['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x14d24f,_0x2508e3){const _0x109fe5=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x5d2a8a of _0x109fe5['getSuggestions']({'skipNotAttached':!0x0})){const _0x57014d=_0x5d2a8a['getContainedElement']();if(_0x5d2a8a['subType']===_0x2508e3&&_0x57014d===_0x14d24f)return _0x5d2a8a;}return null;}['_registerTablePropertiesAttributes'](){const _0x2ea1e9=this['editor']['plugins']['get']('TrackChangesEditing'),_0xbe3097=[...this['tableProperties'],...this['tableCellProperties']];for(const _0xc3866a of _0xbe3097){const _0x53aced=_0xc3866a['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x2ea1e9['registerBlockAttribute'](_0xc3866a),_0x2ea1e9['descriptionFactory']['registerAttributeLabel'](_0xc3866a,o(this['editor']['locale'],'FORMAT_'+_0x53aced));}}}class Pt extends _0x391ea2{['afterInit'](){const _0x43737d=this['editor'];if(!_0x43737d['plugins']['has']('LineHeight'))return;const _0x5122ec=_0x43737d['plugins']['get']('TrackChangesEditing'),_0x1331f0=_0x43737d['locale'];_0x5122ec['enableDefaultAttributesIntegration']('lineHeight'),_0x5122ec['registerBlockAttribute']('lineHeight'),_0x5122ec['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x1331f0,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x391ea2{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x5616f9,_0x4fc19a,_0x371209,V,F,G,L,J,H,K,W,q,z,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,ct,ft,ht,gt,dt,mt,bt,lt,Q,Pt,X,pt,kt,wt,yt,St,jt,It,At,_t,vt,Ct,$t,Nt,Dt,Mt,Vt,Bt,Tt,xt,Ft,Ot,Et,Rt,Ut];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3a4d3f){super(_0x3a4d3f),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x137b65,_0x3c8967,_0x17f5c4,_0x1b4910)=>{this['_model']['change'](()=>{for(const _0x3cf766 of[..._0x1b4910,..._0x17f5c4])this['_model']['markers']['has'](_0x3cf766)&&_0x3a4d3f['editing']['reconvertMarker'](_0x3cf766);});}),this['descriptionFactory']=new U(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Lt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x3a4d3f['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x3a4d3f['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x3a4d3f['config']['get']('trackChanges.trackFormatChanges'),_0x3a4d3f['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x3a4d3f['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x3a4d3f,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x31e64a=this['editor'],_0x49192d=(_0x54abd3,_0x3838c8)=>{if('attribute'!=_0x54abd3)return'ck-suggestion-marker-'+_0x54abd3;const _0x2f8d72=_0x3838c8['split']('|')[0x0];return this['_isBlockAttribute'](_0x2f8d72)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x31e64a['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x5bea32=>{const {id:_0x35c82d,authorId:_0x2884ad,type:_0x52afc1,subType:_0x21b107}=this['_splitMarkerName'](_0x5bea32['markerName']),_0x4421ff=['ck-suggestion-marker',_0x49192d(_0x52afc1,_0x21b107)];let _0x166122=0xbb8;return this['activeMarkers']['includes'](_0x5bea32['markerName'])&&(_0x4421ff['push']('ck-suggestion-marker--active'),_0x166122=0xbc2),'deletion'==_0x52afc1&&(_0x166122+=0x5),{'classes':_0x4421ff,'attributes':{'data-suggestion':_0x35c82d,'data-author-id':_0x2884ad},'priority':_0x166122};}}),_0x31e64a['conversion']['for']('dataDowncast')['add'](_0xe81ba2=>{_0xe81ba2['on']('addMarker:suggestion',(_0x59534a,_0x4c2428,_0x45ca69)=>{if(!_0x45ca69['options']['showSuggestionHighlights'])return;const _0x2109fb=_0x4c2428['item'];if(!_0x2109fb)return;const _0x29c377=_0x45ca69['mapper']['toViewElement'](_0x2109fb);_0x31e64a['model']['schema']['isObject'](_0x2109fb)&&_0x29c377&&!_0x29c377['getCustomProperty']('widget')&&_0x29c377['is']('containerElement')&&_0x28f42d(_0x29c377,_0x45ca69['writer']);},{'priority':'high'});}),_0x31e64a['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x14e191,_0x28e0c0)=>{if(!_0x28e0c0['options']['showSuggestionHighlights'])return null;const {id:_0x383577,authorId:_0xb6c98d,type:_0x2211aa,subType:_0x1290de}=this['_splitMarkerName'](_0x14e191['markerName']);return{'classes':['ck-suggestion-marker',_0x49192d(_0x2211aa,_0x1290de)],'priority':0xbb8,'attributes':{'data-suggestion':_0x383577,'data-author-id':_0xb6c98d}};}});const _0x5d06d5=({showActiveMarkers:_0x76f6c0=!0x0,isAttributeSuggestion:_0x719b61=!0x1}={})=>(_0x34fb1e,_0x19c29f,_0x528000)=>{if(!_0x19c29f['item'])return;const {id:_0x1672c3,authorId:_0x42ece0,subType:_0x5e1f77}=this['_splitMarkerName'](_0x19c29f['markerName']);if(_0x719b61){const _0x368baf=se(_0x5e1f77);if(!this['_isBlockAttribute'](_0x368baf))return;}if(_0x19c29f['item']['is']('selection'))return void _0x528000['consumable']['consume'](_0x19c29f['item'],_0x34fb1e['name']);const _0x10ec6e=_0x528000['mapper']['toViewElement'](_0x19c29f['item']);if(_0x19c29f['item']['is']('element')&&_0x31e64a['model']['schema']['isBlock'](_0x19c29f['item'])&&!_0x10ec6e['getCustomProperty']('addHighlight')){_0x528000['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x10ec6e),_0x528000['writer']['setAttribute']('data-suggestion',_0x1672c3,_0x10ec6e),_0x528000['writer']['setAttribute']('data-author-id',_0x42ece0,_0x10ec6e),_0x528000['mapper']['bindElementToMarker'](_0x10ec6e,_0x19c29f['markerName']),_0x76f6c0&&(this['activeMarkers']['includes'](_0x19c29f['markerName'])?_0x528000['writer']['addClass']('ck-suggestion-marker--active',_0x10ec6e):_0x528000['writer']['removeClass']('ck-suggestion-marker--active',_0x10ec6e));for(const _0x20fad9 of _0x31e64a['model']['createRangeIn'](_0x19c29f['item'])['getItems']())_0x528000['consumable']['consume'](_0x20fad9,_0x34fb1e['name']);_0x528000['consumable']['consume'](_0x19c29f['item'],_0x34fb1e['name']);}};_0x31e64a['conversion']['for']('dataDowncast')['add'](_0x3907e7=>{_0x3907e7['on']('addMarker:suggestion:formatBlock',(_0x3b8b8f,_0x3ce127,_0x3b7ff0)=>{_0x3b7ff0['options']['showSuggestionHighlights']&&_0x5d06d5({'showActiveMarkers':!0x1})(_0x3b8b8f,_0x3ce127,_0x3b7ff0);},{'priority':'highest'});}),_0x31e64a['conversion']['for']('dataDowncast')['add'](_0x451b46=>{_0x451b46['on']('addMarker:suggestion:attribute',(_0x250abc,_0x524cbc,_0x16df5d)=>{_0x16df5d['options']['showSuggestionHighlights']&&_0x5d06d5({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x250abc,_0x524cbc,_0x16df5d);},{'priority':'highest'});}),_0x31e64a['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x4abd0f,_0x47c77f)=>{if(_0x47c77f['options']['showSuggestionHighlights']){const {id:_0x267f5d,authorId:_0x1c34d1}=this['_splitMarkerName'](_0x4abd0f);return _0x4abd0f['includes'](':split')||_0x4abd0f['includes'](':merge')?{'group':'suggestion','name':_0x4abd0f['substr'](0xb),'attributes':{'data-suggestion':_0x267f5d,'data-author-id':_0x1c34d1}}:null;}return{'group':'suggestion','name':_0x4abd0f['substr'](0xb)};}}),_0x31e64a['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x3827d9,{writer:_0x5cb302})=>{let _0x8ddb63='suggestion:'+_0x3827d9['getAttribute']('suggestion-type')+':'+_0x3827d9['getAttribute']('id');return _0x3827d9['getAttribute']('marker-count')&&(_0x8ddb63+=':'+_0x3827d9['getAttribute']('marker-count')),_0x5cb302['createElement']('$marker',{'data-name':_0x8ddb63});}}),_0x31e64a['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x31e64a['conversion']['for']('editingDowncast')['add'](_0xfb342e=>{_0xfb342e['on']('addMarker:suggestion:formatBlock',_0x5d06d5(),{'priority':'high'});}),_0x31e64a['conversion']['for']('editingDowncast')['add'](_0x797321=>{_0x797321['on']('addMarker:suggestion:attribute',_0x5d06d5({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x31e64a['conversion']['for']('editingDowncast')['add'](_0x2d9b4c=>{_0x2d9b4c['on']('removeMarker:suggestion:formatBlock',(_0x890e65,_0x2bbd44,_0x4d50e2)=>{const _0x501ebd=_0x4d50e2['mapper']['markerNameToElements'](_0x2bbd44['markerName']);if(_0x501ebd){for(const _0x2d371c of _0x501ebd)_0x2d371c['getCustomProperty']('addHighlight')||(_0x4d50e2['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2d371c),_0x4d50e2['writer']['removeAttribute']('data-suggestion',_0x2d371c),_0x4d50e2['writer']['removeAttribute']('data-author-id',_0x2d371c),_0x4d50e2['mapper']['unbindElementFromMarkerName'](_0x2d371c,_0x2bbd44['markerName']));}},{'priority':'high'});}),_0x31e64a['conversion']['for']('editingDowncast')['add'](_0x424f0b=>{_0x424f0b['on']('removeMarker:suggestion:attribute',(_0x2f1be6,_0x4ee062,_0x4d7e60)=>{const _0x7664b=_0x4d7e60['mapper']['markerNameToElements'](_0x4ee062['markerName']);if(!_0x7664b)return;const {subType:_0x2284da}=this['_splitMarkerName'](_0x4ee062['markerName']),_0x14713c=se(_0x2284da);if(this['_isBlockAttribute'](_0x14713c)){for(const _0x3af231 of _0x7664b)_0x3af231['getCustomProperty']('addHighlight')||(_0x4d7e60['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3af231),_0x4d7e60['writer']['removeAttribute']('data-suggestion',_0x3af231),_0x4d7e60['writer']['removeAttribute']('data-author-id',_0x3af231),_0x4d7e60['mapper']['unbindElementFromMarkerName'](_0x3af231,_0x4ee062['markerName']));}},{'priority':'high'});}),_0x31e64a['model']['document']['registerPostFixer'](_0x4fc041=>{let _0x1e0a0e=!0x1;const _0x29987f=Array['from'](_0x31e64a['model']['document']['differ']['getChangedMarkers']()),_0x3881e9=new Set();for(const {name:_0x393fde,data:_0x171ab0}of _0x29987f){const {group:_0xcdbf0c,type:_0x5f4e1b,subType:_0x22e953,id:_0x40d415}=this['_splitMarkerName'](_0x393fde);if('suggestion'!==_0xcdbf0c)continue;const _0x1ab0a1=_0x22e953?'suggestion:'+_0x5f4e1b+':'+_0x22e953+':'+_0x40d415:'suggestion:'+_0x5f4e1b+':'+_0x40d415,_0x22b4d5=_0x31e64a['model']['markers']['getMarkersGroup'](_0x1ab0a1),_0xc50045=_0x31e64a['model']['markers']['get'](_0x393fde),_0x4a50a7=this['_suggestions']['get'](_0x40d415);if(null!=_0x171ab0['newRange']){'formatInline'==_0x5f4e1b&&(_0x1e0a0e=_0x1e0a0e||Ht(_0x171ab0['newRange'],_0x393fde,_0x4fc041,_0x31e64a['model']['schema']));const _0x483691='attribute'==_0x5f4e1b&&this['_isBlockAttribute'](_0x22e953['split']('|')[0x0]),_0x2a59cf='attribute'==_0x5f4e1b&&this['_isInlineAttribute'](_0x22e953['split']('|')[0x0]);if(_0x171ab0['newRange']['isCollapsed']||'$graveyard'==_0x171ab0['newRange']['root']['rootName']||'formatBlock'==_0x5f4e1b&&!qt(_0x171ab0['newRange'])||_0x483691&&!qt(_0x171ab0['newRange'])||_0x2a59cf&&zt(_0x171ab0['newRange'])||'deletion'==_0x5f4e1b&&zt(_0x171ab0['newRange'])||_0xc50045&&Qt(_0xc50045,_0x22b4d5))_0x4fc041['removeMarker'](_0x393fde),_0x1e0a0e=!0x0;else{if(!_0x4a50a7||!_0x4a50a7['isInContent'])continue;if(_0x171ab0['newRange']&&_0x171ab0['oldRange']&&_0x171ab0['newRange']['isEqual'](_0x171ab0['oldRange']))continue;_0x3881e9['add'](_0x4a50a7);}}}return _0x3881e9['size']>0x0&&(_0x1e0a0e=!!this['_joinWithAdjacentSuggestions'](_0x3881e9)||_0x1e0a0e),_0x1e0a0e;}),_0x31e64a['model']['document']['registerPostFixer'](_0xc5413=>{let _0x1d8523=!0x1;for(const _0x4a1540 of _0x31e64a['model']['document']['differ']['getChanges']())if('insert'==_0x4a1540['type'])for(const _0x51086d of this['_suggestions']['values']()){if(_0x51086d['isMultiRange']||!_0x51086d['isInContent'])continue;const _0x3462c7='formatBlock'==_0x51086d['type'],_0xc35707=this['_getAttributeKey'](_0x51086d),_0x313614=_0xc35707&&this['_isBlockAttribute'](_0xc35707);if(!_0x3462c7&&!_0x313614)continue;const _0x276a9c=_0x51086d['getFirstRange']();if(_0x276a9c['start']['parent']!=_0x276a9c['end']['parent']&&!_0x276a9c['end']['isAtEnd']){const _0x34c282=_0x31e64a['model']['createPositionAt'](_0x276a9c['start']['nodeAfter'],'end'),_0x2f075b=_0x31e64a['model']['createRange'](_0x276a9c['start'],_0x34c282);_0xc5413['updateMarker'](_0x51086d['getFirstMarker'](),{'range':_0x2f075b}),_0x1d8523=!0x0;}}return _0x1d8523;}),_0x31e64a['model']['document']['registerPostFixer'](_0x33b5c1=>this['_processAttributeChanges'](_0x33b5c1)),_0x31e64a['model']['document']['registerPostFixer'](_0x461fc5=>!_0x461fc5['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x461fc5)),_0x31e64a['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x31e64a['model']['document']['on']('change:data',(_0x14b4a0,_0x287c25)=>{if(!_0x287c25['isLocal']||_0x287c25['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x696aae=_0x31e64a['model']['document']['differ']['getChanges']();if(0x0==_0x696aae['length'])return;const _0x1b4a34=[],_0x38cffa=_0x696aae['filter'](_0xa31123=>'attribute'==_0xa31123['type']),_0xdba8cc=_0x696aae['filter'](_0x873e87=>'insert'==_0x873e87['type']&&'$text'!=_0x873e87['name']);for(const _0x47a0ff of _0x38cffa)this['_isRegisteredAttribute'](_0x47a0ff['attributeKey'])&&_0x1b4a34['push']({'key':_0x47a0ff['attributeKey'],'newValue':_0x47a0ff['attributeNewValue'],'oldValue':_0x47a0ff['attributeOldValue'],'range':Yt(_0x47a0ff['range'],_0x31e64a['model'])});for(const _0x1f7d1b of _0xdba8cc){if('rename'!=_0x1f7d1b['action']&&'refresh'!=_0x1f7d1b['action'])continue;const _0x2e6ac8=Zt(_0x1f7d1b['position']['nodeAfter'],_0x31e64a['model']),_0x493b6a=_0x1f7d1b['before'];'rename'==_0x1f7d1b['action']&&_0x1b4a34['push']({'key':m,'newValue':_0x1f7d1b['name'],'oldValue':_0x493b6a['name'],'range':_0x2e6ac8});for(const [_0xe0f831,_0x2b76fe]of _0x493b6a['attributes']){if(!this['_isRegisteredAttribute'](_0xe0f831))continue;const _0x24aaeb=_0x1f7d1b['attributes']['get'](_0xe0f831);_0x2b76fe!==_0x24aaeb&&_0x1b4a34['push']({'key':_0xe0f831,'newValue':_0x24aaeb,'oldValue':_0x2b76fe,'range':_0x2e6ac8});}for(const [_0x38a767,_0x5477fa]of _0x1f7d1b['attributes'])this['_isRegisteredAttribute'](_0x38a767)&&(_0x493b6a['attributes']['has'](_0x38a767)||_0x1b4a34['push']({'key':_0x38a767,'newValue':_0x5477fa,'oldValue':null,'range':_0x2e6ac8}));}0x0!=_0x1b4a34['length']&&_0x31e64a['model']['enqueueChange'](_0x287c25,_0x334ddc=>{const _0x3d9e2d=_0x337574();for(const {range:_0x75245e,key:_0x34e13a,oldValue:_0x28fe01,newValue:_0x3c32bc}of _0x1b4a34)this['markAttributeChange'](_0x75245e,_0x34e13a,_0x28fe01,_0x3c32bc,{'groupId':_0x3d9e2d});this['_reduceExistingSuggestions'](_0x334ddc,_0x1b4a34);});},{'priority':'lowest'}),_0x31e64a['model']['markers']['on']('update:suggestion',(_0x224e8e,_0x344ae5,_0x38c429)=>{if(null==_0x38c429){const {id:_0x3d724f}=this['_splitMarkerName'](_0x344ae5['name']),_0x479378=this['_suggestions']['get'](_0x3d724f);_0x479378&&_0x479378['addMarkerName'](_0x344ae5['name']);}}),_0x31e64a['model']['document']['on']('change:data',()=>{const _0x418b3b=Array['from'](_0x31e64a['model']['document']['differ']['getChangedMarkers']())['filter'](_0x4133db=>'suggestion'===this['_splitMarkerName'](_0x4133db['name'])['group']);if(0x0===_0x418b3b['length'])return;_0x418b3b['sort']((_0x4bd4dc,_0x3c3ed1)=>{const _0x361987=_0x4bd4dc['data']['oldRange'],_0x219786=_0x3c3ed1['data']['oldRange'];return null===_0x361987&&null===_0x219786?0x0:null===_0x361987&&null!==_0x219786?-0x1:null!==_0x361987&&null===_0x219786?0x1:_0x361987['start']['isBefore'](_0x219786['start'])?-0x1:0x1;});const _0x42170d=new Set(),_0x8d68d=new Set();for(const {name:_0x5d7856,data:_0x5b924a}of _0x418b3b){const {id:_0x2a2732}=this['_splitMarkerName'](_0x5d7856);if(null===_0x5b924a['oldRange']){const _0x3eec52=this['_handleNewSuggestionMarker'](_0x5d7856);_0x8d68d['add'](_0x3eec52);}else{const _0x2cd97b=this['_suggestions']['get'](_0x2a2732);null!==_0x5b924a['newRange']||_0x2cd97b['isInContent']?(_0x42170d['add'](_0x2cd97b['head']),_0x8d68d['add'](_0x2cd97b)):this['_removeSuggestion'](_0x2cd97b);}}_0x8d68d['size']>0x0&&this['_refreshSuggestionsChain'](_0x8d68d);for(const _0x11ee67 of _0x42170d)this['fire']('suggestionChanged',_0x11ee67);}),_0x31e64a['model']['on']('applyOperation',(_0x4a1244,_0x9d1555)=>{const _0x5e358b=_0x9d1555[0x0];if(!this['_suggestions']['size'])return;if(!_0x5e358b['isDocumentOperation'])return;if(_0x5e358b['batch']['isUndo']||!_0x5e358b['batch']['isLocal'])return;let _0x21e0e5,_0x59443e;switch(_0x5e358b['type']){case'insert':_0x21e0e5=_0x31e64a['model']['createPositionAt'](_0x5e358b['position']),_0x59443e=_0x21e0e5['getShiftedBy'](_0x5e358b['howMany']);break;case'split':_0x21e0e5=_0x31e64a['model']['createPositionAt'](_0x5e358b['splitPosition']),_0x59443e=_0x31e64a['model']['createPositionAt'](_0x5e358b['moveTargetPosition']);break;case'move':_0x21e0e5=_0x31e64a['model']['createPositionAt'](_0x5e358b['targetPosition']),_0x59443e=_0x21e0e5['getShiftedBy'](_0x5e358b['howMany']);break;default:return;}const _0x492bb3=_0x31e64a['model']['createRange'](_0x21e0e5,_0x59443e);_0x31e64a['model']['change'](()=>{for(const {suggestion:_0x8a3102,meta:_0xcec1cf}of this['_findSuggestions'](_0x492bb3)){if(_0x8a3102['isMultiRange'])continue;if('formatInline'==_0x8a3102['type'])continue;const _0x357295=this['_getAttributeKey'](_0x8a3102);if(_0x357295&&this['_isBlockAttribute'](_0x357295)&&'split'!=_0x5e358b['type'])continue;const _0x529536=_0x8a3102['data']&&_0x8a3102['data']['multipleBlocks'];('formatBlock'!=_0x8a3102['type']||'split'==_0x5e358b['type']&&!_0x529536)&&(_0xcec1cf['containsRangeInObject']||'insertion'==_0x8a3102['type']&&_0xcec1cf['isOwn']||_0x8a3102['getFirstRange']()['containsRange'](_0x492bb3)&&this['_breakSuggestionMarker'](_0x8a3102,_0x21e0e5,_0x59443e));}});},{'priority':'lowest'}),_0x31e64a['model']['on']('deleteContent',(_0x4112b3,_0x5dde85)=>{const _0x2338e6=_0x5dde85[0x0],_0x27d009=_0x5dde85[0x1];if(_0x27d009&&_0x27d009['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x2338e6['isCollapsed'])return;const _0x483e6a=_0x31e64a['model']['schema'],{start:_0x49072d,end:_0x3586be}=_0x2338e6['getFirstRange'](),_0x9c9d71=_0x49072d['nodeAfter']&&_0x483e6a['isLimit'](_0x49072d['nodeAfter'])?null:_0x483e6a['getNearestSelectionRange'](_0x49072d,'forward'),_0x3ac76b=_0x3586be['nodeBefore']&&_0x483e6a['isLimit'](_0x3586be['nodeBefore'])?null:_0x483e6a['getNearestSelectionRange'](_0x3586be,'backward'),_0x324d1a=_0x31e64a['model']['createRange'](_0x9c9d71?_0x9c9d71['start']:_0x49072d,_0x3ac76b?_0x3ac76b['end']:_0x3586be);_0x31e64a['model']['change'](_0x710505=>{this['markDeletion'](_0x324d1a);const _0x2e8efb=_0x31e64a['model']['schema']['getNearestSelectionRange'](_0x324d1a['start']);_0x2338e6['is']('documentSelection')?_0x710505['setSelection'](_0x2e8efb):_0x2338e6['setTo'](_0x2e8efb);}),_0x4112b3['stop']();},{'priority':_0x36d8eb['normal']+0xa}),_0x31e64a['model']['on']('insertContent',(_0x134682,_0x3ead57)=>{const _0x138fe9=_0x3ead57[_0x3ead57['length']-0x1];_0x138fe9&&_0x138fe9['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x31e64a['model']['change'](()=>{let _0x348e4d=_0x31e64a['model']['insertContent'](_0x3ead57[0x0],_0x3ead57[0x1],_0x3ead57[0x2],{'forceDefaultExecution':!0x0});if(!_0x348e4d)return;_0x134682['return']=_0x348e4d['clone']();const _0x26ac12=_0x348e4d['end']['nodeBefore'],_0x5f20d9=_0x31e64a['model']['schema'];_0x26ac12&&_0x5f20d9['isBlock'](_0x26ac12)&&!_0x5f20d9['isObject'](_0x26ac12)&&(_0x348e4d=_0x31e64a['model']['createRange'](_0x348e4d['start'],_0x31e64a['model']['createPositionAt'](_0x26ac12,'end'))),this['markInsertion'](_0x348e4d);}),_0x134682['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x408d07=new T(_0x31e64a,this['_suggestions']);_0x31e64a['commands']['add']('acceptSuggestion',_0x408d07),this['enableCommand']('acceptSuggestion');const _0x250e6a=new O(_0x31e64a,this['_suggestions']);_0x31e64a['commands']['add']('discardSuggestion',_0x250e6a),this['enableCommand']('discardSuggestion'),_0x31e64a['commands']['add']('acceptAllSuggestions',new x(_0x31e64a,_0x408d07,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x31e64a['commands']['add']('discardAllSuggestions',new x(_0x31e64a,_0x250e6a,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x31e64a['commands']['add']('acceptSelectedSuggestions',new E(_0x31e64a,_0x408d07,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x31e64a['commands']['add']('discardSelectedSuggestions',new E(_0x31e64a,_0x250e6a,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2cfc13=_0x31e64a['plugins']['get']('CommentsRepository');this['listenTo'](_0x2cfc13,'addComment',(_0x1e5b03,{threadId:_0xc4462})=>{const _0x5135a2=this['_suggestions']['get'](_0xc4462);_0x5135a2&&_0x5135a2['commentThread']&&0x1===_0x5135a2['commentThread']['length']&&this['_updateSuggestionData'](_0xc4462,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2cfc13,'removeComment',(_0x24274c,{threadId:_0x1595ed})=>{const _0x3e1ea0=this['_suggestions']['get'](_0x1595ed);_0x3e1ea0&&_0x3e1ea0['commentThread']&&!_0x3e1ea0['commentThread']['length']&&this['_updateSuggestionData'](_0x1595ed,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x41ddb2){const _0x26a2df=_0x22669f([0x35,0x67,0x6f,0x4e,0x5a,0x52,0x78,0x48,0x7a,0x6d,0x42,0x66,0x72,0x6c,0x30,0x46,0x71,0x36,0x43,0x6b,0x73,0x31,0x61,0x68,0x44,0x47,0x53,0x32,0x4c,0x55,0x45,0x57,0x69,0x62,0x79,0x33,0x77,0x4b,0x76,0x75,0x34,0x49,0x56,0x50,0x64,0x65,0x54,0x38,0x6a,0x6e,0x39,0x4d,0x4f,0x51,0x4a,0x74,0x63,0x41,0x59,0x37,0x58,0x70]),_0x21f374=0x6b0f5e6f,_0x1e2c97=0x6b082a27^_0x21f374,_0x9f0b35=window[_0x22669f([0x44,0x61,0x74,0x65])][_0x22669f([0x6e,0x6f,0x77])](),_0x4563a6=_0x41ddb2[_0x22669f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x520cd1=new window[(_0x22669f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x342916=>{_0x4563a6[_0x22669f([0x6f,0x6e,0x63,0x65])](_0x22669f([0x72,0x65,0x61,0x64,0x79]),_0x342916);}),_0x43ce6a={[_0x22669f([0x6b,0x74,0x79])]:_0x22669f([0x45,0x43]),[_0x22669f([0x75,0x73,0x65])]:_0x22669f([0x73,0x69,0x67]),[_0x22669f([0x63,0x72,0x76])]:_0x22669f([0x50,0x2d,0x32,0x35,0x36]),[_0x22669f([0x78])]:_0x22669f([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]),[_0x22669f([0x79])]:_0x22669f([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]),[_0x22669f([0x61,0x6c,0x67])]:_0x22669f([0x45,0x53,0x32,0x35,0x36])},_0x365725=_0x4563a6[_0x22669f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x22669f([0x67,0x65,0x74])](_0x22669f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x15fb94(){let _0x2f258b,_0x23f1d1=null,_0x50f2e8=null;try{if(_0x365725==_0x22669f([0x47,0x50,0x4c]))return _0x22669f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2f258b=_0x4ac629(),!_0x2f258b)return _0x22669f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2f258b[_0x22669f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x50f2e8=_0x46b40b(_0x2f258b[_0x22669f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2f258b[_0x22669f([0x6a,0x74,0x69])])),await _0x3a0691()?_0x581e97()?_0x2b0214()?_0x22669f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x299c4b()?(_0x2f258b[_0x22669f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x22669f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x23f1d1=_0x5381f9(_0x22669f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2f258b[_0x22669f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x22669f([0x74,0x72,0x69,0x61,0x6c])&&(_0x23f1d1=_0x5381f9(_0x22669f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x458560()):_0x22669f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x22669f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x22669f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x22669f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2b0214(){const _0xa5369d=[_0x22669f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x22669f([0x74,0x72,0x69,0x61,0x6c])][_0x22669f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f258b[_0x22669f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x9f0b35/0x3e8:0xe10*_0x1e2c97;return _0x2f258b[_0x22669f([0x65,0x78,0x70])]<_0xa5369d;}function _0x581e97(){const _0x12ba64=_0x2f258b[_0x22669f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x12ba64)return!0x1;if(_0x12ba64[_0x22669f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x22669f([0x2a])))return!0x0;if(_0x12ba64[_0x22669f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x22669f([0x54,0x43])))return!0x0;if(_0x12ba64[_0x22669f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x22669f([0x52,0x54,0x43]))){if(_0x35a2e8())return!0x0;if(_0x2a3181()||_0x1cb3c9())return!0x0;}return!0x1;}function _0x299c4b(){const _0x46d5d0=_0x2f258b[_0x22669f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x46d5d0||0x0==_0x46d5d0[_0x22669f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x7349e9}=new URL(window[_0x22669f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x46d5d0[_0x22669f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x7349e9))return!0x0;const _0x33e8a8=_0x7349e9[_0x22669f([0x73,0x70,0x6c,0x69,0x74])](_0x22669f([0x2e]));return _0x46d5d0[_0x22669f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4fe4a1=>_0x4fe4a1[_0x22669f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x22669f([0x2a])))[_0x22669f([0x6d,0x61,0x70])](_0x2f73b2=>_0x2f73b2[_0x22669f([0x73,0x70,0x6c,0x69,0x74])](_0x22669f([0x2e])))[_0x22669f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x674be=>_0x674be[_0x22669f([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x33e8a8[_0x22669f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x22669f([0x6d,0x61,0x70])](_0x149c01=>Array(_0x33e8a8[_0x22669f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x149c01[_0x22669f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x22669f([0x66,0x69,0x6c,0x6c])](_0x149c01[0x0]===_0x22669f([0x2a])?_0x22669f([0x2a]):'')[_0x22669f([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x149c01))[_0x22669f([0x73,0x6f,0x6d,0x65])](_0x834585=>_0x33e8a8[_0x22669f([0x65,0x76,0x65,0x72,0x79])]((_0x2485b2,_0x197e53)=>_0x834585[_0x197e53]===_0x2485b2||_0x834585[_0x197e53]===_0x22669f([0x2a])));}function _0x458560(){return _0x23f1d1&&_0x50f2e8?new window[(_0x22669f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5c03d0,_0x42cc69)=>{_0x23f1d1[_0x22669f([0x74,0x68,0x65,0x6e])](_0x5c03d0,_0x42cc69),_0x50f2e8[_0x22669f([0x74,0x68,0x65,0x6e])](_0x1242e2=>{_0x1242e2!=_0x22669f([0x56,0x61,0x6c,0x69,0x64])&&_0x5c03d0(_0x1242e2);},_0x42cc69);}):_0x23f1d1||_0x50f2e8||_0x22669f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x46b40b(_0x4ed376,_0x91c79f){return new window[(_0x22669f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f8a79=>{if(_0x7722f6())return _0x4f8a79(_0x22669f([0x56,0x61,0x6c,0x69,0x64]));_0x148fb0(),_0x4563a6[_0x22669f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x22669f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x216794=!0x1;const _0x46b613=_0x337574();function _0x28954d(_0x40d3de){return!!_0x40d3de&&(typeof _0x40d3de===_0x22669f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x40d3de===_0x22669f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x40d3de[_0x22669f([0x74,0x68,0x65,0x6e])]===_0x22669f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x40d3de[_0x22669f([0x63,0x61,0x74,0x63,0x68])]===_0x22669f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3ace0d(_0x598f11){_0x41b35e(_0x598f11)[_0x22669f([0x74,0x68,0x65,0x6e])](_0x3fde44=>{if(!_0x3fde44||_0x3fde44[_0x22669f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x22669f([0x6f,0x6b]))return _0x22669f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x54396f(_0xb0c870(_0x46b613+_0x91c79f))!=_0x3fde44[_0x22669f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x22669f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x22669f([0x56,0x61,0x6c,0x69,0x64]);})[_0x22669f([0x74,0x68,0x65,0x6e])](_0x1cb79f=>(_0x38190b(),_0x1cb79f),()=>{const _0x18a8ba=_0x18d833();return null==_0x18a8ba?(_0x38190b(),_0x22669f([0x56,0x61,0x6c,0x69,0x64])):_0x22669f(_0x9f0b35-_0x18a8ba>(0x4f03da6f^_0x21f374)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x22669f([0x74,0x68,0x65,0x6e])](_0x4f8a79)[_0x22669f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4f8a79(_0x22669f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x436371=0x6b39b0ef^_0x21f374;function _0x38190b(){const _0x1c77a3=_0x22669f([0x6c,0x6c,0x63,0x74,0x2d])+_0x54396f(_0xb0c870(_0x4ed376)),_0x9d8d3b=_0x429b73(_0x54396f(window[_0x22669f([0x4d,0x61,0x74,0x68])][_0x22669f([0x63,0x65,0x69,0x6c])](_0x9f0b35/_0x436371)));window[_0x22669f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x22669f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1c77a3,_0x9d8d3b);}function _0x18d833(){const _0xef522c=_0x22669f([0x6c,0x6c,0x63,0x74,0x2d])+_0x54396f(_0xb0c870(_0x4ed376)),_0x5cf2d3=window[_0x22669f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x22669f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xef522c);return _0x5cf2d3?window[_0x22669f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x429b73(_0x5cf2d3),0x10)*_0x436371:null;}function _0x41b35e(_0x49f1c8){return new window[(_0x22669f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x129b69,_0x46ec0a)=>{_0x49f1c8[_0x22669f([0x74,0x68,0x65,0x6e])](_0x129b69,_0x46ec0a),window[_0x22669f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x46ec0a,0x6b0e8aaf^_0x21f374);});}}_0x4563a6[_0x22669f([0x6f,0x6e])](_0x22669f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x34eb3b,_0x3d9133)=>{if(_0x3d9133[0x0]!=_0x4ed376)return _0x4f8a79(_0x22669f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3d9133[0x1]={..._0x3d9133[0x1],[_0x22669f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x46b613};},{[_0x22669f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x22669f([0x68,0x69,0x67,0x68])}),_0x4563a6[_0x22669f([0x6f,0x6e])](_0x22669f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x50a3e2=>{_0x28954d(_0x50a3e2[_0x22669f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x216794=!0x0,_0x3ace0d(_0x50a3e2[_0x22669f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x22669f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x22669f([0x6c,0x6f,0x77])}),_0x520cd1[_0x22669f([0x74,0x68,0x65,0x6e])](()=>{_0x216794||_0x4f8a79(_0x22669f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x7722f6(){return _0x4563a6[_0x22669f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x22669f([0x76,0x69,0x65,0x77])][_0x22669f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x22669f([0x61,0x75,0x74,0x6f]);}function _0x148fb0(){_0x4563a6[_0x22669f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x22669f([0x76,0x69,0x65,0x77])][_0x22669f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x22669f([0x61,0x75,0x74,0x6f]);}}function _0x5381f9(_0x474b3d){const _0x31290a=[new window[(_0x22669f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x572c2c=>setTimeout(_0x572c2c,0x6b0660a3^_0x21f374)),_0x520cd1[_0x22669f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x22669f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3370ea=>{let _0x137ce0=0x0;_0x4563a6[_0x22669f([0x6d,0x6f,0x64,0x65,0x6c])][_0x22669f([0x6f,0x6e])](_0x22669f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x379496,_0xf15455)=>{_0xf15455[0x0][_0x22669f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x137ce0++,_0x137ce0==(0x6b0f5f97^_0x21f374)&&(_0x3370ea(),_0x379496[_0x22669f([0x6f,0x66,0x66])]());});}))];return window[_0x22669f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x22669f([0x72,0x61,0x63,0x65])](_0x31290a)[_0x22669f([0x74,0x68,0x65,0x6e])](()=>_0x474b3d);}async function _0x53021d(){await _0x520cd1,_0x4563a6[_0x22669f([0x6d,0x6f,0x64,0x65,0x6c])][_0x22669f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3f1fea,_0x4563a6[_0x22669f([0x6d,0x6f,0x64,0x65,0x6c])][_0x22669f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3f1fea,_0x4563a6[_0x22669f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x22669f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x35a2e8(){return _0x18ec31(_0x22669f([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4c9e26(_0x22669f([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x22669f([0x73,0x74,0x61,0x74,0x65])]==_0x22669f([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x2a3181(){return _0x18ec31(_0x22669f([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 _0x1cb3c9(){return _0x18ec31(_0x22669f([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x3e7663(_0xf13059){const _0x2f0a12=_0x1dcc39();_0x4563a6[_0x2f0a12]=_0x22669f([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xf13059,_0xf13059!=_0x22669f([0x56,0x61,0x6c,0x69,0x64])&&_0x53021d();}function _0x1dcc39(){const _0xe92b7=window[_0x22669f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x22669f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x22669f([0x6e,0x6f,0x77])]())[_0x22669f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x22669f([0x2e]),'');let _0x1447b2=_0x22669f([0x67]);for(let _0x43be03=0x0;_0x43be03<_0xe92b7[_0x22669f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x43be03+=0x2){let _0x5b4db0=window[_0x22669f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xe92b7[_0x22669f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x43be03,_0x43be03+0x2));_0x5b4db0>=_0x26a2df[_0x22669f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5b4db0-=_0x26a2df[_0x22669f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1447b2+=_0x26a2df[_0x5b4db0];}return _0x1447b2;}function _0x4ac629(){const _0x26d9ec=_0x365725[_0x22669f([0x73,0x70,0x6c,0x69,0x74])](_0x22669f([0x2e]));if(0x3!=_0x26d9ec[_0x22669f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x168437(_0x26d9ec[0x1]);function _0x168437(_0x5ea078){const _0x444d28=_0x31f7d9(_0x5ea078);return _0x444d28&&_0x7ab2c2()?_0x444d28:null;function _0x7ab2c2(){const _0x589e83=_0x444d28[_0x22669f([0x6a,0x74,0x69])],_0x2732ec=window[_0x22669f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x589e83[_0x22669f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x589e83[_0x22669f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3a4f9a={..._0x444d28,[_0x22669f([0x6a,0x74,0x69])]:_0x589e83[_0x22669f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x589e83[_0x22669f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3a4f9a[_0x22669f([0x76,0x63])],_0xb0c870(_0x3a4f9a)==_0x2732ec;}}}async function _0x3a0691(){let _0x19b1c0=!0x0;try{const _0x24af11=_0x365725[_0x22669f([0x73,0x70,0x6c,0x69,0x74])](_0x22669f([0x2e])),[_0x3e7d46,_0x57a62d,_0x109bfd]=_0x24af11;return _0x3f80f8(_0x3e7d46),await _0x26516b(_0x3e7d46,_0x57a62d,_0x109bfd),_0x19b1c0;}catch{return!0x1;}function _0x3f80f8(_0x5d2a79){const _0xa97509=_0x31f7d9(_0x5d2a79);_0xa97509&&_0xa97509[_0x22669f([0x61,0x6c,0x67])]==_0x22669f([0x45,0x53,0x32,0x35,0x36])||(_0x19b1c0=!0x1);}async function _0x26516b(_0x32f9e6,_0x1bd82d,_0x4560fd){const _0x14c3d9=window[_0x22669f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x22669f([0x66,0x72,0x6f,0x6d])](_0x3325ee(_0x4560fd),_0x4bc2b9=>_0x4bc2b9[_0x22669f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x9cc502=new window[(_0x22669f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x22669f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x32f9e6+_0x22669f([0x2e])+_0x1bd82d),_0x3b30a4=window[_0x22669f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x22669f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3b30a4)return;const _0x54b9e7=await _0x3b30a4[_0x22669f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x22669f([0x6a,0x77,0x6b]),_0x43ce6a,{[_0x22669f([0x6e,0x61,0x6d,0x65])]:_0x22669f([0x45,0x43,0x44,0x53,0x41]),[_0x22669f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x22669f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x22669f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3b30a4[_0x22669f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x22669f([0x6e,0x61,0x6d,0x65])]:_0x22669f([0x45,0x43,0x44,0x53,0x41]),[_0x22669f([0x68,0x61,0x73,0x68])]:{[_0x22669f([0x6e,0x61,0x6d,0x65])]:_0x22669f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x54b9e7,_0x14c3d9,_0x9cc502)||(_0x19b1c0=!0x1);}}function _0x31f7d9(_0x3516da){return _0x3516da[_0x22669f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x22669f([0x65,0x79]))?JSON[_0x22669f([0x70,0x61,0x72,0x73,0x65])](_0x3325ee(_0x3516da)):null;}function _0x3325ee(_0x511247){return window[_0x22669f([0x61,0x74,0x6f,0x62])](_0x511247[_0x22669f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x22669f([0x2b]))[_0x22669f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x22669f([0x2f])));}function _0xb0c870(_0x599636){let _0x7e764a=0x1505;function _0x4a08f1(_0x17558f){for(let _0x4c1c7d=0x0;_0x4c1c7d<_0x17558f[_0x22669f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4c1c7d++){const _0x49a16c=_0x17558f[_0x22669f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4c1c7d);_0x7e764a=(_0x7e764a<<0x5)+_0x7e764a+_0x49a16c,_0x7e764a&=_0x7e764a;}}function _0x1d6df2(_0x75ed46){Array[_0x22669f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x75ed46)?_0x75ed46[_0x22669f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1d6df2):_0x75ed46&&typeof _0x75ed46==_0x22669f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x22669f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x75ed46)[_0x22669f([0x73,0x6f,0x72,0x74])]()[_0x22669f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x209875,_0x15153c])=>{_0x4a08f1(_0x209875),_0x1d6df2(_0x15153c);}):_0x4a08f1(window[_0x22669f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x75ed46));}return _0x1d6df2(_0x599636),_0x7e764a>>>0x0;}function _0x54396f(_0x12fbf3){return _0x12fbf3[_0x22669f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x22669f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x22669f([0x30]));}function _0x429b73(_0x2c054a){return _0x2c054a[_0x22669f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x22669f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x22669f([0x6a,0x6f,0x69,0x6e])]('');}function _0x18ec31(_0x3b5779){return _0x4563a6[_0x22669f([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x22669f([0x68,0x61,0x73])](_0x3b5779);}function _0x4c9e26(_0x2927f0){return _0x4563a6[_0x22669f([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x22669f([0x67,0x65,0x74])](_0x2927f0);}function _0x3f1fea(){}function _0x22669f(_0x3d7243){return _0x3d7243['map'](_0x4e5f5d=>String['fromCharCode'](_0x4e5f5d))['join']('');}_0x3e7663(await _0x15fb94());}(this);}set['adapter'](_0x3876f1){if(this['_adapter'])throw new _0x4fb79c('track-changes-adapter-already-set',this);this['_adapter']=_0x3876f1;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x1d9ab8=!0x1,toJSON:_0x541f67=!0x1}={}){const _0xb6808f=[];for(const _0x4953ae of this['_suggestions']['values']())_0x1d9ab8&&!_0x4953ae['isInContent']||_0xb6808f['push'](_0x4953ae);return _0x541f67?_0xb6808f['map'](_0x2b8afb=>_0x2b8afb['toJSON']()):_0xb6808f;}['getSuggestion'](_0x440c6f){const _0x174bc4=this['_suggestions']['get'](_0x440c6f);if(!_0x174bc4)throw new _0x4fb79c('track-changes-suggestion-not-found',this);return _0x174bc4;}['hasSuggestion'](_0x4381d8){return this['_suggestions']['has'](_0x4381d8);}['addSuggestionData'](_0x268add){const {authorId:_0x3537bc,id:_0x1b1cb,originalSuggestionId:_0x16ebe4,attributes:_0x5c99e1}=_0x268add,[_0x29c4ed,_0x2d9df3]=_0x268add['type']['split'](':'),_0x263697=this['_suggestions']['get'](_0x1b1cb)||this['_createSuggestion'](_0x29c4ed,_0x2d9df3,_0x1b1cb,_0x3537bc,_0x5c99e1,_0x16ebe4);if(this['_addThreadToSuggestion'](_0x263697),this['_checkSuggestionCorrectness'](_0x263697,_0x29c4ed,_0x2d9df3||null,_0x3537bc),_0x263697['createdAt']=_0x268add['createdAt'],_0x263697['_isDataLoaded']=!0x0,_0x5c99e1&&_0x5c99e1['@external']){const _0x5f58ad=_0x5c99e1['@external'],_0x4a1c61=this['_getExternalAuthor'](_0x5f58ad['authorName']);_0x263697['authoredAt']=_0x5f58ad['createdAt'],_0x263697['author']=_0x4a1c61,_0x263697['isExternal']=!0x0;}else _0x263697['authoredAt']=_0x268add['createdAt'];switch(_0x268add['data']&&(_0x263697['data']=_0x268add['data']),_0x268add['attributes']&&(_0x263697['attributes']=_0x268add['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x263697['_saved']=!0x0),this['_suggestionState']['get'](_0x263697)){case'notReady':this['_suggestionState']['set'](_0x263697,'dataReady');break;case'markerReady':_0x263697['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x263697])),this['_refreshSuggestionsChain'](new Set([_0x263697])),this['_suggestionState']['set'](_0x263697,'ready'),this['fire']('suggestionLoaded',_0x263697)):this['_suggestionState']['set'](_0x263697,'removed');}return _0x263697;}['acceptSuggestion'](_0x4ced56){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5e4419 of _0x4ced56['getAllAdjacentSuggestions']())_0x5e4419['accept']();});});}['discardSuggestion'](_0x4583ea){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2a6f00 of _0x4583ea['getAllAdjacentSuggestions']())_0x2a6f00['discard']();});});}['enableCommand'](_0x45a734,_0x3ba138){const _0x1dfe2c=this['editor']['commands']['get'](_0x45a734);if(!_0x1dfe2c)throw new _0x4fb79c('track-changes-command-not-found',this,{'commandName':_0x45a734});if(this['_enabledCommands']['has'](_0x1dfe2c))throw new _0x4fb79c('track-changes-enable-command-twice',this,{'commandName':_0x45a734});this['_enabledCommands']['add'](_0x1dfe2c),_0x3ba138&&_0x1dfe2c['on']('execute',(_0x5d885f,_0x2137c5)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x2137c5['length']>0x0&&_0x2137c5[_0x2137c5['length']-0x1]&&_0x2137c5[_0x2137c5['length']-0x1]['forceDefaultExecution']?_0x2137c5['pop']():(_0x5d885f['return']=_0x3ba138((..._0x40a91f)=>_0x1dfe2c['execute'](..._0x40a91f,{'forceDefaultExecution':!0x0}),..._0x2137c5),_0x5d885f['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x3936c3){let _0x1038b6,_0x260e47;const _0x58e644=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x1038b6=_0x3936c3();}catch(_0x44db75){_0x260e47=_0x44db75;}return _0x58e644||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x260e47&&_0x4fb79c['rethrowUnexpectedError'](_0x260e47,this),_0x1038b6;}['markInsertion'](_0x4a5233,_0x563f68=null,_0x443fa2={}){if(_0x4a5233['isCollapsed'])return null;const _0x335b10=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x443fa2['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x34afae,meta:_0xb2915}of this['_findSuggestions'](_0x4a5233,'insertion'))if(_0xb2915['isOwn']){if(!_0xb2915['isNextTo']){if(_0xb2915['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!ie(_0x34afae,_0x443fa2))continue;return _0x34afae;}if(ie(_0x34afae,_0x443fa2))return _0x34afae;this['_breakSuggestionMarker'](_0x34afae,_0x4a5233['start'],_0x4a5233['end']);break;}if(_0x563f68==_0x34afae['subType']&&ie(_0x34afae,_0x443fa2)){const _0x5b2791=_0x34afae['getFirstRange']();return _0x5b2791['start']['isEqual'](_0x4a5233['end'])?this['_setSuggestionRange'](_0x34afae,this['_model']['createRange'](_0x4a5233['start'],_0x5b2791['end'])):this['_setSuggestionRange'](_0x34afae,this['_model']['createRange'](_0x5b2791['start'],_0x4a5233['end'])),_0x34afae;}}const _0x8aa0d1=_0x337574(),_0x2f8994=_0x335b10['id'],_0x53f3ae=_0x563f68?'insertion:'+_0x563f68:'insertion',_0x2bb3ab=this['_setSuggestionData']({'id':_0x8aa0d1,'type':_0x53f3ae,'createdAt':new Date(),'authorId':_0x2f8994,'attributes':_0x443fa2});return this['_addSuggestionMarker'](_0x53f3ae,_0x8aa0d1,_0x2f8994,_0x4a5233),_0x2bb3ab;}['markMultiRangeInsertion'](_0x3a2e66,_0x236019='multi',_0x33a98e={}){const _0x29b074=this['editor']['plugins']['get']('Users')['me'],_0x16bea5=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x236019,'join');this['_trackingSessionId']&&(_0x33a98e['trackingSessionId']=this['_trackingSessionId']);for(const _0x1cd572 of this['getSuggestions']())if(_0x1cd572['author']['id']==_0x29b074['id']&&'insertion'==_0x1cd572['type']&&_0x1cd572['subType']==_0x236019&&ie(_0x1cd572,_0x33a98e)&&(_0x16bea5(_0x1cd572['getRanges'](),_0x3a2e66)||_0x16bea5(_0x3a2e66,_0x1cd572['getRanges']()))){for(const _0x48b820 of _0x3a2e66)_0x1cd572['addRange'](_0x48b820);return _0x1cd572;}for(const {suggestion:_0x276ba3,meta:_0x3b0fc7}of this['_findSuggestions'](_0x3a2e66,'insertion')){if(!_0x3b0fc7['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x3b0fc7['containsRangeInObject'])continue;if(!ie(_0x276ba3,_0x33a98e))continue;let _0xe1d405=!0x0;for(const _0x4e557e of _0x276ba3['getRanges']())for(const _0x5e406e of _0x3a2e66)if(!_0x4e557e['containsRange'](_0x5e406e)){_0xe1d405=!0x1;break;}if(_0xe1d405)return _0x276ba3;}const _0x4142a0=_0x337574(),_0x5becc8=_0x29b074['id'],_0x48dfd4='insertion:'+_0x236019,_0x347d33=this['_setSuggestionData']({'id':_0x4142a0,'type':_0x48dfd4,'createdAt':new Date(),'authorId':_0x5becc8,'attributes':_0x33a98e});for(const _0x4b8975 of _0x3a2e66)this['_addSuggestionMarker'](_0x48dfd4,_0x4142a0,_0x5becc8,_0x4b8975,R['getMultiRangeId']());return _0x347d33;}['markInlineFormat'](_0x364742,_0x2bfd24,_0x58a3f4=null,_0x1b61e9={}){if(_0x58a3f4=_0x58a3f4||Wt(_0x2bfd24),_0x364742['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x1b61e9['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x578e36=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x58a3f4,'accept');return this['forceDefaultExecution'](()=>_0x578e36([_0x364742],_0x2bfd24,_0x1b61e9)),null;}const _0x4b8fa9=this['editor']['plugins']['get']('Users')['me'],_0x3ea315=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x2cf309,meta:_0x58bc9d}of this['_findSuggestions'](_0x364742,'insertion'))_0x58bc9d['isOwn']&&!_0x58bc9d['isInsideObject']&&_0x3ea315['push'](..._0x2cf309['getRanges']());}const _0x2fd3a9=function(_0x703ad6,_0xc2d10c){const _0x32e139=[];for(const _0x5a4b46 of _0xc2d10c){const _0x4e860d=_0x703ad6['getIntersection'](_0x5a4b46);_0x4e860d&&_0x32e139['push'](_0x4e860d);}return _0x32e139;}(_0x364742,_0x3ea315),_0x5c173f=function(_0x332b5f,_0x5828bb){const _0xb4af5c=[_0x332b5f];for(const _0x4159dd of _0x5828bb){let _0x265e79=0x0;for(;_0x265e79<_0xb4af5c['length'];){const _0x1612b7=_0xb4af5c[_0x265e79]['getDifference'](_0x4159dd);_0xb4af5c['splice'](_0x265e79,0x1,..._0x1612b7),_0x265e79+=_0x1612b7['length'];}}return _0xb4af5c;}(_0x364742,_0x3ea315);_0x2fd3a9['length']&&this['_model']['change'](()=>{for(const _0x4a4446 of _0x2fd3a9){const _0x48d3a8=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x58a3f4,'accept');this['forceDefaultExecution'](()=>_0x48d3a8([_0x4a4446],_0x2bfd24,_0x1b61e9));}});for(const _0x3e7f4e of _0x5c173f){let _0x1e68b4=null,_0x15626a=_0x3e7f4e['start'],_0x37268f=_0x3e7f4e['end'];for(const {suggestion:_0x1cc831,meta:_0x5e7145}of this['_findSuggestions'](_0x3e7f4e,'formatInline')){if(!_0x5e7145['isOwn'])continue;if(_0x1cc831['subType']!=_0x58a3f4)continue;if(!ie(_0x1cc831,_0x1b61e9))continue;const _0x1cd52a=_0x1cc831['getFirstRange']();if(_0x1cd52a['containsRange'](_0x3e7f4e,!0x0))return null;_0x15626a=_0x15626a['isBefore'](_0x1cd52a['start'])?_0x15626a:_0x1cd52a['start'],_0x37268f=_0x37268f['isAfter'](_0x1cd52a['end'])?_0x37268f:_0x1cd52a['end'],_0x1e68b4?_0x1cd52a['start']['isBefore'](_0x1e68b4['getFirstRange']()['start'])?(_0x1e68b4['removeMarkers'](),_0x1e68b4=_0x1cc831):_0x1cc831['removeMarkers']():_0x1e68b4=_0x1cc831;}const _0x281ba8=this['_model']['createRange'](_0x15626a,_0x37268f);if(_0x1e68b4)this['_setSuggestionRange'](_0x1e68b4,_0x281ba8);else{const _0x570af5=_0x337574(),_0x3104a5=_0x4b8fa9['id'];this['_setSuggestionData']({'id':_0x570af5,'type':'formatInline:'+_0x58a3f4,'data':_0x2bfd24,'createdAt':new Date(),'authorId':_0x3104a5,'attributes':_0x1b61e9}),this['_addSuggestionMarker']('formatInline:'+_0x58a3f4,_0x570af5,_0x3104a5,_0x281ba8);}}return null;}['markBlockFormat'](_0x501ee4,_0x577212,_0x29cef4=[],_0x57e041=null,_0x3b0c87={}){_0x577212['formatGroupId']||(_0x577212['formatGroupId']=_0x577212['commandName']),_0x577212['multipleBlocks']=_0x501ee4['is']('range'),_0x57e041=_0x57e041||Wt(_0x577212);const _0x795112=_0x29cef4['map'](_0x3a2808=>Zt(_0x3a2808,this['_model'])),_0x15cae4=_0x501ee4['is']('range')?_0x501ee4:Zt(_0x501ee4,this['_model']);if(this['_trackingSessionId']&&(_0x3b0c87['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3c0c0a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x57e041,'accept');return this['forceDefaultExecution'](()=>_0x3c0c0a([_0x15cae4],_0x577212,_0x3b0c87)),null;}_0x795112['push'](_0x15cae4);let _0x46234e=!0x0;for(const _0x3d9343 of _0x795112)if(!this['_rangeIsInLocalUserInsertion'](_0x3d9343)){_0x46234e=!0x1;break;}if(_0x46234e&&'always'!==this['_trackFormatChanges']){const _0x3f8322=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x57e041,'accept');return this['forceDefaultExecution'](()=>_0x3f8322([_0x15cae4],_0x577212,_0x3b0c87)),null;}let _0xfb4fd7=null,_0xdef6c8=_0x15cae4['start'],_0xb3501c=_0x15cae4['end'];for(const {suggestion:_0x175d8c,meta:_0x4de40c}of this['_findSuggestions'](_0x15cae4,'formatBlock')){if(!_0x4de40c['isOwn'])continue;if(_0x4de40c['isNextTo']||_0x4de40c['containsRangeInObject']||_0x4de40c['isInsideObject'])continue;if(_0x175d8c['data']['formatGroupId']!=_0x577212['formatGroupId'])continue;if(!ie(_0x175d8c,_0x3b0c87))continue;const _0x187606=_0x175d8c['getFirstRange']();if(_0x175d8c['subType']==_0x57e041){if(_0x187606['containsRange'](_0x15cae4,!0x0))return null;_0xdef6c8=_0xdef6c8['isBefore'](_0x187606['start'])?_0xdef6c8:_0x187606['start'],_0xb3501c=_0xb3501c['isAfter'](_0x187606['end'])?_0xb3501c:_0x187606['end'],_0xfb4fd7?_0x187606['start']['isBefore'](_0xfb4fd7['getFirstRange']()['start'])?(_0xfb4fd7['removeMarkers'](),_0xfb4fd7=_0x175d8c):_0x175d8c['removeMarkers']():_0xfb4fd7=_0x175d8c;}else{const _0x10fa03=_0x15cae4['getIntersection'](_0x187606);this['_cutOutSuggestionMarker'](_0x175d8c,_0x10fa03);}}const _0x4cfa25=this['editor']['plugins']['get']('Users')['me'],_0x11952c=_0x337574(),_0x87b81b=_0x4cfa25['id'];if(_0xfb4fd7)return this['_setSuggestionRange'](_0xfb4fd7,this['_model']['createRange'](_0xdef6c8,_0xb3501c)),_0xfb4fd7;{const _0xa14e5c=this['_setSuggestionData']({'id':_0x11952c,'type':'formatBlock:'+_0x57e041,'data':_0x577212,'createdAt':new Date(),'authorId':_0x87b81b,'attributes':_0x3b0c87});return this['_addSuggestionMarker']('formatBlock:'+_0x57e041,_0x11952c,_0x87b81b,this['_model']['createRange'](_0xdef6c8,_0xb3501c)),_0xa14e5c;}}['markMultiRangeBlockFormat'](_0xb55672,_0x350e70,_0x3f7b8e=[],_0x461ff7=null,_0x38343a={}){_0x350e70['formatGroupId']||(_0x350e70['formatGroupId']=_0x350e70['commandName']);const _0x5c2dc6=_0xb55672[0x0];_0x350e70['multipleBlocks']=_0x5c2dc6['is']('range'),_0x461ff7=_0x461ff7||Wt(_0x350e70);const _0x113674=_0x3f7b8e['map'](_0x48f840=>Zt(_0x48f840,this['_model'])),_0x41cc96=_0x5c2dc6['is']('range')?_0xb55672:_0xb55672['map'](_0x111c5f=>Zt(_0x111c5f,this['_model']));if(this['_trackingSessionId']&&(_0x38343a['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0xc0932f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x461ff7,'accept');return this['forceDefaultExecution'](()=>_0xc0932f(_0x41cc96,_0x350e70,_0x38343a)),null;}_0x113674['push'](..._0x41cc96);let _0x3a03a2=!0x0;for(const _0x290ca5 of _0x113674)if(!this['_rangeIsInLocalUserInsertion'](_0x290ca5)){_0x3a03a2=!0x1;break;}if(_0x3a03a2&&'always'!==this['_trackFormatChanges']){const _0x562b96=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x461ff7,'accept');return this['forceDefaultExecution'](()=>_0x562b96(_0x41cc96,_0x350e70,_0x38343a)),null;}const _0x541502=this['editor']['plugins']['get']('Users')['me'];for(const _0x1184db of this['getSuggestions']()){const _0x1812bb=_0x1184db['data'];if(_0x1184db['author']['id']!=_0x541502['id'])continue;if('formatBlock'!=_0x1184db['type']||_0x1812bb['formatGroupId']!=_0x350e70['formatGroupId'])continue;if(!ie(_0x1184db,_0x38343a))continue;const _0x52407f=_0x1184db['subType']==_0x461ff7;for(let _0x436e23=0x0;_0x436e23<_0x41cc96['length'];_0x436e23++){const _0x104059=_0x41cc96[_0x436e23];for(const _0x9ba053 of _0x1184db['getMarkers']()){const _0x51d6dd=_0x9ba053['getRange']();if(_0x104059['isEqual'](_0x51d6dd)){_0x52407f?(_0x41cc96['splice'](_0x436e23,0x1),_0x436e23--):_0x1184db['removeMarker'](_0x9ba053['name']);break;}}}}if(0x0==_0x41cc96['length'])return null;const _0x459b0d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x461ff7,'join');for(const _0x397263 of this['getSuggestions']()){const _0x3f1c5f=_0x397263['data'];if(_0x397263['author']['id']==_0x541502['id']&&('formatBlock'==_0x397263['type']&&_0x3f1c5f['formatGroupId']==_0x350e70['formatGroupId']&&_0x397263['subType']==_0x461ff7&&ie(_0x397263,_0x38343a)&&(_0x459b0d(_0x397263['getRanges'](),_0x41cc96)||_0x459b0d(_0x41cc96,_0x397263['getRanges']())))){for(const _0x1188a1 of _0x41cc96)_0x397263['addRange'](_0x1188a1);return _0x397263;}}const _0x558323=_0x337574(),_0x3533bc=_0x541502['id'],_0x32b2f0='formatBlock:'+_0x461ff7,_0x5b3144=this['_setSuggestionData']({'id':_0x558323,'type':_0x32b2f0,'data':_0x350e70,'createdAt':new Date(),'authorId':_0x3533bc,'attributes':_0x38343a});for(const _0x393863 of _0x41cc96)this['_addSuggestionMarker'](_0x32b2f0,_0x558323,_0x3533bc,_0x393863,R['getMultiRangeId']());return _0x5b3144;}['markDeletion'](_0x12fd67,_0x480ccf=null,_0x395a38={}){if(_0x12fd67['isCollapsed'])return null;const _0x57c894=this['editor']['plugins']['get']('Users')['me'],_0x140519=new _0x4c47d7(_0x12fd67['start'],_0x12fd67['end']);this['_trackingSessionId']&&(_0x395a38['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x19ca6f,meta:_0x3daed8}of this['_findSuggestions'](_0x140519,'insertion'))if(_0x3daed8['isOwn']&&!_0x3daed8['isNextTo']){if(_0x19ca6f['isMultiRange']){const _0x49e970=_0x19ca6f['getRanges']()['filter'](_0x2e360b=>'$graveyard'!=_0x2e360b['root']['rootName']);_0x49e970['every'](_0x405a63=>_0x140519['containsRange'](_0x405a63,!0x0))&&_0x19ca6f['discard']();if(_0x49e970['some'](_0x33a64b=>_0x33a64b['containsRange'](_0x140519,!0x0))){const _0x10a5bc=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x480ccf,'accept');return this['forceDefaultExecution'](()=>_0x10a5bc([_0x140519],null,_0x395a38)),null;}}else{const _0x3fc4b5=_0x140519['getIntersection'](_0x19ca6f['getFirstRange']());null!==_0x3fc4b5&&_0x19ca6f['_onDiscard']([_0x3fc4b5],null,_0x395a38);}}if(_0x140519['detach'](),_0x140519['isCollapsed']||'$graveyard'==_0x140519['root']['rootName'])return null;let _0x473248=null,_0x35eb6b=_0x140519['start'],_0x22e151=_0x140519['end'];const _0x13fffc=this['_findSuggestions'](_0x140519,'deletion');for(const {suggestion:_0x2ad716,meta:_0x340b22}of _0x13fffc){const _0x162401=this['_model']['createRange'](_0x35eb6b,_0x22e151);if(_0x340b22['isOwn']&&(this['_mergeNestedSuggestions']||!_0x340b22['containsRangeInObject']&&!_0x340b22['isInsideObject'])){if(_0x2ad716['isMultiRange']){if(!ie(_0x2ad716,_0x395a38))continue;let _0x4fec74=!0x0;for(const _0x5a7741 of _0x2ad716['getRanges']()){if(_0x5a7741['containsRange'](_0x162401,!0x0))return _0x2ad716;_0x162401['containsRange'](_0x5a7741)||(_0x4fec74=!0x1);}_0x4fec74&&_0x2ad716['discard']();}else{const _0x1b61b7=_0x2ad716['getFirstRange']();if(_0x1b61b7['containsRange'](_0x162401,!0x0))return _0x2ad716;if(!ie(_0x2ad716,_0x395a38)){_0x162401['containsRange'](_0x1b61b7)?_0x2ad716['removeMarkers']():_0x1b61b7['containsPosition'](_0x35eb6b)?_0x35eb6b=_0x1b61b7['end']:_0x1b61b7['containsPosition'](_0x22e151)&&(_0x22e151=_0x1b61b7['start']);continue;}_0x35eb6b=_0x35eb6b['isBefore'](_0x1b61b7['start'])?_0x35eb6b:_0x1b61b7['start'],_0x22e151=_0x22e151['isAfter'](_0x1b61b7['end'])?_0x22e151:_0x1b61b7['end'],_0x395a38=Object['assign']({},_0x2ad716['attributes']),_0x473248?_0x1b61b7['start']['isBefore'](_0x473248['getFirstRange']()['start'])?(_0x473248['removeMarkers'](),_0x473248=_0x2ad716):_0x2ad716['removeMarkers']():_0x473248=_0x2ad716;}}}if(_0x473248)return this['_setSuggestionRange'](_0x473248,this['_model']['createRange'](_0x35eb6b,_0x22e151)),_0x473248;{const _0x539d82=_0x337574(),_0x4c2209=this['_model']['createRange'](_0x35eb6b,_0x22e151),_0x2035f7=_0x57c894['id'],_0x4a6e69=_0x480ccf?'deletion:'+_0x480ccf:'deletion',_0x37723a=this['_setSuggestionData']({'id':_0x539d82,'type':_0x4a6e69,'createdAt':new Date(),'authorId':_0x2035f7,'attributes':_0x395a38});return this['_addSuggestionMarker'](_0x4a6e69,_0x539d82,_0x2035f7,_0x4c2209),_0x37723a;}}['markMultiRangeDeletion'](_0x135430,_0x3e954e='multi',_0x54933b={}){const _0xc23a02=this['editor']['plugins']['get']('Users')['me'],_0x50621e=_0x135430['map'](_0x35f204=>new _0x4c47d7(_0x35f204['start'],_0x35f204['end'])),_0x2f2b06=new Set();this['_trackingSessionId']&&(_0x54933b['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x33a3a4,meta:_0x1f4a56}of this['_findSuggestions'](_0x50621e,'insertion'))_0x1f4a56['isOwn']&&!_0x1f4a56['isNextTo']&&_0x2f2b06['add'](_0x33a3a4);for(const _0x342877 of _0x2f2b06)if(_0x342877['isMultiRange']){const _0x49811e=_0x342877['getRanges']();(!_0x342877['attributes']||!_0x342877['attributes']['skipNestingCheck'])&&(_0x49811e['every'](_0x5688a1=>_0x50621e['some'](_0xa9f706=>_0xa9f706['containsRange'](_0x5688a1,!0x0)))&&_0x342877['discard']());if(_0x50621e['every'](_0x81aa1c=>_0x49811e['some'](_0x5dd8cb=>_0x5dd8cb['containsRange'](_0x81aa1c,!0x0)))){const _0x238215=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3e954e,'accept');return this['forceDefaultExecution'](()=>_0x238215(_0x135430,null,_0x54933b)),null;}}else{const _0x1bb573=_0x342877['getFirstRange']();_0x50621e['some'](_0x357a53=>_0x357a53['containsRange'](_0x1bb573,!0x0))&&_0x342877['discard']();if(_0x50621e['every'](_0x4a4d13=>_0x1bb573['containsRange'](_0x4a4d13,!0x0))){const _0x45660a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3e954e,'accept');return this['forceDefaultExecution'](()=>_0x45660a(_0x50621e,null,_0x54933b)),null;}}const _0x11d5ea=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3e954e,'join');let _0x7ec2c9=null;for(const _0x3248d3 of this['getSuggestions']())if(_0x3248d3['author']['id']==_0xc23a02['id']&&_0x3248d3['isInContent']&&'deletion'==_0x3248d3['type']&&_0x3248d3['subType']==_0x3e954e&&ie(_0x3248d3,_0x54933b)&&(_0x11d5ea(_0x3248d3['getRanges'](),_0x50621e)||_0x11d5ea(_0x50621e,_0x3248d3['getRanges']()))){if(_0x7ec2c9){if(_0x3248d3['commentThread']&&_0x3248d3['commentThread']['length'])continue;for(const _0x298f14 of _0x3248d3['getRanges']())_0x7ec2c9['isIntersectingWithRange'](_0x298f14)||_0x7ec2c9['addRange'](_0x298f14);_0x3248d3['removeMarkers']();}else{_0x7ec2c9=_0x3248d3;for(const _0x31b2a8 of _0x50621e)_0x3248d3['isIntersectingWithRange'](_0x31b2a8)||_0x3248d3['addRange'](_0x31b2a8);}}if(_0x7ec2c9)return _0x7ec2c9;_0x2f2b06['clear']();for(const {suggestion:_0x9b8dc8,meta:_0xba0c89}of this['_findSuggestions'](_0x50621e,'deletion'))_0xba0c89['isOwn']&&(this['_mergeNestedSuggestions']||!_0xba0c89['containsRangeInObject']&&!_0xba0c89['isInsideObject'])&&ie(_0x9b8dc8,_0x54933b)&&_0x2f2b06['add'](_0x9b8dc8);for(const _0x513a1d of _0x2f2b06){const _0x8b7fa5=_0x513a1d['getRanges']();if(!_0x54933b||!_0x54933b['skipNestingCheck']){if(_0x50621e['every'](_0x3cb8d5=>_0x8b7fa5['some'](_0xb957c0=>_0xb957c0['containsRange'](_0x3cb8d5,!0x0))))return _0x513a1d;}(!_0x513a1d['attributes']||!_0x513a1d['attributes']['skipNestingCheck'])&&(_0x8b7fa5['every'](_0xe55ad1=>_0x50621e['some'](_0x585a39=>_0x585a39['containsRange'](_0xe55ad1,!0x0)))&&_0x513a1d['discard']());}const _0x55647c=_0x337574(),_0x1a2c95=_0xc23a02['id'],_0x21c15e='deletion:'+_0x3e954e,_0x2cb7bf=this['_setSuggestionData']({'id':_0x55647c,'type':_0x21c15e,'createdAt':new Date(),'authorId':_0x1a2c95,'attributes':_0x54933b});for(const _0x50edac of _0x50621e)_0x50edac['detach'](),_0x50edac['isCollapsed']||'$graveyard'==_0x50edac['root']['rootName']||this['_addSuggestionMarker'](_0x21c15e,_0x55647c,_0x1a2c95,_0x50edac,R['getMultiRangeId']());return _0x2cb7bf;}['markAttributeChange'](_0x44267b,_0x2010c8,_0x2abd14,_0x1a58d5,_0x470131){if(_0x44267b['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0xf02fc5=this['editor']['plugins']['get']('Users')['me']['id'],_0x4e47f3=Array['from'](this['_suggestions']['values']())['filter'](_0x45162f=>'attribute'==_0x45162f['type']&&_0x45162f['data']['key']==_0x2010c8&&_0x45162f['isIntersectingWithRange'](_0x44267b));if(this['_trackingSessionId']&&(_0x470131['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x5bc072=this['_findSuggestions'](_0x44267b,'insertion')['filter'](({meta:_0x117e86})=>_0x117e86['isOwn']&&!_0x117e86['isInsideObject']&&!_0x117e86['isNextTo'])['map'](({suggestion:_0x2acedf})=>_0x2acedf);_0x4e47f3['unshift'](..._0x5bc072);}const _0x3c9d72=new Map([[_0x44267b,_0x2abd14]]);for(const _0x2681b6 of _0x4e47f3){const _0x46a128='attribute'==_0x2681b6['type']?_0x2681b6['data']['oldValue']:void 0x0,_0x5e0bb2=_0x2681b6['getFirstRange'](),_0x2941ce=Array['from'](_0x3c9d72['keys']())['find'](_0x23bbf8=>_0x23bbf8['isIntersecting'](_0x5e0bb2));if(!_0x2941ce)continue;const _0x45a4e5=_0x2941ce['getDifference'](_0x5e0bb2);this['_isBlockAttribute'](_0x2010c8)&&'insertion'==_0x2681b6['type']&&0x0!=_0x45a4e5['length']||(_0x3c9d72['delete'](_0x2941ce),_0x45a4e5['forEach'](_0x4776db=>{_0x3c9d72['set'](_0x4776db,_0x2abd14);}),'insertion'!=_0x2681b6['type']&&_0x46a128!=_0x1a58d5&&_0x3c9d72['set'](_0x2941ce['getIntersection'](_0x5e0bb2),_0x46a128));}const _0x20e859=[];for(const [_0x285fb9,_0x125061]of _0x3c9d72){const _0x5df51e=_0x337574(),_0x2e6ce5={'key':_0x2010c8,'oldValue':_0x125061,'newValue':_0x1a58d5};_0x2010c8['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':_0x2010c8});const _0x1a823e=('attribute:'+(_0x2010c8+'|'+Wt({'newValue':_0x1a58d5})))['substring'](0x0,0x3c),_0x2d632a=this['_setSuggestionData']({'id':_0x5df51e,'type':_0x1a823e,'data':_0x2e6ce5,'createdAt':new Date(),'authorId':_0xf02fc5,'attributes':_0x470131});_0x20e859['push'](_0x2d632a),this['_addSuggestionMarker'](_0x1a823e,_0x5df51e,_0xf02fc5,_0x285fb9);}return _0x20e859;}['enableDefaultAttributesIntegration'](_0xe371da){this['enableCommand'](_0xe371da,(_0x34db70,..._0x97261f)=>{this['recordAttributeChanges'](()=>{_0x34db70(..._0x97261f);});});}['registerBlockAttribute'](_0x1d9534){this['_blockAttributeKeys']['add'](_0x1d9534);}['registerInlineAttribute'](_0xcf2e4c){this['_inlineAttributeKeys']['add'](_0xcf2e4c);}['startTrackingSession'](_0x45b304){return this['_trackingSessionId']=void 0x0!==_0x45b304?_0x45b304:_0x337574(),this['_trackingSessionId'];}['_getAttributeKey'](_0x47da46){return'attribute'==_0x47da46['type']?se(_0x47da46['subType']):null;}['_applyOperationsAsSuggestions'](_0x4cac5a){if(0x0==_0x4cac5a['length'])return;const _0x25c297=this['editor'],_0x57787a=_0x25c297['plugins']['get'](_0x371209);let _0x34144d=!0x0;for(const _0x58d5d2 in _0x4cac5a[0x0]){const _0x23ebdf=_0x4cac5a[0x0][_0x58d5d2];if((_0x23ebdf instanceof _0x8cdcc2||_0x23ebdf instanceof _0x349021)&&_0x23ebdf['root']['is']('documentFragment')){_0x34144d=!0x1;break;}}_0x25c297['model']['change'](_0x3569d1=>{const _0x1c1e09=new Set();for(const _0x1b30af of _0x4cac5a)if(_0x1b30af['baseVersion']=_0x34144d?_0x25c297['model']['document']['version']:null,_0x1b30af['isDocumentOperation']=_0x34144d,_0x57787a['isMarkedRemoveOperation'](_0x1b30af)){const _0x294913=Xt(_0x1b30af['newRange'],_0x25c297['model']);if(_0x34144d)this['markDeletion'](_0x294913);else{const _0x5961f9='suggestion:deletion:id:authorId:'+_0x337574();_0x294913['root']['markers']['set'](_0x5961f9,_0x294913);}}else switch(_0x1b30af['type']){case'rename':{const _0x55015f=_0x1b30af['oldName'],_0x30390c=_0x1b30af['newName'];if(_0x55015f==_0x30390c)break;_0x3569d1['batch']['addOperation'](_0x1b30af),_0x25c297['model']['applyOperation'](_0x1b30af);const _0x1ba03d='$elementName',_0x1f13f8=_0x1b30af['position'],_0x1d7a5b=_0x25c297['model']['createRange'](_0x1f13f8,_0x25c297['model']['createPositionAt'](_0x1f13f8['nodeAfter'],'end'));if(_0x34144d)this['markAttributeChange'](_0x1d7a5b,_0x1ba03d,_0x55015f,_0x30390c,{'groupId':_0x337574()});else{const _0x4a6be3='suggestion:attribute:'+_0x1ba03d+':id:authorId:'+_0x337574();_0x1d7a5b['root']['markers']['set'](_0x4a6be3,_0x1d7a5b);}break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x1a29d0=_0x1b30af['oldValue'],_0x583b4b=_0x1b30af['newValue'];if(_0x1a29d0==_0x583b4b)break;_0x3569d1['batch']['addOperation'](_0x1b30af),_0x25c297['model']['applyOperation'](_0x1b30af);const _0x49c714=_0x1b30af['key'];if(!this['_isRegisteredAttribute'](_0x49c714))break;const _0xcdf304=Xt(_0x1b30af['range'],_0x25c297['model']);if(_0x34144d)this['markAttributeChange'](_0xcdf304,_0x49c714,_0x1a29d0,_0x583b4b,{'groupId':_0x337574()});else{const _0x3c697b='suggestion:attribute:'+_0x49c714+':id:authorId:'+_0x337574();_0xcdf304['root']['markers']['set'](_0x3c697b,_0xcdf304);}break;}case'insert':{_0x3569d1['batch']['addOperation'](_0x1b30af),_0x25c297['model']['applyOperation'](_0x1b30af);const _0x256460=_0x1b30af['position'],_0x2dd850=_0x1b30af['howMany'],_0x274cdd=Xt(_0x25c297['model']['createRange'](_0x256460,_0x256460['getShiftedBy'](_0x2dd850)),_0x25c297['model']);if(_0x34144d)this['markInsertion'](_0x274cdd);else{const _0x209a06='suggestion:insertion:id:authorId:'+_0x337574();_0x274cdd['root']['markers']['set'](_0x209a06,_0x274cdd);}break;}case'split':{_0x3569d1['batch']['addOperation'](_0x1b30af),_0x25c297['model']['applyOperation'](_0x1b30af);const _0x26cc89=_0x1b30af['splitPosition'],_0x1269c6=_0x1b30af['moveTargetPosition'],_0x4202a4=_0x25c297['model']['createRange'](_0x26cc89,_0x1269c6);if(_0x34144d)this['markInsertion'](_0x25c297['model']['createRange'](_0x26cc89,_0x1269c6));else{const _0x2e4417='suggestion:insertion:id:authorId:'+_0x337574();_0x4202a4['root']['markers']['set'](_0x2e4417,_0x4202a4);}break;}case'move':if(_0x3569d1['batch']['addOperation'](_0x1b30af),_0x25c297['model']['applyOperation'](_0x1b30af),!_0x34144d){const _0x134ee1=_0x1b30af['getMovedRangeStart'](),_0x5a7284=_0x1b30af['howMany'];for(let _0x35856b=0x0;_0x35856b<_0x5a7284;_0x35856b++){const _0x4b956b=_0x134ee1['getShiftedBy'](_0x35856b)['nodeAfter'];_0x1c1e09['add'](_0x4b956b);}}break;case'remove':if(_0x34144d)_0x3569d1['batch']['addOperation'](_0x1b30af),_0x25c297['model']['applyOperation'](_0x1b30af);else{const _0x3c6b63=_0x1b30af['sourcePosition'],_0xb5cccd=_0x1b30af['howMany'],_0xe2cff3=new _0x126049(_0x3c6b63,_0xb5cccd);_0x3569d1['batch']['addOperation'](_0xe2cff3),_0x25c297['model']['applyOperation'](_0xe2cff3);}}for(const _0x41ccda of _0x1c1e09){const _0x56b9c6=_0x25c297['model']['createRangeOn'](_0x41ccda),_0x3be7e2='suggestion:formatBlock:$fakeWrap:id:authorId:'+_0x337574();_0x56b9c6['root']['markers']['set'](_0x3be7e2,Xt(_0x56b9c6,_0x25c297['model']));}});}['_setSuggestionRange'](_0x4bb287,_0x45a326){const _0x5f1c7e=_0x4bb287['getFirstMarker']();this['_model']['change'](_0x19435d=>{_0x19435d['updateMarker'](_0x5f1c7e,{'range':_0x45a326});});}['_addThreadToSuggestion'](_0x2ddba7){const _0x2e8505=_0x2ddba7['id'],_0x45d415=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x2e8505)||this['_commentsRepository']['addCommentThread']({'channelId':_0x45d415,'threadId':_0x2e8505,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x27ac4a=this['_commentsRepository']['getCommentThread'](_0x2e8505);_0x27ac4a['unbind']('isRemovable'),_0x27ac4a['isRemovable']=!0x1,_0x2ddba7['commentThread']=_0x27ac4a;}['_checkSuggestionCorrectness'](_0x3fb2e7,_0x3bb28c,_0x4255d2,_0x2d7370){if(_0x3fb2e7['type']!=_0x3bb28c||_0x3fb2e7['subType']!=_0x4255d2||_0x3fb2e7['creator']['id']!=_0x2d7370)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x4fb79c('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0xb60410,_0x2c9152){const _0x3d54ed=_0xb60410['getFirstRange']();if(_0x2c9152['isEqual'](_0x3d54ed))_0xb60410['removeMarkers']();else{if(_0x3d54ed['containsRange'](_0x2c9152)){const _0x2e324f=this['_model']['createPositionAt'](_0x2c9152['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0xb60410,this['_model']['createRange'](_0x3d54ed['start'],_0x2e324f));const _0x27580d=_0x337574(),_0x368650=_0xb60410['creator']['id'],_0x387d38=_0xb60410['type']+':'+_0xb60410['subType'];this['_setSuggestionData']({'id':_0x27580d,'type':_0x387d38,'createdAt':new Date(),'authorId':_0x368650,'data':_0xb60410['data'],'attributes':_0xb60410['attributes']});const _0x3d3c8f=this['_model']['createPositionAt'](_0x2c9152['end']['parent'],'after'),_0x3bf131=this['_model']['createRange'](_0x3d3c8f,_0x3d54ed['end']);this['_addSuggestionMarker'](_0x387d38,_0x27580d,_0x368650,_0x3bf131);}else{if(_0x3d54ed['containsPosition'](_0x2c9152['start'])){const _0x27c91f=this['_model']['createPositionAt'](_0x2c9152['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0xb60410,this['_model']['createRange'](_0x3d54ed['start'],_0x27c91f));}else{const _0x3a0ace=this['_model']['createPositionAt'](_0x2c9152['end']['parent'],'after');this['_setSuggestionRange'](_0xb60410,this['_model']['createRange'](_0x3a0ace,_0x3d54ed['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x19781f){for(const {suggestion:_0x4da3a9,meta:_0x49c25b}of this['_findSuggestions'](_0x19781f,'insertion')){if(!_0x49c25b['isOwn'])continue;const _0x9cdd68=_0x4da3a9['getRanges']();for(const _0x382305 of _0x9cdd68)if(!_0x19781f['getDifference'](_0x382305)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x162dfb){return this['editor']['plugins']['get']('Users')['getUser'](_0x162dfb);}['_getExternalAuthor'](_0x374ba3){const _0x1c4a01=this['editor']['plugins']['get']('Users'),_0x608b7c=_0x250706('external:'+_0x374ba3),_0x3ba532=_0x1c4a01['getUser'](_0x608b7c);return _0x3ba532||_0x1c4a01['addUser']({'id':_0x608b7c,'name':_0x374ba3});}['_createSuggestion'](_0x27690f,_0x323781,_0x2abcc9,_0x1f28f3,_0x49d933,_0x3ebb7a){const _0x1dd1a9=this['_getAuthorFromId'](_0x1f28f3);if(!_0x1dd1a9)throw new _0x4fb79c('track-changes-user-not-found',this,{'authorId':_0x1f28f3,'suggestionId':_0x2abcc9});const _0x303c42=this['_suggestionFactory']['buildSuggestion'](_0x27690f,_0x323781,_0x2abcc9,_0x1dd1a9,_0x49d933,_0x13fd08=>{this['_updateSuggestionData'](_0x2abcc9,{'attributes':_0x13fd08});const _0x44adbb=this['getSuggestion'](_0x2abcc9);this['_joinWithAdjacentSuggestions'](new Set([_0x44adbb])),this['_refreshSuggestionsChain'](new Set([_0x44adbb]));},_0x3ebb7a);return this['listenTo'](_0x303c42,'accept',()=>{this['_updateSuggestionData'](_0x2abcc9,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x303c42,'discard',()=>{this['_updateSuggestionData'](_0x2abcc9,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x2abcc9,_0x303c42),this['_suggestionState']['set'](_0x303c42,'notReady'),_0x303c42;}['_splitMarkerName'](_0x174dac){const _0x5c2322=_0x174dac['split'](':');return{'group':_0x5c2322[0x0],'type':_0x5c2322[0x1],'subType':_0x5c2322['length']>=0x5?_0x5c2322[0x2]:null,'id':_0x5c2322['length']<0x5?_0x5c2322[0x2]:_0x5c2322[0x3],'authorId':_0x5c2322['length']<0x5?_0x5c2322[0x3]:_0x5c2322[0x4],'markerCount':0x6==_0x5c2322['length']?_0x5c2322[0x5]:null};}['_breakSuggestionMarker'](_0xb89ca5,_0x65bb0d,_0x4e9a20){const _0x49186c=_0xb89ca5['getFirstRange'](),_0xdfd7d6=_0x49186c['start'],_0x49226e=_0x49186c['end'];this['_setSuggestionRange'](_0xb89ca5,this['_model']['createRange'](_0xdfd7d6,_0x65bb0d));const _0x47b7eb=_0x337574(),_0x59a1ca=_0xb89ca5['creator']['id'],_0x315efa=_0xb89ca5['type']+(_0xb89ca5['subType']?':'+_0xb89ca5['subType']:'');this['_setSuggestionData']({'id':_0x47b7eb,'type':_0x315efa,'createdAt':new Date(),'authorId':_0x59a1ca,'originalSuggestionId':_0xb89ca5['_originalSuggestionId']||_0xb89ca5['id'],'attributes':_0xb89ca5['attributes'],'data':_0xb89ca5['data']});const _0x17d507=this['_getAttributeKey'](_0xb89ca5);('formatBlock'==_0xb89ca5['type']||_0x17d507&&this['_isBlockAttribute'](_0x17d507))&&(_0x4e9a20=this['_model']['createPositionBefore'](_0x4e9a20['parent'])),this['_addSuggestionMarker'](_0x315efa,_0x47b7eb,_0x59a1ca,this['_model']['createRange'](_0x4e9a20,_0x49226e));}['_findSuggestions'](_0x52d4bb,_0x497679=null){const _0x1d1a16=[],_0x1aa2a8=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x52d4bb)||(_0x52d4bb=[_0x52d4bb]);for(const _0x3c806d of this['getSuggestions']()){if(!_0x3c806d['isInContent'])continue;if(_0x497679&&_0x3c806d['type']!=_0x497679)continue;let _0x2fe926=!0x1;for(const _0x16bb9a of _0x3c806d['getRanges']()){for(const _0xf8af40 of _0x52d4bb){const _0x44d32b=_0xf8af40['start']['isEqual'](_0x16bb9a['end'])||_0xf8af40['end']['isEqual'](_0x16bb9a['start']);if(_0x44d32b||_0xf8af40['getIntersection'](_0x16bb9a)){const _0x5af89a=_0xf8af40['containsRange'](_0x16bb9a)&&Jt(this['_model']['schema'],_0x16bb9a['start'],_0xf8af40),_0x2da5cd=_0x16bb9a['containsRange'](_0xf8af40)&&Jt(this['_model']['schema'],_0xf8af40['start'],_0x16bb9a);_0x1d1a16['push']({'suggestion':_0x3c806d,'meta':{'isOwn':_0x1aa2a8==_0x3c806d['author'],'isNextTo':_0x44d32b,'isInsideObject':_0x5af89a,'containsRangeInObject':_0x2da5cd}}),_0x2fe926=!0x0;break;}}if(_0x2fe926)break;}}return _0x1d1a16;}['_addSuggestionMarker'](_0x4e145b,_0x19801a,_0x41770c,_0x1e55c1,_0x295a72){this['_model']['change'](_0x160c0f=>{let _0x496f7f='suggestion:'+_0x4e145b+':'+_0x19801a+':'+_0x41770c;_0x295a72&&(_0x496f7f=_0x496f7f+':'+_0x295a72),_0x160c0f['addMarker'](_0x496f7f,{'range':_0x1e55c1,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x4e014a){const _0x98e93d=_0x4e014a['previous'],_0x373449=_0x4e014a['next'];_0x4e014a['previous']=null,_0x4e014a['next']=null,null!=_0x98e93d&&_0x98e93d['next']==_0x4e014a&&(_0x98e93d['next']=_0x373449),null!=_0x373449&&_0x373449['previous']==_0x4e014a&&(_0x373449['previous']=_0x98e93d),'ready'==this['_suggestionState']['get'](_0x4e014a)&&(this['_suggestionState']['set'](_0x4e014a,'removed'),this['fire']('suggestionUnloaded',_0x4e014a,_0x98e93d,_0x373449));}['_setSuggestionData'](_0x109514){const _0x2598cc=_0x109514['id'],_0x2f75a3=this['addSuggestionData'](_0x109514);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x50de33=this['editor']['plugins']['get']('PendingActions'),_0x1af6d4=_0x2f75a3['hasComments'],_0x2e5c5b=_0x2f75a3['subType']?_0x2f75a3['type']+':'+_0x2f75a3['subType']:_0x2f75a3['type'],_0x19e345=this['editor']['locale'],_0x11f4a0=_0x50de33['add'](o(_0x19e345,'PENDING_ACTION_SUGGESTION')),_0xc9645a={'id':_0x2598cc,'type':_0x2e5c5b,'hasComments':_0x1af6d4,'data':_0x109514['data']||null,'originalSuggestionId':_0x109514['originalSuggestionId']||null,'attributes':_0x2f75a3['attributes']};this['_adapter']['addSuggestion'](_0xc9645a)['then'](_0x1f26ee=>{_0x2f75a3['_saved']=!0x0,_0x50de33['remove'](_0x11f4a0),_0x1f26ee&&_0x1f26ee['createdAt']&&(this['_suggestions']['get'](_0x2598cc)['createdAt']=_0x1f26ee['createdAt']);})['catch'](_0xaff9b9=>{throw _0xe7b98c('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x2f75a3['discard']();}),_0x2f75a3['stopListening'](),this['_suggestions']['delete'](_0x2f75a3['id']),this['_suggestionState']['delete'](_0x2f75a3),_0xaff9b9;});}return _0x2f75a3;}['_isBlockAttribute'](_0x4be76b){return this['_blockAttributeKeys']['has'](_0x4be76b);}['_isInlineAttribute'](_0x4feed9){return this['_inlineAttributeKeys']['has'](_0x4feed9);}['_updateSuggestionData'](_0x4e540b,_0x428060){const _0x2966eb=this['editor']['plugins']['get']('PendingActions'),_0x27262e=this['getSuggestion'](_0x4e540b);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x27262e['_saved']){const _0x34e205=_0x2966eb['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4e540b,_0x428060)['then'](()=>{_0x2966eb['remove'](_0x34e205);});}else _0x27262e['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4e540b,_0x428060);});}}['_getSuggestionData'](_0x3ec840){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x4fb79c('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x3ec840);}['_handleNewSuggestionMarker'](_0x32a97b){const {id:_0x380299,type:_0x48446e,subType:_0x378343,authorId:_0x27dd2f}=this['_splitMarkerName'](_0x32a97b),_0x26b330=this['_suggestions']['get'](_0x380299)||this['_createSuggestion'](_0x48446e,_0x378343,_0x380299,_0x27dd2f,{});switch(this['_checkSuggestionCorrectness'](_0x26b330,_0x48446e,_0x378343,_0x27dd2f),this['_suggestionState']['get'](_0x26b330)){case'notReady':this['_getSuggestionData'](_0x380299)['then'](_0x2ca298=>{let _0x346eaf=Promise['resolve']();_0x2ca298['hasComments']&&(_0x346eaf=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x380299})),_0x346eaf['then'](()=>{this['addSuggestionData'](_0x2ca298)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x26b330,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x380299,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x26b330,'ready'),this['fire']('suggestionLoaded',_0x26b330);break;case'ready':this['fire']('suggestionChanged',_0x26b330);}return _0x26b330['addMarkerName'](_0x32a97b),_0x26b330;}['_refreshSuggestionsChain'](_0x4d309){const _0x487087=Array['from'](_0x4d309),_0x217ac4=_0x487087['filter'](_0x24e4c1=>'attribute'==_0x24e4c1['type']);this['_refreshAttributeSuggestionsChain'](_0x217ac4);const _0x2ebaf1=_0x487087['filter'](_0x22af0f=>!_0x22af0f['isMultiRange']&&'attribute'!=_0x22af0f['type']),_0x5a85e8=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x19d7ec=>!_0x19d7ec['isMultiRange']&&'attribute'!=_0x19d7ec['type']),_0x582b26=_0x5a85e8['filter'](_0x46b847=>!_0x4d309['has'](_0x46b847)),_0x5db3da=new Map(_0x5a85e8['map'](_0x45ac69=>[_0x45ac69,this['_suggestionFactory']['getSuggestionCallback'](_0x45ac69['type'],_0x45ac69['subType'],'chain')])),_0xe94072=new Map(_0x5a85e8['map'](_0x51453d=>[_0x51453d,_0x51453d['getFirstRange']()])),_0x47bc61=new Set(),_0x289234=new Set();for(let _0x1c5f7f=0x0;_0x1c5f7f<_0x2ebaf1['length'];_0x1c5f7f++)_0x5d1016(_0x2ebaf1[_0x1c5f7f],_0x2ebaf1,_0x1c5f7f+0x1);for(let _0x356329=0x0;_0x356329<_0x2ebaf1['length'];_0x356329++)_0x5d1016(_0x2ebaf1[_0x356329],_0x582b26,0x0);const _0x553434=new Set();for(let _0xfeae31=0x0;_0xfeae31<_0x2ebaf1['length'];_0xfeae31++){const _0x49bb25=_0x2ebaf1[_0xfeae31];!_0x289234['has'](_0x49bb25)&&_0x49bb25['previous']&&(_0x553434['add'](_0x49bb25['previous']),_0x49bb25['previous']['next']===_0x49bb25&&(_0x49bb25['previous']['next']=null),_0x49bb25['previous']=null),!_0x47bc61['has'](_0x49bb25)&&_0x49bb25['next']&&(_0x553434['add'](_0x49bb25['next']),_0x49bb25['next']['previous']===_0x49bb25&&(_0x49bb25['next']['previous']=null),_0x49bb25['next']=null);}function _0x5d1016(_0x605fbc,_0x591f5b,_0x1fe976){for(let _0x533489=_0x1fe976;_0x533489<_0x591f5b['length'];_0x533489++){const _0xdc01bc=_0xcbf5d3(_0x605fbc,_0x591f5b[_0x533489]);_0xdc01bc&&(_0xdc01bc[0x0]['next']=_0xdc01bc[0x1],_0xdc01bc[0x1]['previous']=_0xdc01bc[0x0],_0x47bc61['add'](_0xdc01bc[0x0]),_0x289234['add'](_0xdc01bc[0x1]));}}function _0xcbf5d3(_0x5d1565,_0x5d3070){if(_0x5d1565['author']['id']!==_0x5d3070['author']['id'])return null;const _0xebc721=_0x5db3da['get'](_0x5d1565)(_0x5d1565,_0x5d3070,_0xe94072['get'](_0x5d1565),_0xe94072['get'](_0x5d3070));if(!_0xebc721)return null;return _0x5db3da['get'](_0x5d3070)(_0x5d1565,_0x5d3070,_0xe94072['get'](_0x5d1565),_0xe94072['get'](_0x5d3070))?_0xebc721[0x1]['commentThread']&&_0xebc721[0x1]['commentThread']['length']?null:_0xebc721:null;}_0x553434['size']&&this['_refreshSuggestionsChain'](_0x553434);}['_refreshAttributeSuggestionsChain'](_0xcc8cc1){if(0x0==_0xcc8cc1['length'])return;const _0x1ed954=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x516daa=>'attribute'==_0x516daa['type']&&_0x516daa['_isDataLoaded']),_0x36a35b=[],_0x5451e2=new Map();for(const _0x23f342 of _0x1ed954){const _0x87e8ee=_0x250706(_0x23f342['attributes']);_0x5451e2['has'](_0x87e8ee)||(_0x5451e2['set'](_0x87e8ee,_0x36a35b['length']),_0x36a35b['push']([]));const _0x3cc956=_0x5451e2['get'](_0x87e8ee);_0x36a35b[_0x3cc956]['push'](_0x23f342);}!(function(){_0x36a35b['sort']((_0x3a5369,_0x56e77c)=>{const _0x292b31=_0x3a5369[0x0]['createdAt'],_0xced195=_0x56e77c[0x0]['createdAt'];return _0x292b31==_0xced195?_0x3a5369[0x0]['attributes']['groupId']<_0x56e77c[0x0]['attributes']['groupId']?-0x1:0x1:_0x292b31<_0xced195?-0x1:0x1;});for(const _0x1bafa2 of _0x36a35b)_0x1bafa2['sort']((_0x10d74e,_0x5d1280)=>_0x10d74e['id']<_0x5d1280['id']?-0x1:0x1);}());for(let _0x26d097=0x0;_0x26d097<_0x36a35b['length'];_0x26d097++){if(0x0==_0x36a35b[_0x26d097]['length'])continue;const _0x4fb3a6=[];for(let _0x5a935d=_0x26d097+0x1;_0x5a935d<_0x36a35b['length'];_0x5a935d++)0x0!=_0x36a35b[_0x5a935d]['length']&&_0x566240(_0x36a35b[_0x26d097],_0x36a35b[_0x5a935d])&&_0x4fb3a6['push'](_0x5a935d);for(const _0x79c80d of _0x4fb3a6)_0x36a35b[_0x26d097]=_0x36a35b[_0x26d097]['concat'](_0x36a35b[_0x79c80d]),_0x36a35b[_0x79c80d]=[];}for(const _0x5a2337 of _0x36a35b)for(let _0x16fe19=0x0;_0x16fe19<_0x5a2337['length'];_0x16fe19++){const _0x1c2514=_0x5a2337[_0x16fe19+0x1]||null;_0x5a2337[_0x16fe19]['next']!==_0x1c2514&&(_0x5a2337[_0x16fe19]['next']=_0x1c2514);}for(const _0x17923f of _0x36a35b)for(let _0x323370=0x0;_0x323370<_0x17923f['length'];_0x323370++){const _0x5883a4=_0x17923f[_0x323370-0x1]||null;_0x17923f[_0x323370]['previous']!==_0x5883a4&&(_0x17923f[_0x323370]['previous']=_0x5883a4);}function _0x566240(_0x348fff,_0x183b83){if(_0x348fff[0x0]['attributes']['groupId']!==_0x183b83[0x0]['attributes']['groupId']&&_0x348fff[0x0]['author']!==_0x183b83[0x0]['author'])return!0x1;if(!function(_0x5395ab,_0x3265ea){if(!_0x5395ab['hasComments']&&!_0x3265ea['hasComments'])return!0x0;if(_0x5395ab['hasComments']&&_0x3265ea['hasComments'])return!0x1;if(_0x5395ab['hasComments']&&_0x3265ea['createdAt']<_0x5395ab['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x3265ea['hasComments']&&_0x5395ab['createdAt']<_0x3265ea['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x348fff[0x0],_0x183b83[0x0]))return!0x1;const _0x1e099e=Gt(_0x348fff[0x0]['attributes'],['groupId','trackingSessionId']),_0x4fc323=Gt(_0x183b83[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x313a6c(_0x1e099e,_0x4fc323))return!0x1;if(_0x348fff[0x0]['attributes']['groupId']==_0x183b83[0x0]['attributes']['groupId'])return!0x0;if(_0x348fff[0x0]['attributes']['trackingSessionId']!==_0x183b83[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x348fff['every'](_0x5cb869=>_0x183b83['some'](_0x5b0c53=>_0x5cb869['getFirstRange']()['isEqual'](_0x5b0c53['getFirstRange']())))&&_0x183b83['every'](_0x2bf438=>_0x348fff['some'](_0x401329=>_0x2bf438['getFirstRange']()['isEqual'](_0x401329['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x37ba1f){const _0x380ee5=Array['from'](_0x37ba1f),_0x59be6a=this['getSuggestions']({'skipNotAttached':!0x0}),_0xe47511=_0x59be6a['filter'](_0x318fdb=>!_0x37ba1f['has'](_0x318fdb)),_0x3a5225=new Map(_0x380ee5['map'](_0x5a52a0=>[_0x5a52a0,this['_suggestionFactory']['getSuggestionCallback'](_0x5a52a0['type'],_0x5a52a0['subType'],'join')])),_0x6e8f28=new Map(_0x59be6a['map'](_0x57bde6=>[_0x57bde6,_0x57bde6['getRanges']()]));for(let _0x2dad1e=0x0;_0x2dad1e<_0x380ee5['length'];_0x2dad1e++){if(_0x3ea918(this,_0x380ee5[_0x2dad1e],_0x380ee5,_0x2dad1e+0x1))return!0x0;}for(let _0x24f099=0x0;_0x24f099<_0x380ee5['length'];_0x24f099++){if(_0x3ea918(this,_0x380ee5[_0x24f099],_0xe47511,0x0))return!0x0;}return!0x1;function _0x3ea918(_0x40abaf,_0xb59c33,_0x369246,_0x558b53){for(let _0x150ecb=_0x558b53;_0x150ecb<_0x369246['length'];_0x150ecb++){const _0x4cb869=_0x369246[_0x150ecb];if(_0x4cb869['type']!==_0xb59c33['type']||_0x4cb869['author']['id']!==_0xb59c33['author']['id']||_0x4cb869['subType']!==_0xb59c33['subType'])continue;if(!ee(_0xb59c33,_0x4cb869))continue;if('attribute'==_0xb59c33['type']&&_0xb59c33['data']['oldValue']!=_0x4cb869['data']['oldValue'])continue;if('attribute'==_0xb59c33['type']&&_0x40abaf['_isBlockAttribute'](_0xb59c33['data']['key']))continue;if('formatBlock'==_0xb59c33['type']){const _0x4cd32a=_0x40abaf['editor']['model'],_0x53d11d=_0xb59c33['getContainedElement']();if(_0x53d11d&&(_0x4cd32a['schema']['isObject'](_0x53d11d)||_0x4cd32a['schema']['isLimit'](_0x53d11d)))continue;}const _0x268f31=_0x3a5225['get'](_0xb59c33),_0x4ce19d=_0x6e8f28['get'](_0xb59c33),_0x2e0c0d=_0x6e8f28['get'](_0x4cb869),_0x56f457=_0xb59c33['commentThread']&&_0xb59c33['commentThread']['length'],_0x400b62=_0x4cb869['commentThread']&&_0x4cb869['commentThread']['length'];if(!_0x56f457&&_0x268f31(_0x2e0c0d,_0x4ce19d))return _0x40abaf['_joinSuggestions'](_0x4cb869,_0xb59c33),_0x6e8f28['delete'](_0xb59c33),!0x0;if(!_0x400b62&&_0x268f31(_0x4ce19d,_0x2e0c0d))return _0x40abaf['_joinSuggestions'](_0xb59c33,_0x4cb869),_0x6e8f28['delete'](_0x4cb869),!0x0;}return!0x1;}}['_joinSuggestions'](_0x274e0c,_0x5e3113){if(_0x274e0c['isMultiRange']){for(const _0x59b4e0 of _0x5e3113['getRanges']())_0x274e0c['addRange'](_0x59b4e0);}else{const _0x5c7954=_0x5e3113['getFirstRange']()['end'];this['_setSuggestionRange'](_0x274e0c,this['_model']['createRange'](_0x274e0c['getFirstRange']()['start'],_0x5c7954));}_0x5e3113['removeMarkers']();}['_getMarkerAnnouncementText'](_0x46a91c,_0x542e7c,_0x3474e1){const _0x364e2b=_0x46a91c['startsWith']('format')||_0x46a91c['startsWith']('attribute')?'FORMATTING':_0x46a91c['toUpperCase']();return o(this['editor']['locale'],_0x542e7c+'_'+_0x364e2b+'_SUGGESTION_ANNOUNCEMENT',_0x3474e1);}['_initAriaMarkerChangeAnnouncements'](){const _0x1f986f=this['editor'];if(!_0x1f986f['ui'])return;const {ariaLiveAnnouncer:_0x147332}=_0x1f986f['ui'];_0x2f4d24(this['_model'],({left:_0x58a508,entered:_0xfe19ca})=>{for(const _0x44ebfd of _0x58a508){const {group:_0x4c94a8,type:_0x4ea85f}=this['_splitMarkerName'](_0x44ebfd['name']);if('suggestion'===_0x4c94a8){_0x147332['announce'](this['_getMarkerAnnouncementText'](_0x4ea85f,'LEAVE'));break;}}for(const _0x430dd4 of _0xfe19ca){const {group:_0x565b54,type:_0xa9ee18}=this['_splitMarkerName'](_0x430dd4['name']);if('suggestion'===_0x565b54){_0x147332['announce'](this['_getMarkerAnnouncementText'](_0xa9ee18,'ENTER',_0x54ef2c(_0x1750a5)));break;}}});}['_processAttributeChanges'](_0x1183f6){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3fa60d=this['editor'],_0x3ed3de=_0x3fa60d['model']['document']['differ']['getChanges']();if(0x0==_0x3ed3de['length'])return!0x1;const _0x27b6bf=[],_0x25e8a4=_0x3ed3de['filter'](_0x482996=>'attribute'==_0x482996['type']),_0x3433fd=_0x3ed3de['filter'](_0x555edb=>'insert'==_0x555edb['type']&&'$text'!=_0x555edb['name']),_0x5a9d34=_0x3ed3de['filter'](_0x2c2a16=>'remove'==_0x2c2a16['type']&&'$text'!=_0x2c2a16['name']);for(const _0x34ea55 of _0x25e8a4)_0x27b6bf['push']({'key':_0x34ea55['attributeKey'],'newValue':_0x34ea55['attributeNewValue'],'oldValue':_0x34ea55['attributeOldValue'],'range':Yt(_0x34ea55['range'],_0x3fa60d['model'])});for(const _0x17cc3f of _0x3433fd){const _0x727539=_0x5a9d34['find'](_0x5267b5=>_0x5267b5['position']['isEqual'](_0x17cc3f['position']));_0x727539&&_0x27b6bf['push']({'key':m,'newValue':_0x17cc3f['name'],'oldValue':_0x727539['name'],'range':_0x3fa60d['model']['createRangeOn'](_0x17cc3f['position']['nodeAfter'])});}return 0x0!=_0x27b6bf['length']&&this['_reduceExistingSuggestions'](_0x1183f6,_0x27b6bf);}['_processAttributeSuggestions'](_0x283f39){let _0x438551=!0x1;const _0x586e00=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4e0912=>_0x4e0912['data']['newRange']&&_0x4e0912['name']['startsWith']('suggestion:attribute:'));for(const _0x20cad4 of _0x586e00){const {subType:_0x3df632,id:_0x1724a2}=this['_splitMarkerName'](_0x20cad4['name']),_0x1562f2=_0x3df632['split']('|')[0x0];for(const _0x2ba7fe of this['getSuggestions']({'skipNotAttached':!0x0}))_0x2ba7fe['id']!=_0x1724a2&&'attribute'==_0x2ba7fe['type']&&_0x2ba7fe['data']&&_0x2ba7fe['data']['key']==_0x1562f2&&_0x2ba7fe['getFirstRange']()['isIntersecting'](_0x20cad4['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x2ba7fe,_0x20cad4['data']['newRange'],_0x283f39),_0x438551=!0x0);}return _0x438551;}['recordAttributeChanges'](_0xf82d05){this['_recordAttributeSuggestions']=!0x0,_0xf82d05();}['_isRegisteredAttribute'](_0x44d12e){const _0x4a4f95=this['_isBlockAttribute'](_0x44d12e),_0x9c4f7b=this['_isInlineAttribute'](_0x44d12e);return _0x4a4f95||_0x9c4f7b;}['_reduceExistingSuggestions'](_0x4691dd,_0x1a76da){if(0x0==_0x1a76da['length'])return!0x1;let _0x3e445c=!0x1;for(const _0x5c7a43 of _0x1a76da){const _0x2ddbbe=this['_findSuggestions'](_0x5c7a43['range'],'attribute')['filter'](_0x3d4bee=>!_0x3d4bee['meta']['isNextTo'])['map'](_0xe490b3=>_0xe490b3['suggestion']),_0x1e652c=_0x250706({'newValue':_0x5c7a43['newValue']});_0x2ddbbe['filter'](_0x5c9b05=>{const [_0x29bc12,_0x45455d]=_0x5c9b05['subType']['split']('|');return _0x29bc12==_0x5c7a43['key']&&_0x45455d!=_0x1e652c;})['forEach'](_0x50ae5c=>{this['_reduceSuggestionAttributeRange'](_0x50ae5c,_0x5c7a43['range'],_0x4691dd),_0x3e445c=!0x0;});}return _0x3e445c;}['_reduceSuggestionAttributeRange'](_0x25e2e3,_0x553033,_0x39d8bc){const _0x1cf657=_0x25e2e3['getFirstRange']()['getDifference'](_0x553033);0x0!==_0x1cf657['length']?0x1!==_0x1cf657['length']?this['_breakSuggestionMarker'](_0x25e2e3,_0x553033['start'],_0x553033['end']):this['_setSuggestionRange'](_0x25e2e3,_0x1cf657[0x0]):_0x39d8bc['removeMarker'](_0x25e2e3['getFirstMarker']());}}class Lt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x24604e){this['_editor']=_0x24604e,this['_model']=_0x24604e['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x12e8a9,_0x1d0258,_0x4a0815,_0xb89f2d,_0x212578,_0x2b43b0,_0x13a6ee){return new R(this['_model'],{'type':_0x12e8a9,'subType':_0x1d0258,'id':_0x4a0815,'originalSuggestionId':_0x13a6ee,'author':_0xb89f2d,'creator':_0xb89f2d,'attributes':_0x212578,'onAttributesChange':_0x2b43b0,'onAccept':(..._0x5d602c)=>this['getSuggestionCallback'](_0x12e8a9,_0x1d0258,'accept')(..._0x5d602c),'onDiscard':(..._0x4529fd)=>this['getSuggestionCallback'](_0x12e8a9,_0x1d0258,'discard')(..._0x4529fd)});}['registerCustomCallback'](_0x4fc66e,_0x30b107,_0x392495,_0x51dad5){const _0x598864=_0x4fc66e+':'+_0x30b107+':'+_0x392495;this['_customCallbacks']['set'](_0x598864,_0x51dad5);}['getSuggestionCallback'](_0x52a19a,_0x5cb6ba,_0x10c16a){const _0x10614b=_0x52a19a+':'+_0x5cb6ba+':'+_0x10c16a;return this['_customCallbacks']['get'](_0x10614b)||this['_defaultCallbacks']['get'](_0x52a19a+':'+_0x10c16a);}['_registerDefaultCallbacks'](){const _0x531228=()=>!0x1,_0x1f47b4=_0x3671db=>{_0x3671db['sort']((_0x34f242,_0x14f21b)=>_0x34f242['start']['isBefore'](_0x14f21b['start'])?0x1:-0x1),this['_model']['change'](_0x15fe6f=>{for(const _0xd90a71 of _0x3671db){let _0x17ed38;_0x17ed38=_0xd90a71['end']['isAtEnd']&&_0xd90a71['end']['parent']==_0xd90a71['start']['nodeAfter']?_0x15fe6f['createSelection'](_0xd90a71['start']['nodeAfter'],'on'):_0x15fe6f['createSelection'](_0xd90a71),this['_model']['deleteContent'](_0x17ed38,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x2d88da=(_0x3d6d08,_0x2e3b04)=>{_0x2e3b04&&this['_model']['change'](_0x303b71=>{const {commandName:_0xf13282,commandParams:_0x4009bc=[]}=_0x2e3b04,_0x14c7b5=_0x3d6d08['map'](_0x2db44d=>(Kt(_0x2db44d)&&(_0x2db44d=this['_model']['createRange'](_0x2db44d['end'])),_0x2db44d))['filter'](_0x32d2d0=>'$graveyard'!==_0x32d2d0['root']['rootName']);if(_0x14c7b5['length']<0x1)return;const _0x8316d0=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x1f8d71=>_0x4c47d7['fromRange'](_0x1f8d71));_0x303b71['setSelection'](_0x14c7b5);for(const _0x5932fa of this['_editor']['commands']['commands']())_0x5932fa['refresh']();_0x4009bc['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0xf13282,..._0x4009bc);const _0x399354=_0x8316d0['filter'](_0x22ffef=>'$graveyard'!=_0x22ffef['root']['rootName']);_0x399354['length']>0x0&&_0x303b71['setSelection'](_0x399354);for(const _0xdbefd4 of _0x8316d0)_0xdbefd4['detach']();});},_0x3d6dc0=(_0x34a241,_0x1edb9f)=>0x1==_0x34a241['length']&&0x1==_0x1edb9f['length']&&_0x34a241[0x0]['end']['isEqual'](_0x1edb9f[0x0]['start']),_0x3258d1=(_0x372d30,_0x757532,_0x17083d,_0xd49ce7)=>te(_0x372d30,_0x757532,_0x17083d,_0xd49ce7)?[_0x372d30,_0x757532]:te(_0x757532,_0x372d30,_0xd49ce7,_0x17083d)?[_0x757532,_0x372d30]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x531228),this['_defaultCallbacks']['set']('insertion:discard',_0x1f47b4),this['_defaultCallbacks']['set']('insertion:join',_0x3d6dc0),this['_defaultCallbacks']['set']('insertion:chain',_0x3258d1),this['_defaultCallbacks']['set']('deletion:accept',_0x1f47b4),this['_defaultCallbacks']['set']('deletion:discard',_0x531228),this['_defaultCallbacks']['set']('deletion:join',_0x3d6dc0),this['_defaultCallbacks']['set']('deletion:chain',_0x3258d1),this['_defaultCallbacks']['set']('formatInline:accept',_0x2d88da),this['_defaultCallbacks']['set']('formatInline:discard',_0x531228),this['_defaultCallbacks']['set']('formatInline:join',_0x3d6dc0),this['_defaultCallbacks']['set']('formatInline:chain',_0x531228),this['_defaultCallbacks']['set']('formatBlock:accept',_0x2d88da),this['_defaultCallbacks']['set']('formatBlock:discard',_0x531228),this['_defaultCallbacks']['set']('formatBlock:join',_0x3d6dc0),this['_defaultCallbacks']['set']('formatBlock:chain',_0x531228),this['_defaultCallbacks']['set']('attribute:accept',_0x531228),this['_defaultCallbacks']['set']('attribute:discard',(_0x1d5c64,_0x4ea561)=>{if(!_0x4ea561)return;const _0xe28551=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x5a054f=>{if(_0x4ea561['key']==m)for(const _0x5e8e23 of _0x1d5c64){const _0x41c300=_0x5e8e23['start']['nodeAfter'],_0x4c6672=_0x4ea561['oldValue'];_0x5a054f['rename'](_0x41c300,_0x4c6672);}else{if(_0xe28551['_isBlockAttribute'](_0x4ea561['key'])){for(const _0x4c850d of _0x1d5c64)void 0x0!==_0x4ea561['oldValue']?_0x5a054f['setAttribute'](_0x4ea561['key'],_0x4ea561['oldValue'],_0x4c850d['start']['nodeAfter']):_0x5a054f['removeAttribute'](_0x4ea561['key'],_0x4c850d['start']['nodeAfter']);}else{for(const _0x1573e6 of _0x1d5c64)_0x4ea561['oldValue']?_0x5a054f['setAttribute'](_0x4ea561['key'],_0x4ea561['oldValue'],_0x1573e6):_0x5a054f['removeAttribute'](_0x4ea561['key'],_0x1573e6);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x3d6dc0);}}function Jt(_0x13a20f,_0x446650,_0x13268a){for(const _0x368f0d of _0x446650['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x368f0d['root']==_0x368f0d)return!0x1;if(!_0x13268a['containsItem'](_0x368f0d))return!0x1;if(_0x13a20f['isObject'](_0x368f0d)||_0x13a20f['isLimit'](_0x368f0d))return!0x0;}return!0x1;}function Kt(_0x21ba89){return _0x21ba89['end']['parent']==_0x21ba89['start']['nodeAfter']&&_0x21ba89['end']['isAtStart'];}function Ht(_0x157c88,_0x4a3661,_0x30c6e3,_0x6d5428){const _0x2d9704=_0x5a408a=>!_0x5a408a['item']['is']('$textProxy')&&!_0x6d5428['isObject'](_0x5a408a['item']),_0x4029c9=_0x157c88['start']['getLastMatchingPosition'](_0x2d9704),_0x13b396=_0x157c88['end']['getLastMatchingPosition'](_0x2d9704,{'direction':'backward'});return(!_0x157c88['start']['isEqual'](_0x4029c9)||!_0x157c88['end']['isEqual'](_0x13b396))&&(_0x4029c9['isBefore'](_0x13b396)?_0x30c6e3['updateMarker'](_0x4a3661,{'range':_0x30c6e3['createRange'](_0x4029c9,_0x13b396)}):_0x30c6e3['removeMarker'](_0x4a3661),!0x0);}function Wt(_0x56c854){return _0x250706(_0x56c854);}function qt(_0x31cc0f){const _0x1937b8=_0x31cc0f['start']['nodeAfter'];return _0x1937b8&&_0x1937b8['is']('element');}function zt(_0x2ca7cd){return Kt(_0x2ca7cd)||function(_0x3b2336){return _0x3b2336['start']['parent']==_0x3b2336['end']['nodeBefore']&&_0x3b2336['start']['isAtEnd'];}(_0x2ca7cd);}function Qt(_0x203097,_0x447c6f){try{const _0x345ee4=_0x203097['getRange']();for(const _0x903dd of _0x447c6f)if(_0x203097!==_0x903dd&&_0x345ee4&&_0x345ee4['isIntersecting'](_0x903dd['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Xt(_0x23a951,_0x33a985){const _0x2c08ad=_0x23a951['end']['nodeBefore'];if(_0x2c08ad&&_0x2c08ad['is']('element')&&_0x33a985['schema']['isBlock'](_0x2c08ad)&&!_0x33a985['schema']['isObject'](_0x2c08ad)){const _0x5ed4e3=_0x33a985['createPositionAt'](_0x2c08ad,'end');return _0x33a985['createRange'](_0x23a951['start'],_0x5ed4e3);}return _0x23a951;}function Yt(_0x43b825,_0x22ce8b){return null==_0x43b825['end']['nodeBefore']&&_0x43b825['end']['parent']==_0x43b825['start']['nodeAfter']?Zt(_0x43b825['start']['nodeAfter'],_0x22ce8b):_0x43b825;}function Zt(_0xffcaee,_0x53ac2a){const _0x32d901=_0x53ac2a['schema']['isObject'](_0xffcaee)||_0x53ac2a['schema']['isSelectable'](_0xffcaee);return _0x53ac2a['createRange'](_0x53ac2a['createPositionAt'](_0xffcaee,'before'),_0x32d901?_0x53ac2a['createPositionAfter'](_0xffcaee):_0x53ac2a['createPositionAt'](_0xffcaee,'end'));}function te(_0x252161,_0x3849f1,_0x5dd001,_0x1b05b7){return!!ee(_0x252161,_0x3849f1)&&_0x5dd001['end']['isEqual'](_0x1b05b7['start']);}function ee(_0x46d132,_0x34c17a){if(!_0x46d132['_isDataLoaded']||!_0x34c17a['_isDataLoaded'])return!0x1;const _0xa6d521=new Set(Object['keys'](_0x46d132['attributes'])),_0x41dd2f=new Set(Object['keys'](_0x34c17a['attributes']));if(_0xa6d521['delete']('groupId'),_0x41dd2f['delete']('groupId'),0x0==_0xa6d521['size']&&0x0==_0x41dd2f['size'])return!0x0;if(_0xa6d521['size']!=_0x41dd2f['size'])return!0x1;const _0x1ad203={..._0x46d132['attributes']},_0x33b382={..._0x34c17a['attributes']};return delete _0x1ad203['groupId'],delete _0x33b382['groupId'],JSON['stringify'](_0x1ad203)==JSON['stringify'](_0x33b382);}function ie(_0x34c69b,_0x3a85e8){const _0x390e1d=ne(_0x34c69b['attributes']),_0x196223=ne(_0x3a85e8);if(!_0x34c69b['_isDataLoaded'])return!0x1;for(const _0xe2af6c of Object['keys'](_0x196223))if(!_0x313a6c(_0x390e1d[_0xe2af6c],_0x196223[_0xe2af6c]))return!0x1;return!0x0;}function ne(_0x1fdb7e){const _0x12a763=Object['assign']({},_0x1fdb7e);return delete _0x12a763['skipNestingCheck'],delete _0x12a763['tablePasteChainId'],_0x12a763;}function se(_0x594757){return _0x594757['split']('|')[0x0];}class be extends/* #__PURE__ -- @preserve */
26
- _0x4426f7(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x35017b,_0x5e889c,_0x376e81,_0x1e4df4){super(),this['model']=_0x5e889c,this['view']=_0x376e81,this['commentThreadController']=_0x1e4df4,this['_editor']=_0x35017b,this['_acceptCommand']=_0x35017b['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x35017b['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x1c04b3,_0x5b7860)=>_0x1c04b3||_0x5b7860),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x2e9364=>_0x2e9364&&this['_editor']['model']['canEditAt'](_0x5e889c['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x4d01f0=>_0x4d01f0&&this['_editor']['model']['canEditAt'](_0x5e889c['getRanges']())),this['_pendingAction']=null,_0x376e81['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x376e81,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x376e81,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x376e81,'change:isDirty',()=>{_0x376e81['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 _0x37a91b=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x37a91b);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x1a9b8b{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x50abc9,_0x4477bd,_0x511c14,_0x5052bc){super(_0x50abc9),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x564bb6(_0x50abc9,o(_0x50abc9,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x4477bd['authoredAt']),this['bind']('authoredAt')['to'](_0x4477bd),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',_0x4477bd,'authoredAt',this,'descriptionParts',(_0x462eda,_0x5481c6,_0x18928f)=>{const _0x28c29e=_0x18928f['map'](_0x169171=>ls(_0x169171['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x462eda-0x1,_0x4477bd['author']['name'],_0x5481c6?_0x5052bc['formatDateTime'](_0x5481c6):'',new DOMParser()['parseFromString'](_0x28c29e,'text/html')['body']['textContent']]);}),this['focusables']=new _0x124ccd(),this['focusTracker']=new _0x57db96(),this['keystrokes']=new _0x23845a(),this['focusCycler']=new _0x3897c2({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x1cded8=>_0x1cded8['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x4477bd,this['_localUser']=_0x511c14,this['_config']=_0x5052bc,_0x5052bc['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x3c22e6(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x30b7b2}=this['_config'];this['commentsListView']=new _0x30b7b2(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',_0x1ea3c2=>_0x1ea3c2+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x56a4e3,_0x2a105e)=>_0x56a4e3||!!_0x2a105e);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x33f4fc}=this['_config'],_0x4c4701=new _0x33f4fc(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x38c683=_0x4c4701['commentInputView'];return _0x4c4701['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x38c683,'value',(_0x395206,_0x13c9cf,_0x5118f9)=>!!_0x5118f9||_0x395206&&!_0x13c9cf),_0x38c683['on']('submit',(_0x57952b,_0x5a3530)=>{this['fire']('addComment',_0x5a3530),_0x38c683['editor']['setData']('');}),_0x38c683['on']('cancel',()=>this['focus']()),_0x38c683['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4c4701;}}class Te extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x53cc71,_0x33fa8a,_0x5261de,_0xc8dcf7){super(_0x53cc71,_0x33fa8a,_0x5261de,_0xc8dcf7),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x29d4bb=>_0x29d4bb&&_0x29d4bb[0x0]?_0x29d4bb[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x37e6e9,_0x104df2)=>{let _0x16b920='';for(const _0x409915 of _0x37e6e9)_0x16b920+='<p>'+ls(_0x409915['content'],_0x409915['color'])+'</p>';return _0x104df2?_0x16b920:_0x4146b1(_0x16b920,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0xc8dcf7['SuggestionView'](_0x53cc71,_0x33fa8a,{'formatDateTime':_0xc8dcf7['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 _0xb50f8f=this['bindTemplate'],_0xd4e94f=[this['suggestionView']];return this['commentsListView']&&_0xd4e94f['push'](this['commentsListView']),this['commentThreadInputView']&&_0xd4e94f['push'](this['commentThreadInputView']),_0xd4e94f['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0xb50f8f['if']('isActive','ck-suggestion-wrapper--active'),_0xb50f8f['to']('type',_0x2ab68b=>'ck-suggestion-'+_0x2ab68b),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':_0xb50f8f['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0xd4e94f};}['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 Le extends _0x1a9b8b{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x141e26,_0x3d4a8a,_0x458020){super(_0x141e26),this['_model']=_0x3d4a8a,this['_config']=_0x458020,this['set']('description',''),this['bind']('authoredAt')['to'](_0x3d4a8a),this['acceptButton']=this['_createButton'](o(_0x141e26,'Accept\x20suggestion'),_0x4b5f2c,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x141e26,'Discard\x20suggestion'),_0x531dac,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x199c5c(_0x141e26,_0x3d4a8a['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x124ccd([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x57db96(),this['keystrokes']=new _0x23845a(),this['focusCycler']=new _0x3897c2({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x4121d3=>_0x4121d3['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x736be5=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x736be5['innerHTML']=this['description'],this['on']('change:description',(_0x1a6e94,_0x303586,_0x4cbee7)=>{_0x736be5['innerHTML']=_0x4cbee7;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0xf8b95c=this['bindTemplate'],_0x3635b7=[{'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':_0xf8b95c['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0xf8b95c['to']('authoredAt',_0x2a2f17=>this['_config']['formatDateTime'](_0x2a2f17))}]}]},{'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']&&_0x3635b7['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':_0x3635b7}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x55997d,_0x310a4c,_0x6ab086,_0x2ef896,_0x574269){const _0x186965=new _0x410860(this['locale']);return _0x186965['set']({'label':_0x55997d,'icon':_0x310a4c,'tooltip':!0x0,'tooltipPosition':_0x574269}),_0x186965['extendTemplate']({'attributes':{'class':_0x6ab086}}),_0x186965['on']('execute',()=>{this['fire'](_0x2ef896,this['_model']['id']);}),_0x186965;}['_setupKeyboardNavigation'](){const _0x269b2f=this['element'];this['keystrokes']['listenTo'](_0x269b2f);for(const _0x25aa0e of this['focusables'])this['focusTracker']['add'](_0x25aa0e['element']),this['keystrokes']['listenTo'](_0x25aa0e['element']);this['keystrokes']['set']('enter',(_0x297935,_0x331f32)=>{_0x269b2f===_0x297935['target']&&(this['focusCycler']['focusFirst'](),_0x331f32());}),this['keystrokes']['set']('esc',(_0x32acc3,_0x43755c)=>{_0x269b2f!==_0x32acc3['target']&&(this['focus'](),_0x43755c());});}}class u extends _0x391ea2{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x5616f9,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x36b749){super(_0x36b749),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x1e8ef7=this['editor']['config'];_0x1e8ef7['define']('trackChanges.SuggestionThreadView',Te),_0x1e8ef7['define']('trackChanges.SuggestionView',Le),_0x1e8ef7['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x1e8ef7['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x33b7ed,_0x2af337){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x14df13,_0x48bfaf]of this['_handleControllerBuffer']){const _0x30a3a2=this['_suggestionToController']['has'](_0x14df13);_0x30a3a2||_0x48bfaf?_0x30a3a2&&_0x48bfaf&&this['_destroyController'](_0x14df13):this['_initializeController'](_0x14df13);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x33b7ed,_0x2af337);}['init'](){const _0x47201d=this['editor'],_0x4b8cce=_0x47201d['plugins']['get']('TrackChangesEditing'),_0x13cd45=_0x47201d['plugins']['get']('Annotations'),_0xa01767=_0x47201d['plugins']['get']('EditorAnnotations'),_0x2b2df9=_0x47201d['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0xa01767['addSourceCollector'](()=>{const _0x3232db=[];for(const [_0x409e07,_0x12fce7]of Array['from'](this['_suggestionToController'])){const _0x232535=_0x409e07['getAllAdjacentSuggestions'](),_0x30524c=[];for(const _0x335772 of _0x232535){if(!_0x335772['isInContent'])continue;if(_0x335772['isMultiRange']){_0x30524c['push'](..._0x335772['getRanges']());continue;}const _0x3744aa=_0x335772['getFirstRange']();if(_0x30524c['length']>0x0){const _0x47a52c=_0x30524c[0x0]['getJoined'](_0x3744aa);if(_0x47a52c){_0x30524c[0x0]=_0x47a52c;continue;}}_0x30524c['push'](_0x3744aa);}_0x3232db['push']([_0x12fce7['view'],_0x30524c]);}return _0x3232db;}),this['listenTo'](_0x4b8cce,'suggestionLoaded',(_0x54e612,_0x3f3c69)=>{this['listenTo'](_0x3f3c69,'change:previous',(_0x2ec48f,_0x4a082f,_0x3f20b4,_0x3284d9)=>{_0x3f3c69['isInContent']&&(null==_0x3f20b4?(this['_updateController'](_0x3284d9['head']),this['_handleSuggestionControllerDelayed'](_0x3f3c69,!0x1)):(this['_updateController'](_0x3f20b4['head']),null==_0x3284d9&&this['_handleSuggestionControllerDelayed'](_0x3f3c69,!0x0)));}),null!==_0x3f3c69['previous']?this['_updateController'](_0x3f3c69['head']):this['_handleSuggestionControllerDelayed'](_0x3f3c69,!0x1);}),this['listenTo'](_0x4b8cce,'suggestionUnloaded',(_0x4e18dd,_0x29a062,_0x13f31f)=>{this['stopListening'](_0x29a062,'change:previous'),this['_handleControllerBuffer']['delete'](_0x29a062),this['_suggestionToController']['has'](_0x29a062)&&this['_destroyController'](_0x29a062),_0x13f31f&&this['_updateController'](_0x13f31f['head']);}),this['listenTo'](_0x4b8cce,'suggestionChanged',(_0x26f6a2,_0x3dbab1)=>{this['_updateController'](_0x3dbab1);}),this['listenTo'](_0x13cd45,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x2b2df9,'addComment',(_0x45a402,{threadId:_0x15a0e1,isFromAdapter:_0x2a6b67})=>{if(_0x2a6b67||!_0x4b8cce['hasSuggestion'](_0x15a0e1))return;const _0x544ad3=_0x4b8cce['getSuggestion'](_0x15a0e1);this['_suggestionToController']['get'](_0x544ad3)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x538486=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x25e4a2;for(const _0x391b36 in _0x538486){const _0x56dd57=_0x391b36,_0x546bc0=_0x538486[_0x56dd57];if('trackChangesLicenseKeyValid'==_0x546bc0||'trackChangesLicenseKeyInvalid'==_0x546bc0||'trackChangesLicenseKeyExpired'==_0x546bc0||'trackChangesLicenseKeyDomainLimit'==_0x546bc0||'trackChangesLicenseKeyNotAllowed'==_0x546bc0||'trackChangesLicenseKeyEvaluationLimit'==_0x546bc0||'trackChangesLicenseKeyTrialLimit'==_0x546bc0||'trackChangesLicenseKeyUsageLimit'==_0x546bc0){delete _0x538486[_0x56dd57],_0x25e4a2=_0x546bc0,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x25e4a2&&_0x538486['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x25e4a2&&_0x538486['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x25e4a2&&_0x538486['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x25e4a2&&_0x538486['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x25e4a2&&_0x538486['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x25e4a2&&_0x538486['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x25e4a2&&_0x538486['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x411851){const _0x48084b=this['_suggestionToController']['get'](_0x411851);if(!_0x48084b)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x48084b['view'])||null;}['getSuggestionForAnnotation'](_0x28cdb8){const _0x4c17fc=this['_viewToController']['get'](_0x28cdb8['innerView']);return _0x4c17fc?_0x4c17fc['model']:null;}['_refreshActiveMarkers'](){const _0x4552cb=this['editor']['plugins']['get']('Annotations'),_0x14d3bc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x291e7a=Array['from'](_0x4552cb['activeAnnotations'],_0x2cf94a=>_0x2cf94a['innerView'])['filter'](_0x9ee2b9=>this['_viewToController']['has'](_0x9ee2b9)),_0x18dfce=[];for(const _0x4bf8a5 of _0x291e7a){const _0x247aa9=this['_viewToController']['get'](_0x4bf8a5)['model']['getAllAdjacentSuggestions']();_0x18dfce['push'](..._0x247aa9['reduce']((_0x2f7dfc,_0x3eea65)=>[..._0x2f7dfc,..._0x3eea65['getMarkerNames']()],[]));}_0x14d3bc['activeMarkers']=_0x18dfce;}['_addUIComponentsToFactory'](){const _0x4d0714=this['editor'],_0x20b1d9=_0x4d0714['locale'],_0x5b0ed2=o(_0x20b1d9,'Track\x20changes'),_0x542ca2=new _0x2354f7([{'type':'switchbutton','model':new _0xeebd88({'withText':!0x0,'isToggleable':!0x0,'label':_0x5b0ed2,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0xeebd88({'withText':!0x0,'label':o(_0x20b1d9,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xeebd88({'withText':!0x0,'label':o(_0x20b1d9,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0xeebd88({'withText':!0x0,'label':o(_0x20b1d9,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xeebd88({'withText':!0x0,'label':o(_0x20b1d9,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x4d0714['plugins']['has']('TrackChangesPreview')&&_0x542ca2['addMany']([{'type':'separator'},{'type':'button','model':new _0xeebd88({'withText':!0x0,'label':o(_0x20b1d9,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x5b7975 of _0x542ca2)if(ve(_0x5b7975)){const _0x58e608=_0x4d0714['commands']['get'](_0x5b7975['model']['commandName']);_0x5b7975['model']['bind']('isOn','isEnabled')['to'](_0x58e608,'value','isEnabled');}_0x4d0714['ui']['componentFactory']['add']('trackChanges',_0xdfe27d=>this['_createToolbarButton'](_0xdfe27d,_0x542ca2,_0x5b0ed2)),_0x4d0714['ui']['componentFactory']['add']('menuBar:trackChanges',_0x2dc7b7=>this['_createMenuBarMenu'](_0x2dc7b7,_0x542ca2,_0x5b0ed2));}['_createToolbarButton'](_0x41eda2,_0x17c08e,_0x3b0457){const _0x2ecaa2=_0x3d2fa5(_0x41eda2,_0x126eeb),_0xf9607d=this['editor']['commands']['get']('trackChanges');_0x2ecaa2['buttonView']['set']({'tooltip':_0x3b0457,'label':_0x3b0457,'icon':_0x46ba60}),_0x2ecaa2['buttonView']['bind']('isOn')['to'](_0xf9607d,'value'),_0x2ecaa2['buttonView']['on']('execute',()=>{_0xf9607d['execute'](),this['editor']['editing']['view']['focus']();}),_0x5c8048(_0x2ecaa2,_0x17c08e,{'role':'menu'});const _0x2d4bde=[];for(const _0x2d5057 of _0x17c08e)ve(_0x2d5057)&&_0x2d4bde['push'](this['editor']['commands']['get'](_0x2d5057['model']['commandName']));const _0x3ed598=_0x2ecaa2['buttonView'];return _0x3ed598['actionView']['unbind']('isEnabled'),_0x3ed598['arrowView']['unbind']('isEnabled'),_0x3ed598['actionView']['bind']('isEnabled')['to'](_0xf9607d,'isEnabled'),_0x3ed598['arrowView']['bind']('isEnabled')['toMany'](_0x2d4bde,'isEnabled',(..._0x5d80b3)=>_0x5d80b3['some'](_0x38cded=>_0x38cded)),_0x2ecaa2['on']('execute',_0x320e33=>{this['editor']['execute'](_0x320e33['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x2ecaa2;}['_createMenuBarMenu'](_0x462c8e,_0x1bdaa5,_0x45c586){const _0x1eaf97=new _0x283ea5(_0x462c8e),_0x4c788b=this['editor']['commands']['get']('trackChanges');_0x1eaf97['buttonView']['set']({'label':_0x45c586,'icon':_0x46ba60});const _0x517f21=new _0x8587c7(_0x462c8e);for(const _0x5353fa of _0x1bdaa5){if('separator'==_0x5353fa['type']){_0x517f21['items']['add'](new _0x5bc23c(_0x462c8e));continue;}const _0x2a9649=new _0x1e5e87(_0x462c8e,_0x1eaf97),_0x2fe556=new _0x57ad30(_0x462c8e),_0x4461b0=_0x5353fa['model'];_0x2fe556['bind'](...Object['keys'](_0x4461b0))['to'](_0x4461b0),_0x2fe556['delegate']('execute')['to'](_0x1eaf97),_0x2fe556['on']('execute',()=>{this['editor']['execute'](_0x4461b0['commandName']),this['editor']['editing']['view']['focus']();}),_0x2a9649['children']['add'](_0x2fe556),_0x517f21['items']['add'](_0x2a9649);}return _0x1eaf97['bind']('isEnabled')['to'](_0x4c788b,'isEnabled'),_0x1eaf97['panelView']['children']['add'](_0x517f21),_0x1eaf97;}['_initializeController'](_0x3d0504){const _0x242c61=this['editor'],_0xbe0337=_0x242c61['config'],_0x2044fa=_0x242c61['plugins']['get']('Annotations'),_0x4fd3a0=_0x242c61['plugins']['get']('CommentsRepository'),_0x47714f=_0x242c61['plugins']['get']('EditorAnnotations'),_0x508eac=_0x242c61['plugins']['get'](_0x5616f9)['me'],_0x45a2ff=_0xbe0337['get']('trackChanges')['SuggestionThreadView'],_0x551af9=_0xbe0337['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x1eba67,CommentThreadInputView:_0xc4e89}=_0x242c61['plugins']['get']('CommentsUI');let _0x5524a8,_0x3a2d18,_0x4a8af6;this['_annotationViews']['has'](_0x3d0504['id'])?(_0x3a2d18=this['_annotationViews']['get'](_0x3d0504['id']),_0x5524a8=_0x3a2d18['mainView']):(_0x5524a8=new _0x45a2ff(_0x242c61['locale'],_0x3d0504,_0x508eac,{'disableComments':this['_disableComments'],'editorConfig':{..._0xbe0337['get']('comments.editorConfig'),'licenseKey':_0xbe0337['get']('licenseKey')},'maxCommentsWhenCollapsed':_0xbe0337['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0xbe0337['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0xbe0337['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x4cb554(_0xbe0337['get']('locale'),_0x242c61['locale']),'CommentView':_0xbe0337['get']('comments')['CommentView'],'CommentsListView':_0x1eba67,'CommentThreadInputView':_0xc4e89,'SuggestionView':_0x551af9}),_0x5524a8['suggestionView']['acceptButton']['on']('execute',()=>{_0x242c61['editing']['view']['focus']();}),_0x5524a8['suggestionView']['discardButton']['on']('execute',()=>{_0x242c61['editing']['view']['focus']();}),_0x3a2d18=_0x2044fa['createAnnotationView'](this['editor']['locale'],_0x5524a8),_0x3a2d18['bind']('isDirty')['to'](_0x5524a8,'isDirty'),_0x3a2d18['bind']('length')['to'](_0x5524a8),_0x3a2d18['bind']('type')['to'](_0x5524a8,'type',_0x2df9b0=>'suggestion-'+_0x2df9b0),_0x5524a8['on']('escape',()=>{_0x4a8af6['fire']('escape');}),this['_annotationViews']['set'](_0x3d0504['id'],_0x3a2d18));const _0x5e2bc1=_0x4fd3a0['createCommentThreadController'](_0x3d0504['commentThread'],_0x5524a8),_0x2d5a5f=new be(_0x242c61,_0x3d0504,_0x5524a8,_0x5e2bc1),_0x5d6fa3=_0x3d0504['getAllAdjacentSuggestions']()['filter'](_0x1eb201=>_0x1eb201['isInContent']);_0x5524a8['descriptionParts']=_0x242c61['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x5d6fa3),this['_suggestionToController']['set'](_0x3d0504,_0x2d5a5f),this['_viewToController']['set'](_0x5524a8,_0x2d5a5f);const _0x471677=()=>{const _0x29607d=[],_0x407394=_0x3d0504['getAllAdjacentSuggestions']()['filter'](_0xc90be2=>_0xc90be2['isInContent']);for(const _0x435b08 of _0x407394)_0x29607d['push'](..._0x435b08['getMarkers']());return _0x1487e7(_0x242c61['editing'],_0x29607d);};_0x4a8af6=_0x2044fa['createAnnotation']({'view':_0x3a2d18,'target':_0x471677,'type':()=>'suggestion-'+_0x2d5a5f['view']['type'],'isVisible':!!_0x471677()}),_0x4fd3a0['_bindAnnotationToEditors'](_0x5524a8,_0x4a8af6),_0x2044fa['add'](_0x4a8af6),_0x47714f['registerAnnotation'](_0x4a8af6);}['_destroyController'](_0x3446dd){const _0x40f9c9=this['editor']['plugins']['get']('CommentsRepository'),_0x7e978=this['editor']['plugins']['get']('Annotations'),_0x3b60be=this['_suggestionToController']['get'](_0x3446dd),_0x3c4711=_0x3b60be['view'],_0x2f2b74=_0x7e978['getByInnerView'](_0x3c4711);_0x40f9c9['_unbindEditors'](_0x3c4711),_0x2f2b74&&_0x7e978['remove'](_0x2f2b74),this['_suggestionToController']['delete'](_0x3446dd),this['_viewToController']['delete'](_0x3c4711),_0x3b60be['destroy']();}['_updateController'](_0x265a99){if(!_0x265a99['isInContent']||!this['_suggestionToController']['has'](_0x265a99))return;const _0x6c95c8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5b958b=this['_suggestionToController']['get'](_0x265a99),_0x1ce270=_0x265a99['getAllAdjacentSuggestions']();_0x5b958b['view']['descriptionParts']=_0x6c95c8['descriptionFactory']['getDescriptions'](_0x1ce270);}['destroy'](){for(const _0x1ffb06 of this['_suggestionToController']['keys']())this['_destroyController'](_0x1ffb06);for(const _0x52ebf0 of this['_annotationViews']['values']())_0x52ebf0['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ve(_0x4ee8ac){return'model'in _0x4ee8ac;}class Ve extends _0x391ea2{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x1c4fc3){this['editor']['plugins']['get'](d)['adapter']=_0x1c4fc3;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x20b86a){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x20b86a);}['getSuggestions']({skipNotAttached:_0x16af5e=!0x1,toJSON:_0x5726c6=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x16af5e,'toJSON':_0x5726c6});}['getSuggestion'](_0x449a84){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x449a84);}}const p=['Pagination'];class ce extends _0x391ea2{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x436df1=this['editor'];if(_0x436df1['config']['define']('trackChangesData.editorCreator',_0x2c28d2=>{const _0x4a2c85=_0x436df1['model']['document']['getRootNames']()['reduce']((_0x532b6f,_0x3c136e)=>(_0x532b6f[_0x3c136e]='',_0x532b6f),{});return _0x436df1['constructor']['create'](_0x4a2c85,_0x2c28d2);}),'function'!=typeof _0x436df1['config']['get']('trackChangesData')['editorCreator'])throw new _0x4fb79c('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0xd6cff8){return P(this['editor'],!0x0,_0xd6cff8);}['getDataWithDiscardedSuggestions'](_0x51c335){return P(this['editor'],!0x1,_0x51c335);}}class ze extends _0x391ea2{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x41e0c6){function _0x4751e3(_0x5c81ff){return _0x5c81ff['map'](_0x4a53b8=>String['fromCharCode'](_0x4a53b8))['join']('');}super(_0x41e0c6),this['result']='end',_0x41e0c6[_0x4751e3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4751e3([0x76,0x69,0x65,0x77])][_0x4751e3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4751e3([0x61,0x75,0x74,0x6f]),_0x41e0c6[_0x4751e3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x4751e3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4751e3([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x4751e3([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x4751e3([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 Ke(_0x10cfba){return void 0x0!==_0x10cfba['getRootsAttributes'];}async function P(_0x545253,_0x32ae9a,_0x49e373){const _0x4f999c=_0x730548(_0x545253,p);_0x4f999c['plugins']['push'](d,ze),_0x4f999c['rootsAttributes']=Ke(_0x545253)?_0x545253['getRootsAttributes']():void 0x0;const _0x41c9d6=document['createDocumentFragment'](),_0x19cd6c=_0x545253['config']['get']('trackChangesData')['editorCreator'],_0x3b64a9=await _0x19cd6c(_0x4f999c,()=>function(_0x104a0b){const _0xb96866=document['createElement']('div');return _0x104a0b['appendChild'](_0xb96866),_0xb96866;}(_0x41c9d6));!function(_0x2c70dc,_0x48c327){const _0x27f1d0=_0x2c70dc['model']['document']['getRootNames']()['reduce']((_0x42e9ac,_0x159ea6)=>(_0x42e9ac[_0x159ea6]=_0x2c70dc['data']['get']({'rootName':_0x159ea6}),_0x42e9ac),{}),_0x2c097c=_0x2c70dc['plugins']['get']('Users')['users']['map'](_0x13a66a=>({'id':_0x13a66a['id'],'name':_0x13a66a['name']})),_0x71d08f=_0x2c70dc['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4e98d7=_0x2c70dc['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1654c4=_0x48c327['plugins']['get']('Users'),_0x5a099a=_0x48c327['plugins']['get']('TrackChangesEditing'),_0x513aac=_0x48c327['plugins']['get']('CommentsRepository');for(const _0x5f2a23 of _0x513aac['getCommentThreads']())_0x5f2a23['remove']();for(const _0x4a4132 of _0x2c097c)_0x1654c4['getUser'](_0x4a4132['id'])||_0x1654c4['addUser'](_0x4a4132);_0x1654c4['me']||_0x1654c4['useAnonymousUser']();for(const _0xb2975a of _0x4e98d7)_0x513aac['addCommentThread'](_0xb2975a);for(const _0x5e7e0a of _0x71d08f)_0x5a099a['addSuggestionData'](_0x5e7e0a);_0x48c327['data']['set'](_0x27f1d0);}(_0x545253,_0x3b64a9),_0x3b64a9['execute'](_0x32ae9a?'acceptAllSuggestions':'discardAllSuggestions');const _0x777e0=Ke(_0x3b64a9)?_0x3b64a9['getFullData'](_0x49e373):_0x3b64a9['data']['get'](_0x49e373);return await _0x3b64a9['destroy'](),_0x777e0;}class _e extends _0x1a9b8b{['options'];constructor(_0x1f47cc,_0x46412e){super(_0x1f47cc),this['options']=_0x46412e,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'](_0x2b069,_0x203454){if(!this['element'])return;const _0x543d77=[];for(const [_0x50a708,_0x471a9a]of _0x2b069){const _0x31164b=document['createElement']('div');_0x31164b['setAttribute']('data-ck-root-name',_0x50a708),_0x31164b['className']=_0x471a9a['classes']+'\x20ck-track-changes-preview__root-container',_0x31164b['innerHTML']=_0x471a9a['content'],_0x543d77['push'](_0x31164b);}_0x203454(this['element'],_0x543d77),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class ae extends _0x6d5462{constructor(_0x170bb2){super(_0x170bb2),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x5a5f85=this['editor'],_0x24c3c8=_0x5a5f85['locale'],_0x5069b4=_0x5a5f85['plugins']['get']('Dialog');let _0x11c328;const _0x181754=function(_0x2fdf72){const _0x81c504={};if('editables'in _0x2fdf72['ui']['view']){for(const [_0x52771,_0x3f0cca]of Object['entries'](_0x2fdf72['ui']['view']['editables']))_0x81c504[_0x52771]=_0x3f0cca['element'];}else _0x81c504[_0x2fdf72['model']['document']['getRootNames']()[0x0]]=_0x2fdf72['ui']['view']['editable']['element'];return _0x81c504;}(_0x5a5f85),_0x2b6bac=function(_0x185ae7){let _0x318e9d=0x0;for(const _0x4e28bf of Object['values'](_0x185ae7))_0x318e9d=Math['max'](_0x318e9d,_0x4e28bf['getBoundingClientRect']()['width']);let _0x36203b=0x0;for(const _0x1da813 of Object['values'](_0x185ae7))_0x36203b+=_0x1da813['getBoundingClientRect']()['height'];const _0xb769cc=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x14ef43=Math['min'](_0x36203b,_0xb769cc);return{'width':_0x318e9d,'height':_0x14ef43};}(_0x181754);_0x5069b4['show']({'id':'finalContentPreview','title':o(_0x24c3c8,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new _e(_0x24c3c8,{'dialogRects':_0x2b6bac}),'onHide':()=>{_0x11c328['detachFromDom']();},'onShow':()=>{_0x5a5f85['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x48eec7=>{const _0xe16d47=this['_standarizeRootsData'](_0x48eec7,_0x5a5f85,_0x181754);_0x5069b4['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0xe16d47,_0x5a5f85['config']['get']('trackChanges.preview.renderFunction'));}),_0x11c328=new _0x382327(_0x24c3c8,[_0x5069b4['view']]),_0x11c328['attachToDom'](),_0x11c328['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x5a5f85['once']('destroy',()=>{_0x11c328['detachFromDom']();});const _0x5e1c8b=_0x5069b4['view']['headerView']['class'];_0x5069b4['view']['headerView']['class']=_0x5e1c8b?_0x5e1c8b+'\x20ck-reset_all':'ck-reset_all',_0x5069b4['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x5069b4['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x29b691=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x3f2538=_0x29b691['previewMode'],_0x5dcf4c={};if('$labels'===_0x3f2538){for(const _0x21430b of _0x29b691['getMergeFieldsIds']())_0x5dcf4c[_0x21430b]=_0x29b691['getLabel'](_0x21430b)||_0x21430b;}else{const _0x593d39='$defaultValues'===_0x3f2538?_0x29b691['getDefaultValues']():_0x29b691['getDataSetValues'](_0x3f2538,!0x0);for(const _0x58398c of Object['entries'](_0x593d39)){const [_0x1be80f,_0x1be87b]=_0x58398c;_0x5dcf4c[_0x1be80f]=null!==_0x1be87b?_0x1be87b:_0x29b691['getLabel'](_0x1be80f)||_0x1be80f;}}return{'mergeFieldsData':_0x5dcf4c};}['_standarizeRootsData'](_0x475b72,_0x2e013c,_0x56a76){let _0x477bcf;if('string'==typeof _0x475b72){const _0x5d843c=_0x2e013c['model']['document']['getRootNames']()[0x0];_0x477bcf={[_0x5d843c]:_0x475b72};}else _0x477bcf=_0x475b72;const _0x34436b=this['_fixMediaEmbeds'](_0x477bcf,_0x2e013c),_0xfd5122=function(_0x8d7a29,_0x1096a1){for(const [_0x4d89d8,_0xc5e6af]of _0x8d7a29)_0xc5e6af['classes']=_0x1096a1[_0x4d89d8]['classList']['value']['replace']('ck-focused','');return _0x8d7a29;}(this['_sortRoots'](_0x2e013c)['reduce']((_0x7e3347,_0x4dec3b)=>(_0x7e3347['push']([_0x4dec3b,{'content':_0x34436b[_0x4dec3b],'classes':''}]),_0x7e3347),[]),_0x56a76);return _0xfd5122;}['_fixMediaEmbeds'](_0x35f6dd,_0x2658a1){if(!_0x2658a1['plugins']['has']('MediaEmbedEditing'))return _0x35f6dd;const _0x412b15=_0x2658a1['plugins']['get']('MediaEmbedEditing');for(const [_0x27a95c,_0x99834a]of Object['entries'](_0x35f6dd)){const _0x1d3701=document['createElement']('div');_0x1d3701['innerHTML']=_0x99834a,(_0x1d3701['querySelectorAll']('figure.media')['forEach'](_0x325c25=>{const _0x924427=_0x325c25['querySelector']('oembed');if(_0x924427){const _0x3bdfd1=_0x924427['getAttribute']('url');if(_0x3bdfd1){const _0x4de67d=_0x412b15['registry']['getMediaViewElement'](new _0x46bdde(_0x2658a1['editing']['view']['document']),_0x3bdfd1,{'elementName':'','renderForEditingView':!0x0}),_0x3b81f4=document['createElement']('div');_0x3b81f4['classList']['add']('ck-media__wrapper'),_0x4de67d['render'](_0x3b81f4,_0x2658a1['editing']['view']['domConverter']),_0x924427['replaceWith'](_0x3b81f4);}}}),_0x35f6dd[_0x27a95c]=_0x1d3701['innerHTML']);}return _0x35f6dd;}['_sortRoots'](_0x86d6f2){if(!function(_0x1ac15b){return void 0x0!==_0x1ac15b['getRootsAttributes'];}(_0x86d6f2))return _0x86d6f2['model']['document']['getRootNames']();const _0x498ded=[],_0xfa8aaf=new Map();for(const _0x3ef51a of _0x86d6f2['model']['document']['getRootNames']()){const _0x31509e=_0x86d6f2['editing']['view']['getDomRoot'](_0x3ef51a)['getClientRects']()['item'](0x0);_0x498ded['push'](_0x3ef51a),_0xfa8aaf['set'](_0x3ef51a,_0x31509e);}return _0x498ded['sort']((_0x3889ce,_0x212f98)=>{const _0x148b03=_0xfa8aaf['get'](_0x3889ce),_0x27c81b=_0xfa8aaf['get'](_0x212f98);return _0x148b03['y']-_0x27c81b['y']||_0x148b03['x']-_0x27c81b['x'];}),_0x498ded;}}class Xe extends _0x391ea2{static get['requires'](){return[ce,_0x134b2e];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x27557d){super(_0x27557d),_0x27557d['commands']['add']('previewFinalContent',new ae(this['editor'])),_0x27557d['config']['define']('trackChanges.preview.renderFunction',(_0xa27f2b,_0x32d1a2)=>{for(const _0x22d2c8 of _0x32d1a2)_0xa27f2b['appendChild'](_0x22d2c8);});}}export{T as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,O as DiscardSuggestionCommand,x as ExecuteOnAllSuggestionsCommand,E as ExecuteOnSelectedSuggestionsCommand,ae as PreviewFinalContentCommand,R as Suggestion,U as SuggestionDescriptionFactory,Te as SuggestionThreadView,Le as SuggestionView,Ve as TrackChanges,B as TrackChangesCommand,ce as TrackChangesData,ze as TrackChangesDataGetter,d as TrackChangesEditing,Xe as TrackChangesPreview,u as TrackChangesUI};
23
+ import{Command as _0x3efd96,Plugin as _0x9da42,PendingActions as _0x2119af}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x468dd5,ObservableMixin as _0x4f4774,uid as _0x11d0ec,priorities as _0x43bf14,insertToPriorityArray as _0xb6a89a,toArray as _0x43d579,logWarning as _0x1d0796,getEnvKeystrokeText as _0x4b3b35,FocusTracker as _0x2a9e06,KeystrokeHandler as _0x3b6563,Collection as _0x2775a6}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x5f0bda,IconCancel as _0x4a8863,IconTrackChanges as _0x3996e9}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x4d3d4f,View as _0x1d63b6,ViewCollection as _0x1ce55e,FocusCycler as _0x23df48,UIModel as _0x3c7e2b,createDropdown as _0x255980,SplitButtonView as _0x20b1b5,addListToDropdown as _0x13329d,MenuBarMenuView as _0xa3f7da,MenuBarMenuListView as _0xd8c139,ListSeparatorView as _0xb476a3,MenuBarMenuListItemView as _0x34ec5d,MenuBarMenuListItemButtonView as _0x2b6ac8,BodyCollection as _0x5cfcff,Dialog as _0x50a136}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x168de4,DocumentCompare as _0x3346b1,hashObject as _0x4305a1,surroundingMarkersDetector as _0xfbab00,FOCUS_ANNOTATION_KEYSTROKE as _0x137a65,AriaDescriptionView as _0x50f24c,setupThreadKeyboardNavigation as _0x4865d1,trimHtml as _0x91b2dc,UserView as _0x4fa98d,LateFocusButtonView as _0xb9a8c6,getDateTimeFormatter as _0x105df6,getAllMarkersDomElementsSorted as _0x19d7d1,sanitizeEditorConfig as _0x4c82f3}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x42f328,ModelLiveRange as _0x3337fa,ModelLivePosition as _0x392a61,ModelPosition as _0x3b046b,ModelRange as _0x1159d1,_DetachOperation as _0x429fdc,ViewDowncastWriter as _0xdf13e9}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0xb40d0f,toWidget as _0x594d41}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x163c3c,set as _0x3fc4a6,isEqual as _0x246997,unset as _0x4f42c8,omit as Gt}from'es-toolkit/compat';import{Delete as _0x4b2b54,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x497544}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x52e8c2}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x3efd96{['_enabledCommands'];constructor(_0x38efc6,_0x38aa2f){super(_0x38efc6),this['_enabledCommands']=_0x38aa2f,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 _0x5cab42 of this['editor']['commands']['commands']())_0x5cab42['affectsData']&&!this['_enabledCommands']['has'](_0x5cab42)&&_0x5cab42['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x48c2f6 of this['editor']['commands']['commands']())_0x48c2f6['affectsData']&&!this['_enabledCommands']['has'](_0x48c2f6)&&_0x48c2f6['clearForceDisabled']('TrackChangesCommand');}}class T extends _0x3efd96{['_suggestions'];constructor(_0x100809,_0x58afa4){super(_0x100809),this['_suggestions']=_0x58afa4,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x12e8a6){const _0x1b14f8=this['_suggestions']['get'](_0x12e8a6);if(!_0x1b14f8)throw new _0x468dd5('track-changes-accept-suggestion-not-found',this);const _0x560c24=_0x1b14f8['getRanges']();this['editor']['model']['canEditAt'](_0x560c24)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x1b14f8);}}class O extends _0x3efd96{['_suggestions'];constructor(_0x210bf2,_0x51b731){super(_0x210bf2),this['_suggestions']=_0x51b731,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x415df7){const _0x436a96=this['_suggestions']['get'](_0x415df7);if(!_0x436a96)throw new _0x468dd5('track-changes-discard-suggestion-not-found',this);const _0x318fb5=_0x436a96['getRanges']();this['editor']['model']['canEditAt'](_0x318fb5)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x436a96);}}function ls(_0xaa2b59,_0x202c7e){let _0x4a852f='';return _0x4a852f+=_0xaa2b59['split']('*')['map']((_0xdb925,_0x2619d4)=>_0x2619d4%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+tn(_0xdb925)+'</span>':tn(_0xdb925))['join'](''),_0x202c7e&&(_0x4a852f+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x202c7e['value']+'\x22\x20title=\x22'+_0x202c7e['title']+'\x22></span>'),_0x4a852f;}function tn(_0x4ad2b4){const _0x3a9d14=document['createElement']('span');return _0x3a9d14['innerText']=_0x4ad2b4,_0x3a9d14['innerHTML'];}function ts(_0x1ec062){return _0x1ec062['sort']((_0x5d102c,_0x1e7d5e)=>'attribute'===_0x5d102c['type']&&'attribute'!==_0x1e7d5e['type']?-0x1:'attribute'!==_0x5d102c['type']&&'attribute'===_0x1e7d5e['type']?0x1:'deletion'==_0x5d102c['type']&&'deletion'!=_0x1e7d5e['type']?-0x1:'deletion'!=_0x5d102c['type']&&'deletion'==_0x1e7d5e['type']?0x1:0x0);}function to(_0x26667e,_0x4bbeae){let _0x5d2229,_0xe3b7eb=0x0;const _0x35fa4d=[],_0x547d0f=_0x4bbeae['schema'];for(;_0xe3b7eb<_0x26667e['length'];){const _0x2afca4=_0x26667e[_0xe3b7eb],_0x4a4f48=_0x26667e[_0xe3b7eb+0x1];_0x5d2229||(_0x5d2229=_0x4bbeae['createPositionBefore'](_0x2afca4)),nn(_0x4bbeae,_0x2afca4,_0x4a4f48)||(_0x35fa4d['push'](_0x4bbeae['createRange'](_0x5d2229,_0x547d0f['isObject'](_0x2afca4)?_0x4bbeae['createPositionAfter'](_0x2afca4):_0x4bbeae['createPositionAt'](_0x2afca4,'end'))),_0x5d2229=null),_0xe3b7eb++;}return _0x35fa4d;}function nn(_0x5a792c,_0x210b69,_0xba4c05){if(!_0xba4c05)return!0x1;const _0x55108e=_0x5a792c['createPositionAfter'](_0x210b69),_0xebfe8c=_0x5a792c['createPositionBefore'](_0xba4c05);return _0x55108e['isTouching'](_0xebfe8c);}function rs(_0x4ce8aa,_0x51924c,_0x3e70b1){for(;_0x3e70b1['length'];){const _0x414a90=_0x3e70b1['splice'](0x0,0x64);_0x4ce8aa['change'](()=>{for(const _0x46aadb of _0x414a90)_0x46aadb['isInContent']&&_0x51924c['execute'](_0x46aadb['id']);});}}class x extends _0x3efd96{['_command'];['_suggestions'];constructor(_0x59b28b,_0x1737da,_0xb54951){super(_0x59b28b),this['_command']=_0x1737da,this['_suggestions']=_0xb54951,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4d0a0a=Array['from'](this['_suggestions']['values']())['some'](_0x3e6281=>_0x3e6281['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x4d0a0a;}['execute'](){const _0x561c39=ts(Array['from'](this['_suggestions']['values']()));for(const _0x32307b of _0x561c39){const _0x1f1728=_0x32307b['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1f1728))return;}rs(this['editor']['model'],this['_command'],_0x561c39);}}class E extends _0x3efd96{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x5e1c9f,_0x2fec27,_0x39cd6b){super(_0x5e1c9f),this['_command']=_0x2fec27,this['_suggestions']=_0x39cd6b,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x20da88=this['editor']['model']['document']['selection'],_0x2b20b0=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x21b7e4,_0x420f66){const _0x1ef7c5=Array['from'](_0x21b7e4['getRanges']()),_0x31596a=new Set();for(const _0x125c75 of _0x420f66)if(_0x125c75['isInContent']){for(const _0x2ee149 of _0x1ef7c5)for(const _0x291fd0 of _0x125c75['getRanges']())(_0x2ee149['isIntersecting'](_0x291fd0)||_0x21b7e4['isCollapsed']&&!_0x125c75['isMultiRange']&&_0x125c75['next']&&_0x291fd0['end']['isTouching'](_0x2ee149['start']))&&_0x31596a['add'](_0x125c75);}return _0x31596a;}(_0x20da88,_0x2b20b0),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x3fa492=ts(Array['from'](this['_selectedSuggestions']));for(const _0x50b209 of _0x3fa492){const _0x24ef47=_0x50b209['getRanges']();if(!this['editor']['model']['canEditAt'](_0x24ef47))return;}rs(this['editor']['model'],this['_command'],_0x3fa492);}}class R extends/* #__PURE__ -- @preserve */
24
+ _0x4f4774(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x5da4f0,_0x51f7ff){super(),this['id']=_0x51f7ff['id'],this['type']=_0x51f7ff['type'],this['subType']=_0x51f7ff['subType']||null,this['author']=_0x51f7ff['author'],this['creator']=_0x51f7ff['creator']||_0x51f7ff['author'],this['isExternal']=Boolean(_0x51f7ff['attributes']&&_0x51f7ff['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x51f7ff['originalSuggestionId']||null,this['_model']=_0x5da4f0,this['_onAccept']=_0x51f7ff['onAccept'],this['_onDiscard']=_0x51f7ff['onDiscard'],this['_onAttributesChange']=_0x51f7ff['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x51f7ff['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 _0x1ec7ba=this;for(;_0x1ec7ba['previous'];)_0x1ec7ba=_0x1ec7ba['previous'];return _0x1ec7ba;}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'](_0x303522){this['_markerNames']['add'](_0x303522);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x1f141a=>this['_model']['markers']['get'](_0x1f141a))['filter'](_0x2ff4d4=>_0x2ff4d4);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x5b5cfc=>{for(const _0xadbce9 of this['getMarkers']())_0x5b5cfc['removeMarker'](_0xadbce9);}),this['_markerNames']['clear']();}['removeMarker'](_0xcf8fac){this['_model']['change'](_0x22b3f1=>{_0x22b3f1['removeMarker'](_0xcf8fac);}),this['_markerNames']['delete'](_0xcf8fac);}['addRange'](_0x394a15){const _0x4b3bfd='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+R['getMultiRangeId']();this['addMarkerName'](_0x4b3bfd),this['_model']['change'](_0x1a515e=>{_0x1a515e['addMarker'](_0x4b3bfd,{'range':_0x394a15,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x35b684){for(const _0x8b8efc of this['getRanges']())if(_0x8b8efc['isIntersecting'](_0x35b684))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4bf7e9=>_0x4bf7e9['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x44b62a,_0x2fdae0)=>[..._0x44b62a,..._0x2fdae0['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x195eaf=this['getRanges']();if(0x1!=_0x195eaf['length'])return null;const _0x18d88b=_0x195eaf[0x0],_0x3d45e4=_0x18d88b['start']['nodeAfter'],_0x5af8f6=_0x18d88b['end']['nodeBefore'];return _0x3d45e4 instanceof _0x42f328?_0x3d45e4!=_0x5af8f6?null:_0x3d45e4: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 _0x18f15b=[];let _0x524d24=this['head'];for(;_0x524d24;)_0x18f15b['push'](_0x524d24),_0x524d24=_0x524d24['next'];return _0x18f15b;}['setAttribute'](_0x28f621,_0x5a2c81){const _0x88689b=_0x163c3c(this['attributes']);_0x3fc4a6(_0x88689b,_0x28f621,_0x5a2c81),_0x246997(_0x88689b,this['attributes'])||(this['attributes']=_0x88689b,this['_onAttributesChange'](_0x88689b));}['removeAttribute'](_0x561f30){const _0x338471=_0x163c3c(this['attributes']);_0x4f42c8(_0x338471,_0x561f30),_0x246997(_0x338471,this['attributes'])||(this['attributes']=_0x338471,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 _0x11d0ec()['substr'](0x1,0x5);}}function o(_0x2ef8ff,_0x532595,_0x18fd54){const _0x47ea32=_0x2ef8ff['t'],t=_0x2ef8ff['t'];switch(_0x532595){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',_0x18fd54);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x18fd54);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x18fd54);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x18fd54);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x18fd54);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',_0x18fd54);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x18fd54);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',_0x18fd54);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x18fd54);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x18fd54);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x18fd54);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x18fd54);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x18fd54);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x18fd54);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x18fd54);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x18fd54);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x18fd54);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x18fd54);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x18fd54);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x18fd54);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x18fd54);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x18fd54);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x18fd54);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x18fd54);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x18fd54);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'},_0x18fd54);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x18fd54);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x18fd54);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x18fd54);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x18fd54);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x18fd54);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x18fd54);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x18fd54);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'},_0x18fd54);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x18fd54);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x18fd54);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x18fd54);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x18fd54);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'},_0x18fd54);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x18fd54);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'},_0x18fd54);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'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'},_0x18fd54);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x18fd54);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'},_0x18fd54);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x18fd54);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'},_0x18fd54);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x18fd54);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x18fd54);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'},_0x18fd54);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x18fd54);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 _0x47ea32({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x18fd54);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x47ea32({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x18fd54);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x18fd54);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'},_0x18fd54);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'},_0x18fd54);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'},_0x18fd54);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x532595;}}class U{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x834bfe,_0xd6462f){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x834bfe,this['_locale']=_0xd6462f;}['getDescriptions'](_0x3c5ab7){const _0x379d30=[],_0x1e2a32=new Set(),_0x53fd75=new Set();for(let _0x2f58f2=0x0;_0x2f58f2<_0x3c5ab7['length'];_0x2f58f2++){const _0x3eb315=_0x3c5ab7[_0x2f58f2];if(!_0x3eb315['isInContent'])continue;const _0x4a3995=this['_handleCustomCallbackDescription'](_0x3eb315);if(_0x4a3995){if(null!=_0x3eb315['subType']){if(_0x1e2a32['has'](_0x3eb315['subType']))continue;_0x1e2a32['add'](_0x3eb315['subType']);}_0x379d30['push'](_0x4a3995);}else{if('attribute'==_0x3eb315['type']){const _0x47a36b=_0x3eb315['data']['key'];if(_0x53fd75['has'](_0x47a36b))continue;_0x53fd75['add'](_0x3eb315['data']['key']),_0x47a36b==m?this['_handleRenameSuggestionDescription'](_0x379d30,_0x3eb315):this['_handleAttributeSuggestionDescription'](_0x379d30,_0x3eb315);continue;}'insertion'!=_0x3eb315['type']&&'deletion'!=_0x3eb315['type']||this['_handleInsertRemoveSuggestionDescription'](_0x379d30,_0x3eb315,_0x3c5ab7[_0x2f58f2+0x1]);}}return this['_resolveDescriptionItems'](_0x379d30);}['registerDescriptionCallback'](_0x40d811){this['_customCallbacks']['push'](_0x40d811);}['registerElementLabel'](_0x1b0888,_0x4ff561,_0x5b72ac=_0x43bf14['normal']){'function'==typeof _0x1b0888?_0xb6a89a(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1b0888,'label':_0x4ff561,'priority':_0x5b72ac}):this['_itemLabels']['set'](_0x1b0888,_0x4ff561);}['registerAttributeLabel'](_0x1b2244,_0x1cb5b3){this['_attributeLabels']['set'](_0x1b2244,_0x1cb5b3);}['getItemLabel'](_0x3ead6d,_0x44d2df=0x1){let _0x799f97;for(const _0x713a25 of this['_itemLabelsCallbacks'])if(_0x713a25['matchingCallback'](_0x3ead6d)){_0x799f97=_0x713a25['label'];break;}return _0x799f97||(_0x799f97=this['_itemLabels']['get'](_0x3ead6d['name'])),_0x799f97?_0x799f97(_0x44d2df):0x1!==_0x44d2df?_0x44d2df+'\x20'+_0x3ead6d['name']+'s':''+_0x3ead6d['name'];}['_addDescriptionItems'](_0x111a9b,_0x3ac7f9){const _0x3881fc=_0x3ac7f9['getFirstRange']()['getWalker'](),_0x6bbb22='insertion'==_0x3ac7f9['type']?'add':'remove';for(const _0x147330 of _0x3881fc){const _0x26b0ff=_0x147330['item'],_0x467d72=_0x111a9b[_0x111a9b['length']-0x1];if(_0x26b0ff['is']('$textProxy'))_0x467d72&&_0x467d72['type']['indexOf']('Container')>-0x1&&_0x111a9b['pop'](),_0x467d72&&'text'==_0x467d72['type']?_0x467d72[_0x6bbb22]+=_0x26b0ff['data']:_0x111a9b['push']({'type':'text','add':'add'==_0x6bbb22?_0x26b0ff['data']:'','remove':'remove'==_0x6bbb22?_0x26b0ff['data']:''});else{if(this['_schema']['isObject'](_0x26b0ff)){const _0x1e37ea=_0x26b0ff;if(_0x467d72&&_0x467d72['type']['indexOf']('Container')>-0x1&&_0x111a9b['pop'](),'elementEnd'==_0x147330['type'])continue;_0x467d72&&_0x467d72['type']==_0x6bbb22+'Object'&&_0x467d72['element']['name']==_0x1e37ea['name']?_0x467d72['quantity']++:_0x111a9b['push']({'type':_0x6bbb22+'Object','element':_0x1e37ea,'quantity':0x1}),_0x3881fc['skip'](_0x570909=>!('elementEnd'==_0x570909['type']&&_0x570909['item']==_0x26b0ff));}else{if(this['_schema']['checkChild'](_0x26b0ff,'$text')||_0x26b0ff['is']('element','softBreak')){const _0x4cddc7=_0x26b0ff;if('add'==_0x6bbb22&&'elementStart'==_0x147330['type']||'remove'==_0x6bbb22&&'elementEnd'==_0x147330['type'])continue;if(_0x467d72&&-0x1==_0x467d72['type']['indexOf']('Container')){'text'==_0x467d72['type']&&(_0x467d72[_0x6bbb22]+='\x0a');continue;}let _0x2af3e3;if(_0x2af3e3='add'==_0x6bbb22?_0x4cddc7['nextSibling']&&!this['_schema']['isObject'](_0x4cddc7['nextSibling'])?_0x4cddc7['nextSibling']:null:_0x4cddc7['previousSibling']&&!this['_schema']['isObject'](_0x4cddc7['previousSibling'])?_0x4cddc7['previousSibling']:null,_0x4cddc7['isEmpty']||_0x2af3e3&&_0x2af3e3['isEmpty']){const _0x4bd940=_0x2af3e3&&_0x2af3e3['isEmpty']?_0x2af3e3:_0x4cddc7;_0x467d72&&_0x467d72['type']==_0x6bbb22+'EmptyContainer'&&_0x467d72['element']['name']==_0x4bd940['name']?_0x467d72['quantity']++:_0x111a9b['push']({'type':_0x6bbb22+'EmptyContainer','element':_0x4bd940,'quantity':0x1});}else _0x111a9b['push']({'type':_0x6bbb22+'Container','element':_0x4cddc7});}}}}}['_resolveDescriptionItems'](_0x3b9d13){const _0x3a43ef=this['_locale'],_0x544528=[],_0xf1c57c=[],_0x4220d2=[];for(const _0x5b3bb2 of _0x3b9d13)switch(_0x5b3bb2['type']){case'text':if(_0x5b3bb2['add']=_0x5b3bb2['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x5b3bb2['remove']=_0x5b3bb2['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x5b3bb2['add']&&''!=_0x5b3bb2['remove']){_0x544528['push']({'type':'replace','content':o(_0x3a43ef,'REPLACE_TEXT',['\x22'+_0x5b3bb2['remove']+'\x22','\x22'+_0x5b3bb2['add']+'\x22'])});continue;}if(null!=_0x5b3bb2['add']['match'](/^ +$/)){_0x544528['push']({'type':'insertion','content':o(_0x3a43ef,'*Insert:*\x20%0',o(_0x3a43ef,'ELEMENT_SPACE',_0x5b3bb2['add']['length']))});continue;}if(null!=_0x5b3bb2['remove']['match'](/^ +$/)){_0x544528['push']({'type':'deletion','content':o(_0x3a43ef,'*Remove:*\x20%0',o(_0x3a43ef,'ELEMENT_SPACE',_0x5b3bb2['remove']['length']))});continue;}if(''!=_0x5b3bb2['add']){_0x544528['push']({'type':'insertion','content':o(_0x3a43ef,'*Insert:*\x20%0','\x22'+_0x5b3bb2['add']+'\x22')});continue;}_0x544528['push']({'type':'deletion','content':o(_0x3a43ef,'*Remove:*\x20%0','\x22'+_0x5b3bb2['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x544528['push']({'type':'insertion','content':o(_0x3a43ef,'*Insert:*\x20%0',this['getItemLabel'](_0x5b3bb2['element'],_0x5b3bb2['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x544528['push']({'type':'deletion','content':o(_0x3a43ef,'*Remove:*\x20%0',this['getItemLabel'](_0x5b3bb2['element'],_0x5b3bb2['quantity']))});continue;case'addContainer':_0x544528['push']({'type':'insertion','content':o(_0x3a43ef,'*Split:*\x20%0',this['getItemLabel'](_0x5b3bb2['element'],_0x5b3bb2['quantity']))});continue;case'removeContainer':_0x544528['push']({'type':'deletion','content':o(_0x3a43ef,'*Merge:*\x20%0',this['getItemLabel'](_0x5b3bb2['element'],_0x5b3bb2['quantity']))});continue;case'addFormat':_0xf1c57c['push'](_0x5b3bb2['key']);continue;case'removeFormat':_0x4220d2['push'](_0x5b3bb2['key']);continue;default:_0x544528['push'](_0x5b3bb2);}if(_0xf1c57c['length']){const _0x1c8a02=_0xf1c57c['map'](_0x911c57=>this['_attributeLabels']['has'](_0x911c57)?this['_attributeLabels']['get'](_0x911c57):_0x911c57)['join'](',\x20');_0x544528['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x1c8a02)});}if(_0x4220d2['length']){const _0x179bb9=_0x4220d2['map'](_0x5629bf=>this['_attributeLabels']['has'](_0x5629bf)?this['_attributeLabels']['get'](_0x5629bf):_0x5629bf)['join'](',\x20');_0x544528['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x179bb9)});}return _0x544528;}['_handleCustomCallbackDescription'](_0x2140d7){for(const _0x18fbbc of this['_customCallbacks']){const _0x5c8a3e=_0x18fbbc(_0x2140d7);if(_0x5c8a3e&&'type'in _0x5c8a3e)return _0x5c8a3e;}}['_handleAttributeSuggestionDescription'](_0x2a94e5,_0x34e004){const _0x3d084f=_0x34e004['data'],_0x494de0=void 0x0===_0x3d084f['newValue']?'removeFormat':'addFormat';_0x2a94e5['push']({'type':_0x494de0,'key':_0x3d084f['key']});}['_handleRenameSuggestionDescription'](_0x2f370a,_0x14ae04){_0x2f370a['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x14ae04['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x18a69c,_0x4e4762,_0x3b7a9a){if(this['_addDescriptionItems'](_0x18a69c,_0x4e4762),_0x3b7a9a&&_0x3b7a9a['getFirstRange']()&&!_0x4e4762['getFirstRange']()['end']['isEqual'](_0x3b7a9a['getFirstRange']()['start'])){const _0x30ee5e=_0x18a69c[_0x18a69c['length']-0x1],_0x5288b9='insertion'==_0x4e4762['type']?'add':'remove';_0x30ee5e&&'text'==_0x30ee5e['type']&&(_0x30ee5e[_0x5288b9]+='\x0a');}}}class V extends _0x9da42{['afterInit'](){const _0x3aa39f=this['editor'],_0x995638=_0x3aa39f['plugins']['get']('TrackChangesEditing');_0x3aa39f['commands']['get']('showAIAssistant')&&_0x995638['enableCommand']('showAIAssistant');}}class F extends _0x9da42{['afterInit'](){const _0x5e3d7f=this['editor'],_0x2595d4=_0x5e3d7f['locale'];if(!_0x5e3d7f['plugins']['has']('AlignmentEditing'))return;const _0x12b76c=_0x5e3d7f['plugins']['get']('TrackChangesEditing');_0x12b76c['enableDefaultAttributesIntegration']('alignment'),_0x12b76c['registerBlockAttribute']('alignment'),_0x12b76c['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x2595d4,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xad88fc=this['editor'],_0x57456b=_0xad88fc['locale'];_0xad88fc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x564116=>{if('formatBlock'!=_0x564116['type'])return;const {data:_0x4886e1}=_0x564116;if(_0x4886e1&&'alignment'==_0x4886e1['commandName']){const _0xa26fea=_0x4886e1['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x57456b,'*Format:*\x20%0',function(_0x305bc1){switch(_0x305bc1){case'left':return o(_0x57456b,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x57456b,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x57456b,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x57456b,'FORMAT_JUSTIFY_TEXT');}}(_0xa26fea))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x9da42{['afterInit'](){const _0x1a9eca=this['editor'],_0x2b36fe=_0x1a9eca['plugins']['get']('TrackChangesEditing'),_0x419809=_0x1a9eca['locale'];for(const _0x73b99b of ti){if(!_0x1a9eca['plugins']['has'](_0x73b99b))continue;const _0x50ae51=_0x73b99b['slice'](0x0,-0x7)['toLowerCase'](),_0xefcecd='FORMAT_'+_0x50ae51['toUpperCase']();_0x2b36fe['enableDefaultAttributesIntegration'](_0x50ae51),_0x2b36fe['registerInlineAttribute'](_0x50ae51),_0x2b36fe['descriptionFactory']['registerAttributeLabel'](_0x50ae51,o(_0x419809,_0xefcecd));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3a83c6=this['editor'],_0x43638b=_0x3a83c6['locale'],_0x1b30f7=_0x3a83c6['plugins']['get']('TrackChangesEditing');function _0x1fddd3(_0xf2983e,_0x199bc2){_0x1b30f7['descriptionFactory']['registerDescriptionCallback'](_0x5abc02=>{if('formatInline'!=_0x5abc02['type'])return;const {data:_0x1874a3}=_0x5abc02;return _0x1874a3&&_0x1874a3['commandName']===_0xf2983e?_0x1874a3['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x43638b,'*Format:*\x20%0',_0x199bc2)}:{'type':'format','content':o(_0x43638b,'*Remove\x20format:*\x20%0',_0x199bc2)}:void 0x0;});}_0x1fddd3('bold',o(_0x43638b,'FORMAT_BOLD')),_0x1fddd3('italic',o(_0x43638b,'FORMAT_ITALIC')),_0x1fddd3('underline',o(_0x43638b,'FORMAT_UNDERLINE')),_0x1fddd3('code',o(_0x43638b,'FORMAT_CODE')),_0x1fddd3('strikethrough',o(_0x43638b,'FORMAT_STRIKETHROUGH')),_0x1fddd3('subscript',o(_0x43638b,'FORMAT_SUBSCRIPT')),_0x1fddd3('superscript',o(_0x43638b,'FORMAT_SUPERSCRIPT'));}}class L extends _0x9da42{['afterInit'](){const _0x440cb8=this['editor'],_0x33a3c5=_0x440cb8['locale'];if(!_0x440cb8['plugins']['has']('BlockQuoteEditing'))return;const _0xc7bcc=_0x440cb8['plugins']['get']('TrackChangesEditing'),_0x20ae96=this['editor']['commands']['get']('blockQuote');_0xc7bcc['enableCommand']('blockQuote',(_0x49f05f,_0x302c2d={})=>{const _0x304780=this['editor']['model']['document']['selection'],_0x402c6c=_0x302c2d&&void 0x0!==_0x302c2d['forceValue']?_0x302c2d['forceValue']:!_0x20ae96['value'];let _0xd68ae2=[];if(_0x402c6c){const _0x58612c=Array['from'](_0x304780['getSelectedBlocks']())['filter'](_0x4f7d81=>oo(_0x4f7d81)||function(_0xae0c6a,_0x41fb01){const _0x2192c9=_0x41fb01['checkChild'](_0xae0c6a['parent'],'blockQuote'),_0x50c7b0=_0x41fb01['checkChild'](['$root','blockQuote'],_0xae0c6a);return _0x2192c9&&_0x50c7b0;}(_0x4f7d81,this['editor']['model']['schema']));_0xd68ae2=to(_0x58612c,_0x440cb8['model']);}else{const _0x2269dd=Array['from'](_0x304780['getSelectedBlocks']())['filter'](_0x1c8b9f=>oo(_0x1c8b9f));_0xd68ae2=to(_0x2269dd,_0x440cb8['model']);}_0x440cb8['model']['change'](()=>{for(const _0xa2c4c4 of _0xd68ae2)_0xc7bcc['markBlockFormat'](_0xa2c4c4,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x402c6c}]});});}),_0xc7bcc['descriptionFactory']['registerDescriptionCallback'](_0xed8bf7=>{const {data:_0x3e09dc}=_0xed8bf7;if(_0x3e09dc&&'blockQuote'==_0x3e09dc['commandName']){const _0x17a0a9=o(_0x33a3c5,'ELEMENT_BLOCK_QUOTE');return _0x3e09dc['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x33a3c5,'*Set\x20format:*\x20%0',_0x17a0a9)}:{'type':'format','content':o(_0x33a3c5,'*Remove\x20format:*\x20%0',_0x17a0a9)};}});}}function oo(_0x145bb3){return'blockQuote'==_0x145bb3['parent']['name'];}class J extends _0x9da42{['afterInit'](){const _0x43b3d3=this['editor'],_0x324a0a=_0x43b3d3['locale'],_0x11c6fa=_0x43b3d3['plugins']['get']('TrackChangesEditing');_0x43b3d3['plugins']['has']('BookmarkEditing')&&(_0x11c6fa['enableCommand']('insertBookmark'),_0x11c6fa['enableDefaultAttributesIntegration']('updateBookmark'),_0x11c6fa['registerBlockAttribute']('bookmarkId'),_0x11c6fa['descriptionFactory']['registerDescriptionCallback'](_0x171aca=>{if('insertion'!=_0x171aca['type']&&'deletion'!=_0x171aca['type']&&'attribute'!=_0x171aca['type'])return;const _0x46c837=_0x171aca['getContainedElement']();if(null==_0x46c837)return;if(!_0x46c837['is']('element','bookmark'))return;const _0x5411ca=_0x46c837['getAttribute']('bookmarkId');if('insertion'==_0x171aca['type'])return{'type':'insertion','content':o(_0x324a0a,'*Insert:*\x20%0','\x22'+_0x5411ca+'\x22\x20'+o(_0x324a0a,'ELEMENT_BOOKMARK'))};if('deletion'==_0x171aca['type'])return{'type':'deletion','content':o(_0x324a0a,'*Remove:*\x20%0','\x22'+_0x5411ca+'\x22\x20'+o(_0x324a0a,'ELEMENT_BOOKMARK'))};const {data:_0x2d93e0}=_0x171aca;if(!_0x2d93e0||'bookmarkId'!=_0x2d93e0['key'])return;return{'type':'format','content':o(_0x324a0a,'*Set\x20bookmark:*\x20%0','\x22'+_0x2d93e0['newValue']+'\x22')};}));}}class K extends _0x9da42{['afterInit'](){const _0x319393=this['editor'];_0x319393['plugins']['has']('CaseChange')&&(_0x319393['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x319393['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x319393['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x9da42{['afterInit'](){const _0x3ecf74=this['editor'];_0x3ecf74['commands']['get']('ckbox')&&_0x3ecf74['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class W extends _0x9da42{['afterInit'](){const _0x173177=this['editor'];if(!_0x173177['plugins']['has']('CodeBlock'))return;const _0x1a67df=_0x173177['plugins']['get']('TrackChangesEditing'),_0x351c3c=_0x173177['locale'],_0x6b76b3=_0x173177['config']['get']('codeBlock')['languages'],_0x204d46=_0x173177['commands']['get']('codeBlock');_0x1a67df['enableCommand']('indentCodeBlock'),_0x1a67df['enableCommand']('outdentCodeBlock'),_0x1a67df['enableCommand']('codeBlock',(_0x1cfc51,_0x3796a0={})=>{const _0x4ae62d=_0x173177['model'],_0x4832e5=_0x173177['model']['document']['selection'],_0x1c389f=_0x3796a0&&void 0x0!==_0x3796a0['forceValue']?_0x3796a0['forceValue']:!_0x204d46['value'];let _0x3029ad;_0x3796a0['language']||(_0x3796a0['language']=_0x6b76b3[0x0]['language']),_0x3029ad=_0x1c389f?Array['from'](_0x4832e5['getSelectedBlocks']())['filter'](_0x3e0c0c=>co(_0x3e0c0c)||function(_0x4c7d00,_0x5f5415){if(_0x4c7d00['is']('rootElement')||_0x5f5415['isLimit'](_0x4c7d00))return!0x1;return _0x5f5415['checkChild'](_0x4c7d00['parent'],'codeBlock');}(_0x3e0c0c,_0x4ae62d['schema'])):Array['from'](_0x4832e5['getSelectedBlocks']())['filter'](_0x375fce=>co(_0x375fce));const _0x4c6fa4=to(_0x3029ad,_0x4ae62d);_0x4ae62d['change'](()=>{for(const _0x25345c of _0x4c6fa4)_0x1a67df['markBlockFormat'](_0x25345c,{'commandName':'codeBlock','commandParams':[{..._0x3796a0,'forceValue':_0x1c389f}],'formatGroupId':'blockName'});});}),(_0x1a67df['descriptionFactory']['registerElementLabel']('codeBlock',_0x18f3eb=>o(_0x351c3c,'ELEMENT_CODE_BLOCK',_0x18f3eb)),_0x1a67df['descriptionFactory']['registerDescriptionCallback'](_0x4af917=>{if('formatBlock'!=_0x4af917['type'])return;const _0xb70395=_0x351c3c['t'],{data:_0x3405b2}=_0x4af917;if(!_0x3405b2||'codeBlock'!=_0x3405b2['commandName'])return;const _0x317a43=_0x3405b2['commandParams'][0x0]['language'],_0x15dae6=_0xb70395(_0x6b76b3['find'](_0xe506a8=>_0xe506a8['language']===_0x317a43)['label'])['toLowerCase']();return _0x3405b2['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x351c3c,'*Set\x20format:*\x20%0',o(_0x351c3c,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x15dae6+')')}:{'type':'format','content':o(_0x351c3c,'*Remove\x20format:*\x20%0',o(_0x351c3c,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x5a611f){return'codeBlock'==_0x5a611f['name'];}class q extends _0x9da42{['afterInit'](){const _0x44d678=this['editor'];if(!_0x44d678['plugins']['has']('CommentsEditing'))return;_0x44d678['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x21a60b,_0xf82b91,_0x33d9d5){const _0x3478e4=[];for(const _0x352ea8 of _0xf82b91['getItems']())_0x352ea8['hasAttribute'](_0x21a60b)&&_0x3478e4['push'](_0x33d9d5['createRangeOn'](_0x352ea8));return _0x3478e4;}function Ge(_0x4c0f29,_0x10995b,{showActiveMarker:_0x573c7d=!0x0}={}){const _0x3f8b51=_0x4c0f29['plugins']['get']('TrackChangesEditing');return(_0x5e9b5e,_0x2b4ccd,_0x31ac5f)=>{if(!_0x31ac5f['consumable']['test'](_0x2b4ccd['markerRange'],_0x5e9b5e['name']))return;const _0x4beb43=_0x2b4ccd['markerRange']['getWalker'](),_0x5c0e0f=_0x2b4ccd['markerRange']['start'],_0xb77daa=_0x4c0f29['model']['schema'];let _0x5f0c6b=null,_0x1a2949=null,_0x2d31c0=!0x1,_0x53dec3=!0x1;for(const _0x175c89 of _0x4beb43){const _0x1dccc5=_0x175c89['item'];_0x2d31c0=_0x2d31c0||_0xb77daa['isContent'](_0x1dccc5);const _0x4cd6e0=_0x31ac5f['mapper']['toViewElement'](_0x1dccc5);if(_0x4cd6e0&&_0x4cd6e0['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x175c89['type']&&(_0xb77daa['isBlock'](_0x1dccc5)&&!_0xb77daa['isLimit'](_0x1dccc5)&&(_0x1dccc5['nextSibling']||_0x5c0e0f['isAtEnd']?_0x5f0c6b&&_0x5f0c6b['parent']==_0x1dccc5||(_0x5f0c6b=_0x1dccc5,_0x1ebc1c(_0x175c89['previousPosition']),_0x53dec3=!0x0):_0x1a2949=_0x1a2949||_0x175c89['previousPosition']));}function _0x1ebc1c(_0x29b498){const {id:_0x3925fb,authorId:_0x108e2a}=_0x3f8b51['_splitMarkerName'](_0x2b4ccd['markerName']),_0x5bd699=_0x31ac5f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x10995b,'data-suggestion':_0x3925fb,'data-author-id':_0x108e2a}),_0x5a0d70=_0x31ac5f['mapper']['toViewPosition'](_0x29b498);_0x573c7d&&_0x3f8b51['activeMarkers']['includes'](_0x2b4ccd['markerName'])&&_0x31ac5f['writer']['addClass']('ck-suggestion-marker--active',_0x5bd699),_0x31ac5f['writer']['insert'](_0x5a0d70,_0x5bd699),_0x31ac5f['mapper']['bindElementToMarker'](_0x5bd699,_0x2b4ccd['markerName']);}_0x2d31c0||_0x53dec3||!_0x1a2949||_0x1ebc1c(_0x1a2949);};}class z extends _0x9da42{static get['requires'](){return[_0x4b2b54];}['init'](){const _0x355bef=this['editor'],_0x2e5c74=_0x355bef['plugins']['get']('TrackChangesEditing');_0x2e5c74['enableCommand']('delete');const _0x5e2d17=_0x355bef['commands']['get']('deleteForward');_0x2e5c74['enableCommand']('deleteForward',(_0x1461e9,_0x3d3f66={})=>{const _0x1e6cc9=_0x355bef['model']['createSelection'](_0x355bef['model']['document']['selection']);_0x1e6cc9['isCollapsed']&&_0x355bef['model']['modifySelection'](_0x1e6cc9,{'direction':'forward','unit':_0x3d3f66['unit']});const _0x233c0c=_0x1e6cc9['getFirstRange'](),_0x49dd9f=_0x3337fa['fromRange'](_0x233c0c);let _0x1a5d21;_0x1461e9(_0x3d3f66),_0x1a5d21='$graveyard'==_0x49dd9f['root']['rootName']?_0x355bef['model']['createRange'](_0x233c0c['start']):_0x355bef['model']['createRange'](_0x49dd9f['start'],_0x49dd9f['end']),_0x49dd9f['detach'](),_0x355bef['model']['enqueueChange'](_0x5e2d17['buffer']['batch'],_0x5ccf2b=>{_0x5e2d17['buffer']['lock'](),_0x5ccf2b['setSelection'](_0x5ccf2b['createRange'](_0x1a5d21['end'])),_0x5e2d17['buffer']['unlock']();});}),_0x355bef['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ge(_0x355bef,'merge'),{'priority':'high'}),_0x355bef['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x54d6e9,_0xbd7be6,_0x24c7de)=>{_0x24c7de['options']['showSuggestionHighlights']&&Ge(_0x355bef,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x54d6e9,_0xbd7be6,_0x24c7de);},{'priority':'high'}),_0x355bef['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0xe2fc8f,_0x423d42,_0xe4b880)=>{const _0x313482=_0xe4b880['mapper']['markerNameToElements'](_0x423d42['markerName']);if(_0x313482){for(const _0x499cd0 of _0x313482)_0x499cd0['is']('uiElement')&&(_0xe4b880['mapper']['unbindElementFromMarkerName'](_0x499cd0,_0x423d42['markerName']),_0xe4b880['writer']['remove'](_0x499cd0));}},{'priority':'high'});}}class Q extends _0x9da42{['afterInit'](){const _0x50c0ce=this['editor'];if(!_0x50c0ce['plugins']['has']('ListEditing'))return;const _0x4d31a0=_0x50c0ce['locale'],_0x225565=_0x50c0ce['plugins']['get']('TrackChangesEditing'),_0x2cfbfd=_0x50c0ce['plugins']['has']('TodoListEditing'),_0x22543c=!!_0x50c0ce['config']['get']('list.multiBlock');function _0x48fba6(_0x1b691c){return{'type':'format','content':''+o(_0x4d31a0,'*Set\x20format:*\x20%0',_0x1b691c)};}function _0x2d11d4(_0x342ca3){return{'type':'format','content':''+o(_0x4d31a0,'*Remove\x20format:*\x20%0',_0x342ca3)};}_0x225565['enableDefaultAttributesIntegration']('numberedList'),_0x225565['enableDefaultAttributesIntegration']('bulletedList'),_0x225565['enableDefaultAttributesIntegration']('customNumberedList'),_0x225565['enableDefaultAttributesIntegration']('customBulletedList'),_0x225565['enableDefaultAttributesIntegration']('indentList'),_0x225565['enableDefaultAttributesIntegration']('outdentList'),_0x225565['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x225565['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x225565['registerBlockAttribute']('listItemId'),_0x225565['registerBlockAttribute']('listType'),_0x225565['registerBlockAttribute']('listIndent'),_0x22543c&&(_0x225565['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x225565['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2cfbfd&&(_0x225565['enableDefaultAttributesIntegration']('todoList'),_0x225565['enableDefaultAttributesIntegration']('checkTodoList'),_0x225565['registerBlockAttribute']('todoListChecked'),_0x225565['descriptionFactory']['registerDescriptionCallback'](_0x336714=>{const {data:_0x7bf8cf}=_0x336714;if(_0x7bf8cf&&'todoListChecked'==_0x7bf8cf['key'])return{'type':'format','content':_0x7bf8cf['newValue']?o(_0x4d31a0,'*Check\x20item*'):o(_0x4d31a0,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x4a0d2a=>{if(_0x4a0d2a['batch']['isUndo'])return!0x1;let _0x55daad=!0x1;const _0x39dfc7=_0x225565['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x536ff9=>'todoListChecked'===_0x225565['_getAttributeKey'](_0x536ff9));for(const _0x25994c of _0x39dfc7){'todo'!=_0x25994c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x225565['_findSuggestions'](_0x25994c['getFirstRange'](),'attribute')['find'](_0x1c1231=>'listType'===_0x225565['_getAttributeKey'](_0x1c1231['suggestion']))||(_0x4a0d2a['removeMarker'](_0x25994c['getFirstMarker']()),_0x55daad=!0x0));}return _0x55daad;})),_0x225565['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x4d31a0,'FORMAT_INDENT'));const _0x1dcc81={'type':'format','content':''};_0x225565['descriptionFactory']['registerDescriptionCallback'](_0x1a0f49=>{const {data:_0x5ea9db}=_0x1a0f49;if(!_0x5ea9db||'listType'!=_0x5ea9db['key'])return;let _0x19a932=_0x1a0f49['head'];for(;_0x19a932;){if(_0x19a932['data']&&(('listStyle'==_0x19a932['data']['key']||'listMarkerStyle'==_0x19a932['data']['key'])&&(_0x19a932['data']['newValue']&&'default'!=_0x19a932['data']['newValue']||'default'!=_0x19a932['data']['oldValue']&&!_0x5ea9db['newValue'])||!_0x22543c&&_0x19a932['data']['key']==m))return _0x1dcc81;_0x19a932=_0x19a932['next'];}if(null==_0x5ea9db['newValue'])switch(_0x5ea9db['oldValue']){case'bulleted':return _0x2d11d4(o(_0x4d31a0,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2d11d4(o(_0x4d31a0,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2d11d4(o(_0x4d31a0,'ELEMENT_TODO_LIST'));}switch(_0x5ea9db['newValue']){case'bulleted':return _0x48fba6(o(_0x4d31a0,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x48fba6(o(_0x4d31a0,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x48fba6(o(_0x4d31a0,'ELEMENT_TODO_LIST'));}}),_0x225565['descriptionFactory']['registerDescriptionCallback'](_0x25f4e7=>{const {data:_0x3d4745}=_0x25f4e7;if(_0x3d4745&&'listIndent'==_0x3d4745['key'])return null==_0x3d4745['newValue']||null==_0x3d4745['oldValue']&&0x0==_0x3d4745['newValue']?_0x1dcc81:void 0x0;}),_0x225565['descriptionFactory']['registerDescriptionCallback'](_0x5ebb16=>{if('attribute'!=_0x5ebb16['type'])return;const {data:_0x11cea5}=_0x5ebb16;if(!_0x11cea5||'listItemId'!=_0x11cea5['key'])return;const _0x124ac4=Be(_0x5ebb16);return'newValue'==_0x124ac4?{'type':'format','content':o(_0x4d31a0,'*Merge:*\x20list\x20item')}:'oldValue'==_0x124ac4?{'type':'format','content':o(_0x4d31a0,'*Split:*\x20list\x20item')}:_0x1dcc81;}),_0x50c0ce['model']['document']['registerPostFixer'](_0x4d66f3=>this['listItemIdFixer'](_0x4d66f3)),_0x50c0ce['model']['document']['registerPostFixer'](_0x456791=>this['noTrackChangesFixer'](_0x456791)),_0x50c0ce['model']['document']['on']('change:data',(_0x317da8,_0x388263)=>{if(_0x388263['isUndo']||!_0x388263['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x1349be){if(_0x1349be['batch']['isUndo']||!_0x1349be['batch']['isLocal'])return!0x1;let _0x1d9f67=!0x1;const _0x1a88b4=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x36c4f2=>_0x36c4f2['data']&&'listItemId'==_0x36c4f2['data']['key'])['filter'](_0x371daa=>_0x371daa['data']['newValue']&&_0x371daa['data']['oldValue']);for(const _0x2d335e of _0x1a88b4)Be(_0x2d335e)||(_0x1349be['removeMarker'](_0x2d335e['getFirstMarker']()),_0x1d9f67=!0x0);return _0x1d9f67;}['noTrackChangesFixer'](_0x363c40){if(_0x363c40['batch']['isUndo']||!_0x363c40['batch']['isLocal'])return!0x1;const _0x445ff1=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x445ff1['trackChangesCommand']['value'])return!0x1;let _0x3c6f84=!0x1;const _0x22fbd1=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x13f8e8=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x5cda18=>'attribute'==_0x5cda18['type'])['filter'](_0x2d7570=>_0x22fbd1['includes'](_0x2d7570['attributeKey']));if(0x0==_0x13f8e8['length'])return _0x3c6f84;for(const _0x57319f of _0x13f8e8){const _0x511002=_0x445ff1['_findSuggestions'](_0x57319f['range'],'attribute')['filter'](_0x3175bb=>!_0x3175bb['meta']['isNextTo'])['map'](_0x574027=>_0x574027['suggestion'])['filter'](_0xa6d77=>{const _0x1484f0=_0x445ff1['_getAttributeKey'](_0xa6d77);return _0x22fbd1['includes'](_0x1484f0);});if(_0x511002['length']){for(const _0x2f4ef5 of _0x511002)_0x363c40['removeMarker'](_0x2f4ef5['getFirstMarker']());_0x3c6f84=!0x0;}}return _0x3c6f84;}['assureChains'](){const _0x4c9faa=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4dcf2b=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x431106;const _0x399b0b=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1bde14=>{if(_0x1bde14['data']['oldRange']||!_0x1bde14['data']['newRange'])return null;if(!_0x1bde14['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x3587dc}=_0x4c9faa['_splitMarkerName'](_0x1bde14['name']);if(!_0x4c9faa['hasSuggestion'](_0x3587dc))return null;const _0x55fa03=_0x4c9faa['getSuggestion'](_0x3587dc);return _0x4dcf2b['includes'](_0x55fa03['data']['key']);})['map'](_0x32ac5a=>{const {id:_0xc81e12}=_0x4c9faa['_splitMarkerName'](_0x32ac5a['name']),_0x52c2f7=_0x4c9faa['getSuggestion'](_0xc81e12);return _0x431106=_0x52c2f7['attributes']['groupId'],_0x52c2f7['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x399b0b['size'])return;const _0x49aedf=_0x4c9faa['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5ab3b1=>'attribute'==_0x5ab3b1['type']&&_0x5ab3b1['data']&&_0x4dcf2b['includes'](_0x5ab3b1['data']['key'])&&_0x5ab3b1['attributes']['groupId']!=_0x431106)['map'](_0x69c9ce=>({'listItem':_0x69c9ce['getFirstRange']()['start']['nodeAfter'],'groupId':_0x69c9ce['attributes']['groupId']})),_0x4ed9c1=new Set();for(const {groupId:_0x30af1a,listItem:_0x2aad1f}of _0x49aedf)_0x399b0b['has'](_0x2aad1f)&&_0x4ed9c1['add'](_0x30af1a);for(const _0x4c6460 of _0x4c9faa['getSuggestions']())_0x4ed9c1['has'](_0x4c6460['attributes']['groupId'])&&_0x4c6460['setAttribute']('groupId',_0x431106);}['_supportLegacySuggestions'](){const _0x47fcdf=this['editor'],_0x5ba935=_0x47fcdf['locale'],_0x27ffd4=_0x47fcdf['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x27ffd4['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x40eba7,_0x5eaeb6){const _0x23062f=[];for(let _0x248a55 of _0x40eba7)_0x248a55['start']['nodeAfter']===_0x248a55['end']['parent']&&(_0x248a55=_0x47fcdf['model']['createRange'](_0x47fcdf['model']['createPositionAt'](_0x248a55['start']['nodeAfter'],0x0))),_0x23062f['push'](_0x248a55);_0x47fcdf['model']['change'](_0x29d5f0=>{const _0x31ad44=_0x47fcdf['model']['document']['selection'],_0x589ad0=Array['from'](_0x31ad44['getRanges']())['map'](_0x13b012=>_0x3337fa['fromRange'](_0x13b012));_0x29d5f0['setSelection'](_0x23062f),_0x47fcdf['commands']['get'](_0x5eaeb6['commandName'])['refresh'](),_0x5eaeb6['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x47fcdf['execute'](_0x5eaeb6['commandName'],..._0x5eaeb6['commandParams']),_0x29d5f0['setSelection'](_0x589ad0);for(const _0x6363e7 of _0x589ad0)_0x6363e7['detach']();});}),_0x27ffd4['descriptionFactory']['registerElementLabel'](function(_0x5e6a7c){const _0x1b7d9c=!_0x47fcdf['model']['schema']['isObject'](_0x5e6a7c),_0x33134d=_0x5e6a7c['previousSibling'],_0x39ad08=_0x5e6a7c['nextSibling'],_0x3fc1cd=_0x5e6a7c['getAttribute']('listItemId'),_0x2ef2e1=!_0x33134d||_0x33134d['getAttribute']('listItemId')!==_0x3fc1cd,_0x24ac06=!_0x39ad08||_0x39ad08['getAttribute']('listItemId')!==_0x3fc1cd;return _0x1b7d9c&&Boolean(_0x3fc1cd)&&_0x2ef2e1&&_0x24ac06;},_0x373966=>o(_0x5ba935,'ELEMENT_LIST_ITEM',_0x373966));}['_registerLegacyDescription'](){const _0x224992=this['editor'],_0x2a6dd0=_0x224992['locale'];function _0x11e4d1(_0x499435){const _0x39138c=_0x224992['commands']['get']('bulletedList')['value'],_0x1b918b=_0x224992['commands']['get']('numberedList')['value'];return'numberedList'===_0x499435?_0x39138c:_0x1b918b;}_0x224992['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x256d23){if('formatBlock'!=_0x256d23['type'])return;const {data:_0x453aea}=_0x256d23;if(!_0x453aea)return;let _0x5dfacb,_0x81cb4a,_0x58bda6,_0x418b86;switch(_0x453aea['commandName']){case'bulletedList':_0x58bda6=_0x453aea['commandParams'][0x0]['forceValue'],_0x418b86=_0x11e4d1(_0x453aea['commandName']),_0x5dfacb=_0x58bda6?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x418b86&&_0x224992['config']['get']('list.multiBlock')||(_0x5dfacb='*Change\x20to:*\x20%0'),_0x81cb4a={'type':'format','content':o(_0x2a6dd0,_0x5dfacb,o(_0x2a6dd0,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x58bda6=_0x453aea['commandParams'][0x0]['forceValue'],_0x418b86=_0x11e4d1(_0x453aea['commandName']),_0x5dfacb=_0x58bda6?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x418b86&&_0x224992['config']['get']('list.multiBlock')||(_0x5dfacb='*Change\x20to:*\x20%0'),_0x81cb4a={'type':'format','content':o(_0x2a6dd0,_0x5dfacb,o(_0x2a6dd0,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x5dfacb='*Indent:*\x20%0',_0x81cb4a={'type':'format','content':o(_0x2a6dd0,_0x5dfacb,o(_0x2a6dd0,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x5dfacb=function(_0x297350){const _0x41bfc3=_0x297350['getFirstRange']();let _0x17fbe2=_0x41bfc3['start']['nodeAfter'];for(;_0x17fbe2&&_0x41bfc3['containsItem'](_0x17fbe2);){if(_0x17fbe2['getAttribute']('listIndent')>0x0)return!0x1;_0x17fbe2=_0x17fbe2['nextSibling'];}return!0x0;}(_0x256d23)?o(_0x2a6dd0,'*Format:*\x20remove\x20from\x20%0',o(_0x2a6dd0,function(_0x5a2bdb){return'ELEMENT_'+_0x5a2bdb['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x256d23))):o(_0x2a6dd0,'*Outdent:*\x20%0',o(_0x2a6dd0,'ELEMENT_LIST_ITEM')),_0x81cb4a={'type':'format','content':_0x5dfacb};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x453aea['multipleBlocks']&&(_0x5dfacb='*Merge:*\x20%0',_0x81cb4a={'type':'deletion','content':o(_0x2a6dd0,_0x5dfacb,o(_0x2a6dd0,'ELEMENT_LIST_ITEM'))});}return _0x81cb4a;});}}function Be(_0x1f958f){let _0x5431fa=_0x1f958f['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x5431fa;){const _0x5df5e3=_0x5431fa['getAttribute']('listItemId');if(!_0x5df5e3)return!0x1;if(_0x5df5e3==_0x1f958f['data']['newValue'])return'newValue';if(_0x5df5e3==_0x1f958f['data']['oldValue'])return'oldValue';_0x5431fa=_0x5431fa['previousSibling'];}return!0x1;}class X extends _0x9da42{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x545df4=this['editor']['config']['get']('list.properties'),_0x5672e9=this['editor']['plugins']['get']('TrackChangesEditing');_0x545df4['styles']&&(_0x5672e9['enableDefaultAttributesIntegration']('listStyle'),_0x5672e9['registerBlockAttribute']('listStyle')),_0x545df4['reversed']&&(_0x5672e9['enableDefaultAttributesIntegration']('listReversed'),_0x5672e9['registerBlockAttribute']('listReversed')),_0x545df4['startIndex']&&(_0x5672e9['enableDefaultAttributesIntegration']('listStart'),_0x5672e9['registerBlockAttribute']('listStart'));const _0x43dd8b={'type':'format','content':''};_0x5672e9['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x406539=this['editor']['locale'];_0x5672e9['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x406539,'FORMAT_LIST_REVERSED')),_0x5672e9['descriptionFactory']['registerDescriptionCallback'](_0x204c96=>{const {data:_0x5c18ef}=_0x204c96;if(_0x5c18ef&&'listReversed'==_0x5c18ef['key'])return null==_0x5c18ef['newValue']||0x0==_0x5c18ef['newValue']&&null==_0x5c18ef['oldValue']?_0x43dd8b:void 0x0;}),_0x5672e9['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x406539,'FORMAT_LIST_START')),_0x5672e9['descriptionFactory']['registerDescriptionCallback'](_0x90b562=>{const {data:_0x1835cd}=_0x90b562;if(_0x1835cd&&'listStart'==_0x1835cd['key'])return null==_0x1835cd['newValue']||0x1==_0x1835cd['newValue']&&null==_0x1835cd['oldValue']?_0x43dd8b:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x4cc243=>{if(_0x4cc243['batch']['isUndo'])return!0x1;let _0x12454f=!0x1;const _0x1235fb=_0x5672e9['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x24e73b=>{const _0x2111f6=_0x5672e9['_getAttributeKey'](_0x24e73b);return'listStart'==_0x2111f6||'listReversed'==_0x2111f6;});for(const _0x571f12 of _0x1235fb){const _0x335631=_0x571f12['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x335631||'customNumbered'==_0x335631)continue;_0x5672e9['_findSuggestions'](_0x571f12['getFirstRange'](),'attribute')['find'](_0x4bd5e2=>'listType'==_0x5672e9['_getAttributeKey'](_0x4bd5e2['suggestion']))||(_0x4cc243['removeMarker'](_0x571f12['getFirstMarker']()),_0x12454f=!0x0);}return _0x12454f;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x2d5a27){const _0x36e921=this['editor']['locale'],{data:_0x2209ae}=_0x2d5a27,_0x4985d4={'type':'format','content':''};if(!_0x2209ae||'listStyle'!=_0x2209ae['key'])return;if(!_0x2209ae['oldValue'])return'default'==_0x2209ae['newValue']?_0x4985d4:{'type':'format','content':''+o(_0x36e921,'*Set\x20format:*\x20%0',o(_0x36e921,this['_getTranslationKeyForListStyle'](_0x2209ae['newValue'])))};if(!_0x2209ae['newValue']){if('default'==_0x2209ae['oldValue'])return _0x4985d4;let _0xc5365e=_0x2d5a27['head'];for(;_0xc5365e;){if(_0xc5365e['data']&&'listType'==_0xc5365e['data']['key']&&_0xc5365e['data']['newValue'])return _0x4985d4;_0xc5365e=_0xc5365e['next'];}return{'type':'format','content':''+o(_0x36e921,'*Remove\x20format:*\x20%0',o(_0x36e921,this['_getTranslationKeyForListStyle'](_0x2209ae['oldValue'])))};}if('default'!=_0x2209ae['newValue'])return{'type':'format','content':''+o(_0x36e921,'*Set\x20format:*\x20%0',o(_0x36e921,this['_getTranslationKeyForListStyle'](_0x2209ae['newValue'])))};let _0x143eae=_0x2d5a27['head'];for(;_0x143eae;){if(_0x143eae['data']&&'listType'==_0x143eae['data']['key']&&_0x143eae['data']['newValue']&&_0x143eae['data']['oldValue'])return _0x4985d4;_0x143eae=_0x143eae['next'];}return{'type':'format','content':o(_0x36e921,'*Set\x20format:*\x20%0',o(_0x36e921,'ELEMENT_'+_0x2d5a27['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0xcd009=this['editor'],_0x55eae5=_0xcd009['locale'];_0xcd009['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x30f36a=>{if('formatBlock'!=_0x30f36a['type'])return;const {data:_0x256539}=_0x30f36a;if(!_0x256539)return;let _0x4cd324,_0xa0c4e4;switch(_0x256539['commandName']){case'listStyle':_0x4cd324='*Change\x20to:*\x20%0',_0xa0c4e4={'type':'format','content':o(_0x55eae5,_0x4cd324,o(_0x55eae5,this['_getTranslationKeyForListStyle'](_0x256539['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4cd324=_0x256539['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xa0c4e4={'type':'format','content':o(_0x55eae5,_0x4cd324)};break;case'listStart':_0x4cd324='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xa0c4e4={'type':'format','content':o(_0x55eae5,_0x4cd324,_0x256539['commandParams'][0x0]['startIndex'])};}return _0xa0c4e4;});}['_getTranslationKeyForListStyle'](_0x349739){return'ELEMENT_'+function(_0x3f1197){if(Re['includes'](_0x3f1197))return'bulleted';if(Fe['includes'](_0x3f1197))return'numbered';return null;}(_0x349739)['toUpperCase']()+'_LIST_'+_0x349739['toUpperCase']()['replace'](/-/g,'_');}}const Re=['disc','circle','square'],Fe=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Y extends _0x9da42{['afterInit'](){const _0x37b37e=this['editor'];_0x37b37e['commands']['get']('emoji')&&_0x37b37e['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Z extends _0x9da42{static get['requires'](){return[_0x497544];}['init'](){const _0x342e31=this['editor'],_0x3f5a4b=_0x342e31['plugins']['get']('TrackChangesEditing'),_0x4e1faa=_0x342e31['commands']['get']('enter');_0x3f5a4b['enableCommand']('enter',()=>{_0x342e31['model']['change'](_0x2d1c61=>{const _0x43e020=_0x342e31['model']['document']['selection'],_0x41e63a=_0x43e020['getFirstPosition'](),_0x4cfdcb=_0x3337fa['fromRange'](_0x43e020['getFirstRange']());if(_0x4e1faa['enterBlock'](_0x2d1c61)){const _0x1cc935=_0x342e31['model']['createPositionAt'](_0x41e63a['parent']['nextSibling'],0x0),_0x5e8ed1=_0x2d1c61['createRange'](_0x41e63a,_0x1cc935);_0x3f5a4b['markInsertion'](_0x5e8ed1);}else _0x2d1c61['setSelection'](_0x2d1c61['createRange'](_0x4cfdcb['end']));_0x4cfdcb['detach'](),_0x4e1faa['fire']('afterExecute',{'writer':_0x2d1c61});});}),_0x342e31['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ge(_0x342e31,'split'),{'priority':'high'}),_0x342e31['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x75eb07,_0x4f0c2a,_0x3100db)=>{const _0x4826eb=_0x3100db['mapper']['markerNameToElements'](_0x4f0c2a['markerName']);if(_0x4826eb){for(const _0x5e3cac of _0x4826eb)_0x5e3cac['hasClass']('ck-suggestion-marker-split')&&(_0x3100db['mapper']['unbindElementFromMarkerName'](_0x5e3cac,_0x4f0c2a['markerName']),_0x3100db['writer']['remove'](_0x5e3cac));}},{'priority':'high'}),_0x342e31['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x59a8fe,_0x521442,_0x1e64ce)=>{_0x1e64ce['options']['showSuggestionHighlights']&&Ge(_0x342e31,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x59a8fe,_0x521442,_0x1e64ce);},{'priority':'high'});}}class tt extends _0x9da42{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x1b4ab8=this['editor']['plugins']['get']('TrackChangesEditing');_0x1b4ab8['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x1b4ab8['enableCommand']('findNext'),_0x1b4ab8['enableCommand']('findPrevious'),_0x1b4ab8['enableCommand']('replace'),_0x1b4ab8['enableCommand']('replaceAll');}['handleFindCommand'](_0x57281c,_0x5dd729,_0x4a2f51={}){const _0x1e69b5=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x57281c(_0x31d128=>{let _0xa696f6=('string'==typeof _0x5dd729?_0x1e69b5['findByTextCallback'](_0x5dd729,_0x4a2f51):_0x5dd729)(_0x31d128);Array['isArray'](_0xa696f6)&&(_0xa696f6={'results':_0xa696f6,'searchText':'string'==typeof _0x5dd729?_0x5dd729:''});const _0xbccd6c=_0xa696f6['results']['filter'](_0x4d84cc=>!0x1===this['_isInDeletionRange'](_0x4d84cc,_0x31d128['item']));return{..._0xa696f6,'results':_0xbccd6c};},_0x4a2f51);}['_isInDeletionRange'](_0x3ca347,_0x20c63e){const _0x534f98=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x20c63e,_0x3ca347['start']),this['editor']['model']['createPositionAt'](_0x20c63e,_0x3ca347['end']));for(const _0x403c of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x534f98['getIntersection'](_0x403c['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class et extends _0x9da42{['afterInit'](){const _0x4b789c=this['editor']['locale'],_0x3b0414=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x177e92,commandName:_0x4793cf}of eo)this['editor']['plugins']['has'](_0x177e92)&&(_0x3b0414['enableDefaultAttributesIntegration'](_0x4793cf),_0x3b0414['registerInlineAttribute'](_0x4793cf));_0x3b0414['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x4b789c,'FORMAT_FONT_SIZE')),_0x3b0414['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x4b789c,'FORMAT_FONT_FAMILY')),_0x3b0414['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x4b789c,'FORMAT_FONT_COLOR')),_0x3b0414['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x4b789c,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3c0982=this['editor'],_0x1458b1=_0x3c0982['locale'];_0x3c0982['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ebb3d=>{const _0x3dfd86=_0x1458b1['t'];if('formatInline'!=_0x2ebb3d['type'])return;const {data:_0x5849f4}=_0x2ebb3d;if(null!=_0x5849f4){if('fontSize'==_0x5849f4['commandName']){const _0x1dcd5c=_0x5849f4['commandParams'][0x0]['value'];if(_0x1dcd5c){const _0x44b45f=_0x3dfd86(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0xacd6d=>_0xacd6d['model']==_0x1dcd5c)['title'])['toLowerCase']();return{'type':'format','content':o(_0x1458b1,'*Set\x20font\x20size:*\x20%0',_0x44b45f)};}return{'type':'format','content':o(_0x1458b1,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x5849f4['commandName']){const _0xcf180b=_0x5849f4['commandParams'][0x0]['value'];return _0xcf180b?{'type':'format','content':o(_0x1458b1,'*Set\x20font\x20family:*\x20%0',_0xcf180b)}:{'type':'format','content':o(_0x1458b1,'*Reset\x20font\x20family*')};}if('fontColor'==_0x5849f4['commandName']){const _0x5a753f=_0x5849f4['commandParams'][0x0]['value'];if(_0x5a753f){const _0x247a23=_0x4d3d4f(this['editor']['config']['get']('fontColor.colors'))['find'](_0x2c919f=>_0x2c919f['model']==_0x5a753f);let _0x420c02=_0x5a753f,_0x54ec4c='';return _0x247a23&&(_0x420c02=_0x247a23['label'],_0x54ec4c=_0x3dfd86(_0x420c02)['toLowerCase']()),{'type':'format','content':o(_0x1458b1,'*Set\x20font\x20color:*\x20%0',_0x54ec4c)['trim'](),'color':{'value':_0x5a753f,'title':_0x54ec4c||_0x420c02}};}return{'type':'format','content':o(_0x1458b1,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x5849f4['commandName']){const _0x226118=_0x5849f4['commandParams'][0x0]['value'];if(_0x226118){const _0x1d0e68=_0x4d3d4f(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x469866=>_0x469866['model']==_0x226118);let _0x1896a4=_0x226118,_0x3631a8='';return _0x1d0e68&&(_0x1896a4=_0x1d0e68['label'],_0x3631a8=_0x3dfd86(_0x1896a4)['toLowerCase']()),{'type':'format','content':o(_0x1458b1,'*Set\x20font\x20background\x20color:*\x20%0',_0x3631a8)['trim'](),'color':{'value':_0x226118,'title':_0x3631a8||_0x1896a4}};}return{'type':'format','content':o(_0x1458b1,'*Reset\x20font\x20background\x20color*')};}}});}}class it extends _0x9da42{['afterInit'](){const _0x396012=this['editor'],_0xa1e7f8=_0x396012['plugins']['get']('TrackChangesEditing'),_0x1ea2ff=_0x396012['commands']['get']('copyFormat'),_0x4942b1=_0x396012['commands']['get']('pasteFormat');_0x1ea2ff&&_0x4942b1&&(_0xa1e7f8['enableDefaultAttributesIntegration']('pasteFormat'),_0xa1e7f8['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x2b13fa=this['editor'],_0x274907=_0x2b13fa['locale'];_0x2b13fa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x35edc6=>{if('formatBlock'!=_0x35edc6['type']&&'formatInline'!=_0x35edc6['type'])return;const {data:_0x4a9b83}=_0x35edc6;if(_0x4a9b83&&'pasteFormat'===_0x4a9b83['commandName']){const _0x22e2d9=[],_0x57531a=_0x4a9b83['commandParams'][0x0];for(const [_0x27af4d,_0x244e07]of Object['entries'](_0x57531a))_0x22e2d9['push'](ro(_0x2b13fa,_0x27af4d,_0x244e07));return _0x22e2d9['length']?{'type':'format','content':o(_0x274907,'*Set\x20format\x20to:*\x20%0',_0x22e2d9['join'](',\x20'))}:{'type':'format','content':o(_0x274907,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x5f5cca,_0x294cdc,_0x1f4b21){const _0x18b6d0=_0x5f5cca['locale']['t'],_0x16d958=_0x294cdc['split'](/(?=[A-Z])/)['join']('\x20'),_0xbf960e=_0x18b6d0(_0x16d958['charAt'](0x0)['toUpperCase']()+_0x16d958['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x1f4b21)return _0xbf960e;if('fontColor'===_0x294cdc||'fontBackgroundColor'===_0x294cdc){const _0x2a2ea2=_0x4d3d4f(_0x5f5cca['config']['get']('fontColor.colors'))['find'](_0x3cbfc=>_0x3cbfc['model']==_0x1f4b21);return _0xbf960e+'\x20('+(_0x2a2ea2?_0x18b6d0(_0x2a2ea2['label'])['toLowerCase']():_0x1f4b21)+')';}if('fontSize'===_0x294cdc&&isNaN(parseFloat(_0x1f4b21))){const _0x463d06=_0x5f5cca['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x5f5cca['config']['get']('fontSize.options'))['find'](_0x53f289=>_0x53f289['model']==_0x1f4b21);return _0xbf960e+'\x20('+(_0x463d06?_0x18b6d0(_0x463d06['title'])['toLowerCase']():_0x1f4b21)+')';}return _0xbf960e+'\x20('+_0x1f4b21+')';}class nt extends _0x9da42{['_headingOptions'];['afterInit'](){const _0x37b5f9=this['editor'];if(!_0x37b5f9['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x37b5f9['config']['get']('heading.options');const _0x49d7e5=_0x37b5f9['locale'],_0x32fbe6=_0x37b5f9['plugins']['get']('TrackChangesEditing');_0x32fbe6['enableDefaultAttributesIntegration']('heading');for(const _0x226ec0 of this['_headingOptions'])'paragraph'!=_0x226ec0['model']&&_0x32fbe6['descriptionFactory']['registerElementLabel'](_0x226ec0['model'],_0xb60d48=>{const _0x3d7600=this['_getHeadingLevel'](_0x226ec0['model']);return null!==_0x3d7600?_0x298f73(_0xb60d48,_0x3d7600):_0x3fbaec(_0xb60d48,_0x226ec0['title']);});function _0x298f73(_0x40fa8f,_0x1d1f8f){return o(_0x49d7e5,'ELEMENT_HEADING',[_0x40fa8f,_0x1d1f8f]);}function _0x3fbaec(_0x36814b,_0x2d18f0){return o(_0x49d7e5,'ELEMENT_HEADING_CUSTOM',[_0x36814b,_0x2d18f0]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3fdee=this['editor'],_0x2f8ef0=_0x3fdee['locale'];function _0xb32812(_0x112129,_0x3b51a7){return o(_0x2f8ef0,'ELEMENT_HEADING_CUSTOM',[_0x112129,_0x3b51a7]);}_0x3fdee['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x238363=>{if('formatBlock'!=_0x238363['type'])return;const {data:_0x4d9ec4}=_0x238363;if(_0x4d9ec4&&'heading'==_0x4d9ec4['commandName']){const _0x1a1e6d=_0x4d9ec4['commandParams'][0x0]['value'],_0x3afe31=this['_getHeadingLevel'](_0x1a1e6d);if(null!==_0x3afe31)return{'type':'format','content':o(_0x2f8ef0,'*Change\x20to:*\x20%0',(_0x34d7db=0x1,_0x4f4e8c=_0x3afe31,o(_0x2f8ef0,'ELEMENT_HEADING',[_0x34d7db,_0x4f4e8c])))};const _0xa361c4=this['_headingOptions']['find'](_0x57b708=>_0x57b708['model']===_0x1a1e6d)['title'];return{'type':'format','content':o(_0x2f8ef0,'*Change\x20to:*\x20%0',_0xb32812(0x1,_0xa361c4))};}var _0x34d7db,_0x4f4e8c;});}['_getHeadingLevel'](_0x3224ef){const _0x2546ed=_0x3224ef['match'](/^heading(\d+)/);if(_0x2546ed)return _0x2546ed[0x1];const _0x20aa88=this['_headingOptions']?.['find'](_0x249527=>_0x249527['model']==_0x3224ef);if(_0x20aa88&&_0x20aa88['view']){const _0x5e4fff=_0x20aa88['view'],_0xd94d8=(_0x5e4fff['name']??_0x5e4fff)['match'](/^h(\d+)/);if(_0xd94d8)return _0xd94d8[0x1];}return null;}}class st extends _0x9da42{['afterInit'](){const _0xb4702=this['editor'];if(!_0xb4702['plugins']['has']('HighlightEditing'))return;const _0x21e98e=_0xb4702['plugins']['get']('TrackChangesEditing'),_0x504885=_0xb4702['locale'];_0x21e98e['enableDefaultAttributesIntegration']('highlight'),_0x21e98e['registerInlineAttribute']('highlight'),_0x21e98e['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x504885,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x29829d=this['editor'],_0x431846=_0x29829d['locale'];_0x29829d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3dc66a=>{if('formatInline'!=_0x3dc66a['type'])return;const {data:_0x539cdd}=_0x3dc66a;if(_0x539cdd&&'highlight'==_0x539cdd['commandName']){const _0x1a93e3=_0x431846['t'],_0x53b8e9=_0x539cdd['commandParams'][0x0]['value'];if(_0x53b8e9){const _0x3bbc83=_0x29829d['config']['get']('highlight.options')['find'](_0x4b40ad=>_0x4b40ad['model']==_0x53b8e9),_0x21f756=_0x1a93e3(_0x3bbc83['title'])['toLowerCase']();return{'type':'format','content':o(_0x431846,'*Set\x20highlight:*\x20%0',_0x21f756),'color':{'value':_0x3bbc83['color'],'title':_0x3bbc83['title']}};}return{'type':'format','content':o(_0x431846,'*Remove\x20highlight*',o(_0x431846,'FORMAT_HIGHLIGHT'))};}});}}class ot extends _0x9da42{['afterInit'](){const _0x18fe62=this['editor'];if(!_0x18fe62['plugins']['has']('HorizontalLineEditing'))return;_0x18fe62['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x5b41d9=_0x18fe62['plugins']['get']('TrackChangesEditing'),_0x276fc0=_0x18fe62['locale'];_0x5b41d9['descriptionFactory']['registerElementLabel']('horizontalLine',_0x1fac3b=>o(_0x276fc0,'ELEMENT_HORIZONTAL_LINE',_0x1fac3b)),_0x18fe62['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x5a5699,{writer:_0x4cc2e5,options:_0x243a38})=>{if(!_0x243a38['showSuggestionHighlights'])return null;const _0x1b0f95=_0x4cc2e5['createContainerElement']('div'),_0x405e85=_0x4cc2e5['createEmptyElement']('hr');return _0x4cc2e5['addClass']('ck-horizontal-line',_0x1b0f95),_0x4cc2e5['insert'](_0x4cc2e5['createPositionAt'](_0x1b0f95,0x0),_0x405e85),_0x1b0f95;},'converterPriority':'high'});}}class rt extends _0x9da42{['afterInit'](){const _0x2176c2=this['editor'];if(!_0x2176c2['plugins']['has']('HtmlEmbed'))return;const _0xe73b00=_0x2176c2['plugins']['get']('TrackChangesEditing'),_0x1688a4=_0x2176c2['locale'];_0xe73b00['descriptionFactory']['registerElementLabel']('rawHtml',_0x7ea70c=>o(_0x1688a4,'ELEMENT_HTML_EMBED',_0x7ea70c)),_0xe73b00['enableDefaultAttributesIntegration']('htmlEmbed'),_0xe73b00['registerBlockAttribute']('value'),_0xe73b00['descriptionFactory']['registerDescriptionCallback'](_0x4a36f4=>{if('attribute'!=_0x4a36f4['type'])return;const {data:_0x30b69e}=_0x4a36f4;if(_0x30b69e&&'value'==_0x30b69e['key']&&_0x4a36f4['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x5a2765=o(_0x1688a4,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1688a4,'*Change\x20%0\x20content*',_0x5a2765)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3b5d8b=this['editor'],_0x3ad288=_0x3b5d8b['locale'];_0x3b5d8b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c44ec=>{if('formatBlock'!=_0x3c44ec['type'])return;const {data:_0xa03652}=_0x3c44ec;if(_0xa03652&&'htmlEmbed'==_0xa03652['commandName']){const _0x89c27e=o(_0x3ad288,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3ad288,'*Change\x20%0\x20content*',_0x89c27e)};}});}}class at extends _0x9da42{['afterInit'](){const _0x1f9024=this['editor'];if(!_0x1f9024['plugins']['has']('ImageEditing'))return;const _0x410099=_0x1f9024['plugins']['get']('TrackChangesEditing'),_0x236cce=_0x1f9024['plugins']['get']('ImageUtils'),_0x42ce4a=_0x1f9024['locale'];_0x410099['enableCommand']('insertImage'),_0x410099['descriptionFactory']['registerElementLabel']('imageBlock',_0x3d2ad1=>o(_0x42ce4a,'ELEMENT_IMAGE',_0x3d2ad1)),_0x410099['descriptionFactory']['registerElementLabel']('imageInline',_0x1ae66f=>o(_0x42ce4a,'ELEMENT_INLINE_IMAGE',_0x1ae66f)),_0x410099['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x42ce4a,'ELEMENT_CAPTION')),_0x1f9024['plugins']['has']('ImageUploadEditing')&&_0x410099['enableCommand']('uploadImage'),_0x1f9024['plugins']['has']('ImageBlockEditing')&&_0x1f9024['plugins']['has']('ImageInlineEditing')&&(_0x410099['enableCommand']('imageTypeInline',(_0x23a231,_0x38d0d0)=>{const _0x186c89=_0x236cce['getClosestSelectedImageElement'](_0x1f9024['model']['document']['selection']);_0x1f9024['model']['change'](()=>{_0x410099['markBlockFormat'](_0x186c89,{'commandName':'imageTypeInline','commandParams':[_0x38d0d0]},[],'convertBlockImageToInline');});}),_0x410099['enableCommand']('imageTypeBlock',(_0x47bf35,_0x4bf895)=>{_0x1f9024['model']['change'](_0x726857=>{let _0x529708=_0x236cce['getClosestSelectedImageElement'](_0x1f9024['model']['document']['selection']),_0xecbcdf=_0x726857['createRangeOn'](_0x529708);const _0x59bb6a=_0x392a61['fromPosition'](_0xecbcdf['start'],'toPrevious'),_0x130957=_0x392a61['fromPosition'](_0xecbcdf['end'],'toNext');_0x410099['forceDefaultExecution'](()=>_0x47bf35(_0x4bf895)),_0x529708=_0x236cce['getClosestSelectedImageElement'](_0x1f9024['model']['document']['selection']),_0xecbcdf=_0x726857['createRangeOn'](_0x529708);const _0x567541=_0x726857['createRange'](_0x59bb6a,_0x130957);_0x59bb6a['detach'](),_0x130957['detach'](),_0x410099['markBlockFormat'](_0x529708,{'commandName':'imageTypeInline','commandParams':[_0x4bf895]},[],'convertInlineImageToBlock'),_0x567541['start']['isBefore'](_0xecbcdf['start'])&&_0x410099['markInsertion'](_0x726857['createRange'](_0x567541['start'],_0xecbcdf['start']),'convertInlineImageToBlock'),_0xecbcdf['end']['isBefore'](_0x567541['end'])&&_0x410099['markInsertion'](_0x726857['createRange'](_0xecbcdf['end'],_0x567541['end']),'convertInlineImageToBlock');});}),_0x410099['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x410099['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x410099['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x410099['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x410099['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x410099['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x5c09b7])=>{const _0x126997=_0x410099['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x1fc6b9=_0x5c09b7['start'],_0x2f0b7d=_0x5c09b7['end'];const _0x2c9f48=_0x1f9024['model']['schema']['getNearestSelectionRange'](_0x1fc6b9,'backward'),_0x246458=_0x1f9024['model']['schema']['getNearestSelectionRange'](_0x2f0b7d,'forward');_0x2c9f48['isCollapsed']&&(_0x1fc6b9=_0x2c9f48['start']),_0x246458['isCollapsed']&&(_0x2f0b7d=_0x246458['end']),_0x126997([_0x1f9024['model']['createRange'](_0x1fc6b9,_0x2f0b7d)]);}),_0x410099['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x40659),_0x410099['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x40659)),_0x1f9024['plugins']['has']('ImageCaptionEditing')&&(_0x410099['enableCommand']('toggleImageCaption',(_0x4291f3,_0x2933cf)=>{const _0x1e40c8=_0x1f9024['plugins']['get']('ImageCaptionUtils');let _0x26861f=_0x236cce['getClosestSelectedImageElement'](_0x1f9024['model']['document']['selection']),_0x26c7fb=_0x1e40c8['getCaptionFromImageModelElement'](_0x26861f);_0x1f9024['model']['change'](()=>{if(_0x26c7fb)return void _0x410099['markDeletion'](_0x1f9024['model']['createRangeOn'](_0x26c7fb));const _0x2d47fd=_0x236cce['isBlockImage'](_0x26861f);_0x4291f3(_0x2933cf),_0x26861f=_0x236cce['getClosestSelectedImageElement'](_0x1f9024['model']['document']['selection']),_0x26c7fb=_0x1e40c8['getCaptionFromImageModelElement'](_0x26861f),_0x410099['markInsertion'](_0x1f9024['model']['createRangeOn'](_0x26c7fb),_0x2d47fd?null:'imageCaption');});}),_0x410099['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x40659));const _0x1848b4=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x113a25(_0x49b982,_0x3cbc83){const _0x34f4e8=_0x1848b4['findIndex'](({type:_0x3589a4,subType:_0x3bef30})=>_0x49b982['type']==_0x3589a4&&_0x49b982['subType']==_0x3bef30),_0x2e562c=_0x1848b4['findIndex'](({type:_0x2b896f,subType:_0x590eff})=>_0x3cbc83['type']==_0x2b896f&&_0x3cbc83['subType']==_0x590eff);if(_0x34f4e8<0x0||_0x2e562c<0x0)return!0x1;const _0x11fd78=_0x49b982['getFirstRange'](),_0x51cbcb=_0x3cbc83['getFirstRange']();if((0x0==_0x34f4e8||0x1==_0x34f4e8)&&0x2==_0x2e562c&&_0x11fd78['isIntersecting'](_0x51cbcb))return!0x0;if(0x2==_0x34f4e8&&0x3==_0x2e562c){const _0x487b65=_0x410099['_findSuggestions'](_0x11fd78,'insertion')['filter'](({suggestion:_0x5d1c23,meta:_0xa9eb5b})=>_0xa9eb5b['isOwn']&&'convertInlineImageToBlock'==_0x5d1c23['subType']);if(_0x487b65['length']>0x1&&_0x51cbcb['end']['isEqual'](_0x11fd78['start']))return!0x0;if(0x1==_0x487b65['length']&&(_0x11fd78['start']['isEqual'](_0x51cbcb['end'])||_0x11fd78['end']['isEqual'](_0x51cbcb['start'])))return!0x0;}if(0x3==_0x34f4e8&&0x3==_0x2e562c&&_0x11fd78['start']['isBefore'](_0x51cbcb['start'])){const _0x2c1880=_0x11fd78['end']['nodeAfter'],_0x2d6f32=_0x51cbcb['start']['nodeBefore'];return _0x236cce['isBlockImage'](_0x2c1880)&&_0x2c1880===_0x2d6f32;}return!0x1;}function _0x40659(_0x430e56,_0x483ad0){return _0x113a25(_0x430e56,_0x483ad0)?[_0x430e56,_0x483ad0]:_0x113a25(_0x483ad0,_0x430e56)?[_0x483ad0,_0x430e56]:null;}_0x1f9024['plugins']['has']('ImageResize')&&(_0x410099['enableDefaultAttributesIntegration']('resizeImage'),_0x410099['registerBlockAttribute']('resizedWidth'),_0x410099['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x42ce4a,'FORMAT_IMAGE_SIZE'))),_0x1f9024['plugins']['has']('ImageTextAlternativeEditing')&&(_0x410099['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x410099['registerBlockAttribute']('alt')),_0x1f9024['plugins']['has']('PictureEditing')&&(_0x410099['registerBlockAttribute']('sources'),_0x410099['descriptionFactory']['registerDescriptionCallback'](_0x245197=>{if('attribute'!=_0x245197['type'])return;const {data:_0x2a491b}=_0x245197;return _0x2a491b&&'sources'==_0x2a491b['key']?{'type':'format','content':''}:void 0x0;})),_0x1f9024['plugins']['has']('ImageSizeAttributes')&&(_0x410099['registerBlockAttribute']('width'),_0x410099['registerBlockAttribute']('height'),_0x410099['descriptionFactory']['registerDescriptionCallback'](_0x494d18=>{if('attribute'!=_0x494d18['type'])return;const {data:_0x10863c}=_0x494d18;return!_0x10863c||'width'!=_0x10863c['key']&&'height'!=_0x10863c['key']?void 0x0:{'type':'format','content':''};})),_0x410099['descriptionFactory']['registerDescriptionCallback'](_0x20499d=>{if(!!_0x1848b4['find'](({type:_0x10c736,subType:_0x2e481f})=>_0x20499d['type']==_0x10c736&&_0x20499d['subType']==_0x2e481f))return _0x20499d['previous']?{}:void 0x0;}),_0x410099['descriptionFactory']['registerDescriptionCallback'](_0x23750f=>{if('insertion'==_0x23750f['type']||'deletion'==_0x23750f['type']){const _0x2fc3c6=_0x23750f['getContainedElement']();if(_0x2fc3c6&&_0x2fc3c6['is']('element','caption'))return{'type':'insertion'==_0x23750f['type']?'addObject':'removeObject','element':_0x2fc3c6,'quantity':0x1};}}),_0x410099['descriptionFactory']['registerDescriptionCallback'](_0x159e2b=>'formatBlock'==_0x159e2b['type']&&'convertInlineImageToBlock'==_0x159e2b['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x159e2b['type']&&'convertBlockImageToInline'==_0x159e2b['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x410099['descriptionFactory']['registerDescriptionCallback'](_0x19daf1=>{if('attribute'!=_0x19daf1['type'])return;const {data:_0x422e60}=_0x19daf1;if(!_0x422e60||'alt'!=_0x422e60['key'])return;const _0x3fc56c=_0x422e60['newValue'];return _0x3fc56c?{'type':'format','content':o(_0x42ce4a,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3fc56c+'\x22')}:{'type':'format','content':o(_0x42ce4a,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x557c57=this['editor'],_0x36b67a=_0x557c57['locale'];_0x557c57['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x574f5e=>{if('formatBlock'!=_0x574f5e['type']&&'formatInline'!=_0x574f5e['type'])return;const {data:_0x1d0c95}=_0x574f5e;if(_0x1d0c95){if('imageTextAlternative'==_0x1d0c95['commandName']){const _0xe51d64=_0x1d0c95['commandParams'][0x0]['newValue'];return _0xe51d64?{'type':'format','content':o(_0x36b67a,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xe51d64+'\x22')}:{'type':'format','content':o(_0x36b67a,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x1d0c95['commandName']){const _0x590114=_0x1d0c95['commandParams'][0x0]['width'];return _0x590114?{'type':'format','content':o(_0x36b67a,'*Set\x20image\x20width:*\x20%0',_0x590114)}:{'type':'format','content':o(_0x36b67a,'*Reset\x20image\x20width*')};}}});}}class ct extends _0x9da42{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x47dc10=this['editor']['locale'],_0x402e51=this['editor']['plugins']['get']('TrackChangesEditing');_0x402e51['enableDefaultAttributesIntegration']('replaceImageSource'),_0x402e51['registerBlockAttribute']('src'),_0x402e51['descriptionFactory']['registerDescriptionCallback'](_0x53d04a=>{if('attribute'!=_0x53d04a['type'])return;const {data:_0x5e89fa}=_0x53d04a;return _0x5e89fa&&'src'==_0x5e89fa['key']?_0x5e89fa['newValue']&&_0x5e89fa['oldValue']?{'type':'format','content':o(_0x47dc10,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xc7d216=this['editor']['plugins']['get']('TrackChangesEditing');_0xc7d216['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0xc7d216['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xc7d216['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0xc7d216['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x12ec73=this['editor'],_0x285d33=_0x12ec73['locale'];_0x12ec73['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5695bc=>{if('formatBlock'!=_0x5695bc['type']&&'formatInline'!=_0x5695bc['type'])return;const {data:_0x121d80}=_0x5695bc;if(!_0x121d80||'replaceImageSource'!=_0x121d80['commandName'])return;return{'type':'format','content':o(_0x285d33,'*Format:*\x20replace\x20image\x20URL')};});}}class ut extends _0x9da42{['afterInit'](){const _0x345ed0=this['editor'];if(!_0x345ed0['plugins']['has']('ImageStyleEditing'))return;const _0x183250=_0x345ed0['plugins']['get']('TrackChangesEditing'),_0x4ea038=_0x345ed0['plugins']['get']('ImageUtils'),_0x1a00ef={};_0x183250['enableCommand']('imageStyle',(_0x24f793,_0x4521d8)=>{const _0x243b92=_0x345ed0['plugins']['get']('Users')['me'],_0x4368f6=_0x345ed0['commands']['get']('imageStyle');let _0x4a0de4=_0x4ea038['getClosestSelectedImageElement'](_0x345ed0['model']['document']['selection']),_0x15e224=_0x345ed0['model']['createRangeOn'](_0x4a0de4),_0x4483df=_0x4368f6['value'];if(_0x4483df==_0x4521d8['value'])return;const _0x5ea8ee={'commandName':'imageStyle','commandParams':[_0x4521d8],'formatGroupId':_0x11d0ec()};_0x345ed0['model']['change'](()=>{if(_0x183250['getSuggestions']()['filter'](_0x4e4bbb=>_0x4e4bbb['isInContent']&&_0x243b92==_0x4e4bbb['author']&&('formatBlock'==_0x4e4bbb['type']||'formatInline'==_0x4e4bbb['type'])&&('imageStylePreApply'==_0x4e4bbb['subType']||'imageStylePostApply'==_0x4e4bbb['subType'])&&_0x4e4bbb['getFirstRange']()['isEqual'](_0x15e224))['forEach'](_0x8c0e81=>_0x183250['discardSuggestion'](_0x8c0e81['head'])),_0x4a0de4=_0x4ea038['getClosestSelectedImageElement'](_0x345ed0['model']['document']['selection']),_0x15e224=_0x345ed0['model']['createRangeOn'](_0x4a0de4),_0x4368f6['refresh'](),_0x345ed0['commands']['get']('imageTypeInline')['refresh'](),_0x345ed0['commands']['get']('imageTypeBlock')['refresh'](),_0x4483df=_0x4368f6['value'],_0x4483df!=_0x4521d8['value'])return _0x4ea038['isInlineImage'](_0x4a0de4)&&_0x4368f6['shouldConvertImageType'](_0x4521d8['value'],_0x4a0de4)?(_0x24f793({..._0x4521d8,'setImageSizes':!0x1}),_0x4a0de4=_0x4ea038['getClosestSelectedImageElement'](_0x345ed0['model']['document']['selection']),void _0x183250['markBlockFormat'](_0x4a0de4,{..._0x5ea8ee,'commandReversedParams':[{'value':_0x4483df||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x4ea038['isBlockImage'](_0x4a0de4)?_0x183250['markBlockFormat'](_0x4a0de4,_0x5ea8ee,[],'imageStylePostApply'):_0x183250['markInlineFormat'](_0x15e224,_0x5ea8ee,'imageStylePostApply'));});});for(const _0x1d4984 of _0x345ed0['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x1a00ef[_0x1d4984['name']]=_0x1d4984['title']['toLowerCase']();_0x183250['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x183250['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x183250['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x183250['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x323cb7])=>{_0x4ea038['setImageNaturalSizeAttributes'](_0x323cb7['getContainedElement']());}),_0x183250['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2661de,_0x132d7a)=>{_0x183250['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2661de,{'commandName':_0x132d7a['commandName'],'commandParams':_0x132d7a['commandReversedParams']});}),_0x183250['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x19fbd2,_0x5ee4af){if(_0x42ccf1(_0x19fbd2,_0x5ee4af))return[_0x19fbd2,_0x5ee4af];if(_0x42ccf1(_0x5ee4af,_0x19fbd2))return[_0x5ee4af,_0x19fbd2];return null;});const _0x5a4dff=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x42ccf1(_0x4771c7,_0x53d7e4){const _0x569d0a=_0x5a4dff['findIndex'](({type:_0x2b8bfc,subType:_0x1ad59d})=>_0x4771c7['type']==_0x2b8bfc&&_0x4771c7['subType']==_0x1ad59d),_0x3fbea5=_0x5a4dff['findIndex'](({type:_0x2e1a90,subType:_0x393682})=>_0x53d7e4['type']==_0x2e1a90&&_0x53d7e4['subType']==_0x393682);if(_0x569d0a<0x0||_0x3fbea5<0x0)return!0x1;const _0x10b353=_0x4771c7['getFirstRange'](),_0x21647e=_0x53d7e4['getFirstRange']();if((0x0==_0x569d0a||0x1==_0x569d0a)&&0x2==_0x3fbea5&&_0x10b353['isIntersecting'](_0x21647e))return!0x0;if(0x2==_0x569d0a&&0x3==_0x3fbea5){const _0x5a24fe=_0x183250['_findSuggestions'](_0x10b353,'insertion')['filter'](({suggestion:_0x34860e,meta:_0x5657c8})=>_0x5657c8['isOwn']&&'convertInlineImageToBlock'==_0x34860e['subType']);if(_0x5a24fe['length']>0x1&&_0x21647e['end']['isEqual'](_0x10b353['start']))return!0x0;if(0x1==_0x5a24fe['length']&&(_0x10b353['start']['isEqual'](_0x21647e['end'])||_0x10b353['end']['isEqual'](_0x21647e['start'])))return!0x0;}if(0x3==_0x569d0a&&0x3==_0x3fbea5&&_0x10b353['start']['isBefore'](_0x21647e['start'])){const _0x563c2e=_0x10b353['end']['nodeAfter'],_0x13b0d4=_0x21647e['start']['nodeBefore'];return _0x4ea038['isBlockImage'](_0x563c2e)&&_0x563c2e===_0x13b0d4;}return!0x1;}_0x345ed0['model']['document']['registerPostFixer'](()=>{let _0x406a15=!0x1;const _0x93e911=Array['from'](_0x345ed0['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x19422a,data:_0x239575}of _0x93e911){const {group:_0x470f6d,type:_0x2450af,subType:_0x393b82,id:_0x481bd0}=_0x183250['_splitMarkerName'](_0x19422a);if('suggestion'==_0x470f6d&&_0x183250['hasSuggestion'](_0x481bd0)){if('formatBlock'==_0x2450af&&('imageStylePreApply'==_0x393b82||'imageStylePostApply'==_0x393b82)){const _0x10ccb5=_0x183250['getSuggestion'](_0x481bd0);if(_0x239575['newRange']){const _0x378479=_0x10ccb5['getFirstRange']()['getContainedElement']();if(_0x4ea038['isBlockImage'](_0x378479))continue;_0x183250['discardSuggestion'](_0x10ccb5),_0x406a15=!0x0;}}if('insertion'==_0x2450af&&'imageCaption'==_0x393b82&&!_0x239575['newRange']){const _0x3bafa7=_0x183250['getSuggestion'](_0x481bd0);_0x3bafa7['next']&&_0x3bafa7['next']['isInContent']&&(_0x183250['discardSuggestion'](_0x3bafa7['next']),_0x406a15=!0x0);}}}return _0x406a15;}),this['_registerLegacyDescription'](_0x1a00ef);}['_registerLegacyDescription'](_0x476204){const _0x3a11bb=this['editor'],_0x332237=_0x3a11bb['locale'];_0x3a11bb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x356d2c=>{if('formatBlock'!=_0x356d2c['type']&&'formatInline'!=_0x356d2c['type'])return;const {data:_0x3a6689}=_0x356d2c;if(!_0x3a6689||'imageStyle'!=_0x3a6689['commandName'])return;const _0x3a15cb=_0x3a6689['commandParams'][0x0]['value'];return _0x4b48fc('side'===_0x3a15cb?o(_0x332237,'FORMAT_SIDE_IMAGE'):_0x476204[_0x3a15cb]||_0x3a15cb);function _0x4b48fc(_0x31f43f){return{'type':'format','content':o(_0x332237,'*Format:*\x20%0',_0x31f43f)};}});}}class ft extends _0x9da42{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x11b260){super(_0x11b260),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x4313c7=this['editor'],_0x30910b=_0x4313c7['commands']['get']('importWord'),_0x3c6ec9=_0x4313c7['commands']['get']('trackChanges');_0x30910b&&(_0x30910b['on']('execute',(_0x247262,[,_0x113aa5])=>{this['_trackChangesValueDuringImport']=_0x3c6ec9['value'],_0x113aa5['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x30910b,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x30910b,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x3c6ec9['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4313c7['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x24ae28,_0x2f2f3e){const {suggestions:_0x33e387}=_0x2f2f3e,_0x4ea48b=this['editor']['commands']['get']('trackChanges'),_0x172608=_0x4ea48b['value'];this['_trackChangesValueDuringImport']!==_0x172608&&(_0x4ea48b['execute'](),this['_trackChangesExecuted']=!0x0),_0x33e387&&_0x33e387['forEach'](({id:_0x38c11c,type:_0x4bae3d,author:_0xbfef72,created_at:_0x36f727})=>{const _0x3e4481={'id':_0x38c11c,'type':_0x4bae3d,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0xbfef72,'createdAt':_0x36f727?new Date(_0x36f727):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x3e4481);});}}class ht extends _0x9da42{['afterInit'](){const _0xbe5896=this['editor'],_0x28de60=_0xbe5896['plugins']['get']('TrackChangesEditing');if(_0xbe5896['plugins']['has']('IndentEditing')&&(_0x28de60['enableCommand']('indent'),_0x28de60['enableCommand']('outdent')),_0xbe5896['plugins']['has']('IndentBlock')){for(const _0x1bc33e of['indentBlock','outdentBlock'])_0x28de60['enableDefaultAttributesIntegration'](_0x1bc33e);}const _0x2baa3f=_0xbe5896['locale'];_0x28de60['registerBlockAttribute']('blockIndent'),_0x28de60['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x2baa3f,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x10f2cb=this['editor'],_0x3f3d21=_0x10f2cb['locale'],_0x533784=_0x10f2cb['plugins']['get']('TrackChangesEditing');_0x533784['descriptionFactory']['registerDescriptionCallback'](_0x17236b=>{if('formatBlock'!=_0x17236b['type'])return;const {data:_0x30a398}=_0x17236b;if(!_0x30a398)return;if('indentBlock'!=_0x30a398['commandName']&&'outdentBlock'!=_0x30a398['commandName'])return;const _0x5c8f75=_0x17236b['getItems']()[0x0],_0x262cdb=_0x533784['descriptionFactory']['getItemLabel'](_0x5c8f75);return'indentBlock'==_0x30a398['commandName']?{'type':'format','content':o(_0x3f3d21,'*Indent:*\x20%0',_0x262cdb)}:'outdentBlock'==_0x30a398['commandName']?{'type':'format','content':o(_0x3f3d21,'*Outdent:*\x20%0',_0x262cdb)}:void 0x0;});}}class gt extends _0x9da42{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x9da42{['afterInit'](){const _0x223282=this['editor'];if(!_0x223282['plugins']['has']('LinkEditing'))return;const _0x310bf3=_0x223282['plugins']['get']('TrackChangesEditing'),_0x434d59=_0x223282['commands']['get']('link');_0x310bf3['enableDefaultAttributesIntegration']('link'),_0x310bf3['enableDefaultAttributesIntegration']('unlink'),_0x310bf3['registerInlineAttribute']('linkHref');for(const _0x3d9f23 of _0x434d59['manualDecorators'])_0x310bf3['registerInlineAttribute'](_0x3d9f23['id']),_0x310bf3['descriptionFactory']['registerAttributeLabel'](_0x3d9f23['id'],'link\x20('+_0x3d9f23['label']['toLowerCase']()+')');_0x310bf3['descriptionFactory']['registerDescriptionCallback'](_0x3f4e65=>{if('attribute'!=_0x3f4e65['type'])return;const {data:_0x47c351}=_0x3f4e65;if(!_0x47c351||'linkHref'!=_0x47c351['key'])return;const _0x418170=_0x47c351['newValue'],_0x4a7204=_0x223282['locale'];return{'type':'format','content':null==_0x418170?o(_0x4a7204,'*Remove\x20link*'):o(_0x4a7204,'*Set\x20link:*\x20%0','\x22'+_0x418170+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x11f0d3=this['editor'],_0x355405=_0x11f0d3['locale'];_0x11f0d3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47e9cd=>{if('formatInline'!=_0x47e9cd['type'])return;const {data:_0x4423b9}=_0x47e9cd;if(_0x4423b9){if('link'==_0x4423b9['commandName']){const _0x543788=_0x4423b9['commandParams'][0x0];return{'type':'format','content':o(_0x355405,'*Set\x20link:*\x20%0','\x22'+_0x543788+'\x22')};}return'unlink'==_0x4423b9['commandName']?{'type':'format','content':o(_0x355405,'*Remove\x20link*')}:void 0x0;}});}}class dt extends _0x9da42{['afterInit'](){const _0x255c6f=this['editor'],_0x346e91=_0x255c6f['locale'];if(!_0x255c6f['plugins']['has']('LegacyListEditing'))return;const _0x33b87b=_0x255c6f['plugins']['get']('TrackChangesEditing'),_0x2287af=_0x255c6f['plugins']['has']('LegacyTodoListEditing');function _0x457105(_0x576f61){return()=>{const _0x34fd33=_0x255c6f['model']['document']['selection'],_0x34ef79=_0x255c6f['commands']['get'](_0x576f61);if(_0x34ef79['value'])return void _0x255c6f['execute']('paragraph',{});const _0x1aaeaa=_0x576f61['slice'](0x0,-0x4),_0x354318=function(_0x3da0e4,_0x54d5e5,_0x1444c2){let _0x166172=Array['from'](_0x3da0e4)['filter'](_0x5c3b14=>function(_0x3b2350,_0x183065){return _0x183065['checkChild'](_0x3b2350['parent'],'listItem')&&!_0x183065['isObject'](_0x3b2350);}(_0x5c3b14,_0x1444c2));_0x166172=_0x166172['filter'](_0x577d53=>!_0x577d53['is']('element','listItem')||_0x577d53['getAttribute']('listType')!=_0x54d5e5);const _0x397639=new Set();for(const _0x236ef2 of _0x166172)_0x236ef2['is']('element','listItem')?_0x397639['add'](Ne(_0x236ef2)):_0x397639['add'](_0x236ef2);return Array['from'](_0x397639);}(_0x34fd33['getSelectedBlocks'](),_0x1aaeaa,_0x255c6f['model']['schema']);_0x255c6f['model']['change'](()=>{for(const _0x27a222 of _0x354318)_0x33b87b['markBlockFormat'](_0x27a222,{'commandName':_0x576f61,'commandParams':[{'forceValue':!_0x34ef79['value']}],'formatGroupId':'blockName'},Se(_0x27a222));});};}function _0x768939(_0x1704ea){return()=>{const _0x42272a=function(_0x3b4939){let _0x395bad=Array['from'](_0x3b4939);const _0x12798b=_0x395bad['findIndex'](_0x396f4a=>'listItem'!=_0x396f4a['name']);return _0x12798b>-0x1&&(_0x395bad=_0x395bad['slice'](0x0,_0x12798b)),_0x395bad;}(_0x255c6f['model']['document']['selection']['getSelectedBlocks']()),_0x5c2e55=_0x255c6f['model']['createRange'](_0x255c6f['model']['createPositionAt'](_0x42272a[0x0],'before'),_0x255c6f['model']['createPositionAt'](_0x42272a[_0x42272a['length']-0x1],'end'));_0x255c6f['model']['change'](()=>{_0x33b87b['markBlockFormat'](_0x5c2e55,{'commandName':_0x1704ea,'commandParams':[],'formatGroupId':'listIndent'},function(_0x50a9bc){const _0x7c69eb=new Set();for(const _0x286adf of _0x50a9bc){let _0x4c797e=_0x286adf['nextSibling'];for(;_0x4c797e&&_0x4c797e['getAttribute']('listIndent')>_0x286adf['getAttribute']('listIndent');)_0x7c69eb['add'](_0x4c797e),_0x4c797e=_0x4c797e['nextSibling'];}return Array['from'](_0x7c69eb);}(_0x42272a));});};}_0x33b87b['enableCommand']('numberedList',_0x457105('numberedList')),_0x33b87b['enableCommand']('bulletedList',_0x457105('bulletedList')),_0x2287af&&_0x33b87b['enableCommand']('todoList',_0x457105('todoList')),_0x33b87b['enableCommand']('indentList',_0x768939('indentList')),_0x33b87b['enableCommand']('outdentList',_0x768939('outdentList')),_0x2287af&&_0x33b87b['enableCommand']('checkTodoList',()=>{const _0x53e811=_0x255c6f['commands']['get']('checkTodoList'),_0x19b232=Array['from'](_0x53e811['_selectedElements']);_0x19b232['filter'](_0x579430=>_0x579430['getAttribute']('todoListChecked')!=_0x53e811['value']),_0x255c6f['model']['change'](()=>{for(const _0x5c45b5 of _0x19b232)_0x33b87b['markBlockFormat'](_0x5c45b5,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x53e811['value']}]});});}),_0x33b87b['descriptionFactory']['registerElementLabel']('listItem',_0x47404f=>o(_0x346e91,'ELEMENT_LIST_ITEM',_0x47404f)),_0x33b87b['descriptionFactory']['registerDescriptionCallback'](_0x4cc227=>{if('formatBlock'!=_0x4cc227['type']&&'formatInline'!=_0x4cc227['type'])return;const {data:_0x2138e2}=_0x4cc227;if(_0x2138e2){if('numberedList'==_0x2138e2['commandName']||'bulletedList'==_0x2138e2['commandName']||'todoList'==_0x2138e2['commandName'])switch(_0x2138e2['commandName']['replace']('List','')){case'bulleted':return _0x3cd19c(o(_0x346e91,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3cd19c(o(_0x346e91,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3cd19c(o(_0x346e91,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2138e2['commandName'])return{'type':'format','content':o(_0x346e91,'*Indent:*\x20%0',o(_0x346e91,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2138e2['commandName'])return{'type':'format','content':o(_0x346e91,'*Outdent:*\x20%0',o(_0x346e91,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2138e2['commandName'])return _0x2138e2['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x346e91,'*Check\x20item*')}:{'type':'format','content':o(_0x346e91,'*Uncheck\x20item*')};}function _0x3cd19c(_0x300474){return{'type':'format','content':o(_0x346e91,'*Change\x20to:*\x20%0',_0x300474)};}});}}function Ne(_0x2fee6b){const _0x122009=_0x2fee6b['getAttribute']('listIndent');if(0x0==_0x122009)return _0x2fee6b;let _0x203e2f=_0x2fee6b;for(;_0x2fee6b['previousSibling']&&_0x2fee6b['previousSibling']['is']('element','listItem');){const _0x4163dd=_0x2fee6b['previousSibling']['getAttribute']('listIndent');if(_0x4163dd==_0x122009)_0x203e2f=_0x2fee6b['previousSibling'];else{if(_0x4163dd<_0x122009)break;}_0x2fee6b=_0x2fee6b['previousSibling'];}return _0x203e2f;}function Se(_0x5c76bc){const _0x155f1f=[];if(_0x5c76bc['is']('element','listItem')&&_0x5c76bc['getAttribute']('listIndent')>0x0){let _0x5a8a3c=_0x5c76bc['nextSibling'];for(;_0x5a8a3c&&'listItem'==_0x5a8a3c['name']&&_0x5a8a3c['getAttribute']('listIndent')==_0x5c76bc['getAttribute']('listIndent');)_0x155f1f['push'](_0x5a8a3c),_0x5a8a3c=_0x5a8a3c['nextSibling'];}return _0x155f1f;}class mt extends _0x9da42{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x7533f8=this['editor']['config']['get']('list.properties'),_0x8adff9=this['editor']['plugins']['get']('TrackChangesEditing');_0x7533f8['styles']&&_0x8adff9['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x7533f8['reversed']&&_0x8adff9['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x7533f8['startIndex']&&_0x8adff9['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x8adff9['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x2bd099,_0x419403={}){const _0x9ad96b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3cc9c3=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x9ad96b['markMultiRangeBlockFormat'](_0x3cc9c3,{'commandName':'listStyle','commandParams':[{'type':_0x419403['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x39bc33,_0x6597ca={}){const _0x4b0b40=this['editor']['plugins']['get']('TrackChangesEditing'),_0x27daeb=this['_getSuggestionBlocks'](_0x1a0cdf=>_0x1a0cdf['is']('element','listItem')&&'numbered'===_0x1a0cdf['getAttribute']('listType'));if(_0x27daeb['length']<0x1)return;const _0x113a12=_0x27daeb['map'](_0x1c278f=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1c278f,'before'),this['editor']['model']['createPositionAt'](_0x1c278f,0x0)));this['editor']['model']['change'](()=>{_0x4b0b40['markMultiRangeBlockFormat'](_0x113a12,{'commandName':'listReversed','commandParams':[{'reversed':_0x6597ca['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x2d7380,_0x57991a={}){const _0x37244c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x21350a=this['_getSuggestionBlocks'](_0x133e0d=>_0x133e0d['is']('element','listItem')&&'numbered'===_0x133e0d['getAttribute']('listType'));if(_0x21350a['length']<0x1)return;const _0x5b04f7=_0x21350a['map'](_0x4f4b19=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4f4b19,'before'),this['editor']['model']['createPositionAt'](_0x4f4b19,0x0)));this['editor']['model']['change'](()=>{_0x37244c['markMultiRangeBlockFormat'](_0x5b04f7,{'commandName':'listStart','commandParams':[{'startIndex':_0x57991a['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x1d6a95){if('formatBlock'!=_0x1d6a95['type']&&'formatInline'!=_0x1d6a95['type'])return;const _0x493094=this['editor']['locale'],{data:_0xdaea9b}=_0x1d6a95;if(!_0xdaea9b)return;let _0x5a4f3c,_0x20d7aa;switch(_0xdaea9b['commandName']){case'listStyle':_0x5a4f3c='*Change\x20to:*\x20%0',_0x20d7aa={'type':'format','content':o(_0x493094,_0x5a4f3c,o(_0x493094,this['_getTranslationKeyForListStyle'](_0xdaea9b['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5a4f3c=_0xdaea9b['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x20d7aa={'type':'format','content':o(_0x493094,_0x5a4f3c)};break;case'listStart':_0x5a4f3c='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x20d7aa={'type':'format','content':o(_0x493094,_0x5a4f3c,_0xdaea9b['commandParams'][0x0]['startIndex'])};}return _0x20d7aa;}['_getSuggestionBlocksForListStyle'](){const _0x5059f6=this['editor']['plugins']['get']('LegacyListUtils');let _0x434248=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x434248[0x0]?.['is']('element','listItem')&&_0x434248['unshift'](..._0x5059f6['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x434248[_0x434248['length']-0x1]?.['is']('element','listItem')&&_0x434248['push'](..._0x5059f6['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x434248=[...new Set(_0x434248)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x434248=_0x434248['filter'](_0x38fcf9=>_0x38fcf9['is']('element','listItem'))),_0x434248;}['_getSuggestionBlocks'](_0x49ef3e){const _0x310f8b=this['editor']['plugins']['get']('LegacyListUtils');let _0xec82c6=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x49ef3e)['map'](_0x170e90=>{const _0x1671f7=this['editor']['model']['createPositionAt'](_0x170e90,0x0);return[..._0x310f8b['getSiblingNodes'](_0x1671f7,'backward'),..._0x310f8b['getSiblingNodes'](_0x1671f7,'forward')];})['flat']();return _0xec82c6=[...new Set(_0xec82c6)],_0xec82c6;}['_getTranslationKeyForListStyle'](_0x6a4d30){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x6a4d30)||'default')['toUpperCase']()+'_LIST_'+_0x6a4d30['toUpperCase']()['replace'](/-/g,'_');}}class pt extends _0x9da42{['afterInit'](){const _0x5e0169=this['editor'];if(!_0x5e0169['plugins']['has']('MediaEmbedEditing'))return;const _0x372977=_0x5e0169['plugins']['get']('TrackChangesEditing'),_0x1eb0fb=_0x5e0169['locale'];_0x372977['enableCommand']('mediaEmbed'),_0x372977['descriptionFactory']['registerElementLabel']('media',_0x48d587=>o(_0x1eb0fb,'ELEMENT_MEDIA',_0x48d587)),_0x5e0169['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x42a2d2,{writer:_0x590799,options:_0x368617})=>{if(_0x368617['showSuggestionHighlights'])return _0x590799['createEmptyElement']('div');},'converterPriority':'high'}),_0x5e0169['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3409ab,_0x4c2ea8,_0x3af896)=>{_0x3af896['options']['showSuggestionHighlights']&&_0x3409ab['stop']();},{'priority':'high'});}}class kt extends _0x9da42{['afterInit'](){const _0x1cfbf3=this['editor'];_0x1cfbf3['plugins']['has']('MentionEditing')&&_0x1cfbf3['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x9da42{['afterInit'](){const _0x79bbe2=this['editor'];if(!_0x79bbe2['plugins']['has']('MergeFieldsEditing'))return;const _0x50b78b=_0x79bbe2['plugins']['get']('TrackChangesEditing'),_0x5883f0=_0x79bbe2['locale'];_0x50b78b['enableCommand']('insertMergeField'),_0x50b78b['enableCommand']('insertMergeFieldBlock'),_0x50b78b['enableCommand']('insertMergeFieldImage'),_0x50b78b['descriptionFactory']['registerElementLabel']('mergeField',_0x23c0f3=>o(_0x5883f0,'ELEMENT_MERGE_FIELD',_0x23c0f3)),_0x50b78b['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x3a0b0c=>o(_0x5883f0,'ELEMENT_MERGE_FIELD',_0x3a0b0c)),_0x50b78b['descriptionFactory']['registerDescriptionCallback'](_0x2f6f17=>{if('insertion'!=_0x2f6f17['type']&&'deletion'!=_0x2f6f17['type'])return;const _0x244af7=_0x2f6f17['getContainedElement']();if(null==_0x244af7)return;const _0x25b3f4=_0x79bbe2['plugins']['get']('MergeFieldsEditing');let _0x537a7d;switch(_0x25b3f4['getMergeFieldType'](_0x244af7)){case null:return;case'image':{const _0x261464=_0x25b3f4['unwrapAffixes'](_0x244af7['getAttribute']('src'));_0x537a7d=_0x25b3f4['getLabel'](_0x261464)||_0x261464;break;}default:{const _0x45647c=_0x244af7['getAttribute']('id');_0x537a7d=_0x25b3f4['getLabel'](_0x45647c)||_0x45647c;break;}}return'insertion'==_0x2f6f17['type']?{'type':'insertion','content':o(_0x5883f0,'*Insert:*\x20%0','\x22'+_0x537a7d+'\x22\x20'+o(_0x5883f0,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x5883f0,'*Remove:*\x20%0','\x22'+_0x537a7d+'\x22\x20'+o(_0x5883f0,'ELEMENT_MERGE_FIELD'))};});}}class bt extends _0x9da42{['afterInit'](){const _0x302a43=this['editor'],_0x17152c=_0x302a43['plugins']['get']('TrackChangesEditing');_0x302a43['plugins']['has']('MultiLevelList')&&(_0x17152c['enableDefaultAttributesIntegration']('multiLevelList'),_0x17152c['registerBlockAttribute']('listMarkerStyle'),_0x17152c['descriptionFactory']['registerDescriptionCallback'](_0x5e035c=>this['handleDescriptions'](_0x5e035c)));}['handleDescriptions'](_0x14b4b6){const _0x4254d4=this['editor']['locale'],{data:_0x5a8962}=_0x14b4b6,_0x17cba4={'type':'format','content':''};if(_0x5a8962&&'listMarkerStyle'==_0x5a8962['key']){if(!_0x5a8962['oldValue'])return{'type':'format','content':o(_0x4254d4,'*Set\x20format:*\x20%0',o(_0x4254d4,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5a8962['newValue']+')'};if(!_0x5a8962['newValue']){let _0x1ad8a5=_0x14b4b6['head'];for(;_0x1ad8a5;){if(_0x1ad8a5['data']&&'listType'==_0x1ad8a5['data']['key']&&_0x1ad8a5['data']['newValue'])return _0x17cba4;_0x1ad8a5=_0x1ad8a5['next'];}return{'type':'format','content':o(_0x4254d4,'*Remove\x20format:*\x20%0',o(_0x4254d4,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5a8962['oldValue']+')'};}}}}class yt extends _0x9da42{['afterInit'](){const _0x244782=this['editor'];if(!_0x244782['plugins']['has']('PageBreakEditing'))return;_0x244782['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x202e10=_0x244782['plugins']['get']('TrackChangesEditing'),_0x372f69=_0x244782['locale'];_0x202e10['descriptionFactory']['registerElementLabel']('pageBreak',_0x188043=>o(_0x372f69,'ELEMENT_PAGE_BREAK',_0x188043));}}class St extends _0x9da42{['afterInit'](){const _0x32b9de=this['editor'];if(!_0x32b9de['plugins']['has']('Paragraph'))return;const _0xddb9ec=_0x32b9de['locale'],_0x404e7e=_0x32b9de['plugins']['get']('TrackChangesEditing');_0x404e7e['descriptionFactory']['registerElementLabel']('paragraph',_0xcaf12a=>o(_0xddb9ec,'ELEMENT_PARAGRAPH',_0xcaf12a)),_0x404e7e['enableDefaultAttributesIntegration']('paragraph'),_0x404e7e['enableCommand']('insertParagraph'),_0x32b9de['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x32b9de),{'priority':'highest'}),_0x32b9de['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4936d3,_0xda5013,_0x522214)=>{_0x522214['options']['showSuggestionHighlights']&&nr(_0x32b9de,{'showActiveMarker':!0x1})(_0x4936d3,_0xda5013,_0x522214);},{'priority':'highest'});const _0x40ebc6=_0x404e7e['descriptionFactory'];_0x40ebc6['registerDescriptionCallback'](_0x164477=>{if('insertion'!==_0x164477['type'])return;const {start:_0x56fe38,end:_0x4800a0}=_0x164477['getFirstRange']();if(!_0x56fe38['isTouching'](_0x4800a0)||!_0x56fe38['nodeAfter'])return;const _0x570576=_0x32b9de['model']['schema'],_0x1d3ae3=_0x56fe38['nodeAfter'];return _0x570576['isBlock'](_0x1d3ae3)&&!_0x570576['isLimit'](_0x1d3ae3)&&_0x570576['checkChild'](_0x1d3ae3,'$text')?{'type':'insertion','content':o(_0xddb9ec,'*Insert:*\x20%0',_0x40ebc6['getItemLabel'](_0x1d3ae3,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x226e95=this['editor'],_0x4a9633=_0x226e95['locale'];_0x226e95['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x55577f=>{if('formatBlock'!=_0x55577f['type'])return;const {data:_0x4714cd}=_0x55577f;return _0x4714cd&&'paragraph'==_0x4714cd['commandName']?{'type':'format','content':o(_0x4a9633,'*Change\x20to:*\x20%0',o(_0x4a9633,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x524eb2,{showActiveMarker:_0x399ae4=!0x0}={}){return(_0x583035,_0x451790,_0x47dbba)=>{const _0x297c76=_0x524eb2['plugins']['get']('TrackChangesEditing'),_0x59b38e=_0x451790['markerRange']['start'],_0x4e1a69=_0x451790['markerRange']['end'],_0x308068=_0x524eb2['model']['schema'];if(!_0x59b38e['isTouching'](_0x4e1a69)||!_0x59b38e['nodeAfter'])return;const _0x313a79=_0x59b38e['nodeAfter'];if(_0x308068['isBlock'](_0x313a79)&&!_0x308068['isLimit'](_0x313a79)&&_0x308068['checkChild'](_0x313a79,'$text')){if(!_0x47dbba['consumable']['consume'](_0x451790['markerRange'],_0x583035['name']))return;const {id:_0x5b4a7c,authorId:_0x45d24b}=_0x297c76['_splitMarkerName'](_0x451790['markerName']),_0x11e0a2=_0x47dbba['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x5b4a7c,'data-author-id':_0x45d24b}),_0x5df38b=_0x47dbba['mapper']['toViewPosition'](_0x4e1a69);_0x399ae4&&_0x297c76['activeMarkers']['includes'](_0x451790['markerName'])&&_0x47dbba['writer']['addClass']('ck-suggestion-marker--active',_0x11e0a2),_0x47dbba['writer']['insert'](_0x5df38b,_0x11e0a2),_0x47dbba['mapper']['bindElementToMarker'](_0x11e0a2,_0x451790['markerName']);}};}class jt extends _0x9da42{['afterInit'](){const _0x363e16=this['editor'];_0x363e16['commands']['get']('replaceSource')&&_0x363e16['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class It extends _0x9da42{['afterInit'](){const _0x2f5008=this['editor'];if(!_0x2f5008['plugins']['has']('RemoveFormatEditing'))return;_0x2f5008['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c302c=this['editor'];_0x4c302c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x28fd4d=>{if('formatBlock'!=_0x28fd4d['type']&&'formatInline'!=_0x28fd4d['type'])return;const {data:_0x47757f}=_0x28fd4d;return _0x47757f&&'removeFormat'==_0x47757f['commandName']?{'type':'format','content':o(_0x4c302c['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x9da42{['afterInit'](){const _0x1bdba5=this['editor'];if(!_0x1bdba5['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x582aba=_0x1bdba5['plugins']['get']('TrackChangesEditing');_0x582aba['enableCommand']('goToPreviousRestrictedEditingException'),_0x582aba['enableCommand']('goToNextRestrictedEditingException');const _0x3cb17d=_0x1bdba5['plugins']['get']('RestrictedEditingModeEditing');_0x3cb17d['enableCommand']('trackChanges'),_0x3cb17d['enableCommand']('acceptSuggestion'),_0x3cb17d['enableCommand']('discardSuggestion'),_0x3cb17d['enableCommand']('acceptAllSuggestions'),_0x3cb17d['enableCommand']('discardAllSuggestions'),_0x3cb17d['enableCommand']('acceptSelectedSuggestions'),_0x3cb17d['enableCommand']('discardSelectedSuggestions');}}class _t extends _0x9da42{['afterInit'](){const _0x5c02e6=this['editor'];if(!_0x5c02e6['plugins']['has']('ShiftEnter'))return;const _0x1f4589=_0x5c02e6['plugins']['get']('TrackChangesEditing');_0x1f4589['enableCommand']('shiftEnter'),_0x5c02e6['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ee(_0x5c02e6),{'priority':'high'}),_0x5c02e6['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ee(_0x5c02e6),{'priority':'high'}),_0x5c02e6['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x360442,_0xff1c14,_0x344c43)=>{_0x344c43['options']['showSuggestionHighlights']&&Ee(_0x5c02e6,{'showActiveMarker':!0x1})(_0x360442,_0xff1c14,_0x344c43);}),_0x1f4589['descriptionFactory']['registerElementLabel']('softBreak',_0x1b8e94=>o(_0x5c02e6['locale'],'ELEMENT_LINE_BREAK',_0x1b8e94));}}function Ee(_0x194fa3,{showActiveMarker:_0x2980ee=!0x0}={}){return(_0x1b854f,_0x296a8b,_0x1bb089)=>{const _0x12f020=_0x194fa3['plugins']['get']('TrackChangesEditing');if(!_0x1bb089['consumable']['test'](_0x296a8b['markerRange'],_0x1b854f['name']))return;const _0x50ce46=_0x194fa3['model'];for(const _0x2b1e73 of _0x296a8b['markerRange']['getItems']()){if(!_0x2b1e73['is']('element','softBreak'))continue;const _0xc5182a='deletion'==_0x296a8b['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x5f3be3,authorId:_0x1fafe5}=_0x12f020['_splitMarkerName'](_0x296a8b['markerName']),_0x20e426=_0x1bb089['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xc5182a,'data-suggestion':_0x5f3be3,'data-author-id':_0x1fafe5}),_0x1f75c5=_0x1bb089['mapper']['toViewPosition'](_0x50ce46['createPositionBefore'](_0x2b1e73));_0x2980ee&&_0x12f020['activeMarkers']['includes'](_0x296a8b['markerName'])&&_0x1bb089['writer']['addClass']('ck-suggestion-marker--active',_0x20e426),_0x1bb089['writer']['insert'](_0x1f75c5,_0x20e426),_0x1bb089['mapper']['bindElementToMarker'](_0x20e426,_0x296a8b['markerName']);}};}class vt extends _0x9da42{['afterInit'](){const _0x918817=this['editor'],_0x1cc3f1=_0x918817['model'],_0x5dc506=_0x918817['locale'];if(!_0x918817['plugins']['has']('StandardEditingModeEditing'))return;const _0x52a799=_0x918817['plugins']['get']('TrackChangesEditing'),_0x26986c='restrictedEditingException',_0x3ecef6=_0x918817['commands']['get'](_0x26986c);_0x52a799['enableCommand'](_0x26986c,(_0x5747f3,_0x24a702={})=>{const _0x5ecffb=_0x1cc3f1['document']['selection'];if(_0x5ecffb['isCollapsed'])return void _0x5747f3(_0x24a702);const _0x12e8fc=void 0x0!==_0x24a702['forceValue']?_0x24a702['forceValue']:!_0x3ecef6['value'];_0x1cc3f1['change'](()=>{const _0x1ada8a=Array['from'](_0x5ecffb['getRanges']());for(const _0x49408b of _0x1ada8a){const _0x27df5b=_0x12e8fc?[_0x49408b]:io(_0x26986c,_0x49408b,_0x1cc3f1);for(const _0x94245f of _0x27df5b)_0x52a799['markInlineFormat'](_0x94245f,{'commandName':_0x26986c,'commandParams':[{'forceValue':_0x12e8fc}]});}});}),_0x52a799['descriptionFactory']['registerDescriptionCallback'](_0x1f0bff=>{if('formatBlock'!=_0x1f0bff['type']&&'formatInline'!=_0x1f0bff['type'])return;const {data:_0x591bff}=_0x1f0bff;return _0x591bff&&_0x591bff['commandName']==_0x26986c?_0x591bff['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5dc506,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x5dc506,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class Ct extends _0x9da42{['afterInit'](){const _0x2eff8d=this['editor'];if(!_0x2eff8d['plugins']['has']('Style')||!_0x2eff8d['plugins']['has']('DataSchema'))return;const _0x3a534c=_0x2eff8d['plugins']['get']('TrackChangesEditing'),_0x82bea=_0x2eff8d['locale'],_0x53ed25=_0x2eff8d['config']['get']('style')||{},_0x219c75=_0x2eff8d['plugins']['get']('GeneralHtmlSupport'),_0x169a85=_0x2eff8d['plugins']['get']('StyleUtils')['normalizeConfig'](_0x2eff8d['plugins']['get']('DataSchema'),_0x53ed25['definitions']);_0x3a534c['enableDefaultAttributesIntegration']('style');const _0x3e968d=new Set();for(const _0xe78fc6 of _0x169a85['block']){const _0x3b8583=_0x219c75['getGhsAttributeNameForElement'](_0xe78fc6['element']);_0x3e968d['add'](_0x3b8583);}const _0x22e8fd=new Set();for(const _0x33d161 of _0x169a85['inline']){const _0x479a37=_0x219c75['getGhsAttributeNameForElement'](_0x33d161['element']);_0x22e8fd['add'](_0x479a37);for(const _0x23effa of _0x33d161['ghsAttributes'])_0x22e8fd['add'](_0x23effa);}for(const _0x4d8836 of _0x3e968d)_0x3a534c['registerBlockAttribute'](_0x4d8836),_0x3a534c['descriptionFactory']['registerAttributeLabel'](_0x4d8836,o(_0x82bea,'FORMAT_STYLE'));for(const _0x2417b4 of _0x22e8fd)_0x3a534c['registerInlineAttribute'](_0x2417b4),_0x3a534c['descriptionFactory']['registerAttributeLabel'](_0x2417b4,o(_0x82bea,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xa588d1=this['editor'],_0x4a278f=_0xa588d1['locale'];_0xa588d1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x21faaf=>{if('formatBlock'!=_0x21faaf['type']&&'formatInline'!=_0x21faaf['type'])return;const {data:_0xb2672d}=_0x21faaf;return _0xb2672d&&'style'===_0xb2672d['commandName']?_0xb2672d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4a278f,'*Set\x20format:*\x20%0',_0xb2672d['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x4a278f,'*Remove\x20format:*\x20%0',_0xb2672d['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class $t extends _0x9da42{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x5171a2){super(_0x5171a2),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x1807ee=this['editor'],_0x31ae8b=_0x1807ee['model']['document']['selection'];if(!_0x1807ee['plugins']['has']('TableEditing'))return;const _0x224bf3=_0x1807ee['locale'],_0x53afd1=_0x1807ee['plugins']['get']('TrackChangesEditing'),_0x5c659c=_0x1807ee['plugins']['get']('TableUtils');_0x53afd1['descriptionFactory']['registerElementLabel']('table',_0x15f382=>o(_0x224bf3,'ELEMENT_TABLE',_0x15f382)),this['_setupColumnsRowsFixing'](),_0x53afd1['enableCommand']('insertTable'),_0x53afd1['enableCommand']('selectTableRow'),_0x53afd1['enableCommand']('selectTableColumn');for(const _0x3e0816 of['insertTableRowAbove','insertTableRowBelow']){const _0x4713c1=_0x1807ee['commands']['get'](_0x3e0816);_0x53afd1['enableCommand'](_0x3e0816,_0x2c55da=>{_0x1807ee['model']['change'](_0x3014b0=>{_0x2c55da();const _0x12803e='above'===_0x4713c1['order'],_0x38ced2=_0x5c659c['getSelectionAffectedTableCells'](_0x31ae8b),_0x387363=_0x5c659c['getRowIndexes'](_0x38ced2),_0x4cef92=_0x12803e?_0x387363['first']-0x1:_0x387363['last']+0x1,_0x2a1030=_0x38ced2[0x0]['findAncestor']('table'),_0x331767=_0x5c659c['createTableWalker'](_0x2a1030,{'startRow':_0x4cef92,'endRow':_0x4cef92}),_0x549853=Array['from'](_0x331767)['map'](_0x2dc10c=>_0x3014b0['createRangeOn'](_0x2dc10c['cell']));_0x53afd1['markMultiRangeInsertion'](_0x549853,'tableRow');});});}for(const _0x5c29c6 of['insertTableColumnLeft','insertTableColumnRight']){const _0x390d36=_0x1807ee['commands']['get'](_0x5c29c6);_0x53afd1['enableCommand'](_0x5c29c6,_0x4b702e=>{_0x1807ee['model']['change'](_0x26b96d=>{_0x4b702e();const _0x3360c7='left'===_0x390d36['order'],_0x31f9d7=_0x5c659c['getSelectionAffectedTableCells'](_0x31ae8b),_0x37c14c=_0x5c659c['getColumnIndexes'](_0x31f9d7),_0x593531=_0x3360c7?_0x37c14c['first']-0x1:_0x37c14c['last']+0x1,_0x1e5c6d=_0x31f9d7[0x0]['findAncestor']('table'),_0xbf7db1=_0x5c659c['createTableWalker'](_0x1e5c6d,{'startRow':0x0,'column':_0x593531,'includeAllSlots':!0x1}),_0x3244f0=Array['from'](_0xbf7db1)['map'](_0x331abb=>_0x26b96d['createRangeOn'](_0x331abb['cell']));_0x53afd1['markMultiRangeInsertion'](_0x3244f0,'tableColumn');});});}for(const _0xb0b302 of['removeTableRow','removeTableColumn']){const _0x342176=_0xb0b302['substr'](0xb),_0x5492fe=_0x342176['toLowerCase'](),_0x2d2fc2=_0x5492fe['substr'](0x0,0x3)+'span',_0x5d2001='table'+_0x342176,_0x2acfac='min'+_0x342176,_0x1c2b94='max'+_0x342176;_0x53afd1['enableCommand'](_0xb0b302,()=>{_0x1807ee['model']['change'](_0x520d2e=>{const _0x44d69c=_0x5c659c['getSelectionAffectedTableCells'](_0x31ae8b),_0x26c303=_0x44d69c[0x0]['findAncestor']('table');let _0x5f7ae8;if('removeTableRow'==_0xb0b302){const _0x35a0b3=_0x5c659c['getRowIndexes'](_0x44d69c);_0x5f7ae8={'startRow':_0x35a0b3['first'],'endRow':_0x35a0b3['last'],'includeAllSlots':!0x0};}else{const _0x130d56=_0x5c659c['getColumnIndexes'](_0x44d69c);_0x5f7ae8={'startColumn':_0x130d56['first'],'endColumn':_0x130d56['last'],'includeAllSlots':!0x0};}const _0xf36435=_0x5c659c['createTableWalker'](_0x26c303,_0x5f7ae8),_0x550b2d=Array['from'](_0xf36435)['map'](({cell:_0x131c47})=>_0x131c47),_0x352e69=We(_0x550b2d['filter'](_0x28eb40=>_0x28eb40['hasAttribute'](_0x2d2fc2))),_0x2cb858=We(_0x550b2d['filter'](_0xf7fe0=>!_0xf7fe0['hasAttribute'](_0x2d2fc2)))['map'](_0x1585af=>_0x520d2e['createRangeOn'](_0x1585af)),_0x543c9c=_0x53afd1['markMultiRangeDeletion'](_0x2cb858,_0x5d2001);if(_0x543c9c&&('tableRow'==_0x543c9c['subType']||'tableColumn'==_0x543c9c['subType'])){const _0x1ba46c=this['_getSuggestionCoords'](_0x543c9c);for(const _0x58ab82 of _0x352e69){const _0x16635d=_0x520d2e['createRangeOn'](_0x58ab82),_0x2c1c40=_0x5c659c['getCellLocation'](_0x58ab82),_0x152016=_0x58ab82['getAttribute'](_0x2d2fc2)-0x1,_0x46ab04=_0x1ba46c[_0x2acfac],_0x2b8539=_0x1ba46c[_0x1c2b94];_0x46ab04<=_0x2c1c40[_0x5492fe]&&_0x2c1c40[_0x5492fe]+_0x152016<=_0x2b8539&&_0x543c9c['addRange'](_0x16635d);}}});});}function _0x129666(_0x1ef4a6){const _0x2a9dd1=Array['from'](_0x31ae8b['getRanges']())['map'](_0x9400ba=>_0x3337fa['fromRange'](_0x9400ba));_0x1807ee['model']['change'](_0xe7a36b=>{const _0x1116dc=_0xe7a36b['batch'];_0x1ef4a6=_0x1ef4a6['filter'](_0x591f9f=>'$graveyard'!=_0x591f9f['root']['rootName']),_0xe7a36b['setSelection'](_0x1ef4a6),_0x1807ee['commands']['get']('removeTableRow')['refresh'](),_0x1807ee['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x1807ee['model']['enqueueChange'](()=>{_0x1807ee['model']['enqueueChange'](_0x1116dc,_0xd5c3ef=>{const _0x5976a1=_0x2a9dd1['filter'](_0x1018f3=>'$graveyard'!=_0x1018f3['root']['rootName']);_0x5976a1['length']>0x0&&_0xd5c3ef['setSelection'](_0x5976a1);for(const _0x1c7f5f of _0x2a9dd1)_0x1c7f5f['detach']();});});});}function _0x4a5456(_0x58f1dd){_0x1807ee['model']['change'](_0x55c4e9=>{const _0x1f837e=Array['from'](_0x31ae8b['getRanges']())['map'](_0x736760=>_0x3337fa['fromRange'](_0x736760)),_0x578166=[];for(const _0x319573 of _0x58f1dd)for(const _0x44f1d6 of _0x319573['getItems']({'shallow':!0x0}))_0x578166['push'](_0x44f1d6);for(const _0x692f70 of _0x578166)'$graveyard'!=_0x692f70['root']['rootName']&&(_0x55c4e9['setSelection'](_0x55c4e9['createPositionAt'](_0x692f70,0x0)),_0x1807ee['commands']['get']('removeTableColumn')['refresh'](),_0x1807ee['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x5cb039=_0x1f837e['filter'](_0x2dba38=>'$graveyard'!=_0x2dba38['root']['rootName']);_0x5cb039['length']>0x0&&_0x55c4e9['setSelection'](_0x5cb039);for(const _0x3ae6b4 of _0x1f837e)_0x3ae6b4['detach']();});}function _0xcd97f5(_0x312b1c,_0x50fdcf){return _0x50fdcf['every'](_0x1b8cbb=>_0x312b1c['some'](_0x59d165=>_0x59d165['end']['isEqual'](_0x1b8cbb['start'])||_0x1b8cbb['end']['isEqual'](_0x59d165['start'])));}function _0x3b820d(_0xd5936c,_0x13f53b){return!_0xd5936c['some'](_0x422525=>_0x13f53b['some'](_0x3b18ad=>_0x422525['isIntersecting'](_0x3b18ad)))&&_0xd5936c['some'](_0x5b3aff=>_0x13f53b['some'](_0x5eda8a=>_0x5b3aff['end']['isTouching'](_0x5eda8a['start'])));}_0x1807ee['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5c5eb4,_0x5c46e1,_0x1cc008)=>{if(!_0x1cc008['options']['showSuggestionHighlights'])return;const _0x5e57e5=_0x5c46e1['item'];if(!_0x5e57e5||!_0x5e57e5['is']('element','tableCell'))return;const _0x452674=_0x1cc008['mapper']['toViewElement'](_0x5e57e5);if(_0x452674){const {id:_0x3a95e5,authorId:_0x4944a3}=_0x53afd1['_splitMarkerName'](_0x5c46e1['markerName']);_0xb40d0f(_0x452674,_0x1cc008['writer'],(_0x529818,_0x48c570,_0x636da5)=>{_0x636da5['addClass'](_0x43d579(_0x48c570['classes']),_0x529818),_0x636da5['setAttribute']('data-suggestion-id',_0x3a95e5,_0x529818),_0x636da5['setAttribute']('data-author-id',_0x4944a3,_0x529818);},(_0x797ad9,_0x9e3c1c,_0xa725e5)=>{_0xa725e5['removeClass'](_0x43d579(_0x9e3c1c['classes']),_0x797ad9),_0xa725e5['removeAttribute']('data-suggestion-id',_0x797ad9),_0xa725e5['removeAttribute']('data-author-id',_0x797ad9);});}},{'priority':'highest'}),_0x53afd1['descriptionFactory']['registerDescriptionCallback'](_0x5b30ed=>{if('insertion'!=_0x5b30ed['type']&&'deletion'!=_0x5b30ed['type'])return;const _0x47bc7c=_0x5b30ed['getContainedElement']();if(null!=_0x47bc7c&&_0x47bc7c['is']('element','table')){if('insertion'==_0x5b30ed['type']){const _0x1db67f=_0x5b30ed['getItems']()['filter'](_0x1cc360=>_0x1cc360['is']('$textProxy'))['map'](_0x47cb38=>_0x47cb38['data']);if(_0x1db67f['length'])return{'type':'insertion','content':o(_0x224bf3,'*Insert:*\x20%0',o(_0x224bf3,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1db67f['join']('\x20')+'\x22'))};}if('deletion'==_0x5b30ed['type']){const _0x380900=_0x5b30ed['getItems']()['filter'](_0x6bdba3=>_0x6bdba3['is']('$textProxy'))['map'](_0x3b6403=>_0x3b6403['data']);if(_0x380900['length'])return{'type':'deletion','content':o(_0x224bf3,'*Remove:*\x20%0',o(_0x224bf3,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x380900['join']('\x20')+'\x22'))};}}}),_0x53afd1['descriptionFactory']['registerDescriptionCallback'](_0x179d2c=>{if('tableRow'==_0x179d2c['subType']){const _0x7e2d8b=_0x179d2c['getItems']()['filter'](_0x16d329=>_0x16d329['is']('$textProxy'))['map'](_0x4f90ab=>_0x4f90ab['data']),_0x575a6a=this['_getSuggestionCoords'](_0x179d2c),_0x4d7961=_0x575a6a['maxRow']-_0x575a6a['minRow']+0x1;if('insertion'==_0x179d2c['type'])return _0x7e2d8b['length']?{'type':'insertion','content':o(_0x224bf3,'*Insert:*\x20%0',o(_0x224bf3,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4d7961,'\x22'+_0x7e2d8b['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x224bf3,'*Insert:*\x20%0',o(_0x224bf3,'ELEMENT_TABLE_ROW',_0x4d7961))};if('deletion'==_0x179d2c['type'])return _0x7e2d8b['length']?{'type':'deletion','content':o(_0x224bf3,'*Remove:*\x20%0',o(_0x224bf3,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4d7961,'\x22'+_0x7e2d8b['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x224bf3,'*Remove:*\x20%0',o(_0x224bf3,'ELEMENT_TABLE_ROW',_0x4d7961))};}if('tableColumn'==_0x179d2c['subType']){const _0x58cd4=_0x179d2c['getItems']()['filter'](_0x39404c=>_0x39404c['is']('$textProxy'))['map'](_0x14d990=>_0x14d990['data']),_0x3a1760=this['_getSuggestionCoords'](_0x179d2c),_0x30ee25=_0x3a1760['maxColumn']-_0x3a1760['minColumn']+0x1;if('insertion'==_0x179d2c['type'])return _0x58cd4['length']?{'type':'insertion','content':o(_0x224bf3,'*Insert:*\x20%0',o(_0x224bf3,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x30ee25,'\x22'+_0x58cd4['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x224bf3,'*Insert:*\x20%0',o(_0x224bf3,'ELEMENT_TABLE_COLUMN',_0x30ee25))};if('deletion'==_0x179d2c['type'])return _0x58cd4['length']?{'type':'deletion','content':o(_0x224bf3,'*Remove:*\x20%0',o(_0x224bf3,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x30ee25,'\x22'+_0x58cd4['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x224bf3,'*Remove:*\x20%0',o(_0x224bf3,'ELEMENT_TABLE_COLUMN',_0x30ee25))};}}),_0x53afd1['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x129666),_0x53afd1['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x129666),_0x53afd1['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x4a5456),_0x53afd1['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x4a5456),_0x53afd1['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0xcd97f5),_0x53afd1['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0xcd97f5),_0x53afd1['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x3b820d),_0x53afd1['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x3b820d);}['_acceptFormatSuggestionCallbackFactory'](){const _0x4d921a=this['editor'],_0x21fc65=_0x4d921a['model']['document']['selection'];return(_0x75c715,_0x1570a7)=>{_0x4d921a['model']['change'](_0x4952be=>{const {commandName:_0x211bd8,commandParams:_0x4f8f8d}=_0x1570a7;let _0x224556=_0x75c715[0x0]['end']['nodeBefore'];_0x4f8f8d&&_0x4f8f8d[0x0]&&!0x1===_0x4f8f8d[0x0]['forceValue']&&(_0x224556=_0x75c715[0x0]['start']['nodeAfter']);const _0x4cb292=_0x4952be['createRangeIn'](_0x224556);if('$graveyard'==_0x4cb292['root']['rootName'])return;const _0x3cb688=Array['from'](_0x21fc65['getRanges']())['map'](_0x48bc7a=>_0x3337fa['fromRange'](_0x48bc7a));_0x4952be['setSelection'](_0x4cb292),_0x4d921a['commands']['get'](_0x211bd8)['refresh'](),_0x4f8f8d['push']({'forceDefaultExecution':!0x0}),_0x4d921a['execute'](_0x211bd8,..._0x4f8f8d);const _0x2f4a6c=_0x3cb688['filter'](_0x4abcf9=>'$graveyard'!=_0x4abcf9['root']['rootName']);_0x2f4a6c['length']>0x0&&_0x4952be['setSelection'](_0x2f4a6c);for(const _0x314f91 of _0x3cb688)_0x314f91['detach']();});};}['_getCoordsForCells'](_0xff96dc){const _0x8436d=this['editor']['plugins']['get']('TableUtils');let _0x306ed3=Number['MAX_SAFE_INTEGER'],_0x2ace48=Number['MIN_SAFE_INTEGER'],_0x465749=Number['MAX_SAFE_INTEGER'],_0x56896b=Number['MIN_SAFE_INTEGER'];for(const _0x5d6179 of _0xff96dc){if('$graveyard'==_0x5d6179['root']['rootName'])continue;const {row:_0x39beba,column:_0x46dc6f}=_0x8436d['getCellLocation'](_0x5d6179),_0x46a1b7=_0x5d6179['hasAttribute']('rowspan')?_0x5d6179['getAttribute']('rowspan')-0x1:0x0,_0x2d4b1e=_0x5d6179['hasAttribute']('colspan')?_0x5d6179['getAttribute']('colspan')-0x1:0x0;_0x306ed3=_0x39beba<_0x306ed3?_0x39beba:_0x306ed3,_0x2ace48=_0x39beba+_0x46a1b7>_0x2ace48?_0x39beba+_0x46a1b7:_0x2ace48,_0x465749=_0x46dc6f<_0x465749?_0x46dc6f:_0x465749,_0x56896b=_0x46dc6f+_0x2d4b1e>_0x56896b?_0x46dc6f+_0x2d4b1e:_0x56896b;}return{'minRow':_0x306ed3,'maxRow':_0x2ace48,'minColumn':_0x465749,'maxColumn':_0x56896b};}['_setupColumnsRowsFixing'](){const _0x3cc363=this['editor'],_0x262691=_0x3cc363['plugins']['get']('TrackChangesEditing'),_0x333c1f=_0x3cc363['plugins']['get']('TableUtils');_0x3cc363['model']['document']['on']('change:data',()=>{const _0x6298f6=Array['from'](_0x3cc363['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xc520e4,data:_0x8fbcfe}of _0x6298f6){const {group:_0x3098df,id:_0x2ff27a,subType:_0x2b6ca1}=_0x262691['_splitMarkerName'](_0xc520e4);if('suggestion'!=_0x3098df)continue;if(null!=_0x8fbcfe['oldRange'])continue;const _0x24df10=_0x262691['getSuggestion'](_0x2ff27a);this['_tablePostFixingSubtypes']['includes'](_0x2b6ca1)&&this['_tableSuggestions']['add'](_0x24df10);}},{'priority':'low'});const _0x4e0e83=(_0x5c2b07,_0x2c54fd)=>{let _0x1f4661=!0x1;const _0x406d16=_0x2c54fd['createRangeOn'](_0x5c2b07),_0x358e46=_0x5c2b07['findAncestor']('table'),_0x23e46f=_0x333c1f['getCellLocation'](_0x5c2b07);for(const _0x114415 of this['_tableSuggestions']){const _0x2b85b3=_0x114415['subType'],_0x4fd2b7=_0x2b85b3['startsWith']('tablePaste'),_0x3b62e8=_0x2b85b3['substr'](_0x4fd2b7?0xa:0x5),_0x3d1213=_0x3b62e8['toLowerCase'](),_0x27a0f0=_0x3d1213['substr'](0x0,0x3)+'span',_0x550f66='min'+_0x3b62e8,_0x2bb809='max'+_0x3b62e8;if(!_0x114415['isInContent'])continue;if(_0x358e46!=_0x114415['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x114415['isIntersectingWithRange'](_0x406d16))continue;const _0x576e3e=_0x5c2b07['hasAttribute'](_0x27a0f0)?_0x5c2b07['getAttribute'](_0x27a0f0)-0x1:0x0,_0x17fc99=this['_getSuggestionCoords'](_0x114415),_0x2d72b9=_0x17fc99[_0x550f66],_0xe7ae46=_0x17fc99[_0x2bb809];_0x2d72b9<=_0x23e46f[_0x3d1213]&&_0x23e46f[_0x3d1213]+_0x576e3e<=_0xe7ae46&&(_0x114415['addRange'](_0x406d16),_0x1f4661=!0x0);}return _0x1f4661;};_0x3cc363['model']['document']['registerPostFixer'](_0x139278=>{let _0x4822dd=!0x1;for(const _0x43a8c7 of _0x3cc363['model']['document']['differ']['getChanges']())if('insert'==_0x43a8c7['type']){if('tableRow'==_0x43a8c7['name']){for(const _0x92bc41 of _0x43a8c7['position']['nodeAfter']['getChildren']())_0x4822dd=_0x4822dd||_0x4e0e83(_0x92bc41,_0x139278);}else'tableCell'==_0x43a8c7['name']&&(_0x4822dd=_0x4822dd||_0x4e0e83(_0x43a8c7['position']['nodeAfter'],_0x139278));}return _0x4822dd;});}['_getSuggestionCoords'](_0x1f28e0){return this['_getCoordsForCells'](_0x1f28e0['getRanges']()['map'](_0x30a40e=>_0x30a40e['start']['nodeAfter']));}}function We(_0x422621){return Array['from'](new Set(_0x422621)['values']());}class Nt extends _0x9da42{static get['requires'](){return[$t];}['afterInit'](){const _0x3982f0=this['editor'],_0x4c0fca=_0x3982f0['model']['document']['selection'],_0x321e82=_0x3982f0['locale'];if(!_0x3982f0['plugins']['has']('TableEditing'))return;const _0x3d19dd=_0x3982f0['plugins']['get']('TrackChangesEditing'),_0x5ee410=_0x3982f0['plugins']['get']('TableUtils'),_0x481d29=_0x3982f0['plugins']['get']($t);_0x481d29['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x3d19dd['enableCommand']('mergeTableCells',()=>{const _0x5a73b3=_0x5ee410['getSelectionAffectedTableCells'](_0x3982f0['model']['document']['selection']);_0x3982f0['model']['change'](()=>{_0x3d19dd['markMultiRangeBlockFormat'](_0x5a73b3,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x3982f0['commands']['get']('mergeTableCells')['on']('execute',(_0x270637,_0x4657ac)=>{_0x3982f0['commands']['get']('trackChanges')['value']&&(_0x4657ac['length']>0x0&&_0x4657ac[_0x4657ac['length']-0x1]&&_0x4657ac[_0x4657ac['length']-0x1]['forceDefaultExecution']||_0x3d19dd['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x270637['stop']());},{'priority':'highest'});for(const _0x265a96 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x10196f=_0x3982f0['commands']['get'](_0x265a96);_0x3d19dd['enableCommand'](_0x265a96,()=>{const _0x223cbe=_0x3982f0['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x21b84e=>_0x21b84e['is']('element','tableCell')),_0x16a8a4=_0x10196f['value'];_0x3982f0['model']['change'](()=>{_0x3d19dd['markMultiRangeBlockFormat']([_0x223cbe,_0x16a8a4],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x3e054e of['splitTableCellVertically','splitTableCellHorizontally']){const _0x571551=_0x3982f0['commands']['get'](_0x3e054e);_0x3d19dd['enableCommand'](_0x3e054e,()=>{const _0x543784=_0x5ee410['getSelectionAffectedTableCells'](_0x3982f0['model']['document']['selection'])[0x0],_0x5b2bef=_0x543784['findAncestor']('table'),{column:_0x1bf256,row:_0x171141}=_0x5ee410['getCellLocation'](_0x543784);let _0x5bbdbd=[];if('horizontally'==_0x571551['direction']){const _0x41171f=_0x5ee410['createTableWalker'](_0x5b2bef,{'startRow':_0x171141,'endRow':_0x171141,'includeAllSlots':!0x0});_0x5bbdbd=Array['from'](_0x41171f)['map'](_0x1c6c1f=>_0x1c6c1f['cell']);}else{const _0x35a3f6=_0x5ee410['createTableWalker'](_0x5b2bef,{'column':_0x1bf256,'includeAllSlots':!0x0});_0x5bbdbd=Array['from'](_0x35a3f6)['map'](_0x3add70=>_0x3add70['cell']);}_0x3982f0['model']['change'](_0xe3e0e9=>{_0x3d19dd['markBlockFormat'](_0xe3e0e9['createRangeOn'](_0x543784),{'commandName':_0x3e054e,'commandParams':[]},_0x5bbdbd,_0x3e054e);});});}_0x3d19dd['descriptionFactory']['registerDescriptionCallback'](_0x21a278=>{if('formatBlock'!=_0x21a278['type']&&'formatInline'!=_0x21a278['type'])return;const {data:_0x5d1232}=_0x21a278;return _0x5d1232&&'mergeTableCells'==_0x5d1232['commandName']?{'type':'format','content':o(_0x321e82,'*Merge\x20cells*')}:void 0x0;}),_0x3d19dd['descriptionFactory']['registerDescriptionCallback'](_0x496a6c=>{if('formatBlock'!=_0x496a6c['type']&&'formatInline'!=_0x496a6c['type'])return;const {data:_0x32eb7d}=_0x496a6c;return _0x32eb7d?'splitTableCellVertically'==_0x32eb7d['commandName']?{'type':'format','content':o(_0x321e82,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x32eb7d['commandName']?{'type':'format','content':o(_0x321e82,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x3e1aa9=_0x481d29['_acceptFormatSuggestionCallbackFactory']();for(const _0xbbddab of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x3d19dd['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xbbddab,'accept',_0x3e1aa9);for(const _0x31f68f of['splitTableCellVertically','splitTableCellHorizontally'])_0x3d19dd['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x31f68f,'accept',_0x3e1aa9);_0x3d19dd['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x413729=>{_0x3982f0['model']['change'](_0x574d9c=>{const _0x1bd05b=Array['from'](_0x4c0fca['getRanges']())['map'](_0x1d9f7d=>_0x3337fa['fromRange'](_0x1d9f7d));_0x574d9c['setSelection'](_0x413729),_0x3982f0['commands']['get']('mergeTableCells')['refresh'](),_0x3982f0['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0xcfb97=_0x1bd05b['filter'](_0x56801c=>'$graveyard'!=_0x56801c['root']['rootName']);_0xcfb97['length']>0x0&&_0x574d9c['setSelection'](_0xcfb97);for(const _0x45483d of _0x1bd05b)_0x45483d['detach']();});});for(const _0x309caa of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x1cf68f=_0x3982f0['commands']['get'](_0x309caa);_0x1cf68f['on']('set:isEnabled',(_0x1e5c5b,_0x2372c9,_0x34939b)=>{if(_0x34939b){const _0x180936=_0x3982f0['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x342617=>_0x342617['is']('element','tableCell'));this['_areMergableCells'](_0x1cf68f['value'],_0x180936)||(_0x1e5c5b['return']=!0x1,_0x1e5c5b['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0xe90008=this['editor']['commands']['get']('mergeTableCells'),_0x29bfa9=this['editor']['plugins']['get']('TableUtils');if(!_0xe90008['isEnabled'])return!0x1;const _0x2d2db4=_0x29bfa9['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x534d0b of _0x2d2db4)for(const _0xb7e360 of _0x2d2db4)if(_0x534d0b!=_0xb7e360&&!this['_areMergableCells'](_0x534d0b,_0xb7e360))return!0x1;return!0x0;}['_areMergableCells'](_0x3bd75e,_0x7a944){const _0xc783db=this['editor']['plugins']['get']('TrackChangesEditing'),_0x282638=this['editor']['model']['createRangeOn'](_0x3bd75e),_0x1585f7=this['editor']['model']['createRangeOn'](_0x7a944),_0x2655ae=new Set(),_0x4df519=new Set();for(const _0x211ca3 of _0xc783db['getSuggestions']())if(('insertion'==_0x211ca3['type']||'deletion'==_0x211ca3['type']||'mergeTableCells'==_0x211ca3['subType'])&&_0x211ca3['isInContent']){for(const _0x4137d8 of _0x211ca3['getRanges']())_0x4137d8['containsRange'](_0x282638,!0x0)&&_0x2655ae['add'](_0x211ca3['type']+':'+_0x211ca3['author']['id']),_0x4137d8['containsRange'](_0x1585f7,!0x0)&&_0x4df519['add'](_0x211ca3['type']+':'+_0x211ca3['author']['id']);}if(_0x2655ae['size']!=_0x4df519['size'])return!0x1;for(const _0x3e8e22 of _0x2655ae)if(!_0x4df519['has'](_0x3e8e22))return!0x1;return!0x0;}}class Dt extends _0x9da42{static get['requires'](){return[$t];}['afterInit'](){const _0x3fb11b=this['editor'];if(!_0x3fb11b['plugins']['has']('TableEditing'))return;const _0x5553a5=_0x3fb11b['locale'],_0x3085e2=_0x3fb11b['plugins']['get']('TrackChangesEditing');_0x3085e2['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x3085e2['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x3085e2['registerBlockAttribute']('headingRows'),_0x3085e2['registerBlockAttribute']('headingColumns'),_0x3085e2['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x5553a5,'FORMAT_HEADER_ROW')),_0x3085e2['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x5553a5,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1dcb65=this['editor']['plugins']['get']('TrackChangesEditing'),_0x46d30f=this['editor']['plugins']['get']('TableUtils'),_0x4be2a1=this['editor']['plugins']['get']($t)['_acceptFormatSuggestionCallbackFactory']();function _0x8da102({showActiveMarker:_0x3fa048=!0x0,setDataAttribute:_0x1c21d0=!0x0}={}){return(_0x5658a2,_0x234390,_0x18a784)=>{const {type:_0x15e02f,id:_0x45d631}=_0x1dcb65['_splitMarkerName'](_0x234390['markerName']);if(!_0x1dcb65['hasSuggestion'](_0x45d631))return;const _0x4c306c=_0x1dcb65['getSuggestion'](_0x45d631),_0x4fe85f=_0x4c306c['data'];if('formatBlock'!=_0x4c306c['type']||!_0x4fe85f||'setTableColumnHeader'!=_0x4fe85f['commandName'])return;if(_0x234390['item'])return void _0x5658a2['stop']();if(!_0x18a784['consumable']['consume'](_0x234390['markerRange'],_0x5658a2['name']))return;const _0x40cce3=_0x234390['markerRange']['start']['nodeAfter'],_0x551327=_0x234390['markerRange']['end']['nodeBefore'],_0x521477=_0x40cce3['parent']['parent'],{column:_0x26f0ae}=_0x46d30f['getCellLocation'](_0x40cce3),{column:_0x4b28f9}=_0x46d30f['getCellLocation'](_0x551327);for(let _0x5acc2c=_0x26f0ae;_0x5acc2c<=_0x4b28f9;_0x5acc2c++){const _0x2c919e=_0x46d30f['createTableWalker'](_0x521477,{'column':_0x5acc2c,'includeAllSlots':!0x1});for(const _0x4794bc of _0x2c919e){const _0x1bbf3a=_0x4794bc['cell'],_0x2d8af7=_0x18a784['mapper']['toViewElement'](_0x1bbf3a);_0x18a784['writer']['addClass']('ck-suggestion-marker-'+_0x15e02f,_0x2d8af7),_0x1c21d0&&_0x18a784['writer']['setAttribute']('data-suggestion',_0x45d631,_0x2d8af7),_0x18a784['mapper']['bindElementToMarker'](_0x2d8af7,_0x234390['markerName']),_0x3fa048&&(_0x1dcb65['activeMarkers']['includes'](_0x234390['markerName'])?_0x18a784['writer']['addClass']('ck-suggestion-marker--active',_0x2d8af7):_0x18a784['writer']['removeClass']('ck-suggestion-marker--active',_0x2d8af7));}}};}_0x1dcb65['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4be2a1),_0x1dcb65['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4be2a1),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x8da102(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5741f9,_0x452d01,_0x2463a8)=>{_0x2463a8['options']['showSuggestionHighlights']&&_0x8da102({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x5741f9,_0x452d01,_0x2463a8);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x595d76,_0x1d6de7,_0x2c54c8)=>{const {type:_0x29c3cc,id:_0x1a8717}=_0x1dcb65['_splitMarkerName'](_0x1d6de7['markerName']);if(!_0x1dcb65['hasSuggestion'](_0x1a8717))return;const _0x97e9d=_0x1dcb65['getSuggestion'](_0x1a8717),_0x520ab1=_0x97e9d['data'];if('formatBlock'!=_0x97e9d['type']||!_0x520ab1||'setTableColumnHeader'!=_0x520ab1['commandName'])return;const _0x2a18f0=_0x2c54c8['mapper']['markerNameToElements'](_0x1d6de7['markerName']);if(_0x2a18f0){for(const _0x5a1bb4 of _0x2a18f0)_0x2c54c8['writer']['removeClass']('ck-suggestion-marker-'+_0x29c3cc,_0x5a1bb4),_0x2c54c8['writer']['removeClass']('ck-suggestion-marker--active',_0x5a1bb4),_0x2c54c8['writer']['removeAttribute']('data-suggestion',_0x5a1bb4),_0x2c54c8['mapper']['unbindElementFromMarkerName'](_0x5a1bb4,_0x1d6de7['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d40a0=this['editor'],_0x4e9b9d=_0x2d40a0['locale'];function _0x4dd422(_0xd9d002){return{'type':'format','content':o(_0x4e9b9d,'*Format:*\x20%0',_0xd9d002)};}_0x2d40a0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3dbbf9=>{if('formatBlock'!=_0x3dbbf9['type'])return;const {data:_0x1e5845}=_0x3dbbf9;if(_0x1e5845){if('setTableRowHeader'==_0x1e5845['commandName']){const _0x3ac7ab=_0x1e5845['commandParams'][0x0]['forceValue'];return _0x4dd422(o(_0x4e9b9d,_0x3ac7ab?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x1e5845['commandName']){const _0x1cad3c=_0x1e5845['commandParams'][0x0]['forceValue'];return _0x4dd422(o(_0x4e9b9d,_0x1cad3c?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Mt extends _0x9da42{['afterInit'](){const _0x385103=this['editor'],_0x33c2d9=_0x385103['locale'],_0x5f2353=_0x385103['plugins']['get']('TrackChangesEditing');function _0xd450b8(_0x39359f){return{'type':'format','content':''+o(_0x33c2d9,'*Set\x20table\x20type:*\x20%0',_0x39359f)};}_0x385103['plugins']['has']('TableLayout')&&(_0x5f2353['enableCommand']('insertTableLayout'),_0x5f2353['enableDefaultAttributesIntegration']('tableType'),_0x5f2353['registerBlockAttribute']('tableType'),_0x5f2353['descriptionFactory']['registerElementLabel'](_0x588a7d=>_0x588a7d['is']('element','table')&&'layout'===_0x588a7d['getAttribute']('tableType'),_0x39768b=>o(_0x33c2d9,'ELEMENT_LAYOUT_TABLE',_0x39768b)),_0x5f2353['descriptionFactory']['registerDescriptionCallback'](_0x479fe9=>{const {data:_0x50d3da}=_0x479fe9;if(_0x50d3da&&'tableType'==_0x50d3da['key'])switch(_0x50d3da['newValue']){case'layout':return _0xd450b8(o(_0x33c2d9,'ELEMENT_LAYOUT_TABLE'));case'content':return _0xd450b8(o(_0x33c2d9,'ELEMENT_CONTENT_TABLE'));}}));}}const Oe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ue=/* #__PURE__ -- @preserve */
25
+ Object['fromEntries'](Oe['map'](_0x9b2884=>[_0x9b2884,null]));class Bt extends _0x9da42{static get['requires'](){return[$t];}['afterInit'](){const _0x43b1d0=this['editor'];if(!_0x43b1d0['plugins']['has']('TableClipboard'))return;const _0x5449ae=_0x43b1d0['plugins']['get']('TrackChangesEditing'),_0xca11ff=_0x43b1d0['plugins']['get']('TableUtils'),_0x41640d=_0x43b1d0['plugins']['get']($t),_0x1fdc4=_0x43b1d0['plugins']['get']('TableClipboard'),_0x1958df=_0x43b1d0['plugins']['get']('TableSelection'),_0x420f01=_0x43b1d0['plugins']['get'](_0x52e8c2);_0x41640d['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x43b1d0['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x43b1d0['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x105f09=null,_0x1b7149=!0x1;_0x420f01['on']('contentInsertion',(_0x2e6d14,_0x7e6dc5)=>{_0x1b7149='paste'===_0x7e6dc5['method'];}),_0x43b1d0['model']['on']('insertContent',(_0x59d992,_0x135c5e)=>{if(!_0x1b7149&&null===_0x1958df['getSelectedTableCells']())return;const [_0x1cab62,_0xe2fb08]=_0x135c5e,_0x591c94=_0x135c5e[_0x135c5e['length']-0x1];_0x591c94&&_0x591c94['forceDefaultExecution']||_0x5449ae['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x3f89fe,_0x19fc35,_0x4ac83a,_0x4cde91,_0x430a84){if(_0x19fc35&&!_0x19fc35['is']('documentSelection'))return!0x1;const _0x19a90c=_0x430a84['getTableIfOnlyTableInContent'](_0x3f89fe,_0x4ac83a);if(!_0x19a90c||!He(_0x19a90c,void 0x0,_0x4cde91))return!0x1;const _0x798456=_0x4cde91['getSelectionAffectedTableCells'](_0x4ac83a['document']['selection']);if(!_0x798456['length'])return!0x1;const _0x5b5dbd=_0x798456[0x0]['findAncestor']('table'),_0x48ec78=_0x4cde91['getRowIndexes'](_0x798456),_0x2e663d=_0x4cde91['getColumnIndexes'](_0x798456),_0x2fb235={'startRow':_0x48ec78['first'],'endRow':_0x48ec78['last'],'startColumn':_0x2e663d['first'],'endColumn':_0x2e663d['last']};return 0x1==_0x798456['length']&&(_0x2fb235['endRow']+=_0x4cde91['getRows'](_0x19a90c)-0x1,_0x2fb235['endColumn']+=_0x4cde91['getColumns'](_0x19a90c)-0x1),He(_0x5b5dbd,_0x2fb235,_0x4cde91);}(_0x1cab62,_0xe2fb08,_0x43b1d0['model'],_0xca11ff,_0x1fdc4)&&(_0x59d992['stop'](),_0x105f09={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x43b1d0['model']['change'](()=>{_0x43b1d0['model']['insertContent'](_0x135c5e[0x0],_0x135c5e[0x1],_0x135c5e[0x2],{'forceDefaultExecution':!0x0});const _0x279389=_0x11d0ec(),{rowInsertionRanges:_0x32dc8d,columnInsertionRanges:_0x528187,insertionRanges:_0x29005e,deletionRanges:_0x75afa9,cells:_0x153c58}=_0x105f09;_0x32dc8d['length']&&_0x5449ae['markMultiRangeInsertion'](_0x32dc8d,'tablePasteRow',{'tablePasteChainId':_0x279389}),_0x528187['length']&&_0x5449ae['markMultiRangeInsertion'](_0x528187,'tablePasteColumn',{'tablePasteChainId':_0x279389}),_0x29005e['length']&&(_0x5449ae['markMultiRangeInsertion'](_0x29005e,'tablePaste',{'tablePasteChainId':_0x279389,'skipNestingCheck':!0x0}),_0x29005e['forEach'](_0xd1abc8=>_0xd1abc8['detach']?.())),_0x75afa9['length']&&(_0x5449ae['markMultiRangeDeletion'](_0x75afa9,'tablePaste',{'tablePasteChainId':_0x279389,'skipNestingCheck':!0x0}),_0x75afa9['forEach'](_0x58e2bb=>_0x58e2bb['detach']?.()));const _0x17667d=_0x5449ae['markMultiRangeBlockFormat'](_0x153c58['map'](({element:_0x4b472c})=>_0x4b472c),{'formatGroupId':_0x11d0ec()},[],'tablePasteCell',{'tablePasteChainId':_0x279389});if(_0x17667d){const _0x5e01d7=_0x17667d['getMarkers'](),_0x2de9f6=[];for(const {element:_0x98cad7,attributes:_0x45ba74}of _0x153c58){if(!_0x45ba74)continue;const _0x10ed94=_0x43b1d0['model']['createRangeOn'](_0x98cad7),_0x36dda6=_0x5e01d7['find'](_0x33c894=>_0x33c894['getRange']()['isEqual'](_0x10ed94));_0x36dda6&&_0x2de9f6['push']([_0x36dda6['name'],_0x45ba74]);}_0x2de9f6['length']&&_0x17667d['setAttribute']('markerAttributes',Object['fromEntries'](_0x2de9f6));}_0x105f09=null;}));},{'priority':_0x43bf14['high']+0xa}),_0x420f01['on']('contentInsertion',()=>{_0x1b7149=!0x1;},{'priority':'lowest'}),_0x43b1d0['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x4b0a74,_0x4e96d2)=>{const [_0x4cee74,_0x208124,,_0x7eb455]=_0x4e96d2;if(!_0x105f09)return;_0x4b0a74['stop']();const _0x144f98=_0x4cee74['cell'],_0x2a15d1=_0x208124,_0x77b820=De(_0x144f98),_0x34ef31=De(_0x2a15d1);_0x4b0a74['return']=_0x144f98;let _0x583b75=null,_0x4ae6f0=null;if(_0x34ef31||_0x77b820){if(_0x77b820&&!_0x34ef31){_0x7eb455['remove'](_0x144f98['getChild'](0x0));for(const _0xddaf8c of Array['from'](_0x2a15d1['getChildren']()))_0x7eb455['insert'](_0xddaf8c,_0x144f98,'end');const _0x591f15=_0x105f09['rowInsertionIndexes']['includes'](_0x4cee74['row']),_0x16ac54=_0x105f09['columnInsertionIndexes']['includes'](_0x4cee74['column']);_0x591f15||_0x16ac54||(_0x583b75=_0x3337fa['fromRange'](_0x7eb455['createRangeIn'](_0x144f98)));}else _0x34ef31&&!_0x77b820&&(_0x4ae6f0=_0x7eb455['createRangeIn'](_0x144f98));}else{const _0x12e3d0=_0x7eb455['createElement']('tableCellSuggestion'),_0x4f66d9=_0x7eb455['createElement']('tableCellSuggestion');_0x7eb455['wrap'](_0x7eb455['createRangeIn'](_0x144f98),_0x4f66d9),_0x7eb455['insert'](_0x12e3d0,_0x144f98,0x0);for(const _0x176c0e of Array['from'](_0x2a15d1['getChildren']()))_0x7eb455['insert'](_0x176c0e,_0x12e3d0,'end');_0x583b75=_0x3337fa['fromRange'](_0x7eb455['createRangeOn'](_0x12e3d0)),_0x4ae6f0=_0x3337fa['fromRange'](_0x7eb455['createRangeOn'](_0x4f66d9));}const _0x102280=Array['from'](_0x2a15d1['getAttributes']())['filter'](([_0x2dba3d])=>Oe['includes'](_0x2dba3d));_0x105f09['cells']['push']({'element':_0x144f98,'attributes':_0x102280['length']?Object['fromEntries'](_0x102280):null}),_0x583b75&&_0x105f09['insertionRanges']['push'](_0x583b75),_0x4ae6f0&&_0x105f09['deletionRanges']['push'](_0x4ae6f0);},{'priority':'high'}),_0xca11ff['on']('insertColumns',(_0x4e61ab,_0x3e0d2b)=>{const [_0x36208d,_0x4e2307={}]=_0x3e0d2b;if(!_0x105f09)return;const _0x54195=_0x4e2307['at']||0x0,_0x189cf9=_0x4e2307['columns']||0x1;_0x105f09['columnInsertionIndexes']=new Array(_0x189cf9)['fill'](_0x54195)['map']((_0x4d1035,_0x152e4b)=>_0x4d1035+_0x152e4b);for(const {cell:_0x5363b5}of _0xca11ff['createTableWalker'](_0x36208d,{'startColumn':_0x54195,'endColumn':_0x54195+_0x189cf9-0x1}))_0x105f09['columnInsertionRanges']['push'](_0x43b1d0['model']['createRangeOn'](_0x5363b5));},{'priority':'low'}),_0xca11ff['on']('insertRows',(_0x8ec1cd,_0x528cc5)=>{const [_0x4debbc,_0x400dc6={}]=_0x528cc5;if(!_0x105f09)return;const _0x21e49c=_0x400dc6['at']||0x0,_0x4a7909=_0x400dc6['rows']||0x1;_0x105f09['rowInsertionIndexes']=new Array(_0x4a7909)['fill'](_0x21e49c)['map']((_0x2b8843,_0x2835b1)=>_0x2b8843+_0x2835b1);for(const {cell:_0xaf3dd9}of _0xca11ff['createTableWalker'](_0x4debbc,{'startRow':_0x21e49c,'endRow':_0x21e49c+_0x4a7909-0x1}))_0x105f09['rowInsertionRanges']['push'](_0x43b1d0['model']['createRangeOn'](_0xaf3dd9));},{'priority':'low'}),_0x5449ae['descriptionFactory']['registerDescriptionCallback'](_0x197702=>{if(_0x197702['subType']&&_0x197702['subType']['startsWith']('tablePaste'))return _0x197702['previous']?{}:{'type':'insertion','content':o(_0x43b1d0['locale'],'*Replace\x20table\x20cells*')};});const _0x13b17d=()=>!0x1;for(const _0x99597e of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x5449ae['_suggestionFactory']['registerCustomCallback']('insertion',_0x99597e,'join',_0x13b17d),_0x5449ae['_suggestionFactory']['registerCustomCallback']('deletion',_0x99597e,'join',_0x13b17d),_0x5449ae['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x99597e,'join',_0x13b17d);_0x5449ae['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x13b17d),_0x5449ae['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x1bb134,_0x23337e,_0x55227d)=>{const _0x5c6ef4=_0x1bb134['map'](_0x1c3bf1=>_0x1c3bf1['getContainedElement']())['filter'](_0x3d1370=>_0x3d1370),_0x4b65c9=new Map(_0x5c6ef4['map'](_0x148062=>[_0x148062,null]));if(_0x105f09){for(const {element:_0x93f405,attributes:_0x222b5c}of _0x105f09['cells'])_0x222b5c&&_0x4b65c9['set'](_0x93f405,_0x222b5c);}else{if(_0x55227d&&_0x55227d['markerAttributes'])for(const [_0x17bad2,_0x1c0085]of Object['entries'](_0x55227d['markerAttributes'])){const _0x3b3ba0=_0x43b1d0['model']['markers']['get'](_0x17bad2),_0xd760af=_0x3b3ba0?_0x3b3ba0['getRange']()['getContainedElement']():null;_0xd760af&&_0x4b65c9['set'](_0xd760af,_0x1c0085);}}_0x43b1d0['model']['change'](_0x499ec2=>{for(const [_0x1b8ed0,_0x37c451]of _0x4b65c9)_0x499ec2['setAttributes']({...Ue,..._0x37c451},_0x1b8ed0);});});const _0x29c8a7=(_0x5c235c,_0x1cfd77)=>{_0x5449ae['_suggestionFactory']['registerCustomCallback'](_0x5c235c,'tablePaste',_0x1cfd77,(_0xb3bd43,_0x51792a,_0x111a2e)=>{_0x43b1d0['model']['change'](_0x437a40=>{const _0x1b7bec=[];for(const _0x544323 of _0xb3bd43){const _0x633e6c=_0x544323['start']['nodeAfter'];_0x633e6c['is']('element','tableCellSuggestion')&&_0x1b7bec['push'](_0x633e6c);}_0x5449ae['_suggestionFactory']['getSuggestionCallback'](_0x5c235c,null,_0x1cfd77)(_0xb3bd43,_0x51792a,_0x111a2e);for(const _0x48891a of _0x1b7bec)'$graveyard'!=_0x48891a['root']['rootName']&&_0x437a40['unwrap'](_0x48891a);});});};_0x29c8a7('insertion','accept'),_0x29c8a7('insertion','discard'),_0x29c8a7('deletion','accept'),_0x29c8a7('deletion','discard'),_0x5449ae['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x54c581=>{const _0x3d7e58=_0x54c581['map'](_0x439b39=>_0x439b39['getContainedElement']()),_0x13287d=_0x3d7e58[0x0]['findAncestor']('table'),{minRow:_0x3b834f,maxRow:_0x900354}=_0x41640d['_getCoordsForCells'](_0x3d7e58);_0xca11ff['removeRows'](_0x13287d,{'at':_0x3b834f,'rows':_0x900354-_0x3b834f+0x1});}),_0x5449ae['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x9b93b6=>{const _0x449ef8=_0x9b93b6['map'](_0x2b3a3c=>_0x2b3a3c['getContainedElement']()),_0x589699=_0x449ef8[0x0]['findAncestor']('table'),{minColumn:_0x15bac6,maxColumn:_0x18b218}=_0x41640d['_getCoordsForCells'](_0x449ef8);_0xca11ff['removeColumns'](_0x589699,{'at':_0x15bac6,'columns':_0x18b218-_0x15bac6+0x1});});const _0x448367=(_0x3535eb,_0x59a428)=>{if(!_0x59a428['subType']||!_0x59a428['subType']['startsWith']('tablePaste'))return;const _0x1d8238=_0x59a428['attributes']['tablePasteChainId'],_0x2a21fa=_0x5449ae['getSuggestions']()['filter'](_0x7d5c0d=>_0x7d5c0d['isInContent']&&_0x7d5c0d['attributes']&&_0x7d5c0d['attributes']['tablePasteChainId']==_0x1d8238);_0x2a21fa['length']&&_0x59a428['getAllAdjacentSuggestions']()['length']!=_0x2a21fa['length']&&_0x2a21fa['reduce']((_0x37ed75,_0x36f268)=>(_0x37ed75['next']=_0x36f268,_0x36f268['previous']=_0x37ed75,_0x36f268));};function _0x53690b(_0x1c2090,_0x121d30=!0x0){const {id:_0x47410b,authorId:_0x88b3e6}=_0x5449ae['_splitMarkerName'](_0x1c2090['markerName']),_0x34334e=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x34d85d=_0x5449ae['activeMarkers']['includes'](_0x1c2090['markerName']);return _0x34d85d&&_0x34334e['push']('ck-suggestion-marker--active'),{'classes':_0x34334e,'attributes':{'data-suggestion':_0x47410b,'data-author-id':_0x88b3e6},'priority':_0x34d85d&&_0x121d30?0xbc2:0xbb8};}_0x5449ae['on']('suggestionLoaded',_0x448367,{'priority':'high'}),_0x5449ae['on']('suggestionUnloaded',_0x448367,{'priority':'high'}),_0x43b1d0['model']['document']['registerPostFixer'](()=>{let _0x39f44a=!0x1;const _0x218454=Array['from'](_0x43b1d0['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3e70ed,data:_0x284083}of _0x218454){const {group:_0x5748a1,type:_0x4372fe,id:_0xc57858}=_0x5449ae['_splitMarkerName'](_0x3e70ed);if('suggestion'!=_0x5748a1||'deletion'!=_0x4372fe||_0x284083['oldRange'])continue;if(!_0x5449ae['hasSuggestion'](_0xc57858))continue;const _0x52152c=_0x5449ae['getSuggestion'](_0xc57858)['getRanges'](),_0x1e9c47=_0x43b1d0['plugins']['get']('Users')['me'];for(const _0x193ad1 of _0x5449ae['getSuggestions']()){if(!_0x193ad1['isInContent']||_0x193ad1['author']!=_0x1e9c47)continue;if('formatBlock'!=_0x193ad1['type']||'tablePasteCell'!=_0x193ad1['subType'])continue;if(_0x193ad1['getRanges']()['every'](_0x2c258a=>_0x52152c['some'](_0x1b29cf=>_0x1b29cf['containsRange'](_0x2c258a,!0x0)))){for(const _0x1e4a9b of _0x193ad1['getAllAdjacentSuggestions']())_0x1e4a9b['isInContent']&&(_0x1e4a9b['discard'](),_0x39f44a=!0x0);}}}return _0x39f44a;}),_0x43b1d0['model']['document']['registerPostFixer'](_0x99f047=>{const _0x156515=_0x43b1d0['commands']['get']('redo');if(!_0x156515||!_0x156515['_createdBatches']['has'](_0x99f047['batch']))return!0x1;let _0x5e4095=!0x1;const _0x215309=_0x43b1d0['plugins']['get']('Users')['me'],_0x5273fa=_0x43b1d0['model']['document']['differ']['getChanges'](),_0xdb9d13=Array['from'](_0x43b1d0['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x45ce85,data:_0x3668e3})=>{const {group:_0x3f86f6,subType:_0x307bf3,authorId:_0x5b62a6}=_0x5449ae['_splitMarkerName'](_0x45ce85);return'suggestion'==_0x3f86f6&&'tablePaste'==_0x307bf3&&_0x5b62a6==_0x215309['id']&&!_0x3668e3['oldRange'];});for(const _0x52cc56 of _0x5273fa){if('insert'!=_0x52cc56['type']||'tableCellSuggestion'!=_0x52cc56['name']||0x1!=_0x52cc56['length'])continue;const _0x5cadb2=_0x99f047['createRange'](_0x52cc56['position'],_0x52cc56['position']['getShiftedBy'](0x1));if(!_0xdb9d13['find'](({data:_0x38fa5b})=>_0x38fa5b['newRange']['isEqual'](_0x5cadb2))){for(const {name:_0x558fc7,data:_0xd1731f}of _0xdb9d13)if(_0x5cadb2['containsRange'](_0xd1731f['newRange'])){_0x99f047['updateMarker'](_0x558fc7,{'range':_0x5cadb2}),_0x5e4095=!0x0;break;}}}return _0x5e4095;}),_0x43b1d0['model']['document']['registerPostFixer'](_0x50f819=>{let _0x59c792=!0x1;const _0x41be26=_0x43b1d0['plugins']['get']('Users')['me'],_0x4ff22f=_0x5449ae['getSuggestions']()['filter'](_0x4a5e0e=>_0x4a5e0e['isInContent']&&_0x4a5e0e['author']==_0x41be26),_0x19a3e2=new Set(),_0x416657=new Set();for(const _0x391bbe of _0x4ff22f)if('tablePaste'==_0x391bbe['subType'])for(const _0x5bf1bf of _0x391bbe['getMarkers']()){const _0x2e47d6=_0x5bf1bf['getRange']()['getContainedElement']();if(_0x2e47d6){if(_0x2e47d6['is']('element','tableCellSuggestion')&&De(_0x2e47d6)){_0x391bbe['removeMarker'](_0x5bf1bf['name']),_0x19a3e2['add'](_0x2e47d6),_0x59c792=!0x0;const _0x4f7d36=_0x2e47d6['nextSibling'],_0x557a1f=_0x2e47d6['previousSibling'],_0x30c440=_0x4f7d36&&_0x4f7d36['is']('element','tableCellSuggestion'),_0x577539=_0x557a1f&&_0x557a1f['is']('element','tableCellSuggestion');_0x30c440&&!_0x19a3e2['has'](_0x4f7d36)&&_0x416657['add'](_0x4f7d36),_0x577539&&!_0x19a3e2['has'](_0x557a1f)&&_0x416657['add'](_0x557a1f);}else _0x2e47d6['is']('element','paragraph')&&_0x2e47d6['isEmpty']&&(_0x391bbe['removeMarker'](_0x5bf1bf['name']),_0x59c792=!0x0);}}else{if('tablePasteCell'==_0x391bbe['subType']){if(!_0x391bbe['attributes']||!_0x391bbe['attributes']['tablePasteChainId'])continue;const _0x206c71=_0x391bbe['attributes']['markerAttributes'];if(_0x206c71&&Object['keys'](_0x206c71)['length'])continue;const _0x51a602=_0x391bbe['attributes']['tablePasteChainId'];let _0x5a4779=!0x0,_0x1d82ad=!0x0;for(const _0x114c5f of _0x4ff22f)if(_0x114c5f['subType']&&_0x114c5f['subType']['startsWith']('tablePaste')){if(!_0x114c5f['attributes']['tablePasteChainId']){_0x1d82ad=!0x1;break;}if(_0x114c5f['id']!=_0x391bbe['id']&&_0x114c5f['attributes']['tablePasteChainId']==_0x51a602){_0x5a4779=!0x1;break;}}_0x1d82ad&&_0x5a4779&&(_0x391bbe['removeMarkers'](),_0x59c792=!0x0);}}for(const _0x21d94c of _0x19a3e2)_0x50f819['remove'](_0x21d94c);for(const _0x3cade7 of _0x416657)_0x50f819['unwrap'](_0x3cade7);return _0x59c792;}),_0x43b1d0['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x27e19d=>_0x53690b(_0x27e19d),'converterPriority':'high'}),_0x43b1d0['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x265bff,_0x2dd5b4)=>_0x2dd5b4['options']['showSuggestionHighlights']?_0x53690b(_0x265bff,!0x1):null,'converterPriority':'high'});const _0x200083=_0x43b1d0['editing']['view'];this['listenTo'](_0x200083['document'],'clipboardOutput',(_0x492159,_0x21b2a3)=>{const _0x5a8b93=[];for(const _0x1f56e8 of _0x200083['createRangeIn'](_0x21b2a3['content'])['getItems']())_0x1f56e8['is']('element','suggestion-td')&&_0x5a8b93['push'](_0x1f56e8);_0x200083['change'](_0x1577e9=>{for(const _0x4c2a5a of _0x5a8b93)_0x1577e9['move'](_0x1577e9['createRangeIn'](_0x4c2a5a),_0x1577e9['createPositionBefore'](_0x4c2a5a)),_0x1577e9['remove'](_0x4c2a5a);});});}}function De(_0x366b78){if(_0x366b78['isEmpty'])return!0x0;const _0x10fe70=_0x366b78['getChild'](0x0);return _0x10fe70['is']('element','paragraph')&&_0x10fe70['isEmpty'];}function He(_0x1a6eb6,_0x3f2329={},_0x168b8d){for(const {isAnchor:_0x2b8fea,cellHeight:_0x4d6b52,cellWidth:_0x9444ca}of _0x168b8d['createTableWalker'](_0x1a6eb6,{'includeAllSlots':!0x0,..._0x3f2329}))if(!_0x2b8fea||0x1!=_0x4d6b52||0x1!=_0x9444ca)return!0x1;return!0x0;}class Tt extends _0x9da42{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x18eb1c=this['editor']['plugins']['get']('TrackChangesEditing');_0x18eb1c['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x18eb1c['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x18eb1c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x18eb1c['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x18eb1c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x18eb1c['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x330c03,_0x17edf4){const _0x13a97e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2364c7=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x91c264=_0x17edf4['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3e09cd=_0x2364c7['getColumnGroupElement'](_0x91c264);let _0x16991e=_0x3e09cd?_0x2364c7['getTableColumnsWidths'](_0x3e09cd):null,_0x303c24=_0x91c264['getAttribute']('tableWidth')||null;const _0x362cdc=_0x17edf4['tableWidth']||_0x303c24,_0x1b5f91=_0x17edf4['columnWidths']||_0x16991e,_0x274546=this['editor']['plugins']['get']('Users')['me'];for(const _0x4fb9da of _0x13a97e['getSuggestions']()){const _0x2fcdfd=_0x4fb9da['getContainedElement']();if('resizeTable'===_0x4fb9da['subType']&&_0x2fcdfd===_0x91c264){_0x4fb9da['author']!==_0x274546&&_0x4fb9da['discard']();const _0x55db39=_0x4fb9da['data']['commandParams'];_0x303c24=_0x55db39[0x0]['tableWidth'],_0x16991e=_0x55db39[0x0]['columnWidths'];break;}}_0x330c03({'table':_0x91c264,'tableWidth':_0x362cdc,'columnWidths':_0x1b5f91}),_0x13a97e['markBlockFormat'](_0x91c264,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x303c24,'columnWidths':_0x16991e}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x41eee2){if('formatBlock'!=_0x41eee2['type']&&'formatInline'!=_0x41eee2['type'])return;const {data:_0x2e32a5}=_0x41eee2;if(_0x2e32a5&&'resizeTable'===_0x2e32a5['formatGroupId']){const _0x26ffb4='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x26ffb4)};}}}class Ot extends _0x9da42{['afterInit'](){const _0x5f2909=this['editor'];_0x5f2909['plugins']['has']('Template')&&_0x5f2909['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class xt extends _0x9da42{['afterInit'](){const _0x176314=this['editor'];if(!_0x176314['commands']['get']('insertTableOfContents'))return;_0x176314['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x3a6935=_0x176314['plugins']['get']('TrackChangesEditing'),_0x2e7230=_0x176314['locale'];_0x3a6935['descriptionFactory']['registerElementLabel']('tableOfContents',_0x485544=>o(_0x2e7230,'ELEMENT_TABLE_OF_CONTENTS',_0x485544));}}class Et extends _0x9da42{['afterInit'](){const _0x1e97e5=this['editor'];if(!_0x1e97e5['plugins']['has']('Title'))return;const _0xcfe349=_0x1e97e5['plugins']['get']('TrackChangesEditing');_0xcfe349['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x1e97e5['locale'],'ELEMENT_TITLE')),_0x1e97e5['model']['document']['registerPostFixer'](_0x45f5ce=>{let _0x2a61ca=!0x1;const _0x7610de=Array['from'](_0x1e97e5['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x34a481,data:_0x215866}of _0x7610de){const {group:_0x2e6986}=_0xcfe349['_splitMarkerName'](_0x34a481);if('suggestion'!==_0x2e6986||!_0x215866['newRange'])continue;const _0x122f29=_0x215866['newRange'],_0x40f2fc=_0x122f29['end']['nodeBefore'];if(!_0x40f2fc||!_0x40f2fc['is']('element','title-content'))continue;if(!_0x122f29['start']['isTouching'](_0x122f29['end']))continue;const _0x1ca979=_0x1e97e5['model']['schema']['getNearestSelectionRange'](_0x122f29['end'],'forward');if(_0x1ca979&&_0x1ca979['isCollapsed']){const _0x153375=_0x45f5ce['createRange'](_0x122f29['start'],_0x1ca979['start']);_0x153375['isEqual'](_0x122f29)||(_0x45f5ce['updateMarker'](_0x34a481,{'range':_0x153375}),_0x2a61ca=!0x0);}_0x2a61ca||(_0x45f5ce['removeMarker'](_0x34a481),_0x2a61ca=!0x0);}return _0x2a61ca;});}}class Rt extends _0x9da42{['afterInit'](){const _0x35d253=this['editor'],_0x287ff8=_0x35d253['plugins']['get']('TrackChangesEditing');_0x35d253['plugins']['has']('Uploadcare')&&(_0x287ff8['enableCommand']('uploadcare'),_0x35d253['plugins']['has']('UploadcareImageEdit')&&(_0x287ff8['enableCommand']('uploadcareImageEdit'),_0x287ff8['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x287ff8['registerBlockAttribute']('uploadcareImageId'),_0x287ff8['descriptionFactory']['registerDescriptionCallback'](_0x15bbf1=>{if('attribute'!=_0x15bbf1['type'])return;const {data:_0x425574}=_0x15bbf1;return _0x425574&&'uploadcareImageId'==_0x425574['key']?{'type':'format','content':''}:void 0x0;})));}}class Ut extends _0x9da42{['afterInit'](){const _0x565f50=this['editor'],_0x79a353=_0x565f50['plugins']['get']('TrackChangesEditing');_0x565f50['plugins']['has']('UndoEditing')&&(_0x79a353['enableCommand']('undo'),_0x79a353['enableCommand']('redo'));}}class Vt extends _0x9da42{static get['requires'](){return[$t];}['afterInit'](){const _0x379ec=this['editor'];if(!_0x379ec['plugins']['has']('TableCaptionEditing'))return;_0x379ec['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ft extends _0x9da42{['tableProperties'];['tableCellProperties'];constructor(_0xe02602){super(_0xe02602),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 _0x17897f=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x319876 of this['tableProperties'])_0x17897f['enableCommand'](_0x319876,(_0x2176a3,_0x30d360)=>{const _0x29a3e6=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x319876,[_0x29a3e6],this['tableProperties'],'tableProperties',_0x2176a3,_0x30d360);});_0x17897f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x17897f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x17897f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x51d369,_0x4130d9)=>this['handleDiscardAction'](this['tableProperties'],_0x51d369,_0x4130d9)),_0x17897f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x2c72bd of this['tableCellProperties'])_0x17897f['enableCommand'](_0x2c72bd,(_0x1e34cb,_0x4777c3)=>{const _0x45f574=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x2c72bd,_0x45f574,this['tableCellProperties'],'tableCellProperties',_0x1e34cb,_0x4777c3);});_0x17897f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x17897f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x17897f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x452114,_0x545aa5)=>this['handleDiscardAction'](this['tableCellProperties'],_0x452114,_0x545aa5)),_0x17897f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x17897f['descriptionFactory']['registerDescriptionCallback'](_0x4c4b3e=>this['handleSuggestionDescription'](_0x4c4b3e)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x303a3f,_0x5512d5,_0x2f193a,_0x3290d6,_0x5cf495,_0x4bb899){const _0x5c69e8=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x4bb899['batch'],()=>{for(const _0x309cd9 of _0x5512d5){if(this['_getSuggestion'](_0x309cd9,_0x3290d6))_0x5cf495(_0x4bb899);else{const _0x55e27a={};for(const _0x571b4d of _0x2f193a){const _0x2a4fea=_0x309cd9['getAttribute'](_0x571b4d);void 0x0!==_0x2a4fea&&(_0x55e27a[_0x571b4d]=_0x2a4fea);}_0x5cf495(_0x4bb899),_0x5c69e8['markBlockFormat'](_0x309cd9,{'commandParams':[_0x55e27a]},[],_0x3290d6);}}});}['handleDiscardAction'](_0x38ab9e,_0x51eefa,_0x47b8cf){const _0x1adef4=_0x51eefa[0x0]['start']['nodeAfter'],_0x21acad=_0x47b8cf['commandParams'][0x0];this['editor']['model']['change'](_0x495d7d=>{for(const _0x5f1b2e of _0x38ab9e)void 0x0!==_0x21acad[_0x5f1b2e]?_0x495d7d['setAttribute'](_0x5f1b2e,_0x21acad[_0x5f1b2e],_0x1adef4):_0x495d7d['removeAttribute'](_0x5f1b2e,_0x1adef4);});}['handleSuggestionDescription'](_0x41bb15){if(_0x41bb15['data'])switch(_0x41bb15['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x4d8804,_0x4200dc){const _0xb286d1=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x44b0b0 of _0xb286d1['getSuggestions']({'skipNotAttached':!0x0})){const _0x3c2071=_0x44b0b0['getContainedElement']();if(_0x44b0b0['subType']===_0x4200dc&&_0x3c2071===_0x4d8804)return _0x44b0b0;}return null;}['_registerTablePropertiesAttributes'](){const _0x22f0e2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5cc8ed=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x5bf3b7 of _0x5cc8ed){const _0x44718c=_0x5bf3b7['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x22f0e2['registerBlockAttribute'](_0x5bf3b7),_0x22f0e2['descriptionFactory']['registerAttributeLabel'](_0x5bf3b7,o(this['editor']['locale'],'FORMAT_'+_0x44718c));}}}class Pt extends _0x9da42{['afterInit'](){const _0x5b32b1=this['editor'];if(!_0x5b32b1['plugins']['has']('LineHeight'))return;const _0x3ca7df=_0x5b32b1['plugins']['get']('TrackChangesEditing'),_0x4fec0f=_0x5b32b1['locale'];_0x3ca7df['enableDefaultAttributesIntegration']('lineHeight'),_0x3ca7df['registerBlockAttribute']('lineHeight'),_0x3ca7df['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x4fec0f,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x9da42{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x168de4,_0x2119af,_0x3346b1,V,F,G,L,J,H,K,W,q,z,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,ct,ft,ht,gt,dt,mt,bt,lt,Q,Pt,X,pt,kt,wt,yt,St,jt,It,At,_t,vt,Ct,$t,Nt,Dt,Mt,Vt,Bt,Tt,xt,Ft,Ot,Et,Rt,Ut];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x326c42){super(_0x326c42),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x1a3996,_0x53f056,_0x53bacd,_0x3afeed)=>{this['_model']['change'](()=>{for(const _0x175dee of[..._0x3afeed,..._0x53bacd])this['_model']['markers']['has'](_0x175dee)&&_0x326c42['editing']['reconvertMarker'](_0x175dee);});}),this['descriptionFactory']=new U(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Lt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x326c42['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x326c42['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x326c42['config']['get']('trackChanges.trackFormatChanges'),_0x326c42['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x326c42['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x326c42,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x1eef81=this['editor'],_0x2ea76e=(_0x132ca4,_0x2cc9a1)=>{if('attribute'!=_0x132ca4)return'ck-suggestion-marker-'+_0x132ca4;const _0x25d3c9=_0x2cc9a1['split']('|')[0x0];return this['_isBlockAttribute'](_0x25d3c9)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x1eef81['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x53c01f=>{const {id:_0x1371fe,authorId:_0x57fc71,type:_0x8a0cff,subType:_0x1fe300}=this['_splitMarkerName'](_0x53c01f['markerName']),_0x338631=['ck-suggestion-marker',_0x2ea76e(_0x8a0cff,_0x1fe300)];let _0x38cd2b=0xbb8;return this['activeMarkers']['includes'](_0x53c01f['markerName'])&&(_0x338631['push']('ck-suggestion-marker--active'),_0x38cd2b=0xbc2),'deletion'==_0x8a0cff&&(_0x38cd2b+=0x5),{'classes':_0x338631,'attributes':{'data-suggestion':_0x1371fe,'data-author-id':_0x57fc71},'priority':_0x38cd2b};}}),_0x1eef81['conversion']['for']('dataDowncast')['add'](_0x54886e=>{_0x54886e['on']('addMarker:suggestion',(_0x18a93d,_0x166c76,_0x9fe75b)=>{if(!_0x9fe75b['options']['showSuggestionHighlights'])return;const _0x465310=_0x166c76['item'];if(!_0x465310)return;const _0x16cfa0=_0x9fe75b['mapper']['toViewElement'](_0x465310);_0x1eef81['model']['schema']['isObject'](_0x465310)&&_0x16cfa0&&!_0x16cfa0['getCustomProperty']('widget')&&_0x16cfa0['is']('containerElement')&&_0x594d41(_0x16cfa0,_0x9fe75b['writer']);},{'priority':'high'});}),_0x1eef81['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x41238e,_0x155473)=>{if(!_0x155473['options']['showSuggestionHighlights'])return null;const {id:_0x228953,authorId:_0x4dfe5a,type:_0x45cf6e,subType:_0x1bd0f7}=this['_splitMarkerName'](_0x41238e['markerName']);return{'classes':['ck-suggestion-marker',_0x2ea76e(_0x45cf6e,_0x1bd0f7)],'priority':0xbb8,'attributes':{'data-suggestion':_0x228953,'data-author-id':_0x4dfe5a}};}});const _0x542421=({showActiveMarkers:_0x544790=!0x0,isAttributeSuggestion:_0x1d42ee=!0x1}={})=>(_0x3a1e52,_0xf6a6e5,_0x2e8903)=>{if(!_0xf6a6e5['item'])return;const {id:_0x19db35,authorId:_0x508d9c,subType:_0x2f37d3}=this['_splitMarkerName'](_0xf6a6e5['markerName']);if(_0x1d42ee){const _0x2d0339=se(_0x2f37d3);if(!this['_isBlockAttribute'](_0x2d0339))return;}if(_0xf6a6e5['item']['is']('selection'))return void _0x2e8903['consumable']['consume'](_0xf6a6e5['item'],_0x3a1e52['name']);const _0x12aad5=_0x2e8903['mapper']['toViewElement'](_0xf6a6e5['item']);if(_0xf6a6e5['item']['is']('element')&&_0x1eef81['model']['schema']['isBlock'](_0xf6a6e5['item'])&&!_0x12aad5['getCustomProperty']('addHighlight')){_0x2e8903['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x12aad5),_0x2e8903['writer']['setAttribute']('data-suggestion',_0x19db35,_0x12aad5),_0x2e8903['writer']['setAttribute']('data-author-id',_0x508d9c,_0x12aad5),_0x2e8903['mapper']['bindElementToMarker'](_0x12aad5,_0xf6a6e5['markerName']),_0x544790&&(this['activeMarkers']['includes'](_0xf6a6e5['markerName'])?_0x2e8903['writer']['addClass']('ck-suggestion-marker--active',_0x12aad5):_0x2e8903['writer']['removeClass']('ck-suggestion-marker--active',_0x12aad5));for(const _0xe859d2 of _0x1eef81['model']['createRangeIn'](_0xf6a6e5['item'])['getItems']())_0x2e8903['consumable']['consume'](_0xe859d2,_0x3a1e52['name']);_0x2e8903['consumable']['consume'](_0xf6a6e5['item'],_0x3a1e52['name']);}};_0x1eef81['conversion']['for']('dataDowncast')['add'](_0x3ca2bc=>{_0x3ca2bc['on']('addMarker:suggestion:formatBlock',(_0x146a04,_0x1eae58,_0x26fbf0)=>{_0x26fbf0['options']['showSuggestionHighlights']&&_0x542421({'showActiveMarkers':!0x1})(_0x146a04,_0x1eae58,_0x26fbf0);},{'priority':'highest'});}),_0x1eef81['conversion']['for']('dataDowncast')['add'](_0x1281b7=>{_0x1281b7['on']('addMarker:suggestion:attribute',(_0x3294fd,_0x5d4cad,_0x376f1a)=>{_0x376f1a['options']['showSuggestionHighlights']&&_0x542421({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x3294fd,_0x5d4cad,_0x376f1a);},{'priority':'highest'});}),_0x1eef81['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x1e599c,_0x400366)=>{if(_0x400366['options']['showSuggestionHighlights']){const {id:_0x28b77a,authorId:_0x33b063}=this['_splitMarkerName'](_0x1e599c);return _0x1e599c['includes'](':split')||_0x1e599c['includes'](':merge')?{'group':'suggestion','name':_0x1e599c['substr'](0xb),'attributes':{'data-suggestion':_0x28b77a,'data-author-id':_0x33b063}}:null;}return{'group':'suggestion','name':_0x1e599c['substr'](0xb)};}}),_0x1eef81['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x27d091,{writer:_0x16a5da})=>{let _0x542afe='suggestion:'+_0x27d091['getAttribute']('suggestion-type')+':'+_0x27d091['getAttribute']('id');return _0x27d091['getAttribute']('marker-count')&&(_0x542afe+=':'+_0x27d091['getAttribute']('marker-count')),_0x16a5da['createElement']('$marker',{'data-name':_0x542afe});}}),_0x1eef81['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x1eef81['conversion']['for']('editingDowncast')['add'](_0xe22fce=>{_0xe22fce['on']('addMarker:suggestion:formatBlock',_0x542421(),{'priority':'high'});}),_0x1eef81['conversion']['for']('editingDowncast')['add'](_0x4158d9=>{_0x4158d9['on']('addMarker:suggestion:attribute',_0x542421({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x1eef81['conversion']['for']('editingDowncast')['add'](_0x7058cc=>{_0x7058cc['on']('removeMarker:suggestion:formatBlock',(_0x26be1b,_0x246673,_0x17ec0c)=>{const _0x518071=_0x17ec0c['mapper']['markerNameToElements'](_0x246673['markerName']);if(_0x518071){for(const _0x4dc321 of _0x518071)_0x4dc321['getCustomProperty']('addHighlight')||(_0x17ec0c['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4dc321),_0x17ec0c['writer']['removeAttribute']('data-suggestion',_0x4dc321),_0x17ec0c['writer']['removeAttribute']('data-author-id',_0x4dc321),_0x17ec0c['mapper']['unbindElementFromMarkerName'](_0x4dc321,_0x246673['markerName']));}},{'priority':'high'});}),_0x1eef81['conversion']['for']('editingDowncast')['add'](_0xfcc566=>{_0xfcc566['on']('removeMarker:suggestion:attribute',(_0x34a242,_0x2688c9,_0x2c9441)=>{const _0x45529c=_0x2c9441['mapper']['markerNameToElements'](_0x2688c9['markerName']);if(!_0x45529c)return;const {subType:_0x5c93ad}=this['_splitMarkerName'](_0x2688c9['markerName']),_0x2302bf=se(_0x5c93ad);if(this['_isBlockAttribute'](_0x2302bf)){for(const _0x594507 of _0x45529c)_0x594507['getCustomProperty']('addHighlight')||(_0x2c9441['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x594507),_0x2c9441['writer']['removeAttribute']('data-suggestion',_0x594507),_0x2c9441['writer']['removeAttribute']('data-author-id',_0x594507),_0x2c9441['mapper']['unbindElementFromMarkerName'](_0x594507,_0x2688c9['markerName']));}},{'priority':'high'});}),_0x1eef81['model']['document']['registerPostFixer'](_0x5bff56=>{let _0x1e3d29=!0x1;const _0x50894f=Array['from'](_0x1eef81['model']['document']['differ']['getChangedMarkers']()),_0x5cde99=new Set();for(const {name:_0x3d43c4,data:_0x5e1a0e}of _0x50894f){const {group:_0x43653d,type:_0x5213d9,subType:_0xac4f4,id:_0x284a35}=this['_splitMarkerName'](_0x3d43c4);if('suggestion'!==_0x43653d)continue;const _0x17734d=_0xac4f4?'suggestion:'+_0x5213d9+':'+_0xac4f4+':'+_0x284a35:'suggestion:'+_0x5213d9+':'+_0x284a35,_0x51942a=_0x1eef81['model']['markers']['getMarkersGroup'](_0x17734d),_0x2e2e03=_0x1eef81['model']['markers']['get'](_0x3d43c4),_0x33400c=this['_suggestions']['get'](_0x284a35);if(null!=_0x5e1a0e['newRange']){'formatInline'==_0x5213d9&&(_0x1e3d29=_0x1e3d29||Ht(_0x5e1a0e['newRange'],_0x3d43c4,_0x5bff56,_0x1eef81['model']['schema']));const _0x275a25='attribute'==_0x5213d9&&this['_isBlockAttribute'](_0xac4f4['split']('|')[0x0]),_0x4ee4db='attribute'==_0x5213d9&&this['_isInlineAttribute'](_0xac4f4['split']('|')[0x0]);if(_0x5e1a0e['newRange']['isCollapsed']||'$graveyard'==_0x5e1a0e['newRange']['root']['rootName']||'formatBlock'==_0x5213d9&&!qt(_0x5e1a0e['newRange'])||_0x275a25&&!qt(_0x5e1a0e['newRange'])||_0x4ee4db&&zt(_0x5e1a0e['newRange'])||'deletion'==_0x5213d9&&zt(_0x5e1a0e['newRange'])||_0x2e2e03&&Qt(_0x2e2e03,_0x51942a))_0x5bff56['removeMarker'](_0x3d43c4),_0x1e3d29=!0x0;else{if(!_0x33400c||!_0x33400c['isInContent'])continue;if(_0x5e1a0e['newRange']&&_0x5e1a0e['oldRange']&&_0x5e1a0e['newRange']['isEqual'](_0x5e1a0e['oldRange']))continue;_0x5cde99['add'](_0x33400c);}}}return _0x5cde99['size']>0x0&&(_0x1e3d29=!!this['_joinWithAdjacentSuggestions'](_0x5cde99)||_0x1e3d29),_0x1e3d29;}),_0x1eef81['model']['document']['registerPostFixer'](_0x5d5f85=>{let _0x3a5198=!0x1;for(const _0x162194 of _0x1eef81['model']['document']['differ']['getChanges']())if('insert'==_0x162194['type'])for(const _0x458181 of this['_suggestions']['values']()){if(_0x458181['isMultiRange']||!_0x458181['isInContent'])continue;const _0x5614fa='formatBlock'==_0x458181['type'],_0x129b77=this['_getAttributeKey'](_0x458181),_0x30f882=_0x129b77&&this['_isBlockAttribute'](_0x129b77);if(!_0x5614fa&&!_0x30f882)continue;const _0x430526=_0x458181['getFirstRange']();if(_0x430526['start']['parent']!=_0x430526['end']['parent']&&!_0x430526['end']['isAtEnd']){const _0x5e1946=_0x1eef81['model']['createPositionAt'](_0x430526['start']['nodeAfter'],'end'),_0x866497=_0x1eef81['model']['createRange'](_0x430526['start'],_0x5e1946);_0x5d5f85['updateMarker'](_0x458181['getFirstMarker'](),{'range':_0x866497}),_0x3a5198=!0x0;}}return _0x3a5198;}),_0x1eef81['model']['document']['registerPostFixer'](_0x492383=>this['_processAttributeChanges'](_0x492383)),_0x1eef81['model']['document']['registerPostFixer'](_0x11d53c=>!_0x11d53c['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x11d53c)),_0x1eef81['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x1eef81['model']['document']['on']('change:data',(_0x5ce4ee,_0x11c285)=>{if(!_0x11c285['isLocal']||_0x11c285['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x4b988a=_0x1eef81['model']['document']['differ']['getChanges']();if(0x0==_0x4b988a['length'])return;const _0x2040a8=[],_0xb0e522=_0x4b988a['filter'](_0x204e51=>'attribute'==_0x204e51['type']),_0x15ffe9=_0x4b988a['filter'](_0xe7e16=>'insert'==_0xe7e16['type']&&'$text'!=_0xe7e16['name']);for(const _0x567bfa of _0xb0e522)this['_isRegisteredAttribute'](_0x567bfa['attributeKey'])&&_0x2040a8['push']({'key':_0x567bfa['attributeKey'],'newValue':_0x567bfa['attributeNewValue'],'oldValue':_0x567bfa['attributeOldValue'],'range':Yt(_0x567bfa['range'],_0x1eef81['model'])});for(const _0x39dec9 of _0x15ffe9){if('rename'!=_0x39dec9['action']&&'refresh'!=_0x39dec9['action'])continue;const _0x43ab00=Zt(_0x39dec9['position']['nodeAfter'],_0x1eef81['model']),_0x5721b9=_0x39dec9['before'];'rename'==_0x39dec9['action']&&_0x2040a8['push']({'key':m,'newValue':_0x39dec9['name'],'oldValue':_0x5721b9['name'],'range':_0x43ab00});for(const [_0x4d7bdb,_0x4dec36]of _0x5721b9['attributes']){if(!this['_isRegisteredAttribute'](_0x4d7bdb))continue;const _0x6ece0c=_0x39dec9['attributes']['get'](_0x4d7bdb);_0x4dec36!==_0x6ece0c&&_0x2040a8['push']({'key':_0x4d7bdb,'newValue':_0x6ece0c,'oldValue':_0x4dec36,'range':_0x43ab00});}for(const [_0x1581e9,_0xb54c38]of _0x39dec9['attributes'])this['_isRegisteredAttribute'](_0x1581e9)&&(_0x5721b9['attributes']['has'](_0x1581e9)||_0x2040a8['push']({'key':_0x1581e9,'newValue':_0xb54c38,'oldValue':null,'range':_0x43ab00}));}0x0!=_0x2040a8['length']&&_0x1eef81['model']['enqueueChange'](_0x11c285,_0x3291ce=>{const _0x360cd3=_0x11d0ec();for(const {range:_0x4e3a9c,key:_0x553955,oldValue:_0xb6e1d6,newValue:_0x534ee7}of _0x2040a8)this['markAttributeChange'](_0x4e3a9c,_0x553955,_0xb6e1d6,_0x534ee7,{'groupId':_0x360cd3});this['_reduceExistingSuggestions'](_0x3291ce,_0x2040a8);});},{'priority':'lowest'}),_0x1eef81['model']['markers']['on']('update:suggestion',(_0x2b7a5b,_0x224095,_0x6c36c5)=>{if(null==_0x6c36c5){const {id:_0x5f0fc9}=this['_splitMarkerName'](_0x224095['name']),_0x4ba4be=this['_suggestions']['get'](_0x5f0fc9);_0x4ba4be&&_0x4ba4be['addMarkerName'](_0x224095['name']);}}),_0x1eef81['model']['document']['on']('change:data',()=>{const _0x10b1c9=Array['from'](_0x1eef81['model']['document']['differ']['getChangedMarkers']())['filter'](_0x25b6c0=>'suggestion'===this['_splitMarkerName'](_0x25b6c0['name'])['group']);if(0x0===_0x10b1c9['length'])return;_0x10b1c9['sort']((_0x1f0647,_0x968e79)=>{const _0x12c6cd=_0x1f0647['data']['oldRange'],_0x5f53e5=_0x968e79['data']['oldRange'];return null===_0x12c6cd&&null===_0x5f53e5?0x0:null===_0x12c6cd&&null!==_0x5f53e5?-0x1:null!==_0x12c6cd&&null===_0x5f53e5?0x1:_0x12c6cd['start']['isBefore'](_0x5f53e5['start'])?-0x1:0x1;});const _0x310c28=new Set(),_0x209e72=new Set();for(const {name:_0x1e472c,data:_0x16e445}of _0x10b1c9){const {id:_0x2115c2}=this['_splitMarkerName'](_0x1e472c);if(null===_0x16e445['oldRange']){const _0x943030=this['_handleNewSuggestionMarker'](_0x1e472c);_0x209e72['add'](_0x943030);}else{const _0x1e844b=this['_suggestions']['get'](_0x2115c2);null!==_0x16e445['newRange']||_0x1e844b['isInContent']?(_0x310c28['add'](_0x1e844b['head']),_0x209e72['add'](_0x1e844b)):this['_removeSuggestion'](_0x1e844b);}}_0x209e72['size']>0x0&&this['_refreshSuggestionsChain'](_0x209e72);for(const _0x2fa4c1 of _0x310c28)this['fire']('suggestionChanged',_0x2fa4c1);}),_0x1eef81['model']['on']('applyOperation',(_0x546b37,_0x271377)=>{const _0x36c414=_0x271377[0x0];if(!this['_suggestions']['size'])return;if(!_0x36c414['isDocumentOperation'])return;if(_0x36c414['batch']['isUndo']||!_0x36c414['batch']['isLocal'])return;let _0x3d6bc8,_0x58c74c;switch(_0x36c414['type']){case'insert':_0x3d6bc8=_0x1eef81['model']['createPositionAt'](_0x36c414['position']),_0x58c74c=_0x3d6bc8['getShiftedBy'](_0x36c414['howMany']);break;case'split':_0x3d6bc8=_0x1eef81['model']['createPositionAt'](_0x36c414['splitPosition']),_0x58c74c=_0x1eef81['model']['createPositionAt'](_0x36c414['moveTargetPosition']);break;case'move':_0x3d6bc8=_0x1eef81['model']['createPositionAt'](_0x36c414['targetPosition']),_0x58c74c=_0x3d6bc8['getShiftedBy'](_0x36c414['howMany']);break;default:return;}const _0x2eac93=_0x1eef81['model']['createRange'](_0x3d6bc8,_0x58c74c);_0x1eef81['model']['change'](()=>{for(const {suggestion:_0x37eb29,meta:_0x26f096}of this['_findSuggestions'](_0x2eac93)){if(_0x37eb29['isMultiRange'])continue;if('formatInline'==_0x37eb29['type'])continue;const _0x4a8bcb=this['_getAttributeKey'](_0x37eb29);if(_0x4a8bcb&&this['_isBlockAttribute'](_0x4a8bcb)&&'split'!=_0x36c414['type'])continue;const _0x23efd3=_0x37eb29['data']&&_0x37eb29['data']['multipleBlocks'];('formatBlock'!=_0x37eb29['type']||'split'==_0x36c414['type']&&!_0x23efd3)&&(_0x26f096['containsRangeInObject']||'insertion'==_0x37eb29['type']&&_0x26f096['isOwn']||_0x37eb29['getFirstRange']()['containsRange'](_0x2eac93)&&this['_breakSuggestionMarker'](_0x37eb29,_0x3d6bc8,_0x58c74c));}});},{'priority':'lowest'}),_0x1eef81['model']['on']('deleteContent',(_0x1ce865,_0x8b1f0b)=>{const _0x40e960=_0x8b1f0b[0x0],_0x38abba=_0x8b1f0b[0x1];if(_0x38abba&&_0x38abba['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x40e960['isCollapsed'])return;const _0x14cdd8=_0x1eef81['model']['schema'],{start:_0x14293b,end:_0x5f47cc}=_0x40e960['getFirstRange'](),_0x64b55e=_0x14293b['nodeAfter']&&_0x14cdd8['isLimit'](_0x14293b['nodeAfter'])?null:_0x14cdd8['getNearestSelectionRange'](_0x14293b,'forward'),_0x2d2566=_0x5f47cc['nodeBefore']&&_0x14cdd8['isLimit'](_0x5f47cc['nodeBefore'])?null:_0x14cdd8['getNearestSelectionRange'](_0x5f47cc,'backward'),_0x1d4935=_0x1eef81['model']['createRange'](_0x64b55e?_0x64b55e['start']:_0x14293b,_0x2d2566?_0x2d2566['end']:_0x5f47cc);_0x1eef81['model']['change'](_0x51c289=>{this['markDeletion'](_0x1d4935);const _0x10ef7c=_0x1eef81['model']['schema']['getNearestSelectionRange'](_0x1d4935['start']);_0x40e960['is']('documentSelection')?_0x51c289['setSelection'](_0x10ef7c):_0x40e960['setTo'](_0x10ef7c);}),_0x1ce865['stop']();},{'priority':_0x43bf14['normal']+0xa}),_0x1eef81['model']['on']('insertContent',(_0x3a0c94,_0x4c1661)=>{const _0xdbae1=_0x4c1661[_0x4c1661['length']-0x1];_0xdbae1&&_0xdbae1['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x1eef81['model']['change'](()=>{let _0x51e31e=_0x1eef81['model']['insertContent'](_0x4c1661[0x0],_0x4c1661[0x1],_0x4c1661[0x2],{'forceDefaultExecution':!0x0});if(!_0x51e31e)return;_0x3a0c94['return']=_0x51e31e['clone']();const _0x489e41=_0x51e31e['end']['nodeBefore'],_0x2ed4ec=_0x1eef81['model']['schema'];_0x489e41&&_0x2ed4ec['isBlock'](_0x489e41)&&!_0x2ed4ec['isObject'](_0x489e41)&&(_0x51e31e=_0x1eef81['model']['createRange'](_0x51e31e['start'],_0x1eef81['model']['createPositionAt'](_0x489e41,'end'))),this['markInsertion'](_0x51e31e);}),_0x3a0c94['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0xf3e5ce=new T(_0x1eef81,this['_suggestions']);_0x1eef81['commands']['add']('acceptSuggestion',_0xf3e5ce),this['enableCommand']('acceptSuggestion');const _0x56b823=new O(_0x1eef81,this['_suggestions']);_0x1eef81['commands']['add']('discardSuggestion',_0x56b823),this['enableCommand']('discardSuggestion'),_0x1eef81['commands']['add']('acceptAllSuggestions',new x(_0x1eef81,_0xf3e5ce,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x1eef81['commands']['add']('discardAllSuggestions',new x(_0x1eef81,_0x56b823,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x1eef81['commands']['add']('acceptSelectedSuggestions',new E(_0x1eef81,_0xf3e5ce,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x1eef81['commands']['add']('discardSelectedSuggestions',new E(_0x1eef81,_0x56b823,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x3362e2=_0x1eef81['plugins']['get']('CommentsRepository');this['listenTo'](_0x3362e2,'addComment',(_0x1d285a,{threadId:_0x287217})=>{const _0x488142=this['_suggestions']['get'](_0x287217);_0x488142&&_0x488142['commentThread']&&0x1===_0x488142['commentThread']['length']&&this['_updateSuggestionData'](_0x287217,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x3362e2,'removeComment',(_0x4748bd,{threadId:_0xcc59b0})=>{const _0x25390e=this['_suggestions']['get'](_0xcc59b0);_0x25390e&&_0x25390e['commentThread']&&!_0x25390e['commentThread']['length']&&this['_updateSuggestionData'](_0xcc59b0,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x8d5223){const _0x5306df=_0x390455([0x35,0x67,0x6f,0x4e,0x5a,0x52,0x78,0x48,0x7a,0x6d,0x42,0x66,0x72,0x6c,0x30,0x46,0x71,0x36,0x43,0x6b,0x73,0x31,0x61,0x68,0x44,0x47,0x53,0x32,0x4c,0x55,0x45,0x57,0x69,0x62,0x79,0x33,0x77,0x4b,0x76,0x75,0x34,0x49,0x56,0x50,0x64,0x65,0x54,0x38,0x6a,0x6e,0x39,0x4d,0x4f,0x51,0x4a,0x74,0x63,0x41,0x59,0x37,0x58,0x70]),_0x415238=0x6b0f5e6f,_0x62a639=0x6b082a17^_0x415238,_0x5f01fc=window[_0x390455([0x44,0x61,0x74,0x65])][_0x390455([0x6e,0x6f,0x77])](),_0x233199=_0x8d5223[_0x390455([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x45df6d=new window[(_0x390455([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4c4338=>{_0x233199[_0x390455([0x6f,0x6e,0x63,0x65])](_0x390455([0x72,0x65,0x61,0x64,0x79]),_0x4c4338);}),_0x11fbed={[_0x390455([0x6b,0x74,0x79])]:_0x390455([0x45,0x43]),[_0x390455([0x75,0x73,0x65])]:_0x390455([0x73,0x69,0x67]),[_0x390455([0x63,0x72,0x76])]:_0x390455([0x50,0x2d,0x32,0x35,0x36]),[_0x390455([0x78])]:_0x390455([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]),[_0x390455([0x79])]:_0x390455([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]),[_0x390455([0x61,0x6c,0x67])]:_0x390455([0x45,0x53,0x32,0x35,0x36])},_0x572976=_0x233199[_0x390455([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x390455([0x67,0x65,0x74])](_0x390455([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x38e343(){let _0x56b408,_0x523a7e=null,_0x187ed6=null;try{if(_0x572976==_0x390455([0x47,0x50,0x4c]))return _0x390455([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x56b408=_0x448156(),!_0x56b408)return _0x390455([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x56b408[_0x390455([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x187ed6=_0x2d6705(_0x56b408[_0x390455([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x56b408[_0x390455([0x6a,0x74,0x69])])),await _0x1ddc88()?_0x53221f()?_0x46d5b6()?_0x390455([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x469785()?(_0x56b408[_0x390455([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x390455([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x523a7e=_0x40adb6(_0x390455([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x56b408[_0x390455([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x390455([0x74,0x72,0x69,0x61,0x6c])&&(_0x523a7e=_0x40adb6(_0x390455([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3ba80e()):_0x390455([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x390455([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x390455([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x390455([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x46d5b6(){const _0x296217=[_0x390455([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x390455([0x74,0x72,0x69,0x61,0x6c])][_0x390455([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x56b408[_0x390455([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5f01fc/0x3e8:0xe10*_0x62a639;return _0x56b408[_0x390455([0x65,0x78,0x70])]<_0x296217;}function _0x53221f(){const _0x517e96=_0x56b408[_0x390455([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x517e96)return!0x1;if(_0x517e96[_0x390455([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x390455([0x2a])))return!0x0;if(_0x517e96[_0x390455([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x390455([0x54,0x43])))return!0x0;if(_0x517e96[_0x390455([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x390455([0x52,0x54,0x43]))){if(_0x21d506())return!0x0;if(_0x3d0e94()||_0x5de137())return!0x0;}return!0x1;}function _0x469785(){const _0x188641=_0x56b408[_0x390455([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x188641||0x0==_0x188641[_0x390455([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x56d556}=new URL(window[_0x390455([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x188641[_0x390455([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x56d556))return!0x0;const _0x20a78c=_0x56d556[_0x390455([0x73,0x70,0x6c,0x69,0x74])](_0x390455([0x2e]));return _0x188641[_0x390455([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xd20057=>_0xd20057[_0x390455([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x390455([0x2a])))[_0x390455([0x6d,0x61,0x70])](_0xba07eb=>_0xba07eb[_0x390455([0x73,0x70,0x6c,0x69,0x74])](_0x390455([0x2e])))[_0x390455([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x38047e=>_0x38047e[_0x390455([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x20a78c[_0x390455([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x390455([0x6d,0x61,0x70])](_0x58f9cf=>Array(_0x20a78c[_0x390455([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x58f9cf[_0x390455([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x390455([0x66,0x69,0x6c,0x6c])](_0x58f9cf[0x0]===_0x390455([0x2a])?_0x390455([0x2a]):'')[_0x390455([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x58f9cf))[_0x390455([0x73,0x6f,0x6d,0x65])](_0x1ea265=>_0x20a78c[_0x390455([0x65,0x76,0x65,0x72,0x79])]((_0x387ee0,_0x8d3ca7)=>_0x1ea265[_0x8d3ca7]===_0x387ee0||_0x1ea265[_0x8d3ca7]===_0x390455([0x2a])));}function _0x3ba80e(){return _0x523a7e&&_0x187ed6?new window[(_0x390455([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x56987b,_0x3ef710)=>{_0x523a7e[_0x390455([0x74,0x68,0x65,0x6e])](_0x56987b,_0x3ef710),_0x187ed6[_0x390455([0x74,0x68,0x65,0x6e])](_0x554187=>{_0x554187!=_0x390455([0x56,0x61,0x6c,0x69,0x64])&&_0x56987b(_0x554187);},_0x3ef710);}):_0x523a7e||_0x187ed6||_0x390455([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2d6705(_0x10d20e,_0x27e25a){return new window[(_0x390455([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x172d27=>{if(_0xa89168())return _0x172d27(_0x390455([0x56,0x61,0x6c,0x69,0x64]));_0x48bb8b(),_0x233199[_0x390455([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x390455([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4b58ad=!0x1;const _0x160af6=_0x11d0ec();function _0x5ee82c(_0x461359){return!!_0x461359&&(typeof _0x461359===_0x390455([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x461359===_0x390455([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x461359[_0x390455([0x74,0x68,0x65,0x6e])]===_0x390455([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x461359[_0x390455([0x63,0x61,0x74,0x63,0x68])]===_0x390455([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5bb3bb(_0x2e01dc){_0x4d5877(_0x2e01dc)[_0x390455([0x74,0x68,0x65,0x6e])](_0x3cc597=>{if(!_0x3cc597||_0x3cc597[_0x390455([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x390455([0x6f,0x6b]))return _0x390455([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x403f44(_0x2e5960(_0x160af6+_0x27e25a))!=_0x3cc597[_0x390455([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x390455([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x390455([0x56,0x61,0x6c,0x69,0x64]);})[_0x390455([0x74,0x68,0x65,0x6e])](_0x542809=>(_0x3061b0(),_0x542809),()=>{const _0x3a7e58=_0x2ecb08();return null==_0x3a7e58?(_0x3061b0(),_0x390455([0x56,0x61,0x6c,0x69,0x64])):_0x390455(_0x5f01fc-_0x3a7e58>(0x4f03da6f^_0x415238)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x390455([0x74,0x68,0x65,0x6e])](_0x172d27)[_0x390455([0x63,0x61,0x74,0x63,0x68])](()=>{_0x172d27(_0x390455([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4328a2=0x6b39b0ef^_0x415238;function _0x3061b0(){const _0xa347bd=_0x390455([0x6c,0x6c,0x63,0x74,0x2d])+_0x403f44(_0x2e5960(_0x10d20e)),_0x14bb72=_0x12c322(_0x403f44(window[_0x390455([0x4d,0x61,0x74,0x68])][_0x390455([0x63,0x65,0x69,0x6c])](_0x5f01fc/_0x4328a2)));window[_0x390455([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x390455([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xa347bd,_0x14bb72);}function _0x2ecb08(){const _0x37257f=_0x390455([0x6c,0x6c,0x63,0x74,0x2d])+_0x403f44(_0x2e5960(_0x10d20e)),_0x1b2c8b=window[_0x390455([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x390455([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x37257f);return _0x1b2c8b?window[_0x390455([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x12c322(_0x1b2c8b),0x10)*_0x4328a2:null;}function _0x4d5877(_0x15a86d){return new window[(_0x390455([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x30da39,_0x55b1a3)=>{_0x15a86d[_0x390455([0x74,0x68,0x65,0x6e])](_0x30da39,_0x55b1a3),window[_0x390455([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x55b1a3,0x6b0e8aaf^_0x415238);});}}_0x233199[_0x390455([0x6f,0x6e])](_0x390455([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4a2c4e,_0x419c41)=>{if(_0x419c41[0x0]!=_0x10d20e)return _0x172d27(_0x390455([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x419c41[0x1]={..._0x419c41[0x1],[_0x390455([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x160af6};},{[_0x390455([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x390455([0x68,0x69,0x67,0x68])}),_0x233199[_0x390455([0x6f,0x6e])](_0x390455([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5314be=>{_0x5ee82c(_0x5314be[_0x390455([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4b58ad=!0x0,_0x5bb3bb(_0x5314be[_0x390455([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x390455([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x390455([0x6c,0x6f,0x77])}),_0x45df6d[_0x390455([0x74,0x68,0x65,0x6e])](()=>{_0x4b58ad||_0x172d27(_0x390455([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xa89168(){return _0x233199[_0x390455([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x390455([0x76,0x69,0x65,0x77])][_0x390455([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x390455([0x61,0x75,0x74,0x6f]);}function _0x48bb8b(){_0x233199[_0x390455([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x390455([0x76,0x69,0x65,0x77])][_0x390455([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x390455([0x61,0x75,0x74,0x6f]);}}function _0x40adb6(_0x35831f){const _0x2a7533=[new window[(_0x390455([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5cfc8b=>setTimeout(_0x5cfc8b,0x6b0660a3^_0x415238)),_0x45df6d[_0x390455([0x74,0x68,0x65,0x6e])](()=>new window[(_0x390455([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x12f248=>{let _0x23b0d0=0x0;_0x233199[_0x390455([0x6d,0x6f,0x64,0x65,0x6c])][_0x390455([0x6f,0x6e])](_0x390455([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x12986b,_0x1ca9a9)=>{_0x1ca9a9[0x0][_0x390455([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x23b0d0++,_0x23b0d0==(0x6b0f5f97^_0x415238)&&(_0x12f248(),_0x12986b[_0x390455([0x6f,0x66,0x66])]());});}))];return window[_0x390455([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x390455([0x72,0x61,0x63,0x65])](_0x2a7533)[_0x390455([0x74,0x68,0x65,0x6e])](()=>_0x35831f);}async function _0x2dc24f(){await _0x45df6d,_0x233199[_0x390455([0x6d,0x6f,0x64,0x65,0x6c])][_0x390455([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5b0167,_0x233199[_0x390455([0x6d,0x6f,0x64,0x65,0x6c])][_0x390455([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5b0167,_0x233199[_0x390455([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x390455([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x21d506(){return _0x2086a9(_0x390455([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x25cd0a(_0x390455([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x390455([0x73,0x74,0x61,0x74,0x65])]==_0x390455([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x3d0e94(){return _0x2086a9(_0x390455([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 _0x5de137(){return _0x2086a9(_0x390455([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x383ec4(_0x3fdb95){const _0x199c6d=_0x498b89();_0x233199[_0x199c6d]=_0x390455([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3fdb95,_0x3fdb95!=_0x390455([0x56,0x61,0x6c,0x69,0x64])&&_0x2dc24f();}function _0x498b89(){const _0x4f20d6=window[_0x390455([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x390455([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x390455([0x6e,0x6f,0x77])]())[_0x390455([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x390455([0x2e]),'');let _0x1c32d9=_0x390455([0x67]);for(let _0x18c8bd=0x0;_0x18c8bd<_0x4f20d6[_0x390455([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x18c8bd+=0x2){let _0x49a279=window[_0x390455([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4f20d6[_0x390455([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x18c8bd,_0x18c8bd+0x2));_0x49a279>=_0x5306df[_0x390455([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x49a279-=_0x5306df[_0x390455([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1c32d9+=_0x5306df[_0x49a279];}return _0x1c32d9;}function _0x448156(){const _0x1c32a7=_0x572976[_0x390455([0x73,0x70,0x6c,0x69,0x74])](_0x390455([0x2e]));if(0x3!=_0x1c32a7[_0x390455([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x47eb31(_0x1c32a7[0x1]);function _0x47eb31(_0x1d90c3){const _0x212673=_0x2de74c(_0x1d90c3);return _0x212673&&_0x3aacfe()?_0x212673:null;function _0x3aacfe(){const _0x327dfa=_0x212673[_0x390455([0x6a,0x74,0x69])],_0x1a79be=window[_0x390455([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x327dfa[_0x390455([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x327dfa[_0x390455([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xaea09a={..._0x212673,[_0x390455([0x6a,0x74,0x69])]:_0x327dfa[_0x390455([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x327dfa[_0x390455([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xaea09a[_0x390455([0x76,0x63])],_0x2e5960(_0xaea09a)==_0x1a79be;}}}async function _0x1ddc88(){let _0x3e09ab=!0x0;try{const _0x41f1a6=_0x572976[_0x390455([0x73,0x70,0x6c,0x69,0x74])](_0x390455([0x2e])),[_0x3ad6c2,_0x554e04,_0x2fe9a3]=_0x41f1a6;return _0x3cbe5f(_0x3ad6c2),await _0x5b2450(_0x3ad6c2,_0x554e04,_0x2fe9a3),_0x3e09ab;}catch{return!0x1;}function _0x3cbe5f(_0x235d6f){const _0x5401da=_0x2de74c(_0x235d6f);_0x5401da&&_0x5401da[_0x390455([0x61,0x6c,0x67])]==_0x390455([0x45,0x53,0x32,0x35,0x36])||(_0x3e09ab=!0x1);}async function _0x5b2450(_0x5a5a4a,_0x5651d3,_0x240308){const _0x17f1eb=window[_0x390455([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x390455([0x66,0x72,0x6f,0x6d])](_0x30814f(_0x240308),_0x4e44f4=>_0x4e44f4[_0x390455([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x43a8d3=new window[(_0x390455([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x390455([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5a5a4a+_0x390455([0x2e])+_0x5651d3),_0x136d8b=window[_0x390455([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x390455([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x136d8b)return;const _0x4d97d0=await _0x136d8b[_0x390455([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x390455([0x6a,0x77,0x6b]),_0x11fbed,{[_0x390455([0x6e,0x61,0x6d,0x65])]:_0x390455([0x45,0x43,0x44,0x53,0x41]),[_0x390455([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x390455([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x390455([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x136d8b[_0x390455([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x390455([0x6e,0x61,0x6d,0x65])]:_0x390455([0x45,0x43,0x44,0x53,0x41]),[_0x390455([0x68,0x61,0x73,0x68])]:{[_0x390455([0x6e,0x61,0x6d,0x65])]:_0x390455([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4d97d0,_0x17f1eb,_0x43a8d3)||(_0x3e09ab=!0x1);}}function _0x2de74c(_0x4b1d9c){return _0x4b1d9c[_0x390455([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x390455([0x65,0x79]))?JSON[_0x390455([0x70,0x61,0x72,0x73,0x65])](_0x30814f(_0x4b1d9c)):null;}function _0x30814f(_0x2f5606){return window[_0x390455([0x61,0x74,0x6f,0x62])](_0x2f5606[_0x390455([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x390455([0x2b]))[_0x390455([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x390455([0x2f])));}function _0x2e5960(_0x5dee62){let _0x2655a2=0x1505;function _0x42ed80(_0x5bbcae){for(let _0x31b2e9=0x0;_0x31b2e9<_0x5bbcae[_0x390455([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x31b2e9++){const _0x339398=_0x5bbcae[_0x390455([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x31b2e9);_0x2655a2=(_0x2655a2<<0x5)+_0x2655a2+_0x339398,_0x2655a2&=_0x2655a2;}}function _0x1fc8a1(_0x505d62){Array[_0x390455([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x505d62)?_0x505d62[_0x390455([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1fc8a1):_0x505d62&&typeof _0x505d62==_0x390455([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x390455([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x505d62)[_0x390455([0x73,0x6f,0x72,0x74])]()[_0x390455([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4c1d54,_0x7fb6a3])=>{_0x42ed80(_0x4c1d54),_0x1fc8a1(_0x7fb6a3);}):_0x42ed80(window[_0x390455([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x505d62));}return _0x1fc8a1(_0x5dee62),_0x2655a2>>>0x0;}function _0x403f44(_0x56e557){return _0x56e557[_0x390455([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x390455([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x390455([0x30]));}function _0x12c322(_0x2ff2a3){return _0x2ff2a3[_0x390455([0x73,0x70,0x6c,0x69,0x74])]('')[_0x390455([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x390455([0x6a,0x6f,0x69,0x6e])]('');}function _0x2086a9(_0x37b707){return _0x233199[_0x390455([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x390455([0x68,0x61,0x73])](_0x37b707);}function _0x25cd0a(_0x23ff28){return _0x233199[_0x390455([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x390455([0x67,0x65,0x74])](_0x23ff28);}function _0x5b0167(){}function _0x390455(_0x13d9e4){return _0x13d9e4['map'](_0xd58a86=>String['fromCharCode'](_0xd58a86))['join']('');}_0x383ec4(await _0x38e343());}(this);}set['adapter'](_0x581171){if(this['_adapter'])throw new _0x468dd5('track-changes-adapter-already-set',this);this['_adapter']=_0x581171;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x6952bc=!0x1,toJSON:_0x23e883=!0x1}={}){const _0x1eb511=[];for(const _0x560878 of this['_suggestions']['values']())_0x6952bc&&!_0x560878['isInContent']||_0x1eb511['push'](_0x560878);return _0x23e883?_0x1eb511['map'](_0x5495af=>_0x5495af['toJSON']()):_0x1eb511;}['getSuggestion'](_0x182c4c){const _0x41ae24=this['_suggestions']['get'](_0x182c4c);if(!_0x41ae24)throw new _0x468dd5('track-changes-suggestion-not-found',this);return _0x41ae24;}['hasSuggestion'](_0x59f0be){return this['_suggestions']['has'](_0x59f0be);}['addSuggestionData'](_0x2734c0){const {authorId:_0x5a857f,id:_0x533076,originalSuggestionId:_0x423463,attributes:_0x387383}=_0x2734c0,[_0x43182b,_0x2215df]=_0x2734c0['type']['split'](':'),_0x3b5911=this['_suggestions']['get'](_0x533076)||this['_createSuggestion'](_0x43182b,_0x2215df,_0x533076,_0x5a857f,_0x387383,_0x423463);if(this['_addThreadToSuggestion'](_0x3b5911),this['_checkSuggestionCorrectness'](_0x3b5911,_0x43182b,_0x2215df||null,_0x5a857f),_0x3b5911['createdAt']=_0x2734c0['createdAt'],_0x3b5911['_isDataLoaded']=!0x0,_0x387383&&_0x387383['@external']){const _0x2f153c=_0x387383['@external'],_0x23b7ee=this['_getExternalAuthor'](_0x2f153c['authorName']);_0x3b5911['authoredAt']=_0x2f153c['createdAt'],_0x3b5911['author']=_0x23b7ee,_0x3b5911['isExternal']=!0x0;}else _0x3b5911['authoredAt']=_0x2734c0['createdAt'];switch(_0x2734c0['data']&&(_0x3b5911['data']=_0x2734c0['data']),_0x2734c0['attributes']&&(_0x3b5911['attributes']=_0x2734c0['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x3b5911['_saved']=!0x0),this['_suggestionState']['get'](_0x3b5911)){case'notReady':this['_suggestionState']['set'](_0x3b5911,'dataReady');break;case'markerReady':_0x3b5911['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3b5911])),this['_refreshSuggestionsChain'](new Set([_0x3b5911])),this['_suggestionState']['set'](_0x3b5911,'ready'),this['fire']('suggestionLoaded',_0x3b5911)):this['_suggestionState']['set'](_0x3b5911,'removed');}return _0x3b5911;}['acceptSuggestion'](_0x5707cd){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x832c21 of _0x5707cd['getAllAdjacentSuggestions']())_0x832c21['accept']();});});}['discardSuggestion'](_0x48f099){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x308871 of _0x48f099['getAllAdjacentSuggestions']())_0x308871['discard']();});});}['enableCommand'](_0x3d8b37,_0x30ec12){const _0x13eda5=this['editor']['commands']['get'](_0x3d8b37);if(!_0x13eda5)throw new _0x468dd5('track-changes-command-not-found',this,{'commandName':_0x3d8b37});if(this['_enabledCommands']['has'](_0x13eda5))throw new _0x468dd5('track-changes-enable-command-twice',this,{'commandName':_0x3d8b37});this['_enabledCommands']['add'](_0x13eda5),_0x30ec12&&_0x13eda5['on']('execute',(_0x158d6a,_0x3e4626)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x3e4626['length']>0x0&&_0x3e4626[_0x3e4626['length']-0x1]&&_0x3e4626[_0x3e4626['length']-0x1]['forceDefaultExecution']?_0x3e4626['pop']():(_0x158d6a['return']=_0x30ec12((..._0x59a95b)=>_0x13eda5['execute'](..._0x59a95b,{'forceDefaultExecution':!0x0}),..._0x3e4626),_0x158d6a['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x1562ef){let _0x1c6944,_0x3537fd;const _0x22e75e=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x1c6944=_0x1562ef();}catch(_0x47052a){_0x3537fd=_0x47052a;}return _0x22e75e||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x3537fd&&_0x468dd5['rethrowUnexpectedError'](_0x3537fd,this),_0x1c6944;}['markInsertion'](_0x240956,_0x2728bf=null,_0x7c455b={}){if(_0x240956['isCollapsed'])return null;const _0xd87d00=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x7c455b['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x6449b,meta:_0x526ab6}of this['_findSuggestions'](_0x240956,'insertion'))if(_0x526ab6['isOwn']){if(!_0x526ab6['isNextTo']){if(_0x526ab6['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!ie(_0x6449b,_0x7c455b))continue;return _0x6449b;}if(ie(_0x6449b,_0x7c455b))return _0x6449b;this['_breakSuggestionMarker'](_0x6449b,_0x240956['start'],_0x240956['end']);break;}if(_0x2728bf==_0x6449b['subType']&&ie(_0x6449b,_0x7c455b)){const _0x230b6f=_0x6449b['getFirstRange']();return _0x230b6f['start']['isEqual'](_0x240956['end'])?this['_setSuggestionRange'](_0x6449b,this['_model']['createRange'](_0x240956['start'],_0x230b6f['end'])):this['_setSuggestionRange'](_0x6449b,this['_model']['createRange'](_0x230b6f['start'],_0x240956['end'])),_0x6449b;}}const _0x4f3b26=_0x11d0ec(),_0x1242af=_0xd87d00['id'],_0x430481=_0x2728bf?'insertion:'+_0x2728bf:'insertion',_0x3439d7=this['_setSuggestionData']({'id':_0x4f3b26,'type':_0x430481,'createdAt':new Date(),'authorId':_0x1242af,'attributes':_0x7c455b});return this['_addSuggestionMarker'](_0x430481,_0x4f3b26,_0x1242af,_0x240956),_0x3439d7;}['markMultiRangeInsertion'](_0x1fdea8,_0x2bf434='multi',_0x52ff60={}){const _0x4db6b0=this['editor']['plugins']['get']('Users')['me'],_0x1e65b8=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2bf434,'join');this['_trackingSessionId']&&(_0x52ff60['trackingSessionId']=this['_trackingSessionId']);for(const _0x2634be of this['getSuggestions']())if(_0x2634be['author']['id']==_0x4db6b0['id']&&'insertion'==_0x2634be['type']&&_0x2634be['subType']==_0x2bf434&&ie(_0x2634be,_0x52ff60)&&(_0x1e65b8(_0x2634be['getRanges'](),_0x1fdea8)||_0x1e65b8(_0x1fdea8,_0x2634be['getRanges']()))){for(const _0x2679e6 of _0x1fdea8)_0x2634be['addRange'](_0x2679e6);return _0x2634be;}for(const {suggestion:_0x1de70e,meta:_0x33c6cb}of this['_findSuggestions'](_0x1fdea8,'insertion')){if(!_0x33c6cb['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x33c6cb['containsRangeInObject'])continue;if(!ie(_0x1de70e,_0x52ff60))continue;let _0x26e004=!0x0;for(const _0x38499b of _0x1de70e['getRanges']())for(const _0x135d7e of _0x1fdea8)if(!_0x38499b['containsRange'](_0x135d7e)){_0x26e004=!0x1;break;}if(_0x26e004)return _0x1de70e;}const _0x3a2e5c=_0x11d0ec(),_0x205eb5=_0x4db6b0['id'],_0x1023d2='insertion:'+_0x2bf434,_0x3c2504=this['_setSuggestionData']({'id':_0x3a2e5c,'type':_0x1023d2,'createdAt':new Date(),'authorId':_0x205eb5,'attributes':_0x52ff60});for(const _0x2c16a7 of _0x1fdea8)this['_addSuggestionMarker'](_0x1023d2,_0x3a2e5c,_0x205eb5,_0x2c16a7,R['getMultiRangeId']());return _0x3c2504;}['markInlineFormat'](_0x11d605,_0x11dfee,_0x4bd70b=null,_0x3973fa={}){if(_0x4bd70b=_0x4bd70b||Wt(_0x11dfee),_0x11d605['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x3973fa['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3cdeaa=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4bd70b,'accept');return this['forceDefaultExecution'](()=>_0x3cdeaa([_0x11d605],_0x11dfee,_0x3973fa)),null;}const _0x15a4e0=this['editor']['plugins']['get']('Users')['me'],_0x4bafc9=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x2e8428,meta:_0x3f0850}of this['_findSuggestions'](_0x11d605,'insertion'))_0x3f0850['isOwn']&&!_0x3f0850['isInsideObject']&&_0x4bafc9['push'](..._0x2e8428['getRanges']());}const _0x5b946d=function(_0x3efbab,_0x22ccfd){const _0x47efd7=[];for(const _0x5238f0 of _0x22ccfd){const _0x507e71=_0x3efbab['getIntersection'](_0x5238f0);_0x507e71&&_0x47efd7['push'](_0x507e71);}return _0x47efd7;}(_0x11d605,_0x4bafc9),_0x3dbff7=function(_0x33c250,_0x41dfe4){const _0x2d9fc5=[_0x33c250];for(const _0x23b561 of _0x41dfe4){let _0x2a73ff=0x0;for(;_0x2a73ff<_0x2d9fc5['length'];){const _0x4f8aed=_0x2d9fc5[_0x2a73ff]['getDifference'](_0x23b561);_0x2d9fc5['splice'](_0x2a73ff,0x1,..._0x4f8aed),_0x2a73ff+=_0x4f8aed['length'];}}return _0x2d9fc5;}(_0x11d605,_0x4bafc9);_0x5b946d['length']&&this['_model']['change'](()=>{for(const _0x58cc19 of _0x5b946d){const _0x456fd2=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4bd70b,'accept');this['forceDefaultExecution'](()=>_0x456fd2([_0x58cc19],_0x11dfee,_0x3973fa));}});for(const _0x50fedf of _0x3dbff7){let _0x79eb91=null,_0x3cef32=_0x50fedf['start'],_0x422343=_0x50fedf['end'];for(const {suggestion:_0x3d0430,meta:_0x364d52}of this['_findSuggestions'](_0x50fedf,'formatInline')){if(!_0x364d52['isOwn'])continue;if(_0x3d0430['subType']!=_0x4bd70b)continue;if(!ie(_0x3d0430,_0x3973fa))continue;const _0x184ad9=_0x3d0430['getFirstRange']();if(_0x184ad9['containsRange'](_0x50fedf,!0x0))return null;_0x3cef32=_0x3cef32['isBefore'](_0x184ad9['start'])?_0x3cef32:_0x184ad9['start'],_0x422343=_0x422343['isAfter'](_0x184ad9['end'])?_0x422343:_0x184ad9['end'],_0x79eb91?_0x184ad9['start']['isBefore'](_0x79eb91['getFirstRange']()['start'])?(_0x79eb91['removeMarkers'](),_0x79eb91=_0x3d0430):_0x3d0430['removeMarkers']():_0x79eb91=_0x3d0430;}const _0x3c75ef=this['_model']['createRange'](_0x3cef32,_0x422343);if(_0x79eb91)this['_setSuggestionRange'](_0x79eb91,_0x3c75ef);else{const _0x4aa55a=_0x11d0ec(),_0x295c99=_0x15a4e0['id'];this['_setSuggestionData']({'id':_0x4aa55a,'type':'formatInline:'+_0x4bd70b,'data':_0x11dfee,'createdAt':new Date(),'authorId':_0x295c99,'attributes':_0x3973fa}),this['_addSuggestionMarker']('formatInline:'+_0x4bd70b,_0x4aa55a,_0x295c99,_0x3c75ef);}}return null;}['markBlockFormat'](_0x528776,_0x1ac0ea,_0x1b50ec=[],_0x50a0b5=null,_0x5d6e9e={}){_0x1ac0ea['formatGroupId']||(_0x1ac0ea['formatGroupId']=_0x1ac0ea['commandName']),_0x1ac0ea['multipleBlocks']=_0x528776['is']('range'),_0x50a0b5=_0x50a0b5||Wt(_0x1ac0ea);const _0xc912e0=_0x1b50ec['map'](_0x57a2bf=>Zt(_0x57a2bf,this['_model'])),_0x59623a=_0x528776['is']('range')?_0x528776:Zt(_0x528776,this['_model']);if(this['_trackingSessionId']&&(_0x5d6e9e['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x26a44f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x50a0b5,'accept');return this['forceDefaultExecution'](()=>_0x26a44f([_0x59623a],_0x1ac0ea,_0x5d6e9e)),null;}_0xc912e0['push'](_0x59623a);let _0x4a089a=!0x0;for(const _0x3ed95c of _0xc912e0)if(!this['_rangeIsInLocalUserInsertion'](_0x3ed95c)){_0x4a089a=!0x1;break;}if(_0x4a089a&&'always'!==this['_trackFormatChanges']){const _0x7b5b7b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x50a0b5,'accept');return this['forceDefaultExecution'](()=>_0x7b5b7b([_0x59623a],_0x1ac0ea,_0x5d6e9e)),null;}let _0x1388ca=null,_0xfa04bb=_0x59623a['start'],_0x1951cc=_0x59623a['end'];for(const {suggestion:_0x3730ff,meta:_0x560601}of this['_findSuggestions'](_0x59623a,'formatBlock')){if(!_0x560601['isOwn'])continue;if(_0x560601['isNextTo']||_0x560601['containsRangeInObject']||_0x560601['isInsideObject'])continue;if(_0x3730ff['data']['formatGroupId']!=_0x1ac0ea['formatGroupId'])continue;if(!ie(_0x3730ff,_0x5d6e9e))continue;const _0x51fc73=_0x3730ff['getFirstRange']();if(_0x3730ff['subType']==_0x50a0b5){if(_0x51fc73['containsRange'](_0x59623a,!0x0))return null;_0xfa04bb=_0xfa04bb['isBefore'](_0x51fc73['start'])?_0xfa04bb:_0x51fc73['start'],_0x1951cc=_0x1951cc['isAfter'](_0x51fc73['end'])?_0x1951cc:_0x51fc73['end'],_0x1388ca?_0x51fc73['start']['isBefore'](_0x1388ca['getFirstRange']()['start'])?(_0x1388ca['removeMarkers'](),_0x1388ca=_0x3730ff):_0x3730ff['removeMarkers']():_0x1388ca=_0x3730ff;}else{const _0x13ce40=_0x59623a['getIntersection'](_0x51fc73);this['_cutOutSuggestionMarker'](_0x3730ff,_0x13ce40);}}const _0x3bd53a=this['editor']['plugins']['get']('Users')['me'],_0x2bbddb=_0x11d0ec(),_0x205e34=_0x3bd53a['id'];if(_0x1388ca)return this['_setSuggestionRange'](_0x1388ca,this['_model']['createRange'](_0xfa04bb,_0x1951cc)),_0x1388ca;{const _0x5a3027=this['_setSuggestionData']({'id':_0x2bbddb,'type':'formatBlock:'+_0x50a0b5,'data':_0x1ac0ea,'createdAt':new Date(),'authorId':_0x205e34,'attributes':_0x5d6e9e});return this['_addSuggestionMarker']('formatBlock:'+_0x50a0b5,_0x2bbddb,_0x205e34,this['_model']['createRange'](_0xfa04bb,_0x1951cc)),_0x5a3027;}}['markMultiRangeBlockFormat'](_0x558452,_0x47f5d6,_0x45d64d=[],_0x2d0de2=null,_0x3069d7={}){_0x47f5d6['formatGroupId']||(_0x47f5d6['formatGroupId']=_0x47f5d6['commandName']);const _0x37b951=_0x558452[0x0];_0x47f5d6['multipleBlocks']=_0x37b951['is']('range'),_0x2d0de2=_0x2d0de2||Wt(_0x47f5d6);const _0x3cad85=_0x45d64d['map'](_0x2c8192=>Zt(_0x2c8192,this['_model'])),_0x5cb279=_0x37b951['is']('range')?_0x558452:_0x558452['map'](_0x2b32d5=>Zt(_0x2b32d5,this['_model']));if(this['_trackingSessionId']&&(_0x3069d7['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x48e256=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2d0de2,'accept');return this['forceDefaultExecution'](()=>_0x48e256(_0x5cb279,_0x47f5d6,_0x3069d7)),null;}_0x3cad85['push'](..._0x5cb279);let _0x1b470a=!0x0;for(const _0x15eb7f of _0x3cad85)if(!this['_rangeIsInLocalUserInsertion'](_0x15eb7f)){_0x1b470a=!0x1;break;}if(_0x1b470a&&'always'!==this['_trackFormatChanges']){const _0x84d83e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2d0de2,'accept');return this['forceDefaultExecution'](()=>_0x84d83e(_0x5cb279,_0x47f5d6,_0x3069d7)),null;}const _0x5344b1=this['editor']['plugins']['get']('Users')['me'];for(const _0x42f8a8 of this['getSuggestions']()){const _0x4b08ed=_0x42f8a8['data'];if(_0x42f8a8['author']['id']!=_0x5344b1['id'])continue;if('formatBlock'!=_0x42f8a8['type']||_0x4b08ed['formatGroupId']!=_0x47f5d6['formatGroupId'])continue;if(!ie(_0x42f8a8,_0x3069d7))continue;const _0x193bcb=_0x42f8a8['subType']==_0x2d0de2;for(let _0x74cd14=0x0;_0x74cd14<_0x5cb279['length'];_0x74cd14++){const _0x51ebfd=_0x5cb279[_0x74cd14];for(const _0x36946a of _0x42f8a8['getMarkers']()){const _0x3e838e=_0x36946a['getRange']();if(_0x51ebfd['isEqual'](_0x3e838e)){_0x193bcb?(_0x5cb279['splice'](_0x74cd14,0x1),_0x74cd14--):_0x42f8a8['removeMarker'](_0x36946a['name']);break;}}}}if(0x0==_0x5cb279['length'])return null;const _0x121b4e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2d0de2,'join');for(const _0x368bd4 of this['getSuggestions']()){const _0x49da76=_0x368bd4['data'];if(_0x368bd4['author']['id']==_0x5344b1['id']&&('formatBlock'==_0x368bd4['type']&&_0x49da76['formatGroupId']==_0x47f5d6['formatGroupId']&&_0x368bd4['subType']==_0x2d0de2&&ie(_0x368bd4,_0x3069d7)&&(_0x121b4e(_0x368bd4['getRanges'](),_0x5cb279)||_0x121b4e(_0x5cb279,_0x368bd4['getRanges']())))){for(const _0x56713e of _0x5cb279)_0x368bd4['addRange'](_0x56713e);return _0x368bd4;}}const _0x1767ca=_0x11d0ec(),_0x1d2e67=_0x5344b1['id'],_0x21e176='formatBlock:'+_0x2d0de2,_0x42b442=this['_setSuggestionData']({'id':_0x1767ca,'type':_0x21e176,'data':_0x47f5d6,'createdAt':new Date(),'authorId':_0x1d2e67,'attributes':_0x3069d7});for(const _0x3af97a of _0x5cb279)this['_addSuggestionMarker'](_0x21e176,_0x1767ca,_0x1d2e67,_0x3af97a,R['getMultiRangeId']());return _0x42b442;}['markDeletion'](_0x3088cf,_0x3616f6=null,_0x4e8ee9={}){if(_0x3088cf['isCollapsed'])return null;const _0x42f2f9=this['editor']['plugins']['get']('Users')['me'],_0xf846a8=new _0x3337fa(_0x3088cf['start'],_0x3088cf['end']);this['_trackingSessionId']&&(_0x4e8ee9['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x27d5c0,meta:_0x3d129e}of this['_findSuggestions'](_0xf846a8,'insertion'))if(_0x3d129e['isOwn']&&!_0x3d129e['isNextTo']){if(_0x27d5c0['isMultiRange']){const _0x27e65c=_0x27d5c0['getRanges']()['filter'](_0x2bbc8b=>'$graveyard'!=_0x2bbc8b['root']['rootName']);_0x27e65c['every'](_0x214605=>_0xf846a8['containsRange'](_0x214605,!0x0))&&_0x27d5c0['discard']();if(_0x27e65c['some'](_0x4674be=>_0x4674be['containsRange'](_0xf846a8,!0x0))){const _0x25da32=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3616f6,'accept');return this['forceDefaultExecution'](()=>_0x25da32([_0xf846a8],null,_0x4e8ee9)),null;}}else{const _0x3b5481=_0xf846a8['getIntersection'](_0x27d5c0['getFirstRange']());null!==_0x3b5481&&_0x27d5c0['_onDiscard']([_0x3b5481],null,_0x4e8ee9);}}if(_0xf846a8['detach'](),_0xf846a8['isCollapsed']||'$graveyard'==_0xf846a8['root']['rootName'])return null;let _0x45d9d1=null,_0xe895c9=_0xf846a8['start'],_0x3e853f=_0xf846a8['end'];const _0x5f25f3=this['_findSuggestions'](_0xf846a8,'deletion');for(const {suggestion:_0x44467a,meta:_0x4250a1}of _0x5f25f3){const _0x11b8e6=this['_model']['createRange'](_0xe895c9,_0x3e853f);if(_0x4250a1['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4250a1['containsRangeInObject']&&!_0x4250a1['isInsideObject'])){if(_0x44467a['isMultiRange']){if(!ie(_0x44467a,_0x4e8ee9))continue;let _0x453c30=!0x0;for(const _0x2601f5 of _0x44467a['getRanges']()){if(_0x2601f5['containsRange'](_0x11b8e6,!0x0))return _0x44467a;_0x11b8e6['containsRange'](_0x2601f5)||(_0x453c30=!0x1);}_0x453c30&&_0x44467a['discard']();}else{const _0x5cb45d=_0x44467a['getFirstRange']();if(_0x5cb45d['containsRange'](_0x11b8e6,!0x0))return _0x44467a;if(!ie(_0x44467a,_0x4e8ee9)){_0x11b8e6['containsRange'](_0x5cb45d)?_0x44467a['removeMarkers']():_0x5cb45d['containsPosition'](_0xe895c9)?_0xe895c9=_0x5cb45d['end']:_0x5cb45d['containsPosition'](_0x3e853f)&&(_0x3e853f=_0x5cb45d['start']);continue;}_0xe895c9=_0xe895c9['isBefore'](_0x5cb45d['start'])?_0xe895c9:_0x5cb45d['start'],_0x3e853f=_0x3e853f['isAfter'](_0x5cb45d['end'])?_0x3e853f:_0x5cb45d['end'],_0x4e8ee9=Object['assign']({},_0x44467a['attributes']),_0x45d9d1?_0x5cb45d['start']['isBefore'](_0x45d9d1['getFirstRange']()['start'])?(_0x45d9d1['removeMarkers'](),_0x45d9d1=_0x44467a):_0x44467a['removeMarkers']():_0x45d9d1=_0x44467a;}}}if(_0x45d9d1)return this['_setSuggestionRange'](_0x45d9d1,this['_model']['createRange'](_0xe895c9,_0x3e853f)),_0x45d9d1;{const _0x1453fa=_0x11d0ec(),_0x393f88=this['_model']['createRange'](_0xe895c9,_0x3e853f),_0x4b8637=_0x42f2f9['id'],_0x1b28ab=_0x3616f6?'deletion:'+_0x3616f6:'deletion',_0x5100d1=this['_setSuggestionData']({'id':_0x1453fa,'type':_0x1b28ab,'createdAt':new Date(),'authorId':_0x4b8637,'attributes':_0x4e8ee9});return this['_addSuggestionMarker'](_0x1b28ab,_0x1453fa,_0x4b8637,_0x393f88),_0x5100d1;}}['markMultiRangeDeletion'](_0x1a33a6,_0x6a1039='multi',_0x3c4aaa={}){const _0x3ba780=this['editor']['plugins']['get']('Users')['me'],_0x324dac=_0x1a33a6['map'](_0x279960=>new _0x3337fa(_0x279960['start'],_0x279960['end'])),_0x13413a=new Set();this['_trackingSessionId']&&(_0x3c4aaa['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2a9107,meta:_0x1b5d78}of this['_findSuggestions'](_0x324dac,'insertion'))_0x1b5d78['isOwn']&&!_0x1b5d78['isNextTo']&&_0x13413a['add'](_0x2a9107);for(const _0x7c839d of _0x13413a)if(_0x7c839d['isMultiRange']){const _0x359b81=_0x7c839d['getRanges']();(!_0x7c839d['attributes']||!_0x7c839d['attributes']['skipNestingCheck'])&&(_0x359b81['every'](_0x253872=>_0x324dac['some'](_0x56c678=>_0x56c678['containsRange'](_0x253872,!0x0)))&&_0x7c839d['discard']());if(_0x324dac['every'](_0x2bc770=>_0x359b81['some'](_0x4d0a89=>_0x4d0a89['containsRange'](_0x2bc770,!0x0)))){const _0x32650f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x6a1039,'accept');return this['forceDefaultExecution'](()=>_0x32650f(_0x1a33a6,null,_0x3c4aaa)),null;}}else{const _0x297a22=_0x7c839d['getFirstRange']();_0x324dac['some'](_0x3a8350=>_0x3a8350['containsRange'](_0x297a22,!0x0))&&_0x7c839d['discard']();if(_0x324dac['every'](_0x16d935=>_0x297a22['containsRange'](_0x16d935,!0x0))){const _0x46fdd3=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x6a1039,'accept');return this['forceDefaultExecution'](()=>_0x46fdd3(_0x324dac,null,_0x3c4aaa)),null;}}const _0x4794c8=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x6a1039,'join');let _0x52bc89=null;for(const _0x35ea2c of this['getSuggestions']())if(_0x35ea2c['author']['id']==_0x3ba780['id']&&_0x35ea2c['isInContent']&&'deletion'==_0x35ea2c['type']&&_0x35ea2c['subType']==_0x6a1039&&ie(_0x35ea2c,_0x3c4aaa)&&(_0x4794c8(_0x35ea2c['getRanges'](),_0x324dac)||_0x4794c8(_0x324dac,_0x35ea2c['getRanges']()))){if(_0x52bc89){if(_0x35ea2c['commentThread']&&_0x35ea2c['commentThread']['length'])continue;for(const _0x4adb07 of _0x35ea2c['getRanges']())_0x52bc89['isIntersectingWithRange'](_0x4adb07)||_0x52bc89['addRange'](_0x4adb07);_0x35ea2c['removeMarkers']();}else{_0x52bc89=_0x35ea2c;for(const _0x1ee215 of _0x324dac)_0x35ea2c['isIntersectingWithRange'](_0x1ee215)||_0x35ea2c['addRange'](_0x1ee215);}}if(_0x52bc89)return _0x52bc89;_0x13413a['clear']();for(const {suggestion:_0x1b4896,meta:_0xbbb3e6}of this['_findSuggestions'](_0x324dac,'deletion'))_0xbbb3e6['isOwn']&&(this['_mergeNestedSuggestions']||!_0xbbb3e6['containsRangeInObject']&&!_0xbbb3e6['isInsideObject'])&&ie(_0x1b4896,_0x3c4aaa)&&_0x13413a['add'](_0x1b4896);for(const _0x2c3607 of _0x13413a){const _0x1cbbc5=_0x2c3607['getRanges']();if(!_0x3c4aaa||!_0x3c4aaa['skipNestingCheck']){if(_0x324dac['every'](_0xaae1ea=>_0x1cbbc5['some'](_0x5a873a=>_0x5a873a['containsRange'](_0xaae1ea,!0x0))))return _0x2c3607;}(!_0x2c3607['attributes']||!_0x2c3607['attributes']['skipNestingCheck'])&&(_0x1cbbc5['every'](_0x45e6da=>_0x324dac['some'](_0x174bbc=>_0x174bbc['containsRange'](_0x45e6da,!0x0)))&&_0x2c3607['discard']());}const _0x10db9e=_0x11d0ec(),_0x7e847=_0x3ba780['id'],_0xb35ae6='deletion:'+_0x6a1039,_0x13d0f5=this['_setSuggestionData']({'id':_0x10db9e,'type':_0xb35ae6,'createdAt':new Date(),'authorId':_0x7e847,'attributes':_0x3c4aaa});for(const _0x464733 of _0x324dac)_0x464733['detach'](),_0x464733['isCollapsed']||'$graveyard'==_0x464733['root']['rootName']||this['_addSuggestionMarker'](_0xb35ae6,_0x10db9e,_0x7e847,_0x464733,R['getMultiRangeId']());return _0x13d0f5;}['markAttributeChange'](_0x183405,_0x46f159,_0x22157e,_0x4a5a97,_0x520f87){if(_0x183405['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x44e00e=this['editor']['plugins']['get']('Users')['me']['id'],_0x11ebe9=Array['from'](this['_suggestions']['values']())['filter'](_0x224116=>'attribute'==_0x224116['type']&&_0x224116['data']['key']==_0x46f159&&_0x224116['isIntersectingWithRange'](_0x183405));if(this['_trackingSessionId']&&(_0x520f87['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x4c4c74=this['_findSuggestions'](_0x183405,'insertion')['filter'](({meta:_0x590ff2})=>_0x590ff2['isOwn']&&!_0x590ff2['isInsideObject']&&!_0x590ff2['isNextTo'])['map'](({suggestion:_0x42cf0c})=>_0x42cf0c);_0x11ebe9['unshift'](..._0x4c4c74);}const _0x2ad07b=new Map([[_0x183405,_0x22157e]]);for(const _0x18b991 of _0x11ebe9){const _0x16aab9='attribute'==_0x18b991['type']?_0x18b991['data']['oldValue']:void 0x0,_0x128553=_0x18b991['getFirstRange'](),_0x38812c=Array['from'](_0x2ad07b['keys']())['find'](_0x17b7f5=>_0x17b7f5['isIntersecting'](_0x128553));if(!_0x38812c)continue;const _0x4aa3af=_0x38812c['getDifference'](_0x128553);this['_isBlockAttribute'](_0x46f159)&&'insertion'==_0x18b991['type']&&0x0!=_0x4aa3af['length']||(_0x2ad07b['delete'](_0x38812c),_0x4aa3af['forEach'](_0x591333=>{_0x2ad07b['set'](_0x591333,_0x22157e);}),'insertion'!=_0x18b991['type']&&_0x16aab9!=_0x4a5a97&&_0x2ad07b['set'](_0x38812c['getIntersection'](_0x128553),_0x16aab9));}const _0x1bbb1d=[];for(const [_0x4ceaf0,_0x41130c]of _0x2ad07b){const _0x1729c6=_0x11d0ec(),_0x4f03a9={'key':_0x46f159,'oldValue':_0x41130c,'newValue':_0x4a5a97};_0x46f159['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':_0x46f159});const _0x50b218=('attribute:'+(_0x46f159+'|'+Wt({'newValue':_0x4a5a97})))['substring'](0x0,0x3c),_0x1caf72=this['_setSuggestionData']({'id':_0x1729c6,'type':_0x50b218,'data':_0x4f03a9,'createdAt':new Date(),'authorId':_0x44e00e,'attributes':_0x520f87});_0x1bbb1d['push'](_0x1caf72),this['_addSuggestionMarker'](_0x50b218,_0x1729c6,_0x44e00e,_0x4ceaf0);}return _0x1bbb1d;}['enableDefaultAttributesIntegration'](_0x5aeec2){this['enableCommand'](_0x5aeec2,(_0x1f4e78,..._0x1a4f07)=>{this['recordAttributeChanges'](()=>{_0x1f4e78(..._0x1a4f07);});});}['registerBlockAttribute'](_0x55480c){this['_blockAttributeKeys']['add'](_0x55480c);}['registerInlineAttribute'](_0x5ec4aa){this['_inlineAttributeKeys']['add'](_0x5ec4aa);}['startTrackingSession'](_0x4cc7bd){return this['_trackingSessionId']=void 0x0!==_0x4cc7bd?_0x4cc7bd:_0x11d0ec(),this['_trackingSessionId'];}['_getAttributeKey'](_0x36f1c2){return'attribute'==_0x36f1c2['type']?se(_0x36f1c2['subType']):null;}['_applyOperationsAsSuggestions'](_0xa04395){if(0x0==_0xa04395['length'])return;const _0x4d87a3=this['editor'],_0x18860e=_0x4d87a3['plugins']['get'](_0x3346b1);let _0x2a5df7=!0x0;for(const _0x5628c2 in _0xa04395[0x0]){const _0x358b77=_0xa04395[0x0][_0x5628c2];if((_0x358b77 instanceof _0x3b046b||_0x358b77 instanceof _0x1159d1)&&_0x358b77['root']['is']('documentFragment')){_0x2a5df7=!0x1;break;}}_0x4d87a3['model']['change'](_0x4fd03a=>{const _0x29112c=new Set();for(const _0x1bd8c1 of _0xa04395)if(_0x1bd8c1['baseVersion']=_0x2a5df7?_0x4d87a3['model']['document']['version']:null,_0x1bd8c1['isDocumentOperation']=_0x2a5df7,_0x18860e['isMarkedRemoveOperation'](_0x1bd8c1)){const _0x42bc62=Xt(_0x1bd8c1['newRange'],_0x4d87a3['model']);if(_0x2a5df7)this['markDeletion'](_0x42bc62);else{const _0x4c73f0='suggestion:deletion:id:authorId:'+_0x11d0ec();_0x42bc62['root']['markers']['set'](_0x4c73f0,_0x42bc62);}}else switch(_0x1bd8c1['type']){case'rename':{const _0x36d95e=_0x1bd8c1['oldName'],_0x5d22b5=_0x1bd8c1['newName'];if(_0x36d95e==_0x5d22b5)break;_0x4fd03a['batch']['addOperation'](_0x1bd8c1),_0x4d87a3['model']['applyOperation'](_0x1bd8c1);const _0x470ab0='$elementName',_0x2023b0=_0x1bd8c1['position'],_0x32c2d8=_0x4d87a3['model']['createRange'](_0x2023b0,_0x4d87a3['model']['createPositionAt'](_0x2023b0['nodeAfter'],'end'));if(_0x2a5df7)this['markAttributeChange'](_0x32c2d8,_0x470ab0,_0x36d95e,_0x5d22b5,{'groupId':_0x11d0ec()});else{const _0x5357eb='suggestion:attribute:'+_0x470ab0+':id:authorId:'+_0x11d0ec();_0x32c2d8['root']['markers']['set'](_0x5357eb,_0x32c2d8);}break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x480fdf=_0x1bd8c1['oldValue'],_0x210e28=_0x1bd8c1['newValue'];if(_0x480fdf==_0x210e28)break;_0x4fd03a['batch']['addOperation'](_0x1bd8c1),_0x4d87a3['model']['applyOperation'](_0x1bd8c1);const _0x11b0b0=_0x1bd8c1['key'];if(!this['_isRegisteredAttribute'](_0x11b0b0))break;const _0x22336d=Xt(_0x1bd8c1['range'],_0x4d87a3['model']);if(_0x2a5df7)this['markAttributeChange'](_0x22336d,_0x11b0b0,_0x480fdf,_0x210e28,{'groupId':_0x11d0ec()});else{const _0x50d55e='suggestion:attribute:'+_0x11b0b0+':id:authorId:'+_0x11d0ec();_0x22336d['root']['markers']['set'](_0x50d55e,_0x22336d);}break;}case'insert':{_0x4fd03a['batch']['addOperation'](_0x1bd8c1),_0x4d87a3['model']['applyOperation'](_0x1bd8c1);const _0x1fc9bc=_0x1bd8c1['position'],_0x343575=_0x1bd8c1['howMany'],_0xa4e112=Xt(_0x4d87a3['model']['createRange'](_0x1fc9bc,_0x1fc9bc['getShiftedBy'](_0x343575)),_0x4d87a3['model']);if(_0x2a5df7)this['markInsertion'](_0xa4e112);else{const _0xc10d3c='suggestion:insertion:id:authorId:'+_0x11d0ec();_0xa4e112['root']['markers']['set'](_0xc10d3c,_0xa4e112);}break;}case'split':{_0x4fd03a['batch']['addOperation'](_0x1bd8c1),_0x4d87a3['model']['applyOperation'](_0x1bd8c1);const _0x1d8966=_0x1bd8c1['splitPosition'],_0x2cacdf=_0x1bd8c1['moveTargetPosition'],_0x53da62=_0x4d87a3['model']['createRange'](_0x1d8966,_0x2cacdf);if(_0x2a5df7)this['markInsertion'](_0x4d87a3['model']['createRange'](_0x1d8966,_0x2cacdf));else{const _0x174bc8='suggestion:insertion:id:authorId:'+_0x11d0ec();_0x53da62['root']['markers']['set'](_0x174bc8,_0x53da62);}break;}case'move':if(_0x4fd03a['batch']['addOperation'](_0x1bd8c1),_0x4d87a3['model']['applyOperation'](_0x1bd8c1),!_0x2a5df7){const _0x4b34d3=_0x1bd8c1['getMovedRangeStart'](),_0x52ab0b=_0x1bd8c1['howMany'];for(let _0x29a07d=0x0;_0x29a07d<_0x52ab0b;_0x29a07d++){const _0xd4ef6d=_0x4b34d3['getShiftedBy'](_0x29a07d)['nodeAfter'];_0x29112c['add'](_0xd4ef6d);}}break;case'remove':if(_0x2a5df7)_0x4fd03a['batch']['addOperation'](_0x1bd8c1),_0x4d87a3['model']['applyOperation'](_0x1bd8c1);else{const _0x5c559a=_0x1bd8c1['sourcePosition'],_0x195a59=_0x1bd8c1['howMany'],_0x2d21c4=new _0x429fdc(_0x5c559a,_0x195a59);_0x4fd03a['batch']['addOperation'](_0x2d21c4),_0x4d87a3['model']['applyOperation'](_0x2d21c4);}}for(const _0x13a318 of _0x29112c){const _0x92487d=_0x4d87a3['model']['createRangeOn'](_0x13a318),_0x22d578='suggestion:formatBlock:$fakeWrap:id:authorId:'+_0x11d0ec();_0x92487d['root']['markers']['set'](_0x22d578,Xt(_0x92487d,_0x4d87a3['model']));}});}['_setSuggestionRange'](_0x22742d,_0x4c0790){const _0x4f84e4=_0x22742d['getFirstMarker']();this['_model']['change'](_0x4e0329=>{_0x4e0329['updateMarker'](_0x4f84e4,{'range':_0x4c0790});});}['_addThreadToSuggestion'](_0x2edd07){const _0x24e803=_0x2edd07['id'],_0x576a81=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x24e803)||this['_commentsRepository']['addCommentThread']({'channelId':_0x576a81,'threadId':_0x24e803,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3ce677=this['_commentsRepository']['getCommentThread'](_0x24e803);_0x3ce677['unbind']('isRemovable'),_0x3ce677['isRemovable']=!0x1,_0x2edd07['commentThread']=_0x3ce677;}['_checkSuggestionCorrectness'](_0x4e47e8,_0x14a530,_0x14b42e,_0x1c1367){if(_0x4e47e8['type']!=_0x14a530||_0x4e47e8['subType']!=_0x14b42e||_0x4e47e8['creator']['id']!=_0x1c1367)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x468dd5('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x550b22,_0x1d0eaf){const _0x5a462c=_0x550b22['getFirstRange']();if(_0x1d0eaf['isEqual'](_0x5a462c))_0x550b22['removeMarkers']();else{if(_0x5a462c['containsRange'](_0x1d0eaf)){const _0x411785=this['_model']['createPositionAt'](_0x1d0eaf['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x550b22,this['_model']['createRange'](_0x5a462c['start'],_0x411785));const _0x3e3b58=_0x11d0ec(),_0x307927=_0x550b22['creator']['id'],_0xb7e6d1=_0x550b22['type']+':'+_0x550b22['subType'];this['_setSuggestionData']({'id':_0x3e3b58,'type':_0xb7e6d1,'createdAt':new Date(),'authorId':_0x307927,'data':_0x550b22['data'],'attributes':_0x550b22['attributes']});const _0x4fa40c=this['_model']['createPositionAt'](_0x1d0eaf['end']['parent'],'after'),_0x5df838=this['_model']['createRange'](_0x4fa40c,_0x5a462c['end']);this['_addSuggestionMarker'](_0xb7e6d1,_0x3e3b58,_0x307927,_0x5df838);}else{if(_0x5a462c['containsPosition'](_0x1d0eaf['start'])){const _0x4e4321=this['_model']['createPositionAt'](_0x1d0eaf['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x550b22,this['_model']['createRange'](_0x5a462c['start'],_0x4e4321));}else{const _0x4d55e8=this['_model']['createPositionAt'](_0x1d0eaf['end']['parent'],'after');this['_setSuggestionRange'](_0x550b22,this['_model']['createRange'](_0x4d55e8,_0x5a462c['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x472a5b){for(const {suggestion:_0x52b210,meta:_0x4983ad}of this['_findSuggestions'](_0x472a5b,'insertion')){if(!_0x4983ad['isOwn'])continue;const _0x579149=_0x52b210['getRanges']();for(const _0x290c8a of _0x579149)if(!_0x472a5b['getDifference'](_0x290c8a)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x28dff5){return this['editor']['plugins']['get']('Users')['getUser'](_0x28dff5);}['_getExternalAuthor'](_0x33d64d){const _0x2704da=this['editor']['plugins']['get']('Users'),_0x5cf936=_0x4305a1('external:'+_0x33d64d),_0x5d803c=_0x2704da['getUser'](_0x5cf936);return _0x5d803c||_0x2704da['addUser']({'id':_0x5cf936,'name':_0x33d64d});}['_createSuggestion'](_0x5d3b45,_0x30d18b,_0x571518,_0x524bf7,_0x2a5985,_0x46a1a3){const _0x38e4b4=this['_getAuthorFromId'](_0x524bf7);if(!_0x38e4b4)throw new _0x468dd5('track-changes-user-not-found',this,{'authorId':_0x524bf7,'suggestionId':_0x571518});const _0x2f1467=this['_suggestionFactory']['buildSuggestion'](_0x5d3b45,_0x30d18b,_0x571518,_0x38e4b4,_0x2a5985,_0x536cf9=>{this['_updateSuggestionData'](_0x571518,{'attributes':_0x536cf9});const _0x5f4bd8=this['getSuggestion'](_0x571518);this['_joinWithAdjacentSuggestions'](new Set([_0x5f4bd8])),this['_refreshSuggestionsChain'](new Set([_0x5f4bd8]));},_0x46a1a3);return this['listenTo'](_0x2f1467,'accept',()=>{this['_updateSuggestionData'](_0x571518,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x2f1467,'discard',()=>{this['_updateSuggestionData'](_0x571518,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x571518,_0x2f1467),this['_suggestionState']['set'](_0x2f1467,'notReady'),_0x2f1467;}['_splitMarkerName'](_0x185536){const _0x898a98=_0x185536['split'](':');return{'group':_0x898a98[0x0],'type':_0x898a98[0x1],'subType':_0x898a98['length']>=0x5?_0x898a98[0x2]:null,'id':_0x898a98['length']<0x5?_0x898a98[0x2]:_0x898a98[0x3],'authorId':_0x898a98['length']<0x5?_0x898a98[0x3]:_0x898a98[0x4],'markerCount':0x6==_0x898a98['length']?_0x898a98[0x5]:null};}['_breakSuggestionMarker'](_0x473276,_0x110e4f,_0x4a6f4f){const _0x58375a=_0x473276['getFirstRange'](),_0x24f4dd=_0x58375a['start'],_0x5a1442=_0x58375a['end'];this['_setSuggestionRange'](_0x473276,this['_model']['createRange'](_0x24f4dd,_0x110e4f));const _0x72e151=_0x11d0ec(),_0x59314c=_0x473276['creator']['id'],_0x285114=_0x473276['type']+(_0x473276['subType']?':'+_0x473276['subType']:'');this['_setSuggestionData']({'id':_0x72e151,'type':_0x285114,'createdAt':new Date(),'authorId':_0x59314c,'originalSuggestionId':_0x473276['_originalSuggestionId']||_0x473276['id'],'attributes':_0x473276['attributes'],'data':_0x473276['data']});const _0xb2b150=this['_getAttributeKey'](_0x473276);('formatBlock'==_0x473276['type']||_0xb2b150&&this['_isBlockAttribute'](_0xb2b150))&&(_0x4a6f4f=this['_model']['createPositionBefore'](_0x4a6f4f['parent'])),this['_addSuggestionMarker'](_0x285114,_0x72e151,_0x59314c,this['_model']['createRange'](_0x4a6f4f,_0x5a1442));}['_findSuggestions'](_0x42e3a8,_0x1c956b=null){const _0x113cd5=[],_0x40a11f=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x42e3a8)||(_0x42e3a8=[_0x42e3a8]);for(const _0x342365 of this['getSuggestions']()){if(!_0x342365['isInContent'])continue;if(_0x1c956b&&_0x342365['type']!=_0x1c956b)continue;let _0x2754c4=!0x1;for(const _0x20c172 of _0x342365['getRanges']()){for(const _0x5e8595 of _0x42e3a8){const _0x913f77=_0x5e8595['start']['isEqual'](_0x20c172['end'])||_0x5e8595['end']['isEqual'](_0x20c172['start']);if(_0x913f77||_0x5e8595['getIntersection'](_0x20c172)){const _0xbe08e2=_0x5e8595['containsRange'](_0x20c172)&&Jt(this['_model']['schema'],_0x20c172['start'],_0x5e8595),_0x4d58a3=_0x20c172['containsRange'](_0x5e8595)&&Jt(this['_model']['schema'],_0x5e8595['start'],_0x20c172);_0x113cd5['push']({'suggestion':_0x342365,'meta':{'isOwn':_0x40a11f==_0x342365['author'],'isNextTo':_0x913f77,'isInsideObject':_0xbe08e2,'containsRangeInObject':_0x4d58a3}}),_0x2754c4=!0x0;break;}}if(_0x2754c4)break;}}return _0x113cd5;}['_addSuggestionMarker'](_0x41f039,_0x3d4fcd,_0x3eb11e,_0x41a142,_0x597e8f){this['_model']['change'](_0x4081ac=>{let _0x53cd76='suggestion:'+_0x41f039+':'+_0x3d4fcd+':'+_0x3eb11e;_0x597e8f&&(_0x53cd76=_0x53cd76+':'+_0x597e8f),_0x4081ac['addMarker'](_0x53cd76,{'range':_0x41a142,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x414abc){const _0x390871=_0x414abc['previous'],_0x260b9b=_0x414abc['next'];_0x414abc['previous']=null,_0x414abc['next']=null,null!=_0x390871&&_0x390871['next']==_0x414abc&&(_0x390871['next']=_0x260b9b),null!=_0x260b9b&&_0x260b9b['previous']==_0x414abc&&(_0x260b9b['previous']=_0x390871),'ready'==this['_suggestionState']['get'](_0x414abc)&&(this['_suggestionState']['set'](_0x414abc,'removed'),this['fire']('suggestionUnloaded',_0x414abc,_0x390871,_0x260b9b));}['_setSuggestionData'](_0x3df21c){const _0x3219f1=_0x3df21c['id'],_0x4d9ab5=this['addSuggestionData'](_0x3df21c);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x572841=this['editor']['plugins']['get']('PendingActions'),_0x18bf98=_0x4d9ab5['hasComments'],_0x38b098=_0x4d9ab5['subType']?_0x4d9ab5['type']+':'+_0x4d9ab5['subType']:_0x4d9ab5['type'],_0x1728b5=this['editor']['locale'],_0x2a62c1=_0x572841['add'](o(_0x1728b5,'PENDING_ACTION_SUGGESTION')),_0x5bd44c={'id':_0x3219f1,'type':_0x38b098,'hasComments':_0x18bf98,'data':_0x3df21c['data']||null,'originalSuggestionId':_0x3df21c['originalSuggestionId']||null,'attributes':_0x4d9ab5['attributes']};this['_adapter']['addSuggestion'](_0x5bd44c)['then'](_0x67bab9=>{_0x4d9ab5['_saved']=!0x0,_0x572841['remove'](_0x2a62c1),_0x67bab9&&_0x67bab9['createdAt']&&(this['_suggestions']['get'](_0x3219f1)['createdAt']=_0x67bab9['createdAt']);})['catch'](_0x4ee402=>{throw _0x1d0796('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x4d9ab5['discard']();}),_0x4d9ab5['stopListening'](),this['_suggestions']['delete'](_0x4d9ab5['id']),this['_suggestionState']['delete'](_0x4d9ab5),_0x4ee402;});}return _0x4d9ab5;}['_isBlockAttribute'](_0x3681ce){return this['_blockAttributeKeys']['has'](_0x3681ce);}['_isInlineAttribute'](_0xe54d58){return this['_inlineAttributeKeys']['has'](_0xe54d58);}['_updateSuggestionData'](_0x4e37f5,_0x2bc2bf){const _0x37fb1b=this['editor']['plugins']['get']('PendingActions'),_0xe4bc33=this['getSuggestion'](_0x4e37f5);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0xe4bc33['_saved']){const _0x1c38a9=_0x37fb1b['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4e37f5,_0x2bc2bf)['then'](()=>{_0x37fb1b['remove'](_0x1c38a9);});}else _0xe4bc33['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4e37f5,_0x2bc2bf);});}}['_getSuggestionData'](_0x19106f){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x468dd5('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x19106f);}['_handleNewSuggestionMarker'](_0x29b7f2){const {id:_0x5839b1,type:_0x3d0e1b,subType:_0x30dc11,authorId:_0x594bc7}=this['_splitMarkerName'](_0x29b7f2),_0x368d3a=this['_suggestions']['get'](_0x5839b1)||this['_createSuggestion'](_0x3d0e1b,_0x30dc11,_0x5839b1,_0x594bc7,{});switch(this['_checkSuggestionCorrectness'](_0x368d3a,_0x3d0e1b,_0x30dc11,_0x594bc7),this['_suggestionState']['get'](_0x368d3a)){case'notReady':this['_getSuggestionData'](_0x5839b1)['then'](_0x5c1064=>{let _0x1064d7=Promise['resolve']();_0x5c1064['hasComments']&&(_0x1064d7=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x5839b1})),_0x1064d7['then'](()=>{this['addSuggestionData'](_0x5c1064)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x368d3a,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x5839b1,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x368d3a,'ready'),this['fire']('suggestionLoaded',_0x368d3a);break;case'ready':this['fire']('suggestionChanged',_0x368d3a);}return _0x368d3a['addMarkerName'](_0x29b7f2),_0x368d3a;}['_refreshSuggestionsChain'](_0x25db39){const _0xb704a1=Array['from'](_0x25db39),_0x4fc432=_0xb704a1['filter'](_0x15e6b2=>'attribute'==_0x15e6b2['type']);this['_refreshAttributeSuggestionsChain'](_0x4fc432);const _0x44d969=_0xb704a1['filter'](_0x22720d=>!_0x22720d['isMultiRange']&&'attribute'!=_0x22720d['type']),_0x29aca2=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3539cd=>!_0x3539cd['isMultiRange']&&'attribute'!=_0x3539cd['type']),_0x44b7bc=_0x29aca2['filter'](_0x3219d4=>!_0x25db39['has'](_0x3219d4)),_0x18a90f=new Map(_0x29aca2['map'](_0x58d89c=>[_0x58d89c,this['_suggestionFactory']['getSuggestionCallback'](_0x58d89c['type'],_0x58d89c['subType'],'chain')])),_0x2d7c0b=new Map(_0x29aca2['map'](_0xecf48c=>[_0xecf48c,_0xecf48c['getFirstRange']()])),_0x139b7b=new Set(),_0xe7927=new Set();for(let _0x3d8236=0x0;_0x3d8236<_0x44d969['length'];_0x3d8236++)_0x4888e5(_0x44d969[_0x3d8236],_0x44d969,_0x3d8236+0x1);for(let _0x2b8b15=0x0;_0x2b8b15<_0x44d969['length'];_0x2b8b15++)_0x4888e5(_0x44d969[_0x2b8b15],_0x44b7bc,0x0);const _0x3a5cdd=new Set();for(let _0x31fdf3=0x0;_0x31fdf3<_0x44d969['length'];_0x31fdf3++){const _0x39d5d0=_0x44d969[_0x31fdf3];!_0xe7927['has'](_0x39d5d0)&&_0x39d5d0['previous']&&(_0x3a5cdd['add'](_0x39d5d0['previous']),_0x39d5d0['previous']['next']===_0x39d5d0&&(_0x39d5d0['previous']['next']=null),_0x39d5d0['previous']=null),!_0x139b7b['has'](_0x39d5d0)&&_0x39d5d0['next']&&(_0x3a5cdd['add'](_0x39d5d0['next']),_0x39d5d0['next']['previous']===_0x39d5d0&&(_0x39d5d0['next']['previous']=null),_0x39d5d0['next']=null);}function _0x4888e5(_0x3bacc5,_0x47537b,_0x43e095){for(let _0x2bf80e=_0x43e095;_0x2bf80e<_0x47537b['length'];_0x2bf80e++){const _0x28e40a=_0x236217(_0x3bacc5,_0x47537b[_0x2bf80e]);_0x28e40a&&(_0x28e40a[0x0]['next']=_0x28e40a[0x1],_0x28e40a[0x1]['previous']=_0x28e40a[0x0],_0x139b7b['add'](_0x28e40a[0x0]),_0xe7927['add'](_0x28e40a[0x1]));}}function _0x236217(_0x575a34,_0x40f354){if(_0x575a34['author']['id']!==_0x40f354['author']['id'])return null;const _0x452ce9=_0x18a90f['get'](_0x575a34)(_0x575a34,_0x40f354,_0x2d7c0b['get'](_0x575a34),_0x2d7c0b['get'](_0x40f354));if(!_0x452ce9)return null;return _0x18a90f['get'](_0x40f354)(_0x575a34,_0x40f354,_0x2d7c0b['get'](_0x575a34),_0x2d7c0b['get'](_0x40f354))?_0x452ce9[0x1]['commentThread']&&_0x452ce9[0x1]['commentThread']['length']?null:_0x452ce9:null;}_0x3a5cdd['size']&&this['_refreshSuggestionsChain'](_0x3a5cdd);}['_refreshAttributeSuggestionsChain'](_0x2e5c8d){if(0x0==_0x2e5c8d['length'])return;const _0x39899b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x10bd5e=>'attribute'==_0x10bd5e['type']&&_0x10bd5e['_isDataLoaded']),_0xbe9e42=[],_0xeabfbb=new Map();for(const _0x5830f6 of _0x39899b){const _0x128dec=_0x4305a1(_0x5830f6['attributes']);_0xeabfbb['has'](_0x128dec)||(_0xeabfbb['set'](_0x128dec,_0xbe9e42['length']),_0xbe9e42['push']([]));const _0x2ba808=_0xeabfbb['get'](_0x128dec);_0xbe9e42[_0x2ba808]['push'](_0x5830f6);}!(function(){_0xbe9e42['sort']((_0x58eb19,_0x33d177)=>{const _0x3c3789=_0x58eb19[0x0]['createdAt'],_0x75c84a=_0x33d177[0x0]['createdAt'];return _0x3c3789==_0x75c84a?_0x58eb19[0x0]['attributes']['groupId']<_0x33d177[0x0]['attributes']['groupId']?-0x1:0x1:_0x3c3789<_0x75c84a?-0x1:0x1;});for(const _0x901349 of _0xbe9e42)_0x901349['sort']((_0x337013,_0x2247af)=>_0x337013['id']<_0x2247af['id']?-0x1:0x1);}());for(let _0x285180=0x0;_0x285180<_0xbe9e42['length'];_0x285180++){if(0x0==_0xbe9e42[_0x285180]['length'])continue;const _0x2e60de=[];for(let _0x222cd5=_0x285180+0x1;_0x222cd5<_0xbe9e42['length'];_0x222cd5++)0x0!=_0xbe9e42[_0x222cd5]['length']&&_0x451160(_0xbe9e42[_0x285180],_0xbe9e42[_0x222cd5])&&_0x2e60de['push'](_0x222cd5);for(const _0x34be3e of _0x2e60de)_0xbe9e42[_0x285180]=_0xbe9e42[_0x285180]['concat'](_0xbe9e42[_0x34be3e]),_0xbe9e42[_0x34be3e]=[];}for(const _0x315d9c of _0xbe9e42)for(let _0x379330=0x0;_0x379330<_0x315d9c['length'];_0x379330++){const _0x34bff6=_0x315d9c[_0x379330+0x1]||null;_0x315d9c[_0x379330]['next']!==_0x34bff6&&(_0x315d9c[_0x379330]['next']=_0x34bff6);}for(const _0x1dfffc of _0xbe9e42)for(let _0x14082f=0x0;_0x14082f<_0x1dfffc['length'];_0x14082f++){const _0x4eaf81=_0x1dfffc[_0x14082f-0x1]||null;_0x1dfffc[_0x14082f]['previous']!==_0x4eaf81&&(_0x1dfffc[_0x14082f]['previous']=_0x4eaf81);}function _0x451160(_0x57c1e8,_0x7b619b){if(_0x57c1e8[0x0]['attributes']['groupId']!==_0x7b619b[0x0]['attributes']['groupId']&&_0x57c1e8[0x0]['author']!==_0x7b619b[0x0]['author'])return!0x1;if(!function(_0x463494,_0x1bb939){if(!_0x463494['hasComments']&&!_0x1bb939['hasComments'])return!0x0;if(_0x463494['hasComments']&&_0x1bb939['hasComments'])return!0x1;if(_0x463494['hasComments']&&_0x1bb939['createdAt']<_0x463494['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x1bb939['hasComments']&&_0x463494['createdAt']<_0x1bb939['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x57c1e8[0x0],_0x7b619b[0x0]))return!0x1;const _0x26c1c1=Gt(_0x57c1e8[0x0]['attributes'],['groupId','trackingSessionId']),_0x2df65e=Gt(_0x7b619b[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x246997(_0x26c1c1,_0x2df65e))return!0x1;if(_0x57c1e8[0x0]['attributes']['groupId']==_0x7b619b[0x0]['attributes']['groupId'])return!0x0;if(_0x57c1e8[0x0]['attributes']['trackingSessionId']!==_0x7b619b[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x57c1e8['every'](_0xfcaebd=>_0x7b619b['some'](_0x4ea50c=>_0xfcaebd['getFirstRange']()['isEqual'](_0x4ea50c['getFirstRange']())))&&_0x7b619b['every'](_0x264cc6=>_0x57c1e8['some'](_0x4f1215=>_0x264cc6['getFirstRange']()['isEqual'](_0x4f1215['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x72897f){const _0x4c2342=Array['from'](_0x72897f),_0x45fa5a=this['getSuggestions']({'skipNotAttached':!0x0}),_0x305943=_0x45fa5a['filter'](_0x428f98=>!_0x72897f['has'](_0x428f98)),_0x19278a=new Map(_0x4c2342['map'](_0x30b02e=>[_0x30b02e,this['_suggestionFactory']['getSuggestionCallback'](_0x30b02e['type'],_0x30b02e['subType'],'join')])),_0x1008b6=new Map(_0x45fa5a['map'](_0x42c5af=>[_0x42c5af,_0x42c5af['getRanges']()]));for(let _0x1f4cb8=0x0;_0x1f4cb8<_0x4c2342['length'];_0x1f4cb8++){if(_0x406739(this,_0x4c2342[_0x1f4cb8],_0x4c2342,_0x1f4cb8+0x1))return!0x0;}for(let _0x4b326e=0x0;_0x4b326e<_0x4c2342['length'];_0x4b326e++){if(_0x406739(this,_0x4c2342[_0x4b326e],_0x305943,0x0))return!0x0;}return!0x1;function _0x406739(_0x112e9c,_0x5efac0,_0x71e548,_0x4476f8){for(let _0x1649eb=_0x4476f8;_0x1649eb<_0x71e548['length'];_0x1649eb++){const _0xd86c8=_0x71e548[_0x1649eb];if(_0xd86c8['type']!==_0x5efac0['type']||_0xd86c8['author']['id']!==_0x5efac0['author']['id']||_0xd86c8['subType']!==_0x5efac0['subType'])continue;if(!ee(_0x5efac0,_0xd86c8))continue;if('attribute'==_0x5efac0['type']&&_0x5efac0['data']['oldValue']!=_0xd86c8['data']['oldValue'])continue;if('attribute'==_0x5efac0['type']&&_0x112e9c['_isBlockAttribute'](_0x5efac0['data']['key']))continue;if('formatBlock'==_0x5efac0['type']){const _0x3f7d0f=_0x112e9c['editor']['model'],_0x2fff93=_0x5efac0['getContainedElement']();if(_0x2fff93&&(_0x3f7d0f['schema']['isObject'](_0x2fff93)||_0x3f7d0f['schema']['isLimit'](_0x2fff93)))continue;}const _0x3b892f=_0x19278a['get'](_0x5efac0),_0x2c2dee=_0x1008b6['get'](_0x5efac0),_0x31edd5=_0x1008b6['get'](_0xd86c8),_0x2aa876=_0x5efac0['commentThread']&&_0x5efac0['commentThread']['length'],_0x10f64b=_0xd86c8['commentThread']&&_0xd86c8['commentThread']['length'];if(!_0x2aa876&&_0x3b892f(_0x31edd5,_0x2c2dee))return _0x112e9c['_joinSuggestions'](_0xd86c8,_0x5efac0),_0x1008b6['delete'](_0x5efac0),!0x0;if(!_0x10f64b&&_0x3b892f(_0x2c2dee,_0x31edd5))return _0x112e9c['_joinSuggestions'](_0x5efac0,_0xd86c8),_0x1008b6['delete'](_0xd86c8),!0x0;}return!0x1;}}['_joinSuggestions'](_0x3b9af4,_0x435f07){if(_0x3b9af4['isMultiRange']){for(const _0xd3c4aa of _0x435f07['getRanges']())_0x3b9af4['addRange'](_0xd3c4aa);}else{const _0x317d8a=_0x435f07['getFirstRange']()['end'];this['_setSuggestionRange'](_0x3b9af4,this['_model']['createRange'](_0x3b9af4['getFirstRange']()['start'],_0x317d8a));}_0x435f07['removeMarkers']();}['_getMarkerAnnouncementText'](_0x3eb0d9,_0x11737c,_0x3a49f4){const _0x2e9725=_0x3eb0d9['startsWith']('format')||_0x3eb0d9['startsWith']('attribute')?'FORMATTING':_0x3eb0d9['toUpperCase']();return o(this['editor']['locale'],_0x11737c+'_'+_0x2e9725+'_SUGGESTION_ANNOUNCEMENT',_0x3a49f4);}['_initAriaMarkerChangeAnnouncements'](){const _0x399f00=this['editor'];if(!_0x399f00['ui'])return;const {ariaLiveAnnouncer:_0x440c63}=_0x399f00['ui'];_0xfbab00(this['_model'],({left:_0x3ae78e,entered:_0x5cd6ab})=>{for(const _0x2bcc1b of _0x3ae78e){const {group:_0x3f7e54,type:_0x612666}=this['_splitMarkerName'](_0x2bcc1b['name']);if('suggestion'===_0x3f7e54){_0x440c63['announce'](this['_getMarkerAnnouncementText'](_0x612666,'LEAVE'));break;}}for(const _0x37dca8 of _0x5cd6ab){const {group:_0xe593b2,type:_0x433a76}=this['_splitMarkerName'](_0x37dca8['name']);if('suggestion'===_0xe593b2){_0x440c63['announce'](this['_getMarkerAnnouncementText'](_0x433a76,'ENTER',_0x4b3b35(_0x137a65)));break;}}});}['_processAttributeChanges'](_0x392f4e){if(this['_recordAttributeSuggestions'])return!0x1;const _0x239520=this['editor'],_0x4cec98=_0x239520['model']['document']['differ']['getChanges']();if(0x0==_0x4cec98['length'])return!0x1;const _0x1e412a=[],_0x520c44=_0x4cec98['filter'](_0x1157ea=>'attribute'==_0x1157ea['type']),_0x369e27=_0x4cec98['filter'](_0x38671=>'insert'==_0x38671['type']&&'$text'!=_0x38671['name']),_0x54b123=_0x4cec98['filter'](_0x54d105=>'remove'==_0x54d105['type']&&'$text'!=_0x54d105['name']);for(const _0xac78ee of _0x520c44)_0x1e412a['push']({'key':_0xac78ee['attributeKey'],'newValue':_0xac78ee['attributeNewValue'],'oldValue':_0xac78ee['attributeOldValue'],'range':Yt(_0xac78ee['range'],_0x239520['model'])});for(const _0x45dcf7 of _0x369e27){const _0x1d8d61=_0x54b123['find'](_0x151d67=>_0x151d67['position']['isEqual'](_0x45dcf7['position']));_0x1d8d61&&_0x1e412a['push']({'key':m,'newValue':_0x45dcf7['name'],'oldValue':_0x1d8d61['name'],'range':_0x239520['model']['createRangeOn'](_0x45dcf7['position']['nodeAfter'])});}return 0x0!=_0x1e412a['length']&&this['_reduceExistingSuggestions'](_0x392f4e,_0x1e412a);}['_processAttributeSuggestions'](_0x233884){let _0x343caf=!0x1;const _0x1fb1c5=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3e37ee=>_0x3e37ee['data']['newRange']&&_0x3e37ee['name']['startsWith']('suggestion:attribute:'));for(const _0x2120af of _0x1fb1c5){const {subType:_0x52ec59,id:_0x512b9b}=this['_splitMarkerName'](_0x2120af['name']),_0x5af471=_0x52ec59['split']('|')[0x0];for(const _0x2a3117 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x2a3117['id']!=_0x512b9b&&'attribute'==_0x2a3117['type']&&_0x2a3117['data']&&_0x2a3117['data']['key']==_0x5af471&&_0x2a3117['getFirstRange']()['isIntersecting'](_0x2120af['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x2a3117,_0x2120af['data']['newRange'],_0x233884),_0x343caf=!0x0);}return _0x343caf;}['recordAttributeChanges'](_0x1f1072){this['_recordAttributeSuggestions']=!0x0,_0x1f1072();}['_isRegisteredAttribute'](_0x3cf475){const _0xfd64eb=this['_isBlockAttribute'](_0x3cf475),_0x43abf5=this['_isInlineAttribute'](_0x3cf475);return _0xfd64eb||_0x43abf5;}['_reduceExistingSuggestions'](_0x3ff074,_0x399349){if(0x0==_0x399349['length'])return!0x1;let _0x4bb277=!0x1;for(const _0x1bbcbc of _0x399349){const _0x33eb1f=this['_findSuggestions'](_0x1bbcbc['range'],'attribute')['filter'](_0x6162aa=>!_0x6162aa['meta']['isNextTo'])['map'](_0x1fb611=>_0x1fb611['suggestion']),_0x322570=_0x4305a1({'newValue':_0x1bbcbc['newValue']});_0x33eb1f['filter'](_0x29a456=>{const [_0x4bac90,_0x2b827c]=_0x29a456['subType']['split']('|');return _0x4bac90==_0x1bbcbc['key']&&_0x2b827c!=_0x322570;})['forEach'](_0xd8e6aa=>{this['_reduceSuggestionAttributeRange'](_0xd8e6aa,_0x1bbcbc['range'],_0x3ff074),_0x4bb277=!0x0;});}return _0x4bb277;}['_reduceSuggestionAttributeRange'](_0x5d810c,_0x134c4b,_0x5acad0){const _0x47236d=_0x5d810c['getFirstRange']()['getDifference'](_0x134c4b);0x0!==_0x47236d['length']?0x1!==_0x47236d['length']?this['_breakSuggestionMarker'](_0x5d810c,_0x134c4b['start'],_0x134c4b['end']):this['_setSuggestionRange'](_0x5d810c,_0x47236d[0x0]):_0x5acad0['removeMarker'](_0x5d810c['getFirstMarker']());}}class Lt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x8b4f25){this['_editor']=_0x8b4f25,this['_model']=_0x8b4f25['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x15a3fe,_0x33bff8,_0x3aa7bf,_0x5db697,_0x13563c,_0x3d2bcf,_0x4385e1){return new R(this['_model'],{'type':_0x15a3fe,'subType':_0x33bff8,'id':_0x3aa7bf,'originalSuggestionId':_0x4385e1,'author':_0x5db697,'creator':_0x5db697,'attributes':_0x13563c,'onAttributesChange':_0x3d2bcf,'onAccept':(..._0x2a9b8c)=>this['getSuggestionCallback'](_0x15a3fe,_0x33bff8,'accept')(..._0x2a9b8c),'onDiscard':(..._0x1d06c7)=>this['getSuggestionCallback'](_0x15a3fe,_0x33bff8,'discard')(..._0x1d06c7)});}['registerCustomCallback'](_0x5cd59c,_0x3ed969,_0x39fc42,_0x5373dd){const _0x314423=_0x5cd59c+':'+_0x3ed969+':'+_0x39fc42;this['_customCallbacks']['set'](_0x314423,_0x5373dd);}['getSuggestionCallback'](_0xb49767,_0x32d4a2,_0x5e0117){const _0xdec80a=_0xb49767+':'+_0x32d4a2+':'+_0x5e0117;return this['_customCallbacks']['get'](_0xdec80a)||this['_defaultCallbacks']['get'](_0xb49767+':'+_0x5e0117);}['_registerDefaultCallbacks'](){const _0x12335c=()=>!0x1,_0x4ac145=_0x4fb71f=>{_0x4fb71f['sort']((_0x1a09e4,_0x2cca3)=>_0x1a09e4['start']['isBefore'](_0x2cca3['start'])?0x1:-0x1),this['_model']['change'](_0x4b911d=>{for(const _0x5c6654 of _0x4fb71f){let _0xcf0fbf;_0xcf0fbf=_0x5c6654['end']['isAtEnd']&&_0x5c6654['end']['parent']==_0x5c6654['start']['nodeAfter']?_0x4b911d['createSelection'](_0x5c6654['start']['nodeAfter'],'on'):_0x4b911d['createSelection'](_0x5c6654),this['_model']['deleteContent'](_0xcf0fbf,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x45aec5=(_0x1ecf38,_0x3db36e)=>{_0x3db36e&&this['_model']['change'](_0x1fa4f5=>{const {commandName:_0x538357,commandParams:_0x107730=[]}=_0x3db36e,_0x535502=_0x1ecf38['map'](_0x3f9b8d=>(Kt(_0x3f9b8d)&&(_0x3f9b8d=this['_model']['createRange'](_0x3f9b8d['end'])),_0x3f9b8d))['filter'](_0x4cd69f=>'$graveyard'!==_0x4cd69f['root']['rootName']);if(_0x535502['length']<0x1)return;const _0x851a20=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x4523c6=>_0x3337fa['fromRange'](_0x4523c6));_0x1fa4f5['setSelection'](_0x535502);for(const _0x3f8481 of this['_editor']['commands']['commands']())_0x3f8481['refresh']();_0x107730['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x538357,..._0x107730);const _0xc7b910=_0x851a20['filter'](_0x324f2b=>'$graveyard'!=_0x324f2b['root']['rootName']);_0xc7b910['length']>0x0&&_0x1fa4f5['setSelection'](_0xc7b910);for(const _0x5149c6 of _0x851a20)_0x5149c6['detach']();});},_0x5f5151=(_0x532cde,_0xf21bdc)=>0x1==_0x532cde['length']&&0x1==_0xf21bdc['length']&&_0x532cde[0x0]['end']['isEqual'](_0xf21bdc[0x0]['start']),_0x4310de=(_0x2447bb,_0x13827c,_0x434e88,_0x151380)=>te(_0x2447bb,_0x13827c,_0x434e88,_0x151380)?[_0x2447bb,_0x13827c]:te(_0x13827c,_0x2447bb,_0x151380,_0x434e88)?[_0x13827c,_0x2447bb]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x12335c),this['_defaultCallbacks']['set']('insertion:discard',_0x4ac145),this['_defaultCallbacks']['set']('insertion:join',_0x5f5151),this['_defaultCallbacks']['set']('insertion:chain',_0x4310de),this['_defaultCallbacks']['set']('deletion:accept',_0x4ac145),this['_defaultCallbacks']['set']('deletion:discard',_0x12335c),this['_defaultCallbacks']['set']('deletion:join',_0x5f5151),this['_defaultCallbacks']['set']('deletion:chain',_0x4310de),this['_defaultCallbacks']['set']('formatInline:accept',_0x45aec5),this['_defaultCallbacks']['set']('formatInline:discard',_0x12335c),this['_defaultCallbacks']['set']('formatInline:join',_0x5f5151),this['_defaultCallbacks']['set']('formatInline:chain',_0x12335c),this['_defaultCallbacks']['set']('formatBlock:accept',_0x45aec5),this['_defaultCallbacks']['set']('formatBlock:discard',_0x12335c),this['_defaultCallbacks']['set']('formatBlock:join',_0x5f5151),this['_defaultCallbacks']['set']('formatBlock:chain',_0x12335c),this['_defaultCallbacks']['set']('attribute:accept',_0x12335c),this['_defaultCallbacks']['set']('attribute:discard',(_0x5afb1f,_0x267bca)=>{if(!_0x267bca)return;const _0x4a9e40=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x5344b0=>{if(_0x267bca['key']==m)for(const _0x14c8dc of _0x5afb1f){const _0x320a34=_0x14c8dc['start']['nodeAfter'],_0xe38beb=_0x267bca['oldValue'];_0x5344b0['rename'](_0x320a34,_0xe38beb);}else{if(_0x4a9e40['_isBlockAttribute'](_0x267bca['key'])){for(const _0x5bcf5e of _0x5afb1f)void 0x0!==_0x267bca['oldValue']?_0x5344b0['setAttribute'](_0x267bca['key'],_0x267bca['oldValue'],_0x5bcf5e['start']['nodeAfter']):_0x5344b0['removeAttribute'](_0x267bca['key'],_0x5bcf5e['start']['nodeAfter']);}else{for(const _0x740830 of _0x5afb1f)_0x267bca['oldValue']?_0x5344b0['setAttribute'](_0x267bca['key'],_0x267bca['oldValue'],_0x740830):_0x5344b0['removeAttribute'](_0x267bca['key'],_0x740830);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x5f5151);}}function Jt(_0x3a7738,_0x157b77,_0x1b569e){for(const _0x8ba6d0 of _0x157b77['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x8ba6d0['root']==_0x8ba6d0)return!0x1;if(!_0x1b569e['containsItem'](_0x8ba6d0))return!0x1;if(_0x3a7738['isObject'](_0x8ba6d0)||_0x3a7738['isLimit'](_0x8ba6d0))return!0x0;}return!0x1;}function Kt(_0x31d6d8){return _0x31d6d8['end']['parent']==_0x31d6d8['start']['nodeAfter']&&_0x31d6d8['end']['isAtStart'];}function Ht(_0xbf022f,_0x149bcf,_0x501c19,_0x351911){const _0x4f47df=_0x3053bb=>!_0x3053bb['item']['is']('$textProxy')&&!_0x351911['isObject'](_0x3053bb['item']),_0x183c42=_0xbf022f['start']['getLastMatchingPosition'](_0x4f47df),_0x278080=_0xbf022f['end']['getLastMatchingPosition'](_0x4f47df,{'direction':'backward'});return(!_0xbf022f['start']['isEqual'](_0x183c42)||!_0xbf022f['end']['isEqual'](_0x278080))&&(_0x183c42['isBefore'](_0x278080)?_0x501c19['updateMarker'](_0x149bcf,{'range':_0x501c19['createRange'](_0x183c42,_0x278080)}):_0x501c19['removeMarker'](_0x149bcf),!0x0);}function Wt(_0x10b6a1){return _0x4305a1(_0x10b6a1);}function qt(_0x16de65){const _0x30c892=_0x16de65['start']['nodeAfter'];return _0x30c892&&_0x30c892['is']('element');}function zt(_0x432ad5){return Kt(_0x432ad5)||function(_0x2bc5ec){return _0x2bc5ec['start']['parent']==_0x2bc5ec['end']['nodeBefore']&&_0x2bc5ec['start']['isAtEnd'];}(_0x432ad5);}function Qt(_0x34e44b,_0x441b60){try{const _0x2c29c5=_0x34e44b['getRange']();for(const _0x5aeaf0 of _0x441b60)if(_0x34e44b!==_0x5aeaf0&&_0x2c29c5&&_0x2c29c5['isIntersecting'](_0x5aeaf0['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Xt(_0x4ba547,_0x45ab35){const _0x3b6b66=_0x4ba547['end']['nodeBefore'];if(_0x3b6b66&&_0x3b6b66['is']('element')&&_0x45ab35['schema']['isBlock'](_0x3b6b66)&&!_0x45ab35['schema']['isObject'](_0x3b6b66)){const _0x32fa46=_0x45ab35['createPositionAt'](_0x3b6b66,'end');return _0x45ab35['createRange'](_0x4ba547['start'],_0x32fa46);}return _0x4ba547;}function Yt(_0xda1bb1,_0x10d369){return null==_0xda1bb1['end']['nodeBefore']&&_0xda1bb1['end']['parent']==_0xda1bb1['start']['nodeAfter']?Zt(_0xda1bb1['start']['nodeAfter'],_0x10d369):_0xda1bb1;}function Zt(_0xccf1e7,_0x34239b){const _0x1eeb95=_0x34239b['schema']['isObject'](_0xccf1e7)||_0x34239b['schema']['isSelectable'](_0xccf1e7);return _0x34239b['createRange'](_0x34239b['createPositionAt'](_0xccf1e7,'before'),_0x1eeb95?_0x34239b['createPositionAfter'](_0xccf1e7):_0x34239b['createPositionAt'](_0xccf1e7,'end'));}function te(_0x2fce65,_0x45967d,_0x1017bb,_0xceeb18){return!!ee(_0x2fce65,_0x45967d)&&_0x1017bb['end']['isEqual'](_0xceeb18['start']);}function ee(_0x5c6d17,_0x5821a0){if(!_0x5c6d17['_isDataLoaded']||!_0x5821a0['_isDataLoaded'])return!0x1;const _0x559680=new Set(Object['keys'](_0x5c6d17['attributes'])),_0x298ba0=new Set(Object['keys'](_0x5821a0['attributes']));if(_0x559680['delete']('groupId'),_0x298ba0['delete']('groupId'),0x0==_0x559680['size']&&0x0==_0x298ba0['size'])return!0x0;if(_0x559680['size']!=_0x298ba0['size'])return!0x1;const _0x566559={..._0x5c6d17['attributes']},_0x3539d8={..._0x5821a0['attributes']};return delete _0x566559['groupId'],delete _0x3539d8['groupId'],JSON['stringify'](_0x566559)==JSON['stringify'](_0x3539d8);}function ie(_0x41b9da,_0x1990a9){const _0x549c1f=ne(_0x41b9da['attributes']),_0x4f3434=ne(_0x1990a9);if(!_0x41b9da['_isDataLoaded'])return!0x1;for(const _0x4ad9f7 of Object['keys'](_0x4f3434))if(!_0x246997(_0x549c1f[_0x4ad9f7],_0x4f3434[_0x4ad9f7]))return!0x1;return!0x0;}function ne(_0x176231){const _0x477f3d=Object['assign']({},_0x176231);return delete _0x477f3d['skipNestingCheck'],delete _0x477f3d['tablePasteChainId'],_0x477f3d;}function se(_0xe52cc3){return _0xe52cc3['split']('|')[0x0];}class be extends/* #__PURE__ -- @preserve */
26
+ _0x4f4774(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x4d89d7,_0x5653b1,_0x3e1383,_0x2c68e1){super(),this['model']=_0x5653b1,this['view']=_0x3e1383,this['commentThreadController']=_0x2c68e1,this['_editor']=_0x4d89d7,this['_acceptCommand']=_0x4d89d7['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x4d89d7['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x4ada6c,_0x33760c)=>_0x4ada6c||_0x33760c),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x4c5f99=>_0x4c5f99&&this['_editor']['model']['canEditAt'](_0x5653b1['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x438042=>_0x438042&&this['_editor']['model']['canEditAt'](_0x5653b1['getRanges']())),this['_pendingAction']=null,_0x3e1383['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x3e1383,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x3e1383,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x3e1383,'change:isDirty',()=>{_0x3e1383['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 _0x4e40fe=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x4e40fe);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x1d63b6{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x20c1f0,_0x47ce64,_0x35d950,_0x287fe3){super(_0x20c1f0),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x50f24c(_0x20c1f0,o(_0x20c1f0,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x47ce64['authoredAt']),this['bind']('authoredAt')['to'](_0x47ce64),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',_0x47ce64,'authoredAt',this,'descriptionParts',(_0x5dd2d3,_0x1af38e,_0x38288d)=>{const _0x34c7d5=_0x38288d['map'](_0xb35625=>ls(_0xb35625['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x5dd2d3-0x1,_0x47ce64['author']['name'],_0x1af38e?_0x287fe3['formatDateTime'](_0x1af38e):'',new DOMParser()['parseFromString'](_0x34c7d5,'text/html')['body']['textContent']]);}),this['focusables']=new _0x1ce55e(),this['focusTracker']=new _0x2a9e06(),this['keystrokes']=new _0x3b6563(),this['focusCycler']=new _0x23df48({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x4898ee=>_0x4898ee['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x47ce64,this['_localUser']=_0x35d950,this['_config']=_0x287fe3,_0x287fe3['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x4865d1(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0xd43d4d}=this['_config'];this['commentsListView']=new _0xd43d4d(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',_0x1bbd1a=>_0x1bbd1a+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x352e0e,_0x2c2bcd)=>_0x352e0e||!!_0x2c2bcd);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x5e0742}=this['_config'],_0x46e1fd=new _0x5e0742(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x1edefb=_0x46e1fd['commentInputView'];return _0x46e1fd['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x1edefb,'value',(_0x12d0db,_0x2ddad7,_0x21228a)=>!!_0x21228a||_0x12d0db&&!_0x2ddad7),_0x1edefb['on']('submit',(_0x495662,_0x37c7e5)=>{this['fire']('addComment',_0x37c7e5),_0x1edefb['editor']['setData']('');}),_0x1edefb['on']('cancel',()=>this['focus']()),_0x1edefb['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x46e1fd;}}class Te extends ii{['suggestionView'];['_descriptionElement'];constructor(_0xc8a628,_0x41c0bf,_0x119877,_0x6eab95){super(_0xc8a628,_0x41c0bf,_0x119877,_0x6eab95),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x143e4a=>_0x143e4a&&_0x143e4a[0x0]?_0x143e4a[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3b955b,_0xe48e87)=>{let _0x49033a='';for(const _0x4bbb6a of _0x3b955b)_0x49033a+='<p>'+ls(_0x4bbb6a['content'],_0x4bbb6a['color'])+'</p>';return _0xe48e87?_0x49033a:_0x91b2dc(_0x49033a,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x6eab95['SuggestionView'](_0xc8a628,_0x41c0bf,{'formatDateTime':_0x6eab95['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 _0x7e2734=this['bindTemplate'],_0x30de71=[this['suggestionView']];return this['commentsListView']&&_0x30de71['push'](this['commentsListView']),this['commentThreadInputView']&&_0x30de71['push'](this['commentThreadInputView']),_0x30de71['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x7e2734['if']('isActive','ck-suggestion-wrapper--active'),_0x7e2734['to']('type',_0x364c41=>'ck-suggestion-'+_0x364c41),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':_0x7e2734['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x30de71};}['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 Le extends _0x1d63b6{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x3ece0b,_0x5bcaa8,_0x4f5ad9){super(_0x3ece0b),this['_model']=_0x5bcaa8,this['_config']=_0x4f5ad9,this['set']('description',''),this['bind']('authoredAt')['to'](_0x5bcaa8),this['acceptButton']=this['_createButton'](o(_0x3ece0b,'Accept\x20suggestion'),_0x5f0bda,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x3ece0b,'Discard\x20suggestion'),_0x4a8863,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x4fa98d(_0x3ece0b,_0x5bcaa8['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x1ce55e([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x2a9e06(),this['keystrokes']=new _0x3b6563(),this['focusCycler']=new _0x23df48({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x4e3dd6=>_0x4e3dd6['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x5c5f76=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x5c5f76['innerHTML']=this['description'],this['on']('change:description',(_0x164912,_0x18237a,_0x4718a8)=>{_0x5c5f76['innerHTML']=_0x4718a8;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x12bc3e=this['bindTemplate'],_0x4460d6=[{'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':_0x12bc3e['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x12bc3e['to']('authoredAt',_0x35ea03=>this['_config']['formatDateTime'](_0x35ea03))}]}]},{'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']&&_0x4460d6['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':_0x4460d6}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x116452,_0x4253b7,_0x378e23,_0x2f0c30,_0x837f4d){const _0x5604c0=new _0xb9a8c6(this['locale']);return _0x5604c0['set']({'label':_0x116452,'icon':_0x4253b7,'tooltip':!0x0,'tooltipPosition':_0x837f4d}),_0x5604c0['extendTemplate']({'attributes':{'class':_0x378e23}}),_0x5604c0['on']('execute',()=>{this['fire'](_0x2f0c30,this['_model']['id']);}),_0x5604c0;}['_setupKeyboardNavigation'](){const _0x2f4d09=this['element'];this['keystrokes']['listenTo'](_0x2f4d09);for(const _0x44d838 of this['focusables'])this['focusTracker']['add'](_0x44d838['element']),this['keystrokes']['listenTo'](_0x44d838['element']);this['keystrokes']['set']('enter',(_0x17db26,_0x49982e)=>{_0x2f4d09===_0x17db26['target']&&(this['focusCycler']['focusFirst'](),_0x49982e());}),this['keystrokes']['set']('esc',(_0x5b80c5,_0x45f379)=>{_0x2f4d09!==_0x5b80c5['target']&&(this['focus'](),_0x45f379());});}}class u extends _0x9da42{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x168de4,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x409adb){super(_0x409adb),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x15529e=this['editor']['config'];_0x15529e['define']('trackChanges.SuggestionThreadView',Te),_0x15529e['define']('trackChanges.SuggestionView',Le),_0x15529e['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x15529e['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x420d89,_0x4d1b88){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x5e217d,_0x383703]of this['_handleControllerBuffer']){const _0x5597af=this['_suggestionToController']['has'](_0x5e217d);_0x5597af||_0x383703?_0x5597af&&_0x383703&&this['_destroyController'](_0x5e217d):this['_initializeController'](_0x5e217d);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x420d89,_0x4d1b88);}['init'](){const _0x4e29ec=this['editor'],_0x17fa31=_0x4e29ec['plugins']['get']('TrackChangesEditing'),_0xc7bc95=_0x4e29ec['plugins']['get']('Annotations'),_0x3594d4=_0x4e29ec['plugins']['get']('EditorAnnotations'),_0x49d831=_0x4e29ec['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x3594d4['addSourceCollector'](()=>{const _0x235d67=[];for(const [_0x22b9fc,_0x4fa9ef]of Array['from'](this['_suggestionToController'])){const _0x1feabd=_0x22b9fc['getAllAdjacentSuggestions'](),_0x5e9254=[];for(const _0x39303b of _0x1feabd){if(!_0x39303b['isInContent'])continue;if(_0x39303b['isMultiRange']){_0x5e9254['push'](..._0x39303b['getRanges']());continue;}const _0x51599d=_0x39303b['getFirstRange']();if(_0x5e9254['length']>0x0){const _0x33f192=_0x5e9254[0x0]['getJoined'](_0x51599d);if(_0x33f192){_0x5e9254[0x0]=_0x33f192;continue;}}_0x5e9254['push'](_0x51599d);}_0x235d67['push']([_0x4fa9ef['view'],_0x5e9254]);}return _0x235d67;}),this['listenTo'](_0x17fa31,'suggestionLoaded',(_0x331070,_0x2f18e9)=>{this['listenTo'](_0x2f18e9,'change:previous',(_0x4cbd67,_0x5897e5,_0x31b9de,_0xdf829d)=>{_0x2f18e9['isInContent']&&(null==_0x31b9de?(this['_updateController'](_0xdf829d['head']),this['_handleSuggestionControllerDelayed'](_0x2f18e9,!0x1)):(this['_updateController'](_0x31b9de['head']),null==_0xdf829d&&this['_handleSuggestionControllerDelayed'](_0x2f18e9,!0x0)));}),null!==_0x2f18e9['previous']?this['_updateController'](_0x2f18e9['head']):this['_handleSuggestionControllerDelayed'](_0x2f18e9,!0x1);}),this['listenTo'](_0x17fa31,'suggestionUnloaded',(_0x14f645,_0x293df7,_0x534b01)=>{this['stopListening'](_0x293df7,'change:previous'),this['_handleControllerBuffer']['delete'](_0x293df7),this['_suggestionToController']['has'](_0x293df7)&&this['_destroyController'](_0x293df7),_0x534b01&&this['_updateController'](_0x534b01['head']);}),this['listenTo'](_0x17fa31,'suggestionChanged',(_0x4f1a45,_0x5e6d4a)=>{this['_updateController'](_0x5e6d4a);}),this['listenTo'](_0xc7bc95,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x49d831,'addComment',(_0x215099,{threadId:_0x2dd505,isFromAdapter:_0x3f905e})=>{if(_0x3f905e||!_0x17fa31['hasSuggestion'](_0x2dd505))return;const _0x1af318=_0x17fa31['getSuggestion'](_0x2dd505);this['_suggestionToController']['get'](_0x1af318)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xba736d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x468617;for(const _0x19f27b in _0xba736d){const _0x3c51e2=_0x19f27b,_0x1e7d4d=_0xba736d[_0x3c51e2];if('trackChangesLicenseKeyValid'==_0x1e7d4d||'trackChangesLicenseKeyInvalid'==_0x1e7d4d||'trackChangesLicenseKeyExpired'==_0x1e7d4d||'trackChangesLicenseKeyDomainLimit'==_0x1e7d4d||'trackChangesLicenseKeyNotAllowed'==_0x1e7d4d||'trackChangesLicenseKeyEvaluationLimit'==_0x1e7d4d||'trackChangesLicenseKeyTrialLimit'==_0x1e7d4d||'trackChangesLicenseKeyUsageLimit'==_0x1e7d4d){delete _0xba736d[_0x3c51e2],_0x468617=_0x1e7d4d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x468617&&_0xba736d['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x468617&&_0xba736d['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x468617&&_0xba736d['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x468617&&_0xba736d['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x468617&&_0xba736d['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x468617&&_0xba736d['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x468617&&_0xba736d['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x256401){const _0x132cd6=this['_suggestionToController']['get'](_0x256401);if(!_0x132cd6)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x132cd6['view'])||null;}['getSuggestionForAnnotation'](_0x175bd5){const _0x4274d5=this['_viewToController']['get'](_0x175bd5['innerView']);return _0x4274d5?_0x4274d5['model']:null;}['_refreshActiveMarkers'](){const _0x1b1faa=this['editor']['plugins']['get']('Annotations'),_0x5c0ec6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x97b074=Array['from'](_0x1b1faa['activeAnnotations'],_0x59b0d2=>_0x59b0d2['innerView'])['filter'](_0x2dd793=>this['_viewToController']['has'](_0x2dd793)),_0x3da6d1=[];for(const _0x9dabb7 of _0x97b074){const _0x4c5acb=this['_viewToController']['get'](_0x9dabb7)['model']['getAllAdjacentSuggestions']();_0x3da6d1['push'](..._0x4c5acb['reduce']((_0x2b8d83,_0x215cfa)=>[..._0x2b8d83,..._0x215cfa['getMarkerNames']()],[]));}_0x5c0ec6['activeMarkers']=_0x3da6d1;}['_addUIComponentsToFactory'](){const _0x592c99=this['editor'],_0x2bb28a=_0x592c99['locale'],_0x401cb5=o(_0x2bb28a,'Track\x20changes'),_0x26dcfe=new _0x2775a6([{'type':'switchbutton','model':new _0x3c7e2b({'withText':!0x0,'isToggleable':!0x0,'label':_0x401cb5,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x3c7e2b({'withText':!0x0,'label':o(_0x2bb28a,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3c7e2b({'withText':!0x0,'label':o(_0x2bb28a,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3c7e2b({'withText':!0x0,'label':o(_0x2bb28a,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3c7e2b({'withText':!0x0,'label':o(_0x2bb28a,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x592c99['plugins']['has']('TrackChangesPreview')&&_0x26dcfe['addMany']([{'type':'separator'},{'type':'button','model':new _0x3c7e2b({'withText':!0x0,'label':o(_0x2bb28a,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x262db4 of _0x26dcfe)if(ve(_0x262db4)){const _0x1c0a1e=_0x592c99['commands']['get'](_0x262db4['model']['commandName']);_0x262db4['model']['bind']('isOn','isEnabled')['to'](_0x1c0a1e,'value','isEnabled');}_0x592c99['ui']['componentFactory']['add']('trackChanges',_0x233c79=>this['_createToolbarButton'](_0x233c79,_0x26dcfe,_0x401cb5)),_0x592c99['ui']['componentFactory']['add']('menuBar:trackChanges',_0xbf75a6=>this['_createMenuBarMenu'](_0xbf75a6,_0x26dcfe,_0x401cb5));}['_createToolbarButton'](_0x1926ee,_0x370445,_0x2424cb){const _0x297d42=_0x255980(_0x1926ee,_0x20b1b5),_0xaf337f=this['editor']['commands']['get']('trackChanges');_0x297d42['buttonView']['set']({'tooltip':_0x2424cb,'label':_0x2424cb,'icon':_0x3996e9}),_0x297d42['buttonView']['bind']('isOn')['to'](_0xaf337f,'value'),_0x297d42['buttonView']['on']('execute',()=>{_0xaf337f['execute'](),this['editor']['editing']['view']['focus']();}),_0x13329d(_0x297d42,_0x370445,{'role':'menu'});const _0x11e2d8=[];for(const _0x290382 of _0x370445)ve(_0x290382)&&_0x11e2d8['push'](this['editor']['commands']['get'](_0x290382['model']['commandName']));const _0x2128c3=_0x297d42['buttonView'];return _0x2128c3['actionView']['unbind']('isEnabled'),_0x2128c3['arrowView']['unbind']('isEnabled'),_0x2128c3['actionView']['bind']('isEnabled')['to'](_0xaf337f,'isEnabled'),_0x2128c3['arrowView']['bind']('isEnabled')['toMany'](_0x11e2d8,'isEnabled',(..._0x5aafb6)=>_0x5aafb6['some'](_0x4fb8fd=>_0x4fb8fd)),_0x297d42['on']('execute',_0x47fb70=>{this['editor']['execute'](_0x47fb70['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x297d42;}['_createMenuBarMenu'](_0x9728e6,_0x96f75f,_0x531918){const _0x150767=new _0xa3f7da(_0x9728e6),_0x2c83f0=this['editor']['commands']['get']('trackChanges');_0x150767['buttonView']['set']({'label':_0x531918,'icon':_0x3996e9});const _0x32075b=new _0xd8c139(_0x9728e6);for(const _0x33522f of _0x96f75f){if('separator'==_0x33522f['type']){_0x32075b['items']['add'](new _0xb476a3(_0x9728e6));continue;}const _0x288d3f=new _0x34ec5d(_0x9728e6,_0x150767),_0x8722d8=new _0x2b6ac8(_0x9728e6),_0x51c123=_0x33522f['model'];_0x8722d8['bind'](...Object['keys'](_0x51c123))['to'](_0x51c123),_0x8722d8['delegate']('execute')['to'](_0x150767),_0x8722d8['on']('execute',()=>{this['editor']['execute'](_0x51c123['commandName']),this['editor']['editing']['view']['focus']();}),_0x288d3f['children']['add'](_0x8722d8),_0x32075b['items']['add'](_0x288d3f);}return _0x150767['bind']('isEnabled')['to'](_0x2c83f0,'isEnabled'),_0x150767['panelView']['children']['add'](_0x32075b),_0x150767;}['_initializeController'](_0x20695d){const _0x1f7ba0=this['editor'],_0xa17d7b=_0x1f7ba0['config'],_0x23b119=_0x1f7ba0['plugins']['get']('Annotations'),_0x169812=_0x1f7ba0['plugins']['get']('CommentsRepository'),_0x4a7a0e=_0x1f7ba0['plugins']['get']('EditorAnnotations'),_0x5d4bcf=_0x1f7ba0['plugins']['get'](_0x168de4)['me'],_0x1a3d2b=_0xa17d7b['get']('trackChanges')['SuggestionThreadView'],_0x4fa0ba=_0xa17d7b['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x435482,CommentThreadInputView:_0x1e11dd}=_0x1f7ba0['plugins']['get']('CommentsUI');let _0x2d3b5b,_0x272223,_0x15cca8;this['_annotationViews']['has'](_0x20695d['id'])?(_0x272223=this['_annotationViews']['get'](_0x20695d['id']),_0x2d3b5b=_0x272223['mainView']):(_0x2d3b5b=new _0x1a3d2b(_0x1f7ba0['locale'],_0x20695d,_0x5d4bcf,{'disableComments':this['_disableComments'],'editorConfig':{..._0xa17d7b['get']('comments.editorConfig'),'licenseKey':_0xa17d7b['get']('licenseKey')},'maxCommentsWhenCollapsed':_0xa17d7b['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0xa17d7b['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0xa17d7b['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x105df6(_0xa17d7b['get']('locale'),_0x1f7ba0['locale']),'CommentView':_0xa17d7b['get']('comments')['CommentView'],'CommentsListView':_0x435482,'CommentThreadInputView':_0x1e11dd,'SuggestionView':_0x4fa0ba}),_0x2d3b5b['suggestionView']['acceptButton']['on']('execute',()=>{_0x1f7ba0['editing']['view']['focus']();}),_0x2d3b5b['suggestionView']['discardButton']['on']('execute',()=>{_0x1f7ba0['editing']['view']['focus']();}),_0x272223=_0x23b119['createAnnotationView'](this['editor']['locale'],_0x2d3b5b),_0x272223['bind']('isDirty')['to'](_0x2d3b5b,'isDirty'),_0x272223['bind']('length')['to'](_0x2d3b5b),_0x272223['bind']('type')['to'](_0x2d3b5b,'type',_0x430626=>'suggestion-'+_0x430626),_0x2d3b5b['on']('escape',()=>{_0x15cca8['fire']('escape');}),this['_annotationViews']['set'](_0x20695d['id'],_0x272223));const _0x2e9497=_0x169812['createCommentThreadController'](_0x20695d['commentThread'],_0x2d3b5b),_0x402446=new be(_0x1f7ba0,_0x20695d,_0x2d3b5b,_0x2e9497),_0x2b41d8=_0x20695d['getAllAdjacentSuggestions']()['filter'](_0x144bb9=>_0x144bb9['isInContent']);_0x2d3b5b['descriptionParts']=_0x1f7ba0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x2b41d8),this['_suggestionToController']['set'](_0x20695d,_0x402446),this['_viewToController']['set'](_0x2d3b5b,_0x402446);const _0x1e874b=()=>{const _0x510bbd=[],_0x319bbe=_0x20695d['getAllAdjacentSuggestions']()['filter'](_0x476d45=>_0x476d45['isInContent']);for(const _0x4ecf10 of _0x319bbe)_0x510bbd['push'](..._0x4ecf10['getMarkers']());return _0x19d7d1(_0x1f7ba0['editing'],_0x510bbd);};_0x15cca8=_0x23b119['createAnnotation']({'view':_0x272223,'target':_0x1e874b,'type':()=>'suggestion-'+_0x402446['view']['type'],'isVisible':!!_0x1e874b()}),_0x169812['_bindAnnotationToEditors'](_0x2d3b5b,_0x15cca8),_0x23b119['add'](_0x15cca8),_0x4a7a0e['registerAnnotation'](_0x15cca8);}['_destroyController'](_0x2e4b31){const _0xbe4d5d=this['editor']['plugins']['get']('CommentsRepository'),_0x10d101=this['editor']['plugins']['get']('Annotations'),_0x42549a=this['_suggestionToController']['get'](_0x2e4b31),_0x5f3121=_0x42549a['view'],_0x5eb118=_0x10d101['getByInnerView'](_0x5f3121);_0xbe4d5d['_unbindEditors'](_0x5f3121),_0x5eb118&&_0x10d101['remove'](_0x5eb118),this['_suggestionToController']['delete'](_0x2e4b31),this['_viewToController']['delete'](_0x5f3121),_0x42549a['destroy']();}['_updateController'](_0x553c9c){if(!_0x553c9c['isInContent']||!this['_suggestionToController']['has'](_0x553c9c))return;const _0x55c563=this['editor']['plugins']['get']('TrackChangesEditing'),_0x517b7e=this['_suggestionToController']['get'](_0x553c9c),_0x1befd8=_0x553c9c['getAllAdjacentSuggestions']();_0x517b7e['view']['descriptionParts']=_0x55c563['descriptionFactory']['getDescriptions'](_0x1befd8);}['destroy'](){for(const _0x343085 of this['_suggestionToController']['keys']())this['_destroyController'](_0x343085);for(const _0x3b3c5c of this['_annotationViews']['values']())_0x3b3c5c['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ve(_0x86c2ad){return'model'in _0x86c2ad;}class Ve extends _0x9da42{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x45c5f5){this['editor']['plugins']['get'](d)['adapter']=_0x45c5f5;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x341b70){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x341b70);}['getSuggestions']({skipNotAttached:_0x1af666=!0x1,toJSON:_0x1874af=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x1af666,'toJSON':_0x1874af});}['getSuggestion'](_0x4ae006){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x4ae006);}}const p=['Pagination'];class ce extends _0x9da42{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x233a3a=this['editor'];if(_0x233a3a['config']['define']('trackChangesData.editorCreator',_0x683595=>{const _0x584cc9=_0x233a3a['model']['document']['getRootNames']()['reduce']((_0x2fd2b0,_0x28bea5)=>(_0x2fd2b0[_0x28bea5]='',_0x2fd2b0),{});return _0x233a3a['constructor']['create'](_0x584cc9,_0x683595);}),'function'!=typeof _0x233a3a['config']['get']('trackChangesData')['editorCreator'])throw new _0x468dd5('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x3630b0){return P(this['editor'],!0x0,_0x3630b0);}['getDataWithDiscardedSuggestions'](_0x5604c6){return P(this['editor'],!0x1,_0x5604c6);}}class ze extends _0x9da42{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5e9870){function _0x76e0be(_0x9cd30f){return _0x9cd30f['map'](_0x25e550=>String['fromCharCode'](_0x25e550))['join']('');}super(_0x5e9870),this['result']='end',_0x5e9870[_0x76e0be([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x76e0be([0x76,0x69,0x65,0x77])][_0x76e0be([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x76e0be([0x61,0x75,0x74,0x6f]),_0x5e9870[_0x76e0be([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x76e0be([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x76e0be([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x76e0be([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x76e0be([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 Ke(_0xcee1b3){return void 0x0!==_0xcee1b3['getRootsAttributes'];}async function P(_0x4a9438,_0x34d879,_0x4449c8){const _0x170e83=_0x4c82f3(_0x4a9438,p);_0x170e83['plugins']['push'](d,ze),_0x170e83['rootsAttributes']=Ke(_0x4a9438)?_0x4a9438['getRootsAttributes']():void 0x0;const _0x17cdd0=document['createDocumentFragment'](),_0x2362b4=_0x4a9438['config']['get']('trackChangesData')['editorCreator'],_0x3cd7bd=await _0x2362b4(_0x170e83,()=>function(_0x1e213d){const _0x3e07e5=document['createElement']('div');return _0x1e213d['appendChild'](_0x3e07e5),_0x3e07e5;}(_0x17cdd0));!function(_0x4b14c0,_0x5edc7d){const _0x3c91cf=_0x4b14c0['model']['document']['getRootNames']()['reduce']((_0x47f49c,_0x57e729)=>(_0x47f49c[_0x57e729]=_0x4b14c0['data']['get']({'rootName':_0x57e729}),_0x47f49c),{}),_0xde6e81=_0x4b14c0['plugins']['get']('Users')['users']['map'](_0x1fa2c7=>({'id':_0x1fa2c7['id'],'name':_0x1fa2c7['name']})),_0x5c40d3=_0x4b14c0['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1e8117=_0x4b14c0['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x208bd7=_0x5edc7d['plugins']['get']('Users'),_0x246bb6=_0x5edc7d['plugins']['get']('TrackChangesEditing'),_0x5dc604=_0x5edc7d['plugins']['get']('CommentsRepository');for(const _0x443d84 of _0x5dc604['getCommentThreads']())_0x443d84['remove']();for(const _0x16524d of _0xde6e81)_0x208bd7['getUser'](_0x16524d['id'])||_0x208bd7['addUser'](_0x16524d);_0x208bd7['me']||_0x208bd7['useAnonymousUser']();for(const _0x4bc0c5 of _0x1e8117)_0x5dc604['addCommentThread'](_0x4bc0c5);for(const _0x1becfb of _0x5c40d3)_0x246bb6['addSuggestionData'](_0x1becfb);_0x5edc7d['data']['set'](_0x3c91cf);}(_0x4a9438,_0x3cd7bd),_0x3cd7bd['execute'](_0x34d879?'acceptAllSuggestions':'discardAllSuggestions');const _0x21e138=Ke(_0x3cd7bd)?_0x3cd7bd['getFullData'](_0x4449c8):_0x3cd7bd['data']['get'](_0x4449c8);return await _0x3cd7bd['destroy'](),_0x21e138;}class _e extends _0x1d63b6{['options'];constructor(_0x4abdf2,_0x432c48){super(_0x4abdf2),this['options']=_0x432c48,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'](_0x200c61,_0x3546b3){if(!this['element'])return;const _0x551f54=[];for(const [_0x484ad5,_0x527f2a]of _0x200c61){const _0x42a39e=document['createElement']('div');_0x42a39e['setAttribute']('data-ck-root-name',_0x484ad5),_0x42a39e['className']=_0x527f2a['classes']+'\x20ck-track-changes-preview__root-container',_0x42a39e['innerHTML']=_0x527f2a['content'],_0x551f54['push'](_0x42a39e);}_0x3546b3(this['element'],_0x551f54),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class ae extends _0x3efd96{constructor(_0x40df3e){super(_0x40df3e),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x17622a=this['editor'],_0x11d3ff=_0x17622a['locale'],_0x578871=_0x17622a['plugins']['get']('Dialog');let _0x20ce64;const _0x1e2bca=function(_0x492816){const _0x38f22a={};if('editables'in _0x492816['ui']['view']){for(const [_0x5be4d1,_0x2c50bb]of Object['entries'](_0x492816['ui']['view']['editables']))_0x38f22a[_0x5be4d1]=_0x2c50bb['element'];}else _0x38f22a[_0x492816['model']['document']['getRootNames']()[0x0]]=_0x492816['ui']['view']['editable']['element'];return _0x38f22a;}(_0x17622a),_0x2e87c8=function(_0x5e7b45){let _0x51f633=0x0;for(const _0x3e9f3a of Object['values'](_0x5e7b45))_0x51f633=Math['max'](_0x51f633,_0x3e9f3a['getBoundingClientRect']()['width']);let _0x1e880e=0x0;for(const _0x622ace of Object['values'](_0x5e7b45))_0x1e880e+=_0x622ace['getBoundingClientRect']()['height'];const _0x4ac640=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x36ebce=Math['min'](_0x1e880e,_0x4ac640);return{'width':_0x51f633,'height':_0x36ebce};}(_0x1e2bca);_0x578871['show']({'id':'finalContentPreview','title':o(_0x11d3ff,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new _e(_0x11d3ff,{'dialogRects':_0x2e87c8}),'onHide':()=>{_0x20ce64['detachFromDom']();},'onShow':()=>{_0x17622a['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x16a150=>{const _0x2888e9=this['_standarizeRootsData'](_0x16a150,_0x17622a,_0x1e2bca);_0x578871['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x2888e9,_0x17622a['config']['get']('trackChanges.preview.renderFunction'));}),_0x20ce64=new _0x5cfcff(_0x11d3ff,[_0x578871['view']]),_0x20ce64['attachToDom'](),_0x20ce64['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x17622a['once']('destroy',()=>{_0x20ce64['detachFromDom']();});const _0x467b02=_0x578871['view']['headerView']['class'];_0x578871['view']['headerView']['class']=_0x467b02?_0x467b02+'\x20ck-reset_all':'ck-reset_all',_0x578871['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x578871['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x1333b7=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x2c5423=_0x1333b7['previewMode'],_0x3e0758={};if('$labels'===_0x2c5423){for(const _0x57bc32 of _0x1333b7['getMergeFieldsIds']())_0x3e0758[_0x57bc32]=_0x1333b7['getLabel'](_0x57bc32)||_0x57bc32;}else{const _0x14fe39='$defaultValues'===_0x2c5423?_0x1333b7['getDefaultValues']():_0x1333b7['getDataSetValues'](_0x2c5423,!0x0);for(const _0x7bb035 of Object['entries'](_0x14fe39)){const [_0xfc3544,_0x10f101]=_0x7bb035;_0x3e0758[_0xfc3544]=null!==_0x10f101?_0x10f101:_0x1333b7['getLabel'](_0xfc3544)||_0xfc3544;}}return{'mergeFieldsData':_0x3e0758};}['_standarizeRootsData'](_0x423401,_0xe47aaa,_0x1b388a){let _0x428f20;if('string'==typeof _0x423401){const _0x41cbe0=_0xe47aaa['model']['document']['getRootNames']()[0x0];_0x428f20={[_0x41cbe0]:_0x423401};}else _0x428f20=_0x423401;const _0x6e8100=this['_fixMediaEmbeds'](_0x428f20,_0xe47aaa),_0x37f93b=function(_0x54d3b6,_0x4bcbd5){for(const [_0x5893f6,_0x36d3d7]of _0x54d3b6)_0x36d3d7['classes']=_0x4bcbd5[_0x5893f6]['classList']['value']['replace']('ck-focused','');return _0x54d3b6;}(this['_sortRoots'](_0xe47aaa)['reduce']((_0x490213,_0xa7df78)=>(_0x490213['push']([_0xa7df78,{'content':_0x6e8100[_0xa7df78],'classes':''}]),_0x490213),[]),_0x1b388a);return _0x37f93b;}['_fixMediaEmbeds'](_0x179a48,_0x36a87c){if(!_0x36a87c['plugins']['has']('MediaEmbedEditing'))return _0x179a48;const _0x44cac1=_0x36a87c['plugins']['get']('MediaEmbedEditing');for(const [_0xc1194e,_0x19a677]of Object['entries'](_0x179a48)){const _0x122bfc=document['createElement']('div');_0x122bfc['innerHTML']=_0x19a677,(_0x122bfc['querySelectorAll']('figure.media')['forEach'](_0xcbf659=>{const _0x11e8fe=_0xcbf659['querySelector']('oembed');if(_0x11e8fe){const _0x25ad5f=_0x11e8fe['getAttribute']('url');if(_0x25ad5f){const _0x35b87b=_0x44cac1['registry']['getMediaViewElement'](new _0xdf13e9(_0x36a87c['editing']['view']['document']),_0x25ad5f,{'elementName':'','renderForEditingView':!0x0}),_0x470207=document['createElement']('div');_0x470207['classList']['add']('ck-media__wrapper'),_0x35b87b['render'](_0x470207,_0x36a87c['editing']['view']['domConverter']),_0x11e8fe['replaceWith'](_0x470207);}}}),_0x179a48[_0xc1194e]=_0x122bfc['innerHTML']);}return _0x179a48;}['_sortRoots'](_0x15b918){if(!function(_0x26365e){return void 0x0!==_0x26365e['getRootsAttributes'];}(_0x15b918))return _0x15b918['model']['document']['getRootNames']();const _0x1ff98f=[],_0x110f03=new Map();for(const _0x31094d of _0x15b918['model']['document']['getRootNames']()){const _0x49ecbf=_0x15b918['editing']['view']['getDomRoot'](_0x31094d)['getClientRects']()['item'](0x0);_0x1ff98f['push'](_0x31094d),_0x110f03['set'](_0x31094d,_0x49ecbf);}return _0x1ff98f['sort']((_0x213f69,_0x2c2c4c)=>{const _0x1f76e3=_0x110f03['get'](_0x213f69),_0x448698=_0x110f03['get'](_0x2c2c4c);return _0x1f76e3['y']-_0x448698['y']||_0x1f76e3['x']-_0x448698['x'];}),_0x1ff98f;}}class Xe extends _0x9da42{static get['requires'](){return[ce,_0x50a136];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x182868){super(_0x182868),_0x182868['commands']['add']('previewFinalContent',new ae(this['editor'])),_0x182868['config']['define']('trackChanges.preview.renderFunction',(_0x297222,_0x40c074)=>{for(const _0x5e4240 of _0x40c074)_0x297222['appendChild'](_0x5e4240);});}}export{T as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,O as DiscardSuggestionCommand,x as ExecuteOnAllSuggestionsCommand,E as ExecuteOnSelectedSuggestionsCommand,ae as PreviewFinalContentCommand,R as Suggestion,U as SuggestionDescriptionFactory,Te as SuggestionThreadView,Le as SuggestionView,Ve as TrackChanges,B as TrackChangesCommand,ce as TrackChangesData,ze as TrackChangesDataGetter,d as TrackChangesEditing,Xe as TrackChangesPreview,u as TrackChangesUI};