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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (231) 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/ai.js +1 -1
  158. package/src/integrations/aiassistant.js +1 -1
  159. package/src/integrations/aiquickactions.d.ts +17 -0
  160. package/src/integrations/aiquickactions.js +23 -0
  161. package/src/integrations/alignment.js +1 -1
  162. package/src/integrations/basicstyles.js +1 -1
  163. package/src/integrations/blockquote.js +1 -1
  164. package/src/integrations/bookmark.js +1 -1
  165. package/src/integrations/casechange.js +1 -1
  166. package/src/integrations/ckbox.js +1 -1
  167. package/src/integrations/codeblock.js +1 -1
  168. package/src/integrations/comments.js +1 -1
  169. package/src/integrations/deletecommand.js +1 -1
  170. package/src/integrations/emoji.js +1 -1
  171. package/src/integrations/entercommand.js +1 -1
  172. package/src/integrations/findandreplace.js +1 -1
  173. package/src/integrations/font.js +1 -1
  174. package/src/integrations/formatpainter.js +1 -1
  175. package/src/integrations/heading.js +1 -1
  176. package/src/integrations/highlight.js +1 -1
  177. package/src/integrations/horizontalline.js +1 -1
  178. package/src/integrations/htmlembed.js +1 -1
  179. package/src/integrations/image.js +1 -1
  180. package/src/integrations/imagereplace.js +1 -1
  181. package/src/integrations/imagestyle.js +1 -1
  182. package/src/integrations/importword.js +1 -1
  183. package/src/integrations/indent.js +1 -1
  184. package/src/integrations/inputcommand.js +1 -1
  185. package/src/integrations/legacylist.js +1 -1
  186. package/src/integrations/legacylistproperties.js +1 -1
  187. package/src/integrations/lineheight.js +1 -1
  188. package/src/integrations/link.js +1 -1
  189. package/src/integrations/list.js +1 -1
  190. package/src/integrations/listproperties.js +1 -1
  191. package/src/integrations/mediaembed.js +1 -1
  192. package/src/integrations/mention.js +1 -1
  193. package/src/integrations/mergefields.js +1 -1
  194. package/src/integrations/multilevellist.js +1 -1
  195. package/src/integrations/pagebreak.js +1 -1
  196. package/src/integrations/paragraph.js +1 -1
  197. package/src/integrations/removeformat.js +1 -1
  198. package/src/integrations/replacesourcecommand.js +1 -1
  199. package/src/integrations/restrictededitingmode.js +1 -1
  200. package/src/integrations/shiftentercommand.js +1 -1
  201. package/src/integrations/standardeditingmode.js +1 -1
  202. package/src/integrations/style.js +1 -1
  203. package/src/integrations/table.js +1 -1
  204. package/src/integrations/tablecaption.js +1 -1
  205. package/src/integrations/tableclipboard.js +2 -2
  206. package/src/integrations/tablecolumnresize.js +1 -1
  207. package/src/integrations/tableheadings.js +1 -1
  208. package/src/integrations/tablelayout.js +1 -1
  209. package/src/integrations/tablemergesplit.js +1 -1
  210. package/src/integrations/tableofcontents.js +1 -1
  211. package/src/integrations/tableproperties.js +1 -1
  212. package/src/integrations/template.js +1 -1
  213. package/src/integrations/title.js +1 -1
  214. package/src/integrations/undo.js +1 -1
  215. package/src/integrations/uploadcare.js +1 -1
  216. package/src/integrations/utils.js +1 -1
  217. package/src/suggestion.js +2 -2
  218. package/src/suggestiondescriptionfactory.js +1 -1
  219. package/src/trackchanges.js +1 -1
  220. package/src/trackchangesdata.js +1 -1
  221. package/src/trackchangesediting.d.ts +2 -1
  222. package/src/trackchangesediting.js +1 -1
  223. package/src/trackchangespreview.js +1 -1
  224. package/src/trackchangesui.js +1 -1
  225. package/src/ui/suggestioncontroller.js +2 -2
  226. package/src/ui/view/basesuggestionthreadview.js +1 -1
  227. package/src/ui/view/suggestionthreadview.js +1 -1
  228. package/src/ui/view/suggestionview.js +1 -1
  229. package/src/ui/view/trackchangespreviewview.js +1 -1
  230. package/src/utils/common-translations.js +1 -1
  231. 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 _0x294915,Plugin as _0x1ac4a7,PendingActions as _0x4dc787}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x515288,ObservableMixin as _0x5100d7,uid as _0x668662,priorities as _0x48e2dc,insertToPriorityArray as _0x980704,toArray as _0x211a57,logWarning as _0x508cdd,getEnvKeystrokeText as _0x465b03,FocusTracker as _0x3b3986,KeystrokeHandler as _0x182121,Collection as _0x5ca53d}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x5e26cb,IconCancel as _0x19f008,IconTrackChanges as _0x5d5088}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x512aab,View as _0x1a95f3,ViewCollection as _0xc18b02,FocusCycler as _0x225e9e,UIModel as _0x1e1468,createDropdown as _0x45be79,SplitButtonView as _0x7670d3,addListToDropdown as _0x2d394f,MenuBarMenuView as _0x5e2c03,MenuBarMenuListView as _0x180c07,ListSeparatorView as _0x1f0330,MenuBarMenuListItemView as _0x5bdd5b,MenuBarMenuListItemButtonView as _0xbcb65,BodyCollection as _0x4fccb4,Dialog as _0x3f5aef}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x53c5da,DocumentCompare as _0x11ae4f,hashObject as _0x318d41,surroundingMarkersDetector as _0x154636,FOCUS_ANNOTATION_KEYSTROKE as _0x15f150,AriaDescriptionView as _0x367c93,setupThreadKeyboardNavigation as _0x466ce5,trimHtml as _0x461d21,UserView as _0x1a6119,LateFocusButtonView as _0x1c6c78,getDateTimeFormatter as _0x24eb5b,getAllMarkersDomElementsSorted as _0x203780,sanitizeEditorConfig as _0x1e1567}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x417559,ModelLiveRange as _0x2fe235,ModelLivePosition as _0x4f345c,ModelPosition as _0xda936f,ModelRange as _0x4a33f5,_DetachOperation as _0x5b3eaa,ViewDowncastWriter as _0x31158e}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x5dc99a,toWidget as _0x376b06}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x1bbeb3,set as _0x1a9a6c,isEqual as _0x5cf543,unset as _0x68555b,omit as Lt}from'es-toolkit/compat';import{Delete as _0x99ba60,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x2ee569}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x2d7130}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x294915{['_enabledCommands'];constructor(_0x44fb99,_0x4a4063){super(_0x44fb99),this['_enabledCommands']=_0x4a4063,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 _0x277fa4 of this['editor']['commands']['commands']())_0x277fa4['affectsData']&&!this['_enabledCommands']['has'](_0x277fa4)&&_0x277fa4['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x27a5bc of this['editor']['commands']['commands']())_0x27a5bc['affectsData']&&!this['_enabledCommands']['has'](_0x27a5bc)&&_0x27a5bc['clearForceDisabled']('TrackChangesCommand');}}class T extends _0x294915{['_suggestions'];constructor(_0xa0cae2,_0x15fb94){super(_0xa0cae2),this['_suggestions']=_0x15fb94,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3236e9){const _0x23bce0=this['_suggestions']['get'](_0x3236e9);if(!_0x23bce0)throw new _0x515288('track-changes-accept-suggestion-not-found',this);const _0xf35574=_0x23bce0['getRanges']();this['editor']['model']['canEditAt'](_0xf35574)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x23bce0);}}class O extends _0x294915{['_suggestions'];constructor(_0x3feff0,_0x16f86a){super(_0x3feff0),this['_suggestions']=_0x16f86a,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x8c67bc){const _0x472b17=this['_suggestions']['get'](_0x8c67bc);if(!_0x472b17)throw new _0x515288('track-changes-discard-suggestion-not-found',this);const _0x3c98a1=_0x472b17['getRanges']();this['editor']['model']['canEditAt'](_0x3c98a1)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x472b17);}}function ls(_0xd8bc33,_0x5b5824){let _0x2fbd39='';return _0x2fbd39+=_0xd8bc33['split']('*')['map']((_0x17fb20,_0x5108b2)=>_0x5108b2%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+tn(_0x17fb20)+'</span>':tn(_0x17fb20))['join'](''),_0x5b5824&&(_0x2fbd39+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x5b5824['value']+'\x22\x20title=\x22'+_0x5b5824['title']+'\x22></span>'),_0x2fbd39;}function tn(_0x51622a){const _0x4fb905=document['createElement']('span');return _0x4fb905['innerText']=_0x51622a,_0x4fb905['innerHTML'];}function ts(_0x2cd898){return _0x2cd898['sort']((_0x10c66b,_0x372f8b)=>'attribute'===_0x10c66b['type']&&'attribute'!==_0x372f8b['type']?-0x1:'attribute'!==_0x10c66b['type']&&'attribute'===_0x372f8b['type']?0x1:'deletion'==_0x10c66b['type']&&'deletion'!=_0x372f8b['type']?-0x1:'deletion'!=_0x10c66b['type']&&'deletion'==_0x372f8b['type']?0x1:0x0);}function to(_0x2b1b98,_0x10fffa){let _0xced7d,_0x15d863=0x0;const _0x5d5292=[],_0x491523=_0x10fffa['schema'];for(;_0x15d863<_0x2b1b98['length'];){const _0x3754d6=_0x2b1b98[_0x15d863],_0x226ce9=_0x2b1b98[_0x15d863+0x1];_0xced7d||(_0xced7d=_0x10fffa['createPositionBefore'](_0x3754d6)),nn(_0x10fffa,_0x3754d6,_0x226ce9)||(_0x5d5292['push'](_0x10fffa['createRange'](_0xced7d,_0x491523['isObject'](_0x3754d6)?_0x10fffa['createPositionAfter'](_0x3754d6):_0x10fffa['createPositionAt'](_0x3754d6,'end'))),_0xced7d=null),_0x15d863++;}return _0x5d5292;}function nn(_0x3ca709,_0x47adb4,_0x1d18e5){if(!_0x1d18e5)return!0x1;const _0x1eeacb=_0x3ca709['createPositionAfter'](_0x47adb4),_0x26a4c7=_0x3ca709['createPositionBefore'](_0x1d18e5);return _0x1eeacb['isTouching'](_0x26a4c7);}function rs(_0x456cb3,_0x5114f4,_0x32a291){for(;_0x32a291['length'];){const _0x1f7cce=_0x32a291['splice'](0x0,0x64);_0x456cb3['change'](()=>{for(const _0x38a8fa of _0x1f7cce)_0x38a8fa['isInContent']&&_0x5114f4['execute'](_0x38a8fa['id']);});}}class x extends _0x294915{['_command'];['_suggestions'];constructor(_0x28d235,_0x518565,_0x580aec){super(_0x28d235),this['_command']=_0x518565,this['_suggestions']=_0x580aec,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4d8067=Array['from'](this['_suggestions']['values']())['some'](_0x47209c=>_0x47209c['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x4d8067;}['execute'](){const _0x112c4f=ts(Array['from'](this['_suggestions']['values']()));for(const _0x4ed775 of _0x112c4f){const _0x42d8a4=_0x4ed775['getRanges']();if(!this['editor']['model']['canEditAt'](_0x42d8a4))return;}rs(this['editor']['model'],this['_command'],_0x112c4f);}}class E extends _0x294915{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x25267d,_0x226d4b,_0x5e7823){super(_0x25267d),this['_command']=_0x226d4b,this['_suggestions']=_0x5e7823,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x52a8a9=this['editor']['model']['document']['selection'],_0x559c99=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x36d8a4,_0x405ab0){const _0x4575e5=Array['from'](_0x36d8a4['getRanges']()),_0x576765=new Set();for(const _0x540b3f of _0x405ab0)if(_0x540b3f['isInContent']){for(const _0x28b8c1 of _0x4575e5)for(const _0x854e1c of _0x540b3f['getRanges']())(_0x28b8c1['isIntersecting'](_0x854e1c)||_0x36d8a4['isCollapsed']&&!_0x540b3f['isMultiRange']&&_0x540b3f['next']&&_0x854e1c['end']['isTouching'](_0x28b8c1['start']))&&_0x576765['add'](_0x540b3f);}return _0x576765;}(_0x52a8a9,_0x559c99),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x31d263=ts(Array['from'](this['_selectedSuggestions']));for(const _0xaf3c4d of _0x31d263){const _0x398709=_0xaf3c4d['getRanges']();if(!this['editor']['model']['canEditAt'](_0x398709))return;}rs(this['editor']['model'],this['_command'],_0x31d263);}}class R extends/* #__PURE__ -- @preserve */
24
- _0x5100d7(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x4f0769,_0x4afb88){super(),this['id']=_0x4afb88['id'],this['type']=_0x4afb88['type'],this['subType']=_0x4afb88['subType']||null,this['author']=_0x4afb88['author'],this['creator']=_0x4afb88['creator']||_0x4afb88['author'],this['isExternal']=Boolean(_0x4afb88['attributes']&&_0x4afb88['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x4afb88['originalSuggestionId']||null,this['_model']=_0x4f0769,this['_onAccept']=_0x4afb88['onAccept'],this['_onDiscard']=_0x4afb88['onDiscard'],this['_onAttributesChange']=_0x4afb88['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x4afb88['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 _0xb5c3e=this;for(;_0xb5c3e['previous'];)_0xb5c3e=_0xb5c3e['previous'];return _0xb5c3e;}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'](_0x287781){this['_markerNames']['add'](_0x287781);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x44b3fd=>this['_model']['markers']['get'](_0x44b3fd))['filter'](_0x3dbd1c=>_0x3dbd1c);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x524e91=>{for(const _0x50df30 of this['getMarkers']())_0x524e91['removeMarker'](_0x50df30);}),this['_markerNames']['clear']();}['removeMarker'](_0x5f2b3f){this['_model']['change'](_0xf4b16c=>{_0xf4b16c['removeMarker'](_0x5f2b3f);}),this['_markerNames']['delete'](_0x5f2b3f);}['addRange'](_0x2adb9f){const _0x3854eb='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+R['getMultiRangeId']();this['addMarkerName'](_0x3854eb),this['_model']['change'](_0x2ba4b1=>{_0x2ba4b1['addMarker'](_0x3854eb,{'range':_0x2adb9f,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x10ae84){for(const _0x1f6226 of this['getRanges']())if(_0x1f6226['isIntersecting'](_0x10ae84))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x30caf2=>_0x30caf2['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x5a01b7,_0x45f641)=>[..._0x5a01b7,..._0x45f641['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x651c6f=this['getRanges']();if(0x1!=_0x651c6f['length'])return null;const _0x272ebe=_0x651c6f[0x0],_0x48c4db=_0x272ebe['start']['nodeAfter'],_0x30c24b=_0x272ebe['end']['nodeBefore'];return _0x48c4db instanceof _0x417559?_0x48c4db!=_0x30c24b?null:_0x48c4db: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 _0x2faa8f=[];let _0x4c9366=this['head'];for(;_0x4c9366;)_0x2faa8f['push'](_0x4c9366),_0x4c9366=_0x4c9366['next'];return _0x2faa8f;}['setAttribute'](_0x4b7f96,_0x30b5f0){const _0x3b04cf=_0x1bbeb3(this['attributes']);_0x1a9a6c(_0x3b04cf,_0x4b7f96,_0x30b5f0),_0x5cf543(_0x3b04cf,this['attributes'])||(this['attributes']=_0x3b04cf,this['_onAttributesChange'](_0x3b04cf));}['removeAttribute'](_0x16549e){const _0x185630=_0x1bbeb3(this['attributes']);_0x68555b(_0x185630,_0x16549e),_0x5cf543(_0x185630,this['attributes'])||(this['attributes']=_0x185630,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 _0x668662()['substr'](0x1,0x5);}}function o(_0x285eaf,_0x2a5699,_0x4d82e4){const _0x447bf7=_0x285eaf['t'],t=_0x285eaf['t'];switch(_0x2a5699){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',_0x4d82e4);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x4d82e4);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x4d82e4);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x4d82e4);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x4d82e4);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',_0x4d82e4);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x4d82e4);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',_0x4d82e4);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x4d82e4);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x4d82e4);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x4d82e4);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x4d82e4);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x4d82e4);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x4d82e4);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x4d82e4);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x4d82e4);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x4d82e4);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x4d82e4);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x4d82e4);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x4d82e4);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x4d82e4);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x4d82e4);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x4d82e4);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x4d82e4);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x4d82e4);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'},_0x4d82e4);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x4d82e4);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x4d82e4);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x4d82e4);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x4d82e4);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x4d82e4);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x4d82e4);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x4d82e4);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'},_0x4d82e4);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x4d82e4);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x4d82e4);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x4d82e4);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x4d82e4);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'},_0x4d82e4);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x4d82e4);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'},_0x4d82e4);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'},_0x4d82e4);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x4d82e4);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'},_0x4d82e4);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x4d82e4);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'},_0x4d82e4);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x4d82e4);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x4d82e4);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'},_0x4d82e4);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x4d82e4);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 _0x447bf7({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x4d82e4);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x447bf7({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x4d82e4);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x4d82e4);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'},_0x4d82e4);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'},_0x4d82e4);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'},_0x4d82e4);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x2a5699;}}class U{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x514e6b,_0x5f395a){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x514e6b,this['_locale']=_0x5f395a;}['getDescriptions'](_0x1f24a6){const _0x1472c7=[],_0x2dd313=new Set(),_0x15c1f7=new Set();for(let _0x274e98=0x0;_0x274e98<_0x1f24a6['length'];_0x274e98++){const _0x426441=_0x1f24a6[_0x274e98];if(!_0x426441['isInContent'])continue;const _0x3d5c87=this['_handleCustomCallbackDescription'](_0x426441);if(_0x3d5c87){if(null!=_0x426441['subType']){if(_0x2dd313['has'](_0x426441['subType']))continue;_0x2dd313['add'](_0x426441['subType']);}_0x1472c7['push'](_0x3d5c87);}else{if('attribute'==_0x426441['type']){const _0x4eecd5=_0x426441['data']['key'];if(_0x15c1f7['has'](_0x4eecd5))continue;_0x15c1f7['add'](_0x426441['data']['key']),_0x4eecd5==m?this['_handleRenameSuggestionDescription'](_0x1472c7,_0x426441):this['_handleAttributeSuggestionDescription'](_0x1472c7,_0x426441);continue;}'insertion'!=_0x426441['type']&&'deletion'!=_0x426441['type']||this['_handleInsertRemoveSuggestionDescription'](_0x1472c7,_0x426441,_0x1f24a6[_0x274e98+0x1]);}}return this['_resolveDescriptionItems'](_0x1472c7);}['registerDescriptionCallback'](_0x59004a){this['_customCallbacks']['push'](_0x59004a);}['registerElementLabel'](_0x1bcb26,_0x2e92ce,_0x71e2f4=_0x48e2dc['normal']){'function'==typeof _0x1bcb26?_0x980704(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1bcb26,'label':_0x2e92ce,'priority':_0x71e2f4}):this['_itemLabels']['set'](_0x1bcb26,_0x2e92ce);}['registerAttributeLabel'](_0x1bde0c,_0x2f6354){this['_attributeLabels']['set'](_0x1bde0c,_0x2f6354);}['getItemLabel'](_0x1d3367,_0x5eea73=0x1){let _0x4cef81;for(const _0x512c54 of this['_itemLabelsCallbacks'])if(_0x512c54['matchingCallback'](_0x1d3367)){_0x4cef81=_0x512c54['label'];break;}return _0x4cef81||(_0x4cef81=this['_itemLabels']['get'](_0x1d3367['name'])),_0x4cef81?_0x4cef81(_0x5eea73):0x1!==_0x5eea73?_0x5eea73+'\x20'+_0x1d3367['name']+'s':''+_0x1d3367['name'];}['_addDescriptionItems'](_0x3c679a,_0x2920ab){const _0x553aa4=_0x2920ab['getFirstRange']()['getWalker'](),_0x4889b6='insertion'==_0x2920ab['type']?'add':'remove';for(const _0x48b73f of _0x553aa4){const _0x2d51c6=_0x48b73f['item'],_0x50d55=_0x3c679a[_0x3c679a['length']-0x1];if(_0x2d51c6['is']('$textProxy'))_0x50d55&&_0x50d55['type']['indexOf']('Container')>-0x1&&_0x3c679a['pop'](),_0x50d55&&'text'==_0x50d55['type']?_0x50d55[_0x4889b6]+=_0x2d51c6['data']:_0x3c679a['push']({'type':'text','add':'add'==_0x4889b6?_0x2d51c6['data']:'','remove':'remove'==_0x4889b6?_0x2d51c6['data']:''});else{if(this['_schema']['isObject'](_0x2d51c6)){const _0xd11b53=_0x2d51c6;if(_0x50d55&&_0x50d55['type']['indexOf']('Container')>-0x1&&_0x3c679a['pop'](),'elementEnd'==_0x48b73f['type'])continue;_0x50d55&&_0x50d55['type']==_0x4889b6+'Object'&&_0x50d55['element']['name']==_0xd11b53['name']?_0x50d55['quantity']++:_0x3c679a['push']({'type':_0x4889b6+'Object','element':_0xd11b53,'quantity':0x1}),_0x553aa4['skip'](_0x417d03=>!('elementEnd'==_0x417d03['type']&&_0x417d03['item']==_0x2d51c6));}else{if(this['_schema']['checkChild'](_0x2d51c6,'$text')||_0x2d51c6['is']('element','softBreak')){const _0x28a6f6=_0x2d51c6;if('add'==_0x4889b6&&'elementStart'==_0x48b73f['type']||'remove'==_0x4889b6&&'elementEnd'==_0x48b73f['type'])continue;if(_0x50d55&&-0x1==_0x50d55['type']['indexOf']('Container')){'text'==_0x50d55['type']&&(_0x50d55[_0x4889b6]+='\x0a');continue;}let _0x34ba4c;if(_0x34ba4c='add'==_0x4889b6?_0x28a6f6['nextSibling']&&!this['_schema']['isObject'](_0x28a6f6['nextSibling'])?_0x28a6f6['nextSibling']:null:_0x28a6f6['previousSibling']&&!this['_schema']['isObject'](_0x28a6f6['previousSibling'])?_0x28a6f6['previousSibling']:null,_0x28a6f6['isEmpty']||_0x34ba4c&&_0x34ba4c['isEmpty']){const _0x19d7bc=_0x34ba4c&&_0x34ba4c['isEmpty']?_0x34ba4c:_0x28a6f6;_0x50d55&&_0x50d55['type']==_0x4889b6+'EmptyContainer'&&_0x50d55['element']['name']==_0x19d7bc['name']?_0x50d55['quantity']++:_0x3c679a['push']({'type':_0x4889b6+'EmptyContainer','element':_0x19d7bc,'quantity':0x1});}else _0x3c679a['push']({'type':_0x4889b6+'Container','element':_0x28a6f6});}}}}}['_resolveDescriptionItems'](_0x5675bc){const _0x224b41=this['_locale'],_0x4ea2f6=[],_0x2c1fa4=[],_0xbd5807=[];for(const _0x1e1dc9 of _0x5675bc)switch(_0x1e1dc9['type']){case'text':if(_0x1e1dc9['add']=_0x1e1dc9['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x1e1dc9['remove']=_0x1e1dc9['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x1e1dc9['add']&&''!=_0x1e1dc9['remove']){_0x4ea2f6['push']({'type':'replace','content':o(_0x224b41,'REPLACE_TEXT',['\x22'+_0x1e1dc9['remove']+'\x22','\x22'+_0x1e1dc9['add']+'\x22'])});continue;}if(null!=_0x1e1dc9['add']['match'](/^ +$/)){_0x4ea2f6['push']({'type':'insertion','content':o(_0x224b41,'*Insert:*\x20%0',o(_0x224b41,'ELEMENT_SPACE',_0x1e1dc9['add']['length']))});continue;}if(null!=_0x1e1dc9['remove']['match'](/^ +$/)){_0x4ea2f6['push']({'type':'deletion','content':o(_0x224b41,'*Remove:*\x20%0',o(_0x224b41,'ELEMENT_SPACE',_0x1e1dc9['remove']['length']))});continue;}if(''!=_0x1e1dc9['add']){_0x4ea2f6['push']({'type':'insertion','content':o(_0x224b41,'*Insert:*\x20%0','\x22'+_0x1e1dc9['add']+'\x22')});continue;}_0x4ea2f6['push']({'type':'deletion','content':o(_0x224b41,'*Remove:*\x20%0','\x22'+_0x1e1dc9['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4ea2f6['push']({'type':'insertion','content':o(_0x224b41,'*Insert:*\x20%0',this['getItemLabel'](_0x1e1dc9['element'],_0x1e1dc9['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4ea2f6['push']({'type':'deletion','content':o(_0x224b41,'*Remove:*\x20%0',this['getItemLabel'](_0x1e1dc9['element'],_0x1e1dc9['quantity']))});continue;case'addContainer':_0x4ea2f6['push']({'type':'insertion','content':o(_0x224b41,'*Split:*\x20%0',this['getItemLabel'](_0x1e1dc9['element'],_0x1e1dc9['quantity']))});continue;case'removeContainer':_0x4ea2f6['push']({'type':'deletion','content':o(_0x224b41,'*Merge:*\x20%0',this['getItemLabel'](_0x1e1dc9['element'],_0x1e1dc9['quantity']))});continue;case'addFormat':_0x2c1fa4['push'](_0x1e1dc9['key']);continue;case'removeFormat':_0xbd5807['push'](_0x1e1dc9['key']);continue;default:_0x4ea2f6['push'](_0x1e1dc9);}if(_0x2c1fa4['length']){const _0x26b56c=_0x2c1fa4['map'](_0x53a2ee=>this['_attributeLabels']['has'](_0x53a2ee)?this['_attributeLabels']['get'](_0x53a2ee):_0x53a2ee)['join'](',\x20');_0x4ea2f6['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x26b56c)});}if(_0xbd5807['length']){const _0x21d75c=_0xbd5807['map'](_0x29a90b=>this['_attributeLabels']['has'](_0x29a90b)?this['_attributeLabels']['get'](_0x29a90b):_0x29a90b)['join'](',\x20');_0x4ea2f6['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x21d75c)});}return _0x4ea2f6;}['_handleCustomCallbackDescription'](_0x3fedd0){for(const _0x23d0fa of this['_customCallbacks']){const _0x592960=_0x23d0fa(_0x3fedd0);if(_0x592960&&'type'in _0x592960)return _0x592960;}}['_handleAttributeSuggestionDescription'](_0x14f651,_0x5e0fa2){const _0xa2e580=_0x5e0fa2['data'],_0x5ebf5b=void 0x0===_0xa2e580['newValue']?'removeFormat':'addFormat';_0x14f651['push']({'type':_0x5ebf5b,'key':_0xa2e580['key']});}['_handleRenameSuggestionDescription'](_0x139e10,_0x3baa5a){_0x139e10['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x3baa5a['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x59628c,_0x2c8790,_0x97bfbb){if(this['_addDescriptionItems'](_0x59628c,_0x2c8790),_0x97bfbb&&_0x97bfbb['getFirstRange']()&&!_0x2c8790['getFirstRange']()['end']['isEqual'](_0x97bfbb['getFirstRange']()['start'])){const _0x4ffe9d=_0x59628c[_0x59628c['length']-0x1],_0x50a53e='insertion'==_0x2c8790['type']?'add':'remove';_0x4ffe9d&&'text'==_0x4ffe9d['type']&&(_0x4ffe9d[_0x50a53e]+='\x0a');}}}class V extends _0x1ac4a7{['afterInit'](){const _0x46d901=this['editor'],_0x1559e1=_0x46d901['plugins']['get']('TrackChangesEditing');_0x46d901['commands']['get']('showAIAssistant')&&_0x1559e1['enableCommand']('showAIAssistant');}}class F extends _0x1ac4a7{['afterInit'](){const _0x509b53=this['editor'],_0x30055d=_0x509b53['plugins']['get']('TrackChangesEditing');_0x509b53['commands']['get']('toggleAi')&&_0x30055d['enableCommand']('toggleAi');}}class G extends _0x1ac4a7{['afterInit'](){const _0x16998a=this['editor'],_0x32b835=_0x16998a['locale'];if(!_0x16998a['plugins']['has']('AlignmentEditing'))return;const _0x3cb2e4=_0x16998a['plugins']['get']('TrackChangesEditing');_0x3cb2e4['enableDefaultAttributesIntegration']('alignment'),_0x3cb2e4['registerBlockAttribute']('alignment'),_0x3cb2e4['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x32b835,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3c88f9=this['editor'],_0x4e2196=_0x3c88f9['locale'];_0x3c88f9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x388726=>{if('formatBlock'!=_0x388726['type'])return;const {data:_0x2689fb}=_0x388726;if(_0x2689fb&&'alignment'==_0x2689fb['commandName']){const _0x476f25=_0x2689fb['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x4e2196,'*Format:*\x20%0',function(_0x1da8e3){switch(_0x1da8e3){case'left':return o(_0x4e2196,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x4e2196,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x4e2196,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x4e2196,'FORMAT_JUSTIFY_TEXT');}}(_0x476f25))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class L extends _0x1ac4a7{['afterInit'](){const _0x37f4be=this['editor'],_0x55c860=_0x37f4be['plugins']['get']('TrackChangesEditing'),_0x14b651=_0x37f4be['locale'];for(const _0x5d672e of ti){if(!_0x37f4be['plugins']['has'](_0x5d672e))continue;const _0x365028=_0x5d672e['slice'](0x0,-0x7)['toLowerCase'](),_0x380478='FORMAT_'+_0x365028['toUpperCase']();_0x55c860['enableDefaultAttributesIntegration'](_0x365028),_0x55c860['registerInlineAttribute'](_0x365028),_0x55c860['descriptionFactory']['registerAttributeLabel'](_0x365028,o(_0x14b651,_0x380478));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2394ac=this['editor'],_0x323b69=_0x2394ac['locale'],_0x1a4b7a=_0x2394ac['plugins']['get']('TrackChangesEditing');function _0x1eda43(_0x55ac4e,_0xe11597){_0x1a4b7a['descriptionFactory']['registerDescriptionCallback'](_0x2a95f9=>{if('formatInline'!=_0x2a95f9['type'])return;const {data:_0x2d0afb}=_0x2a95f9;return _0x2d0afb&&_0x2d0afb['commandName']===_0x55ac4e?_0x2d0afb['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x323b69,'*Format:*\x20%0',_0xe11597)}:{'type':'format','content':o(_0x323b69,'*Remove\x20format:*\x20%0',_0xe11597)}:void 0x0;});}_0x1eda43('bold',o(_0x323b69,'FORMAT_BOLD')),_0x1eda43('italic',o(_0x323b69,'FORMAT_ITALIC')),_0x1eda43('underline',o(_0x323b69,'FORMAT_UNDERLINE')),_0x1eda43('code',o(_0x323b69,'FORMAT_CODE')),_0x1eda43('strikethrough',o(_0x323b69,'FORMAT_STRIKETHROUGH')),_0x1eda43('subscript',o(_0x323b69,'FORMAT_SUBSCRIPT')),_0x1eda43('superscript',o(_0x323b69,'FORMAT_SUPERSCRIPT'));}}class J extends _0x1ac4a7{['afterInit'](){const _0x167ca0=this['editor'],_0x2ec094=_0x167ca0['locale'];if(!_0x167ca0['plugins']['has']('BlockQuoteEditing'))return;const _0x3513ea=_0x167ca0['plugins']['get']('TrackChangesEditing'),_0x47f207=this['editor']['commands']['get']('blockQuote');_0x3513ea['enableCommand']('blockQuote',(_0x2d8a65,_0x1774d6={})=>{const _0x4bbd59=this['editor']['model']['document']['selection'],_0x18996d=_0x1774d6&&void 0x0!==_0x1774d6['forceValue']?_0x1774d6['forceValue']:!_0x47f207['value'];let _0x571c7b=[];if(_0x18996d){const _0x271e3c=Array['from'](_0x4bbd59['getSelectedBlocks']())['filter'](_0x1bc2ee=>oo(_0x1bc2ee)||function(_0x420a77,_0x31b226){const _0x1b4338=_0x31b226['checkChild'](_0x420a77['parent'],'blockQuote'),_0x48fe0e=_0x31b226['checkChild'](['$root','blockQuote'],_0x420a77);return _0x1b4338&&_0x48fe0e;}(_0x1bc2ee,this['editor']['model']['schema']));_0x571c7b=to(_0x271e3c,_0x167ca0['model']);}else{const _0x434241=Array['from'](_0x4bbd59['getSelectedBlocks']())['filter'](_0x30f0f6=>oo(_0x30f0f6));_0x571c7b=to(_0x434241,_0x167ca0['model']);}_0x167ca0['model']['change'](()=>{for(const _0x37249a of _0x571c7b)_0x3513ea['markBlockFormat'](_0x37249a,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x18996d}]});});}),_0x3513ea['descriptionFactory']['registerDescriptionCallback'](_0x4daea9=>{const {data:_0x4b75a4}=_0x4daea9;if(_0x4b75a4&&'blockQuote'==_0x4b75a4['commandName']){const _0x1e7070=o(_0x2ec094,'ELEMENT_BLOCK_QUOTE');return _0x4b75a4['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2ec094,'*Set\x20format:*\x20%0',_0x1e7070)}:{'type':'format','content':o(_0x2ec094,'*Remove\x20format:*\x20%0',_0x1e7070)};}});}}function oo(_0x3cb230){return'blockQuote'==_0x3cb230['parent']['name'];}class K extends _0x1ac4a7{['afterInit'](){const _0x43b573=this['editor'],_0x2920ce=_0x43b573['locale'],_0x3d1f04=_0x43b573['plugins']['get']('TrackChangesEditing');_0x43b573['plugins']['has']('BookmarkEditing')&&(_0x3d1f04['enableCommand']('insertBookmark'),_0x3d1f04['enableDefaultAttributesIntegration']('updateBookmark'),_0x3d1f04['registerBlockAttribute']('bookmarkId'),_0x3d1f04['descriptionFactory']['registerDescriptionCallback'](_0x3ef1bb=>{if('insertion'!=_0x3ef1bb['type']&&'deletion'!=_0x3ef1bb['type']&&'attribute'!=_0x3ef1bb['type'])return;const _0x3013b4=_0x3ef1bb['getContainedElement']();if(null==_0x3013b4)return;if(!_0x3013b4['is']('element','bookmark'))return;const _0x3a9839=_0x3013b4['getAttribute']('bookmarkId');if('insertion'==_0x3ef1bb['type'])return{'type':'insertion','content':o(_0x2920ce,'*Insert:*\x20%0','\x22'+_0x3a9839+'\x22\x20'+o(_0x2920ce,'ELEMENT_BOOKMARK'))};if('deletion'==_0x3ef1bb['type'])return{'type':'deletion','content':o(_0x2920ce,'*Remove:*\x20%0','\x22'+_0x3a9839+'\x22\x20'+o(_0x2920ce,'ELEMENT_BOOKMARK'))};const {data:_0x24440b}=_0x3ef1bb;if(!_0x24440b||'bookmarkId'!=_0x24440b['key'])return;return{'type':'format','content':o(_0x2920ce,'*Set\x20bookmark:*\x20%0','\x22'+_0x24440b['newValue']+'\x22')};}));}}class H extends _0x1ac4a7{['afterInit'](){const _0x2ca29d=this['editor'];_0x2ca29d['plugins']['has']('CaseChange')&&(_0x2ca29d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x2ca29d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x2ca29d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class W extends _0x1ac4a7{['afterInit'](){const _0x18e1f7=this['editor'];_0x18e1f7['commands']['get']('ckbox')&&_0x18e1f7['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x1ac4a7{['afterInit'](){const _0x1a1225=this['editor'];if(!_0x1a1225['plugins']['has']('CodeBlock'))return;const _0x1f3ad6=_0x1a1225['plugins']['get']('TrackChangesEditing'),_0x18d2b7=_0x1a1225['locale'],_0x1bdde3=_0x1a1225['config']['get']('codeBlock')['languages'],_0x12f063=_0x1a1225['commands']['get']('codeBlock');_0x1f3ad6['enableCommand']('indentCodeBlock'),_0x1f3ad6['enableCommand']('outdentCodeBlock'),_0x1f3ad6['enableCommand']('codeBlock',(_0xc0f0ae,_0x418e7c={})=>{const _0x5bcb96=_0x1a1225['model'],_0x4ea802=_0x1a1225['model']['document']['selection'],_0x2d3c5f=_0x418e7c&&void 0x0!==_0x418e7c['forceValue']?_0x418e7c['forceValue']:!_0x12f063['value'];let _0x54fffe;_0x418e7c['language']||(_0x418e7c['language']=_0x1bdde3[0x0]['language']),_0x54fffe=_0x2d3c5f?Array['from'](_0x4ea802['getSelectedBlocks']())['filter'](_0x149641=>co(_0x149641)||function(_0x336c5c,_0x3a8920){if(_0x336c5c['is']('rootElement')||_0x3a8920['isLimit'](_0x336c5c))return!0x1;return _0x3a8920['checkChild'](_0x336c5c['parent'],'codeBlock');}(_0x149641,_0x5bcb96['schema'])):Array['from'](_0x4ea802['getSelectedBlocks']())['filter'](_0x224d5b=>co(_0x224d5b));const _0x33e966=to(_0x54fffe,_0x5bcb96);_0x5bcb96['change'](()=>{for(const _0x322091 of _0x33e966)_0x1f3ad6['markBlockFormat'](_0x322091,{'commandName':'codeBlock','commandParams':[{..._0x418e7c,'forceValue':_0x2d3c5f}],'formatGroupId':'blockName'});});}),(_0x1f3ad6['descriptionFactory']['registerElementLabel']('codeBlock',_0x399883=>o(_0x18d2b7,'ELEMENT_CODE_BLOCK',_0x399883)),_0x1f3ad6['descriptionFactory']['registerDescriptionCallback'](_0x1a1ea9=>{if('formatBlock'!=_0x1a1ea9['type'])return;const _0x5d235c=_0x18d2b7['t'],{data:_0x118616}=_0x1a1ea9;if(!_0x118616||'codeBlock'!=_0x118616['commandName'])return;const _0x5ca45f=_0x118616['commandParams'][0x0]['language'],_0x512455=_0x5d235c(_0x1bdde3['find'](_0x27d964=>_0x27d964['language']===_0x5ca45f)['label'])['toLowerCase']();return _0x118616['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x18d2b7,'*Set\x20format:*\x20%0',o(_0x18d2b7,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x512455+')')}:{'type':'format','content':o(_0x18d2b7,'*Remove\x20format:*\x20%0',o(_0x18d2b7,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x49462a){return'codeBlock'==_0x49462a['name'];}class z extends _0x1ac4a7{['afterInit'](){const _0x38be04=this['editor'];if(!_0x38be04['plugins']['has']('CommentsEditing'))return;_0x38be04['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x4932fc,_0x1e116b,_0xb1e68c){const _0x27292c=[];for(const _0x4f4366 of _0x1e116b['getItems']())_0x4f4366['hasAttribute'](_0x4932fc)&&_0x27292c['push'](_0xb1e68c['createRangeOn'](_0x4f4366));return _0x27292c;}function Ge(_0x49a61e,_0x403060,{showActiveMarker:_0xcdf3f7=!0x0}={}){const _0x2e964a=_0x49a61e['plugins']['get']('TrackChangesEditing');return(_0x1aed0b,_0x136560,_0x14983d)=>{if(!_0x14983d['consumable']['test'](_0x136560['markerRange'],_0x1aed0b['name']))return;const _0x231c92=_0x136560['markerRange']['getWalker'](),_0x5b886b=_0x136560['markerRange']['start'],_0x3781b3=_0x49a61e['model']['schema'];let _0x4faeb3=null,_0x2800cf=null,_0x13fd53=!0x1,_0x16e578=!0x1;for(const _0x5df4a3 of _0x231c92){const _0x13ad89=_0x5df4a3['item'];_0x13fd53=_0x13fd53||_0x3781b3['isContent'](_0x13ad89);const _0x14afda=_0x14983d['mapper']['toViewElement'](_0x13ad89);if(_0x14afda&&_0x14afda['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5df4a3['type']&&(_0x3781b3['isBlock'](_0x13ad89)&&!_0x3781b3['isLimit'](_0x13ad89)&&(_0x13ad89['nextSibling']||_0x5b886b['isAtEnd']?_0x4faeb3&&_0x4faeb3['parent']==_0x13ad89||(_0x4faeb3=_0x13ad89,_0x74056f(_0x5df4a3['previousPosition']),_0x16e578=!0x0):_0x2800cf=_0x2800cf||_0x5df4a3['previousPosition']));}function _0x74056f(_0x3b901e){const {id:_0x2816d9,authorId:_0x198f13}=_0x2e964a['_splitMarkerName'](_0x136560['markerName']),_0xed4547=_0x14983d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x403060,'data-suggestion':_0x2816d9,'data-author-id':_0x198f13}),_0x14eaa1=_0x14983d['mapper']['toViewPosition'](_0x3b901e);_0xcdf3f7&&_0x2e964a['activeMarkers']['includes'](_0x136560['markerName'])&&_0x14983d['writer']['addClass']('ck-suggestion-marker--active',_0xed4547),_0x14983d['writer']['insert'](_0x14eaa1,_0xed4547),_0x14983d['mapper']['bindElementToMarker'](_0xed4547,_0x136560['markerName']);}_0x13fd53||_0x16e578||!_0x2800cf||_0x74056f(_0x2800cf);};}class Q extends _0x1ac4a7{static get['requires'](){return[_0x99ba60];}['init'](){const _0x45266d=this['editor'],_0x580715=_0x45266d['plugins']['get']('TrackChangesEditing');_0x580715['enableCommand']('delete');const _0x20e804=_0x45266d['commands']['get']('deleteForward');_0x580715['enableCommand']('deleteForward',(_0x45620b,_0x8b4d31={})=>{const _0x37c151=_0x45266d['model']['createSelection'](_0x45266d['model']['document']['selection']);_0x37c151['isCollapsed']&&_0x45266d['model']['modifySelection'](_0x37c151,{'direction':'forward','unit':_0x8b4d31['unit']});const _0x3ebe18=_0x37c151['getFirstRange'](),_0x1fdcb8=_0x2fe235['fromRange'](_0x3ebe18);let _0x2617d6;_0x45620b(_0x8b4d31),_0x2617d6='$graveyard'==_0x1fdcb8['root']['rootName']?_0x45266d['model']['createRange'](_0x3ebe18['start']):_0x45266d['model']['createRange'](_0x1fdcb8['start'],_0x1fdcb8['end']),_0x1fdcb8['detach'](),_0x45266d['model']['enqueueChange'](_0x20e804['buffer']['batch'],_0xc43cf8=>{_0x20e804['buffer']['lock'](),_0xc43cf8['setSelection'](_0xc43cf8['createRange'](_0x2617d6['end'])),_0x20e804['buffer']['unlock']();});}),_0x45266d['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ge(_0x45266d,'merge'),{'priority':'high'}),_0x45266d['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x20f98f,_0x40ebbe,_0x413a91)=>{_0x413a91['options']['showSuggestionHighlights']&&Ge(_0x45266d,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x20f98f,_0x40ebbe,_0x413a91);},{'priority':'high'}),_0x45266d['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x2e6eaa,_0x361fa9,_0x31f402)=>{const _0x36a493=_0x31f402['mapper']['markerNameToElements'](_0x361fa9['markerName']);if(_0x36a493){for(const _0x501c49 of _0x36a493)_0x501c49['is']('uiElement')&&(_0x31f402['mapper']['unbindElementFromMarkerName'](_0x501c49,_0x361fa9['markerName']),_0x31f402['writer']['remove'](_0x501c49));}},{'priority':'high'});}}class X extends _0x1ac4a7{['afterInit'](){const _0x10eba0=this['editor'];if(!_0x10eba0['plugins']['has']('ListEditing'))return;const _0xa8237d=_0x10eba0['locale'],_0x269079=_0x10eba0['plugins']['get']('TrackChangesEditing'),_0xbdcb9b=_0x10eba0['plugins']['has']('TodoListEditing'),_0x808812=!!_0x10eba0['config']['get']('list.multiBlock');function _0x148cf8(_0x437559){return{'type':'format','content':''+o(_0xa8237d,'*Set\x20format:*\x20%0',_0x437559)};}function _0x376c63(_0x3acf56){return{'type':'format','content':''+o(_0xa8237d,'*Remove\x20format:*\x20%0',_0x3acf56)};}_0x269079['enableDefaultAttributesIntegration']('numberedList'),_0x269079['enableDefaultAttributesIntegration']('bulletedList'),_0x269079['enableDefaultAttributesIntegration']('customNumberedList'),_0x269079['enableDefaultAttributesIntegration']('customBulletedList'),_0x269079['enableDefaultAttributesIntegration']('indentList'),_0x269079['enableDefaultAttributesIntegration']('outdentList'),_0x269079['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x269079['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x269079['registerBlockAttribute']('listItemId'),_0x269079['registerBlockAttribute']('listType'),_0x269079['registerBlockAttribute']('listIndent'),_0x808812&&(_0x269079['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x269079['enableDefaultAttributesIntegration']('mergeListItemForward')),_0xbdcb9b&&(_0x269079['enableDefaultAttributesIntegration']('todoList'),_0x269079['enableDefaultAttributesIntegration']('checkTodoList'),_0x269079['registerBlockAttribute']('todoListChecked'),_0x269079['descriptionFactory']['registerDescriptionCallback'](_0x1d1f34=>{const {data:_0x47d184}=_0x1d1f34;if(_0x47d184&&'todoListChecked'==_0x47d184['key'])return{'type':'format','content':_0x47d184['newValue']?o(_0xa8237d,'*Check\x20item*'):o(_0xa8237d,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x8ca2ca=>{if(_0x8ca2ca['batch']['isUndo'])return!0x1;let _0x1a1e35=!0x1;const _0x19c9d5=_0x269079['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x19f6f6=>'todoListChecked'===_0x269079['_getAttributeKey'](_0x19f6f6));for(const _0x35aeb3 of _0x19c9d5){'todo'!=_0x35aeb3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x269079['_findSuggestions'](_0x35aeb3['getFirstRange'](),'attribute')['find'](_0x2ef4b8=>'listType'===_0x269079['_getAttributeKey'](_0x2ef4b8['suggestion']))||(_0x8ca2ca['removeMarker'](_0x35aeb3['getFirstMarker']()),_0x1a1e35=!0x0));}return _0x1a1e35;})),_0x269079['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0xa8237d,'FORMAT_INDENT'));const _0x3ba21c={'type':'format','content':''};_0x269079['descriptionFactory']['registerDescriptionCallback'](_0x4192ce=>{const {data:_0x198d36}=_0x4192ce;if(!_0x198d36||'listType'!=_0x198d36['key'])return;let _0x293491=_0x4192ce['head'];for(;_0x293491;){if(_0x293491['data']&&(('listStyle'==_0x293491['data']['key']||'listMarkerStyle'==_0x293491['data']['key'])&&(_0x293491['data']['newValue']&&'default'!=_0x293491['data']['newValue']||'default'!=_0x293491['data']['oldValue']&&!_0x198d36['newValue'])||!_0x808812&&_0x293491['data']['key']==m))return _0x3ba21c;_0x293491=_0x293491['next'];}if(null==_0x198d36['newValue'])switch(_0x198d36['oldValue']){case'bulleted':return _0x376c63(o(_0xa8237d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x376c63(o(_0xa8237d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x376c63(o(_0xa8237d,'ELEMENT_TODO_LIST'));}switch(_0x198d36['newValue']){case'bulleted':return _0x148cf8(o(_0xa8237d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x148cf8(o(_0xa8237d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x148cf8(o(_0xa8237d,'ELEMENT_TODO_LIST'));}}),_0x269079['descriptionFactory']['registerDescriptionCallback'](_0xd4e3e4=>{const {data:_0x31ee4a}=_0xd4e3e4;if(_0x31ee4a&&'listIndent'==_0x31ee4a['key'])return null==_0x31ee4a['newValue']||null==_0x31ee4a['oldValue']&&0x0==_0x31ee4a['newValue']?_0x3ba21c:void 0x0;}),_0x269079['descriptionFactory']['registerDescriptionCallback'](_0x27eef9=>{if('attribute'!=_0x27eef9['type'])return;const {data:_0x1eeb8d}=_0x27eef9;if(!_0x1eeb8d||'listItemId'!=_0x1eeb8d['key'])return;const _0x4054bf=Be(_0x27eef9);return'newValue'==_0x4054bf?{'type':'format','content':o(_0xa8237d,'*Merge:*\x20list\x20item')}:'oldValue'==_0x4054bf?{'type':'format','content':o(_0xa8237d,'*Split:*\x20list\x20item')}:_0x3ba21c;}),_0x10eba0['model']['document']['registerPostFixer'](_0xff6032=>this['listItemIdFixer'](_0xff6032)),_0x10eba0['model']['document']['registerPostFixer'](_0x74e196=>this['noTrackChangesFixer'](_0x74e196)),_0x10eba0['model']['document']['on']('change:data',(_0x2fedcf,_0x42f2f3)=>{if(_0x42f2f3['isUndo']||!_0x42f2f3['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x198696){if(_0x198696['batch']['isUndo']||!_0x198696['batch']['isLocal'])return!0x1;let _0x377f24=!0x1;const _0x5a0bb2=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x9119e1=>_0x9119e1['data']&&'listItemId'==_0x9119e1['data']['key'])['filter'](_0xca2033=>_0xca2033['data']['newValue']&&_0xca2033['data']['oldValue']);for(const _0x37af4c of _0x5a0bb2)Be(_0x37af4c)||(_0x198696['removeMarker'](_0x37af4c['getFirstMarker']()),_0x377f24=!0x0);return _0x377f24;}['noTrackChangesFixer'](_0x1bf6ca){if(_0x1bf6ca['batch']['isUndo']||!_0x1bf6ca['batch']['isLocal'])return!0x1;const _0x3d98b3=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x3d98b3['trackChangesCommand']['value'])return!0x1;let _0x136716=!0x1;const _0x24b711=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x4b91d1=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x4373fe=>'attribute'==_0x4373fe['type'])['filter'](_0x1bb4ac=>_0x24b711['includes'](_0x1bb4ac['attributeKey']));if(0x0==_0x4b91d1['length'])return _0x136716;for(const _0x2c49de of _0x4b91d1){const _0x4244b5=_0x3d98b3['_findSuggestions'](_0x2c49de['range'],'attribute')['filter'](_0x36cb1a=>!_0x36cb1a['meta']['isNextTo'])['map'](_0x13ed28=>_0x13ed28['suggestion'])['filter'](_0x92305c=>{const _0x717073=_0x3d98b3['_getAttributeKey'](_0x92305c);return _0x24b711['includes'](_0x717073);});if(_0x4244b5['length']){for(const _0x21ab0b of _0x4244b5)_0x1bf6ca['removeMarker'](_0x21ab0b['getFirstMarker']());_0x136716=!0x0;}}return _0x136716;}['assureChains'](){const _0x596159=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3e28de=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x32fd94;const _0x37b177=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3eef93=>{if(_0x3eef93['data']['oldRange']||!_0x3eef93['data']['newRange'])return null;if(!_0x3eef93['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x3fbd7a}=_0x596159['_splitMarkerName'](_0x3eef93['name']);if(!_0x596159['hasSuggestion'](_0x3fbd7a))return null;const _0x39b956=_0x596159['getSuggestion'](_0x3fbd7a);return _0x3e28de['includes'](_0x39b956['data']['key']);})['map'](_0x28b3f7=>{const {id:_0x33a685}=_0x596159['_splitMarkerName'](_0x28b3f7['name']),_0x342c32=_0x596159['getSuggestion'](_0x33a685);return _0x32fd94=_0x342c32['attributes']['groupId'],_0x342c32['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x37b177['size'])return;const _0x4a4524=_0x596159['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xf90122=>'attribute'==_0xf90122['type']&&_0xf90122['data']&&_0x3e28de['includes'](_0xf90122['data']['key'])&&_0xf90122['attributes']['groupId']!=_0x32fd94)['map'](_0x2ba8da=>({'listItem':_0x2ba8da['getFirstRange']()['start']['nodeAfter'],'groupId':_0x2ba8da['attributes']['groupId']})),_0x454ac8=new Set();for(const {groupId:_0x5eac06,listItem:_0x1f3912}of _0x4a4524)_0x37b177['has'](_0x1f3912)&&_0x454ac8['add'](_0x5eac06);for(const _0x240c42 of _0x596159['getSuggestions']())_0x454ac8['has'](_0x240c42['attributes']['groupId'])&&_0x240c42['setAttribute']('groupId',_0x32fd94);}['_supportLegacySuggestions'](){const _0x74f80a=this['editor'],_0x60b008=_0x74f80a['locale'],_0x1a2d89=_0x74f80a['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x1a2d89['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x3e12c9,_0x7c66fb){const _0x4d9317=[];for(let _0x4e54d8 of _0x3e12c9)_0x4e54d8['start']['nodeAfter']===_0x4e54d8['end']['parent']&&(_0x4e54d8=_0x74f80a['model']['createRange'](_0x74f80a['model']['createPositionAt'](_0x4e54d8['start']['nodeAfter'],0x0))),_0x4d9317['push'](_0x4e54d8);_0x74f80a['model']['change'](_0x4f314e=>{const _0x3e69e1=_0x74f80a['model']['document']['selection'],_0x2cd0c5=Array['from'](_0x3e69e1['getRanges']())['map'](_0x39c7f7=>_0x2fe235['fromRange'](_0x39c7f7));_0x4f314e['setSelection'](_0x4d9317),_0x74f80a['commands']['get'](_0x7c66fb['commandName'])['refresh'](),_0x7c66fb['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x74f80a['execute'](_0x7c66fb['commandName'],..._0x7c66fb['commandParams']),_0x4f314e['setSelection'](_0x2cd0c5);for(const _0x1c3337 of _0x2cd0c5)_0x1c3337['detach']();});}),_0x1a2d89['descriptionFactory']['registerElementLabel'](function(_0x59efa8){const _0x3539da=!_0x74f80a['model']['schema']['isObject'](_0x59efa8),_0x1decc1=_0x59efa8['previousSibling'],_0x28523f=_0x59efa8['nextSibling'],_0x44bc1d=_0x59efa8['getAttribute']('listItemId'),_0x5c1a6d=!_0x1decc1||_0x1decc1['getAttribute']('listItemId')!==_0x44bc1d,_0x3d17d1=!_0x28523f||_0x28523f['getAttribute']('listItemId')!==_0x44bc1d;return _0x3539da&&Boolean(_0x44bc1d)&&_0x5c1a6d&&_0x3d17d1;},_0x5b7427=>o(_0x60b008,'ELEMENT_LIST_ITEM',_0x5b7427));}['_registerLegacyDescription'](){const _0x2cde9c=this['editor'],_0x593e34=_0x2cde9c['locale'];function _0x2b9bfe(_0x5a480c){const _0x360371=_0x2cde9c['commands']['get']('bulletedList')['value'],_0x2e2a29=_0x2cde9c['commands']['get']('numberedList')['value'];return'numberedList'===_0x5a480c?_0x360371:_0x2e2a29;}_0x2cde9c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x589f74){if('formatBlock'!=_0x589f74['type'])return;const {data:_0x507cbd}=_0x589f74;if(!_0x507cbd)return;let _0x46429f,_0x736b2e,_0x10954e,_0x1c8f16;switch(_0x507cbd['commandName']){case'bulletedList':_0x10954e=_0x507cbd['commandParams'][0x0]['forceValue'],_0x1c8f16=_0x2b9bfe(_0x507cbd['commandName']),_0x46429f=_0x10954e?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1c8f16&&_0x2cde9c['config']['get']('list.multiBlock')||(_0x46429f='*Change\x20to:*\x20%0'),_0x736b2e={'type':'format','content':o(_0x593e34,_0x46429f,o(_0x593e34,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x10954e=_0x507cbd['commandParams'][0x0]['forceValue'],_0x1c8f16=_0x2b9bfe(_0x507cbd['commandName']),_0x46429f=_0x10954e?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1c8f16&&_0x2cde9c['config']['get']('list.multiBlock')||(_0x46429f='*Change\x20to:*\x20%0'),_0x736b2e={'type':'format','content':o(_0x593e34,_0x46429f,o(_0x593e34,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x46429f='*Indent:*\x20%0',_0x736b2e={'type':'format','content':o(_0x593e34,_0x46429f,o(_0x593e34,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x46429f=function(_0x2b8b68){const _0x47e0f5=_0x2b8b68['getFirstRange']();let _0x16ff01=_0x47e0f5['start']['nodeAfter'];for(;_0x16ff01&&_0x47e0f5['containsItem'](_0x16ff01);){if(_0x16ff01['getAttribute']('listIndent')>0x0)return!0x1;_0x16ff01=_0x16ff01['nextSibling'];}return!0x0;}(_0x589f74)?o(_0x593e34,'*Format:*\x20remove\x20from\x20%0',o(_0x593e34,function(_0x574fb2){return'ELEMENT_'+_0x574fb2['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x589f74))):o(_0x593e34,'*Outdent:*\x20%0',o(_0x593e34,'ELEMENT_LIST_ITEM')),_0x736b2e={'type':'format','content':_0x46429f};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x507cbd['multipleBlocks']&&(_0x46429f='*Merge:*\x20%0',_0x736b2e={'type':'deletion','content':o(_0x593e34,_0x46429f,o(_0x593e34,'ELEMENT_LIST_ITEM'))});}return _0x736b2e;});}}function Be(_0x2b2312){let _0x512044=_0x2b2312['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x512044;){const _0x396a2c=_0x512044['getAttribute']('listItemId');if(!_0x396a2c)return!0x1;if(_0x396a2c==_0x2b2312['data']['newValue'])return'newValue';if(_0x396a2c==_0x2b2312['data']['oldValue'])return'oldValue';_0x512044=_0x512044['previousSibling'];}return!0x1;}class Y extends _0x1ac4a7{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2084cc=this['editor']['config']['get']('list.properties'),_0x58fbf7=this['editor']['plugins']['get']('TrackChangesEditing');_0x2084cc['styles']&&(_0x58fbf7['enableDefaultAttributesIntegration']('listStyle'),_0x58fbf7['registerBlockAttribute']('listStyle')),_0x2084cc['reversed']&&(_0x58fbf7['enableDefaultAttributesIntegration']('listReversed'),_0x58fbf7['registerBlockAttribute']('listReversed')),_0x2084cc['startIndex']&&(_0x58fbf7['enableDefaultAttributesIntegration']('listStart'),_0x58fbf7['registerBlockAttribute']('listStart'));const _0x216d71={'type':'format','content':''};_0x58fbf7['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0xe0f0dc=this['editor']['locale'];_0x58fbf7['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0xe0f0dc,'FORMAT_LIST_REVERSED')),_0x58fbf7['descriptionFactory']['registerDescriptionCallback'](_0x504caa=>{const {data:_0x4c02ba}=_0x504caa;if(_0x4c02ba&&'listReversed'==_0x4c02ba['key'])return null==_0x4c02ba['newValue']||0x0==_0x4c02ba['newValue']&&null==_0x4c02ba['oldValue']?_0x216d71:void 0x0;}),_0x58fbf7['descriptionFactory']['registerAttributeLabel']('listStart',o(_0xe0f0dc,'FORMAT_LIST_START')),_0x58fbf7['descriptionFactory']['registerDescriptionCallback'](_0x3f9f75=>{const {data:_0x3695ab}=_0x3f9f75;if(_0x3695ab&&'listStart'==_0x3695ab['key'])return null==_0x3695ab['newValue']||0x1==_0x3695ab['newValue']&&null==_0x3695ab['oldValue']?_0x216d71:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x5511ed=>{if(_0x5511ed['batch']['isUndo'])return!0x1;let _0x25ff86=!0x1;const _0x587a98=_0x58fbf7['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x21bf69=>{const _0x13615a=_0x58fbf7['_getAttributeKey'](_0x21bf69);return'listStart'==_0x13615a||'listReversed'==_0x13615a;});for(const _0x166467 of _0x587a98){const _0x167a00=_0x166467['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x167a00||'customNumbered'==_0x167a00)continue;_0x58fbf7['_findSuggestions'](_0x166467['getFirstRange'](),'attribute')['find'](_0x367949=>'listType'==_0x58fbf7['_getAttributeKey'](_0x367949['suggestion']))||(_0x5511ed['removeMarker'](_0x166467['getFirstMarker']()),_0x25ff86=!0x0);}return _0x25ff86;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x5e6cc8){const _0xf9f78e=this['editor']['locale'],{data:_0x3bf121}=_0x5e6cc8,_0x28c7f0={'type':'format','content':''};if(!_0x3bf121||'listStyle'!=_0x3bf121['key'])return;if(!_0x3bf121['oldValue'])return'default'==_0x3bf121['newValue']?_0x28c7f0:{'type':'format','content':''+o(_0xf9f78e,'*Set\x20format:*\x20%0',o(_0xf9f78e,this['_getTranslationKeyForListStyle'](_0x3bf121['newValue'])))};if(!_0x3bf121['newValue']){if('default'==_0x3bf121['oldValue'])return _0x28c7f0;let _0x15c2ab=_0x5e6cc8['head'];for(;_0x15c2ab;){if(_0x15c2ab['data']&&'listType'==_0x15c2ab['data']['key']&&_0x15c2ab['data']['newValue'])return _0x28c7f0;_0x15c2ab=_0x15c2ab['next'];}return{'type':'format','content':''+o(_0xf9f78e,'*Remove\x20format:*\x20%0',o(_0xf9f78e,this['_getTranslationKeyForListStyle'](_0x3bf121['oldValue'])))};}if('default'!=_0x3bf121['newValue'])return{'type':'format','content':''+o(_0xf9f78e,'*Set\x20format:*\x20%0',o(_0xf9f78e,this['_getTranslationKeyForListStyle'](_0x3bf121['newValue'])))};let _0xb75dbe=_0x5e6cc8['head'];for(;_0xb75dbe;){if(_0xb75dbe['data']&&'listType'==_0xb75dbe['data']['key']&&_0xb75dbe['data']['newValue']&&_0xb75dbe['data']['oldValue'])return _0x28c7f0;_0xb75dbe=_0xb75dbe['next'];}return{'type':'format','content':o(_0xf9f78e,'*Set\x20format:*\x20%0',o(_0xf9f78e,'ELEMENT_'+_0x5e6cc8['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x3580a5=this['editor'],_0x1219de=_0x3580a5['locale'];_0x3580a5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x30b928=>{if('formatBlock'!=_0x30b928['type'])return;const {data:_0x10377d}=_0x30b928;if(!_0x10377d)return;let _0xfd5ef4,_0x15aacb;switch(_0x10377d['commandName']){case'listStyle':_0xfd5ef4='*Change\x20to:*\x20%0',_0x15aacb={'type':'format','content':o(_0x1219de,_0xfd5ef4,o(_0x1219de,this['_getTranslationKeyForListStyle'](_0x10377d['commandParams'][0x0]['type'])))};break;case'listReversed':_0xfd5ef4=_0x10377d['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x15aacb={'type':'format','content':o(_0x1219de,_0xfd5ef4)};break;case'listStart':_0xfd5ef4='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x15aacb={'type':'format','content':o(_0x1219de,_0xfd5ef4,_0x10377d['commandParams'][0x0]['startIndex'])};}return _0x15aacb;});}['_getTranslationKeyForListStyle'](_0x348f11){return'ELEMENT_'+function(_0x901c39){if(Re['includes'](_0x901c39))return'bulleted';if(Ae['includes'](_0x901c39))return'numbered';return null;}(_0x348f11)['toUpperCase']()+'_LIST_'+_0x348f11['toUpperCase']()['replace'](/-/g,'_');}}const Re=['disc','circle','square'],Ae=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Z extends _0x1ac4a7{['afterInit'](){const _0x3b2f13=this['editor'];_0x3b2f13['commands']['get']('emoji')&&_0x3b2f13['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class tt extends _0x1ac4a7{static get['requires'](){return[_0x2ee569];}['init'](){const _0xe1aa0=this['editor'],_0x51aaf1=_0xe1aa0['plugins']['get']('TrackChangesEditing'),_0x3fe3d6=_0xe1aa0['commands']['get']('enter');_0x51aaf1['enableCommand']('enter',()=>{_0xe1aa0['model']['change'](_0x1d309b=>{const _0x437063=_0xe1aa0['model']['document']['selection'],_0x4cea73=_0x437063['getFirstPosition'](),_0xdd6dc5=_0x2fe235['fromRange'](_0x437063['getFirstRange']());if(_0x3fe3d6['enterBlock'](_0x1d309b)){const _0x4dfb16=_0xe1aa0['model']['createPositionAt'](_0x4cea73['parent']['nextSibling'],0x0),_0x7a9791=_0x1d309b['createRange'](_0x4cea73,_0x4dfb16);_0x51aaf1['markInsertion'](_0x7a9791);}else _0x1d309b['setSelection'](_0x1d309b['createRange'](_0xdd6dc5['end']));_0xdd6dc5['detach'](),_0x3fe3d6['fire']('afterExecute',{'writer':_0x1d309b});});}),_0xe1aa0['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ge(_0xe1aa0,'split'),{'priority':'high'}),_0xe1aa0['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x5611f8,_0x43ed05,_0xa57df7)=>{const _0x216449=_0xa57df7['mapper']['markerNameToElements'](_0x43ed05['markerName']);if(_0x216449){for(const _0x1730c1 of _0x216449)_0x1730c1['hasClass']('ck-suggestion-marker-split')&&(_0xa57df7['mapper']['unbindElementFromMarkerName'](_0x1730c1,_0x43ed05['markerName']),_0xa57df7['writer']['remove'](_0x1730c1));}},{'priority':'high'}),_0xe1aa0['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4e8fe0,_0xa198ff,_0x20a3f7)=>{_0x20a3f7['options']['showSuggestionHighlights']&&Ge(_0xe1aa0,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x4e8fe0,_0xa198ff,_0x20a3f7);},{'priority':'high'});}}class et extends _0x1ac4a7{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x1e49c5=this['editor']['plugins']['get']('TrackChangesEditing');_0x1e49c5['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x1e49c5['enableCommand']('findNext'),_0x1e49c5['enableCommand']('findPrevious'),_0x1e49c5['enableCommand']('replace'),_0x1e49c5['enableCommand']('replaceAll');}['handleFindCommand'](_0x426708,_0x221859,_0x471bef={}){const _0x1346fd=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x426708(_0x2a30f0=>{let _0x3421a6=('string'==typeof _0x221859?_0x1346fd['findByTextCallback'](_0x221859,_0x471bef):_0x221859)(_0x2a30f0);Array['isArray'](_0x3421a6)&&(_0x3421a6={'results':_0x3421a6,'searchText':'string'==typeof _0x221859?_0x221859:''});const _0x30c4ec=_0x3421a6['results']['filter'](_0x514dde=>!0x1===this['_isInDeletionRange'](_0x514dde,_0x2a30f0['item']));return{..._0x3421a6,'results':_0x30c4ec};},_0x471bef);}['_isInDeletionRange'](_0x5cacdf,_0x16be18){const _0x20a635=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x16be18,_0x5cacdf['start']),this['editor']['model']['createPositionAt'](_0x16be18,_0x5cacdf['end']));for(const _0x1928e6 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x20a635['getIntersection'](_0x1928e6['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class it extends _0x1ac4a7{['afterInit'](){const _0x45aba1=this['editor']['locale'],_0x5d85b3=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x3e979f,commandName:_0x1a0bea}of eo)this['editor']['plugins']['has'](_0x3e979f)&&(_0x5d85b3['enableDefaultAttributesIntegration'](_0x1a0bea),_0x5d85b3['registerInlineAttribute'](_0x1a0bea));_0x5d85b3['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x45aba1,'FORMAT_FONT_SIZE')),_0x5d85b3['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x45aba1,'FORMAT_FONT_FAMILY')),_0x5d85b3['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x45aba1,'FORMAT_FONT_COLOR')),_0x5d85b3['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x45aba1,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d9f62=this['editor'],_0x1625aa=_0x4d9f62['locale'];_0x4d9f62['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a500a=>{const _0x4ab503=_0x1625aa['t'];if('formatInline'!=_0x2a500a['type'])return;const {data:_0x5cb4a1}=_0x2a500a;if(null!=_0x5cb4a1){if('fontSize'==_0x5cb4a1['commandName']){const _0x1f7d5d=_0x5cb4a1['commandParams'][0x0]['value'];if(_0x1f7d5d){const _0xaf801=_0x4ab503(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x1a8ace=>_0x1a8ace['model']==_0x1f7d5d)['title'])['toLowerCase']();return{'type':'format','content':o(_0x1625aa,'*Set\x20font\x20size:*\x20%0',_0xaf801)};}return{'type':'format','content':o(_0x1625aa,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x5cb4a1['commandName']){const _0x237935=_0x5cb4a1['commandParams'][0x0]['value'];return _0x237935?{'type':'format','content':o(_0x1625aa,'*Set\x20font\x20family:*\x20%0',_0x237935)}:{'type':'format','content':o(_0x1625aa,'*Reset\x20font\x20family*')};}if('fontColor'==_0x5cb4a1['commandName']){const _0x5a2019=_0x5cb4a1['commandParams'][0x0]['value'];if(_0x5a2019){const _0x2f0174=_0x512aab(this['editor']['config']['get']('fontColor.colors'))['find'](_0x24e7fd=>_0x24e7fd['model']==_0x5a2019);let _0x2d1a0f=_0x5a2019,_0x4c9ca1='';return _0x2f0174&&(_0x2d1a0f=_0x2f0174['label'],_0x4c9ca1=_0x4ab503(_0x2d1a0f)['toLowerCase']()),{'type':'format','content':o(_0x1625aa,'*Set\x20font\x20color:*\x20%0',_0x4c9ca1)['trim'](),'color':{'value':_0x5a2019,'title':_0x4c9ca1||_0x2d1a0f}};}return{'type':'format','content':o(_0x1625aa,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x5cb4a1['commandName']){const _0x9134db=_0x5cb4a1['commandParams'][0x0]['value'];if(_0x9134db){const _0x3a60ca=_0x512aab(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x2daabe=>_0x2daabe['model']==_0x9134db);let _0x463432=_0x9134db,_0x567bcc='';return _0x3a60ca&&(_0x463432=_0x3a60ca['label'],_0x567bcc=_0x4ab503(_0x463432)['toLowerCase']()),{'type':'format','content':o(_0x1625aa,'*Set\x20font\x20background\x20color:*\x20%0',_0x567bcc)['trim'](),'color':{'value':_0x9134db,'title':_0x567bcc||_0x463432}};}return{'type':'format','content':o(_0x1625aa,'*Reset\x20font\x20background\x20color*')};}}});}}class nt extends _0x1ac4a7{['afterInit'](){const _0x4b4a09=this['editor'],_0x30b054=_0x4b4a09['plugins']['get']('TrackChangesEditing'),_0xaab919=_0x4b4a09['commands']['get']('copyFormat'),_0x563e8f=_0x4b4a09['commands']['get']('pasteFormat');_0xaab919&&_0x563e8f&&(_0x30b054['enableDefaultAttributesIntegration']('pasteFormat'),_0x30b054['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x5907ed=this['editor'],_0x158535=_0x5907ed['locale'];_0x5907ed['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x32cc13=>{if('formatBlock'!=_0x32cc13['type']&&'formatInline'!=_0x32cc13['type'])return;const {data:_0x4ea44c}=_0x32cc13;if(_0x4ea44c&&'pasteFormat'===_0x4ea44c['commandName']){const _0x2bc55f=[],_0x57b45e=_0x4ea44c['commandParams'][0x0];for(const [_0x125e1d,_0x367fc7]of Object['entries'](_0x57b45e))_0x2bc55f['push'](ro(_0x5907ed,_0x125e1d,_0x367fc7));return _0x2bc55f['length']?{'type':'format','content':o(_0x158535,'*Set\x20format\x20to:*\x20%0',_0x2bc55f['join'](',\x20'))}:{'type':'format','content':o(_0x158535,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x5be66e,_0x536289,_0x469b9c){const _0x3b142c=_0x5be66e['locale']['t'],_0x5d4550=_0x536289['split'](/(?=[A-Z])/)['join']('\x20'),_0x5ce1aa=_0x3b142c(_0x5d4550['charAt'](0x0)['toUpperCase']()+_0x5d4550['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x469b9c)return _0x5ce1aa;if('fontColor'===_0x536289||'fontBackgroundColor'===_0x536289){const _0x2bcd7f=_0x512aab(_0x5be66e['config']['get']('fontColor.colors'))['find'](_0x4c6b7e=>_0x4c6b7e['model']==_0x469b9c);return _0x5ce1aa+'\x20('+(_0x2bcd7f?_0x3b142c(_0x2bcd7f['label'])['toLowerCase']():_0x469b9c)+')';}if('fontSize'===_0x536289&&isNaN(parseFloat(_0x469b9c))){const _0x41f267=_0x5be66e['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x5be66e['config']['get']('fontSize.options'))['find'](_0x402eaa=>_0x402eaa['model']==_0x469b9c);return _0x5ce1aa+'\x20('+(_0x41f267?_0x3b142c(_0x41f267['title'])['toLowerCase']():_0x469b9c)+')';}return _0x5ce1aa+'\x20('+_0x469b9c+')';}class st extends _0x1ac4a7{['_headingOptions'];['afterInit'](){const _0x24cc9e=this['editor'];if(!_0x24cc9e['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x24cc9e['config']['get']('heading.options');const _0x5b1dbc=_0x24cc9e['locale'],_0x214479=_0x24cc9e['plugins']['get']('TrackChangesEditing');_0x214479['enableDefaultAttributesIntegration']('heading');for(const _0x1ba67f of this['_headingOptions'])'paragraph'!=_0x1ba67f['model']&&_0x214479['descriptionFactory']['registerElementLabel'](_0x1ba67f['model'],_0x27b384=>{const _0x4d08a3=this['_getHeadingLevel'](_0x1ba67f['model']);return null!==_0x4d08a3?_0x19955e(_0x27b384,_0x4d08a3):_0xb8e27a(_0x27b384,_0x1ba67f['title']);});function _0x19955e(_0x497b86,_0x1ca70d){return o(_0x5b1dbc,'ELEMENT_HEADING',[_0x497b86,_0x1ca70d]);}function _0xb8e27a(_0x1d55e7,_0x26f49a){return o(_0x5b1dbc,'ELEMENT_HEADING_CUSTOM',[_0x1d55e7,_0x26f49a]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x11c341=this['editor'],_0x40d1d8=_0x11c341['locale'];function _0x1241cb(_0x1ec92f,_0x13d661){return o(_0x40d1d8,'ELEMENT_HEADING_CUSTOM',[_0x1ec92f,_0x13d661]);}_0x11c341['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1bfc3=>{if('formatBlock'!=_0x1bfc3['type'])return;const {data:_0x27e956}=_0x1bfc3;if(_0x27e956&&'heading'==_0x27e956['commandName']){const _0x4a43ef=_0x27e956['commandParams'][0x0]['value'],_0x1815bf=this['_getHeadingLevel'](_0x4a43ef);if(null!==_0x1815bf)return{'type':'format','content':o(_0x40d1d8,'*Change\x20to:*\x20%0',(_0xad6a76=0x1,_0x3454d8=_0x1815bf,o(_0x40d1d8,'ELEMENT_HEADING',[_0xad6a76,_0x3454d8])))};const _0x411a59=this['_headingOptions']['find'](_0x7da950=>_0x7da950['model']===_0x4a43ef)['title'];return{'type':'format','content':o(_0x40d1d8,'*Change\x20to:*\x20%0',_0x1241cb(0x1,_0x411a59))};}var _0xad6a76,_0x3454d8;});}['_getHeadingLevel'](_0x288c14){const _0x1bd822=_0x288c14['match'](/^heading(\d+)/);if(_0x1bd822)return _0x1bd822[0x1];const _0xa85738=this['_headingOptions']?.['find'](_0x3a6dc5=>_0x3a6dc5['model']==_0x288c14);if(_0xa85738&&_0xa85738['view']){const _0x424ad3=_0xa85738['view'],_0x588a6e=(_0x424ad3['name']??_0x424ad3)['match'](/^h(\d+)/);if(_0x588a6e)return _0x588a6e[0x1];}return null;}}class ot extends _0x1ac4a7{['afterInit'](){const _0x152a86=this['editor'];if(!_0x152a86['plugins']['has']('HighlightEditing'))return;const _0x21357f=_0x152a86['plugins']['get']('TrackChangesEditing'),_0x5ad92c=_0x152a86['locale'];_0x21357f['enableDefaultAttributesIntegration']('highlight'),_0x21357f['registerInlineAttribute']('highlight'),_0x21357f['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x5ad92c,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x47bc83=this['editor'],_0x3af3b0=_0x47bc83['locale'];_0x47bc83['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x29040a=>{if('formatInline'!=_0x29040a['type'])return;const {data:_0x59c312}=_0x29040a;if(_0x59c312&&'highlight'==_0x59c312['commandName']){const _0x1fcc63=_0x3af3b0['t'],_0x38e239=_0x59c312['commandParams'][0x0]['value'];if(_0x38e239){const _0x5c8af6=_0x47bc83['config']['get']('highlight.options')['find'](_0x3f1f44=>_0x3f1f44['model']==_0x38e239),_0x46cd3b=_0x1fcc63(_0x5c8af6['title'])['toLowerCase']();return{'type':'format','content':o(_0x3af3b0,'*Set\x20highlight:*\x20%0',_0x46cd3b),'color':{'value':_0x5c8af6['color'],'title':_0x5c8af6['title']}};}return{'type':'format','content':o(_0x3af3b0,'*Remove\x20highlight*',o(_0x3af3b0,'FORMAT_HIGHLIGHT'))};}});}}class rt extends _0x1ac4a7{['afterInit'](){const _0x1c4bb6=this['editor'];if(!_0x1c4bb6['plugins']['has']('HorizontalLineEditing'))return;_0x1c4bb6['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x246500=_0x1c4bb6['plugins']['get']('TrackChangesEditing'),_0x22c422=_0x1c4bb6['locale'];_0x246500['descriptionFactory']['registerElementLabel']('horizontalLine',_0x2b32ae=>o(_0x22c422,'ELEMENT_HORIZONTAL_LINE',_0x2b32ae)),_0x1c4bb6['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x49c80d,{writer:_0x345d6d,options:_0x3cdb5d})=>{if(!_0x3cdb5d['showSuggestionHighlights'])return null;const _0x2f6306=_0x345d6d['createContainerElement']('div'),_0x42c1ce=_0x345d6d['createEmptyElement']('hr');return _0x345d6d['addClass']('ck-horizontal-line',_0x2f6306),_0x345d6d['insert'](_0x345d6d['createPositionAt'](_0x2f6306,0x0),_0x42c1ce),_0x2f6306;},'converterPriority':'high'});}}class at extends _0x1ac4a7{['afterInit'](){const _0x415b79=this['editor'];if(!_0x415b79['plugins']['has']('HtmlEmbed'))return;const _0xfbc762=_0x415b79['plugins']['get']('TrackChangesEditing'),_0x2df80b=_0x415b79['locale'];_0xfbc762['descriptionFactory']['registerElementLabel']('rawHtml',_0x13214a=>o(_0x2df80b,'ELEMENT_HTML_EMBED',_0x13214a)),_0xfbc762['enableDefaultAttributesIntegration']('htmlEmbed'),_0xfbc762['registerBlockAttribute']('value'),_0xfbc762['descriptionFactory']['registerDescriptionCallback'](_0x36a7c6=>{if('attribute'!=_0x36a7c6['type'])return;const {data:_0x9c24c8}=_0x36a7c6;if(_0x9c24c8&&'value'==_0x9c24c8['key']&&_0x36a7c6['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x3aeee6=o(_0x2df80b,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2df80b,'*Change\x20%0\x20content*',_0x3aeee6)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1ea4cc=this['editor'],_0x237223=_0x1ea4cc['locale'];_0x1ea4cc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x546f34=>{if('formatBlock'!=_0x546f34['type'])return;const {data:_0x5517b6}=_0x546f34;if(_0x5517b6&&'htmlEmbed'==_0x5517b6['commandName']){const _0x2bf826=o(_0x237223,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x237223,'*Change\x20%0\x20content*',_0x2bf826)};}});}}class ct extends _0x1ac4a7{['afterInit'](){const _0x1b8ce6=this['editor'];if(!_0x1b8ce6['plugins']['has']('ImageEditing'))return;const _0x1a81d7=_0x1b8ce6['plugins']['get']('TrackChangesEditing'),_0x289677=_0x1b8ce6['plugins']['get']('ImageUtils'),_0x27e14c=_0x1b8ce6['locale'];_0x1a81d7['enableCommand']('insertImage'),_0x1a81d7['descriptionFactory']['registerElementLabel']('imageBlock',_0x56d82c=>o(_0x27e14c,'ELEMENT_IMAGE',_0x56d82c)),_0x1a81d7['descriptionFactory']['registerElementLabel']('imageInline',_0x59ba69=>o(_0x27e14c,'ELEMENT_INLINE_IMAGE',_0x59ba69)),_0x1a81d7['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x27e14c,'ELEMENT_CAPTION')),_0x1b8ce6['plugins']['has']('ImageUploadEditing')&&_0x1a81d7['enableCommand']('uploadImage'),_0x1b8ce6['plugins']['has']('ImageBlockEditing')&&_0x1b8ce6['plugins']['has']('ImageInlineEditing')&&(_0x1a81d7['enableCommand']('imageTypeInline',(_0x599455,_0x1a6d63)=>{const _0x35ea7c=_0x289677['getClosestSelectedImageElement'](_0x1b8ce6['model']['document']['selection']);_0x1b8ce6['model']['change'](()=>{_0x1a81d7['markBlockFormat'](_0x35ea7c,{'commandName':'imageTypeInline','commandParams':[_0x1a6d63]},[],'convertBlockImageToInline');});}),_0x1a81d7['enableCommand']('imageTypeBlock',(_0x247ab,_0x3e8ed0)=>{_0x1b8ce6['model']['change'](_0x5d89db=>{let _0x461a12=_0x289677['getClosestSelectedImageElement'](_0x1b8ce6['model']['document']['selection']),_0x3e7798=_0x5d89db['createRangeOn'](_0x461a12);const _0x415e9e=_0x4f345c['fromPosition'](_0x3e7798['start'],'toPrevious'),_0x57c1fa=_0x4f345c['fromPosition'](_0x3e7798['end'],'toNext');_0x1a81d7['forceDefaultExecution'](()=>_0x247ab(_0x3e8ed0)),_0x461a12=_0x289677['getClosestSelectedImageElement'](_0x1b8ce6['model']['document']['selection']),_0x3e7798=_0x5d89db['createRangeOn'](_0x461a12);const _0x24e2f3=_0x5d89db['createRange'](_0x415e9e,_0x57c1fa);_0x415e9e['detach'](),_0x57c1fa['detach'](),_0x1a81d7['markBlockFormat'](_0x461a12,{'commandName':'imageTypeInline','commandParams':[_0x3e8ed0]},[],'convertInlineImageToBlock'),_0x24e2f3['start']['isBefore'](_0x3e7798['start'])&&_0x1a81d7['markInsertion'](_0x5d89db['createRange'](_0x24e2f3['start'],_0x3e7798['start']),'convertInlineImageToBlock'),_0x3e7798['end']['isBefore'](_0x24e2f3['end'])&&_0x1a81d7['markInsertion'](_0x5d89db['createRange'](_0x3e7798['end'],_0x24e2f3['end']),'convertInlineImageToBlock');});}),_0x1a81d7['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x1a81d7['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x1a81d7['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x1a81d7['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x1a81d7['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x1a81d7['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x2dd9ed])=>{const _0xe40ee8=_0x1a81d7['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x1503be=_0x2dd9ed['start'],_0x23e920=_0x2dd9ed['end'];const _0x46a6b7=_0x1b8ce6['model']['schema']['getNearestSelectionRange'](_0x1503be,'backward'),_0x4abb1a=_0x1b8ce6['model']['schema']['getNearestSelectionRange'](_0x23e920,'forward');_0x46a6b7['isCollapsed']&&(_0x1503be=_0x46a6b7['start']),_0x4abb1a['isCollapsed']&&(_0x23e920=_0x4abb1a['end']),_0xe40ee8([_0x1b8ce6['model']['createRange'](_0x1503be,_0x23e920)]);}),_0x1a81d7['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2f5d32),_0x1a81d7['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2f5d32)),_0x1b8ce6['plugins']['has']('ImageCaptionEditing')&&(_0x1a81d7['enableCommand']('toggleImageCaption',(_0x26c3bc,_0x5ecd23)=>{const _0x1a5721=_0x1b8ce6['plugins']['get']('ImageCaptionUtils');let _0x13946c=_0x289677['getClosestSelectedImageElement'](_0x1b8ce6['model']['document']['selection']),_0xdc3e73=_0x1a5721['getCaptionFromImageModelElement'](_0x13946c);_0x1b8ce6['model']['change'](()=>{if(_0xdc3e73)return void _0x1a81d7['markDeletion'](_0x1b8ce6['model']['createRangeOn'](_0xdc3e73));const _0x34e637=_0x289677['isBlockImage'](_0x13946c);_0x26c3bc(_0x5ecd23),_0x13946c=_0x289677['getClosestSelectedImageElement'](_0x1b8ce6['model']['document']['selection']),_0xdc3e73=_0x1a5721['getCaptionFromImageModelElement'](_0x13946c),_0x1a81d7['markInsertion'](_0x1b8ce6['model']['createRangeOn'](_0xdc3e73),_0x34e637?null:'imageCaption');});}),_0x1a81d7['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2f5d32));const _0x3f2025=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x38c663(_0x1fc8c2,_0x256f4c){const _0x48ca10=_0x3f2025['findIndex'](({type:_0x5636dc,subType:_0x47ad87})=>_0x1fc8c2['type']==_0x5636dc&&_0x1fc8c2['subType']==_0x47ad87),_0x305280=_0x3f2025['findIndex'](({type:_0xc46f0,subType:_0x3eb797})=>_0x256f4c['type']==_0xc46f0&&_0x256f4c['subType']==_0x3eb797);if(_0x48ca10<0x0||_0x305280<0x0)return!0x1;const _0x427ced=_0x1fc8c2['getFirstRange'](),_0x35b54e=_0x256f4c['getFirstRange']();if((0x0==_0x48ca10||0x1==_0x48ca10)&&0x2==_0x305280&&_0x427ced['isIntersecting'](_0x35b54e))return!0x0;if(0x2==_0x48ca10&&0x3==_0x305280){const _0x298d07=_0x1a81d7['_findSuggestions'](_0x427ced,'insertion')['filter'](({suggestion:_0x1863ac,meta:_0x48f013})=>_0x48f013['isOwn']&&'convertInlineImageToBlock'==_0x1863ac['subType']);if(_0x298d07['length']>0x1&&_0x35b54e['end']['isEqual'](_0x427ced['start']))return!0x0;if(0x1==_0x298d07['length']&&(_0x427ced['start']['isEqual'](_0x35b54e['end'])||_0x427ced['end']['isEqual'](_0x35b54e['start'])))return!0x0;}if(0x3==_0x48ca10&&0x3==_0x305280&&_0x427ced['start']['isBefore'](_0x35b54e['start'])){const _0x34ef62=_0x427ced['end']['nodeAfter'],_0x409493=_0x35b54e['start']['nodeBefore'];return _0x289677['isBlockImage'](_0x34ef62)&&_0x34ef62===_0x409493;}return!0x1;}function _0x2f5d32(_0x543551,_0x50c18d){return _0x38c663(_0x543551,_0x50c18d)?[_0x543551,_0x50c18d]:_0x38c663(_0x50c18d,_0x543551)?[_0x50c18d,_0x543551]:null;}_0x1b8ce6['plugins']['has']('ImageResize')&&(_0x1a81d7['enableDefaultAttributesIntegration']('resizeImage'),_0x1a81d7['registerBlockAttribute']('resizedWidth'),_0x1a81d7['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x27e14c,'FORMAT_IMAGE_SIZE'))),_0x1b8ce6['plugins']['has']('ImageTextAlternativeEditing')&&(_0x1a81d7['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x1a81d7['registerBlockAttribute']('alt')),_0x1b8ce6['plugins']['has']('PictureEditing')&&(_0x1a81d7['registerBlockAttribute']('sources'),_0x1a81d7['descriptionFactory']['registerDescriptionCallback'](_0x448c21=>{if('attribute'!=_0x448c21['type'])return;const {data:_0x4d42e5}=_0x448c21;return _0x4d42e5&&'sources'==_0x4d42e5['key']?{'type':'format','content':''}:void 0x0;})),_0x1b8ce6['plugins']['has']('ImageSizeAttributes')&&(_0x1a81d7['registerBlockAttribute']('width'),_0x1a81d7['registerBlockAttribute']('height'),_0x1a81d7['descriptionFactory']['registerDescriptionCallback'](_0x480ebd=>{if('attribute'!=_0x480ebd['type'])return;const {data:_0xdeb164}=_0x480ebd;return!_0xdeb164||'width'!=_0xdeb164['key']&&'height'!=_0xdeb164['key']?void 0x0:{'type':'format','content':''};})),_0x1a81d7['descriptionFactory']['registerDescriptionCallback'](_0x967127=>{if(!!_0x3f2025['find'](({type:_0x2128d9,subType:_0x16f6e0})=>_0x967127['type']==_0x2128d9&&_0x967127['subType']==_0x16f6e0))return _0x967127['previous']?{}:void 0x0;}),_0x1a81d7['descriptionFactory']['registerDescriptionCallback'](_0x2ce075=>{if('insertion'==_0x2ce075['type']||'deletion'==_0x2ce075['type']){const _0x4ecd66=_0x2ce075['getContainedElement']();if(_0x4ecd66&&_0x4ecd66['is']('element','caption'))return{'type':'insertion'==_0x2ce075['type']?'addObject':'removeObject','element':_0x4ecd66,'quantity':0x1};}}),_0x1a81d7['descriptionFactory']['registerDescriptionCallback'](_0x123abd=>'formatBlock'==_0x123abd['type']&&'convertInlineImageToBlock'==_0x123abd['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x123abd['type']&&'convertBlockImageToInline'==_0x123abd['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x1a81d7['descriptionFactory']['registerDescriptionCallback'](_0x1be3f4=>{if('attribute'!=_0x1be3f4['type'])return;const {data:_0x3b737f}=_0x1be3f4;if(!_0x3b737f||'alt'!=_0x3b737f['key'])return;const _0x36b44b=_0x3b737f['newValue'];return _0x36b44b?{'type':'format','content':o(_0x27e14c,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x36b44b+'\x22')}:{'type':'format','content':o(_0x27e14c,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4725d5=this['editor'],_0x576de8=_0x4725d5['locale'];_0x4725d5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ec77b=>{if('formatBlock'!=_0x1ec77b['type']&&'formatInline'!=_0x1ec77b['type'])return;const {data:_0x2499c1}=_0x1ec77b;if(_0x2499c1){if('imageTextAlternative'==_0x2499c1['commandName']){const _0xa9ff29=_0x2499c1['commandParams'][0x0]['newValue'];return _0xa9ff29?{'type':'format','content':o(_0x576de8,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xa9ff29+'\x22')}:{'type':'format','content':o(_0x576de8,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x2499c1['commandName']){const _0x1b0ef3=_0x2499c1['commandParams'][0x0]['width'];return _0x1b0ef3?{'type':'format','content':o(_0x576de8,'*Set\x20image\x20width:*\x20%0',_0x1b0ef3)}:{'type':'format','content':o(_0x576de8,'*Reset\x20image\x20width*')};}}});}}class ut extends _0x1ac4a7{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x246de7=this['editor']['locale'],_0x1d3f9e=this['editor']['plugins']['get']('TrackChangesEditing');_0x1d3f9e['enableDefaultAttributesIntegration']('replaceImageSource'),_0x1d3f9e['registerBlockAttribute']('src'),_0x1d3f9e['descriptionFactory']['registerDescriptionCallback'](_0x27bdd7=>{if('attribute'!=_0x27bdd7['type'])return;const {data:_0x5212bb}=_0x27bdd7;return _0x5212bb&&'src'==_0x5212bb['key']?_0x5212bb['newValue']&&_0x5212bb['oldValue']?{'type':'format','content':o(_0x246de7,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x30c252=this['editor']['plugins']['get']('TrackChangesEditing');_0x30c252['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x30c252['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x30c252['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x30c252['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x965a14=this['editor'],_0x3560ad=_0x965a14['locale'];_0x965a14['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x120b88=>{if('formatBlock'!=_0x120b88['type']&&'formatInline'!=_0x120b88['type'])return;const {data:_0x115dea}=_0x120b88;if(!_0x115dea||'replaceImageSource'!=_0x115dea['commandName'])return;return{'type':'format','content':o(_0x3560ad,'*Format:*\x20replace\x20image\x20URL')};});}}class ft extends _0x1ac4a7{['afterInit'](){const _0x5387e5=this['editor'];if(!_0x5387e5['plugins']['has']('ImageStyleEditing'))return;const _0x3a86fe=_0x5387e5['plugins']['get']('TrackChangesEditing'),_0x227e93=_0x5387e5['plugins']['get']('ImageUtils'),_0x5c35c8={};_0x3a86fe['enableCommand']('imageStyle',(_0x3d42ef,_0x3e4914)=>{const _0x21fbc1=_0x5387e5['plugins']['get']('Users')['me'],_0x28ca17=_0x5387e5['commands']['get']('imageStyle');let _0x226793=_0x227e93['getClosestSelectedImageElement'](_0x5387e5['model']['document']['selection']),_0x32adfa=_0x5387e5['model']['createRangeOn'](_0x226793),_0x2f5bf4=_0x28ca17['value'];if(_0x2f5bf4==_0x3e4914['value'])return;const _0x1428e4={'commandName':'imageStyle','commandParams':[_0x3e4914],'formatGroupId':_0x668662()};_0x5387e5['model']['change'](()=>{if(_0x3a86fe['getSuggestions']()['filter'](_0x5cbbd1=>_0x5cbbd1['isInContent']&&_0x21fbc1==_0x5cbbd1['author']&&('formatBlock'==_0x5cbbd1['type']||'formatInline'==_0x5cbbd1['type'])&&('imageStylePreApply'==_0x5cbbd1['subType']||'imageStylePostApply'==_0x5cbbd1['subType'])&&_0x5cbbd1['getFirstRange']()['isEqual'](_0x32adfa))['forEach'](_0x5f5b56=>_0x3a86fe['discardSuggestion'](_0x5f5b56['head'])),_0x226793=_0x227e93['getClosestSelectedImageElement'](_0x5387e5['model']['document']['selection']),_0x32adfa=_0x5387e5['model']['createRangeOn'](_0x226793),_0x28ca17['refresh'](),_0x5387e5['commands']['get']('imageTypeInline')['refresh'](),_0x5387e5['commands']['get']('imageTypeBlock')['refresh'](),_0x2f5bf4=_0x28ca17['value'],_0x2f5bf4!=_0x3e4914['value'])return _0x227e93['isInlineImage'](_0x226793)&&_0x28ca17['shouldConvertImageType'](_0x3e4914['value'],_0x226793)?(_0x3d42ef({..._0x3e4914,'setImageSizes':!0x1}),_0x226793=_0x227e93['getClosestSelectedImageElement'](_0x5387e5['model']['document']['selection']),void _0x3a86fe['markBlockFormat'](_0x226793,{..._0x1428e4,'commandReversedParams':[{'value':_0x2f5bf4||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x227e93['isBlockImage'](_0x226793)?_0x3a86fe['markBlockFormat'](_0x226793,_0x1428e4,[],'imageStylePostApply'):_0x3a86fe['markInlineFormat'](_0x32adfa,_0x1428e4,'imageStylePostApply'));});});for(const _0x5bd1e5 of _0x5387e5['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x5c35c8[_0x5bd1e5['name']]=_0x5bd1e5['title']['toLowerCase']();_0x3a86fe['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x3a86fe['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x3a86fe['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x3a86fe['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x37bf93])=>{_0x227e93['setImageNaturalSizeAttributes'](_0x37bf93['getContainedElement']());}),_0x3a86fe['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x41d051,_0xea6cc4)=>{_0x3a86fe['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x41d051,{'commandName':_0xea6cc4['commandName'],'commandParams':_0xea6cc4['commandReversedParams']});}),_0x3a86fe['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0xaa7dc,_0x5730a3){if(_0x36b3aa(_0xaa7dc,_0x5730a3))return[_0xaa7dc,_0x5730a3];if(_0x36b3aa(_0x5730a3,_0xaa7dc))return[_0x5730a3,_0xaa7dc];return null;});const _0x32eaeb=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x36b3aa(_0xd64505,_0xbe30e1){const _0x5247cc=_0x32eaeb['findIndex'](({type:_0x8c9070,subType:_0xe978c9})=>_0xd64505['type']==_0x8c9070&&_0xd64505['subType']==_0xe978c9),_0x10037d=_0x32eaeb['findIndex'](({type:_0x274637,subType:_0x5327cb})=>_0xbe30e1['type']==_0x274637&&_0xbe30e1['subType']==_0x5327cb);if(_0x5247cc<0x0||_0x10037d<0x0)return!0x1;const _0x1a8e92=_0xd64505['getFirstRange'](),_0x4be73c=_0xbe30e1['getFirstRange']();if((0x0==_0x5247cc||0x1==_0x5247cc)&&0x2==_0x10037d&&_0x1a8e92['isIntersecting'](_0x4be73c))return!0x0;if(0x2==_0x5247cc&&0x3==_0x10037d){const _0x57247e=_0x3a86fe['_findSuggestions'](_0x1a8e92,'insertion')['filter'](({suggestion:_0x477ade,meta:_0x3db08c})=>_0x3db08c['isOwn']&&'convertInlineImageToBlock'==_0x477ade['subType']);if(_0x57247e['length']>0x1&&_0x4be73c['end']['isEqual'](_0x1a8e92['start']))return!0x0;if(0x1==_0x57247e['length']&&(_0x1a8e92['start']['isEqual'](_0x4be73c['end'])||_0x1a8e92['end']['isEqual'](_0x4be73c['start'])))return!0x0;}if(0x3==_0x5247cc&&0x3==_0x10037d&&_0x1a8e92['start']['isBefore'](_0x4be73c['start'])){const _0x2e6a34=_0x1a8e92['end']['nodeAfter'],_0x179ce1=_0x4be73c['start']['nodeBefore'];return _0x227e93['isBlockImage'](_0x2e6a34)&&_0x2e6a34===_0x179ce1;}return!0x1;}_0x5387e5['model']['document']['registerPostFixer'](()=>{let _0x3e3517=!0x1;const _0x358efb=Array['from'](_0x5387e5['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3cd726,data:_0x28da07}of _0x358efb){const {group:_0x42059b,type:_0x23dcc2,subType:_0x28bbac,id:_0x568625}=_0x3a86fe['_splitMarkerName'](_0x3cd726);if('suggestion'==_0x42059b&&_0x3a86fe['hasSuggestion'](_0x568625)){if('formatBlock'==_0x23dcc2&&('imageStylePreApply'==_0x28bbac||'imageStylePostApply'==_0x28bbac)){const _0x155bf5=_0x3a86fe['getSuggestion'](_0x568625);if(_0x28da07['newRange']){const _0x22a987=_0x155bf5['getFirstRange']()['getContainedElement']();if(_0x227e93['isBlockImage'](_0x22a987))continue;_0x3a86fe['discardSuggestion'](_0x155bf5),_0x3e3517=!0x0;}}if('insertion'==_0x23dcc2&&'imageCaption'==_0x28bbac&&!_0x28da07['newRange']){const _0x30cef2=_0x3a86fe['getSuggestion'](_0x568625);_0x30cef2['next']&&_0x30cef2['next']['isInContent']&&(_0x3a86fe['discardSuggestion'](_0x30cef2['next']),_0x3e3517=!0x0);}}}return _0x3e3517;}),this['_registerLegacyDescription'](_0x5c35c8);}['_registerLegacyDescription'](_0x3e2e25){const _0x2a082c=this['editor'],_0x1c55e6=_0x2a082c['locale'];_0x2a082c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x43e4b1=>{if('formatBlock'!=_0x43e4b1['type']&&'formatInline'!=_0x43e4b1['type'])return;const {data:_0x184530}=_0x43e4b1;if(!_0x184530||'imageStyle'!=_0x184530['commandName'])return;const _0x144b7d=_0x184530['commandParams'][0x0]['value'];return _0x2b204a('side'===_0x144b7d?o(_0x1c55e6,'FORMAT_SIDE_IMAGE'):_0x3e2e25[_0x144b7d]||_0x144b7d);function _0x2b204a(_0x4ab7dc){return{'type':'format','content':o(_0x1c55e6,'*Format:*\x20%0',_0x4ab7dc)};}});}}class ht extends _0x1ac4a7{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x108e5b){super(_0x108e5b),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x3bcf5b=this['editor'],_0x458049=_0x3bcf5b['commands']['get']('importWord'),_0x5714b2=_0x3bcf5b['commands']['get']('trackChanges');_0x458049&&(_0x458049['on']('execute',(_0xe09a71,[,_0x5e5c9c])=>{this['_trackChangesValueDuringImport']=_0x5714b2['value'],_0x5e5c9c['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x458049,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x458049,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x5714b2['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x3bcf5b['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x16817c,_0x52fad4){const {suggestions:_0x9f40e}=_0x52fad4,_0x1fe4ff=this['editor']['commands']['get']('trackChanges'),_0x25b764=_0x1fe4ff['value'];this['_trackChangesValueDuringImport']!==_0x25b764&&(_0x1fe4ff['execute'](),this['_trackChangesExecuted']=!0x0),_0x9f40e&&_0x9f40e['forEach'](({id:_0x3f9590,type:_0x354946,author:_0x5b5bff,created_at:_0x46c0e9})=>{const _0x21fa3e={'id':_0x3f9590,'type':_0x354946,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x5b5bff,'createdAt':_0x46c0e9?new Date(_0x46c0e9):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x21fa3e);});}}class gt extends _0x1ac4a7{['afterInit'](){const _0x16eced=this['editor'],_0x239e06=_0x16eced['plugins']['get']('TrackChangesEditing');if(_0x16eced['plugins']['has']('IndentEditing')&&(_0x239e06['enableCommand']('indent'),_0x239e06['enableCommand']('outdent')),_0x16eced['plugins']['has']('IndentBlock')){for(const _0x342e54 of['indentBlock','outdentBlock'])_0x239e06['enableDefaultAttributesIntegration'](_0x342e54);}const _0x4ba247=_0x16eced['locale'];_0x239e06['registerBlockAttribute']('blockIndent'),_0x239e06['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x4ba247,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3168c0=this['editor'],_0x4ffaa2=_0x3168c0['locale'],_0x5c26c1=_0x3168c0['plugins']['get']('TrackChangesEditing');_0x5c26c1['descriptionFactory']['registerDescriptionCallback'](_0x3932c7=>{if('formatBlock'!=_0x3932c7['type'])return;const {data:_0x4aced1}=_0x3932c7;if(!_0x4aced1)return;if('indentBlock'!=_0x4aced1['commandName']&&'outdentBlock'!=_0x4aced1['commandName'])return;const _0x1410f0=_0x3932c7['getItems']()[0x0],_0x1edfe4=_0x5c26c1['descriptionFactory']['getItemLabel'](_0x1410f0);return'indentBlock'==_0x4aced1['commandName']?{'type':'format','content':o(_0x4ffaa2,'*Indent:*\x20%0',_0x1edfe4)}:'outdentBlock'==_0x4aced1['commandName']?{'type':'format','content':o(_0x4ffaa2,'*Outdent:*\x20%0',_0x1edfe4)}:void 0x0;});}}class lt extends _0x1ac4a7{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class dt extends _0x1ac4a7{['afterInit'](){const _0x444bc7=this['editor'];if(!_0x444bc7['plugins']['has']('LinkEditing'))return;const _0x5d4e4d=_0x444bc7['plugins']['get']('TrackChangesEditing'),_0x1362dc=_0x444bc7['commands']['get']('link');_0x5d4e4d['enableDefaultAttributesIntegration']('link'),_0x5d4e4d['enableDefaultAttributesIntegration']('unlink'),_0x5d4e4d['registerInlineAttribute']('linkHref');for(const _0x364ed1 of _0x1362dc['manualDecorators'])_0x5d4e4d['registerInlineAttribute'](_0x364ed1['id']),_0x5d4e4d['descriptionFactory']['registerAttributeLabel'](_0x364ed1['id'],'link\x20('+_0x364ed1['label']['toLowerCase']()+')');_0x5d4e4d['descriptionFactory']['registerDescriptionCallback'](_0xb6aba5=>{if('attribute'!=_0xb6aba5['type'])return;const {data:_0x4716c7}=_0xb6aba5;if(!_0x4716c7||'linkHref'!=_0x4716c7['key'])return;const _0x402715=_0x4716c7['newValue'],_0x3bd343=_0x444bc7['locale'];return{'type':'format','content':null==_0x402715?o(_0x3bd343,'*Remove\x20link*'):o(_0x3bd343,'*Set\x20link:*\x20%0','\x22'+_0x402715+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1e7f61=this['editor'],_0x1c0c69=_0x1e7f61['locale'];_0x1e7f61['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e9ae9=>{if('formatInline'!=_0x5e9ae9['type'])return;const {data:_0x2e2d21}=_0x5e9ae9;if(_0x2e2d21){if('link'==_0x2e2d21['commandName']){const _0x63e7ef=_0x2e2d21['commandParams'][0x0];return{'type':'format','content':o(_0x1c0c69,'*Set\x20link:*\x20%0','\x22'+_0x63e7ef+'\x22')};}return'unlink'==_0x2e2d21['commandName']?{'type':'format','content':o(_0x1c0c69,'*Remove\x20link*')}:void 0x0;}});}}class mt extends _0x1ac4a7{['afterInit'](){const _0x8d56ec=this['editor'],_0x447127=_0x8d56ec['locale'];if(!_0x8d56ec['plugins']['has']('LegacyListEditing'))return;const _0x389601=_0x8d56ec['plugins']['get']('TrackChangesEditing'),_0x2cfcd2=_0x8d56ec['plugins']['has']('LegacyTodoListEditing');function _0xd49148(_0x1dc122){return()=>{const _0xa9ef5=_0x8d56ec['model']['document']['selection'],_0x547d86=_0x8d56ec['commands']['get'](_0x1dc122);if(_0x547d86['value'])return void _0x8d56ec['execute']('paragraph',{});const _0x37ec28=_0x1dc122['slice'](0x0,-0x4),_0x50d835=function(_0x2bb7b7,_0x550fb8,_0x43df37){let _0xc72dc2=Array['from'](_0x2bb7b7)['filter'](_0x27e126=>function(_0x6085f3,_0x4c8841){return _0x4c8841['checkChild'](_0x6085f3['parent'],'listItem')&&!_0x4c8841['isObject'](_0x6085f3);}(_0x27e126,_0x43df37));_0xc72dc2=_0xc72dc2['filter'](_0x468d35=>!_0x468d35['is']('element','listItem')||_0x468d35['getAttribute']('listType')!=_0x550fb8);const _0x2a1442=new Set();for(const _0x246b90 of _0xc72dc2)_0x246b90['is']('element','listItem')?_0x2a1442['add'](Ne(_0x246b90)):_0x2a1442['add'](_0x246b90);return Array['from'](_0x2a1442);}(_0xa9ef5['getSelectedBlocks'](),_0x37ec28,_0x8d56ec['model']['schema']);_0x8d56ec['model']['change'](()=>{for(const _0x34a3e2 of _0x50d835)_0x389601['markBlockFormat'](_0x34a3e2,{'commandName':_0x1dc122,'commandParams':[{'forceValue':!_0x547d86['value']}],'formatGroupId':'blockName'},Se(_0x34a3e2));});};}function _0x9b3bdb(_0x3273a7){return()=>{const _0xc20be6=function(_0x1a1405){let _0xf7a6be=Array['from'](_0x1a1405);const _0x4042d5=_0xf7a6be['findIndex'](_0x5bc20e=>'listItem'!=_0x5bc20e['name']);return _0x4042d5>-0x1&&(_0xf7a6be=_0xf7a6be['slice'](0x0,_0x4042d5)),_0xf7a6be;}(_0x8d56ec['model']['document']['selection']['getSelectedBlocks']()),_0x4d40db=_0x8d56ec['model']['createRange'](_0x8d56ec['model']['createPositionAt'](_0xc20be6[0x0],'before'),_0x8d56ec['model']['createPositionAt'](_0xc20be6[_0xc20be6['length']-0x1],'end'));_0x8d56ec['model']['change'](()=>{_0x389601['markBlockFormat'](_0x4d40db,{'commandName':_0x3273a7,'commandParams':[],'formatGroupId':'listIndent'},function(_0x55d584){const _0x535a26=new Set();for(const _0x5b3ad1 of _0x55d584){let _0xcc4bc3=_0x5b3ad1['nextSibling'];for(;_0xcc4bc3&&_0xcc4bc3['getAttribute']('listIndent')>_0x5b3ad1['getAttribute']('listIndent');)_0x535a26['add'](_0xcc4bc3),_0xcc4bc3=_0xcc4bc3['nextSibling'];}return Array['from'](_0x535a26);}(_0xc20be6));});};}_0x389601['enableCommand']('numberedList',_0xd49148('numberedList')),_0x389601['enableCommand']('bulletedList',_0xd49148('bulletedList')),_0x2cfcd2&&_0x389601['enableCommand']('todoList',_0xd49148('todoList')),_0x389601['enableCommand']('indentList',_0x9b3bdb('indentList')),_0x389601['enableCommand']('outdentList',_0x9b3bdb('outdentList')),_0x2cfcd2&&_0x389601['enableCommand']('checkTodoList',()=>{const _0x47c8e4=_0x8d56ec['commands']['get']('checkTodoList'),_0x12d313=Array['from'](_0x47c8e4['_selectedElements']);_0x12d313['filter'](_0x399552=>_0x399552['getAttribute']('todoListChecked')!=_0x47c8e4['value']),_0x8d56ec['model']['change'](()=>{for(const _0x1de53b of _0x12d313)_0x389601['markBlockFormat'](_0x1de53b,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x47c8e4['value']}]});});}),_0x389601['descriptionFactory']['registerElementLabel']('listItem',_0x247983=>o(_0x447127,'ELEMENT_LIST_ITEM',_0x247983)),_0x389601['descriptionFactory']['registerDescriptionCallback'](_0x46ff0c=>{if('formatBlock'!=_0x46ff0c['type']&&'formatInline'!=_0x46ff0c['type'])return;const {data:_0x94fdb3}=_0x46ff0c;if(_0x94fdb3){if('numberedList'==_0x94fdb3['commandName']||'bulletedList'==_0x94fdb3['commandName']||'todoList'==_0x94fdb3['commandName'])switch(_0x94fdb3['commandName']['replace']('List','')){case'bulleted':return _0x45de63(o(_0x447127,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x45de63(o(_0x447127,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x45de63(o(_0x447127,'ELEMENT_TODO_LIST'));}if('indentList'==_0x94fdb3['commandName'])return{'type':'format','content':o(_0x447127,'*Indent:*\x20%0',o(_0x447127,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x94fdb3['commandName'])return{'type':'format','content':o(_0x447127,'*Outdent:*\x20%0',o(_0x447127,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x94fdb3['commandName'])return _0x94fdb3['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x447127,'*Check\x20item*')}:{'type':'format','content':o(_0x447127,'*Uncheck\x20item*')};}function _0x45de63(_0x3d893c){return{'type':'format','content':o(_0x447127,'*Change\x20to:*\x20%0',_0x3d893c)};}});}}function Ne(_0x1edd3f){const _0x1b3f0b=_0x1edd3f['getAttribute']('listIndent');if(0x0==_0x1b3f0b)return _0x1edd3f;let _0x12d038=_0x1edd3f;for(;_0x1edd3f['previousSibling']&&_0x1edd3f['previousSibling']['is']('element','listItem');){const _0x3701c3=_0x1edd3f['previousSibling']['getAttribute']('listIndent');if(_0x3701c3==_0x1b3f0b)_0x12d038=_0x1edd3f['previousSibling'];else{if(_0x3701c3<_0x1b3f0b)break;}_0x1edd3f=_0x1edd3f['previousSibling'];}return _0x12d038;}function Se(_0x13b979){const _0x351af2=[];if(_0x13b979['is']('element','listItem')&&_0x13b979['getAttribute']('listIndent')>0x0){let _0x4ed047=_0x13b979['nextSibling'];for(;_0x4ed047&&'listItem'==_0x4ed047['name']&&_0x4ed047['getAttribute']('listIndent')==_0x13b979['getAttribute']('listIndent');)_0x351af2['push'](_0x4ed047),_0x4ed047=_0x4ed047['nextSibling'];}return _0x351af2;}class pt extends _0x1ac4a7{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x9cf233=this['editor']['config']['get']('list.properties'),_0x297bcb=this['editor']['plugins']['get']('TrackChangesEditing');_0x9cf233['styles']&&_0x297bcb['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x9cf233['reversed']&&_0x297bcb['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x9cf233['startIndex']&&_0x297bcb['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x297bcb['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x468038,_0x212df3={}){const _0x21890f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x42ca95=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x21890f['markMultiRangeBlockFormat'](_0x42ca95,{'commandName':'listStyle','commandParams':[{'type':_0x212df3['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x414472,_0x3444fd={}){const _0x421ce6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x42180b=this['_getSuggestionBlocks'](_0x58b231=>_0x58b231['is']('element','listItem')&&'numbered'===_0x58b231['getAttribute']('listType'));if(_0x42180b['length']<0x1)return;const _0x3b6d13=_0x42180b['map'](_0x19c37c=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x19c37c,'before'),this['editor']['model']['createPositionAt'](_0x19c37c,0x0)));this['editor']['model']['change'](()=>{_0x421ce6['markMultiRangeBlockFormat'](_0x3b6d13,{'commandName':'listReversed','commandParams':[{'reversed':_0x3444fd['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x322bcb,_0x21ff3a={}){const _0x17a2a0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2a3cfd=this['_getSuggestionBlocks'](_0x309d08=>_0x309d08['is']('element','listItem')&&'numbered'===_0x309d08['getAttribute']('listType'));if(_0x2a3cfd['length']<0x1)return;const _0x6bad62=_0x2a3cfd['map'](_0x5bd150=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5bd150,'before'),this['editor']['model']['createPositionAt'](_0x5bd150,0x0)));this['editor']['model']['change'](()=>{_0x17a2a0['markMultiRangeBlockFormat'](_0x6bad62,{'commandName':'listStart','commandParams':[{'startIndex':_0x21ff3a['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x3038b9){if('formatBlock'!=_0x3038b9['type']&&'formatInline'!=_0x3038b9['type'])return;const _0x1ce8ee=this['editor']['locale'],{data:_0x36401}=_0x3038b9;if(!_0x36401)return;let _0x3bfc3f,_0x56e1d7;switch(_0x36401['commandName']){case'listStyle':_0x3bfc3f='*Change\x20to:*\x20%0',_0x56e1d7={'type':'format','content':o(_0x1ce8ee,_0x3bfc3f,o(_0x1ce8ee,this['_getTranslationKeyForListStyle'](_0x36401['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3bfc3f=_0x36401['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x56e1d7={'type':'format','content':o(_0x1ce8ee,_0x3bfc3f)};break;case'listStart':_0x3bfc3f='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x56e1d7={'type':'format','content':o(_0x1ce8ee,_0x3bfc3f,_0x36401['commandParams'][0x0]['startIndex'])};}return _0x56e1d7;}['_getSuggestionBlocksForListStyle'](){const _0xb143a6=this['editor']['plugins']['get']('LegacyListUtils');let _0x563baf=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x563baf[0x0]?.['is']('element','listItem')&&_0x563baf['unshift'](..._0xb143a6['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x563baf[_0x563baf['length']-0x1]?.['is']('element','listItem')&&_0x563baf['push'](..._0xb143a6['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x563baf=[...new Set(_0x563baf)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x563baf=_0x563baf['filter'](_0x273c45=>_0x273c45['is']('element','listItem'))),_0x563baf;}['_getSuggestionBlocks'](_0x449bcc){const _0x54de54=this['editor']['plugins']['get']('LegacyListUtils');let _0x1cfe42=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x449bcc)['map'](_0x850481=>{const _0x550976=this['editor']['model']['createPositionAt'](_0x850481,0x0);return[..._0x54de54['getSiblingNodes'](_0x550976,'backward'),..._0x54de54['getSiblingNodes'](_0x550976,'forward')];})['flat']();return _0x1cfe42=[...new Set(_0x1cfe42)],_0x1cfe42;}['_getTranslationKeyForListStyle'](_0x50a2b6){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x50a2b6)||'default')['toUpperCase']()+'_LIST_'+_0x50a2b6['toUpperCase']()['replace'](/-/g,'_');}}class kt extends _0x1ac4a7{['afterInit'](){const _0x36e58a=this['editor'];if(!_0x36e58a['plugins']['has']('MediaEmbedEditing'))return;const _0x4db4be=_0x36e58a['plugins']['get']('TrackChangesEditing'),_0x9ee36e=_0x36e58a['locale'];_0x4db4be['enableCommand']('mediaEmbed'),_0x4db4be['descriptionFactory']['registerElementLabel']('media',_0x1351a1=>o(_0x9ee36e,'ELEMENT_MEDIA',_0x1351a1)),_0x36e58a['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x18749d,{writer:_0x47eb4f,options:_0x122730})=>{if(_0x122730['showSuggestionHighlights'])return _0x47eb4f['createEmptyElement']('div');},'converterPriority':'high'}),_0x36e58a['data']['downcastDispatcher']['on']('attribute:url:media',(_0x2dd33a,_0x2fdb35,_0x5dbae8)=>{_0x5dbae8['options']['showSuggestionHighlights']&&_0x2dd33a['stop']();},{'priority':'high'});}}class wt extends _0x1ac4a7{['afterInit'](){const _0x57f25a=this['editor'];_0x57f25a['plugins']['has']('MentionEditing')&&_0x57f25a['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class bt extends _0x1ac4a7{['afterInit'](){const _0x17117f=this['editor'];if(!_0x17117f['plugins']['has']('MergeFieldsEditing'))return;const _0x44510d=_0x17117f['plugins']['get']('TrackChangesEditing'),_0x205fbe=_0x17117f['locale'];_0x44510d['enableCommand']('insertMergeField'),_0x44510d['enableCommand']('insertMergeFieldBlock'),_0x44510d['enableCommand']('insertMergeFieldImage'),_0x44510d['descriptionFactory']['registerElementLabel']('mergeField',_0x4e97d3=>o(_0x205fbe,'ELEMENT_MERGE_FIELD',_0x4e97d3)),_0x44510d['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x166877=>o(_0x205fbe,'ELEMENT_MERGE_FIELD',_0x166877)),_0x44510d['descriptionFactory']['registerDescriptionCallback'](_0x12ba73=>{if('insertion'!=_0x12ba73['type']&&'deletion'!=_0x12ba73['type'])return;const _0x1221b2=_0x12ba73['getContainedElement']();if(null==_0x1221b2)return;const _0x1f3d22=_0x17117f['plugins']['get']('MergeFieldsEditing');let _0xf88d09;switch(_0x1f3d22['getMergeFieldType'](_0x1221b2)){case null:return;case'image':{const _0x24b4be=_0x1f3d22['unwrapAffixes'](_0x1221b2['getAttribute']('src'));_0xf88d09=_0x1f3d22['getLabel'](_0x24b4be)||_0x24b4be;break;}default:{const _0x2219f4=_0x1221b2['getAttribute']('id');_0xf88d09=_0x1f3d22['getLabel'](_0x2219f4)||_0x2219f4;break;}}return'insertion'==_0x12ba73['type']?{'type':'insertion','content':o(_0x205fbe,'*Insert:*\x20%0','\x22'+_0xf88d09+'\x22\x20'+o(_0x205fbe,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x205fbe,'*Remove:*\x20%0','\x22'+_0xf88d09+'\x22\x20'+o(_0x205fbe,'ELEMENT_MERGE_FIELD'))};});}}class yt extends _0x1ac4a7{['afterInit'](){const _0x5a04b6=this['editor'],_0x5f0d47=_0x5a04b6['plugins']['get']('TrackChangesEditing');_0x5a04b6['plugins']['has']('MultiLevelList')&&(_0x5f0d47['enableDefaultAttributesIntegration']('multiLevelList'),_0x5f0d47['registerBlockAttribute']('listMarkerStyle'),_0x5f0d47['descriptionFactory']['registerDescriptionCallback'](_0x4ccd4b=>this['handleDescriptions'](_0x4ccd4b)));}['handleDescriptions'](_0x175c9b){const _0x166ecf=this['editor']['locale'],{data:_0x3ab438}=_0x175c9b,_0x15c3df={'type':'format','content':''};if(_0x3ab438&&'listMarkerStyle'==_0x3ab438['key']){if(!_0x3ab438['oldValue'])return{'type':'format','content':o(_0x166ecf,'*Set\x20format:*\x20%0',o(_0x166ecf,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3ab438['newValue']+')'};if(!_0x3ab438['newValue']){let _0x19f507=_0x175c9b['head'];for(;_0x19f507;){if(_0x19f507['data']&&'listType'==_0x19f507['data']['key']&&_0x19f507['data']['newValue'])return _0x15c3df;_0x19f507=_0x19f507['next'];}return{'type':'format','content':o(_0x166ecf,'*Remove\x20format:*\x20%0',o(_0x166ecf,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3ab438['oldValue']+')'};}}}}class St extends _0x1ac4a7{['afterInit'](){const _0x1a5454=this['editor'];if(!_0x1a5454['plugins']['has']('PageBreakEditing'))return;_0x1a5454['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x1fa2a2=_0x1a5454['plugins']['get']('TrackChangesEditing'),_0x36f334=_0x1a5454['locale'];_0x1fa2a2['descriptionFactory']['registerElementLabel']('pageBreak',_0x4cfbf4=>o(_0x36f334,'ELEMENT_PAGE_BREAK',_0x4cfbf4));}}class jt extends _0x1ac4a7{['afterInit'](){const _0x361b3f=this['editor'];if(!_0x361b3f['plugins']['has']('Paragraph'))return;const _0x35010e=_0x361b3f['locale'],_0x39667a=_0x361b3f['plugins']['get']('TrackChangesEditing');_0x39667a['descriptionFactory']['registerElementLabel']('paragraph',_0xfe2445=>o(_0x35010e,'ELEMENT_PARAGRAPH',_0xfe2445)),_0x39667a['enableDefaultAttributesIntegration']('paragraph'),_0x39667a['enableCommand']('insertParagraph'),_0x361b3f['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x361b3f),{'priority':'highest'}),_0x361b3f['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x91e892,_0x52960b,_0x2d74df)=>{_0x2d74df['options']['showSuggestionHighlights']&&nr(_0x361b3f,{'showActiveMarker':!0x1})(_0x91e892,_0x52960b,_0x2d74df);},{'priority':'highest'});const _0x440a20=_0x39667a['descriptionFactory'];_0x440a20['registerDescriptionCallback'](_0x47973c=>{if('insertion'!==_0x47973c['type'])return;const {start:_0x51f5bc,end:_0x12b809}=_0x47973c['getFirstRange']();if(!_0x51f5bc['isTouching'](_0x12b809)||!_0x51f5bc['nodeAfter'])return;const _0x16ff86=_0x361b3f['model']['schema'],_0x1c9b0c=_0x51f5bc['nodeAfter'];return _0x16ff86['isBlock'](_0x1c9b0c)&&!_0x16ff86['isLimit'](_0x1c9b0c)&&_0x16ff86['checkChild'](_0x1c9b0c,'$text')?{'type':'insertion','content':o(_0x35010e,'*Insert:*\x20%0',_0x440a20['getItemLabel'](_0x1c9b0c,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x6728ad=this['editor'],_0x1c65f8=_0x6728ad['locale'];_0x6728ad['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x51b35c=>{if('formatBlock'!=_0x51b35c['type'])return;const {data:_0x3303d3}=_0x51b35c;return _0x3303d3&&'paragraph'==_0x3303d3['commandName']?{'type':'format','content':o(_0x1c65f8,'*Change\x20to:*\x20%0',o(_0x1c65f8,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x11d4c1,{showActiveMarker:_0x38ece3=!0x0}={}){return(_0x2eb241,_0x734659,_0x3cc418)=>{const _0x284657=_0x11d4c1['plugins']['get']('TrackChangesEditing'),_0x57e09b=_0x734659['markerRange']['start'],_0x11c34a=_0x734659['markerRange']['end'],_0x8badf5=_0x11d4c1['model']['schema'];if(!_0x57e09b['isTouching'](_0x11c34a)||!_0x57e09b['nodeAfter'])return;const _0x2f09d9=_0x57e09b['nodeAfter'];if(_0x8badf5['isBlock'](_0x2f09d9)&&!_0x8badf5['isLimit'](_0x2f09d9)&&_0x8badf5['checkChild'](_0x2f09d9,'$text')){if(!_0x3cc418['consumable']['consume'](_0x734659['markerRange'],_0x2eb241['name']))return;const {id:_0x51a2a6,authorId:_0x566143}=_0x284657['_splitMarkerName'](_0x734659['markerName']),_0x439f3f=_0x3cc418['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x51a2a6,'data-author-id':_0x566143}),_0x38c2a2=_0x3cc418['mapper']['toViewPosition'](_0x11c34a);_0x38ece3&&_0x284657['activeMarkers']['includes'](_0x734659['markerName'])&&_0x3cc418['writer']['addClass']('ck-suggestion-marker--active',_0x439f3f),_0x3cc418['writer']['insert'](_0x38c2a2,_0x439f3f),_0x3cc418['mapper']['bindElementToMarker'](_0x439f3f,_0x734659['markerName']);}};}class It extends _0x1ac4a7{['afterInit'](){const _0x68f7ee=this['editor'];_0x68f7ee['commands']['get']('replaceSource')&&_0x68f7ee['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class At extends _0x1ac4a7{['afterInit'](){const _0x2651e4=this['editor'];if(!_0x2651e4['plugins']['has']('RemoveFormatEditing'))return;_0x2651e4['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x46cd7a=this['editor'];_0x46cd7a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ec832=>{if('formatBlock'!=_0x1ec832['type']&&'formatInline'!=_0x1ec832['type'])return;const {data:_0x3d2adc}=_0x1ec832;return _0x3d2adc&&'removeFormat'==_0x3d2adc['commandName']?{'type':'format','content':o(_0x46cd7a['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class _t extends _0x1ac4a7{['afterInit'](){const _0x3f2a42=this['editor'];if(!_0x3f2a42['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x4c153a=_0x3f2a42['plugins']['get']('TrackChangesEditing');_0x4c153a['enableCommand']('goToPreviousRestrictedEditingException'),_0x4c153a['enableCommand']('goToNextRestrictedEditingException');const _0x604dbc=_0x3f2a42['plugins']['get']('RestrictedEditingModeEditing');_0x604dbc['enableCommand']('trackChanges'),_0x604dbc['enableCommand']('acceptSuggestion'),_0x604dbc['enableCommand']('discardSuggestion'),_0x604dbc['enableCommand']('acceptAllSuggestions'),_0x604dbc['enableCommand']('discardAllSuggestions'),_0x604dbc['enableCommand']('acceptSelectedSuggestions'),_0x604dbc['enableCommand']('discardSelectedSuggestions');}}class vt extends _0x1ac4a7{['afterInit'](){const _0x9d5c87=this['editor'];if(!_0x9d5c87['plugins']['has']('ShiftEnter'))return;const _0x26f066=_0x9d5c87['plugins']['get']('TrackChangesEditing');_0x26f066['enableCommand']('shiftEnter'),_0x9d5c87['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x9d5c87),{'priority':'high'}),_0x9d5c87['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x9d5c87),{'priority':'high'}),_0x9d5c87['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3b1894,_0x49aecf,_0x232ff3)=>{_0x232ff3['options']['showSuggestionHighlights']&&Fe(_0x9d5c87,{'showActiveMarker':!0x1})(_0x3b1894,_0x49aecf,_0x232ff3);}),_0x26f066['descriptionFactory']['registerElementLabel']('softBreak',_0x344ef7=>o(_0x9d5c87['locale'],'ELEMENT_LINE_BREAK',_0x344ef7));}}function Fe(_0x1eddf2,{showActiveMarker:_0x4bac62=!0x0}={}){return(_0x2affcf,_0x189d63,_0x2efc5a)=>{const _0x3ac06a=_0x1eddf2['plugins']['get']('TrackChangesEditing');if(!_0x2efc5a['consumable']['test'](_0x189d63['markerRange'],_0x2affcf['name']))return;const _0x4cd6fb=_0x1eddf2['model'];for(const _0x343fa3 of _0x189d63['markerRange']['getItems']()){if(!_0x343fa3['is']('element','softBreak'))continue;const _0x46bf97='deletion'==_0x189d63['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x52a263,authorId:_0x34e969}=_0x3ac06a['_splitMarkerName'](_0x189d63['markerName']),_0x5d1b31=_0x2efc5a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x46bf97,'data-suggestion':_0x52a263,'data-author-id':_0x34e969}),_0x50d672=_0x2efc5a['mapper']['toViewPosition'](_0x4cd6fb['createPositionBefore'](_0x343fa3));_0x4bac62&&_0x3ac06a['activeMarkers']['includes'](_0x189d63['markerName'])&&_0x2efc5a['writer']['addClass']('ck-suggestion-marker--active',_0x5d1b31),_0x2efc5a['writer']['insert'](_0x50d672,_0x5d1b31),_0x2efc5a['mapper']['bindElementToMarker'](_0x5d1b31,_0x189d63['markerName']);}};}class Ct extends _0x1ac4a7{['afterInit'](){const _0x408eb8=this['editor'],_0x401355=_0x408eb8['model'],_0x123603=_0x408eb8['locale'];if(!_0x408eb8['plugins']['has']('StandardEditingModeEditing'))return;const _0x37c6a2=_0x408eb8['plugins']['get']('TrackChangesEditing'),_0x7db150='restrictedEditingException',_0x57759b=_0x408eb8['commands']['get'](_0x7db150);_0x37c6a2['enableCommand'](_0x7db150,(_0x7f6097,_0x136440={})=>{const _0x42c713=_0x401355['document']['selection'];if(_0x42c713['isCollapsed'])return void _0x7f6097(_0x136440);const _0x27ec6f=void 0x0!==_0x136440['forceValue']?_0x136440['forceValue']:!_0x57759b['value'];_0x401355['change'](()=>{const _0x318bed=Array['from'](_0x42c713['getRanges']());for(const _0x2b6cc3 of _0x318bed){const _0x160855=_0x27ec6f?[_0x2b6cc3]:io(_0x7db150,_0x2b6cc3,_0x401355);for(const _0x3428dc of _0x160855)_0x37c6a2['markInlineFormat'](_0x3428dc,{'commandName':_0x7db150,'commandParams':[{'forceValue':_0x27ec6f}]});}});}),_0x37c6a2['descriptionFactory']['registerDescriptionCallback'](_0x1e27be=>{if('formatBlock'!=_0x1e27be['type']&&'formatInline'!=_0x1e27be['type'])return;const {data:_0x2d78b4}=_0x1e27be;return _0x2d78b4&&_0x2d78b4['commandName']==_0x7db150?_0x2d78b4['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x123603,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x123603,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class $t extends _0x1ac4a7{['afterInit'](){const _0x45b915=this['editor'];if(!_0x45b915['plugins']['has']('Style')||!_0x45b915['plugins']['has']('DataSchema'))return;const _0x4aeaf8=_0x45b915['plugins']['get']('TrackChangesEditing'),_0x5982d0=_0x45b915['locale'],_0xfbd6ff=_0x45b915['config']['get']('style')||{},_0x4a8573=_0x45b915['plugins']['get']('GeneralHtmlSupport'),_0x3c05f3=_0x45b915['plugins']['get']('StyleUtils')['normalizeConfig'](_0x45b915['plugins']['get']('DataSchema'),_0xfbd6ff['definitions']);_0x4aeaf8['enableDefaultAttributesIntegration']('style');const _0x3ce9f3=new Set();for(const _0xb39248 of _0x3c05f3['block']){const _0x6ee83e=_0x4a8573['getGhsAttributeNameForElement'](_0xb39248['element']);_0x3ce9f3['add'](_0x6ee83e);}const _0x46f5e7=new Set();for(const _0xc516d0 of _0x3c05f3['inline']){const _0x2c01da=_0x4a8573['getGhsAttributeNameForElement'](_0xc516d0['element']);_0x46f5e7['add'](_0x2c01da);for(const _0x45d2e7 of _0xc516d0['ghsAttributes'])_0x46f5e7['add'](_0x45d2e7);}for(const _0xe567a0 of _0x3ce9f3)_0x4aeaf8['registerBlockAttribute'](_0xe567a0),_0x4aeaf8['descriptionFactory']['registerAttributeLabel'](_0xe567a0,o(_0x5982d0,'FORMAT_STYLE'));for(const _0x1f3c1c of _0x46f5e7)_0x4aeaf8['registerInlineAttribute'](_0x1f3c1c),_0x4aeaf8['descriptionFactory']['registerAttributeLabel'](_0x1f3c1c,o(_0x5982d0,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x467619=this['editor'],_0x2f0896=_0x467619['locale'];_0x467619['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5ccb20=>{if('formatBlock'!=_0x5ccb20['type']&&'formatInline'!=_0x5ccb20['type'])return;const {data:_0x42d370}=_0x5ccb20;return _0x42d370&&'style'===_0x42d370['commandName']?_0x42d370['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2f0896,'*Set\x20format:*\x20%0',_0x42d370['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x2f0896,'*Remove\x20format:*\x20%0',_0x42d370['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Nt extends _0x1ac4a7{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x2df42f){super(_0x2df42f),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x16b63a=this['editor'],_0x28e695=_0x16b63a['model']['document']['selection'];if(!_0x16b63a['plugins']['has']('TableEditing'))return;const _0x4c127d=_0x16b63a['locale'],_0x58b12b=_0x16b63a['plugins']['get']('TrackChangesEditing'),_0x550a6a=_0x16b63a['plugins']['get']('TableUtils');_0x58b12b['descriptionFactory']['registerElementLabel']('table',_0x5c1e1b=>o(_0x4c127d,'ELEMENT_TABLE',_0x5c1e1b)),this['_setupColumnsRowsFixing'](),_0x58b12b['enableCommand']('insertTable'),_0x58b12b['enableCommand']('selectTableRow'),_0x58b12b['enableCommand']('selectTableColumn');for(const _0x53191e of['insertTableRowAbove','insertTableRowBelow']){const _0x484668=_0x16b63a['commands']['get'](_0x53191e);_0x58b12b['enableCommand'](_0x53191e,_0x13c259=>{_0x16b63a['model']['change'](_0x20c763=>{_0x13c259();const _0x28d4dc='above'===_0x484668['order'],_0x2ff311=_0x550a6a['getSelectionAffectedTableCells'](_0x28e695),_0x1ab27b=_0x550a6a['getRowIndexes'](_0x2ff311),_0xfd87ca=_0x28d4dc?_0x1ab27b['first']-0x1:_0x1ab27b['last']+0x1,_0x3517c8=_0x2ff311[0x0]['findAncestor']('table'),_0x5bafe3=_0x550a6a['createTableWalker'](_0x3517c8,{'startRow':_0xfd87ca,'endRow':_0xfd87ca}),_0x2ca071=Array['from'](_0x5bafe3)['map'](_0x1e872d=>_0x20c763['createRangeOn'](_0x1e872d['cell']));_0x58b12b['markMultiRangeInsertion'](_0x2ca071,'tableRow');});});}for(const _0xe21828 of['insertTableColumnLeft','insertTableColumnRight']){const _0x17be26=_0x16b63a['commands']['get'](_0xe21828);_0x58b12b['enableCommand'](_0xe21828,_0xddb5a7=>{_0x16b63a['model']['change'](_0x192c7c=>{_0xddb5a7();const _0x164515='left'===_0x17be26['order'],_0x49372b=_0x550a6a['getSelectionAffectedTableCells'](_0x28e695),_0xe25340=_0x550a6a['getColumnIndexes'](_0x49372b),_0x1c5981=_0x164515?_0xe25340['first']-0x1:_0xe25340['last']+0x1,_0x8f2618=_0x49372b[0x0]['findAncestor']('table'),_0x31d575=_0x550a6a['createTableWalker'](_0x8f2618,{'startRow':0x0,'column':_0x1c5981,'includeAllSlots':!0x1}),_0x441e90=Array['from'](_0x31d575)['map'](_0x10aab7=>_0x192c7c['createRangeOn'](_0x10aab7['cell']));_0x58b12b['markMultiRangeInsertion'](_0x441e90,'tableColumn');});});}for(const _0x2fa5e2 of['removeTableRow','removeTableColumn']){const _0x27b13e=_0x2fa5e2['substr'](0xb),_0x50188c=_0x27b13e['toLowerCase'](),_0x3f4be1=_0x50188c['substr'](0x0,0x3)+'span',_0x431232='table'+_0x27b13e,_0x2ab5f9='min'+_0x27b13e,_0x59319a='max'+_0x27b13e;_0x58b12b['enableCommand'](_0x2fa5e2,()=>{_0x16b63a['model']['change'](_0x2bba26=>{const _0x5288c3=_0x550a6a['getSelectionAffectedTableCells'](_0x28e695),_0xfed7b1=_0x5288c3[0x0]['findAncestor']('table');let _0x3de5ba;if('removeTableRow'==_0x2fa5e2){const _0x7b2568=_0x550a6a['getRowIndexes'](_0x5288c3);_0x3de5ba={'startRow':_0x7b2568['first'],'endRow':_0x7b2568['last'],'includeAllSlots':!0x0};}else{const _0x4c1267=_0x550a6a['getColumnIndexes'](_0x5288c3);_0x3de5ba={'startColumn':_0x4c1267['first'],'endColumn':_0x4c1267['last'],'includeAllSlots':!0x0};}const _0x79e552=_0x550a6a['createTableWalker'](_0xfed7b1,_0x3de5ba),_0x4cf5c6=Array['from'](_0x79e552)['map'](({cell:_0x113818})=>_0x113818),_0x599d85=Oe(_0x4cf5c6['filter'](_0x1765f3=>_0x1765f3['hasAttribute'](_0x3f4be1))),_0x282a10=Oe(_0x4cf5c6['filter'](_0x189877=>!_0x189877['hasAttribute'](_0x3f4be1)))['map'](_0xfba921=>_0x2bba26['createRangeOn'](_0xfba921)),_0x401003=_0x58b12b['markMultiRangeDeletion'](_0x282a10,_0x431232);if(_0x401003&&('tableRow'==_0x401003['subType']||'tableColumn'==_0x401003['subType'])){const _0x2e9af9=this['_getSuggestionCoords'](_0x401003);for(const _0x1ef933 of _0x599d85){const _0x422698=_0x2bba26['createRangeOn'](_0x1ef933),_0x271705=_0x550a6a['getCellLocation'](_0x1ef933),_0x243580=_0x1ef933['getAttribute'](_0x3f4be1)-0x1,_0x4b4e34=_0x2e9af9[_0x2ab5f9],_0x41bfe4=_0x2e9af9[_0x59319a];_0x4b4e34<=_0x271705[_0x50188c]&&_0x271705[_0x50188c]+_0x243580<=_0x41bfe4&&_0x401003['addRange'](_0x422698);}}});});}function _0x175c18(_0x1ba215){const _0x4130fd=Array['from'](_0x28e695['getRanges']())['map'](_0x295673=>_0x2fe235['fromRange'](_0x295673));_0x16b63a['model']['change'](_0x2794bc=>{const _0x439428=_0x2794bc['batch'];_0x1ba215=_0x1ba215['filter'](_0x31240b=>'$graveyard'!=_0x31240b['root']['rootName']),_0x2794bc['setSelection'](_0x1ba215),_0x16b63a['commands']['get']('removeTableRow')['refresh'](),_0x16b63a['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x16b63a['model']['enqueueChange'](()=>{_0x16b63a['model']['enqueueChange'](_0x439428,_0x39ac39=>{const _0x33b605=_0x4130fd['filter'](_0x47227d=>'$graveyard'!=_0x47227d['root']['rootName']);_0x33b605['length']>0x0&&_0x39ac39['setSelection'](_0x33b605);for(const _0x189223 of _0x4130fd)_0x189223['detach']();});});});}function _0x5e339c(_0x386ffc){_0x16b63a['model']['change'](_0x3c3bc9=>{const _0x3c981f=Array['from'](_0x28e695['getRanges']())['map'](_0x139bca=>_0x2fe235['fromRange'](_0x139bca)),_0x33f33c=[];for(const _0x16e749 of _0x386ffc)for(const _0x120bb6 of _0x16e749['getItems']({'shallow':!0x0}))_0x33f33c['push'](_0x120bb6);for(const _0x14aa79 of _0x33f33c)'$graveyard'!=_0x14aa79['root']['rootName']&&(_0x3c3bc9['setSelection'](_0x3c3bc9['createPositionAt'](_0x14aa79,0x0)),_0x16b63a['commands']['get']('removeTableColumn')['refresh'](),_0x16b63a['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x4e9023=_0x3c981f['filter'](_0x2749db=>'$graveyard'!=_0x2749db['root']['rootName']);_0x4e9023['length']>0x0&&_0x3c3bc9['setSelection'](_0x4e9023);for(const _0x15c5ab of _0x3c981f)_0x15c5ab['detach']();});}function _0x12dad5(_0x3fb885,_0x1c8d51){return _0x1c8d51['every'](_0x5715d7=>_0x3fb885['some'](_0x1f29bd=>_0x1f29bd['end']['isEqual'](_0x5715d7['start'])||_0x5715d7['end']['isEqual'](_0x1f29bd['start'])));}function _0x43bbae(_0x260fae,_0x5a2424){return!_0x260fae['some'](_0x292c7b=>_0x5a2424['some'](_0x12f92d=>_0x292c7b['isIntersecting'](_0x12f92d)))&&_0x260fae['some'](_0x80bed8=>_0x5a2424['some'](_0x5bfb56=>_0x80bed8['end']['isTouching'](_0x5bfb56['start'])));}_0x16b63a['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x450898,_0x5e986a,_0x5177e5)=>{if(!_0x5177e5['options']['showSuggestionHighlights'])return;const _0x21fc59=_0x5e986a['item'];if(!_0x21fc59||!_0x21fc59['is']('element','tableCell'))return;const _0x3e1c5a=_0x5177e5['mapper']['toViewElement'](_0x21fc59);if(_0x3e1c5a){const {id:_0x61e277,authorId:_0x508f5d}=_0x58b12b['_splitMarkerName'](_0x5e986a['markerName']);_0x5dc99a(_0x3e1c5a,_0x5177e5['writer'],(_0x2072e2,_0x5e065f,_0x49c082)=>{_0x49c082['addClass'](_0x211a57(_0x5e065f['classes']),_0x2072e2),_0x49c082['setAttribute']('data-suggestion-id',_0x61e277,_0x2072e2),_0x49c082['setAttribute']('data-author-id',_0x508f5d,_0x2072e2);},(_0x31a648,_0x41d9a7,_0xfa4543)=>{_0xfa4543['removeClass'](_0x211a57(_0x41d9a7['classes']),_0x31a648),_0xfa4543['removeAttribute']('data-suggestion-id',_0x31a648),_0xfa4543['removeAttribute']('data-author-id',_0x31a648);});}},{'priority':'highest'}),_0x58b12b['descriptionFactory']['registerDescriptionCallback'](_0x49f46c=>{if('insertion'!=_0x49f46c['type']&&'deletion'!=_0x49f46c['type'])return;const _0xb3f01e=_0x49f46c['getContainedElement']();if(null!=_0xb3f01e&&_0xb3f01e['is']('element','table')){if('insertion'==_0x49f46c['type']){const _0x1617b4=_0x49f46c['getItems']()['filter'](_0x13de25=>_0x13de25['is']('$textProxy'))['map'](_0x4ceac8=>_0x4ceac8['data']);if(_0x1617b4['length'])return{'type':'insertion','content':o(_0x4c127d,'*Insert:*\x20%0',o(_0x4c127d,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1617b4['join']('\x20')+'\x22'))};}if('deletion'==_0x49f46c['type']){const _0x40d019=_0x49f46c['getItems']()['filter'](_0x858895=>_0x858895['is']('$textProxy'))['map'](_0x5341e5=>_0x5341e5['data']);if(_0x40d019['length'])return{'type':'deletion','content':o(_0x4c127d,'*Remove:*\x20%0',o(_0x4c127d,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x40d019['join']('\x20')+'\x22'))};}}}),_0x58b12b['descriptionFactory']['registerDescriptionCallback'](_0x32280b=>{if('tableRow'==_0x32280b['subType']){const _0x1aa882=_0x32280b['getItems']()['filter'](_0x42fdba=>_0x42fdba['is']('$textProxy'))['map'](_0x255a10=>_0x255a10['data']),_0x3b8c07=this['_getSuggestionCoords'](_0x32280b),_0x49073d=_0x3b8c07['maxRow']-_0x3b8c07['minRow']+0x1;if('insertion'==_0x32280b['type'])return _0x1aa882['length']?{'type':'insertion','content':o(_0x4c127d,'*Insert:*\x20%0',o(_0x4c127d,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x49073d,'\x22'+_0x1aa882['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x4c127d,'*Insert:*\x20%0',o(_0x4c127d,'ELEMENT_TABLE_ROW',_0x49073d))};if('deletion'==_0x32280b['type'])return _0x1aa882['length']?{'type':'deletion','content':o(_0x4c127d,'*Remove:*\x20%0',o(_0x4c127d,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x49073d,'\x22'+_0x1aa882['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x4c127d,'*Remove:*\x20%0',o(_0x4c127d,'ELEMENT_TABLE_ROW',_0x49073d))};}if('tableColumn'==_0x32280b['subType']){const _0x1d6dbd=_0x32280b['getItems']()['filter'](_0x1df699=>_0x1df699['is']('$textProxy'))['map'](_0x197859=>_0x197859['data']),_0x508d1c=this['_getSuggestionCoords'](_0x32280b),_0x2abe96=_0x508d1c['maxColumn']-_0x508d1c['minColumn']+0x1;if('insertion'==_0x32280b['type'])return _0x1d6dbd['length']?{'type':'insertion','content':o(_0x4c127d,'*Insert:*\x20%0',o(_0x4c127d,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2abe96,'\x22'+_0x1d6dbd['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x4c127d,'*Insert:*\x20%0',o(_0x4c127d,'ELEMENT_TABLE_COLUMN',_0x2abe96))};if('deletion'==_0x32280b['type'])return _0x1d6dbd['length']?{'type':'deletion','content':o(_0x4c127d,'*Remove:*\x20%0',o(_0x4c127d,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2abe96,'\x22'+_0x1d6dbd['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x4c127d,'*Remove:*\x20%0',o(_0x4c127d,'ELEMENT_TABLE_COLUMN',_0x2abe96))};}}),_0x58b12b['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x175c18),_0x58b12b['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x175c18),_0x58b12b['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x5e339c),_0x58b12b['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x5e339c),_0x58b12b['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x12dad5),_0x58b12b['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x12dad5),_0x58b12b['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x43bbae),_0x58b12b['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x43bbae);}['_acceptFormatSuggestionCallbackFactory'](){const _0x1ee8c2=this['editor'],_0x14ab2b=_0x1ee8c2['model']['document']['selection'];return(_0x13c70c,_0x44736e)=>{_0x1ee8c2['model']['change'](_0xb6e00d=>{const {commandName:_0x18a082,commandParams:_0x306607}=_0x44736e;let _0x26b2c6=_0x13c70c[0x0]['end']['nodeBefore'];_0x306607&&_0x306607[0x0]&&!0x1===_0x306607[0x0]['forceValue']&&(_0x26b2c6=_0x13c70c[0x0]['start']['nodeAfter']);const _0x19a0d9=_0xb6e00d['createRangeIn'](_0x26b2c6);if('$graveyard'==_0x19a0d9['root']['rootName'])return;const _0x16f761=Array['from'](_0x14ab2b['getRanges']())['map'](_0x180ac6=>_0x2fe235['fromRange'](_0x180ac6));_0xb6e00d['setSelection'](_0x19a0d9),_0x1ee8c2['commands']['get'](_0x18a082)['refresh'](),_0x306607['push']({'forceDefaultExecution':!0x0}),_0x1ee8c2['execute'](_0x18a082,..._0x306607);const _0x8a18c3=_0x16f761['filter'](_0x364613=>'$graveyard'!=_0x364613['root']['rootName']);_0x8a18c3['length']>0x0&&_0xb6e00d['setSelection'](_0x8a18c3);for(const _0x2741c6 of _0x16f761)_0x2741c6['detach']();});};}['_getCoordsForCells'](_0x46c9d8){const _0x12c4bc=this['editor']['plugins']['get']('TableUtils');let _0x511275=Number['MAX_SAFE_INTEGER'],_0x256ef3=Number['MIN_SAFE_INTEGER'],_0x21ba1f=Number['MAX_SAFE_INTEGER'],_0x17e839=Number['MIN_SAFE_INTEGER'];for(const _0x35d966 of _0x46c9d8){if('$graveyard'==_0x35d966['root']['rootName'])continue;const {row:_0x5e1b49,column:_0x13453d}=_0x12c4bc['getCellLocation'](_0x35d966),_0x494850=_0x35d966['hasAttribute']('rowspan')?_0x35d966['getAttribute']('rowspan')-0x1:0x0,_0x4f7fb3=_0x35d966['hasAttribute']('colspan')?_0x35d966['getAttribute']('colspan')-0x1:0x0;_0x511275=_0x5e1b49<_0x511275?_0x5e1b49:_0x511275,_0x256ef3=_0x5e1b49+_0x494850>_0x256ef3?_0x5e1b49+_0x494850:_0x256ef3,_0x21ba1f=_0x13453d<_0x21ba1f?_0x13453d:_0x21ba1f,_0x17e839=_0x13453d+_0x4f7fb3>_0x17e839?_0x13453d+_0x4f7fb3:_0x17e839;}return{'minRow':_0x511275,'maxRow':_0x256ef3,'minColumn':_0x21ba1f,'maxColumn':_0x17e839};}['_setupColumnsRowsFixing'](){const _0x59d110=this['editor'],_0x562758=_0x59d110['plugins']['get']('TrackChangesEditing'),_0x3fe870=_0x59d110['plugins']['get']('TableUtils');_0x59d110['model']['document']['on']('change:data',()=>{const _0x5c97e9=Array['from'](_0x59d110['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x48d503,data:_0x200bab}of _0x5c97e9){const {group:_0x4fac2d,id:_0x1c4996,subType:_0x5237f9}=_0x562758['_splitMarkerName'](_0x48d503);if('suggestion'!=_0x4fac2d)continue;if(null!=_0x200bab['oldRange'])continue;const _0x4c3323=_0x562758['getSuggestion'](_0x1c4996);this['_tablePostFixingSubtypes']['includes'](_0x5237f9)&&this['_tableSuggestions']['add'](_0x4c3323);}},{'priority':'low'});const _0x27cec0=(_0x17cec7,_0x1151aa)=>{let _0x356d99=!0x1;const _0x479fda=_0x1151aa['createRangeOn'](_0x17cec7),_0x4e74f5=_0x17cec7['findAncestor']('table'),_0x15c382=_0x3fe870['getCellLocation'](_0x17cec7);for(const _0x4ef3c9 of this['_tableSuggestions']){const _0x119062=_0x4ef3c9['subType'],_0x57c24e=_0x119062['startsWith']('tablePaste'),_0x3be556=_0x119062['substr'](_0x57c24e?0xa:0x5),_0x39f037=_0x3be556['toLowerCase'](),_0xf26029=_0x39f037['substr'](0x0,0x3)+'span',_0x204ee8='min'+_0x3be556,_0x29ddad='max'+_0x3be556;if(!_0x4ef3c9['isInContent'])continue;if(_0x4e74f5!=_0x4ef3c9['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x4ef3c9['isIntersectingWithRange'](_0x479fda))continue;const _0x268e69=_0x17cec7['hasAttribute'](_0xf26029)?_0x17cec7['getAttribute'](_0xf26029)-0x1:0x0,_0x55b26f=this['_getSuggestionCoords'](_0x4ef3c9),_0x54e842=_0x55b26f[_0x204ee8],_0x46b3e2=_0x55b26f[_0x29ddad];_0x54e842<=_0x15c382[_0x39f037]&&_0x15c382[_0x39f037]+_0x268e69<=_0x46b3e2&&(_0x4ef3c9['addRange'](_0x479fda),_0x356d99=!0x0);}return _0x356d99;};_0x59d110['model']['document']['registerPostFixer'](_0x3c4884=>{let _0x31dd41=!0x1;for(const _0x18d8de of _0x59d110['model']['document']['differ']['getChanges']())if('insert'==_0x18d8de['type']){if('tableRow'==_0x18d8de['name']){for(const _0x1b3872 of _0x18d8de['position']['nodeAfter']['getChildren']())_0x31dd41=_0x31dd41||_0x27cec0(_0x1b3872,_0x3c4884);}else'tableCell'==_0x18d8de['name']&&(_0x31dd41=_0x31dd41||_0x27cec0(_0x18d8de['position']['nodeAfter'],_0x3c4884));}return _0x31dd41;});}['_getSuggestionCoords'](_0x426d46){return this['_getCoordsForCells'](_0x426d46['getRanges']()['map'](_0x517740=>_0x517740['start']['nodeAfter']));}}function Oe(_0x331ba0){return Array['from'](new Set(_0x331ba0)['values']());}class Dt extends _0x1ac4a7{static get['requires'](){return[Nt];}['afterInit'](){const _0x13a9c9=this['editor'],_0x32e06d=_0x13a9c9['model']['document']['selection'],_0x5b69b8=_0x13a9c9['locale'];if(!_0x13a9c9['plugins']['has']('TableEditing'))return;const _0x28163f=_0x13a9c9['plugins']['get']('TrackChangesEditing'),_0x1fe8de=_0x13a9c9['plugins']['get']('TableUtils'),_0x114d14=_0x13a9c9['plugins']['get'](Nt);_0x114d14['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x28163f['enableCommand']('mergeTableCells',()=>{const _0x37adca=_0x1fe8de['getSelectionAffectedTableCells'](_0x13a9c9['model']['document']['selection']);_0x13a9c9['model']['change'](()=>{_0x28163f['markMultiRangeBlockFormat'](_0x37adca,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x13a9c9['commands']['get']('mergeTableCells')['on']('execute',(_0x35e028,_0x263650)=>{_0x13a9c9['commands']['get']('trackChanges')['value']&&(_0x263650['length']>0x0&&_0x263650[_0x263650['length']-0x1]&&_0x263650[_0x263650['length']-0x1]['forceDefaultExecution']||_0x28163f['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x35e028['stop']());},{'priority':'highest'});for(const _0x57e7d5 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x4fdc54=_0x13a9c9['commands']['get'](_0x57e7d5);_0x28163f['enableCommand'](_0x57e7d5,()=>{const _0x7bf11d=_0x13a9c9['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x467a06=>_0x467a06['is']('element','tableCell')),_0x4f66b4=_0x4fdc54['value'];_0x13a9c9['model']['change'](()=>{_0x28163f['markMultiRangeBlockFormat']([_0x7bf11d,_0x4f66b4],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x6b4dad of['splitTableCellVertically','splitTableCellHorizontally']){const _0x56cdfa=_0x13a9c9['commands']['get'](_0x6b4dad);_0x28163f['enableCommand'](_0x6b4dad,()=>{const _0x5c81d7=_0x1fe8de['getSelectionAffectedTableCells'](_0x13a9c9['model']['document']['selection'])[0x0],_0x515531=_0x5c81d7['findAncestor']('table'),{column:_0x4b412b,row:_0x57360b}=_0x1fe8de['getCellLocation'](_0x5c81d7);let _0x4230fc=[];if('horizontally'==_0x56cdfa['direction']){const _0x482a4a=_0x1fe8de['createTableWalker'](_0x515531,{'startRow':_0x57360b,'endRow':_0x57360b,'includeAllSlots':!0x0});_0x4230fc=Array['from'](_0x482a4a)['map'](_0x33bd02=>_0x33bd02['cell']);}else{const _0x4a76fd=_0x1fe8de['createTableWalker'](_0x515531,{'column':_0x4b412b,'includeAllSlots':!0x0});_0x4230fc=Array['from'](_0x4a76fd)['map'](_0x4acafe=>_0x4acafe['cell']);}_0x13a9c9['model']['change'](_0x597455=>{_0x28163f['markBlockFormat'](_0x597455['createRangeOn'](_0x5c81d7),{'commandName':_0x6b4dad,'commandParams':[]},_0x4230fc,_0x6b4dad);});});}_0x28163f['descriptionFactory']['registerDescriptionCallback'](_0x27053b=>{if('formatBlock'!=_0x27053b['type']&&'formatInline'!=_0x27053b['type'])return;const {data:_0x4e8c01}=_0x27053b;return _0x4e8c01&&'mergeTableCells'==_0x4e8c01['commandName']?{'type':'format','content':o(_0x5b69b8,'*Merge\x20cells*')}:void 0x0;}),_0x28163f['descriptionFactory']['registerDescriptionCallback'](_0x21444d=>{if('formatBlock'!=_0x21444d['type']&&'formatInline'!=_0x21444d['type'])return;const {data:_0x5b4339}=_0x21444d;return _0x5b4339?'splitTableCellVertically'==_0x5b4339['commandName']?{'type':'format','content':o(_0x5b69b8,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x5b4339['commandName']?{'type':'format','content':o(_0x5b69b8,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x2eafc5=_0x114d14['_acceptFormatSuggestionCallbackFactory']();for(const _0x354eb2 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x28163f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x354eb2,'accept',_0x2eafc5);for(const _0x200335 of['splitTableCellVertically','splitTableCellHorizontally'])_0x28163f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x200335,'accept',_0x2eafc5);_0x28163f['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x4cf81e=>{_0x13a9c9['model']['change'](_0x2e3327=>{const _0x27cc54=Array['from'](_0x32e06d['getRanges']())['map'](_0x4a6190=>_0x2fe235['fromRange'](_0x4a6190));_0x2e3327['setSelection'](_0x4cf81e),_0x13a9c9['commands']['get']('mergeTableCells')['refresh'](),_0x13a9c9['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x5b1786=_0x27cc54['filter'](_0x35c810=>'$graveyard'!=_0x35c810['root']['rootName']);_0x5b1786['length']>0x0&&_0x2e3327['setSelection'](_0x5b1786);for(const _0x159ac5 of _0x27cc54)_0x159ac5['detach']();});});for(const _0x2c28f5 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x8349c5=_0x13a9c9['commands']['get'](_0x2c28f5);_0x8349c5['on']('set:isEnabled',(_0x5a593a,_0x1f3522,_0x54d506)=>{if(_0x54d506){const _0x49a9df=_0x13a9c9['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x350282=>_0x350282['is']('element','tableCell'));this['_areMergableCells'](_0x8349c5['value'],_0x49a9df)||(_0x5a593a['return']=!0x1,_0x5a593a['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0xb271f1=this['editor']['commands']['get']('mergeTableCells'),_0x3f134f=this['editor']['plugins']['get']('TableUtils');if(!_0xb271f1['isEnabled'])return!0x1;const _0x57753c=_0x3f134f['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x4eed84 of _0x57753c)for(const _0x37a826 of _0x57753c)if(_0x4eed84!=_0x37a826&&!this['_areMergableCells'](_0x4eed84,_0x37a826))return!0x1;return!0x0;}['_areMergableCells'](_0x25b94b,_0xaccdb8){const _0x14fb22=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3a5dc5=this['editor']['model']['createRangeOn'](_0x25b94b),_0x584b8d=this['editor']['model']['createRangeOn'](_0xaccdb8),_0x40218e=new Set(),_0x2a798c=new Set();for(const _0x1054ce of _0x14fb22['getSuggestions']())if(('insertion'==_0x1054ce['type']||'deletion'==_0x1054ce['type']||'mergeTableCells'==_0x1054ce['subType'])&&_0x1054ce['isInContent']){for(const _0x10cee4 of _0x1054ce['getRanges']())_0x10cee4['containsRange'](_0x3a5dc5,!0x0)&&_0x40218e['add'](_0x1054ce['type']+':'+_0x1054ce['author']['id']),_0x10cee4['containsRange'](_0x584b8d,!0x0)&&_0x2a798c['add'](_0x1054ce['type']+':'+_0x1054ce['author']['id']);}if(_0x40218e['size']!=_0x2a798c['size'])return!0x1;for(const _0x460d34 of _0x40218e)if(!_0x2a798c['has'](_0x460d34))return!0x1;return!0x0;}}class Mt extends _0x1ac4a7{static get['requires'](){return[Nt];}['afterInit'](){const _0x56bd39=this['editor'];if(!_0x56bd39['plugins']['has']('TableEditing'))return;const _0xd1caa7=_0x56bd39['locale'],_0x4ce7b5=_0x56bd39['plugins']['get']('TrackChangesEditing');_0x4ce7b5['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x4ce7b5['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x4ce7b5['registerBlockAttribute']('headingRows'),_0x4ce7b5['registerBlockAttribute']('headingColumns'),_0x4ce7b5['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0xd1caa7,'FORMAT_HEADER_ROW')),_0x4ce7b5['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0xd1caa7,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x58eb0a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x333d22=this['editor']['plugins']['get']('TableUtils'),_0x408858=this['editor']['plugins']['get'](Nt)['_acceptFormatSuggestionCallbackFactory']();function _0x2de876({showActiveMarker:_0x64571d=!0x0,setDataAttribute:_0x924aa2=!0x0}={}){return(_0x136a82,_0x5b7d55,_0x3facf1)=>{const {type:_0x4f8d39,id:_0x188a69}=_0x58eb0a['_splitMarkerName'](_0x5b7d55['markerName']);if(!_0x58eb0a['hasSuggestion'](_0x188a69))return;const _0x1cabb6=_0x58eb0a['getSuggestion'](_0x188a69),_0x87a1b3=_0x1cabb6['data'];if('formatBlock'!=_0x1cabb6['type']||!_0x87a1b3||'setTableColumnHeader'!=_0x87a1b3['commandName'])return;if(_0x5b7d55['item'])return void _0x136a82['stop']();if(!_0x3facf1['consumable']['consume'](_0x5b7d55['markerRange'],_0x136a82['name']))return;const _0x2d1843=_0x5b7d55['markerRange']['start']['nodeAfter'],_0x55c2d6=_0x5b7d55['markerRange']['end']['nodeBefore'],_0x46d1d9=_0x2d1843['parent']['parent'],{column:_0xbd7047}=_0x333d22['getCellLocation'](_0x2d1843),{column:_0x17dc53}=_0x333d22['getCellLocation'](_0x55c2d6);for(let _0x3a274b=_0xbd7047;_0x3a274b<=_0x17dc53;_0x3a274b++){const _0x33378c=_0x333d22['createTableWalker'](_0x46d1d9,{'column':_0x3a274b,'includeAllSlots':!0x1});for(const _0x3121b5 of _0x33378c){const _0x151a8b=_0x3121b5['cell'],_0x41b457=_0x3facf1['mapper']['toViewElement'](_0x151a8b);_0x3facf1['writer']['addClass']('ck-suggestion-marker-'+_0x4f8d39,_0x41b457),_0x924aa2&&_0x3facf1['writer']['setAttribute']('data-suggestion',_0x188a69,_0x41b457),_0x3facf1['mapper']['bindElementToMarker'](_0x41b457,_0x5b7d55['markerName']),_0x64571d&&(_0x58eb0a['activeMarkers']['includes'](_0x5b7d55['markerName'])?_0x3facf1['writer']['addClass']('ck-suggestion-marker--active',_0x41b457):_0x3facf1['writer']['removeClass']('ck-suggestion-marker--active',_0x41b457));}}};}_0x58eb0a['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x408858),_0x58eb0a['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x408858),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x2de876(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xb67a9d,_0x2662ac,_0x338791)=>{_0x338791['options']['showSuggestionHighlights']&&_0x2de876({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0xb67a9d,_0x2662ac,_0x338791);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x3481f8,_0x105534,_0x1b2b0d)=>{const {type:_0x2ea5a6,id:_0x5d36fd}=_0x58eb0a['_splitMarkerName'](_0x105534['markerName']);if(!_0x58eb0a['hasSuggestion'](_0x5d36fd))return;const _0x5b2d79=_0x58eb0a['getSuggestion'](_0x5d36fd),_0x4dadb8=_0x5b2d79['data'];if('formatBlock'!=_0x5b2d79['type']||!_0x4dadb8||'setTableColumnHeader'!=_0x4dadb8['commandName'])return;const _0x56cf01=_0x1b2b0d['mapper']['markerNameToElements'](_0x105534['markerName']);if(_0x56cf01){for(const _0x27539c of _0x56cf01)_0x1b2b0d['writer']['removeClass']('ck-suggestion-marker-'+_0x2ea5a6,_0x27539c),_0x1b2b0d['writer']['removeClass']('ck-suggestion-marker--active',_0x27539c),_0x1b2b0d['writer']['removeAttribute']('data-suggestion',_0x27539c),_0x1b2b0d['mapper']['unbindElementFromMarkerName'](_0x27539c,_0x105534['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1db07d=this['editor'],_0x2c44d7=_0x1db07d['locale'];function _0x2e59bd(_0xb84b96){return{'type':'format','content':o(_0x2c44d7,'*Format:*\x20%0',_0xb84b96)};}_0x1db07d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3dc9ce=>{if('formatBlock'!=_0x3dc9ce['type'])return;const {data:_0x1d7e63}=_0x3dc9ce;if(_0x1d7e63){if('setTableRowHeader'==_0x1d7e63['commandName']){const _0x2096d2=_0x1d7e63['commandParams'][0x0]['forceValue'];return _0x2e59bd(o(_0x2c44d7,_0x2096d2?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x1d7e63['commandName']){const _0x13d0f1=_0x1d7e63['commandParams'][0x0]['forceValue'];return _0x2e59bd(o(_0x2c44d7,_0x13d0f1?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Bt extends _0x1ac4a7{['afterInit'](){const _0x262b08=this['editor'],_0x529383=_0x262b08['locale'],_0x4bd2e6=_0x262b08['plugins']['get']('TrackChangesEditing');function _0x564bbc(_0x1d5c34){return{'type':'format','content':''+o(_0x529383,'*Set\x20table\x20type:*\x20%0',_0x1d5c34)};}_0x262b08['plugins']['has']('TableLayout')&&(_0x4bd2e6['enableCommand']('insertTableLayout'),_0x4bd2e6['enableDefaultAttributesIntegration']('tableType'),_0x4bd2e6['registerBlockAttribute']('tableType'),_0x4bd2e6['descriptionFactory']['registerElementLabel'](_0x5aa223=>_0x5aa223['is']('element','table')&&'layout'===_0x5aa223['getAttribute']('tableType'),_0x46ee26=>o(_0x529383,'ELEMENT_LAYOUT_TABLE',_0x46ee26)),_0x4bd2e6['descriptionFactory']['registerDescriptionCallback'](_0x19b9e6=>{const {data:_0x6b729e}=_0x19b9e6;if(_0x6b729e&&'tableType'==_0x6b729e['key'])switch(_0x6b729e['newValue']){case'layout':return _0x564bbc(o(_0x529383,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x564bbc(o(_0x529383,'ELEMENT_CONTENT_TABLE'));}}));}}const Ue=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],De=/* #__PURE__ -- @preserve */
25
- Object['fromEntries'](Ue['map'](_0x58a030=>[_0x58a030,null]));class Tt extends _0x1ac4a7{static get['requires'](){return[Nt];}['afterInit'](){const _0x43c17c=this['editor'];if(!_0x43c17c['plugins']['has']('TableClipboard'))return;const _0x9f71f9=_0x43c17c['plugins']['get']('TrackChangesEditing'),_0x222a9c=_0x43c17c['plugins']['get']('TableUtils'),_0xb6bfae=_0x43c17c['plugins']['get'](Nt),_0x7aa23=_0x43c17c['plugins']['get']('TableClipboard'),_0x43413e=_0x43c17c['plugins']['get']('TableSelection'),_0x697f1a=_0x43c17c['plugins']['get'](_0x2d7130);_0xb6bfae['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x43c17c['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x43c17c['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x1aa709=null,_0x537883=!0x1;_0x697f1a['on']('contentInsertion',(_0x16f841,_0x1f0bfa)=>{_0x537883='paste'===_0x1f0bfa['method'];}),_0x43c17c['model']['on']('insertContent',(_0x88f53c,_0x24c7cd)=>{if(!_0x537883&&null===_0x43413e['getSelectedTableCells']())return;const [_0x34c81a,_0x51f993]=_0x24c7cd,_0x41c46f=_0x24c7cd[_0x24c7cd['length']-0x1];_0x41c46f&&_0x41c46f['forceDefaultExecution']||_0x9f71f9['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x21c31f,_0x5d5153,_0x45f337,_0x47628d,_0x520532){if(_0x5d5153&&!_0x5d5153['is']('documentSelection'))return!0x1;const _0x38419a=_0x520532['getTableIfOnlyTableInContent'](_0x21c31f,_0x45f337);if(!_0x38419a||!qe(_0x38419a,void 0x0,_0x47628d))return!0x1;const _0x20679d=_0x47628d['getSelectionAffectedTableCells'](_0x45f337['document']['selection']);if(!_0x20679d['length'])return!0x1;const _0x51d89b=_0x20679d[0x0]['findAncestor']('table'),_0x545064=_0x47628d['getRowIndexes'](_0x20679d),_0x1fa265=_0x47628d['getColumnIndexes'](_0x20679d),_0x16e9ec={'startRow':_0x545064['first'],'endRow':_0x545064['last'],'startColumn':_0x1fa265['first'],'endColumn':_0x1fa265['last']};return 0x1==_0x20679d['length']&&(_0x16e9ec['endRow']+=_0x47628d['getRows'](_0x38419a)-0x1,_0x16e9ec['endColumn']+=_0x47628d['getColumns'](_0x38419a)-0x1),qe(_0x51d89b,_0x16e9ec,_0x47628d);}(_0x34c81a,_0x51f993,_0x43c17c['model'],_0x222a9c,_0x7aa23)&&(_0x88f53c['stop'](),_0x1aa709={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x43c17c['model']['change'](()=>{_0x43c17c['model']['insertContent'](_0x24c7cd[0x0],_0x24c7cd[0x1],_0x24c7cd[0x2],{'forceDefaultExecution':!0x0});const _0x3f2a96=_0x668662(),{rowInsertionRanges:_0x314571,columnInsertionRanges:_0x46301b,insertionRanges:_0x2b1102,deletionRanges:_0x2b100f,cells:_0x243522}=_0x1aa709;_0x314571['length']&&_0x9f71f9['markMultiRangeInsertion'](_0x314571,'tablePasteRow',{'tablePasteChainId':_0x3f2a96}),_0x46301b['length']&&_0x9f71f9['markMultiRangeInsertion'](_0x46301b,'tablePasteColumn',{'tablePasteChainId':_0x3f2a96}),_0x2b1102['length']&&(_0x9f71f9['markMultiRangeInsertion'](_0x2b1102,'tablePaste',{'tablePasteChainId':_0x3f2a96,'skipNestingCheck':!0x0}),_0x2b1102['forEach'](_0x13f1ff=>_0x13f1ff['detach']?.())),_0x2b100f['length']&&(_0x9f71f9['markMultiRangeDeletion'](_0x2b100f,'tablePaste',{'tablePasteChainId':_0x3f2a96,'skipNestingCheck':!0x0}),_0x2b100f['forEach'](_0x40b413=>_0x40b413['detach']?.()));const _0x5f0534=_0x9f71f9['markMultiRangeBlockFormat'](_0x243522['map'](({element:_0x2c7828})=>_0x2c7828),{'formatGroupId':_0x668662()},[],'tablePasteCell',{'tablePasteChainId':_0x3f2a96});if(_0x5f0534){const _0x17ce5e=_0x5f0534['getMarkers'](),_0x1c7d5a=[];for(const {element:_0x5c6cb8,attributes:_0x47ac50}of _0x243522){if(!_0x47ac50)continue;const _0x2be871=_0x43c17c['model']['createRangeOn'](_0x5c6cb8),_0x32e9f7=_0x17ce5e['find'](_0x4150c7=>_0x4150c7['getRange']()['isEqual'](_0x2be871));_0x32e9f7&&_0x1c7d5a['push']([_0x32e9f7['name'],_0x47ac50]);}_0x1c7d5a['length']&&_0x5f0534['setAttribute']('markerAttributes',Object['fromEntries'](_0x1c7d5a));}_0x1aa709=null;}));},{'priority':_0x48e2dc['high']+0xa}),_0x697f1a['on']('contentInsertion',()=>{_0x537883=!0x1;},{'priority':'lowest'}),_0x43c17c['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x5ebded,_0x58a709)=>{const [_0xdbd6a2,_0x2f8b0f,,_0x218cce]=_0x58a709;if(!_0x1aa709)return;_0x5ebded['stop']();const _0x34c217=_0xdbd6a2['cell'],_0x36c498=_0x2f8b0f,_0x4fbb81=He(_0x34c217),_0x5e4c09=He(_0x36c498);_0x5ebded['return']=_0x34c217;let _0x5d94ab=null,_0x52dec9=null;if(_0x5e4c09||_0x4fbb81){if(_0x4fbb81&&!_0x5e4c09){_0x218cce['remove'](_0x34c217['getChild'](0x0));for(const _0xf469b of Array['from'](_0x36c498['getChildren']()))_0x218cce['insert'](_0xf469b,_0x34c217,'end');const _0x381dae=_0x1aa709['rowInsertionIndexes']['includes'](_0xdbd6a2['row']),_0xd5a94=_0x1aa709['columnInsertionIndexes']['includes'](_0xdbd6a2['column']);_0x381dae||_0xd5a94||(_0x5d94ab=_0x2fe235['fromRange'](_0x218cce['createRangeIn'](_0x34c217)));}else _0x5e4c09&&!_0x4fbb81&&(_0x52dec9=_0x218cce['createRangeIn'](_0x34c217));}else{const _0x1b2b56=_0x218cce['createElement']('tableCellSuggestion'),_0x17a4ce=_0x218cce['createElement']('tableCellSuggestion');_0x218cce['wrap'](_0x218cce['createRangeIn'](_0x34c217),_0x17a4ce),_0x218cce['insert'](_0x1b2b56,_0x34c217,0x0);for(const _0x43d6f6 of Array['from'](_0x36c498['getChildren']()))_0x218cce['insert'](_0x43d6f6,_0x1b2b56,'end');_0x5d94ab=_0x2fe235['fromRange'](_0x218cce['createRangeOn'](_0x1b2b56)),_0x52dec9=_0x2fe235['fromRange'](_0x218cce['createRangeOn'](_0x17a4ce));}const _0x10d794=Array['from'](_0x36c498['getAttributes']())['filter'](([_0x1e8661])=>Ue['includes'](_0x1e8661));_0x1aa709['cells']['push']({'element':_0x34c217,'attributes':_0x10d794['length']?Object['fromEntries'](_0x10d794):null}),_0x5d94ab&&_0x1aa709['insertionRanges']['push'](_0x5d94ab),_0x52dec9&&_0x1aa709['deletionRanges']['push'](_0x52dec9);},{'priority':'high'}),_0x222a9c['on']('insertColumns',(_0x42555e,_0x1bef5c)=>{const [_0x27f13a,_0x5b0992={}]=_0x1bef5c;if(!_0x1aa709)return;const _0x133d09=_0x5b0992['at']||0x0,_0x118520=_0x5b0992['columns']||0x1;_0x1aa709['columnInsertionIndexes']=new Array(_0x118520)['fill'](_0x133d09)['map']((_0x420447,_0x22140c)=>_0x420447+_0x22140c);for(const {cell:_0x24de85}of _0x222a9c['createTableWalker'](_0x27f13a,{'startColumn':_0x133d09,'endColumn':_0x133d09+_0x118520-0x1}))_0x1aa709['columnInsertionRanges']['push'](_0x43c17c['model']['createRangeOn'](_0x24de85));},{'priority':'low'}),_0x222a9c['on']('insertRows',(_0xa4b95b,_0x54022b)=>{const [_0xc387fc,_0x589c65={}]=_0x54022b;if(!_0x1aa709)return;const _0x31cb66=_0x589c65['at']||0x0,_0x4f941a=_0x589c65['rows']||0x1;_0x1aa709['rowInsertionIndexes']=new Array(_0x4f941a)['fill'](_0x31cb66)['map']((_0x4adf75,_0x403aff)=>_0x4adf75+_0x403aff);for(const {cell:_0x57ad87}of _0x222a9c['createTableWalker'](_0xc387fc,{'startRow':_0x31cb66,'endRow':_0x31cb66+_0x4f941a-0x1}))_0x1aa709['rowInsertionRanges']['push'](_0x43c17c['model']['createRangeOn'](_0x57ad87));},{'priority':'low'}),_0x9f71f9['descriptionFactory']['registerDescriptionCallback'](_0x4741b4=>{if(_0x4741b4['subType']&&_0x4741b4['subType']['startsWith']('tablePaste'))return _0x4741b4['previous']?{}:{'type':'insertion','content':o(_0x43c17c['locale'],'*Replace\x20table\x20cells*')};});const _0x73715e=()=>!0x1;for(const _0x5ecf24 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x9f71f9['_suggestionFactory']['registerCustomCallback']('insertion',_0x5ecf24,'join',_0x73715e),_0x9f71f9['_suggestionFactory']['registerCustomCallback']('deletion',_0x5ecf24,'join',_0x73715e),_0x9f71f9['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5ecf24,'join',_0x73715e);_0x9f71f9['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x73715e),_0x9f71f9['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x129db8,_0x40a301,_0x184925)=>{const _0x4fa46c=_0x129db8['map'](_0x22d5af=>_0x22d5af['getContainedElement']())['filter'](_0x228786=>_0x228786),_0x544337=new Map(_0x4fa46c['map'](_0x521bea=>[_0x521bea,null]));if(_0x1aa709){for(const {element:_0x4bbd5b,attributes:_0xf975ff}of _0x1aa709['cells'])_0xf975ff&&_0x544337['set'](_0x4bbd5b,_0xf975ff);}else{if(_0x184925&&_0x184925['markerAttributes'])for(const [_0x30b645,_0x41042d]of Object['entries'](_0x184925['markerAttributes'])){const _0x4d033d=_0x43c17c['model']['markers']['get'](_0x30b645),_0x3e0b5e=_0x4d033d?_0x4d033d['getRange']()['getContainedElement']():null;_0x3e0b5e&&_0x544337['set'](_0x3e0b5e,_0x41042d);}}_0x43c17c['model']['change'](_0x1f2457=>{for(const [_0x3b3da8,_0x14aef8]of _0x544337)_0x1f2457['setAttributes']({...De,..._0x14aef8},_0x3b3da8);});});const _0x33858b=(_0x2323b4,_0x4fc44a)=>{_0x9f71f9['_suggestionFactory']['registerCustomCallback'](_0x2323b4,'tablePaste',_0x4fc44a,(_0x57b0ba,_0x2d5c63,_0x44c792)=>{_0x43c17c['model']['change'](_0x4b33b3=>{const _0x4f23e4=[];for(const _0x42ff3a of _0x57b0ba){const _0xccad2c=_0x42ff3a['start']['nodeAfter'];_0xccad2c['is']('element','tableCellSuggestion')&&_0x4f23e4['push'](_0xccad2c);}_0x9f71f9['_suggestionFactory']['getSuggestionCallback'](_0x2323b4,null,_0x4fc44a)(_0x57b0ba,_0x2d5c63,_0x44c792);for(const _0x180010 of _0x4f23e4)'$graveyard'!=_0x180010['root']['rootName']&&_0x4b33b3['unwrap'](_0x180010);});});};_0x33858b('insertion','accept'),_0x33858b('insertion','discard'),_0x33858b('deletion','accept'),_0x33858b('deletion','discard'),_0x9f71f9['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x24b573=>{const _0x4c39dd=_0x24b573['map'](_0x438289=>_0x438289['getContainedElement']()),_0x5b1949=_0x4c39dd[0x0]['findAncestor']('table'),{minRow:_0x213693,maxRow:_0x3533c9}=_0xb6bfae['_getCoordsForCells'](_0x4c39dd);_0x222a9c['removeRows'](_0x5b1949,{'at':_0x213693,'rows':_0x3533c9-_0x213693+0x1});}),_0x9f71f9['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0xf9e06d=>{const _0x3d889e=_0xf9e06d['map'](_0x1c9a73=>_0x1c9a73['getContainedElement']()),_0x242d43=_0x3d889e[0x0]['findAncestor']('table'),{minColumn:_0x32baea,maxColumn:_0xf50088}=_0xb6bfae['_getCoordsForCells'](_0x3d889e);_0x222a9c['removeColumns'](_0x242d43,{'at':_0x32baea,'columns':_0xf50088-_0x32baea+0x1});});const _0x2aed8f=(_0x30fd91,_0x28b5b1)=>{if(!_0x28b5b1['subType']||!_0x28b5b1['subType']['startsWith']('tablePaste'))return;const _0x57e1b5=_0x28b5b1['attributes']['tablePasteChainId'],_0x3222f8=_0x9f71f9['getSuggestions']()['filter'](_0x5a4e56=>_0x5a4e56['isInContent']&&_0x5a4e56['attributes']&&_0x5a4e56['attributes']['tablePasteChainId']==_0x57e1b5);_0x3222f8['length']&&_0x28b5b1['getAllAdjacentSuggestions']()['length']!=_0x3222f8['length']&&_0x3222f8['reduce']((_0x31ed2e,_0x206b77)=>(_0x31ed2e['next']=_0x206b77,_0x206b77['previous']=_0x31ed2e,_0x206b77));};function _0x4d2163(_0x41d199,_0x40aca5=!0x0){const {id:_0x42ac59,authorId:_0x442bd1}=_0x9f71f9['_splitMarkerName'](_0x41d199['markerName']),_0x23d44f=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x22cbbb=_0x9f71f9['activeMarkers']['includes'](_0x41d199['markerName']);return _0x22cbbb&&_0x23d44f['push']('ck-suggestion-marker--active'),{'classes':_0x23d44f,'attributes':{'data-suggestion':_0x42ac59,'data-author-id':_0x442bd1},'priority':_0x22cbbb&&_0x40aca5?0xbc2:0xbb8};}_0x9f71f9['on']('suggestionLoaded',_0x2aed8f,{'priority':'high'}),_0x9f71f9['on']('suggestionUnloaded',_0x2aed8f,{'priority':'high'}),_0x43c17c['model']['document']['registerPostFixer'](()=>{let _0x20a7d3=!0x1;const _0x27cf33=Array['from'](_0x43c17c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5795cc,data:_0x16650d}of _0x27cf33){const {group:_0x53bfc0,type:_0x4c832b,id:_0x520406}=_0x9f71f9['_splitMarkerName'](_0x5795cc);if('suggestion'!=_0x53bfc0||'deletion'!=_0x4c832b||_0x16650d['oldRange'])continue;if(!_0x9f71f9['hasSuggestion'](_0x520406))continue;const _0x21dd92=_0x9f71f9['getSuggestion'](_0x520406)['getRanges'](),_0xc746aa=_0x43c17c['plugins']['get']('Users')['me'];for(const _0x598484 of _0x9f71f9['getSuggestions']()){if(!_0x598484['isInContent']||_0x598484['author']!=_0xc746aa)continue;if('formatBlock'!=_0x598484['type']||'tablePasteCell'!=_0x598484['subType'])continue;if(_0x598484['getRanges']()['every'](_0x483783=>_0x21dd92['some'](_0x15030b=>_0x15030b['containsRange'](_0x483783,!0x0)))){for(const _0xf4a585 of _0x598484['getAllAdjacentSuggestions']())_0xf4a585['isInContent']&&(_0xf4a585['discard'](),_0x20a7d3=!0x0);}}}return _0x20a7d3;}),_0x43c17c['model']['document']['registerPostFixer'](_0x213e8f=>{const _0x10f89e=_0x43c17c['commands']['get']('redo');if(!_0x10f89e||!_0x10f89e['_createdBatches']['has'](_0x213e8f['batch']))return!0x1;let _0x5d5610=!0x1;const _0x24fcab=_0x43c17c['plugins']['get']('Users')['me'],_0x5887ac=_0x43c17c['model']['document']['differ']['getChanges'](),_0x4f2761=Array['from'](_0x43c17c['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x4e0877,data:_0x241d92})=>{const {group:_0x43e354,subType:_0x25003a,authorId:_0x2f8950}=_0x9f71f9['_splitMarkerName'](_0x4e0877);return'suggestion'==_0x43e354&&'tablePaste'==_0x25003a&&_0x2f8950==_0x24fcab['id']&&!_0x241d92['oldRange'];});for(const _0x5bc7b2 of _0x5887ac){if('insert'!=_0x5bc7b2['type']||'tableCellSuggestion'!=_0x5bc7b2['name']||0x1!=_0x5bc7b2['length'])continue;const _0x125c07=_0x213e8f['createRange'](_0x5bc7b2['position'],_0x5bc7b2['position']['getShiftedBy'](0x1));if(!_0x4f2761['find'](({data:_0x94f581})=>_0x94f581['newRange']['isEqual'](_0x125c07))){for(const {name:_0x54e94,data:_0x5a2e4f}of _0x4f2761)if(_0x125c07['containsRange'](_0x5a2e4f['newRange'])){_0x213e8f['updateMarker'](_0x54e94,{'range':_0x125c07}),_0x5d5610=!0x0;break;}}}return _0x5d5610;}),_0x43c17c['model']['document']['registerPostFixer'](_0x4e9292=>{let _0xd4836b=!0x1;const _0x28c9b9=_0x43c17c['plugins']['get']('Users')['me'],_0xbf7d14=_0x9f71f9['getSuggestions']()['filter'](_0x9d5747=>_0x9d5747['isInContent']&&_0x9d5747['author']==_0x28c9b9),_0x4b8e94=new Set(),_0x388fe5=new Set();for(const _0x2cdee3 of _0xbf7d14)if('tablePaste'==_0x2cdee3['subType'])for(const _0x25f903 of _0x2cdee3['getMarkers']()){const _0x3adfe3=_0x25f903['getRange']()['getContainedElement']();if(_0x3adfe3){if(_0x3adfe3['is']('element','tableCellSuggestion')&&He(_0x3adfe3)){_0x2cdee3['removeMarker'](_0x25f903['name']),_0x4b8e94['add'](_0x3adfe3),_0xd4836b=!0x0;const _0x16d9a1=_0x3adfe3['nextSibling'],_0x1d8aab=_0x3adfe3['previousSibling'],_0x529345=_0x16d9a1&&_0x16d9a1['is']('element','tableCellSuggestion'),_0x1eb9b0=_0x1d8aab&&_0x1d8aab['is']('element','tableCellSuggestion');_0x529345&&!_0x4b8e94['has'](_0x16d9a1)&&_0x388fe5['add'](_0x16d9a1),_0x1eb9b0&&!_0x4b8e94['has'](_0x1d8aab)&&_0x388fe5['add'](_0x1d8aab);}else _0x3adfe3['is']('element','paragraph')&&_0x3adfe3['isEmpty']&&(_0x2cdee3['removeMarker'](_0x25f903['name']),_0xd4836b=!0x0);}}else{if('tablePasteCell'==_0x2cdee3['subType']){if(!_0x2cdee3['attributes']||!_0x2cdee3['attributes']['tablePasteChainId'])continue;const _0x196ef2=_0x2cdee3['attributes']['markerAttributes'];if(_0x196ef2&&Object['keys'](_0x196ef2)['length'])continue;const _0x365f55=_0x2cdee3['attributes']['tablePasteChainId'];let _0x6d1348=!0x0,_0x243794=!0x0;for(const _0xdec5cd of _0xbf7d14)if(_0xdec5cd['subType']&&_0xdec5cd['subType']['startsWith']('tablePaste')){if(!_0xdec5cd['attributes']['tablePasteChainId']){_0x243794=!0x1;break;}if(_0xdec5cd['id']!=_0x2cdee3['id']&&_0xdec5cd['attributes']['tablePasteChainId']==_0x365f55){_0x6d1348=!0x1;break;}}_0x243794&&_0x6d1348&&(_0x2cdee3['removeMarkers'](),_0xd4836b=!0x0);}}for(const _0x125b14 of _0x4b8e94)_0x4e9292['remove'](_0x125b14);for(const _0x2fab9a of _0x388fe5)_0x4e9292['unwrap'](_0x2fab9a);return _0xd4836b;}),_0x43c17c['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x26effa=>_0x4d2163(_0x26effa),'converterPriority':'high'}),_0x43c17c['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x482ab9,_0x5d6575)=>_0x5d6575['options']['showSuggestionHighlights']?_0x4d2163(_0x482ab9,!0x1):null,'converterPriority':'high'});const _0x3f618c=_0x43c17c['editing']['view'];this['listenTo'](_0x3f618c['document'],'clipboardOutput',(_0x3a3766,_0x221fb1)=>{const _0x2a853d=[];for(const _0x2c5612 of _0x3f618c['createRangeIn'](_0x221fb1['content'])['getItems']())_0x2c5612['is']('element','suggestion-td')&&_0x2a853d['push'](_0x2c5612);_0x3f618c['change'](_0x3a829a=>{for(const _0xf513c7 of _0x2a853d)_0x3a829a['move'](_0x3a829a['createRangeIn'](_0xf513c7),_0x3a829a['createPositionBefore'](_0xf513c7)),_0x3a829a['remove'](_0xf513c7);});});}}function He(_0x9195f5){if(_0x9195f5['isEmpty'])return!0x0;const _0x54c059=_0x9195f5['getChild'](0x0);return _0x54c059['is']('element','paragraph')&&_0x54c059['isEmpty'];}function qe(_0x44a56b,_0x12cb57={},_0x3c4b48){for(const {isAnchor:_0x116992,cellHeight:_0x5bd86e,cellWidth:_0x1961ea}of _0x3c4b48['createTableWalker'](_0x44a56b,{'includeAllSlots':!0x0,..._0x12cb57}))if(!_0x116992||0x1!=_0x5bd86e||0x1!=_0x1961ea)return!0x1;return!0x0;}class Ot extends _0x1ac4a7{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x44d347=this['editor']['plugins']['get']('TrackChangesEditing');_0x44d347['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x44d347['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x44d347['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x44d347['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x44d347['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x44d347['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x1cce5c,_0x3f6797){const _0x166889=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5dca89=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x5650ed=_0x3f6797['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x31705b=_0x5dca89['getColumnGroupElement'](_0x5650ed);let _0x2f5e5a=_0x31705b?_0x5dca89['getTableColumnsWidths'](_0x31705b):null,_0x10d716=_0x5650ed['getAttribute']('tableWidth')||null;const _0x4f788f=_0x3f6797['tableWidth']||_0x10d716,_0x2a62f0=_0x3f6797['columnWidths']||_0x2f5e5a,_0x1558e0=this['editor']['plugins']['get']('Users')['me'];for(const _0x5180eb of _0x166889['getSuggestions']()){const _0x32865a=_0x5180eb['getContainedElement']();if('resizeTable'===_0x5180eb['subType']&&_0x32865a===_0x5650ed){_0x5180eb['author']!==_0x1558e0&&_0x5180eb['discard']();const _0x510514=_0x5180eb['data']['commandParams'];_0x10d716=_0x510514[0x0]['tableWidth'],_0x2f5e5a=_0x510514[0x0]['columnWidths'];break;}}_0x1cce5c({'table':_0x5650ed,'tableWidth':_0x4f788f,'columnWidths':_0x2a62f0}),_0x166889['markBlockFormat'](_0x5650ed,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x10d716,'columnWidths':_0x2f5e5a}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x52db28){if('formatBlock'!=_0x52db28['type']&&'formatInline'!=_0x52db28['type'])return;const {data:_0x1a6c67}=_0x52db28;if(_0x1a6c67&&'resizeTable'===_0x1a6c67['formatGroupId']){const _0xec5993='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0xec5993)};}}}class xt extends _0x1ac4a7{['afterInit'](){const _0x20b5cf=this['editor'];_0x20b5cf['plugins']['has']('Template')&&_0x20b5cf['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Et extends _0x1ac4a7{['afterInit'](){const _0x36ecf3=this['editor'];if(!_0x36ecf3['commands']['get']('insertTableOfContents'))return;_0x36ecf3['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x105052=_0x36ecf3['plugins']['get']('TrackChangesEditing'),_0x36572e=_0x36ecf3['locale'];_0x105052['descriptionFactory']['registerElementLabel']('tableOfContents',_0x31a07e=>o(_0x36572e,'ELEMENT_TABLE_OF_CONTENTS',_0x31a07e));}}class Rt extends _0x1ac4a7{['afterInit'](){const _0x4b5430=this['editor'];if(!_0x4b5430['plugins']['has']('Title'))return;const _0x463ff9=_0x4b5430['plugins']['get']('TrackChangesEditing');_0x463ff9['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x4b5430['locale'],'ELEMENT_TITLE')),_0x4b5430['model']['document']['registerPostFixer'](_0x129bae=>{let _0x27df0a=!0x1;const _0x5b336c=Array['from'](_0x4b5430['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x25f195,data:_0x49f4fb}of _0x5b336c){const {group:_0x11c71d}=_0x463ff9['_splitMarkerName'](_0x25f195);if('suggestion'!==_0x11c71d||!_0x49f4fb['newRange'])continue;const _0x370cc4=_0x49f4fb['newRange'],_0x3d4f43=_0x370cc4['end']['nodeBefore'];if(!_0x3d4f43||!_0x3d4f43['is']('element','title-content'))continue;if(!_0x370cc4['start']['isTouching'](_0x370cc4['end']))continue;const _0x239ba9=_0x4b5430['model']['schema']['getNearestSelectionRange'](_0x370cc4['end'],'forward');if(_0x239ba9&&_0x239ba9['isCollapsed']){const _0x3d4c9a=_0x129bae['createRange'](_0x370cc4['start'],_0x239ba9['start']);_0x3d4c9a['isEqual'](_0x370cc4)||(_0x129bae['updateMarker'](_0x25f195,{'range':_0x3d4c9a}),_0x27df0a=!0x0);}_0x27df0a||(_0x129bae['removeMarker'](_0x25f195),_0x27df0a=!0x0);}return _0x27df0a;});}}class Ut extends _0x1ac4a7{['afterInit'](){const _0x3fc424=this['editor'],_0x5a9310=_0x3fc424['plugins']['get']('TrackChangesEditing');_0x3fc424['plugins']['has']('Uploadcare')&&(_0x5a9310['enableCommand']('uploadcare'),_0x3fc424['plugins']['has']('UploadcareImageEdit')&&(_0x5a9310['enableCommand']('uploadcareImageEdit'),_0x5a9310['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x5a9310['registerBlockAttribute']('uploadcareImageId'),_0x5a9310['descriptionFactory']['registerDescriptionCallback'](_0x1e882b=>{if('attribute'!=_0x1e882b['type'])return;const {data:_0x4e68b4}=_0x1e882b;return _0x4e68b4&&'uploadcareImageId'==_0x4e68b4['key']?{'type':'format','content':''}:void 0x0;})));}}class Vt extends _0x1ac4a7{['afterInit'](){const _0x45956e=this['editor'],_0x42bb4b=_0x45956e['plugins']['get']('TrackChangesEditing');_0x45956e['plugins']['has']('UndoEditing')&&(_0x42bb4b['enableCommand']('undo'),_0x42bb4b['enableCommand']('redo'));}}class Ft extends _0x1ac4a7{static get['requires'](){return[Nt];}['afterInit'](){const _0x3381c1=this['editor'];if(!_0x3381c1['plugins']['has']('TableCaptionEditing'))return;_0x3381c1['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Pt extends _0x1ac4a7{['tableProperties'];['tableCellProperties'];constructor(_0x561c6c){super(_0x561c6c),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 _0x506a66=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x4f0f53 of this['tableProperties'])_0x506a66['enableCommand'](_0x4f0f53,(_0x4a46e9,_0x1bb74f)=>{const _0x15bda4=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x4f0f53,[_0x15bda4],this['tableProperties'],'tableProperties',_0x4a46e9,_0x1bb74f);});_0x506a66['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x506a66['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x506a66['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x565e8,_0x3eb194)=>this['handleDiscardAction'](this['tableProperties'],_0x565e8,_0x3eb194)),_0x506a66['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x519f1f of this['tableCellProperties'])_0x506a66['enableCommand'](_0x519f1f,(_0x5e7882,_0x35831c)=>{const _0x555329=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x519f1f,_0x555329,this['tableCellProperties'],'tableCellProperties',_0x5e7882,_0x35831c);});_0x506a66['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x506a66['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x506a66['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x1043a5,_0x2d5521)=>this['handleDiscardAction'](this['tableCellProperties'],_0x1043a5,_0x2d5521)),_0x506a66['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x506a66['descriptionFactory']['registerDescriptionCallback'](_0x96f312=>this['handleSuggestionDescription'](_0x96f312)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x1a0458,_0x1d0dad,_0x69e40e,_0x4769b1,_0x30ef10,_0x5cd95f){const _0x4a276b=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x5cd95f['batch'],()=>{for(const _0x5b5bc1 of _0x1d0dad){if(this['_getSuggestion'](_0x5b5bc1,_0x4769b1))_0x30ef10(_0x5cd95f);else{const _0x307e53={};for(const _0x408573 of _0x69e40e){const _0x4a98f9=_0x5b5bc1['getAttribute'](_0x408573);void 0x0!==_0x4a98f9&&(_0x307e53[_0x408573]=_0x4a98f9);}_0x30ef10(_0x5cd95f),_0x4a276b['markBlockFormat'](_0x5b5bc1,{'commandParams':[_0x307e53]},[],_0x4769b1);}}});}['handleDiscardAction'](_0x3e5a81,_0x370491,_0x1f9e0f){const _0x4d7353=_0x370491[0x0]['start']['nodeAfter'],_0x475a70=_0x1f9e0f['commandParams'][0x0];this['editor']['model']['change'](_0x33b2b3=>{for(const _0x45350d of _0x3e5a81)void 0x0!==_0x475a70[_0x45350d]?_0x33b2b3['setAttribute'](_0x45350d,_0x475a70[_0x45350d],_0x4d7353):_0x33b2b3['removeAttribute'](_0x45350d,_0x4d7353);});}['handleSuggestionDescription'](_0x4441e0){if(_0x4441e0['data'])switch(_0x4441e0['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'](_0x60fddf,_0x21a23a){const _0x2fb2f9=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x4bf5cb of _0x2fb2f9['getSuggestions']({'skipNotAttached':!0x0})){const _0x2c7c99=_0x4bf5cb['getContainedElement']();if(_0x4bf5cb['subType']===_0x21a23a&&_0x2c7c99===_0x60fddf)return _0x4bf5cb;}return null;}['_registerTablePropertiesAttributes'](){const _0x393e73=this['editor']['plugins']['get']('TrackChangesEditing'),_0x49e72d=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x134656 of _0x49e72d){const _0x483885=_0x134656['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x393e73['registerBlockAttribute'](_0x134656),_0x393e73['descriptionFactory']['registerAttributeLabel'](_0x134656,o(this['editor']['locale'],'FORMAT_'+_0x483885));}}}class Gt extends _0x1ac4a7{['afterInit'](){const _0x187b47=this['editor'];if(!_0x187b47['plugins']['has']('LineHeight'))return;const _0x3de10a=_0x187b47['plugins']['get']('TrackChangesEditing'),_0xee62=_0x187b47['locale'];_0x3de10a['enableDefaultAttributesIntegration']('lineHeight'),_0x3de10a['registerBlockAttribute']('lineHeight'),_0x3de10a['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0xee62,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x1ac4a7{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x53c5da,_0x4dc787,_0x11ae4f,V,F,G,L,J,K,W,H,q,z,Q,Z,tt,et,it,nt,st,ot,rt,at,ct,ft,ut,ht,gt,lt,mt,pt,yt,dt,X,Gt,Y,kt,wt,bt,St,jt,It,At,_t,vt,Ct,$t,Nt,Dt,Mt,Bt,Ft,Tt,Ot,Et,Pt,xt,Rt,Ut,Vt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xe16974){super(_0xe16974),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x1ef9f0,_0x351c26,_0x24e387,_0x4589be)=>{this['_model']['change'](()=>{for(const _0x21d13a of[..._0x4589be,..._0x24e387])this['_model']['markers']['has'](_0x21d13a)&&_0xe16974['editing']['reconvertMarker'](_0x21d13a);});}),this['descriptionFactory']=new U(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Jt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0xe16974['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(),_0xe16974['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0xe16974['config']['get']('trackChanges.trackFormatChanges'),_0xe16974['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0xe16974['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0xe16974,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x17436f=this['editor'],_0x52ee2f=(_0x28be7e,_0x2feaa7)=>{if('attribute'!=_0x28be7e)return'ck-suggestion-marker-'+_0x28be7e;const _0x59fb32=_0x2feaa7['split']('|')[0x0];return this['_isBlockAttribute'](_0x59fb32)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x17436f['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x17524b=>{const {id:_0x3df7b7,authorId:_0x25b9e3,type:_0x3f759f,subType:_0x3a600e}=this['_splitMarkerName'](_0x17524b['markerName']),_0x25af46=['ck-suggestion-marker',_0x52ee2f(_0x3f759f,_0x3a600e)];let _0x107e33=0xbb8;return this['activeMarkers']['includes'](_0x17524b['markerName'])&&(_0x25af46['push']('ck-suggestion-marker--active'),_0x107e33=0xbc2),'deletion'==_0x3f759f&&(_0x107e33+=0x5),{'classes':_0x25af46,'attributes':{'data-suggestion':_0x3df7b7,'data-author-id':_0x25b9e3},'priority':_0x107e33};}}),_0x17436f['conversion']['for']('dataDowncast')['add'](_0x53b1ba=>{_0x53b1ba['on']('addMarker:suggestion',(_0x54da3d,_0x302e00,_0x1f54d0)=>{if(!_0x1f54d0['options']['showSuggestionHighlights'])return;const _0x58578f=_0x302e00['item'];if(!_0x58578f)return;const _0x5999c2=_0x1f54d0['mapper']['toViewElement'](_0x58578f);_0x17436f['model']['schema']['isObject'](_0x58578f)&&_0x5999c2&&!_0x5999c2['getCustomProperty']('widget')&&_0x5999c2['is']('containerElement')&&_0x376b06(_0x5999c2,_0x1f54d0['writer']);},{'priority':'high'});}),_0x17436f['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0xea98b3,_0x96a7c5)=>{if(!_0x96a7c5['options']['showSuggestionHighlights'])return null;const {id:_0x32bf06,authorId:_0x2d72d3,type:_0x4f29e7,subType:_0x20ba7d}=this['_splitMarkerName'](_0xea98b3['markerName']);return{'classes':['ck-suggestion-marker',_0x52ee2f(_0x4f29e7,_0x20ba7d)],'priority':0xbb8,'attributes':{'data-suggestion':_0x32bf06,'data-author-id':_0x2d72d3}};}});const _0x2e473a=({showActiveMarkers:_0x23f50b=!0x0,isAttributeSuggestion:_0x29c0d8=!0x1}={})=>(_0x1a87d6,_0x547910,_0x16655a)=>{if(!_0x547910['item'])return;const {id:_0x2142d5,authorId:_0x2a7643,subType:_0xa42f13}=this['_splitMarkerName'](_0x547910['markerName']);if(_0x29c0d8){const _0x4eb8db=oe(_0xa42f13);if(!this['_isBlockAttribute'](_0x4eb8db))return;}if(_0x547910['item']['is']('selection'))return void _0x16655a['consumable']['consume'](_0x547910['item'],_0x1a87d6['name']);const _0x4693a8=_0x16655a['mapper']['toViewElement'](_0x547910['item']);if(_0x547910['item']['is']('element')&&_0x17436f['model']['schema']['isBlock'](_0x547910['item'])&&!_0x4693a8['getCustomProperty']('addHighlight')){_0x16655a['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x4693a8),_0x16655a['writer']['setAttribute']('data-suggestion',_0x2142d5,_0x4693a8),_0x16655a['writer']['setAttribute']('data-author-id',_0x2a7643,_0x4693a8),_0x16655a['mapper']['bindElementToMarker'](_0x4693a8,_0x547910['markerName']),_0x23f50b&&(this['activeMarkers']['includes'](_0x547910['markerName'])?_0x16655a['writer']['addClass']('ck-suggestion-marker--active',_0x4693a8):_0x16655a['writer']['removeClass']('ck-suggestion-marker--active',_0x4693a8));for(const _0xd58205 of _0x17436f['model']['createRangeIn'](_0x547910['item'])['getItems']())_0x16655a['consumable']['consume'](_0xd58205,_0x1a87d6['name']);_0x16655a['consumable']['consume'](_0x547910['item'],_0x1a87d6['name']);}};_0x17436f['conversion']['for']('dataDowncast')['add'](_0x242b3f=>{_0x242b3f['on']('addMarker:suggestion:formatBlock',(_0x468183,_0x1862b7,_0x11f310)=>{_0x11f310['options']['showSuggestionHighlights']&&_0x2e473a({'showActiveMarkers':!0x1})(_0x468183,_0x1862b7,_0x11f310);},{'priority':'highest'});}),_0x17436f['conversion']['for']('dataDowncast')['add'](_0x4e6253=>{_0x4e6253['on']('addMarker:suggestion:attribute',(_0xae9bdd,_0x2f877b,_0x1a9075)=>{_0x1a9075['options']['showSuggestionHighlights']&&_0x2e473a({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0xae9bdd,_0x2f877b,_0x1a9075);},{'priority':'highest'});}),_0x17436f['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x1c07fe,_0x55abb8)=>{if(_0x55abb8['options']['showSuggestionHighlights']){const {id:_0x3e49a9,authorId:_0x551928}=this['_splitMarkerName'](_0x1c07fe);return _0x1c07fe['includes'](':split')||_0x1c07fe['includes'](':merge')?{'group':'suggestion','name':_0x1c07fe['substr'](0xb),'attributes':{'data-suggestion':_0x3e49a9,'data-author-id':_0x551928}}:null;}return{'group':'suggestion','name':_0x1c07fe['substr'](0xb)};}}),_0x17436f['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4a073a,{writer:_0x8514dc})=>{let _0x53585a='suggestion:'+_0x4a073a['getAttribute']('suggestion-type')+':'+_0x4a073a['getAttribute']('id');return _0x4a073a['getAttribute']('marker-count')&&(_0x53585a+=':'+_0x4a073a['getAttribute']('marker-count')),_0x8514dc['createElement']('$marker',{'data-name':_0x53585a});}}),_0x17436f['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x17436f['conversion']['for']('editingDowncast')['add'](_0xa89c91=>{_0xa89c91['on']('addMarker:suggestion:formatBlock',_0x2e473a(),{'priority':'high'});}),_0x17436f['conversion']['for']('editingDowncast')['add'](_0xb33980=>{_0xb33980['on']('addMarker:suggestion:attribute',_0x2e473a({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x17436f['conversion']['for']('editingDowncast')['add'](_0x3e0c0e=>{_0x3e0c0e['on']('removeMarker:suggestion:formatBlock',(_0x4502c7,_0x1e84bc,_0x51de5c)=>{const _0x4dfb76=_0x51de5c['mapper']['markerNameToElements'](_0x1e84bc['markerName']);if(_0x4dfb76){for(const _0x813fdf of _0x4dfb76)_0x813fdf['getCustomProperty']('addHighlight')||(_0x51de5c['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x813fdf),_0x51de5c['writer']['removeAttribute']('data-suggestion',_0x813fdf),_0x51de5c['writer']['removeAttribute']('data-author-id',_0x813fdf),_0x51de5c['mapper']['unbindElementFromMarkerName'](_0x813fdf,_0x1e84bc['markerName']));}},{'priority':'high'});}),_0x17436f['conversion']['for']('editingDowncast')['add'](_0x133084=>{_0x133084['on']('removeMarker:suggestion:attribute',(_0x316a29,_0x3f0836,_0x4f2d82)=>{const _0x2b7216=_0x4f2d82['mapper']['markerNameToElements'](_0x3f0836['markerName']);if(!_0x2b7216)return;const {subType:_0x29cec3}=this['_splitMarkerName'](_0x3f0836['markerName']),_0x4d05bf=oe(_0x29cec3);if(this['_isBlockAttribute'](_0x4d05bf)){for(const _0x40357f of _0x2b7216)_0x40357f['getCustomProperty']('addHighlight')||(_0x4f2d82['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x40357f),_0x4f2d82['writer']['removeAttribute']('data-suggestion',_0x40357f),_0x4f2d82['writer']['removeAttribute']('data-author-id',_0x40357f),_0x4f2d82['mapper']['unbindElementFromMarkerName'](_0x40357f,_0x3f0836['markerName']));}},{'priority':'high'});}),_0x17436f['model']['document']['registerPostFixer'](_0x3378d3=>{let _0x2454c6=!0x1;const _0x4d9da3=Array['from'](_0x17436f['model']['document']['differ']['getChangedMarkers']()),_0x12a3a6=new Set();for(const {name:_0x11d5fd,data:_0x529c63}of _0x4d9da3){const {group:_0x54a956,type:_0x1c0c7e,subType:_0x26c87b,id:_0x578753}=this['_splitMarkerName'](_0x11d5fd);if('suggestion'!==_0x54a956)continue;const _0x4e16e6=_0x26c87b?'suggestion:'+_0x1c0c7e+':'+_0x26c87b+':'+_0x578753:'suggestion:'+_0x1c0c7e+':'+_0x578753,_0x4531e4=_0x17436f['model']['markers']['getMarkersGroup'](_0x4e16e6),_0x4e9c97=_0x17436f['model']['markers']['get'](_0x11d5fd),_0x53faf5=this['_suggestions']['get'](_0x578753);if(null!=_0x529c63['newRange']){'formatInline'==_0x1c0c7e&&(_0x2454c6=_0x2454c6||Wt(_0x529c63['newRange'],_0x11d5fd,_0x3378d3,_0x17436f['model']['schema']));const _0x344274='attribute'==_0x1c0c7e&&this['_isBlockAttribute'](_0x26c87b['split']('|')[0x0]),_0xfc0be1='attribute'==_0x1c0c7e&&this['_isInlineAttribute'](_0x26c87b['split']('|')[0x0]);if(_0x529c63['newRange']['isCollapsed']||'$graveyard'==_0x529c63['newRange']['root']['rootName']||'formatBlock'==_0x1c0c7e&&!zt(_0x529c63['newRange'])||_0x344274&&!zt(_0x529c63['newRange'])||_0xfc0be1&&Qt(_0x529c63['newRange'])||'deletion'==_0x1c0c7e&&Qt(_0x529c63['newRange'])||_0x4e9c97&&Xt(_0x4e9c97,_0x4531e4))_0x3378d3['removeMarker'](_0x11d5fd),_0x2454c6=!0x0;else{if(!_0x53faf5||!_0x53faf5['isInContent'])continue;if(_0x529c63['newRange']&&_0x529c63['oldRange']&&_0x529c63['newRange']['isEqual'](_0x529c63['oldRange']))continue;_0x12a3a6['add'](_0x53faf5);}}}return _0x12a3a6['size']>0x0&&(_0x2454c6=!!this['_joinWithAdjacentSuggestions'](_0x12a3a6)||_0x2454c6),_0x2454c6;}),_0x17436f['model']['document']['registerPostFixer'](_0x183e14=>{let _0x431d35=!0x1;for(const _0x17e86d of _0x17436f['model']['document']['differ']['getChanges']())if('insert'==_0x17e86d['type'])for(const _0x55e267 of this['_suggestions']['values']()){if(_0x55e267['isMultiRange']||!_0x55e267['isInContent'])continue;const _0x1aee49='formatBlock'==_0x55e267['type'],_0x3dee33=this['_getAttributeKey'](_0x55e267),_0x161e06=_0x3dee33&&this['_isBlockAttribute'](_0x3dee33);if(!_0x1aee49&&!_0x161e06)continue;const _0x31b409=_0x55e267['getFirstRange']();if(_0x31b409['start']['parent']!=_0x31b409['end']['parent']&&!_0x31b409['end']['isAtEnd']){const _0x50e33f=_0x17436f['model']['createPositionAt'](_0x31b409['start']['nodeAfter'],'end'),_0xd7e717=_0x17436f['model']['createRange'](_0x31b409['start'],_0x50e33f);_0x183e14['updateMarker'](_0x55e267['getFirstMarker'](),{'range':_0xd7e717}),_0x431d35=!0x0;}}return _0x431d35;}),_0x17436f['model']['document']['registerPostFixer'](_0x305a13=>this['_processAttributeChanges'](_0x305a13)),_0x17436f['model']['document']['registerPostFixer'](_0x1899cb=>!_0x1899cb['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x1899cb)),_0x17436f['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x17436f['model']['document']['on']('change:data',(_0x5154c5,_0x2c86ec)=>{if(!_0x2c86ec['isLocal']||_0x2c86ec['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x122c24=_0x17436f['model']['document']['differ']['getChanges']();if(0x0==_0x122c24['length'])return;const _0x28aadc=[],_0x47a92c=_0x122c24['filter'](_0x9e436f=>'attribute'==_0x9e436f['type']),_0x271333=_0x122c24['filter'](_0x138844=>'insert'==_0x138844['type']&&'$text'!=_0x138844['name']);for(const _0x4c051e of _0x47a92c)this['_isRegisteredAttribute'](_0x4c051e['attributeKey'])&&_0x28aadc['push']({'key':_0x4c051e['attributeKey'],'newValue':_0x4c051e['attributeNewValue'],'oldValue':_0x4c051e['attributeOldValue'],'range':Zt(_0x4c051e['range'],_0x17436f['model'])});for(const _0x300697 of _0x271333){if('rename'!=_0x300697['action']&&'refresh'!=_0x300697['action'])continue;const _0xf109e9=te(_0x300697['position']['nodeAfter'],_0x17436f['model']),_0x344dd3=_0x300697['before'];'rename'==_0x300697['action']&&_0x28aadc['push']({'key':m,'newValue':_0x300697['name'],'oldValue':_0x344dd3['name'],'range':_0xf109e9});for(const [_0x37d1e5,_0x3a0926]of _0x344dd3['attributes']){if(!this['_isRegisteredAttribute'](_0x37d1e5))continue;const _0x3c2e4b=_0x300697['attributes']['get'](_0x37d1e5);_0x3a0926!==_0x3c2e4b&&_0x28aadc['push']({'key':_0x37d1e5,'newValue':_0x3c2e4b,'oldValue':_0x3a0926,'range':_0xf109e9});}for(const [_0x4b471b,_0x162384]of _0x300697['attributes'])this['_isRegisteredAttribute'](_0x4b471b)&&(_0x344dd3['attributes']['has'](_0x4b471b)||_0x28aadc['push']({'key':_0x4b471b,'newValue':_0x162384,'oldValue':null,'range':_0xf109e9}));}0x0!=_0x28aadc['length']&&_0x17436f['model']['enqueueChange'](_0x2c86ec,_0x658a85=>{const _0x5cb728=_0x668662();for(const {range:_0x576ec7,key:_0x3ef17c,oldValue:_0x177008,newValue:_0x622a7d}of _0x28aadc)this['markAttributeChange'](_0x576ec7,_0x3ef17c,_0x177008,_0x622a7d,{'groupId':_0x5cb728});this['_reduceExistingSuggestions'](_0x658a85,_0x28aadc);});},{'priority':'lowest'}),_0x17436f['model']['markers']['on']('update:suggestion',(_0x15adf0,_0x623476,_0x2f6ba2)=>{if(null==_0x2f6ba2){const {id:_0x2fae5d}=this['_splitMarkerName'](_0x623476['name']),_0x548af4=this['_suggestions']['get'](_0x2fae5d);_0x548af4&&_0x548af4['addMarkerName'](_0x623476['name']);}}),_0x17436f['model']['document']['on']('change:data',()=>{const _0x17c388=Array['from'](_0x17436f['model']['document']['differ']['getChangedMarkers']())['filter'](_0x264d22=>'suggestion'===this['_splitMarkerName'](_0x264d22['name'])['group']);if(0x0===_0x17c388['length'])return;_0x17c388['sort']((_0x4ed1ff,_0x10050f)=>{const _0x47dd5c=_0x4ed1ff['data']['oldRange'],_0x521cc6=_0x10050f['data']['oldRange'];return null===_0x47dd5c&&null===_0x521cc6?0x0:null===_0x47dd5c&&null!==_0x521cc6?-0x1:null!==_0x47dd5c&&null===_0x521cc6?0x1:_0x47dd5c['start']['isBefore'](_0x521cc6['start'])?-0x1:0x1;});const _0x5451ee=new Set(),_0x2592e5=new Set();for(const {name:_0x49fe90,data:_0x160caf}of _0x17c388){const {id:_0x49f30e}=this['_splitMarkerName'](_0x49fe90);if(null===_0x160caf['oldRange']){const _0x667549=this['_handleNewSuggestionMarker'](_0x49fe90);_0x2592e5['add'](_0x667549);}else{const _0x57e53a=this['_suggestions']['get'](_0x49f30e);null!==_0x160caf['newRange']||_0x57e53a['isInContent']?(_0x5451ee['add'](_0x57e53a['head']),_0x2592e5['add'](_0x57e53a)):this['_removeSuggestion'](_0x57e53a);}}_0x2592e5['size']>0x0&&this['_refreshSuggestionsChain'](_0x2592e5);for(const _0x4468af of _0x5451ee)this['fire']('suggestionChanged',_0x4468af);}),_0x17436f['model']['on']('applyOperation',(_0x6a5761,_0x4203bb)=>{const _0x430421=_0x4203bb[0x0];if(!this['_suggestions']['size'])return;if(!_0x430421['isDocumentOperation'])return;if(_0x430421['batch']['isUndo']||!_0x430421['batch']['isLocal'])return;let _0x3f19a9,_0x2b6c7d;switch(_0x430421['type']){case'insert':_0x3f19a9=_0x17436f['model']['createPositionAt'](_0x430421['position']),_0x2b6c7d=_0x3f19a9['getShiftedBy'](_0x430421['howMany']);break;case'split':_0x3f19a9=_0x17436f['model']['createPositionAt'](_0x430421['splitPosition']),_0x2b6c7d=_0x17436f['model']['createPositionAt'](_0x430421['moveTargetPosition']);break;case'move':_0x3f19a9=_0x17436f['model']['createPositionAt'](_0x430421['targetPosition']),_0x2b6c7d=_0x3f19a9['getShiftedBy'](_0x430421['howMany']);break;default:return;}const _0x5c70ca=_0x17436f['model']['createRange'](_0x3f19a9,_0x2b6c7d);_0x17436f['model']['change'](()=>{for(const {suggestion:_0x29ecfb,meta:_0x460538}of this['_findSuggestions'](_0x5c70ca)){if(_0x29ecfb['isMultiRange'])continue;if('formatInline'==_0x29ecfb['type'])continue;const _0x6f1b3e=this['_getAttributeKey'](_0x29ecfb);if(_0x6f1b3e&&this['_isBlockAttribute'](_0x6f1b3e)&&'split'!=_0x430421['type'])continue;const _0x3257c6=_0x29ecfb['data']&&_0x29ecfb['data']['multipleBlocks'];('formatBlock'!=_0x29ecfb['type']||'split'==_0x430421['type']&&!_0x3257c6)&&(_0x460538['containsRangeInObject']||'insertion'==_0x29ecfb['type']&&_0x460538['isOwn']||_0x29ecfb['getFirstRange']()['containsRange'](_0x5c70ca)&&this['_breakSuggestionMarker'](_0x29ecfb,_0x3f19a9,_0x2b6c7d));}});},{'priority':'lowest'}),_0x17436f['model']['on']('deleteContent',(_0x216f28,_0x171a58)=>{const _0x23f47e=_0x171a58[0x0],_0x3bb72f=_0x171a58[0x1];if(_0x3bb72f&&_0x3bb72f['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x23f47e['isCollapsed'])return;const _0x4749ce=_0x17436f['model']['schema'],{start:_0x15c3a8,end:_0x3853dc}=_0x23f47e['getFirstRange'](),_0x221457=_0x15c3a8['nodeAfter']&&_0x4749ce['isLimit'](_0x15c3a8['nodeAfter'])?null:_0x4749ce['getNearestSelectionRange'](_0x15c3a8,'forward'),_0x148196=_0x3853dc['nodeBefore']&&_0x4749ce['isLimit'](_0x3853dc['nodeBefore'])?null:_0x4749ce['getNearestSelectionRange'](_0x3853dc,'backward'),_0x1c1def=_0x17436f['model']['createRange'](_0x221457?_0x221457['start']:_0x15c3a8,_0x148196?_0x148196['end']:_0x3853dc);_0x17436f['model']['change'](_0x4e9eec=>{this['markDeletion'](_0x1c1def);const _0x2f0eb3=_0x17436f['model']['schema']['getNearestSelectionRange'](_0x1c1def['start']);_0x23f47e['is']('documentSelection')?_0x4e9eec['setSelection'](_0x2f0eb3):_0x23f47e['setTo'](_0x2f0eb3);}),_0x216f28['stop']();},{'priority':_0x48e2dc['normal']+0xa}),_0x17436f['model']['on']('insertContent',(_0x47c4bd,_0x45e9fe)=>{const _0xb6a043=_0x45e9fe[_0x45e9fe['length']-0x1];_0xb6a043&&_0xb6a043['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x17436f['model']['change'](()=>{let _0x4d5e6a=_0x17436f['model']['insertContent'](_0x45e9fe[0x0],_0x45e9fe[0x1],_0x45e9fe[0x2],{'forceDefaultExecution':!0x0});if(!_0x4d5e6a)return;_0x47c4bd['return']=_0x4d5e6a['clone']();const _0x1f4045=_0x4d5e6a['end']['nodeBefore'],_0x41f099=_0x17436f['model']['schema'];_0x1f4045&&_0x41f099['isBlock'](_0x1f4045)&&!_0x41f099['isObject'](_0x1f4045)&&(_0x4d5e6a=_0x17436f['model']['createRange'](_0x4d5e6a['start'],_0x17436f['model']['createPositionAt'](_0x1f4045,'end'))),this['markInsertion'](_0x4d5e6a);}),_0x47c4bd['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x1d85d5=new T(_0x17436f,this['_suggestions']);_0x17436f['commands']['add']('acceptSuggestion',_0x1d85d5),this['enableCommand']('acceptSuggestion');const _0x1f29b8=new O(_0x17436f,this['_suggestions']);_0x17436f['commands']['add']('discardSuggestion',_0x1f29b8),this['enableCommand']('discardSuggestion'),_0x17436f['commands']['add']('acceptAllSuggestions',new x(_0x17436f,_0x1d85d5,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x17436f['commands']['add']('discardAllSuggestions',new x(_0x17436f,_0x1f29b8,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x17436f['commands']['add']('acceptSelectedSuggestions',new E(_0x17436f,_0x1d85d5,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x17436f['commands']['add']('discardSelectedSuggestions',new E(_0x17436f,_0x1f29b8,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x129465=_0x17436f['plugins']['get']('CommentsRepository');this['listenTo'](_0x129465,'addComment',(_0x32e664,{threadId:_0x964b6e})=>{const _0xcab355=this['_suggestions']['get'](_0x964b6e);_0xcab355&&_0xcab355['commentThread']&&0x1===_0xcab355['commentThread']['length']&&this['_updateSuggestionData'](_0x964b6e,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x129465,'removeComment',(_0x242d45,{threadId:_0x13ed87})=>{const _0x1bb9ad=this['_suggestions']['get'](_0x13ed87);_0x1bb9ad&&_0x1bb9ad['commentThread']&&!_0x1bb9ad['commentThread']['length']&&this['_updateSuggestionData'](_0x13ed87,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x4bdfe9){const _0x3083f9=_0x40664d([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]),_0x26cff4=0x6b0f5e6f,_0x450ab3=0x6b082aaf^_0x26cff4,_0x34ccfd=window[_0x40664d([0x44,0x61,0x74,0x65])][_0x40664d([0x6e,0x6f,0x77])](),_0x10f4fc=_0x4bdfe9[_0x40664d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x413931=new window[(_0x40664d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x532ff1=>{_0x10f4fc[_0x40664d([0x6f,0x6e,0x63,0x65])](_0x40664d([0x72,0x65,0x61,0x64,0x79]),_0x532ff1);}),_0x55908e={[_0x40664d([0x6b,0x74,0x79])]:_0x40664d([0x45,0x43]),[_0x40664d([0x75,0x73,0x65])]:_0x40664d([0x73,0x69,0x67]),[_0x40664d([0x63,0x72,0x76])]:_0x40664d([0x50,0x2d,0x32,0x35,0x36]),[_0x40664d([0x78])]:_0x40664d([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]),[_0x40664d([0x79])]:_0x40664d([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]),[_0x40664d([0x61,0x6c,0x67])]:_0x40664d([0x45,0x53,0x32,0x35,0x36])},_0x2ec93e=_0x10f4fc[_0x40664d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x40664d([0x67,0x65,0x74])](_0x40664d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x32e5e9(){let _0x21cff0,_0x161782=null,_0x5a4b43=null;try{if(_0x2ec93e==_0x40664d([0x47,0x50,0x4c]))return _0x40664d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x21cff0=_0x84a8cf(),!_0x21cff0)return _0x40664d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x21cff0[_0x40664d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5a4b43=_0x4c030e(_0x21cff0[_0x40664d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x21cff0[_0x40664d([0x6a,0x74,0x69])])),await _0x580a8f()?_0x209802()?_0x10e424()?_0x40664d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3d93e6()?(_0x21cff0[_0x40664d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x40664d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x161782=_0x44a5fe(_0x40664d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x21cff0[_0x40664d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x40664d([0x74,0x72,0x69,0x61,0x6c])&&(_0x161782=_0x44a5fe(_0x40664d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5193e8()):_0x40664d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x40664d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x40664d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x40664d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x10e424(){const _0x43ae6b=[_0x40664d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x40664d([0x74,0x72,0x69,0x61,0x6c])][_0x40664d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21cff0[_0x40664d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x34ccfd/0x3e8:0xe10*_0x450ab3;return _0x21cff0[_0x40664d([0x65,0x78,0x70])]<_0x43ae6b;}function _0x209802(){const _0x116225=_0x21cff0[_0x40664d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x116225)return!0x1;if(_0x116225[_0x40664d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40664d([0x2a])))return!0x0;if(_0x116225[_0x40664d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40664d([0x54,0x43])))return!0x0;if(_0x116225[_0x40664d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40664d([0x52,0x54,0x43]))){if(_0x9d1e04())return!0x0;if(_0x3fee05()||_0x28c433())return!0x0;}return!0x1;}function _0x3d93e6(){const _0x25c78e=_0x21cff0[_0x40664d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x25c78e||0x0==_0x25c78e[_0x40664d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x17a2b1}=new URL(window[_0x40664d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x25c78e[_0x40664d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17a2b1))return!0x0;const _0x5a339e=_0x17a2b1[_0x40664d([0x73,0x70,0x6c,0x69,0x74])](_0x40664d([0x2e]));return _0x25c78e[_0x40664d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4123e4=>_0x4123e4[_0x40664d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40664d([0x2a])))[_0x40664d([0x6d,0x61,0x70])](_0x1fb249=>_0x1fb249[_0x40664d([0x73,0x70,0x6c,0x69,0x74])](_0x40664d([0x2e])))[_0x40664d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x109005=>_0x109005[_0x40664d([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5a339e[_0x40664d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x40664d([0x6d,0x61,0x70])](_0x356fd8=>Array(_0x5a339e[_0x40664d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x356fd8[_0x40664d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x40664d([0x66,0x69,0x6c,0x6c])](_0x356fd8[0x0]===_0x40664d([0x2a])?_0x40664d([0x2a]):'')[_0x40664d([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x356fd8))[_0x40664d([0x73,0x6f,0x6d,0x65])](_0xa3f1f4=>_0x5a339e[_0x40664d([0x65,0x76,0x65,0x72,0x79])]((_0x5f60b4,_0x2ff4d0)=>_0xa3f1f4[_0x2ff4d0]===_0x5f60b4||_0xa3f1f4[_0x2ff4d0]===_0x40664d([0x2a])));}function _0x5193e8(){return _0x161782&&_0x5a4b43?new window[(_0x40664d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x557df3,_0x12993e)=>{_0x161782[_0x40664d([0x74,0x68,0x65,0x6e])](_0x557df3,_0x12993e),_0x5a4b43[_0x40664d([0x74,0x68,0x65,0x6e])](_0x39d3d9=>{_0x39d3d9!=_0x40664d([0x56,0x61,0x6c,0x69,0x64])&&_0x557df3(_0x39d3d9);},_0x12993e);}):_0x161782||_0x5a4b43||_0x40664d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4c030e(_0x18a9db,_0x3bba85){return new window[(_0x40664d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x9ebb89=>{if(_0x5ea360())return _0x9ebb89(_0x40664d([0x56,0x61,0x6c,0x69,0x64]));_0x4e348d(),_0x10f4fc[_0x40664d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x40664d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x571c6b=!0x1;const _0x3ea523=_0x668662();function _0x34eace(_0x246920){return!!_0x246920&&(typeof _0x246920===_0x40664d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x246920===_0x40664d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x246920[_0x40664d([0x74,0x68,0x65,0x6e])]===_0x40664d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x246920[_0x40664d([0x63,0x61,0x74,0x63,0x68])]===_0x40664d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4f3d76(_0x77f453){_0xf1be61(_0x77f453)[_0x40664d([0x74,0x68,0x65,0x6e])](_0x21fa00=>{if(!_0x21fa00||_0x21fa00[_0x40664d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x40664d([0x6f,0x6b]))return _0x40664d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3e4333(_0x22759a(_0x3ea523+_0x3bba85))!=_0x21fa00[_0x40664d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x40664d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x40664d([0x56,0x61,0x6c,0x69,0x64]);})[_0x40664d([0x74,0x68,0x65,0x6e])](_0x41c066=>(_0x186264(),_0x41c066),()=>{const _0x112ce9=_0x5320d1();return null==_0x112ce9?(_0x186264(),_0x40664d([0x56,0x61,0x6c,0x69,0x64])):_0x40664d(_0x34ccfd-_0x112ce9>(0x4f03da6f^_0x26cff4)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x40664d([0x74,0x68,0x65,0x6e])](_0x9ebb89)[_0x40664d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x9ebb89(_0x40664d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x31ceb6=0x6b39b0ef^_0x26cff4;function _0x186264(){const _0x2c3a61=_0x40664d([0x6c,0x6c,0x63,0x74,0x2d])+_0x3e4333(_0x22759a(_0x18a9db)),_0x338d8a=_0x3a8d87(_0x3e4333(window[_0x40664d([0x4d,0x61,0x74,0x68])][_0x40664d([0x63,0x65,0x69,0x6c])](_0x34ccfd/_0x31ceb6)));window[_0x40664d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x40664d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2c3a61,_0x338d8a);}function _0x5320d1(){const _0x5d4a63=_0x40664d([0x6c,0x6c,0x63,0x74,0x2d])+_0x3e4333(_0x22759a(_0x18a9db)),_0x3c2c00=window[_0x40664d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x40664d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5d4a63);return _0x3c2c00?window[_0x40664d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3a8d87(_0x3c2c00),0x10)*_0x31ceb6:null;}function _0xf1be61(_0x4407d9){return new window[(_0x40664d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x31677c,_0x1b49ed)=>{_0x4407d9[_0x40664d([0x74,0x68,0x65,0x6e])](_0x31677c,_0x1b49ed),window[_0x40664d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1b49ed,0x6b0e8aaf^_0x26cff4);});}}_0x10f4fc[_0x40664d([0x6f,0x6e])](_0x40664d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2c8508,_0x529ca4)=>{if(_0x529ca4[0x0]!=_0x18a9db)return _0x9ebb89(_0x40664d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x529ca4[0x1]={..._0x529ca4[0x1],[_0x40664d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3ea523};},{[_0x40664d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x40664d([0x68,0x69,0x67,0x68])}),_0x10f4fc[_0x40664d([0x6f,0x6e])](_0x40664d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2abf58=>{_0x34eace(_0x2abf58[_0x40664d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x571c6b=!0x0,_0x4f3d76(_0x2abf58[_0x40664d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x40664d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x40664d([0x6c,0x6f,0x77])}),_0x413931[_0x40664d([0x74,0x68,0x65,0x6e])](()=>{_0x571c6b||_0x9ebb89(_0x40664d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5ea360(){return _0x10f4fc[_0x40664d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x40664d([0x76,0x69,0x65,0x77])][_0x40664d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x40664d([0x61,0x75,0x74,0x6f]);}function _0x4e348d(){_0x10f4fc[_0x40664d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x40664d([0x76,0x69,0x65,0x77])][_0x40664d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x40664d([0x61,0x75,0x74,0x6f]);}}function _0x44a5fe(_0xf2a411){const _0x55993a=[new window[(_0x40664d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x32162c=>setTimeout(_0x32162c,0x6b0660a3^_0x26cff4)),_0x413931[_0x40664d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x40664d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x13a0c8=>{let _0x4a01b6=0x0;_0x10f4fc[_0x40664d([0x6d,0x6f,0x64,0x65,0x6c])][_0x40664d([0x6f,0x6e])](_0x40664d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x281865,_0x3778a8)=>{_0x3778a8[0x0][_0x40664d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4a01b6++,_0x4a01b6==(0x6b0f5f97^_0x26cff4)&&(_0x13a0c8(),_0x281865[_0x40664d([0x6f,0x66,0x66])]());});}))];return window[_0x40664d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x40664d([0x72,0x61,0x63,0x65])](_0x55993a)[_0x40664d([0x74,0x68,0x65,0x6e])](()=>_0xf2a411);}async function _0x3b1fb2(){await _0x413931,_0x10f4fc[_0x40664d([0x6d,0x6f,0x64,0x65,0x6c])][_0x40664d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4aff44,_0x10f4fc[_0x40664d([0x6d,0x6f,0x64,0x65,0x6c])][_0x40664d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4aff44,_0x10f4fc[_0x40664d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x40664d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x9d1e04(){return _0x38bda4(_0x40664d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2773fb(_0x40664d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x40664d([0x73,0x74,0x61,0x74,0x65])]==_0x40664d([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x3fee05(){return _0x38bda4(_0x40664d([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 _0x28c433(){return _0x38bda4(_0x40664d([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x27a341(_0x2ef2ea){const _0x171305=_0x1ba290();_0x10f4fc[_0x171305]=_0x40664d([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2ef2ea,_0x2ef2ea!=_0x40664d([0x56,0x61,0x6c,0x69,0x64])&&_0x3b1fb2();}function _0x1ba290(){const _0x4d450d=window[_0x40664d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x40664d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x40664d([0x6e,0x6f,0x77])]())[_0x40664d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x40664d([0x2e]),'');let _0x48f2ab=_0x40664d([0x67]);for(let _0x3d4a39=0x0;_0x3d4a39<_0x4d450d[_0x40664d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3d4a39+=0x2){let _0xf8738c=window[_0x40664d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4d450d[_0x40664d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3d4a39,_0x3d4a39+0x2));_0xf8738c>=_0x3083f9[_0x40664d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xf8738c-=_0x3083f9[_0x40664d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x48f2ab+=_0x3083f9[_0xf8738c];}return _0x48f2ab;}function _0x84a8cf(){const _0x513d98=_0x2ec93e[_0x40664d([0x73,0x70,0x6c,0x69,0x74])](_0x40664d([0x2e]));if(0x3!=_0x513d98[_0x40664d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3b96f8(_0x513d98[0x1]);function _0x3b96f8(_0x26cf7b){const _0x581383=_0x5effd5(_0x26cf7b);return _0x581383&&_0x4adfc1()?_0x581383:null;function _0x4adfc1(){const _0x43638a=_0x581383[_0x40664d([0x6a,0x74,0x69])],_0x122e70=window[_0x40664d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x43638a[_0x40664d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x43638a[_0x40664d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x54ba38={..._0x581383,[_0x40664d([0x6a,0x74,0x69])]:_0x43638a[_0x40664d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x43638a[_0x40664d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x54ba38[_0x40664d([0x76,0x63])],_0x22759a(_0x54ba38)==_0x122e70;}}}async function _0x580a8f(){let _0x3e7be0=!0x0;try{const _0xb6ee56=_0x2ec93e[_0x40664d([0x73,0x70,0x6c,0x69,0x74])](_0x40664d([0x2e])),[_0x346d51,_0x3f80d0,_0x502149]=_0xb6ee56;return _0x1ea479(_0x346d51),await _0xe8c22a(_0x346d51,_0x3f80d0,_0x502149),_0x3e7be0;}catch{return!0x1;}function _0x1ea479(_0x1ebd7b){const _0x26d805=_0x5effd5(_0x1ebd7b);_0x26d805&&_0x26d805[_0x40664d([0x61,0x6c,0x67])]==_0x40664d([0x45,0x53,0x32,0x35,0x36])||(_0x3e7be0=!0x1);}async function _0xe8c22a(_0x2897a3,_0x4a7d84,_0x462451){const _0x24b8d4=window[_0x40664d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x40664d([0x66,0x72,0x6f,0x6d])](_0x4e5a22(_0x462451),_0x23d21f=>_0x23d21f[_0x40664d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x120b0a=new window[(_0x40664d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x40664d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2897a3+_0x40664d([0x2e])+_0x4a7d84),_0x256747=window[_0x40664d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x40664d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x256747)return;const _0x1f3327=await _0x256747[_0x40664d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x40664d([0x6a,0x77,0x6b]),_0x55908e,{[_0x40664d([0x6e,0x61,0x6d,0x65])]:_0x40664d([0x45,0x43,0x44,0x53,0x41]),[_0x40664d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x40664d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x40664d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x256747[_0x40664d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x40664d([0x6e,0x61,0x6d,0x65])]:_0x40664d([0x45,0x43,0x44,0x53,0x41]),[_0x40664d([0x68,0x61,0x73,0x68])]:{[_0x40664d([0x6e,0x61,0x6d,0x65])]:_0x40664d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1f3327,_0x24b8d4,_0x120b0a)||(_0x3e7be0=!0x1);}}function _0x5effd5(_0x26025f){return _0x26025f[_0x40664d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x40664d([0x65,0x79]))?JSON[_0x40664d([0x70,0x61,0x72,0x73,0x65])](_0x4e5a22(_0x26025f)):null;}function _0x4e5a22(_0x4f4590){return window[_0x40664d([0x61,0x74,0x6f,0x62])](_0x4f4590[_0x40664d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x40664d([0x2b]))[_0x40664d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x40664d([0x2f])));}function _0x22759a(_0x2a23a8){let _0xfb6505=0x1505;function _0x13dd52(_0x51022e){for(let _0x3d2cb2=0x0;_0x3d2cb2<_0x51022e[_0x40664d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3d2cb2++){const _0x28628f=_0x51022e[_0x40664d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3d2cb2);_0xfb6505=(_0xfb6505<<0x5)+_0xfb6505+_0x28628f,_0xfb6505&=_0xfb6505;}}function _0x28a90d(_0x4907f0){Array[_0x40664d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4907f0)?_0x4907f0[_0x40664d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x28a90d):_0x4907f0&&typeof _0x4907f0==_0x40664d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x40664d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4907f0)[_0x40664d([0x73,0x6f,0x72,0x74])]()[_0x40664d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5278cf,_0x5c13fa])=>{_0x13dd52(_0x5278cf),_0x28a90d(_0x5c13fa);}):_0x13dd52(window[_0x40664d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4907f0));}return _0x28a90d(_0x2a23a8),_0xfb6505>>>0x0;}function _0x3e4333(_0xdbd9ff){return _0xdbd9ff[_0x40664d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x40664d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x40664d([0x30]));}function _0x3a8d87(_0x33eb5d){return _0x33eb5d[_0x40664d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x40664d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x40664d([0x6a,0x6f,0x69,0x6e])]('');}function _0x38bda4(_0x6a0bf4){return _0x10f4fc[_0x40664d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x40664d([0x68,0x61,0x73])](_0x6a0bf4);}function _0x2773fb(_0x5318e2){return _0x10f4fc[_0x40664d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x40664d([0x67,0x65,0x74])](_0x5318e2);}function _0x4aff44(){}function _0x40664d(_0x3ae3dc){return _0x3ae3dc['map'](_0xbf37ac=>String['fromCharCode'](_0xbf37ac))['join']('');}_0x27a341(await _0x32e5e9());}(this);}set['adapter'](_0x2d7538){if(this['_adapter'])throw new _0x515288('track-changes-adapter-already-set',this);this['_adapter']=_0x2d7538;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x533533=!0x1,toJSON:_0x4b8e38=!0x1}={}){const _0x525d8a=[];for(const _0x172e8f of this['_suggestions']['values']())_0x533533&&!_0x172e8f['isInContent']||_0x525d8a['push'](_0x172e8f);return _0x4b8e38?_0x525d8a['map'](_0x439570=>_0x439570['toJSON']()):_0x525d8a;}['getSuggestion'](_0x381ec5){const _0x3dd4c5=this['_suggestions']['get'](_0x381ec5);if(!_0x3dd4c5)throw new _0x515288('track-changes-suggestion-not-found',this);return _0x3dd4c5;}['hasSuggestion'](_0x15d63c){return this['_suggestions']['has'](_0x15d63c);}['addSuggestionData'](_0x570107){const {authorId:_0x565de0,id:_0x199569,originalSuggestionId:_0x3e2385,attributes:_0x13ff07}=_0x570107,[_0x2f27a4,_0x42fe58]=_0x570107['type']['split'](':'),_0x3abdda=this['_suggestions']['get'](_0x199569)||this['_createSuggestion'](_0x2f27a4,_0x42fe58,_0x199569,_0x565de0,_0x13ff07,_0x3e2385);if(this['_addThreadToSuggestion'](_0x3abdda),this['_checkSuggestionCorrectness'](_0x3abdda,_0x2f27a4,_0x42fe58||null,_0x565de0),_0x3abdda['createdAt']=_0x570107['createdAt'],_0x3abdda['_isDataLoaded']=!0x0,_0x13ff07&&_0x13ff07['@external']){const _0x39058b=_0x13ff07['@external'],_0x4a3cc0=this['_getExternalAuthor'](_0x39058b['authorName']);_0x3abdda['authoredAt']=_0x39058b['createdAt'],_0x3abdda['author']=_0x4a3cc0,_0x3abdda['isExternal']=!0x0;}else _0x3abdda['authoredAt']=_0x570107['createdAt'];switch(_0x570107['data']&&(_0x3abdda['data']=_0x570107['data']),_0x570107['attributes']&&(_0x3abdda['attributes']=_0x570107['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x3abdda['_saved']=!0x0),this['_suggestionState']['get'](_0x3abdda)){case'notReady':this['_suggestionState']['set'](_0x3abdda,'dataReady');break;case'markerReady':_0x3abdda['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3abdda])),this['_refreshSuggestionsChain'](new Set([_0x3abdda])),this['_suggestionState']['set'](_0x3abdda,'ready'),this['fire']('suggestionLoaded',_0x3abdda)):this['_suggestionState']['set'](_0x3abdda,'removed');}return _0x3abdda;}['acceptSuggestion'](_0x53a217){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x21d7a2 of _0x53a217['getAllAdjacentSuggestions']())_0x21d7a2['accept']();});});}['discardSuggestion'](_0x18493d){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5def16 of _0x18493d['getAllAdjacentSuggestions']())_0x5def16['discard']();});});}['enableCommand'](_0x53fca4,_0x34acde){const _0x1ced31=this['editor']['commands']['get'](_0x53fca4);if(!_0x1ced31)throw new _0x515288('track-changes-command-not-found',this,{'commandName':_0x53fca4});if(this['_enabledCommands']['has'](_0x1ced31))throw new _0x515288('track-changes-enable-command-twice',this,{'commandName':_0x53fca4});this['_enabledCommands']['add'](_0x1ced31),_0x34acde&&_0x1ced31['on']('execute',(_0x5f3d4e,_0x3ba5fd)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x3ba5fd['length']>0x0&&_0x3ba5fd[_0x3ba5fd['length']-0x1]&&_0x3ba5fd[_0x3ba5fd['length']-0x1]['forceDefaultExecution']?_0x3ba5fd['pop']():(_0x5f3d4e['return']=_0x34acde((..._0x1b0bdf)=>_0x1ced31['execute'](..._0x1b0bdf,{'forceDefaultExecution':!0x0}),..._0x3ba5fd),_0x5f3d4e['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x8cd9ce){let _0x1fd20b,_0x12beec;const _0x24a3f9=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x1fd20b=_0x8cd9ce();}catch(_0x1b10e3){_0x12beec=_0x1b10e3;}return _0x24a3f9||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x12beec&&_0x515288['rethrowUnexpectedError'](_0x12beec,this),_0x1fd20b;}['markInsertion'](_0x56a3b6,_0xc56b2e=null,_0x386627={}){if(_0x56a3b6['isCollapsed'])return null;const _0x1e6fec=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x386627['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x50ee92,meta:_0x10e046}of this['_findSuggestions'](_0x56a3b6,'insertion'))if(_0x10e046['isOwn']){if(!_0x10e046['isNextTo']){if(_0x10e046['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!ne(_0x50ee92,_0x386627))continue;return _0x50ee92;}if(ne(_0x50ee92,_0x386627))return _0x50ee92;this['_breakSuggestionMarker'](_0x50ee92,_0x56a3b6['start'],_0x56a3b6['end']);break;}if(_0xc56b2e==_0x50ee92['subType']&&ne(_0x50ee92,_0x386627)){const _0x29ac73=_0x50ee92['getFirstRange']();return _0x29ac73['start']['isEqual'](_0x56a3b6['end'])?this['_setSuggestionRange'](_0x50ee92,this['_model']['createRange'](_0x56a3b6['start'],_0x29ac73['end'])):this['_setSuggestionRange'](_0x50ee92,this['_model']['createRange'](_0x29ac73['start'],_0x56a3b6['end'])),_0x50ee92;}}const _0x284d55=_0x668662(),_0x5278f5=_0x1e6fec['id'],_0x253ec0=_0xc56b2e?'insertion:'+_0xc56b2e:'insertion',_0x3e9883=this['_setSuggestionData']({'id':_0x284d55,'type':_0x253ec0,'createdAt':new Date(),'authorId':_0x5278f5,'attributes':_0x386627});return this['_addSuggestionMarker'](_0x253ec0,_0x284d55,_0x5278f5,_0x56a3b6),_0x3e9883;}['markMultiRangeInsertion'](_0xb9bf70,_0x477b81='multi',_0x980cb4={}){const _0x54edae=this['editor']['plugins']['get']('Users')['me'],_0x113350=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x477b81,'join');this['_trackingSessionId']&&(_0x980cb4['trackingSessionId']=this['_trackingSessionId']);for(const _0x43be4a of this['getSuggestions']())if(_0x43be4a['author']['id']==_0x54edae['id']&&'insertion'==_0x43be4a['type']&&_0x43be4a['subType']==_0x477b81&&ne(_0x43be4a,_0x980cb4)&&(_0x113350(_0x43be4a['getRanges'](),_0xb9bf70)||_0x113350(_0xb9bf70,_0x43be4a['getRanges']()))){for(const _0x317e4c of _0xb9bf70)_0x43be4a['addRange'](_0x317e4c);return _0x43be4a;}for(const {suggestion:_0x241175,meta:_0x18dea1}of this['_findSuggestions'](_0xb9bf70,'insertion')){if(!_0x18dea1['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x18dea1['containsRangeInObject'])continue;if(!ne(_0x241175,_0x980cb4))continue;let _0x2355dc=!0x0;for(const _0x241bc0 of _0x241175['getRanges']())for(const _0x31a3fb of _0xb9bf70)if(!_0x241bc0['containsRange'](_0x31a3fb)){_0x2355dc=!0x1;break;}if(_0x2355dc)return _0x241175;}const _0x4ddd09=_0x668662(),_0xf55713=_0x54edae['id'],_0x327b2e='insertion:'+_0x477b81,_0xe1a018=this['_setSuggestionData']({'id':_0x4ddd09,'type':_0x327b2e,'createdAt':new Date(),'authorId':_0xf55713,'attributes':_0x980cb4});for(const _0x3aabdb of _0xb9bf70)this['_addSuggestionMarker'](_0x327b2e,_0x4ddd09,_0xf55713,_0x3aabdb,R['getMultiRangeId']());return _0xe1a018;}['markInlineFormat'](_0x331088,_0x5854fb,_0x204f32=null,_0x23d6d3={}){if(_0x204f32=_0x204f32||qt(_0x5854fb),_0x331088['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x23d6d3['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1b4f4f=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x204f32,'accept');return this['forceDefaultExecution'](()=>_0x1b4f4f([_0x331088],_0x5854fb,_0x23d6d3)),null;}const _0x223c6e=this['editor']['plugins']['get']('Users')['me'],_0x3a5a80=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x5a0153,meta:_0x495003}of this['_findSuggestions'](_0x331088,'insertion'))_0x495003['isOwn']&&!_0x495003['isInsideObject']&&_0x3a5a80['push'](..._0x5a0153['getRanges']());}const _0x48df4e=function(_0x263628,_0x184f17){const _0x3a7138=[];for(const _0x134124 of _0x184f17){const _0xe8b821=_0x263628['getIntersection'](_0x134124);_0xe8b821&&_0x3a7138['push'](_0xe8b821);}return _0x3a7138;}(_0x331088,_0x3a5a80),_0x22764e=function(_0x6cd81f,_0x1e296b){const _0x184d08=[_0x6cd81f];for(const _0x246667 of _0x1e296b){let _0x22512b=0x0;for(;_0x22512b<_0x184d08['length'];){const _0x146570=_0x184d08[_0x22512b]['getDifference'](_0x246667);_0x184d08['splice'](_0x22512b,0x1,..._0x146570),_0x22512b+=_0x146570['length'];}}return _0x184d08;}(_0x331088,_0x3a5a80);_0x48df4e['length']&&this['_model']['change'](()=>{for(const _0x35af4e of _0x48df4e){const _0x22a12b=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x204f32,'accept');this['forceDefaultExecution'](()=>_0x22a12b([_0x35af4e],_0x5854fb,_0x23d6d3));}});for(const _0x23ee0f of _0x22764e){let _0x3b021f=null,_0x3bf904=_0x23ee0f['start'],_0x4086ab=_0x23ee0f['end'];for(const {suggestion:_0x1b4d34,meta:_0x13382e}of this['_findSuggestions'](_0x23ee0f,'formatInline')){if(!_0x13382e['isOwn'])continue;if(_0x1b4d34['subType']!=_0x204f32)continue;if(!ne(_0x1b4d34,_0x23d6d3))continue;const _0x37aed7=_0x1b4d34['getFirstRange']();if(_0x37aed7['containsRange'](_0x23ee0f,!0x0))return null;_0x3bf904=_0x3bf904['isBefore'](_0x37aed7['start'])?_0x3bf904:_0x37aed7['start'],_0x4086ab=_0x4086ab['isAfter'](_0x37aed7['end'])?_0x4086ab:_0x37aed7['end'],_0x3b021f?_0x37aed7['start']['isBefore'](_0x3b021f['getFirstRange']()['start'])?(_0x3b021f['removeMarkers'](),_0x3b021f=_0x1b4d34):_0x1b4d34['removeMarkers']():_0x3b021f=_0x1b4d34;}const _0x550964=this['_model']['createRange'](_0x3bf904,_0x4086ab);if(_0x3b021f)this['_setSuggestionRange'](_0x3b021f,_0x550964);else{const _0x307ec9=_0x668662(),_0xd82778=_0x223c6e['id'];this['_setSuggestionData']({'id':_0x307ec9,'type':'formatInline:'+_0x204f32,'data':_0x5854fb,'createdAt':new Date(),'authorId':_0xd82778,'attributes':_0x23d6d3}),this['_addSuggestionMarker']('formatInline:'+_0x204f32,_0x307ec9,_0xd82778,_0x550964);}}return null;}['markBlockFormat'](_0x3a9f9a,_0x55f9c2,_0x28b1c0=[],_0x5a764b=null,_0x5c9bae={}){_0x55f9c2['formatGroupId']||(_0x55f9c2['formatGroupId']=_0x55f9c2['commandName']),_0x55f9c2['multipleBlocks']=_0x3a9f9a['is']('range'),_0x5a764b=_0x5a764b||qt(_0x55f9c2);const _0x304a63=_0x28b1c0['map'](_0xcaf347=>te(_0xcaf347,this['_model'])),_0x1e5d28=_0x3a9f9a['is']('range')?_0x3a9f9a:te(_0x3a9f9a,this['_model']);if(this['_trackingSessionId']&&(_0x5c9bae['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5d934b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5a764b,'accept');return this['forceDefaultExecution'](()=>_0x5d934b([_0x1e5d28],_0x55f9c2,_0x5c9bae)),null;}_0x304a63['push'](_0x1e5d28);let _0x3cf729=!0x0;for(const _0x1160de of _0x304a63)if(!this['_rangeIsInLocalUserInsertion'](_0x1160de)){_0x3cf729=!0x1;break;}if(_0x3cf729&&'always'!==this['_trackFormatChanges']){const _0x390188=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5a764b,'accept');return this['forceDefaultExecution'](()=>_0x390188([_0x1e5d28],_0x55f9c2,_0x5c9bae)),null;}let _0xe8c255=null,_0x30c157=_0x1e5d28['start'],_0x49f365=_0x1e5d28['end'];for(const {suggestion:_0x1073c3,meta:_0x438bb1}of this['_findSuggestions'](_0x1e5d28,'formatBlock')){if(!_0x438bb1['isOwn'])continue;if(_0x438bb1['isNextTo']||_0x438bb1['containsRangeInObject']||_0x438bb1['isInsideObject'])continue;if(_0x1073c3['data']['formatGroupId']!=_0x55f9c2['formatGroupId'])continue;if(!ne(_0x1073c3,_0x5c9bae))continue;const _0x98475e=_0x1073c3['getFirstRange']();if(_0x1073c3['subType']==_0x5a764b){if(_0x98475e['containsRange'](_0x1e5d28,!0x0))return null;_0x30c157=_0x30c157['isBefore'](_0x98475e['start'])?_0x30c157:_0x98475e['start'],_0x49f365=_0x49f365['isAfter'](_0x98475e['end'])?_0x49f365:_0x98475e['end'],_0xe8c255?_0x98475e['start']['isBefore'](_0xe8c255['getFirstRange']()['start'])?(_0xe8c255['removeMarkers'](),_0xe8c255=_0x1073c3):_0x1073c3['removeMarkers']():_0xe8c255=_0x1073c3;}else{const _0x18f66e=_0x1e5d28['getIntersection'](_0x98475e);this['_cutOutSuggestionMarker'](_0x1073c3,_0x18f66e);}}const _0x1ab4e2=this['editor']['plugins']['get']('Users')['me'],_0x449b4b=_0x668662(),_0x306c4e=_0x1ab4e2['id'];if(_0xe8c255)return this['_setSuggestionRange'](_0xe8c255,this['_model']['createRange'](_0x30c157,_0x49f365)),_0xe8c255;{const _0x521294=this['_setSuggestionData']({'id':_0x449b4b,'type':'formatBlock:'+_0x5a764b,'data':_0x55f9c2,'createdAt':new Date(),'authorId':_0x306c4e,'attributes':_0x5c9bae});return this['_addSuggestionMarker']('formatBlock:'+_0x5a764b,_0x449b4b,_0x306c4e,this['_model']['createRange'](_0x30c157,_0x49f365)),_0x521294;}}['markMultiRangeBlockFormat'](_0x40ce01,_0x2d87be,_0x16c0ad=[],_0x3f9b29=null,_0x2fdffd={}){_0x2d87be['formatGroupId']||(_0x2d87be['formatGroupId']=_0x2d87be['commandName']);const _0x19cdc4=_0x40ce01[0x0];_0x2d87be['multipleBlocks']=_0x19cdc4['is']('range'),_0x3f9b29=_0x3f9b29||qt(_0x2d87be);const _0x5719c5=_0x16c0ad['map'](_0x7724e1=>te(_0x7724e1,this['_model'])),_0x329bfb=_0x19cdc4['is']('range')?_0x40ce01:_0x40ce01['map'](_0x1abe7b=>te(_0x1abe7b,this['_model']));if(this['_trackingSessionId']&&(_0x2fdffd['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0xc64867=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3f9b29,'accept');return this['forceDefaultExecution'](()=>_0xc64867(_0x329bfb,_0x2d87be,_0x2fdffd)),null;}_0x5719c5['push'](..._0x329bfb);let _0x3a3554=!0x0;for(const _0xf1f9f9 of _0x5719c5)if(!this['_rangeIsInLocalUserInsertion'](_0xf1f9f9)){_0x3a3554=!0x1;break;}if(_0x3a3554&&'always'!==this['_trackFormatChanges']){const _0x24dd71=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3f9b29,'accept');return this['forceDefaultExecution'](()=>_0x24dd71(_0x329bfb,_0x2d87be,_0x2fdffd)),null;}const _0x3f45c8=this['editor']['plugins']['get']('Users')['me'];for(const _0x2edde0 of this['getSuggestions']()){const _0x38eb9a=_0x2edde0['data'];if(_0x2edde0['author']['id']!=_0x3f45c8['id'])continue;if('formatBlock'!=_0x2edde0['type']||_0x38eb9a['formatGroupId']!=_0x2d87be['formatGroupId'])continue;if(!ne(_0x2edde0,_0x2fdffd))continue;const _0x5383b5=_0x2edde0['subType']==_0x3f9b29;for(let _0x449e7e=0x0;_0x449e7e<_0x329bfb['length'];_0x449e7e++){const _0x53443d=_0x329bfb[_0x449e7e];for(const _0x4c8557 of _0x2edde0['getMarkers']()){const _0x3c7c32=_0x4c8557['getRange']();if(_0x53443d['isEqual'](_0x3c7c32)){_0x5383b5?(_0x329bfb['splice'](_0x449e7e,0x1),_0x449e7e--):_0x2edde0['removeMarker'](_0x4c8557['name']);break;}}}}if(0x0==_0x329bfb['length'])return null;const _0x44107b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3f9b29,'join');for(const _0x1e895f of this['getSuggestions']()){const _0x105f5e=_0x1e895f['data'];if(_0x1e895f['author']['id']==_0x3f45c8['id']&&('formatBlock'==_0x1e895f['type']&&_0x105f5e['formatGroupId']==_0x2d87be['formatGroupId']&&_0x1e895f['subType']==_0x3f9b29&&ne(_0x1e895f,_0x2fdffd)&&(_0x44107b(_0x1e895f['getRanges'](),_0x329bfb)||_0x44107b(_0x329bfb,_0x1e895f['getRanges']())))){for(const _0x47a843 of _0x329bfb)_0x1e895f['addRange'](_0x47a843);return _0x1e895f;}}const _0x42c17f=_0x668662(),_0x4314cd=_0x3f45c8['id'],_0x1a724e='formatBlock:'+_0x3f9b29,_0x1fb01e=this['_setSuggestionData']({'id':_0x42c17f,'type':_0x1a724e,'data':_0x2d87be,'createdAt':new Date(),'authorId':_0x4314cd,'attributes':_0x2fdffd});for(const _0x32a7a6 of _0x329bfb)this['_addSuggestionMarker'](_0x1a724e,_0x42c17f,_0x4314cd,_0x32a7a6,R['getMultiRangeId']());return _0x1fb01e;}['markDeletion'](_0x10a39f,_0x598482=null,_0x7e287={}){if(_0x10a39f['isCollapsed'])return null;const _0x20462d=this['editor']['plugins']['get']('Users')['me'],_0x21afa4=new _0x2fe235(_0x10a39f['start'],_0x10a39f['end']);this['_trackingSessionId']&&(_0x7e287['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x39772b,meta:_0x1bbb6f}of this['_findSuggestions'](_0x21afa4,'insertion'))if(_0x1bbb6f['isOwn']&&!_0x1bbb6f['isNextTo']){if(_0x39772b['isMultiRange']){const _0x3d562e=_0x39772b['getRanges']()['filter'](_0x2aa7bd=>'$graveyard'!=_0x2aa7bd['root']['rootName']);_0x3d562e['every'](_0x4c421c=>_0x21afa4['containsRange'](_0x4c421c,!0x0))&&_0x39772b['discard']();if(_0x3d562e['some'](_0x598955=>_0x598955['containsRange'](_0x21afa4,!0x0))){const _0x272ffb=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x598482,'accept');return this['forceDefaultExecution'](()=>_0x272ffb([_0x21afa4],null,_0x7e287)),null;}}else{const _0x49b46d=_0x21afa4['getIntersection'](_0x39772b['getFirstRange']());null!==_0x49b46d&&_0x39772b['_onDiscard']([_0x49b46d],null,_0x7e287);}}if(_0x21afa4['detach'](),_0x21afa4['isCollapsed']||'$graveyard'==_0x21afa4['root']['rootName'])return null;let _0x282df6=null,_0x16c81b=_0x21afa4['start'],_0x17f0a2=_0x21afa4['end'];const _0x31b622=this['_findSuggestions'](_0x21afa4,'deletion');for(const {suggestion:_0xf62fb4,meta:_0x1debd0}of _0x31b622){const _0x578748=this['_model']['createRange'](_0x16c81b,_0x17f0a2);if(_0x1debd0['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1debd0['containsRangeInObject']&&!_0x1debd0['isInsideObject'])){if(_0xf62fb4['isMultiRange']){if(!ne(_0xf62fb4,_0x7e287))continue;let _0x360941=!0x0;for(const _0x198388 of _0xf62fb4['getRanges']()){if(_0x198388['containsRange'](_0x578748,!0x0))return _0xf62fb4;_0x578748['containsRange'](_0x198388)||(_0x360941=!0x1);}_0x360941&&_0xf62fb4['discard']();}else{const _0x4a00a7=_0xf62fb4['getFirstRange']();if(_0x4a00a7['containsRange'](_0x578748,!0x0))return _0xf62fb4;if(!ne(_0xf62fb4,_0x7e287)){_0x578748['containsRange'](_0x4a00a7)?_0xf62fb4['removeMarkers']():_0x4a00a7['containsPosition'](_0x16c81b)?_0x16c81b=_0x4a00a7['end']:_0x4a00a7['containsPosition'](_0x17f0a2)&&(_0x17f0a2=_0x4a00a7['start']);continue;}_0x16c81b=_0x16c81b['isBefore'](_0x4a00a7['start'])?_0x16c81b:_0x4a00a7['start'],_0x17f0a2=_0x17f0a2['isAfter'](_0x4a00a7['end'])?_0x17f0a2:_0x4a00a7['end'],_0x7e287=Object['assign']({},_0xf62fb4['attributes']),_0x282df6?_0x4a00a7['start']['isBefore'](_0x282df6['getFirstRange']()['start'])?(_0x282df6['removeMarkers'](),_0x282df6=_0xf62fb4):_0xf62fb4['removeMarkers']():_0x282df6=_0xf62fb4;}}}if(_0x282df6)return this['_setSuggestionRange'](_0x282df6,this['_model']['createRange'](_0x16c81b,_0x17f0a2)),_0x282df6;{const _0x599dc0=_0x668662(),_0x386650=this['_model']['createRange'](_0x16c81b,_0x17f0a2),_0x5734f5=_0x20462d['id'],_0x5f2659=_0x598482?'deletion:'+_0x598482:'deletion',_0x2f33d9=this['_setSuggestionData']({'id':_0x599dc0,'type':_0x5f2659,'createdAt':new Date(),'authorId':_0x5734f5,'attributes':_0x7e287});return this['_addSuggestionMarker'](_0x5f2659,_0x599dc0,_0x5734f5,_0x386650),_0x2f33d9;}}['markMultiRangeDeletion'](_0x300b87,_0xd62660='multi',_0x1bd8e1={}){const _0x3b8562=this['editor']['plugins']['get']('Users')['me'],_0x46dcf6=_0x300b87['map'](_0x6d053a=>new _0x2fe235(_0x6d053a['start'],_0x6d053a['end'])),_0x24901a=new Set();this['_trackingSessionId']&&(_0x1bd8e1['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3a473d,meta:_0x1e54d8}of this['_findSuggestions'](_0x46dcf6,'insertion'))_0x1e54d8['isOwn']&&!_0x1e54d8['isNextTo']&&_0x24901a['add'](_0x3a473d);for(const _0x56e7cc of _0x24901a)if(_0x56e7cc['isMultiRange']){const _0x57c749=_0x56e7cc['getRanges']();(!_0x56e7cc['attributes']||!_0x56e7cc['attributes']['skipNestingCheck'])&&(_0x57c749['every'](_0x3c47fa=>_0x46dcf6['some'](_0x1d081f=>_0x1d081f['containsRange'](_0x3c47fa,!0x0)))&&_0x56e7cc['discard']());if(_0x46dcf6['every'](_0x1ed486=>_0x57c749['some'](_0x4c6bfb=>_0x4c6bfb['containsRange'](_0x1ed486,!0x0)))){const _0x4126ad=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xd62660,'accept');return this['forceDefaultExecution'](()=>_0x4126ad(_0x300b87,null,_0x1bd8e1)),null;}}else{const _0x5aea7c=_0x56e7cc['getFirstRange']();_0x46dcf6['some'](_0x36127a=>_0x36127a['containsRange'](_0x5aea7c,!0x0))&&_0x56e7cc['discard']();if(_0x46dcf6['every'](_0x1df5bd=>_0x5aea7c['containsRange'](_0x1df5bd,!0x0))){const _0x29b39f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xd62660,'accept');return this['forceDefaultExecution'](()=>_0x29b39f(_0x46dcf6,null,_0x1bd8e1)),null;}}const _0x187655=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xd62660,'join');let _0x57986d=null;for(const _0x53ae29 of this['getSuggestions']())if(_0x53ae29['author']['id']==_0x3b8562['id']&&_0x53ae29['isInContent']&&'deletion'==_0x53ae29['type']&&_0x53ae29['subType']==_0xd62660&&ne(_0x53ae29,_0x1bd8e1)&&(_0x187655(_0x53ae29['getRanges'](),_0x46dcf6)||_0x187655(_0x46dcf6,_0x53ae29['getRanges']()))){if(_0x57986d){if(_0x53ae29['commentThread']&&_0x53ae29['commentThread']['length'])continue;for(const _0xa5c051 of _0x53ae29['getRanges']())_0x57986d['isIntersectingWithRange'](_0xa5c051)||_0x57986d['addRange'](_0xa5c051);_0x53ae29['removeMarkers']();}else{_0x57986d=_0x53ae29;for(const _0x3ff083 of _0x46dcf6)_0x53ae29['isIntersectingWithRange'](_0x3ff083)||_0x53ae29['addRange'](_0x3ff083);}}if(_0x57986d)return _0x57986d;_0x24901a['clear']();for(const {suggestion:_0x16f5ad,meta:_0x108d63}of this['_findSuggestions'](_0x46dcf6,'deletion'))_0x108d63['isOwn']&&(this['_mergeNestedSuggestions']||!_0x108d63['containsRangeInObject']&&!_0x108d63['isInsideObject'])&&ne(_0x16f5ad,_0x1bd8e1)&&_0x24901a['add'](_0x16f5ad);for(const _0x5709b6 of _0x24901a){const _0x48b9c5=_0x5709b6['getRanges']();if(!_0x1bd8e1||!_0x1bd8e1['skipNestingCheck']){if(_0x46dcf6['every'](_0x50ee0e=>_0x48b9c5['some'](_0x41727f=>_0x41727f['containsRange'](_0x50ee0e,!0x0))))return _0x5709b6;}(!_0x5709b6['attributes']||!_0x5709b6['attributes']['skipNestingCheck'])&&(_0x48b9c5['every'](_0x1ac438=>_0x46dcf6['some'](_0x33a315=>_0x33a315['containsRange'](_0x1ac438,!0x0)))&&_0x5709b6['discard']());}const _0x3a4ac3=_0x668662(),_0x74df4e=_0x3b8562['id'],_0x45038f='deletion:'+_0xd62660,_0x5d42af=this['_setSuggestionData']({'id':_0x3a4ac3,'type':_0x45038f,'createdAt':new Date(),'authorId':_0x74df4e,'attributes':_0x1bd8e1});for(const _0x5306c6 of _0x46dcf6)_0x5306c6['detach'](),_0x5306c6['isCollapsed']||'$graveyard'==_0x5306c6['root']['rootName']||this['_addSuggestionMarker'](_0x45038f,_0x3a4ac3,_0x74df4e,_0x5306c6,R['getMultiRangeId']());return _0x5d42af;}['markAttributeChange'](_0x100c20,_0x3b64cc,_0x1e1fd7,_0x2a577e,_0x503e0c){if(_0x100c20['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x215346=this['editor']['plugins']['get']('Users')['me']['id'],_0x5dd728=Array['from'](this['_suggestions']['values']())['filter'](_0x113dd6=>'attribute'==_0x113dd6['type']&&_0x113dd6['data']['key']==_0x3b64cc&&_0x113dd6['isIntersectingWithRange'](_0x100c20));if(this['_trackingSessionId']&&(_0x503e0c['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x8dc3a8=this['_findSuggestions'](_0x100c20,'insertion')['filter'](({meta:_0x4016d4})=>_0x4016d4['isOwn']&&!_0x4016d4['isInsideObject']&&!_0x4016d4['isNextTo'])['map'](({suggestion:_0x377c56})=>_0x377c56);_0x5dd728['unshift'](..._0x8dc3a8);}const _0x45ed94=new Map([[_0x100c20,_0x1e1fd7]]);for(const _0xc02d35 of _0x5dd728){const _0x5782f2='attribute'==_0xc02d35['type']?_0xc02d35['data']['oldValue']:void 0x0,_0x3f07f6=_0xc02d35['getFirstRange'](),_0xf52f30=Array['from'](_0x45ed94['keys']())['find'](_0x55ffb5=>_0x55ffb5['isIntersecting'](_0x3f07f6));if(!_0xf52f30)continue;const _0x49a416=_0xf52f30['getDifference'](_0x3f07f6);this['_isBlockAttribute'](_0x3b64cc)&&'insertion'==_0xc02d35['type']&&0x0!=_0x49a416['length']||(_0x45ed94['delete'](_0xf52f30),_0x49a416['forEach'](_0x26d0ee=>{_0x45ed94['set'](_0x26d0ee,_0x1e1fd7);}),'insertion'!=_0xc02d35['type']&&_0x5782f2!=_0x2a577e&&_0x45ed94['set'](_0xf52f30['getIntersection'](_0x3f07f6),_0x5782f2));}const _0x1ca8b8=[];for(const [_0x4072be,_0x145091]of _0x45ed94){const _0x1c8591=_0x668662(),_0x59fa03={'key':_0x3b64cc,'oldValue':_0x145091,'newValue':_0x2a577e};_0x3b64cc['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':_0x3b64cc});const _0x106b33=('attribute:'+(_0x3b64cc+'|'+qt({'newValue':_0x2a577e})))['substring'](0x0,0x3c),_0x2996ae=this['_setSuggestionData']({'id':_0x1c8591,'type':_0x106b33,'data':_0x59fa03,'createdAt':new Date(),'authorId':_0x215346,'attributes':_0x503e0c});_0x1ca8b8['push'](_0x2996ae),this['_addSuggestionMarker'](_0x106b33,_0x1c8591,_0x215346,_0x4072be);}return _0x1ca8b8;}['enableDefaultAttributesIntegration'](_0x162842){this['enableCommand'](_0x162842,(_0x132411,..._0x1b3d6a)=>{this['recordAttributeChanges'](()=>{_0x132411(..._0x1b3d6a);});});}['registerBlockAttribute'](_0xded467){this['_blockAttributeKeys']['add'](_0xded467);}['registerInlineAttribute'](_0x701729){this['_inlineAttributeKeys']['add'](_0x701729);}['startTrackingSession'](_0x19dc5b){return this['_trackingSessionId']=void 0x0!==_0x19dc5b?_0x19dc5b:_0x668662(),this['_trackingSessionId'];}['_getAttributeKey'](_0x463123){return'attribute'==_0x463123['type']?oe(_0x463123['subType']):null;}['_applyOperationsAsSuggestions'](_0x1409c0){if(0x0==_0x1409c0['length'])return;const _0x40bcf2=this['editor'],_0xaf0817=_0x40bcf2['plugins']['get'](_0x11ae4f);let _0x213a12=!0x0;for(const _0x367e28 in _0x1409c0[0x0]){const _0xb325cf=_0x1409c0[0x0][_0x367e28];if((_0xb325cf instanceof _0xda936f||_0xb325cf instanceof _0x4a33f5)&&_0xb325cf['root']['is']('documentFragment')){_0x213a12=!0x1;break;}}_0x40bcf2['model']['change'](_0x3358ca=>{const _0xb72f9f=new Set();for(const _0x426572 of _0x1409c0)if(_0x426572['baseVersion']=_0x213a12?_0x40bcf2['model']['document']['version']:null,_0x426572['isDocumentOperation']=_0x213a12,_0xaf0817['isMarkedRemoveOperation'](_0x426572)){const _0x144f84=Yt(_0x426572['newRange'],_0x40bcf2['model']);if(_0x213a12)this['markDeletion'](_0x144f84);else{const _0x4f3244='suggestion:deletion:id:authorId:'+_0x668662();_0x144f84['root']['markers']['set'](_0x4f3244,_0x144f84);}}else switch(_0x426572['type']){case'rename':{const _0x4da489=_0x426572['oldName'],_0x9bc9d4=_0x426572['newName'];if(_0x4da489==_0x9bc9d4)break;_0x3358ca['batch']['addOperation'](_0x426572),_0x40bcf2['model']['applyOperation'](_0x426572);const _0x6c2c76='$elementName',_0xf4c39f=_0x426572['position'],_0x16e3db=_0x40bcf2['model']['createRange'](_0xf4c39f,_0x40bcf2['model']['createPositionAt'](_0xf4c39f['nodeAfter'],'end'));if(_0x213a12)this['markAttributeChange'](_0x16e3db,_0x6c2c76,_0x4da489,_0x9bc9d4,{'groupId':_0x668662()});else{const _0x446b53='suggestion:attribute:'+_0x6c2c76+':id:authorId:'+_0x668662();_0x16e3db['root']['markers']['set'](_0x446b53,_0x16e3db);}break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x4f32b7=_0x426572['oldValue'],_0x1b3fcc=_0x426572['newValue'];if(_0x4f32b7==_0x1b3fcc)break;_0x3358ca['batch']['addOperation'](_0x426572),_0x40bcf2['model']['applyOperation'](_0x426572);const _0x51c8ab=_0x426572['key'];if(!this['_isRegisteredAttribute'](_0x51c8ab))break;const _0x1b81b4=Yt(_0x426572['range'],_0x40bcf2['model']);if(_0x213a12)this['markAttributeChange'](_0x1b81b4,_0x51c8ab,_0x4f32b7,_0x1b3fcc,{'groupId':_0x668662()});else{const _0x2859e1='suggestion:attribute:'+_0x51c8ab+':id:authorId:'+_0x668662();_0x1b81b4['root']['markers']['set'](_0x2859e1,_0x1b81b4);}break;}case'insert':{_0x3358ca['batch']['addOperation'](_0x426572),_0x40bcf2['model']['applyOperation'](_0x426572);const _0x2e09e1=_0x426572['position'],_0x2a9117=_0x426572['howMany'],_0x5e9ea9=Yt(_0x40bcf2['model']['createRange'](_0x2e09e1,_0x2e09e1['getShiftedBy'](_0x2a9117)),_0x40bcf2['model']);if(_0x213a12)this['markInsertion'](_0x5e9ea9);else{const _0x2a6bca='suggestion:insertion:id:authorId:'+_0x668662();_0x5e9ea9['root']['markers']['set'](_0x2a6bca,_0x5e9ea9);}break;}case'split':{_0x3358ca['batch']['addOperation'](_0x426572),_0x40bcf2['model']['applyOperation'](_0x426572);const _0x4b4a91=_0x426572['splitPosition'],_0xbdbcb8=_0x426572['moveTargetPosition'],_0x32af77=_0x40bcf2['model']['createRange'](_0x4b4a91,_0xbdbcb8);if(_0x213a12)this['markInsertion'](_0x40bcf2['model']['createRange'](_0x4b4a91,_0xbdbcb8));else{const _0x38c911='suggestion:insertion:id:authorId:'+_0x668662();_0x32af77['root']['markers']['set'](_0x38c911,_0x32af77);}break;}case'move':if(_0x3358ca['batch']['addOperation'](_0x426572),_0x40bcf2['model']['applyOperation'](_0x426572),!_0x213a12){const _0x3b59ac=_0x426572['getMovedRangeStart'](),_0x9bafb7=_0x426572['howMany'];for(let _0x32360f=0x0;_0x32360f<_0x9bafb7;_0x32360f++){const _0x5c501a=_0x3b59ac['getShiftedBy'](_0x32360f)['nodeAfter'];_0xb72f9f['add'](_0x5c501a);}}break;case'remove':if(_0x213a12)_0x3358ca['batch']['addOperation'](_0x426572),_0x40bcf2['model']['applyOperation'](_0x426572);else{const _0x325e42=_0x426572['sourcePosition'],_0x15f3f4=_0x426572['howMany'],_0x53710b=new _0x5b3eaa(_0x325e42,_0x15f3f4);_0x3358ca['batch']['addOperation'](_0x53710b),_0x40bcf2['model']['applyOperation'](_0x53710b);}}for(const _0x8e7559 of _0xb72f9f){const _0xb2ba15=_0x40bcf2['model']['createRangeOn'](_0x8e7559),_0x4833d2='suggestion:formatBlock:$fakeWrap:id:authorId:'+_0x668662();_0xb2ba15['root']['markers']['set'](_0x4833d2,Yt(_0xb2ba15,_0x40bcf2['model']));}});}['_setSuggestionRange'](_0x2792b0,_0x34db1b){const _0x5edae4=_0x2792b0['getFirstMarker']();this['_model']['change'](_0x14146e=>{_0x14146e['updateMarker'](_0x5edae4,{'range':_0x34db1b});});}['_addThreadToSuggestion'](_0x4c98c5){const _0x5f3bf6=_0x4c98c5['id'],_0x5bc7ff=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x5f3bf6)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5bc7ff,'threadId':_0x5f3bf6,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x5445f4=this['_commentsRepository']['getCommentThread'](_0x5f3bf6);_0x5445f4['unbind']('isRemovable'),_0x5445f4['isRemovable']=!0x1,_0x4c98c5['commentThread']=_0x5445f4;}['_checkSuggestionCorrectness'](_0x6a0869,_0x52a6b0,_0x5580c2,_0x129e5d){if(_0x6a0869['type']!=_0x52a6b0||_0x6a0869['subType']!=_0x5580c2||_0x6a0869['creator']['id']!=_0x129e5d)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x515288('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x137835,_0x454eb7){const _0x3c7041=_0x137835['getFirstRange']();if(_0x454eb7['isEqual'](_0x3c7041))_0x137835['removeMarkers']();else{if(_0x3c7041['containsRange'](_0x454eb7)){const _0xc5d783=this['_model']['createPositionAt'](_0x454eb7['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x137835,this['_model']['createRange'](_0x3c7041['start'],_0xc5d783));const _0x2f052c=_0x668662(),_0x1860dd=_0x137835['creator']['id'],_0x126d74=_0x137835['type']+':'+_0x137835['subType'];this['_setSuggestionData']({'id':_0x2f052c,'type':_0x126d74,'createdAt':new Date(),'authorId':_0x1860dd,'data':_0x137835['data'],'attributes':_0x137835['attributes']});const _0x55f743=this['_model']['createPositionAt'](_0x454eb7['end']['parent'],'after'),_0x3ec4b8=this['_model']['createRange'](_0x55f743,_0x3c7041['end']);this['_addSuggestionMarker'](_0x126d74,_0x2f052c,_0x1860dd,_0x3ec4b8);}else{if(_0x3c7041['containsPosition'](_0x454eb7['start'])){const _0x1cde5d=this['_model']['createPositionAt'](_0x454eb7['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x137835,this['_model']['createRange'](_0x3c7041['start'],_0x1cde5d));}else{const _0x5b450b=this['_model']['createPositionAt'](_0x454eb7['end']['parent'],'after');this['_setSuggestionRange'](_0x137835,this['_model']['createRange'](_0x5b450b,_0x3c7041['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x3f838a){for(const {suggestion:_0x22a04f,meta:_0x5ef2cf}of this['_findSuggestions'](_0x3f838a,'insertion')){if(!_0x5ef2cf['isOwn'])continue;const _0x593c05=_0x22a04f['getRanges']();for(const _0x1749f7 of _0x593c05)if(!_0x3f838a['getDifference'](_0x1749f7)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x5ae86c){return this['editor']['plugins']['get']('Users')['getUser'](_0x5ae86c);}['_getExternalAuthor'](_0x2e9f7f){const _0x238bea=this['editor']['plugins']['get']('Users'),_0x56d3a7=_0x318d41('external:'+_0x2e9f7f),_0x146f2a=_0x238bea['getUser'](_0x56d3a7);return _0x146f2a||_0x238bea['addUser']({'id':_0x56d3a7,'name':_0x2e9f7f});}['_createSuggestion'](_0x36ce6c,_0x4b5538,_0x58a39d,_0x284a1a,_0x2bde6e,_0x216a9f){const _0x1aa5f5=this['_getAuthorFromId'](_0x284a1a);if(!_0x1aa5f5)throw new _0x515288('track-changes-user-not-found',this,{'authorId':_0x284a1a,'suggestionId':_0x58a39d});const _0x2c7f5b=this['_suggestionFactory']['buildSuggestion'](_0x36ce6c,_0x4b5538,_0x58a39d,_0x1aa5f5,_0x2bde6e,_0x30cae9=>{this['_updateSuggestionData'](_0x58a39d,{'attributes':_0x30cae9});const _0x250529=this['getSuggestion'](_0x58a39d);this['_joinWithAdjacentSuggestions'](new Set([_0x250529])),this['_refreshSuggestionsChain'](new Set([_0x250529]));},_0x216a9f);return this['listenTo'](_0x2c7f5b,'accept',()=>{this['_updateSuggestionData'](_0x58a39d,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x2c7f5b,'discard',()=>{this['_updateSuggestionData'](_0x58a39d,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x58a39d,_0x2c7f5b),this['_suggestionState']['set'](_0x2c7f5b,'notReady'),_0x2c7f5b;}['_splitMarkerName'](_0x56a5f2){const _0x555bcf=_0x56a5f2['split'](':');return{'group':_0x555bcf[0x0],'type':_0x555bcf[0x1],'subType':_0x555bcf['length']>=0x5?_0x555bcf[0x2]:null,'id':_0x555bcf['length']<0x5?_0x555bcf[0x2]:_0x555bcf[0x3],'authorId':_0x555bcf['length']<0x5?_0x555bcf[0x3]:_0x555bcf[0x4],'markerCount':0x6==_0x555bcf['length']?_0x555bcf[0x5]:null};}['_breakSuggestionMarker'](_0x1936bb,_0x4f2c1a,_0x3250d9){const _0x3c6b5a=_0x1936bb['getFirstRange'](),_0x400128=_0x3c6b5a['start'],_0x402837=_0x3c6b5a['end'];this['_setSuggestionRange'](_0x1936bb,this['_model']['createRange'](_0x400128,_0x4f2c1a));const _0x272729=_0x668662(),_0x500192=_0x1936bb['creator']['id'],_0xfec92b=_0x1936bb['type']+(_0x1936bb['subType']?':'+_0x1936bb['subType']:'');this['_setSuggestionData']({'id':_0x272729,'type':_0xfec92b,'createdAt':new Date(),'authorId':_0x500192,'originalSuggestionId':_0x1936bb['_originalSuggestionId']||_0x1936bb['id'],'attributes':_0x1936bb['attributes'],'data':_0x1936bb['data']});const _0x32aec4=this['_getAttributeKey'](_0x1936bb);('formatBlock'==_0x1936bb['type']||_0x32aec4&&this['_isBlockAttribute'](_0x32aec4))&&(_0x3250d9=this['_model']['createPositionBefore'](_0x3250d9['parent'])),this['_addSuggestionMarker'](_0xfec92b,_0x272729,_0x500192,this['_model']['createRange'](_0x3250d9,_0x402837));}['_findSuggestions'](_0x37a7fb,_0x2fbdd3=null){const _0x43de25=[],_0x19d2dc=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x37a7fb)||(_0x37a7fb=[_0x37a7fb]);for(const _0x5c11f3 of this['getSuggestions']()){if(!_0x5c11f3['isInContent'])continue;if(_0x2fbdd3&&_0x5c11f3['type']!=_0x2fbdd3)continue;let _0x375603=!0x1;for(const _0x333b90 of _0x5c11f3['getRanges']()){for(const _0x26060c of _0x37a7fb){const _0x304bf7=_0x26060c['start']['isEqual'](_0x333b90['end'])||_0x26060c['end']['isEqual'](_0x333b90['start']);if(_0x304bf7||_0x26060c['getIntersection'](_0x333b90)){const _0x2d8acc=_0x26060c['containsRange'](_0x333b90)&&Kt(this['_model']['schema'],_0x333b90['start'],_0x26060c),_0x479e06=_0x333b90['containsRange'](_0x26060c)&&Kt(this['_model']['schema'],_0x26060c['start'],_0x333b90);_0x43de25['push']({'suggestion':_0x5c11f3,'meta':{'isOwn':_0x19d2dc==_0x5c11f3['author'],'isNextTo':_0x304bf7,'isInsideObject':_0x2d8acc,'containsRangeInObject':_0x479e06}}),_0x375603=!0x0;break;}}if(_0x375603)break;}}return _0x43de25;}['_addSuggestionMarker'](_0x2adb63,_0x34e0ea,_0x37ce5e,_0x420cb0,_0x2784ef){this['_model']['change'](_0x4a24f5=>{let _0x29b24d='suggestion:'+_0x2adb63+':'+_0x34e0ea+':'+_0x37ce5e;_0x2784ef&&(_0x29b24d=_0x29b24d+':'+_0x2784ef),_0x4a24f5['addMarker'](_0x29b24d,{'range':_0x420cb0,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x32efa0){const _0x3fd302=_0x32efa0['previous'],_0x3a3bd9=_0x32efa0['next'];_0x32efa0['previous']=null,_0x32efa0['next']=null,null!=_0x3fd302&&_0x3fd302['next']==_0x32efa0&&(_0x3fd302['next']=_0x3a3bd9),null!=_0x3a3bd9&&_0x3a3bd9['previous']==_0x32efa0&&(_0x3a3bd9['previous']=_0x3fd302),'ready'==this['_suggestionState']['get'](_0x32efa0)&&(this['_suggestionState']['set'](_0x32efa0,'removed'),this['fire']('suggestionUnloaded',_0x32efa0,_0x3fd302,_0x3a3bd9));}['_setSuggestionData'](_0x1956c3){const _0xb573=_0x1956c3['id'],_0x4ece0f=this['addSuggestionData'](_0x1956c3);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x402dee=this['editor']['plugins']['get']('PendingActions'),_0x27e297=_0x4ece0f['hasComments'],_0x2115ac=_0x4ece0f['subType']?_0x4ece0f['type']+':'+_0x4ece0f['subType']:_0x4ece0f['type'],_0x49808f=this['editor']['locale'],_0x4a500f=_0x402dee['add'](o(_0x49808f,'PENDING_ACTION_SUGGESTION')),_0x443843={'id':_0xb573,'type':_0x2115ac,'hasComments':_0x27e297,'data':_0x1956c3['data']||null,'originalSuggestionId':_0x1956c3['originalSuggestionId']||null,'attributes':_0x4ece0f['attributes']};this['_adapter']['addSuggestion'](_0x443843)['then'](_0x5ca590=>{_0x4ece0f['_saved']=!0x0,_0x402dee['remove'](_0x4a500f),_0x5ca590&&_0x5ca590['createdAt']&&(this['_suggestions']['get'](_0xb573)['createdAt']=_0x5ca590['createdAt']);})['catch'](_0x4915f4=>{throw _0x508cdd('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x4ece0f['discard']();}),_0x4ece0f['stopListening'](),this['_suggestions']['delete'](_0x4ece0f['id']),this['_suggestionState']['delete'](_0x4ece0f),_0x4915f4;});}return _0x4ece0f;}['_isBlockAttribute'](_0x26ff26){return this['_blockAttributeKeys']['has'](_0x26ff26);}['_isInlineAttribute'](_0x53d756){return this['_inlineAttributeKeys']['has'](_0x53d756);}['_updateSuggestionData'](_0x17d7db,_0x1fc498){const _0x4c32ab=this['editor']['plugins']['get']('PendingActions'),_0x459597=this['getSuggestion'](_0x17d7db);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x459597['_saved']){const _0x490e10=_0x4c32ab['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x17d7db,_0x1fc498)['then'](()=>{_0x4c32ab['remove'](_0x490e10);});}else _0x459597['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x17d7db,_0x1fc498);});}}['_getSuggestionData'](_0x3dff7f){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x515288('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x3dff7f);}['_handleNewSuggestionMarker'](_0x3b35b4){const {id:_0x2a525a,type:_0x1b39f1,subType:_0x573cb6,authorId:_0x49d097}=this['_splitMarkerName'](_0x3b35b4),_0x3e4b90=this['_suggestions']['get'](_0x2a525a)||this['_createSuggestion'](_0x1b39f1,_0x573cb6,_0x2a525a,_0x49d097,{});switch(this['_checkSuggestionCorrectness'](_0x3e4b90,_0x1b39f1,_0x573cb6,_0x49d097),this['_suggestionState']['get'](_0x3e4b90)){case'notReady':this['_getSuggestionData'](_0x2a525a)['then'](_0x2ab7c9=>{let _0x2ea73b=Promise['resolve']();_0x2ab7c9['hasComments']&&(_0x2ea73b=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x2a525a})),_0x2ea73b['then'](()=>{this['addSuggestionData'](_0x2ab7c9)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x3e4b90,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x2a525a,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x3e4b90,'ready'),this['fire']('suggestionLoaded',_0x3e4b90);break;case'ready':this['fire']('suggestionChanged',_0x3e4b90);}return _0x3e4b90['addMarkerName'](_0x3b35b4),_0x3e4b90;}['_refreshSuggestionsChain'](_0x17ffb1){const _0x35af9a=Array['from'](_0x17ffb1),_0x5e7bbc=_0x35af9a['filter'](_0x4ca1a7=>'attribute'==_0x4ca1a7['type']);this['_refreshAttributeSuggestionsChain'](_0x5e7bbc);const _0x40e4cd=_0x35af9a['filter'](_0x4e7473=>!_0x4e7473['isMultiRange']&&'attribute'!=_0x4e7473['type']),_0x2fd4b5=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x127c62=>!_0x127c62['isMultiRange']&&'attribute'!=_0x127c62['type']),_0x41dcb0=_0x2fd4b5['filter'](_0x3da4bd=>!_0x17ffb1['has'](_0x3da4bd)),_0x23a68f=new Map(_0x2fd4b5['map'](_0x58cfae=>[_0x58cfae,this['_suggestionFactory']['getSuggestionCallback'](_0x58cfae['type'],_0x58cfae['subType'],'chain')])),_0x55d3a9=new Map(_0x2fd4b5['map'](_0x1e54fe=>[_0x1e54fe,_0x1e54fe['getFirstRange']()])),_0x2eacb0=new Set(),_0x142910=new Set();for(let _0x4f9e14=0x0;_0x4f9e14<_0x40e4cd['length'];_0x4f9e14++)_0x57b93d(_0x40e4cd[_0x4f9e14],_0x40e4cd,_0x4f9e14+0x1);for(let _0x22beff=0x0;_0x22beff<_0x40e4cd['length'];_0x22beff++)_0x57b93d(_0x40e4cd[_0x22beff],_0x41dcb0,0x0);const _0x3d8a04=new Set();for(let _0x4bd74e=0x0;_0x4bd74e<_0x40e4cd['length'];_0x4bd74e++){const _0x185395=_0x40e4cd[_0x4bd74e];!_0x142910['has'](_0x185395)&&_0x185395['previous']&&(_0x3d8a04['add'](_0x185395['previous']),_0x185395['previous']['next']===_0x185395&&(_0x185395['previous']['next']=null),_0x185395['previous']=null),!_0x2eacb0['has'](_0x185395)&&_0x185395['next']&&(_0x3d8a04['add'](_0x185395['next']),_0x185395['next']['previous']===_0x185395&&(_0x185395['next']['previous']=null),_0x185395['next']=null);}function _0x57b93d(_0x264920,_0x491840,_0x12a686){for(let _0x117b86=_0x12a686;_0x117b86<_0x491840['length'];_0x117b86++){const _0x7b6093=_0x2aa509(_0x264920,_0x491840[_0x117b86]);_0x7b6093&&(_0x7b6093[0x0]['next']=_0x7b6093[0x1],_0x7b6093[0x1]['previous']=_0x7b6093[0x0],_0x2eacb0['add'](_0x7b6093[0x0]),_0x142910['add'](_0x7b6093[0x1]));}}function _0x2aa509(_0xd94b0b,_0x7e9a53){if(_0xd94b0b['author']['id']!==_0x7e9a53['author']['id'])return null;const _0x44e4ab=_0x23a68f['get'](_0xd94b0b)(_0xd94b0b,_0x7e9a53,_0x55d3a9['get'](_0xd94b0b),_0x55d3a9['get'](_0x7e9a53));if(!_0x44e4ab)return null;return _0x23a68f['get'](_0x7e9a53)(_0xd94b0b,_0x7e9a53,_0x55d3a9['get'](_0xd94b0b),_0x55d3a9['get'](_0x7e9a53))?_0x44e4ab[0x1]['commentThread']&&_0x44e4ab[0x1]['commentThread']['length']?null:_0x44e4ab:null;}_0x3d8a04['size']&&this['_refreshSuggestionsChain'](_0x3d8a04);}['_refreshAttributeSuggestionsChain'](_0x3269e9){if(0x0==_0x3269e9['length'])return;const _0x2eda16=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5069b2=>'attribute'==_0x5069b2['type']&&_0x5069b2['_isDataLoaded']),_0x3df339=[],_0x170e97=new Map();for(const _0x332551 of _0x2eda16){const _0x181e77=_0x318d41(_0x332551['attributes']);_0x170e97['has'](_0x181e77)||(_0x170e97['set'](_0x181e77,_0x3df339['length']),_0x3df339['push']([]));const _0x31cc91=_0x170e97['get'](_0x181e77);_0x3df339[_0x31cc91]['push'](_0x332551);}!(function(){_0x3df339['sort']((_0x4c1880,_0x1abd37)=>{const _0x595594=_0x4c1880[0x0]['createdAt'],_0x24d272=_0x1abd37[0x0]['createdAt'];return _0x595594==_0x24d272?_0x4c1880[0x0]['attributes']['groupId']<_0x1abd37[0x0]['attributes']['groupId']?-0x1:0x1:_0x595594<_0x24d272?-0x1:0x1;});for(const _0x3265e3 of _0x3df339)_0x3265e3['sort']((_0x2a41db,_0x547419)=>_0x2a41db['id']<_0x547419['id']?-0x1:0x1);}());for(let _0xedb490=0x0;_0xedb490<_0x3df339['length'];_0xedb490++){if(0x0==_0x3df339[_0xedb490]['length'])continue;const _0x405026=[];for(let _0x5d016f=_0xedb490+0x1;_0x5d016f<_0x3df339['length'];_0x5d016f++)0x0!=_0x3df339[_0x5d016f]['length']&&_0x44991f(_0x3df339[_0xedb490],_0x3df339[_0x5d016f])&&_0x405026['push'](_0x5d016f);for(const _0x332673 of _0x405026)_0x3df339[_0xedb490]=_0x3df339[_0xedb490]['concat'](_0x3df339[_0x332673]),_0x3df339[_0x332673]=[];}for(const _0x14575c of _0x3df339)for(let _0x21398f=0x0;_0x21398f<_0x14575c['length'];_0x21398f++){const _0x335004=_0x14575c[_0x21398f+0x1]||null;_0x14575c[_0x21398f]['next']!==_0x335004&&(_0x14575c[_0x21398f]['next']=_0x335004);}for(const _0x4b73ae of _0x3df339)for(let _0xbfb4e1=0x0;_0xbfb4e1<_0x4b73ae['length'];_0xbfb4e1++){const _0x4243c5=_0x4b73ae[_0xbfb4e1-0x1]||null;_0x4b73ae[_0xbfb4e1]['previous']!==_0x4243c5&&(_0x4b73ae[_0xbfb4e1]['previous']=_0x4243c5);}function _0x44991f(_0x4682ed,_0x515bef){if(_0x4682ed[0x0]['attributes']['groupId']!==_0x515bef[0x0]['attributes']['groupId']&&_0x4682ed[0x0]['author']!==_0x515bef[0x0]['author'])return!0x1;if(!function(_0x465f96,_0x114cb0){if(!_0x465f96['hasComments']&&!_0x114cb0['hasComments'])return!0x0;if(_0x465f96['hasComments']&&_0x114cb0['hasComments'])return!0x1;if(_0x465f96['hasComments']&&_0x114cb0['createdAt']<_0x465f96['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x114cb0['hasComments']&&_0x465f96['createdAt']<_0x114cb0['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x4682ed[0x0],_0x515bef[0x0]))return!0x1;const _0x526ec9=Lt(_0x4682ed[0x0]['attributes'],['groupId','trackingSessionId']),_0x811874=Lt(_0x515bef[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x5cf543(_0x526ec9,_0x811874))return!0x1;if(_0x4682ed[0x0]['attributes']['groupId']==_0x515bef[0x0]['attributes']['groupId'])return!0x0;if(_0x4682ed[0x0]['attributes']['trackingSessionId']!==_0x515bef[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x4682ed['every'](_0x39f79f=>_0x515bef['some'](_0x4fecd0=>_0x39f79f['getFirstRange']()['isEqual'](_0x4fecd0['getFirstRange']())))&&_0x515bef['every'](_0x46497c=>_0x4682ed['some'](_0x2a5c0a=>_0x46497c['getFirstRange']()['isEqual'](_0x2a5c0a['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x43d466){const _0x5440a8=Array['from'](_0x43d466),_0x7973e9=this['getSuggestions']({'skipNotAttached':!0x0}),_0x364215=_0x7973e9['filter'](_0x5ca519=>!_0x43d466['has'](_0x5ca519)),_0x2c7270=new Map(_0x5440a8['map'](_0x561164=>[_0x561164,this['_suggestionFactory']['getSuggestionCallback'](_0x561164['type'],_0x561164['subType'],'join')])),_0x2eea5b=new Map(_0x7973e9['map'](_0x10d791=>[_0x10d791,_0x10d791['getRanges']()]));for(let _0x41541d=0x0;_0x41541d<_0x5440a8['length'];_0x41541d++){if(_0x151210(this,_0x5440a8[_0x41541d],_0x5440a8,_0x41541d+0x1))return!0x0;}for(let _0x349cac=0x0;_0x349cac<_0x5440a8['length'];_0x349cac++){if(_0x151210(this,_0x5440a8[_0x349cac],_0x364215,0x0))return!0x0;}return!0x1;function _0x151210(_0x34f039,_0x1ef771,_0x255cbe,_0x71efb){for(let _0x2d30c6=_0x71efb;_0x2d30c6<_0x255cbe['length'];_0x2d30c6++){const _0x915f38=_0x255cbe[_0x2d30c6];if(_0x915f38['type']!==_0x1ef771['type']||_0x915f38['author']['id']!==_0x1ef771['author']['id']||_0x915f38['subType']!==_0x1ef771['subType'])continue;if(!ie(_0x1ef771,_0x915f38))continue;if('attribute'==_0x1ef771['type']&&_0x1ef771['data']['oldValue']!=_0x915f38['data']['oldValue'])continue;if('attribute'==_0x1ef771['type']&&_0x34f039['_isBlockAttribute'](_0x1ef771['data']['key']))continue;if('formatBlock'==_0x1ef771['type']){const _0x45491d=_0x34f039['editor']['model'],_0x10a00b=_0x1ef771['getContainedElement']();if(_0x10a00b&&(_0x45491d['schema']['isObject'](_0x10a00b)||_0x45491d['schema']['isLimit'](_0x10a00b)))continue;}const _0x1cd153=_0x2c7270['get'](_0x1ef771),_0x3254a0=_0x2eea5b['get'](_0x1ef771),_0x446385=_0x2eea5b['get'](_0x915f38),_0x85ccfa=_0x1ef771['commentThread']&&_0x1ef771['commentThread']['length'],_0x2773f5=_0x915f38['commentThread']&&_0x915f38['commentThread']['length'];if(!_0x85ccfa&&_0x1cd153(_0x446385,_0x3254a0))return _0x34f039['_joinSuggestions'](_0x915f38,_0x1ef771),_0x2eea5b['delete'](_0x1ef771),!0x0;if(!_0x2773f5&&_0x1cd153(_0x3254a0,_0x446385))return _0x34f039['_joinSuggestions'](_0x1ef771,_0x915f38),_0x2eea5b['delete'](_0x915f38),!0x0;}return!0x1;}}['_joinSuggestions'](_0x277e94,_0x221154){if(_0x277e94['isMultiRange']){for(const _0x10302b of _0x221154['getRanges']())_0x277e94['addRange'](_0x10302b);}else{const _0x164ff3=_0x221154['getFirstRange']()['end'];this['_setSuggestionRange'](_0x277e94,this['_model']['createRange'](_0x277e94['getFirstRange']()['start'],_0x164ff3));}_0x221154['removeMarkers']();}['_getMarkerAnnouncementText'](_0x2d00b0,_0x7f9bf7,_0xa558cb){const _0x191d2f=_0x2d00b0['startsWith']('format')||_0x2d00b0['startsWith']('attribute')?'FORMATTING':_0x2d00b0['toUpperCase']();return o(this['editor']['locale'],_0x7f9bf7+'_'+_0x191d2f+'_SUGGESTION_ANNOUNCEMENT',_0xa558cb);}['_initAriaMarkerChangeAnnouncements'](){const _0x27a9aa=this['editor'];if(!_0x27a9aa['ui'])return;const {ariaLiveAnnouncer:_0x38ebdf}=_0x27a9aa['ui'];_0x154636(this['_model'],({left:_0x3ebf22,entered:_0x5ce460})=>{for(const _0x58d4bf of _0x3ebf22){const {group:_0x10da06,type:_0x29046e}=this['_splitMarkerName'](_0x58d4bf['name']);if('suggestion'===_0x10da06){_0x38ebdf['announce'](this['_getMarkerAnnouncementText'](_0x29046e,'LEAVE'));break;}}for(const _0x1bbd22 of _0x5ce460){const {group:_0x2b93ef,type:_0x38c81e}=this['_splitMarkerName'](_0x1bbd22['name']);if('suggestion'===_0x2b93ef){_0x38ebdf['announce'](this['_getMarkerAnnouncementText'](_0x38c81e,'ENTER',_0x465b03(_0x15f150)));break;}}});}['_processAttributeChanges'](_0x225b00){if(this['_recordAttributeSuggestions'])return!0x1;const _0x4d18e6=this['editor'],_0x3ab8ed=_0x4d18e6['model']['document']['differ']['getChanges']();if(0x0==_0x3ab8ed['length'])return!0x1;const _0x4e482b=[],_0x9de789=_0x3ab8ed['filter'](_0xda3ea3=>'attribute'==_0xda3ea3['type']),_0x59444a=_0x3ab8ed['filter'](_0x2ae497=>'insert'==_0x2ae497['type']&&'$text'!=_0x2ae497['name']),_0x47c70e=_0x3ab8ed['filter'](_0x337556=>'remove'==_0x337556['type']&&'$text'!=_0x337556['name']);for(const _0x1d02bd of _0x9de789)_0x4e482b['push']({'key':_0x1d02bd['attributeKey'],'newValue':_0x1d02bd['attributeNewValue'],'oldValue':_0x1d02bd['attributeOldValue'],'range':Zt(_0x1d02bd['range'],_0x4d18e6['model'])});for(const _0x51632d of _0x59444a){const _0x116bdd=_0x47c70e['find'](_0x5c2a2e=>_0x5c2a2e['position']['isEqual'](_0x51632d['position']));_0x116bdd&&_0x4e482b['push']({'key':m,'newValue':_0x51632d['name'],'oldValue':_0x116bdd['name'],'range':_0x4d18e6['model']['createRangeOn'](_0x51632d['position']['nodeAfter'])});}return 0x0!=_0x4e482b['length']&&this['_reduceExistingSuggestions'](_0x225b00,_0x4e482b);}['_processAttributeSuggestions'](_0x259215){let _0x23f416=!0x1;const _0x1629a0=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1bb5f6=>_0x1bb5f6['data']['newRange']&&_0x1bb5f6['name']['startsWith']('suggestion:attribute:'));for(const _0x31cfb8 of _0x1629a0){const {subType:_0x2cecc4,id:_0x5b599c}=this['_splitMarkerName'](_0x31cfb8['name']),_0x232133=_0x2cecc4['split']('|')[0x0];for(const _0x3c9eed of this['getSuggestions']({'skipNotAttached':!0x0}))_0x3c9eed['id']!=_0x5b599c&&'attribute'==_0x3c9eed['type']&&_0x3c9eed['data']&&_0x3c9eed['data']['key']==_0x232133&&_0x3c9eed['getFirstRange']()['isIntersecting'](_0x31cfb8['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x3c9eed,_0x31cfb8['data']['newRange'],_0x259215),_0x23f416=!0x0);}return _0x23f416;}['recordAttributeChanges'](_0x36c1cb){this['_recordAttributeSuggestions']=!0x0,_0x36c1cb();}['_isRegisteredAttribute'](_0xe4b2ae){const _0x53398f=this['_isBlockAttribute'](_0xe4b2ae),_0x3bfcfe=this['_isInlineAttribute'](_0xe4b2ae);return _0x53398f||_0x3bfcfe;}['_reduceExistingSuggestions'](_0x3006b8,_0x311c46){if(0x0==_0x311c46['length'])return!0x1;let _0x518c38=!0x1;for(const _0x10b2c of _0x311c46){const _0x2fab3c=this['_findSuggestions'](_0x10b2c['range'],'attribute')['filter'](_0x4424b9=>!_0x4424b9['meta']['isNextTo'])['map'](_0x4e3ba6=>_0x4e3ba6['suggestion']),_0xc8736c=_0x318d41({'newValue':_0x10b2c['newValue']});_0x2fab3c['filter'](_0x4a3bd7=>{const [_0x26def9,_0x1b15ca]=_0x4a3bd7['subType']['split']('|');return _0x26def9==_0x10b2c['key']&&_0x1b15ca!=_0xc8736c;})['forEach'](_0x27b01c=>{this['_reduceSuggestionAttributeRange'](_0x27b01c,_0x10b2c['range'],_0x3006b8),_0x518c38=!0x0;});}return _0x518c38;}['_reduceSuggestionAttributeRange'](_0x23d878,_0x5618a4,_0x2ce6c7){const _0x35bc27=_0x23d878['getFirstRange']()['getDifference'](_0x5618a4);0x0!==_0x35bc27['length']?0x1!==_0x35bc27['length']?this['_breakSuggestionMarker'](_0x23d878,_0x5618a4['start'],_0x5618a4['end']):this['_setSuggestionRange'](_0x23d878,_0x35bc27[0x0]):_0x2ce6c7['removeMarker'](_0x23d878['getFirstMarker']());}}class Jt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x4c255a){this['_editor']=_0x4c255a,this['_model']=_0x4c255a['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x1d99e9,_0x1efb33,_0x5e3952,_0x38a20e,_0x3ce7d5,_0x13473f,_0x5b45c8){return new R(this['_model'],{'type':_0x1d99e9,'subType':_0x1efb33,'id':_0x5e3952,'originalSuggestionId':_0x5b45c8,'author':_0x38a20e,'creator':_0x38a20e,'attributes':_0x3ce7d5,'onAttributesChange':_0x13473f,'onAccept':(..._0x103528)=>this['getSuggestionCallback'](_0x1d99e9,_0x1efb33,'accept')(..._0x103528),'onDiscard':(..._0x393d13)=>this['getSuggestionCallback'](_0x1d99e9,_0x1efb33,'discard')(..._0x393d13)});}['registerCustomCallback'](_0x219232,_0xf58bb0,_0xc8046f,_0x41020c){const _0x47af3d=_0x219232+':'+_0xf58bb0+':'+_0xc8046f;this['_customCallbacks']['set'](_0x47af3d,_0x41020c);}['getSuggestionCallback'](_0x5e87bb,_0x4edcc1,_0x41af3d){const _0x195c8b=_0x5e87bb+':'+_0x4edcc1+':'+_0x41af3d;return this['_customCallbacks']['get'](_0x195c8b)||this['_defaultCallbacks']['get'](_0x5e87bb+':'+_0x41af3d);}['_registerDefaultCallbacks'](){const _0x124944=()=>!0x1,_0x290f9f=_0x135413=>{_0x135413['sort']((_0x3696b3,_0x13ea40)=>_0x3696b3['start']['isBefore'](_0x13ea40['start'])?0x1:-0x1),this['_model']['change'](_0xb3d244=>{for(const _0x372049 of _0x135413){let _0x3f5d7b;_0x3f5d7b=_0x372049['end']['isAtEnd']&&_0x372049['end']['parent']==_0x372049['start']['nodeAfter']?_0xb3d244['createSelection'](_0x372049['start']['nodeAfter'],'on'):_0xb3d244['createSelection'](_0x372049),this['_model']['deleteContent'](_0x3f5d7b,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x233763=(_0x36b73d,_0x10d562)=>{_0x10d562&&this['_model']['change'](_0x40f48c=>{const {commandName:_0xd5877f,commandParams:_0x1aea7f=[]}=_0x10d562,_0x50a75a=_0x36b73d['map'](_0x4e6094=>(Ht(_0x4e6094)&&(_0x4e6094=this['_model']['createRange'](_0x4e6094['end'])),_0x4e6094))['filter'](_0x1609e0=>'$graveyard'!==_0x1609e0['root']['rootName']);if(_0x50a75a['length']<0x1)return;const _0x5d91dd=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x311c8e=>_0x2fe235['fromRange'](_0x311c8e));_0x40f48c['setSelection'](_0x50a75a);for(const _0x4adfea of this['_editor']['commands']['commands']())_0x4adfea['refresh']();_0x1aea7f['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0xd5877f,..._0x1aea7f);const _0x25cea7=_0x5d91dd['filter'](_0x2cbe4b=>'$graveyard'!=_0x2cbe4b['root']['rootName']);_0x25cea7['length']>0x0&&_0x40f48c['setSelection'](_0x25cea7);for(const _0x421ccb of _0x5d91dd)_0x421ccb['detach']();});},_0x4a92e1=(_0x265503,_0x4a280b)=>0x1==_0x265503['length']&&0x1==_0x4a280b['length']&&_0x265503[0x0]['end']['isEqual'](_0x4a280b[0x0]['start']),_0x3055f3=(_0x32f39b,_0x357b9a,_0x22037f,_0x12576b)=>ee(_0x32f39b,_0x357b9a,_0x22037f,_0x12576b)?[_0x32f39b,_0x357b9a]:ee(_0x357b9a,_0x32f39b,_0x12576b,_0x22037f)?[_0x357b9a,_0x32f39b]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x124944),this['_defaultCallbacks']['set']('insertion:discard',_0x290f9f),this['_defaultCallbacks']['set']('insertion:join',_0x4a92e1),this['_defaultCallbacks']['set']('insertion:chain',_0x3055f3),this['_defaultCallbacks']['set']('deletion:accept',_0x290f9f),this['_defaultCallbacks']['set']('deletion:discard',_0x124944),this['_defaultCallbacks']['set']('deletion:join',_0x4a92e1),this['_defaultCallbacks']['set']('deletion:chain',_0x3055f3),this['_defaultCallbacks']['set']('formatInline:accept',_0x233763),this['_defaultCallbacks']['set']('formatInline:discard',_0x124944),this['_defaultCallbacks']['set']('formatInline:join',_0x4a92e1),this['_defaultCallbacks']['set']('formatInline:chain',_0x124944),this['_defaultCallbacks']['set']('formatBlock:accept',_0x233763),this['_defaultCallbacks']['set']('formatBlock:discard',_0x124944),this['_defaultCallbacks']['set']('formatBlock:join',_0x4a92e1),this['_defaultCallbacks']['set']('formatBlock:chain',_0x124944),this['_defaultCallbacks']['set']('attribute:accept',_0x124944),this['_defaultCallbacks']['set']('attribute:discard',(_0x5ad8e9,_0x2d102d)=>{if(!_0x2d102d)return;const _0x5cf5cc=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x5947f0=>{if(_0x2d102d['key']==m)for(const _0x33b445 of _0x5ad8e9){const _0x2d84d8=_0x33b445['start']['nodeAfter'],_0x8923f1=_0x2d102d['oldValue'];_0x5947f0['rename'](_0x2d84d8,_0x8923f1);}else{if(_0x5cf5cc['_isBlockAttribute'](_0x2d102d['key'])){for(const _0xd4d0fc of _0x5ad8e9)void 0x0!==_0x2d102d['oldValue']?_0x5947f0['setAttribute'](_0x2d102d['key'],_0x2d102d['oldValue'],_0xd4d0fc['start']['nodeAfter']):_0x5947f0['removeAttribute'](_0x2d102d['key'],_0xd4d0fc['start']['nodeAfter']);}else{for(const _0x1632dd of _0x5ad8e9)_0x2d102d['oldValue']?_0x5947f0['setAttribute'](_0x2d102d['key'],_0x2d102d['oldValue'],_0x1632dd):_0x5947f0['removeAttribute'](_0x2d102d['key'],_0x1632dd);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x4a92e1);}}function Kt(_0x571ecd,_0x561761,_0x116537){for(const _0x24cad5 of _0x561761['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x24cad5['root']==_0x24cad5)return!0x1;if(!_0x116537['containsItem'](_0x24cad5))return!0x1;if(_0x571ecd['isObject'](_0x24cad5)||_0x571ecd['isLimit'](_0x24cad5))return!0x0;}return!0x1;}function Ht(_0xa8c195){return _0xa8c195['end']['parent']==_0xa8c195['start']['nodeAfter']&&_0xa8c195['end']['isAtStart'];}function Wt(_0x1ad5d2,_0x379039,_0x3676a2,_0x17c591){const _0x3f656a=_0x213d34=>!_0x213d34['item']['is']('$textProxy')&&!_0x17c591['isObject'](_0x213d34['item']),_0x3d2cb6=_0x1ad5d2['start']['getLastMatchingPosition'](_0x3f656a),_0x7f1ade=_0x1ad5d2['end']['getLastMatchingPosition'](_0x3f656a,{'direction':'backward'});return(!_0x1ad5d2['start']['isEqual'](_0x3d2cb6)||!_0x1ad5d2['end']['isEqual'](_0x7f1ade))&&(_0x3d2cb6['isBefore'](_0x7f1ade)?_0x3676a2['updateMarker'](_0x379039,{'range':_0x3676a2['createRange'](_0x3d2cb6,_0x7f1ade)}):_0x3676a2['removeMarker'](_0x379039),!0x0);}function qt(_0x49d95a){return _0x318d41(_0x49d95a);}function zt(_0x51d924){const _0x5eb758=_0x51d924['start']['nodeAfter'];return _0x5eb758&&_0x5eb758['is']('element');}function Qt(_0x5d27ff){return Ht(_0x5d27ff)||function(_0x30df16){return _0x30df16['start']['parent']==_0x30df16['end']['nodeBefore']&&_0x30df16['start']['isAtEnd'];}(_0x5d27ff);}function Xt(_0xe60885,_0x205a9b){try{const _0x3f0b50=_0xe60885['getRange']();for(const _0x5360cf of _0x205a9b)if(_0xe60885!==_0x5360cf&&_0x3f0b50&&_0x3f0b50['isIntersecting'](_0x5360cf['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Yt(_0x5c05f3,_0x40fe83){const _0x1ec134=_0x5c05f3['end']['nodeBefore'];if(_0x1ec134&&_0x1ec134['is']('element')&&_0x40fe83['schema']['isBlock'](_0x1ec134)&&!_0x40fe83['schema']['isObject'](_0x1ec134)){const _0x2360ce=_0x40fe83['createPositionAt'](_0x1ec134,'end');return _0x40fe83['createRange'](_0x5c05f3['start'],_0x2360ce);}return _0x5c05f3;}function Zt(_0x4c48d1,_0x57a91a){return null==_0x4c48d1['end']['nodeBefore']&&_0x4c48d1['end']['parent']==_0x4c48d1['start']['nodeAfter']?te(_0x4c48d1['start']['nodeAfter'],_0x57a91a):_0x4c48d1;}function te(_0x406211,_0xaf8a96){const _0x473357=_0xaf8a96['schema']['isObject'](_0x406211)||_0xaf8a96['schema']['isSelectable'](_0x406211);return _0xaf8a96['createRange'](_0xaf8a96['createPositionAt'](_0x406211,'before'),_0x473357?_0xaf8a96['createPositionAfter'](_0x406211):_0xaf8a96['createPositionAt'](_0x406211,'end'));}function ee(_0x2cdf46,_0x43a052,_0x321ecb,_0x4d8432){return!!ie(_0x2cdf46,_0x43a052)&&_0x321ecb['end']['isEqual'](_0x4d8432['start']);}function ie(_0x7c3172,_0x285860){if(!_0x7c3172['_isDataLoaded']||!_0x285860['_isDataLoaded'])return!0x1;const _0x120260=new Set(Object['keys'](_0x7c3172['attributes'])),_0x309d59=new Set(Object['keys'](_0x285860['attributes']));if(_0x120260['delete']('groupId'),_0x309d59['delete']('groupId'),0x0==_0x120260['size']&&0x0==_0x309d59['size'])return!0x0;if(_0x120260['size']!=_0x309d59['size'])return!0x1;const _0x252ddb={..._0x7c3172['attributes']},_0x58ea21={..._0x285860['attributes']};return delete _0x252ddb['groupId'],delete _0x58ea21['groupId'],JSON['stringify'](_0x252ddb)==JSON['stringify'](_0x58ea21);}function ne(_0x2b32fb,_0x196a77){const _0x16f2f4=se(_0x2b32fb['attributes']),_0x3940f2=se(_0x196a77);if(!_0x2b32fb['_isDataLoaded'])return!0x1;for(const _0x206620 of Object['keys'](_0x3940f2))if(!_0x5cf543(_0x16f2f4[_0x206620],_0x3940f2[_0x206620]))return!0x1;return!0x0;}function se(_0x236ab6){const _0xf5dfdf=Object['assign']({},_0x236ab6);return delete _0xf5dfdf['skipNestingCheck'],delete _0xf5dfdf['tablePasteChainId'],_0xf5dfdf;}function oe(_0x31db39){return _0x31db39['split']('|')[0x0];}class Te extends/* #__PURE__ -- @preserve */
26
- _0x5100d7(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x585221,_0x5416a9,_0x1f0a75,_0x46dd37){super(),this['model']=_0x5416a9,this['view']=_0x1f0a75,this['commentThreadController']=_0x46dd37,this['_editor']=_0x585221,this['_acceptCommand']=_0x585221['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x585221['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x236c27,_0x71382b)=>_0x236c27||_0x71382b),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x108b17=>_0x108b17&&this['_editor']['model']['canEditAt'](_0x5416a9['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x3487cd=>_0x3487cd&&this['_editor']['model']['canEditAt'](_0x5416a9['getRanges']())),this['_pendingAction']=null,_0x1f0a75['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x1f0a75,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x1f0a75,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x1f0a75,'change:isDirty',()=>{_0x1f0a75['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 _0x9d6b2c=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x9d6b2c);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x1a95f3{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x5f01d5,_0x197f97,_0x19b7d9,_0x3263f2){super(_0x5f01d5),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x367c93(_0x5f01d5,o(_0x5f01d5,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x197f97['authoredAt']),this['bind']('authoredAt')['to'](_0x197f97),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',_0x197f97,'authoredAt',this,'descriptionParts',(_0x48ee09,_0x4ecd42,_0x1c75c2)=>{const _0x346a51=_0x1c75c2['map'](_0x8d1852=>ls(_0x8d1852['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x48ee09-0x1,_0x197f97['author']['name'],_0x4ecd42?_0x3263f2['formatDateTime'](_0x4ecd42):'',new DOMParser()['parseFromString'](_0x346a51,'text/html')['body']['textContent']]);}),this['focusables']=new _0xc18b02(),this['focusTracker']=new _0x3b3986(),this['keystrokes']=new _0x182121(),this['focusCycler']=new _0x225e9e({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x5b9dd2=>_0x5b9dd2['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x197f97,this['_localUser']=_0x19b7d9,this['_config']=_0x3263f2,_0x3263f2['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x466ce5(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x39b38e}=this['_config'];this['commentsListView']=new _0x39b38e(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',_0x42e9b9=>_0x42e9b9+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x513c4b,_0x8fd01e)=>_0x513c4b||!!_0x8fd01e);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x37dffd}=this['_config'],_0x5105c9=new _0x37dffd(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x2c26d5=_0x5105c9['commentInputView'];return _0x5105c9['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x2c26d5,'value',(_0x524726,_0x42f981,_0x243e4d)=>!!_0x243e4d||_0x524726&&!_0x42f981),_0x2c26d5['on']('submit',(_0x450d2d,_0x45c18a)=>{this['fire']('addComment',_0x45c18a),_0x2c26d5['editor']['setData']('');}),_0x2c26d5['on']('cancel',()=>this['focus']()),_0x2c26d5['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x5105c9;}}class Le extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x16b31e,_0x5e9399,_0x322393,_0x50b44f){super(_0x16b31e,_0x5e9399,_0x322393,_0x50b44f),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0xb40339=>_0xb40339&&_0xb40339[0x0]?_0xb40339[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x92e6f8,_0x2634c8)=>{let _0x553b79='';for(const _0x4520c4 of _0x92e6f8)_0x553b79+='<p>'+ls(_0x4520c4['content'],_0x4520c4['color'])+'</p>';return _0x2634c8?_0x553b79:_0x461d21(_0x553b79,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x50b44f['SuggestionView'](_0x16b31e,_0x5e9399,{'formatDateTime':_0x50b44f['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 _0x4f52ee=this['bindTemplate'],_0x163ac7=[this['suggestionView']];return this['commentsListView']&&_0x163ac7['push'](this['commentsListView']),this['commentThreadInputView']&&_0x163ac7['push'](this['commentThreadInputView']),_0x163ac7['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x4f52ee['if']('isActive','ck-suggestion-wrapper--active'),_0x4f52ee['to']('type',_0x3695e7=>'ck-suggestion-'+_0x3695e7),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':_0x4f52ee['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x163ac7};}['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 ve extends _0x1a95f3{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x187caf,_0x514974,_0x416524){super(_0x187caf),this['_model']=_0x514974,this['_config']=_0x416524,this['set']('description',''),this['bind']('authoredAt')['to'](_0x514974),this['acceptButton']=this['_createButton'](o(_0x187caf,'Accept\x20suggestion'),_0x5e26cb,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x187caf,'Discard\x20suggestion'),_0x19f008,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x1a6119(_0x187caf,_0x514974['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0xc18b02([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x3b3986(),this['keystrokes']=new _0x182121(),this['focusCycler']=new _0x225e9e({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x1b2c3d=>_0x1b2c3d['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x10ea2b=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x10ea2b['innerHTML']=this['description'],this['on']('change:description',(_0xe551ea,_0x8c2076,_0x915a2)=>{_0x10ea2b['innerHTML']=_0x915a2;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x249944=this['bindTemplate'],_0x44397b=[{'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':_0x249944['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x249944['to']('authoredAt',_0x5143ce=>this['_config']['formatDateTime'](_0x5143ce))}]}]},{'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']&&_0x44397b['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':_0x44397b}]};}['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'](_0x258070,_0xa97be6,_0x163eb6,_0x4f0965,_0x37dc09){const _0x3c4793=new _0x1c6c78(this['locale']);return _0x3c4793['set']({'label':_0x258070,'icon':_0xa97be6,'tooltip':!0x0,'tooltipPosition':_0x37dc09}),_0x3c4793['extendTemplate']({'attributes':{'class':_0x163eb6}}),_0x3c4793['on']('execute',()=>{this['fire'](_0x4f0965,this['_model']['id']);}),_0x3c4793;}['_setupKeyboardNavigation'](){const _0x3bccfa=this['element'];this['keystrokes']['listenTo'](_0x3bccfa);for(const _0x3bf5c2 of this['focusables'])this['focusTracker']['add'](_0x3bf5c2['element']),this['keystrokes']['listenTo'](_0x3bf5c2['element']);this['keystrokes']['set']('enter',(_0x4e7d45,_0x169b6a)=>{_0x3bccfa===_0x4e7d45['target']&&(this['focusCycler']['focusFirst'](),_0x169b6a());}),this['keystrokes']['set']('esc',(_0x556264,_0x514771)=>{_0x3bccfa!==_0x556264['target']&&(this['focus'](),_0x514771());});}}class u extends _0x1ac4a7{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x53c5da,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5898ab){super(_0x5898ab),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x2f8acb=this['editor']['config'];_0x2f8acb['define']('trackChanges.SuggestionThreadView',Le),_0x2f8acb['define']('trackChanges.SuggestionView',ve),_0x2f8acb['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x2f8acb['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x5f20e4,_0x7a78d0){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0xf8f54e,_0x4e3cad]of this['_handleControllerBuffer']){const _0x1fa933=this['_suggestionToController']['has'](_0xf8f54e);_0x1fa933||_0x4e3cad?_0x1fa933&&_0x4e3cad&&this['_destroyController'](_0xf8f54e):this['_initializeController'](_0xf8f54e);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x5f20e4,_0x7a78d0);}['init'](){const _0x2ecfaa=this['editor'],_0x2d8ee7=_0x2ecfaa['plugins']['get']('TrackChangesEditing'),_0x59038b=_0x2ecfaa['plugins']['get']('Annotations'),_0x2b663d=_0x2ecfaa['plugins']['get']('EditorAnnotations'),_0x3a67de=_0x2ecfaa['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x2b663d['addSourceCollector'](()=>{const _0x16a3a8=[];for(const [_0x297f33,_0x52ef29]of Array['from'](this['_suggestionToController'])){const _0x32b8e0=_0x297f33['getAllAdjacentSuggestions'](),_0x173654=[];for(const _0x2d0cf3 of _0x32b8e0){if(!_0x2d0cf3['isInContent'])continue;if(_0x2d0cf3['isMultiRange']){_0x173654['push'](..._0x2d0cf3['getRanges']());continue;}const _0xe7c6d8=_0x2d0cf3['getFirstRange']();if(_0x173654['length']>0x0){const _0x4ae7bc=_0x173654[0x0]['getJoined'](_0xe7c6d8);if(_0x4ae7bc){_0x173654[0x0]=_0x4ae7bc;continue;}}_0x173654['push'](_0xe7c6d8);}_0x16a3a8['push']([_0x52ef29['view'],_0x173654]);}return _0x16a3a8;}),this['listenTo'](_0x2d8ee7,'suggestionLoaded',(_0x41aece,_0x5d6f1b)=>{this['listenTo'](_0x5d6f1b,'change:previous',(_0x18a019,_0x402023,_0x3cf91b,_0x500274)=>{_0x5d6f1b['isInContent']&&(null==_0x3cf91b?(this['_updateController'](_0x500274['head']),this['_handleSuggestionControllerDelayed'](_0x5d6f1b,!0x1)):(this['_updateController'](_0x3cf91b['head']),null==_0x500274&&this['_handleSuggestionControllerDelayed'](_0x5d6f1b,!0x0)));}),null!==_0x5d6f1b['previous']?this['_updateController'](_0x5d6f1b['head']):this['_handleSuggestionControllerDelayed'](_0x5d6f1b,!0x1);}),this['listenTo'](_0x2d8ee7,'suggestionUnloaded',(_0x597356,_0x24d8f2,_0x3b9350)=>{this['stopListening'](_0x24d8f2,'change:previous'),this['_handleControllerBuffer']['delete'](_0x24d8f2),this['_suggestionToController']['has'](_0x24d8f2)&&this['_destroyController'](_0x24d8f2),_0x3b9350&&this['_updateController'](_0x3b9350['head']);}),this['listenTo'](_0x2d8ee7,'suggestionChanged',(_0x3e36be,_0x282d77)=>{this['_updateController'](_0x282d77);}),this['listenTo'](_0x59038b,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x3a67de,'addComment',(_0x5176da,{threadId:_0x516cfd,isFromAdapter:_0x5b7151})=>{if(_0x5b7151||!_0x2d8ee7['hasSuggestion'](_0x516cfd))return;const _0x2177bb=_0x2d8ee7['getSuggestion'](_0x516cfd);this['_suggestionToController']['get'](_0x2177bb)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3a3dac=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xe74b55;for(const _0x5ad3cf in _0x3a3dac){const _0x44e861=_0x5ad3cf,_0x310283=_0x3a3dac[_0x44e861];if('trackChangesLicenseKeyValid'==_0x310283||'trackChangesLicenseKeyInvalid'==_0x310283||'trackChangesLicenseKeyExpired'==_0x310283||'trackChangesLicenseKeyDomainLimit'==_0x310283||'trackChangesLicenseKeyNotAllowed'==_0x310283||'trackChangesLicenseKeyEvaluationLimit'==_0x310283||'trackChangesLicenseKeyTrialLimit'==_0x310283||'trackChangesLicenseKeyUsageLimit'==_0x310283){delete _0x3a3dac[_0x44e861],_0xe74b55=_0x310283,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0xe74b55&&_0x3a3dac['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0xe74b55&&_0x3a3dac['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0xe74b55&&_0x3a3dac['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0xe74b55&&_0x3a3dac['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0xe74b55&&_0x3a3dac['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0xe74b55&&_0x3a3dac['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0xe74b55&&_0x3a3dac['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x55bdaf){const _0x44caaf=this['_suggestionToController']['get'](_0x55bdaf);if(!_0x44caaf)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x44caaf['view'])||null;}['getSuggestionForAnnotation'](_0x1a0be1){const _0x428ad4=this['_viewToController']['get'](_0x1a0be1['innerView']);return _0x428ad4?_0x428ad4['model']:null;}['_refreshActiveMarkers'](){const _0xe94233=this['editor']['plugins']['get']('Annotations'),_0x52a879=this['editor']['plugins']['get']('TrackChangesEditing'),_0x581543=Array['from'](_0xe94233['activeAnnotations'],_0x555a27=>_0x555a27['innerView'])['filter'](_0x2c9123=>this['_viewToController']['has'](_0x2c9123)),_0x3ee3d8=[];for(const _0x130c93 of _0x581543){const _0x408dd1=this['_viewToController']['get'](_0x130c93)['model']['getAllAdjacentSuggestions']();_0x3ee3d8['push'](..._0x408dd1['reduce']((_0x460906,_0x4a2478)=>[..._0x460906,..._0x4a2478['getMarkerNames']()],[]));}_0x52a879['activeMarkers']=_0x3ee3d8;}['_addUIComponentsToFactory'](){const _0x33b995=this['editor'],_0x310dd=_0x33b995['locale'],_0x450ee9=o(_0x310dd,'Track\x20changes'),_0x2d8668=new _0x5ca53d([{'type':'switchbutton','model':new _0x1e1468({'withText':!0x0,'isToggleable':!0x0,'label':_0x450ee9,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x1e1468({'withText':!0x0,'label':o(_0x310dd,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1e1468({'withText':!0x0,'label':o(_0x310dd,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1e1468({'withText':!0x0,'label':o(_0x310dd,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1e1468({'withText':!0x0,'label':o(_0x310dd,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x33b995['plugins']['has']('TrackChangesPreview')&&_0x2d8668['addMany']([{'type':'separator'},{'type':'button','model':new _0x1e1468({'withText':!0x0,'label':o(_0x310dd,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x581280 of _0x2d8668)if(xe(_0x581280)){const _0x3762a6=_0x33b995['commands']['get'](_0x581280['model']['commandName']);_0x581280['model']['bind']('isOn','isEnabled')['to'](_0x3762a6,'value','isEnabled');}_0x33b995['ui']['componentFactory']['add']('trackChanges',_0x207506=>this['_createToolbarButton'](_0x207506,_0x2d8668,_0x450ee9)),_0x33b995['ui']['componentFactory']['add']('menuBar:trackChanges',_0x40afaa=>this['_createMenuBarMenu'](_0x40afaa,_0x2d8668,_0x450ee9));}['_createToolbarButton'](_0x11a3e1,_0x1ccaf0,_0x2d111e){const _0x2290f2=_0x45be79(_0x11a3e1,_0x7670d3),_0x8a644a=this['editor']['commands']['get']('trackChanges');_0x2290f2['buttonView']['set']({'tooltip':_0x2d111e,'label':_0x2d111e,'icon':_0x5d5088}),_0x2290f2['buttonView']['bind']('isOn')['to'](_0x8a644a,'value'),_0x2290f2['buttonView']['on']('execute',()=>{_0x8a644a['execute'](),this['editor']['editing']['view']['focus']();}),_0x2d394f(_0x2290f2,_0x1ccaf0,{'role':'menu'});const _0x587cba=[];for(const _0x174cf0 of _0x1ccaf0)xe(_0x174cf0)&&_0x587cba['push'](this['editor']['commands']['get'](_0x174cf0['model']['commandName']));const _0x34fb7b=_0x2290f2['buttonView'];return _0x34fb7b['actionView']['unbind']('isEnabled'),_0x34fb7b['arrowView']['unbind']('isEnabled'),_0x34fb7b['actionView']['bind']('isEnabled')['to'](_0x8a644a,'isEnabled'),_0x34fb7b['arrowView']['bind']('isEnabled')['toMany'](_0x587cba,'isEnabled',(..._0x47fa3d)=>_0x47fa3d['some'](_0x463ce9=>_0x463ce9)),_0x2290f2['on']('execute',_0x29be0f=>{this['editor']['execute'](_0x29be0f['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x2290f2;}['_createMenuBarMenu'](_0x3b8c54,_0x44005c,_0xd670ed){const _0x1ac825=new _0x5e2c03(_0x3b8c54),_0x2d4fbc=this['editor']['commands']['get']('trackChanges');_0x1ac825['buttonView']['set']({'label':_0xd670ed,'icon':_0x5d5088});const _0x1759fd=new _0x180c07(_0x3b8c54);for(const _0xbda843 of _0x44005c){if('separator'==_0xbda843['type']){_0x1759fd['items']['add'](new _0x1f0330(_0x3b8c54));continue;}const _0x105f98=new _0x5bdd5b(_0x3b8c54,_0x1ac825),_0x1e23b2=new _0xbcb65(_0x3b8c54),_0x2331a8=_0xbda843['model'];_0x1e23b2['bind'](...Object['keys'](_0x2331a8))['to'](_0x2331a8),_0x1e23b2['delegate']('execute')['to'](_0x1ac825),_0x1e23b2['on']('execute',()=>{this['editor']['execute'](_0x2331a8['commandName']),this['editor']['editing']['view']['focus']();}),_0x105f98['children']['add'](_0x1e23b2),_0x1759fd['items']['add'](_0x105f98);}return _0x1ac825['bind']('isEnabled')['to'](_0x2d4fbc,'isEnabled'),_0x1ac825['panelView']['children']['add'](_0x1759fd),_0x1ac825;}['_initializeController'](_0x5d3c7b){const _0x3cb75d=this['editor'],_0x57a480=_0x3cb75d['config'],_0x4d75ad=_0x3cb75d['plugins']['get']('Annotations'),_0x491c4c=_0x3cb75d['plugins']['get']('CommentsRepository'),_0x5bf5b8=_0x3cb75d['plugins']['get']('EditorAnnotations'),_0x28a59a=_0x3cb75d['plugins']['get'](_0x53c5da)['me'],_0x50181c=_0x57a480['get']('trackChanges')['SuggestionThreadView'],_0x55f182=_0x57a480['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x47d9d9,CommentThreadInputView:_0xd6ea8b}=_0x3cb75d['plugins']['get']('CommentsUI');let _0x35f5aa,_0x122aa8,_0x385f27;this['_annotationViews']['has'](_0x5d3c7b['id'])?(_0x122aa8=this['_annotationViews']['get'](_0x5d3c7b['id']),_0x35f5aa=_0x122aa8['mainView']):(_0x35f5aa=new _0x50181c(_0x3cb75d['locale'],_0x5d3c7b,_0x28a59a,{'disableComments':this['_disableComments'],'editorConfig':{..._0x57a480['get']('comments.editorConfig'),'licenseKey':_0x57a480['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x57a480['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x57a480['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x57a480['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x24eb5b(_0x57a480['get']('locale'),_0x3cb75d['locale']),'CommentView':_0x57a480['get']('comments')['CommentView'],'CommentsListView':_0x47d9d9,'CommentThreadInputView':_0xd6ea8b,'SuggestionView':_0x55f182}),_0x35f5aa['suggestionView']['acceptButton']['on']('execute',()=>{_0x3cb75d['editing']['view']['focus']();}),_0x35f5aa['suggestionView']['discardButton']['on']('execute',()=>{_0x3cb75d['editing']['view']['focus']();}),_0x122aa8=_0x4d75ad['createAnnotationView'](this['editor']['locale'],_0x35f5aa),_0x122aa8['bind']('isDirty')['to'](_0x35f5aa,'isDirty'),_0x122aa8['bind']('length')['to'](_0x35f5aa),_0x122aa8['bind']('type')['to'](_0x35f5aa,'type',_0x2dab8f=>'suggestion-'+_0x2dab8f),_0x35f5aa['on']('escape',()=>{_0x385f27['fire']('escape');}),this['_annotationViews']['set'](_0x5d3c7b['id'],_0x122aa8));const _0x32e2ab=_0x491c4c['createCommentThreadController'](_0x5d3c7b['commentThread'],_0x35f5aa),_0x168e16=new Te(_0x3cb75d,_0x5d3c7b,_0x35f5aa,_0x32e2ab),_0x26bb83=_0x5d3c7b['getAllAdjacentSuggestions']()['filter'](_0x3182d6=>_0x3182d6['isInContent']);_0x35f5aa['descriptionParts']=_0x3cb75d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x26bb83),this['_suggestionToController']['set'](_0x5d3c7b,_0x168e16),this['_viewToController']['set'](_0x35f5aa,_0x168e16);const _0x108dc6=()=>{const _0x3372f7=[],_0x256228=_0x5d3c7b['getAllAdjacentSuggestions']()['filter'](_0x4aa653=>_0x4aa653['isInContent']);for(const _0x397988 of _0x256228)_0x3372f7['push'](..._0x397988['getMarkers']());return _0x203780(_0x3cb75d['editing'],_0x3372f7);};_0x385f27=_0x4d75ad['createAnnotation']({'view':_0x122aa8,'target':_0x108dc6,'type':()=>'suggestion-'+_0x168e16['view']['type'],'isVisible':!!_0x108dc6()}),_0x491c4c['_bindAnnotationToEditors'](_0x35f5aa,_0x385f27),_0x4d75ad['add'](_0x385f27),_0x5bf5b8['registerAnnotation'](_0x385f27);}['_destroyController'](_0x1c079d){const _0x58dba2=this['editor']['plugins']['get']('CommentsRepository'),_0x368be7=this['editor']['plugins']['get']('Annotations'),_0x97cd07=this['_suggestionToController']['get'](_0x1c079d),_0xef343=_0x97cd07['view'],_0x1e2ed0=_0x368be7['getByInnerView'](_0xef343);_0x58dba2['_unbindEditors'](_0xef343),_0x1e2ed0&&_0x368be7['remove'](_0x1e2ed0),this['_suggestionToController']['delete'](_0x1c079d),this['_viewToController']['delete'](_0xef343),_0x97cd07['destroy']();}['_updateController'](_0x59230e){if(!_0x59230e['isInContent']||!this['_suggestionToController']['has'](_0x59230e))return;const _0xbb3e8c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x54ac45=this['_suggestionToController']['get'](_0x59230e),_0x2955c9=_0x59230e['getAllAdjacentSuggestions']();_0x54ac45['view']['descriptionParts']=_0xbb3e8c['descriptionFactory']['getDescriptions'](_0x2955c9);}['destroy'](){for(const _0x1350ae of this['_suggestionToController']['keys']())this['_destroyController'](_0x1350ae);for(const _0x510591 of this['_annotationViews']['values']())_0x510591['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function xe(_0x207154){return'model'in _0x207154;}class Ve extends _0x1ac4a7{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x2bce7a){this['editor']['plugins']['get'](d)['adapter']=_0x2bce7a;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x2341e0){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x2341e0);}['getSuggestions']({skipNotAttached:_0x582820=!0x1,toJSON:_0x2aa5a5=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x582820,'toJSON':_0x2aa5a5});}['getSuggestion'](_0x4eb25e){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x4eb25e);}}const p=['Pagination'];class ce extends _0x1ac4a7{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0xb267be=this['editor'];if(_0xb267be['config']['define']('trackChangesData.editorCreator',_0x336e94=>{const _0x494480=_0xb267be['model']['document']['getRootNames']()['reduce']((_0x284ac5,_0x1e2a4a)=>(_0x284ac5[_0x1e2a4a]='',_0x284ac5),{});return _0xb267be['constructor']['create'](_0x494480,_0x336e94);}),'function'!=typeof _0xb267be['config']['get']('trackChangesData')['editorCreator'])throw new _0x515288('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2bd23d){return P(this['editor'],!0x0,_0x2bd23d);}['getDataWithDiscardedSuggestions'](_0x4c9cfa){return P(this['editor'],!0x1,_0x4c9cfa);}}class ze extends _0x1ac4a7{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x164a53){function _0x3d85d7(_0x904a53){return _0x904a53['map'](_0x502f63=>String['fromCharCode'](_0x502f63))['join']('');}super(_0x164a53),this['result']='end',_0x164a53[_0x3d85d7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3d85d7([0x76,0x69,0x65,0x77])][_0x3d85d7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3d85d7([0x61,0x75,0x74,0x6f]),_0x164a53[_0x3d85d7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3d85d7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3d85d7([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3d85d7([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3d85d7([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(_0x460812){return void 0x0!==_0x460812['getRootsAttributes'];}async function P(_0x551650,_0x45dd8c,_0x123d30){const _0x4d2abd=_0x1e1567(_0x551650,p);_0x4d2abd['plugins']['push'](d,ze),_0x4d2abd['rootsAttributes']=Ke(_0x551650)?_0x551650['getRootsAttributes']():void 0x0;const _0x78b8f5=document['createDocumentFragment'](),_0x3734ad=_0x551650['config']['get']('trackChangesData')['editorCreator'],_0x24e29c=await _0x3734ad(_0x4d2abd,()=>function(_0x32ac92){const _0x374a32=document['createElement']('div');return _0x32ac92['appendChild'](_0x374a32),_0x374a32;}(_0x78b8f5));!function(_0x4b0814,_0xadeecc){const _0xf96ca6=_0x4b0814['model']['document']['getRootNames']()['reduce']((_0x97ffc6,_0x59b39d)=>(_0x97ffc6[_0x59b39d]=_0x4b0814['data']['get']({'rootName':_0x59b39d}),_0x97ffc6),{}),_0x1a0f2f=_0x4b0814['plugins']['get']('Users')['users']['map'](_0x3087f1=>({'id':_0x3087f1['id'],'name':_0x3087f1['name']})),_0x4c1f99=_0x4b0814['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3ff7aa=_0x4b0814['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x19345f=_0xadeecc['plugins']['get']('Users'),_0x4fe4ac=_0xadeecc['plugins']['get']('TrackChangesEditing'),_0x4a72da=_0xadeecc['plugins']['get']('CommentsRepository');for(const _0x423d60 of _0x4a72da['getCommentThreads']())_0x423d60['remove']();for(const _0x4f6b19 of _0x1a0f2f)_0x19345f['getUser'](_0x4f6b19['id'])||_0x19345f['addUser'](_0x4f6b19);_0x19345f['me']||_0x19345f['useAnonymousUser']();for(const _0xa2e487 of _0x3ff7aa)_0x4a72da['addCommentThread'](_0xa2e487);for(const _0x15bc28 of _0x4c1f99)_0x4fe4ac['addSuggestionData'](_0x15bc28);_0xadeecc['data']['set'](_0xf96ca6);}(_0x551650,_0x24e29c),_0x24e29c['execute'](_0x45dd8c?'acceptAllSuggestions':'discardAllSuggestions');const _0x2ac07f=Ke(_0x24e29c)?_0x24e29c['getFullData'](_0x123d30):_0x24e29c['data']['get'](_0x123d30);return await _0x24e29c['destroy'](),_0x2ac07f;}class _e extends _0x1a95f3{['options'];constructor(_0x3c4b5b,_0x5a4eb6){super(_0x3c4b5b),this['options']=_0x5a4eb6,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'](_0x32ca81,_0x19770a){if(!this['element'])return;const _0x3c4499=[];for(const [_0x25e824,_0x5662dc]of _0x32ca81){const _0x394820=document['createElement']('div');_0x394820['setAttribute']('data-ck-root-name',_0x25e824),_0x394820['className']=_0x5662dc['classes']+'\x20ck-track-changes-preview__root-container',_0x394820['innerHTML']=_0x5662dc['content'],_0x3c4499['push'](_0x394820);}_0x19770a(this['element'],_0x3c4499),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class ae extends _0x294915{constructor(_0x4669ed){super(_0x4669ed),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x4af4b5=this['editor'],_0x30adc6=_0x4af4b5['locale'],_0x17c556=_0x4af4b5['plugins']['get']('Dialog');let _0x36bcb5;const _0x428169=function(_0xe412fe){const _0x231b7d={};if('editables'in _0xe412fe['ui']['view']){for(const [_0x42586b,_0x59567b]of Object['entries'](_0xe412fe['ui']['view']['editables']))_0x231b7d[_0x42586b]=_0x59567b['element'];}else _0x231b7d[_0xe412fe['model']['document']['getRootNames']()[0x0]]=_0xe412fe['ui']['view']['editable']['element'];return _0x231b7d;}(_0x4af4b5),_0x440e91=function(_0x5bce13){let _0x18d180=0x0;for(const _0x5e20b8 of Object['values'](_0x5bce13))_0x18d180=Math['max'](_0x18d180,_0x5e20b8['getBoundingClientRect']()['width']);let _0x3f4416=0x0;for(const _0x2952b7 of Object['values'](_0x5bce13))_0x3f4416+=_0x2952b7['getBoundingClientRect']()['height'];const _0x218bf8=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x5d4881=Math['min'](_0x3f4416,_0x218bf8);return{'width':_0x18d180,'height':_0x5d4881};}(_0x428169);_0x17c556['show']({'id':'finalContentPreview','title':o(_0x30adc6,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new _e(_0x30adc6,{'dialogRects':_0x440e91}),'onHide':()=>{_0x36bcb5['detachFromDom']();},'onShow':()=>{_0x4af4b5['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x55ba64=>{const _0x3d8fd6=this['_standarizeRootsData'](_0x55ba64,_0x4af4b5,_0x428169);_0x17c556['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x3d8fd6,_0x4af4b5['config']['get']('trackChanges.preview.renderFunction'));}),_0x36bcb5=new _0x4fccb4(_0x30adc6,[_0x17c556['view']]),_0x36bcb5['attachToDom'](),_0x36bcb5['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x4af4b5['once']('destroy',()=>{_0x36bcb5['detachFromDom']();});const _0x289b24=_0x17c556['view']['headerView']['class'];_0x17c556['view']['headerView']['class']=_0x289b24?_0x289b24+'\x20ck-reset_all':'ck-reset_all',_0x17c556['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x17c556['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x106704=this['editor']['plugins']['get']('MergeFieldsEditing'),_0xe0e17b=_0x106704['previewMode'],_0x5cc51b={};if('$labels'===_0xe0e17b){for(const _0x3ba686 of _0x106704['getMergeFieldsIds']())_0x5cc51b[_0x3ba686]=_0x106704['getLabel'](_0x3ba686)||_0x3ba686;}else{const _0x4edcbb='$defaultValues'===_0xe0e17b?_0x106704['getDefaultValues']():_0x106704['getDataSetValues'](_0xe0e17b,!0x0);for(const _0x524db9 of Object['entries'](_0x4edcbb)){const [_0x4b3898,_0x5a79b4]=_0x524db9;_0x5cc51b[_0x4b3898]=null!==_0x5a79b4?_0x5a79b4:_0x106704['getLabel'](_0x4b3898)||_0x4b3898;}}return{'mergeFieldsData':_0x5cc51b};}['_standarizeRootsData'](_0x16aafa,_0x53c833,_0x2ca88b){let _0x59dfe3;if('string'==typeof _0x16aafa){const _0x1c989a=_0x53c833['model']['document']['getRootNames']()[0x0];_0x59dfe3={[_0x1c989a]:_0x16aafa};}else _0x59dfe3=_0x16aafa;const _0x55ee33=this['_fixMediaEmbeds'](_0x59dfe3,_0x53c833),_0x18105c=function(_0x2271ec,_0x1a40b5){for(const [_0x18f801,_0x10787a]of _0x2271ec)_0x10787a['classes']=_0x1a40b5[_0x18f801]['classList']['value']['replace']('ck-focused','');return _0x2271ec;}(this['_sortRoots'](_0x53c833)['reduce']((_0x3fb07a,_0x3136db)=>(_0x3fb07a['push']([_0x3136db,{'content':_0x55ee33[_0x3136db],'classes':''}]),_0x3fb07a),[]),_0x2ca88b);return _0x18105c;}['_fixMediaEmbeds'](_0x3e5d15,_0x2f89f0){if(!_0x2f89f0['plugins']['has']('MediaEmbedEditing'))return _0x3e5d15;const _0x36ba0d=_0x2f89f0['plugins']['get']('MediaEmbedEditing');for(const [_0x460486,_0x209b95]of Object['entries'](_0x3e5d15)){const _0x22da46=document['createElement']('div');_0x22da46['innerHTML']=_0x209b95,(_0x22da46['querySelectorAll']('figure.media')['forEach'](_0x2bb654=>{const _0x8efd08=_0x2bb654['querySelector']('oembed');if(_0x8efd08){const _0x103431=_0x8efd08['getAttribute']('url');if(_0x103431){const _0x2fdfe2=_0x36ba0d['registry']['getMediaViewElement'](new _0x31158e(_0x2f89f0['editing']['view']['document']),_0x103431,{'elementName':'','renderForEditingView':!0x0}),_0x2b566c=document['createElement']('div');_0x2b566c['classList']['add']('ck-media__wrapper'),_0x2fdfe2['render'](_0x2b566c,_0x2f89f0['editing']['view']['domConverter']),_0x8efd08['replaceWith'](_0x2b566c);}}}),_0x3e5d15[_0x460486]=_0x22da46['innerHTML']);}return _0x3e5d15;}['_sortRoots'](_0x2856ef){if(!function(_0x485639){return void 0x0!==_0x485639['getRootsAttributes'];}(_0x2856ef))return _0x2856ef['model']['document']['getRootNames']();const _0x3b59df=[],_0x5a2fc6=new Map();for(const _0x5e198d of _0x2856ef['model']['document']['getRootNames']()){const _0x371548=_0x2856ef['editing']['view']['getDomRoot'](_0x5e198d)['getClientRects']()['item'](0x0);_0x3b59df['push'](_0x5e198d),_0x5a2fc6['set'](_0x5e198d,_0x371548);}return _0x3b59df['sort']((_0x159fd9,_0x515d4c)=>{const _0x15c6d0=_0x5a2fc6['get'](_0x159fd9),_0x5c003c=_0x5a2fc6['get'](_0x515d4c);return _0x15c6d0['y']-_0x5c003c['y']||_0x15c6d0['x']-_0x5c003c['x'];}),_0x3b59df;}}class Xe extends _0x1ac4a7{static get['requires'](){return[ce,_0x3f5aef];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x21a922){super(_0x21a922),_0x21a922['commands']['add']('previewFinalContent',new ae(this['editor'])),_0x21a922['config']['define']('trackChanges.preview.renderFunction',(_0x27759a,_0x56412e)=>{for(const _0x485d64 of _0x56412e)_0x27759a['appendChild'](_0x485d64);});}}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,Le as SuggestionThreadView,ve 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 _0x5e7115,Plugin as _0x4be19b,PendingActions as _0x2d4e96}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x3ea0ba,ObservableMixin as _0x50d6bd,uid as _0xf4a34a,priorities as _0x4d4930,insertToPriorityArray as _0x4fdd17,toArray as _0x226d78,logWarning as _0x3339d7,getEnvKeystrokeText as _0xad8b6a,FocusTracker as _0x419095,KeystrokeHandler as _0x170971,Collection as _0xedbb46}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x197cfd,IconCancel as _0x89fdb,IconTrackChanges as _0x58bb43}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x2eeb65,View as _0x24bff0,ViewCollection as _0x49a2d4,FocusCycler as _0x365139,UIModel as _0x49c5a0,createDropdown as _0x38b019,SplitButtonView as _0x1e1570,addListToDropdown as _0x559d50,MenuBarMenuView as _0x693e1f,MenuBarMenuListView as _0x1b35db,ListSeparatorView as _0x4394a3,MenuBarMenuListItemView as _0xed488d,MenuBarMenuListItemButtonView as _0x23a81d,BodyCollection as _0x1f6241,Dialog as _0x31669e}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x5434f7,DocumentCompare as _0x368dd4,hashObject as _0x5626cf,surroundingMarkersDetector as _0x4f626c,FOCUS_ANNOTATION_KEYSTROKE as _0x152ffb,AriaDescriptionView as _0x195dea,setupThreadKeyboardNavigation as _0x405b48,trimHtml as _0x6a430a,UserView as _0x250299,LateFocusButtonView as _0x2bb0ea,getDateTimeFormatter as _0x1b3ca7,getAllMarkersDomElementsSorted as _0xc61320,sanitizeEditorConfig as _0x33e814}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x25f55e,ModelLiveRange as _0x5c6c0b,ModelLivePosition as _0x538ab7,ModelPosition as _0xa98866,ModelRange as _0x2c2e90,_DetachOperation as _0x1aa185,ViewDowncastWriter as _0x147bf7}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x36dd47,toWidget as _0x43134f}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x5cc387,set as _0x5bbf33,isEqual as _0x51e25d,unset as _0x3ad97c,omit as Jt}from'es-toolkit/compat';import{Delete as _0x3548ba,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x4fba86}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x556691}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x5e7115{['_enabledCommands'];constructor(_0x242fb0,_0x22275f){super(_0x242fb0),this['_enabledCommands']=_0x22275f,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 _0x4e323c of this['editor']['commands']['commands']())_0x4e323c['affectsData']&&!this['_enabledCommands']['has'](_0x4e323c)&&_0x4e323c['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x4b224a of this['editor']['commands']['commands']())_0x4b224a['affectsData']&&!this['_enabledCommands']['has'](_0x4b224a)&&_0x4b224a['clearForceDisabled']('TrackChangesCommand');}}class T extends _0x5e7115{['_suggestions'];constructor(_0x17473b,_0x241b7d){super(_0x17473b),this['_suggestions']=_0x241b7d,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x38ec5d){const _0x5cf227=this['_suggestions']['get'](_0x38ec5d);if(!_0x5cf227)throw new _0x3ea0ba('track-changes-accept-suggestion-not-found',this);const _0x4de7ed=_0x5cf227['getRanges']();this['editor']['model']['canEditAt'](_0x4de7ed)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x5cf227);}}class O extends _0x5e7115{['_suggestions'];constructor(_0x1622af,_0x14627f){super(_0x1622af),this['_suggestions']=_0x14627f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x24886c){const _0x254291=this['_suggestions']['get'](_0x24886c);if(!_0x254291)throw new _0x3ea0ba('track-changes-discard-suggestion-not-found',this);const _0x2d6f2b=_0x254291['getRanges']();this['editor']['model']['canEditAt'](_0x2d6f2b)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x254291);}}function ls(_0x2f9a53,_0x502481){let _0x4cc8bb='';return _0x4cc8bb+=_0x2f9a53['split']('*')['map']((_0x49743a,_0x3fe8a1)=>_0x3fe8a1%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+tn(_0x49743a)+'</span>':tn(_0x49743a))['join'](''),_0x502481&&(_0x4cc8bb+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x502481['value']+'\x22\x20title=\x22'+_0x502481['title']+'\x22></span>'),_0x4cc8bb;}function tn(_0x393716){const _0x15f248=document['createElement']('span');return _0x15f248['innerText']=_0x393716,_0x15f248['innerHTML'];}function ts(_0x5100ba){return _0x5100ba['sort']((_0x1c43f8,_0x2017fb)=>'attribute'===_0x1c43f8['type']&&'attribute'!==_0x2017fb['type']?-0x1:'attribute'!==_0x1c43f8['type']&&'attribute'===_0x2017fb['type']?0x1:'deletion'==_0x1c43f8['type']&&'deletion'!=_0x2017fb['type']?-0x1:'deletion'!=_0x1c43f8['type']&&'deletion'==_0x2017fb['type']?0x1:0x0);}function to(_0xb0372e,_0x25f415){let _0x10588f,_0x110d3b=0x0;const _0x279a14=[],_0x2f917a=_0x25f415['schema'];for(;_0x110d3b<_0xb0372e['length'];){const _0xeee446=_0xb0372e[_0x110d3b],_0xafea1e=_0xb0372e[_0x110d3b+0x1];_0x10588f||(_0x10588f=_0x25f415['createPositionBefore'](_0xeee446)),nn(_0x25f415,_0xeee446,_0xafea1e)||(_0x279a14['push'](_0x25f415['createRange'](_0x10588f,_0x2f917a['isObject'](_0xeee446)?_0x25f415['createPositionAfter'](_0xeee446):_0x25f415['createPositionAt'](_0xeee446,'end'))),_0x10588f=null),_0x110d3b++;}return _0x279a14;}function nn(_0x4c6f3d,_0xfb168b,_0x301495){if(!_0x301495)return!0x1;const _0x5e0e6c=_0x4c6f3d['createPositionAfter'](_0xfb168b),_0x412399=_0x4c6f3d['createPositionBefore'](_0x301495);return _0x5e0e6c['isTouching'](_0x412399);}function rs(_0x1f20f9,_0x45e170,_0x5328a8){for(;_0x5328a8['length'];){const _0x39d5e5=_0x5328a8['splice'](0x0,0x64);_0x1f20f9['change'](()=>{for(const _0x676107 of _0x39d5e5)_0x676107['isInContent']&&_0x45e170['execute'](_0x676107['id']);});}}class x extends _0x5e7115{['_command'];['_suggestions'];constructor(_0x4c394f,_0x53c63f,_0x1869a2){super(_0x4c394f),this['_command']=_0x53c63f,this['_suggestions']=_0x1869a2,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x23dd11=Array['from'](this['_suggestions']['values']())['some'](_0x40ef94=>_0x40ef94['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x23dd11;}['execute'](){const _0x692725=ts(Array['from'](this['_suggestions']['values']()));for(const _0x2a269f of _0x692725){const _0x38307f=_0x2a269f['getRanges']();if(!this['editor']['model']['canEditAt'](_0x38307f))return;}rs(this['editor']['model'],this['_command'],_0x692725);}}class E extends _0x5e7115{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x56f2a1,_0x42e4a1,_0x588ca2){super(_0x56f2a1),this['_command']=_0x42e4a1,this['_suggestions']=_0x588ca2,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5637dc=this['editor']['model']['document']['selection'],_0x23df3f=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x3da9f6,_0x2ca346){const _0x1e3edd=Array['from'](_0x3da9f6['getRanges']()),_0xaaeae7=new Set();for(const _0x344ea9 of _0x2ca346)if(_0x344ea9['isInContent']){for(const _0xcd694f of _0x1e3edd)for(const _0x453f41 of _0x344ea9['getRanges']())(_0xcd694f['isIntersecting'](_0x453f41)||_0x3da9f6['isCollapsed']&&!_0x344ea9['isMultiRange']&&_0x344ea9['next']&&_0x453f41['end']['isTouching'](_0xcd694f['start']))&&_0xaaeae7['add'](_0x344ea9);}return _0xaaeae7;}(_0x5637dc,_0x23df3f),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x232726=ts(Array['from'](this['_selectedSuggestions']));for(const _0x85d42d of _0x232726){const _0xb05ff9=_0x85d42d['getRanges']();if(!this['editor']['model']['canEditAt'](_0xb05ff9))return;}rs(this['editor']['model'],this['_command'],_0x232726);}}class R extends/* #__PURE__ -- @preserve */
24
+ _0x50d6bd(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x24e8e4,_0x200d1c){super(),this['id']=_0x200d1c['id'],this['type']=_0x200d1c['type'],this['subType']=_0x200d1c['subType']||null,this['author']=_0x200d1c['author'],this['creator']=_0x200d1c['creator']||_0x200d1c['author'],this['isExternal']=Boolean(_0x200d1c['attributes']&&_0x200d1c['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x200d1c['originalSuggestionId']||null,this['_model']=_0x24e8e4,this['_onAccept']=_0x200d1c['onAccept'],this['_onDiscard']=_0x200d1c['onDiscard'],this['_onAttributesChange']=_0x200d1c['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x200d1c['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 _0xe49cce=this;for(;_0xe49cce['previous'];)_0xe49cce=_0xe49cce['previous'];return _0xe49cce;}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'](_0xa669d1){this['_markerNames']['add'](_0xa669d1);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x85c02=>this['_model']['markers']['get'](_0x85c02))['filter'](_0x361f04=>_0x361f04);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x914aa5=>{for(const _0x324964 of this['getMarkers']())_0x914aa5['removeMarker'](_0x324964);}),this['_markerNames']['clear']();}['removeMarker'](_0x8f209c){this['_model']['change'](_0x588f2b=>{_0x588f2b['removeMarker'](_0x8f209c);}),this['_markerNames']['delete'](_0x8f209c);}['addRange'](_0x21c478){const _0x23df01='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+R['getMultiRangeId']();this['addMarkerName'](_0x23df01),this['_model']['change'](_0x5af1a7=>{_0x5af1a7['addMarker'](_0x23df01,{'range':_0x21c478,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x4a9ea3){for(const _0x1b8d9d of this['getRanges']())if(_0x1b8d9d['isIntersecting'](_0x4a9ea3))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x1dbd00=>_0x1dbd00['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x31227b,_0x3f2e76)=>[..._0x31227b,..._0x3f2e76['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0xb050ab=this['getRanges']();if(0x1!=_0xb050ab['length'])return null;const _0x316385=_0xb050ab[0x0],_0x457f89=_0x316385['start']['nodeAfter'],_0x158215=_0x316385['end']['nodeBefore'];return _0x457f89 instanceof _0x25f55e?_0x457f89!=_0x158215?null:_0x457f89: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 _0x6482ae=[];let _0x311239=this['head'];for(;_0x311239;)_0x6482ae['push'](_0x311239),_0x311239=_0x311239['next'];return _0x6482ae;}['setAttribute'](_0x1dbfb7,_0x2f7cd2){const _0x1b7e00=_0x5cc387(this['attributes']);_0x5bbf33(_0x1b7e00,_0x1dbfb7,_0x2f7cd2),_0x51e25d(_0x1b7e00,this['attributes'])||(this['attributes']=_0x1b7e00,this['_onAttributesChange'](_0x1b7e00));}['removeAttribute'](_0x4b7506){const _0x1392e2=_0x5cc387(this['attributes']);_0x3ad97c(_0x1392e2,_0x4b7506),_0x51e25d(_0x1392e2,this['attributes'])||(this['attributes']=_0x1392e2,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 _0xf4a34a()['substr'](0x1,0x5);}}function o(_0x318f93,_0x3c117f,_0x4b2210){const _0x9e6427=_0x318f93['t'],t=_0x318f93['t'];switch(_0x3c117f){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',_0x4b2210);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x4b2210);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x4b2210);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x4b2210);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x4b2210);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',_0x4b2210);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x4b2210);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',_0x4b2210);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x4b2210);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x4b2210);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x4b2210);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x4b2210);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x4b2210);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x4b2210);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x4b2210);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x4b2210);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x4b2210);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x4b2210);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x4b2210);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x4b2210);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x4b2210);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x4b2210);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x4b2210);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x4b2210);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x4b2210);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'},_0x4b2210);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x4b2210);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x4b2210);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x4b2210);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x4b2210);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x4b2210);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x4b2210);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x4b2210);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'},_0x4b2210);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x4b2210);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x4b2210);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x4b2210);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x4b2210);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'},_0x4b2210);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x4b2210);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'},_0x4b2210);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'},_0x4b2210);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x4b2210);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'},_0x4b2210);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x4b2210);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'},_0x4b2210);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x4b2210);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x4b2210);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'},_0x4b2210);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x4b2210);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 _0x9e6427({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x4b2210);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x9e6427({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x4b2210);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x4b2210);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'},_0x4b2210);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'},_0x4b2210);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'},_0x4b2210);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x3c117f;}}class U{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x4d594f,_0x4b5d23){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x4d594f,this['_locale']=_0x4b5d23;}['getDescriptions'](_0x5aedfb){const _0xc90cb7=[],_0x353389=new Set(),_0x1474d1=new Set();for(let _0x528eff=0x0;_0x528eff<_0x5aedfb['length'];_0x528eff++){const _0x12b884=_0x5aedfb[_0x528eff];if(!_0x12b884['isInContent'])continue;const _0x18eaa9=this['_handleCustomCallbackDescription'](_0x12b884);if(_0x18eaa9){if(null!=_0x12b884['subType']){if(_0x353389['has'](_0x12b884['subType']))continue;_0x353389['add'](_0x12b884['subType']);}_0xc90cb7['push'](_0x18eaa9);}else{if('attribute'==_0x12b884['type']){const _0x10172e=_0x12b884['data']['key'];if(_0x1474d1['has'](_0x10172e))continue;_0x1474d1['add'](_0x12b884['data']['key']),_0x10172e==m?this['_handleRenameSuggestionDescription'](_0xc90cb7,_0x12b884):this['_handleAttributeSuggestionDescription'](_0xc90cb7,_0x12b884);continue;}'insertion'!=_0x12b884['type']&&'deletion'!=_0x12b884['type']||this['_handleInsertRemoveSuggestionDescription'](_0xc90cb7,_0x12b884,_0x5aedfb[_0x528eff+0x1]);}}return this['_resolveDescriptionItems'](_0xc90cb7);}['registerDescriptionCallback'](_0x5b071c){this['_customCallbacks']['push'](_0x5b071c);}['registerElementLabel'](_0x3aa464,_0x231c32,_0x8eb9f=_0x4d4930['normal']){'function'==typeof _0x3aa464?_0x4fdd17(this['_itemLabelsCallbacks'],{'matchingCallback':_0x3aa464,'label':_0x231c32,'priority':_0x8eb9f}):this['_itemLabels']['set'](_0x3aa464,_0x231c32);}['registerAttributeLabel'](_0x1846b2,_0x5a5859){this['_attributeLabels']['set'](_0x1846b2,_0x5a5859);}['getItemLabel'](_0xb7cc95,_0x375507=0x1){let _0x158f95;for(const _0x25b274 of this['_itemLabelsCallbacks'])if(_0x25b274['matchingCallback'](_0xb7cc95)){_0x158f95=_0x25b274['label'];break;}return _0x158f95||(_0x158f95=this['_itemLabels']['get'](_0xb7cc95['name'])),_0x158f95?_0x158f95(_0x375507):0x1!==_0x375507?_0x375507+'\x20'+_0xb7cc95['name']+'s':''+_0xb7cc95['name'];}['_addDescriptionItems'](_0x161ebe,_0x550968){const _0x4e9f84=_0x550968['getFirstRange']()['getWalker'](),_0x216160='insertion'==_0x550968['type']?'add':'remove';for(const _0x3da589 of _0x4e9f84){const _0x4924c9=_0x3da589['item'],_0x238df7=_0x161ebe[_0x161ebe['length']-0x1];if(_0x4924c9['is']('$textProxy'))_0x238df7&&_0x238df7['type']['indexOf']('Container')>-0x1&&_0x161ebe['pop'](),_0x238df7&&'text'==_0x238df7['type']?_0x238df7[_0x216160]+=_0x4924c9['data']:_0x161ebe['push']({'type':'text','add':'add'==_0x216160?_0x4924c9['data']:'','remove':'remove'==_0x216160?_0x4924c9['data']:''});else{if(this['_schema']['isObject'](_0x4924c9)){const _0x4ee052=_0x4924c9;if(_0x238df7&&_0x238df7['type']['indexOf']('Container')>-0x1&&_0x161ebe['pop'](),'elementEnd'==_0x3da589['type'])continue;_0x238df7&&_0x238df7['type']==_0x216160+'Object'&&_0x238df7['element']['name']==_0x4ee052['name']?_0x238df7['quantity']++:_0x161ebe['push']({'type':_0x216160+'Object','element':_0x4ee052,'quantity':0x1}),_0x4e9f84['skip'](_0x52713a=>!('elementEnd'==_0x52713a['type']&&_0x52713a['item']==_0x4924c9));}else{if(this['_schema']['checkChild'](_0x4924c9,'$text')||_0x4924c9['is']('element','softBreak')){const _0x4f6710=_0x4924c9;if('add'==_0x216160&&'elementStart'==_0x3da589['type']||'remove'==_0x216160&&'elementEnd'==_0x3da589['type'])continue;if(_0x238df7&&-0x1==_0x238df7['type']['indexOf']('Container')){'text'==_0x238df7['type']&&(_0x238df7[_0x216160]+='\x0a');continue;}let _0x17fe89;if(_0x17fe89='add'==_0x216160?_0x4f6710['nextSibling']&&!this['_schema']['isObject'](_0x4f6710['nextSibling'])?_0x4f6710['nextSibling']:null:_0x4f6710['previousSibling']&&!this['_schema']['isObject'](_0x4f6710['previousSibling'])?_0x4f6710['previousSibling']:null,_0x4f6710['isEmpty']||_0x17fe89&&_0x17fe89['isEmpty']){const _0x1161ed=_0x17fe89&&_0x17fe89['isEmpty']?_0x17fe89:_0x4f6710;_0x238df7&&_0x238df7['type']==_0x216160+'EmptyContainer'&&_0x238df7['element']['name']==_0x1161ed['name']?_0x238df7['quantity']++:_0x161ebe['push']({'type':_0x216160+'EmptyContainer','element':_0x1161ed,'quantity':0x1});}else _0x161ebe['push']({'type':_0x216160+'Container','element':_0x4f6710});}}}}}['_resolveDescriptionItems'](_0x2fbac0){const _0x91b9ac=this['_locale'],_0x473ecf=[],_0x408831=[],_0x1c4c24=[];for(const _0x58f5bd of _0x2fbac0)switch(_0x58f5bd['type']){case'text':if(_0x58f5bd['add']=_0x58f5bd['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x58f5bd['remove']=_0x58f5bd['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x58f5bd['add']&&''!=_0x58f5bd['remove']){_0x473ecf['push']({'type':'replace','content':o(_0x91b9ac,'REPLACE_TEXT',['\x22'+_0x58f5bd['remove']+'\x22','\x22'+_0x58f5bd['add']+'\x22'])});continue;}if(null!=_0x58f5bd['add']['match'](/^ +$/)){_0x473ecf['push']({'type':'insertion','content':o(_0x91b9ac,'*Insert:*\x20%0',o(_0x91b9ac,'ELEMENT_SPACE',_0x58f5bd['add']['length']))});continue;}if(null!=_0x58f5bd['remove']['match'](/^ +$/)){_0x473ecf['push']({'type':'deletion','content':o(_0x91b9ac,'*Remove:*\x20%0',o(_0x91b9ac,'ELEMENT_SPACE',_0x58f5bd['remove']['length']))});continue;}if(''!=_0x58f5bd['add']){_0x473ecf['push']({'type':'insertion','content':o(_0x91b9ac,'*Insert:*\x20%0','\x22'+_0x58f5bd['add']+'\x22')});continue;}_0x473ecf['push']({'type':'deletion','content':o(_0x91b9ac,'*Remove:*\x20%0','\x22'+_0x58f5bd['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x473ecf['push']({'type':'insertion','content':o(_0x91b9ac,'*Insert:*\x20%0',this['getItemLabel'](_0x58f5bd['element'],_0x58f5bd['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x473ecf['push']({'type':'deletion','content':o(_0x91b9ac,'*Remove:*\x20%0',this['getItemLabel'](_0x58f5bd['element'],_0x58f5bd['quantity']))});continue;case'addContainer':_0x473ecf['push']({'type':'insertion','content':o(_0x91b9ac,'*Split:*\x20%0',this['getItemLabel'](_0x58f5bd['element'],_0x58f5bd['quantity']))});continue;case'removeContainer':_0x473ecf['push']({'type':'deletion','content':o(_0x91b9ac,'*Merge:*\x20%0',this['getItemLabel'](_0x58f5bd['element'],_0x58f5bd['quantity']))});continue;case'addFormat':_0x408831['push'](_0x58f5bd['key']);continue;case'removeFormat':_0x1c4c24['push'](_0x58f5bd['key']);continue;default:_0x473ecf['push'](_0x58f5bd);}if(_0x408831['length']){const _0x2f3c05=_0x408831['map'](_0xaa7341=>this['_attributeLabels']['has'](_0xaa7341)?this['_attributeLabels']['get'](_0xaa7341):_0xaa7341)['join'](',\x20');_0x473ecf['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x2f3c05)});}if(_0x1c4c24['length']){const _0x4aa409=_0x1c4c24['map'](_0x248508=>this['_attributeLabels']['has'](_0x248508)?this['_attributeLabels']['get'](_0x248508):_0x248508)['join'](',\x20');_0x473ecf['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x4aa409)});}return _0x473ecf;}['_handleCustomCallbackDescription'](_0x23ce79){for(const _0x2e2b9a of this['_customCallbacks']){const _0x21e2c5=_0x2e2b9a(_0x23ce79);if(_0x21e2c5&&'type'in _0x21e2c5)return _0x21e2c5;}}['_handleAttributeSuggestionDescription'](_0x4e0220,_0x122447){const _0x5014cc=_0x122447['data'],_0x1c0023=void 0x0===_0x5014cc['newValue']?'removeFormat':'addFormat';_0x4e0220['push']({'type':_0x1c0023,'key':_0x5014cc['key']});}['_handleRenameSuggestionDescription'](_0x3d5511,_0x42ba48){_0x3d5511['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x42ba48['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x29dcf3,_0x35633e,_0x49890f){if(this['_addDescriptionItems'](_0x29dcf3,_0x35633e),_0x49890f&&_0x49890f['getFirstRange']()&&!_0x35633e['getFirstRange']()['end']['isEqual'](_0x49890f['getFirstRange']()['start'])){const _0x11a4b0=_0x29dcf3[_0x29dcf3['length']-0x1],_0x15f594='insertion'==_0x35633e['type']?'add':'remove';_0x11a4b0&&'text'==_0x11a4b0['type']&&(_0x11a4b0[_0x15f594]+='\x0a');}}}class V extends _0x4be19b{['afterInit'](){const _0x334fc8=this['editor'],_0x2526e8=_0x334fc8['plugins']['get']('TrackChangesEditing');_0x334fc8['commands']['get']('showAIAssistant')&&_0x2526e8['enableCommand']('showAIAssistant');}}class F extends _0x4be19b{['afterInit'](){const _0x50413d=this['editor'],_0x5acf58=_0x50413d['plugins']['get']('TrackChangesEditing');_0x50413d['commands']['get']('toggleAi')&&_0x5acf58['enableCommand']('toggleAi');}}class G extends _0x4be19b{['afterInit'](){const _0x4706fb=this['editor'],_0x59b0ae=_0x4706fb['plugins']['get']('TrackChangesEditing');_0x4706fb['commands']['get']('aiQuickAction')&&_0x59b0ae['enableCommand']('aiQuickAction');}}class L extends _0x4be19b{['afterInit'](){const _0x1f7532=this['editor'],_0x3528bc=_0x1f7532['locale'];if(!_0x1f7532['plugins']['has']('AlignmentEditing'))return;const _0x19abd3=_0x1f7532['plugins']['get']('TrackChangesEditing');_0x19abd3['enableDefaultAttributesIntegration']('alignment'),_0x19abd3['registerBlockAttribute']('alignment'),_0x19abd3['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x3528bc,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2817f2=this['editor'],_0x43844e=_0x2817f2['locale'];_0x2817f2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x483405=>{if('formatBlock'!=_0x483405['type'])return;const {data:_0xa63cb7}=_0x483405;if(_0xa63cb7&&'alignment'==_0xa63cb7['commandName']){const _0xaf49d2=_0xa63cb7['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x43844e,'*Format:*\x20%0',function(_0xaee255){switch(_0xaee255){case'left':return o(_0x43844e,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x43844e,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x43844e,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x43844e,'FORMAT_JUSTIFY_TEXT');}}(_0xaf49d2))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class J extends _0x4be19b{['afterInit'](){const _0x45f865=this['editor'],_0x334d5f=_0x45f865['plugins']['get']('TrackChangesEditing'),_0x5ee9cf=_0x45f865['locale'];for(const _0x15b59c of ti){if(!_0x45f865['plugins']['has'](_0x15b59c))continue;const _0x3ebccb=_0x15b59c['slice'](0x0,-0x7)['toLowerCase'](),_0x5f76a0='FORMAT_'+_0x3ebccb['toUpperCase']();_0x334d5f['enableDefaultAttributesIntegration'](_0x3ebccb),_0x334d5f['registerInlineAttribute'](_0x3ebccb),_0x334d5f['descriptionFactory']['registerAttributeLabel'](_0x3ebccb,o(_0x5ee9cf,_0x5f76a0));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x597287=this['editor'],_0x333cc4=_0x597287['locale'],_0x5abff2=_0x597287['plugins']['get']('TrackChangesEditing');function _0x1cba67(_0x1d0718,_0x4f56d3){_0x5abff2['descriptionFactory']['registerDescriptionCallback'](_0x5c0ce1=>{if('formatInline'!=_0x5c0ce1['type'])return;const {data:_0x3c1ba8}=_0x5c0ce1;return _0x3c1ba8&&_0x3c1ba8['commandName']===_0x1d0718?_0x3c1ba8['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x333cc4,'*Format:*\x20%0',_0x4f56d3)}:{'type':'format','content':o(_0x333cc4,'*Remove\x20format:*\x20%0',_0x4f56d3)}:void 0x0;});}_0x1cba67('bold',o(_0x333cc4,'FORMAT_BOLD')),_0x1cba67('italic',o(_0x333cc4,'FORMAT_ITALIC')),_0x1cba67('underline',o(_0x333cc4,'FORMAT_UNDERLINE')),_0x1cba67('code',o(_0x333cc4,'FORMAT_CODE')),_0x1cba67('strikethrough',o(_0x333cc4,'FORMAT_STRIKETHROUGH')),_0x1cba67('subscript',o(_0x333cc4,'FORMAT_SUBSCRIPT')),_0x1cba67('superscript',o(_0x333cc4,'FORMAT_SUPERSCRIPT'));}}class K extends _0x4be19b{['afterInit'](){const _0x53b9df=this['editor'],_0x2894f0=_0x53b9df['locale'];if(!_0x53b9df['plugins']['has']('BlockQuoteEditing'))return;const _0x7f750c=_0x53b9df['plugins']['get']('TrackChangesEditing'),_0x7a58d5=this['editor']['commands']['get']('blockQuote');_0x7f750c['enableCommand']('blockQuote',(_0x438708,_0x1a98cd={})=>{const _0x5f3da2=this['editor']['model']['document']['selection'],_0x59d7ab=_0x1a98cd&&void 0x0!==_0x1a98cd['forceValue']?_0x1a98cd['forceValue']:!_0x7a58d5['value'];let _0x5c7177=[];if(_0x59d7ab){const _0x747054=Array['from'](_0x5f3da2['getSelectedBlocks']())['filter'](_0x74509a=>oo(_0x74509a)||function(_0x5eec3b,_0x50011c){const _0x37558e=_0x50011c['checkChild'](_0x5eec3b['parent'],'blockQuote'),_0x593961=_0x50011c['checkChild'](['$root','blockQuote'],_0x5eec3b);return _0x37558e&&_0x593961;}(_0x74509a,this['editor']['model']['schema']));_0x5c7177=to(_0x747054,_0x53b9df['model']);}else{const _0x16377e=Array['from'](_0x5f3da2['getSelectedBlocks']())['filter'](_0x59101d=>oo(_0x59101d));_0x5c7177=to(_0x16377e,_0x53b9df['model']);}_0x53b9df['model']['change'](()=>{for(const _0x39aa04 of _0x5c7177)_0x7f750c['markBlockFormat'](_0x39aa04,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x59d7ab}]});});}),_0x7f750c['descriptionFactory']['registerDescriptionCallback'](_0x39bb8d=>{const {data:_0x56f717}=_0x39bb8d;if(_0x56f717&&'blockQuote'==_0x56f717['commandName']){const _0x67c5e4=o(_0x2894f0,'ELEMENT_BLOCK_QUOTE');return _0x56f717['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2894f0,'*Set\x20format:*\x20%0',_0x67c5e4)}:{'type':'format','content':o(_0x2894f0,'*Remove\x20format:*\x20%0',_0x67c5e4)};}});}}function oo(_0x5364a7){return'blockQuote'==_0x5364a7['parent']['name'];}class q extends _0x4be19b{['afterInit'](){const _0x3e939c=this['editor'],_0x3ccecb=_0x3e939c['locale'],_0x353f87=_0x3e939c['plugins']['get']('TrackChangesEditing');_0x3e939c['plugins']['has']('BookmarkEditing')&&(_0x353f87['enableCommand']('insertBookmark'),_0x353f87['enableDefaultAttributesIntegration']('updateBookmark'),_0x353f87['registerBlockAttribute']('bookmarkId'),_0x353f87['descriptionFactory']['registerDescriptionCallback'](_0x259c6c=>{if('insertion'!=_0x259c6c['type']&&'deletion'!=_0x259c6c['type']&&'attribute'!=_0x259c6c['type'])return;const _0x13cc3e=_0x259c6c['getContainedElement']();if(null==_0x13cc3e)return;if(!_0x13cc3e['is']('element','bookmark'))return;const _0x4d8ce2=_0x13cc3e['getAttribute']('bookmarkId');if('insertion'==_0x259c6c['type'])return{'type':'insertion','content':o(_0x3ccecb,'*Insert:*\x20%0','\x22'+_0x4d8ce2+'\x22\x20'+o(_0x3ccecb,'ELEMENT_BOOKMARK'))};if('deletion'==_0x259c6c['type'])return{'type':'deletion','content':o(_0x3ccecb,'*Remove:*\x20%0','\x22'+_0x4d8ce2+'\x22\x20'+o(_0x3ccecb,'ELEMENT_BOOKMARK'))};const {data:_0x4c5119}=_0x259c6c;if(!_0x4c5119||'bookmarkId'!=_0x4c5119['key'])return;return{'type':'format','content':o(_0x3ccecb,'*Set\x20bookmark:*\x20%0','\x22'+_0x4c5119['newValue']+'\x22')};}));}}class H extends _0x4be19b{['afterInit'](){const _0x293f3f=this['editor'];_0x293f3f['plugins']['has']('CaseChange')&&(_0x293f3f['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x293f3f['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x293f3f['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class W extends _0x4be19b{['afterInit'](){const _0x570b75=this['editor'];_0x570b75['commands']['get']('ckbox')&&_0x570b75['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class z extends _0x4be19b{['afterInit'](){const _0x337df7=this['editor'];if(!_0x337df7['plugins']['has']('CodeBlock'))return;const _0x5e02d6=_0x337df7['plugins']['get']('TrackChangesEditing'),_0x4ccd9f=_0x337df7['locale'],_0x178429=_0x337df7['config']['get']('codeBlock')['languages'],_0xd69467=_0x337df7['commands']['get']('codeBlock');_0x5e02d6['enableCommand']('indentCodeBlock'),_0x5e02d6['enableCommand']('outdentCodeBlock'),_0x5e02d6['enableCommand']('codeBlock',(_0x3e6f8f,_0x964ac5={})=>{const _0x55d6ef=_0x337df7['model'],_0x407b9f=_0x337df7['model']['document']['selection'],_0x4de3c3=_0x964ac5&&void 0x0!==_0x964ac5['forceValue']?_0x964ac5['forceValue']:!_0xd69467['value'];let _0x361cbe;_0x964ac5['language']||(_0x964ac5['language']=_0x178429[0x0]['language']),_0x361cbe=_0x4de3c3?Array['from'](_0x407b9f['getSelectedBlocks']())['filter'](_0x3867e8=>co(_0x3867e8)||function(_0x690f79,_0x1e3d19){if(_0x690f79['is']('rootElement')||_0x1e3d19['isLimit'](_0x690f79))return!0x1;return _0x1e3d19['checkChild'](_0x690f79['parent'],'codeBlock');}(_0x3867e8,_0x55d6ef['schema'])):Array['from'](_0x407b9f['getSelectedBlocks']())['filter'](_0x164ba0=>co(_0x164ba0));const _0x10526d=to(_0x361cbe,_0x55d6ef);_0x55d6ef['change'](()=>{for(const _0x1bb74a of _0x10526d)_0x5e02d6['markBlockFormat'](_0x1bb74a,{'commandName':'codeBlock','commandParams':[{..._0x964ac5,'forceValue':_0x4de3c3}],'formatGroupId':'blockName'});});}),(_0x5e02d6['descriptionFactory']['registerElementLabel']('codeBlock',_0x5d4522=>o(_0x4ccd9f,'ELEMENT_CODE_BLOCK',_0x5d4522)),_0x5e02d6['descriptionFactory']['registerDescriptionCallback'](_0x1e36ad=>{if('formatBlock'!=_0x1e36ad['type'])return;const _0x1fc244=_0x4ccd9f['t'],{data:_0x49e9e3}=_0x1e36ad;if(!_0x49e9e3||'codeBlock'!=_0x49e9e3['commandName'])return;const _0x1646d1=_0x49e9e3['commandParams'][0x0]['language'],_0x4d11a3=_0x1fc244(_0x178429['find'](_0x14387b=>_0x14387b['language']===_0x1646d1)['label'])['toLowerCase']();return _0x49e9e3['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4ccd9f,'*Set\x20format:*\x20%0',o(_0x4ccd9f,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x4d11a3+')')}:{'type':'format','content':o(_0x4ccd9f,'*Remove\x20format:*\x20%0',o(_0x4ccd9f,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x5ad3d4){return'codeBlock'==_0x5ad3d4['name'];}class Q extends _0x4be19b{['afterInit'](){const _0x3a8287=this['editor'];if(!_0x3a8287['plugins']['has']('CommentsEditing'))return;_0x3a8287['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x44eb2e,_0x141a53,_0x5b5711){const _0x9765b3=[];for(const _0x3a0d34 of _0x141a53['getItems']())_0x3a0d34['hasAttribute'](_0x44eb2e)&&_0x9765b3['push'](_0x5b5711['createRangeOn'](_0x3a0d34));return _0x9765b3;}function Ve(_0x1c8207,_0x3822d5,{showActiveMarker:_0x218a8c=!0x0}={}){const _0x12fa08=_0x1c8207['plugins']['get']('TrackChangesEditing');return(_0x39fbea,_0x206dd9,_0x3a0d13)=>{if(!_0x3a0d13['consumable']['test'](_0x206dd9['markerRange'],_0x39fbea['name']))return;const _0x2bad07=_0x206dd9['markerRange']['getWalker'](),_0x10333b=_0x206dd9['markerRange']['start'],_0x23bc7c=_0x1c8207['model']['schema'];let _0x170f81=null,_0x297311=null,_0x3df870=!0x1,_0x17fbba=!0x1;for(const _0x1f3cd1 of _0x2bad07){const _0x5b2c76=_0x1f3cd1['item'];_0x3df870=_0x3df870||_0x23bc7c['isContent'](_0x5b2c76);const _0x1a8673=_0x3a0d13['mapper']['toViewElement'](_0x5b2c76);if(_0x1a8673&&_0x1a8673['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1f3cd1['type']&&(_0x23bc7c['isBlock'](_0x5b2c76)&&!_0x23bc7c['isLimit'](_0x5b2c76)&&(_0x5b2c76['nextSibling']||_0x10333b['isAtEnd']?_0x170f81&&_0x170f81['parent']==_0x5b2c76||(_0x170f81=_0x5b2c76,_0x21cce4(_0x1f3cd1['previousPosition']),_0x17fbba=!0x0):_0x297311=_0x297311||_0x1f3cd1['previousPosition']));}function _0x21cce4(_0x528b10){const {id:_0x404667,authorId:_0x24de3c}=_0x12fa08['_splitMarkerName'](_0x206dd9['markerName']),_0x48bf6e=_0x3a0d13['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3822d5,'data-suggestion':_0x404667,'data-author-id':_0x24de3c}),_0x16976b=_0x3a0d13['mapper']['toViewPosition'](_0x528b10);_0x218a8c&&_0x12fa08['activeMarkers']['includes'](_0x206dd9['markerName'])&&_0x3a0d13['writer']['addClass']('ck-suggestion-marker--active',_0x48bf6e),_0x3a0d13['writer']['insert'](_0x16976b,_0x48bf6e),_0x3a0d13['mapper']['bindElementToMarker'](_0x48bf6e,_0x206dd9['markerName']);}_0x3df870||_0x17fbba||!_0x297311||_0x21cce4(_0x297311);};}class X extends _0x4be19b{static get['requires'](){return[_0x3548ba];}['init'](){const _0x3f791e=this['editor'],_0x14bf7c=_0x3f791e['plugins']['get']('TrackChangesEditing');_0x14bf7c['enableCommand']('delete');const _0x1c4697=_0x3f791e['commands']['get']('deleteForward');_0x14bf7c['enableCommand']('deleteForward',(_0x1ba357,_0x3e1a94={})=>{const _0x2c24d2=_0x3f791e['model']['createSelection'](_0x3f791e['model']['document']['selection']);_0x2c24d2['isCollapsed']&&_0x3f791e['model']['modifySelection'](_0x2c24d2,{'direction':'forward','unit':_0x3e1a94['unit']});const _0x4e46a5=_0x2c24d2['getFirstRange'](),_0x9d8530=_0x5c6c0b['fromRange'](_0x4e46a5);let _0x2c4879;_0x1ba357(_0x3e1a94),_0x2c4879='$graveyard'==_0x9d8530['root']['rootName']?_0x3f791e['model']['createRange'](_0x4e46a5['start']):_0x3f791e['model']['createRange'](_0x9d8530['start'],_0x9d8530['end']),_0x9d8530['detach'](),_0x3f791e['model']['enqueueChange'](_0x1c4697['buffer']['batch'],_0x1937c8=>{_0x1c4697['buffer']['lock'](),_0x1937c8['setSelection'](_0x1937c8['createRange'](_0x2c4879['end'])),_0x1c4697['buffer']['unlock']();});}),_0x3f791e['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ve(_0x3f791e,'merge'),{'priority':'high'}),_0x3f791e['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x40c126,_0x5ecc0b,_0x1270cb)=>{_0x1270cb['options']['showSuggestionHighlights']&&Ve(_0x3f791e,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x40c126,_0x5ecc0b,_0x1270cb);},{'priority':'high'}),_0x3f791e['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x14fe0f,_0x4815bb,_0x47f5ee)=>{const _0x41fca2=_0x47f5ee['mapper']['markerNameToElements'](_0x4815bb['markerName']);if(_0x41fca2){for(const _0x137e84 of _0x41fca2)_0x137e84['is']('uiElement')&&(_0x47f5ee['mapper']['unbindElementFromMarkerName'](_0x137e84,_0x4815bb['markerName']),_0x47f5ee['writer']['remove'](_0x137e84));}},{'priority':'high'});}}class Y extends _0x4be19b{['afterInit'](){const _0x568dc2=this['editor'];if(!_0x568dc2['plugins']['has']('ListEditing'))return;const _0x942926=_0x568dc2['locale'],_0x28bbee=_0x568dc2['plugins']['get']('TrackChangesEditing'),_0x2d8fbb=_0x568dc2['plugins']['has']('TodoListEditing'),_0x5c960b=!!_0x568dc2['config']['get']('list.multiBlock');function _0x360617(_0xf5496d){return{'type':'format','content':''+o(_0x942926,'*Set\x20format:*\x20%0',_0xf5496d)};}function _0x1d6dd4(_0x3bb72b){return{'type':'format','content':''+o(_0x942926,'*Remove\x20format:*\x20%0',_0x3bb72b)};}_0x28bbee['enableDefaultAttributesIntegration']('numberedList'),_0x28bbee['enableDefaultAttributesIntegration']('bulletedList'),_0x28bbee['enableDefaultAttributesIntegration']('customNumberedList'),_0x28bbee['enableDefaultAttributesIntegration']('customBulletedList'),_0x28bbee['enableDefaultAttributesIntegration']('indentList'),_0x28bbee['enableDefaultAttributesIntegration']('outdentList'),_0x28bbee['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x28bbee['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x28bbee['registerBlockAttribute']('listItemId'),_0x28bbee['registerBlockAttribute']('listType'),_0x28bbee['registerBlockAttribute']('listIndent'),_0x5c960b&&(_0x28bbee['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x28bbee['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2d8fbb&&(_0x28bbee['enableDefaultAttributesIntegration']('todoList'),_0x28bbee['enableDefaultAttributesIntegration']('checkTodoList'),_0x28bbee['registerBlockAttribute']('todoListChecked'),_0x28bbee['descriptionFactory']['registerDescriptionCallback'](_0x3b3a93=>{const {data:_0x4f08aa}=_0x3b3a93;if(_0x4f08aa&&'todoListChecked'==_0x4f08aa['key'])return{'type':'format','content':_0x4f08aa['newValue']?o(_0x942926,'*Check\x20item*'):o(_0x942926,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x9a2b43=>{if(_0x9a2b43['batch']['isUndo'])return!0x1;let _0x532a9f=!0x1;const _0x4fe754=_0x28bbee['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x11b76f=>'todoListChecked'===_0x28bbee['_getAttributeKey'](_0x11b76f));for(const _0x39359a of _0x4fe754){'todo'!=_0x39359a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x28bbee['_findSuggestions'](_0x39359a['getFirstRange'](),'attribute')['find'](_0x4d4c66=>'listType'===_0x28bbee['_getAttributeKey'](_0x4d4c66['suggestion']))||(_0x9a2b43['removeMarker'](_0x39359a['getFirstMarker']()),_0x532a9f=!0x0));}return _0x532a9f;})),_0x28bbee['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x942926,'FORMAT_INDENT'));const _0x3bc8bf={'type':'format','content':''};_0x28bbee['descriptionFactory']['registerDescriptionCallback'](_0x20637e=>{const {data:_0x279b0a}=_0x20637e;if(!_0x279b0a||'listType'!=_0x279b0a['key'])return;let _0x47786d=_0x20637e['head'];for(;_0x47786d;){if(_0x47786d['data']&&(('listStyle'==_0x47786d['data']['key']||'listMarkerStyle'==_0x47786d['data']['key'])&&(_0x47786d['data']['newValue']&&'default'!=_0x47786d['data']['newValue']||'default'!=_0x47786d['data']['oldValue']&&!_0x279b0a['newValue'])||!_0x5c960b&&_0x47786d['data']['key']==m))return _0x3bc8bf;_0x47786d=_0x47786d['next'];}if(null==_0x279b0a['newValue'])switch(_0x279b0a['oldValue']){case'bulleted':return _0x1d6dd4(o(_0x942926,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1d6dd4(o(_0x942926,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1d6dd4(o(_0x942926,'ELEMENT_TODO_LIST'));}switch(_0x279b0a['newValue']){case'bulleted':return _0x360617(o(_0x942926,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x360617(o(_0x942926,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x360617(o(_0x942926,'ELEMENT_TODO_LIST'));}}),_0x28bbee['descriptionFactory']['registerDescriptionCallback'](_0x13b36c=>{const {data:_0x52959c}=_0x13b36c;if(_0x52959c&&'listIndent'==_0x52959c['key'])return null==_0x52959c['newValue']||null==_0x52959c['oldValue']&&0x0==_0x52959c['newValue']?_0x3bc8bf:void 0x0;}),_0x28bbee['descriptionFactory']['registerDescriptionCallback'](_0x56dfef=>{if('attribute'!=_0x56dfef['type'])return;const {data:_0x2b99a4}=_0x56dfef;if(!_0x2b99a4||'listItemId'!=_0x2b99a4['key'])return;const _0x325c5d=Be(_0x56dfef);return'newValue'==_0x325c5d?{'type':'format','content':o(_0x942926,'*Merge:*\x20list\x20item')}:'oldValue'==_0x325c5d?{'type':'format','content':o(_0x942926,'*Split:*\x20list\x20item')}:_0x3bc8bf;}),_0x568dc2['model']['document']['registerPostFixer'](_0x16eff1=>this['listItemIdFixer'](_0x16eff1)),_0x568dc2['model']['document']['registerPostFixer'](_0x2dcef0=>this['noTrackChangesFixer'](_0x2dcef0)),_0x568dc2['model']['document']['on']('change:data',(_0x1bf852,_0x3f24d9)=>{if(_0x3f24d9['isUndo']||!_0x3f24d9['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x2b8d9c){if(_0x2b8d9c['batch']['isUndo']||!_0x2b8d9c['batch']['isLocal'])return!0x1;let _0x4f9470=!0x1;const _0x5b5663=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5915f6=>_0x5915f6['data']&&'listItemId'==_0x5915f6['data']['key'])['filter'](_0x4103ee=>_0x4103ee['data']['newValue']&&_0x4103ee['data']['oldValue']);for(const _0x3367b2 of _0x5b5663)Be(_0x3367b2)||(_0x2b8d9c['removeMarker'](_0x3367b2['getFirstMarker']()),_0x4f9470=!0x0);return _0x4f9470;}['noTrackChangesFixer'](_0x373527){if(_0x373527['batch']['isUndo']||!_0x373527['batch']['isLocal'])return!0x1;const _0x2eacae=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x2eacae['trackChangesCommand']['value'])return!0x1;let _0x4b1517=!0x1;const _0x2fb762=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0xcc101b=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x13f4c8=>'attribute'==_0x13f4c8['type'])['filter'](_0x15ec83=>_0x2fb762['includes'](_0x15ec83['attributeKey']));if(0x0==_0xcc101b['length'])return _0x4b1517;for(const _0x3d6e15 of _0xcc101b){const _0x49968e=_0x2eacae['_findSuggestions'](_0x3d6e15['range'],'attribute')['filter'](_0x5bd2db=>!_0x5bd2db['meta']['isNextTo'])['map'](_0x35699b=>_0x35699b['suggestion'])['filter'](_0x2cb4e2=>{const _0x382ffd=_0x2eacae['_getAttributeKey'](_0x2cb4e2);return _0x2fb762['includes'](_0x382ffd);});if(_0x49968e['length']){for(const _0x5bfac0 of _0x49968e)_0x373527['removeMarker'](_0x5bfac0['getFirstMarker']());_0x4b1517=!0x0;}}return _0x4b1517;}['assureChains'](){const _0x423668=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2d2e86=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x1c5554;const _0x155949=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x6e5c09=>{if(_0x6e5c09['data']['oldRange']||!_0x6e5c09['data']['newRange'])return null;if(!_0x6e5c09['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x380834}=_0x423668['_splitMarkerName'](_0x6e5c09['name']);if(!_0x423668['hasSuggestion'](_0x380834))return null;const _0x107189=_0x423668['getSuggestion'](_0x380834);return _0x2d2e86['includes'](_0x107189['data']['key']);})['map'](_0x42e2a8=>{const {id:_0x1b1968}=_0x423668['_splitMarkerName'](_0x42e2a8['name']),_0xdf485c=_0x423668['getSuggestion'](_0x1b1968);return _0x1c5554=_0xdf485c['attributes']['groupId'],_0xdf485c['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x155949['size'])return;const _0x4ca7de=_0x423668['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x35ea17=>'attribute'==_0x35ea17['type']&&_0x35ea17['data']&&_0x2d2e86['includes'](_0x35ea17['data']['key'])&&_0x35ea17['attributes']['groupId']!=_0x1c5554)['map'](_0x2a0712=>({'listItem':_0x2a0712['getFirstRange']()['start']['nodeAfter'],'groupId':_0x2a0712['attributes']['groupId']})),_0x5c7f0f=new Set();for(const {groupId:_0x1bc47b,listItem:_0x33f128}of _0x4ca7de)_0x155949['has'](_0x33f128)&&_0x5c7f0f['add'](_0x1bc47b);for(const _0x23c6ac of _0x423668['getSuggestions']())_0x5c7f0f['has'](_0x23c6ac['attributes']['groupId'])&&_0x23c6ac['setAttribute']('groupId',_0x1c5554);}['_supportLegacySuggestions'](){const _0x3fa871=this['editor'],_0x2f13d2=_0x3fa871['locale'],_0x151081=_0x3fa871['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x151081['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x150d43,_0x3ed0de){const _0x14fd2d=[];for(let _0x489567 of _0x150d43)_0x489567['start']['nodeAfter']===_0x489567['end']['parent']&&(_0x489567=_0x3fa871['model']['createRange'](_0x3fa871['model']['createPositionAt'](_0x489567['start']['nodeAfter'],0x0))),_0x14fd2d['push'](_0x489567);_0x3fa871['model']['change'](_0xca6f06=>{const _0x440783=_0x3fa871['model']['document']['selection'],_0x4e3b7c=Array['from'](_0x440783['getRanges']())['map'](_0x386a6b=>_0x5c6c0b['fromRange'](_0x386a6b));_0xca6f06['setSelection'](_0x14fd2d),_0x3fa871['commands']['get'](_0x3ed0de['commandName'])['refresh'](),_0x3ed0de['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x3fa871['execute'](_0x3ed0de['commandName'],..._0x3ed0de['commandParams']),_0xca6f06['setSelection'](_0x4e3b7c);for(const _0x11bfd2 of _0x4e3b7c)_0x11bfd2['detach']();});}),_0x151081['descriptionFactory']['registerElementLabel'](function(_0x42b137){const _0x1cf3ff=!_0x3fa871['model']['schema']['isObject'](_0x42b137),_0x516f51=_0x42b137['previousSibling'],_0x17bc9d=_0x42b137['nextSibling'],_0x30f9fa=_0x42b137['getAttribute']('listItemId'),_0x5711b4=!_0x516f51||_0x516f51['getAttribute']('listItemId')!==_0x30f9fa,_0x59a40b=!_0x17bc9d||_0x17bc9d['getAttribute']('listItemId')!==_0x30f9fa;return _0x1cf3ff&&Boolean(_0x30f9fa)&&_0x5711b4&&_0x59a40b;},_0x11c72e=>o(_0x2f13d2,'ELEMENT_LIST_ITEM',_0x11c72e));}['_registerLegacyDescription'](){const _0x1dec16=this['editor'],_0x2ee402=_0x1dec16['locale'];function _0xa01c85(_0x56ac06){const _0x280779=_0x1dec16['commands']['get']('bulletedList')['value'],_0x39e050=_0x1dec16['commands']['get']('numberedList')['value'];return'numberedList'===_0x56ac06?_0x280779:_0x39e050;}_0x1dec16['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x2620c0){if('formatBlock'!=_0x2620c0['type'])return;const {data:_0x80b7fe}=_0x2620c0;if(!_0x80b7fe)return;let _0x5f2b0b,_0x3b7b8d,_0x4c8d7d,_0x59d58b;switch(_0x80b7fe['commandName']){case'bulletedList':_0x4c8d7d=_0x80b7fe['commandParams'][0x0]['forceValue'],_0x59d58b=_0xa01c85(_0x80b7fe['commandName']),_0x5f2b0b=_0x4c8d7d?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x59d58b&&_0x1dec16['config']['get']('list.multiBlock')||(_0x5f2b0b='*Change\x20to:*\x20%0'),_0x3b7b8d={'type':'format','content':o(_0x2ee402,_0x5f2b0b,o(_0x2ee402,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x4c8d7d=_0x80b7fe['commandParams'][0x0]['forceValue'],_0x59d58b=_0xa01c85(_0x80b7fe['commandName']),_0x5f2b0b=_0x4c8d7d?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x59d58b&&_0x1dec16['config']['get']('list.multiBlock')||(_0x5f2b0b='*Change\x20to:*\x20%0'),_0x3b7b8d={'type':'format','content':o(_0x2ee402,_0x5f2b0b,o(_0x2ee402,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x5f2b0b='*Indent:*\x20%0',_0x3b7b8d={'type':'format','content':o(_0x2ee402,_0x5f2b0b,o(_0x2ee402,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x5f2b0b=function(_0xb69bce){const _0x54eec0=_0xb69bce['getFirstRange']();let _0x123f18=_0x54eec0['start']['nodeAfter'];for(;_0x123f18&&_0x54eec0['containsItem'](_0x123f18);){if(_0x123f18['getAttribute']('listIndent')>0x0)return!0x1;_0x123f18=_0x123f18['nextSibling'];}return!0x0;}(_0x2620c0)?o(_0x2ee402,'*Format:*\x20remove\x20from\x20%0',o(_0x2ee402,function(_0x3fc57d){return'ELEMENT_'+_0x3fc57d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x2620c0))):o(_0x2ee402,'*Outdent:*\x20%0',o(_0x2ee402,'ELEMENT_LIST_ITEM')),_0x3b7b8d={'type':'format','content':_0x5f2b0b};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x80b7fe['multipleBlocks']&&(_0x5f2b0b='*Merge:*\x20%0',_0x3b7b8d={'type':'deletion','content':o(_0x2ee402,_0x5f2b0b,o(_0x2ee402,'ELEMENT_LIST_ITEM'))});}return _0x3b7b8d;});}}function Be(_0x30cd57){let _0x3a7b54=_0x30cd57['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x3a7b54;){const _0x470a3b=_0x3a7b54['getAttribute']('listItemId');if(!_0x470a3b)return!0x1;if(_0x470a3b==_0x30cd57['data']['newValue'])return'newValue';if(_0x470a3b==_0x30cd57['data']['oldValue'])return'oldValue';_0x3a7b54=_0x3a7b54['previousSibling'];}return!0x1;}class Z extends _0x4be19b{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2937a7=this['editor']['config']['get']('list.properties'),_0x297423=this['editor']['plugins']['get']('TrackChangesEditing');_0x2937a7['styles']&&(_0x297423['enableDefaultAttributesIntegration']('listStyle'),_0x297423['registerBlockAttribute']('listStyle')),_0x2937a7['reversed']&&(_0x297423['enableDefaultAttributesIntegration']('listReversed'),_0x297423['registerBlockAttribute']('listReversed')),_0x2937a7['startIndex']&&(_0x297423['enableDefaultAttributesIntegration']('listStart'),_0x297423['registerBlockAttribute']('listStart'));const _0x1d95c1={'type':'format','content':''};_0x297423['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x141c99=this['editor']['locale'];_0x297423['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x141c99,'FORMAT_LIST_REVERSED')),_0x297423['descriptionFactory']['registerDescriptionCallback'](_0x5e49fa=>{const {data:_0x47d24d}=_0x5e49fa;if(_0x47d24d&&'listReversed'==_0x47d24d['key'])return null==_0x47d24d['newValue']||0x0==_0x47d24d['newValue']&&null==_0x47d24d['oldValue']?_0x1d95c1:void 0x0;}),_0x297423['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x141c99,'FORMAT_LIST_START')),_0x297423['descriptionFactory']['registerDescriptionCallback'](_0x41a8cc=>{const {data:_0x18a14f}=_0x41a8cc;if(_0x18a14f&&'listStart'==_0x18a14f['key'])return null==_0x18a14f['newValue']||0x1==_0x18a14f['newValue']&&null==_0x18a14f['oldValue']?_0x1d95c1:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x3a57c5=>{if(_0x3a57c5['batch']['isUndo'])return!0x1;let _0x3a6fa3=!0x1;const _0x1b66a1=_0x297423['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x44e6c=>{const _0x585749=_0x297423['_getAttributeKey'](_0x44e6c);return'listStart'==_0x585749||'listReversed'==_0x585749;});for(const _0x177a89 of _0x1b66a1){const _0x1c7cec=_0x177a89['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x1c7cec||'customNumbered'==_0x1c7cec)continue;_0x297423['_findSuggestions'](_0x177a89['getFirstRange'](),'attribute')['find'](_0x521fc4=>'listType'==_0x297423['_getAttributeKey'](_0x521fc4['suggestion']))||(_0x3a57c5['removeMarker'](_0x177a89['getFirstMarker']()),_0x3a6fa3=!0x0);}return _0x3a6fa3;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x5b8ab0){const _0x36ba43=this['editor']['locale'],{data:_0x530a3c}=_0x5b8ab0,_0xf2250f={'type':'format','content':''};if(!_0x530a3c||'listStyle'!=_0x530a3c['key'])return;if(!_0x530a3c['oldValue'])return'default'==_0x530a3c['newValue']?_0xf2250f:{'type':'format','content':''+o(_0x36ba43,'*Set\x20format:*\x20%0',o(_0x36ba43,this['_getTranslationKeyForListStyle'](_0x530a3c['newValue'])))};if(!_0x530a3c['newValue']){if('default'==_0x530a3c['oldValue'])return _0xf2250f;let _0x4a7326=_0x5b8ab0['head'];for(;_0x4a7326;){if(_0x4a7326['data']&&'listType'==_0x4a7326['data']['key']&&_0x4a7326['data']['newValue'])return _0xf2250f;_0x4a7326=_0x4a7326['next'];}return{'type':'format','content':''+o(_0x36ba43,'*Remove\x20format:*\x20%0',o(_0x36ba43,this['_getTranslationKeyForListStyle'](_0x530a3c['oldValue'])))};}if('default'!=_0x530a3c['newValue'])return{'type':'format','content':''+o(_0x36ba43,'*Set\x20format:*\x20%0',o(_0x36ba43,this['_getTranslationKeyForListStyle'](_0x530a3c['newValue'])))};let _0x37ee0c=_0x5b8ab0['head'];for(;_0x37ee0c;){if(_0x37ee0c['data']&&'listType'==_0x37ee0c['data']['key']&&_0x37ee0c['data']['newValue']&&_0x37ee0c['data']['oldValue'])return _0xf2250f;_0x37ee0c=_0x37ee0c['next'];}return{'type':'format','content':o(_0x36ba43,'*Set\x20format:*\x20%0',o(_0x36ba43,'ELEMENT_'+_0x5b8ab0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0xbfe3d8=this['editor'],_0x2f8f0d=_0xbfe3d8['locale'];_0xbfe3d8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x467194=>{if('formatBlock'!=_0x467194['type'])return;const {data:_0x403072}=_0x467194;if(!_0x403072)return;let _0x52683d,_0x216549;switch(_0x403072['commandName']){case'listStyle':_0x52683d='*Change\x20to:*\x20%0',_0x216549={'type':'format','content':o(_0x2f8f0d,_0x52683d,o(_0x2f8f0d,this['_getTranslationKeyForListStyle'](_0x403072['commandParams'][0x0]['type'])))};break;case'listReversed':_0x52683d=_0x403072['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x216549={'type':'format','content':o(_0x2f8f0d,_0x52683d)};break;case'listStart':_0x52683d='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x216549={'type':'format','content':o(_0x2f8f0d,_0x52683d,_0x403072['commandParams'][0x0]['startIndex'])};}return _0x216549;});}['_getTranslationKeyForListStyle'](_0x26f7c0){return'ELEMENT_'+function(_0xdfb947){if(Re['includes'](_0xdfb947))return'bulleted';if(De['includes'](_0xdfb947))return'numbered';return null;}(_0x26f7c0)['toUpperCase']()+'_LIST_'+_0x26f7c0['toUpperCase']()['replace'](/-/g,'_');}}const Re=['disc','circle','square'],De=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class tt extends _0x4be19b{['afterInit'](){const _0x5a47d6=this['editor'];_0x5a47d6['commands']['get']('emoji')&&_0x5a47d6['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class et extends _0x4be19b{static get['requires'](){return[_0x4fba86];}['init'](){const _0x5b0b73=this['editor'],_0x53cace=_0x5b0b73['plugins']['get']('TrackChangesEditing'),_0x5d5adb=_0x5b0b73['commands']['get']('enter');_0x53cace['enableCommand']('enter',()=>{_0x5b0b73['model']['change'](_0x14beb4=>{const _0x4dcdea=_0x5b0b73['model']['document']['selection'],_0x439d99=_0x4dcdea['getFirstPosition'](),_0x44a343=_0x5c6c0b['fromRange'](_0x4dcdea['getFirstRange']());if(_0x5d5adb['enterBlock'](_0x14beb4)){const _0x2bcfa1=_0x5b0b73['model']['createPositionAt'](_0x439d99['parent']['nextSibling'],0x0),_0x3c0cdd=_0x14beb4['createRange'](_0x439d99,_0x2bcfa1);_0x53cace['markInsertion'](_0x3c0cdd);}else _0x14beb4['setSelection'](_0x14beb4['createRange'](_0x44a343['end']));_0x44a343['detach'](),_0x5d5adb['fire']('afterExecute',{'writer':_0x14beb4});});}),_0x5b0b73['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ve(_0x5b0b73,'split'),{'priority':'high'}),_0x5b0b73['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x3e7182,_0xd23d44,_0x5e19c4)=>{const _0x4146ea=_0x5e19c4['mapper']['markerNameToElements'](_0xd23d44['markerName']);if(_0x4146ea){for(const _0x25bec7 of _0x4146ea)_0x25bec7['hasClass']('ck-suggestion-marker-split')&&(_0x5e19c4['mapper']['unbindElementFromMarkerName'](_0x25bec7,_0xd23d44['markerName']),_0x5e19c4['writer']['remove'](_0x25bec7));}},{'priority':'high'}),_0x5b0b73['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1a910c,_0x49b4fe,_0x15d039)=>{_0x15d039['options']['showSuggestionHighlights']&&Ve(_0x5b0b73,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x1a910c,_0x49b4fe,_0x15d039);},{'priority':'high'});}}class it extends _0x4be19b{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x251e49=this['editor']['plugins']['get']('TrackChangesEditing');_0x251e49['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x251e49['enableCommand']('findNext'),_0x251e49['enableCommand']('findPrevious'),_0x251e49['enableCommand']('replace'),_0x251e49['enableCommand']('replaceAll');}['handleFindCommand'](_0x1156ad,_0x53dbf5,_0x2f5f01={}){const _0x266cdc=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x1156ad(_0x4da6f6=>{let _0x189c6f=('string'==typeof _0x53dbf5?_0x266cdc['findByTextCallback'](_0x53dbf5,_0x2f5f01):_0x53dbf5)(_0x4da6f6);Array['isArray'](_0x189c6f)&&(_0x189c6f={'results':_0x189c6f,'searchText':'string'==typeof _0x53dbf5?_0x53dbf5:''});const _0x5e6bea=_0x189c6f['results']['filter'](_0x23b98f=>!0x1===this['_isInDeletionRange'](_0x23b98f,_0x4da6f6['item']));return{..._0x189c6f,'results':_0x5e6bea};},_0x2f5f01);}['_isInDeletionRange'](_0x5f1d0f,_0x8bfa7c){const _0x489748=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x8bfa7c,_0x5f1d0f['start']),this['editor']['model']['createPositionAt'](_0x8bfa7c,_0x5f1d0f['end']));for(const _0x262eb2 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x489748['getIntersection'](_0x262eb2['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class nt extends _0x4be19b{['afterInit'](){const _0xcef7d1=this['editor']['locale'],_0x45a83d=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x305272,commandName:_0x5a279b}of eo)this['editor']['plugins']['has'](_0x305272)&&(_0x45a83d['enableDefaultAttributesIntegration'](_0x5a279b),_0x45a83d['registerInlineAttribute'](_0x5a279b));_0x45a83d['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0xcef7d1,'FORMAT_FONT_SIZE')),_0x45a83d['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0xcef7d1,'FORMAT_FONT_FAMILY')),_0x45a83d['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0xcef7d1,'FORMAT_FONT_COLOR')),_0x45a83d['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0xcef7d1,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5c9eb3=this['editor'],_0x382cb1=_0x5c9eb3['locale'];_0x5c9eb3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x12839e=>{const _0x4a9fa9=_0x382cb1['t'];if('formatInline'!=_0x12839e['type'])return;const {data:_0x14f37d}=_0x12839e;if(null!=_0x14f37d){if('fontSize'==_0x14f37d['commandName']){const _0x18d9fc=_0x14f37d['commandParams'][0x0]['value'];if(_0x18d9fc){const _0x2d8762=_0x4a9fa9(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x267958=>_0x267958['model']==_0x18d9fc)['title'])['toLowerCase']();return{'type':'format','content':o(_0x382cb1,'*Set\x20font\x20size:*\x20%0',_0x2d8762)};}return{'type':'format','content':o(_0x382cb1,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x14f37d['commandName']){const _0x597bf4=_0x14f37d['commandParams'][0x0]['value'];return _0x597bf4?{'type':'format','content':o(_0x382cb1,'*Set\x20font\x20family:*\x20%0',_0x597bf4)}:{'type':'format','content':o(_0x382cb1,'*Reset\x20font\x20family*')};}if('fontColor'==_0x14f37d['commandName']){const _0x5890e0=_0x14f37d['commandParams'][0x0]['value'];if(_0x5890e0){const _0x4e456c=_0x2eeb65(this['editor']['config']['get']('fontColor.colors'))['find'](_0x4837e3=>_0x4837e3['model']==_0x5890e0);let _0x37e524=_0x5890e0,_0x1fa4a4='';return _0x4e456c&&(_0x37e524=_0x4e456c['label'],_0x1fa4a4=_0x4a9fa9(_0x37e524)['toLowerCase']()),{'type':'format','content':o(_0x382cb1,'*Set\x20font\x20color:*\x20%0',_0x1fa4a4)['trim'](),'color':{'value':_0x5890e0,'title':_0x1fa4a4||_0x37e524}};}return{'type':'format','content':o(_0x382cb1,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x14f37d['commandName']){const _0x59eb3e=_0x14f37d['commandParams'][0x0]['value'];if(_0x59eb3e){const _0x5d6bd2=_0x2eeb65(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x3bd79a=>_0x3bd79a['model']==_0x59eb3e);let _0x1b1286=_0x59eb3e,_0xa0951a='';return _0x5d6bd2&&(_0x1b1286=_0x5d6bd2['label'],_0xa0951a=_0x4a9fa9(_0x1b1286)['toLowerCase']()),{'type':'format','content':o(_0x382cb1,'*Set\x20font\x20background\x20color:*\x20%0',_0xa0951a)['trim'](),'color':{'value':_0x59eb3e,'title':_0xa0951a||_0x1b1286}};}return{'type':'format','content':o(_0x382cb1,'*Reset\x20font\x20background\x20color*')};}}});}}class st extends _0x4be19b{['afterInit'](){const _0x671a2d=this['editor'],_0x5a5c64=_0x671a2d['plugins']['get']('TrackChangesEditing'),_0x5efc30=_0x671a2d['commands']['get']('copyFormat'),_0x5e41fc=_0x671a2d['commands']['get']('pasteFormat');_0x5efc30&&_0x5e41fc&&(_0x5a5c64['enableDefaultAttributesIntegration']('pasteFormat'),_0x5a5c64['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x4d74bd=this['editor'],_0x5813cd=_0x4d74bd['locale'];_0x4d74bd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a16fb=>{if('formatBlock'!=_0x1a16fb['type']&&'formatInline'!=_0x1a16fb['type'])return;const {data:_0x210913}=_0x1a16fb;if(_0x210913&&'pasteFormat'===_0x210913['commandName']){const _0x35d12e=[],_0x595b5a=_0x210913['commandParams'][0x0];for(const [_0x244f9c,_0x5a02ba]of Object['entries'](_0x595b5a))_0x35d12e['push'](ro(_0x4d74bd,_0x244f9c,_0x5a02ba));return _0x35d12e['length']?{'type':'format','content':o(_0x5813cd,'*Set\x20format\x20to:*\x20%0',_0x35d12e['join'](',\x20'))}:{'type':'format','content':o(_0x5813cd,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x1eae09,_0x281397,_0x5e46f1){const _0x4544e1=_0x1eae09['locale']['t'],_0x52672f=_0x281397['split'](/(?=[A-Z])/)['join']('\x20'),_0x3851bb=_0x4544e1(_0x52672f['charAt'](0x0)['toUpperCase']()+_0x52672f['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x5e46f1)return _0x3851bb;if('fontColor'===_0x281397||'fontBackgroundColor'===_0x281397){const _0x141b9c=_0x2eeb65(_0x1eae09['config']['get']('fontColor.colors'))['find'](_0x4e9139=>_0x4e9139['model']==_0x5e46f1);return _0x3851bb+'\x20('+(_0x141b9c?_0x4544e1(_0x141b9c['label'])['toLowerCase']():_0x5e46f1)+')';}if('fontSize'===_0x281397&&isNaN(parseFloat(_0x5e46f1))){const _0x2f19e4=_0x1eae09['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x1eae09['config']['get']('fontSize.options'))['find'](_0x4f976b=>_0x4f976b['model']==_0x5e46f1);return _0x3851bb+'\x20('+(_0x2f19e4?_0x4544e1(_0x2f19e4['title'])['toLowerCase']():_0x5e46f1)+')';}return _0x3851bb+'\x20('+_0x5e46f1+')';}class ot extends _0x4be19b{['_headingOptions'];['afterInit'](){const _0x5ae0b3=this['editor'];if(!_0x5ae0b3['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x5ae0b3['config']['get']('heading.options');const _0x599492=_0x5ae0b3['locale'],_0x3e548a=_0x5ae0b3['plugins']['get']('TrackChangesEditing');_0x3e548a['enableDefaultAttributesIntegration']('heading');for(const _0x5ac12d of this['_headingOptions'])'paragraph'!=_0x5ac12d['model']&&_0x3e548a['descriptionFactory']['registerElementLabel'](_0x5ac12d['model'],_0x39b3db=>{const _0x16b676=this['_getHeadingLevel'](_0x5ac12d['model']);return null!==_0x16b676?_0x381ee0(_0x39b3db,_0x16b676):_0x47d488(_0x39b3db,_0x5ac12d['title']);});function _0x381ee0(_0x309ee4,_0x9b12e1){return o(_0x599492,'ELEMENT_HEADING',[_0x309ee4,_0x9b12e1]);}function _0x47d488(_0x3425d9,_0x5794d7){return o(_0x599492,'ELEMENT_HEADING_CUSTOM',[_0x3425d9,_0x5794d7]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3317f3=this['editor'],_0x267538=_0x3317f3['locale'];function _0x3e3d81(_0x1e592b,_0x5b4fae){return o(_0x267538,'ELEMENT_HEADING_CUSTOM',[_0x1e592b,_0x5b4fae]);}_0x3317f3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ed25c=>{if('formatBlock'!=_0x3ed25c['type'])return;const {data:_0x181603}=_0x3ed25c;if(_0x181603&&'heading'==_0x181603['commandName']){const _0x3bb00c=_0x181603['commandParams'][0x0]['value'],_0x136fc4=this['_getHeadingLevel'](_0x3bb00c);if(null!==_0x136fc4)return{'type':'format','content':o(_0x267538,'*Change\x20to:*\x20%0',(_0x1b38e3=0x1,_0x49d83b=_0x136fc4,o(_0x267538,'ELEMENT_HEADING',[_0x1b38e3,_0x49d83b])))};const _0x58e9c6=this['_headingOptions']['find'](_0x49b795=>_0x49b795['model']===_0x3bb00c)['title'];return{'type':'format','content':o(_0x267538,'*Change\x20to:*\x20%0',_0x3e3d81(0x1,_0x58e9c6))};}var _0x1b38e3,_0x49d83b;});}['_getHeadingLevel'](_0x4dc557){const _0x3ecaf7=_0x4dc557['match'](/^heading(\d+)/);if(_0x3ecaf7)return _0x3ecaf7[0x1];const _0x34ba16=this['_headingOptions']?.['find'](_0x434f28=>_0x434f28['model']==_0x4dc557);if(_0x34ba16&&_0x34ba16['view']){const _0x1f9e29=_0x34ba16['view'],_0x4a9856=(_0x1f9e29['name']??_0x1f9e29)['match'](/^h(\d+)/);if(_0x4a9856)return _0x4a9856[0x1];}return null;}}class rt extends _0x4be19b{['afterInit'](){const _0x984796=this['editor'];if(!_0x984796['plugins']['has']('HighlightEditing'))return;const _0x2e4cce=_0x984796['plugins']['get']('TrackChangesEditing'),_0xb60064=_0x984796['locale'];_0x2e4cce['enableDefaultAttributesIntegration']('highlight'),_0x2e4cce['registerInlineAttribute']('highlight'),_0x2e4cce['descriptionFactory']['registerAttributeLabel']('highlight',o(_0xb60064,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x11ba22=this['editor'],_0x150224=_0x11ba22['locale'];_0x11ba22['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x45a175=>{if('formatInline'!=_0x45a175['type'])return;const {data:_0x4527e8}=_0x45a175;if(_0x4527e8&&'highlight'==_0x4527e8['commandName']){const _0xa20e2=_0x150224['t'],_0x36ef86=_0x4527e8['commandParams'][0x0]['value'];if(_0x36ef86){const _0x3fe9a1=_0x11ba22['config']['get']('highlight.options')['find'](_0x41ea4f=>_0x41ea4f['model']==_0x36ef86),_0x521c76=_0xa20e2(_0x3fe9a1['title'])['toLowerCase']();return{'type':'format','content':o(_0x150224,'*Set\x20highlight:*\x20%0',_0x521c76),'color':{'value':_0x3fe9a1['color'],'title':_0x3fe9a1['title']}};}return{'type':'format','content':o(_0x150224,'*Remove\x20highlight*',o(_0x150224,'FORMAT_HIGHLIGHT'))};}});}}class at extends _0x4be19b{['afterInit'](){const _0x4b3b15=this['editor'];if(!_0x4b3b15['plugins']['has']('HorizontalLineEditing'))return;_0x4b3b15['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x30ebf1=_0x4b3b15['plugins']['get']('TrackChangesEditing'),_0xf3fb0c=_0x4b3b15['locale'];_0x30ebf1['descriptionFactory']['registerElementLabel']('horizontalLine',_0x1210e3=>o(_0xf3fb0c,'ELEMENT_HORIZONTAL_LINE',_0x1210e3)),_0x4b3b15['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x5592bf,{writer:_0x1c5882,options:_0x5894f1})=>{if(!_0x5894f1['showSuggestionHighlights'])return null;const _0x3d5963=_0x1c5882['createContainerElement']('div'),_0x3e79dc=_0x1c5882['createEmptyElement']('hr');return _0x1c5882['addClass']('ck-horizontal-line',_0x3d5963),_0x1c5882['insert'](_0x1c5882['createPositionAt'](_0x3d5963,0x0),_0x3e79dc),_0x3d5963;},'converterPriority':'high'});}}class ct extends _0x4be19b{['afterInit'](){const _0x57e93b=this['editor'];if(!_0x57e93b['plugins']['has']('HtmlEmbed'))return;const _0x27e620=_0x57e93b['plugins']['get']('TrackChangesEditing'),_0x319ef0=_0x57e93b['locale'];_0x27e620['descriptionFactory']['registerElementLabel']('rawHtml',_0xc5c8c5=>o(_0x319ef0,'ELEMENT_HTML_EMBED',_0xc5c8c5)),_0x27e620['enableDefaultAttributesIntegration']('htmlEmbed'),_0x27e620['registerBlockAttribute']('value'),_0x27e620['descriptionFactory']['registerDescriptionCallback'](_0x5e39d3=>{if('attribute'!=_0x5e39d3['type'])return;const {data:_0x5b75bd}=_0x5e39d3;if(_0x5b75bd&&'value'==_0x5b75bd['key']&&_0x5e39d3['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x8e3f9c=o(_0x319ef0,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x319ef0,'*Change\x20%0\x20content*',_0x8e3f9c)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x107470=this['editor'],_0x34ccca=_0x107470['locale'];_0x107470['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5595d8=>{if('formatBlock'!=_0x5595d8['type'])return;const {data:_0x49c9bb}=_0x5595d8;if(_0x49c9bb&&'htmlEmbed'==_0x49c9bb['commandName']){const _0x3c9945=o(_0x34ccca,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x34ccca,'*Change\x20%0\x20content*',_0x3c9945)};}});}}class ut extends _0x4be19b{['afterInit'](){const _0x24ca4b=this['editor'];if(!_0x24ca4b['plugins']['has']('ImageEditing'))return;const _0x56217b=_0x24ca4b['plugins']['get']('TrackChangesEditing'),_0x4629be=_0x24ca4b['plugins']['get']('ImageUtils'),_0x147f51=_0x24ca4b['locale'];_0x56217b['enableCommand']('insertImage'),_0x56217b['descriptionFactory']['registerElementLabel']('imageBlock',_0x1b35b8=>o(_0x147f51,'ELEMENT_IMAGE',_0x1b35b8)),_0x56217b['descriptionFactory']['registerElementLabel']('imageInline',_0x253a1c=>o(_0x147f51,'ELEMENT_INLINE_IMAGE',_0x253a1c)),_0x56217b['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x147f51,'ELEMENT_CAPTION')),_0x24ca4b['plugins']['has']('ImageUploadEditing')&&_0x56217b['enableCommand']('uploadImage'),_0x24ca4b['plugins']['has']('ImageBlockEditing')&&_0x24ca4b['plugins']['has']('ImageInlineEditing')&&(_0x56217b['enableCommand']('imageTypeInline',(_0x4299ad,_0x2f8546)=>{const _0x1bbd6f=_0x4629be['getClosestSelectedImageElement'](_0x24ca4b['model']['document']['selection']);_0x24ca4b['model']['change'](()=>{_0x56217b['markBlockFormat'](_0x1bbd6f,{'commandName':'imageTypeInline','commandParams':[_0x2f8546]},[],'convertBlockImageToInline');});}),_0x56217b['enableCommand']('imageTypeBlock',(_0x45ec31,_0x2ed14b)=>{_0x24ca4b['model']['change'](_0x56c609=>{let _0x1a64c8=_0x4629be['getClosestSelectedImageElement'](_0x24ca4b['model']['document']['selection']),_0x2878ff=_0x56c609['createRangeOn'](_0x1a64c8);const _0xc0a542=_0x538ab7['fromPosition'](_0x2878ff['start'],'toPrevious'),_0x4cadb9=_0x538ab7['fromPosition'](_0x2878ff['end'],'toNext');_0x56217b['forceDefaultExecution'](()=>_0x45ec31(_0x2ed14b)),_0x1a64c8=_0x4629be['getClosestSelectedImageElement'](_0x24ca4b['model']['document']['selection']),_0x2878ff=_0x56c609['createRangeOn'](_0x1a64c8);const _0xa86ade=_0x56c609['createRange'](_0xc0a542,_0x4cadb9);_0xc0a542['detach'](),_0x4cadb9['detach'](),_0x56217b['markBlockFormat'](_0x1a64c8,{'commandName':'imageTypeInline','commandParams':[_0x2ed14b]},[],'convertInlineImageToBlock'),_0xa86ade['start']['isBefore'](_0x2878ff['start'])&&_0x56217b['markInsertion'](_0x56c609['createRange'](_0xa86ade['start'],_0x2878ff['start']),'convertInlineImageToBlock'),_0x2878ff['end']['isBefore'](_0xa86ade['end'])&&_0x56217b['markInsertion'](_0x56c609['createRange'](_0x2878ff['end'],_0xa86ade['end']),'convertInlineImageToBlock');});}),_0x56217b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x56217b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x56217b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x56217b['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x56217b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x56217b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x365d93])=>{const _0x2c5bbc=_0x56217b['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0xd453d3=_0x365d93['start'],_0x3271c0=_0x365d93['end'];const _0x44be98=_0x24ca4b['model']['schema']['getNearestSelectionRange'](_0xd453d3,'backward'),_0x5eb2e2=_0x24ca4b['model']['schema']['getNearestSelectionRange'](_0x3271c0,'forward');_0x44be98['isCollapsed']&&(_0xd453d3=_0x44be98['start']),_0x5eb2e2['isCollapsed']&&(_0x3271c0=_0x5eb2e2['end']),_0x2c5bbc([_0x24ca4b['model']['createRange'](_0xd453d3,_0x3271c0)]);}),_0x56217b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x4f32b0),_0x56217b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x4f32b0)),_0x24ca4b['plugins']['has']('ImageCaptionEditing')&&(_0x56217b['enableCommand']('toggleImageCaption',(_0x3b1753,_0x241af0)=>{const _0x50cdd9=_0x24ca4b['plugins']['get']('ImageCaptionUtils');let _0x3117e5=_0x4629be['getClosestSelectedImageElement'](_0x24ca4b['model']['document']['selection']),_0x52f432=_0x50cdd9['getCaptionFromImageModelElement'](_0x3117e5);_0x24ca4b['model']['change'](()=>{if(_0x52f432)return void _0x56217b['markDeletion'](_0x24ca4b['model']['createRangeOn'](_0x52f432));const _0x3750e1=_0x4629be['isBlockImage'](_0x3117e5);_0x3b1753(_0x241af0),_0x3117e5=_0x4629be['getClosestSelectedImageElement'](_0x24ca4b['model']['document']['selection']),_0x52f432=_0x50cdd9['getCaptionFromImageModelElement'](_0x3117e5),_0x56217b['markInsertion'](_0x24ca4b['model']['createRangeOn'](_0x52f432),_0x3750e1?null:'imageCaption');});}),_0x56217b['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x4f32b0));const _0x5c3768=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x59e576(_0x179b81,_0x40f8aa){const _0x583b36=_0x5c3768['findIndex'](({type:_0x3a2263,subType:_0x1f32a5})=>_0x179b81['type']==_0x3a2263&&_0x179b81['subType']==_0x1f32a5),_0xd3a0ac=_0x5c3768['findIndex'](({type:_0x31cb7b,subType:_0x3d6a84})=>_0x40f8aa['type']==_0x31cb7b&&_0x40f8aa['subType']==_0x3d6a84);if(_0x583b36<0x0||_0xd3a0ac<0x0)return!0x1;const _0x371d67=_0x179b81['getFirstRange'](),_0x5e41a7=_0x40f8aa['getFirstRange']();if((0x0==_0x583b36||0x1==_0x583b36)&&0x2==_0xd3a0ac&&_0x371d67['isIntersecting'](_0x5e41a7))return!0x0;if(0x2==_0x583b36&&0x3==_0xd3a0ac){const _0x4be0fb=_0x56217b['_findSuggestions'](_0x371d67,'insertion')['filter'](({suggestion:_0x75c8a,meta:_0x84475b})=>_0x84475b['isOwn']&&'convertInlineImageToBlock'==_0x75c8a['subType']);if(_0x4be0fb['length']>0x1&&_0x5e41a7['end']['isEqual'](_0x371d67['start']))return!0x0;if(0x1==_0x4be0fb['length']&&(_0x371d67['start']['isEqual'](_0x5e41a7['end'])||_0x371d67['end']['isEqual'](_0x5e41a7['start'])))return!0x0;}if(0x3==_0x583b36&&0x3==_0xd3a0ac&&_0x371d67['start']['isBefore'](_0x5e41a7['start'])){const _0x1ad519=_0x371d67['end']['nodeAfter'],_0x2c6849=_0x5e41a7['start']['nodeBefore'];return _0x4629be['isBlockImage'](_0x1ad519)&&_0x1ad519===_0x2c6849;}return!0x1;}function _0x4f32b0(_0x410a84,_0x153df8){return _0x59e576(_0x410a84,_0x153df8)?[_0x410a84,_0x153df8]:_0x59e576(_0x153df8,_0x410a84)?[_0x153df8,_0x410a84]:null;}_0x24ca4b['plugins']['has']('ImageResize')&&(_0x56217b['enableDefaultAttributesIntegration']('resizeImage'),_0x56217b['registerBlockAttribute']('resizedWidth'),_0x56217b['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x147f51,'FORMAT_IMAGE_SIZE'))),_0x24ca4b['plugins']['has']('ImageTextAlternativeEditing')&&(_0x56217b['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x56217b['registerBlockAttribute']('alt')),_0x24ca4b['plugins']['has']('PictureEditing')&&(_0x56217b['registerBlockAttribute']('sources'),_0x56217b['descriptionFactory']['registerDescriptionCallback'](_0x41a0fe=>{if('attribute'!=_0x41a0fe['type'])return;const {data:_0x162794}=_0x41a0fe;return _0x162794&&'sources'==_0x162794['key']?{'type':'format','content':''}:void 0x0;})),_0x24ca4b['plugins']['has']('ImageSizeAttributes')&&(_0x56217b['registerBlockAttribute']('width'),_0x56217b['registerBlockAttribute']('height'),_0x56217b['descriptionFactory']['registerDescriptionCallback'](_0x9340e7=>{if('attribute'!=_0x9340e7['type'])return;const {data:_0x97e3f5}=_0x9340e7;return!_0x97e3f5||'width'!=_0x97e3f5['key']&&'height'!=_0x97e3f5['key']?void 0x0:{'type':'format','content':''};})),_0x56217b['descriptionFactory']['registerDescriptionCallback'](_0x19a413=>{if(!!_0x5c3768['find'](({type:_0x590ff0,subType:_0x54a9b5})=>_0x19a413['type']==_0x590ff0&&_0x19a413['subType']==_0x54a9b5))return _0x19a413['previous']?{}:void 0x0;}),_0x56217b['descriptionFactory']['registerDescriptionCallback'](_0x4dbe41=>{if('insertion'==_0x4dbe41['type']||'deletion'==_0x4dbe41['type']){const _0x558500=_0x4dbe41['getContainedElement']();if(_0x558500&&_0x558500['is']('element','caption'))return{'type':'insertion'==_0x4dbe41['type']?'addObject':'removeObject','element':_0x558500,'quantity':0x1};}}),_0x56217b['descriptionFactory']['registerDescriptionCallback'](_0x2a6e89=>'formatBlock'==_0x2a6e89['type']&&'convertInlineImageToBlock'==_0x2a6e89['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x2a6e89['type']&&'convertBlockImageToInline'==_0x2a6e89['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x56217b['descriptionFactory']['registerDescriptionCallback'](_0x1801b6=>{if('attribute'!=_0x1801b6['type'])return;const {data:_0x5b5735}=_0x1801b6;if(!_0x5b5735||'alt'!=_0x5b5735['key'])return;const _0x5e3322=_0x5b5735['newValue'];return _0x5e3322?{'type':'format','content':o(_0x147f51,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5e3322+'\x22')}:{'type':'format','content':o(_0x147f51,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x48c980=this['editor'],_0x463468=_0x48c980['locale'];_0x48c980['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3f2bbc=>{if('formatBlock'!=_0x3f2bbc['type']&&'formatInline'!=_0x3f2bbc['type'])return;const {data:_0x3b837e}=_0x3f2bbc;if(_0x3b837e){if('imageTextAlternative'==_0x3b837e['commandName']){const _0x11c87a=_0x3b837e['commandParams'][0x0]['newValue'];return _0x11c87a?{'type':'format','content':o(_0x463468,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x11c87a+'\x22')}:{'type':'format','content':o(_0x463468,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x3b837e['commandName']){const _0x41737d=_0x3b837e['commandParams'][0x0]['width'];return _0x41737d?{'type':'format','content':o(_0x463468,'*Set\x20image\x20width:*\x20%0',_0x41737d)}:{'type':'format','content':o(_0x463468,'*Reset\x20image\x20width*')};}}});}}class ft extends _0x4be19b{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x2a3ab8=this['editor']['locale'],_0x2c26fe=this['editor']['plugins']['get']('TrackChangesEditing');_0x2c26fe['enableDefaultAttributesIntegration']('replaceImageSource'),_0x2c26fe['registerBlockAttribute']('src'),_0x2c26fe['descriptionFactory']['registerDescriptionCallback'](_0x4dc20a=>{if('attribute'!=_0x4dc20a['type'])return;const {data:_0x558625}=_0x4dc20a;return _0x558625&&'src'==_0x558625['key']?_0x558625['newValue']&&_0x558625['oldValue']?{'type':'format','content':o(_0x2a3ab8,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x158c90=this['editor']['plugins']['get']('TrackChangesEditing');_0x158c90['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x158c90['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x158c90['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x158c90['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x24c4fe=this['editor'],_0xf6cbd2=_0x24c4fe['locale'];_0x24c4fe['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x127ee5=>{if('formatBlock'!=_0x127ee5['type']&&'formatInline'!=_0x127ee5['type'])return;const {data:_0x3adf0a}=_0x127ee5;if(!_0x3adf0a||'replaceImageSource'!=_0x3adf0a['commandName'])return;return{'type':'format','content':o(_0xf6cbd2,'*Format:*\x20replace\x20image\x20URL')};});}}class ht extends _0x4be19b{['afterInit'](){const _0x5ca2c5=this['editor'];if(!_0x5ca2c5['plugins']['has']('ImageStyleEditing'))return;const _0x3988f9=_0x5ca2c5['plugins']['get']('TrackChangesEditing'),_0x103390=_0x5ca2c5['plugins']['get']('ImageUtils'),_0x3e8dc5={};_0x3988f9['enableCommand']('imageStyle',(_0xdfda13,_0x834df3)=>{const _0x2f17ff=_0x5ca2c5['plugins']['get']('Users')['me'],_0x3fce3f=_0x5ca2c5['commands']['get']('imageStyle');let _0xf1f29a=_0x103390['getClosestSelectedImageElement'](_0x5ca2c5['model']['document']['selection']),_0x507302=_0x5ca2c5['model']['createRangeOn'](_0xf1f29a),_0xbaa122=_0x3fce3f['value'];if(_0xbaa122==_0x834df3['value'])return;const _0x30ff17={'commandName':'imageStyle','commandParams':[_0x834df3],'formatGroupId':_0xf4a34a()};_0x5ca2c5['model']['change'](()=>{if(_0x3988f9['getSuggestions']()['filter'](_0x89186f=>_0x89186f['isInContent']&&_0x2f17ff==_0x89186f['author']&&('formatBlock'==_0x89186f['type']||'formatInline'==_0x89186f['type'])&&('imageStylePreApply'==_0x89186f['subType']||'imageStylePostApply'==_0x89186f['subType'])&&_0x89186f['getFirstRange']()['isEqual'](_0x507302))['forEach'](_0x29748f=>_0x3988f9['discardSuggestion'](_0x29748f['head'])),_0xf1f29a=_0x103390['getClosestSelectedImageElement'](_0x5ca2c5['model']['document']['selection']),_0x507302=_0x5ca2c5['model']['createRangeOn'](_0xf1f29a),_0x3fce3f['refresh'](),_0x5ca2c5['commands']['get']('imageTypeInline')['refresh'](),_0x5ca2c5['commands']['get']('imageTypeBlock')['refresh'](),_0xbaa122=_0x3fce3f['value'],_0xbaa122!=_0x834df3['value'])return _0x103390['isInlineImage'](_0xf1f29a)&&_0x3fce3f['shouldConvertImageType'](_0x834df3['value'],_0xf1f29a)?(_0xdfda13({..._0x834df3,'setImageSizes':!0x1}),_0xf1f29a=_0x103390['getClosestSelectedImageElement'](_0x5ca2c5['model']['document']['selection']),void _0x3988f9['markBlockFormat'](_0xf1f29a,{..._0x30ff17,'commandReversedParams':[{'value':_0xbaa122||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x103390['isBlockImage'](_0xf1f29a)?_0x3988f9['markBlockFormat'](_0xf1f29a,_0x30ff17,[],'imageStylePostApply'):_0x3988f9['markInlineFormat'](_0x507302,_0x30ff17,'imageStylePostApply'));});});for(const _0x9394c7 of _0x5ca2c5['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x3e8dc5[_0x9394c7['name']]=_0x9394c7['title']['toLowerCase']();_0x3988f9['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x3988f9['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x3988f9['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x3988f9['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x28607b])=>{_0x103390['setImageNaturalSizeAttributes'](_0x28607b['getContainedElement']());}),_0x3988f9['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x258433,_0x203c5a)=>{_0x3988f9['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x258433,{'commandName':_0x203c5a['commandName'],'commandParams':_0x203c5a['commandReversedParams']});}),_0x3988f9['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x3ef23a,_0x38952c){if(_0x39c80c(_0x3ef23a,_0x38952c))return[_0x3ef23a,_0x38952c];if(_0x39c80c(_0x38952c,_0x3ef23a))return[_0x38952c,_0x3ef23a];return null;});const _0x186191=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x39c80c(_0x404738,_0x208922){const _0x318ace=_0x186191['findIndex'](({type:_0x47ed6c,subType:_0x214d49})=>_0x404738['type']==_0x47ed6c&&_0x404738['subType']==_0x214d49),_0x1d5e56=_0x186191['findIndex'](({type:_0x15ca6f,subType:_0x17e14d})=>_0x208922['type']==_0x15ca6f&&_0x208922['subType']==_0x17e14d);if(_0x318ace<0x0||_0x1d5e56<0x0)return!0x1;const _0x46845b=_0x404738['getFirstRange'](),_0x324072=_0x208922['getFirstRange']();if((0x0==_0x318ace||0x1==_0x318ace)&&0x2==_0x1d5e56&&_0x46845b['isIntersecting'](_0x324072))return!0x0;if(0x2==_0x318ace&&0x3==_0x1d5e56){const _0x91b159=_0x3988f9['_findSuggestions'](_0x46845b,'insertion')['filter'](({suggestion:_0x2622ee,meta:_0x6b46bb})=>_0x6b46bb['isOwn']&&'convertInlineImageToBlock'==_0x2622ee['subType']);if(_0x91b159['length']>0x1&&_0x324072['end']['isEqual'](_0x46845b['start']))return!0x0;if(0x1==_0x91b159['length']&&(_0x46845b['start']['isEqual'](_0x324072['end'])||_0x46845b['end']['isEqual'](_0x324072['start'])))return!0x0;}if(0x3==_0x318ace&&0x3==_0x1d5e56&&_0x46845b['start']['isBefore'](_0x324072['start'])){const _0x55d204=_0x46845b['end']['nodeAfter'],_0x425dbd=_0x324072['start']['nodeBefore'];return _0x103390['isBlockImage'](_0x55d204)&&_0x55d204===_0x425dbd;}return!0x1;}_0x5ca2c5['model']['document']['registerPostFixer'](()=>{let _0x355e2e=!0x1;const _0x5d4c07=Array['from'](_0x5ca2c5['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1d62a7,data:_0x25db84}of _0x5d4c07){const {group:_0x430c11,type:_0x4ae8b1,subType:_0x3e759d,id:_0x4e53f0}=_0x3988f9['_splitMarkerName'](_0x1d62a7);if('suggestion'==_0x430c11&&_0x3988f9['hasSuggestion'](_0x4e53f0)){if('formatBlock'==_0x4ae8b1&&('imageStylePreApply'==_0x3e759d||'imageStylePostApply'==_0x3e759d)){const _0x2a8153=_0x3988f9['getSuggestion'](_0x4e53f0);if(_0x25db84['newRange']){const _0x178b74=_0x2a8153['getFirstRange']()['getContainedElement']();if(_0x103390['isBlockImage'](_0x178b74))continue;_0x3988f9['discardSuggestion'](_0x2a8153),_0x355e2e=!0x0;}}if('insertion'==_0x4ae8b1&&'imageCaption'==_0x3e759d&&!_0x25db84['newRange']){const _0x3f7a7d=_0x3988f9['getSuggestion'](_0x4e53f0);_0x3f7a7d['next']&&_0x3f7a7d['next']['isInContent']&&(_0x3988f9['discardSuggestion'](_0x3f7a7d['next']),_0x355e2e=!0x0);}}}return _0x355e2e;}),this['_registerLegacyDescription'](_0x3e8dc5);}['_registerLegacyDescription'](_0x522210){const _0x1c1181=this['editor'],_0x4f3231=_0x1c1181['locale'];_0x1c1181['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x497cf0=>{if('formatBlock'!=_0x497cf0['type']&&'formatInline'!=_0x497cf0['type'])return;const {data:_0x352ba1}=_0x497cf0;if(!_0x352ba1||'imageStyle'!=_0x352ba1['commandName'])return;const _0x28e2da=_0x352ba1['commandParams'][0x0]['value'];return _0x57041a('side'===_0x28e2da?o(_0x4f3231,'FORMAT_SIDE_IMAGE'):_0x522210[_0x28e2da]||_0x28e2da);function _0x57041a(_0x373cac){return{'type':'format','content':o(_0x4f3231,'*Format:*\x20%0',_0x373cac)};}});}}class gt extends _0x4be19b{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x346c1b){super(_0x346c1b),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x37e8e8=this['editor'],_0x410bfb=_0x37e8e8['commands']['get']('importWord'),_0x1ed8eb=_0x37e8e8['commands']['get']('trackChanges');_0x410bfb&&(_0x410bfb['on']('execute',(_0xa73efe,[,_0x354d3b])=>{this['_trackChangesValueDuringImport']=_0x1ed8eb['value'],_0x354d3b['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x410bfb,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x410bfb,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x1ed8eb['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x37e8e8['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x59a8f0,_0x3cfd8b){const {suggestions:_0x291aff}=_0x3cfd8b,_0x2d98ea=this['editor']['commands']['get']('trackChanges'),_0x4ac3dd=_0x2d98ea['value'];this['_trackChangesValueDuringImport']!==_0x4ac3dd&&(_0x2d98ea['execute'](),this['_trackChangesExecuted']=!0x0),_0x291aff&&_0x291aff['forEach'](({id:_0x94d28e,type:_0x51a154,author:_0x5a3d8b,created_at:_0xef9e71})=>{const _0x126c8b={'id':_0x94d28e,'type':_0x51a154,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x5a3d8b,'createdAt':_0xef9e71?new Date(_0xef9e71):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x126c8b);});}}class lt extends _0x4be19b{['afterInit'](){const _0xc773b0=this['editor'],_0x2007a0=_0xc773b0['plugins']['get']('TrackChangesEditing');if(_0xc773b0['plugins']['has']('IndentEditing')&&(_0x2007a0['enableCommand']('indent'),_0x2007a0['enableCommand']('outdent')),_0xc773b0['plugins']['has']('IndentBlock')){for(const _0x16f540 of['indentBlock','outdentBlock'])_0x2007a0['enableDefaultAttributesIntegration'](_0x16f540);}const _0x31d6e6=_0xc773b0['locale'];_0x2007a0['registerBlockAttribute']('blockIndent'),_0x2007a0['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x31d6e6,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2bf9d3=this['editor'],_0x2551e4=_0x2bf9d3['locale'],_0x48f49d=_0x2bf9d3['plugins']['get']('TrackChangesEditing');_0x48f49d['descriptionFactory']['registerDescriptionCallback'](_0x8b1d4e=>{if('formatBlock'!=_0x8b1d4e['type'])return;const {data:_0x364ef0}=_0x8b1d4e;if(!_0x364ef0)return;if('indentBlock'!=_0x364ef0['commandName']&&'outdentBlock'!=_0x364ef0['commandName'])return;const _0x79d6ae=_0x8b1d4e['getItems']()[0x0],_0x5b00ea=_0x48f49d['descriptionFactory']['getItemLabel'](_0x79d6ae);return'indentBlock'==_0x364ef0['commandName']?{'type':'format','content':o(_0x2551e4,'*Indent:*\x20%0',_0x5b00ea)}:'outdentBlock'==_0x364ef0['commandName']?{'type':'format','content':o(_0x2551e4,'*Outdent:*\x20%0',_0x5b00ea)}:void 0x0;});}}class dt extends _0x4be19b{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class mt extends _0x4be19b{['afterInit'](){const _0x14bbac=this['editor'];if(!_0x14bbac['plugins']['has']('LinkEditing'))return;const _0x1ca876=_0x14bbac['plugins']['get']('TrackChangesEditing'),_0x4ed688=_0x14bbac['commands']['get']('link');_0x1ca876['enableDefaultAttributesIntegration']('link'),_0x1ca876['enableDefaultAttributesIntegration']('unlink'),_0x1ca876['registerInlineAttribute']('linkHref');for(const _0x200739 of _0x4ed688['manualDecorators'])_0x1ca876['registerInlineAttribute'](_0x200739['id']),_0x1ca876['descriptionFactory']['registerAttributeLabel'](_0x200739['id'],'link\x20('+_0x200739['label']['toLowerCase']()+')');_0x1ca876['descriptionFactory']['registerDescriptionCallback'](_0x32b3f1=>{if('attribute'!=_0x32b3f1['type'])return;const {data:_0x56bd04}=_0x32b3f1;if(!_0x56bd04||'linkHref'!=_0x56bd04['key'])return;const _0x1d0bfb=_0x56bd04['newValue'],_0x30c691=_0x14bbac['locale'];return{'type':'format','content':null==_0x1d0bfb?o(_0x30c691,'*Remove\x20link*'):o(_0x30c691,'*Set\x20link:*\x20%0','\x22'+_0x1d0bfb+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x103751=this['editor'],_0x4dd21d=_0x103751['locale'];_0x103751['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x131b13=>{if('formatInline'!=_0x131b13['type'])return;const {data:_0x201645}=_0x131b13;if(_0x201645){if('link'==_0x201645['commandName']){const _0x22629c=_0x201645['commandParams'][0x0];return{'type':'format','content':o(_0x4dd21d,'*Set\x20link:*\x20%0','\x22'+_0x22629c+'\x22')};}return'unlink'==_0x201645['commandName']?{'type':'format','content':o(_0x4dd21d,'*Remove\x20link*')}:void 0x0;}});}}class pt extends _0x4be19b{['afterInit'](){const _0x87f7f1=this['editor'],_0x591286=_0x87f7f1['locale'];if(!_0x87f7f1['plugins']['has']('LegacyListEditing'))return;const _0x4f2947=_0x87f7f1['plugins']['get']('TrackChangesEditing'),_0x69da89=_0x87f7f1['plugins']['has']('LegacyTodoListEditing');function _0x437cdf(_0x4c00ec){return()=>{const _0x22eb1f=_0x87f7f1['model']['document']['selection'],_0x654f4a=_0x87f7f1['commands']['get'](_0x4c00ec);if(_0x654f4a['value'])return void _0x87f7f1['execute']('paragraph',{});const _0x21812e=_0x4c00ec['slice'](0x0,-0x4),_0x54f414=function(_0xe50f42,_0xd92772,_0x84730f){let _0x513546=Array['from'](_0xe50f42)['filter'](_0x2bcc0b=>function(_0x419acd,_0x38674){return _0x38674['checkChild'](_0x419acd['parent'],'listItem')&&!_0x38674['isObject'](_0x419acd);}(_0x2bcc0b,_0x84730f));_0x513546=_0x513546['filter'](_0x4d6001=>!_0x4d6001['is']('element','listItem')||_0x4d6001['getAttribute']('listType')!=_0xd92772);const _0x291873=new Set();for(const _0x2b9b03 of _0x513546)_0x2b9b03['is']('element','listItem')?_0x291873['add'](Ne(_0x2b9b03)):_0x291873['add'](_0x2b9b03);return Array['from'](_0x291873);}(_0x22eb1f['getSelectedBlocks'](),_0x21812e,_0x87f7f1['model']['schema']);_0x87f7f1['model']['change'](()=>{for(const _0x3cff05 of _0x54f414)_0x4f2947['markBlockFormat'](_0x3cff05,{'commandName':_0x4c00ec,'commandParams':[{'forceValue':!_0x654f4a['value']}],'formatGroupId':'blockName'},Se(_0x3cff05));});};}function _0xc023e2(_0x158f76){return()=>{const _0xd27be1=function(_0x26a047){let _0x50d078=Array['from'](_0x26a047);const _0x3855b9=_0x50d078['findIndex'](_0x278c39=>'listItem'!=_0x278c39['name']);return _0x3855b9>-0x1&&(_0x50d078=_0x50d078['slice'](0x0,_0x3855b9)),_0x50d078;}(_0x87f7f1['model']['document']['selection']['getSelectedBlocks']()),_0x22de89=_0x87f7f1['model']['createRange'](_0x87f7f1['model']['createPositionAt'](_0xd27be1[0x0],'before'),_0x87f7f1['model']['createPositionAt'](_0xd27be1[_0xd27be1['length']-0x1],'end'));_0x87f7f1['model']['change'](()=>{_0x4f2947['markBlockFormat'](_0x22de89,{'commandName':_0x158f76,'commandParams':[],'formatGroupId':'listIndent'},function(_0x5370f4){const _0xccc5bc=new Set();for(const _0x400aeb of _0x5370f4){let _0x59dfd6=_0x400aeb['nextSibling'];for(;_0x59dfd6&&_0x59dfd6['getAttribute']('listIndent')>_0x400aeb['getAttribute']('listIndent');)_0xccc5bc['add'](_0x59dfd6),_0x59dfd6=_0x59dfd6['nextSibling'];}return Array['from'](_0xccc5bc);}(_0xd27be1));});};}_0x4f2947['enableCommand']('numberedList',_0x437cdf('numberedList')),_0x4f2947['enableCommand']('bulletedList',_0x437cdf('bulletedList')),_0x69da89&&_0x4f2947['enableCommand']('todoList',_0x437cdf('todoList')),_0x4f2947['enableCommand']('indentList',_0xc023e2('indentList')),_0x4f2947['enableCommand']('outdentList',_0xc023e2('outdentList')),_0x69da89&&_0x4f2947['enableCommand']('checkTodoList',()=>{const _0x1231fb=_0x87f7f1['commands']['get']('checkTodoList'),_0x20504f=Array['from'](_0x1231fb['_selectedElements']);_0x20504f['filter'](_0x3bafb5=>_0x3bafb5['getAttribute']('todoListChecked')!=_0x1231fb['value']),_0x87f7f1['model']['change'](()=>{for(const _0x533dbf of _0x20504f)_0x4f2947['markBlockFormat'](_0x533dbf,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x1231fb['value']}]});});}),_0x4f2947['descriptionFactory']['registerElementLabel']('listItem',_0x332d47=>o(_0x591286,'ELEMENT_LIST_ITEM',_0x332d47)),_0x4f2947['descriptionFactory']['registerDescriptionCallback'](_0x23c518=>{if('formatBlock'!=_0x23c518['type']&&'formatInline'!=_0x23c518['type'])return;const {data:_0x50fd2c}=_0x23c518;if(_0x50fd2c){if('numberedList'==_0x50fd2c['commandName']||'bulletedList'==_0x50fd2c['commandName']||'todoList'==_0x50fd2c['commandName'])switch(_0x50fd2c['commandName']['replace']('List','')){case'bulleted':return _0x2c7749(o(_0x591286,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2c7749(o(_0x591286,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2c7749(o(_0x591286,'ELEMENT_TODO_LIST'));}if('indentList'==_0x50fd2c['commandName'])return{'type':'format','content':o(_0x591286,'*Indent:*\x20%0',o(_0x591286,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x50fd2c['commandName'])return{'type':'format','content':o(_0x591286,'*Outdent:*\x20%0',o(_0x591286,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x50fd2c['commandName'])return _0x50fd2c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x591286,'*Check\x20item*')}:{'type':'format','content':o(_0x591286,'*Uncheck\x20item*')};}function _0x2c7749(_0x3aef79){return{'type':'format','content':o(_0x591286,'*Change\x20to:*\x20%0',_0x3aef79)};}});}}function Ne(_0x49431c){const _0x560d12=_0x49431c['getAttribute']('listIndent');if(0x0==_0x560d12)return _0x49431c;let _0x4f367b=_0x49431c;for(;_0x49431c['previousSibling']&&_0x49431c['previousSibling']['is']('element','listItem');){const _0x1762fc=_0x49431c['previousSibling']['getAttribute']('listIndent');if(_0x1762fc==_0x560d12)_0x4f367b=_0x49431c['previousSibling'];else{if(_0x1762fc<_0x560d12)break;}_0x49431c=_0x49431c['previousSibling'];}return _0x4f367b;}function Se(_0x1152f1){const _0x1f63d1=[];if(_0x1152f1['is']('element','listItem')&&_0x1152f1['getAttribute']('listIndent')>0x0){let _0x4ec086=_0x1152f1['nextSibling'];for(;_0x4ec086&&'listItem'==_0x4ec086['name']&&_0x4ec086['getAttribute']('listIndent')==_0x1152f1['getAttribute']('listIndent');)_0x1f63d1['push'](_0x4ec086),_0x4ec086=_0x4ec086['nextSibling'];}return _0x1f63d1;}class kt extends _0x4be19b{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x2950ff=this['editor']['config']['get']('list.properties'),_0x42699c=this['editor']['plugins']['get']('TrackChangesEditing');_0x2950ff['styles']&&_0x42699c['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x2950ff['reversed']&&_0x42699c['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x2950ff['startIndex']&&_0x42699c['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x42699c['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x580051,_0x1ffb91={}){const _0x95d0e9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x45c7ba=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x95d0e9['markMultiRangeBlockFormat'](_0x45c7ba,{'commandName':'listStyle','commandParams':[{'type':_0x1ffb91['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0xd580ab,_0x218db8={}){const _0x2f22c0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x180cba=this['_getSuggestionBlocks'](_0x844cb5=>_0x844cb5['is']('element','listItem')&&'numbered'===_0x844cb5['getAttribute']('listType'));if(_0x180cba['length']<0x1)return;const _0xec8024=_0x180cba['map'](_0x247143=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x247143,'before'),this['editor']['model']['createPositionAt'](_0x247143,0x0)));this['editor']['model']['change'](()=>{_0x2f22c0['markMultiRangeBlockFormat'](_0xec8024,{'commandName':'listReversed','commandParams':[{'reversed':_0x218db8['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x5938c5,_0x337f5d={}){const _0x465500=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1d4360=this['_getSuggestionBlocks'](_0x319d90=>_0x319d90['is']('element','listItem')&&'numbered'===_0x319d90['getAttribute']('listType'));if(_0x1d4360['length']<0x1)return;const _0x23beac=_0x1d4360['map'](_0x2517f4=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2517f4,'before'),this['editor']['model']['createPositionAt'](_0x2517f4,0x0)));this['editor']['model']['change'](()=>{_0x465500['markMultiRangeBlockFormat'](_0x23beac,{'commandName':'listStart','commandParams':[{'startIndex':_0x337f5d['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x3bf9b2){if('formatBlock'!=_0x3bf9b2['type']&&'formatInline'!=_0x3bf9b2['type'])return;const _0xc6a931=this['editor']['locale'],{data:_0x3261dd}=_0x3bf9b2;if(!_0x3261dd)return;let _0x1a510e,_0x4b2fcc;switch(_0x3261dd['commandName']){case'listStyle':_0x1a510e='*Change\x20to:*\x20%0',_0x4b2fcc={'type':'format','content':o(_0xc6a931,_0x1a510e,o(_0xc6a931,this['_getTranslationKeyForListStyle'](_0x3261dd['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1a510e=_0x3261dd['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4b2fcc={'type':'format','content':o(_0xc6a931,_0x1a510e)};break;case'listStart':_0x1a510e='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4b2fcc={'type':'format','content':o(_0xc6a931,_0x1a510e,_0x3261dd['commandParams'][0x0]['startIndex'])};}return _0x4b2fcc;}['_getSuggestionBlocksForListStyle'](){const _0x4777cf=this['editor']['plugins']['get']('LegacyListUtils');let _0x5515c=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x5515c[0x0]?.['is']('element','listItem')&&_0x5515c['unshift'](..._0x4777cf['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x5515c[_0x5515c['length']-0x1]?.['is']('element','listItem')&&_0x5515c['push'](..._0x4777cf['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x5515c=[...new Set(_0x5515c)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x5515c=_0x5515c['filter'](_0x53fbfe=>_0x53fbfe['is']('element','listItem'))),_0x5515c;}['_getSuggestionBlocks'](_0x5274d5){const _0x51a155=this['editor']['plugins']['get']('LegacyListUtils');let _0x4b6f46=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x5274d5)['map'](_0x4dc994=>{const _0x2e669d=this['editor']['model']['createPositionAt'](_0x4dc994,0x0);return[..._0x51a155['getSiblingNodes'](_0x2e669d,'backward'),..._0x51a155['getSiblingNodes'](_0x2e669d,'forward')];})['flat']();return _0x4b6f46=[...new Set(_0x4b6f46)],_0x4b6f46;}['_getTranslationKeyForListStyle'](_0x211589){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x211589)||'default')['toUpperCase']()+'_LIST_'+_0x211589['toUpperCase']()['replace'](/-/g,'_');}}class wt extends _0x4be19b{['afterInit'](){const _0x37af4f=this['editor'];if(!_0x37af4f['plugins']['has']('MediaEmbedEditing'))return;const _0xd7dd7d=_0x37af4f['plugins']['get']('TrackChangesEditing'),_0x1455c6=_0x37af4f['locale'];_0xd7dd7d['enableCommand']('mediaEmbed'),_0xd7dd7d['descriptionFactory']['registerElementLabel']('media',_0x248e76=>o(_0x1455c6,'ELEMENT_MEDIA',_0x248e76)),_0x37af4f['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x225844,{writer:_0x4ff429,options:_0x2103dc})=>{if(_0x2103dc['showSuggestionHighlights'])return _0x4ff429['createEmptyElement']('div');},'converterPriority':'high'}),_0x37af4f['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3812cc,_0x249044,_0x289459)=>{_0x289459['options']['showSuggestionHighlights']&&_0x3812cc['stop']();},{'priority':'high'});}}class bt extends _0x4be19b{['afterInit'](){const _0x557680=this['editor'];_0x557680['plugins']['has']('MentionEditing')&&_0x557680['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class yt extends _0x4be19b{['afterInit'](){const _0x4084d1=this['editor'];if(!_0x4084d1['plugins']['has']('MergeFieldsEditing'))return;const _0x5d3db4=_0x4084d1['plugins']['get']('TrackChangesEditing'),_0x3bf60e=_0x4084d1['locale'];_0x5d3db4['enableCommand']('insertMergeField'),_0x5d3db4['enableCommand']('insertMergeFieldBlock'),_0x5d3db4['enableCommand']('insertMergeFieldImage'),_0x5d3db4['descriptionFactory']['registerElementLabel']('mergeField',_0x4e12f5=>o(_0x3bf60e,'ELEMENT_MERGE_FIELD',_0x4e12f5)),_0x5d3db4['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0xfd85be=>o(_0x3bf60e,'ELEMENT_MERGE_FIELD',_0xfd85be)),_0x5d3db4['descriptionFactory']['registerDescriptionCallback'](_0x43f052=>{if('insertion'!=_0x43f052['type']&&'deletion'!=_0x43f052['type'])return;const _0x16549c=_0x43f052['getContainedElement']();if(null==_0x16549c)return;const _0x111611=_0x4084d1['plugins']['get']('MergeFieldsEditing');let _0xf86df7;switch(_0x111611['getMergeFieldType'](_0x16549c)){case null:return;case'image':{const _0x57d428=_0x111611['unwrapAffixes'](_0x16549c['getAttribute']('src'));_0xf86df7=_0x111611['getLabel'](_0x57d428)||_0x57d428;break;}default:{const _0x514e99=_0x16549c['getAttribute']('id');_0xf86df7=_0x111611['getLabel'](_0x514e99)||_0x514e99;break;}}return'insertion'==_0x43f052['type']?{'type':'insertion','content':o(_0x3bf60e,'*Insert:*\x20%0','\x22'+_0xf86df7+'\x22\x20'+o(_0x3bf60e,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x3bf60e,'*Remove:*\x20%0','\x22'+_0xf86df7+'\x22\x20'+o(_0x3bf60e,'ELEMENT_MERGE_FIELD'))};});}}class jt extends _0x4be19b{['afterInit'](){const _0x1ec26e=this['editor'],_0x3208e7=_0x1ec26e['plugins']['get']('TrackChangesEditing');_0x1ec26e['plugins']['has']('MultiLevelList')&&(_0x3208e7['enableDefaultAttributesIntegration']('multiLevelList'),_0x3208e7['registerBlockAttribute']('listMarkerStyle'),_0x3208e7['descriptionFactory']['registerDescriptionCallback'](_0x362605=>this['handleDescriptions'](_0x362605)));}['handleDescriptions'](_0x3be706){const _0x10612a=this['editor']['locale'],{data:_0x36f3f6}=_0x3be706,_0x37a85b={'type':'format','content':''};if(_0x36f3f6&&'listMarkerStyle'==_0x36f3f6['key']){if(!_0x36f3f6['oldValue'])return{'type':'format','content':o(_0x10612a,'*Set\x20format:*\x20%0',o(_0x10612a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x36f3f6['newValue']+')'};if(!_0x36f3f6['newValue']){let _0xe85298=_0x3be706['head'];for(;_0xe85298;){if(_0xe85298['data']&&'listType'==_0xe85298['data']['key']&&_0xe85298['data']['newValue'])return _0x37a85b;_0xe85298=_0xe85298['next'];}return{'type':'format','content':o(_0x10612a,'*Remove\x20format:*\x20%0',o(_0x10612a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x36f3f6['oldValue']+')'};}}}}class St extends _0x4be19b{['afterInit'](){const _0x222dc7=this['editor'];if(!_0x222dc7['plugins']['has']('PageBreakEditing'))return;_0x222dc7['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x338be5=_0x222dc7['plugins']['get']('TrackChangesEditing'),_0x312b1f=_0x222dc7['locale'];_0x338be5['descriptionFactory']['registerElementLabel']('pageBreak',_0x58c3fb=>o(_0x312b1f,'ELEMENT_PAGE_BREAK',_0x58c3fb));}}class It extends _0x4be19b{['afterInit'](){const _0x40a8df=this['editor'];if(!_0x40a8df['plugins']['has']('Paragraph'))return;const _0x59b7ff=_0x40a8df['locale'],_0x4a9e63=_0x40a8df['plugins']['get']('TrackChangesEditing');_0x4a9e63['descriptionFactory']['registerElementLabel']('paragraph',_0x16ec58=>o(_0x59b7ff,'ELEMENT_PARAGRAPH',_0x16ec58)),_0x4a9e63['enableDefaultAttributesIntegration']('paragraph'),_0x4a9e63['enableCommand']('insertParagraph'),_0x40a8df['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x40a8df),{'priority':'highest'}),_0x40a8df['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x40b469,_0x351a66,_0x1d0055)=>{_0x1d0055['options']['showSuggestionHighlights']&&nr(_0x40a8df,{'showActiveMarker':!0x1})(_0x40b469,_0x351a66,_0x1d0055);},{'priority':'highest'});const _0x2c4454=_0x4a9e63['descriptionFactory'];_0x2c4454['registerDescriptionCallback'](_0x46a1cd=>{if('insertion'!==_0x46a1cd['type'])return;const {start:_0x556ac6,end:_0x310071}=_0x46a1cd['getFirstRange']();if(!_0x556ac6['isTouching'](_0x310071)||!_0x556ac6['nodeAfter'])return;const _0x56d250=_0x40a8df['model']['schema'],_0x196f73=_0x556ac6['nodeAfter'];return _0x56d250['isBlock'](_0x196f73)&&!_0x56d250['isLimit'](_0x196f73)&&_0x56d250['checkChild'](_0x196f73,'$text')?{'type':'insertion','content':o(_0x59b7ff,'*Insert:*\x20%0',_0x2c4454['getItemLabel'](_0x196f73,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x12fdd5=this['editor'],_0x2bf671=_0x12fdd5['locale'];_0x12fdd5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x56113e=>{if('formatBlock'!=_0x56113e['type'])return;const {data:_0x21ea34}=_0x56113e;return _0x21ea34&&'paragraph'==_0x21ea34['commandName']?{'type':'format','content':o(_0x2bf671,'*Change\x20to:*\x20%0',o(_0x2bf671,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x192e18,{showActiveMarker:_0x4adb1a=!0x0}={}){return(_0x1f135e,_0x18c1b3,_0x3696b6)=>{const _0x147728=_0x192e18['plugins']['get']('TrackChangesEditing'),_0x196edf=_0x18c1b3['markerRange']['start'],_0x722584=_0x18c1b3['markerRange']['end'],_0x4142ad=_0x192e18['model']['schema'];if(!_0x196edf['isTouching'](_0x722584)||!_0x196edf['nodeAfter'])return;const _0x3b5420=_0x196edf['nodeAfter'];if(_0x4142ad['isBlock'](_0x3b5420)&&!_0x4142ad['isLimit'](_0x3b5420)&&_0x4142ad['checkChild'](_0x3b5420,'$text')){if(!_0x3696b6['consumable']['consume'](_0x18c1b3['markerRange'],_0x1f135e['name']))return;const {id:_0x4fc1d3,authorId:_0x418ddb}=_0x147728['_splitMarkerName'](_0x18c1b3['markerName']),_0x3d6921=_0x3696b6['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x4fc1d3,'data-author-id':_0x418ddb}),_0xbb6300=_0x3696b6['mapper']['toViewPosition'](_0x722584);_0x4adb1a&&_0x147728['activeMarkers']['includes'](_0x18c1b3['markerName'])&&_0x3696b6['writer']['addClass']('ck-suggestion-marker--active',_0x3d6921),_0x3696b6['writer']['insert'](_0xbb6300,_0x3d6921),_0x3696b6['mapper']['bindElementToMarker'](_0x3d6921,_0x18c1b3['markerName']);}};}class At extends _0x4be19b{['afterInit'](){const _0x2b94e8=this['editor'];_0x2b94e8['commands']['get']('replaceSource')&&_0x2b94e8['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class _t extends _0x4be19b{['afterInit'](){const _0x23013b=this['editor'];if(!_0x23013b['plugins']['has']('RemoveFormatEditing'))return;_0x23013b['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x483abf=this['editor'];_0x483abf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x416421=>{if('formatBlock'!=_0x416421['type']&&'formatInline'!=_0x416421['type'])return;const {data:_0x474bbc}=_0x416421;return _0x474bbc&&'removeFormat'==_0x474bbc['commandName']?{'type':'format','content':o(_0x483abf['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class vt extends _0x4be19b{['afterInit'](){const _0x435c31=this['editor'];if(!_0x435c31['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x53d717=_0x435c31['plugins']['get']('TrackChangesEditing');_0x53d717['enableCommand']('goToPreviousRestrictedEditingException'),_0x53d717['enableCommand']('goToNextRestrictedEditingException');const _0x3246bf=_0x435c31['plugins']['get']('RestrictedEditingModeEditing');_0x3246bf['enableCommand']('trackChanges'),_0x3246bf['enableCommand']('acceptSuggestion'),_0x3246bf['enableCommand']('discardSuggestion'),_0x3246bf['enableCommand']('acceptAllSuggestions'),_0x3246bf['enableCommand']('discardAllSuggestions'),_0x3246bf['enableCommand']('acceptSelectedSuggestions'),_0x3246bf['enableCommand']('discardSelectedSuggestions');}}class Ct extends _0x4be19b{['afterInit'](){const _0x57e2ca=this['editor'];if(!_0x57e2ca['plugins']['has']('ShiftEnter'))return;const _0x2b7474=_0x57e2ca['plugins']['get']('TrackChangesEditing');_0x2b7474['enableCommand']('shiftEnter'),_0x57e2ca['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',qe(_0x57e2ca),{'priority':'high'}),_0x57e2ca['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',qe(_0x57e2ca),{'priority':'high'}),_0x57e2ca['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x50fa96,_0x1ca76e,_0x15c61a)=>{_0x15c61a['options']['showSuggestionHighlights']&&qe(_0x57e2ca,{'showActiveMarker':!0x1})(_0x50fa96,_0x1ca76e,_0x15c61a);}),_0x2b7474['descriptionFactory']['registerElementLabel']('softBreak',_0xca7b57=>o(_0x57e2ca['locale'],'ELEMENT_LINE_BREAK',_0xca7b57));}}function qe(_0x4d10b0,{showActiveMarker:_0x4d3673=!0x0}={}){return(_0x1534b7,_0xbf269f,_0x4e8a14)=>{const _0x58c678=_0x4d10b0['plugins']['get']('TrackChangesEditing');if(!_0x4e8a14['consumable']['test'](_0xbf269f['markerRange'],_0x1534b7['name']))return;const _0x45dc5f=_0x4d10b0['model'];for(const _0x5079ab of _0xbf269f['markerRange']['getItems']()){if(!_0x5079ab['is']('element','softBreak'))continue;const _0x339aeb='deletion'==_0xbf269f['markerName']['split'](':')[0x1]?'merge':'split',{id:_0xa348ea,authorId:_0x3f10d2}=_0x58c678['_splitMarkerName'](_0xbf269f['markerName']),_0x5da624=_0x4e8a14['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x339aeb,'data-suggestion':_0xa348ea,'data-author-id':_0x3f10d2}),_0x573583=_0x4e8a14['mapper']['toViewPosition'](_0x45dc5f['createPositionBefore'](_0x5079ab));_0x4d3673&&_0x58c678['activeMarkers']['includes'](_0xbf269f['markerName'])&&_0x4e8a14['writer']['addClass']('ck-suggestion-marker--active',_0x5da624),_0x4e8a14['writer']['insert'](_0x573583,_0x5da624),_0x4e8a14['mapper']['bindElementToMarker'](_0x5da624,_0xbf269f['markerName']);}};}class $t extends _0x4be19b{['afterInit'](){const _0x1a5237=this['editor'],_0x4d7d77=_0x1a5237['model'],_0x40f563=_0x1a5237['locale'];if(!_0x1a5237['plugins']['has']('StandardEditingModeEditing'))return;const _0x4b7ba4=_0x1a5237['plugins']['get']('TrackChangesEditing'),_0x80eb8e='restrictedEditingException',_0x1d7bd0=_0x1a5237['commands']['get'](_0x80eb8e);_0x4b7ba4['enableCommand'](_0x80eb8e,(_0x1f0726,_0xeba7df={})=>{const _0x4e0348=_0x4d7d77['document']['selection'];if(_0x4e0348['isCollapsed'])return void _0x1f0726(_0xeba7df);const _0x2b1660=void 0x0!==_0xeba7df['forceValue']?_0xeba7df['forceValue']:!_0x1d7bd0['value'];_0x4d7d77['change'](()=>{const _0x951af=Array['from'](_0x4e0348['getRanges']());for(const _0x5b0c41 of _0x951af){const _0x4ef8f3=_0x2b1660?[_0x5b0c41]:io(_0x80eb8e,_0x5b0c41,_0x4d7d77);for(const _0x1fc087 of _0x4ef8f3)_0x4b7ba4['markInlineFormat'](_0x1fc087,{'commandName':_0x80eb8e,'commandParams':[{'forceValue':_0x2b1660}]});}});}),_0x4b7ba4['descriptionFactory']['registerDescriptionCallback'](_0x29b6ad=>{if('formatBlock'!=_0x29b6ad['type']&&'formatInline'!=_0x29b6ad['type'])return;const {data:_0x24b3ba}=_0x29b6ad;return _0x24b3ba&&_0x24b3ba['commandName']==_0x80eb8e?_0x24b3ba['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x40f563,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x40f563,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class Nt extends _0x4be19b{['afterInit'](){const _0x3ab5dd=this['editor'];if(!_0x3ab5dd['plugins']['has']('Style')||!_0x3ab5dd['plugins']['has']('DataSchema'))return;const _0x55f411=_0x3ab5dd['plugins']['get']('TrackChangesEditing'),_0x15b4fb=_0x3ab5dd['locale'],_0x579a03=_0x3ab5dd['config']['get']('style')||{},_0x33dc50=_0x3ab5dd['plugins']['get']('GeneralHtmlSupport'),_0x58d528=_0x3ab5dd['plugins']['get']('StyleUtils')['normalizeConfig'](_0x3ab5dd['plugins']['get']('DataSchema'),_0x579a03['definitions']);_0x55f411['enableDefaultAttributesIntegration']('style');const _0x485144=new Set();for(const _0x4c91b6 of _0x58d528['block']){const _0x386307=_0x33dc50['getGhsAttributeNameForElement'](_0x4c91b6['element']);_0x485144['add'](_0x386307);}const _0x3d3719=new Set();for(const _0x199492 of _0x58d528['inline']){const _0x247012=_0x33dc50['getGhsAttributeNameForElement'](_0x199492['element']);_0x3d3719['add'](_0x247012);for(const _0x46037e of _0x199492['ghsAttributes'])_0x3d3719['add'](_0x46037e);}for(const _0x1685a2 of _0x485144)_0x55f411['registerBlockAttribute'](_0x1685a2),_0x55f411['descriptionFactory']['registerAttributeLabel'](_0x1685a2,o(_0x15b4fb,'FORMAT_STYLE'));for(const _0x242a4f of _0x3d3719)_0x55f411['registerInlineAttribute'](_0x242a4f),_0x55f411['descriptionFactory']['registerAttributeLabel'](_0x242a4f,o(_0x15b4fb,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x46b8c7=this['editor'],_0x116379=_0x46b8c7['locale'];_0x46b8c7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xbc0cb7=>{if('formatBlock'!=_0xbc0cb7['type']&&'formatInline'!=_0xbc0cb7['type'])return;const {data:_0x1a6ae0}=_0xbc0cb7;return _0x1a6ae0&&'style'===_0x1a6ae0['commandName']?_0x1a6ae0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x116379,'*Set\x20format:*\x20%0',_0x1a6ae0['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x116379,'*Remove\x20format:*\x20%0',_0x1a6ae0['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Dt extends _0x4be19b{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x4310af){super(_0x4310af),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x2a6ee6=this['editor'],_0x5c7611=_0x2a6ee6['model']['document']['selection'];if(!_0x2a6ee6['plugins']['has']('TableEditing'))return;const _0x1e01be=_0x2a6ee6['locale'],_0x3c6d64=_0x2a6ee6['plugins']['get']('TrackChangesEditing'),_0x4bd4e9=_0x2a6ee6['plugins']['get']('TableUtils');_0x3c6d64['descriptionFactory']['registerElementLabel']('table',_0x492d6a=>o(_0x1e01be,'ELEMENT_TABLE',_0x492d6a)),this['_setupColumnsRowsFixing'](),_0x3c6d64['enableCommand']('insertTable'),_0x3c6d64['enableCommand']('selectTableRow'),_0x3c6d64['enableCommand']('selectTableColumn');for(const _0x1e7d0a of['insertTableRowAbove','insertTableRowBelow']){const _0x21653a=_0x2a6ee6['commands']['get'](_0x1e7d0a);_0x3c6d64['enableCommand'](_0x1e7d0a,_0x5d0a44=>{_0x2a6ee6['model']['change'](_0x5eb3f5=>{_0x5d0a44();const _0x2c16ec='above'===_0x21653a['order'],_0x22a609=_0x4bd4e9['getSelectionAffectedTableCells'](_0x5c7611),_0x3860ca=_0x4bd4e9['getRowIndexes'](_0x22a609),_0x3be49f=_0x2c16ec?_0x3860ca['first']-0x1:_0x3860ca['last']+0x1,_0x79feb2=_0x22a609[0x0]['findAncestor']('table'),_0x57bfb0=_0x4bd4e9['createTableWalker'](_0x79feb2,{'startRow':_0x3be49f,'endRow':_0x3be49f}),_0x426eaa=Array['from'](_0x57bfb0)['map'](_0x505391=>_0x5eb3f5['createRangeOn'](_0x505391['cell']));_0x3c6d64['markMultiRangeInsertion'](_0x426eaa,'tableRow');});});}for(const _0x1e4bda of['insertTableColumnLeft','insertTableColumnRight']){const _0x51b5bd=_0x2a6ee6['commands']['get'](_0x1e4bda);_0x3c6d64['enableCommand'](_0x1e4bda,_0x239367=>{_0x2a6ee6['model']['change'](_0x1a200b=>{_0x239367();const _0x3b5f96='left'===_0x51b5bd['order'],_0x2f58f0=_0x4bd4e9['getSelectionAffectedTableCells'](_0x5c7611),_0x187644=_0x4bd4e9['getColumnIndexes'](_0x2f58f0),_0x1b4ea2=_0x3b5f96?_0x187644['first']-0x1:_0x187644['last']+0x1,_0x125065=_0x2f58f0[0x0]['findAncestor']('table'),_0x3ee9db=_0x4bd4e9['createTableWalker'](_0x125065,{'startRow':0x0,'column':_0x1b4ea2,'includeAllSlots':!0x1}),_0x1ac3f3=Array['from'](_0x3ee9db)['map'](_0x452b72=>_0x1a200b['createRangeOn'](_0x452b72['cell']));_0x3c6d64['markMultiRangeInsertion'](_0x1ac3f3,'tableColumn');});});}for(const _0x42b078 of['removeTableRow','removeTableColumn']){const _0x527399=_0x42b078['substr'](0xb),_0x253e1a=_0x527399['toLowerCase'](),_0x18721a=_0x253e1a['substr'](0x0,0x3)+'span',_0xa7938d='table'+_0x527399,_0x480be5='min'+_0x527399,_0x2b2de4='max'+_0x527399;_0x3c6d64['enableCommand'](_0x42b078,()=>{_0x2a6ee6['model']['change'](_0x2cd257=>{const _0x28a639=_0x4bd4e9['getSelectionAffectedTableCells'](_0x5c7611),_0x36d225=_0x28a639[0x0]['findAncestor']('table');let _0x23d2c9;if('removeTableRow'==_0x42b078){const _0x16653e=_0x4bd4e9['getRowIndexes'](_0x28a639);_0x23d2c9={'startRow':_0x16653e['first'],'endRow':_0x16653e['last'],'includeAllSlots':!0x0};}else{const _0x58156c=_0x4bd4e9['getColumnIndexes'](_0x28a639);_0x23d2c9={'startColumn':_0x58156c['first'],'endColumn':_0x58156c['last'],'includeAllSlots':!0x0};}const _0x34877e=_0x4bd4e9['createTableWalker'](_0x36d225,_0x23d2c9),_0x178181=Array['from'](_0x34877e)['map'](({cell:_0x5e813d})=>_0x5e813d),_0x4cc766=Oe(_0x178181['filter'](_0x24c973=>_0x24c973['hasAttribute'](_0x18721a))),_0x309860=Oe(_0x178181['filter'](_0x306d99=>!_0x306d99['hasAttribute'](_0x18721a)))['map'](_0x19442c=>_0x2cd257['createRangeOn'](_0x19442c)),_0x27653d=_0x3c6d64['markMultiRangeDeletion'](_0x309860,_0xa7938d);if(_0x27653d&&('tableRow'==_0x27653d['subType']||'tableColumn'==_0x27653d['subType'])){const _0x2ab715=this['_getSuggestionCoords'](_0x27653d);for(const _0x1a2b53 of _0x4cc766){const _0x250ab4=_0x2cd257['createRangeOn'](_0x1a2b53),_0x15eb24=_0x4bd4e9['getCellLocation'](_0x1a2b53),_0x3726d2=_0x1a2b53['getAttribute'](_0x18721a)-0x1,_0x319398=_0x2ab715[_0x480be5],_0x523ca5=_0x2ab715[_0x2b2de4];_0x319398<=_0x15eb24[_0x253e1a]&&_0x15eb24[_0x253e1a]+_0x3726d2<=_0x523ca5&&_0x27653d['addRange'](_0x250ab4);}}});});}function _0x158490(_0x109e0f){const _0x46f2a5=Array['from'](_0x5c7611['getRanges']())['map'](_0x1d79f1=>_0x5c6c0b['fromRange'](_0x1d79f1));_0x2a6ee6['model']['change'](_0x4711a3=>{const _0x503021=_0x4711a3['batch'];_0x109e0f=_0x109e0f['filter'](_0x3cd466=>'$graveyard'!=_0x3cd466['root']['rootName']),_0x4711a3['setSelection'](_0x109e0f),_0x2a6ee6['commands']['get']('removeTableRow')['refresh'](),_0x2a6ee6['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x2a6ee6['model']['enqueueChange'](()=>{_0x2a6ee6['model']['enqueueChange'](_0x503021,_0x2c4e4e=>{const _0x90a41f=_0x46f2a5['filter'](_0x1544d5=>'$graveyard'!=_0x1544d5['root']['rootName']);_0x90a41f['length']>0x0&&_0x2c4e4e['setSelection'](_0x90a41f);for(const _0x1f3255 of _0x46f2a5)_0x1f3255['detach']();});});});}function _0x492791(_0x32cf32){_0x2a6ee6['model']['change'](_0x2affed=>{const _0x50d630=Array['from'](_0x5c7611['getRanges']())['map'](_0x2e9dda=>_0x5c6c0b['fromRange'](_0x2e9dda)),_0x592870=[];for(const _0x5b7ece of _0x32cf32)for(const _0x201da2 of _0x5b7ece['getItems']({'shallow':!0x0}))_0x592870['push'](_0x201da2);for(const _0x1b18be of _0x592870)'$graveyard'!=_0x1b18be['root']['rootName']&&(_0x2affed['setSelection'](_0x2affed['createPositionAt'](_0x1b18be,0x0)),_0x2a6ee6['commands']['get']('removeTableColumn')['refresh'](),_0x2a6ee6['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x16d374=_0x50d630['filter'](_0x116a1a=>'$graveyard'!=_0x116a1a['root']['rootName']);_0x16d374['length']>0x0&&_0x2affed['setSelection'](_0x16d374);for(const _0x1a4cbc of _0x50d630)_0x1a4cbc['detach']();});}function _0x2b7151(_0x2e984,_0x498cd0){return _0x498cd0['every'](_0x5ce312=>_0x2e984['some'](_0x550f5e=>_0x550f5e['end']['isEqual'](_0x5ce312['start'])||_0x5ce312['end']['isEqual'](_0x550f5e['start'])));}function _0x26712d(_0xb5324f,_0x555b78){return!_0xb5324f['some'](_0x34f442=>_0x555b78['some'](_0x42ece8=>_0x34f442['isIntersecting'](_0x42ece8)))&&_0xb5324f['some'](_0x2f08f2=>_0x555b78['some'](_0x24c4bd=>_0x2f08f2['end']['isTouching'](_0x24c4bd['start'])));}_0x2a6ee6['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x27f44a,_0x2aa651,_0x5a0584)=>{if(!_0x5a0584['options']['showSuggestionHighlights'])return;const _0x3e4a37=_0x2aa651['item'];if(!_0x3e4a37||!_0x3e4a37['is']('element','tableCell'))return;const _0x3aecf7=_0x5a0584['mapper']['toViewElement'](_0x3e4a37);if(_0x3aecf7){const {id:_0x2a97ae,authorId:_0x5f34ff}=_0x3c6d64['_splitMarkerName'](_0x2aa651['markerName']);_0x36dd47(_0x3aecf7,_0x5a0584['writer'],(_0x1b26c0,_0x1f4ef4,_0x3b6f44)=>{_0x3b6f44['addClass'](_0x226d78(_0x1f4ef4['classes']),_0x1b26c0),_0x3b6f44['setAttribute']('data-suggestion-id',_0x2a97ae,_0x1b26c0),_0x3b6f44['setAttribute']('data-author-id',_0x5f34ff,_0x1b26c0);},(_0xfd543d,_0x496ffb,_0x510ad8)=>{_0x510ad8['removeClass'](_0x226d78(_0x496ffb['classes']),_0xfd543d),_0x510ad8['removeAttribute']('data-suggestion-id',_0xfd543d),_0x510ad8['removeAttribute']('data-author-id',_0xfd543d);});}},{'priority':'highest'}),_0x3c6d64['descriptionFactory']['registerDescriptionCallback'](_0x16d18c=>{if('insertion'!=_0x16d18c['type']&&'deletion'!=_0x16d18c['type'])return;const _0x3a0fd0=_0x16d18c['getContainedElement']();if(null!=_0x3a0fd0&&_0x3a0fd0['is']('element','table')){if('insertion'==_0x16d18c['type']){const _0x291a5e=_0x16d18c['getItems']()['filter'](_0x6b3b87=>_0x6b3b87['is']('$textProxy'))['map'](_0xf7ab54=>_0xf7ab54['data']);if(_0x291a5e['length'])return{'type':'insertion','content':o(_0x1e01be,'*Insert:*\x20%0',o(_0x1e01be,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x291a5e['join']('\x20')+'\x22'))};}if('deletion'==_0x16d18c['type']){const _0x4d44ea=_0x16d18c['getItems']()['filter'](_0xc49195=>_0xc49195['is']('$textProxy'))['map'](_0x25a91e=>_0x25a91e['data']);if(_0x4d44ea['length'])return{'type':'deletion','content':o(_0x1e01be,'*Remove:*\x20%0',o(_0x1e01be,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4d44ea['join']('\x20')+'\x22'))};}}}),_0x3c6d64['descriptionFactory']['registerDescriptionCallback'](_0x298d02=>{if('tableRow'==_0x298d02['subType']){const _0x41a73b=_0x298d02['getItems']()['filter'](_0x5740fb=>_0x5740fb['is']('$textProxy'))['map'](_0x15992b=>_0x15992b['data']),_0x1db7ec=this['_getSuggestionCoords'](_0x298d02),_0x49a758=_0x1db7ec['maxRow']-_0x1db7ec['minRow']+0x1;if('insertion'==_0x298d02['type'])return _0x41a73b['length']?{'type':'insertion','content':o(_0x1e01be,'*Insert:*\x20%0',o(_0x1e01be,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x49a758,'\x22'+_0x41a73b['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1e01be,'*Insert:*\x20%0',o(_0x1e01be,'ELEMENT_TABLE_ROW',_0x49a758))};if('deletion'==_0x298d02['type'])return _0x41a73b['length']?{'type':'deletion','content':o(_0x1e01be,'*Remove:*\x20%0',o(_0x1e01be,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x49a758,'\x22'+_0x41a73b['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1e01be,'*Remove:*\x20%0',o(_0x1e01be,'ELEMENT_TABLE_ROW',_0x49a758))};}if('tableColumn'==_0x298d02['subType']){const _0x4e0151=_0x298d02['getItems']()['filter'](_0x22ec86=>_0x22ec86['is']('$textProxy'))['map'](_0x2ad9c2=>_0x2ad9c2['data']),_0x18745b=this['_getSuggestionCoords'](_0x298d02),_0x33193f=_0x18745b['maxColumn']-_0x18745b['minColumn']+0x1;if('insertion'==_0x298d02['type'])return _0x4e0151['length']?{'type':'insertion','content':o(_0x1e01be,'*Insert:*\x20%0',o(_0x1e01be,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x33193f,'\x22'+_0x4e0151['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1e01be,'*Insert:*\x20%0',o(_0x1e01be,'ELEMENT_TABLE_COLUMN',_0x33193f))};if('deletion'==_0x298d02['type'])return _0x4e0151['length']?{'type':'deletion','content':o(_0x1e01be,'*Remove:*\x20%0',o(_0x1e01be,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x33193f,'\x22'+_0x4e0151['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1e01be,'*Remove:*\x20%0',o(_0x1e01be,'ELEMENT_TABLE_COLUMN',_0x33193f))};}}),_0x3c6d64['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x158490),_0x3c6d64['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x158490),_0x3c6d64['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x492791),_0x3c6d64['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x492791),_0x3c6d64['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x2b7151),_0x3c6d64['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x2b7151),_0x3c6d64['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x26712d),_0x3c6d64['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x26712d);}['_acceptFormatSuggestionCallbackFactory'](){const _0x5636c0=this['editor'],_0x2d01c9=_0x5636c0['model']['document']['selection'];return(_0x2ff0e9,_0xcf9590)=>{_0x5636c0['model']['change'](_0x3af4da=>{const {commandName:_0x438b16,commandParams:_0x33f64b}=_0xcf9590;let _0x4952da=_0x2ff0e9[0x0]['end']['nodeBefore'];_0x33f64b&&_0x33f64b[0x0]&&!0x1===_0x33f64b[0x0]['forceValue']&&(_0x4952da=_0x2ff0e9[0x0]['start']['nodeAfter']);const _0x1461a6=_0x3af4da['createRangeIn'](_0x4952da);if('$graveyard'==_0x1461a6['root']['rootName'])return;const _0x3c3bd2=Array['from'](_0x2d01c9['getRanges']())['map'](_0x3703d3=>_0x5c6c0b['fromRange'](_0x3703d3));_0x3af4da['setSelection'](_0x1461a6),_0x5636c0['commands']['get'](_0x438b16)['refresh'](),_0x33f64b['push']({'forceDefaultExecution':!0x0}),_0x5636c0['execute'](_0x438b16,..._0x33f64b);const _0x438884=_0x3c3bd2['filter'](_0x2c0b3e=>'$graveyard'!=_0x2c0b3e['root']['rootName']);_0x438884['length']>0x0&&_0x3af4da['setSelection'](_0x438884);for(const _0x29a1a5 of _0x3c3bd2)_0x29a1a5['detach']();});};}['_getCoordsForCells'](_0x1feac1){const _0x2e701e=this['editor']['plugins']['get']('TableUtils');let _0x510620=Number['MAX_SAFE_INTEGER'],_0x4e6b81=Number['MIN_SAFE_INTEGER'],_0x477484=Number['MAX_SAFE_INTEGER'],_0x3c0608=Number['MIN_SAFE_INTEGER'];for(const _0x235152 of _0x1feac1){if('$graveyard'==_0x235152['root']['rootName'])continue;const {row:_0x24c939,column:_0x54ae04}=_0x2e701e['getCellLocation'](_0x235152),_0x5cf7c1=_0x235152['hasAttribute']('rowspan')?_0x235152['getAttribute']('rowspan')-0x1:0x0,_0x10b103=_0x235152['hasAttribute']('colspan')?_0x235152['getAttribute']('colspan')-0x1:0x0;_0x510620=_0x24c939<_0x510620?_0x24c939:_0x510620,_0x4e6b81=_0x24c939+_0x5cf7c1>_0x4e6b81?_0x24c939+_0x5cf7c1:_0x4e6b81,_0x477484=_0x54ae04<_0x477484?_0x54ae04:_0x477484,_0x3c0608=_0x54ae04+_0x10b103>_0x3c0608?_0x54ae04+_0x10b103:_0x3c0608;}return{'minRow':_0x510620,'maxRow':_0x4e6b81,'minColumn':_0x477484,'maxColumn':_0x3c0608};}['_setupColumnsRowsFixing'](){const _0x3716ab=this['editor'],_0x109940=_0x3716ab['plugins']['get']('TrackChangesEditing'),_0x128021=_0x3716ab['plugins']['get']('TableUtils');_0x3716ab['model']['document']['on']('change:data',()=>{const _0x5be50e=Array['from'](_0x3716ab['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x406428,data:_0x49c7d5}of _0x5be50e){const {group:_0x35a3bb,id:_0x55c383,subType:_0x463cb7}=_0x109940['_splitMarkerName'](_0x406428);if('suggestion'!=_0x35a3bb)continue;if(null!=_0x49c7d5['oldRange'])continue;const _0x164240=_0x109940['getSuggestion'](_0x55c383);this['_tablePostFixingSubtypes']['includes'](_0x463cb7)&&this['_tableSuggestions']['add'](_0x164240);}},{'priority':'low'});const _0x2e83ce=(_0x2bb948,_0x3cecdf)=>{let _0x2e94bc=!0x1;const _0x2317f1=_0x3cecdf['createRangeOn'](_0x2bb948),_0x50e193=_0x2bb948['findAncestor']('table'),_0x64f55f=_0x128021['getCellLocation'](_0x2bb948);for(const _0x354340 of this['_tableSuggestions']){const _0x579328=_0x354340['subType'],_0xc95621=_0x579328['startsWith']('tablePaste'),_0x1002ca=_0x579328['substr'](_0xc95621?0xa:0x5),_0x1f5001=_0x1002ca['toLowerCase'](),_0x51979c=_0x1f5001['substr'](0x0,0x3)+'span',_0x3315c2='min'+_0x1002ca,_0xf645b3='max'+_0x1002ca;if(!_0x354340['isInContent'])continue;if(_0x50e193!=_0x354340['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x354340['isIntersectingWithRange'](_0x2317f1))continue;const _0xa44097=_0x2bb948['hasAttribute'](_0x51979c)?_0x2bb948['getAttribute'](_0x51979c)-0x1:0x0,_0x4eac9a=this['_getSuggestionCoords'](_0x354340),_0x4eab5a=_0x4eac9a[_0x3315c2],_0x4ebf0a=_0x4eac9a[_0xf645b3];_0x4eab5a<=_0x64f55f[_0x1f5001]&&_0x64f55f[_0x1f5001]+_0xa44097<=_0x4ebf0a&&(_0x354340['addRange'](_0x2317f1),_0x2e94bc=!0x0);}return _0x2e94bc;};_0x3716ab['model']['document']['registerPostFixer'](_0x24a98d=>{let _0x2d89ec=!0x1;for(const _0x189cf1 of _0x3716ab['model']['document']['differ']['getChanges']())if('insert'==_0x189cf1['type']){if('tableRow'==_0x189cf1['name']){for(const _0x451f1d of _0x189cf1['position']['nodeAfter']['getChildren']())_0x2d89ec=_0x2d89ec||_0x2e83ce(_0x451f1d,_0x24a98d);}else'tableCell'==_0x189cf1['name']&&(_0x2d89ec=_0x2d89ec||_0x2e83ce(_0x189cf1['position']['nodeAfter'],_0x24a98d));}return _0x2d89ec;});}['_getSuggestionCoords'](_0x5316f7){return this['_getCoordsForCells'](_0x5316f7['getRanges']()['map'](_0x4f11bc=>_0x4f11bc['start']['nodeAfter']));}}function Oe(_0x205f84){return Array['from'](new Set(_0x205f84)['values']());}class Mt extends _0x4be19b{static get['requires'](){return[Dt];}['afterInit'](){const _0x391421=this['editor'],_0x4c608c=_0x391421['model']['document']['selection'],_0xfe3a29=_0x391421['locale'];if(!_0x391421['plugins']['has']('TableEditing'))return;const _0x15f0d6=_0x391421['plugins']['get']('TrackChangesEditing'),_0x30f770=_0x391421['plugins']['get']('TableUtils'),_0x45851b=_0x391421['plugins']['get'](Dt);_0x45851b['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x15f0d6['enableCommand']('mergeTableCells',()=>{const _0x2f6362=_0x30f770['getSelectionAffectedTableCells'](_0x391421['model']['document']['selection']);_0x391421['model']['change'](()=>{_0x15f0d6['markMultiRangeBlockFormat'](_0x2f6362,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x391421['commands']['get']('mergeTableCells')['on']('execute',(_0x4bd29b,_0x571240)=>{_0x391421['commands']['get']('trackChanges')['value']&&(_0x571240['length']>0x0&&_0x571240[_0x571240['length']-0x1]&&_0x571240[_0x571240['length']-0x1]['forceDefaultExecution']||_0x15f0d6['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x4bd29b['stop']());},{'priority':'highest'});for(const _0x4ee2e4 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x30319c=_0x391421['commands']['get'](_0x4ee2e4);_0x15f0d6['enableCommand'](_0x4ee2e4,()=>{const _0x46dd59=_0x391421['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x206437=>_0x206437['is']('element','tableCell')),_0x148a4a=_0x30319c['value'];_0x391421['model']['change'](()=>{_0x15f0d6['markMultiRangeBlockFormat']([_0x46dd59,_0x148a4a],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x1826e of['splitTableCellVertically','splitTableCellHorizontally']){const _0x5dc0bb=_0x391421['commands']['get'](_0x1826e);_0x15f0d6['enableCommand'](_0x1826e,()=>{const _0x53bcb4=_0x30f770['getSelectionAffectedTableCells'](_0x391421['model']['document']['selection'])[0x0],_0x1fc67e=_0x53bcb4['findAncestor']('table'),{column:_0x16cde0,row:_0x6f3c80}=_0x30f770['getCellLocation'](_0x53bcb4);let _0x4d83e3=[];if('horizontally'==_0x5dc0bb['direction']){const _0x3e2258=_0x30f770['createTableWalker'](_0x1fc67e,{'startRow':_0x6f3c80,'endRow':_0x6f3c80,'includeAllSlots':!0x0});_0x4d83e3=Array['from'](_0x3e2258)['map'](_0x39af14=>_0x39af14['cell']);}else{const _0x3a8ca1=_0x30f770['createTableWalker'](_0x1fc67e,{'column':_0x16cde0,'includeAllSlots':!0x0});_0x4d83e3=Array['from'](_0x3a8ca1)['map'](_0x4c31ae=>_0x4c31ae['cell']);}_0x391421['model']['change'](_0x273c73=>{_0x15f0d6['markBlockFormat'](_0x273c73['createRangeOn'](_0x53bcb4),{'commandName':_0x1826e,'commandParams':[]},_0x4d83e3,_0x1826e);});});}_0x15f0d6['descriptionFactory']['registerDescriptionCallback'](_0x84af4e=>{if('formatBlock'!=_0x84af4e['type']&&'formatInline'!=_0x84af4e['type'])return;const {data:_0x2dd8d1}=_0x84af4e;return _0x2dd8d1&&'mergeTableCells'==_0x2dd8d1['commandName']?{'type':'format','content':o(_0xfe3a29,'*Merge\x20cells*')}:void 0x0;}),_0x15f0d6['descriptionFactory']['registerDescriptionCallback'](_0x2254c4=>{if('formatBlock'!=_0x2254c4['type']&&'formatInline'!=_0x2254c4['type'])return;const {data:_0x25e9a6}=_0x2254c4;return _0x25e9a6?'splitTableCellVertically'==_0x25e9a6['commandName']?{'type':'format','content':o(_0xfe3a29,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x25e9a6['commandName']?{'type':'format','content':o(_0xfe3a29,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x5cbbdf=_0x45851b['_acceptFormatSuggestionCallbackFactory']();for(const _0x23d0a0 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x15f0d6['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x23d0a0,'accept',_0x5cbbdf);for(const _0x2a5017 of['splitTableCellVertically','splitTableCellHorizontally'])_0x15f0d6['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2a5017,'accept',_0x5cbbdf);_0x15f0d6['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x561861=>{_0x391421['model']['change'](_0x253828=>{const _0x4dac09=Array['from'](_0x4c608c['getRanges']())['map'](_0x137a60=>_0x5c6c0b['fromRange'](_0x137a60));_0x253828['setSelection'](_0x561861),_0x391421['commands']['get']('mergeTableCells')['refresh'](),_0x391421['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x28f7c6=_0x4dac09['filter'](_0x1b120f=>'$graveyard'!=_0x1b120f['root']['rootName']);_0x28f7c6['length']>0x0&&_0x253828['setSelection'](_0x28f7c6);for(const _0x45b7fe of _0x4dac09)_0x45b7fe['detach']();});});for(const _0x4040c7 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x3b8880=_0x391421['commands']['get'](_0x4040c7);_0x3b8880['on']('set:isEnabled',(_0x434b33,_0x1e38b5,_0x1b702b)=>{if(_0x1b702b){const _0x39da2c=_0x391421['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2d0c76=>_0x2d0c76['is']('element','tableCell'));this['_areMergableCells'](_0x3b8880['value'],_0x39da2c)||(_0x434b33['return']=!0x1,_0x434b33['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x2fd8ac=this['editor']['commands']['get']('mergeTableCells'),_0x2da114=this['editor']['plugins']['get']('TableUtils');if(!_0x2fd8ac['isEnabled'])return!0x1;const _0x54566f=_0x2da114['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3e8317 of _0x54566f)for(const _0x3e701d of _0x54566f)if(_0x3e8317!=_0x3e701d&&!this['_areMergableCells'](_0x3e8317,_0x3e701d))return!0x1;return!0x0;}['_areMergableCells'](_0x1ccae3,_0x26ed6d){const _0x4e029e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4224cb=this['editor']['model']['createRangeOn'](_0x1ccae3),_0x5e8647=this['editor']['model']['createRangeOn'](_0x26ed6d),_0x2eeb70=new Set(),_0x5d6baf=new Set();for(const _0x3ba1c8 of _0x4e029e['getSuggestions']())if(('insertion'==_0x3ba1c8['type']||'deletion'==_0x3ba1c8['type']||'mergeTableCells'==_0x3ba1c8['subType'])&&_0x3ba1c8['isInContent']){for(const _0xd4c170 of _0x3ba1c8['getRanges']())_0xd4c170['containsRange'](_0x4224cb,!0x0)&&_0x2eeb70['add'](_0x3ba1c8['type']+':'+_0x3ba1c8['author']['id']),_0xd4c170['containsRange'](_0x5e8647,!0x0)&&_0x5d6baf['add'](_0x3ba1c8['type']+':'+_0x3ba1c8['author']['id']);}if(_0x2eeb70['size']!=_0x5d6baf['size'])return!0x1;for(const _0x1e690e of _0x2eeb70)if(!_0x5d6baf['has'](_0x1e690e))return!0x1;return!0x0;}}class Bt extends _0x4be19b{static get['requires'](){return[Dt];}['afterInit'](){const _0x5afc82=this['editor'];if(!_0x5afc82['plugins']['has']('TableEditing'))return;const _0x252805=_0x5afc82['locale'],_0x27f395=_0x5afc82['plugins']['get']('TrackChangesEditing');_0x27f395['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x27f395['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x27f395['registerBlockAttribute']('headingRows'),_0x27f395['registerBlockAttribute']('headingColumns'),_0x27f395['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x252805,'FORMAT_HEADER_ROW')),_0x27f395['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x252805,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x539c35=this['editor']['plugins']['get']('TrackChangesEditing'),_0x72dfa=this['editor']['plugins']['get']('TableUtils'),_0x247147=this['editor']['plugins']['get'](Dt)['_acceptFormatSuggestionCallbackFactory']();function _0x31643c({showActiveMarker:_0x392ea5=!0x0,setDataAttribute:_0x3bbdca=!0x0}={}){return(_0x59d308,_0x53cad2,_0xf570d9)=>{const {type:_0x15b7b3,id:_0x22b1ac}=_0x539c35['_splitMarkerName'](_0x53cad2['markerName']);if(!_0x539c35['hasSuggestion'](_0x22b1ac))return;const _0x1b194e=_0x539c35['getSuggestion'](_0x22b1ac),_0x13d885=_0x1b194e['data'];if('formatBlock'!=_0x1b194e['type']||!_0x13d885||'setTableColumnHeader'!=_0x13d885['commandName'])return;if(_0x53cad2['item'])return void _0x59d308['stop']();if(!_0xf570d9['consumable']['consume'](_0x53cad2['markerRange'],_0x59d308['name']))return;const _0x2b80ff=_0x53cad2['markerRange']['start']['nodeAfter'],_0x174afe=_0x53cad2['markerRange']['end']['nodeBefore'],_0x5d0c26=_0x2b80ff['parent']['parent'],{column:_0x232425}=_0x72dfa['getCellLocation'](_0x2b80ff),{column:_0x16b1d0}=_0x72dfa['getCellLocation'](_0x174afe);for(let _0x4b293d=_0x232425;_0x4b293d<=_0x16b1d0;_0x4b293d++){const _0x277aaa=_0x72dfa['createTableWalker'](_0x5d0c26,{'column':_0x4b293d,'includeAllSlots':!0x1});for(const _0x5358f2 of _0x277aaa){const _0xe897db=_0x5358f2['cell'],_0x15079f=_0xf570d9['mapper']['toViewElement'](_0xe897db);_0xf570d9['writer']['addClass']('ck-suggestion-marker-'+_0x15b7b3,_0x15079f),_0x3bbdca&&_0xf570d9['writer']['setAttribute']('data-suggestion',_0x22b1ac,_0x15079f),_0xf570d9['mapper']['bindElementToMarker'](_0x15079f,_0x53cad2['markerName']),_0x392ea5&&(_0x539c35['activeMarkers']['includes'](_0x53cad2['markerName'])?_0xf570d9['writer']['addClass']('ck-suggestion-marker--active',_0x15079f):_0xf570d9['writer']['removeClass']('ck-suggestion-marker--active',_0x15079f));}}};}_0x539c35['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x247147),_0x539c35['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x247147),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x31643c(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1e39a1,_0x39637a,_0x22b5bd)=>{_0x22b5bd['options']['showSuggestionHighlights']&&_0x31643c({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1e39a1,_0x39637a,_0x22b5bd);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x45daa0,_0x7453ae,_0x3da329)=>{const {type:_0x120c2b,id:_0x416878}=_0x539c35['_splitMarkerName'](_0x7453ae['markerName']);if(!_0x539c35['hasSuggestion'](_0x416878))return;const _0xefa86e=_0x539c35['getSuggestion'](_0x416878),_0xa68a31=_0xefa86e['data'];if('formatBlock'!=_0xefa86e['type']||!_0xa68a31||'setTableColumnHeader'!=_0xa68a31['commandName'])return;const _0x45e66a=_0x3da329['mapper']['markerNameToElements'](_0x7453ae['markerName']);if(_0x45e66a){for(const _0x2000c1 of _0x45e66a)_0x3da329['writer']['removeClass']('ck-suggestion-marker-'+_0x120c2b,_0x2000c1),_0x3da329['writer']['removeClass']('ck-suggestion-marker--active',_0x2000c1),_0x3da329['writer']['removeAttribute']('data-suggestion',_0x2000c1),_0x3da329['mapper']['unbindElementFromMarkerName'](_0x2000c1,_0x7453ae['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x312721=this['editor'],_0x3fa82f=_0x312721['locale'];function _0xce1f09(_0x384765){return{'type':'format','content':o(_0x3fa82f,'*Format:*\x20%0',_0x384765)};}_0x312721['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1fbd1f=>{if('formatBlock'!=_0x1fbd1f['type'])return;const {data:_0xe810be}=_0x1fbd1f;if(_0xe810be){if('setTableRowHeader'==_0xe810be['commandName']){const _0x1b4d1b=_0xe810be['commandParams'][0x0]['forceValue'];return _0xce1f09(o(_0x3fa82f,_0x1b4d1b?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0xe810be['commandName']){const _0x1e71c1=_0xe810be['commandParams'][0x0]['forceValue'];return _0xce1f09(o(_0x3fa82f,_0x1e71c1?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Tt extends _0x4be19b{['afterInit'](){const _0xd2b0ac=this['editor'],_0x2523f9=_0xd2b0ac['locale'],_0x46e4a7=_0xd2b0ac['plugins']['get']('TrackChangesEditing');function _0x15098f(_0x9faa5){return{'type':'format','content':''+o(_0x2523f9,'*Set\x20table\x20type:*\x20%0',_0x9faa5)};}_0xd2b0ac['plugins']['has']('TableLayout')&&(_0x46e4a7['enableCommand']('insertTableLayout'),_0x46e4a7['enableDefaultAttributesIntegration']('tableType'),_0x46e4a7['registerBlockAttribute']('tableType'),_0x46e4a7['descriptionFactory']['registerElementLabel'](_0xd2bec=>_0xd2bec['is']('element','table')&&'layout'===_0xd2bec['getAttribute']('tableType'),_0x1028b5=>o(_0x2523f9,'ELEMENT_LAYOUT_TABLE',_0x1028b5)),_0x46e4a7['descriptionFactory']['registerDescriptionCallback'](_0x43386f=>{const {data:_0x533324}=_0x43386f;if(_0x533324&&'tableType'==_0x533324['key'])switch(_0x533324['newValue']){case'layout':return _0x15098f(o(_0x2523f9,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x15098f(o(_0x2523f9,'ELEMENT_CONTENT_TABLE'));}}));}}const Ue=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],He=/* #__PURE__ -- @preserve */
25
+ Object['fromEntries'](Ue['map'](_0x134686=>[_0x134686,null]));class Ot extends _0x4be19b{static get['requires'](){return[Dt];}['afterInit'](){const _0x3b6133=this['editor'];if(!_0x3b6133['plugins']['has']('TableClipboard'))return;const _0x201c18=_0x3b6133['plugins']['get']('TrackChangesEditing'),_0xba5778=_0x3b6133['plugins']['get']('TableUtils'),_0x59ff9a=_0x3b6133['plugins']['get'](Dt),_0x16c488=_0x3b6133['plugins']['get']('TableClipboard'),_0x549bf7=_0x3b6133['plugins']['get']('TableSelection'),_0x8b4d63=_0x3b6133['plugins']['get'](_0x556691);_0x59ff9a['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x3b6133['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x3b6133['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x5fa3a4=null,_0x23f024=!0x1;_0x8b4d63['on']('contentInsertion',(_0x59abae,_0xbc272e)=>{_0x23f024='paste'===_0xbc272e['method'];}),_0x3b6133['model']['on']('insertContent',(_0x33f3ab,_0x405b4e)=>{if(!_0x23f024&&null===_0x549bf7['getSelectedTableCells']())return;const [_0x4a7b5e,_0x4f0f91]=_0x405b4e,_0xb29d62=_0x405b4e[_0x405b4e['length']-0x1];_0xb29d62&&_0xb29d62['forceDefaultExecution']||_0x201c18['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x44cff1,_0x2928c7,_0x491d4b,_0x18e0dc,_0x3fec40){if(_0x2928c7&&!_0x2928c7['is']('documentSelection'))return!0x1;const _0x21edc4=_0x3fec40['getTableIfOnlyTableInContent'](_0x44cff1,_0x491d4b);if(!_0x21edc4||!Ge(_0x21edc4,void 0x0,_0x18e0dc))return!0x1;const _0x2762bf=_0x18e0dc['getSelectionAffectedTableCells'](_0x491d4b['document']['selection']);if(!_0x2762bf['length'])return!0x1;const _0x1044a7=_0x2762bf[0x0]['findAncestor']('table'),_0x258ed8=_0x18e0dc['getRowIndexes'](_0x2762bf),_0x1544c1=_0x18e0dc['getColumnIndexes'](_0x2762bf),_0x400c45={'startRow':_0x258ed8['first'],'endRow':_0x258ed8['last'],'startColumn':_0x1544c1['first'],'endColumn':_0x1544c1['last']};return 0x1==_0x2762bf['length']&&(_0x400c45['endRow']+=_0x18e0dc['getRows'](_0x21edc4)-0x1,_0x400c45['endColumn']+=_0x18e0dc['getColumns'](_0x21edc4)-0x1),Ge(_0x1044a7,_0x400c45,_0x18e0dc);}(_0x4a7b5e,_0x4f0f91,_0x3b6133['model'],_0xba5778,_0x16c488)&&(_0x33f3ab['stop'](),_0x5fa3a4={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x3b6133['model']['change'](()=>{_0x3b6133['model']['insertContent'](_0x405b4e[0x0],_0x405b4e[0x1],_0x405b4e[0x2],{'forceDefaultExecution':!0x0});const _0x3af58a=_0xf4a34a(),{rowInsertionRanges:_0xb38124,columnInsertionRanges:_0x397b08,insertionRanges:_0x59fe17,deletionRanges:_0x123ddd,cells:_0x4c4ba8}=_0x5fa3a4;_0xb38124['length']&&_0x201c18['markMultiRangeInsertion'](_0xb38124,'tablePasteRow',{'tablePasteChainId':_0x3af58a}),_0x397b08['length']&&_0x201c18['markMultiRangeInsertion'](_0x397b08,'tablePasteColumn',{'tablePasteChainId':_0x3af58a}),_0x59fe17['length']&&(_0x201c18['markMultiRangeInsertion'](_0x59fe17,'tablePaste',{'tablePasteChainId':_0x3af58a,'skipNestingCheck':!0x0}),_0x59fe17['forEach'](_0x229acd=>_0x229acd['detach']?.())),_0x123ddd['length']&&(_0x201c18['markMultiRangeDeletion'](_0x123ddd,'tablePaste',{'tablePasteChainId':_0x3af58a,'skipNestingCheck':!0x0}),_0x123ddd['forEach'](_0x2c3ea0=>_0x2c3ea0['detach']?.()));const _0x44f2e9=_0x201c18['markMultiRangeBlockFormat'](_0x4c4ba8['map'](({element:_0x4fdbc3})=>_0x4fdbc3),{'formatGroupId':_0xf4a34a()},[],'tablePasteCell',{'tablePasteChainId':_0x3af58a});if(_0x44f2e9){const _0x83cafe=_0x44f2e9['getMarkers'](),_0x50fb88=[];for(const {element:_0x2e829d,attributes:_0x28d7c7}of _0x4c4ba8){if(!_0x28d7c7)continue;const _0x14ad01=_0x3b6133['model']['createRangeOn'](_0x2e829d),_0x34d558=_0x83cafe['find'](_0x2077ef=>_0x2077ef['getRange']()['isEqual'](_0x14ad01));_0x34d558&&_0x50fb88['push']([_0x34d558['name'],_0x28d7c7]);}_0x50fb88['length']&&_0x44f2e9['setAttribute']('markerAttributes',Object['fromEntries'](_0x50fb88));}_0x5fa3a4=null;}));},{'priority':_0x4d4930['high']+0xa}),_0x8b4d63['on']('contentInsertion',()=>{_0x23f024=!0x1;},{'priority':'lowest'}),_0x3b6133['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0xf81b2,_0x1e7bca)=>{const [_0x57b66f,_0x39ee77,,_0x301f61]=_0x1e7bca;if(!_0x5fa3a4)return;_0xf81b2['stop']();const _0x1afde5=_0x57b66f['cell'],_0x29a233=_0x39ee77,_0x1223da=ze(_0x1afde5),_0x31208e=ze(_0x29a233);_0xf81b2['return']=_0x1afde5;let _0x45fe55=null,_0x11a143=null;if(_0x31208e||_0x1223da){if(_0x1223da&&!_0x31208e){_0x301f61['remove'](_0x1afde5['getChild'](0x0));for(const _0x2b8ccc of Array['from'](_0x29a233['getChildren']()))_0x301f61['insert'](_0x2b8ccc,_0x1afde5,'end');const _0x47b682=_0x5fa3a4['rowInsertionIndexes']['includes'](_0x57b66f['row']),_0x2f0b32=_0x5fa3a4['columnInsertionIndexes']['includes'](_0x57b66f['column']);_0x47b682||_0x2f0b32||(_0x45fe55=_0x5c6c0b['fromRange'](_0x301f61['createRangeIn'](_0x1afde5)));}else _0x31208e&&!_0x1223da&&(_0x11a143=_0x301f61['createRangeIn'](_0x1afde5));}else{const _0x2ec97c=_0x301f61['createElement']('tableCellSuggestion'),_0x2692a0=_0x301f61['createElement']('tableCellSuggestion');_0x301f61['wrap'](_0x301f61['createRangeIn'](_0x1afde5),_0x2692a0),_0x301f61['insert'](_0x2ec97c,_0x1afde5,0x0);for(const _0x5091a1 of Array['from'](_0x29a233['getChildren']()))_0x301f61['insert'](_0x5091a1,_0x2ec97c,'end');_0x45fe55=_0x5c6c0b['fromRange'](_0x301f61['createRangeOn'](_0x2ec97c)),_0x11a143=_0x5c6c0b['fromRange'](_0x301f61['createRangeOn'](_0x2692a0));}const _0x417413=Array['from'](_0x29a233['getAttributes']())['filter'](([_0x34bf73])=>Ue['includes'](_0x34bf73));_0x5fa3a4['cells']['push']({'element':_0x1afde5,'attributes':_0x417413['length']?Object['fromEntries'](_0x417413):null}),_0x45fe55&&_0x5fa3a4['insertionRanges']['push'](_0x45fe55),_0x11a143&&_0x5fa3a4['deletionRanges']['push'](_0x11a143);},{'priority':'high'}),_0xba5778['on']('insertColumns',(_0x1b3fd3,_0x57a986)=>{const [_0x107c3b,_0x44aee2={}]=_0x57a986;if(!_0x5fa3a4)return;const _0x2e69da=_0x44aee2['at']||0x0,_0x2e6785=_0x44aee2['columns']||0x1;_0x5fa3a4['columnInsertionIndexes']=new Array(_0x2e6785)['fill'](_0x2e69da)['map']((_0x1deb47,_0x3b67e8)=>_0x1deb47+_0x3b67e8);for(const {cell:_0x398ee9}of _0xba5778['createTableWalker'](_0x107c3b,{'startColumn':_0x2e69da,'endColumn':_0x2e69da+_0x2e6785-0x1}))_0x5fa3a4['columnInsertionRanges']['push'](_0x3b6133['model']['createRangeOn'](_0x398ee9));},{'priority':'low'}),_0xba5778['on']('insertRows',(_0x509264,_0x269104)=>{const [_0xbc8de4,_0x41b671={}]=_0x269104;if(!_0x5fa3a4)return;const _0x2fe6ed=_0x41b671['at']||0x0,_0x14b6a2=_0x41b671['rows']||0x1;_0x5fa3a4['rowInsertionIndexes']=new Array(_0x14b6a2)['fill'](_0x2fe6ed)['map']((_0x14a659,_0x5b7198)=>_0x14a659+_0x5b7198);for(const {cell:_0x1adcb4}of _0xba5778['createTableWalker'](_0xbc8de4,{'startRow':_0x2fe6ed,'endRow':_0x2fe6ed+_0x14b6a2-0x1}))_0x5fa3a4['rowInsertionRanges']['push'](_0x3b6133['model']['createRangeOn'](_0x1adcb4));},{'priority':'low'}),_0x201c18['descriptionFactory']['registerDescriptionCallback'](_0x3bb26e=>{if(_0x3bb26e['subType']&&_0x3bb26e['subType']['startsWith']('tablePaste'))return _0x3bb26e['previous']?{}:{'type':'insertion','content':o(_0x3b6133['locale'],'*Replace\x20table\x20cells*')};});const _0x391305=()=>!0x1;for(const _0x5dbb7b of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x201c18['_suggestionFactory']['registerCustomCallback']('insertion',_0x5dbb7b,'join',_0x391305),_0x201c18['_suggestionFactory']['registerCustomCallback']('deletion',_0x5dbb7b,'join',_0x391305),_0x201c18['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5dbb7b,'join',_0x391305);_0x201c18['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x391305),_0x201c18['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0xd18daf,_0x1b73cb,_0x503229)=>{const _0x356fd9=_0xd18daf['map'](_0x5ee097=>_0x5ee097['getContainedElement']())['filter'](_0x38415b=>_0x38415b),_0x41b03f=new Map(_0x356fd9['map'](_0x2bd406=>[_0x2bd406,null]));if(_0x5fa3a4){for(const {element:_0x47f263,attributes:_0x2080e7}of _0x5fa3a4['cells'])_0x2080e7&&_0x41b03f['set'](_0x47f263,_0x2080e7);}else{if(_0x503229&&_0x503229['markerAttributes'])for(const [_0x304be8,_0x740542]of Object['entries'](_0x503229['markerAttributes'])){const _0x2c091f=_0x3b6133['model']['markers']['get'](_0x304be8),_0x5ae50f=_0x2c091f?_0x2c091f['getRange']()['getContainedElement']():null;_0x5ae50f&&_0x41b03f['set'](_0x5ae50f,_0x740542);}}_0x3b6133['model']['change'](_0x35f123=>{for(const [_0x750722,_0x341e8d]of _0x41b03f)_0x35f123['setAttributes']({...He,..._0x341e8d},_0x750722);});});const _0x22ac08=(_0xd47732,_0x1ef330)=>{_0x201c18['_suggestionFactory']['registerCustomCallback'](_0xd47732,'tablePaste',_0x1ef330,(_0x1a1f3b,_0x26e294,_0x351478)=>{_0x3b6133['model']['change'](_0xaf6f0d=>{const _0x5966e5=[];for(const _0x16df5d of _0x1a1f3b){const _0x4a0946=_0x16df5d['start']['nodeAfter'];_0x4a0946['is']('element','tableCellSuggestion')&&_0x5966e5['push'](_0x4a0946);}_0x201c18['_suggestionFactory']['getSuggestionCallback'](_0xd47732,null,_0x1ef330)(_0x1a1f3b,_0x26e294,_0x351478);for(const _0x1e146a of _0x5966e5)'$graveyard'!=_0x1e146a['root']['rootName']&&_0xaf6f0d['unwrap'](_0x1e146a);});});};_0x22ac08('insertion','accept'),_0x22ac08('insertion','discard'),_0x22ac08('deletion','accept'),_0x22ac08('deletion','discard'),_0x201c18['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x51f2e0=>{const _0x1e0e56=_0x51f2e0['map'](_0x400fad=>_0x400fad['getContainedElement']()),_0x3c69a1=_0x1e0e56[0x0]['findAncestor']('table'),{minRow:_0x561819,maxRow:_0x38e538}=_0x59ff9a['_getCoordsForCells'](_0x1e0e56);_0xba5778['removeRows'](_0x3c69a1,{'at':_0x561819,'rows':_0x38e538-_0x561819+0x1});}),_0x201c18['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x5ca640=>{const _0x1ff491=_0x5ca640['map'](_0x29cc4b=>_0x29cc4b['getContainedElement']()),_0x1f3a31=_0x1ff491[0x0]['findAncestor']('table'),{minColumn:_0xaa0fff,maxColumn:_0x276b18}=_0x59ff9a['_getCoordsForCells'](_0x1ff491);_0xba5778['removeColumns'](_0x1f3a31,{'at':_0xaa0fff,'columns':_0x276b18-_0xaa0fff+0x1});});const _0x37ff1d=(_0x5c4960,_0x36e0c0)=>{if(!_0x36e0c0['subType']||!_0x36e0c0['subType']['startsWith']('tablePaste'))return;const _0x4c5b6d=_0x36e0c0['attributes']['tablePasteChainId'],_0x38c233=_0x201c18['getSuggestions']()['filter'](_0x1731bf=>_0x1731bf['isInContent']&&_0x1731bf['attributes']&&_0x1731bf['attributes']['tablePasteChainId']==_0x4c5b6d);_0x38c233['length']&&_0x36e0c0['getAllAdjacentSuggestions']()['length']!=_0x38c233['length']&&_0x38c233['reduce']((_0x1c24d9,_0x357c4b)=>(_0x1c24d9['next']=_0x357c4b,_0x357c4b['previous']=_0x1c24d9,_0x357c4b));};function _0x255b68(_0x2529ae,_0x988b70=!0x0){const {id:_0x24ce9e,authorId:_0xc91948}=_0x201c18['_splitMarkerName'](_0x2529ae['markerName']),_0x15ab15=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x255baa=_0x201c18['activeMarkers']['includes'](_0x2529ae['markerName']);return _0x255baa&&_0x15ab15['push']('ck-suggestion-marker--active'),{'classes':_0x15ab15,'attributes':{'data-suggestion':_0x24ce9e,'data-author-id':_0xc91948},'priority':_0x255baa&&_0x988b70?0xbc2:0xbb8};}_0x201c18['on']('suggestionLoaded',_0x37ff1d,{'priority':'high'}),_0x201c18['on']('suggestionUnloaded',_0x37ff1d,{'priority':'high'}),_0x3b6133['model']['document']['registerPostFixer'](()=>{let _0x47af16=!0x1;const _0x34f7df=Array['from'](_0x3b6133['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1ede7d,data:_0x2a8acf}of _0x34f7df){const {group:_0x254c97,type:_0xa4d320,id:_0x1c1832}=_0x201c18['_splitMarkerName'](_0x1ede7d);if('suggestion'!=_0x254c97||'deletion'!=_0xa4d320||_0x2a8acf['oldRange'])continue;if(!_0x201c18['hasSuggestion'](_0x1c1832))continue;const _0x5a480a=_0x201c18['getSuggestion'](_0x1c1832)['getRanges'](),_0x4e369e=_0x3b6133['plugins']['get']('Users')['me'];for(const _0x12518d of _0x201c18['getSuggestions']()){if(!_0x12518d['isInContent']||_0x12518d['author']!=_0x4e369e)continue;if('formatBlock'!=_0x12518d['type']||'tablePasteCell'!=_0x12518d['subType'])continue;if(_0x12518d['getRanges']()['every'](_0x320260=>_0x5a480a['some'](_0x1ade24=>_0x1ade24['containsRange'](_0x320260,!0x0)))){for(const _0xd9c1e4 of _0x12518d['getAllAdjacentSuggestions']())_0xd9c1e4['isInContent']&&(_0xd9c1e4['discard'](),_0x47af16=!0x0);}}}return _0x47af16;}),_0x3b6133['model']['document']['registerPostFixer'](_0x2c5ba0=>{const _0x546b3e=_0x3b6133['commands']['get']('redo');if(!_0x546b3e||!_0x546b3e['_createdBatches']['has'](_0x2c5ba0['batch']))return!0x1;let _0x168c71=!0x1;const _0x240026=_0x3b6133['plugins']['get']('Users')['me'],_0x239d0c=_0x3b6133['model']['document']['differ']['getChanges'](),_0x930c36=Array['from'](_0x3b6133['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x41a95d,data:_0x3686ea})=>{const {group:_0xe60d6b,subType:_0x261291,authorId:_0x42b9e5}=_0x201c18['_splitMarkerName'](_0x41a95d);return'suggestion'==_0xe60d6b&&'tablePaste'==_0x261291&&_0x42b9e5==_0x240026['id']&&!_0x3686ea['oldRange'];});for(const _0x222438 of _0x239d0c){if('insert'!=_0x222438['type']||'tableCellSuggestion'!=_0x222438['name']||0x1!=_0x222438['length'])continue;const _0x28074f=_0x2c5ba0['createRange'](_0x222438['position'],_0x222438['position']['getShiftedBy'](0x1));if(!_0x930c36['find'](({data:_0x46e207})=>_0x46e207['newRange']['isEqual'](_0x28074f))){for(const {name:_0x181b88,data:_0x56fac6}of _0x930c36)if(_0x28074f['containsRange'](_0x56fac6['newRange'])){_0x2c5ba0['updateMarker'](_0x181b88,{'range':_0x28074f}),_0x168c71=!0x0;break;}}}return _0x168c71;}),_0x3b6133['model']['document']['registerPostFixer'](_0x3e1360=>{let _0x3c3937=!0x1;const _0x1517ee=_0x3b6133['plugins']['get']('Users')['me'],_0x2e6315=_0x201c18['getSuggestions']()['filter'](_0x14c5ed=>_0x14c5ed['isInContent']&&_0x14c5ed['author']==_0x1517ee),_0x2352c4=new Set(),_0x14421f=new Set();for(const _0x526e97 of _0x2e6315)if('tablePaste'==_0x526e97['subType'])for(const _0x408707 of _0x526e97['getMarkers']()){const _0x3dad4e=_0x408707['getRange']()['getContainedElement']();if(_0x3dad4e){if(_0x3dad4e['is']('element','tableCellSuggestion')&&ze(_0x3dad4e)){_0x526e97['removeMarker'](_0x408707['name']),_0x2352c4['add'](_0x3dad4e),_0x3c3937=!0x0;const _0x38a243=_0x3dad4e['nextSibling'],_0x3136b5=_0x3dad4e['previousSibling'],_0x3edf6c=_0x38a243&&_0x38a243['is']('element','tableCellSuggestion'),_0xf3bf29=_0x3136b5&&_0x3136b5['is']('element','tableCellSuggestion');_0x3edf6c&&!_0x2352c4['has'](_0x38a243)&&_0x14421f['add'](_0x38a243),_0xf3bf29&&!_0x2352c4['has'](_0x3136b5)&&_0x14421f['add'](_0x3136b5);}else _0x3dad4e['is']('element','paragraph')&&_0x3dad4e['isEmpty']&&(_0x526e97['removeMarker'](_0x408707['name']),_0x3c3937=!0x0);}}else{if('tablePasteCell'==_0x526e97['subType']){if(!_0x526e97['attributes']||!_0x526e97['attributes']['tablePasteChainId'])continue;const _0xb339c1=_0x526e97['attributes']['markerAttributes'];if(_0xb339c1&&Object['keys'](_0xb339c1)['length'])continue;const _0x469d6b=_0x526e97['attributes']['tablePasteChainId'];let _0x4d6346=!0x0,_0x2a1e8c=!0x0;for(const _0x11f415 of _0x2e6315)if(_0x11f415['subType']&&_0x11f415['subType']['startsWith']('tablePaste')){if(!_0x11f415['attributes']['tablePasteChainId']){_0x2a1e8c=!0x1;break;}if(_0x11f415['id']!=_0x526e97['id']&&_0x11f415['attributes']['tablePasteChainId']==_0x469d6b){_0x4d6346=!0x1;break;}}_0x2a1e8c&&_0x4d6346&&(_0x526e97['removeMarkers'](),_0x3c3937=!0x0);}}for(const _0x48a9db of _0x2352c4)_0x3e1360['remove'](_0x48a9db);for(const _0x40e234 of _0x14421f)_0x3e1360['unwrap'](_0x40e234);return _0x3c3937;}),_0x3b6133['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x1f1938=>_0x255b68(_0x1f1938),'converterPriority':'high'}),_0x3b6133['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x59e21e,_0x4fe567)=>_0x4fe567['options']['showSuggestionHighlights']?_0x255b68(_0x59e21e,!0x1):null,'converterPriority':'high'});const _0x311879=_0x3b6133['editing']['view'];this['listenTo'](_0x311879['document'],'clipboardOutput',(_0x346d21,_0x1bf55e)=>{const _0x11de10=[];for(const _0x17de33 of _0x311879['createRangeIn'](_0x1bf55e['content'])['getItems']())_0x17de33['is']('element','suggestion-td')&&_0x11de10['push'](_0x17de33);_0x311879['change'](_0x3e48fd=>{for(const _0xacfc61 of _0x11de10)_0x3e48fd['move'](_0x3e48fd['createRangeIn'](_0xacfc61),_0x3e48fd['createPositionBefore'](_0xacfc61)),_0x3e48fd['remove'](_0xacfc61);});});}}function ze(_0xd4816c){if(_0xd4816c['isEmpty'])return!0x0;const _0x3e1c19=_0xd4816c['getChild'](0x0);return _0x3e1c19['is']('element','paragraph')&&_0x3e1c19['isEmpty'];}function Ge(_0x20d1da,_0x20fc8c={},_0x2208f4){for(const {isAnchor:_0x26e588,cellHeight:_0x370082,cellWidth:_0x8f14bd}of _0x2208f4['createTableWalker'](_0x20d1da,{'includeAllSlots':!0x0,..._0x20fc8c}))if(!_0x26e588||0x1!=_0x370082||0x1!=_0x8f14bd)return!0x1;return!0x0;}class xt extends _0x4be19b{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x590bfc=this['editor']['plugins']['get']('TrackChangesEditing');_0x590bfc['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x590bfc['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x590bfc['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x590bfc['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x590bfc['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x590bfc['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x794d3b,_0x2435c1){const _0x9de015=this['editor']['plugins']['get']('TrackChangesEditing'),_0x20ea55=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x126f4a=_0x2435c1['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x2af691=_0x20ea55['getColumnGroupElement'](_0x126f4a);let _0x17386d=_0x2af691?_0x20ea55['getTableColumnsWidths'](_0x2af691):null,_0x27de4a=_0x126f4a['getAttribute']('tableWidth')||null;const _0x46b107=_0x2435c1['tableWidth']||_0x27de4a,_0x500fa0=_0x2435c1['columnWidths']||_0x17386d,_0x5affc6=this['editor']['plugins']['get']('Users')['me'];for(const _0x1f631b of _0x9de015['getSuggestions']()){const _0x4b8137=_0x1f631b['getContainedElement']();if('resizeTable'===_0x1f631b['subType']&&_0x4b8137===_0x126f4a){_0x1f631b['author']!==_0x5affc6&&_0x1f631b['discard']();const _0x2e3eea=_0x1f631b['data']['commandParams'];_0x27de4a=_0x2e3eea[0x0]['tableWidth'],_0x17386d=_0x2e3eea[0x0]['columnWidths'];break;}}_0x794d3b({'table':_0x126f4a,'tableWidth':_0x46b107,'columnWidths':_0x500fa0}),_0x9de015['markBlockFormat'](_0x126f4a,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x27de4a,'columnWidths':_0x17386d}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x5b3043){if('formatBlock'!=_0x5b3043['type']&&'formatInline'!=_0x5b3043['type'])return;const {data:_0x409024}=_0x5b3043;if(_0x409024&&'resizeTable'===_0x409024['formatGroupId']){const _0x58b3ca='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x58b3ca)};}}}class Et extends _0x4be19b{['afterInit'](){const _0x39a359=this['editor'];_0x39a359['plugins']['has']('Template')&&_0x39a359['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Rt extends _0x4be19b{['afterInit'](){const _0x4ac712=this['editor'];if(!_0x4ac712['commands']['get']('insertTableOfContents'))return;_0x4ac712['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x15f075=_0x4ac712['plugins']['get']('TrackChangesEditing'),_0x5bb6ec=_0x4ac712['locale'];_0x15f075['descriptionFactory']['registerElementLabel']('tableOfContents',_0x4348ca=>o(_0x5bb6ec,'ELEMENT_TABLE_OF_CONTENTS',_0x4348ca));}}class Ut extends _0x4be19b{['afterInit'](){const _0x4da352=this['editor'];if(!_0x4da352['plugins']['has']('Title'))return;const _0x5638f3=_0x4da352['plugins']['get']('TrackChangesEditing');_0x5638f3['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x4da352['locale'],'ELEMENT_TITLE')),_0x4da352['model']['document']['registerPostFixer'](_0x397727=>{let _0x29b72f=!0x1;const _0xc77d05=Array['from'](_0x4da352['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2ed57c,data:_0xf5e022}of _0xc77d05){const {group:_0x33b027}=_0x5638f3['_splitMarkerName'](_0x2ed57c);if('suggestion'!==_0x33b027||!_0xf5e022['newRange'])continue;const _0x2d53fe=_0xf5e022['newRange'],_0x39e946=_0x2d53fe['end']['nodeBefore'];if(!_0x39e946||!_0x39e946['is']('element','title-content'))continue;if(!_0x2d53fe['start']['isTouching'](_0x2d53fe['end']))continue;const _0x3725ab=_0x4da352['model']['schema']['getNearestSelectionRange'](_0x2d53fe['end'],'forward');if(_0x3725ab&&_0x3725ab['isCollapsed']){const _0x48fd99=_0x397727['createRange'](_0x2d53fe['start'],_0x3725ab['start']);_0x48fd99['isEqual'](_0x2d53fe)||(_0x397727['updateMarker'](_0x2ed57c,{'range':_0x48fd99}),_0x29b72f=!0x0);}_0x29b72f||(_0x397727['removeMarker'](_0x2ed57c),_0x29b72f=!0x0);}return _0x29b72f;});}}class Vt extends _0x4be19b{['afterInit'](){const _0x5d917f=this['editor'],_0x5b66f0=_0x5d917f['plugins']['get']('TrackChangesEditing');_0x5d917f['plugins']['has']('Uploadcare')&&(_0x5b66f0['enableCommand']('uploadcare'),_0x5d917f['plugins']['has']('UploadcareImageEdit')&&(_0x5b66f0['enableCommand']('uploadcareImageEdit'),_0x5b66f0['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x5b66f0['registerBlockAttribute']('uploadcareImageId'),_0x5b66f0['descriptionFactory']['registerDescriptionCallback'](_0x1454a1=>{if('attribute'!=_0x1454a1['type'])return;const {data:_0x122591}=_0x1454a1;return _0x122591&&'uploadcareImageId'==_0x122591['key']?{'type':'format','content':''}:void 0x0;})));}}class Ft extends _0x4be19b{['afterInit'](){const _0x2390ad=this['editor'],_0x5ba86a=_0x2390ad['plugins']['get']('TrackChangesEditing');_0x2390ad['plugins']['has']('UndoEditing')&&(_0x5ba86a['enableCommand']('undo'),_0x5ba86a['enableCommand']('redo'));}}class Pt extends _0x4be19b{static get['requires'](){return[Dt];}['afterInit'](){const _0x17526c=this['editor'];if(!_0x17526c['plugins']['has']('TableCaptionEditing'))return;_0x17526c['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Gt extends _0x4be19b{['tableProperties'];['tableCellProperties'];constructor(_0x316f53){super(_0x316f53),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 _0x2556e8=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x2817f7 of this['tableProperties'])_0x2556e8['enableCommand'](_0x2817f7,(_0x527290,_0x419247)=>{const _0x5d4a13=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x2817f7,[_0x5d4a13],this['tableProperties'],'tableProperties',_0x527290,_0x419247);});_0x2556e8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x2556e8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2556e8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x1d93a2,_0x2c6e79)=>this['handleDiscardAction'](this['tableProperties'],_0x1d93a2,_0x2c6e79)),_0x2556e8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x2b0aeb of this['tableCellProperties'])_0x2556e8['enableCommand'](_0x2b0aeb,(_0x47180c,_0x199568)=>{const _0x3f1c8a=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x2b0aeb,_0x3f1c8a,this['tableCellProperties'],'tableCellProperties',_0x47180c,_0x199568);});_0x2556e8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x2556e8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2556e8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x1f58dd,_0x534cba)=>this['handleDiscardAction'](this['tableCellProperties'],_0x1f58dd,_0x534cba)),_0x2556e8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x2556e8['descriptionFactory']['registerDescriptionCallback'](_0x3cfafb=>this['handleSuggestionDescription'](_0x3cfafb)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x55a98f,_0x29afdc,_0x51b58d,_0x30c8b1,_0x11df8b,_0x272948){const _0xfdaa48=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x272948['batch'],()=>{for(const _0x2d4a27 of _0x29afdc){if(this['_getSuggestion'](_0x2d4a27,_0x30c8b1))_0x11df8b(_0x272948);else{const _0x8c2ecf={};for(const _0x44976c of _0x51b58d){const _0x39b8ae=_0x2d4a27['getAttribute'](_0x44976c);void 0x0!==_0x39b8ae&&(_0x8c2ecf[_0x44976c]=_0x39b8ae);}_0x11df8b(_0x272948),_0xfdaa48['markBlockFormat'](_0x2d4a27,{'commandParams':[_0x8c2ecf]},[],_0x30c8b1);}}});}['handleDiscardAction'](_0x365b80,_0xc2006d,_0x1c6671){const _0x4be1e9=_0xc2006d[0x0]['start']['nodeAfter'],_0x7db1e2=_0x1c6671['commandParams'][0x0];this['editor']['model']['change'](_0x55cc51=>{for(const _0x582a58 of _0x365b80)void 0x0!==_0x7db1e2[_0x582a58]?_0x55cc51['setAttribute'](_0x582a58,_0x7db1e2[_0x582a58],_0x4be1e9):_0x55cc51['removeAttribute'](_0x582a58,_0x4be1e9);});}['handleSuggestionDescription'](_0x51949d){if(_0x51949d['data'])switch(_0x51949d['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'](_0x5a778c,_0x39cf14){const _0x2a2766=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x15049c of _0x2a2766['getSuggestions']({'skipNotAttached':!0x0})){const _0x271784=_0x15049c['getContainedElement']();if(_0x15049c['subType']===_0x39cf14&&_0x271784===_0x5a778c)return _0x15049c;}return null;}['_registerTablePropertiesAttributes'](){const _0x2a487a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x18b08a=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x214093 of _0x18b08a){const _0x4d0cd4=_0x214093['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x2a487a['registerBlockAttribute'](_0x214093),_0x2a487a['descriptionFactory']['registerAttributeLabel'](_0x214093,o(this['editor']['locale'],'FORMAT_'+_0x4d0cd4));}}}class Lt extends _0x4be19b{['afterInit'](){const _0x4cfbd5=this['editor'];if(!_0x4cfbd5['plugins']['has']('LineHeight'))return;const _0x22e30a=_0x4cfbd5['plugins']['get']('TrackChangesEditing'),_0x13d2d6=_0x4cfbd5['locale'];_0x22e30a['enableDefaultAttributesIntegration']('lineHeight'),_0x22e30a['registerBlockAttribute']('lineHeight'),_0x22e30a['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x13d2d6,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x4be19b{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x5434f7,_0x2d4e96,_0x368dd4,V,F,G,L,J,K,q,W,H,z,Q,X,tt,et,it,nt,st,ot,rt,at,ct,ut,ht,ft,gt,lt,dt,pt,kt,jt,mt,Y,Lt,Z,wt,bt,yt,St,It,At,_t,vt,Ct,$t,Nt,Dt,Mt,Bt,Tt,Pt,Ot,xt,Rt,Gt,Et,Ut,Vt,Ft];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x460827){super(_0x460827),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x313c1c,_0x2d76f0,_0x6ca7ae,_0x29df9e)=>{this['_model']['change'](()=>{for(const _0x27c1e6 of[..._0x29df9e,..._0x6ca7ae])this['_model']['markers']['has'](_0x27c1e6)&&_0x460827['editing']['reconvertMarker'](_0x27c1e6);});}),this['descriptionFactory']=new U(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Kt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x460827['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(),_0x460827['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x460827['config']['get']('trackChanges.trackFormatChanges'),_0x460827['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x460827['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x460827,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x1ce282=this['editor'],_0x40aad3=(_0x24b932,_0x3663e7)=>{if('attribute'!=_0x24b932)return'ck-suggestion-marker-'+_0x24b932;const _0x578c3d=_0x3663e7['split']('|')[0x0];return this['_isBlockAttribute'](_0x578c3d)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x1ce282['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x1fc41c=>{const {id:_0x109057,authorId:_0x1fa321,type:_0x1d18d5,subType:_0x10370d}=this['_splitMarkerName'](_0x1fc41c['markerName']),_0x27292e=['ck-suggestion-marker',_0x40aad3(_0x1d18d5,_0x10370d)];let _0x283232=0xbb8;return this['activeMarkers']['includes'](_0x1fc41c['markerName'])&&(_0x27292e['push']('ck-suggestion-marker--active'),_0x283232=0xbc2),'deletion'==_0x1d18d5&&(_0x283232+=0x5),{'classes':_0x27292e,'attributes':{'data-suggestion':_0x109057,'data-author-id':_0x1fa321},'priority':_0x283232};}}),_0x1ce282['conversion']['for']('dataDowncast')['add'](_0x3c9f7b=>{_0x3c9f7b['on']('addMarker:suggestion',(_0x23d198,_0x94e5a4,_0x49f97b)=>{if(!_0x49f97b['options']['showSuggestionHighlights'])return;const _0x265633=_0x94e5a4['item'];if(!_0x265633)return;const _0x4f8fbc=_0x49f97b['mapper']['toViewElement'](_0x265633);_0x1ce282['model']['schema']['isObject'](_0x265633)&&_0x4f8fbc&&!_0x4f8fbc['getCustomProperty']('widget')&&_0x4f8fbc['is']('containerElement')&&_0x43134f(_0x4f8fbc,_0x49f97b['writer']);},{'priority':'high'});}),_0x1ce282['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x5a4d19,_0x5aa70f)=>{if(!_0x5aa70f['options']['showSuggestionHighlights'])return null;const {id:_0xc86be1,authorId:_0x124362,type:_0x32634c,subType:_0x14972e}=this['_splitMarkerName'](_0x5a4d19['markerName']);return{'classes':['ck-suggestion-marker',_0x40aad3(_0x32634c,_0x14972e)],'priority':0xbb8,'attributes':{'data-suggestion':_0xc86be1,'data-author-id':_0x124362}};}});const _0x3ad1a8=({showActiveMarkers:_0x1ed00f=!0x0,isAttributeSuggestion:_0x14c4d4=!0x1}={})=>(_0x110a17,_0x308d77,_0x3a247d)=>{if(!_0x308d77['item'])return;const {id:_0x25de67,authorId:_0x222f8f,subType:_0x677171}=this['_splitMarkerName'](_0x308d77['markerName']);if(_0x14c4d4){const _0x377034=re(_0x677171);if(!this['_isBlockAttribute'](_0x377034))return;}if(_0x308d77['item']['is']('selection'))return void _0x3a247d['consumable']['consume'](_0x308d77['item'],_0x110a17['name']);const _0x14649f=_0x3a247d['mapper']['toViewElement'](_0x308d77['item']);if(_0x308d77['item']['is']('element')&&_0x1ce282['model']['schema']['isBlock'](_0x308d77['item'])&&!_0x14649f['getCustomProperty']('addHighlight')){_0x3a247d['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x14649f),_0x3a247d['writer']['setAttribute']('data-suggestion',_0x25de67,_0x14649f),_0x3a247d['writer']['setAttribute']('data-author-id',_0x222f8f,_0x14649f),_0x3a247d['mapper']['bindElementToMarker'](_0x14649f,_0x308d77['markerName']),_0x1ed00f&&(this['activeMarkers']['includes'](_0x308d77['markerName'])?_0x3a247d['writer']['addClass']('ck-suggestion-marker--active',_0x14649f):_0x3a247d['writer']['removeClass']('ck-suggestion-marker--active',_0x14649f));for(const _0x4bf7fc of _0x1ce282['model']['createRangeIn'](_0x308d77['item'])['getItems']())_0x3a247d['consumable']['consume'](_0x4bf7fc,_0x110a17['name']);_0x3a247d['consumable']['consume'](_0x308d77['item'],_0x110a17['name']);}};_0x1ce282['conversion']['for']('dataDowncast')['add'](_0x423217=>{_0x423217['on']('addMarker:suggestion:formatBlock',(_0x5d0a03,_0x157543,_0x45c94b)=>{_0x45c94b['options']['showSuggestionHighlights']&&_0x3ad1a8({'showActiveMarkers':!0x1})(_0x5d0a03,_0x157543,_0x45c94b);},{'priority':'highest'});}),_0x1ce282['conversion']['for']('dataDowncast')['add'](_0xf36cb1=>{_0xf36cb1['on']('addMarker:suggestion:attribute',(_0x456f8d,_0x22469b,_0x7212a2)=>{_0x7212a2['options']['showSuggestionHighlights']&&_0x3ad1a8({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x456f8d,_0x22469b,_0x7212a2);},{'priority':'highest'});}),_0x1ce282['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x30e50b,_0x426312)=>{if(_0x426312['options']['showSuggestionHighlights']){const {id:_0x272a43,authorId:_0x51fe18}=this['_splitMarkerName'](_0x30e50b);return _0x30e50b['includes'](':split')||_0x30e50b['includes'](':merge')?{'group':'suggestion','name':_0x30e50b['substr'](0xb),'attributes':{'data-suggestion':_0x272a43,'data-author-id':_0x51fe18}}:null;}return{'group':'suggestion','name':_0x30e50b['substr'](0xb)};}}),_0x1ce282['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x198f6f,{writer:_0xcf434})=>{let _0x6bf300='suggestion:'+_0x198f6f['getAttribute']('suggestion-type')+':'+_0x198f6f['getAttribute']('id');return _0x198f6f['getAttribute']('marker-count')&&(_0x6bf300+=':'+_0x198f6f['getAttribute']('marker-count')),_0xcf434['createElement']('$marker',{'data-name':_0x6bf300});}}),_0x1ce282['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x1ce282['conversion']['for']('editingDowncast')['add'](_0xc55344=>{_0xc55344['on']('addMarker:suggestion:formatBlock',_0x3ad1a8(),{'priority':'high'});}),_0x1ce282['conversion']['for']('editingDowncast')['add'](_0x265315=>{_0x265315['on']('addMarker:suggestion:attribute',_0x3ad1a8({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x1ce282['conversion']['for']('editingDowncast')['add'](_0x232f64=>{_0x232f64['on']('removeMarker:suggestion:formatBlock',(_0x193031,_0x55a2c5,_0x557dde)=>{const _0x368684=_0x557dde['mapper']['markerNameToElements'](_0x55a2c5['markerName']);if(_0x368684){for(const _0x342fd4 of _0x368684)_0x342fd4['getCustomProperty']('addHighlight')||(_0x557dde['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x342fd4),_0x557dde['writer']['removeAttribute']('data-suggestion',_0x342fd4),_0x557dde['writer']['removeAttribute']('data-author-id',_0x342fd4),_0x557dde['mapper']['unbindElementFromMarkerName'](_0x342fd4,_0x55a2c5['markerName']));}},{'priority':'high'});}),_0x1ce282['conversion']['for']('editingDowncast')['add'](_0x2c698e=>{_0x2c698e['on']('removeMarker:suggestion:attribute',(_0x17db97,_0xa68f84,_0x429a01)=>{const _0x172890=_0x429a01['mapper']['markerNameToElements'](_0xa68f84['markerName']);if(!_0x172890)return;const {subType:_0x24bf7e}=this['_splitMarkerName'](_0xa68f84['markerName']),_0xb7362c=re(_0x24bf7e);if(this['_isBlockAttribute'](_0xb7362c)){for(const _0x43c40e of _0x172890)_0x43c40e['getCustomProperty']('addHighlight')||(_0x429a01['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x43c40e),_0x429a01['writer']['removeAttribute']('data-suggestion',_0x43c40e),_0x429a01['writer']['removeAttribute']('data-author-id',_0x43c40e),_0x429a01['mapper']['unbindElementFromMarkerName'](_0x43c40e,_0xa68f84['markerName']));}},{'priority':'high'});}),_0x1ce282['model']['document']['registerPostFixer'](_0x5937f8=>{let _0x92a55=!0x1;const _0x5d807c=Array['from'](_0x1ce282['model']['document']['differ']['getChangedMarkers']()),_0x5a30a7=new Set();for(const {name:_0x2591c9,data:_0x2870aa}of _0x5d807c){const {group:_0x375fd2,type:_0x4ec157,subType:_0xe31ed6,id:_0x3bf254}=this['_splitMarkerName'](_0x2591c9);if('suggestion'!==_0x375fd2)continue;const _0x354c9e=_0xe31ed6?'suggestion:'+_0x4ec157+':'+_0xe31ed6+':'+_0x3bf254:'suggestion:'+_0x4ec157+':'+_0x3bf254,_0x4d1218=_0x1ce282['model']['markers']['getMarkersGroup'](_0x354c9e),_0x164ade=_0x1ce282['model']['markers']['get'](_0x2591c9),_0xbddd32=this['_suggestions']['get'](_0x3bf254);if(null!=_0x2870aa['newRange']){'formatInline'==_0x4ec157&&(_0x92a55=_0x92a55||Wt(_0x2870aa['newRange'],_0x2591c9,_0x5937f8,_0x1ce282['model']['schema']));const _0x5caab7='attribute'==_0x4ec157&&this['_isBlockAttribute'](_0xe31ed6['split']('|')[0x0]),_0x536e16='attribute'==_0x4ec157&&this['_isInlineAttribute'](_0xe31ed6['split']('|')[0x0]);if(_0x2870aa['newRange']['isCollapsed']||'$graveyard'==_0x2870aa['newRange']['root']['rootName']||'formatBlock'==_0x4ec157&&!Qt(_0x2870aa['newRange'])||_0x5caab7&&!Qt(_0x2870aa['newRange'])||_0x536e16&&Xt(_0x2870aa['newRange'])||'deletion'==_0x4ec157&&Xt(_0x2870aa['newRange'])||_0x164ade&&Yt(_0x164ade,_0x4d1218))_0x5937f8['removeMarker'](_0x2591c9),_0x92a55=!0x0;else{if(!_0xbddd32||!_0xbddd32['isInContent'])continue;if(_0x2870aa['newRange']&&_0x2870aa['oldRange']&&_0x2870aa['newRange']['isEqual'](_0x2870aa['oldRange']))continue;_0x5a30a7['add'](_0xbddd32);}}}return _0x5a30a7['size']>0x0&&(_0x92a55=!!this['_joinWithAdjacentSuggestions'](_0x5a30a7)||_0x92a55),_0x92a55;}),_0x1ce282['model']['document']['registerPostFixer'](_0x255367=>{let _0xd6d311=!0x1;for(const _0x8d5b25 of _0x1ce282['model']['document']['differ']['getChanges']())if('insert'==_0x8d5b25['type'])for(const _0x1c9bad of this['_suggestions']['values']()){if(_0x1c9bad['isMultiRange']||!_0x1c9bad['isInContent'])continue;const _0x90602d='formatBlock'==_0x1c9bad['type'],_0x4d2700=this['_getAttributeKey'](_0x1c9bad),_0x48f7c9=_0x4d2700&&this['_isBlockAttribute'](_0x4d2700);if(!_0x90602d&&!_0x48f7c9)continue;const _0x699f87=_0x1c9bad['getFirstRange']();if(_0x699f87['start']['parent']!=_0x699f87['end']['parent']&&!_0x699f87['end']['isAtEnd']){const _0x32fccb=_0x1ce282['model']['createPositionAt'](_0x699f87['start']['nodeAfter'],'end'),_0x518d63=_0x1ce282['model']['createRange'](_0x699f87['start'],_0x32fccb);_0x255367['updateMarker'](_0x1c9bad['getFirstMarker'](),{'range':_0x518d63}),_0xd6d311=!0x0;}}return _0xd6d311;}),_0x1ce282['model']['document']['registerPostFixer'](_0x2f3aa=>this['_processAttributeChanges'](_0x2f3aa)),_0x1ce282['model']['document']['registerPostFixer'](_0x44f20a=>!_0x44f20a['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x44f20a)),_0x1ce282['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x1ce282['model']['document']['on']('change:data',(_0x24530c,_0x478a4b)=>{if(!_0x478a4b['isLocal']||_0x478a4b['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x49d1e5=_0x1ce282['model']['document']['differ']['getChanges']();if(0x0==_0x49d1e5['length'])return;const _0x5e9437=[],_0x34717c=_0x49d1e5['filter'](_0x4bd6c8=>'attribute'==_0x4bd6c8['type']),_0x51a82c=_0x49d1e5['filter'](_0x25363b=>'insert'==_0x25363b['type']&&'$text'!=_0x25363b['name']);for(const _0x1fdc01 of _0x34717c)this['_isRegisteredAttribute'](_0x1fdc01['attributeKey'])&&_0x5e9437['push']({'key':_0x1fdc01['attributeKey'],'newValue':_0x1fdc01['attributeNewValue'],'oldValue':_0x1fdc01['attributeOldValue'],'range':te(_0x1fdc01['range'],_0x1ce282['model'])});for(const _0xfd31fa of _0x51a82c){if('rename'!=_0xfd31fa['action']&&'refresh'!=_0xfd31fa['action'])continue;const _0x3e07c5=ee(_0xfd31fa['position']['nodeAfter'],_0x1ce282['model']),_0x3172db=_0xfd31fa['before'];'rename'==_0xfd31fa['action']&&_0x5e9437['push']({'key':m,'newValue':_0xfd31fa['name'],'oldValue':_0x3172db['name'],'range':_0x3e07c5});for(const [_0x3960ec,_0x1b56f8]of _0x3172db['attributes']){if(!this['_isRegisteredAttribute'](_0x3960ec))continue;const _0x1e002d=_0xfd31fa['attributes']['get'](_0x3960ec);_0x1b56f8!==_0x1e002d&&_0x5e9437['push']({'key':_0x3960ec,'newValue':_0x1e002d,'oldValue':_0x1b56f8,'range':_0x3e07c5});}for(const [_0x4e3f9f,_0x31ed8a]of _0xfd31fa['attributes'])this['_isRegisteredAttribute'](_0x4e3f9f)&&(_0x3172db['attributes']['has'](_0x4e3f9f)||_0x5e9437['push']({'key':_0x4e3f9f,'newValue':_0x31ed8a,'oldValue':null,'range':_0x3e07c5}));}0x0!=_0x5e9437['length']&&_0x1ce282['model']['enqueueChange'](_0x478a4b,_0xf060dd=>{const _0x2cae69=_0xf4a34a();for(const {range:_0x2abfd0,key:_0x502c82,oldValue:_0x50a95e,newValue:_0x183c14}of _0x5e9437)this['markAttributeChange'](_0x2abfd0,_0x502c82,_0x50a95e,_0x183c14,{'groupId':_0x2cae69});this['_reduceExistingSuggestions'](_0xf060dd,_0x5e9437);});},{'priority':'lowest'}),_0x1ce282['model']['markers']['on']('update:suggestion',(_0x34417a,_0xcd8d1c,_0x51a7e6)=>{if(null==_0x51a7e6){const {id:_0xb4afd0}=this['_splitMarkerName'](_0xcd8d1c['name']),_0x31e239=this['_suggestions']['get'](_0xb4afd0);_0x31e239&&_0x31e239['addMarkerName'](_0xcd8d1c['name']);}}),_0x1ce282['model']['document']['on']('change:data',()=>{const _0x3565ba=Array['from'](_0x1ce282['model']['document']['differ']['getChangedMarkers']())['filter'](_0x3150e4=>'suggestion'===this['_splitMarkerName'](_0x3150e4['name'])['group']);if(0x0===_0x3565ba['length'])return;_0x3565ba['sort']((_0x19cbc9,_0x3578af)=>{const _0x2c56c2=_0x19cbc9['data']['oldRange'],_0x4631d1=_0x3578af['data']['oldRange'];return null===_0x2c56c2&&null===_0x4631d1?0x0:null===_0x2c56c2&&null!==_0x4631d1?-0x1:null!==_0x2c56c2&&null===_0x4631d1?0x1:_0x2c56c2['start']['isBefore'](_0x4631d1['start'])?-0x1:0x1;});const _0x14207f=new Set(),_0x2e2ae3=new Set();for(const {name:_0x57a8ce,data:_0x22f3f1}of _0x3565ba){const {id:_0x1ed277}=this['_splitMarkerName'](_0x57a8ce);if(null===_0x22f3f1['oldRange']){const _0x404646=this['_handleNewSuggestionMarker'](_0x57a8ce);_0x2e2ae3['add'](_0x404646);}else{const _0x44003f=this['_suggestions']['get'](_0x1ed277);null!==_0x22f3f1['newRange']||_0x44003f['isInContent']?(_0x14207f['add'](_0x44003f['head']),_0x2e2ae3['add'](_0x44003f)):this['_removeSuggestion'](_0x44003f);}}_0x2e2ae3['size']>0x0&&this['_refreshSuggestionsChain'](_0x2e2ae3);for(const _0x26b45f of _0x14207f)this['fire']('suggestionChanged',_0x26b45f);}),_0x1ce282['model']['on']('applyOperation',(_0x2a1045,_0x21076d)=>{const _0x3364fd=_0x21076d[0x0];if(!this['_suggestions']['size'])return;if(!_0x3364fd['isDocumentOperation'])return;if(_0x3364fd['batch']['isUndo']||!_0x3364fd['batch']['isLocal'])return;let _0x401a7c,_0x3c063e;switch(_0x3364fd['type']){case'insert':_0x401a7c=_0x1ce282['model']['createPositionAt'](_0x3364fd['position']),_0x3c063e=_0x401a7c['getShiftedBy'](_0x3364fd['howMany']);break;case'split':_0x401a7c=_0x1ce282['model']['createPositionAt'](_0x3364fd['splitPosition']),_0x3c063e=_0x1ce282['model']['createPositionAt'](_0x3364fd['moveTargetPosition']);break;case'move':_0x401a7c=_0x1ce282['model']['createPositionAt'](_0x3364fd['targetPosition']),_0x3c063e=_0x401a7c['getShiftedBy'](_0x3364fd['howMany']);break;default:return;}const _0xae4541=_0x1ce282['model']['createRange'](_0x401a7c,_0x3c063e);_0x1ce282['model']['change'](()=>{for(const {suggestion:_0x2b0665,meta:_0x44cc4c}of this['_findSuggestions'](_0xae4541)){if(_0x2b0665['isMultiRange'])continue;if('formatInline'==_0x2b0665['type'])continue;const _0x47ac12=this['_getAttributeKey'](_0x2b0665);if(_0x47ac12&&this['_isBlockAttribute'](_0x47ac12)&&'split'!=_0x3364fd['type'])continue;const _0x27545e=_0x2b0665['data']&&_0x2b0665['data']['multipleBlocks'];('formatBlock'!=_0x2b0665['type']||'split'==_0x3364fd['type']&&!_0x27545e)&&(_0x44cc4c['containsRangeInObject']||'insertion'==_0x2b0665['type']&&_0x44cc4c['isOwn']||_0x2b0665['getFirstRange']()['containsRange'](_0xae4541)&&this['_breakSuggestionMarker'](_0x2b0665,_0x401a7c,_0x3c063e));}});},{'priority':'lowest'}),_0x1ce282['model']['on']('deleteContent',(_0x3ccdfa,_0x2bf105)=>{const _0x275be7=_0x2bf105[0x0],_0x67e9cb=_0x2bf105[0x1];if(_0x67e9cb&&_0x67e9cb['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x275be7['isCollapsed'])return;const _0x226e4f=_0x1ce282['model']['schema'],{start:_0x433b56,end:_0x58da8b}=_0x275be7['getFirstRange'](),_0x52752b=_0x433b56['nodeAfter']&&_0x226e4f['isLimit'](_0x433b56['nodeAfter'])?null:_0x226e4f['getNearestSelectionRange'](_0x433b56,'forward'),_0xe2c736=_0x58da8b['nodeBefore']&&_0x226e4f['isLimit'](_0x58da8b['nodeBefore'])?null:_0x226e4f['getNearestSelectionRange'](_0x58da8b,'backward'),_0x2e29f7=_0x1ce282['model']['createRange'](_0x52752b?_0x52752b['start']:_0x433b56,_0xe2c736?_0xe2c736['end']:_0x58da8b);_0x1ce282['model']['change'](_0x3904d2=>{this['markDeletion'](_0x2e29f7);const _0x26dd8c=_0x1ce282['model']['schema']['getNearestSelectionRange'](_0x2e29f7['start']);_0x275be7['is']('documentSelection')?_0x3904d2['setSelection'](_0x26dd8c):_0x275be7['setTo'](_0x26dd8c);}),_0x3ccdfa['stop']();},{'priority':_0x4d4930['normal']+0xa}),_0x1ce282['model']['on']('insertContent',(_0x567982,_0xa4bd68)=>{const _0x372aec=_0xa4bd68[_0xa4bd68['length']-0x1];_0x372aec&&_0x372aec['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x1ce282['model']['change'](()=>{let _0x75a7c0=_0x1ce282['model']['insertContent'](_0xa4bd68[0x0],_0xa4bd68[0x1],_0xa4bd68[0x2],{'forceDefaultExecution':!0x0});if(!_0x75a7c0)return;_0x567982['return']=_0x75a7c0['clone']();const _0x5476cb=_0x75a7c0['end']['nodeBefore'],_0x194917=_0x1ce282['model']['schema'];_0x5476cb&&_0x194917['isBlock'](_0x5476cb)&&!_0x194917['isObject'](_0x5476cb)&&(_0x75a7c0=_0x1ce282['model']['createRange'](_0x75a7c0['start'],_0x1ce282['model']['createPositionAt'](_0x5476cb,'end'))),this['markInsertion'](_0x75a7c0);}),_0x567982['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x5c275f=new T(_0x1ce282,this['_suggestions']);_0x1ce282['commands']['add']('acceptSuggestion',_0x5c275f),this['enableCommand']('acceptSuggestion');const _0x185487=new O(_0x1ce282,this['_suggestions']);_0x1ce282['commands']['add']('discardSuggestion',_0x185487),this['enableCommand']('discardSuggestion'),_0x1ce282['commands']['add']('acceptAllSuggestions',new x(_0x1ce282,_0x5c275f,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x1ce282['commands']['add']('discardAllSuggestions',new x(_0x1ce282,_0x185487,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x1ce282['commands']['add']('acceptSelectedSuggestions',new E(_0x1ce282,_0x5c275f,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x1ce282['commands']['add']('discardSelectedSuggestions',new E(_0x1ce282,_0x185487,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0xaa4782=_0x1ce282['plugins']['get']('CommentsRepository');this['listenTo'](_0xaa4782,'addComment',(_0x3c6e1e,{threadId:_0x2a7b98})=>{const _0x8de570=this['_suggestions']['get'](_0x2a7b98);_0x8de570&&_0x8de570['commentThread']&&0x1===_0x8de570['commentThread']['length']&&this['_updateSuggestionData'](_0x2a7b98,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0xaa4782,'removeComment',(_0x40c35f,{threadId:_0x562d25})=>{const _0x23032e=this['_suggestions']['get'](_0x562d25);_0x23032e&&_0x23032e['commentThread']&&!_0x23032e['commentThread']['length']&&this['_updateSuggestionData'](_0x562d25,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x1aaac6){const _0x192096=_0x2e88fa([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]),_0x26c5e9=0x6b0f5e6f,_0xc419eb=0x6b082ab7^_0x26c5e9,_0x14f132=window[_0x2e88fa([0x44,0x61,0x74,0x65])][_0x2e88fa([0x6e,0x6f,0x77])](),_0x5d03ab=_0x1aaac6[_0x2e88fa([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x378ad5=new window[(_0x2e88fa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x8108e5=>{_0x5d03ab[_0x2e88fa([0x6f,0x6e,0x63,0x65])](_0x2e88fa([0x72,0x65,0x61,0x64,0x79]),_0x8108e5);}),_0x5aac09={[_0x2e88fa([0x6b,0x74,0x79])]:_0x2e88fa([0x45,0x43]),[_0x2e88fa([0x75,0x73,0x65])]:_0x2e88fa([0x73,0x69,0x67]),[_0x2e88fa([0x63,0x72,0x76])]:_0x2e88fa([0x50,0x2d,0x32,0x35,0x36]),[_0x2e88fa([0x78])]:_0x2e88fa([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]),[_0x2e88fa([0x79])]:_0x2e88fa([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]),[_0x2e88fa([0x61,0x6c,0x67])]:_0x2e88fa([0x45,0x53,0x32,0x35,0x36])},_0x647c51=_0x5d03ab[_0x2e88fa([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2e88fa([0x67,0x65,0x74])](_0x2e88fa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2af3f7(){let _0x411230,_0x472e8c=null,_0xfc00f5=null;try{if(_0x647c51==_0x2e88fa([0x47,0x50,0x4c]))return _0x2e88fa([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x411230=_0x5cc2d1(),!_0x411230)return _0x2e88fa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x411230[_0x2e88fa([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xfc00f5=_0x5e9d7d(_0x411230[_0x2e88fa([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x411230[_0x2e88fa([0x6a,0x74,0x69])])),await _0x5d214d()?_0x4dc08c()?_0x17dfbb()?_0x2e88fa([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x54978a()?(_0x411230[_0x2e88fa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2e88fa([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x472e8c=_0x33dc57(_0x2e88fa([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x411230[_0x2e88fa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2e88fa([0x74,0x72,0x69,0x61,0x6c])&&(_0x472e8c=_0x33dc57(_0x2e88fa([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4156a7()):_0x2e88fa([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2e88fa([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2e88fa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2e88fa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x17dfbb(){const _0x377f1f=[_0x2e88fa([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2e88fa([0x74,0x72,0x69,0x61,0x6c])][_0x2e88fa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x411230[_0x2e88fa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x14f132/0x3e8:0xe10*_0xc419eb;return _0x411230[_0x2e88fa([0x65,0x78,0x70])]<_0x377f1f;}function _0x4dc08c(){const _0x3626c6=_0x411230[_0x2e88fa([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3626c6)return!0x1;if(_0x3626c6[_0x2e88fa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e88fa([0x2a])))return!0x0;if(_0x3626c6[_0x2e88fa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e88fa([0x54,0x43])))return!0x0;if(_0x3626c6[_0x2e88fa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e88fa([0x52,0x54,0x43]))){if(_0x34be5a())return!0x0;if(_0xff1e69()||_0x438853())return!0x0;}return!0x1;}function _0x54978a(){const _0x5aff8b=_0x411230[_0x2e88fa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5aff8b||0x0==_0x5aff8b[_0x2e88fa([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x39bea9}=new URL(window[_0x2e88fa([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5aff8b[_0x2e88fa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x39bea9))return!0x0;const _0x54c076=_0x39bea9[_0x2e88fa([0x73,0x70,0x6c,0x69,0x74])](_0x2e88fa([0x2e]));return _0x5aff8b[_0x2e88fa([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4a271a=>_0x4a271a[_0x2e88fa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e88fa([0x2a])))[_0x2e88fa([0x6d,0x61,0x70])](_0x5ab15a=>_0x5ab15a[_0x2e88fa([0x73,0x70,0x6c,0x69,0x74])](_0x2e88fa([0x2e])))[_0x2e88fa([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x308f95=>_0x308f95[_0x2e88fa([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x54c076[_0x2e88fa([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2e88fa([0x6d,0x61,0x70])](_0x3a2262=>Array(_0x54c076[_0x2e88fa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3a2262[_0x2e88fa([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2e88fa([0x66,0x69,0x6c,0x6c])](_0x3a2262[0x0]===_0x2e88fa([0x2a])?_0x2e88fa([0x2a]):'')[_0x2e88fa([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3a2262))[_0x2e88fa([0x73,0x6f,0x6d,0x65])](_0xd68262=>_0x54c076[_0x2e88fa([0x65,0x76,0x65,0x72,0x79])]((_0x4337ab,_0x2cd8a6)=>_0xd68262[_0x2cd8a6]===_0x4337ab||_0xd68262[_0x2cd8a6]===_0x2e88fa([0x2a])));}function _0x4156a7(){return _0x472e8c&&_0xfc00f5?new window[(_0x2e88fa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3c91fd,_0x3f084d)=>{_0x472e8c[_0x2e88fa([0x74,0x68,0x65,0x6e])](_0x3c91fd,_0x3f084d),_0xfc00f5[_0x2e88fa([0x74,0x68,0x65,0x6e])](_0x1a77f4=>{_0x1a77f4!=_0x2e88fa([0x56,0x61,0x6c,0x69,0x64])&&_0x3c91fd(_0x1a77f4);},_0x3f084d);}):_0x472e8c||_0xfc00f5||_0x2e88fa([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5e9d7d(_0x2e948c,_0x9b6826){return new window[(_0x2e88fa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x13b4bd=>{if(_0x531439())return _0x13b4bd(_0x2e88fa([0x56,0x61,0x6c,0x69,0x64]));_0x1d8d0d(),_0x5d03ab[_0x2e88fa([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2e88fa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x45f250=!0x1;const _0x15e156=_0xf4a34a();function _0x203fc5(_0x5e4995){return!!_0x5e4995&&(typeof _0x5e4995===_0x2e88fa([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5e4995===_0x2e88fa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5e4995[_0x2e88fa([0x74,0x68,0x65,0x6e])]===_0x2e88fa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5e4995[_0x2e88fa([0x63,0x61,0x74,0x63,0x68])]===_0x2e88fa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3000a0(_0x3c6b28){_0x109b78(_0x3c6b28)[_0x2e88fa([0x74,0x68,0x65,0x6e])](_0x4d6db9=>{if(!_0x4d6db9||_0x4d6db9[_0x2e88fa([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2e88fa([0x6f,0x6b]))return _0x2e88fa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1a21cc(_0x2e2bef(_0x15e156+_0x9b6826))!=_0x4d6db9[_0x2e88fa([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2e88fa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2e88fa([0x56,0x61,0x6c,0x69,0x64]);})[_0x2e88fa([0x74,0x68,0x65,0x6e])](_0x2287dc=>(_0x558419(),_0x2287dc),()=>{const _0xa75923=_0x1d5671();return null==_0xa75923?(_0x558419(),_0x2e88fa([0x56,0x61,0x6c,0x69,0x64])):_0x2e88fa(_0x14f132-_0xa75923>(0x4f03da6f^_0x26c5e9)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2e88fa([0x74,0x68,0x65,0x6e])](_0x13b4bd)[_0x2e88fa([0x63,0x61,0x74,0x63,0x68])](()=>{_0x13b4bd(_0x2e88fa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x932860=0x6b39b0ef^_0x26c5e9;function _0x558419(){const _0x3f0340=_0x2e88fa([0x6c,0x6c,0x63,0x74,0x2d])+_0x1a21cc(_0x2e2bef(_0x2e948c)),_0x4f9421=_0x59d8ef(_0x1a21cc(window[_0x2e88fa([0x4d,0x61,0x74,0x68])][_0x2e88fa([0x63,0x65,0x69,0x6c])](_0x14f132/_0x932860)));window[_0x2e88fa([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2e88fa([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3f0340,_0x4f9421);}function _0x1d5671(){const _0x73d7ad=_0x2e88fa([0x6c,0x6c,0x63,0x74,0x2d])+_0x1a21cc(_0x2e2bef(_0x2e948c)),_0x4fd7fd=window[_0x2e88fa([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2e88fa([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x73d7ad);return _0x4fd7fd?window[_0x2e88fa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x59d8ef(_0x4fd7fd),0x10)*_0x932860:null;}function _0x109b78(_0x34b420){return new window[(_0x2e88fa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1c3aa5,_0x447bb7)=>{_0x34b420[_0x2e88fa([0x74,0x68,0x65,0x6e])](_0x1c3aa5,_0x447bb7),window[_0x2e88fa([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x447bb7,0x6b0e8aaf^_0x26c5e9);});}}_0x5d03ab[_0x2e88fa([0x6f,0x6e])](_0x2e88fa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x7986e3,_0x208f90)=>{if(_0x208f90[0x0]!=_0x2e948c)return _0x13b4bd(_0x2e88fa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x208f90[0x1]={..._0x208f90[0x1],[_0x2e88fa([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x15e156};},{[_0x2e88fa([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2e88fa([0x68,0x69,0x67,0x68])}),_0x5d03ab[_0x2e88fa([0x6f,0x6e])](_0x2e88fa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1fcb70=>{_0x203fc5(_0x1fcb70[_0x2e88fa([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x45f250=!0x0,_0x3000a0(_0x1fcb70[_0x2e88fa([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2e88fa([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2e88fa([0x6c,0x6f,0x77])}),_0x378ad5[_0x2e88fa([0x74,0x68,0x65,0x6e])](()=>{_0x45f250||_0x13b4bd(_0x2e88fa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x531439(){return _0x5d03ab[_0x2e88fa([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2e88fa([0x76,0x69,0x65,0x77])][_0x2e88fa([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2e88fa([0x61,0x75,0x74,0x6f]);}function _0x1d8d0d(){_0x5d03ab[_0x2e88fa([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2e88fa([0x76,0x69,0x65,0x77])][_0x2e88fa([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2e88fa([0x61,0x75,0x74,0x6f]);}}function _0x33dc57(_0x1cfdf3){const _0x3e5bce=[new window[(_0x2e88fa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3273b8=>setTimeout(_0x3273b8,0x6b0660a3^_0x26c5e9)),_0x378ad5[_0x2e88fa([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2e88fa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x644b79=>{let _0x417519=0x0;_0x5d03ab[_0x2e88fa([0x6d,0x6f,0x64,0x65,0x6c])][_0x2e88fa([0x6f,0x6e])](_0x2e88fa([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2719c9,_0x3b74db)=>{_0x3b74db[0x0][_0x2e88fa([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x417519++,_0x417519==(0x6b0f5f97^_0x26c5e9)&&(_0x644b79(),_0x2719c9[_0x2e88fa([0x6f,0x66,0x66])]());});}))];return window[_0x2e88fa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2e88fa([0x72,0x61,0x63,0x65])](_0x3e5bce)[_0x2e88fa([0x74,0x68,0x65,0x6e])](()=>_0x1cfdf3);}async function _0x334a98(){await _0x378ad5,_0x5d03ab[_0x2e88fa([0x6d,0x6f,0x64,0x65,0x6c])][_0x2e88fa([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x42c402,_0x5d03ab[_0x2e88fa([0x6d,0x6f,0x64,0x65,0x6c])][_0x2e88fa([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x42c402,_0x5d03ab[_0x2e88fa([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2e88fa([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x34be5a(){return _0xa7d63d(_0x2e88fa([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2520ba(_0x2e88fa([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x2e88fa([0x73,0x74,0x61,0x74,0x65])]==_0x2e88fa([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xff1e69(){return _0xa7d63d(_0x2e88fa([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 _0x438853(){return _0xa7d63d(_0x2e88fa([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x5d661f(_0x15b2e4){const _0x1aa406=_0x6b61fb();_0x5d03ab[_0x1aa406]=_0x2e88fa([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x15b2e4,_0x15b2e4!=_0x2e88fa([0x56,0x61,0x6c,0x69,0x64])&&_0x334a98();}function _0x6b61fb(){const _0x200605=window[_0x2e88fa([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2e88fa([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2e88fa([0x6e,0x6f,0x77])]())[_0x2e88fa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2e88fa([0x2e]),'');let _0x5d9658=_0x2e88fa([0x67]);for(let _0x4b3610=0x0;_0x4b3610<_0x200605[_0x2e88fa([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4b3610+=0x2){let _0x39deb6=window[_0x2e88fa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x200605[_0x2e88fa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4b3610,_0x4b3610+0x2));_0x39deb6>=_0x192096[_0x2e88fa([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x39deb6-=_0x192096[_0x2e88fa([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5d9658+=_0x192096[_0x39deb6];}return _0x5d9658;}function _0x5cc2d1(){const _0x5a21ce=_0x647c51[_0x2e88fa([0x73,0x70,0x6c,0x69,0x74])](_0x2e88fa([0x2e]));if(0x3!=_0x5a21ce[_0x2e88fa([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x857caf(_0x5a21ce[0x1]);function _0x857caf(_0x2a54a7){const _0x44be78=_0x105034(_0x2a54a7);return _0x44be78&&_0x569299()?_0x44be78:null;function _0x569299(){const _0x4f84df=_0x44be78[_0x2e88fa([0x6a,0x74,0x69])],_0x1692f8=window[_0x2e88fa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4f84df[_0x2e88fa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4f84df[_0x2e88fa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x251609={..._0x44be78,[_0x2e88fa([0x6a,0x74,0x69])]:_0x4f84df[_0x2e88fa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4f84df[_0x2e88fa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x251609[_0x2e88fa([0x76,0x63])],_0x2e2bef(_0x251609)==_0x1692f8;}}}async function _0x5d214d(){let _0x2bf885=!0x0;try{const _0x38e112=_0x647c51[_0x2e88fa([0x73,0x70,0x6c,0x69,0x74])](_0x2e88fa([0x2e])),[_0x403654,_0x2dc163,_0xb7534c]=_0x38e112;return _0x1849f9(_0x403654),await _0x4545dd(_0x403654,_0x2dc163,_0xb7534c),_0x2bf885;}catch{return!0x1;}function _0x1849f9(_0x190100){const _0x29d469=_0x105034(_0x190100);_0x29d469&&_0x29d469[_0x2e88fa([0x61,0x6c,0x67])]==_0x2e88fa([0x45,0x53,0x32,0x35,0x36])||(_0x2bf885=!0x1);}async function _0x4545dd(_0x461b15,_0x224e78,_0x5843ea){const _0x332524=window[_0x2e88fa([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2e88fa([0x66,0x72,0x6f,0x6d])](_0x43ee12(_0x5843ea),_0x5e34ba=>_0x5e34ba[_0x2e88fa([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4f1137=new window[(_0x2e88fa([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2e88fa([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x461b15+_0x2e88fa([0x2e])+_0x224e78),_0x4ba76e=window[_0x2e88fa([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2e88fa([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4ba76e)return;const _0x59bca6=await _0x4ba76e[_0x2e88fa([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2e88fa([0x6a,0x77,0x6b]),_0x5aac09,{[_0x2e88fa([0x6e,0x61,0x6d,0x65])]:_0x2e88fa([0x45,0x43,0x44,0x53,0x41]),[_0x2e88fa([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2e88fa([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2e88fa([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4ba76e[_0x2e88fa([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2e88fa([0x6e,0x61,0x6d,0x65])]:_0x2e88fa([0x45,0x43,0x44,0x53,0x41]),[_0x2e88fa([0x68,0x61,0x73,0x68])]:{[_0x2e88fa([0x6e,0x61,0x6d,0x65])]:_0x2e88fa([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x59bca6,_0x332524,_0x4f1137)||(_0x2bf885=!0x1);}}function _0x105034(_0x3ed5c6){return _0x3ed5c6[_0x2e88fa([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2e88fa([0x65,0x79]))?JSON[_0x2e88fa([0x70,0x61,0x72,0x73,0x65])](_0x43ee12(_0x3ed5c6)):null;}function _0x43ee12(_0x554d34){return window[_0x2e88fa([0x61,0x74,0x6f,0x62])](_0x554d34[_0x2e88fa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2e88fa([0x2b]))[_0x2e88fa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2e88fa([0x2f])));}function _0x2e2bef(_0xba994b){let _0x2370d6=0x1505;function _0x1a5ca9(_0x58e671){for(let _0x2a8e8e=0x0;_0x2a8e8e<_0x58e671[_0x2e88fa([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2a8e8e++){const _0x208b4e=_0x58e671[_0x2e88fa([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2a8e8e);_0x2370d6=(_0x2370d6<<0x5)+_0x2370d6+_0x208b4e,_0x2370d6&=_0x2370d6;}}function _0xf03ad7(_0x3bb334){Array[_0x2e88fa([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3bb334)?_0x3bb334[_0x2e88fa([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xf03ad7):_0x3bb334&&typeof _0x3bb334==_0x2e88fa([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2e88fa([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3bb334)[_0x2e88fa([0x73,0x6f,0x72,0x74])]()[_0x2e88fa([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x49985f,_0x394bdb])=>{_0x1a5ca9(_0x49985f),_0xf03ad7(_0x394bdb);}):_0x1a5ca9(window[_0x2e88fa([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3bb334));}return _0xf03ad7(_0xba994b),_0x2370d6>>>0x0;}function _0x1a21cc(_0x4f4c4f){return _0x4f4c4f[_0x2e88fa([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2e88fa([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2e88fa([0x30]));}function _0x59d8ef(_0xd2e426){return _0xd2e426[_0x2e88fa([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2e88fa([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2e88fa([0x6a,0x6f,0x69,0x6e])]('');}function _0xa7d63d(_0x2ec387){return _0x5d03ab[_0x2e88fa([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2e88fa([0x68,0x61,0x73])](_0x2ec387);}function _0x2520ba(_0x558836){return _0x5d03ab[_0x2e88fa([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2e88fa([0x67,0x65,0x74])](_0x558836);}function _0x42c402(){}function _0x2e88fa(_0x7accb9){return _0x7accb9['map'](_0xf3eb4a=>String['fromCharCode'](_0xf3eb4a))['join']('');}_0x5d661f(await _0x2af3f7());}(this);}set['adapter'](_0x525359){if(this['_adapter'])throw new _0x3ea0ba('track-changes-adapter-already-set',this);this['_adapter']=_0x525359;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x429959=!0x1,toJSON:_0x448201=!0x1}={}){const _0x36d606=[];for(const _0x57de9b of this['_suggestions']['values']())_0x429959&&!_0x57de9b['isInContent']||_0x36d606['push'](_0x57de9b);return _0x448201?_0x36d606['map'](_0x1e6c53=>_0x1e6c53['toJSON']()):_0x36d606;}['getSuggestion'](_0xac381e){const _0x4c844f=this['_suggestions']['get'](_0xac381e);if(!_0x4c844f)throw new _0x3ea0ba('track-changes-suggestion-not-found',this);return _0x4c844f;}['hasSuggestion'](_0x2e2f70){return this['_suggestions']['has'](_0x2e2f70);}['addSuggestionData'](_0x30a70d){const {authorId:_0x222cd3,id:_0x37f185,originalSuggestionId:_0x138bfe,attributes:_0x3c895e}=_0x30a70d,[_0x477894,_0x331920]=_0x30a70d['type']['split'](':'),_0x33069e=this['_suggestions']['get'](_0x37f185)||this['_createSuggestion'](_0x477894,_0x331920,_0x37f185,_0x222cd3,_0x3c895e,_0x138bfe);if(this['_addThreadToSuggestion'](_0x33069e),this['_checkSuggestionCorrectness'](_0x33069e,_0x477894,_0x331920||null,_0x222cd3),_0x33069e['createdAt']=_0x30a70d['createdAt'],_0x33069e['_isDataLoaded']=!0x0,_0x3c895e&&_0x3c895e['@external']){const _0x287d72=_0x3c895e['@external'],_0x495cb9=this['_getExternalAuthor'](_0x287d72['authorName']);_0x33069e['authoredAt']=_0x287d72['createdAt'],_0x33069e['author']=_0x495cb9,_0x33069e['isExternal']=!0x0;}else _0x33069e['authoredAt']=_0x30a70d['createdAt'];switch(_0x30a70d['data']&&(_0x33069e['data']=_0x30a70d['data']),_0x30a70d['attributes']&&(_0x33069e['attributes']=_0x30a70d['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x33069e['_saved']=!0x0),this['_suggestionState']['get'](_0x33069e)){case'notReady':this['_suggestionState']['set'](_0x33069e,'dataReady');break;case'markerReady':_0x33069e['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x33069e])),this['_refreshSuggestionsChain'](new Set([_0x33069e])),this['_suggestionState']['set'](_0x33069e,'ready'),this['fire']('suggestionLoaded',_0x33069e)):this['_suggestionState']['set'](_0x33069e,'removed');}return _0x33069e;}['acceptSuggestion'](_0x4cb737){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5bc32e of _0x4cb737['getAllAdjacentSuggestions']())_0x5bc32e['accept']();});});}['discardSuggestion'](_0x58b9e1){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xfeb0d4 of _0x58b9e1['getAllAdjacentSuggestions']())_0xfeb0d4['discard']();});});}['enableCommand'](_0x22a937,_0x409b76){const _0x24dc6a=this['editor']['commands']['get'](_0x22a937);if(!_0x24dc6a)throw new _0x3ea0ba('track-changes-command-not-found',this,{'commandName':_0x22a937});if(this['_enabledCommands']['has'](_0x24dc6a))throw new _0x3ea0ba('track-changes-enable-command-twice',this,{'commandName':_0x22a937});this['_enabledCommands']['add'](_0x24dc6a),_0x409b76&&_0x24dc6a['on']('execute',(_0x20c6a0,_0x3520a4)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x3520a4['length']>0x0&&_0x3520a4[_0x3520a4['length']-0x1]&&_0x3520a4[_0x3520a4['length']-0x1]['forceDefaultExecution']?_0x3520a4['pop']():(_0x20c6a0['return']=_0x409b76((..._0x7cf403)=>_0x24dc6a['execute'](..._0x7cf403,{'forceDefaultExecution':!0x0}),..._0x3520a4),_0x20c6a0['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x542a90){let _0x1c5f6f,_0x907a75;const _0x4658b1=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x1c5f6f=_0x542a90();}catch(_0x197ff5){_0x907a75=_0x197ff5;}return _0x4658b1||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x907a75&&_0x3ea0ba['rethrowUnexpectedError'](_0x907a75,this),_0x1c5f6f;}['markInsertion'](_0x57178b,_0x33d422=null,_0xcff117={}){if(_0x57178b['isCollapsed'])return null;const _0x4ef7dc=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0xcff117['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x37fc79,meta:_0xd05830}of this['_findSuggestions'](_0x57178b,'insertion'))if(_0xd05830['isOwn']){if(!_0xd05830['isNextTo']){if(_0xd05830['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!se(_0x37fc79,_0xcff117))continue;return _0x37fc79;}if(se(_0x37fc79,_0xcff117))return _0x37fc79;this['_breakSuggestionMarker'](_0x37fc79,_0x57178b['start'],_0x57178b['end']);break;}if(_0x33d422==_0x37fc79['subType']&&se(_0x37fc79,_0xcff117)){const _0xc298c0=_0x37fc79['getFirstRange']();return _0xc298c0['start']['isEqual'](_0x57178b['end'])?this['_setSuggestionRange'](_0x37fc79,this['_model']['createRange'](_0x57178b['start'],_0xc298c0['end'])):this['_setSuggestionRange'](_0x37fc79,this['_model']['createRange'](_0xc298c0['start'],_0x57178b['end'])),_0x37fc79;}}const _0x4c208c=_0xf4a34a(),_0x5dfaab=_0x4ef7dc['id'],_0x5d6e8f=_0x33d422?'insertion:'+_0x33d422:'insertion',_0x2fe4ae=this['_setSuggestionData']({'id':_0x4c208c,'type':_0x5d6e8f,'createdAt':new Date(),'authorId':_0x5dfaab,'attributes':_0xcff117});return this['_addSuggestionMarker'](_0x5d6e8f,_0x4c208c,_0x5dfaab,_0x57178b),_0x2fe4ae;}['markMultiRangeInsertion'](_0x1fb08e,_0x37e12c='multi',_0x45e07d={}){const _0x469427=this['editor']['plugins']['get']('Users')['me'],_0x79846d=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x37e12c,'join');this['_trackingSessionId']&&(_0x45e07d['trackingSessionId']=this['_trackingSessionId']);for(const _0x21d2ff of this['getSuggestions']())if(_0x21d2ff['author']['id']==_0x469427['id']&&'insertion'==_0x21d2ff['type']&&_0x21d2ff['subType']==_0x37e12c&&se(_0x21d2ff,_0x45e07d)&&(_0x79846d(_0x21d2ff['getRanges'](),_0x1fb08e)||_0x79846d(_0x1fb08e,_0x21d2ff['getRanges']()))){for(const _0x295a09 of _0x1fb08e)_0x21d2ff['addRange'](_0x295a09);return _0x21d2ff;}for(const {suggestion:_0x5d8f86,meta:_0x445e00}of this['_findSuggestions'](_0x1fb08e,'insertion')){if(!_0x445e00['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x445e00['containsRangeInObject'])continue;if(!se(_0x5d8f86,_0x45e07d))continue;let _0x2e35e4=!0x0;for(const _0x283f70 of _0x5d8f86['getRanges']())for(const _0x1290af of _0x1fb08e)if(!_0x283f70['containsRange'](_0x1290af)){_0x2e35e4=!0x1;break;}if(_0x2e35e4)return _0x5d8f86;}const _0x5b8952=_0xf4a34a(),_0x26d268=_0x469427['id'],_0x595f60='insertion:'+_0x37e12c,_0x2d7221=this['_setSuggestionData']({'id':_0x5b8952,'type':_0x595f60,'createdAt':new Date(),'authorId':_0x26d268,'attributes':_0x45e07d});for(const _0x35365f of _0x1fb08e)this['_addSuggestionMarker'](_0x595f60,_0x5b8952,_0x26d268,_0x35365f,R['getMultiRangeId']());return _0x2d7221;}['markInlineFormat'](_0x2a1d71,_0x43d335,_0x53d4d0=null,_0x53e031={}){if(_0x53d4d0=_0x53d4d0||zt(_0x43d335),_0x2a1d71['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x53e031['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x2be19c=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x53d4d0,'accept');return this['forceDefaultExecution'](()=>_0x2be19c([_0x2a1d71],_0x43d335,_0x53e031)),null;}const _0x27a6e0=this['editor']['plugins']['get']('Users')['me'],_0xd45e52=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x39e767,meta:_0x4e68ed}of this['_findSuggestions'](_0x2a1d71,'insertion'))_0x4e68ed['isOwn']&&!_0x4e68ed['isInsideObject']&&_0xd45e52['push'](..._0x39e767['getRanges']());}const _0x59a27c=function(_0x2e6b2c,_0x76863){const _0x18ea82=[];for(const _0x56857f of _0x76863){const _0x369314=_0x2e6b2c['getIntersection'](_0x56857f);_0x369314&&_0x18ea82['push'](_0x369314);}return _0x18ea82;}(_0x2a1d71,_0xd45e52),_0x36e2ca=function(_0x4c3afd,_0x227326){const _0x5a849c=[_0x4c3afd];for(const _0x526d82 of _0x227326){let _0x4f9510=0x0;for(;_0x4f9510<_0x5a849c['length'];){const _0x46af62=_0x5a849c[_0x4f9510]['getDifference'](_0x526d82);_0x5a849c['splice'](_0x4f9510,0x1,..._0x46af62),_0x4f9510+=_0x46af62['length'];}}return _0x5a849c;}(_0x2a1d71,_0xd45e52);_0x59a27c['length']&&this['_model']['change'](()=>{for(const _0x3f7cf1 of _0x59a27c){const _0x46890b=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x53d4d0,'accept');this['forceDefaultExecution'](()=>_0x46890b([_0x3f7cf1],_0x43d335,_0x53e031));}});for(const _0x1182ca of _0x36e2ca){let _0x954ee1=null,_0x136c63=_0x1182ca['start'],_0x1079b4=_0x1182ca['end'];for(const {suggestion:_0x3fb694,meta:_0x1c7170}of this['_findSuggestions'](_0x1182ca,'formatInline')){if(!_0x1c7170['isOwn'])continue;if(_0x3fb694['subType']!=_0x53d4d0)continue;if(!se(_0x3fb694,_0x53e031))continue;const _0x35da29=_0x3fb694['getFirstRange']();if(_0x35da29['containsRange'](_0x1182ca,!0x0))return null;_0x136c63=_0x136c63['isBefore'](_0x35da29['start'])?_0x136c63:_0x35da29['start'],_0x1079b4=_0x1079b4['isAfter'](_0x35da29['end'])?_0x1079b4:_0x35da29['end'],_0x954ee1?_0x35da29['start']['isBefore'](_0x954ee1['getFirstRange']()['start'])?(_0x954ee1['removeMarkers'](),_0x954ee1=_0x3fb694):_0x3fb694['removeMarkers']():_0x954ee1=_0x3fb694;}const _0x206135=this['_model']['createRange'](_0x136c63,_0x1079b4);if(_0x954ee1)this['_setSuggestionRange'](_0x954ee1,_0x206135);else{const _0xd5c6bd=_0xf4a34a(),_0x16f468=_0x27a6e0['id'];this['_setSuggestionData']({'id':_0xd5c6bd,'type':'formatInline:'+_0x53d4d0,'data':_0x43d335,'createdAt':new Date(),'authorId':_0x16f468,'attributes':_0x53e031}),this['_addSuggestionMarker']('formatInline:'+_0x53d4d0,_0xd5c6bd,_0x16f468,_0x206135);}}return null;}['markBlockFormat'](_0x1957cb,_0x3ef2ef,_0x4e17e2=[],_0x4c1895=null,_0x1d3f22={}){_0x3ef2ef['formatGroupId']||(_0x3ef2ef['formatGroupId']=_0x3ef2ef['commandName']),_0x3ef2ef['multipleBlocks']=_0x1957cb['is']('range'),_0x4c1895=_0x4c1895||zt(_0x3ef2ef);const _0x86949c=_0x4e17e2['map'](_0x5e79ea=>ee(_0x5e79ea,this['_model'])),_0x2bb4d6=_0x1957cb['is']('range')?_0x1957cb:ee(_0x1957cb,this['_model']);if(this['_trackingSessionId']&&(_0x1d3f22['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5336e9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4c1895,'accept');return this['forceDefaultExecution'](()=>_0x5336e9([_0x2bb4d6],_0x3ef2ef,_0x1d3f22)),null;}_0x86949c['push'](_0x2bb4d6);let _0x910b3a=!0x0;for(const _0x51f994 of _0x86949c)if(!this['_rangeIsInLocalUserInsertion'](_0x51f994)){_0x910b3a=!0x1;break;}if(_0x910b3a&&'always'!==this['_trackFormatChanges']){const _0x31010e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4c1895,'accept');return this['forceDefaultExecution'](()=>_0x31010e([_0x2bb4d6],_0x3ef2ef,_0x1d3f22)),null;}let _0x5d2523=null,_0x6632b9=_0x2bb4d6['start'],_0x101efb=_0x2bb4d6['end'];for(const {suggestion:_0x485b02,meta:_0x4edd73}of this['_findSuggestions'](_0x2bb4d6,'formatBlock')){if(!_0x4edd73['isOwn'])continue;if(_0x4edd73['isNextTo']||_0x4edd73['containsRangeInObject']||_0x4edd73['isInsideObject'])continue;if(_0x485b02['data']['formatGroupId']!=_0x3ef2ef['formatGroupId'])continue;if(!se(_0x485b02,_0x1d3f22))continue;const _0x24ff44=_0x485b02['getFirstRange']();if(_0x485b02['subType']==_0x4c1895){if(_0x24ff44['containsRange'](_0x2bb4d6,!0x0))return null;_0x6632b9=_0x6632b9['isBefore'](_0x24ff44['start'])?_0x6632b9:_0x24ff44['start'],_0x101efb=_0x101efb['isAfter'](_0x24ff44['end'])?_0x101efb:_0x24ff44['end'],_0x5d2523?_0x24ff44['start']['isBefore'](_0x5d2523['getFirstRange']()['start'])?(_0x5d2523['removeMarkers'](),_0x5d2523=_0x485b02):_0x485b02['removeMarkers']():_0x5d2523=_0x485b02;}else{const _0x210928=_0x2bb4d6['getIntersection'](_0x24ff44);this['_cutOutSuggestionMarker'](_0x485b02,_0x210928);}}const _0x35c6ec=this['editor']['plugins']['get']('Users')['me'],_0x34f6e7=_0xf4a34a(),_0xc8ddec=_0x35c6ec['id'];if(_0x5d2523)return this['_setSuggestionRange'](_0x5d2523,this['_model']['createRange'](_0x6632b9,_0x101efb)),_0x5d2523;{const _0x27a8c4=this['_setSuggestionData']({'id':_0x34f6e7,'type':'formatBlock:'+_0x4c1895,'data':_0x3ef2ef,'createdAt':new Date(),'authorId':_0xc8ddec,'attributes':_0x1d3f22});return this['_addSuggestionMarker']('formatBlock:'+_0x4c1895,_0x34f6e7,_0xc8ddec,this['_model']['createRange'](_0x6632b9,_0x101efb)),_0x27a8c4;}}['markMultiRangeBlockFormat'](_0x8d6f76,_0x64cd4,_0x245453=[],_0x1a827a=null,_0x40ed82={}){_0x64cd4['formatGroupId']||(_0x64cd4['formatGroupId']=_0x64cd4['commandName']);const _0x1f551f=_0x8d6f76[0x0];_0x64cd4['multipleBlocks']=_0x1f551f['is']('range'),_0x1a827a=_0x1a827a||zt(_0x64cd4);const _0x418d0d=_0x245453['map'](_0x143528=>ee(_0x143528,this['_model'])),_0x573838=_0x1f551f['is']('range')?_0x8d6f76:_0x8d6f76['map'](_0x16f43a=>ee(_0x16f43a,this['_model']));if(this['_trackingSessionId']&&(_0x40ed82['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x198f81=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1a827a,'accept');return this['forceDefaultExecution'](()=>_0x198f81(_0x573838,_0x64cd4,_0x40ed82)),null;}_0x418d0d['push'](..._0x573838);let _0x272b8b=!0x0;for(const _0x3a6a5b of _0x418d0d)if(!this['_rangeIsInLocalUserInsertion'](_0x3a6a5b)){_0x272b8b=!0x1;break;}if(_0x272b8b&&'always'!==this['_trackFormatChanges']){const _0x1ee0f2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1a827a,'accept');return this['forceDefaultExecution'](()=>_0x1ee0f2(_0x573838,_0x64cd4,_0x40ed82)),null;}const _0x168107=this['editor']['plugins']['get']('Users')['me'];for(const _0x45029e of this['getSuggestions']()){const _0x2ced77=_0x45029e['data'];if(_0x45029e['author']['id']!=_0x168107['id'])continue;if('formatBlock'!=_0x45029e['type']||_0x2ced77['formatGroupId']!=_0x64cd4['formatGroupId'])continue;if(!se(_0x45029e,_0x40ed82))continue;const _0xae2c8d=_0x45029e['subType']==_0x1a827a;for(let _0x5266ba=0x0;_0x5266ba<_0x573838['length'];_0x5266ba++){const _0x4d9ae2=_0x573838[_0x5266ba];for(const _0x5a609a of _0x45029e['getMarkers']()){const _0x4b408a=_0x5a609a['getRange']();if(_0x4d9ae2['isEqual'](_0x4b408a)){_0xae2c8d?(_0x573838['splice'](_0x5266ba,0x1),_0x5266ba--):_0x45029e['removeMarker'](_0x5a609a['name']);break;}}}}if(0x0==_0x573838['length'])return null;const _0x345629=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1a827a,'join');for(const _0xfce2f1 of this['getSuggestions']()){const _0x4060c3=_0xfce2f1['data'];if(_0xfce2f1['author']['id']==_0x168107['id']&&('formatBlock'==_0xfce2f1['type']&&_0x4060c3['formatGroupId']==_0x64cd4['formatGroupId']&&_0xfce2f1['subType']==_0x1a827a&&se(_0xfce2f1,_0x40ed82)&&(_0x345629(_0xfce2f1['getRanges'](),_0x573838)||_0x345629(_0x573838,_0xfce2f1['getRanges']())))){for(const _0x517236 of _0x573838)_0xfce2f1['addRange'](_0x517236);return _0xfce2f1;}}const _0x40c4e7=_0xf4a34a(),_0x133913=_0x168107['id'],_0x3757b6='formatBlock:'+_0x1a827a,_0x1d4feb=this['_setSuggestionData']({'id':_0x40c4e7,'type':_0x3757b6,'data':_0x64cd4,'createdAt':new Date(),'authorId':_0x133913,'attributes':_0x40ed82});for(const _0x129aac of _0x573838)this['_addSuggestionMarker'](_0x3757b6,_0x40c4e7,_0x133913,_0x129aac,R['getMultiRangeId']());return _0x1d4feb;}['markDeletion'](_0x4f59b7,_0x522489=null,_0x3f6ff5={}){if(_0x4f59b7['isCollapsed'])return null;const _0x48ad3e=this['editor']['plugins']['get']('Users')['me'],_0x274a95=new _0x5c6c0b(_0x4f59b7['start'],_0x4f59b7['end']);this['_trackingSessionId']&&(_0x3f6ff5['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x336152,meta:_0x459865}of this['_findSuggestions'](_0x274a95,'insertion'))if(_0x459865['isOwn']&&!_0x459865['isNextTo']){if(_0x336152['isMultiRange']){const _0x267ec1=_0x336152['getRanges']()['filter'](_0x193504=>'$graveyard'!=_0x193504['root']['rootName']);_0x267ec1['every'](_0x56f093=>_0x274a95['containsRange'](_0x56f093,!0x0))&&_0x336152['discard']();if(_0x267ec1['some'](_0x5d7e69=>_0x5d7e69['containsRange'](_0x274a95,!0x0))){const _0x51cacf=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x522489,'accept');return this['forceDefaultExecution'](()=>_0x51cacf([_0x274a95],null,_0x3f6ff5)),null;}}else{const _0x12edd6=_0x274a95['getIntersection'](_0x336152['getFirstRange']());null!==_0x12edd6&&_0x336152['_onDiscard']([_0x12edd6],null,_0x3f6ff5);}}if(_0x274a95['detach'](),_0x274a95['isCollapsed']||'$graveyard'==_0x274a95['root']['rootName'])return null;let _0x264c62=null,_0x5b8076=_0x274a95['start'],_0x3774be=_0x274a95['end'];const _0x530cba=this['_findSuggestions'](_0x274a95,'deletion');for(const {suggestion:_0x210c0d,meta:_0x5d7b63}of _0x530cba){const _0x2e7001=this['_model']['createRange'](_0x5b8076,_0x3774be);if(_0x5d7b63['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5d7b63['containsRangeInObject']&&!_0x5d7b63['isInsideObject'])){if(_0x210c0d['isMultiRange']){if(!se(_0x210c0d,_0x3f6ff5))continue;let _0x53fda8=!0x0;for(const _0x9defd4 of _0x210c0d['getRanges']()){if(_0x9defd4['containsRange'](_0x2e7001,!0x0))return _0x210c0d;_0x2e7001['containsRange'](_0x9defd4)||(_0x53fda8=!0x1);}_0x53fda8&&_0x210c0d['discard']();}else{const _0x47d140=_0x210c0d['getFirstRange']();if(_0x47d140['containsRange'](_0x2e7001,!0x0))return _0x210c0d;if(!se(_0x210c0d,_0x3f6ff5)){_0x2e7001['containsRange'](_0x47d140)?_0x210c0d['removeMarkers']():_0x47d140['containsPosition'](_0x5b8076)?_0x5b8076=_0x47d140['end']:_0x47d140['containsPosition'](_0x3774be)&&(_0x3774be=_0x47d140['start']);continue;}_0x5b8076=_0x5b8076['isBefore'](_0x47d140['start'])?_0x5b8076:_0x47d140['start'],_0x3774be=_0x3774be['isAfter'](_0x47d140['end'])?_0x3774be:_0x47d140['end'],_0x3f6ff5=Object['assign']({},_0x210c0d['attributes']),_0x264c62?_0x47d140['start']['isBefore'](_0x264c62['getFirstRange']()['start'])?(_0x264c62['removeMarkers'](),_0x264c62=_0x210c0d):_0x210c0d['removeMarkers']():_0x264c62=_0x210c0d;}}}if(_0x264c62)return this['_setSuggestionRange'](_0x264c62,this['_model']['createRange'](_0x5b8076,_0x3774be)),_0x264c62;{const _0x18398a=_0xf4a34a(),_0x12433d=this['_model']['createRange'](_0x5b8076,_0x3774be),_0x3dcdbb=_0x48ad3e['id'],_0x3b6643=_0x522489?'deletion:'+_0x522489:'deletion',_0x59feb0=this['_setSuggestionData']({'id':_0x18398a,'type':_0x3b6643,'createdAt':new Date(),'authorId':_0x3dcdbb,'attributes':_0x3f6ff5});return this['_addSuggestionMarker'](_0x3b6643,_0x18398a,_0x3dcdbb,_0x12433d),_0x59feb0;}}['markMultiRangeDeletion'](_0x5da9a8,_0x914484='multi',_0x4e1c15={}){const _0x57c5c9=this['editor']['plugins']['get']('Users')['me'],_0x14e963=_0x5da9a8['map'](_0x50d853=>new _0x5c6c0b(_0x50d853['start'],_0x50d853['end'])),_0x1b79d4=new Set();this['_trackingSessionId']&&(_0x4e1c15['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x317bea,meta:_0x5d5979}of this['_findSuggestions'](_0x14e963,'insertion'))_0x5d5979['isOwn']&&!_0x5d5979['isNextTo']&&_0x1b79d4['add'](_0x317bea);for(const _0x39e24c of _0x1b79d4)if(_0x39e24c['isMultiRange']){const _0x119eae=_0x39e24c['getRanges']();(!_0x39e24c['attributes']||!_0x39e24c['attributes']['skipNestingCheck'])&&(_0x119eae['every'](_0xd12168=>_0x14e963['some'](_0x317ad4=>_0x317ad4['containsRange'](_0xd12168,!0x0)))&&_0x39e24c['discard']());if(_0x14e963['every'](_0x4f4091=>_0x119eae['some'](_0x13747f=>_0x13747f['containsRange'](_0x4f4091,!0x0)))){const _0x5852e3=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x914484,'accept');return this['forceDefaultExecution'](()=>_0x5852e3(_0x5da9a8,null,_0x4e1c15)),null;}}else{const _0x2e89eb=_0x39e24c['getFirstRange']();_0x14e963['some'](_0x2a75ff=>_0x2a75ff['containsRange'](_0x2e89eb,!0x0))&&_0x39e24c['discard']();if(_0x14e963['every'](_0x2f7886=>_0x2e89eb['containsRange'](_0x2f7886,!0x0))){const _0x31bdce=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x914484,'accept');return this['forceDefaultExecution'](()=>_0x31bdce(_0x14e963,null,_0x4e1c15)),null;}}const _0x17e816=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x914484,'join');let _0x622c2=null;for(const _0x1b4bfc of this['getSuggestions']())if(_0x1b4bfc['author']['id']==_0x57c5c9['id']&&_0x1b4bfc['isInContent']&&'deletion'==_0x1b4bfc['type']&&_0x1b4bfc['subType']==_0x914484&&se(_0x1b4bfc,_0x4e1c15)&&(_0x17e816(_0x1b4bfc['getRanges'](),_0x14e963)||_0x17e816(_0x14e963,_0x1b4bfc['getRanges']()))){if(_0x622c2){if(_0x1b4bfc['commentThread']&&_0x1b4bfc['commentThread']['length'])continue;for(const _0x87d601 of _0x1b4bfc['getRanges']())_0x622c2['isIntersectingWithRange'](_0x87d601)||_0x622c2['addRange'](_0x87d601);_0x1b4bfc['removeMarkers']();}else{_0x622c2=_0x1b4bfc;for(const _0x105ed8 of _0x14e963)_0x1b4bfc['isIntersectingWithRange'](_0x105ed8)||_0x1b4bfc['addRange'](_0x105ed8);}}if(_0x622c2)return _0x622c2;_0x1b79d4['clear']();for(const {suggestion:_0x5da094,meta:_0x5503ac}of this['_findSuggestions'](_0x14e963,'deletion'))_0x5503ac['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5503ac['containsRangeInObject']&&!_0x5503ac['isInsideObject'])&&se(_0x5da094,_0x4e1c15)&&_0x1b79d4['add'](_0x5da094);for(const _0x134572 of _0x1b79d4){const _0x1dea9f=_0x134572['getRanges']();if(!_0x4e1c15||!_0x4e1c15['skipNestingCheck']){if(_0x14e963['every'](_0x37a53b=>_0x1dea9f['some'](_0x219518=>_0x219518['containsRange'](_0x37a53b,!0x0))))return _0x134572;}(!_0x134572['attributes']||!_0x134572['attributes']['skipNestingCheck'])&&(_0x1dea9f['every'](_0x53203d=>_0x14e963['some'](_0x3b03ac=>_0x3b03ac['containsRange'](_0x53203d,!0x0)))&&_0x134572['discard']());}const _0x47b629=_0xf4a34a(),_0x5248e2=_0x57c5c9['id'],_0x25d834='deletion:'+_0x914484,_0x379658=this['_setSuggestionData']({'id':_0x47b629,'type':_0x25d834,'createdAt':new Date(),'authorId':_0x5248e2,'attributes':_0x4e1c15});for(const _0x6eb9b0 of _0x14e963)_0x6eb9b0['detach'](),_0x6eb9b0['isCollapsed']||'$graveyard'==_0x6eb9b0['root']['rootName']||this['_addSuggestionMarker'](_0x25d834,_0x47b629,_0x5248e2,_0x6eb9b0,R['getMultiRangeId']());return _0x379658;}['markAttributeChange'](_0x11b425,_0x5605bc,_0x3897fb,_0x3e2f3c,_0xde229c){if(_0x11b425['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0xd7b58d=this['editor']['plugins']['get']('Users')['me']['id'],_0x2260a1=Array['from'](this['_suggestions']['values']())['filter'](_0x2bcd56=>'attribute'==_0x2bcd56['type']&&_0x2bcd56['data']['key']==_0x5605bc&&_0x2bcd56['isIntersectingWithRange'](_0x11b425));if(this['_trackingSessionId']&&(_0xde229c['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x3e71fa=this['_findSuggestions'](_0x11b425,'insertion')['filter'](({meta:_0x3c78b6})=>_0x3c78b6['isOwn']&&!_0x3c78b6['isInsideObject']&&!_0x3c78b6['isNextTo'])['map'](({suggestion:_0x41100e})=>_0x41100e);_0x2260a1['unshift'](..._0x3e71fa);}const _0xc97c10=new Map([[_0x11b425,_0x3897fb]]);for(const _0x6887ec of _0x2260a1){const _0x224c14='attribute'==_0x6887ec['type']?_0x6887ec['data']['oldValue']:void 0x0,_0x4d03a3=_0x6887ec['getFirstRange'](),_0x2e4e1a=Array['from'](_0xc97c10['keys']())['find'](_0x33b6a1=>_0x33b6a1['isIntersecting'](_0x4d03a3));if(!_0x2e4e1a)continue;const _0xdc7a44=_0x2e4e1a['getDifference'](_0x4d03a3);this['_isBlockAttribute'](_0x5605bc)&&'insertion'==_0x6887ec['type']&&0x0!=_0xdc7a44['length']||(_0xc97c10['delete'](_0x2e4e1a),_0xdc7a44['forEach'](_0xa5c3ca=>{_0xc97c10['set'](_0xa5c3ca,_0x3897fb);}),'insertion'!=_0x6887ec['type']&&_0x224c14!=_0x3e2f3c&&_0xc97c10['set'](_0x2e4e1a['getIntersection'](_0x4d03a3),_0x224c14));}const _0x1f5ade=[];for(const [_0x4dc931,_0x46bc8e]of _0xc97c10){const _0x50f0af=_0xf4a34a(),_0x53895a={'key':_0x5605bc,'oldValue':_0x46bc8e,'newValue':_0x3e2f3c};_0x5605bc['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':_0x5605bc});const _0x3f0b04=('attribute:'+(_0x5605bc+'|'+zt({'newValue':_0x3e2f3c})))['substring'](0x0,0x3c),_0xc16e6e=this['_setSuggestionData']({'id':_0x50f0af,'type':_0x3f0b04,'data':_0x53895a,'createdAt':new Date(),'authorId':_0xd7b58d,'attributes':_0xde229c});_0x1f5ade['push'](_0xc16e6e),this['_addSuggestionMarker'](_0x3f0b04,_0x50f0af,_0xd7b58d,_0x4dc931);}return _0x1f5ade;}['enableDefaultAttributesIntegration'](_0x3b859a){this['enableCommand'](_0x3b859a,(_0x223bad,..._0x36f2b1)=>{this['recordAttributeChanges'](()=>{_0x223bad(..._0x36f2b1);});});}['registerBlockAttribute'](_0x48bb31){this['_blockAttributeKeys']['add'](_0x48bb31);}['registerInlineAttribute'](_0x2dbb2d){this['_inlineAttributeKeys']['add'](_0x2dbb2d);}['startTrackingSession'](_0x4d6037){return this['_trackingSessionId']=void 0x0!==_0x4d6037?_0x4d6037:_0xf4a34a(),this['_trackingSessionId'];}['_getAttributeKey'](_0x387c58){return'attribute'==_0x387c58['type']?re(_0x387c58['subType']):null;}['_applyOperationsAsSuggestions'](_0x3149f9){if(0x0==_0x3149f9['length'])return;const _0x4d447d=this['editor'],_0x158103=_0x4d447d['plugins']['get'](_0x368dd4);let _0x315336,_0x469a4b=!0x0;for(const _0x1b5bf6 in _0x3149f9[0x0]){const _0x12394b=_0x3149f9[0x0][_0x1b5bf6];if((_0x12394b instanceof _0xa98866||_0x12394b instanceof _0x2c2e90)&&_0x12394b['root']['is']('documentFragment')){_0x469a4b=!0x1,_0x315336=_0x12394b['root'];break;}}_0x4d447d['model']['change'](_0xf36fe7=>{const _0x307a0c=new Set();for(let _0x575705=0x0;_0x575705<_0x3149f9['length'];_0x575705++){const _0x2319f9=_0x3149f9[_0x575705];if(_0x2319f9['baseVersion']=_0x469a4b?_0x4d447d['model']['document']['version']:null,_0x2319f9['isDocumentOperation']=_0x469a4b,_0x158103['isMarkedRemoveOperation'](_0x2319f9)){const _0x4fe33e=Zt(_0x2319f9['newRange'],_0x4d447d['model']);if(_0x469a4b)this['markDeletion'](_0x4fe33e);else{const _0xed6bc4='suggestion:deletion:id:authorId:'+_0xf4a34a();_0x315336['markers']['set'](_0xed6bc4,_0x4fe33e);}}else switch(_0x2319f9['type']){case'rename':{const _0x360f93=_0x2319f9['oldName'],_0x237acf=_0x2319f9['newName'];if(_0x360f93==_0x237acf)break;_0xf36fe7['batch']['addOperation'](_0x2319f9),_0x4d447d['model']['applyOperation'](_0x2319f9);const _0x14dbc1='$elementName',_0x13215c=_0x2319f9['position'],_0x2a3380=_0x4d447d['model']['createRange'](_0x13215c,_0x4d447d['model']['createPositionAt'](_0x13215c['nodeAfter'],'end'));if(_0x469a4b)this['markAttributeChange'](_0x2a3380,_0x14dbc1,_0x360f93,_0x237acf,{'groupId':_0xf4a34a()});else{const _0x30128e='suggestion:attribute:'+_0x14dbc1+':id:authorId:'+_0xf4a34a();_0x315336['markers']['set'](_0x30128e,_0x2a3380);}break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x13778e=_0x2319f9['oldValue'],_0x4077ea=_0x2319f9['newValue'];if(_0x13778e==_0x4077ea)break;_0xf36fe7['batch']['addOperation'](_0x2319f9),_0x4d447d['model']['applyOperation'](_0x2319f9);const _0x299b0a=_0x2319f9['key'];if(!this['_isRegisteredAttribute'](_0x299b0a))break;const _0x8087e=Zt(_0x2319f9['range'],_0x4d447d['model']);if(_0x469a4b)this['markAttributeChange'](_0x8087e,_0x299b0a,_0x13778e,_0x4077ea,{'groupId':_0xf4a34a()});else{const _0x26932d='suggestion:attribute:'+_0x299b0a+':id:authorId:'+_0xf4a34a();_0x315336['markers']['set'](_0x26932d,_0x8087e);}break;}case'insert':{_0xf36fe7['batch']['addOperation'](_0x2319f9),_0x4d447d['model']['applyOperation'](_0x2319f9);const _0x89ca00=_0x3149f9[_0x575705+0x1]&&'move'==_0x3149f9[_0x575705+0x1]['type'];if(!_0x469a4b&&_0x89ca00&&ae(_0x315336,_0x2319f9),_0x89ca00)break;const _0x41096f=_0x2319f9['position'],_0x3bc465=_0x2319f9['howMany'],_0x1b9d89=Zt(_0x4d447d['model']['createRange'](_0x41096f,_0x41096f['getShiftedBy'](_0x3bc465)),_0x4d447d['model']);if(_0x469a4b)this['markInsertion'](_0x1b9d89);else{const _0xa8ccd6='suggestion:insertion:id:authorId:'+_0xf4a34a();_0x315336['markers']['set'](_0xa8ccd6,_0x1b9d89);}break;}case'split':{_0xf36fe7['batch']['addOperation'](_0x2319f9),_0x4d447d['model']['applyOperation'](_0x2319f9);const _0x158fa1=_0x2319f9['splitPosition'],_0x168a8a=_0x2319f9['moveTargetPosition'],_0x5a81c2=_0x4d447d['model']['createRange'](_0x158fa1,_0x168a8a);if(_0x469a4b)this['markInsertion'](_0x4d447d['model']['createRange'](_0x158fa1,_0x168a8a));else{const _0x57a70a='suggestion:insertion:id:authorId:'+_0xf4a34a();_0x315336['markers']['set'](_0x57a70a,_0x5a81c2);}break;}case'move':if(_0xf36fe7['batch']['addOperation'](_0x2319f9),_0x4d447d['model']['applyOperation'](_0x2319f9),!_0x469a4b&&_0x3149f9[_0x575705-0x1]&&'insert'==_0x3149f9[_0x575705-0x1]['type']&&ae(_0x315336,_0x2319f9),!_0x469a4b){const _0xbd60e6=_0x2319f9['getMovedRangeStart'](),_0x59091c=_0x2319f9['howMany'];for(let _0x53d286=0x0;_0x53d286<_0x59091c;_0x53d286++){const _0x440121=_0xbd60e6['getShiftedBy'](_0x53d286)['nodeAfter'];_0x307a0c['add'](_0x440121);}}break;case'remove':if(_0x469a4b)_0xf36fe7['batch']['addOperation'](_0x2319f9),_0x4d447d['model']['applyOperation'](_0x2319f9);else{const _0x485111=_0x2319f9['sourcePosition'],_0x4a57ba=_0x2319f9['howMany'],_0x5960de=new _0x1aa185(_0x485111,_0x4a57ba);_0xf36fe7['batch']['addOperation'](_0x5960de),_0x4d447d['model']['applyOperation'](_0x5960de);}}}for(const _0x1b91ed of _0x307a0c){const _0x395eed=_0x4d447d['model']['createRangeOn'](_0x1b91ed),_0x11a376='suggestion:formatBlock:$fakeWrap:id:authorId:'+_0xf4a34a();_0x315336['markers']['set'](_0x11a376,Zt(_0x395eed,_0x4d447d['model']));}});}['_setSuggestionRange'](_0x34139e,_0x599e12){const _0x5d820b=_0x34139e['getFirstMarker']();this['_model']['change'](_0x1473b7=>{_0x1473b7['updateMarker'](_0x5d820b,{'range':_0x599e12});});}['_addThreadToSuggestion'](_0x3819db){const _0x424a07=_0x3819db['id'],_0x25911e=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x424a07)||this['_commentsRepository']['addCommentThread']({'channelId':_0x25911e,'threadId':_0x424a07,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x564456=this['_commentsRepository']['getCommentThread'](_0x424a07);_0x564456['unbind']('isRemovable'),_0x564456['isRemovable']=!0x1,_0x3819db['commentThread']=_0x564456;}['_checkSuggestionCorrectness'](_0x2a0e03,_0x3072bf,_0x4596ac,_0x392373){if(_0x2a0e03['type']!=_0x3072bf||_0x2a0e03['subType']!=_0x4596ac||_0x2a0e03['creator']['id']!=_0x392373)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x3ea0ba('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x5deb37,_0x248811){const _0x3045a9=_0x5deb37['getFirstRange']();if(_0x248811['isEqual'](_0x3045a9))_0x5deb37['removeMarkers']();else{if(_0x3045a9['containsRange'](_0x248811)){const _0x4fcbba=this['_model']['createPositionAt'](_0x248811['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5deb37,this['_model']['createRange'](_0x3045a9['start'],_0x4fcbba));const _0xed32c3=_0xf4a34a(),_0x38327=_0x5deb37['creator']['id'],_0x51e382=_0x5deb37['type']+':'+_0x5deb37['subType'];this['_setSuggestionData']({'id':_0xed32c3,'type':_0x51e382,'createdAt':new Date(),'authorId':_0x38327,'data':_0x5deb37['data'],'attributes':_0x5deb37['attributes']});const _0x5f2aca=this['_model']['createPositionAt'](_0x248811['end']['parent'],'after'),_0x54b94b=this['_model']['createRange'](_0x5f2aca,_0x3045a9['end']);this['_addSuggestionMarker'](_0x51e382,_0xed32c3,_0x38327,_0x54b94b);}else{if(_0x3045a9['containsPosition'](_0x248811['start'])){const _0x3e7564=this['_model']['createPositionAt'](_0x248811['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5deb37,this['_model']['createRange'](_0x3045a9['start'],_0x3e7564));}else{const _0x1f57b7=this['_model']['createPositionAt'](_0x248811['end']['parent'],'after');this['_setSuggestionRange'](_0x5deb37,this['_model']['createRange'](_0x1f57b7,_0x3045a9['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x5f5c16){for(const {suggestion:_0x54c2ff,meta:_0x582f51}of this['_findSuggestions'](_0x5f5c16,'insertion')){if(!_0x582f51['isOwn'])continue;const _0x42db44=_0x54c2ff['getRanges']();for(const _0x45a86c of _0x42db44)if(!_0x5f5c16['getDifference'](_0x45a86c)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x1e4ed5){return this['editor']['plugins']['get']('Users')['getUser'](_0x1e4ed5);}['_getExternalAuthor'](_0x28ac3a){const _0x5a32d3=this['editor']['plugins']['get']('Users'),_0x279f5d=_0x5626cf('external:'+_0x28ac3a),_0x53df1e=_0x5a32d3['getUser'](_0x279f5d);return _0x53df1e||_0x5a32d3['addUser']({'id':_0x279f5d,'name':_0x28ac3a});}['_createSuggestion'](_0x49268f,_0xb2509a,_0x17d81b,_0x45dcd1,_0x443340,_0x2c1dd8){const _0xefc212=this['_getAuthorFromId'](_0x45dcd1);if(!_0xefc212)throw new _0x3ea0ba('track-changes-user-not-found',this,{'authorId':_0x45dcd1,'suggestionId':_0x17d81b});const _0x3c18c7=this['_suggestionFactory']['buildSuggestion'](_0x49268f,_0xb2509a,_0x17d81b,_0xefc212,_0x443340,_0x1d850f=>{this['_updateSuggestionData'](_0x17d81b,{'attributes':_0x1d850f});const _0x259d70=this['getSuggestion'](_0x17d81b);this['_joinWithAdjacentSuggestions'](new Set([_0x259d70])),this['_refreshSuggestionsChain'](new Set([_0x259d70]));},_0x2c1dd8);return this['listenTo'](_0x3c18c7,'accept',()=>{this['_updateSuggestionData'](_0x17d81b,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3c18c7,'discard',()=>{this['_updateSuggestionData'](_0x17d81b,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x17d81b,_0x3c18c7),this['_suggestionState']['set'](_0x3c18c7,'notReady'),_0x3c18c7;}['_splitMarkerName'](_0x3166ef){const _0x5a58e6=_0x3166ef['split'](':');return{'group':_0x5a58e6[0x0],'type':_0x5a58e6[0x1],'subType':_0x5a58e6['length']>=0x5?_0x5a58e6[0x2]:null,'id':_0x5a58e6['length']<0x5?_0x5a58e6[0x2]:_0x5a58e6[0x3],'authorId':_0x5a58e6['length']<0x5?_0x5a58e6[0x3]:_0x5a58e6[0x4],'markerCount':0x6==_0x5a58e6['length']?_0x5a58e6[0x5]:null};}['_breakSuggestionMarker'](_0x4ed3e2,_0x4837ce,_0x176421){const _0x45f6f5=_0x4ed3e2['getFirstRange'](),_0xb0d87b=_0x45f6f5['start'],_0x24eec9=_0x45f6f5['end'];this['_setSuggestionRange'](_0x4ed3e2,this['_model']['createRange'](_0xb0d87b,_0x4837ce));const _0x382f05=_0xf4a34a(),_0x15985d=_0x4ed3e2['creator']['id'],_0x49622f=_0x4ed3e2['type']+(_0x4ed3e2['subType']?':'+_0x4ed3e2['subType']:'');this['_setSuggestionData']({'id':_0x382f05,'type':_0x49622f,'createdAt':new Date(),'authorId':_0x15985d,'originalSuggestionId':_0x4ed3e2['_originalSuggestionId']||_0x4ed3e2['id'],'attributes':_0x4ed3e2['attributes'],'data':_0x4ed3e2['data']});const _0x43c6e2=this['_getAttributeKey'](_0x4ed3e2);('formatBlock'==_0x4ed3e2['type']||_0x43c6e2&&this['_isBlockAttribute'](_0x43c6e2))&&(_0x176421=this['_model']['createPositionBefore'](_0x176421['parent'])),this['_addSuggestionMarker'](_0x49622f,_0x382f05,_0x15985d,this['_model']['createRange'](_0x176421,_0x24eec9));}['_findSuggestions'](_0x10b712,_0xc1ef48=null){const _0xf269a5=[],_0xf560ab=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x10b712)||(_0x10b712=[_0x10b712]);for(const _0x46bfa6 of this['getSuggestions']()){if(!_0x46bfa6['isInContent'])continue;if(_0xc1ef48&&_0x46bfa6['type']!=_0xc1ef48)continue;let _0x1f25ba=!0x1;for(const _0x4ec65f of _0x46bfa6['getRanges']()){for(const _0x19e460 of _0x10b712){const _0x38510e=_0x19e460['start']['isEqual'](_0x4ec65f['end'])||_0x19e460['end']['isEqual'](_0x4ec65f['start']);if(_0x38510e||_0x19e460['getIntersection'](_0x4ec65f)){const _0x5deaef=_0x19e460['containsRange'](_0x4ec65f)&&qt(this['_model']['schema'],_0x4ec65f['start'],_0x19e460),_0x2e7884=_0x4ec65f['containsRange'](_0x19e460)&&qt(this['_model']['schema'],_0x19e460['start'],_0x4ec65f);_0xf269a5['push']({'suggestion':_0x46bfa6,'meta':{'isOwn':_0xf560ab==_0x46bfa6['author'],'isNextTo':_0x38510e,'isInsideObject':_0x5deaef,'containsRangeInObject':_0x2e7884}}),_0x1f25ba=!0x0;break;}}if(_0x1f25ba)break;}}return _0xf269a5;}['_addSuggestionMarker'](_0x52dec7,_0x2aebd5,_0x5d457d,_0xe905f6,_0x1525de){this['_model']['change'](_0x45bbba=>{let _0x3797d8='suggestion:'+_0x52dec7+':'+_0x2aebd5+':'+_0x5d457d;_0x1525de&&(_0x3797d8=_0x3797d8+':'+_0x1525de),_0x45bbba['addMarker'](_0x3797d8,{'range':_0xe905f6,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x3ac7a2){const _0x3fd695=_0x3ac7a2['previous'],_0x391a06=_0x3ac7a2['next'];_0x3ac7a2['previous']=null,_0x3ac7a2['next']=null,null!=_0x3fd695&&_0x3fd695['next']==_0x3ac7a2&&(_0x3fd695['next']=_0x391a06),null!=_0x391a06&&_0x391a06['previous']==_0x3ac7a2&&(_0x391a06['previous']=_0x3fd695),'ready'==this['_suggestionState']['get'](_0x3ac7a2)&&(this['_suggestionState']['set'](_0x3ac7a2,'removed'),this['fire']('suggestionUnloaded',_0x3ac7a2,_0x3fd695,_0x391a06));}['_setSuggestionData'](_0x225db1){const _0x4541ed=_0x225db1['id'],_0x2830b0=this['addSuggestionData'](_0x225db1);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1a8602=this['editor']['plugins']['get']('PendingActions'),_0x3d13d3=_0x2830b0['hasComments'],_0x26b9ea=_0x2830b0['subType']?_0x2830b0['type']+':'+_0x2830b0['subType']:_0x2830b0['type'],_0x1094b1=this['editor']['locale'],_0x4e53b3=_0x1a8602['add'](o(_0x1094b1,'PENDING_ACTION_SUGGESTION')),_0x233106={'id':_0x4541ed,'type':_0x26b9ea,'hasComments':_0x3d13d3,'data':_0x225db1['data']||null,'originalSuggestionId':_0x225db1['originalSuggestionId']||null,'attributes':_0x2830b0['attributes']};this['_adapter']['addSuggestion'](_0x233106)['then'](_0xaee54b=>{_0x2830b0['_saved']=!0x0,_0x1a8602['remove'](_0x4e53b3),_0xaee54b&&_0xaee54b['createdAt']&&(this['_suggestions']['get'](_0x4541ed)['createdAt']=_0xaee54b['createdAt']);})['catch'](_0x466526=>{throw _0x3339d7('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x2830b0['discard']();}),_0x2830b0['stopListening'](),this['_suggestions']['delete'](_0x2830b0['id']),this['_suggestionState']['delete'](_0x2830b0),_0x466526;});}return _0x2830b0;}['_isBlockAttribute'](_0xc6f3a4){return this['_blockAttributeKeys']['has'](_0xc6f3a4);}['_isInlineAttribute'](_0x54bb91){return this['_inlineAttributeKeys']['has'](_0x54bb91);}['_updateSuggestionData'](_0x46377b,_0x6b4bbf){const _0x4ff756=this['editor']['plugins']['get']('PendingActions'),_0xd8c82c=this['getSuggestion'](_0x46377b);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0xd8c82c['_saved']){const _0x2f23b0=_0x4ff756['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x46377b,_0x6b4bbf)['then'](()=>{_0x4ff756['remove'](_0x2f23b0);});}else _0xd8c82c['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x46377b,_0x6b4bbf);});}}['_getSuggestionData'](_0x180552){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x3ea0ba('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x180552);}['_handleNewSuggestionMarker'](_0x12670e){const {id:_0x3922ef,type:_0x10b144,subType:_0x1ddbcc,authorId:_0x58d0ce}=this['_splitMarkerName'](_0x12670e),_0x5d32f9=this['_suggestions']['get'](_0x3922ef)||this['_createSuggestion'](_0x10b144,_0x1ddbcc,_0x3922ef,_0x58d0ce,{});switch(this['_checkSuggestionCorrectness'](_0x5d32f9,_0x10b144,_0x1ddbcc,_0x58d0ce),this['_suggestionState']['get'](_0x5d32f9)){case'notReady':this['_getSuggestionData'](_0x3922ef)['then'](_0x3a40df=>{let _0x4d5c30=Promise['resolve']();_0x3a40df['hasComments']&&(_0x4d5c30=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3922ef})),_0x4d5c30['then'](()=>{this['addSuggestionData'](_0x3a40df)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x5d32f9,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3922ef,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x5d32f9,'ready'),this['fire']('suggestionLoaded',_0x5d32f9);break;case'ready':this['fire']('suggestionChanged',_0x5d32f9);}return _0x5d32f9['addMarkerName'](_0x12670e),_0x5d32f9;}['_refreshSuggestionsChain'](_0x34a2b7){const _0x4bc0ff=Array['from'](_0x34a2b7),_0x47192d=_0x4bc0ff['filter'](_0x4ca64b=>'attribute'==_0x4ca64b['type']);this['_refreshAttributeSuggestionsChain'](_0x47192d);const _0x2c3ac4=_0x4bc0ff['filter'](_0x2ac20f=>!_0x2ac20f['isMultiRange']&&'attribute'!=_0x2ac20f['type']),_0x4bb537=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3b6fa6=>!_0x3b6fa6['isMultiRange']&&'attribute'!=_0x3b6fa6['type']),_0x25b8fe=_0x4bb537['filter'](_0xed6a65=>!_0x34a2b7['has'](_0xed6a65)),_0x30ce9f=new Map(_0x4bb537['map'](_0x3473b8=>[_0x3473b8,this['_suggestionFactory']['getSuggestionCallback'](_0x3473b8['type'],_0x3473b8['subType'],'chain')])),_0x266b46=new Map(_0x4bb537['map'](_0x3c5a3d=>[_0x3c5a3d,_0x3c5a3d['getFirstRange']()])),_0x18e932=new Set(),_0x30e6f3=new Set();for(let _0x5cd30b=0x0;_0x5cd30b<_0x2c3ac4['length'];_0x5cd30b++)_0x518862(_0x2c3ac4[_0x5cd30b],_0x2c3ac4,_0x5cd30b+0x1);for(let _0xba2b19=0x0;_0xba2b19<_0x2c3ac4['length'];_0xba2b19++)_0x518862(_0x2c3ac4[_0xba2b19],_0x25b8fe,0x0);const _0x2b13d2=new Set();for(let _0x40ceaa=0x0;_0x40ceaa<_0x2c3ac4['length'];_0x40ceaa++){const _0x62b44=_0x2c3ac4[_0x40ceaa];!_0x30e6f3['has'](_0x62b44)&&_0x62b44['previous']&&(_0x2b13d2['add'](_0x62b44['previous']),_0x62b44['previous']['next']===_0x62b44&&(_0x62b44['previous']['next']=null),_0x62b44['previous']=null),!_0x18e932['has'](_0x62b44)&&_0x62b44['next']&&(_0x2b13d2['add'](_0x62b44['next']),_0x62b44['next']['previous']===_0x62b44&&(_0x62b44['next']['previous']=null),_0x62b44['next']=null);}function _0x518862(_0x502f1c,_0x20a7aa,_0x43fbc5){for(let _0xd52d00=_0x43fbc5;_0xd52d00<_0x20a7aa['length'];_0xd52d00++){const _0x3837f0=_0x26f791(_0x502f1c,_0x20a7aa[_0xd52d00]);_0x3837f0&&(_0x3837f0[0x0]['next']=_0x3837f0[0x1],_0x3837f0[0x1]['previous']=_0x3837f0[0x0],_0x18e932['add'](_0x3837f0[0x0]),_0x30e6f3['add'](_0x3837f0[0x1]));}}function _0x26f791(_0x59ae07,_0x2e16f1){if(_0x59ae07['author']['id']!==_0x2e16f1['author']['id'])return null;const _0xb0d396=_0x30ce9f['get'](_0x59ae07)(_0x59ae07,_0x2e16f1,_0x266b46['get'](_0x59ae07),_0x266b46['get'](_0x2e16f1));if(!_0xb0d396)return null;return _0x30ce9f['get'](_0x2e16f1)(_0x59ae07,_0x2e16f1,_0x266b46['get'](_0x59ae07),_0x266b46['get'](_0x2e16f1))?_0xb0d396[0x1]['commentThread']&&_0xb0d396[0x1]['commentThread']['length']?null:_0xb0d396:null;}_0x2b13d2['size']&&this['_refreshSuggestionsChain'](_0x2b13d2);}['_refreshAttributeSuggestionsChain'](_0x28c78f){if(0x0==_0x28c78f['length'])return;const _0x4a1c86=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x8013c7=>'attribute'==_0x8013c7['type']&&_0x8013c7['_isDataLoaded']),_0x401b20=[],_0x1c0040=new Map();for(const _0x496f39 of _0x4a1c86){const _0x44cd7b=_0x5626cf(_0x496f39['attributes']);_0x1c0040['has'](_0x44cd7b)||(_0x1c0040['set'](_0x44cd7b,_0x401b20['length']),_0x401b20['push']([]));const _0x3d361d=_0x1c0040['get'](_0x44cd7b);_0x401b20[_0x3d361d]['push'](_0x496f39);}!(function(){_0x401b20['sort']((_0x5c30b4,_0x28d2a3)=>{const _0x589457=_0x5c30b4[0x0]['createdAt'],_0x3ed035=_0x28d2a3[0x0]['createdAt'];return _0x589457==_0x3ed035?_0x5c30b4[0x0]['attributes']['groupId']<_0x28d2a3[0x0]['attributes']['groupId']?-0x1:0x1:_0x589457<_0x3ed035?-0x1:0x1;});for(const _0x1be431 of _0x401b20)_0x1be431['sort']((_0x5cc488,_0x60d65f)=>_0x5cc488['id']<_0x60d65f['id']?-0x1:0x1);}());for(let _0x1bf0e3=0x0;_0x1bf0e3<_0x401b20['length'];_0x1bf0e3++){if(0x0==_0x401b20[_0x1bf0e3]['length'])continue;const _0x3119cb=[];for(let _0x34b395=_0x1bf0e3+0x1;_0x34b395<_0x401b20['length'];_0x34b395++)0x0!=_0x401b20[_0x34b395]['length']&&_0x49b73e(_0x401b20[_0x1bf0e3],_0x401b20[_0x34b395])&&_0x3119cb['push'](_0x34b395);for(const _0x2c5a33 of _0x3119cb)_0x401b20[_0x1bf0e3]=_0x401b20[_0x1bf0e3]['concat'](_0x401b20[_0x2c5a33]),_0x401b20[_0x2c5a33]=[];}for(const _0x5dfee9 of _0x401b20)for(let _0x411e3a=0x0;_0x411e3a<_0x5dfee9['length'];_0x411e3a++){const _0x57f664=_0x5dfee9[_0x411e3a+0x1]||null;_0x5dfee9[_0x411e3a]['next']!==_0x57f664&&(_0x5dfee9[_0x411e3a]['next']=_0x57f664);}for(const _0x4c0785 of _0x401b20)for(let _0x5e5af6=0x0;_0x5e5af6<_0x4c0785['length'];_0x5e5af6++){const _0x7f65f3=_0x4c0785[_0x5e5af6-0x1]||null;_0x4c0785[_0x5e5af6]['previous']!==_0x7f65f3&&(_0x4c0785[_0x5e5af6]['previous']=_0x7f65f3);}function _0x49b73e(_0x56f4f6,_0x220092){if(_0x56f4f6[0x0]['attributes']['groupId']!==_0x220092[0x0]['attributes']['groupId']&&_0x56f4f6[0x0]['author']!==_0x220092[0x0]['author'])return!0x1;if(!function(_0x1c7550,_0x19b27b){if(!_0x1c7550['hasComments']&&!_0x19b27b['hasComments'])return!0x0;if(_0x1c7550['hasComments']&&_0x19b27b['hasComments'])return!0x1;if(_0x1c7550['hasComments']&&_0x19b27b['createdAt']<_0x1c7550['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x19b27b['hasComments']&&_0x1c7550['createdAt']<_0x19b27b['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x56f4f6[0x0],_0x220092[0x0]))return!0x1;const _0x10212e=Jt(_0x56f4f6[0x0]['attributes'],['groupId','trackingSessionId']),_0x10a3b4=Jt(_0x220092[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x51e25d(_0x10212e,_0x10a3b4))return!0x1;if(_0x56f4f6[0x0]['attributes']['groupId']==_0x220092[0x0]['attributes']['groupId'])return!0x0;if(_0x56f4f6[0x0]['attributes']['trackingSessionId']!==_0x220092[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x56f4f6['every'](_0xcf2644=>_0x220092['some'](_0x20b5d2=>_0xcf2644['getFirstRange']()['isEqual'](_0x20b5d2['getFirstRange']())))&&_0x220092['every'](_0x1be94e=>_0x56f4f6['some'](_0x1e4571=>_0x1be94e['getFirstRange']()['isEqual'](_0x1e4571['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x70d154){const _0x1c7ff0=Array['from'](_0x70d154),_0x472a15=this['getSuggestions']({'skipNotAttached':!0x0}),_0x2af8a5=_0x472a15['filter'](_0x1677de=>!_0x70d154['has'](_0x1677de)),_0x441f50=new Map(_0x1c7ff0['map'](_0x3e9c1a=>[_0x3e9c1a,this['_suggestionFactory']['getSuggestionCallback'](_0x3e9c1a['type'],_0x3e9c1a['subType'],'join')])),_0x4ecf98=new Map(_0x472a15['map'](_0x699207=>[_0x699207,_0x699207['getRanges']()]));for(let _0x10dc62=0x0;_0x10dc62<_0x1c7ff0['length'];_0x10dc62++){if(_0x58eafe(this,_0x1c7ff0[_0x10dc62],_0x1c7ff0,_0x10dc62+0x1))return!0x0;}for(let _0x3ccfbd=0x0;_0x3ccfbd<_0x1c7ff0['length'];_0x3ccfbd++){if(_0x58eafe(this,_0x1c7ff0[_0x3ccfbd],_0x2af8a5,0x0))return!0x0;}return!0x1;function _0x58eafe(_0x35e5d2,_0x54f995,_0x1354ea,_0x17833f){for(let _0x1eb9aa=_0x17833f;_0x1eb9aa<_0x1354ea['length'];_0x1eb9aa++){const _0x3f4c3e=_0x1354ea[_0x1eb9aa];if(_0x3f4c3e['type']!==_0x54f995['type']||_0x3f4c3e['author']['id']!==_0x54f995['author']['id']||_0x3f4c3e['subType']!==_0x54f995['subType'])continue;if(!ne(_0x54f995,_0x3f4c3e))continue;if('attribute'==_0x54f995['type']&&_0x54f995['data']['oldValue']!=_0x3f4c3e['data']['oldValue'])continue;if('attribute'==_0x54f995['type']&&_0x35e5d2['_isBlockAttribute'](_0x54f995['data']['key']))continue;if('formatBlock'==_0x54f995['type']){const _0x854d97=_0x35e5d2['editor']['model'],_0x114615=_0x54f995['getContainedElement']();if(_0x114615&&(_0x854d97['schema']['isObject'](_0x114615)||_0x854d97['schema']['isLimit'](_0x114615)))continue;}const _0x2f914a=_0x441f50['get'](_0x54f995),_0x597bd0=_0x4ecf98['get'](_0x54f995),_0x327beb=_0x4ecf98['get'](_0x3f4c3e),_0x36a86a=_0x54f995['commentThread']&&_0x54f995['commentThread']['length'],_0xaf380b=_0x3f4c3e['commentThread']&&_0x3f4c3e['commentThread']['length'];if(!_0x36a86a&&_0x2f914a(_0x327beb,_0x597bd0))return _0x35e5d2['_joinSuggestions'](_0x3f4c3e,_0x54f995),_0x4ecf98['delete'](_0x54f995),!0x0;if(!_0xaf380b&&_0x2f914a(_0x597bd0,_0x327beb))return _0x35e5d2['_joinSuggestions'](_0x54f995,_0x3f4c3e),_0x4ecf98['delete'](_0x3f4c3e),!0x0;}return!0x1;}}['_joinSuggestions'](_0x385ed1,_0x18563c){if(_0x385ed1['isMultiRange']){for(const _0x25a176 of _0x18563c['getRanges']())_0x385ed1['addRange'](_0x25a176);}else{const _0x1b0a10=_0x18563c['getFirstRange']()['end'];this['_setSuggestionRange'](_0x385ed1,this['_model']['createRange'](_0x385ed1['getFirstRange']()['start'],_0x1b0a10));}_0x18563c['removeMarkers']();}['_getMarkerAnnouncementText'](_0x186db2,_0xcce2f,_0x1e8fa6){const _0x3c3f66=_0x186db2['startsWith']('format')||_0x186db2['startsWith']('attribute')?'FORMATTING':_0x186db2['toUpperCase']();return o(this['editor']['locale'],_0xcce2f+'_'+_0x3c3f66+'_SUGGESTION_ANNOUNCEMENT',_0x1e8fa6);}['_initAriaMarkerChangeAnnouncements'](){const _0x1f673b=this['editor'];if(!_0x1f673b['ui'])return;const {ariaLiveAnnouncer:_0x3dad40}=_0x1f673b['ui'];_0x4f626c(this['_model'],({left:_0x38faec,entered:_0x569fab})=>{for(const _0x3c3f9e of _0x38faec){const {group:_0x4e1997,type:_0x364e40}=this['_splitMarkerName'](_0x3c3f9e['name']);if('suggestion'===_0x4e1997){_0x3dad40['announce'](this['_getMarkerAnnouncementText'](_0x364e40,'LEAVE'));break;}}for(const _0x554ab7 of _0x569fab){const {group:_0xfa2726,type:_0xcba491}=this['_splitMarkerName'](_0x554ab7['name']);if('suggestion'===_0xfa2726){_0x3dad40['announce'](this['_getMarkerAnnouncementText'](_0xcba491,'ENTER',_0xad8b6a(_0x152ffb)));break;}}});}['_processAttributeChanges'](_0x17abd5){if(this['_recordAttributeSuggestions'])return!0x1;const _0x2f100e=this['editor'],_0x8a5cab=_0x2f100e['model']['document']['differ']['getChanges']();if(0x0==_0x8a5cab['length'])return!0x1;const _0x55a239=[],_0x269fbb=_0x8a5cab['filter'](_0x36a86f=>'attribute'==_0x36a86f['type']),_0x3e1537=_0x8a5cab['filter'](_0x82635=>'insert'==_0x82635['type']&&'$text'!=_0x82635['name']),_0x4583d5=_0x8a5cab['filter'](_0x3a8720=>'remove'==_0x3a8720['type']&&'$text'!=_0x3a8720['name']);for(const _0x36a4af of _0x269fbb)_0x55a239['push']({'key':_0x36a4af['attributeKey'],'newValue':_0x36a4af['attributeNewValue'],'oldValue':_0x36a4af['attributeOldValue'],'range':te(_0x36a4af['range'],_0x2f100e['model'])});for(const _0x5ad362 of _0x3e1537){const _0x50be26=_0x4583d5['find'](_0x3895d4=>_0x3895d4['position']['isEqual'](_0x5ad362['position']));_0x50be26&&_0x55a239['push']({'key':m,'newValue':_0x5ad362['name'],'oldValue':_0x50be26['name'],'range':_0x2f100e['model']['createRangeOn'](_0x5ad362['position']['nodeAfter'])});}return 0x0!=_0x55a239['length']&&this['_reduceExistingSuggestions'](_0x17abd5,_0x55a239);}['_processAttributeSuggestions'](_0x259c3e){let _0x42998b=!0x1;const _0x416c8f=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x18c04c=>_0x18c04c['data']['newRange']&&_0x18c04c['name']['startsWith']('suggestion:attribute:'));for(const _0x47ea3c of _0x416c8f){const {subType:_0x255f92,id:_0x3770ed}=this['_splitMarkerName'](_0x47ea3c['name']),_0x2235f4=_0x255f92['split']('|')[0x0];for(const _0x2c70bd of this['getSuggestions']({'skipNotAttached':!0x0}))_0x2c70bd['id']!=_0x3770ed&&'attribute'==_0x2c70bd['type']&&_0x2c70bd['data']&&_0x2c70bd['data']['key']==_0x2235f4&&_0x2c70bd['getFirstRange']()['isIntersecting'](_0x47ea3c['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x2c70bd,_0x47ea3c['data']['newRange'],_0x259c3e),_0x42998b=!0x0);}return _0x42998b;}['recordAttributeChanges'](_0x73ae91){this['_recordAttributeSuggestions']=!0x0,_0x73ae91();}['_isRegisteredAttribute'](_0x18c3eb){const _0x268b3b=this['_isBlockAttribute'](_0x18c3eb),_0x6775c1=this['_isInlineAttribute'](_0x18c3eb);return _0x268b3b||_0x6775c1;}['_reduceExistingSuggestions'](_0x9aa2d0,_0x18df4f){if(0x0==_0x18df4f['length'])return!0x1;let _0x2f2880=!0x1;for(const _0x217952 of _0x18df4f){const _0x262895=this['_findSuggestions'](_0x217952['range'],'attribute')['filter'](_0x4bd948=>!_0x4bd948['meta']['isNextTo'])['map'](_0x5682da=>_0x5682da['suggestion']),_0x516a07=_0x5626cf({'newValue':_0x217952['newValue']});_0x262895['filter'](_0x45db22=>{const [_0x14e839,_0x1e829f]=_0x45db22['subType']['split']('|');return _0x14e839==_0x217952['key']&&_0x1e829f!=_0x516a07;})['forEach'](_0x2b620e=>{this['_reduceSuggestionAttributeRange'](_0x2b620e,_0x217952['range'],_0x9aa2d0),_0x2f2880=!0x0;});}return _0x2f2880;}['_reduceSuggestionAttributeRange'](_0x253d76,_0x5b078d,_0x69125){const _0x4e1b19=_0x253d76['getFirstRange']()['getDifference'](_0x5b078d);0x0!==_0x4e1b19['length']?0x1!==_0x4e1b19['length']?this['_breakSuggestionMarker'](_0x253d76,_0x5b078d['start'],_0x5b078d['end']):this['_setSuggestionRange'](_0x253d76,_0x4e1b19[0x0]):_0x69125['removeMarker'](_0x253d76['getFirstMarker']());}}class Kt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x43e1aa){this['_editor']=_0x43e1aa,this['_model']=_0x43e1aa['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x320ff7,_0x46db74,_0x2fd063,_0x70ab05,_0x2ca0a4,_0x19f9de,_0x41c06e){return new R(this['_model'],{'type':_0x320ff7,'subType':_0x46db74,'id':_0x2fd063,'originalSuggestionId':_0x41c06e,'author':_0x70ab05,'creator':_0x70ab05,'attributes':_0x2ca0a4,'onAttributesChange':_0x19f9de,'onAccept':(..._0x551b29)=>this['getSuggestionCallback'](_0x320ff7,_0x46db74,'accept')(..._0x551b29),'onDiscard':(..._0x2b25c6)=>this['getSuggestionCallback'](_0x320ff7,_0x46db74,'discard')(..._0x2b25c6)});}['registerCustomCallback'](_0x885fa1,_0x534ebf,_0x39b535,_0x5eb37f){const _0x8a563c=_0x885fa1+':'+_0x534ebf+':'+_0x39b535;this['_customCallbacks']['set'](_0x8a563c,_0x5eb37f);}['getSuggestionCallback'](_0x276bdf,_0xee668f,_0x5f3c1c){const _0x138241=_0x276bdf+':'+_0xee668f+':'+_0x5f3c1c;return this['_customCallbacks']['get'](_0x138241)||this['_defaultCallbacks']['get'](_0x276bdf+':'+_0x5f3c1c);}['_registerDefaultCallbacks'](){const _0xf4c5ac=()=>!0x1,_0x2abee3=_0x4e6382=>{_0x4e6382['sort']((_0x5e816c,_0x393036)=>_0x5e816c['start']['isBefore'](_0x393036['start'])?0x1:-0x1),this['_model']['change'](_0x318a1c=>{for(const _0x175008 of _0x4e6382){let _0x43e972;_0x43e972=_0x175008['end']['isAtEnd']&&_0x175008['end']['parent']==_0x175008['start']['nodeAfter']?_0x318a1c['createSelection'](_0x175008['start']['nodeAfter'],'on'):_0x318a1c['createSelection'](_0x175008),this['_model']['deleteContent'](_0x43e972,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x45a68e=(_0x32e9c9,_0x255b1f)=>{_0x255b1f&&this['_model']['change'](_0x32ce38=>{const {commandName:_0x218dff,commandParams:_0xfc4442=[]}=_0x255b1f,_0x5127bb=_0x32e9c9['map'](_0x2c076b=>(Ht(_0x2c076b)&&(_0x2c076b=this['_model']['createRange'](_0x2c076b['end'])),_0x2c076b))['filter'](_0x2f3673=>'$graveyard'!==_0x2f3673['root']['rootName']);if(_0x5127bb['length']<0x1)return;const _0x1e20a7=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x26e4b6=>_0x5c6c0b['fromRange'](_0x26e4b6));_0x32ce38['setSelection'](_0x5127bb);for(const _0x40c205 of this['_editor']['commands']['commands']())_0x40c205['refresh']();_0xfc4442['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x218dff,..._0xfc4442);const _0x4c041b=_0x1e20a7['filter'](_0x519a7a=>'$graveyard'!=_0x519a7a['root']['rootName']);_0x4c041b['length']>0x0&&_0x32ce38['setSelection'](_0x4c041b);for(const _0x1aae14 of _0x1e20a7)_0x1aae14['detach']();});},_0x4e28db=(_0xe64827,_0x12b4b5)=>0x1==_0xe64827['length']&&0x1==_0x12b4b5['length']&&_0xe64827[0x0]['end']['isEqual'](_0x12b4b5[0x0]['start']),_0x1eae57=(_0x3b88da,_0x4083ff,_0x5d6d4e,_0x426b5)=>ie(_0x3b88da,_0x4083ff,_0x5d6d4e,_0x426b5)?[_0x3b88da,_0x4083ff]:ie(_0x4083ff,_0x3b88da,_0x426b5,_0x5d6d4e)?[_0x4083ff,_0x3b88da]:null;this['_defaultCallbacks']['set']('insertion:accept',_0xf4c5ac),this['_defaultCallbacks']['set']('insertion:discard',_0x2abee3),this['_defaultCallbacks']['set']('insertion:join',_0x4e28db),this['_defaultCallbacks']['set']('insertion:chain',_0x1eae57),this['_defaultCallbacks']['set']('deletion:accept',_0x2abee3),this['_defaultCallbacks']['set']('deletion:discard',_0xf4c5ac),this['_defaultCallbacks']['set']('deletion:join',_0x4e28db),this['_defaultCallbacks']['set']('deletion:chain',_0x1eae57),this['_defaultCallbacks']['set']('formatInline:accept',_0x45a68e),this['_defaultCallbacks']['set']('formatInline:discard',_0xf4c5ac),this['_defaultCallbacks']['set']('formatInline:join',_0x4e28db),this['_defaultCallbacks']['set']('formatInline:chain',_0xf4c5ac),this['_defaultCallbacks']['set']('formatBlock:accept',_0x45a68e),this['_defaultCallbacks']['set']('formatBlock:discard',_0xf4c5ac),this['_defaultCallbacks']['set']('formatBlock:join',_0x4e28db),this['_defaultCallbacks']['set']('formatBlock:chain',_0xf4c5ac),this['_defaultCallbacks']['set']('attribute:accept',_0xf4c5ac),this['_defaultCallbacks']['set']('attribute:discard',(_0x2d28c1,_0x34b5ef)=>{if(!_0x34b5ef)return;const _0x1c3077=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x14afe4=>{if(_0x34b5ef['key']==m)for(const _0x96ef42 of _0x2d28c1){const _0x4658e7=_0x96ef42['start']['nodeAfter'],_0x5383c4=_0x34b5ef['oldValue'];_0x14afe4['rename'](_0x4658e7,_0x5383c4);}else{if(_0x1c3077['_isBlockAttribute'](_0x34b5ef['key'])){for(const _0x209605 of _0x2d28c1)void 0x0!==_0x34b5ef['oldValue']?_0x14afe4['setAttribute'](_0x34b5ef['key'],_0x34b5ef['oldValue'],_0x209605['start']['nodeAfter']):_0x14afe4['removeAttribute'](_0x34b5ef['key'],_0x209605['start']['nodeAfter']);}else{for(const _0x394238 of _0x2d28c1)_0x34b5ef['oldValue']?_0x14afe4['setAttribute'](_0x34b5ef['key'],_0x34b5ef['oldValue'],_0x394238):_0x14afe4['removeAttribute'](_0x34b5ef['key'],_0x394238);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x4e28db);}}function qt(_0x70dc44,_0x13de4c,_0x40ac0b){for(const _0x4d5837 of _0x13de4c['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4d5837['root']==_0x4d5837)return!0x1;if(!_0x40ac0b['containsItem'](_0x4d5837))return!0x1;if(_0x70dc44['isObject'](_0x4d5837)||_0x70dc44['isLimit'](_0x4d5837))return!0x0;}return!0x1;}function Ht(_0x1b2400){return _0x1b2400['end']['parent']==_0x1b2400['start']['nodeAfter']&&_0x1b2400['end']['isAtStart'];}function Wt(_0x58573e,_0x2aa96e,_0x5318c6,_0x552501){const _0x1a13fc=_0x3814b7=>!_0x3814b7['item']['is']('$textProxy')&&!_0x552501['isObject'](_0x3814b7['item']),_0x3a7bdd=_0x58573e['start']['getLastMatchingPosition'](_0x1a13fc),_0x4dd7bd=_0x58573e['end']['getLastMatchingPosition'](_0x1a13fc,{'direction':'backward'});return(!_0x58573e['start']['isEqual'](_0x3a7bdd)||!_0x58573e['end']['isEqual'](_0x4dd7bd))&&(_0x3a7bdd['isBefore'](_0x4dd7bd)?_0x5318c6['updateMarker'](_0x2aa96e,{'range':_0x5318c6['createRange'](_0x3a7bdd,_0x4dd7bd)}):_0x5318c6['removeMarker'](_0x2aa96e),!0x0);}function zt(_0x4f250c){return _0x5626cf(_0x4f250c);}function Qt(_0xebb487){const _0x3e580b=_0xebb487['start']['nodeAfter'];return _0x3e580b&&_0x3e580b['is']('element');}function Xt(_0xfb2cac){return Ht(_0xfb2cac)||function(_0x57450d){return _0x57450d['start']['parent']==_0x57450d['end']['nodeBefore']&&_0x57450d['start']['isAtEnd'];}(_0xfb2cac);}function Yt(_0x5c52c0,_0x4f8405){try{const _0x2405c3=_0x5c52c0['getRange']();for(const _0x6447ff of _0x4f8405)if(_0x5c52c0!==_0x6447ff&&_0x2405c3&&_0x2405c3['isIntersecting'](_0x6447ff['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Zt(_0x1d7ee9,_0x44ad94){const _0x289392=_0x1d7ee9['end']['nodeBefore'];if(_0x289392&&_0x289392['is']('element')&&_0x44ad94['schema']['isBlock'](_0x289392)&&!_0x44ad94['schema']['isObject'](_0x289392)){const _0x37996e=_0x44ad94['createPositionAt'](_0x289392,'end');return _0x44ad94['createRange'](_0x1d7ee9['start'],_0x37996e);}return _0x1d7ee9;}function te(_0x34aab6,_0x1d8344){return null==_0x34aab6['end']['nodeBefore']&&_0x34aab6['end']['parent']==_0x34aab6['start']['nodeAfter']?ee(_0x34aab6['start']['nodeAfter'],_0x1d8344):_0x34aab6;}function ee(_0x246f2f,_0x44f7d0){const _0x4cdb9b=_0x44f7d0['schema']['isObject'](_0x246f2f)||_0x44f7d0['schema']['isSelectable'](_0x246f2f);return _0x44f7d0['createRange'](_0x44f7d0['createPositionAt'](_0x246f2f,'before'),_0x4cdb9b?_0x44f7d0['createPositionAfter'](_0x246f2f):_0x44f7d0['createPositionAt'](_0x246f2f,'end'));}function ie(_0x5889bd,_0x4a01c6,_0xc3de89,_0x4e3364){return!!ne(_0x5889bd,_0x4a01c6)&&_0xc3de89['end']['isEqual'](_0x4e3364['start']);}function ne(_0x5b501b,_0x2f6986){if(!_0x5b501b['_isDataLoaded']||!_0x2f6986['_isDataLoaded'])return!0x1;const _0x3cfe91=new Set(Object['keys'](_0x5b501b['attributes'])),_0x123437=new Set(Object['keys'](_0x2f6986['attributes']));if(_0x3cfe91['delete']('groupId'),_0x123437['delete']('groupId'),0x0==_0x3cfe91['size']&&0x0==_0x123437['size'])return!0x0;if(_0x3cfe91['size']!=_0x123437['size'])return!0x1;const _0x40dd84={..._0x5b501b['attributes']},_0x21ab6c={..._0x2f6986['attributes']};return delete _0x40dd84['groupId'],delete _0x21ab6c['groupId'],JSON['stringify'](_0x40dd84)==JSON['stringify'](_0x21ab6c);}function se(_0x794f6f,_0x1e1813){const _0x18904e=oe(_0x794f6f['attributes']),_0x48f662=oe(_0x1e1813);if(!_0x794f6f['_isDataLoaded'])return!0x1;for(const _0x3e23d5 of Object['keys'](_0x48f662))if(!_0x51e25d(_0x18904e[_0x3e23d5],_0x48f662[_0x3e23d5]))return!0x1;return!0x0;}function oe(_0x42633d){const _0x397353=Object['assign']({},_0x42633d);return delete _0x397353['skipNestingCheck'],delete _0x397353['tablePasteChainId'],_0x397353;}function re(_0x591f36){return _0x591f36['split']('|')[0x0];}function ae(_0x3aceea,_0x51a2da){for(const [_0x60dc29,_0x3f636f]of _0x3aceea['markers']){const _0x2a2e4d=_0x2c2e90['_createFromRanges'](_0x3f636f['getTransformedByOperation'](_0x51a2da));_0x3aceea['markers']['set'](_0x60dc29,_0x2a2e4d);}}class ve extends/* #__PURE__ -- @preserve */
26
+ _0x50d6bd(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0xf00e,_0x495b48,_0x2785e7,_0x34612e){super(),this['model']=_0x495b48,this['view']=_0x2785e7,this['commentThreadController']=_0x34612e,this['_editor']=_0xf00e,this['_acceptCommand']=_0xf00e['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0xf00e['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x144cd7,_0x1d2dce)=>_0x144cd7||_0x1d2dce),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x4d05c4=>_0x4d05c4&&this['_editor']['model']['canEditAt'](_0x495b48['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x4b4357=>_0x4b4357&&this['_editor']['model']['canEditAt'](_0x495b48['getRanges']())),this['_pendingAction']=null,_0x2785e7['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x2785e7,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x2785e7,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x2785e7,'change:isDirty',()=>{_0x2785e7['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 _0x4f8a98=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x4f8a98);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x24bff0{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x3c2f5a,_0x2908fc,_0x4154f3,_0x4baac4){super(_0x3c2f5a),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x195dea(_0x3c2f5a,o(_0x3c2f5a,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x2908fc['authoredAt']),this['bind']('authoredAt')['to'](_0x2908fc),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',_0x2908fc,'authoredAt',this,'descriptionParts',(_0x9bcf0b,_0x5f2510,_0x3b9a0b)=>{const _0x11faa9=_0x3b9a0b['map'](_0x243303=>ls(_0x243303['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x9bcf0b-0x1,_0x2908fc['author']['name'],_0x5f2510?_0x4baac4['formatDateTime'](_0x5f2510):'',new DOMParser()['parseFromString'](_0x11faa9,'text/html')['body']['textContent']]);}),this['focusables']=new _0x49a2d4(),this['focusTracker']=new _0x419095(),this['keystrokes']=new _0x170971(),this['focusCycler']=new _0x365139({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x254eb4=>_0x254eb4['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x2908fc,this['_localUser']=_0x4154f3,this['_config']=_0x4baac4,_0x4baac4['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x405b48(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x3b9034}=this['_config'];this['commentsListView']=new _0x3b9034(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',_0x47bcfe=>_0x47bcfe+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x541e24,_0x4f7b74)=>_0x541e24||!!_0x4f7b74);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x49b46e}=this['_config'],_0x3eec1d=new _0x49b46e(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5c3984=_0x3eec1d['commentInputView'];return _0x3eec1d['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x5c3984,'value',(_0xeedd66,_0x16b1d4,_0x3f653d)=>!!_0x3f653d||_0xeedd66&&!_0x16b1d4),_0x5c3984['on']('submit',(_0x1d7313,_0x59d8f7)=>{this['fire']('addComment',_0x59d8f7),_0x5c3984['editor']['setData']('');}),_0x5c3984['on']('cancel',()=>this['focus']()),_0x5c3984['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x3eec1d;}}class xe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x4f6916,_0x2f7706,_0x544cf7,_0x572b5d){super(_0x4f6916,_0x2f7706,_0x544cf7,_0x572b5d),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x38c33c=>_0x38c33c&&_0x38c33c[0x0]?_0x38c33c[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3b2d6b,_0xa915a4)=>{let _0x293f9f='';for(const _0x5a0ff2 of _0x3b2d6b)_0x293f9f+='<p>'+ls(_0x5a0ff2['content'],_0x5a0ff2['color'])+'</p>';return _0xa915a4?_0x293f9f:_0x6a430a(_0x293f9f,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x572b5d['SuggestionView'](_0x4f6916,_0x2f7706,{'formatDateTime':_0x572b5d['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 _0x1b06ce=this['bindTemplate'],_0x53da65=[this['suggestionView']];return this['commentsListView']&&_0x53da65['push'](this['commentsListView']),this['commentThreadInputView']&&_0x53da65['push'](this['commentThreadInputView']),_0x53da65['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x1b06ce['if']('isActive','ck-suggestion-wrapper--active'),_0x1b06ce['to']('type',_0x33821c=>'ck-suggestion-'+_0x33821c),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':_0x1b06ce['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x53da65};}['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 Ae extends _0x24bff0{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x3fc537,_0x598976,_0x5b919d){super(_0x3fc537),this['_model']=_0x598976,this['_config']=_0x5b919d,this['set']('description',''),this['bind']('authoredAt')['to'](_0x598976),this['acceptButton']=this['_createButton'](o(_0x3fc537,'Accept\x20suggestion'),_0x197cfd,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x3fc537,'Discard\x20suggestion'),_0x89fdb,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x250299(_0x3fc537,_0x598976['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x49a2d4([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x419095(),this['keystrokes']=new _0x170971(),this['focusCycler']=new _0x365139({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x12b617=>_0x12b617['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x4e88e2=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x4e88e2['innerHTML']=this['description'],this['on']('change:description',(_0x4e92ff,_0x38d54d,_0x524ac9)=>{_0x4e88e2['innerHTML']=_0x524ac9;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x2c6b7d=this['bindTemplate'],_0x1199c1=[{'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':_0x2c6b7d['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2c6b7d['to']('authoredAt',_0x119a34=>this['_config']['formatDateTime'](_0x119a34))}]}]},{'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']&&_0x1199c1['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':_0x1199c1}]};}['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'](_0x31e1f0,_0x4f3136,_0x318673,_0xf066c2,_0x202db8){const _0x5acdd4=new _0x2bb0ea(this['locale']);return _0x5acdd4['set']({'label':_0x31e1f0,'icon':_0x4f3136,'tooltip':!0x0,'tooltipPosition':_0x202db8}),_0x5acdd4['extendTemplate']({'attributes':{'class':_0x318673}}),_0x5acdd4['on']('execute',()=>{this['fire'](_0xf066c2,this['_model']['id']);}),_0x5acdd4;}['_setupKeyboardNavigation'](){const _0x1c1d59=this['element'];this['keystrokes']['listenTo'](_0x1c1d59);for(const _0x40d5f7 of this['focusables'])this['focusTracker']['add'](_0x40d5f7['element']),this['keystrokes']['listenTo'](_0x40d5f7['element']);this['keystrokes']['set']('enter',(_0x56167f,_0x1f6c20)=>{_0x1c1d59===_0x56167f['target']&&(this['focusCycler']['focusFirst'](),_0x1f6c20());}),this['keystrokes']['set']('esc',(_0x17f3ff,_0x1543e6)=>{_0x1c1d59!==_0x17f3ff['target']&&(this['focus'](),_0x1543e6());});}}class u extends _0x4be19b{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x5434f7,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x11f4fd){super(_0x11f4fd),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x389133=this['editor']['config'];_0x389133['define']('trackChanges.SuggestionThreadView',xe),_0x389133['define']('trackChanges.SuggestionView',Ae),_0x389133['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x389133['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0xe37918,_0x10c99c){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x24a00f,_0x23913b]of this['_handleControllerBuffer']){const _0xbc521d=this['_suggestionToController']['has'](_0x24a00f);_0xbc521d||_0x23913b?_0xbc521d&&_0x23913b&&this['_destroyController'](_0x24a00f):this['_initializeController'](_0x24a00f);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0xe37918,_0x10c99c);}['init'](){const _0x147f9a=this['editor'],_0x5b5b3a=_0x147f9a['plugins']['get']('TrackChangesEditing'),_0x57194f=_0x147f9a['plugins']['get']('Annotations'),_0x3f0899=_0x147f9a['plugins']['get']('EditorAnnotations'),_0x1ca6a4=_0x147f9a['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x3f0899['addSourceCollector'](()=>{const _0x139d11=[];for(const [_0x29331d,_0x3fd433]of Array['from'](this['_suggestionToController'])){const _0x3119c8=_0x29331d['getAllAdjacentSuggestions'](),_0x517428=[];for(const _0x529167 of _0x3119c8){if(!_0x529167['isInContent'])continue;if(_0x529167['isMultiRange']){_0x517428['push'](..._0x529167['getRanges']());continue;}const _0x1fef83=_0x529167['getFirstRange']();if(_0x517428['length']>0x0){const _0x1ca56b=_0x517428[0x0]['getJoined'](_0x1fef83);if(_0x1ca56b){_0x517428[0x0]=_0x1ca56b;continue;}}_0x517428['push'](_0x1fef83);}_0x139d11['push']([_0x3fd433['view'],_0x517428]);}return _0x139d11;}),this['listenTo'](_0x5b5b3a,'suggestionLoaded',(_0x3a8663,_0x5cf822)=>{this['listenTo'](_0x5cf822,'change:previous',(_0xc889af,_0x239416,_0x29dca1,_0x207444)=>{_0x5cf822['isInContent']&&(null==_0x29dca1?(this['_updateController'](_0x207444['head']),this['_handleSuggestionControllerDelayed'](_0x5cf822,!0x1)):(this['_updateController'](_0x29dca1['head']),null==_0x207444&&this['_handleSuggestionControllerDelayed'](_0x5cf822,!0x0)));}),null!==_0x5cf822['previous']?this['_updateController'](_0x5cf822['head']):this['_handleSuggestionControllerDelayed'](_0x5cf822,!0x1);}),this['listenTo'](_0x5b5b3a,'suggestionUnloaded',(_0x4d5ca8,_0x1f1a84,_0x53c180)=>{this['stopListening'](_0x1f1a84,'change:previous'),this['_handleControllerBuffer']['delete'](_0x1f1a84),this['_suggestionToController']['has'](_0x1f1a84)&&this['_destroyController'](_0x1f1a84),_0x53c180&&this['_updateController'](_0x53c180['head']);}),this['listenTo'](_0x5b5b3a,'suggestionChanged',(_0x19a205,_0x19018b)=>{this['_updateController'](_0x19018b);}),this['listenTo'](_0x57194f,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x1ca6a4,'addComment',(_0x10e2b8,{threadId:_0x50ca75,isFromAdapter:_0x256919})=>{if(_0x256919||!_0x5b5b3a['hasSuggestion'](_0x50ca75))return;const _0x1945d2=_0x5b5b3a['getSuggestion'](_0x50ca75);this['_suggestionToController']['get'](_0x1945d2)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x6b75a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x338d8d;for(const _0x4bc7b0 in _0x6b75a){const _0x166fc2=_0x4bc7b0,_0x29c83c=_0x6b75a[_0x166fc2];if('trackChangesLicenseKeyValid'==_0x29c83c||'trackChangesLicenseKeyInvalid'==_0x29c83c||'trackChangesLicenseKeyExpired'==_0x29c83c||'trackChangesLicenseKeyDomainLimit'==_0x29c83c||'trackChangesLicenseKeyNotAllowed'==_0x29c83c||'trackChangesLicenseKeyEvaluationLimit'==_0x29c83c||'trackChangesLicenseKeyTrialLimit'==_0x29c83c||'trackChangesLicenseKeyUsageLimit'==_0x29c83c){delete _0x6b75a[_0x166fc2],_0x338d8d=_0x29c83c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x338d8d&&_0x6b75a['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x338d8d&&_0x6b75a['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x338d8d&&_0x6b75a['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x338d8d&&_0x6b75a['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x338d8d&&_0x6b75a['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x338d8d&&_0x6b75a['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x338d8d&&_0x6b75a['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x37e279){const _0x3c44c4=this['_suggestionToController']['get'](_0x37e279);if(!_0x3c44c4)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x3c44c4['view'])||null;}['getSuggestionForAnnotation'](_0x3fc470){const _0x37762f=this['_viewToController']['get'](_0x3fc470['innerView']);return _0x37762f?_0x37762f['model']:null;}['_refreshActiveMarkers'](){const _0x3c5ef9=this['editor']['plugins']['get']('Annotations'),_0xec5b91=this['editor']['plugins']['get']('TrackChangesEditing'),_0x291172=Array['from'](_0x3c5ef9['activeAnnotations'],_0xc0cc7=>_0xc0cc7['innerView'])['filter'](_0x1eb94b=>this['_viewToController']['has'](_0x1eb94b)),_0x4e4fd8=[];for(const _0x2be547 of _0x291172){const _0x456f18=this['_viewToController']['get'](_0x2be547)['model']['getAllAdjacentSuggestions']();_0x4e4fd8['push'](..._0x456f18['reduce']((_0x3ca966,_0x23372e)=>[..._0x3ca966,..._0x23372e['getMarkerNames']()],[]));}_0xec5b91['activeMarkers']=_0x4e4fd8;}['_addUIComponentsToFactory'](){const _0x1bde1f=this['editor'],_0x53ecf0=_0x1bde1f['locale'],_0x4e58d9=o(_0x53ecf0,'Track\x20changes'),_0xf6a5e1=new _0xedbb46([{'type':'switchbutton','model':new _0x49c5a0({'withText':!0x0,'isToggleable':!0x0,'label':_0x4e58d9,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x49c5a0({'withText':!0x0,'label':o(_0x53ecf0,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x49c5a0({'withText':!0x0,'label':o(_0x53ecf0,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x49c5a0({'withText':!0x0,'label':o(_0x53ecf0,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x49c5a0({'withText':!0x0,'label':o(_0x53ecf0,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x1bde1f['plugins']['has']('TrackChangesPreview')&&_0xf6a5e1['addMany']([{'type':'separator'},{'type':'button','model':new _0x49c5a0({'withText':!0x0,'label':o(_0x53ecf0,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x276914 of _0xf6a5e1)if(Ee(_0x276914)){const _0x1892ab=_0x1bde1f['commands']['get'](_0x276914['model']['commandName']);_0x276914['model']['bind']('isOn','isEnabled')['to'](_0x1892ab,'value','isEnabled');}_0x1bde1f['ui']['componentFactory']['add']('trackChanges',_0x1cd1cf=>this['_createToolbarButton'](_0x1cd1cf,_0xf6a5e1,_0x4e58d9)),_0x1bde1f['ui']['componentFactory']['add']('menuBar:trackChanges',_0xa1b650=>this['_createMenuBarMenu'](_0xa1b650,_0xf6a5e1,_0x4e58d9));}['_createToolbarButton'](_0xe04abc,_0x1e6433,_0xfe4ea1){const _0x2babd9=_0x38b019(_0xe04abc,_0x1e1570),_0x570c9b=this['editor']['commands']['get']('trackChanges');_0x2babd9['buttonView']['set']({'tooltip':_0xfe4ea1,'label':_0xfe4ea1,'icon':_0x58bb43}),_0x2babd9['buttonView']['bind']('isOn')['to'](_0x570c9b,'value'),_0x2babd9['buttonView']['on']('execute',()=>{_0x570c9b['execute'](),this['editor']['editing']['view']['focus']();}),_0x559d50(_0x2babd9,_0x1e6433,{'role':'menu'});const _0xb969c4=[];for(const _0x21d050 of _0x1e6433)Ee(_0x21d050)&&_0xb969c4['push'](this['editor']['commands']['get'](_0x21d050['model']['commandName']));const _0x131c30=_0x2babd9['buttonView'];return _0x131c30['actionView']['unbind']('isEnabled'),_0x131c30['arrowView']['unbind']('isEnabled'),_0x131c30['actionView']['bind']('isEnabled')['to'](_0x570c9b,'isEnabled'),_0x131c30['arrowView']['bind']('isEnabled')['toMany'](_0xb969c4,'isEnabled',(..._0xe4401f)=>_0xe4401f['some'](_0x40c518=>_0x40c518)),_0x2babd9['on']('execute',_0x50688f=>{this['editor']['execute'](_0x50688f['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x2babd9;}['_createMenuBarMenu'](_0x58cb24,_0x15a30f,_0x530f18){const _0x353638=new _0x693e1f(_0x58cb24),_0x36412c=this['editor']['commands']['get']('trackChanges');_0x353638['buttonView']['set']({'label':_0x530f18,'icon':_0x58bb43});const _0x3747b6=new _0x1b35db(_0x58cb24);for(const _0xd061eb of _0x15a30f){if('separator'==_0xd061eb['type']){_0x3747b6['items']['add'](new _0x4394a3(_0x58cb24));continue;}const _0x3f7f1f=new _0xed488d(_0x58cb24,_0x353638),_0xb553d=new _0x23a81d(_0x58cb24),_0x564b95=_0xd061eb['model'];_0xb553d['bind'](...Object['keys'](_0x564b95))['to'](_0x564b95),_0xb553d['delegate']('execute')['to'](_0x353638),_0xb553d['on']('execute',()=>{this['editor']['execute'](_0x564b95['commandName']),this['editor']['editing']['view']['focus']();}),_0x3f7f1f['children']['add'](_0xb553d),_0x3747b6['items']['add'](_0x3f7f1f);}return _0x353638['bind']('isEnabled')['to'](_0x36412c,'isEnabled'),_0x353638['panelView']['children']['add'](_0x3747b6),_0x353638;}['_initializeController'](_0x3f5141){const _0x686fa4=this['editor'],_0x24f820=_0x686fa4['config'],_0x32c23f=_0x686fa4['plugins']['get']('Annotations'),_0x1852cc=_0x686fa4['plugins']['get']('CommentsRepository'),_0x423765=_0x686fa4['plugins']['get']('EditorAnnotations'),_0x6ee0e1=_0x686fa4['plugins']['get'](_0x5434f7)['me'],_0x5966d7=_0x24f820['get']('trackChanges')['SuggestionThreadView'],_0x5afb1c=_0x24f820['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x36b26c,CommentThreadInputView:_0x579de8}=_0x686fa4['plugins']['get']('CommentsUI');let _0x153896,_0x1ed77a,_0x5cf06a;this['_annotationViews']['has'](_0x3f5141['id'])?(_0x1ed77a=this['_annotationViews']['get'](_0x3f5141['id']),_0x153896=_0x1ed77a['mainView']):(_0x153896=new _0x5966d7(_0x686fa4['locale'],_0x3f5141,_0x6ee0e1,{'disableComments':this['_disableComments'],'editorConfig':{..._0x24f820['get']('comments.editorConfig'),'licenseKey':_0x24f820['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x24f820['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x24f820['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x24f820['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x1b3ca7(_0x24f820['get']('locale'),_0x686fa4['locale']),'CommentView':_0x24f820['get']('comments')['CommentView'],'CommentsListView':_0x36b26c,'CommentThreadInputView':_0x579de8,'SuggestionView':_0x5afb1c}),_0x153896['suggestionView']['acceptButton']['on']('execute',()=>{_0x686fa4['editing']['view']['focus']();}),_0x153896['suggestionView']['discardButton']['on']('execute',()=>{_0x686fa4['editing']['view']['focus']();}),_0x1ed77a=_0x32c23f['createAnnotationView'](this['editor']['locale'],_0x153896),_0x1ed77a['bind']('isDirty')['to'](_0x153896,'isDirty'),_0x1ed77a['bind']('length')['to'](_0x153896),_0x1ed77a['bind']('type')['to'](_0x153896,'type',_0x12fff0=>'suggestion-'+_0x12fff0),_0x153896['on']('escape',()=>{_0x5cf06a['fire']('escape');}),this['_annotationViews']['set'](_0x3f5141['id'],_0x1ed77a));const _0x4d5b38=_0x1852cc['createCommentThreadController'](_0x3f5141['commentThread'],_0x153896),_0x1f3f7a=new ve(_0x686fa4,_0x3f5141,_0x153896,_0x4d5b38),_0x380264=_0x3f5141['getAllAdjacentSuggestions']()['filter'](_0x44e6b5=>_0x44e6b5['isInContent']);_0x153896['descriptionParts']=_0x686fa4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x380264),this['_suggestionToController']['set'](_0x3f5141,_0x1f3f7a),this['_viewToController']['set'](_0x153896,_0x1f3f7a);const _0x9a4a63=()=>{const _0x4a1d0f=[],_0x3b96b4=_0x3f5141['getAllAdjacentSuggestions']()['filter'](_0x5341d2=>_0x5341d2['isInContent']);for(const _0x14d743 of _0x3b96b4)_0x4a1d0f['push'](..._0x14d743['getMarkers']());return _0xc61320(_0x686fa4['editing'],_0x4a1d0f);};_0x5cf06a=_0x32c23f['createAnnotation']({'view':_0x1ed77a,'target':_0x9a4a63,'type':()=>'suggestion-'+_0x1f3f7a['view']['type'],'isVisible':!!_0x9a4a63()}),_0x1852cc['_bindAnnotationToEditors'](_0x153896,_0x5cf06a),_0x32c23f['add'](_0x5cf06a),_0x423765['registerAnnotation'](_0x5cf06a);}['_destroyController'](_0x437cc0){const _0x58dc87=this['editor']['plugins']['get']('CommentsRepository'),_0x219e1f=this['editor']['plugins']['get']('Annotations'),_0x67f560=this['_suggestionToController']['get'](_0x437cc0),_0x84a795=_0x67f560['view'],_0x25d840=_0x219e1f['getByInnerView'](_0x84a795);_0x58dc87['_unbindEditors'](_0x84a795),_0x25d840&&_0x219e1f['remove'](_0x25d840),this['_suggestionToController']['delete'](_0x437cc0),this['_viewToController']['delete'](_0x84a795),_0x67f560['destroy']();}['_updateController'](_0x3e44b5){if(!_0x3e44b5['isInContent']||!this['_suggestionToController']['has'](_0x3e44b5))return;const _0x2a6568=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4c45d0=this['_suggestionToController']['get'](_0x3e44b5),_0x415170=_0x3e44b5['getAllAdjacentSuggestions']();_0x4c45d0['view']['descriptionParts']=_0x2a6568['descriptionFactory']['getDescriptions'](_0x415170);}['destroy'](){for(const _0x1496d6 of this['_suggestionToController']['keys']())this['_destroyController'](_0x1496d6);for(const _0x34b552 of this['_annotationViews']['values']())_0x34b552['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function Ee(_0x2a53a6){return'model'in _0x2a53a6;}class Ke extends _0x4be19b{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x5487be){this['editor']['plugins']['get'](d)['adapter']=_0x5487be;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x1884a4){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x1884a4);}['getSuggestions']({skipNotAttached:_0x4cdbe2=!0x1,toJSON:_0x5e728a=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x4cdbe2,'toJSON':_0x5e728a});}['getSuggestion'](_0x4108a1){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x4108a1);}}const p=['Pagination'];class me extends _0x4be19b{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x5acb9b=this['editor'];if(_0x5acb9b['config']['define']('trackChangesData.editorCreator',_0x38af06=>{const _0x5e6124=_0x5acb9b['model']['document']['getRootNames']()['reduce']((_0x594a13,_0x362d49)=>(_0x594a13[_0x362d49]='',_0x594a13),{});return _0x5acb9b['constructor']['create'](_0x5e6124,_0x38af06);}),'function'!=typeof _0x5acb9b['config']['get']('trackChangesData')['editorCreator'])throw new _0x3ea0ba('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x15b5d6){return P(this['editor'],!0x0,_0x15b5d6);}['getDataWithDiscardedSuggestions'](_0x423e7a){return P(this['editor'],!0x1,_0x423e7a);}}class Xe extends _0x4be19b{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x52231b){function _0x23357c(_0x16ca26){return _0x16ca26['map'](_0x5d51ee=>String['fromCharCode'](_0x5d51ee))['join']('');}super(_0x52231b),this['result']='end',_0x52231b[_0x23357c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x23357c([0x76,0x69,0x65,0x77])][_0x23357c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x23357c([0x61,0x75,0x74,0x6f]),_0x52231b[_0x23357c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x23357c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x23357c([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x23357c([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x23357c([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 Ye(_0x573648){return void 0x0!==_0x573648['getRootsAttributes'];}async function P(_0x8070cc,_0x52df8e,_0x3523e5){const _0x11d2db=_0x33e814(_0x8070cc,p);_0x11d2db['plugins']['push'](d,Xe),_0x11d2db['rootsAttributes']=Ye(_0x8070cc)?_0x8070cc['getRootsAttributes']():void 0x0;const _0x56b68d=document['createDocumentFragment'](),_0x4f1c26=_0x8070cc['config']['get']('trackChangesData')['editorCreator'],_0x5d03a3=await _0x4f1c26(_0x11d2db,()=>function(_0x4f4a08){const _0x11cf6c=document['createElement']('div');return _0x4f4a08['appendChild'](_0x11cf6c),_0x11cf6c;}(_0x56b68d));!function(_0x1c84ef,_0x1d9c9f){const _0x8e5420=_0x1c84ef['model']['document']['getRootNames']()['reduce']((_0x57089f,_0x8ed079)=>(_0x57089f[_0x8ed079]=_0x1c84ef['data']['get']({'rootName':_0x8ed079}),_0x57089f),{}),_0x59e783=_0x1c84ef['plugins']['get']('Users')['users']['map'](_0xb60b5=>({'id':_0xb60b5['id'],'name':_0xb60b5['name']})),_0x64f79e=_0x1c84ef['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x23e038=_0x1c84ef['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x30c38b=_0x1d9c9f['plugins']['get']('Users'),_0x2d17df=_0x1d9c9f['plugins']['get']('TrackChangesEditing'),_0x13e85e=_0x1d9c9f['plugins']['get']('CommentsRepository');for(const _0xba028d of _0x13e85e['getCommentThreads']())_0xba028d['remove']();for(const _0x502bf3 of _0x59e783)_0x30c38b['getUser'](_0x502bf3['id'])||_0x30c38b['addUser'](_0x502bf3);_0x30c38b['me']||_0x30c38b['useAnonymousUser']();for(const _0x40e9ee of _0x23e038)_0x13e85e['addCommentThread'](_0x40e9ee);for(const _0x538cea of _0x64f79e)_0x2d17df['addSuggestionData'](_0x538cea);_0x1d9c9f['data']['set'](_0x8e5420);}(_0x8070cc,_0x5d03a3),_0x5d03a3['execute'](_0x52df8e?'acceptAllSuggestions':'discardAllSuggestions');const _0x3886f8=Ye(_0x5d03a3)?_0x5d03a3['getFullData'](_0x3523e5):_0x5d03a3['data']['get'](_0x3523e5);return await _0x5d03a3['destroy'](),_0x3886f8;}class _e extends _0x24bff0{['options'];constructor(_0x46dca6,_0x1d08ca){super(_0x46dca6),this['options']=_0x1d08ca,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'](_0x59a23d,_0x19cdc6){if(!this['element'])return;const _0x9b060e=[];for(const [_0x32c0e2,_0x28605b]of _0x59a23d){const _0x1daf49=document['createElement']('div');_0x1daf49['setAttribute']('data-ck-root-name',_0x32c0e2),_0x1daf49['className']=_0x28605b['classes']+'\x20ck-track-changes-preview__root-container',_0x1daf49['innerHTML']=_0x28605b['content'],_0x9b060e['push'](_0x1daf49);}_0x19cdc6(this['element'],_0x9b060e),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class ue extends _0x5e7115{constructor(_0x5c8948){super(_0x5c8948),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x5b4bcb=this['editor'],_0xe48a0a=_0x5b4bcb['locale'],_0xf2b30c=_0x5b4bcb['plugins']['get']('Dialog');let _0x5407c8;const _0x20a78a=function(_0x28bf68){const _0x5b7fdf={};if('editables'in _0x28bf68['ui']['view']){for(const [_0x374c73,_0x2e05d1]of Object['entries'](_0x28bf68['ui']['view']['editables']))_0x5b7fdf[_0x374c73]=_0x2e05d1['element'];}else _0x5b7fdf[_0x28bf68['model']['document']['getRootNames']()[0x0]]=_0x28bf68['ui']['view']['editable']['element'];return _0x5b7fdf;}(_0x5b4bcb),_0x2b2e42=function(_0x244702){let _0x51ca0c=0x0;for(const _0xedd25e of Object['values'](_0x244702))_0x51ca0c=Math['max'](_0x51ca0c,_0xedd25e['getBoundingClientRect']()['width']);let _0x38a661=0x0;for(const _0xc38289 of Object['values'](_0x244702))_0x38a661+=_0xc38289['getBoundingClientRect']()['height'];const _0x3e5da0=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x1c3abe=Math['min'](_0x38a661,_0x3e5da0);return{'width':_0x51ca0c,'height':_0x1c3abe};}(_0x20a78a);_0xf2b30c['show']({'id':'finalContentPreview','title':o(_0xe48a0a,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new _e(_0xe48a0a,{'dialogRects':_0x2b2e42}),'onHide':()=>{_0x5407c8['detachFromDom']();},'onShow':()=>{_0x5b4bcb['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x3f176c=>{const _0x31bb35=this['_standarizeRootsData'](_0x3f176c,_0x5b4bcb,_0x20a78a);_0xf2b30c['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x31bb35,_0x5b4bcb['config']['get']('trackChanges.preview.renderFunction'));}),_0x5407c8=new _0x1f6241(_0xe48a0a,[_0xf2b30c['view']]),_0x5407c8['attachToDom'](),_0x5407c8['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x5b4bcb['once']('destroy',()=>{_0x5407c8['detachFromDom']();});const _0x11c9f7=_0xf2b30c['view']['headerView']['class'];_0xf2b30c['view']['headerView']['class']=_0x11c9f7?_0x11c9f7+'\x20ck-reset_all':'ck-reset_all',_0xf2b30c['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0xf2b30c['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x38b7d6=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x46efa9=_0x38b7d6['previewMode'],_0x101afa={};if('$labels'===_0x46efa9){for(const _0x5267de of _0x38b7d6['getMergeFieldsIds']())_0x101afa[_0x5267de]=_0x38b7d6['getLabel'](_0x5267de)||_0x5267de;}else{const _0x14433f='$defaultValues'===_0x46efa9?_0x38b7d6['getDefaultValues']():_0x38b7d6['getDataSetValues'](_0x46efa9,!0x0);for(const _0x490487 of Object['entries'](_0x14433f)){const [_0x371a8a,_0x4b7c5d]=_0x490487;_0x101afa[_0x371a8a]=null!==_0x4b7c5d?_0x4b7c5d:_0x38b7d6['getLabel'](_0x371a8a)||_0x371a8a;}}return{'mergeFieldsData':_0x101afa};}['_standarizeRootsData'](_0x4bb4ca,_0x15089f,_0x2ace1d){let _0x42d649;if('string'==typeof _0x4bb4ca){const _0x2d87b2=_0x15089f['model']['document']['getRootNames']()[0x0];_0x42d649={[_0x2d87b2]:_0x4bb4ca};}else _0x42d649=_0x4bb4ca;const _0x2b02e4=this['_fixMediaEmbeds'](_0x42d649,_0x15089f),_0x411f07=function(_0xd6c98f,_0x49e76c){for(const [_0x2edfac,_0x5dbc5a]of _0xd6c98f)_0x5dbc5a['classes']=_0x49e76c[_0x2edfac]['classList']['value']['replace']('ck-focused','');return _0xd6c98f;}(this['_sortRoots'](_0x15089f)['reduce']((_0x4717ee,_0x143838)=>(_0x4717ee['push']([_0x143838,{'content':_0x2b02e4[_0x143838],'classes':''}]),_0x4717ee),[]),_0x2ace1d);return _0x411f07;}['_fixMediaEmbeds'](_0x25bb7a,_0x204d76){if(!_0x204d76['plugins']['has']('MediaEmbedEditing'))return _0x25bb7a;const _0x4df31a=_0x204d76['plugins']['get']('MediaEmbedEditing');for(const [_0x3879c4,_0x25ed39]of Object['entries'](_0x25bb7a)){const _0x23cf0f=document['createElement']('div');_0x23cf0f['innerHTML']=_0x25ed39,(_0x23cf0f['querySelectorAll']('figure.media')['forEach'](_0x4d5739=>{const _0x279b95=_0x4d5739['querySelector']('oembed');if(_0x279b95){const _0x5e87be=_0x279b95['getAttribute']('url');if(_0x5e87be){const _0x4c0ecd=_0x4df31a['registry']['getMediaViewElement'](new _0x147bf7(_0x204d76['editing']['view']['document']),_0x5e87be,{'elementName':'','renderForEditingView':!0x0}),_0x3383b5=document['createElement']('div');_0x3383b5['classList']['add']('ck-media__wrapper'),_0x4c0ecd['render'](_0x3383b5,_0x204d76['editing']['view']['domConverter']),_0x279b95['replaceWith'](_0x3383b5);}}}),_0x25bb7a[_0x3879c4]=_0x23cf0f['innerHTML']);}return _0x25bb7a;}['_sortRoots'](_0x583de2){if(!function(_0x45ef37){return void 0x0!==_0x45ef37['getRootsAttributes'];}(_0x583de2))return _0x583de2['model']['document']['getRootNames']();const _0xfa43=[],_0x10a8c7=new Map();for(const _0x2f9e01 of _0x583de2['model']['document']['getRootNames']()){const _0x490bb8=_0x583de2['editing']['view']['getDomRoot'](_0x2f9e01)['getClientRects']()['item'](0x0);_0xfa43['push'](_0x2f9e01),_0x10a8c7['set'](_0x2f9e01,_0x490bb8);}return _0xfa43['sort']((_0x40be78,_0xac4f89)=>{const _0x4efd03=_0x10a8c7['get'](_0x40be78),_0x742b9f=_0x10a8c7['get'](_0xac4f89);return _0x4efd03['y']-_0x742b9f['y']||_0x4efd03['x']-_0x742b9f['x'];}),_0xfa43;}}class Qe extends _0x4be19b{static get['requires'](){return[me,_0x31669e];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x6fce58){super(_0x6fce58),_0x6fce58['commands']['add']('previewFinalContent',new ue(this['editor'])),_0x6fce58['config']['define']('trackChanges.preview.renderFunction',(_0x365c1e,_0x3e2498)=>{for(const _0x176465 of _0x3e2498)_0x365c1e['appendChild'](_0x176465);});}}export{T as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,O as DiscardSuggestionCommand,x as ExecuteOnAllSuggestionsCommand,E as ExecuteOnSelectedSuggestionsCommand,ue as PreviewFinalContentCommand,R as Suggestion,U as SuggestionDescriptionFactory,xe as SuggestionThreadView,Ae as SuggestionView,Ke as TrackChanges,B as TrackChangesCommand,me as TrackChangesData,Xe as TrackChangesDataGetter,d as TrackChangesEditing,Qe as TrackChangesPreview,u as TrackChangesUI};